@node-projects/web-component-designer-visualization-addons 0.1.78 → 0.1.80
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.
|
@@ -92,6 +92,14 @@ export class SimpleScriptEditor extends BaseCustomWebComponentConstructorAppend
|
|
|
92
92
|
pg.selectedObject = data.value ?? {};
|
|
93
93
|
else
|
|
94
94
|
pg.selectedObject = {};
|
|
95
|
+
pg.bindingDoubleClicked = (b) => {
|
|
96
|
+
if (b.bindabletype == 'property') {
|
|
97
|
+
this._propertygrid.setPropertyValue('source', 'property');
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this._propertygrid.setPropertyValue('source', 'signal');
|
|
101
|
+
}
|
|
102
|
+
};
|
|
95
103
|
let res = await this.visualizationShell.openConfirmation(pg, { x: 100, y: 100, width: 400, height: 400, parent: this });
|
|
96
104
|
if (res) {
|
|
97
105
|
this._propertygrid.setPropertyValue(data.propertyPath, pg.selectedObject);
|
|
@@ -2,12 +2,13 @@ import { IProperty, PropertyGrid } from '@node-projects/propertygrid.webcomponen
|
|
|
2
2
|
import { WbRenderEventType } from "types";
|
|
3
3
|
import { VisualizationHandler } from '../interfaces/VisualizationHandler';
|
|
4
4
|
import { VisualizationShell } from '../interfaces/VisualizationShell';
|
|
5
|
-
import { InstanceServiceContainer, ServiceContainer } from '@node-projects/web-component-designer';
|
|
5
|
+
import { IBindableObject, InstanceServiceContainer, ServiceContainer } from '@node-projects/web-component-designer';
|
|
6
6
|
export declare class VisualizationPropertyGrid extends PropertyGrid {
|
|
7
7
|
serviceContainer: ServiceContainer;
|
|
8
8
|
instanceServiceContainer: InstanceServiceContainer;
|
|
9
9
|
visualizationHandler: VisualizationHandler;
|
|
10
10
|
visualizationShell: VisualizationShell;
|
|
11
11
|
constructor();
|
|
12
|
+
bindingDoubleClicked: (bindableObject: IBindableObject<any>) => void;
|
|
12
13
|
getEditorForType(property: IProperty, currentValue: any, propertyPath: string, wbRender: WbRenderEventType, additionalInfo?: any): Promise<HTMLElement>;
|
|
13
14
|
}
|
|
@@ -9,6 +9,7 @@ export class VisualizationPropertyGrid extends PropertyGrid {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
11
11
|
}
|
|
12
|
+
bindingDoubleClicked;
|
|
12
13
|
async getEditorForType(property, currentValue, propertyPath, wbRender, additionalInfo) {
|
|
13
14
|
if (this.getSpecialEditorForType) {
|
|
14
15
|
let edt = await this.getSpecialEditorForType(property, currentValue, propertyPath, wbRender, additionalInfo);
|
|
@@ -52,6 +53,8 @@ export class VisualizationPropertyGrid extends PropertyGrid {
|
|
|
52
53
|
b.title = 'select signal...';
|
|
53
54
|
const abortController = new AbortController();
|
|
54
55
|
b.objectDoubleclicked.on(() => {
|
|
56
|
+
if (this.bindingDoubleClicked)
|
|
57
|
+
this.bindingDoubleClicked(b.selectedObject);
|
|
55
58
|
abortController.abort();
|
|
56
59
|
inp.value = b.selectedObject.fullName;
|
|
57
60
|
this.setPropertyValue(propertyPath, inp.value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScriptCommands, SetElementProperty } from "./ScriptCommands";
|
|
2
2
|
export declare class ScriptUpgrades {
|
|
3
|
-
static upgradeScriptCommand(scriptCommand: ScriptCommands):
|
|
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 | SetElementProperty | 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.80",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@adobe/css-tools": "^4.4.0",
|
|
17
|
-
"@blockly/zoom-to-fit": "^6.0.
|
|
18
|
-
"@node-projects/base-custom-webcomponent": ">=0.
|
|
19
|
-
"@node-projects/propertygrid.webcomponent": ">=1.
|
|
17
|
+
"@blockly/zoom-to-fit": "^6.0.9",
|
|
18
|
+
"@node-projects/base-custom-webcomponent": ">=0.27.8",
|
|
19
|
+
"@node-projects/propertygrid.webcomponent": ">=1.2.3",
|
|
20
20
|
"@node-projects/splitview.webcomponent": ">=1.0.1",
|
|
21
|
-
"@node-projects/web-component-designer": ">=0.1.
|
|
22
|
-
"@node-projects/web-component-designer-codeview-monaco": ">=0.1.
|
|
23
|
-
"@node-projects/web-component-designer-widgets-wunderbaum": ">=0.1.
|
|
21
|
+
"@node-projects/web-component-designer": ">=0.1.224",
|
|
22
|
+
"@node-projects/web-component-designer-codeview-monaco": ">=0.1.32",
|
|
23
|
+
"@node-projects/web-component-designer-widgets-wunderbaum": ">=0.1.29",
|
|
24
24
|
"blockly": "^11.1.1",
|
|
25
25
|
"long": "^5.2.3"
|
|
26
26
|
},
|