Skip to content

Commit

Permalink
Merge branch 'master' into header-separators-revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed Jun 12, 2023
2 parents e8b20c5 + c51a551 commit 05411c8
Show file tree
Hide file tree
Showing 337 changed files with 5,198 additions and 2,802 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ jobs:
- run:
name: Run visual regression tests
command: xvfb-run yarn test:regressions
- run:
name: Upload screenshots to Argos CI
command: yarn test:argos
# - run:
# name: Upload screenshots to Argos CI
# command: yarn test:argos
test_performance:
<<: *defaults
docker:
Expand Down
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ module.exports = {
'jsdoc/require-returns': ['error', { contexts: ['TSFunctionType'] }],
'jsdoc/require-returns-type': ['error', { contexts: ['TSFunctionType'] }],
'jsdoc/require-returns-description': ['error', { contexts: ['TSFunctionType'] }],
'jsdoc/no-bad-blocks': [
'error',
{
ignore: [
'ts-check',
'ts-expect-error',
'ts-ignore',
'ts-nocheck',
'typescript-to-proptypes-ignore',
],
},
],
// Fixes false positive when using both `inputProps` and `InputProps` on the same example
// See https://stackoverflow.com/questions/42367236/why-am-i-getting-this-warning-no-duplicate-props-allowed-react-jsx-no-duplicate
'react/jsx-no-duplicate-props': [1, { ignoreCase: false }],
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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
uses: github/codeql-action/init@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
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@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
uses: github/codeql-action/analyze@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
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@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
uses: github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
with:
sarif_file: results.sarif
176 changes: 162 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,165 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## v6.5.0
## 6.7.0

_Jun 9, 2023_

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

- 🎁 Improve the default `format` prop value on the pickers.

Here are a few examples:

```tsx
<TimePicker views={['hours', 'minutes', 'seconds']} ampm />
// Format before v6.7.0: `hh:mm aa`
// Format after v6.7.0: `hh:mm:ss aa`

<DatePicker views={['year']} />
// Format before v6.7.0: `MM/DD/YYYY`
// Format after v6.7.0: `YYYY`

<DateTimePicker views={['day', 'hours', 'minutes']} ampm />
// Format before v6.7.0: `MM/DD/YYYY hh:mm aa`
// Format after v6.7.0: `DD hh:mm aa`
```

- 🌍 Add Romanian (ro-RO) locale on the pickers
- 🌍 Improve German (de-DE) locale on the pickers
- 🌍 Improve Czech (cs-CZ), German (de-DE) and Turkish (tr-TR) locales on the data grid
- 🚀 Performance improvements
- 🐞 Bugfixes
- 📚 Documentation improvements

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

#### Changes

- [DataGrid] Allow overflowing grid root element (#9179) @cherniavskii
- [DataGrid] Fix module augmentation error when using `@mui/lab` (#9235) @cherniavskii
- [DataGrid] Fix row with ids matching `Object` prototype (#9265) @romgrk
- [DataGrid] Fix `sortModel` and `filterModel` resetting when columns change (#9239) @alexgonch
- [DataGrid] Improve grouping performance for large datasets (#9200) @romgrk
- [DataGrid] Increase threshold to trigger memory leak warning (#9263) @m4theushw
- [DataGrid] Update data grid migration guide to include updated type (#9272) @MBilalShafi
- [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
- [DataGridPremium] Remove last line break on clipboard paste (#9163) @cherniavskii
- [l10n] Improve Czech (cs-CZ) locale (#9266) @MartinSkarpa
- [l10n] Improve German (de-DE) locale (#9259) @ximex
- [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan

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

#### Changes

- [l10n] Add Romanian (ro-RO) locale (#9257) @ximex
- [l10n] Improve German (de-DE) locale (#9258) @ximex
- [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
- [pickers] Update `DateRangePickerDay` props JSDoc (#9191) @stevus

### Docs

- [docs] Fix missing props on the `GridFilterPanel` API page (#9180) @cherniavskii
- [docs] Fix overview page typo (#9230) @LukasTy
- [docs] Fix version redirect (#9273) @alexfauquette

### Core

- [core] Temporarily remove the Argos upload on the regression testing (#9267) @flaviendelangle
- [charts] Add clip-path to avoid charts overflow (#9012) @alexfauquette
- [charts] Add style customization on bar (#8935) @alexfauquette
- [charts] Enforce axis `min`/`max` over the `nice()` method (#9189) @alexfauquette
- [charts] Improve axis label and ticks label alignements (#9190) @alexfauquette
- [charts] Simplify the switch between responsive and fix dimensions (#9151) @alexfauquette

## 6.6.0

_Jun 1, 2023_

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

- 🚀 New date time picking UI on [`DesktopDateTimePicker`](https://mui.com/x/react-date-pickers/date-time-picker/)

<img src="https://github.com/mui/mui-x/assets/3165635/4e1fe9f9-03eb-4f23-99dd-80212b21fb23" width="840" height="506" />

- 🚀 Performance improvements
- 🐞 Bugfixes
- 📚 Documentation improvements
- 🌍 Improve Dutch (nl-NL) and French (fr-FR) locales on the data grid
- 🌍 Add Vietnamese (vi-VN) locale on the pickers

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

#### Changes

- [DataGrid] Support data attributes (#8845) @romgrk
- [DataGrid] Avoid allocations in `hydrateRowsMeta` (#9121) @romgrk
- [DataGrid] Fix filter input select accessibility (#9018) @Jul13nT
- [DataGrid] Fix accessibility issues in panels and toolbar buttons (#8862) @romgrk
- [DataGrid] Fix `onCellEditStop` not invoked (#8857) @romgrk
- [DataGridPro] Fix auto-scroll when reordering columns (#8856) @m4theushw
- [DataGridPro] Fix row ID type casting in detail panels lookup (#8976) @minchaej
- [DataGridPro] Emit `columnWidthChange` event on `touchEnd` of column resize (#8669) @MBilalShafi
- [DataGridPro] Do not apply filters on `rowExpansionChange` (#8671) @cherniavskii
- [DataGridPro] Prevent click event on sorting after a resize (#9117) @romgrk
- [DataGridPremium] Improve Excel export interface (#9128) @TiagoPortfolio
- [l10n] Improve Dutch (nl-NL) locale (#9043) @thedutchruben
- [l10n] Improve French (fr-FR) locale (#9109) @Jul13nT

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

#### Changes

- [fields] Allow to explicitly define the reference value and improve its default value (#9019) @flaviendelangle
- [l10n] Add Vietnamese (vi-VN) locale (#9099) @nhannt201
- [pickers] Add `DigitalClock` to `DesktopDateTimePicker` (#8946) @LukasTy
- [pickers] Add support for timezones on the adapters (#9068) @flaviendelangle
- [pickers] Fix `MonthCalendar` and `YearCalendar` disabled validation (#9149) @LukasTy
- [pickers] Fix bug when fields have a unique section (#9110) @alexfauquette
- [pickers] Fix focus jumping on Safari (#9072) @LukasTy
- [pickers] Use the locale start of the week in `getWeekArray` (#9176) @flaviendelangle

### Docs

- [docs] Add single input range picker demo (#9159) @LukasTy
- [docs] Align `DateCalendar` demo views with labels (#9152) @LukasTy
- [docs] Clarify the peer dependency with React (#9067) @oliviertassinari
- [docs] Fix Norwegian locale typo (#9168) @LukasTy
- [docs] Fix column menu item demo (#9071) @MBilalShafi
- [docs] Improve localization table progress bars (#9033) @noraleonte
- [docs] Smooth performance animation (#8986) @oliviertassinari
- [docs] Use responsive time and date time pickers and the views sections (#9127) @flaviendelangle
- [docs] Reduce layout shift in grid demo (#9132) @oliviertassinari
- [docs] Fix tree data children lazy-loading demo (#8840) @yaredtsy
- [docs] Improve filtering docs discoverability (#9074) @MBilalShafi

### Core

- [core] Allow string literals as keys in `localesText` (#9045) @MBilalShafi
- [core] Fix `randomInt` producing values exceeding `max` value (#9086) @cherniavskii
- [core] Fix flaky test on `dateWithTimezone` adapter test (#9129) @flaviendelangle
- [core] Lock `@types/node` on v18 (#9107) @LukasTy
- [core] Remove `cross-fetch` dependency (#9108) @LukasTy
- [core] Remove `createDetectElementResize()` replaced with `ResizeObserver` (#9015) @oliviertassinari
- [core] Upgrade monorepo (#9027) @m4theushw
- [core] Upgrade monorepo (#9106) @LukasTy
- [charts] Fix proptypes (#9125) @LukasTy
- [charts] Generate the charts proptypes (#9010) @alexfauquette
- [charts] Manage series stacking (#8888) @alexfauquette
- [license] List side effects in the license package (#9092) @cherniavskii

## 6.5.0

_May 19, 2023_

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

- 💫 Introduce filtering on column headers for `DataGridPro` and `DataGridPremium`:

https://github.com/mui/mui-x/assets/12609561/c4c2bfec-59cf-4cab-932d-dc1983081de9
<img src="https://github.com/mui/mui-x/releases/download/v6.5.0/recording.gif" width="840" height="506" />

See [the documentation](https://mui.com/x/react-data-grid/filtering/#header-filters) for more information
See [the documentation](https://mui.com/x/react-data-grid/filtering/header-filters/) for more information

- 🌍 Improve Hebrew (he-IL) and Czech (cs-CZ) locales
- 📝 Support for editing on pinned rows
Expand Down Expand Up @@ -59,7 +207,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
- [DataGrid] Memoize root props for better performance (#8942) @romgrk
- [test] Skip flaky unit tests in JSDOM (#8994) @cherniavskii

## v6.4.0
## 6.4.0

_May 12, 2023_

Expand Down Expand Up @@ -102,7 +250,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos

### Docs

- [docs] Fix date pickers typo in the docs (#8939) @richbustos
- [docs] Fix date pickers typo in the docs (#8939) @richbustos
- [docs] Fix master detail demo (#8894) @m4theushw
- [docs] Fix typo in clipboard docs (#8971) @MBilalShafi
- [docs] Reduce list of dependencies in Codesandbox/Stackblitz demos (#8535) @cherniavskii
Expand Down Expand Up @@ -4092,7 +4240,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
- [docs] Revise and split up "Overview" page into "Introduction" (#4692) @samuelsycamore
- [docs] Use `useKeepGroupedColumnsHiddren` from the grid package on remaining demo (#5382) @flaviendelangle
## v5.12.3
## 5.12.3
_Jun 23, 2022_
Expand Down Expand Up @@ -4143,7 +4291,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
- [test] Throw if date adapter is not found (#5289) @cherniavskii
- [test] Use mock for `ResizeObserver` (#5215) @m4theushw
## v5.12.2
## 5.12.2
_Jun 16, 2022_
Expand Down Expand Up @@ -4186,7 +4334,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
- [core] Fix `GridColTypeDef` usage in demo (#5197) @cherniavskii
- [test] Add `waitFor` before asserting height (#5203) @m4theushw
## v5.12.1
## 5.12.1
_Jun 9, 2022_
Expand Down Expand Up @@ -4243,7 +4391,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
- [test] Fix dynamic row height test failing on Chrome (#5147) @m4theushw
- [test] Remove delay on server demo for regression tests (#5131) @alexfauquette
## v5.12.0
## 5.12.0
_May 31, 2022_
Expand Down Expand Up @@ -4324,7 +4472,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
- [test] Skip Safari and Firefox on broken tests (#4994) @alexfauquette
- [test] Make argos screenshots stable (#5061) @m4theushw
## v5.11.1
## 5.11.1
_May 20, 2022_
Expand Down Expand Up @@ -4416,7 +4564,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
- [core] Simplify rows cache management (#4933) @flaviendelangle
- [core] Use internal icons for quick filter (#4912) @alexfauquette
## v5.11.0
## 5.11.0
_May 13, 2022_
Expand All @@ -4440,7 +4588,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
- 👔 **Excel export**. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
- 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/#quick-filter).
- 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/quick-filter/).
<img src="https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png" width="724">
Expand Down Expand Up @@ -4560,7 +4708,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
- [test] Reset cleanup tracking on Karma tests (#4679) @m4theushw
- [test] Restore `sinon` sandbox after each `karma` test (#4689) @m4theushw
## v5.10.0
## 5.10.0
_Apr 25, 2022_
Expand Down Expand Up @@ -4596,7 +4744,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
- [core] Fix the README of the X packages (#4590) @flaviendelangle
- [test] Fix test to not depend on screen resolution (#4587) @m4theushw
## v5.9.0
## 5.9.0
_Apr 14, 2022_
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@mui/x-data-grid": "^4.0.0",
"ag-grid-community": "^29.3.5",
"ag-grid-react": "^29.3.5",
"css-loader": "^6.7.4",
"css-loader": "^6.8.1",
"html-webpack-plugin": "^5.5.1",
"mui-plus": "^0.0.15",
"playwright": "^1.33.0",
Expand Down
1 change: 1 addition & 0 deletions docs/.link-check-errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Broken links found by `yarn docs:link-check` that exist:
- https://mui.com/base/api/portal/#props
- https://mui.com/blog/material-ui-v4-is-out/#premium-themes-store-✨
- https://mui.com/size-snapshot
- https://mui.com/x/react-data-grid/filtering/#quick-filter
- https://mui.com/x/react-data-grid/migration-v4
3 changes: 3 additions & 0 deletions docs/data/charts-component-api-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import type { MuiPage } from '@mui/monorepo/docs/src/MuiPage';
export default [
{ pathname: '/x/api/charts/area-element', title: 'AreaElement' },
{ pathname: '/x/api/charts/axis', title: 'Axis' },
{ pathname: '/x/api/charts/axis-highlight', title: 'AxisHighlight' },
{ pathname: '/x/api/charts/bar-chart', title: 'BarChart' },
{ pathname: '/x/api/charts/bar-plot', title: 'BarPlot' },
{ pathname: '/x/api/charts/cartesian-context-provider', title: 'CartesianContextProvider' },
{ pathname: '/x/api/charts/drawing-provider', title: 'DrawingProvider' },
{ pathname: '/x/api/charts/line-chart', title: 'LineChart' },
{ pathname: '/x/api/charts/line-element', title: 'LineElement' },
{ pathname: '/x/api/charts/line-plot', title: 'LinePlot' },
Expand Down
9 changes: 9 additions & 0 deletions docs/data/charts/axis/AxisWithComposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ export default function AxisWithComposition() {
]}
width={600}
height={500}
margin={{ left: 70, right: 70 }}
sx={{
[`.MuiAxis-left .MuiAxis-label`]: {
transform: 'rotate(-90deg) translate(0px, -20px)',
},
[`.MuiAxis-right .MuiAxis-label`]: {
transform: 'rotate(90deg) translate(0px, -20px)',
},
}}
>
<BarPlot />
<LinePlot />
Expand Down
9 changes: 9 additions & 0 deletions docs/data/charts/axis/AxisWithComposition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ export default function AxisWithComposition() {
]}
width={600}
height={500}
margin={{ left: 70, right: 70 }}
sx={{
[`.MuiAxis-left .MuiAxis-label`]: {
transform: 'rotate(-90deg) translate(0px, -20px)',
},
[`.MuiAxis-right .MuiAxis-label`]: {
transform: 'rotate(90deg) translate(0px, -20px)',
},
}}
>
<BarPlot />
<LinePlot />
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/axis/ScaleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default function ScaleExample() {
<LineChart
xAxis={[{ data: sample }]}
yAxis={[
{ id: 'linearAxis', scaleType: 'linear', max: 110 },
{ id: 'logAxis', scaleType: 'log', max: 110 },
{ id: 'linearAxis', scaleType: 'linear' },
{ id: 'logAxis', scaleType: 'log' },
]}
series={[
{ yAxisKey: 'linearAxis', data: sample, label: 'linear' },
Expand Down
Loading

0 comments on commit 05411c8

Please sign in to comment.