@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/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 n } from "./components/ChipCard/ChipCard.js";
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 M } from "./components/HealthCheckFailed/HealthCheckFailed.js";
18
- import { Iconify as V } from "./components/Iconify/Iconify.js";
19
- import { InfoGroup as R } from "./components/InfoGroup/InfoGroup.js";
20
- import { ListArea as O } from "./components/ListArea/ListArea.js";
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 { OnboardingBanner as j } from "./components/OnboardingBanner/OnboardingBanner.js";
25
- import { OverflowTooltip as J } from "./components/OverflowTooltip/OverflowTooltip.js";
26
- import { ScrollbarX as Z, ScrollbarY as $ } from "./components/Scrollbar/Scrollbar.js";
27
- import { SearchBar as or } from "./components/SearchBar/SearchBar.js";
28
- import { Select as tr } from "./components/Select/Select.js";
29
- import { StepperHeader as pr } from "./components/Stepper/components/StepperHeader.js";
30
- import { StepperIndicator as xr } from "./components/Stepper/components/StepperIndicator.js";
31
- import { Stepper as ir } from "./components/Stepper/Stepper.js";
32
- import { VerticalDivider as Ar } from "./components/VerticalDivider/VerticalDivider.js";
33
- import { FormCheckBox as cr } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
34
- import { FormDatePicker as Lr } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
35
- import { FormNumber as sr } from "./components/FormComponents/FormNumber/FormNumber.js";
36
- import { FormRadio as Gr } from "./components/FormComponents/FormRadio/FormRadio.js";
37
- import { FormSelect as Ir } from "./components/FormComponents/FormSelect/FormSelect.js";
38
- import { FormSlider as Nr } from "./components/FormComponents/FormSlider/FormSlider.js";
39
- import { FormText as Br } from "./components/FormComponents/FormText/FormText.js";
40
- import { FormToggle as gr } from "./components/FormComponents/FormToggle/FormToggle.js";
41
- import { AvailableCustomIcons as ur } from "./enums/AvailableCustomIcons.js";
42
- import { ThemeColor as Hr } from "./enums/ThemeColor.js";
43
- import { u as hr } from "./useBreakpoints-MzTZ0tCT.js";
44
- import { capitalizeFirstLetters as Pr, getNumberAsLocaleString as Vr, trimLeadingAndTrailingSpaces as kr } from "./services/UtilService.js";
45
- import { AVAILABLE_COUNTRY_KEYS as wr, AVAILABLE_LOCALES as Or, ENGLISH_LANGUAGE_ID as vr, GERMAN_LANGUAGE_ID as yr, LANGUAGE_CODES_MAPPER as Yr, LANGUAGE_ID_MAPPER as Kr, SPANISH_LANGUAGE_ID as zr, TURKISH_LANGUAGE_ID as Wr } from "./types/Languages.js";
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
- wr as AVAILABLE_COUNTRY_KEYS,
48
- Or as AVAILABLE_LOCALES,
48
+ vr as AVAILABLE_COUNTRY_KEYS,
49
+ yr as AVAILABLE_LOCALES,
49
50
  e as AlertBanner,
50
- ur as AvailableCustomIcons,
51
+ Hr as AvailableCustomIcons,
51
52
  f as BaseView,
52
53
  a as BasicHeading,
53
54
  l as BlockView,
54
- n as ChipCard,
55
+ A as ChipCard,
55
56
  d as ContextMenu,
56
57
  S as DeleteModal,
57
58
  E as DetailContentWrapper,
58
59
  _ as Disclaimer,
59
- vr as ENGLISH_LANGUAGE_ID,
60
+ Yr as ENGLISH_LANGUAGE_ID,
60
61
  F as EmptyView,
61
62
  D as Filter,
62
- cr as FormCheckBox,
63
- Lr as FormDatePicker,
64
- sr as FormNumber,
65
- Gr as FormRadio,
66
- Ir as FormSelect,
67
- Nr as FormSlider,
68
- Br as FormText,
69
- gr as FormToggle,
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
- yr as GERMAN_LANGUAGE_ID,
72
+ Kr as GERMAN_LANGUAGE_ID,
72
73
  b as GenericTable,
73
74
  T as HashTabView,
74
75
  U as HeaderFilter,
75
- M as HealthCheckFailed,
76
- V as Iconify,
77
- R as InfoGroup,
78
- Yr as LANGUAGE_CODES_MAPPER,
79
- Kr as LANGUAGE_ID_MAPPER,
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
- O as ListArea,
82
+ R as ListArea,
82
83
  y as LoadingSpinner,
83
84
  K as Modal,
84
85
  W as ModulePadding,
85
- j as OnboardingBanner,
86
- J as OverflowTooltip,
87
- zr as SPANISH_LANGUAGE_ID,
88
- Z as ScrollbarX,
89
- $ as ScrollbarY,
90
- or as SearchBar,
91
- tr as Select,
92
- ir as Stepper,
93
- pr as StepperHeader,
94
- xr as StepperIndicator,
95
- Wr as TURKISH_LANGUAGE_ID,
96
- Hr as ThemeColor,
97
- Ar as VerticalDivider,
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
- Vr as getNumberAsLocaleString,
100
- kr as trimLeadingAndTrailingSpaces,
101
- hr as useBreakpoints
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.3.0",
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>",