@mui/x-data-grid-premium 6.16.0 → 6.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,170 @@
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.16.2
7
+
8
+ _Oct 12, 2023_
9
+
10
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 📊 Chart's legend text management has been reworked and contains breaking changes (#10138) @alexfauquette
13
+ - 📝 Add [Bulk editing](https://mui.com/x/react-data-grid/recipes-editing/#bulk-editing) demo (#10333) @cherniavskii
14
+ - 🚀 Column grouping now works smoothly with column pinning (#10518) @MBilalShafi
15
+ - 🌍 Improve Arabic (ar-SD) and Spanish (es-ES) locales
16
+ - 🐞 Bugfixes
17
+ - 📚 Documentation improvements
18
+
19
+ ### Data Grid
20
+
21
+ #### `@mui/x-data-grid@6.16.2`
22
+
23
+ - [DataGrid] Fix `LazyLoading` demo crash (#10621) @MBilalShafi
24
+ - [DataGrid] Fix cells overlapping the scrollbar in iOS Safari (#10633) @cherniavskii
25
+ - [DataGrid] Fix `getRowId is not defined` error (#10613) @romgrk
26
+ - [DataGrid] Get quick filter to work OOTB with `date` and `dateTime` fields (#10636) @MBilalShafi
27
+ - [DataGrid] Make cursor for selectable cells to be `default` unless editable (#9997) @gitstart
28
+ - [DataGrid] Remove unnecessary syntax in JSDoc (#10567) @Lev-Shapiro
29
+ - [DataGrid] Update row hover behavior to match native hover (#10623) @cherniavskii
30
+ - [l10n] Improve Arabic (ar-SD) locale (#10625) @alabenyahia
31
+
32
+ #### `@mui/x-data-grid-pro@6.16.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
33
+
34
+ Same changes as in `@mui/x-data-grid@6.16.2`, plus:
35
+
36
+ - [DataGridPro] Improve column grouping and column pinning friendship (#10518) @MBilalShafi
37
+
38
+ #### `@mui/x-data-grid-premium@6.16.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
39
+
40
+ Same changes as in `@mui/x-data-grid-pro@6.16.2`.
41
+
42
+ ### Date Pickers
43
+
44
+ #### `@mui/x-date-pickers@6.16.2`
45
+
46
+ - [DateTimePicker] Add support for `DigitalClock` view renderer (#10624) @LukasTy
47
+ - [fields] Bootstrap the multi-HTML input component (#10638) @flaviendelangle
48
+ - [pickers] Fix timezone `UTC` false positive (#10586) @alexfauquette
49
+ - [l10n] Improve Spanish (es-ES) locale (#10588) @eduardodallmann
50
+
51
+ #### `@mui/x-date-pickers-pro@6.16.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
52
+
53
+ Same changes as in `@mui/x-date-pickers@6.16.2`.
54
+
55
+ ### Charts / `@mui/x-charts@6.0.0-alpha.15`
56
+
57
+ #### Breaking changes
58
+
59
+ The charts have a new text display mechanism.
60
+ It adds line break support and avoids overlapping text in the legend.
61
+ This comes with some breaking changes.
62
+
63
+ - The DOM structure is modified. An intermediary `<tspan />` element has been added. This can impact how your style is applied.
64
+ ```diff
65
+ - <text>The label</text>
66
+ + <text><tspan>The label</tspan></text>
67
+ ```
68
+
69
+ - The top margin has been reduced from 100 to 50 to benefit from the denser legend.
70
+
71
+ - To accurately compute the text size and then place it, styling should be provided as a JS object. For example, to set the legend font size, you should do:
72
+ ```jsx
73
+ <PieChart
74
+ {/** ... */}
75
+ slotProps={{
76
+ legend: {
77
+ labelStyle: {
78
+ fontSize: 16,
79
+ },
80
+ },
81
+ }}
82
+ />
83
+ ```
84
+ Support for other text elements (axis labels and tick labels) will be implemented in follow-up PR.
85
+
86
+ #### Changes
87
+
88
+ - [charts] Fix typo between internal/external variable (#10640) @alexfauquette
89
+ - [charts] Improve the management of the text (#10138) @alexfauquette
90
+
91
+ ### Docs
92
+
93
+ - [docs] Add bulk editing demo (#10333) @cherniavskii
94
+ - [docs] Add reference links to DateRangePicker components (#10629) @michelengelen
95
+ - [docs] Add reference links to DateTimePicker components (#10628) @michelengelen
96
+ - [docs] Add reference links to picker field components (#10631) @michelengelen
97
+ - [docs] Added reference links to TimePicker components (#10627) @michelengelen
98
+ - [docs] Avoid Pickers playground error due to empty views (#10654) @LukasTy
99
+ - [docs] Fix DataGrid[Pro/Premium] reference links (#10620) @michelengelen
100
+
101
+ ### Core
102
+
103
+ - [core] Bump monorepo (#10619) @alexfauquette
104
+ - [core] Update `no-response` workflow (#10491) @MBilalShafi
105
+ - [core] Update the issue templates to reflect the new support workflow (#10651) @MBilalShafi
106
+ - [test] Fix `testEval` not invoking test assertions (#10587) @cherniavskii
107
+ - [test] Fix dev mode warning (#10610) @oliviertassinari
108
+ - [test] Set UUID chance seed in visual tests (#10609) @oliviertassinari
109
+
110
+ ## 6.16.1
111
+
112
+ _Oct 6, 2023_
113
+
114
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
115
+
116
+ - 🥧 Support interaction with pie chart
117
+ - 🐞 Bugfixes
118
+ - 📚 Documentation improvements
119
+
120
+ ### Data Grid
121
+
122
+ #### `@mui/x-data-grid@6.16.1`
123
+
124
+ - [DataGrid] Add a new demo with sparklines (#9228) @flaviendelangle
125
+ - [DataGrid] Fix autosize missing a few pixels (#10471) @romgrk
126
+ - [DataGrid] Make `disableColumnSelector` demo idempotent (#10548) @MBilalShafi
127
+
128
+ #### `@mui/x-data-grid-pro@6.16.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
129
+
130
+ Same changes as in `@mui/x-data-grid@6.16.1`.
131
+
132
+ #### `@mui/x-data-grid-premium@6.16.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
133
+
134
+ Same changes as in `@mui/x-data-grid-pro@6.16.1`.
135
+
136
+ ### Date Pickers
137
+
138
+ #### `@mui/x-date-pickers@6.16.1`
139
+
140
+ - [pickers] Avoid calendar layout shifting when changing views (#10541) @LukasTy
141
+ - [pickers] Fix clearable behavior when disabled (#10542) @noraleonte
142
+ - [pickers] Improve customization playground examples (#10544) @noraleonte
143
+
144
+ #### `@mui/x-date-pickers-pro@6.16.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
145
+
146
+ Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
147
+
148
+ - [DateRangePicker] Fix `InputProps` propagation in multi input (#10564) @alexfauquette
149
+
150
+ ### Charts / `@mui/x-charts@6.0.0-alpha.14`
151
+
152
+ - [charts] Display cursor pointer for pie chart only if `onClick` is provided (#10551) @giladappsforce
153
+ - [charts] Add `onClick` prop to PieChart (#10506) @giladappsforce
154
+ - [charts] Support `slots`/`slotProps` for the tooltip (#10515) @alexfauquette
155
+
156
+ ### Docs
157
+
158
+ - [docs] Add `DateRangePicker` example with a `Button` trigger (#10485) @LukasTy
159
+ - [docs] Add section about disabling columns panel (#10328) @MBilalShafi
160
+ - [docs] Add section about overriding slots to base concepts (#10421) @noraleonte
161
+ - [docs] Add "What's new" page listing all release announcements (#9727) @joserodolfofreitas
162
+ - [docs] Update RTL Support section of the grid localization docs (#10561) @MBilalShafi
163
+
164
+ ### Core
165
+
166
+ - [core] Fix casing consistency with legal and marketing content @oliviertassinari
167
+ - [core] Revert the link in the priority support ticket description (#10517) @michelengelen
168
+ - [CHANGELOG] Polish image @oliviertassinari
169
+
6
170
  ## 6.16.0
7
171
 
8
172
  _Sep 29, 2023_
@@ -13,7 +177,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
13
177
 
14
178
  The pickers and fields now have an out-of-the box implementation for clearing the field value. You can see the documentation for this behavior on the [Date Picker documentation](https://mui.com/x/react-date-pickers/date-picker/#clearing-the-value).
15
179
 
16
- <img width="380" alt="Clearable behavior" src="https://github.com/mui/mui-x/assets/72460825/e4a66169-83b5-4579-b9f6-6e15bb528411">
180
+ <img width="337" height="139" alt="Clearable behavior" src="https://github.com/mui/mui-x/assets/3165635/a5407cb6-0b8a-443c-b4b9-1f81ceb4d087">
17
181
 
18
182
  - 💫 Add Date Picker customization playground (#9581) @noraleonte
19
183
 
@@ -5,5 +5,12 @@ interface DataGridPremiumComponent {
5
5
  <R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
6
6
  propTypes?: any;
7
7
  }
8
+ /**
9
+ * Demos:
10
+ * - [DataGridPremium](https://mui.com/x/react-data-grid/demo/)
11
+ *
12
+ * API:
13
+ * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
14
+ */
8
15
  export declare const DataGridPremium: DataGridPremiumComponent;
9
16
  export {};
@@ -38,6 +38,13 @@ const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremiu
38
38
  }))
39
39
  });
40
40
  });
41
+ /**
42
+ * Demos:
43
+ * - [DataGridPremium](https://mui.com/x/react-data-grid/demo/)
44
+ *
45
+ * API:
46
+ * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
47
+ */
41
48
  export const DataGridPremium = /*#__PURE__*/React.memo(DataGridPremiumRaw);
42
49
  process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
43
50
  // ----------------------------- Warning --------------------------------
@@ -960,7 +967,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
960
967
  /**
961
968
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
962
969
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
963
- * @default: false
970
+ * @default false
964
971
  */
965
972
  unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
966
973
  clipboardExport: PropTypes.bool,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.16.0
2
+ * @mui/x-data-grid-premium v6.16.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -38,6 +38,13 @@ var DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremium(
38
38
  }))
39
39
  });
40
40
  });
41
+ /**
42
+ * Demos:
43
+ * - [DataGridPremium](https://mui.com/x/react-data-grid/demo/)
44
+ *
45
+ * API:
46
+ * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
47
+ */
41
48
  export var DataGridPremium = /*#__PURE__*/React.memo(DataGridPremiumRaw);
42
49
  process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
43
50
  // ----------------------------- Warning --------------------------------
@@ -960,7 +967,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
960
967
  /**
961
968
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
962
969
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
963
- * @default: false
970
+ * @default false
964
971
  */
965
972
  unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
966
973
  clipboardExport: PropTypes.bool,
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.16.0
2
+ * @mui/x-data-grid-premium v6.16.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5NTkzODQwMDAwMA==";
3
+ var releaseInfo = "MTY5NzA1MDgwMDAwMA==";
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
@@ -38,6 +38,13 @@ const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremiu
38
38
  }))
39
39
  });
40
40
  });
41
+ /**
42
+ * Demos:
43
+ * - [DataGridPremium](https://mui.com/x/react-data-grid/demo/)
44
+ *
45
+ * API:
46
+ * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
47
+ */
41
48
  export const DataGridPremium = /*#__PURE__*/React.memo(DataGridPremiumRaw);
42
49
  process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
43
50
  // ----------------------------- Warning --------------------------------
@@ -960,7 +967,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
960
967
  /**
961
968
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
962
969
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
963
- * @default: false
970
+ * @default false
964
971
  */
965
972
  unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
966
973
  clipboardExport: PropTypes.bool,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.16.0
2
+ * @mui/x-data-grid-premium v6.16.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5NTkzODQwMDAwMA==";
3
+ const releaseInfo = "MTY5NzA1MDgwMDAwMA==";
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
@@ -46,8 +46,14 @@ const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremiu
46
46
  }))
47
47
  });
48
48
  });
49
- const DataGridPremium = /*#__PURE__*/React.memo(DataGridPremiumRaw);
50
- exports.DataGridPremium = DataGridPremium;
49
+ /**
50
+ * Demos:
51
+ * - [DataGridPremium](https://mui.com/x/react-data-grid/demo/)
52
+ *
53
+ * API:
54
+ * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
55
+ */
56
+ const DataGridPremium = exports.DataGridPremium = /*#__PURE__*/React.memo(DataGridPremiumRaw);
51
57
  process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
52
58
  // ----------------------------- Warning --------------------------------
53
59
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -969,7 +975,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
969
975
  /**
970
976
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
971
977
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
972
- * @default: false
978
+ * @default false
973
979
  */
974
980
  unstable_ignoreValueFormatterDuringExport: _propTypes.default.oneOfType([_propTypes.default.shape({
975
981
  clipboardExport: _propTypes.default.bool,
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  /**
18
18
  * The default values of `DataGridPremiumPropsWithDefaultValue` to inject in the props of DataGridPremium.
19
19
  */
20
- const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = (0, _extends2.default)({}, _xDataGridPro.DATA_GRID_PRO_PROPS_DEFAULT_VALUES, {
20
+ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = (0, _extends2.default)({}, _xDataGridPro.DATA_GRID_PRO_PROPS_DEFAULT_VALUES, {
21
21
  unstable_cellSelection: false,
22
22
  disableAggregation: false,
23
23
  disableRowGrouping: false,
@@ -33,7 +33,6 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = (0, _extends2.default)({}, _xData
33
33
  return text.split(/\r\n|\n|\r/).map(row => row.split('\t'));
34
34
  }
35
35
  });
36
- exports.DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES;
37
36
  const defaultSlots = (0, _internals.uncapitalizeObjectKeys)(_dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS);
38
37
  const useDataGridPremiumProps = inProps => {
39
38
  const [components, componentsProps, themedProps] = (0, _internals.useProps)((0, _styles.useThemeProps)({
@@ -30,12 +30,11 @@ function GridColumnMenuGroupingItem(props) {
30
30
  }
31
31
  return null;
32
32
  }
33
- const GRID_COLUMN_MENU_SLOTS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOTS, {
33
+ const GRID_COLUMN_MENU_SLOTS_PREMIUM = exports.GRID_COLUMN_MENU_SLOTS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOTS, {
34
34
  columnMenuAggregationItem: _GridColumnMenuAggregationItem.GridColumnMenuAggregationItem,
35
35
  columnMenuGroupingItem: GridColumnMenuGroupingItem
36
36
  });
37
- exports.GRID_COLUMN_MENU_SLOTS_PREMIUM = GRID_COLUMN_MENU_SLOTS_PREMIUM;
38
- const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOT_PROPS, {
37
+ const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = exports.GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOT_PROPS, {
39
38
  columnMenuAggregationItem: {
40
39
  displayOrder: 23
41
40
  },
@@ -43,8 +42,7 @@ const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = (0, _extends2.default)({}, _xDataGri
43
42
  displayOrder: 27
44
43
  }
45
44
  });
46
- exports.GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM;
47
- const GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremiumColumnMenuSimple(props, ref) {
45
+ const GridPremiumColumnMenu = exports.GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremiumColumnMenuSimple(props, ref) {
48
46
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridGenericColumnMenu, (0, _extends2.default)({
49
47
  ref: ref
50
48
  }, props, {
@@ -52,7 +50,6 @@ const GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremium
52
50
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM
53
51
  }));
54
52
  });
55
- exports.GridPremiumColumnMenu = GridPremiumColumnMenu;
56
53
  process.env.NODE_ENV !== "production" ? GridPremiumColumnMenu.propTypes = {
57
54
  // ----------------------------- Warning --------------------------------
58
55
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -9,7 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _internals = require("@mui/x-data-grid-pro/internals");
10
10
  var _GridPremiumColumnMenu = require("../components/GridPremiumColumnMenu");
11
11
  var _material = _interopRequireDefault(require("../material"));
12
- const DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS = (0, _extends2.default)({}, _internals.DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS, _material.default, {
12
+ const DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS = exports.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS = (0, _extends2.default)({}, _internals.DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS, _material.default, {
13
13
  ColumnMenu: _GridPremiumColumnMenu.GridPremiumColumnMenu
14
- });
15
- exports.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
14
+ });
@@ -80,11 +80,10 @@ const sizeAgg = {
80
80
  },
81
81
  hasCellUnit: false
82
82
  };
83
- const GRID_AGGREGATION_FUNCTIONS = {
83
+ const GRID_AGGREGATION_FUNCTIONS = exports.GRID_AGGREGATION_FUNCTIONS = {
84
84
  sum: sumAgg,
85
85
  avg: avgAgg,
86
86
  min: minAgg,
87
87
  max: maxAgg,
88
88
  size: sizeAgg
89
- };
90
- exports.GRID_AGGREGATION_FUNCTIONS = GRID_AGGREGATION_FUNCTIONS;
89
+ };
@@ -13,12 +13,10 @@ const gridAggregationStateSelector = state => state.aggregation;
13
13
  * @category Aggregation
14
14
  */
15
15
  exports.gridAggregationStateSelector = gridAggregationStateSelector;
16
- const gridAggregationModelSelector = (0, _internals.createSelector)(gridAggregationStateSelector, aggregationState => aggregationState.model);
16
+ const gridAggregationModelSelector = exports.gridAggregationModelSelector = (0, _internals.createSelector)(gridAggregationStateSelector, aggregationState => aggregationState.model);
17
17
 
18
18
  /**
19
19
  * Get the aggregation results as a lookup.
20
20
  * @category Aggregation
21
21
  */
22
- exports.gridAggregationModelSelector = gridAggregationModelSelector;
23
- const gridAggregationLookupSelector = (0, _internals.createSelector)(gridAggregationStateSelector, aggregationState => aggregationState.lookup);
24
- exports.gridAggregationLookupSelector = gridAggregationLookupSelector;
22
+ const gridAggregationLookupSelector = exports.gridAggregationLookupSelector = (0, _internals.createSelector)(gridAggregationStateSelector, aggregationState => aggregationState.lookup);
@@ -10,8 +10,7 @@ var _utils = require("@mui/utils");
10
10
  var _internals = require("@mui/x-data-grid/internals");
11
11
  var _xDataGridPro = require("@mui/x-data-grid-pro");
12
12
  var _internals2 = require("@mui/x-data-grid-pro/internals");
13
- const GRID_AGGREGATION_ROOT_FOOTER_ROW_ID = 'auto-generated-group-footer-root';
14
- exports.GRID_AGGREGATION_ROOT_FOOTER_ROW_ID = GRID_AGGREGATION_ROOT_FOOTER_ROW_ID;
13
+ const GRID_AGGREGATION_ROOT_FOOTER_ROW_ID = exports.GRID_AGGREGATION_ROOT_FOOTER_ROW_ID = 'auto-generated-group-footer-root';
15
14
  const getAggregationFooterRowIdFromGroupId = groupId => {
16
15
  if (groupId == null) {
17
16
  return GRID_AGGREGATION_ROOT_FOOTER_ROW_ID;
@@ -7,7 +7,5 @@ exports.gridRowGroupingSanitizedModelSelector = exports.gridRowGroupingModelSele
7
7
  var _xDataGridPro = require("@mui/x-data-grid-pro");
8
8
  var _internals = require("@mui/x-data-grid/internals");
9
9
  const gridRowGroupingStateSelector = state => state.rowGrouping;
10
- const gridRowGroupingModelSelector = (0, _internals.createSelector)(gridRowGroupingStateSelector, rowGrouping => rowGrouping.model);
11
- exports.gridRowGroupingModelSelector = gridRowGroupingModelSelector;
12
- const gridRowGroupingSanitizedModelSelector = (0, _internals.createSelectorMemoized)(gridRowGroupingModelSelector, _xDataGridPro.gridColumnLookupSelector, (model, columnsLookup) => model.filter(field => !!columnsLookup[field] && columnsLookup[field].groupable));
13
- exports.gridRowGroupingSanitizedModelSelector = gridRowGroupingSanitizedModelSelector;
10
+ const gridRowGroupingModelSelector = exports.gridRowGroupingModelSelector = (0, _internals.createSelector)(gridRowGroupingStateSelector, rowGrouping => rowGrouping.model);
11
+ const gridRowGroupingSanitizedModelSelector = exports.gridRowGroupingSanitizedModelSelector = (0, _internals.createSelectorMemoized)(gridRowGroupingModelSelector, _xDataGridPro.gridColumnLookupSelector, (model, columnsLookup) => model.filter(field => !!columnsLookup[field] && columnsLookup[field].groupable));
@@ -8,10 +8,8 @@ exports.setStrategyAvailability = exports.mergeStateWithRowGroupingModel = expor
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _internals = require("@mui/x-data-grid-pro/internals");
10
10
  var _gridRowGroupingSelector = require("./gridRowGroupingSelector");
11
- const GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = '__row_group_by_columns_group__';
12
- exports.GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD;
13
- const ROW_GROUPING_STRATEGY = 'grouping-columns';
14
- exports.ROW_GROUPING_STRATEGY = ROW_GROUPING_STRATEGY;
11
+ const GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = exports.GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = '__row_group_by_columns_group__';
12
+ const ROW_GROUPING_STRATEGY = exports.ROW_GROUPING_STRATEGY = 'grouping-columns';
15
13
  const getRowGroupingFieldFromGroupingCriteria = groupingCriteria => {
16
14
  if (groupingCriteria === null) {
17
15
  return GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD;
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useGridApiContext = void 0;
7
7
  var _xDataGrid = require("@mui/x-data-grid");
8
- const useGridApiContext = _xDataGrid.useGridApiContext;
9
- exports.useGridApiContext = useGridApiContext;
8
+ const useGridApiContext = exports.useGridApiContext = _xDataGrid.useGridApiContext;
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useGridApiRef = void 0;
7
7
  var _xDataGrid = require("@mui/x-data-grid");
8
- const useGridApiRef = _xDataGrid.useGridApiRef;
9
- exports.useGridApiRef = useGridApiRef;
8
+ const useGridApiRef = exports.useGridApiRef = _xDataGrid.useGridApiRef;
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useGridPrivateApiContext = void 0;
7
7
  var _internals = require("@mui/x-data-grid/internals");
8
- const useGridPrivateApiContext = _internals.useGridPrivateApiContext;
9
- exports.useGridPrivateApiContext = useGridPrivateApiContext;
8
+ const useGridPrivateApiContext = exports.useGridPrivateApiContext = _internals.useGridPrivateApiContext;
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useGridRootProps = void 0;
7
7
  var _xDataGridPro = require("@mui/x-data-grid-pro");
8
- const useGridRootProps = _xDataGridPro.useGridRootProps;
9
- exports.useGridRootProps = useGridRootProps;
8
+ const useGridRootProps = exports.useGridRootProps = _xDataGridPro.useGridRootProps;
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.16.0
2
+ * @mui/x-data-grid-premium v6.16.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -9,17 +9,14 @@ var _utils = require("@mui/material/utils");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- const GridWorkspacesIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
12
+ const GridWorkspacesIcon = exports.GridWorkspacesIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
13
13
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
14
14
  d: "M6,13c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S8.2,13,6,13z M12,3C9.8,3,8,4.8,8,7s1.8,4,4,4s4-1.8,4-4S14.2,3,12,3z M18,13 c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S20.2,13,18,13z"
15
15
  })
16
16
  }), 'Workspaces');
17
- exports.GridWorkspacesIcon = GridWorkspacesIcon;
18
- const GridGroupWorkIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
17
+ const GridGroupWorkIcon = exports.GridGroupWorkIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
19
18
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
20
19
  }), 'GroupWork');
21
- exports.GridGroupWorkIcon = GridGroupWorkIcon;
22
- const GridFunctionsIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
20
+ const GridFunctionsIcon = exports.GridFunctionsIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
23
21
  d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"
24
- }), 'Functions');
25
- exports.GridFunctionsIcon = GridFunctionsIcon;
22
+ }), 'Functions');
@@ -13,5 +13,4 @@ const iconsSlots = {
13
13
  ColumnMenuAggregationIcon: _icons.GridFunctionsIcon
14
14
  };
15
15
  const materialSlots = (0, _extends2.default)({}, iconsSlots);
16
- var _default = materialSlots;
17
- exports.default = _default;
16
+ var _default = exports.default = materialSlots;
@@ -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 = "MTY5NTkzODQwMDAwMA==";
9
+ const releaseInfo = "MTY5NzA1MDgwMDAwMA==";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "6.16.0",
3
+ "version": "6.16.2",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -31,10 +31,10 @@
31
31
  "directory": "packages/grid/x-data-grid-premium"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.22.15",
35
- "@mui/utils": "^5.14.8",
36
- "@mui/x-data-grid": "6.16.0",
37
- "@mui/x-data-grid-pro": "6.16.0",
34
+ "@babel/runtime": "^7.23.1",
35
+ "@mui/utils": "^5.14.11",
36
+ "@mui/x-data-grid": "6.16.2",
37
+ "@mui/x-data-grid-pro": "6.16.2",
38
38
  "@mui/x-license-pro": "6.10.2",
39
39
  "@types/format-util": "^1.0.2",
40
40
  "clsx": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5NTkzODQwMDAwMA==";
3
+ const releaseInfo = "MTY5NzA1MDgwMDAwMA==";
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