Skip to content

Commit

Permalink
Merge branch 'next' into remove-legacy-api
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Oct 6, 2022
2 parents 2e192bc + efa88c6 commit df0ce38
Show file tree
Hide file tree
Showing 187 changed files with 1,407 additions and 977 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ commands:
- v5-playwright-{{ arch }}-{{ checksum "/tmp/playwright_info.json" }}
- run:
name: Install js dependencies
command: yarn install --verbose
command: yarn install
environment:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: <<# parameters.browsers >>0<</ parameters.browsers >><<^ parameters.browsers >>1<</ parameters.browsers >>
- save_cache:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vale-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
with:
reporter: github-pr-review
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function AggregationColDefAggregable() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function AggregationColDefAggregable() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationControlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function AggregationControlled() {
columns={COLUMNS}
aggregationModel={aggregationModel}
onAggregationModelChange={(newModel) => setAggregationModel(newModel)}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationControlled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default function AggregationControlled() {
columns={COLUMNS}
aggregationModel={aggregationModel}
onAggregationModelChange={(newModel) => setAggregationModel(newModel)}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
columns={COLUMNS}
aggregationModel={aggregationModel}
onAggregationModelChange={(newModel) => setAggregationModel(newModel)}
experimentalFeatures={{ aggregation: true }}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export default function AggregationCustomFunction() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export default function AggregationCustomFunction() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<DataGridPremium
rows={data.rows}
columns={COLUMNS}
aggregationFunctions={{
...GRID_AGGREGATION_FUNCTIONS,
firstAlphabetical: firstAlphabeticalAggregation,
lastAlphabetical: lastAlphabeticalAggregation,
}}
initialState={{
aggregation: {
model: {
director: 'firstAlphabetical',
},
},
}}
/>
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationDisabled.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function AggregationDisabled() {
{...data}
disableAggregation
initialState={{ aggregation: { model: { gross: 'sum' } } }}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationDisabled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function AggregationDisabled() {
{...data}
disableAggregation
initialState={{ aggregation: { model: { gross: 'sum' } } }}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
{...data}
disableAggregation
initialState={{ aggregation: { model: { gross: 'sum' } } }}
experimentalFeatures={{ aggregation: true }}
/>
3 changes: 0 additions & 3 deletions docs/data/data-grid/aggregation/AggregationFiltering.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export default function AggregationFiltering() {
},
}}
aggregationRowsScope="all"
experimentalFeatures={{
aggregation: true,
}}
/>
</div>
);
Expand Down
3 changes: 0 additions & 3 deletions docs/data/data-grid/aggregation/AggregationFiltering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export default function AggregationFiltering() {
},
}}
aggregationRowsScope="all"
experimentalFeatures={{
aggregation: true,
}}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default function AggregationGetAggregationPosition() {
getAggregationPosition={(groupNode) =>
groupNode.depth === -1 ? null : 'footer'
}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function AggregationGetAggregationPosition() {
getAggregationPosition={(groupNode) =>
groupNode.depth === -1 ? null : 'footer'
}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
getAggregationPosition={(groupNode) =>
groupNode.depth === -1 ? null : 'footer'
}
experimentalFeatures={{ aggregation: true }}
/>
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationInitialState.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function AggregationInitialState() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function AggregationInitialState() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default function AggregationRemoveFunctionAllColumns() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default function AggregationRemoveFunctionAllColumns() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<DataGridPremium
rows={data.rows}
columns={COLUMNS}
aggregationFunctions={Object.fromEntries(
Object.entries(GRID_AGGREGATION_FUNCTIONS).filter(
([name]) => name !== 'sum',
),
)}
initialState={{
aggregation: {
model: {
gross: 'max',
},
},
}}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function AggregationRemoveFunctionOneColumn() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function AggregationRemoveFunctionOneColumn() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationRenderCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default function AggregationRenderCell() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationRenderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default function AggregationRenderCell() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationRowGrouping.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default function AggregationRowGrouping() {
columns={COLUMNS}
disableSelectionOnClick
initialState={initialState}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/aggregation/AggregationRowGrouping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default function AggregationRowGrouping() {
columns={COLUMNS}
disableSelectionOnClick
initialState={initialState}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
columns={COLUMNS}
disableSelectionOnClick
initialState={initialState}
experimentalFeatures={{ aggregation: true }}
/>
3 changes: 0 additions & 3 deletions docs/data/data-grid/aggregation/AggregationTreeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ export default function AggregationTreeData() {
},
},
}}
experimentalFeatures={{
aggregation: true,
}}
/>
</div>
);
Expand Down
3 changes: 0 additions & 3 deletions docs/data/data-grid/aggregation/AggregationTreeData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ export default function AggregationTreeData() {
},
},
}}
experimentalFeatures={{
aggregation: true,
}}
/>
</div>
);
Expand Down
16 changes: 16 additions & 0 deletions docs/data/data-grid/aggregation/AggregationTreeData.tsx.preview
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<DataGridPremium
treeData
rows={rows}
columns={columns}
getTreeDataPath={getTreeDataPath}
getRowId={getRowId}
groupingColDef={{ headerName: 'Files', width: 350 }}
initialState={{
aggregation: {
model: {
size: 'sum',
updatedAt: 'max',
},
},
}}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default function AggregationValueFormatter() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default function AggregationValueFormatter() {
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@
},
},
}}
experimentalFeatures={{ aggregation: true }}
/>
10 changes: 0 additions & 10 deletions docs/data/data-grid/aggregation/aggregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ You can aggregate rows through the grid interface by opening the column menu and

The aggregated values are rendered in a footer row at the bottom of the grid.

:::warning
This feature is experimental.
To activate it, use the `aggregation` experimental feature flag:

```tsx
<DataGridPremium experimentalFeatures={{ aggregation: true }} {...otherProps} />
```

:::

{{"demo": "AggregationInitialState.js", "bg": "inline", "defaultCodeOpen": false}}

## Pass aggregation to the Data Grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { StaticTimePicker } from '@mui/x-date-pickers/StaticTimePicker';
import { StaticDateRangePicker } from '@mui/x-date-pickers-pro/StaticDateRangePicker';
import { DateRange } from '@mui/x-date-pickers-pro';

const components: DatePickerProps<any>['components'] = {
const components: Omit<DatePickerProps<any>['components'], 'Day'> = {
LeftArrowIcon: ArrowLeft,
RightArrowIcon: ArrowRight,
};
Expand Down
Loading

0 comments on commit df0ce38

Please sign in to comment.