ia-table 0.15.4 → 0.15.6

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
@@ -96,6 +96,9 @@ declare const ACTION_TYPES: {
96
96
  readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
97
97
  readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
98
98
  readonly SET_NO_HEADER_SELECTION_CHECKBOX: "SET_NO_HEADER_SELECTION_CHECKBOX";
99
+ readonly SET_DATA_IS_TREE_DATA: "SET_DATA_IS_TREE_DATA";
100
+ readonly SET_VIRTUALIZATION_CONFIG: "SET_VIRTUALIZATION_CONFIG";
101
+ readonly SET_DISABLE_CURRENT_PAGE_RECORDS: "SET_DISABLE_CURRENT_PAGE_RECORDS";
99
102
  };
100
103
 
101
104
  declare class InfiniteBlock {
@@ -462,6 +465,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
462
465
  logCacheSummary: () => void | null;
463
466
  getCachedRowById: (id: string | number) => SmartGridRowData | null;
464
467
  getRowNode: (key: string | number) => Partial<SmartGridRowNode> | null;
468
+ getRowNodeWithIndex: (rowIndex: number) => Partial<SmartGridRowNode> | null;
465
469
  setVisibleRange: (startRow: number, endRow: number) => void;
466
470
  refreshCache: (options?: SmartGridRefreshOptions) => boolean;
467
471
  deselectAll: () => void;
@@ -487,6 +491,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
487
491
  tableId: string;
488
492
  getFocusedCell: () => SmartGridFocusedCell | null;
489
493
  getSelectedCells: () => SmartGridSelectedCell[];
494
+ getCellRanges: () => SmartGridCellRange[] | null;
490
495
  getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
491
496
  getDisplayedRowCount: () => number;
492
497
  setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
@@ -494,6 +499,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
494
499
  getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
495
500
  getTableInstance: () => SmartGridTableInstance | undefined;
496
501
  getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
502
+ getSortModel: () => SmartGridSortModel;
497
503
  setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
498
504
  getTableDispatcher: () => (action: SmartGridDisptach) => void;
499
505
  getTableStateContext: () => SmartGridStateContext;
@@ -609,12 +615,14 @@ declare interface SmartGridBaseColumnDefinition {
609
615
  headerTooltip?: string;
610
616
  filter?: string | boolean;
611
617
  filterParams?: {
618
+ [key: string]: unknown;
619
+ } & {
612
620
  filterOptions?: string[];
613
621
  textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
614
622
  numberCustomComparator?: (filter: number, value: unknown) => boolean;
615
623
  dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
616
624
  comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
617
- [key: string]: unknown;
625
+ maxCharLength?: number;
618
626
  };
619
627
  order_of_display?: number;
620
628
  is_hidden?: boolean;
@@ -876,6 +884,23 @@ declare interface SmartGridCallbackRefCurrent {
876
884
  onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
877
885
  }
878
886
 
887
+ /**
888
+ * Represents a cell range selection (similar to AG Grid's CellRange).
889
+ * Contains the start/end rows and the columns included in the range.
890
+ */
891
+ declare interface SmartGridCellRange {
892
+ startRow: {
893
+ rowIndex: number;
894
+ rowPinned: string | null;
895
+ };
896
+ endRow: {
897
+ rowIndex: number;
898
+ rowPinned: string | null;
899
+ };
900
+ columns: SmartGridColumnDefinition[];
901
+ startColumn: SmartGridColumnDefinition;
902
+ }
903
+
879
904
  declare type SmartGridCellRenderer = {
880
905
  value: unknown;
881
906
  data: SmartGridRowData;
@@ -1153,6 +1178,7 @@ declare type SmartGridDefaultColDef = {
1153
1178
  };
1154
1179
  headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
1155
1180
  enableCellChangeFlash?: boolean;
1181
+ maxCharLengthInSearch?: number;
1156
1182
  };
1157
1183
 
1158
1184
  declare type SmartGridDispatch = (action: {
@@ -1504,6 +1530,12 @@ declare interface SmartGridInternalGetRowsParams {
1504
1530
  noDataUpdate?: boolean;
1505
1531
  }
1506
1532
 
1533
+ declare interface SmartGridIsRowSelectableParams {
1534
+ data: SmartGridRowData;
1535
+ id: string;
1536
+ rowIndex: number;
1537
+ }
1538
+
1507
1539
  /** Last accessed sequence generator */
1508
1540
  declare interface SmartGridLastAccessedSequence {
1509
1541
  value: number;
@@ -1996,6 +2028,11 @@ declare interface SmartGridRowNodeTransaction {
1996
2028
  update: SmartGridRowNode[];
1997
2029
  }
1998
2030
 
2031
+ declare interface SmartGridRowSelectionRefCurrent {
2032
+ isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
2033
+ hideDisabledCheckboxes?: boolean;
2034
+ }
2035
+
1999
2036
  declare interface SmartGridRowSpanInfo {
2000
2037
  [key: string]: SmartGridRowInfo | boolean | undefined;
2001
2038
  isRowSpan?: boolean;
@@ -2212,6 +2249,7 @@ declare interface SmartGridStateContext {
2212
2249
  clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
2213
2250
  customCallback: SmartGridCustomCallbackRefCurrent;
2214
2251
  contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
2252
+ rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
2215
2253
  tableId: string;
2216
2254
  isSingleSelect: boolean;
2217
2255
  selectable: boolean;
@@ -2233,6 +2271,10 @@ declare interface SmartGridStateContext {
2233
2271
  totalColumnsCount: number;
2234
2272
  isCommentFeatureEnabled: boolean;
2235
2273
  isChatEnabled: boolean;
2274
+ noHeaderSelection: boolean;
2275
+ treeData: boolean;
2276
+ virtualizationConfig: SmartGridVirConfig;
2277
+ disableCurrentPageRecords: boolean;
2236
2278
  [key: string]: unknown;
2237
2279
  }
2238
2280
 
@@ -2342,6 +2384,10 @@ declare interface SmartGridViewportRange {
2342
2384
  endRow: number;
2343
2385
  }
2344
2386
 
2387
+ declare type SmartGridVirConfig = {
2388
+ threshold: number;
2389
+ };
2390
+
2345
2391
  declare interface SmartGridWrappedDataSource {
2346
2392
  _originalDatasource: SmartGridServerSideDataSource;
2347
2393
  _loadingBlocks: Record<number, boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-table",
3
- "version": "0.15.4",
3
+ "version": "0.15.6",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "moment": "^2.0.0",
@@ -1 +0,0 @@
1
- Patch applied at 2026-05-26T12:41:33.595Z