ia-table 0.14.3 → 0.14.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/index.d.ts +101 -8
- package/dist/index.js +10620 -10082
- package/dist/pivot.d.ts +99 -8
- package/dist/pivot.js +1 -1
- package/dist/{right-arrow-BayhBK88.js → right-arrow-DVcW5eaL.js} +466 -459
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ declare const ACTION_TYPES: {
|
|
|
97
97
|
readonly SET_HAS_SPLIT_RENDERER: "SET_HAS_SPLIT_RENDERER";
|
|
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
|
+
readonly SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION: "SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION";
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
declare interface ChildHeightsResult {
|
|
@@ -500,7 +501,7 @@ export declare type SmartGridActionTypes = typeof ACTION_TYPES;
|
|
|
500
501
|
|
|
501
502
|
export declare type SmartGridAggregationType = "sum" | "count" | "avg" | "min" | "max";
|
|
502
503
|
|
|
503
|
-
export declare interface SmartGridAPI {
|
|
504
|
+
export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra {
|
|
504
505
|
getInfiniteRowModel: () => SmartGridInfiniteRowModel | null;
|
|
505
506
|
getInfiniteCache: () => SmartGridInfiniteCache | null;
|
|
506
507
|
getModel: () => SmartGridTableModel;
|
|
@@ -513,10 +514,10 @@ export declare interface SmartGridAPI {
|
|
|
513
514
|
getIsSelectAllRecords: () => boolean;
|
|
514
515
|
setIsSelectAllRecords: (value: boolean) => void;
|
|
515
516
|
getSelectedRows: () => SmartGridRowData[];
|
|
517
|
+
getSelectedRowsID: () => (string | number)[];
|
|
516
518
|
setSelectedRows: (rowIds: (string | number)[]) => void;
|
|
517
519
|
clearSelection: () => void;
|
|
518
520
|
selectAll: () => void;
|
|
519
|
-
refreshCells: () => void;
|
|
520
521
|
getCache: () => SmartGridInfiniteCache | null;
|
|
521
522
|
getCacheState: () => SmartGridCacheState | null;
|
|
522
523
|
getInfiniteCacheInstance: () => SmartGridInfiniteCache | null;
|
|
@@ -536,7 +537,7 @@ export declare interface SmartGridAPI {
|
|
|
536
537
|
getTableWidth: () => number;
|
|
537
538
|
sizeColumnsToFit: () => void;
|
|
538
539
|
setRowData: (newData: SmartGridRowData[]) => boolean | void;
|
|
539
|
-
forEachNode: (callback: (node: SmartGridRowNode, index: number) => void) => void
|
|
540
|
+
forEachNode: (callback: (node: SmartGridRowNode, index: number) => void | Promise<void>) => Promise<void>;
|
|
540
541
|
getColumnDefs: () => SmartGridColumnDefinition[];
|
|
541
542
|
getAllColumns: () => SmartGridColumnDefinition[];
|
|
542
543
|
setColumnDefs: (newColumns: SmartGridColumnDefinition) => void;
|
|
@@ -565,8 +566,11 @@ export declare interface SmartGridAPI {
|
|
|
565
566
|
applySearch: () => void;
|
|
566
567
|
getCurrentPageData: () => SmartGridRowData[];
|
|
567
568
|
getWholeTableData: () => SmartGridRowData[];
|
|
568
|
-
|
|
569
|
-
|
|
569
|
+
refreshCells: (params?: SmartGridRefreshCellsParams) => void;
|
|
570
|
+
flashCells: (params?: SmartGridFlashCellsParams) => void;
|
|
571
|
+
redrawRows: (params?: SmartGridRedrawRowsParams) => void;
|
|
572
|
+
applyTransaction: (transaction: SmartGridRowDataTransaction) => SmartGridRowNodeTransaction;
|
|
573
|
+
getSelectedNodes: () => SmartGridRowNode[];
|
|
570
574
|
refreshClientSideRowModel: () => void;
|
|
571
575
|
resetRecentSearchChanges: () => void;
|
|
572
576
|
onFilterChanged: () => void;
|
|
@@ -586,12 +590,16 @@ export declare interface SmartGridAPI {
|
|
|
586
590
|
fieldName: string;
|
|
587
591
|
value: unknown;
|
|
588
592
|
}) => void;
|
|
589
|
-
setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) =>
|
|
593
|
+
setServerSideDataSource: (dataSource: SmartGridServerSideDataSource, resetCache?: boolean) => SmartGridWrappedDataSource | null;
|
|
590
594
|
updateSmartGridTableData: (wholeData: SmartGridRowData[]) => void;
|
|
591
595
|
downloadSmartGridExcel: (fileName?: string, visibleOnly?: boolean) => void;
|
|
592
596
|
downloadSmartGridCSV: (fileName?: string, visibleOnly?: boolean) => void;
|
|
593
597
|
}
|
|
594
598
|
|
|
599
|
+
export declare type SmartGridApiExtra = {
|
|
600
|
+
[key: string]: unknown;
|
|
601
|
+
};
|
|
602
|
+
|
|
595
603
|
export declare type SmartGridBadgeColor = "default" | "success" | "warning" | "error" | "info";
|
|
596
604
|
|
|
597
605
|
export declare interface SmartGridBadgeProps {
|
|
@@ -703,6 +711,7 @@ export declare interface SmartGridBaseColumnDefinition {
|
|
|
703
711
|
is_multi?: boolean;
|
|
704
712
|
options_column?: string;
|
|
705
713
|
aggregation_func?: SmartGridSelectOption[];
|
|
714
|
+
enableCommaSeparated?: boolean;
|
|
706
715
|
[key: string]: unknown;
|
|
707
716
|
};
|
|
708
717
|
headerComponent?: default_2.FC<SmartGridHeaderStyleParams>;
|
|
@@ -1173,6 +1182,7 @@ export declare type SmartGridCheckConfigraitonSearchField = {
|
|
|
1173
1182
|
type: string;
|
|
1174
1183
|
filterType: string;
|
|
1175
1184
|
filter: string;
|
|
1185
|
+
filterMax?: string;
|
|
1176
1186
|
};
|
|
1177
1187
|
|
|
1178
1188
|
export declare interface SmartGridCheckConfiguration {
|
|
@@ -1324,7 +1334,7 @@ export declare interface SmartGridDateConstraints {
|
|
|
1324
1334
|
maxDate?: Date | string | null;
|
|
1325
1335
|
}
|
|
1326
1336
|
|
|
1327
|
-
export declare type SmartGridDateFormat = "YYYY-MM-DD" | "DD-MM-YYYY" | "MM-DD-YYYY";
|
|
1337
|
+
export declare type SmartGridDateFormat = "YYYY-MM-DD" | "DD-MM-YYYY" | "MM-DD-YYYY" | "YYYY/MM/DD" | "DD/MM/YYYY" | "MM/DD/YYYY";
|
|
1328
1338
|
|
|
1329
1339
|
export declare type SmartGridDatePickerHandler = React.MouseEvent<HTMLButtonElement> | KeyboardEvent;
|
|
1330
1340
|
|
|
@@ -1453,6 +1463,7 @@ export declare type SmartGridDefaultColDef = {
|
|
|
1453
1463
|
innerHeaderComponent: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1454
1464
|
};
|
|
1455
1465
|
headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
|
|
1466
|
+
enableCellChangeFlash?: boolean;
|
|
1456
1467
|
};
|
|
1457
1468
|
|
|
1458
1469
|
export declare type SmartGridDispatch = (action: {
|
|
@@ -1654,6 +1665,24 @@ export declare interface SmartGridFilterModel {
|
|
|
1654
1665
|
[key: string]: unknown;
|
|
1655
1666
|
}
|
|
1656
1667
|
|
|
1668
|
+
/**
|
|
1669
|
+
* Parameters for flashCells API (AG Grid compatible)
|
|
1670
|
+
*/
|
|
1671
|
+
export declare interface SmartGridFlashCellsParams {
|
|
1672
|
+
/** Optional list of row nodes to flash. If not provided with columns, nothing flashes. */
|
|
1673
|
+
rowNodes?: SmartGridRowNode[];
|
|
1674
|
+
/** Optional list of column IDs to flash. If not provided with rowNodes, nothing flashes. */
|
|
1675
|
+
columns?: string[];
|
|
1676
|
+
/** Duration of the flash in milliseconds. Default: 500 */
|
|
1677
|
+
flashDuration?: number;
|
|
1678
|
+
/** Duration of the fade animation in milliseconds. Default: 500 */
|
|
1679
|
+
fadeDuration?: number;
|
|
1680
|
+
/** Custom CSS class to apply during flash */
|
|
1681
|
+
flashCssClass?: string;
|
|
1682
|
+
/** Custom CSS class to apply during fade */
|
|
1683
|
+
fadeCssClass?: string;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1657
1686
|
export declare type SmartGridFloatingType = "top" | "bottom" | null;
|
|
1658
1687
|
|
|
1659
1688
|
export declare interface SmartGridFocusedCell extends SmartGridSelectedCell {
|
|
@@ -1693,6 +1722,7 @@ export declare interface SmartGridGetDatePickerDataParams {
|
|
|
1693
1722
|
startDate?: string;
|
|
1694
1723
|
endDate?: string;
|
|
1695
1724
|
} | string | string[];
|
|
1725
|
+
dateFormat?: string;
|
|
1696
1726
|
}
|
|
1697
1727
|
|
|
1698
1728
|
export declare interface SmartGridGetErrorInDateTimeParams {
|
|
@@ -2274,6 +2304,19 @@ export declare interface SmartGridPagesPerPageSectionProps {
|
|
|
2274
2304
|
selectedElement: number;
|
|
2275
2305
|
}
|
|
2276
2306
|
|
|
2307
|
+
declare interface SmartGridPaginationAPI {
|
|
2308
|
+
paginationGetPageSize: () => number;
|
|
2309
|
+
paginationGetRowCount: () => number;
|
|
2310
|
+
paginationGetCurrentPage: () => number;
|
|
2311
|
+
paginationGetTotalPages: () => number;
|
|
2312
|
+
paginationGoToPage: (pageNumber: number) => void;
|
|
2313
|
+
paginationGoToFirstPage: () => void;
|
|
2314
|
+
paginationGoToLastPage: () => void;
|
|
2315
|
+
paginationGoToNextPage: () => void;
|
|
2316
|
+
paginationGoToPreviousPage: () => void;
|
|
2317
|
+
paginationIsLastPageFound: () => boolean;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2277
2320
|
export declare interface SmartGridPaginationModel {
|
|
2278
2321
|
currentPage: number;
|
|
2279
2322
|
pageSize: number;
|
|
@@ -2608,6 +2651,14 @@ export declare type SmartGridRangeFilter = {
|
|
|
2608
2651
|
operator?: string;
|
|
2609
2652
|
};
|
|
2610
2653
|
|
|
2654
|
+
/**
|
|
2655
|
+
* Parameters for redrawRows API (AG Grid compatible)
|
|
2656
|
+
*/
|
|
2657
|
+
export declare interface SmartGridRedrawRowsParams {
|
|
2658
|
+
/** Optional list of row nodes to redraw. If not provided, all rows are redrawn */
|
|
2659
|
+
rowNodes?: SmartGridRowNode[];
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2611
2662
|
export declare interface SmartGridRefreshCacheOptions {
|
|
2612
2663
|
purge?: boolean;
|
|
2613
2664
|
partialRefresh?: boolean;
|
|
@@ -2615,6 +2666,20 @@ export declare interface SmartGridRefreshCacheOptions {
|
|
|
2615
2666
|
userInitiated?: boolean;
|
|
2616
2667
|
}
|
|
2617
2668
|
|
|
2669
|
+
/**
|
|
2670
|
+
* Parameters for refreshCells API (AG Grid compatible)
|
|
2671
|
+
*/
|
|
2672
|
+
export declare interface SmartGridRefreshCellsParams {
|
|
2673
|
+
/** Optional list of row nodes to refresh. If not provided, all rows are refreshed. */
|
|
2674
|
+
rowNodes?: SmartGridRowNode[];
|
|
2675
|
+
/** Optional list of column IDs to refresh. If not provided, all columns are refreshed. */
|
|
2676
|
+
columns?: string[];
|
|
2677
|
+
/** If true, forces refresh even if the cell value hasn't changed. Default: false */
|
|
2678
|
+
force?: boolean;
|
|
2679
|
+
/** If true, suppresses the flash animation. Default: false */
|
|
2680
|
+
suppressFlash?: boolean;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2618
2683
|
export declare interface SmartGridRefreshOptions {
|
|
2619
2684
|
purge?: boolean;
|
|
2620
2685
|
resetPage?: boolean;
|
|
@@ -2677,6 +2742,20 @@ export declare interface SmartGridRowData {
|
|
|
2677
2742
|
};
|
|
2678
2743
|
}
|
|
2679
2744
|
|
|
2745
|
+
/**
|
|
2746
|
+
* Transaction object for applyTransaction API (AG Grid compatible)
|
|
2747
|
+
*/
|
|
2748
|
+
export declare interface SmartGridRowDataTransaction {
|
|
2749
|
+
/** Rows to add */
|
|
2750
|
+
add?: SmartGridRowData[];
|
|
2751
|
+
/** Index position to add rows at. If not provided, rows are added at the end */
|
|
2752
|
+
addIndex?: number;
|
|
2753
|
+
/** Rows to remove. Only the row ID field is required */
|
|
2754
|
+
remove?: SmartGridRowData[];
|
|
2755
|
+
/** Rows to update. The row ID field is used to match rows */
|
|
2756
|
+
update?: SmartGridRowData[];
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2680
2759
|
export declare interface SmartGridRowDragEndParams {
|
|
2681
2760
|
api: SmartGridAPI;
|
|
2682
2761
|
type: "rowDragEnd";
|
|
@@ -2783,6 +2862,18 @@ export declare interface SmartGridRowNode extends SmartGridUpdateData {
|
|
|
2783
2862
|
isGroup?: () => boolean;
|
|
2784
2863
|
}
|
|
2785
2864
|
|
|
2865
|
+
/**
|
|
2866
|
+
* Result of applyTransaction API (AG Grid compatible)
|
|
2867
|
+
*/
|
|
2868
|
+
export declare interface SmartGridRowNodeTransaction {
|
|
2869
|
+
/** Row nodes that were added */
|
|
2870
|
+
add: SmartGridRowNode[];
|
|
2871
|
+
/** Row nodes that were removed */
|
|
2872
|
+
remove: SmartGridRowNode[];
|
|
2873
|
+
/** Row nodes that were updated */
|
|
2874
|
+
update: SmartGridRowNode[];
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2786
2877
|
export declare interface SmartGridRowRenderer {
|
|
2787
2878
|
firstRenderedRow: number;
|
|
2788
2879
|
lastRenderedRow: number;
|
|
@@ -3187,6 +3278,7 @@ export declare interface SmartGridStateContext {
|
|
|
3187
3278
|
savedViewsOptions?: SmartGridSavedViewsOptions[];
|
|
3188
3279
|
} & Record<string, unknown>;
|
|
3189
3280
|
pivotPanelColumnDef: null | SmartGridColumnDefinition[];
|
|
3281
|
+
removeCheckConfigurationOnOperation: boolean;
|
|
3190
3282
|
[key: string]: unknown;
|
|
3191
3283
|
}
|
|
3192
3284
|
|
|
@@ -3423,7 +3515,7 @@ export declare interface SmartGridTableModel {
|
|
|
3423
3515
|
getFilterModel: () => SmartGridFilterModel;
|
|
3424
3516
|
getType: () => SmartGridModelType;
|
|
3425
3517
|
getRowsToDisplay: () => number;
|
|
3426
|
-
forEachNode: (callback: (node: SmartGridRowNode, index: number) => void) => void
|
|
3518
|
+
forEachNode: (callback: (node: SmartGridRowNode, index: number) => void | Promise<void>) => Promise<void>;
|
|
3427
3519
|
getRowNode: (id: string | number) => SmartGridRowNode | null;
|
|
3428
3520
|
getSelectedRows: () => SmartGridRowData[];
|
|
3429
3521
|
getPaginationModel: () => SmartGridPaginationModel;
|
|
@@ -3553,6 +3645,7 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
|
|
|
3553
3645
|
hasSplitRenderer?: boolean;
|
|
3554
3646
|
splitRendererKeys?: string[];
|
|
3555
3647
|
removeSelectionOnOperation?: boolean;
|
|
3648
|
+
removeCheckConfigurationOnOperation?: boolean;
|
|
3556
3649
|
pivotConfig?: SmartGridPivotConfig;
|
|
3557
3650
|
/**
|
|
3558
3651
|
* Controls whether the table should show loading state.
|