@node-projects/web-component-designer 0.0.106 → 0.0.107
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.
- package/dist/elements/services/elementsService/WebcomponentManifestElementsService.js +17 -0
- package/dist/elements/services/propertiesService/services/WebcomponentManifestPropertiesService.js +6 -1
- package/dist/elements/widgets/bindableObjectsBrowser/bindable-objects-browser.js +1 -0
- package/dist/elements/widgets/paletteView/paletteTreeView.js +1 -0
- package/dist/elements/widgets/treeView/treeViewExtended.js +1 -0
- package/package.json +1 -1
|
@@ -16,6 +16,23 @@ export class WebcomponentManifestElementsService {
|
|
|
16
16
|
for (let e of m.exports) {
|
|
17
17
|
if (e.kind == 'custom-element-definition') {
|
|
18
18
|
this._elementList.push({ tag: e.name, import: this._importPrefix + '/' + e.declaration.module, defaultWidth: "200px", defaultHeight: "200px" });
|
|
19
|
+
try {
|
|
20
|
+
//@ts-ignore
|
|
21
|
+
if (importShim) {
|
|
22
|
+
//@ts-ignore
|
|
23
|
+
importShim(this._importPrefix + '/' + e.declaration.module).then(x => {
|
|
24
|
+
customElements.define(e.name, x[e.declaration.name]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
import(this._importPrefix + '/' + e.declaration.module).then(x => {
|
|
29
|
+
customElements.define(e.name, x[e.declaration.name]);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (err) {
|
|
34
|
+
console.warn(err);
|
|
35
|
+
}
|
|
19
36
|
}
|
|
20
37
|
}
|
|
21
38
|
if (this._resolveStored) {
|
package/dist/elements/services/propertiesService/services/WebcomponentManifestPropertiesService.js
CHANGED
|
@@ -12,11 +12,16 @@ export class WebcomponentManifestPropertiesService extends UnkownElementProperti
|
|
|
12
12
|
}
|
|
13
13
|
_parseManifest(manifest) {
|
|
14
14
|
this._propertiesList = {};
|
|
15
|
+
let declarations = [];
|
|
16
|
+
for (let m of manifest.modules) {
|
|
17
|
+
if (m.declarations)
|
|
18
|
+
declarations.push(...m.declarations);
|
|
19
|
+
}
|
|
15
20
|
for (let m of manifest.modules) {
|
|
16
21
|
for (let e of m.exports) {
|
|
17
22
|
if (e.kind == 'custom-element-definition') {
|
|
18
23
|
let properties = [];
|
|
19
|
-
let declaration =
|
|
24
|
+
let declaration = declarations.find(x => x.name == e.declaration.name);
|
|
20
25
|
if (declaration) {
|
|
21
26
|
if (declaration.members) {
|
|
22
27
|
for (let d of declaration.members) {
|
|
@@ -38,6 +38,7 @@ export class BindableObjectsBrowser extends BaseCustomWebComponentLazyAppend {
|
|
|
38
38
|
this._treeDiv.setAttribute('id', 'tree');
|
|
39
39
|
this.shadowRoot.appendChild(this._treeDiv);
|
|
40
40
|
$(this._treeDiv).fancytree({
|
|
41
|
+
debugLevel: 0,
|
|
41
42
|
icon: false,
|
|
42
43
|
extensions: ['dnd5'],
|
|
43
44
|
quicksearch: true,
|
|
@@ -67,6 +67,7 @@ export class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
|
|
|
67
67
|
};
|
|
68
68
|
this._treeDiv = this._getDomElement('treetable');
|
|
69
69
|
$(this._treeDiv).fancytree({
|
|
70
|
+
debugLevel: 0,
|
|
70
71
|
icon: true,
|
|
71
72
|
extensions: ['childcounter', 'dnd5', 'filter'],
|
|
72
73
|
quicksearch: true,
|
|
@@ -158,6 +158,7 @@ export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
|
|
|
158
158
|
async ready() {
|
|
159
159
|
//this._treeDiv.classList.add('fancytree-connectors');
|
|
160
160
|
$(this._treeDiv).fancytree({
|
|
161
|
+
debugLevel: 0,
|
|
161
162
|
icon: true,
|
|
162
163
|
extensions: ['childcounter', 'dnd5', 'multi', 'filter', 'table'],
|
|
163
164
|
quicksearch: true,
|