@mui/x-date-pickers 7.26.0 → 7.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,121 @@
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.27.1
7
+
8
+ _Feb 25, 2025_
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
+ - 🐞 Bugfixes
13
+ - 🌍 Add Bangla (bn-BD) locale on the Data Grid and Date Pickers
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @nusr, @officialkidmax.
17
+ Following are all team members who have contributed to this release:
18
+ @bernardobelchior, @MBilalShafi, @KenanYusuf.
19
+
20
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@7.27.1`
25
+
26
+ - [DataGrid] Fix the pagination unexpected behavior when using -1 for "All" rows per page (#16485) @nusr
27
+ - [DataGrid] Extract `getRowId()` API method as a selector (#16574) @MBilalShafi
28
+ - [DataGrid] Fix scrollbars overlapping cells on mount (#16653) @KenanYusuf
29
+ - [l10n] Add Bangla (bn-BD) locale (#16649) @officialkidmax
30
+
31
+ #### `@mui/x-data-grid-pro@7.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
32
+
33
+ Same changes as in `@mui/x-data-grid@7.27.1`.
34
+
35
+ #### `@mui/x-data-grid-premium@7.27.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
36
+
37
+ Same changes as in `@mui/x-data-grid-pro@7.27.1`.
38
+
39
+ ### Date and Time Pickers
40
+
41
+ #### `@mui/x-date-pickers@7.27.1`
42
+
43
+ - [l10n] Add Bangla (bn-BD) locale (#16649) @officialkidmax
44
+
45
+ #### `@mui/x-date-pickers-pro@7.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
46
+
47
+ Same changes as in `@mui/x-date-pickers@7.27.1`.
48
+
49
+ ### Charts
50
+
51
+ #### `@mui/x-charts@7.27.1`
52
+
53
+ - [charts] Fix empty series array in pie chart (#16657) @bernardobelchior
54
+
55
+ #### `@mui/x-charts-pro@7.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
56
+
57
+ Same changes as in `@mui/x-charts@7.27.1`.
58
+
59
+ ## 7.27.0
60
+
61
+ _Feb 17, 2025_
62
+
63
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
64
+
65
+ - ⚡ Improve Data Grid Excel export serialization performance
66
+ - 🐞 Bugfixes
67
+ - 🌍 Improve Polish (pl-PL) and Ukrainian (uk-UA) locale on the Data Grid
68
+
69
+ Special thanks go out to the community contributors who have helped make this release possible:
70
+ @pawelkula, @Neonin.
71
+ Following are all team members who have contributed to this release:
72
+ @cherniavskii, @JCQuintas, @oliviertassinari, @arminmeh and @LukasTy
73
+
74
+ ### Data Grid
75
+
76
+ #### `@mui/x-data-grid@7.27.0`
77
+
78
+ - [DataGrid] Add `resetPageOnSortFilter` prop that resets the page after sorting and filtering (#16580) @arminmeh
79
+ - [DataGrid] Avoid `undefined` value for pagination `rowCount` (#16558) @cherniavskii
80
+ - [l10n] Improve Polish (pl-PL) locale (#16594) @pawelkula
81
+ - [l10n] Improve Ukrainian (uk-UA) locale (#16593) @Neonin
82
+
83
+ #### `@mui/x-data-grid-pro@7.27.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
84
+
85
+ Same changes as in `@mui/x-data-grid@7.27.0`.
86
+
87
+ #### `@mui/x-data-grid-premium@7.27.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
88
+
89
+ Same changes as in `@mui/x-data-grid-pro@7.27.0`, plus:
90
+
91
+ - [DataGridPremium] Fix Excel export Web Worker demo not working in dev mode (#16532) @cherniavskii
92
+ - [DataGridPremium] Improve Excel export serialization performance (#16545) @cherniavskii
93
+ - [DataGridPremium] Namespace Excel export worker (#16539) @oliviertassinari
94
+
95
+ ### Date and Time Pickers
96
+
97
+ #### `@mui/x-date-pickers@7.27.0`
98
+
99
+ Internal changes.
100
+
101
+ #### `@mui/x-date-pickers-pro@7.27.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
102
+
103
+ Same changes as in `@mui/x-date-pickers@7.27.0`, plus:
104
+
105
+ - [DateRangePicker] Avoid unnecessary field section focusing (#16569) @LukasTy
106
+
107
+ ### Charts
108
+
109
+ #### `@mui/x-charts@7.27.0`
110
+
111
+ Internal changes.
112
+
113
+ #### `@mui/x-charts-pro@7.27.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
114
+
115
+ - [charts-pro] Fix automatic type overloads (#16579) @JCQuintas
116
+
117
+ ### Core
118
+
119
+ - [test] Fix Data Grid data source error test on React 18 (#16565) @arminmeh
120
+
6
121
  ## 7.26.0
7
122
 
8
123
  _Feb 7, 2025_
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.26.0
2
+ * @mui/x-date-pickers v7.27.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -132,6 +132,9 @@ export const useFieldV6TextField = params => {
132
132
  return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;
133
133
  },
134
134
  focusField: (newSelectedSection = 0) => {
135
+ if (getActiveElement(document) === inputRef.current) {
136
+ return;
137
+ }
135
138
  inputRef.current?.focus();
136
139
  setSelectedSections(newSelectedSection);
137
140
  },
@@ -92,7 +92,9 @@ export const useFieldV7TextField = params => {
92
92
  return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);
93
93
  },
94
94
  focusField: (newSelectedSections = 0) => {
95
- if (!sectionListRef.current) {
95
+ if (!sectionListRef.current ||
96
+ // if the field is already focused, we don't need to focus it again
97
+ interactions.getActiveSectionIndexFromDOM() != null) {
96
98
  return;
97
99
  }
98
100
  const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);
@@ -0,0 +1,80 @@
1
+ import { TimeViewWithMeridiem } from '../internals/models';
2
+ export declare const bnBD: {
3
+ components: {
4
+ MuiLocalizationProvider: {
5
+ defaultProps: {
6
+ localeText: {
7
+ previousMonth?: string | undefined;
8
+ nextMonth?: string | undefined;
9
+ calendarWeekNumberHeaderLabel?: string | undefined;
10
+ calendarWeekNumberHeaderText?: string | undefined;
11
+ calendarWeekNumberAriaLabelText?: ((weekNumber: number) => string) | undefined;
12
+ calendarWeekNumberText?: ((weekNumber: number) => string) | undefined;
13
+ openPreviousView?: string | undefined;
14
+ openNextView?: string | undefined;
15
+ calendarViewSwitchingButtonAriaLabel?: ((currentView: import("@mui/x-date-pickers/models").DateView) => string) | undefined;
16
+ start?: string | undefined;
17
+ end?: string | undefined;
18
+ startDate?: string | undefined;
19
+ startTime?: string | undefined;
20
+ endDate?: string | undefined;
21
+ endTime?: string | undefined;
22
+ cancelButtonLabel?: string | undefined;
23
+ clearButtonLabel?: string | undefined;
24
+ okButtonLabel?: string | undefined;
25
+ todayButtonLabel?: string | undefined;
26
+ clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, time: any, utils: import("@mui/x-date-pickers/models").MuiPickersAdapter<any, any>, formattedTime?: string | null) => string) | undefined;
27
+ hoursClockNumberText?: ((hours: string) => string) | undefined;
28
+ minutesClockNumberText?: ((minutes: string) => string) | undefined;
29
+ secondsClockNumberText?: ((seconds: string) => string) | undefined;
30
+ selectViewText?: ((view: TimeViewWithMeridiem) => string) | undefined;
31
+ openDatePickerDialogue?: ((date: any, utils: import("@mui/x-date-pickers/models").MuiPickersAdapter<any, any>, formattedDate: string | null) => string) | undefined;
32
+ openTimePickerDialogue?: ((date: any, utils: import("@mui/x-date-pickers/models").MuiPickersAdapter<any, any>, formattedTime: string | null) => string) | undefined;
33
+ fieldClearLabel?: string | undefined;
34
+ timeTableLabel?: string | undefined;
35
+ dateTableLabel?: string | undefined;
36
+ fieldYearPlaceholder?: ((params: {
37
+ digitAmount: number;
38
+ format: string;
39
+ }) => string) | undefined;
40
+ fieldMonthPlaceholder?: ((params: {
41
+ contentType: import("@mui/x-date-pickers/models").FieldSectionContentType;
42
+ format: string;
43
+ }) => string) | undefined;
44
+ fieldDayPlaceholder?: ((params: {
45
+ format: string;
46
+ }) => string) | undefined;
47
+ fieldWeekDayPlaceholder?: ((params: {
48
+ contentType: import("@mui/x-date-pickers/models").FieldSectionContentType;
49
+ format: string;
50
+ }) => string) | undefined;
51
+ fieldHoursPlaceholder?: ((params: {
52
+ format: string;
53
+ }) => string) | undefined;
54
+ fieldMinutesPlaceholder?: ((params: {
55
+ format: string;
56
+ }) => string) | undefined;
57
+ fieldSecondsPlaceholder?: ((params: {
58
+ format: string;
59
+ }) => string) | undefined;
60
+ fieldMeridiemPlaceholder?: ((params: {
61
+ format: string;
62
+ }) => string) | undefined;
63
+ year?: string | undefined;
64
+ month?: string | undefined;
65
+ day?: string | undefined;
66
+ weekDay?: string | undefined;
67
+ hours?: string | undefined;
68
+ minutes?: string | undefined;
69
+ seconds?: string | undefined;
70
+ meridiem?: string | undefined;
71
+ empty?: string | undefined;
72
+ datePickerToolbarTitle?: string | undefined;
73
+ timePickerToolbarTitle?: string | undefined;
74
+ dateTimePickerToolbarTitle?: string | undefined;
75
+ dateRangePickerToolbarTitle?: string | undefined;
76
+ };
77
+ };
78
+ };
79
+ };
80
+ };
@@ -0,0 +1,73 @@
1
+ import { getPickersLocalization } from "./utils/getPickersLocalization.js";
2
+ const views = {
3
+ hours: 'ঘণ্টা',
4
+ minutes: 'মিনিট',
5
+ seconds: 'সেকেন্ড',
6
+ meridiem: 'এএম/পিএম'
7
+ };
8
+ const bnBDPickers = {
9
+ // Calendar navigation
10
+ previousMonth: 'আগের মাস',
11
+ nextMonth: 'পরের মাস',
12
+ // View navigation
13
+ openPreviousView: 'আগের ভিউ খুলুন',
14
+ openNextView: 'পরের ভিউ খুলুন',
15
+ calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'বছরের ভিউ খোলা আছে, ক্যালেন্ডার ভিউতে পরিবর্তন করুন' : 'ক্যালেন্ডার ভিউ খোলা আছে, বছরের ভিউতে পরিবর্তন করুন',
16
+ // DateRange labels
17
+ start: 'শুরু',
18
+ end: 'শেষ',
19
+ startDate: 'শুরুর তারিখ',
20
+ startTime: 'শুরুর সময়',
21
+ endDate: 'শেষের তারিখ',
22
+ endTime: 'শেষের সময়',
23
+ // Action bar
24
+ cancelButtonLabel: 'বাতিল',
25
+ clearButtonLabel: 'পরিষ্কার',
26
+ okButtonLabel: 'ঠিক আছে',
27
+ todayButtonLabel: 'আজ',
28
+ // Toolbar titles
29
+ datePickerToolbarTitle: 'তারিখ নির্বাচন করুন',
30
+ dateTimePickerToolbarTitle: 'তারিখ ও সময় নির্বাচন করুন',
31
+ timePickerToolbarTitle: 'সময় নির্বাচন করুন',
32
+ dateRangePickerToolbarTitle: 'তারিখের পরিসীমা নির্বাচন করুন',
33
+ // Clock labels
34
+ clockLabelText: (view, time, utils, formattedTime) => `নির্বাচন করুন ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'কোনও সময় নির্বাচন করা হয়নি' : `নির্বাচিত সময় ${formattedTime ?? utils.format(time, 'fullTime')}}`}`,
35
+ hoursClockNumberText: hours => `${hours} ঘণ্টা`,
36
+ minutesClockNumberText: minutes => `${minutes} মিনিট`,
37
+ secondsClockNumberText: seconds => `${seconds} সেকেন্ড`,
38
+ // Digital clock labels
39
+ selectViewText: view => `${views[view]} নির্বাচন করুন`,
40
+ // Calendar labels
41
+ calendarWeekNumberHeaderLabel: 'সপ্তাহ সংখ্যা',
42
+ calendarWeekNumberHeaderText: '#',
43
+ calendarWeekNumberAriaLabelText: weekNumber => `সপ্তাহ ${weekNumber}`,
44
+ calendarWeekNumberText: weekNumber => `${weekNumber}`,
45
+ // Open picker labels
46
+ openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `তারিখ নির্বাচন করুন, নির্বাচিত তারিখ ${formattedDate ?? utils.format(value, 'fullDate')}` : 'তারিখ নির্বাচন করুন',
47
+ openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `সময় নির্বাচন করুন, নির্বাচিত সময় ${formattedTime ?? utils.format(value, 'fullTime')}` : 'সময় নির্বাচন করুন',
48
+ fieldClearLabel: 'পরিষ্কার',
49
+ // Table labels
50
+ timeTableLabel: 'সময় নির্বাচন করুন',
51
+ dateTableLabel: 'তারিখ নির্বাচন করুন',
52
+ // Field section placeholders
53
+ fieldYearPlaceholder: params => 'ব'.repeat(params.digitAmount),
54
+ fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
55
+ fieldDayPlaceholder: () => 'DD',
56
+ fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
57
+ fieldHoursPlaceholder: () => 'ঘন্টা',
58
+ fieldMinutesPlaceholder: () => 'মিনিট',
59
+ fieldSecondsPlaceholder: () => 'সেকেন্ড',
60
+ fieldMeridiemPlaceholder: () => 'এএম/পিএম',
61
+ // View names
62
+ year: 'বছর',
63
+ month: 'মাস',
64
+ day: 'দিন',
65
+ weekDay: 'সপ্তাহের দিন',
66
+ hours: 'ঘণ্টা',
67
+ minutes: 'মিনিট',
68
+ seconds: 'সেকেন্ড',
69
+ meridiem: 'এএম/পিএম',
70
+ // Common
71
+ empty: 'ফাঁকা'
72
+ };
73
+ export const bnBD = getPickersLocalization(bnBDPickers);
@@ -1,5 +1,6 @@
1
1
  export * from './beBY';
2
2
  export * from './bgBG';
3
+ export * from './bnBD';
3
4
  export * from './caES';
4
5
  export * from './csCZ';
5
6
  export * from './daDK';
package/locales/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./beBY.js";
2
2
  export * from "./bgBG.js";
3
+ export * from "./bnBD.js";
3
4
  export * from "./caES.js";
4
5
  export * from "./csCZ.js";
5
6
  export * from "./daDK.js";
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.26.0
2
+ * @mui/x-date-pickers v7.27.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -132,6 +132,9 @@ export const useFieldV6TextField = params => {
132
132
  return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;
133
133
  },
134
134
  focusField: (newSelectedSection = 0) => {
135
+ if (getActiveElement(document) === inputRef.current) {
136
+ return;
137
+ }
135
138
  inputRef.current?.focus();
136
139
  setSelectedSections(newSelectedSection);
137
140
  },
@@ -92,7 +92,9 @@ export const useFieldV7TextField = params => {
92
92
  return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);
93
93
  },
94
94
  focusField: (newSelectedSections = 0) => {
95
- if (!sectionListRef.current) {
95
+ if (!sectionListRef.current ||
96
+ // if the field is already focused, we don't need to focus it again
97
+ interactions.getActiveSectionIndexFromDOM() != null) {
96
98
  return;
97
99
  }
98
100
  const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);
@@ -0,0 +1,73 @@
1
+ import { getPickersLocalization } from "./utils/getPickersLocalization.js";
2
+ const views = {
3
+ hours: 'ঘণ্টা',
4
+ minutes: 'মিনিট',
5
+ seconds: 'সেকেন্ড',
6
+ meridiem: 'এএম/পিএম'
7
+ };
8
+ const bnBDPickers = {
9
+ // Calendar navigation
10
+ previousMonth: 'আগের মাস',
11
+ nextMonth: 'পরের মাস',
12
+ // View navigation
13
+ openPreviousView: 'আগের ভিউ খুলুন',
14
+ openNextView: 'পরের ভিউ খুলুন',
15
+ calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'বছরের ভিউ খোলা আছে, ক্যালেন্ডার ভিউতে পরিবর্তন করুন' : 'ক্যালেন্ডার ভিউ খোলা আছে, বছরের ভিউতে পরিবর্তন করুন',
16
+ // DateRange labels
17
+ start: 'শুরু',
18
+ end: 'শেষ',
19
+ startDate: 'শুরুর তারিখ',
20
+ startTime: 'শুরুর সময়',
21
+ endDate: 'শেষের তারিখ',
22
+ endTime: 'শেষের সময়',
23
+ // Action bar
24
+ cancelButtonLabel: 'বাতিল',
25
+ clearButtonLabel: 'পরিষ্কার',
26
+ okButtonLabel: 'ঠিক আছে',
27
+ todayButtonLabel: 'আজ',
28
+ // Toolbar titles
29
+ datePickerToolbarTitle: 'তারিখ নির্বাচন করুন',
30
+ dateTimePickerToolbarTitle: 'তারিখ ও সময় নির্বাচন করুন',
31
+ timePickerToolbarTitle: 'সময় নির্বাচন করুন',
32
+ dateRangePickerToolbarTitle: 'তারিখের পরিসীমা নির্বাচন করুন',
33
+ // Clock labels
34
+ clockLabelText: (view, time, utils, formattedTime) => `নির্বাচন করুন ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'কোনও সময় নির্বাচন করা হয়নি' : `নির্বাচিত সময় ${formattedTime ?? utils.format(time, 'fullTime')}}`}`,
35
+ hoursClockNumberText: hours => `${hours} ঘণ্টা`,
36
+ minutesClockNumberText: minutes => `${minutes} মিনিট`,
37
+ secondsClockNumberText: seconds => `${seconds} সেকেন্ড`,
38
+ // Digital clock labels
39
+ selectViewText: view => `${views[view]} নির্বাচন করুন`,
40
+ // Calendar labels
41
+ calendarWeekNumberHeaderLabel: 'সপ্তাহ সংখ্যা',
42
+ calendarWeekNumberHeaderText: '#',
43
+ calendarWeekNumberAriaLabelText: weekNumber => `সপ্তাহ ${weekNumber}`,
44
+ calendarWeekNumberText: weekNumber => `${weekNumber}`,
45
+ // Open picker labels
46
+ openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `তারিখ নির্বাচন করুন, নির্বাচিত তারিখ ${formattedDate ?? utils.format(value, 'fullDate')}` : 'তারিখ নির্বাচন করুন',
47
+ openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `সময় নির্বাচন করুন, নির্বাচিত সময় ${formattedTime ?? utils.format(value, 'fullTime')}` : 'সময় নির্বাচন করুন',
48
+ fieldClearLabel: 'পরিষ্কার',
49
+ // Table labels
50
+ timeTableLabel: 'সময় নির্বাচন করুন',
51
+ dateTableLabel: 'তারিখ নির্বাচন করুন',
52
+ // Field section placeholders
53
+ fieldYearPlaceholder: params => 'ব'.repeat(params.digitAmount),
54
+ fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
55
+ fieldDayPlaceholder: () => 'DD',
56
+ fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
57
+ fieldHoursPlaceholder: () => 'ঘন্টা',
58
+ fieldMinutesPlaceholder: () => 'মিনিট',
59
+ fieldSecondsPlaceholder: () => 'সেকেন্ড',
60
+ fieldMeridiemPlaceholder: () => 'এএম/পিএম',
61
+ // View names
62
+ year: 'বছর',
63
+ month: 'মাস',
64
+ day: 'দিন',
65
+ weekDay: 'সপ্তাহের দিন',
66
+ hours: 'ঘণ্টা',
67
+ minutes: 'মিনিট',
68
+ seconds: 'সেকেন্ড',
69
+ meridiem: 'এএম/পিএম',
70
+ // Common
71
+ empty: 'ফাঁকা'
72
+ };
73
+ export const bnBD = getPickersLocalization(bnBDPickers);
@@ -1,5 +1,6 @@
1
1
  export * from "./beBY.js";
2
2
  export * from "./bgBG.js";
3
+ export * from "./bnBD.js";
3
4
  export * from "./caES.js";
4
5
  export * from "./csCZ.js";
5
6
  export * from "./daDK.js";
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.26.0
2
+ * @mui/x-date-pickers v7.27.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -141,6 +141,9 @@ const useFieldV6TextField = params => {
141
141
  return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;
142
142
  },
143
143
  focusField: (newSelectedSection = 0) => {
144
+ if ((0, _utils.getActiveElement)(document) === inputRef.current) {
145
+ return;
146
+ }
144
147
  inputRef.current?.focus();
145
148
  setSelectedSections(newSelectedSection);
146
149
  },
@@ -100,7 +100,9 @@ const useFieldV7TextField = params => {
100
100
  return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);
101
101
  },
102
102
  focusField: (newSelectedSections = 0) => {
103
- if (!sectionListRef.current) {
103
+ if (!sectionListRef.current ||
104
+ // if the field is already focused, we don't need to focus it again
105
+ interactions.getActiveSectionIndexFromDOM() != null) {
104
106
  return;
105
107
  }
106
108
  const newParsedSelectedSections = (0, _useField.parseSelectedSections)(newSelectedSections, state.sections);
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.bnBD = void 0;
7
+ var _getPickersLocalization = require("./utils/getPickersLocalization");
8
+ const views = {
9
+ hours: 'ঘণ্টা',
10
+ minutes: 'মিনিট',
11
+ seconds: 'সেকেন্ড',
12
+ meridiem: 'এএম/পিএম'
13
+ };
14
+ const bnBDPickers = {
15
+ // Calendar navigation
16
+ previousMonth: 'আগের মাস',
17
+ nextMonth: 'পরের মাস',
18
+ // View navigation
19
+ openPreviousView: 'আগের ভিউ খুলুন',
20
+ openNextView: 'পরের ভিউ খুলুন',
21
+ calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'বছরের ভিউ খোলা আছে, ক্যালেন্ডার ভিউতে পরিবর্তন করুন' : 'ক্যালেন্ডার ভিউ খোলা আছে, বছরের ভিউতে পরিবর্তন করুন',
22
+ // DateRange labels
23
+ start: 'শুরু',
24
+ end: 'শেষ',
25
+ startDate: 'শুরুর তারিখ',
26
+ startTime: 'শুরুর সময়',
27
+ endDate: 'শেষের তারিখ',
28
+ endTime: 'শেষের সময়',
29
+ // Action bar
30
+ cancelButtonLabel: 'বাতিল',
31
+ clearButtonLabel: 'পরিষ্কার',
32
+ okButtonLabel: 'ঠিক আছে',
33
+ todayButtonLabel: 'আজ',
34
+ // Toolbar titles
35
+ datePickerToolbarTitle: 'তারিখ নির্বাচন করুন',
36
+ dateTimePickerToolbarTitle: 'তারিখ ও সময় নির্বাচন করুন',
37
+ timePickerToolbarTitle: 'সময় নির্বাচন করুন',
38
+ dateRangePickerToolbarTitle: 'তারিখের পরিসীমা নির্বাচন করুন',
39
+ // Clock labels
40
+ clockLabelText: (view, time, utils, formattedTime) => `নির্বাচন করুন ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'কোনও সময় নির্বাচন করা হয়নি' : `নির্বাচিত সময় ${formattedTime ?? utils.format(time, 'fullTime')}}`}`,
41
+ hoursClockNumberText: hours => `${hours} ঘণ্টা`,
42
+ minutesClockNumberText: minutes => `${minutes} মিনিট`,
43
+ secondsClockNumberText: seconds => `${seconds} সেকেন্ড`,
44
+ // Digital clock labels
45
+ selectViewText: view => `${views[view]} নির্বাচন করুন`,
46
+ // Calendar labels
47
+ calendarWeekNumberHeaderLabel: 'সপ্তাহ সংখ্যা',
48
+ calendarWeekNumberHeaderText: '#',
49
+ calendarWeekNumberAriaLabelText: weekNumber => `সপ্তাহ ${weekNumber}`,
50
+ calendarWeekNumberText: weekNumber => `${weekNumber}`,
51
+ // Open picker labels
52
+ openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `তারিখ নির্বাচন করুন, নির্বাচিত তারিখ ${formattedDate ?? utils.format(value, 'fullDate')}` : 'তারিখ নির্বাচন করুন',
53
+ openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `সময় নির্বাচন করুন, নির্বাচিত সময় ${formattedTime ?? utils.format(value, 'fullTime')}` : 'সময় নির্বাচন করুন',
54
+ fieldClearLabel: 'পরিষ্কার',
55
+ // Table labels
56
+ timeTableLabel: 'সময় নির্বাচন করুন',
57
+ dateTableLabel: 'তারিখ নির্বাচন করুন',
58
+ // Field section placeholders
59
+ fieldYearPlaceholder: params => 'ব'.repeat(params.digitAmount),
60
+ fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
61
+ fieldDayPlaceholder: () => 'DD',
62
+ fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
63
+ fieldHoursPlaceholder: () => 'ঘন্টা',
64
+ fieldMinutesPlaceholder: () => 'মিনিট',
65
+ fieldSecondsPlaceholder: () => 'সেকেন্ড',
66
+ fieldMeridiemPlaceholder: () => 'এএম/পিএম',
67
+ // View names
68
+ year: 'বছর',
69
+ month: 'মাস',
70
+ day: 'দিন',
71
+ weekDay: 'সপ্তাহের দিন',
72
+ hours: 'ঘণ্টা',
73
+ minutes: 'মিনিট',
74
+ seconds: 'সেকেন্ড',
75
+ meridiem: 'এএম/পিএম',
76
+ // Common
77
+ empty: 'ফাঁকা'
78
+ };
79
+ const bnBD = exports.bnBD = (0, _getPickersLocalization.getPickersLocalization)(bnBDPickers);
@@ -25,6 +25,17 @@ Object.keys(_bgBG).forEach(function (key) {
25
25
  }
26
26
  });
27
27
  });
28
+ var _bnBD = require("./bnBD");
29
+ Object.keys(_bnBD).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _bnBD[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _bnBD[key];
36
+ }
37
+ });
38
+ });
28
39
  var _caES = require("./caES");
29
40
  Object.keys(_caES).forEach(function (key) {
30
41
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "7.26.0",
3
+ "version": "7.27.1",
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",