@mui/x-data-grid-generator 6.18.3 → 6.18.5

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,88 @@
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.5
7
+
8
+ _Dec 14, 2023_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
13
+ - 🐞 Bugfixes
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@6.18.5`
18
+
19
+ - [l10n] Improve Swedish (sv-SE) locale (#11379) @fredrikcarlbom
20
+ - [l10n] Improve Urdu (ur-PK) locale for data grid (#11409) @MBilalShafi
21
+
22
+ #### `@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')
23
+
24
+ Same changes as in `@mui/x-data-grid@6.18.5`.
25
+
26
+ #### `@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')
27
+
28
+ Same changes as in `@mui/x-data-grid-pro@6.18.5`.
29
+
30
+ ### Date Pickers
31
+
32
+ #### `@mui/x-date-pickers@6.18.5`
33
+
34
+ - [pickers] Fix field types to avoid error on latest `@types/react` version (#11398) @LukasTy
35
+ - [pickers] Support name prop (#11380) @gitstart
36
+
37
+ #### `@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')
38
+
39
+ Same changes as in `@mui/x-date-pickers@6.18.5`, plus:
40
+
41
+ - [DateRangePicker] Fix `autoFocus` behavior (#11376) @kealjones-wk
42
+
43
+ ### Docs
44
+
45
+ - [docs] Respect GoT books (#11294) @janoma
46
+ - [test] Fix flaky screenshots (#11391) @cherniavskii
47
+
48
+ ## 6.18.4
49
+
50
+ _Dec 8, 2023_
51
+
52
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
53
+
54
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
55
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
56
+ - 🐞 Bugfixes
57
+
58
+ ### Data Grid
59
+
60
+ #### `@mui/x-data-grid@6.18.4`
61
+
62
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
63
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
64
+
65
+ #### `@mui/x-data-grid-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
66
+
67
+ Same changes as in `@mui/x-data-grid@6.18.4`.
68
+
69
+ #### `@mui/x-data-grid-premium@6.18.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
70
+
71
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
72
+
73
+ ### Date Pickers
74
+
75
+ #### `@mui/x-date-pickers@6.18.4`
76
+
77
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
78
+
79
+ #### `@mui/x-date-pickers-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
80
+
81
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
82
+
83
+ ### Docs
84
+
85
+ - [docs] Fix typo (#11323) @cadam11
86
+ - [docs] Add FAQ page (#11347) @noraleonte
87
+
6
88
  ## 6.18.3
7
89
 
8
90
  _Dec 4, 2023_
@@ -347,7 +429,7 @@ Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
347
429
 
348
430
  - [charts] Add reference links to area + bar chart components (#10652) @michelengelen
349
431
  - [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
350
- - [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
432
+ - [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
351
433
  - [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
352
434
  - [charts] Support animation on `BarChart` (#9926) @alexfauquette
353
435
  - [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
@@ -423,6 +505,7 @@ It adds line break support and avoids overlapping text in the legend.
423
505
  This comes with some breaking changes.
424
506
 
425
507
  - The DOM structure is modified. An intermediary `<tspan />` element has been added. This can impact how your style is applied.
508
+
426
509
  ```diff
427
510
  - <text>The label</text>
428
511
  + <text><tspan>The label</tspan></text>
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.3
2
+ * @mui/x-data-grid-generator v6.18.5
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.3
2
+ * @mui/x-data-grid-generator v6.18.5
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.3
2
+ * @mui/x-data-grid-generator v6.18.5
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.3
2
+ * @mui/x-data-grid-generator v6.18.5
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.3",
3
+ "version": "6.18.5",
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.3",
24
+ "@mui/x-data-grid-premium": "6.18.5",
25
25
  "chance": "^1.1.11",
26
26
  "clsx": "^2.0.0",
27
27
  "lru-cache": "^7.18.3"