@mui/x-data-grid-generator 6.0.0-alpha.13 → 6.0.0-alpha.15

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,242 @@
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.0.0-alpha.15
7
+
8
+ _Jan 13, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 Support components and slots for new pickers (#7390) @alexfauquette
13
+ - ✨ Update `onColumnOrderChange` behavior to match `onRowsOrderChange` (#7385) @DanailH
14
+ - 🌍 Improve Spanish (es-ES) and Belarusian (be-BY) locales
15
+ - 📚 Documentation improvements
16
+ - 🐞 Bugfixes
17
+
18
+ ### `@mui/x-data-grid@v6.0.0-alpha.15` / `@mui/x-data-grid-pro@6.0.0-alpha.15` / `@mui/x-data-grid-premium@6.0.0-alpha.15`
19
+
20
+ #### Breaking changes
21
+
22
+ - Remove the `onCellFocusOut` prop (#6302) @cherniavskii
23
+
24
+ The `onCellFocusOut` prop was removed. Use `componentsProps.cell.onBlur` instead:
25
+
26
+ ```tsx
27
+ <DataGrid
28
+ componentsProps={{
29
+ cell: {
30
+ onBlur: (event) => {
31
+ const cellElement = event.currentTarget;
32
+ const field = cellElement.getAttribute('data-field');
33
+ const rowId = cell.parentElement.getAttribute('data-id');
34
+ },
35
+ },
36
+ }}
37
+ />
38
+ ```
39
+
40
+ - [DataGrid] Stop exporting editing selector (#7456) @m4theushw
41
+
42
+ The `gridEditRowsStateSelector` selector was removed.
43
+
44
+ - [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii
45
+
46
+ The `headerHeight` prop was renamed to `columnHeaderHeight`.
47
+
48
+ - [DataGrid] Remove the `columnTypes` prop (#7309) @cherniavskii
49
+
50
+ The `columnTypes` prop was removed. For custom column types see [Custom column types](https://mui.com/x/react-data-grid/column-definition/#custom-column-types) docs.
51
+
52
+ - [DataGrid] Rename `linkOperators` to `logicOperators` (#7310) @cherniavskii
53
+
54
+ The `apiRef.current.setFilterLinkOperator` method was renamed to `apiRef.current.setFilterLogicOperator`.
55
+ The `GridLinkOperator` enum was renamed to `GridLogicOperator`.
56
+ The `GridFilterModel['linkOperator']` was renamed to `GridFilterModel['logicOperator']`.
57
+ The `linkOperators` prop of `GridFilterForm` and `GridFilterPanel` components was renamed to `logicOperators`.
58
+ The `linkOperatorInputProps` prop of `GridFilterForm` component was renamed to `logicOperatorInputProps`.
59
+ The `filterFormProps.linkOperatorInputProps` prop in `GridFilterForm` component was renamed to `filterFormProps.logicOperatorInputProps`.
60
+ The `GridLocaleText['filterPanelLinkOperator']` property was renamed to `GridLocaleText['filterPanelLogicOperator']`.
61
+ The `.MuiDataGrid-filterFormLinkOperatorInput`CSS class was renamed to `.MuiDataGrid-filterFormLogicOperatorInput`.
62
+
63
+ - [DataGrid] Remove `Alt+C` keyboard shortcut (#7466) @MBilalShafi
64
+
65
+ <kbd>Alt</kbd> (or <kbd>⌥ Option</kbd>) + <kbd>C</kbd> keyboard shortcut is no longer supported.
66
+
67
+ #### Changes
68
+
69
+ - [DataGrid] Fix <kbd>Tab</kbd> between portaled and non-portaled edit components (#7098) @m4theushw
70
+ - [DataGrid] Remove the `columnTypes` prop (#7309) @cherniavskii
71
+ - [DataGrid] Remove the `onCellFocusOut` prop (#6302) @cherniavskii
72
+ - [DataGrid] Rename `linkOperators` to `logicOperators` (#7310) @cherniavskii
73
+ - [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii
74
+ - [DataGrid] Stop exporting editing selector (#7456) @m4theushw
75
+ - [DataGrid] Update `onColumnOrderChange` behavior to match `onRowsOrderChange` (#7385) @DanailH
76
+ - [DataGrid] Improve Spanish (es-ES) locale (#7447) @Anderssxn
77
+ - [DataGrid] Remove Alt+C keyboard shortcut (#7466) @MBilalShafi
78
+ - [DataGridPremium] Fix Excel export not working with date strings (#7396) @cherniavskii
79
+
80
+ ### `@mui/x-date-pickers@6.0.0-alpha.15` / `@mui/x-date-pickers-pro@6.0.0-alpha.15`
81
+
82
+ #### Breaking changes
83
+
84
+ - [pickers] Stop using the `WrapperVariantContext` in `MonthCalendar` and `YearCalendar` (#7382) @flaviendelangle
85
+
86
+ The `modeMobile` and `modeDesktop` classes have been removed from the `PickersMonth` and `PickersYear` internal components.
87
+
88
+ If you were using those classes on responsive components,
89
+ you can import `DEFAULT_DESKTOP_MODE_MEDIA_QUERY` from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro` (or use your custom media query if any):
90
+
91
+ ```diff
92
+ <GlobalStyles
93
+ styles={{
94
+ - [`.${pickersYearClasses.modeDesktop}`]: {
95
+ - backgroundColor: 'red'
96
+ - }
97
+ + [DEFAULT_DESKTOP_MODE_MEDIA_QUERY]: {
98
+ + [`.${pickersYearClasses.root}`]: {
99
+ + backgroundColor: 'red'
100
+ + }
101
+ + }
102
+ - [`.${pickersYearClasses.modeMobile}`]: {
103
+ - backgroundColor: 'red'
104
+ - }
105
+ + [DEFAULT_DESKTOP_MODE_MEDIA_QUERY.replace('@media', '@media not')]: {
106
+ + [`.${pickersYearClasses.root}`]: {
107
+ + backgroundColor: 'red'
108
+ + }
109
+ + }
110
+ }}
111
+ />
112
+ ```
113
+
114
+ Works exactly the same way for `PickersMonth`.
115
+
116
+ - [pickers] Refactor `shouldDisableTime` (#7299) @LukasTy
117
+
118
+ The `shouldDisableTime` prop signature has been changed. Either rename the prop usage to `shouldDisableClock` or refactor usage.
119
+
120
+ ```diff
121
+ <DateTimePicker
122
+ - shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
123
+ + shouldDisableClock={(timeValue, view) => view === 'hours' && timeValue < 12}
124
+ />
125
+ ```
126
+
127
+ ```diff
128
+ <DateTimePicker
129
+ - shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
130
+ + shouldDisableTime={(time, view) => view === 'hours' && value.hour() < 12}
131
+ />
132
+ ```
133
+
134
+ #### Changes
135
+
136
+ - [fields] Fix Android editing (#7444) @flaviendelangle
137
+ - [pickers] Add Belarusian (be-BY) locale (#7395) @volhalink
138
+ - [pickers] Hide am/pm controls when their is no hour view (#7380) @flaviendelangle
139
+ - [pickers] Hide the tabs by default on `DesktopNextDateTimePicker` (#7503) @flaviendelangle
140
+ - [pickers] Refactor `shouldDisableTime` (#7299) @LukasTy
141
+ - [pickers] Remove `WrapperVariantContext` from `DateTimePickerTabs` (#7374) @LukasTy
142
+ - [pickers] Stop using the `WrapperVariantContext` in `MonthCalendar` and `YearCalendar` (#7382) @flaviendelangle
143
+ - [pickers] Support `components` and `slots` for new pickers (#7390) @alexfauquette
144
+ - [pickers] Replace `slotsProps` by `slotProps` (#7528) @alexfauquette
145
+
146
+ ### Docs
147
+
148
+ - [docs] Fix codesandboxes using `DemoContainer` (#7388) @LukasTy
149
+ - [docs] Fix wrong reference to currentView (#7441) @oliviertassinari
150
+ - [docs] New page for `DateRangeCalendar` (#7378) @flaviendelangle
151
+ - [docs] Update the migration guide with the breaking changes between the legacy and the new pickers (#7345) @flaviendelangle
152
+ - [docs] Use new pickers on "Custom components" demos (#7194) @flaviendelangle
153
+
154
+ ### Core
155
+
156
+ - [core] Handle selection edge case (#7350) @oliviertassinari
157
+ - [core] Improve license message @oliviertassinari
158
+ - [pickers] Move default `closeOnSelect` to prop definition (#7459) @flaviendelangle
159
+ - [core] Move interfaces of UI views to dedicated files (#7458) @flaviendelangle
160
+ - [core] Update package used to import LicenseInfo (#7442) @oliviertassinari
161
+ - [test] Add a few inheritComponent (#7352) @oliviertassinari
162
+
163
+ ## 6.0.0-alpha.14
164
+
165
+ _Jan 5, 2023_
166
+
167
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
168
+
169
+ - 📆 Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
170
+ - 🚀 Use grid for modifying pickers layout (#6900) @alexfauquette
171
+ - ✨ Improve field components editing experience (#7272) @flaviendelangle
172
+ - 💻 Multiple codemods
173
+ - 📚 Many documentation improvements
174
+ - 🐞 Bugfixes
175
+
176
+ ### `@mui/x-data-grid@v6.0.0-alpha.14` / `@mui/x-data-grid-pro@v6.0.0-alpha.14` / `@mui/x-data-grid-premium@v6.0.0-alpha.14`
177
+
178
+ #### Breaking changes
179
+
180
+ - [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
181
+
182
+ The default type of `GridCellParams['value']` was changed from `any` to `unknown`.
183
+
184
+ #### Changes
185
+
186
+ - [DataGrid] Fix flickering on mount (#7205) @cherniavskii
187
+ - [DataGrid] Fix selected text in cell input not being copied in Firefox (#6593) @cherniavskii
188
+ - [DataGrid] Invert generic parameters order (#6874) @DanailH
189
+ - [DataGrid] Remove legacy logic for `singleSelect` inside `GridFilterInputValue` (#7386) @m4theushw
190
+ - [DataGrid] Remove remaining props from legacy editing API (#7381) @m4theushw
191
+ - [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
192
+
193
+ ### `@mui/x-date-pickers@v6.0.0-alpha.14` / `@mui/x-date-pickers-pro@v6.0.0-alpha.14`
194
+
195
+ #### Breaking changes
196
+
197
+ - [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
198
+
199
+ #### Changes
200
+
201
+ - [fields] Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
202
+ - [fields] Improve editing (automatic section switch, allow letter editing in digit section, allow numeric editing in letter section) (#7272) @flaviendelangle
203
+ - [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
204
+ - [fields] Prevent date change on `TimeField` arrow edition (#7383) @flaviendelangle
205
+ - [pickers] Clean some JSDoc descriptions (#7384) @flaviendelangle
206
+ - [pickers] Remove redundant `variants` in theme augmentation (#7356) @LukasTy
207
+ - [pickers] Remove the `PaperContent` slot from the new pickers (#7342) @flaviendelangle
208
+ - [pickers] Use grid for modifying the layout (#6900) @alexfauquette
209
+
210
+ ### `@mui/x-codemod@v6.0.0-alpha.14`
211
+
212
+ #### Changes
213
+
214
+ - [codemod] Add new codemod for adapter import (#7348) @flaviendelangle
215
+ - [codemod] Add new codemod for the value prop renaming on the view components (#7338) @flaviendelangle
216
+ - [codemod] Reorganize codemods and add rename column menu components codemod (#7368) @MBilalShafi
217
+
218
+ ### Docs
219
+
220
+ - [docs] Add example to add back the mobile keyboard view (#7347) @flaviendelangle
221
+ - [docs] Cleanup the doc pages of the community pickers (#7339) @flaviendelangle
222
+ - [docs] Drop security fixes support for v4 (#7322) @oliviertassinari
223
+ - [docs] Fix `disablePast` and `disableFuture` definition swap (#7324) @alexfauquette
224
+ - [docs] Hide ad for paid docs pages (#7321) @oliviertassinari
225
+ - [docs] New page for `TimeClock` (#7280) @flaviendelangle
226
+ - [docs] Note the pickers breaking changes supported by the codemod (#7337) @flaviendelangle
227
+ - [docs] Redirect translated pages (#7341) @cherniavskii
228
+ - [docs] Reorganize v6 pickers migration guide (#7257) @flaviendelangle
229
+
230
+ ### Core
231
+
232
+ - [core] Apply eslint rule for React component @oliviertassinari
233
+ - [core] Apply title capitalization convention @oliviertassinari
234
+ - [core] Fix the product license reference name (#7367) @oliviertassinari
235
+ - [core] Order the slots alphabetically in the JSON files (#7349) @flaviendelangle
236
+ - [core] Remove blanklines in `_redirects` @oliviertassinari
237
+ - [core] Remove dead prettier config @oliviertassinari
238
+ - [core] Sync back with the mono repo (#7351) @oliviertassinari
239
+ - [core] Sync monorepo, fix layout scrollbar @oliviertassinari
240
+ - [core] Upgrade monorepo (#7307) @LukasTy
241
+
6
242
  ## 6.0.0-alpha.13
7
243
 
8
244
  _Dec 24, 2022_
@@ -1507,6 +1743,61 @@ You can find more information about the new api, including how to set those tran
1507
1743
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
1508
1744
  - [website] Improve security header @oliviertassinari
1509
1745
 
1746
+ ## 5.17.18
1747
+
1748
+ _Jan 5, 2023_
1749
+
1750
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
1751
+
1752
+ - 🐞 Bugfixes
1753
+
1754
+ ### `@mui/x-data-grid@v5.17.18` / `@mui/x-data-grid-pro@v5.17.18` / `@mui/x-data-grid-premium@v5.17.18`
1755
+
1756
+ #### Changes
1757
+
1758
+ - [DataGrid] Fix rows not rendering properly after height change (#7376) @cherniavskii
1759
+ - [DataGrid] Fix selected text in cell input not being copied in Firefox (#7330) @cherniavskii
1760
+ - [DataGridPremium] Export row grouping column menu components (#7308) @cherniavskii
1761
+
1762
+ ### `@mui/x-date-pickers@v5.0.13` / `@mui/x-date-pickers-pro@v5.0.13`
1763
+
1764
+ #### Changes
1765
+
1766
+ - [pickers] Fix the product license reference name (#7367)
1767
+
1768
+ ### Docs
1769
+
1770
+ - [docs] Redirect translated pages (#7370) @cherniavskii
1771
+
1772
+ ### Core
1773
+
1774
+ - [core] Fix release date (#7314) @DanailH
1775
+ - [core] Fix the product license reference name (#7367) @oliviertassinari
1776
+ - [core] Upgrade monorepo (#7344) @cherniavskii
1777
+
1778
+ ## 5.17.17
1779
+
1780
+ _Dec 24, 2022_
1781
+
1782
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1783
+
1784
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
1785
+ - 🐞 Bugfixes
1786
+
1787
+ ### `@mui/x-data-grid@v5.17.17` / `@mui/x-data-grid-pro@v5.17.17` / `@mui/x-data-grid-premium@v5.17.17`
1788
+
1789
+ #### Changes
1790
+
1791
+ - [DataGrid] Update Russian (ru-RU) locale (#7291) @VeceluXa
1792
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7311) @m4theushw
1793
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7285) @alexfauquette
1794
+
1795
+ ### `@mui/x-date-pickers@v5.0.12` / `@mui/x-date-pickers-pro@v5.0.12`
1796
+
1797
+ #### Changes
1798
+
1799
+ - [pickers] Improve Korean (ko-KR) locale (#7283) @hanbin9775
1800
+
1510
1801
  ## 5.17.16
1511
1802
 
1512
1803
  _Dec 16, 2022_
@@ -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/internals").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 => {
@@ -70,7 +70,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
70
70
  value: parsedValue
71
71
  }, colDef);
72
72
  });
73
- if (filterModel.linkOperator === GridLinkOperator.Or) {
73
+ if (filterModel.logicOperator === GridLogicOperator.Or) {
74
74
  return rows.filter(row => filterModel.items.some((_, index) => {
75
75
  const value = valueGetters[index](row);
76
76
  return filterFunctions[index] === null ? true : filterFunctions[index]({
package/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.13
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-alpha.15
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) {
@@ -86,7 +86,7 @@ var getFilteredRows = function getFilteredRows(rows, filterModel, columnsWithDef
86
86
  value: parsedValue
87
87
  }, colDef);
88
88
  });
89
- if (filterModel.linkOperator === GridLinkOperator.Or) {
89
+ if (filterModel.logicOperator === GridLogicOperator.Or) {
90
90
  return rows.filter(function (row) {
91
91
  return filterModel.items.some(function (_, index) {
92
92
  var value = valueGetters[index](row);
package/legacy/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.13
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-alpha.15
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 => {
@@ -68,7 +68,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
68
68
  value: parsedValue
69
69
  }, colDef);
70
70
  });
71
- if (filterModel.linkOperator === GridLinkOperator.Or) {
71
+ if (filterModel.logicOperator === GridLogicOperator.Or) {
72
72
  return rows.filter(row => filterModel.items.some((_, index) => {
73
73
  const value = valueGetters[index](row);
74
74
  return filterFunctions[index] === null ? true : filterFunctions[index]({
package/modern/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.13
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-alpha.15
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';
@@ -77,7 +77,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
77
77
  value: parsedValue
78
78
  }, colDef);
79
79
  });
80
- if (filterModel.linkOperator === _xDataGridPro.GridLinkOperator.Or) {
80
+ if (filterModel.logicOperator === _xDataGridPro.GridLogicOperator.Or) {
81
81
  return rows.filter(row => filterModel.items.some((_, index) => {
82
82
  const value = valueGetters[index](row);
83
83
  return filterFunctions[index] === null ? true : filterFunctions[index]({
package/node/index.js CHANGED
@@ -1,6 +1,8 @@
1
- /** @license MUI v6.0.0-alpha.13
1
+ /**
2
+ * @mui/x-data-grid-generator v6.0.0-alpha.15
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.13",
3
+ "version": "6.0.0-alpha.15",
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.6",
23
- "@mui/base": "^5.0.0-alpha.109",
24
- "@mui/x-data-grid-premium": "6.0.0-alpha.13",
22
+ "@babel/runtime": "^7.20.7",
23
+ "@mui/base": "^5.0.0-alpha.113",
24
+ "@mui/x-data-grid-premium": "6.0.0-alpha.15",
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;