@node-projects/web-component-designer-visualization-addons 0.1.70 → 0.1.72
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.
|
@@ -51,10 +51,12 @@ export interface ShowMessageBox {
|
|
|
51
51
|
message: string;
|
|
52
52
|
/**
|
|
53
53
|
* message type
|
|
54
|
+
* @default info
|
|
54
55
|
*/
|
|
55
56
|
messageType?: 'info' | 'warning' | 'error';
|
|
56
57
|
/**
|
|
57
58
|
* message text
|
|
59
|
+
* @default ok
|
|
58
60
|
*/
|
|
59
61
|
buttons: 'ok' | 'okCancel' | 'yesNo' | 'retryCancel' | 'yesNoCancel' | 'abortRetryIgnore' | 'cancelTryContinue';
|
|
60
62
|
/**
|
|
@@ -144,6 +146,9 @@ export interface SetBitInSignal {
|
|
|
144
146
|
* @TJS-format signal
|
|
145
147
|
*/
|
|
146
148
|
signal: string;
|
|
149
|
+
/**
|
|
150
|
+
* @default 0
|
|
151
|
+
*/
|
|
147
152
|
bitNumber: number;
|
|
148
153
|
additionalData?: string;
|
|
149
154
|
}
|
|
@@ -154,6 +159,9 @@ export interface ClearBitInSignal {
|
|
|
154
159
|
* @TJS-format signal
|
|
155
160
|
*/
|
|
156
161
|
signal: string;
|
|
162
|
+
/**
|
|
163
|
+
* @default 0
|
|
164
|
+
*/
|
|
157
165
|
bitNumber: number;
|
|
158
166
|
additionalData?: string;
|
|
159
167
|
}
|
|
@@ -164,6 +172,9 @@ export interface ToggleBitInSignal {
|
|
|
164
172
|
* @TJS-format signal
|
|
165
173
|
*/
|
|
166
174
|
signal: string;
|
|
175
|
+
/**
|
|
176
|
+
* @default 0
|
|
177
|
+
*/
|
|
167
178
|
bitNumber: number;
|
|
168
179
|
additionalData?: string;
|
|
169
180
|
}
|
|
@@ -181,16 +192,19 @@ export interface SetElementProperty {
|
|
|
181
192
|
type: 'SetElementProperty';
|
|
182
193
|
/**
|
|
183
194
|
* what of the elements do you want to set
|
|
195
|
+
* @default property
|
|
184
196
|
*/
|
|
185
197
|
target: 'property' | 'attribute' | 'css' | 'class';
|
|
186
198
|
/**
|
|
187
199
|
* where to search for the elements.
|
|
188
200
|
* element
|
|
189
201
|
* container = screen or customControl
|
|
202
|
+
* @default container
|
|
190
203
|
*/
|
|
191
|
-
targetSelectorTarget: '
|
|
204
|
+
targetSelectorTarget: 'container' | 'element';
|
|
192
205
|
/**
|
|
193
206
|
* wich parent, 0 = current, 1 = first parent, 2 = ...
|
|
207
|
+
* @default 0
|
|
194
208
|
*/
|
|
195
209
|
parentIndex: number;
|
|
196
210
|
/**
|
|
@@ -215,6 +229,7 @@ export interface Delay {
|
|
|
215
229
|
type: 'Delay';
|
|
216
230
|
/**
|
|
217
231
|
* miliseconds to delay
|
|
232
|
+
* @default 500
|
|
218
233
|
*/
|
|
219
234
|
value: number;
|
|
220
235
|
additionalData?: string;
|
|
@@ -223,6 +238,7 @@ export interface Console {
|
|
|
223
238
|
type: 'Console';
|
|
224
239
|
/**
|
|
225
240
|
* target where to log
|
|
241
|
+
* @default log
|
|
226
242
|
*/
|
|
227
243
|
target: 'log' | 'info' | 'debug' | 'warn' | 'error';
|
|
228
244
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScriptCommands, SetElementProperty } from "./ScriptCommands";
|
|
2
2
|
export declare class ScriptUpgrades {
|
|
3
|
-
static upgradeScriptCommand(scriptCommand: ScriptCommands): import("./ScriptCommands").Comment | import("./ScriptCommands").OpenScreen | import("./ScriptCommands").OpenUrl | import("./ScriptCommands").OpenDialog | import("./ScriptCommands").CloseDialog | import("./ScriptCommands").ToggleSignalValue | 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 |
|
|
3
|
+
static upgradeScriptCommand(scriptCommand: ScriptCommands): SetElementProperty | import("./ScriptCommands").Comment | import("./ScriptCommands").OpenScreen | import("./ScriptCommands").OpenUrl | import("./ScriptCommands").OpenDialog | import("./ScriptCommands").CloseDialog | import("./ScriptCommands").ToggleSignalValue | 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").ClearSiganlsInGroup | import("./ScriptCommands").Condition | import("./ScriptCommands").Exit | import("./ScriptCommands").Label | import("./ScriptCommands").RunScript | import("./ScriptCommands").Goto | import("./ScriptCommands").CopySignalValuesFromFolder | import("./ScriptCommands").ShowMessageBox | import("./ScriptCommands").ExportSignalValuesAsJson | import("./ScriptCommands").ImportSignalValuesFromJson;
|
|
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.72",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|