synos-helena 21.12.7-beta.0 → 21.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -1
- package/lib/dark.css +226 -22
- package/lib/dark.css.map +1 -1
- package/lib/helena.css +226 -22
- package/lib/helena.css.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +588 -60
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/light.css +226 -22
- package/lib/light.css.map +1 -1
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
// ../moment
|
|
15
15
|
// ../dayjs
|
|
16
16
|
// ../antd/es/date-picker/generatePicker
|
|
17
|
+
// ../antd/lib/spin
|
|
17
18
|
// ../antd/lib/descriptions
|
|
18
19
|
// ../antd/lib/divider
|
|
19
20
|
// ../antd/lib/drawer
|
|
@@ -31,7 +32,6 @@
|
|
|
31
32
|
// ../antd/lib/popover
|
|
32
33
|
// ../antd/lib/radio
|
|
33
34
|
// ../antd/lib/select
|
|
34
|
-
// ../antd/lib/spin
|
|
35
35
|
// ../antd/lib/switch
|
|
36
36
|
// ../antd/lib/tooltip
|
|
37
37
|
|
|
@@ -51,6 +51,7 @@ import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
|
51
51
|
import { Moment } from 'moment';
|
|
52
52
|
import { Dayjs } from 'dayjs';
|
|
53
53
|
import { PickerProps, RangePickerProps } from 'antd/es/date-picker/generatePicker';
|
|
54
|
+
import { SpinSize } from 'antd/lib/spin';
|
|
54
55
|
import { Descriptions } from 'antd';
|
|
55
56
|
import { DescriptionsProps } from 'antd/lib/descriptions';
|
|
56
57
|
import { DividerProps } from 'antd/lib/divider';
|
|
@@ -58,6 +59,7 @@ import { DrawerProps } from 'antd/lib/drawer';
|
|
|
58
59
|
import { DropDownProps } from 'antd/lib/dropdown';
|
|
59
60
|
import { TableProps } from 'antd';
|
|
60
61
|
import { Form } from 'antd';
|
|
62
|
+
import React, { ReactNode } from 'react';
|
|
61
63
|
import { ReactNode } from 'react';
|
|
62
64
|
import { HLHeaderButtonPropTypes } from 'src/HLHeaderButton';
|
|
63
65
|
import { HLHeaderSearchPropTypes } from 'src/HLHeaderSearch';
|
|
@@ -72,6 +74,7 @@ import { BreadcrumbProps } from 'antd';
|
|
|
72
74
|
import { PageHeaderProps } from 'antd/lib/page-header';
|
|
73
75
|
import { HLContextPropTypes } from 'src/HLContext';
|
|
74
76
|
import { PopoverProps } from 'antd/lib/popover';
|
|
77
|
+
import { ProgressProps } from 'antd';
|
|
75
78
|
import { RadioChangeEvent } from 'antd/lib/radio';
|
|
76
79
|
import { LabeledValue } from 'antd/lib/select';
|
|
77
80
|
import { SpinProps } from 'antd/lib/spin';
|
|
@@ -163,6 +166,7 @@ export type PanelPropTypes = CollapsePanelProps;
|
|
|
163
166
|
|
|
164
167
|
export const Panel: React.FC<PanelPropTypes>;
|
|
165
168
|
|
|
169
|
+
|
|
166
170
|
export interface HLCollapseInfoPanelPropTypes {
|
|
167
171
|
attributes: string[];
|
|
168
172
|
object: any;
|
|
@@ -171,6 +175,8 @@ export interface HLCollapseInfoPanelPropTypes {
|
|
|
171
175
|
isOpen?: boolean;
|
|
172
176
|
}
|
|
173
177
|
|
|
178
|
+
export const HLCollapseInfoPanel: React.FC<HLCollapseInfoPanelPropTypes>;
|
|
179
|
+
|
|
174
180
|
|
|
175
181
|
export interface EstabelecimentoOptions {
|
|
176
182
|
label: string;
|
|
@@ -279,6 +285,14 @@ export type HLRangePickerProps = RangeDatePickerProps & {
|
|
|
279
285
|
export const RangePicker: React.FC<HLRangePickerProps>;
|
|
280
286
|
|
|
281
287
|
|
|
288
|
+
export interface HLDeferredRenderPropTypes {
|
|
289
|
+
idleTimeout?: number;
|
|
290
|
+
spinSize?: SpinSize;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export const HLDeferredRender: React.FC<HLDeferredRenderPropTypes>;
|
|
294
|
+
|
|
295
|
+
|
|
282
296
|
export interface HLDescriptionsChildren {
|
|
283
297
|
Item: typeof Descriptions.Item;
|
|
284
298
|
}
|
|
@@ -376,6 +390,8 @@ export type HLFromToPanelTypes<P> = {
|
|
|
376
390
|
multiple?: boolean;
|
|
377
391
|
};
|
|
378
392
|
|
|
393
|
+
export const HLFromTo: React.FC<HLFromToProps>;
|
|
394
|
+
|
|
379
395
|
|
|
380
396
|
export interface HLHeaderPropTypes {
|
|
381
397
|
children: ReactNode;
|
|
@@ -495,25 +511,11 @@ export interface HLModulesMenuPropTypes {
|
|
|
495
511
|
export const HLModulesMenu: React.FC<HLModulesMenuPropTypes>;
|
|
496
512
|
|
|
497
513
|
|
|
498
|
-
interface DateObject {
|
|
499
|
-
chronology: any;
|
|
500
|
-
dayOfMonth: number;
|
|
501
|
-
dayOfWeek: string;
|
|
502
|
-
dayOfYear: number;
|
|
503
|
-
hour: number;
|
|
504
|
-
minute: number;
|
|
505
|
-
month: string;
|
|
506
|
-
monthValue: number;
|
|
507
|
-
nano: number;
|
|
508
|
-
second: number;
|
|
509
|
-
year: number;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
514
|
interface Notification {
|
|
513
515
|
title: string;
|
|
514
516
|
description: string;
|
|
515
517
|
type: string;
|
|
516
|
-
date:
|
|
518
|
+
date: number;
|
|
517
519
|
isVisualized: boolean;
|
|
518
520
|
link?: string;
|
|
519
521
|
onClick?: React.MouseEvent<HTMLElement>;
|
|
@@ -538,7 +540,6 @@ export interface HLNotificationPropTypes {
|
|
|
538
540
|
| 'rightBottom';
|
|
539
541
|
Link?: Link;
|
|
540
542
|
notifications?: Notification[];
|
|
541
|
-
markAsReadCallback: (notification: Record<string, string>) => void;
|
|
542
543
|
fetchNewNotifications: () => void;
|
|
543
544
|
showFormat: string;
|
|
544
545
|
refreshInterval: number;
|
|
@@ -547,25 +548,11 @@ export interface HLNotificationPropTypes {
|
|
|
547
548
|
export const HLNotification: React.FC<HLNotificationPropTypes>;
|
|
548
549
|
|
|
549
550
|
|
|
550
|
-
interface DateObject {
|
|
551
|
-
chronology: any;
|
|
552
|
-
dayOfMonth: number;
|
|
553
|
-
dayOfWeek: string;
|
|
554
|
-
dayOfYear: number;
|
|
555
|
-
hour: number;
|
|
556
|
-
minute: number;
|
|
557
|
-
month: string;
|
|
558
|
-
monthValue: number;
|
|
559
|
-
nano: number;
|
|
560
|
-
second: number;
|
|
561
|
-
year: number;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
551
|
interface Notification {
|
|
565
552
|
title: string;
|
|
566
553
|
description: string;
|
|
567
554
|
type: string;
|
|
568
|
-
date:
|
|
555
|
+
date: number;
|
|
569
556
|
isVisualized: boolean;
|
|
570
557
|
link?: string;
|
|
571
558
|
onClick?: React.MouseEvent<HTMLElement>;
|
|
@@ -573,9 +560,11 @@ interface Notification {
|
|
|
573
560
|
|
|
574
561
|
export interface NotificationListPropTypes {
|
|
575
562
|
Link?: Link;
|
|
576
|
-
onClickNotification
|
|
563
|
+
onClickNotification?: (unknown) => any;
|
|
577
564
|
notifications?: Notification[];
|
|
578
565
|
useDayjs?: boolean;
|
|
566
|
+
showNotifications: () => void;
|
|
567
|
+
hideNotifications: () => void;
|
|
579
568
|
}
|
|
580
569
|
|
|
581
570
|
export const NotificationList: React.FC<NotificationListPropTypes>;
|
|
@@ -618,6 +607,11 @@ export type HLPopoverPropTypes = PopoverProps;
|
|
|
618
607
|
export const HLPopover: React.FC<PopoverProps>;
|
|
619
608
|
|
|
620
609
|
|
|
610
|
+
export type HLProgressPropTypes = ProgressProps;
|
|
611
|
+
|
|
612
|
+
export const HLProgress: React.FC<HLProgressPropTypes>;
|
|
613
|
+
|
|
614
|
+
|
|
621
615
|
interface Options {
|
|
622
616
|
value?: string;
|
|
623
617
|
text?: string;
|
|
@@ -640,6 +634,8 @@ export interface HLRadioPropTypes {
|
|
|
640
634
|
options?: Options[];
|
|
641
635
|
}
|
|
642
636
|
|
|
637
|
+
export const HLRadio: React.FC<HLRadioPropTypes>;
|
|
638
|
+
|
|
643
639
|
|
|
644
640
|
export interface HLSelectPropTypes {
|
|
645
641
|
fieldKey: string;
|
|
@@ -666,10 +662,25 @@ export interface HLSelectPropTypes {
|
|
|
666
662
|
export const HLSelect: React.FC<HLSelectPropTypes>;
|
|
667
663
|
|
|
668
664
|
|
|
665
|
+
export type HLSideMenuItem = {
|
|
666
|
+
key: string;
|
|
667
|
+
title: string;
|
|
668
|
+
tooltip: string;
|
|
669
|
+
icon?: string;
|
|
670
|
+
href?: string;
|
|
671
|
+
subpages?: string[];
|
|
672
|
+
insideMenu?: boolean;
|
|
673
|
+
links?: HLSideMenuItem[];
|
|
674
|
+
definicaoId?: string;
|
|
675
|
+
showOnWelcomePage?: boolean;
|
|
676
|
+
description?: string;
|
|
677
|
+
undeveloped?: boolean;
|
|
678
|
+
};
|
|
679
|
+
|
|
669
680
|
export interface HLSideMenuPropTypes {
|
|
670
681
|
collapsed: boolean;
|
|
671
682
|
location: any;
|
|
672
|
-
subMenus:
|
|
683
|
+
subMenus: HLSideMenuItem[];
|
|
673
684
|
changeOpenKeys: (unknown) => unknown;
|
|
674
685
|
onOpenChange: (unknown) => unknown;
|
|
675
686
|
generateLink: (unknown, unknown, unknown) => any;
|
|
@@ -762,39 +773,70 @@ export const ModuleInfo: React.FC<ModuleInfoPropTypes>;
|
|
|
762
773
|
|
|
763
774
|
|
|
764
775
|
export {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
PowerSelectStoreInterface,
|
|
776
|
+
AdvancedPowerSelectStoreInterface,
|
|
777
|
+
HLAdvancedPowerSelect,
|
|
778
|
+
HLAlert,
|
|
779
|
+
HLArticle,
|
|
780
|
+
HLAssociateDisassociate,
|
|
781
|
+
HLBigDecimalInputNumber,
|
|
772
782
|
HLBreadcrumb,
|
|
773
|
-
|
|
783
|
+
HLButton,
|
|
784
|
+
HLCard,
|
|
785
|
+
HLCheckbox,
|
|
786
|
+
HLCode,
|
|
787
|
+
HLCollapse,
|
|
788
|
+
HLCollapseInfoPanel,
|
|
789
|
+
HLContext,
|
|
790
|
+
HLCpfCnpj,
|
|
774
791
|
HLDatePicker,
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
792
|
+
HLDeferredRender,
|
|
793
|
+
HLDescriptions,
|
|
794
|
+
HLDivider,
|
|
795
|
+
HLDrawer,
|
|
796
|
+
HLDropdown,
|
|
797
|
+
HLDropdownButton,
|
|
798
|
+
HLEditTable,
|
|
799
|
+
HLException,
|
|
800
|
+
HLForm,
|
|
782
801
|
HLFormAction,
|
|
783
|
-
HLAssociateDisassociate,
|
|
784
|
-
HLTag,
|
|
785
802
|
HLFormGroup,
|
|
803
|
+
HLFromTo,
|
|
804
|
+
HLHeader,
|
|
805
|
+
HLIcon,
|
|
806
|
+
HLInput,
|
|
807
|
+
HLInputMonetary,
|
|
808
|
+
HLInputNumber,
|
|
809
|
+
HLLayout,
|
|
810
|
+
HLMain,
|
|
811
|
+
HLMarkdown,
|
|
812
|
+
HLMenu,
|
|
813
|
+
HLModal,
|
|
814
|
+
HLPageHeader,
|
|
815
|
+
HLPopover,
|
|
816
|
+
HLPowerSearch,
|
|
817
|
+
HLPowerSelect,
|
|
818
|
+
HLProgress,
|
|
819
|
+
HLRadio,
|
|
820
|
+
HLSelect,
|
|
786
821
|
HLSelectMultiple,
|
|
822
|
+
HLSideMenu,
|
|
823
|
+
HLSpin,
|
|
824
|
+
HLSwitch,
|
|
825
|
+
HLTable,
|
|
826
|
+
HLTableDataLimitAlert,
|
|
787
827
|
HLTabs,
|
|
788
|
-
|
|
789
|
-
HLInputMonetary,
|
|
828
|
+
HLTag,
|
|
790
829
|
HLTagRounded,
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
830
|
+
HLTextArea,
|
|
831
|
+
HLTooltip,
|
|
832
|
+
HLTotalizer,
|
|
833
|
+
HLTree,
|
|
834
|
+
HLUserBox,
|
|
835
|
+
PowerSearchOperators,
|
|
836
|
+
PowerSelectStoreInterface,
|
|
837
|
+
SearchObject,
|
|
838
|
+
SearchType,
|
|
839
|
+
SelectStoreInterface,
|
|
798
840
|
};
|
|
799
841
|
|
|
800
842
|
declare module '*.module.css';
|
|
@@ -837,3 +879,489 @@ interface HLInputChildren {
|
|
|
837
879
|
|
|
838
880
|
export const HLInput: React.FC<HLInputPropTypes> & HLInputChildren;
|
|
839
881
|
|
|
882
|
+
|
|
883
|
+
export type HLAlertPropTypes = AlertProps;
|
|
884
|
+
|
|
885
|
+
export const HLAlert: React.FC<HLAlertPropTypes>;
|
|
886
|
+
|
|
887
|
+
export type HLArticleSection = {
|
|
888
|
+
key: string;
|
|
889
|
+
title: string;
|
|
890
|
+
content: ReactNode;
|
|
891
|
+
subsections?: HLArticleSection[];
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
export type HLArticlePropTypes = {
|
|
895
|
+
href: string;
|
|
896
|
+
title?: string;
|
|
897
|
+
sections: HLArticleSection[];
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
export const HLArticle: React.FC<HLArticlePropTypes>;
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
export type HLButtonPropTypes = ButtonProps & {
|
|
904
|
+
premium?: boolean;
|
|
905
|
+
tooltip?: string;
|
|
906
|
+
borderless?: boolean;
|
|
907
|
+
'data-cy'?: string;
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
export const HLButton: React.FC<HLButtonPropTypes>;
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
export interface HLCardPropTypes {
|
|
914
|
+
title?: string | React.ReactNode;
|
|
915
|
+
extra?: string | React.ReactNode;
|
|
916
|
+
loading?: boolean;
|
|
917
|
+
size?: 'default' | 'small';
|
|
918
|
+
type?: 'inner' | 'button';
|
|
919
|
+
cover?: React.ReactNode;
|
|
920
|
+
actions?: React.ReactNode[];
|
|
921
|
+
tabList?: CardTabListType[];
|
|
922
|
+
onTabChange?: (key: string) => void;
|
|
923
|
+
activeTabKey?: string;
|
|
924
|
+
defaultActiveTabKey?: string;
|
|
925
|
+
className?: string;
|
|
926
|
+
bordered?: boolean;
|
|
927
|
+
bodyStyle?: CSSProperties;
|
|
928
|
+
tabBarExtraContent?: React.ReactNode;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export const HLCard: React.FC<HLCardPropTypes> & { Meta: typeof Card.Meta };
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
export interface HLCheckboxPropTypes {
|
|
935
|
+
className?: string;
|
|
936
|
+
key?: any;
|
|
937
|
+
label?: string;
|
|
938
|
+
domainAttribute: any;
|
|
939
|
+
rules?: any[];
|
|
940
|
+
placeholder?: string;
|
|
941
|
+
form?: Record<string, any>;
|
|
942
|
+
initialValue?: boolean;
|
|
943
|
+
disabled?: boolean;
|
|
944
|
+
onChange?: (e: CheckboxChangeEvent) => void;
|
|
945
|
+
tooltip?: string;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export const HLCheckbox: React.FC<HLCheckboxPropTypes>;
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
export type HLCodePropTypes = SyntaxHighlighterProps & {
|
|
952
|
+
copyToClipboard?: boolean;
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
export const HLCode: React.FC<HLCodePropTypes>;
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
export type HLCollapsePropTypes = CollapseProps;
|
|
959
|
+
|
|
960
|
+
export const HLCollapse: React.FC<HLCollapsePropTypes> & { Panel: typeof Panel };
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
export interface HLCollapseInfoPanelPropTypes {
|
|
964
|
+
attributes: string[];
|
|
965
|
+
object: any;
|
|
966
|
+
title: string;
|
|
967
|
+
columns?: number;
|
|
968
|
+
isOpen?: boolean;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export const HLCollapseInfoPanel: React.FC<HLCollapseInfoPanelPropTypes>;
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
export type HLCpfCnpjPropTypes = HLInputPropTypes & {
|
|
975
|
+
type?: string;
|
|
976
|
+
keepFormat?: boolean;
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
export const HLCpfCnpj: React.FC<HLCpfCnpjPropTypes>;
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
export type DatePickerProps = {
|
|
983
|
+
useDayjs?: boolean;
|
|
984
|
+
} & PickerProps<Dayjs | Moment>;
|
|
985
|
+
|
|
986
|
+
export type HLDatePickerPropTypes = DatePickerProps & {
|
|
987
|
+
disableDateAfterThan?: Record<string, unknown>;
|
|
988
|
+
disableDateBeforeThan?: Record<string, unknown>;
|
|
989
|
+
disableDateRange?: any[];
|
|
990
|
+
disabled?: boolean;
|
|
991
|
+
form?: any;
|
|
992
|
+
initialValue?: any;
|
|
993
|
+
domainAttribute: string;
|
|
994
|
+
label?: string;
|
|
995
|
+
onChange?: (date: moment, dateString: string) => void;
|
|
996
|
+
placeholder?: string;
|
|
997
|
+
rules?: any[];
|
|
998
|
+
size?: SizeType;
|
|
999
|
+
format?: string;
|
|
1000
|
+
defaultPickerValue?: any;
|
|
1001
|
+
showTime?: boolean;
|
|
1002
|
+
key?: any;
|
|
1003
|
+
locale?: any;
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
export interface HLDatePickerChildren {
|
|
1007
|
+
MonthPicker: typeof MonthPicker;
|
|
1008
|
+
RangePicker: typeof RangePicker;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export const HLDatePicker: React.FC<HLDatePickerPropTypes> & HLDatePickerChildren;
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
export interface HLDeferredRenderPropTypes {
|
|
1015
|
+
idleTimeout?: number;
|
|
1016
|
+
spinSize?: SpinSize;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export const HLDeferredRender: React.FC<HLDeferredRenderPropTypes>;
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
export interface HLDescriptionsChildren {
|
|
1023
|
+
Item: typeof Descriptions.Item;
|
|
1024
|
+
}
|
|
1025
|
+
export type HLDescriptionsPropTypes = DescriptionsProps;
|
|
1026
|
+
|
|
1027
|
+
export const HLDescriptions: React.FC<HLDescriptionsPropTypes> & HLDescriptionsChildren;
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
export type HLDividerPropTypes = DividerProps;
|
|
1031
|
+
|
|
1032
|
+
export const HLDivider: React.FC<HLDividerPropTypes>;
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
export interface HLDrawerPropTypes extends DrawerProps {
|
|
1036
|
+
width?: string | number;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export const HLDrawer: React.FC<HLDrawerPropTypes>;
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
export type HLDropdownPropTypes = DropDownProps & {
|
|
1043
|
+
premium?: boolean;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
export const HLDropdown: React.FC<HLDropdownPropTypes>;
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
interface Menu {
|
|
1050
|
+
divider?: boolean;
|
|
1051
|
+
label?: string;
|
|
1052
|
+
link?: string;
|
|
1053
|
+
disabled?: boolean;
|
|
1054
|
+
query?: string;
|
|
1055
|
+
onClick?: React.MouseEvent<HTMLElement>;
|
|
1056
|
+
}
|
|
1057
|
+
export interface HLDropdownButtonPropTypes {
|
|
1058
|
+
menus: Menu[];
|
|
1059
|
+
icon?: string;
|
|
1060
|
+
label?: string;
|
|
1061
|
+
style?: React.CSSProperties;
|
|
1062
|
+
link?: any;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
export type HLEditTablePropTypes = TableProps & {
|
|
1069
|
+
handleSave: (row: any) => void;
|
|
1070
|
+
};
|
|
1071
|
+
export const HLEditTable: React.FC<HLEditTablePropTypes>;
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
export const HLForm: React.FC<typeof Form> & { Item: typeof Form.Item };
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
export interface HLFromToProps<L, R, T> {
|
|
1078
|
+
fromL: HLFromToPanelTypes<L>;
|
|
1079
|
+
fromR: HLFromToPanelTypes<R>;
|
|
1080
|
+
to: HLFromToPanelTypes<T>;
|
|
1081
|
+
tablesY: number;
|
|
1082
|
+
onAssociate: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => void;
|
|
1083
|
+
onDisassociate: (to?: T | T[]) => void;
|
|
1084
|
+
disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
|
|
1085
|
+
disabledDisassociate?: (to?: T | T[]) => boolean;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export type HLFromToPanelTypes<P> = {
|
|
1089
|
+
title?: string;
|
|
1090
|
+
newButton?: {
|
|
1091
|
+
label?: string;
|
|
1092
|
+
disabled?: boolean;
|
|
1093
|
+
onClick: (e) => void;
|
|
1094
|
+
};
|
|
1095
|
+
table?: {
|
|
1096
|
+
loading?: boolean;
|
|
1097
|
+
columns: Record<string, unknown>;
|
|
1098
|
+
dataSource: Record<string, unknown>[];
|
|
1099
|
+
loadMore?: Record<string, unknown>;
|
|
1100
|
+
onSelect?: (selectedRows?: P | P[]) => void;
|
|
1101
|
+
};
|
|
1102
|
+
powerSearch?: {
|
|
1103
|
+
columns: Record<string, unknown>;
|
|
1104
|
+
onSubmit: (params) => void;
|
|
1105
|
+
};
|
|
1106
|
+
custom?: {
|
|
1107
|
+
label: string;
|
|
1108
|
+
};
|
|
1109
|
+
footer?: ReactNode;
|
|
1110
|
+
multiple?: boolean;
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
export const HLFromTo: React.FC<HLFromToProps>;
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
export interface HLHeaderPropTypes {
|
|
1117
|
+
children: ReactNode;
|
|
1118
|
+
collapsed: boolean;
|
|
1119
|
+
collapsedClick: () => unknown;
|
|
1120
|
+
headerSearch?: HLHeaderSearchPropTypes;
|
|
1121
|
+
moduleName: string;
|
|
1122
|
+
modulesMenu?: HLModulesMenuPropTypes;
|
|
1123
|
+
notifications: HLNotificationPropTypes;
|
|
1124
|
+
userBox?: HLUserBoxPropTypes;
|
|
1125
|
+
headerButtons?: HLHeaderButtonPropTypes[];
|
|
1126
|
+
healthCheck?: HLHealthCheck;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export const HLHeader: React.FC<HLHeaderPropTypes>;
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
export interface HLInputMonetaryPropTypes {
|
|
1133
|
+
key?: any;
|
|
1134
|
+
label?: string;
|
|
1135
|
+
disabled?: boolean;
|
|
1136
|
+
domainAttribute: string;
|
|
1137
|
+
form?: Record<string, any>;
|
|
1138
|
+
initialValue?: string | number;
|
|
1139
|
+
placeholder?: string;
|
|
1140
|
+
size?: 'large' | 'middle' | 'small';
|
|
1141
|
+
rules?: any[];
|
|
1142
|
+
min?: number;
|
|
1143
|
+
max?: number;
|
|
1144
|
+
ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
|
|
1145
|
+
style?: React.CSSProperties;
|
|
1146
|
+
precision?: number;
|
|
1147
|
+
stringMode?: boolean;
|
|
1148
|
+
onChange?: (event: any) => void;
|
|
1149
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
1150
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
export const HLInputMonetary: React.FC<HLInputMonetaryPropTypes>;
|
|
1154
|
+
|
|
1155
|
+
export interface HLMainPropTypes {
|
|
1156
|
+
className?: string;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
export const HLMain: React.FC<HLMainPropTypes>;
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
export type HLMarkdownPropTypes = ReactMarkdownOptions;
|
|
1163
|
+
|
|
1164
|
+
export const HLMarkdown: React.FC<HLMarkdownPropTypes>;
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
interface Context {
|
|
1168
|
+
label: string;
|
|
1169
|
+
value?: any;
|
|
1170
|
+
render?: (unknown) => unknown;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
interface ContextInfo {
|
|
1174
|
+
columns?: number;
|
|
1175
|
+
context?: Context[];
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
interface Path {
|
|
1179
|
+
link: string;
|
|
1180
|
+
title: string;
|
|
1181
|
+
icon: string;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
interface BreadcrumbPath {
|
|
1185
|
+
paths: Path[];
|
|
1186
|
+
link: Link;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export type HLPageHeaderPropTypes = PageHeaderProps & {
|
|
1190
|
+
context?: HLContextPropTypes;
|
|
1191
|
+
breadcrumbPaths?: BreadcrumbPath;
|
|
1192
|
+
contextInfo?: ContextInfo;
|
|
1193
|
+
title?: React.ReactNode;
|
|
1194
|
+
breadcrumb?: BreadcrumbProps;
|
|
1195
|
+
};
|
|
1196
|
+
export const HLPageHeader: React.FC<HLPageHeaderPropTypes>;
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
export type HLPopoverPropTypes = PopoverProps;
|
|
1200
|
+
|
|
1201
|
+
export const HLPopover: React.FC<PopoverProps>;
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
export type HLProgressPropTypes = ProgressProps;
|
|
1205
|
+
|
|
1206
|
+
export const HLProgress: React.FC<HLProgressPropTypes>;
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
interface Options {
|
|
1210
|
+
value?: string;
|
|
1211
|
+
text?: string;
|
|
1212
|
+
disabled?: boolean;
|
|
1213
|
+
style?: any;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
export interface HLRadioPropTypes {
|
|
1217
|
+
className?: string;
|
|
1218
|
+
columns?: number;
|
|
1219
|
+
key?: any;
|
|
1220
|
+
label?: string;
|
|
1221
|
+
domainAttribute: any;
|
|
1222
|
+
rules?: any[];
|
|
1223
|
+
form?: Record<string, any>;
|
|
1224
|
+
initialValue?: boolean;
|
|
1225
|
+
disabled?: boolean;
|
|
1226
|
+
onChange?: (e: RadioChangeEvent) => void;
|
|
1227
|
+
size?: 'large' | 'middle' | 'small';
|
|
1228
|
+
options?: Options[];
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export const HLRadio: React.FC<HLRadioPropTypes>;
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
export interface HLSelectPropTypes {
|
|
1235
|
+
fieldKey: string;
|
|
1236
|
+
initialValue?: string[];
|
|
1237
|
+
onChange?: (value: string[] | string | number | LabeledValue, option: any) => void;
|
|
1238
|
+
onSelect?: (value: string | number | LabeledValue, option: any) => void;
|
|
1239
|
+
onDeselect?: (value: string | number | LabeledValue, option: any) => void;
|
|
1240
|
+
store: PowerSelectStoreInterface;
|
|
1241
|
+
itemKey: string;
|
|
1242
|
+
itemValue?: string;
|
|
1243
|
+
itemLabels: string[];
|
|
1244
|
+
form: Record<string, any>;
|
|
1245
|
+
rules?: any[];
|
|
1246
|
+
label?: string;
|
|
1247
|
+
style?: Record<string, any>;
|
|
1248
|
+
placeholder?: string;
|
|
1249
|
+
notContentMessage?: string;
|
|
1250
|
+
mode?: 'multiple' | 'tags';
|
|
1251
|
+
disabled?: boolean;
|
|
1252
|
+
showSearch?: boolean;
|
|
1253
|
+
allowClear?: boolean;
|
|
1254
|
+
onClear?: () => void;
|
|
1255
|
+
}
|
|
1256
|
+
export const HLSelect: React.FC<HLSelectPropTypes>;
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
export type HLSideMenuItem = {
|
|
1260
|
+
key: string;
|
|
1261
|
+
title: string;
|
|
1262
|
+
tooltip: string;
|
|
1263
|
+
icon?: string;
|
|
1264
|
+
href?: string;
|
|
1265
|
+
subpages?: string[];
|
|
1266
|
+
insideMenu?: boolean;
|
|
1267
|
+
links?: HLSideMenuItem[];
|
|
1268
|
+
definicaoId?: string;
|
|
1269
|
+
showOnWelcomePage?: boolean;
|
|
1270
|
+
description?: string;
|
|
1271
|
+
undeveloped?: boolean;
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
export interface HLSideMenuPropTypes {
|
|
1275
|
+
collapsed: boolean;
|
|
1276
|
+
location: any;
|
|
1277
|
+
subMenus: HLSideMenuItem[];
|
|
1278
|
+
changeOpenKeys: (unknown) => unknown;
|
|
1279
|
+
onOpenChange: (unknown) => unknown;
|
|
1280
|
+
generateLink: (unknown, unknown, unknown) => any;
|
|
1281
|
+
allowsAccessByUrl: (unknown) => unknown;
|
|
1282
|
+
changeCollapsedState: (unknown) => unknown;
|
|
1283
|
+
openKeys: any[];
|
|
1284
|
+
baseboardLogoPath?: string;
|
|
1285
|
+
baseboardText?: string;
|
|
1286
|
+
menuLogoPath: string;
|
|
1287
|
+
menuCollapsedLogoPath?: string;
|
|
1288
|
+
link?: Link;
|
|
1289
|
+
homePath: string;
|
|
1290
|
+
singleActiveMenu?: boolean;
|
|
1291
|
+
}
|
|
1292
|
+
export const HLSideMenu: React.FC<HLSideMenuPropTypes>;
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
export type HLSpinPropTypes = SpinProps & {
|
|
1296
|
+
centralized?: boolean;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
export const HLSpin: React.FC<HLSpinPropTypes>;
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
export const HLSwitch: React.FC<SwitchProps>;
|
|
1303
|
+
|
|
1304
|
+
export interface HLTextAreaProptypes {
|
|
1305
|
+
autosize?: { maxRows?: number; minRows?: number };
|
|
1306
|
+
disabled?: boolean;
|
|
1307
|
+
domainAttribute: any;
|
|
1308
|
+
form?: Record<string, any>;
|
|
1309
|
+
initialValue?: string;
|
|
1310
|
+
key?: any;
|
|
1311
|
+
label?: string;
|
|
1312
|
+
maxLength?: number;
|
|
1313
|
+
onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
1314
|
+
placeholder?: string;
|
|
1315
|
+
rules?: any[];
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export const HLTextArea: React.FC<HLTextAreaProptypes>;
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
export const HLTooltip: React.FC<TooltipProps>;
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
export type HLTotalizerSize = 'default' | 'big';
|
|
1325
|
+
|
|
1326
|
+
export interface HLTotalizerPropTypes {
|
|
1327
|
+
key?: string;
|
|
1328
|
+
className?: string;
|
|
1329
|
+
title: string;
|
|
1330
|
+
subtitle?: string;
|
|
1331
|
+
content?: string | React.ReactNode;
|
|
1332
|
+
value: string;
|
|
1333
|
+
footer?: React.ReactNode;
|
|
1334
|
+
active?: boolean;
|
|
1335
|
+
disabled?: boolean;
|
|
1336
|
+
activeColor?: string;
|
|
1337
|
+
size?: HLTotalizerSize;
|
|
1338
|
+
flagColor?: string;
|
|
1339
|
+
onClick?: (e: any) => void;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export const HLTotalizer: React.FC<HLTotalizerPropTypes>;
|
|
1343
|
+
|
|
1344
|
+
interface User {
|
|
1345
|
+
name?: string;
|
|
1346
|
+
avatar?: string;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export interface HLUserBoxPropTypes {
|
|
1350
|
+
options?: any[];
|
|
1351
|
+
user?: User;
|
|
1352
|
+
logout?: (unknown) => unknown;
|
|
1353
|
+
tenant?: string;
|
|
1354
|
+
moduleInfo?: ModuleInfo;
|
|
1355
|
+
sysStatus?: any;
|
|
1356
|
+
}
|
|
1357
|
+
export const HLUserBox: React.FC<HLUserBoxPropTypes>;
|
|
1358
|
+
|
|
1359
|
+
export interface ModuleInfoPropTypes {
|
|
1360
|
+
name: string;
|
|
1361
|
+
version: string;
|
|
1362
|
+
buildDate: Date;
|
|
1363
|
+
description?: ReactNode;
|
|
1364
|
+
thirdPartyLibrariesInfo?: [{ name: string; version?: string; description?: ReactNode }];
|
|
1365
|
+
}
|
|
1366
|
+
export const ModuleInfo: React.FC<ModuleInfoPropTypes>;
|
|
1367
|
+
|