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

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,212 @@
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.13
7
+
8
+ _Dec 24, 2022_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 New column menu design and API
13
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
14
+ - 📚 Documentation improvements
15
+ - 🐞 Bugfixes
16
+
17
+ ### `@mui/x-data-grid@6.0.0-alpha.13` / `@mui/x-data-grid-pro@6.0.0-alpha.13` / `@mui/x-data-grid-premium@6.0.0-alpha.13`
18
+
19
+ #### Breaking changes
20
+
21
+ - New column menu design and API (#6619) MBilalShafi
22
+
23
+ The `currentColumn` prop passed to `components.ColumnMenu` was renamed to `colDef`.
24
+ The `column` prop passed to the items of the column menu was renamed to `colDef`.
25
+ The `DATA_GRID_DEFAULT_SLOTS_COMPONENTS` export has been removed.
26
+ The following components and interfaces were been renamed for consistency:
27
+
28
+ **Community Package:**
29
+
30
+ ```diff
31
+ -<GridFilterMenuItem />
32
+ +<GridColumnMenuFilterItem />
33
+ ```
34
+
35
+ ```diff
36
+ -<HideGridColMenuItem />
37
+ +<GridColumnMenuHideItem />
38
+ ```
39
+
40
+ ```diff
41
+ -<GridColumnsMenuItem />
42
+ +<GridColumnMenuColumnsItem />
43
+ ```
44
+
45
+ ```diff
46
+ -<SortGridMenuItems />
47
+ +<GridColumnMenuSortItem />
48
+ ```
49
+
50
+ ```diff
51
+ -interface GridFilterItemProps
52
+ +interface GridColumnMenuItemProps
53
+ ```
54
+
55
+ **Pro package:**
56
+
57
+ ```diff
58
+ -<GridColumnPinningMenuItems />
59
+ +<GridColumnMenuPinningItem />
60
+ ```
61
+
62
+ **Premium package:**
63
+
64
+ ```diff
65
+ -<GridAggregationColumnMenuItem />
66
+ +<GridColumnMenuAggregationItem />
67
+ ```
68
+
69
+ ```diff
70
+ -<GridRowGroupingColumnMenuItems />
71
+ -<GridRowGroupableColumnMenuItems />
72
+ +<GridColumnMenuGroupingItem />
73
+ ```
74
+
75
+ - Improve column definition typing (#7224) @cherniavskii
76
+
77
+ The `GridColumns` type was removed. Use `GridColDef[]` instead.
78
+ The `GridActionsColDef` interface was removed. Use `GridColDef` instead.
79
+ The `GridEnrichedColDef` type was removed. Use `GridColDef` instead.
80
+ The `GridStateColDef` type was removed.
81
+
82
+ If you use it to type `searchPredicate`, use `GridColumnsPanelProps['searchPredicate']` instead.
83
+ If you use it to type `getApplyFilterFn`, `GridFilterOperator['getApplyFilterFn']` can be used as replacement.
84
+
85
+ - Remove GridDensityType enum (#7304) @cherniavskii
86
+
87
+ The `GridDensityTypes` enum was removed. Use `GridDensity` type instead.
88
+
89
+ #### Changes
90
+
91
+ - [DataGrid] Allow disabling of buttons in column panel (#6947) @MBilalShafi
92
+ - [DataGrid] Improve column definition typing (#7224) @cherniavskii
93
+ - [DataGrid] Improve column menu design and API (#6619) @MBilalShafi
94
+ - [DataGrid] Remove `GridDensityType` enum (#7304) @cherniavskii
95
+ - [DataGrid] Remove `rowHeight` and `headerHeight` from state (#7199) @DanailH
96
+ - [DataGrid] Remove column separator to match table styles (#7067) @MBilalShafi
97
+ - [DataGrid] Update Russian (ru-RU) locale (#7220) @VeceluXa
98
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7302) @m4theushw
99
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7284) @alexfauquette
100
+
101
+ ### `@mui/x-date-pickers@6.0.0-alpha.13` / `@mui/x-date-pickers-pro@6.0.0-alpha.13`
102
+
103
+ #### Breaking changes
104
+
105
+ - Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
106
+
107
+ `AdapterLuxon` now requires `luxon` in version `3.0.2` or higher in order to work.
108
+
109
+ Take a look at the [Upgrading Luxon](https://moment.github.io/luxon/#/upgrading) guide if you are using an older version.
110
+
111
+ #### Changes
112
+
113
+ - [DateRangePicker] Fix to propagate `disabled` and `readOnly` on multi input picker (#7135) @LukasTy
114
+ - [fields] Fix multi input fields root element props order and types (#7225) @LukasTy
115
+ - [fields] Support escaped characters (#7184) @flaviendelangle
116
+ - [pickers] Allow to define custom view renderers on the pickers (#7176) @flaviendelangle
117
+ - [pickers] Avoid running validation methods several times in `DateCalendar` (#7247) @flaviendelangle
118
+ - [pickers] Improve Korean (ko-KR) locale (#7266) @hanbin9775
119
+ - [pickers] Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
120
+ - [pickers] Rework view internals (#7097) @flaviendelangle
121
+
122
+ ### `@mui/x-codemod@6.0.0-alpha.13`
123
+
124
+ #### Changes
125
+
126
+ - [codemod] New codemod for view component renaming (#7264) @flaviendelangle
127
+
128
+ ### Docs
129
+
130
+ - [docs] Fix some selectors not being documented (#7218) @cherniavskii
131
+ - [docs] New page for `DateCalendar` (#7053) @flaviendelangle
132
+ - [docs] Split selection docs (#7213) @m4theushw
133
+
134
+ ### Core
135
+
136
+ - [core] Fix API demos callout spacing @oliviertassinari
137
+
138
+ ## 6.0.0-alpha.12
139
+
140
+ _Dec 16, 2022_
141
+
142
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
143
+
144
+ - 🚀 The `apiRef` prop is now available in the `@mui/x-data-grid` package:
145
+
146
+ ```tsx
147
+ const apiRef = useGridApiRef();
148
+
149
+ return (
150
+ <DataGrid apiRef={apiRef} {...other} />
151
+ )
152
+ ```
153
+
154
+ See [the documentation](https://next.mui.com/x/react-data-grid/api-object/) for more information.
155
+
156
+ - 🎁 The `DataGridPremium` now supports cell selection:
157
+
158
+ ```tsx
159
+ <DataGridPremium unstable_cellSelection />
160
+ ```
161
+
162
+ See [the documentation](https://next.mui.com/x/react-data-grid/selection/#cell-selection) for more information
163
+
164
+ - 🌍 Support the Right To Left orientation on the fields components
165
+ - 📚 Documentation improvements
166
+ - 🐞 Bugfixes
167
+
168
+ ### `@mui/x-data-grid@v6.0.0-alpha.12` / `@mui/x-data-grid-pro@v6.0.0-alpha.12` / `@mui/x-data-grid-premium@v6.0.0-alpha.12`
169
+
170
+ #### Breaking changes
171
+
172
+ - The `showCellRightBorder` was renamed to `showCellVerticalBorder`
173
+ - The `showColumnRightBorder` was renamed to `showColumnVerticalBorder`
174
+ - The `.MuiDataGrid-withBorder` CSS class was renamed to `.MuiDataGrid-withBorderColor` and it only sets `border-color` CSS property now.
175
+ - The following undocumented properties from `apiRef` were removed: `footerRef`, `headerRef`, `columnHeadersElementRef`, `columnHeadersContainerElementRef`
176
+ - The `GridHeaderPlaceholder` component was removed.
177
+ - The `MAX_PAGE_SIZE` constant was removed.
178
+ - The `useGridScrollFn` hook was removed.
179
+
180
+ #### Changes
181
+
182
+ - [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7180) @MBilalShafi
183
+ - [DataGrid] Support `apiRef` in Community package (#6773) @cherniavskii
184
+ - [DataGridPremium] Add support for cell selection (#6567) @m4theushw
185
+ - [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7142) @m4theushw
186
+ - [DataGridPro] Fix missing border in right-pinned columns (#4197) @cherniavskii
187
+ - [DataGridPro] Fix wrong border color on skeleton cells (#7202) @cherniavskii
188
+
189
+ ### `@mui/x-date-pickers@v6.0.0-alpha.12` / `@mui/x-date-pickers-pro@v6.0.0-alpha.12`
190
+
191
+ #### Changes
192
+
193
+ - [fields] Fix bug introduced by RTL in single input range fields (#7189) @alexfauquette
194
+ - [fields] Support RTL out of the box (#6715) @alexfauquette
195
+ - [pickers] Clean `autoFocus` behavior on fields and new pickers (#7153) @flaviendelangle
196
+ - [pickers] Fix label on the new range pickers (#7210) @flaviendelangle
197
+ - [pickers] Fix wrong component name on `StaticNextDateTime` (#7187) @flaviendelangle
198
+
199
+ ### Docs
200
+
201
+ - [docs] Add docs section about field placeholders' localization (#7139) @flaviendelangle
202
+ - [docs] Create a `DemoGrid` component to unify demos with several components (#7057) @flaviendelangle
203
+ - [docs] Document aggregation selectors (#7148) @cherniavskii
204
+ - [docs] Fix 301 links to demo pages in API pages (#7197) @oliviertassinari
205
+ - [docs] Fix errors and warning in demos (#7209) @LukasTy
206
+ - [docs] Use `DemoContainer` and `DemoItem` on every picker demo (#7149) @flaviendelangle
207
+
208
+ ### Core
209
+
210
+ - [core] Fix broken test (#7179) @flaviendelangle
211
+
6
212
  ## 6.0.0-alpha.11
7
213
 
8
214
  _Dec 8, 2022_
@@ -1301,6 +1507,60 @@ You can find more information about the new api, including how to set those tran
1301
1507
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
1302
1508
  - [website] Improve security header @oliviertassinari
1303
1509
 
1510
+ ## 5.17.16
1511
+
1512
+ _Dec 16, 2022_
1513
+
1514
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1515
+
1516
+ - 🐞 Bugfixes
1517
+
1518
+ ### `@mui/x-data-grid@v5.17.16` / `@mui/x-data-grid-pro@v5.17.16` / `@mui/x-data-grid-premium@v5.17.16`
1519
+
1520
+ #### Changes
1521
+
1522
+ - [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7125) @hanbin9775
1523
+ - [DataGrid] Fix flickering on mount (#7155) @cherniavskii
1524
+ - [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7174) @m4theushw
1525
+
1526
+ ### `@mui/x-date-pickers@v5.0.11` / `@mui/x-date-pickers-pro@v5.0.11`
1527
+
1528
+ #### Changes
1529
+
1530
+ - [DateTimePicker] Update export pattern (#7172) @kealjones-wk
1531
+
1532
+ ### Docs
1533
+
1534
+ - [docs] Document aggregation selectors (#7151) @cherniavskii
1535
+
1536
+ ## 5.17.15
1537
+
1538
+ _Dec 8, 2022_
1539
+
1540
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1541
+
1542
+ - ✨ Fix lazy-loading not working in `DataGridPremium` (#7130) @m4theushw
1543
+ - 🐞 Bugfixes
1544
+
1545
+ ### `@mui/x-data-grid@v5.17.15` / `@mui/x-data-grid-pro@v5.17.15` / `@mui/x-data-grid-premium@v5.17.15`
1546
+
1547
+ #### Changes
1548
+
1549
+ - [DataGridPremium] Add support for lazy-loading (#7130) @m4theushw
1550
+ - [DataGridPremium] Pass `groupId` to the aggregation function (#7143) @m4theushw
1551
+
1552
+ ### `@mui/x-date-pickers@v5.0.10` / `@mui/x-date-pickers-pro@v5.0.10`
1553
+
1554
+ #### Changes
1555
+
1556
+ - [pickers] Initialize date without time when selecting year or month (#7136) @LukasTy
1557
+
1558
+ ### Docs
1559
+
1560
+ - [docs] Fix the nested import on the api pages (#7134) @flaviendelangle
1561
+ - [docs] Keep track of the localization completion (#7099) @alexfauquette
1562
+ - [docs] Update localization doc to use existing locale (#7104) @LukasTy
1563
+
1304
1564
  ## 5.17.14
1305
1565
 
1306
1566
  _Dec 1, 2022_
@@ -1,4 +1,4 @@
1
- import { GridColumns } from '@mui/x-data-grid-premium';
1
+ import { GridColDef } from '@mui/x-data-grid-premium';
2
2
  export type Movie = {
3
3
  id: number;
4
4
  title: string;
@@ -15,5 +15,5 @@ export 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
  };
@@ -69,7 +69,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
69
69
  disableColumnMenu?: boolean | undefined;
70
70
  filterable?: boolean | undefined;
71
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;
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;
73
73
  disableReorder?: boolean | undefined;
74
74
  disableExport?: boolean | undefined;
75
75
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.11
1
+ /** @license MUI v6.0.0-alpha.13
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.11
1
+ /** @license MUI v6.0.0-alpha.13
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.11
1
+ /** @license MUI v6.0.0-alpha.13
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.11
1
+ /** @license MUI v6.0.0-alpha.13
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "6.0.0-alpha.11",
3
+ "version": "6.0.0-alpha.13",
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",
22
+ "@babel/runtime": "^7.20.6",
23
23
  "@mui/base": "^5.0.0-alpha.109",
24
- "@mui/x-data-grid-premium": "6.0.0-alpha.11",
24
+ "@mui/x-data-grid-premium": "6.0.0-alpha.13",
25
25
  "chance": "^1.1.9",
26
26
  "clsx": "^1.2.1",
27
27
  "lru-cache": "^7.14.1"
@@ -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