ia-table 0.15.4 → 0.15.6
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 +1 -1
- package/dist/{chat.type-CZyhjgHt.js → chat.type-De8KF2r5.js} +2621 -2428
- package/dist/index.d.ts +68 -4
- package/dist/index.js +7539 -7266
- package/dist/pivot.d.ts +47 -1
- package/package.json +1 -1
- package/dist/locale-patch-applied.txt +0 -1
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>;
|
|
@@ -477,6 +480,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
|
|
|
477
480
|
logCacheSummary: () => void | null;
|
|
478
481
|
getCachedRowById: (id: string | number) => SmartGridRowData | null;
|
|
479
482
|
getRowNode: (key: string | number) => Partial<SmartGridRowNode> | null;
|
|
483
|
+
getRowNodeWithIndex: (rowIndex: number) => Partial<SmartGridRowNode> | null;
|
|
480
484
|
setVisibleRange: (startRow: number, endRow: number) => void;
|
|
481
485
|
refreshCache: (options?: SmartGridRefreshOptions) => boolean;
|
|
482
486
|
deselectAll: () => void;
|
|
@@ -502,6 +506,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
|
|
|
502
506
|
tableId: string;
|
|
503
507
|
getFocusedCell: () => SmartGridFocusedCell | null;
|
|
504
508
|
getSelectedCells: () => SmartGridSelectedCell[];
|
|
509
|
+
getCellRanges: () => SmartGridCellRange[] | null;
|
|
505
510
|
getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
|
|
506
511
|
getDisplayedRowCount: () => number;
|
|
507
512
|
setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
|
|
@@ -509,6 +514,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
|
|
|
509
514
|
getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
|
|
510
515
|
getTableInstance: () => SmartGridTableInstance | undefined;
|
|
511
516
|
getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
|
|
517
|
+
getSortModel: () => SmartGridSortModel;
|
|
512
518
|
setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
|
|
513
519
|
getTableDispatcher: () => (action: SmartGridDisptach) => void;
|
|
514
520
|
getTableStateContext: () => SmartGridStateContext;
|
|
@@ -638,12 +644,14 @@ declare interface SmartGridBaseColumnDefinition {
|
|
|
638
644
|
headerTooltip?: string;
|
|
639
645
|
filter?: string | boolean;
|
|
640
646
|
filterParams?: {
|
|
647
|
+
[key: string]: unknown;
|
|
648
|
+
} & {
|
|
641
649
|
filterOptions?: string[];
|
|
642
650
|
textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
|
|
643
651
|
numberCustomComparator?: (filter: number, value: unknown) => boolean;
|
|
644
652
|
dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
|
|
645
653
|
comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
|
|
646
|
-
|
|
654
|
+
maxCharLength?: number;
|
|
647
655
|
};
|
|
648
656
|
order_of_display?: number;
|
|
649
657
|
is_hidden?: boolean;
|
|
@@ -905,6 +913,23 @@ declare interface SmartGridCallbackRefCurrent {
|
|
|
905
913
|
onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
|
|
906
914
|
}
|
|
907
915
|
|
|
916
|
+
/**
|
|
917
|
+
* Represents a cell range selection (similar to AG Grid's CellRange).
|
|
918
|
+
* Contains the start/end rows and the columns included in the range.
|
|
919
|
+
*/
|
|
920
|
+
declare interface SmartGridCellRange {
|
|
921
|
+
startRow: {
|
|
922
|
+
rowIndex: number;
|
|
923
|
+
rowPinned: string | null;
|
|
924
|
+
};
|
|
925
|
+
endRow: {
|
|
926
|
+
rowIndex: number;
|
|
927
|
+
rowPinned: string | null;
|
|
928
|
+
};
|
|
929
|
+
columns: SmartGridColumnDefinition[];
|
|
930
|
+
startColumn: SmartGridColumnDefinition;
|
|
931
|
+
}
|
|
932
|
+
|
|
908
933
|
declare type SmartGridCellRenderer = {
|
|
909
934
|
value: unknown;
|
|
910
935
|
data: SmartGridRowData;
|
|
@@ -1723,6 +1748,7 @@ declare type SmartGridDefaultColDef = {
|
|
|
1723
1748
|
};
|
|
1724
1749
|
headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1725
1750
|
enableCellChangeFlash?: boolean;
|
|
1751
|
+
maxCharLengthInSearch?: number;
|
|
1726
1752
|
};
|
|
1727
1753
|
|
|
1728
1754
|
declare type SmartGridDispatch = (action: {
|
|
@@ -2248,6 +2274,12 @@ declare interface SmartGridInternalGetRowsParams {
|
|
|
2248
2274
|
noDataUpdate?: boolean;
|
|
2249
2275
|
}
|
|
2250
2276
|
|
|
2277
|
+
declare interface SmartGridIsRowSelectableParams {
|
|
2278
|
+
data: SmartGridRowData;
|
|
2279
|
+
id: string;
|
|
2280
|
+
rowIndex: number;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2251
2283
|
/** Last accessed sequence generator */
|
|
2252
2284
|
declare interface SmartGridLastAccessedSequence {
|
|
2253
2285
|
value: number;
|
|
@@ -2851,6 +2883,11 @@ declare interface SmartGridRowNodeTransaction {
|
|
|
2851
2883
|
update: SmartGridRowNode[];
|
|
2852
2884
|
}
|
|
2853
2885
|
|
|
2886
|
+
declare interface SmartGridRowSelectionRefCurrent {
|
|
2887
|
+
isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
|
|
2888
|
+
hideDisabledCheckboxes?: boolean;
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2854
2891
|
declare interface SmartGridRowSpanInfo {
|
|
2855
2892
|
[key: string]: SmartGridRowInfo | boolean | undefined;
|
|
2856
2893
|
isRowSpan?: boolean;
|
|
@@ -3078,6 +3115,7 @@ declare interface SmartGridStateContext {
|
|
|
3078
3115
|
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
3079
3116
|
customCallback: SmartGridCustomCallbackRefCurrent;
|
|
3080
3117
|
contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
|
|
3118
|
+
rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
|
|
3081
3119
|
tableId: string;
|
|
3082
3120
|
isSingleSelect: boolean;
|
|
3083
3121
|
selectable: boolean;
|
|
@@ -3099,6 +3137,10 @@ declare interface SmartGridStateContext {
|
|
|
3099
3137
|
totalColumnsCount: number;
|
|
3100
3138
|
isCommentFeatureEnabled: boolean;
|
|
3101
3139
|
isChatEnabled: boolean;
|
|
3140
|
+
noHeaderSelection: boolean;
|
|
3141
|
+
treeData: boolean;
|
|
3142
|
+
virtualizationConfig: SmartGridVirConfig;
|
|
3143
|
+
disableCurrentPageRecords: boolean;
|
|
3102
3144
|
[key: string]: unknown;
|
|
3103
3145
|
}
|
|
3104
3146
|
|
|
@@ -3369,6 +3411,10 @@ declare interface SmartGridViewportRange {
|
|
|
3369
3411
|
endRow: number;
|
|
3370
3412
|
}
|
|
3371
3413
|
|
|
3414
|
+
declare type SmartGridVirConfig = {
|
|
3415
|
+
threshold: number;
|
|
3416
|
+
};
|
|
3417
|
+
|
|
3372
3418
|
declare interface SmartGridWrappedDataSource {
|
|
3373
3419
|
_originalDatasource: SmartGridServerSideDataSource;
|
|
3374
3420
|
_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,
|
|
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-De8KF2r5.js";
|
|
8
8
|
import ks from "moment";
|
|
9
9
|
const m6 = ({
|
|
10
10
|
open: t,
|