@mui/x-data-grid-generator 7.8.0 → 7.10.0

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,146 @@
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.10.0
7
+
8
+ _Jul 11, 2024_
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
+ - 🎁 Add selectors to support showing child row count in footer in the Data Grid
13
+ - ✨ New APIs for retrieving current item tree and item's children IDs in the Tree View
14
+ - 🌍 Improve Spanish (es-ES) locale on the Data Grid
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.10.0`
23
+
24
+ - [DataGrid] Add selectors to support showing child row count in footer (#13725) @KenanYusuf
25
+ - [DataGrid] Fix incorrect panels position when using a toolbar (#13474) @oukunan
26
+ - [DataGrid] Set default variant to `'standard'` in `GridFilterInputMultipleValue` (#13129) @tarunrajput
27
+ - [DataGrid] Use `readonly` on more array props (#13331) @pcorpet
28
+ - [l10n] Improve Spanish (es-ES) locale (#13772) @joserealdev
29
+
30
+ #### `@mui/x-data-grid-pro@7.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@7.10.0`, plus:
33
+
34
+ - [DataGridPro] Keep bottom pinned row at the bottom (#13313) @romgrk
35
+
36
+ #### `@mui/x-data-grid-premium@7.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
37
+
38
+ Same changes as in `@mui/x-data-grid-pro@7.10.0`.
39
+
40
+ ### Date and Time Pickers
41
+
42
+ #### `@mui/x-date-pickers@7.10.0`
43
+
44
+ - [fields] Prevent infinite recursion when ensuring selection (#13779) @LukasTy
45
+ - [fields] Unify fields behavior regardless of the `readOnly` flag (#13688) @LukasTy
46
+
47
+ #### `@mui/x-date-pickers-pro@7.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
48
+
49
+ Same changes as in `@mui/x-date-pickers@7.10.0`, plus:
50
+
51
+ - [DateRangePicker] Fix `calendarHeader` slot props propagation (#13780) @LukasTy
52
+ - [DateTimeRangePicker] Resolve `format` from given `views` (#13743) @LukasTy
53
+
54
+ ### Charts
55
+
56
+ #### `@mui/x-charts@7.10.0`
57
+
58
+ - [charts] Fix displaying area of a `LineChart` when using the `log` scale (#13791) @alexfauquette
59
+ - [charts] Use correct click handler prop on pie chart `OnSeriesItemClick` documentation (#13761) @tonyhallett
60
+
61
+ ### Tree View
62
+
63
+ #### `@mui/x-tree-view@7.10.0`
64
+
65
+ - [TreeView] Add `getItemTree` and `getItemOrderedChildrenIds` methods to the public API (#13804) @flaviendelangle
66
+ - [TreeView] Add utility function to check if an optional plugin is present (#13788) @flaviendelangle
67
+
68
+ ### Docs
69
+
70
+ - [docs] Add missing default `loading` prop value (#13604) @oliviertassinari
71
+ - [docs] Add the `DateTimeRangePicker` to the "Commonly used components" demo (#13775) @flaviendelangle
72
+ - [docs] Fix Pickers customization playground overflow (#13742) @LukasTy
73
+ - [docs] Move Pickers dialog guidelines to accessibility page (#13778) @arthurbalduini
74
+
75
+ ### Core
76
+
77
+ - [core] Sort `DATA_GRID_PROPS_DEFAULT_VALUES` alphabetically (#13783) @oliviertassinari
78
+ - [test] Fix split infinitive use in tests @oliviertassinari
79
+
80
+ ## 7.9.0
81
+
82
+ _Jul 5, 2024_
83
+
84
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
85
+
86
+ - 🔄 Add loading overlay variants, including a skeleton loader option to the Data Grid component. See [Loading overlay docs](https://mui.com/x/react-data-grid/overlays/#loading-overlay) for more details.
87
+ - 🌳 Add `selectItem` and `getItemDOMElement` methods to the TreeView component public API
88
+ - ⛏️ Make the `usePickersTranslations` hook public in the pickers component
89
+ - 🐞 Bugfixes
90
+
91
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
92
+
93
+ ### Data Grid
94
+
95
+ #### `@mui/x-data-grid@7.9.0`
96
+
97
+ - [DataGrid] Add skeleton loading overlay support (#13293) @KenanYusuf
98
+ - [DataGrid] Fix pagination when `pagination={undefined}` (#13349) @sai6855
99
+
100
+ #### `@mui/x-data-grid-pro@7.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
101
+
102
+ Same changes as in `@mui/x-data-grid@7.9.0`.
103
+
104
+ #### `@mui/x-data-grid-premium@7.9.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
105
+
106
+ Same changes as in `@mui/x-data-grid-pro@7.9.0`.
107
+
108
+ ### Date and Time Pickers
109
+
110
+ #### `@mui/x-date-pickers@7.9.0`
111
+
112
+ - [pickers] Make the `usePickersTranslations` hook public (#13657) @flaviendelangle
113
+
114
+ #### `@mui/x-date-pickers-pro@7.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
115
+
116
+ Same changes as in `@mui/x-date-pickers@7.9.0`.
117
+
118
+ ### Charts
119
+
120
+ #### `@mui/x-charts@7.9.0`
121
+
122
+ - [charts] Add Heatmap (unreleased) (#13209) @alexfauquette
123
+ - [charts] Add initial `Zoom&Pan` to the Pro charts (unreleased) (#13405) @JCQuintas
124
+ - [charts] Fix Axis Highlight on horizontal bar charts regression (#13717) @JCQuintas
125
+ - [charts] Improve charts interaction for mobile users (#13692) @JCQuintas
126
+ - [charts] Add documentation on how to disable the tooltip on charts (#13724) @JCQuintas
127
+
128
+ ### Tree View
129
+
130
+ #### `@mui/x-tree-view@7.9.0`
131
+
132
+ - [TreeView] Add `selectItem` and `getItemDOMElement` methods to the public API (#13485) @flaviendelangle
133
+
134
+ ### Docs
135
+
136
+ - [docs] Fix custom "no results overlay" demo in dark mode (#13715) @KenanYusuf
137
+
138
+ ### Core
139
+
140
+ - [core] Add `react_next` workflow in CircleCI (#13360) @cherniavskii
141
+ - [core] Create a new package to share utils across X packages (#13528) @flaviendelangle
142
+ - [core] Fix dependency setup (#13684) @LukasTy
143
+ - [core] Remove `jscodeshift-add-imports` package (#13720) @LukasTy
144
+ - [code-infra] Cleanup monorepo and `@mui/docs` usage (#13713) @LukasTy
145
+
6
146
  ## 7.8.0
7
147
 
8
148
  _Jun 28, 2024_
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import LRUCache from 'lru-cache';
3
+ import { LRUCache } from 'lru-cache';
4
4
  import { getRealGridData } from '../services/real-data-service';
5
5
  import { getCommodityColumns } from '../columns/commodities.columns';
6
6
  import { getEmployeeColumns } from '../columns/employees.columns';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import LRUCache from 'lru-cache';
3
+ import { LRUCache } from 'lru-cache';
4
4
  import { getGridDefaultColumnTypes } from '@mui/x-data-grid-pro';
5
5
  import { getColumnsFromOptions, extrapolateSeed, deepFreeze } from './useDemoData';
6
6
  import { getRealGridData } from '../services/real-data-service';
@@ -14,7 +14,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
14
14
  maxWidth?: number;
15
15
  hideable?: boolean;
16
16
  sortable?: boolean;
17
- sortingOrder?: import("@mui/x-data-grid-pro").GridSortDirection[];
17
+ sortingOrder?: readonly import("@mui/x-data-grid-pro").GridSortDirection[];
18
18
  resizable?: boolean;
19
19
  editable?: boolean;
20
20
  groupable?: boolean;
@@ -38,7 +38,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
38
38
  hideSortIcons?: boolean;
39
39
  disableColumnMenu?: boolean;
40
40
  filterable?: boolean;
41
- filterOperators?: import("@mui/x-data-grid-pro").GridFilterOperator<any, any, any>[] | undefined;
41
+ filterOperators?: readonly import("@mui/x-data-grid-pro").GridFilterOperator<any, any, any>[] | undefined;
42
42
  getApplyQuickFilterFn?: import("@mui/x-data-grid-pro").GetApplyQuickFilterFn<any, any> | undefined;
43
43
  disableReorder?: boolean;
44
44
  disableExport?: boolean;
@@ -53,7 +53,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
53
53
  hide?: boolean;
54
54
  } | {
55
55
  type: "actions";
56
- getActions: (params: import("@mui/x-data-grid-pro").GridRowParams<any>) => React.ReactElement<import("@mui/x-data-grid-pro").GridActionsCellItemProps>[];
56
+ getActions: (params: import("@mui/x-data-grid-pro").GridRowParams<any>) => readonly React.ReactElement<import("@mui/x-data-grid-pro").GridActionsCellItemProps>[];
57
57
  field: string;
58
58
  headerName?: string;
59
59
  description?: string;
@@ -63,7 +63,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
63
63
  maxWidth?: number;
64
64
  hideable?: boolean;
65
65
  sortable?: boolean;
66
- sortingOrder?: import("@mui/x-data-grid-pro").GridSortDirection[];
66
+ sortingOrder?: readonly import("@mui/x-data-grid-pro").GridSortDirection[];
67
67
  resizable?: boolean;
68
68
  editable?: boolean;
69
69
  groupable?: boolean;
@@ -86,7 +86,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
86
86
  hideSortIcons?: boolean;
87
87
  disableColumnMenu?: boolean;
88
88
  filterable?: boolean;
89
- filterOperators?: import("@mui/x-data-grid-pro").GridFilterOperator<any, any, any>[] | undefined;
89
+ filterOperators?: readonly import("@mui/x-data-grid-pro").GridFilterOperator<any, any, any>[] | undefined;
90
90
  getApplyQuickFilterFn?: import("@mui/x-data-grid-pro").GetApplyQuickFilterFn<any, any> | undefined;
91
91
  disableReorder?: boolean;
92
92
  disableExport?: boolean;
@@ -113,7 +113,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
113
113
  maxWidth?: number;
114
114
  hideable?: boolean;
115
115
  sortable?: boolean;
116
- sortingOrder?: import("@mui/x-data-grid-pro").GridSortDirection[];
116
+ sortingOrder?: readonly import("@mui/x-data-grid-pro").GridSortDirection[];
117
117
  resizable?: boolean;
118
118
  editable?: boolean;
119
119
  groupable?: boolean;
@@ -136,7 +136,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
136
136
  hideSortIcons?: boolean;
137
137
  disableColumnMenu?: boolean;
138
138
  filterable?: boolean;
139
- filterOperators?: import("@mui/x-data-grid-pro").GridFilterOperator<any, any, any>[] | undefined;
139
+ filterOperators?: readonly import("@mui/x-data-grid-pro").GridFilterOperator<any, any, any>[] | undefined;
140
140
  getApplyQuickFilterFn?: import("@mui/x-data-grid-pro").GetApplyQuickFilterFn<any, any> | undefined;
141
141
  disableReorder?: boolean;
142
142
  disableExport?: boolean;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.8.0
2
+ * @mui/x-data-grid-generator v7.10.0
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 _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import LRUCache from 'lru-cache';
3
+ import { LRUCache } from 'lru-cache';
4
4
  import { getRealGridData } from '../services/real-data-service';
5
5
  import { getCommodityColumns } from '../columns/commodities.columns';
6
6
  import { getEmployeeColumns } from '../columns/employees.columns';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import LRUCache from 'lru-cache';
3
+ import { LRUCache } from 'lru-cache';
4
4
  import { getGridDefaultColumnTypes } from '@mui/x-data-grid-pro';
5
5
  import { getColumnsFromOptions, extrapolateSeed, deepFreeze } from './useDemoData';
6
6
  import { getRealGridData } from '../services/real-data-service';
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.8.0
2
+ * @mui/x-data-grid-generator v7.10.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -9,7 +9,7 @@ exports.extrapolateSeed = extrapolateSeed;
9
9
  exports.useDemoData = exports.getInitialState = exports.getColumnsFromOptions = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
- var _lruCache = _interopRequireDefault(require("lru-cache"));
12
+ var _lruCache = require("lru-cache");
13
13
  var _realDataService = require("../services/real-data-service");
14
14
  var _commodities = require("../columns/commodities.columns");
15
15
  var _employees = require("../columns/employees.columns");
@@ -17,7 +17,7 @@ var _asyncWorker = _interopRequireDefault(require("../services/asyncWorker"));
17
17
  var _treeDataGenerator = require("../services/tree-data-generator");
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
- const dataCache = new _lruCache.default({
20
+ const dataCache = new _lruCache.LRUCache({
21
21
  max: 10,
22
22
  ttl: 60 * 5 * 1e3 // 5 minutes
23
23
  });
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.useMockServer = exports.BASE_URL = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var React = _interopRequireWildcard(require("react"));
10
- var _lruCache = _interopRequireDefault(require("lru-cache"));
10
+ var _lruCache = require("lru-cache");
11
11
  var _xDataGridPro = require("@mui/x-data-grid-pro");
12
12
  var _useDemoData = require("./useDemoData");
13
13
  var _realDataService = require("../services/real-data-service");
@@ -16,7 +16,7 @@ var _serverUtils = require("./serverUtils");
16
16
  var _services = require("../services");
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- const dataCache = new _lruCache.default({
19
+ const dataCache = new _lruCache.LRUCache({
20
20
  max: 10,
21
21
  ttl: 60 * 5 * 1e3 // 5 minutes
22
22
  });
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.8.0
2
+ * @mui/x-data-grid-generator v7.10.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "7.8.0",
3
+ "version": "7.10.0",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -27,8 +27,8 @@
27
27
  "@mui/base": "^5.0.0-beta.40",
28
28
  "chance": "^1.1.11",
29
29
  "clsx": "^2.1.1",
30
- "lru-cache": "^7.18.3",
31
- "@mui/x-data-grid-premium": "7.8.0"
30
+ "lru-cache": "^10.3.0",
31
+ "@mui/x-data-grid-premium": "7.10.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@mui/icons-material": "^5.4.1",