@hortiview/shared-components 0.0.7689 → 0.0.7819
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 +14 -0
- package/dist/assets/modal.css +1 -0
- package/dist/components/Filter/Filter.js +3 -2
- package/dist/components/GenericTable/GenericTable.js +10 -9
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.js +13 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +33 -31
- package/dist/modal.module-BlDp1Wiq.js +7 -0
- package/package.json +1 -1
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.
|
|
@@ -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}
|
|
@@ -26,12 +26,13 @@ import "../../HeaderFilter.module-DiBmulr5.js";
|
|
|
26
26
|
import "../../infoGroup.module-Cxw88dfC.js";
|
|
27
27
|
import "../../bigLoadingSpinner.module-GgbFol8k.js";
|
|
28
28
|
import "../../loadingSpinner.module-CLtqSMWA.js";
|
|
29
|
+
import "../../modal.module-BlDp1Wiq.js";
|
|
29
30
|
import "../Scrollbar/Scrollbar.js";
|
|
30
31
|
import "react-hook-form";
|
|
31
32
|
import "../../formDatePicker.module-BV3ma_7y.js";
|
|
32
33
|
import "../../formSelect.module-C18N-SsT.js";
|
|
33
34
|
import "../../formText.module-C0by6_DK.js";
|
|
34
|
-
const
|
|
35
|
+
const Ct = ({
|
|
35
36
|
clearFilterText: m,
|
|
36
37
|
closeCallback: a,
|
|
37
38
|
currentFilter: i,
|
|
@@ -173,5 +174,5 @@ const Bt = ({
|
|
|
173
174
|
);
|
|
174
175
|
};
|
|
175
176
|
export {
|
|
176
|
-
|
|
177
|
+
Ct as Filter
|
|
177
178
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
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
4
|
import { a as e } from "../../genericTable.module-Dk3yy2S3.js";
|
|
5
5
|
import { u as x } from "../../useBreakpoints-BNeVhjjZ.js";
|
|
@@ -24,6 +24,7 @@ import "../../HeaderFilter.module-DiBmulr5.js";
|
|
|
24
24
|
import "../../infoGroup.module-Cxw88dfC.js";
|
|
25
25
|
import "../../bigLoadingSpinner.module-GgbFol8k.js";
|
|
26
26
|
import "../../loadingSpinner.module-CLtqSMWA.js";
|
|
27
|
+
import "../../modal.module-BlDp1Wiq.js";
|
|
27
28
|
import "../Scrollbar/Scrollbar.js";
|
|
28
29
|
import "react-hook-form";
|
|
29
30
|
import "../../formDatePicker.module-BV3ma_7y.js";
|
|
@@ -31,8 +32,8 @@ import "../../formSelect.module-C18N-SsT.js";
|
|
|
31
32
|
import "../../formText.module-C0by6_DK.js";
|
|
32
33
|
import { useGenerateColumns as _, useGenerateTableData as $ } from "./GenericTableService.js";
|
|
33
34
|
import { GenericCardList as A } from "./Mobile/GenericCardList.js";
|
|
34
|
-
const
|
|
35
|
-
data:
|
|
35
|
+
const ur = ({
|
|
36
|
+
data: l = [],
|
|
36
37
|
hiddenColumns: p = [],
|
|
37
38
|
order: f = [],
|
|
38
39
|
cellTemplates: h = void 0,
|
|
@@ -47,7 +48,7 @@ const dr = ({
|
|
|
47
48
|
cardSubTitleColumn: T
|
|
48
49
|
}) => {
|
|
49
50
|
const { isDesktop: o } = x(), a = _({
|
|
50
|
-
data:
|
|
51
|
+
data: l,
|
|
51
52
|
order: f,
|
|
52
53
|
cellTemplates: h,
|
|
53
54
|
headerTranslation: g,
|
|
@@ -56,7 +57,7 @@ const dr = ({
|
|
|
56
57
|
cardTitleColumn: v,
|
|
57
58
|
cardSubTitleColumn: T
|
|
58
59
|
}), c = $({
|
|
59
|
-
data:
|
|
60
|
+
data: l,
|
|
60
61
|
getRowActions: s
|
|
61
62
|
});
|
|
62
63
|
return o ? /* @__PURE__ */ r(D, { elevation: 1, className: e.elevation, children: /* @__PURE__ */ r(
|
|
@@ -73,10 +74,10 @@ const dr = ({
|
|
|
73
74
|
u,
|
|
74
75
|
{
|
|
75
76
|
className: e.topBar,
|
|
76
|
-
filterBar: /* @__PURE__ */ B(
|
|
77
|
+
filterBar: /* @__PURE__ */ B(m, { fullWidth: !0, direction: "vertical", gap: "none", children: [
|
|
77
78
|
t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(k, { level: 6, children: t }) }),
|
|
78
79
|
/* @__PURE__ */ r(
|
|
79
|
-
|
|
80
|
+
m,
|
|
80
81
|
{
|
|
81
82
|
className: e.filterBar,
|
|
82
83
|
fullWidth: !0,
|
|
@@ -92,7 +93,7 @@ const dr = ({
|
|
|
92
93
|
sortable: !0,
|
|
93
94
|
noContentIncludeTable: !!a,
|
|
94
95
|
noContentMessage: /* @__PURE__ */ r(
|
|
95
|
-
|
|
96
|
+
m,
|
|
96
97
|
{
|
|
97
98
|
fullWidth: !0,
|
|
98
99
|
primaryAlign: "center",
|
|
@@ -113,5 +114,5 @@ const dr = ({
|
|
|
113
114
|
);
|
|
114
115
|
};
|
|
115
116
|
export {
|
|
116
|
-
|
|
117
|
+
ur as GenericTable
|
|
117
118
|
};
|
|
@@ -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
|
+
};
|
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
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
E as
|
|
58
|
-
|
|
59
|
-
R as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
};
|
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.7819",
|
|
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>",
|