ia-table 0.15.4 → 0.15.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
@@ -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 {
@@ -487,6 +490,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
487
490
  tableId: string;
488
491
  getFocusedCell: () => SmartGridFocusedCell | null;
489
492
  getSelectedCells: () => SmartGridSelectedCell[];
493
+ getCellRanges: () => SmartGridCellRange[] | null;
490
494
  getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
491
495
  getDisplayedRowCount: () => number;
492
496
  setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
@@ -494,6 +498,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
494
498
  getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
495
499
  getTableInstance: () => SmartGridTableInstance | undefined;
496
500
  getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
501
+ getSortModel: () => SmartGridSortModel;
497
502
  setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
498
503
  getTableDispatcher: () => (action: SmartGridDisptach) => void;
499
504
  getTableStateContext: () => SmartGridStateContext;
@@ -609,12 +614,14 @@ declare interface SmartGridBaseColumnDefinition {
609
614
  headerTooltip?: string;
610
615
  filter?: string | boolean;
611
616
  filterParams?: {
617
+ [key: string]: unknown;
618
+ } & {
612
619
  filterOptions?: string[];
613
620
  textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
614
621
  numberCustomComparator?: (filter: number, value: unknown) => boolean;
615
622
  dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
616
623
  comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
617
- [key: string]: unknown;
624
+ maxCharLength?: number;
618
625
  };
619
626
  order_of_display?: number;
620
627
  is_hidden?: boolean;
@@ -876,6 +883,23 @@ declare interface SmartGridCallbackRefCurrent {
876
883
  onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
877
884
  }
878
885
 
886
+ /**
887
+ * Represents a cell range selection (similar to AG Grid's CellRange).
888
+ * Contains the start/end rows and the columns included in the range.
889
+ */
890
+ declare interface SmartGridCellRange {
891
+ startRow: {
892
+ rowIndex: number;
893
+ rowPinned: string | null;
894
+ };
895
+ endRow: {
896
+ rowIndex: number;
897
+ rowPinned: string | null;
898
+ };
899
+ columns: SmartGridColumnDefinition[];
900
+ startColumn: SmartGridColumnDefinition;
901
+ }
902
+
879
903
  declare type SmartGridCellRenderer = {
880
904
  value: unknown;
881
905
  data: SmartGridRowData;
@@ -1153,6 +1177,7 @@ declare type SmartGridDefaultColDef = {
1153
1177
  };
1154
1178
  headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
1155
1179
  enableCellChangeFlash?: boolean;
1180
+ maxCharLengthInSearch?: number;
1156
1181
  };
1157
1182
 
1158
1183
  declare type SmartGridDispatch = (action: {
@@ -1504,6 +1529,12 @@ declare interface SmartGridInternalGetRowsParams {
1504
1529
  noDataUpdate?: boolean;
1505
1530
  }
1506
1531
 
1532
+ declare interface SmartGridIsRowSelectableParams {
1533
+ data: SmartGridRowData;
1534
+ id: string;
1535
+ rowIndex: number;
1536
+ }
1537
+
1507
1538
  /** Last accessed sequence generator */
1508
1539
  declare interface SmartGridLastAccessedSequence {
1509
1540
  value: number;
@@ -1996,6 +2027,11 @@ declare interface SmartGridRowNodeTransaction {
1996
2027
  update: SmartGridRowNode[];
1997
2028
  }
1998
2029
 
2030
+ declare interface SmartGridRowSelectionRefCurrent {
2031
+ isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
2032
+ hideDisabledCheckboxes?: boolean;
2033
+ }
2034
+
1999
2035
  declare interface SmartGridRowSpanInfo {
2000
2036
  [key: string]: SmartGridRowInfo | boolean | undefined;
2001
2037
  isRowSpan?: boolean;
@@ -2212,6 +2248,7 @@ declare interface SmartGridStateContext {
2212
2248
  clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
2213
2249
  customCallback: SmartGridCustomCallbackRefCurrent;
2214
2250
  contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
2251
+ rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
2215
2252
  tableId: string;
2216
2253
  isSingleSelect: boolean;
2217
2254
  selectable: boolean;
@@ -2233,6 +2270,10 @@ declare interface SmartGridStateContext {
2233
2270
  totalColumnsCount: number;
2234
2271
  isCommentFeatureEnabled: boolean;
2235
2272
  isChatEnabled: boolean;
2273
+ noHeaderSelection: boolean;
2274
+ treeData: boolean;
2275
+ virtualizationConfig: SmartGridVirConfig;
2276
+ disableCurrentPageRecords: boolean;
2236
2277
  [key: string]: unknown;
2237
2278
  }
2238
2279
 
@@ -2342,6 +2383,10 @@ declare interface SmartGridViewportRange {
2342
2383
  endRow: number;
2343
2384
  }
2344
2385
 
2386
+ declare type SmartGridVirConfig = {
2387
+ threshold: number;
2388
+ };
2389
+
2345
2390
  declare interface SmartGridWrappedDataSource {
2346
2391
  _originalDatasource: SmartGridServerSideDataSource;
2347
2392
  _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.5",
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