@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 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 O } from "./index.es-DEBGoIKX.js";
4
- import { P as k } from "./index.es-DgncYOqO.js";
5
- import { e as $, c as w, T as A } from "./index.es-DUrjyxNI.js";
6
- import { c as j } from "./index-Df2FYN-K.js";
7
- import { Iconify as H } from "./components/Iconify/Iconify.js";
8
- import { AvailableCustomIcons as M } from "./enums/AvailableCustomIcons.js";
9
- import './assets/ListAreaService.css';const P = "_fullWidth_a185b_1", R = "_mainElevation_a185b_6", W = "_searchbar_a185b_13", L = "_roundedBottom_a185b_21", q = "_primaryText_a185b_26", z = "_list_a185b_30", D = "_listItem_a185b_41", F = "_isSelected_a185b_65", J = "_noGroupHeaderMargin_a185b_74", K = "_indentGroupedElement_a185b_78", Q = "_isNotSelected_a185b_82", U = "_iconColor_a185b_92", V = "_overlineTitle_a185b_96", X = "_noOverlineTitle_a185b_101", Y = "_truncate_a185b_105", Z = "_truncateOverlineText_a185b_116", ee = "_hasNoRoundedEdges_a185b_121", te = "_hideArrowIcon_a185b_125", t = {
10
- fullWidth: P,
11
- mainElevation: R,
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: L,
14
- primaryText: q,
15
- list: z,
16
- listItem: D,
17
- isSelected: F,
18
- noGroupHeaderMargin: J,
19
- indentGroupedElement: K,
20
- isNotSelected: Q,
21
- iconColor: U,
22
- overlineTitle: V,
23
- noOverlineTitle: X,
24
- truncate: Y,
25
- truncateOverlineText: Z,
26
- hasNoRoundedEdges: ee,
27
- hideArrowIcon: te
28
- }, _e = (o, a, s, l) => {
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(k, { children: /* @__PURE__ */ r($, { children: e }) }),
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
- b(d, a, s, l)
38
+ g(d, l, s, a)
38
39
  ]), i;
39
40
  }, {});
40
41
  return Object.values(n);
41
- }, ue = (o, a, s, l) => o.map((n) => b(n, a, s, l)), b = (o, a, s, l) => {
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: g,
51
+ icon: h,
51
52
  iconType: v,
52
- trailingIcon: h,
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: E
61
- } = o, m = a === e, C = j(
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
- E && t.indentGroupedElement,
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
- w,
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
- A,
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 ?? h ?? /* @__PURE__ */ r(O, { icon: "arrow_right", className: t.iconColor }),
105
- leadingBlock: oe(g),
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: C,
114
- onClick: (ne, B) => I?.(B),
115
- tag: u || d ? void 0 : l ?? "a",
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
- }, oe = (o) => typeof o == "string" && o in M ? /* @__PURE__ */ r(H, { icon: o }) : o;
121
+ }, ne = (o) => typeof o == "string" && o in H ? /* @__PURE__ */ r(j, { icon: o }) : o;
121
122
  export {
122
- ue as a,
123
- _e as g,
124
- b as m,
123
+ pe as a,
124
+ ue as g,
125
+ g as m,
125
126
  t as s
126
127
  };
@@ -1 +1 @@
1
- ._fullWidth_a185b_1{width:100%;height:100%}._mainElevation_a185b_6{background:var(--lmnt-theme-background);width:100%;height:100%}._searchbar_a185b_13 div{border:none}._searchbar_a185b_13 button{margin-right:.5rem}._roundedBottom_a185b_21{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}._primaryText_a185b_26 [class*=mdc-list-item__primary-text]{display:none!important}._list_a185b_30{padding-top:0;padding-bottom:0;overflow-y:auto;scrollbar-width:thin}._list_a185b_30 [class*=mdc-list-item__overline-text]{margin-bottom:-2.25rem}._listItem_a185b_41:hover{background-color:var(--lmnt-theme-surface-variant)}._listItem_a185b_41 i:not(._trailingIcon_a185b_45){color:var(--lmnt-theme-on-surface-inactive)}._listItem_a185b_41 [class^="lmnt mdc-list-item__end"] i{color:var(--lmnt-theme-on-surface-disabled)}._listItem_a185b_41:focus-within [class^="lmnt mdc-list-item__end"] i{color:var(--lmnt-theme-primary)!important}._listItem_a185b_41 [class^=mdc-list-item__start]{margin:0 1rem!important;align-self:center!important}._listItem_a185b_41:focus [class^=mdc-list-item__start] i{color:var(--lmnt-theme-primary)!important}._listItem_a185b_41._isSelected_a185b_65 i,._listItem_a185b_41[aria-selected=true] i{color:var(--lmnt-theme-primary)!important}._groupedListItem_a185b_70{height:4.5rem!important}._noGroupHeaderMargin_a185b_74 h3{margin:0}._indentGroupedElement_a185b_78{padding-left:2.5rem!important}._isNotSelected_a185b_82 [class*=mdc-list-item__ripple]:before{opacity:inherit!important;background-color:inherit!important}._isSelected_a185b_65 [class*=mdc-list-item__ripple]:before{opacity:.2!important;background-color:var(--lmnt-theme-primary)!important}._iconColor_a185b_92{color:var(--lmnt-theme-on-surface-disabled)!important}._overlineTitle_a185b_96 [class*=mdc-list-item__overline-text]{color:var(--lmnt-theme-on-surface-inactive)!important;line-height:1rem!important}._noOverlineTitle_a185b_101 [class*=mdc-list-item__secondary-text] [class*=lmnt-group]{margin-top:-.875rem}._truncate_a185b_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_a185b_116{margin-bottom:-1rem!important;margin-top:-1rem!important}._hasNoRoundedEdges_a185b_121{border-radius:0rem!important}._hideArrowIcon_a185b_125 i{visibility:hidden}
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 a, jsxs as h } from "react/jsx-runtime";
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 j } from "../../index.es-DhlgTSuU.js";
4
- import { L as A } from "../../index.es-Cg57snrN.js";
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 E, useMemo as w } from "react";
8
- import { SearchBar as I } from "../SearchBar/SearchBar.js";
9
- import { g as M, a as N, s as e } from "../../ListAreaService-Y8wR14Xq.js";
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, C] = E(""), s = w(() => {
26
+ const [r, B] = A(""), a = w(() => {
27
27
  if (!r) return l ? v(t, "title") : t;
28
- const u = 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(u, "title") : u;
30
- }, [r, t, l]), B = w(
31
- () => i ? M(s, o, d, c) : N(s, o, d, c),
32
- [s, o, d, i, c]
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__ */ a(
35
- j,
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__ */ h("div", { className: p(e.fullWidth, e.noGroupHeaderMargin), children: [
41
- L && t.length > 0 && /* @__PURE__ */ h("span", { "data-testid": "search-bar-container", children: [
42
- /* @__PURE__ */ a(
43
- I,
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: C,
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__ */ a(D, {})
52
+ /* @__PURE__ */ s(D, {})
53
53
  ] }),
54
- s.length === 0 && b,
55
- /* @__PURE__ */ a(
56
- A,
54
+ a.length === 0 && b,
55
+ /* @__PURE__ */ s(
56
+ j,
57
57
  {
58
58
  nonInteractive: n,
59
59
  "data-testid": y,
60
- items: B,
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-Y8wR14Xq.js";
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,
@@ -92,5 +92,7 @@ export declare const LANGUAGE_CODES_MAPPER: Record<AVAILABLE_LANGUAGE_CODES, LAN
92
92
  * - Spain (esp)
93
93
  * - Mexico (mex)
94
94
  * - Turkey (tur)
95
+ * - Netherlands (nld)
96
+ * - Canada (can)
95
97
  */
96
98
  export declare const AVAILABLE_COUNTRY_KEYS: string[];
@@ -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
- ], t = {
10
+ ], n = {
11
11
  en: "en-US",
12
12
  es: "es-MX",
13
13
  tr: "tr-TR"
14
- }, G = ["esp", "mex", "tur"];
14
+ }, t = ["esp", "mex", "tur", "nld", "can"];
15
15
  export {
16
- G as AVAILABLE_COUNTRY_KEYS,
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
- t as LANGUAGE_CODES_MAPPER,
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.19.1",
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>",