@node-projects/web-component-designer 0.1.144 → 0.1.145

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.
@@ -20,6 +20,8 @@ export declare class PropertyGrid extends BaseCustomWebComponentLazyAppend {
20
20
  serviceContainer: ObjectConstructor;
21
21
  instanceServiceContainer: ObjectConstructor;
22
22
  selectedItems: ArrayConstructor;
23
+ propertyGroupHover: FunctionConstructor;
24
+ propertyGroupClick: FunctionConstructor;
23
25
  };
24
26
  constructor();
25
27
  set serviceContainer(value: ServiceContainer);
@@ -31,7 +31,9 @@ export class PropertyGrid extends BaseCustomWebComponentLazyAppend {
31
31
  static properties = {
32
32
  serviceContainer: Object,
33
33
  instanceServiceContainer: Object,
34
- selectedItems: Array
34
+ selectedItems: Array,
35
+ propertyGroupHover: Function,
36
+ propertyGroupClick: Function
35
37
  };
36
38
  constructor() {
37
39
  super();
@@ -1,13 +1,14 @@
1
1
  import { ServiceContainer } from '../../services/ServiceContainer.js';
2
2
  import { BaseCustomWebComponentLazyAppend } from '@node-projects/base-custom-webcomponent';
3
+ import { PropertyGrid } from './PropertyGrid.js';
3
4
  import { InstanceServiceContainer } from '../../services/InstanceServiceContainer.js';
4
5
  export declare class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
5
6
  static readonly style: CSSStyleSheet;
6
7
  static readonly template: HTMLTemplateElement;
8
+ propertyGrid: PropertyGrid;
7
9
  private _type;
8
10
  private _id;
9
11
  private _content;
10
- private _pg;
11
12
  private _selectionChangedHandler;
12
13
  private _instanceServiceContainer;
13
14
  private _idRect;
@@ -54,10 +54,10 @@ export class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
54
54
  <span id="contentSpan" class="desc">Content:</span><input type="text" id="content">
55
55
  </div>
56
56
  <node-projects-web-component-designer-property-grid id="pg"></node-projects-web-component-designer-property-grid>`;
57
+ propertyGrid;
57
58
  _type;
58
59
  _id;
59
60
  _content;
60
- _pg;
61
61
  _selectionChangedHandler;
62
62
  _instanceServiceContainer;
63
63
  _idRect;
@@ -71,7 +71,7 @@ export class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
71
71
  this._type = this._getDomElement('type');
72
72
  this._id = this._getDomElement('id');
73
73
  this._content = this._getDomElement('content');
74
- this._pg = this._getDomElement('pg');
74
+ this.propertyGrid = this._getDomElement('pg');
75
75
  this._idRect = this._getDomElement('idRect');
76
76
  this._contentRect = this._getDomElement('contentRect');
77
77
  this._innerRect = this._getDomElement('innerRect');
@@ -132,13 +132,13 @@ export class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
132
132
  };
133
133
  }
134
134
  set serviceContainer(value) {
135
- this._pg.serviceContainer = value;
135
+ this.propertyGrid.serviceContainer = value;
136
136
  }
137
137
  set instanceServiceContainer(value) {
138
138
  this._instanceServiceContainer = value;
139
139
  this._selectionChangedHandler?.dispose();
140
140
  this._selectionChangedHandler = this._instanceServiceContainer.selectionService.onSelectionChanged.on(async (e) => {
141
- this._pg.instanceServiceContainer = value;
141
+ this.propertyGrid.instanceServiceContainer = value;
142
142
  await sleep(20); // delay assignment a little bit, so onblur above could still set the value.
143
143
  if (this._instanceServiceContainer.selectionService?.primarySelection?.isRootItem) {
144
144
  this._configButton.style.display = 'none';
@@ -183,7 +183,7 @@ export class PropertyGridWithHeader extends BaseCustomWebComponentLazyAppend {
183
183
  PropertyGridPropertyList.refreshIsSetElementAndEditorForDesignItems(this._innerRect, this._propertiesService.innerHtmlProperty, this._instanceServiceContainer.selectionService.selectedElements, this._propertiesService);
184
184
  }
185
185
  });
186
- this._pg.instanceServiceContainer = value;
186
+ this.propertyGrid.instanceServiceContainer = value;
187
187
  }
188
188
  }
189
189
  customElements.define('node-projects-web-component-designer-property-grid-with-header', PropertyGridWithHeader);
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.144",
4
+ "version": "0.1.145",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",