@mui/x-data-grid-pro 9.0.0-alpha.1 → 9.0.0-alpha.3
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 +240 -0
- package/DataGridPro/DataGrid.js +4 -2
- package/DataGridPro/DataGrid.mjs +20 -0
- package/{esm/DataGridPro/DataGridPro.d.ts → DataGridPro/DataGridPro.d.mts} +2 -2
- package/DataGridPro/DataGridPro.js +72 -11
- package/{esm/DataGridPro/DataGridPro.js → DataGridPro/DataGridPro.mjs} +72 -11
- package/DataGridPro/index.d.mts +3 -0
- package/DataGridPro/index.mjs +3 -0
- package/{esm/DataGridPro/useDataGridProComponent.d.ts → DataGridPro/useDataGridProComponent.d.mts} +2 -2
- package/{esm/DataGridPro/useDataGridProComponent.js → DataGridPro/useDataGridProComponent.mjs} +18 -18
- package/{esm/DataGridPro/useDataGridProProps.d.ts → DataGridPro/useDataGridProProps.d.mts} +1 -1
- package/{esm/DataGridPro/useDataGridProProps.js → DataGridPro/useDataGridProProps.mjs} +1 -1
- package/{esm/components/GridColumnHeaders.js → components/GridColumnHeaders.mjs} +1 -1
- package/{esm/components/GridColumnMenuPinningItem.js → components/GridColumnMenuPinningItem.mjs} +2 -2
- package/{esm/components/GridDataSourceTreeDataGroupingCell.js → components/GridDataSourceTreeDataGroupingCell.mjs} +3 -3
- package/{esm/components/GridDetailPanel.js → components/GridDetailPanel.mjs} +2 -2
- package/{esm/components/GridDetailPanelToggleCell.js → components/GridDetailPanelToggleCell.mjs} +3 -3
- package/{esm/components/GridDetailPanels.js → components/GridDetailPanels.mjs} +5 -5
- package/{esm/components/GridProColumnMenu.d.ts → components/GridProColumnMenu.d.mts} +1 -1
- package/{esm/components/GridProColumnMenu.js → components/GridProColumnMenu.mjs} +1 -1
- package/{esm/components/GridRowReorderCell.js → components/GridRowReorderCell.mjs} +1 -1
- package/{esm/components/GridTreeDataGroupingCell.js → components/GridTreeDataGroupingCell.mjs} +2 -2
- package/components/headerFiltering/GridHeaderFilterCell.js +3 -2
- package/{esm/components/headerFiltering/GridHeaderFilterCell.js → components/headerFiltering/GridHeaderFilterCell.mjs} +6 -5
- package/{esm/components/headerFiltering/GridHeaderFilterClearButton.js → components/headerFiltering/GridHeaderFilterClearButton.mjs} +1 -1
- package/components/headerFiltering/GridHeaderFilterMenu.js +2 -1
- package/{esm/components/headerFiltering/GridHeaderFilterMenu.js → components/headerFiltering/GridHeaderFilterMenu.mjs} +2 -1
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +2 -1
- package/{esm/components/headerFiltering/GridHeaderFilterMenuContainer.js → components/headerFiltering/GridHeaderFilterMenuContainer.mjs} +3 -2
- package/components/headerFiltering/index.d.mts +3 -0
- package/components/headerFiltering/index.mjs +3 -0
- package/components/index.d.mts +6 -0
- package/components/index.mjs +7 -0
- package/{esm/components/reexports.d.ts → components/reexports.d.mts} +1 -1
- package/{esm/components/reexports.js → components/reexports.mjs} +1 -1
- package/constants/dataGridProDefaultSlotsComponents.d.mts +2 -0
- package/{esm/constants/dataGridProDefaultSlotsComponents.js → constants/dataGridProDefaultSlotsComponents.mjs} +7 -7
- package/{esm/hooks/features/columnHeaders/useGridColumnHeaders.js → hooks/features/columnHeaders/useGridColumnHeaders.mjs} +1 -1
- package/hooks/features/columnPinning/index.d.mts +1 -0
- package/hooks/features/columnPinning/index.mjs +1 -0
- package/{esm/hooks/features/columnPinning/useGridColumnPinning.d.ts → hooks/features/columnPinning/useGridColumnPinning.d.mts} +2 -2
- package/{esm/hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.ts → hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.mts} +2 -2
- package/{esm/hooks/features/columnReorder/columnReorderSelector.d.ts → hooks/features/columnReorder/columnReorderSelector.d.mts} +2 -2
- package/{esm/hooks/features/columnReorder/index.d.ts → hooks/features/columnReorder/index.d.mts} +2 -2
- package/hooks/features/columnReorder/index.mjs +2 -0
- package/{esm/hooks/features/columnReorder/useGridColumnReorder.d.ts → hooks/features/columnReorder/useGridColumnReorder.d.mts} +2 -2
- package/{esm/hooks/features/columnReorder/useGridColumnReorder.js → hooks/features/columnReorder/useGridColumnReorder.mjs} +1 -1
- package/{esm/hooks/features/dataSource/gridDataSourceSelector.d.ts → hooks/features/dataSource/gridDataSourceSelector.d.mts} +2 -2
- package/hooks/features/dataSource/index.d.mts +1 -0
- package/{esm/hooks/features/dataSource/useGridDataSourceBasePro.d.ts → hooks/features/dataSource/useGridDataSourceBasePro.d.mts} +3 -3
- package/hooks/features/dataSource/useGridDataSourceBasePro.js +13 -15
- package/{esm/hooks/features/dataSource/useGridDataSourceBasePro.js → hooks/features/dataSource/useGridDataSourceBasePro.mjs} +16 -18
- package/{esm/hooks/features/dataSource/useGridDataSourcePro.d.ts → hooks/features/dataSource/useGridDataSourcePro.d.mts} +2 -2
- package/{esm/hooks/features/dataSource/useGridDataSourcePro.js → hooks/features/dataSource/useGridDataSourcePro.mjs} +1 -1
- package/{esm/hooks/features/dataSource/utils.d.ts → hooks/features/dataSource/utils.d.mts} +1 -1
- package/{esm/hooks/features/detailPanel/gridDetailPanelSelector.d.ts → hooks/features/detailPanel/gridDetailPanelSelector.d.mts} +2 -2
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +2 -1
- package/{esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js → hooks/features/detailPanel/gridDetailPanelToggleColDef.mjs} +4 -3
- package/{esm/hooks/features/detailPanel/index.d.ts → hooks/features/detailPanel/index.d.mts} +3 -3
- package/{esm/hooks/features/detailPanel/index.js → hooks/features/detailPanel/index.mjs} +3 -3
- package/{esm/hooks/features/detailPanel/useGridDetailPanel.d.ts → hooks/features/detailPanel/useGridDetailPanel.d.mts} +2 -2
- package/{esm/hooks/features/detailPanel/useGridDetailPanel.js → hooks/features/detailPanel/useGridDetailPanel.mjs} +2 -2
- package/{esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.ts → hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.mts} +2 -2
- package/{esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js → hooks/features/detailPanel/useGridDetailPanelPreProcessors.mjs} +2 -2
- package/hooks/features/index.d.mts +7 -0
- package/hooks/features/index.mjs +8 -0
- package/{esm/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts → hooks/features/infiniteLoader/useGridInfiniteLoader.d.mts} +2 -2
- package/{esm/hooks/features/lazyLoader/useGridLazyLoader.d.ts → hooks/features/lazyLoader/useGridLazyLoader.d.mts} +2 -2
- package/{esm/hooks/features/lazyLoader/useGridLazyLoader.js → hooks/features/lazyLoader/useGridLazyLoader.mjs} +1 -1
- package/{esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.ts → hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.mts} +2 -2
- package/{esm/hooks/features/lazyLoader/utils.d.ts → hooks/features/lazyLoader/utils.d.mts} +1 -1
- package/hooks/features/rowPinning/index.d.mts +1 -0
- package/hooks/features/rowPinning/index.mjs +1 -0
- package/{esm/hooks/features/rowPinning/useGridRowPinning.d.ts → hooks/features/rowPinning/useGridRowPinning.d.mts} +2 -2
- package/{esm/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts → hooks/features/rowPinning/useGridRowPinningPreProcessors.d.mts} +2 -2
- package/{esm/hooks/features/rowPinning/useGridRowPinningPreProcessors.js → hooks/features/rowPinning/useGridRowPinningPreProcessors.mjs} +1 -1
- package/{esm/hooks/features/rowReorder/commonReorderConditions.d.ts → hooks/features/rowReorder/commonReorderConditions.d.mts} +1 -1
- package/{esm/hooks/features/rowReorder/gridRowReorderColDef.js → hooks/features/rowReorder/gridRowReorderColDef.mjs} +1 -1
- package/hooks/features/rowReorder/index.d.mts +2 -0
- package/hooks/features/rowReorder/index.mjs +2 -0
- package/{esm/hooks/features/rowReorder/models.d.ts → hooks/features/rowReorder/models.d.mts} +1 -1
- package/{esm/hooks/features/rowReorder/reorderExecutor.d.ts → hooks/features/rowReorder/reorderExecutor.d.mts} +1 -1
- package/{esm/hooks/features/rowReorder/reorderValidator.d.ts → hooks/features/rowReorder/reorderValidator.d.mts} +1 -1
- package/{esm/hooks/features/rowReorder/types.d.ts → hooks/features/rowReorder/types.d.mts} +2 -2
- package/{esm/hooks/features/rowReorder/useGridRowReorder.d.ts → hooks/features/rowReorder/useGridRowReorder.d.mts} +2 -2
- package/hooks/features/rowReorder/useGridRowReorder.js +3 -2
- package/{esm/hooks/features/rowReorder/useGridRowReorder.js → hooks/features/rowReorder/useGridRowReorder.mjs} +5 -4
- package/{esm/hooks/features/rowReorder/useGridRowReorderPreProcessors.d.ts → hooks/features/rowReorder/useGridRowReorderPreProcessors.d.mts} +2 -2
- package/{esm/hooks/features/rowReorder/useGridRowReorderPreProcessors.js → hooks/features/rowReorder/useGridRowReorderPreProcessors.mjs} +1 -1
- package/{esm/hooks/features/rowReorder/utils.d.ts → hooks/features/rowReorder/utils.d.mts} +4 -4
- package/{esm/hooks/features/rowReorder/utils.js → hooks/features/rowReorder/utils.mjs} +1 -1
- package/hooks/features/rows/index.d.mts +1 -0
- package/hooks/features/rows/index.mjs +1 -0
- package/{esm/hooks/features/rows/useGridRowAriaAttributes.js → hooks/features/rows/useGridRowAriaAttributes.mjs} +2 -2
- package/{esm/hooks/features/rows/useGridRowsOverridableMethods.d.ts → hooks/features/rows/useGridRowsOverridableMethods.d.mts} +2 -2
- package/hooks/features/rows/useGridRowsOverridableMethods.js +7 -5
- package/{esm/hooks/features/rows/useGridRowsOverridableMethods.js → hooks/features/rows/useGridRowsOverridableMethods.mjs} +7 -6
- package/{esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.d.ts → hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.d.mts} +2 -2
- package/{esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js → hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.mjs} +2 -2
- package/{esm/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.d.ts → hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.d.mts} +2 -2
- package/{esm/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.d.ts → hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.d.mts} +2 -2
- package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +4 -3
- package/{esm/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js → hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.mjs} +11 -10
- package/{esm/hooks/features/treeData/gridTreeDataUtils.d.ts → hooks/features/treeData/gridTreeDataUtils.d.mts} +1 -1
- package/{esm/hooks/features/treeData/index.d.ts → hooks/features/treeData/index.d.mts} +1 -1
- package/{esm/hooks/features/treeData/index.js → hooks/features/treeData/index.mjs} +1 -1
- package/{esm/hooks/features/treeData/treeDataReorderExecutor.d.ts → hooks/features/treeData/treeDataReorderExecutor.d.mts} +2 -2
- package/{esm/hooks/features/treeData/treeDataReorderExecutor.js → hooks/features/treeData/treeDataReorderExecutor.mjs} +3 -3
- package/{esm/hooks/features/treeData/treeDataReorderValidator.d.ts → hooks/features/treeData/treeDataReorderValidator.d.mts} +1 -1
- package/{esm/hooks/features/treeData/treeDataReorderValidator.js → hooks/features/treeData/treeDataReorderValidator.mjs} +2 -2
- package/{esm/hooks/features/treeData/useGridTreeData.d.ts → hooks/features/treeData/useGridTreeData.d.mts} +2 -2
- package/{esm/hooks/features/treeData/useGridTreeData.js → hooks/features/treeData/useGridTreeData.mjs} +2 -2
- package/{esm/hooks/features/treeData/useGridTreeDataPreProcessors.d.ts → hooks/features/treeData/useGridTreeDataPreProcessors.d.mts} +2 -2
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +3 -2
- package/{esm/hooks/features/treeData/useGridTreeDataPreProcessors.js → hooks/features/treeData/useGridTreeDataPreProcessors.mjs} +10 -9
- package/{esm/hooks/features/treeData/utils.d.ts → hooks/features/treeData/utils.d.mts} +1 -1
- package/{esm/hooks/features/treeData/utils.js → hooks/features/treeData/utils.mjs} +1 -1
- package/hooks/index.d.mts +1 -0
- package/hooks/index.mjs +1 -0
- package/{esm/hooks/utils/useGridApiContext.d.ts → hooks/utils/useGridApiContext.d.mts} +1 -1
- package/{esm/hooks/utils/useGridApiRef.d.ts → hooks/utils/useGridApiRef.d.mts} +1 -1
- package/{esm/hooks/utils/useGridAriaAttributes.js → hooks/utils/useGridAriaAttributes.mjs} +1 -1
- package/{esm/hooks/utils/useGridPrivateApiContext.d.ts → hooks/utils/useGridPrivateApiContext.d.mts} +1 -1
- package/{esm/hooks/utils/useGridRootProps.d.ts → hooks/utils/useGridRootProps.d.mts} +1 -1
- package/{esm/index.d.ts → index.d.mts} +14 -14
- package/index.js +1 -1
- package/{esm/index.js → index.mjs} +10 -10
- package/{esm/internals/index.d.ts → internals/index.d.mts} +44 -44
- package/{esm/internals/index.js → internals/index.mjs} +38 -38
- package/{esm/internals/propValidation.d.ts → internals/propValidation.d.mts} +1 -1
- package/{esm/material/index.js → material/index.mjs} +1 -1
- package/{esm/models/dataGridProProps.d.ts → models/dataGridProProps.d.mts} +9 -9
- package/{esm/models/gridApiPro.d.ts → models/gridApiPro.d.mts} +5 -5
- package/{esm/models/gridProSlotProps.d.ts → models/gridProSlotProps.d.mts} +1 -1
- package/{esm/models/gridProSlotsComponent.d.ts → models/gridProSlotsComponent.d.mts} +1 -1
- package/{esm/models/gridStatePro.d.ts → models/gridStatePro.d.mts} +2 -2
- package/models/index.d.mts +7 -0
- package/models/index.mjs +7 -0
- package/package.json +141 -16
- package/themeAugmentation/index.d.mts +2 -0
- package/themeAugmentation/index.mjs +4 -0
- package/{esm/themeAugmentation/props.d.ts → themeAugmentation/props.d.mts} +1 -1
- package/typeOverloads/index.d.mts +1 -0
- package/typeOverloads/index.mjs +1 -0
- package/{esm/typeOverloads/modules.d.ts → typeOverloads/modules.d.mts} +5 -5
- package/{esm/typeOverloads/reexports.d.ts → typeOverloads/reexports.d.mts} +5 -5
- package/{esm/typeOverloads/reexports.js → typeOverloads/reexports.mjs} +3 -3
- package/utils/index.d.mts +1 -0
- package/utils/index.mjs +1 -0
- package/{esm/utils/tree/createRowTree.d.ts → utils/tree/createRowTree.d.mts} +2 -2
- package/{esm/utils/tree/createRowTree.js → utils/tree/createRowTree.mjs} +1 -1
- package/utils/tree/index.d.mts +1 -0
- package/utils/tree/index.mjs +1 -0
- package/{esm/utils/tree/insertDataRowInTree.d.ts → utils/tree/insertDataRowInTree.d.mts} +2 -2
- package/{esm/utils/tree/insertDataRowInTree.js → utils/tree/insertDataRowInTree.mjs} +1 -1
- package/{esm/utils/tree/removeDataRowFromTree.js → utils/tree/removeDataRowFromTree.mjs} +3 -3
- package/{esm/utils/tree/updateRowTree.d.ts → utils/tree/updateRowTree.d.mts} +1 -1
- package/{esm/utils/tree/updateRowTree.js → utils/tree/updateRowTree.mjs} +3 -3
- package/{esm/utils/tree/utils.d.ts → utils/tree/utils.d.mts} +3 -3
- package/esm/DataGridPro/DataGrid.js +0 -19
- package/esm/DataGridPro/index.d.ts +0 -3
- package/esm/DataGridPro/index.js +0 -3
- package/esm/components/headerFiltering/index.d.ts +0 -3
- package/esm/components/headerFiltering/index.js +0 -3
- package/esm/components/index.d.ts +0 -6
- package/esm/components/index.js +0 -7
- package/esm/constants/dataGridProDefaultSlotsComponents.d.ts +0 -2
- package/esm/hooks/features/columnPinning/index.d.ts +0 -1
- package/esm/hooks/features/columnPinning/index.js +0 -1
- package/esm/hooks/features/columnReorder/index.js +0 -2
- package/esm/hooks/features/dataSource/index.d.ts +0 -1
- package/esm/hooks/features/index.d.ts +0 -7
- package/esm/hooks/features/index.js +0 -8
- package/esm/hooks/features/rowPinning/index.d.ts +0 -1
- package/esm/hooks/features/rowPinning/index.js +0 -1
- package/esm/hooks/features/rowReorder/index.d.ts +0 -2
- package/esm/hooks/features/rowReorder/index.js +0 -2
- package/esm/hooks/features/rows/index.d.ts +0 -1
- package/esm/hooks/features/rows/index.js +0 -1
- package/esm/hooks/index.d.ts +0 -1
- package/esm/hooks/index.js +0 -1
- package/esm/models/index.d.ts +0 -7
- package/esm/models/index.js +0 -7
- package/esm/package.json +0 -1
- package/esm/themeAugmentation/index.d.ts +0 -2
- package/esm/themeAugmentation/index.js +0 -4
- package/esm/typeOverloads/index.d.ts +0 -1
- package/esm/typeOverloads/index.js +0 -1
- package/esm/utils/index.d.ts +0 -1
- package/esm/utils/index.js +0 -1
- package/esm/utils/tree/index.d.ts +0 -1
- package/esm/utils/tree/index.js +0 -1
- /package/{esm/DataGridPro/DataGrid.d.ts → DataGridPro/DataGrid.d.mts} +0 -0
- /package/{esm/components/GridColumnHeaders.d.ts → components/GridColumnHeaders.d.mts} +0 -0
- /package/{esm/components/GridColumnMenuPinningItem.d.ts → components/GridColumnMenuPinningItem.d.mts} +0 -0
- /package/{esm/components/GridDataSourceTreeDataGroupingCell.d.ts → components/GridDataSourceTreeDataGroupingCell.d.mts} +0 -0
- /package/{esm/components/GridDetailPanel.d.ts → components/GridDetailPanel.d.mts} +0 -0
- /package/{esm/components/GridDetailPanelToggleCell.d.ts → components/GridDetailPanelToggleCell.d.mts} +0 -0
- /package/{esm/components/GridDetailPanels.d.ts → components/GridDetailPanels.d.mts} +0 -0
- /package/{esm/components/GridPinnedRows.d.ts → components/GridPinnedRows.d.mts} +0 -0
- /package/{esm/components/GridPinnedRows.js → components/GridPinnedRows.mjs} +0 -0
- /package/{esm/components/GridRowReorderCell.d.ts → components/GridRowReorderCell.d.mts} +0 -0
- /package/{esm/components/GridTreeDataGroupingCell.d.ts → components/GridTreeDataGroupingCell.d.mts} +0 -0
- /package/{esm/components/headerFiltering/GridHeaderFilterCell.d.ts → components/headerFiltering/GridHeaderFilterCell.d.mts} +0 -0
- /package/{esm/components/headerFiltering/GridHeaderFilterClearButton.d.ts → components/headerFiltering/GridHeaderFilterClearButton.d.mts} +0 -0
- /package/{esm/components/headerFiltering/GridHeaderFilterMenu.d.ts → components/headerFiltering/GridHeaderFilterMenu.d.mts} +0 -0
- /package/{esm/components/headerFiltering/GridHeaderFilterMenuContainer.d.ts → components/headerFiltering/GridHeaderFilterMenuContainer.d.mts} +0 -0
- /package/{esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts → hooks/features/columnHeaders/useGridColumnHeaders.d.mts} +0 -0
- /package/{esm/hooks/features/columnPinning/gridColumnPinningInterface.d.ts → hooks/features/columnPinning/gridColumnPinningInterface.d.mts} +0 -0
- /package/{esm/hooks/features/columnPinning/gridColumnPinningInterface.js → hooks/features/columnPinning/gridColumnPinningInterface.mjs} +0 -0
- /package/{esm/hooks/features/columnPinning/useGridColumnPinning.js → hooks/features/columnPinning/useGridColumnPinning.mjs} +0 -0
- /package/{esm/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js → hooks/features/columnPinning/useGridColumnPinningPreProcessors.mjs} +0 -0
- /package/{esm/hooks/features/columnReorder/columnReorderInterfaces.d.ts → hooks/features/columnReorder/columnReorderInterfaces.d.mts} +0 -0
- /package/{esm/hooks/features/columnReorder/columnReorderInterfaces.js → hooks/features/columnReorder/columnReorderInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/columnReorder/columnReorderSelector.js → hooks/features/columnReorder/columnReorderSelector.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/gridDataSourceSelector.js → hooks/features/dataSource/gridDataSourceSelector.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/index.js → hooks/features/dataSource/index.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/models.d.ts → hooks/features/dataSource/models.d.mts} +0 -0
- /package/{esm/hooks/features/dataSource/models.js → hooks/features/dataSource/models.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/utils.js → hooks/features/dataSource/utils.mjs} +0 -0
- /package/{esm/hooks/features/detailPanel/gridDetailPanelInterface.d.ts → hooks/features/detailPanel/gridDetailPanelInterface.d.mts} +0 -0
- /package/{esm/hooks/features/detailPanel/gridDetailPanelInterface.js → hooks/features/detailPanel/gridDetailPanelInterface.mjs} +0 -0
- /package/{esm/hooks/features/detailPanel/gridDetailPanelSelector.js → hooks/features/detailPanel/gridDetailPanelSelector.mjs} +0 -0
- /package/{esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts → hooks/features/detailPanel/gridDetailPanelToggleColDef.d.mts} +0 -0
- /package/{esm/hooks/features/infiniteLoader/useGridInfiniteLoader.js → hooks/features/infiniteLoader/useGridInfiniteLoader.mjs} +0 -0
- /package/{esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js → hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.mjs} +0 -0
- /package/{esm/hooks/features/lazyLoader/utils.js → hooks/features/lazyLoader/utils.mjs} +0 -0
- /package/{esm/hooks/features/rowPinning/gridRowPinningInterface.d.ts → hooks/features/rowPinning/gridRowPinningInterface.d.mts} +0 -0
- /package/{esm/hooks/features/rowPinning/gridRowPinningInterface.js → hooks/features/rowPinning/gridRowPinningInterface.mjs} +0 -0
- /package/{esm/hooks/features/rowPinning/gridRowPinningSelector.d.ts → hooks/features/rowPinning/gridRowPinningSelector.d.mts} +0 -0
- /package/{esm/hooks/features/rowPinning/gridRowPinningSelector.js → hooks/features/rowPinning/gridRowPinningSelector.mjs} +0 -0
- /package/{esm/hooks/features/rowPinning/useGridRowPinning.js → hooks/features/rowPinning/useGridRowPinning.mjs} +0 -0
- /package/{esm/hooks/features/rowReorder/commonReorderConditions.js → hooks/features/rowReorder/commonReorderConditions.mjs} +0 -0
- /package/{esm/hooks/features/rowReorder/gridRowReorderColDef.d.ts → hooks/features/rowReorder/gridRowReorderColDef.d.mts} +0 -0
- /package/{esm/hooks/features/rowReorder/models.js → hooks/features/rowReorder/models.mjs} +0 -0
- /package/{esm/hooks/features/rowReorder/reorderExecutor.js → hooks/features/rowReorder/reorderExecutor.mjs} +0 -0
- /package/{esm/hooks/features/rowReorder/reorderValidator.js → hooks/features/rowReorder/reorderValidator.mjs} +0 -0
- /package/{esm/hooks/features/rowReorder/types.js → hooks/features/rowReorder/types.mjs} +0 -0
- /package/{esm/hooks/features/rows/useGridRowAriaAttributes.d.ts → hooks/features/rows/useGridRowAriaAttributes.d.mts} +0 -0
- /package/{esm/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.js → hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.mjs} +0 -0
- /package/{esm/hooks/features/serverSideTreeData/utils.d.ts → hooks/features/serverSideTreeData/utils.d.mts} +0 -0
- /package/{esm/hooks/features/serverSideTreeData/utils.js → hooks/features/serverSideTreeData/utils.mjs} +0 -0
- /package/{esm/hooks/features/treeData/gridTreeDataGroupColDef.d.ts → hooks/features/treeData/gridTreeDataGroupColDef.d.mts} +0 -0
- /package/{esm/hooks/features/treeData/gridTreeDataGroupColDef.js → hooks/features/treeData/gridTreeDataGroupColDef.mjs} +0 -0
- /package/{esm/hooks/features/treeData/gridTreeDataUtils.js → hooks/features/treeData/gridTreeDataUtils.mjs} +0 -0
- /package/{esm/hooks/utils/useGridApiContext.js → hooks/utils/useGridApiContext.mjs} +0 -0
- /package/{esm/hooks/utils/useGridApiRef.js → hooks/utils/useGridApiRef.mjs} +0 -0
- /package/{esm/hooks/utils/useGridAriaAttributes.d.ts → hooks/utils/useGridAriaAttributes.d.mts} +0 -0
- /package/{esm/hooks/utils/useGridPrivateApiContext.js → hooks/utils/useGridPrivateApiContext.mjs} +0 -0
- /package/{esm/hooks/utils/useGridRootProps.js → hooks/utils/useGridRootProps.mjs} +0 -0
- /package/{esm/internals/propValidation.js → internals/propValidation.mjs} +0 -0
- /package/{esm/locales/index.d.ts → locales/index.d.mts} +0 -0
- /package/{esm/locales/index.js → locales/index.mjs} +0 -0
- /package/{esm/material/icons.d.ts → material/icons.d.mts} +0 -0
- /package/{esm/material/icons.js → material/icons.mjs} +0 -0
- /package/{esm/material/index.d.ts → material/index.d.mts} +0 -0
- /package/{esm/models/dataGridProProps.js → models/dataGridProProps.mjs} +0 -0
- /package/{esm/models/gridApiPro.js → models/gridApiPro.mjs} +0 -0
- /package/{esm/models/gridFetchRowsParams.d.ts → models/gridFetchRowsParams.d.mts} +0 -0
- /package/{esm/models/gridFetchRowsParams.js → models/gridFetchRowsParams.mjs} +0 -0
- /package/{esm/models/gridGroupingColDefOverride.d.ts → models/gridGroupingColDefOverride.d.mts} +0 -0
- /package/{esm/models/gridGroupingColDefOverride.js → models/gridGroupingColDefOverride.mjs} +0 -0
- /package/{esm/models/gridProIconSlotsComponent.d.ts → models/gridProIconSlotsComponent.d.mts} +0 -0
- /package/{esm/models/gridProIconSlotsComponent.js → models/gridProIconSlotsComponent.mjs} +0 -0
- /package/{esm/models/gridProSlotProps.js → models/gridProSlotProps.mjs} +0 -0
- /package/{esm/models/gridProSlotsComponent.js → models/gridProSlotsComponent.mjs} +0 -0
- /package/{esm/models/gridRowOrderChangeParams.d.ts → models/gridRowOrderChangeParams.d.mts} +0 -0
- /package/{esm/models/gridRowOrderChangeParams.js → models/gridRowOrderChangeParams.mjs} +0 -0
- /package/{esm/models/gridRowReorderApi.d.ts → models/gridRowReorderApi.d.mts} +0 -0
- /package/{esm/models/gridRowReorderApi.js → models/gridRowReorderApi.mjs} +0 -0
- /package/{esm/models/gridRowScrollEndParams.d.ts → models/gridRowScrollEndParams.d.mts} +0 -0
- /package/{esm/models/gridRowScrollEndParams.js → models/gridRowScrollEndParams.mjs} +0 -0
- /package/{esm/models/gridStatePro.js → models/gridStatePro.mjs} +0 -0
- /package/{esm/themeAugmentation/overrides.d.ts → themeAugmentation/overrides.d.mts} +0 -0
- /package/{esm/themeAugmentation/overrides.js → themeAugmentation/overrides.mjs} +0 -0
- /package/{esm/themeAugmentation/props.js → themeAugmentation/props.mjs} +0 -0
- /package/{esm/typeOverloads/modules.js → typeOverloads/modules.mjs} +0 -0
- /package/{esm/utils/tree/models.d.ts → utils/tree/models.d.mts} +0 -0
- /package/{esm/utils/tree/models.js → utils/tree/models.mjs} +0 -0
- /package/{esm/utils/tree/removeDataRowFromTree.d.ts → utils/tree/removeDataRowFromTree.d.mts} +0 -0
- /package/{esm/utils/tree/sortRowTree.d.ts → utils/tree/sortRowTree.d.mts} +0 -0
- /package/{esm/utils/tree/sortRowTree.js → utils/tree/sortRowTree.mjs} +0 -0
- /package/{esm/utils/tree/utils.js → utils/tree/utils.mjs} +0 -0
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useGridEvent as addEventHandler, useGridApiMethod } from '@mui/x-data-grid';
|
|
6
6
|
import { useGridRegisterStrategyProcessor } from '@mui/x-data-grid/internals';
|
|
7
|
-
import { INITIAL_STATE, useGridDataSourceBasePro } from "./useGridDataSourceBasePro.
|
|
7
|
+
import { INITIAL_STATE, useGridDataSourceBasePro } from "./useGridDataSourceBasePro.mjs";
|
|
8
8
|
function getKeyPro(params) {
|
|
9
9
|
return JSON.stringify([params.filterModel, params.sortModel, params.groupKeys, params.start, params.end]);
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridKeyValue, type GridRowId, type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/index.
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/index.mjs";
|
|
4
4
|
export declare enum RequestStatus {
|
|
5
5
|
QUEUED = 0,
|
|
6
6
|
PENDING = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridStatePro } from "../../../models/gridStatePro.
|
|
2
|
-
export declare const gridDetailPanelStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePro, unknown, import("./gridDetailPanelInterface.
|
|
1
|
+
import type { GridStatePro } from "../../../models/gridStatePro.mjs";
|
|
2
|
+
export declare const gridDetailPanelStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePro, unknown, import("./gridDetailPanelInterface.mjs").GridDetailPanelState>;
|
|
3
3
|
export declare const gridDetailPanelExpandedRowIdsSelector: (args_0: import("react").RefObject<{
|
|
4
4
|
state: GridStatePro;
|
|
5
5
|
} | null>) => Set<import("@mui/x-data-grid").GridRowId>;
|
|
@@ -42,6 +42,7 @@ const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = exports.GRID_DETAIL_PANEL_TOGGLE_COL_DE
|
|
|
42
42
|
renderHeader: ({
|
|
43
43
|
colDef
|
|
44
44
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
-
"aria-label": colDef.headerName
|
|
45
|
+
"aria-label": colDef.headerName,
|
|
46
|
+
role: "presentation"
|
|
46
47
|
})
|
|
47
48
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { GRID_STRING_COL_DEF, gridRowIdSelector } from '@mui/x-data-grid';
|
|
3
3
|
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.
|
|
5
|
-
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.
|
|
4
|
+
import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.mjs";
|
|
5
|
+
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.mjs";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
|
|
8
8
|
export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
@@ -30,6 +30,7 @@ export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF
|
|
|
30
30
|
renderHeader: ({
|
|
31
31
|
colDef
|
|
32
32
|
}) => /*#__PURE__*/_jsx("div", {
|
|
33
|
-
"aria-label": colDef.headerName
|
|
33
|
+
"aria-label": colDef.headerName,
|
|
34
|
+
role: "presentation"
|
|
34
35
|
})
|
|
35
36
|
});
|
package/{esm/hooks/features/detailPanel/index.d.ts → hooks/features/detailPanel/index.d.mts}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./gridDetailPanelToggleColDef.
|
|
2
|
-
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector } from "./gridDetailPanelSelector.
|
|
3
|
-
export * from "./gridDetailPanelInterface.
|
|
1
|
+
export * from "./gridDetailPanelToggleColDef.mjs";
|
|
2
|
+
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector } from "./gridDetailPanelSelector.mjs";
|
|
3
|
+
export * from "./gridDetailPanelInterface.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./gridDetailPanelToggleColDef.
|
|
2
|
-
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector } from "./gridDetailPanelSelector.
|
|
3
|
-
export * from "./gridDetailPanelInterface.
|
|
1
|
+
export * from "./gridDetailPanelToggleColDef.mjs";
|
|
2
|
+
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector } from "./gridDetailPanelSelector.mjs";
|
|
3
|
+
export * from "./gridDetailPanelInterface.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
4
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
5
5
|
export declare const detailPanelStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'initialState' | 'detailPanelExpandedRowIds'>>;
|
|
6
6
|
export declare const useGridDetailPanel: (apiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "getDetailPanelContent" | "getDetailPanelHeight" | "detailPanelExpandedRowIds" | "onDetailPanelExpandedRowIdsChange">) => void;
|
|
@@ -4,8 +4,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useGridEvent, useGridApiMethod, gridDataRowIdsSelector } from '@mui/x-data-grid';
|
|
6
6
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
7
|
-
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from "./gridDetailPanelToggleColDef.
|
|
8
|
-
import { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelRawHeightCacheSelector } from "./gridDetailPanelSelector.
|
|
7
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from "./gridDetailPanelToggleColDef.mjs";
|
|
8
|
+
import { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelRawHeightCacheSelector } from "./gridDetailPanelSelector.mjs";
|
|
9
9
|
const emptySet = new Set();
|
|
10
10
|
export const detailPanelStateInitializer = (state, props) => {
|
|
11
11
|
return _extends({}, state, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
2
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
4
|
export declare const useGridDetailPanelPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: DataGridProProcessedProps) => void;
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { gridClasses } from '@mui/x-data-grid';
|
|
4
4
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
5
|
-
import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from "./gridDetailPanelToggleColDef.
|
|
6
|
-
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.
|
|
5
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from "./gridDetailPanelToggleColDef.mjs";
|
|
6
|
+
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.mjs";
|
|
7
7
|
export const useGridDetailPanelPreProcessors = (privateApiRef, props) => {
|
|
8
8
|
const addToggleColumn = React.useCallback(columnsState => {
|
|
9
9
|
const detailPanelToggleColumn = _extends({}, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./columnPinning/index.mjs";
|
|
2
|
+
export * from "./columnReorder/index.mjs";
|
|
3
|
+
export * from "./rowReorder/index.mjs";
|
|
4
|
+
export * from "./treeData/index.mjs";
|
|
5
|
+
export * from "./detailPanel/index.mjs";
|
|
6
|
+
export * from "./rowPinning/index.mjs";
|
|
7
|
+
export * from "./dataSource/index.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
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.mjs";
|
|
3
|
+
export * from "./columnReorder/index.mjs";
|
|
4
|
+
export * from "./rowReorder/index.mjs";
|
|
5
|
+
export * from "./treeData/index.mjs";
|
|
6
|
+
export * from "./detailPanel/index.mjs";
|
|
7
|
+
export * from "./rowPinning/index.mjs";
|
|
8
|
+
export * from "./dataSource/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridColumns (state)
|
|
6
6
|
* @requires useGridDimensions (method) - can be after
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridRows (state)
|
|
6
6
|
* @requires useGridPagination (state)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useGridEvent, useGridSelector, gridSortModelSelector, gridFilterModelSelector, gridRenderContextSelector, useGridEventPriority } from '@mui/x-data-grid';
|
|
5
5
|
import { getVisibleRows } from '@mui/x-data-grid/internals';
|
|
6
|
-
import { findSkeletonRowsSection } from "./utils.
|
|
6
|
+
import { findSkeletonRowsSection } from "./utils.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @requires useGridRows (state)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
4
4
|
export declare const GRID_SKELETON_ROW_ROOT_ID = "auto-generated-skeleton-row-root";
|
|
5
5
|
export declare const useGridLazyLoaderPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "rowCount" | "rowsLoadingMode">) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridRowEntry } from '@mui/x-data-grid';
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
4
|
interface GridRowRenderContext {
|
|
5
5
|
firstRowIndex: number;
|
|
6
6
|
lastRowIndex: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./gridRowPinningInterface.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./gridRowPinningInterface.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
4
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
5
5
|
export declare const rowPinningStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'pinnedRows' | 'getRowId'>>;
|
|
6
6
|
export declare const useGridRowPinning: (apiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "pinnedRows" | "getRowId">) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridHydrateRowsValue } from '@mui/x-data-grid/internals';
|
|
3
3
|
import { type GridRowId, type GridRowModel } from '@mui/x-data-grid';
|
|
4
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
5
|
-
import type { GridPinnedRowsProp } from "./gridRowPinningInterface.
|
|
4
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
5
|
+
import type { GridPinnedRowsProp } from "./gridRowPinningInterface.mjs";
|
|
6
6
|
type GridPinnedRowPosition = keyof GridPinnedRowsProp;
|
|
7
7
|
export declare function addPinnedRow({
|
|
8
8
|
groupingParams,
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
6
6
|
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
7
|
-
import { insertNodeInTree } from "../../../utils/tree/utils.
|
|
7
|
+
import { insertNodeInTree } from "../../../utils/tree/utils.mjs";
|
|
8
8
|
export function addPinnedRow({
|
|
9
9
|
groupingParams,
|
|
10
10
|
rowModel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { gridRowIdSelector, GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
3
|
-
import { renderRowReorderCell } from "../../../components/GridRowReorderCell.
|
|
3
|
+
import { renderRowReorderCell } from "../../../components/GridRowReorderCell.mjs";
|
|
4
4
|
export const GRID_REORDER_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
5
5
|
type: 'custom',
|
|
6
6
|
field: '__reorder__',
|
package/{esm/hooks/features/rowReorder/models.d.ts → hooks/features/rowReorder/models.d.mts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GridTreeNode, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
2
|
import type { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import type { RowReorderDropPosition, RowReorderDragDirection } from '@mui/x-data-grid/internals';
|
|
4
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
4
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
5
5
|
export type IsRowReorderableParams<R extends GridValidRowModel = any> = {
|
|
6
6
|
row: R;
|
|
7
7
|
rowNode: GridTreeNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReorderExecutionContext, ReorderOperation } from "./types.
|
|
1
|
+
import type { ReorderExecutionContext, ReorderOperation } from "./types.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Base class for all reorder operations.
|
|
4
4
|
* Provides abstract methods for operation detection and execution.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { GridRowId, GridTreeNode, GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
2
|
import type { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import type { RowReorderDropPosition } from '@mui/x-data-grid/internals';
|
|
4
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
5
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
4
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
5
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
6
6
|
export type ReorderOperationType = 'same-parent-swap' | 'cross-parent-leaf' | 'cross-parent-group' | 'drop-on-leaf' | 'drop-on-group';
|
|
7
7
|
export interface ReorderExecutionContext<ApiRef extends GridPrivateApiPro = GridPrivateApiPro> {
|
|
8
8
|
sourceRowId: GridRowId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
4
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
5
5
|
export declare const rowReorderStateInitializer: GridStateInitializer;
|
|
6
6
|
/**
|
|
7
7
|
* Hook for row reordering (Pro package)
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.useGridRowReorder = exports.rowReorderStateInitializer = void 0;
|
|
10
|
+
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
10
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
12
|
var React = _interopRequireWildcard(require("react"));
|
|
12
13
|
var _useTimeout = _interopRequireDefault(require("@mui/utils/useTimeout"));
|
|
@@ -344,7 +345,7 @@ const useGridRowReorder = (apiRef, props) => {
|
|
|
344
345
|
const rowTree = (0, _xDataGrid.gridRowTreeSelector)(apiRef);
|
|
345
346
|
const sourceNode = (0, _xDataGrid.gridRowNodeSelector)(apiRef, dragRowId);
|
|
346
347
|
if (!sourceNode) {
|
|
347
|
-
throw new Error(`MUI X: No row node found for id #${dragRowId}`);
|
|
348
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X: No row node found for id #${dragRowId}` : (0, _formatErrorMessage2.default)(126, dragRowId));
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
// Calculate oldParent and oldIndex
|
|
@@ -356,7 +357,7 @@ const useGridRowReorder = (apiRef, props) => {
|
|
|
356
357
|
const updatedTree = (0, _xDataGrid.gridRowTreeSelector)(apiRef);
|
|
357
358
|
const updatedNode = updatedTree[dragRowId];
|
|
358
359
|
if (!updatedNode) {
|
|
359
|
-
throw new Error(`MUI X: Row node for id #${dragRowId} not found after move`);
|
|
360
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X: Row node for id #${dragRowId} not found after move` : (0, _formatErrorMessage2.default)(127, dragRowId));
|
|
360
361
|
}
|
|
361
362
|
const newParent = updatedNode.parent;
|
|
362
363
|
const newParentNode = updatedTree[newParent];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
3
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import useTimeout from '@mui/utils/useTimeout';
|
|
6
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
8
|
import { useGridLogger, useGridEvent, getDataGridUtilityClass, useGridSelector, gridSortModelSelector, useGridEventPriority, gridRowNodeSelector, gridRowMaximumTreeDepthSelector, useGridApiMethod, gridExpandedSortedRowIdsSelector, gridRowTreeSelector, gridExpandedSortedRowIndexLookupSelector, GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
8
9
|
import { gridEditRowsStateSelector, useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
9
|
-
import { GRID_REORDER_COL_DEF } from "./gridRowReorderColDef.
|
|
10
|
-
import { findCellElement } from "./utils.
|
|
10
|
+
import { GRID_REORDER_COL_DEF } from "./gridRowReorderColDef.mjs";
|
|
11
|
+
import { findCellElement } from "./utils.mjs";
|
|
11
12
|
const EMPTY_REORDER_STATE = {
|
|
12
13
|
previousTargetId: null,
|
|
13
14
|
dragDirection: null,
|
|
@@ -336,7 +337,7 @@ export const useGridRowReorder = (apiRef, props) => {
|
|
|
336
337
|
const rowTree = gridRowTreeSelector(apiRef);
|
|
337
338
|
const sourceNode = gridRowNodeSelector(apiRef, dragRowId);
|
|
338
339
|
if (!sourceNode) {
|
|
339
|
-
throw new Error(`MUI X: No row node found for id #${dragRowId}`);
|
|
340
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X: No row node found for id #${dragRowId}` : _formatErrorMessage(126, dragRowId));
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
// Calculate oldParent and oldIndex
|
|
@@ -348,7 +349,7 @@ export const useGridRowReorder = (apiRef, props) => {
|
|
|
348
349
|
const updatedTree = gridRowTreeSelector(apiRef);
|
|
349
350
|
const updatedNode = updatedTree[dragRowId];
|
|
350
351
|
if (!updatedNode) {
|
|
351
|
-
throw new Error(`MUI X: Row node for id #${dragRowId} not found after move`);
|
|
352
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X: Row node for id #${dragRowId} not found after move` : _formatErrorMessage(127, dragRowId));
|
|
352
353
|
}
|
|
353
354
|
const newParent = updatedNode.parent;
|
|
354
355
|
const newParentNode = updatedTree[newParent];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
2
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
4
|
export declare const useGridRowReorderPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: DataGridProProcessedProps) => void;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import composeClasses from '@mui/utils/composeClasses';
|
|
4
4
|
import { getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
5
5
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
6
|
-
import { GRID_REORDER_COL_DEF } from "./gridRowReorderColDef.
|
|
6
|
+
import { GRID_REORDER_COL_DEF } from "./gridRowReorderColDef.mjs";
|
|
7
7
|
const useUtilityClasses = ownerState => {
|
|
8
8
|
const {
|
|
9
9
|
classes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridRowId, type GridTreeNode, type GridGroupNode, type GridRowTreeConfig, type GridKeyValue, type GridValidRowModel } from '@mui/x-data-grid';
|
|
3
|
-
import type { ReorderOperationType } from "./types.
|
|
4
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
5
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
6
|
-
export { getNodePathInTree } from "../../../utils/tree/utils.
|
|
3
|
+
import type { ReorderOperationType } from "./types.mjs";
|
|
4
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
5
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
6
|
+
export { getNodePathInTree } from "../../../utils/tree/utils.mjs";
|
|
7
7
|
/**
|
|
8
8
|
* Finds the closest cell element from the given event target.
|
|
9
9
|
* If the target itself is a cell, returns it.
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import { GRID_ROOT_GROUP_ID, gridClasses } from '@mui/x-data-grid';
|
|
3
3
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
4
4
|
// Re-export to be made part of `rowReorderUtils`
|
|
5
|
-
export { getNodePathInTree } from "../../../utils/tree/utils.
|
|
5
|
+
export { getNodePathInTree } from "../../../utils/tree/utils.mjs";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Finds the closest cell element from the given event target.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useGridRowAriaAttributes.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useGridRowAriaAttributes.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useGridSelector, gridFilteredTopLevelRowCountSelector, GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
3
3
|
import { useGridRowAriaAttributes as useGridRowAriaAttributesCommunity, gridFilteredChildrenCountLookupSelector, gridExpandedSortedRowTreeLevelPositionLookupSelector } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { useGridPrivateApiContext } from "../../utils/useGridPrivateApiContext.
|
|
5
|
-
import { useGridRootProps } from "../../utils/useGridRootProps.
|
|
4
|
+
import { useGridPrivateApiContext } from "../../utils/useGridPrivateApiContext.mjs";
|
|
5
|
+
import { useGridRootProps } from "../../utils/useGridRootProps.mjs";
|
|
6
6
|
export const useGridRowAriaAttributesPro = addTreeDataAttributes => {
|
|
7
7
|
const apiRef = useGridPrivateApiContext();
|
|
8
8
|
const props = useGridRootProps();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
4
4
|
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "processRowUpdate" | "onProcessRowUpdateError" | "setTreeDataPath">) => {
|
|
5
5
|
setRowIndex: (rowId: import("@mui/x-data-grid").GridRowId, targetIndex: number) => void;
|
|
6
6
|
setRowPosition: (sourceRowId: import("@mui/x-data-grid").GridRowId, targetRowId: import("@mui/x-data-grid").GridRowId, position: import("@mui/x-data-grid/internals").RowReorderDropPosition) => void | Promise<void>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.useGridRowsOverridableMethods = void 0;
|
|
9
|
+
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
8
10
|
var React = _interopRequireWildcard(require("react"));
|
|
9
11
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
10
12
|
var _internals = require("@mui/x-data-grid/internals");
|
|
@@ -27,19 +29,19 @@ const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
27
29
|
const sourceNode = (0, _xDataGrid.gridRowNodeSelector)(apiRef, sourceRowId);
|
|
28
30
|
const targetNode = (0, _xDataGrid.gridRowNodeSelector)(apiRef, targetRowId);
|
|
29
31
|
if (!sourceNode) {
|
|
30
|
-
throw new Error(`MUI X: No row with id
|
|
32
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: No row with id "${sourceRowId}" found. ` + 'The source row for reordering does not exist in the grid. ' + 'Verify the row id is correct and the row exists.' : (0, _formatErrorMessage2.default)(128, sourceRowId));
|
|
31
33
|
}
|
|
32
34
|
if (!targetNode) {
|
|
33
|
-
throw new Error(`MUI X: No row with id
|
|
35
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: No row with id "${targetRowId}" found. ` + 'The target row for reordering does not exist in the grid. ' + 'Verify the row id is correct and the row exists.' : (0, _formatErrorMessage2.default)(129, targetRowId));
|
|
34
36
|
}
|
|
35
37
|
if (sourceNode.type === 'footer') {
|
|
36
|
-
throw new Error(
|
|
38
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X Data Grid: Row reordering does not support reordering of footer rows. ' + 'Footer rows are special rows that cannot be moved. ' + 'Only data rows can be reordered.' : (0, _formatErrorMessage2.default)(130));
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
// Get the target index from the targetRowId using the lookup selector
|
|
40
42
|
const targetIndexUnadjusted = sortedFilteredRowIndexLookup[targetRowId];
|
|
41
43
|
if (targetIndexUnadjusted === undefined) {
|
|
42
|
-
throw new Error(`MUI X: Target row with id
|
|
44
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: Target row with id "${targetRowId}" not found in current view. ` + 'The target row may be filtered out or not visible. ' + 'Ensure the target row is visible in the current grid view.' : (0, _formatErrorMessage2.default)(131, targetRowId));
|
|
43
45
|
}
|
|
44
46
|
const targetIndex = position === 'below' ? targetIndexUnadjusted + 1 : targetIndexUnadjusted;
|
|
45
47
|
const executionContext = {
|
|
@@ -57,7 +59,7 @@ const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
57
59
|
return _treeDataReorderExecutor.treeDataReorderExecutor.execute(executionContext);
|
|
58
60
|
}, [apiRef, processRowUpdate, onProcessRowUpdateError, setTreeDataPath]);
|
|
59
61
|
const setRowIndex = React.useCallback(async () => {
|
|
60
|
-
throw new Error(
|
|
62
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X Data Grid: setRowIndex() is not supported for tree data. ' + 'Tree data uses hierarchical positioning which requires setRowPosition(). ' + 'Use setRowPosition() instead to reorder rows in tree data mode.' : (0, _formatErrorMessage2.default)(132));
|
|
61
63
|
}, []);
|
|
62
64
|
return {
|
|
63
65
|
setRowIndex: flatTree ? setRowIndexFlat : setRowIndex,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { gridRowTreeSelector, gridExpandedSortedRowIdsSelector, gridRowNodeSelector, useGridSelector, gridRowMaximumTreeDepthSelector, gridExpandedSortedRowIndexLookupSelector } from '@mui/x-data-grid';
|
|
3
4
|
import { useGridRowsOverridableMethodsCommunity } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { treeDataReorderExecutor } from "../treeData/treeDataReorderExecutor.
|
|
5
|
+
import { treeDataReorderExecutor } from "../treeData/treeDataReorderExecutor.mjs";
|
|
5
6
|
export const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
6
7
|
const {
|
|
7
8
|
processRowUpdate,
|
|
@@ -20,19 +21,19 @@ export const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
20
21
|
const sourceNode = gridRowNodeSelector(apiRef, sourceRowId);
|
|
21
22
|
const targetNode = gridRowNodeSelector(apiRef, targetRowId);
|
|
22
23
|
if (!sourceNode) {
|
|
23
|
-
throw new Error(`MUI X: No row with id
|
|
24
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: No row with id "${sourceRowId}" found. ` + 'The source row for reordering does not exist in the grid. ' + 'Verify the row id is correct and the row exists.' : _formatErrorMessage(128, sourceRowId));
|
|
24
25
|
}
|
|
25
26
|
if (!targetNode) {
|
|
26
|
-
throw new Error(`MUI X: No row with id
|
|
27
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: No row with id "${targetRowId}" found. ` + 'The target row for reordering does not exist in the grid. ' + 'Verify the row id is correct and the row exists.' : _formatErrorMessage(129, targetRowId));
|
|
27
28
|
}
|
|
28
29
|
if (sourceNode.type === 'footer') {
|
|
29
|
-
throw new Error(
|
|
30
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X Data Grid: Row reordering does not support reordering of footer rows. ' + 'Footer rows are special rows that cannot be moved. ' + 'Only data rows can be reordered.' : _formatErrorMessage(130));
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
// Get the target index from the targetRowId using the lookup selector
|
|
33
34
|
const targetIndexUnadjusted = sortedFilteredRowIndexLookup[targetRowId];
|
|
34
35
|
if (targetIndexUnadjusted === undefined) {
|
|
35
|
-
throw new Error(`MUI X: Target row with id
|
|
36
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: Target row with id "${targetRowId}" not found in current view. ` + 'The target row may be filtered out or not visible. ' + 'Ensure the target row is visible in the current grid view.' : _formatErrorMessage(131, targetRowId));
|
|
36
37
|
}
|
|
37
38
|
const targetIndex = position === 'below' ? targetIndexUnadjusted + 1 : targetIndexUnadjusted;
|
|
38
39
|
const executionContext = {
|
|
@@ -50,7 +51,7 @@ export const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
50
51
|
return treeDataReorderExecutor.execute(executionContext);
|
|
51
52
|
}, [apiRef, processRowUpdate, onProcessRowUpdateError, setTreeDataPath]);
|
|
52
53
|
const setRowIndex = React.useCallback(async () => {
|
|
53
|
-
throw new Error(
|
|
54
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X Data Grid: setRowIndex() is not supported for tree data. ' + 'Tree data uses hierarchical positioning which requires setRowPosition(). ' + 'Use setRowPosition() instead to reorder rows in tree data mode.' : _formatErrorMessage(132));
|
|
54
55
|
}, []);
|
|
55
56
|
return {
|
|
56
57
|
setRowIndex: flatTree ? setRowIndexFlat : setRowIndex,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridRows (state)
|
|
6
6
|
* @requires useGridPagination (state)
|
|
@@ -8,8 +8,8 @@ import useEventCallback from '@mui/utils/useEventCallback';
|
|
|
8
8
|
import debounce from '@mui/utils/debounce';
|
|
9
9
|
import { useGridEvent, gridSortModelSelector, gridFilterModelSelector, GRID_ROOT_GROUP_ID, gridPaginationModelSelector, gridFilteredSortedRowIdsSelector, gridRowIdSelector } from '@mui/x-data-grid';
|
|
10
10
|
import { getVisibleRows, gridRenderContextSelector, GridStrategyGroup, useGridRegisterStrategyProcessor, runIf, DataSourceRowsUpdateStrategy } from '@mui/x-data-grid/internals';
|
|
11
|
-
import { findSkeletonRowsSection, adjustRowParams } from "../lazyLoader/utils.
|
|
12
|
-
import { GRID_SKELETON_ROW_ROOT_ID } from "../lazyLoader/useGridLazyLoaderPreProcessors.
|
|
11
|
+
import { findSkeletonRowsSection, adjustRowParams } from "../lazyLoader/utils.mjs";
|
|
12
|
+
import { GRID_SKELETON_ROW_ROOT_ID } from "../lazyLoader/useGridLazyLoaderPreProcessors.mjs";
|
|
13
13
|
var LoadingTrigger = /*#__PURE__*/function (LoadingTrigger) {
|
|
14
14
|
LoadingTrigger[LoadingTrigger["VIEWPORT"] = 0] = "VIEWPORT";
|
|
15
15
|
LoadingTrigger[LoadingTrigger["SCROLL_END"] = 1] = "SCROLL_END";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
3
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridDimensions (method) - can be after
|
|
6
6
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.
|
|
3
|
-
import type { GridPrivateApiPro } from "../../../models/gridApiPro.
|
|
2
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.mjs";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.mjs";
|
|
4
4
|
export declare const useGridDataSourceTreeDataPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "treeData" | "groupingColDef" | "disableChildrenSorting" | "disableChildrenFiltering" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "dataSource">) => void;
|