ados-rcm 1.1.630 → 1.1.632

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.
@@ -473,6 +473,7 @@ export interface IATableState<T extends IItem, K extends IItem = any> {
473
473
  export interface IATableActions<T extends IItem> {
474
474
  applyFilteration: (cb?: (oldFilteration: TATableFilteration<T>) => TATableFilteration<T>) => TPromisable<void>;
475
475
  fireOnStateChange: (cb?: (oldState: IATableState<T>) => IATableState<T>) => TPromisable<void>;
476
+ scrollToSelected: () => void;
476
477
  }
477
478
  export interface IATableProps<T extends IItem> {
478
479
  /**
@@ -547,12 +548,6 @@ export interface IATableProps<T extends IItem> {
547
548
  * Description : isSelectMulti of ATable. if true, multiple items can be selected.
548
549
  */
549
550
  isSelectMulti?: boolean;
550
- /**
551
- * isSelectScroll? : boolean
552
- *
553
- * Description : if true, automatically scrolls to selected row. only works when useSelect is provided.
554
- */
555
- isSelectScroll?: boolean;
556
551
  /**
557
552
  * noCount? : boolean
558
553
  *
@@ -601,6 +596,12 @@ export interface IATableProps<T extends IItem> {
601
596
  * Description : onStateChange of ATable. will be called when filteration, sortation, and pagination changes.
602
597
  */
603
598
  onStateChange?: (params: IATableState<T>) => TPromisable<void>;
599
+ /**
600
+ * pageNumber? : number
601
+ *
602
+ * Description : current page number from external. if provided, table will follow this page number. works like totalCount.
603
+ */
604
+ pageNumber?: number;
604
605
  /**
605
606
  * pagedItems? : T[]
606
607
  *
@@ -15,10 +15,10 @@ interface IATableBodyProps<T extends IItem> {
15
15
  isLoading?: boolean;
16
16
  isRowRendered: boolean;
17
17
  isSelectMulti?: boolean;
18
- isSelectScroll?: boolean;
19
18
  isTableDisabled?: string | boolean;
20
19
  noDefHeader?: boolean;
21
20
  noMarking?: boolean;
21
+ onScrollToSelectedReady?: (scrollToSelected: () => void) => void;
22
22
  pagedItems: T[];
23
23
  pagination: IATablePagination;
24
24
  rProps?: TCanCallback<IATableTRProps<T>, IABaseProps>;