@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,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as s, s as r, f as d } from "../../../react.esm-FR1-H8iU.js";
3
- import { FormText as l } from "./FormText.js";
4
- import { v as a, d as u, t as o, g as e } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
2
+ import { a as s, s as r, f as d } from "../../../react.esm-DNwojocF.js";
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";
5
5
  const m = a.fn();
6
6
  a.mock("react-hook-form", () => ({
7
7
  ...a.importActual("react-hook-form"),
@@ -43,10 +43,10 @@ a.mock("react-hook-form", () => ({
43
43
  })
44
44
  }));
45
45
  u("FormText Test", () => {
46
- o("render FormText and return single line text field", () => {
46
+ l("render FormText and return single line text field", () => {
47
47
  s(
48
48
  /* @__PURE__ */ n(
49
- l,
49
+ o,
50
50
  {
51
51
  rules: {
52
52
  maxLength: {
@@ -61,10 +61,10 @@ u("FormText Test", () => {
61
61
  );
62
62
  const t = r.getByRole("textbox");
63
63
  e(t).toBeInTheDocument(), e(t).toBeInstanceOf(HTMLInputElement), e(t).toHaveAttribute("maxlength", "100"), e(r.getByText("address.line2")).toBeInTheDocument();
64
- }), o("change value of single line text field", () => {
64
+ }), l("change value of single line text field", () => {
65
65
  s(
66
66
  /* @__PURE__ */ n(
67
- l,
67
+ o,
68
68
  {
69
69
  rules: {
70
70
  maxLength: {
@@ -79,10 +79,10 @@ u("FormText Test", () => {
79
79
  );
80
80
  const t = r.getByRole("textbox");
81
81
  e(t).toHaveValue("test"), d.change(t, { target: { value: "test-change" } }), e(m).toHaveBeenCalled();
82
- }), o("render FormText and return text area", () => {
82
+ }), l("render FormText and return text area", () => {
83
83
  s(
84
84
  /* @__PURE__ */ n(
85
- l,
85
+ o,
86
86
  {
87
87
  rules: {
88
88
  required: {
@@ -102,10 +102,10 @@ u("FormText Test", () => {
102
102
  );
103
103
  const t = r.getByRole("textbox");
104
104
  e(t).toBeInTheDocument(), e(t).toBeInstanceOf(HTMLTextAreaElement), e(t).toHaveAttribute("maxlength", "200"), e(r.getByText("address.line1")).toBeInTheDocument(), e(r.getByText("required")).toBeInTheDocument();
105
- }), o("render FormText with maxLength indicator", () => {
105
+ }), l("render FormText with maxLength indicator", () => {
106
106
  s(
107
107
  /* @__PURE__ */ n(
108
- l,
108
+ o,
109
109
  {
110
110
  rules: {
111
111
  maxLength: {
@@ -119,10 +119,10 @@ u("FormText Test", () => {
119
119
  }
120
120
  )
121
121
  ), e(r.getByText("address.line1")).toBeInTheDocument(), e(r.queryByText("required")).not.toBeInTheDocument(), e(r.getByText("0/200")).toBeInTheDocument();
122
- }), o("change value of text area", () => {
122
+ }), l("change value of text area", () => {
123
123
  s(
124
124
  /* @__PURE__ */ n(
125
- l,
125
+ o,
126
126
  {
127
127
  rules: {
128
128
  required: {
@@ -1,5 +1,6 @@
1
- import { SwitchProps } from '@element/react-components';
1
+ import { SwitchProps } from '@element-public/react-components';
2
2
  import { FieldValues, Path, RegisterOptions } from 'react-hook-form';
3
+
3
4
  type FormToggleProps<T extends FieldValues> = {
4
5
  /** The name of the property that this toggle represents. */
5
6
  propertyName: Path<T>;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
- import { Group as l, Switch as p, TypoCaption as d } from "@element/react-components";
2
+ import { Group as l, Switch as p, TypoCaption as d } from "@element-public/react-components";
3
3
  import { useFormContext as u, Controller as C } from "react-hook-form";
4
4
  const v = ({
5
5
  propertyName: t,
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { a as n, s as t, f as m } from "../../../react.esm-FR1-H8iU.js";
2
+ import { a as n, s as t, f as m } from "../../../react.esm-DNwojocF.js";
3
3
  import { FormToggle as l } from "./FormToggle.js";
4
- import { v as e, d as f, t as c, g as r } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { v as e, d as f, t as c, g as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  const a = e.fn();
6
6
  e.mock("react-hook-form", () => ({
7
7
  ...e.importActual("react-hook-form"),
@@ -1,6 +1,7 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { NumericFormatProps } from 'react-number-format';
3
3
  import { LANGUAGE_COUNTRY_CODES } from '../../types/Languages';
4
+
4
5
  export type FormattedNumberDisplayProps = {
5
6
  /**
6
7
  * the number to format
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { N as i } from "../../react-number-format.es-BD3_OvMU.js";
2
+ import { N as i } from "../../react-number-format.es-BK1EpVXq.js";
3
3
  import { useDecimalSeparator as d, useThousandSeparator as n } from "../../services/NumberService.js";
4
4
  const y = ({
5
5
  typographyComponent: a,
@@ -1,4 +1,5 @@
1
1
  import { TableLayoutProps } from '../../types/GenericTable';
2
+
2
3
  /**
3
4
  * Automatically creates a table layout based on the given data.
4
5
  * If the screen is too small, it will switch to a card layout.
@@ -1,11 +1,10 @@
1
- import "../../assets/GenericTable.css";
2
1
  import { jsx as e, jsxs as B } from "react/jsx-runtime";
3
- import { Elevation as N, Table as D, Group as l, TypoSubtitle as G, TableTopBar as u, Padding as W, TypoDisplay as $ } from "@element/react-components";
2
+ import { Elevation as N, Table as D, Group as i, TypoSubtitle as G, TableTopBar as u, Padding as W, TypoDisplay as $ } from "@element-public/react-components";
4
3
  import { Fragment as k } from "react";
5
- /* empty css */
4
+ import '../../assets/main.css';import '../../assets/GenericTable.css';/* empty css */
6
5
  import { u as C } from "../../useBreakpoints-MzTZ0tCT.js";
7
6
  import "../../isEmpty-BimaZd5G.js";
8
- import "../../react-tooltip.min-c2wVkjF2.js";
7
+ import "../../react-tooltip.min-Czs4RGD1.js";
9
8
  import "../../orderBy-BVQIswlJ.js";
10
9
  import "lodash";
11
10
  import "react-hook-form";
@@ -20,11 +19,11 @@ const E = "_topBar_1msoo_1", F = "_filterBar_1msoo_5", I = "_emptyTable_1msoo_9"
20
19
  emptyTable: I,
21
20
  elevation: L,
22
21
  table: M
23
- }, ee = ({
24
- data: i = [],
22
+ }, R = ({
23
+ data: n = [],
25
24
  hiddenColumns: s = [],
26
- order: f = [],
27
- cellTemplates: b = void 0,
25
+ order: b = [],
26
+ cellTemplates: f = void 0,
28
27
  tableActions: r = [],
29
28
  noContentText: m = "No data available",
30
29
  headerTranslation: _ = (o) => o,
@@ -35,17 +34,17 @@ const E = "_topBar_1msoo_1", F = "_filterBar_1msoo_5", I = "_emptyTable_1msoo_9"
35
34
  cardTitleColumn: h,
36
35
  cardSubTitleColumn: v
37
36
  }) => {
38
- const { isDesktop: o } = C(), n = j({
39
- data: i,
40
- order: f,
41
- cellTemplates: b,
37
+ const { isDesktop: o } = C(), l = j({
38
+ data: n,
39
+ order: b,
40
+ cellTemplates: f,
42
41
  headerTranslation: _,
43
42
  getRowActions: c,
44
43
  customColumnWidth: y,
45
44
  cardTitleColumn: h,
46
45
  cardSubTitleColumn: v
47
- }), d = x({
48
- data: i,
46
+ }), p = x({
47
+ data: n,
49
48
  getRowActions: c
50
49
  });
51
50
  return o ? /* @__PURE__ */ e(N, { elevation: 1, className: t.elevation, "data-testid": "generic-table-elevation", children: /* @__PURE__ */ e(
@@ -57,22 +56,22 @@ const E = "_topBar_1msoo_1", F = "_filterBar_1msoo_5", I = "_emptyTable_1msoo_9"
57
56
  alwaysUseDivTags: !0,
58
57
  layout: "standard",
59
58
  hiddenColumns: s,
60
- data: d,
61
- columns: n,
59
+ data: p,
60
+ columns: l,
62
61
  leadingContent: a && r?.length === 0 ? /* @__PURE__ */ e(u, { title: a }) : r?.length > 0 && /* @__PURE__ */ e(
63
62
  u,
64
63
  {
65
64
  className: t.topBar,
66
- filterBar: /* @__PURE__ */ B(l, { fullWidth: !0, direction: "vertical", gap: "none", children: [
65
+ filterBar: /* @__PURE__ */ B(i, { fullWidth: !0, direction: "vertical", gap: "none", children: [
67
66
  a && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e($, { level: 6, children: a }) }),
68
67
  /* @__PURE__ */ e(
69
- l,
68
+ i,
70
69
  {
71
70
  className: t.filterBar,
72
71
  fullWidth: !0,
73
72
  primaryAlign: "end",
74
73
  secondaryAlign: "center",
75
- children: r.map((p, T) => /* @__PURE__ */ e(k, { children: p }, `action_${T}_${p.key}`))
74
+ children: r.map((d, T) => /* @__PURE__ */ e(k, { children: d }, `action_${T}_${d.key}`))
76
75
  }
77
76
  )
78
77
  ] })
@@ -80,9 +79,9 @@ const E = "_topBar_1msoo_1", F = "_filterBar_1msoo_5", I = "_emptyTable_1msoo_9"
80
79
  ),
81
80
  paginated: g,
82
81
  sortable: !0,
83
- noContentIncludeTable: !!n,
82
+ noContentIncludeTable: !!l,
84
83
  noContentMessage: /* @__PURE__ */ e(
85
- l,
84
+ i,
86
85
  {
87
86
  fullWidth: !0,
88
87
  primaryAlign: "center",
@@ -95,13 +94,13 @@ const E = "_topBar_1msoo_1", F = "_filterBar_1msoo_5", I = "_emptyTable_1msoo_9"
95
94
  ) }) : /* @__PURE__ */ e("div", { "data-testid": `generic-card-list${a ? "-" + a : ""}`, children: /* @__PURE__ */ e(
96
95
  A,
97
96
  {
98
- data: d,
99
- columns: n,
97
+ data: p,
98
+ columns: l,
100
99
  hiddenColumns: s,
101
100
  noContentText: m
102
101
  }
103
102
  ) });
104
103
  };
105
104
  export {
106
- ee as GenericTable
105
+ R as GenericTable
107
106
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as a, jsxs as B } from "react/jsx-runtime";
2
- import { a as o, s as e } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as o, s as e } from "../../react.esm-DNwojocF.js";
3
3
  import { a as m } from "../../useBreakpoints-MzTZ0tCT.js";
4
4
  import { GenericTable as s } from "./GenericTable.js";
5
- import { d as h, v as r, t as i, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
5
+ import { d as h, v as r, t as i, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
6
6
  h("GenericTable Test", () => {
7
7
  r.spyOn(m, "useBreakpoints").mockReturnValue({
8
8
  isDesktop: !0,
@@ -1,4 +1,5 @@
1
1
  import { GenericColumn, TableLayoutProps } from '../../types/GenericTable';
2
+
2
3
  /**
3
4
  * Generate columns for the table
4
5
  * @param data data to be used to generate the columns
@@ -1,57 +1,57 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { useMemo as p } from "react";
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { useMemo as a } from "react";
3
3
  import { ContextMenu as x } from "../ContextMenu/ContextMenu.js";
4
- const l = ({
5
- data: n = [],
6
- order: e = [],
7
- cellTemplates: r = void 0,
8
- headerTranslation: t = (d) => d,
9
- getRowActions: o = void 0,
10
- customColumnWidth: s,
11
- cardTitleColumn: f,
12
- cardSubTitleColumn: u
13
- }) => p(() => {
14
- if (n?.length === 0) return [];
15
- const d = m(n[0], e).map((i) => {
16
- const c = s ? s[i] : void 0;
4
+ const j = ({
5
+ data: r = [],
6
+ order: n = [],
7
+ cellTemplates: e = void 0,
8
+ headerTranslation: t = (c) => c,
9
+ getRowActions: f = void 0,
10
+ customColumnWidth: o,
11
+ cardTitleColumn: u,
12
+ cardSubTitleColumn: s
13
+ }) => a(() => {
14
+ if (r?.length === 0) return [];
15
+ const c = v(r[0], n).map((i) => {
16
+ const p = o ? o[i] : void 0;
17
17
  return {
18
18
  id: i,
19
19
  header: t(i),
20
20
  accessor: i,
21
- cellTemplate: r ? r[i] : void 0,
22
- cellProps: c ? { width: c } : void 0,
23
- asCardTitle: i === f,
24
- asCardSubtitle: i === u
21
+ cellTemplate: e ? e[i] : void 0,
22
+ cellProps: p ? { width: p } : void 0,
23
+ asCardTitle: i === u,
24
+ asCardSubtitle: i === s
25
25
  };
26
26
  });
27
- return o ? [
28
- ...d,
27
+ return f ? [
28
+ ...c,
29
29
  { id: "actions", header: "", accessor: "actions" }
30
- ] : d;
30
+ ] : c;
31
31
  }, [
32
- n,
33
32
  r,
34
33
  e,
34
+ n,
35
35
  t,
36
- o,
37
- s,
38
36
  f,
39
- u
40
- ]), G = ({
41
- data: n = [],
42
- getRowActions: e = void 0
43
- }) => p(() => e ? n.map((r) => {
44
- const t = /* @__PURE__ */ a(x, { actions: e(r), iconOrientation: "horizontal" });
45
- return { ...r, actions: t };
46
- }) : n, [n, e]), m = (n, e) => {
47
- if (!n) return [];
48
- let r = Object.keys(n).map((t) => t);
49
- return e?.length > 0 && (r = r.sort((t, o) => {
50
- const s = e.findIndex((u) => u === t), f = e.findIndex((u) => u === o);
51
- return s === -1 ? 1 : f === -1 ? -1 : s - f;
52
- })), r;
37
+ o,
38
+ u,
39
+ s
40
+ ]), l = ({
41
+ data: r = [],
42
+ getRowActions: n = void 0
43
+ }) => a(() => n ? r.map((e) => {
44
+ const t = /* @__PURE__ */ d(x, { actions: n(e), iconOrientation: "horizontal" });
45
+ return { ...e, actions: t };
46
+ }) : r, [r, n]), v = (r, n) => {
47
+ if (!r) return [];
48
+ let e = Object.keys(r).map((t) => t);
49
+ return n?.length > 0 && (e = e.sort((t, f) => {
50
+ const o = n.findIndex((s) => s === t), u = n.findIndex((s) => s === f);
51
+ return o === -1 ? 1 : u === -1 ? -1 : o - u;
52
+ })), e;
53
53
  };
54
54
  export {
55
- l as useGenerateColumns,
56
- G as useGenerateTableData
55
+ j as useGenerateColumns,
56
+ l as useGenerateTableData
57
57
  };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { GenericColumn } from '../../../types/GenericTable';
2
+
3
3
  type GenericCardProps<T> = {
4
4
  item: T & {
5
5
  actions?: JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import "@element/react-components";
2
+ import "@element-public/react-components";
3
3
  import "react";
4
4
  import "../../OverflowTooltip/OverflowTooltip.js";
5
- import { G as e } from "../../../GenericCard-B8x1DMa8.js";
5
+ import { G as e } from "../../../GenericCard-jlt8ZsHi.js";
6
6
  export {
7
7
  e as GenericCard
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as c, s as o } from "../../../react.esm-FR1-H8iU.js";
3
- import { G as i } from "../../../GenericCard-B8x1DMa8.js";
4
- import { d as m, t as s, g as e } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
2
+ import { a as c, s as o } from "../../../react.esm-DNwojocF.js";
3
+ import { G as i } from "../../../GenericCard-jlt8ZsHi.js";
4
+ import { d as m, t as s, g as e } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  m("GenericCard", () => {
6
6
  const d = {
7
7
  id: 1,
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { GenericColumn, TableLayoutProps } from '../../../types/GenericTable';
2
+
3
3
  type GenericCardListProps<T> = Pick<TableLayoutProps<T>, 'hiddenColumns' | 'noContentText' | 'data'> & {
4
4
  /**
5
5
  * The columns to be displayed in the card.
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { Padding as c, TypoCaption as s, Group as o } from "@element/react-components";
3
- import { s as t, G as m } from "../../../GenericCard-B8x1DMa8.js";
2
+ import { Padding as c, TypoCaption as s, Group as o } from "@element-public/react-components";
3
+ import { s as t, G as m } from "../../../GenericCard-jlt8ZsHi.js";
4
4
  const u = ({
5
5
  columns: n,
6
6
  data: e,
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { a as r, s as n, w as l } from "../../../react.esm-FR1-H8iU.js";
2
+ import { a as r, s as n, w as l } from "../../../react.esm-DNwojocF.js";
3
3
  import { GenericCardList as s } from "./GenericCardList.js";
4
- import { d as g, t as i, g as e } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as g, t as i, g as e } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  g("GenericCardList", () => {
6
6
  const d = [
7
7
  { id: "name", header: "Name", accessor: "name", asCardTitle: !0 },
@@ -1,5 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { HashTab } from '../../types/HashTab';
3
+
3
4
  /**
4
5
  * `HashTabView` is a layout component that displays a tab bar with a content area.
5
6
  * It can be used with a hash in the url to navigate to the tab.
@@ -46,6 +47,10 @@ type HashTabViewProps = {
46
47
  * important note: currently only works for the edit module form
47
48
  */
48
49
  hasStickyTabs?: boolean;
50
+ /**
51
+ * pass custom styles for tabs header
52
+ */
53
+ classNameHeader?: string;
49
54
  };
50
- export declare const HashTabView: ({ tabs, hasHash, hash, clusterAlign, hasClusteredTabs, children, verticalGap, elevation, backgroundColor, onChange, hasStickyTabs, }: PropsWithChildren<HashTabViewProps>) => import("react/jsx-runtime").JSX.Element;
55
+ export declare const HashTabView: ({ tabs, hasHash, hash, clusterAlign, hasClusteredTabs, children, verticalGap, elevation, backgroundColor, onChange, hasStickyTabs, classNameHeader, }: PropsWithChildren<HashTabViewProps>) => import("react/jsx-runtime").JSX.Element;
51
56
  export {};
@@ -1,99 +1,99 @@
1
- import "../../assets/HashTabView.css";
2
- import { jsx as r, jsxs as _, Fragment as C } from "react/jsx-runtime";
3
- import { Elevation as k, Group as c, TabBar as $, Tab as P, Padding as T } from "@element/react-components";
4
- import { useState as A, useEffect as I } from "react";
5
- import { u as N } from "../../useBreakpoints-MzTZ0tCT.js";
6
- const R = "_elevation_4lrry_1", W = "_themeBackground_4lrry_6", w = "_tabBar_4lrry_10", x = "_tabWrapper_4lrry_20", H = "_stickyHeader_4lrry_24", j = "_tabButton_4lrry_31", E = "_childContainer_4lrry_35", z = "_childContainerPhone_4lrry_39", D = "_iconColorRed_4lrry_43", F = "_miniPadding_4lrry_48", t = {
7
- elevation: R,
8
- themeBackground: W,
9
- tabBar: w,
10
- tabWrapper: x,
1
+ import { jsx as a, jsxs as _, Fragment as C } from "react/jsx-runtime";
2
+ import { Elevation as $, Group as c, TabBar as k, Tab as P, Padding as T } from "@element-public/react-components";
3
+ import { useState as y, useEffect as A } from "react";
4
+ import { u as I } from "../../useBreakpoints-MzTZ0tCT.js";
5
+ import '../../assets/HashTabView.css';const N = "_elevation_xbjx4_1", R = "_themeBackground_xbjx4_6", W = "_tabBar_xbjx4_10", w = "_tabWrapper_xbjx4_20", H = "_stickyHeader_xbjx4_24", E = "_tabButton_xbjx4_30", z = "_childContainer_xbjx4_34", D = "_childContainerPhone_xbjx4_38", F = "_iconColorRed_xbjx4_42", G = "_miniPadding_xbjx4_47", t = {
6
+ elevation: N,
7
+ themeBackground: R,
8
+ tabBar: W,
9
+ tabWrapper: w,
11
10
  stickyHeader: H,
12
- tabButton: j,
13
- childContainer: E,
14
- childContainerPhone: z,
15
- iconColorRed: D,
16
- miniPadding: F
17
- }, h = (n, a) => !a || !n ? 0 : n.findIndex((i) => i.hash === a.replace("#", "")) ?? 0, K = ({
11
+ tabButton: E,
12
+ childContainer: z,
13
+ childContainerPhone: D,
14
+ iconColorRed: F,
15
+ miniPadding: G
16
+ }, p = (n, i) => !i || !n ? 0 : n.findIndex((o) => o.hash === i.replace("#", "")) ?? 0, K = ({
18
17
  tabs: n,
19
- hasHash: a = !0,
20
- hash: i = "",
18
+ hasHash: i = !0,
19
+ hash: o = "",
21
20
  clusterAlign: u = "start",
22
- hasClusteredTabs: g,
23
- children: d,
24
- verticalGap: y = "none",
25
- elevation: v = 0,
26
- backgroundColor: f = "themeBackground",
27
- onChange: B,
28
- hasStickyTabs: m = !1
21
+ hasClusteredTabs: b,
22
+ children: l,
23
+ verticalGap: x = "none",
24
+ elevation: g = 0,
25
+ backgroundColor: v = "themeBackground",
26
+ onChange: f,
27
+ hasStickyTabs: m = !1,
28
+ classNameHeader: B = ""
29
29
  }) => {
30
- const [l, p] = A(h(n, i)), { isDesktop: s } = N();
31
- I(() => {
32
- if (!a || !i) return;
33
- const e = h(n, i);
34
- p(e);
35
- }, [n, i, a]);
36
- const b = (e) => {
37
- const o = n[e].hash;
38
- o != null && a && window.history.replaceState(null, "", `#${o}`), p(e), B?.(e);
30
+ const [d, h] = y(p(n, o)), { isDesktop: s } = I();
31
+ A(() => {
32
+ if (!i || !o) return;
33
+ const e = p(n, o);
34
+ h(e);
35
+ }, [n, o, i]);
36
+ const j = (e) => {
37
+ const r = n[e].hash;
38
+ r != null && i && window.history.replaceState(null, "", `#${r}`), h(e), f?.(e);
39
39
  };
40
- return /* @__PURE__ */ r(
41
- k,
40
+ return /* @__PURE__ */ a(
41
+ $,
42
42
  {
43
- elevation: v,
44
- className: `${t.elevation} ${f === "none" ? "" : t.themeBackground}`,
43
+ elevation: g,
44
+ className: `${t.elevation} ${v === "none" ? "" : t.themeBackground}`,
45
45
  children: /* @__PURE__ */ _(
46
46
  c,
47
47
  {
48
48
  "data-testid": "hash-tab-container",
49
49
  direction: "vertical",
50
- gap: y,
50
+ gap: x,
51
51
  secondaryAlign: "stretch",
52
52
  children: [
53
53
  /* @__PURE__ */ _(
54
54
  c,
55
55
  {
56
56
  direction: s ? "horizontal" : "vertical",
57
- className: `${t.tabWrapper} ${m ? t.stickyHeader : ""}`,
57
+ className: `${t.tabWrapper} ${m ? t.stickyHeader : ""} ${B}`,
58
58
  children: [
59
- /* @__PURE__ */ r(
60
- $,
59
+ /* @__PURE__ */ a(
60
+ k,
61
61
  {
62
62
  "data-testid": "tab-bar",
63
63
  className: t.tabBar,
64
- clustered: s ? g : !1,
64
+ clustered: s ? b : !1,
65
65
  clusterAlign: u,
66
66
  variant: "surface",
67
- activeTabIndex: l,
68
- onTabActivated: b,
69
- children: n.map((e, o) => /* @__PURE__ */ r(
67
+ activeTabIndex: d,
68
+ onTabActivated: j,
69
+ children: n.map((e, r) => /* @__PURE__ */ a(
70
70
  P,
71
71
  {
72
72
  "data-testid": `tab-${e.title}`,
73
73
  icon: e.leadingIcon,
74
- className: `${d ? t.tabButton : ""} ${e.isIconRed ? t.iconColorRed : ""}`,
75
- active: l === o,
74
+ className: `${l ? t.tabButton : ""} ${e.isIconRed ? t.iconColorRed : ""}`,
75
+ active: d === r,
76
76
  children: /* @__PURE__ */ _(c, { gap: "dense", children: [
77
77
  e.title,
78
78
  e.trailingIcon
79
79
  ] })
80
80
  },
81
- `${o}_${e.hash}`
81
+ `${r}_${e.hash}`
82
82
  ))
83
83
  }
84
84
  ),
85
- d ? /* @__PURE__ */ r(
85
+ l ? /* @__PURE__ */ a(
86
86
  T,
87
87
  {
88
88
  variant: "dense",
89
89
  className: s ? t.childContainer : t.childContainerPhone,
90
- children: /* @__PURE__ */ r(c, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: d })
90
+ children: /* @__PURE__ */ a(c, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: l })
91
91
  }
92
- ) : /* @__PURE__ */ r(C, {})
92
+ ) : /* @__PURE__ */ a(C, {})
93
93
  ]
94
94
  }
95
95
  ),
96
- m ? /* @__PURE__ */ r(c, { fullWidth: !0, direction: "vertical", className: t.miniPadding, children: n[l]?.component }) : n[l]?.component
96
+ m ? /* @__PURE__ */ a(c, { fullWidth: !0, direction: "vertical", className: t.miniPadding, children: n[d]?.component }) : n[d]?.component
97
97
  ]
98
98
  }
99
99
  )
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, Fragment as o } from "react/jsx-runtime";
2
- import { a, s as e, f as r } from "../../react.esm-FR1-H8iU.js";
2
+ import { a, s as e, f as r } from "../../react.esm-DNwojocF.js";
3
3
  import { HashTabView as c } from "./HashTabView.js";
4
- import { d as h, t as l, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as h, t as l, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  const m = [
6
6
  {
7
7
  title: "Map",
@@ -1,4 +1,5 @@
1
- import { SelectProps } from '@element/react-components';
1
+ import { SelectProps } from '@element-public/react-components';
2
+
2
3
  type HeaderFilterProps = {
3
4
  /**
4
5
  * heading of the filter
@@ -19,7 +20,7 @@ type HeaderFilterProps = {
19
20
  /**
20
21
  * options for the filter
21
22
  */
22
- filterOptions: SelectProps[];
23
+ filterOptions: SelectProps['options'];
23
24
  };
24
25
  /**
25
26
  * Provides a HeaderFilter component with a single filtervalue select