iobroker.vis-2-widgets-inventwo 0.5.1 → 0.5.2

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.
Files changed (29) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -1
  3. package/io-package.json +14 -14
  4. package/package.json +1 -1
  5. package/widgets/vis-2-widgets-inventwo/assets/{InventwoGeneric-B2F0c5yL.js → InventwoGeneric-DmPldO6z.js} +31 -31
  6. package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetCheckbox-5kq2eyAM.js → InventwoWidgetCheckbox-S8XjkDGP.js} +5 -5
  7. package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetRadialSlider-D0-KNf2l.js → InventwoWidgetRadialSlider-D8dl9EPK.js} +25 -25
  8. package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetSlider-D8wRTp7r.js → InventwoWidgetSlider-CEkyU1gv.js} +27 -27
  9. package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetSwitch-C6p_VUGX.js → InventwoWidgetSwitch-DyK7J_YN.js} +2 -2
  10. package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetTable-CaXJGOc8.js → InventwoWidgetTable-CJ2fYH7S.js} +5 -5
  11. package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetUniversal-BdKbtAtr.js → InventwoWidgetUniversal-B3TL-4ix.js} +352 -311
  12. package/widgets/vis-2-widgets-inventwo/assets/{createSvgIcon-D78ZjnCr.js → createSvgIcon-BO5nOmWA.js} +3 -3
  13. package/widgets/vis-2-widgets-inventwo/assets/{hostInit-IXaVppw_.js → hostInit-D6momM_S.js} +2 -2
  14. package/widgets/vis-2-widgets-inventwo/assets/{index-Do-nCdWy.js → index-BEpFHtMA.js} +0 -9
  15. package/widgets/vis-2-widgets-inventwo/assets/{index-Bk5B5ET5.js → index-BZKNvirX.js} +8 -8
  16. package/widgets/vis-2-widgets-inventwo/assets/{index-zlH0oKrA.js → index-C-cNZXFo.js} +2 -2
  17. package/widgets/vis-2-widgets-inventwo/assets/{index-76esgUmX.js → index-CFdeI5L_.js} +4 -4
  18. package/widgets/vis-2-widgets-inventwo/assets/preload-helper-PPVm8Dsz.js +36 -0
  19. package/widgets/vis-2-widgets-inventwo/assets/{styled-Cn9_UETB.js → styled-B6ANeESM.js} +1 -1
  20. package/widgets/vis-2-widgets-inventwo/assets/{tableRowClasses-Bpq28eci.js → tableRowClasses-CsDLHA-3.js} +1 -1
  21. package/widgets/vis-2-widgets-inventwo/assets/translations-Bwd2Y-cM.js +144 -0
  22. package/widgets/vis-2-widgets-inventwo/assets/{useTheme-B6x9x7pr.js → useTheme-DNnccp_1.js} +1 -1
  23. package/widgets/vis-2-widgets-inventwo/assets/{virtualExposes-Re88Pv7-.js → virtualExposes-D0DllB9u.js} +9 -9
  24. package/widgets/vis-2-widgets-inventwo/customWidgets.js +8 -8
  25. package/widgets/vis-2-widgets-inventwo/assets/preload-helper-Ct5FWWRu.js +0 -36
  26. package/widgets/vis-2-widgets-inventwo/assets/translations-B9vXfo2D.js +0 -144
  27. /package/widgets/vis-2-widgets-inventwo/assets/{defaultTheme-CemCGl9G.js → defaultTheme-B3m4fB8l.js} +0 -0
  28. /package/widgets/vis-2-widgets-inventwo/assets/{index-CNaKZcoj.js → index-Cbxzx2fq.js} +0 -0
  29. /package/widgets/vis-2-widgets-inventwo/assets/{jsx-runtime-1KR4UBAX.js → jsx-runtime-oJpyLRee.js} +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 jkvarel <jk@inventwo.com>
3
+ Copyright (c) 2025-2026 jkvarel <jk@inventwo.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.2 (2026-01-09)
60
+ - Added configurable ring thickness and number visibility for analog clock (#161)
61
+
59
62
  ### 0.5.1 (2025-12-24)
60
63
  - Added missing translations for the previous version
61
64
 
@@ -215,7 +218,7 @@ All widgets come with extensive design options to customize the look and feel to
215
218
  ## License
216
219
  The MIT License (MIT)
217
220
 
218
- Copyright (c) 2025 jkvarel <jk@inventwo.com>
221
+ Copyright (c) 2025-2026 jkvarel <jk@inventwo.com>
219
222
 
220
223
  Permission is hereby granted, free of charge, to any person obtaining a copy
221
224
  of this software and associated documentation files (the "Software"), to deal
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.1",
4
+ "version": "0.5.2",
5
5
  "news": {
6
+ "0.5.2": {
7
+ "en": "Added configurable ring thickness and number visibility for analog clock (#161)",
8
+ "de": "Hinzugefügt konfigurierbare Ringstärke und Zahlensicht für analoge Uhr (#161)",
9
+ "ru": "Добавлена настраиваемая толщина кольца и видимость номера для аналоговых часов (#161)",
10
+ "pt": "Adicionada espessura de anel configurável e visibilidade numérica para o relógio analógico (# 161)",
11
+ "nl": "Toegevoegd configureerbare ringdikte en nummerweergave voor analoge klok (#161)",
12
+ "fr": "Ajout d'épaisseur de bague configurable et de visibilité du nombre pour horloge analogique (#161)",
13
+ "it": "Aggiunto lo spessore dell'anello configurabile e la visibilità del numero per orologio analogico (#161)",
14
+ "es": "Se agregó el espesor del anillo configurable y la visibilidad del número para el reloj analógico (#161)",
15
+ "pl": "Dodano konfigurowalną grubość pierścienia i widoczność cyfrową zegara analogowego (# 161)",
16
+ "uk": "Додано конфігуровану товщину кільця і видимість номеру для аналогового годинника (#161)",
17
+ "zh-cn": "为模拟时钟添加可配置的环厚度和数字可见度(# 161)"
18
+ },
6
19
  "0.5.1": {
7
20
  "en": "Added missing translations for the previous version",
8
21
  "de": "Fehlende Übersetzungen für die vorherige Version hinzugefügt",
@@ -80,19 +93,6 @@
80
93
  "pl": "Stała pozycja treści spowodowana poprzednią wersją",
81
94
  "uk": "Виправлена позиція вмісту, викликана попередньою версією",
82
95
  "zh-cn": "上一个版本造成的固定内容位置"
83
- },
84
- "0.3.11": {
85
- "en": "Added padding options for dialog titlebar (#102, #153)\nAdded \"close after x seconds\" option for dialog (#102)\nAdded option to hide dialog titlebar (#102)\nAdded image resize and position options (#101)",
86
- "de": "Hinzufügen von Padding-Optionen für Dialog-Titelleiste (#102, #153)\nHinzufügen \"Schließen nach x Sekunden\" Option für Dialog (#102)\nHinzugefügt Option zum Verbergen Dialog Titelleiste (#102)\nBildgröße und Positionsoptionen hinzugefügt (#101)",
87
- "ru": "Добавлены параметры прокладки для панели заголовков диалогов (#102, #153)\nДобавлена опция «закрыть после x секунд» для диалога (#102)\nДобавлена возможность скрыть панель заголовков диалогов (#102)\nДобавлены параметры размера изображения и позиции (#101)",
88
- "pt": "Opções de preenchimento adicionadas para a barra de título da janela (# 102, # 153)\nAdicionada a opção \"fechar após x segundos\" para o diálogo (# 102)\nOpção adicionada para ocultar a barra de título da janela (# 102)\nOpções de redimensionamento e posição da imagem adicionadas (#101)",
89
- "nl": "Opties voor opvulling voor dialoogvenstertitelbalk (#102, #153) toegevoegd\nToegevoegd \"sluiten na x seconden\" optie voor dialoog (#102)\nToegevoegd optie om dialoogvenster titelbalk te verbergen (#102)\nAfbeeldingsgrootte en positieopties toegevoegd (#101)",
90
- "fr": "Ajout d'options de rembourrage pour la barre de titres de dialogue (#102, #153)\nAjout de l'option « fermer après x secondes » pour la boîte de dialogue (#102)\nAjout d'une option pour masquer la barre de titre de la boîte de dialogue (#102)\nAjout d'options de redimensionnement et de position de l'image (#101)",
91
- "it": "Aggiunto opzioni di imbottitura per la barra del titolo di dialogo (#102, #153)\nAggiunto \"chiudi dopo x secondi\" opzione per la finestra di dialogo (#102)\nAggiunta opzione per nascondere la barra del titolo di dialogo (#102)\nOpzioni di ridimensionamento e posizione dell'immagine aggiuntiva (#101)",
92
- "es": "Opciones de relleno adicionales para la barra de diálogo (#102, #153)\nAñadido \"cerrar después de x segundos\" opción para el diálogo (#102)\nOpción adicional para ocultar la barra de diálogo (#102)\nOpciones de tamaño y posición agregadas (#101)",
93
- "pl": "Dodano opcje wyściełania dla paska dialogowego (# 102, # 153)\nDodano opcję \"Zamknij po x sekundach\" dla okna dialogowego (# 102)\nDodano opcję ukrywania paska dialogowego (# 102)\nDodano zmianę rozmiaru obrazu i opcji pozycji (# 101)",
94
- "uk": "Додано параметри наповнення діалогового вікна (#102, #153)\nДодано \"close після x секунд\" варіант для діалогу (#102)\nДодано варіант, щоб приховати діалогове заголовок (#102)\nДодано розмір зображення та параметри позиції (#101)",
95
- "zh-cn": "添加对话框标题栏的编码选项(# 102, # 153)\n添加“ x 秒后关闭” 对话框选项 (# 102)\n添加到隐藏对话框标题栏的选项(# 102)\n添加图像调整大小和位置选项(# 101)"
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.1",
3
+ "version": "0.5.2",
4
4
  "description": "ioBroker vis2 inventwo widgets",
5
5
  "author": "jkvarel <jk@inventwo.com>",
6
6
  "contributors": [
@@ -4,53 +4,53 @@ class g extends window.visRxWidget {
4
4
  return "vis_2_widgets_inventwo_";
5
5
  }
6
6
  constructor(t) {
7
- super(t), this.getWidgetInfo().visAttrs.forEach((n) => {
8
- n.fields.forEach((s) => {
9
- s.name !== void 0 && (s.name.endsWith("FromWidget") || (this.groupAttrs[n.name] === void 0 && (this.groupAttrs[n.name] = []), this.groupAttrs[n.name].push(s.name)));
7
+ super(t), this.getWidgetInfo().visAttrs.forEach((s) => {
8
+ s.fields.forEach((r) => {
9
+ r.name !== void 0 && (r.name.endsWith("FromWidget") || (this.groupAttrs[s.name] === void 0 && (this.groupAttrs[s.name] = []), this.groupAttrs[s.name].push(r.name)));
10
10
  });
11
11
  });
12
12
  }
13
13
  onChange(t, e) {
14
14
  if (this.props.editMode) return;
15
- const n = this.state.rxData.oid;
16
- this.props.context.setValue(n, parseFloat(e));
15
+ const s = this.state.rxData.oid;
16
+ this.props.context.setValue(s, parseFloat(e));
17
17
  }
18
18
  getValue(t) {
19
19
  if (t !== void 0 && t !== "" && t !== "nothing_selected") return this.state.values[`${t}.val`];
20
20
  }
21
- getStyle(t, e, n = null) {
21
+ getStyle(t, e, s = null) {
22
22
  var _a, _b, _c, _d, _e;
23
- const s = {}, c = this.state.rxData[t], i = n ?? false;
23
+ const r = {}, c = this.state.rxData[t], n = s ?? false;
24
24
  if (c) {
25
- let a = false;
26
- const d = (_c = (_b = (_a = this.props.context.views[this.props.view]) == null ? void 0 : _a.widgets) == null ? void 0 : _b[c]) == null ? void 0 : _c.data;
27
- if (d) e.forEach((l) => {
28
- let r = l;
29
- i && (r = `${l}${n}`), s[r] = d[r];
30
- }), a = true;
25
+ let o = false;
26
+ const u = (_c = (_b = (_a = this.props.context.views[this.props.view]) == null ? void 0 : _a.widgets) == null ? void 0 : _b[c]) == null ? void 0 : _c.data;
27
+ if (u) e.forEach((l) => {
28
+ let i = l;
29
+ n && (i = `${l}${s}`), r[i] = u[i];
30
+ }), o = true;
31
31
  else {
32
32
  const l = Object.keys(this.props.context.views);
33
- for (let r = 0; r < l.length; r++) {
34
- const f = this.props.context.views[l[r]];
33
+ for (let i = 0; i < l.length; i++) {
34
+ const f = this.props.context.views[l[i]];
35
35
  if (f.name !== this.props.view && ((_e = (_d = f.widgets) == null ? void 0 : _d[c]) == null ? void 0 : _e.data)) {
36
36
  const p = f.widgets[c].data;
37
- e.forEach((h) => {
38
- let u = h;
39
- i && (u = `${h}${n}`), s[u] = p[u];
40
- }), a = true;
37
+ e.forEach((d) => {
38
+ let h = d;
39
+ n && (h = `${d}${s}`), r[h] = p[h];
40
+ }), o = true;
41
41
  break;
42
42
  }
43
43
  }
44
44
  }
45
- a || e.forEach((l) => {
46
- let r = l;
47
- i && (r = `${l}${n}`), s[r] = this.state.rxData[r];
45
+ o || e.forEach((l) => {
46
+ let i = l;
47
+ n && (i = `${l}${s}`), r[i] = this.state.rxData[i];
48
48
  });
49
- } else e.forEach((a) => {
50
- let o = a;
51
- i && (o = `${a}${n}`), s[o] = this.state.rxData[o];
49
+ } else e.forEach((o) => {
50
+ let a = o;
51
+ n && (a = `${o}${s}`), r[a] = this.state.rxData[a];
52
52
  });
53
- return s;
53
+ return r;
54
54
  }
55
55
  convertValue(t, e = null) {
56
56
  return t === "true" ? true : t === "false" ? false : isNaN(t) ? (t == null || t === "") && e !== null ? e : t : parseFloat(t);
@@ -62,12 +62,12 @@ class g extends window.visRxWidget {
62
62
  if (!t) return null;
63
63
  const e = t.match(/(\d+),(\d+),(\d+),(\d+)/);
64
64
  if (!e) return null;
65
- const [n, s, c] = e.slice(1, 5).map(parseFloat);
66
- function i(a) {
67
- const o = a.toString(16);
68
- return o.length === 1 ? `0${o}` : o;
65
+ const [s, r, c] = e.slice(1, 5).map(parseFloat);
66
+ function n(o) {
67
+ const a = o.toString(16);
68
+ return a.length === 1 ? `0${a}` : a;
69
69
  }
70
- return `#${i(n)}${i(s)}${i(c)}`;
70
+ return `#${n(s)}${n(r)}${n(c)}`;
71
71
  }
72
72
  isInteractionAllowed(t) {
73
73
  var _a, _b;
@@ -1,6 +1,6 @@
1
- import { j as i, __tla as __tla_0 } from "./jsx-runtime-1KR4UBAX.js";
1
+ import { j as i, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
2
2
  import { v as a, __tla as __tla_1 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
3
- import { I as h } from "./InventwoGeneric-B2F0c5yL.js";
3
+ import { I as h } from "./InventwoGeneric-DmPldO6z.js";
4
4
  import { __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
5
5
  import "./_commonjsHelpers-Cpj98o6Y.js";
6
6
  import "./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
@@ -148,7 +148,7 @@ let __tla = Promise.all([
148
148
  }
149
149
  renderWidgetBody(t) {
150
150
  super.renderWidgetBody(t);
151
- const s = this.state.rxData.oid, r = this.getValue(s), o = this.validOid(s) && r === this.convertValue(this.state.rxData.valueTrue), e = this.getStyle("styleFromWidget", this.groupAttrs.attr_group_css_style), n = {
151
+ const o = this.state.rxData.oid, r = this.getValue(o), s = this.validOid(o) && r === this.convertValue(this.state.rxData.valueTrue), e = this.getStyle("styleFromWidget", this.groupAttrs.attr_group_css_style), n = {
152
152
  color: e.boxColor,
153
153
  "&.Mui-checked": {
154
154
  color: e.boxColorActive
@@ -175,9 +175,9 @@ let __tla = Promise.all([
175
175
  control: i.jsx(a.Checkbox, {
176
176
  sx: n,
177
177
  onClick: () => this.onChange(),
178
- checked: o
178
+ checked: s
179
179
  }),
180
- label: o ? this.state.rxData.textTrue : this.state.rxData.textFalse,
180
+ label: s ? this.state.rxData.textTrue : this.state.rxData.textFalse,
181
181
  labelPlacement: this.state.rxData.textPosition
182
182
  })
183
183
  });
@@ -1,6 +1,6 @@
1
- import { j as m, __tla as __tla_0 } from "./jsx-runtime-1KR4UBAX.js";
1
+ import { j as m, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
2
2
  import { v as x, __tla as __tla_1 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
3
- import { I as y } from "./InventwoGeneric-B2F0c5yL.js";
3
+ import { I as y } from "./InventwoGeneric-DmPldO6z.js";
4
4
  import { R as S, __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
5
5
  import "./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
6
6
  import "./_commonjsHelpers-Cpj98o6Y.js";
@@ -53,9 +53,9 @@ let __tla = Promise.all([
53
53
  name: "oid",
54
54
  type: "id",
55
55
  label: "oid",
56
- onChange: async (t, e, i, n) => {
56
+ onChange: async (t, e, i, r) => {
57
57
  if (e[t.name] && e[t.name] !== "nothing_selected") {
58
- const a = await n.getObject(e[t.name]);
58
+ const a = await r.getObject(e[t.name]);
59
59
  if (a == null ? void 0 : a.common) {
60
60
  let l = false;
61
61
  a.common.min !== void 0 && a.common.min !== e.minValue && (e.minValue = a.common.min, l = true), a.common.max !== void 0 && a.common.max !== e.maxValue && (e.maxValue = a.common.max, l = true), a.common.step !== void 0 && a.common.step !== e.step && (e.step = a.common.step, l = true), l && i(e);
@@ -340,18 +340,18 @@ let __tla = Promise.all([
340
340
  getWidgetInfo() {
341
341
  return w.getWidgetInfo();
342
342
  }
343
- polarToCartesian(t, e, i, n) {
344
- const a = (n - 90) * Math.PI / 180;
343
+ polarToCartesian(t, e, i, r) {
344
+ const a = (r - 90) * Math.PI / 180;
345
345
  return {
346
346
  x: t + i * Math.cos(a),
347
347
  y: e + i * Math.sin(a)
348
348
  };
349
349
  }
350
- describeArc(t, e, i, n, a) {
351
- const l = this.polarToCartesian(t, e, i, a), d = this.polarToCartesian(t, e, i, n);
352
- let o = a - n;
353
- o < 0 && (o += 360);
354
- const c = o > 180 ? "1" : "0";
350
+ describeArc(t, e, i, r, a) {
351
+ const l = this.polarToCartesian(t, e, i, a), d = this.polarToCartesian(t, e, i, r);
352
+ let n = a - r;
353
+ n < 0 && (n += 360);
354
+ const c = n > 180 ? "1" : "0";
355
355
  return [
356
356
  "M",
357
357
  l.x,
@@ -386,24 +386,24 @@ let __tla = Promise.all([
386
386
  if (!this.containerRef.current) return;
387
387
  const e = this.containerRef.current.getBoundingClientRect();
388
388
  Math.min(e.width, e.height);
389
- const i = e.width / 2, n = e.height / 2;
389
+ const i = e.width / 2, r = e.height / 2;
390
390
  let a, l;
391
391
  if ("touches" in t) {
392
392
  if (t.touches.length === 0) return;
393
393
  a = t.touches[0].clientX - e.left, l = t.touches[0].clientY - e.top;
394
394
  } else a = t.clientX - e.left, l = t.clientY - e.top;
395
- const d = a - i, o = l - n;
396
- let c = Math.atan2(o, d) * (180 / Math.PI) + 90;
395
+ const d = a - i, n = l - r;
396
+ let c = Math.atan2(n, d) * (180 / Math.PI) + 90;
397
397
  c < 0 && (c += 360);
398
398
  const u = this.state.rxData.startAngle;
399
399
  let s = this.state.rxData.endAngle - u;
400
400
  s < 0 && (s += 360);
401
- let r = c - u;
402
- if (r < 0 && (r += 360), r > s) {
403
- const b = Math.min(r, 360 - r), v = Math.abs(r - s);
404
- r = b < v ? 0 : s;
401
+ let o = c - u;
402
+ if (o < 0 && (o += 360), o > s) {
403
+ const b = Math.min(o, 360 - o), v = Math.abs(o - s);
404
+ o = b < v ? 0 : s;
405
405
  }
406
- const _ = r / s, p = this.state.rxData.maxValue - this.state.rxData.minValue;
406
+ const _ = o / s, p = this.state.rxData.maxValue - this.state.rxData.minValue;
407
407
  let h = this.state.rxData.minValue + _ * p;
408
408
  const f = this.state.rxData.step || 1;
409
409
  h = Math.round(h / f) * f, h = Math.max(this.state.rxData.minValue, Math.min(this.state.rxData.maxValue, h)), h !== this.state.sliderValue && this.setState({
@@ -412,10 +412,10 @@ let __tla = Promise.all([
412
412
  }
413
413
  renderWidgetBody(t) {
414
414
  super.renderWidgetBody(t);
415
- const e = this.getStyle("radialTrackFromWidget", this.groupAttrs.attr_group_css_radial_track), i = this.getStyle("radialThumbFromWidget", this.groupAttrs.attr_group_css_radial_thumb), n = Math.min(parseInt(this.state.rxStyle.width) || 200, parseInt(this.state.rxStyle.height) || 200), a = n / 2, l = n / 2, d = Math.max(10, (n - e.trackWidth - i.thumbSize) / 2), o = this.state.rxData.minValue, c = this.state.rxData.maxValue, u = this.state.sliderValue ?? o, g = this.state.rxData.startAngle, s = this.state.rxData.endAngle;
416
- let r = s - g;
417
- r < 0 && (r += 360);
418
- const _ = (u - o) / (c - o), p = g + _ * r, h = this.describeArc(a, l, d, g, s), f = this.describeArc(a, l, d, g, p), b = this.polarToCartesian(a, l, d, p), v = {
415
+ const e = this.getStyle("radialTrackFromWidget", this.groupAttrs.attr_group_css_radial_track), i = this.getStyle("radialThumbFromWidget", this.groupAttrs.attr_group_css_radial_thumb), r = Math.min(parseInt(this.state.rxStyle.width) || 200, parseInt(this.state.rxStyle.height) || 200), a = r / 2, l = r / 2, d = Math.max(10, (r - e.trackWidth - i.thumbSize) / 2), n = this.state.rxData.minValue, c = this.state.rxData.maxValue, u = this.state.sliderValue ?? n, g = this.state.rxData.startAngle, s = this.state.rxData.endAngle;
416
+ let o = s - g;
417
+ o < 0 && (o += 360);
418
+ const _ = (u - n) / (c - n), p = g + _ * o, h = this.describeArc(a, l, d, g, s), f = this.describeArc(a, l, d, g, p), b = this.polarToCartesian(a, l, d, p), v = {
419
419
  width: "100%",
420
420
  height: "100%",
421
421
  display: "flex",
@@ -432,8 +432,8 @@ let __tla = Promise.all([
432
432
  onTouchStart: this.handleMouseDown,
433
433
  children: [
434
434
  m.jsxs("svg", {
435
- width: n,
436
- height: n,
435
+ width: r,
436
+ height: r,
437
437
  style: {
438
438
  overflow: "visible"
439
439
  },
@@ -1,6 +1,6 @@
1
- import { j as p, __tla as __tla_0 } from "./jsx-runtime-1KR4UBAX.js";
1
+ import { j as p, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
2
2
  import { v as c, __tla as __tla_1 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
3
- import { I as b } from "./InventwoGeneric-B2F0c5yL.js";
3
+ import { I as b } from "./InventwoGeneric-DmPldO6z.js";
4
4
  import { __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
5
5
  import "./_commonjsHelpers-Cpj98o6Y.js";
6
6
  import "./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
@@ -26,8 +26,8 @@ let __tla = Promise.all([
26
26
  })()
27
27
  ]).then(async () => {
28
28
  h = class extends b {
29
- constructor(l) {
30
- super(l), this.state = {
29
+ constructor(r) {
30
+ super(r), this.state = {
31
31
  ...this.state,
32
32
  sliderValue: 0
33
33
  };
@@ -51,12 +51,12 @@ let __tla = Promise.all([
51
51
  name: "oid",
52
52
  type: "id",
53
53
  label: "oid",
54
- onChange: async (l, t, o, d) => {
55
- if (t[l.name] && t[l.name] !== "nothing_selected") {
56
- const e = await d.getObject(t[l.name]);
54
+ onChange: async (r, t, d, o) => {
55
+ if (t[r.name] && t[r.name] !== "nothing_selected") {
56
+ const e = await o.getObject(t[r.name]);
57
57
  if (e == null ? void 0 : e.common) {
58
58
  let a = false;
59
- e.common.min !== void 0 && e.common.min !== t.max_value && (t.max_value = e.common.min, a = true), e.common.max !== void 0 && e.common.max !== t.min_value && (t.min_value = e.common.max, a = true), e.common.step !== void 0 && e.common.step !== t.step && (t.step = e.common.step, a = true), a && o(t);
59
+ e.common.min !== void 0 && e.common.min !== t.max_value && (t.max_value = e.common.min, a = true), e.common.max !== void 0 && e.common.max !== t.min_value && (t.min_value = e.common.max, a = true), e.common.step !== void 0 && e.common.step !== t.step && (t.step = e.common.step, a = true), a && d(t);
60
60
  }
61
61
  }
62
62
  }
@@ -386,34 +386,34 @@ let __tla = Promise.all([
386
386
  static getI18nPrefix() {
387
387
  return "vis_2_widgets_inventwo_";
388
388
  }
389
- onStateUpdated(l, t) {
390
- l === this.state.rxData.oid && t && t.val !== this.state.sliderValue && this.setState({
389
+ onStateUpdated(r, t) {
390
+ r === this.state.rxData.oid && t && t.val !== this.state.sliderValue && this.setState({
391
391
  sliderValue: t.val
392
392
  });
393
393
  }
394
394
  getWidgetInfo() {
395
395
  return h.getWidgetInfo();
396
396
  }
397
- renderWidgetBody(l) {
398
- super.renderWidgetBody(l);
399
- const t = this.state.rxData.minValue, o = this.state.rxData.maxValue, d = [];
400
- if (this.state.rxData.showMinMax && (d.push({
397
+ renderWidgetBody(r) {
398
+ super.renderWidgetBody(r);
399
+ const t = this.state.rxData.minValue, d = this.state.rxData.maxValue, o = [];
400
+ if (this.state.rxData.showMinMax && (o.push({
401
401
  value: t,
402
402
  label: t
403
- }), d.push({
404
- value: o,
405
- label: o
403
+ }), o.push({
404
+ value: d,
405
+ label: d
406
406
  })), this.state.rxData.showSteps) if (this.state.rxData.stepMode === "auto") {
407
407
  const i = this.state.rxData.stepDisplay;
408
- if (i > 0 && t && o && i) for (let r = t + i; r < o; r += i) d.push({
409
- value: parseFloat(r.toFixed(2).replace(/[.,]00$/, "")),
410
- label: r.toFixed(2).replace(/[.,]00$/, "")
408
+ if (i > 0 && t && d && i) for (let l = t + i; l < d; l += i) o.push({
409
+ value: parseFloat(l.toFixed(2).replace(/[.,]00$/, "")),
410
+ label: l.toFixed(2).replace(/[.,]00$/, "")
411
411
  });
412
412
  } else {
413
413
  let i = this.state.rxData.customSteps;
414
414
  i == null && (i = ""), i.split(",").forEach((u) => {
415
415
  const m = parseInt(u);
416
- d.push({
416
+ o.push({
417
417
  value: m,
418
418
  label: m
419
419
  });
@@ -474,12 +474,12 @@ let __tla = Promise.all([
474
474
  }, p.jsx(c.Slider, {
475
475
  disabled: this.props.editMode,
476
476
  sx: n,
477
- onChange: (i, r) => this.setState({
478
- sliderValue: r
477
+ onChange: (i, l) => this.setState({
478
+ sliderValue: l
479
479
  }),
480
- onChangeCommitted: (i, r) => this.setState({
481
- sliderValue: r
482
- }, () => this.onChange(i, r)),
480
+ onChangeCommitted: (i, l) => this.setState({
481
+ sliderValue: l
482
+ }, () => this.onChange(i, l)),
483
483
  min: this.state.rxData.minValue,
484
484
  max: this.state.rxData.maxValue,
485
485
  step: this.state.rxData.step,
@@ -487,7 +487,7 @@ let __tla = Promise.all([
487
487
  valueLabelDisplay: "auto",
488
488
  track: e.trackBarType,
489
489
  orientation: this.state.rxData.orientation,
490
- marks: d
490
+ marks: o
491
491
  });
492
492
  }
493
493
  };
@@ -1,6 +1,6 @@
1
- import { j as o, __tla as __tla_0 } from "./jsx-runtime-1KR4UBAX.js";
1
+ import { j as o, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
2
2
  import { v as i, __tla as __tla_1 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
3
- import { I as u } from "./InventwoGeneric-B2F0c5yL.js";
3
+ import { I as u } from "./InventwoGeneric-DmPldO6z.js";
4
4
  import { __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
5
5
  import "./_commonjsHelpers-Cpj98o6Y.js";
6
6
  import "./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
@@ -1,12 +1,12 @@
1
- import { j as l, __tla as __tla_0 } from "./jsx-runtime-1KR4UBAX.js";
1
+ import { j as l, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
2
2
  import { v as i, __tla as __tla_1 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
3
- import { I as k } from "./InventwoGeneric-B2F0c5yL.js";
4
- import { s as g, __tla as __tla_2 } from "./styled-Cn9_UETB.js";
5
- import { t as D, a as y, __tla as __tla_3 } from "./tableRowClasses-Bpq28eci.js";
3
+ import { I as k } from "./InventwoGeneric-DmPldO6z.js";
4
+ import { s as g, __tla as __tla_2 } from "./styled-B6ANeESM.js";
5
+ import { t as D, a as y, __tla as __tla_3 } from "./tableRowClasses-CsDLHA-3.js";
6
6
  import { __tla as __tla_4 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
7
7
  import "./_commonjsHelpers-Cpj98o6Y.js";
8
8
  import "./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
9
- import { __tla as __tla_5 } from "./defaultTheme-CemCGl9G.js";
9
+ import { __tla as __tla_5 } from "./defaultTheme-B3m4fB8l.js";
10
10
  let F;
11
11
  let __tla = Promise.all([
12
12
  (() => {