ados-rcm 1.1.178 → 1.1.179
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +2 -8
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +8 -2
- package/dist/AModule/AComponents/AResource/AResource.d.ts +4 -0
- package/dist/AModule/AComponents/ATable/ATable.d.ts +15 -33
- package/dist/index.cjs.js +32 -32
- package/dist/index.es.js +5234 -5222
- package/package.json +1 -1
@@ -39,11 +39,11 @@ export interface IADatePickerProps extends IABaseProps {
|
|
39
39
|
*/
|
40
40
|
className?: string;
|
41
41
|
/**
|
42
|
-
* useDate? : TUseValues<Date | undefined
|
42
|
+
* useDate? : TUseValues<Date | undefined>
|
43
43
|
*
|
44
44
|
* Description : useDate of ADatePicker
|
45
45
|
*/
|
46
|
-
useDate?: TUseValues<Date | undefined
|
46
|
+
useDate?: TUseValues<Date | undefined>;
|
47
47
|
/**
|
48
48
|
* position? : EDir12 = EDir12.SE
|
49
49
|
*
|
@@ -86,12 +86,6 @@ export interface IADatePickerProps extends IABaseProps {
|
|
86
86
|
* Description : RightAddon of ADatePicker
|
87
87
|
*/
|
88
88
|
RightAddon?: React.ReactNode;
|
89
|
-
/**
|
90
|
-
* CalendarHeaderAddon? : React.ReactNode
|
91
|
-
*
|
92
|
-
* Description : CalendarHeaderAddon of ADatePicker
|
93
|
-
*/
|
94
|
-
CalendarHeaderAddon?: React.ReactNode;
|
95
89
|
/**
|
96
90
|
* resources? : Partial<typeof Resources.ADatePicker>
|
97
91
|
*
|
@@ -17,15 +17,21 @@ export interface IDateRange {
|
|
17
17
|
}
|
18
18
|
export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate'> {
|
19
19
|
/**
|
20
|
-
* useDateRange : TUseValues<IDateRange | undefined
|
20
|
+
* useDateRange : TUseValues<IDateRange | undefined>;
|
21
21
|
*
|
22
22
|
* Description : useDateRange of ADateRangePicker
|
23
23
|
*/
|
24
|
-
useDateRange?: TUseValues<IDateRange | undefined
|
24
|
+
useDateRange?: TUseValues<IDateRange | undefined>;
|
25
25
|
/**
|
26
26
|
* yearsOptionSize? : number = 5
|
27
27
|
*/
|
28
28
|
yearsOptionSize?: number;
|
29
|
+
/**
|
30
|
+
* noDefaultChoices? : boolean;
|
31
|
+
*
|
32
|
+
* Description : don't use default choices of ADateRangePicker
|
33
|
+
*/
|
34
|
+
noDefaultChoices?: boolean;
|
29
35
|
/**
|
30
36
|
* resources : Partial<typeof Resources.ADateRangePicker>;
|
31
37
|
*
|
@@ -22,6 +22,10 @@ export declare const Resources: {
|
|
22
22
|
weekDays: (n: number) => string;
|
23
23
|
months: (n: number) => string;
|
24
24
|
'Select DateRange': string;
|
25
|
+
'1\uC77C': string;
|
26
|
+
'1\uC8FC\uC77C': string;
|
27
|
+
'1\uAC1C\uC6D4': string;
|
28
|
+
'3\uAC1C\uC6D4': string;
|
25
29
|
};
|
26
30
|
AFileBox: {
|
27
31
|
'drop file to select': string;
|
@@ -4,9 +4,9 @@ import { TCanCallback } from '../../AUtils/cbF';
|
|
4
4
|
import { IItem } from '../../AUtils/objF';
|
5
5
|
import { IABaseProps } from '../ABase/ABase';
|
6
6
|
import { IDateRange } from '../ADatePicker/ADateRangePicker';
|
7
|
-
import { TIcons } from '../AIcon/AIcon';
|
8
7
|
import { Resources } from '../AResource/AResource';
|
9
8
|
import { TActionRef, TIdx, TPromisable } from '../ATypes/ATypes';
|
9
|
+
import { TIcons } from '../AIcon/AIcon';
|
10
10
|
export interface IATableTHProps<T extends IItem> {
|
11
11
|
/**
|
12
12
|
* defKey : TIdx
|
@@ -140,12 +140,6 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
140
140
|
* Description : value of the String filter
|
141
141
|
*/
|
142
142
|
value?: string;
|
143
|
-
/**
|
144
|
-
* clearValue? : string
|
145
|
-
*
|
146
|
-
* Description : value will be set to clearValue when the clear button is clicked.
|
147
|
-
*/
|
148
|
-
clearValue?: string;
|
149
143
|
/**
|
150
144
|
* icon? : TIcons = 'Info'
|
151
145
|
*
|
@@ -153,7 +147,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
153
147
|
*/
|
154
148
|
icon?: TIcons;
|
155
149
|
/**
|
156
|
-
* iconTooltip? : React.ReactNode = placeholder
|
150
|
+
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
157
151
|
*
|
158
152
|
* Description : tooltip of the filter icon.
|
159
153
|
*/
|
@@ -171,7 +165,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
171
165
|
*/
|
172
166
|
predicate?: (item: T, defs: TATableDefs<T>, filterKey: keyof T | string, filter: IATableFilter<T>['String']) => any;
|
173
167
|
/**
|
174
|
-
* placeholder? : string =
|
168
|
+
* placeholder? : string = def.Name
|
175
169
|
*
|
176
170
|
* Description : placeholder of the String filter
|
177
171
|
* default is tableDef.HContent
|
@@ -209,12 +203,6 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
209
203
|
* Description : values of the Select filter
|
210
204
|
*/
|
211
205
|
value?: string | number | null;
|
212
|
-
/**
|
213
|
-
* clearValue? : string | number | null
|
214
|
-
*
|
215
|
-
* Description : value will be set to clearValue when the clear button is clicked.
|
216
|
-
*/
|
217
|
-
clearValue?: string | number | null;
|
218
206
|
/**
|
219
207
|
* icon? : TIcons = 'Info'
|
220
208
|
*
|
@@ -222,7 +210,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
222
210
|
*/
|
223
211
|
icon?: TIcons;
|
224
212
|
/**
|
225
|
-
* iconTooltip? : React.ReactNode = placeholder
|
213
|
+
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
226
214
|
*
|
227
215
|
* Description : tooltip of the filter icon.
|
228
216
|
*/
|
@@ -240,7 +228,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
240
228
|
*/
|
241
229
|
options: string[] | number[];
|
242
230
|
/**
|
243
|
-
* placeholder : string
|
231
|
+
* placeholder : string = def.Name
|
244
232
|
*
|
245
233
|
* Description : placeholder of the Select filter
|
246
234
|
*/
|
@@ -273,12 +261,6 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
273
261
|
* Description : value of the Date filter
|
274
262
|
*/
|
275
263
|
value?: Date;
|
276
|
-
/**
|
277
|
-
* clearValue? : Date
|
278
|
-
*
|
279
|
-
* Description : value will be set to clearValue when the clear button is clicked.
|
280
|
-
*/
|
281
|
-
clearValue?: Date;
|
282
264
|
/**
|
283
265
|
* icon? : TIcons = 'Info'
|
284
266
|
*
|
@@ -286,7 +268,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
286
268
|
*/
|
287
269
|
icon?: TIcons;
|
288
270
|
/**
|
289
|
-
* iconTooltip? : React.ReactNode = placeholder
|
271
|
+
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
290
272
|
*
|
291
273
|
* Description : tooltip of the filter icon.
|
292
274
|
*/
|
@@ -298,7 +280,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
298
280
|
*/
|
299
281
|
filterKey?: keyof K;
|
300
282
|
/**
|
301
|
-
* placeholder : string
|
283
|
+
* placeholder : string = def.Name
|
302
284
|
*
|
303
285
|
* Description : placeholder of the Date filter
|
304
286
|
*/
|
@@ -335,12 +317,6 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
335
317
|
* Description : value of the DateRange filter
|
336
318
|
*/
|
337
319
|
value?: IDateRange;
|
338
|
-
/**
|
339
|
-
* clearValue? : IDateRange
|
340
|
-
*
|
341
|
-
* Description : value will be set to clearValue when the clear button is clicked.
|
342
|
-
*/
|
343
|
-
clearValue?: IDateRange;
|
344
320
|
/**
|
345
321
|
* icon? : TIcons = 'Info'
|
346
322
|
*
|
@@ -348,13 +324,13 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
348
324
|
*/
|
349
325
|
icon?: TIcons;
|
350
326
|
/**
|
351
|
-
* iconTooltip? : React.ReactNode = placeholder
|
327
|
+
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
352
328
|
*
|
353
329
|
* Description : tooltip of the filter icon.
|
354
330
|
*/
|
355
331
|
iconTooltip?: React.ReactNode;
|
356
332
|
/**
|
357
|
-
* placeholder : string
|
333
|
+
* placeholder : string = def.Name
|
358
334
|
*
|
359
335
|
* Description : placeholder of the Select filter
|
360
336
|
*/
|
@@ -389,6 +365,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
389
365
|
* Description : predicate of the DateRange filter. if not provided, it will have default predicate.
|
390
366
|
*/
|
391
367
|
predicate?: (item: T, defs: TATableDefs<T>, filterKey: keyof T, filter: IATableFilter<T>['DateRange']) => any;
|
368
|
+
/**
|
369
|
+
* noDefaultChoices? : boolean
|
370
|
+
*
|
371
|
+
* Description : if true, default choices will not be shown.
|
372
|
+
*/
|
373
|
+
noDefaultChoices?: boolean;
|
392
374
|
};
|
393
375
|
}
|
394
376
|
export type TATableSomeFilter<T extends IItem, K extends IItem = any> = IATableFilter<T, K>[TATableFilterType];
|