@mui/x-date-pickers 6.18.0 → 6.18.2

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +116 -5
  2. package/DateCalendar/DateCalendar.js +1 -0
  3. package/DateCalendar/DateCalendar.types.d.ts +1 -0
  4. package/DateCalendar/useCalendarState.js +1 -1
  5. package/DatePicker/DatePicker.js +1 -0
  6. package/DateTimePicker/DateTimePicker.js +1 -0
  7. package/DesktopDatePicker/DesktopDatePicker.js +1 -0
  8. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
  9. package/MobileDatePicker/MobileDatePicker.js +1 -0
  10. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
  11. package/StaticDatePicker/StaticDatePicker.js +1 -0
  12. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
  13. package/index.js +1 -1
  14. package/internals/hooks/useViews.js +2 -1
  15. package/legacy/DateCalendar/DateCalendar.js +1 -0
  16. package/legacy/DateCalendar/useCalendarState.js +1 -1
  17. package/legacy/DatePicker/DatePicker.js +1 -0
  18. package/legacy/DateTimePicker/DateTimePicker.js +1 -0
  19. package/legacy/DesktopDatePicker/DesktopDatePicker.js +1 -0
  20. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
  21. package/legacy/MobileDatePicker/MobileDatePicker.js +1 -0
  22. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
  23. package/legacy/StaticDatePicker/StaticDatePicker.js +1 -0
  24. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
  25. package/legacy/index.js +1 -1
  26. package/legacy/internals/hooks/useViews.js +2 -1
  27. package/legacy/locales/deDE.js +4 -3
  28. package/legacy/locales/esES.js +6 -7
  29. package/legacy/locales/eu.js +94 -0
  30. package/legacy/locales/index.js +2 -0
  31. package/legacy/locales/mk.js +91 -0
  32. package/locales/deDE.js +2 -3
  33. package/locales/esES.js +6 -7
  34. package/locales/eu.d.ts +54 -0
  35. package/locales/eu.js +58 -0
  36. package/locales/index.d.ts +2 -0
  37. package/locales/index.js +2 -0
  38. package/locales/mk.d.ts +53 -0
  39. package/locales/mk.js +55 -0
  40. package/modern/DateCalendar/DateCalendar.js +1 -0
  41. package/modern/DateCalendar/useCalendarState.js +1 -1
  42. package/modern/DatePicker/DatePicker.js +1 -0
  43. package/modern/DateTimePicker/DateTimePicker.js +1 -0
  44. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -0
  45. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
  46. package/modern/MobileDatePicker/MobileDatePicker.js +1 -0
  47. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
  48. package/modern/StaticDatePicker/StaticDatePicker.js +1 -0
  49. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
  50. package/modern/index.js +1 -1
  51. package/modern/internals/hooks/useViews.js +2 -1
  52. package/modern/locales/deDE.js +2 -3
  53. package/modern/locales/esES.js +6 -7
  54. package/modern/locales/eu.js +58 -0
  55. package/modern/locales/index.js +2 -0
  56. package/modern/locales/mk.js +55 -0
  57. package/node/DateCalendar/DateCalendar.js +1 -0
  58. package/node/DateCalendar/useCalendarState.js +1 -1
  59. package/node/DatePicker/DatePicker.js +1 -0
  60. package/node/DateTimePicker/DateTimePicker.js +1 -0
  61. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -0
  62. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
  63. package/node/MobileDatePicker/MobileDatePicker.js +1 -0
  64. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
  65. package/node/StaticDatePicker/StaticDatePicker.js +1 -0
  66. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
  67. package/node/index.js +1 -1
  68. package/node/internals/hooks/useViews.js +2 -1
  69. package/node/locales/deDE.js +2 -3
  70. package/node/locales/esES.js +6 -7
  71. package/node/locales/eu.js +64 -0
  72. package/node/locales/index.js +22 -0
  73. package/node/locales/mk.js +60 -0
  74. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,117 @@
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.2
7
+
8
+ _Nov 23, 2023_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Arabic (ar-SD), Czech (cs-CZ), and Hebrew (he-IL) locales on Data Grid
13
+ - 🌍 Add Basque (eu) and Macedonian (mk) locales on Pickers
14
+ - 🌍 Improve German (de-DE) and Spanish (es-ES) locales on Pickers
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@6.18.2`
21
+
22
+ - [l10n] Improve Arabic (ar-SD) locale (#11096) @OmarWebDev
23
+ - [l10n] Improve Czech (cs-CZ) locale (#10968) @luborepka
24
+ - [l10n] Improve Hebrew (he-IL) locale (#11056) @LironKiloma
25
+
26
+ #### `@mui/x-data-grid-pro@6.18.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
+
28
+ Same changes as in `@mui/x-data-grid@6.18.2`.
29
+
30
+ #### `@mui/x-data-grid-premium@6.18.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
+
32
+ Same changes as in `@mui/x-data-grid-pro@6.18.2`.
33
+
34
+ ### Date Pickers
35
+
36
+ #### `@mui/x-date-pickers@6.18.2`
37
+
38
+ - [l10n] Add Basque (eu) locale and improve Spanish (es-ES) locale (#10985) @lajtomekadimon
39
+ - [l10n] Add Macedonian (mk) locale (#11155) @brsnik
40
+ - [l10n] Improve German (de-DE) locale (#11104) @jho-vema
41
+ - [pickers] Deprecate `defaultCalendarMonth` prop (#11138) @flaviendelangle
42
+ - [pickers] Fix `DateCalendar` crashing when given an invalid value (#11101) @flaviendelangle
43
+
44
+ #### `@mui/x-date-pickers-pro@6.18.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
45
+
46
+ Same changes as in `@mui/x-date-pickers@6.18.2`.
47
+
48
+ ### Charts / `@mui/x-charts@6.18.2`
49
+
50
+ - [charts] Fix `ChartsTooltip` component setup (#11157) @LukasTy
51
+ - [charts] Remove outdated prop-types (#10998) @alexfauquette
52
+
53
+ ### Docs
54
+
55
+ - [docs] Fix incoherent naming of a component in `Custom slots and subcomponents` page (#11003) @lhilgert9
56
+ - [test] Skip flaky e2e test in webkit (#11115) @cherniavskii
57
+ - [test] Wait for images to load (#11109) @cherniavskii
58
+
59
+ ## 6.18.1
60
+
61
+ _Nov 9, 2023_
62
+
63
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
64
+
65
+ - ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
66
+ - 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) published
67
+ - 📈 `<ChartsReferenceLine />` component is now available
68
+ - 🐞 Bugfixes
69
+ - 📚 Documentation improvements
70
+
71
+ ### Data Grid
72
+
73
+ #### `@mui/x-data-grid@6.18.1`
74
+
75
+ - [DataGrid] Fix cell value type in quick filtering v7 (#10884) @cherniavskii
76
+ - [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10947) @michelengelen
77
+ - [DataGrid] Fix `undefined` slot values (#10934) @romgrk
78
+
79
+ #### `@mui/x-data-grid-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
80
+
81
+ Same changes as in `@mui/x-data-grid@6.18.1`, plus:
82
+
83
+ - [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi
84
+
85
+ #### `@mui/x-data-grid-premium@6.18.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
86
+
87
+ Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus:
88
+
89
+ - [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii
90
+
91
+ ### Date Pickers
92
+
93
+ #### `@mui/x-date-pickers@6.18.1`
94
+
95
+ - [fields] Fix multi input date time field section selection (#10915) @noraleonte
96
+ - [pickers] Always use up-to-date `defaultView` (#10889) @LukasTy
97
+
98
+ #### `@mui/x-date-pickers-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
99
+
100
+ Same changes as in `@mui/x-date-pickers@6.18.1`.
101
+
102
+ ### Charts / `@mui/x-charts@6.18.1`
103
+
104
+ - [charts] Add `<ChartsReferenceLine />` component (#10597) @wascou
105
+ - [charts] Improve properties JSDoc (#10931) @alexfauquette
106
+
107
+ ### Docs
108
+
109
+ - [docs] Fix charts docs as stable (#10888) @alexfauquette
110
+ - [docs] Document how to hide the legend (#10954) @alexfauquette
111
+
112
+ ### Core
113
+
114
+ - [core] Adds new alpha version to version select on the docs (#10944) @michelengelen
115
+ - [core] Fix GitHub title tag consistency @oliviertassinari
116
+
6
117
  ## 6.18.0
7
118
 
8
119
  _Nov 3, 2023_
@@ -357,7 +468,7 @@ Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
357
468
 
358
469
  - [core] Fix casing consistency with legal and marketing content @oliviertassinari
359
470
  - [core] Revert the link in the priority support ticket description (#10517) @michelengelen
360
- - [CHANGELOG] Polish image @oliviertassinari
471
+ - [changelog] Polish image @oliviertassinari
361
472
 
362
473
  ## 6.16.0
363
474
 
@@ -1149,7 +1260,7 @@ Same changes as in `@mui/x-date-pickers@6.10.1`.
1149
1260
  ### Core
1150
1261
 
1151
1262
  - [core] Add `validate` command (#9714) @romgrk
1152
- - [CHANGELOG] Update generator to new format @oliviertassinari
1263
+ - [changelog] Update generator to new format @oliviertassinari
1153
1264
 
1154
1265
  ## 6.10.0
1155
1266
 
@@ -1207,7 +1318,7 @@ Same changes as in `@mui/x-date-pickers@6.10.0`.
1207
1318
 
1208
1319
  - [core] Disambiguate eslint plugin name @oliviertassinari
1209
1320
  - [core] Update priority support issue template and prompt (#9574) @DanailH
1210
- - [CHANGELOG] Clarify each plan (#9446) @oliviertassinari
1321
+ - [changelog] Clarify each plan (#9446) @oliviertassinari
1211
1322
  - [license] Fix error terminology (#9614) @oliviertassinari
1212
1323
 
1213
1324
  ## 6.9.2
@@ -1356,8 +1467,8 @@ Same changes as in `@mui/x-date-pickers@6.9.1`.
1356
1467
  - [core] Fix priority support prompt action (#9472) @DanailH
1357
1468
  - [core] Update `uses` for priority support action (#9480) @DanailH
1358
1469
  - [core] Bumb update monorepo (#9476) @alexfauquette
1359
- - [CHANGELOG] Fix media quality (#9439) @oliviertassinari
1360
- - [CHANGELOG] Remove height img attribute @oliviertassinari
1470
+ - [changelog] Fix media quality (#9439) @oliviertassinari
1471
+ - [changelog] Remove height img attribute @oliviertassinari
1361
1472
  - [test] Skip flaky row pinning tests in JSDOM (#9511) @cherniavskii
1362
1473
 
1363
1474
  ## 6.9.0
@@ -386,6 +386,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
386
386
  dayOfWeekFormatter: PropTypes.func,
387
387
  /**
388
388
  * Default calendar month displayed when `value` and `defaultValue` are empty.
389
+ * @deprecated Consider using `referenceDate` instead.
389
390
  */
390
391
  defaultCalendarMonth: PropTypes.any,
391
392
  /**
@@ -27,6 +27,7 @@ export interface DateCalendarSlotsComponentsProps<TDate> extends PickersCalendar
27
27
  export interface ExportedDateCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, ExportedMonthCalendarProps, ExportedYearCalendarProps, BaseDateValidationProps<TDate>, DayValidationProps<TDate>, YearValidationProps<TDate>, MonthValidationProps<TDate>, TimezoneProps {
28
28
  /**
29
29
  * Default calendar month displayed when `value` and `defaultValue` are empty.
30
+ * @deprecated Consider using `referenceDate` instead.
30
31
  */
31
32
  defaultCalendarMonth?: TDate;
32
33
  /**
@@ -73,7 +73,7 @@ export const useCalendarState = params => {
73
73
 
74
74
  const [calendarState, dispatch] = React.useReducer(reducerFn, {
75
75
  isMonthSwitchingAnimating: false,
76
- focusedDay: value || now,
76
+ focusedDay: utils.isValid(value) ? value : now,
77
77
  currentMonth: utils.startOfMonth(referenceDate),
78
78
  slideDirection: 'left'
79
79
  });
@@ -86,6 +86,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
86
86
  dayOfWeekFormatter: PropTypes.func,
87
87
  /**
88
88
  * Default calendar month displayed when `value` and `defaultValue` are empty.
89
+ * @deprecated Consider using `referenceDate` instead.
89
90
  */
90
91
  defaultCalendarMonth: PropTypes.any,
91
92
  /**
@@ -96,6 +96,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
96
96
  dayOfWeekFormatter: PropTypes.func,
97
97
  /**
98
98
  * Default calendar month displayed when `value` and `defaultValue` are empty.
99
+ * @deprecated Consider using `referenceDate` instead.
99
100
  */
100
101
  defaultCalendarMonth: PropTypes.any,
101
102
  /**
@@ -110,6 +110,7 @@ DesktopDatePicker.propTypes = {
110
110
  dayOfWeekFormatter: PropTypes.func,
111
111
  /**
112
112
  * Default calendar month displayed when `value` and `defaultValue` are empty.
113
+ * @deprecated Consider using `referenceDate` instead.
113
114
  */
114
115
  defaultCalendarMonth: PropTypes.any,
115
116
  /**
@@ -159,6 +159,7 @@ DesktopDateTimePicker.propTypes = {
159
159
  dayOfWeekFormatter: PropTypes.func,
160
160
  /**
161
161
  * Default calendar month displayed when `value` and `defaultValue` are empty.
162
+ * @deprecated Consider using `referenceDate` instead.
162
163
  */
163
164
  defaultCalendarMonth: PropTypes.any,
164
165
  /**
@@ -107,6 +107,7 @@ MobileDatePicker.propTypes = {
107
107
  dayOfWeekFormatter: PropTypes.func,
108
108
  /**
109
109
  * Default calendar month displayed when `value` and `defaultValue` are empty.
110
+ * @deprecated Consider using `referenceDate` instead.
110
111
  */
111
112
  defaultCalendarMonth: PropTypes.any,
112
113
  /**
@@ -128,6 +128,7 @@ MobileDateTimePicker.propTypes = {
128
128
  dayOfWeekFormatter: PropTypes.func,
129
129
  /**
130
130
  * Default calendar month displayed when `value` and `defaultValue` are empty.
131
+ * @deprecated Consider using `referenceDate` instead.
131
132
  */
132
133
  defaultCalendarMonth: PropTypes.any,
133
134
  /**
@@ -86,6 +86,7 @@ StaticDatePicker.propTypes = {
86
86
  dayOfWeekFormatter: PropTypes.func,
87
87
  /**
88
88
  * Default calendar month displayed when `value` and `defaultValue` are empty.
89
+ * @deprecated Consider using `referenceDate` instead.
89
90
  */
90
91
  defaultCalendarMonth: PropTypes.any,
91
92
  /**
@@ -106,6 +106,7 @@ StaticDateTimePicker.propTypes = {
106
106
  dayOfWeekFormatter: PropTypes.func,
107
107
  /**
108
108
  * Default calendar month displayed when `value` and `defaultValue` are empty.
109
+ * @deprecated Consider using `referenceDate` instead.
109
110
  */
110
111
  defaultCalendarMonth: PropTypes.any,
111
112
  /**
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.0
2
+ * @mui/x-date-pickers v6.18.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -106,7 +106,8 @@ export function useViews({
106
106
  setFocusedView: handleFocusedViewChange,
107
107
  nextView,
108
108
  previousView,
109
- defaultView: defaultView.current,
109
+ // Always return up to date default view instead of the initial one (i.e. defaultView.current)
110
+ defaultView: views.includes(openTo) ? openTo : views[0],
110
111
  goToNextView,
111
112
  setValueAndGoToNextView,
112
113
  setValueAndGoToView
@@ -395,6 +395,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
395
395
  dayOfWeekFormatter: PropTypes.func,
396
396
  /**
397
397
  * Default calendar month displayed when `value` and `defaultValue` are empty.
398
+ * @deprecated Consider using `referenceDate` instead.
398
399
  */
399
400
  defaultCalendarMonth: PropTypes.any,
400
401
  /**
@@ -75,7 +75,7 @@ export var useCalendarState = function useCalendarState(params) {
75
75
 
76
76
  var _React$useReducer = React.useReducer(reducerFn, {
77
77
  isMonthSwitchingAnimating: false,
78
- focusedDay: value || now,
78
+ focusedDay: utils.isValid(value) ? value : now,
79
79
  currentMonth: utils.startOfMonth(referenceDate),
80
80
  slideDirection: 'left'
81
81
  }),
@@ -85,6 +85,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
85
85
  dayOfWeekFormatter: PropTypes.func,
86
86
  /**
87
87
  * Default calendar month displayed when `value` and `defaultValue` are empty.
88
+ * @deprecated Consider using `referenceDate` instead.
88
89
  */
89
90
  defaultCalendarMonth: PropTypes.any,
90
91
  /**
@@ -95,6 +95,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
95
95
  dayOfWeekFormatter: PropTypes.func,
96
96
  /**
97
97
  * Default calendar month displayed when `value` and `defaultValue` are empty.
98
+ * @deprecated Consider using `referenceDate` instead.
98
99
  */
99
100
  defaultCalendarMonth: PropTypes.any,
100
101
  /**
@@ -109,6 +109,7 @@ DesktopDatePicker.propTypes = {
109
109
  dayOfWeekFormatter: PropTypes.func,
110
110
  /**
111
111
  * Default calendar month displayed when `value` and `defaultValue` are empty.
112
+ * @deprecated Consider using `referenceDate` instead.
112
113
  */
113
114
  defaultCalendarMonth: PropTypes.any,
114
115
  /**
@@ -157,6 +157,7 @@ DesktopDateTimePicker.propTypes = {
157
157
  dayOfWeekFormatter: PropTypes.func,
158
158
  /**
159
159
  * Default calendar month displayed when `value` and `defaultValue` are empty.
160
+ * @deprecated Consider using `referenceDate` instead.
160
161
  */
161
162
  defaultCalendarMonth: PropTypes.any,
162
163
  /**
@@ -106,6 +106,7 @@ MobileDatePicker.propTypes = {
106
106
  dayOfWeekFormatter: PropTypes.func,
107
107
  /**
108
108
  * Default calendar month displayed when `value` and `defaultValue` are empty.
109
+ * @deprecated Consider using `referenceDate` instead.
109
110
  */
110
111
  defaultCalendarMonth: PropTypes.any,
111
112
  /**
@@ -127,6 +127,7 @@ MobileDateTimePicker.propTypes = {
127
127
  dayOfWeekFormatter: PropTypes.func,
128
128
  /**
129
129
  * Default calendar month displayed when `value` and `defaultValue` are empty.
130
+ * @deprecated Consider using `referenceDate` instead.
130
131
  */
131
132
  defaultCalendarMonth: PropTypes.any,
132
133
  /**
@@ -85,6 +85,7 @@ StaticDatePicker.propTypes = {
85
85
  dayOfWeekFormatter: PropTypes.func,
86
86
  /**
87
87
  * Default calendar month displayed when `value` and `defaultValue` are empty.
88
+ * @deprecated Consider using `referenceDate` instead.
88
89
  */
89
90
  defaultCalendarMonth: PropTypes.any,
90
91
  /**
@@ -105,6 +105,7 @@ StaticDateTimePicker.propTypes = {
105
105
  dayOfWeekFormatter: PropTypes.func,
106
106
  /**
107
107
  * Default calendar month displayed when `value` and `defaultValue` are empty.
108
+ * @deprecated Consider using `referenceDate` instead.
108
109
  */
109
110
  defaultCalendarMonth: PropTypes.any,
110
111
  /**
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.0
2
+ * @mui/x-date-pickers v6.18.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -116,7 +116,8 @@ export function useViews(_ref) {
116
116
  setFocusedView: handleFocusedViewChange,
117
117
  nextView: nextView,
118
118
  previousView: previousView,
119
- defaultView: defaultView.current,
119
+ // Always return up to date default view instead of the initial one (i.e. defaultView.current)
120
+ defaultView: views.includes(openTo) ? openTo : views[0],
120
121
  goToNextView: goToNextView,
121
122
  setValueAndGoToNextView: setValueAndGoToNextView,
122
123
  setValueAndGoToView: setValueAndGoToView
@@ -63,8 +63,7 @@ var deDEPickers = {
63
63
  openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
64
64
  return value !== null && utils.isValid(value) ? "Uhrzeit ausw\xE4hlen, gew\xE4hlte Uhrzeit ist ".concat(utils.format(value, 'fullTime')) : 'Uhrzeit auswählen';
65
65
  },
66
- // fieldClearLabel: 'Clear value',
67
-
66
+ fieldClearLabel: 'Wert leeren',
68
67
  // Table labels
69
68
  timeTableLabel: 'Uhrzeit auswählen',
70
69
  dateTableLabel: 'Datum auswählen',
@@ -78,7 +77,9 @@ var deDEPickers = {
78
77
  fieldDayPlaceholder: function fieldDayPlaceholder() {
79
78
  return 'TT';
80
79
  },
81
- // fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
80
+ fieldWeekDayPlaceholder: function fieldWeekDayPlaceholder(params) {
81
+ return params.contentType === 'letter' ? 'EEEE' : 'EE';
82
+ },
82
83
  fieldHoursPlaceholder: function fieldHoursPlaceholder() {
83
84
  return 'hh';
84
85
  },
@@ -30,7 +30,7 @@ var esESPickers = {
30
30
  dateRangePickerToolbarTitle: 'Seleccionar rango de fecha',
31
31
  // Clock labels
32
32
  clockLabelText: function clockLabelText(view, time, adapter) {
33
- return "Seleccione ".concat(views[view], ". ").concat(time === null ? 'Sin tiempo seleccionado' : "El tiempo seleccionado es ".concat(adapter.format(time, 'fullTime')));
33
+ return "Seleccione ".concat(views[view], ". ").concat(time === null ? 'No hay hora seleccionada' : "La hora seleccionada es ".concat(adapter.format(time, 'fullTime')));
34
34
  },
35
35
  hoursClockNumberText: function hoursClockNumberText(hours) {
36
36
  return "".concat(hours, " horas");
@@ -56,16 +56,15 @@ var esESPickers = {
56
56
  },
57
57
  // Open picker labels
58
58
  openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
59
- return value !== null && utils.isValid(value) ? "Elige la fecha, la fecha elegida es ".concat(utils.format(value, 'fullDate')) : 'Elige la fecha';
59
+ return value !== null && utils.isValid(value) ? "Elige fecha, la fecha elegida es ".concat(utils.format(value, 'fullDate')) : 'Elige fecha';
60
60
  },
61
61
  openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
62
- return value !== null && utils.isValid(value) ? "Elige la hora, la hora elegido es ".concat(utils.format(value, 'fullTime')) : 'Elige la hora';
62
+ return value !== null && utils.isValid(value) ? "Elige hora, la hora elegida es ".concat(utils.format(value, 'fullTime')) : 'Elige hora';
63
63
  },
64
- // fieldClearLabel: 'Clear value',
65
-
64
+ fieldClearLabel: 'Limpiar valor',
66
65
  // Table labels
67
- timeTableLabel: 'elige la fecha',
68
- dateTableLabel: 'elige la hora',
66
+ timeTableLabel: 'elige hora',
67
+ dateTableLabel: 'elige fecha',
69
68
  // Field section placeholders
70
69
  fieldYearPlaceholder: function fieldYearPlaceholder(params) {
71
70
  return 'A'.repeat(params.digitAmount);
@@ -0,0 +1,94 @@
1
+ import { getPickersLocalization } from './utils/getPickersLocalization';
2
+ var views = {
3
+ hours: 'orduak',
4
+ minutes: 'minutuak',
5
+ seconds: 'segunduak',
6
+ meridiem: 'meridianoa'
7
+ };
8
+ var euPickers = {
9
+ // Calendar navigation
10
+ previousMonth: 'Azken hilabetea',
11
+ nextMonth: 'Hurrengo hilabetea',
12
+ // View navigation
13
+ openPreviousView: 'azken bista ireki',
14
+ openNextView: 'hurrengo bista ireki',
15
+ calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
16
+ return view === 'year' ? 'urteko bista irekita dago, aldatu egutegi bistara' : 'egutegi bista irekita dago, aldatu urteko bistara';
17
+ },
18
+ // DateRange placeholders
19
+ start: 'Hasi',
20
+ end: 'Bukatu',
21
+ // Action bar
22
+ cancelButtonLabel: 'Utxi',
23
+ clearButtonLabel: 'Garbitu',
24
+ okButtonLabel: 'OK',
25
+ todayButtonLabel: 'Gaur',
26
+ // Toolbar titles
27
+ datePickerToolbarTitle: 'Data aukeratu',
28
+ dateTimePickerToolbarTitle: 'Data eta ordua aukeratu',
29
+ timePickerToolbarTitle: 'Ordua aukeratu',
30
+ dateRangePickerToolbarTitle: 'Data tartea aukeratu',
31
+ // Clock labels
32
+ clockLabelText: function clockLabelText(view, time, adapter) {
33
+ return "Aukeratu ".concat(views[view], ". ").concat(time === null ? 'Ez da ordurik aukertau' : "Aukeratutako ordua ".concat(adapter.format(time, 'fullTime'), " da"));
34
+ },
35
+ hoursClockNumberText: function hoursClockNumberText(hours) {
36
+ return "".concat(hours, " ordu");
37
+ },
38
+ minutesClockNumberText: function minutesClockNumberText(minutes) {
39
+ return "".concat(minutes, " minutu");
40
+ },
41
+ secondsClockNumberText: function secondsClockNumberText(seconds) {
42
+ return "".concat(seconds, " segundu");
43
+ },
44
+ // Digital clock labels
45
+ selectViewText: function selectViewText(view) {
46
+ return "Aukeratu ".concat(views[view]);
47
+ },
48
+ // Calendar labels
49
+ calendarWeekNumberHeaderLabel: 'Astea zenbakia',
50
+ calendarWeekNumberHeaderText: '#',
51
+ calendarWeekNumberAriaLabelText: function calendarWeekNumberAriaLabelText(weekNumber) {
52
+ return "".concat(weekNumber, " astea");
53
+ },
54
+ calendarWeekNumberText: function calendarWeekNumberText(weekNumber) {
55
+ return "".concat(weekNumber);
56
+ },
57
+ // Open picker labels
58
+ openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
59
+ return value !== null && utils.isValid(value) ? "Data aukeratu, aukeratutako data ".concat(utils.format(value, 'fullDate'), " da") : 'Data aukeratu';
60
+ },
61
+ openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
62
+ return value !== null && utils.isValid(value) ? "Ordua aukeratu, aukeratutako ordua ".concat(utils.format(value, 'fullTime'), " da") : 'Ordua aukeratu';
63
+ },
64
+ fieldClearLabel: 'Balioa garbitu',
65
+ // Table labels
66
+ timeTableLabel: 'ordua aukeratu',
67
+ dateTableLabel: 'data aukeratu',
68
+ // Field section placeholders
69
+ fieldYearPlaceholder: function fieldYearPlaceholder(params) {
70
+ return 'Y'.repeat(params.digitAmount);
71
+ },
72
+ fieldMonthPlaceholder: function fieldMonthPlaceholder(params) {
73
+ return params.contentType === 'letter' ? 'MMMM' : 'MM';
74
+ },
75
+ fieldDayPlaceholder: function fieldDayPlaceholder() {
76
+ return 'DD';
77
+ },
78
+ fieldWeekDayPlaceholder: function fieldWeekDayPlaceholder(params) {
79
+ return params.contentType === 'letter' ? 'EEEE' : 'EE';
80
+ },
81
+ fieldHoursPlaceholder: function fieldHoursPlaceholder() {
82
+ return 'hh';
83
+ },
84
+ fieldMinutesPlaceholder: function fieldMinutesPlaceholder() {
85
+ return 'mm';
86
+ },
87
+ fieldSecondsPlaceholder: function fieldSecondsPlaceholder() {
88
+ return 'ss';
89
+ },
90
+ fieldMeridiemPlaceholder: function fieldMeridiemPlaceholder() {
91
+ return 'aa';
92
+ }
93
+ };
94
+ export var eu = getPickersLocalization(euPickers);
@@ -5,6 +5,7 @@ export * from './deDE';
5
5
  export * from './elGR';
6
6
  export * from './enUS';
7
7
  export * from './esES';
8
+ export * from './eu';
8
9
  export * from './faIR';
9
10
  export * from './fiFI';
10
11
  export * from './frFR';
@@ -15,6 +16,7 @@ export * from './itIT';
15
16
  export * from './jaJP';
16
17
  export * from './koKR';
17
18
  export * from './kzKZ';
19
+ export * from './mk';
18
20
  export * from './nbNO';
19
21
  export * from './nlNL';
20
22
  export * from './plPL';
@@ -0,0 +1,91 @@
1
+ import { getPickersLocalization } from './utils/getPickersLocalization';
2
+
3
+ // This object is not Partial<PickersLocaleText> because it is the default values
4
+
5
+ var mkPickers = {
6
+ // Calendar navigation
7
+ previousMonth: 'Предходен месец',
8
+ nextMonth: 'Следен месец',
9
+ // View navigation
10
+ openPreviousView: 'отвори претходен приказ',
11
+ openNextView: 'отвори следен приказ',
12
+ calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
13
+ return view === 'year' ? 'годишен приказ, отвори календарски приказ' : 'календарски приказ, отвори годишен приказ';
14
+ },
15
+ // DateRange placeholders
16
+ start: 'Почеток',
17
+ end: 'Крај',
18
+ // Action bar
19
+ cancelButtonLabel: 'Откажи',
20
+ clearButtonLabel: 'Избриши',
21
+ okButtonLabel: 'OK',
22
+ todayButtonLabel: 'Денес',
23
+ // Toolbar titles
24
+ datePickerToolbarTitle: 'Избери датум',
25
+ dateTimePickerToolbarTitle: 'Избери датум и време',
26
+ timePickerToolbarTitle: 'Избери време',
27
+ dateRangePickerToolbarTitle: 'Избери временски опсег',
28
+ // Clock labels
29
+ clockLabelText: function clockLabelText(view, time, adapter) {
30
+ return "Select ".concat(view, ". ").concat(time === null ? 'Нема избрано време' : "\u0418\u0437\u0431\u0440\u0430\u043D\u043E\u0442\u043E \u0432\u0440\u0435\u043C\u0435 \u0435 ".concat(adapter.format(time, 'fullTime')));
31
+ },
32
+ hoursClockNumberText: function hoursClockNumberText(hours) {
33
+ return "".concat(hours, " \u0447\u0430\u0441\u0430");
34
+ },
35
+ minutesClockNumberText: function minutesClockNumberText(minutes) {
36
+ return "".concat(minutes, " \u043C\u0438\u043D\u0443\u0442\u0438");
37
+ },
38
+ secondsClockNumberText: function secondsClockNumberText(seconds) {
39
+ return "".concat(seconds, " \u0441\u0435\u043A\u0443\u043D\u0434\u0438");
40
+ },
41
+ // Digital clock labels
42
+ selectViewText: function selectViewText(view) {
43
+ return "\u0418\u0437\u0431\u0435\u0440\u0438 ".concat(view);
44
+ },
45
+ // Calendar labels
46
+ calendarWeekNumberHeaderLabel: 'Недела број',
47
+ calendarWeekNumberHeaderText: '#',
48
+ calendarWeekNumberAriaLabelText: function calendarWeekNumberAriaLabelText(weekNumber) {
49
+ return "\u041D\u0435\u0434\u0435\u043B\u0430 ".concat(weekNumber);
50
+ },
51
+ calendarWeekNumberText: function calendarWeekNumberText(weekNumber) {
52
+ return "".concat(weekNumber);
53
+ },
54
+ // Open picker labels
55
+ openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
56
+ return value !== null && utils.isValid(value) ? "\u0418\u0437\u0431\u0435\u0440\u0438 \u0434\u0430\u0442\u0443\u043C, \u0438\u0437\u0431\u0440\u0430\u043D\u0438\u043E\u0442 \u0434\u0430\u0442\u0443\u043C \u0435 ".concat(utils.format(value, 'fullDate')) : 'Избери датум';
57
+ },
58
+ openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
59
+ return value !== null && utils.isValid(value) ? "\u0418\u0437\u0431\u0435\u0440\u0438 \u0432\u0440\u0435\u043C\u0435, \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0442\u043E \u0432\u0440\u0435\u043C\u0435 \u0435 ".concat(utils.format(value, 'fullTime')) : 'Избери време';
60
+ },
61
+ fieldClearLabel: 'Избриши',
62
+ // Table labels
63
+ timeTableLabel: 'одбери време',
64
+ dateTableLabel: 'одбери датум',
65
+ // Field section placeholders
66
+ fieldYearPlaceholder: function fieldYearPlaceholder(params) {
67
+ return 'Г'.repeat(params.digitAmount);
68
+ },
69
+ fieldMonthPlaceholder: function fieldMonthPlaceholder(params) {
70
+ return params.contentType === 'letter' ? 'MMMM' : 'MM';
71
+ },
72
+ fieldDayPlaceholder: function fieldDayPlaceholder() {
73
+ return 'ДД';
74
+ },
75
+ fieldWeekDayPlaceholder: function fieldWeekDayPlaceholder(params) {
76
+ return params.contentType === 'letter' ? 'EEEE' : 'EE';
77
+ },
78
+ fieldHoursPlaceholder: function fieldHoursPlaceholder() {
79
+ return 'чч';
80
+ },
81
+ fieldMinutesPlaceholder: function fieldMinutesPlaceholder() {
82
+ return 'мм';
83
+ },
84
+ fieldSecondsPlaceholder: function fieldSecondsPlaceholder() {
85
+ return 'сс';
86
+ },
87
+ fieldMeridiemPlaceholder: function fieldMeridiemPlaceholder() {
88
+ return 'aa';
89
+ }
90
+ };
91
+ export var mk = getPickersLocalization(mkPickers);