@infinite-table/infinite-react 0.0.1-canary.12 → 0.0.2-canary.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 +4 -1
- package/index.esm.js +6 -4
- package/index.js +6 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -561,8 +561,9 @@ declare module "utils/groupAndPivot/index" {
|
|
|
561
561
|
}
|
|
562
562
|
declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
563
563
|
import * as React from 'react';
|
|
564
|
+
import { InfiniteTableState } from "components/InfiniteTable/types/index";
|
|
564
565
|
import { AggregationReducer, InfiniteTableEnhancedData } from "utils/groupAndPivot/index";
|
|
565
|
-
import { DataSourceGroupRowsBy, DataSourcePropGroupRowsBy, DataSourcePropPivotBy } from "components/DataSource/index";
|
|
566
|
+
import { DataSourceGroupRowsBy, DataSourcePropGroupRowsBy, DataSourcePropPivotBy, DataSourceState } from "components/DataSource/index";
|
|
566
567
|
import { Renderable } from "components/types/Renderable";
|
|
567
568
|
import type { InfiniteTableBaseColumn, InfiniteTableColumn, InfiniteTableColumnRenderFunction, InfiniteTableColumnWithSize, InfiniteTableComputedColumn, InfiniteTableGeneratedGroupColumn, InfiniteTablePivotColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
568
569
|
import { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
@@ -589,6 +590,8 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
589
590
|
setColumnVisibility: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
|
|
590
591
|
setColumnAggregations: (columnAggregations: InfiniteTablePropColumnAggregations<T>) => void;
|
|
591
592
|
x?: T;
|
|
593
|
+
getState: () => InfiniteTableState<T>;
|
|
594
|
+
getDataSourceState: () => DataSourceState<T>;
|
|
592
595
|
};
|
|
593
596
|
export type InfiniteTablePropVirtualizeColumns<T> = boolean | ((columns: InfiniteTableComputedColumn<T>[]) => boolean);
|
|
594
597
|
export type InfiniteTableInternalProps<T> = {
|
package/index.esm.js
CHANGED
|
@@ -5899,7 +5899,7 @@ function useListRendering(param) {
|
|
|
5899
5899
|
computedPinnedStartOverflow,
|
|
5900
5900
|
computedPinnedEndOverflow
|
|
5901
5901
|
} = computed;
|
|
5902
|
-
const { componentState: dataSourceState } = useDataSourceContextValue();
|
|
5902
|
+
const { componentState: dataSourceState, getState: getDataSourceState } = useDataSourceContextValue();
|
|
5903
5903
|
const { dataArray } = dataSourceState;
|
|
5904
5904
|
const getData = useLatest(dataArray);
|
|
5905
5905
|
const {
|
|
@@ -5943,7 +5943,9 @@ function useListRendering(param) {
|
|
|
5943
5943
|
setColumnVisibility: (columnVisibility) => {
|
|
5944
5944
|
componentActions.columnVisibility = columnVisibility;
|
|
5945
5945
|
},
|
|
5946
|
-
setColumnAggregations: (columnAggregations) => componentActions.columnAggregations = columnAggregations
|
|
5946
|
+
setColumnAggregations: (columnAggregations) => componentActions.columnAggregations = columnAggregations,
|
|
5947
|
+
getState,
|
|
5948
|
+
getDataSourceState
|
|
5947
5949
|
};
|
|
5948
5950
|
onReady(imperativeApi);
|
|
5949
5951
|
}
|
|
@@ -5953,7 +5955,7 @@ function useListRendering(param) {
|
|
|
5953
5955
|
horizontalVirtualBrain,
|
|
5954
5956
|
domRef
|
|
5955
5957
|
});
|
|
5956
|
-
const {
|
|
5958
|
+
const { componentActions: dataSourceActions } = useDataSourceContextValue();
|
|
5957
5959
|
const toggleGroupRow = useCallback17((groupKeys) => {
|
|
5958
5960
|
const newState = new GroupRowsState(getDataSourceState().groupRowsState);
|
|
5959
5961
|
newState.toggleGroupRow(groupKeys);
|
|
@@ -6245,7 +6247,7 @@ var useLicense = (licenseKey) => {
|
|
|
6245
6247
|
const valid = useMemo10(() => {
|
|
6246
6248
|
return isValidLicense(licenseKey, {
|
|
6247
6249
|
publishedAt: 1624970570587,
|
|
6248
|
-
version: "0.0.
|
|
6250
|
+
version: "0.0.2-canary.0"
|
|
6249
6251
|
});
|
|
6250
6252
|
}, [licenseKey]);
|
|
6251
6253
|
return valid;
|
package/index.js
CHANGED
|
@@ -5810,7 +5810,7 @@ function useListRendering(param) {
|
|
|
5810
5810
|
computedPinnedStartOverflow,
|
|
5811
5811
|
computedPinnedEndOverflow
|
|
5812
5812
|
} = computed;
|
|
5813
|
-
const { componentState: dataSourceState } = useDataSourceContextValue();
|
|
5813
|
+
const { componentState: dataSourceState, getState: getDataSourceState } = useDataSourceContextValue();
|
|
5814
5814
|
const { dataArray } = dataSourceState;
|
|
5815
5815
|
const getData = useLatest(dataArray);
|
|
5816
5816
|
const {
|
|
@@ -5854,7 +5854,9 @@ function useListRendering(param) {
|
|
|
5854
5854
|
setColumnVisibility: (columnVisibility) => {
|
|
5855
5855
|
componentActions.columnVisibility = columnVisibility;
|
|
5856
5856
|
},
|
|
5857
|
-
setColumnAggregations: (columnAggregations) => componentActions.columnAggregations = columnAggregations
|
|
5857
|
+
setColumnAggregations: (columnAggregations) => componentActions.columnAggregations = columnAggregations,
|
|
5858
|
+
getState,
|
|
5859
|
+
getDataSourceState
|
|
5858
5860
|
};
|
|
5859
5861
|
onReady(imperativeApi);
|
|
5860
5862
|
}
|
|
@@ -5864,7 +5866,7 @@ function useListRendering(param) {
|
|
|
5864
5866
|
horizontalVirtualBrain,
|
|
5865
5867
|
domRef
|
|
5866
5868
|
});
|
|
5867
|
-
const {
|
|
5869
|
+
const { componentActions: dataSourceActions } = useDataSourceContextValue();
|
|
5868
5870
|
const toggleGroupRow = (0, import_react39.useCallback)((groupKeys) => {
|
|
5869
5871
|
const newState = new GroupRowsState(getDataSourceState().groupRowsState);
|
|
5870
5872
|
newState.toggleGroupRow(groupKeys);
|
|
@@ -6151,7 +6153,7 @@ var useLicense = (licenseKey) => {
|
|
|
6151
6153
|
const valid = (0, import_react41.useMemo)(() => {
|
|
6152
6154
|
return isValidLicense(licenseKey, {
|
|
6153
6155
|
publishedAt: 1624970570587,
|
|
6154
|
-
version: "0.0.
|
|
6156
|
+
version: "0.0.2-canary.0"
|
|
6155
6157
|
});
|
|
6156
6158
|
}, [licenseKey]);
|
|
6157
6159
|
return valid;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinite-table/infinite-react",
|
|
3
3
|
"description": "Infinite Table for React",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2-canary.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "Commercial",
|
|
17
17
|
"//": "will be updated at build time",
|
|
18
|
-
"publishedAt":
|
|
18
|
+
"publishedAt": 1634130707983
|
|
19
19
|
}
|