@infinite-table/infinite-react 0.3.16 โ 0.3.19
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/README.md +19 -18
- package/index.esm.js +7 -9
- package/index.js +7 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
17
17
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
18
18
|
|
|
19
|
-
- [What is Infinite?](
|
|
20
|
-
- [Installation](
|
|
19
|
+
- [๐ค What is Infinite?](#-what-is-infinite)
|
|
20
|
+
- [๐ฆ Installation](#-installation)
|
|
21
21
|
- [๐ Extensive documentation](#-extensive-documentation)
|
|
22
22
|
- [โค๏ธ TypeScript](#-typescript)
|
|
23
23
|
- [๐ข Enterprise-ready](#-enterprise-ready)
|
|
@@ -25,29 +25,30 @@
|
|
|
25
25
|
- [๐ฆ Small bundle size](#-small-bundle-size)
|
|
26
26
|
- [๐งช Automated end-to-end tests](#%F0%9F%A7%AA-automated-end-to-end-tests)
|
|
27
27
|
- [๐จ Themable](#-themable)
|
|
28
|
-
- [Releases](
|
|
29
|
-
- [License](
|
|
28
|
+
- [๐ Releases](#-releases)
|
|
29
|
+
- [๐ License](#-license)
|
|
30
30
|
|
|
31
31
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
## What is Infinite?
|
|
34
|
+
## ๐ค What is Infinite?
|
|
35
35
|
|
|
36
36
|
Infinite Table is a React DataGrid component for displaying virtualized tabular data. It helps you display huge datasets and get the most out of them by providing you the right tools to do so:
|
|
37
37
|
|
|
38
|
-
* [sorting](https://infinite-table.com/docs/latest/learn/working-with-data/sorting)
|
|
39
|
-
* [row grouping](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows) - both server-side and client-side
|
|
40
|
-
* [pivoting](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/pivoting) - both server-side and client-side
|
|
41
|
-
* [aggregations](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows#aggregations)
|
|
42
|
-
* [live pagination](https://infinite-table.com/docs/latest/learn/working-with-data/live-pagination)
|
|
43
|
-
* [lazy loading](https://infinite-table.com/docs/latest/learn/working-with-data/lazy-loading)
|
|
44
|
-
* [keyboard navigation](https://infinite-table.com/docs/latest/learn/keyboard-navigation/navigating-cells)
|
|
45
|
-
* [fixed and flexible columns](https://infinite-table.com/docs/latest/learn/columns/fixed-and-flexible-size)
|
|
46
|
-
* [column grouping](https://infinite-table.com/docs/latest/learn/column-groups)
|
|
47
|
-
* [
|
|
38
|
+
* [๐ sorting](https://infinite-table.com/docs/latest/learn/working-with-data/sorting)
|
|
39
|
+
* [๐ช row grouping](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows) - both server-side and client-side
|
|
40
|
+
* [๐ข pivoting](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/pivoting) - both server-side and client-side
|
|
41
|
+
* [๐งช aggregations](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows#aggregations)
|
|
42
|
+
* [๐ช๏ธ live pagination](https://infinite-table.com/docs/latest/learn/working-with-data/live-pagination)
|
|
43
|
+
* [๐ดlazy loading](https://infinite-table.com/docs/latest/learn/working-with-data/lazy-loading)
|
|
44
|
+
* [๐งญ keyboard navigation for cells and rows](https://infinite-table.com/docs/latest/learn/keyboard-navigation/navigating-cells)
|
|
45
|
+
* [โ๏ธ fixed and flexible columns](https://infinite-table.com/docs/latest/learn/columns/fixed-and-flexible-size)
|
|
46
|
+
* [๐งฉ column grouping](https://infinite-table.com/docs/latest/learn/column-groups)
|
|
47
|
+
* [๐ filtering](https://infinite-table.com/docs/latest/learn/filtering)
|
|
48
|
+
* [๐จ theming](https://infinite-table.com/docs/latest/learn/theming)
|
|
48
49
|
|
|
49
50
|
|
|
50
|
-
## Installation
|
|
51
|
+
## ๐ฆ Installation
|
|
51
52
|
|
|
52
53
|
```bash
|
|
53
54
|
npm install @infinite-table/infinite-react --save
|
|
@@ -94,10 +95,10 @@ import "@infinite-table/infinite-react/index.css"
|
|
|
94
95
|
|
|
95
96
|
This file includes both the light and the dark themes.
|
|
96
97
|
|
|
97
|
-
## Releases
|
|
98
|
+
## ๐ Releases
|
|
98
99
|
|
|
99
100
|
We release often - see [what each release contains hre](https://infinite-table.com/docs/releases). Due to our automated releases which have integrated tests, we're confident that we're delivering the best possible experience to our users.
|
|
100
101
|
|
|
101
|
-
## License
|
|
102
|
+
## ๐ License
|
|
102
103
|
|
|
103
104
|
Both Open and [Commercial License](https://github.com/infinite-table/react-table/blob/master/source/LICENSE.md)
|
package/index.esm.js
CHANGED
|
@@ -5801,12 +5801,12 @@ function useColumnGroupResizeHandle(groupColumns, config) {
|
|
|
5801
5801
|
})
|
|
5802
5802
|
});
|
|
5803
5803
|
return result;
|
|
5804
|
-
}, []);
|
|
5804
|
+
}, [lastColumnInGroup]);
|
|
5805
5805
|
const onColumnResize = useCallback9((diff) => {
|
|
5806
5806
|
const { columnSizing, reservedWidth } = computeResizeForDiff(diff);
|
|
5807
5807
|
componentActions.viewportReservedWidth = reservedWidth;
|
|
5808
5808
|
componentActions.columnSizing = columnSizing;
|
|
5809
|
-
}, []);
|
|
5809
|
+
}, [computeResizeForDiff]);
|
|
5810
5810
|
const groupResizable = groupColumns.some((c) => c.computedResizable);
|
|
5811
5811
|
const resizeHandle = groupResizable ? /* @__PURE__ */ createElement17(GroupResizeHandle, {
|
|
5812
5812
|
brain: bodyBrain,
|
|
@@ -5824,10 +5824,8 @@ function useColumnGroupResizeHandle(groupColumns, config) {
|
|
|
5824
5824
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
|
|
5825
5825
|
var TableHeaderGroupClassName = `${rootClassName2}HeaderGroup`;
|
|
5826
5826
|
var columnWidthAtIndex5 = stripVar(InternalVars.columnWidthAtIndex);
|
|
5827
|
+
var columnZIndexAtIndex5 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
5827
5828
|
function InfiniteTableHeaderGroup(props) {
|
|
5828
|
-
const {
|
|
5829
|
-
computed: { computedVisibleColumns }
|
|
5830
|
-
} = useInfiniteTable();
|
|
5831
5829
|
const { columnGroup, height, columns, bodyBrain, columnGroupsMaxDepth } = props;
|
|
5832
5830
|
let { header } = columnGroup;
|
|
5833
5831
|
if (header instanceof Function) {
|
|
@@ -5843,7 +5841,7 @@ function InfiniteTableHeaderGroup(props) {
|
|
|
5843
5841
|
});
|
|
5844
5842
|
const firstColumn = columns[0];
|
|
5845
5843
|
const width = columns.length > 1 ? `calc( ` + columns.map((col) => `var(${columnWidthAtIndex5}-${col.computedVisibleIndex})`).join(" + ") + " )" : `var(${columnWidthAtIndex5}-${firstColumn.computedVisibleIndex})`;
|
|
5846
|
-
const zIndex2 =
|
|
5844
|
+
const zIndex2 = `calc(var(${columnZIndexAtIndex5}-${firstColumn.computedVisibleIndex}) + ${columnGroupsMaxDepth - columnGroup.depth})`;
|
|
5847
5845
|
return /* @__PURE__ */ createElement18("div", {
|
|
5848
5846
|
ref: props.domRef,
|
|
5849
5847
|
"data-group-id": columnGroup.uniqueGroupId,
|
|
@@ -6144,7 +6142,7 @@ import {
|
|
|
6144
6142
|
} from "react";
|
|
6145
6143
|
import { useCallback as useCallback13, useContext as useContext5, useMemo as useMemo7 } from "react";
|
|
6146
6144
|
var { rootClassName: rootClassName11 } = internalProps;
|
|
6147
|
-
var
|
|
6145
|
+
var columnZIndexAtIndex6 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
6148
6146
|
var InfiniteTableColumnCellContext = createContext5(null);
|
|
6149
6147
|
var InfiniteTableColumnCellClassName = `${rootClassName11}ColumnCell`;
|
|
6150
6148
|
function isColumnWithField(c) {
|
|
@@ -6274,7 +6272,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
6274
6272
|
}
|
|
6275
6273
|
style = column.style ? typeof column.style === "function" ? __spreadValues(__spreadValues({}, style), column.style(stylingRenderParam) || {}) : __spreadValues(__spreadValues({}, style), column.style) : style || {};
|
|
6276
6274
|
style.height = rowHeight;
|
|
6277
|
-
style.zIndex = `var(${
|
|
6275
|
+
style.zIndex = `var(${columnZIndexAtIndex6}-${column.computedVisibleIndex})`;
|
|
6278
6276
|
const memoizedStyle = useMemo7(() => style, [!style ? null : JSON.stringify(style)]);
|
|
6279
6277
|
const odd = (rowInfo.indexInAll != null ? rowInfo.indexInAll : rowIndex) % 2 === 1;
|
|
6280
6278
|
const zebra = showZebraRows ? odd ? "odd" : "even" : false;
|
|
@@ -10258,7 +10256,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
10258
10256
|
const valid = useMemo12(() => {
|
|
10259
10257
|
let valid2 = isValidLicense(licenseKey, {
|
|
10260
10258
|
publishedAt: 1624970570587,
|
|
10261
|
-
version: "0.3.
|
|
10259
|
+
version: "0.3.19"
|
|
10262
10260
|
});
|
|
10263
10261
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
10264
10262
|
return true;
|
package/index.js
CHANGED
|
@@ -5744,12 +5744,12 @@ function useColumnGroupResizeHandle(groupColumns, config) {
|
|
|
5744
5744
|
})
|
|
5745
5745
|
});
|
|
5746
5746
|
return result;
|
|
5747
|
-
}, []);
|
|
5747
|
+
}, [lastColumnInGroup]);
|
|
5748
5748
|
const onColumnResize = (0, import_react25.useCallback)((diff) => {
|
|
5749
5749
|
const { columnSizing, reservedWidth } = computeResizeForDiff(diff);
|
|
5750
5750
|
componentActions.viewportReservedWidth = reservedWidth;
|
|
5751
5751
|
componentActions.columnSizing = columnSizing;
|
|
5752
|
-
}, []);
|
|
5752
|
+
}, [computeResizeForDiff]);
|
|
5753
5753
|
const groupResizable = groupColumns.some((c) => c.computedResizable);
|
|
5754
5754
|
const resizeHandle = groupResizable ? /* @__PURE__ */ React24.createElement(GroupResizeHandle, {
|
|
5755
5755
|
brain: bodyBrain,
|
|
@@ -5767,10 +5767,8 @@ function useColumnGroupResizeHandle(groupColumns, config) {
|
|
|
5767
5767
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup.tsx
|
|
5768
5768
|
var TableHeaderGroupClassName = `${rootClassName2}HeaderGroup`;
|
|
5769
5769
|
var columnWidthAtIndex5 = stripVar(InternalVars.columnWidthAtIndex);
|
|
5770
|
+
var columnZIndexAtIndex5 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
5770
5771
|
function InfiniteTableHeaderGroup(props) {
|
|
5771
|
-
const {
|
|
5772
|
-
computed: { computedVisibleColumns }
|
|
5773
|
-
} = useInfiniteTable();
|
|
5774
5772
|
const { columnGroup, height, columns, bodyBrain, columnGroupsMaxDepth } = props;
|
|
5775
5773
|
let { header } = columnGroup;
|
|
5776
5774
|
if (header instanceof Function) {
|
|
@@ -5786,7 +5784,7 @@ function InfiniteTableHeaderGroup(props) {
|
|
|
5786
5784
|
});
|
|
5787
5785
|
const firstColumn = columns[0];
|
|
5788
5786
|
const width = columns.length > 1 ? `calc( ` + columns.map((col) => `var(${columnWidthAtIndex5}-${col.computedVisibleIndex})`).join(" + ") + " )" : `var(${columnWidthAtIndex5}-${firstColumn.computedVisibleIndex})`;
|
|
5789
|
-
const zIndex2 =
|
|
5787
|
+
const zIndex2 = `calc(var(${columnZIndexAtIndex5}-${firstColumn.computedVisibleIndex}) + ${columnGroupsMaxDepth - columnGroup.depth})`;
|
|
5790
5788
|
return /* @__PURE__ */ React25.createElement("div", {
|
|
5791
5789
|
ref: props.domRef,
|
|
5792
5790
|
"data-group-id": columnGroup.uniqueGroupId,
|
|
@@ -6078,7 +6076,7 @@ var InfiniteTableLicenseFooter = React28.forwardRef(function InfiniteTableLicens
|
|
|
6078
6076
|
var React29 = __toModule(require("react"));
|
|
6079
6077
|
var import_react28 = __toModule(require("react"));
|
|
6080
6078
|
var { rootClassName: rootClassName11 } = internalProps;
|
|
6081
|
-
var
|
|
6079
|
+
var columnZIndexAtIndex6 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
6082
6080
|
var InfiniteTableColumnCellContext = React29.createContext(null);
|
|
6083
6081
|
var InfiniteTableColumnCellClassName = `${rootClassName11}ColumnCell`;
|
|
6084
6082
|
function isColumnWithField(c) {
|
|
@@ -6208,7 +6206,7 @@ function InfiniteTableColumnCellFn(props) {
|
|
|
6208
6206
|
}
|
|
6209
6207
|
style = column.style ? typeof column.style === "function" ? __spreadValues(__spreadValues({}, style), column.style(stylingRenderParam) || {}) : __spreadValues(__spreadValues({}, style), column.style) : style || {};
|
|
6210
6208
|
style.height = rowHeight;
|
|
6211
|
-
style.zIndex = `var(${
|
|
6209
|
+
style.zIndex = `var(${columnZIndexAtIndex6}-${column.computedVisibleIndex})`;
|
|
6212
6210
|
const memoizedStyle = (0, import_react28.useMemo)(() => style, [!style ? null : JSON.stringify(style)]);
|
|
6213
6211
|
const odd = (rowInfo.indexInAll != null ? rowInfo.indexInAll : rowIndex) % 2 === 1;
|
|
6214
6212
|
const zebra = showZebraRows ? odd ? "odd" : "even" : false;
|
|
@@ -10175,7 +10173,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
10175
10173
|
const valid = (0, import_react46.useMemo)(() => {
|
|
10176
10174
|
let valid2 = isValidLicense(licenseKey, {
|
|
10177
10175
|
publishedAt: 1624970570587,
|
|
10178
|
-
version: "0.3.
|
|
10176
|
+
version: "0.3.19"
|
|
10179
10177
|
});
|
|
10180
10178
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
10181
10179
|
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.3.
|
|
4
|
+
"version": "0.3.19",
|
|
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": 1656535974616
|
|
18
18
|
}
|