@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.js
CHANGED
|
@@ -1532,6 +1532,7 @@ function CalculatedFieldModal({
|
|
|
1532
1532
|
] })
|
|
1533
1533
|
] })
|
|
1534
1534
|
] }) });
|
|
1535
|
+
if (typeof document === "undefined") return null;
|
|
1535
1536
|
return createPortal(modalContent, document.body);
|
|
1536
1537
|
}
|
|
1537
1538
|
|
|
@@ -2862,6 +2863,7 @@ function DataGrid({
|
|
|
2862
2863
|
return { count, sum, avg, numericCount: values.length };
|
|
2863
2864
|
}, [selectionBounds, rows, columnKeys]);
|
|
2864
2865
|
useEffect7(() => {
|
|
2866
|
+
if (typeof document === "undefined") return;
|
|
2865
2867
|
if (data.length === 0) return;
|
|
2866
2868
|
const widths = {};
|
|
2867
2869
|
const sampleSize = Math.min(100, data.length);
|
|
@@ -3760,7 +3762,7 @@ function DataGrid({
|
|
|
3760
3762
|
/* @__PURE__ */ jsx6("span", {}),
|
|
3761
3763
|
/* @__PURE__ */ jsx6("span", {})
|
|
3762
3764
|
] }) }),
|
|
3763
|
-
activeFilterColumn && createPortal2(
|
|
3765
|
+
activeFilterColumn && typeof document !== "undefined" && createPortal2(
|
|
3764
3766
|
/* @__PURE__ */ jsx6(
|
|
3765
3767
|
"div",
|
|
3766
3768
|
{
|