@mui/x-date-pickers 7.0.0-alpha.2 → 7.0.0-alpha.3
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/AdapterDateFns/AdapterDateFns.js +10 -14
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
- package/AdapterDayjs/AdapterDayjs.js +11 -8
- package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.js +29 -16
- package/AdapterMoment/AdapterMoment.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.js +14 -14
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +0 -1
- package/AdapterMomentHijri/AdapterMomentHijri.js +1 -24
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +0 -2
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -26
- package/CHANGELOG.md +241 -0
- package/DateCalendar/DateCalendar.js +2 -2
- package/DateCalendar/DayCalendar.d.ts +3 -3
- package/DatePicker/DatePicker.js +2 -2
- package/DateTimePicker/DateTimePicker.js +2 -2
- package/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/MobileDatePicker/MobileDatePicker.js +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +3 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
- package/PickersShortcuts/PickersShortcuts.d.ts +1 -1
- package/PickersShortcuts/PickersShortcuts.js +1 -1
- package/README.md +0 -1
- package/StaticDatePicker/StaticDatePicker.js +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/index.js +1 -1
- package/internals/components/PickersTextField/Outline.d.ts +2 -0
- package/internals/components/PickersTextField/Outline.js +99 -0
- package/internals/components/PickersTextField/PickersInput.d.ts +4 -0
- package/internals/components/PickersTextField/PickersInput.js +264 -0
- package/internals/components/PickersTextField/PickersInput.types.d.ts +30 -0
- package/internals/components/PickersTextField/PickersInput.types.js +1 -0
- package/internals/components/PickersTextField/PickersTextField.d.ts +3 -0
- package/internals/components/PickersTextField/PickersTextField.js +120 -0
- package/internals/components/PickersTextField/PickersTextField.types.d.ts +18 -0
- package/internals/components/PickersTextField/PickersTextField.types.js +1 -0
- package/internals/components/PickersTextField/index.d.ts +1 -0
- package/internals/components/PickersTextField/index.js +1 -0
- package/internals/components/PickersTextField/pickersTextFieldClasses.d.ts +42 -0
- package/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
- package/internals/hooks/useField/useField.utils.js +23 -10
- package/internals/hooks/usePicker/usePickerValue.js +2 -6
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +2 -2
- package/legacy/AdapterDateFns/AdapterDateFns.js +10 -14
- package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
- package/legacy/AdapterDayjs/AdapterDayjs.js +11 -8
- package/legacy/AdapterLuxon/AdapterLuxon.js +30 -17
- package/legacy/AdapterMoment/AdapterMoment.js +326 -320
- package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +4 -25
- package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -30
- package/legacy/DateCalendar/DateCalendar.js +2 -2
- package/legacy/DatePicker/DatePicker.js +2 -2
- package/legacy/DateTimePicker/DateTimePicker.js +2 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/legacy/MobileDatePicker/MobileDatePicker.js +2 -2
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
- package/legacy/PickersShortcuts/PickersShortcuts.js +2 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +2 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internals/components/PickersTextField/Outline.js +100 -0
- package/legacy/internals/components/PickersTextField/PickersInput.js +273 -0
- package/legacy/internals/components/PickersTextField/PickersInput.types.js +1 -0
- package/legacy/internals/components/PickersTextField/PickersTextField.js +129 -0
- package/legacy/internals/components/PickersTextField/PickersTextField.types.js +1 -0
- package/legacy/internals/components/PickersTextField/index.js +1 -0
- package/legacy/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
- package/legacy/internals/hooks/useField/useField.utils.js +23 -10
- package/legacy/internals/hooks/usePicker/usePickerValue.js +2 -6
- package/locales/beBY.d.ts +18 -5
- package/locales/caES.d.ts +18 -5
- package/locales/csCZ.d.ts +18 -5
- package/locales/daDK.d.ts +18 -5
- package/locales/deDE.d.ts +18 -5
- package/locales/elGR.d.ts +18 -5
- package/locales/enUS.d.ts +18 -5
- package/locales/esES.d.ts +18 -5
- package/locales/eu.d.ts +18 -5
- package/locales/faIR.d.ts +18 -5
- package/locales/fiFI.d.ts +18 -5
- package/locales/frFR.d.ts +18 -5
- package/locales/heIL.d.ts +18 -5
- package/locales/huHU.d.ts +18 -5
- package/locales/isIS.d.ts +18 -5
- package/locales/itIT.d.ts +18 -5
- package/locales/jaJP.d.ts +18 -5
- package/locales/koKR.d.ts +18 -5
- package/locales/kzKZ.d.ts +18 -5
- package/locales/mk.d.ts +18 -5
- package/locales/nbNO.d.ts +18 -5
- package/locales/nlNL.d.ts +18 -5
- package/locales/plPL.d.ts +18 -5
- package/locales/ptBR.d.ts +18 -5
- package/locales/roRO.d.ts +18 -5
- package/locales/ruRU.d.ts +18 -5
- package/locales/skSK.d.ts +18 -5
- package/locales/svSE.d.ts +18 -5
- package/locales/trTR.d.ts +18 -5
- package/locales/ukUA.d.ts +18 -5
- package/locales/urPK.d.ts +18 -5
- package/locales/utils/getPickersLocalization.d.ts +18 -5
- package/locales/utils/pickersLocaleTextApi.d.ts +18 -5
- package/locales/viVN.d.ts +18 -5
- package/locales/zhCN.d.ts +18 -5
- package/locales/zhHK.d.ts +18 -5
- package/modern/AdapterDateFns/AdapterDateFns.js +10 -14
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
- package/modern/AdapterDayjs/AdapterDayjs.js +11 -8
- package/modern/AdapterLuxon/AdapterLuxon.js +28 -16
- package/modern/AdapterMoment/AdapterMoment.js +14 -14
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -24
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -26
- package/modern/DateCalendar/DateCalendar.js +2 -2
- package/modern/DatePicker/DatePicker.js +2 -2
- package/modern/DateTimePicker/DateTimePicker.js +2 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/modern/MobileDatePicker/MobileDatePicker.js +2 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
- package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +2 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internals/components/PickersTextField/Outline.js +99 -0
- package/modern/internals/components/PickersTextField/PickersInput.js +264 -0
- package/modern/internals/components/PickersTextField/PickersInput.types.js +1 -0
- package/modern/internals/components/PickersTextField/PickersTextField.js +119 -0
- package/modern/internals/components/PickersTextField/PickersTextField.types.js +1 -0
- package/modern/internals/components/PickersTextField/index.js +1 -0
- package/modern/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
- package/modern/internals/hooks/useField/useField.utils.js +23 -10
- package/modern/internals/hooks/usePicker/usePickerValue.js +2 -6
- package/node/AdapterDateFns/AdapterDateFns.js +10 -14
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
- package/node/AdapterDayjs/AdapterDayjs.js +10 -7
- package/node/AdapterLuxon/AdapterLuxon.js +28 -16
- package/node/AdapterMoment/AdapterMoment.js +14 -14
- package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -24
- package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -26
- package/node/DateCalendar/DateCalendar.js +2 -2
- package/node/DatePicker/DatePicker.js +2 -2
- package/node/DateTimePicker/DateTimePicker.js +2 -2
- package/node/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/node/MobileDatePicker/MobileDatePicker.js +2 -2
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
- package/node/PickersShortcuts/PickersShortcuts.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +2 -2
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/components/PickersTextField/Outline.js +108 -0
- package/node/internals/components/PickersTextField/PickersInput.js +272 -0
- package/node/internals/components/PickersTextField/PickersInput.types.js +5 -0
- package/node/internals/components/PickersTextField/PickersTextField.js +127 -0
- package/node/internals/components/PickersTextField/PickersTextField.types.js +5 -0
- package/node/internals/components/PickersTextField/index.js +12 -0
- package/node/internals/components/PickersTextField/pickersTextFieldClasses.js +17 -0
- package/node/internals/hooks/useField/useField.utils.js +23 -10
- package/node/internals/hooks/usePicker/usePickerValue.js +2 -6
- package/package.json +2 -2
- package/internals/components/FakeTextField/FakeTextField.d.ts +0 -22
- package/internals/components/FakeTextField/FakeTextField.js +0 -44
- package/internals/components/FakeTextField/index.d.ts +0 -1
- package/internals/components/FakeTextField/index.js +0 -1
- package/legacy/internals/components/FakeTextField/FakeTextField.js +0 -49
- package/legacy/internals/components/FakeTextField/index.js +0 -1
- package/modern/internals/components/FakeTextField/FakeTextField.js +0 -44
- package/modern/internals/components/FakeTextField/index.js +0 -1
- package/node/internals/components/FakeTextField/FakeTextField.js +0 -52
- package/node/internals/components/FakeTextField/index.js +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,188 @@
|
|
|
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.3
|
|
7
|
+
|
|
8
|
+
_Dec 4, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Support localized start of the week on pickers' `AdapterLuxon`
|
|
13
|
+
|
|
14
|
+
When using Luxon 3.4.4 or higher, the start of the week will be defined by the date locale (e.g.: Sunday for `en-US`, Monday for `fr-FR`).
|
|
15
|
+
|
|
16
|
+
- 📈 Fix a lot of Charts package issues
|
|
17
|
+
- 🎉 The Data Grid features Cell selection and Clipboard paste are now stable
|
|
18
|
+
- 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
|
|
19
|
+
- 🐞 Bugfixes
|
|
20
|
+
- 📚 Documentation improvements
|
|
21
|
+
|
|
22
|
+
### Data Grid
|
|
23
|
+
|
|
24
|
+
#### Breaking changes
|
|
25
|
+
|
|
26
|
+
- The clipboard paste feature is now enabled by default. The flag `clipboardPaste` is no longer needed to be passed to the `experimentalFeatures` prop.
|
|
27
|
+
|
|
28
|
+
- The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
|
|
29
|
+
|
|
30
|
+
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
|
|
31
|
+
|
|
32
|
+
- The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
|
|
33
|
+
|
|
34
|
+
- The `GridPreferencesPanel` component is not exported anymore as it wasn't meant to be used outside of the Data Grid.
|
|
35
|
+
|
|
36
|
+
- The `unstable_` prefix has been removed from the cell selection props listed below.
|
|
37
|
+
|
|
38
|
+
| Old name | New name |
|
|
39
|
+
| :------------------------------------ | :--------------------------- |
|
|
40
|
+
| `unstable_cellSelection` | `cellSelection` |
|
|
41
|
+
| `unstable_cellSelectionModel` | `cellSelectionModel` |
|
|
42
|
+
| `unstable_onCellSelectionModelChange` | `onCellSelectionModelChange` |
|
|
43
|
+
|
|
44
|
+
- The `unstable_` prefix has been removed from the cell selection API methods listed below.
|
|
45
|
+
|
|
46
|
+
| Old name | New name |
|
|
47
|
+
| :--------------------------------- | :------------------------ |
|
|
48
|
+
| `unstable_getCellSelectionModel` | `getCellSelectionModel` |
|
|
49
|
+
| `unstable_getSelectedCellsAsArray` | `getSelectedCellsAsArray` |
|
|
50
|
+
| `unstable_isCellSelected` | `isCellSelected` |
|
|
51
|
+
| `unstable_selectCellRange` | `selectCellRange` |
|
|
52
|
+
| `unstable_setCellSelectionModel` | `setCellSelectionModel` |
|
|
53
|
+
|
|
54
|
+
- The Quick Filter now ignores hidden columns by default.
|
|
55
|
+
See [including hidden columns](https://next.mui.com/x/react-data-grid/filtering/quick-filter/#including-hidden-columns) section for more details.
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-data-grid@7.0.0-alpha.3`
|
|
58
|
+
|
|
59
|
+
- [DataGrid] Fix cell editing adding a leading "v" on paste (#9205) @prasad5795
|
|
60
|
+
- [DataGrid] Exclude hidden columns from quick filtering by default (#11229) @cherniavskii
|
|
61
|
+
- [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11000) @gitstart
|
|
62
|
+
- [DataGrid] Fix handling of event target in portal (#11174) @cherniavskii
|
|
63
|
+
- [DataGrid] Remove deprecated constants (#11233) @michelengelen
|
|
64
|
+
- [DataGrid] Remove the `preferencesPanel` slot (#11228) @cherniavskii
|
|
65
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#10856) @Kristiqn95
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-data-grid-pro@7.0.0-alpha.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-data-grid@7.0.0-alpha.3`.
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-data-grid-premium@7.0.0-alpha.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.3`, plus:
|
|
74
|
+
|
|
75
|
+
- [DataGridPremium] Fix aggregated column ignoring column definition changes (#11129) @cherniavskii
|
|
76
|
+
- [DataGridPremium] Make Cell selection feature stable (#11246) @MBilalShafi
|
|
77
|
+
- [DataGridPremium] Make Clipboard paste feature stable (#11248) @MBilalShafi
|
|
78
|
+
|
|
79
|
+
### Date Pickers
|
|
80
|
+
|
|
81
|
+
#### Breaking changes
|
|
82
|
+
|
|
83
|
+
- The Date and Time Pickers now use the localized week when using `AdapterLuxon` and Luxon v3.4.4 or higher is installed.
|
|
84
|
+
This new behavior allows `AdapterLuxon` to have the same behavior as the other adapters.
|
|
85
|
+
If you want to keep the start of the week on Monday even if your locale says otherwise, you can hardcode the week settings as follows:
|
|
86
|
+
The Firefox browser currently does not support this behavior because the [getWeekInfo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) API is not yet implemented.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import { Settings } from 'luxon';
|
|
90
|
+
|
|
91
|
+
Settings.defaultWeekSettings = {
|
|
92
|
+
firstDay: 1,
|
|
93
|
+
minimalDays: Info.getMinimumDaysInFirstWeek(),
|
|
94
|
+
weekend: [6, 7],
|
|
95
|
+
};
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- Add new parameters to the `shortcuts` slot `onChange` callback
|
|
99
|
+
|
|
100
|
+
The `onChange` callback fired when selecting a shortcut now requires two new parameters (previously they were optional):
|
|
101
|
+
|
|
102
|
+
- The [`changeImportance`](/x/react-date-pickers/shortcuts/#behavior-when-selecting-a-shortcut) of the shortcut.
|
|
103
|
+
- The `item` containing the entire shortcut object.
|
|
104
|
+
|
|
105
|
+
```diff
|
|
106
|
+
const CustomShortcuts = (props) => {
|
|
107
|
+
return (
|
|
108
|
+
<React.Fragment>
|
|
109
|
+
{props.items.map(item => {
|
|
110
|
+
const value = item.getValue({ isValid: props.isValid });
|
|
111
|
+
return (
|
|
112
|
+
<button
|
|
113
|
+
- onClick={() => onChange(value)}
|
|
114
|
+
+ onClick={() => onChange(value, props.changeImportance ?? 'accept', item)}
|
|
115
|
+
>
|
|
116
|
+
{value}
|
|
117
|
+
</button>
|
|
118
|
+
)
|
|
119
|
+
}}
|
|
120
|
+
</React.Fragment>
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
<DatePicker slots={{ shortcuts: CustomShortcuts }} />
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
- Usage of `AdapterDayjs` with the `customParseFormat` plugin
|
|
128
|
+
The call to `dayjs.extend(customParseFormatPlugin)` has been moved to the `AdapterDayjs` constructor. This allows users to pass custom options to this plugin before the adapter uses it.
|
|
129
|
+
|
|
130
|
+
If you are using this plugin before the rendering of the first `LocalizationProvider` component and did not call `dayjs.extend` in your own codebase, you will need to manually extend `dayjs`:
|
|
131
|
+
|
|
132
|
+
```tsx
|
|
133
|
+
import dayjs from 'dayjs';
|
|
134
|
+
import customParseFormatPlugin from 'dayjs/plugin/customParseFormat';
|
|
135
|
+
|
|
136
|
+
dayjs.extend(customParseFormatPlugin);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
The other plugins are still added before the adapter initialization.
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-date-pickers@7.0.0-alpha.3`
|
|
142
|
+
|
|
143
|
+
- [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11130) @LukasTy
|
|
144
|
+
- [pickers] Make `changeImportance` and `shortcut` mandatory in `PickersShortcuts` (#10941) @flaviendelangle
|
|
145
|
+
- [pickers] Moved extend with `customParseFormat` to constructor (#11151) @michelengelen
|
|
146
|
+
- [pickers] POC: `PickersTextField` styling - outlined variant (#10778) @noraleonte
|
|
147
|
+
- [pickers] Support localized start of the week on `AdapterLuxon` (#10964) @flaviendelangle
|
|
148
|
+
- [pickers] Use adapter methods instead of date library ones whenever possible (#11142) @flaviendelangle
|
|
149
|
+
|
|
150
|
+
#### `@mui/x-date-pickers-pro@7.0.0-alpha.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
151
|
+
|
|
152
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
|
|
153
|
+
|
|
154
|
+
### Charts / `@mui/x-charts@7.0.0-alpha.3`
|
|
155
|
+
|
|
156
|
+
- [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11144) @michelengelen
|
|
157
|
+
- [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
|
|
158
|
+
- [charts] Fix TS config (#11259) @alexfauquette
|
|
159
|
+
- [charts] Fix error with empty dataset (#11063) @alexfauquette
|
|
160
|
+
- [charts] Fix export strategy (#11235) @alexfauquette
|
|
161
|
+
- [charts] Remove outdated prop-types (#11045) @alexfauquette
|
|
162
|
+
|
|
163
|
+
### Docs
|
|
164
|
+
|
|
165
|
+
- [docs] Add `TextField` styling example to customization playground (#10812) @noraleonte
|
|
166
|
+
- [docs] Add a card grid to the installation page (#11177) @danilo-leal
|
|
167
|
+
- [docs] Add end v6 blogpost to whats new page (#10999) @joserodolfofreitas
|
|
168
|
+
- [docs] Add small formatting improvements to the licensing page (#11178) @danilo-leal
|
|
169
|
+
- [docs] Document charts composition (#10710) (#11239) @alexfauquette
|
|
170
|
+
- [docs] Fix <title> generation (#11182) @oliviertassinari
|
|
171
|
+
- [docs] Fix dead anchor link (#11265) @oliviertassinari
|
|
172
|
+
- [docs] Improve Data Grid togglable columns example (#11238) @MBilalShafi
|
|
173
|
+
- [docs] Improve the prop descriptions of `DayCalendar` (#11158) @flaviendelangle
|
|
174
|
+
- [docs] Move the adapter breaking changes in a collapsable block (#11205) @flaviendelangle
|
|
175
|
+
- [docs] Polish Next.js header description @oliviertassinari
|
|
176
|
+
- [docs] Remove the `newFeature` flag on v6 features (#11168) @flaviendelangle
|
|
177
|
+
- [docs] Simplify a bit chart demo (#11173) @oliviertassinari
|
|
178
|
+
- [docs] Standardize the usage of callouts in the MUI X docs (#7127) @samuelsycamore
|
|
179
|
+
- [docs] Adjust the Data Grid demo page design (#11231) @danilo-leal
|
|
180
|
+
|
|
181
|
+
### Core
|
|
182
|
+
|
|
183
|
+
- [core] Make `@mui/system` a direct dependency (#11128) @LukasTy
|
|
184
|
+
- [core] Remove blank lines, coding style @oliviertassinari
|
|
185
|
+
- [core] Remove outdated `ENABLE_AD` env variable (#11181) @oliviertassinari
|
|
186
|
+
- [github] Do not add `plan: Pro` and `plan: Premium` labels on pro / premium issue templates (#10183) @flaviendelangle
|
|
187
|
+
|
|
6
188
|
## 7.0.0-alpha.2
|
|
7
189
|
|
|
8
190
|
_Nov 23, 2023_
|
|
@@ -684,6 +866,65 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
684
866
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
685
867
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
686
868
|
|
|
869
|
+
## 6.18.3
|
|
870
|
+
|
|
871
|
+
_Dec 4, 2023_
|
|
872
|
+
|
|
873
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
874
|
+
|
|
875
|
+
- 📈 Fix a lot of Charts package issues
|
|
876
|
+
- 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
|
|
877
|
+
- 🐞 Bugfixes
|
|
878
|
+
- 📚 Documentation improvements
|
|
879
|
+
|
|
880
|
+
### Data Grid
|
|
881
|
+
|
|
882
|
+
#### `@mui/x-data-grid@6.18.3`
|
|
883
|
+
|
|
884
|
+
- [DataGrid] Fix cell editing adding a leading "v" on paste (#11166) @prasad5795
|
|
885
|
+
- [DataGrid] Fix handling of event target in portal (#11209) @cherniavskii
|
|
886
|
+
- [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11244) @gitstart
|
|
887
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#10856) (#11206) @Kristiqn95
|
|
888
|
+
|
|
889
|
+
#### `@mui/x-data-grid-pro@6.18.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
890
|
+
|
|
891
|
+
Same changes as in `@mui/x-data-grid@6.18.3`.
|
|
892
|
+
|
|
893
|
+
#### `@mui/x-data-grid-premium@6.18.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
894
|
+
|
|
895
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.3`, plus:
|
|
896
|
+
|
|
897
|
+
- [DataGridPremium] Fix aggregated column ignoring column definition changes (#11176) @cherniavskii
|
|
898
|
+
- [DataGridPremium] Fix custom filter operators not working on aggregated column (#11201) @cherniavskii
|
|
899
|
+
|
|
900
|
+
### Date Pickers
|
|
901
|
+
|
|
902
|
+
#### `@mui/x-date-pickers@6.18.3`
|
|
903
|
+
|
|
904
|
+
- [pickers] Correctly format `MultiSectionDigitalClock` number sections (#11297) @LukasTy
|
|
905
|
+
- [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11254) @LukasTy
|
|
906
|
+
|
|
907
|
+
#### `@mui/x-date-pickers-pro@6.18.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
908
|
+
|
|
909
|
+
Same changes as in `@mui/x-date-pickers@6.18.3`.
|
|
910
|
+
|
|
911
|
+
### Charts / `@mui/x-charts@6.18.3`
|
|
912
|
+
|
|
913
|
+
- [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11213) @michelengelen
|
|
914
|
+
- [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
|
|
915
|
+
- [charts] Fix TS config (#11259) @alexfauquette
|
|
916
|
+
- [charts] Fix error with empty dataset (#11063) @alexfauquette
|
|
917
|
+
- [charts] Fix export strategy (#11235) @alexfauquette
|
|
918
|
+
|
|
919
|
+
### Docs
|
|
920
|
+
|
|
921
|
+
- [docs] Add LTS section to support page (#11300) @joserodolfofreitas
|
|
922
|
+
- [docs] Add end v6 blogpost to whats new page (#11299) @joserodolfofreitas
|
|
923
|
+
- [docs] Document charts composition (#10710) @alexfauquette
|
|
924
|
+
- [docs] Fix version links (#11167) @LukasTy
|
|
925
|
+
- [docs] Improve Data Grid togglable columns example (#11241) @MBilalShafi
|
|
926
|
+
- [docs] Split charts overview and getting started in distinct pages (#10910) @alexfauquette
|
|
927
|
+
|
|
687
928
|
## 6.18.2
|
|
688
929
|
|
|
689
930
|
_Nov 23, 2023_
|
|
@@ -395,8 +395,8 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
395
395
|
*/
|
|
396
396
|
displayWeekNumber: PropTypes.bool,
|
|
397
397
|
/**
|
|
398
|
-
*
|
|
399
|
-
* Put it to 6
|
|
398
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
399
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
400
400
|
* @default undefined
|
|
401
401
|
*/
|
|
402
402
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -29,7 +29,7 @@ export interface ExportedDayCalendarProps<TDate> extends ExportedPickersDayProps
|
|
|
29
29
|
*/
|
|
30
30
|
loading?: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* Component
|
|
32
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
33
33
|
* @returns {React.ReactNode} The node to render when loading.
|
|
34
34
|
* @default () => "..."
|
|
35
35
|
*/
|
|
@@ -46,8 +46,8 @@ export interface ExportedDayCalendarProps<TDate> extends ExportedPickersDayProps
|
|
|
46
46
|
*/
|
|
47
47
|
displayWeekNumber?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Put it to 6
|
|
49
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
50
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
51
51
|
* @default undefined
|
|
52
52
|
*/
|
|
53
53
|
fixedWeekNumber?: number;
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -112,8 +112,8 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
112
112
|
*/
|
|
113
113
|
displayWeekNumber: PropTypes.bool,
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
116
|
-
* Put it to 6
|
|
115
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
116
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
117
117
|
* @default undefined
|
|
118
118
|
*/
|
|
119
119
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -127,8 +127,8 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
127
127
|
*/
|
|
128
128
|
displayWeekNumber: PropTypes.bool,
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
131
|
-
* Put it to 6
|
|
130
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
131
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
132
132
|
* @default undefined
|
|
133
133
|
*/
|
|
134
134
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -130,8 +130,8 @@ DesktopDatePicker.propTypes = {
|
|
|
130
130
|
*/
|
|
131
131
|
displayWeekNumber: PropTypes.bool,
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
134
|
-
* Put it to 6
|
|
133
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
134
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
135
135
|
* @default undefined
|
|
136
136
|
*/
|
|
137
137
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -184,8 +184,8 @@ DesktopDateTimePicker.propTypes = {
|
|
|
184
184
|
*/
|
|
185
185
|
displayWeekNumber: PropTypes.bool,
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
188
|
-
* Put it to 6
|
|
187
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
188
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
189
189
|
* @default undefined
|
|
190
190
|
*/
|
|
191
191
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -127,8 +127,8 @@ MobileDatePicker.propTypes = {
|
|
|
127
127
|
*/
|
|
128
128
|
displayWeekNumber: PropTypes.bool,
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
131
|
-
* Put it to 6
|
|
130
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
131
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
132
132
|
* @default undefined
|
|
133
133
|
*/
|
|
134
134
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -153,8 +153,8 @@ MobileDateTimePicker.propTypes = {
|
|
|
153
153
|
*/
|
|
154
154
|
displayWeekNumber: PropTypes.bool,
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
157
|
-
* Put it to 6
|
|
156
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
157
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
158
158
|
* @default undefined
|
|
159
159
|
*/
|
|
160
160
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -249,6 +249,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
|
|
|
249
249
|
},
|
|
250
250
|
items: getTimeSectionOptions({
|
|
251
251
|
value: utils.getMinutes(valueOrReferenceDate),
|
|
252
|
+
utils,
|
|
252
253
|
isDisabled: minutes => disabled || isTimeDisabled(minutes, 'minutes'),
|
|
253
254
|
resolveLabel: minutes => utils.format(utils.setMinutes(now, minutes), 'minutes'),
|
|
254
255
|
timeStep: timeSteps.minutes,
|
|
@@ -265,6 +266,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
|
|
|
265
266
|
},
|
|
266
267
|
items: getTimeSectionOptions({
|
|
267
268
|
value: utils.getSeconds(valueOrReferenceDate),
|
|
269
|
+
utils,
|
|
268
270
|
isDisabled: seconds => disabled || isTimeDisabled(seconds, 'seconds'),
|
|
269
271
|
resolveLabel: seconds => utils.format(utils.setSeconds(now, seconds), 'seconds'),
|
|
270
272
|
timeStep: timeSteps.seconds,
|
|
@@ -11,13 +11,14 @@ interface IGetHoursSectionOptions<TDate> {
|
|
|
11
11
|
valueOrReferenceDate: TDate;
|
|
12
12
|
}
|
|
13
13
|
export declare const getHourSectionOptions: <TDate>({ now, value, utils, ampm, isDisabled, resolveAriaLabel, timeStep, valueOrReferenceDate, }: IGetHoursSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
|
|
14
|
-
interface IGetTimeSectionOptions {
|
|
14
|
+
interface IGetTimeSectionOptions<TDate> {
|
|
15
15
|
value: number | null;
|
|
16
|
+
utils: MuiPickersAdapter<TDate>;
|
|
16
17
|
isDisabled: (value: number) => boolean;
|
|
17
18
|
timeStep: number;
|
|
18
19
|
resolveLabel: (value: number) => string;
|
|
19
20
|
hasValue?: boolean;
|
|
20
21
|
resolveAriaLabel: (value: string) => string;
|
|
21
22
|
}
|
|
22
|
-
export declare const getTimeSectionOptions: ({ value, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions) => MultiSectionDigitalClockOption<number>[];
|
|
23
|
+
export declare const getTimeSectionOptions: <TDate>({ value, utils, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
|
|
23
24
|
export {};
|
|
@@ -44,6 +44,7 @@ export const getHourSectionOptions = ({
|
|
|
44
44
|
};
|
|
45
45
|
export const getTimeSectionOptions = ({
|
|
46
46
|
value,
|
|
47
|
+
utils,
|
|
47
48
|
isDisabled,
|
|
48
49
|
timeStep,
|
|
49
50
|
resolveLabel,
|
|
@@ -65,7 +66,7 @@ export const getTimeSectionOptions = ({
|
|
|
65
66
|
const timeValue = timeStep * index;
|
|
66
67
|
return {
|
|
67
68
|
value: timeValue,
|
|
68
|
-
label: resolveLabel(timeValue),
|
|
69
|
+
label: utils.formatNumber(resolveLabel(timeValue)),
|
|
69
70
|
isDisabled,
|
|
70
71
|
isSelected,
|
|
71
72
|
isFocused,
|
|
@@ -26,7 +26,7 @@ export interface ExportedPickersShortcutProps<TValue> extends Omit<ListProps, 'o
|
|
|
26
26
|
}
|
|
27
27
|
export interface PickersShortcutsProps<TValue> extends ExportedPickersShortcutProps<TValue> {
|
|
28
28
|
isLandscape: boolean;
|
|
29
|
-
onChange: (newValue: TValue, changeImportance
|
|
29
|
+
onChange: (newValue: TValue, changeImportance: PickerShortcutChangeImportance, shortcut: PickersShortcutsItemContext) => void;
|
|
30
30
|
isValid: (value: TValue) => boolean;
|
|
31
31
|
}
|
|
32
32
|
/**
|
package/README.md
CHANGED
|
@@ -106,8 +106,8 @@ StaticDatePicker.propTypes = {
|
|
|
106
106
|
*/
|
|
107
107
|
displayWeekNumber: PropTypes.bool,
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
110
|
-
* Put it to 6
|
|
109
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
110
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
111
111
|
* @default undefined
|
|
112
112
|
*/
|
|
113
113
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -131,8 +131,8 @@ StaticDateTimePicker.propTypes = {
|
|
|
131
131
|
*/
|
|
132
132
|
displayWeekNumber: PropTypes.bool,
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
135
|
-
* Put it to 6
|
|
134
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
135
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
136
136
|
* @default undefined
|
|
137
137
|
*/
|
|
138
138
|
fixedWeekNumber: PropTypes.number,
|
package/index.js
CHANGED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
const _excluded = ["children", "classes", "className", "label", "notched"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { styled } from '@mui/material/styles';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const OutlineRoot = styled('fieldset')({
|
|
8
|
+
textAlign: 'left',
|
|
9
|
+
position: 'absolute',
|
|
10
|
+
bottom: 0,
|
|
11
|
+
right: 0,
|
|
12
|
+
top: -5,
|
|
13
|
+
left: 0,
|
|
14
|
+
margin: 0,
|
|
15
|
+
padding: '0 8px',
|
|
16
|
+
pointerEvents: 'none',
|
|
17
|
+
borderRadius: 'inherit',
|
|
18
|
+
borderStyle: 'solid',
|
|
19
|
+
borderWidth: 1,
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
minWidth: '0%'
|
|
22
|
+
});
|
|
23
|
+
const OutlineLegend = styled('legend')(({
|
|
24
|
+
ownerState,
|
|
25
|
+
theme
|
|
26
|
+
}) => _extends({
|
|
27
|
+
float: 'unset',
|
|
28
|
+
// Fix conflict with bootstrap
|
|
29
|
+
width: 'auto',
|
|
30
|
+
// Fix conflict with bootstrap
|
|
31
|
+
overflow: 'hidden'
|
|
32
|
+
}, !ownerState.withLabel && {
|
|
33
|
+
padding: 0,
|
|
34
|
+
lineHeight: '11px',
|
|
35
|
+
// sync with `height` in `legend` styles
|
|
36
|
+
transition: theme.transitions.create('width', {
|
|
37
|
+
duration: 150,
|
|
38
|
+
easing: theme.transitions.easing.easeOut
|
|
39
|
+
})
|
|
40
|
+
}, ownerState.withLabel && _extends({
|
|
41
|
+
display: 'block',
|
|
42
|
+
// Fix conflict with normalize.css and sanitize.css
|
|
43
|
+
padding: 0,
|
|
44
|
+
height: 11,
|
|
45
|
+
// sync with `lineHeight` in `legend` styles
|
|
46
|
+
fontSize: '0.75em',
|
|
47
|
+
visibility: 'hidden',
|
|
48
|
+
maxWidth: 0.01,
|
|
49
|
+
transition: theme.transitions.create('max-width', {
|
|
50
|
+
duration: 50,
|
|
51
|
+
easing: theme.transitions.easing.easeOut
|
|
52
|
+
}),
|
|
53
|
+
whiteSpace: 'nowrap',
|
|
54
|
+
'& > span': {
|
|
55
|
+
paddingLeft: 5,
|
|
56
|
+
paddingRight: 5,
|
|
57
|
+
display: 'inline-block',
|
|
58
|
+
opacity: 0,
|
|
59
|
+
visibility: 'visible'
|
|
60
|
+
}
|
|
61
|
+
}, ownerState.notched && {
|
|
62
|
+
maxWidth: '100%',
|
|
63
|
+
transition: theme.transitions.create('max-width', {
|
|
64
|
+
duration: 100,
|
|
65
|
+
easing: theme.transitions.easing.easeOut,
|
|
66
|
+
delay: 50
|
|
67
|
+
})
|
|
68
|
+
})));
|
|
69
|
+
export default function Outline(props) {
|
|
70
|
+
const {
|
|
71
|
+
className,
|
|
72
|
+
label,
|
|
73
|
+
notched
|
|
74
|
+
} = props,
|
|
75
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
76
|
+
const withLabel = label != null && label !== '';
|
|
77
|
+
const ownerState = _extends({}, props, {
|
|
78
|
+
notched,
|
|
79
|
+
withLabel
|
|
80
|
+
});
|
|
81
|
+
return /*#__PURE__*/_jsx(OutlineRoot, _extends({
|
|
82
|
+
"aria-hidden": true,
|
|
83
|
+
className: className,
|
|
84
|
+
ownerState: ownerState
|
|
85
|
+
}, other, {
|
|
86
|
+
children: /*#__PURE__*/_jsx(OutlineLegend, {
|
|
87
|
+
ownerState: ownerState,
|
|
88
|
+
children: withLabel ? /*#__PURE__*/_jsx("span", {
|
|
89
|
+
children: label
|
|
90
|
+
}) :
|
|
91
|
+
/*#__PURE__*/
|
|
92
|
+
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
93
|
+
_jsx("span", {
|
|
94
|
+
className: "notranslate",
|
|
95
|
+
children: "\u200B"
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
}));
|
|
99
|
+
}
|