ados-rcm 1.0.79 → 1.0.81

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.
@@ -2,7 +2,7 @@ import { TUseValues } from '../../AHooks/useValues';
2
2
  import { IABaseProps } from '../ABase/ABase';
3
3
  export interface IACheckBoxProps extends IABaseProps {
4
4
  /**
5
- * useCheck? : TUseValues<any>
5
+ * useCheck? : TUseValues<any>
6
6
  *
7
7
  * Description : [useCheck, setUseCheck] = useValues of ACheckBox. if useCheck is truthy, ACheckBox is checked.
8
8
  */
@@ -213,11 +213,22 @@ export interface IADialogProps {
213
213
  export declare const ADialog: (props: IADialogProps) => React.ReactPortal;
214
214
  export interface IADialogState {
215
215
  isOpen: boolean;
216
- setIsOpen: (isOpen: boolean) => void;
217
216
  open: () => void;
218
217
  onClose: () => void;
219
218
  }
220
- export declare const useADialogState: () => IADialogState;
219
+ export type TADialogStates<T extends string> = {
220
+ [key in T]: IADialogState;
221
+ };
222
+ export declare const useADialogStates: <T extends string>(dlgNames: readonly T[]) => TADialogStates<T>;
223
+ export type TADialogActionRefs<T extends string> = {
224
+ [key in T]: TActionRef<IADialogActions>;
225
+ };
226
+ /**
227
+ * useADialogActionRefs
228
+ *
229
+ * Description : useADialogActionRefs is a hook that creates actionRefs for dialogs. dlgNames SHOULD NOT BE CHANGED on runtime
230
+ */
231
+ export declare const useADialogActionRefs: <T extends string>(dlgNames: readonly T[]) => TADialogActionRefs<T>;
221
232
  export interface IADialogFrameProps {
222
233
  /**
223
234
  * dlgState : IADialogState
@@ -231,4 +242,7 @@ export interface IADialogFrameProps {
231
242
  */
232
243
  children: React.ReactNode;
233
244
  }
234
- export declare const ADialogFrame: (props: IADialogFrameProps) => import("react/jsx-runtime").JSX.Element;
245
+ export interface IADialogFrameChildren {
246
+ dlgState: IADialogState;
247
+ }
248
+ export declare const ADialogFrame: (props: IADialogFrameProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -29,9 +29,12 @@ export declare const Resources: {
29
29
  'Toggle Filter': string;
30
30
  };
31
31
  ASelect: {
32
- Select: string;
32
+ 'Select(Placeholder)': string;
33
+ };
34
+ AMultiSelect: {
35
+ 'Select(Placeholder)': string;
33
36
  };
34
37
  };
35
38
  export type TResource = typeof Resources;
36
39
  export type TResourceType = keyof TResource;
37
- export declare const SetResources: <K extends "ADialog" | "ATree" | "ADatePicker" | "AFileBox" | "ATable" | "ASelect">(resourceType: K, resources: TResource[K]) => void;
40
+ export declare const SetResources: <K extends "ADialog" | "ATree" | "ADatePicker" | "AFileBox" | "ATable" | "ASelect" | "AMultiSelect">(resourceType: K, resources: TResource[K]) => void;
@@ -0,0 +1,139 @@
1
+ import React from 'react';
2
+ import { TUseValues } from '../../AHooks/useValues';
3
+ import { IABaseProps } from '../ABase/ABase';
4
+ import { IAWrapProps } from '../AWrap/AWrap';
5
+ interface IOptionRendererProps<T> {
6
+ /**
7
+ * option : T
8
+ *
9
+ * Description : option of AMultiSelect
10
+ */
11
+ option: T;
12
+ }
13
+ interface ISelectedRendererProps<T> {
14
+ /**
15
+ * selectedOptions : T[]
16
+ *
17
+ * Description : selected options of AMultiSelect
18
+ */
19
+ selectedOptions: T[];
20
+ /**
21
+ * OptionRenderer : (props: IAMultiSelectOptionRendererProps<I>) => React.ReactNode
22
+ *
23
+ * Description : OptionRenderer of AMultiSelect
24
+ */
25
+ OptionRenderer: (props: IOptionRendererProps<T>) => React.ReactNode;
26
+ /**
27
+ * placeholder : React.ReactNode
28
+ *
29
+ * Description : placeholder of AMultiSelect
30
+ */
31
+ placeholder?: React.ReactNode;
32
+ }
33
+ export interface IAMultiSelectProps<T> extends IABaseProps, IAWrapProps {
34
+ /**
35
+ * options : T[]
36
+ *
37
+ * Description : options of AMultiSelect
38
+ */
39
+ options: T[];
40
+ /**
41
+ * useSelect? : TUseValues<T[]>
42
+ *
43
+ * Description : useSelect of AMultiSelect
44
+ */
45
+ useSelect?: TUseValues<T[]>;
46
+ /**
47
+ * type? : 'Primary' | 'Secondary' = 'Primary'
48
+ *
49
+ * Description : type of AMultiSelect
50
+ */
51
+ type?: 'Primary' | 'Secondary';
52
+ /**
53
+ * placeholder? : React.ReactNode
54
+ *
55
+ * Description : placeholder of AMultiSelect. it is shown when no option is selected
56
+ */
57
+ placeholder?: React.ReactNode;
58
+ /**
59
+ * onClose? : () => void
60
+ *
61
+ * Description : onClose of AMultiSelect
62
+ */
63
+ onClose?: () => void;
64
+ /**
65
+ * SelectedRenderer? : (props: ISelectedRendererProps<T>) => React.ReactNode = DefaultSelectedRenderer
66
+ *
67
+ * Description : Renderer of Selected Options of AMultiSelect
68
+ */
69
+ SelectedRenderer?: (props: ISelectedRendererProps<T>) => React.ReactNode;
70
+ /**
71
+ * OptionRenderer? : (props: IOptionRendererProps<T>) => React.ReactNode = DefaultOptionRenderer
72
+ *
73
+ * Description : Renderer of Options of AMultiSelect
74
+ */
75
+ OptionRenderer?: (props: IOptionRendererProps<T>) => React.ReactNode;
76
+ /**
77
+ * minShowRows? : number = 2
78
+ *
79
+ * Description : minShowRows of AMultiSelect
80
+ */
81
+ minShowRows?: number;
82
+ /**
83
+ * maxShowRows? : number = 6
84
+ *
85
+ * Description : maxShowRows of AMultiSelect. scrollbar will appear when overflow
86
+ */
87
+ maxShowRows?: number;
88
+ /**
89
+ * height? : number
90
+ *
91
+ * Description : height of AMultiSelect
92
+ */
93
+ height?: number;
94
+ /**
95
+ * arrowProps? : React.HTMLProps<HTMLDivElement>
96
+ *
97
+ * Description : divProps for Arrow of AMultiSelect
98
+ */
99
+ arrowProps?: React.HTMLProps<HTMLDivElement>;
100
+ }
101
+ /**
102
+ * AComponent : AMultiSelect
103
+ *
104
+ * Description : AMultiSelect is a select component. give options and useSelect to select an option.
105
+ * if useSelect is given for I[], it will act as a multi select, otherwise it will act as a single select.
106
+ *
107
+ * Basic Usage :
108
+ *
109
+ * const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
110
+ * const [selected, setSelected] = useState<typeof options[0]>(options[0]);
111
+ * const OptionRenderer = ({option}) => <div>{option.name}</div>;
112
+ * const SelectedRenderer = ({selected, placeholder}) => selected ? selected.name : placeholder;
113
+ * const [multiSelected, setMultiSelected] = useState<(typeof options[0])[]>([options[0]]);
114
+ * const MultiSelectedRenderer = ({selected, placeholder}) => selected.length > 0 ? string.join(selected.map(e => e.name), ', ') : placeholder;
115
+ *
116
+ * if (case 1)
117
+ * <AMultiSelect options={strOptions}
118
+ * useSelect={[selected, setSelected]}/>
119
+ *
120
+ * if (case 2)
121
+ * <AMultiSelect options={options}
122
+ * useSelect={[selected, setSelected]}
123
+ * OptionRenderer={OptionRenderer}/>
124
+ *
125
+ * if (case 3)
126
+ * <AMultiSelect options={options}
127
+ * useSelect={[selected, setSelected]}
128
+ * OptionRenderer={OptionRenderer}
129
+ * SelectedRenderer={SelectedRenderer}/>
130
+ *
131
+ * if (case 4)
132
+ * <AMultiSelect options={options}
133
+ * useSelect={[multiSelected, setMultiSelected]}
134
+ * OptionRenderer={OptionRenderer}
135
+ * SelectedRenderer={MultiSelectedRenderer}/>
136
+ *
137
+ */
138
+ export declare const AMultiSelect: <T>(props: IAMultiSelectProps<T>) => React.ReactNode;
139
+ export {};
@@ -2,47 +2,47 @@ import React from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
4
  import { IAWrapProps } from '../AWrap/AWrap';
5
- export interface IASelectSelectedRendererProps<I, S extends (null | I) | I[]> {
5
+ interface IOptionRendererProps<T> {
6
6
  /**
7
- * OptionRenderer : (props: IASelectOptionRendererProps<I>) => React.ReactNode
7
+ * option : T
8
8
  *
9
- * Description : OptionRenderer of ASelect
9
+ * Description : option item of ASelect
10
10
  */
11
- OptionRenderer: (props: IASelectOptionRendererProps<I>) => React.ReactNode;
11
+ option: T;
12
+ }
13
+ interface ISelectedRendererProps<T> {
12
14
  /**
13
- * selected : S
15
+ * selected : T
14
16
  *
15
- * Description : selected items of ASelect
17
+ * Description : selectedOption of ASelect
16
18
  */
17
- selected: S;
19
+ selectedOption: T;
18
20
  /**
19
- * placeholder : React.ReactNode
21
+ * OptionRenderer : (props: IOptionRendererProps<T>) => React.ReactNode
20
22
  *
21
- * Description : placeholder of ASelect
23
+ * Description : OptionRenderer of ASelect
22
24
  */
23
- placeholder?: React.ReactNode;
24
- }
25
- export interface IASelectOptionRendererProps<I> {
25
+ OptionRenderer: (props: IOptionRendererProps<Exclude<T, null>>) => React.ReactNode;
26
26
  /**
27
- * option : I
27
+ * placeholder : React.ReactNode
28
28
  *
29
- * Description : option of ASelect
29
+ * Description : placeholder of ASelect
30
30
  */
31
- option: I;
31
+ placeholder?: React.ReactNode;
32
32
  }
33
- export interface IASelectProps<I, S extends (null | I) | I[]> extends IABaseProps, IAWrapProps {
33
+ export interface IASelectProps<T> extends IABaseProps, IAWrapProps {
34
34
  /**
35
- * options : I[]
35
+ * options : T[]
36
36
  *
37
- * Description : options of ASelect
37
+ * Description : options of ASelect. CAREFUL null is not rendered as an option.
38
38
  */
39
- options: I[];
39
+ options: T[];
40
40
  /**
41
- * useSelect? : TUseValues<K>
41
+ * useSelect? : TUseValues<T>
42
42
  *
43
43
  * Description : useSelect of ASelect
44
44
  */
45
- useSelect?: TUseValues<S>;
45
+ useSelect?: TUseValues<T>;
46
46
  /**
47
47
  * type? : 'Primary' | 'Secondary' = 'Primary'
48
48
  *
@@ -62,17 +62,17 @@ export interface IASelectProps<I, S extends (null | I) | I[]> extends IABaseProp
62
62
  */
63
63
  onClose?: () => void;
64
64
  /**
65
- * SelectedRenderer? : (props: IASelectSelectedRendererProps<T>) => React.ReactNode = DefaultSelectedRenderer
65
+ * OptionRenderer? : (props: IOptionRendererProps<T>) => React.ReactNode = DefaultSelectedRenderer
66
66
  *
67
- * Description : Renderer of Selected Options of ASelect
67
+ * Description : OptionRenderer of Selected Options of ASelect
68
68
  */
69
- SelectedRenderer?: (props: IASelectSelectedRendererProps<I, S>) => React.ReactNode;
69
+ OptionRenderer?: (props: IOptionRendererProps<Exclude<T, null>>) => React.ReactNode;
70
70
  /**
71
- * OptionRenderer? : (props: IASelectOptionRendererProps<T>) => React.ReactNode = DefaultOptionRenderer
71
+ * SelectedRenderer? : (props: ISelectedRendererProps<T>) => React.ReactNode
72
72
  *
73
- * Description : Renderer of Options of ASelect
73
+ * Description : SelectedRenderer of ASelect
74
74
  */
75
- OptionRenderer?: (props: IASelectOptionRendererProps<I>) => React.ReactNode;
75
+ SelectedRenderer?: (props: ISelectedRendererProps<T>) => React.ReactNode;
76
76
  /**
77
77
  * minShowRows? : number = 2
78
78
  *
@@ -135,5 +135,5 @@ export interface IASelectProps<I, S extends (null | I) | I[]> extends IABaseProp
135
135
  * SelectedRenderer={MultiSelectedRenderer}/>
136
136
  *
137
137
  */
138
- export declare const ASelect: <I, S extends I | I[] | null>(props: IASelectProps<I, S>) => React.ReactNode;
139
- export declare const DefaultOptionRenderer: <T>(props: IASelectOptionRendererProps<T>) => string | (T & undefined) | (T & number) | (T & false) | (T & true) | (T & React.ReactElement<any, string | React.JSXElementConstructor<any>>) | (T & Iterable<React.ReactNode>) | null;
138
+ export declare const ASelect: <T>(props: IASelectProps<T>) => React.ReactNode;
139
+ export {};
@@ -128,153 +128,6 @@ export type TATableDefs<T extends IItem> = {
128
128
  [key: TIdx]: IATableDef<T>;
129
129
  };
130
130
  export type TATableFilterType = 'String' | 'Select' | 'Date' | 'DateRange';
131
- export interface IATableFilterDef<T extends IItem> {
132
- String: {
133
- /**
134
- * type : 'String'
135
- *
136
- * Description : type of the String filter Def
137
- */
138
- type: 'String';
139
- /**
140
- * defKey? : keyof T | ''
141
- *
142
- * Description : defKey of the String filter Def
143
- */
144
- defKey?: keyof T | '';
145
- /**
146
- * predicate? : (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['String']) => any
147
- *
148
- * Description : predicate of the String filter Def. if not provided, it will have default predicate.
149
- */
150
- predicate?: (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['String']) => any;
151
- /**
152
- * placeholder? : string
153
- *
154
- * Description : placeholder of the String filter Def
155
- */
156
- placeholder?: string;
157
- };
158
- Select: {
159
- /**
160
- * type : 'Select'
161
- *
162
- * Description : type of the Select filter Def
163
- */
164
- type: 'Select';
165
- /**
166
- * defKey? : keyof T | ''
167
- *
168
- * Description : defKey of the Select filter Def
169
- */
170
- defKey?: keyof T | '';
171
- /**
172
- * options : (string | number)[]
173
- *
174
- * Description : options of the Select filter Def
175
- */
176
- options: (string | number)[];
177
- /**
178
- * placeholder : (string | number)[]
179
- *
180
- * Description : values of the Select filter Def
181
- */
182
- placeholder?: string;
183
- /**
184
- * OptionRenderer? : (props: { option: string | number }) => React.ReactNode;
185
- *
186
- * Description : OptionRenderer of the Select filter Def
187
- */
188
- OptionRenderer?: (props: {
189
- option: string | number;
190
- }) => React.ReactNode;
191
- /**
192
- * predicate? : (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['Select']) => any
193
- *
194
- * Description : predicate of the Select filter Def. if not provided, it will have default predicate.
195
- */
196
- predicate?: (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['Select']) => any;
197
- };
198
- Date: {
199
- /**
200
- * type : 'Date'
201
- *
202
- * Description : type of the Date filter Def
203
- */
204
- type: 'Date';
205
- /**
206
- * defKey? : keyof T | ''
207
- *
208
- * Description : defKey of the Date filter Def
209
- */
210
- defKey?: keyof T | '';
211
- /**
212
- * minDate? : Date
213
- *
214
- * Description : minDate of the Date filter Def
215
- */
216
- minDate?: Date;
217
- /**
218
- * maxDate? : Date
219
- *
220
- * Description : maxDate of the Date filter Def
221
- */
222
- maxDate?: Date;
223
- /**
224
- * predicate? : (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['Date']) => any
225
- *
226
- * Description : predicate of the Date filter Def. if not provided, it will have default predicate.
227
- */
228
- predicate?: (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['Date']) => any;
229
- };
230
- DateRange: {
231
- /**
232
- * type : 'DateRange'
233
- *
234
- * Description : type of the DateRange filter Def
235
- */
236
- type: 'DateRange';
237
- /**
238
- * defKey? : keyof T | ''
239
- *
240
- * Description : defKey of the DateRange filter Def
241
- */
242
- defKey?: keyof T | '';
243
- /**
244
- * minDate? : Date
245
- *
246
- * Description : minDate of the DateRange filter Def
247
- */
248
- minDate?: Date;
249
- /**
250
- * maxDate? : Date
251
- *
252
- * Description : maxDate of the DateRange filter Def
253
- */
254
- maxDate?: Date;
255
- /**
256
- * predicate? : (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['DateRange']) => any
257
- *
258
- * Description : predicate of the DateRange filter Def. if not provided, it will have default predicate.
259
- */
260
- predicate?: (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['DateRange']) => any;
261
- };
262
- }
263
- export type TATableSomeFilterDef<T extends IItem> = IATableFilterDef<T>[TATableFilterType];
264
- export type TATableFilterationDefs<T extends IItem> = {
265
- /**
266
- * type : 'And' | 'Or'
267
- *
268
- * Description : type of the filteration Defs
269
- */
270
- type: 'And' | 'Or';
271
- /**
272
- * defs : TATableSomeFilterDef<T>[]
273
- *
274
- * Description : defs of the filteration Defs
275
- */
276
- defs: TATableSomeFilterDef<T>[];
277
- };
278
131
  export interface IATableFilter<T extends IItem> {
279
132
  String: {
280
133
  /**
@@ -294,7 +147,7 @@ export interface IATableFilter<T extends IItem> {
294
147
  *
295
148
  * Description : value of the String filter
296
149
  */
297
- value: string;
150
+ value?: string;
298
151
  /**
299
152
  * predicate? : (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['String']) => any
300
153
  *
@@ -322,17 +175,17 @@ export interface IATableFilter<T extends IItem> {
322
175
  */
323
176
  defKey: keyof T | '';
324
177
  /**
325
- * value : (string | number)[]
178
+ * value : string | number | null
326
179
  *
327
180
  * Description : values of the Select filter
328
181
  */
329
- value: string | number | null;
182
+ value?: string | number | null;
330
183
  /**
331
- * options : (string | number)[]
184
+ * options :
332
185
  *
333
186
  * Description : options of the Select filter
334
187
  */
335
- options: (string | number)[];
188
+ options: string[] | number[];
336
189
  /**
337
190
  * placeholder : string
338
191
  *
@@ -345,7 +198,7 @@ export interface IATableFilter<T extends IItem> {
345
198
  * Description : OptionRenderer of the Select filter
346
199
  */
347
200
  OptionRenderer?: (props: {
348
- option: string | number;
201
+ option: string | number | null;
349
202
  }) => React.ReactNode;
350
203
  /**
351
204
  * predicate? : (item: T, defs: TATableDefs<T>, filter: IATableFilter<T>['Select']) => any
@@ -372,7 +225,7 @@ export interface IATableFilter<T extends IItem> {
372
225
  *
373
226
  * Description : value of the Date filter
374
227
  */
375
- value: Date;
228
+ value?: Date;
376
229
  /**
377
230
  * minDate? : Date
378
231
  *
@@ -410,13 +263,13 @@ export interface IATableFilter<T extends IItem> {
410
263
  *
411
264
  * Description : sDate of the DateRange filter
412
265
  */
413
- sDate: Date;
266
+ sDate?: Date;
414
267
  /**
415
268
  * eDate : Date
416
269
  *
417
270
  * Description : eDate of the DateRange filter
418
271
  */
419
- eDate: Date;
272
+ eDate?: Date;
420
273
  /**
421
274
  * minDate? : Date
422
275
  *
@@ -539,7 +392,7 @@ export interface IATableProps<T extends IItem> {
539
392
  */
540
393
  rProps?: TCanCallback<IATableTRProps<T>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>>;
541
394
  /**
542
- * useSelect? : TUseValues<T>
395
+ * useSelect? : TUseValues<T[]>
543
396
  *
544
397
  * Description : useSelect of ATable.
545
398
  */
@@ -610,24 +463,12 @@ export interface IATableProps<T extends IItem> {
610
463
  * Description : totalCount of ATable. if provided, pagination will be affected.
611
464
  */
612
465
  totalCount?: number;
613
- /**
614
- * filterationDefs? : TATableFilterationDefs<T>
615
- *
616
- * Description : filterationDefs of ATable
617
- */
618
- filterationDefs?: TATableFilterationDefs<T>;
619
466
  /**
620
467
  * useFilteration? : TUseValues<TATableFilteration<T>>
621
468
  *
622
469
  * Description : useFilteration of ATable. filteration can be controlled by useFilteration.
623
470
  */
624
471
  useFilteration?: TUseValues<TATableFilteration<T>>;
625
- /**
626
- * toggleFilterationDefs? : TATableFilterationDefs<T>
627
- *
628
- * Description : toggleFilterationDefs of ATable. table can have two filterations. one is main filteration, and the other is toggle filteration.
629
- */
630
- toggleFilterationDefs?: TATableFilterationDefs<T>;
631
472
  /**
632
473
  * useToggleFilteration? : TUseValues<TATableFilteration<T>>
633
474
  *
@@ -15,6 +15,7 @@ interface IATableBodyProps<T extends IItem> {
15
15
  pagination: IATablePagination;
16
16
  pagedItems: T[];
17
17
  noMarking?: boolean;
18
+ isLoading?: boolean;
18
19
  showRows?: number;
19
20
  }
20
21
  export declare const ATableBody: <T extends IItem>(props: IATableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -238,6 +238,21 @@ declare const Default: {
238
238
  '--ASelect_Secondary_Option_hover_background-color': string;
239
239
  '--ASelect_Secondary_Option_active_background-color': string;
240
240
  '--ASelect_Secondary_Option_Selected_background-color': string;
241
+ '--AMultiSelect_Primary_border': string;
242
+ '--AMultiSelect_Primary_hover_border': string;
243
+ '--AMultiSelect_Primary_Arrow_color': string;
244
+ '--AMultiSelect_Primary_Options_background-color': string;
245
+ '--AMultiSelect_Primary_Options_border': string;
246
+ '--AMultiSelect_Primary_Option_hover_background-color': string;
247
+ '--AMultiSelect_Primary_Option_active_background-color': string;
248
+ '--AMultiSelect_Primary_Option_Selected_background-color': string;
249
+ '--AMultiSelect_Secondary_background-color': string;
250
+ '--AMultiSelect_Secondary_Arrow_color': string;
251
+ '--AMultiSelect_Secondary_Options_background-color': string;
252
+ '--AMultiSelect_Secondary_Options_border': string;
253
+ '--AMultiSelect_Secondary_Option_hover_background-color': string;
254
+ '--AMultiSelect_Secondary_Option_active_background-color': string;
255
+ '--AMultiSelect_Secondary_Option_Selected_background-color': string;
241
256
  '--ATree_background-color': string;
242
257
  '--ATree_Indent_border': string;
243
258
  '--ATreeHeader_border-top': string;
@@ -316,7 +331,7 @@ declare const Default: {
316
331
  '--ATableFilter_Icon_color': string;
317
332
  };
318
333
  export type TAThemeKey = keyof typeof Default;
319
- export declare const AThemeKeys: ("--ATheme" | "--Font" | "--Body-transition" | "--black_and_white-black" | "--black_and_white-white" | "--black_and_white-white-02" | "--black_and_white-white-03" | "--gray-deep-gray" | "--gray-deep-gray2" | "--gray-gray-01" | "--gray-gray-02" | "--gray-gray-03" | "--gray-gray-04" | "--gray-gray-05" | "--gray-gray-06" | "--gray-gray-07" | "--gray-gray-08" | "--gray-gray-09" | "--gray-gray-10" | "--gray-l_add_d-gray" | "--orange-orange-01" | "--orange-orange-02" | "--orange-orange-03" | "--orange-orange-04" | "--orange-orange-05" | "--orange-orange-06" | "--orange-orange-07" | "--orange-orange-08" | "--orange-orange-09" | "--orange-orange-10" | "--red-red-01" | "--red-red-02" | "--red-red-03" | "--red-red-04" | "--red-red-05" | "--red-red-06" | "--red-red-07" | "--red-red-08" | "--red-red-09" | "--red-red-10" | "--d-blue-blue-01" | "--d-blue-blue-02" | "--d-blue-blue-03" | "--d-blue-blue-04" | "--d-blue-blue-05" | "--d-blue-blue-06" | "--d-blue-blue-07" | "--d-blue-blue-08" | "--d-blue-blue-09" | "--d-blue-blue-10" | "--l-blue-blue-01" | "--l-blue-blue-02" | "--l-blue-blue-03" | "--l-blue-blue-04" | "--l-blue-blue-05" | "--l-blue-blue-06" | "--l-blue-blue-07" | "--l-blue-blue-08" | "--l-blue-blue-09" | "--l-blue-blue-10" | "--yellow-yellow-01" | "--Scrollbar-border-radius" | "--Scrollbar-width" | "--Body-background-color" | "--Body-color" | "--action-fill-hover-primary" | "--action-fill-press-primary" | "--action-fill-hover-secondary" | "--action-fill-press-secondary" | "--action-fill-hover-tertiary" | "--action-fill-press-tertiary" | "--action-fill-rest-primary" | "--action-fill-rest-secondary" | "--action-fill-rest-tertiary" | "--action-storke-primary" | "--action-stroke-secondary" | "--action-text-primary" | "--action-text-secondary" | "--action-text-tertiary" | "--action-text-quaternary" | "--button-fill-hover-primary" | "--button-fill-hover-secondary" | "--button-fill-inactive-secondary" | "--button-fill-press-primary" | "--button-fill-press-secondary" | "--button-fill-rest-primary" | "--button-fill-rest-secondary" | "--button-stroke-secondary" | "--button-text-primary" | "--button-text-secondary" | "--checkbox-stroke" | "--content-primary" | "--content-secondary" | "--content-tertiary" | "--content-quaternary" | "--error-text" | "--error-background" | "--error-highlight" | "--dialog-background" | "--dialog-content" | "--dialog-depth" | "--dialog-stroke" | "--fill-background" | "--fill-header" | "--highlight-primary" | "--highlight-secondary" | "--invisible" | "--menuitem-content" | "--menuitem-fill-select" | "--menuitem-text" | "--opacity-primary" | "--opacity-secondary" | "--Scrollbar-handle" | "--Scrollbar-handle-hover" | "--Scrollbar-handle-active" | "--Scrollbar-track" | "--search-content" | "--search-fill-active" | "--search-fill-rest" | "--search-stroke-active" | "--search-text-hint" | "--search-text-placeholder" | "--stepper-connect" | "--stepper-fill-active" | "--stepper-fill-inactive" | "--stepper-stroke-active" | "--stepper-stroke-inactive" | "--stroke-primary" | "--stroke-secondary" | "--switch-fill-handle" | "--switch-fill-track-off" | "--switch-fill-track-on" | "--switch-stroke-handle-off" | "--switch-stroke-handle-on" | "--table-depth" | "--table-elevation" | "--table-header-content" | "--table-stroke-primary" | "--table-stroke-secondary" | "--table-text-primary" | "--table-text-secondary" | "--tapbutton-stroke-active" | "--tapbutton-stroke-rest" | "--tapbutton-text" | "--textinput-content" | "--textinput-fill-active" | "--textinput-fill-rest" | "--textinput-stroke-active" | "--textinput-stroke-error" | "--textinput-text-hint" | "--textinput-text-placeholder" | "--ui-depth" | "--ui-elevation" | "--CDialog-background" | "--CDialog-background2" | "--CDialog-background3" | "--CTableBody-linear" | "--CTableWidthChanger-background" | "--CTableWidthChanger-background2" | "--ABase_Dimming_background-color" | "--ATooltip_background-color" | "--ATooltip_color" | "--AButton_Primary_border" | "--AButton_Primary_background-color" | "--AButton_Primary_color" | "--AButton_Primary_hover_background-color" | "--AButton_Primary_active_background-color" | "--AButton_Secondary_border" | "--AButton_Secondary_background-color" | "--AButton_Secondary_color" | "--AButton_Secondary_hover_background-color" | "--AButton_Secondary_active_background-color" | "--AInput_Primary_background-color" | "--AInput_Primary_border" | "--AInput_Primary_color" | "--AInput_Primary_hover_border" | "--AInput_Primary_focus_background-color" | "--AInput_Primary_focus_border" | "--AInput_Secondary_background-color" | "--AInput_Secondary_border" | "--AInput_Secondary_color" | "--AInput_Secondary_hover_border" | "--AInput_Secondary_focus_border" | "--AInput_Error_HelperText_color" | "--AInput_Error_background-color" | "--AInput_Error_border" | "--AInput_Error_color" | "--AInput_Error_placeholder_color" | "--ATextArea_Primary_background-color" | "--ATextArea_Primary_border" | "--ATextArea_Primary_color" | "--ATextArea_Primary_hover_border" | "--ATextArea_Primary_focus_background-color" | "--ATextArea_Primary_focus_border" | "--ATextArea_Secondary_background-color" | "--ATextArea_Secondary_border" | "--ATextArea_Secondary_color" | "--ATextArea_Secondary_hover_border" | "--ATextArea_Secondary_focus_border" | "--ATextArea_Error_background-color" | "--ATextArea_Error_border" | "--ATextArea_Error_color" | "--ATextArea_Error_placeholder_color" | "--ACheckBox_color" | "--ADialog_Paper_background-color" | "--ADialog_background-color" | "--ADialog_border" | "--ADialog_Body_Title_font" | "--ADialog_Action_background-color" | "--ASelect_Primary_border" | "--ASelect_Primary_hover_border" | "--ASelect_Primary_Arrow_color" | "--ASelect_Primary_Options_background-color" | "--ASelect_Primary_Options_border" | "--ASelect_Primary_Option_hover_background-color" | "--ASelect_Primary_Option_active_background-color" | "--ASelect_Primary_Option_Selected_background-color" | "--ASelect_Secondary_background-color" | "--ASelect_Secondary_Arrow_color" | "--ASelect_Secondary_Options_background-color" | "--ASelect_Secondary_Options_border" | "--ASelect_Secondary_Option_hover_background-color" | "--ASelect_Secondary_Option_active_background-color" | "--ASelect_Secondary_Option_Selected_background-color" | "--ATree_background-color" | "--ATree_Indent_border" | "--ATreeHeader_border-top" | "--ATreeHeader_border-bottom" | "--ATreeItem_hover_background-color" | "--ATreeItem_active_background-color" | "--ATreeItem_select_background-color" | "--ATreeItem_search_background-color" | "--ATreeItem_search_border-top" | "--ATreeItem_search_border-bottom" | "--ATreeItem_select_color" | "--ASwitch_Track_Falsy_border-color" | "--ASwitch_Track_Truthy_border-color" | "--ATab_font" | "--ATab_Option_IsSelected_font" | "--ATab_IndicatorTrack_Primary_border-bottom" | "--ATab_Indicator_Primary_background-color" | "--ATab_Option_Secondary_border" | "--ATab_Option_Secondary_IsSelected_border-bottom" | "--AFileBox_border" | "--AFileBox_background-color" | "--AFileBox_SelectedFile_color" | "--AFileBox_Dropping_color" | "--AFileBox_Dropping_font" | "--AListView_border-top" | "--AListView_Row_border-bottom" | "--AListView_Label_border-left" | "--AListView_Label_font" | "--AListView_Rendered_border-left" | "--AStepper_OutCircle_background-color" | "--AStepper_OutCircle_IsOver_background-color" | "--AStepper_InCircle_background-color" | "--AStepper_InCircle_IsOver_background-color" | "--AStepper_Line_background-color" | "--AStepper_Line_IsOver_background-color" | "--ADatePicker_Anchor_border" | "--ADatePicker_Anchor_color" | "--ADatePicker_Anchor_hover_border" | "--ADatePicker_Anchor_focus_border" | "--ADatePicker_Anchor_Icon_color" | "--ADatePicker_background-color" | "--ADatePicker_border" | "--ADatePicker_StringInputContainer_background-color" | "--ADatePicker_String_border" | "--ADatePicker_Prev_background-color" | "--ADatePicker_Prev_border-right" | "--ADatePicker_Next_background-color" | "--ADatePicker_Next_border-left" | "--ADatePicker_Cell_color" | "--ADatePicker_Cell_IsNotCurrentMonth_color" | "--ADatePicker_Cell_IsDisabled_color" | "--ADatePicker_Cell_IsSelected_background-color" | "--ADatePicker_Cell_IsSelected_color" | "--ADatePicker_Cell_IsHovered_background-color" | "--AIconButton_Primary_color" | "--AIconButton_Primary_background-color" | "--AIconButton_Primary_border" | "--AIconButton_Primary_hover_border" | "--ATableBody_BodyHeader_border-top" | "--ATableBody_TRow_border-bottom" | "--ATableBody_TRow_IsSelected_background-color" | "--ATableBody_TRow_IsSelectable_hover_background-color" | "--ATableBody_TH_color" | "--ATableBody_TH_font-size" | "--ATableBody_TD_font-size" | "--ATableBody_TD_IsMarked_background-color" | "--ATableBody_Resizer_hover_ResizerCenter_background-color" | "--ATableBody_Resizer_active_ResizerCenter_background-color" | "--ATableBody_Resizer_active_ResizerOut_background-color" | "--ATableBody_Resizer_active_ResizerIn_background-color" | "--ATableFooter_Button_IsSelected_background-color" | "--ATableFooter_Button_IsSelected_color" | "--ATableFooter_Button_IsDisabled_color" | "--ATableFilter_SubFilters_background-color" | "--ATableFilter_SubFilters_border" | "--ATableFilter_Icon_color")[];
334
+ export declare const AThemeKeys: ("--ATheme" | "--Font" | "--Body-transition" | "--black_and_white-black" | "--black_and_white-white" | "--black_and_white-white-02" | "--black_and_white-white-03" | "--gray-deep-gray" | "--gray-deep-gray2" | "--gray-gray-01" | "--gray-gray-02" | "--gray-gray-03" | "--gray-gray-04" | "--gray-gray-05" | "--gray-gray-06" | "--gray-gray-07" | "--gray-gray-08" | "--gray-gray-09" | "--gray-gray-10" | "--gray-l_add_d-gray" | "--orange-orange-01" | "--orange-orange-02" | "--orange-orange-03" | "--orange-orange-04" | "--orange-orange-05" | "--orange-orange-06" | "--orange-orange-07" | "--orange-orange-08" | "--orange-orange-09" | "--orange-orange-10" | "--red-red-01" | "--red-red-02" | "--red-red-03" | "--red-red-04" | "--red-red-05" | "--red-red-06" | "--red-red-07" | "--red-red-08" | "--red-red-09" | "--red-red-10" | "--d-blue-blue-01" | "--d-blue-blue-02" | "--d-blue-blue-03" | "--d-blue-blue-04" | "--d-blue-blue-05" | "--d-blue-blue-06" | "--d-blue-blue-07" | "--d-blue-blue-08" | "--d-blue-blue-09" | "--d-blue-blue-10" | "--l-blue-blue-01" | "--l-blue-blue-02" | "--l-blue-blue-03" | "--l-blue-blue-04" | "--l-blue-blue-05" | "--l-blue-blue-06" | "--l-blue-blue-07" | "--l-blue-blue-08" | "--l-blue-blue-09" | "--l-blue-blue-10" | "--yellow-yellow-01" | "--Scrollbar-border-radius" | "--Scrollbar-width" | "--Body-background-color" | "--Body-color" | "--action-fill-hover-primary" | "--action-fill-press-primary" | "--action-fill-hover-secondary" | "--action-fill-press-secondary" | "--action-fill-hover-tertiary" | "--action-fill-press-tertiary" | "--action-fill-rest-primary" | "--action-fill-rest-secondary" | "--action-fill-rest-tertiary" | "--action-storke-primary" | "--action-stroke-secondary" | "--action-text-primary" | "--action-text-secondary" | "--action-text-tertiary" | "--action-text-quaternary" | "--button-fill-hover-primary" | "--button-fill-hover-secondary" | "--button-fill-inactive-secondary" | "--button-fill-press-primary" | "--button-fill-press-secondary" | "--button-fill-rest-primary" | "--button-fill-rest-secondary" | "--button-stroke-secondary" | "--button-text-primary" | "--button-text-secondary" | "--checkbox-stroke" | "--content-primary" | "--content-secondary" | "--content-tertiary" | "--content-quaternary" | "--error-text" | "--error-background" | "--error-highlight" | "--dialog-background" | "--dialog-content" | "--dialog-depth" | "--dialog-stroke" | "--fill-background" | "--fill-header" | "--highlight-primary" | "--highlight-secondary" | "--invisible" | "--menuitem-content" | "--menuitem-fill-select" | "--menuitem-text" | "--opacity-primary" | "--opacity-secondary" | "--Scrollbar-handle" | "--Scrollbar-handle-hover" | "--Scrollbar-handle-active" | "--Scrollbar-track" | "--search-content" | "--search-fill-active" | "--search-fill-rest" | "--search-stroke-active" | "--search-text-hint" | "--search-text-placeholder" | "--stepper-connect" | "--stepper-fill-active" | "--stepper-fill-inactive" | "--stepper-stroke-active" | "--stepper-stroke-inactive" | "--stroke-primary" | "--stroke-secondary" | "--switch-fill-handle" | "--switch-fill-track-off" | "--switch-fill-track-on" | "--switch-stroke-handle-off" | "--switch-stroke-handle-on" | "--table-depth" | "--table-elevation" | "--table-header-content" | "--table-stroke-primary" | "--table-stroke-secondary" | "--table-text-primary" | "--table-text-secondary" | "--tapbutton-stroke-active" | "--tapbutton-stroke-rest" | "--tapbutton-text" | "--textinput-content" | "--textinput-fill-active" | "--textinput-fill-rest" | "--textinput-stroke-active" | "--textinput-stroke-error" | "--textinput-text-hint" | "--textinput-text-placeholder" | "--ui-depth" | "--ui-elevation" | "--CDialog-background" | "--CDialog-background2" | "--CDialog-background3" | "--CTableBody-linear" | "--CTableWidthChanger-background" | "--CTableWidthChanger-background2" | "--ABase_Dimming_background-color" | "--ATooltip_background-color" | "--ATooltip_color" | "--AButton_Primary_border" | "--AButton_Primary_background-color" | "--AButton_Primary_color" | "--AButton_Primary_hover_background-color" | "--AButton_Primary_active_background-color" | "--AButton_Secondary_border" | "--AButton_Secondary_background-color" | "--AButton_Secondary_color" | "--AButton_Secondary_hover_background-color" | "--AButton_Secondary_active_background-color" | "--AInput_Primary_background-color" | "--AInput_Primary_border" | "--AInput_Primary_color" | "--AInput_Primary_hover_border" | "--AInput_Primary_focus_background-color" | "--AInput_Primary_focus_border" | "--AInput_Secondary_background-color" | "--AInput_Secondary_border" | "--AInput_Secondary_color" | "--AInput_Secondary_hover_border" | "--AInput_Secondary_focus_border" | "--AInput_Error_HelperText_color" | "--AInput_Error_background-color" | "--AInput_Error_border" | "--AInput_Error_color" | "--AInput_Error_placeholder_color" | "--ATextArea_Primary_background-color" | "--ATextArea_Primary_border" | "--ATextArea_Primary_color" | "--ATextArea_Primary_hover_border" | "--ATextArea_Primary_focus_background-color" | "--ATextArea_Primary_focus_border" | "--ATextArea_Secondary_background-color" | "--ATextArea_Secondary_border" | "--ATextArea_Secondary_color" | "--ATextArea_Secondary_hover_border" | "--ATextArea_Secondary_focus_border" | "--ATextArea_Error_background-color" | "--ATextArea_Error_border" | "--ATextArea_Error_color" | "--ATextArea_Error_placeholder_color" | "--ACheckBox_color" | "--ADialog_Paper_background-color" | "--ADialog_background-color" | "--ADialog_border" | "--ADialog_Body_Title_font" | "--ADialog_Action_background-color" | "--ASelect_Primary_border" | "--ASelect_Primary_hover_border" | "--ASelect_Primary_Arrow_color" | "--ASelect_Primary_Options_background-color" | "--ASelect_Primary_Options_border" | "--ASelect_Primary_Option_hover_background-color" | "--ASelect_Primary_Option_active_background-color" | "--ASelect_Primary_Option_Selected_background-color" | "--ASelect_Secondary_background-color" | "--ASelect_Secondary_Arrow_color" | "--ASelect_Secondary_Options_background-color" | "--ASelect_Secondary_Options_border" | "--ASelect_Secondary_Option_hover_background-color" | "--ASelect_Secondary_Option_active_background-color" | "--ASelect_Secondary_Option_Selected_background-color" | "--AMultiSelect_Primary_border" | "--AMultiSelect_Primary_hover_border" | "--AMultiSelect_Primary_Arrow_color" | "--AMultiSelect_Primary_Options_background-color" | "--AMultiSelect_Primary_Options_border" | "--AMultiSelect_Primary_Option_hover_background-color" | "--AMultiSelect_Primary_Option_active_background-color" | "--AMultiSelect_Primary_Option_Selected_background-color" | "--AMultiSelect_Secondary_background-color" | "--AMultiSelect_Secondary_Arrow_color" | "--AMultiSelect_Secondary_Options_background-color" | "--AMultiSelect_Secondary_Options_border" | "--AMultiSelect_Secondary_Option_hover_background-color" | "--AMultiSelect_Secondary_Option_active_background-color" | "--AMultiSelect_Secondary_Option_Selected_background-color" | "--ATree_background-color" | "--ATree_Indent_border" | "--ATreeHeader_border-top" | "--ATreeHeader_border-bottom" | "--ATreeItem_hover_background-color" | "--ATreeItem_active_background-color" | "--ATreeItem_select_background-color" | "--ATreeItem_search_background-color" | "--ATreeItem_search_border-top" | "--ATreeItem_search_border-bottom" | "--ATreeItem_select_color" | "--ASwitch_Track_Falsy_border-color" | "--ASwitch_Track_Truthy_border-color" | "--ATab_font" | "--ATab_Option_IsSelected_font" | "--ATab_IndicatorTrack_Primary_border-bottom" | "--ATab_Indicator_Primary_background-color" | "--ATab_Option_Secondary_border" | "--ATab_Option_Secondary_IsSelected_border-bottom" | "--AFileBox_border" | "--AFileBox_background-color" | "--AFileBox_SelectedFile_color" | "--AFileBox_Dropping_color" | "--AFileBox_Dropping_font" | "--AListView_border-top" | "--AListView_Row_border-bottom" | "--AListView_Label_border-left" | "--AListView_Label_font" | "--AListView_Rendered_border-left" | "--AStepper_OutCircle_background-color" | "--AStepper_OutCircle_IsOver_background-color" | "--AStepper_InCircle_background-color" | "--AStepper_InCircle_IsOver_background-color" | "--AStepper_Line_background-color" | "--AStepper_Line_IsOver_background-color" | "--ADatePicker_Anchor_border" | "--ADatePicker_Anchor_color" | "--ADatePicker_Anchor_hover_border" | "--ADatePicker_Anchor_focus_border" | "--ADatePicker_Anchor_Icon_color" | "--ADatePicker_background-color" | "--ADatePicker_border" | "--ADatePicker_StringInputContainer_background-color" | "--ADatePicker_String_border" | "--ADatePicker_Prev_background-color" | "--ADatePicker_Prev_border-right" | "--ADatePicker_Next_background-color" | "--ADatePicker_Next_border-left" | "--ADatePicker_Cell_color" | "--ADatePicker_Cell_IsNotCurrentMonth_color" | "--ADatePicker_Cell_IsDisabled_color" | "--ADatePicker_Cell_IsSelected_background-color" | "--ADatePicker_Cell_IsSelected_color" | "--ADatePicker_Cell_IsHovered_background-color" | "--AIconButton_Primary_color" | "--AIconButton_Primary_background-color" | "--AIconButton_Primary_border" | "--AIconButton_Primary_hover_border" | "--ATableBody_BodyHeader_border-top" | "--ATableBody_TRow_border-bottom" | "--ATableBody_TRow_IsSelected_background-color" | "--ATableBody_TRow_IsSelectable_hover_background-color" | "--ATableBody_TH_color" | "--ATableBody_TH_font-size" | "--ATableBody_TD_font-size" | "--ATableBody_TD_IsMarked_background-color" | "--ATableBody_Resizer_hover_ResizerCenter_background-color" | "--ATableBody_Resizer_active_ResizerCenter_background-color" | "--ATableBody_Resizer_active_ResizerOut_background-color" | "--ATableBody_Resizer_active_ResizerIn_background-color" | "--ATableFooter_Button_IsSelected_background-color" | "--ATableFooter_Button_IsSelected_color" | "--ATableFooter_Button_IsDisabled_color" | "--ATableFilter_SubFilters_background-color" | "--ATableFilter_SubFilters_border" | "--ATableFilter_Icon_color")[];
320
335
  export declare const AThemes: {
321
336
  Add: (theme: IATheme) => void;
322
337
  Remove: (theme: string) => void;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * useEvent
3
+ *
4
+ * Description : useEvent is a hook that adds event listener to element.
5
+ *
6
+ *
7
+ * @param element element : window, document, or HTMLElement
8
+ * @param action action : action for element event
9
+ * @param onAction onAction : event handler for element event
10
+ * @param options? options : options for addEventListener
11
+ */
12
+ export declare function useEvent<T extends Window | Document | HTMLElement | null, K extends T extends Window ? keyof WindowEventMap : T extends Document ? keyof DocumentEventMap : T extends HTMLElement ? keyof HTMLElementEventMap : string, L extends K extends keyof WindowEventMap ? (this: T, ev: WindowEventMap[K]) => any : K extends keyof DocumentEventMap ? (this: T, ev: DocumentEventMap[K]) => any : K extends keyof HTMLElementEventMap ? (this: T, ev: HTMLElementEventMap[K]) => any : EventListenerOrEventListenerObject>(element: T, action: K, onAction: L, options?: AddEventListenerOptions): void;