@zealicsolutions/web-ui 1.1.61 → 1.1.63

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.
Files changed (48) hide show
  1. package/dist/cjs/containers/types/moleculeTypes.d.ts +12 -4
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/molecules/Button/types.d.ts +12 -4
  5. package/dist/cjs/organisms/DataGrid/queries/useDataGridRows.d.ts +0 -17
  6. package/dist/cjs/organisms/DataGrid/renderers/ActionButtonCell.d.ts +0 -12
  7. package/dist/esm/containers/types/moleculeTypes.d.ts +12 -4
  8. package/dist/esm/helpers/useDataResolution.js +1 -1
  9. package/dist/esm/helpers/useDataResolution.js.map +1 -1
  10. package/dist/esm/molecules/Button/hooks/useButtonAction.js +1 -1
  11. package/dist/esm/molecules/Button/hooks/useButtonAction.js.map +1 -1
  12. package/dist/esm/molecules/Button/types.d.ts +12 -4
  13. package/package.json +1 -1
  14. package/dist/cjs/index.css +0 -265
  15. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/ApplicationCard.d.ts +0 -26
  16. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/Custom.d.ts +0 -23
  17. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/FourItems.d.ts +0 -24
  18. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.d.ts +0 -22
  19. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/StudyCard.d.ts +0 -34
  20. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/SubjectCard.d.ts +0 -29
  21. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCard.d.ts +0 -22
  22. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/VisitCardCheck.d.ts +0 -22
  23. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/registry.d.ts +0 -15
  24. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/utils.d.ts +0 -20
  25. package/dist/cjs/organisms/DataGrid/config/toolDescriptor/toolbarStyles.d.ts +0 -27
  26. package/dist/cjs/organisms/DataGrid/renderers/AvatarTextCell.d.ts +0 -7
  27. package/dist/cjs/organisms/DataGrid/renderers/BooleanIconCell.d.ts +0 -7
  28. package/dist/cjs/organisms/DataGrid/renderers/CurrencyCell.d.ts +0 -7
  29. package/dist/cjs/organisms/DataGrid/renderers/DateCell.d.ts +0 -6
  30. package/dist/cjs/organisms/DataGrid/renderers/DefaultTextCell.d.ts +0 -5
  31. package/dist/cjs/organisms/DataGrid/renderers/EmailLinkCell.d.ts +0 -5
  32. package/dist/cjs/organisms/DataGrid/renderers/PhoneLinkCell.d.ts +0 -5
  33. package/dist/cjs/organisms/DataGrid/renderers/RatingCell.d.ts +0 -6
  34. package/dist/cjs/organisms/DataGrid/renderers/StatusChipCell.d.ts +0 -11
  35. package/dist/cjs/organisms/DataGrid/renderers/index.d.ts +0 -11
  36. package/dist/cjs/organisms/DataGrid/renderers/rendererRegistry.d.ts +0 -3
  37. package/dist/cjs/organisms/DataGrid/types/hostTypes.d.ts +0 -16
  38. package/dist/cjs/organisms/DataGrid/types/types.d.ts +0 -242
  39. package/dist/cjs/organisms/Organism/Organism.d.ts +0 -5
  40. package/dist/cjs/organisms/Organism/mockData.d.ts +0 -410
  41. package/dist/cjs/queries/federatedSearch/useOrganismData.d.ts +0 -305
  42. package/dist/cjs/setup/muiXLicense.d.ts +0 -1
  43. package/dist/cjs/theme/index.d.ts +0 -5
  44. package/dist/cjs/theme/provider.d.ts +0 -7
  45. package/dist/cjs/theme/theme.d.ts +0 -2
  46. package/dist/cjs/theme/toastStyles.d.ts +0 -1
  47. package/dist/cjs/theme/types.d.ts +0 -19
  48. package/dist/cjs/theme/useMediaQuery.d.ts +0 -2
@@ -1,305 +0,0 @@
1
- export interface UseOrganismDataOptions {
2
- organismId: string;
3
- brandId: string;
4
- /**
5
- * The webpage ID this organism belongs to.
6
- * Used to verify the rwoContext in URL belongs to this webpage before fetching.
7
- * If not provided, falls back to organismInfo.webpageId from OrganismContext.
8
- */
9
- currentWebpageId?: string;
10
- }
11
- export declare const useOrganismData: ({ organismId, brandId, currentWebpageId: providedWebpageId, }: UseOrganismDataOptions) => {
12
- /**
13
- * True only when no data exists and first fetch is in progress.
14
- * Use this to show skeleton/loading overlays.
15
- */
16
- isInitialLoading: boolean;
17
- /**
18
- * True when cached data exists but new data is being fetched.
19
- * UI should remain interactive, optionally show subtle refresh indicator.
20
- */
21
- isRefetching: boolean;
22
- data: {
23
- items: never[];
24
- totalCount: number;
25
- inputParameters: {
26
- rwoContext?: Record<string, unknown> | undefined;
27
- } | undefined;
28
- };
29
- error: Error;
30
- isError: true;
31
- isPending: false;
32
- isLoading: false;
33
- isLoadingError: false;
34
- isRefetchError: true;
35
- isSuccess: false;
36
- isPlaceholderData: false;
37
- status: "error";
38
- dataUpdatedAt: number;
39
- errorUpdatedAt: number;
40
- failureCount: number;
41
- failureReason: Error | null;
42
- errorUpdateCount: number;
43
- isFetched: boolean;
44
- isFetchedAfterMount: boolean;
45
- isFetching: boolean;
46
- isPaused: boolean;
47
- isStale: boolean;
48
- refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<{
49
- items: never[];
50
- totalCount: number;
51
- inputParameters: {
52
- rwoContext?: Record<string, unknown> | undefined;
53
- } | undefined;
54
- }, Error>>;
55
- fetchStatus: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").at;
56
- promise: Promise<{
57
- items: never[];
58
- totalCount: number;
59
- inputParameters: {
60
- rwoContext?: Record<string, unknown> | undefined;
61
- } | undefined;
62
- }>;
63
- } | {
64
- /**
65
- * True only when no data exists and first fetch is in progress.
66
- * Use this to show skeleton/loading overlays.
67
- */
68
- isInitialLoading: boolean;
69
- /**
70
- * True when cached data exists but new data is being fetched.
71
- * UI should remain interactive, optionally show subtle refresh indicator.
72
- */
73
- isRefetching: boolean;
74
- data: {
75
- items: never[];
76
- totalCount: number;
77
- inputParameters: {
78
- rwoContext?: Record<string, unknown> | undefined;
79
- } | undefined;
80
- };
81
- error: null;
82
- isError: false;
83
- isPending: false;
84
- isLoading: false;
85
- isLoadingError: false;
86
- isRefetchError: false;
87
- isSuccess: true;
88
- isPlaceholderData: false;
89
- status: "success";
90
- dataUpdatedAt: number;
91
- errorUpdatedAt: number;
92
- failureCount: number;
93
- failureReason: Error | null;
94
- errorUpdateCount: number;
95
- isFetched: boolean;
96
- isFetchedAfterMount: boolean;
97
- isFetching: boolean;
98
- isPaused: boolean;
99
- isStale: boolean;
100
- refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<{
101
- items: never[];
102
- totalCount: number;
103
- inputParameters: {
104
- rwoContext?: Record<string, unknown> | undefined;
105
- } | undefined;
106
- }, Error>>;
107
- fetchStatus: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").at;
108
- promise: Promise<{
109
- items: never[];
110
- totalCount: number;
111
- inputParameters: {
112
- rwoContext?: Record<string, unknown> | undefined;
113
- } | undefined;
114
- }>;
115
- } | {
116
- /**
117
- * True only when no data exists and first fetch is in progress.
118
- * Use this to show skeleton/loading overlays.
119
- */
120
- isInitialLoading: boolean;
121
- /**
122
- * True when cached data exists but new data is being fetched.
123
- * UI should remain interactive, optionally show subtle refresh indicator.
124
- */
125
- isRefetching: boolean;
126
- data: undefined;
127
- error: Error;
128
- isError: true;
129
- isPending: false;
130
- isLoading: false;
131
- isLoadingError: true;
132
- isRefetchError: false;
133
- isSuccess: false;
134
- isPlaceholderData: false;
135
- status: "error";
136
- dataUpdatedAt: number;
137
- errorUpdatedAt: number;
138
- failureCount: number;
139
- failureReason: Error | null;
140
- errorUpdateCount: number;
141
- isFetched: boolean;
142
- isFetchedAfterMount: boolean;
143
- isFetching: boolean;
144
- isPaused: boolean;
145
- isStale: boolean;
146
- refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<{
147
- items: never[];
148
- totalCount: number;
149
- inputParameters: {
150
- rwoContext?: Record<string, unknown> | undefined;
151
- } | undefined;
152
- }, Error>>;
153
- fetchStatus: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").at;
154
- promise: Promise<{
155
- items: never[];
156
- totalCount: number;
157
- inputParameters: {
158
- rwoContext?: Record<string, unknown> | undefined;
159
- } | undefined;
160
- }>;
161
- } | {
162
- /**
163
- * True only when no data exists and first fetch is in progress.
164
- * Use this to show skeleton/loading overlays.
165
- */
166
- isInitialLoading: boolean;
167
- /**
168
- * True when cached data exists but new data is being fetched.
169
- * UI should remain interactive, optionally show subtle refresh indicator.
170
- */
171
- isRefetching: boolean;
172
- data: undefined;
173
- error: null;
174
- isError: false;
175
- isPending: true;
176
- isLoading: true;
177
- isLoadingError: false;
178
- isRefetchError: false;
179
- isSuccess: false;
180
- isPlaceholderData: false;
181
- status: "pending";
182
- dataUpdatedAt: number;
183
- errorUpdatedAt: number;
184
- failureCount: number;
185
- failureReason: Error | null;
186
- errorUpdateCount: number;
187
- isFetched: boolean;
188
- isFetchedAfterMount: boolean;
189
- isFetching: boolean;
190
- isPaused: boolean;
191
- isStale: boolean;
192
- refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<{
193
- items: never[];
194
- totalCount: number;
195
- inputParameters: {
196
- rwoContext?: Record<string, unknown> | undefined;
197
- } | undefined;
198
- }, Error>>;
199
- fetchStatus: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").at;
200
- promise: Promise<{
201
- items: never[];
202
- totalCount: number;
203
- inputParameters: {
204
- rwoContext?: Record<string, unknown> | undefined;
205
- } | undefined;
206
- }>;
207
- } | {
208
- /**
209
- * True only when no data exists and first fetch is in progress.
210
- * Use this to show skeleton/loading overlays.
211
- */
212
- isInitialLoading: boolean;
213
- /**
214
- * True when cached data exists but new data is being fetched.
215
- * UI should remain interactive, optionally show subtle refresh indicator.
216
- */
217
- isRefetching: boolean;
218
- data: undefined;
219
- error: null;
220
- isError: false;
221
- isPending: true;
222
- isLoadingError: false;
223
- isRefetchError: false;
224
- isSuccess: false;
225
- isPlaceholderData: false;
226
- status: "pending";
227
- dataUpdatedAt: number;
228
- errorUpdatedAt: number;
229
- failureCount: number;
230
- failureReason: Error | null;
231
- errorUpdateCount: number;
232
- isFetched: boolean;
233
- isFetchedAfterMount: boolean;
234
- isFetching: boolean;
235
- isLoading: boolean;
236
- isPaused: boolean;
237
- isStale: boolean;
238
- refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<{
239
- items: never[];
240
- totalCount: number;
241
- inputParameters: {
242
- rwoContext?: Record<string, unknown> | undefined;
243
- } | undefined;
244
- }, Error>>;
245
- fetchStatus: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").at;
246
- promise: Promise<{
247
- items: never[];
248
- totalCount: number;
249
- inputParameters: {
250
- rwoContext?: Record<string, unknown> | undefined;
251
- } | undefined;
252
- }>;
253
- } | {
254
- /**
255
- * True only when no data exists and first fetch is in progress.
256
- * Use this to show skeleton/loading overlays.
257
- */
258
- isInitialLoading: boolean;
259
- /**
260
- * True when cached data exists but new data is being fetched.
261
- * UI should remain interactive, optionally show subtle refresh indicator.
262
- */
263
- isRefetching: boolean;
264
- data: {
265
- items: never[];
266
- totalCount: number;
267
- inputParameters: {
268
- rwoContext?: Record<string, unknown> | undefined;
269
- } | undefined;
270
- };
271
- isError: false;
272
- error: null;
273
- isPending: false;
274
- isLoading: false;
275
- isLoadingError: false;
276
- isRefetchError: false;
277
- isSuccess: true;
278
- isPlaceholderData: true;
279
- status: "success";
280
- dataUpdatedAt: number;
281
- errorUpdatedAt: number;
282
- failureCount: number;
283
- failureReason: Error | null;
284
- errorUpdateCount: number;
285
- isFetched: boolean;
286
- isFetchedAfterMount: boolean;
287
- isFetching: boolean;
288
- isPaused: boolean;
289
- isStale: boolean;
290
- refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<{
291
- items: never[];
292
- totalCount: number;
293
- inputParameters: {
294
- rwoContext?: Record<string, unknown> | undefined;
295
- } | undefined;
296
- }, Error>>;
297
- fetchStatus: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").at;
298
- promise: Promise<{
299
- items: never[];
300
- totalCount: number;
301
- inputParameters: {
302
- rwoContext?: Record<string, unknown> | undefined;
303
- } | undefined;
304
- }>;
305
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- export * from './theme';
2
- export * from './provider';
3
- export * from './types';
4
- export * from './toastStyles';
5
- export * from './useMediaQuery';
@@ -1,7 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { Theme } from '@emotion/react';
3
- declare const theme: import("@mui/material").Theme;
4
- export declare const ZealThemeProvider: (props: PropsWithChildren<{
5
- theme?: Theme;
6
- }>) => import("@emotion/react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- import { Theme } from '@emotion/react';
2
- export declare const defaultTheme: Theme;
@@ -1 +0,0 @@
1
- export declare const toastStyles: import("@emotion/react").SerializedStyles;
@@ -1,19 +0,0 @@
1
- export type ThemeColors = 'primary' | 'primaryTint' | 'primaryShade' | 'secondary' | 'secondaryTint' | 'secondaryShade' | 'pink' | 'pinkTint' | 'pinkShade' | 'orange' | 'orangeTint' | 'orangeShade' | 'purple' | 'purpleTint' | 'purpleShade' | 'indigo' | 'indigoTint1' | 'indigoTint2' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'green' | 'greenTint' | 'greenShade' | 'yellow' | 'yellowTint' | 'yellowShade' | 'red' | 'redTint' | 'redShade' | 'black' | 'white' | 'blue' | 'blueTint' | 'blueShade' | 'deepBlue' | 'background';
2
- export type SizesTypes = '5XL' | '4XL' | '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
3
- export type FontSizesTypes = Exclude<SizesTypes, '5XL' | '4XL'>;
4
- export type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- export type FontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
6
- export type ThemeColorsType = Record<ThemeColors, string>;
7
- export type ThemeTextType = Record<FontSizesTypes, {
8
- 'font-weight': string;
9
- 'font-size': number;
10
- 'line-height': number;
11
- }>;
12
- export type ThemeSizesType = Record<SizesTypes, number>;
13
- export type ThemeDevicesType = Record<BreakpointSizesTypes, string>;
14
- export type ZealTheme = {
15
- colors: ThemeColorsType;
16
- fonts: Record<FontSizesTypes, number>;
17
- sizes: ThemeSizesType;
18
- devices: ThemeDevicesType;
19
- };
@@ -1,2 +0,0 @@
1
- import { BreakpointSizesTypes } from 'theme/types';
2
- export declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes) => boolean;