@mui/x-data-grid-pro 7.0.0-alpha.7 → 7.0.0-alpha.8
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 +175 -49
- package/DataGridPro/DataGrid.js +9 -2
- package/DataGridPro/DataGridPro.js +213 -223
- package/DataGridPro/index.js +39 -3
- package/DataGridPro/package.json +2 -2
- package/DataGridPro/useDataGridProComponent.js +89 -81
- package/DataGridPro/useDataGridProProps.js +23 -14
- package/components/DataGridProVirtualScroller.js +99 -94
- package/components/GridColumnHeaders.js +103 -99
- package/components/GridColumnMenuPinningItem.js +47 -40
- package/components/GridDetailPanel.js +24 -17
- package/components/GridDetailPanelToggleCell.js +41 -34
- package/components/GridProColumnMenu.js +24 -16
- package/components/GridRowReorderCell.js +30 -21
- package/components/GridScrollArea.js +42 -34
- package/components/GridTreeDataGroupingCell.js +47 -41
- package/components/headerFiltering/GridHeaderFilterCell.js +76 -73
- package/components/headerFiltering/GridHeaderFilterClearButton.js +18 -11
- package/components/headerFiltering/GridHeaderFilterMenu.js +44 -37
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +49 -43
- package/components/headerFiltering/index.js +38 -3
- package/components/index.js +60 -6
- package/components/package.json +2 -2
- package/components/reexports.js +24 -1
- package/constants/dataGridProDefaultSlotsComponents.js +19 -12
- package/{node → esm}/DataGridPro/DataGrid.js +2 -9
- package/{node → esm}/DataGridPro/DataGridPro.js +205 -231
- package/esm/DataGridPro/index.js +3 -0
- package/esm/DataGridPro/useDataGridProComponent.js +93 -0
- package/esm/DataGridPro/useDataGridProProps.js +42 -0
- package/{node → esm}/components/DataGridProVirtualScroller.js +94 -99
- package/esm/components/GridColumnHeaders.js +283 -0
- package/esm/components/GridColumnMenuPinningItem.js +91 -0
- package/esm/components/GridDetailPanel.js +61 -0
- package/esm/components/GridDetailPanelToggleCell.js +113 -0
- package/esm/components/GridProColumnMenu.js +32 -0
- package/esm/components/GridRowReorderCell.js +75 -0
- package/esm/components/GridScrollArea.js +135 -0
- package/esm/components/GridTreeDataGroupingCell.js +138 -0
- package/{node → esm}/components/headerFiltering/GridHeaderFilterCell.js +73 -76
- package/esm/components/headerFiltering/GridHeaderFilterClearButton.js +25 -0
- package/esm/components/headerFiltering/GridHeaderFilterMenu.js +89 -0
- package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +95 -0
- package/esm/components/headerFiltering/index.js +3 -0
- package/esm/components/index.js +6 -0
- package/esm/components/reexports.js +1 -0
- package/esm/constants/dataGridProDefaultSlotsComponents.js +13 -0
- package/{node → esm}/hooks/features/columnHeaders/useGridColumnHeaders.js +32 -41
- package/{node → esm}/hooks/features/columnPinning/gridColumnPinningInterface.js +3 -8
- package/esm/hooks/features/columnPinning/gridColumnPinningSelector.js +1 -0
- package/esm/hooks/features/columnPinning/index.js +2 -0
- package/{node → esm}/hooks/features/columnPinning/useGridColumnPinning.js +50 -57
- package/{node → esm}/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +16 -26
- package/esm/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
- package/esm/hooks/features/columnReorder/columnReorderSelector.js +3 -0
- package/esm/hooks/features/columnReorder/index.js +2 -0
- package/{node → esm}/hooks/features/columnReorder/useGridColumnReorder.js +29 -38
- package/esm/hooks/features/columnResize/columnResizeSelector.js +3 -0
- package/esm/hooks/features/columnResize/columnResizeState.js +1 -0
- package/esm/hooks/features/columnResize/gridColumnResizeApi.js +10 -0
- package/esm/hooks/features/columnResize/index.js +3 -0
- package/{node → esm}/hooks/features/columnResize/useGridColumnResize.js +86 -85
- package/esm/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
- package/esm/hooks/features/detailPanel/gridDetailPanelSelector.js +12 -0
- package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +28 -0
- package/esm/hooks/features/detailPanel/index.js +3 -0
- package/{node → esm}/hooks/features/detailPanel/useGridDetailPanel.js +43 -51
- package/esm/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
- package/esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +43 -0
- package/esm/hooks/features/index.js +8 -0
- package/esm/hooks/features/infiniteLoader/useGridInfiniteLoader.js +48 -0
- package/{node → esm}/hooks/features/lazyLoader/useGridLazyLoader.js +18 -25
- package/esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +38 -0
- package/esm/hooks/features/rowPinning/gridRowPinningInterface.js +1 -0
- package/esm/hooks/features/rowPinning/gridRowPinningSelector.js +1 -0
- package/esm/hooks/features/rowPinning/index.js +1 -0
- package/esm/hooks/features/rowPinning/useGridRowPinning.js +54 -0
- package/esm/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +111 -0
- package/esm/hooks/features/rowReorder/gridRowReorderColDef.js +20 -0
- package/esm/hooks/features/rowReorder/index.js +1 -0
- package/{node → esm}/hooks/features/rowReorder/useGridRowReorder.js +19 -28
- package/esm/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +45 -0
- package/esm/hooks/features/treeData/gridTreeDataGroupColDef.js +22 -0
- package/{node → esm}/hooks/features/treeData/gridTreeDataUtils.js +7 -13
- package/esm/hooks/features/treeData/index.js +1 -0
- package/esm/hooks/features/treeData/useGridTreeData.js +18 -0
- package/esm/hooks/features/treeData/useGridTreeDataPreProcessors.js +146 -0
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/utils/useGridApiContext.js +2 -0
- package/esm/hooks/utils/useGridApiRef.js +2 -0
- package/esm/hooks/utils/useGridPrivateApiContext.js +2 -0
- package/esm/hooks/utils/useGridRootProps.js +2 -0
- package/esm/index.js +17 -0
- package/esm/internals/index.js +29 -0
- package/esm/internals/propValidation.js +2 -0
- package/esm/locales.js +1 -0
- package/esm/material/icons.js +17 -0
- package/esm/material/index.js +8 -0
- package/esm/models/dataGridProProps.js +1 -0
- package/esm/models/dataSource.js +1 -0
- package/esm/models/gridApiPro.js +1 -0
- package/esm/models/gridFetchRowsParams.js +1 -0
- package/esm/models/gridGroupingColDefOverride.js +1 -0
- package/esm/models/gridProIconSlotsComponent.js +1 -0
- package/esm/models/gridProSlotProps.js +1 -0
- package/esm/models/gridProSlotsComponent.js +1 -0
- package/esm/models/gridRowOrderChangeParams.js +1 -0
- package/esm/models/gridRowScrollEndParams.js +1 -0
- package/esm/models/gridStatePro.js +1 -0
- package/esm/models/index.js +7 -0
- package/esm/themeAugmentation/index.js +4 -0
- package/esm/themeAugmentation/overrides.js +1 -0
- package/esm/themeAugmentation/props.js +1 -0
- package/esm/typeOverloads/index.js +1 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/esm/typeOverloads/reexports.js +15 -0
- package/{node → esm}/utils/domUtils.js +15 -24
- package/esm/utils/index.js +1 -0
- package/esm/utils/releaseInfo.js +13 -0
- package/{node → esm}/utils/tree/createRowTree.js +7 -14
- package/esm/utils/tree/index.js +1 -0
- package/{node → esm}/utils/tree/insertDataRowInTree.js +19 -25
- package/esm/utils/tree/models.js +1 -0
- package/{node → esm}/utils/tree/removeDataRowFromTree.js +12 -19
- package/{node → esm}/utils/tree/sortRowTree.js +6 -13
- package/{node → esm}/utils/tree/updateRowTree.js +19 -27
- package/{node → esm}/utils/tree/utils.js +26 -38
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +41 -32
- package/hooks/features/columnPinning/gridColumnPinningInterface.js +8 -3
- package/hooks/features/columnPinning/gridColumnPinningSelector.js +8 -1
- package/hooks/features/columnPinning/index.js +27 -2
- package/hooks/features/columnPinning/useGridColumnPinning.js +57 -50
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +26 -16
- package/hooks/features/columnReorder/columnReorderInterfaces.js +5 -1
- package/hooks/features/columnReorder/columnReorderSelector.js +10 -3
- package/hooks/features/columnReorder/index.js +16 -2
- package/hooks/features/columnReorder/useGridColumnReorder.js +38 -29
- package/hooks/features/columnResize/columnResizeSelector.js +10 -3
- package/hooks/features/columnResize/columnResizeState.js +5 -1
- package/hooks/features/columnResize/gridColumnResizeApi.js +7 -1
- package/hooks/features/columnResize/index.js +38 -3
- package/hooks/features/columnResize/useGridColumnResize.js +85 -86
- package/hooks/features/detailPanel/gridDetailPanelInterface.js +5 -1
- package/hooks/features/detailPanel/gridDetailPanelSelector.js +14 -5
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +19 -10
- package/hooks/features/detailPanel/index.js +53 -3
- package/hooks/features/detailPanel/useGridDetailPanel.js +51 -43
- package/hooks/features/detailPanel/useGridDetailPanelCache.js +20 -11
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +28 -18
- package/hooks/features/index.js +82 -8
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +19 -10
- package/hooks/features/lazyLoader/useGridLazyLoader.js +25 -18
- package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +24 -15
- package/hooks/features/rowPinning/gridRowPinningInterface.js +5 -1
- package/hooks/features/rowPinning/gridRowPinningSelector.js +18 -1
- package/hooks/features/rowPinning/index.js +16 -1
- package/hooks/features/rowPinning/useGridRowPinning.js +26 -17
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +40 -31
- package/hooks/features/rowReorder/gridRowReorderColDef.js +12 -5
- package/hooks/features/rowReorder/index.js +16 -1
- package/hooks/features/rowReorder/useGridRowReorder.js +28 -19
- package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +21 -11
- package/hooks/features/treeData/gridTreeDataGroupColDef.js +11 -5
- package/hooks/features/treeData/gridTreeDataUtils.js +13 -7
- package/hooks/features/treeData/index.js +12 -1
- package/hooks/features/treeData/useGridTreeData.js +16 -7
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +50 -41
- package/hooks/index.js +16 -1
- package/hooks/package.json +2 -2
- package/hooks/utils/useGridApiContext.js +8 -2
- package/hooks/utils/useGridApiRef.js +8 -2
- package/hooks/utils/useGridPrivateApiContext.js +8 -2
- package/hooks/utils/useGridRootProps.js +8 -2
- package/index.d.ts +0 -1
- package/index.js +213 -19
- package/internals/index.d.ts +1 -0
- package/internals/index.js +278 -27
- package/internals/package.json +2 -2
- package/internals/propValidation.d.ts +3 -0
- package/internals/propValidation.js +8 -0
- package/legacy/DataGridPro/DataGridPro.js +8 -26
- package/legacy/components/GridDetailPanel.js +2 -3
- package/legacy/components/GridScrollArea.js +1 -1
- package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +1 -1
- package/legacy/hooks/features/treeData/useGridTreeDataPreProcessors.js +2 -2
- package/legacy/index.js +1 -2
- package/legacy/internals/index.js +2 -1
- package/legacy/internals/propValidation.js +9 -0
- package/legacy/locales.js +1 -0
- package/legacy/utils/domUtils.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/locales.d.ts +1 -0
- package/{node/utils/index.js → locales.js} +4 -4
- package/material/icons.js +15 -7
- package/material/index.js +13 -6
- package/material/package.json +2 -2
- package/models/dataGridProProps.js +5 -1
- package/models/dataSource.d.ts +16 -16
- package/models/dataSource.js +5 -1
- package/models/gridApiPro.js +5 -1
- package/models/gridFetchRowsParams.js +5 -1
- package/models/gridGroupingColDefOverride.js +5 -1
- package/models/gridProIconSlotsComponent.js +5 -1
- package/models/gridProSlotProps.js +5 -1
- package/models/gridProSlotsComponent.js +5 -1
- package/models/gridRowOrderChangeParams.js +5 -1
- package/models/gridRowScrollEndParams.js +5 -1
- package/models/gridStatePro.js +5 -1
- package/models/index.js +82 -7
- package/models/package.json +2 -2
- package/modern/DataGridPro/DataGridPro.js +8 -26
- package/modern/components/GridDetailPanel.js +2 -3
- package/modern/components/GridScrollArea.js +1 -1
- package/modern/hooks/features/columnPinning/useGridColumnPinning.js +1 -1
- package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.js +2 -2
- package/modern/index.js +1 -2
- package/modern/internals/index.js +2 -1
- package/modern/internals/propValidation.js +2 -0
- package/modern/locales.js +1 -0
- package/modern/utils/domUtils.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
- package/themeAugmentation/index.js +27 -4
- package/themeAugmentation/overrides.js +5 -1
- package/themeAugmentation/package.json +2 -2
- package/themeAugmentation/props.js +5 -1
- package/typeOverloads/index.js +16 -1
- package/typeOverloads/modules.js +5 -1
- package/typeOverloads/package.json +2 -2
- package/typeOverloads/reexports.js +25 -14
- package/utils/domUtils.js +24 -15
- package/utils/index.js +16 -1
- package/utils/package.json +2 -2
- package/utils/releaseInfo.js +12 -5
- package/utils/tree/createRowTree.js +14 -7
- package/utils/tree/index.js +12 -1
- package/utils/tree/insertDataRowInTree.js +25 -19
- package/utils/tree/models.js +5 -1
- package/utils/tree/removeDataRowFromTree.js +19 -12
- package/utils/tree/sortRowTree.js +13 -6
- package/utils/tree/updateRowTree.js +27 -19
- package/utils/tree/utils.js +38 -26
- package/node/DataGridPro/index.js +0 -39
- package/node/DataGridPro/useDataGridProComponent.js +0 -101
- package/node/DataGridPro/useDataGridProProps.js +0 -51
- package/node/components/GridColumnHeaders.js +0 -287
- package/node/components/GridColumnMenuPinningItem.js +0 -98
- package/node/components/GridDetailPanel.js +0 -70
- package/node/components/GridDetailPanelToggleCell.js +0 -120
- package/node/components/GridProColumnMenu.js +0 -40
- package/node/components/GridRowReorderCell.js +0 -84
- package/node/components/GridScrollArea.js +0 -143
- package/node/components/GridTreeDataGroupingCell.js +0 -144
- package/node/components/headerFiltering/GridHeaderFilterClearButton.js +0 -32
- package/node/components/headerFiltering/GridHeaderFilterMenu.js +0 -96
- package/node/components/headerFiltering/GridHeaderFilterMenuContainer.js +0 -101
- package/node/components/headerFiltering/index.js +0 -38
- package/node/components/index.js +0 -60
- package/node/components/reexports.js +0 -24
- package/node/constants/dataGridProDefaultSlotsComponents.js +0 -20
- package/node/hooks/features/columnPinning/gridColumnPinningSelector.js +0 -8
- package/node/hooks/features/columnPinning/index.js +0 -27
- package/node/hooks/features/columnReorder/columnReorderInterfaces.js +0 -5
- package/node/hooks/features/columnReorder/columnReorderSelector.js +0 -10
- package/node/hooks/features/columnReorder/index.js +0 -16
- package/node/hooks/features/columnResize/columnResizeSelector.js +0 -10
- package/node/hooks/features/columnResize/columnResizeState.js +0 -5
- package/node/hooks/features/columnResize/gridColumnResizeApi.js +0 -16
- package/node/hooks/features/columnResize/index.js +0 -38
- package/node/hooks/features/detailPanel/gridDetailPanelInterface.js +0 -5
- package/node/hooks/features/detailPanel/gridDetailPanelSelector.js +0 -21
- package/node/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +0 -37
- package/node/hooks/features/detailPanel/index.js +0 -53
- package/node/hooks/features/detailPanel/useGridDetailPanelCache.js +0 -66
- package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +0 -53
- package/node/hooks/features/index.js +0 -82
- package/node/hooks/features/infiniteLoader/useGridInfiniteLoader.js +0 -57
- package/node/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +0 -47
- package/node/hooks/features/rowPinning/gridRowPinningInterface.js +0 -5
- package/node/hooks/features/rowPinning/gridRowPinningSelector.js +0 -18
- package/node/hooks/features/rowPinning/index.js +0 -16
- package/node/hooks/features/rowPinning/useGridRowPinning.js +0 -63
- package/node/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +0 -120
- package/node/hooks/features/rowReorder/gridRowReorderColDef.js +0 -27
- package/node/hooks/features/rowReorder/index.js +0 -16
- package/node/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +0 -55
- package/node/hooks/features/treeData/gridTreeDataGroupColDef.js +0 -28
- package/node/hooks/features/treeData/index.js +0 -12
- package/node/hooks/features/treeData/useGridTreeData.js +0 -27
- package/node/hooks/features/treeData/useGridTreeDataPreProcessors.js +0 -155
- package/node/hooks/index.js +0 -16
- package/node/hooks/utils/useGridApiContext.js +0 -8
- package/node/hooks/utils/useGridApiRef.js +0 -8
- package/node/hooks/utils/useGridPrivateApiContext.js +0 -8
- package/node/hooks/utils/useGridRootProps.js +0 -8
- package/node/index.js +0 -231
- package/node/internals/index.js +0 -267
- package/node/material/icons.js +0 -25
- package/node/material/index.js +0 -15
- package/node/models/dataGridProProps.js +0 -5
- package/node/models/dataSource.js +0 -5
- package/node/models/gridApiPro.js +0 -5
- package/node/models/gridFetchRowsParams.js +0 -5
- package/node/models/gridGroupingColDefOverride.js +0 -5
- package/node/models/gridProIconSlotsComponent.js +0 -5
- package/node/models/gridProSlotProps.js +0 -5
- package/node/models/gridProSlotsComponent.js +0 -5
- package/node/models/gridRowOrderChangeParams.js +0 -5
- package/node/models/gridRowScrollEndParams.js +0 -5
- package/node/models/gridStatePro.js +0 -5
- package/node/models/index.js +0 -82
- package/node/themeAugmentation/index.js +0 -27
- package/node/themeAugmentation/overrides.js +0 -5
- package/node/themeAugmentation/props.js +0 -5
- package/node/typeOverloads/index.js +0 -16
- package/node/typeOverloads/modules.js +0 -5
- package/node/typeOverloads/reexports.js +0 -26
- package/node/utils/releaseInfo.js +0 -20
- package/node/utils/tree/index.js +0 -12
- package/node/utils/tree/models.js +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,90 @@
|
|
|
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.0.0-alpha.8
|
|
7
|
+
|
|
8
|
+
_Jan 11, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- ⏰ Support date-fns v3 (#11659) @LukasTy
|
|
13
|
+
Pickers support both v2 and v3 of date-fns. For v3 use `AdapterDateFnsV3`.
|
|
14
|
+
```js
|
|
15
|
+
// with date-fns v2.x
|
|
16
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
|
17
|
+
import de from 'date-fns/locale/de';
|
|
18
|
+
```
|
|
19
|
+
```js
|
|
20
|
+
// with date-fns v3.x
|
|
21
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
|
|
22
|
+
import { de } from 'date-fns/locale/de';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The import path for locales has been changed:
|
|
30
|
+
|
|
31
|
+
```diff
|
|
32
|
+
-import { enUS } from '@mui/x-data-grid';
|
|
33
|
+
+import { enUS } from '@mui/x-data-grid/locales';
|
|
34
|
+
|
|
35
|
+
-import { enUS } from '@mui/x-data-grid-pro';
|
|
36
|
+
+import { enUS } from '@mui/x-data-grid-pro/locales';
|
|
37
|
+
|
|
38
|
+
-import { enUS } from '@mui/x-data-grid-premium';
|
|
39
|
+
+import { enUS } from '@mui/x-data-grid-premium/locales';
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-data-grid@7.0.0-alpha.8`
|
|
43
|
+
|
|
44
|
+
- [DataGrid] Stop exporting locales from the package root (#11614) @cherniavskii
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-data-grid-pro@7.0.0-alpha.8` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
47
|
+
|
|
48
|
+
Same changes as in `@mui/x-data-grid@7.0.0-alpha.8`.
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-data-grid-premium@7.0.0-alpha.8` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.8`.
|
|
53
|
+
|
|
54
|
+
### Date Pickers
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-date-pickers@7.0.0-alpha.8`
|
|
57
|
+
|
|
58
|
+
- [pickers] Add `date-fns@3.x` adapter (#11462) @LukasTy
|
|
59
|
+
- [pickers] Avoid deeper than 2nd level imports (#11588) @LukasTy
|
|
60
|
+
- [pickers] Fix clearable behavior blocking focus return to `OpenPickerButton` (#11642) @noraleonte
|
|
61
|
+
- [pickers] Move `DateRange` to `@mui/x-date-pickers-pro/models` (#11611) @flaviendelangle
|
|
62
|
+
- [l10n] Add missing Danish (da-DK) locale export (#11640) @etlos
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-date-pickers-pro@7.0.0-alpha.8` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-alpha.8`.
|
|
67
|
+
|
|
68
|
+
### Tree View / `@mui/x-tree-view@7.0.0-alpha.8`
|
|
69
|
+
|
|
70
|
+
- [tree view] Cleanup `onKeyDown` handler (#11481) @flaviendelangle
|
|
71
|
+
- [tree view] Define the parameters used by each plugin to avoid listing them in each component (#11473) @flaviendelangle
|
|
72
|
+
|
|
73
|
+
### Docs
|
|
74
|
+
|
|
75
|
+
- [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11628) @LukasTy
|
|
76
|
+
- [docs] Improve `git diff` format @oliviertassinari
|
|
77
|
+
- [docs] Push up the MUI X brand (#11533) @oliviertassinari
|
|
78
|
+
- [docs] Remove old data grid translation files (#11646) @cherniavskii
|
|
79
|
+
- [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
|
|
80
|
+
- [docs] Improve charts landing page (#11570) @oliviertassinari
|
|
81
|
+
|
|
82
|
+
### Core
|
|
83
|
+
|
|
84
|
+
- [core] Lock `jsdom` version (#11652) @cherniavskii
|
|
85
|
+
- [core] Remove PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD (#11608) @oliviertassinari
|
|
86
|
+
- [core] Simplify isSsr logic (#11606) @oliviertassinari
|
|
87
|
+
- [core] Sync playwright cache between MUI X and Material UI (#11607) @oliviertassinari
|
|
88
|
+
- [core] Use MUI X official name in errors (#11645) @oliviertassinari
|
|
89
|
+
|
|
6
90
|
## 7.0.0-alpha.7
|
|
7
91
|
|
|
8
92
|
_Jan 5, 2024_
|
|
@@ -28,7 +112,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
28
112
|
label: 'Node 2',
|
|
29
113
|
},
|
|
30
114
|
];
|
|
31
|
-
|
|
115
|
+
|
|
32
116
|
<RichTreeView
|
|
33
117
|
items={MUI_X_PRODUCTS}
|
|
34
118
|
defaultCollapseIcon={<ExpandMoreIcon />}
|
|
@@ -88,10 +172,10 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.7`.
|
|
|
88
172
|
<TreeView
|
|
89
173
|
- onNodeToggle={handleExpansionChange}
|
|
90
174
|
+ onExpandedNodesChange={handleExpansionChange}
|
|
91
|
-
|
|
175
|
+
|
|
92
176
|
- expanded={expandedNodes}
|
|
93
177
|
+ expandedNodes={expandedNodes}
|
|
94
|
-
|
|
178
|
+
|
|
95
179
|
- defaultExpanded={defaultExpandedNodes}
|
|
96
180
|
+ defaultExpandedNodes={defaultExpandedNodes}
|
|
97
181
|
/>
|
|
@@ -274,10 +358,10 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.5`.
|
|
|
274
358
|
The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsProps` with `SlotProps`.
|
|
275
359
|
|
|
276
360
|
```diff
|
|
277
|
-
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
+
|
|
361
|
+
-DateCalendarSlotsComponent
|
|
362
|
+
-DateCalendarSlotsComponentsProps
|
|
363
|
+
+DateCalendarSlots
|
|
364
|
+
+DateCalendarSlotProps
|
|
281
365
|
```
|
|
282
366
|
|
|
283
367
|
- Move `inputRef` inside the props passed to the field hooks
|
|
@@ -285,26 +369,26 @@ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsP
|
|
|
285
369
|
The field hooks now only receive the props instead of an object containing both the props and the `inputRef`.
|
|
286
370
|
|
|
287
371
|
```diff
|
|
288
|
-
-
|
|
289
|
-
-
|
|
290
|
-
+
|
|
372
|
+
-const { inputRef, ...otherProps } = props
|
|
373
|
+
-const fieldResponse = useDateField({ props: otherProps, inputRef });
|
|
374
|
+
+const fieldResponse = useDateField(props);
|
|
291
375
|
```
|
|
292
376
|
|
|
293
377
|
If you are using a multi input range field hook, the same applies to `startInputRef` and `endInputRef` params
|
|
294
378
|
|
|
295
379
|
```diff
|
|
296
|
-
-
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
-
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
305
|
-
+
|
|
306
|
-
+
|
|
307
|
-
|
|
380
|
+
-const { inputRef: startInputRef, ...otherStartTextFieldProps } = startTextFieldProps
|
|
381
|
+
-const { inputRef: endInputRef, ...otherEndTextFieldProps } = endTextFieldProps
|
|
382
|
+
|
|
383
|
+
const fieldResponse = useMultiInputDateRangeField({
|
|
384
|
+
sharedProps,
|
|
385
|
+
- startTextFieldProps: otherStartTextFieldProps,
|
|
386
|
+
- endTextFieldProps: otherEndTextFieldProps,
|
|
387
|
+
- startInputRef
|
|
388
|
+
- endInputRef,
|
|
389
|
+
+ startTextFieldProps,
|
|
390
|
+
+ endTextFieldProps
|
|
391
|
+
});
|
|
308
392
|
```
|
|
309
393
|
|
|
310
394
|
- Rename the ref returned by the field hooks to `inputRef`
|
|
@@ -313,26 +397,26 @@ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsP
|
|
|
313
397
|
This ref was previously named `ref` and has been renamed `inputRef` for extra clarity.
|
|
314
398
|
|
|
315
399
|
```diff
|
|
316
|
-
|
|
400
|
+
const fieldResponse = useDateField(props);
|
|
317
401
|
|
|
318
|
-
-
|
|
319
|
-
+
|
|
402
|
+
-return <input ref={fieldResponse.ref} />
|
|
403
|
+
+return <input ref={fieldResponse.inputRef} />
|
|
320
404
|
```
|
|
321
405
|
|
|
322
406
|
If you are using a multi input range field hook, the same applies to the ref in the `startDate` and `endDate` objects
|
|
323
407
|
|
|
324
408
|
```diff
|
|
325
|
-
|
|
409
|
+
const fieldResponse = useDateField(props);
|
|
326
410
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
-
|
|
330
|
-
+
|
|
331
|
-
|
|
332
|
-
-
|
|
333
|
-
+
|
|
334
|
-
|
|
335
|
-
|
|
411
|
+
return (
|
|
412
|
+
<div>
|
|
413
|
+
- <input ref={fieldResponse.startDate.ref} />
|
|
414
|
+
+ <input ref={fieldResponse.startDate.inputRef} />
|
|
415
|
+
<span>–</span>
|
|
416
|
+
- <input ref={fieldResponse.endDate.ref} />
|
|
417
|
+
+ <input ref={fieldResponse.endDate.inputRef} />
|
|
418
|
+
</div>
|
|
419
|
+
)
|
|
336
420
|
```
|
|
337
421
|
|
|
338
422
|
- Restructure the API of `useClearableField`
|
|
@@ -342,23 +426,23 @@ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsP
|
|
|
342
426
|
You should now be able to directly pass the returned value from your field hook (e.g: `useDateField`) to `useClearableField`
|
|
343
427
|
|
|
344
428
|
```diff
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
-
|
|
348
|
-
-
|
|
349
|
-
-
|
|
350
|
-
-
|
|
351
|
-
-
|
|
352
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
429
|
+
const fieldResponse = useDateField(props);
|
|
430
|
+
|
|
431
|
+
-const { InputProps, onClear, clearable, slots, slotProps, ...otherFieldProps } = fieldResponse
|
|
432
|
+
-const { InputProps: ProcessedInputProps, fieldProps: processedFieldProps } = useClearableField({
|
|
433
|
+
- fieldProps: otherFieldProps,
|
|
434
|
+
- InputProps,
|
|
435
|
+
- clearable,
|
|
436
|
+
- onClear,
|
|
437
|
+
- slots,
|
|
438
|
+
- slotProps,
|
|
439
|
+
-});
|
|
356
440
|
-
|
|
357
|
-
-
|
|
441
|
+
- return <MyCustomTextField {...processedFieldProps} InputProps={ProcessedInputProps} />
|
|
358
442
|
|
|
359
|
-
+
|
|
443
|
+
+const processedFieldProps = useClearableField(fieldResponse);
|
|
360
444
|
+
|
|
361
|
-
+
|
|
445
|
+
+return <MyCustomTextField {...processedFieldProps} />
|
|
362
446
|
```
|
|
363
447
|
|
|
364
448
|
#### `@mui/x-date-pickers@7.0.0-alpha.5`
|
|
@@ -1340,6 +1424,48 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
1340
1424
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
1341
1425
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
1342
1426
|
|
|
1427
|
+
## 6.19.0
|
|
1428
|
+
|
|
1429
|
+
_Jan 11, 2024_
|
|
1430
|
+
|
|
1431
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
1432
|
+
|
|
1433
|
+
- ⏰ Support date-fns v3 (#11659) @LukasTy
|
|
1434
|
+
Pickers support both v2 and v3 of date-fns. For v3 use `AdapterDateFnsV3`.
|
|
1435
|
+
```js
|
|
1436
|
+
// with date-fns v2.x
|
|
1437
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
|
1438
|
+
import de from 'date-fns/locale/de';
|
|
1439
|
+
```
|
|
1440
|
+
```js
|
|
1441
|
+
// with date-fns v3.x
|
|
1442
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
|
|
1443
|
+
import { de } from 'date-fns/locale/de';
|
|
1444
|
+
```
|
|
1445
|
+
|
|
1446
|
+
### Date Pickers
|
|
1447
|
+
|
|
1448
|
+
#### `@mui/x-date-pickers@6.19.0`
|
|
1449
|
+
|
|
1450
|
+
- [pickers] Add date-fns@3.x adapter (#11659) @LukasTy
|
|
1451
|
+
- [pickers] Fix clearable behavior blocking focus return to `OpenPickerButton` (#11643) @noraleonte
|
|
1452
|
+
- [l10n] Add missing Danish (da-DK) locale export (#11641) @etlos
|
|
1453
|
+
|
|
1454
|
+
#### `@mui/x-date-pickers-pro@6.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
1455
|
+
|
|
1456
|
+
Same changes as in `@mui/x-date-pickers@6.19.0`.
|
|
1457
|
+
|
|
1458
|
+
### Docs
|
|
1459
|
+
|
|
1460
|
+
- [docs] Add missing component @oliviertassinari
|
|
1461
|
+
- [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11637) @LukasTy
|
|
1462
|
+
- [docs] Push up the MUI X brand (#11533) @oliviertassinari
|
|
1463
|
+
- [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
|
|
1464
|
+
- [docs] Add demo to the charts overview page (#11586) @danilo-leal
|
|
1465
|
+
- [docs] Fix 404 links in the docs @oliviertassinari
|
|
1466
|
+
- [docs] Improve landing page (#11570) @oliviertassinari
|
|
1467
|
+
- [docs] Give a general revision to the docs (#11249) @danilo-leal
|
|
1468
|
+
|
|
1343
1469
|
## 6.18.7
|
|
1344
1470
|
|
|
1345
1471
|
_Jan 5, 2024_
|
package/DataGridPro/DataGrid.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DataGrid = DataGrid;
|
|
7
|
+
exports.DataGridPremium = DataGridPremium;
|
|
1
8
|
/**
|
|
2
9
|
* @deprecated Import DataGridPro instead.
|
|
3
10
|
*/
|
|
4
|
-
|
|
11
|
+
function DataGrid() {
|
|
5
12
|
if (process.env.NODE_ENV === 'production') {
|
|
6
13
|
return null;
|
|
7
14
|
}
|
|
@@ -11,7 +18,7 @@ export function DataGrid() {
|
|
|
11
18
|
/**
|
|
12
19
|
* @deprecated Import DataGridPro instead.
|
|
13
20
|
*/
|
|
14
|
-
|
|
21
|
+
function DataGridPremium() {
|
|
15
22
|
if (process.env.NODE_ENV === 'production') {
|
|
16
23
|
return null;
|
|
17
24
|
}
|