@hortiview/shared-components 0.0.6890 → 0.0.7018

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 (113) hide show
  1. package/dist/BlockView.module-BPlNT5uh.js +15 -0
  2. package/dist/HashTabView.module-CJX4gxTu.js +13 -0
  3. package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
  4. package/dist/Iconify-CY9lZjFd.js +95 -0
  5. package/dist/_baseToString-BNXOi2Mf.js +197 -0
  6. package/dist/_equalByTag-DJhSpgVG.js +157 -0
  7. package/dist/alertBanner.module-HneYdVzN.js +10 -0
  8. package/dist/assets/{main.css → Filter.css} +1 -1
  9. package/dist/assets/baseView.css +1 -0
  10. package/dist/assets/basicHeading.css +1 -0
  11. package/dist/assets/listArea.css +1 -0
  12. package/dist/baseView.module-ve87u_d0.js +12 -0
  13. package/dist/basicHeading.module-BYb8xvuk.js +16 -0
  14. package/dist/bigLoadingSpinner.module-GgbFol8k.js +11 -0
  15. package/dist/components/AlertBanner/AlertBanner.js +12 -17
  16. package/dist/components/AlertBanner/AlertBanner.test.js +2 -2
  17. package/dist/components/BaseView/BaseView.js +42 -45
  18. package/dist/components/BaseView/BaseView.test.js +6 -4
  19. package/dist/components/BasicHeading/BasicHeading.js +39 -50
  20. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  21. package/dist/components/BlockView/BlockView.js +41 -51
  22. package/dist/components/BlockView/BlockView.test.js +1 -1
  23. package/dist/components/ContextMenu/ContextMenu.js +18 -20
  24. package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
  25. package/dist/components/DeleteModal/DeleteModal.js +55 -60
  26. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  27. package/dist/components/Disclaimer/Disclaimer.js +8 -11
  28. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  29. package/dist/components/EmptyView/EmptyView.test.js +1 -1
  30. package/dist/components/Filter/Filter.d.ts +27 -0
  31. package/dist/components/Filter/Filter.js +149 -0
  32. package/dist/components/Filter/Filter.test.d.ts +1 -0
  33. package/dist/components/Filter/Filter.test.js +114 -0
  34. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  35. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +46 -52
  36. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +1 -1
  37. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
  38. package/dist/components/FormComponents/FormSelect/FormSelect.js +68 -73
  39. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +2 -2
  40. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
  41. package/dist/components/FormComponents/FormText/FormText.js +57 -62
  42. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  43. package/dist/components/GenericTable/GenericTable.js +52 -58
  44. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  45. package/dist/components/HashTabView/HashTabView.js +46 -54
  46. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  47. package/dist/components/HeaderFilter/HeaderFilter.js +14 -16
  48. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  49. package/dist/components/Iconify/Iconify.d.ts +3 -13
  50. package/dist/components/Iconify/Iconify.js +6 -163
  51. package/dist/components/Iconify/Iconify.test.js +2 -2
  52. package/dist/components/InfoGroup/InfoGroup.js +38 -47
  53. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  54. package/dist/components/ListArea/ListArea.js +258 -490
  55. package/dist/components/ListArea/ListArea.test.js +2 -2
  56. package/dist/components/ListArea/ListAreaService.js +82 -8
  57. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +9 -5
  58. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -2
  59. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +13 -15
  60. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  61. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
  62. package/dist/components/Scrollbar/scrollbar.test.js +1 -1
  63. package/dist/components/SearchBar/SearchBar.js +21 -23
  64. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  65. package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
  66. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  67. package/dist/contextMenu.module-B7aUMFPe.js +7 -0
  68. package/dist/deleteModal.module-Ds3MDzdl.js +10 -0
  69. package/dist/disclaimer.module-BZydt-Q_.js +8 -0
  70. package/dist/formDatePicker.module-BV3ma_7y.js +11 -0
  71. package/dist/formSelect.module-C18N-SsT.js +11 -0
  72. package/dist/formText.module-Blt6Y-SR.js +10 -0
  73. package/dist/genericTable.module-BkU2VDKR.js +11 -0
  74. package/dist/get-UxX31Aph.js +47 -0
  75. package/dist/hooks/useBreakpoint.d.ts +8 -1
  76. package/dist/hooks/useBreakpoint.js +1 -1
  77. package/dist/hooks/useBreakpoints.test.js +2 -2
  78. package/dist/iconify.module-C89oaw5b.js +79 -0
  79. package/dist/{index-DP2ENnrX.js → index-BQnj-5Zt.js} +1 -1
  80. package/dist/infoGroup.module-B3E1gCGi.js +14 -0
  81. package/dist/isArray-Ca4KR8TK.js +91 -0
  82. package/dist/listArea.module-B-gPyfbE.js +19 -0
  83. package/dist/loadingSpinner.module-CLtqSMWA.js +7 -0
  84. package/dist/main.d.ts +3 -0
  85. package/dist/main.js +55 -52
  86. package/dist/{react.esm-DoZanrUz.js → react.esm-C3jDj5Fe.js} +1 -0
  87. package/dist/searchBar.module-9gKyrZRT.js +7 -0
  88. package/dist/types/Filter.d.ts +31 -0
  89. package/dist/types/Filter.js +1 -0
  90. package/dist/useBreakpoint-BNeVhjjZ.js +33 -0
  91. package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
  92. package/package.json +1 -1
  93. package/dist/BigLoadingSpinner-Df2k3xOD.js +0 -18
  94. package/dist/ListAreaService-DDlsV9UD.js +0 -100
  95. package/dist/assets/BaseView.css +0 -1
  96. package/dist/assets/BasicHeading.css +0 -1
  97. package/dist/assets/ListAreaService.css +0 -1
  98. package/dist/get-BRDhkfK0.js +0 -324
  99. package/dist/useBreakpoint-2MH8ICuE.js +0 -28
  100. /package/dist/assets/{AlertBanner.css → alertBanner.css} +0 -0
  101. /package/dist/assets/{BigLoadingSpinner.css → bigLoadingSpinner.css} +0 -0
  102. /package/dist/assets/{ContextMenu.css → contextMenu.css} +0 -0
  103. /package/dist/assets/{DeleteModal.css → deleteModal.css} +0 -0
  104. /package/dist/assets/{Disclaimer.css → disclaimer.css} +0 -0
  105. /package/dist/assets/{FormDatePicker.css → formDatePicker.css} +0 -0
  106. /package/dist/assets/{FormSelect.css → formSelect.css} +0 -0
  107. /package/dist/assets/{FormText.css → formText.css} +0 -0
  108. /package/dist/assets/{GenericTable.css → genericTable.css} +0 -0
  109. /package/dist/assets/{Iconify.css → iconify.css} +0 -0
  110. /package/dist/assets/{InfoGroup.css → infoGroup.css} +0 -0
  111. /package/dist/assets/{LoadingSpinner.css → loadingSpinner.css} +0 -0
  112. /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
  113. /package/dist/assets/{VerticalDivider.css → verticalDivider.css} +0 -0
@@ -0,0 +1 @@
1
+ ._divider_1513z_1{margin:0 2rem}._truncate_1513z_5{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55vw}._desktopList_1513z_13{width:30%}._mobileList_1513z_17{width:100%}._desktopDetail_1513z_21{width:70%}._mobileDetail_1513z_25{width:100%}
@@ -0,0 +1 @@
1
+ ._pageHeader_gwnjc_1{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;width:100%;margin-bottom:1rem;align-self:end}._headlineContainer_gwnjc_11,._actionButtonContainer_gwnjc_16{display:flex;align-items:center}._actionButtonContainer_gwnjc_16>button{max-height:48px}._content_gwnjc_25{display:flex;justify-content:space-between;gap:1.5rem}._leadingIcon_gwnjc_31{margin-right:.8rem}._headingWrapper_gwnjc_35{display:flex;align-items:center}._headingContainer_gwnjc_40{display:flex;flex-direction:column}._invisible_gwnjc_45{visibility:hidden}._withAvatar_gwnjc_49{margin-left:.25rem;padding-right:1rem;margin-top:0rem}._withAvatar_gwnjc_49>._iconContainer_gwnjc_54{scale:1.1}._iconContainer_gwnjc_54{padding-right:.5rem}
@@ -0,0 +1 @@
1
+ ._fullWidth_x5yt7_1{width:100%}._mainElevation_x5yt7_5{background:var(--lmnt-theme-background);border-radius:.5rem;width:100%}._searchbar_x5yt7_11 div{border:none}._searchbar_x5yt7_11 button{margin-right:.5rem}._roundedBottom_x5yt7_19{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}._primaryText_x5yt7_24 [class*=mdc-list-item__primary-text]{display:none!important}._list_x5yt7_28{padding-top:0;padding-bottom:0;overflow-y:auto}._list_x5yt7_28 [class*=mdc-list-item__overline-text]{margin-bottom:-2.25rem}._list_x5yt7_28::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 .25rem rgba(0,0,0,.2);border-radius:.5rem;margin-right:.25rem;background-color:var(--lmnt-theme-background)}._list_x5yt7_28::-webkit-scrollbar{width:.5rem;background-color:var(--lmnt-theme-background)}._list_x5yt7_28::-webkit-scrollbar-thumb{border-radius:.5rem;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:var(--lmnt-theme-primary-on-surface)}._listItem_x5yt7_56{border-bottom:.0775rem solid var(--lmnt-utility-gray-surface)}._listItem_x5yt7_56 i:not(._trailingIcon_x5yt7_60){color:var(--lmnt-theme-on-surface-inactive)}._listItem_x5yt7_56 i._trailingIcon_x5yt7_60{color:var(--lmnt-theme-on-surface-disabled)}._listItem_x5yt7_56 [class^=mdc-list-item__start]{margin:0 1rem!important;align-self:center!important}._groupedListItem_x5yt7_72{height:4.5rem!important}._iconColor_x5yt7_76{color:var(--lmnt-theme-on-surface-disabled)!important}._overlineTitle_x5yt7_80 [class*=mdc-list-item__overline-text]{color:var(--lmnt-theme-on-surface-inactive)!important;line-height:1rem!important}._truncate_x5yt7_85{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:100%}._truncateOverlineText_x5yt7_94{margin-bottom:-1rem!important;margin-top:-1rem!important}
@@ -0,0 +1,12 @@
1
+ import "./assets/baseView.css";
2
+ const t = "_divider_1513z_1", e = "_truncate_1513z_5", i = "_desktopList_1513z_13", s = "_mobileList_1513z_17", o = "_desktopDetail_1513z_21", _ = "_mobileDetail_1513z_25", d = {
3
+ divider: t,
4
+ truncate: e,
5
+ desktopList: i,
6
+ mobileList: s,
7
+ desktopDetail: o,
8
+ mobileDetail: _
9
+ };
10
+ export {
11
+ d as s
12
+ };
@@ -0,0 +1,16 @@
1
+ import "./assets/basicHeading.css";
2
+ const n = "_pageHeader_gwnjc_1", e = "_headlineContainer_gwnjc_11", t = "_actionButtonContainer_gwnjc_16", a = "_content_gwnjc_25", i = "_leadingIcon_gwnjc_31", o = "_headingWrapper_gwnjc_35", c = "_headingContainer_gwnjc_40", _ = "_invisible_gwnjc_45", r = "_withAvatar_gwnjc_49", g = "_iconContainer_gwnjc_54", d = {
3
+ pageHeader: n,
4
+ headlineContainer: e,
5
+ actionButtonContainer: t,
6
+ content: a,
7
+ leadingIcon: i,
8
+ headingWrapper: o,
9
+ headingContainer: c,
10
+ invisible: _,
11
+ withAvatar: r,
12
+ iconContainer: g
13
+ };
14
+ export {
15
+ d as s
16
+ };
@@ -0,0 +1,11 @@
1
+ import "./assets/bigLoadingSpinner.css";
2
+ const o = "_loadingBigOverlay_7dxo1_1", d = "_bigLoadSpinnerCard_7dxo1_12", a = "_bigLoadSpinnerCardText_7dxo1_27", n = "_logo_7dxo1_33", e = "_rotate360deg_7dxo1_1", i = {
3
+ loadingBigOverlay: o,
4
+ bigLoadSpinnerCard: d,
5
+ bigLoadSpinnerCardText: a,
6
+ logo: n,
7
+ rotate360deg: e
8
+ };
9
+ export {
10
+ i as s
11
+ };
@@ -1,27 +1,22 @@
1
- import "../../assets/AlertBanner.css";
2
- import { jsx as e, Fragment as c, jsxs as a } from "react/jsx-runtime";
3
- import { Group as p, TypoBody as l } from "@element/react-components";
4
- import { u as m } from "../../useBreakpoint-2MH8ICuE.js";
5
- const d = "_messageContainer_1kpsp_1", _ = "_info_1kpsp_9", g = "_danger_1kpsp_14", u = "_success_1kpsp_19", n = {
6
- messageContainer: d,
7
- info: _,
8
- danger: g,
9
- success: u
10
- }, v = ({ text: s, color: r = "info", isOpen: o = !0, action: i }) => {
11
- const { isDesktop: t } = m();
12
- return o ? /* @__PURE__ */ e("div", { className: `${n.messageContainer} ${n[r]}`, children: /* @__PURE__ */ a(
13
- p,
1
+ import { jsx as r, Fragment as a, jsxs as l } from "react/jsx-runtime";
2
+ import { Group as c, TypoBody as m } from "@element/react-components";
3
+ import { u as p } from "../../useBreakpoint-BNeVhjjZ.js";
4
+ import { s as o } from "../../alertBanner.module-HneYdVzN.js";
5
+ const g = ({ text: e, color: i = "info", isOpen: n = !0, action: s }) => {
6
+ const { isDesktop: t } = p();
7
+ return n ? /* @__PURE__ */ r("div", { className: `${o.messageContainer} ${o[i]}`, children: /* @__PURE__ */ l(
8
+ c,
14
9
  {
15
10
  direction: t ? "horizontal" : "vertical",
16
11
  primaryAlign: "space-between",
17
12
  secondaryAlign: "center",
18
13
  children: [
19
- typeof s == "string" ? /* @__PURE__ */ e(l, { bold: !0, level: 2, children: s }) : /* @__PURE__ */ e("div", { children: s }),
20
- i
14
+ typeof e == "string" ? /* @__PURE__ */ r(m, { bold: !0, level: 2, children: e }) : /* @__PURE__ */ r("div", { children: e }),
15
+ s
21
16
  ]
22
17
  }
23
- ) }) : /* @__PURE__ */ e(c, {});
18
+ ) }) : /* @__PURE__ */ r(a, {});
24
19
  };
25
20
  export {
26
- v as AlertBanner
21
+ g as AlertBanner
27
22
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, Fragment as m } from "react/jsx-runtime";
2
- import { a as t, s } from "../../react.esm-DoZanrUz.js";
3
- import { a as l } from "../../useBreakpoint-2MH8ICuE.js";
2
+ import { a as t, s } from "../../react.esm-C3jDj5Fe.js";
3
+ import { a as l } from "../../useBreakpoint-BNeVhjjZ.js";
4
4
  import { AlertBanner as n } from "./AlertBanner.js";
5
5
  import { d as c, b as p, t as r, g as o, v as a } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
6
  c("AlertBanner Test", () => {
@@ -1,67 +1,64 @@
1
- import "../../assets/BaseView.css";
2
- import { jsx as e, Fragment as w, jsxs as i } from "react/jsx-runtime";
3
- import { Grid as x, GridRow as A, GridCol as a, Group as u } from "@element/react-components";
4
- import { useMemo as l } from "react";
5
- import { BasicHeading as m } from "../BasicHeading/BasicHeading.js";
6
- import { EmptyView as D } from "../EmptyView/EmptyView.js";
7
- import { ListArea as H } from "../ListArea/ListArea.js";
8
- import { VerticalDivider as N } from "../VerticalDivider/VerticalDivider.js";
9
- import { u as V } from "../../useBreakpoint-2MH8ICuE.js";
10
- const W = "_divider_12ecr_1", j = "_truncate_12ecr_5", p = {
11
- divider: W,
12
- truncate: j
13
- }, J = ({
1
+ import { jsx as i, Fragment as x, jsxs as n } from "react/jsx-runtime";
2
+ import { Group as o } from "@element/react-components";
3
+ import { useMemo as s } from "react";
4
+ import { BasicHeading as u } from "../BasicHeading/BasicHeading.js";
5
+ import { EmptyView as L } from "../EmptyView/EmptyView.js";
6
+ import { ListArea as A } from "../ListArea/ListArea.js";
7
+ import { VerticalDivider as V } from "../VerticalDivider/VerticalDivider.js";
8
+ import { u as W } from "../../useBreakpoint-BNeVhjjZ.js";
9
+ import { s as r } from "../../baseView.module-ve87u_d0.js";
10
+ const C = ({
14
11
  action: c,
15
- heading: d,
16
- elements: o,
17
- emptyText: s,
18
- hasSearch: h = !0,
12
+ heading: m,
13
+ elements: l,
14
+ emptyText: d,
15
+ hasSearch: p = !0,
19
16
  isSorted: f = !0,
20
- className: v,
21
- withAvatar: g = !1,
22
- listMaxHeight: C = "calc(100vh - 200px)",
23
- pathname: n,
24
- routerLinkElement: B,
25
- searchPlaceholder: _
17
+ className: h,
18
+ withAvatar: v = !1,
19
+ listMaxHeight: g = "calc(100vh - 200px)",
20
+ pathname: a,
21
+ routerLinkElement: w,
22
+ searchPlaceholder: B
26
23
  }) => {
27
- const { isDesktop: r } = V(), t = l(() => o.find((k) => k.route === n), [n, o]), G = l(() => t?.component ?? (r ? /* @__PURE__ */ e(D, { subtitle: s }) : /* @__PURE__ */ e(w, {})), [t, r, s]), b = l(() => r ? !0 : !t, [t, r]);
28
- return /* @__PURE__ */ e(x, { className: v ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ i(A, { children: [
29
- b && /* @__PURE__ */ e(a, { desktopCol: 3, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ i(u, { direction: "vertical", fullWidth: !0, gap: r ? "standard" : "dense", children: [
30
- d && /* @__PURE__ */ e(m, { heading: d, level: 4, marginBottom: 0, children: c }),
31
- /* @__PURE__ */ e(
32
- H,
24
+ const { isDesktopNavbar: e } = W(), t = s(() => l.find((k) => k.route === a), [a, l]), D = s(() => t?.component ?? (e ? /* @__PURE__ */ i(L, { subtitle: d }) : /* @__PURE__ */ i(x, {})), [t, e, d]), N = s(() => e ? !0 : !t, [t, e]), b = s(() => e ? !0 : t, [t, e]);
25
+ return /* @__PURE__ */ n(o, { className: h ?? "", gap: "", fullWidth: !0, children: [
26
+ N && /* @__PURE__ */ i(o, { gap: "none", className: e ? r.desktopList : r.mobileList, children: /* @__PURE__ */ n(o, { direction: "vertical", fullWidth: !0, gap: e ? "standard" : "dense", children: [
27
+ m && /* @__PURE__ */ i(u, { heading: m, level: 4, marginBottom: 0, children: c }),
28
+ /* @__PURE__ */ i(
29
+ A,
33
30
  {
34
- elements: o,
35
- hasSearch: h,
36
- maxHeight: C,
31
+ elements: l,
32
+ hasSearch: p,
33
+ maxHeight: g,
37
34
  isSorted: f,
38
- pathname: n,
39
- routerLinkElement: B,
40
- searchPlaceholder: _
35
+ pathname: a,
36
+ routerLinkElement: w,
37
+ searchPlaceholder: B
41
38
  }
42
39
  )
43
40
  ] }) }),
44
- /* @__PURE__ */ i(a, { desktopCol: 9, tabletCol: 12, phoneCol: 12, children: [
45
- r && /* @__PURE__ */ e(N, { className: p.divider, height: "100%" }),
46
- /* @__PURE__ */ i(u, { direction: "vertical", fullWidth: !0, children: [
47
- /* @__PURE__ */ e(
48
- m,
41
+ b && /* @__PURE__ */ n(o, { gap: "none", className: e ? r.desktopDetail : r.mobileDetail, children: [
42
+ e && /* @__PURE__ */ i(V, { className: r.divider, height: "100%" }),
43
+ /* @__PURE__ */ n(o, { direction: "vertical", fullWidth: !0, children: [
44
+ /* @__PURE__ */ i(
45
+ u,
49
46
  {
50
- className: p.truncate,
47
+ className: r.truncate,
51
48
  heading: t?.detailTitle ?? t?.title ?? "",
52
49
  level: 4,
53
50
  icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
54
51
  marginBottom: 0,
55
52
  invisibleButton: t?.detailAction === void 0,
56
- withAvatar: g,
53
+ withAvatar: v,
57
54
  children: t?.detailAction ?? c
58
55
  }
59
56
  ),
60
- G
57
+ D
61
58
  ] })
62
59
  ] })
63
- ] }) });
60
+ ] });
64
61
  };
65
62
  export {
66
- J as BaseView
63
+ C as BaseView
67
64
  };
@@ -1,6 +1,6 @@
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-DoZanrUz.js";
3
- import { a as l } from "../../useBreakpoint-2MH8ICuE.js";
2
+ import { a as r, s as e, f as p } from "../../react.esm-C3jDj5Fe.js";
3
+ import { a as l } from "../../useBreakpoint-BNeVhjjZ.js";
4
4
  import { BaseView as i } from "./BaseView.js";
5
5
  import { d as u, b as m, t as n, g as t, v as c } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
6
  u("BaseView Test", () => {
@@ -8,7 +8,8 @@ u("BaseView Test", () => {
8
8
  c.spyOn(l, "useBreakpoints").mockReturnValue({
9
9
  isMobile: !1,
10
10
  isTablet: !1,
11
- isDesktop: !0
11
+ isDesktop: !1,
12
+ isDesktopNavbar: !0
12
13
  });
13
14
  });
14
15
  const o = [
@@ -85,7 +86,8 @@ u("BaseView Test", () => {
85
86
  c.spyOn(l, "useBreakpoints").mockReturnValue({
86
87
  isMobile: !0,
87
88
  isTablet: !1,
88
- isDesktop: !1
89
+ isDesktop: !1,
90
+ isDesktopNavbar: !1
89
91
  }), r(
90
92
  /* @__PURE__ */ a(
91
93
  i,
@@ -1,71 +1,60 @@
1
- import "../../assets/BasicHeading.css";
2
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
3
- import { TypoDisplay as C, TypoBody as w, Icon as u } from "@element/react-components";
4
- import { Iconify as y } from "../Iconify/Iconify.js";
5
- import { AvailableCustomIcons as I } from "../../enums/AvailableCustomIcons.js";
6
- import { u as B } from "../../useBreakpoint-2MH8ICuE.js";
7
- import { OverflowTooltip as N } from "../OverflowTooltip/OverflowTooltip.js";
8
- const H = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", x = "_actionButtonContainer_fwns1_16", A = "_content_fwns1_25", T = "_leadingIcon_fwns1_31", W = "_headingWrapper_fwns1_38", $ = "_headingContainer_fwns1_43", j = "_invisible_fwns1_48", k = "_withAvatar_fwns1_52", z = "_iconContainer_fwns1_57", n = {
9
- pageHeader: H,
10
- headlineContainer: b,
11
- actionButtonContainer: x,
12
- content: A,
13
- leadingIcon: T,
14
- headingWrapper: W,
15
- headingContainer: $,
16
- invisible: j,
17
- withAvatar: k,
18
- iconContainer: z
19
- }, D = ({ icon: e }) => e ? typeof e != "string" ? /* @__PURE__ */ t("div", { className: n.iconContainer, children: e }) : e in I ? /* @__PURE__ */ t(
20
- y,
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { TypoDisplay as g, TypoBody as N, Icon as I } from "@element/react-components";
3
+ import { I as x } from "../../Iconify-CY9lZjFd.js";
4
+ import { AvailableCustomIcons as B } from "../../enums/AvailableCustomIcons.js";
5
+ import { u as C } from "../../useBreakpoint-BNeVhjjZ.js";
6
+ import { OverflowTooltip as T } from "../OverflowTooltip/OverflowTooltip.js";
7
+ import { s as e } from "../../basicHeading.module-BYb8xvuk.js";
8
+ const $ = ({ icon: i }) => i ? typeof i != "string" ? /* @__PURE__ */ t("div", { className: e.iconContainer, children: i }) : i in B ? /* @__PURE__ */ t(
9
+ x,
21
10
  {
22
- icon: e,
23
- className: n.leadingIcon,
11
+ icon: i,
12
+ className: e.leadingIcon,
24
13
  iconSize: "large",
25
14
  iconType: "filled"
26
15
  }
27
- ) : /* @__PURE__ */ t(u, { iconSize: "large", iconType: "filled", icon: e, className: n.leadingIcon }) : null, E = ({
28
- children: e,
29
- marginBottom: i,
16
+ ) : /* @__PURE__ */ t(I, { iconSize: "large", iconType: "filled", icon: i, className: e.leadingIcon }) : null, D = ({
17
+ children: i,
18
+ marginBottom: r,
30
19
  heading: a,
31
20
  icon: d,
32
- className: p,
33
- subHeading: r,
34
- subHeadingLevel: _ = 2,
21
+ className: m,
22
+ subHeading: o,
23
+ subHeadingLevel: p = 2,
35
24
  invisibleButton: f = !1,
36
- level: s = 4,
37
- fontWeight: c = 400,
38
- withAvatar: m = !1
25
+ level: n = 4,
26
+ fontWeight: l = 400,
27
+ withAvatar: y = !1
39
28
  }) => {
40
- const { isDesktop: l } = B(), h = l ? s : s + 1, g = c === "bold" ? 500 : c, v = () => {
41
- if (i !== void 0)
42
- return typeof i == "number" ? `${i}px` : "2rem";
29
+ const { isDesktop: c } = C(), v = c ? n : n + 1, u = l === "bold" ? 500 : l, h = () => {
30
+ if (r !== void 0)
31
+ return typeof r == "number" ? `${r}px` : "2rem";
43
32
  };
44
- return /* @__PURE__ */ o(
33
+ return /* @__PURE__ */ s(
45
34
  "div",
46
35
  {
47
- className: n.pageHeader,
48
- style: { marginBottom: v() },
36
+ className: e.pageHeader,
37
+ style: { marginBottom: h() },
49
38
  "data-testid": "HeaderContainer",
50
39
  children: [
51
- /* @__PURE__ */ o(
40
+ /* @__PURE__ */ s(
52
41
  "div",
53
42
  {
54
- className: `${m && l ? n.withAvatar : ""} ${n.headingWrapper}`,
43
+ className: `${y && c ? e.withAvatar : ""} ${e.headingWrapper}`,
55
44
  children: [
56
- /* @__PURE__ */ t(D, { icon: d }),
57
- /* @__PURE__ */ o("div", { className: r ? n.headingContainer : "", children: [
58
- /* @__PURE__ */ t(N, { id: a, text: a, children: /* @__PURE__ */ t(
59
- C,
45
+ /* @__PURE__ */ t($, { icon: d }),
46
+ /* @__PURE__ */ s("div", { className: o ? e.headingContainer : "", children: [
47
+ /* @__PURE__ */ t(T, { id: a, text: a, children: /* @__PURE__ */ t(
48
+ g,
60
49
  {
61
- level: h,
50
+ level: v,
62
51
  "data-testid": "Header",
63
- className: p ?? "",
64
- style: { fontWeight: g },
52
+ className: m ?? "",
53
+ style: { fontWeight: u },
65
54
  children: a
66
55
  }
67
56
  ) }),
68
- /* @__PURE__ */ t(w, { level: _, children: r })
57
+ /* @__PURE__ */ t(N, { level: p, children: o })
69
58
  ] })
70
59
  ]
71
60
  }
@@ -73,9 +62,9 @@ const H = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", x = "_action
73
62
  /* @__PURE__ */ t(
74
63
  "div",
75
64
  {
76
- className: `${n.actionButtonContainer} ${f && n.invisible}`,
65
+ className: `${e.actionButtonContainer} ${f && e.invisible}`,
77
66
  "data-testid": "RightPart",
78
- children: e
67
+ children: i
79
68
  }
80
69
  )
81
70
  ]
@@ -83,5 +72,5 @@ const H = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", x = "_action
83
72
  );
84
73
  };
85
74
  export {
86
- E as BasicHeading
75
+ D as BasicHeading
87
76
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, Fragment as c } from "react/jsx-runtime";
2
2
  import { Button as g } from "@element/react-components";
3
3
  import { BasicHeading as a } from "./BasicHeading.js";
4
- import { a as i, s as n } from "../../react.esm-DoZanrUz.js";
4
+ import { a as i, s as n } from "../../react.esm-C3jDj5Fe.js";
5
5
  import { d as h, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
6
  h("BasicHeading-Test", () => {
7
7
  s("render small container without content", () => {
@@ -1,73 +1,63 @@
1
- import "../../assets/BlockView.css";
2
- import { jsxs as h, jsx as c } from "react/jsx-runtime";
3
- import { TypoSubtitle as T, TypoDisplay as B } from "@element/react-components";
4
- import { useState as L, useEffect as R, useMemo as C } from "react";
5
- import { getBlockNumberByDto as E } from "../../services/BlockService.js";
6
- const A = "_grid_lihp2_1", D = "_black_lihp2_11", S = "_blockLayout_lihp2_15", V = "_blockRow_lihp2_27", M = "_block_lihp2_15", j = "_active_lihp2_46", q = "_error_lihp2_52", F = "_empty_lihp2_58", G = "_blockText_lihp2_62", o = {
7
- grid: A,
8
- black: D,
9
- blockLayout: S,
10
- blockRow: V,
11
- block: M,
12
- active: j,
13
- error: q,
14
- empty: F,
15
- blockText: G
16
- }, P = ({
1
+ import { jsxs as k, jsx as i } from "react/jsx-runtime";
2
+ import { TypoSubtitle as C, TypoDisplay as E } from "@element/react-components";
3
+ import { useState as A, useEffect as D, useMemo as S } from "react";
4
+ import { getBlockNumberByDto as T } from "../../services/BlockService.js";
5
+ import { s as e } from "../../BlockView.module-BPlNT5uh.js";
6
+ const j = ({
17
7
  rows: s,
18
- columns: e,
19
- hideText: m = !1,
8
+ columns: t,
9
+ hideText: a = !1,
20
10
  errorBlocks: y = [],
21
- showNumbers: v = !0,
22
- clickable: f = !0,
23
- size: b = 15,
24
- onClick: _ = null,
25
- currentBlock: i,
26
- blocks: k,
27
- blockViewTitle: N,
11
+ showNumbers: N = !0,
12
+ clickable: v = !0,
13
+ size: d = 15,
14
+ onClick: u = null,
15
+ currentBlock: c,
16
+ blocks: b,
17
+ blockViewTitle: $,
28
18
  blockLabel: g
29
19
  }) => {
30
- const [p, d] = L(0);
31
- R(() => {
32
- if (!i)
20
+ const [p, h] = A(0);
21
+ D(() => {
22
+ if (!c)
33
23
  return;
34
- const l = E(i, e);
35
- d(l);
36
- }, [i, e]);
37
- const $ = C(() => s * e, [s, e]), w = (l) => {
38
- _ && _(l, i ?? void 0);
39
- }, x = ({ row: l, column: r }) => k.length === 0 ? !0 : k.some((n) => n.position?.row === l && n.position?.column === r);
40
- return /* @__PURE__ */ h("div", { className: o.grid, children: [
41
- !m && /* @__PURE__ */ c(T, { level: 1, bold: !0, className: o.black, children: N }),
42
- /* @__PURE__ */ c("div", { className: o.blockLayout, style: { width: `${b}rem`, height: `${b}rem` }, children: Array.from({ length: s }).map((l, r) => /* @__PURE__ */ c("div", { className: o.blockRow, children: Array.from({ length: e }).map((n, a) => {
43
- const t = e * r + a + 1, u = x({ row: r + 1, column: a + 1 });
44
- return /* @__PURE__ */ c(
24
+ const o = T(c, t);
25
+ h(o);
26
+ }, [c, t]);
27
+ const w = S(() => s * t, [s, t]), x = (o) => {
28
+ u && u(o, c ?? void 0);
29
+ }, B = ({ row: o, column: l }) => b.length === 0 ? !0 : b.some((m) => m.position?.row === o && m.position?.column === l);
30
+ return /* @__PURE__ */ k("div", { className: e.grid, children: [
31
+ !a && /* @__PURE__ */ i(C, { level: 1, bold: !0, className: e.black, children: $ }),
32
+ /* @__PURE__ */ i("div", { className: e.blockLayout, style: { width: `${d}rem`, height: `${d}rem` }, children: Array.from({ length: s }).map((o, l) => /* @__PURE__ */ i("div", { className: e.blockRow, children: Array.from({ length: t }).map((m, n) => {
33
+ const r = t * l + n + 1, f = B({ row: l + 1, column: n + 1 });
34
+ return /* @__PURE__ */ i(
45
35
  "div",
46
36
  {
47
37
  "data-testid": "blockViewBlock",
48
- className: `${o.block} ${p === t ? o.active : ""} ${u ? "" : o.empty} ${y.includes(t) ? o.error : ""}`,
49
- id: `block${t}`,
50
- onClick: f ? () => {
51
- d(t), w({ row: r + 1, column: a + 1 });
38
+ className: `${e.block} ${p === r ? e.active : ""} ${f ? "" : e.empty} ${y.includes(r) ? e.error : ""}`,
39
+ id: `block${r}`,
40
+ onClick: v ? () => {
41
+ h(r), x({ row: l + 1, column: n + 1 });
52
42
  } : void 0,
53
- children: v && u && /* @__PURE__ */ c(
43
+ children: N && f && /* @__PURE__ */ i(
54
44
  "div",
55
45
  {
56
- className: `${o.blockText} ${p === t ? o.black : ""}`,
57
- children: t
46
+ className: `${e.blockText} ${p === r ? e.black : ""}`,
47
+ children: r
58
48
  }
59
49
  )
60
50
  },
61
- t
51
+ r
62
52
  );
63
- }) }, r)) }),
64
- !m && /* @__PURE__ */ h(B, { themeColor: "primary", level: 6, children: [
65
- $,
53
+ }) }, l)) }),
54
+ !a && /* @__PURE__ */ k(E, { themeColor: "primary", level: 6, children: [
55
+ w,
66
56
  " ",
67
57
  g
68
58
  ] })
69
59
  ] });
70
60
  };
71
61
  export {
72
- P as BlockView
62
+ j as BlockView
73
63
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { a as s, s as o, f as n } from "../../react.esm-DoZanrUz.js";
2
+ import { a as s, s as o, f as n } from "../../react.esm-C3jDj5Fe.js";
3
3
  import { BlockView as i } from "./BlockView.js";
4
4
  import { d as B, v as a, t as r, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  B("BlockView Test", () => {
@@ -1,41 +1,39 @@
1
- import "../../assets/ContextMenu.css";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { Menu as c, IconButton as a, List as d, ListItem as f } from "@element/react-components";
4
- import { useState as p, useCallback as s, useEffect as _ } from "react";
5
- import { uniqueId as y } from "lodash";
6
- const C = "_menu_1rfel_1", k = {
7
- menu: C
8
- }, M = ({
9
- triggerOpen: o = null,
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Menu as u, IconButton as c, List as d, ListItem as f } from "@element/react-components";
3
+ import { useState as p, useCallback as s, useEffect as y } from "react";
4
+ import { s as C } from "../../contextMenu.module-B7aUMFPe.js";
5
+ import { uniqueId as k } from "lodash";
6
+ const M = ({
7
+ triggerOpen: n = null,
10
8
  actions: r,
11
- iconOrientation: u = "vertical"
9
+ iconOrientation: a = "vertical"
12
10
  }) => {
13
11
  const [e, t] = p(!1), m = s(() => {
14
12
  t(!e);
15
13
  }, [e]), l = s(() => {
16
14
  t(!1);
17
15
  }, []);
18
- return _(() => {
19
- t(o !== null ? o : !1);
20
- }, [o]), /* @__PURE__ */ n(
21
- c,
16
+ return y(() => {
17
+ t(n !== null ? n : !1);
18
+ }, [n]), /* @__PURE__ */ o(
19
+ u,
22
20
  {
23
- className: k.menu,
21
+ className: C.menu,
24
22
  "data-testid": "selectionmenu",
25
23
  open: e,
26
24
  surfaceOnly: !0,
27
25
  hoistToBody: !0,
28
26
  onClose: l,
29
- trigger: /* @__PURE__ */ n(
30
- a,
27
+ trigger: /* @__PURE__ */ o(
28
+ c,
31
29
  {
32
30
  variant: e ? "filled-primary" : void 0,
33
31
  "data-testid": "openButton",
34
- icon: u === "vertical" ? "more_vert" : "more_horiz",
32
+ icon: a === "vertical" ? "more_vert" : "more_horiz",
35
33
  onClick: m
36
34
  }
37
35
  ),
38
- children: /* @__PURE__ */ n(d, { children: r.map((i) => /* @__PURE__ */ n(
36
+ children: /* @__PURE__ */ o(d, { children: r.map((i) => /* @__PURE__ */ o(
39
37
  f,
40
38
  {
41
39
  ...i,
@@ -45,7 +43,7 @@ const C = "_menu_1rfel_1", k = {
45
43
  i?.onClick?.(), l();
46
44
  }
47
45
  },
48
- y(`LI_${i.primaryText?.toString()}_`)
46
+ k(`LI_${i.primaryText?.toString()}_`)
49
47
  )) })
50
48
  },
51
49
  "selectionmenu"
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { a as d, s as n, f as o, w as a } from "../../react.esm-DoZanrUz.js";
2
+ import { a as d, s as n, f as o, w as a } from "../../react.esm-C3jDj5Fe.js";
3
3
  import { ContextMenu as u } from "./ContextMenu.js";
4
4
  import { v as m, d as g, t as B, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const T = m.fn(), l = m.fn(), i = m.fn(), p = [