@node-projects/web-component-designer-visualization-addons 0.1.106 → 0.1.107
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,6 +2,7 @@ import { BasePropertyEditor, IProperty, ValueType } from "@node-projects/web-com
|
|
|
2
2
|
import { VisualizationShell } from "../interfaces/VisualizationShell.js";
|
|
3
3
|
export declare class SignalPropertyEditor extends BasePropertyEditor<HTMLElement> {
|
|
4
4
|
_ip: HTMLInputElement;
|
|
5
|
+
protected _container: HTMLDivElement;
|
|
5
6
|
constructor(property: IProperty, shell: VisualizationShell);
|
|
6
7
|
refreshValue(valueType: ValueType, value: any): void;
|
|
7
8
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { BasePropertyEditor } from "@node-projects/web-component-designer";
|
|
2
2
|
export class SignalPropertyEditor extends BasePropertyEditor {
|
|
3
3
|
_ip;
|
|
4
|
+
_container;
|
|
4
5
|
constructor(property, shell) {
|
|
5
6
|
super(property);
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
this._container = document.createElement('div');
|
|
8
|
+
this._container.style.display = 'flex';
|
|
8
9
|
this._ip = document.createElement('input');
|
|
9
10
|
this._ip.onchange = (e) => this._valueChanged(this._ip.value);
|
|
10
11
|
this._ip.onfocus = (e) => {
|
|
11
12
|
this._ip.selectionStart = 0;
|
|
12
13
|
this._ip.selectionEnd = this._ip.value?.length;
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
this._container.appendChild(this._ip);
|
|
15
16
|
let btn = document.createElement('button');
|
|
16
17
|
btn.textContent = '...';
|
|
17
18
|
btn.onclick = async () => {
|
|
@@ -30,8 +31,8 @@ export class SignalPropertyEditor extends BasePropertyEditor {
|
|
|
30
31
|
this._valueChanged(this._ip.value);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
-
this.element =
|
|
34
|
+
this._container.appendChild(btn);
|
|
35
|
+
this.element = this._container;
|
|
35
36
|
}
|
|
36
37
|
refreshValue(valueType, value) {
|
|
37
38
|
if (value == null)
|
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.107",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|