@mui/x-data-grid-premium 7.15.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 +98 -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/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 +7 -7
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,105 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.16.0
|
|
7
|
+
|
|
8
|
+
_Sep 5, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎨 Update the design of Data Grid column headers (#14293)
|
|
13
|
+
- 🧠 Add the `slots` concept introduction documentation page (#13881)
|
|
14
|
+
- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.16.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
|
|
25
|
+
- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
|
|
26
|
+
- [DataGrid] Column header design updates (#14293) @KenanYusuf
|
|
27
|
+
- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
|
|
29
|
+
- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
|
|
30
|
+
- [DataGrid] Restore reselect behavior (#14410) @romgrk
|
|
31
|
+
- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
|
|
32
|
+
- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.16.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@7.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@7.16.0`.
|
|
43
|
+
|
|
44
|
+
### Date and Time Pickers
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers@7.16.0`
|
|
47
|
+
|
|
48
|
+
- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
|
|
49
|
+
- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
|
|
50
|
+
- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-date-pickers-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-date-pickers@7.16.0`.
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.16.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Fix JSDoc typos (#14497) @alexfauquette
|
|
61
|
+
- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
|
|
62
|
+
- [charts] Fix theme augmentation (#14372) @alexfauquette
|
|
63
|
+
- [charts] Pass all props to legend (#14392) @JCQuintas
|
|
64
|
+
- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
|
|
65
|
+
- [charts] Update `package.json` for vendor package (#14465) @alexfauquette
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@7.0.0-beta.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@7.16.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Tree View
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-tree-view@7.16.0`
|
|
76
|
+
|
|
77
|
+
- [TreeView] Clean label editing code (#14264) @flaviendelangle
|
|
78
|
+
|
|
79
|
+
### `@mui/x-codemod@7.16.0`
|
|
80
|
+
|
|
81
|
+
- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
|
|
86
|
+
- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
|
|
87
|
+
- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
|
|
88
|
+
- [docs] Remove notion of seats (#14351) @oliviertassinari
|
|
89
|
+
- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [core] Fix changelog spelling @oliviertassinari
|
|
94
|
+
- [core] Fix failing tests on the pickers (#14457) @flaviendelangle
|
|
95
|
+
- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
|
|
96
|
+
- [code-infra] Add babel runtime version check (#14483) @Janpot
|
|
97
|
+
- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
|
|
98
|
+
- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
|
|
99
|
+
- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
|
|
100
|
+
- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
|
|
101
|
+
- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
|
|
102
|
+
|
|
6
103
|
## 7.15.0
|
|
7
104
|
|
|
8
105
|
_Aug 29, 2024_
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
@@ -18,8 +19,6 @@ var _releaseInfo = require("../utils/releaseInfo");
|
|
|
18
19
|
var _useGridAriaAttributes = require("../hooks/utils/useGridAriaAttributes");
|
|
19
20
|
var _useGridRowAriaAttributes = require("../hooks/features/rows/useGridRowAriaAttributes");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 configuration = {
|
|
24
23
|
hooks: {
|
|
25
24
|
useGridAriaAttributes: _useGridAriaAttributes.useGridAriaAttributes,
|
|
@@ -450,6 +449,14 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
450
449
|
clipboardExport: _propTypes.default.bool,
|
|
451
450
|
csvExport: _propTypes.default.bool
|
|
452
451
|
}), _propTypes.default.bool]),
|
|
452
|
+
/**
|
|
453
|
+
* If `select`, a group header checkbox in indeterminate state (like "Select All" checkbox)
|
|
454
|
+
* will select all the rows under it.
|
|
455
|
+
* If `deselect`, it will deselect all the rows under it.
|
|
456
|
+
* Works only if `checkboxSelection` is enabled.
|
|
457
|
+
* @default "deselect"
|
|
458
|
+
*/
|
|
459
|
+
indeterminateCheckboxAction: _propTypes.default.oneOf(['deselect', 'select']),
|
|
453
460
|
/**
|
|
454
461
|
* The initial state of the DataGridPremium.
|
|
455
462
|
* The data in it is set in the state on initialization but isn't controlled.
|
|
@@ -958,12 +965,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
958
965
|
*/
|
|
959
966
|
scrollEndThreshold: _propTypes.default.number,
|
|
960
967
|
/**
|
|
961
|
-
* If `true`,
|
|
968
|
+
* If `true`, vertical borders will be displayed between cells.
|
|
962
969
|
* @default false
|
|
963
970
|
*/
|
|
964
971
|
showCellVerticalBorder: _propTypes.default.bool,
|
|
965
972
|
/**
|
|
966
|
-
* If `true`,
|
|
973
|
+
* If `true`, vertical borders will be displayed between column header items.
|
|
967
974
|
* @default false
|
|
968
975
|
*/
|
|
969
976
|
showColumnVerticalBorder: _propTypes.default.bool,
|
|
@@ -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
|
});
|
|
@@ -12,8 +13,6 @@ var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
|
12
13
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
13
14
|
var _aggregation = require("../hooks/features/aggregation");
|
|
14
15
|
var _dataGridPremiumDefaultSlotsComponents = require("../constants/dataGridPremiumDefaultSlotsComponents");
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
16
|
const getDataGridPremiumForcedProps = themedProps => (0, _extends2.default)({
|
|
18
17
|
signature: _xDataGridPro.GridSignature.DataGridPremium
|
|
19
18
|
}, themedProps.unstable_dataSource ? {
|
|
@@ -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
|
});
|
|
@@ -16,8 +17,6 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
|
16
17
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const _excluded = ["renderHeader"];
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
20
|
const GridAggregationHeaderRoot = (0, _styles.styled)('div', {
|
|
22
21
|
name: 'MuiDataGrid',
|
|
23
22
|
slot: 'AggregationColumnHeader',
|
|
@@ -41,12 +40,9 @@ const GridAggregationFunctionLabel = (0, _styles.styled)('div', {
|
|
|
41
40
|
}) => {
|
|
42
41
|
return {
|
|
43
42
|
fontSize: theme.typography.caption.fontSize,
|
|
44
|
-
lineHeight:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
fontWeight: theme.typography.fontWeightMedium,
|
|
48
|
-
color: (theme.vars || theme).palette.primary.dark,
|
|
49
|
-
textTransform: 'uppercase'
|
|
43
|
+
lineHeight: 'normal',
|
|
44
|
+
color: theme.palette.text.secondary,
|
|
45
|
+
marginTop: -1
|
|
50
46
|
};
|
|
51
47
|
});
|
|
52
48
|
const useUtilityClasses = ownerState => {
|
|
@@ -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
|
});
|
|
@@ -23,8 +24,6 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
|
23
24
|
var _gridAggregationUtils = require("../hooks/features/aggregation/gridAggregationUtils");
|
|
24
25
|
var _gridAggregationSelectors = require("../hooks/features/aggregation/gridAggregationSelectors");
|
|
25
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
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); }
|
|
27
|
-
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; }
|
|
28
27
|
function GridColumnMenuAggregationItem(props) {
|
|
29
28
|
const {
|
|
30
29
|
colDef
|
|
@@ -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
|
});
|
|
@@ -15,8 +16,6 @@ var _gridRowGroupingSelector = require("../hooks/features/rowGrouping/gridRowGro
|
|
|
15
16
|
var _gridRowGroupingUtils = require("../hooks/features/rowGrouping/gridRowGroupingUtils");
|
|
16
17
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
19
|
function GridColumnMenuRowGroupItem(props) {
|
|
21
20
|
const {
|
|
22
21
|
colDef,
|
|
@@ -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
|
});
|
|
@@ -14,8 +15,6 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
|
14
15
|
var _gridRowGroupingSelector = require("../hooks/features/rowGrouping/gridRowGroupingSelector");
|
|
15
16
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
18
|
function GridColumnMenuRowUngroupItem(props) {
|
|
20
19
|
const {
|
|
21
20
|
colDef,
|
|
@@ -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
|
});
|
|
@@ -13,8 +14,6 @@ var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
|
|
13
14
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
const _excluded = ["hideMenu", "options"];
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
17
|
function GridExcelExportMenuItem(props) {
|
|
19
18
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
20
19
|
const {
|
|
@@ -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
|
});
|
|
@@ -14,8 +15,6 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
14
15
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
const _excluded = ["formattedValue", "colDef", "cellMode", "row", "api", "id", "value", "rowNode", "field", "focusElementRef", "hasFocus", "tabIndex", "isEditable"];
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
18
|
const GridFooterCellRoot = (0, _styles.styled)('div', {
|
|
20
19
|
name: 'MuiDataGrid',
|
|
21
20
|
slot: 'FooterCell',
|
|
@@ -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
|
});
|
|
@@ -10,8 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
10
11
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
11
12
|
var _GridFooterCell = require("./GridFooterCell");
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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
|
function GridGroupingColumnFooterCell(props) {
|
|
16
15
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
17
16
|
const sx = {
|
|
@@ -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
|
});
|
|
@@ -9,8 +10,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
9
10
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
10
11
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
13
|
function GridGroupingColumnLeafCell(props) {
|
|
15
14
|
const {
|
|
16
15
|
rowNode
|
|
@@ -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
|
});
|
|
@@ -13,8 +14,6 @@ var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
|
13
14
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
14
15
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
17
|
const useUtilityClasses = ownerState => {
|
|
19
18
|
const {
|
|
20
19
|
classes
|
|
@@ -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
|
});
|
|
@@ -15,8 +16,6 @@ var _rowGrouping = require("../hooks/features/rowGrouping");
|
|
|
15
16
|
var _GridColumnMenuRowGroupItem = require("./GridColumnMenuRowGroupItem");
|
|
16
17
|
var _GridColumnMenuRowUngroupItem = require("./GridColumnMenuRowUngroupItem");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
19
|
function GridColumnMenuGroupingItem(props) {
|
|
21
20
|
const {
|
|
22
21
|
colDef
|
|
@@ -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 {
|