iobroker.webui 1.24.3 → 1.25.0

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,12 @@ runtime.html?screenName=screen2
133
133
  Placeholder for next versions:
134
134
  ### __WORK IN PROGRESS__
135
135
  -->
136
+ ### 1.25.0 (2025-01-21)
137
+ - fix bindings in custom controls
138
+
139
+ ### 1.24.4 (2025-01-20)
140
+ - switch again to old module shims (error in new one)
141
+
136
142
  ### 1.24.3 (2025-01-20)
137
143
  - first load of css bindings
138
144
  - fix get box quads with slots
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "webui",
4
- "version": "1.24.3",
4
+ "version": "1.25.0",
5
5
  "titleLang": {
6
6
  "en": "webui",
7
7
  "de": "webui",
@@ -29,6 +29,32 @@
29
29
  "zh-cn": "使用万维网传送器的高锰用户接口"
30
30
  },
31
31
  "news": {
32
+ "1.25.0": {
33
+ "en": "fix bindings in custom controls",
34
+ "de": "fixe bindungen in benutzerdefinierten steuerungen",
35
+ "ru": "фиксации в пользовательском контроле",
36
+ "pt": "corrigir ligações em controles personalizados",
37
+ "nl": "fix bindingen in aangepaste controles",
38
+ "fr": "fixer les fixations dans les contrôles personnalisés",
39
+ "it": "fissare i binding nei controlli personalizzati",
40
+ "es": "fijaciones en controles personalizados",
41
+ "pl": "naprawić wiązania w niestandardowych kontrolach",
42
+ "uk": "фіксувати прив'язки в користувацьких управліннях",
43
+ "zh-cn": "定制控制中的固定绑定"
44
+ },
45
+ "1.24.4": {
46
+ "en": "switch again to old module shims (error in new one)",
47
+ "de": "wieder auf alte modul-shimmel wechseln (error in new one)",
48
+ "ru": "переключение снова на старых модуле shims (ошибка в новом)",
49
+ "pt": "mudar novamente para os antigos xeques do módulo (erro em novo)",
50
+ "nl": "weer overschakelen naar oude module shims (fout in nieuwe)",
51
+ "fr": "passer à nouveau à l'ancien module shims (erreur dans le nouveau)",
52
+ "it": "passare di nuovo a shims vecchio modulo (error in uno nuovo)",
53
+ "es": "cambiar de nuevo al viejo módulo shims (error nuevo)",
54
+ "pl": "przełącz ponownie na stary moduł shims (błąd w nowym)",
55
+ "uk": "повторно переключіть до старих модулів (error in new)",
56
+ "zh-cn": "再次切换到旧模块shims( 错误在新模块中)"
57
+ },
32
58
  "1.24.3": {
33
59
  "en": "first load of css bindings\nfix get box quads with slots\nfix es module shims",
34
60
  "de": "erste belastung von css bindungen\nfix get box quads mit schlitzen\nfix es modul shims",
@@ -93,32 +119,6 @@
93
119
  "pl": "jeszcze jeden fix w gulpfile",
94
120
  "uk": "ще одна фіксація в gulpfile",
95
121
  "zh-cn": "再加一个固醇"
96
- },
97
- "1.23.1": {
98
- "en": "fix gulp should work again",
99
- "de": "gulp sollte wieder funktionieren",
100
- "ru": "исправить gulp должно работать снова",
101
- "pt": "corrigir gulp deve funcionar novamente",
102
- "nl": "fix gulp moet weer werken",
103
- "fr": "réparer gulp devrait fonctionner à nouveau",
104
- "it": "fissare gulp dovrebbe funzionare di nuovo",
105
- "es": "arreglar golp debe trabajar de nuevo",
106
- "pl": "fix gulp powinien działać ponownie",
107
- "uk": "закріпити гельпом потрібно знову",
108
- "zh-cn": "修补 gulp 应再次工作"
109
- },
110
- "1.23.0": {
111
- "en": "fix paste in events assignment\niobroker Signal Selector\nbinding to width and height in custom controls",
112
- "de": "fixieren sie paste in der ereigniszuordnung\niobroker Signal Selektor\nbindung an breite und höhe in benutzerdefinierten steuerungen",
113
- "ru": "фиксация пасты в присвоении событий\niobroker Signal Selector\nпривязки к ширине и высоте в пользовательском контроле",
114
- "pt": "corrigir pasta na atribuição de eventos\nseletor de Sinal iobroker\nligação à largura e altura em controles personalizados",
115
- "nl": "plak plakken in de opdracht van gebeurtenissen\niobroker-signaalkiezer\nbinding aan breedte en hoogte in aangepaste controles",
116
- "fr": "fixer coller dans l'affectation des événements\nsélecteur de signal iobroker\nfixation à la largeur et à la hauteur dans les commandes personnalisées",
117
- "it": "correzione della pasta nell'assegnazione degli eventi\niobroker Selettore Segnale\nlegare a larghezza e altezza nei controlli personalizzati",
118
- "es": "arreglar pasta en la asignación de eventos\niobroker Signal Selector\nunión a ancho y altura en controles personalizados",
119
- "pl": "fix pasta w przyporządkowaniu zdarzeń\niobroker Selektor sygnału\nwiązanie do szerokości i wysokości w sterowaniu własnym",
120
- "uk": "фіксувати пасту в появі подій\niobroker Signal Вибратор\nобов'язковий для ширини і висоти в користувацьких управліннях",
121
- "zh-cn": "在事件任务中固定粘贴\nio 经纪人信号选择器\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.24.3",
3
+ "version": "1.25.0",
4
4
  "description": "ioBroker webui",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -75,7 +75,7 @@
75
75
  "dayjs": "^1.11.13",
76
76
  "del": "^8.0.0",
77
77
  "dock-spawn-ts": "^3.2.1",
78
- "es-module-shims": "2.0.5",
78
+ "es-module-shims": "1.10.1",
79
79
  "eslint": "^9.18.0",
80
80
  "esprima-next": "^6.0.3",
81
81
  "glob-stream": "^8.0.2",
@@ -51,7 +51,7 @@ export class BaseCustomControl extends BaseCustomWebComponentConstructorAppend {
51
51
  for (let e of this.#eventListeners) {
52
52
  this.addEventListener(e[0], e[1]);
53
53
  }
54
- this.#resizeObserver.observe(this);
54
+ this.#resizeObserver?.observe(this);
55
55
  }
56
56
  disconnectedCallback() {
57
57
  for (let e of this.#eventListeners) {
@@ -61,7 +61,7 @@ export class BaseCustomControl extends BaseCustomWebComponentConstructorAppend {
61
61
  for (const b of this.#bindings)
62
62
  b();
63
63
  this.#bindings = null;
64
- this.#resizeObserver.unobserve(this);
64
+ this.#resizeObserver?.unobserve(this);
65
65
  }
66
66
  _assignEvent(event, callback) {
67
67
  const arrayEl = [event, callback];
@@ -133,6 +133,11 @@ export function generateCustomControl(name, control) {
133
133
  let instance = Reflect.construct(BaseCustomControl, [], window['IobrokerWebuiCustomControl' + name]);
134
134
  let currControl = window['IobrokerWebuiCustomControl' + name][webuiCustomControlSymbol].control;
135
135
  for (let p in currControl.properties) {
136
+ let backup = undefined;
137
+ if (p in instance) {
138
+ backup = instance[p];
139
+ delete instance[p];
140
+ }
136
141
  Object.defineProperty(instance, p, {
137
142
  get() {
138
143
  return this['_' + p];
@@ -147,7 +152,10 @@ export function generateCustomControl(name, control) {
147
152
  enumerable: true,
148
153
  configurable: true,
149
154
  });
150
- if (currControl.properties[p].default) {
155
+ if (backup !== undefined) {
156
+ instance[p] = backup;
157
+ }
158
+ else if (currControl.properties[p].default) {
151
159
  instance['_' + p] = currControl.properties[p].default;
152
160
  }
153
161
  }
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.24.3 - fefb8f9
221
+ webui - 1.25.0 - e441c00
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>