@mui/x-data-grid-generator 6.18.4 → 6.18.6

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,97 @@
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.18.6
7
+
8
+ _Dec 22, 2023_
9
+
10
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Russian (ru-RU) locale (#11429) @wensiet
13
+ - 🐞 Bugfixes
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@6.18.6`
18
+
19
+ - [DataGrid] Fix typos in the JSDoc (#11475) @flaviendelangle
20
+ - [l10n] Improve Russian (ru-RU) locale (#11429) @wensiet
21
+
22
+ #### `@mui/x-data-grid-pro@6.18.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
23
+
24
+ Same changes as in `@mui/x-data-grid@6.18.6`.
25
+
26
+ #### `@mui/x-data-grid-premium@6.18.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
27
+
28
+ Same changes as in `@mui/x-data-grid-pro@6.18.6`.
29
+
30
+ ### Date Pickers
31
+
32
+ #### `@mui/x-date-pickers@6.18.6`
33
+
34
+ - [fields] Fix section pasting (#11467) @LukasTy
35
+
36
+ #### `@mui/x-date-pickers-pro@6.18.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-date-pickers@6.18.6`.
39
+
40
+ ### Charts / `@mui/x-charts@6.18.6`
41
+
42
+ - [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
43
+ - [charts] Make error message more explicit (#11457) @alexfauquette
44
+ - [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
45
+ - [charts] Improve dataset typing (#11372) @alexfauquette
46
+ - [charts] Fix size overflow (#11385) @alexfauquette
47
+
48
+ ### Docs
49
+
50
+ - [docs] Document false default values for boolean props (#11489) @cherniavskii
51
+ - [docs] Improve Pickers `name` prop examples (#11442) @LukasTy
52
+ - [docs] Limit `date-fns` package to v2 in codesandbox (#11478) @LukasTy
53
+ - [test] Reload the page if its blank and there are no links to the remaining tests (#11471) @cherniavskii
54
+
55
+ ## 6.18.5
56
+
57
+ _Dec 14, 2023_
58
+
59
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
60
+
61
+ - 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
62
+ - 🐞 Bugfixes
63
+
64
+ ### Data Grid
65
+
66
+ #### `@mui/x-data-grid@6.18.5`
67
+
68
+ - [l10n] Improve Swedish (sv-SE) locale (#11379) @fredrikcarlbom
69
+ - [l10n] Improve Urdu (ur-PK) locale for data grid (#11409) @MBilalShafi
70
+
71
+ #### `@mui/x-data-grid-pro@6.18.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
72
+
73
+ Same changes as in `@mui/x-data-grid@6.18.5`.
74
+
75
+ #### `@mui/x-data-grid-premium@6.18.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
76
+
77
+ Same changes as in `@mui/x-data-grid-pro@6.18.5`.
78
+
79
+ ### Date Pickers
80
+
81
+ #### `@mui/x-date-pickers@6.18.5`
82
+
83
+ - [pickers] Fix field types to avoid error on latest `@types/react` version (#11398) @LukasTy
84
+ - [pickers] Support name prop (#11380) @gitstart
85
+
86
+ #### `@mui/x-date-pickers-pro@6.18.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
87
+
88
+ Same changes as in `@mui/x-date-pickers@6.18.5`, plus:
89
+
90
+ - [DateRangePicker] Fix `autoFocus` behavior (#11376) @kealjones-wk
91
+
92
+ ### Docs
93
+
94
+ - [docs] Respect GoT books (#11294) @janoma
95
+ - [test] Fix flaky screenshots (#11391) @cherniavskii
96
+
6
97
  ## 6.18.4
7
98
 
8
99
  _Dec 8, 2023_
package/hooks/useQuery.js CHANGED
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import { getGridDefaultColumnTypes, GridLogicOperator } from '@mui/x-data-grid-pro';
4
4
  import { isDeepEqual } from '@mui/x-data-grid/internals';
5
5
  import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoData';
6
+ import { randomInt } from '../services/random-generator';
6
7
  const simplifiedValueGetter = (field, colDef) => row => {
7
8
  var _colDef$valueGetter;
8
9
  const params = {
@@ -98,7 +99,7 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
98
99
  if (maxDelay < minDelay) {
99
100
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
100
101
  }
101
- const delay = Math.random() * (maxDelay - minDelay) + minDelay;
102
+ const delay = randomInt(minDelay, maxDelay);
102
103
  const {
103
104
  cursor,
104
105
  page = 0,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.4
2
+ * @mui/x-data-grid-generator v6.18.6
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -7,6 +7,7 @@ import * as React from 'react';
7
7
  import { getGridDefaultColumnTypes, GridLogicOperator } from '@mui/x-data-grid-pro';
8
8
  import { isDeepEqual } from '@mui/x-data-grid/internals';
9
9
  import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoData';
10
+ import { randomInt } from '../services/random-generator';
10
11
  var simplifiedValueGetter = function simplifiedValueGetter(field, colDef) {
11
12
  return function (row) {
12
13
  var _colDef$valueGetter;
@@ -118,7 +119,7 @@ export var loadServerRows = function loadServerRows(rows, queryOptions, serverOp
118
119
  if (maxDelay < minDelay) {
119
120
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
120
121
  }
121
- var delay = Math.random() * (maxDelay - minDelay) + minDelay;
122
+ var delay = randomInt(minDelay, maxDelay);
122
123
  var cursor = queryOptions.cursor,
123
124
  _queryOptions$page = queryOptions.page,
124
125
  page = _queryOptions$page === void 0 ? 0 : _queryOptions$page,
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.4
2
+ * @mui/x-data-grid-generator v6.18.6
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import { getGridDefaultColumnTypes, GridLogicOperator } from '@mui/x-data-grid-pro';
4
4
  import { isDeepEqual } from '@mui/x-data-grid/internals';
5
5
  import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoData';
6
+ import { randomInt } from '../services/random-generator';
6
7
  const simplifiedValueGetter = (field, colDef) => row => {
7
8
  const params = {
8
9
  id: row.id,
@@ -96,7 +97,7 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
96
97
  if (maxDelay < minDelay) {
97
98
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
98
99
  }
99
- const delay = Math.random() * (maxDelay - minDelay) + minDelay;
100
+ const delay = randomInt(minDelay, maxDelay);
100
101
  const {
101
102
  cursor,
102
103
  page = 0,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.4
2
+ * @mui/x-data-grid-generator v6.18.6
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _xDataGridPro = require("@mui/x-data-grid-pro");
11
11
  var _internals = require("@mui/x-data-grid/internals");
12
12
  var _useDemoData = require("./useDemoData");
13
+ var _randomGenerator = require("../services/random-generator");
13
14
  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); }
14
15
  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 && Object.prototype.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; }
15
16
  const simplifiedValueGetter = (field, colDef) => row => {
@@ -105,7 +106,7 @@ const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDefaultCol
105
106
  if (maxDelay < minDelay) {
106
107
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
107
108
  }
108
- const delay = Math.random() * (maxDelay - minDelay) + minDelay;
109
+ const delay = (0, _randomGenerator.randomInt)(minDelay, maxDelay);
109
110
  const {
110
111
  cursor,
111
112
  page = 0,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.4
2
+ * @mui/x-data-grid-generator v6.18.6
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": "6.18.4",
3
+ "version": "6.18.6",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.23.2",
23
23
  "@mui/base": "^5.0.0-beta.22",
24
- "@mui/x-data-grid-premium": "6.18.4",
24
+ "@mui/x-data-grid-premium": "6.18.6",
25
25
  "chance": "^1.1.11",
26
26
  "clsx": "^2.0.0",
27
27
  "lru-cache": "^7.18.3"