ia-table 0.15.3 → 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
@@ -95,6 +95,10 @@ declare const ACTION_TYPES: {
95
95
  readonly SET_COMMENT_CONTEXT_REF: "SET_COMMENT_CONTEXT_REF";
96
96
  readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
97
97
  readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
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";
98
102
  };
99
103
 
100
104
  declare class InfiniteBlock {
@@ -486,6 +490,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
486
490
  tableId: string;
487
491
  getFocusedCell: () => SmartGridFocusedCell | null;
488
492
  getSelectedCells: () => SmartGridSelectedCell[];
493
+ getCellRanges: () => SmartGridCellRange[] | null;
489
494
  getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
490
495
  getDisplayedRowCount: () => number;
491
496
  setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
@@ -493,6 +498,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
493
498
  getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
494
499
  getTableInstance: () => SmartGridTableInstance | undefined;
495
500
  getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
501
+ getSortModel: () => SmartGridSortModel;
496
502
  setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
497
503
  getTableDispatcher: () => (action: SmartGridDisptach) => void;
498
504
  getTableStateContext: () => SmartGridStateContext;
@@ -608,12 +614,14 @@ declare interface SmartGridBaseColumnDefinition {
608
614
  headerTooltip?: string;
609
615
  filter?: string | boolean;
610
616
  filterParams?: {
617
+ [key: string]: unknown;
618
+ } & {
611
619
  filterOptions?: string[];
612
620
  textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
613
621
  numberCustomComparator?: (filter: number, value: unknown) => boolean;
614
622
  dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
615
623
  comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
616
- [key: string]: unknown;
624
+ maxCharLength?: number;
617
625
  };
618
626
  order_of_display?: number;
619
627
  is_hidden?: boolean;
@@ -875,6 +883,23 @@ declare interface SmartGridCallbackRefCurrent {
875
883
  onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
876
884
  }
877
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
+
878
903
  declare type SmartGridCellRenderer = {
879
904
  value: unknown;
880
905
  data: SmartGridRowData;
@@ -1152,6 +1177,7 @@ declare type SmartGridDefaultColDef = {
1152
1177
  };
1153
1178
  headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
1154
1179
  enableCellChangeFlash?: boolean;
1180
+ maxCharLengthInSearch?: number;
1155
1181
  };
1156
1182
 
1157
1183
  declare type SmartGridDispatch = (action: {
@@ -1503,6 +1529,12 @@ declare interface SmartGridInternalGetRowsParams {
1503
1529
  noDataUpdate?: boolean;
1504
1530
  }
1505
1531
 
1532
+ declare interface SmartGridIsRowSelectableParams {
1533
+ data: SmartGridRowData;
1534
+ id: string;
1535
+ rowIndex: number;
1536
+ }
1537
+
1506
1538
  /** Last accessed sequence generator */
1507
1539
  declare interface SmartGridLastAccessedSequence {
1508
1540
  value: number;
@@ -1995,6 +2027,11 @@ declare interface SmartGridRowNodeTransaction {
1995
2027
  update: SmartGridRowNode[];
1996
2028
  }
1997
2029
 
2030
+ declare interface SmartGridRowSelectionRefCurrent {
2031
+ isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
2032
+ hideDisabledCheckboxes?: boolean;
2033
+ }
2034
+
1998
2035
  declare interface SmartGridRowSpanInfo {
1999
2036
  [key: string]: SmartGridRowInfo | boolean | undefined;
2000
2037
  isRowSpan?: boolean;
@@ -2211,6 +2248,7 @@ declare interface SmartGridStateContext {
2211
2248
  clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
2212
2249
  customCallback: SmartGridCustomCallbackRefCurrent;
2213
2250
  contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
2251
+ rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
2214
2252
  tableId: string;
2215
2253
  isSingleSelect: boolean;
2216
2254
  selectable: boolean;
@@ -2232,6 +2270,10 @@ declare interface SmartGridStateContext {
2232
2270
  totalColumnsCount: number;
2233
2271
  isCommentFeatureEnabled: boolean;
2234
2272
  isChatEnabled: boolean;
2273
+ noHeaderSelection: boolean;
2274
+ treeData: boolean;
2275
+ virtualizationConfig: SmartGridVirConfig;
2276
+ disableCurrentPageRecords: boolean;
2235
2277
  [key: string]: unknown;
2236
2278
  }
2237
2279
 
@@ -2341,6 +2383,10 @@ declare interface SmartGridViewportRange {
2341
2383
  endRow: number;
2342
2384
  }
2343
2385
 
2386
+ declare type SmartGridVirConfig = {
2387
+ threshold: number;
2388
+ };
2389
+
2344
2390
  declare interface SmartGridWrappedDataSource {
2345
2391
  _originalDatasource: SmartGridServerSideDataSource;
2346
2392
  _loadingBlocks: Record<number, boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-table",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "moment": "^2.0.0",