@hortiview/shared-components 0.0.11528 → 0.0.11589
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 +21 -4
- package/dist/{BigLoadingSpinner-D7H28pr5.js → BigLoadingSpinner-iegTbDcD.js} +6 -6
- package/dist/GenericCard-6J558OgP.js +350 -0
- package/dist/{ListAreaService-YS_UUPh5.js → ListAreaService-DOwtdRa4.js} +18 -16
- 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/component-DsB0poTj.js +571 -0
- package/dist/component-neHBNHRu.js +114 -0
- package/dist/components/AlertBanner/AlertBanner.js +16 -15
- package/dist/components/BaseView/BaseView.js +5 -5
- package/dist/components/BasicHeading/BasicHeading.js +25 -24
- package/dist/components/BasicHeading/BasicHeading.test.js +9 -9
- package/dist/components/BlockView/BlockView.js +5 -5
- package/dist/components/ChipCard/ChipCard.js +1765 -14
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +28 -27
- package/dist/components/DeleteModal/DeleteModal.js +37 -34
- package/dist/components/Disclaimer/Disclaimer.js +11 -9
- package/dist/components/EmptyView/EmptyView.js +258 -19
- package/dist/components/Filter/Filter.js +58 -54
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5974 -6387
- package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +1 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +5 -5
- package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +1 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
- package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
- package/dist/components/FormComponents/FormText/FormText.d.ts +1 -1
- package/dist/components/FormComponents/FormText/FormText.js +33 -32
- package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +1 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
- package/dist/components/GenericTable/GenericTable.js +10486 -74
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
- package/dist/components/HashTabView/HashTabView.js +1805 -72
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.js +4 -4
- package/dist/components/HealthCheckFailed/HealthCheckFailed.js +20 -17
- package/dist/components/Iconify/Iconify.d.ts +1 -2
- package/dist/components/Iconify/Iconify.js +42 -42
- package/dist/components/InfoGroup/InfoGroup.js +30 -28
- package/dist/components/ListArea/ListArea.js +29 -27
- package/dist/components/ListArea/ListArea.test.js +2 -2
- 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 +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -37
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +926 -9
- 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.js +6 -6
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +7 -6
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +13 -13
- 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/useHelperText.js +1 -1
- package/dist/identity-DLWZln-X.js +1763 -0
- 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 +1 -0
- package/dist/main.js +57 -55
- package/dist/orderBy-Bd48bw88.js +316 -0
- package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
- package/dist/services/UtilService.js +2 -2
- package/dist/toString-CrgB_7Pe.js +54 -0
- package/dist/tslib.es6-BDCynO9F.js +162 -0
- package/dist/types/GenericTable.d.ts +1 -1
- package/dist/uniqueId-NU3-C36A.js +18 -0
- package/dist/util-DA21pZXj.js +78 -0
- package/package.json +1 -1
- package/dist/GenericCard-jlt8ZsHi.js +0 -80
- 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-Czs4RGD1.js +0 -1400
|
@@ -1,55 +1,57 @@
|
|
|
1
1
|
import { jsxs as d, Fragment as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
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,
|
|
7
9
|
centerDefaultComponent: y,
|
|
8
10
|
verticalDivider: A,
|
|
9
11
|
mainGroup: G,
|
|
10
12
|
textAlignRight: x
|
|
11
|
-
},
|
|
12
|
-
const { isDesktop: o } =
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */ t(
|
|
15
|
-
] })) : /* @__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]);
|
|
16
18
|
return /* @__PURE__ */ t(
|
|
17
|
-
|
|
19
|
+
s,
|
|
18
20
|
{
|
|
19
21
|
"data-testid": "infoGroup",
|
|
20
22
|
direction: "vertical",
|
|
21
23
|
fullWidth: !0,
|
|
22
24
|
className: l.mainGroup,
|
|
23
25
|
gap: "none",
|
|
24
|
-
children:
|
|
26
|
+
children: i
|
|
25
27
|
}
|
|
26
28
|
);
|
|
27
|
-
},
|
|
28
|
-
const { isDesktop: o } =
|
|
29
|
+
}, u = ({ fields: r, bold: n }) => {
|
|
30
|
+
const { isDesktop: o } = m();
|
|
29
31
|
return /* @__PURE__ */ t(
|
|
30
|
-
|
|
32
|
+
s,
|
|
31
33
|
{
|
|
32
34
|
"data-testid": "singleRow",
|
|
33
35
|
fullWidth: !0,
|
|
34
36
|
direction: o ? "horizontal" : "vertical",
|
|
35
37
|
secondaryAlign: "start",
|
|
36
|
-
children:
|
|
38
|
+
children: r.map((e, i) => {
|
|
37
39
|
const a = o ? /* @__PURE__ */ t("div", { className: l.verticalDivider }) : /* @__PURE__ */ t(h, {});
|
|
38
|
-
return /* @__PURE__ */ d(
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ t(R, { field: e, bold:
|
|
41
|
-
] }, `${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}`);
|
|
42
44
|
})
|
|
43
45
|
}
|
|
44
46
|
);
|
|
45
47
|
}, R = ({
|
|
46
|
-
field:
|
|
47
|
-
bold:
|
|
48
|
+
field: r,
|
|
49
|
+
bold: n,
|
|
48
50
|
variant: o = "default"
|
|
49
51
|
}) => {
|
|
50
|
-
const { isDesktop: e } =
|
|
51
|
-
return
|
|
52
|
-
|
|
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,
|
|
53
55
|
{
|
|
54
56
|
fullWidth: !0,
|
|
55
57
|
"data-testid": "infoGroupItem",
|
|
@@ -59,13 +61,13 @@ import '../../assets/InfoGroup.css';const D = "_dividerContainer_4c1hq_1", y = "
|
|
|
59
61
|
secondaryAlign: e ? "baseline" : "center",
|
|
60
62
|
className: e ? "" : l.textAlignRight,
|
|
61
63
|
children: [
|
|
62
|
-
/* @__PURE__ */ t(g, { themeColor: "text-hint-on-light", children:
|
|
63
|
-
|
|
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 })
|
|
64
66
|
]
|
|
65
67
|
}
|
|
66
68
|
);
|
|
67
69
|
};
|
|
68
70
|
export {
|
|
69
71
|
R as Cell,
|
|
70
|
-
|
|
72
|
+
F as InfoGroup
|
|
71
73
|
};
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, Fragment as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as p } from "../../index.es-CF_xy2ns.js";
|
|
3
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 h } from "../../ListAreaService-
|
|
5
|
+
import { g as h } from "../../ListAreaService-DOwtdRa4.js";
|
|
6
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 = [
|
|
@@ -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-D7H28pr5.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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as r, B as n } from "../../../BigLoadingSpinner-
|
|
2
|
+
import { s as r, B as n } from "../../../BigLoadingSpinner-iegTbDcD.js";
|
|
3
3
|
import { a as i, s as e } from "../../../react.esm-DNwojocF.js";
|
|
4
4
|
import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
5
5
|
g("BigLoadingSpinner Test", () => {
|