iobroker.webui 1.35.0 → 1.35.1
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
CHANGED
|
@@ -133,6 +133,9 @@ runtime.html?screenName=screen2
|
|
|
133
133
|
Placeholder for next versions:
|
|
134
134
|
### __WORK IN PROGRESS__
|
|
135
135
|
-->
|
|
136
|
+
### 1.35.1 (2025-09-23)
|
|
137
|
+
- fix reload custom controls
|
|
138
|
+
|
|
136
139
|
### 1.35.0 (2025-09-23)
|
|
137
140
|
- better nameing
|
|
138
141
|
- changed object notification
|
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "webui",
|
|
4
|
-
"version": "1.35.
|
|
4
|
+
"version": "1.35.1",
|
|
5
5
|
"titleLang": {
|
|
6
6
|
"en": "webui",
|
|
7
7
|
"de": "webui",
|
|
@@ -29,6 +29,19 @@
|
|
|
29
29
|
"zh-cn": "使用万维网传送器的高锰用户接口"
|
|
30
30
|
},
|
|
31
31
|
"news": {
|
|
32
|
+
"1.35.1": {
|
|
33
|
+
"en": "fix reload custom controls",
|
|
34
|
+
"de": "reload benutzerdefinierte bedienelemente",
|
|
35
|
+
"ru": "исправить пользовательские элементы управления",
|
|
36
|
+
"pt": "corrigir recarga de controles personalizados",
|
|
37
|
+
"nl": "repareren herladen aangepaste controles",
|
|
38
|
+
"fr": "fixer les contrôles personnalisés de recharge",
|
|
39
|
+
"it": "correzione dei controlli personalizzati di ricarica",
|
|
40
|
+
"es": "recargar controles personalizados",
|
|
41
|
+
"pl": "naprawiać sterowanie niestandardowe",
|
|
42
|
+
"uk": "виправити перевантаження користувальницьких контрольів",
|
|
43
|
+
"zh-cn": "固定重装自定义控制"
|
|
44
|
+
},
|
|
32
45
|
"1.35.0": {
|
|
33
46
|
"en": "better nameing\nchanged object notification",
|
|
34
47
|
"de": "besser benennen\nänderung der objektbenachrichtigung",
|
|
@@ -106,19 +119,6 @@
|
|
|
106
119
|
"pl": "Support sugestie css prop",
|
|
107
120
|
"uk": "Підтримка пропозицій css",
|
|
108
121
|
"zh-cn": "支持 css 道具建议"
|
|
109
|
-
},
|
|
110
|
-
"1.31.6": {
|
|
111
|
-
"en": "Test one more release",
|
|
112
|
-
"de": "Testen Sie eine weitere Freigabe",
|
|
113
|
-
"ru": "Проверить еще один выпуск",
|
|
114
|
-
"pt": "Teste mais uma versão",
|
|
115
|
-
"nl": "Test nog een keer",
|
|
116
|
-
"fr": "Tester une dernière libération",
|
|
117
|
-
"it": "Prova un'altra versione",
|
|
118
|
-
"es": "Prueba una versión más",
|
|
119
|
-
"pl": "Przetestuj jeszcze jedno wydanie",
|
|
120
|
-
"uk": "Тестувати ще один реліз",
|
|
121
|
-
"zh-cn": "再试一次"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
"icon": "logo.png",
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Connection } from "@iobroker/socket-client";
|
|
2
2
|
import { TypedEvent, cssFromString } from "@node-projects/base-custom-webcomponent";
|
|
3
3
|
import { sleep } from "../helper/Helper.js";
|
|
4
|
+
import { generateCustomControl } from "../runtime/CustomControls.js";
|
|
4
5
|
export class IobrokerHandler {
|
|
5
6
|
static instance = new IobrokerHandler();
|
|
6
7
|
host;
|
|
@@ -489,6 +490,8 @@ export class IobrokerHandler {
|
|
|
489
490
|
break;
|
|
490
491
|
case "objectChanged":
|
|
491
492
|
const d = JSON.parse(data);
|
|
493
|
+
if (d.type == 'control' && d.name)
|
|
494
|
+
generateCustomControl(d.name, await iobrokerHandler.getWebuiObject(d.type, d.name));
|
|
492
495
|
this.objectsChanged.emit(d);
|
|
493
496
|
break;
|
|
494
497
|
}
|
|
@@ -2,7 +2,7 @@ import { BaseCustomWebComponentConstructorAppend, LazyLoader, css, html } from "
|
|
|
2
2
|
import { dragDropFormatNameBindingObject, dragDropFormatNameElementDefinition, ContextMenu, sleep, dragDropFormatNamePropertyGrid, PropertiesHelper, copyTextToClipboard, NamedTools } from "@node-projects/web-component-designer";
|
|
3
3
|
import { iobrokerHandler } from "../common/IobrokerHandler.js";
|
|
4
4
|
import { exportData, openFileDialog } from "../helper/Helper.js";
|
|
5
|
-
import {
|
|
5
|
+
import { getCustomControlName, webuiCustomControlPrefix } from "../runtime/CustomControls.js";
|
|
6
6
|
import { defaultOptions, defaultStyle } from "@node-projects/web-component-designer-widgets-wunderbaum";
|
|
7
7
|
import { Wunderbaum } from 'wunderbaum';
|
|
8
8
|
//@ts-ignore
|
|
@@ -51,8 +51,6 @@ export class IobrokerWebuiSolutionExplorer extends BaseCustomWebComponentConstru
|
|
|
51
51
|
async initialize(serviceContainer) {
|
|
52
52
|
this.serviceContainer = serviceContainer;
|
|
53
53
|
iobrokerHandler.objectsChanged.on(async (x) => {
|
|
54
|
-
if (x.type == 'control' && x.name)
|
|
55
|
-
generateCustomControl(x.name, await iobrokerHandler.getWebuiObject(x.type, x.name));
|
|
56
54
|
this._refreshNode(x.type, true);
|
|
57
55
|
});
|
|
58
56
|
iobrokerHandler.imagesChanged.on(() => this._refreshNode('images'));
|
package/www/index.html
CHANGED
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
</button>
|
|
219
219
|
<button data-command="save" title="save" disabled><img src="./node_modules/@node-projects/web-component-designer/assets/icons/save.svg"></button>
|
|
220
220
|
<div style="margin-left: 30px;">
|
|
221
|
-
webui - 1.35.
|
|
221
|
+
webui - 1.35.1 - d7d2637
|
|
222
222
|
</div>
|
|
223
223
|
<button style="margin-left: 30px;" data-command="paste" title="paste" disabled><img
|
|
224
224
|
src="./node_modules/@node-projects/web-component-designer/assets/icons/paste.svg"></button>
|