@hortiview/shared-components 0.0.11155 → 0.0.11528

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 (134) hide show
  1. package/README.md +41 -8
  2. package/dist/BigLoadingSpinner-D7H28pr5.js +16 -0
  3. package/dist/{GenericCard-B8x1DMa8.js → GenericCard-jlt8ZsHi.js} +18 -19
  4. package/dist/ListAreaService-YS_UUPh5.js +107 -0
  5. package/dist/assets/HashTabView.css +1 -1
  6. package/dist/assets/Select.css +1 -0
  7. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
  8. package/dist/components/AlertBanner/AlertBanner.js +7 -8
  9. package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
  10. package/dist/components/BaseView/BaseView.d.ts +1 -1
  11. package/dist/components/BaseView/BaseView.js +24 -25
  12. package/dist/components/BaseView/BaseView.test.js +25 -25
  13. package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
  14. package/dist/components/BasicHeading/BasicHeading.js +11 -12
  15. package/dist/components/BasicHeading/BasicHeading.test.js +3 -3
  16. package/dist/components/BlockView/BlockView.d.ts +1 -0
  17. package/dist/components/BlockView/BlockView.js +24 -25
  18. package/dist/components/BlockView/BlockView.test.js +2 -2
  19. package/dist/components/ChipCard/ChipCard.js +6 -7
  20. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  21. package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
  22. package/dist/components/ContextMenu/ContextMenu.js +11 -12
  23. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  24. package/dist/components/DeleteModal/DeleteModal.d.ts +6 -2
  25. package/dist/components/DeleteModal/DeleteModal.js +48 -46
  26. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  27. package/dist/components/Disclaimer/Disclaimer.js +9 -10
  28. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  29. package/dist/components/EmptyView/EmptyView.d.ts +1 -0
  30. package/dist/components/EmptyView/EmptyView.js +1 -1
  31. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  32. package/dist/components/Filter/Filter.d.ts +1 -0
  33. package/dist/components/Filter/Filter.js +62 -62
  34. package/dist/components/Filter/Filter.test.js +2 -2
  35. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
  36. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  37. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  38. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
  39. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +629 -630
  40. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  41. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
  42. package/dist/components/FormComponents/FormNumber/CustomTextField.js +11 -12
  43. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
  44. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  45. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  46. package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
  47. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  48. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  49. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
  50. package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
  51. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  52. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
  53. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
  54. package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
  55. package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
  56. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  57. package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
  58. package/dist/components/FormComponents/FormText/FormText.js +14 -15
  59. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  60. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
  61. package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
  62. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
  63. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
  64. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  65. package/dist/components/GenericTable/GenericTable.d.ts +1 -0
  66. package/dist/components/GenericTable/GenericTable.js +23 -24
  67. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  68. package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
  69. package/dist/components/GenericTable/GenericTableService.js +41 -41
  70. package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
  71. package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
  72. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  73. package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
  74. package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
  75. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  76. package/dist/components/HashTabView/HashTabView.d.ts +6 -1
  77. package/dist/components/HashTabView/HashTabView.js +53 -53
  78. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  79. package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
  80. package/dist/components/HeaderFilter/HeaderFilter.js +12 -12
  81. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  82. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +7 -8
  83. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  84. package/dist/components/Iconify/Iconify.d.ts +2 -2
  85. package/dist/components/Iconify/Iconify.js +4 -5
  86. package/dist/components/Iconify/Iconify.test.js +2 -2
  87. package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
  88. package/dist/components/InfoGroup/InfoGroup.js +4 -5
  89. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  90. package/dist/components/ListArea/ListArea.d.ts +1 -1
  91. package/dist/components/ListArea/ListArea.js +2 -2
  92. package/dist/components/ListArea/ListArea.test.js +5 -5
  93. package/dist/components/ListArea/ListAreaService.d.ts +9 -8
  94. package/dist/components/ListArea/ListAreaService.js +2 -2
  95. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  96. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
  97. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -6
  98. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  99. package/dist/components/Modal/Modal.d.ts +2 -1
  100. package/dist/components/Modal/Modal.js +5 -6
  101. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
  102. package/dist/components/OverflowTooltip/OverflowTooltip.js +10 -11
  103. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
  104. package/dist/components/Scrollbar/Scrollbar.js +5 -6
  105. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  106. package/dist/components/SearchBar/SearchBar.js +10 -11
  107. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  108. package/dist/components/Select/Select.d.ts +14 -0
  109. package/dist/components/Select/Select.js +34 -0
  110. package/dist/components/Select/Select.test.d.ts +1 -0
  111. package/dist/components/Select/Select.test.js +28 -0
  112. package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
  113. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  114. package/dist/hooks/useBreakpoints.test.js +2 -2
  115. package/dist/hooks/useHelperText.d.ts +1 -0
  116. package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
  117. package/dist/main.d.ts +2 -0
  118. package/dist/main.js +33 -31
  119. package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
  120. package/dist/react-tooltip.min-Czs4RGD1.js +1400 -0
  121. package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
  122. package/dist/services/BlockService.d.ts +1 -0
  123. package/dist/services/NumberService.d.ts +1 -0
  124. package/dist/services/UtilService.d.ts +1 -0
  125. package/dist/services/services.test.js +1 -1
  126. package/dist/types/GenericTable.d.ts +2 -2
  127. package/dist/types/HashTab.d.ts +0 -1
  128. package/dist/types/ListElement.d.ts +0 -1
  129. package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
  130. package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
  131. package/package.json +15 -15
  132. package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
  133. package/dist/ListAreaService-CRX4eEUJ.js +0 -108
  134. package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
@@ -1,11 +1,10 @@
1
- import "../../assets/BasicHeading.css";
2
1
  import { jsxs as o, jsx as i } from "react/jsx-runtime";
3
- import { TypoDisplay as u, TypoBody as y, Icon as C } from "@element/react-components";
2
+ import { TypoDisplay as u, TypoBody as y, Icon as C } from "@element-public/react-components";
4
3
  import { Iconify as w } from "../Iconify/Iconify.js";
5
4
  import { AvailableCustomIcons as j } from "../../enums/AvailableCustomIcons.js";
6
5
  import { u as I } from "../../useBreakpoints-MzTZ0tCT.js";
7
6
  import { OverflowTooltip as B } from "../OverflowTooltip/OverflowTooltip.js";
8
- const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_leadingIcon_gwnjc_31", x = "_headingWrapper_gwnjc_35", A = "_headingContainer_gwnjc_40", T = "_invisible_gwnjc_45", W = "_withAvatar_gwnjc_49", $ = "_iconContainer_gwnjc_54", n = {
7
+ import '../../assets/BasicHeading.css';const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_leadingIcon_gwnjc_31", x = "_headingWrapper_gwnjc_35", A = "_headingContainer_gwnjc_40", T = "_invisible_gwnjc_45", W = "_withAvatar_gwnjc_49", $ = "_iconContainer_gwnjc_54", n = {
9
8
  pageHeader: N,
10
9
  actionButtonContainer: H,
11
10
  leadingIcon: b,
@@ -22,7 +21,7 @@ const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_le
22
21
  iconSize: "large",
23
22
  iconType: "filled"
24
23
  }
25
- ) : /* @__PURE__ */ i(C, { iconSize: "large", iconType: "filled", icon: e, className: n.leadingIcon }) : null, R = ({
24
+ ) : /* @__PURE__ */ i(C, { iconSize: "large", iconType: "filled", icon: e, className: n.leadingIcon }) : null, P = ({
26
25
  children: e,
27
26
  marginBottom: t,
28
27
  heading: a,
@@ -30,12 +29,12 @@ const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_le
30
29
  className: p,
31
30
  subHeading: r,
32
31
  subHeadingLevel: g = 2,
33
- invisibleButton: m = !1,
32
+ invisibleButton: _ = !1,
34
33
  level: s = 4,
35
34
  fontWeight: c = 400,
36
- withAvatar: _ = !1
35
+ withAvatar: m = !1
37
36
  }) => {
38
- const { isDesktop: l } = I(), f = l ? s : s + 1, h = c === "bold" ? 500 : c, v = () => {
37
+ const { isDesktop: l } = I(), h = l ? s : s + 1, f = c === "bold" ? 500 : c, v = () => {
39
38
  if (t !== void 0)
40
39
  return typeof t == "number" ? `${t}px` : "2rem";
41
40
  };
@@ -49,17 +48,17 @@ const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_le
49
48
  /* @__PURE__ */ o(
50
49
  "div",
51
50
  {
52
- className: `${_ && l ? n.withAvatar : ""} ${n.headingWrapper}`,
51
+ className: `${m && l ? n.withAvatar : ""} ${n.headingWrapper}`,
53
52
  children: [
54
53
  /* @__PURE__ */ i(k, { icon: d }),
55
54
  /* @__PURE__ */ o("div", { className: r ? n.headingContainer : "", children: [
56
55
  /* @__PURE__ */ i(B, { id: a, text: a, children: /* @__PURE__ */ i(
57
56
  u,
58
57
  {
59
- level: f,
58
+ level: h,
60
59
  "data-testid": "Header",
61
60
  className: p ?? "",
62
- style: { fontWeight: h },
61
+ style: { fontWeight: f },
63
62
  children: a
64
63
  }
65
64
  ) }),
@@ -71,7 +70,7 @@ const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_le
71
70
  /* @__PURE__ */ i(
72
71
  "div",
73
72
  {
74
- className: `${n.actionButtonContainer} ${m && n.invisible}`,
73
+ className: `${n.actionButtonContainer} ${_ && n.invisible}`,
75
74
  "data-testid": "RightPart",
76
75
  children: e
77
76
  }
@@ -81,5 +80,5 @@ const N = "_pageHeader_gwnjc_1", H = "_actionButtonContainer_gwnjc_16", b = "_le
81
80
  );
82
81
  };
83
82
  export {
84
- R as BasicHeading
83
+ P as BasicHeading
85
84
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as o, Fragment as c } from "react/jsx-runtime";
2
- import { Button as g } from "@element/react-components";
2
+ import { Button as g } from "@element-public/react-components";
3
3
  import { BasicHeading as a } from "./BasicHeading.js";
4
- import { a as i, s as n } from "../../react.esm-FR1-H8iU.js";
5
- import { d as h, t as s, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { a as i, s as n } from "../../react.esm-DNwojocF.js";
5
+ import { d as h, t as s, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
6
6
  h("BasicHeading-Test", () => {
7
7
  s("render small container without content", () => {
8
8
  i(/* @__PURE__ */ o(a, { heading: "Test" }));
@@ -1,4 +1,5 @@
1
1
  import { Block } from '../../types/internal/Block';
2
+
2
3
  type BlockViewProps<T extends Block> = {
3
4
  /**
4
5
  * number of rows the will be rendered
@@ -1,9 +1,8 @@
1
- import "../../assets/BlockView.css";
2
1
  import { jsxs as h, jsx as c } from "react/jsx-runtime";
3
- import { TypoSubtitle as T, TypoDisplay as L } from "@element/react-components";
2
+ import { TypoSubtitle as T, TypoDisplay as L } from "@element-public/react-components";
4
3
  import { useState as R, useEffect as B, useMemo as C } from "react";
5
4
  import { getBlockNumberByDto as E } from "../../services/BlockService.js";
6
- const A = "_grid_lihp2_1", D = "_black_lihp2_11", S = "_blockLayout_lihp2_15", M = "_blockRow_lihp2_27", V = "_block_lihp2_15", j = "_active_lihp2_46", q = "_error_lihp2_52", F = "_empty_lihp2_58", G = "_blockText_lihp2_62", e = {
5
+ import '../../assets/BlockView.css';const A = "_grid_lihp2_1", D = "_black_lihp2_11", S = "_blockLayout_lihp2_15", M = "_blockRow_lihp2_27", V = "_block_lihp2_15", j = "_active_lihp2_46", q = "_error_lihp2_52", F = "_empty_lihp2_58", G = "_blockText_lihp2_62", o = {
7
6
  grid: A,
8
7
  black: D,
9
8
  blockLayout: S,
@@ -13,13 +12,13 @@ const A = "_grid_lihp2_1", D = "_black_lihp2_11", S = "_blockLayout_lihp2_15", M
13
12
  error: q,
14
13
  empty: F,
15
14
  blockText: G
16
- }, P = ({
17
- rows: n,
18
- columns: t,
15
+ }, O = ({
16
+ rows: s,
17
+ columns: e,
19
18
  hideText: b = !1,
20
19
  errorBlocks: y = [],
21
- showNumbers: f = !0,
22
- clickable: v = !0,
20
+ showNumbers: v = !0,
21
+ clickable: f = !0,
23
22
  size: m = 15,
24
23
  onClick: k = null,
25
24
  currentBlock: i,
@@ -30,34 +29,34 @@ const A = "_grid_lihp2_1", D = "_black_lihp2_11", S = "_blockLayout_lihp2_15", M
30
29
  const [d, p] = R(0);
31
30
  B(() => {
32
31
  if (!i) return;
33
- const l = E(i, t);
32
+ const l = E(i, e);
34
33
  p(l);
35
- }, [i, t]);
36
- const w = C(() => n * t, [n, t]), $ = (l) => {
34
+ }, [i, e]);
35
+ const w = C(() => s * e, [s, e]), $ = (l) => {
37
36
  k && k(l, i ?? void 0);
38
- }, x = ({ row: l, column: r }) => _.length === 0 ? !0 : _.some((s) => s.position?.row === l && s.position?.column === r);
39
- return /* @__PURE__ */ h("div", { "data-testid": "block-view-container", className: e.grid, children: [
40
- !b && /* @__PURE__ */ c(T, { level: 1, bold: !0, className: e.black, children: N }),
41
- /* @__PURE__ */ c("div", { className: e.blockLayout, style: { width: `${m}rem`, height: `${m}rem` }, children: Array.from({ length: n }).map((l, r) => /* @__PURE__ */ c("div", { className: e.blockRow, children: Array.from({ length: t }).map((s, a) => {
42
- const o = t * r + a + 1, u = x({ row: r + 1, column: a + 1 });
37
+ }, x = ({ row: l, column: r }) => _.length === 0 ? !0 : _.some((n) => n.position?.row === l && n.position?.column === r);
38
+ return /* @__PURE__ */ h("div", { "data-testid": "block-view-container", className: o.grid, children: [
39
+ !b && /* @__PURE__ */ c(T, { level: 1, bold: !0, className: o.black, children: N }),
40
+ /* @__PURE__ */ c("div", { className: o.blockLayout, style: { width: `${m}rem`, height: `${m}rem` }, children: Array.from({ length: s }).map((l, r) => /* @__PURE__ */ c("div", { className: o.blockRow, children: Array.from({ length: e }).map((n, a) => {
41
+ const t = e * r + a + 1, u = x({ row: r + 1, column: a + 1 });
43
42
  return /* @__PURE__ */ c(
44
43
  "div",
45
44
  {
46
45
  "data-testid": "block-view-block",
47
- className: `${e.block} ${d === o ? e.active : ""} ${u ? "" : e.empty} ${y.includes(o) ? e.error : ""}`,
48
- id: `block${o}`,
49
- onClick: v ? () => {
50
- p(o), $({ row: r + 1, column: a + 1 });
46
+ className: `${o.block} ${d === t ? o.active : ""} ${u ? "" : o.empty} ${y.includes(t) ? o.error : ""}`,
47
+ id: `block${t}`,
48
+ onClick: f ? () => {
49
+ p(t), $({ row: r + 1, column: a + 1 });
51
50
  } : void 0,
52
- children: f && u && /* @__PURE__ */ c(
51
+ children: v && u && /* @__PURE__ */ c(
53
52
  "div",
54
53
  {
55
- className: `${e.blockText} ${d === o ? e.black : ""}`,
56
- children: o
54
+ className: `${o.blockText} ${d === t ? o.black : ""}`,
55
+ children: t
57
56
  }
58
57
  )
59
58
  },
60
- o
59
+ t
61
60
  );
62
61
  }) }, r)) }),
63
62
  !b && /* @__PURE__ */ h(L, { themeColor: "primary", level: 6, children: [
@@ -68,5 +67,5 @@ const A = "_grid_lihp2_1", D = "_black_lihp2_11", S = "_blockLayout_lihp2_15", M
68
67
  ] });
69
68
  };
70
69
  export {
71
- P as BlockView
70
+ O as BlockView
72
71
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { a as s, s as o, f as n } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as s, s as o, f as n } from "../../react.esm-DNwojocF.js";
3
3
  import { BlockView as i } from "./BlockView.js";
4
- import { d as a, v as B, t as r, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as a, v as B, t as r, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  a("BlockView Test", () => {
6
6
  const c = B.fn(), e = {
7
7
  id: "1",
@@ -1,17 +1,16 @@
1
- import "../../assets/ChipCard.css";
2
1
  import { jsx as i } from "react/jsx-runtime";
3
- import { Card as e, Chips as o } from "@element/react-components";
2
+ import { Card as e, Chips as o } from "@element-public/react-components";
4
3
  import { OverflowTooltip as a } from "../OverflowTooltip/OverflowTooltip.js";
5
- const d = "_entityContainer_1g0x2_1", c = {
4
+ import '../../assets/ChipCard.css';const d = "_entityContainer_1g0x2_1", c = {
6
5
  entityContainer: d
7
- }, C = ({ label: t, icon: r, className: n = "" }) => /* @__PURE__ */ i(
6
+ }, h = ({ label: t, icon: n, className: r = "" }) => /* @__PURE__ */ i(
8
7
  e,
9
8
  {
10
9
  "data-testid": "chip-card",
11
10
  variant: "flat",
12
11
  bodyAlignment: "centered",
13
12
  themeColor: "primary-50",
14
- className: `${c.entityContainer} ${n}`,
13
+ className: `${c.entityContainer} ${r}`,
15
14
  children: /* @__PURE__ */ i(a, { id: `chip_card_${t}`, text: t, children: /* @__PURE__ */ i(
16
15
  o,
17
16
  {
@@ -19,7 +18,7 @@ const d = "_entityContainer_1g0x2_1", c = {
19
18
  chips: [
20
19
  {
21
20
  label: t,
22
- leadingIcon: r
21
+ leadingIcon: n
23
22
  }
24
23
  ],
25
24
  variant: "outlined"
@@ -28,5 +27,5 @@ const d = "_entityContainer_1g0x2_1", c = {
28
27
  }
29
28
  );
30
29
  export {
31
- C as ChipCard
30
+ h as ChipCard
32
31
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { a, s as i } from "../../react.esm-FR1-H8iU.js";
2
+ import { a, s as i } from "../../react.esm-DNwojocF.js";
3
3
  import { ChipCard as n } from "./ChipCard.js";
4
- import { d as s, t as c, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as s, t as c, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  s("ChipCard Component", () => {
6
6
  const r = "Test Label", o = "domain";
7
7
  c("renders the correct label and icon", () => {
@@ -1,4 +1,5 @@
1
- import { ListItemProps } from '@element/react-components';
1
+ import { ListItemProps } from '@element-public/react-components';
2
+
2
3
  type ContextMenuProps = {
3
4
  /**
4
5
  * If not null, the menu will be open
@@ -23,7 +24,7 @@ export type ActionProps = ListItemProps & {
23
24
  * @param {boolean} triggerOpen indicates if the menu should be open
24
25
  * @param {ListItemProps[]} actions list of actions to display in the context menu as ListItems
25
26
  * @recommended `primaryText`, `onClick`, `leadingBlock`
26
- * @requires `ListItemProps` from `@element/react-components`
27
+ * @requires `ListItemProps` from `@element-public/react-components`
27
28
  * @example const actions = [
28
29
  * { primaryText: 'Open', onClick: () => openSomeModal(), leadingBlock: 'add' },
29
30
  * { primaryText: 'Delete', onClick: () => DeleteSomeThing(), leadingBlock: 'delete_outline'},
@@ -1,26 +1,25 @@
1
- import "../../assets/ContextMenu.css";
2
1
  import { jsx as o } from "react/jsx-runtime";
3
- import { Menu as a, List as f, ListItem as d, IconButton as _ } from "@element/react-components";
4
- import { useState as p, useCallback as c, useEffect as I } from "react";
5
- import { uniqueId as v } from "lodash";
6
- const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", i = {
2
+ import { Menu as u, List as f, ListItem as d, IconButton as _ } from "@element-public/react-components";
3
+ import { useState as p, useCallback as c, useEffect as v } from "react";
4
+ import { uniqueId as I } from "lodash";
5
+ import '../../assets/ContextMenu.css';const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", i = {
7
6
  menu: y,
8
7
  icon: C,
9
8
  listItem: k
10
- }, B = ({
9
+ }, b = ({
11
10
  triggerOpen: l = null,
12
11
  actions: m,
13
12
  iconOrientation: r = "vertical"
14
13
  }) => {
15
- const [t, n] = p(!1), u = c(() => {
14
+ const [t, n] = p(!1), a = c(() => {
16
15
  n(!t);
17
16
  }, [t]), s = c(() => {
18
17
  n(!1);
19
18
  }, []);
20
- return I(() => {
19
+ return v(() => {
21
20
  n(l !== null ? l : !1);
22
21
  }, [l]), /* @__PURE__ */ o(
23
- a,
22
+ u,
24
23
  {
25
24
  className: i.menu,
26
25
  "data-testid": "selection-menu",
@@ -35,7 +34,7 @@ const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", i = {
35
34
  variant: t ? "filled-primary" : void 0,
36
35
  "data-testid": "open-button",
37
36
  icon: r === "vertical" ? "more_vert" : "more_horiz",
38
- onClick: u
37
+ onClick: a
39
38
  }
40
39
  ),
41
40
  children: /* @__PURE__ */ o(f, { children: m.map((e) => /* @__PURE__ */ o(
@@ -49,12 +48,12 @@ const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", i = {
49
48
  e?.onClick?.(), e.closeOnClick !== !1 && s();
50
49
  }
51
50
  },
52
- v(`LI_${e.primaryText?.toString()}_`)
51
+ I(`LI_${e.primaryText?.toString()}_`)
53
52
  )) })
54
53
  },
55
54
  "selectionmenu"
56
55
  );
57
56
  };
58
57
  export {
59
- B as ContextMenu
58
+ b as ContextMenu
60
59
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { a as B, s as t, f as o, w as s } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as B, s as t, f as o, w as s } from "../../react.esm-DNwojocF.js";
3
3
  import { ContextMenu as p } from "./ContextMenu.js";
4
- import { v as l, d as k, t as T, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { v as l, d as k, t as T, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  const C = l.fn(), a = l.fn(), i = l.fn(), g = [
6
6
  { primaryText: "Open", onClick: C, leadingBlock: "add" },
7
7
  { primaryText: "Delete", onClick: i, leadingBlock: "delete_outline" },
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type DeleteModalProps = {
3
2
  /**
4
3
  * The title of the modal.
@@ -49,6 +48,10 @@ type DeleteModalProps = {
49
48
  * The function to call when the confirm button is clicked.
50
49
  */
51
50
  onDelete: () => void;
51
+ /**
52
+ * A optional function to call when the cancel button is clicked.
53
+ */
54
+ onCancel?: () => void;
52
55
  /**
53
56
  * If true, the delete button will be enabled.
54
57
  * If false, the delete button will be disabled and the {@link impossibleDeleteHeader} will be displayed.
@@ -70,8 +73,9 @@ type DeleteModalProps = {
70
73
  * @prop {boolean} open - The state of the modal.
71
74
  * @prop {function} setOpen - The function to set the state of the modal.
72
75
  * @prop {function} onDelete - The function to call when the confirm button is clicked.
76
+ * @prop {function} onCancel - A optional function to call when the cancel button is clicked.
73
77
  * @prop {boolean} isDeletePossible - If true, the delete button will be enabled. If false, the delete button will be disabled and the {@link impossibleDeleteHeader} will be displayed. Default is _true_.
74
78
  * @returns {ReactElement} A modal component for deleting items.
75
79
  */
76
- export declare const DeleteModal: ({ title, confirmButtonLabel, cancelButtonLabel, deleteHeader, deleteBody, deleteText, icon, isIconCrossedOut, impossibleDeleteHeader, open, setOpen, onDelete, isDeletePossible, }: DeleteModalProps) => import("react/jsx-runtime").JSX.Element;
80
+ export declare const DeleteModal: ({ title, confirmButtonLabel, cancelButtonLabel, deleteHeader, deleteBody, deleteText, icon, isIconCrossedOut, impossibleDeleteHeader, open, setOpen, onDelete, onCancel, isDeletePossible, }: DeleteModalProps) => import("react/jsx-runtime").JSX.Element;
77
81
  export {};
@@ -1,48 +1,48 @@
1
- import "../../assets/DeleteModal.css";
2
- import { jsx as o, jsxs as p, Fragment as c } from "react/jsx-runtime";
3
- import { Group as i, Button as u, Icon as D, TypoBody as l } from "@element/react-components";
4
- import { uniqueId as I } from "lodash";
5
- import { AvailableCustomIcons as O } from "../../enums/AvailableCustomIcons.js";
6
- import { u as N } from "../../useBreakpoints-MzTZ0tCT.js";
7
- import { Iconify as S } from "../Iconify/Iconify.js";
8
- import { Modal as x } from "../Modal/Modal.js";
9
- const M = "_bulletPoint_1kyg0_1", j = "_modal_1kyg0_6", z = "_colorDanger_1kyg0_10", B = "_crossedOut_1kyg0_14", t = {
10
- bulletPoint: M,
11
- modal: j,
12
- colorDanger: z,
13
- crossedOut: B
1
+ import { jsx as o, jsxs as g, Fragment as c } from "react/jsx-runtime";
2
+ import { Group as i, Button as u, Icon as I, TypoBody as l } from "@element-public/react-components";
3
+ import { uniqueId as O } from "lodash";
4
+ import { AvailableCustomIcons as N } from "../../enums/AvailableCustomIcons.js";
5
+ import { u as S } from "../../useBreakpoints-MzTZ0tCT.js";
6
+ import { Iconify as x } from "../Iconify/Iconify.js";
7
+ import { Modal as M } from "../Modal/Modal.js";
8
+ import '../../assets/DeleteModal.css';const j = "_bulletPoint_1kyg0_1", z = "_modal_1kyg0_6", B = "_colorDanger_1kyg0_10", P = "_crossedOut_1kyg0_14", t = {
9
+ bulletPoint: j,
10
+ modal: z,
11
+ colorDanger: B,
12
+ crossedOut: P
14
13
  }, R = ({
15
- title: e,
16
- confirmButtonLabel: r,
14
+ title: r,
15
+ confirmButtonLabel: e,
17
16
  cancelButtonLabel: n,
18
17
  deleteHeader: a,
19
18
  deleteBody: s,
20
- deleteText: g,
19
+ deleteText: p,
21
20
  icon: f,
22
21
  isIconCrossedOut: h,
23
22
  impossibleDeleteHeader: y,
24
23
  open: b,
25
24
  setOpen: d,
26
25
  onDelete: k,
26
+ onCancel: v,
27
27
  isDeletePossible: m = !0
28
28
  }) => {
29
- const { isDesktop: _ } = N(), v = (C) => {
30
- C.detail.action === "close" && d(!1);
29
+ const { isDesktop: _ } = S(), C = (D) => {
30
+ D.detail.action === "close" && d(!1);
31
31
  };
32
32
  return /* @__PURE__ */ o(
33
- x,
33
+ M,
34
34
  {
35
35
  className: t.modal,
36
36
  modalSize: _ ? "small" : "fullscreen",
37
37
  open: b,
38
- onClose: v,
39
- title: e,
38
+ onClose: C,
39
+ title: r,
40
40
  primaryButton: /* @__PURE__ */ o(
41
41
  u,
42
42
  {
43
43
  "data-testid": "delete-button",
44
44
  variant: "danger",
45
- label: r,
45
+ label: e,
46
46
  onClick: k,
47
47
  disabled: !m
48
48
  }
@@ -53,41 +53,43 @@ const M = "_bulletPoint_1kyg0_1", j = "_modal_1kyg0_6", z = "_colorDanger_1kyg0_
53
53
  "data-testid": "cancel-button",
54
54
  variant: "text",
55
55
  label: n,
56
- onClick: () => d(!1)
56
+ onClick: () => {
57
+ v?.(), d(!1);
58
+ }
57
59
  }
58
60
  ),
59
- children: /* @__PURE__ */ p(i, { direction: "vertical", secondaryAlign: "center", children: [
60
- /* @__PURE__ */ o(P, { element: /* @__PURE__ */ o(A, { icon: f }), isCrossedOut: h }),
61
+ children: /* @__PURE__ */ g(i, { direction: "vertical", secondaryAlign: "center", children: [
62
+ /* @__PURE__ */ o(A, { element: /* @__PURE__ */ o(q, { icon: f }), isCrossedOut: h }),
61
63
  /* @__PURE__ */ o(i, { direction: "vertical", children: m ? /* @__PURE__ */ o(
62
- q,
64
+ F,
63
65
  {
64
66
  deleteHeader: a,
65
- deleteText: g,
67
+ deleteText: p,
66
68
  deleteBody: s
67
69
  }
68
- ) : /* @__PURE__ */ o(F, { impossibleDeleteHeader: y }) })
70
+ ) : /* @__PURE__ */ o(G, { impossibleDeleteHeader: y }) })
69
71
  ] })
70
72
  }
71
73
  );
72
- }, P = ({
73
- element: e,
74
- isCrossedOut: r = !1
75
- }) => r ? /* @__PURE__ */ o("span", { className: t.crossedOut, children: e }) : e, A = ({ icon: e }) => e ? typeof e != "string" ? e : Object.values(O).includes(e) ? /* @__PURE__ */ o(
76
- S,
74
+ }, A = ({
75
+ element: r,
76
+ isCrossedOut: e = !1
77
+ }) => e ? /* @__PURE__ */ o("span", { className: t.crossedOut, children: r }) : r, q = ({ icon: r }) => r ? typeof r != "string" ? r : Object.values(N).includes(r) ? /* @__PURE__ */ o(
78
+ x,
77
79
  {
78
- icon: e,
80
+ icon: r,
79
81
  iconSize: "xlarge",
80
82
  className: t.colorDanger
81
83
  }
82
- ) : /* @__PURE__ */ o(D, { icon: e, iconSize: "xlarge", className: t.colorDanger }) : /* @__PURE__ */ o(c, {}), q = ({
83
- deleteHeader: e,
84
- deleteText: r,
84
+ ) : /* @__PURE__ */ o(I, { icon: r, iconSize: "xlarge", className: t.colorDanger }) : /* @__PURE__ */ o(c, {}), F = ({
85
+ deleteHeader: r,
86
+ deleteText: e,
85
87
  deleteBody: n
86
- }) => /* @__PURE__ */ p(c, { children: [
87
- /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: e }),
88
- r && typeof r == "string" && /* @__PURE__ */ o(l, { level: 2, themeColor: "text-secondary-on-background", children: r }),
89
- r && typeof r != "string" && /* @__PURE__ */ o(c, { children: r }),
90
- n && r === void 0 && /* @__PURE__ */ o(i, { direction: "vertical", gap: "none", children: n.map((a, s) => /* @__PURE__ */ o(
88
+ }) => /* @__PURE__ */ g(c, { children: [
89
+ /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r }),
90
+ e && typeof e == "string" && /* @__PURE__ */ o(l, { level: 2, themeColor: "text-secondary-on-background", children: e }),
91
+ e && typeof e != "string" && /* @__PURE__ */ o(c, { children: e }),
92
+ n && e === void 0 && /* @__PURE__ */ o(i, { direction: "vertical", gap: "none", children: n.map((a, s) => /* @__PURE__ */ o(
91
93
  l,
92
94
  {
93
95
  level: 2,
@@ -95,11 +97,11 @@ const M = "_bulletPoint_1kyg0_1", j = "_modal_1kyg0_6", z = "_colorDanger_1kyg0_
95
97
  themeColor: "text-secondary-on-background",
96
98
  children: a
97
99
  },
98
- I(s.toString())
100
+ O(s.toString())
99
101
  )) })
100
- ] }), F = ({
101
- impossibleDeleteHeader: e
102
- }) => /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: e });
102
+ ] }), G = ({
103
+ impossibleDeleteHeader: r
104
+ }) => /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r });
103
105
  export {
104
106
  R as DeleteModal
105
107
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as c, s as e } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as c, s as e } from "../../react.esm-DNwojocF.js";
3
3
  import { DeleteModal as b } from "./DeleteModal.js";
4
- import { d as B, t as a, v as o, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as B, t as a, v as o, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  B("DeleteModal Test", () => {
6
6
  a("should render the DeleteModal properly", () => {
7
7
  c(
@@ -1,22 +1,21 @@
1
- import "../../assets/Disclaimer.css";
2
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
3
- import { Group as s, TypoSubtitle as t, TypoBody as m, Icon as d } from "@element/react-components";
4
- const p = "_disclaimer_1k38t_1", y = "_iconArea_1k38t_7", c = {
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Group as s, TypoSubtitle as t, TypoBody as m, Icon as d } from "@element-public/react-components";
3
+ import '../../assets/Disclaimer.css';const p = "_disclaimer_1k38t_1", y = "_iconArea_1k38t_7", c = {
5
4
  disclaimer: p,
6
5
  iconArea: y
7
- }, f = ({ text: o, subtext: e, icon: i, level: l = 2, bold: a = !1 }) => /* @__PURE__ */ n(
6
+ }, h = ({ text: l, subtext: r, icon: i, level: o = 2, bold: a = !1 }) => /* @__PURE__ */ n(
8
7
  s,
9
8
  {
10
- direction: i || e ? "vertical" : "horizontal",
9
+ direction: i || r ? "vertical" : "horizontal",
11
10
  secondaryAlign: "center",
12
11
  primaryAlign: "center",
13
12
  children: [
14
- /* @__PURE__ */ r(t, { className: c.disclaimer, level: l, bold: a, children: o }),
15
- e && /* @__PURE__ */ r(m, { level: 2, children: e }),
16
- i && /* @__PURE__ */ r("div", { className: c.iconArea, children: /* @__PURE__ */ r(d, { className: c.Icon, icon: i, iconSize: "large" }) })
13
+ /* @__PURE__ */ e(t, { className: c.disclaimer, level: o, bold: a, children: l }),
14
+ r && /* @__PURE__ */ e(m, { level: 2, children: r }),
15
+ i && /* @__PURE__ */ e("div", { className: c.iconArea, children: /* @__PURE__ */ e(d, { className: c.Icon, icon: i, iconSize: "large" }) })
17
16
  ]
18
17
  }
19
18
  );
20
19
  export {
21
- f as Disclaimer
20
+ h as Disclaimer
22
21
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { a as r, s as t } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as r, s as t } from "../../react.esm-DNwojocF.js";
3
3
  import { Disclaimer as s } from "./Disclaimer.js";
4
- import { d as i, t as m, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as i, t as m, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  i("Disclaimer test", () => {
6
6
  m("should render with default text", () => {
7
7
  r(/* @__PURE__ */ o(s, { text: "disclaimer.default" })), e(t.getByText("disclaimer.default")).toBeInTheDocument();
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  type EmptyViewProps = {
3
4
  /**
4
5
  * The title of the empty view, optional, default is empty string
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { Hero as d, HeroContent as h, Icon as s, TypoBody as i, Group as m } from "@element/react-components";
2
+ import { Hero as d, HeroContent as h, Icon as s, TypoBody as i, Group as m } from "@element-public/react-components";
3
3
  const u = ({
4
4
  title: r = "",
5
5
  subtitle: o = "",
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as s, s as o, w as r, f as l } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as s, s as o, w as r, f as l } from "../../react.esm-DNwojocF.js";
3
3
  import { EmptyView as c } from "./EmptyView.js";
4
- import { d as h, t as T, g as e, v as d } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as h, t as T, g as e, v as d } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  h("EmptyView", () => {
6
6
  T("should render", () => {
7
7
  s(/* @__PURE__ */ n(c, {})), e(o.getByText("dashbord")).toBeInTheDocument();
@@ -1,4 +1,5 @@
1
1
  import { FilterData, FilterSelection } from '../../types/Filter';
2
+
2
3
  type FilterProps = {
3
4
  modalCancelButtonText: string;
4
5
  modalConfirmButtonText: string;