@mui/x-data-grid-generator 6.15.0 → 6.16.1
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 +144 -0
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/index.js +1 -1
- package/node/renderer/renderLink.js +1 -2
- package/node/services/basic-data-service.js +1 -2
- package/node/services/random-generator.js +1 -2
- package/node/services/static-data.js +11 -22
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,150 @@
|
|
|
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.1
|
|
7
|
+
|
|
8
|
+
_Oct 6, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🥧 Support interaction with pie chart
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
- 📚 Documentation improvements
|
|
15
|
+
|
|
16
|
+
### Data Grid
|
|
17
|
+
|
|
18
|
+
#### `@mui/x-data-grid@6.16.1`
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Add a new demo with sparklines (#9228) @flaviendelangle
|
|
21
|
+
- [DataGrid] Fix autosize missing a few pixels (#10471) @romgrk
|
|
22
|
+
- [DataGrid] Make `disableColumnSelector` demo idempotent (#10548) @MBilalShafi
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-data-grid-pro@6.16.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
25
|
+
|
|
26
|
+
Same changes as in `@mui/x-data-grid@6.16.1`.
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid-premium@6.16.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
29
|
+
|
|
30
|
+
Same changes as in `@mui/x-data-grid-pro@6.16.1`.
|
|
31
|
+
|
|
32
|
+
### Date Pickers
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-date-pickers@6.16.1`
|
|
35
|
+
|
|
36
|
+
- [pickers] Avoid calendar layout shifting when changing views (#10541) @LukasTy
|
|
37
|
+
- [pickers] Fix clearable behavior when disabled (#10542) @noraleonte
|
|
38
|
+
- [pickers] Improve customization playground examples (#10544) @noraleonte
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-date-pickers-pro@6.16.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
|
|
43
|
+
|
|
44
|
+
- [DateRangePicker] Fix `InputProps` propagation in multi input (#10564) @alexfauquette
|
|
45
|
+
|
|
46
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.14`
|
|
47
|
+
|
|
48
|
+
- [charts] Display cursor pointer for pie chart only if `onClick` is provided (#10551) @giladappsforce
|
|
49
|
+
- [charts] Add `onClick` prop to PieChart (#10506) @giladappsforce
|
|
50
|
+
- [charts] Support `slots`/`slotProps` for the tooltip (#10515) @alexfauquette
|
|
51
|
+
|
|
52
|
+
### Docs
|
|
53
|
+
|
|
54
|
+
- [docs] Add `DateRangePicker` example with a `Button` trigger (#10485) @LukasTy
|
|
55
|
+
- [docs] Add section about disabling columns panel (#10328) @MBilalShafi
|
|
56
|
+
- [docs] Add section about overriding slots to base concepts (#10421) @noraleonte
|
|
57
|
+
- [docs] Add "What's new" page listing all release announcements (#9727) @joserodolfofreitas
|
|
58
|
+
- [docs] Update RTL Support section of the grid localization docs (#10561) @MBilalShafi
|
|
59
|
+
|
|
60
|
+
### Core
|
|
61
|
+
|
|
62
|
+
- [core] Fix casing consistency with legal and marketing content @oliviertassinari
|
|
63
|
+
- [core] Revert the link in the priority support ticket description (#10517) @michelengelen
|
|
64
|
+
- [CHANGELOG] Polish image @oliviertassinari
|
|
65
|
+
|
|
66
|
+
## 6.16.0
|
|
67
|
+
|
|
68
|
+
_Sep 29, 2023_
|
|
69
|
+
|
|
70
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
71
|
+
|
|
72
|
+
- 🎁 Add a clearable behavior to all the single input pickers and fields (#9095) @noraleonte
|
|
73
|
+
|
|
74
|
+
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).
|
|
75
|
+
|
|
76
|
+
<img width="337" height="139" alt="Clearable behavior" src="https://github.com/mui/mui-x/assets/3165635/a5407cb6-0b8a-443c-b4b9-1f81ceb4d087">
|
|
77
|
+
|
|
78
|
+
- 💫 Add Date Picker customization playground (#9581) @noraleonte
|
|
79
|
+
|
|
80
|
+
You can play around with style customization options on the [Date Picker documentation](https://mui.com/x/react-date-pickers/date-picker/#customization).
|
|
81
|
+
|
|
82
|
+
We are thrilled to hear your feedback about this functionality!
|
|
83
|
+
|
|
84
|
+
- 🚀 Fix header filters menu auto closing on render (#10483) @MBilalShafi
|
|
85
|
+
- 🎯 Fix column headers scroll when theme scoping is used (#10437) @cherniavskii
|
|
86
|
+
- 🌍 Improve Russian (ru-RU) locale on the data grid
|
|
87
|
+
- 🐞 Bugfixes
|
|
88
|
+
- 📚 Documentation improvements
|
|
89
|
+
|
|
90
|
+
### Data Grid
|
|
91
|
+
|
|
92
|
+
#### `@mui/x-data-grid@6.16.0`
|
|
93
|
+
|
|
94
|
+
- [DataGrid] Fix column headers scroll when theme scoping is used (#10437) @cherniavskii
|
|
95
|
+
- [DataGrid] Rename `global` to `globalScope` due to Jest issue (#10470) @romgrk
|
|
96
|
+
- [l10n] Improve Russian (ru-RU) locale (#10464 and #10407) @NKodos
|
|
97
|
+
|
|
98
|
+
#### `@mui/x-data-grid-pro@6.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
99
|
+
|
|
100
|
+
Same changes as in `@mui/x-data-grid@6.16.0`, plus:
|
|
101
|
+
|
|
102
|
+
- [DataGridPro] Fix header filters menu auto closing on render (#10483) @MBilalShafi
|
|
103
|
+
|
|
104
|
+
#### `@mui/x-data-grid-premium@6.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
105
|
+
|
|
106
|
+
Same changes as in `@mui/x-data-grid-pro@6.16.0`.
|
|
107
|
+
|
|
108
|
+
### Date Pickers
|
|
109
|
+
|
|
110
|
+
#### `@mui/x-date-pickers@6.16.0`
|
|
111
|
+
|
|
112
|
+
- [pickers] Add warning to `shouldDisableDate` validation (#10502) @michelengelen
|
|
113
|
+
- [pickers] Implement `clearable` field behavior (#9095) @noraleonte
|
|
114
|
+
- [pickers] Refactor `dayOfWeekFormatter` (#10345) @michelengelen
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-date-pickers-pro@6.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
117
|
+
|
|
118
|
+
Same changes as in `@mui/x-date-pickers@6.16.0`.
|
|
119
|
+
|
|
120
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.13`
|
|
121
|
+
|
|
122
|
+
- [charts] Share upfront future Pro features (#10465) @oliviertassinari
|
|
123
|
+
|
|
124
|
+
### Tree View / `@mui/x-tree-view@6.0.0-beta.0`
|
|
125
|
+
|
|
126
|
+
- [TreeView] Do not try to focus a collapsed node when re-focusing the TreeView (#10422) @flaviendelangle
|
|
127
|
+
- [TreeView] Fix the typing of the `Multiple` generic (#10478) @flaviendelangle
|
|
128
|
+
|
|
129
|
+
### Docs
|
|
130
|
+
|
|
131
|
+
- [docs] Correct the typo in data grid api docs (#10477) @MBilalShafi
|
|
132
|
+
- [docs] Add customization playground (#9581) @noraleonte
|
|
133
|
+
- [docs] Fix Tree View product ID (#10428) @oliviertassinari
|
|
134
|
+
- [docs] Fix demo crashing when all rows are deleted (#10438) @cherniavskii
|
|
135
|
+
- [docs] Fix mobile scrollbar column resize (#10455) @oliviertassinari
|
|
136
|
+
- [docs] Fix usage of `GridRenderCellParams` interface (#10435) @cherniavskii
|
|
137
|
+
|
|
138
|
+
### Core
|
|
139
|
+
|
|
140
|
+
- [core] Fix typo in header data grid quick filter @oliviertassinari
|
|
141
|
+
- [core] Group D3 renovate PRs (#10480) @flaviendelangle
|
|
142
|
+
- [core] Link the priority support page (#10495) @michelengelen
|
|
143
|
+
- [core] Move the pickers describes to the test utils folder (#10490) @flaviendelangle
|
|
144
|
+
- [core] Priority Support casing normalization @oliviertassinari
|
|
145
|
+
- [core] Remove automated DataGrid performance tests (#10414) @romgrk
|
|
146
|
+
- [core] Sync `prism-okaidia.css` with docs-infra @oliviertassinari
|
|
147
|
+
- [core] Update issue actions & templates (#10375) @romgrk
|
|
148
|
+
- [core] Update release guide (#10468) @DanailH
|
|
149
|
+
|
|
6
150
|
## 6.15.0
|
|
7
151
|
|
|
8
152
|
_Sep 22, 2023_
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
package/modern/index.js
CHANGED
package/node/index.js
CHANGED
|
@@ -16,7 +16,7 @@ const Link = (0, _styles.styled)('a')({
|
|
|
16
16
|
overflow: 'hidden',
|
|
17
17
|
color: 'inherit'
|
|
18
18
|
});
|
|
19
|
-
const DemoLink = /*#__PURE__*/React.memo(function DemoLink(props) {
|
|
19
|
+
const DemoLink = exports.DemoLink = /*#__PURE__*/React.memo(function DemoLink(props) {
|
|
20
20
|
const handleClick = event => {
|
|
21
21
|
event.preventDefault();
|
|
22
22
|
event.stopPropagation();
|
|
@@ -28,7 +28,6 @@ const DemoLink = /*#__PURE__*/React.memo(function DemoLink(props) {
|
|
|
28
28
|
children: props.children
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
exports.DemoLink = DemoLink;
|
|
32
31
|
function renderLink(params) {
|
|
33
32
|
if (params.value == null) {
|
|
34
33
|
return '';
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getBasicGridData = exports.currencyPairs = void 0;
|
|
7
|
-
const currencyPairs = ['USDGBP', 'USDEUR', 'GBPEUR', 'JPYUSD', 'MXNUSD', 'BTCUSD', 'USDCAD', 'EURJPY', 'EURUSD', 'EURCHF', 'USDCHF', 'EURGBP', 'GBPUSD', 'AUDCAD', 'NZDUSD', 'GBPCHF', 'AUDUSD', 'GBPJPY', 'USDJPY', 'CHFJPY', 'EURCAD', 'AUDJPY', 'EURAUD', 'AUDNZD', 'CADEUR', 'CHFMXN', 'ETHUSD', 'BCHUSD', 'ETHBTC', 'XRPUSD', 'XRPBTC', 'USDLTC', 'USDXRP', 'USDDSH', 'USDBCH', 'JPYEUR', 'JPYUSD', 'JPYGBP', 'JPYCAD', 'JPYCHF', 'JPYAUD', 'JPYNZD', 'JPYSGD', 'JPYNOK', 'JPYRUB', 'JPYSEK', 'JPYTRY', 'JPYZAR', 'JPYHKD', 'JPYCNH', 'JPYDKK', 'JPYMXN', 'JPYPLN', 'JPYXAG', 'JPYXAU', 'JPYBTC', 'JPYETH', 'JPYLTC', 'JPYXRP', 'JPYDSH', 'JPYBCH', 'GBPEUR', 'GBPRUB', 'GBPTRY'];
|
|
8
|
-
exports.currencyPairs = currencyPairs;
|
|
7
|
+
const currencyPairs = exports.currencyPairs = ['USDGBP', 'USDEUR', 'GBPEUR', 'JPYUSD', 'MXNUSD', 'BTCUSD', 'USDCAD', 'EURJPY', 'EURUSD', 'EURCHF', 'USDCHF', 'EURGBP', 'GBPUSD', 'AUDCAD', 'NZDUSD', 'GBPCHF', 'AUDUSD', 'GBPJPY', 'USDJPY', 'CHFJPY', 'EURCAD', 'AUDJPY', 'EURAUD', 'AUDNZD', 'CADEUR', 'CHFMXN', 'ETHUSD', 'BCHUSD', 'ETHBTC', 'XRPUSD', 'XRPBTC', 'USDLTC', 'USDXRP', 'USDDSH', 'USDBCH', 'JPYEUR', 'JPYUSD', 'JPYGBP', 'JPYCAD', 'JPYCHF', 'JPYAUD', 'JPYNZD', 'JPYSGD', 'JPYNOK', 'JPYRUB', 'JPYSEK', 'JPYTRY', 'JPYZAR', 'JPYHKD', 'JPYCNH', 'JPYDKK', 'JPYMXN', 'JPYPLN', 'JPYXAG', 'JPYXAU', 'JPYBTC', 'JPYETH', 'JPYLTC', 'JPYXRP', 'JPYDSH', 'JPYBCH', 'GBPEUR', 'GBPRUB', 'GBPTRY'];
|
|
9
8
|
const getBasicGridData = (rowLength, colLength) => {
|
|
10
9
|
const data = [];
|
|
11
10
|
const pricesColLength = colLength - 2;
|
|
@@ -162,8 +162,7 @@ const randomJobTitle = () => chance.profession();
|
|
|
162
162
|
exports.randomJobTitle = randomJobTitle;
|
|
163
163
|
const randomRating = () => randomInt(1, 5);
|
|
164
164
|
exports.randomRating = randomRating;
|
|
165
|
-
const randomName = uniquenessHandler(() => chance.name());
|
|
166
|
-
exports.randomName = randomName;
|
|
165
|
+
const randomName = exports.randomName = uniquenessHandler(() => chance.name());
|
|
167
166
|
const generateFilledQuantity = data => Number((data.quantity * randomRate()).toFixed()) / data.quantity;
|
|
168
167
|
exports.generateFilledQuantity = generateFilledQuantity;
|
|
169
168
|
const generateIsFilled = data => data.quantity === data.filledQuantity;
|
|
@@ -5,25 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.TAXCODE_OPTIONS = exports.STATUS_OPTIONS = exports.RATE_TYPE_OPTIONS = exports.INCOTERM_OPTIONS = exports.CURRENCY_OPTIONS = exports.COUNTRY_OPTIONS = exports.COUNTRY_ISO_OPTIONS_SORTED = exports.COUNTRY_ISO_OPTIONS = exports.CONTRACT_TYPE_OPTIONS = exports.COMMODITY_OPTIONS = exports.COLORS = void 0;
|
|
7
7
|
var _colors = require("@mui/material/colors");
|
|
8
|
-
const COLORS = [_colors.pink[500], _colors.blue[500], _colors.orange[500], _colors.red[500], _colors.green[500], _colors.lightBlue[500], _colors.purple[500]];
|
|
9
|
-
exports.
|
|
10
|
-
const
|
|
11
|
-
exports.
|
|
12
|
-
const
|
|
13
|
-
exports.
|
|
14
|
-
const
|
|
15
|
-
exports.
|
|
16
|
-
const
|
|
17
|
-
exports.
|
|
18
|
-
const INCOTERM_OPTIONS = ['EXW (Ex Works)', 'FAS (Free Alongside Ship)', 'FCA (Free Carrier)', 'CPT (Carriage Paid To)', 'DAP (Delivered at Place)', 'DPU (Delivered at Place Unloaded)', 'DDP (Delivered Duty Paid)'];
|
|
19
|
-
exports.INCOTERM_OPTIONS = INCOTERM_OPTIONS;
|
|
20
|
-
const COMMODITY_OPTIONS = ['Corn', 'Oats', 'Rough Rice', 'Soybeans', 'Rapeseed', 'Soybeans', 'Soybean Meal', 'Soybean Oil', 'Wheat', 'Milk', 'Cocoa', 'Coffee C', 'Cotton No.2', 'Sugar No.11', 'Sugar No.14', 'Frozen Concentrated Orange Juice', 'Adzuki bean', 'Robusta coffee'];
|
|
21
|
-
exports.COMMODITY_OPTIONS = COMMODITY_OPTIONS;
|
|
22
|
-
const CURRENCY_OPTIONS = ['USD', 'GBP', 'JPY', 'EUR', 'BRL', 'MXN', 'AUD', 'CAD', 'NZD', 'ARS', 'CHF', 'THB', 'HKD', 'TRY'];
|
|
23
|
-
exports.CURRENCY_OPTIONS = CURRENCY_OPTIONS;
|
|
24
|
-
const COUNTRY_OPTIONS = ['United States', 'United Kingdom', 'Japan', 'France', 'Brazil', 'Mexico', 'Australia', 'Canada', 'New Zealand', 'Argentina', 'Switzerland', 'Thailand', 'Hong Kong', 'Turkey'];
|
|
25
|
-
exports.COUNTRY_OPTIONS = COUNTRY_OPTIONS;
|
|
26
|
-
const COUNTRY_ISO_OPTIONS = [{
|
|
8
|
+
const COLORS = exports.COLORS = [_colors.pink[500], _colors.blue[500], _colors.orange[500], _colors.red[500], _colors.green[500], _colors.lightBlue[500], _colors.purple[500]];
|
|
9
|
+
const STATUS_OPTIONS = exports.STATUS_OPTIONS = ['Open', 'PartiallyFilled', 'Filled', 'Rejected'];
|
|
10
|
+
const TAXCODE_OPTIONS = exports.TAXCODE_OPTIONS = ['BR', '1250L', '20G', 'BC45', 'IGN179'];
|
|
11
|
+
const RATE_TYPE_OPTIONS = exports.RATE_TYPE_OPTIONS = ['Fixed', 'Floating'];
|
|
12
|
+
const CONTRACT_TYPE_OPTIONS = exports.CONTRACT_TYPE_OPTIONS = ['FP', 'TM', 'CR'];
|
|
13
|
+
const INCOTERM_OPTIONS = exports.INCOTERM_OPTIONS = ['EXW (Ex Works)', 'FAS (Free Alongside Ship)', 'FCA (Free Carrier)', 'CPT (Carriage Paid To)', 'DAP (Delivered at Place)', 'DPU (Delivered at Place Unloaded)', 'DDP (Delivered Duty Paid)'];
|
|
14
|
+
const COMMODITY_OPTIONS = exports.COMMODITY_OPTIONS = ['Corn', 'Oats', 'Rough Rice', 'Soybeans', 'Rapeseed', 'Soybeans', 'Soybean Meal', 'Soybean Oil', 'Wheat', 'Milk', 'Cocoa', 'Coffee C', 'Cotton No.2', 'Sugar No.11', 'Sugar No.14', 'Frozen Concentrated Orange Juice', 'Adzuki bean', 'Robusta coffee'];
|
|
15
|
+
const CURRENCY_OPTIONS = exports.CURRENCY_OPTIONS = ['USD', 'GBP', 'JPY', 'EUR', 'BRL', 'MXN', 'AUD', 'CAD', 'NZD', 'ARS', 'CHF', 'THB', 'HKD', 'TRY'];
|
|
16
|
+
const COUNTRY_OPTIONS = exports.COUNTRY_OPTIONS = ['United States', 'United Kingdom', 'Japan', 'France', 'Brazil', 'Mexico', 'Australia', 'Canada', 'New Zealand', 'Argentina', 'Switzerland', 'Thailand', 'Hong Kong', 'Turkey'];
|
|
17
|
+
const COUNTRY_ISO_OPTIONS = exports.COUNTRY_ISO_OPTIONS = [{
|
|
27
18
|
value: 'AD',
|
|
28
19
|
code: 'AD',
|
|
29
20
|
label: 'Andorra',
|
|
@@ -1270,6 +1261,4 @@ const COUNTRY_ISO_OPTIONS = [{
|
|
|
1270
1261
|
label: 'Zimbabwe',
|
|
1271
1262
|
phone: '263'
|
|
1272
1263
|
}];
|
|
1273
|
-
exports.
|
|
1274
|
-
const COUNTRY_ISO_OPTIONS_SORTED = [...COUNTRY_ISO_OPTIONS].sort((v1, v2) => v1.label.localeCompare(v2.label));
|
|
1275
|
-
exports.COUNTRY_ISO_OPTIONS_SORTED = COUNTRY_ISO_OPTIONS_SORTED;
|
|
1264
|
+
const COUNTRY_ISO_OPTIONS_SORTED = exports.COUNTRY_ISO_OPTIONS_SORTED = [...COUNTRY_ISO_OPTIONS].sort((v1, v2) => v1.label.localeCompare(v2.label));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-generator",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.1",
|
|
4
4
|
"description": "Generate fake data for demo purposes only.",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"directory": "packages/grid/x-data-grid-generator"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babel/runtime": "^7.
|
|
23
|
-
"@mui/base": "^5.0.0-beta.
|
|
24
|
-
"@mui/x-data-grid-premium": "6.
|
|
22
|
+
"@babel/runtime": "^7.23.1",
|
|
23
|
+
"@mui/base": "^5.0.0-beta.17",
|
|
24
|
+
"@mui/x-data-grid-premium": "6.16.1",
|
|
25
25
|
"chance": "^1.1.11",
|
|
26
26
|
"clsx": "^2.0.0",
|
|
27
27
|
"lru-cache": "^7.18.3"
|