schummar-table 0.50.4 → 0.50.6
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 +8 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2793,10 +2793,10 @@ function calc(props, cache) {
|
|
|
2793
2793
|
...column,
|
|
2794
2794
|
value
|
|
2795
2795
|
}));
|
|
2796
|
-
else if (props.columns !== void 0) inputColumns = props.columns.map((column) =>
|
|
2796
|
+
else if (props.columns !== void 0) inputColumns = props.columns.map((column) => column && {
|
|
2797
2797
|
...column,
|
|
2798
2798
|
dependecies: void 0
|
|
2799
|
-
})
|
|
2799
|
+
});
|
|
2800
2800
|
const globalDefaults = props.defaultColumnProps;
|
|
2801
2801
|
const mapColumn = ({ id: _id, header, exportHeader, footer, value, renderCell, exportCell, sortBy, disableSort, hidden, classes, styles, filter, width, displaySize }, index) => {
|
|
2802
2802
|
const id$1 = _id ?? index;
|
|
@@ -3749,16 +3749,12 @@ const Row = (0, react.memo)(function Row$1({ itemId, rowIndex }) {
|
|
|
3749
3749
|
]);
|
|
3750
3750
|
(0, react.useLayoutEffect)(() => table.getState().props.debugRender?.("render row", itemId));
|
|
3751
3751
|
if (!item) return null;
|
|
3752
|
-
return /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)(__emotion_react.ClassNames, { children: ({ css: css$2 }) => /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)(__emotion_react_jsx_runtime.Fragment, { children: wrapRow({
|
|
3753
|
-
className: css$2([
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
} : { display: "contents" },
|
|
3759
|
-
rowClassName,
|
|
3760
|
-
rowStyles
|
|
3761
|
-
]),
|
|
3752
|
+
return /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)(__emotion_react.ClassNames, { children: ({ css: css$2, cx: cx$1 }) => /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)(__emotion_react_jsx_runtime.Fragment, { children: wrapRow({
|
|
3753
|
+
className: cx$1(css$2([subgrid ? {
|
|
3754
|
+
gridColumn: `1 / -1`,
|
|
3755
|
+
display: "grid",
|
|
3756
|
+
gridTemplateColumns: "subgrid"
|
|
3757
|
+
} : { display: "contents" }, rowStyles]), rowClassName),
|
|
3762
3758
|
children: /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsxs)(__emotion_react_jsx_runtime.Fragment, { children: [
|
|
3763
3759
|
/* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)("div", {
|
|
3764
3760
|
className: cellClassName,
|