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

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 +7 -146
  3. package/io-package.json +28 -27
  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-76esgUmX.js → index-CFdeI5L_.js} +4 -4
  17. package/widgets/vis-2-widgets-inventwo/assets/{index-zlH0oKrA.js → index-DJuKECkh.js} +10084 -10082
  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,12 @@ 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.3 (2026-01-10)
60
+ - Added radial slider widget in io-package.json
61
+
62
+ ### 0.5.2 (2026-01-09)
63
+ - Added configurable ring thickness and number visibility for analog clock (#161)
64
+
59
65
  ### 0.5.1 (2025-12-24)
60
66
  - Added missing translations for the previous version
61
67
 
@@ -67,155 +73,10 @@ All widgets come with extensive design options to customize the look and feel to
67
73
  ### 0.4.2 (2025-12-22)
68
74
  - Vite downgrade
69
75
 
70
- ### 0.4.1 (2025-12-18)
71
- - Added image type to column for table widget (#97)
72
- - Added custom datetime format support for table widget (#97)
73
- - Fix issue in slider widget when steps is active but value is empty
74
- - Changed module federation version to match vis 2.0 stable
75
-
76
- ### 0.4.0 (2025-12-13)
77
- - Switched to TypeScript
78
-
79
- ### 0.3.12 (2025-12-06)
80
- - Fixed content position caused by previous version
81
-
82
- ### 0.3.11 (2025-12-04)
83
- - Added padding options for dialog titlebar (#102, #153)
84
- - Added "close after x seconds" option for dialog (#102)
85
- - Added option to hide dialog titlebar (#102)
86
- - Added image resize and position options (#101)
87
-
88
- ### 0.3.10 (2025-11-20)
89
- - Updated dependencies
90
-
91
- ### 0.3.9 (2025-09-20)
92
- - Fixed border color label in universal widget states (#120)
93
-
94
- ### 0.3.8 (2025-09-19)
95
- - Fix issue with table border radius and added option to set border radius (#99)
96
- - Fix issue with universal widget and comparison other than "equal" (#109)
97
- - Added option to inherit state colors from other widgets (#120
98
-
99
- ### 0.3.7 (2025-09-10)
100
- - Removed code to print console logs to a widget for debugging purposes
101
-
102
- ### 0.3.6 (2025-09-01)
103
- - Extended debugging by printing source file with line number
104
-
105
- ### 0.3.5 (2025-08-10)
106
- - Fix for previous version
107
-
108
- ### 0.3.4 (2025-08-09)
109
- - Added code to print console logs to a widget for debugging purposes
110
-
111
- ### 0.3.3 (2025-07-16)
112
- - Added option to click through universal widget
113
- - Fixed state not used then oid is left empty
114
- - Added options to control table row line width and color
115
- - Removed table background color to allow transparency
116
-
117
- ### 0.3.2 (2025-07-11)
118
- * Support font styles in table widget (#78)
119
- * Added border and shadow options for table widget (#78)
120
-
121
- ### 0.3.1 (2025-07-08)
122
- * Change build to vite
123
-
124
- ### 0.3.0 (2025-07-08)
125
- * Added new widget: Checkbox
126
- * Fixed issue with table widget and object values (#77)
127
- * Fixed translated text (#79)
128
-
129
- ### 0.2.2 (2025-05-24)
130
- * Fixed build issue
131
-
132
- ### 0.2.1 (2025-05-23)
133
- * Fixed build issue
134
-
135
- ### 0.2.0 (2025-05-22)
136
- * Fixed dialog is opened on page load and view change
137
- * New widget: Table
138
-
139
- ### 0.1.12 (2025-03-31)
140
- * Fixed view in dialog is not triggered on state change and state value is not set when opened (#30)
141
- * Added function to color images (#38)
142
- * Allow custom size for dialog by using binding (#39)
143
- * Fix dialog "close on click from outside" checkbox was inverted (#42)
144
-
145
- ### 0.1.11 (2024-07-18)
146
- * Fixed issues mentioned by eslint
147
-
148
- ### 0.1.10 (2024-07-18)
149
- * Removed styles libraries as they are not compatible with vis 2.0
150
- * Fixed compare by for widget type view in dialog (#24)
151
- * Fixed text color not working in slider and added other font styles (#25)
152
- * Fixed switch doesn't toggle without defining values (#28)
153
-
154
- ### 0.1.9 (2024-05-24)
155
- * Fixed missing object id if a type is nav (#14)
156
- * Fixed content color for icons not working (#22)
157
-
158
- ### 0.1.7 (2024-05-22)
159
- * Fixed missing object id if a type is nav (#14)
160
- * Fixed image aspect ratio (#15)
161
- * Added options to customize dialog
162
-
163
- ### 0.1.5 (2024-04-14)
164
- * Added optional button click feedback options
165
- * Added widget type to send http requests and open urls
166
-
167
- ### 0.1.4 (2024-04-14)
168
- * Fixed issue in workflow
169
-
170
- ### 0.1.3 (2024-04-14)
171
- * Fixed issue in widget state check. Also includes #12
172
- * Removed second unused field 'button width' (#10)
173
- * Added widget type Increase/Decrease value (#7)
174
- * Added more info to readme
175
- * Removed iobroker/adapter-core dependency
176
- * Added node 20 to test-and-release workflow
177
-
178
- ### 0.1.2 (2024-04-08)
179
- * Fixed issue editor crashes when changing "Comparison operator" or "Compare by" on multiple states.
180
- * Fixesd issue state settings not used if condition is true.
181
-
182
- ### 0.1.1 (2024-04-05)
183
- * Fixed wrong default value for comparison operator
184
-
185
- ### 0.1.0 (2024-04-05)
186
- * Added new widget: Switch
187
- * Added comparison operator and option to check for value or view for each state in universal widget
188
- * Added steps to slider widget
189
- * Fixed issue states not working if type is button or readonly
190
- * Fixed issue value is set with wrong data type
191
-
192
- ### 0.0.7 (2024-04-03)
193
- * Bug fix
194
-
195
- ### 0.0.6 (2024-04-03)
196
- * Bug fix
197
-
198
- ### 0.0.5 (2024-04-02)
199
- * Bug fix
200
-
201
- ### 0.0.4 (2024-04-01)
202
- * Bug fix
203
- * Added new widget: Table, still work in progress
204
- * CSS settings divided into single groups
205
-
206
- ### 0.0.3 (2024-03-14)
207
- * Bug fix
208
-
209
- ### 0.0.2 (2024-03-14)
210
- * Bug fix
211
-
212
- ### 0.0.1 (2024-03-11)
213
- * (jkvarel) Init
214
-
215
76
  ## License
216
77
  The MIT License (MIT)
217
78
 
218
- Copyright (c) 2025 jkvarel <jk@inventwo.com>
79
+ Copyright (c) 2025-2026 jkvarel <jk@inventwo.com>
219
80
 
220
81
  Permission is hereby granted, free of charge, to any person obtaining a copy
221
82
  of this software and associated documentation files (the "Software"), to deal
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "vis-2-widgets-inventwo",
4
- "version": "0.5.1",
4
+ "version": "0.5.3",
5
5
  "news": {
6
+ "0.5.3": {
7
+ "en": "Added radial slider widget in io-package.json",
8
+ "de": "Hinzugefügt Radial Slider Widget in io-Package. Json",
9
+ "ru": "Добавлен виджет радиального слайдера в io-пакет. Джонсон",
10
+ "pt": "Adicionado widget de controle deslizante radial no pacote io. json",
11
+ "nl": "Toegevoegd radial slider widget in io-package. json",
12
+ "fr": "Ajout d'un widget slider radial dans io-package. Json",
13
+ "it": "Aggiunto widget cursore radiale in io-package. J",
14
+ "es": "Añadido widget de deslizador radial en io-paquete. json",
15
+ "pl": "Dodano radialny widżet suwaka w pakiecie jo-. json",
16
+ "uk": "Додано радіальний слайдер віджет в io-package. свінгери",
17
+ "zh-cn": "在 io- package 中添加光圈滑动部件 。 贾森"
18
+ },
19
+ "0.5.2": {
20
+ "en": "Added configurable ring thickness and number visibility for analog clock (#161)",
21
+ "de": "Hinzugefügt konfigurierbare Ringstärke und Zahlensicht für analoge Uhr (#161)",
22
+ "ru": "Добавлена настраиваемая толщина кольца и видимость номера для аналоговых часов (#161)",
23
+ "pt": "Adicionada espessura de anel configurável e visibilidade numérica para o relógio analógico (# 161)",
24
+ "nl": "Toegevoegd configureerbare ringdikte en nummerweergave voor analoge klok (#161)",
25
+ "fr": "Ajout d'épaisseur de bague configurable et de visibilité du nombre pour horloge analogique (#161)",
26
+ "it": "Aggiunto lo spessore dell'anello configurabile e la visibilità del numero per orologio analogico (#161)",
27
+ "es": "Se agregó el espesor del anillo configurable y la visibilidad del número para el reloj analógico (#161)",
28
+ "pl": "Dodano konfigurowalną grubość pierścienia i widoczność cyfrową zegara analogowego (# 161)",
29
+ "uk": "Додано конфігуровану товщину кільця і видимість номеру для аналогового годинника (#161)",
30
+ "zh-cn": "为模拟时钟添加可配置的环厚度和数字可见度(# 161)"
31
+ },
6
32
  "0.5.1": {
7
33
  "en": "Added missing translations for the previous version",
8
34
  "de": "Fehlende Übersetzungen für die vorherige Version hinzugefügt",
@@ -67,32 +93,6 @@
67
93
  "pl": "Przełączono na TypeScript",
68
94
  "uk": "Перемкнено до TypeScript",
69
95
  "zh-cn": "切换到类型脚本"
70
- },
71
- "0.3.12": {
72
- "en": "Fixed content position caused by previous version",
73
- "de": "Feste Inhaltsposition durch vorherige Version",
74
- "ru": "Позиция фиксированного контента, вызванная предыдущей версией",
75
- "pt": "Posição de conteúdo fixa causada pela versão anterior",
76
- "nl": "Vaste inhoudpositie veroorzaakt door vorige versie",
77
- "fr": "Position de contenu fixe causée par la version précédente",
78
- "it": "Posizione fissa dei contenuti causata dalla versione precedente",
79
- "es": "Posición de contenido fija causada por la versión anterior",
80
- "pl": "Stała pozycja treści spowodowana poprzednią wersją",
81
- "uk": "Виправлена позиція вмісту, викликана попередньою версією",
82
- "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": {
@@ -152,6 +152,7 @@
152
152
  "components": [
153
153
  "InventwoWidgetUniversal",
154
154
  "InventwoWidgetSlider",
155
+ "InventwoWidgetRadialSlider",
155
156
  "InventwoWidgetSwitch",
156
157
  "InventwoWidgetCheckbox",
157
158
  "InventwoWidgetTable"
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.3",
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
  (() => {