@node-projects/web-component-designer 0.1.179 → 0.1.180

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.
@@ -34,6 +34,7 @@ export declare class PropertyGrid extends BaseCustomWebComponentLazyAppend {
34
34
  get selectedItems(): IDesignItem[];
35
35
  set selectedItems(items: IDesignItem[]);
36
36
  _selectedItemsSet(): Promise<void>;
37
- _mutationOccured(): void;
37
+ _blockDoubleRun: boolean;
38
+ _mutationOccured(): Promise<void>;
38
39
  private _observePrimarySelectionForChanges;
39
40
  }
@@ -129,13 +129,18 @@ export class PropertyGrid extends BaseCustomWebComponentLazyAppend {
129
129
  this._nodeReplacedCb = null;
130
130
  }
131
131
  }
132
- _mutationOccured() {
133
- for (const a of this._propertyGridPropertyLists) {
134
- if (a.propertiesService?.getRefreshMode(this._selectedItems[0]) == RefreshMode.fullOnValueChange) {
135
- a.createElements(this._selectedItems[0]);
136
- a.designItemsChanged(this._selectedItems);
132
+ _blockDoubleRun = false;
133
+ async _mutationOccured() {
134
+ if (!this._blockDoubleRun) {
135
+ this._blockDoubleRun = true;
136
+ for (const a of this._propertyGridPropertyLists) {
137
+ if (a.propertiesService?.getRefreshMode(this._selectedItems[0]) == RefreshMode.fullOnValueChange) {
138
+ await a.createElements(this._selectedItems[0]);
139
+ a.designItemsChanged(this._selectedItems);
140
+ }
141
+ a.refreshForDesignItems(this._selectedItems);
137
142
  }
138
- a.refreshForDesignItems(this._selectedItems);
143
+ this._blockDoubleRun = false;
139
144
  }
140
145
  }
141
146
  _observePrimarySelectionForChanges() {
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.179",
4
+ "version": "0.1.180",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",