@mui/x-data-grid 8.28.1 → 8.28.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 +51 -5
- package/components/GridColumnUnsortedIcon.d.ts +5 -2
- package/components/GridColumnUnsortedIcon.js +20 -6
- package/components/index.d.ts +3 -1
- package/components/index.js +10 -2
- package/esm/components/GridColumnUnsortedIcon.d.ts +5 -2
- package/esm/components/GridColumnUnsortedIcon.js +20 -5
- package/esm/components/index.d.ts +3 -1
- package/esm/components/index.js +2 -1
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,57 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
-
## 8.28.
|
|
8
|
+
## 8.28.2
|
|
9
|
+
|
|
10
|
+
_Apr 1, 2026_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 4 contributors who made this release possible.
|
|
13
|
+
|
|
14
|
+
Special thanks go out to this community member for their valuable contribution:
|
|
15
|
+
@mixelburg, @sibananda485
|
|
16
|
+
|
|
17
|
+
The following team members contributed to this release:
|
|
18
|
+
@dav-is, @JCQuintas
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@8.28.2`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Export `GridColumnUnsortedIconProps` for custom column icon slots (#21898) @mixelburg
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@8.28.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@8.28.2`.
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-premium@8.28.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid-pro@8.28.2`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPremium] Fix clipboard paste issue in portal (#21949) @sibananda485
|
|
9
35
|
|
|
10
|
-
|
|
36
|
+
### Charts
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-charts@8.28.2`
|
|
39
|
+
|
|
40
|
+
- [charts] Fix zoom slider preview with discard filter mode (#21906) @JCQuintas
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-charts-pro@8.28.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-charts@8.28.2`.
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-charts-premium@8.28.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
47
|
+
|
|
48
|
+
Same changes as in `@mui/x-charts-pro@8.28.2`.
|
|
49
|
+
|
|
50
|
+
### Docs
|
|
51
|
+
|
|
52
|
+
- [docs] Fix JSDOM → jsdom casing (#21908) @JCQuintas
|
|
53
|
+
|
|
54
|
+
### Core
|
|
55
|
+
|
|
56
|
+
- [docs-infra] Set `SEARCH_INDEX` Env for v8 (#21875) @dav-is
|
|
57
|
+
|
|
58
|
+
## 8.28.1
|
|
11
59
|
|
|
12
60
|
_Mar 26, 2026_
|
|
13
61
|
|
|
@@ -40,9 +88,7 @@ Same changes as in `@mui/x-data-grid-pro@8.28.1`.
|
|
|
40
88
|
|
|
41
89
|
_Mar 19, 2026_
|
|
42
90
|
|
|
43
|
-
We'd like to extend a big thank you to the 5 contributors who made this release possible.
|
|
44
|
-
|
|
45
|
-
TODO INSERT HIGHLIGHTS
|
|
91
|
+
We'd like to extend a big thank you to the 5 contributors who made this release possible.
|
|
46
92
|
|
|
47
93
|
The following team members contributed to this release:
|
|
48
94
|
@alexfauquette, @brijeshb42, @Janpot, @JCQuintas, @sai6855
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import type { GridBaseIconProps } from "../models/gridSlotsComponentsProps.js";
|
|
3
2
|
import type { GridSortDirection } from "../models/gridSortModel.js";
|
|
4
3
|
export interface GridColumnUnsortedIconProps extends GridBaseIconProps {
|
|
5
4
|
sortingOrder: GridSortDirection[];
|
|
6
5
|
}
|
|
7
|
-
|
|
6
|
+
declare function GridColumnUnsortedIcon(props: GridColumnUnsortedIconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
declare namespace GridColumnUnsortedIcon {
|
|
8
|
+
var propTypes: any;
|
|
9
|
+
}
|
|
10
|
+
export { GridColumnUnsortedIcon };
|
|
@@ -5,21 +5,35 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.GridColumnUnsortedIcon =
|
|
8
|
+
exports.GridColumnUnsortedIcon = GridColumnUnsortedIcon;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const _excluded = ["sortingOrder"];
|
|
15
|
-
|
|
16
|
+
function GridColumnUnsortedIcon(props) {
|
|
16
17
|
const {
|
|
17
18
|
sortingOrder
|
|
18
19
|
} = props,
|
|
19
20
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
20
|
-
const
|
|
21
|
+
const {
|
|
22
|
+
slots
|
|
23
|
+
} = (0, _useGridRootProps.useGridRootProps)();
|
|
21
24
|
const [nextSortDirection] = sortingOrder;
|
|
22
|
-
const Icon = nextSortDirection === 'asc' ?
|
|
25
|
+
const Icon = nextSortDirection === 'asc' ? slots.columnSortedAscendingIcon : slots.columnSortedDescendingIcon;
|
|
23
26
|
return Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, (0, _extends2.default)({}, other)) : null;
|
|
24
|
-
}
|
|
25
|
-
|
|
27
|
+
}
|
|
28
|
+
process.env.NODE_ENV !== "production" ? GridColumnUnsortedIcon.propTypes = {
|
|
29
|
+
// ----------------------------- Warning --------------------------------
|
|
30
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
31
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
32
|
+
// ----------------------------------------------------------------------
|
|
33
|
+
className: _propTypes.default.string,
|
|
34
|
+
color: _propTypes.default.string,
|
|
35
|
+
fontSize: _propTypes.default.oneOf(['inherit', 'large', 'medium', 'small']),
|
|
36
|
+
sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])).isRequired,
|
|
37
|
+
style: _propTypes.default.object,
|
|
38
|
+
titleAccess: _propTypes.default.string
|
|
39
|
+
} : void 0;
|
package/components/index.d.ts
CHANGED
|
@@ -23,4 +23,6 @@ export * from "./columnsPanel/index.js";
|
|
|
23
23
|
export * from "./export/index.js";
|
|
24
24
|
export * from "./filterPanel/index.js";
|
|
25
25
|
export * from "./toolbarV8/index.js";
|
|
26
|
-
export * from "./quickFilter/index.js";
|
|
26
|
+
export * from "./quickFilter/index.js";
|
|
27
|
+
export { GridColumnUnsortedIcon } from "./GridColumnUnsortedIcon.js";
|
|
28
|
+
export type { GridColumnUnsortedIconProps } from "./GridColumnUnsortedIcon.js";
|
package/components/index.js
CHANGED
|
@@ -4,8 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
GridPagination: true
|
|
7
|
+
GridPagination: true,
|
|
8
|
+
GridColumnUnsortedIcon: true
|
|
8
9
|
};
|
|
10
|
+
Object.defineProperty(exports, "GridColumnUnsortedIcon", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _GridColumnUnsortedIcon.GridColumnUnsortedIcon;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
9
16
|
Object.defineProperty(exports, "GridPagination", {
|
|
10
17
|
enumerable: true,
|
|
11
18
|
get: function () {
|
|
@@ -312,4 +319,5 @@ Object.keys(_quickFilter).forEach(function (key) {
|
|
|
312
319
|
return _quickFilter[key];
|
|
313
320
|
}
|
|
314
321
|
});
|
|
315
|
-
});
|
|
322
|
+
});
|
|
323
|
+
var _GridColumnUnsortedIcon = require("./GridColumnUnsortedIcon");
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import type { GridBaseIconProps } from "../models/gridSlotsComponentsProps.js";
|
|
3
2
|
import type { GridSortDirection } from "../models/gridSortModel.js";
|
|
4
3
|
export interface GridColumnUnsortedIconProps extends GridBaseIconProps {
|
|
5
4
|
sortingOrder: GridSortDirection[];
|
|
6
5
|
}
|
|
7
|
-
|
|
6
|
+
declare function GridColumnUnsortedIcon(props: GridColumnUnsortedIconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
declare namespace GridColumnUnsortedIcon {
|
|
8
|
+
var propTypes: any;
|
|
9
|
+
}
|
|
10
|
+
export { GridColumnUnsortedIcon };
|
|
@@ -2,16 +2,31 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["sortingOrder"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
5
6
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
+
function GridColumnUnsortedIcon(props) {
|
|
8
9
|
const {
|
|
9
10
|
sortingOrder
|
|
10
11
|
} = props,
|
|
11
12
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
12
|
-
const
|
|
13
|
+
const {
|
|
14
|
+
slots
|
|
15
|
+
} = useGridRootProps();
|
|
13
16
|
const [nextSortDirection] = sortingOrder;
|
|
14
|
-
const Icon = nextSortDirection === 'asc' ?
|
|
17
|
+
const Icon = nextSortDirection === 'asc' ? slots.columnSortedAscendingIcon : slots.columnSortedDescendingIcon;
|
|
15
18
|
return Icon ? /*#__PURE__*/_jsx(Icon, _extends({}, other)) : null;
|
|
16
|
-
}
|
|
17
|
-
|
|
19
|
+
}
|
|
20
|
+
process.env.NODE_ENV !== "production" ? GridColumnUnsortedIcon.propTypes = {
|
|
21
|
+
// ----------------------------- Warning --------------------------------
|
|
22
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
23
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
24
|
+
// ----------------------------------------------------------------------
|
|
25
|
+
className: PropTypes.string,
|
|
26
|
+
color: PropTypes.string,
|
|
27
|
+
fontSize: PropTypes.oneOf(['inherit', 'large', 'medium', 'small']),
|
|
28
|
+
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])).isRequired,
|
|
29
|
+
style: PropTypes.object,
|
|
30
|
+
titleAccess: PropTypes.string
|
|
31
|
+
} : void 0;
|
|
32
|
+
export { GridColumnUnsortedIcon };
|
|
@@ -23,4 +23,6 @@ export * from "./columnsPanel/index.js";
|
|
|
23
23
|
export * from "./export/index.js";
|
|
24
24
|
export * from "./filterPanel/index.js";
|
|
25
25
|
export * from "./toolbarV8/index.js";
|
|
26
|
-
export * from "./quickFilter/index.js";
|
|
26
|
+
export * from "./quickFilter/index.js";
|
|
27
|
+
export { GridColumnUnsortedIcon } from "./GridColumnUnsortedIcon.js";
|
|
28
|
+
export type { GridColumnUnsortedIconProps } from "./GridColumnUnsortedIcon.js";
|
package/esm/components/index.js
CHANGED
|
@@ -23,4 +23,5 @@ export * from "./columnsPanel/index.js";
|
|
|
23
23
|
export * from "./export/index.js";
|
|
24
24
|
export * from "./filterPanel/index.js";
|
|
25
25
|
export * from "./toolbarV8/index.js";
|
|
26
|
-
export * from "./quickFilter/index.js";
|
|
26
|
+
export * from "./quickFilter/index.js";
|
|
27
|
+
export { GridColumnUnsortedIcon } from "./GridColumnUnsortedIcon.js";
|
package/esm/index.js
CHANGED
package/index.js
CHANGED