@mui/x-date-pickers 6.19.9 → 6.19.12

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.
@@ -189,14 +189,10 @@ export class AdapterMomentJalaali extends AdapterMoment {
189
189
  return this.moment(value).isSame(comparing);
190
190
  };
191
191
  this.isSameYear = (value, comparing) => {
192
- // `isSame` seems to mutate the date on `moment-jalaali`
193
- // @ts-ignore
194
- return value.clone().isSame(comparing, 'jYear');
192
+ return value.jYear() === comparing.jYear();
195
193
  };
196
194
  this.isSameMonth = (value, comparing) => {
197
- // `isSame` seems to mutate the date on `moment-jalaali`
198
- // @ts-ignore
199
- return value.clone().isSame(comparing, 'jMonth');
195
+ return value.jYear() === comparing.jYear() && value.jMonth() === comparing.jMonth();
200
196
  };
201
197
  this.isAfterYear = (value, comparing) => {
202
198
  return value.jYear() > comparing.jYear();
package/CHANGELOG.md CHANGED
@@ -3,6 +3,78 @@
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.19.12
7
+
8
+ _May 17, 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
+ - 🐞 Bugfixes
13
+
14
+ ### Date Pickers
15
+
16
+ #### `@mui/x-date-pickers@6.19.12`
17
+
18
+ - [pickers] Fix `AdapterMomentJalaali` regression (#13150) @LukasTy
19
+
20
+ #### `@mui/x-date-pickers-pro@6.19.12` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
21
+
22
+ Same changes as in `@mui/x-date-pickers@6.19.12`.
23
+
24
+ ### Docs
25
+
26
+ - [docs] Use MUI X v6 in Codesandbox and Stackblitz demos (#12838) @cherniavskii
27
+
28
+ ## 6.19.11
29
+
30
+ _Apr 18, 2024_
31
+
32
+ We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
33
+
34
+ - 🐞 Bugfixes
35
+
36
+ ### Data Grid
37
+
38
+ #### `@mui/x-data-grid@6.19.11`
39
+
40
+ - [DataGrid] Fix virtualization memory leak (#12812) @romgrk
41
+
42
+ #### `@mui/x-data-grid-pro@6.19.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
43
+
44
+ Same changes as in `@mui/x-data-grid@6.19.11`.
45
+
46
+ #### `@mui/x-data-grid-premium@6.19.11` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
47
+
48
+ Same changes as in `@mui/x-data-grid-pro@6.19.11`.
49
+
50
+ ## 6.19.10
51
+
52
+ _Apr 12, 2024_
53
+
54
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
55
+
56
+ - 🐞 Bugfixes
57
+ - 📚 Documentation improvements
58
+
59
+ ### Data Grid
60
+
61
+ #### `@mui/x-data-grid@6.19.10`
62
+
63
+ - [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
64
+ - [DataGrid] Fix bug in suspense (#12754) @cherniavskii
65
+
66
+ #### `@mui/x-data-grid-pro@6.19.10` [![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.19.10`.
69
+
70
+ #### `@mui/x-data-grid-premium@6.19.10` [![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.19.10`.
73
+
74
+ ### Core
75
+
76
+ - [core] Update the docs release source branch (#12685) @LukasTy
77
+
6
78
  ## 6.19.9
7
79
 
8
80
  _Apr 5, 2024_
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.19.9
2
+ * @mui/x-date-pickers v6.19.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -201,14 +201,10 @@ export var AdapterMomentJalaali = /*#__PURE__*/function (_AdapterMoment) {
201
201
  return _this.moment(value).isSame(comparing);
202
202
  };
203
203
  _this.isSameYear = function (value, comparing) {
204
- // `isSame` seems to mutate the date on `moment-jalaali`
205
- // @ts-ignore
206
- return value.clone().isSame(comparing, 'jYear');
204
+ return value.jYear() === comparing.jYear();
207
205
  };
208
206
  _this.isSameMonth = function (value, comparing) {
209
- // `isSame` seems to mutate the date on `moment-jalaali`
210
- // @ts-ignore
211
- return value.clone().isSame(comparing, 'jMonth');
207
+ return value.jYear() === comparing.jYear() && value.jMonth() === comparing.jMonth();
212
208
  };
213
209
  _this.isAfterYear = function (value, comparing) {
214
210
  return value.jYear() > comparing.jYear();
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.19.9
2
+ * @mui/x-date-pickers v6.19.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -189,14 +189,10 @@ export class AdapterMomentJalaali extends AdapterMoment {
189
189
  return this.moment(value).isSame(comparing);
190
190
  };
191
191
  this.isSameYear = (value, comparing) => {
192
- // `isSame` seems to mutate the date on `moment-jalaali`
193
- // @ts-ignore
194
- return value.clone().isSame(comparing, 'jYear');
192
+ return value.jYear() === comparing.jYear();
195
193
  };
196
194
  this.isSameMonth = (value, comparing) => {
197
- // `isSame` seems to mutate the date on `moment-jalaali`
198
- // @ts-ignore
199
- return value.clone().isSame(comparing, 'jMonth');
195
+ return value.jYear() === comparing.jYear() && value.jMonth() === comparing.jMonth();
200
196
  };
201
197
  this.isAfterYear = (value, comparing) => {
202
198
  return value.jYear() > comparing.jYear();
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.19.9
2
+ * @mui/x-date-pickers v6.19.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -197,14 +197,10 @@ class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
197
197
  return this.moment(value).isSame(comparing);
198
198
  };
199
199
  this.isSameYear = (value, comparing) => {
200
- // `isSame` seems to mutate the date on `moment-jalaali`
201
- // @ts-ignore
202
- return value.clone().isSame(comparing, 'jYear');
200
+ return value.jYear() === comparing.jYear();
203
201
  };
204
202
  this.isSameMonth = (value, comparing) => {
205
- // `isSame` seems to mutate the date on `moment-jalaali`
206
- // @ts-ignore
207
- return value.clone().isSame(comparing, 'jMonth');
203
+ return value.jYear() === comparing.jYear() && value.jMonth() === comparing.jMonth();
208
204
  };
209
205
  this.isAfterYear = (value, comparing) => {
210
206
  return value.jYear() > comparing.jYear();
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.19.9
2
+ * @mui/x-date-pickers v6.19.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "6.19.9",
3
+ "version": "6.19.12",
4
4
  "description": "The community edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",