schummar-table 0.46.3 → 0.46.5
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/mui4Theme.d.cts +1 -1
- package/dist/mui4Theme.d.ts +1 -1
- package/dist/mui5Theme.d.cts +1 -1
- package/dist/mui5Theme.d.ts +1 -1
- package/dist/{types-CIq7O-SN.d.ts → types-BM1Cjg67.d.ts} +2 -1
- package/dist/{types-CJnecNQy.d.cts → types-CNiUxMEp.d.cts} +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3809,7 +3809,7 @@ function calc(props, cache) {
|
|
|
3809
3809
|
width,
|
|
3810
3810
|
displaySize
|
|
3811
3811
|
}, index) => {
|
|
3812
|
-
var _a2, _b, _c, _d, _e, _f;
|
|
3812
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
3813
3813
|
const id2 = _id != null ? _id : index;
|
|
3814
3814
|
const cacheKey = typeof id2 === "string" ? `s${id2}` : `n${id2}`;
|
|
3815
3815
|
const defaults2 = __spreadValues(__spreadValues({}, globalDefaults), columnProps == null ? void 0 : columnProps(id2));
|
|
@@ -3827,16 +3827,16 @@ function calc(props, cache) {
|
|
|
3827
3827
|
sortBy: ((_f = sortBy != null ? sortBy : defaults2 == null ? void 0 : defaults2.sortBy) != null ? _f : [
|
|
3828
3828
|
(v2) => typeof v2 === "number" || v2 instanceof Date ? v2 : v2 === null || v2 === void 0 ? "" : String(v2)
|
|
3829
3829
|
]).map((function_, i) => cache(`columns.${cacheKey}.sortBy.${i}`, function_)),
|
|
3830
|
-
disableSort,
|
|
3830
|
+
disableSort: (_g = disableSort != null ? disableSort : defaults2 == null ? void 0 : defaults2.disableSort) != null ? _g : false,
|
|
3831
3831
|
hidden: hidden != null ? hidden : defaults2 == null ? void 0 : defaults2.hidden,
|
|
3832
3832
|
classes: classes != null ? classes : defaults2 == null ? void 0 : defaults2.classes,
|
|
3833
3833
|
styles: styles != null ? styles : defaults2 == null ? void 0 : defaults2.styles,
|
|
3834
3834
|
filter: filter != null ? filter : defaults2 == null ? void 0 : defaults2.filter,
|
|
3835
3835
|
width: width != null ? width : defaults2 == null ? void 0 : defaults2.width,
|
|
3836
|
-
displaySize:
|
|
3836
|
+
displaySize: (displaySize != null ? displaySize : defaults2.displaySize) !== void 0 ? castArray(displaySize != null ? displaySize : defaults2.displaySize) : void 0
|
|
3837
3837
|
};
|
|
3838
3838
|
};
|
|
3839
|
-
const columns = inputColumns == null ? void 0 : inputColumns.map(mapColumn);
|
|
3839
|
+
const columns = inputColumns == null ? void 0 : inputColumns.filter((x) => !!x).map(mapColumn);
|
|
3840
3840
|
const wrapRow = props.wrapRow && cache("wrapRow", props.wrapRow);
|
|
3841
3841
|
const wrapCell = props.wrapCell && cache("wrapCell", props.wrapCell);
|
|
3842
3842
|
const rowAction = props.rowAction instanceof Function || Array.isArray(props.rowAction) ? cache("rowAction", props.rowAction) : props.rowAction;
|