@hortiview/shared-components 0.0.11114 → 0.0.11146
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/dist/BigLoadingSpinner-C3wTbTD0.js +17 -0
- package/dist/GenericCard-B8x1DMa8.js +81 -0
- package/dist/ListAreaService-CRX4eEUJ.js +108 -0
- package/dist/_Map-Dtlps7IZ.js +113 -0
- package/dist/{_commonjsHelpers-CT_km90n.js → _commonjsHelpers-BkfeUUK-.js} +2 -4
- package/dist/_overArg-_0pUmCsX.js +14 -0
- package/dist/assets/Filter.css +1 -0
- package/dist/assets/GenericTable.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/components/AlertBanner/AlertBanner.js +22 -16
- package/dist/components/AlertBanner/AlertBanner.test.js +2 -2
- package/dist/components/BaseView/BaseView.js +33 -26
- package/dist/components/BaseView/BaseView.test.js +25 -25
- package/dist/components/BasicHeading/BasicHeading.js +50 -41
- package/dist/components/BasicHeading/BasicHeading.test.js +2 -2
- package/dist/components/BlockView/BlockView.js +51 -42
- package/dist/components/BlockView/BlockView.test.js +2 -2
- package/dist/components/ChipCard/ChipCard.js +12 -10
- package/dist/components/ChipCard/ChipCard.test.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.js +29 -25
- package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
- package/dist/components/DeleteModal/DeleteModal.js +58 -53
- package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
- package/dist/components/Disclaimer/Disclaimer.js +11 -8
- package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
- package/dist/components/EmptyView/EmptyView.test.js +2 -2
- package/dist/components/Filter/Filter.js +107 -125
- package/dist/components/Filter/Filter.test.js +2 -2
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +19 -19
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -0
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +6081 -7102
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +16 -14
- package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
- package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
- package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +109 -102
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.js +95 -96
- package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
- package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +31 -0
- package/dist/components/FormComponents/FormToggle/FormToggle.js +43 -0
- package/dist/components/FormComponents/FormToggle/FormToggle.test.d.ts +1 -0
- package/dist/components/FormComponents/FormToggle/FormToggle.test.js +50 -0
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
- package/dist/components/GenericTable/GenericTable.js +64 -81
- package/dist/components/GenericTable/GenericTable.test.js +2 -2
- package/dist/components/GenericTable/GenericTableService.js +41 -43
- package/dist/components/GenericTable/Mobile/GenericCard.js +6 -68
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
- package/dist/components/GenericTable/Mobile/GenericCardList.js +8 -9
- package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
- package/dist/components/HashTabView/HashTabView.js +62 -52
- package/dist/components/HashTabView/HashTabView.test.js +2 -2
- package/dist/components/HeaderFilter/HeaderFilter.js +16 -14
- package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
- package/dist/components/HealthCheckFailed/HealthCheckFailed.js +27 -20
- package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
- package/dist/components/Iconify/Iconify.js +56 -6
- package/dist/components/Iconify/Iconify.test.js +3 -3
- package/dist/components/InfoGroup/InfoGroup.js +36 -30
- package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
- package/dist/components/ListArea/ListArea.js +45 -357
- package/dist/components/ListArea/ListArea.test.js +4 -4
- package/dist/components/ListArea/ListAreaService.js +8 -92
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +5 -9
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -4
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +28 -26
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
- package/dist/components/Modal/Modal.js +6 -4
- package/dist/components/OverflowTooltip/OverflowTooltip.js +21 -19
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +3 -3
- package/dist/components/OverflowTooltip/OverflowTooltipService.js +1 -2
- package/dist/components/Scrollbar/scrollbar.test.js +2 -2
- package/dist/components/SearchBar/SearchBar.js +22 -20
- package/dist/components/SearchBar/SearchBar.test.js +2 -2
- package/dist/components/VerticalDivider/VerticalDivider.js +6 -4
- package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
- package/dist/get-BiqanC9_.js +7 -0
- package/dist/get-P-5PYZOE.js +426 -0
- package/dist/hooks/useBreakpoints.test.js +2 -2
- package/dist/hooks/useHelperText.d.ts +13 -0
- package/dist/hooks/useHelperText.js +25 -0
- package/dist/index-DzM8o582.js +10881 -0
- package/dist/isArray-2zMxXFEr.js +83 -0
- package/dist/isArray-C_5XvIlE.js +7 -0
- package/dist/isEmpty-BimaZd5G.js +225 -0
- package/dist/isString-BOHPtrlm.js +44 -0
- package/dist/magic-string.es-D4UQQyt0.js +859 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +33 -31
- package/dist/orderBy-BVQIswlJ.js +765 -0
- package/dist/{react-number-format.es-BeIT_PM7.js → react-number-format.es-BD3_OvMU.js} +156 -159
- package/dist/react-tooltip.min-c2wVkjF2.js +1354 -0
- package/dist/react.esm-FR1-H8iU.js +13471 -0
- package/dist/services/UtilService.js +12 -19
- package/dist/services/services.test.js +1 -1
- package/dist/vi.CjhMlMwf-DWv7vrn7.js +12192 -0
- package/package.json +8 -6
- package/dist/BlockView.module-BPlNT5uh.js +0 -15
- package/dist/HashTabView.module-ZhwSfDeQ.js +0 -16
- package/dist/HeaderFilter.module-DiBmulr5.js +0 -7
- package/dist/Iconify-DoU6pP1o.js +0 -97
- package/dist/_Map-DKsHX-kc.js +0 -59
- package/dist/_baseToString-dkhmFwqS.js +0 -198
- package/dist/_equalByTag-BZEJl6ST.js +0 -158
- package/dist/_overArg-BC4qXKbU.js +0 -9
- package/dist/alertBanner.module-BPiKN0gh.js +0 -11
- package/dist/assets/genericTable.css +0 -1
- package/dist/baseView.module-uWbm_a5f.js +0 -12
- package/dist/basicHeading.module-BYb8xvuk.js +0 -16
- package/dist/bigLoadingSpinner.module-GgbFol8k.js +0 -11
- package/dist/chipCard.module-BjpKuf1b.js +0 -7
- package/dist/contextMenu.module-vNQHb48g.js +0 -9
- package/dist/deleteModal.module-Ds3MDzdl.js +0 -10
- package/dist/disclaimer.module-BZydt-Q_.js +0 -8
- package/dist/formDatePicker.module-BV3ma_7y.js +0 -11
- package/dist/formNumber.module-BA05Gi6_.js +0 -7
- package/dist/formSelect.module-PUiLDSD4.js +0 -15
- package/dist/formText.module-C0by6_DK.js +0 -12
- package/dist/genericCard.module-DrQu86jX.js +0 -15
- package/dist/genericTable.module-Dk3yy2S3.js +0 -17
- package/dist/get-BJn2Enx7.js +0 -47
- package/dist/healthCheckFailed.module-B5P1ogjs.js +0 -12
- package/dist/iconify.module-Cru5NS2X.js +0 -80
- package/dist/index-IMXII42b.js +0 -11708
- package/dist/infoGroup.module-Cxw88dfC.js +0 -12
- package/dist/isArray-thIeLpc5.js +0 -35
- package/dist/isPlainObject-BlCDf1Kc.js +0 -18
- package/dist/listArea.module-BhO_OJ1S.js +0 -20
- package/dist/loadingSpinner.module-CLtqSMWA.js +0 -7
- package/dist/magic-string.es-irX7syie.js +0 -732
- package/dist/modal.module-BlDp1Wiq.js +0 -7
- package/dist/overflowTooltip.module-YyRN2MGc.js +0 -7
- package/dist/react-tooltip.min-BzHiZW8k.js +0 -1380
- package/dist/react.esm-CHvVvf3L.js +0 -12786
- package/dist/searchBar.module-9gKyrZRT.js +0 -7
- package/dist/verticalDivider.module-C3_GL-fH.js +0 -7
- package/dist/vi.JYQecGiw-BpOAB4v6.js +0 -9796
- /package/dist/assets/{alertBanner.css → AlertBanner.css} +0 -0
- /package/dist/assets/{baseView.css → BaseView.css} +0 -0
- /package/dist/assets/{basicHeading.css → BasicHeading.css} +0 -0
- /package/dist/assets/{bigLoadingSpinner.css → BigLoadingSpinner.css} +0 -0
- /package/dist/assets/{chipCard.css → ChipCard.css} +0 -0
- /package/dist/assets/{contextMenu.css → ContextMenu.css} +0 -0
- /package/dist/assets/{formNumber.css → CustomTextField.css} +0 -0
- /package/dist/assets/{deleteModal.css → DeleteModal.css} +0 -0
- /package/dist/assets/{disclaimer.css → Disclaimer.css} +0 -0
- /package/dist/assets/{formDatePicker.css → FormDatePicker.css} +0 -0
- /package/dist/assets/{formSelect.css → FormSelect.css} +0 -0
- /package/dist/assets/{formText.css → FormText.css} +0 -0
- /package/dist/assets/{genericCard.css → GenericCard.css} +0 -0
- /package/dist/assets/{healthCheckFailed.css → HealthCheckFailed.css} +0 -0
- /package/dist/assets/{iconify.css → Iconify.css} +0 -0
- /package/dist/assets/{infoGroup.css → InfoGroup.css} +0 -0
- /package/dist/assets/{listArea.css → ListAreaService.css} +0 -0
- /package/dist/assets/{loadingSpinner.css → LoadingSpinner.css} +0 -0
- /package/dist/assets/{modal.css → Modal.css} +0 -0
- /package/dist/assets/{overflowTooltip.css → OverflowTooltip.css} +0 -0
- /package/dist/assets/{searchBar.css → SearchBar.css} +0 -0
- /package/dist/assets/{verticalDivider.css → VerticalDivider.css} +0 -0
|
@@ -1,59 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as p } from "react";
|
|
3
3
|
import { ContextMenu as x } from "../ContextMenu/ContextMenu.js";
|
|
4
|
-
const
|
|
5
|
-
data:
|
|
6
|
-
order:
|
|
7
|
-
cellTemplates:
|
|
8
|
-
headerTranslation: t = (
|
|
9
|
-
getRowActions:
|
|
10
|
-
customColumnWidth:
|
|
11
|
-
cardTitleColumn:
|
|
12
|
-
cardSubTitleColumn:
|
|
13
|
-
}) =>
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const p = o ? o[i] : void 0;
|
|
4
|
+
const l = ({
|
|
5
|
+
data: n = [],
|
|
6
|
+
order: e = [],
|
|
7
|
+
cellTemplates: r = void 0,
|
|
8
|
+
headerTranslation: t = (d) => d,
|
|
9
|
+
getRowActions: o = void 0,
|
|
10
|
+
customColumnWidth: s,
|
|
11
|
+
cardTitleColumn: f,
|
|
12
|
+
cardSubTitleColumn: u
|
|
13
|
+
}) => p(() => {
|
|
14
|
+
if (n?.length === 0) return [];
|
|
15
|
+
const d = m(n[0], e).map((i) => {
|
|
16
|
+
const c = s ? s[i] : void 0;
|
|
18
17
|
return {
|
|
19
18
|
id: i,
|
|
20
19
|
header: t(i),
|
|
21
20
|
accessor: i,
|
|
22
|
-
cellTemplate:
|
|
23
|
-
cellProps:
|
|
24
|
-
asCardTitle: i ===
|
|
25
|
-
asCardSubtitle: i ===
|
|
21
|
+
cellTemplate: r ? r[i] : void 0,
|
|
22
|
+
cellProps: c ? { width: c } : void 0,
|
|
23
|
+
asCardTitle: i === f,
|
|
24
|
+
asCardSubtitle: i === u
|
|
26
25
|
};
|
|
27
26
|
});
|
|
28
|
-
return
|
|
29
|
-
...
|
|
27
|
+
return o ? [
|
|
28
|
+
...d,
|
|
30
29
|
{ id: "actions", header: "", accessor: "actions" }
|
|
31
|
-
] :
|
|
30
|
+
] : d;
|
|
32
31
|
}, [
|
|
32
|
+
n,
|
|
33
33
|
r,
|
|
34
34
|
e,
|
|
35
|
-
n,
|
|
36
35
|
t,
|
|
37
|
-
f,
|
|
38
36
|
o,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
let
|
|
51
|
-
return
|
|
52
|
-
const
|
|
53
|
-
return
|
|
54
|
-
})),
|
|
37
|
+
s,
|
|
38
|
+
f,
|
|
39
|
+
u
|
|
40
|
+
]), G = ({
|
|
41
|
+
data: n = [],
|
|
42
|
+
getRowActions: e = void 0
|
|
43
|
+
}) => p(() => e ? n.map((r) => {
|
|
44
|
+
const t = /* @__PURE__ */ a(x, { actions: e(r), iconOrientation: "horizontal" });
|
|
45
|
+
return { ...r, actions: t };
|
|
46
|
+
}) : n, [n, e]), m = (n, e) => {
|
|
47
|
+
if (!n) return [];
|
|
48
|
+
let r = Object.keys(n).map((t) => t);
|
|
49
|
+
return e?.length > 0 && (r = r.sort((t, o) => {
|
|
50
|
+
const s = e.findIndex((u) => u === t), f = e.findIndex((u) => u === o);
|
|
51
|
+
return s === -1 ? 1 : f === -1 ? -1 : s - f;
|
|
52
|
+
})), r;
|
|
55
53
|
};
|
|
56
54
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
l as useGenerateColumns,
|
|
56
|
+
G as useGenerateTableData
|
|
59
57
|
};
|
|
@@ -1,70 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
const h = {
|
|
7
|
-
desktopCol: 6,
|
|
8
|
-
phoneCol: 2,
|
|
9
|
-
tabletCol: 4,
|
|
10
|
-
verticalAlign: "bottom"
|
|
11
|
-
}, A = ({ item: t, columns: r, hiddenColumns: d }) => {
|
|
12
|
-
const s = r.find((a) => a.asCardTitle), p = r.find((a) => a.asCardSubtitle), C = $(
|
|
13
|
-
() => r.filter(
|
|
14
|
-
(a) => !a.asCardTitle && !a.asCardSubtitle && a.id !== "actions"
|
|
15
|
-
),
|
|
16
|
-
[r]
|
|
17
|
-
);
|
|
18
|
-
return /* @__PURE__ */ e(T, { variant: "raised", "data-testid": `card${s ? "-" + t[s.accessor] : ""}`, children: /* @__PURE__ */ l(v, { className: i.cardContent, "data-testid": "card-content", children: [
|
|
19
|
-
/* @__PURE__ */ e(k, { item: t, titleColumn: s, subTitleColumn: p }),
|
|
20
|
-
/* @__PURE__ */ e(y, { className: i.cardBody, "data-testid": "card-body", children: /* @__PURE__ */ e(x, { fullHeight: !0, fullWidth: !0, variant: "none", children: C.map((a) => d?.includes(a.id) ? null : /* @__PURE__ */ l(b, { className: i.row, "data-testid": "row", children: [
|
|
21
|
-
/* @__PURE__ */ e(n, { horizontalAlign: "right", ...h, children: /* @__PURE__ */ l(
|
|
22
|
-
f,
|
|
23
|
-
{
|
|
24
|
-
level: 2,
|
|
25
|
-
themeColor: "text-secondary-on-background",
|
|
26
|
-
className: `${i.font} ${i.fontHeader}`,
|
|
27
|
-
tag: "div",
|
|
28
|
-
children: [
|
|
29
|
-
a.header,
|
|
30
|
-
":"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
) }),
|
|
34
|
-
/* @__PURE__ */ e(n, { horizontalAlign: "left", ...h, children: /* @__PURE__ */ e(o, { column: a, item: t }) })
|
|
35
|
-
] }, a.id)) }) })
|
|
36
|
-
] }) });
|
|
37
|
-
}, k = ({ item: t, titleColumn: r, subTitleColumn: d }) => {
|
|
38
|
-
const s = t.actions;
|
|
39
|
-
return !r && !d && !s ? null : /* @__PURE__ */ l(g, { children: [
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
u,
|
|
42
|
-
{
|
|
43
|
-
"data-testid": "card-title",
|
|
44
|
-
className: i.cardTitle,
|
|
45
|
-
primaryText: r !== void 0 && /* @__PURE__ */ e(o, { column: r, item: t, isTitle: !0 }),
|
|
46
|
-
secondaryText: d !== void 0 && /* @__PURE__ */ e(o, { column: d, item: t, isTitle: !0 }),
|
|
47
|
-
trailingBlock: s,
|
|
48
|
-
trailingBlockType: "title-actions"
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ e(N, {})
|
|
52
|
-
] });
|
|
53
|
-
}, o = ({ item: t, column: r, isTitle: d = !1 }) => r.cellTemplate ? r.cellTemplate({ row: { original: t } }) : d ? /* @__PURE__ */ e(
|
|
54
|
-
c,
|
|
55
|
-
{
|
|
56
|
-
id: `tip_${r.id}_${t[r.accessor]}`,
|
|
57
|
-
text: t[r.accessor],
|
|
58
|
-
children: /* @__PURE__ */ e("span", { className: i.title, children: t[r.accessor] })
|
|
59
|
-
}
|
|
60
|
-
) : /* @__PURE__ */ e(
|
|
61
|
-
c,
|
|
62
|
-
{
|
|
63
|
-
id: `tip_${r.id}_${t[r.accessor]}`,
|
|
64
|
-
text: t[r.accessor],
|
|
65
|
-
children: /* @__PURE__ */ e(f, { level: 2, themeColor: "text-primary-on-background", className: i.font, children: t[r.accessor] })
|
|
66
|
-
}
|
|
67
|
-
);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@element/react-components";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../OverflowTooltip/OverflowTooltip.js";
|
|
5
|
+
import { G as e } from "../../../GenericCard-B8x1DMa8.js";
|
|
68
6
|
export {
|
|
69
|
-
|
|
7
|
+
e as GenericCard
|
|
70
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as c, s as o } from "../../../react.esm-
|
|
3
|
-
import {
|
|
4
|
-
import { d as m, t as s, g as e } from "../../../vi.
|
|
2
|
+
import { a as c, s as o } from "../../../react.esm-FR1-H8iU.js";
|
|
3
|
+
import { G as i } from "../../../GenericCard-B8x1DMa8.js";
|
|
4
|
+
import { d as m, t as s, g as e } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
|
|
5
5
|
m("GenericCard", () => {
|
|
6
6
|
const d = {
|
|
7
7
|
id: 1,
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Padding as c, TypoCaption as
|
|
3
|
-
import {
|
|
4
|
-
import { s as t } from "../../../genericCard.module-DrQu86jX.js";
|
|
2
|
+
import { Padding as c, TypoCaption as s, Group as o } from "@element/react-components";
|
|
3
|
+
import { s as t, G as m } from "../../../GenericCard-B8x1DMa8.js";
|
|
5
4
|
const u = ({
|
|
6
5
|
columns: n,
|
|
7
6
|
data: e,
|
|
8
|
-
hiddenColumns:
|
|
9
|
-
noContentText:
|
|
10
|
-
}) => e?.length === 0 ? /* @__PURE__ */ r("div", { className: t.emptyContainer, children: /* @__PURE__ */ r(c, { variant: "standard", style: { textAlign: "center" }, className: t.empty, children: /* @__PURE__ */ r(
|
|
7
|
+
hiddenColumns: a = [],
|
|
8
|
+
noContentText: d
|
|
9
|
+
}) => e?.length === 0 ? /* @__PURE__ */ r("div", { className: t.emptyContainer, children: /* @__PURE__ */ r(c, { variant: "standard", style: { textAlign: "center" }, className: t.empty, children: /* @__PURE__ */ r(s, { children: d }) }) }) : (
|
|
11
10
|
// needs the div to surround the Group by an element with display: block to avoid visual errors
|
|
12
|
-
/* @__PURE__ */ r("div", { style: { width: "100%" }, children: /* @__PURE__ */ r(
|
|
11
|
+
/* @__PURE__ */ r("div", { style: { width: "100%" }, children: /* @__PURE__ */ r(o, { fullWidth: !0, direction: "vertical", primaryAlign: "center", secondaryAlign: "center", children: e?.map((i, l) => /* @__PURE__ */ r(
|
|
13
12
|
m,
|
|
14
13
|
{
|
|
15
14
|
item: i,
|
|
16
15
|
columns: n,
|
|
17
|
-
hiddenColumns:
|
|
16
|
+
hiddenColumns: a
|
|
18
17
|
},
|
|
19
|
-
i.id ??
|
|
18
|
+
i.id ?? l
|
|
20
19
|
)) }) })
|
|
21
20
|
);
|
|
22
21
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as r, s as n, w as l } from "../../../react.esm-
|
|
2
|
+
import { a as r, s as n, w as l } from "../../../react.esm-FR1-H8iU.js";
|
|
3
3
|
import { GenericCardList as s } from "./GenericCardList.js";
|
|
4
|
-
import { d as g, t as i, g as e } from "../../../vi.
|
|
4
|
+
import { d as g, t as i, g as e } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
|
|
5
5
|
g("GenericCardList", () => {
|
|
6
6
|
const d = [
|
|
7
7
|
{ id: "name", header: "Name", accessor: "name", asCardTitle: !0 },
|
|
@@ -1,89 +1,99 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import "../../assets/HashTabView.css";
|
|
2
|
+
import { jsx as r, jsxs as _, Fragment as C } from "react/jsx-runtime";
|
|
3
|
+
import { Elevation as k, Group as c, TabBar as $, Tab as P, Padding as T } from "@element/react-components";
|
|
4
|
+
import { useState as A, useEffect as I } from "react";
|
|
5
|
+
import { u as N } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
6
|
+
const R = "_elevation_4lrry_1", W = "_themeBackground_4lrry_6", w = "_tabBar_4lrry_10", x = "_tabWrapper_4lrry_20", H = "_stickyHeader_4lrry_24", j = "_tabButton_4lrry_31", E = "_childContainer_4lrry_35", z = "_childContainerPhone_4lrry_39", D = "_iconColorRed_4lrry_43", F = "_miniPadding_4lrry_48", t = {
|
|
7
|
+
elevation: R,
|
|
8
|
+
themeBackground: W,
|
|
9
|
+
tabBar: w,
|
|
10
|
+
tabWrapper: x,
|
|
11
|
+
stickyHeader: H,
|
|
12
|
+
tabButton: j,
|
|
13
|
+
childContainer: E,
|
|
14
|
+
childContainerPhone: z,
|
|
15
|
+
iconColorRed: D,
|
|
16
|
+
miniPadding: F
|
|
17
|
+
}, h = (n, a) => !a || !n ? 0 : n.findIndex((i) => i.hash === a.replace("#", "")) ?? 0, K = ({
|
|
18
|
+
tabs: n,
|
|
19
|
+
hasHash: a = !0,
|
|
9
20
|
hash: i = "",
|
|
10
|
-
clusterAlign:
|
|
21
|
+
clusterAlign: u = "start",
|
|
11
22
|
hasClusteredTabs: g,
|
|
12
23
|
children: d,
|
|
13
|
-
verticalGap:
|
|
14
|
-
elevation:
|
|
15
|
-
backgroundColor:
|
|
16
|
-
onChange:
|
|
17
|
-
hasStickyTabs:
|
|
24
|
+
verticalGap: y = "none",
|
|
25
|
+
elevation: v = 0,
|
|
26
|
+
backgroundColor: f = "themeBackground",
|
|
27
|
+
onChange: B,
|
|
28
|
+
hasStickyTabs: m = !1
|
|
18
29
|
}) => {
|
|
19
|
-
const [l,
|
|
20
|
-
|
|
21
|
-
if (!
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
c != null && r && window.history.replaceState(null, "", `#${c}`), u(e), A?.(e);
|
|
30
|
+
const [l, p] = A(h(n, i)), { isDesktop: s } = N();
|
|
31
|
+
I(() => {
|
|
32
|
+
if (!a || !i) return;
|
|
33
|
+
const e = h(n, i);
|
|
34
|
+
p(e);
|
|
35
|
+
}, [n, i, a]);
|
|
36
|
+
const b = (e) => {
|
|
37
|
+
const o = n[e].hash;
|
|
38
|
+
o != null && a && window.history.replaceState(null, "", `#${o}`), p(e), B?.(e);
|
|
29
39
|
};
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
40
|
+
return /* @__PURE__ */ r(
|
|
41
|
+
k,
|
|
32
42
|
{
|
|
33
|
-
elevation:
|
|
34
|
-
className: `${
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
|
|
43
|
+
elevation: v,
|
|
44
|
+
className: `${t.elevation} ${f === "none" ? "" : t.themeBackground}`,
|
|
45
|
+
children: /* @__PURE__ */ _(
|
|
46
|
+
c,
|
|
37
47
|
{
|
|
38
48
|
"data-testid": "hash-tab-container",
|
|
39
49
|
direction: "vertical",
|
|
40
|
-
gap:
|
|
50
|
+
gap: y,
|
|
41
51
|
secondaryAlign: "stretch",
|
|
42
52
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
53
|
+
/* @__PURE__ */ _(
|
|
54
|
+
c,
|
|
45
55
|
{
|
|
46
56
|
direction: s ? "horizontal" : "vertical",
|
|
47
|
-
className: `${
|
|
57
|
+
className: `${t.tabWrapper} ${m ? t.stickyHeader : ""}`,
|
|
48
58
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
|
+
$,
|
|
51
61
|
{
|
|
52
62
|
"data-testid": "tab-bar",
|
|
53
|
-
className:
|
|
63
|
+
className: t.tabBar,
|
|
54
64
|
clustered: s ? g : !1,
|
|
55
|
-
clusterAlign:
|
|
65
|
+
clusterAlign: u,
|
|
56
66
|
variant: "surface",
|
|
57
67
|
activeTabIndex: l,
|
|
58
|
-
onTabActivated:
|
|
59
|
-
children:
|
|
60
|
-
|
|
68
|
+
onTabActivated: b,
|
|
69
|
+
children: n.map((e, o) => /* @__PURE__ */ r(
|
|
70
|
+
P,
|
|
61
71
|
{
|
|
62
72
|
"data-testid": `tab-${e.title}`,
|
|
63
73
|
icon: e.leadingIcon,
|
|
64
|
-
className: `${d ?
|
|
65
|
-
active: l ===
|
|
66
|
-
children: /* @__PURE__ */
|
|
74
|
+
className: `${d ? t.tabButton : ""} ${e.isIconRed ? t.iconColorRed : ""}`,
|
|
75
|
+
active: l === o,
|
|
76
|
+
children: /* @__PURE__ */ _(c, { gap: "dense", children: [
|
|
67
77
|
e.title,
|
|
68
78
|
e.trailingIcon
|
|
69
79
|
] })
|
|
70
80
|
},
|
|
71
|
-
`${
|
|
81
|
+
`${o}_${e.hash}`
|
|
72
82
|
))
|
|
73
83
|
}
|
|
74
84
|
),
|
|
75
|
-
d ? /* @__PURE__ */
|
|
76
|
-
|
|
85
|
+
d ? /* @__PURE__ */ r(
|
|
86
|
+
T,
|
|
77
87
|
{
|
|
78
88
|
variant: "dense",
|
|
79
|
-
className: s ?
|
|
80
|
-
children: /* @__PURE__ */
|
|
89
|
+
className: s ? t.childContainer : t.childContainerPhone,
|
|
90
|
+
children: /* @__PURE__ */ r(c, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: d })
|
|
81
91
|
}
|
|
82
|
-
) : /* @__PURE__ */
|
|
92
|
+
) : /* @__PURE__ */ r(C, {})
|
|
83
93
|
]
|
|
84
94
|
}
|
|
85
95
|
),
|
|
86
|
-
|
|
96
|
+
m ? /* @__PURE__ */ r(c, { fullWidth: !0, direction: "vertical", className: t.miniPadding, children: n[l]?.component }) : n[l]?.component
|
|
87
97
|
]
|
|
88
98
|
}
|
|
89
99
|
)
|
|
@@ -91,5 +101,5 @@ const f = (t, r) => !r || !t ? 0 : t.findIndex((i) => i.hash === r.replace("#",
|
|
|
91
101
|
);
|
|
92
102
|
};
|
|
93
103
|
export {
|
|
94
|
-
|
|
104
|
+
K as HashTabView
|
|
95
105
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, Fragment as o } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as e, f as r } from "../../react.esm-
|
|
2
|
+
import { a, s as e, f as r } from "../../react.esm-FR1-H8iU.js";
|
|
3
3
|
import { HashTabView as c } from "./HashTabView.js";
|
|
4
|
-
import { d as h, t as l, g as t } from "../../vi.
|
|
4
|
+
import { d as h, t as l, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
|
|
5
5
|
const m = [
|
|
6
6
|
{
|
|
7
7
|
title: "Map",
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import "../../assets/HeaderFilter.css";
|
|
2
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { TypoBody as a, Select as s } from "@element/react-components";
|
|
4
|
+
import { BasicHeading as c } from "../BasicHeading/BasicHeading.js";
|
|
5
|
+
const d = "_filterSelect_923nc_1", m = {
|
|
6
|
+
filterSelect: d
|
|
7
|
+
}, h = ({
|
|
6
8
|
heading: r,
|
|
7
9
|
filterByText: e,
|
|
8
|
-
setFilter:
|
|
9
|
-
filterValue:
|
|
10
|
-
filterOptions:
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
e && /* @__PURE__ */ t(
|
|
10
|
+
setFilter: i,
|
|
11
|
+
filterValue: l,
|
|
12
|
+
filterOptions: o
|
|
13
|
+
}) => /* @__PURE__ */ n(c, { "data-testid": "HeaderContainer", heading: r, children: [
|
|
14
|
+
e && /* @__PURE__ */ t(a, { level: 2, children: e }),
|
|
13
15
|
/* @__PURE__ */ t(
|
|
14
|
-
|
|
16
|
+
s,
|
|
15
17
|
{
|
|
16
18
|
"data-testid": "Select",
|
|
17
19
|
dense: !0,
|
|
18
20
|
className: m.filterSelect,
|
|
19
21
|
variant: "outlined",
|
|
20
|
-
onChange:
|
|
21
|
-
value:
|
|
22
|
-
options:
|
|
22
|
+
onChange: i,
|
|
23
|
+
value: l,
|
|
24
|
+
options: o
|
|
23
25
|
}
|
|
24
26
|
)
|
|
25
27
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as i, s as t, f as T } from "../../react.esm-
|
|
2
|
+
import { a as i, s as t, f as T } from "../../react.esm-FR1-H8iU.js";
|
|
3
3
|
import { HeaderFilter as s } from "./HeaderFilter.js";
|
|
4
|
-
import { d as c, t as o, v as l, g as e } from "../../vi.
|
|
4
|
+
import { d as c, t as o, v as l, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
|
|
5
5
|
c("HeaderFilter-Test", () => {
|
|
6
6
|
o("render header filter", () => {
|
|
7
7
|
i(
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import "../../assets/HealthCheckFailed.css";
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { Card as s, CardContent as d, Padding as l, CardBody as h, Group as _, TypoBody as o } from "@element/react-components";
|
|
4
|
+
import { Iconify as m } from "../Iconify/Iconify.js";
|
|
5
|
+
const p = "_database_11ki8_1", u = "_spin_11ki8_1", f = "_iot_11ki8_16", k = "_platform_11ki8_17", g = "_other_11ki8_18", C = "_crossedOut_11ki8_22", n = {
|
|
6
|
+
database: p,
|
|
7
|
+
spin: u,
|
|
8
|
+
iot: f,
|
|
9
|
+
platform: k,
|
|
10
|
+
other: g,
|
|
11
|
+
crossedOut: C
|
|
12
|
+
}, H = ({
|
|
13
|
+
title: t,
|
|
14
|
+
subtitle: a,
|
|
15
|
+
type: r,
|
|
16
|
+
isOutlined: i = !0
|
|
10
17
|
}) => /* @__PURE__ */ e(
|
|
11
|
-
|
|
18
|
+
s,
|
|
12
19
|
{
|
|
13
|
-
variant:
|
|
14
|
-
"data-testid": `${
|
|
15
|
-
children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(
|
|
16
|
-
|
|
20
|
+
variant: i ? "outlined" : "flat",
|
|
21
|
+
"data-testid": `${r}-health-check-failed-card`,
|
|
22
|
+
children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(l, { variant: "airy", children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ c(
|
|
23
|
+
_,
|
|
17
24
|
{
|
|
18
25
|
gap: "none",
|
|
19
26
|
primaryAlign: "center",
|
|
@@ -21,19 +28,19 @@ const v = ({
|
|
|
21
28
|
direction: "vertical",
|
|
22
29
|
fullWidth: !0,
|
|
23
30
|
children: [
|
|
24
|
-
/* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */ e(
|
|
26
|
-
/* @__PURE__ */ e(
|
|
31
|
+
/* @__PURE__ */ e(b, { type: r }),
|
|
32
|
+
/* @__PURE__ */ e(o, { level: 1, bold: !0, children: t }),
|
|
33
|
+
/* @__PURE__ */ e(o, { level: 2, themeColor: "text-secondary-on-background", children: a })
|
|
27
34
|
]
|
|
28
35
|
}
|
|
29
36
|
) }) }) })
|
|
30
37
|
}
|
|
31
|
-
),
|
|
38
|
+
), y = {
|
|
32
39
|
database: "sync",
|
|
33
40
|
iot: "settings_input_antenna",
|
|
34
41
|
platform: "engineering",
|
|
35
42
|
other: "error"
|
|
36
|
-
},
|
|
43
|
+
}, b = ({ type: t }) => /* @__PURE__ */ e("span", { className: t === "iot" ? n.crossedOut : "", children: /* @__PURE__ */ e(m, { icon: y[t], className: n[t], iconSize: "xlarge" }) });
|
|
37
44
|
export {
|
|
38
|
-
|
|
45
|
+
H as HealthCheckFailed
|
|
39
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { a as s, s as e } from "../../react.esm-
|
|
2
|
+
import { a as s, s as e } from "../../react.esm-FR1-H8iU.js";
|
|
3
3
|
import { HealthCheckFailed as r } from "./HealthCheckFailed.js";
|
|
4
|
-
import { d as h, t as i, g as t } from "../../vi.
|
|
4
|
+
import { d as h, t as i, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
|
|
5
5
|
h("HealthCheckFailed Component", () => {
|
|
6
6
|
const c = "Test Title", n = "Test Subtitle";
|
|
7
7
|
i("displays the correct title and subtitle", () => {
|