synos-helena 21.14.3 → 21.14.6

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