@node-projects/web-component-designer-visualization-addons 0.1.130 → 0.1.132
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.
|
@@ -106,7 +106,7 @@ export class SimpleScriptEditor extends BaseCustomWebComponentConstructorAppend
|
|
|
106
106
|
pg.setPropertyValue('name', b.fullName);
|
|
107
107
|
pg.refresh();
|
|
108
108
|
};
|
|
109
|
-
let res = await this.visualizationShell.openConfirmation(pg, { x: 100, y: 100, width: 400, height:
|
|
109
|
+
let res = await this.visualizationShell.openConfirmation(pg, { x: 100, y: 100, width: 400, height: 500, parent: this });
|
|
110
110
|
if (res) {
|
|
111
111
|
this._propertygrid.setPropertyValue(data.propertyPath, pg.selectedObject);
|
|
112
112
|
this._propertygrid.refresh();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type ScriptCommands = RunnableScriptCommands | Comment | Condition | Exit | Label | Goto;
|
|
2
|
-
export declare type RunnableScriptCommands = OpenScreen | OpenUrl | OpenDialog | CloseDialog | ToggleSignalValue |
|
|
2
|
+
export declare type RunnableScriptCommands = OpenScreen | OpenUrl | OpenDialog | CloseDialog | ToggleSignalValue | ToggleSignalValueThroughList | SetSignalValue | IncrementSignalValue | DecrementSignalValue | SetBitInSignal | ClearBitInSignal | ToggleBitInSignal | Console | CalculateSignalValue | Javascript | SetElementProperty | Delay | SwitchLanguage | Login | Logout | SubscribeSignal | UnsubscribeSignal | WriteSignalsInGroup | ClearSignalsInGroup | RunScript | CopySignalValuesFromFolder | ShowMessageBox | ExportSignalValuesAsJson | ImportSignalValuesFromJson;
|
|
3
3
|
/**
|
|
4
4
|
* signal - a signal (the default)
|
|
5
5
|
* property - a property defined in the current screen/control
|
|
@@ -114,7 +114,7 @@ export interface ToggleSignalValue {
|
|
|
114
114
|
target: signalTarget;
|
|
115
115
|
additionalData?: string;
|
|
116
116
|
}
|
|
117
|
-
export interface
|
|
117
|
+
export interface ToggleSignalValueThroughList {
|
|
118
118
|
type: 'ToggleSignalValueThroughList';
|
|
119
119
|
valueList: (string | number | boolean)[];
|
|
120
120
|
/**
|
|
@@ -374,12 +374,12 @@ export class ScriptSystem {
|
|
|
374
374
|
}
|
|
375
375
|
case 'signal': {
|
|
376
376
|
let sng = await this._visualizationHandler.getState(this.getSignalName(value.name, outerContext));
|
|
377
|
-
return sng
|
|
377
|
+
return sng?.val;
|
|
378
378
|
}
|
|
379
379
|
case 'signalInProperty': {
|
|
380
380
|
const sngName = deepValue(outerContext.root, value.name);
|
|
381
381
|
let sng = await this._visualizationHandler.getState(this.getSignalName(sngName, outerContext));
|
|
382
|
-
return sng
|
|
382
|
+
return sng?.val;
|
|
383
383
|
}
|
|
384
384
|
case 'event': {
|
|
385
385
|
let obj = outerContext.event;
|
|
@@ -405,7 +405,7 @@ export class ScriptSystem {
|
|
|
405
405
|
if (text != null) {
|
|
406
406
|
const signal = await this.parseStringWithValues(text, outerContext);
|
|
407
407
|
const state = await this._visualizationHandler.getState(this.getSignalName(signal, outerContext));
|
|
408
|
-
return state
|
|
408
|
+
return state?.val;
|
|
409
409
|
}
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScriptCommands, SetElementProperty } from "./ScriptCommands";
|
|
2
2
|
export declare class ScriptUpgrades {
|
|
3
|
-
static upgradeScriptCommand(scriptCommand: ScriptCommands): SetElementProperty | import("./ScriptCommands").OpenScreen | import("./ScriptCommands").OpenUrl | import("./ScriptCommands").OpenDialog | import("./ScriptCommands").CloseDialog | import("./ScriptCommands").ToggleSignalValue | import("./ScriptCommands").
|
|
3
|
+
static upgradeScriptCommand(scriptCommand: ScriptCommands): SetElementProperty | import("./ScriptCommands").OpenScreen | import("./ScriptCommands").OpenUrl | import("./ScriptCommands").OpenDialog | import("./ScriptCommands").CloseDialog | import("./ScriptCommands").ToggleSignalValue | import("./ScriptCommands").ToggleSignalValueThroughList | import("./ScriptCommands").SetSignalValue | import("./ScriptCommands").IncrementSignalValue | import("./ScriptCommands").DecrementSignalValue | import("./ScriptCommands").SetBitInSignal | import("./ScriptCommands").ClearBitInSignal | import("./ScriptCommands").ToggleBitInSignal | import("./ScriptCommands").Console | import("./ScriptCommands").CalculateSignalValue | import("./ScriptCommands").Javascript | import("./ScriptCommands").Delay | import("./ScriptCommands").SwitchLanguage | import("./ScriptCommands").Login | import("./ScriptCommands").Logout | import("./ScriptCommands").SubscribeSignal | import("./ScriptCommands").UnsubscribeSignal | import("./ScriptCommands").WriteSignalsInGroup | import("./ScriptCommands").ClearSignalsInGroup | import("./ScriptCommands").RunScript | import("./ScriptCommands").CopySignalValuesFromFolder | import("./ScriptCommands").ShowMessageBox | import("./ScriptCommands").ExportSignalValuesAsJson | import("./ScriptCommands").ImportSignalValuesFromJson | import("./ScriptCommands").Comment | import("./ScriptCommands").Condition | import("./ScriptCommands").Exit | import("./ScriptCommands").Label | import("./ScriptCommands").Goto;
|
|
4
4
|
static upgradeSetElementProperty(scriptCommand: SetElementProperty): SetElementProperty;
|
|
5
5
|
}
|
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.132",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|