@mui/x-data-grid-generator 7.9.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 +74 -0
- package/hooks/useDemoData.js +1 -1
- package/hooks/useMockServer.js +1 -1
- package/hooks/useQuery.d.ts +7 -7
- package/index.js +1 -1
- package/modern/hooks/useDemoData.js +1 -1
- package/modern/hooks/useMockServer.js +1 -1
- package/modern/index.js +1 -1
- package/node/hooks/useDemoData.js +2 -2
- package/node/hooks/useMockServer.js +2 -2
- package/node/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,80 @@
|
|
|
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` [](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` [](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` [](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
|
+
|
|
6
80
|
## 7.9.0
|
|
7
81
|
|
|
8
82
|
_Jul 5, 2024_
|
package/hooks/useDemoData.js
CHANGED
|
@@ -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';
|
package/hooks/useMockServer.js
CHANGED
|
@@ -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/hooks/useQuery.d.ts
CHANGED
|
@@ -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,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
|
@@ -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 =
|
|
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.
|
|
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 =
|
|
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.
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-generator",
|
|
3
|
-
"version": "7.
|
|
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": "^
|
|
31
|
-
"@mui/x-data-grid-premium": "7.
|
|
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",
|