iobroker.vis-2-widgets-inventwo 0.5.4 → 0.5.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 CHANGED
@@ -56,6 +56,9 @@ All widgets come with extensive design options to customize the look and feel to
56
56
  Placeholder for the next version (at the beginning of the line):
57
57
  ### **WORK IN PROGRESS**
58
58
  -->
59
+ ### 0.5.5 (2026-01-11)
60
+ - Fixed increase/decrease not working correctly for separate buttons
61
+
59
62
  ### 0.5.4 (2026-01-10)
60
63
  - Added option to set dialog position (#158)
61
64
  - Fixed nav click feedback not working correctly (#41)
@@ -69,11 +72,6 @@ All widgets come with extensive design options to customize the look and feel to
69
72
  ### 0.5.1 (2025-12-24)
70
73
  - Added missing translations for the previous version
71
74
 
72
- ### 0.5.0 (2025-12-24)
73
- - Added radial slider widget (#17)
74
- - Added analog clock content type to universal widget (#100)
75
- - Changed german translation for "custom"
76
-
77
75
  ## License
78
76
  The MIT License (MIT)
79
77
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "vis-2-widgets-inventwo",
4
- "version": "0.5.4",
4
+ "version": "0.5.5",
5
5
  "news": {
6
+ "0.5.5": {
7
+ "en": "Fixed increase/decrease not working correctly for separate buttons",
8
+ "de": "Behobene Zunahme/Erhöhung nicht korrekt für separate Tasten arbeiten",
9
+ "ru": "Фиксированное увеличение/сокращение, неправильно работающее для отдельных кнопок",
10
+ "pt": "Aumento/diminuição fixo não funciona corretamente para botões separados",
11
+ "nl": "Vaste verhoging/verlaging werkt niet goed voor afzonderlijke knoppen",
12
+ "fr": "Augmentation/diminution fixe ne fonctionnant pas correctement pour des boutons séparés",
13
+ "it": "Aumento fisso/diminuzione non funzionante correttamente per pulsanti separati",
14
+ "es": "Aumento/disminución fijados que no funcionan correctamente para botones separados",
15
+ "pl": "Naprawiono zwiększenie / zmniejszenie nieprawidłowego działania dla oddzielnych przycisków",
16
+ "uk": "Виправлено збільшення/виведення не працює правильно для окремих кнопок",
17
+ "zh-cn": "固定增减对单独的按钮不正确"
18
+ },
6
19
  "0.5.4": {
7
20
  "en": "Added option to set dialog position (#158)\nFixed nav click feedback not working correctly (#41)",
8
21
  "de": "Option zur Einstellung der Dialogposition hinzugefügt (#158)\nFeste nav click Feedback nicht korrekt funktionieren (#41)",
@@ -80,19 +93,6 @@
80
93
  "pl": "Vite downgrade",
81
94
  "uk": "Вайт град",
82
95
  "zh-cn": "降级"
83
- },
84
- "0.4.1": {
85
- "en": "Added image type to column for table widget (#97)\nAdded custom datetime format support for table widget (#97)\nFix issue in slider widget when steps is active but value is empty\nChanged module federation version to match vis 2.0 stable",
86
- "de": "Bildtyp zur Spalte für Tabelle Widget (#97) hinzugefügt\nHinzugefügt benutzerdefinierte Datetime-Format-Unterstützung für Tabelle Widget (#97)\nProblem im Slider Widget beheben, wenn die Schritte aktiv sind, aber der Wert leer ist\nGeänderte Modul-Feederationsversion passend zu vis 2.0 stabil",
87
- "ru": "Добавлен тип изображения в колонку для виджета таблицы (#97)\nДобавлена поддержка пользовательского формата даты для виджета таблицы (#97)\nИсправление проблемы в виджете слайдера, когда шаги активны, но ценность пуста\nИзмененная версия федерации модулей соответствует стабильной версии 2.0",
88
- "pt": "Tipo de imagem adicionado à coluna para o elemento da tabela (# 97)\nAdicionado suporte personalizado ao formato datetime para widget de tabela (# 97)\nCorrigir o problema no elemento da barra deslizante quando os passos estiverem activos, mas o valor estiver vazio\nVersão alterada da federação do módulo para coincidir com a versão 2.0 estável",
89
- "nl": "Afbeeldingstype toegevoegd aan kolom voor tabelwidget (#97)\nAangepaste datum-indelingsondersteuning voor tabelwidget (#97) toegevoegd\nFix probleem in dia widget wanneer stappen actief zijn, maar waarde is leeg\nVeranderde module federatie versie om te passen vis 2.0 stabiel",
90
- "fr": "Ajout du type d'image à la colonne pour le widget de table (#97)\nAjout du support personnalisé de format datetime pour widget de table (#97)\nCorrection de problème dans le widget slider lorsque les étapes sont actives mais la valeur est vide\nVersion modifiée de la fédération module pour correspondre vis 2.0 stable",
91
- "it": "Tipo di immagine aggiunto alla colonna per widget di tabella (#97)\nAggiunto supporto di formato datatime personalizzato per widget di tabella (#97)\nRisolvi il problema nel widget del cursore quando i passaggi sono attivi ma il valore è vuoto\nModificata versione federativa del modulo per abbinare vis 2.0 stable",
92
- "es": "Tipo de imagen añadido a la columna para el widget de mesa (#97)\nAñadido soporte de formato de fecha personalizada para el widget de mesa (#97)\nCorregir el problema en el widget deslizante cuando los pasos están activos pero el valor está vacío\nVersión de federación del módulo cambiado para comparar con 2.0 estable",
93
- "pl": "Dodano typ obrazka do kolumny dla widżetu tabeli (# 97)\nDodano niestandardowe wsparcie formatu datetime dla interfejsu tabeli (# 97)\nNaprawianie problemu w widżecie suwaka, gdy kroki są aktywne, ale wartość jest pusta\nZmieniona wersja federacyjna modułu do dopasowania do wersji 2.0 stabilnej",
94
- "uk": "Додано тип зображення до колонки для настільного віджету (#97)\nДодано користувальницький дата-центр підтримки для настільного віджету (#97)\nВиправлено проблему у віджеті слайдера, коли дії активні, але значення є порожнім\nЗмінений варіант федерації модуля, щоб відповідати в'язам 2.0 стабільний",
95
- "zh-cn": "将图像类型添加到表格部件的列(# 97)\n为表格部件添加自定义日期时间格式支持(# 97)\n当步骤活动但值为空时, 在滑动部件中修正发行\n更改模块 Federation 版本, 与 2.0 稳定匹配"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.vis-2-widgets-inventwo",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "ioBroker vis2 inventwo widgets",
5
5
  "author": "jkvarel <jk@inventwo.com>",
6
6
  "contributors": [
@@ -362,8 +362,8 @@ let __tla = Promise.all([
362
362
  }
363
363
  return h++, f;
364
364
  }), e.__e = y, n != null && typeof e.type != "function") for (h = n.length; h--; ) n[h] != null && Ee(n[h]);
365
- for (h = m; h--; ) _[h] != null && Ve(_[h], _[h]);
366
- if (v) for (h = 0; h < v.length; h++) ze(v[h], v[++h], v[++h]);
365
+ for (h = m; h--; ) _[h] != null && ze(_[h], _[h]);
366
+ if (v) for (h = 0; h < v.length; h++) Ve(v[h], v[++h], v[++h]);
367
367
  }
368
368
  function ke(i, e, a) {
369
369
  if (a == null && (a = []), i == null || typeof i == "boolean") e && a.push(e(null));
@@ -436,16 +436,16 @@ let __tla = Promise.all([
436
436
  }
437
437
  return e.type === null ? g !== u && (n != null && (n[n.indexOf(i)] = null), i.data = u) : e !== a && (n != null && (n = xe.slice.call(i.childNodes)), d = (g = a.props || A).dangerouslySetInnerHTML, s = u.dangerouslySetInnerHTML, l || (s || d) && (s && d && s.__html == d.__html || (i.innerHTML = s && s.__html || "")), bt(i, u, g, o, l), e.__k = e.props.children, s || Le(i, e, a, t, e.type !== "foreignObject" && o, n, r, A, l), l || ("value" in u && u.value !== void 0 && u.value !== i.value && (i.value = u.value == null ? "" : u.value), "checked" in u && u.checked !== void 0 && u.checked !== i.checked && (i.checked = u.checked))), i;
438
438
  }
439
- function ze(i, e, a) {
439
+ function Ve(i, e, a) {
440
440
  try {
441
441
  typeof i == "function" ? i(e) : i.current = e;
442
442
  } catch (t) {
443
443
  w.__e(t, a);
444
444
  }
445
445
  }
446
- function Ve(i, e, a) {
446
+ function ze(i, e, a) {
447
447
  var t, o, n;
448
- if (w.unmount && w.unmount(i), (t = i.ref) && ze(t, null, e), a || typeof i.type == "function" || (a = (o = i.__e) != null), i.__e = i.l = null, (t = i.__c) != null) {
448
+ if (w.unmount && w.unmount(i), (t = i.ref) && Ve(t, null, e), a || typeof i.type == "function" || (a = (o = i.__e) != null), i.__e = i.l = null, (t = i.__c) != null) {
449
449
  if (t.componentWillUnmount) try {
450
450
  t.componentWillUnmount();
451
451
  } catch (r) {
@@ -453,7 +453,7 @@ let __tla = Promise.all([
453
453
  }
454
454
  t.base = t.__P = null;
455
455
  }
456
- if (t = i.__k) for (n = 0; n < t.length; n++) t[n] && Ve(t[n], e, a);
456
+ if (t = i.__k) for (n = 0; n < t.length; n++) t[n] && ze(t[n], e, a);
457
457
  o != null && Ee(o);
458
458
  }
459
459
  function _t(i, e, a) {
@@ -501,7 +501,7 @@ let __tla = Promise.all([
501
501
  return i;
502
502
  }, F.apply(this, arguments);
503
503
  }
504
- var wt = "[-\\+]?\\d+%?", St = "[-\\+]?\\d*\\.\\d+%?", L = "(?:" + St + ")|(?:" + wt + ")", Ue = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?", Xe = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?", Ct = new RegExp("rgb" + Ue), Dt = new RegExp("rgba" + Xe), Tt = new RegExp("hsl" + Ue), Wt = new RegExp("hsla" + Xe), le = "^(?:#?|0x?)", N = "([0-9a-fA-F]{1})", z = "([0-9a-fA-F]{2})", Ft = new RegExp(le + N + N + N + "$"), It = new RegExp(le + N + N + N + N + "$"), Pt = new RegExp(le + z + z + z + "$"), Rt = new RegExp(le + z + z + z + z + "$"), Mt = 2e3, Bt = 4e4, ae = Math.log, X = Math.round, J = Math.floor;
504
+ var wt = "[-\\+]?\\d+%?", St = "[-\\+]?\\d*\\.\\d+%?", L = "(?:" + St + ")|(?:" + wt + ")", Ue = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?", Xe = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?", Ct = new RegExp("rgb" + Ue), Dt = new RegExp("rgba" + Xe), Tt = new RegExp("hsl" + Ue), Wt = new RegExp("hsla" + Xe), le = "^(?:#?|0x?)", N = "([0-9a-fA-F]{1})", V = "([0-9a-fA-F]{2})", Ft = new RegExp(le + N + N + N + "$"), It = new RegExp(le + N + N + N + N + "$"), Pt = new RegExp(le + V + V + V + "$"), Rt = new RegExp(le + V + V + V + V + "$"), Mt = 2e3, Bt = 4e4, ae = Math.log, X = Math.round, J = Math.floor;
505
505
  function R(i, e, a) {
506
506
  return Math.min(Math.max(i, e), a);
507
507
  }
@@ -1132,14 +1132,14 @@ let __tla = Promise.all([
1132
1132
  v: Math.max(0, Math.min(100 - s, 100))
1133
1133
  };
1134
1134
  }
1135
- function zt(i, e) {
1135
+ function Vt(i, e) {
1136
1136
  var a = Ce(i), t = a.width, o = a.height, n = a.radius, r = e.hsv, l = n, c = t - n * 2, h = o - n * 2;
1137
1137
  return {
1138
1138
  x: l + r.s / 100 * c,
1139
1139
  y: l + (h - r.v / 100 * h)
1140
1140
  };
1141
1141
  }
1142
- function Vt(i, e) {
1142
+ function zt(i, e) {
1143
1143
  var a = e.hue;
1144
1144
  return [
1145
1145
  [
@@ -1261,7 +1261,7 @@ let __tla = Promise.all([
1261
1261
  }
1262
1262
  }, e;
1263
1263
  })(q);
1264
- function V(i) {
1264
+ function z(i) {
1265
1265
  var e = i.r, a = i.url, t = e, o = e;
1266
1266
  return x("svg", {
1267
1267
  className: "IroHandle IroHandle--" + i.index + " " + (i.isActive ? "IroHandle--isActive" : ""),
@@ -1294,7 +1294,7 @@ let __tla = Promise.all([
1294
1294
  stroke: "#fff"
1295
1295
  }));
1296
1296
  }
1297
- V.defaultProps = {
1297
+ z.defaultProps = {
1298
1298
  fill: "none",
1299
1299
  x: 0,
1300
1300
  y: 0,
@@ -1335,7 +1335,7 @@ let __tla = Promise.all([
1335
1335
  borderRadius: S(r),
1336
1336
  background: _e("linear", i.layoutDirection === "horizontal" ? "to top" : "to right", c)
1337
1337
  }, De(i))
1338
- }), x(V, {
1338
+ }), x(z, {
1339
1339
  isActive: true,
1340
1340
  index: a.index,
1341
1341
  r: i.handleRadius,
@@ -1348,8 +1348,8 @@ let __tla = Promise.all([
1348
1348
  }
1349
1349
  ne.defaultProps = Object.assign({}, $t);
1350
1350
  function Gt(i) {
1351
- var e = Ce(i), a = e.width, t = e.height, o = e.radius, n = i.colors, r = i.parent, l = i.activeIndex, c = l !== void 0 && l < i.colors.length ? i.colors[l] : i.color, h = Vt(i, c), d = n.map(function(g) {
1352
- return zt(i, g);
1351
+ var e = Ce(i), a = e.width, t = e.height, o = e.radius, n = i.colors, r = i.parent, l = i.activeIndex, c = l !== void 0 && l < i.colors.length ? i.colors[l] : i.color, h = zt(i, c), d = n.map(function(g) {
1352
+ return Vt(i, g);
1353
1353
  });
1354
1354
  function s(g, u, y) {
1355
1355
  if (y === 0) {
@@ -1380,7 +1380,7 @@ let __tla = Promise.all([
1380
1380
  }), n.filter(function(v) {
1381
1381
  return v !== c;
1382
1382
  }).map(function(v) {
1383
- return x(V, {
1383
+ return x(z, {
1384
1384
  isActive: false,
1385
1385
  index: v.index,
1386
1386
  fill: v.hslString,
@@ -1390,7 +1390,7 @@ let __tla = Promise.all([
1390
1390
  x: d[v.index].x,
1391
1391
  y: d[v.index].y
1392
1392
  });
1393
- }), x(V, {
1393
+ }), x(z, {
1394
1394
  isActive: true,
1395
1395
  index: c.index,
1396
1396
  fill: c.hslString,
@@ -1458,7 +1458,7 @@ let __tla = Promise.all([
1458
1458
  }), t.filter(function(u) {
1459
1459
  return u !== n;
1460
1460
  }).map(function(u) {
1461
- return x(V, {
1461
+ return x(z, {
1462
1462
  isActive: false,
1463
1463
  index: u.index,
1464
1464
  fill: u.hslString,
@@ -1468,7 +1468,7 @@ let __tla = Promise.all([
1468
1468
  x: l[u.index].x,
1469
1469
  y: l[u.index].y
1470
1470
  });
1471
- }), x(V, {
1471
+ }), x(z, {
1472
1472
  isActive: true,
1473
1473
  index: n.index,
1474
1474
  fill: n.hslString,
@@ -1631,7 +1631,7 @@ let __tla = Promise.all([
1631
1631
  var Zt = Kt(Qe), ye;
1632
1632
  (function(i) {
1633
1633
  i.version = "5.5.2", i.Color = G, i.ColorPicker = Zt, (function(e) {
1634
- e.h = x, e.ComponentBase = de, e.Handle = V, e.Slider = ne, e.Wheel = Je, e.Box = Gt;
1634
+ e.h = x, e.ComponentBase = de, e.Handle = z, e.Slider = ne, e.Wheel = Je, e.Box = Gt;
1635
1635
  })(i.ui || (i.ui = {}));
1636
1636
  })(ye || (ye = {}));
1637
1637
  var M = ye;
@@ -4153,7 +4153,7 @@ let __tla = Promise.all([
4153
4153
  case "increaseDecreaseValue":
4154
4154
  if (!t || !this.validOid(t)) break;
4155
4155
  let o = this.getValue(t);
4156
- o += this.convertValue(this.state.rxData.valueTrue), this.props.context.setValue(t, o);
4156
+ this.state.rxData.mode === "singleButton" ? o += this.convertValue(this.state.rxData.valueTrue) : e !== null && this.state.rxData[`value${e}`] && (o += this.convertValue(this.state.rxData[`value${e}`])), this.props.context.setValue(t, o);
4157
4157
  break;
4158
4158
  case "http":
4159
4159
  const n = this.state.rxData.httpType, r = this.state.rxData.url;
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../customWidgets.js","./virtualExposes-ypjlcdC1.js","./preload-helper-PPVm8Dsz.js","./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../customWidgets.js","./virtualExposes-DbUKtY14.js","./preload-helper-PPVm8Dsz.js","./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js"])))=>i.map(i=>d[i]);
2
2
  import { _ as i } from "./preload-helper-PPVm8Dsz.js";
3
3
  (async () => {
4
4
  const r = i(() => import("../customWidgets.js").then(async (m) => {
@@ -1,10 +1,10 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./InventwoWidgetUniversal-C8Fxyh4d.js","./jsx-runtime-oJpyLRee.js","./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js","./_commonjsHelpers-Cpj98o6Y.js","./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js","./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js","./tslib.es6-B24-ng1V.js","./InventwoGeneric-DmPldO6z.js","./InventwoWidgetUniversal-zR8yBSHx.css","./InventwoWidgetSlider-CEkyU1gv.js","./InventwoWidgetRadialSlider-D8dl9EPK.js","./InventwoWidgetSwitch-DyK7J_YN.js","./InventwoWidgetCheckbox-S8XjkDGP.js","./InventwoWidgetTable-CJ2fYH7S.js","./styled-B6ANeESM.js","./defaultTheme-B3m4fB8l.js","./tableRowClasses-CsDLHA-3.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./InventwoWidgetUniversal-BVGrUGJs.js","./jsx-runtime-oJpyLRee.js","./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js","./_commonjsHelpers-Cpj98o6Y.js","./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js","./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js","./tslib.es6-B24-ng1V.js","./InventwoGeneric-DmPldO6z.js","./InventwoWidgetUniversal-zR8yBSHx.css","./InventwoWidgetSlider-CEkyU1gv.js","./InventwoWidgetRadialSlider-D8dl9EPK.js","./InventwoWidgetSwitch-DyK7J_YN.js","./InventwoWidgetCheckbox-S8XjkDGP.js","./InventwoWidgetTable-CJ2fYH7S.js","./styled-B6ANeESM.js","./defaultTheme-B3m4fB8l.js","./tableRowClasses-CsDLHA-3.js"])))=>i.map(i=>d[i]);
2
2
  import { _ as r } from "./preload-helper-PPVm8Dsz.js";
3
3
  let a;
4
4
  let __tla = (async () => {
5
5
  a = {
6
6
  "./InventwoWidgetUniversal": async () => {
7
- const t = await r(() => import("./InventwoWidgetUniversal-C8Fxyh4d.js").then(async (m) => {
7
+ const t = await r(() => import("./InventwoWidgetUniversal-BVGrUGJs.js").then(async (m) => {
8
8
  await m.__tla;
9
9
  return m;
10
10
  }), __vite__mapDeps([0,1,2,3,4,5,6,7,8]), import.meta.url), e = {};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./assets/index-C-cNZXFo.js","./assets/defaultTheme-B3m4fB8l.js","./assets/vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js","./assets/_commonjsHelpers-Cpj98o6Y.js","./assets/vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js","./assets/vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js","./assets/tslib.es6-B24-ng1V.js","./assets/useTheme-DNnccp_1.js","./assets/index-CFdeI5L_.js","./assets/jsx-runtime-oJpyLRee.js","./assets/createSvgIcon-BO5nOmWA.js","./assets/styled-B6ANeESM.js","./assets/index-BZKNvirX.js","./assets/tableRowClasses-CsDLHA-3.js","./assets/index-BEpFHtMA.js","./assets/index-Cbxzx2fq.js"])))=>i.map(i=>d[i]);
2
- import exposesMap, { __tla as __tla_0 } from "./assets/virtualExposes-ypjlcdC1.js";
2
+ import exposesMap, { __tla as __tla_0 } from "./assets/virtualExposes-DbUKtY14.js";
3
3
  import { _ as __vitePreload } from "./assets/preload-helper-PPVm8Dsz.js";
4
4
  import { v as vis2Inventwo__mf_v__runtimeInit__mf_v__ } from "./assets/vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
5
5
  let getExposes, init;