@mui/x-data-grid-generator 6.5.0 → 6.7.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 CHANGED
@@ -3,6 +3,154 @@
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.7.0
7
+
8
+ _Jun 9, 2023_
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
+ - 🎁 Improve the default `format` prop value on the pickers.
13
+
14
+ Here are a few examples:
15
+
16
+ ```tsx
17
+ <TimePicker views={['hours', 'minutes', 'seconds']} ampm />
18
+ // Format before v6.7.0: `hh:mm aa`
19
+ // Format after v6.7.0: `hh:mm:ss aa`
20
+
21
+ <DatePicker views={['year']} />
22
+ // Format before v6.7.0: `MM/DD/YYYY`
23
+ // Format after v6.7.0: `YYYY`
24
+
25
+ <DateTimePicker views={['day', 'hours', 'minutes']} ampm />
26
+ // Format before v6.7.0: `MM/DD/YYYY hh:mm aa`
27
+ // Format after v6.7.0: `DD hh:mm aa`
28
+ ```
29
+
30
+ - 🌍 Add Romanian (ro-RO) locale on the pickers
31
+ - 🌍 Improve German (de-DE) locale on the pickers
32
+ - 🌍 Improve Czech (cs-CZ), German (de-DE) and Turkish (tr-TR) locales on the data grid
33
+ - 🚀 Performance improvements
34
+ - 🐞 Bugfixes
35
+ - 📚 Documentation improvements
36
+
37
+ ### `@mui/x-data-grid@v6.7.0` / `@mui/x-data-grid-pro@v6.7.0` / `@mui/x-data-grid-premium@v6.7.0`
38
+
39
+ #### Changes
40
+
41
+ - [DataGrid] Allow overflowing grid root element (#9179) @cherniavskii
42
+ - [DataGrid] Fix module augmentation error when using `@mui/lab` (#9235) @cherniavskii
43
+ - [DataGrid] Fix row with ids matching `Object` prototype (#9265) @romgrk
44
+ - [DataGrid] Fix `sortModel` and `filterModel` resetting when columns change (#9239) @alexgonch
45
+ - [DataGrid] Improve grouping performance for large datasets (#9200) @romgrk
46
+ - [DataGrid] Increase threshold to trigger memory leak warning (#9263) @m4theushw
47
+ - [DataGrid] Update data grid migration guide to include updated type (#9272) @MBilalShafi
48
+ - [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
49
+ - [DataGridPremium] Remove last line break on clipboard paste (#9163) @cherniavskii
50
+ - [l10n] Improve Czech (cs-CZ) locale (#9266) @MartinSkarpa
51
+ - [l10n] Improve German (de-DE) locale (#9259) @ximex
52
+ - [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan
53
+
54
+ ### `@mui/x-date-pickers@v6.7.0` / `@mui/x-date-pickers-pro@v6.7.0`
55
+
56
+ #### Changes
57
+
58
+ - [l10n] Add Romanian (ro-RO) locale (#9257) @ximex
59
+ - [l10n] Improve German (de-DE) locale (#9258) @ximex
60
+ - [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
61
+ - [pickers] Update `DateRangePickerDay` props JSDoc (#9191) @stevus
62
+
63
+ ### Docs
64
+
65
+ - [docs] Fix missing props on the `GridFilterPanel` API page (#9180) @cherniavskii
66
+ - [docs] Fix overview page typo (#9230) @LukasTy
67
+ - [docs] Fix version redirect (#9273) @alexfauquette
68
+
69
+ ### Core
70
+
71
+ - [core] Temporarily remove the Argos upload on the regression testing (#9267) @flaviendelangle
72
+ - [charts] Add clip-path to avoid charts overflow (#9012) @alexfauquette
73
+ - [charts] Add style customization on bar (#8935) @alexfauquette
74
+ - [charts] Enforce axis `min`/`max` over the `nice()` method (#9189) @alexfauquette
75
+ - [charts] Improve axis label and ticks label alignements (#9190) @alexfauquette
76
+ - [charts] Simplify the switch between responsive and fix dimensions (#9151) @alexfauquette
77
+
78
+ ## 6.6.0
79
+
80
+ _Jun 1, 2023_
81
+
82
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
83
+
84
+ - 🚀 New date time picking UI on [`DesktopDateTimePicker`](https://mui.com/x/react-date-pickers/date-time-picker/)
85
+
86
+ <img src="https://user-images.githubusercontent.com/4941090/242533399-2b106390-8158-4aba-9ca4-b621c6310977.gif" width="628" />
87
+
88
+ - 🚀 Performance improvements
89
+ - 🐞 Bugfixes
90
+ - 📚 Documentation improvements
91
+ - 🌍 Improve Dutch (nl-NL) and French (fr-FR) locales on the data grid
92
+ - 🌍 Add Vietnamese (vi-VN) locale on the pickers
93
+
94
+ ### `@mui/x-data-grid@v6.6.0` / `@mui/x-data-grid-pro@v6.6.0` / `@mui/x-data-grid-premium@v6.6.0`
95
+
96
+ #### Changes
97
+
98
+ - [DataGrid] Support data attributes (#8845) @romgrk
99
+ - [DataGrid] Avoid allocations in `hydrateRowsMeta` (#9121) @romgrk
100
+ - [DataGrid] Fix filter input select accessibility (#9018) @Jul13nT
101
+ - [DataGrid] Fix accessibility issues in panels and toolbar buttons (#8862) @romgrk
102
+ - [DataGrid] Fix `onCellEditStop` not invoked (#8857) @romgrk
103
+ - [DataGridPro] Fix auto-scroll when reordering columns (#8856) @m4theushw
104
+ - [DataGridPro] Fix row ID type casting in detail panels lookup (#8976) @minchaej
105
+ - [DataGridPro] Emit `columnWidthChange` event on `touchEnd` of column resize (#8669) @MBilalShafi
106
+ - [DataGridPro] Do not apply filters on `rowExpansionChange` (#8671) @cherniavskii
107
+ - [DataGridPro] Prevent click event on sorting after a resize (#9117) @romgrk
108
+ - [DataGridPremium] Improve Excel export interface (#9128) @TiagoPortfolio
109
+ - [l10n] Improve Dutch (nl-NL) locale (#9043) @thedutchruben
110
+ - [l10n] Improve French (fr-FR) locale (#9109) @Jul13nT
111
+
112
+ ### `@mui/x-date-pickers@v6.6.0` / `@mui/x-date-pickers-pro@v6.6.0`
113
+
114
+ #### Changes
115
+
116
+ - [fields] Allow to explicitly define the reference value and improve its default value (#9019) @flaviendelangle
117
+ - [l10n] Add Vietnamese (vi-VN) locale (#9099) @nhannt201
118
+ - [pickers] Add `DigitalClock` to `DesktopDateTimePicker` (#8946) @LukasTy
119
+ - [pickers] Add support for timezones on the adapters (#9068) @flaviendelangle
120
+ - [pickers] Fix `MonthCalendar` and `YearCalendar` disabled validation (#9149) @LukasTy
121
+ - [pickers] Fix bug when fields have a unique section (#9110) @alexfauquette
122
+ - [pickers] Fix focus jumping on Safari (#9072) @LukasTy
123
+ - [pickers] Use the locale start of the week in `getWeekArray` (#9176) @flaviendelangle
124
+
125
+ ### Docs
126
+
127
+ - [docs] Add single input range picker demo (#9159) @LukasTy
128
+ - [docs] Align `DateCalendar` demo views with labels (#9152) @LukasTy
129
+ - [docs] Clarify the peer dependency with React (#9067) @oliviertassinari
130
+ - [docs] Fix Norwegian locale typo (#9168) @LukasTy
131
+ - [docs] Fix column menu item demo (#9071) @MBilalShafi
132
+ - [docs] Improve localization table progress bars (#9033) @noraleonte
133
+ - [docs] Smooth performance animation (#8986) @oliviertassinari
134
+ - [docs] Use responsive time and date time pickers and the views sections (#9127) @flaviendelangle
135
+ - [docs] Reduce layout shift in grid demo (#9132) @oliviertassinari
136
+ - [docs] Fix tree data children lazy-loading demo (#8840) @yaredtsy
137
+ - [docs] Improve filtering docs discoverability (#9074) @MBilalShafi
138
+
139
+ ### Core
140
+
141
+ - [core] Allow string literals as keys in `localesText` (#9045) @MBilalShafi
142
+ - [core] Fix `randomInt` producing values exceeding `max` value (#9086) @cherniavskii
143
+ - [core] Fix flaky test on `dateWithTimezone` adapter test (#9129) @flaviendelangle
144
+ - [core] Lock `@types/node` on v18 (#9107) @LukasTy
145
+ - [core] Remove `cross-fetch` dependency (#9108) @LukasTy
146
+ - [core] Remove `createDetectElementResize()` replaced with `ResizeObserver` (#9015) @oliviertassinari
147
+ - [core] Upgrade monorepo (#9027) @m4theushw
148
+ - [core] Upgrade monorepo (#9106) @LukasTy
149
+ - [charts] Fix proptypes (#9125) @LukasTy
150
+ - [charts] Generate the charts proptypes (#9010) @alexfauquette
151
+ - [charts] Manage series stacking (#8888) @alexfauquette
152
+ - [license] List side effects in the license package (#9092) @cherniavskii
153
+
6
154
  ## v6.5.0
7
155
 
8
156
  _May 19, 2023_
@@ -102,7 +250,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
102
250
 
103
251
  ### Docs
104
252
 
105
- - [docs] Fix date pickers typo in the docs (#8939) @richbustos
253
+ - [docs] Fix date pickers typo in the docs (#8939) @richbustos
106
254
  - [docs] Fix master detail demo (#8894) @m4theushw
107
255
  - [docs] Fix typo in clipboard docs (#8971) @MBilalShafi
108
256
  - [docs] Reduce list of dependencies in Codesandbox/Stackblitz demos (#8535) @cherniavskii
@@ -4440,7 +4588,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
4440
4588
 
4441
4589
  - 👔 **Excel export**. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
4442
4590
 
4443
- - 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/#quick-filter).
4591
+ - 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/quick-filter/).
4444
4592
 
4445
4593
  <img src="https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png" width="724">
4446
4594
 
@@ -69,7 +69,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
69
69
  disableReorder?: boolean | undefined;
70
70
  disableExport?: boolean | undefined;
71
71
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
72
- renderHeaderFilter?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
72
+ renderHeaderFilter?: ((params: import("@mui/x-data-grid-pro").GridHeaderFilterCellProps) => React.ReactNode) | undefined;
73
73
  aggregable?: boolean | undefined;
74
74
  availableAggregationFunctions?: string[] | undefined;
75
75
  groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
@@ -116,7 +116,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
116
116
  disableReorder?: boolean | undefined;
117
117
  disableExport?: boolean | undefined;
118
118
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
119
- renderHeaderFilter?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
119
+ renderHeaderFilter?: ((params: import("@mui/x-data-grid-pro").GridHeaderFilterCellProps) => React.ReactNode) | undefined;
120
120
  aggregable?: boolean | undefined;
121
121
  availableAggregationFunctions?: string[] | undefined;
122
122
  groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
@@ -165,7 +165,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
165
165
  disableReorder?: boolean | undefined;
166
166
  disableExport?: boolean | undefined;
167
167
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
168
- renderHeaderFilter?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
168
+ renderHeaderFilter?: ((params: import("@mui/x-data-grid-pro").GridHeaderFilterCellProps) => React.ReactNode) | undefined;
169
169
  aggregable?: boolean | undefined;
170
170
  availableAggregationFunctions?: string[] | undefined;
171
171
  groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.5.0
2
+ * @mui/x-data-grid-generator v6.7.0
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.5.0
2
+ * @mui/x-data-grid-generator v6.7.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -79,7 +79,10 @@ export var random = function random(min, max) {
79
79
  });
80
80
  };
81
81
  export var randomInt = function randomInt(min, max) {
82
- return Math.floor(random(0, 1) * (max - min + 1) + min);
82
+ return chance.integer({
83
+ min: min,
84
+ max: max
85
+ });
83
86
  };
84
87
  export var randomPrice = function randomPrice() {
85
88
  var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.5.0
2
+ * @mui/x-data-grid-generator v6.7.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -71,7 +71,10 @@ export const random = (min, max) => chance.floating({
71
71
  min,
72
72
  max
73
73
  });
74
- export const randomInt = (min, max) => Math.floor(random(0, 1) * (max - min + 1) + min);
74
+ export const randomInt = (min, max) => chance.integer({
75
+ min,
76
+ max
77
+ });
75
78
  export const randomPrice = (min = 0, max = 100000) => Number(random(min, max).toFixed(2));
76
79
  export const randomRate = () => random(0, 1);
77
80
  export const randomDate = (start, end) => new Date(start.getTime() + chance.floating({
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.5.0
2
+ * @mui/x-data-grid-generator v6.7.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -79,7 +79,10 @@ const random = (min, max) => chance.floating({
79
79
  max
80
80
  });
81
81
  exports.random = random;
82
- const randomInt = (min, max) => Math.floor(random(0, 1) * (max - min + 1) + min);
82
+ const randomInt = (min, max) => chance.integer({
83
+ min,
84
+ max
85
+ });
83
86
  exports.randomInt = randomInt;
84
87
  const randomPrice = (min = 0, max = 100000) => Number(random(min, max).toFixed(2));
85
88
  exports.randomPrice = randomPrice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "6.5.0",
3
+ "version": "6.7.0",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.21.0",
23
- "@mui/base": "^5.0.0-beta.0",
24
- "@mui/x-data-grid-premium": "6.5.0",
23
+ "@mui/base": "^5.0.0-beta.2",
24
+ "@mui/x-data-grid-premium": "6.7.0",
25
25
  "chance": "^1.1.11",
26
26
  "clsx": "^1.2.1",
27
27
  "lru-cache": "^7.18.3"
@@ -29,7 +29,7 @@
29
29
  "peerDependencies": {
30
30
  "@mui/icons-material": "^5.4.1",
31
31
  "@mui/material": "^5.4.1",
32
- "react": "^17.0.2 || ^18.0.0"
32
+ "react": "^17.0.0 || ^18.0.0"
33
33
  },
34
34
  "setupFiles": [
35
35
  "<rootDir>/src/setupTests.js"
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
3
  export declare function renderAvatar(params: GridRenderCellParams<{
4
4
  name: string;
5
5
  color: string;
6
- }, any, any>): "" | JSX.Element;
6
+ }, any, any>): "" | React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
3
  import { CountryIsoOption } from '../services/static-data';
4
- export declare function renderCountry(params: GridRenderCellParams<CountryIsoOption, any, any>): "" | JSX.Element | null;
4
+ export declare function renderCountry(params: GridRenderCellParams<CountryIsoOption, any, any>): "" | React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
3
  import { CountryIsoOption } from '../services/static-data';
4
- export declare function renderEditCountry(params: GridRenderEditCellParams<CountryIsoOption>): JSX.Element;
4
+ export declare function renderEditCountry(params: GridRenderEditCellParams<CountryIsoOption>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditCurrency(params: GridRenderEditCellParams<any, string>): JSX.Element;
3
+ export declare function renderEditCurrency(params: GridRenderEditCellParams<any, string>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditIncoterm(params: GridRenderEditCellParams<any, string | null>): JSX.Element;
3
+ export declare function renderEditIncoterm(params: GridRenderEditCellParams<any, string | null>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditProgress(params: GridRenderEditCellParams<any, number>): JSX.Element;
3
+ export declare function renderEditProgress(params: GridRenderEditCellParams<any, number>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditRating(params: GridRenderEditCellParams<any, number>): JSX.Element;
3
+ export declare function renderEditRating(params: GridRenderEditCellParams<any, number>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditStatus(params: GridRenderEditCellParams<any, string>): JSX.Element;
3
+ export declare function renderEditStatus(params: GridRenderEditCellParams<any, string>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEmail(params: GridRenderCellParams<any, string, any>): JSX.Element;
3
+ export declare function renderEmail(params: GridRenderCellParams<any, string, any>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderIncoterm(params: GridRenderCellParams<any, string | null, any>): JSX.Element;
3
+ export declare function renderIncoterm(params: GridRenderCellParams<any, string | null, any>): React.JSX.Element;
@@ -6,5 +6,5 @@ interface DemoLinkProps {
6
6
  tabIndex: number;
7
7
  }
8
8
  export declare const DemoLink: React.NamedExoticComponent<DemoLinkProps>;
9
- export declare function renderLink(params: GridRenderCellParams<any, string, any>): "" | JSX.Element;
9
+ export declare function renderLink(params: GridRenderCellParams<any, string, any>): "" | React.JSX.Element;
10
10
  export {};
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderPnl(params: GridRenderCellParams<any, number, any>): "" | JSX.Element;
3
+ export declare function renderPnl(params: GridRenderCellParams<any, number, any>): "" | React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderProgress(params: GridRenderCellParams<any, number, any>): "" | JSX.Element | null;
3
+ export declare function renderProgress(params: GridRenderCellParams<any, number, any>): "" | React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderRating(params: GridRenderCellParams<any, number, any>): "" | JSX.Element | null;
3
+ export declare function renderRating(params: GridRenderCellParams<any, number, any>): "" | React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderStatus(params: GridRenderCellParams<any, string>): "" | JSX.Element;
3
+ export declare function renderStatus(params: GridRenderCellParams<any, string>): "" | React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderTotalPrice(params: GridRenderCellParams<any, number>): "" | JSX.Element | null;
3
+ export declare function renderTotalPrice(params: GridRenderCellParams<any, number>): "" | React.JSX.Element | null;
@@ -72,7 +72,10 @@ export const random = (min, max) => chance.floating({
72
72
  min,
73
73
  max
74
74
  });
75
- export const randomInt = (min, max) => Math.floor(random(0, 1) * (max - min + 1) + min);
75
+ export const randomInt = (min, max) => chance.integer({
76
+ min,
77
+ max
78
+ });
76
79
  export const randomPrice = (min = 0, max = 100000) => Number(random(min, max).toFixed(2));
77
80
  export const randomRate = () => random(0, 1);
78
81
  export const randomDate = (start, end) => new Date(start.getTime() + chance.floating({