@mui/x-data-grid 7.0.0-beta.5 → 7.0.0-beta.6

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +135 -49
  2. package/components/GridPinnedRows.d.ts +1 -2
  3. package/components/GridRow.js +5 -7
  4. package/components/cell/GridCell.d.ts +0 -2
  5. package/components/cell/GridCell.js +3 -7
  6. package/components/containers/GridRootStyles.js +0 -2
  7. package/components/virtualization/GridVirtualScroller.js +5 -3
  8. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +22 -20
  9. package/hooks/features/dimensions/useGridDimensions.js +1 -0
  10. package/hooks/features/rows/useGridParamsApi.js +6 -10
  11. package/hooks/features/sorting/useGridSorting.js +2 -2
  12. package/hooks/features/virtualization/useGridVirtualScroller.js +6 -0
  13. package/index.js +1 -1
  14. package/internals/index.d.ts +1 -1
  15. package/internals/index.js +1 -1
  16. package/models/api/gridApiCommon.d.ts +2 -1
  17. package/models/api/gridInfiniteLoaderApi.d.ts +6 -0
  18. package/models/api/gridInfiniteLoaderApi.js +1 -0
  19. package/modern/components/GridRow.js +5 -7
  20. package/modern/components/cell/GridCell.js +3 -7
  21. package/modern/components/containers/GridRootStyles.js +0 -2
  22. package/modern/components/virtualization/GridVirtualScroller.js +5 -3
  23. package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +22 -20
  24. package/modern/hooks/features/dimensions/useGridDimensions.js +1 -0
  25. package/modern/hooks/features/rows/useGridParamsApi.js +6 -10
  26. package/modern/hooks/features/sorting/useGridSorting.js +2 -2
  27. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -0
  28. package/modern/index.js +1 -1
  29. package/modern/internals/index.js +1 -1
  30. package/modern/models/api/gridInfiniteLoaderApi.js +1 -0
  31. package/modern/utils/createSelector.js +12 -20
  32. package/node/components/GridRow.js +5 -7
  33. package/node/components/cell/GridCell.js +3 -7
  34. package/node/components/containers/GridRootStyles.js +0 -2
  35. package/node/components/virtualization/GridVirtualScroller.js +5 -3
  36. package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +22 -20
  37. package/node/hooks/features/dimensions/useGridDimensions.js +1 -0
  38. package/node/hooks/features/rows/useGridParamsApi.js +6 -10
  39. package/node/hooks/features/sorting/useGridSorting.js +2 -2
  40. package/node/hooks/features/virtualization/useGridVirtualScroller.js +5 -0
  41. package/node/index.js +1 -1
  42. package/node/internals/index.js +0 -7
  43. package/node/models/api/gridInfiniteLoaderApi.js +5 -0
  44. package/node/utils/createSelector.js +14 -23
  45. package/package.json +2 -2
  46. package/utils/createSelector.d.ts +0 -1
  47. package/utils/createSelector.js +12 -22
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.0.0-beta.6
7
+
8
+ _Mar 8, 2024_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+ - 📚 Documentation improvements
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@7.0.0-beta.6`
18
+
19
+ - [DataGrid] Fix crashing of demos on rating change (#12315) @sai6855
20
+ - [DataGrid] Fix double border below header (#12349) @joespeargresham
21
+ - [DataGrid] Fix empty sort being saved in the `sortModel` (#12325) @MBilalShafi
22
+ - [DataGrid] Remove unnecessary `stopCellMode` event in `renderEditRating` component (#12335) @sai6855
23
+ - [DataGrid] Small performance optimizations (#12346) @romgrk
24
+
25
+ #### `@mui/x-data-grid-pro@7.0.0-beta.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
26
+
27
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.6`, plus:
28
+
29
+ - [DataGridPro] Rework `onRowsScrollEnd` to use `IntersectionObserver` (#8672) @DanailH
30
+
31
+ #### `@mui/x-data-grid-premium@7.0.0-beta.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
32
+
33
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
34
+
35
+ ### Charts
36
+
37
+ #### `@mui/x-charts@7.0.0-beta.6`
38
+
39
+ - [charts] Add context to axis value formatter (#12172) @alexfauquette
40
+ - [charts] Customize tick position for band scale (#12316) @alexfauquette
41
+ - [charts] Fix RTL legend (#12175) @alexfauquette
42
+
43
+ ### Tree View
44
+
45
+ #### Breaking changes
46
+
47
+ - The component used to animate the item children is now defined as a slot on the `TreeItem` component.
48
+
49
+ If you were passing a `TransitionComponent` or `TransitionProps` to your `TreeItem` component,
50
+ you need to use the new `groupTransition` slot on this component:
51
+
52
+ ```diff
53
+ <SimpleTreeView>
54
+ <TreeItem
55
+ nodeId="1"
56
+ label="Node 1"
57
+ - TransitionComponent={Fade}
58
+ + slots={{ groupTransition: Fade }}
59
+ - TransitionProps={{ timeout: 600 }}
60
+ + slotProps={{ groupTransition: { timeout: 600 } }}
61
+ />
62
+ </SimpleTreeView>
63
+ ```
64
+
65
+ - The `group` class of the `TreeItem` component has been renamed to `groupTransition` to match with its new slot name.
66
+
67
+ ```diff
68
+ const StyledTreeItem = styled(TreeItem)({
69
+ - [`& .${treeItemClasses.group}`]: {
70
+ + [`& .${treeItemClasses.groupTransition}`]: {
71
+ marginLeft: 20,
72
+ },
73
+ });
74
+ ```
75
+
76
+ #### `@mui/x-tree-view@7.0.0-beta.6`
77
+
78
+ - [TreeView] Fix invalid nodes state when updating `props.items` (#12359) @flaviendelangle
79
+ - [TreeView] In the `RichTreeView`, do not use the item id as the HTML id attribute (#12319) @flaviendelangle
80
+ - [TreeView] New instance and publicAPI method: `getItem` (#12251) @flaviendelangle
81
+ - [TreeView] Replace `TransitionComponent` and `TransitionProps` with a `groupTransition` slot (#12336) @flaviendelangle
82
+
83
+ ### Docs
84
+
85
+ - [docs] Add a note about `z-index` usage in SVG (#12337) @alexfauquette
86
+ - [docs] `RichTreeView` customization docs (#12231) @noraleonte
87
+
88
+ ### Core
89
+
90
+ - [test] Add `Charts` test (#11551) @alexfauquette
91
+
6
92
  ## 7.0.0-beta.5
7
93
 
8
94
  _Mar 1, 2024_
@@ -45,7 +131,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.5`, plus:
45
131
 
46
132
  - [DataGridPremium] Make clipboard copy respect the sorting during cell selection (#12235) @MBilalShafi
47
133
 
48
- ### Date Pickers
134
+ ### Date and Time Pickers
49
135
 
50
136
  #### `@mui/x-date-pickers@7.0.0-beta.5`
51
137
 
@@ -121,7 +207,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-beta.4`.
121
207
 
122
208
  Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
123
209
 
124
- ### Date Pickers
210
+ ### Date and Time Pickers
125
211
 
126
212
  #### Breaking changes
127
213
 
@@ -335,7 +421,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
335
421
  - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
336
422
  - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
337
423
 
338
- ### Date Pickers
424
+ ### Date and Time Pickers
339
425
 
340
426
  #### `@mui/x-date-pickers@7.0.0-beta.2`
341
427
 
@@ -522,7 +608,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
522
608
 
523
609
  Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
524
610
 
525
- ### Date Pickers
611
+ ### Date and Time Pickers
526
612
 
527
613
  #### `@mui/x-date-pickers@7.0.0-beta.1`
528
614
 
@@ -627,7 +713,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-beta.0`.
627
713
 
628
714
  Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.0`.
629
715
 
630
- ### Date Pickers
716
+ ### Date and Time Pickers
631
717
 
632
718
  #### `@mui/x-date-pickers@7.0.0-beta.0`
633
719
 
@@ -766,7 +852,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.9`, plus:
766
852
  - [DataGridPremium] Allow aggregation to be applied for non-aggregable columns (#11574) @MBilalShafi
767
853
  - [DataGridPremium] Allow programmatically grouping non-groupable columns (#11539) @MBilalShafi
768
854
 
769
- ### Date Pickers
855
+ ### Date and Time Pickers
770
856
 
771
857
  #### Breaking changes
772
858
 
@@ -1051,7 +1137,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-alpha.8`.
1051
1137
 
1052
1138
  Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.8`.
1053
1139
 
1054
- ### Date Pickers
1140
+ ### Date and Time Pickers
1055
1141
 
1056
1142
  #### `@mui/x-date-pickers@7.0.0-alpha.8`
1057
1143
 
@@ -1141,7 +1227,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-alpha.7`.
1141
1227
 
1142
1228
  Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.7`.
1143
1229
 
1144
- ### Date Pickers
1230
+ ### Date and Time Pickers
1145
1231
 
1146
1232
  #### `@mui/x-date-pickers@7.0.0-alpha.7`
1147
1233
 
@@ -1283,7 +1369,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-alpha.6`.
1283
1369
 
1284
1370
  Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.6`.
1285
1371
 
1286
- ### Date Pickers
1372
+ ### Date and Time Pickers
1287
1373
 
1288
1374
  #### `@mui/x-date-pickers@7.0.0-alpha.6`
1289
1375
 
@@ -1351,7 +1437,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-alpha.5`.
1351
1437
 
1352
1438
  Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.5`.
1353
1439
 
1354
- ### Date Pickers
1440
+ ### Date and Time Pickers
1355
1441
 
1356
1442
  #### Breaking changes
1357
1443
 
@@ -1535,7 +1621,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-alpha.4`, plus:
1535
1621
 
1536
1622
  Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.4`.
1537
1623
 
1538
- ### Date Pickers
1624
+ ### Date and Time Pickers
1539
1625
 
1540
1626
  #### `@mui/x-date-pickers@7.0.0-alpha.4`
1541
1627
 
@@ -1635,7 +1721,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.3`, plus:
1635
1721
  - [DataGridPremium] Make Cell selection feature stable (#11246) @MBilalShafi
1636
1722
  - [DataGridPremium] Make Clipboard paste feature stable (#11248) @MBilalShafi
1637
1723
 
1638
- ### Date Pickers
1724
+ ### Date and Time Pickers
1639
1725
 
1640
1726
  #### Breaking changes
1641
1727
 
@@ -1772,7 +1858,7 @@ Same changes as in `@mui/x-data-grid@7.0.0-alpha.2`.
1772
1858
 
1773
1859
  Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.2`.
1774
1860
 
1775
- ### Date Pickers
1861
+ ### Date and Time Pickers
1776
1862
 
1777
1863
  #### Breaking changes
1778
1864
 
@@ -1878,7 +1964,7 @@ We'd like to offer a big thanks to the 3 contributors who made this release poss
1878
1964
  - 🐞 Bugfixes
1879
1965
  - 📚 Documentation improvements
1880
1966
 
1881
- ### Date Pickers
1967
+ ### Date and Time Pickers
1882
1968
 
1883
1969
  #### `@mui/x-date-pickers@7.0.0-alpha.1` / `@mui/x-date-pickers-pro@7.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1884
1970
 
@@ -2374,7 +2460,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.0`, plus:
2374
2460
 
2375
2461
  - [DataGridPremium] Render aggregation label when `renderHeader` is used (#10936) @cherniavskii
2376
2462
 
2377
- ### Date Pickers
2463
+ ### Date and Time Pickers
2378
2464
 
2379
2465
  #### Breaking changes
2380
2466
 
@@ -2461,7 +2547,7 @@ Same changes as in `@mui/x-data-grid-pro@6.19.6`, plus:
2461
2547
 
2462
2548
  - [DataGridPremium] Make clipboard copy respect the sorting during cell selection (#12255) @MBilalShafi
2463
2549
 
2464
- ### Date Pickers
2550
+ ### Date and Time Pickers
2465
2551
 
2466
2552
  #### `@mui/x-date-pickers@6.19.6`
2467
2553
 
@@ -2499,7 +2585,7 @@ Same changes as in `@mui/x-data-grid@6.19.5`.
2499
2585
 
2500
2586
  Same changes as in `@mui/x-data-grid-pro@6.19.5`.
2501
2587
 
2502
- ### Date Pickers
2588
+ ### Date and Time Pickers
2503
2589
 
2504
2590
  #### `@mui/x-date-pickers@6.19.5`
2505
2591
 
@@ -2568,7 +2654,7 @@ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
2568
2654
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2569
2655
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2570
2656
 
2571
- ### Date Pickers
2657
+ ### Date and Time Pickers
2572
2658
 
2573
2659
  #### `@mui/x-date-pickers@6.19.4`
2574
2660
 
@@ -2617,7 +2703,7 @@ Same changes as in `@mui/x-data-grid@6.19.3`.
2617
2703
 
2618
2704
  Same changes as in `@mui/x-data-grid-pro@6.19.3`.
2619
2705
 
2620
- ### Date Pickers
2706
+ ### Date and Time Pickers
2621
2707
 
2622
2708
  #### `@mui/x-date-pickers@6.19.3`
2623
2709
 
@@ -2651,7 +2737,7 @@ We'd like to offer a big thanks to the 2 contributors who made this release poss
2651
2737
  - 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
2652
2738
  - 🐞 Bugfixes
2653
2739
 
2654
- ### Date Pickers
2740
+ ### Date and Time Pickers
2655
2741
 
2656
2742
  #### `@mui/x-date-pickers@6.19.2`
2657
2743
 
@@ -2725,7 +2811,7 @@ We'd like to offer a big thanks to the 3 contributors who made this release poss
2725
2811
  import { de } from 'date-fns/locale/de';
2726
2812
  ```
2727
2813
 
2728
- ### Date Pickers
2814
+ ### Date and Time Pickers
2729
2815
 
2730
2816
  #### `@mui/x-date-pickers@6.19.0`
2731
2817
 
@@ -2772,7 +2858,7 @@ Same changes as in `@mui/x-data-grid@6.18.7`.
2772
2858
 
2773
2859
  Same changes as in `@mui/x-data-grid-pro@6.18.7`.
2774
2860
 
2775
- ### Date Pickers
2861
+ ### Date and Time Pickers
2776
2862
 
2777
2863
  #### `@mui/x-date-pickers@6.18.7`
2778
2864
 
@@ -2814,7 +2900,7 @@ Same changes as in `@mui/x-data-grid@6.18.6`.
2814
2900
 
2815
2901
  Same changes as in `@mui/x-data-grid-pro@6.18.6`.
2816
2902
 
2817
- ### Date Pickers
2903
+ ### Date and Time Pickers
2818
2904
 
2819
2905
  #### `@mui/x-date-pickers@6.18.6`
2820
2906
 
@@ -2863,7 +2949,7 @@ Same changes as in `@mui/x-data-grid@6.18.5`.
2863
2949
 
2864
2950
  Same changes as in `@mui/x-data-grid-pro@6.18.5`.
2865
2951
 
2866
- ### Date Pickers
2952
+ ### Date and Time Pickers
2867
2953
 
2868
2954
  #### `@mui/x-date-pickers@6.18.5`
2869
2955
 
@@ -2906,7 +2992,7 @@ Same changes as in `@mui/x-data-grid@6.18.4`.
2906
2992
 
2907
2993
  Same changes as in `@mui/x-data-grid-pro@6.18.4`.
2908
2994
 
2909
- ### Date Pickers
2995
+ ### Date and Time Pickers
2910
2996
 
2911
2997
  #### `@mui/x-date-pickers@6.18.4`
2912
2998
 
@@ -2952,7 +3038,7 @@ Same changes as in `@mui/x-data-grid-pro@6.18.3`, plus:
2952
3038
  - [DataGridPremium] Fix aggregated column ignoring column definition changes (#11176) @cherniavskii
2953
3039
  - [DataGridPremium] Fix custom filter operators not working on aggregated column (#11201) @cherniavskii
2954
3040
 
2955
- ### Date Pickers
3041
+ ### Date and Time Pickers
2956
3042
 
2957
3043
  #### `@mui/x-date-pickers@6.18.3`
2958
3044
 
@@ -3008,7 +3094,7 @@ Same changes as in `@mui/x-data-grid@6.18.2`.
3008
3094
 
3009
3095
  Same changes as in `@mui/x-data-grid-pro@6.18.2`.
3010
3096
 
3011
- ### Date Pickers
3097
+ ### Date and Time Pickers
3012
3098
 
3013
3099
  #### `@mui/x-date-pickers@6.18.2`
3014
3100
 
@@ -3065,7 +3151,7 @@ Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus:
3065
3151
 
3066
3152
  - [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii
3067
3153
 
3068
- ### Date Pickers
3154
+ ### Date and Time Pickers
3069
3155
 
3070
3156
  #### `@mui/x-date-pickers@6.18.1`
3071
3157
 
@@ -3124,7 +3210,7 @@ Same changes as in `@mui/x-data-grid@6.18.0`.
3124
3210
 
3125
3211
  Same changes as in `@mui/x-data-grid-pro@6.18.0`.
3126
3212
 
3127
- ### Date Pickers
3213
+ ### Date and Time Pickers
3128
3214
 
3129
3215
  #### `@mui/x-date-pickers@6.18.0`
3130
3216
 
@@ -3189,7 +3275,7 @@ Same changes as in `@mui/x-data-grid-pro@6.17.0`, plus:
3189
3275
  - [DataGridPremium] Fix `sum` aggregation to ignore non-numeric values (#10730) @cherniavskii
3190
3276
  - [DataGridPremium] Fix cell selection throwing index error on second page and beyond (#10784) @MBilalShafi
3191
3277
 
3192
- ### Date Pickers
3278
+ ### Date and Time Pickers
3193
3279
 
3194
3280
  #### `@mui/x-date-pickers@6.17.0`
3195
3281
 
@@ -3243,7 +3329,7 @@ Same changes as in `@mui/x-data-grid@6.16.3`.
3243
3329
 
3244
3330
  Same changes as in `@mui/x-data-grid-pro@6.16.3`.
3245
3331
 
3246
- ### Date Pickers
3332
+ ### Date and Time Pickers
3247
3333
 
3248
3334
  #### `@mui/x-date-pickers@6.16.3`
3249
3335
 
@@ -3319,7 +3405,7 @@ Same changes as in `@mui/x-data-grid@6.16.2`, plus:
3319
3405
 
3320
3406
  Same changes as in `@mui/x-data-grid-pro@6.16.2`.
3321
3407
 
3322
- ### Date Pickers
3408
+ ### Date and Time Pickers
3323
3409
 
3324
3410
  #### `@mui/x-date-pickers@6.16.2`
3325
3411
 
@@ -3414,7 +3500,7 @@ Same changes as in `@mui/x-data-grid@6.16.1`.
3414
3500
 
3415
3501
  Same changes as in `@mui/x-data-grid-pro@6.16.1`.
3416
3502
 
3417
- ### Date Pickers
3503
+ ### Date and Time Pickers
3418
3504
 
3419
3505
  #### `@mui/x-date-pickers@6.16.1`
3420
3506
 
@@ -3490,7 +3576,7 @@ Same changes as in `@mui/x-data-grid@6.16.0`, plus:
3490
3576
 
3491
3577
  Same changes as in `@mui/x-data-grid-pro@6.16.0`.
3492
3578
 
3493
- ### Date Pickers
3579
+ ### Date and Time Pickers
3494
3580
 
3495
3581
  #### `@mui/x-date-pickers@6.16.0`
3496
3582
 
@@ -3569,7 +3655,7 @@ Same changes as in `@mui/x-data-grid@6.15.0`, plus:
3569
3655
 
3570
3656
  Same changes as in `@mui/x-data-grid-pro@6.15.0`.
3571
3657
 
3572
- ### Date Pickers
3658
+ ### Date and Time Pickers
3573
3659
 
3574
3660
  #### `@mui/x-date-pickers@6.15.0`
3575
3661
 
@@ -3648,7 +3734,7 @@ Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
3648
3734
 
3649
3735
  - [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
3650
3736
 
3651
- ### Date Pickers
3737
+ ### Date and Time Pickers
3652
3738
 
3653
3739
  #### `@mui/x-date-pickers@6.14.0`
3654
3740
 
@@ -3729,7 +3815,7 @@ Same changes as in `@mui/x-data-grid-pro@6.13.0`, plus:
3729
3815
 
3730
3816
  - [DataGridPremium] Fix aggregated column resizing (#10079) @cherniavskii
3731
3817
 
3732
- ### Date Pickers
3818
+ ### Date and Time Pickers
3733
3819
 
3734
3820
  #### `@mui/x-date-pickers@6.13.0`
3735
3821
 
@@ -3801,7 +3887,7 @@ Same changes as in `@mui/x-data-grid@6.12.1`.
3801
3887
 
3802
3888
  Same changes as in `@mui/x-data-grid-pro@6.12.1`.
3803
3889
 
3804
- ### Date Pickers
3890
+ ### Date and Time Pickers
3805
3891
 
3806
3892
  #### `@mui/x-date-pickers@6.12.1`
3807
3893
 
@@ -3857,7 +3943,7 @@ Same changes as in `@mui/x-data-grid@6.12.0`.
3857
3943
 
3858
3944
  Same changes as in `@mui/x-data-grid-pro@6.12.0`.
3859
3945
 
3860
- ### Date Pickers
3946
+ ### Date and Time Pickers
3861
3947
 
3862
3948
  #### `@mui/x-date-pickers@6.12.0`
3863
3949
 
@@ -3928,7 +4014,7 @@ Same changes as in `@mui/x-data-grid@6.11.2`.
3928
4014
 
3929
4015
  Same changes as in `@mui/x-data-grid-pro@6.11.2`.
3930
4016
 
3931
- ### Date Pickers
4017
+ ### Date and Time Pickers
3932
4018
 
3933
4019
  #### `@mui/x-date-pickers@6.11.2`
3934
4020
 
@@ -3979,7 +4065,7 @@ Same changes as in `@mui/x-data-grid@6.11.1`.
3979
4065
 
3980
4066
  Same changes as in `@mui/x-data-grid-pro@6.11.1`.
3981
4067
 
3982
- ### Date Pickers
4068
+ ### Date and Time Pickers
3983
4069
 
3984
4070
  #### `@mui/x-date-pickers@6.11.1`
3985
4071
 
@@ -4048,7 +4134,7 @@ Same changes as in `@mui/x-data-grid@6.11.0`.
4048
4134
 
4049
4135
  Same changes as in `@mui/x-data-grid-pro@6.11.0`.
4050
4136
 
4051
- ### Date Pickers
4137
+ ### Date and Time Pickers
4052
4138
 
4053
4139
  #### `@mui/x-date-pickers@6.11.0`
4054
4140
 
@@ -4136,7 +4222,7 @@ Same changes as in `@mui/x-data-grid-pro@6.10.2`, plus:
4136
4222
 
4137
4223
  - [DataGridPremium] Allow to customize grouping cell offset (#9417) @cherniavskii
4138
4224
 
4139
- ### Date Pickers
4225
+ ### Date and Time Pickers
4140
4226
 
4141
4227
  #### `@mui/x-date-pickers@6.10.2`
4142
4228
 
@@ -4205,7 +4291,7 @@ Same changes as in `@mui/x-data-grid@6.10.1`, plus:
4205
4291
 
4206
4292
  Same changes as in `@mui/x-data-grid-pro@6.10.1`.
4207
4293
 
4208
- ### Date Pickers
4294
+ ### Date and Time Pickers
4209
4295
 
4210
4296
  #### `@mui/x-date-pickers@6.10.1`
4211
4297
 
@@ -4271,7 +4357,7 @@ Same changes as in `@mui/x-data-grid@6.10.0`.
4271
4357
 
4272
4358
  Same changes as in `@mui/x-data-grid-pro@6.10.0`.
4273
4359
 
4274
- ### Date Pickers
4360
+ ### Date and Time Pickers
4275
4361
 
4276
4362
  #### `@mui/x-date-pickers@6.10.0`
4277
4363
 
@@ -4341,7 +4427,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
4341
4427
 
4342
4428
  - [DataGridPremium] Auto-scroll when making range selection (#8661) @m4theushw
4343
4429
 
4344
- ### Date Pickers
4430
+ ### Date and Time Pickers
4345
4431
 
4346
4432
  #### `@mui/x-date-pickers@6.9.2`
4347
4433
 
@@ -4407,7 +4493,7 @@ Same changes as in `@mui/x-data-grid@6.9.1`, plus:
4407
4493
 
4408
4494
  Same changes as in `@mui/x-data-grid-pro@6.9.1`.
4409
4495
 
4410
- ### Date Pickers
4496
+ ### Date and Time Pickers
4411
4497
 
4412
4498
  #### `@mui/x-date-pickers@6.9.1`
4413
4499
 
@@ -4489,7 +4575,7 @@ Same changes as in `@mui/x-data-grid@6.9.0`.
4489
4575
 
4490
4576
  Same changes as in `@mui/x-data-grid-pro@6.9.0`.
4491
4577
 
4492
- ### Date Pickers
4578
+ ### Date and Time Pickers
4493
4579
 
4494
4580
  #### `@mui/x-date-pickers@6.9.0`
4495
4581
 
@@ -4565,7 +4651,7 @@ Same changes as in `@mui/x-data-grid@6.8.0`.
4565
4651
 
4566
4652
  Same changes as in `@mui/x-data-grid-pro@6.8.0`.
4567
4653
 
4568
- ### Date Pickers
4654
+ ### Date and Time Pickers
4569
4655
 
4570
4656
  #### `@mui/x-date-pickers@6.8.0`
4571
4657
 
@@ -1,6 +1,5 @@
1
- import * as React from 'react';
2
1
  import type { VirtualScroller } from '../hooks/features/virtualization/useGridVirtualScroller';
3
- export interface GridPinnedRowsProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ export interface GridPinnedRowsProps {
4
3
  position: 'top' | 'bottom';
5
4
  virtualScroller: VirtualScroller;
6
5
  }
@@ -216,7 +216,8 @@ const GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {
216
216
  const rowStyle = _extends({}, styleProp, {
217
217
  maxHeight: rowHeight === 'auto' ? 'none' : rowHeight,
218
218
  // max-height doesn't support "auto"
219
- minHeight
219
+ minHeight,
220
+ '--height': typeof rowHeight === 'number' ? `${rowHeight}px` : rowHeight
220
221
  });
221
222
  if (sizes != null && sizes.spacingTop) {
222
223
  const property = rootProps.rowSpacingType === 'border' ? 'borderTopWidth' : 'marginTop';
@@ -291,20 +292,17 @@ const GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {
291
292
  column: column,
292
293
  width: width,
293
294
  rowId: rowId,
294
- height: rowHeight,
295
295
  align: column.align || 'left',
296
296
  colIndex: indexRelativeToAllColumns,
297
297
  colSpan: colSpan,
298
298
  disableDragEvents: disableDragEvents,
299
299
  editCellState: editCellState,
300
- isNotVisible: cellIsNotVisible
301
- }, slotProps == null ? void 0 : slotProps.cell, {
300
+ isNotVisible: cellIsNotVisible,
302
301
  pinnedOffset: pinnedOffset,
303
302
  pinnedPosition: pinnedPosition,
304
303
  sectionIndex: indexInSection,
305
- sectionLength: sectionLength,
306
- gridHasScrollX: dimensions.hasScrollX
307
- }), column.field);
304
+ sectionLength: sectionLength
305
+ }, slotProps == null ? void 0 : slotProps.cell), column.field);
308
306
  };
309
307
 
310
308
  /* Start of rendering */
@@ -13,7 +13,6 @@ export type GridCellProps = {
13
13
  colIndex: number;
14
14
  column: GridColDef;
15
15
  rowId: GridRowId;
16
- height: number | 'auto';
17
16
  width: number;
18
17
  colSpan?: number;
19
18
  disableDragEvents?: boolean;
@@ -23,7 +22,6 @@ export type GridCellProps = {
23
22
  pinnedPosition: PinnedPosition;
24
23
  sectionIndex: number;
25
24
  sectionLength: number;
26
- gridHasScrollX: boolean;
27
25
  onClick?: React.MouseEventHandler<HTMLDivElement>;
28
26
  onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
29
27
  onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["column", "rowId", "editCellState", "align", "children", "colIndex", "height", "width", "className", "style", "gridHasScrollX", "colSpan", "disableDragEvents", "isNotVisible", "pinnedOffset", "pinnedPosition", "sectionIndex", "sectionLength", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
3
+ const _excluded = ["column", "rowId", "editCellState", "align", "children", "colIndex", "width", "className", "style", "gridHasScrollX", "colSpan", "disableDragEvents", "isNotVisible", "pinnedOffset", "pinnedPosition", "sectionIndex", "sectionLength", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
4
4
  _excluded2 = ["changeReason", "unstable_updateValueOnRender"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
@@ -75,7 +75,6 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
75
75
  editCellState,
76
76
  align,
77
77
  colIndex,
78
- height,
79
78
  width,
80
79
  className,
81
80
  style: styleProp,
@@ -204,8 +203,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
204
203
  };
205
204
  }
206
205
  const cellStyle = _extends({
207
- '--width': `${width}px`,
208
- '--height': typeof height === 'number' ? `${height}px` : height
206
+ '--width': `${width}px`
209
207
  }, styleProp);
210
208
  if (pinnedPosition === PinnedPosition.LEFT) {
211
209
  cellStyle.left = pinnedOffset;
@@ -214,7 +212,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
214
212
  cellStyle.right = pinnedOffset;
215
213
  }
216
214
  return cellStyle;
217
- }, [width, height, isNotVisible, styleProp, pinnedOffset, pinnedPosition]);
215
+ }, [width, isNotVisible, styleProp, pinnedOffset, pinnedPosition]);
218
216
  React.useEffect(() => {
219
217
  if (!hasFocus || cellMode === GridCellModes.Edit) {
220
218
  return;
@@ -324,8 +322,6 @@ process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
324
322
  isValidating: PropTypes.bool,
325
323
  value: PropTypes.any
326
324
  }),
327
- gridHasScrollX: PropTypes.bool.isRequired,
328
- height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]).isRequired,
329
325
  isNotVisible: PropTypes.bool.isRequired,
330
326
  onClick: PropTypes.func,
331
327
  onDoubleClick: PropTypes.func,
@@ -441,8 +441,6 @@ export const GridRootStyles = styled('div', {
441
441
  lineHeight: 'calc(var(--height) - 1px)',
442
442
  // -1px for the border
443
443
 
444
- '--width': '0px',
445
- '--height': '0px',
446
444
  boxSizing: 'border-box',
447
445
  borderTop: `1px solid var(--rowBorderColor)`,
448
446
  overflow: 'hidden',
@@ -59,8 +59,10 @@ function GridVirtualScroller(props) {
59
59
  getContentProps,
60
60
  getRenderZoneProps,
61
61
  getScrollbarVerticalProps,
62
- getScrollbarHorizontalProps
62
+ getScrollbarHorizontalProps,
63
+ getRows
63
64
  } = virtualScroller;
65
+ const rows = getRows();
64
66
  return /*#__PURE__*/_jsxs(Container, _extends({
65
67
  className: classes.root
66
68
  }, getContainerProps(), {
@@ -75,11 +77,11 @@ function GridVirtualScroller(props) {
75
77
  })]
76
78
  }), /*#__PURE__*/_jsx(GridOverlays, {}), /*#__PURE__*/_jsx(Content, _extends({}, getContentProps(), {
77
79
  children: /*#__PURE__*/_jsxs(RenderZone, _extends({}, getRenderZoneProps(), {
78
- children: [virtualScroller.getRows(), /*#__PURE__*/_jsx(rootProps.slots.detailPanels, {
80
+ children: [rows, /*#__PURE__*/_jsx(rootProps.slots.detailPanels, {
79
81
  virtualScroller: virtualScroller
80
82
  })]
81
83
  }))
82
- })), /*#__PURE__*/_jsx(SpaceFiller, {}), /*#__PURE__*/_jsx(BottomContainer, {
84
+ })), rows.length > 0 && /*#__PURE__*/_jsx(SpaceFiller, {}), /*#__PURE__*/_jsx(BottomContainer, {
83
85
  children: /*#__PURE__*/_jsx(rootProps.slots.pinnedRows, {
84
86
  position: "bottom",
85
87
  virtualScroller: virtualScroller