@mui/x-date-pickers 6.18.5 → 6.18.6

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,55 @@
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
+ ## 6.18.6
7
+
8
+ _Dec 22, 2023_
9
+
10
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Russian (ru-RU) locale (#11429) @wensiet
13
+ - 🐞 Bugfixes
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@6.18.6`
18
+
19
+ - [DataGrid] Fix typos in the JSDoc (#11475) @flaviendelangle
20
+ - [l10n] Improve Russian (ru-RU) locale (#11429) @wensiet
21
+
22
+ #### `@mui/x-data-grid-pro@6.18.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
23
+
24
+ Same changes as in `@mui/x-data-grid@6.18.6`.
25
+
26
+ #### `@mui/x-data-grid-premium@6.18.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
27
+
28
+ Same changes as in `@mui/x-data-grid-pro@6.18.6`.
29
+
30
+ ### Date Pickers
31
+
32
+ #### `@mui/x-date-pickers@6.18.6`
33
+
34
+ - [fields] Fix section pasting (#11467) @LukasTy
35
+
36
+ #### `@mui/x-date-pickers-pro@6.18.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-date-pickers@6.18.6`.
39
+
40
+ ### Charts / `@mui/x-charts@6.18.6`
41
+
42
+ - [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
43
+ - [charts] Make error message more explicit (#11457) @alexfauquette
44
+ - [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
45
+ - [charts] Improve dataset typing (#11372) @alexfauquette
46
+ - [charts] Fix size overflow (#11385) @alexfauquette
47
+
48
+ ### Docs
49
+
50
+ - [docs] Document false default values for boolean props (#11489) @cherniavskii
51
+ - [docs] Improve Pickers `name` prop examples (#11442) @LukasTy
52
+ - [docs] Limit `date-fns` package to v2 in codesandbox (#11478) @LukasTy
53
+ - [test] Reload the page if its blank and there are no links to the remaining tests (#11471) @cherniavskii
54
+
6
55
  ## 6.18.5
7
56
 
8
57
  _Dec 14, 2023_
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.5
2
+ * @mui/x-date-pickers v6.18.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -143,7 +143,14 @@ export const useField = params => {
143
143
  const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);
144
144
  const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;
145
145
  if (isValidPastedValue) {
146
- // Early return to let the paste update section, value
146
+ resetCharacterQuery();
147
+ updateSectionValue({
148
+ activeSection,
149
+ newSectionValue: pastedValue,
150
+ shouldGoToNextSection: true
151
+ });
152
+ // prevent default to avoid the input change handler being called
153
+ event.preventDefault();
147
154
  return;
148
155
  }
149
156
  if (lettersOnly || digitsOnly) {
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.5
2
+ * @mui/x-date-pickers v6.18.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -152,7 +152,14 @@ export var useField = function useField(params) {
152
152
  var digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);
153
153
  var isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;
154
154
  if (isValidPastedValue) {
155
- // Early return to let the paste update section, value
155
+ resetCharacterQuery();
156
+ updateSectionValue({
157
+ activeSection: activeSection,
158
+ newSectionValue: pastedValue,
159
+ shouldGoToNextSection: true
160
+ });
161
+ // prevent default to avoid the input change handler being called
162
+ event.preventDefault();
156
163
  return;
157
164
  }
158
165
  if (lettersOnly || digitsOnly) {
@@ -62,8 +62,7 @@ var ruRUPickers = {
62
62
  openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
63
63
  return value !== null && utils.isValid(value) ? "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0440\u0435\u043C\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u044F ".concat(utils.format(value, 'fullTime')) : 'Выберите время';
64
64
  },
65
- // fieldClearLabel: 'Clear value',
66
-
65
+ fieldClearLabel: 'Очистить значение',
67
66
  // Table labels
68
67
  timeTableLabel: 'выбрать время',
69
68
  dateTableLabel: 'выбрать дату',
package/locales/ruRU.js CHANGED
@@ -42,8 +42,7 @@ const ruRUPickers = {
42
42
  // Open picker labels
43
43
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Выберите дату, выбрана дата ${utils.format(value, 'fullDate')}` : 'Выберите дату',
44
44
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Выберите время, выбрано время ${utils.format(value, 'fullTime')}` : 'Выберите время',
45
- // fieldClearLabel: 'Clear value',
46
-
45
+ fieldClearLabel: 'Очистить значение',
47
46
  // Table labels
48
47
  timeTableLabel: 'выбрать время',
49
48
  dateTableLabel: 'выбрать дату',
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.5
2
+ * @mui/x-date-pickers v6.18.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -142,7 +142,14 @@ export const useField = params => {
142
142
  const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);
143
143
  const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;
144
144
  if (isValidPastedValue) {
145
- // Early return to let the paste update section, value
145
+ resetCharacterQuery();
146
+ updateSectionValue({
147
+ activeSection,
148
+ newSectionValue: pastedValue,
149
+ shouldGoToNextSection: true
150
+ });
151
+ // prevent default to avoid the input change handler being called
152
+ event.preventDefault();
146
153
  return;
147
154
  }
148
155
  if (lettersOnly || digitsOnly) {
@@ -42,8 +42,7 @@ const ruRUPickers = {
42
42
  // Open picker labels
43
43
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Выберите дату, выбрана дата ${utils.format(value, 'fullDate')}` : 'Выберите дату',
44
44
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Выберите время, выбрано время ${utils.format(value, 'fullTime')}` : 'Выберите время',
45
- // fieldClearLabel: 'Clear value',
46
-
45
+ fieldClearLabel: 'Очистить значение',
47
46
  // Table labels
48
47
  timeTableLabel: 'выбрать время',
49
48
  dateTableLabel: 'выбрать дату',
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.5
2
+ * @mui/x-date-pickers v6.18.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -151,7 +151,14 @@ const useField = params => {
151
151
  const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);
152
152
  const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;
153
153
  if (isValidPastedValue) {
154
- // Early return to let the paste update section, value
154
+ resetCharacterQuery();
155
+ updateSectionValue({
156
+ activeSection,
157
+ newSectionValue: pastedValue,
158
+ shouldGoToNextSection: true
159
+ });
160
+ // prevent default to avoid the input change handler being called
161
+ event.preventDefault();
155
162
  return;
156
163
  }
157
164
  if (lettersOnly || digitsOnly) {
@@ -48,8 +48,7 @@ const ruRUPickers = {
48
48
  // Open picker labels
49
49
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Выберите дату, выбрана дата ${utils.format(value, 'fullDate')}` : 'Выберите дату',
50
50
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Выберите время, выбрано время ${utils.format(value, 'fullTime')}` : 'Выберите время',
51
- // fieldClearLabel: 'Clear value',
52
-
51
+ fieldClearLabel: 'Очистить значение',
53
52
  // Table labels
54
53
  timeTableLabel: 'выбрать время',
55
54
  dateTableLabel: 'выбрать дату',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "6.18.5",
3
+ "version": "6.18.6",
4
4
  "description": "The community edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",