@node-projects/web-component-designer 0.0.115 → 0.0.116
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/instanceService/DefaultInstanceService.js +1 -1
- package/dist/elements/widgets/bindableObjectsBrowser/bindable-objects-browser.js +1 -1
- package/dist/elements/widgets/codeView/code-view-code-mirror.js +1 -1
- package/dist/elements/widgets/codeView/code-view-monaco.js +1 -1
- package/dist/elements/widgets/paletteView/paletteTreeView.js +1 -1
- package/dist/elements/widgets/propertyGrid/PropertyGridWithHeader.js +4 -1
- package/dist/elements/widgets/treeView/treeViewExtended.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export class DefaultInstanceService {
|
|
|
8
8
|
if (importUri[0] === '.')
|
|
9
9
|
importUri = (window.location.origin + window.location.pathname).split('/').slice(0, -1).join('/') + '/' + importUri;
|
|
10
10
|
//@ts-ignore
|
|
11
|
-
if (importShim) {
|
|
11
|
+
if (window.importShim) {
|
|
12
12
|
//@ts-ignore
|
|
13
13
|
importShim(importUri).then((x) => {
|
|
14
14
|
let ctor = customElements.get(definition.tag);
|
|
@@ -31,7 +31,7 @@ export class BindableObjectsBrowser extends BaseCustomWebComponentLazyAppend {
|
|
|
31
31
|
super();
|
|
32
32
|
this._restoreCachedInititalValues();
|
|
33
33
|
//@ts-ignore
|
|
34
|
-
if (importShim)
|
|
34
|
+
if (window.importShim)
|
|
35
35
|
//@ts-ignore
|
|
36
36
|
importShim("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
|
|
37
37
|
else
|
|
@@ -20,7 +20,7 @@ export class CodeViewCodeMirror extends BaseCustomWebComponentLazyAppend {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
22
|
//@ts-ignore
|
|
23
|
-
if (importShim)
|
|
23
|
+
if (window.importShim)
|
|
24
24
|
//@ts-ignore
|
|
25
25
|
importShim("./codemirror/lib/codemirror.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
|
|
26
26
|
else
|
|
@@ -55,7 +55,7 @@ export class CodeViewMonaco extends BaseCustomWebComponentLazyAppend {
|
|
|
55
55
|
async ready() {
|
|
56
56
|
let style;
|
|
57
57
|
//@ts-ignore
|
|
58
|
-
if (importShim)
|
|
58
|
+
if (window.importShim)
|
|
59
59
|
//@ts-ignore
|
|
60
60
|
style = await importShim("monaco-editor/min/vs/editor/editor.main.css", { assert: { type: 'css' } });
|
|
61
61
|
else
|
|
@@ -57,7 +57,7 @@ export class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
|
|
|
57
57
|
super();
|
|
58
58
|
this._restoreCachedInititalValues();
|
|
59
59
|
//@ts-ignore
|
|
60
|
-
if (importShim)
|
|
60
|
+
if (window.importShim)
|
|
61
61
|
//@ts-ignore
|
|
62
62
|
importShim("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
|
|
63
63
|
else
|
|
@@ -104,7 +104,10 @@ export class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
|
|
|
104
104
|
await sleep(20); // delay assignment a little bit, so onblur above could still set the value.
|
|
105
105
|
this._type.innerText = this._instanceServiceContainer.selectionService.primarySelection?.name ?? '';
|
|
106
106
|
this._id.value = this._instanceServiceContainer.selectionService.primarySelection?.id ?? '';
|
|
107
|
-
|
|
107
|
+
if (this._instanceServiceContainer.selectionService.primarySelection?.element?.children?.length <= 0)
|
|
108
|
+
this._content.value = this._instanceServiceContainer.selectionService.primarySelection?.element?.textContent ?? '';
|
|
109
|
+
else
|
|
110
|
+
this._content.value = '';
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
113
|
}
|
|
@@ -96,7 +96,7 @@ export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
|
|
|
96
96
|
super();
|
|
97
97
|
this._restoreCachedInititalValues();
|
|
98
98
|
//@ts-ignore
|
|
99
|
-
if (importShim)
|
|
99
|
+
if (window.importShim)
|
|
100
100
|
//@ts-ignore
|
|
101
101
|
importShim("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
|
|
102
102
|
else
|