@mui/x-data-grid 8.0.0-beta.0 → 8.0.0-beta.2
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 +171 -0
- package/DataGrid/DataGrid.js +2 -0
- package/components/GridRow.js +3 -8
- package/components/GridShadowScrollArea.js +43 -35
- package/components/cell/GridBooleanCell.d.ts +1 -2
- package/components/cell/GridEditSingleSelectCell.d.ts +4 -4
- package/components/cell/GridEditSingleSelectCell.js +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/components/containers/GridToolbarContainer.js +5 -3
- package/components/quickFilter/QuickFilter.d.ts +26 -3
- package/components/quickFilter/QuickFilter.js +103 -19
- package/components/quickFilter/QuickFilterClear.js +10 -4
- package/components/quickFilter/QuickFilterContext.d.ts +4 -1
- package/components/quickFilter/QuickFilterControl.js +36 -10
- package/components/quickFilter/QuickFilterTrigger.d.ts +28 -0
- package/components/quickFilter/QuickFilterTrigger.js +211 -0
- package/components/quickFilter/index.d.ts +2 -1
- package/components/quickFilter/index.js +11 -0
- package/components/toolbar/GridToolbarColumnsButton.d.ts +3 -4
- package/components/toolbar/GridToolbarDensitySelector.d.ts +3 -4
- package/components/toolbar/GridToolbarExport.d.ts +3 -4
- package/components/toolbar/GridToolbarExportContainer.d.ts +3 -4
- package/components/toolbar/GridToolbarFilterButton.d.ts +4 -6
- package/components/toolbar/GridToolbarFilterButton.js +1 -4
- package/components/toolbar/GridToolbarQuickFilter.js +101 -41
- package/components/toolbarV8/GridToolbar.js +22 -19
- package/components/toolbarV8/Toolbar.d.ts +1 -1
- package/components/toolbarV8/Toolbar.js +76 -23
- package/components/toolbarV8/ToolbarButton.js +34 -14
- package/components/toolbarV8/ToolbarContext.d.ts +4 -2
- package/constants/gridClasses.d.ts +12 -0
- package/constants/gridClasses.js +1 -1
- package/esm/DataGrid/DataGrid.js +2 -0
- package/esm/components/GridRow.js +4 -9
- package/esm/components/GridShadowScrollArea.js +43 -35
- package/esm/components/cell/GridBooleanCell.d.ts +1 -2
- package/esm/components/cell/GridEditSingleSelectCell.d.ts +4 -4
- package/esm/components/cell/GridEditSingleSelectCell.js +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/esm/components/containers/GridToolbarContainer.js +5 -3
- package/esm/components/quickFilter/QuickFilter.d.ts +26 -3
- package/esm/components/quickFilter/QuickFilter.js +101 -17
- package/esm/components/quickFilter/QuickFilterClear.js +10 -4
- package/esm/components/quickFilter/QuickFilterContext.d.ts +4 -1
- package/esm/components/quickFilter/QuickFilterControl.js +36 -10
- package/esm/components/quickFilter/QuickFilterTrigger.d.ts +28 -0
- package/esm/components/quickFilter/QuickFilterTrigger.js +204 -0
- package/esm/components/quickFilter/index.d.ts +2 -1
- package/esm/components/quickFilter/index.js +2 -1
- package/esm/components/toolbar/GridToolbarColumnsButton.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarDensitySelector.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarExport.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarExportContainer.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarFilterButton.d.ts +4 -6
- package/esm/components/toolbar/GridToolbarFilterButton.js +1 -4
- package/esm/components/toolbar/GridToolbarQuickFilter.js +102 -44
- package/esm/components/toolbarV8/GridToolbar.js +22 -19
- package/esm/components/toolbarV8/Toolbar.d.ts +1 -1
- package/esm/components/toolbarV8/Toolbar.js +75 -22
- package/esm/components/toolbarV8/ToolbarButton.js +34 -14
- package/esm/components/toolbarV8/ToolbarContext.d.ts +4 -2
- package/esm/constants/gridClasses.d.ts +12 -0
- package/esm/constants/gridClasses.js +1 -1
- package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/esm/hooks/features/columns/useGridColumns.js +0 -1
- package/esm/hooks/features/dimensions/useGridDimensions.js +1 -1
- package/esm/hooks/features/editing/useGridRowEditing.js +1 -1
- package/esm/hooks/features/filter/useGridFilter.js +1 -1
- package/esm/hooks/features/pagination/useGridPaginationModel.js +1 -1
- package/esm/hooks/features/virtualization/useGridVirtualScroller.js +12 -1
- package/esm/index.js +1 -1
- package/esm/locales/deDE.js +13 -13
- package/esm/material/index.js +1 -2
- package/esm/models/props/DataGridProps.d.ts +6 -2
- package/esm/utils/utils.d.ts +0 -27
- package/esm/utils/utils.js +0 -122
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +2 -2
- package/hooks/features/columns/useGridColumns.js +0 -1
- package/hooks/features/dimensions/useGridDimensions.js +2 -2
- package/hooks/features/editing/useGridRowEditing.js +1 -1
- package/hooks/features/filter/useGridFilter.js +3 -3
- package/hooks/features/pagination/useGridPaginationModel.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.js +11 -0
- package/index.js +1 -1
- package/locales/deDE.js +13 -13
- package/material/index.js +1 -2
- package/models/props/DataGridProps.d.ts +6 -2
- package/modern/DataGrid/DataGrid.js +2 -0
- package/modern/components/GridRow.js +4 -9
- package/modern/components/GridShadowScrollArea.js +43 -35
- package/modern/components/cell/GridBooleanCell.d.ts +1 -2
- package/modern/components/cell/GridEditSingleSelectCell.d.ts +4 -4
- package/modern/components/cell/GridEditSingleSelectCell.js +1 -1
- package/modern/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/modern/components/containers/GridToolbarContainer.js +5 -3
- package/modern/components/quickFilter/QuickFilter.d.ts +26 -3
- package/modern/components/quickFilter/QuickFilter.js +101 -17
- package/modern/components/quickFilter/QuickFilterClear.js +10 -4
- package/modern/components/quickFilter/QuickFilterContext.d.ts +4 -1
- package/modern/components/quickFilter/QuickFilterControl.js +36 -10
- package/modern/components/quickFilter/QuickFilterTrigger.d.ts +28 -0
- package/modern/components/quickFilter/QuickFilterTrigger.js +204 -0
- package/modern/components/quickFilter/index.d.ts +2 -1
- package/modern/components/quickFilter/index.js +2 -1
- package/modern/components/toolbar/GridToolbarColumnsButton.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarDensitySelector.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarExport.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarExportContainer.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarFilterButton.d.ts +4 -6
- package/modern/components/toolbar/GridToolbarFilterButton.js +1 -4
- package/modern/components/toolbar/GridToolbarQuickFilter.js +102 -44
- package/modern/components/toolbarV8/GridToolbar.js +22 -19
- package/modern/components/toolbarV8/Toolbar.d.ts +1 -1
- package/modern/components/toolbarV8/Toolbar.js +75 -22
- package/modern/components/toolbarV8/ToolbarButton.js +34 -14
- package/modern/components/toolbarV8/ToolbarContext.d.ts +4 -2
- package/modern/constants/gridClasses.d.ts +12 -0
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/modern/hooks/features/columns/useGridColumns.js +0 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +1 -1
- package/modern/hooks/features/editing/useGridRowEditing.js +1 -1
- package/modern/hooks/features/filter/useGridFilter.js +1 -1
- package/modern/hooks/features/pagination/useGridPaginationModel.js +1 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +12 -1
- package/modern/index.js +1 -1
- package/modern/locales/deDE.js +13 -13
- package/modern/material/index.js +1 -2
- package/modern/models/props/DataGridProps.d.ts +6 -2
- package/modern/utils/utils.d.ts +0 -27
- package/modern/utils/utils.js +0 -122
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/utils.d.ts +0 -27
- package/utils/utils.js +0 -123
|
@@ -13,7 +13,7 @@ import { useGridRootProps } from "../../utils/useGridRootProps.js";
|
|
|
13
13
|
import { useGridSelector } from "../../utils/useGridSelector.js";
|
|
14
14
|
import { useRunOnce } from "../../utils/useRunOnce.js";
|
|
15
15
|
import { gridVisibleColumnDefinitionsSelector, gridVisiblePinnedColumnDefinitionsSelector, gridColumnPositionsSelector, gridHasColSpanSelector } from "../columns/gridColumnsSelector.js";
|
|
16
|
-
import { gridPinnedRowsSelector } from "../rows/gridRowsSelector.js";
|
|
16
|
+
import { gridPinnedRowsSelector, gridRowTreeSelector } from "../rows/gridRowsSelector.js";
|
|
17
17
|
import { useGridVisibleRows, getVisibleRows } from "../../utils/useGridVisibleRows.js";
|
|
18
18
|
import { useGridApiOptionHandler } from "../../utils/index.js";
|
|
19
19
|
import * as platform from "../../../utils/platform.js";
|
|
@@ -259,6 +259,7 @@ export const useGridVirtualScroller = () => {
|
|
|
259
259
|
if (!params.rows && !currentPage.range) {
|
|
260
260
|
return [];
|
|
261
261
|
}
|
|
262
|
+
const rowTree = gridRowTreeSelector(apiRef);
|
|
262
263
|
let baseRenderContext = renderContext;
|
|
263
264
|
if (params.renderContext) {
|
|
264
265
|
baseRenderContext = params.renderContext;
|
|
@@ -304,6 +305,16 @@ export const useGridVirtualScroller = () => {
|
|
|
304
305
|
id,
|
|
305
306
|
model
|
|
306
307
|
} = rowModels[rowIndexInPage];
|
|
308
|
+
|
|
309
|
+
// In certain cases, the state might already be updated and `currentPage.rows` (which sets `rowModels`)
|
|
310
|
+
// contains stale data.
|
|
311
|
+
// In that case, skip any further row processing.
|
|
312
|
+
// See:
|
|
313
|
+
// - https://github.com/mui/mui-x/issues/16638
|
|
314
|
+
// - https://github.com/mui/mui-x/issues/17022
|
|
315
|
+
if (!rowTree[id]) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
307
318
|
const rowIndex = (currentPage?.range?.firstRowIndex || 0) + rowIndexOffset + rowIndexInPage;
|
|
308
319
|
|
|
309
320
|
// NOTE: This is an expensive feature, the colSpan code could be optimized.
|
package/modern/index.js
CHANGED
package/modern/locales/deDE.js
CHANGED
|
@@ -108,7 +108,7 @@ const deDEGrid = {
|
|
|
108
108
|
filterValueFalse: 'Nein',
|
|
109
109
|
// Column menu text
|
|
110
110
|
columnMenuLabel: 'Menü',
|
|
111
|
-
|
|
111
|
+
columnMenuAriaLabel: columnName => `${columnName} Spaltenmenü`,
|
|
112
112
|
columnMenuShowColumns: 'Zeige alle Spalten',
|
|
113
113
|
columnMenuManageColumns: 'Spalten verwalten',
|
|
114
114
|
columnMenuFilter: 'Filter',
|
|
@@ -155,18 +155,18 @@ const deDEGrid = {
|
|
|
155
155
|
collapseDetailPanel: 'Zuklappen',
|
|
156
156
|
// Pagination
|
|
157
157
|
paginationRowsPerPage: 'Zeilen pro Seite:',
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
158
|
+
paginationDisplayedRows: ({
|
|
159
|
+
from,
|
|
160
|
+
to,
|
|
161
|
+
count,
|
|
162
|
+
estimated
|
|
163
|
+
}) => {
|
|
164
|
+
if (!estimated) {
|
|
165
|
+
return `${from}–${to} von ${count !== -1 ? count : `mehr als ${to}`}`;
|
|
166
|
+
}
|
|
167
|
+
const estimatedLabel = estimated && estimated > to ? `ungefähr ${estimated}` : `mehr als ${to}`;
|
|
168
|
+
return `${from}–${to} von ${count !== -1 ? count : estimatedLabel}`;
|
|
169
|
+
},
|
|
170
170
|
paginationItemAriaLabel: type => {
|
|
171
171
|
if (type === 'first') {
|
|
172
172
|
return 'Zur ersten Seite';
|
package/modern/material/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import MUIInputAdornment, { inputAdornmentClasses } from '@mui/material/InputAdo
|
|
|
38
38
|
import MUITooltip from '@mui/material/Tooltip';
|
|
39
39
|
import MUIPagination, { tablePaginationClasses } from '@mui/material/TablePagination';
|
|
40
40
|
import MUIPopper from '@mui/material/Popper';
|
|
41
|
-
import
|
|
41
|
+
import ClickAwayListener from '@mui/material/ClickAwayListener';
|
|
42
42
|
import MUIGrow from '@mui/material/Grow';
|
|
43
43
|
import MUIPaper from '@mui/material/Paper';
|
|
44
44
|
import MUIInputLabel from '@mui/material/InputLabel';
|
|
@@ -50,7 +50,6 @@ import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
|
50
50
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
51
51
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
52
52
|
export { useMaterialCSSVariables } from "./variables.js";
|
|
53
|
-
const ClickAwayListener = forwardRef(MUIClickAwayListener);
|
|
54
53
|
const InputAdornment = styled(MUIInputAdornment)({
|
|
55
54
|
[`&.${inputAdornmentClasses.positionEnd} .${iconButtonClasses.sizeSmall}`]: {
|
|
56
55
|
marginRight: '-7px'
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
4
|
import { Theme } from '@mui/material/styles';
|
|
5
|
-
import { CommonProps } from '@mui/material/OverridableComponent';
|
|
6
5
|
import { GridDensity } from "../gridDensity.js";
|
|
7
6
|
import { GridEditMode } from "../gridEditRowModel.js";
|
|
8
7
|
import { GridFeatureMode } from "../gridFeatureMode.js";
|
|
@@ -29,6 +28,10 @@ import type { GridAutosizeOptions } from '../../hooks/features/columnResize';
|
|
|
29
28
|
import type { GridDataSource, GridDataSourceCache } from '../gridDataSource';
|
|
30
29
|
import type { GridRowSelectionPropagation } from '../gridRowSelectionModel';
|
|
31
30
|
import type { GridGetRowsError, GridUpdateRowError } from '../../hooks/features/dataSource/gridDataSourceError';
|
|
31
|
+
type CommonProps = {
|
|
32
|
+
className?: string;
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
};
|
|
32
35
|
export interface GridExperimentalFeatures {
|
|
33
36
|
/**
|
|
34
37
|
* Emits a warning if the cell receives focus without also syncing the focus state.
|
|
@@ -853,4 +856,5 @@ export interface DataGridPremiumSharedPropsWithDefaultValue {
|
|
|
853
856
|
/**
|
|
854
857
|
* The props of the Data Grid component after the pre-processing phase.
|
|
855
858
|
*/
|
|
856
|
-
export interface DataGridProcessedProps<R extends GridValidRowModel = any> extends DataGridPropsWithDefaultValues, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithoutDefaultValue<R>, DataGridProSharedPropsWithoutDefaultValue, Partial<DataGridProSharedPropsWithDefaultValue>, Partial<DataGridPremiumSharedPropsWithDefaultValue> {}
|
|
859
|
+
export interface DataGridProcessedProps<R extends GridValidRowModel = any> extends DataGridPropsWithDefaultValues, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithoutDefaultValue<R>, DataGridProSharedPropsWithoutDefaultValue, Partial<DataGridProSharedPropsWithDefaultValue>, Partial<DataGridPremiumSharedPropsWithDefaultValue> {}
|
|
860
|
+
export {};
|
package/modern/utils/utils.d.ts
CHANGED
|
@@ -12,33 +12,6 @@ export declare const clamp: (value: number, min: number, max: number) => number;
|
|
|
12
12
|
* Create an array containing the range [from, to[
|
|
13
13
|
*/
|
|
14
14
|
export declare function range(from: number, to: number): number[];
|
|
15
|
-
/**
|
|
16
|
-
* Based on `fast-deep-equal`
|
|
17
|
-
*
|
|
18
|
-
* MIT License
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) 2017 Evgeny Poberezkin
|
|
21
|
-
*
|
|
22
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
23
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
24
|
-
* in the Software without restriction, including without limitation the rights
|
|
25
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
26
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
27
|
-
* furnished to do so, subject to the following conditions:
|
|
28
|
-
*
|
|
29
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
30
|
-
* copies or substantial portions of the Software.
|
|
31
|
-
*
|
|
32
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
33
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
34
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
35
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
36
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
37
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38
|
-
* SOFTWARE.
|
|
39
|
-
* We only type the public interface to avoid dozens of `as` in the function.
|
|
40
|
-
*/
|
|
41
|
-
export declare function isDeepEqual<T>(actual: any, expected: T): actual is T;
|
|
42
15
|
/**
|
|
43
16
|
* Create a random number generator from a seed. The seed
|
|
44
17
|
* ensures that the random number generator produces the
|
package/modern/utils/utils.js
CHANGED
|
@@ -39,128 +39,6 @@ export function range(from, to) {
|
|
|
39
39
|
}).map((_, i) => from + i);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
/**
|
|
43
|
-
* Based on `fast-deep-equal`
|
|
44
|
-
*
|
|
45
|
-
* MIT License
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) 2017 Evgeny Poberezkin
|
|
48
|
-
*
|
|
49
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
50
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
51
|
-
* in the Software without restriction, including without limitation the rights
|
|
52
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
53
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
54
|
-
* furnished to do so, subject to the following conditions:
|
|
55
|
-
*
|
|
56
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
57
|
-
* copies or substantial portions of the Software.
|
|
58
|
-
*
|
|
59
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
60
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
61
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
62
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
63
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
64
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
65
|
-
* SOFTWARE.
|
|
66
|
-
* We only type the public interface to avoid dozens of `as` in the function.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
export function isDeepEqual(a, b) {
|
|
70
|
-
if (a === b) {
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
if (a && b && typeof a === 'object' && typeof b === 'object') {
|
|
74
|
-
if (a.constructor !== b.constructor) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
if (Array.isArray(a)) {
|
|
78
|
-
const length = a.length;
|
|
79
|
-
if (length !== b.length) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
for (let i = 0; i < length; i += 1) {
|
|
83
|
-
if (!isDeepEqual(a[i], b[i])) {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
if (a instanceof Map && b instanceof Map) {
|
|
90
|
-
if (a.size !== b.size) {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
const entriesA = Array.from(a.entries());
|
|
94
|
-
for (let i = 0; i < entriesA.length; i += 1) {
|
|
95
|
-
if (!b.has(entriesA[i][0])) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
for (let i = 0; i < entriesA.length; i += 1) {
|
|
100
|
-
const entryA = entriesA[i];
|
|
101
|
-
if (!isDeepEqual(entryA[1], b.get(entryA[0]))) {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
if (a instanceof Set && b instanceof Set) {
|
|
108
|
-
if (a.size !== b.size) {
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
const entries = Array.from(a.entries());
|
|
112
|
-
for (let i = 0; i < entries.length; i += 1) {
|
|
113
|
-
if (!b.has(entries[i][0])) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return true;
|
|
118
|
-
}
|
|
119
|
-
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
120
|
-
const length = a.length;
|
|
121
|
-
if (length !== b.length) {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
for (let i = 0; i < length; i += 1) {
|
|
125
|
-
if (a[i] !== b[i]) {
|
|
126
|
-
return false;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return true;
|
|
130
|
-
}
|
|
131
|
-
if (a.constructor === RegExp) {
|
|
132
|
-
return a.source === b.source && a.flags === b.flags;
|
|
133
|
-
}
|
|
134
|
-
if (a.valueOf !== Object.prototype.valueOf) {
|
|
135
|
-
return a.valueOf() === b.valueOf();
|
|
136
|
-
}
|
|
137
|
-
if (a.toString !== Object.prototype.toString) {
|
|
138
|
-
return a.toString() === b.toString();
|
|
139
|
-
}
|
|
140
|
-
const keys = Object.keys(a);
|
|
141
|
-
const length = keys.length;
|
|
142
|
-
if (length !== Object.keys(b).length) {
|
|
143
|
-
return false;
|
|
144
|
-
}
|
|
145
|
-
for (let i = 0; i < length; i += 1) {
|
|
146
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) {
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
for (let i = 0; i < length; i += 1) {
|
|
151
|
-
const key = keys[i];
|
|
152
|
-
if (!isDeepEqual(a[key], b[key])) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// true if both NaN, false otherwise
|
|
160
|
-
// eslint-disable-next-line no-self-compare
|
|
161
|
-
return a !== a && b !== b;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
42
|
// Pseudo random number. See https://stackoverflow.com/a/47593316
|
|
165
43
|
function mulberry32(a) {
|
|
166
44
|
return () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
4
|
"description": "The Community plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"reselect": "^5.1.1",
|
|
45
45
|
"use-sync-external-store": "^1.4.0",
|
|
46
|
-
"@mui/x-internals": "8.0.0-beta.
|
|
46
|
+
"@mui/x-internals": "8.0.0-beta.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|