@smallwebco/tinypivot-react 1.0.38 → 1.0.47
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1547,6 +1547,7 @@ function CalculatedFieldModal({
|
|
|
1547
1547
|
] })
|
|
1548
1548
|
] })
|
|
1549
1549
|
] }) });
|
|
1550
|
+
if (typeof document === "undefined") return null;
|
|
1550
1551
|
return (0, import_react_dom.createPortal)(modalContent, document.body);
|
|
1551
1552
|
}
|
|
1552
1553
|
|
|
@@ -2877,6 +2878,7 @@ function DataGrid({
|
|
|
2877
2878
|
return { count, sum, avg, numericCount: values.length };
|
|
2878
2879
|
}, [selectionBounds, rows, columnKeys]);
|
|
2879
2880
|
(0, import_react10.useEffect)(() => {
|
|
2881
|
+
if (typeof document === "undefined") return;
|
|
2880
2882
|
if (data.length === 0) return;
|
|
2881
2883
|
const widths = {};
|
|
2882
2884
|
const sampleSize = Math.min(100, data.length);
|
|
@@ -3775,7 +3777,7 @@ function DataGrid({
|
|
|
3775
3777
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", {}),
|
|
3776
3778
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", {})
|
|
3777
3779
|
] }) }),
|
|
3778
|
-
activeFilterColumn && (0, import_react_dom2.createPortal)(
|
|
3780
|
+
activeFilterColumn && typeof document !== "undefined" && (0, import_react_dom2.createPortal)(
|
|
3779
3781
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3780
3782
|
"div",
|
|
3781
3783
|
{
|