@mui/x-data-grid-pro 7.29.0 → 7.29.1
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 +77 -0
- package/DataGridPro/DataGrid.js +2 -9
- package/DataGridPro/DataGridPro.js +231 -238
- package/DataGridPro/index.js +3 -39
- package/DataGridPro/package.json +2 -2
- package/DataGridPro/useDataGridProComponent.js +91 -99
- package/DataGridPro/useDataGridProProps.js +17 -26
- package/components/GridColumnHeaderCollapseIcon.js +0 -1
- package/components/GridColumnHeaders.js +39 -46
- package/components/GridColumnMenuPinningItem.js +39 -46
- package/components/GridDataSourceTreeDataGroupingCell.js +30 -38
- package/components/GridDetailPanel.js +14 -18
- package/components/GridDetailPanelToggleCell.js +35 -42
- package/components/GridDetailPanels.js +19 -25
- package/components/GridPinnedRows.js +12 -20
- package/components/GridProColumnMenu.js +11 -19
- package/components/GridRowReorderCell.js +36 -45
- package/components/GridTreeDataGroupingCell.js +37 -44
- package/components/headerFiltering/GridHeaderFilterCell.js +71 -78
- package/components/headerFiltering/GridHeaderFilterClearButton.js +9 -16
- package/components/headerFiltering/GridHeaderFilterMenu.js +36 -43
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +41 -48
- package/components/headerFiltering/index.js +3 -38
- package/components/index.js +7 -71
- package/components/package.json +2 -2
- package/components/reexports.js +1 -24
- package/constants/dataGridProDefaultSlotsComponents.js +16 -23
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +30 -39
- package/hooks/features/columnPinning/gridColumnPinningInterface.js +1 -5
- package/hooks/features/columnPinning/index.js +1 -16
- package/hooks/features/columnPinning/useGridColumnPinning.js +32 -42
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +10 -19
- package/hooks/features/columnReorder/columnReorderInterfaces.js +1 -5
- package/hooks/features/columnReorder/columnReorderSelector.js +3 -10
- package/hooks/features/columnReorder/index.js +2 -16
- package/hooks/features/columnReorder/useGridColumnReorder.js +25 -35
- package/hooks/features/dataSource/cache.js +3 -11
- package/hooks/features/dataSource/gridDataSourceSelector.js +10 -18
- package/hooks/features/dataSource/interfaces.js +1 -5
- package/hooks/features/dataSource/useGridDataSource.js +34 -44
- package/hooks/features/dataSource/utils.js +9 -17
- package/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -5
- package/hooks/features/detailPanel/gridDetailPanelSelector.js +5 -14
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +14 -27
- package/hooks/features/detailPanel/index.js +3 -53
- package/hooks/features/detailPanel/useGridDetailPanel.js +39 -48
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +18 -27
- package/hooks/features/index.js +9 -99
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +18 -27
- package/hooks/features/lazyLoader/useGridLazyLoader.js +14 -22
- package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +13 -22
- package/hooks/features/rowPinning/gridRowPinningInterface.js +1 -5
- package/hooks/features/rowPinning/gridRowPinningSelector.js +1 -18
- package/hooks/features/rowPinning/index.js +1 -16
- package/hooks/features/rowPinning/useGridRowPinning.js +13 -23
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts +1 -1
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +24 -34
- package/hooks/features/rowReorder/gridRowReorderColDef.js +5 -12
- package/hooks/features/rowReorder/index.js +1 -16
- package/hooks/features/rowReorder/useGridRowReorder.js +20 -29
- package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +12 -21
- package/hooks/features/rows/index.js +1 -16
- package/hooks/features/rows/useGridRowAriaAttributes.js +14 -22
- package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +37 -46
- package/hooks/features/serverSideTreeData/utils.js +6 -13
- package/hooks/features/treeData/gridTreeDataGroupColDef.js +9 -20
- package/hooks/features/treeData/gridTreeDataUtils.js +6 -12
- package/hooks/features/treeData/index.js +1 -12
- package/hooks/features/treeData/useGridTreeData.js +7 -15
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +37 -46
- package/hooks/index.js +1 -16
- package/hooks/package.json +2 -2
- package/hooks/utils/useGridApiContext.js +2 -8
- package/hooks/utils/useGridApiRef.js +2 -8
- package/hooks/utils/useGridAriaAttributes.js +8 -16
- package/hooks/utils/useGridPrivateApiContext.js +2 -8
- package/hooks/utils/useGridRootProps.js +2 -8
- package/index.js +19 -210
- package/internals/index.js +34 -301
- package/internals/package.json +2 -2
- package/internals/propValidation.js +2 -8
- package/locales/package.json +6 -0
- package/material/icons.js +7 -14
- package/material/index.js +6 -13
- package/material/package.json +2 -2
- package/models/dataGridProProps.js +1 -5
- package/models/gridApiPro.js +1 -5
- package/models/gridFetchRowsParams.js +1 -5
- package/models/gridGroupingColDefOverride.js +1 -5
- package/models/gridProIconSlotsComponent.js +1 -5
- package/models/gridProSlotProps.js +1 -5
- package/models/gridProSlotsComponent.js +1 -5
- package/models/gridRowOrderChangeParams.js +1 -5
- package/models/gridRowScrollEndParams.js +1 -5
- package/models/gridStatePro.js +1 -5
- package/models/index.js +8 -82
- package/models/package.json +2 -2
- package/modern/components/GridDetailPanel.js +2 -0
- package/modern/components/GridDetailPanels.js +2 -0
- package/modern/components/headerFiltering/GridHeaderFilterMenu.js +2 -2
- package/modern/hooks/features/detailPanel/useGridDetailPanel.js +3 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/{esm → node}/DataGridPro/DataGrid.js +9 -2
- package/{esm → node}/DataGridPro/DataGridPro.js +238 -231
- package/node/DataGridPro/index.js +39 -0
- package/node/DataGridPro/useDataGridProComponent.js +111 -0
- package/node/DataGridPro/useDataGridProProps.js +61 -0
- package/node/components/GridColumnHeaderCollapseIcon.js +1 -0
- package/node/components/GridColumnHeaders.js +99 -0
- package/node/components/GridColumnMenuPinningItem.js +97 -0
- package/node/components/GridDataSourceTreeDataGroupingCell.js +118 -0
- package/{esm → node}/components/GridDetailPanel.js +20 -13
- package/node/components/GridDetailPanelToggleCell.js +128 -0
- package/node/components/GridDetailPanels.js +69 -0
- package/node/components/GridPinnedRows.js +48 -0
- package/node/components/GridProColumnMenu.js +29 -0
- package/{esm → node}/components/GridRowReorderCell.js +45 -36
- package/{esm → node}/components/GridTreeDataGroupingCell.js +44 -37
- package/{esm → node}/components/headerFiltering/GridHeaderFilterCell.js +78 -71
- package/node/components/headerFiltering/GridHeaderFilterClearButton.js +28 -0
- package/node/components/headerFiltering/GridHeaderFilterMenu.js +95 -0
- package/node/components/headerFiltering/GridHeaderFilterMenuContainer.js +106 -0
- package/node/components/headerFiltering/index.js +38 -0
- package/node/components/index.js +71 -0
- package/node/components/reexports.js +24 -0
- package/node/constants/dataGridProDefaultSlotsComponents.js +24 -0
- package/{esm → node}/hooks/features/columnHeaders/useGridColumnHeaders.js +39 -30
- package/node/hooks/features/columnPinning/gridColumnPinningInterface.js +5 -0
- package/node/hooks/features/columnPinning/index.js +16 -0
- package/{esm → node}/hooks/features/columnPinning/useGridColumnPinning.js +42 -32
- package/{esm → node}/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +19 -10
- package/node/hooks/features/columnReorder/columnReorderInterfaces.js +5 -0
- package/node/hooks/features/columnReorder/columnReorderSelector.js +10 -0
- package/node/hooks/features/columnReorder/index.js +16 -0
- package/{esm → node}/hooks/features/columnReorder/useGridColumnReorder.js +35 -25
- package/{esm → node}/hooks/features/dataSource/cache.js +11 -3
- package/node/hooks/features/dataSource/gridDataSourceSelector.js +32 -0
- package/node/hooks/features/dataSource/interfaces.js +5 -0
- package/{esm → node}/hooks/features/dataSource/useGridDataSource.js +44 -34
- package/{esm → node}/hooks/features/dataSource/utils.js +17 -9
- package/node/hooks/features/detailPanel/gridDetailPanelInterface.js +5 -0
- package/node/hooks/features/detailPanel/gridDetailPanelSelector.js +21 -0
- package/node/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +47 -0
- package/node/hooks/features/detailPanel/index.js +53 -0
- package/{esm → node}/hooks/features/detailPanel/useGridDetailPanel.js +49 -38
- package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +52 -0
- package/node/hooks/features/index.js +99 -0
- package/{esm → node}/hooks/features/infiniteLoader/useGridInfiniteLoader.js +27 -18
- package/{esm → node}/hooks/features/lazyLoader/useGridLazyLoader.js +22 -14
- package/node/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +43 -0
- package/node/hooks/features/rowPinning/gridRowPinningInterface.js +5 -0
- package/node/hooks/features/rowPinning/gridRowPinningSelector.js +18 -0
- package/node/hooks/features/rowPinning/index.js +16 -0
- package/node/hooks/features/rowPinning/useGridRowPinning.js +62 -0
- package/{esm → node}/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +34 -24
- package/node/hooks/features/rowReorder/gridRowReorderColDef.js +27 -0
- package/node/hooks/features/rowReorder/index.js +16 -0
- package/{esm → node}/hooks/features/rowReorder/useGridRowReorder.js +29 -20
- package/{esm → node}/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +21 -12
- package/node/hooks/features/rows/index.js +16 -0
- package/node/hooks/features/rows/useGridRowAriaAttributes.js +45 -0
- package/{esm → node}/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +46 -37
- package/node/hooks/features/serverSideTreeData/utils.js +27 -0
- package/node/hooks/features/treeData/gridTreeDataGroupColDef.js +38 -0
- package/{esm → node}/hooks/features/treeData/gridTreeDataUtils.js +12 -6
- package/node/hooks/features/treeData/index.js +12 -0
- package/node/hooks/features/treeData/useGridTreeData.js +30 -0
- package/{esm → node}/hooks/features/treeData/useGridTreeDataPreProcessors.js +46 -37
- package/node/hooks/index.js +16 -0
- package/node/hooks/utils/useGridApiContext.js +8 -0
- package/node/hooks/utils/useGridApiRef.js +8 -0
- package/node/hooks/utils/useGridAriaAttributes.js +19 -0
- package/node/hooks/utils/useGridPrivateApiContext.js +8 -0
- package/node/hooks/utils/useGridRootProps.js +8 -0
- package/node/index.js +220 -0
- package/node/internals/index.js +302 -0
- package/node/internals/propValidation.js +8 -0
- package/node/material/icons.js +24 -0
- package/node/material/index.js +15 -0
- package/node/models/dataGridProProps.js +5 -0
- package/node/models/gridApiPro.js +5 -0
- package/node/models/gridFetchRowsParams.js +5 -0
- package/node/models/gridGroupingColDefOverride.js +5 -0
- package/node/models/gridProIconSlotsComponent.js +5 -0
- package/node/models/gridProSlotProps.js +5 -0
- package/node/models/gridProSlotsComponent.js +5 -0
- package/node/models/gridRowOrderChangeParams.js +5 -0
- package/node/models/gridRowScrollEndParams.js +5 -0
- package/node/models/gridStatePro.js +5 -0
- package/node/models/index.js +82 -0
- package/node/themeAugmentation/index.js +27 -0
- package/node/themeAugmentation/overrides.js +5 -0
- package/node/themeAugmentation/props.js +5 -0
- package/node/typeOverloads/index.js +16 -0
- package/node/typeOverloads/modules.js +5 -0
- package/node/typeOverloads/reexports.js +26 -0
- package/node/utils/index.js +16 -0
- package/node/utils/releaseInfo.js +20 -0
- package/{esm → node}/utils/tree/createRowTree.js +14 -7
- package/node/utils/tree/index.js +12 -0
- package/{esm → node}/utils/tree/insertDataRowInTree.js +18 -11
- package/node/utils/tree/models.js +5 -0
- package/{esm → node}/utils/tree/removeDataRowFromTree.js +16 -9
- package/{esm → node}/utils/tree/sortRowTree.js +12 -5
- package/{esm → node}/utils/tree/updateRowTree.js +26 -18
- package/{esm → node}/utils/tree/utils.js +34 -18
- package/package.json +6 -6
- package/themeAugmentation/index.js +4 -27
- package/themeAugmentation/overrides.js +1 -5
- package/themeAugmentation/package.json +2 -2
- package/themeAugmentation/props.js +1 -5
- package/typeOverloads/index.js +1 -16
- package/typeOverloads/modules.js +1 -5
- package/typeOverloads/package.json +2 -2
- package/typeOverloads/reexports.js +14 -25
- package/utils/index.js +1 -16
- package/utils/package.json +2 -2
- package/utils/releaseInfo.js +5 -12
- package/utils/tree/createRowTree.js +7 -14
- package/utils/tree/index.js +1 -12
- package/utils/tree/insertDataRowInTree.js +11 -18
- package/utils/tree/models.js +1 -5
- package/utils/tree/removeDataRowFromTree.js +9 -16
- package/utils/tree/sortRowTree.js +5 -12
- package/utils/tree/updateRowTree.js +18 -26
- package/utils/tree/utils.js +18 -34
- package/esm/DataGridPro/index.js +0 -3
- package/esm/DataGridPro/useDataGridProComponent.js +0 -103
- package/esm/DataGridPro/useDataGridProProps.js +0 -52
- package/esm/components/GridColumnHeaderCollapseIcon.js +0 -0
- package/esm/components/GridColumnHeaders.js +0 -92
- package/esm/components/GridColumnMenuPinningItem.js +0 -90
- package/esm/components/GridDataSourceTreeDataGroupingCell.js +0 -110
- package/esm/components/GridDetailPanelToggleCell.js +0 -121
- package/esm/components/GridDetailPanels.js +0 -60
- package/esm/components/GridPinnedRows.js +0 -40
- package/esm/components/GridProColumnMenu.js +0 -21
- package/esm/components/headerFiltering/GridHeaderFilterClearButton.js +0 -21
- package/esm/components/headerFiltering/GridHeaderFilterMenu.js +0 -88
- package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +0 -99
- package/esm/components/headerFiltering/index.js +0 -3
- package/esm/components/index.js +0 -7
- package/esm/components/reexports.js +0 -1
- package/esm/constants/dataGridProDefaultSlotsComponents.js +0 -17
- package/esm/hooks/features/columnPinning/gridColumnPinningInterface.js +0 -1
- package/esm/hooks/features/columnPinning/index.js +0 -1
- package/esm/hooks/features/columnReorder/columnReorderInterfaces.js +0 -1
- package/esm/hooks/features/columnReorder/columnReorderSelector.js +0 -3
- package/esm/hooks/features/columnReorder/index.js +0 -2
- package/esm/hooks/features/dataSource/gridDataSourceSelector.js +0 -24
- package/esm/hooks/features/dataSource/interfaces.js +0 -1
- package/esm/hooks/features/detailPanel/gridDetailPanelInterface.js +0 -1
- package/esm/hooks/features/detailPanel/gridDetailPanelSelector.js +0 -12
- package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +0 -34
- package/esm/hooks/features/detailPanel/index.js +0 -3
- package/esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +0 -43
- package/esm/hooks/features/index.js +0 -9
- package/esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +0 -34
- package/esm/hooks/features/rowPinning/gridRowPinningInterface.js +0 -1
- package/esm/hooks/features/rowPinning/gridRowPinningSelector.js +0 -1
- package/esm/hooks/features/rowPinning/index.js +0 -1
- package/esm/hooks/features/rowPinning/useGridRowPinning.js +0 -52
- package/esm/hooks/features/rowReorder/gridRowReorderColDef.js +0 -20
- package/esm/hooks/features/rowReorder/index.js +0 -1
- package/esm/hooks/features/rows/index.js +0 -1
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +0 -37
- package/esm/hooks/features/serverSideTreeData/utils.js +0 -20
- package/esm/hooks/features/treeData/gridTreeDataGroupColDef.js +0 -27
- package/esm/hooks/features/treeData/index.js +0 -1
- package/esm/hooks/features/treeData/useGridTreeData.js +0 -22
- package/esm/hooks/index.js +0 -1
- package/esm/hooks/utils/useGridApiContext.js +0 -2
- package/esm/hooks/utils/useGridApiRef.js +0 -2
- package/esm/hooks/utils/useGridAriaAttributes.js +0 -11
- package/esm/hooks/utils/useGridPrivateApiContext.js +0 -2
- package/esm/hooks/utils/useGridRootProps.js +0 -2
- package/esm/index.js +0 -22
- package/esm/internals/index.js +0 -35
- package/esm/internals/propValidation.js +0 -2
- package/esm/material/icons.js +0 -17
- package/esm/material/index.js +0 -8
- package/esm/models/dataGridProProps.js +0 -1
- package/esm/models/gridApiPro.js +0 -1
- package/esm/models/gridFetchRowsParams.js +0 -1
- package/esm/models/gridGroupingColDefOverride.js +0 -1
- package/esm/models/gridProIconSlotsComponent.js +0 -1
- package/esm/models/gridProSlotProps.js +0 -1
- package/esm/models/gridProSlotsComponent.js +0 -1
- package/esm/models/gridRowOrderChangeParams.js +0 -1
- package/esm/models/gridRowScrollEndParams.js +0 -1
- package/esm/models/gridStatePro.js +0 -1
- package/esm/models/index.js +0 -8
- package/esm/themeAugmentation/index.js +0 -4
- package/esm/themeAugmentation/overrides.js +0 -1
- package/esm/themeAugmentation/props.js +0 -1
- package/esm/typeOverloads/index.js +0 -1
- package/esm/typeOverloads/modules.js +0 -1
- package/esm/typeOverloads/reexports.js +0 -15
- package/esm/utils/index.js +0 -1
- package/esm/utils/releaseInfo.js +0 -13
- package/esm/utils/tree/index.js +0 -1
- package/esm/utils/tree/models.js +0 -1
- /package/{locales.d.ts → locales/index.d.ts} +0 -0
- /package/{esm/locales.js → locales/index.js} +0 -0
- /package/modern/{locales.js → locales/index.js} +0 -0
- /package/{locales.js → node/locales/index.js} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { GRID_STRING_COL_DEF, gridRowIdSelector } from '@mui/x-data-grid';
|
|
4
|
-
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
|
|
5
|
-
import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.js";
|
|
6
|
-
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
|
|
9
|
-
export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
10
|
-
type: 'custom',
|
|
11
|
-
field: GRID_DETAIL_PANEL_TOGGLE_FIELD,
|
|
12
|
-
editable: false,
|
|
13
|
-
sortable: false,
|
|
14
|
-
filterable: false,
|
|
15
|
-
resizable: false,
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
aggregable: false,
|
|
18
|
-
disableColumnMenu: true,
|
|
19
|
-
disableReorder: true,
|
|
20
|
-
disableExport: true,
|
|
21
|
-
align: 'left',
|
|
22
|
-
width: 40,
|
|
23
|
-
valueGetter: (value, row, column, apiRef) => {
|
|
24
|
-
const rowId = gridRowIdSelector(apiRef.current.state, row);
|
|
25
|
-
const expandedRowIds = gridDetailPanelExpandedRowIdsSelector(apiRef.current.state);
|
|
26
|
-
return expandedRowIds.includes(rowId);
|
|
27
|
-
},
|
|
28
|
-
renderCell: params => /*#__PURE__*/_jsx(GridDetailPanelToggleCell, _extends({}, params)),
|
|
29
|
-
renderHeader: ({
|
|
30
|
-
colDef
|
|
31
|
-
}) => /*#__PURE__*/_jsx("div", {
|
|
32
|
-
"aria-label": colDef.headerName
|
|
33
|
-
})
|
|
34
|
-
});
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from "./gridDetailPanelToggleColDef.js";
|
|
2
|
-
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelExpandedRowsHeightCacheSelector } from "./gridDetailPanelSelector.js";
|
|
3
|
-
export * from "./gridDetailPanelInterface.js";
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { gridClasses } from '@mui/x-data-grid';
|
|
4
|
-
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
5
|
-
import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from "./gridDetailPanelToggleColDef.js";
|
|
6
|
-
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
|
|
7
|
-
export const useGridDetailPanelPreProcessors = (privateApiRef, props) => {
|
|
8
|
-
const addToggleColumn = React.useCallback(columnsState => {
|
|
9
|
-
if (props.getDetailPanelContent == null) {
|
|
10
|
-
// Remove the toggle column, when it exists
|
|
11
|
-
if (columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD]) {
|
|
12
|
-
delete columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD];
|
|
13
|
-
columnsState.orderedFields = columnsState.orderedFields.filter(field => field !== GRID_DETAIL_PANEL_TOGGLE_FIELD);
|
|
14
|
-
}
|
|
15
|
-
return columnsState;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Don't add the toggle column if there's already one
|
|
19
|
-
// The user might have manually added it to have it in a custom position
|
|
20
|
-
if (columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD]) {
|
|
21
|
-
return columnsState;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Otherwise, add the toggle column at the beginning
|
|
25
|
-
columnsState.orderedFields = [GRID_DETAIL_PANEL_TOGGLE_FIELD, ...columnsState.orderedFields];
|
|
26
|
-
columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD] = _extends({}, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, {
|
|
27
|
-
headerName: privateApiRef.current.getLocaleText('detailPanelToggle')
|
|
28
|
-
});
|
|
29
|
-
return columnsState;
|
|
30
|
-
}, [privateApiRef, props.getDetailPanelContent]);
|
|
31
|
-
const addExpandedClassToRow = React.useCallback((classes, id) => {
|
|
32
|
-
if (props.getDetailPanelContent == null) {
|
|
33
|
-
return classes;
|
|
34
|
-
}
|
|
35
|
-
const expandedRowIds = gridDetailPanelExpandedRowIdsSelector(privateApiRef.current.state);
|
|
36
|
-
if (!expandedRowIds.includes(id)) {
|
|
37
|
-
return classes;
|
|
38
|
-
}
|
|
39
|
-
return [...classes, gridClasses['row--detailPanelExpanded']];
|
|
40
|
-
}, [privateApiRef, props.getDetailPanelContent]);
|
|
41
|
-
useGridRegisterPipeProcessor(privateApiRef, 'hydrateColumns', addToggleColumn);
|
|
42
|
-
useGridRegisterPipeProcessor(privateApiRef, 'rowClassName', addExpandedClassToRow);
|
|
43
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Only export the variable and types that should be publicly exposed and re-exported from `@mui/x-data-grid-pro`
|
|
2
|
-
export * from "./columnPinning/index.js";
|
|
3
|
-
export * from "./columnReorder/index.js";
|
|
4
|
-
export * from "./rowReorder/index.js";
|
|
5
|
-
export * from "./treeData/index.js";
|
|
6
|
-
export * from "./detailPanel/index.js";
|
|
7
|
-
export * from "./rowPinning/index.js";
|
|
8
|
-
export * from "./dataSource/interfaces.js";
|
|
9
|
-
export { GridDataSourceCacheDefault } from "./dataSource/cache.js";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
5
|
-
export const GRID_SKELETON_ROW_ROOT_ID = 'auto-generated-skeleton-row-root';
|
|
6
|
-
const getSkeletonRowId = index => `${GRID_SKELETON_ROW_ROOT_ID}-${index}`;
|
|
7
|
-
export const useGridLazyLoaderPreProcessors = (privateApiRef, props) => {
|
|
8
|
-
const addSkeletonRows = React.useCallback(groupingParams => {
|
|
9
|
-
const rootGroup = groupingParams.tree[GRID_ROOT_GROUP_ID];
|
|
10
|
-
if (props.rowsLoadingMode !== 'server' || !props.rowCount || rootGroup.children.length >= props.rowCount) {
|
|
11
|
-
return groupingParams;
|
|
12
|
-
}
|
|
13
|
-
const tree = _extends({}, groupingParams.tree);
|
|
14
|
-
const rootGroupChildren = [...rootGroup.children];
|
|
15
|
-
for (let i = 0; i < props.rowCount - rootGroup.children.length; i += 1) {
|
|
16
|
-
const skeletonId = getSkeletonRowId(i);
|
|
17
|
-
rootGroupChildren.push(skeletonId);
|
|
18
|
-
const skeletonRowNode = {
|
|
19
|
-
type: 'skeletonRow',
|
|
20
|
-
id: skeletonId,
|
|
21
|
-
parent: GRID_ROOT_GROUP_ID,
|
|
22
|
-
depth: 0
|
|
23
|
-
};
|
|
24
|
-
tree[skeletonId] = skeletonRowNode;
|
|
25
|
-
}
|
|
26
|
-
tree[GRID_ROOT_GROUP_ID] = _extends({}, rootGroup, {
|
|
27
|
-
children: rootGroupChildren
|
|
28
|
-
});
|
|
29
|
-
return _extends({}, groupingParams, {
|
|
30
|
-
tree
|
|
31
|
-
});
|
|
32
|
-
}, [props.rowCount, props.rowsLoadingMode]);
|
|
33
|
-
useGridRegisterPipeProcessor(privateApiRef, 'hydrateRows', addSkeletonRows);
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { gridAdditionalRowGroupsSelector, gridPinnedRowsSelector } from '@mui/x-data-grid/internals';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./gridRowPinningInterface.js";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useGridApiMethod } from '@mui/x-data-grid';
|
|
4
|
-
import { getRowIdFromRowModel } from '@mui/x-data-grid/internals';
|
|
5
|
-
function createPinnedRowsInternalCache(pinnedRows, getRowId) {
|
|
6
|
-
const cache = {
|
|
7
|
-
topIds: [],
|
|
8
|
-
bottomIds: [],
|
|
9
|
-
idLookup: {}
|
|
10
|
-
};
|
|
11
|
-
pinnedRows?.top?.forEach(rowModel => {
|
|
12
|
-
const id = getRowIdFromRowModel(rowModel, getRowId);
|
|
13
|
-
cache.topIds.push(id);
|
|
14
|
-
cache.idLookup[id] = rowModel;
|
|
15
|
-
});
|
|
16
|
-
pinnedRows?.bottom?.forEach(rowModel => {
|
|
17
|
-
const id = getRowIdFromRowModel(rowModel, getRowId);
|
|
18
|
-
cache.bottomIds.push(id);
|
|
19
|
-
cache.idLookup[id] = rowModel;
|
|
20
|
-
});
|
|
21
|
-
return cache;
|
|
22
|
-
}
|
|
23
|
-
export const rowPinningStateInitializer = (state, props, apiRef) => {
|
|
24
|
-
apiRef.current.caches.pinnedRows = createPinnedRowsInternalCache(props.pinnedRows, props.getRowId);
|
|
25
|
-
return _extends({}, state, {
|
|
26
|
-
rows: _extends({}, state.rows, {
|
|
27
|
-
additionalRowGroups: _extends({}, state.rows?.additionalRowGroups, {
|
|
28
|
-
pinnedRows: {
|
|
29
|
-
top: [],
|
|
30
|
-
bottom: []
|
|
31
|
-
}
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
export const useGridRowPinning = (apiRef, props) => {
|
|
37
|
-
const setPinnedRows = React.useCallback(newPinnedRows => {
|
|
38
|
-
apiRef.current.caches.pinnedRows = createPinnedRowsInternalCache(newPinnedRows, props.getRowId);
|
|
39
|
-
apiRef.current.requestPipeProcessorsApplication('hydrateRows');
|
|
40
|
-
}, [apiRef, props.getRowId]);
|
|
41
|
-
useGridApiMethod(apiRef, {
|
|
42
|
-
unstable_setPinnedRows: setPinnedRows
|
|
43
|
-
}, 'public');
|
|
44
|
-
const isFirstRender = React.useRef(true);
|
|
45
|
-
React.useEffect(() => {
|
|
46
|
-
if (isFirstRender.current) {
|
|
47
|
-
isFirstRender.current = false;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
apiRef.current.unstable_setPinnedRows(props.pinnedRows);
|
|
51
|
-
}, [apiRef, props.pinnedRows]);
|
|
52
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
3
|
-
import { renderRowReorderCell } from "../../../components/GridRowReorderCell.js";
|
|
4
|
-
export const GRID_REORDER_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
5
|
-
type: 'custom',
|
|
6
|
-
field: '__reorder__',
|
|
7
|
-
sortable: false,
|
|
8
|
-
filterable: false,
|
|
9
|
-
width: 50,
|
|
10
|
-
align: 'center',
|
|
11
|
-
headerAlign: 'center',
|
|
12
|
-
disableColumnMenu: true,
|
|
13
|
-
disableExport: true,
|
|
14
|
-
disableReorder: true,
|
|
15
|
-
resizable: false,
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
aggregable: false,
|
|
18
|
-
renderHeader: () => ' ',
|
|
19
|
-
renderCell: renderRowReorderCell
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./gridRowReorderColDef.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./useGridRowAriaAttributes.js";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useGridSelector, gridFilteredTopLevelRowCountSelector, GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
3
|
-
import { useGridRowAriaAttributes as useGridRowAriaAttributesCommunity, gridFilteredChildrenCountLookupSelector, gridExpandedSortedRowTreeLevelPositionLookupSelector } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { useGridPrivateApiContext } from "../../utils/useGridPrivateApiContext.js";
|
|
5
|
-
import { useGridRootProps } from "../../utils/useGridRootProps.js";
|
|
6
|
-
export const useGridRowAriaAttributes = addTreeDataAttributes => {
|
|
7
|
-
const apiRef = useGridPrivateApiContext();
|
|
8
|
-
const props = useGridRootProps();
|
|
9
|
-
const getRowAriaAttributesCommunity = useGridRowAriaAttributesCommunity();
|
|
10
|
-
const filteredTopLevelRowCount = useGridSelector(apiRef, gridFilteredTopLevelRowCountSelector);
|
|
11
|
-
const filteredChildrenCountLookup = useGridSelector(apiRef, gridFilteredChildrenCountLookupSelector);
|
|
12
|
-
const sortedVisibleRowPositionsLookup = useGridSelector(apiRef, gridExpandedSortedRowTreeLevelPositionLookupSelector);
|
|
13
|
-
return React.useCallback((rowNode, index) => {
|
|
14
|
-
const ariaAttributes = getRowAriaAttributesCommunity(rowNode, index);
|
|
15
|
-
if (rowNode === null || !(props.treeData || addTreeDataAttributes)) {
|
|
16
|
-
return ariaAttributes;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// pinned and footer rows are not part of the rowgroup and should not get the set specific aria attributes
|
|
20
|
-
if (rowNode.type === 'footer' || rowNode.type === 'pinnedRow') {
|
|
21
|
-
return ariaAttributes;
|
|
22
|
-
}
|
|
23
|
-
ariaAttributes['aria-level'] = rowNode.depth + 1;
|
|
24
|
-
const filteredChildrenCount = filteredChildrenCountLookup[rowNode.id] ?? 0;
|
|
25
|
-
// aria-expanded should only be added to the rows that contain children
|
|
26
|
-
if (rowNode.type === 'group' && filteredChildrenCount > 0) {
|
|
27
|
-
ariaAttributes['aria-expanded'] = Boolean(rowNode.childrenExpanded);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// if the parent is null, set size and position cannot be determined
|
|
31
|
-
if (rowNode.parent !== null) {
|
|
32
|
-
ariaAttributes['aria-setsize'] = rowNode.parent === GRID_ROOT_GROUP_ID ? filteredTopLevelRowCount : filteredChildrenCountLookup[rowNode.parent];
|
|
33
|
-
ariaAttributes['aria-posinset'] = sortedVisibleRowPositionsLookup[rowNode.id];
|
|
34
|
-
}
|
|
35
|
-
return ariaAttributes;
|
|
36
|
-
}, [props.treeData, addTreeDataAttributes, filteredTopLevelRowCount, filteredChildrenCountLookup, sortedVisibleRowPositionsLookup, getRowAriaAttributesCommunity]);
|
|
37
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
2
|
-
import { defaultGridFilterLookup, getTreeNodeDescendants } from '@mui/x-data-grid/internals';
|
|
3
|
-
export function skipFiltering(rowTree) {
|
|
4
|
-
const filteredRowsLookup = {};
|
|
5
|
-
const filteredChildrenCountLookup = {};
|
|
6
|
-
const nodes = Object.values(rowTree);
|
|
7
|
-
for (let i = 0; i < nodes.length; i += 1) {
|
|
8
|
-
const node = nodes[i];
|
|
9
|
-
filteredRowsLookup[node.id] = true;
|
|
10
|
-
filteredChildrenCountLookup[node.id] = node.serverChildrenCount ?? 0;
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
filteredRowsLookup,
|
|
14
|
-
filteredChildrenCountLookup,
|
|
15
|
-
filteredDescendantCountLookup: defaultGridFilterLookup.filteredDescendantCountLookup
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export function skipSorting(rowTree) {
|
|
19
|
-
return getTreeNodeDescendants(rowTree, GRID_ROOT_GROUP_ID, false);
|
|
20
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { GRID_STRING_COL_DEF, gridRowIdSelector, gridRowTreeSelector } from '@mui/x-data-grid';
|
|
3
|
-
import { GRID_TREE_DATA_GROUPING_FIELD } from '@mui/x-data-grid/internals';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* TODO: Add sorting and filtering on the value and the filteredDescendantCount
|
|
7
|
-
*/
|
|
8
|
-
export const GRID_TREE_DATA_GROUPING_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
9
|
-
type: 'custom',
|
|
10
|
-
sortable: false,
|
|
11
|
-
filterable: false,
|
|
12
|
-
disableColumnMenu: true,
|
|
13
|
-
disableReorder: true,
|
|
14
|
-
align: 'left',
|
|
15
|
-
width: 200,
|
|
16
|
-
valueGetter: (value, row, column, apiRef) => {
|
|
17
|
-
const rowId = gridRowIdSelector(apiRef.current.state, row);
|
|
18
|
-
const rowNode = gridRowTreeSelector(apiRef)[rowId];
|
|
19
|
-
return rowNode?.type === 'group' || rowNode?.type === 'leaf' ? rowNode.groupingKey : undefined;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export { GRID_TREE_DATA_GROUPING_FIELD };
|
|
23
|
-
export const GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = {
|
|
24
|
-
field: GRID_TREE_DATA_GROUPING_FIELD,
|
|
25
|
-
editable: false,
|
|
26
|
-
groupable: false
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { GRID_TREE_DATA_GROUPING_FIELD } from "./gridTreeDataGroupColDef.js";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useGridApiEventHandler } from '@mui/x-data-grid';
|
|
3
|
-
import { GRID_TREE_DATA_GROUPING_FIELD } from "./gridTreeDataGroupColDef.js";
|
|
4
|
-
export const useGridTreeData = (apiRef, props) => {
|
|
5
|
-
/**
|
|
6
|
-
* EVENTS
|
|
7
|
-
*/
|
|
8
|
-
const handleCellKeyDown = React.useCallback((params, event) => {
|
|
9
|
-
const cellParams = apiRef.current.getCellParams(params.id, params.field);
|
|
10
|
-
if (cellParams.colDef.field === GRID_TREE_DATA_GROUPING_FIELD && (event.key === ' ' || event.key === 'Enter') && !event.shiftKey) {
|
|
11
|
-
if (params.rowNode.type !== 'group') {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (props.unstable_dataSource && !params.rowNode.childrenExpanded) {
|
|
15
|
-
apiRef.current.unstable_dataSource.fetchRows(params.id);
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
apiRef.current.setRowChildrenExpansion(params.id, !params.rowNode.childrenExpanded);
|
|
19
|
-
}
|
|
20
|
-
}, [apiRef, props.unstable_dataSource]);
|
|
21
|
-
useGridApiEventHandler(apiRef, 'cellKeyDown', handleCellKeyDown);
|
|
22
|
-
};
|
package/esm/hooks/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./features/index.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { useGridAriaAttributes as useGridAriaAttributesCommunity } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { useGridRootProps } from "./useGridRootProps.js";
|
|
4
|
-
export const useGridAriaAttributes = () => {
|
|
5
|
-
const ariaAttributesCommunity = useGridAriaAttributesCommunity();
|
|
6
|
-
const rootProps = useGridRootProps();
|
|
7
|
-
const ariaAttributesPro = rootProps.treeData ? {
|
|
8
|
-
role: 'treegrid'
|
|
9
|
-
} : {};
|
|
10
|
-
return _extends({}, ariaAttributesCommunity, ariaAttributesPro);
|
|
11
|
-
};
|
package/esm/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "./typeOverloads/index.js";
|
|
2
|
-
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `@mui/x-license` package instead:
|
|
5
|
-
* @example import { LicenseInfo } from '@mui/x-license';
|
|
6
|
-
*/
|
|
7
|
-
export class LicenseInfo extends LicenseInfoExport {}
|
|
8
|
-
export * from '@mui/x-data-grid/components';
|
|
9
|
-
export * from '@mui/x-data-grid/constants';
|
|
10
|
-
export * from '@mui/x-data-grid/hooks';
|
|
11
|
-
export * from '@mui/x-data-grid/models';
|
|
12
|
-
export * from '@mui/x-data-grid/context';
|
|
13
|
-
export * from '@mui/x-data-grid/utils';
|
|
14
|
-
export * from '@mui/x-data-grid/colDef';
|
|
15
|
-
export * from "./DataGridPro/index.js";
|
|
16
|
-
export * from "./hooks/index.js";
|
|
17
|
-
export * from "./models/index.js";
|
|
18
|
-
export * from "./components/index.js";
|
|
19
|
-
export * from "./utils/index.js";
|
|
20
|
-
export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
|
|
21
|
-
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
|
|
22
|
-
export { GridColumnHeaders } from "./components/GridColumnHeaders.js";
|
package/esm/internals/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line import/export
|
|
2
|
-
export * from '@mui/x-data-grid/internals';
|
|
3
|
-
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
4
|
-
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
5
|
-
|
|
6
|
-
/* eslint-disable import/export --
|
|
7
|
-
* x-data-grid-pro internals that are overriding the x-data-grid internals
|
|
8
|
-
*/
|
|
9
|
-
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
10
|
-
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
11
|
-
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
12
|
-
// eslint-enable import/export
|
|
13
|
-
|
|
14
|
-
export { useGridColumnPinning, columnPinningStateInitializer } from "../hooks/features/columnPinning/useGridColumnPinning.js";
|
|
15
|
-
export { useGridColumnPinningPreProcessors } from "../hooks/features/columnPinning/useGridColumnPinningPreProcessors.js";
|
|
16
|
-
export { useGridColumnReorder, columnReorderStateInitializer } from "../hooks/features/columnReorder/useGridColumnReorder.js";
|
|
17
|
-
export { useGridDataSourceTreeDataPreProcessors } from "../hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js";
|
|
18
|
-
export { useGridDetailPanel, detailPanelStateInitializer } from "../hooks/features/detailPanel/useGridDetailPanel.js";
|
|
19
|
-
export { useGridDetailPanelPreProcessors } from "../hooks/features/detailPanel/useGridDetailPanelPreProcessors.js";
|
|
20
|
-
export { useGridInfiniteLoader } from "../hooks/features/infiniteLoader/useGridInfiniteLoader.js";
|
|
21
|
-
export { useGridRowReorder } from "../hooks/features/rowReorder/useGridRowReorder.js";
|
|
22
|
-
export { useGridRowReorderPreProcessors } from "../hooks/features/rowReorder/useGridRowReorderPreProcessors.js";
|
|
23
|
-
export { useGridTreeData } from "../hooks/features/treeData/useGridTreeData.js";
|
|
24
|
-
export { useGridTreeDataPreProcessors } from "../hooks/features/treeData/useGridTreeDataPreProcessors.js";
|
|
25
|
-
export { useGridRowPinning, rowPinningStateInitializer } from "../hooks/features/rowPinning/useGridRowPinning.js";
|
|
26
|
-
export { useGridRowPinningPreProcessors, addPinnedRow } from "../hooks/features/rowPinning/useGridRowPinningPreProcessors.js";
|
|
27
|
-
export { useGridLazyLoader } from "../hooks/features/lazyLoader/useGridLazyLoader.js";
|
|
28
|
-
export { useGridLazyLoaderPreProcessors } from "../hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js";
|
|
29
|
-
export { useGridDataSource, dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSource.js";
|
|
30
|
-
export { createRowTree } from "../utils/tree/createRowTree.js";
|
|
31
|
-
export { updateRowTree } from "../utils/tree/updateRowTree.js";
|
|
32
|
-
export { sortRowTree } from "../utils/tree/sortRowTree.js";
|
|
33
|
-
export { insertNodeInTree, removeNodeFromTree, getVisibleRowsLookup } from "../utils/tree/utils.js";
|
|
34
|
-
export { skipSorting, skipFiltering } from "../hooks/features/serverSideTreeData/utils.js";
|
|
35
|
-
export * from "./propValidation.js";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { GridSignature, isNumber, propValidatorsDataGrid } from '@mui/x-data-grid/internals';
|
|
2
|
-
export const propValidatorsDataGridPro = [...propValidatorsDataGrid, props => props.pagination && props.hideFooterRowCount && 'MUI X: The `hideFooterRowCount` prop has no effect when the pagination is enabled.' || undefined, props => props.treeData && props.filterMode === 'server' && !props.unstable_dataSource && 'MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.' || undefined, props => !props.pagination && props.checkboxSelectionVisibleOnly && 'MUI X: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.' || undefined, props => props.signature !== GridSignature.DataGrid && props.paginationMode === 'client' && props.rowsLoadingMode !== 'server' && isNumber(props.rowCount) && 'MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect. `rowCount` is only meant to be used with `paginationMode="server"`.' || undefined];
|
package/esm/material/icons.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export const GridPushPinRightIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
5
|
-
transform: "rotate(-30 15 10)",
|
|
6
|
-
children: /*#__PURE__*/_jsx("path", {
|
|
7
|
-
d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
|
|
8
|
-
fillRule: "evenodd"
|
|
9
|
-
})
|
|
10
|
-
}), 'PushPinRight');
|
|
11
|
-
export const GridPushPinLeftIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
12
|
-
transform: "rotate(30 8 12)",
|
|
13
|
-
children: /*#__PURE__*/_jsx("path", {
|
|
14
|
-
d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
|
|
15
|
-
fillRule: "evenodd"
|
|
16
|
-
})
|
|
17
|
-
}), 'PushPinLeft');
|
package/esm/material/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { GridPushPinRightIcon, GridPushPinLeftIcon } from "./icons.js";
|
|
3
|
-
const iconSlots = {
|
|
4
|
-
columnMenuPinRightIcon: GridPushPinRightIcon,
|
|
5
|
-
columnMenuPinLeftIcon: GridPushPinLeftIcon
|
|
6
|
-
};
|
|
7
|
-
const materialSlots = _extends({}, iconSlots);
|
|
8
|
-
export default materialSlots;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/esm/models/gridApiPro.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/esm/models/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./gridApiPro.js";
|
|
2
|
-
export * from "./gridGroupingColDefOverride.js";
|
|
3
|
-
export * from "./gridRowScrollEndParams.js";
|
|
4
|
-
export * from "./gridRowOrderChangeParams.js";
|
|
5
|
-
export * from "./gridFetchRowsParams.js";
|
|
6
|
-
export * from "./gridProSlotsComponent.js";
|
|
7
|
-
export * from "./gridProIconSlotsComponent.js";
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./modules.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
2
|
-
export { useGridApiRef } from "../hooks/utils/useGridApiRef.js";
|
|
3
|
-
export { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The full grid API.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The state of Data Grid Pro.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The initial state of Data Grid Pro.
|
|
15
|
-
*/
|
package/esm/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./tree/index.js";
|
package/esm/utils/releaseInfo.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ponyfillGlobal } from '@mui/utils';
|
|
2
|
-
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "MTc0NDc1NDQwMDAwMA==";
|
|
4
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5
|
-
// A simple hack to set the value in the test environment (has no build step).
|
|
6
|
-
// eslint-disable-next-line no-useless-concat
|
|
7
|
-
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
8
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
9
|
-
return ponyfillGlobal.__MUI_RELEASE_INFO__;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return releaseInfo;
|
|
13
|
-
};
|
package/esm/utils/tree/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getGroupRowIdFromPath } from "./utils.js";
|
package/esm/utils/tree/models.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|