@node-projects/web-component-designer 0.0.105 → 0.0.106
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.
|
@@ -15,7 +15,7 @@ export class WebcomponentManifestElementsService {
|
|
|
15
15
|
for (let m of manifest.modules) {
|
|
16
16
|
for (let e of m.exports) {
|
|
17
17
|
if (e.kind == 'custom-element-definition') {
|
|
18
|
-
this._elementList.push({ tag: e.name, import: this._importPrefix + '/' + e.declaration.module });
|
|
18
|
+
this._elementList.push({ tag: e.name, import: this._importPrefix + '/' + e.declaration.module, defaultWidth: "200px", defaultHeight: "200px" });
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
if (this._resolveStored) {
|
package/dist/elements/services/propertiesService/services/WebcomponentManifestPropertiesService.js
CHANGED
|
@@ -17,15 +17,22 @@ export class WebcomponentManifestPropertiesService extends UnkownElementProperti
|
|
|
17
17
|
if (e.kind == 'custom-element-definition') {
|
|
18
18
|
let properties = [];
|
|
19
19
|
let declaration = m.declarations.find(x => x.name == e.declaration.name);
|
|
20
|
-
|
|
21
|
-
if (
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
if (declaration) {
|
|
21
|
+
if (declaration.members) {
|
|
22
|
+
for (let d of declaration.members) {
|
|
23
|
+
if (d.kind == 'field') {
|
|
24
|
+
let pType = PropertyType.property;
|
|
25
|
+
if (declaration.attributes)
|
|
26
|
+
pType = declaration.attributes.find(x => x.fieldName == d.name) != null ? PropertyType.propertyAndAttribute : PropertyType.property;
|
|
27
|
+
properties.push({ name: d.name, service: this, propertyType: pType, type: this.manifestClassPropertyTypeToEditorPropertyType(d.type?.text) });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
this._propertiesList[e.name] = properties;
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
|
-
|
|
33
|
+
else {
|
|
34
|
+
console.warn('declaration for ' + e.declaration.name + ' not found', manifest);
|
|
35
|
+
}
|
|
29
36
|
}
|
|
30
37
|
}
|
|
31
38
|
}
|
|
@@ -49,7 +49,7 @@ export class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
|
|
|
49
49
|
static template = html `
|
|
50
50
|
<div style="height: 100%;">
|
|
51
51
|
<input id="input" style="width: 100%; height:21px;" placeholder="Filter..." autocomplete="off">
|
|
52
|
-
<div style="height: calc(100% -
|
|
52
|
+
<div style="height: calc(100% - 26px); overflow: auto;">
|
|
53
53
|
<div id="treetable" style="min-width: 100%;"></div>
|
|
54
54
|
</div>
|
|
55
55
|
</div>`;
|