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/chat.d.ts +47 -1
- package/dist/chat.js +2 -2
- package/dist/{chat.type-D1TR5GvR.js → chat.type-Cwk7LBad.js} +2482 -2273
- package/dist/index.d.ts +68 -2
- package/dist/index.js +7683 -7471
- package/dist/pivot.d.ts +47 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,10 @@ declare const ACTION_TYPES: {
|
|
|
107
107
|
readonly SET_COMMENT_CONTEXT_REF: "SET_COMMENT_CONTEXT_REF";
|
|
108
108
|
readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
|
|
109
109
|
readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
|
|
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";
|
|
110
114
|
};
|
|
111
115
|
|
|
112
116
|
declare interface ChildHeightsResult {
|
|
@@ -572,6 +576,7 @@ export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridA
|
|
|
572
576
|
tableId: string;
|
|
573
577
|
getFocusedCell: () => SmartGridFocusedCell | null;
|
|
574
578
|
getSelectedCells: () => SmartGridSelectedCell[];
|
|
579
|
+
getCellRanges: () => SmartGridCellRange[] | null;
|
|
575
580
|
getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
|
|
576
581
|
getDisplayedRowCount: () => number;
|
|
577
582
|
setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
|
|
@@ -579,6 +584,7 @@ export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridA
|
|
|
579
584
|
getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
|
|
580
585
|
getTableInstance: () => SmartGridTableInstance | undefined;
|
|
581
586
|
getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
|
|
587
|
+
getSortModel: () => SmartGridSortModel;
|
|
582
588
|
setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
|
|
583
589
|
getTableDispatcher: () => (action: SmartGridDisptach) => void;
|
|
584
590
|
getTableStateContext: () => SmartGridStateContext;
|
|
@@ -723,12 +729,14 @@ export declare interface SmartGridBaseColumnDefinition {
|
|
|
723
729
|
headerTooltip?: string;
|
|
724
730
|
filter?: string | boolean;
|
|
725
731
|
filterParams?: {
|
|
732
|
+
[key: string]: unknown;
|
|
733
|
+
} & {
|
|
726
734
|
filterOptions?: string[];
|
|
727
735
|
textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
|
|
728
736
|
numberCustomComparator?: (filter: number, value: unknown) => boolean;
|
|
729
737
|
dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
|
|
730
738
|
comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
|
|
731
|
-
|
|
739
|
+
maxCharLength?: number;
|
|
732
740
|
};
|
|
733
741
|
order_of_display?: number;
|
|
734
742
|
is_hidden?: boolean;
|
|
@@ -1108,6 +1116,28 @@ export declare interface SmartGridCallbackRefCurrent {
|
|
|
1108
1116
|
onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
|
|
1109
1117
|
}
|
|
1110
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
|
+
|
|
1111
1141
|
export declare type SmartGridCellRenderer = {
|
|
1112
1142
|
value: unknown;
|
|
1113
1143
|
data: SmartGridRowData;
|
|
@@ -2143,6 +2173,7 @@ export declare type SmartGridDefaultColDef = {
|
|
|
2143
2173
|
};
|
|
2144
2174
|
headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
|
|
2145
2175
|
enableCellChangeFlash?: boolean;
|
|
2176
|
+
maxCharLengthInSearch?: number;
|
|
2146
2177
|
};
|
|
2147
2178
|
|
|
2148
2179
|
export declare type SmartGridDispatch = (action: {
|
|
@@ -2689,6 +2720,7 @@ export declare interface SmartGridIATableState {
|
|
|
2689
2720
|
selectedCells: Map<string, SmartGridSelectedCellState>;
|
|
2690
2721
|
instanceKeyHandlers: Map<string, (e: KeyboardEvent) => void>;
|
|
2691
2722
|
activeInstance?: HTMLElement | null;
|
|
2723
|
+
multiSelection?: SmartGridMultiSelectionState;
|
|
2692
2724
|
}
|
|
2693
2725
|
|
|
2694
2726
|
export declare interface SmartGridImageUploaderProps {
|
|
@@ -2996,6 +3028,12 @@ export declare interface SmartGridInternalGetRowsParams {
|
|
|
2996
3028
|
noDataUpdate?: boolean;
|
|
2997
3029
|
}
|
|
2998
3030
|
|
|
3031
|
+
export declare interface SmartGridIsRowSelectableParams {
|
|
3032
|
+
data: SmartGridRowData;
|
|
3033
|
+
id: string;
|
|
3034
|
+
rowIndex: number;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
2999
3037
|
/** Last accessed sequence generator */
|
|
3000
3038
|
declare interface SmartGridLastAccessedSequence {
|
|
3001
3039
|
value: number;
|
|
@@ -3377,6 +3415,12 @@ export declare interface SmartGridMoreAvatarProps {
|
|
|
3377
3415
|
size?: SmartGridAvatarSize;
|
|
3378
3416
|
}
|
|
3379
3417
|
|
|
3418
|
+
export declare interface SmartGridMultiSelectionState {
|
|
3419
|
+
anchor: SmartGridCellPosition | null;
|
|
3420
|
+
current: SmartGridCellPosition | null;
|
|
3421
|
+
selectedPositions: SmartGridCellPosition[];
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3380
3424
|
export declare interface SmartGridNewSortModel {
|
|
3381
3425
|
column: string | null;
|
|
3382
3426
|
order: SmartGridSortDirection | null;
|
|
@@ -4193,6 +4237,12 @@ export declare interface SmartGridRowRenderProps {
|
|
|
4193
4237
|
rowHeightCache: RowHeightCache | null;
|
|
4194
4238
|
adjustTableHeightServerSide?: boolean;
|
|
4195
4239
|
height: string | number;
|
|
4240
|
+
childRowsCount: number;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
export declare interface SmartGridRowSelectionRefCurrent {
|
|
4244
|
+
isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
|
|
4245
|
+
hideDisabledCheckboxes?: boolean;
|
|
4196
4246
|
}
|
|
4197
4247
|
|
|
4198
4248
|
export declare interface SmartGridRowSpanInfo {
|
|
@@ -4567,6 +4617,7 @@ export declare interface SmartGridStateContext {
|
|
|
4567
4617
|
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
4568
4618
|
customCallback: SmartGridCustomCallbackRefCurrent;
|
|
4569
4619
|
contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
|
|
4620
|
+
rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
|
|
4570
4621
|
tableId: string;
|
|
4571
4622
|
isSingleSelect: boolean;
|
|
4572
4623
|
selectable: boolean;
|
|
@@ -4588,6 +4639,10 @@ export declare interface SmartGridStateContext {
|
|
|
4588
4639
|
totalColumnsCount: number;
|
|
4589
4640
|
isCommentFeatureEnabled: boolean;
|
|
4590
4641
|
isChatEnabled: boolean;
|
|
4642
|
+
noHeaderSelection: boolean;
|
|
4643
|
+
treeData: boolean;
|
|
4644
|
+
virtualizationConfig: SmartGridVirConfig;
|
|
4645
|
+
disableCurrentPageRecords: boolean;
|
|
4591
4646
|
[key: string]: unknown;
|
|
4592
4647
|
}
|
|
4593
4648
|
|
|
@@ -5069,7 +5124,7 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
|
|
|
5069
5124
|
defaultPageSize?: number;
|
|
5070
5125
|
paginationPageSize?: number[];
|
|
5071
5126
|
enableRowSpan?: boolean;
|
|
5072
|
-
rowSpanColumn?: string | string[];
|
|
5127
|
+
rowSpanColumn?: string | string[] | null;
|
|
5073
5128
|
showHeader?: boolean;
|
|
5074
5129
|
showFooter?: boolean;
|
|
5075
5130
|
showToolbar?: boolean;
|
|
@@ -5109,6 +5164,11 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
|
|
|
5109
5164
|
CommentComponent?: FC<SmartGridCommentWrapperProps>;
|
|
5110
5165
|
commentProps?: SmartGridCommentProps;
|
|
5111
5166
|
onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
|
|
5167
|
+
noHeaderSelection?: boolean;
|
|
5168
|
+
treeData?: boolean;
|
|
5169
|
+
virtualizationConfig?: SmartGridVirConfig;
|
|
5170
|
+
rowSelection?: SmartGridRowSelectionRefCurrent;
|
|
5171
|
+
disableCurrentPageRecords?: boolean;
|
|
5112
5172
|
}
|
|
5113
5173
|
|
|
5114
5174
|
export declare interface SmartGridTableRef {
|
|
@@ -5258,6 +5318,7 @@ export declare interface SmartGridUpdateRefParams extends SmartGridCallbackRefCu
|
|
|
5258
5318
|
handleSortChange?: (sortModel: SmartGridSortModel) => void;
|
|
5259
5319
|
handleFilterChange?: (filterModel: SmartGridFilterModel) => void;
|
|
5260
5320
|
handleSearch?: (searchValue: SmartGridSearchFunctionParams) => void;
|
|
5321
|
+
rowSelection?: SmartGridRowSelectionRefCurrent;
|
|
5261
5322
|
}
|
|
5262
5323
|
|
|
5263
5324
|
export declare interface SmartGridUpdateRefReturn {
|
|
@@ -5266,6 +5327,7 @@ export declare interface SmartGridUpdateRefReturn {
|
|
|
5266
5327
|
saveViewCallbackRef: MutableRefObject<SmartGridSaveViewCallbackRefCurrent>;
|
|
5267
5328
|
saveViewOptionsRef: MutableRefObject<SmartGridSaveViewOptionsRefCurrent>;
|
|
5268
5329
|
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
5330
|
+
rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent>;
|
|
5269
5331
|
}
|
|
5270
5332
|
|
|
5271
5333
|
export declare type SmartGridValueFormatterConfig = {
|
|
@@ -5299,6 +5361,10 @@ declare interface SmartGridViewportRange {
|
|
|
5299
5361
|
endRow: number;
|
|
5300
5362
|
}
|
|
5301
5363
|
|
|
5364
|
+
export declare type SmartGridVirConfig = {
|
|
5365
|
+
threshold: number;
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5302
5368
|
export declare interface SmartGridVirtualizationParams {
|
|
5303
5369
|
dataLength: number;
|
|
5304
5370
|
threshold?: number;
|