@mui/x-data-grid-premium 7.14.0 → 7.16.0
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/CHANGELOG.md +167 -1
- package/DataGridPremium/DataGridPremium.js +12 -5
- package/DataGridPremium/useDataGridPremiumProps.js +2 -3
- package/components/GridAggregationHeader.js +5 -9
- package/components/GridColumnMenuAggregationItem.js +2 -3
- package/components/GridColumnMenuRowGroupItem.js +2 -3
- package/components/GridColumnMenuRowUngroupItem.js +2 -3
- package/components/GridExcelExportMenuItem.js +2 -3
- package/components/GridFooterCell.js +2 -3
- package/components/GridGroupingColumnFooterCell.js +2 -3
- package/components/GridGroupingColumnLeafCell.js +2 -3
- package/components/GridGroupingCriteriaCell.js +2 -3
- package/components/GridPremiumColumnMenu.js +2 -3
- package/constants/dataGridPremiumDefaultSlotsComponents.js +1 -1
- package/esm/DataGridPremium/DataGridPremium.js +15 -7
- package/esm/DataGridPremium/index.js +3 -3
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +7 -7
- package/esm/DataGridPremium/useDataGridPremiumProps.js +2 -2
- package/esm/components/GridAggregationHeader.js +6 -9
- package/esm/components/GridColumnMenuAggregationItem.js +4 -4
- package/esm/components/GridColumnMenuRowGroupItem.js +4 -4
- package/esm/components/GridColumnMenuRowUngroupItem.js +3 -3
- package/esm/components/GridExcelExportMenuItem.js +1 -1
- package/esm/components/GridFooterCell.js +1 -1
- package/esm/components/GridGroupingColumnFooterCell.js +2 -2
- package/esm/components/GridGroupingColumnLeafCell.js +1 -1
- package/esm/components/GridGroupingCriteriaCell.js +2 -2
- package/esm/components/GridPremiumColumnMenu.js +4 -4
- package/esm/components/index.js +4 -4
- package/esm/components/reexports.js +1 -1
- package/esm/constants/dataGridPremiumDefaultSlotsComponents.js +2 -2
- package/esm/hooks/features/aggregation/createAggregationLookup.js +2 -2
- package/esm/hooks/features/aggregation/index.js +4 -4
- package/esm/hooks/features/aggregation/useGridAggregation.js +3 -3
- package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +3 -3
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.js +3 -3
- package/esm/hooks/features/cellSelection/index.js +1 -1
- package/esm/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/esm/hooks/features/export/index.js +2 -2
- package/esm/hooks/features/export/useGridExcelExport.js +2 -2
- package/esm/hooks/features/index.js +4 -4
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +5 -5
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -1
- package/esm/hooks/features/rowGrouping/index.js +3 -3
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +3 -3
- package/esm/hooks/features/rows/index.js +1 -1
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
- package/esm/hooks/index.js +2 -2
- package/esm/hooks/utils/index.js +1 -1
- package/esm/hooks/utils/useGridAriaAttributes.js +3 -3
- package/esm/index.js +7 -7
- package/esm/material/icons.js +3 -3
- package/esm/material/index.js +1 -1
- package/esm/models/index.js +4 -4
- package/esm/themeAugmentation/index.js +2 -2
- package/esm/typeOverloads/index.js +1 -1
- package/esm/typeOverloads/reexports.js +3 -3
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -2
- package/hooks/features/aggregation/gridAggregationUtils.js +1 -1
- package/hooks/features/aggregation/useGridAggregation.js +2 -3
- package/hooks/features/aggregation/useGridAggregationPreProcessors.js +2 -3
- package/hooks/features/aggregation/wrapColumnWithAggregation.js +2 -3
- package/hooks/features/cellSelection/useGridCellSelection.js +2 -3
- package/hooks/features/clipboard/useGridClipboardImport.js +2 -3
- package/hooks/features/export/serializer/excelSerializer.js +3 -4
- package/hooks/features/export/useGridExcelExport.js +2 -3
- package/hooks/features/rowGrouping/createGroupingColDef.js +2 -3
- package/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.js +2 -3
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +1 -2
- package/hooks/utils/useGridAriaAttributes.js +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.js +2 -3
- package/index.js +1 -1
- package/material/icons.js +4 -5
- package/material/index.js +1 -1
- package/modern/DataGridPremium/DataGridPremium.js +15 -7
- package/modern/DataGridPremium/index.js +3 -3
- package/modern/DataGridPremium/useDataGridPremiumComponent.js +7 -7
- package/modern/DataGridPremium/useDataGridPremiumProps.js +2 -2
- package/modern/components/GridAggregationHeader.js +6 -9
- package/modern/components/GridColumnMenuAggregationItem.js +4 -4
- package/modern/components/GridColumnMenuRowGroupItem.js +4 -4
- package/modern/components/GridColumnMenuRowUngroupItem.js +3 -3
- package/modern/components/GridExcelExportMenuItem.js +1 -1
- package/modern/components/GridFooterCell.js +1 -1
- package/modern/components/GridGroupingColumnFooterCell.js +2 -2
- package/modern/components/GridGroupingColumnLeafCell.js +1 -1
- package/modern/components/GridGroupingCriteriaCell.js +2 -2
- package/modern/components/GridPremiumColumnMenu.js +4 -4
- package/modern/components/index.js +4 -4
- package/modern/components/reexports.js +1 -1
- package/modern/constants/dataGridPremiumDefaultSlotsComponents.js +2 -2
- package/modern/hooks/features/aggregation/createAggregationLookup.js +2 -2
- package/modern/hooks/features/aggregation/index.js +4 -4
- package/modern/hooks/features/aggregation/useGridAggregation.js +3 -3
- package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +3 -3
- package/modern/hooks/features/aggregation/wrapColumnWithAggregation.js +3 -3
- package/modern/hooks/features/cellSelection/index.js +1 -1
- package/modern/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/modern/hooks/features/export/index.js +2 -2
- package/modern/hooks/features/export/useGridExcelExport.js +2 -2
- package/modern/hooks/features/index.js +4 -4
- package/modern/hooks/features/rowGrouping/createGroupingColDef.js +5 -5
- package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -1
- package/modern/hooks/features/rowGrouping/index.js +3 -3
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +3 -3
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
- package/modern/hooks/index.js +2 -2
- package/modern/hooks/utils/index.js +1 -1
- package/modern/hooks/utils/useGridAriaAttributes.js +3 -3
- package/modern/index.js +8 -8
- package/modern/material/icons.js +3 -3
- package/modern/material/index.js +1 -1
- package/modern/models/index.js +4 -4
- package/modern/themeAugmentation/index.js +2 -2
- package/modern/typeOverloads/index.js +1 -1
- package/modern/typeOverloads/reexports.js +3 -3
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +9 -9
- package/utils/releaseInfo.js +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -18,8 +19,6 @@ var _gridRowGroupingSelector = require("./gridRowGroupingSelector");
|
|
|
18
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
const _excluded = ["leafField", "mainGroupingCriteria", "hideDescendantCount"],
|
|
20
21
|
_excluded2 = ["leafField", "mainGroupingCriteria", "hideDescendantCount"];
|
|
21
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
22
|
const GROUPING_COL_DEF_DEFAULT_PROPERTIES = (0, _extends2.default)({}, _xDataGridPro.GRID_STRING_COL_DEF, {
|
|
24
23
|
type: 'custom',
|
|
25
24
|
disableReorder: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -11,8 +12,6 @@ var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
|
11
12
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
12
13
|
var _gridRowGroupingSelector = require("./gridRowGroupingSelector");
|
|
13
14
|
var _gridRowGroupingUtils = require("./gridRowGroupingUtils");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
const rowGroupingStateInitializer = (state, props, apiRef) => {
|
|
17
16
|
apiRef.current.caches.rowGrouping = {
|
|
18
17
|
rulesOnLastRowTreeCreation: []
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -10,8 +11,6 @@ var _internals = require("@mui/x-data-grid-pro/internals");
|
|
|
10
11
|
var _gridRowGroupingSelector = require("./gridRowGroupingSelector");
|
|
11
12
|
var _createGroupingColDef = require("./createGroupingColDef");
|
|
12
13
|
var _gridRowGroupingUtils = require("./gridRowGroupingUtils");
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
14
|
const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
16
15
|
const getGroupingColDefs = React.useCallback(columnsState => {
|
|
17
16
|
if (props.disableRowGrouping) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -8,8 +9,6 @@ exports.useKeepGroupedColumnsHidden = void 0;
|
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var React = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
12
|
const updateColumnVisibilityModel = (columnVisibilityModel, rowGroupingModel, prevRowGroupingModel) => {
|
|
14
13
|
const newColumnVisibilityModel = (0, _extends2.default)({}, columnVisibilityModel);
|
|
15
14
|
rowGroupingModel?.forEach(field => {
|
package/index.js
CHANGED
package/material/icons.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -7,16 +8,14 @@ exports.GridWorkspacesIcon = exports.GridGroupWorkIcon = exports.GridFunctionsIc
|
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _utils = require("@mui/material/utils");
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
-
const GridWorkspacesIcon = exports.GridWorkspacesIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
11
|
+
const GridWorkspacesIcon = exports.GridWorkspacesIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
13
12
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
14
13
|
d: "M6,13c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S8.2,13,6,13z M12,3C9.8,3,8,4.8,8,7s1.8,4,4,4s4-1.8,4-4S14.2,3,12,3z M18,13 c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S20.2,13,18,13z"
|
|
15
14
|
})
|
|
16
15
|
}), 'Workspaces');
|
|
17
|
-
const GridGroupWorkIcon = exports.GridGroupWorkIcon = (0, _utils.createSvgIcon)(
|
|
16
|
+
const GridGroupWorkIcon = exports.GridGroupWorkIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
18
17
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
|
|
19
18
|
}), 'GroupWork');
|
|
20
|
-
const GridFunctionsIcon = exports.GridFunctionsIcon = (0, _utils.createSvgIcon)(
|
|
19
|
+
const GridFunctionsIcon = exports.GridFunctionsIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
21
20
|
d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"
|
|
22
21
|
}), 'Functions');
|
package/material/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -6,11 +6,11 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { useLicenseVerifier, Watermark } from '@mui/x-license';
|
|
7
7
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid-pro';
|
|
8
8
|
import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from '@mui/x-data-grid-pro/internals';
|
|
9
|
-
import { useDataGridPremiumComponent } from
|
|
10
|
-
import { useDataGridPremiumProps } from
|
|
11
|
-
import { getReleaseInfo } from
|
|
12
|
-
import { useGridAriaAttributes } from
|
|
13
|
-
import { useGridRowAriaAttributes } from
|
|
9
|
+
import { useDataGridPremiumComponent } from "./useDataGridPremiumComponent.js";
|
|
10
|
+
import { useDataGridPremiumProps } from "./useDataGridPremiumProps.js";
|
|
11
|
+
import { getReleaseInfo } from "../utils/releaseInfo.js";
|
|
12
|
+
import { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
13
|
+
import { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const configuration = {
|
|
16
16
|
hooks: {
|
|
@@ -442,6 +442,14 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
442
442
|
clipboardExport: PropTypes.bool,
|
|
443
443
|
csvExport: PropTypes.bool
|
|
444
444
|
}), PropTypes.bool]),
|
|
445
|
+
/**
|
|
446
|
+
* If `select`, a group header checkbox in indeterminate state (like "Select All" checkbox)
|
|
447
|
+
* will select all the rows under it.
|
|
448
|
+
* If `deselect`, it will deselect all the rows under it.
|
|
449
|
+
* Works only if `checkboxSelection` is enabled.
|
|
450
|
+
* @default "deselect"
|
|
451
|
+
*/
|
|
452
|
+
indeterminateCheckboxAction: PropTypes.oneOf(['deselect', 'select']),
|
|
445
453
|
/**
|
|
446
454
|
* The initial state of the DataGridPremium.
|
|
447
455
|
* The data in it is set in the state on initialization but isn't controlled.
|
|
@@ -950,12 +958,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
950
958
|
*/
|
|
951
959
|
scrollEndThreshold: PropTypes.number,
|
|
952
960
|
/**
|
|
953
|
-
* If `true`,
|
|
961
|
+
* If `true`, vertical borders will be displayed between cells.
|
|
954
962
|
* @default false
|
|
955
963
|
*/
|
|
956
964
|
showCellVerticalBorder: PropTypes.bool,
|
|
957
965
|
/**
|
|
958
|
-
* If `true`,
|
|
966
|
+
* If `true`, vertical borders will be displayed between column header items.
|
|
959
967
|
* @default false
|
|
960
968
|
*/
|
|
961
969
|
showColumnVerticalBorder: PropTypes.bool,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export { DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES } from
|
|
1
|
+
export * from "./DataGrid.js";
|
|
2
|
+
export * from "./DataGridPremium.js";
|
|
3
|
+
export { DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES } from "./useDataGridPremiumProps.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridRowSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, dimensionsStateInitializer, useGridDimensions, useGridStatePersistence, useGridRowSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, rowSelectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors, useGridRowPinning, useGridRowPinningPreProcessors, rowPinningStateInitializer, useGridColumnGrouping, columnGroupsStateInitializer, useGridLazyLoader, useGridLazyLoaderPreProcessors, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, useGridDataSource, dataSourceStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
2
2
|
// Premium-only features
|
|
3
|
-
import { useGridAggregation, aggregationStateInitializer } from
|
|
4
|
-
import { useGridAggregationPreProcessors } from
|
|
5
|
-
import { useGridRowGrouping, rowGroupingStateInitializer } from
|
|
6
|
-
import { useGridRowGroupingPreProcessors } from
|
|
7
|
-
import { useGridExcelExport } from
|
|
8
|
-
import { cellSelectionStateInitializer, useGridCellSelection } from
|
|
9
|
-
import { useGridClipboardImport } from
|
|
3
|
+
import { useGridAggregation, aggregationStateInitializer } from "../hooks/features/aggregation/useGridAggregation.js";
|
|
4
|
+
import { useGridAggregationPreProcessors } from "../hooks/features/aggregation/useGridAggregationPreProcessors.js";
|
|
5
|
+
import { useGridRowGrouping, rowGroupingStateInitializer } from "../hooks/features/rowGrouping/useGridRowGrouping.js";
|
|
6
|
+
import { useGridRowGroupingPreProcessors } from "../hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js";
|
|
7
|
+
import { useGridExcelExport } from "../hooks/features/export/useGridExcelExport.js";
|
|
8
|
+
import { cellSelectionStateInitializer, useGridCellSelection } from "../hooks/features/cellSelection/useGridCellSelection.js";
|
|
9
|
+
import { useGridClipboardImport } from "../hooks/features/clipboard/useGridClipboardImport.js";
|
|
10
10
|
export const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
11
11
|
const apiRef = useGridInitialization(inputApiRef, props);
|
|
12
12
|
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { useThemeProps } from '@mui/material/styles';
|
|
4
4
|
import { DATA_GRID_PRO_PROPS_DEFAULT_VALUES, GRID_DEFAULT_LOCALE_TEXT, GridSignature } from '@mui/x-data-grid-pro';
|
|
5
5
|
import { computeSlots, useProps } from '@mui/x-data-grid-pro/internals';
|
|
6
|
-
import { GRID_AGGREGATION_FUNCTIONS } from
|
|
7
|
-
import { DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS } from
|
|
6
|
+
import { GRID_AGGREGATION_FUNCTIONS } from "../hooks/features/aggregation/index.js";
|
|
7
|
+
import { DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridPremiumDefaultSlotsComponents.js";
|
|
8
8
|
const getDataGridPremiumForcedProps = themedProps => _extends({
|
|
9
9
|
signature: GridSignature.DataGridPremium
|
|
10
10
|
}, themedProps.unstable_dataSource ? {
|
|
@@ -5,9 +5,9 @@ import * as React from 'react';
|
|
|
5
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
6
6
|
import { styled } from '@mui/material/styles';
|
|
7
7
|
import { getDataGridUtilityClass, gridClasses, GridColumnHeaderTitle } from '@mui/x-data-grid';
|
|
8
|
-
import { getAggregationFunctionLabel } from
|
|
9
|
-
import { useGridApiContext } from
|
|
10
|
-
import { useGridRootProps } from
|
|
8
|
+
import { getAggregationFunctionLabel } from "../hooks/features/aggregation/gridAggregationUtils.js";
|
|
9
|
+
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
10
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const GridAggregationHeaderRoot = styled('div', {
|
|
13
13
|
name: 'MuiDataGrid',
|
|
@@ -32,12 +32,9 @@ const GridAggregationFunctionLabel = styled('div', {
|
|
|
32
32
|
}) => {
|
|
33
33
|
return {
|
|
34
34
|
fontSize: theme.typography.caption.fontSize,
|
|
35
|
-
lineHeight:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
fontWeight: theme.typography.fontWeightMedium,
|
|
39
|
-
color: (theme.vars || theme).palette.primary.dark,
|
|
40
|
-
textTransform: 'uppercase'
|
|
35
|
+
lineHeight: 'normal',
|
|
36
|
+
color: theme.palette.text.secondary,
|
|
37
|
+
marginTop: -1
|
|
41
38
|
};
|
|
42
39
|
});
|
|
43
40
|
const useUtilityClasses = ownerState => {
|
|
@@ -11,10 +11,10 @@ import FormControl from '@mui/material/FormControl';
|
|
|
11
11
|
import InputLabel from '@mui/material/InputLabel';
|
|
12
12
|
import { unstable_useId as useId } from '@mui/utils';
|
|
13
13
|
import Select from '@mui/material/Select';
|
|
14
|
-
import { useGridApiContext } from
|
|
15
|
-
import { useGridRootProps } from
|
|
16
|
-
import { canColumnHaveAggregationFunction, getAggregationFunctionLabel, getAvailableAggregationFunctions } from
|
|
17
|
-
import { gridAggregationModelSelector } from
|
|
14
|
+
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
15
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
16
|
+
import { canColumnHaveAggregationFunction, getAggregationFunctionLabel, getAvailableAggregationFunctions } from "../hooks/features/aggregation/gridAggregationUtils.js";
|
|
17
|
+
import { gridAggregationModelSelector } from "../hooks/features/aggregation/gridAggregationSelectors.js";
|
|
18
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
19
|
function GridColumnMenuAggregationItem(props) {
|
|
20
20
|
const {
|
|
@@ -3,10 +3,10 @@ import MenuItem from '@mui/material/MenuItem';
|
|
|
3
3
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
4
4
|
import ListItemText from '@mui/material/ListItemText';
|
|
5
5
|
import { useGridSelector, gridColumnLookupSelector } from '@mui/x-data-grid-pro';
|
|
6
|
-
import { useGridApiContext } from
|
|
7
|
-
import { gridRowGroupingSanitizedModelSelector } from
|
|
8
|
-
import { getRowGroupingCriteriaFromGroupingField, GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD, isGroupingColumn } from
|
|
9
|
-
import { useGridRootProps } from
|
|
6
|
+
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
7
|
+
import { gridRowGroupingSanitizedModelSelector } from "../hooks/features/rowGrouping/gridRowGroupingSelector.js";
|
|
8
|
+
import { getRowGroupingCriteriaFromGroupingField, GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD, isGroupingColumn } from "../hooks/features/rowGrouping/gridRowGroupingUtils.js";
|
|
9
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
export function GridColumnMenuRowGroupItem(props) {
|
|
12
12
|
const {
|
|
@@ -3,9 +3,9 @@ import MenuItem from '@mui/material/MenuItem';
|
|
|
3
3
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
4
4
|
import ListItemText from '@mui/material/ListItemText';
|
|
5
5
|
import { gridColumnLookupSelector, useGridSelector } from '@mui/x-data-grid-pro';
|
|
6
|
-
import { useGridApiContext } from
|
|
7
|
-
import { gridRowGroupingSanitizedModelSelector } from
|
|
8
|
-
import { useGridRootProps } from
|
|
6
|
+
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
7
|
+
import { gridRowGroupingSanitizedModelSelector } from "../hooks/features/rowGrouping/gridRowGroupingSelector.js";
|
|
8
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
export function GridColumnMenuRowUngroupItem(props) {
|
|
11
11
|
const {
|
|
@@ -4,7 +4,7 @@ const _excluded = ["hideMenu", "options"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import MenuItem from '@mui/material/MenuItem';
|
|
7
|
-
import { useGridApiContext } from
|
|
7
|
+
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
function GridExcelExportMenuItem(props) {
|
|
10
10
|
const apiRef = useGridApiContext();
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
6
6
|
import { styled } from '@mui/material/styles';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { useGridRootProps } from
|
|
8
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
const GridFooterCellRoot = styled('div', {
|
|
11
11
|
name: 'MuiDataGrid',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useGridRootProps } from
|
|
4
|
-
import { GridFooterCell } from
|
|
3
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
4
|
+
import { GridFooterCell } from "./GridFooterCell.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
function GridGroupingColumnFooterCell(props) {
|
|
7
7
|
const rootProps = useGridRootProps();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Box from '@mui/material/Box';
|
|
3
|
-
import { useGridRootProps } from
|
|
3
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
function GridGroupingColumnLeafCell(props) {
|
|
6
6
|
const {
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import composeClasses from '@mui/utils/composeClasses';
|
|
4
4
|
import Box from '@mui/material/Box';
|
|
5
5
|
import { useGridSelector, gridFilteredDescendantCountLookupSelector, getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
6
|
-
import { useGridApiContext } from
|
|
7
|
-
import { useGridRootProps } from
|
|
6
|
+
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
7
|
+
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
const useUtilityClasses = ownerState => {
|
|
10
10
|
const {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { GridGenericColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from '@mui/x-data-grid-pro';
|
|
4
|
-
import { GridColumnMenuAggregationItem } from
|
|
5
|
-
import { isGroupingColumn } from
|
|
6
|
-
import { GridColumnMenuRowGroupItem } from
|
|
7
|
-
import { GridColumnMenuRowUngroupItem } from
|
|
4
|
+
import { GridColumnMenuAggregationItem } from "./GridColumnMenuAggregationItem.js";
|
|
5
|
+
import { isGroupingColumn } from "../hooks/features/rowGrouping/index.js";
|
|
6
|
+
import { GridColumnMenuRowGroupItem } from "./GridColumnMenuRowGroupItem.js";
|
|
7
|
+
import { GridColumnMenuRowUngroupItem } from "./GridColumnMenuRowUngroupItem.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
export function GridColumnMenuGroupingItem(props) {
|
|
10
10
|
const {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { GridColumnMenuGroupingItem } from
|
|
1
|
+
export * from "./GridExcelExportMenuItem.js";
|
|
2
|
+
export * from "../material/icons.js";
|
|
3
|
+
export * from "./GridColumnMenuAggregationItem.js";
|
|
4
|
+
export { GridColumnMenuGroupingItem } from "./GridPremiumColumnMenu.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PREMIUM as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM as GRID_COLUMN_MENU_SLOT_PROPS } from
|
|
1
|
+
export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PREMIUM as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM as GRID_COLUMN_MENU_SLOT_PROPS } from "./GridPremiumColumnMenu.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from '@mui/x-data-grid-pro/internals';
|
|
3
|
-
import { GridPremiumColumnMenu } from
|
|
4
|
-
import materialSlots from
|
|
3
|
+
import { GridPremiumColumnMenu } from "../components/GridPremiumColumnMenu.js";
|
|
4
|
+
import materialSlots from "../material/index.js";
|
|
5
5
|
export const DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS = _extends({}, DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS, materialSlots, {
|
|
6
6
|
columnMenu: GridPremiumColumnMenu
|
|
7
7
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { gridColumnLookupSelector, gridFilteredRowsLookupSelector, gridRowTreeSelector, GRID_ROOT_GROUP_ID } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { getAggregationRules } from
|
|
3
|
-
import { gridAggregationModelSelector } from
|
|
2
|
+
import { getAggregationRules } from "./gridAggregationUtils.js";
|
|
3
|
+
import { gridAggregationModelSelector } from "./gridAggregationSelectors.js";
|
|
4
4
|
const getAggregationCellValue = ({
|
|
5
5
|
apiRef,
|
|
6
6
|
groupId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { GRID_AGGREGATION_ROOT_FOOTER_ROW_ID, getAggregationFooterRowIdFromGroupId } from
|
|
1
|
+
export * from "./gridAggregationInterfaces.js";
|
|
2
|
+
export * from "./gridAggregationSelectors.js";
|
|
3
|
+
export * from "./gridAggregationFunctions.js";
|
|
4
|
+
export { GRID_AGGREGATION_ROOT_FOOTER_ROW_ID, getAggregationFooterRowIdFromGroupId } from "./gridAggregationUtils.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { gridColumnLookupSelector, useGridApiEventHandler, useGridApiMethod } from '@mui/x-data-grid-pro';
|
|
4
|
-
import { gridAggregationModelSelector } from
|
|
5
|
-
import { getAggregationRules, mergeStateWithAggregationModel, areAggregationRulesEqual } from
|
|
6
|
-
import { createAggregationLookup } from
|
|
4
|
+
import { gridAggregationModelSelector } from "./gridAggregationSelectors.js";
|
|
5
|
+
import { getAggregationRules, mergeStateWithAggregationModel, areAggregationRulesEqual } from "./gridAggregationUtils.js";
|
|
6
|
+
import { createAggregationLookup } from "./createAggregationLookup.js";
|
|
7
7
|
export const aggregationStateInitializer = (state, props, apiRef) => {
|
|
8
8
|
apiRef.current.caches.aggregation = {
|
|
9
9
|
rulesOnLastColumnHydration: {},
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { gridColumnLookupSelector } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid-pro/internals';
|
|
5
|
-
import { getAvailableAggregationFunctions, addFooterRows, getAggregationRules, mergeStateWithAggregationModel } from
|
|
6
|
-
import { wrapColumnWithAggregationValue, unwrapColumnFromAggregation } from
|
|
7
|
-
import { gridAggregationModelSelector } from
|
|
5
|
+
import { getAvailableAggregationFunctions, addFooterRows, getAggregationRules, mergeStateWithAggregationModel } from "./gridAggregationUtils.js";
|
|
6
|
+
import { wrapColumnWithAggregationValue, unwrapColumnFromAggregation } from "./wrapColumnWithAggregation.js";
|
|
7
|
+
import { gridAggregationModelSelector } from "./gridAggregationSelectors.js";
|
|
8
8
|
export const useGridAggregationPreProcessors = (apiRef, props) => {
|
|
9
9
|
// apiRef.current.caches.aggregation.rulesOnLastColumnHydration is not used because by the time
|
|
10
10
|
// that the pre-processor is called it will already have been updated with the current rules.
|
|
@@ -2,9 +2,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["aggregationWrappedProperties"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { gridAggregationLookupSelector } from
|
|
6
|
-
import { GridFooterCell } from
|
|
7
|
-
import { GridAggregationHeader } from
|
|
5
|
+
import { gridAggregationLookupSelector } from "./gridAggregationSelectors.js";
|
|
6
|
+
import { GridFooterCell } from "../../../components/GridFooterCell.js";
|
|
7
|
+
import { GridAggregationHeader } from "../../../components/GridAggregationHeader.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const AGGREGATION_WRAPPABLE_PROPERTIES = ['valueGetter', 'valueFormatter', 'renderCell', 'renderHeader', 'filterOperators'];
|
|
10
10
|
const getAggregationValueWrappedValueGetter = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./gridCellSelectionInterfaces.js";
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { ownerDocument, useEventCallback } from '@mui/material/utils';
|
|
4
4
|
import { getTotalHeaderHeight, getVisibleRows, isNavigationKey, serializeCellValue, useGridRegisterPipeProcessor, useGridVisibleRows } from '@mui/x-data-grid-pro/internals';
|
|
5
5
|
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector, GRID_REORDER_COL_DEF, useGridSelector, gridSortedRowIdsSelector, gridDimensionsSelector } from '@mui/x-data-grid-pro';
|
|
6
|
-
import { gridCellSelectionStateSelector } from
|
|
6
|
+
import { gridCellSelectionStateSelector } from "./gridCellSelectionSelector.js";
|
|
7
7
|
export const cellSelectionStateInitializer = (state, props) => _extends({}, state, {
|
|
8
8
|
cellSelection: _extends({}, props.cellSelectionModel ?? props.initialState?.cellSelection)
|
|
9
9
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { setupExcelExportWebWorker } from
|
|
1
|
+
export * from "./gridExcelExportInterface.js";
|
|
2
|
+
export { setupExcelExportWebWorker } from "./serializer/excelSerializer.js";
|
|
@@ -3,8 +3,8 @@ const _excluded = ["worker", "exceljsPostProcess", "exceljsPreProcess", "columns
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useGridApiMethod, useGridLogger, useGridApiOptionHandler } from '@mui/x-data-grid';
|
|
5
5
|
import { useGridRegisterPipeProcessor, exportAs, getColumnsToExport, defaultGetRowsToExport } from '@mui/x-data-grid/internals';
|
|
6
|
-
import { buildExcel, getDataForValueOptionsSheet, serializeColumns, serializeRowUnsafe } from
|
|
7
|
-
import { GridExcelExportMenuItem } from
|
|
6
|
+
import { buildExcel, getDataForValueOptionsSheet, serializeColumns, serializeRowUnsafe } from "./serializer/excelSerializer.js";
|
|
7
|
+
import { GridExcelExportMenuItem } from "../../../components/index.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @requires useGridColumns (state)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Only export the variable and types that should be publicly exposed and re-exported from `@mui/x-data-grid-premium`
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
2
|
+
export * from "./aggregation/index.js";
|
|
3
|
+
export * from "./rowGrouping/index.js";
|
|
4
|
+
export * from "./export/index.js";
|
|
5
|
+
export * from "./cellSelection/index.js";
|
|
@@ -5,11 +5,11 @@ const _excluded = ["leafField", "mainGroupingCriteria", "hideDescendantCount"],
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid-pro';
|
|
7
7
|
import { isSingleSelectColDef } from '@mui/x-data-grid-pro/internals';
|
|
8
|
-
import { GridGroupingColumnFooterCell } from
|
|
9
|
-
import { GridGroupingCriteriaCell } from
|
|
10
|
-
import { GridGroupingColumnLeafCell } from
|
|
11
|
-
import { getRowGroupingFieldFromGroupingCriteria, GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD } from
|
|
12
|
-
import { gridRowGroupingSanitizedModelSelector } from
|
|
8
|
+
import { GridGroupingColumnFooterCell } from "../../../components/GridGroupingColumnFooterCell.js";
|
|
9
|
+
import { GridGroupingCriteriaCell } from "../../../components/GridGroupingCriteriaCell.js";
|
|
10
|
+
import { GridGroupingColumnLeafCell } from "../../../components/GridGroupingColumnLeafCell.js";
|
|
11
|
+
import { getRowGroupingFieldFromGroupingCriteria, GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD } from "./gridRowGroupingUtils.js";
|
|
12
|
+
import { gridRowGroupingSanitizedModelSelector } from "./gridRowGroupingSelector.js";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const GROUPING_COL_DEF_DEFAULT_PROPERTIES = _extends({}, GRID_STRING_COL_DEF, {
|
|
15
15
|
type: 'custom',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { passFilterLogic } from '@mui/x-data-grid-pro/internals';
|
|
3
|
-
import { gridRowGroupingSanitizedModelSelector } from
|
|
3
|
+
import { gridRowGroupingSanitizedModelSelector } from "./gridRowGroupingSelector.js";
|
|
4
4
|
export const GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = '__row_group_by_columns_group__';
|
|
5
5
|
export const ROW_GROUPING_STRATEGY = 'grouping-columns';
|
|
6
6
|
export const getRowGroupingFieldFromGroupingCriteria = groupingCriteria => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export { GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD, getRowGroupingFieldFromGroupingCriteria, isGroupingColumn } from
|
|
1
|
+
export * from "./gridRowGroupingSelector.js";
|
|
2
|
+
export * from "./gridRowGroupingInterfaces.js";
|
|
3
|
+
export { GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD, getRowGroupingFieldFromGroupingCriteria, isGroupingColumn } from "./gridRowGroupingUtils.js";
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useGridApiEventHandler, useGridApiMethod, gridColumnLookupSelector } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid-pro/internals';
|
|
5
|
-
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from
|
|
6
|
-
import { getRowGroupingFieldFromGroupingCriteria, ROW_GROUPING_STRATEGY, isGroupingColumn, mergeStateWithRowGroupingModel, setStrategyAvailability, getGroupingRules, areGroupingRulesEqual } from
|
|
5
|
+
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from "./gridRowGroupingSelector.js";
|
|
6
|
+
import { getRowGroupingFieldFromGroupingCriteria, ROW_GROUPING_STRATEGY, isGroupingColumn, mergeStateWithRowGroupingModel, setStrategyAvailability, getGroupingRules, areGroupingRulesEqual } from "./gridRowGroupingUtils.js";
|
|
7
7
|
export const rowGroupingStateInitializer = (state, props, apiRef) => {
|
|
8
8
|
apiRef.current.caches.rowGrouping = {
|
|
9
9
|
rulesOnLastRowTreeCreation: []
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { gridColumnLookupSelector, gridRowTreeSelector, useFirstRender, GRID_CHECKBOX_SELECTION_FIELD } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { useGridRegisterPipeProcessor, useGridRegisterStrategyProcessor, sortRowTree, createRowTree, updateRowTree, getVisibleRowsLookup } from '@mui/x-data-grid-pro/internals';
|
|
4
|
-
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from
|
|
5
|
-
import { createGroupingColDefForAllGroupingCriteria, createGroupingColDefForOneGroupingCriteria } from
|
|
6
|
-
import { filterRowTreeFromGroupingColumns, getColDefOverrides, ROW_GROUPING_STRATEGY, isGroupingColumn, setStrategyAvailability, getCellGroupingCriteria, getGroupingRules } from
|
|
4
|
+
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from "./gridRowGroupingSelector.js";
|
|
5
|
+
import { createGroupingColDefForAllGroupingCriteria, createGroupingColDefForOneGroupingCriteria } from "./createGroupingColDef.js";
|
|
6
|
+
import { filterRowTreeFromGroupingColumns, getColDefOverrides, ROW_GROUPING_STRATEGY, isGroupingColumn, setStrategyAvailability, getCellGroupingCriteria, getGroupingRules } from "./gridRowGroupingUtils.js";
|
|
7
7
|
export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
8
8
|
const getGroupingColDefs = React.useCallback(columnsState => {
|
|
9
9
|
if (props.disableRowGrouping) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./useGridRowAriaAttributes.js";
|