ados-rcm 1.1.457 → 1.1.459

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/AModule/AComponents/ABase/ABase.d.ts +21 -21
  2. package/dist/AModule/AComponents/AButton/AButton.d.ts +6 -6
  3. package/dist/AModule/AComponents/AButton/AIconButton.d.ts +6 -6
  4. package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +6 -6
  5. package/dist/AModule/AComponents/AChip/AChip.d.ts +24 -24
  6. package/dist/AModule/AComponents/AClock/AClock.d.ts +21 -21
  7. package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +36 -36
  8. package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +15 -15
  9. package/dist/AModule/AComponents/ADialog/ADialog.d.ts +93 -93
  10. package/dist/AModule/AComponents/AEditor/AEditor.d.ts +22 -14
  11. package/dist/AModule/AComponents/AEditor/modules/TableUI.d.ts +2 -2
  12. package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +24 -24
  13. package/dist/AModule/AComponents/AFileUploder/AFileUploader.d.ts +7 -7
  14. package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +35 -35
  15. package/dist/AModule/AComponents/AFrame/AFrame.d.ts +45 -45
  16. package/dist/AModule/AComponents/AIcon/AIcon.d.ts +1 -1
  17. package/dist/AModule/AComponents/AInput/AInput.d.ts +45 -45
  18. package/dist/AModule/AComponents/AInput/ANumInput.d.ts +3 -3
  19. package/dist/AModule/AComponents/AListView/AListView.d.ts +26 -26
  20. package/dist/AModule/AComponents/AProgressBar/AProgressBar.d.ts +27 -27
  21. package/dist/AModule/AComponents/ARadioSelect/ARadioSelect.d.ts +5 -5
  22. package/dist/AModule/AComponents/ASelect/AMultiSelect.d.ts +39 -39
  23. package/dist/AModule/AComponents/ASelect/ASelect.d.ts +39 -39
  24. package/dist/AModule/AComponents/AStepper/AStepper.d.ts +12 -12
  25. package/dist/AModule/AComponents/ATab/ATab.d.ts +36 -36
  26. package/dist/AModule/AComponents/ATable/ATable.d.ts +281 -281
  27. package/dist/AModule/AComponents/ATable/ATableBody.d.ts +19 -19
  28. package/dist/AModule/AComponents/ATable/ATableFilter.d.ts +5 -5
  29. package/dist/AModule/AComponents/ATable/ATableFooter.d.ts +4 -4
  30. package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +12 -12
  31. package/dist/AModule/AComponents/AText/AText.d.ts +6 -6
  32. package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +36 -36
  33. package/dist/AModule/AComponents/ATheme/ATheme.d.ts +10 -10
  34. package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +15 -15
  35. package/dist/AModule/AComponents/ATree/ATree.d.ts +111 -111
  36. package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +25 -25
  37. package/dist/AModule/AComponents/ATree/ATreeSearch.d.ts +7 -7
  38. package/dist/AModule/AComponents/ATypes/ATypes.d.ts +8 -8
  39. package/dist/AModule/AComponents/AWrap/AWrap.d.ts +21 -21
  40. package/dist/AModule/AHooks/useDB.d.ts +1 -1
  41. package/dist/AModule/ANetwork/APIContext.d.ts +6 -6
  42. package/dist/AModule/AUtils/bound.d.ts +3 -3
  43. package/dist/AModule/AUtils/dbF.d.ts +1 -1
  44. package/dist/index.cjs.js +119 -119
  45. package/dist/index.es.js +9478 -9388
  46. 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
- * open : () => void
13
+ * cancel : () => void
14
14
  *
15
- * Description : open dialog
15
+ * Description : run cancel of the dialog
16
16
  */
17
- open: () => void;
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
- * cancel : () => void
31
+ * open : () => void
32
32
  *
33
- * Description : run cancel of the dialog
33
+ * Description : open dialog
34
34
  */
35
- cancel: () => void;
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
- * dlgCore : IADialogCore
49
- *
50
- * Description : core of the dialog
51
- */
52
- dlgCore: IADialogCore;
53
- /**
54
- * type? : TADialogTypes = 'okCancel'
48
+ * actionStyle? : React.CSSProperties
55
49
  *
56
- * Description : type of dialog. decides the type of action buttons
50
+ * Description : actionStyle of the dialog
57
51
  */
58
- type?: TADialogTypes;
52
+ actionStyle?: React.CSSProperties;
59
53
  /**
60
- * title? : React.ReactNode
54
+ * bodyStyle? : React.CSSProperties
61
55
  *
62
- * Description : title of the dialog
56
+ * Description : bodyStyle of the dialog
63
57
  */
64
- title?: React.ReactNode;
58
+ bodyStyle?: React.CSSProperties;
65
59
  /**
66
- * children? : React.ReactNode
60
+ * buttonNoInteractive? : boolean
67
61
  *
68
- * Description : children of the dialog
62
+ * Description : if true, action buttons are not interactive
69
63
  */
70
- children?: React.ReactNode;
64
+ buttonNoInteractive?: boolean;
71
65
  /**
72
- * style? : React.CSSProperties
66
+ * cancelButtonClassName? : string
73
67
  *
74
- * Description : style of the dialog
68
+ * Description : className of the cancel button
75
69
  */
76
- style?: React.CSSProperties;
70
+ cancelButtonClassName?: string;
77
71
  /**
78
- * titleStyle? : React.CSSProperties
72
+ * cancelButtonStyle? : React.CSSProperties
79
73
  *
80
- * Description : titleStyle of the dialog
74
+ * Description : cancelButtonStyle of the dialog
81
75
  */
82
- titleStyle?: React.CSSProperties;
76
+ cancelButtonStyle?: React.CSSProperties;
83
77
  /**
84
- * bodyStyle? : React.CSSProperties
78
+ * children? : React.ReactNode
85
79
  *
86
- * Description : bodyStyle of the dialog
80
+ * Description : children of the dialog
87
81
  */
88
- bodyStyle?: React.CSSProperties;
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
- * okButtonStyle? : React.CSSProperties
90
+ * dlgCore : IADialogCore
97
91
  *
98
- * Description : okButtonStyle of the dialog
92
+ * Description : core of the dialog
99
93
  */
100
- okButtonStyle?: React.CSSProperties;
94
+ dlgCore: IADialogCore;
101
95
  /**
102
- * cancelButtonStyle? : React.CSSProperties
96
+ * isCancelDisabled? : boolean | string
103
97
  *
104
- * Description : cancelButtonStyle of the dialog
98
+ * Description : if truthy, cancel button is disabled
105
99
  */
106
- cancelButtonStyle?: React.CSSProperties;
100
+ isCancelDisabled?: boolean | string;
107
101
  /**
108
- * actionStyle? : React.CSSProperties
102
+ * isCancelLoading? : any
109
103
  *
110
- * Description : actionStyle of the dialog
104
+ * Description : if truthy, cancel button is loading
111
105
  */
112
- actionStyle?: React.CSSProperties;
106
+ isCancelLoading?: any;
113
107
  /**
114
- * buttonNoInteractive? : boolean
108
+ * isLoading? : any
115
109
  *
116
- * Description : if true, action buttons are not interactive
110
+ * Description : if truthy, dialog is loading
117
111
  */
118
- buttonNoInteractive?: boolean;
112
+ isLoading?: any;
119
113
  /**
120
- * okButtonClassName? : string
114
+ * isOkDisabled? : boolean | string
121
115
  *
122
- * Description : className of the ok button
116
+ * Description : if truthy, ok button is disabled
123
117
  */
124
- okButtonClassName?: string;
118
+ isOkDisabled?: boolean | string;
125
119
  /**
126
- * cancelButtonClassName? : string
120
+ * isOkLoading? : any
127
121
  *
128
- * Description : className of the cancel button
122
+ * Description : if truthy, ok button is loading
129
123
  */
130
- cancelButtonClassName?: string;
124
+ isOkLoading?: any;
131
125
  /**
132
- * progress? : number
126
+ * noDim? : boolean = false
133
127
  *
134
- * Description : if provided, shows a progress bar with the given percentage
128
+ * Description : decides whether the dialog has dim or not
135
129
  */
136
- progress?: number;
130
+ noDim?: boolean;
137
131
  /**
138
- * progressProps? : Omit<IAProgressBarProps, 'progress'>;
132
+ * okButtonClassName? : string
139
133
  *
140
- * Description : props of the progress bar
134
+ * Description : className of the ok button
141
135
  */
142
- progressProps?: Omit<IAProgressBarProps, 'progress'>;
136
+ okButtonClassName?: string;
143
137
  /**
144
- * onOk : (e: IAEvent) => void;
138
+ * okButtonStyle? : React.CSSProperties
145
139
  *
146
- * Description : onOk of the dialog. it runs close by default
140
+ * Description : okButtonStyle of the dialog
147
141
  */
148
- onOk?: (e: IAEvent) => TPromisable<any>;
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
- * onSpacePress : (e: IAEvent) => void;
168
+ * onOk : (e: IAEvent) => void;
175
169
  *
176
- * Description : onSpacePress of the dialog. it runs ok by default
170
+ * Description : onOk of the dialog. it runs close by default
177
171
  */
178
- onSpacePress?: (e: IAEvent) => TPromisable<any>;
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
- * noDim? : boolean = false
180
+ * onSpacePress : (e: IAEvent) => void;
187
181
  *
188
- * Description : decides whether the dialog has dim or not
182
+ * Description : onSpacePress of the dialog. it runs ok by default
189
183
  */
190
- noDim?: boolean;
184
+ onSpacePress?: (e: IAEvent) => TPromisable<any>;
191
185
  /**
192
- * isLoading? : any
186
+ * progress? : number
193
187
  *
194
- * Description : if truthy, dialog is loading
188
+ * Description : if provided, shows a progress bar with the given percentage
195
189
  */
196
- isLoading?: any;
190
+ progress?: number;
197
191
  /**
198
- * isOkDisabled? : boolean | string
192
+ * progressProps? : Omit<IAProgressBarProps, 'progress'>;
199
193
  *
200
- * Description : if truthy, ok button is disabled
194
+ * Description : props of the progress bar
201
195
  */
202
- isOkDisabled?: boolean | string;
196
+ progressProps?: Omit<IAProgressBarProps, 'progress'>;
203
197
  /**
204
- * isOkLoading? : any
198
+ * resources? : Partial<typeof Resources.ADialog>
205
199
  *
206
- * Description : if truthy, ok button is loading
200
+ * Description : language resources of the dialog
207
201
  */
208
- isOkLoading?: any;
202
+ resources?: Partial<typeof Resources.ADialog>;
209
203
  /**
210
- * isCancelDisabled? : boolean | string
204
+ * style? : React.CSSProperties
211
205
  *
212
- * Description : if truthy, cancel button is disabled
206
+ * Description : style of the dialog
213
207
  */
214
- isCancelDisabled?: boolean | string;
208
+ style?: React.CSSProperties;
215
209
  /**
216
- * isCancelLoading? : any
210
+ * title? : React.ReactNode
217
211
  *
218
- * Description : if truthy, cancel button is loading
212
+ * Description : title of the dialog
219
213
  */
220
- isCancelLoading?: any;
214
+ title?: React.ReactNode;
221
215
  /**
222
- * resources? : Partial<typeof Resources.ADialog>
216
+ * titleStyle? : React.CSSProperties
223
217
  *
224
- * Description : language resources of the dialog
218
+ * Description : titleStyle of the dialog
225
219
  */
226
- resources?: Partial<typeof Resources.ADialog>;
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,38 @@ 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
+ size?: number;
33
+ tabIndex?: number;
24
34
  toolbarSize?: TAEditorSize;
25
35
  toolbarType?: TAEditorToolbarType;
26
- readOnly?: boolean;
27
- limitPosition?: TAEditorLimitPosition;
28
- maxLength?: number;
29
- editorClassName?: string;
30
- editorStyle?: React.CSSProperties;
36
+ type?: TAEditorType;
37
+ useError?: TUseValues<boolean>;
38
+ useValue?: TUseValues<string>;
31
39
  }
32
40
  export declare const AEditor: React.MemoExoticComponent<(props: IAEditorProps) => React.ReactNode>;
@@ -13,9 +13,9 @@ declare enum QuillSources {
13
13
  USER = "user"
14
14
  }
15
15
  export interface MenuItem {
16
- title: string;
17
- icon: string;
18
16
  handler: () => void;
17
+ icon: string;
18
+ title: string;
19
19
  }
20
20
  export interface TableUIOptions {
21
21
  maxRowCount?: number;
@@ -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
- * useFile : TUseValues<File | null>
48
+ * DropRenderer? : (props: IDropRendererProps) => React.ReactNode
49
49
  *
50
- * Description : useFile of AFileBox
50
+ * Description : DropRenderer for customizing drag and drop UI
51
51
  */
52
- useFile: TUseValues<File | null>;
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
- * fileSelectButtonClassName? : string
84
+ * resources? : typeof Resources.AFileBox
91
85
  *
92
- * Description : className of file select button
86
+ * Description : resources of AFileBox
93
87
  */
94
- fileSelectButtonClassName?: string;
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
- useError?: TUseValues<boolean>;
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
- * defKey : keyof T
12
+ * open : (elem : HTMLElement) => void
21
13
  *
22
- * Description : defKey of AFloatMenu
14
+ * Description : open AFloatMenu
23
15
  */
24
- defKey: keyof T;
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
- * noDisplay? : boolean
26
+ * defKey : keyof T
35
27
  *
36
- * Description : decides whether to display the menu or not
28
+ * Description : defKey of AFloatMenu
37
29
  */
38
- noDisplay?: boolean;
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
- * defs : TAFloatMenuDefs<T>
51
+ * actionRef? : TActionRef<IAFloatMenuActions>
52
52
  *
53
- * Description : defs of AFloatMenu
53
+ * Description : actionRef of AFloatMenu
54
54
  */
55
- defs: TAFloatMenuDefs<T>;
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
- * anchorElem : HTMLElement | null
63
+ * defs : TAFloatMenuDefs<T>
64
64
  *
65
- * Description : anchorElem of AFloatMenu
65
+ * Description : defs of AFloatMenu
66
66
  */
67
+ defs: TAFloatMenuDefs<T>;
67
68
  /**
68
- * position? : EDir12 = EDir12.ES
69
+ * offset? : IOffset
69
70
  *
70
- * Description : position of AFloatMenu based on anchorRef
71
+ * Description : offset of AFloatMenu
71
72
  */
72
- position?: EDir12;
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
- * offset? : IOffset
81
+ * onClose? : () => any
81
82
  *
82
- * Description : offset of AFloatMenu
83
+ * Description : onClose of AFloatMenu
83
84
  */
84
- offset?: IOffset;
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
- * onClose? : () => any
93
+ * anchorElem : HTMLElement | null
93
94
  *
94
- * Description : onClose of AFloatMenu
95
+ * Description : anchorElem of AFloatMenu
95
96
  */
96
- onClose?: () => any;
97
97
  /**
98
- * actionRef? : TActionRef<IAFloatMenuActions>
99
- *
100
- * Description : actionRef of AFloatMenu
101
- */
102
- actionRef?: TActionRef<IAFloatMenuActions>;
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
  *