@infinite-table/infinite-react 0.2.7 → 0.2.8
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 -5
- package/index.esm.js +6 -4
- package/index.js +6 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -611,10 +611,9 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
611
611
|
groupIcon: Renderable;
|
|
612
612
|
};
|
|
613
613
|
export type InfiniteTableColumnRenderValueParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>;
|
|
614
|
-
export type
|
|
614
|
+
export type InfiniteTableColumnRowspanParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
615
615
|
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
616
616
|
data: DATA_TYPE | Partial<DATA_TYPE> | null;
|
|
617
|
-
groupRowInfo: InfiniteTableRowInfo<DATA_TYPE> | null;
|
|
618
617
|
dataArray: InfiniteTableRowInfo<DATA_TYPE>[];
|
|
619
618
|
rowIndex: number;
|
|
620
619
|
column: COL_TYPE;
|
|
@@ -668,7 +667,7 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
668
667
|
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
669
668
|
};
|
|
670
669
|
export type InfiniteTableColumnValueGetter<T, VALUE_GETTER_TYPE = Renderable> = (params: InfiniteTableColumnValueGetterParams<T>) => VALUE_GETTER_TYPE;
|
|
671
|
-
export type InfiniteTableColumnRowspanFn<T> = (params:
|
|
670
|
+
export type InfiniteTableColumnRowspanFn<T> = (params: InfiniteTableColumnRowspanParam<T>) => number;
|
|
672
671
|
export type InfiniteTableColumnComparer<T> = (a: T, b: T) => number;
|
|
673
672
|
export type InfiniteTableBaseColumn<T> = {
|
|
674
673
|
sortable?: boolean;
|
|
@@ -1493,11 +1492,11 @@ declare module "components/InfiniteTable/types/index" {
|
|
|
1493
1492
|
import type { InfiniteTableAction } from "components/InfiniteTable/types/InfiniteTableAction";
|
|
1494
1493
|
import type { InfiniteTableActionType } from "components/InfiniteTable/types/InfiniteTableActionType";
|
|
1495
1494
|
import type { InfiniteTableProps, InfiniteTableImperativeApi, InfiniteTablePropColumnOrder, InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnAggregator, InfiniteTableColumnGroup, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnGroups, InfiniteTablePropRowStyle, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTablePropRowClassName, InfiniteTablePropColumns, InfiniteTablePropColumnsMap, InfiniteTablePropComponents, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTablePropColumnSizingMap, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnTypesMap, InfiniteTableColumnSizingOptions, Scrollbars, InfiniteTableGroupColumnBase, InfiniteTablePropGroupColumn } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1496
|
-
import type { InfiniteTableColumn, InfiniteTableColumnComparer, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam,
|
|
1495
|
+
import type { InfiniteTableColumn, InfiniteTableColumnComparer, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1497
1496
|
import type { InfiniteTableComputedValues } from "components/InfiniteTable/types/InfiniteTableComputedValues";
|
|
1498
1497
|
import type { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
1499
1498
|
import type { InfiniteTableRowInfo } from "utils/groupAndPivot/index";
|
|
1500
|
-
export type { Scrollbars, InfiniteTableColumnAggregator, InfiniteTableComputedValues,
|
|
1499
|
+
export type { Scrollbars, InfiniteTableColumnAggregator, InfiniteTableComputedValues, InfiniteTableColumnRowspanParam, InfiniteTablePropColumns, InfiniteTablePropGroupColumn, InfiniteTablePropColumnsMap, InfiniteTableRowInfo, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnBase, InfiniteTablePropColumnOrder, InfiniteTablePropComponents, InfiniteTablePropColumnVisibility as InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnGroup, InfiniteTableColumn, InfiniteTableColumnComparer, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableContextValue, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnGroups, InfiniteTablePropColumnSizing, InfiniteTablePropColumnSizingMap, InfiniteTableColumnSizingOptions, InfiniteTableState, InfiniteTableAction, InfiniteTableProps, InfiniteTablePropColumnTypes, InfiniteTablePropColumnTypesMap, InfiniteTableImperativeApi, InfiniteTableActionType, InfiniteTablePropRowStyle, InfiniteTablePropRowClassName, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTableGroupColumnGetterOptions, };
|
|
1501
1500
|
}
|
|
1502
1501
|
declare module "components/InfiniteTable/InfiniteTableContext" {
|
|
1503
1502
|
import { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
package/index.esm.js
CHANGED
|
@@ -2936,7 +2936,7 @@ function enhancedFlatten(param) {
|
|
|
2936
2936
|
if (!pivot) {
|
|
2937
2937
|
const startIndex = result.length;
|
|
2938
2938
|
result.push(...items.map((item, index) => {
|
|
2939
|
-
|
|
2939
|
+
const rowInfo = {
|
|
2940
2940
|
id: item ? toPrimaryKey(item) : `${groupKeys}-${index}`,
|
|
2941
2941
|
data: item,
|
|
2942
2942
|
isGroupRow: false,
|
|
@@ -2950,6 +2950,10 @@ function enhancedFlatten(param) {
|
|
|
2950
2950
|
groupNesting,
|
|
2951
2951
|
groupCount: enhancedGroupData.groupCount
|
|
2952
2952
|
};
|
|
2953
|
+
parents.forEach((parent) => {
|
|
2954
|
+
parent.flatRowInfoList.push(rowInfo);
|
|
2955
|
+
});
|
|
2956
|
+
return rowInfo;
|
|
2953
2957
|
}));
|
|
2954
2958
|
}
|
|
2955
2959
|
} else {
|
|
@@ -4501,7 +4505,6 @@ function useComputed() {
|
|
|
4501
4505
|
column,
|
|
4502
4506
|
data,
|
|
4503
4507
|
dataArray,
|
|
4504
|
-
groupRowInfo: null,
|
|
4505
4508
|
rowInfo,
|
|
4506
4509
|
rowIndex: itemIndex
|
|
4507
4510
|
});
|
|
@@ -6206,7 +6209,6 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
6206
6209
|
dataArray: getData(),
|
|
6207
6210
|
column,
|
|
6208
6211
|
rowInfo,
|
|
6209
|
-
groupRowInfo,
|
|
6210
6212
|
rowIndex,
|
|
6211
6213
|
data: rowInfo.data
|
|
6212
6214
|
});
|
|
@@ -7822,7 +7824,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
7822
7824
|
const valid = useMemo13(() => {
|
|
7823
7825
|
let valid2 = isValidLicense(licenseKey, {
|
|
7824
7826
|
publishedAt: 1624970570587,
|
|
7825
|
-
version: "0.2.
|
|
7827
|
+
version: "0.2.8"
|
|
7826
7828
|
});
|
|
7827
7829
|
if (!licenseKey && !valid2 && isInsideSandbox) {
|
|
7828
7830
|
return true;
|
package/index.js
CHANGED
|
@@ -2922,7 +2922,7 @@ function enhancedFlatten(param) {
|
|
|
2922
2922
|
if (!pivot) {
|
|
2923
2923
|
const startIndex = result.length;
|
|
2924
2924
|
result.push(...items.map((item, index) => {
|
|
2925
|
-
|
|
2925
|
+
const rowInfo = {
|
|
2926
2926
|
id: item ? toPrimaryKey(item) : `${groupKeys}-${index}`,
|
|
2927
2927
|
data: item,
|
|
2928
2928
|
isGroupRow: false,
|
|
@@ -2936,6 +2936,10 @@ function enhancedFlatten(param) {
|
|
|
2936
2936
|
groupNesting,
|
|
2937
2937
|
groupCount: enhancedGroupData.groupCount
|
|
2938
2938
|
};
|
|
2939
|
+
parents.forEach((parent) => {
|
|
2940
|
+
parent.flatRowInfoList.push(rowInfo);
|
|
2941
|
+
});
|
|
2942
|
+
return rowInfo;
|
|
2939
2943
|
}));
|
|
2940
2944
|
}
|
|
2941
2945
|
} else {
|
|
@@ -4487,7 +4491,6 @@ function useComputed() {
|
|
|
4487
4491
|
column,
|
|
4488
4492
|
data,
|
|
4489
4493
|
dataArray,
|
|
4490
|
-
groupRowInfo: null,
|
|
4491
4494
|
rowInfo,
|
|
4492
4495
|
rowIndex: itemIndex
|
|
4493
4496
|
});
|
|
@@ -6129,7 +6132,6 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
6129
6132
|
dataArray: getData(),
|
|
6130
6133
|
column,
|
|
6131
6134
|
rowInfo,
|
|
6132
|
-
groupRowInfo,
|
|
6133
6135
|
rowIndex,
|
|
6134
6136
|
data: rowInfo.data
|
|
6135
6137
|
});
|
|
@@ -7729,7 +7731,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
7729
7731
|
const valid = (0, import_react43.useMemo)(() => {
|
|
7730
7732
|
let valid2 = isValidLicense(licenseKey, {
|
|
7731
7733
|
publishedAt: 1624970570587,
|
|
7732
|
-
version: "0.2.
|
|
7734
|
+
version: "0.2.8"
|
|
7733
7735
|
});
|
|
7734
7736
|
if (!licenseKey && !valid2 && isInsideSandbox) {
|
|
7735
7737
|
return true;
|
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.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "Commercial & Open Source",
|
|
16
16
|
"//": "will be updated at build time",
|
|
17
|
-
"publishedAt":
|
|
17
|
+
"publishedAt": 1645485108085
|
|
18
18
|
}
|