@node-projects/web-component-designer-visualization-addons 0.1.2 → 0.1.3

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.
@@ -2,11 +2,9 @@ import { IScriptMultiplexValue } from "../interfaces/IScriptMultiplexValue.js";
2
2
  import { VisualisationElementScript } from "../interfaces/VisualisationElementScript.js";
3
3
  import { VisualizationHandler } from "../interfaces/VisualizationHandler.js";
4
4
  import { ScriptCommands } from "./ScriptCommands.js";
5
- import { VisualizationUiHandler } from "../interfaces/VisualizationUiHandler.js";
6
5
  export declare class ScriptSystem {
7
6
  _visualizationHandler: VisualizationHandler;
8
- _visualizationUiHandler: VisualizationUiHandler;
9
- constructor(visualizationHandler: VisualizationHandler, visualizationUiHandler: VisualizationUiHandler);
7
+ constructor(visualizationHandler: VisualizationHandler);
10
8
  execute(scriptCommands: ScriptCommands[], outerContext: {
11
9
  event: Event;
12
10
  element: Element;
@@ -4,8 +4,7 @@ import { parseBindingString } from "../helpers/BindingsHelper.js";
4
4
  import Long from 'long';
5
5
  export class ScriptSystem {
6
6
  _visualizationHandler;
7
- _visualizationUiHandler;
8
- constructor(visualizationHandler, visualizationUiHandler) {
7
+ constructor(visualizationHandler) {
9
8
  this._visualizationHandler = visualizationHandler;
10
9
  }
11
10
  async execute(scriptCommands, outerContext) {
@@ -15,11 +14,6 @@ export class ScriptSystem {
15
14
  }
16
15
  async runScriptCommand(command, context) {
17
16
  switch (command.type) {
18
- case 'CloseDialog': {
19
- //const dialogdId = await this.getValue(c.dialogId, outerContext);
20
- this._visualizationUiHandler.closeDialog(context.element);
21
- break;
22
- }
23
17
  case 'OpenUrl': {
24
18
  window.open(await this.getValue(command.url, context), command.target);
25
19
  break;
@@ -35,11 +29,6 @@ export class ScriptSystem {
35
29
  console[target](message);
36
30
  break;
37
31
  }
38
- case 'SwitchLanguage': {
39
- const language = await this.getValue(command.language, context);
40
- this._visualizationUiHandler.switchLanguage(language);
41
- break;
42
- }
43
32
  case 'ToggleSignalValue': {
44
33
  const signal = await this.getValue(command.signal, context);
45
34
  let state = await this._visualizationHandler.getState(signal);
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.2",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",