@hortiview/shared-components 0.0.6403 → 0.0.6829
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/ListAreaService-DDlsV9UD.js +100 -0
- package/dist/assets/BaseView.css +1 -1
- package/dist/assets/ListAreaService.css +1 -1
- package/dist/components/BaseView/BaseView.d.ts +1 -1
- package/dist/components/BaseView/BaseView.js +57 -55
- package/dist/components/BasicHeading/BasicHeading.js +38 -37
- package/dist/components/FormComponents/FormSelect/FormSelect.js +90 -1465
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +70 -3027
- package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
- package/dist/components/FormComponents/FormText/FormText.js +50 -48
- package/dist/components/ListArea/ListArea.js +1 -1
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.d.ts +2 -2
- package/dist/components/ListArea/ListAreaService.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +30 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.js +22 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.test.d.ts +1 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +37 -0
- package/dist/index-DfbRag7b.js +2963 -0
- package/dist/react-tooltip.min-BzHiZW8k.js +1380 -0
- package/package.json +1 -1
- package/dist/ListAreaService-BoNnFzrZ.js +0 -82
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": "0.0.
|
|
4
|
+
"version": "0.0.6829",
|
|
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>",
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import "./assets/ListAreaService.css";
|
|
2
|
-
import { jsx as l, jsxs as b } from "react/jsx-runtime";
|
|
3
|
-
import { TypoButton as C, Group as k, TypoSubtitle as N, TypoBody as L, Icon as O } from "@element/react-components";
|
|
4
|
-
import { Iconify as E } from "./components/Iconify/Iconify.js";
|
|
5
|
-
import { AvailableCustomIcons as $ } from "./enums/AvailableCustomIcons.js";
|
|
6
|
-
const j = "_fullWidth_9hcwy_1", W = "_mainElevation_9hcwy_5", G = "_searchbar_9hcwy_11", S = "_roundedBottom_9hcwy_19", A = "_primaryText_9hcwy_24", P = "_noOverlineText_9hcwy_28", q = "_list_9hcwy_32", z = "_listItem_9hcwy_60", D = "_trailingIcon_9hcwy_64", F = "_groupedListItem_9hcwy_76", H = "_iconColor_9hcwy_80", J = "_overlineTitle_9hcwy_84", a = {
|
|
7
|
-
fullWidth: j,
|
|
8
|
-
mainElevation: W,
|
|
9
|
-
searchbar: G,
|
|
10
|
-
roundedBottom: S,
|
|
11
|
-
primaryText: A,
|
|
12
|
-
noOverlineText: P,
|
|
13
|
-
list: q,
|
|
14
|
-
listItem: z,
|
|
15
|
-
trailingIcon: D,
|
|
16
|
-
groupedListItem: F,
|
|
17
|
-
iconColor: H,
|
|
18
|
-
overlineTitle: J
|
|
19
|
-
}, Y = (e, n, r, c) => {
|
|
20
|
-
const o = e.reduce((i, s) => {
|
|
21
|
-
const { groupName: t, ...m } = s;
|
|
22
|
-
return !t || typeof t != "string" || (i[t] || (i[t] = {
|
|
23
|
-
groupName: /* @__PURE__ */ l(C, { children: t }),
|
|
24
|
-
id: t,
|
|
25
|
-
items: []
|
|
26
|
-
}), i[t].items = [
|
|
27
|
-
...i[t].items,
|
|
28
|
-
h(m, n, r, c)
|
|
29
|
-
]), i;
|
|
30
|
-
}, {});
|
|
31
|
-
return Object.values(o);
|
|
32
|
-
}, Z = (e, n, r, c) => e.map((o) => h(o, n, r, c)), h = (e, n, r, c) => {
|
|
33
|
-
const {
|
|
34
|
-
id: o,
|
|
35
|
-
title: i,
|
|
36
|
-
subTitle: s,
|
|
37
|
-
route: t,
|
|
38
|
-
value: m,
|
|
39
|
-
noNavigation: p,
|
|
40
|
-
disabled: _,
|
|
41
|
-
icon: g,
|
|
42
|
-
iconType: y,
|
|
43
|
-
trailingIcon: T,
|
|
44
|
-
trailingIconType: I,
|
|
45
|
-
actionButton: f,
|
|
46
|
-
onClick: w,
|
|
47
|
-
customTitle: u,
|
|
48
|
-
listItemClassName: x,
|
|
49
|
-
overlineTitle: v
|
|
50
|
-
} = e, d = n === t;
|
|
51
|
-
return {
|
|
52
|
-
id: o,
|
|
53
|
-
key: o,
|
|
54
|
-
select: d,
|
|
55
|
-
primaryText: o,
|
|
56
|
-
secondaryText: /* @__PURE__ */ b(k, { direction: "vertical", gap: "none", children: [
|
|
57
|
-
u ?? /* @__PURE__ */ l(N, { level: 1, bold: d, className: "lmnt-theme-on-surface-active", children: i }),
|
|
58
|
-
s && !u ? /* @__PURE__ */ l(L, { level: 2, themeColor: d ? "primary" : void 0, className: "lmnt-theme-on-surface-inactive", children: s }) : void 0
|
|
59
|
-
] }),
|
|
60
|
-
overlineText: v,
|
|
61
|
-
trailingBlock: f ?? T ?? /* @__PURE__ */ l(O, { icon: "arrow_right", className: a.iconColor }),
|
|
62
|
-
leadingBlock: K(g),
|
|
63
|
-
value: m,
|
|
64
|
-
componentProps: {
|
|
65
|
-
id: o,
|
|
66
|
-
key: o,
|
|
67
|
-
leadingBlockType: y ?? "icon",
|
|
68
|
-
trailingBlockType: I ?? "icon",
|
|
69
|
-
className: `${y === "avatar" ? "" : a.listItem} ${r} ${x ?? ""} ${v ? a.overlineTitle : a.noOverlineText}`,
|
|
70
|
-
onClick: (M, B) => w?.(B),
|
|
71
|
-
tag: _ || p ? void 0 : c ?? "a",
|
|
72
|
-
to: _ || p ? void 0 : t,
|
|
73
|
-
disabled: _
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}, K = (e) => typeof e == "string" && e in $ ? /* @__PURE__ */ l(E, { icon: e }) : e;
|
|
77
|
-
export {
|
|
78
|
-
Z as a,
|
|
79
|
-
Y as g,
|
|
80
|
-
h as m,
|
|
81
|
-
a as s
|
|
82
|
-
};
|