@mui/x-data-grid-premium 7.2.0 → 7.3.1

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +204 -2
  2. package/DataGridPremium/DataGridPremium.js +24 -1
  3. package/DataGridPremium/useDataGridPremiumProps.js +1 -1
  4. package/components/GridAggregationHeader.js +1 -1
  5. package/components/GridColumnMenuAggregationItem.js +1 -1
  6. package/components/GridColumnMenuRowGroupItem.js +1 -1
  7. package/components/GridColumnMenuRowUngroupItem.js +1 -1
  8. package/components/GridExcelExportMenuItem.js +1 -1
  9. package/components/GridFooterCell.js +1 -1
  10. package/components/GridGroupingColumnFooterCell.js +1 -1
  11. package/components/GridGroupingColumnLeafCell.js +1 -1
  12. package/components/GridGroupingCriteriaCell.js +1 -1
  13. package/components/GridPremiumColumnMenu.d.ts +4 -4
  14. package/components/GridPremiumColumnMenu.js +1 -1
  15. package/esm/DataGridPremium/DataGridPremium.js +24 -2
  16. package/esm/components/GridAggregationHeader.js +1 -2
  17. package/esm/components/GridColumnMenuAggregationItem.js +1 -2
  18. package/esm/components/GridColumnMenuRowGroupItem.js +1 -2
  19. package/esm/components/GridColumnMenuRowUngroupItem.js +1 -2
  20. package/esm/components/GridGroupingCriteriaCell.js +1 -2
  21. package/esm/hooks/features/cellSelection/useGridCellSelection.js +1 -1
  22. package/esm/utils/releaseInfo.js +1 -1
  23. package/hooks/features/aggregation/useGridAggregation.js +1 -1
  24. package/hooks/features/aggregation/useGridAggregationPreProcessors.js +1 -1
  25. package/hooks/features/aggregation/wrapColumnWithAggregation.js +1 -1
  26. package/hooks/features/cellSelection/useGridCellSelection.js +2 -2
  27. package/hooks/features/clipboard/useGridClipboardImport.js +1 -1
  28. package/hooks/features/export/serializer/excelSerializer.js +1 -1
  29. package/hooks/features/export/useGridExcelExport.js +1 -1
  30. package/hooks/features/rowGrouping/createGroupingColDef.js +1 -1
  31. package/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  32. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +1 -1
  33. package/hooks/utils/useKeepGroupedColumnsHidden.js +1 -1
  34. package/index.js +1 -1
  35. package/material/icons.js +1 -1
  36. package/modern/DataGridPremium/DataGridPremium.js +24 -2
  37. package/modern/components/GridAggregationHeader.js +1 -2
  38. package/modern/components/GridColumnMenuAggregationItem.js +1 -2
  39. package/modern/components/GridColumnMenuRowGroupItem.js +1 -2
  40. package/modern/components/GridColumnMenuRowUngroupItem.js +1 -2
  41. package/modern/components/GridGroupingCriteriaCell.js +1 -2
  42. package/modern/hooks/features/cellSelection/useGridCellSelection.js +1 -1
  43. package/modern/index.js +1 -1
  44. package/modern/utils/releaseInfo.js +1 -1
  45. package/package.json +7 -9
  46. package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,158 @@
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.3.1
7
+
8
+ _Apr 26, 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
+ - 🎁 Scatter Charts get a [z-axis to allow coloring data points independently from their coordinates](https://mui.com/x/react-charts/scatter/#color-scale)
13
+ - 🌍 Improve Catalan (ca-ES) and Spanish (es-ES) locales on the Date and Time Pickers
14
+ - 🐞 Bugfixes
15
+ - 📚 Documentation improvements
16
+
17
+ ### Data Grid
18
+
19
+ #### `@mui/x-data-grid@7.3.1`
20
+
21
+ - [DataGrid] Fix date filtering for negative timezone offsets (#12836) @cherniavskii
22
+ - [DataGrid] Fix flex column width when used with pinned columns (#12849) @romgrk
23
+ - [DataGrid] Fix group header resize (#12863) @arminmeh
24
+ - [DataGrid] Pass slot props to `columnHeaders` slot (#12768) @cherniavskii
25
+
26
+ #### `@mui/x-data-grid-pro@7.3.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
+
28
+ Same changes as in `@mui/x-data-grid@7.3.1`.
29
+
30
+ #### `@mui/x-data-grid-premium@7.3.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
+
32
+ Same changes as in `@mui/x-data-grid-pro@7.3.1`.
33
+
34
+ ### Date and Time Pickers
35
+
36
+ #### `@mui/x-date-pickers@7.3.1`
37
+
38
+ - [l10n] Improve Catalan (ca-ES) locale (#12856) @soler1212
39
+ - [l10n] Improve Spanish (es-ES) locale (#12858) @soler1212
40
+
41
+ #### `@mui/x-date-pickers-pro@7.3.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
42
+
43
+ Same changes as in `@mui/x-date-pickers@7.3.1`.
44
+
45
+ ### Charts
46
+
47
+ #### `@mui/x-charts@7.3.1`
48
+
49
+ - [charts] Add documentation on border radius alternative for `BarCharts` (#12859) @JCQuintas
50
+ - [charts] Add z-axis to colorize scatter charts (#12738) @alexfauquette
51
+ - [charts] Fix left/bottomAxis not picking up default axis id (#12894) @JCQuintas
52
+ - [charts] Improve default tooltip content (#12257) @oliviertassinari
53
+ - [charts] Round y values for bar chart (#12846) @alexfauquette
54
+
55
+ ### Tree View
56
+
57
+ #### `@mui/x-tree-view@7.3.1`
58
+
59
+ - [TreeView] Remove un-needed `aria-activedescendant` attribute (#12867) @flaviendelangle
60
+ - [TreeView] Rework the selection internals (#12703) @flaviendelangle
61
+ - [TreeView] Use the order in which the items are displayed for `type-ahead` (#12827) @flaviendelangle
62
+
63
+ ### Docs
64
+
65
+ - [docs] Add demo for styling charts with `sx` props (#12791) @derek-0000
66
+ - [docs] Cover webpack 4 support in migration guide (#12710) @cherniavskii
67
+ - [docs] Document interfaces for charts (#12656) @alexfauquette
68
+ - [docs] Fix Vale regression (#12862) @oliviertassinari
69
+ - [docs] Improve Data Grid migration guide (#12879) @MBilalShafi
70
+ - [docs] Update Column features availability (#12865) @DanailH
71
+
72
+ ### Core
73
+
74
+ - [core] Fix `l10n` GH workflow (#12895) @LukasTy
75
+ - [core] Match Base UI and Toolpad @oliviertassinari
76
+ - [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
77
+ - [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
78
+ - [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
79
+ - [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
80
+ - [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
81
+ - [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
82
+
83
+ ## 7.3.0
84
+
85
+ _Apr 18, 2024_
86
+
87
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
88
+
89
+ - 📄 Support [unknown and estimated row count in server-side pagination](https://mui.com/x/react-data-grid/pagination/#index-based-pagination) (#12490) @MBilalShafi
90
+ - 🎨 Support color scales in Charts (#12490) @alexfauquette
91
+ Add a [`colorMap` configuration](https://mui.com/x/react-charts/styling/#values-color) to an axis, and the chart will use it to select colors.
92
+ Each impacted chart ([bar charts](https://mui.com/x/react-charts/bars/#color-scale), [line charts](https://mui.com/x/react-charts/lines/#color-scale), [scatter charts](https://mui.com/x/react-charts/scatter/#color-scale)) has a dedicated section explaining how this color map is impacting it.
93
+
94
+ <img src="https://github.com/mui/mui-x/assets/45398769/f0066606-3486-4c4e-b3be-7fdd56d763c3" alt="scatter chart with gradient along y-axis" />
95
+
96
+ - 🌍 Improve Danish (da-DK) locale on the Data Grid
97
+ - 🐞 Bugfixes
98
+ - 📚 Documentation improvements
99
+
100
+ ### Data Grid
101
+
102
+ #### `@mui/x-data-grid@7.3.0`
103
+
104
+ - [DataGrid] Fix calling `onCellEditStop` on error (#12747) @sai6855
105
+ - [DataGrid] Fix column resize (#12792) @romgrk
106
+ - [DataGrid] Fix column separators (#12808) @romgrk
107
+ - [DataGrid] Limit panel width to not exceed screen width (#12799) @cherniavskii
108
+ - [DataGrid] Support advanced server-side pagination use cases (#12474) @MBilalShafi
109
+ - [DataGrid] Support state export and restore on grid density (#12671) @MBilalShafi
110
+ - [l10n] Improve Danish (da-DK) locale (#12784) @EmilBahnsen
111
+
112
+ #### `@mui/x-data-grid-pro@7.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-data-grid@7.3.0`, plus:
115
+
116
+ - [DataGridPro] Implement header filter height (#12666) @romgrk
117
+
118
+ #### `@mui/x-data-grid-premium@7.3.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
119
+
120
+ Same changes as in `@mui/x-data-grid-pro@7.3.0`.
121
+
122
+ ### Charts
123
+
124
+ #### Breaking change
125
+
126
+ A typo fix:
127
+
128
+ ```diff
129
+ - ContinuouseScaleName
130
+ + ContinuousScaleName
131
+ ```
132
+
133
+ #### `@mui/x-charts@7.3.0`
134
+
135
+ - [charts] Add `dataIndex` to series `valueFormatter` (#12745) @JCQuintas
136
+ - [charts] Add color scale (#12490) @alexfauquette
137
+ - [charts] Do not document the usage of `DEFAULT_X_AXIS_KEY` and `DEFAULT_Y_AXIS_KEY` (#12780) @alexfauquette
138
+ - [charts] Export more utils (#12744) @alexfauquette
139
+ - [charts] Fix passing slot props down to `PieArcLabel` (#12806) @JCQuintas
140
+
141
+ ### Tree View
142
+
143
+ #### `@mui/x-tree-view@7.3.0`
144
+
145
+ - [TreeView] Support `defaultMuiPrevented` on the `onFocus` prop of the root slot (#12813) @flaviendelangle
146
+
147
+ ### Docs
148
+
149
+ - [docs] Add grid cell display example to the migration guide (#12793) @romgrk
150
+ - [docs] Use charts classes objects (#12781) @alexfauquette
151
+ - [docs] Fix layout shift on demos (#12816) @zanivan
152
+ - [test] Increase timeout for test that sometimes fail on `DateTimeRangePicker` (#12786) @LukasTy
153
+
154
+ ### Core
155
+
156
+ - [docs-infra] Prepare infra to document charts interfaces (#12653) @alexfauquette
157
+
6
158
  ## 7.2.0
7
159
 
8
160
  _Apr 12, 2024_
@@ -168,7 +320,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
168
320
  - [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
169
321
  - [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
170
322
  - [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
171
- - [docs] Match IE 11 spacing with Material UI @oliviertassinari
323
+ - [docs] Match IE 11 spacing with Material UI @oliviertassinari
172
324
  - [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
173
325
  - [docs] Remove ` around @default values (#12158) @alexfauquette
174
326
  - [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
@@ -431,7 +583,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
431
583
  - [docs] Update links to v6 (#12496) @cherniavskii
432
584
  - [docs] Update links to v7 docs (#12500) @noraleonte
433
585
  - [docs] Update supported versions (#12508) @joserodolfofreitas
434
- - [docs] Update "What's new in MUI X" page #12527 @cherniavskii
586
+ - [docs] Update "What's new in MUI X" page #12527 @cherniavskii
435
587
 
436
588
  ### Core
437
589
 
@@ -3058,6 +3210,56 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
3058
3210
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
3059
3211
  - [license] Correctly throw errors (#10924) @oliviertassinari
3060
3212
 
3213
+ ## 6.19.11
3214
+
3215
+ _Apr 18, 2024_
3216
+
3217
+ We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
3218
+
3219
+ - 🐞 Bugfixes
3220
+
3221
+ ### Data Grid
3222
+
3223
+ #### `@mui/x-data-grid@6.19.11`
3224
+
3225
+ - [DataGrid] Fix virtualization memory leak (#12812) @romgrk
3226
+
3227
+ #### `@mui/x-data-grid-pro@6.19.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
3228
+
3229
+ Same changes as in `@mui/x-data-grid@6.19.11`.
3230
+
3231
+ #### `@mui/x-data-grid-premium@6.19.11` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
3232
+
3233
+ Same changes as in `@mui/x-data-grid-pro@6.19.11`.
3234
+
3235
+ ## 6.19.10
3236
+
3237
+ _Apr 12, 2024_
3238
+
3239
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
3240
+
3241
+ - 🐞 Bugfixes
3242
+ - 📚 Documentation improvements
3243
+
3244
+ ### Data Grid
3245
+
3246
+ #### `@mui/x-data-grid@6.19.10`
3247
+
3248
+ - [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
3249
+ - [DataGrid] Fix bug in suspense (#12754) @cherniavskii
3250
+
3251
+ #### `@mui/x-data-grid-pro@6.19.10` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
3252
+
3253
+ Same changes as in `@mui/x-data-grid@6.19.10`.
3254
+
3255
+ #### `@mui/x-data-grid-premium@6.19.10` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
3256
+
3257
+ Same changes as in `@mui/x-data-grid-pro@6.19.10`.
3258
+
3259
+ ### Core
3260
+
3261
+ - [core] Update the docs release source branch (#12685) @LukasTy
3262
+
3061
3263
  ## 6.19.9
3062
3264
 
3063
3265
  _Apr 5, 2024_
@@ -17,7 +17,7 @@ var _useDataGridPremiumProps = require("./useDataGridPremiumProps");
17
17
  var _releaseInfo = require("../utils/releaseInfo");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
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 && Object.prototype.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
+ 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
21
  const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
22
22
  const dataGridPremiumPropValidators = [..._internals.propValidatorsDataGrid, ..._internals.propValidatorsDataGridPro];
23
23
  const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremium(inProps, ref) {
@@ -285,6 +285,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
285
285
  * @default "cell"
286
286
  */
287
287
  editMode: _propTypes.default.oneOf(['cell', 'row']),
288
+ /**
289
+ * Use if the actual rowCount is not known upfront, but an estimation is available.
290
+ * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
291
+ * Applicable only with `paginationMode="server"` and when `rowCount="-1"`
292
+ */
293
+ estimatedRowCount: _propTypes.default.number,
288
294
  /**
289
295
  * Unstable features, breaking changes might be introduced.
290
296
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
@@ -392,6 +398,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
392
398
  * The grouping column used by the tree data.
393
399
  */
394
400
  groupingColDef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
401
+ /**
402
+ * Override the height of the header filters.
403
+ */
404
+ headerFilterHeight: _propTypes.default.number,
395
405
  /**
396
406
  * If `true`, enables the data grid filtering on header feature.
397
407
  * @default false
@@ -683,6 +693,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
683
693
  * @param {GridCallbackDetails} details Additional details for this callback.
684
694
  */
685
695
  onMenuOpen: _propTypes.default.func,
696
+ /**
697
+ * Callback fired when the pagination meta has changed.
698
+ * @param {GridPaginationMeta} paginationMeta Updated pagination meta.
699
+ */
700
+ onPaginationMetaChange: _propTypes.default.func,
686
701
  /**
687
702
  * Callback fired when the pagination model has changed.
688
703
  * @param {GridPaginationModel} model Updated pagination model.
@@ -812,6 +827,13 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
812
827
  * @default false
813
828
  */
814
829
  pagination: _propTypes.default.bool,
830
+ /**
831
+ * The extra information about the pagination state of the Data Grid.
832
+ * Only applicable with `paginationMode="server"`.
833
+ */
834
+ paginationMeta: _propTypes.default.shape({
835
+ hasNextPage: _propTypes.default.bool
836
+ }),
815
837
  /**
816
838
  * Pagination can be processed on the server or client-side.
817
839
  * Set it to 'client' if you would like to handle the pagination on the client-side.
@@ -858,6 +880,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
858
880
  /**
859
881
  * Set the total number of rows, if it is different from the length of the value `rows` prop.
860
882
  * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
883
+ * Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
861
884
  */
862
885
  rowCount: _propTypes.default.number,
863
886
  /**
@@ -13,7 +13,7 @@ var _internals = require("@mui/x-data-grid-pro/internals");
13
13
  var _aggregation = require("../hooks/features/aggregation");
14
14
  var _dataGridPremiumDefaultSlotsComponents = require("../constants/dataGridPremiumDefaultSlotsComponents");
15
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 && Object.prototype.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
+ 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
17
  /**
18
18
  * The default values of `DataGridPremiumPropsWithDefaultValue` to inject in the props of DataGridPremium.
19
19
  */
@@ -17,7 +17,7 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
18
  const _excluded = ["renderHeader"];
19
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 && Object.prototype.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
+ 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
21
  const GridAggregationHeaderRoot = (0, _styles.styled)('div', {
22
22
  name: 'MuiDataGrid',
23
23
  slot: 'AggregationColumnHeader',
@@ -24,7 +24,7 @@ var _gridAggregationUtils = require("../hooks/features/aggregation/gridAggregati
24
24
  var _gridAggregationSelectors = require("../hooks/features/aggregation/gridAggregationSelectors");
25
25
  var _jsxRuntime = require("react/jsx-runtime");
26
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 && Object.prototype.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; }
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
28
  function GridColumnMenuAggregationItem(props) {
29
29
  const {
30
30
  colDef
@@ -17,7 +17,7 @@ var _gridRowGroupingUtils = require("../hooks/features/rowGrouping/gridRowGroupi
17
17
  var _useGridRootProps = require("../hooks/utils/useGridRootProps");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
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 && Object.prototype.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
+ 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
21
  function GridColumnMenuRowGroupItem(props) {
22
22
  const {
23
23
  colDef,
@@ -16,7 +16,7 @@ var _gridRowGroupingSelector = require("../hooks/features/rowGrouping/gridRowGro
16
16
  var _useGridRootProps = require("../hooks/utils/useGridRootProps");
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
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 && Object.prototype.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
+ 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
20
  function GridColumnMenuRowUngroupItem(props) {
21
21
  const {
22
22
  colDef,
@@ -14,7 +14,7 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  const _excluded = ["hideMenu", "options"];
16
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 && Object.prototype.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
+ 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
18
  function GridExcelExportMenuItem(props) {
19
19
  const apiRef = (0, _useGridApiContext.useGridApiContext)();
20
20
  const {
@@ -15,7 +15,7 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  const _excluded = ["formattedValue", "colDef", "cellMode", "row", "api", "id", "value", "rowNode", "field", "focusElementRef", "hasFocus", "tabIndex", "isEditable"];
17
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 && Object.prototype.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
+ 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
19
  const GridFooterCellRoot = (0, _styles.styled)('div', {
20
20
  name: 'MuiDataGrid',
21
21
  slot: 'FooterCell',
@@ -11,7 +11,7 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
11
11
  var _GridFooterCell = require("./GridFooterCell");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
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 && Object.prototype.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
+ 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
15
  function GridGroupingColumnFooterCell(props) {
16
16
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
17
17
  const sx = {
@@ -10,7 +10,7 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
10
10
  var _useGridRootProps = require("../hooks/utils/useGridRootProps");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
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 && Object.prototype.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
+ 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
14
  function GridGroupingColumnLeafCell(props) {
15
15
  const {
16
16
  rowNode
@@ -14,7 +14,7 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
14
14
  var _useGridRootProps = require("../hooks/utils/useGridRootProps");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
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 && Object.prototype.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
+ 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
18
  const useUtilityClasses = ownerState => {
19
19
  const {
20
20
  classes
@@ -5,10 +5,10 @@ export declare function GridColumnMenuGroupingItem(props: GridColumnMenuItemProp
5
5
  export declare const GRID_COLUMN_MENU_SLOTS_PREMIUM: {
6
6
  columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
7
7
  columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
8
- columnMenuPinningItem: typeof import("@mui/x-data-grid-pro/components/GridColumnMenuPinningItem").GridColumnMenuPinningItem;
9
- columnMenuSortItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuSortItem").GridColumnMenuSortItem;
10
- columnMenuFilterItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem").GridColumnMenuFilterItem;
11
- columnMenuColumnsItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem").GridColumnMenuColumnsItem;
8
+ columnMenuPinningItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuPinningItem;
9
+ columnMenuSortItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuSortItem;
10
+ columnMenuFilterItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuFilterItem;
11
+ columnMenuColumnsItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuColumnsItem;
12
12
  };
13
13
  export declare const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM: {
14
14
  columnMenuAggregationItem: {
@@ -17,7 +17,7 @@ var _GridColumnMenuRowGroupItem = require("./GridColumnMenuRowGroupItem");
17
17
  var _GridColumnMenuRowUngroupItem = require("./GridColumnMenuRowUngroupItem");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
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 && Object.prototype.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
+ 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
21
  function GridColumnMenuGroupingItem(props) {
22
22
  const {
23
23
  colDef
@@ -9,8 +9,7 @@ import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from
9
9
  import { useDataGridPremiumComponent } from './useDataGridPremiumComponent';
10
10
  import { useDataGridPremiumProps } from './useDataGridPremiumProps';
11
11
  import { getReleaseInfo } from '../utils/releaseInfo';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const releaseInfo = getReleaseInfo();
15
14
  const dataGridPremiumPropValidators = [...propValidatorsDataGrid, ...propValidatorsDataGridPro];
16
15
  const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremium(inProps, ref) {
@@ -278,6 +277,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
278
277
  * @default "cell"
279
278
  */
280
279
  editMode: PropTypes.oneOf(['cell', 'row']),
280
+ /**
281
+ * Use if the actual rowCount is not known upfront, but an estimation is available.
282
+ * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
283
+ * Applicable only with `paginationMode="server"` and when `rowCount="-1"`
284
+ */
285
+ estimatedRowCount: PropTypes.number,
281
286
  /**
282
287
  * Unstable features, breaking changes might be introduced.
283
288
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
@@ -385,6 +390,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
385
390
  * The grouping column used by the tree data.
386
391
  */
387
392
  groupingColDef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
393
+ /**
394
+ * Override the height of the header filters.
395
+ */
396
+ headerFilterHeight: PropTypes.number,
388
397
  /**
389
398
  * If `true`, enables the data grid filtering on header feature.
390
399
  * @default false
@@ -676,6 +685,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
676
685
  * @param {GridCallbackDetails} details Additional details for this callback.
677
686
  */
678
687
  onMenuOpen: PropTypes.func,
688
+ /**
689
+ * Callback fired when the pagination meta has changed.
690
+ * @param {GridPaginationMeta} paginationMeta Updated pagination meta.
691
+ */
692
+ onPaginationMetaChange: PropTypes.func,
679
693
  /**
680
694
  * Callback fired when the pagination model has changed.
681
695
  * @param {GridPaginationModel} model Updated pagination model.
@@ -805,6 +819,13 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
805
819
  * @default false
806
820
  */
807
821
  pagination: PropTypes.bool,
822
+ /**
823
+ * The extra information about the pagination state of the Data Grid.
824
+ * Only applicable with `paginationMode="server"`.
825
+ */
826
+ paginationMeta: PropTypes.shape({
827
+ hasNextPage: PropTypes.bool
828
+ }),
808
829
  /**
809
830
  * Pagination can be processed on the server or client-side.
810
831
  * Set it to 'client' if you would like to handle the pagination on the client-side.
@@ -851,6 +872,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
851
872
  /**
852
873
  * Set the total number of rows, if it is different from the length of the value `rows` prop.
853
874
  * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
875
+ * Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
854
876
  */
855
877
  rowCount: PropTypes.number,
856
878
  /**
@@ -8,8 +8,7 @@ import { getDataGridUtilityClass, gridClasses, GridColumnHeaderTitle } from '@mu
8
8
  import { getAggregationFunctionLabel } from '../hooks/features/aggregation/gridAggregationUtils';
9
9
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
10
10
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  const GridAggregationHeaderRoot = styled('div', {
14
13
  name: 'MuiDataGrid',
15
14
  slot: 'AggregationColumnHeader',
@@ -15,8 +15,7 @@ import { useGridApiContext } from '../hooks/utils/useGridApiContext';
15
15
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
16
16
  import { canColumnHaveAggregationFunction, getAggregationFunctionLabel, getAvailableAggregationFunctions } from '../hooks/features/aggregation/gridAggregationUtils';
17
17
  import { gridAggregationModelSelector } from '../hooks/features/aggregation/gridAggregationSelectors';
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- import { jsxs as _jsxs } from "react/jsx-runtime";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
19
  function GridColumnMenuAggregationItem(props) {
21
20
  const {
22
21
  colDef
@@ -8,8 +8,7 @@ import { useGridApiContext } from '../hooks/utils/useGridApiContext';
8
8
  import { gridRowGroupingSanitizedModelSelector } from '../hooks/features/rowGrouping/gridRowGroupingSelector';
9
9
  import { getRowGroupingCriteriaFromGroupingField, GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD, isGroupingColumn } from '../hooks/features/rowGrouping/gridRowGroupingUtils';
10
10
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  function GridColumnMenuRowGroupItem(props) {
14
13
  const {
15
14
  colDef,
@@ -7,8 +7,7 @@ import { gridColumnLookupSelector, useGridSelector } from '@mui/x-data-grid-pro'
7
7
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
8
8
  import { gridRowGroupingSanitizedModelSelector } from '../hooks/features/rowGrouping/gridRowGroupingSelector';
9
9
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  function GridColumnMenuRowUngroupItem(props) {
13
12
  const {
14
13
  colDef,
@@ -5,8 +5,7 @@ import Box from '@mui/material/Box';
5
5
  import { useGridSelector, gridFilteredDescendantCountLookupSelector, getDataGridUtilityClass } from '@mui/x-data-grid-pro';
6
6
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
7
7
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const useUtilityClasses = ownerState => {
11
10
  const {
12
11
  classes
@@ -21,7 +21,7 @@ export const useGridCellSelection = (apiRef, props) => {
21
21
  const autoScrollRAF = React.useRef();
22
22
  const sortedRowIds = useGridSelector(apiRef, gridSortedRowIdsSelector);
23
23
  const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
24
- const totalHeaderHeight = getTotalHeaderHeight(apiRef, props.columnHeaderHeight);
24
+ const totalHeaderHeight = getTotalHeaderHeight(apiRef, props);
25
25
  const ignoreValueFormatterProp = props.ignoreValueFormatterDuringExport;
26
26
  const ignoreValueFormatter = (typeof ignoreValueFormatterProp === 'object' ? ignoreValueFormatterProp?.clipboardExport : ignoreValueFormatterProp) || false;
27
27
  const clipboardCopyCellDelimiter = props.clipboardCopyCellDelimiter;
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMjg2OTIwMDAwMA==";
3
+ const releaseInfo = "MTcxNDA3MTYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -12,7 +12,7 @@ var _gridAggregationSelectors = require("./gridAggregationSelectors");
12
12
  var _gridAggregationUtils = require("./gridAggregationUtils");
13
13
  var _createAggregationLookup = require("./createAggregationLookup");
14
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 && Object.prototype.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
+ 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
16
  const aggregationStateInitializer = (state, props, apiRef) => {
17
17
  apiRef.current.caches.aggregation = {
18
18
  rulesOnLastColumnHydration: {},
@@ -13,7 +13,7 @@ var _gridAggregationUtils = require("./gridAggregationUtils");
13
13
  var _wrapColumnWithAggregation = require("./wrapColumnWithAggregation");
14
14
  var _gridAggregationSelectors = require("./gridAggregationSelectors");
15
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 && Object.prototype.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
+ 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
17
  const useGridAggregationPreProcessors = (apiRef, props) => {
18
18
  // apiRef.current.caches.aggregation.rulesOnLastColumnHydration is not used because by the time
19
19
  // that the pre-processor is called it will already have been updated with the current rules.
@@ -14,7 +14,7 @@ var _GridAggregationHeader = require("../../../components/GridAggregationHeader"
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  const _excluded = ["aggregationWrappedProperties"];
16
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 && Object.prototype.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
+ 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
18
  const AGGREGATION_WRAPPABLE_PROPERTIES = ['valueGetter', 'valueFormatter', 'renderCell', 'renderHeader', 'filterOperators'];
19
19
  const getAggregationValueWrappedValueGetter = ({
20
20
  value: valueGetter,
@@ -12,7 +12,7 @@ var _internals = require("@mui/x-data-grid-pro/internals");
12
12
  var _xDataGridPro = require("@mui/x-data-grid-pro");
13
13
  var _gridCellSelectionSelector = require("./gridCellSelectionSelector");
14
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 && Object.prototype.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
+ 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
16
  const cellSelectionStateInitializer = (state, props) => (0, _extends2.default)({}, state, {
17
17
  cellSelection: (0, _extends2.default)({}, props.cellSelectionModel ?? props.initialState?.cellSelection)
18
18
  });
@@ -31,7 +31,7 @@ const useGridCellSelection = (apiRef, props) => {
31
31
  const autoScrollRAF = React.useRef();
32
32
  const sortedRowIds = (0, _xDataGridPro.useGridSelector)(apiRef, _xDataGridPro.gridSortedRowIdsSelector);
33
33
  const dimensions = (0, _xDataGridPro.useGridSelector)(apiRef, _xDataGridPro.gridDimensionsSelector);
34
- const totalHeaderHeight = (0, _internals.getTotalHeaderHeight)(apiRef, props.columnHeaderHeight);
34
+ const totalHeaderHeight = (0, _internals.getTotalHeaderHeight)(apiRef, props);
35
35
  const ignoreValueFormatterProp = props.ignoreValueFormatterDuringExport;
36
36
  const ignoreValueFormatter = (typeof ignoreValueFormatterProp === 'object' ? ignoreValueFormatterProp?.clipboardExport : ignoreValueFormatterProp) || false;
37
37
  const clipboardCopyCellDelimiter = props.clipboardCopyCellDelimiter;
@@ -12,7 +12,7 @@ var _internals = require("@mui/x-data-grid/internals");
12
12
  var _xDataGridPro = require("@mui/x-data-grid-pro");
13
13
  var _utils = require("@mui/utils");
14
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 && Object.prototype.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
+ 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
16
  const missingOnProcessRowUpdateErrorWarning = (0, _internals.buildWarning)(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence.'], 'error');
17
17
  const columnFieldsToExcludeFromPaste = [_xDataGrid.GRID_CHECKBOX_SELECTION_FIELD, _xDataGridPro.GRID_REORDER_COL_DEF.field, _xDataGridPro.GRID_DETAIL_PANEL_TOGGLE_FIELD];
18
18
 
@@ -14,7 +14,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
14
14
  var _xDataGridPro = require("@mui/x-data-grid-pro");
15
15
  var _internals = require("@mui/x-data-grid/internals");
16
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 && Object.prototype.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
+ 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
18
  const getExcelJs = async () => {
19
19
  const excelJsModule = await Promise.resolve().then(() => _interopRequireWildcard(require('exceljs')));
20
20
  return excelJsModule.default ?? excelJsModule;
@@ -21,7 +21,7 @@ const _excluded = ["worker", "exceljsPostProcess", "exceljsPreProcess", "columns
21
21
  * @requires useGridParamsApi (method)
22
22
  */
23
23
  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); }
24
- 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 && Object.prototype.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; }
24
+ 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; }
25
25
  const useGridExcelExport = (apiRef, props) => {
26
26
  const logger = (0, _xDataGrid.useGridLogger)(apiRef, 'useGridExcelExport');
27
27
  const getDataAsExcel = React.useCallback((options = {}) => {
@@ -19,7 +19,7 @@ var _jsxRuntime = require("react/jsx-runtime");
19
19
  const _excluded = ["leafField", "mainGroupingCriteria", "hideDescendantCount"],
20
20
  _excluded2 = ["leafField", "mainGroupingCriteria", "hideDescendantCount"];
21
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 && Object.prototype.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; }
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
23
  const GROUPING_COL_DEF_DEFAULT_PROPERTIES = (0, _extends2.default)({}, _xDataGridPro.GRID_STRING_COL_DEF, {
24
24
  type: 'custom',
25
25
  disableReorder: true
@@ -12,7 +12,7 @@ var _internals = require("@mui/x-data-grid-pro/internals");
12
12
  var _gridRowGroupingSelector = require("./gridRowGroupingSelector");
13
13
  var _gridRowGroupingUtils = require("./gridRowGroupingUtils");
14
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 && Object.prototype.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
+ 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
16
  const rowGroupingStateInitializer = (state, props, apiRef) => {
17
17
  apiRef.current.caches.rowGrouping = {
18
18
  rulesOnLastRowTreeCreation: []
@@ -11,7 +11,7 @@ var _gridRowGroupingSelector = require("./gridRowGroupingSelector");
11
11
  var _createGroupingColDef = require("./createGroupingColDef");
12
12
  var _gridRowGroupingUtils = require("./gridRowGroupingUtils");
13
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 && Object.prototype.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
+ 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
15
  const useGridRowGroupingPreProcessors = (apiRef, props) => {
16
16
  const getGroupingColDefs = React.useCallback(columnsState => {
17
17
  if (props.disableRowGrouping) {
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _xDataGridPro = require("@mui/x-data-grid-pro");
11
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 && Object.prototype.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
+ 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
13
  const updateColumnVisibilityModel = (columnVisibilityModel, rowGroupingModel, prevRowGroupingModel) => {
14
14
  const newColumnVisibilityModel = (0, _extends2.default)({}, columnVisibilityModel);
15
15
  rowGroupingModel?.forEach(field => {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.2.0
2
+ * @mui/x-data-grid-premium v7.3.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/material/icons.js CHANGED
@@ -8,7 +8,7 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _utils = require("@mui/material/utils");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
  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); }
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 && Object.prototype.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; }
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
12
  const GridWorkspacesIcon = exports.GridWorkspacesIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
13
13
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
14
14
  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"
@@ -9,8 +9,7 @@ import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from
9
9
  import { useDataGridPremiumComponent } from './useDataGridPremiumComponent';
10
10
  import { useDataGridPremiumProps } from './useDataGridPremiumProps';
11
11
  import { getReleaseInfo } from '../utils/releaseInfo';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const releaseInfo = getReleaseInfo();
15
14
  const dataGridPremiumPropValidators = [...propValidatorsDataGrid, ...propValidatorsDataGridPro];
16
15
  const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremium(inProps, ref) {
@@ -278,6 +277,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
278
277
  * @default "cell"
279
278
  */
280
279
  editMode: PropTypes.oneOf(['cell', 'row']),
280
+ /**
281
+ * Use if the actual rowCount is not known upfront, but an estimation is available.
282
+ * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
283
+ * Applicable only with `paginationMode="server"` and when `rowCount="-1"`
284
+ */
285
+ estimatedRowCount: PropTypes.number,
281
286
  /**
282
287
  * Unstable features, breaking changes might be introduced.
283
288
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
@@ -385,6 +390,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
385
390
  * The grouping column used by the tree data.
386
391
  */
387
392
  groupingColDef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
393
+ /**
394
+ * Override the height of the header filters.
395
+ */
396
+ headerFilterHeight: PropTypes.number,
388
397
  /**
389
398
  * If `true`, enables the data grid filtering on header feature.
390
399
  * @default false
@@ -676,6 +685,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
676
685
  * @param {GridCallbackDetails} details Additional details for this callback.
677
686
  */
678
687
  onMenuOpen: PropTypes.func,
688
+ /**
689
+ * Callback fired when the pagination meta has changed.
690
+ * @param {GridPaginationMeta} paginationMeta Updated pagination meta.
691
+ */
692
+ onPaginationMetaChange: PropTypes.func,
679
693
  /**
680
694
  * Callback fired when the pagination model has changed.
681
695
  * @param {GridPaginationModel} model Updated pagination model.
@@ -805,6 +819,13 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
805
819
  * @default false
806
820
  */
807
821
  pagination: PropTypes.bool,
822
+ /**
823
+ * The extra information about the pagination state of the Data Grid.
824
+ * Only applicable with `paginationMode="server"`.
825
+ */
826
+ paginationMeta: PropTypes.shape({
827
+ hasNextPage: PropTypes.bool
828
+ }),
808
829
  /**
809
830
  * Pagination can be processed on the server or client-side.
810
831
  * Set it to 'client' if you would like to handle the pagination on the client-side.
@@ -851,6 +872,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
851
872
  /**
852
873
  * Set the total number of rows, if it is different from the length of the value `rows` prop.
853
874
  * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
875
+ * Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
854
876
  */
855
877
  rowCount: PropTypes.number,
856
878
  /**
@@ -8,8 +8,7 @@ import { getDataGridUtilityClass, gridClasses, GridColumnHeaderTitle } from '@mu
8
8
  import { getAggregationFunctionLabel } from '../hooks/features/aggregation/gridAggregationUtils';
9
9
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
10
10
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  const GridAggregationHeaderRoot = styled('div', {
14
13
  name: 'MuiDataGrid',
15
14
  slot: 'AggregationColumnHeader',
@@ -15,8 +15,7 @@ import { useGridApiContext } from '../hooks/utils/useGridApiContext';
15
15
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
16
16
  import { canColumnHaveAggregationFunction, getAggregationFunctionLabel, getAvailableAggregationFunctions } from '../hooks/features/aggregation/gridAggregationUtils';
17
17
  import { gridAggregationModelSelector } from '../hooks/features/aggregation/gridAggregationSelectors';
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- import { jsxs as _jsxs } from "react/jsx-runtime";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
19
  function GridColumnMenuAggregationItem(props) {
21
20
  const {
22
21
  colDef
@@ -8,8 +8,7 @@ import { useGridApiContext } from '../hooks/utils/useGridApiContext';
8
8
  import { gridRowGroupingSanitizedModelSelector } from '../hooks/features/rowGrouping/gridRowGroupingSelector';
9
9
  import { getRowGroupingCriteriaFromGroupingField, GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD, isGroupingColumn } from '../hooks/features/rowGrouping/gridRowGroupingUtils';
10
10
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  function GridColumnMenuRowGroupItem(props) {
14
13
  const {
15
14
  colDef,
@@ -7,8 +7,7 @@ import { gridColumnLookupSelector, useGridSelector } from '@mui/x-data-grid-pro'
7
7
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
8
8
  import { gridRowGroupingSanitizedModelSelector } from '../hooks/features/rowGrouping/gridRowGroupingSelector';
9
9
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  function GridColumnMenuRowUngroupItem(props) {
13
12
  const {
14
13
  colDef,
@@ -5,8 +5,7 @@ import Box from '@mui/material/Box';
5
5
  import { useGridSelector, gridFilteredDescendantCountLookupSelector, getDataGridUtilityClass } from '@mui/x-data-grid-pro';
6
6
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
7
7
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const useUtilityClasses = ownerState => {
11
10
  const {
12
11
  classes
@@ -21,7 +21,7 @@ export const useGridCellSelection = (apiRef, props) => {
21
21
  const autoScrollRAF = React.useRef();
22
22
  const sortedRowIds = useGridSelector(apiRef, gridSortedRowIdsSelector);
23
23
  const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
24
- const totalHeaderHeight = getTotalHeaderHeight(apiRef, props.columnHeaderHeight);
24
+ const totalHeaderHeight = getTotalHeaderHeight(apiRef, props);
25
25
  const ignoreValueFormatterProp = props.ignoreValueFormatterDuringExport;
26
26
  const ignoreValueFormatter = (typeof ignoreValueFormatterProp === 'object' ? ignoreValueFormatterProp?.clipboardExport : ignoreValueFormatterProp) || false;
27
27
  const clipboardCopyCellDelimiter = props.clipboardCopyCellDelimiter;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.2.0
2
+ * @mui/x-data-grid-premium v7.3.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMjg2OTIwMDAwMA==";
3
+ const releaseInfo = "MTcxNDA3MTYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "7.2.0",
3
+ "version": "7.3.1",
4
4
  "description": "The Premium plan edition of the Data Grid Components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -11,7 +11,8 @@
11
11
  "homepage": "https://mui.com/x/react-data-grid/",
12
12
  "sideEffects": false,
13
13
  "publishConfig": {
14
- "access": "public"
14
+ "access": "public",
15
+ "directory": "build"
15
16
  },
16
17
  "keywords": [
17
18
  "react",
@@ -35,23 +36,20 @@
35
36
  "@babel/runtime": "^7.24.0",
36
37
  "@mui/system": "^5.15.14",
37
38
  "@mui/utils": "^5.15.14",
38
- "@mui/x-data-grid": "7.2.0",
39
- "@mui/x-data-grid-pro": "7.2.0",
40
- "@mui/x-license": "7.2.0",
41
39
  "@types/format-util": "^1.0.4",
42
40
  "clsx": "^2.1.0",
43
41
  "exceljs": "^4.4.0",
44
42
  "prop-types": "^15.8.1",
45
- "reselect": "^4.1.8"
43
+ "reselect": "^4.1.8",
44
+ "@mui/x-data-grid": "7.3.1",
45
+ "@mui/x-data-grid-pro": "7.3.1",
46
+ "@mui/x-license": "7.2.0"
46
47
  },
47
48
  "peerDependencies": {
48
49
  "@mui/material": "^5.15.14",
49
50
  "react": "^17.0.0 || ^18.0.0",
50
51
  "react-dom": "^17.0.0 || ^18.0.0"
51
52
  },
52
- "setupFiles": [
53
- "<rootDir>/src/setupTests.js"
54
- ],
55
53
  "engines": {
56
54
  "node": ">=14.0.0"
57
55
  },
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcxMjg2OTIwMDAwMA==";
9
+ const releaseInfo = "MTcxNDA3MTYwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat