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.
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 +21 -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 +115 -115
  45. package/dist/index.es.js +7161 -7095
  46. package/package.json +12 -10
@@ -9,11 +9,11 @@ import { TActionRef } from '../ATypes/ATypes';
9
9
  import { IATreeItemProps, IIndentProps } from './ATreeItem';
10
10
  export interface IATreeSearchResult<T> {
11
11
  /**
12
- * keyword : string
12
+ * item? : T
13
13
  *
14
- * Description : keyword of search result
14
+ * Description : item of search result
15
15
  */
16
- keyword: string;
16
+ item?: T;
17
17
  /**
18
18
  * items : T[]
19
19
  *
@@ -21,11 +21,11 @@ export interface IATreeSearchResult<T> {
21
21
  */
22
22
  items: T[];
23
23
  /**
24
- * item? : T
24
+ * keyword : string
25
25
  *
26
- * Description : item of search result
26
+ * Description : keyword of search result
27
27
  */
28
- item?: T;
28
+ keyword: string;
29
29
  }
30
30
  export interface IATreeItem<T> extends IItem {
31
31
  /**
@@ -36,77 +36,101 @@ export interface IATreeItem<T> extends IItem {
36
36
  children?: T[];
37
37
  }
38
38
  export interface IATreeActions {
39
+ /**
40
+ * collapseAll : () => void
41
+ *
42
+ * Description : collapse all items
43
+ */
44
+ collapseAll: () => void;
39
45
  /**
40
46
  * expandAll : () => void
41
47
  *
42
48
  * Description : expand all items
43
49
  */
44
50
  expandAll: () => void;
51
+ }
52
+ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
45
53
  /**
46
- * collapseAll : () => void
54
+ * ContentRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
47
55
  *
48
- * Description : collapse all items
56
+ * Description : Renderer of content of ATreeItem
49
57
  */
50
- collapseAll: () => void;
51
- }
52
- export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
58
+ ContentRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
53
59
  /**
54
- * pk? : keyof T | (keyof T)[]
60
+ * OverflowPadding? : boolean
55
61
  *
56
- * Description : pk of ATree. if pk is set, it will be used as key of item. if not, index will be used.
62
+ * Description : OverflowPadding of ATree
57
63
  */
58
- pk?: keyof T | (keyof T)[];
64
+ OverflowPadding?: boolean;
59
65
  /**
60
- * useItems? : TUseValues<T[]>
66
+ * RightStickyAddon? : TCanCallback<IATreeItemProps<T>, React.ReactNode>;
61
67
  *
62
- * Description : useItems of ATree. items will be changed if dragging is used
68
+ * Description : RightStickyAddon of ATree
63
69
  */
64
- useItems?: TUseValues<T[]>;
70
+ RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
65
71
  /**
66
- * useExpand? : TUseValues<T[]>
72
+ * TopRightAddon? : React.ReactNode
67
73
  *
68
- * Description : useExpand of ATree
74
+ * Description : TopRightAddon of ATree
69
75
  */
70
- useExpand?: TUseValues<T[]>;
76
+ TopRightAddon?: React.ReactNode;
71
77
  /**
72
- * useSelect? : TUseValues<T[]>
78
+ * TreeItemClassName? : string
73
79
  *
74
- * Description : useSelect of ATree
80
+ * Description : className of ATreeItem
75
81
  */
76
- useSelect?: TUseValues<T[]>;
82
+ TreeItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
77
83
  /**
78
- * selectDisabled? : (item: T) => boolean | string | undefined
84
+ * TreeItemRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
79
85
  *
80
- * Description : selectDisabled of ATree. if string is returned, it will be used as tooltip.
86
+ * Description : TreeItemRenderer of ATree
81
87
  */
82
- selectDisabled?: (item: T) => boolean | string | undefined;
88
+ TreeItemRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
83
89
  /**
84
- * selectUnused? : (item: T) => boolean
90
+ * TreeItemStyle? : React.CSSProperties
85
91
  *
86
- * Description : selectUnused of ATree. if true is returned, it cannot be selected.
92
+ * Description : style of ATreeItem
87
93
  */
88
- selectUnused?: (item: T) => boolean;
94
+ TreeItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
89
95
  /**
90
- * useSearch? : TUseValues<IATreeSearchResult<T> | undefined>
96
+ * TreeTopAddon? : React.ReactNode
91
97
  *
92
- * Description : useSearch of ATree
98
+ * Description : TreeTopAddon of ATree
93
99
  */
94
- useSearch?: TUseValues<IATreeSearchResult<T> | undefined>;
100
+ TreeTopAddon?: React.ReactNode;
95
101
  /**
96
- * showCheckbox? : boolean
102
+ * actionRef? : TActionRef<IATreeActions>
97
103
  *
98
- * Description : showCheckbox of ATree
104
+ * Description : actionRef of ATree
99
105
  */
100
- showCheckbox?: boolean;
106
+ actionRef?: TActionRef<IATreeActions>;
107
+ /**
108
+ * autoFocus? : boolean
109
+ *
110
+ * Description : autoFocus of ATreeSearch
111
+ */
112
+ autoFocus?: boolean;
113
+ /**
114
+ * height? : number
115
+ *
116
+ * Description : height of ATreeItem
117
+ */
118
+ height?: number;
119
+ /**
120
+ * iconWidth? : number
121
+ *
122
+ * Description : iconWidth of ATree
123
+ */
124
+ iconWidth?: number;
101
125
  /**
102
126
  * icons? : { noChild?: TIcons; collapsed?: TIcons; expanded?: TIcons }
103
127
  *
104
128
  * Description : icons of ATree
105
129
  */
106
130
  icons?: {
107
- noChild?: TIcons | Exclude<React.ReactNode, string>;
108
131
  collapsed?: TIcons | Exclude<React.ReactNode, string>;
109
132
  expanded?: TIcons | Exclude<React.ReactNode, string>;
133
+ noChild?: TIcons | Exclude<React.ReactNode, string>;
110
134
  };
111
135
  /**
112
136
  * indents? : { collapsed?: React.ReactNode; expanded?: React.ReactNode; isLast?: React.ReactNode }
@@ -119,11 +143,17 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
119
143
  isLast?: React.ReactNode;
120
144
  };
121
145
  /**
122
- * iconWidth? : number
146
+ * insertBorder? : boolean
123
147
  *
124
- * Description : iconWidth of ATree
148
+ * Description : insertBorder of ATree
125
149
  */
126
- iconWidth?: number;
150
+ insertBorder?: boolean;
151
+ /**
152
+ * isDraggable? : boolean
153
+ *
154
+ * Description : isDraggable of ATree
155
+ */
156
+ isDraggable?: boolean;
127
157
  /**
128
158
  * isSelectMulti? : boolean
129
159
  *
@@ -131,17 +161,17 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
131
161
  */
132
162
  isSelectMulti?: boolean;
133
163
  /**
134
- * noSearch? : boolean
164
+ * maxLength? : number
135
165
  *
136
- * Description : noSearch of ATree. if true, search will not be rendered.
166
+ * Description : maxLength of ATreeSearch
137
167
  */
138
- noSearch?: boolean;
168
+ maxLength?: number;
139
169
  /**
140
- * isDraggable? : boolean
170
+ * noSearch? : boolean
141
171
  *
142
- * Description : isDraggable of ATree
172
+ * Description : noSearch of ATree. if true, search will not be rendered.
143
173
  */
144
- isDraggable?: boolean;
174
+ noSearch?: boolean;
145
175
  /**
146
176
  * noSyncSearchSelect? : boolean
147
177
  *
@@ -149,17 +179,11 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
149
179
  */
150
180
  noSyncSearchSelect?: boolean;
151
181
  /**
152
- * searchPredicate? : (inputValue: string, item: T) => any
153
- *
154
- * Description : searchPredicate of ATree.
155
- */
156
- searchPredicate?: (inputValue: string, item: T) => any;
157
- /**
158
- * actionRef? : TActionRef<IATreeActions>
182
+ * pk? : keyof T | (keyof T)[]
159
183
  *
160
- * Description : actionRef of ATree
184
+ * Description : pk of ATree. if pk is set, it will be used as key of item. if not, index will be used.
161
185
  */
162
- actionRef?: TActionRef<IATreeActions>;
186
+ pk?: keyof T | (keyof T)[];
163
187
  /**
164
188
  * placeholder? : React.ReactNode
165
189
  *
@@ -167,101 +191,77 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
167
191
  */
168
192
  placeholder?: React.ReactNode;
169
193
  /**
170
- * ContentRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
171
- *
172
- * Description : Renderer of content of ATreeItem
173
- */
174
- ContentRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
175
- /**
176
- * TreeItemRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
194
+ * resources? : Partial<typeof Resources.ATree>
177
195
  *
178
- * Description : TreeItemRenderer of ATree
196
+ * Description : resources of ATree
179
197
  */
180
- TreeItemRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
198
+ resources?: Partial<typeof Resources.ATree>;
181
199
  /**
182
- * RightStickyAddon? : TCanCallback<IATreeItemProps<T>, React.ReactNode>;
200
+ * searchItemClassName? : string
183
201
  *
184
- * Description : RightStickyAddon of ATree
202
+ * Description : className of search item
185
203
  */
186
- RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
204
+ searchItemClassName?: string;
187
205
  /**
188
- * TopRightAddon? : React.ReactNode
206
+ * searchItemStyle? : React.CSSProperties
189
207
  *
190
- * Description : TopRightAddon of ATree
208
+ * Description : style of search item
191
209
  */
192
- TopRightAddon?: React.ReactNode;
210
+ searchItemStyle?: React.CSSProperties;
193
211
  /**
194
- * TreeTopAddon? : React.ReactNode
212
+ * searchPredicate? : (inputValue: string, item: T) => any
195
213
  *
196
- * Description : TreeTopAddon of ATree
214
+ * Description : searchPredicate of ATree.
197
215
  */
198
- TreeTopAddon?: React.ReactNode;
216
+ searchPredicate?: (inputValue: string, item: T) => any;
199
217
  /**
200
- * resources? : Partial<typeof Resources.ATree>
218
+ * selectDisabled? : (item: T) => boolean | string | undefined
201
219
  *
202
- * Description : resources of ATree
220
+ * Description : selectDisabled of ATree. if string is returned, it will be used as tooltip.
203
221
  */
204
- resources?: Partial<typeof Resources.ATree>;
222
+ selectDisabled?: (item: T) => boolean | string | undefined;
205
223
  /**
206
- * maxLength? : number
224
+ * selectUnused? : (item: T) => boolean
207
225
  *
208
- * Description : maxLength of ATreeSearch
226
+ * Description : selectUnused of ATree. if true is returned, it cannot be selected.
209
227
  */
210
- maxLength?: number;
228
+ selectUnused?: (item: T) => boolean;
211
229
  /**
212
- * autoFocus? : boolean
230
+ * showCheckbox? : boolean
213
231
  *
214
- * Description : autoFocus of ATreeSearch
232
+ * Description : showCheckbox of ATree
215
233
  */
216
- autoFocus?: boolean;
234
+ showCheckbox?: boolean;
217
235
  /**
218
- * TreeItemStyle? : React.CSSProperties
236
+ * useExpand? : TUseValues<T[]>
219
237
  *
220
- * Description : style of ATreeItem
238
+ * Description : useExpand of ATree
221
239
  */
222
- TreeItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
240
+ useExpand?: TUseValues<T[]>;
223
241
  /**
224
- * TreeItemClassName? : string
242
+ * useItems? : TUseValues<T[]>
225
243
  *
226
- * Description : className of ATreeItem
244
+ * Description : useItems of ATree. items will be changed if dragging is used
227
245
  */
228
- TreeItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
246
+ useItems?: TUseValues<T[]>;
229
247
  /**
230
- * OverflowPadding? : boolean
248
+ * useSearch? : TUseValues<IATreeSearchResult<T> | undefined>
231
249
  *
232
- * Description : OverflowPadding of ATree
250
+ * Description : useSearch of ATree
233
251
  */
234
- OverflowPadding?: boolean;
252
+ useSearch?: TUseValues<IATreeSearchResult<T> | undefined>;
235
253
  /**
236
- * insertBorder? : boolean
254
+ * useSelect? : TUseValues<T[]>
237
255
  *
238
- * Description : insertBorder of ATree
256
+ * Description : useSelect of ATree
239
257
  */
240
- insertBorder?: boolean;
258
+ useSelect?: TUseValues<T[]>;
241
259
  /**
242
260
  * width? : number
243
261
  *
244
262
  * Description : width of ATree
245
263
  */
246
264
  width?: number;
247
- /**
248
- * searchItemClassName? : string
249
- *
250
- * Description : className of search item
251
- */
252
- searchItemClassName?: string;
253
- /**
254
- * searchItemStyle? : React.CSSProperties
255
- *
256
- * Description : style of search item
257
- */
258
- searchItemStyle?: React.CSSProperties;
259
- /**
260
- * height? : number
261
- *
262
- * Description : height of ATreeItem
263
- */
264
- height?: number;
265
265
  }
266
266
  /**
267
267
  * AComponent : ATree
@@ -5,46 +5,46 @@ import { TIcons } from '../AIcon/AIcon';
5
5
  import { Resources } from '../AResource/AResource';
6
6
  import { IATreeItem, IATreeSearchResult } from './ATree';
7
7
  export interface IATreeItemProps<T> {
8
- isEqual: (a: T, b: T) => boolean;
9
- item: T;
10
- selectDisabled?: (item: T) => boolean | string | undefined;
11
- selectUnused?: (item: T) => boolean;
12
- isParentDisabled?: boolean | string;
8
+ ContentRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
9
+ RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
10
+ TreeItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
11
+ TreeItemRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
12
+ TreeItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
13
+ containerRef: React.RefObject<HTMLDivElement>;
13
14
  extIndents?: (props: IIndentProps) => {
14
15
  collapsed?: React.ReactNode;
15
16
  expanded?: React.ReactNode;
16
17
  isLast?: React.ReactNode;
17
18
  };
18
- indents: EIndentState[];
19
- useExpand: TUseValues<T[]>;
20
- useSelect: TUseValues<T[]>;
21
- useSearch: TUseValues<IATreeSearchResult<T> | undefined>;
22
- onDragStart?: (item: T) => void;
23
- onDragOver?: (e: React.DragEvent<HTMLElement>, item: T) => void;
24
- onDragEnd?: (e: React.DragEvent<HTMLElement>, item: T) => void;
25
- showCheckbox?: boolean;
19
+ height: number;
20
+ hoverdItem: T | null;
21
+ iconWidth: number;
26
22
  icons: {
27
- noChild?: TIcons | Exclude<React.ReactNode, string>;
28
23
  collapsed?: TIcons | Exclude<React.ReactNode, string>;
29
24
  expanded?: TIcons | Exclude<React.ReactNode, string>;
25
+ noChild?: TIcons | Exclude<React.ReactNode, string>;
30
26
  };
31
- iconWidth: number;
32
- isSelectMulti: boolean;
27
+ indents: EIndentState[];
33
28
  isDraggable?: boolean;
29
+ isEqual: (a: T, b: T) => boolean;
34
30
  isParentCheckHovered: boolean;
35
- hoverdItem: T | null;
36
- onMouseOver?: (e: React.MouseEvent<HTMLElement>, item: T) => void;
31
+ isParentDisabled?: boolean | string;
32
+ isSelectMulti: boolean;
33
+ item: T;
34
+ onDragEnd?: (e: React.DragEvent<HTMLElement>, item: T) => void;
35
+ onDragOver?: (e: React.DragEvent<HTMLElement>, item: T) => void;
36
+ onDragStart?: (item: T) => void;
37
37
  onMouseLeave?: (e: React.MouseEvent<HTMLElement>, item: T) => void;
38
- ContentRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
39
- TreeItemRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
40
- RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
38
+ onMouseOver?: (e: React.MouseEvent<HTMLElement>, item: T) => void;
41
39
  resources: typeof Resources.ATree;
42
- containerRef: React.RefObject<HTMLDivElement>;
43
- TreeItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
44
- TreeItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
45
40
  searchItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
46
41
  searchItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
47
- height: number;
42
+ selectDisabled?: (item: T) => boolean | string | undefined;
43
+ selectUnused?: (item: T) => boolean;
44
+ showCheckbox?: boolean;
45
+ useExpand: TUseValues<T[]>;
46
+ useSearch: TUseValues<IATreeSearchResult<T> | undefined>;
47
+ useSelect: TUseValues<T[]>;
48
48
  }
49
49
  declare enum EIndentState {
50
50
  Collapsed = "Collapsed",
@@ -1,17 +1,17 @@
1
1
  import { Resources } from '../AResource/AResource';
2
2
  import { IATreeItem, IATreeSearchResult } from './ATree';
3
3
  interface IATreeSearchProps<T extends IATreeItem<T>> {
4
- isEqual: (a: T, b: T) => boolean;
5
- searchResult: IATreeSearchResult<T> | undefined;
4
+ autoFocus?: boolean;
6
5
  initSearch: (inputValue: string) => void;
7
- searchUp: () => void;
8
- searchDown: () => void;
9
- searchEnter: () => void;
10
6
  isDisabled?: boolean | string;
7
+ isEqual: (a: T, b: T) => boolean;
11
8
  isLoading?: boolean;
12
- resources: typeof Resources.ATree;
13
9
  maxLength?: number;
14
- autoFocus?: boolean;
10
+ resources: typeof Resources.ATree;
11
+ searchDown: () => void;
12
+ searchEnter: () => void;
13
+ searchResult: IATreeSearchResult<T> | undefined;
14
+ searchUp: () => void;
15
15
  }
16
16
  export declare const ATreeSearch: <T extends IATreeItem<T>>(props: IATreeSearchProps<T>) => React.ReactNode;
17
17
  export {};
@@ -4,30 +4,30 @@ export type TPromisable<T> = T | Promise<T>;
4
4
  * Notice 1 : N, S, E, W are available when self is not falsy
5
5
  */
6
6
  export declare enum EDir4 {
7
+ E = "East",
7
8
  N = "North",
8
9
  S = "South",
9
- E = "East",
10
10
  W = "West"
11
11
  }
12
12
  export declare enum EDir12 {
13
+ E = "East",
14
+ EN = "EastNorth",
15
+ ES = "EastSouth",
13
16
  N = "North",
14
- NW = "NorthWest",
15
17
  NE = "NorthEast",
18
+ NW = "NorthWest",
16
19
  S = "South",
17
- SW = "SouthWest",
18
20
  SE = "SouthEast",
19
- E = "East",
20
- EN = "EastNorth",
21
- ES = "EastSouth",
21
+ SW = "SouthWest",
22
22
  W = "West",
23
23
  WN = "WestNorth",
24
24
  WS = "WestSouth"
25
25
  }
26
26
  interface IPosition {
27
- top?: number;
28
- left?: number;
29
27
  bottom?: number;
28
+ left?: number;
30
29
  right?: number;
30
+ top?: number;
31
31
  }
32
32
  export interface IOffset {
33
33
  x?: number;
@@ -3,6 +3,12 @@ import { TIcons } from '../AIcon/AIcon';
3
3
  export declare const AWrapTypes: readonly ["Default", "Error"];
4
4
  export type TAWrapTypes = (typeof AWrapTypes)[number];
5
5
  export interface IAWrapLabelProps {
6
+ /**
7
+ * asterisk? : boolean
8
+ *
9
+ * Description : Whether to display an asterisk (*) after the label
10
+ */
11
+ asterisk?: boolean;
6
12
  /**
7
13
  * className? : string
8
14
  *
@@ -15,12 +21,6 @@ export interface IAWrapLabelProps {
15
21
  * Description : Content to display before the label (icon, bullet point, etc.)
16
22
  */
17
23
  prefix?: React.ReactNode | TIcons | boolean;
18
- /**
19
- * asterisk? : boolean
20
- *
21
- * Description : Whether to display an asterisk (*) after the label
22
- */
23
- asterisk?: boolean;
24
24
  /**
25
25
  * style? : React.CSSProperties
26
26
  *
@@ -30,17 +30,11 @@ export interface IAWrapLabelProps {
30
30
  }
31
31
  export interface IAWrapProps {
32
32
  /**
33
- * wrapProps? : React.HTMLAttributes<HTMLDivElement>
34
- *
35
- * Description : wrapProps of AWrap
36
- */
37
- wrapProps?: React.HTMLAttributes<HTMLDivElement>;
38
- /**
39
- * helperText? : React.ReactNode | React.ReactNode[]
33
+ * children? : React.ReactNode
40
34
  *
41
- * Description : helperText of AWrap
35
+ * Description : children of AWrap
42
36
  */
43
- helperText?: React.ReactNode | React.ReactNode[];
37
+ children?: React.ReactNode;
44
38
  /**
45
39
  * errorMessage? : React.ReactNode | React.ReactNode[]
46
40
  *
@@ -48,11 +42,11 @@ export interface IAWrapProps {
48
42
  */
49
43
  errorMessage?: React.ReactNode | React.ReactNode[];
50
44
  /**
51
- * wrapType? : TAWrapTypes = 'Default'
45
+ * helperText? : React.ReactNode | React.ReactNode[]
52
46
  *
53
- * Description : wrapType of AWrap
47
+ * Description : helperText of AWrap
54
48
  */
55
- wrapType?: TAWrapTypes;
49
+ helperText?: React.ReactNode | React.ReactNode[];
56
50
  /**
57
51
  * label? : React.ReactNode
58
52
  *
@@ -66,11 +60,17 @@ export interface IAWrapProps {
66
60
  */
67
61
  labelProps?: IAWrapLabelProps;
68
62
  /**
69
- * children? : React.ReactNode
63
+ * wrapProps? : React.HTMLAttributes<HTMLDivElement>
70
64
  *
71
- * Description : children of AWrap
65
+ * Description : wrapProps of AWrap
72
66
  */
73
- children?: React.ReactNode;
67
+ wrapProps?: React.HTMLAttributes<HTMLDivElement>;
68
+ /**
69
+ * wrapType? : TAWrapTypes = 'Default'
70
+ *
71
+ * Description : wrapType of AWrap
72
+ */
73
+ wrapType?: TAWrapTypes;
74
74
  }
75
75
  /**
76
76
  * AComponent : AWrap
@@ -13,8 +13,8 @@ export declare function useDB(dbName: string, storeName: string, options?: {
13
13
  getAll: <T>() => Promise<Record<string, T>>;
14
14
  clearAll: () => Promise<boolean>;
15
15
  batchSave: <T>(items: Array<{
16
- id: string;
17
16
  data: T;
17
+ id: string;
18
18
  }>) => Promise<boolean>;
19
19
  batchDelete: (ids: string[]) => Promise<boolean>;
20
20
  getCached: <T>(id: string) => T | null;
@@ -2,33 +2,33 @@ export declare const ApiContext: {
2
2
  Init: () => void;
3
3
  Create: <PO, RO>(context: IApiContextParam) => {
4
4
  Call: (params?: {
5
- po?: PO | undefined;
5
+ noDefaultHandle?: number[] | boolean;
6
6
  onStream?: IOnStream<RO> | undefined;
7
7
  onStreamEnd?: IOnStream<RO> | undefined;
8
- noDefaultHandle?: number[] | boolean;
8
+ po?: PO | undefined;
9
9
  } | undefined) => Promise<{
10
+ data?: RO | undefined;
10
11
  errorCode: number;
11
12
  message: string;
12
- data?: RO | undefined;
13
13
  }>;
14
14
  };
15
15
  FetchBaseUrl: () => string;
16
16
  useDefaultHandler: (handler: (ro: IApiCallResult<any>, noDefaultHandle: number[] | boolean) => void) => void;
17
17
  };
18
18
  export interface IApiContextParam {
19
- url: string;
20
19
  method: 'GET' | 'POST' | 'PUT' | 'DELETE';
21
- stream?: boolean;
22
20
  paramType?: 'query' | 'body' | 'form';
21
+ stream?: boolean;
23
22
  timeout?: number;
23
+ url: string;
24
24
  }
25
25
  export interface IApiContext<PO, RO> {
26
26
  Call: (po?: PO) => Promise<IApiCallResult<RO>>;
27
27
  }
28
28
  export interface IApiCallResult<RO> {
29
+ data?: RO;
29
30
  errorCode: number;
30
31
  message: string;
31
- data?: RO;
32
32
  }
33
33
  export interface IApiCallError {
34
34
  err_code: number;
@@ -66,12 +66,12 @@ export declare const textMeasurement: {
66
66
  */
67
67
  calculateOptimalSelectWidth<T>({ elementRef, options, selectedOption, selectedOptions, placeholder, optionRenderer, type, isMulti, }: {
68
68
  elementRef: React.RefObject<HTMLElement>;
69
+ isMulti?: boolean;
70
+ optionRenderer: (option: T) => React.ReactNode;
69
71
  options?: readonly T[] | T[];
72
+ placeholder?: React.ReactNode;
70
73
  selectedOption?: T | null;
71
74
  selectedOptions?: T[];
72
- placeholder?: React.ReactNode;
73
- optionRenderer: (option: T) => React.ReactNode;
74
75
  type?: "Primary" | "Secondary";
75
- isMulti?: boolean;
76
76
  }): number;
77
77
  };
@@ -2,8 +2,8 @@
2
2
  * IndexedDB 관리 모듈
3
3
  */
4
4
  export interface IRecord {
5
- id: string;
6
5
  [key: string]: any;
6
+ id: string;
7
7
  }
8
8
  export declare const dbF: {
9
9
  save: (dbName: string, storeName: string, record: IRecord) => Promise<void>;