@node-projects/web-component-designer 0.1.110 → 0.1.112

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.
@@ -626,6 +626,8 @@ export class DesignerCanvas extends BaseCustomWebComponentLazyAppend {
626
626
  this._resizeBackgroundGrid();
627
627
  });
628
628
  }
629
+ if (this.isConnected)
630
+ this.extensionManager.connected();
629
631
  }
630
632
  connectedCallback() {
631
633
  if (!this._firstConnect) {
@@ -652,7 +654,8 @@ export class DesignerCanvas extends BaseCustomWebComponentLazyAppend {
652
654
  this.canvasOffset = newCanvasOffset;
653
655
  });
654
656
  }
655
- this.extensionManager.connected();
657
+ if (this.extensionManager)
658
+ this.extensionManager.connected();
656
659
  }
657
660
  disconnectedCallback() {
658
661
  this.extensionManager.disconnected();
@@ -13,6 +13,11 @@ export declare class PropertyGrid extends BaseCustomWebComponentLazyAppend {
13
13
  private _instanceServiceContainer;
14
14
  private _selectionChangedHandler;
15
15
  static readonly style: CSSStyleSheet;
16
+ static readonly properties: {
17
+ serviceContainer: ObjectConstructor;
18
+ instanceServiceContainer: ObjectConstructor;
19
+ selectedItems: ArrayConstructor;
20
+ };
16
21
  constructor();
17
22
  set serviceContainer(value: ServiceContainer);
18
23
  get serviceContainer(): ServiceContainer;
@@ -26,6 +26,11 @@ export class PropertyGrid extends BaseCustomWebComponentLazyAppend {
26
26
  box-shadow: inset 0 3px 0 var(--highlight-pink, #e91e63);
27
27
  }
28
28
  `;
29
+ static properties = {
30
+ serviceContainer: Object,
31
+ instanceServiceContainer: Object,
32
+ selectedItems: Array
33
+ };
29
34
  constructor() {
30
35
  super();
31
36
  this._restoreCachedInititalValues();
@@ -132,7 +132,7 @@ export class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
132
132
  };
133
133
  }
134
134
  set serviceContainer(value) {
135
- this._waitForChildrenReady().then(() => this._pg.serviceContainer = value);
135
+ this._pg.serviceContainer = value;
136
136
  }
137
137
  set instanceServiceContainer(value) {
138
138
  this._instanceServiceContainer = value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A WYSIWYG designer webcomponent for html components",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.110",
4
+ "version": "0.1.112",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",