-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
3,152 additions
and
2,983 deletions.
There are no files selected for viewing
1,157 changes: 18 additions & 1,139 deletions
1,157
packages/x-data-grid-premium/src/DataGridPremium/DataGridPremium.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
1,146 changes: 1,146 additions & 0 deletions
1,146
packages/x-data-grid-premium/src/DataGridPremium/DataGridPremiumHeadless.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './DataGrid'; | ||
export * from './DataGridPremium'; | ||
export { GridSlots } from './DataGridPremiumHeadless'; | ||
export { DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES } from './useDataGridPremiumProps'; |
16 changes: 13 additions & 3 deletions
16
packages/x-data-grid-premium/src/constants/dataGridPremiumDefaultSlotsComponents.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from '@mui/x-data-grid-pro/internals'; | ||
import { | ||
DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS, | ||
generateDefaultSlots, | ||
} from '@mui/x-data-grid-pro/internals'; | ||
import type { GridPremiumSlotsComponent } from '../models'; | ||
import { GridPremiumColumnMenu } from '../components/GridPremiumColumnMenu'; | ||
import materialSlots from '../material'; | ||
|
||
const iconsSlots: Array<keyof GridPremiumSlotsComponent> = [ | ||
'columnMenuUngroupIcon', | ||
'columnMenuGroupIcon', | ||
'columnMenuAggregationIcon', | ||
'toolbarPromptSendIcon', | ||
'toolbarPromptRecordIcon', | ||
]; | ||
|
||
export const DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS: GridPremiumSlotsComponent = { | ||
...DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS, | ||
...materialSlots, | ||
...generateDefaultSlots<keyof GridPremiumSlotsComponent>(iconsSlots), | ||
columnMenu: GridPremiumColumnMenu, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DataGridPremiumHeadless as Unstable_DatagridPremium } from '../DataGridPremium/DataGridPremiumHeadless'; |
Oops, something went wrong.