@hortiview/shared-components 2.10.0 → 2.10.2
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 +19 -0
- package/dist/assets/BasicHeading.css +1 -1
- package/dist/assets/GenericTable.css +1 -1
- package/dist/assets/InfoGroup.css +1 -1
- package/dist/assets/SearchBar.css +1 -1
- package/dist/components/BaseView/BaseView.js +29 -29
- package/dist/components/BaseView/BaseView.test.js +16 -15
- package/dist/components/BasicHeading/BasicHeading.d.ts +6 -1
- package/dist/components/BasicHeading/BasicHeading.js +43 -38
- package/dist/components/BasicHeading/BasicHeading.test.js +10 -10
- package/dist/components/GenericTable/GenericTable.js +1 -1
- package/dist/components/GenericTable/GenericTableService.js +37 -31
- package/dist/components/InfoGroup/InfoGroup.js +23 -23
- package/dist/components/SearchBar/SearchBar.d.ts +2 -2
- package/dist/components/SearchBar/SearchBar.js +17 -15
- package/dist/types/GenericTable.d.ts +6 -1
- package/dist/types/ListElement.d.ts +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [2.10.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.10.1...v2.10.2) (2026-01-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* column width ([4a5f60a](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/4a5f60a263765fee170859fcb4162343be9bf326))
|
|
6
|
+
* fixed basic heading classname ([13af9e1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/13af9e192b104ea036dc4d1f125144639dbd7205))
|
|
7
|
+
|
|
8
|
+
### Styles
|
|
9
|
+
|
|
10
|
+
* actions column sticked left ([c90e1c1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/c90e1c10b8e5197cf15a0cb3f8606ed9f76197df))
|
|
11
|
+
|
|
12
|
+
## [2.10.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.10.0...v2.10.1) (2026-01-06)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* fixed basic heading padding ([1a88475](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/1a88475f36310c5be9911609f88ce11f74bc26b0))
|
|
17
|
+
* fixed last divider padding ([d9dd2c0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/d9dd2c0ed73092a2a66a006ed8ecc25b611e1f77))
|
|
18
|
+
* fixed page heading width ([324e596](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/324e59630df1d0e8d8c20f68e6b646380114e0a8))
|
|
19
|
+
|
|
1
20
|
## [2.10.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.9.0...v2.10.0) (2026-01-06)
|
|
2
21
|
|
|
3
22
|
### Features
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._basicHeading_14qaz_1{padding:.75rem 0}._basicHeading_14qaz_1>div:first-of-type{padding-left:1rem}._basicHeading_14qaz_1>div:last-of-type{padding-right:1rem}._basicHeading_14qaz_1._inList_14qaz_13>div:last-of-type{padding-right:.5rem!important}._actions_14qaz_17>button{max-height:48px}._actions_14qaz_17 button>span[class*=mdc-button__label]{width:max-content}._invisible_14qaz_25{visibility:hidden}._leadingIcon_14qaz_29{margin-right:.5rem}._withAvatar_14qaz_33{margin-left:.25rem;padding-right:1rem;margin-top:0rem}._withAvatar_14qaz_33>._iconContainer_14qaz_39{scale:1.1}._iconContainer_14qaz_39{padding-right:.5rem;display:flex;align-items:center}._cursor_14qaz_49{cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._topBar_47g7x_1 [class*=lmnt-table__top-bar__title]{display:none}._filterBar_47g7x_5{padding:1rem;width:inherit!important}._start_47g7x_10{padding-top:0;padding-bottom:0}._emptyTable_47g7x_15{height:16rem}[class*=mnt-pagination][class*=mdc-data-table__pagination]{border-top:1px solid var(--lmnt-theme-on-secondary-stroke)}._elevation_47g7x_23{border-radius:.4rem;width:100%}._table_47g7x_28,._table_47g7x_28 [class*=mdc-data-table__table-container]{border-radius:.4rem}._table_47g7x_28 *[id=actions]{width:44px;padding:0 2px;position:sticky;right:0;background-color:var(--lmnt-theme-background)}._table_47g7x_28 tr:hover td[id=actions]{background-color:var(--table-bg-color-hover)}._noBorder_47g7x_48{border:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dividerContainer_1bd14_1{width:100%;padding:1rem 0}._mainGroup_1bd14_6 ._dividerContainer_1bd14_1:last-of-type{padding-bottom:0}._mainGroup_1bd14_6{padding:1rem;border-radius:.5rem}._fullWidth_1bd14_15{width:100%}._centerDefaultComponent_1bd14_19{margin:auto}._verticalDivider_1bd14_23{display:flex;align-self:stretch;height:auto;width:1px;background-color:var(--lmnt-theme-on-surface-stroke)}._textAlignRight_1bd14_31{text-align:right}._typoColor_1bd14_35{color:var(--lmnt-theme-on-surface-inactive)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._searchbar_g83qp_1 button{color:var(--lmnt-theme-on-surface-inactive)!important}._searchbar_g83qp_1 div[class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._searchbar_g83qp_1 div[class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
1
|
+
import { jsx as e, Fragment as a, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { D as G } from "../../index.es-Bus5gEri.js";
|
|
3
3
|
import { G as s } from "../../index.es-DsGuBR0Z.js";
|
|
4
|
-
import { P } from "../../index.es-Bo1Rhtyb.js";
|
|
4
|
+
import { P as V } from "../../index.es-Bo1Rhtyb.js";
|
|
5
5
|
import { c as w } from "../../index-Cpb-8cAN.js";
|
|
6
6
|
import { useMemo as d } from "react";
|
|
7
7
|
import { BasicHeading as _ } from "../BasicHeading/BasicHeading.js";
|
|
8
|
-
import { EmptyView as
|
|
9
|
-
import { ListArea as
|
|
10
|
-
import { u as
|
|
11
|
-
import { O as
|
|
12
|
-
import { useScrollableInfo as
|
|
13
|
-
import '../../assets/BaseView.css';const
|
|
14
|
-
fullHeight:
|
|
8
|
+
import { EmptyView as $ } from "../EmptyView/EmptyView.js";
|
|
9
|
+
import { ListArea as y } from "../ListArea/ListArea.js";
|
|
10
|
+
import { u as F } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
11
|
+
import { O as M } from "../../OfflineView-D168VIXv.js";
|
|
12
|
+
import { useScrollableInfo as O } from "./BaseView.service.js";
|
|
13
|
+
import '../../assets/BaseView.css';const P = "_fullHeight_1a5ww_1", T = "_fullWidth_1a5ww_5", q = "_maxWidth_1a5ww_9", z = "_list_1a5ww_14", J = "_desktopList_1a5ww_23", K = "_noRoundedCorners_1a5ww_28", Q = "_detail_1a5ww_32", U = "_desktopDetail_1a5ww_40", i = {
|
|
14
|
+
fullHeight: P,
|
|
15
15
|
fullWidth: T,
|
|
16
16
|
maxWidth: q,
|
|
17
17
|
list: z,
|
|
@@ -21,19 +21,19 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
21
21
|
desktopDetail: U
|
|
22
22
|
}, dt = ({
|
|
23
23
|
heading: c,
|
|
24
|
-
action:
|
|
25
|
-
hint: g = /* @__PURE__ */ e(
|
|
26
|
-
elements:
|
|
27
|
-
emptyText:
|
|
24
|
+
action: u = /* @__PURE__ */ e(a, {}),
|
|
25
|
+
hint: g = /* @__PURE__ */ e(a, {}),
|
|
26
|
+
elements: l,
|
|
27
|
+
emptyText: m,
|
|
28
28
|
hasSearch: v = !0,
|
|
29
29
|
isSorted: D = !0,
|
|
30
30
|
className: W,
|
|
31
31
|
withAvatar: k = !1,
|
|
32
32
|
listMaxHeight: x = "calc(100vh - 220px)",
|
|
33
|
-
titleLevel:
|
|
34
|
-
detailTitleLevel:
|
|
33
|
+
titleLevel: L = 5,
|
|
34
|
+
detailTitleLevel: b,
|
|
35
35
|
pathname: r,
|
|
36
|
-
basicHeadingIcon:
|
|
36
|
+
basicHeadingIcon: H,
|
|
37
37
|
isOnline: f = !0,
|
|
38
38
|
offlineViewProps: h,
|
|
39
39
|
noRoundedListItemEdges: p = !0,
|
|
@@ -41,7 +41,7 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
41
41
|
searchPlaceholder: B,
|
|
42
42
|
isGrouped: R = !1
|
|
43
43
|
}) => {
|
|
44
|
-
const { isDesktopNavbar: o } =
|
|
44
|
+
const { isDesktopNavbar: o } = F(), t = d(() => l.find((E) => E.route === r), [r, l]), C = d(() => f ? t?.component ? t.component : o ? /* @__PURE__ */ e(V, { className: i.fullWidth, children: /* @__PURE__ */ e($, { title: m }) }) : /* @__PURE__ */ e(a, {}) : /* @__PURE__ */ e(M, { ...h, fullWidth: !0 }), [t?.component, m, o, f, h]), { showList: I, showDetail: S } = d(() => o ? { showList: !0, showDetail: !0 } : { showList: !t, showDetail: !!t }, [t, o]), { ref: A, hasScrolled: j } = O([
|
|
45
45
|
r,
|
|
46
46
|
o
|
|
47
47
|
]);
|
|
@@ -52,7 +52,7 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
52
52
|
className: `${i.fullHeight} ${W ?? ""}`,
|
|
53
53
|
fullWidth: !0,
|
|
54
54
|
children: [
|
|
55
|
-
|
|
55
|
+
I && /* @__PURE__ */ n(
|
|
56
56
|
s,
|
|
57
57
|
{
|
|
58
58
|
"data-testid": "show-list-container",
|
|
@@ -67,20 +67,21 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
67
67
|
c && /* @__PURE__ */ e(
|
|
68
68
|
_,
|
|
69
69
|
{
|
|
70
|
-
icon:
|
|
70
|
+
icon: H,
|
|
71
71
|
"data-testid": "heading",
|
|
72
72
|
heading: c,
|
|
73
|
-
level:
|
|
73
|
+
level: L,
|
|
74
74
|
marginBottom: 0,
|
|
75
|
-
|
|
75
|
+
inList: !0,
|
|
76
|
+
children: u
|
|
76
77
|
}
|
|
77
78
|
),
|
|
78
79
|
g,
|
|
79
80
|
/* @__PURE__ */ e(
|
|
80
|
-
|
|
81
|
+
y,
|
|
81
82
|
{
|
|
82
83
|
hasLastItemNoRoundedEdges: p,
|
|
83
|
-
elements:
|
|
84
|
+
elements: l,
|
|
84
85
|
hasSearch: v,
|
|
85
86
|
maxHeight: x,
|
|
86
87
|
isSorted: D,
|
|
@@ -93,7 +94,7 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
93
94
|
]
|
|
94
95
|
}
|
|
95
96
|
),
|
|
96
|
-
|
|
97
|
+
S && /* @__PURE__ */ n(
|
|
97
98
|
s,
|
|
98
99
|
{
|
|
99
100
|
"data-testid": "show-details-container",
|
|
@@ -104,16 +105,15 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
104
105
|
/* @__PURE__ */ e(
|
|
105
106
|
_,
|
|
106
107
|
{
|
|
107
|
-
customHeaderPadding: "0.75rem 0.75rem 0.75rem 1rem",
|
|
108
108
|
className: i.maxWidth,
|
|
109
109
|
heading: t?.detailTitle ?? t?.title ?? "",
|
|
110
|
-
level:
|
|
111
|
-
icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
|
|
110
|
+
level: b,
|
|
111
|
+
icon: t?.hideIconInDetail === !0 ? void 0 : t?.detailIcon ?? t?.icon,
|
|
112
112
|
marginBottom: 0,
|
|
113
113
|
invisibleButton: t?.detailAction === void 0,
|
|
114
114
|
withAvatar: k,
|
|
115
115
|
subHeading: t?.detailSubTitle,
|
|
116
|
-
children: t?.detailAction ??
|
|
116
|
+
children: t?.detailAction ?? u
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
119
|
j && /* @__PURE__ */ e(G, {}),
|
|
@@ -123,7 +123,7 @@ import '../../assets/BaseView.css';const O = "_fullHeight_1a5ww_1", T = "_fullWi
|
|
|
123
123
|
"data-testid": "base-view-show-details-scroll-component-group",
|
|
124
124
|
fullWidth: !0,
|
|
125
125
|
direction: "vertical",
|
|
126
|
-
ref:
|
|
126
|
+
ref: A,
|
|
127
127
|
children: C
|
|
128
128
|
}
|
|
129
129
|
)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { a as n, s as e, f as p } from "../../react.esm-CX1WJ2Pp.js";
|
|
3
3
|
import { a as l } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
4
|
-
import { BaseView as
|
|
5
|
-
import { d as u, b as d, a as c, t as
|
|
4
|
+
import { BaseView as r } from "./BaseView.js";
|
|
5
|
+
import { d as u, b as d, a as c, t as i, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
|
|
6
6
|
u("BaseView Test", () => {
|
|
7
7
|
d(() => {
|
|
8
8
|
c.spyOn(l, "useBreakpoints").mockReturnValue({
|
|
@@ -16,6 +16,7 @@ u("BaseView Test", () => {
|
|
|
16
16
|
{
|
|
17
17
|
id: "1",
|
|
18
18
|
title: "user.personal_information",
|
|
19
|
+
detailIcon: "border_clear",
|
|
19
20
|
icon: "account_circle",
|
|
20
21
|
route: "/personal-profile/personal-information",
|
|
21
22
|
component: /* @__PURE__ */ o(s, { children: "Personal information selected" })
|
|
@@ -37,10 +38,10 @@ u("BaseView Test", () => {
|
|
|
37
38
|
component: /* @__PURE__ */ o(s, { children: "Security selected" })
|
|
38
39
|
}
|
|
39
40
|
];
|
|
40
|
-
|
|
41
|
+
i("render BaseView with empty view and navigation list", () => {
|
|
41
42
|
n(
|
|
42
43
|
/* @__PURE__ */ o(
|
|
43
|
-
|
|
44
|
+
r,
|
|
44
45
|
{
|
|
45
46
|
pathname: "/personal-profile",
|
|
46
47
|
elements: a,
|
|
@@ -52,10 +53,10 @@ u("BaseView Test", () => {
|
|
|
52
53
|
}
|
|
53
54
|
)
|
|
54
55
|
), t(e.getByText("user.noselection")).toBeInTheDocument(), t(e.getByText("user.personal-profile")).toBeInTheDocument(), t(e.getByText("user.personal_information")).toBeInTheDocument(), t(e.getByText("user.data_privacy")).toBeInTheDocument(), t(e.getByText("user.security")).toBeInTheDocument();
|
|
55
|
-
}),
|
|
56
|
+
}), i("render BaseView with data and navigation list", () => {
|
|
56
57
|
n(
|
|
57
58
|
/* @__PURE__ */ o(
|
|
58
|
-
|
|
59
|
+
r,
|
|
59
60
|
{
|
|
60
61
|
pathname: "/personal-profile/personal-information",
|
|
61
62
|
elements: a,
|
|
@@ -67,11 +68,11 @@ u("BaseView Test", () => {
|
|
|
67
68
|
basicHeadingIcon: "directions_car"
|
|
68
69
|
}
|
|
69
70
|
)
|
|
70
|
-
), t(e.getByText("Personal information selected")).toBeInTheDocument(), t(e.getAllByText("
|
|
71
|
-
}),
|
|
71
|
+
), t(e.getByText("Personal information selected")).toBeInTheDocument(), t(e.getAllByText("user.personal_information")).toHaveLength(2), t(e.getByText("account_circle")).toBeInTheDocument(), t(e.getByText("border_clear")).toBeInTheDocument(), t(e.getByText("directions_car")).toBeInTheDocument();
|
|
72
|
+
}), i("render BaseView with custom detail title and no detail icon", () => {
|
|
72
73
|
n(
|
|
73
74
|
/* @__PURE__ */ o(
|
|
74
|
-
|
|
75
|
+
r,
|
|
75
76
|
{
|
|
76
77
|
pathname: "/personal-profile/data-privacy",
|
|
77
78
|
elements: a,
|
|
@@ -83,7 +84,7 @@ u("BaseView Test", () => {
|
|
|
83
84
|
}
|
|
84
85
|
)
|
|
85
86
|
), t(e.getByText("Data Privacy selected")).toBeInTheDocument(), t(e.getByText("Data Privacy 2000")).toBeInTheDocument(), t(e.getAllByText("privacy_tip")).toHaveLength(1), t(e.getAllByText("user.data_privacy")).toHaveLength(1);
|
|
86
|
-
}),
|
|
87
|
+
}), i("hide empty view when screen is small", () => {
|
|
87
88
|
c.spyOn(l, "useBreakpoints").mockReturnValue({
|
|
88
89
|
isMobile: !0,
|
|
89
90
|
isTablet: !1,
|
|
@@ -91,7 +92,7 @@ u("BaseView Test", () => {
|
|
|
91
92
|
isDesktopNavbar: !1
|
|
92
93
|
}), n(
|
|
93
94
|
/* @__PURE__ */ o(
|
|
94
|
-
|
|
95
|
+
r,
|
|
95
96
|
{
|
|
96
97
|
pathname: "/personal-profile/data-privacy",
|
|
97
98
|
elements: a,
|
|
@@ -103,10 +104,10 @@ u("BaseView Test", () => {
|
|
|
103
104
|
}
|
|
104
105
|
)
|
|
105
106
|
), t(e.queryByText("user.noselection")).not.toBeInTheDocument();
|
|
106
|
-
}),
|
|
107
|
+
}), i("render BaseView with selected detail section", () => {
|
|
107
108
|
n(
|
|
108
109
|
/* @__PURE__ */ o(
|
|
109
|
-
|
|
110
|
+
r,
|
|
110
111
|
{
|
|
111
112
|
pathname: "/personal-profile/data-privacy",
|
|
112
113
|
elements: a,
|
|
@@ -118,10 +119,10 @@ u("BaseView Test", () => {
|
|
|
118
119
|
}
|
|
119
120
|
)
|
|
120
121
|
), p.click(e.getAllByRole("option")[1]), t(e.getByText("Data Privacy selected")).toBeInTheDocument();
|
|
121
|
-
}),
|
|
122
|
+
}), i("renders only offline view when offline", () => {
|
|
122
123
|
n(
|
|
123
124
|
/* @__PURE__ */ o(
|
|
124
|
-
|
|
125
|
+
r,
|
|
125
126
|
{
|
|
126
127
|
pathname: "/personal-profile/personal-information",
|
|
127
128
|
elements: a,
|
|
@@ -47,5 +47,10 @@ export type BasicHeadingProps = {
|
|
|
47
47
|
* @default false
|
|
48
48
|
*/
|
|
49
49
|
withAvatar?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* if true the header will have an avatar
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
inList?: boolean;
|
|
50
55
|
};
|
|
51
|
-
export declare const BasicHeading: ({ children, marginBottom, heading, icon, className, subHeading, subHeadingLevel, invisibleButton, level, fontWeight, withAvatar, }: PropsWithChildren<BasicHeadingProps>) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const BasicHeading: ({ children, marginBottom, heading, icon, className, subHeading, subHeadingLevel, invisibleButton, level, fontWeight, withAvatar, inList, }: PropsWithChildren<BasicHeadingProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,89 +1,94 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { G as t } from "../../index.es-DsGuBR0Z.js";
|
|
3
|
-
import { I as
|
|
4
|
-
import { b as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Iconify as
|
|
7
|
-
import { AvailableCustomIcons as
|
|
8
|
-
import { u as
|
|
3
|
+
import { I as A } from "../../index.es-DYs8W4jv.js";
|
|
4
|
+
import { b as I, T as z } from "../../index.es-DCSgIiJH.js";
|
|
5
|
+
import { c as m } from "../../index-Cpb-8cAN.js";
|
|
6
|
+
import { Iconify as H } from "../Iconify/Iconify.js";
|
|
7
|
+
import { AvailableCustomIcons as q } from "../../enums/AvailableCustomIcons.js";
|
|
8
|
+
import { u as w } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
9
9
|
import { OverflowTooltip as x } from "../OverflowTooltip/OverflowTooltip.js";
|
|
10
|
-
import '../../assets/BasicHeading.css';const C = "
|
|
10
|
+
import '../../assets/BasicHeading.css';const C = "_basicHeading_14qaz_1", N = "_inList_14qaz_13", T = "_actions_14qaz_17", B = "_invisible_14qaz_25", L = "_leadingIcon_14qaz_29", W = "_withAvatar_14qaz_33", j = "_iconContainer_14qaz_39", e = {
|
|
11
11
|
basicHeading: C,
|
|
12
|
+
inList: N,
|
|
12
13
|
actions: T,
|
|
13
14
|
invisible: B,
|
|
14
|
-
leadingIcon:
|
|
15
|
-
withAvatar:
|
|
16
|
-
iconContainer:
|
|
17
|
-
},
|
|
18
|
-
|
|
15
|
+
leadingIcon: L,
|
|
16
|
+
withAvatar: W,
|
|
17
|
+
iconContainer: j
|
|
18
|
+
}, k = ({ icon: i }) => i ? typeof i != "string" ? /* @__PURE__ */ n("div", { className: e.iconContainer, children: i }) : i in q ? /* @__PURE__ */ n(
|
|
19
|
+
H,
|
|
19
20
|
{
|
|
20
21
|
icon: i,
|
|
21
|
-
className:
|
|
22
|
+
className: e.leadingIcon,
|
|
22
23
|
iconSize: "medium",
|
|
23
24
|
iconType: "filled"
|
|
24
25
|
}
|
|
25
|
-
) : /* @__PURE__ */
|
|
26
|
+
) : /* @__PURE__ */ n(A, { iconSize: "medium", iconType: "filled", icon: i, className: e.leadingIcon }) : null, J = ({
|
|
26
27
|
children: i,
|
|
27
28
|
marginBottom: s,
|
|
28
29
|
heading: a,
|
|
29
|
-
icon:
|
|
30
|
-
className:
|
|
31
|
-
subHeading:
|
|
30
|
+
icon: p,
|
|
31
|
+
className: r,
|
|
32
|
+
subHeading: f,
|
|
32
33
|
subHeadingLevel: g = 2,
|
|
33
|
-
invisibleButton:
|
|
34
|
-
level:
|
|
35
|
-
fontWeight:
|
|
36
|
-
withAvatar:
|
|
34
|
+
invisibleButton: _ = !1,
|
|
35
|
+
level: c = 5,
|
|
36
|
+
fontWeight: l = 400,
|
|
37
|
+
withAvatar: u = !1,
|
|
38
|
+
inList: y = !1
|
|
37
39
|
}) => {
|
|
38
|
-
const { isDesktop:
|
|
40
|
+
const { isDesktop: d } = w(), v = d ? c : c + 1, b = l === "bold" ? 500 : l, h = typeof s == "number" ? `${s}px` : "2rem";
|
|
39
41
|
return /* @__PURE__ */ o(
|
|
40
42
|
t,
|
|
41
43
|
{
|
|
42
44
|
primaryAlign: "space-between",
|
|
43
45
|
secondaryAlign: "center",
|
|
44
46
|
gap: "none",
|
|
45
|
-
className:
|
|
46
|
-
style: { marginBottom:
|
|
47
|
+
className: m(e.basicHeading, y && e.inList, r),
|
|
48
|
+
style: { marginBottom: h },
|
|
47
49
|
"data-testid": "HeaderContainer",
|
|
50
|
+
fullWidth: !0,
|
|
48
51
|
children: [
|
|
49
52
|
/* @__PURE__ */ o(
|
|
50
53
|
t,
|
|
51
54
|
{
|
|
52
55
|
secondaryAlign: "center",
|
|
53
56
|
gap: "none",
|
|
54
|
-
className: `${
|
|
57
|
+
className: `${u && d ? e.withAvatar : ""}`,
|
|
58
|
+
fullWidth: !0,
|
|
55
59
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */ o(t, { direction: "vertical", gap: "none", children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
60
|
+
/* @__PURE__ */ n(k, { icon: p }),
|
|
61
|
+
/* @__PURE__ */ o(t, { direction: "vertical", gap: "none", fullWidth: !0, children: [
|
|
62
|
+
/* @__PURE__ */ n(x, { id: a, text: a, children: /* @__PURE__ */ n(
|
|
63
|
+
I,
|
|
60
64
|
{
|
|
61
|
-
level:
|
|
65
|
+
level: v,
|
|
62
66
|
"data-testid": "Header",
|
|
63
|
-
className:
|
|
64
|
-
style: { fontWeight:
|
|
67
|
+
className: r ?? "",
|
|
68
|
+
style: { fontWeight: b },
|
|
65
69
|
children: a
|
|
66
70
|
}
|
|
67
71
|
) }),
|
|
68
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ n(z, { level: g, children: f })
|
|
69
73
|
] })
|
|
70
74
|
]
|
|
71
75
|
}
|
|
72
76
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
77
|
+
i ? /* @__PURE__ */ n(
|
|
74
78
|
t,
|
|
75
79
|
{
|
|
80
|
+
primaryAlign: "end",
|
|
76
81
|
secondaryAlign: "center",
|
|
77
82
|
gap: "dense",
|
|
78
|
-
className:
|
|
83
|
+
className: m(_ && e.invisible, e.actions),
|
|
79
84
|
"data-testid": "RightPart",
|
|
80
85
|
children: i
|
|
81
86
|
}
|
|
82
|
-
)
|
|
87
|
+
) : null
|
|
83
88
|
]
|
|
84
89
|
}
|
|
85
90
|
);
|
|
86
91
|
};
|
|
87
92
|
export {
|
|
88
|
-
|
|
93
|
+
J as BasicHeading
|
|
89
94
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as o, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { B as g } from "../../index.es-DUcI2Zyr.js";
|
|
3
|
-
import { a
|
|
4
|
-
import { BasicHeading as
|
|
3
|
+
import { a, s as t } from "../../react.esm-CX1WJ2Pp.js";
|
|
4
|
+
import { BasicHeading as i } from "./BasicHeading.js";
|
|
5
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" }));
|
|
9
9
|
const n = t.getByTestId("HeaderContainer");
|
|
10
10
|
e(n).toBeDefined();
|
|
11
11
|
const r = t.getByTestId("Header");
|
|
12
12
|
e(r).toBeDefined(), e(r).toHaveTextContent("Test");
|
|
13
|
-
const c = t.
|
|
14
|
-
e(c).
|
|
13
|
+
const c = t.queryByTestId("RightPart");
|
|
14
|
+
e(c).toBeNull();
|
|
15
15
|
}), s("render large container with children", () => {
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */ o(
|
|
16
|
+
a(
|
|
17
|
+
/* @__PURE__ */ o(i, { heading: "Test", marginBottom: "large", children: /* @__PURE__ */ o(g, { children: "Extracontent" }) })
|
|
18
18
|
);
|
|
19
19
|
const n = t.getByTestId("HeaderContainer");
|
|
20
20
|
e(n).toBeDefined();
|
|
@@ -23,13 +23,13 @@ h("BasicHeading-Test", () => {
|
|
|
23
23
|
const c = t.getByTestId("RightPart");
|
|
24
24
|
e(c).toBeDefined(), e(c).toContainHTML("<button");
|
|
25
25
|
}), s("render with available custom icon", () => {
|
|
26
|
-
|
|
26
|
+
a(/* @__PURE__ */ o(i, { heading: "Test", icon: "farm" }));
|
|
27
27
|
const n = t.getByTestId("farm");
|
|
28
28
|
e(n).toBeInTheDocument();
|
|
29
29
|
}), s("render with JSX element as icon", () => {
|
|
30
|
-
|
|
30
|
+
a(/* @__PURE__ */ o(i, { heading: "Test", icon: /* @__PURE__ */ o(d, { children: "JSX" }) })), e(t.getByText("JSX")).toBeInTheDocument();
|
|
31
31
|
}), s("render with other icon", () => {
|
|
32
|
-
|
|
32
|
+
a(/* @__PURE__ */ o(i, { heading: "Test", icon: "contact_support" }));
|
|
33
33
|
const n = document.querySelector("i");
|
|
34
34
|
e(n).toHaveTextContent("contact_support");
|
|
35
35
|
});
|
|
@@ -11493,7 +11493,7 @@ var $g = ["title", "actions", "prominent", "filterBar", "className"], Fa = Fv, R
|
|
|
11493
11493
|
});
|
|
11494
11494
|
Ro.displayName = "TableTopBar";
|
|
11495
11495
|
Ro.propTypes = Mv;
|
|
11496
|
-
const Mg = "
|
|
11496
|
+
const Mg = "_topBar_47g7x_1", Fg = "_filterBar_47g7x_5", Gg = "_start_47g7x_10", zg = "_emptyTable_47g7x_15", Wg = "_elevation_47g7x_23", kg = "_table_47g7x_28", Ug = "_noBorder_47g7x_48", Ln = {
|
|
11497
11497
|
topBar: Mg,
|
|
11498
11498
|
filterBar: Fg,
|
|
11499
11499
|
start: Gg,
|
|
@@ -1,58 +1,64 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { ContextMenu as
|
|
4
|
-
const
|
|
2
|
+
import { useMemo as p } from "react";
|
|
3
|
+
import { ContextMenu as l } from "../ContextMenu/ContextMenu.js";
|
|
4
|
+
const P = ({
|
|
5
5
|
data: r = [],
|
|
6
|
-
order:
|
|
7
|
-
cellTemplates:
|
|
8
|
-
headerTranslation: t = (
|
|
9
|
-
getRowActions:
|
|
6
|
+
order: e = [],
|
|
7
|
+
cellTemplates: n = void 0,
|
|
8
|
+
headerTranslation: t = (d) => d,
|
|
9
|
+
getRowActions: c = void 0,
|
|
10
10
|
customColumnWidth: o,
|
|
11
11
|
cardTitleColumn: u,
|
|
12
12
|
cardSubTitleColumn: s
|
|
13
|
-
}) =>
|
|
13
|
+
}) => p(() => {
|
|
14
14
|
if (r?.length === 0) return [];
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const d = v(r[0], e).map((i) => {
|
|
16
|
+
const f = o ? o[i] : void 0;
|
|
17
17
|
return {
|
|
18
18
|
id: i,
|
|
19
19
|
header: t(i),
|
|
20
20
|
accessor: i,
|
|
21
|
-
cellTemplate:
|
|
22
|
-
cellProps:
|
|
23
|
-
headerCellProps:
|
|
21
|
+
cellTemplate: n ? n[i] : void 0,
|
|
22
|
+
cellProps: f ? { width: f } : void 0,
|
|
23
|
+
headerCellProps: f ? { width: f } : void 0,
|
|
24
24
|
asCardTitle: i === u,
|
|
25
25
|
asCardSubtitle: i === s
|
|
26
26
|
};
|
|
27
27
|
});
|
|
28
|
-
return
|
|
29
|
-
...
|
|
30
|
-
{
|
|
31
|
-
|
|
28
|
+
return c ? [
|
|
29
|
+
...d,
|
|
30
|
+
{
|
|
31
|
+
id: "actions",
|
|
32
|
+
header: " ",
|
|
33
|
+
accessor: "actions",
|
|
34
|
+
cellProps: { id: "actions" },
|
|
35
|
+
headerCellProps: { id: "actions" }
|
|
36
|
+
}
|
|
37
|
+
] : d;
|
|
32
38
|
}, [
|
|
33
39
|
r,
|
|
34
|
-
e,
|
|
35
40
|
n,
|
|
41
|
+
e,
|
|
36
42
|
t,
|
|
37
|
-
|
|
43
|
+
c,
|
|
38
44
|
o,
|
|
39
45
|
u,
|
|
40
46
|
s
|
|
41
|
-
]),
|
|
47
|
+
]), C = ({
|
|
42
48
|
data: r = [],
|
|
43
|
-
getRowActions:
|
|
44
|
-
}) =>
|
|
45
|
-
const t = /* @__PURE__ */ a(
|
|
46
|
-
return { ...
|
|
47
|
-
}) : r, [r,
|
|
49
|
+
getRowActions: e = void 0
|
|
50
|
+
}) => p(() => e ? r.map((n) => {
|
|
51
|
+
const t = /* @__PURE__ */ a(l, { actions: e(n), iconOrientation: "horizontal" });
|
|
52
|
+
return { ...n, actions: t };
|
|
53
|
+
}) : r, [r, e]), v = (r, e) => {
|
|
48
54
|
if (!r) return [];
|
|
49
|
-
let
|
|
50
|
-
return
|
|
51
|
-
const o =
|
|
55
|
+
let n = Object.keys(r).map((t) => t);
|
|
56
|
+
return e?.length > 0 && (n = n.sort((t, c) => {
|
|
57
|
+
const o = e.findIndex((s) => s === t), u = e.findIndex((s) => s === c);
|
|
52
58
|
return o === -1 ? 1 : u === -1 ? -1 : o - u;
|
|
53
|
-
})),
|
|
59
|
+
})), n;
|
|
54
60
|
};
|
|
55
61
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
P as useGenerateColumns,
|
|
63
|
+
C as useGenerateTableData
|
|
58
64
|
};
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { jsxs as p, Fragment as
|
|
1
|
+
import { jsxs as p, Fragment as h, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { D as d } from "../../index.es-Bus5gEri.js";
|
|
3
3
|
import { G as c } from "../../index.es-DsGuBR0Z.js";
|
|
4
4
|
import { a as g, d as _ } from "../../index.es-DCSgIiJH.js";
|
|
5
5
|
import { useMemo as f, Fragment as C } from "react";
|
|
6
6
|
import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
7
|
-
import '../../assets/InfoGroup.css';const y = "
|
|
7
|
+
import '../../assets/InfoGroup.css';const y = "_dividerContainer_1bd14_1", D = "_mainGroup_1bd14_6", b = "_centerDefaultComponent_1bd14_19", A = "_verticalDivider_1bd14_23", G = "_textAlignRight_1bd14_31", N = "_typoColor_1bd14_35", a = {
|
|
8
8
|
dividerContainer: y,
|
|
9
|
-
|
|
9
|
+
mainGroup: D,
|
|
10
|
+
centerDefaultComponent: b,
|
|
10
11
|
verticalDivider: A,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
typoColor: R
|
|
12
|
+
textAlignRight: G,
|
|
13
|
+
typoColor: N
|
|
14
14
|
}, j = ({ fields: r, bold: i }) => {
|
|
15
|
-
const { isDesktop:
|
|
16
|
-
s != 0 && /* @__PURE__ */ t("span", { "data-testid": "test-divider", className:
|
|
15
|
+
const { isDesktop: o } = m(), e = !!r.length && Array.isArray(r.at(0)), n = f(() => e && o ? r.map((l, s) => /* @__PURE__ */ p(h, { children: [
|
|
16
|
+
s != 0 && /* @__PURE__ */ t("span", { "data-testid": "test-divider", className: a.dividerContainer, children: /* @__PURE__ */ t(d, {}) }),
|
|
17
17
|
/* @__PURE__ */ t(u, { fields: l, bold: i }),
|
|
18
18
|
s === r.length - 1 && /* @__PURE__ */ t(
|
|
19
19
|
"span",
|
|
20
20
|
{
|
|
21
21
|
"data-testid": "test-divider-end",
|
|
22
|
-
className:
|
|
22
|
+
className: a.dividerContainer,
|
|
23
23
|
children: /* @__PURE__ */ t(d, {})
|
|
24
24
|
}
|
|
25
25
|
)
|
|
26
|
-
] })) : /* @__PURE__ */ t(u, { fields: r.flat(), bold: i }), [
|
|
26
|
+
] })) : /* @__PURE__ */ t(u, { fields: r.flat(), bold: i }), [o, e, r, i]);
|
|
27
27
|
return /* @__PURE__ */ t(
|
|
28
28
|
c,
|
|
29
29
|
{
|
|
30
30
|
"data-testid": "infoGroup",
|
|
31
31
|
direction: "vertical",
|
|
32
32
|
fullWidth: !0,
|
|
33
|
-
className:
|
|
33
|
+
className: a.mainGroup,
|
|
34
34
|
gap: "none",
|
|
35
35
|
children: n
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
}, u = ({ fields: r, bold: i }) => {
|
|
39
|
-
const { isDesktop:
|
|
39
|
+
const { isDesktop: o } = m();
|
|
40
40
|
return /* @__PURE__ */ t(
|
|
41
41
|
c,
|
|
42
42
|
{
|
|
43
43
|
"data-testid": "singleRow",
|
|
44
44
|
fullWidth: !0,
|
|
45
|
-
direction:
|
|
45
|
+
direction: o ? "horizontal" : "vertical",
|
|
46
46
|
secondaryAlign: "start",
|
|
47
47
|
children: r.map((e, n) => {
|
|
48
|
-
const l =
|
|
48
|
+
const l = o ? /* @__PURE__ */ t("div", { className: a.verticalDivider }) : /* @__PURE__ */ t(d, {});
|
|
49
49
|
return /* @__PURE__ */ p(C, { children: [
|
|
50
50
|
n != 0 && l,
|
|
51
|
-
/* @__PURE__ */ t(
|
|
51
|
+
/* @__PURE__ */ t(R, { field: e, bold: i, variant: e.componentVariant })
|
|
52
52
|
] }, `${e.label ?? "label"}_${n}`);
|
|
53
53
|
})
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
-
},
|
|
56
|
+
}, R = ({
|
|
57
57
|
field: r,
|
|
58
58
|
bold: i,
|
|
59
|
-
variant:
|
|
59
|
+
variant: o = "default"
|
|
60
60
|
}) => {
|
|
61
|
-
const { isDesktop: e } = m(), { component: n, value: l, label: s, themeColor:
|
|
62
|
-
return n &&
|
|
61
|
+
const { isDesktop: e } = m(), { component: n, value: l, label: s, themeColor: v } = r;
|
|
62
|
+
return n && o === "default" ? /* @__PURE__ */ t(c, { fullWidth: !0, primaryAlign: "center", className: a.centerDefaultComponent, children: n }) : /* @__PURE__ */ p(
|
|
63
63
|
c,
|
|
64
64
|
{
|
|
65
65
|
fullWidth: !0,
|
|
@@ -68,15 +68,15 @@ import '../../assets/InfoGroup.css';const y = "_dividerContainer_v06ae_1", D = "
|
|
|
68
68
|
gap: "none",
|
|
69
69
|
primaryAlign: e ? "start" : "space-between",
|
|
70
70
|
secondaryAlign: e ? "baseline" : "center",
|
|
71
|
-
className: e ? "" :
|
|
71
|
+
className: e ? "" : a.textAlignRight,
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */ t(g, { className:
|
|
74
|
-
n ? /* @__PURE__ */ t(
|
|
73
|
+
/* @__PURE__ */ t(g, { className: a.typoColor, children: s }),
|
|
74
|
+
n ? /* @__PURE__ */ t(h, { children: n }) : /* @__PURE__ */ t(_, { level: 1, "data-testid": "infoGroupValue", themeColor: v, bold: i, children: l })
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
R as Cell,
|
|
81
81
|
j as InfoGroup
|
|
82
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextfieldProps } from '@element-public/react-textfield';
|
|
2
2
|
|
|
3
|
-
type SearchBarProps = Pick<TextfieldProps, 'placeholder' | 'dense' | 'className' | 'fullWidth'> & {
|
|
3
|
+
type SearchBarProps = Pick<TextfieldProps, 'placeholder' | 'dense' | 'className' | 'fullWidth' | 'label'> & {
|
|
4
4
|
/**
|
|
5
5
|
* the current search term
|
|
6
6
|
*/
|
|
@@ -10,5 +10,5 @@ type SearchBarProps = Pick<TextfieldProps, 'placeholder' | 'dense' | 'className'
|
|
|
10
10
|
*/
|
|
11
11
|
setSearchTerm: (value: string) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const SearchBar: ({ className, dense, searchTerm, setSearchTerm, placeholder, fullWidth, }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const SearchBar: ({ className, dense, searchTerm, setSearchTerm, placeholder, fullWidth, label }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { I as
|
|
3
|
-
import { T as
|
|
4
|
-
import '../../assets/SearchBar.css';const
|
|
5
|
-
searchbar:
|
|
6
|
-
},
|
|
2
|
+
import { I as l } from "../../index.es-BzdG6flH.js";
|
|
3
|
+
import { T as u } from "../../index.es-BLolvOHO.js";
|
|
4
|
+
import '../../assets/SearchBar.css';const b = "_searchbar_g83qp_1", d = {
|
|
5
|
+
searchbar: b
|
|
6
|
+
}, g = ({
|
|
7
7
|
className: r = "",
|
|
8
|
-
dense:
|
|
8
|
+
dense: e = !1,
|
|
9
9
|
searchTerm: t,
|
|
10
10
|
setSearchTerm: a,
|
|
11
|
-
placeholder:
|
|
12
|
-
fullWidth: s = !0
|
|
11
|
+
placeholder: n,
|
|
12
|
+
fullWidth: s = !0,
|
|
13
|
+
label: c
|
|
13
14
|
}) => /* @__PURE__ */ o(
|
|
14
|
-
|
|
15
|
+
u,
|
|
15
16
|
{
|
|
16
17
|
"data-testid": "search-bar-input",
|
|
17
|
-
className: `${r ?? ""} ${
|
|
18
|
-
dense:
|
|
18
|
+
className: `${r ?? ""} ${d.searchbar}`,
|
|
19
|
+
dense: e,
|
|
20
|
+
label: c,
|
|
19
21
|
variant: "outlined",
|
|
20
|
-
placeholder:
|
|
22
|
+
placeholder: n,
|
|
21
23
|
value: t,
|
|
22
|
-
onChange: (
|
|
24
|
+
onChange: (i) => a(i.target.value),
|
|
23
25
|
fullWidth: s,
|
|
24
26
|
trailingIcon: /* @__PURE__ */ o(
|
|
25
|
-
|
|
27
|
+
l,
|
|
26
28
|
{
|
|
27
29
|
"data-testid": "search-bar-icon-button",
|
|
28
30
|
icon: t ? "close" : "search",
|
|
@@ -33,5 +35,5 @@ import '../../assets/SearchBar.css';const u = "_searchbar_gnvwc_1", b = {
|
|
|
33
35
|
}
|
|
34
36
|
);
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
g as SearchBar
|
|
37
39
|
};
|
|
@@ -183,8 +183,13 @@ export type GenericColumn<T> = {
|
|
|
183
183
|
accessor: keyof T;
|
|
184
184
|
cellTemplate?: (props: CellTemplateProps<T>) => JSX.Element;
|
|
185
185
|
cellProps?: {
|
|
186
|
-
|
|
186
|
+
id?: string;
|
|
187
|
+
width?: string | number;
|
|
187
188
|
};
|
|
188
189
|
asCardTitle?: boolean;
|
|
189
190
|
asCardSubtitle?: boolean;
|
|
191
|
+
headerCellProps?: {
|
|
192
|
+
id?: string;
|
|
193
|
+
width?: string | number;
|
|
194
|
+
};
|
|
190
195
|
};
|
|
@@ -31,7 +31,11 @@ export type BaseListElement = {
|
|
|
31
31
|
*/
|
|
32
32
|
title: string;
|
|
33
33
|
/**
|
|
34
|
-
* the baseview normally show the
|
|
34
|
+
* the baseview normally show the item icon in the detail view, if you want to show a different icon set this
|
|
35
|
+
*/
|
|
36
|
+
detailIcon?: JSX.Element | string;
|
|
37
|
+
/**
|
|
38
|
+
* the baseview normally show the item title in the detail view, if you want to show a different title set this
|
|
35
39
|
*/
|
|
36
40
|
detailTitle?: string;
|
|
37
41
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|