iobroker.vis-2-widgets-inventwo 0.4.0 → 0.4.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 +29 -9
- package/io-package.json +14 -14
- package/package.json +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetCheckbox-CKLquE37.js → InventwoWidgetCheckbox-S8XjkDGP.js} +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetSlider-BX9FNabc.js → InventwoWidgetSlider-CEkyU1gv.js} +2 -2
- package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetSwitch-BV_GenP1.js → InventwoWidgetSwitch-DyK7J_YN.js} +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetTable-grNhXRwE.js → InventwoWidgetTable-CJ2fYH7S.js} +106 -80
- package/widgets/vis-2-widgets-inventwo/assets/{InventwoWidgetUniversal-DiMcCuAP.js → InventwoWidgetUniversal--13qopF2.js} +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/{createSvgIcon-D78ZjnCr.js → createSvgIcon-BO5nOmWA.js} +3 -3
- package/widgets/vis-2-widgets-inventwo/assets/{hostInit-rFfVr0L8.js → hostInit-D6momM_S.js} +2 -2
- package/widgets/vis-2-widgets-inventwo/assets/{index-Do-nCdWy.js → index-BEpFHtMA.js} +0 -9
- package/widgets/vis-2-widgets-inventwo/assets/{index-Bk5B5ET5.js → index-BZKNvirX.js} +8 -8
- package/widgets/vis-2-widgets-inventwo/assets/{index-BRNEMND9.js → index-BkolKmyH.js} +276 -276
- package/widgets/vis-2-widgets-inventwo/assets/{index-76esgUmX.js → index-CFdeI5L_.js} +4 -4
- package/widgets/vis-2-widgets-inventwo/assets/{preload-helper-D9Z9MdNV.js → preload-helper-PPVm8Dsz.js} +10 -10
- package/widgets/vis-2-widgets-inventwo/assets/{styled-Cn9_UETB.js → styled-B6ANeESM.js} +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/{tableRowClasses-Bpq28eci.js → tableRowClasses-CsDLHA-3.js} +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/translations-BZ_wOGSz.js +144 -0
- package/widgets/vis-2-widgets-inventwo/assets/{useTheme-B6x9x7pr.js → useTheme-DNnccp_1.js} +1 -1
- package/widgets/vis-2-widgets-inventwo/assets/{virtualExposes-DnvSURPu.js → virtualExposes-C3Y2fGO4.js} +8 -8
- package/widgets/vis-2-widgets-inventwo/customWidgets.js +8 -8
- package/widgets/vis-2-widgets-inventwo/assets/translations-CVfKOQdu.js +0 -12
- /package/widgets/vis-2-widgets-inventwo/assets/{defaultTheme-CemCGl9G.js → defaultTheme-B3m4fB8l.js} +0 -0
- /package/widgets/vis-2-widgets-inventwo/assets/{index-CNaKZcoj.js → index-Cbxzx2fq.js} +0 -0
- /package/widgets/vis-2-widgets-inventwo/assets/{jsx-runtime-1KR4UBAX.js → jsx-runtime-oJpyLRee.js} +0 -0
package/README.md
CHANGED
|
@@ -14,25 +14,39 @@ Adds switches, buttons, sliders and more as widgets for ioBroker VIS 2.0.
|
|
|
14
14
|
## Content
|
|
15
15
|
Various widgets for switching, navigating and more.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
### Widget - Universal
|
|
18
|
+

|
|
18
19
|
|
|
19
|
-
Various content types
|
|
20
|
+
#### Various content types
|
|
20
21
|
|
|
21
|
-

|
|
22
23
|
|
|
23
24
|
Color picker
|
|
24
25
|
|
|
25
|
-

|
|
26
27
|
|
|
27
|
-
Slider
|
|
28
|
+
### Widget - Slider
|
|
28
29
|
|
|
29
|
-

|
|
30
31
|
|
|
31
|
-
Switches
|
|
32
|
+
### Widget - Switches
|
|
32
33
|
|
|
33
|
-

|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
### Widget - Checkbox
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
### Widget—Table
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
### Design
|
|
45
|
+
All widgets come with extensive design options to customize the look and feel to your needs.
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+
### More will follow...
|
|
36
50
|
|
|
37
51
|
|
|
38
52
|
## Changelog
|
|
@@ -40,6 +54,12 @@ Switches
|
|
|
40
54
|
Placeholder for the next version (at the beginning of the line):
|
|
41
55
|
### **WORK IN PROGRESS**
|
|
42
56
|
-->
|
|
57
|
+
### 0.4.1 (2025-12-18)
|
|
58
|
+
- Added image type to column for table widget (#97)
|
|
59
|
+
- Added custom datetime format support for table widget (#97)
|
|
60
|
+
- Fix issue in slider widget when steps is active but value is empty
|
|
61
|
+
- Changed module federation version to match vis 2.0 stable
|
|
62
|
+
|
|
43
63
|
### 0.4.0 (2025-12-13)
|
|
44
64
|
- Switched to TypeScript
|
|
45
65
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "vis-2-widgets-inventwo",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.4.1": {
|
|
7
|
+
"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",
|
|
8
|
+
"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",
|
|
9
|
+
"ru": "Добавлен тип изображения в колонку для виджета таблицы (#97)\nДобавлена поддержка пользовательского формата даты для виджета таблицы (#97)\nИсправление проблемы в виджете слайдера, когда шаги активны, но ценность пуста\nИзмененная версия федерации модулей соответствует стабильной версии 2.0",
|
|
10
|
+
"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",
|
|
11
|
+
"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",
|
|
12
|
+
"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",
|
|
13
|
+
"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",
|
|
14
|
+
"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",
|
|
15
|
+
"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",
|
|
16
|
+
"uk": "Додано тип зображення до колонки для настільного віджету (#97)\nДодано користувальницький дата-центр підтримки для настільного віджету (#97)\nВиправлено проблему у віджеті слайдера, коли дії активні, але значення є порожнім\nЗмінений варіант федерації модуля, щоб відповідати в'язам 2.0 стабільний",
|
|
17
|
+
"zh-cn": "将图像类型添加到表格部件的列(# 97)\n为表格部件添加自定义日期时间格式支持(# 97)\n当步骤活动但值为空时, 在滑动部件中修正发行\n更改模块 Federation 版本, 与 2.0 稳定匹配"
|
|
18
|
+
},
|
|
6
19
|
"0.4.0": {
|
|
7
20
|
"en": "Switched to TypeScript",
|
|
8
21
|
"de": "Zu TypeScript geschaltet",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Naprawiono problem z promieniem okręgu tabeli i dodano opcję ustawienia promienia okręgu (#99)\nNaprawiono problem z uniwersalnym widżetem i porównaniem innym niż \"równy\" (#109)\nDodano opcję dziedziczenia kolorów stanu z innych widżetów (#120)",
|
|
81
94
|
"uk": "Виправлено проблему з округленням кутів таблиці та додана опція для задання радіусу кутів (#99)\nВиправлено проблему з універсальним віджетом та порівнянням, відмінним від \"рівне\" (#109)\nДодана опція успадкування кольорів стану від інших віджетів (#120)",
|
|
82
95
|
"zh-cn": "修复了表格边框半径的问题,并添加了设置边框半径的选项 (#99)\n修复通用小部件与\"等于\"之外的比较问题 (#109)\n添加了从其他小部件继承状态颜色的选项(#120)"
|
|
83
|
-
},
|
|
84
|
-
"0.3.7": {
|
|
85
|
-
"en": "Removed code to print console logs to a widget for debugging purposes",
|
|
86
|
-
"de": "Entfernter Code zum Drucken von Konsolenprotokollen in ein Widget zu Debugging-Zwecken",
|
|
87
|
-
"ru": "Удален код для вывода журнальных логов на виджет для отладочных целей",
|
|
88
|
-
"pt": "Removido o código para imprimir logs do console em um widget para fins de depuração",
|
|
89
|
-
"nl": "Verwijderde code om console logs af te drukken naar een widget voor debugdoeleinden",
|
|
90
|
-
"fr": "Suppression du code permettant d'imprimer les journaux de la console dans un widget à des fins de débogage",
|
|
91
|
-
"it": "Rimosso il codice per stampare i log della console su un widget a fini di debug",
|
|
92
|
-
"es": "Se eliminó el código que imprimía mensajes de consola en un widget con fines de depuración.",
|
|
93
|
-
"pl": "Usunięto kod odpowiedzialny za wyświetlanie logów konsoli w widżecie do celów debugowania.",
|
|
94
|
-
"uk": "Видалено код для виведення журналів консолі в віджет для налагодження коду.",
|
|
95
|
-
"zh-cn": "为了调试目的,已移除将控制台日志打印到小部件的代码。"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as i, __tla as __tla_0 } from "./jsx-runtime-
|
|
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
3
|
import { I as h } from "./InventwoGeneric-DmPldO6z.js";
|
|
4
4
|
import { __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as p, __tla as __tla_0 } from "./jsx-runtime-
|
|
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
3
|
import { I as b } from "./InventwoGeneric-DmPldO6z.js";
|
|
4
4
|
import { __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
|
|
@@ -405,7 +405,7 @@ let __tla = Promise.all([
|
|
|
405
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) for (let l = t + i; l < d; l += i) o.push({
|
|
408
|
+
if (i > 0 && t && d && i) for (let l = t + i; l < d; l += i) o.push({
|
|
409
409
|
value: parseFloat(l.toFixed(2).replace(/[.,]00$/, "")),
|
|
410
410
|
label: l.toFixed(2).replace(/[.,]00$/, "")
|
|
411
411
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o, __tla as __tla_0 } from "./jsx-runtime-
|
|
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
3
|
import { I as u } from "./InventwoGeneric-DmPldO6z.js";
|
|
4
4
|
import { __tla as __tla_2 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as l, __tla as __tla_0 } from "./jsx-runtime-
|
|
2
|
-
import { v as
|
|
1
|
+
import { j as l, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
|
|
2
|
+
import { v as i, __tla as __tla_1 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
|
|
3
3
|
import { I as k } from "./InventwoGeneric-DmPldO6z.js";
|
|
4
|
-
import { s as g, __tla as __tla_2 } from "./styled-
|
|
5
|
-
import { t as D, a as
|
|
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-
|
|
10
|
-
let
|
|
9
|
+
import { __tla as __tla_5 } from "./defaultTheme-B3m4fB8l.js";
|
|
10
|
+
let F;
|
|
11
11
|
let __tla = Promise.all([
|
|
12
12
|
(() => {
|
|
13
13
|
try {
|
|
@@ -46,7 +46,7 @@ let __tla = Promise.all([
|
|
|
46
46
|
}
|
|
47
47
|
})()
|
|
48
48
|
]).then(async () => {
|
|
49
|
-
|
|
49
|
+
F = class extends k {
|
|
50
50
|
static getWidgetInfo() {
|
|
51
51
|
return {
|
|
52
52
|
id: "tplInventwoWidgetTable",
|
|
@@ -180,6 +180,10 @@ let __tla = Promise.all([
|
|
|
180
180
|
{
|
|
181
181
|
value: "datetime",
|
|
182
182
|
label: "datetime"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
value: "image",
|
|
186
|
+
label: "image"
|
|
183
187
|
}
|
|
184
188
|
],
|
|
185
189
|
default: "text",
|
|
@@ -207,11 +211,22 @@ let __tla = Promise.all([
|
|
|
207
211
|
{
|
|
208
212
|
value: "time",
|
|
209
213
|
label: "Time"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
value: "custom",
|
|
217
|
+
label: "Custom"
|
|
210
218
|
}
|
|
211
219
|
],
|
|
212
220
|
default: "datetime",
|
|
213
221
|
label: "datetime_format",
|
|
214
222
|
hidden: 'data["columnValueFormat" + index] != "datetime"'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "columnDatetimeFormatCustom",
|
|
226
|
+
type: "text",
|
|
227
|
+
label: "datetime_format_custom",
|
|
228
|
+
tooltip: "tooltip_datetime_custom_format",
|
|
229
|
+
hidden: 'data["columnValueFormat" + index] != "datetime" || data["columnDatetimeFormat" + index] != "custom"'
|
|
215
230
|
}
|
|
216
231
|
]
|
|
217
232
|
},
|
|
@@ -523,31 +538,31 @@ let __tla = Promise.all([
|
|
|
523
538
|
return "vis_2_widgets_inventwo_";
|
|
524
539
|
}
|
|
525
540
|
getWidgetInfo() {
|
|
526
|
-
return
|
|
541
|
+
return F.getWidgetInfo();
|
|
527
542
|
}
|
|
528
543
|
renderWidgetBody($) {
|
|
529
544
|
super.renderWidgetBody($);
|
|
530
|
-
const
|
|
531
|
-
let
|
|
532
|
-
if (
|
|
545
|
+
const R = this.state.rxData.oid, b = this.getValue(R);
|
|
546
|
+
let r = null;
|
|
547
|
+
if (b == null || b === "") return l.jsx("div", {
|
|
533
548
|
children: "Keine Daten"
|
|
534
549
|
});
|
|
535
550
|
try {
|
|
536
|
-
|
|
551
|
+
r = JSON.parse(b);
|
|
537
552
|
} catch {
|
|
538
553
|
return l.jsx("div", {
|
|
539
554
|
children: "Invalides JSON"
|
|
540
555
|
});
|
|
541
556
|
}
|
|
542
|
-
const p = [],
|
|
557
|
+
const p = [], _ = [], s = this.getStyle("outerShadowStyleFromWidget", this.groupAttrs.attr_group_css_outer_shadow), n = this.getStyle("borderStyleFromWidget", this.groupAttrs.attr_group_css_border), C = g(i.TableRow)(() => ({
|
|
543
558
|
[`&.${D.root}`]: {
|
|
544
559
|
height: this.valWithUnit(this.state.rxData.headerHeight)
|
|
545
560
|
}
|
|
546
|
-
})), S = g(
|
|
547
|
-
[`&.${
|
|
561
|
+
})), S = g(i.TableCell)(() => ({
|
|
562
|
+
[`&.${y.head}`]: {
|
|
548
563
|
backgroundColor: this.state.rxData.backgroundHeader
|
|
549
564
|
},
|
|
550
|
-
[`&.${
|
|
565
|
+
[`&.${y.root}`]: {
|
|
551
566
|
paddingTop: 0,
|
|
552
567
|
paddingBottom: 0,
|
|
553
568
|
fontSize: this.state.rxStyle["font-size"],
|
|
@@ -563,8 +578,8 @@ let __tla = Promise.all([
|
|
|
563
578
|
borderBottomWidth: this.state.rxData.headerBorderWidth,
|
|
564
579
|
borderColor: this.state.rxData.headerBorderColor
|
|
565
580
|
}
|
|
566
|
-
})),
|
|
567
|
-
[`&.${
|
|
581
|
+
})), w = g(i.TableCell)(() => ({
|
|
582
|
+
[`&.${y.root}`]: {
|
|
568
583
|
paddingTop: 0,
|
|
569
584
|
paddingBottom: 0,
|
|
570
585
|
fontSize: this.state.rxStyle["font-size"],
|
|
@@ -580,7 +595,7 @@ let __tla = Promise.all([
|
|
|
580
595
|
borderBottomWidth: this.state.rxData.rowBorderWidth,
|
|
581
596
|
borderColor: this.state.rxData.rowBorderColor
|
|
582
597
|
}
|
|
583
|
-
})),
|
|
598
|
+
})), T = g(i.TableRow)(() => ({
|
|
584
599
|
"&:nth-of-type(odd)": {
|
|
585
600
|
backgroundColor: this.state.rxData.backgroundOddRow
|
|
586
601
|
},
|
|
@@ -591,100 +606,111 @@ let __tla = Promise.all([
|
|
|
591
606
|
height: this.valWithUnit(this.state.rxData.columnHeight)
|
|
592
607
|
}
|
|
593
608
|
}));
|
|
594
|
-
if (
|
|
609
|
+
if (r && r.length > 0) {
|
|
595
610
|
const f = this.state.rxData.countColumns;
|
|
596
|
-
if (f === 0) Object.keys(
|
|
611
|
+
if (f === 0) Object.keys(r[0]).forEach((a, d) => {
|
|
597
612
|
p.push(l.jsx(S, {
|
|
598
|
-
children:
|
|
599
|
-
},
|
|
613
|
+
children: a
|
|
614
|
+
}, d));
|
|
600
615
|
});
|
|
601
|
-
else for (let
|
|
602
|
-
let
|
|
603
|
-
|
|
604
|
-
const
|
|
605
|
-
textAlign: this.state.rxData[`columnTitleAlign${
|
|
616
|
+
else for (let a = 1; a <= this.state.rxData.countColumns; a++) {
|
|
617
|
+
let d = this.state.rxData[`columnTitle${a}`];
|
|
618
|
+
d === null && (d = Object.keys(r[0])[a - 1]);
|
|
619
|
+
const m = {
|
|
620
|
+
textAlign: this.state.rxData[`columnTitleAlign${a}`]
|
|
606
621
|
};
|
|
607
|
-
this.state.rxData[`columnWidth${
|
|
608
|
-
style:
|
|
609
|
-
children:
|
|
610
|
-
},
|
|
622
|
+
this.state.rxData[`columnWidth${a}`] && (m.width = this.valWithUnit(this.state.rxData[`columnWidth${a}`])), p.push(l.jsx(S, {
|
|
623
|
+
style: m,
|
|
624
|
+
children: d
|
|
625
|
+
}, a));
|
|
611
626
|
}
|
|
612
|
-
let
|
|
613
|
-
|
|
614
|
-
for (let
|
|
615
|
-
const
|
|
616
|
-
if (f === 0) Object.values(
|
|
617
|
-
typeof
|
|
618
|
-
children:
|
|
619
|
-
}, `${
|
|
627
|
+
let u = this.state.rxData.maxRows;
|
|
628
|
+
u <= 0 ? u = r.length : u = Math.min(u, r.length);
|
|
629
|
+
for (let a = 0; a < u; a++) {
|
|
630
|
+
const d = r[a], m = [];
|
|
631
|
+
if (f === 0) Object.values(d).forEach((t, h) => {
|
|
632
|
+
typeof t == "object" && t !== null && (t = JSON.stringify(t)), m.push(l.jsx(w, {
|
|
633
|
+
children: t
|
|
634
|
+
}, `${a}_${h}`));
|
|
620
635
|
});
|
|
621
|
-
else for (let
|
|
622
|
-
let
|
|
623
|
-
const B = this.state.rxData[`columnPrefix${
|
|
624
|
-
|
|
625
|
-
let
|
|
626
|
-
if ((
|
|
627
|
-
else if (
|
|
628
|
-
minimumFractionDigits: this.state.rxData[`columnNumberDecimals${
|
|
629
|
-
maximumFractionDigits: this.state.rxData[`columnNumberDecimals${
|
|
630
|
-
}).format(
|
|
631
|
-
else if (
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
+
else for (let t = 1; t <= this.state.rxData.countColumns; t++) {
|
|
637
|
+
let h = this.state.rxData[`columnKey${t}`];
|
|
638
|
+
const B = this.state.rxData[`columnPrefix${t}`], j = this.state.rxData[`columnSuffix${t}`], W = this.state.rxData[`columnPlaceholder${t}`], x = this.state.rxData[`columnValueFormat${t}`];
|
|
639
|
+
h || (h = Object.keys(r[0])[t - 1]);
|
|
640
|
+
let e = d[h];
|
|
641
|
+
if ((e === null || e === "") && W) e = W;
|
|
642
|
+
else if (x === "number") e = new Intl.NumberFormat(navigator.language, {
|
|
643
|
+
minimumFractionDigits: this.state.rxData[`columnNumberDecimals${t}`] ?? 0,
|
|
644
|
+
maximumFractionDigits: this.state.rxData[`columnNumberDecimals${t}`] ?? 0
|
|
645
|
+
}).format(e);
|
|
646
|
+
else if (x === "datetime") {
|
|
647
|
+
if (e) {
|
|
648
|
+
const o = this.state.rxData[`columnDatetimeFormat${t}`];
|
|
649
|
+
o === "datetime" ? e = new Date(e).toLocaleString() : o === "date" ? e = new Date(e).toLocaleDateString() : o === "time" ? e = new Date(e).toLocaleTimeString() : o === "custom" && (e = this.formatDate(e, this.state.rxData[`columnDatetimeFormatCustom${t}`] ?? ""));
|
|
650
|
+
}
|
|
651
|
+
} else if (x == "image") {
|
|
652
|
+
let o = this.state.rxData[`columnWidth${t}`];
|
|
653
|
+
!o || o === 0 ? o = "100%" : o = this.valWithUnit(o), e = l.jsx("img", {
|
|
654
|
+
src: e,
|
|
655
|
+
style: {
|
|
656
|
+
width: o
|
|
657
|
+
},
|
|
658
|
+
alt: e
|
|
659
|
+
});
|
|
660
|
+
} else typeof e == "object" && e !== null && (e = JSON.stringify(e));
|
|
661
|
+
m.push(l.jsxs(w, {
|
|
636
662
|
style: {
|
|
637
|
-
textAlign: this.state.rxData[`columnContentAlign${
|
|
663
|
+
textAlign: this.state.rxData[`columnContentAlign${t}`]
|
|
638
664
|
},
|
|
639
665
|
children: [
|
|
640
666
|
B,
|
|
641
|
-
|
|
667
|
+
e,
|
|
642
668
|
j
|
|
643
669
|
]
|
|
644
|
-
}, `${
|
|
670
|
+
}, `${a}_${t}`));
|
|
645
671
|
}
|
|
646
|
-
|
|
672
|
+
_.push(l.jsx(T, {
|
|
647
673
|
sx: {
|
|
648
674
|
"&:last-child td, &:last-child th": {
|
|
649
675
|
border: 0
|
|
650
676
|
}
|
|
651
677
|
},
|
|
652
|
-
children:
|
|
653
|
-
},
|
|
678
|
+
children: m
|
|
679
|
+
}, a));
|
|
654
680
|
}
|
|
655
681
|
}
|
|
656
|
-
let
|
|
657
|
-
|
|
658
|
-
const
|
|
682
|
+
let v = "";
|
|
683
|
+
s.outerShadowColor && (v += `${s.outerShadowX}px ${s.outerShadowY}px ${s.outerShadowBlur}px ${s.outerShadowSize}px ${s.outerShadowColor}`);
|
|
684
|
+
const c = this.getStyle("borderRadiusStyleFromWidget", this.groupAttrs.attr_group_css_border_radius);
|
|
659
685
|
return l.jsx("div", {
|
|
660
686
|
style: {
|
|
661
|
-
boxShadow: `${
|
|
687
|
+
boxShadow: `${v}`,
|
|
662
688
|
overflow: "hidden",
|
|
663
689
|
height: "100%",
|
|
664
|
-
borderColor:
|
|
665
|
-
borderTopWidth: `${
|
|
666
|
-
borderBottomWidth: `${
|
|
667
|
-
borderLeftWidth: `${
|
|
668
|
-
borderRightWidth: `${
|
|
669
|
-
borderStyle:
|
|
670
|
-
borderRadius: `${
|
|
690
|
+
borderColor: n.borderColor,
|
|
691
|
+
borderTopWidth: `${n.borderSizeTop}px`,
|
|
692
|
+
borderBottomWidth: `${n.borderSizeBottom}px`,
|
|
693
|
+
borderLeftWidth: `${n.borderSizeLeft}px`,
|
|
694
|
+
borderRightWidth: `${n.borderSizeRight}px`,
|
|
695
|
+
borderStyle: n.borderStyle,
|
|
696
|
+
borderRadius: `${c.borderRadiusTopLeft}px ${c.borderRadiusTopRight}px ${c.borderRadiusBottomRight}px ${c.borderRadiusBottomLeft}px`
|
|
671
697
|
},
|
|
672
|
-
children: l.jsx(
|
|
673
|
-
component:
|
|
698
|
+
children: l.jsx(i.TableContainer, {
|
|
699
|
+
component: i.Paper,
|
|
674
700
|
style: {
|
|
675
701
|
height: "100%",
|
|
676
702
|
background: "transparent",
|
|
677
703
|
borderRadius: 0
|
|
678
704
|
},
|
|
679
|
-
children: l.jsxs(
|
|
705
|
+
children: l.jsxs(i.Table, {
|
|
680
706
|
children: [
|
|
681
|
-
this.state.rxData.showHead && l.jsx(
|
|
682
|
-
children: l.jsx(
|
|
707
|
+
this.state.rxData.showHead && l.jsx(i.TableHead, {
|
|
708
|
+
children: l.jsx(C, {
|
|
683
709
|
children: p
|
|
684
710
|
})
|
|
685
711
|
}),
|
|
686
|
-
l.jsx(
|
|
687
|
-
children:
|
|
712
|
+
l.jsx(i.TableBody, {
|
|
713
|
+
children: _
|
|
688
714
|
})
|
|
689
715
|
]
|
|
690
716
|
})
|
|
@@ -695,5 +721,5 @@ let __tla = Promise.all([
|
|
|
695
721
|
});
|
|
696
722
|
export {
|
|
697
723
|
__tla,
|
|
698
|
-
|
|
724
|
+
F as default
|
|
699
725
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as x, __tla as __tla_0 } from "./jsx-runtime-
|
|
1
|
+
import { j as x, __tla as __tla_0 } from "./jsx-runtime-oJpyLRee.js";
|
|
2
2
|
import { R as je, __tla as __tla_1 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
|
|
3
3
|
import { v as R, __tla as __tla_2 } from "./vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-DJz8HY0m.js";
|
|
4
4
|
import { _ as Ve, v as ze, __tla as __tla_3 } from "./tslib.es6-B24-ng1V.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as f, __tla as __tla_0 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
|
|
2
|
-
import { j as u, __tla as __tla_1 } from "./jsx-runtime-
|
|
3
|
-
import { p as w, b as j, g as R, s as _, __tla as __tla_2 } from "./styled-
|
|
4
|
-
import { q as m, __tla as __tla_3 } from "./defaultTheme-
|
|
2
|
+
import { j as u, __tla as __tla_1 } from "./jsx-runtime-oJpyLRee.js";
|
|
3
|
+
import { p as w, b as j, g as R, s as _, __tla as __tla_2 } from "./styled-B6ANeESM.js";
|
|
4
|
+
import { q as m, __tla as __tla_3 } from "./defaultTheme-B3m4fB8l.js";
|
|
5
5
|
let K, S, N, T, G, U, $, v, L, D;
|
|
6
6
|
let __tla = Promise.all([
|
|
7
7
|
(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../customWidgets.js","./virtualExposes-
|
|
2
|
-
import { _ as i } from "./preload-helper-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../customWidgets.js","./virtualExposes-C3Y2fGO4.js","./preload-helper-PPVm8Dsz.js","./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as i } from "./preload-helper-PPVm8Dsz.js";
|
|
3
3
|
(async () => {
|
|
4
4
|
const r = i(() => import("../customWidgets.js").then(async (m) => {
|
|
5
5
|
await m.__tla;
|
|
@@ -12,15 +12,6 @@ function V(e, t) {
|
|
|
12
12
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
13
13
|
}
|
|
14
14
|
var g = { exports: {} }, r = {};
|
|
15
|
-
/**
|
|
16
|
-
* @license React
|
|
17
|
-
* react.production.min.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/
|
|
24
15
|
var y = Symbol.for("react.element"), F = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), M = Symbol.for("react.provider"), N = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), H = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), k = Symbol.iterator;
|
|
25
16
|
function G(e) {
|
|
26
17
|
return e === null || typeof e != "object" ? null : (e = k && e[k] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as dc, d as uc, e as fc, g as mc, l as gc, o as bc, p as vc, r as hc, s as Di, w as yc, T as Fi, u as ca, i as xc, h as Sc, E as Cc, f as wc, C as Rc, j as Pc, S as $c, k as kc, m as Ic, n as Wi, q as B, t as Is, v as Cr, x as Oo, y as Tc, z as Ir, A as Mc, B as pa, D as Lc, F as Ac, c as Ts, G as Wo, H as Hi, I as Je, J as Bc, K as Ec, L as Oc, a as $t, M as da, N as jo, O as Do, P as nn, Q as Nr, R as Mo, __tla as __tla_0 } from "./defaultTheme-
|
|
2
|
-
import { a2 as ZP, $ as QP, a0 as JP, X as t$, a1 as e$, Z as o$, _ as r$, U as n$, W as s$, a4 as a$, a5 as i$, Y as l$, V as c$, a3 as p$, __tla as __tla_1 } from "./defaultTheme-
|
|
3
|
-
import { i as Nc, a as zc, c as jc, g as G, C as Ui, _ as Dc, b as K, s as T, r as se, d as Tr, __tla as __tla_2 } from "./styled-
|
|
1
|
+
import { b as dc, d as uc, e as fc, g as mc, l as gc, o as bc, p as vc, r as hc, s as Di, w as yc, T as Fi, u as ca, i as xc, h as Sc, E as Cc, f as wc, C as Rc, j as Pc, S as $c, k as kc, m as Ic, n as Wi, q as B, t as Is, v as Cr, x as Oo, y as Tc, z as Ir, A as Mc, B as pa, D as Lc, F as Ac, c as Ts, G as Wo, H as Hi, I as Je, J as Bc, K as Ec, L as Oc, a as $t, M as da, N as jo, O as Do, P as nn, Q as Nr, R as Mo, __tla as __tla_0 } from "./defaultTheme-B3m4fB8l.js";
|
|
2
|
+
import { a2 as ZP, $ as QP, a0 as JP, X as t$, a1 as e$, Z as o$, _ as r$, U as n$, W as s$, a4 as a$, a5 as i$, Y as l$, V as c$, a3 as p$, __tla as __tla_1 } from "./defaultTheme-B3m4fB8l.js";
|
|
3
|
+
import { i as Nc, a as zc, c as jc, g as G, C as Ui, _ as Dc, b as K, s as T, r as se, d as Tr, __tla as __tla_2 } from "./styled-B6ANeESM.js";
|
|
4
4
|
import { v as c, a as Vi, R as io, __tla as __tla_3 } from "./vis2Inventwo__loadShare__react__loadShare__-Bg9SqOOr.js";
|
|
5
|
-
import { a as gn, b as Ms, u as le, P as ve, __tla as __tla_4 } from "./useTheme-
|
|
6
|
-
import { a as j, r as Ls, D as Fc, b as V, u as q, m as W, c as Zt, S as Wc, __tla as __tla_5 } from "./createSvgIcon-
|
|
7
|
-
import { g as u$, s as f$, __tla as __tla_6 } from "./createSvgIcon-
|
|
8
|
-
import { j as f, __tla as __tla_7 } from "./jsx-runtime-
|
|
5
|
+
import { a as gn, b as Ms, u as le, P as ve, __tla as __tla_4 } from "./useTheme-DNnccp_1.js";
|
|
6
|
+
import { a as j, r as Ls, D as Fc, b as V, u as q, m as W, c as Zt, S as Wc, __tla as __tla_5 } from "./createSvgIcon-BO5nOmWA.js";
|
|
7
|
+
import { g as u$, s as f$, __tla as __tla_6 } from "./createSvgIcon-BO5nOmWA.js";
|
|
8
|
+
import { j as f, __tla as __tla_7 } from "./jsx-runtime-oJpyLRee.js";
|
|
9
9
|
import { g as Hc } from "./_commonjsHelpers-Cpj98o6Y.js";
|
|
10
10
|
import { v as Uc } from "./vis2Inventwo__mf_v__runtimeInit__mf_v__-CSj4pa4_.js";
|
|
11
|
-
import { g as Vc, a as Gc, b as _c, t as ua, __tla as __tla_8 } from "./tableRowClasses-
|
|
11
|
+
import { g as Vc, a as Gc, b as _c, t as ua, __tla as __tla_8 } from "./tableRowClasses-CsDLHA-3.js";
|
|
12
12
|
let y1, S1, w1, P1, k1, T1, L1, B1, rg, E1, kl, N1, j1, D1, F1, W1, H1, me, U1, Ml, Tl, G1, _1, q1, Y1, Z1, J1, tR, $m, gl, Lb, wr, eR, nR, Sd, iR, cR, dR, fR, mR, ni, Lv, l1, jl, hs, ta, Wv, vR, Xv, Jv, nh, oh, Cd, yR, xR, kr, wR, Bh, Bo, $R, kR, TR, jn, MR, zn, ry, fy, BR, Cy, jR, FR, NR, WR, Hl, HR, vs, ox, ix, Vy, _R, Js, Db, yx, xx, ra, qR, zx, Ge, qy, Vl, Ky, Ln, $l, XR, ZR, QR, tP, sa, oP, Pv, rP, X0, Y0, G0, V0, K0, _0, q0, aP, sS, iP, lP, AS, cP, mP, gP, eC, hP, or, WS, rc, xP, Ho, Qw, SP, CP, wP, Sw, PP, kP, ks, TP, LP, BP, OP, NP, zP, jP, FP, Tm, p1, WP, HP, KC, CS, he, _b, pS, x1, Dr, C1, Ko, o1, ka, I1, M1, zt, Zm, sg, O1, vo, Il, z1, Rg, Lg, cu, ko, Nt, _n, K1, V1, X1, fn, Q1, Kn, Wt, $1, v1, Zw, rR, is, Zu, n1, Po, sR, Lr, Jw, lR, Xn, pR, uR, dv, ri, gR, m1, g1, si, Me, bR, br, hR, ai, xr, _d, Xd, uu, Hd, Gu, yu, qu, Nm, ng, Ym, cg, fg, xg, vg, Mg, lu, Ug, zg, Yg, tb, rb, ab, ub, Kg, Rb, Cm, xu, Ed, oR, av, mv, cv, pv, tv, yv, $v, Av, Om, Hv, jv, _v, Yv, th, SR, ku, Mh, Fh, zh, Eh, c1, Yh, Lm, ty, Bm, ny, my, Oy, Ry, jy, Iy, Wy, wy, hm, yy, rx, Xy, lx, Yb, Gl, gi, mi, Em, Mx, Ix, Dd, Gy, pm, t0, qx, n0, m0, ec, k0, W0, tS, aS, wS, TS, dS, qS, ZS, oC, jS, HS, BS, aC, gC, vw, SC, kC, BC, NC, FC, XC, cw, RC, Cw, Tw, zw, Bw, VC, bS, R1, Fu, CR, Ia, RR, PR, IR, Zn, ci, Te, So, LR, Ro, ro, AR, gy, ER, DR, _o, OR, ui, zR, qo, A1, GP, d1, VR, lr, Yo, _P, GR, aR, oa, je, Jt, be, KR, ye, h1, KP, UR, qP, hi, YR, cr, t1, s1, JR, pr, ls, eP, Fe, sP, nP, Jr, Xr, Qe, pP, Ii, fP, bP, vP, ts, wo, yP, xe, ze, hw, $P, RP, IP, MP, AP, Sr, ss, as, DP, Eo, Qt, EP, oe, De, pn, b1, r1, pl, yo, ie, Ae, e1, ef, i1, Le, te, Kt, _e, Sh, Tx, Kx, UP, uP, dP, a1, VP, u1, f1;
|
|
13
13
|
let __tla = Promise.all([
|
|
14
14
|
(() => {
|