@hortiview/shared-components 1.11.0 → 2.0.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.
- package/CHANGELOG.md +20 -0
- package/dist/assets/GenericTable.css +1 -1
- package/dist/components/Filter/Filter.js +11 -12
- package/dist/components/GenericTable/GenericTable.d.ts +4 -1
- package/dist/components/GenericTable/GenericTable.js +1589 -1577
- package/dist/components/GenericTable/GenericTableService.js +13 -12
- package/dist/components/ModulePadding/ModulePadding.js +4 -5
- package/dist/components/SearchBar/SearchBar.d.ts +4 -14
- package/dist/components/SearchBar/SearchBar.js +13 -12
- package/dist/main.d.ts +3 -4
- package/dist/main.js +96 -97
- package/dist/types/GenericTable.d.ts +15 -0
- package/package.json +1 -1
- package/dist/assets/main.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [2.0.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.12.0...v2.0.0) (2025-06-06)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* remove font call from main.ts but keep it for storybook
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* remove font call from main.ts but keep it for storybook ([a5999c7](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/a5999c72ac274c4a23efd06d0e362f427e87f1c0))
|
|
10
|
+
|
|
11
|
+
## [1.12.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.11.0...v1.12.0) (2025-06-02)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add fullWidth prop to SearchBar component for customizable width ([8ac95ad](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/8ac95ad120740a15d33083d31a6ed32dad600eba))
|
|
16
|
+
|
|
17
|
+
### Code Refactoring
|
|
18
|
+
|
|
19
|
+
* add additional props tableActionPosition, tableElevationLevel to generic table ([e095294](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/e095294e3438f9908b98ffeebca5ecc00aced161))
|
|
20
|
+
|
|
1
21
|
## [1.11.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.10.0...v1.11.0) (2025-05-28)
|
|
2
22
|
|
|
3
23
|
### Features
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as b, Fragment as D } from "react/jsx-runtime";
|
|
2
2
|
import { N as F } from "../../index.es-fnFnw2P1.js";
|
|
3
|
-
import { B as
|
|
3
|
+
import { B as p } 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";
|
|
6
6
|
import { S as j } from "../../index.es-8GOVkuo-.js";
|
|
7
7
|
import { useState as v } from "react";
|
|
8
|
-
import '../../assets/main.css';import '../../assets/Filter.css';/* empty css */
|
|
9
8
|
import { Iconify as z } from "../Iconify/Iconify.js";
|
|
10
9
|
import { u as k } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
11
10
|
import "../../react-tooltip.min-DSY6KDqS.js";
|
|
@@ -18,12 +17,12 @@ import "react-hook-form";
|
|
|
18
17
|
import "../../get-DFv1gXfq.js";
|
|
19
18
|
import "../../isArray-Dub1wGJM.js";
|
|
20
19
|
import "../../isString-BW9UHONv.js";
|
|
21
|
-
const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBadge_qtl7a_10", E = "_dense_qtl7a_17", u = {
|
|
20
|
+
import '../../assets/Filter.css';const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBadge_qtl7a_10", E = "_dense_qtl7a_17", u = {
|
|
22
21
|
filterButton: K,
|
|
23
22
|
relativeParent: T,
|
|
24
23
|
filterBadge: V,
|
|
25
24
|
dense: E
|
|
26
|
-
},
|
|
25
|
+
}, mt = ({
|
|
27
26
|
clearFilterText: m,
|
|
28
27
|
closeCallback: s,
|
|
29
28
|
currentFilter: i,
|
|
@@ -32,7 +31,7 @@ const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
32
31
|
filterModalTitle: t,
|
|
33
32
|
filters: f,
|
|
34
33
|
modalCancelButtonText: g,
|
|
35
|
-
modalConfirmButtonText:
|
|
34
|
+
modalConfirmButtonText: h,
|
|
36
35
|
useModal: o = !0,
|
|
37
36
|
selectAllLabel: r,
|
|
38
37
|
"data-testid": w
|
|
@@ -68,9 +67,9 @@ const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
68
67
|
onClose: x,
|
|
69
68
|
title: t,
|
|
70
69
|
modalSize: A ? "small" : "fullscreen",
|
|
71
|
-
headerActions: /* @__PURE__ */ e(
|
|
70
|
+
headerActions: /* @__PURE__ */ e(p, { "data-testid": "filter-clear-button", variant: "text", onClick: O, children: m }),
|
|
72
71
|
dismissiveButton: /* @__PURE__ */ e(
|
|
73
|
-
|
|
72
|
+
p,
|
|
74
73
|
{
|
|
75
74
|
"data-testid": "filter-cancel-button",
|
|
76
75
|
variant: "outlined",
|
|
@@ -78,13 +77,13 @@ const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
78
77
|
children: g
|
|
79
78
|
}
|
|
80
79
|
),
|
|
81
|
-
primaryButton: /* @__PURE__ */ e(
|
|
80
|
+
primaryButton: /* @__PURE__ */ e(p, { "data-testid": "filter-confirm-button", variant: "filled", onClick: x, children: h }),
|
|
82
81
|
children: /* @__PURE__ */ e(_, { direction: "vertical", "data-testid": "filter-map-filters", children: N(f, c, S, r) })
|
|
83
82
|
}
|
|
84
83
|
)
|
|
85
84
|
] }) : /* @__PURE__ */ e(_, { secondaryAlign: "center", fullWidth: !0, children: N(f, c, S, r, !1) });
|
|
86
|
-
}, N = (m, s, i, d, a = !0) => m.map(({ id: t, title: f, availableOptions: g, icon:
|
|
87
|
-
|
|
85
|
+
}, N = (m, s, i, d, a = !0) => m.map(({ id: t, title: f, availableOptions: g, icon: h, type: o }) => /* @__PURE__ */ b(_, { fullWidth: !0, secondaryAlign: "center", "data-testid": `filter-${o}-group-${t}`, children: [
|
|
86
|
+
h ? /* @__PURE__ */ e(z, { icon: h, iconSize: "medium" }) : null,
|
|
88
87
|
o === "select" && /* @__PURE__ */ e(
|
|
89
88
|
I,
|
|
90
89
|
{
|
|
@@ -158,7 +157,7 @@ const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
158
157
|
style: { height: "100%", width: t ? void 0 : "100%" },
|
|
159
158
|
children: [
|
|
160
159
|
/* @__PURE__ */ e(
|
|
161
|
-
|
|
160
|
+
p,
|
|
162
161
|
{
|
|
163
162
|
"data-testid": "filter-button",
|
|
164
163
|
variant: "outlined",
|
|
@@ -184,5 +183,5 @@ const K = "_filterButton_qtl7a_1", T = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
184
183
|
);
|
|
185
184
|
};
|
|
186
185
|
export {
|
|
187
|
-
|
|
186
|
+
mt as Filter
|
|
188
187
|
};
|
|
@@ -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;
|