Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d51027d4be | |||
2efa465930 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-wcctools",
|
"name": "@designestate/dees-wcctools",
|
||||||
"version": "1.0.64",
|
"version": "1.0.65",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@designestate/dees-wcctools",
|
"name": "@designestate/dees-wcctools",
|
||||||
"version": "1.0.64",
|
"version": "1.0.65",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.102",
|
"@designestate/dees-domtools": "^1.0.102",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-wcctools",
|
"name": "@designestate/dees-wcctools",
|
||||||
"version": "1.0.64",
|
"version": "1.0.65",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "wcc tools for creating element catalogues",
|
"description": "wcc tools for creating element catalogues",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
|
@ -130,13 +130,14 @@ export class WccProperties extends LitElement {
|
|||||||
|
|
||||||
.warning {
|
.warning {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: #800000;
|
background: #222;
|
||||||
|
color: #CCC;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 520px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 35px;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -256,6 +257,7 @@ export class WccProperties extends LitElement {
|
|||||||
console.log(`Got Dees-Element for property evaluation.`);
|
console.log(`Got Dees-Element for property evaluation.`);
|
||||||
const anonItem: any = this.selectedItem;
|
const anonItem: any = this.selectedItem;
|
||||||
if (!anonItem) {
|
if (!anonItem) {
|
||||||
|
this.warning = 'no element selected';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(anonItem.elementProperties);
|
console.log(anonItem.elementProperties);
|
||||||
@ -268,12 +270,15 @@ export class WccProperties extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!firstFoundInstantiatedElement) {
|
if (!firstFoundInstantiatedElement) {
|
||||||
|
this.warning = `no first instantiated element found for >>${anonItem.name}<<`;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const classProperties: Map<string, any> = anonItem.elementProperties;
|
const classProperties: Map<string, any> = anonItem.elementProperties;
|
||||||
if (!classProperties) {
|
if (!classProperties) {
|
||||||
|
this.warning = `selected element >>${anonItem.name}<< does not expose element properties`;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.warning = null;
|
||||||
const propertyArray: TemplateResult[] = [];
|
const propertyArray: TemplateResult[] = [];
|
||||||
for (const key of classProperties.keys()) {
|
for (const key of classProperties.keys()) {
|
||||||
if (key === 'goBright' || key === 'domtools') {
|
if (key === 'goBright' || key === 'domtools') {
|
||||||
@ -337,7 +342,8 @@ export class WccProperties extends LitElement {
|
|||||||
}
|
}
|
||||||
this.propertyContent = propertyArray;
|
this.propertyContent = propertyArray;
|
||||||
} else {
|
} else {
|
||||||
console.log(`Cannot extract properties of ${(this.selectedItem as any)?.name}`)
|
console.log(`Cannot extract properties of ${(this.selectedItem as any)?.name}`);
|
||||||
|
this.warning = `You selected a page.`;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user