@node-projects/web-component-designer-visualization-addons 0.1.64 → 0.1.66

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.
@@ -45,15 +45,21 @@ export interface ShowMessageBox {
45
45
  * message text
46
46
  */
47
47
  message: string;
48
+ /**
49
+ * message type
50
+ */
51
+ messageType?: 'info' | 'warning' | 'error';
48
52
  /**
49
53
  * message text
50
54
  */
51
- buttons: 'Ok' | 'OkCancel' | 'YesNo' | 'RetryCancel' | 'YesNoCancel' | 'AbortRetryIgnore' | 'CancelTryContinue';
55
+ buttons: 'ok' | 'okCancel' | 'yesNo' | 'retryCancel' | 'yesNoCancel' | 'abortRetryIgnore' | 'cancelTryContinue';
52
56
  /**
53
57
  * number of the clicked button
54
58
  * @TJS-format signal
55
59
  */
56
60
  resultSignal: string;
61
+ width?: string;
62
+ height?: string;
57
63
  }
58
64
  export interface CloseDialog {
59
65
  type: 'CloseDialog';
@@ -265,7 +271,7 @@ export interface ExportSignalValuesAsJson {
265
271
  /**
266
272
  * wait for updated values from the connection
267
273
  */
268
- updateTagValues?: number;
274
+ waitForUpdatedValues?: boolean;
269
275
  /**
270
276
  * download filename
271
277
  */
@@ -1,4 +1,3 @@
1
- import { IScriptMultiplexValue } from "../interfaces/IScriptMultiplexValue.js";
2
1
  import { VisualisationElementScript } from "../interfaces/VisualisationElementScript.js";
3
2
  import { VisualizationHandler } from "../interfaces/VisualizationHandler.js";
4
3
  import { ScriptCommands } from "./ScriptCommands.js";
@@ -17,7 +16,7 @@ export declare class ScriptSystem {
17
16
  runExternalScript(name: string, type: string): Promise<void>;
18
17
  runScriptCommand<T extends ScriptCommands>(command: T, context: contextType): Promise<void>;
19
18
  getTargetFromTargetSelector(context: contextType, targetSelectorTarget: 'currentScreen' | 'parentScreen' | 'currentElement' | 'parentElement', targetSelector: string): Iterable<Element>;
20
- getValue<T>(value: string | number | boolean | IScriptMultiplexValue, outerContext: contextType): Promise<any>;
19
+ getValue<T>(value: T, outerContext: contextType): Promise<T>;
21
20
  getStateOrFieldOrParameter(name: string, context: contextType): Promise<any>;
22
21
  parseStringWithValues(text: string, context: contextType): Promise<string>;
23
22
  getSignaName(name: string, outerContext: contextType): string;
@@ -123,7 +123,7 @@ export class ScriptSystem {
123
123
  case 'IncrementSignalValue': {
124
124
  const signal = await this.getValue(command.signal, context);
125
125
  let state = await this._visualizationHandler.getState(this.getSignaName(signal, context));
126
- await this._visualizationHandler.setState(this.getSignaName(signal, context), state.val + await this.getValue(command.value, context));
126
+ await this._visualizationHandler.setState(this.getSignaName(signal, context), (state.val + await this.getValue(command.value, context)));
127
127
  break;
128
128
  }
129
129
  case 'DecrementSignalValue': {
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.64",
4
+ "version": "0.1.66",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",