@hortiview/shared-components 0.0.4722 → 0.0.4724
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/dist/_getTag-DyrzUAbj.js +494 -0
- package/dist/assets/DeleteModal.css +1 -1
- package/dist/components/BaseView/BaseView.js +43 -297
- package/dist/components/BasicHeading/BasicHeading.js +24 -25
- package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
- package/dist/components/BlockView/BlockView.js +14 -14
- package/dist/components/DeleteModal/DeleteModal.js +49 -4687
- package/dist/components/Disclaimer/Disclaimer.js +8 -10
- package/dist/components/EmptyView/EmptyView.js +8 -247
- package/dist/components/HashTabView/HashTabView.js +52 -1838
- package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +316 -261
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.js +34 -35
- package/dist/components/SearchBar/SearchBar.js +21 -2043
- package/dist/main.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_getTag-DNUtgXkb.js +0 -136
- package/dist/_stringToPath-BfzwTbL6.js +0 -54
- package/dist/component-Rx4bNsGO.js +0 -680
- package/dist/index.es-Ba9oZK_n.js +0 -769
- package/dist/index.es-C1ojb4Lq.js +0 -106
- package/dist/index.es-CNBieliG.js +0 -151
- package/dist/index.es-CQ3ep412.js +0 -305
- package/dist/index.es-CVCp4d0C.js +0 -45
- package/dist/index.es-Cct4Uapb.js +0 -1776
- package/dist/index.es-Cj9DW-2T.js +0 -430
- package/dist/index.es-Cm4X20_S.js +0 -673
- package/dist/index.es-InSNsV4f.js +0 -1067
- package/dist/index.es-L0ZCcbUf.js +0 -4939
- package/dist/tslib.es6-CIXEwqhg.js +0 -72
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { TypoButton as p } from "@element/react-components";
|
|
2
3
|
import { r as s, s as a, f as u } from "../../react.esm-BeDwcQWb.js";
|
|
3
4
|
import { ListArea as c } from "./ListArea.js";
|
|
4
5
|
import { getGroupedItems as h } from "./ListAreaService.js";
|
|
5
6
|
import { d as m, t as n, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
|
-
import { T as p } from "../../index.es-Cm4X20_S.js";
|
|
7
7
|
m("ListArea Test", () => {
|
|
8
8
|
const o = [
|
|
9
9
|
{
|
|
@@ -1,58 +1,57 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { TypoButton as k, TypoSubtitle as C, TypoBody as x, Icon as N } from "@element/react-components";
|
|
3
|
+
import { Iconify as L } from "../Iconify/Iconify.js";
|
|
3
4
|
import { s as u } from "../../listArea.module-B04TR5bj.js";
|
|
4
|
-
import { AvailableCustomIcons as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return !t || typeof t != "string" || (e[t] || (e[t] = {
|
|
11
|
-
groupName: /* @__PURE__ */ s(x, { children: t }),
|
|
5
|
+
import { AvailableCustomIcons as $ } from "../../enums/AvailableCustomIcons.js";
|
|
6
|
+
const O = (e, i, r, n) => {
|
|
7
|
+
const c = e.reduce((o, a) => {
|
|
8
|
+
const { groupName: t, ...m } = a;
|
|
9
|
+
return !t || typeof t != "string" || (o[t] || (o[t] = {
|
|
10
|
+
groupName: /* @__PURE__ */ s(k, { children: t }),
|
|
12
11
|
id: t,
|
|
13
12
|
items: []
|
|
14
|
-
}),
|
|
15
|
-
...
|
|
16
|
-
y(
|
|
17
|
-
]),
|
|
13
|
+
}), o[t].items = [
|
|
14
|
+
...o[t].items,
|
|
15
|
+
y(m, i, r, !0, n)
|
|
16
|
+
]), o;
|
|
18
17
|
}, {});
|
|
19
|
-
return Object.values(
|
|
20
|
-
},
|
|
18
|
+
return Object.values(c);
|
|
19
|
+
}, P = (e, i, r, n) => e.map((c) => y(c, i, r, !1, n)), y = (e, i, r, n, c) => {
|
|
21
20
|
const {
|
|
22
|
-
title:
|
|
23
|
-
subTitle:
|
|
21
|
+
title: o,
|
|
22
|
+
subTitle: a,
|
|
24
23
|
route: t,
|
|
25
|
-
value:
|
|
24
|
+
value: m,
|
|
26
25
|
noNavigation: p,
|
|
27
|
-
disabled:
|
|
28
|
-
icon:
|
|
26
|
+
disabled: v,
|
|
27
|
+
icon: f,
|
|
29
28
|
iconType: d,
|
|
30
29
|
trailingIcon: I,
|
|
31
30
|
trailingIconType: T,
|
|
32
|
-
actionButton:
|
|
33
|
-
onClick:
|
|
31
|
+
actionButton: B,
|
|
32
|
+
onClick: b,
|
|
34
33
|
customTitle: g
|
|
35
|
-
} =
|
|
34
|
+
} = e, l = i === t;
|
|
36
35
|
return {
|
|
37
|
-
select:
|
|
38
|
-
primaryText: g ?? /* @__PURE__ */ s(
|
|
39
|
-
secondaryText:
|
|
40
|
-
trailingBlock:
|
|
41
|
-
leadingBlock: j(
|
|
42
|
-
nonInteractive:
|
|
43
|
-
value:
|
|
36
|
+
select: l,
|
|
37
|
+
primaryText: g ?? /* @__PURE__ */ s(C, { level: 1, bold: l, themeColor: l ? "primary" : void 0, children: o }),
|
|
38
|
+
secondaryText: a && !g ? /* @__PURE__ */ s(x, { level: 2, themeColor: l ? "primary" : void 0, children: a }) : void 0,
|
|
39
|
+
trailingBlock: B ?? I ?? /* @__PURE__ */ s(N, { icon: "arrow_right" }),
|
|
40
|
+
leadingBlock: j(f),
|
|
41
|
+
nonInteractive: v,
|
|
42
|
+
value: m,
|
|
44
43
|
componentProps: {
|
|
45
44
|
leadingBlockType: d ?? "icon",
|
|
46
45
|
trailingBlockType: T ?? "icon",
|
|
47
46
|
className: `${d === "avatar" ? "" : u.listItem} ${r} ${n ? u.groupedListItem : ""}`,
|
|
48
|
-
onClick: (S, h) =>
|
|
49
|
-
tag: p ? void 0 :
|
|
47
|
+
onClick: (S, h) => b?.(h),
|
|
48
|
+
tag: p ? void 0 : c ?? "a",
|
|
50
49
|
to: p ? void 0 : t
|
|
51
50
|
}
|
|
52
51
|
};
|
|
53
|
-
}, j = (
|
|
52
|
+
}, j = (e) => typeof e == "string" && e in $ ? /* @__PURE__ */ s(L, { icon: e }) : e;
|
|
54
53
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
O as getGroupedItems,
|
|
55
|
+
P as getListedItems,
|
|
57
56
|
y as mapListElement
|
|
58
57
|
};
|