@hortiview/shared-components 0.0.7689 → 0.0.7857

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 CHANGED
@@ -46,6 +46,7 @@ Additionally the library provides form components using [react-hook-form](https:
46
46
  1. [Iconify](#iconify)
47
47
  1. [ListArea](#listarea)
48
48
  1. [LoadingSpinner](#loadingspinner)
49
+ 1. [Modal](#modal)
49
50
  1. [OverflowTooltip](#overflowtooltip)
50
51
  1. [ScrollBar](#scrollbar)
51
52
  1. [SearchBar](#searchbar)
@@ -687,6 +688,19 @@ return <>
687
688
  </>
688
689
  ```
689
690
 
691
+ ### Modal
692
+
693
+ Provides the normal elements modal with one additional change. If you are on fullscreen modal size the max-height and max-width is set to 100svh/svw (Smallest ViewPort height/width).
694
+ This will set the modal size on an area between the mobile controls.
695
+
696
+ ```jsx
697
+ import { Modal } from '@hortiview/shared-components';
698
+
699
+ <Modal modalSize='fullscreen'>
700
+ <div>Content</div>
701
+ </Modal>;
702
+ ```
703
+
690
704
  ### OverflowTooltip
691
705
 
692
706
  Provides a tooltip and overflow behavior of a given text value.
@@ -1 +1 @@
1
- ._divider_1513z_1{margin:0 2rem}._truncate_1513z_5{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55vw}._desktopList_1513z_13{width:30%}._mobileList_1513z_17{width:100%}._desktopDetail_1513z_21{width:70%}._mobileDetail_1513z_25{width:100%}
1
+ ._divider_dw2rc_1{margin:0 2rem}._maxWidth_dw2rc_5{max-width:55vw}._desktopList_dw2rc_9{width:30%}._mobileList_dw2rc_13{width:100%}._desktopDetail_dw2rc_17{width:70%}._mobileDetail_dw2rc_21{width:100%}
@@ -1 +1 @@
1
- ._cardTitle_ecoot_1{padding:.5rem!important}._cardBody_ecoot_5{padding:.25rem .5rem!important;overflow:hidden!important}._cardContent_ecoot_10{border-radius:.5rem}._row_ecoot_14{padding:.25rem 0}._font_ecoot_18{overflow:hidden;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:400;align-self:end}._fontHeader_ecoot_28{text-align:right}._title_ecoot_32{display:inline-block;width:65vw;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}._emptyContainer_ecoot_40{width:inherit;height:inherit}._empty_ecoot_40{position:relative;top:50%;left:50%;transform:translate(-50%,-25%)}
1
+ ._cardTitle_ny9m0_1{padding:.5rem!important}._cardBody_ny9m0_5{padding:.25rem .5rem!important;overflow:hidden!important}._cardContent_ny9m0_10{border-radius:.5rem}._row_ny9m0_14{padding:.25rem 0}._font_ny9m0_18{font-weight:400;align-self:end}._fontHeader_ny9m0_23{text-align:right}._title_ny9m0_27{display:inline-block;width:65vw;text-wrap:nowrap}._emptyContainer_ny9m0_33{width:inherit;height:inherit}._empty_ny9m0_33{position:relative;top:50%;left:50%;transform:translate(-50%,-25%)}
@@ -0,0 +1 @@
1
+ ._modal_a4n3a_1 div[class*=lmnt-modal__surface]{max-height:100svh!important;max-width:100svw!important}._modal_a4n3a_1 header button{top:0!important}
@@ -0,0 +1 @@
1
+ ._truncate_m48xn_1{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
@@ -0,0 +1,12 @@
1
+ import "./assets/baseView.css";
2
+ const t = "_divider_dw2rc_1", i = "_maxWidth_dw2rc_5", e = "_desktopList_dw2rc_9", s = "_mobileList_dw2rc_13", d = "_desktopDetail_dw2rc_17", o = "_mobileDetail_dw2rc_21", c = {
3
+ divider: t,
4
+ maxWidth: i,
5
+ desktopList: e,
6
+ mobileList: s,
7
+ desktopDetail: d,
8
+ mobileDetail: o
9
+ };
10
+ export {
11
+ c as s
12
+ };
@@ -1,12 +1,12 @@
1
- import { jsx as i, Fragment as x, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as i, Fragment as k, jsxs as n } from "react/jsx-runtime";
2
2
  import { Group as o } from "@element/react-components";
3
3
  import { useMemo as s } from "react";
4
4
  import { BasicHeading as u } from "../BasicHeading/BasicHeading.js";
5
5
  import { EmptyView as L } from "../EmptyView/EmptyView.js";
6
- import { ListArea as A } from "../ListArea/ListArea.js";
7
- import { VerticalDivider as V } from "../VerticalDivider/VerticalDivider.js";
8
- import { u as W } from "../../useBreakpoints-BNeVhjjZ.js";
9
- import { s as r } from "../../baseView.module-ve87u_d0.js";
6
+ import { ListArea as W } from "../ListArea/ListArea.js";
7
+ import { VerticalDivider as A } from "../VerticalDivider/VerticalDivider.js";
8
+ import { u as V } from "../../useBreakpoints-BNeVhjjZ.js";
9
+ import { s as r } from "../../baseView.module-uWbm_a5f.js";
10
10
  const C = ({
11
11
  action: c,
12
12
  heading: m,
@@ -21,12 +21,12 @@ const C = ({
21
21
  routerLinkElement: w,
22
22
  searchPlaceholder: B
23
23
  }) => {
24
- const { isDesktopNavbar: e } = W(), t = s(() => l.find((k) => k.route === a), [a, l]), D = s(() => t?.component ?? (e ? /* @__PURE__ */ i(L, { subtitle: d }) : /* @__PURE__ */ i(x, {})), [t, e, d]), N = s(() => e ? !0 : !t, [t, e]), b = s(() => e ? !0 : t, [t, e]);
24
+ const { isDesktopNavbar: e } = V(), t = s(() => l.find((x) => x.route === a), [a, l]), D = s(() => t?.component ?? (e ? /* @__PURE__ */ i(L, { subtitle: d }) : /* @__PURE__ */ i(k, {})), [t, e, d]), N = s(() => e ? !0 : !t, [t, e]), b = s(() => e ? !0 : t, [t, e]);
25
25
  return /* @__PURE__ */ n(o, { className: h ?? "", gap: "", fullWidth: !0, children: [
26
26
  N && /* @__PURE__ */ i(o, { gap: "none", className: e ? r.desktopList : r.mobileList, children: /* @__PURE__ */ n(o, { direction: "vertical", fullWidth: !0, gap: e ? "standard" : "dense", children: [
27
27
  m && /* @__PURE__ */ i(u, { heading: m, level: 4, marginBottom: 0, children: c }),
28
28
  /* @__PURE__ */ i(
29
- A,
29
+ W,
30
30
  {
31
31
  elements: l,
32
32
  hasSearch: p,
@@ -39,12 +39,12 @@ const C = ({
39
39
  )
40
40
  ] }) }),
41
41
  b && /* @__PURE__ */ n(o, { gap: "none", className: e ? r.desktopDetail : r.mobileDetail, children: [
42
- e && /* @__PURE__ */ i(V, { className: r.divider, height: "100%" }),
42
+ e && /* @__PURE__ */ i(A, { className: r.divider, height: "100%" }),
43
43
  /* @__PURE__ */ n(o, { direction: "vertical", fullWidth: !0, children: [
44
44
  /* @__PURE__ */ i(
45
45
  u,
46
46
  {
47
- className: r.truncate,
47
+ className: r.maxWidth,
48
48
  heading: t?.detailTitle ?? t?.title ?? "",
49
49
  level: 4,
50
50
  icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
@@ -1,10 +1,11 @@
1
1
  import { jsx as r, jsxs as p, Fragment as s } from "react/jsx-runtime";
2
- import { Modal as k, Button as u, Group as c, Icon as D, TypoBody as t } from "@element/react-components";
3
- import { uniqueId as N } from "lodash";
4
- import { AvailableCustomIcons as S } from "../../enums/AvailableCustomIcons.js";
5
- import { I as x } from "../../Iconify-CY9lZjFd.js";
2
+ import { Modal as D, Button as u, Group as c, Icon as N, TypoBody as t } from "@element/react-components";
3
+ import { uniqueId as S } from "lodash";
4
+ import { AvailableCustomIcons as x } from "../../enums/AvailableCustomIcons.js";
5
+ import { u as M } from "../../useBreakpoints-BNeVhjjZ.js";
6
+ import { I as j } from "../../Iconify-CY9lZjFd.js";
6
7
  import { s as n } from "../../deleteModal.module-Ds3MDzdl.js";
7
- const w = ({
8
+ const K = ({
8
9
  title: e,
9
10
  confirmButtonLabel: o,
10
11
  cancelButtonLabel: l,
@@ -19,16 +20,16 @@ const w = ({
19
20
  onDelete: b,
20
21
  isDeletePossible: d = !0
21
22
  }) => {
22
- const C = (I) => {
23
+ const { isDesktop: C } = M(), k = (I) => {
23
24
  I.detail.action === "close" && m(!1);
24
25
  };
25
26
  return /* @__PURE__ */ r(
26
- k,
27
+ D,
27
28
  {
28
29
  className: n.modal,
29
- modalSize: "small",
30
+ modalSize: C ? "small" : "fullscreen",
30
31
  open: y,
31
- onClose: C,
32
+ onClose: k,
32
33
  title: e,
33
34
  primaryButton: /* @__PURE__ */ r(
34
35
  u,
@@ -41,29 +42,29 @@ const w = ({
41
42
  ),
42
43
  footerSupplemental: /* @__PURE__ */ r(u, { variant: "text", label: l, onClick: () => m(!1) }),
43
44
  children: /* @__PURE__ */ p(c, { direction: "vertical", secondaryAlign: "center", children: [
44
- /* @__PURE__ */ r(M, { element: /* @__PURE__ */ r(j, { icon: g }), isCrossedOut: h }),
45
+ /* @__PURE__ */ r(z, { element: /* @__PURE__ */ r(B, { icon: g }), isCrossedOut: h }),
45
46
  /* @__PURE__ */ r(c, { direction: "vertical", children: d ? /* @__PURE__ */ r(
46
- z,
47
+ O,
47
48
  {
48
49
  deleteHeader: a,
49
50
  deleteText: f,
50
51
  deleteBody: i
51
52
  }
52
- ) : /* @__PURE__ */ r(O, { impossibleDeleteHeader: v }) })
53
+ ) : /* @__PURE__ */ r(A, { impossibleDeleteHeader: v }) })
53
54
  ] })
54
55
  }
55
56
  );
56
- }, M = ({
57
+ }, z = ({
57
58
  element: e,
58
59
  isCrossedOut: o = !1
59
- }) => o ? /* @__PURE__ */ r("span", { className: n.crossedOut, children: e }) : e, j = ({ icon: e }) => e ? typeof e != "string" ? e : Object.values(S).includes(e) ? /* @__PURE__ */ r(
60
- x,
60
+ }) => o ? /* @__PURE__ */ r("span", { className: n.crossedOut, children: e }) : e, B = ({ icon: e }) => e ? typeof e != "string" ? e : Object.values(x).includes(e) ? /* @__PURE__ */ r(
61
+ j,
61
62
  {
62
63
  icon: e,
63
64
  iconSize: "xlarge",
64
65
  className: n.colorDanger
65
66
  }
66
- ) : /* @__PURE__ */ r(D, { icon: e, iconSize: "xlarge", className: n.colorDanger }) : /* @__PURE__ */ r(s, {}), z = ({
67
+ ) : /* @__PURE__ */ r(N, { icon: e, iconSize: "xlarge", className: n.colorDanger }) : /* @__PURE__ */ r(s, {}), O = ({
67
68
  deleteHeader: e,
68
69
  deleteText: o,
69
70
  deleteBody: l
@@ -79,11 +80,11 @@ const w = ({
79
80
  themeColor: "text-secondary-on-background",
80
81
  children: a
81
82
  },
82
- N(i.toString())
83
+ S(i.toString())
83
84
  )) })
84
- ] }), O = ({
85
+ ] }), A = ({
85
86
  impossibleDeleteHeader: e
86
87
  }) => /* @__PURE__ */ r(t, { level: 1, themeColor: "text-primary-on-background", children: e });
87
88
  export {
88
- w as DeleteModal
89
+ K as DeleteModal
89
90
  };
@@ -6,6 +6,7 @@ import { u as A } from "../../useBreakpoints-BNeVhjjZ.js";
6
6
  import "../../alertBanner.module-BPiKN0gh.js";
7
7
  import { I as H } from "../../Iconify-CY9lZjFd.js";
8
8
  import "../../react-tooltip.min-BzHiZW8k.js";
9
+ import "../../overflowTooltip.module-BN3bp9Cj.js";
9
10
  import "../../basicHeading.module-BYb8xvuk.js";
10
11
  import "../../isArray-Ca4KR8TK.js";
11
12
  import "../../_baseToString-BNXOi2Mf.js";
@@ -14,24 +15,25 @@ import "../../iconify.module-C89oaw5b.js";
14
15
  import { SearchBar as K } from "../SearchBar/SearchBar.js";
15
16
  import "../../listArea.module-CGpHPOji.js";
16
17
  import "../../verticalDivider.module-C3_GL-fH.js";
17
- import "../../baseView.module-ve87u_d0.js";
18
+ import "../../baseView.module-uWbm_a5f.js";
18
19
  import "../../BlockView.module-BPlNT5uh.js";
19
20
  import "lodash";
20
21
  import "../../contextMenu.module-DNQ8d9Aj.js";
21
22
  import "../../deleteModal.module-Ds3MDzdl.js";
22
23
  import "../../disclaimer.module-BZydt-Q_.js";
23
- import "../../genericCard.module-k0bicNfi.js";
24
+ import "../../genericCard.module-DrQu86jX.js";
24
25
  import "../../HashTabView.module-DUekkiTC.js";
25
26
  import "../../HeaderFilter.module-DiBmulr5.js";
26
27
  import "../../infoGroup.module-Cxw88dfC.js";
27
28
  import "../../bigLoadingSpinner.module-GgbFol8k.js";
28
29
  import "../../loadingSpinner.module-CLtqSMWA.js";
30
+ import "../../modal.module-BlDp1Wiq.js";
29
31
  import "../Scrollbar/Scrollbar.js";
30
32
  import "react-hook-form";
31
33
  import "../../formDatePicker.module-BV3ma_7y.js";
32
34
  import "../../formSelect.module-C18N-SsT.js";
33
35
  import "../../formText.module-C0by6_DK.js";
34
- const Bt = ({
36
+ const xt = ({
35
37
  clearFilterText: m,
36
38
  closeCallback: a,
37
39
  currentFilter: i,
@@ -173,5 +175,5 @@ const Bt = ({
173
175
  );
174
176
  };
175
177
  export {
176
- Bt as Filter
178
+ xt as Filter
177
179
  };
@@ -1,19 +1,20 @@
1
1
  import { jsx as r, jsxs as B } from "react/jsx-runtime";
2
- import { Elevation as D, Table as G, TableTopBar as u, Group as l, Padding as W, TypoDisplay as k, TypoSubtitle as C } from "@element/react-components";
2
+ import { Elevation as D, Table as G, TableTopBar as u, Group as m, Padding as W, TypoDisplay as k, TypoSubtitle as C } from "@element/react-components";
3
3
  import { Fragment as j } from "react";
4
- import { a as e } from "../../genericTable.module-Dk3yy2S3.js";
4
+ import { a as t } from "../../genericTable.module-Dk3yy2S3.js";
5
5
  import { u as x } from "../../useBreakpoints-BNeVhjjZ.js";
6
6
  import "../../alertBanner.module-BPiKN0gh.js";
7
7
  import "../../iconify.module-C89oaw5b.js";
8
8
  import "../../isArray-Ca4KR8TK.js";
9
9
  import "../../react-tooltip.min-BzHiZW8k.js";
10
+ import "../../overflowTooltip.module-BN3bp9Cj.js";
10
11
  import "../../basicHeading.module-BYb8xvuk.js";
11
12
  import "../../_baseToString-BNXOi2Mf.js";
12
13
  import "../../_equalByTag-DJhSpgVG.js";
13
14
  import "../../searchBar.module-9gKyrZRT.js";
14
15
  import "../../listArea.module-CGpHPOji.js";
15
16
  import "../../verticalDivider.module-C3_GL-fH.js";
16
- import "../../baseView.module-ve87u_d0.js";
17
+ import "../../baseView.module-uWbm_a5f.js";
17
18
  import "../../BlockView.module-BPlNT5uh.js";
18
19
  import "lodash";
19
20
  import "../../contextMenu.module-DNQ8d9Aj.js";
@@ -24,6 +25,7 @@ import "../../HeaderFilter.module-DiBmulr5.js";
24
25
  import "../../infoGroup.module-Cxw88dfC.js";
25
26
  import "../../bigLoadingSpinner.module-GgbFol8k.js";
26
27
  import "../../loadingSpinner.module-CLtqSMWA.js";
28
+ import "../../modal.module-BlDp1Wiq.js";
27
29
  import "../Scrollbar/Scrollbar.js";
28
30
  import "react-hook-form";
29
31
  import "../../formDatePicker.module-BV3ma_7y.js";
@@ -31,8 +33,8 @@ import "../../formSelect.module-C18N-SsT.js";
31
33
  import "../../formText.module-C0by6_DK.js";
32
34
  import { useGenerateColumns as _, useGenerateTableData as $ } from "./GenericTableService.js";
33
35
  import { GenericCardList as A } from "./Mobile/GenericCardList.js";
34
- const dr = ({
35
- data: m = [],
36
+ const fr = ({
37
+ data: l = [],
36
38
  hiddenColumns: p = [],
37
39
  order: f = [],
38
40
  cellTemplates: h = void 0,
@@ -42,12 +44,12 @@ const dr = ({
42
44
  pagination: y = !1,
43
45
  getRowActions: s = void 0,
44
46
  customColumnWidth: b,
45
- title: t,
47
+ title: e,
46
48
  cardTitleColumn: v,
47
49
  cardSubTitleColumn: T
48
50
  }) => {
49
51
  const { isDesktop: o } = x(), a = _({
50
- data: m,
52
+ data: l,
51
53
  order: f,
52
54
  cellTemplates: h,
53
55
  headerTranslation: g,
@@ -56,29 +58,29 @@ const dr = ({
56
58
  cardTitleColumn: v,
57
59
  cardSubTitleColumn: T
58
60
  }), c = $({
59
- data: m,
61
+ data: l,
60
62
  getRowActions: s
61
63
  });
62
- return o ? /* @__PURE__ */ r(D, { elevation: 1, className: e.elevation, children: /* @__PURE__ */ r(
64
+ return o ? /* @__PURE__ */ r(D, { elevation: 1, className: t.elevation, children: /* @__PURE__ */ r(
63
65
  G,
64
66
  {
65
- className: e.table,
67
+ className: t.table,
66
68
  fullWidth: !0,
67
69
  alwaysUseDivTags: !0,
68
70
  layout: "standard",
69
71
  hiddenColumns: p,
70
72
  data: c,
71
73
  columns: a,
72
- leadingContent: t && i?.length === 0 ? /* @__PURE__ */ r(u, { title: t }) : i?.length > 0 && /* @__PURE__ */ r(
74
+ leadingContent: e && i?.length === 0 ? /* @__PURE__ */ r(u, { title: e }) : i?.length > 0 && /* @__PURE__ */ r(
73
75
  u,
74
76
  {
75
- className: e.topBar,
76
- filterBar: /* @__PURE__ */ B(l, { fullWidth: !0, direction: "vertical", gap: "none", children: [
77
- t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(k, { level: 6, children: t }) }),
77
+ className: t.topBar,
78
+ filterBar: /* @__PURE__ */ B(m, { fullWidth: !0, direction: "vertical", gap: "none", children: [
79
+ e && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(k, { level: 6, children: e }) }),
78
80
  /* @__PURE__ */ r(
79
- l,
81
+ m,
80
82
  {
81
- className: e.filterBar,
83
+ className: t.filterBar,
82
84
  fullWidth: !0,
83
85
  primaryAlign: "end",
84
86
  secondaryAlign: "center",
@@ -92,12 +94,12 @@ const dr = ({
92
94
  sortable: !0,
93
95
  noContentIncludeTable: !!a,
94
96
  noContentMessage: /* @__PURE__ */ r(
95
- l,
97
+ m,
96
98
  {
97
99
  fullWidth: !0,
98
100
  primaryAlign: "center",
99
101
  secondaryAlign: "center",
100
- className: e.emptyTable,
102
+ className: t.emptyTable,
101
103
  children: /* @__PURE__ */ r(C, { children: n })
102
104
  }
103
105
  )
@@ -113,5 +115,5 @@ const dr = ({
113
115
  );
114
116
  };
115
117
  export {
116
- dr as GenericTable
118
+ fr as GenericTable
117
119
  };
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as s, Fragment as g } from "react/jsx-runtime";
2
2
  import { Card as T, CardContent as v, CardBody as y, Grid as x, GridRow as b, GridCol as n, TypoSubtitle as f, CardTitle as u, CardDivider as N } from "@element/react-components";
3
3
  import { useMemo as $ } from "react";
4
4
  import { OverflowTooltip as c } from "../../OverflowTooltip/OverflowTooltip.js";
5
- import { s as a } from "../../../genericCard.module-k0bicNfi.js";
5
+ import { s as a } from "../../../genericCard.module-DrQu86jX.js";
6
6
  const h = {
7
7
  desktopCol: 6,
8
8
  phoneCol: 2,
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Padding as c, TypoCaption as o, Group as s } from "@element/react-components";
3
3
  import { GenericCard as m } from "./GenericCard.js";
4
- import { s as t } from "../../../genericCard.module-k0bicNfi.js";
4
+ import { s as t } from "../../../genericCard.module-DrQu86jX.js";
5
5
  const u = ({
6
6
  columns: n,
7
7
  data: e,
@@ -0,0 +1,2 @@
1
+ import { ModalProps } from '@element/react-components';
2
+ export declare const Modal: (props: ModalProps & React.HTMLProps<HTMLElement> & React.DOMAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Modal as l } from "@element/react-components";
3
+ import { s as m } from "../../modal.module-BlDp1Wiq.js";
4
+ const t = (a) => /* @__PURE__ */ o(
5
+ l,
6
+ {
7
+ ...a,
8
+ className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? m.modal : ""}`
9
+ }
10
+ );
11
+ export {
12
+ t as Modal
13
+ };
@@ -1,21 +1,23 @@
1
- import { jsxs as c, Fragment as p, jsx as l } from "react/jsx-runtime";
2
- import { TypoBody as d } from "@element/react-components";
3
- import { useState as h, useMemo as a, cloneElement as f } from "react";
1
+ import { jsxs as p, Fragment as a, jsx as s } from "react/jsx-runtime";
2
+ import { TypoBody as c } from "@element/react-components";
3
+ import { useState as d, useMemo as h, cloneElement as f } from "react";
4
4
  import { H as w } from "../../react-tooltip.min-BzHiZW8k.js";
5
- const k = ({ id: e, text: i, children: t }) => {
6
- const [r, s] = h(!1), n = a(
5
+ import { s as u } from "../../overflowTooltip.module-BN3bp9Cj.js";
6
+ const k = ({ id: e, text: l, children: t }) => {
7
+ const [r, i] = d(!1), m = h(
7
8
  () => f(t, {
8
9
  "data-tooltip-id": e,
9
10
  onMouseEnter: ({ currentTarget: o }) => {
10
- const m = o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight;
11
- s(m);
12
- }
11
+ const n = o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight;
12
+ i(n);
13
+ },
14
+ className: `${u.truncate} ${t.props.className}`
13
15
  }),
14
16
  [t, e]
15
17
  );
16
- return /* @__PURE__ */ c(p, { children: [
17
- n,
18
- /* @__PURE__ */ l(
18
+ return /* @__PURE__ */ p(a, { children: [
19
+ m,
20
+ /* @__PURE__ */ s(
19
21
  w,
20
22
  {
21
23
  id: e,
@@ -28,7 +30,7 @@ const k = ({ id: e, text: i, children: t }) => {
28
30
  maxWidth: "90%",
29
31
  wordBreak: "break-word"
30
32
  },
31
- children: /* @__PURE__ */ l(d, { level: 2, children: i })
33
+ children: /* @__PURE__ */ s(c, { level: 2, children: l })
32
34
  }
33
35
  )
34
36
  ] });
@@ -0,0 +1,15 @@
1
+ import "./assets/genericCard.css";
2
+ const t = "_cardTitle_ny9m0_1", n = "_cardBody_ny9m0_5", o = "_cardContent_ny9m0_10", _ = "_row_ny9m0_14", e = "_font_ny9m0_18", r = "_fontHeader_ny9m0_23", c = "_title_ny9m0_27", y = "_emptyContainer_ny9m0_33", a = "_empty_ny9m0_33", d = {
3
+ cardTitle: t,
4
+ cardBody: n,
5
+ cardContent: o,
6
+ row: _,
7
+ font: e,
8
+ fontHeader: r,
9
+ title: c,
10
+ emptyContainer: y,
11
+ empty: a
12
+ };
13
+ export {
14
+ d as s
15
+ };
package/dist/main.d.ts CHANGED
@@ -14,6 +14,7 @@ export { Iconify } from './components/Iconify/Iconify';
14
14
  export { InfoGroup } from './components/InfoGroup/InfoGroup';
15
15
  export { ListArea } from './components/ListArea/ListArea';
16
16
  export { LoadingSpinner } from './components/LoadingSpinner/Default/LoadingSpinner';
17
+ export { Modal } from './components/Modal/Modal';
17
18
  export { OverflowTooltip } from './components/OverflowTooltip/OverflowTooltip';
18
19
  export { ScrollbarX, ScrollbarY } from './components/Scrollbar/Scrollbar';
19
20
  export { SearchBar } from './components/SearchBar/SearchBar';
package/dist/main.js CHANGED
@@ -14,24 +14,25 @@ import { HeaderFilter as C } from "./components/HeaderFilter/HeaderFilter.js";
14
14
  import { I } from "./Iconify-CY9lZjFd.js";
15
15
  import { InfoGroup as A } from "./components/InfoGroup/InfoGroup.js";
16
16
  import { ListArea as L } from "./components/ListArea/ListArea.js";
17
- import { LoadingSpinner as y } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
18
- import { OverflowTooltip as M } from "./components/OverflowTooltip/OverflowTooltip.js";
19
- import { ScrollbarX as E, ScrollbarY as O } from "./components/Scrollbar/Scrollbar.js";
20
- import { SearchBar as R } from "./components/SearchBar/SearchBar.js";
21
- import { VerticalDivider as Y } from "./components/VerticalDivider/VerticalDivider.js";
22
- import { FormCheckBox as q } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
23
- import { FormDatePicker as K } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
24
- import { FormRadio as Q } from "./components/FormComponents/FormRadio/FormRadio.js";
25
- import { FormSelect as W } from "./components/FormComponents/FormSelect/FormSelect.js";
26
- import { FormSlider as _ } from "./components/FormComponents/FormSlider/FormSlider.js";
27
- import { FormText as rr } from "./components/FormComponents/FormText/FormText.js";
28
- import { AvailableCustomIcons as er } from "./enums/AvailableCustomIcons.js";
29
- import { ThemeColor as mr } from "./enums/ThemeColor.js";
30
- import { u as fr } from "./useBreakpoints-BNeVhjjZ.js";
31
- import { capitalizeFirstLetters as ir } from "./services/UtilService.js";
17
+ import { LoadingSpinner as g } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
18
+ import { Modal as G } from "./components/Modal/Modal.js";
19
+ import { OverflowTooltip as E } from "./components/OverflowTooltip/OverflowTooltip.js";
20
+ import { ScrollbarX as P, ScrollbarY as R } from "./components/Scrollbar/Scrollbar.js";
21
+ import { SearchBar as Y } from "./components/SearchBar/SearchBar.js";
22
+ import { VerticalDivider as q } from "./components/VerticalDivider/VerticalDivider.js";
23
+ import { FormCheckBox as K } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
24
+ import { FormDatePicker as Q } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
25
+ import { FormRadio as W } from "./components/FormComponents/FormRadio/FormRadio.js";
26
+ import { FormSelect as _ } from "./components/FormComponents/FormSelect/FormSelect.js";
27
+ import { FormSlider as rr } from "./components/FormComponents/FormSlider/FormSlider.js";
28
+ import { FormText as er } from "./components/FormComponents/FormText/FormText.js";
29
+ import { AvailableCustomIcons as mr } from "./enums/AvailableCustomIcons.js";
30
+ import { ThemeColor as fr } from "./enums/ThemeColor.js";
31
+ import { u as ir } from "./useBreakpoints-BNeVhjjZ.js";
32
+ import { capitalizeFirstLetters as lr } from "./services/UtilService.js";
32
33
  export {
33
34
  t as AlertBanner,
34
- er as AvailableCustomIcons,
35
+ mr as AvailableCustomIcons,
35
36
  p as BaseView,
36
37
  x as BasicHeading,
37
38
  a as BlockView,
@@ -40,25 +41,26 @@ export {
40
41
  d as Disclaimer,
41
42
  S as EmptyView,
42
43
  u as Filter,
43
- q as FormCheckBox,
44
- K as FormDatePicker,
45
- Q as FormRadio,
46
- W as FormSelect,
47
- _ as FormSlider,
48
- rr as FormText,
44
+ K as FormCheckBox,
45
+ Q as FormDatePicker,
46
+ W as FormRadio,
47
+ _ as FormSelect,
48
+ rr as FormSlider,
49
+ er as FormText,
49
50
  T as GenericTable,
50
51
  h as HashTabView,
51
52
  C as HeaderFilter,
52
53
  I as Iconify,
53
54
  A as InfoGroup,
54
55
  L as ListArea,
55
- y as LoadingSpinner,
56
- M as OverflowTooltip,
57
- E as ScrollbarX,
58
- O as ScrollbarY,
59
- R as SearchBar,
60
- mr as ThemeColor,
61
- Y as VerticalDivider,
62
- ir as capitalizeFirstLetters,
63
- fr as useBreakpoints
56
+ g as LoadingSpinner,
57
+ G as Modal,
58
+ E as OverflowTooltip,
59
+ P as ScrollbarX,
60
+ R as ScrollbarY,
61
+ Y as SearchBar,
62
+ fr as ThemeColor,
63
+ q as VerticalDivider,
64
+ lr as capitalizeFirstLetters,
65
+ ir as useBreakpoints
64
66
  };
@@ -0,0 +1,7 @@
1
+ import "./assets/modal.css";
2
+ const o = "_modal_a4n3a_1", s = {
3
+ modal: o
4
+ };
5
+ export {
6
+ s
7
+ };
@@ -0,0 +1,7 @@
1
+ import "./assets/overflowTooltip.css";
2
+ const t = "_truncate_m48xn_1", s = {
3
+ truncate: t
4
+ };
5
+ export {
6
+ s
7
+ };
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.7689",
4
+ "version": "0.0.7857",
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,12 +0,0 @@
1
- import "./assets/baseView.css";
2
- const t = "_divider_1513z_1", e = "_truncate_1513z_5", i = "_desktopList_1513z_13", s = "_mobileList_1513z_17", o = "_desktopDetail_1513z_21", _ = "_mobileDetail_1513z_25", d = {
3
- divider: t,
4
- truncate: e,
5
- desktopList: i,
6
- mobileList: s,
7
- desktopDetail: o,
8
- mobileDetail: _
9
- };
10
- export {
11
- d as s
12
- };
@@ -1,15 +0,0 @@
1
- import "./assets/genericCard.css";
2
- const t = "_cardTitle_ecoot_1", o = "_cardBody_ecoot_5", e = "_cardContent_ecoot_10", c = "_row_ecoot_14", n = "_font_ecoot_18", _ = "_fontHeader_ecoot_28", r = "_title_ecoot_32", a = "_emptyContainer_ecoot_40", d = "_empty_ecoot_40", i = {
3
- cardTitle: t,
4
- cardBody: o,
5
- cardContent: e,
6
- row: c,
7
- font: n,
8
- fontHeader: _,
9
- title: r,
10
- emptyContainer: a,
11
- empty: d
12
- };
13
- export {
14
- i as s
15
- };