@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
@@ -0,0 +1,17 @@
1
+ import "./assets/BigLoadingSpinner.css";
2
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { TypoBody as n } from "@element/react-components";
4
+ import { Iconify as d } from "./components/Iconify/Iconify.js";
5
+ const e = "_loadingBigOverlay_7dxo1_1", g = "_bigLoadSpinnerCard_7dxo1_12", s = "_bigLoadSpinnerCardText_7dxo1_27", t = "_logo_7dxo1_33", o = {
6
+ loadingBigOverlay: e,
7
+ bigLoadSpinnerCard: g,
8
+ bigLoadSpinnerCardText: s,
9
+ logo: t
10
+ }, l = ({ text: r }) => /* @__PURE__ */ a("div", { className: o.bigLoadSpinnerCard, role: "progressbar", "data-testid": "loading-spinner", children: [
11
+ /* @__PURE__ */ i(d, { icon: "hortiview", className: o.logo, "data-testid": "logo-icon" }),
12
+ /* @__PURE__ */ i(n, { tag: "p", bold: !0, level: 1, className: o.bigLoadSpinnerCardText, children: r })
13
+ ] }), x = (r) => /* @__PURE__ */ i("div", { className: o.loadingBigOverlay, children: /* @__PURE__ */ i(l, { ...r }) });
14
+ export {
15
+ x as B,
16
+ o as s
17
+ };
@@ -0,0 +1,81 @@
1
+ import "./assets/GenericCard.css";
2
+ import { jsx as r, jsxs as o, Fragment as C } from "react/jsx-runtime";
3
+ import { Card as h, CardContent as m, CardBody as T, Grid as g, GridRow as u, GridCol as c, TypoSubtitle as f, CardTitle as x, CardDivider as v } from "@element/react-components";
4
+ import { useMemo as w } from "react";
5
+ import { OverflowTooltip as l } from "./components/OverflowTooltip/OverflowTooltip.js";
6
+ const b = "_cardTitle_ny9m0_1", B = "_cardBody_ny9m0_5", N = "_cardContent_ny9m0_10", $ = "_row_ny9m0_14", k = "_font_ny9m0_18", G = "_fontHeader_ny9m0_23", H = "_title_ny9m0_27", S = "_emptyContainer_ny9m0_33", A = "_empty_ny9m0_33", n = {
7
+ cardTitle: b,
8
+ cardBody: B,
9
+ cardContent: N,
10
+ row: $,
11
+ font: k,
12
+ fontHeader: G,
13
+ title: H,
14
+ emptyContainer: S,
15
+ empty: A
16
+ }, _ = {
17
+ desktopCol: 6,
18
+ phoneCol: 2,
19
+ tabletCol: 4,
20
+ verticalAlign: "bottom"
21
+ }, R = ({ item: e, columns: t, hiddenColumns: i }) => {
22
+ const d = t.find((a) => a.asCardTitle), y = t.find((a) => a.asCardSubtitle), p = w(
23
+ () => t.filter(
24
+ (a) => !a.asCardTitle && !a.asCardSubtitle && a.id !== "actions"
25
+ ),
26
+ [t]
27
+ );
28
+ return /* @__PURE__ */ r(h, { variant: "raised", "data-testid": `card${d ? "-" + e[d.accessor] : ""}`, children: /* @__PURE__ */ o(m, { className: n.cardContent, "data-testid": "card-content", children: [
29
+ /* @__PURE__ */ r(j, { item: e, titleColumn: d, subTitleColumn: y }),
30
+ /* @__PURE__ */ r(T, { className: n.cardBody, "data-testid": "card-body", children: /* @__PURE__ */ r(g, { fullHeight: !0, fullWidth: !0, variant: "none", children: p.map((a) => i?.includes(a.id) ? null : /* @__PURE__ */ o(u, { className: n.row, "data-testid": "row", children: [
31
+ /* @__PURE__ */ r(c, { horizontalAlign: "right", ..._, children: /* @__PURE__ */ o(
32
+ f,
33
+ {
34
+ level: 2,
35
+ themeColor: "text-secondary-on-background",
36
+ className: `${n.font} ${n.fontHeader}`,
37
+ tag: "div",
38
+ children: [
39
+ a.header,
40
+ ":"
41
+ ]
42
+ }
43
+ ) }),
44
+ /* @__PURE__ */ r(c, { horizontalAlign: "left", ..._, children: /* @__PURE__ */ r(s, { column: a, item: e }) })
45
+ ] }, a.id)) }) })
46
+ ] }) });
47
+ }, j = ({ item: e, titleColumn: t, subTitleColumn: i }) => {
48
+ const d = e.actions;
49
+ return !t && !i && !d ? null : /* @__PURE__ */ o(C, { children: [
50
+ /* @__PURE__ */ r(
51
+ x,
52
+ {
53
+ "data-testid": "card-title",
54
+ className: n.cardTitle,
55
+ primaryText: t !== void 0 && /* @__PURE__ */ r(s, { column: t, item: e, isTitle: !0 }),
56
+ secondaryText: i !== void 0 && /* @__PURE__ */ r(s, { column: i, item: e, isTitle: !0 }),
57
+ trailingBlock: d,
58
+ trailingBlockType: "title-actions"
59
+ }
60
+ ),
61
+ /* @__PURE__ */ r(v, {})
62
+ ] });
63
+ }, s = ({ item: e, column: t, isTitle: i = !1 }) => t.cellTemplate ? t.cellTemplate({ row: { original: e } }) : i ? /* @__PURE__ */ r(
64
+ l,
65
+ {
66
+ id: `tip_${t.id}_${e[t.accessor]}`,
67
+ text: e[t.accessor],
68
+ children: /* @__PURE__ */ r("span", { className: n.title, children: e[t.accessor] })
69
+ }
70
+ ) : /* @__PURE__ */ r(
71
+ l,
72
+ {
73
+ id: `tip_${t.id}_${e[t.accessor]}`,
74
+ text: e[t.accessor],
75
+ children: /* @__PURE__ */ r(f, { level: 2, themeColor: "text-primary-on-background", className: n.font, children: e[t.accessor] })
76
+ }
77
+ );
78
+ export {
79
+ R as G,
80
+ n as s
81
+ };
@@ -0,0 +1,108 @@
1
+ import "./assets/ListAreaService.css";
2
+ import { jsx as r, jsxs as z } from "react/jsx-runtime";
3
+ import { TypoButton as B, Icon as C, Group as b, TypoSubtitle as N, TypoBody as O } from "@element/react-components";
4
+ import { Iconify as $ } from "./components/Iconify/Iconify.js";
5
+ import { AvailableCustomIcons as k } from "./enums/AvailableCustomIcons.js";
6
+ const E = "_fullWidth_zewqs_1", j = "_mainElevation_zewqs_5", W = "_searchbar_zewqs_11", G = "_roundedBottom_zewqs_19", L = "_primaryText_zewqs_24", S = "_list_zewqs_28", A = "_listItem_zewqs_56", P = "_iconColor_zewqs_76", D = "_overlineTitle_zewqs_80", F = "_noOverlineTitle_zewqs_85", H = "_truncate_zewqs_89", J = "_truncateOverlineText_zewqs_100", o = {
7
+ fullWidth: E,
8
+ mainElevation: j,
9
+ searchbar: W,
10
+ roundedBottom: G,
11
+ primaryText: L,
12
+ list: S,
13
+ listItem: A,
14
+ iconColor: P,
15
+ overlineTitle: D,
16
+ noOverlineTitle: F,
17
+ truncate: H,
18
+ truncateOverlineText: J
19
+ }, Y = (t, s, l, a) => {
20
+ const n = t.reduce((i, c) => {
21
+ const { groupName: e, ...m } = c;
22
+ return !e || typeof e != "string" || (i[e] || (i[e] = {
23
+ groupName: /* @__PURE__ */ r(B, { children: e }),
24
+ id: e,
25
+ items: []
26
+ }), i[e].items = [
27
+ ...i[e].items,
28
+ f(m, s, l, a)
29
+ ]), i;
30
+ }, {});
31
+ return Object.values(n);
32
+ }, Z = (t, s, l, a) => t.map((n) => f(n, s, l, a)), f = (t, s, l, a) => {
33
+ const {
34
+ id: n,
35
+ title: i,
36
+ subTitle: c,
37
+ route: e,
38
+ value: m,
39
+ noNavigation: p,
40
+ disabled: d,
41
+ icon: y,
42
+ iconType: v,
43
+ trailingIcon: g,
44
+ trailingIconType: h,
45
+ actionButton: I,
46
+ onClick: w,
47
+ customTitle: T,
48
+ listItemClassName: x,
49
+ overlineTitle: u
50
+ } = t, _ = s === e;
51
+ return {
52
+ id: n,
53
+ key: n,
54
+ select: _,
55
+ primaryText: n,
56
+ secondaryText: /* @__PURE__ */ z(b, { direction: "vertical", gap: "none", children: [
57
+ T ?? /* @__PURE__ */ r(
58
+ N,
59
+ {
60
+ "data-testid": "title",
61
+ level: 1,
62
+ themeColor: _ ? "primary" : void 0,
63
+ className: `${o.truncate} lmnt-theme-on-surface-active`,
64
+ children: i
65
+ }
66
+ ),
67
+ c && !T ? /* @__PURE__ */ r(
68
+ O,
69
+ {
70
+ "data-testid": "subtitle",
71
+ level: 2,
72
+ themeColor: _ ? "primary" : void 0,
73
+ className: `${o.truncate} lmnt-theme-on-surface-inactive`,
74
+ children: c
75
+ }
76
+ ) : void 0
77
+ ] }),
78
+ overlineText: u ? /* @__PURE__ */ r(
79
+ "span",
80
+ {
81
+ "data-testid": "overline-title",
82
+ className: `${o.truncate} ${o.truncateOverlineText}`,
83
+ children: u
84
+ }
85
+ ) : void 0,
86
+ trailingBlock: I ?? g ?? /* @__PURE__ */ r(C, { icon: "arrow_right", className: o.iconColor }),
87
+ leadingBlock: K(y),
88
+ value: m,
89
+ componentProps: {
90
+ id: n,
91
+ "data-testid": `${i}-list-item`,
92
+ key: n,
93
+ leadingBlockType: v ?? "icon",
94
+ trailingBlockType: h ?? "icon",
95
+ className: `${v === "avatar" ? "" : o.listItem} ${l} ${x ?? ""} ${u ? o.overlineTitle : o.noOverlineTitle}`,
96
+ onClick: (M, q) => w?.(q),
97
+ tag: d || p ? void 0 : a ?? "a",
98
+ to: d || p ? void 0 : e,
99
+ disabled: d
100
+ }
101
+ };
102
+ }, K = (t) => typeof t == "string" && t in k ? /* @__PURE__ */ r($, { icon: t }) : t;
103
+ export {
104
+ Z as a,
105
+ Y as g,
106
+ f as m,
107
+ o as s
108
+ };
@@ -0,0 +1,113 @@
1
+ import { a as D, c as M } from "./isArray-2zMxXFEr.js";
2
+ var v, h;
3
+ function T() {
4
+ if (h) return v;
5
+ h = 1;
6
+ function e(r) {
7
+ var t = typeof r;
8
+ return r != null && (t == "object" || t == "function");
9
+ }
10
+ return v = e, v;
11
+ }
12
+ var f, l;
13
+ function J() {
14
+ if (l) return f;
15
+ l = 1;
16
+ var e = D(), r = T(), t = "[object AsyncFunction]", a = "[object Function]", n = "[object GeneratorFunction]", u = "[object Proxy]";
17
+ function s(o) {
18
+ if (!r(o))
19
+ return !1;
20
+ var i = e(o);
21
+ return i == a || i == n || i == t || i == u;
22
+ }
23
+ return f = s, f;
24
+ }
25
+ var _, j;
26
+ function V() {
27
+ if (j) return _;
28
+ j = 1;
29
+ var e = M(), r = e["__core-js_shared__"];
30
+ return _ = r, _;
31
+ }
32
+ var g, I;
33
+ function m() {
34
+ if (I) return g;
35
+ I = 1;
36
+ var e = V(), r = function() {
37
+ var a = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
38
+ return a ? "Symbol(src)_1." + a : "";
39
+ }();
40
+ function t(a) {
41
+ return !!r && r in a;
42
+ }
43
+ return g = t, g;
44
+ }
45
+ var p, O;
46
+ function w() {
47
+ if (O) return p;
48
+ O = 1;
49
+ var e = Function.prototype, r = e.toString;
50
+ function t(a) {
51
+ if (a != null) {
52
+ try {
53
+ return r.call(a);
54
+ } catch {
55
+ }
56
+ try {
57
+ return a + "";
58
+ } catch {
59
+ }
60
+ }
61
+ return "";
62
+ }
63
+ return p = t, p;
64
+ }
65
+ var b, R;
66
+ function C() {
67
+ if (R) return b;
68
+ R = 1;
69
+ var e = J(), r = m(), t = T(), a = w(), n = /[\\^$.*+?()[\]{}|]/g, u = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, i = s.toString, k = o.hasOwnProperty, P = RegExp(
70
+ "^" + i.call(k).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
71
+ );
72
+ function x(c) {
73
+ if (!t(c) || r(c))
74
+ return !1;
75
+ var $ = e(c) ? P : u;
76
+ return $.test(a(c));
77
+ }
78
+ return b = x, b;
79
+ }
80
+ var d, N;
81
+ function E() {
82
+ if (N) return d;
83
+ N = 1;
84
+ function e(r, t) {
85
+ return r?.[t];
86
+ }
87
+ return d = e, d;
88
+ }
89
+ var q, S;
90
+ function G() {
91
+ if (S) return q;
92
+ S = 1;
93
+ var e = C(), r = E();
94
+ function t(a, n) {
95
+ var u = r(a, n);
96
+ return e(u) ? u : void 0;
97
+ }
98
+ return q = t, q;
99
+ }
100
+ var y, F;
101
+ function H() {
102
+ if (F) return y;
103
+ F = 1;
104
+ var e = G(), r = M(), t = e(r, "Map");
105
+ return y = t, y;
106
+ }
107
+ export {
108
+ H as a,
109
+ w as b,
110
+ J as c,
111
+ T as d,
112
+ G as r
113
+ };
@@ -3,16 +3,14 @@ function f(e) {
3
3
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
4
  }
5
5
  function l(e) {
6
- if (e.__esModule)
7
- return e;
6
+ if (e.__esModule) return e;
8
7
  var r = e.default;
9
8
  if (typeof r == "function") {
10
9
  var t = function o() {
11
10
  return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
12
11
  };
13
12
  t.prototype = r.prototype;
14
- } else
15
- t = {};
13
+ } else t = {};
16
14
  return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
17
15
  var n = Object.getOwnPropertyDescriptor(e, o);
18
16
  Object.defineProperty(t, o, n.get ? n : {
@@ -0,0 +1,14 @@
1
+ var r, e;
2
+ function i() {
3
+ if (e) return r;
4
+ e = 1;
5
+ function n(u, o) {
6
+ return function(t) {
7
+ return u(o(t));
8
+ };
9
+ }
10
+ return r = n, r;
11
+ }
12
+ export {
13
+ i as r
14
+ };
@@ -0,0 +1 @@
1
+ ._filterButton_qtl7a_1{width:15rem;height:100%!important}._relativeParent_qtl7a_6{position:relative}._filterBadge_qtl7a_10{position:absolute;top:0;right:0;transform:translate(50%,-50%)}._dense_qtl7a_17,._dense_qtl7a_17 div[class*=lmnt-select__anchor]{height:2.5rem!important}
@@ -0,0 +1 @@
1
+ ._topBar_1msoo_1 [class*=lmnt-table__top-bar__title]{display:none}._filterBar_1msoo_5{padding:1rem;width:inherit!important}._emptyTable_1msoo_9{height:16rem}[class*=mnt-pagination][class*=mdc-data-table__pagination]{border-top:1px solid var(--lmnt-theme-on-secondary-stroke)}._elevation_1msoo_17{border-radius:.4rem;width:100%}._table_1msoo_22,._table_1msoo_22 [class*=mdc-data-table__table-container]{border-radius:.4rem}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700|Roboto+Mono:400,500|Material+Icons";
@@ -1,28 +1,34 @@
1
- import { jsx as r, Fragment as l, jsxs as c } from "react/jsx-runtime";
2
- import { Group as m, TypoBody as p } from "@element/react-components";
3
- import { u as d } from "../../useBreakpoints-MzTZ0tCT.js";
4
- import { s as o } from "../../alertBanner.module-BPiKN0gh.js";
5
- const h = ({
6
- text: e,
7
- color: i = "info",
8
- isOpen: n = !0,
9
- action: s,
1
+ import "../../assets/AlertBanner.css";
2
+ import { jsx as e, Fragment as c, jsxs as _ } from "react/jsx-runtime";
3
+ import { Group as g, TypoBody as l } from "@element/react-components";
4
+ import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
5
+ const d = "_messageContainer_1seos_1", p = "_info_1seos_9", u = "_danger_1seos_14", f = "_success_1seos_19", y = "_warning_1seos_24", n = {
6
+ messageContainer: d,
7
+ info: p,
8
+ danger: u,
9
+ success: f,
10
+ warning: y
11
+ }, A = ({
12
+ text: s,
13
+ color: r = "info",
14
+ isOpen: o = !0,
15
+ action: i,
10
16
  isBold: t = !0
11
17
  }) => {
12
- const { isDesktop: a } = d();
13
- return n ? /* @__PURE__ */ r("div", { className: `${o.messageContainer} ${o[i]}`, children: /* @__PURE__ */ c(
14
- m,
18
+ const { isDesktop: a } = m();
19
+ return o ? /* @__PURE__ */ e("div", { className: `${n.messageContainer} ${n[r]}`, children: /* @__PURE__ */ _(
20
+ g,
15
21
  {
16
22
  direction: a ? "horizontal" : "vertical",
17
23
  primaryAlign: "space-between",
18
24
  secondaryAlign: "center",
19
25
  children: [
20
- typeof e == "string" ? /* @__PURE__ */ r(p, { bold: t, level: 2, children: e }) : /* @__PURE__ */ r("div", { children: e }),
21
- s
26
+ typeof s == "string" ? /* @__PURE__ */ e(l, { bold: t, level: 2, children: s }) : /* @__PURE__ */ e("div", { children: s }),
27
+ i
22
28
  ]
23
29
  }
24
- ) }) : /* @__PURE__ */ r(l, {});
30
+ ) }) : /* @__PURE__ */ e(c, {});
25
31
  };
26
32
  export {
27
- h as AlertBanner
33
+ A as AlertBanner
28
34
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, Fragment as m } from "react/jsx-runtime";
2
- import { a as t, s } from "../../react.esm-CHvVvf3L.js";
2
+ import { a as t, s } from "../../react.esm-FR1-H8iU.js";
3
3
  import { a as l } from "../../useBreakpoints-MzTZ0tCT.js";
4
4
  import { AlertBanner as n } from "./AlertBanner.js";
5
- import { d as c, b as p, t as r, g as o, v as a } from "../../vi.JYQecGiw-BpOAB4v6.js";
5
+ import { d as c, b as p, v as a, t as r, g as o } from "../../vi.CjhMlMwf-DWv7vrn7.js";
6
6
  c("AlertBanner Test", () => {
7
7
  p(() => {
8
8
  a.spyOn(l, "useBreakpoints").mockReturnValue({
@@ -1,51 +1,58 @@
1
- import { jsx as i, Fragment as k, jsxs as s } from "react/jsx-runtime";
1
+ import "../../assets/BaseView.css";
2
+ import { jsx as i, Fragment as x, jsxs as s } from "react/jsx-runtime";
2
3
  import { Group as o } from "@element/react-components";
3
- import { useMemo as a } from "react";
4
+ import { useMemo as d } from "react";
4
5
  import { BasicHeading as u } from "../BasicHeading/BasicHeading.js";
5
- import { EmptyView as L } from "../EmptyView/EmptyView.js";
6
- import { ListArea as W } from "../ListArea/ListArea.js";
7
- import { VerticalDivider as A } from "../VerticalDivider/VerticalDivider.js";
8
- import { u as V } from "../../useBreakpoints-MzTZ0tCT.js";
9
- import { s as r } from "../../baseView.module-uWbm_a5f.js";
10
- const C = ({
11
- action: d,
6
+ import { EmptyView as W } from "../EmptyView/EmptyView.js";
7
+ import { ListArea as B } from "../ListArea/ListArea.js";
8
+ import { VerticalDivider as N } from "../VerticalDivider/VerticalDivider.js";
9
+ import { u as A } from "../../useBreakpoints-MzTZ0tCT.js";
10
+ const V = "_divider_dw2rc_1", j = "_maxWidth_dw2rc_5", E = "_desktopList_dw2rc_9", H = "_mobileList_dw2rc_13", I = "_desktopDetail_dw2rc_17", y = "_mobileDetail_dw2rc_21", r = {
11
+ divider: V,
12
+ maxWidth: j,
13
+ desktopList: E,
14
+ mobileList: H,
15
+ desktopDetail: I,
16
+ mobileDetail: y
17
+ }, Q = ({
18
+ action: l,
12
19
  heading: c,
13
20
  elements: n,
14
21
  emptyText: m,
15
22
  hasSearch: p = !0,
16
23
  isSorted: h = !0,
17
- className: f,
18
- withAvatar: v = !1,
19
- listMaxHeight: g = "calc(100vh - 200px)",
20
- pathname: l,
24
+ className: _,
25
+ withAvatar: f = !1,
26
+ listMaxHeight: v = "calc(100vh - 200px)",
27
+ pathname: a,
21
28
  routerLinkElement: w,
22
29
  searchPlaceholder: b
23
30
  }) => {
24
- const { isDesktopNavbar: e } = V(), t = a(() => n.find((x) => x.route === l), [l, n]), B = a(() => t?.component ?? (e ? /* @__PURE__ */ i(L, { subtitle: m }) : /* @__PURE__ */ i(k, {})), [t, e, m]), D = a(() => e ? !0 : !t, [t, e]), N = a(() => e ? !0 : t, [t, e]);
25
- return /* @__PURE__ */ s(o, { "data-testid": "base-view-container", className: f ?? "", gap: "", fullWidth: !0, children: [
26
- D && /* @__PURE__ */ i(o, { gap: "none", className: e ? r.desktopList : r.mobileList, children: /* @__PURE__ */ s(o, { direction: "vertical", fullWidth: !0, gap: e ? "standard" : "dense", children: [
27
- c && /* @__PURE__ */ i(u, { "data-testid": "heading", heading: c, level: 4, marginBottom: 0, children: d }),
31
+ const { isDesktopNavbar: e } = A(), t = d(() => n.find((L) => L.route === a), [a, n]), D = d(() => t?.component ?? (e ? /* @__PURE__ */ i(W, { subtitle: m }) : /* @__PURE__ */ i(x, {})), [t, e, m]), g = d(() => e ? !0 : !t, [t, e]), k = d(() => e ? !0 : t, [t, e]);
32
+ return /* @__PURE__ */ s(o, { "data-testid": "base-view-container", className: _ ?? "", gap: "", fullWidth: !0, children: [
33
+ g && /* @__PURE__ */ i(o, { gap: "none", className: e ? r.desktopList : r.mobileList, children: /* @__PURE__ */ s(o, { direction: "vertical", fullWidth: !0, gap: e ? "standard" : "dense", children: [
34
+ c && /* @__PURE__ */ i(u, { "data-testid": "heading", heading: c, level: 4, marginBottom: 0, children: l }),
28
35
  /* @__PURE__ */ i(
29
- W,
36
+ B,
30
37
  {
31
38
  elements: n,
32
39
  hasSearch: p,
33
- maxHeight: g,
40
+ maxHeight: v,
34
41
  isSorted: h,
35
- pathname: l,
42
+ pathname: a,
36
43
  routerLinkElement: w,
37
44
  searchPlaceholder: b
38
45
  }
39
46
  )
40
47
  ] }) }),
41
- N && /* @__PURE__ */ s(
48
+ k && /* @__PURE__ */ s(
42
49
  o,
43
50
  {
44
51
  "data-testid": "details",
45
52
  gap: "none",
46
53
  className: e ? r.desktopDetail : r.mobileDetail,
47
54
  children: [
48
- e && /* @__PURE__ */ i(A, { className: r.divider, height: "100%" }),
55
+ e && /* @__PURE__ */ i(N, { className: r.divider, height: "100%" }),
49
56
  /* @__PURE__ */ s(o, { direction: "vertical", fullWidth: !0, children: [
50
57
  /* @__PURE__ */ i(
51
58
  u,
@@ -56,11 +63,11 @@ const C = ({
56
63
  icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
57
64
  marginBottom: 0,
58
65
  invisibleButton: t?.detailAction === void 0,
59
- withAvatar: v,
60
- children: t?.detailAction ?? d
66
+ withAvatar: f,
67
+ children: t?.detailAction ?? l
61
68
  }
62
69
  ),
63
- B
70
+ D
64
71
  ] })
65
72
  ]
66
73
  }
@@ -68,5 +75,5 @@ const C = ({
68
75
  ] });
69
76
  };
70
77
  export {
71
- C as BaseView
78
+ Q as BaseView
72
79
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as a, Fragment as s } from "react/jsx-runtime";
2
- import { a as r, s as e, f as p } from "../../react.esm-CHvVvf3L.js";
2
+ import { a as o, s as e, f as p } from "../../react.esm-FR1-H8iU.js";
3
3
  import { a as l } from "../../useBreakpoints-MzTZ0tCT.js";
4
- import { BaseView as i } from "./BaseView.js";
5
- import { d as u, b as m, t as n, g as t, v as c } from "../../vi.JYQecGiw-BpOAB4v6.js";
4
+ import { BaseView as r } from "./BaseView.js";
5
+ import { d as u, b as d, v as c, t as i, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
6
6
  u("BaseView Test", () => {
7
- m(() => {
7
+ d(() => {
8
8
  c.spyOn(l, "useBreakpoints").mockReturnValue({
9
9
  isMobile: !1,
10
10
  isTablet: !1,
@@ -12,7 +12,7 @@ u("BaseView Test", () => {
12
12
  isDesktopNavbar: !0
13
13
  });
14
14
  });
15
- const o = [
15
+ const n = [
16
16
  {
17
17
  id: "1",
18
18
  title: "user.personal_information",
@@ -37,13 +37,13 @@ u("BaseView Test", () => {
37
37
  component: /* @__PURE__ */ a(s, { children: "Security selected" })
38
38
  }
39
39
  ];
40
- n("render BaseView with empty view and navigation list", () => {
41
- r(
40
+ i("render BaseView with empty view and navigation list", () => {
41
+ o(
42
42
  /* @__PURE__ */ a(
43
- i,
43
+ r,
44
44
  {
45
45
  pathname: "/personal-profile",
46
- elements: o,
46
+ elements: n,
47
47
  heading: "user.personal-profile",
48
48
  hasSearch: !1,
49
49
  emptyText: "user.noselection",
@@ -52,13 +52,13 @@ u("BaseView Test", () => {
52
52
  }
53
53
  )
54
54
  ), t(e.getByText("user.noselection")).toBeInTheDocument(), t(e.getByText("user.personal-profile")).toBeInTheDocument(), t(e.getByText("user.personal_information")).toBeInTheDocument(), t(e.getByText("user.data_privacy")).toBeInTheDocument(), t(e.getByText("user.security")).toBeInTheDocument();
55
- }), n("render BaseView with data and navigation list", () => {
56
- r(
55
+ }), i("render BaseView with data and navigation list", () => {
56
+ o(
57
57
  /* @__PURE__ */ a(
58
- i,
58
+ r,
59
59
  {
60
60
  pathname: "/personal-profile/personal-information",
61
- elements: o,
61
+ elements: n,
62
62
  heading: "user.personal-profile",
63
63
  hasSearch: !1,
64
64
  emptyText: "user.noselection",
@@ -67,13 +67,13 @@ u("BaseView Test", () => {
67
67
  }
68
68
  )
69
69
  ), t(e.getByText("Personal information selected")).toBeInTheDocument(), t(e.getAllByText("account_circle")).toHaveLength(2), t(e.getAllByText("user.personal_information")).toHaveLength(2);
70
- }), n("render BaseView with custom detail title and no detail icon", () => {
71
- r(
70
+ }), i("render BaseView with custom detail title and no detail icon", () => {
71
+ o(
72
72
  /* @__PURE__ */ a(
73
- i,
73
+ r,
74
74
  {
75
75
  pathname: "/personal-profile/data-privacy",
76
- elements: o,
76
+ elements: n,
77
77
  heading: "user.personal-profile",
78
78
  hasSearch: !1,
79
79
  emptyText: "user.noselection",
@@ -82,18 +82,18 @@ u("BaseView Test", () => {
82
82
  }
83
83
  )
84
84
  ), t(e.getByText("Data Privacy selected")).toBeInTheDocument(), t(e.getByText("Data Privacy 2000")).toBeInTheDocument(), t(e.getAllByText("privacy_tip")).toHaveLength(1), t(e.getAllByText("user.data_privacy")).toHaveLength(1);
85
- }), n("hide empty view when screen is small", () => {
85
+ }), i("hide empty view when screen is small", () => {
86
86
  c.spyOn(l, "useBreakpoints").mockReturnValue({
87
87
  isMobile: !0,
88
88
  isTablet: !1,
89
89
  isDesktop: !1,
90
90
  isDesktopNavbar: !1
91
- }), r(
91
+ }), o(
92
92
  /* @__PURE__ */ a(
93
- i,
93
+ r,
94
94
  {
95
95
  pathname: "/personal-profile/data-privacy",
96
- elements: o,
96
+ elements: n,
97
97
  heading: "user.personal-profile",
98
98
  hasSearch: !1,
99
99
  emptyText: "user.noselection",
@@ -102,13 +102,13 @@ u("BaseView Test", () => {
102
102
  }
103
103
  )
104
104
  ), t(e.queryByText("user.noselection")).not.toBeInTheDocument();
105
- }), n("render BaseView with selected detail section", () => {
106
- r(
105
+ }), i("render BaseView with selected detail section", () => {
106
+ o(
107
107
  /* @__PURE__ */ a(
108
- i,
108
+ r,
109
109
  {
110
110
  pathname: "/personal-profile/data-privacy",
111
- elements: o,
111
+ elements: n,
112
112
  heading: "user.personal-profile",
113
113
  hasSearch: !1,
114
114
  emptyText: "user.noselection",