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/index.d.ts
CHANGED
|
@@ -98,6 +98,9 @@ declare const ACTION_TYPES: {
|
|
|
98
98
|
readonly SET_HAS_SPLIT_RENDERER_KEYS: "SET_HAS_SPLIT_RENDERER_KEYS";
|
|
99
99
|
readonly SET_REMOVE_SELECTION_ON_OPERATION: "SET_REMOVE_SELECTION_ON_OPERATION";
|
|
100
100
|
readonly SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION: "SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION";
|
|
101
|
+
readonly SET_TOTAL_COLUMNS_COUNT: "SET_TOTAL_COLUMNS_COUNT";
|
|
102
|
+
readonly SET_ALL_CHILD_ROWS_EXPANDED: "SET_ALL_CHILD_ROWS_EXPANDED";
|
|
103
|
+
readonly EXPAND_ROW_WITH_NESTED_CHILDREN: "EXPAND_ROW_WITH_NESTED_CHILDREN";
|
|
101
104
|
};
|
|
102
105
|
|
|
103
106
|
declare interface ChildHeightsResult {
|
|
@@ -501,7 +504,7 @@ export declare type SmartGridActionTypes = typeof ACTION_TYPES;
|
|
|
501
504
|
|
|
502
505
|
export declare type SmartGridAggregationType = "sum" | "count" | "avg" | "min" | "max";
|
|
503
506
|
|
|
504
|
-
export declare interface SmartGridAPI {
|
|
507
|
+
export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra {
|
|
505
508
|
getInfiniteRowModel: () => SmartGridInfiniteRowModel | null;
|
|
506
509
|
getInfiniteCache: () => SmartGridInfiniteCache | null;
|
|
507
510
|
getModel: () => SmartGridTableModel;
|
|
@@ -518,7 +521,6 @@ export declare interface SmartGridAPI {
|
|
|
518
521
|
setSelectedRows: (rowIds: (string | number)[]) => void;
|
|
519
522
|
clearSelection: () => void;
|
|
520
523
|
selectAll: () => void;
|
|
521
|
-
refreshCells: () => void;
|
|
522
524
|
getCache: () => SmartGridInfiniteCache | null;
|
|
523
525
|
getCacheState: () => SmartGridCacheState | null;
|
|
524
526
|
getInfiniteCacheInstance: () => SmartGridInfiniteCache | null;
|
|
@@ -567,8 +569,11 @@ export declare interface SmartGridAPI {
|
|
|
567
569
|
applySearch: () => void;
|
|
568
570
|
getCurrentPageData: () => SmartGridRowData[];
|
|
569
571
|
getWholeTableData: () => SmartGridRowData[];
|
|
570
|
-
|
|
571
|
-
|
|
572
|
+
refreshCells: (params?: SmartGridRefreshCellsParams) => void;
|
|
573
|
+
flashCells: (params?: SmartGridFlashCellsParams) => void;
|
|
574
|
+
redrawRows: (params?: SmartGridRedrawRowsParams) => void;
|
|
575
|
+
applyTransaction: (transaction: SmartGridRowDataTransaction) => SmartGridRowNodeTransaction;
|
|
576
|
+
getSelectedNodes: () => SmartGridRowNode[];
|
|
572
577
|
refreshClientSideRowModel: () => void;
|
|
573
578
|
resetRecentSearchChanges: () => void;
|
|
574
579
|
onFilterChanged: () => void;
|
|
@@ -588,12 +593,16 @@ export declare interface SmartGridAPI {
|
|
|
588
593
|
fieldName: string;
|
|
589
594
|
value: unknown;
|
|
590
595
|
}) => void;
|
|
591
|
-
setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) =>
|
|
596
|
+
setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) => SmartGridWrappedDataSource | null;
|
|
592
597
|
updateSmartGridTableData: (wholeData: SmartGridRowData[]) => void;
|
|
593
598
|
downloadSmartGridExcel: (fileName?: string, visibleOnly?: boolean) => void;
|
|
594
599
|
downloadSmartGridCSV: (fileName?: string, visibleOnly?: boolean) => void;
|
|
595
600
|
}
|
|
596
601
|
|
|
602
|
+
export declare type SmartGridApiExtra = {
|
|
603
|
+
[key: string]: unknown;
|
|
604
|
+
};
|
|
605
|
+
|
|
597
606
|
export declare type SmartGridBadgeColor = "default" | "success" | "warning" | "error" | "info";
|
|
598
607
|
|
|
599
608
|
export declare interface SmartGridBadgeProps {
|
|
@@ -844,6 +853,8 @@ export declare interface SmartGridBodyCellDetailProps {
|
|
|
844
853
|
hasChildren: boolean;
|
|
845
854
|
isAggregationParentRowWithAggregatedData: boolean;
|
|
846
855
|
lazyLoadCellRenderer?: boolean;
|
|
856
|
+
totalRows?: number;
|
|
857
|
+
totalColumns?: number;
|
|
847
858
|
childKeyField: string;
|
|
848
859
|
}
|
|
849
860
|
|
|
@@ -1457,6 +1468,7 @@ export declare type SmartGridDefaultColDef = {
|
|
|
1457
1468
|
innerHeaderComponent: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1458
1469
|
};
|
|
1459
1470
|
headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1471
|
+
enableCellChangeFlash?: boolean;
|
|
1460
1472
|
};
|
|
1461
1473
|
|
|
1462
1474
|
export declare type SmartGridDispatch = (action: {
|
|
@@ -1658,6 +1670,24 @@ export declare interface SmartGridFilterModel {
|
|
|
1658
1670
|
[key: string]: unknown;
|
|
1659
1671
|
}
|
|
1660
1672
|
|
|
1673
|
+
/**
|
|
1674
|
+
* Parameters for flashCells API (AG Grid compatible)
|
|
1675
|
+
*/
|
|
1676
|
+
export declare interface SmartGridFlashCellsParams {
|
|
1677
|
+
/** Optional list of row nodes to flash. If not provided with columns, nothing flashes. */
|
|
1678
|
+
rowNodes?: SmartGridRowNode[];
|
|
1679
|
+
/** Optional list of column IDs to flash. If not provided with rowNodes, nothing flashes. */
|
|
1680
|
+
columns?: string[];
|
|
1681
|
+
/** Duration of the flash in milliseconds. Default: 500 */
|
|
1682
|
+
flashDuration?: number;
|
|
1683
|
+
/** Duration of the fade animation in milliseconds. Default: 500 */
|
|
1684
|
+
fadeDuration?: number;
|
|
1685
|
+
/** Custom CSS class to apply during flash */
|
|
1686
|
+
flashCssClass?: string;
|
|
1687
|
+
/** Custom CSS class to apply during fade */
|
|
1688
|
+
fadeCssClass?: string;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1661
1691
|
export declare type SmartGridFloatingType = "top" | "bottom" | null;
|
|
1662
1692
|
|
|
1663
1693
|
export declare interface SmartGridFocusedCell extends SmartGridSelectedCell {
|
|
@@ -2279,6 +2309,19 @@ export declare interface SmartGridPagesPerPageSectionProps {
|
|
|
2279
2309
|
selectedElement: number;
|
|
2280
2310
|
}
|
|
2281
2311
|
|
|
2312
|
+
declare interface SmartGridPaginationAPI {
|
|
2313
|
+
paginationGetPageSize: () => number;
|
|
2314
|
+
paginationGetRowCount: () => number;
|
|
2315
|
+
paginationGetCurrentPage: () => number;
|
|
2316
|
+
paginationGetTotalPages: () => number;
|
|
2317
|
+
paginationGoToPage: (pageNumber: number) => void;
|
|
2318
|
+
paginationGoToFirstPage: () => void;
|
|
2319
|
+
paginationGoToLastPage: () => void;
|
|
2320
|
+
paginationGoToNextPage: () => void;
|
|
2321
|
+
paginationGoToPreviousPage: () => void;
|
|
2322
|
+
paginationIsLastPageFound: () => boolean;
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2282
2325
|
export declare interface SmartGridPaginationModel {
|
|
2283
2326
|
currentPage: number;
|
|
2284
2327
|
pageSize: number;
|
|
@@ -2613,6 +2656,14 @@ export declare type SmartGridRangeFilter = {
|
|
|
2613
2656
|
operator?: string;
|
|
2614
2657
|
};
|
|
2615
2658
|
|
|
2659
|
+
/**
|
|
2660
|
+
* Parameters for redrawRows API (AG Grid compatible)
|
|
2661
|
+
*/
|
|
2662
|
+
export declare interface SmartGridRedrawRowsParams {
|
|
2663
|
+
/** Optional list of row nodes to redraw. If not provided, all rows are redrawn */
|
|
2664
|
+
rowNodes?: SmartGridRowNode[];
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2616
2667
|
export declare interface SmartGridRefreshCacheOptions {
|
|
2617
2668
|
purge?: boolean;
|
|
2618
2669
|
partialRefresh?: boolean;
|
|
@@ -2620,6 +2671,20 @@ export declare interface SmartGridRefreshCacheOptions {
|
|
|
2620
2671
|
userInitiated?: boolean;
|
|
2621
2672
|
}
|
|
2622
2673
|
|
|
2674
|
+
/**
|
|
2675
|
+
* Parameters for refreshCells API (AG Grid compatible)
|
|
2676
|
+
*/
|
|
2677
|
+
export declare interface SmartGridRefreshCellsParams {
|
|
2678
|
+
/** Optional list of row nodes to refresh. If not provided, all rows are refreshed. */
|
|
2679
|
+
rowNodes?: SmartGridRowNode[];
|
|
2680
|
+
/** Optional list of column IDs to refresh. If not provided, all columns are refreshed. */
|
|
2681
|
+
columns?: string[];
|
|
2682
|
+
/** If true, forces refresh even if the cell value hasn't changed. Default: false */
|
|
2683
|
+
force?: boolean;
|
|
2684
|
+
/** If true, suppresses the flash animation. Default: false */
|
|
2685
|
+
suppressFlash?: boolean;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2623
2688
|
export declare interface SmartGridRefreshOptions {
|
|
2624
2689
|
purge?: boolean;
|
|
2625
2690
|
resetPage?: boolean;
|
|
@@ -2682,6 +2747,20 @@ export declare interface SmartGridRowData {
|
|
|
2682
2747
|
};
|
|
2683
2748
|
}
|
|
2684
2749
|
|
|
2750
|
+
/**
|
|
2751
|
+
* Transaction object for applyTransaction API (AG Grid compatible)
|
|
2752
|
+
*/
|
|
2753
|
+
export declare interface SmartGridRowDataTransaction {
|
|
2754
|
+
/** Rows to add */
|
|
2755
|
+
add?: SmartGridRowData[];
|
|
2756
|
+
/** Index position to add rows at. If not provided, rows are added at the end */
|
|
2757
|
+
addIndex?: number;
|
|
2758
|
+
/** Rows to remove. Only the row ID field is required */
|
|
2759
|
+
remove?: SmartGridRowData[];
|
|
2760
|
+
/** Rows to update. The row ID field is used to match rows */
|
|
2761
|
+
update?: SmartGridRowData[];
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2685
2764
|
export declare interface SmartGridRowDragEndParams {
|
|
2686
2765
|
api: SmartGridAPI;
|
|
2687
2766
|
type: "rowDragEnd";
|
|
@@ -2788,6 +2867,18 @@ export declare interface SmartGridRowNode extends SmartGridUpdateData {
|
|
|
2788
2867
|
isGroup?: () => boolean;
|
|
2789
2868
|
}
|
|
2790
2869
|
|
|
2870
|
+
/**
|
|
2871
|
+
* Result of applyTransaction API (AG Grid compatible)
|
|
2872
|
+
*/
|
|
2873
|
+
export declare interface SmartGridRowNodeTransaction {
|
|
2874
|
+
/** Row nodes that were added */
|
|
2875
|
+
add: SmartGridRowNode[];
|
|
2876
|
+
/** Row nodes that were removed */
|
|
2877
|
+
remove: SmartGridRowNode[];
|
|
2878
|
+
/** Row nodes that were updated */
|
|
2879
|
+
update: SmartGridRowNode[];
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2791
2882
|
export declare interface SmartGridRowRenderer {
|
|
2792
2883
|
firstRenderedRow: number;
|
|
2793
2884
|
lastRenderedRow: number;
|
|
@@ -3193,6 +3284,7 @@ export declare interface SmartGridStateContext {
|
|
|
3193
3284
|
} & Record<string, unknown>;
|
|
3194
3285
|
pivotPanelColumnDef: null | SmartGridColumnDefinition[];
|
|
3195
3286
|
removeCheckConfigurationOnOperation: boolean;
|
|
3287
|
+
totalColumnsCount: number;
|
|
3196
3288
|
[key: string]: unknown;
|
|
3197
3289
|
}
|
|
3198
3290
|
|