@infinite-table/infinite-vue 9.2.0 → 9.4.0
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/index.d.ts +43 -6
- package/index.js +6 -6
- package/index.mjs +5 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1421,7 +1421,14 @@ type RowSelectionStateConfig<T> = {
|
|
|
1421
1421
|
groupBy: DataSourceState<T>['groupBy'];
|
|
1422
1422
|
groupDeepMap: DataSourceState<T>['groupDeepMap'];
|
|
1423
1423
|
toPrimaryKey: DataSourceState<T>['toPrimaryKey'];
|
|
1424
|
+
/**
|
|
1425
|
+
* The count of all the rows - for lazy load, after the (remote) filter
|
|
1426
|
+
*/
|
|
1424
1427
|
totalCount: number;
|
|
1428
|
+
/**
|
|
1429
|
+
* Lazy load: the count of all the rows without the filter, when the server sends it
|
|
1430
|
+
*/
|
|
1431
|
+
lazyUnfilteredCount?: number;
|
|
1425
1432
|
indexer: DataSourceState<T>['indexer'];
|
|
1426
1433
|
lazyLoad: boolean;
|
|
1427
1434
|
onlyUsePrimaryKeys: boolean;
|
|
@@ -1471,6 +1478,17 @@ declare class RowSelectionState<T = any> {
|
|
|
1471
1478
|
* so the rows of the group that are filtered out keep their selection
|
|
1472
1479
|
*/
|
|
1473
1480
|
private setVisibleRowsSelection;
|
|
1481
|
+
/**
|
|
1482
|
+
* Lazy load, when the selection also acts on rows that are filtered out:
|
|
1483
|
+
* the count of all the rows inside the group without the filter, if the server sent it
|
|
1484
|
+
*/
|
|
1485
|
+
private getLazyUnfilteredCount;
|
|
1486
|
+
/**
|
|
1487
|
+
* Lazy load, when the selection also acts on rows that are filtered out:
|
|
1488
|
+
* the count of the rows inside the group (not at the last level) that are not inside
|
|
1489
|
+
* its loaded groups - so the rows of the groups hidden by the filter or not loaded yet
|
|
1490
|
+
*/
|
|
1491
|
+
getLazyHiddenRowsCount(groupKeys: any[]): number;
|
|
1474
1492
|
getGroupCount(groupKeys: any[]): number;
|
|
1475
1493
|
getGroupKeysDirectlyInsideGroup(groupKeys: any[]): any[][];
|
|
1476
1494
|
getAllPrimaryKeysInsideGroup(groupKeys: any[]): any[];
|
|
@@ -3846,6 +3864,7 @@ type DeepMapGroupValueType<DataType, KeyType> = {
|
|
|
3846
3864
|
childrenLoading: boolean;
|
|
3847
3865
|
childrenAvailable: boolean;
|
|
3848
3866
|
totalChildrenCount?: number;
|
|
3867
|
+
totalChildrenCountUnfiltered?: number;
|
|
3849
3868
|
cache: boolean;
|
|
3850
3869
|
error?: string;
|
|
3851
3870
|
isTree: false;
|
|
@@ -3938,7 +3957,7 @@ interface DataSourceDataParams<T> {
|
|
|
3938
3957
|
lazyLoadStartIndex?: number;
|
|
3939
3958
|
groupKeys?: any[];
|
|
3940
3959
|
/**
|
|
3941
|
-
* Only passed with `lazyLoad`: the rows a stored multi row selection covers.
|
|
3960
|
+
* Only passed with `lazyLoad` and `selectionMode: 'multi-row'`: the rows a stored multi row selection covers.
|
|
3942
3961
|
* For `'visible'`, a selected group or `defaultSelection: true` covers only the rows that pass `filterValue`.
|
|
3943
3962
|
*/
|
|
3944
3963
|
multiRowSelectionTarget?: DataSourcePropMultiRowSelectionTarget;
|
|
@@ -3962,7 +3981,19 @@ type DataSourceRemoteData<T> = {
|
|
|
3962
3981
|
cache?: boolean;
|
|
3963
3982
|
error?: string;
|
|
3964
3983
|
totalCount?: number;
|
|
3984
|
+
/**
|
|
3985
|
+
* The count of rows (or groups, for a group level) without the filter
|
|
3986
|
+
*/
|
|
3965
3987
|
totalCountUnfiltered?: number;
|
|
3988
|
+
/**
|
|
3989
|
+
* For a group level: the leaf rows under it (at any depth), after the filter
|
|
3990
|
+
*/
|
|
3991
|
+
totalChildrenCount?: number;
|
|
3992
|
+
/**
|
|
3993
|
+
* For a group level: the leaf rows under it (at any depth), without the filter.
|
|
3994
|
+
* With `multiRowSelectionTarget: 'all'`, the selection checkboxes also count the rows that the filter hides.
|
|
3995
|
+
*/
|
|
3996
|
+
totalChildrenCountUnfiltered?: number;
|
|
3966
3997
|
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
3967
3998
|
};
|
|
3968
3999
|
type DataSourceDataFn<T> = (dataInfo: DataSourceDataParams<T>) => T[] | Promise<T[] | DataSourceRemoteData<T>>;
|
|
@@ -4053,6 +4084,11 @@ type LazyGroupDataItem<DataType> = {
|
|
|
4053
4084
|
aggregations?: Record<string, any>;
|
|
4054
4085
|
dataset?: DataSourceRemoteData<DataType>;
|
|
4055
4086
|
totalChildrenCount?: number;
|
|
4087
|
+
/**
|
|
4088
|
+
* The leaf rows under the group (at any depth), without the filter.
|
|
4089
|
+
* With `multiRowSelectionTarget: 'all'`, the selection checkboxes also count the rows that the filter hides.
|
|
4090
|
+
*/
|
|
4091
|
+
totalChildrenCountUnfiltered?: number;
|
|
4056
4092
|
pivot?: {
|
|
4057
4093
|
values: Record<string, any>;
|
|
4058
4094
|
totals?: Record<string, any>;
|
|
@@ -4067,7 +4103,8 @@ type LazyRowInfoGroup<DataType> = {
|
|
|
4067
4103
|
childrenAvailable: boolean;
|
|
4068
4104
|
cache: boolean;
|
|
4069
4105
|
totalCount: number;
|
|
4070
|
-
totalCountUnfiltered
|
|
4106
|
+
totalCountUnfiltered?: number;
|
|
4107
|
+
totalChildrenCountUnfiltered?: number;
|
|
4071
4108
|
error?: string;
|
|
4072
4109
|
};
|
|
4073
4110
|
type LazyGroupDataDeepMap<DataType, KeyType = string> = DeepMap<KeyType, LazyRowInfoGroup<DataType>>;
|
|
@@ -4540,6 +4577,7 @@ declare const DataSource: vue.DefineComponent<{
|
|
|
4540
4577
|
groupBy?: any;
|
|
4541
4578
|
pivotBy?: any;
|
|
4542
4579
|
multiRowSelectionTarget?: any;
|
|
4580
|
+
lazyLoad?: any;
|
|
4543
4581
|
rowSelection?: any;
|
|
4544
4582
|
debugId?: any;
|
|
4545
4583
|
sortMode?: any;
|
|
@@ -4571,7 +4609,6 @@ declare const DataSource: vue.DefineComponent<{
|
|
|
4571
4609
|
onTreeDataMutations?: any;
|
|
4572
4610
|
onReady?: any;
|
|
4573
4611
|
rowInfoReducers?: any;
|
|
4574
|
-
lazyLoad?: any;
|
|
4575
4612
|
useGroupKeysForMultiRowSelection?: any;
|
|
4576
4613
|
onDataParamsChange?: any;
|
|
4577
4614
|
sortFunction?: any;
|
|
@@ -4619,6 +4656,7 @@ declare const DataSource: vue.DefineComponent<{
|
|
|
4619
4656
|
groupBy?: any;
|
|
4620
4657
|
pivotBy?: any;
|
|
4621
4658
|
multiRowSelectionTarget?: any;
|
|
4659
|
+
lazyLoad?: any;
|
|
4622
4660
|
rowSelection?: any;
|
|
4623
4661
|
debugId?: any;
|
|
4624
4662
|
sortMode?: any;
|
|
@@ -4650,7 +4688,6 @@ declare const DataSource: vue.DefineComponent<{
|
|
|
4650
4688
|
onTreeDataMutations?: any;
|
|
4651
4689
|
onReady?: any;
|
|
4652
4690
|
rowInfoReducers?: any;
|
|
4653
|
-
lazyLoad?: any;
|
|
4654
4691
|
useGroupKeysForMultiRowSelection?: any;
|
|
4655
4692
|
onDataParamsChange?: any;
|
|
4656
4693
|
sortFunction?: any;
|
|
@@ -5442,6 +5479,7 @@ declare const TreeDataSource: vue.DefineComponent<{
|
|
|
5442
5479
|
groupBy?: any;
|
|
5443
5480
|
pivotBy?: any;
|
|
5444
5481
|
multiRowSelectionTarget?: any;
|
|
5482
|
+
lazyLoad?: any;
|
|
5445
5483
|
rowSelection?: any;
|
|
5446
5484
|
debugId?: any;
|
|
5447
5485
|
sortMode?: any;
|
|
@@ -5473,7 +5511,6 @@ declare const TreeDataSource: vue.DefineComponent<{
|
|
|
5473
5511
|
onTreeDataMutations?: any;
|
|
5474
5512
|
onReady?: any;
|
|
5475
5513
|
rowInfoReducers?: any;
|
|
5476
|
-
lazyLoad?: any;
|
|
5477
5514
|
useGroupKeysForMultiRowSelection?: any;
|
|
5478
5515
|
onDataParamsChange?: any;
|
|
5479
5516
|
sortFunction?: any;
|
|
@@ -5521,6 +5558,7 @@ declare const TreeDataSource: vue.DefineComponent<{
|
|
|
5521
5558
|
groupBy?: any;
|
|
5522
5559
|
pivotBy?: any;
|
|
5523
5560
|
multiRowSelectionTarget?: any;
|
|
5561
|
+
lazyLoad?: any;
|
|
5524
5562
|
rowSelection?: any;
|
|
5525
5563
|
debugId?: any;
|
|
5526
5564
|
sortMode?: any;
|
|
@@ -5552,7 +5590,6 @@ declare const TreeDataSource: vue.DefineComponent<{
|
|
|
5552
5590
|
onTreeDataMutations?: any;
|
|
5553
5591
|
onReady?: any;
|
|
5554
5592
|
rowInfoReducers?: any;
|
|
5555
|
-
lazyLoad?: any;
|
|
5556
5593
|
useGroupKeysForMultiRowSelection?: any;
|
|
5557
5594
|
onDataParamsChange?: any;
|
|
5558
5595
|
sortFunction?: any;
|