@node-projects/web-component-designer-visualization-addons 0.1.73 → 0.1.75

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.
@@ -196,19 +196,20 @@ export interface SetElementProperty {
196
196
  */
197
197
  target: 'property' | 'attribute' | 'css' | 'class';
198
198
  /**
199
- * where to search for the elements.
200
- * element
199
+ * where to search for the elements (used as a start)
200
+ * element = currentElement
201
201
  * container = screen or customControl
202
202
  * @default container
203
203
  */
204
204
  targetSelectorTarget: 'container' | 'element';
205
205
  /**
206
206
  * wich parent, 0 = current, 1 = first parent, 2 = ...
207
+ * of the targetSelectorTarget
207
208
  * @default 0
208
209
  */
209
210
  parentIndex: number;
210
211
  /**
211
- * css selector to find elements, if empty the targetSelectorTarget is used
212
+ * css selector to find elements on targetSelectorTarget, if empty the targetSelectorTarget directly is used
212
213
  */
213
214
  targetSelector: string;
214
215
  /**
@@ -186,8 +186,8 @@ export class ScriptSystem {
186
186
  const value = await this.getValue(command.value, context);
187
187
  const parentIndex = await this.getValue(command.parentIndex ?? 0, context);
188
188
  const target = await this.getValue(command.target ?? 'property', context);
189
- const targetSelectorTarget = await this.getValue(command.targetSelectorTarget ?? 'property', context);
190
- const targetSelector = await this.getValue(command.targetSelector ?? 'container', context);
189
+ const targetSelectorTarget = await this.getValue(command.targetSelectorTarget ?? 'container', context);
190
+ const targetSelector = await this.getValue(command.targetSelector, context);
191
191
  const mode = await this.getValue(command.mode, context);
192
192
  let elements = this.getTargetFromTargetSelector(context, targetSelectorTarget, parentIndex, targetSelector);
193
193
  for (let e of elements) {
@@ -3,6 +3,7 @@ import { BindingsHelper } from "../helpers/BindingsHelper.js";
3
3
  export declare class VisualizationBindingsService implements IBindingService {
4
4
  constructor(bindingsHelper: BindingsHelper);
5
5
  private _bindingsHelper;
6
+ static type: string;
6
7
  getBindings(designItem: IDesignItem): (IBinding & {
7
8
  converter: Record<string, any>;
8
9
  })[];
@@ -4,6 +4,7 @@ export class VisualizationBindingsService {
4
4
  this._bindingsHelper = bindingsHelper;
5
5
  }
6
6
  _bindingsHelper;
7
+ static type = 'visualization-binding';
7
8
  getBindings(designItem) {
8
9
  const iobBindings = Array.from(this._bindingsHelper.getBindings(designItem.element));
9
10
  return iobBindings.map(x => ({
@@ -15,7 +16,9 @@ export class VisualizationBindingsService {
15
16
  expression: x[1].expression,
16
17
  expressionTwoWay: x[1].expressionTwoWay,
17
18
  converter: x[1].converter,
18
- type: x[1].type,
19
+ //type: x[1].type,
20
+ type: VisualizationBindingsService.type,
21
+ service: this,
19
22
  changedEvents: x[1].events,
20
23
  historic: x[1].historic,
21
24
  writeBackSignal: x[1].writeBackSignal,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "web-component-designer addon for visualizations",
3
3
  "name": "@node-projects/web-component-designer-visualization-addons",
4
- "version": "0.1.73",
4
+ "version": "0.1.75",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",