@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.
Files changed (165) hide show
  1. package/dist/BigLoadingSpinner-C3wTbTD0.js +17 -0
  2. package/dist/GenericCard-B8x1DMa8.js +81 -0
  3. package/dist/ListAreaService-CRX4eEUJ.js +108 -0
  4. package/dist/_Map-Dtlps7IZ.js +113 -0
  5. package/dist/{_commonjsHelpers-CT_km90n.js → _commonjsHelpers-BkfeUUK-.js} +2 -4
  6. package/dist/_overArg-_0pUmCsX.js +14 -0
  7. package/dist/assets/Filter.css +1 -0
  8. package/dist/assets/GenericTable.css +1 -0
  9. package/dist/assets/main.css +1 -0
  10. package/dist/components/AlertBanner/AlertBanner.js +22 -16
  11. package/dist/components/AlertBanner/AlertBanner.test.js +2 -2
  12. package/dist/components/BaseView/BaseView.js +33 -26
  13. package/dist/components/BaseView/BaseView.test.js +25 -25
  14. package/dist/components/BasicHeading/BasicHeading.js +50 -41
  15. package/dist/components/BasicHeading/BasicHeading.test.js +2 -2
  16. package/dist/components/BlockView/BlockView.js +51 -42
  17. package/dist/components/BlockView/BlockView.test.js +2 -2
  18. package/dist/components/ChipCard/ChipCard.js +12 -10
  19. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  20. package/dist/components/ContextMenu/ContextMenu.js +29 -25
  21. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  22. package/dist/components/DeleteModal/DeleteModal.js +58 -53
  23. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  24. package/dist/components/Disclaimer/Disclaimer.js +11 -8
  25. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  26. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  27. package/dist/components/Filter/Filter.js +107 -125
  28. package/dist/components/Filter/Filter.test.js +2 -2
  29. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +19 -19
  30. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  31. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -0
  32. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +6081 -7102
  33. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  34. package/dist/components/FormComponents/FormNumber/CustomTextField.js +16 -14
  35. package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
  36. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  37. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  38. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
  39. package/dist/components/FormComponents/FormSelect/FormSelect.js +109 -102
  40. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  41. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
  42. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  43. package/dist/components/FormComponents/FormText/FormText.js +95 -96
  44. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  45. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +31 -0
  46. package/dist/components/FormComponents/FormToggle/FormToggle.js +43 -0
  47. package/dist/components/FormComponents/FormToggle/FormToggle.test.d.ts +1 -0
  48. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +50 -0
  49. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  50. package/dist/components/GenericTable/GenericTable.js +64 -81
  51. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  52. package/dist/components/GenericTable/GenericTableService.js +41 -43
  53. package/dist/components/GenericTable/Mobile/GenericCard.js +6 -68
  54. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  55. package/dist/components/GenericTable/Mobile/GenericCardList.js +8 -9
  56. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  57. package/dist/components/HashTabView/HashTabView.js +62 -52
  58. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  59. package/dist/components/HeaderFilter/HeaderFilter.js +16 -14
  60. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  61. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +27 -20
  62. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  63. package/dist/components/Iconify/Iconify.js +56 -6
  64. package/dist/components/Iconify/Iconify.test.js +3 -3
  65. package/dist/components/InfoGroup/InfoGroup.js +36 -30
  66. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  67. package/dist/components/ListArea/ListArea.js +45 -357
  68. package/dist/components/ListArea/ListArea.test.js +4 -4
  69. package/dist/components/ListArea/ListAreaService.js +8 -92
  70. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +5 -9
  71. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -4
  72. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +28 -26
  73. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  74. package/dist/components/Modal/Modal.js +6 -4
  75. package/dist/components/OverflowTooltip/OverflowTooltip.js +21 -19
  76. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +3 -3
  77. package/dist/components/OverflowTooltip/OverflowTooltipService.js +1 -2
  78. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  79. package/dist/components/SearchBar/SearchBar.js +22 -20
  80. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  81. package/dist/components/VerticalDivider/VerticalDivider.js +6 -4
  82. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  83. package/dist/get-BiqanC9_.js +7 -0
  84. package/dist/get-P-5PYZOE.js +426 -0
  85. package/dist/hooks/useBreakpoints.test.js +2 -2
  86. package/dist/hooks/useHelperText.d.ts +13 -0
  87. package/dist/hooks/useHelperText.js +25 -0
  88. package/dist/index-DzM8o582.js +10881 -0
  89. package/dist/isArray-2zMxXFEr.js +83 -0
  90. package/dist/isArray-C_5XvIlE.js +7 -0
  91. package/dist/isEmpty-BimaZd5G.js +225 -0
  92. package/dist/isString-BOHPtrlm.js +44 -0
  93. package/dist/magic-string.es-D4UQQyt0.js +859 -0
  94. package/dist/main.d.ts +1 -0
  95. package/dist/main.js +33 -31
  96. package/dist/orderBy-BVQIswlJ.js +765 -0
  97. package/dist/{react-number-format.es-BeIT_PM7.js → react-number-format.es-BD3_OvMU.js} +156 -159
  98. package/dist/react-tooltip.min-c2wVkjF2.js +1354 -0
  99. package/dist/react.esm-FR1-H8iU.js +13471 -0
  100. package/dist/services/UtilService.js +12 -19
  101. package/dist/services/services.test.js +1 -1
  102. package/dist/vi.CjhMlMwf-DWv7vrn7.js +12192 -0
  103. package/package.json +8 -6
  104. package/dist/BlockView.module-BPlNT5uh.js +0 -15
  105. package/dist/HashTabView.module-ZhwSfDeQ.js +0 -16
  106. package/dist/HeaderFilter.module-DiBmulr5.js +0 -7
  107. package/dist/Iconify-DoU6pP1o.js +0 -97
  108. package/dist/_Map-DKsHX-kc.js +0 -59
  109. package/dist/_baseToString-dkhmFwqS.js +0 -198
  110. package/dist/_equalByTag-BZEJl6ST.js +0 -158
  111. package/dist/_overArg-BC4qXKbU.js +0 -9
  112. package/dist/alertBanner.module-BPiKN0gh.js +0 -11
  113. package/dist/assets/genericTable.css +0 -1
  114. package/dist/baseView.module-uWbm_a5f.js +0 -12
  115. package/dist/basicHeading.module-BYb8xvuk.js +0 -16
  116. package/dist/bigLoadingSpinner.module-GgbFol8k.js +0 -11
  117. package/dist/chipCard.module-BjpKuf1b.js +0 -7
  118. package/dist/contextMenu.module-vNQHb48g.js +0 -9
  119. package/dist/deleteModal.module-Ds3MDzdl.js +0 -10
  120. package/dist/disclaimer.module-BZydt-Q_.js +0 -8
  121. package/dist/formDatePicker.module-BV3ma_7y.js +0 -11
  122. package/dist/formNumber.module-BA05Gi6_.js +0 -7
  123. package/dist/formSelect.module-PUiLDSD4.js +0 -15
  124. package/dist/formText.module-C0by6_DK.js +0 -12
  125. package/dist/genericCard.module-DrQu86jX.js +0 -15
  126. package/dist/genericTable.module-Dk3yy2S3.js +0 -17
  127. package/dist/get-BJn2Enx7.js +0 -47
  128. package/dist/healthCheckFailed.module-B5P1ogjs.js +0 -12
  129. package/dist/iconify.module-Cru5NS2X.js +0 -80
  130. package/dist/index-IMXII42b.js +0 -11708
  131. package/dist/infoGroup.module-Cxw88dfC.js +0 -12
  132. package/dist/isArray-thIeLpc5.js +0 -35
  133. package/dist/isPlainObject-BlCDf1Kc.js +0 -18
  134. package/dist/listArea.module-BhO_OJ1S.js +0 -20
  135. package/dist/loadingSpinner.module-CLtqSMWA.js +0 -7
  136. package/dist/magic-string.es-irX7syie.js +0 -732
  137. package/dist/modal.module-BlDp1Wiq.js +0 -7
  138. package/dist/overflowTooltip.module-YyRN2MGc.js +0 -7
  139. package/dist/react-tooltip.min-BzHiZW8k.js +0 -1380
  140. package/dist/react.esm-CHvVvf3L.js +0 -12786
  141. package/dist/searchBar.module-9gKyrZRT.js +0 -7
  142. package/dist/verticalDivider.module-C3_GL-fH.js +0 -7
  143. package/dist/vi.JYQecGiw-BpOAB4v6.js +0 -9796
  144. /package/dist/assets/{alertBanner.css → AlertBanner.css} +0 -0
  145. /package/dist/assets/{baseView.css → BaseView.css} +0 -0
  146. /package/dist/assets/{basicHeading.css → BasicHeading.css} +0 -0
  147. /package/dist/assets/{bigLoadingSpinner.css → BigLoadingSpinner.css} +0 -0
  148. /package/dist/assets/{chipCard.css → ChipCard.css} +0 -0
  149. /package/dist/assets/{contextMenu.css → ContextMenu.css} +0 -0
  150. /package/dist/assets/{formNumber.css → CustomTextField.css} +0 -0
  151. /package/dist/assets/{deleteModal.css → DeleteModal.css} +0 -0
  152. /package/dist/assets/{disclaimer.css → Disclaimer.css} +0 -0
  153. /package/dist/assets/{formDatePicker.css → FormDatePicker.css} +0 -0
  154. /package/dist/assets/{formSelect.css → FormSelect.css} +0 -0
  155. /package/dist/assets/{formText.css → FormText.css} +0 -0
  156. /package/dist/assets/{genericCard.css → GenericCard.css} +0 -0
  157. /package/dist/assets/{healthCheckFailed.css → HealthCheckFailed.css} +0 -0
  158. /package/dist/assets/{iconify.css → Iconify.css} +0 -0
  159. /package/dist/assets/{infoGroup.css → InfoGroup.css} +0 -0
  160. /package/dist/assets/{listArea.css → ListAreaService.css} +0 -0
  161. /package/dist/assets/{loadingSpinner.css → LoadingSpinner.css} +0 -0
  162. /package/dist/assets/{modal.css → Modal.css} +0 -0
  163. /package/dist/assets/{overflowTooltip.css → OverflowTooltip.css} +0 -0
  164. /package/dist/assets/{searchBar.css → SearchBar.css} +0 -0
  165. /package/dist/assets/{verticalDivider.css → VerticalDivider.css} +0 -0
@@ -1,59 +1,57 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { useMemo as a } from "react";
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 j = ({
5
- data: r = [],
6
- order: n = [],
7
- cellTemplates: e = void 0,
8
- headerTranslation: t = (c) => c,
9
- getRowActions: f = void 0,
10
- customColumnWidth: o,
11
- cardTitleColumn: u,
12
- cardSubTitleColumn: s
13
- }) => a(() => {
14
- if (r?.length === 0)
15
- return [];
16
- const c = v(r[0], n).map((i) => {
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: e ? e[i] : void 0,
23
- cellProps: p ? { width: p } : void 0,
24
- asCardTitle: i === u,
25
- asCardSubtitle: i === s
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 f ? [
29
- ...c,
27
+ return o ? [
28
+ ...d,
30
29
  { id: "actions", header: "", accessor: "actions" }
31
- ] : c;
30
+ ] : d;
32
31
  }, [
32
+ n,
33
33
  r,
34
34
  e,
35
- n,
36
35
  t,
37
- f,
38
36
  o,
39
- u,
40
- s
41
- ]), l = ({
42
- data: r = [],
43
- getRowActions: n = void 0
44
- }) => a(() => n ? r.map((e) => {
45
- const t = /* @__PURE__ */ d(x, { actions: n(e), iconOrientation: "horizontal" });
46
- return { ...e, actions: t };
47
- }) : r, [r, n]), v = (r, n) => {
48
- if (!r)
49
- return [];
50
- let e = Object.keys(r).map((t) => t);
51
- return n?.length > 0 && (e = e.sort((t, f) => {
52
- const o = n.findIndex((s) => s === t), u = n.findIndex((s) => s === f);
53
- return o === -1 ? 1 : u === -1 ? -1 : o - u;
54
- })), e;
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
- j as useGenerateColumns,
58
- l as useGenerateTableData
55
+ l as useGenerateColumns,
56
+ G as useGenerateTableData
59
57
  };
@@ -1,70 +1,8 @@
1
- import { jsx as e, jsxs as l, Fragment as g } from "react/jsx-runtime";
2
- import { Card as T, CardContent as v, CardBody as y, Grid as x, GridRow as b, GridCol as n, TypoSubtitle as f, CardTitle as u, CardDivider as N } from "@element/react-components";
3
- import { useMemo as $ } from "react";
4
- import { OverflowTooltip as c } from "../../OverflowTooltip/OverflowTooltip.js";
5
- import { s as i } from "../../../genericCard.module-DrQu86jX.js";
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
- A as GenericCard
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-CHvVvf3L.js";
3
- import { GenericCard as i } from "./GenericCard.js";
4
- import { d as m, t as s, g as e } from "../../../vi.JYQecGiw-BpOAB4v6.js";
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 o, Group as s } from "@element/react-components";
3
- import { GenericCard as m } from "./GenericCard.js";
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: d = [],
9
- noContentText: l
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(o, { children: l }) }) }) : (
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(s, { fullWidth: !0, direction: "vertical", primaryAlign: "center", secondaryAlign: "center", children: e?.map((i, a) => /* @__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: d
16
+ hiddenColumns: a
18
17
  },
19
- i.id ?? a
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-CHvVvf3L.js";
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.JYQecGiw-BpOAB4v6.js";
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 { jsx as a, jsxs as m, Fragment as I } from "react/jsx-runtime";
2
- import { Elevation as N, Group as o, TabBar as y, Tab as b, Padding as k } from "@element/react-components";
3
- import { useState as w, useEffect as x } from "react";
4
- import { u as C } from "../../useBreakpoints-MzTZ0tCT.js";
5
- import { s as n } from "../../HashTabView.module-ZhwSfDeQ.js";
6
- const f = (t, r) => !r || !t ? 0 : t.findIndex((i) => i.hash === r.replace("#", "")) ?? 0, z = ({
7
- tabs: t,
8
- hasHash: r = !0,
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: h = "start",
21
+ clusterAlign: u = "start",
11
22
  hasClusteredTabs: g,
12
23
  children: d,
13
- verticalGap: v = "none",
14
- elevation: $ = 0,
15
- backgroundColor: T = "themeBackground",
16
- onChange: A,
17
- hasStickyTabs: p = !1
24
+ verticalGap: y = "none",
25
+ elevation: v = 0,
26
+ backgroundColor: f = "themeBackground",
27
+ onChange: B,
28
+ hasStickyTabs: m = !1
18
29
  }) => {
19
- const [l, u] = w(f(t, i)), { isDesktop: s } = C();
20
- x(() => {
21
- if (!r || !i)
22
- return;
23
- const e = f(t, i);
24
- u(e);
25
- }, [t, i, r]);
26
- const B = (e) => {
27
- const c = t[e].hash;
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__ */ a(
31
- N,
40
+ return /* @__PURE__ */ r(
41
+ k,
32
42
  {
33
- elevation: $,
34
- className: `${n.elevation} ${T === "none" ? "" : n.themeBackground}`,
35
- children: /* @__PURE__ */ m(
36
- o,
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: v,
50
+ gap: y,
41
51
  secondaryAlign: "stretch",
42
52
  children: [
43
- /* @__PURE__ */ m(
44
- o,
53
+ /* @__PURE__ */ _(
54
+ c,
45
55
  {
46
56
  direction: s ? "horizontal" : "vertical",
47
- className: `${n.tabWrapper} ${p ? n.stickyHeader : ""}`,
57
+ className: `${t.tabWrapper} ${m ? t.stickyHeader : ""}`,
48
58
  children: [
49
- /* @__PURE__ */ a(
50
- y,
59
+ /* @__PURE__ */ r(
60
+ $,
51
61
  {
52
62
  "data-testid": "tab-bar",
53
- className: n.tabBar,
63
+ className: t.tabBar,
54
64
  clustered: s ? g : !1,
55
- clusterAlign: h,
65
+ clusterAlign: u,
56
66
  variant: "surface",
57
67
  activeTabIndex: l,
58
- onTabActivated: B,
59
- children: t.map((e, c) => /* @__PURE__ */ a(
60
- b,
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 ? n.tabButton : ""} ${e.isIconRed ? n.iconColorRed : ""}`,
65
- active: l === c,
66
- children: /* @__PURE__ */ m(o, { gap: "dense", children: [
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
- `${c}_${e.hash}`
81
+ `${o}_${e.hash}`
72
82
  ))
73
83
  }
74
84
  ),
75
- d ? /* @__PURE__ */ a(
76
- k,
85
+ d ? /* @__PURE__ */ r(
86
+ T,
77
87
  {
78
88
  variant: "dense",
79
- className: s ? n.childContainer : n.childContainerPhone,
80
- children: /* @__PURE__ */ a(o, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: d })
89
+ className: s ? t.childContainer : t.childContainerPhone,
90
+ children: /* @__PURE__ */ r(c, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: d })
81
91
  }
82
- ) : /* @__PURE__ */ a(I, {})
92
+ ) : /* @__PURE__ */ r(C, {})
83
93
  ]
84
94
  }
85
95
  ),
86
- p ? /* @__PURE__ */ a(o, { fullWidth: !0, direction: "vertical", className: n.miniPadding, children: t[l]?.component }) : t[l]?.component
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
- z as HashTabView
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-CHvVvf3L.js";
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.JYQecGiw-BpOAB4v6.js";
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 { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { TypoBody as n, Select as d } from "@element/react-components";
3
- import { BasicHeading as l } from "../BasicHeading/BasicHeading.js";
4
- import { s as m } from "../../HeaderFilter.module-DiBmulr5.js";
5
- const h = ({
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: o,
9
- filterValue: a,
10
- filterOptions: i
11
- }) => /* @__PURE__ */ s(l, { "data-testid": "HeaderContainer", heading: r, children: [
12
- e && /* @__PURE__ */ t(n, { level: 2, children: e }),
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
- d,
16
+ s,
15
17
  {
16
18
  "data-testid": "Select",
17
19
  dense: !0,
18
20
  className: m.filterSelect,
19
21
  variant: "outlined",
20
- onChange: o,
21
- value: a,
22
- options: i
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-CHvVvf3L.js";
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.JYQecGiw-BpOAB4v6.js";
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 { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { Card as c, CardContent as d, Padding as s, CardBody as h, Group as m, TypoBody as a } from "@element/react-components";
3
- import { I as u } from "../../Iconify-DoU6pP1o.js";
4
- import { s as t } from "../../healthCheckFailed.module-B5P1ogjs.js";
5
- const v = ({
6
- title: r,
7
- subtitle: i,
8
- type: n,
9
- isOutlined: o = !0
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
- c,
18
+ s,
12
19
  {
13
- variant: o ? "outlined" : "flat",
14
- "data-testid": `${n}-health-check-failed-card`,
15
- children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(s, { variant: "airy", children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ l(
16
- m,
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(g, { type: n }),
25
- /* @__PURE__ */ e(a, { level: 1, bold: !0, children: r }),
26
- /* @__PURE__ */ e(a, { level: 2, themeColor: "text-secondary-on-background", children: i })
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
- ), f = {
38
+ ), y = {
32
39
  database: "sync",
33
40
  iot: "settings_input_antenna",
34
41
  platform: "engineering",
35
42
  other: "error"
36
- }, g = ({ type: r }) => /* @__PURE__ */ e("span", { className: r === "iot" ? t.crossedOut : "", children: /* @__PURE__ */ e(u, { icon: f[r], className: t[r], iconSize: "xlarge" }) });
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
- v as HealthCheckFailed
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-CHvVvf3L.js";
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.JYQecGiw-BpOAB4v6.js";
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", () => {