@mui/x-data-grid 7.0.0-alpha.1 → 7.0.0-alpha.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 +366 -188
- package/components/GridPagination.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/colDef/gridDefaultColumnTypes.js +2 -3
- package/legacy/components/GridPagination.js +3 -4
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +4 -5
- package/legacy/components/containers/GridRootStyles.js +69 -70
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +4 -5
- package/legacy/index.js +1 -1
- package/legacy/locales/arSD.js +1 -1
- package/legacy/locales/heIL.js +1 -2
- package/legacy/utils/domUtils.js +0 -14
- package/locales/arSD.js +1 -1
- package/locales/heIL.js +1 -2
- package/modern/index.js +1 -1
- package/modern/locales/arSD.js +1 -1
- package/modern/locales/heIL.js +1 -2
- package/modern/utils/domUtils.js +0 -14
- package/node/index.js +1 -1
- package/node/locales/arSD.js +1 -1
- package/node/locales/heIL.js +1 -2
- package/node/utils/domUtils.js +0 -17
- package/package.json +5 -4
- package/utils/domUtils.d.ts +0 -3
- package/utils/domUtils.js +0 -14
package/modern/locales/arSD.js
CHANGED
|
@@ -93,7 +93,7 @@ const arSDGrid = {
|
|
|
93
93
|
// Column menu text
|
|
94
94
|
columnMenuLabel: 'القائمة',
|
|
95
95
|
columnMenuShowColumns: 'إظهار الأعمدة',
|
|
96
|
-
|
|
96
|
+
columnMenuManageColumns: 'إدارة الأعمدة',
|
|
97
97
|
columnMenuFilter: 'المرشِح',
|
|
98
98
|
columnMenuHideColumn: 'إخفاء',
|
|
99
99
|
columnMenuUnsort: 'الغاء الفرز',
|
package/modern/locales/heIL.js
CHANGED
package/modern/utils/domUtils.js
CHANGED
|
@@ -5,20 +5,6 @@ export function isOverflown(element) {
|
|
|
5
5
|
export function findParentElementFromClassName(elem, className) {
|
|
6
6
|
return elem.closest(`.${className}`);
|
|
7
7
|
}
|
|
8
|
-
export function getRowEl(cell) {
|
|
9
|
-
if (!cell) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
return findParentElementFromClassName(cell, gridClasses.row);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// TODO remove
|
|
16
|
-
export function isGridCellRoot(elem) {
|
|
17
|
-
return elem != null && elem.classList.contains(gridClasses.cell);
|
|
18
|
-
}
|
|
19
|
-
export function isGridHeaderCellRoot(elem) {
|
|
20
|
-
return elem != null && elem.classList.contains(gridClasses.columnHeader);
|
|
21
|
-
}
|
|
22
8
|
function escapeOperandAttributeSelector(operand) {
|
|
23
9
|
return operand.replace(/["\\]/g, '\\$&');
|
|
24
10
|
}
|
package/node/index.js
CHANGED
package/node/locales/arSD.js
CHANGED
|
@@ -99,7 +99,7 @@ const arSDGrid = {
|
|
|
99
99
|
// Column menu text
|
|
100
100
|
columnMenuLabel: 'القائمة',
|
|
101
101
|
columnMenuShowColumns: 'إظهار الأعمدة',
|
|
102
|
-
|
|
102
|
+
columnMenuManageColumns: 'إدارة الأعمدة',
|
|
103
103
|
columnMenuFilter: 'المرشِح',
|
|
104
104
|
columnMenuHideColumn: 'إخفاء',
|
|
105
105
|
columnMenuUnsort: 'الغاء الفرز',
|
package/node/locales/heIL.js
CHANGED
package/node/utils/domUtils.js
CHANGED
|
@@ -8,9 +8,6 @@ exports.getActiveElement = void 0;
|
|
|
8
8
|
exports.getGridCellElement = getGridCellElement;
|
|
9
9
|
exports.getGridColumnHeaderElement = getGridColumnHeaderElement;
|
|
10
10
|
exports.getGridRowElement = getGridRowElement;
|
|
11
|
-
exports.getRowEl = getRowEl;
|
|
12
|
-
exports.isGridCellRoot = isGridCellRoot;
|
|
13
|
-
exports.isGridHeaderCellRoot = isGridHeaderCellRoot;
|
|
14
11
|
exports.isOverflown = isOverflown;
|
|
15
12
|
var _gridClasses = require("../constants/gridClasses");
|
|
16
13
|
function isOverflown(element) {
|
|
@@ -19,20 +16,6 @@ function isOverflown(element) {
|
|
|
19
16
|
function findParentElementFromClassName(elem, className) {
|
|
20
17
|
return elem.closest(`.${className}`);
|
|
21
18
|
}
|
|
22
|
-
function getRowEl(cell) {
|
|
23
|
-
if (!cell) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return findParentElementFromClassName(cell, _gridClasses.gridClasses.row);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// TODO remove
|
|
30
|
-
function isGridCellRoot(elem) {
|
|
31
|
-
return elem != null && elem.classList.contains(_gridClasses.gridClasses.cell);
|
|
32
|
-
}
|
|
33
|
-
function isGridHeaderCellRoot(elem) {
|
|
34
|
-
return elem != null && elem.classList.contains(_gridClasses.gridClasses.columnHeader);
|
|
35
|
-
}
|
|
36
19
|
function escapeOperandAttributeSelector(operand) {
|
|
37
20
|
return operand.replace(/["\\]/g, '\\$&');
|
|
38
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.2",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"funding": {
|
|
14
14
|
"type": "opencollective",
|
|
15
|
-
"url": "https://opencollective.com/mui"
|
|
15
|
+
"url": "https://opencollective.com/mui-org"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"react-component",
|
|
23
23
|
"material-ui",
|
|
24
24
|
"mui",
|
|
25
|
+
"mui-x",
|
|
25
26
|
"react-table",
|
|
26
27
|
"table",
|
|
27
28
|
"datatable",
|
|
@@ -35,8 +36,8 @@
|
|
|
35
36
|
"directory": "packages/grid/x-data-grid"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.23.
|
|
39
|
-
"@mui/utils": "^5.14.
|
|
39
|
+
"@babel/runtime": "^7.23.4",
|
|
40
|
+
"@mui/utils": "^5.14.18",
|
|
40
41
|
"clsx": "^2.0.0",
|
|
41
42
|
"prop-types": "^15.8.1",
|
|
42
43
|
"reselect": "^4.1.8"
|
package/utils/domUtils.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { GridRowId } from '../models/gridRows';
|
|
2
2
|
export declare function isOverflown(element: Element): boolean;
|
|
3
3
|
export declare function findParentElementFromClassName(elem: Element, className: string): Element | null;
|
|
4
|
-
export declare function getRowEl(cell?: Element | null): HTMLElement | null;
|
|
5
|
-
export declare function isGridCellRoot(elem: Element | null): boolean;
|
|
6
|
-
export declare function isGridHeaderCellRoot(elem: Element | null): boolean;
|
|
7
4
|
export declare function getGridColumnHeaderElement(root: Element, field: string): HTMLDivElement | null;
|
|
8
5
|
export declare function getGridRowElement(root: Element, id: GridRowId): HTMLDivElement | null;
|
|
9
6
|
export declare function getGridCellElement(root: Element, { id, field }: {
|
package/utils/domUtils.js
CHANGED
|
@@ -5,20 +5,6 @@ export function isOverflown(element) {
|
|
|
5
5
|
export function findParentElementFromClassName(elem, className) {
|
|
6
6
|
return elem.closest(`.${className}`);
|
|
7
7
|
}
|
|
8
|
-
export function getRowEl(cell) {
|
|
9
|
-
if (!cell) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
return findParentElementFromClassName(cell, gridClasses.row);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// TODO remove
|
|
16
|
-
export function isGridCellRoot(elem) {
|
|
17
|
-
return elem != null && elem.classList.contains(gridClasses.cell);
|
|
18
|
-
}
|
|
19
|
-
export function isGridHeaderCellRoot(elem) {
|
|
20
|
-
return elem != null && elem.classList.contains(gridClasses.columnHeader);
|
|
21
|
-
}
|
|
22
8
|
function escapeOperandAttributeSelector(operand) {
|
|
23
9
|
return operand.replace(/["\\]/g, '\\$&');
|
|
24
10
|
}
|