synos-helena 22.0.5-beta.0 → 22.1.0-beta.1

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 (64) hide show
  1. package/lib/dark.css +1000 -722
  2. package/lib/dark.css.gz +0 -0
  3. package/lib/dark.css.map +1 -0
  4. package/lib/dark.css.map.gz +0 -0
  5. package/lib/dark.js +2 -61
  6. package/lib/dark.js.gz +0 -0
  7. package/lib/dark.js.map +1 -0
  8. package/lib/dark.js.map.gz +0 -0
  9. package/lib/helena.css +1000 -722
  10. package/lib/helena.css.gz +0 -0
  11. package/lib/helena.css.map +1 -0
  12. package/lib/helena.css.map.gz +0 -0
  13. package/lib/helena.js +2 -61
  14. package/lib/helena.js.gz +0 -0
  15. package/lib/helena.js.map +1 -0
  16. package/lib/helena.js.map.gz +0 -0
  17. package/lib/icons/exception.svg.gz +0 -0
  18. package/lib/icons/export.svg.gz +0 -0
  19. package/lib/icons/field-time.svg.gz +0 -0
  20. package/lib/icons/file-calculator.svg.gz +0 -0
  21. package/lib/icons/hand-service.svg.gz +0 -0
  22. package/lib/icons/import.svg.gz +0 -0
  23. package/lib/icons/package.svg.gz +0 -0
  24. package/lib/icons/process-config.svg.gz +0 -0
  25. package/lib/icons/transmission.svg.gz +0 -0
  26. package/lib/images/empty-notification.svg.gz +0 -0
  27. package/lib/images/micro-download.svg.gz +0 -0
  28. package/lib/images/micro-gerproc.svg.gz +0 -0
  29. package/lib/images/micro-insight.svg.gz +0 -0
  30. package/lib/images/synchro-logo.svg.gz +0 -0
  31. package/lib/index.css +58 -52
  32. package/lib/index.css.gz +0 -0
  33. package/lib/index.css.map +1 -0
  34. package/lib/index.css.map.gz +0 -0
  35. package/lib/index.js +3 -34497
  36. package/lib/index.js.LICENSE.txt +70 -0
  37. package/lib/index.js.LICENSE.txt.gz +0 -0
  38. package/lib/index.js.gz +0 -0
  39. package/lib/index.js.map +1 -0
  40. package/lib/index.js.map.gz +0 -0
  41. package/lib/light.css +1000 -722
  42. package/lib/light.css.gz +0 -0
  43. package/lib/light.css.map +1 -0
  44. package/lib/light.css.map.gz +0 -0
  45. package/lib/light.js +2 -61
  46. package/lib/light.js.gz +0 -0
  47. package/lib/light.js.map +1 -0
  48. package/lib/light.js.map.gz +0 -0
  49. package/lib/themes/colors/ant-blues.less.gz +0 -0
  50. package/lib/themes/colors/ant-yellows.less.gz +0 -0
  51. package/lib/themes/colors/blues.less.gz +0 -0
  52. package/lib/themes/colors/dark-olive-greens.less.gz +0 -0
  53. package/lib/themes/colors/gray.less.gz +0 -0
  54. package/lib/themes/colors/greens.less.gz +0 -0
  55. package/lib/themes/colors/pinks.less.gz +0 -0
  56. package/lib/themes/colors/purples.less.gz +0 -0
  57. package/lib/themes/colors/reds.less.gz +0 -0
  58. package/lib/themes/colors/yellows.less.gz +0 -0
  59. package/lib/themes/dark.less.gz +0 -0
  60. package/lib/themes/default.less.gz +0 -0
  61. package/lib/themes/general_custom.less.gz +0 -0
  62. package/lib/themes/light.less.gz +0 -0
  63. package/package.json +98 -64
  64. package/lib/index.d.ts +0 -1480
package/lib/index.d.ts DELETED
@@ -1,1480 +0,0 @@
1
- // Generated by dts-bundle v0.7.3
2
- // Dependencies for this module:
3
- // ../antd/lib/alert
4
- // ../antd/lib/button
5
- // ../antd
6
- // ../antd/lib/card
7
- // ../react
8
- // ../antd/lib/checkbox
9
- // ../react-syntax-highlighter
10
- // ../antd/lib/collapse
11
- // ../HLCollapse
12
- // util/constants
13
- // HLInput
14
- // ../antd/lib/config-provider/SizeContext
15
- // ../moment
16
- // ../dayjs
17
- // ../antd/es/date-picker/generatePicker
18
- // ../antd/lib/spin
19
- // ../antd/lib/descriptions
20
- // ../antd/lib/divider
21
- // ../antd/lib/drawer
22
- // ../antd/lib/dropdown
23
- // ../~/util/constants
24
- // HLHeaderButton
25
- // HLHeaderSearch
26
- // HLHealthCheck/HLHealthCheck
27
- // HLModulesMenu
28
- // HLNotification
29
- // HLUserBox
30
- // ../antd/lib/tooltip
31
- // ../react-markdown/lib/react-markdown
32
- // ../react-router-dom
33
- // ../antd/lib/page-header
34
- // HLContext
35
- // ../antd/lib/popover
36
- // ../antd/lib/radio
37
- // ../antd/lib/select
38
- // ../antd/lib/switch
39
-
40
- import { AlertProps } from 'antd/lib/alert';
41
- import { ButtonProps } from 'antd/lib/button';
42
- import { Card } from 'antd';
43
- import { CardTabListType } from 'antd/lib/card';
44
- import { CSSProperties } from 'react';
45
- import { CheckboxChangeEvent } from 'antd/lib/checkbox';
46
- import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
47
- import { CollapseProps } from 'antd/lib/collapse';
48
- import { CollapsePanelProps } from 'antd/lib/collapse';
49
- import React from 'react';
50
- import { HLCollapsePropTypes } from 'HLCollapse';
51
- import { DATE_TIME, DATE } from 'src/util/constants';
52
- import { HLInputPropTypes } from 'src/HLInput';
53
- import { SizeType } from 'antd/lib/config-provider/SizeContext';
54
- import { Moment } from 'moment';
55
- import { Dayjs } from 'dayjs';
56
- import { PickerProps, RangePickerProps } from 'antd/es/date-picker/generatePicker';
57
- import { SpinSize } from 'antd/lib/spin';
58
- import { Descriptions } from 'antd';
59
- import { DescriptionsProps } from 'antd/lib/descriptions';
60
- import { DividerProps } from 'antd/lib/divider';
61
- import { DrawerProps } from 'antd/lib/drawer';
62
- import { DropDownProps } from 'antd/lib/dropdown';
63
- import { TableProps } from 'antd';
64
- import { ReactNode } from 'react';
65
- import { ERROR_SIZES } from '~/util/constants';
66
- import { Form } from 'antd';
67
- import React, { ReactNode } from 'react';
68
- import { HLHeaderButtonPropTypes } from 'src/HLHeaderButton';
69
- import { HLHeaderSearchPropTypes } from 'src/HLHeaderSearch';
70
- import HLHealthCheck from 'src/HLHealthCheck/HLHealthCheck';
71
- import { HLModulesMenuPropTypes } from 'src/HLModulesMenu';
72
- import { HLNotificationPropTypes } from 'src/HLNotification';
73
- import { HLUserBoxPropTypes } from 'src/HLUserBox';
74
- import { Input } from 'antd';
75
- import { TooltipProps } from 'antd/lib/tooltip';
76
- import { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown';
77
- import { Link } from 'react-router-dom';
78
- import { BreadcrumbProps } from 'antd';
79
- import { PageHeaderProps } from 'antd/lib/page-header';
80
- import { HLContextPropTypes } from 'src/HLContext';
81
- import { PopoverProps } from 'antd/lib/popover';
82
- import { ProgressProps } from 'antd';
83
- import { RadioChangeEvent } from 'antd/lib/radio';
84
- import { LabeledValue } from 'antd/lib/select';
85
- import { SpinProps } from 'antd/lib/spin';
86
- import { SwitchProps } from 'antd/lib/switch';
87
-
88
-
89
- export type HLAlertPropTypes = AlertProps;
90
-
91
- export const HLAlert: React.FC<HLAlertPropTypes>;
92
-
93
- export type HLArticleSection = {
94
- key: string;
95
- title: string;
96
- content: ReactNode;
97
- subsections?: HLArticleSection[];
98
- };
99
-
100
- export type HLArticlePropTypes = {
101
- href: string;
102
- title?: string;
103
- sections: HLArticleSection[];
104
- };
105
-
106
- export const HLArticle: React.FC<HLArticlePropTypes>;
107
-
108
-
109
- export type HLButtonPropTypes = ButtonProps & {
110
- premium?: boolean;
111
- tooltip?: string;
112
- borderless?: boolean;
113
- 'data-cy'?: string;
114
- };
115
-
116
- export const HLButton: React.FC<HLButtonPropTypes>;
117
-
118
-
119
- export interface HLCardPropTypes {
120
- title?: string | React.ReactNode;
121
- extra?: string | React.ReactNode;
122
- loading?: boolean;
123
- size?: 'default' | 'small';
124
- type?: 'inner' | 'button' | 'hover';
125
- cover?: React.ReactNode;
126
- actions?: React.ReactNode[];
127
- tabList?: CardTabListType[];
128
- onTabChange?: (key: string) => void;
129
- activeTabKey?: string;
130
- defaultActiveTabKey?: string;
131
- className?: string;
132
- bordered?: boolean;
133
- bodyStyle?: CSSProperties;
134
- tabBarExtraContent?: React.ReactNode;
135
- }
136
-
137
- export const HLCard: React.FC<HLCardPropTypes> & { Meta: typeof Card.Meta };
138
-
139
-
140
- export interface HLCheckboxPropTypes {
141
- className?: string;
142
- key?: any;
143
- label?: string;
144
- domainAttribute: any;
145
- rules?: any[];
146
- placeholder?: string;
147
- form?: Record<string, any>;
148
- initialValue?: boolean;
149
- disabled?: boolean;
150
- onChange?: (e: CheckboxChangeEvent) => void;
151
- tooltip?: string;
152
- }
153
-
154
- export const HLCheckbox: React.FC<HLCheckboxPropTypes>;
155
-
156
-
157
- export type HLCodePropTypes = SyntaxHighlighterProps & {
158
- copyToClipboard?: boolean;
159
- };
160
-
161
- export const HLCode: React.FC<HLCodePropTypes>;
162
-
163
-
164
- export type HLCollapsePropTypes = CollapseProps;
165
-
166
- export const HLCollapse: React.FC<HLCollapsePropTypes> & { Panel: typeof Panel };
167
-
168
-
169
- export type PanelPropTypes = CollapsePanelProps;
170
-
171
- export const Panel: React.FC<PanelPropTypes>;
172
-
173
-
174
- export type HLCollapseInfoPanelPropTypes = HLCollapsePropTypes & {
175
- attributes: Array<{ [key: string]: any } | string>;
176
- object: any;
177
- title: React.ReactNode;
178
- columns?: number;
179
- isOpen?: boolean;
180
- };
181
-
182
- export const HLCollapseInfoPanel: React.FC<HLCollapseInfoPanelPropTypes>;
183
-
184
-
185
- export interface EstabelecimentoOptions {
186
- label: string;
187
- value: any;
188
- }
189
-
190
- export interface SerieOptions {
191
- label: string;
192
- value: any;
193
- }
194
-
195
- export interface EstabelecimentoLabel {
196
- completo: string;
197
- abreviado: string;
198
- artigo: string;
199
- }
200
-
201
- export interface HLContextPropTypes {
202
- disableFutureDate?: boolean;
203
- estabelecimento?: Record<string, any>;
204
- estabelecimentos?: any[];
205
- estabelecimentoLabel?: EstabelecimentoLabel;
206
- serie?: Record<string, any>;
207
- series?: any[];
208
- format?: string;
209
- onApply?: (estabelecimento: any, format: 'YYYY-MM-DDTHH:mm:ss' | 'YYYY-MM-DD' | null, serie: any) => any | undefined;
210
- periodo?: number;
211
- width?: any;
212
- useISOFormat: 'YYYY-MM-DDTHH:mm:ss' | 'YYYY-MM-DD';
213
- loading: boolean = false;
214
- estabLabelLength?: number;
215
- }
216
-
217
- export const HLContext: React.FC<HLContextPropTypes>;
218
-
219
-
220
- export type HLCpfCnpjPropTypes = HLInputPropTypes & {
221
- type?: string;
222
- keepFormat?: boolean;
223
- };
224
-
225
- export const HLCpfCnpj: React.FC<HLCpfCnpjPropTypes>;
226
-
227
-
228
- export type DatePickerProps = {
229
- useDayjs?: boolean;
230
- } & PickerProps<Dayjs | Moment>;
231
-
232
- export type HLDatePickerPropTypes = DatePickerProps & {
233
- disableDateAfterThan?: Record<string, unknown>;
234
- disableDateBeforeThan?: Record<string, unknown>;
235
- disableDateRange?: any[];
236
- disabled?: boolean;
237
- form?: any;
238
- initialValue?: any;
239
- domainAttribute: string;
240
- label?: string;
241
- onChange?: (date: moment, dateString: string) => void;
242
- placeholder?: string;
243
- rules?: any[];
244
- size?: SizeType;
245
- format?: string;
246
- defaultPickerValue?: any;
247
- showTime?: boolean;
248
- key?: any;
249
- locale?: any;
250
- };
251
-
252
- export interface HLDatePickerChildren {
253
- MonthPicker: typeof MonthPicker;
254
- RangePicker: typeof RangePicker;
255
- }
256
-
257
- export const HLDatePicker: React.FC<HLDatePickerPropTypes> & HLDatePickerChildren;
258
-
259
-
260
- export type HLMonthPickerProps = DatePickerProps & {
261
- disabled?: boolean;
262
- domainAttribute: string;
263
- form?: Record<string, any>;
264
- label?: string;
265
- onChange?: (value: Dayjs | moment.Moment | null, dateString: string) => void;
266
- rules?: any[];
267
- key?: any;
268
- format?: string;
269
- };
270
-
271
- export const MonthPicker: React.FC<HLMonthPickerProps>;
272
-
273
-
274
- export type RangeDatePickerProps = {
275
- useDayjs?: boolean;
276
- } & RangePickerProps<Dayjs | Moment>;
277
-
278
- export type HLRangePickerProps = RangeDatePickerProps & {
279
- disabled?: boolean;
280
- domainAttribute: string;
281
- form?: any;
282
- label?: string;
283
- onChange?: (value: Dayjs | moment.Moment | null, dateString: string) => void;
284
- rules?: any[];
285
- key?: any;
286
- format?: string;
287
- };
288
-
289
- export const RangePicker: React.FC<HLRangePickerProps>;
290
-
291
-
292
- export interface HLDeferredRenderPropTypes {
293
- idleTimeout?: number;
294
- spinSize?: SpinSize;
295
- }
296
-
297
- export const HLDeferredRender: React.FC<HLDeferredRenderPropTypes>;
298
-
299
-
300
- export interface HLDescriptionsChildren {
301
- Item: typeof Descriptions.Item;
302
- }
303
- export type HLDescriptionsPropTypes = DescriptionsProps;
304
-
305
- export const HLDescriptions: React.FC<HLDescriptionsPropTypes> & HLDescriptionsChildren;
306
-
307
-
308
- export type HLDividerPropTypes = DividerProps;
309
-
310
- export const HLDivider: React.FC<HLDividerPropTypes>;
311
-
312
-
313
- export interface HLDrawerPropTypes extends DrawerProps {
314
- width?: string | number;
315
- }
316
-
317
- export const HLDrawer: React.FC<HLDrawerPropTypes>;
318
-
319
-
320
- export type HLDropdownPropTypes = DropDownProps & {
321
- premium?: boolean;
322
- };
323
-
324
- export const HLDropdown: React.FC<HLDropdownPropTypes>;
325
-
326
-
327
- interface Menu {
328
- divider?: boolean;
329
- label?: string;
330
- link?: string;
331
- disabled?: boolean;
332
- query?: string;
333
- onClick?: React.MouseEvent<HTMLElement>;
334
- }
335
- export interface HLDropdownButtonPropTypes {
336
- menus: Menu[];
337
- icon?: string;
338
- label?: string;
339
- style?: React.CSSProperties;
340
- link?: any;
341
- }
342
-
343
- export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
344
-
345
-
346
- interface GenericAction {
347
- name: string;
348
- icon: any;
349
- onClick?: (params: unknown) => any;
350
- disabled?: boolean;
351
- permission?: {
352
- proxy: React.ReactElement;
353
- resourceId: string;
354
- };
355
- }
356
-
357
- export type HLEditTablePropTypes = TableProps & {
358
- handleSave: (row: any) => void;
359
- enableSelectVisualization?: boolean;
360
- dataLimit?: number;
361
- enableDownload?: boolean;
362
- batchActions?: GenericAction[];
363
- primaryAction?: Omit<GenericAction, 'permission'>;
364
- secundaryActions?: Omit<GenericAction, 'permission'>[];
365
- additionalActions?: React.ReactNode[];
366
- autosaveOptions?: boolean;
367
- context?: string;
368
- };
369
- export const HLEditTable: React.FC<HLEditTablePropTypes>;
370
-
371
-
372
- export interface ErrorPropTypes {
373
- size?: ERROR_SIZES.SMALL | ERROR_SIZES.BIG | ERROR_SIZES.PAGE | string;
374
- gray?: boolean;
375
- content?: ReactNode;
376
- icon?: ReactNode;
377
- }
378
-
379
- export const Error: React.FC<ErrorPropTypes>;
380
-
381
- export interface Page500PropTypes {
382
- /** @deprecated Este atributo não é mais usado e será removido nas próximas versões */
383
- supportPhone?: string;
384
- }
385
-
386
- export const Page500: React.FC<Page500PropTypes>;
387
-
388
-
389
- export const HLForm: React.FC<typeof Form> & { Item: typeof Form.Item };
390
-
391
-
392
- export interface HLFromToProps<L, R, T> {
393
- fromL: HLFromToPanelTypes<L>;
394
- fromR: HLFromToPanelTypes<R>;
395
- to: HLFromToPanelTypes<T>;
396
- tablesY: number;
397
- onAssociate: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => void;
398
- onDisassociate: (to?: T | T[]) => void;
399
- disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
400
- disabledDisassociate?: (to?: T | T[]) => boolean;
401
- permissions?: PermissionsType;
402
- }
403
-
404
- export type HLFromToPanelTypes<P> = {
405
- title?: string;
406
- newButton?: {
407
- label?: string;
408
- disabled?: boolean;
409
- onClick: (e) => void;
410
- };
411
- table?: {
412
- loading?: boolean;
413
- columns: Record<string, unknown>;
414
- dataSource: Record<string, unknown>[];
415
- loadMore?: Record<string, unknown>;
416
- onSelect?: (selectedRows?: P | P[]) => void;
417
- };
418
- powerSearch?: {
419
- columns: Record<string, unknown>;
420
- onSubmit: (params) => void;
421
- };
422
- custom?: {
423
- label: string;
424
- };
425
- footer?: ReactNode;
426
- multiple?: boolean;
427
- };
428
-
429
- export const HLFromTo: React.FC<HLFromToProps>;
430
-
431
-
432
- export interface HLHeaderPropTypes {
433
- children: ReactNode;
434
- collapsed: boolean;
435
- collapsedClick: () => unknown;
436
- headerSearch?: HLHeaderSearchPropTypes;
437
- moduleName: string;
438
- modulesMenu?: HLModulesMenuPropTypes;
439
- notifications: HLNotificationPropTypes;
440
- userBox?: HLUserBoxPropTypes;
441
- headerButtons?: HLHeaderButtonPropTypes[];
442
- healthCheck?: HLHealthCheck;
443
- }
444
-
445
- export const HLHeader: React.FC<HLHeaderPropTypes>;
446
-
447
- export interface HLHeaderButtonPropTypes {
448
- icon: string;
449
- tooltip?: string;
450
- disabled?: boolean;
451
- onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
452
- }
453
-
454
- export const HLHeaderButton: React.FC<HLHeaderButtonPropTypes>;
455
-
456
- export interface HLHeaderSearchPropTypes {
457
- onSubmit: (unknown) => unknown;
458
- }
459
-
460
- export const HLHeaderSearch: React.FC<HLHeaderSearchPropTypes>;
461
-
462
-
463
- export interface HLInputPropTypes {
464
- key?: any;
465
- label?: string;
466
- disabled?: boolean;
467
- domainAttribute: string;
468
- 'data-cy'?: string;
469
- form?: Record<string, any>;
470
- initialValue?: string | number;
471
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
472
- placeholder?: string;
473
- rules?: any[];
474
- size?: 'large' | 'middle' | 'small';
475
- maxLength?: number;
476
- onPressEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
477
- ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
478
- onValueFromEvent?: (unknown) => unknown;
479
- style?: React.CSSProperties;
480
- tooltip?: string;
481
- autoComplete?: string;
482
- readOnly?: boolean;
483
- onFocus?: (unknown) => unknown | undefined;
484
- onBlur?: (unknown) => unknown | undefined;
485
- }
486
-
487
- interface HLInputChildren {
488
- Search: typeof Input.Search;
489
- Password: typeof Password;
490
- Group: typeof Input.Group;
491
- }
492
-
493
- export const HLInput: React.FC<HLInputPropTypes> & HLInputChildren;
494
-
495
-
496
- export type PasswordPropTypes = HLInputPropTypes & {
497
- visibilityToggle: boolean;
498
- };
499
-
500
- export const Password: React.FC<PasswordPropTypes>;
501
-
502
-
503
- export interface HLInputMonetaryPropTypes {
504
- key?: any;
505
- label?: string;
506
- disabled?: boolean;
507
- domainAttribute: string;
508
- form?: Record<string, any>;
509
- initialValue?: string | number;
510
- placeholder?: string;
511
- size?: 'large' | 'middle' | 'small';
512
- rules?: any[];
513
- min?: number;
514
- max?: number;
515
- ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
516
- style?: React.CSSProperties;
517
- precision?: number;
518
- stringMode?: boolean;
519
- onChange?: (event: any) => void;
520
- onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
521
- onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
522
- }
523
-
524
- export const HLInputMonetary: React.FC<HLInputMonetaryPropTypes>;
525
-
526
- export interface HLMainPropTypes {
527
- className?: string;
528
- }
529
-
530
- export const HLMain: React.FC<HLMainPropTypes>;
531
-
532
-
533
- export type HLMarkdownPropTypes = ReactMarkdownOptions;
534
-
535
- export const HLMarkdown: React.FC<HLMarkdownPropTypes>;
536
-
537
- interface Module {
538
- title: string;
539
- description?: string;
540
- link: string;
541
- }
542
-
543
- export interface HLModulesMenuPropTypes {
544
- linkLandingPage?: string;
545
- onClickButton?: (event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void;
546
- }
547
-
548
- export const HLModulesMenu: React.FC<HLModulesMenuPropTypes>;
549
-
550
-
551
- interface Notification {
552
- title: string;
553
- description: string;
554
- type: string;
555
- date: number;
556
- isVisualized: boolean;
557
- link?: string;
558
- onClick?: React.MouseEvent<HTMLElement>;
559
- }
560
-
561
- export interface HLNotificationPropTypes {
562
- buttonLabel?: string;
563
- onClearNotification?: () => any;
564
- title?: string;
565
- placement?:
566
- | 'bottom'
567
- | 'top'
568
- | 'left'
569
- | 'right'
570
- | 'topLeft'
571
- | 'topRight'
572
- | 'bottomLeft'
573
- | 'bottomRight'
574
- | 'leftTop'
575
- | 'leftBottom'
576
- | 'rightTop'
577
- | 'rightBottom';
578
- Link?: Link;
579
- notifications?: Notification[];
580
- fetchNewNotifications: () => void;
581
- showFormat: string;
582
- refreshInterval: number;
583
- }
584
-
585
- export const HLNotification: React.FC<HLNotificationPropTypes>;
586
-
587
-
588
- interface Notification {
589
- title: string;
590
- description: string;
591
- type: string;
592
- date: number;
593
- isVisualized: boolean;
594
- link?: string;
595
- onClick?: React.MouseEvent<HTMLElement>;
596
- }
597
-
598
- export interface NotificationListPropTypes {
599
- Link?: Link;
600
- onClickNotification?: (unknown) => any;
601
- notifications?: Notification[];
602
- useDayjs?: boolean;
603
- showNotifications: () => void;
604
- hideNotifications: () => void;
605
- }
606
-
607
- export const NotificationList: React.FC<NotificationListPropTypes>;
608
-
609
-
610
- interface Context {
611
- label: string;
612
- value?: any;
613
- render?: (unknown) => unknown;
614
- }
615
-
616
- interface ContextInfo {
617
- columns?: number;
618
- context?: Context[];
619
- }
620
-
621
- interface Path {
622
- link?: string;
623
- title: string;
624
- icon?: string;
625
- }
626
-
627
- interface BreadcrumbPath {
628
- paths: Path[];
629
- link: Link;
630
- }
631
-
632
- export type HLPageHeaderPropTypes = PageHeaderProps & {
633
- context?: HLContextPropTypes;
634
- breadcrumbPaths?: BreadcrumbPath;
635
- contextInfo?: ContextInfo;
636
- title?: React.ReactNode;
637
- breadcrumb?: BreadcrumbProps;
638
- };
639
- export const HLPageHeader: React.FC<HLPageHeaderPropTypes>;
640
-
641
-
642
- export type HLPopoverPropTypes = PopoverProps;
643
-
644
- export const HLPopover: React.FC<PopoverProps>;
645
-
646
-
647
- export type HLProgressPropTypes = ProgressProps;
648
-
649
- export const HLProgress: React.FC<HLProgressPropTypes>;
650
-
651
-
652
- interface Options {
653
- value?: string;
654
- text?: string;
655
- disabled?: boolean;
656
- style?: any;
657
- }
658
-
659
- export interface HLRadioPropTypes {
660
- className?: string;
661
- columns?: number;
662
- key?: any;
663
- label?: string;
664
- domainAttribute: any;
665
- rules?: any[];
666
- form?: Record<string, any>;
667
- initialValue?: boolean;
668
- disabled?: boolean;
669
- onChange?: (e: RadioChangeEvent) => void;
670
- size?: 'large' | 'middle' | 'small';
671
- options?: Options[];
672
- }
673
-
674
- export const HLRadio: React.FC<HLRadioPropTypes>;
675
-
676
-
677
- export interface HLSelectPropTypes {
678
- fieldKey: string;
679
- initialValue?: string[];
680
- onChange?: (value: string[] | string | number | LabeledValue, option: any) => void;
681
- onSelect?: (value: string | number | LabeledValue, option: any) => void;
682
- onDeselect?: (value: string | number | LabeledValue, option: any) => void;
683
- store: PowerSelectStoreInterface;
684
- itemKey: string;
685
- itemValue?: string;
686
- itemLabels: string[];
687
- form: Record<string, any>;
688
- rules?: any[];
689
- label?: string;
690
- style?: Record<string, any>;
691
- placeholder?: string;
692
- notContentMessage?: string;
693
- mode?: 'multiple' | 'tags';
694
- disabled?: boolean;
695
- showSearch?: boolean;
696
- allowClear?: boolean;
697
- onClear?: () => void;
698
- }
699
- export const HLSelect: React.FC<HLSelectPropTypes>;
700
-
701
-
702
- export type HLSideMenuItem = {
703
- key: string;
704
- title: string;
705
- tooltip: string;
706
- icon?: string;
707
- href?: string;
708
- subpages?: string[];
709
- insideMenu?: boolean;
710
- links?: HLSideMenuItem[];
711
- resourceId?: string;
712
- showOnWelcomePage?: boolean;
713
- description?: string;
714
- undeveloped?: boolean;
715
- };
716
-
717
- export interface HLSideMenuPropTypes {
718
- collapsed: boolean;
719
- location: any;
720
- subMenus: HLSideMenuItem[];
721
- changeOpenKeys: (unknown) => unknown;
722
- onOpenChange: (unknown) => unknown;
723
- generateLink: (unknown, unknown, unknown, unknown) => any;
724
- allowsAccessByResourceId: (unknown) => unknown;
725
- changeCollapsedState: (unknown) => unknown;
726
- openKeys: any[];
727
- baseboardLogoPath?: string;
728
- baseboardText?: string;
729
- menuLogoPath: string;
730
- menuCollapsedLogoPath?: string;
731
- link?: Link;
732
- homePath: string;
733
- singleActiveMenu?: boolean;
734
- }
735
- export const HLSideMenu: React.FC<HLSideMenuPropTypes>;
736
-
737
-
738
- export type HLSpinPropTypes = SpinProps & {
739
- centralized?: boolean;
740
- };
741
-
742
- export const HLSpin: React.FC<HLSpinPropTypes>;
743
-
744
-
745
- export const HLSwitch: React.FC<SwitchProps>;
746
-
747
- export interface HLTextAreaProptypes {
748
- autosize?: { maxRows?: number; minRows?: number };
749
- disabled?: boolean;
750
- domainAttribute: any;
751
- form?: Record<string, any>;
752
- initialValue?: string;
753
- key?: any;
754
- label?: string;
755
- maxLength?: number;
756
- onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
757
- placeholder?: string;
758
- rules?: any[];
759
- }
760
-
761
- export const HLTextArea: React.FC<HLTextAreaProptypes>;
762
-
763
-
764
- export const HLTooltip: React.FC<TooltipProps>;
765
-
766
-
767
- export type HLTotalizerSize = 'default' | 'big';
768
-
769
- export interface HLTotalizerPropTypes {
770
- key?: string;
771
- className?: string;
772
- title: string;
773
- subtitle?: string;
774
- content?: string | React.ReactNode;
775
- value: string;
776
- footer?: React.ReactNode;
777
- active?: boolean;
778
- disabled?: boolean;
779
- activeColor?: string;
780
- size?: HLTotalizerSize;
781
- flagColor?: string;
782
- onClick?: (e: any) => void;
783
- }
784
-
785
- export const HLTotalizer: React.FC<HLTotalizerPropTypes>;
786
-
787
- interface User {
788
- name?: string;
789
- avatar?: string;
790
- }
791
-
792
- export interface HLUserBoxPropTypes {
793
- options?: any[];
794
- user?: User;
795
- logout?: (unknown) => unknown;
796
- tenant?: string;
797
- moduleInfo?: ModuleInfo;
798
- sysStatus?: any;
799
- }
800
- export const HLUserBox: React.FC<HLUserBoxPropTypes>;
801
-
802
- export interface ModuleInfoPropTypes {
803
- name: string;
804
- version: string;
805
- buildDate: Date;
806
- description?: ReactNode;
807
- thirdPartyLibrariesInfo?: [{ name: string; version?: string; description?: ReactNode }];
808
- }
809
- export const ModuleInfo: React.FC<ModuleInfoPropTypes>;
810
-
811
-
812
- export {
813
- AdvancedPowerSelectStoreInterface,
814
- HLAdvancedPowerSelect,
815
- HLAlert,
816
- HLArticle,
817
- HLAssociateDisassociate,
818
- HLBigDecimalInputNumber,
819
- HLBreadcrumb,
820
- HLButton,
821
- HLCard,
822
- HLCheckbox,
823
- HLCode,
824
- HLCollapse,
825
- HLCollapseInfoPanel,
826
- HLContext,
827
- HLCpfCnpj,
828
- HLDatePicker,
829
- HLDeferredRender,
830
- HLDescriptions,
831
- HLDivider,
832
- HLDrawer,
833
- HLDropdown,
834
- HLDropdownButton,
835
- HLEditTable,
836
- HLErrorBoundary,
837
- HLException,
838
- HLForm,
839
- HLFormAction,
840
- HLFormGroup,
841
- HLFromTo,
842
- HLHeader,
843
- HLIcon,
844
- HLInput,
845
- HLInputMonetary,
846
- HLInputNumber,
847
- HLLayout,
848
- HLMain,
849
- HLMarkdown,
850
- HLMenu,
851
- HLModal,
852
- HLPageHeader,
853
- HLPopover,
854
- HLPowerSearch,
855
- HLPowerSelect,
856
- HLProgress,
857
- HLRadio,
858
- HLSelect,
859
- HLSelectMultiple,
860
- HLSideMenu,
861
- HLSpin,
862
- HLSwitch,
863
- HLTable,
864
- HLTableDataLimitAlert,
865
- HLTabs,
866
- HLTag,
867
- HLTagRounded,
868
- HLTextArea,
869
- HLTooltip,
870
- HLTotalizer,
871
- HLTree,
872
- HLUserBox,
873
- HLNotification,
874
- HLHealthCheck,
875
- HLModulesMenu,
876
- PowerSearchOperators,
877
- PowerSelectStoreInterface,
878
- SearchObject,
879
- SearchType,
880
- SelectStoreInterface,
881
- };
882
-
883
- declare module '*.module.css';
884
- declare module '*.svg';
885
-
886
-
887
- export type PanelPropTypes = CollapsePanelProps;
888
-
889
- export const Panel: React.FC<PanelPropTypes>;
890
-
891
-
892
- export interface HLInputPropTypes {
893
- key?: any;
894
- label?: string;
895
- disabled?: boolean;
896
- domainAttribute: string;
897
- 'data-cy'?: string;
898
- form?: Record<string, any>;
899
- initialValue?: string | number;
900
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
901
- placeholder?: string;
902
- rules?: any[];
903
- size?: 'large' | 'middle' | 'small';
904
- maxLength?: number;
905
- onPressEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
906
- ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
907
- onValueFromEvent?: (unknown) => unknown;
908
- style?: React.CSSProperties;
909
- tooltip?: string;
910
- autoComplete?: string;
911
- readOnly?: boolean;
912
- onFocus?: (unknown) => unknown | undefined;
913
- onBlur?: (unknown) => unknown | undefined;
914
- }
915
-
916
- interface HLInputChildren {
917
- Search: typeof Input.Search;
918
- Password: typeof Password;
919
- Group: typeof Input.Group;
920
- }
921
-
922
- export const HLInput: React.FC<HLInputPropTypes> & HLInputChildren;
923
-
924
-
925
- export type HLAlertPropTypes = AlertProps;
926
-
927
- export const HLAlert: React.FC<HLAlertPropTypes>;
928
-
929
- export type HLArticleSection = {
930
- key: string;
931
- title: string;
932
- content: ReactNode;
933
- subsections?: HLArticleSection[];
934
- };
935
-
936
- export type HLArticlePropTypes = {
937
- href: string;
938
- title?: string;
939
- sections: HLArticleSection[];
940
- };
941
-
942
- export const HLArticle: React.FC<HLArticlePropTypes>;
943
-
944
-
945
- export type HLButtonPropTypes = ButtonProps & {
946
- premium?: boolean;
947
- tooltip?: string;
948
- borderless?: boolean;
949
- 'data-cy'?: string;
950
- };
951
-
952
- export const HLButton: React.FC<HLButtonPropTypes>;
953
-
954
-
955
- export interface HLCardPropTypes {
956
- title?: string | React.ReactNode;
957
- extra?: string | React.ReactNode;
958
- loading?: boolean;
959
- size?: 'default' | 'small';
960
- type?: 'inner' | 'button' | 'hover';
961
- cover?: React.ReactNode;
962
- actions?: React.ReactNode[];
963
- tabList?: CardTabListType[];
964
- onTabChange?: (key: string) => void;
965
- activeTabKey?: string;
966
- defaultActiveTabKey?: string;
967
- className?: string;
968
- bordered?: boolean;
969
- bodyStyle?: CSSProperties;
970
- tabBarExtraContent?: React.ReactNode;
971
- }
972
-
973
- export const HLCard: React.FC<HLCardPropTypes> & { Meta: typeof Card.Meta };
974
-
975
-
976
- export interface HLCheckboxPropTypes {
977
- className?: string;
978
- key?: any;
979
- label?: string;
980
- domainAttribute: any;
981
- rules?: any[];
982
- placeholder?: string;
983
- form?: Record<string, any>;
984
- initialValue?: boolean;
985
- disabled?: boolean;
986
- onChange?: (e: CheckboxChangeEvent) => void;
987
- tooltip?: string;
988
- }
989
-
990
- export const HLCheckbox: React.FC<HLCheckboxPropTypes>;
991
-
992
-
993
- export type HLCodePropTypes = SyntaxHighlighterProps & {
994
- copyToClipboard?: boolean;
995
- };
996
-
997
- export const HLCode: React.FC<HLCodePropTypes>;
998
-
999
-
1000
- export type HLCollapsePropTypes = CollapseProps;
1001
-
1002
- export const HLCollapse: React.FC<HLCollapsePropTypes> & { Panel: typeof Panel };
1003
-
1004
-
1005
- export type HLCollapseInfoPanelPropTypes = HLCollapsePropTypes & {
1006
- attributes: Array<{ [key: string]: any } | string>;
1007
- object: any;
1008
- title: React.ReactNode;
1009
- columns?: number;
1010
- isOpen?: boolean;
1011
- };
1012
-
1013
- export const HLCollapseInfoPanel: React.FC<HLCollapseInfoPanelPropTypes>;
1014
-
1015
-
1016
- export type HLCpfCnpjPropTypes = HLInputPropTypes & {
1017
- type?: string;
1018
- keepFormat?: boolean;
1019
- };
1020
-
1021
- export const HLCpfCnpj: React.FC<HLCpfCnpjPropTypes>;
1022
-
1023
-
1024
- export type DatePickerProps = {
1025
- useDayjs?: boolean;
1026
- } & PickerProps<Dayjs | Moment>;
1027
-
1028
- export type HLDatePickerPropTypes = DatePickerProps & {
1029
- disableDateAfterThan?: Record<string, unknown>;
1030
- disableDateBeforeThan?: Record<string, unknown>;
1031
- disableDateRange?: any[];
1032
- disabled?: boolean;
1033
- form?: any;
1034
- initialValue?: any;
1035
- domainAttribute: string;
1036
- label?: string;
1037
- onChange?: (date: moment, dateString: string) => void;
1038
- placeholder?: string;
1039
- rules?: any[];
1040
- size?: SizeType;
1041
- format?: string;
1042
- defaultPickerValue?: any;
1043
- showTime?: boolean;
1044
- key?: any;
1045
- locale?: any;
1046
- };
1047
-
1048
- export interface HLDatePickerChildren {
1049
- MonthPicker: typeof MonthPicker;
1050
- RangePicker: typeof RangePicker;
1051
- }
1052
-
1053
- export const HLDatePicker: React.FC<HLDatePickerPropTypes> & HLDatePickerChildren;
1054
-
1055
-
1056
- export interface HLDeferredRenderPropTypes {
1057
- idleTimeout?: number;
1058
- spinSize?: SpinSize;
1059
- }
1060
-
1061
- export const HLDeferredRender: React.FC<HLDeferredRenderPropTypes>;
1062
-
1063
-
1064
- export interface HLDescriptionsChildren {
1065
- Item: typeof Descriptions.Item;
1066
- }
1067
- export type HLDescriptionsPropTypes = DescriptionsProps;
1068
-
1069
- export const HLDescriptions: React.FC<HLDescriptionsPropTypes> & HLDescriptionsChildren;
1070
-
1071
-
1072
- export type HLDividerPropTypes = DividerProps;
1073
-
1074
- export const HLDivider: React.FC<HLDividerPropTypes>;
1075
-
1076
-
1077
- export interface HLDrawerPropTypes extends DrawerProps {
1078
- width?: string | number;
1079
- }
1080
-
1081
- export const HLDrawer: React.FC<HLDrawerPropTypes>;
1082
-
1083
-
1084
- export type HLDropdownPropTypes = DropDownProps & {
1085
- premium?: boolean;
1086
- };
1087
-
1088
- export const HLDropdown: React.FC<HLDropdownPropTypes>;
1089
-
1090
-
1091
- interface Menu {
1092
- divider?: boolean;
1093
- label?: string;
1094
- link?: string;
1095
- disabled?: boolean;
1096
- query?: string;
1097
- onClick?: React.MouseEvent<HTMLElement>;
1098
- }
1099
- export interface HLDropdownButtonPropTypes {
1100
- menus: Menu[];
1101
- icon?: string;
1102
- label?: string;
1103
- style?: React.CSSProperties;
1104
- link?: any;
1105
- }
1106
-
1107
- export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
1108
-
1109
-
1110
- interface GenericAction {
1111
- name: string;
1112
- icon: any;
1113
- onClick?: (params: unknown) => any;
1114
- disabled?: boolean;
1115
- permission?: {
1116
- proxy: React.ReactElement;
1117
- resourceId: string;
1118
- };
1119
- }
1120
-
1121
- export type HLEditTablePropTypes = TableProps & {
1122
- handleSave: (row: any) => void;
1123
- enableSelectVisualization?: boolean;
1124
- dataLimit?: number;
1125
- enableDownload?: boolean;
1126
- batchActions?: GenericAction[];
1127
- primaryAction?: Omit<GenericAction, 'permission'>;
1128
- secundaryActions?: Omit<GenericAction, 'permission'>[];
1129
- additionalActions?: React.ReactNode[];
1130
- autosaveOptions?: boolean;
1131
- context?: string;
1132
- };
1133
- export const HLEditTable: React.FC<HLEditTablePropTypes>;
1134
-
1135
-
1136
- export const HLForm: React.FC<typeof Form> & { Item: typeof Form.Item };
1137
-
1138
-
1139
- export interface HLFromToProps<L, R, T> {
1140
- fromL: HLFromToPanelTypes<L>;
1141
- fromR: HLFromToPanelTypes<R>;
1142
- to: HLFromToPanelTypes<T>;
1143
- tablesY: number;
1144
- onAssociate: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => void;
1145
- onDisassociate: (to?: T | T[]) => void;
1146
- disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
1147
- disabledDisassociate?: (to?: T | T[]) => boolean;
1148
- permissions?: PermissionsType;
1149
- }
1150
-
1151
- export type HLFromToPanelTypes<P> = {
1152
- title?: string;
1153
- newButton?: {
1154
- label?: string;
1155
- disabled?: boolean;
1156
- onClick: (e) => void;
1157
- };
1158
- table?: {
1159
- loading?: boolean;
1160
- columns: Record<string, unknown>;
1161
- dataSource: Record<string, unknown>[];
1162
- loadMore?: Record<string, unknown>;
1163
- onSelect?: (selectedRows?: P | P[]) => void;
1164
- };
1165
- powerSearch?: {
1166
- columns: Record<string, unknown>;
1167
- onSubmit: (params) => void;
1168
- };
1169
- custom?: {
1170
- label: string;
1171
- };
1172
- footer?: ReactNode;
1173
- multiple?: boolean;
1174
- };
1175
-
1176
- export const HLFromTo: React.FC<HLFromToProps>;
1177
-
1178
-
1179
- export interface HLHeaderPropTypes {
1180
- children: ReactNode;
1181
- collapsed: boolean;
1182
- collapsedClick: () => unknown;
1183
- headerSearch?: HLHeaderSearchPropTypes;
1184
- moduleName: string;
1185
- modulesMenu?: HLModulesMenuPropTypes;
1186
- notifications: HLNotificationPropTypes;
1187
- userBox?: HLUserBoxPropTypes;
1188
- headerButtons?: HLHeaderButtonPropTypes[];
1189
- healthCheck?: HLHealthCheck;
1190
- }
1191
-
1192
- export const HLHeader: React.FC<HLHeaderPropTypes>;
1193
-
1194
-
1195
- export interface HLInputMonetaryPropTypes {
1196
- key?: any;
1197
- label?: string;
1198
- disabled?: boolean;
1199
- domainAttribute: string;
1200
- form?: Record<string, any>;
1201
- initialValue?: string | number;
1202
- placeholder?: string;
1203
- size?: 'large' | 'middle' | 'small';
1204
- rules?: any[];
1205
- min?: number;
1206
- max?: number;
1207
- ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
1208
- style?: React.CSSProperties;
1209
- precision?: number;
1210
- stringMode?: boolean;
1211
- onChange?: (event: any) => void;
1212
- onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
1213
- onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
1214
- }
1215
-
1216
- export const HLInputMonetary: React.FC<HLInputMonetaryPropTypes>;
1217
-
1218
- export interface HLMainPropTypes {
1219
- className?: string;
1220
- }
1221
-
1222
- export const HLMain: React.FC<HLMainPropTypes>;
1223
-
1224
-
1225
- export type HLMarkdownPropTypes = ReactMarkdownOptions;
1226
-
1227
- export const HLMarkdown: React.FC<HLMarkdownPropTypes>;
1228
-
1229
-
1230
- interface Context {
1231
- label: string;
1232
- value?: any;
1233
- render?: (unknown) => unknown;
1234
- }
1235
-
1236
- interface ContextInfo {
1237
- columns?: number;
1238
- context?: Context[];
1239
- }
1240
-
1241
- interface Path {
1242
- link?: string;
1243
- title: string;
1244
- icon?: string;
1245
- }
1246
-
1247
- interface BreadcrumbPath {
1248
- paths: Path[];
1249
- link: Link;
1250
- }
1251
-
1252
- export type HLPageHeaderPropTypes = PageHeaderProps & {
1253
- context?: HLContextPropTypes;
1254
- breadcrumbPaths?: BreadcrumbPath;
1255
- contextInfo?: ContextInfo;
1256
- title?: React.ReactNode;
1257
- breadcrumb?: BreadcrumbProps;
1258
- };
1259
- export const HLPageHeader: React.FC<HLPageHeaderPropTypes>;
1260
-
1261
-
1262
- export type HLPopoverPropTypes = PopoverProps;
1263
-
1264
- export const HLPopover: React.FC<PopoverProps>;
1265
-
1266
-
1267
- export type HLProgressPropTypes = ProgressProps;
1268
-
1269
- export const HLProgress: React.FC<HLProgressPropTypes>;
1270
-
1271
-
1272
- interface Options {
1273
- value?: string;
1274
- text?: string;
1275
- disabled?: boolean;
1276
- style?: any;
1277
- }
1278
-
1279
- export interface HLRadioPropTypes {
1280
- className?: string;
1281
- columns?: number;
1282
- key?: any;
1283
- label?: string;
1284
- domainAttribute: any;
1285
- rules?: any[];
1286
- form?: Record<string, any>;
1287
- initialValue?: boolean;
1288
- disabled?: boolean;
1289
- onChange?: (e: RadioChangeEvent) => void;
1290
- size?: 'large' | 'middle' | 'small';
1291
- options?: Options[];
1292
- }
1293
-
1294
- export const HLRadio: React.FC<HLRadioPropTypes>;
1295
-
1296
-
1297
- export interface HLSelectPropTypes {
1298
- fieldKey: string;
1299
- initialValue?: string[];
1300
- onChange?: (value: string[] | string | number | LabeledValue, option: any) => void;
1301
- onSelect?: (value: string | number | LabeledValue, option: any) => void;
1302
- onDeselect?: (value: string | number | LabeledValue, option: any) => void;
1303
- store: PowerSelectStoreInterface;
1304
- itemKey: string;
1305
- itemValue?: string;
1306
- itemLabels: string[];
1307
- form: Record<string, any>;
1308
- rules?: any[];
1309
- label?: string;
1310
- style?: Record<string, any>;
1311
- placeholder?: string;
1312
- notContentMessage?: string;
1313
- mode?: 'multiple' | 'tags';
1314
- disabled?: boolean;
1315
- showSearch?: boolean;
1316
- allowClear?: boolean;
1317
- onClear?: () => void;
1318
- }
1319
- export const HLSelect: React.FC<HLSelectPropTypes>;
1320
-
1321
-
1322
- export type HLSideMenuItem = {
1323
- key: string;
1324
- title: string;
1325
- tooltip: string;
1326
- icon?: string;
1327
- href?: string;
1328
- subpages?: string[];
1329
- insideMenu?: boolean;
1330
- links?: HLSideMenuItem[];
1331
- resourceId?: string;
1332
- showOnWelcomePage?: boolean;
1333
- description?: string;
1334
- undeveloped?: boolean;
1335
- };
1336
-
1337
- export interface HLSideMenuPropTypes {
1338
- collapsed: boolean;
1339
- location: any;
1340
- subMenus: HLSideMenuItem[];
1341
- changeOpenKeys: (unknown) => unknown;
1342
- onOpenChange: (unknown) => unknown;
1343
- generateLink: (unknown, unknown, unknown, unknown) => any;
1344
- allowsAccessByResourceId: (unknown) => unknown;
1345
- changeCollapsedState: (unknown) => unknown;
1346
- openKeys: any[];
1347
- baseboardLogoPath?: string;
1348
- baseboardText?: string;
1349
- menuLogoPath: string;
1350
- menuCollapsedLogoPath?: string;
1351
- link?: Link;
1352
- homePath: string;
1353
- singleActiveMenu?: boolean;
1354
- }
1355
- export const HLSideMenu: React.FC<HLSideMenuPropTypes>;
1356
-
1357
-
1358
- export type HLSpinPropTypes = SpinProps & {
1359
- centralized?: boolean;
1360
- };
1361
-
1362
- export const HLSpin: React.FC<HLSpinPropTypes>;
1363
-
1364
-
1365
- export const HLSwitch: React.FC<SwitchProps>;
1366
-
1367
- export interface HLTextAreaProptypes {
1368
- autosize?: { maxRows?: number; minRows?: number };
1369
- disabled?: boolean;
1370
- domainAttribute: any;
1371
- form?: Record<string, any>;
1372
- initialValue?: string;
1373
- key?: any;
1374
- label?: string;
1375
- maxLength?: number;
1376
- onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
1377
- placeholder?: string;
1378
- rules?: any[];
1379
- }
1380
-
1381
- export const HLTextArea: React.FC<HLTextAreaProptypes>;
1382
-
1383
-
1384
- export const HLTooltip: React.FC<TooltipProps>;
1385
-
1386
-
1387
- export type HLTotalizerSize = 'default' | 'big';
1388
-
1389
- export interface HLTotalizerPropTypes {
1390
- key?: string;
1391
- className?: string;
1392
- title: string;
1393
- subtitle?: string;
1394
- content?: string | React.ReactNode;
1395
- value: string;
1396
- footer?: React.ReactNode;
1397
- active?: boolean;
1398
- disabled?: boolean;
1399
- activeColor?: string;
1400
- size?: HLTotalizerSize;
1401
- flagColor?: string;
1402
- onClick?: (e: any) => void;
1403
- }
1404
-
1405
- export const HLTotalizer: React.FC<HLTotalizerPropTypes>;
1406
-
1407
- interface User {
1408
- name?: string;
1409
- avatar?: string;
1410
- }
1411
-
1412
- export interface HLUserBoxPropTypes {
1413
- options?: any[];
1414
- user?: User;
1415
- logout?: (unknown) => unknown;
1416
- tenant?: string;
1417
- moduleInfo?: ModuleInfo;
1418
- sysStatus?: any;
1419
- }
1420
- export const HLUserBox: React.FC<HLUserBoxPropTypes>;
1421
-
1422
- export interface ModuleInfoPropTypes {
1423
- name: string;
1424
- version: string;
1425
- buildDate: Date;
1426
- description?: ReactNode;
1427
- thirdPartyLibrariesInfo?: [{ name: string; version?: string; description?: ReactNode }];
1428
- }
1429
- export const ModuleInfo: React.FC<ModuleInfoPropTypes>;
1430
-
1431
-
1432
- interface Notification {
1433
- title: string;
1434
- description: string;
1435
- type: string;
1436
- date: number;
1437
- isVisualized: boolean;
1438
- link?: string;
1439
- onClick?: React.MouseEvent<HTMLElement>;
1440
- }
1441
-
1442
- export interface HLNotificationPropTypes {
1443
- buttonLabel?: string;
1444
- onClearNotification?: () => any;
1445
- title?: string;
1446
- placement?:
1447
- | 'bottom'
1448
- | 'top'
1449
- | 'left'
1450
- | 'right'
1451
- | 'topLeft'
1452
- | 'topRight'
1453
- | 'bottomLeft'
1454
- | 'bottomRight'
1455
- | 'leftTop'
1456
- | 'leftBottom'
1457
- | 'rightTop'
1458
- | 'rightBottom';
1459
- Link?: Link;
1460
- notifications?: Notification[];
1461
- fetchNewNotifications: () => void;
1462
- showFormat: string;
1463
- refreshInterval: number;
1464
- }
1465
-
1466
- export const HLNotification: React.FC<HLNotificationPropTypes>;
1467
-
1468
- interface Module {
1469
- title: string;
1470
- description?: string;
1471
- link: string;
1472
- }
1473
-
1474
- export interface HLModulesMenuPropTypes {
1475
- linkLandingPage?: string;
1476
- onClickButton?: (event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void;
1477
- }
1478
-
1479
- export const HLModulesMenu: React.FC<HLModulesMenuPropTypes>;
1480
-