@hortiview/shared-components 1.10.0 → 1.12.0

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 (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +43 -1
  3. package/dist/{BigLoadingSpinner-CqSGYzZA.js → BigLoadingSpinner-BbXMCKpm.js} +3 -3
  4. package/dist/{GenericCard-CelFEWlW.js → GenericCard-DuNnB9Ve.js} +1 -1
  5. package/dist/{ListAreaService-DOwtdRa4.js → ListAreaService-Wq9IkwWN.js} +6 -6
  6. package/dist/assets/GenericTable.css +1 -1
  7. package/dist/assets/stepper.css +1 -0
  8. package/dist/components/AlertBanner/AlertBanner.js +3 -3
  9. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  10. package/dist/components/BaseView/BaseView.test.js +1 -1
  11. package/dist/components/BasicHeading/BasicHeading.js +1 -1
  12. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  13. package/dist/components/BlockView/BlockView.js +1 -1
  14. package/dist/components/BlockView/BlockView.test.js +1 -1
  15. package/dist/components/ChipCard/ChipCard.test.js +1 -1
  16. package/dist/components/ContextMenu/ContextMenu.js +1 -1
  17. package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
  18. package/dist/components/DeleteModal/DeleteModal.js +1 -1
  19. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  21. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  22. package/dist/components/EmptyView/EmptyView.js +9 -9
  23. package/dist/components/EmptyView/EmptyView.test.js +5 -5
  24. package/dist/components/Filter/Filter.js +1 -1
  25. package/dist/components/Filter/Filter.test.js +1 -1
  26. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  27. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
  28. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +6 -6
  29. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +1 -1
  30. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
  31. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +1 -1
  32. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +1 -1
  33. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +4 -4
  34. package/dist/components/FormComponents/FormText/FormText.js +1 -1
  35. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  36. package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
  37. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +1 -1
  38. package/dist/components/GenericTable/GenericTable.d.ts +4 -1
  39. package/dist/components/GenericTable/GenericTable.js +1591 -1578
  40. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  41. package/dist/components/GenericTable/GenericTableService.js +13 -12
  42. package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
  43. package/dist/components/GenericTable/Mobile/GenericCard.test.js +2 -2
  44. package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
  45. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +1 -1
  46. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  47. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  48. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  49. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +1 -1
  50. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +1 -1
  51. package/dist/components/Iconify/Iconify.test.js +1 -1
  52. package/dist/components/InfoGroup/InfoGroup.js +1 -1
  53. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  54. package/dist/components/ListArea/ListArea.js +2 -2
  55. package/dist/components/ListArea/ListArea.test.js +3 -3
  56. package/dist/components/ListArea/ListAreaService.js +2 -2
  57. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  58. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +2 -2
  59. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +7 -7
  60. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  61. package/dist/components/Modal/Modal.js +1 -1
  62. package/dist/components/ModulePadding/ModulePadding.test.js +1 -1
  63. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  64. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
  65. package/dist/components/Scrollbar/scrollbar.test.js +1 -1
  66. package/dist/components/SearchBar/SearchBar.d.ts +4 -14
  67. package/dist/components/SearchBar/SearchBar.js +13 -12
  68. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  69. package/dist/components/Select/Select.js +1 -1
  70. package/dist/components/Select/Select.test.js +1 -1
  71. package/dist/components/Stepper/Stepper.d.ts +16 -0
  72. package/dist/components/Stepper/Stepper.js +54 -0
  73. package/dist/components/Stepper/Stepper.test.d.ts +1 -0
  74. package/dist/components/Stepper/Stepper.test.js +95 -0
  75. package/dist/components/Stepper/components/StepperButton.d.ts +25 -0
  76. package/dist/components/Stepper/components/StepperButton.js +44 -0
  77. package/dist/components/Stepper/components/StepperHeader.d.ts +9 -0
  78. package/dist/components/Stepper/components/StepperHeader.js +34 -0
  79. package/dist/components/Stepper/components/StepperIndicator.d.ts +9 -0
  80. package/dist/components/Stepper/components/StepperIndicator.js +16 -0
  81. package/dist/components/Stepper/stepperTypes.d.ts +77 -0
  82. package/dist/components/Stepper/stepperTypes.js +1 -0
  83. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  84. package/dist/hooks/useBreakpoints.test.js +1 -1
  85. package/dist/{index.es-UHKFl8Da.js → index.es-BNHI3ZIK.js} +2 -2
  86. package/dist/{index.es-zr101OF5.js → index.es-CoFul5zR.js} +2 -2
  87. package/dist/{index.es-CF_xy2ns.js → index.es-D54RuMc_.js} +2 -2
  88. package/dist/{index.es-d5xhUpJZ.js → index.es-fnFnw2P1.js} +1 -1
  89. package/dist/main.d.ts +6 -2
  90. package/dist/main.js +51 -45
  91. package/dist/services/services.test.js +1 -1
  92. package/dist/stepper.module-HuqmDJPj.js +12 -0
  93. package/dist/types/GenericTable.d.ts +15 -0
  94. package/dist/{vi.CjhMlMwf-BCJNwXvu.js → vi.CjhMlMwf-CKxPQtd6.js} +2 -2
  95. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [1.12.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.11.0...v1.12.0) (2025-06-02)
2
+
3
+ ### Features
4
+
5
+ * add fullWidth prop to SearchBar component for customizable width ([8ac95ad](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/8ac95ad120740a15d33083d31a6ed32dad600eba))
6
+
7
+ ### Code Refactoring
8
+
9
+ * add additional props tableActionPosition, tableElevationLevel to generic table ([e095294](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/e095294e3438f9908b98ffeebca5ecc00aced161))
10
+
11
+ ## [1.11.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.10.0...v1.11.0) (2025-05-28)
12
+
13
+ ### Features
14
+
15
+ * introduce stepper component ([4519232](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/4519232b157fef0ee86b2b4fae99cf06a50a4754))
16
+ * move button props to steps ([9237df3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/9237df37c46015e4f869c87d4aa3d094bbcec2f1))
17
+ * update stepper to include buttons and content ([e5af269](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/e5af26940f06d1b3035075b0045d91f96f6cad3e))
18
+
1
19
  ## [1.10.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.9.0...v1.10.0) (2025-05-26)
2
20
 
3
21
  ### Features
package/README.md CHANGED
@@ -55,6 +55,7 @@ Additionally the library provides form components using [react-hook-form](https:
55
55
  1. [ScrollBar](#scrollbar)
56
56
  1. [SearchBar](#searchbar)
57
57
  1. [Select](#select)
58
+ 1. [Stepper](#stepper)
58
59
  1. [VerticalDivider](#verticaldivider)
59
60
 
60
61
  ## Available Utility Functions:
@@ -859,7 +860,7 @@ Provides the normal Element modal with one additional change. If you are on full
859
860
  This will set the modal size on an area between the mobile controls.
860
861
 
861
862
  The modal also includes a custom header, which has a close button of type `button`.
862
- The base Element design button has type `submit`, which breaks forms inside of the modal.
863
+ The base Element design button has type `submit`, which breaks forms inside of the modal.
863
864
  Please provide `onClose` and `title` props to get it work properly.
864
865
 
865
866
  ```jsx
@@ -964,6 +965,47 @@ import { Select } from '@hortiview/shared-components';
964
965
  />;
965
966
  ```
966
967
 
968
+ ### Stepper
969
+
970
+ Provides a simple stepper component, which contains the step indicators, a title text and buttons to navigate forwards and backwards.
971
+ Be aware that you need to control the Stepper flow by your own, like:
972
+
973
+ ```jsx
974
+ import { Step, Stepper } from '@hortiview/shared-components';
975
+
976
+ const steps: Step[] = [
977
+ {
978
+ name: 'first',
979
+ step: 0,
980
+ title: 'First Step',
981
+ optional: false,
982
+ },
983
+ {
984
+ name: 'second',
985
+ step: 1,
986
+ title: 'Second Step',
987
+ optional: true,
988
+ },
989
+ ];
990
+
991
+ const [currentStep, setCurrentStep] = useState(0);
992
+
993
+ <Stepper
994
+ steps={steps}
995
+ currentStep={currentStep}
996
+ nextButtonProps={{
997
+ label: currentStep < args.steps.length - 1 ? 'Next' : 'Finish',
998
+ onClick: () =>
999
+ currentStep < args.steps.length - 1
1000
+ ? setCurrentStep(currentStep + 1)
1001
+ : setCurrentStep(args.steps.length - 1),
1002
+ }}
1003
+ prevButtonProps={{
1004
+ onClick: () => (currentStep > 0 ? setCurrentStep(currentStep - 1) : setCurrentStep(0)),
1005
+ }}
1006
+ />;
1007
+ ```
1008
+
967
1009
  ### VerticalDivider
968
1010
 
969
1011
  Provides a simple vertical divider.
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
- import { b as r } from "./index.es-CF_xy2ns.js";
2
+ import { T as r } from "./index.es-D54RuMc_.js";
3
3
  import { Iconify as d } from "./components/Iconify/Iconify.js";
4
4
  import './assets/BigLoadingSpinner.css';const e = "_loadingBigOverlay_7dxo1_1", s = "_bigLoadSpinnerCard_7dxo1_12", g = "_bigLoadSpinnerCardText_7dxo1_27", t = "_logo_7dxo1_33", o = {
5
5
  loadingBigOverlay: e,
@@ -9,8 +9,8 @@ import './assets/BigLoadingSpinner.css';const e = "_loadingBigOverlay_7dxo1_1",
9
9
  }, l = ({ text: a }) => /* @__PURE__ */ n("div", { className: o.bigLoadSpinnerCard, role: "progressbar", "data-testid": "loading-spinner", children: [
10
10
  /* @__PURE__ */ i(d, { icon: "hortiview", className: o.logo, "data-testid": "logo-icon" }),
11
11
  /* @__PURE__ */ i(r, { tag: "p", bold: !0, level: 1, className: o.bigLoadSpinnerCardText, children: a })
12
- ] }), _ = (a) => /* @__PURE__ */ i("div", { "data-testid": "big-loading-spinner", className: o.loadingBigOverlay, children: /* @__PURE__ */ i(l, { ...a }) });
12
+ ] }), b = (a) => /* @__PURE__ */ i("div", { "data-testid": "big-loading-spinner", className: o.loadingBigOverlay, children: /* @__PURE__ */ i(l, { ...a }) });
13
13
  export {
14
- _ as B,
14
+ b as B,
15
15
  o as s
16
16
  };
@@ -3,7 +3,7 @@ import { C as W, a as z, b as D, c as E, d as M } from "./index.es-6TJ1S8Jr.js";
3
3
  import { c as x, _ as P, P as e } from "./identity-DLWZln-X.js";
4
4
  import b, { forwardRef as $, useMemo as f, useRef as j, useImperativeHandle as q, createContext as F, useContext as I } from "react";
5
5
  import { d as U } from "./index.es-da0cf7oE.js";
6
- import { d as O } from "./index.es-CF_xy2ns.js";
6
+ import { d as O } from "./index.es-D54RuMc_.js";
7
7
  import { OverflowTooltip as k } from "./components/OverflowTooltip/OverflowTooltip.js";
8
8
  import './assets/GenericCard.css';const R = /* @__PURE__ */ F({}), V = {
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as z } from "react/jsx-runtime";
2
- import { G as b } from "./index.es-DntoATwO.js";
3
- import { I as B } from "./index.es-3043KTnb.js";
4
- import { c as C, d as N, b as O } from "./index.es-CF_xy2ns.js";
2
+ import { G as B } from "./index.es-DntoATwO.js";
3
+ import { I as C } from "./index.es-3043KTnb.js";
4
+ import { c as b, d as N, T as O } from "./index.es-D54RuMc_.js";
5
5
  import { Iconify as $ } from "./components/Iconify/Iconify.js";
6
6
  import { AvailableCustomIcons as k } from "./enums/AvailableCustomIcons.js";
7
7
  import './assets/ListAreaService.css';const E = "_fullWidth_zewqs_1", j = "_mainElevation_zewqs_5", G = "_searchbar_zewqs_11", W = "_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", n = {
@@ -21,7 +21,7 @@ import './assets/ListAreaService.css';const E = "_fullWidth_zewqs_1", j = "_main
21
21
  const i = t.reduce((o, c) => {
22
22
  const { groupName: e, ...m } = c;
23
23
  return !e || typeof e != "string" || (o[e] || (o[e] = {
24
- groupName: /* @__PURE__ */ r(C, { children: e }),
24
+ groupName: /* @__PURE__ */ r(b, { children: e }),
25
25
  id: e,
26
26
  items: []
27
27
  }), o[e].items = [
@@ -54,7 +54,7 @@ import './assets/ListAreaService.css';const E = "_fullWidth_zewqs_1", j = "_main
54
54
  key: i,
55
55
  select: u,
56
56
  primaryText: i,
57
- secondaryText: /* @__PURE__ */ z(b, { direction: "vertical", gap: "none", children: [
57
+ secondaryText: /* @__PURE__ */ z(B, { direction: "vertical", gap: "none", children: [
58
58
  T ?? /* @__PURE__ */ r(
59
59
  N,
60
60
  {
@@ -84,7 +84,7 @@ import './assets/ListAreaService.css';const E = "_fullWidth_zewqs_1", j = "_main
84
84
  children: _
85
85
  }
86
86
  ) : void 0,
87
- trailingBlock: I ?? f ?? /* @__PURE__ */ r(B, { icon: "arrow_right", className: n.iconColor }),
87
+ trailingBlock: I ?? f ?? /* @__PURE__ */ r(C, { icon: "arrow_right", className: n.iconColor }),
88
88
  leadingBlock: K(g),
89
89
  value: m,
90
90
  componentProps: {
@@ -1 +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}
1
+ ._topBar_1tmb3_1 [class*=lmnt-table__top-bar__title]{display:none}._filterBar_1tmb3_5{padding:1rem;width:inherit!important}._start_1tmb3_10{padding-top:0;padding-bottom:0}._emptyTable_1tmb3_15{height:16rem}[class*=mnt-pagination][class*=mdc-data-table__pagination]{border-top:1px solid var(--lmnt-theme-on-secondary-stroke)}._elevation_1tmb3_23{border-radius:.4rem;width:100%}._table_1tmb3_28,._table_1tmb3_28 [class*=mdc-data-table__table-container]{border-radius:.4rem}._noBorder_1tmb3_36{border:none}
@@ -0,0 +1 @@
1
+ ._stepperIndicatorItem_78nle_1{height:var(--lmnt-stepper-indicator__size);width:var(--lmnt-stepper-indicator__size);background-color:#c7c7c7;border-radius:50%}._stepperIndicatorItemActive_78nle_8{background-color:var(--lmnt-theme-primary)}._stepperIndicatorItemOptional_78nle_12{border:1.5px dashed #7e7e7e}._stepperContainer_78nle_16{background-color:var(--lmnt-theme-primary-50);border:1px solid var(--lmnt-theme-on-surface-stroke);border-radius:.25rem;padding:.75rem 1rem}._stepperTitle_78nle_23{text-align:center;color:var(--lmnt-theme-on-secondary-inactive)}._stepperButton_78nle_28{margin-bottom:0}._stepperButtonLoading_78nle_32{padding-top:.375rem!important;padding-bottom:.375rem!important}._stepperButtonLoading_78nle_32 svg{stroke:var(--lmnt-theme-white)!important}
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, Fragment as a, jsxs as t } from "react/jsx-runtime";
2
2
  import { G as l } from "../../index.es-DntoATwO.js";
3
3
  import { I as _ } from "../../index.es-3043KTnb.js";
4
- import { b as m } from "../../index.es-CF_xy2ns.js";
4
+ import { T as m } from "../../index.es-D54RuMc_.js";
5
5
  import '../../assets/AlertBanner.css';const d = "_messageContainer_1i2s1_1", g = "_info_1i2s1_9", p = "_danger_1i2s1_14", f = "_success_1i2s1_19", u = "_warning_1i2s1_24", y = "_closeIcon_1i2s1_29", e = {
6
6
  messageContainer: d,
7
7
  info: g,
@@ -9,7 +9,7 @@ import '../../assets/AlertBanner.css';const d = "_messageContainer_1i2s1_1", g =
9
9
  success: f,
10
10
  warning: u,
11
11
  closeIcon: y
12
- }, C = ({
12
+ }, b = ({
13
13
  text: s,
14
14
  color: r = "info",
15
15
  isOpen: i = !0,
@@ -20,5 +20,5 @@ import '../../assets/AlertBanner.css';const d = "_messageContainer_1i2s1_1", g =
20
20
  o && /* @__PURE__ */ n(_, { icon: "close", iconSize: "small", onClick: o, className: e.closeIcon })
21
21
  ] }) }) : /* @__PURE__ */ n(a, {});
22
22
  export {
23
- C as AlertBanner
23
+ b as AlertBanner
24
24
  };
@@ -2,7 +2,7 @@ import { jsx as e, Fragment as m } from "react/jsx-runtime";
2
2
  import { a as t, s } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { a as o } from "../../useBreakpoints-MzTZ0tCT.js";
4
4
  import { AlertBanner as n } from "./AlertBanner.js";
5
- import { d as p, b as c, v as l, t as r, g as a } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as p, b as c, a as l, t as r, g as a } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  p("AlertBanner Test", () => {
7
7
  c(() => {
8
8
  l.spyOn(o, "useBreakpoints").mockReturnValue({
@@ -2,7 +2,7 @@ import { jsx as a, Fragment as s } from "react/jsx-runtime";
2
2
  import { a as r, s as e, f as p } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { a as l } from "../../useBreakpoints-MzTZ0tCT.js";
4
4
  import { BaseView as i } from "./BaseView.js";
5
- import { d as u, b as m, v as c, t as n, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as u, b as m, a as c, t as n, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  u("BaseView Test", () => {
7
7
  m(() => {
8
8
  c.spyOn(l, "useBreakpoints").mockReturnValue({
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
2
  import { I as u } from "../../index.es-3043KTnb.js";
3
- import { T as y, b as C } from "../../index.es-CF_xy2ns.js";
3
+ import { b as y, T as C } from "../../index.es-D54RuMc_.js";
4
4
  import { Iconify as w } from "../Iconify/Iconify.js";
5
5
  import { AvailableCustomIcons as j } from "../../enums/AvailableCustomIcons.js";
6
6
  import { u as I } from "../../useBreakpoints-MzTZ0tCT.js";
@@ -2,7 +2,7 @@ import { jsx as o, Fragment as c } from "react/jsx-runtime";
2
2
  import { B as g } from "../../index.es-CiqbARoC.js";
3
3
  import { a, s as n } from "../../react.esm-CX1WJ2Pp.js";
4
4
  import { BasicHeading as i } from "./BasicHeading.js";
5
- import { d as h, t as s, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as h, t as s, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  h("BasicHeading-Test", () => {
7
7
  s("render small container without content", () => {
8
8
  a(/* @__PURE__ */ o(i, { heading: "Test" }));
@@ -1,5 +1,5 @@
1
1
  import { jsxs as v, jsx as t, Fragment as h } from "react/jsx-runtime";
2
- import { d as C, T as R, a as B } from "../../index.es-CF_xy2ns.js";
2
+ import { d as C, b as R, a as B } from "../../index.es-D54RuMc_.js";
3
3
  import { useState as A, useEffect as D, useMemo as S } from "react";
4
4
  import { getBlockNumberByDto as F } from "../../services/BlockService.js";
5
5
  import '../../assets/BlockView.css';const M = "_grid_17o13_1", V = "_black_17o13_11", j = "_blockLayout_17o13_15", q = "_blockRow_17o13_26", G = "_block_17o13_15", H = "_active_17o13_45", I = "_error_17o13_51", J = "_empty_17o13_57", K = "_blockText_17o13_61", O = "_emptyLayout_17o13_70", o = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { a as s, s as o, f as n } from "../../react.esm-CX1WJ2Pp.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-BCJNwXvu.js";
4
+ import { d as a, a as B, t as r, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  a("BlockView Test", () => {
6
6
  const c = B.fn(), e = {
7
7
  id: "1",
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { a, s as i } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { ChipCard as n } from "./ChipCard.js";
4
- import { d as s, t as c, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as s, t as c, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  s("ChipCard Component", () => {
6
6
  const r = "Test Label", o = "domain";
7
7
  c("renders the correct label and icon", () => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { I as f } from "../../index.es-0lQcz8m1.js";
3
- import { M as d, L as _, a as p } from "../../index.es-d5xhUpJZ.js";
3
+ import { M as d, L as _, a as p } from "../../index.es-fnFnw2P1.js";
4
4
  import { useState as I, useCallback as a, useEffect as v } from "react";
5
5
  import { u as C } from "../../uniqueId-NU3-C36A.js";
6
6
  import '../../assets/ContextMenu.css';const k = "_menu_ol91v_1", y = "_icon_ol91v_5", M = "_listItem_ol91v_9", l = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { a as B, s as t, f as o, w as s } from "../../react.esm-CX1WJ2Pp.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-BCJNwXvu.js";
4
+ import { a as l, d as k, t as T, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.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" },
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as p, Fragment as i } from "react/jsx-runtime";
2
2
  import { B as u } from "../../index.es-CiqbARoC.js";
3
3
  import { G as c } from "../../index.es-DntoATwO.js";
4
4
  import { I as D } from "../../index.es-3043KTnb.js";
5
- import { b as l } from "../../index.es-CF_xy2ns.js";
5
+ import { T as l } from "../../index.es-D54RuMc_.js";
6
6
  import { u as k } from "../../uniqueId-NU3-C36A.js";
7
7
  import { AvailableCustomIcons as I } from "../../enums/AvailableCustomIcons.js";
8
8
  import { u as N } from "../../useBreakpoints-MzTZ0tCT.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as c, s as e } from "../../react.esm-CX1WJ2Pp.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-BCJNwXvu.js";
4
+ import { d as B, t as a, a as o, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  B("DeleteModal Test", () => {
6
6
  a("should render the DeleteModal properly", () => {
7
7
  c(
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import { G as n } from "../../index.es-DntoATwO.js";
3
3
  import { I as t } from "../../index.es-3043KTnb.js";
4
- import { d as m, b as d } from "../../index.es-CF_xy2ns.js";
4
+ import { d as m, T as d } from "../../index.es-D54RuMc_.js";
5
5
  import '../../assets/Disclaimer.css';const p = "_disclaimer_1k38t_1", y = "_iconArea_1k38t_7", a = {
6
6
  disclaimer: p,
7
7
  iconArea: y
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { a as r, s as t } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { Disclaimer as s } from "./Disclaimer.js";
4
- import { d as i, t as m, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as i, t as m, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.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,8 +1,8 @@
1
1
  import { jsx as m, jsxs as $ } from "react/jsx-runtime";
2
2
  import { G as _ } from "../../index.es-DntoATwO.js";
3
- import { c as P, _ as C, P as e } from "../../identity-DLWZln-X.js";
4
- import c, { forwardRef as T, useRef as w, useImperativeHandle as H, useMemo as y } from "react";
5
- import { e as N, b as O } from "../../index.es-CF_xy2ns.js";
3
+ import { c as P, _ as T, P as e } from "../../identity-DLWZln-X.js";
4
+ import c, { forwardRef as C, useRef as w, useImperativeHandle as H, useMemo as y } from "react";
5
+ import { e as N, T as O } from "../../index.es-D54RuMc_.js";
6
6
  import { I as B } from "../../index.es-3043KTnb.js";
7
7
  const j = {
8
8
  /**
@@ -157,7 +157,7 @@ const j = {
157
157
  className: void 0,
158
158
  overlayThemeColor: "dark",
159
159
  position: "full"
160
- }, f = /* @__PURE__ */ T((r, o) => {
160
+ }, f = /* @__PURE__ */ C((r, o) => {
161
161
  const {
162
162
  children: a,
163
163
  className: l,
@@ -167,14 +167,14 @@ const j = {
167
167
  } = r, s = w();
168
168
  H(o, () => s.current, []);
169
169
  const d = y(() => n !== "none" && P("lmnt", "lmnt-hero-overlay ", !t.includes("gradient") && t !== "surface" && `lmnt-hero-overlay__${t}`, t.includes("gradient") && t !== "surface" && `lmnt-theme--bg-${t}`, t === "surface" && "lmnt-theme-surface-bg", `lmnt-hero-overlay__${n}`, l), [t, n, l]);
170
- return /* @__PURE__ */ c.createElement("div", C({
170
+ return /* @__PURE__ */ c.createElement("div", T({
171
171
  className: d
172
172
  }, i), a && a);
173
173
  });
174
174
  f.displayName = "HeroOverlay";
175
175
  f.propTypes = R;
176
176
  f.defaultProps = U;
177
- const v = /* @__PURE__ */ T((r, o) => {
177
+ const v = /* @__PURE__ */ C((r, o) => {
178
178
  const {
179
179
  alignment: a,
180
180
  children: l,
@@ -191,7 +191,7 @@ const v = /* @__PURE__ */ T((r, o) => {
191
191
  ...i,
192
192
  backgroundImage: `url(${t})`
193
193
  } : i, [t, i]);
194
- return /* @__PURE__ */ c.createElement("div", C({
194
+ return /* @__PURE__ */ c.createElement("div", T({
195
195
  ref: p,
196
196
  className: k,
197
197
  style: h
@@ -200,7 +200,7 @@ const v = /* @__PURE__ */ T((r, o) => {
200
200
  v.displayName = "Hero";
201
201
  v.propTypes = j;
202
202
  v.defaultProps = A;
203
- const b = /* @__PURE__ */ T((r, o) => {
203
+ const b = /* @__PURE__ */ C((r, o) => {
204
204
  const {
205
205
  children: a,
206
206
  className: l,
@@ -219,7 +219,7 @@ const b = /* @__PURE__ */ T((r, o) => {
219
219
  ...g,
220
220
  padding: s
221
221
  }), [s, g]);
222
- return /* @__PURE__ */ c.createElement("div", C({
222
+ return /* @__PURE__ */ c.createElement("div", T({
223
223
  ref: h,
224
224
  className: E
225
225
  }, k, {
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as s, s as o, w as r, f as l } from "../../react.esm-CX1WJ2Pp.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-BCJNwXvu.js";
4
+ import { d as h, t as T, g as e, a } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  h("EmptyView", () => {
6
6
  T("should render", () => {
7
7
  s(/* @__PURE__ */ n(c, {})), e(o.getByText("dashbord")).toBeInTheDocument();
@@ -16,12 +16,12 @@ h("EmptyView", () => {
16
16
  const t = o.getByText("SUB_TITLE");
17
17
  e(t).toBeInTheDocument(), e(t).toHaveClass(/headline6/);
18
18
  }), T("should render with an action", async () => {
19
- const t = d.fn();
19
+ const t = a.fn();
20
20
  s(/* @__PURE__ */ n(c, { icon: "add", action: /* @__PURE__ */ n("button", { onClick: t, children: "BUTTON" }) }));
21
21
  const i = o.getByText("BUTTON");
22
22
  e(i).toBeInTheDocument(), await r(() => l.click(i)), e(t).toHaveBeenCalledTimes(1);
23
23
  }), T("should render with a text and a button", async () => {
24
- const t = d.fn();
24
+ const t = a.fn();
25
25
  s(
26
26
  /* @__PURE__ */ n(
27
27
  c,
@@ -34,8 +34,8 @@ h("EmptyView", () => {
34
34
  );
35
35
  const i = o.getByText("BUTTON");
36
36
  e(i).toBeInTheDocument();
37
- const a = o.getByText("MY_TEXT");
38
- e(a).toBeInTheDocument();
37
+ const d = o.getByText("MY_TEXT");
38
+ e(d).toBeInTheDocument();
39
39
  }), T("should render with text only", async () => {
40
40
  s(
41
41
  /* @__PURE__ */ n(
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as b, Fragment as D } from "react/jsx-runtime";
2
- import { N as F } from "../../index.es-d5xhUpJZ.js";
2
+ import { N as F } from "../../index.es-fnFnw2P1.js";
3
3
  import { B as h } from "../../index.es-CiqbARoC.js";
4
4
  import { G as _ } from "../../index.es-DntoATwO.js";
5
5
  import { I as W } from "../../index.es-0lQcz8m1.js";
@@ -3,7 +3,7 @@ import { a, s as t, f as u, w as d } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { act as c } from "react";
4
4
  import { a as s } from "../../useBreakpoints-MzTZ0tCT.js";
5
5
  import { Filter as T } from "./Filter.js";
6
- import { v as m, b as f, d as y, t as B, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
6
+ import { a as m, b as f, d as y, t as B, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.js";
7
7
  const o = m.fn();
8
8
  f(() => {
9
9
  m.spyOn(s, "useBreakpoints").mockReturnValue({
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { a as s, s as r, f as h } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormCheckBox as n } from "./FormCheckBox.js";
4
- import { v as e, d as m, t as c, g as o } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a as e, d as m, t as c, g as o } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const l = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -1,6 +1,6 @@
1
1
  import { jsx as C, jsxs as pa } from "react/jsx-runtime";
2
2
  import { B as ba } from "../../../index.es-CiqbARoC.js";
3
- import { b as u, a as o, c as d, d as s, r as wa, s as be, t as M, m as j, l as D, f as z, e as N, g as ya, D as Pa } from "../../../index.es-zr101OF5.js";
3
+ import { b as u, a as o, c as d, d as s, r as wa, s as be, t as M, m as j, l as D, f as z, e as N, g as ya, D as Pa } from "../../../index.es-CoFul5zR.js";
4
4
  import { D as ka } from "../../../index.es-BWgXLqXn.js";
5
5
  import { P as Ma } from "../../../index.es-D-CKRzIB.js";
6
6
  import { useMemo as V, useState as $a } from "react";
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as s, s as a, f as m } from "../../../react.esm-CX1WJ2Pp.js";
2
+ import { a as s, s as r, f as m } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormDatePicker as c } from "./FormDatePicker.js";
4
- import { v as e, d as f, t as l, g as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a as e, d as f, t as l, g as a } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const i = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -44,13 +44,13 @@ f("FormDatePicker Test", () => {
44
44
  s(
45
45
  /* @__PURE__ */ n(c, { propertyName: "birthday", label: "user.date-of-birth", closeLabel: "close", maxRangeYear: 0 })
46
46
  );
47
- const t = a.getByRole("textbox");
48
- r(t).toBeInTheDocument(), r(t).toBeInstanceOf(HTMLInputElement), r(a.getByText("user.date-of-birth")).toBeInTheDocument(), r(a.getByText("close")).toBeInTheDocument();
47
+ const t = r.getByRole("textbox");
48
+ a(t).toBeInTheDocument(), a(t).toBeInstanceOf(HTMLInputElement), a(r.getByText("user.date-of-birth")).toBeInTheDocument(), a(r.getByText("close")).toBeInTheDocument();
49
49
  }), l("change FormDatePicker value", () => {
50
50
  s(
51
51
  /* @__PURE__ */ n(c, { propertyName: "birthday", label: "user.date-of-birth", closeLabel: "close", maxRangeYear: 0 })
52
52
  );
53
- const t = a.getByRole("textbox"), o = /* @__PURE__ */ new Date();
54
- m.change(t, { target: { value: o } }), r(t.getAttribute("value")).toBe(o.toString());
53
+ const t = r.getByRole("textbox"), o = /* @__PURE__ */ new Date();
54
+ m.change(t, { target: { value: o } }), a(t.getAttribute("value")).toBe(o.toString());
55
55
  });
56
56
  });
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { a, s as n } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormNumber as s } from "./FormNumber.js";
4
- import { v as e, d as m, t as f, g as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a as e, d as m, t as f, g as r } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const l = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as s, s as t, f as m } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormRadio as l } from "./FormRadio.js";
4
- import { v as e, d as c, t as i, g as o } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a as e, d as c, t as i, g as o } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const r = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -3,7 +3,7 @@ import { a, s as t, f as T, w as p } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { u as B } from "../../../index-I7uTh4Tr.js";
4
4
  import { FormSelect as i } from "./FormSelect.js";
5
5
  import { SelectTooltipText as d } from "./SelectTooltipText.js";
6
- import { v as n, d as f, t as u, g as e } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
6
+ import { a as n, d as f, t as u, g as e } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
7
7
  const g = n.fn();
8
8
  n.mock("react-hook-form", () => ({
9
9
  ...n.importActual("react-hook-form"),
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { G as p } from "../../../index.es-DntoATwO.js";
3
- import { b as d } from "../../../index.es-CF_xy2ns.js";
3
+ import { T as d } from "../../../index.es-D54RuMc_.js";
4
4
  const m = ({ value: r, textKey: t, valueKey: e }) => {
5
5
  if (!(!r || r.length === 0))
6
6
  return Array.isArray(r) ? /* @__PURE__ */ i(p, { "data-testid": "select-tooltip", direction: "vertical", gap: "dense", children: r?.map((o) => /* @__PURE__ */ i(d, { level: 2, children: o[t] }, o[e])) }) : r?.[t];
@@ -1,7 +1,7 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { a, s as n } from "../../../react.esm-CX1WJ2Pp.js";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { a as s, s as n } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormSlider as l } from "./FormSlider.js";
4
- import { v as e, d as m, t as i, g as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a as e, d as m, t as i, g as r } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const o = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -42,7 +42,7 @@ e.mock("react-hook-form", () => ({
42
42
  }));
43
43
  m("FormSlider Test", () => {
44
44
  i("render FormSlider", () => {
45
- a(/* @__PURE__ */ s(l, { propertyName: "slide", label: "slide", maxValue: 10, minValue: 0, step: 2 }));
45
+ s(/* @__PURE__ */ a(l, { propertyName: "slide", label: "slide", maxValue: 10, minValue: 0, step: 2 }));
46
46
  const t = n.getByRole("slider");
47
47
  r(t).toBeInTheDocument(), r(t).toHaveAttribute("max", "10"), r(t).toHaveAttribute("min", "0"), r(t).toHaveAttribute("step", "2");
48
48
  });
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, Fragment as v, jsxs as z } from "react/jsx-runtime";
2
2
  import { T as M } from "../../../index.es-25EARqhH.js";
3
- import { a as P } from "../../../index.es-CF_xy2ns.js";
3
+ import { a as P } from "../../../index.es-D54RuMc_.js";
4
4
  import { useState as V, useCallback as W, useMemo as m } from "react";
5
5
  import { useFormContext as D, Controller as _ } from "react-hook-form";
6
6
  import { useHelperText as E } from "../../../hooks/useHelperText.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as s, s as r, f as i } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormText as o } from "./FormText.js";
4
- import { v as a, d as u, t as l, g as e } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a, d as u, t as l, g as e } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const d = a.fn();
6
6
  a.mock("react-hook-form", () => ({
7
7
  ...a.importActual("react-hook-form"),
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
2
  import { G as d } from "../../../index.es-DntoATwO.js";
3
3
  import { S as f } from "../../../index.es-8GOVkuo-.js";
4
- import { a as h } from "../../../index.es-CF_xy2ns.js";
4
+ import { a as h } from "../../../index.es-D54RuMc_.js";
5
5
  import { u as C } from "../../../uniqueId-NU3-C36A.js";
6
6
  import { useEffect as x } from "react";
7
7
  import { useFormContext as T, Controller as y } from "react-hook-form";
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { a as s, s as t, f as m } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { FormToggle as n } from "./FormToggle.js";
4
- import { v as e, d as u, t as l, g as o } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { a as e, d as u, t as l, g as o } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const c = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -57,6 +57,9 @@ import { TableLayoutProps } from '../../types/GenericTable';
57
57
  * @param pageTranslation translation for the pagination text 'Page'
58
58
  * @param pageOfTranslation translation for the pagination text 'of'
59
59
  * @param rowsPerPageTranslation translation for the pagination text 'Rows per page'
60
+ * @param tableActionPosition position of the table actions, can be 'start' or 'end'
61
+ * @param tableElevationLevel elevation level of the table
62
+ * @param tableLayout layout of the table, can be 'standard' or 'flex'
60
63
  * @returns a table based on a given type and data
61
64
  */
62
- export declare const GenericTable: <T>({ data, hiddenColumns, order, cellTemplates, tableActions, noContentText, headerTranslation, pagination, getRowActions, customColumnWidth, title, cardTitleColumn, cardSubTitleColumn, pageTranslation, pageOfTranslation, rowsPerPageTranslation, }: TableLayoutProps<T>) => import("react/jsx-runtime").JSX.Element;
65
+ export declare const GenericTable: <T>({ data, hiddenColumns, order, cellTemplates, tableActions, noContentText, headerTranslation, pagination, getRowActions, customColumnWidth, title, cardTitleColumn, cardSubTitleColumn, pageTranslation, pageOfTranslation, rowsPerPageTranslation, tableActionPosition, tableElevationLevel, tableLayout, }: TableLayoutProps<T>) => import("react/jsx-runtime").JSX.Element;