ia-table 0.14.4 → 0.14.5

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.
package/dist/pivot.d.ts CHANGED
@@ -428,7 +428,7 @@ declare interface RowGroupParams {
428
428
 
429
429
  export declare type SmartGridAggregationType = "sum" | "count" | "avg" | "min" | "max";
430
430
 
431
- declare interface SmartGridAPI {
431
+ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra {
432
432
  getInfiniteRowModel: () => SmartGridInfiniteRowModel | null;
433
433
  getInfiniteCache: () => SmartGridInfiniteCache | null;
434
434
  getModel: () => SmartGridTableModel;
@@ -445,7 +445,6 @@ declare interface SmartGridAPI {
445
445
  setSelectedRows: (rowIds: (string | number)[]) => void;
446
446
  clearSelection: () => void;
447
447
  selectAll: () => void;
448
- refreshCells: () => void;
449
448
  getCache: () => SmartGridInfiniteCache | null;
450
449
  getCacheState: () => SmartGridCacheState_2 | null;
451
450
  getInfiniteCacheInstance: () => SmartGridInfiniteCache | null;
@@ -494,8 +493,11 @@ declare interface SmartGridAPI {
494
493
  applySearch: () => void;
495
494
  getCurrentPageData: () => SmartGridRowData[];
496
495
  getWholeTableData: () => SmartGridRowData[];
497
- flashCells: () => void;
498
- redrawRows: () => void;
496
+ refreshCells: (params?: SmartGridRefreshCellsParams) => void;
497
+ flashCells: (params?: SmartGridFlashCellsParams) => void;
498
+ redrawRows: (params?: SmartGridRedrawRowsParams) => void;
499
+ applyTransaction: (transaction: SmartGridRowDataTransaction) => SmartGridRowNodeTransaction;
500
+ getSelectedNodes: () => SmartGridRowNode[];
499
501
  refreshClientSideRowModel: () => void;
500
502
  resetRecentSearchChanges: () => void;
501
503
  onFilterChanged: () => void;
@@ -515,12 +517,16 @@ declare interface SmartGridAPI {
515
517
  fieldName: string;
516
518
  value: unknown;
517
519
  }) => void;
518
- setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) => void;
520
+ setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) => SmartGridWrappedDataSource | null;
519
521
  updateSmartGridTableData: (wholeData: SmartGridRowData[]) => void;
520
522
  downloadSmartGridExcel: (fileName?: string, visibleOnly?: boolean) => void;
521
523
  downloadSmartGridCSV: (fileName?: string, visibleOnly?: boolean) => void;
522
524
  }
523
525
 
526
+ declare type SmartGridApiExtra = {
527
+ [key: string]: unknown;
528
+ };
529
+
524
530
  declare interface SmartGridBaseColumnDefinition {
525
531
  field?: string;
526
532
  groupId?: string;
@@ -1046,6 +1052,7 @@ declare type SmartGridDefaultColDef = {
1046
1052
  innerHeaderComponent: React.FC<SmartGridHeaderStyleParams> | null;
1047
1053
  };
1048
1054
  headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
1055
+ enableCellChangeFlash?: boolean;
1049
1056
  };
1050
1057
 
1051
1058
  declare type SmartGridDispatch = (action: {
@@ -1166,6 +1173,24 @@ declare interface SmartGridFilterModel {
1166
1173
  [key: string]: unknown;
1167
1174
  }
1168
1175
 
1176
+ /**
1177
+ * Parameters for flashCells API (AG Grid compatible)
1178
+ */
1179
+ declare interface SmartGridFlashCellsParams {
1180
+ /** Optional list of row nodes to flash. If not provided with columns, nothing flashes. */
1181
+ rowNodes?: SmartGridRowNode[];
1182
+ /** Optional list of column IDs to flash. If not provided with rowNodes, nothing flashes. */
1183
+ columns?: string[];
1184
+ /** Duration of the flash in milliseconds. Default: 500 */
1185
+ flashDuration?: number;
1186
+ /** Duration of the fade animation in milliseconds. Default: 500 */
1187
+ fadeDuration?: number;
1188
+ /** Custom CSS class to apply during flash */
1189
+ flashCssClass?: string;
1190
+ /** Custom CSS class to apply during fade */
1191
+ fadeCssClass?: string;
1192
+ }
1193
+
1169
1194
  declare type SmartGridFloatingType = "top" | "bottom" | null;
1170
1195
 
1171
1196
  declare interface SmartGridFocusedCell extends SmartGridSelectedCell {
@@ -1426,6 +1451,19 @@ declare interface SmartGridPageSizeRef_2 {
1426
1451
  current: number;
1427
1452
  }
1428
1453
 
1454
+ declare interface SmartGridPaginationAPI {
1455
+ paginationGetPageSize: () => number;
1456
+ paginationGetRowCount: () => number;
1457
+ paginationGetCurrentPage: () => number;
1458
+ paginationGetTotalPages: () => number;
1459
+ paginationGoToPage: (pageNumber: number) => void;
1460
+ paginationGoToFirstPage: () => void;
1461
+ paginationGoToLastPage: () => void;
1462
+ paginationGoToNextPage: () => void;
1463
+ paginationGoToPreviousPage: () => void;
1464
+ paginationIsLastPageFound: () => boolean;
1465
+ }
1466
+
1429
1467
  declare interface SmartGridPaginationModel {
1430
1468
  currentPage: number;
1431
1469
  pageSize: number;
@@ -1681,6 +1719,14 @@ declare type SmartGridRangeFilter = {
1681
1719
  operator?: string;
1682
1720
  };
1683
1721
 
1722
+ /**
1723
+ * Parameters for redrawRows API (AG Grid compatible)
1724
+ */
1725
+ declare interface SmartGridRedrawRowsParams {
1726
+ /** Optional list of row nodes to redraw. If not provided, all rows are redrawn */
1727
+ rowNodes?: SmartGridRowNode[];
1728
+ }
1729
+
1684
1730
  declare interface SmartGridRefreshCacheOptions {
1685
1731
  purge?: boolean;
1686
1732
  partialRefresh?: boolean;
@@ -1688,6 +1734,20 @@ declare interface SmartGridRefreshCacheOptions {
1688
1734
  userInitiated?: boolean;
1689
1735
  }
1690
1736
 
1737
+ /**
1738
+ * Parameters for refreshCells API (AG Grid compatible)
1739
+ */
1740
+ declare interface SmartGridRefreshCellsParams {
1741
+ /** Optional list of row nodes to refresh. If not provided, all rows are refreshed. */
1742
+ rowNodes?: SmartGridRowNode[];
1743
+ /** Optional list of column IDs to refresh. If not provided, all columns are refreshed. */
1744
+ columns?: string[];
1745
+ /** If true, forces refresh even if the cell value hasn't changed. Default: false */
1746
+ force?: boolean;
1747
+ /** If true, suppresses the flash animation. Default: false */
1748
+ suppressFlash?: boolean;
1749
+ }
1750
+
1691
1751
  declare interface SmartGridRefreshOptions {
1692
1752
  purge?: boolean;
1693
1753
  resetPage?: boolean;
@@ -1728,6 +1788,20 @@ declare interface SmartGridRowData {
1728
1788
  };
1729
1789
  }
1730
1790
 
1791
+ /**
1792
+ * Transaction object for applyTransaction API (AG Grid compatible)
1793
+ */
1794
+ declare interface SmartGridRowDataTransaction {
1795
+ /** Rows to add */
1796
+ add?: SmartGridRowData[];
1797
+ /** Index position to add rows at. If not provided, rows are added at the end */
1798
+ addIndex?: number;
1799
+ /** Rows to remove. Only the row ID field is required */
1800
+ remove?: SmartGridRowData[];
1801
+ /** Rows to update. The row ID field is used to match rows */
1802
+ update?: SmartGridRowData[];
1803
+ }
1804
+
1731
1805
  declare interface SmartGridRowDragEndParams {
1732
1806
  api: SmartGridAPI;
1733
1807
  type: "rowDragEnd";
@@ -1801,6 +1875,18 @@ declare interface SmartGridRowNode extends SmartGridUpdateData {
1801
1875
  isGroup?: () => boolean;
1802
1876
  }
1803
1877
 
1878
+ /**
1879
+ * Result of applyTransaction API (AG Grid compatible)
1880
+ */
1881
+ declare interface SmartGridRowNodeTransaction {
1882
+ /** Row nodes that were added */
1883
+ add: SmartGridRowNode[];
1884
+ /** Row nodes that were removed */
1885
+ remove: SmartGridRowNode[];
1886
+ /** Row nodes that were updated */
1887
+ update: SmartGridRowNode[];
1888
+ }
1889
+
1804
1890
  declare interface SmartGridRowSpanInfo {
1805
1891
  [key: string]: SmartGridRowInfo | boolean | undefined;
1806
1892
  isRowSpan?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-table",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "moment": "^2.0.0",
@@ -1 +0,0 @@
1
- Patch applied at 2026-04-23T06:12:52.085Z