@node-projects/web-component-designer-visualization-addons 0.1.59 → 0.1.61
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.
|
@@ -122,7 +122,9 @@ export class SimpleScriptEditor extends BaseCustomWebComponentConstructorAppend
|
|
|
122
122
|
d.style.display = 'flex';
|
|
123
123
|
let sp = document.createElement('span');
|
|
124
124
|
if (currentValue)
|
|
125
|
-
sp.innerText = '
|
|
125
|
+
sp.innerText = (currentValue.source ?? '') + ': ' + (currentValue.name ?? '');
|
|
126
|
+
else
|
|
127
|
+
sp.innerText = '';
|
|
126
128
|
sp.style.overflow = 'hidden';
|
|
127
129
|
sp.style.whiteSpace = 'nowrap';
|
|
128
130
|
sp.style.textOverflow = 'ellipsis';
|
|
@@ -12,7 +12,7 @@ export class ScriptRefactorService {
|
|
|
12
12
|
for (let c of script.commands) {
|
|
13
13
|
for (let p in c) {
|
|
14
14
|
let cp = c[p];
|
|
15
|
-
if (typeof cp === 'object') {
|
|
15
|
+
if (cp != null && typeof cp === 'object') {
|
|
16
16
|
let mp = cp;
|
|
17
17
|
if (mp.source == 'signal') {
|
|
18
18
|
refactorings.push({ name: mp.name, itemType: 'bindableObject', target: BindingTarget.event, targetName: a[0], service: this, designItem: d, type: 'script', sourceObject: script, display: c.type + '/' + p, refactor: newValue => mp.name = newValue });
|
|
@@ -60,6 +60,14 @@ export class ScriptRefactorService {
|
|
|
60
60
|
if (c.targetSignal)
|
|
61
61
|
refactorings.push({ name: c.targetSignal, itemType: 'bindableObject', target: BindingTarget.event, targetName: a[0], display: c.type + '/signal', service: this, designItem: d, type: 'script', sourceObject: script, refactor: newValue => c.targetSignal = newValue });
|
|
62
62
|
break;
|
|
63
|
+
case 'SubscribeSignal':
|
|
64
|
+
if (c.signal)
|
|
65
|
+
refactorings.push({ name: c.signal, itemType: 'bindableObject', target: BindingTarget.event, targetName: a[0], display: c.type + '/signal', service: this, designItem: d, type: 'script', sourceObject: script, refactor: newValue => c.signal = newValue });
|
|
66
|
+
break;
|
|
67
|
+
case 'UnsubscribeSignal':
|
|
68
|
+
if (c.signal)
|
|
69
|
+
refactorings.push({ name: c.signal, itemType: 'bindableObject', target: BindingTarget.event, targetName: a[0], display: c.type + '/signal', service: this, designItem: d, type: 'script', sourceObject: script, refactor: newValue => c.signal = newValue });
|
|
70
|
+
break;
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
}
|
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.61",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|