ados-rcm 1.0.590 → 1.0.592

Sign up to get free protection for your applications and to get access to all the features.
@@ -297,13 +297,13 @@ export interface IATableSortation<T extends IItem> {
297
297
  *
298
298
  * Description : defKey of the sortation
299
299
  */
300
- defKey?: keyof T;
300
+ defKey: keyof T;
301
301
  /**
302
302
  * isAsc? : boolean
303
303
  *
304
304
  * Description : isAsc of the sortation
305
305
  */
306
- isAsc?: boolean;
306
+ isAsc: boolean;
307
307
  /**
308
308
  * sortF? : TATableSortF<T>
309
309
  *
@@ -356,11 +356,11 @@ export interface IATableState<T extends IItem, K extends IItem = any> {
356
356
  */
357
357
  pagination: IATablePagination;
358
358
  /**
359
- * sortation : IATableSortation<T>
359
+ * sortation? : IATableSortation<T>
360
360
  *
361
361
  * Description : sortation of the state
362
362
  */
363
- sortation: IATableSortation<T>;
363
+ sortation?: IATableSortation<T>;
364
364
  }
365
365
  export interface IATableActions<T extends IItem> {
366
366
  fireOnStateChange: (cb?: (oldState: IATableState<T>) => IATableState<T>) => TPromisable<void>;
@@ -482,11 +482,11 @@ export interface IATableProps<T extends IItem> {
482
482
  */
483
483
  usePagination?: TUseValues<Partial<IATablePagination>, IATablePagination>;
484
484
  /**
485
- * useSortation? : TUseValues<IATableSortation<T>>
485
+ * useSortation? : TUseValues<IATableSortation<T> | undefined>;
486
486
  *
487
487
  * Description : useSortation of ATable. sortation can be controlled by useSortation.
488
488
  */
489
- useSortation?: TUseValues<IATableSortation<T>>;
489
+ useSortation?: TUseValues<IATableSortation<T> | undefined>;
490
490
  /**
491
491
  * showRows? : number
492
492
  *
@@ -14,7 +14,7 @@ interface IATableBodyProps<T extends IItem> {
14
14
  isSelectMulti?: boolean;
15
15
  selectDisabled?: (item: T) => string | boolean | undefined;
16
16
  appliedFilteration: TATableFilteration<T>;
17
- useSortation: TUseValues<IATableSortation<T>>;
17
+ useSortation: TUseValues<IATableSortation<T> | undefined>;
18
18
  pagination: IATablePagination;
19
19
  pagedItems: T[];
20
20
  noMarking?: boolean;
@@ -9,7 +9,7 @@ export declare const defaultPredicate: TDefaultPredicate;
9
9
  */
10
10
  export declare const tableF: {
11
11
  applyFilteration: <T extends IItem>(items: T[], defs: TATableDefs<T>, filteration: TATableFilteration<T>) => T[];
12
- applySortation: <T_1 extends IItem>(items: T_1[], defs: TATableDefs<T_1>, sortation: IATableSortation<T_1>) => T_1[];
12
+ applySortation: <T_1 extends IItem>(items: T_1[], defs: TATableDefs<T_1>, sortation?: IATableSortation<T_1> | undefined) => T_1[];
13
13
  applyPagination: <T_2 extends IItem>(items: T_2[], page: number, pageSize: number) => T_2[];
14
14
  getPages: (totalCount: number, pageSize: number) => number[];
15
15
  getRangedPages: (page: number, totalCount: number, pageSize: number, pageRange: number) => {