material-react-table 1.0.3 → 1.0.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/README.md +2 -0
- package/dist/cjs/_locales/cs.d.ts +2 -0
- package/dist/cjs/index.js +14 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_locales/cs.d.ts +2 -0
- package/dist/esm/material-react-table.esm.js +14 -14
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/locales/cs.d.ts +2 -0
- package/locales/cs.esm.d.ts +2 -0
- package/locales/cs.esm.js +92 -0
- package/locales/cs.esm.js.map +1 -0
- package/locales/cs.js +96 -0
- package/locales/cs.js.map +1 -0
- package/package.json +1 -1
- package/src/_locales/cs.ts +91 -0
- package/src/column.utils.ts +12 -13
- package/src/head/MRT_TableHead.tsx +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ __Built with [Material UI <sup>V5</sup>](https://mui.com) and [TanStack Table <s
|
|
|
27
27
|
|
|
28
28
|
_Quickly Create React Data Tables with Material Design_
|
|
29
29
|
|
|
30
|
+
_Full [Localization (i18n)](https://www.material-react-table.com/docs/guides/localization) Support!_
|
|
31
|
+
|
|
30
32
|
Join the [Discord](https://discord.gg/5wqyRx6fnm) server to join in on the development discussion or ask questions
|
|
31
33
|
|
|
32
34
|
View the [Docs Website](https://www.material-react-table.com/)
|
package/dist/cjs/index.js
CHANGED
|
@@ -510,19 +510,19 @@ const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table,
|
|
|
510
510
|
|
|
511
511
|
const getColumnId = (columnDef) => { var _a, _b, _c, _d; return (_d = (_a = columnDef.id) !== null && _a !== void 0 ? _a : (_c = (_b = columnDef.accessorKey) === null || _b === void 0 ? void 0 : _b.toString) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : columnDef.header; };
|
|
512
512
|
const getAllLeafColumnDefs = (columns) => {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
return
|
|
513
|
+
const allLeafColumnDefs = [];
|
|
514
|
+
const getLeafColumns = (cols) => {
|
|
515
|
+
cols.forEach((col) => {
|
|
516
|
+
if (col.columns) {
|
|
517
|
+
getLeafColumns(col.columns);
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
allLeafColumnDefs.push(col);
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
getLeafColumns(columns);
|
|
525
|
+
return allLeafColumnDefs;
|
|
526
526
|
};
|
|
527
527
|
const prepareColumns = ({ columnDefs, columnFilterFns, defaultDisplayColumn, filterFns, sortingFns, }) => columnDefs.map((columnDef) => {
|
|
528
528
|
var _a, _b;
|
|
@@ -1961,7 +1961,7 @@ const MRT_TableHead = ({ table }) => {
|
|
|
1961
1961
|
const tableHeadProps = muiTableHeadProps instanceof Function
|
|
1962
1962
|
? muiTableHeadProps({ table })
|
|
1963
1963
|
: muiTableHeadProps;
|
|
1964
|
-
return (React__default["default"].createElement(material.TableHead, Object.assign({}, tableHeadProps, { sx: (theme) => (Object.assign({ opacity:
|
|
1964
|
+
return (React__default["default"].createElement(material.TableHead, Object.assign({}, tableHeadProps, { sx: (theme) => (Object.assign({ opacity: 0.97, position: enableStickyHeader ? 'sticky' : undefined, zIndex: enableStickyHeader ? 2 : undefined }, ((tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx) instanceof Function
|
|
1965
1965
|
? tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx(theme)
|
|
1966
1966
|
: tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }), getHeaderGroups().map((headerGroup) => (React__default["default"].createElement(MRT_TableHeadRow, { headerGroup: headerGroup, key: headerGroup.id, table: table })))));
|
|
1967
1967
|
};
|