@hortiview/shared-components 2.19.1 → 2.20.1
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 +12 -0
- package/dist/{ListAreaService-Y8wR14Xq.js → ListAreaService-B0x97Jin.js} +45 -44
- package/dist/assets/ListAreaService.css +1 -1
- package/dist/components/ListArea/ListArea.js +25 -25
- package/dist/components/ListArea/ListAreaService.js +1 -1
- package/dist/types/Languages.d.ts +2 -0
- package/dist/types/Languages.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [2.20.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.20.0...v2.20.1) (2026-03-26)
|
|
2
|
+
|
|
3
|
+
### Code Refactoring
|
|
4
|
+
|
|
5
|
+
* update SearchBar styling to remove bottom line in ListArea ([dffb907](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/dffb907f424da1ab7eb37acfb02c8f532c16e805))
|
|
6
|
+
|
|
7
|
+
## [2.20.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.19.1...v2.20.0) (2026-03-24)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add new country keys for Netherlands and Canada in AVAILABLE_COUNTRY_KEYS ([2fdd83d](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/2fdd83dd30c4e72f54b8a3401f98a9ab0ed55ec9))
|
|
12
|
+
|
|
1
13
|
## [2.19.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.19.0...v2.19.1) (2026-03-24)
|
|
2
14
|
|
|
3
15
|
### Code Refactoring
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { jsx as r, jsxs as G } from "react/jsx-runtime";
|
|
2
2
|
import { G as S } from "./index.es-Z0aF-7Cn.js";
|
|
3
|
-
import { I as
|
|
4
|
-
import { P as
|
|
5
|
-
import { e as
|
|
6
|
-
import { c as
|
|
7
|
-
import { Iconify as
|
|
8
|
-
import { AvailableCustomIcons as
|
|
9
|
-
import './assets/ListAreaService.css';const
|
|
10
|
-
fullWidth:
|
|
11
|
-
mainElevation:
|
|
3
|
+
import { I as b } from "./index.es-DEBGoIKX.js";
|
|
4
|
+
import { P as O } from "./index.es-DgncYOqO.js";
|
|
5
|
+
import { e as k, c as L, T as $ } from "./index.es-DUrjyxNI.js";
|
|
6
|
+
import { c as A } from "./index-Df2FYN-K.js";
|
|
7
|
+
import { Iconify as j } from "./components/Iconify/Iconify.js";
|
|
8
|
+
import { AvailableCustomIcons as H } from "./enums/AvailableCustomIcons.js";
|
|
9
|
+
import './assets/ListAreaService.css';const M = "_fullWidth_1w7l3_1", P = "_mainElevation_1w7l3_6", R = "_searchBarLine_1w7l3_13", W = "_searchbar_1w7l3_17", q = "_roundedBottom_1w7l3_21", z = "_primaryText_1w7l3_26", D = "_list_1w7l3_30", F = "_listItem_1w7l3_41", J = "_isSelected_1w7l3_65", K = "_noGroupHeaderMargin_1w7l3_74", Q = "_indentGroupedElement_1w7l3_78", U = "_isNotSelected_1w7l3_82", V = "_iconColor_1w7l3_92", X = "_overlineTitle_1w7l3_96", Y = "_noOverlineTitle_1w7l3_101", Z = "_truncate_1w7l3_105", ee = "_truncateOverlineText_1w7l3_116", te = "_hasNoRoundedEdges_1w7l3_121", oe = "_hideArrowIcon_1w7l3_125", t = {
|
|
10
|
+
fullWidth: M,
|
|
11
|
+
mainElevation: P,
|
|
12
|
+
searchBarLine: R,
|
|
12
13
|
searchbar: W,
|
|
13
|
-
roundedBottom:
|
|
14
|
-
primaryText:
|
|
15
|
-
list:
|
|
16
|
-
listItem:
|
|
17
|
-
isSelected:
|
|
18
|
-
noGroupHeaderMargin:
|
|
19
|
-
indentGroupedElement:
|
|
20
|
-
isNotSelected:
|
|
21
|
-
iconColor:
|
|
22
|
-
overlineTitle:
|
|
23
|
-
noOverlineTitle:
|
|
24
|
-
truncate:
|
|
25
|
-
truncateOverlineText:
|
|
26
|
-
hasNoRoundedEdges:
|
|
27
|
-
hideArrowIcon:
|
|
28
|
-
},
|
|
14
|
+
roundedBottom: q,
|
|
15
|
+
primaryText: z,
|
|
16
|
+
list: D,
|
|
17
|
+
listItem: F,
|
|
18
|
+
isSelected: J,
|
|
19
|
+
noGroupHeaderMargin: K,
|
|
20
|
+
indentGroupedElement: Q,
|
|
21
|
+
isNotSelected: U,
|
|
22
|
+
iconColor: V,
|
|
23
|
+
overlineTitle: X,
|
|
24
|
+
noOverlineTitle: Y,
|
|
25
|
+
truncate: Z,
|
|
26
|
+
truncateOverlineText: ee,
|
|
27
|
+
hasNoRoundedEdges: te,
|
|
28
|
+
hideArrowIcon: oe
|
|
29
|
+
}, ue = (o, l, s, a) => {
|
|
29
30
|
const n = o.reduce((i, c) => {
|
|
30
31
|
const { groupName: e, groupComponent: _, ...d } = c;
|
|
31
32
|
return !e || typeof e != "string" || (i[e] || (i[e] = {
|
|
32
|
-
groupName: _ ?? /* @__PURE__ */ r(
|
|
33
|
+
groupName: _ ?? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(k, { children: e }) }),
|
|
33
34
|
id: e,
|
|
34
35
|
items: []
|
|
35
36
|
}), i[e].items = [
|
|
36
37
|
...i[e].items,
|
|
37
|
-
|
|
38
|
+
g(d, l, s, a)
|
|
38
39
|
]), i;
|
|
39
40
|
}, {});
|
|
40
41
|
return Object.values(n);
|
|
41
|
-
},
|
|
42
|
+
}, pe = (o, l, s, a) => o.map((n) => g(n, l, s, a)), g = (o, l, s, a) => {
|
|
42
43
|
const {
|
|
43
44
|
id: n,
|
|
44
45
|
title: i,
|
|
@@ -47,9 +48,9 @@ import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_main
|
|
|
47
48
|
value: _,
|
|
48
49
|
noNavigation: d,
|
|
49
50
|
disabled: u,
|
|
50
|
-
icon:
|
|
51
|
+
icon: h,
|
|
51
52
|
iconType: v,
|
|
52
|
-
trailingIcon:
|
|
53
|
+
trailingIcon: w,
|
|
53
54
|
trailingIconType: y,
|
|
54
55
|
actionButton: f,
|
|
55
56
|
onClick: I,
|
|
@@ -57,13 +58,13 @@ import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_main
|
|
|
57
58
|
listItemClassName: N,
|
|
58
59
|
overlineTitle: p,
|
|
59
60
|
"data-testid": x,
|
|
60
|
-
indentElement:
|
|
61
|
-
} = o, m =
|
|
61
|
+
indentElement: B
|
|
62
|
+
} = o, m = l === e, E = A(
|
|
62
63
|
v !== "avatar" && t.listItem,
|
|
63
64
|
s,
|
|
64
65
|
N,
|
|
65
66
|
p ? t.overlineTitle : t.noOverlineTitle,
|
|
66
|
-
|
|
67
|
+
B && t.indentGroupedElement,
|
|
67
68
|
m ? t.isSelected : t.isNotSelected
|
|
68
69
|
);
|
|
69
70
|
return {
|
|
@@ -73,7 +74,7 @@ import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_main
|
|
|
73
74
|
primaryText: n,
|
|
74
75
|
secondaryText: /* @__PURE__ */ G(S, { direction: "vertical", gap: "none", children: [
|
|
75
76
|
T ?? /* @__PURE__ */ r(
|
|
76
|
-
|
|
77
|
+
L,
|
|
77
78
|
{
|
|
78
79
|
"data-testid": "title",
|
|
79
80
|
level: 1,
|
|
@@ -83,7 +84,7 @@ import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_main
|
|
|
83
84
|
}
|
|
84
85
|
),
|
|
85
86
|
c && !T ? /* @__PURE__ */ r(
|
|
86
|
-
|
|
87
|
+
$,
|
|
87
88
|
{
|
|
88
89
|
"data-testid": "subtitle",
|
|
89
90
|
level: 2,
|
|
@@ -101,8 +102,8 @@ import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_main
|
|
|
101
102
|
children: p
|
|
102
103
|
}
|
|
103
104
|
) : void 0,
|
|
104
|
-
trailingBlock: f ??
|
|
105
|
-
leadingBlock:
|
|
105
|
+
trailingBlock: f ?? w ?? /* @__PURE__ */ r(b, { icon: "arrow_right", className: t.iconColor }),
|
|
106
|
+
leadingBlock: ne(h),
|
|
106
107
|
value: _,
|
|
107
108
|
componentProps: {
|
|
108
109
|
id: n,
|
|
@@ -110,17 +111,17 @@ import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_main
|
|
|
110
111
|
key: n,
|
|
111
112
|
leadingBlockType: v ?? "icon",
|
|
112
113
|
trailingBlockType: y ?? "icon",
|
|
113
|
-
className:
|
|
114
|
-
onClick: (
|
|
115
|
-
tag: u || d ? void 0 :
|
|
114
|
+
className: E,
|
|
115
|
+
onClick: (ie, C) => I?.(C),
|
|
116
|
+
tag: u || d ? void 0 : a ?? "a",
|
|
116
117
|
to: u || d ? void 0 : e,
|
|
117
118
|
disabled: u
|
|
118
119
|
}
|
|
119
120
|
};
|
|
120
|
-
},
|
|
121
|
+
}, ne = (o) => typeof o == "string" && o in H ? /* @__PURE__ */ r(j, { icon: o }) : o;
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
pe as a,
|
|
124
|
+
ue as g,
|
|
125
|
+
g as m,
|
|
125
126
|
t as s
|
|
126
127
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._fullWidth_1w7l3_1{width:100%;height:100%}._mainElevation_1w7l3_6{background:var(--lmnt-theme-background);width:100%;height:100%}._searchBarLine_1w7l3_13 [class*="lmnt mdc-line-ripple"]{display:none!important}._searchbar_1w7l3_17 button{margin-right:.5rem}._roundedBottom_1w7l3_21{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}._primaryText_1w7l3_26 [class*=mdc-list-item__primary-text]{display:none!important}._list_1w7l3_30{padding-top:0;padding-bottom:0;overflow-y:auto;scrollbar-width:thin}._list_1w7l3_30 [class*=mdc-list-item__overline-text]{margin-bottom:-2.25rem}._listItem_1w7l3_41:hover{background-color:var(--lmnt-theme-surface-variant)}._listItem_1w7l3_41 i:not(._trailingIcon_1w7l3_45){color:var(--lmnt-theme-on-surface-inactive)}._listItem_1w7l3_41 [class^="lmnt mdc-list-item__end"] i{color:var(--lmnt-theme-on-surface-disabled)}._listItem_1w7l3_41:focus-within [class^="lmnt mdc-list-item__end"] i{color:var(--lmnt-theme-primary)!important}._listItem_1w7l3_41 [class^=mdc-list-item__start]{margin:0 1rem!important;align-self:center!important}._listItem_1w7l3_41:focus [class^=mdc-list-item__start] i{color:var(--lmnt-theme-primary)!important}._listItem_1w7l3_41._isSelected_1w7l3_65 i,._listItem_1w7l3_41[aria-selected=true] i{color:var(--lmnt-theme-primary)!important}._groupedListItem_1w7l3_70{height:4.5rem!important}._noGroupHeaderMargin_1w7l3_74 h3{margin:0}._indentGroupedElement_1w7l3_78{padding-left:2.5rem!important}._isNotSelected_1w7l3_82 [class*=mdc-list-item__ripple]:before{opacity:inherit!important;background-color:inherit!important}._isSelected_1w7l3_65 [class*=mdc-list-item__ripple]:before{opacity:.2!important;background-color:var(--lmnt-theme-primary)!important}._iconColor_1w7l3_92{color:var(--lmnt-theme-on-surface-disabled)!important}._overlineTitle_1w7l3_96 [class*=mdc-list-item__overline-text]{color:var(--lmnt-theme-on-surface-inactive)!important;line-height:1rem!important}._noOverlineTitle_1w7l3_101 [class*=mdc-list-item__secondary-text] [class*=lmnt-group]{margin-top:-.875rem}._truncate_1w7l3_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_1w7l3_116{margin-bottom:-1rem!important;margin-top:-1rem!important}._hasNoRoundedEdges_1w7l3_121{border-radius:0rem!important}._hideArrowIcon_1w7l3_125 i{visibility:hidden}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { D } from "../../index.es-C27R5Xae.js";
|
|
3
|
-
import { E as
|
|
4
|
-
import { L as
|
|
3
|
+
import { E as $ } from "../../index.es-DhlgTSuU.js";
|
|
4
|
+
import { L as j } from "../../index.es-Cg57snrN.js";
|
|
5
5
|
import { c as p } from "../../index-Df2FYN-K.js";
|
|
6
6
|
import { o as v } from "../../orderBy-Ce85KqD6.js";
|
|
7
|
-
import { useState as
|
|
8
|
-
import { SearchBar as
|
|
9
|
-
import { g as
|
|
7
|
+
import { useState as A, useMemo as w } from "react";
|
|
8
|
+
import { SearchBar as E } from "../SearchBar/SearchBar.js";
|
|
9
|
+
import { g as I, a as M, s as e } from "../../ListAreaService-B0x97Jin.js";
|
|
10
10
|
const G = ({
|
|
11
11
|
elements: t,
|
|
12
12
|
pathname: o,
|
|
@@ -23,41 +23,41 @@ const G = ({
|
|
|
23
23
|
nonInteractive: n = !1,
|
|
24
24
|
routerLinkElement: c
|
|
25
25
|
}) => {
|
|
26
|
-
const [r,
|
|
26
|
+
const [r, B] = A(""), a = w(() => {
|
|
27
27
|
if (!r) return l ? v(t, "title") : t;
|
|
28
|
-
const
|
|
29
|
-
return l ? v(
|
|
30
|
-
}, [r, t, l]),
|
|
31
|
-
() => i ?
|
|
32
|
-
[
|
|
28
|
+
const h = t.filter((f) => f.title.toLowerCase().includes(r.toLowerCase()) || f.subTitle?.toLowerCase().includes(r.toLowerCase()) || f.overlineTitle?.toLowerCase().includes(r.toLowerCase()));
|
|
29
|
+
return l ? v(h, "title") : h;
|
|
30
|
+
}, [r, t, l]), C = w(
|
|
31
|
+
() => i ? I(a, o, d, c) : M(a, o, d, c),
|
|
32
|
+
[a, o, d, i, c]
|
|
33
33
|
);
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
|
|
34
|
+
return /* @__PURE__ */ s(
|
|
35
|
+
$,
|
|
36
36
|
{
|
|
37
37
|
"data-testid": "elevation",
|
|
38
38
|
elevation: x ? 0 : 1,
|
|
39
39
|
className: `${e.mainElevation}`,
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
L && t.length > 0 && /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
40
|
+
children: /* @__PURE__ */ u("div", { className: p(e.fullWidth, e.noGroupHeaderMargin), children: [
|
|
41
|
+
L && t.length > 0 && /* @__PURE__ */ u("span", { "data-testid": "search-bar-container", children: [
|
|
42
|
+
/* @__PURE__ */ s(
|
|
43
|
+
E,
|
|
44
44
|
{
|
|
45
45
|
searchTerm: r,
|
|
46
|
-
setSearchTerm:
|
|
47
|
-
className: e.searchbar
|
|
46
|
+
setSearchTerm: B,
|
|
47
|
+
className: `${e.searchbar} ${e.searchBarLine}`,
|
|
48
48
|
placeholder: g,
|
|
49
49
|
variant: "embedded"
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ s(D, {})
|
|
53
53
|
] }),
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
54
|
+
a.length === 0 && b,
|
|
55
|
+
/* @__PURE__ */ s(
|
|
56
|
+
j,
|
|
57
57
|
{
|
|
58
58
|
nonInteractive: n,
|
|
59
59
|
"data-testid": y,
|
|
60
|
-
items:
|
|
60
|
+
items: C,
|
|
61
61
|
className: p(
|
|
62
62
|
e.list,
|
|
63
63
|
e.primaryText,
|
|
@@ -6,7 +6,7 @@ import "../../index.es-DUrjyxNI.js";
|
|
|
6
6
|
import "../../index-Df2FYN-K.js";
|
|
7
7
|
import "../Iconify/Iconify.js";
|
|
8
8
|
import "../../enums/AvailableCustomIcons.js";
|
|
9
|
-
import { g as d, a as I, m as L } from "../../ListAreaService-
|
|
9
|
+
import { g as d, a as I, m as L } from "../../ListAreaService-B0x97Jin.js";
|
|
10
10
|
export {
|
|
11
11
|
d as getGroupedItems,
|
|
12
12
|
I as getListedItems,
|
package/dist/types/Languages.js
CHANGED
|
@@ -7,17 +7,17 @@ const A = "bb8077e3-ad50-4c1d-8b17-b768b1c9f041", e = "bb8077e3-ad50-4c1d-8b17-b
|
|
|
7
7
|
"es",
|
|
8
8
|
"tr"
|
|
9
9
|
// 'de' currently not supported
|
|
10
|
-
],
|
|
10
|
+
], n = {
|
|
11
11
|
en: "en-US",
|
|
12
12
|
es: "es-MX",
|
|
13
13
|
tr: "tr-TR"
|
|
14
|
-
},
|
|
14
|
+
}, t = ["esp", "mex", "tur", "nld", "can"];
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
t as AVAILABLE_COUNTRY_KEYS,
|
|
17
17
|
_ as AVAILABLE_LOCALES,
|
|
18
18
|
A as ENGLISH_LANGUAGE_ID,
|
|
19
19
|
e as GERMAN_LANGUAGE_ID,
|
|
20
|
-
|
|
20
|
+
n as LANGUAGE_CODES_MAPPER,
|
|
21
21
|
E as LANGUAGE_ID_MAPPER,
|
|
22
22
|
b as SPANISH_LANGUAGE_ID,
|
|
23
23
|
c as TURKISH_LANGUAGE_ID
|
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": "2.
|
|
4
|
+
"version": "2.20.1",
|
|
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>",
|