@mui/x-date-pickers-pro 7.0.0-alpha.8 → 7.0.0-alpha.9
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 +379 -2
- package/DateRangePicker/DateRangePicker.js +0 -3
- package/DateRangePicker/DateRangePickerToolbar.js +0 -3
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -3
- package/MobileDateRangePicker/MobileDateRangePicker.js +0 -3
- package/README.md +1 -1
- package/StaticDateRangePicker/StaticDateRangePicker.js +0 -3
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/internals/utils/valueManagers.js +4 -4
- package/legacy/DateRangePicker/DateRangePicker.js +0 -3
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +0 -3
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -3
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -3
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -3
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/legacy/internals/utils/valueManagers.js +4 -4
- package/legacy/locales/index.js +1 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/package.json +6 -0
- package/modern/DateRangePicker/DateRangePicker.js +0 -3
- package/modern/DateRangePicker/DateRangePickerToolbar.js +0 -3
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -3
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -3
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -3
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/internals/utils/valueManagers.js +4 -4
- package/modern/locales/index.js +1 -0
- package/node/DateRangePicker/DateRangePicker.js +0 -3
- package/node/DateRangePicker/DateRangePickerToolbar.js +0 -3
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -3
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +0 -3
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +0 -3
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/node/internals/utils/valueManagers.js +4 -4
- package/node/locales/index.js +16 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,344 @@
|
|
|
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.0.0-alpha.9
|
|
7
|
+
|
|
8
|
+
_Jan 19, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 The Data Grid headers have been refactored to bring immense improvements to scrolling, state management, and overall performance of the grid.
|
|
13
|
+
- ⚙️ The Data Grid disabled column-specific features like filtering, sorting, grouping, etc. could now be accessed programmatically. See the related [docs](https://next.mui.com/x/react-data-grid/api-object/#access-the-disabled-column-features) section.
|
|
14
|
+
- 🚀 Uplift the `SimpleTreeView` customization examples (#11424) @noraleonte
|
|
15
|
+
- 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11668) on the Data Grid @BCaspari
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
- 💔 Bump `@mui/material` peer dependency for all packages (#11692) @LukasTy
|
|
18
|
+
The minimum required version of `@mui/material` is now `5.15.0`.
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### Breaking changes
|
|
23
|
+
|
|
24
|
+
- The `ariaV7` experimental flag has been removed and the Data Grid now uses the improved accessibility implementation by default.
|
|
25
|
+
If you were using the `ariaV7` flag, you can remove it from the `experimentalFeatures` prop:
|
|
26
|
+
|
|
27
|
+
```diff
|
|
28
|
+
-<DataGrid experimentalFeatures={{ ariaV7: true }} />
|
|
29
|
+
+<DataGrid />
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The most notable changes that might affect your application or tests are:
|
|
33
|
+
|
|
34
|
+
- The `role="grid"` attribute along with related ARIA attributes are now applied to the inner `div` element instead of the root `div` element:
|
|
35
|
+
|
|
36
|
+
```diff
|
|
37
|
+
-<div class="MuiDataGrid-root" role="grid" aria-colcount="5" aria-rowcount="101" aria-multiselectable="false">
|
|
38
|
+
+<div class="MuiDataGrid-root">
|
|
39
|
+
<div class="MuiDataGrid-toolbarContainer"></div>
|
|
40
|
+
- <div class="MuiDataGrid-main"></div>
|
|
41
|
+
+ <div class="MuiDataGrid-main" role="grid" aria-colcount="5" aria-rowcount="101" aria-multiselectable="false"></div>
|
|
42
|
+
<div class="MuiDataGrid-footerContainer"></div>
|
|
43
|
+
</div>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- When the [Tree data](https://next.mui.com/x/react-data-grid/tree-data/) feature is used, the grid role is now `role="treegrid"` instead of `role="grid"`.
|
|
47
|
+
- The Data Grid cells now have `role="gridcell"` instead of `role="cell"`.
|
|
48
|
+
|
|
49
|
+
- The buttons in toolbar composable components `GridToolbarColumnsButton`, `GridToolbarFilterButton`, `GridToolbarDensity`, and `GridToolbarExport` are now wrapped with a tooltip component and have a consistent interface. To override some props corresponding to the toolbar buttons or their corresponding tooltips, you can use the `slotProps` prop. Following is an example diff. See [Toolbar section](https://next.mui.com/x/react-data-grid/components/#toolbar) for more details.
|
|
50
|
+
|
|
51
|
+
```diff
|
|
52
|
+
function CustomToolbar() {
|
|
53
|
+
return (
|
|
54
|
+
<GridToolbarContainer>
|
|
55
|
+
<GridToolbarColumnsButton />
|
|
56
|
+
<GridToolbarFilterButton
|
|
57
|
+
- title="Custom filter" // 🛑 This was previously forwarded to the tooltip component
|
|
58
|
+
+ slotProps={{ tooltip: { title: 'Custom filter' } }} // ✅ This is the correct way now
|
|
59
|
+
/>
|
|
60
|
+
<GridToolbarDensitySelector
|
|
61
|
+
- variant="outlined" // 🛑 This was previously forwarded to the button component
|
|
62
|
+
+ slotProps={{ button: { variant: 'outlined' } }} // ✅ This is the correct way now
|
|
63
|
+
/>
|
|
64
|
+
</GridToolbarContainer>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- Column grouping is now enabled by default. The flag `columnGrouping` is no longer needed to be passed to the `experimentalFeatures` prop to enable it.
|
|
70
|
+
|
|
71
|
+
```diff
|
|
72
|
+
-<DataGrid experimentalFeatures={{ columnGrouping: true }} />
|
|
73
|
+
+<DataGrid />
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- The column grouping API methods `getColumnGroupPath` and `getAllGroupDetails` are no longer prefixed with `unstable_`.
|
|
77
|
+
|
|
78
|
+
- The column grouping selectors `gridFocusColumnGroupHeaderSelector` and `gridTabIndexColumnGroupHeaderSelector` are no longer prefixed with `unstable_`.
|
|
79
|
+
|
|
80
|
+
- The disabled column specific features like `hiding`, `sorting`, `filtering`, `pinning`, `row grouping`, etc could now be controlled programmatically using `initialState`, respective controlled models, or the [API object](https://next.mui.com/x/react-data-grid/api-object/). See the related [docs](https://next.mui.com/x/react-data-grid/api-object/#access-the-disabled-column-features) section.
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-data-grid@7.0.0-alpha.9`
|
|
83
|
+
|
|
84
|
+
- [DataGrid] Allow to filter non-filterable columns programmatically (#11538) @MBilalShafi
|
|
85
|
+
- [DataGrid] Allow to programmatically sort unsortable columns (#11512) @MBilalShafi
|
|
86
|
+
- [DataGrid] Fix incorrect default value for `filterModel.logicOperator` (#11673) @MBilalShafi
|
|
87
|
+
- [DataGrid] Make `column grouping` feature stable (#11698) @MBilalShafi
|
|
88
|
+
- [DataGrid] Remove the `ariaV7` experimental flag (#11428) @cherniavskii
|
|
89
|
+
- [DataGrid] Start the FAQ page (#11686) @MBilalShafi
|
|
90
|
+
- [DataGrid] Sticky headers (#10059) @romgrk
|
|
91
|
+
- [DataGrid] Wrap toolbar buttons with tooltip (#11357) @MBilalShafi
|
|
92
|
+
- [l10n] Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11668) @BCaspari
|
|
93
|
+
|
|
94
|
+
#### `@mui/x-data-grid-pro@7.0.0-alpha.9` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
95
|
+
|
|
96
|
+
Same changes as in `@mui/x-data-grid@7.0.0-alpha.9`, plus:
|
|
97
|
+
|
|
98
|
+
- [DataGridPro] Allow non-pinnable columns to be pinned programmatically (#11680) @MBilalShafi
|
|
99
|
+
|
|
100
|
+
#### `@mui/x-data-grid-premium@7.0.0-alpha.9` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
101
|
+
|
|
102
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.9`, plus:
|
|
103
|
+
|
|
104
|
+
- [DataGridPremium] Allow aggregation to be applied for non-aggregable columns (#11574) @MBilalShafi
|
|
105
|
+
- [DataGridPremium] Allow programmatically grouping non-groupable columns (#11539) @MBilalShafi
|
|
106
|
+
|
|
107
|
+
### Date Pickers
|
|
108
|
+
|
|
109
|
+
#### Breaking changes
|
|
110
|
+
|
|
111
|
+
- The `locales` export has been removed from the root of the packages.
|
|
112
|
+
If you were importing locales from the root, be sure to update it:
|
|
113
|
+
|
|
114
|
+
```diff
|
|
115
|
+
-import { frFR } from '@mui/x-date-pickers';
|
|
116
|
+
+import { frFR } from '@mui/x-date-pickers/locales';
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### `@mui/x-date-pickers@7.0.0-alpha.9`
|
|
120
|
+
|
|
121
|
+
- [fields] Make `PickersTextField` and its dependencies public (#11581) @flaviendelangle
|
|
122
|
+
- [fields] Support farsi digits (#11639) @flaviendelangle
|
|
123
|
+
- [pickers] Fix AdapterLuxon `getWeekNumber` behavior (#11697) @LukasTy
|
|
124
|
+
- [pickers] Stop root exporting `locales` (#11612) @LukasTy
|
|
125
|
+
|
|
126
|
+
#### `@mui/x-date-pickers-pro@7.0.0-alpha.9` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
127
|
+
|
|
128
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
|
|
129
|
+
|
|
130
|
+
### Charts / `@mui/x-charts@7.0.0-alpha.9`
|
|
131
|
+
|
|
132
|
+
- [charts] Do not propagate `innerRadius` and `outerRadius` to the DOM (#11689) @alexfauquette
|
|
133
|
+
- [charts] Fix default `stackOffset` for `LineChart` (#11647) @alexfauquette
|
|
134
|
+
- [charts] Remove a TS ignore (#11688) @alexfauquette
|
|
135
|
+
|
|
136
|
+
### Tree View
|
|
137
|
+
|
|
138
|
+
#### Breaking changes
|
|
139
|
+
|
|
140
|
+
- The `expandIcon` / `defaultExpandIcon` props, used to expand the children of a node (rendered when it is collapsed),
|
|
141
|
+
is now defined as a slot both on the Tree View and the Tree Item components.
|
|
142
|
+
|
|
143
|
+
If you were using the `ChevronRight` icon from `@mui/icons-material`,
|
|
144
|
+
you can stop passing it to your component because it is now the default value:
|
|
145
|
+
|
|
146
|
+
```diff
|
|
147
|
+
-import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
148
|
+
|
|
149
|
+
<SimpleTreeView
|
|
150
|
+
- defaultExpandIcon={<ChevronRightIcon />}
|
|
151
|
+
>
|
|
152
|
+
{items}
|
|
153
|
+
</SimpleTreeView>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
If you were passing another icon to your Tree View component,
|
|
157
|
+
you need to use the new `expandIcon` slot on this component:
|
|
158
|
+
|
|
159
|
+
```diff
|
|
160
|
+
<SimpleTreeView
|
|
161
|
+
- defaultExpandIcon={<MyCustomExpandIcon />}
|
|
162
|
+
+ slots={{ expandIcon: MyCustomExpandIcon }}
|
|
163
|
+
>
|
|
164
|
+
{items}
|
|
165
|
+
</SimpleTreeView>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
If you were passing another icon to your Tree Item component,
|
|
169
|
+
you need to use the new `expandIcon` slot on this component:
|
|
170
|
+
|
|
171
|
+
```diff
|
|
172
|
+
<SimpleTreeView>
|
|
173
|
+
<TreeItem
|
|
174
|
+
nodeId="1"
|
|
175
|
+
label="Node 1"
|
|
176
|
+
- expandIcon={<MyCustomExpandIcon />}
|
|
177
|
+
+ slots={{ expandIcon: MyCustomExpandIcon }}
|
|
178
|
+
/>
|
|
179
|
+
</SimpleTreeView>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
- The `collapseIcon` / `defaultCollapseIcon` props, used to collapse the children of a node (rendered when it is expanded),
|
|
183
|
+
is now defined as a slot both on the Tree View and the Tree Item components.
|
|
184
|
+
|
|
185
|
+
If you were using the `ExpandMore` icon from `@mui/icons-material`,
|
|
186
|
+
you can stop passing it to your component because it is now the default value:
|
|
187
|
+
|
|
188
|
+
```diff
|
|
189
|
+
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
190
|
+
|
|
191
|
+
<SimpleTreeView
|
|
192
|
+
- defaultCollapseIcon={<ExpandMoreIcon />}
|
|
193
|
+
>
|
|
194
|
+
{items}
|
|
195
|
+
</SimpleTreeView>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
If you were passing another icon to your Tree View component,
|
|
199
|
+
you need to use the new `collapseIcon` slot on this component:
|
|
200
|
+
|
|
201
|
+
```diff
|
|
202
|
+
<SimpleTreeView
|
|
203
|
+
- defaultCollapseIcon={<MyCustomCollapseIcon />}
|
|
204
|
+
+ slots={{ collapseIcon: MyCustomCollapseIcon }}
|
|
205
|
+
>
|
|
206
|
+
{items}
|
|
207
|
+
</SimpleTreeView>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
If you were passing another icon to your Tree Item component,
|
|
211
|
+
you need to use the new `collapseIcon` slot on this component:
|
|
212
|
+
|
|
213
|
+
```diff
|
|
214
|
+
<SimpleTreeView>
|
|
215
|
+
<TreeItem
|
|
216
|
+
nodeId="1"
|
|
217
|
+
label="Node 1"
|
|
218
|
+
- collapseIcon={<MyCustomCollapseIcon />}
|
|
219
|
+
+ slots={{ collapseIcon: MyCustomCollapseIcon }}
|
|
220
|
+
/>
|
|
221
|
+
</SimpleTreeView>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
- The `useTreeItem` hook has been renamed `useTreeItemState`.
|
|
225
|
+
This will help create a new headless version of the `TreeItem` component based on a future `useTreeItem` hook.
|
|
226
|
+
|
|
227
|
+
```diff
|
|
228
|
+
-import { TreeItem, useTreeItem } from '@mui/x-tree-view/TreeItem';
|
|
229
|
+
+import { TreeItem, useTreeItemState } from '@mui/x-tree-view/TreeItem';
|
|
230
|
+
|
|
231
|
+
const CustomContent = React.forwardRef((props, ref) => {
|
|
232
|
+
- const { disabled } = useTreeItem(props.nodeId);
|
|
233
|
+
+ const { disabled } = useTreeItemState(props.nodeId);
|
|
234
|
+
|
|
235
|
+
// Render some UI
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
function App() {
|
|
239
|
+
return (
|
|
240
|
+
<SimpleTreeView>
|
|
241
|
+
<TreeItem ContentComponent={CustomContent} />
|
|
242
|
+
</SimpleTreeView>
|
|
243
|
+
)
|
|
244
|
+
}
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
- The `parentIcon` prop has been removed from the Tree View components.
|
|
248
|
+
|
|
249
|
+
If you were passing an icon to your Tree View component,
|
|
250
|
+
you can achieve the same behavior
|
|
251
|
+
by passing the same icon to both the `collapseIcon` and the `expandIcon` slots on this component:
|
|
252
|
+
|
|
253
|
+
```diff
|
|
254
|
+
<SimpleTreeView
|
|
255
|
+
- defaultParentIcon={<MyCustomParentIcon />}
|
|
256
|
+
+ slots={{ collapseIcon: MyCustomParentIcon, expandIcon: MyCustomParentIcon }}
|
|
257
|
+
>
|
|
258
|
+
{items}
|
|
259
|
+
</SimpleTreeView>
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
- The `endIcon` / `defaultEndIcon` props, rendered next to an item without children,
|
|
263
|
+
is now defined as a slot both on the Tree View and the Tree Item components.
|
|
264
|
+
|
|
265
|
+
If you were passing an icon to your Tree View component,
|
|
266
|
+
you need to use the new `endIcon` slot on this component:
|
|
267
|
+
|
|
268
|
+
```diff
|
|
269
|
+
<SimpleTreeView
|
|
270
|
+
- defaultEndIcon={<MyCustomEndIcon />}
|
|
271
|
+
+ slots={{ endIcon: MyCustomEndIcon }}
|
|
272
|
+
>
|
|
273
|
+
{items}
|
|
274
|
+
</SimpleTreeView>
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
If you were passing an icon to your Tree Item component,
|
|
278
|
+
you need to use the new `endIcon` slot on this component:
|
|
279
|
+
|
|
280
|
+
```diff
|
|
281
|
+
<SimpleTreeView>
|
|
282
|
+
<TreeItem
|
|
283
|
+
nodeId="1"
|
|
284
|
+
label="Node 1"
|
|
285
|
+
- endIcon={<MyCustomEndIcon />}
|
|
286
|
+
+ slots={{ endIcon: MyCustomEndIcon }}
|
|
287
|
+
/>
|
|
288
|
+
</SimpleTreeView>
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
- The `icon` prop, rendered next to an item without children,
|
|
292
|
+
is now defined as a slot on the Tree Item component.
|
|
293
|
+
|
|
294
|
+
If you were passing an icon to your Tree Item component,
|
|
295
|
+
you need to use the new `icon` slot on this component:
|
|
296
|
+
|
|
297
|
+
```diff
|
|
298
|
+
<SimpleTreeView>
|
|
299
|
+
<TreeItem
|
|
300
|
+
nodeId="1"
|
|
301
|
+
label="Node 1"
|
|
302
|
+
- icon={<MyCustomIcon />}
|
|
303
|
+
+ slots={{ icon: MyCustomIcon }}
|
|
304
|
+
/>
|
|
305
|
+
</SimpleTreeView>
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
#### `@mui/x-tree-view@7.0.0-alpha.9`
|
|
309
|
+
|
|
310
|
+
- [TreeView] Adjust expansion and selection docs (#11723) @noraleonte
|
|
311
|
+
- [TreeView] Improve plugin signature definition (#11665) @flaviendelangle
|
|
312
|
+
- [TreeView] Make each plugin responsible for its context value (#11623) @flaviendelangle
|
|
313
|
+
- [TreeView] Migrate remaining icon props to slots (#11713) @flaviendelangle
|
|
314
|
+
- [TreeView] Pass through `Theme` generic to variants (#11480) @dhulme
|
|
315
|
+
- [TreeView] Rename `useTreeItem` to `useTreeItemState` (#11712) @flaviendelangle
|
|
316
|
+
- [TreeView] Add `slots` and `slotProps` on the Tree View components (#11664) @flaviendelangle
|
|
317
|
+
- [TreeView] Explore a better plugin model API (#11567) @flaviendelangle
|
|
318
|
+
|
|
319
|
+
### Docs
|
|
320
|
+
|
|
321
|
+
- [docs] Clean the pickers migration guide (#11694) @flaviendelangle
|
|
322
|
+
- [docs] Cleanup and fix Pickers Playground styling (#11700) @LukasTy
|
|
323
|
+
- [docs] First draft of the Tree View custom plugin doc (#11564) @flaviendelangle
|
|
324
|
+
- [docs] Fix Pickers migration syntax and diffs (#11695) @LukasTy
|
|
325
|
+
- [docs] Fix generated tree view API docs (#11737) @LukasTy
|
|
326
|
+
- [docs] Generate docs for Tree View slots (#11730) @flaviendelangle
|
|
327
|
+
- [docs] Improve codemod for v7 (#11650) @oliviertassinari
|
|
328
|
+
- [docs] Improve data grid `pageSizeOptions` prop documentation (#11682) @oliviertassinari
|
|
329
|
+
- [docs] Parse markdown on API docs demo titles (#11728) @LukasTy
|
|
330
|
+
- [docs] Remove the description from the `className` prop (#11693) @oliviertassinari
|
|
331
|
+
- [docs] Uplift `SimpleTreeView` customization examples (#11424) @noraleonte
|
|
332
|
+
- [docs] Uplift the Date Pickers playground (#11555) @danilo-leal
|
|
333
|
+
|
|
334
|
+
### Core
|
|
335
|
+
|
|
336
|
+
- [core] Bump `@mui/material` peer dependency for all packages (#11692) @LukasTy
|
|
337
|
+
- [core] Make `karma` run in parallel (#11571) @romgrk
|
|
338
|
+
- [core] make `karma-parallel` run under a new command (#11716) @romgrk
|
|
339
|
+
- [code-infra] Migrate all prettier APIs to the async version (#11732) @Janpot
|
|
340
|
+
- [code-infra] Update the Babel macro path (#11479) @michaldudak
|
|
341
|
+
- [docs-infra] Enforce brand name rules (#11651) @oliviertassinari
|
|
342
|
+
- [test] Fix flaky Data Grid test (#11725) @cherniavskii
|
|
343
|
+
|
|
6
344
|
## 7.0.0-alpha.8
|
|
7
345
|
|
|
8
346
|
_Jan 11, 2024_
|
|
@@ -103,8 +441,8 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
103
441
|
id: 'node-1',
|
|
104
442
|
label: 'Node 1',
|
|
105
443
|
children: [
|
|
106
|
-
{ id: 'node-1-1', label: Node 1.1' },
|
|
107
|
-
{ id: 'node-1-2', label: Node 1.2' },
|
|
444
|
+
{ id: 'node-1-1', label: 'Node 1.1' },
|
|
445
|
+
{ id: 'node-1-2', label: 'Node 1.2' },
|
|
108
446
|
],
|
|
109
447
|
},
|
|
110
448
|
{
|
|
@@ -1119,10 +1457,20 @@ And if you need the exact same output you can apply the following transformation
|
|
|
1119
1457
|
- The `adapter.toISO` method have been removed, you can directly use your date library:
|
|
1120
1458
|
|
|
1121
1459
|
```diff
|
|
1460
|
+
// For Day.js
|
|
1122
1461
|
-const isoString = adapter.toISO(value);
|
|
1123
1462
|
+const isoString = value.toISOString();
|
|
1463
|
+
|
|
1464
|
+
// For Luxon
|
|
1465
|
+
-const isoString = adapter.toISO(value);
|
|
1124
1466
|
+const isoString = value.toUTC().toISO({ format: 'extended' });
|
|
1467
|
+
|
|
1468
|
+
// For DateFns
|
|
1469
|
+
-const isoString = adapter.toISO(value);
|
|
1125
1470
|
+const isoString = dateFns.formatISO(value, { format: 'extended' });
|
|
1471
|
+
|
|
1472
|
+
// For Moment
|
|
1473
|
+
-const isoString = adapter.toISO(value);
|
|
1126
1474
|
+const isoString = value.toISOString();
|
|
1127
1475
|
```
|
|
1128
1476
|
|
|
@@ -1424,6 +1772,35 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
1424
1772
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
1425
1773
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
1426
1774
|
|
|
1775
|
+
## 6.19.1
|
|
1776
|
+
|
|
1777
|
+
_Jan 19, 2024_
|
|
1778
|
+
|
|
1779
|
+
We'd like to offer a big thanks to the 1 contributors who made this release possible. Here are some highlights ✨:
|
|
1780
|
+
|
|
1781
|
+
- 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
|
|
1782
|
+
- 🐞 Bugfixes
|
|
1783
|
+
|
|
1784
|
+
### Data Grid
|
|
1785
|
+
|
|
1786
|
+
#### `@mui/x-data-grid@6.19.1`
|
|
1787
|
+
|
|
1788
|
+
- [l10n] Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
|
|
1789
|
+
|
|
1790
|
+
#### `@mui/x-data-grid-pro@6.19.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
1791
|
+
|
|
1792
|
+
Same changes as in `@mui/x-data-grid@6.19.1`.
|
|
1793
|
+
|
|
1794
|
+
#### `@mui/x-data-grid-premium@6.19.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
1795
|
+
|
|
1796
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.1`.
|
|
1797
|
+
|
|
1798
|
+
### Charts / `@mui/x-charts@6.19.1`
|
|
1799
|
+
|
|
1800
|
+
- [charts] Add `arcLabelRadius` property (#11563) @alexfauquette
|
|
1801
|
+
- [charts] Do not propagate `innerRadius` and `outerRadius` to the DOM (#11719) @alexfauquette
|
|
1802
|
+
- [charts] Fix default `stackOffset` for `LineChart` (#11703) @alexfauquette
|
|
1803
|
+
|
|
1427
1804
|
## 6.19.0
|
|
1428
1805
|
|
|
1429
1806
|
_Jan 11, 2024_
|
|
@@ -59,9 +59,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
59
59
|
* @default 2
|
|
60
60
|
*/
|
|
61
61
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
62
|
-
/**
|
|
63
|
-
* Class name applied to the root element.
|
|
64
|
-
*/
|
|
65
62
|
className: PropTypes.string,
|
|
66
63
|
/**
|
|
67
64
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -94,9 +94,6 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
|
|
|
94
94
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
95
95
|
// ----------------------------------------------------------------------
|
|
96
96
|
classes: PropTypes.object,
|
|
97
|
-
/**
|
|
98
|
-
* className applied to the root component.
|
|
99
|
-
*/
|
|
100
97
|
className: PropTypes.string,
|
|
101
98
|
disabled: PropTypes.bool,
|
|
102
99
|
/**
|
|
@@ -74,9 +74,6 @@ DesktopDateRangePicker.propTypes = {
|
|
|
74
74
|
* @default 2
|
|
75
75
|
*/
|
|
76
76
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
77
|
-
/**
|
|
78
|
-
* Class name applied to the root element.
|
|
79
|
-
*/
|
|
80
77
|
className: PropTypes.string,
|
|
81
78
|
/**
|
|
82
79
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -74,9 +74,6 @@ MobileDateRangePicker.propTypes = {
|
|
|
74
74
|
* @default 2
|
|
75
75
|
*/
|
|
76
76
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
77
|
-
/**
|
|
78
|
-
* Class name applied to the root element.
|
|
79
|
-
*/
|
|
80
77
|
className: PropTypes.string,
|
|
81
78
|
/**
|
|
82
79
|
* If `true`, the popover or modal will close after submitting the full date.
|
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwNTYxODgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -50,7 +50,7 @@ export const rangeFieldValueManager = {
|
|
|
50
50
|
}
|
|
51
51
|
return [prevReferenceValue[1], value[1]];
|
|
52
52
|
},
|
|
53
|
-
getSectionsFromValue: (utils, [start, end], fallbackSections, isRTL, getSectionsFromDate) => {
|
|
53
|
+
getSectionsFromValue: (utils, [start, end], fallbackSections, localizedDigits, isRTL, getSectionsFromDate) => {
|
|
54
54
|
const separatedFallbackSections = fallbackSections == null ? {
|
|
55
55
|
startDate: null,
|
|
56
56
|
endDate: null
|
|
@@ -73,11 +73,11 @@ export const rangeFieldValueManager = {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
return addPositionPropertiesToSections([...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')], isRTL);
|
|
76
|
+
return addPositionPropertiesToSections([...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')], localizedDigits, isRTL);
|
|
77
77
|
},
|
|
78
|
-
getValueStrFromSections: (sections, isRTL) => {
|
|
78
|
+
getValueStrFromSections: (sections, localizedDigits, isRTL) => {
|
|
79
79
|
const dateRangeSections = splitDateRangeSections(sections);
|
|
80
|
-
return createDateStrForInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], isRTL);
|
|
80
|
+
return createDateStrForInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRTL);
|
|
81
81
|
},
|
|
82
82
|
parseValueStr: (valueStr, referenceValue, parseDate) => {
|
|
83
83
|
// TODO: Improve because it would not work if the date format has `–` as a separator.
|
|
@@ -58,9 +58,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
58
58
|
* @default 2
|
|
59
59
|
*/
|
|
60
60
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
61
|
-
/**
|
|
62
|
-
* Class name applied to the root element.
|
|
63
|
-
*/
|
|
64
61
|
className: PropTypes.string,
|
|
65
62
|
/**
|
|
66
63
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -101,9 +101,6 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
|
|
|
101
101
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
102
102
|
// ----------------------------------------------------------------------
|
|
103
103
|
classes: PropTypes.object,
|
|
104
|
-
/**
|
|
105
|
-
* className applied to the root component.
|
|
106
|
-
*/
|
|
107
104
|
className: PropTypes.string,
|
|
108
105
|
disabled: PropTypes.bool,
|
|
109
106
|
/**
|
|
@@ -73,9 +73,6 @@ DesktopDateRangePicker.propTypes = {
|
|
|
73
73
|
* @default 2
|
|
74
74
|
*/
|
|
75
75
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
76
|
-
/**
|
|
77
|
-
* Class name applied to the root element.
|
|
78
|
-
*/
|
|
79
76
|
className: PropTypes.string,
|
|
80
77
|
/**
|
|
81
78
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -73,9 +73,6 @@ MobileDateRangePicker.propTypes = {
|
|
|
73
73
|
* @default 2
|
|
74
74
|
*/
|
|
75
75
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
76
|
-
/**
|
|
77
|
-
* Class name applied to the root element.
|
|
78
|
-
*/
|
|
79
76
|
className: PropTypes.string,
|
|
80
77
|
/**
|
|
81
78
|
* If `true`, the popover or modal will close after submitting the full date.
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcwNTYxODgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -64,7 +64,7 @@ export var rangeFieldValueManager = {
|
|
|
64
64
|
}
|
|
65
65
|
return [prevReferenceValue[1], value[1]];
|
|
66
66
|
},
|
|
67
|
-
getSectionsFromValue: function getSectionsFromValue(utils, _ref2, fallbackSections, isRTL, getSectionsFromDate) {
|
|
67
|
+
getSectionsFromValue: function getSectionsFromValue(utils, _ref2, fallbackSections, localizedDigits, isRTL, getSectionsFromDate) {
|
|
68
68
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
69
69
|
start = _ref3[0],
|
|
70
70
|
end = _ref3[1];
|
|
@@ -90,11 +90,11 @@ export var rangeFieldValueManager = {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
-
return addPositionPropertiesToSections([].concat(_toConsumableArray(getSections(start, separatedFallbackSections.startDate, 'start')), _toConsumableArray(getSections(end, separatedFallbackSections.endDate, 'end'))), isRTL);
|
|
93
|
+
return addPositionPropertiesToSections([].concat(_toConsumableArray(getSections(start, separatedFallbackSections.startDate, 'start')), _toConsumableArray(getSections(end, separatedFallbackSections.endDate, 'end'))), localizedDigits, isRTL);
|
|
94
94
|
},
|
|
95
|
-
getValueStrFromSections: function getValueStrFromSections(sections, isRTL) {
|
|
95
|
+
getValueStrFromSections: function getValueStrFromSections(sections, localizedDigits, isRTL) {
|
|
96
96
|
var dateRangeSections = splitDateRangeSections(sections);
|
|
97
|
-
return createDateStrForInputFromSections([].concat(_toConsumableArray(dateRangeSections.startDate), _toConsumableArray(dateRangeSections.endDate)), isRTL);
|
|
97
|
+
return createDateStrForInputFromSections([].concat(_toConsumableArray(dateRangeSections.startDate), _toConsumableArray(dateRangeSections.endDate)), localizedDigits, isRTL);
|
|
98
98
|
},
|
|
99
99
|
parseValueStr: function parseValueStr(valueStr, referenceValue, parseDate) {
|
|
100
100
|
// TODO: Improve because it would not work if the date format has `–` as a separator.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@mui/x-date-pickers/locales';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@mui/x-date-pickers/locales';
|
package/locales/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@mui/x-date-pickers/locales';
|
|
@@ -59,9 +59,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
59
59
|
* @default 2
|
|
60
60
|
*/
|
|
61
61
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
62
|
-
/**
|
|
63
|
-
* Class name applied to the root element.
|
|
64
|
-
*/
|
|
65
62
|
className: PropTypes.string,
|
|
66
63
|
/**
|
|
67
64
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -94,9 +94,6 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
|
|
|
94
94
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
95
95
|
// ----------------------------------------------------------------------
|
|
96
96
|
classes: PropTypes.object,
|
|
97
|
-
/**
|
|
98
|
-
* className applied to the root component.
|
|
99
|
-
*/
|
|
100
97
|
className: PropTypes.string,
|
|
101
98
|
disabled: PropTypes.bool,
|
|
102
99
|
/**
|
|
@@ -70,9 +70,6 @@ DesktopDateRangePicker.propTypes = {
|
|
|
70
70
|
* @default 2
|
|
71
71
|
*/
|
|
72
72
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
73
|
-
/**
|
|
74
|
-
* Class name applied to the root element.
|
|
75
|
-
*/
|
|
76
73
|
className: PropTypes.string,
|
|
77
74
|
/**
|
|
78
75
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -70,9 +70,6 @@ MobileDateRangePicker.propTypes = {
|
|
|
70
70
|
* @default 2
|
|
71
71
|
*/
|
|
72
72
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
73
|
-
/**
|
|
74
|
-
* Class name applied to the root element.
|
|
75
|
-
*/
|
|
76
73
|
className: PropTypes.string,
|
|
77
74
|
/**
|
|
78
75
|
* If `true`, the popover or modal will close after submitting the full date.
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwNTYxODgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -50,7 +50,7 @@ export const rangeFieldValueManager = {
|
|
|
50
50
|
}
|
|
51
51
|
return [prevReferenceValue[1], value[1]];
|
|
52
52
|
},
|
|
53
|
-
getSectionsFromValue: (utils, [start, end], fallbackSections, isRTL, getSectionsFromDate) => {
|
|
53
|
+
getSectionsFromValue: (utils, [start, end], fallbackSections, localizedDigits, isRTL, getSectionsFromDate) => {
|
|
54
54
|
const separatedFallbackSections = fallbackSections == null ? {
|
|
55
55
|
startDate: null,
|
|
56
56
|
endDate: null
|
|
@@ -73,11 +73,11 @@ export const rangeFieldValueManager = {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
return addPositionPropertiesToSections([...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')], isRTL);
|
|
76
|
+
return addPositionPropertiesToSections([...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')], localizedDigits, isRTL);
|
|
77
77
|
},
|
|
78
|
-
getValueStrFromSections: (sections, isRTL) => {
|
|
78
|
+
getValueStrFromSections: (sections, localizedDigits, isRTL) => {
|
|
79
79
|
const dateRangeSections = splitDateRangeSections(sections);
|
|
80
|
-
return createDateStrForInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], isRTL);
|
|
80
|
+
return createDateStrForInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRTL);
|
|
81
81
|
},
|
|
82
82
|
parseValueStr: (valueStr, referenceValue, parseDate) => {
|
|
83
83
|
// TODO: Improve because it would not work if the date format has `–` as a separator.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@mui/x-date-pickers/locales';
|
|
@@ -68,9 +68,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
68
68
|
* @default 2
|
|
69
69
|
*/
|
|
70
70
|
calendars: _propTypes.default.oneOf([1, 2, 3]),
|
|
71
|
-
/**
|
|
72
|
-
* Class name applied to the root element.
|
|
73
|
-
*/
|
|
74
71
|
className: _propTypes.default.string,
|
|
75
72
|
/**
|
|
76
73
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -102,9 +102,6 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
|
|
|
102
102
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
103
103
|
// ----------------------------------------------------------------------
|
|
104
104
|
classes: _propTypes.default.object,
|
|
105
|
-
/**
|
|
106
|
-
* className applied to the root component.
|
|
107
|
-
*/
|
|
108
105
|
className: _propTypes.default.string,
|
|
109
106
|
disabled: _propTypes.default.bool,
|
|
110
107
|
/**
|
|
@@ -79,9 +79,6 @@ DesktopDateRangePicker.propTypes = {
|
|
|
79
79
|
* @default 2
|
|
80
80
|
*/
|
|
81
81
|
calendars: _propTypes.default.oneOf([1, 2, 3]),
|
|
82
|
-
/**
|
|
83
|
-
* Class name applied to the root element.
|
|
84
|
-
*/
|
|
85
82
|
className: _propTypes.default.string,
|
|
86
83
|
/**
|
|
87
84
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -79,9 +79,6 @@ MobileDateRangePicker.propTypes = {
|
|
|
79
79
|
* @default 2
|
|
80
80
|
*/
|
|
81
81
|
calendars: _propTypes.default.oneOf([1, 2, 3]),
|
|
82
|
-
/**
|
|
83
|
-
* Class name applied to the root element.
|
|
84
|
-
*/
|
|
85
82
|
className: _propTypes.default.string,
|
|
86
83
|
/**
|
|
87
84
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -73,9 +73,6 @@ StaticDateRangePicker.propTypes = {
|
|
|
73
73
|
* @default 2
|
|
74
74
|
*/
|
|
75
75
|
calendars: _propTypes.default.oneOf([1, 2, 3]),
|
|
76
|
-
/**
|
|
77
|
-
* Class name applied to the root element.
|
|
78
|
-
*/
|
|
79
76
|
className: _propTypes.default.string,
|
|
80
77
|
/**
|
|
81
78
|
* Position the current month is rendered in.
|
package/node/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTcwNTYxODgwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -57,7 +57,7 @@ const rangeFieldValueManager = exports.rangeFieldValueManager = {
|
|
|
57
57
|
}
|
|
58
58
|
return [prevReferenceValue[1], value[1]];
|
|
59
59
|
},
|
|
60
|
-
getSectionsFromValue: (utils, [start, end], fallbackSections, isRTL, getSectionsFromDate) => {
|
|
60
|
+
getSectionsFromValue: (utils, [start, end], fallbackSections, localizedDigits, isRTL, getSectionsFromDate) => {
|
|
61
61
|
const separatedFallbackSections = fallbackSections == null ? {
|
|
62
62
|
startDate: null,
|
|
63
63
|
endDate: null
|
|
@@ -80,11 +80,11 @@ const rangeFieldValueManager = exports.rangeFieldValueManager = {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
return (0, _internals.addPositionPropertiesToSections)([...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')], isRTL);
|
|
83
|
+
return (0, _internals.addPositionPropertiesToSections)([...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')], localizedDigits, isRTL);
|
|
84
84
|
},
|
|
85
|
-
getValueStrFromSections: (sections, isRTL) => {
|
|
85
|
+
getValueStrFromSections: (sections, localizedDigits, isRTL) => {
|
|
86
86
|
const dateRangeSections = (0, _dateFieldsUtils.splitDateRangeSections)(sections);
|
|
87
|
-
return (0, _internals.createDateStrForInputFromSections)([...dateRangeSections.startDate, ...dateRangeSections.endDate], isRTL);
|
|
87
|
+
return (0, _internals.createDateStrForInputFromSections)([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRTL);
|
|
88
88
|
},
|
|
89
89
|
parseValueStr: (valueStr, referenceValue, parseDate) => {
|
|
90
90
|
// TODO: Improve because it would not work if the date format has `–` as a separator.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _locales = require("@mui/x-date-pickers/locales");
|
|
7
|
+
Object.keys(_locales).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _locales[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _locales[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.9",
|
|
4
4
|
"description": "The commercial edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"directory": "packages/x-date-pickers-pro"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/runtime": "^7.23.
|
|
35
|
-
"@mui/base": "^5.0.0-beta.
|
|
36
|
-
"@mui/system": "^5.15.
|
|
37
|
-
"@mui/utils": "^5.15.
|
|
38
|
-
"@mui/x-date-pickers": "7.0.0-alpha.
|
|
39
|
-
"@mui/x-license-pro": "7.0.0-alpha.
|
|
40
|
-
"clsx": "^2.
|
|
34
|
+
"@babel/runtime": "^7.23.8",
|
|
35
|
+
"@mui/base": "^5.0.0-beta.32",
|
|
36
|
+
"@mui/system": "^5.15.5",
|
|
37
|
+
"@mui/utils": "^5.15.5",
|
|
38
|
+
"@mui/x-date-pickers": "7.0.0-alpha.9",
|
|
39
|
+
"@mui/x-license-pro": "7.0.0-alpha.9",
|
|
40
|
+
"clsx": "^2.1.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"react-transition-group": "^4.4.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|
|
46
46
|
"@emotion/styled": "^11.8.1",
|
|
47
|
-
"@mui/material": "^5.
|
|
47
|
+
"@mui/material": "^5.15.0",
|
|
48
48
|
"date-fns": "^2.25.0 || ^3.2.0",
|
|
49
49
|
"date-fns-jalali": "^2.13.0-0",
|
|
50
50
|
"dayjs": "^1.10.7",
|