@mui/x-data-grid-generator 6.0.0-alpha.9 → 6.0.0-beta.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.
@@ -1,13 +1,13 @@
1
1
  import { GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
2
2
  import { GridColDefGenerator } from '../services/gridColDefGenerator';
3
3
  import { AddPathToDemoDataOptions, DemoTreeDataValue } from '../services/tree-data-generator';
4
- export declare type DemoDataReturnType = {
4
+ export type DemoDataReturnType = {
5
5
  data: DemoTreeDataValue;
6
6
  loading: boolean;
7
7
  setRowLength: (count: number) => void;
8
8
  loadNewData: () => void;
9
9
  };
10
- declare type DataSet = 'Commodity' | 'Employee';
10
+ type DataSet = 'Commodity' | 'Employee';
11
11
  export interface UseDemoDataOptions {
12
12
  dataSet: DataSet;
13
13
  rowLength: number;
@@ -1,5 +1,5 @@
1
- import { GridColumns } from '@mui/x-data-grid-premium';
2
- export declare type Movie = {
1
+ import { GridColDef } from '@mui/x-data-grid-premium';
2
+ export type Movie = {
3
3
  id: number;
4
4
  title: string;
5
5
  gross: number;
@@ -15,5 +15,5 @@ export declare type Movie = {
15
15
  };
16
16
  export declare const useMovieData: () => {
17
17
  rows: Movie[];
18
- columns: GridColumns<any>;
18
+ columns: GridColDef<any, any, any>[];
19
19
  };
@@ -20,7 +20,7 @@ interface DefaultServerOptions {
20
20
  maxDelay: number;
21
21
  useCursorPagination?: boolean;
22
22
  }
23
- declare type ServerOptions = Partial<DefaultServerOptions>;
23
+ type ServerOptions = Partial<DefaultServerOptions>;
24
24
  export interface QueryOptions {
25
25
  cursor?: GridRowId;
26
26
  page?: number;
@@ -52,30 +52,30 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
52
52
  pinnable?: boolean | undefined;
53
53
  sortComparator?: import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined;
54
54
  type?: string | undefined;
55
- valueOptions?: import("@mui/x-data-grid-pro").ValueOptions[] | ((params: import("@mui/x-data-grid-pro").GridValueOptionsParams<any>) => import("@mui/x-data-grid-pro").ValueOptions[]) | undefined;
55
+ valueOptions?: import("@mui/x-data-grid-pro").ValueOptions[] | ((params: import("@mui/x-data-grid-pro").GridValueOptionsParams<import("@mui/x-data-grid-pro").GridValidRowModel>) => import("@mui/x-data-grid-pro").ValueOptions[]) | undefined;
56
56
  align?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
57
- valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
58
- valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | undefined;
57
+ valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
58
+ valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<import("@mui/x-data-grid-pro").GridValidRowModel, any>) => import("@mui/x-data-grid-pro").GridValidRowModel) | undefined;
59
59
  valueFormatter?: ((params: import("@mui/x-data-grid-pro").GridValueFormatterParams<any>) => any) | undefined;
60
- valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
61
- cellClassName?: import("@mui/x-data-grid-pro").GridCellClassNamePropType | undefined;
62
- renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
63
- renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
60
+ valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
61
+ cellClassName?: string | import("@mui/x-data-grid-pro").GridCellClassFn<import("@mui/x-data-grid-pro").GridValidRowModel, any> | undefined;
62
+ renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
63
+ renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
64
64
  preProcessEditCellProps?: ((params: import("@mui/x-data-grid-pro").GridPreProcessEditCellProps<any, any>) => import("@mui/x-data-grid-pro").GridEditCellProps<any> | Promise<import("@mui/x-data-grid-pro").GridEditCellProps<any>>) | undefined;
65
65
  headerClassName?: import("@mui/x-data-grid-pro").GridColumnHeaderClassNamePropType | undefined;
66
- renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
66
+ renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any>) => React.ReactNode) | undefined;
67
67
  headerAlign?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
68
68
  hideSortIcons?: boolean | undefined;
69
69
  disableColumnMenu?: boolean | undefined;
70
70
  filterable?: boolean | undefined;
71
- filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
72
- getApplyQuickFilterFn?: ((value: any, colDef: import("@mui/x-data-grid-pro").GridStateColDef<any, any, any>, apiRef: React.MutableRefObject<import("@mui/x-data-grid/internals").GridApiCommunity>) => ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => boolean) | null) | undefined;
71
+ filterOperators?: GridFilterOperator<any, any, any>[] | GridFilterOperator<import("@mui/x-data-grid-pro").GridValidRowModel, any, any>[] | undefined;
72
+ getApplyQuickFilterFn?: ((value: any, colDef: import("@mui/x-data-grid/internals").GridStateColDef<any, any, any>, apiRef: React.MutableRefObject<import("@mui/x-data-grid/internals").GridApiCommunity>) => ((params: import("@mui/x-data-grid-pro").GridCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => boolean) | null) | undefined;
73
73
  disableReorder?: boolean | undefined;
74
74
  disableExport?: boolean | undefined;
75
- colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
75
+ colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
76
76
  aggregable?: boolean | undefined;
77
77
  availableAggregationFunctions?: string[] | undefined;
78
- groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
78
+ groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<import("@mui/x-data-grid-pro").GridValidRowModel, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
79
79
  extendType?: import("@mui/x-data-grid-pro").GridNativeColTypes | undefined;
80
80
  }[];
81
81
  initialState: {
package/hooks/useQuery.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { getGridDefaultColumnTypes, GridLinkOperator } from '@mui/x-data-grid-pro';
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
6
  const simplifiedValueGetter = (field, colDef) => row => {
@@ -48,21 +48,17 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
48
48
  return rows;
49
49
  }
50
50
  const valueGetters = filterModel.items.map(({
51
- columnField
52
- }) => simplifiedValueGetter(columnField, columnsWithDefaultColDef.find(({
53
51
  field
54
- }) => field === columnField)));
52
+ }) => simplifiedValueGetter(field, columnsWithDefaultColDef.find(column => column.field === field)));
55
53
  const filterFunctions = filterModel.items.map(filterItem => {
56
54
  const {
57
- columnField,
58
- operatorValue
55
+ field,
56
+ operator
59
57
  } = filterItem;
60
- const colDef = columnsWithDefaultColDef.find(({
61
- field
62
- }) => field === columnField);
58
+ const colDef = columnsWithDefaultColDef.find(column => column.field === field);
63
59
  const filterOperator = colDef.filterOperators.find(({
64
60
  value
65
- }) => operatorValue === value);
61
+ }) => operator === value);
66
62
  let parsedValue = filterItem.value;
67
63
  if (colDef.valueParser) {
68
64
  var _filterItem$value;
@@ -74,7 +70,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
74
70
  value: parsedValue
75
71
  }, colDef);
76
72
  });
77
- if (filterModel.linkOperator === GridLinkOperator.Or) {
73
+ if (filterModel.logicOperator === GridLogicOperator.Or) {
78
74
  return rows.filter(row => filterModel.items.some((_, index) => {
79
75
  const value = valueGetters[index](row);
80
76
  return filterFunctions[index] === null ? true : filterFunctions[index]({
package/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.9
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-beta.0
2
3
  *
3
- * This source code is licensed under the MIT license found in the
4
+ * @license MUI X Commercial
5
+ * This source code is licensed under the commercial license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
6
8
  export * from './renderer';
@@ -4,7 +4,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import * as React from 'react';
7
- import { getGridDefaultColumnTypes, GridLinkOperator } from '@mui/x-data-grid-pro';
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
10
  var simplifiedValueGetter = function simplifiedValueGetter(field, colDef) {
@@ -58,22 +58,20 @@ var getFilteredRows = function getFilteredRows(rows, filterModel, columnsWithDef
58
58
  return rows;
59
59
  }
60
60
  var valueGetters = filterModel.items.map(function (_ref3) {
61
- var columnField = _ref3.columnField;
62
- return simplifiedValueGetter(columnField, columnsWithDefaultColDef.find(function (_ref4) {
63
- var field = _ref4.field;
64
- return field === columnField;
61
+ var field = _ref3.field;
62
+ return simplifiedValueGetter(field, columnsWithDefaultColDef.find(function (column) {
63
+ return column.field === field;
65
64
  }));
66
65
  });
67
66
  var filterFunctions = filterModel.items.map(function (filterItem) {
68
- var columnField = filterItem.columnField,
69
- operatorValue = filterItem.operatorValue;
70
- var colDef = columnsWithDefaultColDef.find(function (_ref5) {
71
- var field = _ref5.field;
72
- return field === columnField;
67
+ var field = filterItem.field,
68
+ operator = filterItem.operator;
69
+ var colDef = columnsWithDefaultColDef.find(function (column) {
70
+ return column.field === field;
73
71
  });
74
- var filterOperator = colDef.filterOperators.find(function (_ref6) {
75
- var value = _ref6.value;
76
- return operatorValue === value;
72
+ var filterOperator = colDef.filterOperators.find(function (_ref4) {
73
+ var value = _ref4.value;
74
+ return operator === value;
77
75
  });
78
76
  var parsedValue = filterItem.value;
79
77
  if (colDef.valueParser) {
@@ -88,7 +86,7 @@ var getFilteredRows = function getFilteredRows(rows, filterModel, columnsWithDef
88
86
  value: parsedValue
89
87
  }, colDef);
90
88
  });
91
- if (filterModel.linkOperator === GridLinkOperator.Or) {
89
+ if (filterModel.logicOperator === GridLogicOperator.Or) {
92
90
  return rows.filter(function (row) {
93
91
  return filterModel.items.some(function (_, index) {
94
92
  var value = valueGetters[index](row);
@@ -136,8 +134,8 @@ export var loadServerRows = function loadServerRows(rows, queryOptions, serverOp
136
134
  firstRowIndex = 0;
137
135
  lastRowIndex = filteredRows.length;
138
136
  } else if (useCursorPagination) {
139
- firstRowIndex = cursor ? filteredRows.findIndex(function (_ref7) {
140
- var id = _ref7.id;
137
+ firstRowIndex = cursor ? filteredRows.findIndex(function (_ref5) {
138
+ var id = _ref5.id;
141
139
  return id === cursor;
142
140
  }) : 0;
143
141
  firstRowIndex = Math.max(firstRowIndex, 0); // if cursor not found return 0
package/legacy/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.9
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-beta.0
2
3
  *
3
- * This source code is licensed under the MIT license found in the
4
+ * @license MUI X Commercial
5
+ * This source code is licensed under the commercial license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
6
8
  export * from './renderer';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { getGridDefaultColumnTypes, GridLinkOperator } from '@mui/x-data-grid-pro';
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
6
  const simplifiedValueGetter = (field, colDef) => row => {
@@ -47,21 +47,17 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
47
47
  return rows;
48
48
  }
49
49
  const valueGetters = filterModel.items.map(({
50
- columnField
51
- }) => simplifiedValueGetter(columnField, columnsWithDefaultColDef.find(({
52
50
  field
53
- }) => field === columnField)));
51
+ }) => simplifiedValueGetter(field, columnsWithDefaultColDef.find(column => column.field === field)));
54
52
  const filterFunctions = filterModel.items.map(filterItem => {
55
53
  const {
56
- columnField,
57
- operatorValue
54
+ field,
55
+ operator
58
56
  } = filterItem;
59
- const colDef = columnsWithDefaultColDef.find(({
60
- field
61
- }) => field === columnField);
57
+ const colDef = columnsWithDefaultColDef.find(column => column.field === field);
62
58
  const filterOperator = colDef.filterOperators.find(({
63
59
  value
64
- }) => operatorValue === value);
60
+ }) => operator === value);
65
61
  let parsedValue = filterItem.value;
66
62
  if (colDef.valueParser) {
67
63
  const parser = colDef.valueParser;
@@ -72,7 +68,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
72
68
  value: parsedValue
73
69
  }, colDef);
74
70
  });
75
- if (filterModel.linkOperator === GridLinkOperator.Or) {
71
+ if (filterModel.logicOperator === GridLogicOperator.Or) {
76
72
  return rows.filter(row => filterModel.items.some((_, index) => {
77
73
  const value = valueGetters[index](row);
78
74
  return filterFunctions[index] === null ? true : filterFunctions[index]({
package/modern/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.9
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-beta.0
2
3
  *
3
- * This source code is licensed under the MIT license found in the
4
+ * @license MUI X Commercial
5
+ * This source code is licensed under the commercial license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
6
8
  export * from './renderer';
@@ -56,21 +56,17 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
56
56
  return rows;
57
57
  }
58
58
  const valueGetters = filterModel.items.map(({
59
- columnField
60
- }) => simplifiedValueGetter(columnField, columnsWithDefaultColDef.find(({
61
59
  field
62
- }) => field === columnField)));
60
+ }) => simplifiedValueGetter(field, columnsWithDefaultColDef.find(column => column.field === field)));
63
61
  const filterFunctions = filterModel.items.map(filterItem => {
64
62
  const {
65
- columnField,
66
- operatorValue
63
+ field,
64
+ operator
67
65
  } = filterItem;
68
- const colDef = columnsWithDefaultColDef.find(({
69
- field
70
- }) => field === columnField);
66
+ const colDef = columnsWithDefaultColDef.find(column => column.field === field);
71
67
  const filterOperator = colDef.filterOperators.find(({
72
68
  value
73
- }) => operatorValue === value);
69
+ }) => operator === value);
74
70
  let parsedValue = filterItem.value;
75
71
  if (colDef.valueParser) {
76
72
  const parser = colDef.valueParser;
@@ -81,7 +77,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
81
77
  value: parsedValue
82
78
  }, colDef);
83
79
  });
84
- if (filterModel.linkOperator === _xDataGridPro.GridLinkOperator.Or) {
80
+ if (filterModel.logicOperator === _xDataGridPro.GridLogicOperator.Or) {
85
81
  return rows.filter(row => filterModel.items.some((_, index) => {
86
82
  const value = valueGetters[index](row);
87
83
  return filterFunctions[index] === null ? true : filterFunctions[index]({
package/node/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.9
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-beta.0
2
3
  *
3
- * This source code is licensed under the MIT license found in the
4
+ * @license MUI X Commercial
5
+ * This source code is licensed under the commercial license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
6
8
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "6.0.0-alpha.9",
3
+ "version": "6.0.0-beta.0",
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.20.1",
23
- "@mui/base": "^5.0.0-alpha.106",
24
- "@mui/x-data-grid-premium": "6.0.0-alpha.9",
22
+ "@babel/runtime": "^7.20.7",
23
+ "@mui/base": "^5.0.0-alpha.113",
24
+ "@mui/x-data-grid-premium": "6.0.0-beta.0",
25
25
  "chance": "^1.1.9",
26
26
  "clsx": "^1.2.1",
27
27
  "lru-cache": "^7.14.1"
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditCurrency(params: GridRenderEditCellParams<string>): JSX.Element;
3
+ export declare function renderEditCurrency(params: GridRenderEditCellParams<any, string>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditIncoterm(params: GridRenderEditCellParams<string | null>): JSX.Element;
3
+ export declare function renderEditIncoterm(params: GridRenderEditCellParams<any, string | null>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditProgress(params: GridRenderEditCellParams<number>): JSX.Element;
3
+ export declare function renderEditProgress(params: GridRenderEditCellParams<any, number>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditRating(params: GridRenderEditCellParams<number>): JSX.Element;
3
+ export declare function renderEditRating(params: GridRenderEditCellParams<any, number>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderEditCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEditStatus(params: GridRenderEditCellParams<string>): JSX.Element;
3
+ export declare function renderEditStatus(params: GridRenderEditCellParams<any, string>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderEmail(params: GridRenderCellParams<string, any, any>): JSX.Element;
3
+ export declare function renderEmail(params: GridRenderCellParams<any, string, any>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderIncoterm(params: GridRenderCellParams<string | null, any, any>): JSX.Element;
3
+ export declare function renderIncoterm(params: GridRenderCellParams<any, string | null, any>): 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<string, any, any>): "" | JSX.Element;
9
+ export declare function renderLink(params: GridRenderCellParams<any, string, any>): "" | JSX.Element;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderPnl(params: GridRenderCellParams<number, any, any>): "" | JSX.Element;
3
+ export declare function renderPnl(params: GridRenderCellParams<any, number, any>): "" | JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderProgress(params: GridRenderCellParams<number, any, any>): "" | JSX.Element | null;
3
+ export declare function renderProgress(params: GridRenderCellParams<any, number, any>): "" | JSX.Element | null;
@@ -1,5 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { GridRenderCellParams, GridRowId } from '@mui/x-data-grid-premium';
3
- export declare function renderRating(params: GridRenderCellParams<number, {
4
- id: GridRowId;
5
- }, any>): "" | JSX.Element | null;
2
+ import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
+ export declare function renderRating(params: GridRenderCellParams<any, number, any>): "" | JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderStatus(params: GridRenderCellParams<string>): "" | JSX.Element;
3
+ export declare function renderStatus(params: GridRenderCellParams<any, string>): "" | JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid-premium';
3
- export declare function renderTotalPrice(params: GridRenderCellParams<number>): "" | JSX.Element | null;
3
+ export declare function renderTotalPrice(params: GridRenderCellParams<any, number>): "" | JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { GridColDef } from '@mui/x-data-grid-premium';
1
+ import { GridBaseColDef } from '@mui/x-data-grid-pro/internals';
2
2
  export interface GridDataGeneratorContext {
3
3
  /**
4
4
  * Values already attributed to this column.
@@ -8,7 +8,7 @@ export interface GridDataGeneratorContext {
8
8
  */
9
9
  values?: Record<string, number>;
10
10
  }
11
- export interface GridColDefGenerator extends GridColDef {
11
+ export interface GridColDefGenerator extends GridBaseColDef {
12
12
  generateData?: (row: any, context: GridDataGeneratorContext) => any;
13
13
  /**
14
14
  * If `true`, each row will have a distinct value
@@ -1,5 +1,5 @@
1
1
  import { GridDataGeneratorContext } from './gridColDefGenerator';
2
- declare type ColumnDataGenerator<Value> = (data: any, context: GridDataGeneratorContext) => Value;
2
+ type ColumnDataGenerator<Value> = (data: any, context: GridDataGeneratorContext) => Value;
3
3
  export declare const random: (min: number, max: number) => number;
4
4
  export declare const randomInt: (min: number, max: number) => number;
5
5
  export declare const randomPrice: (min?: number, max?: number) => number;