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/chat.d.ts CHANGED
@@ -101,6 +101,9 @@ declare const ACTION_TYPES: {
101
101
  readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
102
102
  readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
103
103
  readonly SET_NO_HEADER_SELECTION_CHECKBOX: "SET_NO_HEADER_SELECTION_CHECKBOX";
104
+ readonly SET_DATA_IS_TREE_DATA: "SET_DATA_IS_TREE_DATA";
105
+ readonly SET_VIRTUALIZATION_CONFIG: "SET_VIRTUALIZATION_CONFIG";
106
+ readonly SET_DISABLE_CURRENT_PAGE_RECORDS: "SET_DISABLE_CURRENT_PAGE_RECORDS";
104
107
  };
105
108
 
106
109
  export declare const CommentWrapper: React.FC<SmartGridCommentWrapperProps>;
@@ -502,6 +505,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
502
505
  tableId: string;
503
506
  getFocusedCell: () => SmartGridFocusedCell | null;
504
507
  getSelectedCells: () => SmartGridSelectedCell[];
508
+ getCellRanges: () => SmartGridCellRange[] | null;
505
509
  getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
506
510
  getDisplayedRowCount: () => number;
507
511
  setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
@@ -509,6 +513,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
509
513
  getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
510
514
  getTableInstance: () => SmartGridTableInstance | undefined;
511
515
  getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
516
+ getSortModel: () => SmartGridSortModel;
512
517
  setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
513
518
  getTableDispatcher: () => (action: SmartGridDisptach) => void;
514
519
  getTableStateContext: () => SmartGridStateContext;
@@ -638,12 +643,14 @@ declare interface SmartGridBaseColumnDefinition {
638
643
  headerTooltip?: string;
639
644
  filter?: string | boolean;
640
645
  filterParams?: {
646
+ [key: string]: unknown;
647
+ } & {
641
648
  filterOptions?: string[];
642
649
  textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
643
650
  numberCustomComparator?: (filter: number, value: unknown) => boolean;
644
651
  dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
645
652
  comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
646
- [key: string]: unknown;
653
+ maxCharLength?: number;
647
654
  };
648
655
  order_of_display?: number;
649
656
  is_hidden?: boolean;
@@ -905,6 +912,23 @@ declare interface SmartGridCallbackRefCurrent {
905
912
  onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
906
913
  }
907
914
 
915
+ /**
916
+ * Represents a cell range selection (similar to AG Grid's CellRange).
917
+ * Contains the start/end rows and the columns included in the range.
918
+ */
919
+ declare interface SmartGridCellRange {
920
+ startRow: {
921
+ rowIndex: number;
922
+ rowPinned: string | null;
923
+ };
924
+ endRow: {
925
+ rowIndex: number;
926
+ rowPinned: string | null;
927
+ };
928
+ columns: SmartGridColumnDefinition[];
929
+ startColumn: SmartGridColumnDefinition;
930
+ }
931
+
908
932
  declare type SmartGridCellRenderer = {
909
933
  value: unknown;
910
934
  data: SmartGridRowData;
@@ -1723,6 +1747,7 @@ declare type SmartGridDefaultColDef = {
1723
1747
  };
1724
1748
  headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
1725
1749
  enableCellChangeFlash?: boolean;
1750
+ maxCharLengthInSearch?: number;
1726
1751
  };
1727
1752
 
1728
1753
  declare type SmartGridDispatch = (action: {
@@ -2248,6 +2273,12 @@ declare interface SmartGridInternalGetRowsParams {
2248
2273
  noDataUpdate?: boolean;
2249
2274
  }
2250
2275
 
2276
+ declare interface SmartGridIsRowSelectableParams {
2277
+ data: SmartGridRowData;
2278
+ id: string;
2279
+ rowIndex: number;
2280
+ }
2281
+
2251
2282
  /** Last accessed sequence generator */
2252
2283
  declare interface SmartGridLastAccessedSequence {
2253
2284
  value: number;
@@ -2851,6 +2882,11 @@ declare interface SmartGridRowNodeTransaction {
2851
2882
  update: SmartGridRowNode[];
2852
2883
  }
2853
2884
 
2885
+ declare interface SmartGridRowSelectionRefCurrent {
2886
+ isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
2887
+ hideDisabledCheckboxes?: boolean;
2888
+ }
2889
+
2854
2890
  declare interface SmartGridRowSpanInfo {
2855
2891
  [key: string]: SmartGridRowInfo | boolean | undefined;
2856
2892
  isRowSpan?: boolean;
@@ -3078,6 +3114,7 @@ declare interface SmartGridStateContext {
3078
3114
  clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
3079
3115
  customCallback: SmartGridCustomCallbackRefCurrent;
3080
3116
  contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
3117
+ rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
3081
3118
  tableId: string;
3082
3119
  isSingleSelect: boolean;
3083
3120
  selectable: boolean;
@@ -3099,6 +3136,10 @@ declare interface SmartGridStateContext {
3099
3136
  totalColumnsCount: number;
3100
3137
  isCommentFeatureEnabled: boolean;
3101
3138
  isChatEnabled: boolean;
3139
+ noHeaderSelection: boolean;
3140
+ treeData: boolean;
3141
+ virtualizationConfig: SmartGridVirConfig;
3142
+ disableCurrentPageRecords: boolean;
3102
3143
  [key: string]: unknown;
3103
3144
  }
3104
3145
 
@@ -3369,6 +3410,10 @@ declare interface SmartGridViewportRange {
3369
3410
  endRow: number;
3370
3411
  }
3371
3412
 
3413
+ declare type SmartGridVirConfig = {
3414
+ threshold: number;
3415
+ };
3416
+
3372
3417
  declare interface SmartGridWrappedDataSource {
3373
3418
  _originalDatasource: SmartGridServerSideDataSource;
3374
3419
  _loadingBlocks: Record<number, boolean>;
package/dist/chat.js CHANGED
@@ -4,7 +4,7 @@ import * as _ from "react";
4
4
  import le, { useRef as Ne, useCallback as De, useEffect as ue, createContext as Ro, createElement as ie, memo as vr, useState as R, createRef as vi, useContext as kn, Fragment as _c, useMemo as An, Suspense as i6, useLayoutEffect as $c, Component as a6, useDebugValue as vh, forwardRef as Ll, version as Tu, useImperativeHandle as ed } from "react";
5
5
  import { B as Pe, T as Lh, R as hs, C as fo, c as r6, Q as an, P as xh, M as o6, I as co, b as s6 } from "./RadioGroup-D3RQET6P.js";
6
6
  import kh, { createPortal as Sh, flushSync as l6 } from "react-dom";
7
- import { S as f6, I as c6, J as d6, K as u6, L as Nu, N as Au, M as ja, P as Bo, H as h6, a as Th, A as xs, u as p6 } from "./chat.type-CZyhjgHt.js";
7
+ import { S as f6, Q as c6, R as d6, U as u6, V as Nu, W as Au, M as ja, P as Bo, O as h6, a as Th, A as xs, u as p6 } from "./chat.type-Cwk7LBad.js";
8
8
  import ks from "moment";
9
9
  const m6 = ({
10
10
  open: t,