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
@@ -10,11 +10,11 @@ import { IAEvent, TPromisable } from '../ATypes/ATypes';
|
|
10
10
|
*/
|
11
11
|
export interface IADialogActions {
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* cancel : () => void
|
14
14
|
*
|
15
|
-
* Description :
|
15
|
+
* Description : run cancel of the dialog
|
16
16
|
*/
|
17
|
-
|
17
|
+
cancel: () => void;
|
18
18
|
/**
|
19
19
|
* close : () => void
|
20
20
|
*
|
@@ -28,11 +28,11 @@ export interface IADialogActions {
|
|
28
28
|
*/
|
29
29
|
ok: () => void;
|
30
30
|
/**
|
31
|
-
*
|
31
|
+
* open : () => void
|
32
32
|
*
|
33
|
-
* Description :
|
33
|
+
* Description : open dialog
|
34
34
|
*/
|
35
|
-
|
35
|
+
open: () => void;
|
36
36
|
}
|
37
37
|
export interface IADialogChildren {
|
38
38
|
children?: React.ReactNode;
|
@@ -45,47 +45,41 @@ export type TADialogContext<P> = (props: P) => {
|
|
45
45
|
};
|
46
46
|
export interface IADialogProps {
|
47
47
|
/**
|
48
|
-
*
|
49
|
-
*
|
50
|
-
* Description : core of the dialog
|
51
|
-
*/
|
52
|
-
dlgCore: IADialogCore;
|
53
|
-
/**
|
54
|
-
* type? : TADialogTypes = 'okCancel'
|
48
|
+
* actionStyle? : React.CSSProperties
|
55
49
|
*
|
56
|
-
* Description :
|
50
|
+
* Description : actionStyle of the dialog
|
57
51
|
*/
|
58
|
-
|
52
|
+
actionStyle?: React.CSSProperties;
|
59
53
|
/**
|
60
|
-
*
|
54
|
+
* bodyStyle? : React.CSSProperties
|
61
55
|
*
|
62
|
-
* Description :
|
56
|
+
* Description : bodyStyle of the dialog
|
63
57
|
*/
|
64
|
-
|
58
|
+
bodyStyle?: React.CSSProperties;
|
65
59
|
/**
|
66
|
-
*
|
60
|
+
* buttonNoInteractive? : boolean
|
67
61
|
*
|
68
|
-
* Description :
|
62
|
+
* Description : if true, action buttons are not interactive
|
69
63
|
*/
|
70
|
-
|
64
|
+
buttonNoInteractive?: boolean;
|
71
65
|
/**
|
72
|
-
*
|
66
|
+
* cancelButtonClassName? : string
|
73
67
|
*
|
74
|
-
* Description :
|
68
|
+
* Description : className of the cancel button
|
75
69
|
*/
|
76
|
-
|
70
|
+
cancelButtonClassName?: string;
|
77
71
|
/**
|
78
|
-
*
|
72
|
+
* cancelButtonStyle? : React.CSSProperties
|
79
73
|
*
|
80
|
-
* Description :
|
74
|
+
* Description : cancelButtonStyle of the dialog
|
81
75
|
*/
|
82
|
-
|
76
|
+
cancelButtonStyle?: React.CSSProperties;
|
83
77
|
/**
|
84
|
-
*
|
78
|
+
* children? : React.ReactNode
|
85
79
|
*
|
86
|
-
* Description :
|
80
|
+
* Description : children of the dialog
|
87
81
|
*/
|
88
|
-
|
82
|
+
children?: React.ReactNode;
|
89
83
|
/**
|
90
84
|
* contentStyle? : React.CSSProperties
|
91
85
|
*
|
@@ -93,59 +87,59 @@ export interface IADialogProps {
|
|
93
87
|
*/
|
94
88
|
contentStyle?: React.CSSProperties;
|
95
89
|
/**
|
96
|
-
*
|
90
|
+
* dlgCore : IADialogCore
|
97
91
|
*
|
98
|
-
* Description :
|
92
|
+
* Description : core of the dialog
|
99
93
|
*/
|
100
|
-
|
94
|
+
dlgCore: IADialogCore;
|
101
95
|
/**
|
102
|
-
*
|
96
|
+
* isCancelDisabled? : boolean | string
|
103
97
|
*
|
104
|
-
* Description :
|
98
|
+
* Description : if truthy, cancel button is disabled
|
105
99
|
*/
|
106
|
-
|
100
|
+
isCancelDisabled?: boolean | string;
|
107
101
|
/**
|
108
|
-
*
|
102
|
+
* isCancelLoading? : any
|
109
103
|
*
|
110
|
-
* Description :
|
104
|
+
* Description : if truthy, cancel button is loading
|
111
105
|
*/
|
112
|
-
|
106
|
+
isCancelLoading?: any;
|
113
107
|
/**
|
114
|
-
*
|
108
|
+
* isLoading? : any
|
115
109
|
*
|
116
|
-
* Description : if
|
110
|
+
* Description : if truthy, dialog is loading
|
117
111
|
*/
|
118
|
-
|
112
|
+
isLoading?: any;
|
119
113
|
/**
|
120
|
-
*
|
114
|
+
* isOkDisabled? : boolean | string
|
121
115
|
*
|
122
|
-
* Description :
|
116
|
+
* Description : if truthy, ok button is disabled
|
123
117
|
*/
|
124
|
-
|
118
|
+
isOkDisabled?: boolean | string;
|
125
119
|
/**
|
126
|
-
*
|
120
|
+
* isOkLoading? : any
|
127
121
|
*
|
128
|
-
* Description :
|
122
|
+
* Description : if truthy, ok button is loading
|
129
123
|
*/
|
130
|
-
|
124
|
+
isOkLoading?: any;
|
131
125
|
/**
|
132
|
-
*
|
126
|
+
* noDim? : boolean = false
|
133
127
|
*
|
134
|
-
* Description :
|
128
|
+
* Description : decides whether the dialog has dim or not
|
135
129
|
*/
|
136
|
-
|
130
|
+
noDim?: boolean;
|
137
131
|
/**
|
138
|
-
*
|
132
|
+
* okButtonClassName? : string
|
139
133
|
*
|
140
|
-
* Description :
|
134
|
+
* Description : className of the ok button
|
141
135
|
*/
|
142
|
-
|
136
|
+
okButtonClassName?: string;
|
143
137
|
/**
|
144
|
-
*
|
138
|
+
* okButtonStyle? : React.CSSProperties
|
145
139
|
*
|
146
|
-
* Description :
|
140
|
+
* Description : okButtonStyle of the dialog
|
147
141
|
*/
|
148
|
-
|
142
|
+
okButtonStyle?: React.CSSProperties;
|
149
143
|
/**
|
150
144
|
* onCancel : (e: IAEvent) => void;
|
151
145
|
*
|
@@ -171,11 +165,11 @@ export interface IADialogProps {
|
|
171
165
|
*/
|
172
166
|
onEscPress?: (e: IAEvent) => TPromisable<any>;
|
173
167
|
/**
|
174
|
-
*
|
168
|
+
* onOk : (e: IAEvent) => void;
|
175
169
|
*
|
176
|
-
* Description :
|
170
|
+
* Description : onOk of the dialog. it runs close by default
|
177
171
|
*/
|
178
|
-
|
172
|
+
onOk?: (e: IAEvent) => TPromisable<any>;
|
179
173
|
/**
|
180
174
|
* onPaperClick : (e: IAEvent) => void;
|
181
175
|
*
|
@@ -183,47 +177,53 @@ export interface IADialogProps {
|
|
183
177
|
*/
|
184
178
|
onPaperClick?: (e: IAEvent) => TPromisable<any>;
|
185
179
|
/**
|
186
|
-
*
|
180
|
+
* onSpacePress : (e: IAEvent) => void;
|
187
181
|
*
|
188
|
-
* Description :
|
182
|
+
* Description : onSpacePress of the dialog. it runs ok by default
|
189
183
|
*/
|
190
|
-
|
184
|
+
onSpacePress?: (e: IAEvent) => TPromisable<any>;
|
191
185
|
/**
|
192
|
-
*
|
186
|
+
* progress? : number
|
193
187
|
*
|
194
|
-
* Description : if
|
188
|
+
* Description : if provided, shows a progress bar with the given percentage
|
195
189
|
*/
|
196
|
-
|
190
|
+
progress?: number;
|
197
191
|
/**
|
198
|
-
*
|
192
|
+
* progressProps? : Omit<IAProgressBarProps, 'progress'>;
|
199
193
|
*
|
200
|
-
* Description :
|
194
|
+
* Description : props of the progress bar
|
201
195
|
*/
|
202
|
-
|
196
|
+
progressProps?: Omit<IAProgressBarProps, 'progress'>;
|
203
197
|
/**
|
204
|
-
*
|
198
|
+
* resources? : Partial<typeof Resources.ADialog>
|
205
199
|
*
|
206
|
-
* Description :
|
200
|
+
* Description : language resources of the dialog
|
207
201
|
*/
|
208
|
-
|
202
|
+
resources?: Partial<typeof Resources.ADialog>;
|
209
203
|
/**
|
210
|
-
*
|
204
|
+
* style? : React.CSSProperties
|
211
205
|
*
|
212
|
-
* Description :
|
206
|
+
* Description : style of the dialog
|
213
207
|
*/
|
214
|
-
|
208
|
+
style?: React.CSSProperties;
|
215
209
|
/**
|
216
|
-
*
|
210
|
+
* title? : React.ReactNode
|
217
211
|
*
|
218
|
-
* Description :
|
212
|
+
* Description : title of the dialog
|
219
213
|
*/
|
220
|
-
|
214
|
+
title?: React.ReactNode;
|
221
215
|
/**
|
222
|
-
*
|
216
|
+
* titleStyle? : React.CSSProperties
|
223
217
|
*
|
224
|
-
* Description :
|
218
|
+
* Description : titleStyle of the dialog
|
225
219
|
*/
|
226
|
-
|
220
|
+
titleStyle?: React.CSSProperties;
|
221
|
+
/**
|
222
|
+
* type? : TADialogTypes = 'okCancel'
|
223
|
+
*
|
224
|
+
* Description : type of dialog. decides the type of action buttons
|
225
|
+
*/
|
226
|
+
type?: TADialogTypes;
|
227
227
|
}
|
228
228
|
/**
|
229
229
|
* AComponent : ADialog
|
@@ -275,35 +275,35 @@ export interface IADialogProps {
|
|
275
275
|
*/
|
276
276
|
export declare const ADialog: (props: IADialogProps) => React.ReactPortal;
|
277
277
|
export interface IADialogState {
|
278
|
-
/**
|
279
|
-
* useIsOpen : [boolean, (isOpen: boolean) => void]
|
280
|
-
*
|
281
|
-
* Description : [ASystem] use should not modify this property.
|
282
|
-
*/
|
283
|
-
useIsOpen: TUseValues<boolean>;
|
284
278
|
/**
|
285
279
|
* setAction : (action: Partial<IADialogActions>) => void
|
286
280
|
*
|
287
281
|
* Description : set action of the dialog
|
288
282
|
*/
|
289
283
|
setAction: (action: Partial<IADialogActions>) => void;
|
284
|
+
/**
|
285
|
+
* useIsOpen : [boolean, (isOpen: boolean) => void]
|
286
|
+
*
|
287
|
+
* Description : [ASystem] use should not modify this property.
|
288
|
+
*/
|
289
|
+
useIsOpen: TUseValues<boolean>;
|
290
290
|
}
|
291
291
|
export type TADialogCores<T extends string> = {
|
292
292
|
[key in T]: IADialogCore;
|
293
293
|
};
|
294
294
|
export interface IADialogCore {
|
295
|
-
/**
|
296
|
-
* state : IADialogState
|
297
|
-
*
|
298
|
-
* Description : [ASystem] use should not modify this property.
|
299
|
-
*/
|
300
|
-
state: IADialogState;
|
301
295
|
/**
|
302
296
|
* action : IADialogAction
|
303
297
|
*
|
304
298
|
* Description : action of the dialog
|
305
299
|
*/
|
306
300
|
action: IADialogActions;
|
301
|
+
/**
|
302
|
+
* state : IADialogState
|
303
|
+
*
|
304
|
+
* Description : [ASystem] use should not modify this property.
|
305
|
+
*/
|
306
|
+
state: IADialogState;
|
307
307
|
}
|
308
308
|
export type TADialogActions<T extends string> = {
|
309
309
|
[key in T]: IADialogActions;
|
@@ -3,30 +3,37 @@ import { default as ReactQuill } from 'react-quill-new';
|
|
3
3
|
import { TUseValues } from '../../AHooks/useValues';
|
4
4
|
import { IABaseProps } from '../ABase/ABase';
|
5
5
|
import { IAWrapProps } from '../AWrap/AWrap';
|
6
|
+
export interface IAEditorCopyContent {
|
7
|
+
onError?: () => void;
|
8
|
+
onSuccess?: () => void;
|
9
|
+
}
|
10
|
+
export interface IAEditorRef extends ReactQuill {
|
11
|
+
copyContent: (options?: IAEditorCopyContent) => void;
|
12
|
+
}
|
6
13
|
export type TAEditorType = 'Primary' | 'ReadOnly' | 'Raw' | 'Error';
|
7
14
|
export type TAEditorToolbarType = 'Default' | 'Title';
|
8
15
|
export type TAEditorSize = 'Med' | 'Large';
|
9
16
|
export type TAEditorLimitPosition = 'Top' | 'Bottom';
|
10
17
|
export interface IAEditorProps extends IABaseProps, IAWrapProps {
|
11
|
-
onEnterPress?: (value: string) => void;
|
12
|
-
type?: TAEditorType;
|
13
|
-
editorRef?: React.MutableRefObject<ReactQuill | null> | ((instance: ReactQuill | null) => void);
|
14
|
-
useValue?: TUseValues<string>;
|
15
|
-
useError?: TUseValues<boolean>;
|
16
|
-
placeholder?: string;
|
17
|
-
tabIndex?: number;
|
18
18
|
autoFocus?: boolean;
|
19
|
-
editorProps?: ReactQuill.ReactQuillProps;
|
20
|
-
minHeight?: number;
|
21
19
|
contentHeight?: number;
|
22
20
|
contentMaxHeight?: number;
|
21
|
+
editorClassName?: string;
|
22
|
+
editorProps?: ReactQuill.ReactQuillProps;
|
23
|
+
editorRef?: React.MutableRefObject<IAEditorRef | null> | ((instance: IAEditorRef | null) => void);
|
24
|
+
editorStyle?: React.CSSProperties;
|
25
|
+
limitPosition?: TAEditorLimitPosition;
|
23
26
|
maxHeight?: number;
|
27
|
+
maxLength?: number;
|
28
|
+
minHeight?: number;
|
29
|
+
onEnterPress?: (value: string) => void;
|
30
|
+
placeholder?: string;
|
31
|
+
readOnly?: boolean;
|
32
|
+
tabIndex?: number;
|
24
33
|
toolbarSize?: TAEditorSize;
|
25
34
|
toolbarType?: TAEditorToolbarType;
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
editorClassName?: string;
|
30
|
-
editorStyle?: React.CSSProperties;
|
35
|
+
type?: TAEditorType;
|
36
|
+
useError?: TUseValues<boolean>;
|
37
|
+
useValue?: TUseValues<string>;
|
31
38
|
}
|
32
39
|
export declare const AEditor: React.MemoExoticComponent<(props: IAEditorProps) => React.ReactNode>;
|
@@ -16,6 +16,12 @@ export interface IFileRendererProps {
|
|
16
16
|
useFile: TUseValues<File | null>;
|
17
17
|
}
|
18
18
|
export interface ISelectRendererProps {
|
19
|
+
/**
|
20
|
+
* fileSelectButtonClassName? : string
|
21
|
+
*
|
22
|
+
* Description : className of file select button
|
23
|
+
*/
|
24
|
+
fileSelectButtonClassName?: string;
|
19
25
|
/**
|
20
26
|
* onClick : () => void
|
21
27
|
*
|
@@ -28,12 +34,6 @@ export interface ISelectRendererProps {
|
|
28
34
|
* Description : resources of AFileBox
|
29
35
|
*/
|
30
36
|
resources: typeof Resources.AFileBox;
|
31
|
-
/**
|
32
|
-
* fileSelectButtonClassName? : string
|
33
|
-
*
|
34
|
-
* Description : className of file select button
|
35
|
-
*/
|
36
|
-
fileSelectButtonClassName?: string;
|
37
37
|
}
|
38
38
|
export interface IDropRendererProps {
|
39
39
|
/**
|
@@ -45,11 +45,11 @@ export interface IDropRendererProps {
|
|
45
45
|
}
|
46
46
|
export interface IAFileBoxProps extends IABaseProps {
|
47
47
|
/**
|
48
|
-
*
|
48
|
+
* DropRenderer? : (props: IDropRendererProps) => React.ReactNode
|
49
49
|
*
|
50
|
-
* Description :
|
50
|
+
* Description : DropRenderer for customizing drag and drop UI
|
51
51
|
*/
|
52
|
-
|
52
|
+
DropRenderer?: (props: IDropRendererProps) => React.ReactNode;
|
53
53
|
/**
|
54
54
|
* FileRenderer? : (props: IFileRendererProps) => React.ReactNode
|
55
55
|
*
|
@@ -62,24 +62,18 @@ export interface IAFileBoxProps extends IABaseProps {
|
|
62
62
|
* Description : SelectRenderer for customizing file selection UI
|
63
63
|
*/
|
64
64
|
SelectRenderer?: (props: ISelectRendererProps) => React.ReactNode;
|
65
|
-
/**
|
66
|
-
* DropRenderer? : (props: IDropRendererProps) => React.ReactNode
|
67
|
-
*
|
68
|
-
* Description : DropRenderer for customizing drag and drop UI
|
69
|
-
*/
|
70
|
-
DropRenderer?: (props: IDropRendererProps) => React.ReactNode;
|
71
|
-
/**
|
72
|
-
* resources? : typeof Resources.AFileBox
|
73
|
-
*
|
74
|
-
* Description : resources of AFileBox
|
75
|
-
*/
|
76
|
-
resources?: Partial<typeof Resources.AFileBox>;
|
77
65
|
/**
|
78
66
|
* accept? : string
|
79
67
|
*
|
80
68
|
* Description : acceptable formats of file
|
81
69
|
*/
|
82
70
|
accept?: string;
|
71
|
+
/**
|
72
|
+
* fileSelectButtonClassName? : string
|
73
|
+
*
|
74
|
+
* Description : className of file select button
|
75
|
+
*/
|
76
|
+
fileSelectButtonClassName?: string;
|
83
77
|
/**
|
84
78
|
* onInvalidFileFormat? : () => void
|
85
79
|
*
|
@@ -87,11 +81,17 @@ export interface IAFileBoxProps extends IABaseProps {
|
|
87
81
|
*/
|
88
82
|
onInvalidFileFormat?: () => void;
|
89
83
|
/**
|
90
|
-
*
|
84
|
+
* resources? : typeof Resources.AFileBox
|
91
85
|
*
|
92
|
-
* Description :
|
86
|
+
* Description : resources of AFileBox
|
93
87
|
*/
|
94
|
-
|
88
|
+
resources?: Partial<typeof Resources.AFileBox>;
|
89
|
+
/**
|
90
|
+
* useFile : TUseValues<File | null>
|
91
|
+
*
|
92
|
+
* Description : useFile of AFileBox
|
93
|
+
*/
|
94
|
+
useFile: TUseValues<File | null>;
|
95
95
|
}
|
96
96
|
/**
|
97
97
|
* AComponent : AFileBox
|
@@ -5,21 +5,21 @@ import { IAWrapProps } from '../AWrap/AWrap';
|
|
5
5
|
export type TFileUploaderType = 'Upload' | 'Download';
|
6
6
|
export type TFileStatus = 'Normal' | 'Error' | 'Loading';
|
7
7
|
export interface ExtendedFile extends File {
|
8
|
+
[key: string]: any;
|
8
9
|
idx?: number;
|
9
10
|
state?: number;
|
10
|
-
[key: string]: any;
|
11
11
|
uniqueId?: string;
|
12
12
|
}
|
13
13
|
export interface IAFileUploaderProps extends IAWrapProps, IABaseProps {
|
14
|
-
useFiles: TUseValues<ExtendedFile[] | undefined>;
|
15
14
|
accept?: string;
|
16
|
-
onInvalidFileFormat?: () => void;
|
17
|
-
onDownload?: (file: ExtendedFile, updateStatus: (status: TFileStatus) => void) => void;
|
18
|
-
onDelete?: (file: ExtendedFile) => void;
|
19
|
-
type: TFileUploaderType;
|
20
15
|
limit?: number;
|
21
16
|
maxFileCount?: number;
|
22
|
-
|
17
|
+
onDelete?: (file: ExtendedFile) => void;
|
18
|
+
onDownload?: (file: ExtendedFile, updateStatus: (status: TFileStatus) => void) => void;
|
19
|
+
onInvalidFileFormat?: () => void;
|
23
20
|
resources?: Partial<typeof Resources.AFileUploader>;
|
21
|
+
type: TFileUploaderType;
|
22
|
+
useError?: TUseValues<boolean>;
|
23
|
+
useFiles: TUseValues<ExtendedFile[] | undefined>;
|
24
24
|
}
|
25
25
|
export declare const AFileUploader: (props: IAFileUploaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
@@ -2,57 +2,57 @@ import { TCanCallback } from '../../AUtils/cbF';
|
|
2
2
|
import { IABaseProps } from '../ABase/ABase';
|
3
3
|
import { EDir12, IAEvent, IOffset, TActionRef, TPromisable } from '../ATypes/ATypes';
|
4
4
|
export interface IAFloatMenuActions {
|
5
|
-
/**
|
6
|
-
* open : (elem : HTMLElement) => void
|
7
|
-
*
|
8
|
-
* Description : open AFloatMenu
|
9
|
-
*/
|
10
|
-
open: (elem: HTMLElement) => void;
|
11
5
|
/**
|
12
6
|
* close : () => void
|
13
7
|
*
|
14
8
|
* Description : close AFloatMenu
|
15
9
|
*/
|
16
10
|
close: () => void;
|
17
|
-
}
|
18
|
-
export interface IAFloatMenuContentProps<T> {
|
19
11
|
/**
|
20
|
-
*
|
12
|
+
* open : (elem : HTMLElement) => void
|
21
13
|
*
|
22
|
-
* Description :
|
14
|
+
* Description : open AFloatMenu
|
23
15
|
*/
|
24
|
-
|
16
|
+
open: (elem: HTMLElement) => void;
|
17
|
+
}
|
18
|
+
export interface IAFloatMenuContentProps<T> {
|
25
19
|
/**
|
26
20
|
* def : IAFloatMenuDef<T>
|
27
21
|
*
|
28
22
|
* Description : def of AFloatMenu
|
29
23
|
*/
|
30
24
|
def: IAFloatMenuDef<T>;
|
31
|
-
}
|
32
|
-
export interface IAFloatMenuDef<T> extends Omit<IABaseProps, 'content'> {
|
33
25
|
/**
|
34
|
-
*
|
26
|
+
* defKey : keyof T
|
35
27
|
*
|
36
|
-
* Description :
|
28
|
+
* Description : defKey of AFloatMenu
|
37
29
|
*/
|
38
|
-
|
30
|
+
defKey: keyof T;
|
31
|
+
}
|
32
|
+
export interface IAFloatMenuDef<T> extends Omit<IABaseProps, 'content'> {
|
39
33
|
/**
|
40
34
|
* content? : TCanCallback<IAFloatMenuContentProps, React.ReactNode>
|
41
35
|
*
|
42
36
|
* Description : content of AFloatMenu
|
43
37
|
*/
|
44
38
|
content?: TCanCallback<IAFloatMenuContentProps<T>, React.ReactNode>;
|
39
|
+
/**
|
40
|
+
* noDisplay? : boolean
|
41
|
+
*
|
42
|
+
* Description : decides whether to display the menu or not
|
43
|
+
*/
|
44
|
+
noDisplay?: boolean;
|
45
45
|
}
|
46
46
|
export type TAFloatMenuDefs<T> = {
|
47
47
|
[key in keyof T]?: IAFloatMenuDef<T>;
|
48
48
|
};
|
49
49
|
export interface IAFloatMenuProps<T> {
|
50
50
|
/**
|
51
|
-
*
|
51
|
+
* actionRef? : TActionRef<IAFloatMenuActions>
|
52
52
|
*
|
53
|
-
* Description :
|
53
|
+
* Description : actionRef of AFloatMenu
|
54
54
|
*/
|
55
|
-
|
55
|
+
actionRef?: TActionRef<IAFloatMenuActions>;
|
56
56
|
/**
|
57
57
|
* defaultDef? : IAFloatMenuDef<T>
|
58
58
|
*
|
@@ -60,16 +60,17 @@ export interface IAFloatMenuProps<T> {
|
|
60
60
|
*/
|
61
61
|
defaultDef?: IAFloatMenuDef<T>;
|
62
62
|
/**
|
63
|
-
*
|
63
|
+
* defs : TAFloatMenuDefs<T>
|
64
64
|
*
|
65
|
-
* Description :
|
65
|
+
* Description : defs of AFloatMenu
|
66
66
|
*/
|
67
|
+
defs: TAFloatMenuDefs<T>;
|
67
68
|
/**
|
68
|
-
*
|
69
|
+
* offset? : IOffset
|
69
70
|
*
|
70
|
-
* Description :
|
71
|
+
* Description : offset of AFloatMenu
|
71
72
|
*/
|
72
|
-
|
73
|
+
offset?: IOffset;
|
73
74
|
/**
|
74
75
|
* onClick? : (key : keyof T) => any
|
75
76
|
*
|
@@ -77,11 +78,11 @@ export interface IAFloatMenuProps<T> {
|
|
77
78
|
*/
|
78
79
|
onClick?: (key: keyof T) => any;
|
79
80
|
/**
|
80
|
-
*
|
81
|
+
* onClose? : () => any
|
81
82
|
*
|
82
|
-
* Description :
|
83
|
+
* Description : onClose of AFloatMenu
|
83
84
|
*/
|
84
|
-
|
85
|
+
onClose?: () => any;
|
85
86
|
/**
|
86
87
|
* onPaperClick : (e: IAEvent) => void;
|
87
88
|
*
|
@@ -89,17 +90,16 @@ export interface IAFloatMenuProps<T> {
|
|
89
90
|
*/
|
90
91
|
onPaperClick?: (e: IAEvent) => TPromisable<any>;
|
91
92
|
/**
|
92
|
-
*
|
93
|
+
* anchorElem : HTMLElement | null
|
93
94
|
*
|
94
|
-
* Description :
|
95
|
+
* Description : anchorElem of AFloatMenu
|
95
96
|
*/
|
96
|
-
onClose?: () => any;
|
97
97
|
/**
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
98
|
+
* position? : EDir12 = EDir12.ES
|
99
|
+
*
|
100
|
+
* Description : position of AFloatMenu based on anchorRef
|
101
|
+
*/
|
102
|
+
position?: EDir12;
|
103
103
|
/**
|
104
104
|
* width? : string | number
|
105
105
|
*
|