@node-projects/web-component-designer 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -231,10 +231,10 @@ export class DesignItem {
|
|
|
231
231
|
}
|
|
232
232
|
//abstract text content to own property. so only change via designer api will use it.
|
|
233
233
|
get hasContent() {
|
|
234
|
-
return this.nodeType == NodeType.TextNode ||
|
|
234
|
+
return ((this.nodeType == NodeType.TextNode || this.nodeType == NodeType.Comment) && this.element.textContent != "") || (this._childArray.length === 0);
|
|
235
235
|
}
|
|
236
236
|
get content() {
|
|
237
|
-
if (
|
|
237
|
+
if (this.nodeType == NodeType.TextNode || this.nodeType == NodeType.Comment)
|
|
238
238
|
return this.node.textContent;
|
|
239
239
|
else
|
|
240
240
|
return this._childArray.map(x => x.content).join();
|
|
@@ -47,9 +47,6 @@ export class PropertyGridPropertyList extends BaseCustomWebComponentLazyAppend {
|
|
|
47
47
|
text-overflow: ellipsis;
|
|
48
48
|
margin-right: 2px;
|
|
49
49
|
}
|
|
50
|
-
label[for] {
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
50
|
input, select {
|
|
54
51
|
height: 24px;
|
|
55
52
|
border: 1px solid var(--input-border-color, #596c7a);
|