@hortiview/shared-components 0.0.11176 → 0.0.11587
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/README.md +58 -8
- package/dist/BigLoadingSpinner-iegTbDcD.js +16 -0
- package/dist/GenericCard-6J558OgP.js +350 -0
- package/dist/ListAreaService-DOwtdRa4.js +109 -0
- package/dist/_MapCache-B75yWNNd.js +376 -0
- package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
- package/dist/_getTag-BCf9b56Z.js +81 -0
- package/dist/animationframe-EMBh6XeO.js +54 -0
- package/dist/assets/HashTabView.css +1 -1
- package/dist/assets/Select.css +1 -0
- package/dist/component-DsB0poTj.js +571 -0
- package/dist/component-neHBNHRu.js +114 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
- package/dist/components/AlertBanner/AlertBanner.js +15 -15
- package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
- package/dist/components/BaseView/BaseView.d.ts +1 -1
- package/dist/components/BaseView/BaseView.js +27 -28
- package/dist/components/BaseView/BaseView.test.js +25 -25
- package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
- package/dist/components/BasicHeading/BasicHeading.js +17 -17
- package/dist/components/BasicHeading/BasicHeading.test.js +10 -10
- package/dist/components/BlockView/BlockView.d.ts +1 -0
- package/dist/components/BlockView/BlockView.js +24 -25
- package/dist/components/BlockView/BlockView.test.js +2 -2
- package/dist/components/ChipCard/ChipCard.js +1765 -15
- package/dist/components/ChipCard/ChipCard.test.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
- package/dist/components/ContextMenu/ContextMenu.js +28 -28
- package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
- package/dist/components/DeleteModal/DeleteModal.d.ts +0 -1
- package/dist/components/DeleteModal/DeleteModal.js +53 -51
- package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
- package/dist/components/Disclaimer/Disclaimer.js +12 -11
- package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
- package/dist/components/EmptyView/EmptyView.d.ts +1 -0
- package/dist/components/EmptyView/EmptyView.js +258 -19
- package/dist/components/EmptyView/EmptyView.test.js +2 -2
- package/dist/components/Filter/Filter.d.ts +1 -0
- package/dist/components/Filter/Filter.js +81 -77
- package/dist/components/Filter/Filter.test.js +2 -2
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5975 -6389
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
- package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +13 -14
- package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
- package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
- package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
- package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
- package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
- package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
- package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
- package/dist/components/FormComponents/FormText/FormText.js +28 -28
- package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
- package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
- package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
- package/dist/components/GenericTable/GenericTable.d.ts +1 -0
- package/dist/components/GenericTable/GenericTable.js +10487 -76
- package/dist/components/GenericTable/GenericTable.test.js +2 -2
- package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
- package/dist/components/GenericTable/GenericTableService.js +41 -41
- package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
- package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
- package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
- package/dist/components/HashTabView/HashTabView.d.ts +6 -1
- package/dist/components/HashTabView/HashTabView.js +1805 -72
- package/dist/components/HashTabView/HashTabView.test.js +2 -2
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
- package/dist/components/HeaderFilter/HeaderFilter.js +14 -14
- package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
- package/dist/components/HealthCheckFailed/HealthCheckFailed.js +19 -17
- package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
- package/dist/components/Iconify/Iconify.d.ts +2 -3
- package/dist/components/Iconify/Iconify.js +44 -45
- package/dist/components/Iconify/Iconify.test.js +2 -2
- package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
- package/dist/components/InfoGroup/InfoGroup.js +30 -29
- package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
- package/dist/components/ListArea/ListArea.d.ts +1 -1
- package/dist/components/ListArea/ListArea.js +29 -27
- package/dist/components/ListArea/ListArea.test.js +5 -5
- package/dist/components/ListArea/ListAreaService.d.ts +9 -8
- package/dist/components/ListArea/ListAreaService.js +7 -5
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -38
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
- package/dist/components/Modal/Modal.d.ts +2 -1
- package/dist/components/Modal/Modal.js +926 -10
- package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
- package/dist/components/ModulePadding/ModulePadding.js +28 -0
- package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
- package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.js +13 -14
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
- package/dist/components/Scrollbar/Scrollbar.js +5 -6
- package/dist/components/Scrollbar/scrollbar.test.js +2 -2
- package/dist/components/SearchBar/SearchBar.js +11 -11
- package/dist/components/SearchBar/SearchBar.test.js +2 -2
- package/dist/components/Select/Select.d.ts +14 -0
- package/dist/components/Select/Select.js +34 -0
- package/dist/components/Select/Select.test.d.ts +1 -0
- package/dist/components/Select/Select.test.js +28 -0
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
- package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
- package/dist/floating-ui.dom-CeD8zknG.js +978 -0
- package/dist/get-7ACccM2X.js +114 -0
- package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
- package/dist/hooks/useBreakpoints.test.js +2 -2
- package/dist/hooks/useHelperText.d.ts +1 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-DLWZln-X.js +1763 -0
- package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
- package/dist/index.es-0lQcz8m1.js +444 -0
- package/dist/index.es-25EARqhH.js +2027 -0
- package/dist/index.es-3043KTnb.js +1066 -0
- package/dist/index.es-41ztjcFT.js +724 -0
- package/dist/index.es-6TJ1S8Jr.js +954 -0
- package/dist/index.es-8GOVkuo-.js +374 -0
- package/dist/index.es-B-_jXDuz.js +216 -0
- package/dist/index.es-BWgXLqXn.js +102 -0
- package/dist/index.es-BtjV0oNv.js +360 -0
- package/dist/index.es-BvrQnJ3j.js +509 -0
- package/dist/index.es-CF_xy2ns.js +674 -0
- package/dist/index.es-CL_Heu1n.js +54 -0
- package/dist/index.es-CiqbARoC.js +306 -0
- package/dist/index.es-D-CKRzIB.js +63 -0
- package/dist/index.es-D6N-XWHe.js +56 -0
- package/dist/index.es-DKDgy7Kt.js +45 -0
- package/dist/index.es-DntoATwO.js +159 -0
- package/dist/index.es-UHKFl8Da.js +7075 -0
- package/dist/index.es-d5xhUpJZ.js +3242 -0
- package/dist/index.es-da0cf7oE.js +569 -0
- package/dist/index.es-h2lMdt7G.js +107 -0
- package/dist/index.es-zr101OF5.js +4853 -0
- package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
- package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/isEmpty-B4GG2s-V.js +31 -0
- package/dist/isPlainObject-C273y67K.js +40 -0
- package/dist/isString-BW9UHONv.js +21 -0
- package/dist/keyboard-Bpt0aBqQ.js +107 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +58 -54
- package/dist/orderBy-Bd48bw88.js +316 -0
- package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
- package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
- package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
- package/dist/services/BlockService.d.ts +1 -0
- package/dist/services/NumberService.d.ts +1 -0
- package/dist/services/UtilService.d.ts +1 -0
- package/dist/services/UtilService.js +2 -2
- package/dist/services/services.test.js +1 -1
- package/dist/toString-CrgB_7Pe.js +54 -0
- package/dist/tslib.es6-BDCynO9F.js +162 -0
- package/dist/types/GenericTable.d.ts +2 -2
- package/dist/types/HashTab.d.ts +0 -1
- package/dist/types/ListElement.d.ts +0 -1
- package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
- package/dist/uniqueId-NU3-C36A.js +18 -0
- package/dist/util-DA21pZXj.js +78 -0
- package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
- package/package.json +15 -15
- package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
- package/dist/GenericCard-B8x1DMa8.js +0 -81
- package/dist/ListAreaService-CRX4eEUJ.js +0 -108
- package/dist/_Map-Dtlps7IZ.js +0 -113
- package/dist/_overArg-_0pUmCsX.js +0 -14
- package/dist/get-P-5PYZOE.js +0 -426
- package/dist/isEmpty-BimaZd5G.js +0 -225
- package/dist/isString-BOHPtrlm.js +0 -44
- package/dist/orderBy-BVQIswlJ.js +0 -765
- package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import "../../assets/InfoGroup.css";
|
|
2
1
|
import { jsxs as d, Fragment as p, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { D as h } from "../../index.es-BWgXLqXn.js";
|
|
3
|
+
import { G as s } from "../../index.es-DntoATwO.js";
|
|
4
|
+
import { a as g, d as f } from "../../index.es-CF_xy2ns.js";
|
|
5
|
+
import { useMemo as _, Fragment as D } from "react";
|
|
6
|
+
import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
7
|
+
import '../../assets/InfoGroup.css';const C = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A = "_verticalDivider_4c1hq_14", G = "_mainGroup_4c1hq_22", x = "_textAlignRight_4c1hq_28", l = {
|
|
8
|
+
dividerContainer: C,
|
|
8
9
|
centerDefaultComponent: y,
|
|
9
10
|
verticalDivider: A,
|
|
10
11
|
mainGroup: G,
|
|
11
12
|
textAlignRight: x
|
|
12
|
-
},
|
|
13
|
-
const { isDesktop: o } =
|
|
14
|
-
|
|
15
|
-
/* @__PURE__ */ t(
|
|
16
|
-
] })) : /* @__PURE__ */ t(
|
|
13
|
+
}, F = ({ fields: r, bold: n }) => {
|
|
14
|
+
const { isDesktop: o } = m(), e = !!r.length && Array.isArray(r.at(0)), i = _(() => e && o ? r.map((a, c) => /* @__PURE__ */ d(p, { children: [
|
|
15
|
+
c != 0 && /* @__PURE__ */ t("span", { "data-testid": "test-divider", className: l.dividerContainer, children: /* @__PURE__ */ t(h, {}) }),
|
|
16
|
+
/* @__PURE__ */ t(u, { fields: a, bold: n })
|
|
17
|
+
] })) : /* @__PURE__ */ t(u, { fields: r.flat(), bold: n }), [o, e, r, n]);
|
|
17
18
|
return /* @__PURE__ */ t(
|
|
18
|
-
|
|
19
|
+
s,
|
|
19
20
|
{
|
|
20
21
|
"data-testid": "infoGroup",
|
|
21
22
|
direction: "vertical",
|
|
22
23
|
fullWidth: !0,
|
|
23
24
|
className: l.mainGroup,
|
|
24
25
|
gap: "none",
|
|
25
|
-
children:
|
|
26
|
+
children: i
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
|
-
},
|
|
29
|
-
const { isDesktop: o } =
|
|
29
|
+
}, u = ({ fields: r, bold: n }) => {
|
|
30
|
+
const { isDesktop: o } = m();
|
|
30
31
|
return /* @__PURE__ */ t(
|
|
31
|
-
|
|
32
|
+
s,
|
|
32
33
|
{
|
|
33
34
|
"data-testid": "singleRow",
|
|
34
35
|
fullWidth: !0,
|
|
35
36
|
direction: o ? "horizontal" : "vertical",
|
|
36
37
|
secondaryAlign: "start",
|
|
37
|
-
children:
|
|
38
|
+
children: r.map((e, i) => {
|
|
38
39
|
const a = o ? /* @__PURE__ */ t("div", { className: l.verticalDivider }) : /* @__PURE__ */ t(h, {});
|
|
39
|
-
return /* @__PURE__ */ d(
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */ t(R, { field: e, bold:
|
|
42
|
-
] }, `${e.label ?? "label"}_${
|
|
40
|
+
return /* @__PURE__ */ d(D, { children: [
|
|
41
|
+
i != 0 && a,
|
|
42
|
+
/* @__PURE__ */ t(R, { field: e, bold: n, variant: e.componentVariant })
|
|
43
|
+
] }, `${e.label ?? "label"}_${i}`);
|
|
43
44
|
})
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
47
|
}, R = ({
|
|
47
|
-
field:
|
|
48
|
-
bold:
|
|
48
|
+
field: r,
|
|
49
|
+
bold: n,
|
|
49
50
|
variant: o = "default"
|
|
50
51
|
}) => {
|
|
51
|
-
const { isDesktop: e } =
|
|
52
|
-
return
|
|
53
|
-
|
|
52
|
+
const { isDesktop: e } = m(), { component: i, value: a, label: c, themeColor: v } = r;
|
|
53
|
+
return i && o === "default" ? /* @__PURE__ */ t(s, { fullWidth: !0, primaryAlign: "center", className: l.centerDefaultComponent, children: i }) : /* @__PURE__ */ d(
|
|
54
|
+
s,
|
|
54
55
|
{
|
|
55
56
|
fullWidth: !0,
|
|
56
57
|
"data-testid": "infoGroupItem",
|
|
@@ -60,13 +61,13 @@ const D = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A
|
|
|
60
61
|
secondaryAlign: e ? "baseline" : "center",
|
|
61
62
|
className: e ? "" : l.textAlignRight,
|
|
62
63
|
children: [
|
|
63
|
-
/* @__PURE__ */ t(g, { themeColor: "text-hint-on-light", children:
|
|
64
|
-
|
|
64
|
+
/* @__PURE__ */ t(g, { themeColor: "text-hint-on-light", children: c }),
|
|
65
|
+
i ? /* @__PURE__ */ t(p, { children: i }) : /* @__PURE__ */ t(f, { level: 1, "data-testid": "infoGroupValue", themeColor: v, bold: n, children: a })
|
|
65
66
|
]
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
69
|
};
|
|
69
70
|
export {
|
|
70
71
|
R as Cell,
|
|
71
|
-
|
|
72
|
+
F as InfoGroup
|
|
72
73
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as l, s as t } from "../../react.esm-
|
|
2
|
+
import { a as l, s as t } from "../../react.esm-DNwojocF.js";
|
|
3
3
|
import { InfoGroup as r } from "./InfoGroup.js";
|
|
4
|
-
import { d as s, t as i, g as e } from "../../vi.CjhMlMwf-
|
|
4
|
+
import { d as s, t as i, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
5
5
|
s("InfoGroup Test", () => {
|
|
6
6
|
i("render Single InfoGroup", () => {
|
|
7
7
|
l(/* @__PURE__ */ o(r, { fields: m }));
|
|
@@ -1,56 +1,58 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { D as u } from "../../index.es-BWgXLqXn.js";
|
|
3
|
+
import { E as y } from "../../index.es-h2lMdt7G.js";
|
|
4
|
+
import { L as C } from "../../index.es-d5xhUpJZ.js";
|
|
5
|
+
import { o as p } from "../../orderBy-Bd48bw88.js";
|
|
6
|
+
import { useState as b, useMemo as v } from "react";
|
|
5
7
|
import { SearchBar as B } from "../SearchBar/SearchBar.js";
|
|
6
|
-
import { g as
|
|
7
|
-
const
|
|
8
|
+
import { g as D, a as j, s as t } from "../../ListAreaService-DOwtdRa4.js";
|
|
9
|
+
const q = ({
|
|
8
10
|
elements: r,
|
|
9
11
|
pathname: o,
|
|
10
12
|
isGrouped: i = !1,
|
|
11
|
-
hasSearch:
|
|
12
|
-
searchPlaceholder:
|
|
13
|
-
isIntegrated:
|
|
13
|
+
hasSearch: L = !1,
|
|
14
|
+
searchPlaceholder: w = "",
|
|
15
|
+
isIntegrated: m = !1,
|
|
14
16
|
isSorted: l = !0,
|
|
15
17
|
itemClassName: c = "",
|
|
16
18
|
maxHeight: T = "100%",
|
|
17
|
-
noElementsView:
|
|
19
|
+
noElementsView: $,
|
|
18
20
|
routerLinkElement: d
|
|
19
21
|
}) => {
|
|
20
|
-
const [e,
|
|
21
|
-
if (!e) return l ?
|
|
22
|
-
const
|
|
23
|
-
return l ?
|
|
24
|
-
}, [e, r, l]),
|
|
25
|
-
() => i ?
|
|
22
|
+
const [e, g] = b(""), a = v(() => {
|
|
23
|
+
if (!e) return l ? p(r, "title") : r;
|
|
24
|
+
const n = r.filter((f) => f.title.toLowerCase().includes(e.toLowerCase()) || f.subTitle?.toLowerCase().includes(e.toLowerCase()) || f.overlineTitle?.toLowerCase().includes(e.toLowerCase()));
|
|
25
|
+
return l ? p(n, "title") : n;
|
|
26
|
+
}, [e, r, l]), x = v(
|
|
27
|
+
() => i ? D(a, o, c, d) : j(a, o, c, d),
|
|
26
28
|
[a, o, c, i, d]
|
|
27
29
|
);
|
|
28
30
|
return /* @__PURE__ */ s(
|
|
29
|
-
|
|
31
|
+
y,
|
|
30
32
|
{
|
|
31
33
|
"data-testid": "elevation",
|
|
32
|
-
elevation:
|
|
34
|
+
elevation: m ? 0 : 1,
|
|
33
35
|
className: `${t.mainElevation}`,
|
|
34
|
-
children: /* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
children: /* @__PURE__ */ h("div", { className: t.fullWidth, children: [
|
|
37
|
+
L && r.length > 0 && /* @__PURE__ */ h("span", { "data-testid": "search-bar-container", children: [
|
|
38
|
+
m && /* @__PURE__ */ s(u, {}),
|
|
37
39
|
/* @__PURE__ */ s(
|
|
38
40
|
B,
|
|
39
41
|
{
|
|
40
42
|
searchTerm: e,
|
|
41
|
-
setSearchTerm:
|
|
43
|
+
setSearchTerm: g,
|
|
42
44
|
className: t.searchbar,
|
|
43
|
-
placeholder:
|
|
45
|
+
placeholder: w
|
|
44
46
|
}
|
|
45
47
|
),
|
|
46
48
|
/* @__PURE__ */ s(u, {})
|
|
47
49
|
] }),
|
|
48
|
-
a.length === 0 &&
|
|
50
|
+
a.length === 0 && $,
|
|
49
51
|
/* @__PURE__ */ s(
|
|
50
|
-
|
|
52
|
+
C,
|
|
51
53
|
{
|
|
52
54
|
"data-testid": "list",
|
|
53
|
-
items:
|
|
55
|
+
items: x,
|
|
54
56
|
className: `${t.list} ${t.primaryText} ${i ? "" : t.roundedBottom}`,
|
|
55
57
|
style: { maxHeight: T },
|
|
56
58
|
showDivider: !1
|
|
@@ -61,5 +63,5 @@ const M = ({
|
|
|
61
63
|
);
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
q as ListArea
|
|
65
67
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, Fragment as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { a as s, s as a, f as u } from "../../react.esm-
|
|
2
|
+
import { c as p } from "../../index.es-CF_xy2ns.js";
|
|
3
|
+
import { a as s, s as a, f as u } from "../../react.esm-DNwojocF.js";
|
|
4
4
|
import { ListArea as c } from "./ListArea.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { d as m, t as n, g as t } from "../../vi.CjhMlMwf-
|
|
5
|
+
import { g as h } from "../../ListAreaService-DOwtdRa4.js";
|
|
6
|
+
import { d as m, t as n, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
7
7
|
m("ListArea Test", () => {
|
|
8
8
|
const o = [
|
|
9
9
|
{
|
|
@@ -99,7 +99,7 @@ m("ListAreaService Test", () => {
|
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
101
|
n("should return grouped items", () => {
|
|
102
|
-
const e =
|
|
102
|
+
const e = h(o, "", "", void 0);
|
|
103
103
|
t(e.length).toBe(2), t(e[0].groupName).toStrictEqual(/* @__PURE__ */ r(p, { tag: "span", children: "farm-1" })), t(e[0].items.length).toBe(2), t(e[1].groupName).toStrictEqual(/* @__PURE__ */ r(p, { tag: "span", children: "farm-2" })), t(e[1].items.length).toBe(1);
|
|
104
104
|
});
|
|
105
105
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { ListElement } from '../../types/ListElement';
|
|
3
3
|
import { LinkProps } from '../../types/internal/ReactRouterTypes';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Groups items by groupName property and maps them to the schema of Bayer's List component
|
|
6
7
|
* @param items the items to group
|
|
@@ -27,18 +28,18 @@ export declare const getListedItems: (items: ListElement[], pathname: string, it
|
|
|
27
28
|
primaryText: string;
|
|
28
29
|
secondaryText: import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
overlineText: import("react/jsx-runtime").JSX.Element | undefined;
|
|
30
|
-
trailingBlock: string | number | boolean | JSX.Element | Iterable<import(
|
|
31
|
+
trailingBlock: string | number | boolean | JSX.Element | Iterable<import('react').ReactNode>;
|
|
31
32
|
leadingBlock: string | JSX.Element | undefined;
|
|
32
33
|
value: string | undefined;
|
|
33
34
|
componentProps: {
|
|
34
35
|
id: string;
|
|
35
36
|
'data-testid': string;
|
|
36
37
|
key: string;
|
|
37
|
-
leadingBlockType: "
|
|
38
|
-
trailingBlockType: "
|
|
38
|
+
leadingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
|
|
39
|
+
trailingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
|
|
39
40
|
className: string;
|
|
40
41
|
onClick: (_: ChangeEvent, value: string) => void | undefined;
|
|
41
|
-
tag: string | import(
|
|
42
|
+
tag: string | import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>> | undefined;
|
|
42
43
|
to: string | undefined;
|
|
43
44
|
disabled: boolean | undefined;
|
|
44
45
|
};
|
|
@@ -57,18 +58,18 @@ export declare const mapListElement: (element: ListElement, pathname: string | u
|
|
|
57
58
|
primaryText: string;
|
|
58
59
|
secondaryText: import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
overlineText: import("react/jsx-runtime").JSX.Element | undefined;
|
|
60
|
-
trailingBlock: string | number | boolean | JSX.Element | Iterable<import(
|
|
61
|
+
trailingBlock: string | number | boolean | JSX.Element | Iterable<import('react').ReactNode>;
|
|
61
62
|
leadingBlock: string | JSX.Element | undefined;
|
|
62
63
|
value: string | undefined;
|
|
63
64
|
componentProps: {
|
|
64
65
|
id: string;
|
|
65
66
|
'data-testid': string;
|
|
66
67
|
key: string;
|
|
67
|
-
leadingBlockType: "
|
|
68
|
-
trailingBlockType: "
|
|
68
|
+
leadingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
|
|
69
|
+
trailingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
|
|
69
70
|
className: string;
|
|
70
71
|
onClick: (_: ChangeEvent, value: string) => void | undefined;
|
|
71
|
-
tag: string | import(
|
|
72
|
+
tag: string | import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>> | undefined;
|
|
72
73
|
to: string | undefined;
|
|
73
74
|
disabled: boolean | undefined;
|
|
74
75
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "../../index.es-DntoATwO.js";
|
|
3
|
+
import "../../index.es-3043KTnb.js";
|
|
4
|
+
import "../../index.es-CF_xy2ns.js";
|
|
3
5
|
import "../Iconify/Iconify.js";
|
|
4
6
|
import "../../enums/AvailableCustomIcons.js";
|
|
5
|
-
import { g as
|
|
7
|
+
import { g as a, a as g, m as d } from "../../ListAreaService-DOwtdRa4.js";
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
a as getGroupedItems,
|
|
10
|
+
g as getListedItems,
|
|
11
|
+
d as mapListElement
|
|
10
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import { B as t } from "../../../BigLoadingSpinner-C3wTbTD0.js";
|
|
2
|
+
import "../../../index.es-CF_xy2ns.js";
|
|
4
3
|
import "../../Iconify/Iconify.js";
|
|
4
|
+
import { B as t } from "../../../BigLoadingSpinner-iegTbDcD.js";
|
|
5
5
|
export {
|
|
6
6
|
t as BigLoadingSpinner
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as r, B as n } from "../../../BigLoadingSpinner-
|
|
3
|
-
import { a as i, s as e } from "../../../react.esm-
|
|
4
|
-
import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-
|
|
2
|
+
import { s as r, B as n } from "../../../BigLoadingSpinner-iegTbDcD.js";
|
|
3
|
+
import { a as i, s as e } from "../../../react.esm-DNwojocF.js";
|
|
4
|
+
import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
5
5
|
g("BigLoadingSpinner Test", () => {
|
|
6
6
|
a("render BigLoadingSpinner with custom loading text", () => {
|
|
7
7
|
i(/* @__PURE__ */ o(n, { text: "Please wait..." })), t(e.getByText("Please wait...")).toBeInTheDocument(), t(e.getByRole("progressbar")).toBeInTheDocument();
|