@mui/x-date-pickers 6.18.2 → 6.18.4

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 (63) hide show
  1. package/CHANGELOG.md +101 -1
  2. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  3. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +3 -2
  4. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  5. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  6. package/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  7. package/index.js +1 -1
  8. package/internals/hooks/useField/useField.utils.js +23 -10
  9. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  10. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  11. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  12. package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  13. package/legacy/index.js +1 -1
  14. package/legacy/internals/hooks/useField/useField.utils.js +23 -10
  15. package/locales/beBY.d.ts +18 -5
  16. package/locales/caES.d.ts +18 -5
  17. package/locales/csCZ.d.ts +18 -5
  18. package/locales/daDK.d.ts +18 -5
  19. package/locales/deDE.d.ts +18 -5
  20. package/locales/elGR.d.ts +18 -5
  21. package/locales/enUS.d.ts +18 -5
  22. package/locales/esES.d.ts +18 -5
  23. package/locales/eu.d.ts +18 -5
  24. package/locales/faIR.d.ts +18 -5
  25. package/locales/fiFI.d.ts +18 -5
  26. package/locales/frFR.d.ts +18 -5
  27. package/locales/heIL.d.ts +18 -5
  28. package/locales/huHU.d.ts +18 -5
  29. package/locales/isIS.d.ts +18 -5
  30. package/locales/itIT.d.ts +18 -5
  31. package/locales/jaJP.d.ts +18 -5
  32. package/locales/koKR.d.ts +18 -5
  33. package/locales/kzKZ.d.ts +18 -5
  34. package/locales/mk.d.ts +18 -5
  35. package/locales/nbNO.d.ts +18 -5
  36. package/locales/nlNL.d.ts +18 -5
  37. package/locales/plPL.d.ts +18 -5
  38. package/locales/ptBR.d.ts +18 -5
  39. package/locales/roRO.d.ts +18 -5
  40. package/locales/ruRU.d.ts +18 -5
  41. package/locales/skSK.d.ts +18 -5
  42. package/locales/svSE.d.ts +18 -5
  43. package/locales/trTR.d.ts +18 -5
  44. package/locales/ukUA.d.ts +18 -5
  45. package/locales/urPK.d.ts +18 -5
  46. package/locales/utils/getPickersLocalization.d.ts +18 -5
  47. package/locales/utils/pickersLocaleTextApi.d.ts +18 -5
  48. package/locales/viVN.d.ts +18 -5
  49. package/locales/zhCN.d.ts +18 -5
  50. package/locales/zhHK.d.ts +18 -5
  51. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  52. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  53. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  54. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  55. package/modern/index.js +1 -1
  56. package/modern/internals/hooks/useField/useField.utils.js +23 -10
  57. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  58. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  59. package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  60. package/node/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  61. package/node/index.js +1 -1
  62. package/node/internals/hooks/useField/useField.utils.js +23 -10
  63. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,105 @@
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.4
7
+
8
+ _Dec 8, 2023_
9
+
10
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
13
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
14
+ - 🐞 Bugfixes
15
+
16
+ ### Data Grid
17
+
18
+ #### `@mui/x-data-grid@6.18.4`
19
+
20
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
21
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
22
+
23
+ #### `@mui/x-data-grid-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
24
+
25
+ Same changes as in `@mui/x-data-grid@6.18.4`.
26
+
27
+ #### `@mui/x-data-grid-premium@6.18.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
28
+
29
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
30
+
31
+ ### Date Pickers
32
+
33
+ #### `@mui/x-date-pickers@6.18.4`
34
+
35
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
36
+
37
+ #### `@mui/x-date-pickers-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
38
+
39
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
40
+
41
+ ### Docs
42
+
43
+ - [docs] Fix typo (#11323) @cadam11
44
+ - [docs] Add FAQ page (#11347) @noraleonte
45
+
46
+ ## 6.18.3
47
+
48
+ _Dec 4, 2023_
49
+
50
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
51
+
52
+ - 📈 Fix a lot of Charts package issues
53
+ - 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
54
+ - 🐞 Bugfixes
55
+ - 📚 Documentation improvements
56
+
57
+ ### Data Grid
58
+
59
+ #### `@mui/x-data-grid@6.18.3`
60
+
61
+ - [DataGrid] Fix cell editing adding a leading "v" on paste (#11166) @prasad5795
62
+ - [DataGrid] Fix handling of event target in portal (#11209) @cherniavskii
63
+ - [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11244) @gitstart
64
+ - [l10n] Improve Bulgarian (bg-BG) locale (#10856) (#11206) @Kristiqn95
65
+
66
+ #### `@mui/x-data-grid-pro@6.18.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
67
+
68
+ Same changes as in `@mui/x-data-grid@6.18.3`.
69
+
70
+ #### `@mui/x-data-grid-premium@6.18.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
71
+
72
+ Same changes as in `@mui/x-data-grid-pro@6.18.3`, plus:
73
+
74
+ - [DataGridPremium] Fix aggregated column ignoring column definition changes (#11176) @cherniavskii
75
+ - [DataGridPremium] Fix custom filter operators not working on aggregated column (#11201) @cherniavskii
76
+
77
+ ### Date Pickers
78
+
79
+ #### `@mui/x-date-pickers@6.18.3`
80
+
81
+ - [pickers] Correctly format `MultiSectionDigitalClock` number sections (#11297) @LukasTy
82
+ - [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11254) @LukasTy
83
+
84
+ #### `@mui/x-date-pickers-pro@6.18.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
85
+
86
+ Same changes as in `@mui/x-date-pickers@6.18.3`.
87
+
88
+ ### Charts / `@mui/x-charts@6.18.3`
89
+
90
+ - [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11213) @michelengelen
91
+ - [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
92
+ - [charts] Fix TS config (#11259) @alexfauquette
93
+ - [charts] Fix error with empty dataset (#11063) @alexfauquette
94
+ - [charts] Fix export strategy (#11235) @alexfauquette
95
+
96
+ ### Docs
97
+
98
+ - [docs] Add LTS section to support page (#11300) @joserodolfofreitas
99
+ - [docs] Add end v6 blogpost to whats new page (#11299) @joserodolfofreitas
100
+ - [docs] Document charts composition (#10710) @alexfauquette
101
+ - [docs] Fix version links (#11167) @LukasTy
102
+ - [docs] Improve Data Grid togglable columns example (#11241) @MBilalShafi
103
+ - [docs] Split charts overview and getting started in distinct pages (#10910) @alexfauquette
104
+
6
105
  ## 6.18.2
7
106
 
8
107
  _Nov 23, 2023_
@@ -288,7 +387,7 @@ Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
288
387
 
289
388
  - [charts] Add reference links to area + bar chart components (#10652) @michelengelen
290
389
  - [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
291
- - [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
390
+ - [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
292
391
  - [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
293
392
  - [charts] Support animation on `BarChart` (#9926) @alexfauquette
294
393
  - [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
@@ -364,6 +463,7 @@ It adds line break support and avoids overlapping text in the legend.
364
463
  This comes with some breaking changes.
365
464
 
366
465
  - The DOM structure is modified. An intermediary `<tspan />` element has been added. This can impact how your style is applied.
466
+
367
467
  ```diff
368
468
  - <text>The label</text>
369
469
  + <text><tspan>The label</tspan></text>
@@ -254,6 +254,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
254
254
  },
255
255
  items: getTimeSectionOptions({
256
256
  value: utils.getMinutes(valueOrReferenceDate),
257
+ utils,
257
258
  isDisabled: minutes => disabled || isTimeDisabled(minutes, 'minutes'),
258
259
  resolveLabel: minutes => utils.format(utils.setMinutes(now, minutes), 'minutes'),
259
260
  timeStep: timeSteps.minutes,
@@ -270,6 +271,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
270
271
  },
271
272
  items: getTimeSectionOptions({
272
273
  value: utils.getSeconds(valueOrReferenceDate),
274
+ utils,
273
275
  isDisabled: seconds => disabled || isTimeDisabled(seconds, 'seconds'),
274
276
  resolveLabel: seconds => utils.format(utils.setSeconds(now, seconds), 'seconds'),
275
277
  timeStep: timeSteps.seconds,
@@ -10,13 +10,14 @@ interface IGetHoursSectionOptions<TDate> {
10
10
  resolveAriaLabel: (value: string) => string;
11
11
  }
12
12
  export declare const getHourSectionOptions: <TDate>({ now, value, utils, ampm, isDisabled, resolveAriaLabel, timeStep, }: IGetHoursSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
13
- interface IGetTimeSectionOptions {
13
+ interface IGetTimeSectionOptions<TDate> {
14
14
  value: number | null;
15
+ utils: MuiPickersAdapter<TDate>;
15
16
  isDisabled: (value: number) => boolean;
16
17
  timeStep: number;
17
18
  resolveLabel: (value: number) => string;
18
19
  hasValue?: boolean;
19
20
  resolveAriaLabel: (value: string) => string;
20
21
  }
21
- export declare const getTimeSectionOptions: ({ value, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions) => MultiSectionDigitalClockOption<number>[];
22
+ export declare const getTimeSectionOptions: <TDate>({ value, utils, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
22
23
  export {};
@@ -38,6 +38,7 @@ export const getHourSectionOptions = ({
38
38
  };
39
39
  export const getTimeSectionOptions = ({
40
40
  value,
41
+ utils,
41
42
  isDisabled,
42
43
  timeStep,
43
44
  resolveLabel,
@@ -56,7 +57,7 @@ export const getTimeSectionOptions = ({
56
57
  const timeValue = timeStep * index;
57
58
  return {
58
59
  value: timeValue,
59
- label: resolveLabel(timeValue),
60
+ label: utils.formatNumber(resolveLabel(timeValue)),
60
61
  isDisabled,
61
62
  isSelected,
62
63
  ariaLabel: resolveAriaLabel(timeValue.toString())
@@ -36,7 +36,12 @@ const MultiSectionDigitalClockSectionRoot = styled(MenuList, {
36
36
  '@media (prefers-reduced-motion: no-preference)': {
37
37
  scrollBehavior: ownerState.alreadyRendered ? 'smooth' : 'auto'
38
38
  },
39
- '&:hover': {
39
+ '@media (pointer: fine)': {
40
+ '&:hover': {
41
+ overflowY: 'auto'
42
+ }
43
+ },
44
+ '@media (pointer: none), (pointer: coarse)': {
40
45
  overflowY: 'auto'
41
46
  },
42
47
  '&:not(:first-of-type)': {
@@ -151,7 +156,8 @@ export const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(fun
151
156
  ,
152
157
  "aria-disabled": readOnly,
153
158
  "aria-label": option.ariaLabel,
154
- "aria-selected": isSelected
159
+ "aria-selected": isSelected,
160
+ className: classes.item
155
161
  }, slotProps == null ? void 0 : slotProps.digitalClockSectionItem, {
156
162
  children: option.label
157
163
  }), option.label);
@@ -1,6 +1,6 @@
1
1
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
2
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
3
  export function getMultiSectionDigitalClockSectionUtilityClass(slot) {
4
- return generateUtilityClass('MuiMultiSectionDigitalClock', slot);
4
+ return generateUtilityClass('MuiMultiSectionDigitalClockSection', slot);
5
5
  }
6
- export const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClock', ['root', 'item']);
6
+ export const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClockSection', ['root', 'item']);
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.2
2
+ * @mui/x-date-pickers v6.18.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -207,49 +207,62 @@ export const addPositionPropertiesToSections = (sections, isRTL) => {
207
207
  }
208
208
  return newSections;
209
209
  };
210
- const getSectionPlaceholder = (utils, timezone, localeText, sectionConfig, currentTokenValue) => {
210
+ const getSectionPlaceholder = (utils, timezone, localeText, sectionConfig, sectionFormat) => {
211
211
  switch (sectionConfig.type) {
212
212
  case 'year':
213
213
  {
214
214
  return localeText.fieldYearPlaceholder({
215
- digitAmount: utils.formatByString(utils.dateWithTimezone(undefined, timezone), currentTokenValue).length
215
+ digitAmount: utils.formatByString(utils.dateWithTimezone(undefined, timezone), sectionFormat).length,
216
+ format: sectionFormat
216
217
  });
217
218
  }
218
219
  case 'month':
219
220
  {
220
221
  return localeText.fieldMonthPlaceholder({
221
- contentType: sectionConfig.contentType
222
+ contentType: sectionConfig.contentType,
223
+ format: sectionFormat
222
224
  });
223
225
  }
224
226
  case 'day':
225
227
  {
226
- return localeText.fieldDayPlaceholder();
228
+ return localeText.fieldDayPlaceholder({
229
+ format: sectionFormat
230
+ });
227
231
  }
228
232
  case 'weekDay':
229
233
  {
230
234
  return localeText.fieldWeekDayPlaceholder({
231
- contentType: sectionConfig.contentType
235
+ contentType: sectionConfig.contentType,
236
+ format: sectionFormat
232
237
  });
233
238
  }
234
239
  case 'hours':
235
240
  {
236
- return localeText.fieldHoursPlaceholder();
241
+ return localeText.fieldHoursPlaceholder({
242
+ format: sectionFormat
243
+ });
237
244
  }
238
245
  case 'minutes':
239
246
  {
240
- return localeText.fieldMinutesPlaceholder();
247
+ return localeText.fieldMinutesPlaceholder({
248
+ format: sectionFormat
249
+ });
241
250
  }
242
251
  case 'seconds':
243
252
  {
244
- return localeText.fieldSecondsPlaceholder();
253
+ return localeText.fieldSecondsPlaceholder({
254
+ format: sectionFormat
255
+ });
245
256
  }
246
257
  case 'meridiem':
247
258
  {
248
- return localeText.fieldMeridiemPlaceholder();
259
+ return localeText.fieldMeridiemPlaceholder({
260
+ format: sectionFormat
261
+ });
249
262
  }
250
263
  default:
251
264
  {
252
- return currentTokenValue;
265
+ return sectionFormat;
253
266
  }
254
267
  }
255
268
  };
@@ -264,6 +264,7 @@ export var MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function Mul
264
264
  },
265
265
  items: getTimeSectionOptions({
266
266
  value: utils.getMinutes(valueOrReferenceDate),
267
+ utils: utils,
267
268
  isDisabled: function isDisabled(minutes) {
268
269
  return disabled || isTimeDisabled(minutes, 'minutes');
269
270
  },
@@ -284,6 +285,7 @@ export var MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function Mul
284
285
  },
285
286
  items: getTimeSectionOptions({
286
287
  value: utils.getSeconds(valueOrReferenceDate),
288
+ utils: utils,
287
289
  isDisabled: function isDisabled(seconds) {
288
290
  return disabled || isTimeDisabled(seconds, 'seconds');
289
291
  },
@@ -38,6 +38,7 @@ export var getHourSectionOptions = function getHourSectionOptions(_ref) {
38
38
  };
39
39
  export var getTimeSectionOptions = function getTimeSectionOptions(_ref2) {
40
40
  var value = _ref2.value,
41
+ utils = _ref2.utils,
41
42
  isDisabled = _ref2.isDisabled,
42
43
  timeStep = _ref2.timeStep,
43
44
  resolveLabel = _ref2.resolveLabel,
@@ -56,7 +57,7 @@ export var getTimeSectionOptions = function getTimeSectionOptions(_ref2) {
56
57
  var timeValue = timeStep * index;
57
58
  return {
58
59
  value: timeValue,
59
- label: resolveLabel(timeValue),
60
+ label: utils.formatNumber(resolveLabel(timeValue)),
60
61
  isDisabled: isDisabled,
61
62
  isSelected: isSelected,
62
63
  ariaLabel: resolveAriaLabel(timeValue.toString())
@@ -36,7 +36,12 @@ var MultiSectionDigitalClockSectionRoot = styled(MenuList, {
36
36
  '@media (prefers-reduced-motion: no-preference)': {
37
37
  scrollBehavior: ownerState.alreadyRendered ? 'smooth' : 'auto'
38
38
  },
39
- '&:hover': {
39
+ '@media (pointer: fine)': {
40
+ '&:hover': {
41
+ overflowY: 'auto'
42
+ }
43
+ },
44
+ '@media (pointer: none), (pointer: coarse)': {
40
45
  overflowY: 'auto'
41
46
  },
42
47
  '&:not(:first-of-type)': {
@@ -157,7 +162,8 @@ export var MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(funct
157
162
  ,
158
163
  "aria-disabled": readOnly,
159
164
  "aria-label": option.ariaLabel,
160
- "aria-selected": isSelected
165
+ "aria-selected": isSelected,
166
+ className: classes.item
161
167
  }, slotProps == null ? void 0 : slotProps.digitalClockSectionItem, {
162
168
  children: option.label
163
169
  }), option.label);
@@ -1,6 +1,6 @@
1
1
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
2
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
3
  export function getMultiSectionDigitalClockSectionUtilityClass(slot) {
4
- return generateUtilityClass('MuiMultiSectionDigitalClock', slot);
4
+ return generateUtilityClass('MuiMultiSectionDigitalClockSection', slot);
5
5
  }
6
- export var multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClock', ['root', 'item']);
6
+ export var multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClockSection', ['root', 'item']);
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.18.2
2
+ * @mui/x-date-pickers v6.18.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -217,49 +217,62 @@ export var addPositionPropertiesToSections = function addPositionPropertiesToSec
217
217
  }
218
218
  return newSections;
219
219
  };
220
- var getSectionPlaceholder = function getSectionPlaceholder(utils, timezone, localeText, sectionConfig, currentTokenValue) {
220
+ var getSectionPlaceholder = function getSectionPlaceholder(utils, timezone, localeText, sectionConfig, sectionFormat) {
221
221
  switch (sectionConfig.type) {
222
222
  case 'year':
223
223
  {
224
224
  return localeText.fieldYearPlaceholder({
225
- digitAmount: utils.formatByString(utils.dateWithTimezone(undefined, timezone), currentTokenValue).length
225
+ digitAmount: utils.formatByString(utils.dateWithTimezone(undefined, timezone), sectionFormat).length,
226
+ format: sectionFormat
226
227
  });
227
228
  }
228
229
  case 'month':
229
230
  {
230
231
  return localeText.fieldMonthPlaceholder({
231
- contentType: sectionConfig.contentType
232
+ contentType: sectionConfig.contentType,
233
+ format: sectionFormat
232
234
  });
233
235
  }
234
236
  case 'day':
235
237
  {
236
- return localeText.fieldDayPlaceholder();
238
+ return localeText.fieldDayPlaceholder({
239
+ format: sectionFormat
240
+ });
237
241
  }
238
242
  case 'weekDay':
239
243
  {
240
244
  return localeText.fieldWeekDayPlaceholder({
241
- contentType: sectionConfig.contentType
245
+ contentType: sectionConfig.contentType,
246
+ format: sectionFormat
242
247
  });
243
248
  }
244
249
  case 'hours':
245
250
  {
246
- return localeText.fieldHoursPlaceholder();
251
+ return localeText.fieldHoursPlaceholder({
252
+ format: sectionFormat
253
+ });
247
254
  }
248
255
  case 'minutes':
249
256
  {
250
- return localeText.fieldMinutesPlaceholder();
257
+ return localeText.fieldMinutesPlaceholder({
258
+ format: sectionFormat
259
+ });
251
260
  }
252
261
  case 'seconds':
253
262
  {
254
- return localeText.fieldSecondsPlaceholder();
263
+ return localeText.fieldSecondsPlaceholder({
264
+ format: sectionFormat
265
+ });
255
266
  }
256
267
  case 'meridiem':
257
268
  {
258
- return localeText.fieldMeridiemPlaceholder();
269
+ return localeText.fieldMeridiemPlaceholder({
270
+ format: sectionFormat
271
+ });
259
272
  }
260
273
  default:
261
274
  {
262
- return currentTokenValue;
275
+ return sectionFormat;
263
276
  }
264
277
  }
265
278
  };
package/locales/beBY.d.ts CHANGED
@@ -31,18 +31,31 @@ export declare const beBY: {
31
31
  dateTableLabel?: string | undefined;
32
32
  fieldYearPlaceholder?: ((params: {
33
33
  digitAmount: number;
34
+ format: string;
34
35
  }) => string) | undefined;
35
36
  fieldMonthPlaceholder?: ((params: {
36
37
  contentType: import("..").FieldSectionContentType;
38
+ format: string;
39
+ }) => string) | undefined;
40
+ fieldDayPlaceholder?: ((params: {
41
+ format: string;
37
42
  }) => string) | undefined;
38
- fieldDayPlaceholder?: (() => string) | undefined;
39
43
  fieldWeekDayPlaceholder?: ((params: {
40
44
  contentType: import("..").FieldSectionContentType;
45
+ format: string;
46
+ }) => string) | undefined;
47
+ fieldHoursPlaceholder?: ((params: {
48
+ format: string;
49
+ }) => string) | undefined;
50
+ fieldMinutesPlaceholder?: ((params: {
51
+ format: string;
52
+ }) => string) | undefined;
53
+ fieldSecondsPlaceholder?: ((params: {
54
+ format: string;
55
+ }) => string) | undefined;
56
+ fieldMeridiemPlaceholder?: ((params: {
57
+ format: string;
41
58
  }) => string) | undefined;
42
- fieldHoursPlaceholder?: (() => string) | undefined;
43
- fieldMinutesPlaceholder?: (() => string) | undefined;
44
- fieldSecondsPlaceholder?: (() => string) | undefined;
45
- fieldMeridiemPlaceholder?: (() => string) | undefined;
46
59
  datePickerToolbarTitle?: string | undefined;
47
60
  timePickerToolbarTitle?: string | undefined;
48
61
  dateTimePickerToolbarTitle?: string | undefined;
package/locales/caES.d.ts CHANGED
@@ -31,18 +31,31 @@ export declare const caES: {
31
31
  dateTableLabel?: string | undefined;
32
32
  fieldYearPlaceholder?: ((params: {
33
33
  digitAmount: number;
34
+ format: string;
34
35
  }) => string) | undefined;
35
36
  fieldMonthPlaceholder?: ((params: {
36
37
  contentType: import("..").FieldSectionContentType;
38
+ format: string;
39
+ }) => string) | undefined;
40
+ fieldDayPlaceholder?: ((params: {
41
+ format: string;
37
42
  }) => string) | undefined;
38
- fieldDayPlaceholder?: (() => string) | undefined;
39
43
  fieldWeekDayPlaceholder?: ((params: {
40
44
  contentType: import("..").FieldSectionContentType;
45
+ format: string;
46
+ }) => string) | undefined;
47
+ fieldHoursPlaceholder?: ((params: {
48
+ format: string;
49
+ }) => string) | undefined;
50
+ fieldMinutesPlaceholder?: ((params: {
51
+ format: string;
52
+ }) => string) | undefined;
53
+ fieldSecondsPlaceholder?: ((params: {
54
+ format: string;
55
+ }) => string) | undefined;
56
+ fieldMeridiemPlaceholder?: ((params: {
57
+ format: string;
41
58
  }) => string) | undefined;
42
- fieldHoursPlaceholder?: (() => string) | undefined;
43
- fieldMinutesPlaceholder?: (() => string) | undefined;
44
- fieldSecondsPlaceholder?: (() => string) | undefined;
45
- fieldMeridiemPlaceholder?: (() => string) | undefined;
46
59
  datePickerToolbarTitle?: string | undefined;
47
60
  timePickerToolbarTitle?: string | undefined;
48
61
  dateTimePickerToolbarTitle?: string | undefined;
package/locales/csCZ.d.ts CHANGED
@@ -31,18 +31,31 @@ export declare const csCZ: {
31
31
  dateTableLabel?: string | undefined;
32
32
  fieldYearPlaceholder?: ((params: {
33
33
  digitAmount: number;
34
+ format: string;
34
35
  }) => string) | undefined;
35
36
  fieldMonthPlaceholder?: ((params: {
36
37
  contentType: import("..").FieldSectionContentType;
38
+ format: string;
39
+ }) => string) | undefined;
40
+ fieldDayPlaceholder?: ((params: {
41
+ format: string;
37
42
  }) => string) | undefined;
38
- fieldDayPlaceholder?: (() => string) | undefined;
39
43
  fieldWeekDayPlaceholder?: ((params: {
40
44
  contentType: import("..").FieldSectionContentType;
45
+ format: string;
46
+ }) => string) | undefined;
47
+ fieldHoursPlaceholder?: ((params: {
48
+ format: string;
49
+ }) => string) | undefined;
50
+ fieldMinutesPlaceholder?: ((params: {
51
+ format: string;
52
+ }) => string) | undefined;
53
+ fieldSecondsPlaceholder?: ((params: {
54
+ format: string;
55
+ }) => string) | undefined;
56
+ fieldMeridiemPlaceholder?: ((params: {
57
+ format: string;
41
58
  }) => string) | undefined;
42
- fieldHoursPlaceholder?: (() => string) | undefined;
43
- fieldMinutesPlaceholder?: (() => string) | undefined;
44
- fieldSecondsPlaceholder?: (() => string) | undefined;
45
- fieldMeridiemPlaceholder?: (() => string) | undefined;
46
59
  datePickerToolbarTitle?: string | undefined;
47
60
  timePickerToolbarTitle?: string | undefined;
48
61
  dateTimePickerToolbarTitle?: string | undefined;
package/locales/daDK.d.ts CHANGED
@@ -31,18 +31,31 @@ export declare const daDK: {
31
31
  dateTableLabel?: string | undefined;
32
32
  fieldYearPlaceholder?: ((params: {
33
33
  digitAmount: number;
34
+ format: string;
34
35
  }) => string) | undefined;
35
36
  fieldMonthPlaceholder?: ((params: {
36
37
  contentType: import("..").FieldSectionContentType;
38
+ format: string;
39
+ }) => string) | undefined;
40
+ fieldDayPlaceholder?: ((params: {
41
+ format: string;
37
42
  }) => string) | undefined;
38
- fieldDayPlaceholder?: (() => string) | undefined;
39
43
  fieldWeekDayPlaceholder?: ((params: {
40
44
  contentType: import("..").FieldSectionContentType;
45
+ format: string;
46
+ }) => string) | undefined;
47
+ fieldHoursPlaceholder?: ((params: {
48
+ format: string;
49
+ }) => string) | undefined;
50
+ fieldMinutesPlaceholder?: ((params: {
51
+ format: string;
52
+ }) => string) | undefined;
53
+ fieldSecondsPlaceholder?: ((params: {
54
+ format: string;
55
+ }) => string) | undefined;
56
+ fieldMeridiemPlaceholder?: ((params: {
57
+ format: string;
41
58
  }) => string) | undefined;
42
- fieldHoursPlaceholder?: (() => string) | undefined;
43
- fieldMinutesPlaceholder?: (() => string) | undefined;
44
- fieldSecondsPlaceholder?: (() => string) | undefined;
45
- fieldMeridiemPlaceholder?: (() => string) | undefined;
46
59
  datePickerToolbarTitle?: string | undefined;
47
60
  timePickerToolbarTitle?: string | undefined;
48
61
  dateTimePickerToolbarTitle?: string | undefined;
package/locales/deDE.d.ts CHANGED
@@ -31,18 +31,31 @@ export declare const deDE: {
31
31
  dateTableLabel?: string | undefined;
32
32
  fieldYearPlaceholder?: ((params: {
33
33
  digitAmount: number;
34
+ format: string;
34
35
  }) => string) | undefined;
35
36
  fieldMonthPlaceholder?: ((params: {
36
37
  contentType: import("..").FieldSectionContentType;
38
+ format: string;
39
+ }) => string) | undefined;
40
+ fieldDayPlaceholder?: ((params: {
41
+ format: string;
37
42
  }) => string) | undefined;
38
- fieldDayPlaceholder?: (() => string) | undefined;
39
43
  fieldWeekDayPlaceholder?: ((params: {
40
44
  contentType: import("..").FieldSectionContentType;
45
+ format: string;
46
+ }) => string) | undefined;
47
+ fieldHoursPlaceholder?: ((params: {
48
+ format: string;
49
+ }) => string) | undefined;
50
+ fieldMinutesPlaceholder?: ((params: {
51
+ format: string;
52
+ }) => string) | undefined;
53
+ fieldSecondsPlaceholder?: ((params: {
54
+ format: string;
55
+ }) => string) | undefined;
56
+ fieldMeridiemPlaceholder?: ((params: {
57
+ format: string;
41
58
  }) => string) | undefined;
42
- fieldHoursPlaceholder?: (() => string) | undefined;
43
- fieldMinutesPlaceholder?: (() => string) | undefined;
44
- fieldSecondsPlaceholder?: (() => string) | undefined;
45
- fieldMeridiemPlaceholder?: (() => string) | undefined;
46
59
  datePickerToolbarTitle?: string | undefined;
47
60
  timePickerToolbarTitle?: string | undefined;
48
61
  dateTimePickerToolbarTitle?: string | undefined;