@mui/x-data-grid-pro 6.0.0-alpha.5 → 6.0.0-alpha.7

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 (87) hide show
  1. package/CHANGELOG.md +261 -0
  2. package/DataGridPro/DataGridPro.js +8 -8
  3. package/DataGridPro/useDataGridProComponent.d.ts +2 -2
  4. package/components/DataGridProColumnHeaders.js +1 -1
  5. package/components/DataGridProVirtualScroller.js +1 -1
  6. package/components/GridColumnPinningMenuItems.d.ts +4 -4
  7. package/components/GridColumnPinningMenuItems.js +2 -2
  8. package/components/GridDetailPanel.d.ts +1 -1
  9. package/components/GridDetailPanel.js +2 -2
  10. package/components/GridDetailPanelToggleCell.d.ts +4 -4
  11. package/components/GridDetailPanelToggleCell.js +4 -14
  12. package/components/GridRowReorderCell.d.ts +1 -1
  13. package/components/GridRowReorderCell.js +3 -3
  14. package/components/GridTreeDataGroupingCell.d.ts +4 -4
  15. package/components/GridTreeDataGroupingCell.js +4 -14
  16. package/hooks/features/columnPinning/useGridColumnPinning.d.ts +2 -2
  17. package/hooks/features/columnPinning/useGridColumnPinning.js +7 -5
  18. package/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
  19. package/hooks/features/columnResize/useGridColumnResize.js +2 -2
  20. package/hooks/features/detailPanel/useGridDetailPanel.d.ts +2 -2
  21. package/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
  22. package/hooks/features/rowPinning/useGridRowPinning.d.ts +2 -2
  23. package/hooks/features/rowPinning/useGridRowPinning.js +1 -1
  24. package/hooks/features/rowReorder/useGridRowReorder.js +4 -4
  25. package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +1 -1
  26. package/hooks/utils/useGridPrivateApiContext.d.ts +3 -0
  27. package/hooks/utils/useGridPrivateApiContext.js +2 -0
  28. package/index.d.ts +1 -1
  29. package/index.js +1 -1
  30. package/legacy/DataGridPro/DataGridPro.js +8 -8
  31. package/legacy/components/DataGridProColumnHeaders.js +1 -1
  32. package/legacy/components/DataGridProVirtualScroller.js +1 -1
  33. package/legacy/components/GridColumnPinningMenuItems.js +2 -2
  34. package/legacy/components/GridDetailPanel.js +2 -2
  35. package/legacy/components/GridDetailPanelToggleCell.js +4 -14
  36. package/legacy/components/GridRowReorderCell.js +3 -3
  37. package/legacy/components/GridTreeDataGroupingCell.js +4 -14
  38. package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +4 -4
  39. package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
  40. package/legacy/hooks/features/columnResize/useGridColumnResize.js +2 -2
  41. package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
  42. package/legacy/hooks/features/rowPinning/useGridRowPinning.js +1 -1
  43. package/legacy/hooks/features/rowReorder/useGridRowReorder.js +4 -4
  44. package/legacy/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +1 -1
  45. package/legacy/hooks/utils/useGridPrivateApiContext.js +2 -0
  46. package/legacy/index.js +1 -1
  47. package/legacy/utils/releaseInfo.js +1 -1
  48. package/models/gridApiPro.d.ts +5 -2
  49. package/modern/DataGridPro/DataGridPro.js +8 -8
  50. package/modern/components/DataGridProColumnHeaders.js +1 -1
  51. package/modern/components/DataGridProVirtualScroller.js +1 -1
  52. package/modern/components/GridColumnPinningMenuItems.js +2 -2
  53. package/modern/components/GridDetailPanel.js +2 -2
  54. package/modern/components/GridDetailPanelToggleCell.js +4 -14
  55. package/modern/components/GridRowReorderCell.js +3 -3
  56. package/modern/components/GridTreeDataGroupingCell.js +4 -14
  57. package/modern/hooks/features/columnPinning/useGridColumnPinning.js +7 -5
  58. package/modern/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
  59. package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -2
  60. package/modern/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
  61. package/modern/hooks/features/rowPinning/useGridRowPinning.js +1 -1
  62. package/modern/hooks/features/rowReorder/useGridRowReorder.js +4 -4
  63. package/modern/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +1 -1
  64. package/modern/hooks/utils/useGridPrivateApiContext.js +2 -0
  65. package/modern/index.js +1 -1
  66. package/modern/utils/releaseInfo.js +1 -1
  67. package/node/DataGridPro/DataGridPro.js +8 -8
  68. package/node/components/DataGridProColumnHeaders.js +4 -4
  69. package/node/components/DataGridProVirtualScroller.js +2 -2
  70. package/node/components/GridColumnPinningMenuItems.js +3 -4
  71. package/node/components/GridDetailPanel.js +3 -5
  72. package/node/components/GridDetailPanelToggleCell.js +6 -17
  73. package/node/components/GridRowReorderCell.js +6 -7
  74. package/node/components/GridTreeDataGroupingCell.js +6 -17
  75. package/node/hooks/features/columnPinning/useGridColumnPinning.js +7 -5
  76. package/node/hooks/features/columnReorder/useGridColumnReorder.js +2 -2
  77. package/node/hooks/features/columnResize/useGridColumnResize.js +2 -2
  78. package/node/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
  79. package/node/hooks/features/rowPinning/useGridRowPinning.js +1 -1
  80. package/node/hooks/features/rowReorder/useGridRowReorder.js +5 -5
  81. package/node/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +2 -2
  82. package/node/hooks/utils/useGridPrivateApiContext.js +11 -0
  83. package/node/index.js +1 -1
  84. package/node/utils/releaseInfo.js +1 -1
  85. package/package.json +3 -3
  86. package/typeOverloads/reexports.d.ts +0 -5
  87. package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,100 @@
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.0.0-alpha.7
7
+
8
+ _Nov 10, 2022_
9
+
10
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ⚙️ Removed everything marked as `@deprecated`
13
+ - 📚 Documentation improvements
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v6.0.0-alpha.7` / `@mui/x-data-grid-pro@v6.0.0-alpha.7` / `@mui/x-data-grid-premium@v6.0.0-alpha.7`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Fix cell focus causing scroll jump when virtualization enabled (#6785) @yaredtsy
21
+ - [DataGrid] Remove items marked as `@deprecated` (#6505) @DanailH
22
+
23
+ ### `@mui/x-date-pickers@v6.0.0-alpha.7` / `@mui/x-date-pickers-pro@v6.0.0-alpha.7`
24
+
25
+ #### Changes
26
+
27
+ - [fields] Rename section names to match the picker view nomenclature (#6779) @flaviendelangle
28
+ - [pickers] Fix pickers toolbar styling (#6793) @LukasTy
29
+ - [pickers] Improve validation JSDoc descriptions (#6777) @flaviendelangle
30
+ - [pickers] New `MobileDateTimePicker`, `DesktopDateTimePicker`, `DateTimePicker` and `StaticDateTimePicker` based on `DateTimeField` (#6767) @flaviendelangle
31
+ - [pickers] New `MobileTimePicker`, `DesktopTimePicker`, `TimePicker` and `StaticTimePicker` based on `TimeField` (#6728) @flaviendelangle
32
+ - [pickers] Support the `onError` prop and add context on the `onChange` prop (#6731) @flaviendelangle
33
+
34
+ ### Docs
35
+
36
+ - [docs] Add missing Pro header suffix (#6775) @oliviertassinari
37
+ - [docs] Upgrade to Next.js 13 (#6790) @cherniavskii
38
+
39
+ ### Core
40
+
41
+ - [core] Add OSSF Scorecard action (#6760) @oliviertassinari
42
+ - [core] Fix Pinned-Dependencies @oliviertassinari
43
+ - [core] Fix Scorecard fail Action @oliviertassinari
44
+ - [core] Pin GitHub Action dependencies (#6739) @renovate[bot]
45
+ - [core] Remove default access to GitHub action scopes @oliviertassinari
46
+ - [test] Fix test case name: Pro-> Premium @oliviertassinari
47
+
48
+ ## 6.0.0-alpha.6
49
+
50
+ _Nov 4, 2022_
51
+
52
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
53
+
54
+ - 🎁 Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
55
+
56
+ ```tsx
57
+ <DateCalendar defaultValue={dayjs()} />
58
+ <MonthCalendar defaultValue={dayjs()} />
59
+ <YearCalendar defaultValue={dayjs()} />
60
+ ```
61
+
62
+ - 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
63
+ - 📚 Documentation improvements
64
+ - 🐞 Bugfixes
65
+
66
+ ### `@mui/x-data-grid@v6.0.0-alpha.6` / `@mui/x-data-grid-pro@v6.0.0-alpha.6` / `@mui/x-data-grid-premium@v6.0.0-alpha.6`
67
+
68
+ #### Breaking changes
69
+
70
+ - The `disableIgnoreModificationsIfProcessingProps` prop has been removed and its behavior when `true` was incorporated as the default behavior.
71
+ The old behavior can be restored by using `apiRef.current.stopRowEditMode({ ignoreModifications: true })` or `apiRef.current.stopCellEditMode({ ignoreModifications: true })`.
72
+
73
+ #### Changes
74
+
75
+ - [DataGrid] Add `rowSelection` prop (#6499) @m4theushw
76
+ - [DataGrid] Avoid future regression with React 19 (#6638) @oliviertassinari
77
+ - [DataGrid] Refactor `@mui/material` imports to `@mui/utils` (#6569) @LukasTy
78
+ - [DataGrid] Remove `disableIgnoreModificationsIfProcessingProps` prop (#6640) @m4theushw
79
+ - [DataGrid] Separate private and public `apiRef` properties (#6388) @cherniavskii
80
+
81
+ ### `@mui/x-date-pickers@v6.0.0-alpha.6` / `@mui/x-date-pickers-pro@v6.0.0-alpha.6`
82
+
83
+ #### Changes
84
+
85
+ - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) @LukasTy
86
+ - [fields] Update sections when the locale changes (#6649) @flaviendelangle
87
+ - [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
88
+ - [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
89
+ - [pickers] Export other adapters derived from moment or date-fns (#6571) @alexfauquette
90
+ - [pickers] New `MobileDatePicker` and `DatePicker` based on `DateField` (#6690) @flaviendelangle
91
+ - [pickers] New `StaticDatePicker` component (#6708) @flaviendelangle
92
+ - [pickers] Rename `inputFormat` prop to `format` on the new pickers (#6722) @flaviendelangle
93
+
94
+ ### Core
95
+
96
+ - [core] Fix `typescript:ci` failures (#6705) @LukasTy
97
+ - [core] Fixes for upcoming eslint upgrade (#6667) @Janpot
98
+ - [core] Pin GitHub Action to digests (#6683) @oliviertassinari
99
+
6
100
  ## 6.0.0-alpha.5
7
101
 
8
102
  _Oct 31, 2022_
@@ -855,6 +949,173 @@ You can find more information about the new api, including how to set those tran
855
949
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
856
950
  - [website] Improve security header @oliviertassinari
857
951
 
952
+ ## 5.17.10
953
+
954
+ _Nov 4, 2022_
955
+
956
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
957
+
958
+ - 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
959
+
960
+ ### `@mui/x-data-grid@v5.17.10` / `@mui/x-data-grid-pro@v5.17.10` / `@mui/x-data-grid-premium@v5.17.10`
961
+
962
+ #### Changes
963
+
964
+ - [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6688) @mattcorner
965
+
966
+ ### `@mui/x-date-pickers@v5.0.7` / `@mui/x-date-pickers-pro@v5.0.7`
967
+
968
+ #### Changes
969
+
970
+ - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) (#6714) @LukasTy
971
+ - [pickers] Add Ukrainian (uk-UA) locale on the date picker (#6661) @Dufran
972
+
973
+ ### Docs
974
+
975
+ - [docs] Mark data grid column group available (#6659) @alexfauquette
976
+
977
+ ## 5.17.9
978
+
979
+ _Oct 28, 2022_
980
+
981
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
982
+
983
+ - ⚡ Fix memory leak during unmount of the DataGrid (#6579) @cherniavskii
984
+ - 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6630) @e-cloud
985
+ - 🐞 Bugfixes
986
+
987
+ ### `@mui/x-data-grid@v5.17.9` / `@mui/x-data-grid-pro@v5.17.9` / `@mui/x-data-grid-premium@v5.17.9`
988
+
989
+ #### Changes
990
+
991
+ - [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6630) @e-cloud
992
+ - [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6637) @cherniavskii
993
+ - [DataGrid] Fix memory leak on grid unmount (#6579) @cherniavskii
994
+ - [l10n] Improve Bulgarian (bg-BG) locale (#6635) @AtanasVA
995
+
996
+ ### `@mui/x-date-pickers@v5.0.6` / `@mui/x-date-pickers-pro@v5.0.6`
997
+
998
+ #### Changes
999
+
1000
+ - [pickers] Ignore milliseconds in mask logic (#6618) @alexfauquette
1001
+ - [pickers] Update input when `inputFormat` is modified (#6617) @alexfauquette
1002
+
1003
+ ### Docs
1004
+
1005
+ - [docs] Add token to redirect feedbacks on slack (#6592) @alexfauquette
1006
+ - [docs] Disable translations (#6639) @cherniavskii
1007
+ - [docs] Fix code edit for when v6 will be stable (#6600) @oliviertassinari
1008
+ - [docs] Fix typo in DataGrid demo page (#6632) (#6634) @LukasTy
1009
+
1010
+ ### Core
1011
+
1012
+ - [core] Upgrade monorepo (#6570) @cherniavskii
1013
+
1014
+ ## 5.17.8
1015
+
1016
+ _Oct 20, 2022_
1017
+
1018
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1019
+
1020
+ - 🐞 Bugfixes
1021
+ - 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6573) @ramazansancar
1022
+
1023
+ ### `@mui/x-data-grid@v5.17.8` / `@mui/x-data-grid-pro@v5.17.8` / `@mui/x-data-grid-premium@v5.17.8`
1024
+
1025
+ #### Changes
1026
+
1027
+ - [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6572) @cherniavskii
1028
+ - [DataGrid] Fix grid not updating state on `rowCount` prop change (#6474) @cherniavskii
1029
+ - [DataGridPro] Fix row order being reset after updating the row (#6544) @cherniavskii
1030
+ - [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) (#6573) @ramazansancar
1031
+
1032
+ ### `@mui/x-date-pickers@v5.0.5` / `@mui/x-date-pickers-pro@v5.0.5`
1033
+
1034
+ #### Changes
1035
+
1036
+ - [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
1037
+ - [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
1038
+ - [pickers] Fix typescript issues (#6510) @flaviendelangle
1039
+
1040
+ ### Docs
1041
+
1042
+ - [docs] Fix 301 link to the sx prop page @oliviertassinari
1043
+
1044
+ ## 5.17.7
1045
+
1046
+ _Oct 13, 2022_
1047
+
1048
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
1049
+
1050
+ - 🐞 Bugfixes
1051
+
1052
+ ### `@mui/x-data-grid@v5.17.7` / `@mui/x-data-grid-pro@v5.17.7` / `@mui/x-data-grid-premium@v5.17.7`
1053
+
1054
+ #### Changes
1055
+
1056
+ - [DataGrid] Fix error when using column grouping with all columns hidden (#6425) @alexfauquette
1057
+ - [DataGrid] Fix start edit mode with printable character in React 18 (#6478) @m4theushw
1058
+
1059
+ ## 5.17.6
1060
+
1061
+ _Oct 6, 2022_
1062
+
1063
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
1064
+
1065
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
1066
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
1067
+ - 🐞 Bugfixes
1068
+
1069
+ ### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
1070
+
1071
+ #### Changes
1072
+
1073
+ - [DataGrid] Add missing `valueOptions` (#6400) @DanailH
1074
+ - [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
1075
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
1076
+
1077
+ ### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
1078
+
1079
+ #### Changes
1080
+
1081
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
1082
+ - [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
1083
+ - [pickers] Fix git repository location @oliviertassinari
1084
+
1085
+ ### Docs
1086
+
1087
+ - [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
1088
+
1089
+ ## 5.17.5
1090
+
1091
+ _Sep 29, 2022_
1092
+
1093
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
1094
+
1095
+ - 🎁 Add theme augmentation module to DataGridPremium (#6316) @cherniavskii
1096
+ - 👀 Fix blank space when changing page with dynamic row height (#6320) @m4theushw
1097
+ - 📚 Improve controlled editing demo to make easier to reuse it (#6306) @cherniavskii
1098
+ - 🐞 Bugfixes
1099
+
1100
+ ### `@mui/x-data-grid@v5.17.5` / `@mui/x-data-grid-pro@v5.17.5` / `@mui/x-data-grid-premium@v5.17.5`
1101
+
1102
+ #### Changes
1103
+
1104
+ - [DataGrid] Fix `GridPagination` props typing (#6295) @cherniavskii
1105
+ - [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6303) @cherniavskii
1106
+ - [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6271) @cherniavskii
1107
+ - [DataGrid] Fix blank space when changing page with dynamic row height (#6320) @m4theushw
1108
+ - [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6319) @m4theushw
1109
+ - [DataGridPremium] Add missing `themeAugmentation` module (#6316) @cherniavskii
1110
+
1111
+ ### Docs
1112
+
1113
+ - [docs] Pass model change callbacks in controlled grid editing demos (#6306) @cherniavskii
1114
+
1115
+ ### Core
1116
+
1117
+ - [core] Reduce the amount of updated screenshots reported by Argos (#6310) @cherniavskii
1118
+
858
1119
  ## 5.17.4
859
1120
 
860
1121
  _Sep 22, 2022_
@@ -13,10 +13,10 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
13
13
  const releaseInfo = getReleaseInfo();
14
14
  const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProps, ref) {
15
15
  const props = useDataGridProProps(inProps);
16
- const apiRef = useDataGridProComponent(props.apiRef, props);
16
+ const privateApiRef = useDataGridProComponent(props.apiRef, props);
17
17
  useLicenseVerifier('x-data-grid-pro', releaseInfo);
18
18
  return /*#__PURE__*/_jsx(GridContextProvider, {
19
- apiRef: apiRef,
19
+ privateApiRef: privateApiRef,
20
20
  props: props,
21
21
  children: /*#__PURE__*/_jsx(GridRoot, {
22
22
  className: props.className,
@@ -218,12 +218,6 @@ DataGridProRaw.propTypes = {
218
218
  */
219
219
  disableExtendRowFullWidth: PropTypes.bool,
220
220
 
221
- /**
222
- * If `true`, modification to a cell will not be discarded if the mode is changed from "edit" to "view" while processing props.
223
- * @default false
224
- */
225
- disableIgnoreModificationsIfProcessingProps: PropTypes.bool,
226
-
227
221
  /**
228
222
  * If `true`, filtering with multiple columns is disabled.
229
223
  * @default false
@@ -894,6 +888,12 @@ DataGridProRaw.propTypes = {
894
888
  */
895
889
  rows: PropTypes.arrayOf(PropTypes.object).isRequired,
896
890
 
891
+ /**
892
+ * If `false`, the row selection mode is disabled.
893
+ * @default true
894
+ */
895
+ rowSelection: PropTypes.bool,
896
+
897
897
  /**
898
898
  * Sets the row selection model of the grid.
899
899
  */
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { GridApiPro } from '../models/gridApiPro';
2
+ import { GridApiPro, GridPrivateApiPro } from '../models/gridApiPro';
3
3
  import { DataGridProProcessedProps } from '../models/dataGridProProps';
4
- export declare const useDataGridProComponent: (inputApiRef: React.MutableRefObject<GridApiPro> | undefined, props: DataGridProProcessedProps) => React.MutableRefObject<GridApiPro>;
4
+ export declare const useDataGridProComponent: (inputApiRef: React.MutableRefObject<GridApiPro> | undefined, props: DataGridProProcessedProps) => React.MutableRefObject<GridPrivateApiPro>;
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["style", "className", "innerRef"];
4
4
  import * as React from 'react';
5
- import { unstable_composeClasses as composeClasses } from '@mui/material';
5
+ import { unstable_composeClasses as composeClasses } from '@mui/utils';
6
6
  import { styled, alpha } from '@mui/material/styles';
7
7
  import { useEventCallback } from '@mui/material/utils';
8
8
  import { getDataGridUtilityClass, gridClasses, useGridSelector, useGridApiEventHandler, gridVisibleColumnFieldsSelector, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["className", "disableVirtualization"];
4
4
  import * as React from 'react';
5
5
  import { styled, alpha } from '@mui/material/styles';
6
- import { unstable_composeClasses as composeClasses } from '@mui/material';
6
+ import { unstable_composeClasses as composeClasses } from '@mui/utils';
7
7
  import { useGridSelector, getDataGridUtilityClass, gridClasses, gridVisibleColumnFieldsSelector, gridRowsMetaSelector, useGridApiEventHandler, GridOverlays } from '@mui/x-data-grid';
8
8
  import { GridVirtualScroller, GridVirtualScrollerContent, GridVirtualScrollerRenderZone, useGridVirtualScroller, calculatePinnedRowsHeight } from '@mui/x-data-grid/internals';
9
9
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
@@ -4,8 +4,8 @@ interface GridColumnPinningMenuItemsProps {
4
4
  column?: GridColDef;
5
5
  onClick?: (event: React.MouseEvent<any>) => void;
6
6
  }
7
- declare const GridColumnPinningMenuItems: {
8
- (props: GridColumnPinningMenuItemsProps): JSX.Element | null;
9
- propTypes: any;
10
- };
7
+ declare function GridColumnPinningMenuItems(props: GridColumnPinningMenuItemsProps): JSX.Element | null;
8
+ declare namespace GridColumnPinningMenuItems {
9
+ var propTypes: any;
10
+ }
11
11
  export { GridColumnPinningMenuItems };
@@ -6,7 +6,7 @@ import { useGridApiContext } from '../hooks/utils/useGridApiContext';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
 
9
- const GridColumnPinningMenuItems = props => {
9
+ function GridColumnPinningMenuItems(props) {
10
10
  const {
11
11
  column,
12
12
  onClick
@@ -58,7 +58,7 @@ const GridColumnPinningMenuItems = props => {
58
58
  children: apiRef.current.getLocaleText('pinToRight')
59
59
  })]
60
60
  });
61
- };
61
+ }
62
62
 
63
63
  process.env.NODE_ENV !== "production" ? GridColumnPinningMenuItems.propTypes = {
64
64
  // ----------------------------- Warning --------------------------------
@@ -15,5 +15,5 @@ interface GridDetailPanelProps extends React.HTMLAttributes<HTMLDivElement> {
15
15
  */
16
16
  rowId: GridRowId;
17
17
  }
18
- declare const GridDetailPanel: (props: GridDetailPanelProps) => JSX.Element;
18
+ declare function GridDetailPanel(props: GridDetailPanelProps): JSX.Element;
19
19
  export { GridDetailPanel };
@@ -20,7 +20,7 @@ const DetailPanel = styled(Box, {
20
20
  overflow: 'auto'
21
21
  }));
22
22
 
23
- const GridDetailPanel = props => {
23
+ function GridDetailPanel(props) {
24
24
  const {
25
25
  rowId,
26
26
  height,
@@ -60,6 +60,6 @@ const GridDetailPanel = props => {
60
60
  ref: ref,
61
61
  style: style
62
62
  }, other));
63
- };
63
+ }
64
64
 
65
65
  export { GridDetailPanel };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid';
3
- declare const GridDetailPanelToggleCell: {
4
- (props: GridRenderCellParams): JSX.Element;
5
- propTypes: any;
6
- };
3
+ declare function GridDetailPanelToggleCell(props: GridRenderCellParams): JSX.Element;
4
+ declare namespace GridDetailPanelToggleCell {
5
+ var propTypes: any;
6
+ }
7
7
  export { GridDetailPanelToggleCell };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { unstable_composeClasses as composeClasses } from '@mui/material';
3
+ import { unstable_composeClasses as composeClasses } from '@mui/utils';
4
4
  import IconButton from '@mui/material/IconButton';
5
5
  import { getDataGridUtilityClass, useGridSelector } from '@mui/x-data-grid';
6
6
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
@@ -19,7 +19,7 @@ const useUtilityClasses = ownerState => {
19
19
  return composeClasses(slots, getDataGridUtilityClass, classes);
20
20
  };
21
21
 
22
- const GridDetailPanelToggleCell = props => {
22
+ function GridDetailPanelToggleCell(props) {
23
23
  const {
24
24
  id,
25
25
  value: isExpanded
@@ -44,7 +44,7 @@ const GridDetailPanelToggleCell = props => {
44
44
  fontSize: "inherit"
45
45
  })
46
46
  });
47
- };
47
+ }
48
48
 
49
49
  process.env.NODE_ENV !== "production" ? GridDetailPanelToggleCell.propTypes = {
50
50
  // ----------------------------- Warning --------------------------------
@@ -54,9 +54,8 @@ process.env.NODE_ENV !== "production" ? GridDetailPanelToggleCell.propTypes = {
54
54
 
55
55
  /**
56
56
  * GridApi that let you manipulate the grid.
57
- * @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
58
57
  */
59
- api: PropTypes.any.isRequired,
58
+ api: PropTypes.object.isRequired,
60
59
 
61
60
  /**
62
61
  * The mode of the cell.
@@ -89,15 +88,6 @@ process.env.NODE_ENV !== "production" ? GridDetailPanelToggleCell.propTypes = {
89
88
  */
90
89
  formattedValue: PropTypes.any,
91
90
 
92
- /**
93
- * Get the cell value of a row and field.
94
- * @param {GridRowId} id The row id.
95
- * @param {string} field The field.
96
- * @returns {any} The cell value.
97
- * @deprecated Use `params.row` to directly access the fields you want instead.
98
- */
99
- getValue: PropTypes.func.isRequired,
100
-
101
91
  /**
102
92
  * If true, the cell is the active element.
103
93
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid';
3
- declare const GridRowReorderCell: (params: GridRenderCellParams) => JSX.Element | null;
3
+ declare function GridRowReorderCell(params: GridRenderCellParams): JSX.Element | null;
4
4
  export { GridRowReorderCell };
5
5
  export declare const renderRowReorderCell: (params: GridRenderCellParams) => JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { unstable_composeClasses as composeClasses } from '@mui/material';
3
+ import { unstable_composeClasses as composeClasses } from '@mui/utils';
4
4
  import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass, gridEditRowsStateSelector } from '@mui/x-data-grid';
5
5
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -18,7 +18,7 @@ const useUtilityClasses = ownerState => {
18
18
  return composeClasses(slots, getDataGridUtilityClass, classes);
19
19
  };
20
20
 
21
- const GridRowReorderCell = params => {
21
+ function GridRowReorderCell(params) {
22
22
  const apiRef = useGridApiContext();
23
23
  const rootProps = useGridRootProps();
24
24
  const sortModel = useGridSelector(apiRef, gridSortModelSelector);
@@ -71,7 +71,7 @@ const GridRowReorderCell = params => {
71
71
  children: cellValue
72
72
  })]
73
73
  }));
74
- };
74
+ }
75
75
 
76
76
  export { GridRowReorderCell };
77
77
  export const renderRowReorderCell = params => {
@@ -3,8 +3,8 @@ import { GridRenderCellParams, GridGroupNode } from '@mui/x-data-grid';
3
3
  interface GridTreeDataGroupingCellProps extends GridRenderCellParams<any, any, any, GridGroupNode> {
4
4
  hideDescendantCount?: boolean;
5
5
  }
6
- declare const GridTreeDataGroupingCell: {
7
- (props: GridTreeDataGroupingCellProps): JSX.Element;
8
- propTypes: any;
9
- };
6
+ declare function GridTreeDataGroupingCell(props: GridTreeDataGroupingCellProps): JSX.Element;
7
+ declare namespace GridTreeDataGroupingCell {
8
+ var propTypes: any;
9
+ }
10
10
  export { GridTreeDataGroupingCell };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { unstable_composeClasses as composeClasses } from '@mui/material';
3
+ import { unstable_composeClasses as composeClasses } from '@mui/utils';
4
4
  import IconButton from '@mui/material/IconButton';
5
5
  import Box from '@mui/material/Box';
6
6
  import { useGridSelector, gridFilteredDescendantCountLookupSelector, getDataGridUtilityClass } from '@mui/x-data-grid';
@@ -21,7 +21,7 @@ const useUtilityClasses = ownerState => {
21
21
  return composeClasses(slots, getDataGridUtilityClass, classes);
22
22
  };
23
23
 
24
- const GridTreeDataGroupingCell = props => {
24
+ function GridTreeDataGroupingCell(props) {
25
25
  var _filteredDescendantCo;
26
26
 
27
27
  const {
@@ -78,7 +78,7 @@ const GridTreeDataGroupingCell = props => {
78
78
  children: [formattedValue === undefined ? rowNode.groupingKey : formattedValue, !hideDescendantCount && filteredDescendantCount > 0 ? ` (${filteredDescendantCount})` : '']
79
79
  })]
80
80
  });
81
- };
81
+ }
82
82
 
83
83
  process.env.NODE_ENV !== "production" ? GridTreeDataGroupingCell.propTypes = {
84
84
  // ----------------------------- Warning --------------------------------
@@ -88,9 +88,8 @@ process.env.NODE_ENV !== "production" ? GridTreeDataGroupingCell.propTypes = {
88
88
 
89
89
  /**
90
90
  * GridApi that let you manipulate the grid.
91
- * @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
92
91
  */
93
- api: PropTypes.any.isRequired,
92
+ api: PropTypes.object.isRequired,
94
93
 
95
94
  /**
96
95
  * The mode of the cell.
@@ -123,15 +122,6 @@ process.env.NODE_ENV !== "production" ? GridTreeDataGroupingCell.propTypes = {
123
122
  */
124
123
  formattedValue: PropTypes.any,
125
124
 
126
- /**
127
- * Get the cell value of a row and field.
128
- * @param {GridRowId} id The row id.
129
- * @param {string} field The field.
130
- * @returns {any} The cell value.
131
- * @deprecated Use `params.row` to directly access the fields you want instead.
132
- */
133
- getValue: PropTypes.func.isRequired,
134
-
135
125
  /**
136
126
  * If true, the cell is the active element.
137
127
  */
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { GridStateInitializer } from '@mui/x-data-grid/internals';
3
- import { GridApiPro } from '../../../models/gridApiPro';
3
+ import { GridPrivateApiPro } from '../../../models/gridApiPro';
4
4
  import { DataGridProProcessedProps } from '../../../models/dataGridProProps';
5
5
  export declare const columnPinningStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'pinnedColumns' | 'initialState' | 'disableColumnPinning'>>;
6
- export declare const useGridColumnPinning: (apiRef: React.MutableRefObject<GridApiPro>, props: Pick<DataGridProProcessedProps, 'disableColumnPinning' | 'initialState' | 'pinnedColumns' | 'onPinnedColumnsChange'>) => void;
6
+ export declare const useGridColumnPinning: (apiRef: React.MutableRefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, 'disableColumnPinning' | 'initialState' | 'pinnedColumns' | 'onPinnedColumnsChange'>) => void;
@@ -9,9 +9,11 @@ import { gridPinnedColumnsSelector } from './gridColumnPinningSelector';
9
9
  import { filterColumns } from '../../../components/DataGridProVirtualScroller';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
 
12
- const Divider = () => /*#__PURE__*/_jsx(MuiDivider, {
13
- onClick: event => event.stopPropagation()
14
- });
12
+ function Divider() {
13
+ return /*#__PURE__*/_jsx(MuiDivider, {
14
+ onClick: event => event.stopPropagation()
15
+ });
16
+ }
15
17
 
16
18
  export const columnPinningStateInitializer = (state, props, apiRef) => {
17
19
  var _props$initialState;
@@ -198,7 +200,7 @@ export const useGridColumnPinning = (apiRef, props) => {
198
200
  useGridRegisterPipeProcessor(apiRef, 'canBeReordered', checkIfCanBeReordered);
199
201
  useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);
200
202
  useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
201
- apiRef.current.unstable_registerControlState({
203
+ apiRef.current.registerControlState({
202
204
  stateId: 'pinnedColumns',
203
205
  propModel: props.pinnedColumns,
204
206
  propOnChange: props.onPinnedColumnsChange,
@@ -263,7 +265,7 @@ export const useGridColumnPinning = (apiRef, props) => {
263
265
  setPinnedColumns,
264
266
  isColumnPinned
265
267
  };
266
- useGridApiMethod(apiRef, columnPinningApi, 'columnPinningApi');
268
+ useGridApiMethod(apiRef, columnPinningApi, 'public');
267
269
  const handleColumnOrderChange = React.useCallback(params => {
268
270
  if (!apiRef.current.unstable_caches.columnPinning.orderedFieldsBeforePinningColumns) {
269
271
  return;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { unstable_composeClasses as composeClasses } from '@mui/material';
3
+ import { unstable_composeClasses as composeClasses } from '@mui/utils';
4
4
  import { useGridApiEventHandler, getDataGridUtilityClass, useGridLogger } from '@mui/x-data-grid';
5
5
  import { gridColumnReorderDragColSelector } from './columnReorderSelector';
6
6
  const CURSOR_MOVE_DIRECTION_LEFT = 'left';
@@ -146,7 +146,7 @@ export const useGridColumnResize = (apiRef, props) => {
146
146
  const handleResizeMouseUp = useEventCallback(nativeEvent => {
147
147
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
148
148
  stopListening();
149
- apiRef.current.updateColumn(colDefRef.current);
149
+ apiRef.current.updateColumns([colDefRef.current]);
150
150
  clearTimeout(stopResizeEventTimeout.current);
151
151
  stopResizeEventTimeout.current = setTimeout(() => {
152
152
  apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);
@@ -221,7 +221,7 @@ export const useGridColumnResize = (apiRef, props) => {
221
221
 
222
222
 
223
223
  stopListening();
224
- apiRef.current.updateColumn(colDefRef.current);
224
+ apiRef.current.updateColumns([colDefRef.current]);
225
225
  clearTimeout(stopResizeEventTimeout.current);
226
226
  stopResizeEventTimeout.current = setTimeout(() => {
227
227
  apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { GridStateInitializer } from '@mui/x-data-grid/internals';
3
- import { GridApiPro } from '../../../models/gridApiPro';
3
+ import { GridPrivateApiPro } from '../../../models/gridApiPro';
4
4
  import { DataGridProProcessedProps } from '../../../models/dataGridProProps';
5
5
  export declare const detailPanelStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'initialState' | 'detailPanelExpandedRowIds'>>;
6
- export declare const useGridDetailPanel: (apiRef: React.MutableRefObject<GridApiPro>, props: Pick<DataGridProProcessedProps, 'getDetailPanelContent' | 'getDetailPanelHeight' | 'detailPanelExpandedRowIds' | 'onDetailPanelExpandedRowIdsChange'>) => void;
6
+ export declare const useGridDetailPanel: (apiRef: React.MutableRefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, 'getDetailPanelContent' | 'getDetailPanelHeight' | 'detailPanelExpandedRowIds' | 'onDetailPanelExpandedRowIdsChange'>) => void;