@mui/x-data-grid-pro 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.
- package/CHANGELOG.md +204 -2
- package/DataGridPro/DataGridPro.js +24 -1
- package/DataGridPro/useDataGridProProps.js +1 -1
- package/components/GridColumnHeaders.js +1 -1
- package/components/GridColumnMenuPinningItem.js +1 -1
- package/components/GridDetailPanel.js +1 -1
- package/components/GridDetailPanelToggleCell.js +1 -1
- package/components/GridDetailPanels.js +1 -1
- package/components/GridPinnedRows.js +1 -1
- package/components/GridProColumnMenu.d.ts +3 -3
- package/components/GridProColumnMenu.js +1 -1
- package/components/GridRowReorderCell.js +1 -1
- package/components/GridTreeDataGroupingCell.js +1 -1
- package/components/headerFiltering/GridHeaderFilterCell.js +1 -1
- package/components/headerFiltering/GridHeaderFilterClearButton.js +1 -1
- package/components/headerFiltering/GridHeaderFilterMenu.js +1 -1
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +1 -1
- package/esm/DataGridPro/DataGridPro.js +24 -2
- package/esm/components/GridColumnHeaders.js +1 -2
- package/esm/components/GridColumnMenuPinningItem.js +1 -2
- package/esm/components/GridRowReorderCell.js +1 -2
- package/esm/components/GridTreeDataGroupingCell.js +1 -2
- package/esm/components/headerFiltering/GridHeaderFilterCell.js +1 -2
- package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +1 -2
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -3
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/hooks/features/columnPinning/useGridColumnPinning.js +1 -1
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +1 -1
- package/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +1 -1
- package/hooks/features/detailPanel/useGridDetailPanel.js +1 -1
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +1 -1
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +1 -1
- package/hooks/features/lazyLoader/useGridLazyLoader.js +1 -1
- package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +1 -1
- package/hooks/features/rowPinning/useGridRowPinning.js +1 -1
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +1 -1
- package/hooks/features/rowReorder/useGridRowReorder.js +1 -1
- package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +1 -1
- package/hooks/features/treeData/useGridTreeData.js +1 -1
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +1 -1
- package/index.js +1 -1
- package/material/icons.js +1 -1
- package/models/dataGridProProps.d.ts +2 -2
- package/modern/DataGridPro/DataGridPro.js +24 -2
- package/modern/components/GridColumnHeaders.js +1 -2
- package/modern/components/GridColumnMenuPinningItem.js +1 -2
- package/modern/components/GridRowReorderCell.js +1 -2
- package/modern/components/GridTreeDataGroupingCell.js +1 -2
- package/modern/components/headerFiltering/GridHeaderFilterCell.js +1 -2
- package/modern/components/headerFiltering/GridHeaderFilterMenuContainer.js +1 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -3
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +6 -8
- package/utils/releaseInfo.js +1 -1
- package/esm/hooks/features/detailPanel/useGridDetailPanelCache.js +0 -56
- package/hooks/features/detailPanel/useGridDetailPanelCache.d.ts +0 -4
- package/hooks/features/detailPanel/useGridDetailPanelCache.js +0 -66
- package/modern/hooks/features/detailPanel/useGridDetailPanelCache.js +0 -56
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` [](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` [](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` [](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` [](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` [](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
|
|
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
|
|
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` [](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` [](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` [](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` [](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_
|
|
@@ -18,7 +18,7 @@ var _releaseInfo = require("../utils/releaseInfo");
|
|
|
18
18
|
var _propValidation = require("../internals/propValidation");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
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); }
|
|
21
|
-
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 &&
|
|
21
|
+
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; }
|
|
22
22
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
23
23
|
const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProps, ref) {
|
|
24
24
|
const props = (0, _useDataGridProProps.useDataGridProProps)(inProps);
|
|
@@ -245,6 +245,12 @@ DataGridProRaw.propTypes = {
|
|
|
245
245
|
* @default "cell"
|
|
246
246
|
*/
|
|
247
247
|
editMode: _propTypes.default.oneOf(['cell', 'row']),
|
|
248
|
+
/**
|
|
249
|
+
* Use if the actual rowCount is not known upfront, but an estimation is available.
|
|
250
|
+
* If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
|
|
251
|
+
* Applicable only with `paginationMode="server"` and when `rowCount="-1"`
|
|
252
|
+
*/
|
|
253
|
+
estimatedRowCount: _propTypes.default.number,
|
|
248
254
|
/**
|
|
249
255
|
* Unstable features, breaking changes might be introduced.
|
|
250
256
|
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
@@ -345,6 +351,10 @@ DataGridProRaw.propTypes = {
|
|
|
345
351
|
* The grouping column used by the tree data.
|
|
346
352
|
*/
|
|
347
353
|
groupingColDef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
354
|
+
/**
|
|
355
|
+
* Override the height of the header filters.
|
|
356
|
+
*/
|
|
357
|
+
headerFilterHeight: _propTypes.default.number,
|
|
348
358
|
/**
|
|
349
359
|
* If `true`, enables the data grid filtering on header feature.
|
|
350
360
|
* @default false
|
|
@@ -603,6 +613,11 @@ DataGridProRaw.propTypes = {
|
|
|
603
613
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
604
614
|
*/
|
|
605
615
|
onMenuOpen: _propTypes.default.func,
|
|
616
|
+
/**
|
|
617
|
+
* Callback fired when the pagination meta has changed.
|
|
618
|
+
* @param {GridPaginationMeta} paginationMeta Updated pagination meta.
|
|
619
|
+
*/
|
|
620
|
+
onPaginationMetaChange: _propTypes.default.func,
|
|
606
621
|
/**
|
|
607
622
|
* Callback fired when the pagination model has changed.
|
|
608
623
|
* @param {GridPaginationModel} model Updated pagination model.
|
|
@@ -726,6 +741,13 @@ DataGridProRaw.propTypes = {
|
|
|
726
741
|
* @default false
|
|
727
742
|
*/
|
|
728
743
|
pagination: _propTypes.default.bool,
|
|
744
|
+
/**
|
|
745
|
+
* The extra information about the pagination state of the Data Grid.
|
|
746
|
+
* Only applicable with `paginationMode="server"`.
|
|
747
|
+
*/
|
|
748
|
+
paginationMeta: _propTypes.default.shape({
|
|
749
|
+
hasNextPage: _propTypes.default.bool
|
|
750
|
+
}),
|
|
729
751
|
/**
|
|
730
752
|
* Pagination can be processed on the server or client-side.
|
|
731
753
|
* Set it to 'client' if you would like to handle the pagination on the client-side.
|
|
@@ -772,6 +794,7 @@ DataGridProRaw.propTypes = {
|
|
|
772
794
|
/**
|
|
773
795
|
* Set the total number of rows, if it is different from the length of the value `rows` prop.
|
|
774
796
|
* If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
|
|
797
|
+
* Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
|
|
775
798
|
*/
|
|
776
799
|
rowCount: _propTypes.default.number,
|
|
777
800
|
/**
|
|
@@ -12,7 +12,7 @@ var _xDataGrid = require("@mui/x-data-grid");
|
|
|
12
12
|
var _internals = require("@mui/x-data-grid/internals");
|
|
13
13
|
var _dataGridProDefaultSlotsComponents = require("../constants/dataGridProDefaultSlotsComponents");
|
|
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 &&
|
|
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
|
/**
|
|
17
17
|
* The default values of `DataGridProPropsWithDefaultValue` to inject in the props of DataGridPro.
|
|
18
18
|
*/
|
|
@@ -15,7 +15,7 @@ var _useGridColumnHeaders = require("../hooks/features/columnHeaders/useGridColu
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
const _excluded = ["style", "className", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence"];
|
|
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 &&
|
|
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 Filler = (0, _styles.styled)('div')({
|
|
20
20
|
flex: 1,
|
|
21
21
|
backgroundColor: 'var(--DataGrid-containerBackground)'
|
|
@@ -16,7 +16,7 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
|
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 &&
|
|
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 GridColumnMenuPinningItem(props) {
|
|
21
21
|
const {
|
|
22
22
|
colDef,
|
|
@@ -11,7 +11,7 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
|
11
11
|
var _useGridPrivateApiContext = require("../hooks/utils/useGridPrivateApiContext");
|
|
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 &&
|
|
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 DetailPanel = (0, _styles.styled)('div', {
|
|
16
16
|
name: 'MuiDataGrid',
|
|
17
17
|
slot: 'DetailPanel',
|
|
@@ -15,7 +15,7 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
|
15
15
|
var _gridDetailPanelSelector = require("../hooks/features/detailPanel/gridDetailPanelSelector");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 &&
|
|
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 useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes,
|
|
@@ -14,7 +14,7 @@ var _detailPanel = require("../hooks/features/detailPanel");
|
|
|
14
14
|
var _GridDetailPanel = require("./GridDetailPanel");
|
|
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 &&
|
|
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 = () => {
|
|
19
19
|
const slots = {
|
|
20
20
|
detailPanel: ['detailPanel']
|
|
@@ -12,7 +12,7 @@ var _xDataGrid = require("@mui/x-data-grid");
|
|
|
12
12
|
var _internals = require("@mui/x-data-grid/internals");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 &&
|
|
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 useUtilityClasses = () => {
|
|
17
17
|
const slots = {
|
|
18
18
|
root: ['pinnedRows']
|
|
@@ -3,9 +3,9 @@ import { GridColumnMenuProps } from '@mui/x-data-grid';
|
|
|
3
3
|
import { GridColumnMenuPinningItem } from './GridColumnMenuPinningItem';
|
|
4
4
|
export declare const GRID_COLUMN_MENU_SLOTS_PRO: {
|
|
5
5
|
columnMenuPinningItem: typeof GridColumnMenuPinningItem;
|
|
6
|
-
columnMenuSortItem: typeof import("@mui/x-data-grid
|
|
7
|
-
columnMenuFilterItem: typeof import("@mui/x-data-grid
|
|
8
|
-
columnMenuColumnsItem: typeof import("@mui/x-data-grid
|
|
6
|
+
columnMenuSortItem: typeof import("@mui/x-data-grid").GridColumnMenuSortItem;
|
|
7
|
+
columnMenuFilterItem: typeof import("@mui/x-data-grid").GridColumnMenuFilterItem;
|
|
8
|
+
columnMenuColumnsItem: typeof import("@mui/x-data-grid").GridColumnMenuColumnsItem;
|
|
9
9
|
};
|
|
10
10
|
export declare const GRID_COLUMN_MENU_SLOT_PROPS_PRO: {
|
|
11
11
|
columnMenuPinningItem: {
|
|
@@ -12,7 +12,7 @@ var _xDataGrid = require("@mui/x-data-grid");
|
|
|
12
12
|
var _GridColumnMenuPinningItem = require("./GridColumnMenuPinningItem");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 &&
|
|
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 GRID_COLUMN_MENU_SLOTS_PRO = exports.GRID_COLUMN_MENU_SLOTS_PRO = (0, _extends2.default)({}, _xDataGrid.GRID_COLUMN_MENU_SLOTS, {
|
|
17
17
|
columnMenuPinningItem: _GridColumnMenuPinningItem.GridColumnMenuPinningItem
|
|
18
18
|
});
|
|
@@ -14,7 +14,7 @@ var _internals = require("@mui/x-data-grid/internals");
|
|
|
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 &&
|
|
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
|
isDraggable,
|
|
@@ -15,7 +15,7 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
|
15
15
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 &&
|
|
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 useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes
|
|
@@ -19,7 +19,7 @@ var _GridHeaderFilterClearButton = require("./GridHeaderFilterClearButton");
|
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const _excluded = ["colIndex", "height", "hasFocus", "width", "headerClassName", "colDef", "item", "headerFilterMenuRef", "InputComponentProps", "showClearIcon", "pinnedPosition", "style", "indexInSection", "sectionLength", "gridHasFiller"];
|
|
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 &&
|
|
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 useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
25
25
|
colDef,
|
|
@@ -10,7 +10,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
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 &&
|
|
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
|
const sx = {
|
|
15
15
|
padding: '2px'
|
|
16
16
|
};
|
|
@@ -14,7 +14,7 @@ var _utils = require("@mui/utils");
|
|
|
14
14
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
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 &&
|
|
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 GridHeaderFilterMenu({
|
|
19
19
|
open,
|
|
20
20
|
field,
|
|
@@ -16,7 +16,7 @@ var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
const _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuRef", "disabled"];
|
|
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 &&
|
|
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
|
const sx = {
|
|
21
21
|
width: 22,
|
|
22
22
|
height: 22,
|
|
@@ -10,8 +10,7 @@ import { useDataGridProComponent } from './useDataGridProComponent';
|
|
|
10
10
|
import { useDataGridProProps } from './useDataGridProProps';
|
|
11
11
|
import { getReleaseInfo } from '../utils/releaseInfo';
|
|
12
12
|
import { propValidatorsDataGridPro } from '../internals/propValidation';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const releaseInfo = getReleaseInfo();
|
|
16
15
|
const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProps, ref) {
|
|
17
16
|
const props = useDataGridProProps(inProps);
|
|
@@ -238,6 +237,12 @@ DataGridProRaw.propTypes = {
|
|
|
238
237
|
* @default "cell"
|
|
239
238
|
*/
|
|
240
239
|
editMode: PropTypes.oneOf(['cell', 'row']),
|
|
240
|
+
/**
|
|
241
|
+
* Use if the actual rowCount is not known upfront, but an estimation is available.
|
|
242
|
+
* If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
|
|
243
|
+
* Applicable only with `paginationMode="server"` and when `rowCount="-1"`
|
|
244
|
+
*/
|
|
245
|
+
estimatedRowCount: PropTypes.number,
|
|
241
246
|
/**
|
|
242
247
|
* Unstable features, breaking changes might be introduced.
|
|
243
248
|
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
@@ -338,6 +343,10 @@ DataGridProRaw.propTypes = {
|
|
|
338
343
|
* The grouping column used by the tree data.
|
|
339
344
|
*/
|
|
340
345
|
groupingColDef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
346
|
+
/**
|
|
347
|
+
* Override the height of the header filters.
|
|
348
|
+
*/
|
|
349
|
+
headerFilterHeight: PropTypes.number,
|
|
341
350
|
/**
|
|
342
351
|
* If `true`, enables the data grid filtering on header feature.
|
|
343
352
|
* @default false
|
|
@@ -596,6 +605,11 @@ DataGridProRaw.propTypes = {
|
|
|
596
605
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
597
606
|
*/
|
|
598
607
|
onMenuOpen: PropTypes.func,
|
|
608
|
+
/**
|
|
609
|
+
* Callback fired when the pagination meta has changed.
|
|
610
|
+
* @param {GridPaginationMeta} paginationMeta Updated pagination meta.
|
|
611
|
+
*/
|
|
612
|
+
onPaginationMetaChange: PropTypes.func,
|
|
599
613
|
/**
|
|
600
614
|
* Callback fired when the pagination model has changed.
|
|
601
615
|
* @param {GridPaginationModel} model Updated pagination model.
|
|
@@ -719,6 +733,13 @@ DataGridProRaw.propTypes = {
|
|
|
719
733
|
* @default false
|
|
720
734
|
*/
|
|
721
735
|
pagination: PropTypes.bool,
|
|
736
|
+
/**
|
|
737
|
+
* The extra information about the pagination state of the Data Grid.
|
|
738
|
+
* Only applicable with `paginationMode="server"`.
|
|
739
|
+
*/
|
|
740
|
+
paginationMeta: PropTypes.shape({
|
|
741
|
+
hasNextPage: PropTypes.bool
|
|
742
|
+
}),
|
|
722
743
|
/**
|
|
723
744
|
* Pagination can be processed on the server or client-side.
|
|
724
745
|
* Set it to 'client' if you would like to handle the pagination on the client-side.
|
|
@@ -765,6 +786,7 @@ DataGridProRaw.propTypes = {
|
|
|
765
786
|
/**
|
|
766
787
|
* Set the total number of rows, if it is different from the length of the value `rows` prop.
|
|
767
788
|
* If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
|
|
789
|
+
* Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
|
|
768
790
|
*/
|
|
769
791
|
rowCount: PropTypes.number,
|
|
770
792
|
/**
|
|
@@ -6,8 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { styled } from '@mui/material/styles';
|
|
7
7
|
import { GridBaseColumnHeaders } from '@mui/x-data-grid/internals';
|
|
8
8
|
import { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const Filler = styled('div')({
|
|
12
11
|
flex: 1,
|
|
13
12
|
backgroundColor: 'var(--DataGrid-containerBackground)'
|
|
@@ -7,8 +7,7 @@ import ListItemText from '@mui/material/ListItemText';
|
|
|
7
7
|
import { GridPinnedColumnPosition } from '@mui/x-data-grid';
|
|
8
8
|
import { useGridApiContext } from '../hooks/utils/useGridApiContext';
|
|
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 GridColumnMenuPinningItem(props) {
|
|
13
12
|
const {
|
|
14
13
|
colDef,
|
|
@@ -4,8 +4,7 @@ import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
|
4
4
|
import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
5
5
|
import { gridEditRowsStateSelector, isEventTargetInPortal } from '@mui/x-data-grid/internals';
|
|
6
6
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
const useUtilityClasses = ownerState => {
|
|
10
9
|
const {
|
|
11
10
|
isDraggable,
|
|
@@ -6,8 +6,7 @@ import Box from '@mui/material/Box';
|
|
|
6
6
|
import { useGridSelector, gridFilteredDescendantCountLookupSelector, getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
7
7
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
8
8
|
import { useGridApiContext } from '../hooks/utils/useGridApiContext';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const useUtilityClasses = ownerState => {
|
|
12
11
|
const {
|
|
13
12
|
classes
|
|
@@ -10,8 +10,7 @@ import { fastMemo, useGridPrivateApiContext, gridHeaderFilteringEditFieldSelecto
|
|
|
10
10
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
11
11
|
import { GridHeaderFilterMenuContainer } from './GridHeaderFilterMenuContainer';
|
|
12
12
|
import { GridHeaderFilterClearButton } from './GridHeaderFilterClearButton';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const useUtilityClasses = ownerState => {
|
|
16
15
|
const {
|
|
17
16
|
colDef,
|
|
@@ -7,8 +7,7 @@ import { useGridApiContext, useGridSelector } from '@mui/x-data-grid';
|
|
|
7
7
|
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
8
8
|
import { gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
|
|
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
|
const sx = {
|
|
13
12
|
width: 22,
|
|
14
13
|
height: 22,
|