ados-rcm 1.1.185 → 1.1.187
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/ATable/ATable.d.ts +20 -8
- package/dist/index.cjs.js +12 -12
- package/dist/index.es.js +285 -285
- package/package.json +1 -1
@@ -141,11 +141,11 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
141
141
|
*/
|
142
142
|
value?: string;
|
143
143
|
/**
|
144
|
-
* icon? : TIcons = 'Info'
|
144
|
+
* icon? : TIcons | Exclude<React.ReactNode, string> = 'Info'
|
145
145
|
*
|
146
146
|
* Description : icon of the String filter
|
147
147
|
*/
|
148
|
-
icon?: TIcons
|
148
|
+
icon?: TIcons | Exclude<React.ReactNode, string>;
|
149
149
|
/**
|
150
150
|
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
151
151
|
*
|
@@ -204,11 +204,11 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
204
204
|
*/
|
205
205
|
value?: string | number | null;
|
206
206
|
/**
|
207
|
-
* icon? : TIcons = 'Info'
|
207
|
+
* icon? : TIcons | Exclude<React.ReactNode, string> = 'Info'
|
208
208
|
*
|
209
209
|
* Description : icon of the String filter
|
210
210
|
*/
|
211
|
-
icon?: TIcons
|
211
|
+
icon?: TIcons | Exclude<React.ReactNode, string>;
|
212
212
|
/**
|
213
213
|
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
214
214
|
*
|
@@ -262,11 +262,11 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
262
262
|
*/
|
263
263
|
value?: Date;
|
264
264
|
/**
|
265
|
-
* icon? : TIcons = '
|
265
|
+
* icon? : TIcons | Exclude<React.ReactNode, string> = 'CalerdarDay'
|
266
266
|
*
|
267
267
|
* Description : icon of the String filter
|
268
268
|
*/
|
269
|
-
icon?: TIcons
|
269
|
+
icon?: TIcons | Exclude<React.ReactNode, string>;
|
270
270
|
/**
|
271
271
|
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
272
272
|
*
|
@@ -303,6 +303,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
303
303
|
* Description : predicate of the Date filter. if not provided, it will have default predicate.
|
304
304
|
*/
|
305
305
|
predicate?: (item: T, defs: TATableDefs<T>, filterKey: keyof T, filter: IATableFilter<T>['Date']) => any;
|
306
|
+
/**
|
307
|
+
* validation? : (value?: Date) => string | undefined
|
308
|
+
*
|
309
|
+
* Description : validation of the String filter
|
310
|
+
*/
|
311
|
+
validation?: (value?: Date) => string;
|
306
312
|
};
|
307
313
|
DateRange: {
|
308
314
|
/**
|
@@ -318,11 +324,11 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
318
324
|
*/
|
319
325
|
value?: IDateRange;
|
320
326
|
/**
|
321
|
-
* icon? : TIcons = '
|
327
|
+
* icon? : TIcons | Exclude<React.ReactNode, string> = 'CalendarDay'
|
322
328
|
*
|
323
329
|
* Description : icon of the String filter
|
324
330
|
*/
|
325
|
-
icon?: TIcons
|
331
|
+
icon?: TIcons | Exclude<React.ReactNode, string>;
|
326
332
|
/**
|
327
333
|
* iconTooltip? : React.ReactNode = def.Name ?? placeholder
|
328
334
|
*
|
@@ -371,6 +377,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
371
377
|
* Description : if true, default choices will not be shown.
|
372
378
|
*/
|
373
379
|
noDefaultChoices?: boolean;
|
380
|
+
/**
|
381
|
+
* validation? : (value?: IDateRange) => string | undefined
|
382
|
+
*
|
383
|
+
* Description : validation of the String filter
|
384
|
+
*/
|
385
|
+
validation?: (value?: IDateRange) => string;
|
374
386
|
};
|
375
387
|
}
|
376
388
|
export type TATableSomeFilter<T extends IItem, K extends IItem = any> = IATableFilter<T, K>[TATableFilterType];
|