@mui/x-date-pickers 7.5.1 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,92 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.6.0
7
+
8
+ _May 30, 2024_
9
+
10
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Allow to define and customize the indentation of nested items in the Tree View
13
+ - ✨ Allow charts highlights to be controlled
14
+ - 🌍 Improve Persian (fa-IR) locale on the Data Grid
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.6.0`
23
+
24
+ - [DataGrid] Avoid re-rendering all cells on column change (#12980) @romgrk
25
+ - [DataGrid] Export `GridColumnHeadersProps` (#13229) @cherniavskii
26
+ - [DataGrid] Fix header filters' issue with custom filters (#13255) @MBilalShafi
27
+ - [DataGrid] Remove dead logic to support Safari < 13 (#13249) @oliviertassinari
28
+ - [l10n] Improve Persian (fa-IR) locale (#12994) @amiryxe
29
+
30
+ #### `@mui/x-data-grid-pro@7.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@7.6.0`.
33
+
34
+ #### `@mui/x-data-grid-premium@7.6.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
+
36
+ Same changes as in `@mui/x-data-grid-pro@7.6.0`, plus:
37
+
38
+ - [DataGridPremium] Fix excel export causing column with wrong width (#13191) @romgrk
39
+
40
+ ### Date and Time Pickers
41
+
42
+ #### `@mui/x-date-pickers@7.6.0`
43
+
44
+ - [pickers] Fix `DateBuilderReturnType` when the date is `undefined` (#13244) @alexey-kozlenkov
45
+
46
+ #### `@mui/x-date-pickers-pro@7.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@7.6.0`.
49
+
50
+ ### Charts
51
+
52
+ #### `@mui/x-charts@7.6.0`
53
+
54
+ - [charts] Allow charts highlights to be controlled (#12828) @JCQuintas
55
+ - [charts] Refactor axis band scaleType check (#13295) @JCQuintas
56
+ - [charts] Refactor checkScaleErrors to improve readability and simplify axis message logic (#13305) @JCQuintas
57
+
58
+ ### Tree View
59
+
60
+ #### `@mui/x-tree-view@7.6.0`
61
+
62
+ - [TreeView] Add JSDoc to every instance method (#13219) @flaviendelangle
63
+ - [TreeView] Allow to customize the indentation of nested items (#13225) @flaviendelangle
64
+ - [TreeView] Allow to define indentation at the item level (#13126) @flaviendelangle
65
+
66
+ ### Docs
67
+
68
+ - [docs] Add Bulk editing demo for the Community plan (#12800) @cherniavskii
69
+ - [docs] Add conditional label formatting on tooltip page and link to label page (#13235) @JCQuintas
70
+ - [docs] Add information about key combinations on a11y sections (#13234) @arthurbalduini
71
+ - [docs] Cleanup of the Tree View demos (#13237) @flaviendelangle
72
+ - [docs] Document how to customize a subsection of a line chart (#13210) @alexfauquette
73
+ - [docs] Fix Pickers FAQ callout (#13238) @LukasTy
74
+ - [docs] Fix Vale errors @oliviertassinari
75
+ - [docs] Fix a small typo in property comment (#13245) @Janpot
76
+ - [docs] Improve the Data Grid FAQ page (#13258) @MBilalShafi
77
+ - [docs] Removes unused lines in TreeItem2 styling (#13264) @arthurbalduini
78
+ - [docs] Small improvements on accessibility data grid doc (#13233) @arthurbalduini
79
+ - [docs] Update Pickers demo configurations (#13303) @LukasTy
80
+
81
+ ### Core
82
+
83
+ - [core] Add comment on why logic to sync column header (#13248) @oliviertassinari
84
+ - [core] Fix `l10n` script execution with arguments (#13297) @LukasTy
85
+ - [core] Prevent "Add reviewers" workflow from triggering since it doesn't work (#13236) @JCQuintas
86
+ - [docs-infra] Fix `@mui/material` version used in sandboxes (#13260) @LukasTy
87
+ - [test] Use `describeTreeView` for keyboard navigation tests on disabled items (#13184) @flaviendelangle
88
+ - [test] Use `describeTreeView` for remaining items tests (#13262) @flaviendelangle
89
+ - [test] Use test-utils from npm (#12880) @michaldudak
90
+ - [typescript] Remove duplicate `DateRangePosition` type in favor of `RangePosition` (#13288) @LukasTy
91
+
6
92
  ## v7.5.1
7
93
 
8
94
  _May 23, 2024_
@@ -339,7 +425,7 @@ Same changes as in `@mui/x-date-pickers@7.3.1`.
339
425
  ### Core
340
426
 
341
427
  - [core] Fix `l10n` GH workflow (#12895) @LukasTy
342
- - [core] Match Base UI and Toolpad @oliviertassinari
428
+ - [core] Match Base UI and Toolpad @oliviertassinari
343
429
  - [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
344
430
  - [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
345
431
  - [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
@@ -49,7 +49,7 @@ const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
49
49
  },
50
50
  variants: Object.keys((theme.vars ?? theme).palette)
51
51
  // @ts-ignore
52
- .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
52
+ .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
53
53
  props: {
54
54
  color
55
55
  },
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.5.1
2
+ * @mui/x-date-pickers v7.6.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/locales/fiFI.js CHANGED
@@ -16,11 +16,10 @@ const fiFIPickers = {
16
16
  // DateRange labels
17
17
  start: 'Alku',
18
18
  end: 'Loppu',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Alkamispäivämäärä',
20
+ startTime: 'Alkamisaika',
21
+ endDate: 'Päättymispäivämäärä',
22
+ endTime: 'Päättymisaika',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Peruuta',
26
25
  clearButtonLabel: 'Tyhjennä',
@@ -35,7 +34,7 @@ const fiFIPickers = {
35
34
  clockLabelText: (view, time, adapter) => `Valitse ${views[view]}. ${time === null ? 'Ei aikaa valittuna' : `Valittu aika on ${adapter.format(time, 'fullTime')}`}`,
36
35
  hoursClockNumberText: hours => `${hours} tuntia`,
37
36
  minutesClockNumberText: minutes => `${minutes} minuuttia`,
38
- secondsClockNumberText: seconds => `${seconds} sekunttia`,
37
+ secondsClockNumberText: seconds => `${seconds} sekuntia`,
39
38
  // Digital clock labels
40
39
  selectViewText: view => `Valitse ${views[view]}`,
41
40
  // Calendar labels
@@ -46,8 +45,7 @@ const fiFIPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse päivä, valittu päivä on ${utils.format(value, 'fullDate')}` : 'Valitse päivä',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse aika, valittu aika on ${utils.format(value, 'fullTime')}` : 'Valitse aika',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Tyhjennä arvo',
51
49
  // Table labels
52
50
  timeTableLabel: 'valitse aika',
53
51
  dateTableLabel: 'valitse päivä',
@@ -59,19 +57,17 @@ const fiFIPickers = {
59
57
  fieldHoursPlaceholder: () => 'tt',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Vuosi',
63
+ month: 'Kuukausi',
64
+ day: 'Päivä',
65
+ weekDay: 'Viikonpäivä',
66
+ hours: 'Tunnit',
67
+ minutes: 'Minuutit',
68
+ seconds: 'Sekunnit',
69
+ meridiem: 'Iltapäivä',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Tyhjä'
76
72
  };
77
73
  export const fiFI = getPickersLocalization(fiFIPickers);
@@ -140,7 +140,7 @@ export type AdapterOptions<TLocale, TInstance> = {
140
140
  formats?: Partial<AdapterFormats>;
141
141
  locale?: TLocale;
142
142
  } & PropertyIfNotNever<'instance', TInstance>;
143
- export type DateBuilderReturnType<T extends string | null | undefined, TDate> = T extends null ? null : TDate;
143
+ export type DateBuilderReturnType<T extends string | null | undefined, TDate> = [T] extends [null] ? null : TDate;
144
144
  export interface MuiPickersAdapter<TDate extends PickerValidDate, TLocale = any> {
145
145
  /**
146
146
  * A boolean confirming that the adapter used is an MUI adapter.
@@ -49,7 +49,7 @@ const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
49
49
  },
50
50
  variants: Object.keys((theme.vars ?? theme).palette)
51
51
  // @ts-ignore
52
- .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
52
+ .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
53
53
  props: {
54
54
  color
55
55
  },
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.5.1
2
+ * @mui/x-date-pickers v7.6.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -16,11 +16,10 @@ const fiFIPickers = {
16
16
  // DateRange labels
17
17
  start: 'Alku',
18
18
  end: 'Loppu',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Alkamispäivämäärä',
20
+ startTime: 'Alkamisaika',
21
+ endDate: 'Päättymispäivämäärä',
22
+ endTime: 'Päättymisaika',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Peruuta',
26
25
  clearButtonLabel: 'Tyhjennä',
@@ -35,7 +34,7 @@ const fiFIPickers = {
35
34
  clockLabelText: (view, time, adapter) => `Valitse ${views[view]}. ${time === null ? 'Ei aikaa valittuna' : `Valittu aika on ${adapter.format(time, 'fullTime')}`}`,
36
35
  hoursClockNumberText: hours => `${hours} tuntia`,
37
36
  minutesClockNumberText: minutes => `${minutes} minuuttia`,
38
- secondsClockNumberText: seconds => `${seconds} sekunttia`,
37
+ secondsClockNumberText: seconds => `${seconds} sekuntia`,
39
38
  // Digital clock labels
40
39
  selectViewText: view => `Valitse ${views[view]}`,
41
40
  // Calendar labels
@@ -46,8 +45,7 @@ const fiFIPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse päivä, valittu päivä on ${utils.format(value, 'fullDate')}` : 'Valitse päivä',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse aika, valittu aika on ${utils.format(value, 'fullTime')}` : 'Valitse aika',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Tyhjennä arvo',
51
49
  // Table labels
52
50
  timeTableLabel: 'valitse aika',
53
51
  dateTableLabel: 'valitse päivä',
@@ -59,19 +57,17 @@ const fiFIPickers = {
59
57
  fieldHoursPlaceholder: () => 'tt',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Vuosi',
63
+ month: 'Kuukausi',
64
+ day: 'Päivä',
65
+ weekDay: 'Viikonpäivä',
66
+ hours: 'Tunnit',
67
+ minutes: 'Minuutit',
68
+ seconds: 'Sekunnit',
69
+ meridiem: 'Iltapäivä',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Tyhjä'
76
72
  };
77
73
  export const fiFI = getPickersLocalization(fiFIPickers);
@@ -58,7 +58,7 @@ const PickersOutlinedInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersI
58
58
  },
59
59
  variants: Object.keys((theme.vars ?? theme).palette)
60
60
  // @ts-ignore
61
- .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
61
+ .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
62
62
  props: {
63
63
  color
64
64
  },
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.5.1
2
+ * @mui/x-date-pickers v7.6.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -22,11 +22,10 @@ const fiFIPickers = {
22
22
  // DateRange labels
23
23
  start: 'Alku',
24
24
  end: 'Loppu',
25
- // startDate: 'Start date',
26
- // startTime: 'Start time',
27
- // endDate: 'End date',
28
- // endTime: 'End time',
29
-
25
+ startDate: 'Alkamispäivämäärä',
26
+ startTime: 'Alkamisaika',
27
+ endDate: 'Päättymispäivämäärä',
28
+ endTime: 'Päättymisaika',
30
29
  // Action bar
31
30
  cancelButtonLabel: 'Peruuta',
32
31
  clearButtonLabel: 'Tyhjennä',
@@ -41,7 +40,7 @@ const fiFIPickers = {
41
40
  clockLabelText: (view, time, adapter) => `Valitse ${views[view]}. ${time === null ? 'Ei aikaa valittuna' : `Valittu aika on ${adapter.format(time, 'fullTime')}`}`,
42
41
  hoursClockNumberText: hours => `${hours} tuntia`,
43
42
  minutesClockNumberText: minutes => `${minutes} minuuttia`,
44
- secondsClockNumberText: seconds => `${seconds} sekunttia`,
43
+ secondsClockNumberText: seconds => `${seconds} sekuntia`,
45
44
  // Digital clock labels
46
45
  selectViewText: view => `Valitse ${views[view]}`,
47
46
  // Calendar labels
@@ -52,8 +51,7 @@ const fiFIPickers = {
52
51
  // Open picker labels
53
52
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse päivä, valittu päivä on ${utils.format(value, 'fullDate')}` : 'Valitse päivä',
54
53
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse aika, valittu aika on ${utils.format(value, 'fullTime')}` : 'Valitse aika',
55
- // fieldClearLabel: 'Clear value',
56
-
54
+ fieldClearLabel: 'Tyhjennä arvo',
57
55
  // Table labels
58
56
  timeTableLabel: 'valitse aika',
59
57
  dateTableLabel: 'valitse päivä',
@@ -65,19 +63,17 @@ const fiFIPickers = {
65
63
  fieldHoursPlaceholder: () => 'tt',
66
64
  fieldMinutesPlaceholder: () => 'mm',
67
65
  fieldSecondsPlaceholder: () => 'ss',
68
- fieldMeridiemPlaceholder: () => 'aa'
69
-
66
+ fieldMeridiemPlaceholder: () => 'aa',
70
67
  // View names
71
- // year: 'Year',
72
- // month: 'Month',
73
- // day: 'Day',
74
- // weekDay: 'Week day',
75
- // hours: 'Hours',
76
- // minutes: 'Minutes',
77
- // seconds: 'Seconds',
78
- // meridiem: 'Meridiem',
79
-
68
+ year: 'Vuosi',
69
+ month: 'Kuukausi',
70
+ day: 'Päivä',
71
+ weekDay: 'Viikonpäivä',
72
+ hours: 'Tunnit',
73
+ minutes: 'Minuutit',
74
+ seconds: 'Sekunnit',
75
+ meridiem: 'Iltapäivä',
80
76
  // Common
81
- // empty: 'Empty',
77
+ empty: 'Tyhjä'
82
78
  };
83
79
  const fiFI = exports.fiFI = (0, _getPickersLocalization.getPickersLocalization)(fiFIPickers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "7.5.1",
3
+ "version": "7.6.0",
4
4
  "description": "The community edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -35,9 +35,9 @@
35
35
  "directory": "packages/x-date-pickers"
36
36
  },
37
37
  "dependencies": {
38
- "@babel/runtime": "^7.24.5",
38
+ "@babel/runtime": "^7.24.6",
39
39
  "@mui/base": "^5.0.0-beta.40",
40
- "@mui/system": "^5.15.14",
40
+ "@mui/system": "^5.15.15",
41
41
  "@mui/utils": "^5.15.14",
42
42
  "@types/react-transition-group": "^4.4.10",
43
43
  "clsx": "^2.1.1",