@mui/x-data-grid-generator 6.16.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 CHANGED
@@ -3,6 +3,66 @@
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` [![pro](https://mui.com/r/x-pro-svg)](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` [![premium](https://mui.com/r/x-premium-svg)](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` [![pro](https://mui.com/r/x-pro-svg)](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
+
6
66
  ## 6.16.0
7
67
 
8
68
  _Sep 29, 2023_
@@ -13,7 +73,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
13
73
 
14
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).
15
75
 
16
- <img width="380" alt="Clearable behavior" src="https://github.com/mui/mui-x/assets/72460825/e4a66169-83b5-4579-b9f6-6e15bb528411">
76
+ <img width="337" height="139" alt="Clearable behavior" src="https://github.com/mui/mui-x/assets/3165635/a5407cb6-0b8a-443c-b4b9-1f81ceb4d087">
17
77
 
18
78
  - 💫 Add Date Picker customization playground (#9581) @noraleonte
19
79
 
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.16.0
2
+ * @mui/x-data-grid-generator v6.16.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.16.0
2
+ * @mui/x-data-grid-generator v6.16.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.16.0
2
+ * @mui/x-data-grid-generator v6.16.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.16.0
2
+ * @mui/x-data-grid-generator v6.16.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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.COLORS = COLORS;
10
- const STATUS_OPTIONS = ['Open', 'PartiallyFilled', 'Filled', 'Rejected'];
11
- exports.STATUS_OPTIONS = STATUS_OPTIONS;
12
- const TAXCODE_OPTIONS = ['BR', '1250L', '20G', 'BC45', 'IGN179'];
13
- exports.TAXCODE_OPTIONS = TAXCODE_OPTIONS;
14
- const RATE_TYPE_OPTIONS = ['Fixed', 'Floating'];
15
- exports.RATE_TYPE_OPTIONS = RATE_TYPE_OPTIONS;
16
- const CONTRACT_TYPE_OPTIONS = ['FP', 'TM', 'CR'];
17
- exports.CONTRACT_TYPE_OPTIONS = CONTRACT_TYPE_OPTIONS;
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.COUNTRY_ISO_OPTIONS = COUNTRY_ISO_OPTIONS;
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.16.0",
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.22.15",
23
- "@mui/base": "^5.0.0-beta.14",
24
- "@mui/x-data-grid-premium": "6.16.0",
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"