@node-projects/web-component-designer 0.0.113 → 0.0.114

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.
@@ -1,9 +1,11 @@
1
- import { BaseCustomWebComponentLazyAppend, BaseCustomWebComponentConstructorAppend } from '@node-projects/base-custom-webcomponent';
1
+ import { BaseCustomWebComponentLazyAppend, BaseCustomWebComponentConstructorAppend, BaseCustomWebComponentConstructorAppendLazyReady } from '@node-projects/base-custom-webcomponent';
2
2
  import { AbstractBasePropertiesService } from './AbstractBasePropertiesService';
3
3
  export class BaseCustomWebComponentPropertiesService extends AbstractBasePropertiesService {
4
4
  name = "baseCustomWebComponent";
5
5
  isHandledElement(designItem) {
6
- return designItem.element instanceof BaseCustomWebComponentLazyAppend || designItem.element instanceof BaseCustomWebComponentConstructorAppend;
6
+ return designItem.element instanceof BaseCustomWebComponentLazyAppend ||
7
+ designItem.element instanceof BaseCustomWebComponentConstructorAppendLazyReady ||
8
+ designItem.element instanceof BaseCustomWebComponentConstructorAppend;
7
9
  }
8
10
  _notifyChangedProperty(designItem, property, value) {
9
11
  //@ts-ignore
@@ -31,7 +31,12 @@ export class BindableObjectsBrowser extends BaseCustomWebComponentLazyAppend {
31
31
  super();
32
32
  this._restoreCachedInititalValues();
33
33
  //@ts-ignore
34
- import("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
34
+ if (importShim)
35
+ //@ts-ignore
36
+ importShim("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
37
+ else
38
+ //@ts-ignore
39
+ import("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
35
40
  this._treeDiv = document.createElement('div');
36
41
  this._treeDiv.style.height = '100%';
37
42
  this._treeDiv.style.overflow = 'auto';
@@ -20,7 +20,12 @@ export class CodeViewCodeMirror extends BaseCustomWebComponentLazyAppend {
20
20
  constructor() {
21
21
  super();
22
22
  //@ts-ignore
23
- import("./codemirror/lib/codemirror.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
23
+ if (importShim)
24
+ //@ts-ignore
25
+ importShim("./codemirror/lib/codemirror.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
26
+ else
27
+ //@ts-ignore
28
+ import("./codemirror/lib/codemirror.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
24
29
  this.style.display = 'block';
25
30
  this._editor = this._getDomElement('textarea');
26
31
  }
@@ -53,8 +53,14 @@ export class CodeViewMonaco extends BaseCustomWebComponentLazyAppend {
53
53
  return false;
54
54
  }
55
55
  async ready() {
56
+ let style;
56
57
  //@ts-ignore
57
- const style = await import("monaco-editor/min/vs/editor/editor.main.css", { assert: { type: 'css' } });
58
+ if (importShim)
59
+ //@ts-ignore
60
+ style = await importShim("monaco-editor/min/vs/editor/editor.main.css", { assert: { type: 'css' } });
61
+ else
62
+ //@ts-ignore
63
+ style = await import("monaco-editor/min/vs/editor/editor.main.css", { assert: { type: 'css' } });
58
64
  this.shadowRoot.adoptedStyleSheets = [style.default, this.constructor.style];
59
65
  this._editor = this._getDomElement('container');
60
66
  //@ts-ignore
@@ -57,7 +57,12 @@ export class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
57
57
  super();
58
58
  this._restoreCachedInititalValues();
59
59
  //@ts-ignore
60
- import("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
60
+ if (importShim)
61
+ //@ts-ignore
62
+ importShim("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
63
+ else
64
+ //@ts-ignore
65
+ import("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
61
66
  this._filter = this._getDomElement('input');
62
67
  this._filter.onkeyup = () => {
63
68
  let match = this._filter.value;
@@ -96,7 +96,12 @@ export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
96
96
  super();
97
97
  this._restoreCachedInititalValues();
98
98
  //@ts-ignore
99
- import("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
99
+ if (importShim)
100
+ //@ts-ignore
101
+ importShim("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
102
+ else
103
+ //@ts-ignore
104
+ import("jquery.fancytree/dist/skin-win8/ui.fancytree.css", { assert: { type: 'css' } }).then(x => this.shadowRoot.adoptedStyleSheets = [x.default, this.constructor.style]);
100
105
  this._filter = this._getDomElement('input');
101
106
  this._filter.onkeyup = () => {
102
107
  this._filterNodes();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.0.113",
4
+ "version": "0.0.114",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "",