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 +46 -1
- package/dist/chat.js +1 -1
- package/dist/{chat.type-CZyhjgHt.js → chat.type-Cwk7LBad.js} +2619 -2428
- package/dist/index.d.ts +66 -2
- package/dist/index.js +7717 -7533
- package/dist/pivot.d.ts +46 -1
- package/package.json +1 -1
- package/dist/locale-patch-applied.txt +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,9 @@ declare const ACTION_TYPES: {
|
|
|
108
108
|
readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
|
|
109
109
|
readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
|
|
110
110
|
readonly SET_NO_HEADER_SELECTION_CHECKBOX: "SET_NO_HEADER_SELECTION_CHECKBOX";
|
|
111
|
+
readonly SET_DATA_IS_TREE_DATA: "SET_DATA_IS_TREE_DATA";
|
|
112
|
+
readonly SET_VIRTUALIZATION_CONFIG: "SET_VIRTUALIZATION_CONFIG";
|
|
113
|
+
readonly SET_DISABLE_CURRENT_PAGE_RECORDS: "SET_DISABLE_CURRENT_PAGE_RECORDS";
|
|
111
114
|
};
|
|
112
115
|
|
|
113
116
|
declare interface ChildHeightsResult {
|
|
@@ -573,6 +576,7 @@ export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridA
|
|
|
573
576
|
tableId: string;
|
|
574
577
|
getFocusedCell: () => SmartGridFocusedCell | null;
|
|
575
578
|
getSelectedCells: () => SmartGridSelectedCell[];
|
|
579
|
+
getCellRanges: () => SmartGridCellRange[] | null;
|
|
576
580
|
getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
|
|
577
581
|
getDisplayedRowCount: () => number;
|
|
578
582
|
setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
|
|
@@ -580,6 +584,7 @@ export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridA
|
|
|
580
584
|
getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
|
|
581
585
|
getTableInstance: () => SmartGridTableInstance | undefined;
|
|
582
586
|
getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
|
|
587
|
+
getSortModel: () => SmartGridSortModel;
|
|
583
588
|
setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
|
|
584
589
|
getTableDispatcher: () => (action: SmartGridDisptach) => void;
|
|
585
590
|
getTableStateContext: () => SmartGridStateContext;
|
|
@@ -724,12 +729,14 @@ export declare interface SmartGridBaseColumnDefinition {
|
|
|
724
729
|
headerTooltip?: string;
|
|
725
730
|
filter?: string | boolean;
|
|
726
731
|
filterParams?: {
|
|
732
|
+
[key: string]: unknown;
|
|
733
|
+
} & {
|
|
727
734
|
filterOptions?: string[];
|
|
728
735
|
textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
|
|
729
736
|
numberCustomComparator?: (filter: number, value: unknown) => boolean;
|
|
730
737
|
dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
|
|
731
738
|
comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
|
|
732
|
-
|
|
739
|
+
maxCharLength?: number;
|
|
733
740
|
};
|
|
734
741
|
order_of_display?: number;
|
|
735
742
|
is_hidden?: boolean;
|
|
@@ -1109,6 +1116,28 @@ export declare interface SmartGridCallbackRefCurrent {
|
|
|
1109
1116
|
onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
|
|
1110
1117
|
}
|
|
1111
1118
|
|
|
1119
|
+
export declare interface SmartGridCellPosition {
|
|
1120
|
+
rowIndex: number;
|
|
1121
|
+
colIndex: number;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Represents a cell range selection (similar to AG Grid's CellRange).
|
|
1126
|
+
* Contains the start/end rows and the columns included in the range.
|
|
1127
|
+
*/
|
|
1128
|
+
export declare interface SmartGridCellRange {
|
|
1129
|
+
startRow: {
|
|
1130
|
+
rowIndex: number;
|
|
1131
|
+
rowPinned: string | null;
|
|
1132
|
+
};
|
|
1133
|
+
endRow: {
|
|
1134
|
+
rowIndex: number;
|
|
1135
|
+
rowPinned: string | null;
|
|
1136
|
+
};
|
|
1137
|
+
columns: SmartGridColumnDefinition[];
|
|
1138
|
+
startColumn: SmartGridColumnDefinition;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1112
1141
|
export declare type SmartGridCellRenderer = {
|
|
1113
1142
|
value: unknown;
|
|
1114
1143
|
data: SmartGridRowData;
|
|
@@ -2144,6 +2173,7 @@ export declare type SmartGridDefaultColDef = {
|
|
|
2144
2173
|
};
|
|
2145
2174
|
headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
|
|
2146
2175
|
enableCellChangeFlash?: boolean;
|
|
2176
|
+
maxCharLengthInSearch?: number;
|
|
2147
2177
|
};
|
|
2148
2178
|
|
|
2149
2179
|
export declare type SmartGridDispatch = (action: {
|
|
@@ -2690,6 +2720,7 @@ export declare interface SmartGridIATableState {
|
|
|
2690
2720
|
selectedCells: Map<string, SmartGridSelectedCellState>;
|
|
2691
2721
|
instanceKeyHandlers: Map<string, (e: KeyboardEvent) => void>;
|
|
2692
2722
|
activeInstance?: HTMLElement | null;
|
|
2723
|
+
multiSelection?: SmartGridMultiSelectionState;
|
|
2693
2724
|
}
|
|
2694
2725
|
|
|
2695
2726
|
export declare interface SmartGridImageUploaderProps {
|
|
@@ -2997,6 +3028,12 @@ export declare interface SmartGridInternalGetRowsParams {
|
|
|
2997
3028
|
noDataUpdate?: boolean;
|
|
2998
3029
|
}
|
|
2999
3030
|
|
|
3031
|
+
export declare interface SmartGridIsRowSelectableParams {
|
|
3032
|
+
data: SmartGridRowData;
|
|
3033
|
+
id: string;
|
|
3034
|
+
rowIndex: number;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3000
3037
|
/** Last accessed sequence generator */
|
|
3001
3038
|
declare interface SmartGridLastAccessedSequence {
|
|
3002
3039
|
value: number;
|
|
@@ -3378,6 +3415,12 @@ export declare interface SmartGridMoreAvatarProps {
|
|
|
3378
3415
|
size?: SmartGridAvatarSize;
|
|
3379
3416
|
}
|
|
3380
3417
|
|
|
3418
|
+
export declare interface SmartGridMultiSelectionState {
|
|
3419
|
+
anchor: SmartGridCellPosition | null;
|
|
3420
|
+
current: SmartGridCellPosition | null;
|
|
3421
|
+
selectedPositions: SmartGridCellPosition[];
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3381
3424
|
export declare interface SmartGridNewSortModel {
|
|
3382
3425
|
column: string | null;
|
|
3383
3426
|
order: SmartGridSortDirection | null;
|
|
@@ -4194,6 +4237,12 @@ export declare interface SmartGridRowRenderProps {
|
|
|
4194
4237
|
rowHeightCache: RowHeightCache | null;
|
|
4195
4238
|
adjustTableHeightServerSide?: boolean;
|
|
4196
4239
|
height: string | number;
|
|
4240
|
+
childRowsCount: number;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
export declare interface SmartGridRowSelectionRefCurrent {
|
|
4244
|
+
isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
|
|
4245
|
+
hideDisabledCheckboxes?: boolean;
|
|
4197
4246
|
}
|
|
4198
4247
|
|
|
4199
4248
|
export declare interface SmartGridRowSpanInfo {
|
|
@@ -4568,6 +4617,7 @@ export declare interface SmartGridStateContext {
|
|
|
4568
4617
|
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
4569
4618
|
customCallback: SmartGridCustomCallbackRefCurrent;
|
|
4570
4619
|
contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
|
|
4620
|
+
rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
|
|
4571
4621
|
tableId: string;
|
|
4572
4622
|
isSingleSelect: boolean;
|
|
4573
4623
|
selectable: boolean;
|
|
@@ -4589,6 +4639,10 @@ export declare interface SmartGridStateContext {
|
|
|
4589
4639
|
totalColumnsCount: number;
|
|
4590
4640
|
isCommentFeatureEnabled: boolean;
|
|
4591
4641
|
isChatEnabled: boolean;
|
|
4642
|
+
noHeaderSelection: boolean;
|
|
4643
|
+
treeData: boolean;
|
|
4644
|
+
virtualizationConfig: SmartGridVirConfig;
|
|
4645
|
+
disableCurrentPageRecords: boolean;
|
|
4592
4646
|
[key: string]: unknown;
|
|
4593
4647
|
}
|
|
4594
4648
|
|
|
@@ -5070,7 +5124,7 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
|
|
|
5070
5124
|
defaultPageSize?: number;
|
|
5071
5125
|
paginationPageSize?: number[];
|
|
5072
5126
|
enableRowSpan?: boolean;
|
|
5073
|
-
rowSpanColumn?: string | string[];
|
|
5127
|
+
rowSpanColumn?: string | string[] | null;
|
|
5074
5128
|
showHeader?: boolean;
|
|
5075
5129
|
showFooter?: boolean;
|
|
5076
5130
|
showToolbar?: boolean;
|
|
@@ -5111,6 +5165,10 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
|
|
|
5111
5165
|
commentProps?: SmartGridCommentProps;
|
|
5112
5166
|
onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
|
|
5113
5167
|
noHeaderSelection?: boolean;
|
|
5168
|
+
treeData?: boolean;
|
|
5169
|
+
virtualizationConfig?: SmartGridVirConfig;
|
|
5170
|
+
rowSelection?: SmartGridRowSelectionRefCurrent;
|
|
5171
|
+
disableCurrentPageRecords?: boolean;
|
|
5114
5172
|
}
|
|
5115
5173
|
|
|
5116
5174
|
export declare interface SmartGridTableRef {
|
|
@@ -5260,6 +5318,7 @@ export declare interface SmartGridUpdateRefParams extends SmartGridCallbackRefCu
|
|
|
5260
5318
|
handleSortChange?: (sortModel: SmartGridSortModel) => void;
|
|
5261
5319
|
handleFilterChange?: (filterModel: SmartGridFilterModel) => void;
|
|
5262
5320
|
handleSearch?: (searchValue: SmartGridSearchFunctionParams) => void;
|
|
5321
|
+
rowSelection?: SmartGridRowSelectionRefCurrent;
|
|
5263
5322
|
}
|
|
5264
5323
|
|
|
5265
5324
|
export declare interface SmartGridUpdateRefReturn {
|
|
@@ -5268,6 +5327,7 @@ export declare interface SmartGridUpdateRefReturn {
|
|
|
5268
5327
|
saveViewCallbackRef: MutableRefObject<SmartGridSaveViewCallbackRefCurrent>;
|
|
5269
5328
|
saveViewOptionsRef: MutableRefObject<SmartGridSaveViewOptionsRefCurrent>;
|
|
5270
5329
|
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
5330
|
+
rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent>;
|
|
5271
5331
|
}
|
|
5272
5332
|
|
|
5273
5333
|
export declare type SmartGridValueFormatterConfig = {
|
|
@@ -5301,6 +5361,10 @@ declare interface SmartGridViewportRange {
|
|
|
5301
5361
|
endRow: number;
|
|
5302
5362
|
}
|
|
5303
5363
|
|
|
5364
|
+
export declare type SmartGridVirConfig = {
|
|
5365
|
+
threshold: number;
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5304
5368
|
export declare interface SmartGridVirtualizationParams {
|
|
5305
5369
|
dataLength: number;
|
|
5306
5370
|
threshold?: number;
|