@mui/x-date-pickers 7.13.0 → 7.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,86 @@
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.14.0
7
+
8
+ _Aug 23, 2024_
9
+
10
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 💫 Allow [filtering the axis on zoom](https://mui.com/x/react-charts/zoom-and-pan/#zoom-filtering), making the axis adapt by removing values outside the view.
13
+
14
+ <img width="600" src="https://github.com/user-attachments/assets/e65bbd00-d2a8-4136-81cd-3598f1373c16" alt="filtering the axis on zoom" />
15
+
16
+ - 📊 Improve bar chart performances
17
+ - 🌍 Improve Czech (cs-CZ) and Hebrew (he-IL) locales on the Data Grid
18
+ - 🌍 Improve Chinese (zh-HK), Hebrew (he-IL), and Vietnamese (vi-VN) locales on the Date and Time Pickers
19
+ - 🐞 Bugfixes
20
+
21
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@7.14.0`
26
+
27
+ - [DataGrid] Use readonly array result for `getTreeDataPath` (#11743) @pcorpet
28
+ - [DataGrid] Use `event.key` for `Tab` and `Escape` keys (#14170) @k-rajat19
29
+ - [DataGrid] Introduce selectors with arguments (#14236) @MBilalShafi
30
+ - [DataGrid] include `api` in `gridCellParams` interface (#14201) @k-rajat19
31
+ - [l10n] Improve Czech (cs-CZ) locale (#14135) @chirimiri22
32
+ - [l10n] Improve Hebrew (he-IL) locale (#14287) @rotembarsela
33
+
34
+ #### `@mui/x-data-grid-pro@7.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
35
+
36
+ Same changes as in `@mui/x-data-grid@7.14.0`.
37
+
38
+ #### `@mui/x-data-grid-premium@7.14.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
39
+
40
+ Same changes as in `@mui/x-data-grid-pro@7.14.0`, plus:
41
+
42
+ - [DataGridPremium] Fix clipboard paste not working for a single cell on non-first page (#14261) @arminmeh
43
+ - [DataGridPremium] Fix `onCellSelectionModelChange` not triggered when additional cell range is selected (#14199) @arminmeh
44
+
45
+ ### Date and Time Pickers
46
+
47
+ #### `@mui/x-date-pickers@7.14.0`
48
+
49
+ - [l10n] Improve Chinese (zh-HK) locale (#13289) @yeeharn
50
+ - [l10n] Improve Hebrew (he-IL) locale (#14287) @rotembarsela
51
+ - [l10n] Improve Vietnamese (vi-VN) locale (#14238) @locnbk2002
52
+ - [TimePicker] Handle `Space` and `Enter` on the `TimeClock` component @arthurbalduini
53
+
54
+ #### `@mui/x-date-pickers-pro@7.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
55
+
56
+ Same changes as in `@mui/x-date-pickers@7.14.0`.
57
+
58
+ ### Charts
59
+
60
+ #### `@mui/x-charts@7.14.0`
61
+
62
+ - [charts] Fix grid overflow with zooming (#14280) @alexfauquette
63
+ - [charts] Improve bar chart performances (#14278) @alexfauquette
64
+ - [charts] Test pointer events (#14042) @alexfauquette
65
+ - [charts] Use `isPointInside` function for both graphs and axis (#14222) @JCQuintas
66
+
67
+ #### `@mui/x-charts-pro@7.0.0-alpha.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
68
+
69
+ Same changes as in `@mui/x-charts@7.14.0`, plus:
70
+
71
+ - [charts-pro] Zoom axis filtering (#14121) @JCQuintas
72
+
73
+ ### Docs
74
+
75
+ - [docs] Consistent use of UTC and timezones (#14250) @oliviertassinari
76
+ - [docs] Fix missing leading slashes in URLs (#14249) @oliviertassinari
77
+ - [docs] Dash usage revision on pickers pages (#14260) @arthurbalduini
78
+
79
+ ### Core
80
+
81
+ - [core] Follow JSDocs convention @oliviertassinari
82
+ - [core] Prepare for material v6 (#14143) @LukasTy
83
+ - [code-infra] Set up `eslint-plugin-testing-library` (#14232) @LukasTy
84
+ - [infra] Updated mui-x roadmap links with new project URL (#14271) @michelengelen
85
+
6
86
  ## 7.13.0
7
87
 
8
88
  _Aug 16, 2024_
@@ -58,7 +138,7 @@ Same changes as in `@mui/x-date-pickers@7.13.0`.
58
138
  - [charts] Rename `CartesianContextProvider` to `CartesianProvider` (#14102) @JCQuintas
59
139
  - [charts] Support axis with the same value for all data points (#14191) @alexfauquette
60
140
 
61
- #### `@mui/x-date-charts-pro@7.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
141
+ #### `@mui/x-charts-pro@7.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
62
142
 
63
143
  Same changes as in `@mui/x-charts@7.13.0`.
64
144
 
@@ -132,7 +212,7 @@ Same changes as in `@mui/x-date-pickers@7.12.1`.
132
212
  - [charts] Fix charts vendor publish config (#14073) @JCQuintas
133
213
  - [charts] Move `plugins` to `PluginProvider` (#14056) @JCQuintas
134
214
 
135
- #### `@mui/x-date-charts-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
215
+ #### `@mui/x-charts-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
136
216
 
137
217
  Same changes as in `@mui/x-charts@7.12.1`, plus:
138
218
 
@@ -274,6 +274,11 @@ export function Clock(inProps) {
274
274
  handleValueChange(viewValue - keyboardControlStep, 'partial');
275
275
  event.preventDefault();
276
276
  break;
277
+ case 'Enter':
278
+ case ' ':
279
+ handleValueChange(viewValue, 'finish');
280
+ event.preventDefault();
281
+ break;
277
282
  default:
278
283
  // do nothing
279
284
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.13.0
2
+ * @mui/x-date-pickers v7.14.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/locales/heIL.js CHANGED
@@ -66,8 +66,7 @@ const heILPickers = {
66
66
  hours: 'שעות',
67
67
  minutes: 'דקות',
68
68
  seconds: 'שניות',
69
- // meridiem: 'Meridiem',
70
-
69
+ meridiem: 'יחידת זמן',
71
70
  // Common
72
71
  empty: 'ריק'
73
72
  };
package/locales/viVN.js CHANGED
@@ -16,11 +16,10 @@ const viVNPickers = {
16
16
  // DateRange labels
17
17
  start: 'Bắt đầu',
18
18
  end: 'Kết thúc',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Ngày bắt đầu',
20
+ startTime: 'Thời gian bắt đầu',
21
+ endDate: 'Ngày kết thúc',
22
+ endTime: 'Thời gian kết thúc',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Hủy',
26
25
  clearButtonLabel: 'Xóa',
@@ -46,8 +45,7 @@ const viVNPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn ngày, ngày đã chọn là ${utils.format(value, 'fullDate')}` : 'Chọn ngày',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}` : 'Chọn giờ',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Xóa giá trị',
51
49
  // Table labels
52
50
  timeTableLabel: 'chọn giờ',
53
51
  dateTableLabel: 'chọn ngày',
@@ -59,19 +57,17 @@ const viVNPickers = {
59
57
  fieldHoursPlaceholder: () => 'hh',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Năm',
63
+ month: 'Tháng',
64
+ day: 'Ngày',
65
+ weekDay: 'Thứ',
66
+ hours: 'Giờ',
67
+ minutes: 'Phút',
68
+ seconds: 'Giây',
69
+ meridiem: 'Buổi',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Trống'
76
72
  };
77
73
  export const viVN = getPickersLocalization(viVNPickers);
package/locales/zhHK.js CHANGED
@@ -45,8 +45,7 @@ const zhHKPickers = {
45
45
  // Open picker labels
46
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇日期,已選擇${utils.format(value, 'fullDate')}` : '選擇日期',
47
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇時間,已選擇${utils.format(value, 'fullTime')}` : '選擇時間',
48
- // fieldClearLabel: 'Clear value',
49
-
48
+ fieldClearLabel: '清除',
50
49
  // Table labels
51
50
  timeTableLabel: '選擇時間',
52
51
  dateTableLabel: '選擇日期',
@@ -274,6 +274,11 @@ export function Clock(inProps) {
274
274
  handleValueChange(viewValue - keyboardControlStep, 'partial');
275
275
  event.preventDefault();
276
276
  break;
277
+ case 'Enter':
278
+ case ' ':
279
+ handleValueChange(viewValue, 'finish');
280
+ event.preventDefault();
281
+ break;
277
282
  default:
278
283
  // do nothing
279
284
  }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.13.0
2
+ * @mui/x-date-pickers v7.14.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -66,8 +66,7 @@ const heILPickers = {
66
66
  hours: 'שעות',
67
67
  minutes: 'דקות',
68
68
  seconds: 'שניות',
69
- // meridiem: 'Meridiem',
70
-
69
+ meridiem: 'יחידת זמן',
71
70
  // Common
72
71
  empty: 'ריק'
73
72
  };
@@ -16,11 +16,10 @@ const viVNPickers = {
16
16
  // DateRange labels
17
17
  start: 'Bắt đầu',
18
18
  end: 'Kết thúc',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Ngày bắt đầu',
20
+ startTime: 'Thời gian bắt đầu',
21
+ endDate: 'Ngày kết thúc',
22
+ endTime: 'Thời gian kết thúc',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Hủy',
26
25
  clearButtonLabel: 'Xóa',
@@ -46,8 +45,7 @@ const viVNPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn ngày, ngày đã chọn là ${utils.format(value, 'fullDate')}` : 'Chọn ngày',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}` : 'Chọn giờ',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Xóa giá trị',
51
49
  // Table labels
52
50
  timeTableLabel: 'chọn giờ',
53
51
  dateTableLabel: 'chọn ngày',
@@ -59,19 +57,17 @@ const viVNPickers = {
59
57
  fieldHoursPlaceholder: () => 'hh',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Năm',
63
+ month: 'Tháng',
64
+ day: 'Ngày',
65
+ weekDay: 'Thứ',
66
+ hours: 'Giờ',
67
+ minutes: 'Phút',
68
+ seconds: 'Giây',
69
+ meridiem: 'Buổi',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Trống'
76
72
  };
77
73
  export const viVN = getPickersLocalization(viVNPickers);
@@ -45,8 +45,7 @@ const zhHKPickers = {
45
45
  // Open picker labels
46
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇日期,已選擇${utils.format(value, 'fullDate')}` : '選擇日期',
47
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇時間,已選擇${utils.format(value, 'fullTime')}` : '選擇時間',
48
- // fieldClearLabel: 'Clear value',
49
-
48
+ fieldClearLabel: '清除',
50
49
  // Table labels
51
50
  timeTableLabel: '選擇時間',
52
51
  dateTableLabel: '選擇日期',
@@ -283,6 +283,11 @@ function Clock(inProps) {
283
283
  handleValueChange(viewValue - keyboardControlStep, 'partial');
284
284
  event.preventDefault();
285
285
  break;
286
+ case 'Enter':
287
+ case ' ':
288
+ handleValueChange(viewValue, 'finish');
289
+ event.preventDefault();
290
+ break;
286
291
  default:
287
292
  // do nothing
288
293
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.13.0
2
+ * @mui/x-date-pickers v7.14.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -72,8 +72,7 @@ const heILPickers = {
72
72
  hours: 'שעות',
73
73
  minutes: 'דקות',
74
74
  seconds: 'שניות',
75
- // meridiem: 'Meridiem',
76
-
75
+ meridiem: 'יחידת זמן',
77
76
  // Common
78
77
  empty: 'ריק'
79
78
  };
@@ -22,11 +22,10 @@ const viVNPickers = {
22
22
  // DateRange labels
23
23
  start: 'Bắt đầu',
24
24
  end: 'Kết thúc',
25
- // startDate: 'Start date',
26
- // startTime: 'Start time',
27
- // endDate: 'End date',
28
- // endTime: 'End time',
29
-
25
+ startDate: 'Ngày bắt đầu',
26
+ startTime: 'Thời gian bắt đầu',
27
+ endDate: 'Ngày kết thúc',
28
+ endTime: 'Thời gian kết thúc',
30
29
  // Action bar
31
30
  cancelButtonLabel: 'Hủy',
32
31
  clearButtonLabel: 'Xóa',
@@ -52,8 +51,7 @@ const viVNPickers = {
52
51
  // Open picker labels
53
52
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn ngày, ngày đã chọn là ${utils.format(value, 'fullDate')}` : 'Chọn ngày',
54
53
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}` : 'Chọn giờ',
55
- // fieldClearLabel: 'Clear value',
56
-
54
+ fieldClearLabel: 'Xóa giá trị',
57
55
  // Table labels
58
56
  timeTableLabel: 'chọn giờ',
59
57
  dateTableLabel: 'chọn ngày',
@@ -65,19 +63,17 @@ const viVNPickers = {
65
63
  fieldHoursPlaceholder: () => 'hh',
66
64
  fieldMinutesPlaceholder: () => 'mm',
67
65
  fieldSecondsPlaceholder: () => 'ss',
68
- fieldMeridiemPlaceholder: () => 'aa'
69
-
66
+ fieldMeridiemPlaceholder: () => 'aa',
70
67
  // View names
71
- // year: 'Year',
72
- // month: 'Month',
73
- // day: 'Day',
74
- // weekDay: 'Week day',
75
- // hours: 'Hours',
76
- // minutes: 'Minutes',
77
- // seconds: 'Seconds',
78
- // meridiem: 'Meridiem',
79
-
68
+ year: 'Năm',
69
+ month: 'Tháng',
70
+ day: 'Ngày',
71
+ weekDay: 'Thứ',
72
+ hours: 'Giờ',
73
+ minutes: 'Phút',
74
+ seconds: 'Giây',
75
+ meridiem: 'Buổi',
80
76
  // Common
81
- // empty: 'Empty',
77
+ empty: 'Trống'
82
78
  };
83
79
  const viVN = exports.viVN = (0, _getPickersLocalization.getPickersLocalization)(viVNPickers);
@@ -51,8 +51,7 @@ const zhHKPickers = {
51
51
  // Open picker labels
52
52
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇日期,已選擇${utils.format(value, 'fullDate')}` : '選擇日期',
53
53
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `選擇時間,已選擇${utils.format(value, 'fullTime')}` : '選擇時間',
54
- // fieldClearLabel: 'Clear value',
55
-
54
+ fieldClearLabel: '清除',
56
55
  // Table labels
57
56
  timeTableLabel: '選擇時間',
58
57
  dateTableLabel: '選擇日期',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "7.13.0",
3
+ "version": "7.14.0",
4
4
  "description": "The community edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.25.0",
39
- "@mui/system": "^5.16.5",
40
- "@mui/utils": "^5.16.5",
41
- "@types/react-transition-group": "^4.4.10",
39
+ "@mui/system": "^5.16.7",
40
+ "@mui/utils": "^5.16.6",
41
+ "@types/react-transition-group": "^4.4.11",
42
42
  "clsx": "^2.1.1",
43
43
  "prop-types": "^15.8.1",
44
44
  "react-transition-group": "^4.4.5"