@mui/x-date-pickers 7.5.1 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,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
+ ## 7.6.1
7
+
8
+ _May 31, 2024_
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
+ 🐞 Address the `@mui/internal-test-utils` added as a direct dependency to `@mui/x-data-grid` by mistake.
13
+
14
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
15
+
16
+ ### Data Grid
17
+
18
+ #### `@mui/x-data-grid@7.6.1`
19
+
20
+ - [DataGrid] Fix column resize not working with special character (#13069) @oukunan
21
+ - [DataGrid] Move `@mui/internal-test-utils` to dev dependency (#13318) @LukasTy
22
+
23
+ #### `@mui/x-data-grid-pro@7.6.1` [![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@7.6.1`.
26
+
27
+ #### `@mui/x-data-grid-premium@7.6.1` [![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@7.6.1`.
30
+
31
+ ## 7.6.0
32
+
33
+ _May 30, 2024_
34
+
35
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
36
+
37
+ - 🎁 Allow to define and customize the indentation of nested items in the Tree View
38
+ - ✨ Allow charts highlights to be controlled
39
+ - 🌍 Improve Persian (fa-IR) locale on the Data Grid
40
+ - 🐞 Bugfixes
41
+ - 📚 Documentation improvements
42
+
43
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
44
+
45
+ ### Data Grid
46
+
47
+ #### `@mui/x-data-grid@7.6.0`
48
+
49
+ - [DataGrid] Avoid re-rendering all cells on column change (#12980) @romgrk
50
+ - [DataGrid] Export `GridColumnHeadersProps` (#13229) @cherniavskii
51
+ - [DataGrid] Fix header filters' issue with custom filters (#13255) @MBilalShafi
52
+ - [DataGrid] Remove dead logic to support Safari < 13 (#13249) @oliviertassinari
53
+ - [l10n] Improve Persian (fa-IR) locale (#12994) @amiryxe
54
+
55
+ #### `@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')
56
+
57
+ Same changes as in `@mui/x-data-grid@7.6.0`.
58
+
59
+ #### `@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')
60
+
61
+ Same changes as in `@mui/x-data-grid-pro@7.6.0`, plus:
62
+
63
+ - [DataGridPremium] Fix excel export causing column with wrong width (#13191) @romgrk
64
+
65
+ ### Date and Time Pickers
66
+
67
+ #### `@mui/x-date-pickers@7.6.0`
68
+
69
+ - [pickers] Fix `DateBuilderReturnType` when the date is `undefined` (#13244) @alexey-kozlenkov
70
+
71
+ #### `@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')
72
+
73
+ Same changes as in `@mui/x-date-pickers@7.6.0`.
74
+
75
+ ### Charts
76
+
77
+ #### `@mui/x-charts@7.6.0`
78
+
79
+ - [charts] Allow charts highlights to be controlled (#12828) @JCQuintas
80
+ - [charts] Refactor axis band scaleType check (#13295) @JCQuintas
81
+ - [charts] Refactor checkScaleErrors to improve readability and simplify axis message logic (#13305) @JCQuintas
82
+
83
+ ### Tree View
84
+
85
+ #### `@mui/x-tree-view@7.6.0`
86
+
87
+ - [TreeView] Add JSDoc to every instance method (#13219) @flaviendelangle
88
+ - [TreeView] Allow to customize the indentation of nested items (#13225) @flaviendelangle
89
+ - [TreeView] Allow to define indentation at the item level (#13126) @flaviendelangle
90
+
91
+ ### Docs
92
+
93
+ - [docs] Add Bulk editing demo for the Community plan (#12800) @cherniavskii
94
+ - [docs] Add conditional label formatting on tooltip page and link to label page (#13235) @JCQuintas
95
+ - [docs] Add information about key combinations on a11y sections (#13234) @arthurbalduini
96
+ - [docs] Cleanup of the Tree View demos (#13237) @flaviendelangle
97
+ - [docs] Document how to customize a subsection of a line chart (#13210) @alexfauquette
98
+ - [docs] Fix Pickers FAQ callout (#13238) @LukasTy
99
+ - [docs] Fix Vale errors @oliviertassinari
100
+ - [docs] Fix a small typo in property comment (#13245) @Janpot
101
+ - [docs] Improve the Data Grid FAQ page (#13258) @MBilalShafi
102
+ - [docs] Removes unused lines in TreeItem2 styling (#13264) @arthurbalduini
103
+ - [docs] Small improvements on accessibility data grid doc (#13233) @arthurbalduini
104
+ - [docs] Update Pickers demo configurations (#13303) @LukasTy
105
+
106
+ ### Core
107
+
108
+ - [core] Add comment on why logic to sync column header (#13248) @oliviertassinari
109
+ - [core] Fix `l10n` script execution with arguments (#13297) @LukasTy
110
+ - [core] Prevent "Add reviewers" workflow from triggering since it doesn't work (#13236) @JCQuintas
111
+ - [docs-infra] Fix `@mui/material` version used in sandboxes (#13260) @LukasTy
112
+ - [test] Use `describeTreeView` for keyboard navigation tests on disabled items (#13184) @flaviendelangle
113
+ - [test] Use `describeTreeView` for remaining items tests (#13262) @flaviendelangle
114
+ - [test] Use test-utils from npm (#12880) @michaldudak
115
+ - [typescript] Remove duplicate `DateRangePosition` type in favor of `RangePosition` (#13288) @LukasTy
116
+
6
117
  ## v7.5.1
7
118
 
8
119
  _May 23, 2024_
@@ -339,7 +450,7 @@ Same changes as in `@mui/x-date-pickers@7.3.1`.
339
450
  ### Core
340
451
 
341
452
  - [core] Fix `l10n` GH workflow (#12895) @LukasTy
342
- - [core] Match Base UI and Toolpad @oliviertassinari
453
+ - [core] Match Base UI and Toolpad @oliviertassinari
343
454
  - [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
344
455
  - [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
345
456
  - [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.1
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.1
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.1
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.1",
4
4
  "description": "The community edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -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",