@mui/x-date-pickers 8.10.0 → 8.10.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.
@@ -138,6 +138,9 @@ const NUMBER_SYMBOL_MAP = {
138
138
  * SOFTWARE.
139
139
  */
140
140
  class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
141
+ lib = 'moment-hijri';
142
+ isTimezoneCompatible = false;
143
+ formatTokenMap = formatTokenMap;
141
144
  constructor({
142
145
  formats,
143
146
  instance
@@ -146,86 +149,84 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
146
149
  locale: 'ar-SA',
147
150
  instance
148
151
  });
149
- this.lib = 'moment-hijri';
150
- this.moment = void 0;
151
- this.isTimezoneCompatible = false;
152
- this.formatTokenMap = formatTokenMap;
153
- this.date = value => {
154
- if (value === null) {
155
- return null;
156
- }
157
- return this.moment(value).locale('ar-SA');
158
- };
159
- /* v8 ignore next 3 */
160
- this.getTimezone = () => {
161
- return 'default';
162
- };
163
- /* v8 ignore next 3 */
164
- this.setTimezone = value => {
165
- return value;
166
- };
167
- this.parse = (value, format) => {
168
- if (value === '') {
169
- return null;
170
- }
171
- return this.moment(value, format, true).locale('ar-SA');
172
- };
173
- this.formatNumber = numberToFormat => {
174
- return numberToFormat.replace(/\d/g, match => NUMBER_SYMBOL_MAP[match]).replace(/,/g, '،');
175
- };
176
- this.startOfYear = value => {
177
- return value.clone().startOf('iYear');
178
- };
179
- this.startOfMonth = value => {
180
- return value.clone().startOf('iMonth');
181
- };
182
- this.endOfYear = value => {
183
- return value.clone().endOf('iYear');
184
- };
185
- this.endOfMonth = value => {
186
- return value.clone().endOf('iMonth');
187
- };
188
- this.addYears = (value, amount) => {
189
- return amount < 0 ? value.clone().subtract(Math.abs(amount), 'iYear') : value.clone().add(amount, 'iYear');
190
- };
191
- this.addMonths = (value, amount) => {
192
- return amount < 0 ? value.clone().subtract(Math.abs(amount), 'iMonth') : value.clone().add(amount, 'iMonth');
193
- };
194
- this.getYear = value => {
195
- return value.iYear();
196
- };
197
- this.getMonth = value => {
198
- return value.iMonth();
199
- };
200
- this.getDate = value => {
201
- return value.iDate();
202
- };
203
- this.setYear = (value, year) => {
204
- return value.clone().iYear(year);
205
- };
206
- this.setMonth = (value, month) => {
207
- return value.clone().iMonth(month);
208
- };
209
- this.setDate = (value, date) => {
210
- return value.clone().iDate(date);
211
- };
212
- this.getWeekNumber = value => {
213
- return value.iWeek();
214
- };
215
- this.getYearRange = ([start, end]) => {
216
- // moment-hijri only supports dates between 1356-01-01 H and 1499-12-29 H
217
- // We need to throw if outside min/max bounds, otherwise the while loop below will be infinite.
218
- if (start.isBefore('1937-03-14')) {
219
- throw new Error('min date must be on or after 1356-01-01 H (1937-03-14)');
220
- }
221
- if (end.isAfter('2076-11-26')) {
222
- throw new Error('max date must be on or before 1499-12-29 H (2076-11-26)');
223
- }
224
- return super.getYearRange([start, end]);
225
- };
226
152
  this.moment = instance || _momentHijri.default;
227
153
  this.locale = 'ar-SA';
228
154
  this.formats = (0, _extends2.default)({}, defaultFormats, formats);
229
155
  }
156
+ date = value => {
157
+ if (value === null) {
158
+ return null;
159
+ }
160
+ return this.moment(value).locale('ar-SA');
161
+ };
162
+
163
+ /* v8 ignore next 3 */
164
+ getTimezone = () => {
165
+ return 'default';
166
+ };
167
+
168
+ /* v8 ignore next 3 */
169
+ setTimezone = value => {
170
+ return value;
171
+ };
172
+ parse = (value, format) => {
173
+ if (value === '') {
174
+ return null;
175
+ }
176
+ return this.moment(value, format, true).locale('ar-SA');
177
+ };
178
+ formatNumber = numberToFormat => {
179
+ return numberToFormat.replace(/\d/g, match => NUMBER_SYMBOL_MAP[match]).replace(/,/g, '،');
180
+ };
181
+ startOfYear = value => {
182
+ return value.clone().startOf('iYear');
183
+ };
184
+ startOfMonth = value => {
185
+ return value.clone().startOf('iMonth');
186
+ };
187
+ endOfYear = value => {
188
+ return value.clone().endOf('iYear');
189
+ };
190
+ endOfMonth = value => {
191
+ return value.clone().endOf('iMonth');
192
+ };
193
+ addYears = (value, amount) => {
194
+ return amount < 0 ? value.clone().subtract(Math.abs(amount), 'iYear') : value.clone().add(amount, 'iYear');
195
+ };
196
+ addMonths = (value, amount) => {
197
+ return amount < 0 ? value.clone().subtract(Math.abs(amount), 'iMonth') : value.clone().add(amount, 'iMonth');
198
+ };
199
+ getYear = value => {
200
+ return value.iYear();
201
+ };
202
+ getMonth = value => {
203
+ return value.iMonth();
204
+ };
205
+ getDate = value => {
206
+ return value.iDate();
207
+ };
208
+ setYear = (value, year) => {
209
+ return value.clone().iYear(year);
210
+ };
211
+ setMonth = (value, month) => {
212
+ return value.clone().iMonth(month);
213
+ };
214
+ setDate = (value, date) => {
215
+ return value.clone().iDate(date);
216
+ };
217
+ getWeekNumber = value => {
218
+ return value.iWeek();
219
+ };
220
+ getYearRange = ([start, end]) => {
221
+ // moment-hijri only supports dates between 1356-01-01 H and 1499-12-29 H
222
+ // We need to throw if outside min/max bounds, otherwise the while loop below will be infinite.
223
+ if (start.isBefore('1937-03-14')) {
224
+ throw new Error('min date must be on or after 1356-01-01 H (1937-03-14)');
225
+ }
226
+ if (end.isAfter('2076-11-26')) {
227
+ throw new Error('max date must be on or before 1499-12-29 H (2076-11-26)');
228
+ }
229
+ return super.getYearRange([start, end]);
230
+ };
230
231
  }
231
232
  exports.AdapterMomentHijri = AdapterMomentHijri;
@@ -136,6 +136,9 @@ const NUMBER_SYMBOL_MAP = {
136
136
  * SOFTWARE.
137
137
  */
138
138
  class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
139
+ isTimezoneCompatible = false;
140
+ lib = 'moment-jalaali';
141
+ formatTokenMap = formatTokenMap;
139
142
  constructor({
140
143
  formats,
141
144
  instance
@@ -144,88 +147,84 @@ class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
144
147
  locale: 'fa',
145
148
  instance
146
149
  });
147
- this.isTimezoneCompatible = false;
148
- this.lib = 'moment-jalaali';
149
- this.moment = void 0;
150
- this.formatTokenMap = formatTokenMap;
151
- this.date = value => {
152
- if (value === null) {
153
- return null;
154
- }
155
- return this.moment(value).locale('fa');
156
- };
157
- this.getTimezone = () => {
158
- return 'default';
159
- };
160
- this.setTimezone = value => {
161
- return value;
162
- };
163
- this.parse = (value, format) => {
164
- if (value === '') {
165
- return null;
166
- }
167
- return this.moment(value, format, true).locale('fa');
168
- };
169
- this.formatNumber = numberToFormat => {
170
- return numberToFormat.replace(/\d/g, match => NUMBER_SYMBOL_MAP[match]).replace(/,/g, '،');
171
- };
172
- this.isSameYear = (value, comparing) => {
173
- return value.jYear() === comparing.jYear();
174
- };
175
- this.isSameMonth = (value, comparing) => {
176
- return value.jYear() === comparing.jYear() && value.jMonth() === comparing.jMonth();
177
- };
178
- this.isAfterYear = (value, comparing) => {
179
- return value.jYear() > comparing.jYear();
180
- };
181
- this.isBeforeYear = (value, comparing) => {
182
- return value.jYear() < comparing.jYear();
183
- };
184
- this.startOfYear = value => {
185
- return value.clone().startOf('jYear');
186
- };
187
- this.startOfMonth = value => {
188
- return value.clone().startOf('jMonth');
189
- };
190
- this.endOfYear = value => {
191
- return value.clone().endOf('jYear');
192
- };
193
- this.endOfMonth = value => {
194
- return value.clone().endOf('jMonth');
195
- };
196
- this.addYears = (value, amount) => {
197
- return amount < 0 ? value.clone().subtract(Math.abs(amount), 'jYear') : value.clone().add(amount, 'jYear');
198
- };
199
- this.addMonths = (value, amount) => {
200
- return amount < 0 ? value.clone().subtract(Math.abs(amount), 'jMonth') : value.clone().add(amount, 'jMonth');
201
- };
202
- this.getYear = value => {
203
- return value.jYear();
204
- };
205
- this.getMonth = value => {
206
- return value.jMonth();
207
- };
208
- this.getDate = value => {
209
- return value.jDate();
210
- };
211
- this.getDaysInMonth = value => {
212
- return this.moment.jDaysInMonth(value.jYear(), value.jMonth());
213
- };
214
- this.setYear = (value, year) => {
215
- return value.clone().jYear(year);
216
- };
217
- this.setMonth = (value, month) => {
218
- return value.clone().jMonth(month);
219
- };
220
- this.setDate = (value, date) => {
221
- return value.clone().jDate(date);
222
- };
223
- this.getWeekNumber = value => {
224
- return value.jWeek();
225
- };
226
150
  this.moment = instance || _momentJalaali.default;
227
151
  this.locale = 'fa';
228
152
  this.formats = (0, _extends2.default)({}, defaultFormats, formats);
229
153
  }
154
+ date = value => {
155
+ if (value === null) {
156
+ return null;
157
+ }
158
+ return this.moment(value).locale('fa');
159
+ };
160
+ getTimezone = () => {
161
+ return 'default';
162
+ };
163
+ setTimezone = value => {
164
+ return value;
165
+ };
166
+ parse = (value, format) => {
167
+ if (value === '') {
168
+ return null;
169
+ }
170
+ return this.moment(value, format, true).locale('fa');
171
+ };
172
+ formatNumber = numberToFormat => {
173
+ return numberToFormat.replace(/\d/g, match => NUMBER_SYMBOL_MAP[match]).replace(/,/g, '،');
174
+ };
175
+ isSameYear = (value, comparing) => {
176
+ return value.jYear() === comparing.jYear();
177
+ };
178
+ isSameMonth = (value, comparing) => {
179
+ return value.jYear() === comparing.jYear() && value.jMonth() === comparing.jMonth();
180
+ };
181
+ isAfterYear = (value, comparing) => {
182
+ return value.jYear() > comparing.jYear();
183
+ };
184
+ isBeforeYear = (value, comparing) => {
185
+ return value.jYear() < comparing.jYear();
186
+ };
187
+ startOfYear = value => {
188
+ return value.clone().startOf('jYear');
189
+ };
190
+ startOfMonth = value => {
191
+ return value.clone().startOf('jMonth');
192
+ };
193
+ endOfYear = value => {
194
+ return value.clone().endOf('jYear');
195
+ };
196
+ endOfMonth = value => {
197
+ return value.clone().endOf('jMonth');
198
+ };
199
+ addYears = (value, amount) => {
200
+ return amount < 0 ? value.clone().subtract(Math.abs(amount), 'jYear') : value.clone().add(amount, 'jYear');
201
+ };
202
+ addMonths = (value, amount) => {
203
+ return amount < 0 ? value.clone().subtract(Math.abs(amount), 'jMonth') : value.clone().add(amount, 'jMonth');
204
+ };
205
+ getYear = value => {
206
+ return value.jYear();
207
+ };
208
+ getMonth = value => {
209
+ return value.jMonth();
210
+ };
211
+ getDate = value => {
212
+ return value.jDate();
213
+ };
214
+ getDaysInMonth = value => {
215
+ return this.moment.jDaysInMonth(value.jYear(), value.jMonth());
216
+ };
217
+ setYear = (value, year) => {
218
+ return value.clone().jYear(year);
219
+ };
220
+ setMonth = (value, month) => {
221
+ return value.clone().jMonth(month);
222
+ };
223
+ setDate = (value, date) => {
224
+ return value.clone().jDate(date);
225
+ };
226
+ getWeekNumber = value => {
227
+ return value.jWeek();
228
+ };
230
229
  }
231
230
  exports.AdapterMomentJalaali = AdapterMomentJalaali;
package/CHANGELOG.md CHANGED
@@ -5,6 +5,188 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.10.2
9
+
10
+ _Aug 20, 2025_
11
+
12
+ We'd like to extend a big thank you to the 10 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🌎 Improve Finnish (fi-FI) locale on the Data Grid
15
+
16
+ Special thanks go out to the community members for their valuable contributions:
17
+ @lauri-heinonen-2025-04, @Methuselah96, @sai6855, @wilcoschoneveld
18
+
19
+ The following are all team members who have contributed to this release:
20
+ @alexfauquette, @cherniavskii, @flaviendelangle, @Janpot, @oliviertassinari, @rita-codes
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@8.10.2`
25
+
26
+ - [DataGrid] Fix display for `<GridEditSingleSelect />` when `density='compact'` (#19249) @sai6855
27
+ - [DataGrid] Fix column header sortable classname when using `disableColumnSorting` (#19222) @wilcoschoneveld
28
+ - [l10n] Improve finnish (fi-FI) locale (#19163) @lauri-heinonen-2025-04
29
+
30
+ #### `@mui/x-data-grid-pro@8.10.2` [![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@8.10.2`, plus:
33
+
34
+ - [DataGridPro] Fix quick filter not working in List View mode (#19254) @cherniavskii
35
+
36
+ #### `@mui/x-data-grid-premium@8.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
37
+
38
+ Same changes as in `@mui/x-data-grid-pro@8.10.2`.
39
+
40
+ ### Date and Time Pickers
41
+
42
+ #### `@mui/x-date-pickers@8.10.2`
43
+
44
+ Internal changes.
45
+
46
+ #### `@mui/x-date-pickers-pro@8.10.2` [![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@8.10.2`.
49
+
50
+ ### Charts
51
+
52
+ #### `@mui/x-charts@8.10.2`
53
+
54
+ Internal changes.
55
+
56
+ #### `@mui/x-charts-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
57
+
58
+ Same changes as in `@mui/x-charts@8.10.2`.
59
+
60
+ ### Tree View
61
+
62
+ #### `@mui/x-tree-view@8.10.2`
63
+
64
+ - [tree view] Add `aria-hidden` to the Tree Item Checkbox (#19246) @flaviendelangle
65
+
66
+ #### `@mui/x-tree-view-pro@8.10.2` [![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-tree-view@8.10.2`.
69
+
70
+ ### Codemod
71
+
72
+ #### `@mui/x-codemod@8.10.2`
73
+
74
+ Internal changes.
75
+
76
+ ### Docs
77
+
78
+ - [docs] Fix links to the pyramid chart (#19250) @alexfauquette
79
+
80
+ ### Core
81
+
82
+ - [internal] Avoid script for CI only @oliviertassinari
83
+ - [internal] Fix `renovate.json` @oliviertassinari
84
+ - [internal] Polish renovate config @oliviertassinari
85
+ - [internal] Rename core to internal (#19203) @oliviertassinari
86
+ - [internal] Update link to GitHub labels @oliviertassinari
87
+
88
+ ### Miscellaneous
89
+
90
+ - [code-infra] Prepare for incoming `execa` update (#19229) @Janpot
91
+ - [virtualizer] Fix type import (#19192) @Methuselah96
92
+ - [virtualizer] Improve type export (#19192) @Methuselah96
93
+
94
+ ## 8.10.1
95
+
96
+ _Aug 15, 2025_
97
+
98
+ We'd like to extend a big thank you to the 8 contributors who made this release possible. Here are some highlights ✨:
99
+
100
+ - 📊 Y-axes can now be grouped by category when using `band` and `point` scales.
101
+ - 📚 Documentation improvements
102
+
103
+ The following are all team members who have contributed to this release:
104
+ @alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk
105
+
106
+ ### Data Grid
107
+
108
+ #### `@mui/x-data-grid@8.10.1`
109
+
110
+ - [DataGrid] Fix scroll jumping (#19156) @romgrk
111
+ - [DataGrid] Fix scroll restoration (#19182) @romgrk
112
+ - [DataGrid] Fix "no row with id" error (#19193) @romgrk
113
+
114
+ #### `@mui/x-data-grid-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
115
+
116
+ Same changes as in `@mui/x-data-grid@8.10.1`.
117
+
118
+ #### `@mui/x-data-grid-premium@8.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
119
+
120
+ Same changes as in `@mui/x-data-grid-pro@8.10.1`.
121
+
122
+ ### Date and Time Pickers
123
+
124
+ #### `@mui/x-date-pickers@8.10.0`
125
+
126
+ Internal changes.
127
+
128
+ #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
129
+
130
+ Same changes as in `@mui/x-date-pickers@8.10.0`.
131
+
132
+ ### Charts
133
+
134
+ - Axes can now be grouped by category when using `band` and `point` scales
135
+
136
+ <img width="643" height="455" alt="Bar chart with y-axis grouped per categories" src="https://github.com/user-attachments/assets/59044afe-bcc5-4152-8bf1-225db0635025" />
137
+
138
+ #### `@mui/x-charts@8.10.1`
139
+
140
+ - [charts] Allow y-axis to be grouped (#19081) @JCQuintas
141
+ - [charts] Fix default axis highlight for axes without data attribute (#18985) @alexfauquette
142
+ - [charts] Fix tooltip mark unexpected wrapping in mobile (#19122) @bernardobelchior
143
+ - [charts] Prevent overflow on charts tooltip (#19123) @bernardobelchior
144
+
145
+ #### `@mui/x-charts-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
146
+
147
+ Same changes as in `@mui/x-charts@8.10.1`.
148
+
149
+ ### Tree View
150
+
151
+ #### `@mui/x-tree-view@8.10.1`
152
+
153
+ Internal changes.
154
+
155
+ #### `@mui/x-tree-view-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
156
+
157
+ Same changes as in `@mui/x-tree-view@8.10.1`.
158
+
159
+ ### Codemod
160
+
161
+ #### `@mui/x-codemod@8.10.1`
162
+
163
+ Internal changes.
164
+
165
+ ### Docs
166
+
167
+ - [docs] Add all planned charts on the overview page (#19077) @prakhargupta1
168
+ - [docs] Add future charts components link in the sidebar (#19140) @prakhargupta1
169
+ - [docs] Fix Heatmap docs duplicate text (#19138) @JCQuintas
170
+ - [docs] Remove preview from Toolbar & Funnel (#19131) @mnajdova
171
+ - [docs] Reproduce npm sparkline (#19089) @alexfauquette
172
+
173
+ ### Core
174
+
175
+ - [core] Fix licensing model name (#19025) @oliviertassinari
176
+ - [core] Fix usage of `:catalog` for `@babel/runtime` (#19028) @oliviertassinari
177
+ - [core] Refactor virtualizer API (#18995) @romgrk
178
+
179
+ ### Miscellaneous
180
+
181
+ - [code-infra] Remove namespaces (#19071) @Janpot
182
+ - [code-infra] Fix `fs-extra` removal from `formattedTSDemos` script (#19132) @bernardobelchior
183
+ - [code-infra] Remove unused code and dependency (#19139) @bernardobelchior
184
+ - [code-infra] Replace `fs-extra` with `node:fs` where possible (#19127) @bernardobelchior
185
+ - [internal] Edit, keep `lockFileMaintenance` simple @oliviertassinari
186
+ - [internal] Fix writing style action name @oliviertassinari
187
+ - [internal] Make it clear that `lockFileMaintenance` is enabled @oliviertassinari
188
+ - [support-infra] Remove default issue label (#19104) @oliviertassinari
189
+
8
190
  ## 8.10.0
9
191
 
10
192
  _Aug 8, 2025_