@hortiview/shared-components 2.8.7 → 2.9.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 +35 -0
- package/dist/{AlertBanner-D-NTP_6i.js → AlertBanner-Dss0v6W0.js} +3 -3
- package/dist/{BigLoadingSpinner-CCxsMWnc.js → BigLoadingSpinner-BeHzqdOg.js} +1 -1
- package/dist/{GenericCard-DOKyENNm.js → GenericCard-MjxZ1L7r.js} +3 -3
- package/dist/ListAreaService-Dx9WBGHB.js +125 -0
- package/dist/{OfflineView-DHtzNLwt.js → OfflineView-D168VIXv.js} +3 -3
- package/dist/assets/BaseView.css +1 -1
- package/dist/assets/BasicHeading.css +1 -1
- package/dist/assets/BlockView.css +1 -1
- package/dist/assets/ContextMenu.css +1 -1
- package/dist/assets/CustomTextField.css +1 -1
- package/dist/assets/EmptyView.css +1 -0
- package/dist/assets/Filter.css +1 -1
- package/dist/assets/FormDatePicker.css +1 -1
- package/dist/assets/FormSelect.css +1 -1
- package/dist/assets/FormText.css +1 -1
- package/dist/assets/HashTabView.css +1 -1
- package/dist/assets/InfoGroup.css +1 -1
- package/dist/assets/ListAreaService.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/OnboardingBanner.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/BaseView/BaseView.d.ts +17 -1
- package/dist/components/BaseView/BaseView.js +119 -76
- package/dist/components/BaseView/BaseView.service.d.ts +7 -0
- package/dist/components/BaseView/BaseView.service.js +27 -0
- package/dist/components/BaseView/BaseView.test.js +18 -17
- package/dist/components/BasicHeading/BasicHeading.d.ts +6 -1
- package/dist/components/BasicHeading/BasicHeading.js +57 -53
- package/dist/components/BasicHeading/BasicHeading.test.js +24 -24
- package/dist/components/BlockView/BlockView.d.ts +15 -3
- package/dist/components/BlockView/BlockView.js +69 -58
- package/dist/components/ChipCard/ChipCard.js +7 -7
- package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu.js +52 -41
- package/dist/components/DeleteModal/DeleteModal.js +4 -4
- package/dist/components/DetailContentWrapper/DetailContentWrapper.d.ts +18 -3
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +13 -11
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.d.ts +18 -6
- package/dist/components/EmptyView/EmptyView.js +37 -309
- package/dist/components/EmptyView/EmptyView.test.js +34 -38
- package/dist/components/Filter/Filter.d.ts +5 -1
- package/dist/components/Filter/Filter.js +113 -98
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +21 -20
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +33 -33
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +3 -3
- package/dist/components/FormComponents/FormText/FormText.js +45 -44
- package/dist/components/FormComponents/FormToggle/FormToggle.js +3 -3
- package/dist/components/GenericTable/GenericTable.js +17 -17
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +3 -3
- package/dist/components/HashTabView/HashTabView.js +119 -117
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.d.ts +4 -0
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/InfoCard/InfoCard.js +3 -3
- package/dist/components/InfoGroup/InfoGroup.js +47 -38
- package/dist/components/ListArea/ListArea.d.ts +6 -2
- package/dist/components/ListArea/ListArea.js +37 -32
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +4 -4
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +4 -4
- package/dist/components/Modal/Modal.js +119 -103
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.js +35 -33
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/{find-B-dm7n_F.js → find-Dpy_M6vm.js} +1 -1
- package/dist/{index.es-DObVvepK.js → index.es-BLIkMu0q.js} +2 -2
- package/dist/{index.es-DENZVv7_.js → index.es-BLolvOHO.js} +5 -5
- package/dist/{index.es-BXj90wb_.js → index.es-BjvSa9Z-.js} +2 -2
- package/dist/{index.es-Dfju71Pi.js → index.es-Bus5gEri.js} +1 -1
- package/dist/{index.es-IXyb5F6n.js → index.es-BzdG6flH.js} +2 -2
- package/dist/{index.es-DqSY-ePE.js → index.es-CXq42ihP.js} +9 -9
- package/dist/{index.es-45NOgWlB.js → index.es-CijDQQVg.js} +2 -2
- package/dist/{index.es-BGordhUK.js → index.es-DCSgIiJH.js} +1 -1
- package/dist/{index.es-D1IpdMde.js → index.es-DDRyb2df.js} +2 -2
- package/dist/{index.es-DeF-y7fd.js → index.es-DNRm4vOy.js} +1 -1
- package/dist/{index.es-0QJC9VS2.js → index.es-DUcI2Zyr.js} +2 -2
- package/dist/{index.es-DwzB1d7_.js → index.es-DYs8W4jv.js} +1 -1
- package/dist/{index.es-B6ZgiW2s.js → index.es-D_hWWij3.js} +13 -13
- package/dist/{index.es-CK4oZMKs.js → index.es-Dq_bXeGZ.js} +13 -13
- package/dist/{index.es-t7hFwQSs.js → index.es-Ds9rRj5B.js} +2 -2
- package/dist/{index.es-DDYCugj-.js → index.es-DsGuBR0Z.js} +1 -1
- package/dist/{index.es-Bg8hxXM8.js → index.es-P5F6NJPB.js} +360 -255
- package/dist/{index.es-Cq04gn3U.js → index.es-b2h35xzk.js} +4 -4
- package/dist/{index.es-Bgjh6euR.js → index.es-vqlyMiew.js} +1 -1
- package/dist/{keyboard-B-WUULl-.js → keyboard-BfmK7HK_.js} +1 -1
- package/dist/main.js +2 -2
- package/dist/{map-Dbvlv_6y.js → map-LUrszKZW.js} +2 -2
- package/dist/{slicedToArray-BWk2gTCn.js → slicedToArray-uk6yv91z.js} +1 -1
- package/package.json +1 -1
- package/dist/ListAreaService-CI-s1Xx5.js +0 -124
- package/dist/includes-Bt-Stz_B.js +0 -110
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## [2.9.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.8...v2.9.0) (2026-01-05)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add BasicHeading story; change ListArea default isIntegrated to true ([2ef3c76](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/2ef3c76820a509831ff359fdbc8ec83a945e60c8))
|
|
6
|
+
* add divider to ContextMenu and adjust style ([516da18](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/516da18753701b95812f0154d9a90a7cb2ff4891))
|
|
7
|
+
* add filterButtonSize prop to filter component and adjust style ([19958a8](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/19958a8235062ab1e559d59f304601ea68130b82))
|
|
8
|
+
* add new BlockView stories & change styles ([94258aa](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/94258aaa01abb0254c992b82c467ca7502e38733))
|
|
9
|
+
* adjust components and styles for new element design ([187c7f6](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/187c7f600d1b17e9c0123db8c9ef22dfb952035d))
|
|
10
|
+
* create BasicHeading story and add optional onClick callback function ([3026585](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/302658527fc956b1f73d5f0e301e0f47e2f55fdc))
|
|
11
|
+
* improve layout and visual styling ([617ba91](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/617ba912a1e7564769fbf666a9022f8680d33c94))
|
|
12
|
+
|
|
13
|
+
### Code Refactoring
|
|
14
|
+
|
|
15
|
+
* adjust BaseView stories ([ed90944](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/ed909449ed26b12dc9db73e382889617df527d06))
|
|
16
|
+
* adjust BaseView, BasicHeading and ListArea style ([329f8dd](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/329f8ddaf00fd00a577a0c3c1e16b95d5eb4515c))
|
|
17
|
+
* adjust BasicHeading & BlockView & EmptyView & OnboardingBanner ([3249fc3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/3249fc38909c52cffb852520750b923022fedc62))
|
|
18
|
+
* adjust Modal and BlockView and fix InfoGroup test ([4cb7171](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/4cb7171a827cc157d1f2136322d864f8fadc2ace))
|
|
19
|
+
* adjust styles and add props and change props ([1d7b68c](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/1d7b68c37f43f811185f957924c771a72a673a3d))
|
|
20
|
+
|
|
21
|
+
### Styles
|
|
22
|
+
|
|
23
|
+
* adjust styles for Modal ([3242d17](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/3242d178c314b3a024271e54cdfacea724d740a0))
|
|
24
|
+
* adjust styles for modal and select component ([37a326b](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/37a326bc4ec8b9852c93cc720f178dea5a1bac8a))
|
|
25
|
+
* change border styles ([895e476](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/895e476aeda2efb5682ed57f2d634ef4c886b2e7))
|
|
26
|
+
* change EmptyView style ([b0bd618](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/b0bd618fd19edb4342bd53a42231eed78bec02c0))
|
|
27
|
+
* change listArea styles ([356883c](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/356883c717782d9b6fcd0edeef4160f07de0033e))
|
|
28
|
+
* update FormComponents border-radius styles ([c9c543f](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/c9c543f19f3240a841529cd6c0275fcc39d26e12))
|
|
29
|
+
|
|
30
|
+
## [2.8.8](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.7...v2.8.8) (2025-12-19)
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* alignment issue with helpertext for select component ([8eba98f](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/8eba98f4872a84c755e3719b375478cb9b73f508))
|
|
35
|
+
|
|
1
36
|
## [2.8.7](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.6...v2.8.7) (2025-12-18)
|
|
2
37
|
|
|
3
38
|
### Code Refactoring
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, Fragment as i, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { G as l } from "./index.es-
|
|
3
|
-
import { I as _ } from "./index.es-
|
|
4
|
-
import { T as m } from "./index.es-
|
|
2
|
+
import { G as l } from "./index.es-DsGuBR0Z.js";
|
|
3
|
+
import { I as _ } from "./index.es-DYs8W4jv.js";
|
|
4
|
+
import { T as m } from "./index.es-DCSgIiJH.js";
|
|
5
5
|
import './assets/AlertBanner.css';const d = "_messageContainer_2hnjr_1", g = "_info_2hnjr_9", h = "_danger_2hnjr_14", f = "_success_2hnjr_19", p = "_warning_2hnjr_24", u = "_closeIcon_2hnjr_29", j = "_linkBanner_2hnjr_34", s = {
|
|
6
6
|
messageContainer: d,
|
|
7
7
|
info: g,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { T as r } from "./index.es-
|
|
2
|
+
import { T as r } from "./index.es-DCSgIiJH.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,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d, Fragment as C } from "react/jsx-runtime";
|
|
2
|
-
import { C as h, a as m, b as T, c as g, d as v } from "./index.es-
|
|
3
|
-
import { G as b, a as x, b as c } from "./index.es-
|
|
4
|
-
import { d as f } from "./index.es-
|
|
2
|
+
import { C as h, a as m, b as T, c as g, d as v } from "./index.es-P5F6NJPB.js";
|
|
3
|
+
import { G as b, a as x, b as c } from "./index.es-vqlyMiew.js";
|
|
4
|
+
import { d as f } from "./index.es-DCSgIiJH.js";
|
|
5
5
|
import { useMemo as w } from "react";
|
|
6
6
|
import { OverflowTooltip as l } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
7
7
|
import './assets/GenericCard.css';const u = "_cardTitle_ny9m0_1", B = "_cardBody_ny9m0_5", N = "_cardContent_ny9m0_10", $ = "_row_ny9m0_14", G = "_font_ny9m0_18", k = "_fontHeader_ny9m0_23", H = "_title_ny9m0_27", S = "_emptyContainer_ny9m0_33", A = "_empty_ny9m0_33", n = {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx as a, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { G } from "./index.es-DsGuBR0Z.js";
|
|
3
|
+
import { I as S } from "./index.es-DYs8W4jv.js";
|
|
4
|
+
import { P as O } from "./index.es-Bo1Rhtyb.js";
|
|
5
|
+
import { c as k, d as $, T as j } from "./index.es-DCSgIiJH.js";
|
|
6
|
+
import { c as H } from "./index-Cpb-8cAN.js";
|
|
7
|
+
import { Iconify as M } from "./components/Iconify/Iconify.js";
|
|
8
|
+
import { AvailableCustomIcons as P } from "./enums/AvailableCustomIcons.js";
|
|
9
|
+
import './assets/ListAreaService.css';const R = "_fullWidth_1abq6_1", W = "_mainElevation_1abq6_6", L = "_searchbar_1abq6_13", w = "_roundedBottom_1abq6_21", A = "_primaryText_1abq6_26", z = "_list_1abq6_30", D = "_listItem_1abq6_41", F = "_isSelected_1abq6_65", J = "_noGroupHeaderMargin_1abq6_74", K = "_indentGroupedElement_1abq6_78", Q = "_isNotSelected_1abq6_82", U = "_iconColor_1abq6_92", V = "_overlineTitle_1abq6_96", X = "_noOverlineTitle_1abq6_101", Y = "_truncate_1abq6_105", Z = "_truncateOverlineText_1abq6_116", ee = "_hasNoRoundedEdges_1abq6_121", t = {
|
|
10
|
+
fullWidth: R,
|
|
11
|
+
mainElevation: W,
|
|
12
|
+
searchbar: L,
|
|
13
|
+
roundedBottom: w,
|
|
14
|
+
primaryText: A,
|
|
15
|
+
list: z,
|
|
16
|
+
listItem: D,
|
|
17
|
+
isSelected: F,
|
|
18
|
+
noGroupHeaderMargin: J,
|
|
19
|
+
indentGroupedElement: K,
|
|
20
|
+
isNotSelected: Q,
|
|
21
|
+
iconColor: U,
|
|
22
|
+
overlineTitle: V,
|
|
23
|
+
noOverlineTitle: X,
|
|
24
|
+
truncate: Y,
|
|
25
|
+
truncateOverlineText: Z,
|
|
26
|
+
hasNoRoundedEdges: ee
|
|
27
|
+
}, me = (o, r, s, l) => {
|
|
28
|
+
const n = o.reduce((i, c) => {
|
|
29
|
+
const { groupName: e, groupComponent: _, ...d } = c;
|
|
30
|
+
return !e || typeof e != "string" || (i[e] || (i[e] = {
|
|
31
|
+
groupName: _ ?? /* @__PURE__ */ a(O, { children: /* @__PURE__ */ a(k, { children: e }) }),
|
|
32
|
+
id: e,
|
|
33
|
+
items: []
|
|
34
|
+
}), i[e].items = [
|
|
35
|
+
...i[e].items,
|
|
36
|
+
g(d, r, s, l)
|
|
37
|
+
]), i;
|
|
38
|
+
}, {});
|
|
39
|
+
return Object.values(n);
|
|
40
|
+
}, _e = (o, r, s, l) => o.map((n) => g(n, r, s, l)), g = (o, r, s, l) => {
|
|
41
|
+
const {
|
|
42
|
+
id: n,
|
|
43
|
+
title: i,
|
|
44
|
+
subTitle: c,
|
|
45
|
+
route: e,
|
|
46
|
+
value: _,
|
|
47
|
+
noNavigation: d,
|
|
48
|
+
disabled: u,
|
|
49
|
+
icon: b,
|
|
50
|
+
iconType: v,
|
|
51
|
+
trailingIcon: y,
|
|
52
|
+
trailingIconType: h,
|
|
53
|
+
actionButton: f,
|
|
54
|
+
onClick: q,
|
|
55
|
+
customTitle: T,
|
|
56
|
+
listItemClassName: N,
|
|
57
|
+
overlineTitle: p,
|
|
58
|
+
"data-testid": I,
|
|
59
|
+
indentElement: x
|
|
60
|
+
} = o, m = r === e, E = H(
|
|
61
|
+
v !== "avatar" && t.listItem,
|
|
62
|
+
s,
|
|
63
|
+
N,
|
|
64
|
+
p ? t.overlineTitle : t.noOverlineTitle,
|
|
65
|
+
x && t.indentGroupedElement,
|
|
66
|
+
m ? t.isSelected : t.isNotSelected
|
|
67
|
+
);
|
|
68
|
+
return {
|
|
69
|
+
id: n,
|
|
70
|
+
key: n,
|
|
71
|
+
select: m,
|
|
72
|
+
primaryText: n,
|
|
73
|
+
secondaryText: /* @__PURE__ */ B(G, { direction: "vertical", gap: "none", children: [
|
|
74
|
+
T ?? /* @__PURE__ */ a(
|
|
75
|
+
$,
|
|
76
|
+
{
|
|
77
|
+
"data-testid": "title",
|
|
78
|
+
level: 1,
|
|
79
|
+
themeColor: m ? "primary" : void 0,
|
|
80
|
+
className: `${t.truncate} lmnt-theme-on-surface-active`,
|
|
81
|
+
children: i
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
c && !T ? /* @__PURE__ */ a(
|
|
85
|
+
j,
|
|
86
|
+
{
|
|
87
|
+
"data-testid": "subtitle",
|
|
88
|
+
level: 2,
|
|
89
|
+
themeColor: m ? "primary" : void 0,
|
|
90
|
+
className: `${t.truncate} lmnt-theme-on-surface-inactive`,
|
|
91
|
+
children: c
|
|
92
|
+
}
|
|
93
|
+
) : void 0
|
|
94
|
+
] }),
|
|
95
|
+
overlineText: p ? /* @__PURE__ */ a(
|
|
96
|
+
"span",
|
|
97
|
+
{
|
|
98
|
+
"data-testid": "overline-title",
|
|
99
|
+
className: `${t.truncate} ${t.truncateOverlineText}`,
|
|
100
|
+
children: p
|
|
101
|
+
}
|
|
102
|
+
) : void 0,
|
|
103
|
+
trailingBlock: f ?? y ?? /* @__PURE__ */ a(S, { icon: "arrow_right", className: t.iconColor }),
|
|
104
|
+
leadingBlock: te(b),
|
|
105
|
+
value: _,
|
|
106
|
+
componentProps: {
|
|
107
|
+
id: n,
|
|
108
|
+
"data-testid": `${I ?? i}-list-item`,
|
|
109
|
+
key: n,
|
|
110
|
+
leadingBlockType: v ?? "icon",
|
|
111
|
+
trailingBlockType: h ?? "icon",
|
|
112
|
+
className: E,
|
|
113
|
+
onClick: (oe, C) => q?.(C),
|
|
114
|
+
tag: u || d ? void 0 : l ?? "a",
|
|
115
|
+
to: u || d ? void 0 : e,
|
|
116
|
+
disabled: u
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}, te = (o) => typeof o == "string" && o in P ? /* @__PURE__ */ a(M, { icon: o }) : o;
|
|
120
|
+
export {
|
|
121
|
+
_e as a,
|
|
122
|
+
me as g,
|
|
123
|
+
g as m,
|
|
124
|
+
t as s
|
|
125
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { G as o } from "./index.es-
|
|
2
|
+
import { G as o } from "./index.es-DsGuBR0Z.js";
|
|
3
3
|
import { Iconify as _ } from "./components/Iconify/Iconify.js";
|
|
4
|
-
import { b as m, d as y, T as h } from "./index.es-
|
|
5
|
-
import { B as A } from "./index.es-
|
|
4
|
+
import { b as m, d as y, T as h } from "./index.es-DCSgIiJH.js";
|
|
5
|
+
import { B as A } from "./index.es-DUcI2Zyr.js";
|
|
6
6
|
import './assets/OfflineView.css';const T = "_gapAndTextAlign_10nts_1", v = "_container_10nts_6", x = "_bgWhite_10nts_12", G = "_bgGrey_10nts_17", W = "_subtitle_10nts_22", t = {
|
|
7
7
|
gapAndTextAlign: T,
|
|
8
8
|
container: v,
|
package/dist/assets/BaseView.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._fullHeight_1a5ww_1{height:100%}._fullWidth_1a5ww_5{width:100%}._maxWidth_1a5ww_9{max-width:55vw;background-color:var(--lmnt-theme-background)}._list_1a5ww_14{box-shadow:0 8px 24px #959da533;background-color:var(--lmnt-theme-background);border-radius:.5rem;overflow-y:auto;width:100%;height:100%}._desktopList_1a5ww_23{width:30%;align-self:stretch}._noRoundedCorners_1a5ww_28 [class*="lmnt mdc-list-item"]{border-radius:0rem!important}._detail_1a5ww_32{height:100%;box-shadow:0 8px 24px #959da533;border-radius:.5rem;background-color:var(--lmnt-theme-background);width:100%}._desktopDetail_1a5ww_40{width:70%;overflow-y:auto;scrollbar-width:thin}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._basicHeading_imv0w_1{padding:.75rem;width:calc(100% - 1.75rem)}._actions_imv0w_6>button{max-height:48px}._invisible_imv0w_10{visibility:hidden}._leadingIcon_imv0w_14{margin-right:.5rem}._withAvatar_imv0w_18{margin-left:.25rem;padding-right:1rem;margin-top:0rem}._withAvatar_imv0w_18>._iconContainer_imv0w_24{scale:1.1}._iconContainer_imv0w_24{padding-right:.25rem}._cursor_imv0w_32{cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._grid_1ym34_1{display:flex;padding-bottom:0;flex-direction:column;justify-content:center;align-items:center;gap:1rem;align-self:stretch}._blockLayout_1ym34_11{padding:.5rem;gap:.5rem;display:flex;flex-direction:column;border-radius:.5rem;background:var(--lmnt-theme-secondary-100);width:15rem;height:15rem}._blockRow_1ym34_22{display:flex;flex-direction:row;gap:.5rem;height:100%;align-self:stretch}._block_1ym34_11{flex:auto;border-radius:.25rem;background:var(--lmnt-theme-secondary);align-items:center;display:flex;justify-content:center;position:relative}._block_1ym34_11._active_1ym34_41{background:var(--lmnt-theme-primary);margin:-2px}._block_1ym34_11._error_1ym34_46{border:2px solid var(--lmnt-theme-danger);background:var(--lmnt-theme-danger-50);margin:-2px}._block_1ym34_11._empty_1ym34_52{background:var(--lmnt-theme-secondary-200)}._activeBlock_1ym34_56{background:var(--lmnt-theme-primary)}._blockText_1ym34_60{display:flex;justify-content:center;position:absolute;width:1vw;height:1vh;align-items:center;color:var(--lmnt-theme-on-primary)}._emptyLayout_1ym34_70{display:flex;justify-content:center;align-items:center;background:var(--lmnt-theme-surface-variant);border-radius:.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._menu_148i2_1{width:15.875rem;border-radius:.5rem!important}._icon_148i2_6{color:var(--lmnt-theme-on-secondary-inactive)}._listItem_148i2_10 [class*=mdc-list-item__start]{color:var(--lmnt-theme-on-secondary-inactive);align-self:center!important;margin:0 1rem!important}._listItem_148i2_10 [class*=mdc-list-item__end]{color:var(--lmnt-theme-on-secondary-inactive)}._offlineViewMargin_148i2_20{margin:.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._invalid_142hx_1+*[class*=mdc-text-field-helper-line] *[class*=mdc-text-field-helper-text]{color:var(--lmnt-theme-danger)!important}._borderRadius_142hx_5 div[class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._borderRadius_142hx_5 div[class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._emptyViewContainer_19inl_1{background-color:var(--lmnt-theme-surface-variant);border-radius:.5rem;height:auto}._full_19inl_7{height:100%!important}._medium_19inl_11{padding:3.5rem 2rem 3rem}._small_19inl_15{min-height:3rem;padding:1rem .5rem}._title_19inl_20{text-align:center;color:var(--lmnt-theme-on-surface-inactive)}._emptyViewContainer_19inl_1>i{color:var(--lmnt-theme-on-surface-inactive)}
|
package/dist/assets/Filter.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._filterButton_1qtzn_1{width:15rem;height:100%!important;margin:0;border-radius:.25rem!important}._filterButton_1qtzn_1,._filterButton_1qtzn_1:hover,._filterButton_1qtzn_1:focus,._filterButton_1qtzn_1:active,._filterButton_1qtzn_1:target,._filterButton_1qtzn_1 [class^=mdc-button__ripple],._filterButton_1qtzn_1:hover [class^=mdc-button__ripple],._filterButton_1qtzn_1:focus [class^=mdc-button__ripple],._filterButton_1qtzn_1:active [class^=mdc-button__ripple],._filterButton_1qtzn_1:target [class^=mdc-button__ripple]{border-radius:.25rem!important}._relativeParent_1qtzn_21{position:relative}._iconColor_1qtzn_25{color:var(--lmnt-theme-primary)}._filterBadge_1qtzn_29{position:absolute;top:0;right:0;transform:translate(50%,-50%)}._dense_1qtzn_36,._dense_1qtzn_36 div[class*=lmnt-select__anchor]{height:2.5rem!important}._filterModal_1qtzn_41 [class="lmnt-modal__actions mdc-dialog__actions"]{margin-bottom:0!important}._borderRadius_1qtzn_45 [class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._borderRadius_1qtzn_45 [class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._datePickerContainer_1m1xz_1{width:100%}._datePickerContainer_1m1xz_1 div[class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._datePickerContainer_1m1xz_1 div[class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}._invalid_1m1xz_13+*[class*=mdc-text-field-helper-line] *[class*=mdc-text-field-helper-text]{color:var(--lmnt-theme-danger)!important}._fromPickerText_1m1xz_17+*[class*=mdc-text-field-helper-line] *[class*=mdc-text-field-helper-text]{margin-bottom:-19.33px!important}._datePickerCalendar_1m1xz_21{z-index:101}._trailingContent_1m1xz_25{text-align:right}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._invalidHelperText_b3jcy_1+*[class*=mdc-select-helper-text]{color:var(--lmnt-theme-danger)!important}._invalidBorder_b3jcy_5 *[class*=mdc-notched-outline]{border-color:var(--lmnt-theme-danger)!important}._invalidPlaceholder_b3jcy_9 *[class*=lmnt-select-label]{color:var(--lmnt-theme-danger)!important}._invalidDropdownIcon_b3jcy_13 *[class*=mdc-select__dropdown-icon]{fill:var(--lmnt-theme-danger)!important}._formSelectContainer_b3jcy_18{display:flex;flex-wrap:wrap;width:100%}._formSelectContainer_b3jcy_18>*[class*=lmnt-select-container]{flex-direction:column}._formSelectContainer_b3jcy_18 *[class*=mdc-select-helper-text]{color:var(--lmnt-helper-text-color);align-self:flex-start}._formSelectContainer_b3jcy_18 *[class*=lmnt__multi-value__label]{overflow:visible}._formSelect_b3jcy_18 *[class*=lmnt-select-menu]{z-index:2001}._formSelect_b3jcy_18 div[class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._formSelect_b3jcy_18 div[class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}._multiText_b3jcy_53 *[class*=lmnt-select-value-container]{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;display:block!important;padding:1.125rem 0!important}._tooltip_b3jcy_62{z-index:42}._disabled_b3jcy_67+*[class*=mdc-select-helper-text]{color:var(--lmnt-theme-on-surface-disabled)}[id*=select-container][class*=top] [class*=mdc-menu-surface--open]{bottom:0}[id*=select-container][class*=bottom] [class*=mdc-menu-surface--open]{top:0}
|
package/dist/assets/FormText.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._formTextAreaHelperText_x4g1e_1{align-self:flex-end;color:var(--lmnt-helper-text-color);padding-right:1rem}._invalid_x4g1e_7._formTextAreaHelperText_x4g1e_1{color:var(--lmnt-theme-danger)}._required_x4g1e_11._formTextAreaHelperText_x4g1e_1{margin-top:-1.125rem}._invalid_x4g1e_7+*[class*=mdc-text-field-helper-line] *[class*=mdc-text-field-helper-text]{color:var(--lmnt-theme-danger)!important}._formTextArea_x4g1e_1,._characterCount_x4g1e_25{width:100%;display:flex;flex-flow:column}._withoutCharacterCount_x4g1e_31{width:100%}._formText_x4g1e_1 div[class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._formText_x4g1e_1 div[class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._elevation_h12q4_1{width:100%;border-radius:.5rem;height:100%}._hashTabContainer_h12q4_7{height:inherit}._themeBackground_h12q4_11{background:var(--lmnt-theme-background)}._tabBar_h12q4_15{background:transparent;align-self:flex-end;border-radius:.5rem}._tabBar_h12q4_15 hr{display:none!important}._tabWrapper_h12q4_25{border-bottom:1px solid var(--lmnt-theme-on-surface-stroke)}._stickyHeader_h12q4_29{position:sticky;top:80px;background-color:var(--lmnt-theme-surface-variant)}._tabButton_h12q4_35{height:3.5rem!important}._childContainer_h12q4_39{width:25rem}._childContainerPhone_h12q4_43{width:100%}._iconColorRed_h12q4_47 [class*=mdc-tab__icon]{color:var(--lmnt-theme-danger)}._miniPadding_h12q4_52{padding:0 .15rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dividerContainer_v06ae_1{width:100%;padding:1rem 0}._fullWidth_v06ae_6{width:100%}._centerDefaultComponent_v06ae_10{margin:auto}._verticalDivider_v06ae_14{display:flex;align-self:stretch;height:auto;width:1px;background-color:var(--lmnt-theme-on-surface-stroke)}._mainGroup_v06ae_22{padding:1rem;border-radius:.5rem}._textAlignRight_v06ae_27{text-align:right}._typoColor_v06ae_31{color:var(--lmnt-theme-on-surface-inactive)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._fullWidth_1abq6_1{width:100%;height:100%}._mainElevation_1abq6_6{background:var(--lmnt-theme-background);width:100%;height:100%}._searchbar_1abq6_13 div{border:none}._searchbar_1abq6_13 button{margin-right:.5rem}._roundedBottom_1abq6_21{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}._primaryText_1abq6_26 [class*=mdc-list-item__primary-text]{display:none!important}._list_1abq6_30{padding-top:0;padding-bottom:0;overflow-y:auto;scrollbar-width:thin}._list_1abq6_30 [class*=mdc-list-item__overline-text]{margin-bottom:-2.25rem}._listItem_1abq6_41:hover{background-color:var(--lmnt-theme-surface-variant)}._listItem_1abq6_41 i:not(._trailingIcon_1abq6_45){color:var(--lmnt-theme-on-surface-inactive)}._listItem_1abq6_41 [class^="lmnt mdc-list-item__end"] i{color:var(--lmnt-theme-on-surface-disabled)}._listItem_1abq6_41:focus-within [class^="lmnt mdc-list-item__end"] i{color:var(--lmnt-theme-primary)!important}._listItem_1abq6_41 [class^=mdc-list-item__start]{margin:0 1rem!important;align-self:center!important}._listItem_1abq6_41:focus [class^=mdc-list-item__start] i{color:var(--lmnt-theme-primary)!important}._listItem_1abq6_41._isSelected_1abq6_65 i,._listItem_1abq6_41[aria-selected=true] i{color:var(--lmnt-theme-primary)!important}._groupedListItem_1abq6_70{height:4.5rem!important}._noGroupHeaderMargin_1abq6_74 h3{margin:0}._indentGroupedElement_1abq6_78{padding-left:2.5rem!important}._isNotSelected_1abq6_82 [class*=mdc-list-item__ripple]:before{opacity:inherit!important;background-color:inherit!important}._isSelected_1abq6_65 [class*=mdc-list-item__ripple]:before{opacity:.2!important;background-color:var(--lmnt-theme-primary)!important}._iconColor_1abq6_92{color:var(--lmnt-theme-on-surface-disabled)!important}._overlineTitle_1abq6_96 [class*=mdc-list-item__overline-text]{color:var(--lmnt-theme-on-surface-inactive)!important;line-height:1rem!important}._noOverlineTitle_1abq6_101 [class*=mdc-list-item__secondary-text] [class*=lmnt-group]{margin-top:-.875rem}._truncate_1abq6_105{display:-webkit-box!important;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:100%;word-break:break-all}._truncateOverlineText_1abq6_116{margin-bottom:-1rem!important;margin-top:-1rem!important}._hasNoRoundedEdges_1abq6_121{border-radius:0rem!important}
|
package/dist/assets/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._modal_95xon_1 div[class*=lmnt-modal__surface]{max-height:100svh!important;max-width:100svw!important;border-radius:1rem!important}._modal_95xon_1 footer{margin-bottom:0!important}._gap_95xon_11{gap:4px!important}._title_95xon_15{header{display:flex;justify-content:start;padding-left:.5rem!important;>div{width:100%;margin-left:0!important}}}._titleWithoutCloseIcon_95xon_27{margin-left:1rem!important}._closeButton_95xon_31{color:var(--lmnt-theme-on-surface-inactive)}._closeButton_95xon_31:before{display:none!important}._closeButton_95xon_31:hover{background-color:var(--lmnt-theme-surface-variant)!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._elevation_7z8y8_1{background-color:var(--lmnt-theme-primary-50)}._color_7z8y8_5{color:var(--lmnt-theme-on-surface-inactive)}._buttons_7z8y8_9>button{margin:0!important}
|
package/dist/assets/Select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._customPortal_1c12e_1>div[class*=lmnt__menu-portal]{transition:none}._customSelect_1c12e_7 div[class*=lmnt__menu-list--is-multi]{max-height:none}._customSelect_1c12e_7 [class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._customSelect_1c12e_7 [class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}._customSelect_1c12e_7 [class*=lmnt-select-menu]{border-radius:.25rem!important}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index.es-
|
|
3
|
-
import "../../index.es-
|
|
4
|
-
import "../../index.es-
|
|
5
|
-
import { A as e } from "../../AlertBanner-
|
|
2
|
+
import "../../index.es-DsGuBR0Z.js";
|
|
3
|
+
import "../../index.es-DYs8W4jv.js";
|
|
4
|
+
import "../../index.es-DCSgIiJH.js";
|
|
5
|
+
import { A as e } from "../../AlertBanner-Dss0v6W0.js";
|
|
6
6
|
export {
|
|
7
7
|
e as AlertBanner
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import { A as n } from "../../AlertBanner-
|
|
4
|
+
import { A as n } from "../../AlertBanner-Dss0v6W0.js";
|
|
5
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(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { G as l } from "../../index.es-
|
|
3
|
-
import { T as s } from "../../index.es-
|
|
2
|
+
import { G as l } from "../../index.es-DsGuBR0Z.js";
|
|
3
|
+
import { T as s } from "../../index.es-DCSgIiJH.js";
|
|
4
4
|
import { Iconify as p } from "../Iconify/Iconify.js";
|
|
5
|
-
import { A as m, s as c } from "../../AlertBanner-
|
|
5
|
+
import { A as m, s as c } from "../../AlertBanner-Dss0v6W0.js";
|
|
6
6
|
const g = ({
|
|
7
7
|
text: n,
|
|
8
8
|
color: o = "info",
|
|
@@ -23,6 +23,10 @@ type BaseViewProps = {
|
|
|
23
23
|
* heading of the list area
|
|
24
24
|
*/
|
|
25
25
|
heading?: string;
|
|
26
|
+
/**
|
|
27
|
+
* optional icon to be displayed on the left side of the BasicHeading
|
|
28
|
+
*/
|
|
29
|
+
basicHeadingIcon?: string | JSX.Element;
|
|
26
30
|
/**
|
|
27
31
|
* action to be displayed in the headings ActionButton
|
|
28
32
|
*/
|
|
@@ -51,6 +55,14 @@ type BaseViewProps = {
|
|
|
51
55
|
* listMaxHeight is the max height of the list, @default 'calc(100vh - 200px)'
|
|
52
56
|
*/
|
|
53
57
|
listMaxHeight?: string;
|
|
58
|
+
/**
|
|
59
|
+
* the level of the heading, @default 5
|
|
60
|
+
*/
|
|
61
|
+
titleLevel?: number;
|
|
62
|
+
/**
|
|
63
|
+
* the level of the detail heading, @default 6
|
|
64
|
+
*/
|
|
65
|
+
detailTitleLevel?: number;
|
|
54
66
|
/**
|
|
55
67
|
* searchPlaceholder is the placeholder of the search input, @default ''
|
|
56
68
|
*/
|
|
@@ -59,6 +71,10 @@ type BaseViewProps = {
|
|
|
59
71
|
* Whether the user is online; shows OfflineView when false.
|
|
60
72
|
*/
|
|
61
73
|
isOnline?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* If true, removes rounded corners from list item edges. @default true
|
|
76
|
+
*/
|
|
77
|
+
noRoundedListItemEdges?: boolean;
|
|
62
78
|
/**
|
|
63
79
|
* Props forwarded to <OfflineView /> when offline.
|
|
64
80
|
*/
|
|
@@ -75,5 +91,5 @@ type BaseViewProps = {
|
|
|
75
91
|
/**
|
|
76
92
|
* `BaseView` is a layout component that displays a main (a list) and a detail section.
|
|
77
93
|
*/
|
|
78
|
-
export declare const BaseView: ({ heading, action, hint, elements, emptyText, hasSearch, isSorted, className, withAvatar, listMaxHeight, pathname, isOnline, offlineViewProps, routerLinkElement, searchPlaceholder, isGrouped }: BaseViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare const BaseView: ({ heading, action, hint, elements, emptyText, hasSearch, isSorted, className, withAvatar, listMaxHeight, titleLevel, detailTitleLevel, pathname, basicHeadingIcon, isOnline, offlineViewProps, noRoundedListItemEdges, routerLinkElement, searchPlaceholder, isGrouped, }: BaseViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
79
95
|
export {};
|
|
@@ -1,89 +1,132 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx as e, Fragment as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { D as G } from "../../index.es-Bus5gEri.js";
|
|
3
|
+
import { G as s } from "../../index.es-DsGuBR0Z.js";
|
|
4
|
+
import { P } from "../../index.es-Bo1Rhtyb.js";
|
|
5
|
+
import { c as w } from "../../index-Cpb-8cAN.js";
|
|
6
|
+
import { useMemo as d } from "react";
|
|
7
|
+
import { BasicHeading as _ } from "../BasicHeading/BasicHeading.js";
|
|
8
|
+
import { EmptyView as V } from "../EmptyView/EmptyView.js";
|
|
9
|
+
import { ListArea as $ } from "../ListArea/ListArea.js";
|
|
10
|
+
import { u as y } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
11
|
+
import { O as F } from "../../OfflineView-D168VIXv.js";
|
|
12
|
+
import { useScrollableInfo as M } from "./BaseView.service.js";
|
|
13
|
+
import '../../assets/BaseView.css';const O = "_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: O,
|
|
15
|
+
fullWidth: T,
|
|
16
|
+
maxWidth: q,
|
|
17
|
+
list: z,
|
|
18
|
+
desktopList: J,
|
|
19
|
+
noRoundedCorners: K,
|
|
20
|
+
detail: Q,
|
|
21
|
+
desktopDetail: U
|
|
22
|
+
}, dt = ({
|
|
19
23
|
heading: c,
|
|
20
|
-
action: m = /* @__PURE__ */
|
|
21
|
-
hint:
|
|
22
|
-
elements:
|
|
24
|
+
action: m = /* @__PURE__ */ e(l, {}),
|
|
25
|
+
hint: g = /* @__PURE__ */ e(l, {}),
|
|
26
|
+
elements: a,
|
|
23
27
|
emptyText: u,
|
|
24
|
-
hasSearch:
|
|
25
|
-
isSorted:
|
|
26
|
-
className:
|
|
27
|
-
withAvatar:
|
|
28
|
-
listMaxHeight:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
hasSearch: v = !0,
|
|
29
|
+
isSorted: D = !0,
|
|
30
|
+
className: W,
|
|
31
|
+
withAvatar: k = !1,
|
|
32
|
+
listMaxHeight: x = "calc(100vh - 220px)",
|
|
33
|
+
titleLevel: H = 5,
|
|
34
|
+
detailTitleLevel: L,
|
|
35
|
+
pathname: r,
|
|
36
|
+
basicHeadingIcon: b,
|
|
37
|
+
isOnline: f = !0,
|
|
38
|
+
offlineViewProps: h,
|
|
39
|
+
noRoundedListItemEdges: p = !0,
|
|
40
|
+
routerLinkElement: N,
|
|
41
|
+
searchPlaceholder: B,
|
|
42
|
+
isGrouped: R = !1
|
|
35
43
|
}) => {
|
|
36
|
-
const { isDesktopNavbar:
|
|
37
|
-
return /* @__PURE__ */ s(
|
|
44
|
+
const { isDesktopNavbar: o } = y(), t = d(() => a.find((E) => E.route === r), [r, a]), C = d(() => f ? t?.component ? t.component : o ? /* @__PURE__ */ e(P, { className: i.fullWidth, children: /* @__PURE__ */ e(V, { title: u }) }) : /* @__PURE__ */ e(l, {}) : /* @__PURE__ */ e(F, { ...h, fullWidth: !0 }), [t?.component, u, o, f, h]), { showList: S, showDetail: A } = d(() => o ? { showList: !0, showDetail: !0 } : { showList: !t, showDetail: !!t }, [t, o]), { ref: I, hasScrolled: j } = M([
|
|
38
45
|
r,
|
|
46
|
+
o
|
|
47
|
+
]);
|
|
48
|
+
return /* @__PURE__ */ n(
|
|
49
|
+
s,
|
|
39
50
|
{
|
|
40
51
|
"data-testid": "base-view-container",
|
|
41
|
-
className: `${
|
|
42
|
-
gap: "none",
|
|
52
|
+
className: `${i.fullHeight} ${W ?? ""}`,
|
|
43
53
|
fullWidth: !0,
|
|
44
54
|
children: [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
_,
|
|
48
|
-
/* @__PURE__ */ i(
|
|
49
|
-
A,
|
|
50
|
-
{
|
|
51
|
-
elements: n,
|
|
52
|
-
hasSearch: f,
|
|
53
|
-
maxHeight: D,
|
|
54
|
-
isSorted: b,
|
|
55
|
-
pathname: l,
|
|
56
|
-
routerLinkElement: k,
|
|
57
|
-
searchPlaceholder: L,
|
|
58
|
-
isGrouped: x
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
] }) }),
|
|
62
|
-
B && /* @__PURE__ */ s(
|
|
63
|
-
r,
|
|
55
|
+
S && /* @__PURE__ */ n(
|
|
56
|
+
s,
|
|
64
57
|
{
|
|
65
|
-
"data-testid": "
|
|
58
|
+
"data-testid": "show-list-container",
|
|
66
59
|
gap: "none",
|
|
67
|
-
|
|
60
|
+
direction: "vertical",
|
|
61
|
+
className: w(
|
|
62
|
+
i.list,
|
|
63
|
+
o && i.desktopList,
|
|
64
|
+
p && i.noRoundedCorners
|
|
65
|
+
),
|
|
68
66
|
children: [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
67
|
+
c && /* @__PURE__ */ e(
|
|
68
|
+
_,
|
|
69
|
+
{
|
|
70
|
+
icon: b,
|
|
71
|
+
"data-testid": "heading",
|
|
72
|
+
heading: c,
|
|
73
|
+
level: H,
|
|
74
|
+
marginBottom: 0,
|
|
75
|
+
children: m
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
g,
|
|
79
|
+
/* @__PURE__ */ e(
|
|
80
|
+
$,
|
|
81
|
+
{
|
|
82
|
+
hasLastItemNoRoundedEdges: p,
|
|
83
|
+
elements: a,
|
|
84
|
+
hasSearch: v,
|
|
85
|
+
maxHeight: x,
|
|
86
|
+
isSorted: D,
|
|
87
|
+
pathname: r,
|
|
88
|
+
routerLinkElement: N,
|
|
89
|
+
searchPlaceholder: B,
|
|
90
|
+
isGrouped: R
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
A && /* @__PURE__ */ n(
|
|
97
|
+
s,
|
|
98
|
+
{
|
|
99
|
+
"data-testid": "show-details-container",
|
|
100
|
+
gap: "none",
|
|
101
|
+
direction: "vertical",
|
|
102
|
+
className: w(i.detail, o && i.desktopDetail),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ e(
|
|
105
|
+
_,
|
|
106
|
+
{
|
|
107
|
+
customHeaderPadding: "0.75rem 0.75rem 0.75rem 1rem",
|
|
108
|
+
className: i.maxWidth,
|
|
109
|
+
heading: t?.detailTitle ?? t?.title ?? "",
|
|
110
|
+
level: L,
|
|
111
|
+
icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
|
|
112
|
+
marginBottom: 0,
|
|
113
|
+
invisibleButton: t?.detailAction === void 0,
|
|
114
|
+
withAvatar: k,
|
|
115
|
+
subHeading: t?.detailSubTitle,
|
|
116
|
+
children: t?.detailAction ?? m
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
j && /* @__PURE__ */ e(G, {}),
|
|
120
|
+
/* @__PURE__ */ e(
|
|
121
|
+
s,
|
|
122
|
+
{
|
|
123
|
+
"data-testid": "base-view-show-details-scroll-component-group",
|
|
124
|
+
fullWidth: !0,
|
|
125
|
+
direction: "vertical",
|
|
126
|
+
ref: I,
|
|
127
|
+
children: C
|
|
128
|
+
}
|
|
129
|
+
)
|
|
87
130
|
]
|
|
88
131
|
}
|
|
89
132
|
)
|
|
@@ -92,5 +135,5 @@ import '../../assets/BaseView.css';const E = "_parentGroup_w7vsz_1", I = "_divid
|
|
|
92
135
|
);
|
|
93
136
|
};
|
|
94
137
|
export {
|
|
95
|
-
|
|
138
|
+
dt as BaseView
|
|
96
139
|
};
|