iobroker.webui 1.18.2 → 1.18.5
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.
- package/README.md +9 -0
- package/io-package.json +40 -40
- package/package.json +2 -2
- package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +16 -1
- package/www/index.html +1 -1
- package/www/node_modules/@node-projects/web-component-designer-visualization-addons/dist/services/ScriptRefactorService.js +2 -2
package/README.md
CHANGED
|
@@ -129,6 +129,15 @@ runtime.html?screenName=screen2
|
|
|
129
129
|
Placeholder for next versions:
|
|
130
130
|
### __WORK IN PROGRESS__
|
|
131
131
|
-->
|
|
132
|
+
### 1.18.5 (2024-11-02)
|
|
133
|
+
- compile fix
|
|
134
|
+
|
|
135
|
+
### 1.18.4 (2024-11-02)
|
|
136
|
+
- fix wrong shadow root used
|
|
137
|
+
|
|
138
|
+
### 1.18.3 (2024-11-01)
|
|
139
|
+
- small typo fix
|
|
140
|
+
|
|
132
141
|
### 1.18.2 (2024-11-01)
|
|
133
142
|
- better refcatoring
|
|
134
143
|
|
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "webui",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.5",
|
|
5
5
|
"titleLang": {
|
|
6
6
|
"en": "webui",
|
|
7
7
|
"de": "webui",
|
|
@@ -29,6 +29,45 @@
|
|
|
29
29
|
"zh-cn": "使用万维网传送器的高锰用户接口"
|
|
30
30
|
},
|
|
31
31
|
"news": {
|
|
32
|
+
"1.18.5": {
|
|
33
|
+
"en": "compile fix",
|
|
34
|
+
"de": "kompilator fix",
|
|
35
|
+
"ru": "исправление",
|
|
36
|
+
"pt": "conserto de compilação",
|
|
37
|
+
"nl": "compileer fix",
|
|
38
|
+
"fr": "compiler la correction",
|
|
39
|
+
"it": "compilazione correzione",
|
|
40
|
+
"es": "compilado",
|
|
41
|
+
"pl": "fix kompilacji",
|
|
42
|
+
"uk": "фіксатор",
|
|
43
|
+
"zh-cn": "编译修正"
|
|
44
|
+
},
|
|
45
|
+
"1.18.4": {
|
|
46
|
+
"en": "fix wrong shadow root used",
|
|
47
|
+
"de": "falsche schattenwurzel verwendet",
|
|
48
|
+
"ru": "исправить не тот теневой корень",
|
|
49
|
+
"pt": "corrigir a raiz de sombra errada usada",
|
|
50
|
+
"nl": "gebruikte foute schaduwwortel herstellen",
|
|
51
|
+
"fr": "réparer la mauvaise racine d'ombre utilisée",
|
|
52
|
+
"it": "correggere la radice dell'ombra sbagliata usata",
|
|
53
|
+
"es": "arreglar la raíz de sombra equivocada",
|
|
54
|
+
"pl": "naprawić nieprawidłowy korzeń cieni używany",
|
|
55
|
+
"uk": "виправити неправильний корінь тіні",
|
|
56
|
+
"zh-cn": "修正所使用的阴影根"
|
|
57
|
+
},
|
|
58
|
+
"1.18.3": {
|
|
59
|
+
"en": "small typo fix",
|
|
60
|
+
"de": "kleine typo fix",
|
|
61
|
+
"ru": "маленький тайфун",
|
|
62
|
+
"pt": "pequena correção de tipo",
|
|
63
|
+
"nl": "kleine typfout",
|
|
64
|
+
"fr": "petite correction typographique",
|
|
65
|
+
"it": "piccolo typo fix",
|
|
66
|
+
"es": "pequeño neumático",
|
|
67
|
+
"pl": "mała literówka fix",
|
|
68
|
+
"uk": "маленький типофікс",
|
|
69
|
+
"zh-cn": "小类型修复"
|
|
70
|
+
},
|
|
32
71
|
"1.18.2": {
|
|
33
72
|
"en": "better refcatoring",
|
|
34
73
|
"de": "besser refcatoring",
|
|
@@ -80,45 +119,6 @@
|
|
|
80
119
|
"pl": "fix kompilacja",
|
|
81
120
|
"uk": "фіксувати збірник",
|
|
82
121
|
"zh-cn": "固定编译"
|
|
83
|
-
},
|
|
84
|
-
"1.17.2": {
|
|
85
|
-
"en": "switch combo in complex prop editor",
|
|
86
|
-
"de": "schaltkombination in komplexem prope editor",
|
|
87
|
-
"ru": "выключатель комбо в сложном редакторе реквизитов",
|
|
88
|
-
"pt": "combo interruptor no editor de adereço complexo",
|
|
89
|
-
"nl": "switch combo in complexe propeditor",
|
|
90
|
-
"fr": "switch combo dans l'éditeur de prop complexe",
|
|
91
|
-
"it": "commutare combo in un editor di prop complesso",
|
|
92
|
-
"es": "conmutar combo en el editor de prop complejo",
|
|
93
|
-
"pl": "przełącz combo w edytorze złożonych rekwizytów",
|
|
94
|
-
"uk": "вимикач combo в складних редакторах",
|
|
95
|
-
"zh-cn": "在复杂的道具编辑器中切换组合"
|
|
96
|
-
},
|
|
97
|
-
"1.17.1": {
|
|
98
|
-
"en": "selector for properties",
|
|
99
|
-
"de": "selektor für eigenschaften",
|
|
100
|
-
"ru": "селектор для свойств",
|
|
101
|
-
"pt": "seletor para propriedades",
|
|
102
|
-
"nl": "selector voor eigenschappen",
|
|
103
|
-
"fr": "sélecteur de propriétés",
|
|
104
|
-
"it": "selettore per proprietà",
|
|
105
|
-
"es": "selector para propiedades",
|
|
106
|
-
"pl": "selektor właściwości",
|
|
107
|
-
"uk": "вибірник для властивостей",
|
|
108
|
-
"zh-cn": "属性选择器"
|
|
109
|
-
},
|
|
110
|
-
"1.17.0": {
|
|
111
|
-
"en": "internal control properties\ninternal screen properties",
|
|
112
|
-
"de": "interne steuereigenschaften\ninterne bildschirmeigenschaften",
|
|
113
|
-
"ru": "свойства внутреннего контроля\nвнутренние свойства экрана",
|
|
114
|
-
"pt": "propriedades de controle interno\npropriedades de tela interna",
|
|
115
|
-
"nl": "interne controle-eigenschappen\neigenschappen van intern scherm",
|
|
116
|
-
"fr": "propriétés de contrôle interne\npropriétés de l'écran interne",
|
|
117
|
-
"it": "proprietà di controllo interno\nproprietà dello schermo interno",
|
|
118
|
-
"es": "propiedades de control interno\npropiedades de pantalla interna",
|
|
119
|
-
"pl": "właściwości kontroli wewnętrznej\nwewnętrzne właściwości ekranu",
|
|
120
|
-
"uk": "внутрішні елементи управління\nвнутрішні параметри екрана",
|
|
121
|
-
"zh-cn": "内部控制属性\n内部屏幕属性"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
"icon": "logo.png",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.webui",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
4
4
|
"description": "ioBroker webui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/backend/main.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@node-projects/web-component-designer-codeview-monaco": "^0.1.32",
|
|
59
59
|
"@node-projects/web-component-designer-htmlparserservice-nodehtmlparser": "^0.1.11",
|
|
60
60
|
"@node-projects/web-component-designer-stylesheetservice-css-tools": "^0.1.10",
|
|
61
|
-
"@node-projects/web-component-designer-visualization-addons": "^0.1.
|
|
61
|
+
"@node-projects/web-component-designer-visualization-addons": "^0.1.90",
|
|
62
62
|
"@node-projects/web-component-designer-widgets-wunderbaum": "^0.1.29",
|
|
63
63
|
"@types/json-schema": "^7.0.15",
|
|
64
64
|
"@web/dev-server": "^0.4.6",
|
|
@@ -41,7 +41,7 @@ export class IobrokerWebuiScriptSystem extends ScriptSystem {
|
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
43
|
default: {
|
|
44
|
-
super.runScriptCommand(command, context);
|
|
44
|
+
await super.runScriptCommand(command, context);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -59,4 +59,19 @@ export class IobrokerWebuiScriptSystem extends ScriptSystem {
|
|
|
59
59
|
}
|
|
60
60
|
return super.getTarget(context, targetSelectorTarget, parentLevel);
|
|
61
61
|
}
|
|
62
|
+
getTargetFromTargetSelector(context, targetSelectorTarget, parentLevel, targetSelector) {
|
|
63
|
+
const target = this.getTarget(context, targetSelectorTarget, parentLevel);
|
|
64
|
+
let elements = [target];
|
|
65
|
+
if (targetSelector) {
|
|
66
|
+
if (targetSelectorTarget === 'container') {
|
|
67
|
+
if (target instanceof ScreenViewer)
|
|
68
|
+
elements = target._getDomElements(targetSelector);
|
|
69
|
+
else
|
|
70
|
+
elements = target.shadowRoot.querySelectorAll(targetSelector);
|
|
71
|
+
}
|
|
72
|
+
else
|
|
73
|
+
elements = target.querySelectorAll(targetSelector);
|
|
74
|
+
}
|
|
75
|
+
return elements;
|
|
76
|
+
}
|
|
62
77
|
}
|
package/www/index.html
CHANGED
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
</button>
|
|
214
214
|
<button data-command="save" title="save" disabled><img src="./node_modules/@node-projects/web-component-designer/assets/icons/save.svg"></button>
|
|
215
215
|
<div style="margin-left: 30px;">
|
|
216
|
-
webui - 1.18.
|
|
216
|
+
webui - 1.18.5 - 981b47b
|
|
217
217
|
</div>
|
|
218
218
|
<button style="margin-left: 30px;" data-command="paste" title="paste" disabled><img
|
|
219
219
|
src="./node_modules/@node-projects/web-component-designer/assets/icons/paste.svg"></button>
|
|
@@ -15,10 +15,10 @@ export class ScriptRefactorService {
|
|
|
15
15
|
if (cp != null && typeof cp === 'object') {
|
|
16
16
|
let mp = cp;
|
|
17
17
|
if (mp.source === 'signal') {
|
|
18
|
-
refactorings.push({ name: mp.name, itemType: 'signal', target: BindingTarget.event, targetName: a[0], service: this, designItem: d, type: 'script', sourceObject: script, display: c.type + '/' + p + '[
|
|
18
|
+
refactorings.push({ name: mp.name, itemType: 'signal', target: BindingTarget.event, targetName: a[0], service: this, designItem: d, type: 'script', sourceObject: script, display: c.type + '/' + p + '[signal]', refactor: newValue => mp.name = newValue });
|
|
19
19
|
}
|
|
20
20
|
else if (mp.source === 'property') {
|
|
21
|
-
refactorings.push({ name: mp.name, itemType: 'property', target: BindingTarget.event, targetName: a[0], service: this, designItem: d, type: 'script', sourceObject: script, display: c.type + '/' + p + '[
|
|
21
|
+
refactorings.push({ name: mp.name, itemType: 'property', target: BindingTarget.event, targetName: a[0], service: this, designItem: d, type: 'script', sourceObject: script, display: c.type + '/' + p + '[property]', refactor: newValue => mp.name = newValue });
|
|
22
22
|
}
|
|
23
23
|
else if (mp.source === 'complexString') {
|
|
24
24
|
for (let m of mp.name.matchAll(/\{(.*?)\}/g)) {
|