@mui/x-date-pickers 5.0.18 → 5.0.20
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 +44 -0
- package/DateTimePicker/DateTimePickerToolbar.js +3 -1
- package/DateTimePicker/shared.d.ts +2 -1
- package/DateTimePicker/shared.js +11 -0
- package/index.js +1 -1
- package/internals/components/PickersToolbar.d.ts +2 -1
- package/internals/models/props/baseToolbarProps.d.ts +3 -3
- package/internals/models/views.d.ts +1 -0
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +3 -1
- package/legacy/DateTimePicker/shared.js +11 -0
- package/legacy/index.js +1 -1
- package/legacy/locales/deDE.js +2 -2
- package/legacy/locales/enUS.js +2 -2
- package/legacy/locales/huHU.js +65 -0
- package/legacy/locales/index.js +1 -0
- package/legacy/locales/jaJP.js +2 -2
- package/legacy/locales/nbNO.js +1 -1
- package/legacy/locales/nlNL.js +1 -1
- package/legacy/locales/plPL.js +1 -1
- package/legacy/locales/ptBR.js +1 -1
- package/legacy/locales/svSE.js +1 -1
- package/legacy/locales/zhCN.js +1 -1
- package/locales/beBY.d.ts +1 -1
- package/locales/csCZ.d.ts +1 -1
- package/locales/deDE.d.ts +5 -6
- package/locales/deDE.js +2 -2
- package/locales/enUS.d.ts +5 -6
- package/locales/enUS.js +2 -2
- package/locales/esES.d.ts +5 -6
- package/locales/faIR.d.ts +5 -6
- package/locales/fiFI.d.ts +5 -6
- package/locales/frFR.d.ts +5 -6
- package/locales/huHU.d.ts +34 -0
- package/locales/huHU.js +51 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/isIS.d.ts +5 -6
- package/locales/itIT.d.ts +5 -6
- package/locales/jaJP.d.ts +5 -6
- package/locales/jaJP.js +2 -2
- package/locales/koKR.d.ts +1 -1
- package/locales/nbNO.d.ts +5 -6
- package/locales/nbNO.js +1 -1
- package/locales/nlNL.d.ts +5 -6
- package/locales/nlNL.js +1 -1
- package/locales/plPL.d.ts +5 -6
- package/locales/plPL.js +1 -1
- package/locales/ptBR.d.ts +5 -6
- package/locales/ptBR.js +1 -1
- package/locales/ruRU.d.ts +1 -1
- package/locales/svSE.d.ts +5 -6
- package/locales/svSE.js +1 -1
- package/locales/trTR.d.ts +5 -6
- package/locales/ukUA.d.ts +5 -6
- package/locales/urPK.d.ts +1 -1
- package/locales/utils/getPickersLocalization.d.ts +1 -1
- package/locales/utils/pickersLocaleTextApi.d.ts +2 -2
- package/locales/zhCN.d.ts +5 -6
- package/locales/zhCN.js +1 -1
- package/modern/DateTimePicker/DateTimePickerToolbar.js +3 -1
- package/modern/DateTimePicker/shared.js +11 -0
- package/modern/index.js +1 -1
- package/modern/locales/deDE.js +2 -2
- package/modern/locales/enUS.js +2 -2
- package/modern/locales/huHU.js +47 -0
- package/modern/locales/index.js +1 -0
- package/modern/locales/jaJP.js +2 -2
- package/modern/locales/nbNO.js +1 -1
- package/modern/locales/nlNL.js +1 -1
- package/modern/locales/plPL.js +1 -1
- package/modern/locales/ptBR.js +1 -1
- package/modern/locales/svSE.js +1 -1
- package/modern/locales/zhCN.js +1 -1
- package/node/DateTimePicker/DateTimePickerToolbar.js +4 -1
- package/node/DateTimePicker/shared.js +16 -2
- package/node/index.js +1 -1
- package/node/locales/huHU.js +60 -0
- package/node/locales/index.js +13 -0
- package/node/locales/nbNO.js +1 -1
- package/node/locales/nlNL.js +1 -1
- package/node/locales/plPL.js +1 -1
- package/node/locales/ptBR.js +1 -1
- package/node/locales/svSE.js +1 -1
- package/node/locales/zhCN.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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
|
+
## 5.17.25
|
|
7
|
+
|
|
8
|
+
_Feb 23, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
|
|
14
|
+
### `@mui/x-data-grid@v5.17.25` / `@mui/x-data-grid-pro@v5.17.25` / `@mui/x-data-grid-premium@v5.17.25`
|
|
15
|
+
|
|
16
|
+
#### Changes
|
|
17
|
+
|
|
18
|
+
- [DataGrid] Fix `ownerState` being `undefined` in theme style overrides (#7757) @lolaignatova
|
|
19
|
+
|
|
20
|
+
### `@mui/x-date-pickers@v5.0.20` / `@mui/x-date-pickers-pro@v5.0.20`
|
|
21
|
+
|
|
22
|
+
#### Changes
|
|
23
|
+
|
|
24
|
+
- [DateTimePicker] Ensure toolbar `viewType` is correctly updated (#7942) @LukasTy
|
|
25
|
+
|
|
26
|
+
## 5.17.24
|
|
27
|
+
|
|
28
|
+
_Feb 16, 2023_
|
|
29
|
+
|
|
30
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
31
|
+
|
|
32
|
+
- 🌍 Add Hungarian (hu-HU) locale
|
|
33
|
+
- 🐞 Bugfixes
|
|
34
|
+
|
|
35
|
+
### `@mui/x-data-grid@v5.17.24` / `@mui/x-data-grid-pro@v5.17.24` / `@mui/x-data-grid-premium@v5.17.24`
|
|
36
|
+
|
|
37
|
+
#### Changes
|
|
38
|
+
|
|
39
|
+
- [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7897) @Vivek-Prajapatii
|
|
40
|
+
- [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7945) @cherniavskii
|
|
41
|
+
- [DataGridPro] Change cursor when dragging a column (#7878) @sai6855
|
|
42
|
+
- [DataGridPremium] Fix `leafField` to have correct focus value (#7959) @MBilalShafi
|
|
43
|
+
|
|
44
|
+
### `@mui/x-date-pickers@v5.0.19` / `@mui/x-date-pickers-pro@v5.0.19`
|
|
45
|
+
|
|
46
|
+
#### Changes
|
|
47
|
+
|
|
48
|
+
- [l10n] Add Hungarian (hu-HU) locale (#7796) @noherczeg
|
|
49
|
+
|
|
6
50
|
## 5.17.23
|
|
7
51
|
|
|
8
52
|
_Feb 9, 2023_
|
|
@@ -10,6 +10,7 @@ import { pickersToolbarClasses } from '../internals/components/pickersToolbarCla
|
|
|
10
10
|
import { PickersToolbarButton } from '../internals/components/PickersToolbarButton';
|
|
11
11
|
import { useLocaleText, useUtils } from '../internals/hooks/useUtils';
|
|
12
12
|
import { getDateTimePickerToolbarUtilityClass } from './dateTimePickerToolbarClasses';
|
|
13
|
+
import { resolveViewTypeFromView } from './shared';
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
16
|
|
|
@@ -117,7 +118,8 @@ export function DateTimePickerToolbar(inProps) {
|
|
|
117
118
|
toolbarTitle: toolbarTitle,
|
|
118
119
|
isMobileKeyboardViewOpen: isMobileKeyboardViewOpen,
|
|
119
120
|
toggleMobileKeyboardView: toggleMobileKeyboardView,
|
|
120
|
-
className: classes.root
|
|
121
|
+
className: classes.root,
|
|
122
|
+
viewType: resolveViewTypeFromView(openView)
|
|
121
123
|
}, other, {
|
|
122
124
|
isLandscape: false,
|
|
123
125
|
ownerState: ownerState,
|
|
@@ -5,7 +5,7 @@ import { DateTimeValidationError } from '../internals/hooks/validation/useDateTi
|
|
|
5
5
|
import { ValidationProps } from '../internals/hooks/validation/useValidation';
|
|
6
6
|
import { BasePickerProps } from '../internals/models/props/basePickerProps';
|
|
7
7
|
import { ExportedDateInputProps } from '../internals/components/PureDateInput';
|
|
8
|
-
import { CalendarOrClockPickerView } from '../internals/models';
|
|
8
|
+
import { CalendarOrClockPickerView, ViewType } from '../internals/models';
|
|
9
9
|
import { PickerStateValueManager } from '../internals/hooks/usePickerState';
|
|
10
10
|
import { BaseToolbarProps } from '../internals/models/props/baseToolbarProps';
|
|
11
11
|
import { DefaultizedProps } from '../internals/models/helpers';
|
|
@@ -77,3 +77,4 @@ export declare function useDateTimePickerDefaultizedProps<TInputDate, TDate, Pro
|
|
|
77
77
|
inputFormat: string;
|
|
78
78
|
}>;
|
|
79
79
|
export declare const dateTimePickerValueManager: PickerStateValueManager<any, any, any>;
|
|
80
|
+
export declare const resolveViewTypeFromView: (view: CalendarOrClockPickerView) => ViewType;
|
package/DateTimePicker/shared.js
CHANGED
|
@@ -43,4 +43,15 @@ export const dateTimePickerValueManager = {
|
|
|
43
43
|
getTodayValue: utils => utils.date(),
|
|
44
44
|
parseInput: parsePickerInputValue,
|
|
45
45
|
areValuesEqual: (utils, a, b) => utils.isEqual(a, b)
|
|
46
|
+
};
|
|
47
|
+
export const resolveViewTypeFromView = view => {
|
|
48
|
+
switch (view) {
|
|
49
|
+
case 'year':
|
|
50
|
+
case 'month':
|
|
51
|
+
case 'day':
|
|
52
|
+
return 'calendar';
|
|
53
|
+
|
|
54
|
+
default:
|
|
55
|
+
return 'clock';
|
|
56
|
+
}
|
|
46
57
|
};
|
package/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BaseToolbarProps } from '../models/props/baseToolbarProps';
|
|
3
3
|
import { PickersToolbarClasses } from './pickersToolbarClasses';
|
|
4
|
+
import { ViewType } from '../models';
|
|
4
5
|
export interface PickersToolbarProps<TDate, TValue> extends Pick<BaseToolbarProps<TDate, TValue>, 'getMobileKeyboardInputViewButtonText' | 'isMobileKeyboardViewOpen' | 'toggleMobileKeyboardView'> {
|
|
5
6
|
className?: string;
|
|
6
|
-
viewType?:
|
|
7
|
+
viewType?: ViewType;
|
|
7
8
|
isLandscape: boolean;
|
|
8
9
|
landscapeDirection?: 'row' | 'column';
|
|
9
10
|
toolbarTitle: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { CalendarOrClockPickerView } from '../views';
|
|
2
|
+
import { CalendarOrClockPickerView, ViewType } from '../views';
|
|
3
3
|
import type { PickerOnChangeFn } from '../../hooks/useViews';
|
|
4
4
|
import type { ExportedCalendarPickerProps } from '../../../CalendarPicker/CalendarPicker';
|
|
5
5
|
import type { ExportedClockPickerProps } from '../../../ClockPicker/ClockPicker';
|
|
@@ -11,10 +11,10 @@ export interface BaseToolbarProps<TDate, TValue> extends ExportedCalendarPickerP
|
|
|
11
11
|
* Text for aria label of the button switching between input and interactive view.
|
|
12
12
|
* @deprecated Use the translation key `inputModeToggleButtonAriaLabel` instead, see https://mui.com/x/react-date-pickers/localization
|
|
13
13
|
* @param {boolean} isKeyboardInputOpen Indicates if the interface is the keyboard input.
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {ViewType} viewType Indicates if the interface is about a date or a time.
|
|
15
15
|
* @returns {string} The arial label
|
|
16
16
|
*/
|
|
17
|
-
getMobileKeyboardInputViewButtonText?: (isKeyboardInputOpen: boolean, viewType:
|
|
17
|
+
getMobileKeyboardInputViewButtonText?: (isKeyboardInputOpen: boolean, viewType: ViewType) => string;
|
|
18
18
|
isLandscape: boolean;
|
|
19
19
|
onChange: PickerOnChangeFn<TDate>;
|
|
20
20
|
openView: CalendarOrClockPickerView;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare type CalendarPickerView = 'year' | 'day' | 'month';
|
|
2
2
|
export declare type ClockPickerView = 'hours' | 'minutes' | 'seconds';
|
|
3
3
|
export declare type CalendarOrClockPickerView = CalendarPickerView | ClockPickerView;
|
|
4
|
+
export declare type ViewType = 'calendar' | 'clock';
|
|
@@ -11,6 +11,7 @@ import { pickersToolbarClasses } from '../internals/components/pickersToolbarCla
|
|
|
11
11
|
import { PickersToolbarButton } from '../internals/components/PickersToolbarButton';
|
|
12
12
|
import { useLocaleText, useUtils } from '../internals/hooks/useUtils';
|
|
13
13
|
import { getDateTimePickerToolbarUtilityClass } from './dateTimePickerToolbarClasses';
|
|
14
|
+
import { resolveViewTypeFromView } from './shared';
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
|
|
@@ -126,7 +127,8 @@ export function DateTimePickerToolbar(inProps) {
|
|
|
126
127
|
toolbarTitle: toolbarTitle,
|
|
127
128
|
isMobileKeyboardViewOpen: isMobileKeyboardViewOpen,
|
|
128
129
|
toggleMobileKeyboardView: toggleMobileKeyboardView,
|
|
129
|
-
className: classes.root
|
|
130
|
+
className: classes.root,
|
|
131
|
+
viewType: resolveViewTypeFromView(openView)
|
|
130
132
|
}, other, {
|
|
131
133
|
isLandscape: false,
|
|
132
134
|
ownerState: ownerState,
|
|
@@ -47,4 +47,15 @@ export var dateTimePickerValueManager = {
|
|
|
47
47
|
areValuesEqual: function areValuesEqual(utils, a, b) {
|
|
48
48
|
return utils.isEqual(a, b);
|
|
49
49
|
}
|
|
50
|
+
};
|
|
51
|
+
export var resolveViewTypeFromView = function resolveViewTypeFromView(view) {
|
|
52
|
+
switch (view) {
|
|
53
|
+
case 'year':
|
|
54
|
+
case 'month':
|
|
55
|
+
case 'day':
|
|
56
|
+
return 'calendar';
|
|
57
|
+
|
|
58
|
+
default:
|
|
59
|
+
return 'clock';
|
|
60
|
+
}
|
|
50
61
|
};
|
package/legacy/index.js
CHANGED
package/legacy/locales/deDE.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
1
|
+
import { getPickersLocalization } from './utils/getPickersLocalization'; // maps ClockPickerView to its translation
|
|
2
|
+
|
|
3
3
|
var clockViews = {
|
|
4
4
|
hours: 'Stunden',
|
|
5
5
|
minutes: 'Minuten',
|
package/legacy/locales/enUS.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
1
|
+
import { getPickersLocalization } from './utils/getPickersLocalization'; // This object is not Partial<PickersLocaleText> because it is the default values
|
|
2
|
+
|
|
3
3
|
var enUSPickers = {
|
|
4
4
|
// Calendar navigation
|
|
5
5
|
previousMonth: 'Previous month',
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { getPickersLocalization } from './utils/getPickersLocalization'; // maps TimeView to its translation
|
|
2
|
+
|
|
3
|
+
var timeViews = {
|
|
4
|
+
hours: 'Óra',
|
|
5
|
+
minutes: 'Perc',
|
|
6
|
+
seconds: 'Másodperc'
|
|
7
|
+
}; // maps PickersToolbar["viewType"] to its translation
|
|
8
|
+
|
|
9
|
+
var pickerViews = {
|
|
10
|
+
calendar: 'naptár',
|
|
11
|
+
clock: 'óra'
|
|
12
|
+
};
|
|
13
|
+
var huHUPickers = {
|
|
14
|
+
// Calendar navigation
|
|
15
|
+
previousMonth: 'Előző hónap',
|
|
16
|
+
nextMonth: 'Következő hónap',
|
|
17
|
+
// View navigation
|
|
18
|
+
openPreviousView: 'Előző nézet megnyitása',
|
|
19
|
+
openNextView: 'Következő nézet megnyitása',
|
|
20
|
+
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
21
|
+
return view === 'year' ? 'az évválasztó már nyitva, váltson a naptárnézetre' : 'a naptárnézet már nyitva, váltson az évválasztóra';
|
|
22
|
+
},
|
|
23
|
+
inputModeToggleButtonAriaLabel: function inputModeToggleButtonAriaLabel(isKeyboardInputOpen, viewType) {
|
|
24
|
+
return isKeyboardInputOpen ? "sz\xF6veges beviteli n\xE9zet akt\xEDv, v\xE1lt\xE1s ".concat(pickerViews[viewType], " n\xE9zetre") : "".concat(pickerViews[viewType], " beviteli n\xE9zet akt\xEDv, v\xE1lt\xE1s sz\xF6veges beviteli n\xE9zetre");
|
|
25
|
+
},
|
|
26
|
+
// DateRange placeholders
|
|
27
|
+
start: 'Kezdő dátum',
|
|
28
|
+
end: 'Záró dátum',
|
|
29
|
+
// Action bar
|
|
30
|
+
cancelButtonLabel: 'Mégse',
|
|
31
|
+
clearButtonLabel: 'Törlés',
|
|
32
|
+
okButtonLabel: 'OK',
|
|
33
|
+
todayButtonLabel: 'Ma',
|
|
34
|
+
// Toolbar titles
|
|
35
|
+
datePickerDefaultToolbarTitle: 'Dátum kiválasztása',
|
|
36
|
+
dateTimePickerDefaultToolbarTitle: 'Dátum és idő kiválasztása',
|
|
37
|
+
timePickerDefaultToolbarTitle: 'Idő kiválasztása',
|
|
38
|
+
dateRangePickerDefaultToolbarTitle: 'Dátumhatárok kiválasztása',
|
|
39
|
+
// Clock labels
|
|
40
|
+
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
41
|
+
var _timeViews$view;
|
|
42
|
+
|
|
43
|
+
return "".concat((_timeViews$view = timeViews[view]) != null ? _timeViews$view : view, " kiv\xE1laszt\xE1sa. ").concat(time === null ? 'Nincs kiválasztva idő' : "A kiv\xE1lasztott id\u0151 ".concat(adapter.format(time, 'fullTime')));
|
|
44
|
+
},
|
|
45
|
+
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
46
|
+
return "".concat(hours, " ").concat(timeViews.hours.toLowerCase());
|
|
47
|
+
},
|
|
48
|
+
minutesClockNumberText: function minutesClockNumberText(minutes) {
|
|
49
|
+
return "".concat(minutes, " ").concat(timeViews.minutes.toLowerCase());
|
|
50
|
+
},
|
|
51
|
+
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
52
|
+
return "".concat(seconds, " ").concat(timeViews.seconds.toLowerCase());
|
|
53
|
+
},
|
|
54
|
+
// Open picker labels
|
|
55
|
+
openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
|
|
56
|
+
return value !== null && utils.isValid(value) ? "V\xE1lasszon d\xE1tumot, a kiv\xE1lasztott d\xE1tum: ".concat(utils.format(value, 'fullDate')) : 'Válasszon dátumot';
|
|
57
|
+
},
|
|
58
|
+
openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
|
|
59
|
+
return value !== null && utils.isValid(value) ? "V\xE1lasszon id\u0151t, a kiv\xE1lasztott id\u0151: ".concat(utils.format(value, 'fullTime')) : 'Válasszon időt';
|
|
60
|
+
},
|
|
61
|
+
// Table labels
|
|
62
|
+
timeTableLabel: 'válasszon időt',
|
|
63
|
+
dateTableLabel: 'válasszon dátumot'
|
|
64
|
+
};
|
|
65
|
+
export var huHU = getPickersLocalization(huHUPickers);
|
package/legacy/locales/index.js
CHANGED
package/legacy/locales/jaJP.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
1
|
+
import { getPickersLocalization } from './utils/getPickersLocalization'; // maps ClockPickerView to its translation
|
|
2
|
+
|
|
3
3
|
var clockViews = {
|
|
4
4
|
hours: '時間',
|
|
5
5
|
minutes: '分',
|
package/legacy/locales/nbNO.js
CHANGED
|
@@ -9,7 +9,7 @@ var nbNOPickers = {
|
|
|
9
9
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
10
10
|
return view === 'year' ? 'årsvisning er åpen, bytt til kalendervisning' : 'kalendervisning er åpen, bytt til årsvisning';
|
|
11
11
|
},
|
|
12
|
-
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen
|
|
12
|
+
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `text input view is open, go to ${viewType} view` : `${viewType} view is open, go to text input view`,
|
|
13
13
|
// DateRange placeholders
|
|
14
14
|
start: 'Start',
|
|
15
15
|
end: 'Slutt',
|
package/legacy/locales/nlNL.js
CHANGED
|
@@ -9,7 +9,7 @@ var nlNLPickers = {
|
|
|
9
9
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
10
10
|
return view === 'year' ? 'jaarweergave is geopend, schakel over naar kalenderweergave' : 'kalenderweergave is geopend, switch naar jaarweergave';
|
|
11
11
|
},
|
|
12
|
-
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen
|
|
12
|
+
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `text input view is open, go to ${viewType} view` : `${viewType} view is open, go to text input view`,
|
|
13
13
|
// DateRange placeholders
|
|
14
14
|
start: 'Start',
|
|
15
15
|
end: 'Einde',
|
package/legacy/locales/plPL.js
CHANGED
|
@@ -9,7 +9,7 @@ var plPLPickers = {
|
|
|
9
9
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
10
10
|
return view === 'year' ? 'otwarty jest widok roku, przełącz na widok kalendarza' : 'otwarty jest widok kalendarza, przełącz na widok roku';
|
|
11
11
|
},
|
|
12
|
-
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen
|
|
12
|
+
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `text input view is open, go to ${viewType} view` : `${viewType} view is open, go to text input view`,
|
|
13
13
|
// DateRange placeholders
|
|
14
14
|
start: 'Początek',
|
|
15
15
|
end: 'Koniec',
|
package/legacy/locales/ptBR.js
CHANGED
|
@@ -9,7 +9,7 @@ var ptBRPickers = {
|
|
|
9
9
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
10
10
|
return view === 'year' ? 'Seleção de ano está aberta, alternando para seleção de calendário' : 'Seleção de calendários está aberta, alternando para seleção de ano';
|
|
11
11
|
},
|
|
12
|
-
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen
|
|
12
|
+
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `text input view is open, go to ${viewType} view` : `${viewType} view is open, go to text input view`,
|
|
13
13
|
// DateRange placeholders
|
|
14
14
|
start: 'Início',
|
|
15
15
|
end: 'Fim',
|
package/legacy/locales/svSE.js
CHANGED
|
@@ -9,7 +9,7 @@ var svSEPickers = {
|
|
|
9
9
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
10
10
|
return view === 'year' ? 'årsvyn är öppen, byt till kalendervy' : 'kalendervyn är öppen, byt till årsvy';
|
|
11
11
|
},
|
|
12
|
-
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen
|
|
12
|
+
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `text input view is open, go to ${viewType} view` : `${viewType} view is open, go to text input view`,
|
|
13
13
|
// DateRange placeholders
|
|
14
14
|
start: 'Start',
|
|
15
15
|
end: 'Slut',
|
package/legacy/locales/zhCN.js
CHANGED
|
@@ -14,7 +14,7 @@ var zhCNPickers = {
|
|
|
14
14
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
15
15
|
return view === 'year' ? '年视图已打开,切换为日历视图' : '日历视图已打开,切换为年视图';
|
|
16
16
|
},
|
|
17
|
-
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen
|
|
17
|
+
// inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `text input view is open, go to ${viewType} view` : `${viewType} view is open, go to text input view`,
|
|
18
18
|
// DateRange placeholders
|
|
19
19
|
start: '开始',
|
|
20
20
|
end: '结束',
|
package/locales/beBY.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const beBY: {
|
|
|
15
15
|
start?: string | undefined;
|
|
16
16
|
end?: string | undefined;
|
|
17
17
|
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
18
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
18
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
19
19
|
clockLabelText?: ((view: import("../internals/models").ClockPickerView, time: any, adapter: import("../internals/models").MuiPickersAdapter<any>) => string) | undefined;
|
|
20
20
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
21
21
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/csCZ.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const csCZ: {
|
|
|
14
14
|
start?: string | undefined;
|
|
15
15
|
end?: string | undefined;
|
|
16
16
|
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
18
|
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
19
19
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
20
20
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/deDE.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CalendarPickerView } from '../internals/models';
|
|
2
1
|
export declare const deDE: {
|
|
3
2
|
components: {
|
|
4
3
|
MuiLocalizationProvider: {
|
|
@@ -14,14 +13,14 @@ export declare const deDE: {
|
|
|
14
13
|
todayButtonLabel?: string | undefined;
|
|
15
14
|
start?: string | undefined;
|
|
16
15
|
end?: string | undefined;
|
|
17
|
-
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
18
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
19
|
-
clockLabelText?: ((view: import("
|
|
16
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
20
19
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
21
20
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
22
21
|
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
23
|
-
openDatePickerDialogue?: ((date: any, utils: import("../internals
|
|
24
|
-
openTimePickerDialogue?: ((date: any, utils: import("../internals
|
|
22
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
23
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
25
24
|
timeTableLabel?: string | undefined;
|
|
26
25
|
dateTableLabel?: string | undefined;
|
|
27
26
|
datePickerDefaultToolbarTitle?: string | undefined;
|
package/locales/deDE.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
1
|
+
import { getPickersLocalization } from './utils/getPickersLocalization'; // maps ClockPickerView to its translation
|
|
2
|
+
|
|
3
3
|
const clockViews = {
|
|
4
4
|
hours: 'Stunden',
|
|
5
5
|
minutes: 'Minuten',
|
package/locales/enUS.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PickersLocaleText } from './utils/pickersLocaleTextApi';
|
|
2
|
-
import { CalendarPickerView } from '../internals/models';
|
|
3
2
|
export declare const DEFAULT_LOCALE: PickersLocaleText<any>;
|
|
4
3
|
export declare const enUS: {
|
|
5
4
|
components: {
|
|
@@ -16,14 +15,14 @@ export declare const enUS: {
|
|
|
16
15
|
todayButtonLabel?: string | undefined;
|
|
17
16
|
start?: string | undefined;
|
|
18
17
|
end?: string | undefined;
|
|
19
|
-
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
20
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
21
|
-
clockLabelText?: ((view: import("
|
|
18
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
19
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
20
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
22
21
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
23
22
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
24
23
|
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
25
|
-
openDatePickerDialogue?: ((date: any, utils: import("../internals
|
|
26
|
-
openTimePickerDialogue?: ((date: any, utils: import("../internals
|
|
24
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
25
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
27
26
|
timeTableLabel?: string | undefined;
|
|
28
27
|
dateTableLabel?: string | undefined;
|
|
29
28
|
datePickerDefaultToolbarTitle?: string | undefined;
|
package/locales/enUS.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
1
|
+
import { getPickersLocalization } from './utils/getPickersLocalization'; // This object is not Partial<PickersLocaleText> because it is the default values
|
|
2
|
+
|
|
3
3
|
const enUSPickers = {
|
|
4
4
|
// Calendar navigation
|
|
5
5
|
previousMonth: 'Previous month',
|
package/locales/esES.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CalendarPickerView } from '../internals/models';
|
|
2
1
|
export declare const esES: {
|
|
3
2
|
components: {
|
|
4
3
|
MuiLocalizationProvider: {
|
|
@@ -14,14 +13,14 @@ export declare const esES: {
|
|
|
14
13
|
todayButtonLabel?: string | undefined;
|
|
15
14
|
start?: string | undefined;
|
|
16
15
|
end?: string | undefined;
|
|
17
|
-
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
18
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
19
|
-
clockLabelText?: ((view: import("
|
|
16
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
20
19
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
21
20
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
22
21
|
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
23
|
-
openDatePickerDialogue?: ((date: any, utils: import("../internals
|
|
24
|
-
openTimePickerDialogue?: ((date: any, utils: import("../internals
|
|
22
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
23
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
25
24
|
timeTableLabel?: string | undefined;
|
|
26
25
|
dateTableLabel?: string | undefined;
|
|
27
26
|
datePickerDefaultToolbarTitle?: string | undefined;
|
package/locales/faIR.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CalendarPickerView } from '../internals/models';
|
|
2
1
|
export declare const faIR: {
|
|
3
2
|
components: {
|
|
4
3
|
MuiLocalizationProvider: {
|
|
@@ -14,14 +13,14 @@ export declare const faIR: {
|
|
|
14
13
|
todayButtonLabel?: string | undefined;
|
|
15
14
|
start?: string | undefined;
|
|
16
15
|
end?: string | undefined;
|
|
17
|
-
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
18
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
19
|
-
clockLabelText?: ((view: import("
|
|
16
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
20
19
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
21
20
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
22
21
|
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
23
|
-
openDatePickerDialogue?: ((date: any, utils: import("../internals
|
|
24
|
-
openTimePickerDialogue?: ((date: any, utils: import("../internals
|
|
22
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
23
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
25
24
|
timeTableLabel?: string | undefined;
|
|
26
25
|
dateTableLabel?: string | undefined;
|
|
27
26
|
datePickerDefaultToolbarTitle?: string | undefined;
|
package/locales/fiFI.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CalendarPickerView } from '../internals/models';
|
|
2
1
|
export declare const fiFI: {
|
|
3
2
|
components: {
|
|
4
3
|
MuiLocalizationProvider: {
|
|
@@ -14,14 +13,14 @@ export declare const fiFI: {
|
|
|
14
13
|
todayButtonLabel?: string | undefined;
|
|
15
14
|
start?: string | undefined;
|
|
16
15
|
end?: string | undefined;
|
|
17
|
-
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
18
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
19
|
-
clockLabelText?: ((view: import("
|
|
16
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
20
19
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
21
20
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
22
21
|
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
23
|
-
openDatePickerDialogue?: ((date: any, utils: import("../internals
|
|
24
|
-
openTimePickerDialogue?: ((date: any, utils: import("../internals
|
|
22
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
23
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
25
24
|
timeTableLabel?: string | undefined;
|
|
26
25
|
dateTableLabel?: string | undefined;
|
|
27
26
|
datePickerDefaultToolbarTitle?: string | undefined;
|
package/locales/frFR.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CalendarPickerView } from '../internals/models';
|
|
2
1
|
export declare const frFR: {
|
|
3
2
|
components: {
|
|
4
3
|
MuiLocalizationProvider: {
|
|
@@ -14,14 +13,14 @@ export declare const frFR: {
|
|
|
14
13
|
todayButtonLabel?: string | undefined;
|
|
15
14
|
start?: string | undefined;
|
|
16
15
|
end?: string | undefined;
|
|
17
|
-
calendarViewSwitchingButtonAriaLabel?: ((currentView: CalendarPickerView) => string) | undefined;
|
|
18
|
-
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: "
|
|
19
|
-
clockLabelText?: ((view: import("
|
|
16
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
20
19
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
21
20
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
22
21
|
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
23
|
-
openDatePickerDialogue?: ((date: any, utils: import("../internals
|
|
24
|
-
openTimePickerDialogue?: ((date: any, utils: import("../internals
|
|
22
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
23
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
25
24
|
timeTableLabel?: string | undefined;
|
|
26
25
|
dateTableLabel?: string | undefined;
|
|
27
26
|
datePickerDefaultToolbarTitle?: string | undefined;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const huHU: {
|
|
2
|
+
components: {
|
|
3
|
+
MuiLocalizationProvider: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
localeText: {
|
|
6
|
+
previousMonth?: string | undefined;
|
|
7
|
+
nextMonth?: string | undefined;
|
|
8
|
+
openPreviousView?: string | undefined;
|
|
9
|
+
openNextView?: string | undefined;
|
|
10
|
+
cancelButtonLabel?: string | undefined;
|
|
11
|
+
clearButtonLabel?: string | undefined;
|
|
12
|
+
okButtonLabel?: string | undefined;
|
|
13
|
+
todayButtonLabel?: string | undefined;
|
|
14
|
+
start?: string | undefined;
|
|
15
|
+
end?: string | undefined;
|
|
16
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: import("..").CalendarPickerView) => string) | undefined;
|
|
17
|
+
inputModeToggleButtonAriaLabel?: ((isKeyboardInputOpen: boolean, viewType: import("../internals/models").ViewType) => string) | undefined;
|
|
18
|
+
clockLabelText?: ((view: import("..").ClockPickerView, time: any, adapter: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
19
|
+
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
20
|
+
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
21
|
+
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
22
|
+
openDatePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
23
|
+
openTimePickerDialogue?: ((date: any, utils: import("../internals").MuiPickersAdapter<any>) => string) | undefined;
|
|
24
|
+
timeTableLabel?: string | undefined;
|
|
25
|
+
dateTableLabel?: string | undefined;
|
|
26
|
+
datePickerDefaultToolbarTitle?: string | undefined;
|
|
27
|
+
dateTimePickerDefaultToolbarTitle?: string | undefined;
|
|
28
|
+
timePickerDefaultToolbarTitle?: string | undefined;
|
|
29
|
+
dateRangePickerDefaultToolbarTitle?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|