ados-rcm 1.1.185 → 1.1.186

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  /**
@@ -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];