@node-projects/web-component-designer-visualization-addons 0.1.116 → 0.1.117
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.
|
@@ -2,7 +2,13 @@ import { VisualizationBinding } from "../interfaces/VisualizationBinding.js";
|
|
|
2
2
|
import { State, VisualizationHandler } from "../interfaces/VisualizationHandler.js";
|
|
3
3
|
import { BindingTarget } from "@node-projects/web-component-designer/dist/elements/item/BindingTarget.js";
|
|
4
4
|
export type SpecialValueHandler = {
|
|
5
|
-
valueProvider: (propertyName: string
|
|
5
|
+
valueProvider: (propertyName: string, context: {
|
|
6
|
+
element: Element;
|
|
7
|
+
binding: namedBinding;
|
|
8
|
+
relativeSignalPath: string;
|
|
9
|
+
root: HTMLElement;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}) => any;
|
|
6
12
|
valueChangedCallbacks: Map<string, (() => void)[]>;
|
|
7
13
|
};
|
|
8
14
|
export declare const bindingPrefixProperty = "bind-prop:";
|
|
@@ -675,7 +675,7 @@ export class BindingsHelper {
|
|
|
675
675
|
}
|
|
676
676
|
else if (s[0] === '§') {
|
|
677
677
|
const mS = s.substring(1);
|
|
678
|
-
const value = specialValueHandler.valueProvider(mS);
|
|
678
|
+
const value = specialValueHandler.valueProvider(mS, { element, binding, relativeSignalPath, root });
|
|
679
679
|
this.handleValueChanged(element, binding, value, valuesObject, i, signalVars, true, relativeSignalPath);
|
|
680
680
|
if (!specialValueHandler.valueChangedCallbacks)
|
|
681
681
|
specialValueHandler.valueChangedCallbacks = new Map();
|
|
@@ -685,7 +685,7 @@ export class BindingsHelper {
|
|
|
685
685
|
specialValueHandler.valueChangedCallbacks.set(mS, changeList);
|
|
686
686
|
}
|
|
687
687
|
changeList.push(() => {
|
|
688
|
-
const value = specialValueHandler.valueProvider(mS);
|
|
688
|
+
const value = specialValueHandler.valueProvider(mS, { element, binding, relativeSignalPath, root });
|
|
689
689
|
this.handleValueChanged(element, binding, value, valuesObject, i, signalVars, true, relativeSignalPath);
|
|
690
690
|
});
|
|
691
691
|
}
|
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.
|
|
4
|
+
"version": "0.1.117",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|