@mui/x-data-grid-pro 6.16.1 → 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,110 @@
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
+
6
110
  ## 6.16.1
7
111
 
8
112
  _Oct 6, 2023_
@@ -5,5 +5,12 @@ interface DataGridProComponent {
5
5
  <R extends GridValidRowModel = any>(props: DataGridProProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
6
6
  propTypes?: any;
7
7
  }
8
+ /**
9
+ * Demos:
10
+ * - [DataGridPro](https://mui.com/x/react-data-grid/demo/)
11
+ *
12
+ * API:
13
+ * - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
14
+ */
8
15
  export declare const DataGridPro: DataGridProComponent;
9
16
  export {};
@@ -39,6 +39,13 @@ const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProp
39
39
  }))
40
40
  });
41
41
  });
42
+ /**
43
+ * Demos:
44
+ * - [DataGridPro](https://mui.com/x/react-data-grid/demo/)
45
+ *
46
+ * API:
47
+ * - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
48
+ */
42
49
  export const DataGridPro = /*#__PURE__*/React.memo(DataGridProRaw);
43
50
  DataGridProRaw.propTypes = {
44
51
  // ----------------------------- Warning --------------------------------
@@ -878,7 +885,7 @@ DataGridProRaw.propTypes = {
878
885
  /**
879
886
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
880
887
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
881
- * @default: false
888
+ * @default false
882
889
  */
883
890
  unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
884
891
  clipboardExport: PropTypes.bool,
@@ -15,8 +15,9 @@ function findSkeletonRowsSection({
15
15
  let endIndex = visibleRowsSection.length - 1;
16
16
  let isSkeletonSectionFound = false;
17
17
  while (!isSkeletonSectionFound && firstRowIndex < lastRowIndex) {
18
- const isStartingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[startIndex].id).type === 'skeletonRow';
19
- const isEndingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[endIndex].id).type === 'skeletonRow';
18
+ var _apiRef$current$getRo, _apiRef$current$getRo2;
19
+ const isStartingWithASkeletonRow = ((_apiRef$current$getRo = apiRef.current.getRowNode(visibleRowsSection[startIndex].id)) == null ? void 0 : _apiRef$current$getRo.type) === 'skeletonRow';
20
+ const isEndingWithASkeletonRow = ((_apiRef$current$getRo2 = apiRef.current.getRowNode(visibleRowsSection[endIndex].id)) == null ? void 0 : _apiRef$current$getRo2.type) === 'skeletonRow';
20
21
  if (isStartingWithASkeletonRow && isEndingWithASkeletonRow) {
21
22
  isSkeletonSectionFound = true;
22
23
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.16.1
2
+ * @mui/x-data-grid-pro 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
@@ -39,6 +39,13 @@ var DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProps,
39
39
  }))
40
40
  });
41
41
  });
42
+ /**
43
+ * Demos:
44
+ * - [DataGridPro](https://mui.com/x/react-data-grid/demo/)
45
+ *
46
+ * API:
47
+ * - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
48
+ */
42
49
  export var DataGridPro = /*#__PURE__*/React.memo(DataGridProRaw);
43
50
  DataGridProRaw.propTypes = {
44
51
  // ----------------------------- Warning --------------------------------
@@ -878,7 +885,7 @@ DataGridProRaw.propTypes = {
878
885
  /**
879
886
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
880
887
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
881
- * @default: false
888
+ * @default false
882
889
  */
883
890
  unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
884
891
  clipboardExport: PropTypes.bool,
@@ -13,8 +13,9 @@ function findSkeletonRowsSection(_ref) {
13
13
  var endIndex = visibleRowsSection.length - 1;
14
14
  var isSkeletonSectionFound = false;
15
15
  while (!isSkeletonSectionFound && firstRowIndex < lastRowIndex) {
16
- var isStartingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[startIndex].id).type === 'skeletonRow';
17
- var isEndingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[endIndex].id).type === 'skeletonRow';
16
+ var _apiRef$current$getRo, _apiRef$current$getRo2;
17
+ var isStartingWithASkeletonRow = ((_apiRef$current$getRo = apiRef.current.getRowNode(visibleRowsSection[startIndex].id)) == null ? void 0 : _apiRef$current$getRo.type) === 'skeletonRow';
18
+ var isEndingWithASkeletonRow = ((_apiRef$current$getRo2 = apiRef.current.getRowNode(visibleRowsSection[endIndex].id)) == null ? void 0 : _apiRef$current$getRo2.type) === 'skeletonRow';
18
19
  if (isStartingWithASkeletonRow && isEndingWithASkeletonRow) {
19
20
  isSkeletonSectionFound = true;
20
21
  }
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.16.1
2
+ * @mui/x-data-grid-pro 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 = "MTY5NjU0MzIwMDAwMA==";
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
@@ -4,7 +4,7 @@ export interface GridGroupingColDefOverride<R extends GridValidRowModel = any> e
4
4
  * The field from which we want to apply the sorting and the filtering for the grouping column.
5
5
  * It is only useful when `props.rowGroupingColumnMode === "multiple"` to decide which grouping criteria should be used for sorting and filtering.
6
6
  * Do not have any effect when building the tree with the `props.treeData` feature.
7
- * @default: The sorting and filtering is applied based on the leaf field in any, otherwise based on top level grouping criteria.
7
+ * @default The sorting and filtering is applied based on the leaf field in any, otherwise based on top level grouping criteria.
8
8
  */
9
9
  mainGroupingCriteria?: string;
10
10
  /**
@@ -14,7 +14,7 @@ export interface GridGroupingColDefOverride<R extends GridValidRowModel = any> e
14
14
  leafField?: string;
15
15
  /**
16
16
  * If `true`, the grouping cells will not render the amount of descendants.
17
- * @default: false
17
+ * @default false
18
18
  */
19
19
  hideDescendantCount?: boolean;
20
20
  }
@@ -39,6 +39,13 @@ const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProp
39
39
  }))
40
40
  });
41
41
  });
42
+ /**
43
+ * Demos:
44
+ * - [DataGridPro](https://mui.com/x/react-data-grid/demo/)
45
+ *
46
+ * API:
47
+ * - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
48
+ */
42
49
  export const DataGridPro = /*#__PURE__*/React.memo(DataGridProRaw);
43
50
  DataGridProRaw.propTypes = {
44
51
  // ----------------------------- Warning --------------------------------
@@ -878,7 +885,7 @@ DataGridProRaw.propTypes = {
878
885
  /**
879
886
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
880
887
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
881
- * @default: false
888
+ * @default false
882
889
  */
883
890
  unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
884
891
  clipboardExport: PropTypes.bool,
@@ -15,8 +15,8 @@ function findSkeletonRowsSection({
15
15
  let endIndex = visibleRowsSection.length - 1;
16
16
  let isSkeletonSectionFound = false;
17
17
  while (!isSkeletonSectionFound && firstRowIndex < lastRowIndex) {
18
- const isStartingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[startIndex].id).type === 'skeletonRow';
19
- const isEndingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[endIndex].id).type === 'skeletonRow';
18
+ const isStartingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[startIndex].id)?.type === 'skeletonRow';
19
+ const isEndingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[endIndex].id)?.type === 'skeletonRow';
20
20
  if (isStartingWithASkeletonRow && isEndingWithASkeletonRow) {
21
21
  isSkeletonSectionFound = true;
22
22
  }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.16.1
2
+ * @mui/x-data-grid-pro 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 = "MTY5NjU0MzIwMDAwMA==";
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
@@ -47,6 +47,13 @@ const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProp
47
47
  }))
48
48
  });
49
49
  });
50
+ /**
51
+ * Demos:
52
+ * - [DataGridPro](https://mui.com/x/react-data-grid/demo/)
53
+ *
54
+ * API:
55
+ * - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
56
+ */
50
57
  const DataGridPro = exports.DataGridPro = /*#__PURE__*/React.memo(DataGridProRaw);
51
58
  DataGridProRaw.propTypes = {
52
59
  // ----------------------------- Warning --------------------------------
@@ -886,7 +893,7 @@ DataGridProRaw.propTypes = {
886
893
  /**
887
894
  * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
888
895
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
889
- * @default: false
896
+ * @default false
890
897
  */
891
898
  unstable_ignoreValueFormatterDuringExport: _propTypes.default.oneOfType([_propTypes.default.shape({
892
899
  clipboardExport: _propTypes.default.bool,
@@ -23,8 +23,8 @@ function findSkeletonRowsSection({
23
23
  let endIndex = visibleRowsSection.length - 1;
24
24
  let isSkeletonSectionFound = false;
25
25
  while (!isSkeletonSectionFound && firstRowIndex < lastRowIndex) {
26
- const isStartingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[startIndex].id).type === 'skeletonRow';
27
- const isEndingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[endIndex].id).type === 'skeletonRow';
26
+ const isStartingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[startIndex].id)?.type === 'skeletonRow';
27
+ const isEndingWithASkeletonRow = apiRef.current.getRowNode(visibleRowsSection[endIndex].id)?.type === 'skeletonRow';
28
28
  if (isStartingWithASkeletonRow && isEndingWithASkeletonRow) {
29
29
  isSkeletonSectionFound = true;
30
30
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.16.1
2
+ * @mui/x-data-grid-pro 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
@@ -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 = "MTY5NjU0MzIwMDAwMA==";
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-pro",
3
- "version": "6.16.1",
3
+ "version": "6.16.2",
4
4
  "description": "The Pro plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.23.1",
35
35
  "@mui/utils": "^5.14.11",
36
- "@mui/x-data-grid": "6.16.1",
36
+ "@mui/x-data-grid": "6.16.2",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "@types/format-util": "^1.0.2",
39
39
  "clsx": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5NjU0MzIwMDAwMA==";
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