@node-projects/web-component-designer-visualization-addons 0.1.58 → 0.1.59
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.
|
@@ -104,7 +104,7 @@ export class SimpleScriptEditor extends BaseCustomWebComponentConstructorAppend
|
|
|
104
104
|
if (!property.specialAllreadyAdded) {
|
|
105
105
|
//@ts-ignore
|
|
106
106
|
property.specialAllreadyAdded = true;
|
|
107
|
-
if (typeof currentValue === 'object' && currentValue !== null) {
|
|
107
|
+
if ((typeof currentValue === 'object' && currentValue !== null) || property.format === 'complex') {
|
|
108
108
|
let rB = document.createElement('button');
|
|
109
109
|
rB.style.height = 'calc(100% - 6px)';
|
|
110
110
|
rB.style.position = 'relative';
|
|
@@ -121,7 +121,8 @@ export class SimpleScriptEditor extends BaseCustomWebComponentConstructorAppend
|
|
|
121
121
|
let d = document.createElement('div');
|
|
122
122
|
d.style.display = 'flex';
|
|
123
123
|
let sp = document.createElement('span');
|
|
124
|
-
|
|
124
|
+
if (currentValue)
|
|
125
|
+
sp.innerText = 'complex: ' + JSON.stringify(currentValue);
|
|
125
126
|
sp.style.overflow = 'hidden';
|
|
126
127
|
sp.style.whiteSpace = 'nowrap';
|
|
127
128
|
sp.style.textOverflow = 'ellipsis';
|
|
@@ -227,9 +227,16 @@ export interface ClearSiganlsInGroup {
|
|
|
227
227
|
}
|
|
228
228
|
export interface Condition {
|
|
229
229
|
type: 'Condition';
|
|
230
|
+
/**
|
|
231
|
+
* Name of the value1
|
|
232
|
+
* @TJS-format complex
|
|
233
|
+
*/
|
|
230
234
|
value1: any;
|
|
231
235
|
value2?: any;
|
|
232
236
|
comparisonType: '==null' | '!=null' | '==true' | '==false' | '==' | '!=' | '>' | '<' | '>=' | '<=';
|
|
237
|
+
/**
|
|
238
|
+
* Name of the label to jumpe to when condition is true
|
|
239
|
+
*/
|
|
233
240
|
trueGotoLabel?: string;
|
|
234
241
|
trueScriptName?: string;
|
|
235
242
|
trueScriptType?: string;
|
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.59",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|