Skip to content

Commit

Permalink
Merge branch 'master' into row-reorder-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 authored Dec 25, 2024
2 parents 26d0486 + 758d8b8 commit bfd90d5
Show file tree
Hide file tree
Showing 316 changed files with 4,729 additions and 4,975 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
test_browser:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.49.0-noble
- image: mcr.microsoft.com/playwright:v1.49.1-noble
steps:
- checkout
- install_js:
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
test_e2e:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.49.0-noble
- image: mcr.microsoft.com/playwright:v1.49.1-noble
steps:
- checkout
- install_js:
Expand All @@ -274,7 +274,7 @@ jobs:
test_e2e_website:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.49.0-noble
- image: mcr.microsoft.com/playwright:v1.49.1-noble
steps:
- checkout
- install_js:
Expand All @@ -287,7 +287,7 @@ jobs:
test_regressions:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.49.0-noble
- image: mcr.microsoft.com/playwright:v1.49.1-noble
steps:
- checkout
- install_js:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
languages: typescript
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -29,4 +29,4 @@ jobs:
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
sarif_file: results.sarif
103 changes: 103 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,108 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 8.0.0-alpha.5

_Dec 19, 2024_

We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:

- 🌍 Improve Korean (ko-KR) locale on the Data Grid
- 🐞 Bugfixes

Special thanks go out to the community contributors who have helped make this release possible:
@good-jinu, @k-rajat19.
Following are all team members who have contributed to this release:
@alexfauquette, @cherniavskii, @flaviendelangle, @KenanYusuf, @LukasTy, @MBilalShafi, @romgrk.

<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->

### Data Grid

#### Breaking changes

- Passing additional props (like `data-*`, `aria-*`) directly on the Data Grid component is no longer supported. To pass the props, use `slotProps`.

- For `.root` element, use `slotProps.root`.
- For `.main` element (the one with `role="grid"`), use `slotProps.main`.

- `detailPanelExpandedRowIds` and `onDetailPanelExpandedRowIdsChange` props use a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array:

```diff
-detailPanelExpandedRowIds?: GridRowId[];
+detailPanelExpandedRowIds?: Set<GridRowId>;

-onDetailPanelExpandedRowIdsChange?: (ids: GridRowId[], details: GridCallbackDetails) => void;
+onDetailPanelExpandedRowIdsChange?: (ids: Set<GridRowId>, details: GridCallbackDetails) => void;
```

- `apiRef.current.getExpandedDetailPanels` and `apiRef.current.setExpandedDetailPanels` methods receive and return a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array.
- `gridDetailPanelExpandedRowIdsSelector` returns a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array.
- `gridDetailPanelExpandedRowsHeightCacheSelector` was removed.

#### `@mui/[email protected]`

- [DataGrid] Consider `columnGroupHeaderHeight` prop in `getTotalHeaderHeight` method (#15915) @k-rajat19
- [DataGrid] Fix autosizing with virtualized columns (#15116) @k-rajat19
- [DataGrid] Move `<Badge />` to leaf import (#15879) @romgrk
- [DataGrid] Move `<ListItemText />` and `<ListItemIcon />` to leaf import (#15869) @romgrk
- [DataGrid] Remove the Joy UI demo (#15913) @romgrk
- [DataGrid] Update quick filter input variant (#15909) @KenanYusuf
- [DataGrid] Use `slotProps` to forward props to `.main` and `.root` elements (#15870) @MBilalShafi
- [l10n] Improve Korean(ko-KR) locale (#15878) @good-jinu

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`, plus:

- [DataGridPro] Use `Set` for `detailPanelExpandedRowIds` (#15835) @cherniavskii

#### `@mui/[email protected]` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')

Same changes as in `@mui/[email protected]`.

### Date and Time Pickers

#### Breaking changes

- The `<PickersMonth />` component has been moved inside the Month Calendar component — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#month-calendar).

- The `<PickersYear />` component has been moved inside the Year Calendar component — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#year-calendar).

#### `@mui/[email protected]`

- [pickers] Add verification to disable skipped hours in spring forward DST (#15849) @flaviendelangle
- [pickers] Remove `PickersMonth` and `PickersYear` from the theme and remove the `div` wrapping each button (#15806) @flaviendelangle
- [pickers] Use the new `ownerState` object on the `<PickersTextField />` component (#15863) @flaviendelangle

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Charts

#### `@mui/[email protected]`

- [charts] Fix `<ScatterChart />` value type if `null` (#15917) @alexfauquette

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Tree View

#### `@mui/[email protected]`

No changes since `@mui/[email protected]`.

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Core

- [code-infra] Remove `@mui/material-nextjs` dependency (#15925) @LukasTy

## 8.0.0-alpha.4

_Dec 13, 2024_
Expand Down Expand Up @@ -39,6 +141,7 @@ Following are all team members who have contributed to this release:
-const output = useGridSelector(apiRef, selector, equals)
+const output = useGridSelector(apiRef, selector, arguments, equals)
```

- The default variant for text fields and selects in the filter panel has been changed to `outlined`.
- The "row spanning" feature is now stable.
```diff
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/scatter-demo/MultipleYAxesScatterChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export default function MultipleYAxesScatterChart() {
{
data: data1,
yAxisId: 'leftAxis',
valueFormatter: ({ x, y }) => `${x}cm, ${y}kg`,
valueFormatter: (value) => value && `${value.x}cm, ${value.y}kg`,
},
{
data: data2,
yAxisId: 'rightAxis',
valueFormatter: ({ x, y }) => `${x}cm, ${y}kg`,
valueFormatter: (value) => value && `${value.x}cm, ${value.y}kg`,
},
]}
xAxis={[{ min: 0 }]}
Expand Down
6 changes: 2 additions & 4 deletions docs/data/charts/scatter-demo/MultipleYAxesScatterChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ export default function MultipleYAxesScatterChart() {
{
data: data1,
yAxisId: 'leftAxis',

valueFormatter: ({ x, y }) => `${x}cm, ${y}kg`,
valueFormatter: (value) => value && `${value.x}cm, ${value.y}kg`,
},
{
data: data2,
yAxisId: 'rightAxis',

valueFormatter: ({ x, y }) => `${x}cm, ${y}kg`,
valueFormatter: (value) => value && `${value.x}cm, ${value.y}kg`,
},
]}
xAxis={[{ min: 0 }]}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/scatter/ColorScale.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const series = [
},
].map((s) => ({
...s,
valueFormatter: (v) => `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
valueFormatter: (v) => v && `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
}));

function getGaussianSeriesData(mean, stdev = [0.5, 0.5], N = 50) {
Expand Down
3 changes: 2 additions & 1 deletion docs/data/charts/scatter/ColorScale.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ const series = [
},
].map((s) => ({
...s,
valueFormatter: (v: ScatterValueType) => `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
valueFormatter: (v: ScatterValueType | null) =>
v && `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
}));

function getGaussianSeriesData(
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/styling/ColorTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const series = [
{ label: 'Series 13', data: getGaussianSeriesData([7, 0]) },
].map((s) => ({
...s,
valueFormatter: (v) => `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
valueFormatter: (v) => v && `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
}));

const categories = {
Expand Down
3 changes: 2 additions & 1 deletion docs/data/charts/styling/ColorTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const series = [
{ label: 'Series 13', data: getGaussianSeriesData([7, 0]) },
].map((s) => ({
...s,
valueFormatter: (v: ScatterValueType) => `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
valueFormatter: (v: ScatterValueType | null) =>
v && `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
}));

const categories: { [key: string]: string[] } = {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/styling/MuiColorTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const series = [
{ label: 'Series 13', data: getGaussianSeriesData([7, 0]) },
].map((s) => ({
...s,
valueFormatter: (v) => `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
valueFormatter: (v) => v && `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
}));

const categories = {
Expand Down
3 changes: 2 additions & 1 deletion docs/data/charts/styling/MuiColorTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ const series = [
{ label: 'Series 13', data: getGaussianSeriesData([7, 0]) },
].map((s) => ({
...s,
valueFormatter: (v: ScatterValueType) => `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
valueFormatter: (v: ScatterValueType | null) =>
v && `(${v.x.toFixed(1)}, ${v.y.toFixed(1)})`,
}));

const categories = {
Expand Down
Loading

0 comments on commit bfd90d5

Please sign in to comment.