ados-rcm 1.1.457 → 1.1.458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AModule/AComponents/ABase/ABase.d.ts +21 -21
- package/dist/AModule/AComponents/AButton/AButton.d.ts +6 -6
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +6 -6
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +6 -6
- package/dist/AModule/AComponents/AChip/AChip.d.ts +24 -24
- package/dist/AModule/AComponents/AClock/AClock.d.ts +21 -21
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +36 -36
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +15 -15
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +93 -93
- package/dist/AModule/AComponents/AEditor/AEditor.d.ts +21 -14
- package/dist/AModule/AComponents/AEditor/modules/TableUI.d.ts +2 -2
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +24 -24
- package/dist/AModule/AComponents/AFileUploder/AFileUploader.d.ts +7 -7
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +35 -35
- package/dist/AModule/AComponents/AFrame/AFrame.d.ts +45 -45
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +1 -1
- package/dist/AModule/AComponents/AInput/AInput.d.ts +45 -45
- package/dist/AModule/AComponents/AInput/ANumInput.d.ts +3 -3
- package/dist/AModule/AComponents/AListView/AListView.d.ts +26 -26
- package/dist/AModule/AComponents/AProgressBar/AProgressBar.d.ts +27 -27
- package/dist/AModule/AComponents/ARadioSelect/ARadioSelect.d.ts +5 -5
- package/dist/AModule/AComponents/ASelect/AMultiSelect.d.ts +39 -39
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +39 -39
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +12 -12
- package/dist/AModule/AComponents/ATab/ATab.d.ts +36 -36
- package/dist/AModule/AComponents/ATable/ATable.d.ts +281 -281
- package/dist/AModule/AComponents/ATable/ATableBody.d.ts +19 -19
- package/dist/AModule/AComponents/ATable/ATableFilter.d.ts +5 -5
- package/dist/AModule/AComponents/ATable/ATableFooter.d.ts +4 -4
- package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +12 -12
- package/dist/AModule/AComponents/AText/AText.d.ts +6 -6
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +36 -36
- package/dist/AModule/AComponents/ATheme/ATheme.d.ts +10 -10
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +15 -15
- package/dist/AModule/AComponents/ATree/ATree.d.ts +111 -111
- package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +25 -25
- package/dist/AModule/AComponents/ATree/ATreeSearch.d.ts +7 -7
- package/dist/AModule/AComponents/ATypes/ATypes.d.ts +8 -8
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +21 -21
- package/dist/AModule/AHooks/useDB.d.ts +1 -1
- package/dist/AModule/ANetwork/APIContext.d.ts +6 -6
- package/dist/AModule/AUtils/bound.d.ts +3 -3
- package/dist/AModule/AUtils/dbF.d.ts +1 -1
- package/dist/index.cjs.js +115 -115
- package/dist/index.es.js +7161 -7095
- package/package.json +12 -10
@@ -1,15 +1,20 @@
|
|
1
1
|
import { IAProgressBarProps } from '../AProgressBar/AProgressBar';
|
2
2
|
import { EDir4 } from '../ATypes/ATypes';
|
3
3
|
export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
|
4
|
-
className?: string;
|
5
|
-
style?: React.CSSProperties;
|
6
|
-
children?: React.ReactNode;
|
7
4
|
/**
|
8
5
|
* abaseRef? : React.RefObject<HTMLDivElement>
|
9
6
|
*
|
10
7
|
* Description : ref of ABase
|
11
8
|
*/
|
12
9
|
abaseRef?: React.RefObject<HTMLDivElement>;
|
10
|
+
children?: React.ReactNode;
|
11
|
+
className?: string;
|
12
|
+
/**
|
13
|
+
* isDimmed? : boolean
|
14
|
+
*
|
15
|
+
* Description : if truthy, dimming is applied.
|
16
|
+
*/
|
17
|
+
isDimmed?: boolean;
|
13
18
|
/**
|
14
19
|
* isDisabled? : boolean | string
|
15
20
|
*
|
@@ -23,23 +28,24 @@ export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
|
|
23
28
|
*/
|
24
29
|
isLoading?: boolean;
|
25
30
|
/**
|
26
|
-
*
|
31
|
+
* progress? : number
|
27
32
|
*
|
28
|
-
* Description : if
|
33
|
+
* Description : if provided, shows a progress bar with the given percentage during loading state
|
29
34
|
*/
|
30
|
-
|
35
|
+
progress?: number;
|
31
36
|
/**
|
32
|
-
*
|
37
|
+
* progressProps? : Omit<IAProgressBarProps, 'progress'>;
|
33
38
|
*
|
34
|
-
* Description :
|
39
|
+
* Description : props of the progress bar
|
35
40
|
*/
|
36
|
-
|
41
|
+
progressProps?: Omit<IAProgressBarProps, 'progress'>;
|
42
|
+
style?: React.CSSProperties;
|
37
43
|
/**
|
38
|
-
*
|
44
|
+
* tooltip? : React.ReactNode
|
39
45
|
*
|
40
|
-
* Description :
|
46
|
+
* Description : tooltip. if tooltip is truthy, tooltip is shown.
|
41
47
|
*/
|
42
|
-
|
48
|
+
tooltip?: React.ReactNode;
|
43
49
|
/**
|
44
50
|
* tooltipDelay? : number
|
45
51
|
*
|
@@ -53,17 +59,11 @@ export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
|
|
53
59
|
*/
|
54
60
|
tooltipDirection?: EDir4;
|
55
61
|
/**
|
56
|
-
*
|
57
|
-
*
|
58
|
-
* Description : if provided, shows a progress bar with the given percentage during loading state
|
59
|
-
*/
|
60
|
-
progress?: number;
|
61
|
-
/**
|
62
|
-
* progressProps? : Omit<IAProgressBarProps, 'progress'>;
|
62
|
+
* tooltipDistance? : number = 10
|
63
63
|
*
|
64
|
-
* Description :
|
64
|
+
* Description : distance in pixels between tooltip and target.
|
65
65
|
*/
|
66
|
-
|
66
|
+
tooltipDistance?: number;
|
67
67
|
}
|
68
68
|
/**
|
69
69
|
* AComponent : ABase
|
@@ -2,18 +2,18 @@ import { IABaseProps } from '../ABase/ABase';
|
|
2
2
|
export declare const AButtonTypes: readonly ["Primary", "Secondary", "Alter", "Raw"];
|
3
3
|
export type TAButtonTypes = (typeof AButtonTypes)[number];
|
4
4
|
export interface IAButtonProps extends IABaseProps {
|
5
|
-
/**
|
6
|
-
* type? : TAButtonType = 'Primary'
|
7
|
-
*
|
8
|
-
* Description : type of IAButton
|
9
|
-
*/
|
10
|
-
type?: TAButtonTypes;
|
11
5
|
/**
|
12
6
|
* noInteractive? : boolean = false
|
13
7
|
*
|
14
8
|
* Description : if true, the button is not interactive
|
15
9
|
*/
|
16
10
|
noInteractive?: boolean;
|
11
|
+
/**
|
12
|
+
* type? : TAButtonType = 'Primary'
|
13
|
+
*
|
14
|
+
* Description : type of IAButton
|
15
|
+
*/
|
16
|
+
type?: TAButtonTypes;
|
17
17
|
}
|
18
18
|
/**
|
19
19
|
* AComponent : AButton
|
@@ -9,18 +9,18 @@ export interface IAIconButtonProps extends IABaseProps {
|
|
9
9
|
* Description : icon of AIconButton. if 'none', no icon is set as default.
|
10
10
|
*/
|
11
11
|
icon: TIcons | Exclude<React.ReactNode, string>;
|
12
|
-
/**
|
13
|
-
* type? : TAIconButtonTypes = 'Primary'
|
14
|
-
*
|
15
|
-
* Description : type of AIconButton
|
16
|
-
*/
|
17
|
-
type?: TAIconButtonTypes;
|
18
12
|
/**
|
19
13
|
* iconSize? : number
|
20
14
|
*
|
21
15
|
* Description : size of icon.
|
22
16
|
*/
|
23
17
|
iconSize?: TIconSize;
|
18
|
+
/**
|
19
|
+
* type? : TAIconButtonTypes = 'Primary'
|
20
|
+
*
|
21
|
+
* Description : type of AIconButton
|
22
|
+
*/
|
23
|
+
type?: TAIconButtonTypes;
|
24
24
|
}
|
25
25
|
/**
|
26
26
|
* AComponent : AIconButton
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { TUseValues } from '../../AHooks/useValues';
|
2
2
|
import { IABaseProps } from '../ABase/ABase';
|
3
3
|
export interface IACheckBoxProps extends IABaseProps {
|
4
|
-
/**
|
5
|
-
* useCheck? : TUseValues<any>
|
6
|
-
*
|
7
|
-
* Description : [useCheck, setUseCheck] = useValues of ACheckBox. if useCheck is truthy, ACheckBox is checked.
|
8
|
-
*/
|
9
|
-
useCheck?: TUseValues<any>;
|
10
4
|
/**
|
11
5
|
* isIndeterminate? : boolean
|
12
6
|
*
|
13
7
|
* Description : if true, ACheckBox is indeterminate. priority is higher than useCheck.
|
14
8
|
*/
|
15
9
|
isIndeterminate?: boolean;
|
10
|
+
/**
|
11
|
+
* useCheck? : TUseValues<any>
|
12
|
+
*
|
13
|
+
* Description : [useCheck, setUseCheck] = useValues of ACheckBox. if useCheck is truthy, ACheckBox is checked.
|
14
|
+
*/
|
15
|
+
useCheck?: TUseValues<any>;
|
16
16
|
}
|
17
17
|
/**
|
18
18
|
* AComponent : ACheckBox
|
@@ -4,12 +4,6 @@ import { TCanCallback } from '../../AUtils/cbF';
|
|
4
4
|
import { IABaseProps } from '../ABase/ABase';
|
5
5
|
import { TIcons } from '../AIcon/AIcon';
|
6
6
|
export interface IAChipsProps<T> extends IAChipInheritProps<T>, IABaseProps {
|
7
|
-
/**
|
8
|
-
* useValue? : TUseValues<T[]>
|
9
|
-
*
|
10
|
-
* Description : useValue of AChips
|
11
|
-
*/
|
12
|
-
useLabels?: TUseValues<T[]>;
|
13
7
|
/**
|
14
8
|
* alignItems? : React.CSSProperties['alignItems'] = 'flex-start'
|
15
9
|
*
|
@@ -22,14 +16,20 @@ export interface IAChipsProps<T> extends IAChipInheritProps<T>, IABaseProps {
|
|
22
16
|
* Description : gap between chips
|
23
17
|
*/
|
24
18
|
gap?: number;
|
19
|
+
/**
|
20
|
+
* useValue? : TUseValues<T[]>
|
21
|
+
*
|
22
|
+
* Description : useValue of AChips
|
23
|
+
*/
|
24
|
+
useLabels?: TUseValues<T[]>;
|
25
25
|
}
|
26
26
|
export interface IAChipInheritProps<T> {
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* ButtonRenderer? : (props: IAChipProps<T>) => React.ReactNode
|
29
29
|
*
|
30
|
-
* Description :
|
30
|
+
* Description : ButtonRenderer of AChip, default cancel icon's width, height are 14px
|
31
31
|
*/
|
32
|
-
|
32
|
+
ButtonRenderer?: (props: IAChipProps<T>) => React.ReactNode;
|
33
33
|
/**
|
34
34
|
* ChipClassName? : string
|
35
35
|
*
|
@@ -37,11 +37,11 @@ export interface IAChipInheritProps<T> {
|
|
37
37
|
*/
|
38
38
|
ChipClassName?: TCanCallback<IAChipProps<T>, string>;
|
39
39
|
/**
|
40
|
-
*
|
40
|
+
* ChipIcon? : TIcons | Exclude<React.ReactNode, string>
|
41
41
|
*
|
42
|
-
* Description :
|
42
|
+
* Description : icon of AChip
|
43
43
|
*/
|
44
|
-
|
44
|
+
ChipIcon?: TCanCallback<IAChipProps<T>, TIcons | Exclude<React.ReactNode, string>>;
|
45
45
|
/**
|
46
46
|
* ChipOnClick? : (props: IAChipProps<T>) => void
|
47
47
|
*
|
@@ -49,17 +49,17 @@ export interface IAChipInheritProps<T> {
|
|
49
49
|
*/
|
50
50
|
ChipOnClick?: (props: IAChipProps<T>) => void;
|
51
51
|
/**
|
52
|
-
*
|
52
|
+
* ChipOnDelete?: (props: IAChipProps<T>) => void
|
53
53
|
*
|
54
|
-
* Description :
|
54
|
+
* Description : onDelete of AChip
|
55
55
|
*/
|
56
|
-
|
56
|
+
ChipOnDelete?: (props: IAChipProps<T>) => void;
|
57
57
|
/**
|
58
|
-
*
|
58
|
+
* ChipStyle? : React.CSSProperties
|
59
59
|
*
|
60
|
-
* Description :
|
60
|
+
* Description : style of AChip
|
61
61
|
*/
|
62
|
-
|
62
|
+
ChipStyle?: TCanCallback<IAChipProps<T>, React.CSSProperties>;
|
63
63
|
}
|
64
64
|
export declare const AChips: <T>(props: IAChipsProps<T>) => React.ReactNode;
|
65
65
|
interface IAChipBaseProps<T> {
|
@@ -84,11 +84,11 @@ export interface IAChipProps<T> extends IAChipBaseProps<T>, IABaseProps {
|
|
84
84
|
*/
|
85
85
|
ButtonRenderer?: (props: IAChipProps<T>) => React.ReactNode;
|
86
86
|
/**
|
87
|
-
*
|
87
|
+
* icon? : TIcons | Exclude<React.ReactNode, string> = 'Close'
|
88
88
|
*
|
89
|
-
* Description :
|
89
|
+
* Description : icon of the AChip, default cancel icon's width, height are 14px
|
90
90
|
*/
|
91
|
-
|
91
|
+
icon?: TIcons | Exclude<React.ReactNode, string>;
|
92
92
|
/**
|
93
93
|
* onDelete?: (props: IAChipBaseProps<T>) => void
|
94
94
|
*
|
@@ -96,11 +96,11 @@ export interface IAChipProps<T> extends IAChipBaseProps<T>, IABaseProps {
|
|
96
96
|
*/
|
97
97
|
onDelete?: (props: IAChipBaseProps<T>) => void;
|
98
98
|
/**
|
99
|
-
*
|
99
|
+
* width? : number | string = 'auto'
|
100
100
|
*
|
101
|
-
* Description :
|
101
|
+
* Description : width of the AChip
|
102
102
|
*/
|
103
|
-
|
103
|
+
width?: number | string;
|
104
104
|
}
|
105
105
|
export declare const AChip: <T>(props: IAChipProps<T>) => React.ReactElement;
|
106
106
|
export {};
|
@@ -3,18 +3,6 @@ import { IABaseProps } from '../ABase/ABase';
|
|
3
3
|
import { TActionRef } from '../ATypes/ATypes';
|
4
4
|
import { IAWrapProps } from '../AWrap/AWrap';
|
5
5
|
export interface IAClockActions {
|
6
|
-
/**
|
7
|
-
* start : () => void
|
8
|
-
*
|
9
|
-
* Description : start clock running
|
10
|
-
*/
|
11
|
-
start: () => void;
|
12
|
-
/**
|
13
|
-
* stop : () => void
|
14
|
-
*
|
15
|
-
* Description : stop clock running
|
16
|
-
*/
|
17
|
-
stop: () => void;
|
18
6
|
/**
|
19
7
|
* reset : () => void
|
20
8
|
*
|
@@ -27,14 +15,26 @@ export interface IAClockActions {
|
|
27
15
|
* Description : set clock's tick to specified number
|
28
16
|
*/
|
29
17
|
setTicks: (ticks: number) => void;
|
18
|
+
/**
|
19
|
+
* start : () => void
|
20
|
+
*
|
21
|
+
* Description : start clock running
|
22
|
+
*/
|
23
|
+
start: () => void;
|
24
|
+
/**
|
25
|
+
* stop : () => void
|
26
|
+
*
|
27
|
+
* Description : stop clock running
|
28
|
+
*/
|
29
|
+
stop: () => void;
|
30
30
|
}
|
31
31
|
export interface IAClockProps extends IAWrapProps, IABaseProps {
|
32
32
|
/**
|
33
|
-
*
|
33
|
+
* actionRef? : TActionRef<IAClockActions>
|
34
34
|
*
|
35
|
-
* Description :
|
35
|
+
* Description : actionRef of AClock
|
36
36
|
*/
|
37
|
-
|
37
|
+
actionRef?: TActionRef<IAClockActions>;
|
38
38
|
/**
|
39
39
|
* interval? : number = 1000
|
40
40
|
*
|
@@ -42,11 +42,11 @@ export interface IAClockProps extends IAWrapProps, IABaseProps {
|
|
42
42
|
*/
|
43
43
|
interval?: number;
|
44
44
|
/**
|
45
|
-
*
|
45
|
+
* maxTicks? : number = 300
|
46
46
|
*
|
47
|
-
* Description :
|
47
|
+
* Description : maxTicks of AClock
|
48
48
|
*/
|
49
|
-
|
49
|
+
maxTicks?: number;
|
50
50
|
/**
|
51
51
|
* noStartOnRender? : boolean
|
52
52
|
*
|
@@ -54,11 +54,11 @@ export interface IAClockProps extends IAWrapProps, IABaseProps {
|
|
54
54
|
*/
|
55
55
|
noStartOnRender?: boolean;
|
56
56
|
/**
|
57
|
-
*
|
57
|
+
* onFinish? : () => void
|
58
58
|
*
|
59
|
-
* Description :
|
59
|
+
* Description : onFinish of AClock
|
60
60
|
*/
|
61
|
-
|
61
|
+
onFinish?: () => void;
|
62
62
|
}
|
63
63
|
/**
|
64
64
|
* AComponent : AClock
|
@@ -5,18 +5,18 @@ import { EDir12, TActionRef } from '../ATypes/ATypes';
|
|
5
5
|
export declare const ADatePickerTypes: readonly ["Primary", "Secondary", "Raw"];
|
6
6
|
export type TADatePickerTypes = (typeof ADatePickerTypes)[number];
|
7
7
|
export interface IADatePickerActions {
|
8
|
-
/**
|
9
|
-
* open : () => void
|
10
|
-
*
|
11
|
-
* Description : opens calendar when called
|
12
|
-
*/
|
13
|
-
open: () => void;
|
14
8
|
/**
|
15
9
|
* close : () => void
|
16
10
|
*
|
17
11
|
* Description : closes calendar when called
|
18
12
|
*/
|
19
13
|
close: () => void;
|
14
|
+
/**
|
15
|
+
* open : () => void
|
16
|
+
*
|
17
|
+
* Description : opens calendar when called
|
18
|
+
*/
|
19
|
+
open: () => void;
|
20
20
|
/**
|
21
21
|
* toggle : () => void
|
22
22
|
*
|
@@ -26,35 +26,35 @@ export interface IADatePickerActions {
|
|
26
26
|
}
|
27
27
|
export interface IADatePickerProps extends IABaseProps {
|
28
28
|
/**
|
29
|
-
*
|
29
|
+
* LeftAddon? : React.ReactNode
|
30
30
|
*
|
31
|
-
* Description :
|
31
|
+
* Description : LeftAddon of ADatePicker
|
32
32
|
*/
|
33
|
-
|
33
|
+
LeftAddon?: React.ReactNode;
|
34
34
|
/**
|
35
|
-
*
|
35
|
+
* RightAddon? : React.ReactNode
|
36
36
|
*
|
37
|
-
* Description :
|
37
|
+
* Description : RightAddon of ADatePicker
|
38
38
|
*/
|
39
|
-
|
39
|
+
RightAddon?: React.ReactNode;
|
40
40
|
/**
|
41
|
-
*
|
41
|
+
* actionRef? : TActionRef<IADatePickerActions>
|
42
42
|
*
|
43
|
-
* Description :
|
43
|
+
* Description : actionRef of ADatePicker
|
44
44
|
*/
|
45
|
-
|
45
|
+
actionRef?: TActionRef<IADatePickerActions>;
|
46
46
|
/**
|
47
|
-
*
|
47
|
+
* className? : string
|
48
48
|
*
|
49
|
-
* Description :
|
49
|
+
* Description : className of ADatePicker
|
50
50
|
*/
|
51
|
-
|
51
|
+
className?: string;
|
52
52
|
/**
|
53
|
-
*
|
53
|
+
* maxDate? : Date = new Date(new Date().getFullYear() + 1, new Date().getMonth(), new Date().getDate())
|
54
54
|
*
|
55
|
-
* Description :
|
55
|
+
* Description : maximum date of ADatePicker. default is a year later from now
|
56
56
|
*/
|
57
|
-
|
57
|
+
maxDate?: Date;
|
58
58
|
/**
|
59
59
|
* minDate? : Date = new Date(new Date().getFullYear() - 1, new Date().getMonth(), new Date().getDate())
|
60
60
|
*
|
@@ -62,11 +62,11 @@ export interface IADatePickerProps extends IABaseProps {
|
|
62
62
|
*/
|
63
63
|
minDate?: Date;
|
64
64
|
/**
|
65
|
-
*
|
65
|
+
* noClearButton? : boolean
|
66
66
|
*
|
67
|
-
* Description :
|
67
|
+
* Description : if true, clear button is not shown
|
68
68
|
*/
|
69
|
-
|
69
|
+
noClearButton?: boolean;
|
70
70
|
/**
|
71
71
|
* placeholder? : string
|
72
72
|
*
|
@@ -74,17 +74,11 @@ export interface IADatePickerProps extends IABaseProps {
|
|
74
74
|
*/
|
75
75
|
placeholder?: string;
|
76
76
|
/**
|
77
|
-
*
|
78
|
-
*
|
79
|
-
* Description : LeftAddon of ADatePicker
|
80
|
-
*/
|
81
|
-
LeftAddon?: React.ReactNode;
|
82
|
-
/**
|
83
|
-
* RightAddon? : React.ReactNode
|
77
|
+
* position? : EDir12 = EDir12.SE
|
84
78
|
*
|
85
|
-
* Description :
|
79
|
+
* Description : position of calendar
|
86
80
|
*/
|
87
|
-
|
81
|
+
position?: EDir12;
|
88
82
|
/**
|
89
83
|
* resources? : Partial<typeof Resources.ADatePicker>
|
90
84
|
*
|
@@ -92,11 +86,17 @@ export interface IADatePickerProps extends IABaseProps {
|
|
92
86
|
*/
|
93
87
|
resources?: Partial<typeof Resources.ADatePicker>;
|
94
88
|
/**
|
95
|
-
*
|
89
|
+
* type? : TADatePickerTypes = 'Primary'
|
96
90
|
*
|
97
|
-
* Description :
|
91
|
+
* Description : type of ADatePicker
|
98
92
|
*/
|
99
|
-
|
93
|
+
type?: TADatePickerTypes;
|
94
|
+
/**
|
95
|
+
* useDate? : TUseValues<Date | undefined>
|
96
|
+
*
|
97
|
+
* Description : useDate of ADatePicker
|
98
|
+
*/
|
99
|
+
useDate?: TUseValues<Date | undefined>;
|
100
100
|
}
|
101
101
|
/**
|
102
102
|
* AComponent : ADatePicker
|
@@ -2,30 +2,20 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
2
2
|
import { Resources } from '../AResource/AResource';
|
3
3
|
import { IADatePickerProps } from './ADatePicker';
|
4
4
|
export interface IDateRange {
|
5
|
-
/**
|
6
|
-
* sDate : Date;
|
7
|
-
*
|
8
|
-
* Description : start date of IDateRange
|
9
|
-
*/
|
10
|
-
sDate: Date;
|
11
5
|
/**
|
12
6
|
* eDate : Date;
|
13
7
|
*
|
14
8
|
* Description : end date of IDateRange
|
15
9
|
*/
|
16
10
|
eDate: Date;
|
17
|
-
}
|
18
|
-
export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate'> {
|
19
11
|
/**
|
20
|
-
*
|
12
|
+
* sDate : Date;
|
21
13
|
*
|
22
|
-
* Description :
|
23
|
-
*/
|
24
|
-
useDateRange?: TUseValues<IDateRange | undefined>;
|
25
|
-
/**
|
26
|
-
* yearsOptionSize? : number = 5
|
14
|
+
* Description : start date of IDateRange
|
27
15
|
*/
|
28
|
-
|
16
|
+
sDate: Date;
|
17
|
+
}
|
18
|
+
export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate'> {
|
29
19
|
/**
|
30
20
|
* noDefaultChoices? : boolean;
|
31
21
|
*
|
@@ -38,6 +28,16 @@ export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate
|
|
38
28
|
* Description : resources of ADateRangePicker
|
39
29
|
*/
|
40
30
|
resources?: Partial<typeof Resources.ADateRangePicker>;
|
31
|
+
/**
|
32
|
+
* useDateRange : TUseValues<IDateRange | undefined>;
|
33
|
+
*
|
34
|
+
* Description : useDateRange of ADateRangePicker
|
35
|
+
*/
|
36
|
+
useDateRange?: TUseValues<IDateRange | undefined>;
|
37
|
+
/**
|
38
|
+
* yearsOptionSize? : number = 5
|
39
|
+
*/
|
40
|
+
yearsOptionSize?: number;
|
41
41
|
}
|
42
42
|
/**
|
43
43
|
* AComponent : ADateRangePicker
|