@node-projects/web-component-designer-visualization-addons 0.1.107 → 0.1.108
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.
|
@@ -29,14 +29,16 @@ export declare class BindingsEditor extends BaseCustomWebComponentConstructorApp
|
|
|
29
29
|
value: any;
|
|
30
30
|
}[];
|
|
31
31
|
objectValueType: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
protected _property: IProperty;
|
|
33
|
+
protected _binding: IBinding & {
|
|
34
|
+
converter: Record<string, any>;
|
|
35
|
+
};
|
|
36
|
+
protected _bindingTarget: BindingTarget;
|
|
37
|
+
protected _serviceContainer: ServiceContainer;
|
|
38
|
+
protected _instanceServiceContainer: InstanceServiceContainer;
|
|
39
|
+
protected _shell: VisualizationShell;
|
|
40
|
+
protected _activeRow: number;
|
|
41
|
+
protected _objNmInput: HTMLInputElement;
|
|
40
42
|
constructor(property: IProperty, binding: IBinding & {
|
|
41
43
|
converter: Record<string, any>;
|
|
42
44
|
}, bindingTarget: BindingTarget, serviceContainer: ServiceContainer, instanceServiceContainer: InstanceServiceContainer, shell: VisualizationShell);
|
|
@@ -10,12 +10,12 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
|
|
|
10
10
|
<div class="row">
|
|
11
11
|
<span style="cursor: pointer;" title="to use multiple objects, seprate them with semicolon (;). access signal objects in properties via ?propertyName, access the propertyValue via ??propertyName. Bind to signal configurations via $objectId. You could also use signals inside of a Signal Name via {name}">objects</span>
|
|
12
12
|
</div>
|
|
13
|
-
<div style="display:flex;align-items: flex-end;">
|
|
14
|
-
<input id="
|
|
13
|
+
<div id="groupObjectName" style="display:flex;align-items: flex-end;">
|
|
14
|
+
<input id="objectName" class="row" value="{{?this.objectNames::change}}" style="flex-grow: 1;">
|
|
15
15
|
<button @click="_clear" style="height: 22px">X</button>
|
|
16
16
|
<button @click="_select" style="height: 22px">...</button>
|
|
17
17
|
</div>
|
|
18
|
-
<div class="row">
|
|
18
|
+
<div id="groupObjectType" class="row">
|
|
19
19
|
<label style="white-space: nowrap; margin-right: 4px;" title="if set, the value is converted to the type before binding is applied">type :</label>
|
|
20
20
|
<select class="row" value="{{?this.objectValueType}}">
|
|
21
21
|
<option selected value="">ignore</option>
|
|
@@ -24,13 +24,13 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
|
|
|
24
24
|
<option value="string">string</string>
|
|
25
25
|
</select>
|
|
26
26
|
</div>
|
|
27
|
-
<div class="row">
|
|
27
|
+
<div id="groupBindingMode" class="row">
|
|
28
28
|
<input type="checkbox" disabled="[[!this.twoWayPossible]]" checked="{{this.twoWay::change}}" @change="_refresh">
|
|
29
29
|
<span>two way binding</span>
|
|
30
30
|
<span css:display="[[this.twoWay ? 'inline' : 'none']]" style="margin-left: 15px">events: </span>
|
|
31
31
|
<input css:display="[[this.twoWay ? 'inline-block' : 'none']]" title="to use multiple events, seprate them with semicolon (;)" class="row" value="{{?this.events::change}}" style="flex-grow: 1;">
|
|
32
32
|
</div>
|
|
33
|
-
<div class="row" style="position: relative">
|
|
33
|
+
<div id="groupinvert" class="row" style="position: relative">
|
|
34
34
|
<input type="checkbox" checked="{{this.invert::change}}">
|
|
35
35
|
<span>invert logic</span>
|
|
36
36
|
<button css:border="[[this.historic ? 'solid lime 5px' : 'none']]" style="position: absolute; right: 1px; top: 5px; padding: 10px;" @click="showHistoric">historic</button>
|
|
@@ -193,7 +193,7 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
|
|
|
193
193
|
constructor(property, binding, bindingTarget, serviceContainer, instanceServiceContainer, shell) {
|
|
194
194
|
super();
|
|
195
195
|
super._restoreCachedInititalValues();
|
|
196
|
-
this._objNmInput = this._getDomElement('
|
|
196
|
+
this._objNmInput = this._getDomElement('objectName');
|
|
197
197
|
this._property = property;
|
|
198
198
|
this._binding = binding;
|
|
199
199
|
this._bindingTarget = bindingTarget;
|
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.108",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|