@hortiview/shared-components 2.3.0 → 2.4.0
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 +17 -0
- package/README.md +11 -0
- package/dist/OfflineView-BW19N4Cu.js +48 -0
- package/dist/assets/ContextMenu.css +1 -1
- package/dist/assets/OfflineView.css +1 -0
- package/dist/components/BaseView/BaseView.d.ts +10 -1
- package/dist/components/BaseView/BaseView.js +42 -39
- package/dist/components/BaseView/BaseView.test.js +51 -34
- package/dist/components/ContextMenu/ContextMenu.d.ts +12 -1
- package/dist/components/ContextMenu/ContextMenu.js +40 -36
- package/dist/components/ContextMenu/ContextMenu.test.js +42 -19
- package/dist/components/DeleteModal/DeleteModal.d.ts +13 -1
- package/dist/components/DeleteModal/DeleteModal.js +52 -48
- package/dist/components/DeleteModal/DeleteModal.test.js +35 -11
- package/dist/components/GenericTable/GenericTable.d.ts +3 -1
- package/dist/components/GenericTable/GenericTable.js +1225 -1216
- package/dist/components/GenericTable/GenericTable.test.js +36 -6
- package/dist/components/Modal/Modal.d.ts +6 -1
- package/dist/components/Modal/Modal.js +94 -89
- package/dist/components/OfflineView/OfflineView.d.ts +68 -0
- package/dist/components/OfflineView/OfflineView.js +9 -0
- package/dist/components/OfflineView/OfflineView.test.d.ts +1 -0
- package/dist/components/OfflineView/OfflineView.test.js +24 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +65 -63
- package/dist/types/GenericTable.d.ts +9 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3,7 +3,7 @@ import { LinkBanner as m } from "./components/AlertBanner/LinkBanner.js";
|
|
|
3
3
|
import { BaseView as f } from "./components/BaseView/BaseView.js";
|
|
4
4
|
import { BasicHeading as a } from "./components/BasicHeading/BasicHeading.js";
|
|
5
5
|
import { BlockView as l } from "./components/BlockView/BlockView.js";
|
|
6
|
-
import { ChipCard as
|
|
6
|
+
import { ChipCard as A } from "./components/ChipCard/ChipCard.js";
|
|
7
7
|
import { ContextMenu as d } from "./components/ContextMenu/ContextMenu.js";
|
|
8
8
|
import { DeleteModal as S } from "./components/DeleteModal/DeleteModal.js";
|
|
9
9
|
import { DetailContentWrapper as E } from "./components/DetailContentWrapper/DetailContentWrapper.js";
|
|
@@ -14,89 +14,91 @@ import { FormattedNumberDisplay as C } from "./components/FormattedNumberDisplay
|
|
|
14
14
|
import { GenericTable as b } from "./components/GenericTable/GenericTable.js";
|
|
15
15
|
import { HashTabView as T } from "./components/HashTabView/HashTabView.js";
|
|
16
16
|
import { HeaderFilter as U } from "./components/HeaderFilter/HeaderFilter.js";
|
|
17
|
-
import { HealthCheckFailed as
|
|
18
|
-
import { Iconify as
|
|
19
|
-
import { InfoGroup as
|
|
20
|
-
import { ListArea as
|
|
17
|
+
import { HealthCheckFailed as h } from "./components/HealthCheckFailed/HealthCheckFailed.js";
|
|
18
|
+
import { Iconify as O } from "./components/Iconify/Iconify.js";
|
|
19
|
+
import { InfoGroup as k } from "./components/InfoGroup/InfoGroup.js";
|
|
20
|
+
import { ListArea as R } from "./components/ListArea/ListArea.js";
|
|
21
21
|
import { LoadingSpinner as y } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
|
|
22
22
|
import { Modal as K } from "./components/Modal/Modal.js";
|
|
23
23
|
import { ModulePadding as W } from "./components/ModulePadding/ModulePadding.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
24
|
+
import { O as j } from "./OfflineView-BW19N4Cu.js";
|
|
25
|
+
import { OnboardingBanner as J } from "./components/OnboardingBanner/OnboardingBanner.js";
|
|
26
|
+
import { OverflowTooltip as Z } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
27
|
+
import { ScrollbarX as rr, ScrollbarY as or } from "./components/Scrollbar/Scrollbar.js";
|
|
28
|
+
import { SearchBar as tr } from "./components/SearchBar/SearchBar.js";
|
|
29
|
+
import { Select as pr } from "./components/Select/Select.js";
|
|
30
|
+
import { StepperHeader as xr } from "./components/Stepper/components/StepperHeader.js";
|
|
31
|
+
import { StepperIndicator as ir } from "./components/Stepper/components/StepperIndicator.js";
|
|
32
|
+
import { Stepper as nr } from "./components/Stepper/Stepper.js";
|
|
33
|
+
import { VerticalDivider as cr } from "./components/VerticalDivider/VerticalDivider.js";
|
|
34
|
+
import { FormCheckBox as Lr } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
|
|
35
|
+
import { FormDatePicker as sr } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
|
|
36
|
+
import { FormNumber as Gr } from "./components/FormComponents/FormNumber/FormNumber.js";
|
|
37
|
+
import { FormRadio as Ir } from "./components/FormComponents/FormRadio/FormRadio.js";
|
|
38
|
+
import { FormSelect as Nr } from "./components/FormComponents/FormSelect/FormSelect.js";
|
|
39
|
+
import { FormSlider as Br } from "./components/FormComponents/FormSlider/FormSlider.js";
|
|
40
|
+
import { FormText as gr } from "./components/FormComponents/FormText/FormText.js";
|
|
41
|
+
import { FormToggle as ur } from "./components/FormComponents/FormToggle/FormToggle.js";
|
|
42
|
+
import { AvailableCustomIcons as Hr } from "./enums/AvailableCustomIcons.js";
|
|
43
|
+
import { ThemeColor as Vr } from "./enums/ThemeColor.js";
|
|
44
|
+
import { u as Mr } from "./useBreakpoints-MzTZ0tCT.js";
|
|
45
|
+
import { capitalizeFirstLetters as Pr, getNumberAsLocaleString as kr, trimLeadingAndTrailingSpaces as wr } from "./services/UtilService.js";
|
|
46
|
+
import { AVAILABLE_COUNTRY_KEYS as vr, AVAILABLE_LOCALES as yr, ENGLISH_LANGUAGE_ID as Yr, GERMAN_LANGUAGE_ID as Kr, LANGUAGE_CODES_MAPPER as zr, LANGUAGE_ID_MAPPER as Wr, SPANISH_LANGUAGE_ID as Xr, TURKISH_LANGUAGE_ID as jr } from "./types/Languages.js";
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
vr as AVAILABLE_COUNTRY_KEYS,
|
|
49
|
+
yr as AVAILABLE_LOCALES,
|
|
49
50
|
e as AlertBanner,
|
|
50
|
-
|
|
51
|
+
Hr as AvailableCustomIcons,
|
|
51
52
|
f as BaseView,
|
|
52
53
|
a as BasicHeading,
|
|
53
54
|
l as BlockView,
|
|
54
|
-
|
|
55
|
+
A as ChipCard,
|
|
55
56
|
d as ContextMenu,
|
|
56
57
|
S as DeleteModal,
|
|
57
58
|
E as DetailContentWrapper,
|
|
58
59
|
_ as Disclaimer,
|
|
59
|
-
|
|
60
|
+
Yr as ENGLISH_LANGUAGE_ID,
|
|
60
61
|
F as EmptyView,
|
|
61
62
|
D as Filter,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
Lr as FormCheckBox,
|
|
64
|
+
sr as FormDatePicker,
|
|
65
|
+
Gr as FormNumber,
|
|
66
|
+
Ir as FormRadio,
|
|
67
|
+
Nr as FormSelect,
|
|
68
|
+
Br as FormSlider,
|
|
69
|
+
gr as FormText,
|
|
70
|
+
ur as FormToggle,
|
|
70
71
|
C as FormattedNumberDisplay,
|
|
71
|
-
|
|
72
|
+
Kr as GERMAN_LANGUAGE_ID,
|
|
72
73
|
b as GenericTable,
|
|
73
74
|
T as HashTabView,
|
|
74
75
|
U as HeaderFilter,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
h as HealthCheckFailed,
|
|
77
|
+
O as Iconify,
|
|
78
|
+
k as InfoGroup,
|
|
79
|
+
zr as LANGUAGE_CODES_MAPPER,
|
|
80
|
+
Wr as LANGUAGE_ID_MAPPER,
|
|
80
81
|
m as LinkBanner,
|
|
81
|
-
|
|
82
|
+
R as ListArea,
|
|
82
83
|
y as LoadingSpinner,
|
|
83
84
|
K as Modal,
|
|
84
85
|
W as ModulePadding,
|
|
85
|
-
j as
|
|
86
|
-
J as
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
or as
|
|
91
|
-
tr as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
xr as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
86
|
+
j as OfflineView,
|
|
87
|
+
J as OnboardingBanner,
|
|
88
|
+
Z as OverflowTooltip,
|
|
89
|
+
Xr as SPANISH_LANGUAGE_ID,
|
|
90
|
+
rr as ScrollbarX,
|
|
91
|
+
or as ScrollbarY,
|
|
92
|
+
tr as SearchBar,
|
|
93
|
+
pr as Select,
|
|
94
|
+
nr as Stepper,
|
|
95
|
+
xr as StepperHeader,
|
|
96
|
+
ir as StepperIndicator,
|
|
97
|
+
jr as TURKISH_LANGUAGE_ID,
|
|
98
|
+
Vr as ThemeColor,
|
|
99
|
+
cr as VerticalDivider,
|
|
98
100
|
Pr as capitalizeFirstLetters,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
kr as getNumberAsLocaleString,
|
|
102
|
+
wr as trimLeadingAndTrailingSpaces,
|
|
103
|
+
Mr as useBreakpoints
|
|
102
104
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ListItemProps } from '@element-public/react-list';
|
|
2
|
+
import { OfflineViewProps } from '../components/OfflineView/OfflineView';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Props for the GenericTable component {@link GenericTable}
|
|
@@ -114,6 +115,14 @@ export type TableLayoutProps<T> = {
|
|
|
114
115
|
* @default 'standard'
|
|
115
116
|
*/
|
|
116
117
|
tableLayout?: 'standard' | 'flex';
|
|
118
|
+
/**
|
|
119
|
+
* Whether the user is online; shows OfflineView when false.
|
|
120
|
+
*/
|
|
121
|
+
isOnline?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Props forwarded to <OfflineView /> when offline.
|
|
124
|
+
*/
|
|
125
|
+
offlineViewProps?: Partial<OfflineViewProps>;
|
|
117
126
|
};
|
|
118
127
|
/**
|
|
119
128
|
* Props for the CellTemplate component {@link CellTemplate}
|
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.4.0",
|
|
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>",
|