ia-table 0.14.4 → 0.14.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/index.d.ts +97 -5
- package/dist/index.js +11539 -10727
- package/dist/pivot.d.ts +95 -5
- package/dist/pivot.js +1 -1
- package/dist/{right-arrow-DVcW5eaL.js → right-arrow-u0DuaXma.js} +215 -206
- package/package.json +1 -1
- package/dist/locale-patch-applied.txt +0 -1
package/dist/pivot.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ declare const ACTION_TYPES: {
|
|
|
87
87
|
readonly SET_HAS_SPLIT_RENDERER_KEYS: "SET_HAS_SPLIT_RENDERER_KEYS";
|
|
88
88
|
readonly SET_REMOVE_SELECTION_ON_OPERATION: "SET_REMOVE_SELECTION_ON_OPERATION";
|
|
89
89
|
readonly SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION: "SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION";
|
|
90
|
+
readonly SET_TOTAL_COLUMNS_COUNT: "SET_TOTAL_COLUMNS_COUNT";
|
|
91
|
+
readonly SET_ALL_CHILD_ROWS_EXPANDED: "SET_ALL_CHILD_ROWS_EXPANDED";
|
|
92
|
+
readonly EXPAND_ROW_WITH_NESTED_CHILDREN: "EXPAND_ROW_WITH_NESTED_CHILDREN";
|
|
90
93
|
};
|
|
91
94
|
|
|
92
95
|
declare class InfiniteBlock {
|
|
@@ -428,7 +431,7 @@ declare interface RowGroupParams {
|
|
|
428
431
|
|
|
429
432
|
export declare type SmartGridAggregationType = "sum" | "count" | "avg" | "min" | "max";
|
|
430
433
|
|
|
431
|
-
declare interface SmartGridAPI {
|
|
434
|
+
declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra {
|
|
432
435
|
getInfiniteRowModel: () => SmartGridInfiniteRowModel | null;
|
|
433
436
|
getInfiniteCache: () => SmartGridInfiniteCache | null;
|
|
434
437
|
getModel: () => SmartGridTableModel;
|
|
@@ -445,7 +448,6 @@ declare interface SmartGridAPI {
|
|
|
445
448
|
setSelectedRows: (rowIds: (string | number)[]) => void;
|
|
446
449
|
clearSelection: () => void;
|
|
447
450
|
selectAll: () => void;
|
|
448
|
-
refreshCells: () => void;
|
|
449
451
|
getCache: () => SmartGridInfiniteCache | null;
|
|
450
452
|
getCacheState: () => SmartGridCacheState_2 | null;
|
|
451
453
|
getInfiniteCacheInstance: () => SmartGridInfiniteCache | null;
|
|
@@ -494,8 +496,11 @@ declare interface SmartGridAPI {
|
|
|
494
496
|
applySearch: () => void;
|
|
495
497
|
getCurrentPageData: () => SmartGridRowData[];
|
|
496
498
|
getWholeTableData: () => SmartGridRowData[];
|
|
497
|
-
|
|
498
|
-
|
|
499
|
+
refreshCells: (params?: SmartGridRefreshCellsParams) => void;
|
|
500
|
+
flashCells: (params?: SmartGridFlashCellsParams) => void;
|
|
501
|
+
redrawRows: (params?: SmartGridRedrawRowsParams) => void;
|
|
502
|
+
applyTransaction: (transaction: SmartGridRowDataTransaction) => SmartGridRowNodeTransaction;
|
|
503
|
+
getSelectedNodes: () => SmartGridRowNode[];
|
|
499
504
|
refreshClientSideRowModel: () => void;
|
|
500
505
|
resetRecentSearchChanges: () => void;
|
|
501
506
|
onFilterChanged: () => void;
|
|
@@ -515,12 +520,16 @@ declare interface SmartGridAPI {
|
|
|
515
520
|
fieldName: string;
|
|
516
521
|
value: unknown;
|
|
517
522
|
}) => void;
|
|
518
|
-
setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) =>
|
|
523
|
+
setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) => SmartGridWrappedDataSource | null;
|
|
519
524
|
updateSmartGridTableData: (wholeData: SmartGridRowData[]) => void;
|
|
520
525
|
downloadSmartGridExcel: (fileName?: string, visibleOnly?: boolean) => void;
|
|
521
526
|
downloadSmartGridCSV: (fileName?: string, visibleOnly?: boolean) => void;
|
|
522
527
|
}
|
|
523
528
|
|
|
529
|
+
declare type SmartGridApiExtra = {
|
|
530
|
+
[key: string]: unknown;
|
|
531
|
+
};
|
|
532
|
+
|
|
524
533
|
declare interface SmartGridBaseColumnDefinition {
|
|
525
534
|
field?: string;
|
|
526
535
|
groupId?: string;
|
|
@@ -1046,6 +1055,7 @@ declare type SmartGridDefaultColDef = {
|
|
|
1046
1055
|
innerHeaderComponent: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1047
1056
|
};
|
|
1048
1057
|
headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1058
|
+
enableCellChangeFlash?: boolean;
|
|
1049
1059
|
};
|
|
1050
1060
|
|
|
1051
1061
|
declare type SmartGridDispatch = (action: {
|
|
@@ -1166,6 +1176,24 @@ declare interface SmartGridFilterModel {
|
|
|
1166
1176
|
[key: string]: unknown;
|
|
1167
1177
|
}
|
|
1168
1178
|
|
|
1179
|
+
/**
|
|
1180
|
+
* Parameters for flashCells API (AG Grid compatible)
|
|
1181
|
+
*/
|
|
1182
|
+
declare interface SmartGridFlashCellsParams {
|
|
1183
|
+
/** Optional list of row nodes to flash. If not provided with columns, nothing flashes. */
|
|
1184
|
+
rowNodes?: SmartGridRowNode[];
|
|
1185
|
+
/** Optional list of column IDs to flash. If not provided with rowNodes, nothing flashes. */
|
|
1186
|
+
columns?: string[];
|
|
1187
|
+
/** Duration of the flash in milliseconds. Default: 500 */
|
|
1188
|
+
flashDuration?: number;
|
|
1189
|
+
/** Duration of the fade animation in milliseconds. Default: 500 */
|
|
1190
|
+
fadeDuration?: number;
|
|
1191
|
+
/** Custom CSS class to apply during flash */
|
|
1192
|
+
flashCssClass?: string;
|
|
1193
|
+
/** Custom CSS class to apply during fade */
|
|
1194
|
+
fadeCssClass?: string;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1169
1197
|
declare type SmartGridFloatingType = "top" | "bottom" | null;
|
|
1170
1198
|
|
|
1171
1199
|
declare interface SmartGridFocusedCell extends SmartGridSelectedCell {
|
|
@@ -1426,6 +1454,19 @@ declare interface SmartGridPageSizeRef_2 {
|
|
|
1426
1454
|
current: number;
|
|
1427
1455
|
}
|
|
1428
1456
|
|
|
1457
|
+
declare interface SmartGridPaginationAPI {
|
|
1458
|
+
paginationGetPageSize: () => number;
|
|
1459
|
+
paginationGetRowCount: () => number;
|
|
1460
|
+
paginationGetCurrentPage: () => number;
|
|
1461
|
+
paginationGetTotalPages: () => number;
|
|
1462
|
+
paginationGoToPage: (pageNumber: number) => void;
|
|
1463
|
+
paginationGoToFirstPage: () => void;
|
|
1464
|
+
paginationGoToLastPage: () => void;
|
|
1465
|
+
paginationGoToNextPage: () => void;
|
|
1466
|
+
paginationGoToPreviousPage: () => void;
|
|
1467
|
+
paginationIsLastPageFound: () => boolean;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1429
1470
|
declare interface SmartGridPaginationModel {
|
|
1430
1471
|
currentPage: number;
|
|
1431
1472
|
pageSize: number;
|
|
@@ -1681,6 +1722,14 @@ declare type SmartGridRangeFilter = {
|
|
|
1681
1722
|
operator?: string;
|
|
1682
1723
|
};
|
|
1683
1724
|
|
|
1725
|
+
/**
|
|
1726
|
+
* Parameters for redrawRows API (AG Grid compatible)
|
|
1727
|
+
*/
|
|
1728
|
+
declare interface SmartGridRedrawRowsParams {
|
|
1729
|
+
/** Optional list of row nodes to redraw. If not provided, all rows are redrawn */
|
|
1730
|
+
rowNodes?: SmartGridRowNode[];
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1684
1733
|
declare interface SmartGridRefreshCacheOptions {
|
|
1685
1734
|
purge?: boolean;
|
|
1686
1735
|
partialRefresh?: boolean;
|
|
@@ -1688,6 +1737,20 @@ declare interface SmartGridRefreshCacheOptions {
|
|
|
1688
1737
|
userInitiated?: boolean;
|
|
1689
1738
|
}
|
|
1690
1739
|
|
|
1740
|
+
/**
|
|
1741
|
+
* Parameters for refreshCells API (AG Grid compatible)
|
|
1742
|
+
*/
|
|
1743
|
+
declare interface SmartGridRefreshCellsParams {
|
|
1744
|
+
/** Optional list of row nodes to refresh. If not provided, all rows are refreshed. */
|
|
1745
|
+
rowNodes?: SmartGridRowNode[];
|
|
1746
|
+
/** Optional list of column IDs to refresh. If not provided, all columns are refreshed. */
|
|
1747
|
+
columns?: string[];
|
|
1748
|
+
/** If true, forces refresh even if the cell value hasn't changed. Default: false */
|
|
1749
|
+
force?: boolean;
|
|
1750
|
+
/** If true, suppresses the flash animation. Default: false */
|
|
1751
|
+
suppressFlash?: boolean;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1691
1754
|
declare interface SmartGridRefreshOptions {
|
|
1692
1755
|
purge?: boolean;
|
|
1693
1756
|
resetPage?: boolean;
|
|
@@ -1728,6 +1791,20 @@ declare interface SmartGridRowData {
|
|
|
1728
1791
|
};
|
|
1729
1792
|
}
|
|
1730
1793
|
|
|
1794
|
+
/**
|
|
1795
|
+
* Transaction object for applyTransaction API (AG Grid compatible)
|
|
1796
|
+
*/
|
|
1797
|
+
declare interface SmartGridRowDataTransaction {
|
|
1798
|
+
/** Rows to add */
|
|
1799
|
+
add?: SmartGridRowData[];
|
|
1800
|
+
/** Index position to add rows at. If not provided, rows are added at the end */
|
|
1801
|
+
addIndex?: number;
|
|
1802
|
+
/** Rows to remove. Only the row ID field is required */
|
|
1803
|
+
remove?: SmartGridRowData[];
|
|
1804
|
+
/** Rows to update. The row ID field is used to match rows */
|
|
1805
|
+
update?: SmartGridRowData[];
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1731
1808
|
declare interface SmartGridRowDragEndParams {
|
|
1732
1809
|
api: SmartGridAPI;
|
|
1733
1810
|
type: "rowDragEnd";
|
|
@@ -1801,6 +1878,18 @@ declare interface SmartGridRowNode extends SmartGridUpdateData {
|
|
|
1801
1878
|
isGroup?: () => boolean;
|
|
1802
1879
|
}
|
|
1803
1880
|
|
|
1881
|
+
/**
|
|
1882
|
+
* Result of applyTransaction API (AG Grid compatible)
|
|
1883
|
+
*/
|
|
1884
|
+
declare interface SmartGridRowNodeTransaction {
|
|
1885
|
+
/** Row nodes that were added */
|
|
1886
|
+
add: SmartGridRowNode[];
|
|
1887
|
+
/** Row nodes that were removed */
|
|
1888
|
+
remove: SmartGridRowNode[];
|
|
1889
|
+
/** Row nodes that were updated */
|
|
1890
|
+
update: SmartGridRowNode[];
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1804
1893
|
declare interface SmartGridRowSpanInfo {
|
|
1805
1894
|
[key: string]: SmartGridRowInfo | boolean | undefined;
|
|
1806
1895
|
isRowSpan?: boolean;
|
|
@@ -2032,6 +2121,7 @@ declare interface SmartGridStateContext {
|
|
|
2032
2121
|
} & Record<string, unknown>;
|
|
2033
2122
|
pivotPanelColumnDef: null | SmartGridColumnDefinition[];
|
|
2034
2123
|
removeCheckConfigurationOnOperation: boolean;
|
|
2124
|
+
totalColumnsCount: number;
|
|
2035
2125
|
[key: string]: unknown;
|
|
2036
2126
|
}
|
|
2037
2127
|
|
package/dist/pivot.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as t, jsx as e, Fragment as Y } from "react/jsx-runtime";
|
|
3
3
|
import * as j from "react";
|
|
4
4
|
import q, { useState as D, useCallback as c, useMemo as V, useRef as Q, useEffect as J } from "react";
|
|
5
|
-
import { S as X, f as He, g as k, i as ve, o as K, T as pe, B as G, n as Ze, C as U, k as ue, j as oe, M as qe, I as de, l as ee, D as Ue, m as We } from "./right-arrow-
|
|
5
|
+
import { S as X, f as He, g as k, i as ve, o as K, T as pe, B as G, n as Ze, C as U, k as ue, j as oe, M as qe, I as de, l as ee, D as Ue, m as We } from "./right-arrow-u0DuaXma.js";
|
|
6
6
|
import { createPortal as Qe } from "react-dom";
|
|
7
7
|
const Je = ({
|
|
8
8
|
title: l,
|