@mui/x-data-grid-pro 6.17.0 → 6.18.1
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 +124 -5
- package/DataGridPro/DataGridPro.js +6 -0
- package/hooks/features/columnResize/useGridColumnResize.js +1 -7
- package/hooks/features/treeData/gridTreeDataUtils.d.ts +3 -2
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGridPro.js +6 -0
- package/legacy/hooks/features/columnResize/useGridColumnResize.js +1 -7
- package/legacy/index.js +1 -1
- package/legacy/models/dataSource.js +1 -0
- package/legacy/utils/releaseInfo.js +1 -1
- package/models/dataSource.d.ts +64 -0
- package/models/dataSource.js +1 -0
- package/models/gridApiPro.d.ts +2 -1
- package/modern/DataGridPro/DataGridPro.js +6 -0
- package/modern/hooks/features/columnResize/useGridColumnResize.js +0 -5
- package/modern/index.js +1 -1
- package/modern/models/dataSource.js +1 -0
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGridPro.js +6 -0
- package/node/hooks/features/columnResize/useGridColumnResize.js +0 -5
- package/node/index.js +1 -1
- package/node/models/dataSource.js +5 -0
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +3 -3
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,125 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.18.1
|
|
7
|
+
|
|
8
|
+
_Nov 9, 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
|
+
- ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
|
|
13
|
+
- 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) published
|
|
14
|
+
- 📈 `<ChartsReferenceLine />` component is now available
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@6.18.1`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Fix cell value type in quick filtering v7 (#10884) @cherniavskii
|
|
23
|
+
- [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10947) @michelengelen
|
|
24
|
+
- [DataGrid] Fix `undefined` slot values (#10934) @romgrk
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@6.18.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@6.18.1`, plus:
|
|
29
|
+
|
|
30
|
+
- [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-premium@6.18.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus:
|
|
35
|
+
|
|
36
|
+
- [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii
|
|
37
|
+
|
|
38
|
+
### Date Pickers
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-date-pickers@6.18.1`
|
|
41
|
+
|
|
42
|
+
- [fields] Fix multi input date time field section selection (#10915) @noraleonte
|
|
43
|
+
- [pickers] Always use up-to-date `defaultView` (#10889) @LukasTy
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers-pro@6.18.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-date-pickers@6.18.1`.
|
|
48
|
+
|
|
49
|
+
### Charts / `@mui/x-charts@6.18.1`
|
|
50
|
+
|
|
51
|
+
- [charts] Add `<ChartsReferenceLine />` component (#10597) @wascou
|
|
52
|
+
- [charts] Improve properties JSDoc (#10931) @alexfauquette
|
|
53
|
+
|
|
54
|
+
### Docs
|
|
55
|
+
|
|
56
|
+
- [docs] Fix charts docs as stable (#10888) @alexfauquette
|
|
57
|
+
- [docs] Document how to hide the legend (#10954) @alexfauquette
|
|
58
|
+
|
|
59
|
+
### Core
|
|
60
|
+
|
|
61
|
+
- [core] Adds new alpha version to version select on the docs (#10944) @michelengelen
|
|
62
|
+
- [core] Fix GitHub title tag consistency @oliviertassinari
|
|
63
|
+
|
|
64
|
+
## 6.18.0
|
|
65
|
+
|
|
66
|
+
_Nov 3, 2023_
|
|
67
|
+
|
|
68
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
69
|
+
|
|
70
|
+
- 🎁 The Charts package is now officially stable!
|
|
71
|
+
- 🥧 Pie charts are now animated.
|
|
72
|
+
- 📈 Line charts now support partial data, and can interpolate missing data.
|
|
73
|
+
|
|
74
|
+
<img width="380" alt="line charts with partial data" src="https://github.com/mui/mui-x/assets/45398769/385ecf77-19b2-4a03-8aef-5d547db1d9ad">
|
|
75
|
+
|
|
76
|
+
- ✨ Allow to ignore [diacritics](https://en.wikipedia.org/wiki/Diacritic) when filtering
|
|
77
|
+
- 📚 Documentation improvements
|
|
78
|
+
|
|
79
|
+
### Data Grid
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-data-grid@6.18.0`
|
|
82
|
+
|
|
83
|
+
- [DataGrid] Allow to ignore [diacritics](https://en.wikipedia.org/wiki/Diacritic) when filtering (#10569) @cherniavskii
|
|
84
|
+
- [DataGrid] Fix a typo in `gridFilterApi` (#10786) @vu-dao-93
|
|
85
|
+
- [DataGrid] Fix `undefined` row id (#10670) @romgrk
|
|
86
|
+
- [DataGrid] Make column autosizing work with dynamic row height (#10693) @cherniavskii
|
|
87
|
+
- [l10n] Allow to customize sorting label per column (#10839) @JerryWu1234
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-data-grid-pro@6.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
90
|
+
|
|
91
|
+
Same changes as in `@mui/x-data-grid@6.18.0`.
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-data-grid-premium@6.18.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.0`.
|
|
96
|
+
|
|
97
|
+
### Date Pickers
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-date-pickers@6.18.0`
|
|
100
|
+
|
|
101
|
+
- [pickers] Add reference links to calendar components (#10644) @michelengelen
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-date-pickers-pro@6.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
104
|
+
|
|
105
|
+
Same changes as in `@mui/x-date-pickers@6.18.0`.
|
|
106
|
+
|
|
107
|
+
### Charts / `@mui/x-charts@6.18.0`
|
|
108
|
+
|
|
109
|
+
- [charts] Add animation on pie chart (#10782) @alexfauquette
|
|
110
|
+
- [charts] Add reference links to shared/misc chart components (#10660) @michelengelen
|
|
111
|
+
- [charts] Allows to connect nulls (#10803) @alexfauquette
|
|
112
|
+
- [charts] Fix axis highlight in dark mode (#10820) @LukasTy
|
|
113
|
+
|
|
114
|
+
### Docs
|
|
115
|
+
|
|
116
|
+
- [docs] Add a data grid recipe for autosizing columns after fetching row-data (#10822) @michelengelen
|
|
117
|
+
- [docs] Add a data grid recipe showing how to remove cell outline on `focus` (#10843) @michelengelen
|
|
118
|
+
- [docs] Add demo about how to use charts margin (#10886) @alexfauquette
|
|
119
|
+
- [docs] Improve custom field input demos readability (#10559) @LukasTy
|
|
120
|
+
|
|
121
|
+
### Core
|
|
122
|
+
|
|
123
|
+
- [core] Generate `slot` API descriptions based on `slots` or `components` (#10879) @LukasTy
|
|
124
|
+
|
|
6
125
|
## 6.17.0
|
|
7
126
|
|
|
8
127
|
_Oct 27, 2023_
|
|
@@ -296,7 +415,7 @@ Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
|
|
|
296
415
|
|
|
297
416
|
- [core] Fix casing consistency with legal and marketing content @oliviertassinari
|
|
298
417
|
- [core] Revert the link in the priority support ticket description (#10517) @michelengelen
|
|
299
|
-
- [
|
|
418
|
+
- [changelog] Polish image @oliviertassinari
|
|
300
419
|
|
|
301
420
|
## 6.16.0
|
|
302
421
|
|
|
@@ -1088,7 +1207,7 @@ Same changes as in `@mui/x-date-pickers@6.10.1`.
|
|
|
1088
1207
|
### Core
|
|
1089
1208
|
|
|
1090
1209
|
- [core] Add `validate` command (#9714) @romgrk
|
|
1091
|
-
- [
|
|
1210
|
+
- [changelog] Update generator to new format @oliviertassinari
|
|
1092
1211
|
|
|
1093
1212
|
## 6.10.0
|
|
1094
1213
|
|
|
@@ -1146,7 +1265,7 @@ Same changes as in `@mui/x-date-pickers@6.10.0`.
|
|
|
1146
1265
|
|
|
1147
1266
|
- [core] Disambiguate eslint plugin name @oliviertassinari
|
|
1148
1267
|
- [core] Update priority support issue template and prompt (#9574) @DanailH
|
|
1149
|
-
- [
|
|
1268
|
+
- [changelog] Clarify each plan (#9446) @oliviertassinari
|
|
1150
1269
|
- [license] Fix error terminology (#9614) @oliviertassinari
|
|
1151
1270
|
|
|
1152
1271
|
## 6.9.2
|
|
@@ -1295,8 +1414,8 @@ Same changes as in `@mui/x-date-pickers@6.9.1`.
|
|
|
1295
1414
|
- [core] Fix priority support prompt action (#9472) @DanailH
|
|
1296
1415
|
- [core] Update `uses` for priority support action (#9480) @DanailH
|
|
1297
1416
|
- [core] Bumb update monorepo (#9476) @alexfauquette
|
|
1298
|
-
- [
|
|
1299
|
-
- [
|
|
1417
|
+
- [changelog] Fix media quality (#9439) @oliviertassinari
|
|
1418
|
+
- [changelog] Remove height img attribute @oliviertassinari
|
|
1300
1419
|
- [test] Skip flaky row pinning tests in JSDOM (#9511) @cherniavskii
|
|
1301
1420
|
|
|
1302
1421
|
## 6.9.0
|
|
@@ -390,6 +390,12 @@ DataGridProRaw.propTypes = {
|
|
|
390
390
|
* @default false
|
|
391
391
|
*/
|
|
392
392
|
hideFooterSelectedRowCount: PropTypes.bool,
|
|
393
|
+
/**
|
|
394
|
+
* If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
|
|
395
|
+
* E.g. when filter value is `cafe`, the rows with `café` will be visible.
|
|
396
|
+
* @default false
|
|
397
|
+
*/
|
|
398
|
+
ignoreDiacritics: PropTypes.bool,
|
|
393
399
|
/**
|
|
394
400
|
* The initial state of the DataGridPro.
|
|
395
401
|
* The data in it will be set in the state on initialization but will not be controlled.
|
|
@@ -134,13 +134,7 @@ function extractColumnWidths(apiRef, options, columns) {
|
|
|
134
134
|
columns.forEach(column => {
|
|
135
135
|
const cells = findGridCells(apiRef.current, column.field);
|
|
136
136
|
const widths = cells.map(cell => {
|
|
137
|
-
var
|
|
138
|
-
const id = (_getAttribute = cell.parentElement.getAttribute('data-id')) != null ? _getAttribute : '';
|
|
139
|
-
const hasAutoHeight = apiRef.current.rowHasAutoHeight(id);
|
|
140
|
-
if (hasAutoHeight) {
|
|
141
|
-
var _computedWidth;
|
|
142
|
-
return (_computedWidth = column.computedWidth) != null ? _computedWidth : column.width;
|
|
143
|
-
}
|
|
137
|
+
var _cell$firstElementChi, _cell$firstElementChi2;
|
|
144
138
|
const style = window.getComputedStyle(cell, null);
|
|
145
139
|
const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
|
|
146
140
|
const contentWidth = (_cell$firstElementChi = (_cell$firstElementChi2 = cell.firstElementChild) == null ? void 0 : _cell$firstElementChi2.getBoundingClientRect().width) != null ? _cell$firstElementChi : 0;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GridRowTreeConfig, GridFilterState, GridFilterModel } from '@mui/x-data-grid';
|
|
3
|
-
import { GridAggregatedFilterItemApplier
|
|
3
|
+
import { GridAggregatedFilterItemApplier } from '@mui/x-data-grid/internals';
|
|
4
|
+
import type { GridPrivateApiPro } from '../../../models/gridApiPro';
|
|
4
5
|
interface FilterRowTreeFromTreeDataParams {
|
|
5
6
|
rowTree: GridRowTreeConfig;
|
|
6
7
|
disableChildrenFiltering: boolean;
|
|
7
8
|
isRowMatchingFilters: GridAggregatedFilterItemApplier | null;
|
|
8
9
|
filterModel: GridFilterModel;
|
|
9
|
-
apiRef: React.MutableRefObject<
|
|
10
|
+
apiRef: React.MutableRefObject<GridPrivateApiPro>;
|
|
10
11
|
}
|
|
11
12
|
export declare const TREE_DATA_STRATEGY = "tree-data";
|
|
12
13
|
/**
|
package/index.js
CHANGED
|
@@ -390,6 +390,12 @@ DataGridProRaw.propTypes = {
|
|
|
390
390
|
* @default false
|
|
391
391
|
*/
|
|
392
392
|
hideFooterSelectedRowCount: PropTypes.bool,
|
|
393
|
+
/**
|
|
394
|
+
* If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
|
|
395
|
+
* E.g. when filter value is `cafe`, the rows with `café` will be visible.
|
|
396
|
+
* @default false
|
|
397
|
+
*/
|
|
398
|
+
ignoreDiacritics: PropTypes.bool,
|
|
393
399
|
/**
|
|
394
400
|
* The initial state of the DataGridPro.
|
|
395
401
|
* The data in it will be set in the state on initialization but will not be controlled.
|
|
@@ -143,13 +143,7 @@ function extractColumnWidths(apiRef, options, columns) {
|
|
|
143
143
|
columns.forEach(function (column) {
|
|
144
144
|
var cells = findGridCells(apiRef.current, column.field);
|
|
145
145
|
var widths = cells.map(function (cell) {
|
|
146
|
-
var
|
|
147
|
-
var id = (_getAttribute = cell.parentElement.getAttribute('data-id')) != null ? _getAttribute : '';
|
|
148
|
-
var hasAutoHeight = apiRef.current.rowHasAutoHeight(id);
|
|
149
|
-
if (hasAutoHeight) {
|
|
150
|
-
var _computedWidth;
|
|
151
|
-
return (_computedWidth = column.computedWidth) != null ? _computedWidth : column.width;
|
|
152
|
-
}
|
|
146
|
+
var _cell$firstElementChi, _cell$firstElementChi2;
|
|
153
147
|
var style = window.getComputedStyle(cell, null);
|
|
154
148
|
var paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
|
|
155
149
|
var contentWidth = (_cell$firstElementChi = (_cell$firstElementChi2 = cell.firstElementChild) == null ? void 0 : _cell$firstElementChi2.getBoundingClientRect().width) != null ? _cell$firstElementChi : 0;
|
package/legacy/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { GridSortModel, GridFilterModel, GridColDef, GridRowModel, GridPaginationModel } from '@mui/x-data-grid';
|
|
2
|
+
interface GetRowsParams {
|
|
3
|
+
sortModel: GridSortModel;
|
|
4
|
+
filterModel: GridFilterModel;
|
|
5
|
+
/**
|
|
6
|
+
* Alternate to `start` and `end`, maps to `GridPaginationModel` interface
|
|
7
|
+
*/
|
|
8
|
+
paginationModel: GridPaginationModel;
|
|
9
|
+
/**
|
|
10
|
+
* First row index to fetch (number) or cursor information (number | string)
|
|
11
|
+
*/
|
|
12
|
+
start: number | string;
|
|
13
|
+
/**
|
|
14
|
+
* Last row index to fetch
|
|
15
|
+
*/
|
|
16
|
+
end: number;
|
|
17
|
+
/**
|
|
18
|
+
* Array of keys returned by `getGroupKey` of all the parent rows until the row for which the data is requested
|
|
19
|
+
* `getGroupKey` prop must be implemented to use this
|
|
20
|
+
* Useful for `treeData` and `rowGrouping` only
|
|
21
|
+
*/
|
|
22
|
+
groupKeys: string[];
|
|
23
|
+
/**
|
|
24
|
+
* List of grouped columns (only applicable with `rowGrouping`)
|
|
25
|
+
*/
|
|
26
|
+
groupFields: GridColDef['field'][];
|
|
27
|
+
}
|
|
28
|
+
interface GetRowsResponse {
|
|
29
|
+
rows: GridRowModel[];
|
|
30
|
+
/**
|
|
31
|
+
* To reflect updates in total `rowCount` (optional)
|
|
32
|
+
* Useful when the `rowCount` is inaccurate (e.g. when filtering) or not available upfront
|
|
33
|
+
*/
|
|
34
|
+
rowCount?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Additional `pageInfo` to help the grid determine if there are more rows to fetch (corner-cases)
|
|
37
|
+
* `hasNextPage`: When row count is unknown/inaccurate, if `truncated` is set or rowCount is not known, data will keep loading until `hasNextPage` is `false`
|
|
38
|
+
* `truncated`: To reflect `rowCount` is inaccurate (will trigger `x-y of many` in pagination after the count of rows fetched is greater than provided `rowCount`)
|
|
39
|
+
* It could be useful with:
|
|
40
|
+
* 1. Cursor based pagination:
|
|
41
|
+
* When rowCount is not known, grid will check for `hasNextPage` to determine
|
|
42
|
+
* if there are more rows to fetch.
|
|
43
|
+
* 2. Inaccurate `rowCount`:
|
|
44
|
+
* `truncated: true` will let the grid know that `rowCount` is estimated/truncated.
|
|
45
|
+
* Thus `hasNextPage` will come into play to check more rows are available to fetch after the number becomes >= provided `rowCount`
|
|
46
|
+
*/
|
|
47
|
+
pageInfo?: {
|
|
48
|
+
hasNextPage?: boolean;
|
|
49
|
+
truncated?: number;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface DataSource {
|
|
53
|
+
/**
|
|
54
|
+
Fetcher Functions:
|
|
55
|
+
- `getRows` is required
|
|
56
|
+
- `updateRow` is optional
|
|
57
|
+
|
|
58
|
+
`getRows` will be used by the grid to fetch data for the current page or children for the current parent group
|
|
59
|
+
It may return a `rowCount` to update the total count of rows in the grid along with the optional `pageInfo`
|
|
60
|
+
*/
|
|
61
|
+
getRows(params: GetRowsParams): Promise<GetRowsResponse>;
|
|
62
|
+
updateRow?(rows: GridRowModel): Promise<any>;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/gridApiPro.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ import { GridApiCommon, GridColumnReorderApi, GridRowMultiSelectionApi, GridRowP
|
|
|
2
2
|
import { GridPrivateOnlyApiCommon } from '@mui/x-data-grid/internals';
|
|
3
3
|
import { GridInitialStatePro, GridStatePro } from './gridStatePro';
|
|
4
4
|
import type { GridColumnPinningApi, GridColumnResizeApi, GridDetailPanelApi, GridRowPinningApi, GridDetailPanelPrivateApi } from '../hooks';
|
|
5
|
+
import type { DataGridProProcessedProps } from './dataGridProProps';
|
|
5
6
|
/**
|
|
6
7
|
* The api of `DataGridPro`.
|
|
7
8
|
*/
|
|
8
9
|
export interface GridApiPro extends GridApiCommon<GridStatePro, GridInitialStatePro>, GridRowProApi, GridColumnPinningApi, GridColumnResizeApi, GridDetailPanelApi, GridRowPinningApi, GridRowMultiSelectionApi, GridColumnReorderApi {
|
|
9
10
|
}
|
|
10
|
-
export interface GridPrivateApiPro extends GridApiPro, GridPrivateOnlyApiCommon<GridApiPro, GridPrivateApiPro>, GridDetailPanelPrivateApi {
|
|
11
|
+
export interface GridPrivateApiPro extends GridApiPro, GridPrivateOnlyApiCommon<GridApiPro, GridPrivateApiPro, DataGridProProcessedProps>, GridDetailPanelPrivateApi {
|
|
11
12
|
}
|
|
@@ -390,6 +390,12 @@ DataGridProRaw.propTypes = {
|
|
|
390
390
|
* @default false
|
|
391
391
|
*/
|
|
392
392
|
hideFooterSelectedRowCount: PropTypes.bool,
|
|
393
|
+
/**
|
|
394
|
+
* If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
|
|
395
|
+
* E.g. when filter value is `cafe`, the rows with `café` will be visible.
|
|
396
|
+
* @default false
|
|
397
|
+
*/
|
|
398
|
+
ignoreDiacritics: PropTypes.bool,
|
|
393
399
|
/**
|
|
394
400
|
* The initial state of the DataGridPro.
|
|
395
401
|
* The data in it will be set in the state on initialization but will not be controlled.
|
|
@@ -134,11 +134,6 @@ function extractColumnWidths(apiRef, options, columns) {
|
|
|
134
134
|
columns.forEach(column => {
|
|
135
135
|
const cells = findGridCells(apiRef.current, column.field);
|
|
136
136
|
const widths = cells.map(cell => {
|
|
137
|
-
const id = cell.parentElement.getAttribute('data-id') ?? '';
|
|
138
|
-
const hasAutoHeight = apiRef.current.rowHasAutoHeight(id);
|
|
139
|
-
if (hasAutoHeight) {
|
|
140
|
-
return column.computedWidth ?? column.width;
|
|
141
|
-
}
|
|
142
137
|
const style = window.getComputedStyle(cell, null);
|
|
143
138
|
const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
|
|
144
139
|
const contentWidth = cell.firstElementChild?.getBoundingClientRect().width ?? 0;
|
package/modern/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -398,6 +398,12 @@ DataGridProRaw.propTypes = {
|
|
|
398
398
|
* @default false
|
|
399
399
|
*/
|
|
400
400
|
hideFooterSelectedRowCount: _propTypes.default.bool,
|
|
401
|
+
/**
|
|
402
|
+
* If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
|
|
403
|
+
* E.g. when filter value is `cafe`, the rows with `café` will be visible.
|
|
404
|
+
* @default false
|
|
405
|
+
*/
|
|
406
|
+
ignoreDiacritics: _propTypes.default.bool,
|
|
401
407
|
/**
|
|
402
408
|
* The initial state of the DataGridPro.
|
|
403
409
|
* The data in it will be set in the state on initialization but will not be controlled.
|
|
@@ -143,11 +143,6 @@ function extractColumnWidths(apiRef, options, columns) {
|
|
|
143
143
|
columns.forEach(column => {
|
|
144
144
|
const cells = (0, _domUtils.findGridCells)(apiRef.current, column.field);
|
|
145
145
|
const widths = cells.map(cell => {
|
|
146
|
-
const id = cell.parentElement.getAttribute('data-id') ?? '';
|
|
147
|
-
const hasAutoHeight = apiRef.current.rowHasAutoHeight(id);
|
|
148
|
-
if (hasAutoHeight) {
|
|
149
|
-
return column.computedWidth ?? column.width;
|
|
150
|
-
}
|
|
151
146
|
const style = window.getComputedStyle(cell, null);
|
|
152
147
|
const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
|
|
153
148
|
const contentWidth = cell.firstElementChild?.getBoundingClientRect().width ?? 0;
|
package/node/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.18.1",
|
|
4
4
|
"description": "The Pro plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.23.2",
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
36
|
-
"@mui/x-data-grid": "6.
|
|
35
|
+
"@mui/utils": "^5.14.16",
|
|
36
|
+
"@mui/x-data-grid": "6.18.1",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"@types/format-util": "^1.0.3",
|
|
39
39
|
"clsx": "^2.0.0",
|
package/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|