@node-projects/web-component-designer-visualization-addons 0.1.52 → 0.1.53
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.
|
@@ -42,6 +42,10 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
|
|
|
42
42
|
<div class="row">
|
|
43
43
|
<node-projects-code-view-monaco id="expression" single-row language="javascript" style="width: 100%; min-height: 17px; height: 17px; position: relative; overflow: hidden; resize: vertical;" .code="{{?this.expression}}"></iobroker-webui-monaco-editor>
|
|
44
44
|
</div>
|
|
45
|
+
<div class="row">
|
|
46
|
+
<span style="text-wrap: nowrap" style="cursor: pointer;" title="write back the value build by a formula to a signal">write back signal :</span>
|
|
47
|
+
<input style="width: 100% margin-left: 5px;" .disabled="[[!this.expression]]" .value="{{?this.writeBackSignal}}" >
|
|
48
|
+
</div>
|
|
45
49
|
<div class="row">
|
|
46
50
|
<span style="cursor: pointer;" title="javascript expression. access property with 'value'">formula write back (two way)</span>
|
|
47
51
|
</div>
|
|
@@ -171,6 +175,7 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
|
|
|
171
175
|
twoWayPossible = false;
|
|
172
176
|
twoWay = false;
|
|
173
177
|
expression = '';
|
|
178
|
+
writeBackSignal = '';
|
|
174
179
|
expressionTwoWay = '';
|
|
175
180
|
historic;
|
|
176
181
|
objectNames = '';
|
|
@@ -204,6 +209,7 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
|
|
|
204
209
|
if (this._binding) {
|
|
205
210
|
this.twoWay = this._binding.mode == BindingMode.twoWay;
|
|
206
211
|
this.expression = this._binding.expression;
|
|
212
|
+
this.writeBackSignal = this._binding.writeBackSignal;
|
|
207
213
|
this.expressionTwoWay = this._binding.expressionTwoWay;
|
|
208
214
|
this.historic = this._binding.historic;
|
|
209
215
|
this.invert = this._binding.invert;
|
|
@@ -20,5 +20,5 @@ export declare class ScriptSystem {
|
|
|
20
20
|
parseStringWithValues(text: string, context: contextType): Promise<string>;
|
|
21
21
|
getSignaName(name: string, outerContext: contextType): string;
|
|
22
22
|
static extractPart(obj: any, propertyPath: string): any;
|
|
23
|
-
assignAllScripts(source: string, javascriptCode: string, shadowRoot: ShadowRoot, instance: HTMLElement, visualizationHandler: VisualizationHandler, context
|
|
23
|
+
assignAllScripts(source: string, javascriptCode: string, shadowRoot: ShadowRoot, instance: HTMLElement, visualizationHandler: VisualizationHandler, context?: any, assignExternalScript?: (element: Element, event: string, scriptData: any) => void): Promise<VisualisationElementScript>;
|
|
24
24
|
}
|
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.53",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|