@mui/x-data-grid 7.0.0-alpha.7 → 7.0.0-alpha.9
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 +554 -51
- package/DataGrid/DataGrid.js +15 -27
- package/DataGrid/useDataGridComponent.js +2 -1
- package/DataGrid/useDataGridProps.js +1 -0
- package/README.md +1 -1
- package/colDef/gridDateColDef.js +1 -1
- package/components/GridColumnHeaders.d.ts +3 -2
- package/components/GridColumnHeaders.js +3 -11
- package/components/GridDetailPanels.d.ts +5 -0
- package/components/GridDetailPanels.js +4 -0
- package/components/GridHeaders.d.ts +4 -0
- package/components/GridHeaders.js +53 -0
- package/components/GridPagination.d.ts +4 -4
- package/components/GridPagination.js +1 -1
- package/components/GridPinnedRows.d.ts +7 -0
- package/components/GridPinnedRows.js +4 -0
- package/components/GridRow.d.ts +7 -4
- package/components/GridRow.js +260 -97
- package/components/GridScrollbarFillerCell.d.ts +7 -0
- package/components/GridScrollbarFillerCell.js +39 -0
- package/components/base/GridBody.d.ts +2 -13
- package/components/base/GridBody.js +2 -116
- package/components/base/GridOverlays.js +10 -21
- package/components/cell/GridActionsCell.js +1 -1
- package/components/cell/GridActionsCellItem.d.ts +6 -6
- package/components/cell/GridCell.d.ts +15 -21
- package/components/cell/GridCell.js +68 -373
- package/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +2 -1
- package/components/columnHeaders/GridColumnHeaderItem.js +7 -3
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/components/columnHeaders/GridColumnHeadersInner.js +1 -2
- package/components/containers/GridRoot.js +18 -15
- package/components/containers/GridRootStyles.js +307 -204
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/components/panel/GridPanel.d.ts +3 -3
- package/components/panel/GridPanel.js +3 -4
- package/components/panel/filterPanel/GridFilterForm.d.ts +6 -4
- package/components/panel/filterPanel/GridFilterForm.js +32 -15
- package/components/panel/filterPanel/GridFilterPanel.js +46 -20
- package/components/toolbar/GridToolbarColumnsButton.d.ts +13 -1
- package/components/toolbar/GridToolbarColumnsButton.js +40 -22
- package/components/toolbar/GridToolbarDensitySelector.d.ts +13 -1
- package/components/toolbar/GridToolbarDensitySelector.js +40 -22
- package/components/toolbar/GridToolbarExport.d.ts +10 -1
- package/components/toolbar/GridToolbarExport.js +6 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +15 -1
- package/components/toolbar/GridToolbarExportContainer.js +41 -23
- package/components/toolbar/GridToolbarFilterButton.d.ts +5 -4
- package/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/components/toolbar/GridToolbarQuickFilter.d.ts +4 -0
- package/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/components/virtualization/GridBottomContainer.d.ts +2 -0
- package/components/virtualization/GridBottomContainer.js +25 -0
- package/components/{containers → virtualization}/GridMainContainer.d.ts +2 -0
- package/components/virtualization/GridMainContainer.js +20 -0
- package/components/virtualization/GridTopContainer.d.ts +2 -0
- package/components/virtualization/GridTopContainer.js +35 -0
- package/components/virtualization/GridVirtualScrollbar.d.ts +7 -0
- package/components/virtualization/GridVirtualScrollbar.js +131 -0
- package/components/virtualization/GridVirtualScroller.d.ts +4 -4
- package/components/virtualization/GridVirtualScroller.js +69 -16
- package/components/virtualization/GridVirtualScrollerFiller.d.ts +4 -0
- package/components/virtualization/GridVirtualScrollerFiller.js +71 -0
- package/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/constants/defaultGridSlotsComponents.js +6 -2
- package/constants/gridClasses.d.ts +60 -8
- package/constants/gridClasses.js +1 -1
- package/hooks/core/gridCoreSelector.d.ts +6 -0
- package/hooks/core/gridCoreSelector.js +5 -0
- package/hooks/core/useGridInitialization.js +4 -0
- package/hooks/core/useGridLoggerFactory.js +2 -2
- package/hooks/core/useGridRefs.d.ts +3 -0
- package/hooks/core/useGridRefs.js +13 -0
- package/hooks/core/useGridTheme.d.ts +3 -0
- package/hooks/core/useGridTheme.js +19 -0
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +13 -18
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +13 -18
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +68 -162
- package/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +17 -0
- package/hooks/features/columns/gridColumnsInterfaces.js +9 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +14 -1
- package/hooks/features/columns/gridColumnsSelector.js +52 -0
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -5
- package/hooks/features/columns/gridColumnsUtils.js +10 -12
- package/hooks/features/columns/index.d.ts +2 -2
- package/hooks/features/columns/index.js +2 -1
- package/hooks/features/columns/useGridColumnSpanning.js +62 -61
- package/hooks/features/columns/useGridColumns.js +20 -23
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +60 -11
- package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +2 -0
- package/hooks/features/dimensions/gridDimensionsSelectors.js +1 -0
- package/hooks/features/dimensions/index.d.ts +2 -0
- package/hooks/features/dimensions/index.js +1 -0
- package/hooks/features/dimensions/useGridDimensions.d.ts +7 -1
- package/hooks/features/dimensions/useGridDimensions.js +216 -148
- package/hooks/features/editing/useGridCellEditing.js +4 -4
- package/hooks/features/editing/useGridRowEditing.js +4 -4
- package/hooks/features/export/serializers/csvSerializer.js +3 -3
- package/hooks/features/export/useGridPrintExport.js +1 -1
- package/hooks/features/filter/gridFilterUtils.js +5 -5
- package/hooks/features/filter/useGridFilter.js +3 -3
- package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
- package/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/hooks/features/focus/useGridFocus.js +3 -3
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -16
- package/hooks/features/pagination/gridPaginationUtils.js +2 -2
- package/hooks/features/pagination/useGridPagination.js +3 -5
- package/hooks/features/rowSelection/useGridRowSelection.js +1 -1
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -0
- package/hooks/features/rows/gridRowsSelector.d.ts +2 -2
- package/hooks/features/rows/gridRowsSelector.js +5 -5
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.js +6 -6
- package/hooks/features/rows/useGridRows.js +7 -7
- package/hooks/features/rows/useGridRowsMeta.js +9 -6
- package/hooks/features/scroll/useGridScroll.js +8 -10
- package/hooks/features/sorting/gridSortingUtils.js +5 -3
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/sorting/useGridSorting.js +15 -10
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +14 -0
- package/hooks/features/virtualization/gridVirtualizationSelectors.js +22 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +27 -42
- package/hooks/features/virtualization/useGridVirtualScroller.js +441 -438
- package/hooks/features/virtualization/useGridVirtualization.d.ts +8 -0
- package/hooks/features/virtualization/useGridVirtualization.js +8 -1
- package/hooks/utils/index.d.ts +3 -0
- package/hooks/utils/index.js +4 -1
- package/hooks/utils/useGridApiContext.js +1 -1
- package/hooks/utils/useGridAriaAttributes.js +1 -2
- package/hooks/utils/useGridNativeEventListener.js +4 -9
- package/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/hooks/utils/useGridRootProps.js +1 -1
- package/hooks/utils/useGridSelector.js +1 -1
- package/hooks/utils/useResizeObserver.d.ts +2 -0
- package/hooks/utils/useResizeObserver.js +36 -0
- package/hooks/utils/useRunOnce.d.ts +5 -0
- package/hooks/utils/useRunOnce.js +18 -0
- package/index.d.ts +0 -1
- package/index.js +1 -2
- package/internals/index.d.ts +13 -9
- package/internals/index.js +9 -7
- package/internals/utils/index.d.ts +1 -0
- package/internals/utils/index.js +2 -1
- package/internals/utils/propValidation.d.ts +4 -0
- package/internals/utils/propValidation.js +19 -0
- package/legacy/DataGrid/DataGrid.js +20 -29
- package/legacy/DataGrid/useDataGridComponent.js +2 -1
- package/legacy/DataGrid/useDataGridProps.js +1 -0
- package/legacy/colDef/gridDateColDef.js +1 -1
- package/legacy/components/GridColumnHeaders.js +3 -11
- package/legacy/components/GridDetailPanels.js +4 -0
- package/legacy/components/GridHeaders.js +53 -0
- package/legacy/components/GridPagination.js +1 -1
- package/legacy/components/GridPinnedRows.js +4 -0
- package/legacy/components/GridRow.js +258 -98
- package/legacy/components/GridScrollbarFillerCell.js +36 -0
- package/legacy/components/base/GridBody.js +2 -114
- package/legacy/components/base/GridOverlays.js +10 -25
- package/legacy/components/cell/GridActionsCell.js +1 -1
- package/legacy/components/cell/GridCell.js +70 -378
- package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +7 -3
- package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +1 -2
- package/legacy/components/containers/GridRoot.js +18 -15
- package/legacy/components/containers/GridRootStyles.js +215 -137
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/legacy/components/panel/GridPanel.js +3 -4
- package/legacy/components/panel/filterPanel/GridFilterForm.js +31 -14
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +49 -20
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +40 -21
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +40 -21
- package/legacy/components/toolbar/GridToolbarExport.js +6 -1
- package/legacy/components/toolbar/GridToolbarExportContainer.js +40 -21
- package/legacy/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/legacy/components/virtualization/GridBottomContainer.js +25 -0
- package/legacy/components/virtualization/GridMainContainer.js +20 -0
- package/legacy/components/virtualization/GridTopContainer.js +35 -0
- package/legacy/components/virtualization/GridVirtualScrollbar.js +129 -0
- package/legacy/components/virtualization/GridVirtualScroller.js +67 -16
- package/legacy/components/virtualization/GridVirtualScrollerFiller.js +70 -0
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/legacy/constants/defaultGridSlotsComponents.js +6 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/hooks/core/gridCoreSelector.js +7 -0
- package/legacy/hooks/core/useGridInitialization.js +4 -0
- package/legacy/hooks/core/useGridLoggerFactory.js +2 -2
- package/legacy/hooks/core/useGridRefs.js +13 -0
- package/legacy/hooks/core/useGridTheme.js +21 -0
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +13 -18
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +69 -181
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/legacy/hooks/features/columns/gridColumnsInterfaces.js +9 -1
- package/legacy/hooks/features/columns/gridColumnsSelector.js +62 -0
- package/legacy/hooks/features/columns/gridColumnsUtils.js +10 -16
- package/legacy/hooks/features/columns/index.js +2 -1
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +60 -59
- package/legacy/hooks/features/columns/useGridColumns.js +22 -23
- package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +3 -0
- package/legacy/hooks/features/dimensions/index.js +1 -0
- package/legacy/hooks/features/dimensions/useGridDimensions.js +226 -151
- package/legacy/hooks/features/editing/useGridCellEditing.js +4 -4
- package/legacy/hooks/features/editing/useGridRowEditing.js +4 -4
- package/legacy/hooks/features/export/serializers/csvSerializer.js +3 -3
- package/legacy/hooks/features/export/useGridPrintExport.js +1 -1
- package/legacy/hooks/features/filter/gridFilterUtils.js +5 -5
- package/legacy/hooks/features/filter/useGridFilter.js +3 -3
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/legacy/hooks/features/focus/useGridFocus.js +3 -3
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -16
- package/legacy/hooks/features/pagination/gridPaginationUtils.js +2 -2
- package/legacy/hooks/features/pagination/useGridPagination.js +3 -5
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +1 -1
- package/legacy/hooks/features/rows/gridRowsSelector.js +5 -5
- package/legacy/hooks/features/rows/gridRowsUtils.js +6 -6
- package/legacy/hooks/features/rows/useGridParamsApi.js +4 -5
- package/legacy/hooks/features/rows/useGridRows.js +7 -7
- package/legacy/hooks/features/rows/useGridRowsMeta.js +9 -6
- package/legacy/hooks/features/scroll/useGridScroll.js +8 -10
- package/legacy/hooks/features/sorting/gridSortingUtils.js +5 -3
- package/legacy/hooks/features/sorting/useGridSorting.js +15 -10
- package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +29 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +490 -483
- package/legacy/hooks/features/virtualization/useGridVirtualization.js +8 -1
- package/legacy/hooks/utils/index.js +4 -1
- package/legacy/hooks/utils/useGridApiContext.js +1 -1
- package/legacy/hooks/utils/useGridAriaAttributes.js +1 -2
- package/legacy/hooks/utils/useGridNativeEventListener.js +4 -9
- package/legacy/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/legacy/hooks/utils/useGridRootProps.js +1 -1
- package/legacy/hooks/utils/useGridSelector.js +1 -1
- package/legacy/hooks/utils/useResizeObserver.js +36 -0
- package/legacy/hooks/utils/useRunOnce.js +18 -0
- package/legacy/index.js +1 -2
- package/legacy/internals/index.js +9 -7
- package/legacy/internals/utils/index.js +2 -1
- package/legacy/internals/utils/propValidation.js +21 -0
- package/legacy/locales/hrHR.js +161 -0
- package/legacy/locales/index.js +4 -1
- package/legacy/locales/ptPT.js +161 -0
- package/legacy/locales/zhHK.js +161 -0
- package/legacy/models/index.js +0 -1
- package/legacy/models/params/index.js +1 -2
- package/legacy/utils/createSelector.js +1 -1
- package/legacy/utils/exportAs.js +1 -1
- package/legacy/utils/utils.js +10 -1
- package/locales/hrHR.d.ts +1 -0
- package/locales/hrHR.js +149 -0
- package/locales/index.d.ts +3 -0
- package/locales/index.js +4 -1
- package/locales/ptPT.d.ts +1 -0
- package/locales/ptPT.js +149 -0
- package/locales/zhHK.d.ts +1 -0
- package/locales/zhHK.js +149 -0
- package/models/api/gridColumnGroupingApi.d.ts +2 -2
- package/models/api/gridCoreApi.d.ts +16 -16
- package/models/api/gridRowsMetaApi.d.ts +1 -1
- package/models/api/gridVirtualizationApi.d.ts +2 -3
- package/models/events/gridEventLookup.d.ts +3 -3
- package/models/gridFilterModel.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +16 -2
- package/models/gridStateCommunity.d.ts +5 -1
- package/models/index.d.ts +0 -1
- package/models/index.js +0 -1
- package/models/params/index.d.ts +0 -1
- package/models/params/index.js +1 -2
- package/models/props/DataGridProps.d.ts +7 -12
- package/modern/DataGrid/DataGrid.js +15 -27
- package/modern/DataGrid/useDataGridComponent.js +2 -1
- package/modern/DataGrid/useDataGridProps.js +1 -0
- package/modern/colDef/gridDateColDef.js +1 -1
- package/modern/components/GridColumnHeaders.js +3 -11
- package/modern/components/GridDetailPanels.js +4 -0
- package/modern/components/GridHeaders.js +53 -0
- package/modern/components/GridPagination.js +1 -1
- package/modern/components/GridPinnedRows.js +4 -0
- package/modern/components/GridRow.js +258 -96
- package/modern/components/GridScrollbarFillerCell.js +39 -0
- package/modern/components/base/GridBody.js +2 -116
- package/modern/components/base/GridOverlays.js +10 -16
- package/modern/components/cell/GridActionsCell.js +1 -1
- package/modern/components/cell/GridCell.js +66 -370
- package/modern/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +7 -3
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/modern/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/modern/components/containers/GridRoot.js +18 -14
- package/modern/components/containers/GridRootStyles.js +307 -204
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/modern/components/panel/GridPanel.js +3 -4
- package/modern/components/panel/filterPanel/GridFilterForm.js +31 -14
- package/modern/components/panel/filterPanel/GridFilterPanel.js +46 -20
- package/modern/components/toolbar/GridToolbarColumnsButton.js +38 -21
- package/modern/components/toolbar/GridToolbarDensitySelector.js +38 -21
- package/modern/components/toolbar/GridToolbarExport.js +6 -1
- package/modern/components/toolbar/GridToolbarExportContainer.js +39 -22
- package/modern/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/modern/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/modern/components/virtualization/GridBottomContainer.js +25 -0
- package/modern/components/virtualization/GridMainContainer.js +20 -0
- package/modern/components/virtualization/GridTopContainer.js +35 -0
- package/modern/components/virtualization/GridVirtualScrollbar.js +131 -0
- package/modern/components/virtualization/GridVirtualScroller.js +69 -16
- package/modern/components/virtualization/GridVirtualScrollerFiller.js +71 -0
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/modern/constants/defaultGridSlotsComponents.js +6 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/core/gridCoreSelector.js +5 -0
- package/modern/hooks/core/useGridInitialization.js +4 -0
- package/modern/hooks/core/useGridLoggerFactory.js +2 -2
- package/modern/hooks/core/useGridRefs.js +13 -0
- package/modern/hooks/core/useGridTheme.js +19 -0
- package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +11 -16
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +67 -160
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/modern/hooks/features/columns/gridColumnsInterfaces.js +9 -1
- package/modern/hooks/features/columns/gridColumnsSelector.js +51 -0
- package/modern/hooks/features/columns/gridColumnsUtils.js +10 -12
- package/modern/hooks/features/columns/index.js +2 -1
- package/modern/hooks/features/columns/useGridColumnSpanning.js +62 -61
- package/modern/hooks/features/columns/useGridColumns.js +19 -21
- package/modern/hooks/features/dimensions/gridDimensionsSelectors.js +1 -0
- package/modern/hooks/features/dimensions/index.js +1 -0
- package/modern/hooks/features/dimensions/useGridDimensions.js +214 -146
- package/modern/hooks/features/editing/useGridCellEditing.js +4 -4
- package/modern/hooks/features/editing/useGridRowEditing.js +4 -4
- package/modern/hooks/features/export/serializers/csvSerializer.js +3 -3
- package/modern/hooks/features/export/useGridPrintExport.js +1 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +5 -5
- package/modern/hooks/features/filter/useGridFilter.js +3 -3
- package/modern/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/modern/hooks/features/focus/useGridFocus.js +3 -3
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -16
- package/modern/hooks/features/pagination/gridPaginationUtils.js +2 -2
- package/modern/hooks/features/pagination/useGridPagination.js +3 -5
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +1 -1
- package/modern/hooks/features/rows/gridRowsSelector.js +2 -2
- package/modern/hooks/features/rows/gridRowsUtils.js +6 -6
- package/modern/hooks/features/rows/useGridRows.js +7 -7
- package/modern/hooks/features/rows/useGridRowsMeta.js +9 -6
- package/modern/hooks/features/scroll/useGridScroll.js +8 -9
- package/modern/hooks/features/sorting/gridSortingUtils.js +5 -3
- package/modern/hooks/features/sorting/useGridSorting.js +15 -10
- package/modern/hooks/features/virtualization/gridVirtualizationSelectors.js +22 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +435 -432
- package/modern/hooks/features/virtualization/useGridVirtualization.js +8 -1
- package/modern/hooks/utils/index.js +4 -1
- package/modern/hooks/utils/useGridApiContext.js +1 -1
- package/modern/hooks/utils/useGridAriaAttributes.js +1 -1
- package/modern/hooks/utils/useGridNativeEventListener.js +3 -9
- package/modern/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/modern/hooks/utils/useGridRootProps.js +1 -1
- package/modern/hooks/utils/useGridSelector.js +1 -1
- package/modern/hooks/utils/useResizeObserver.js +36 -0
- package/modern/hooks/utils/useRunOnce.js +18 -0
- package/modern/index.js +1 -2
- package/modern/internals/index.js +9 -7
- package/modern/internals/utils/index.js +2 -1
- package/modern/internals/utils/propValidation.js +19 -0
- package/modern/locales/hrHR.js +149 -0
- package/modern/locales/index.js +4 -1
- package/modern/locales/ptPT.js +149 -0
- package/modern/locales/zhHK.js +149 -0
- package/modern/models/index.js +0 -1
- package/modern/models/params/index.js +1 -2
- package/modern/utils/createSelector.js +1 -1
- package/modern/utils/exportAs.js +1 -1
- package/modern/utils/utils.js +10 -1
- package/node/DataGrid/DataGrid.js +15 -27
- package/node/DataGrid/useDataGridComponent.js +1 -0
- package/node/DataGrid/useDataGridProps.js +1 -0
- package/node/colDef/gridDateColDef.js +1 -1
- package/node/components/GridColumnHeaders.js +3 -11
- package/node/components/GridDetailPanels.js +10 -0
- package/node/components/GridHeaders.js +60 -0
- package/node/components/GridPagination.js +1 -1
- package/node/components/GridPinnedRows.js +10 -0
- package/node/components/GridRow.js +256 -94
- package/node/components/GridScrollbarFillerCell.js +47 -0
- package/node/components/base/GridBody.js +7 -118
- package/node/components/base/GridOverlays.js +9 -15
- package/node/components/cell/GridActionsCell.js +1 -1
- package/node/components/cell/GridCell.js +67 -370
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/node/components/columnHeaders/GridColumnHeaderItem.js +8 -4
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/node/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/node/components/containers/GridRoot.js +17 -14
- package/node/components/containers/GridRootStyles.js +175 -72
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/node/components/panel/GridPanel.js +3 -4
- package/node/components/panel/filterPanel/GridFilterForm.js +30 -13
- package/node/components/panel/filterPanel/GridFilterPanel.js +45 -19
- package/node/components/toolbar/GridToolbarColumnsButton.js +36 -20
- package/node/components/toolbar/GridToolbarDensitySelector.js +36 -20
- package/node/components/toolbar/GridToolbarExport.js +6 -1
- package/node/components/toolbar/GridToolbarExportContainer.js +37 -21
- package/node/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/node/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/node/components/virtualization/GridBottomContainer.js +34 -0
- package/node/components/{containers → virtualization}/GridMainContainer.js +7 -29
- package/node/components/virtualization/GridTopContainer.js +44 -0
- package/node/components/virtualization/GridVirtualScrollbar.js +138 -0
- package/node/components/virtualization/GridVirtualScroller.js +69 -17
- package/node/components/virtualization/GridVirtualScrollerFiller.js +77 -0
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/node/constants/defaultGridSlotsComponents.js +5 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/core/gridCoreSelector.js +12 -0
- package/node/hooks/core/useGridInitialization.js +4 -0
- package/node/hooks/core/useGridLoggerFactory.js +2 -2
- package/node/hooks/core/useGridRefs.js +22 -0
- package/node/hooks/core/useGridTheme.js +29 -0
- package/node/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +11 -16
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +65 -159
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/node/hooks/features/columns/gridColumnsInterfaces.js +11 -1
- package/node/hooks/features/columns/gridColumnsSelector.js +52 -1
- package/node/hooks/features/columns/gridColumnsUtils.js +10 -13
- package/node/hooks/features/columns/index.js +22 -61
- package/node/hooks/features/columns/useGridColumnSpanning.js +62 -61
- package/node/hooks/features/columns/useGridColumns.js +20 -22
- package/node/hooks/features/dimensions/gridDimensionsSelectors.js +8 -0
- package/node/hooks/features/dimensions/index.js +11 -0
- package/node/hooks/features/dimensions/useGridDimensions.js +215 -144
- package/node/hooks/features/editing/useGridCellEditing.js +4 -4
- package/node/hooks/features/editing/useGridRowEditing.js +4 -4
- package/node/hooks/features/export/serializers/csvSerializer.js +3 -3
- package/node/hooks/features/export/useGridPrintExport.js +1 -1
- package/node/hooks/features/filter/gridFilterUtils.js +5 -5
- package/node/hooks/features/filter/useGridFilter.js +2 -2
- package/node/hooks/features/focus/gridFocusStateSelector.js +3 -7
- package/node/hooks/features/focus/useGridFocus.js +2 -2
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +2 -15
- package/node/hooks/features/pagination/gridPaginationUtils.js +2 -2
- package/node/hooks/features/pagination/useGridPagination.js +3 -5
- package/node/hooks/features/rowSelection/useGridRowSelection.js +1 -1
- package/node/hooks/features/rows/gridRowsSelector.js +2 -2
- package/node/hooks/features/rows/gridRowsUtils.js +6 -6
- package/node/hooks/features/rows/useGridRows.js +7 -7
- package/node/hooks/features/rows/useGridRowsMeta.js +7 -5
- package/node/hooks/features/scroll/useGridScroll.js +8 -9
- package/node/hooks/features/sorting/gridSortingUtils.js +5 -3
- package/node/hooks/features/sorting/useGridSorting.js +15 -10
- package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +22 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +434 -431
- package/node/hooks/features/virtualization/useGridVirtualization.js +9 -1
- package/node/hooks/utils/index.js +36 -0
- package/node/hooks/utils/useGridApiContext.js +1 -1
- package/node/hooks/utils/useGridAriaAttributes.js +1 -1
- package/node/hooks/utils/useGridNativeEventListener.js +3 -9
- package/node/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/node/hooks/utils/useGridRootProps.js +1 -1
- package/node/hooks/utils/useGridSelector.js +1 -1
- package/node/hooks/utils/useResizeObserver.js +44 -0
- package/node/hooks/utils/useRunOnce.js +27 -0
- package/node/index.js +1 -13
- package/node/internals/index.js +86 -71
- package/node/internals/utils/index.js +11 -0
- package/node/internals/utils/propValidation.js +26 -0
- package/node/locales/hrHR.js +155 -0
- package/node/locales/index.js +33 -0
- package/node/locales/ptPT.js +155 -0
- package/node/locales/zhHK.js +155 -0
- package/node/models/index.js +0 -11
- package/node/models/params/index.js +0 -11
- package/node/utils/createSelector.js +1 -1
- package/node/utils/exportAs.js +1 -1
- package/node/utils/utils.js +11 -1
- package/package.json +6 -6
- package/utils/createSelector.js +1 -1
- package/utils/exportAs.js +1 -1
- package/utils/utils.d.ts +6 -0
- package/utils/utils.js +10 -1
- package/components/DataGridVirtualScroller.d.ts +0 -3
- package/components/DataGridVirtualScroller.js +0 -35
- package/components/containers/GridMainContainer.js +0 -43
- package/legacy/components/DataGridVirtualScroller.js +0 -32
- package/legacy/components/containers/GridMainContainer.js +0 -45
- package/legacy/models/gridRootContainerRef.js +0 -1
- package/legacy/models/params/gridRenderedRowsIntervalChangeParams.js +0 -1
- package/models/gridRootContainerRef.d.ts +0 -5
- package/models/gridRootContainerRef.js +0 -1
- package/models/params/gridRenderedRowsIntervalChangeParams.d.ts +0 -10
- package/models/params/gridRenderedRowsIntervalChangeParams.js +0 -1
- package/modern/components/DataGridVirtualScroller.js +0 -35
- package/modern/components/containers/GridMainContainer.js +0 -42
- package/modern/models/gridRootContainerRef.js +0 -1
- package/modern/models/params/gridRenderedRowsIntervalChangeParams.js +0 -1
- package/node/components/DataGridVirtualScroller.js +0 -42
- package/node/models/gridRootContainerRef.js +0 -5
- package/node/models/params/gridRenderedRowsIntervalChangeParams.js +0 -5
|
@@ -4,6 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
+
exports.EMPTY_RENDER_CONTEXT = void 0;
|
|
7
8
|
exports.useGridVirtualization = useGridVirtualization;
|
|
8
9
|
exports.virtualizationStateInitializer = void 0;
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
@@ -11,10 +12,17 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
12
|
var _useGridApiMethod = require("../../utils/useGridApiMethod");
|
|
12
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
const EMPTY_RENDER_CONTEXT = exports.EMPTY_RENDER_CONTEXT = {
|
|
16
|
+
firstRowIndex: 0,
|
|
17
|
+
lastRowIndex: 0,
|
|
18
|
+
firstColumnIndex: 0,
|
|
19
|
+
lastColumnIndex: 0
|
|
20
|
+
};
|
|
14
21
|
const virtualizationStateInitializer = (state, props) => {
|
|
15
22
|
const virtualization = {
|
|
16
23
|
enabled: !props.disableVirtualization,
|
|
17
|
-
enabledForColumns: true
|
|
24
|
+
enabledForColumns: true,
|
|
25
|
+
renderContext: EMPTY_RENDER_CONTEXT
|
|
18
26
|
};
|
|
19
27
|
return (0, _extends2.default)({}, state, {
|
|
20
28
|
virtualization
|
|
@@ -72,4 +72,40 @@ Object.keys(_useFirstRender).forEach(function (key) {
|
|
|
72
72
|
return _useFirstRender[key];
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
+
});
|
|
76
|
+
var _useOnMount = require("./useOnMount");
|
|
77
|
+
Object.keys(_useOnMount).forEach(function (key) {
|
|
78
|
+
if (key === "default" || key === "__esModule") return;
|
|
79
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
80
|
+
if (key in exports && exports[key] === _useOnMount[key]) return;
|
|
81
|
+
Object.defineProperty(exports, key, {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () {
|
|
84
|
+
return _useOnMount[key];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
var _useResizeObserver = require("./useResizeObserver");
|
|
89
|
+
Object.keys(_useResizeObserver).forEach(function (key) {
|
|
90
|
+
if (key === "default" || key === "__esModule") return;
|
|
91
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
92
|
+
if (key in exports && exports[key] === _useResizeObserver[key]) return;
|
|
93
|
+
Object.defineProperty(exports, key, {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () {
|
|
96
|
+
return _useResizeObserver[key];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
var _useRunOnce = require("./useRunOnce");
|
|
101
|
+
Object.keys(_useRunOnce).forEach(function (key) {
|
|
102
|
+
if (key === "default" || key === "__esModule") return;
|
|
103
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
104
|
+
if (key in exports && exports[key] === _useRunOnce[key]) return;
|
|
105
|
+
Object.defineProperty(exports, key, {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () {
|
|
108
|
+
return _useRunOnce[key];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
75
111
|
});
|
|
@@ -11,7 +11,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
11
11
|
function useGridApiContext() {
|
|
12
12
|
const apiRef = React.useContext(_GridApiContext.GridApiContext);
|
|
13
13
|
if (apiRef === undefined) {
|
|
14
|
-
throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
14
|
+
throw new Error(['MUI X: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
15
15
|
}
|
|
16
16
|
return apiRef;
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@ const useGridAriaAttributes = () => {
|
|
|
19
19
|
const headerGroupingMaxDepth = (0, _useGridSelector.useGridSelector)(apiRef, _gridColumnGroupsSelector.gridColumnGroupsHeaderMaxDepthSelector);
|
|
20
20
|
const pinnedRowsCount = (0, _useGridSelector.useGridSelector)(apiRef, _gridRowsSelector.gridPinnedRowsCountSelector);
|
|
21
21
|
let role = 'grid';
|
|
22
|
-
if (rootProps.
|
|
22
|
+
if (rootProps.treeData) {
|
|
23
23
|
role = 'treegrid';
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
@@ -13,6 +13,7 @@ const useGridNativeEventListener = (apiRef, ref, eventName, handler, options) =>
|
|
|
13
13
|
const logger = (0, _useGridLogger.useGridLogger)(apiRef, 'useNativeEventListener');
|
|
14
14
|
const [added, setAdded] = React.useState(false);
|
|
15
15
|
const handlerRef = React.useRef(handler);
|
|
16
|
+
const targetElement = (0, _utils.isFunction)(ref) ? ref() : ref?.current ?? null;
|
|
16
17
|
const wrapHandler = React.useCallback(event => {
|
|
17
18
|
return handlerRef.current && handlerRef.current(event);
|
|
18
19
|
}, []);
|
|
@@ -20,23 +21,16 @@ const useGridNativeEventListener = (apiRef, ref, eventName, handler, options) =>
|
|
|
20
21
|
handlerRef.current = handler;
|
|
21
22
|
}, [handler]);
|
|
22
23
|
React.useEffect(() => {
|
|
23
|
-
let targetElement;
|
|
24
|
-
if ((0, _utils.isFunction)(ref)) {
|
|
25
|
-
targetElement = ref();
|
|
26
|
-
} else {
|
|
27
|
-
targetElement = ref && ref.current ? ref.current : null;
|
|
28
|
-
}
|
|
29
24
|
if (targetElement && eventName && !added) {
|
|
30
25
|
logger.debug(`Binding native ${eventName} event`);
|
|
31
26
|
targetElement.addEventListener(eventName, wrapHandler, options);
|
|
32
|
-
const boundElem = targetElement;
|
|
33
27
|
setAdded(true);
|
|
34
28
|
const unsubscribe = () => {
|
|
35
29
|
logger.debug(`Clearing native ${eventName} event`);
|
|
36
|
-
|
|
30
|
+
targetElement.removeEventListener(eventName, wrapHandler, options);
|
|
37
31
|
};
|
|
38
32
|
apiRef.current.subscribeEvent('unmount', unsubscribe);
|
|
39
33
|
}
|
|
40
|
-
}, [
|
|
34
|
+
}, [targetElement, wrapHandler, eventName, added, logger, options, apiRef]);
|
|
41
35
|
};
|
|
42
36
|
exports.useGridNativeEventListener = useGridNativeEventListener;
|
|
@@ -15,7 +15,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
15
15
|
function useGridPrivateApiContext() {
|
|
16
16
|
const privateApiRef = React.useContext(GridPrivateApiContext);
|
|
17
17
|
if (privateApiRef === undefined) {
|
|
18
|
-
throw new Error(['MUI: Could not find the data grid private context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
18
|
+
throw new Error(['MUI X: Could not find the data grid private context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
19
19
|
}
|
|
20
20
|
return privateApiRef;
|
|
21
21
|
}
|
|
@@ -11,7 +11,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
11
11
|
const useGridRootProps = () => {
|
|
12
12
|
const contextValue = React.useContext(_GridRootPropsContext.GridRootPropsContext);
|
|
13
13
|
if (!contextValue) {
|
|
14
|
-
throw new Error('MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
|
|
14
|
+
throw new Error('MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
|
|
15
15
|
}
|
|
16
16
|
return contextValue;
|
|
17
17
|
};
|
|
@@ -11,7 +11,7 @@ var _warning = require("../../utils/warning");
|
|
|
11
11
|
var _fastObjectShallowCompare = require("../../utils/fastObjectShallowCompare");
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
const stateNotInitializedWarning = (0, _warning.buildWarning)(['MUI: `useGridSelector` has been called before the initialization of the state.', 'This hook can only be used inside the context of the grid.']);
|
|
14
|
+
const stateNotInitializedWarning = (0, _warning.buildWarning)(['MUI X: `useGridSelector` has been called before the initialization of the state.', 'This hook can only be used inside the context of the grid.']);
|
|
15
15
|
function isOutputSelector(selector) {
|
|
16
16
|
return selector.acceptsApiRef;
|
|
17
17
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useResizeObserver = useResizeObserver;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _utils = require("@mui/utils");
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
const isDevEnvironment = process.env.NODE_ENV === 'development';
|
|
12
|
+
const noop = () => {};
|
|
13
|
+
function useResizeObserver(ref, fn, enabled) {
|
|
14
|
+
const fnRef = React.useRef(null);
|
|
15
|
+
fnRef.current = fn;
|
|
16
|
+
(0, _utils.unstable_useEnhancedEffect)(() => {
|
|
17
|
+
if (enabled === false || typeof ResizeObserver === 'undefined') {
|
|
18
|
+
return noop;
|
|
19
|
+
}
|
|
20
|
+
let frameID = 0;
|
|
21
|
+
const target = ref.current;
|
|
22
|
+
const observer = new ResizeObserver(entries => {
|
|
23
|
+
// See https://github.com/mui/mui-x/issues/8733
|
|
24
|
+
// In dev, we avoid the React warning by moving the task to the next frame.
|
|
25
|
+
// In prod, we want the task to run in the same frame as to avoid tear.
|
|
26
|
+
if (isDevEnvironment) {
|
|
27
|
+
frameID = requestAnimationFrame(() => {
|
|
28
|
+
fnRef.current(entries);
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
fnRef.current(entries);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
if (target) {
|
|
35
|
+
observer.observe(target);
|
|
36
|
+
}
|
|
37
|
+
return () => {
|
|
38
|
+
if (frameID) {
|
|
39
|
+
cancelAnimationFrame(frameID);
|
|
40
|
+
}
|
|
41
|
+
observer.disconnect();
|
|
42
|
+
};
|
|
43
|
+
}, [ref, enabled]);
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useRunOnce = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _utils = require("@mui/utils");
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
const noop = () => {};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Runs an effect once, when `condition` is true.
|
|
15
|
+
*/
|
|
16
|
+
const useRunOnce = (condition, effect) => {
|
|
17
|
+
const didRun = React.useRef(false);
|
|
18
|
+
(0, _utils.unstable_useEnhancedEffect)(() => {
|
|
19
|
+
if (didRun.current || !condition) {
|
|
20
|
+
return noop;
|
|
21
|
+
}
|
|
22
|
+
didRun.current = true;
|
|
23
|
+
return effect();
|
|
24
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
+
}, [didRun.current || condition]);
|
|
26
|
+
};
|
|
27
|
+
exports.useRunOnce = useRunOnce;
|
package/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid v7.0.0-alpha.
|
|
2
|
+
* @mui/x-data-grid v7.0.0-alpha.9
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -112,18 +112,6 @@ Object.keys(_hooks).forEach(function (key) {
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
|
-
var _locales = require("./locales");
|
|
116
|
-
Object.keys(_locales).forEach(function (key) {
|
|
117
|
-
if (key === "default" || key === "__esModule") return;
|
|
118
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
119
|
-
if (key in exports && exports[key] === _locales[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _locales[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
115
|
var _models = require("./models");
|
|
128
116
|
Object.keys(_models).forEach(function (key) {
|
|
129
117
|
if (key === "default" || key === "__esModule") return;
|
package/node/internals/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var _exportNames = {
|
|
|
7
7
|
GridVirtualScroller: true,
|
|
8
8
|
GridVirtualScrollerContent: true,
|
|
9
9
|
GridVirtualScrollerRenderZone: true,
|
|
10
|
+
GridHeaders: true,
|
|
10
11
|
GridBaseColumnHeaders: true,
|
|
11
12
|
GridColumnHeadersInner: true,
|
|
12
13
|
DATA_GRID_DEFAULT_SLOTS_COMPONENTS: true,
|
|
@@ -17,16 +18,13 @@ var _exportNames = {
|
|
|
17
18
|
useGridInitialization: true,
|
|
18
19
|
unwrapPrivateAPI: true,
|
|
19
20
|
useGridClipboard: true,
|
|
20
|
-
useGridColumnHeaders: true,
|
|
21
21
|
gridHeaderFilteringEditFieldSelector: true,
|
|
22
22
|
gridHeaderFilteringMenuSelector: true,
|
|
23
23
|
useGridColumnMenu: true,
|
|
24
24
|
columnMenuStateInitializer: true,
|
|
25
25
|
useGridColumns: true,
|
|
26
26
|
columnsStateInitializer: true,
|
|
27
|
-
getTotalHeaderHeight: true,
|
|
28
27
|
useGridColumnSpanning: true,
|
|
29
|
-
gridColumnsStateSelector: true,
|
|
30
28
|
useGridColumnGrouping: true,
|
|
31
29
|
columnGroupsStateInitializer: true,
|
|
32
30
|
useGridDensity: true,
|
|
@@ -69,10 +67,11 @@ var _exportNames = {
|
|
|
69
67
|
sortingStateInitializer: true,
|
|
70
68
|
useGridScroll: true,
|
|
71
69
|
useGridEvents: true,
|
|
70
|
+
dimensionsStateInitializer: true,
|
|
72
71
|
useGridDimensions: true,
|
|
73
72
|
useGridStatePersistence: true,
|
|
74
73
|
useGridVirtualScroller: true,
|
|
75
|
-
|
|
74
|
+
EMPTY_DETAIL_PANELS: true,
|
|
76
75
|
useTimeout: true,
|
|
77
76
|
useGridVisibleRows: true,
|
|
78
77
|
getVisibleRows: true,
|
|
@@ -86,11 +85,6 @@ var _exportNames = {
|
|
|
86
85
|
getActiveElement: true,
|
|
87
86
|
isEventTargetInPortal: true,
|
|
88
87
|
isNavigationKey: true,
|
|
89
|
-
clamp: true,
|
|
90
|
-
isDeepEqual: true,
|
|
91
|
-
isNumber: true,
|
|
92
|
-
isFunction: true,
|
|
93
|
-
isObject: true,
|
|
94
88
|
buildWarning: true,
|
|
95
89
|
exportAs: true,
|
|
96
90
|
useGridPrivateApiContext: true,
|
|
@@ -102,6 +96,12 @@ Object.defineProperty(exports, "DATA_GRID_DEFAULT_SLOTS_COMPONENTS", {
|
|
|
102
96
|
return _defaultGridSlotsComponents.DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
103
97
|
}
|
|
104
98
|
});
|
|
99
|
+
Object.defineProperty(exports, "EMPTY_DETAIL_PANELS", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () {
|
|
102
|
+
return _useGridVirtualScroller.EMPTY_DETAIL_PANELS;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
105
|
Object.defineProperty(exports, "GRID_DEFAULT_STRATEGY", {
|
|
106
106
|
enumerable: true,
|
|
107
107
|
get: function () {
|
|
@@ -126,6 +126,12 @@ Object.defineProperty(exports, "GridColumnHeadersInner", {
|
|
|
126
126
|
return _GridColumnHeadersInner.GridColumnHeadersInner;
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
+
Object.defineProperty(exports, "GridHeaders", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return _GridHeaders.GridHeaders;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
129
135
|
Object.defineProperty(exports, "GridVirtualScroller", {
|
|
130
136
|
enumerable: true,
|
|
131
137
|
get: function () {
|
|
@@ -162,12 +168,6 @@ Object.defineProperty(exports, "calculatePinnedRowsHeight", {
|
|
|
162
168
|
return _gridRowsUtils.calculatePinnedRowsHeight;
|
|
163
169
|
}
|
|
164
170
|
});
|
|
165
|
-
Object.defineProperty(exports, "clamp", {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
get: function () {
|
|
168
|
-
return _utils2.clamp;
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
171
|
Object.defineProperty(exports, "columnGroupsStateInitializer", {
|
|
172
172
|
enumerable: true,
|
|
173
173
|
get: function () {
|
|
@@ -210,6 +210,12 @@ Object.defineProperty(exports, "densityStateInitializer", {
|
|
|
210
210
|
return _useGridDensity.densityStateInitializer;
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
|
+
Object.defineProperty(exports, "dimensionsStateInitializer", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () {
|
|
216
|
+
return _useGridDimensions.dimensionsStateInitializer;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
213
219
|
Object.defineProperty(exports, "editingStateInitializer", {
|
|
214
220
|
enumerable: true,
|
|
215
221
|
get: function () {
|
|
@@ -258,24 +264,12 @@ Object.defineProperty(exports, "getGridFilter", {
|
|
|
258
264
|
return _GridFilterPanel.getGridFilter;
|
|
259
265
|
}
|
|
260
266
|
});
|
|
261
|
-
Object.defineProperty(exports, "getRenderableIndexes", {
|
|
262
|
-
enumerable: true,
|
|
263
|
-
get: function () {
|
|
264
|
-
return _useGridVirtualScroller.getRenderableIndexes;
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
267
|
Object.defineProperty(exports, "getRowIdFromRowModel", {
|
|
268
268
|
enumerable: true,
|
|
269
269
|
get: function () {
|
|
270
270
|
return _gridRowsUtils.getRowIdFromRowModel;
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
Object.defineProperty(exports, "getTotalHeaderHeight", {
|
|
274
|
-
enumerable: true,
|
|
275
|
-
get: function () {
|
|
276
|
-
return _gridColumnsUtils.getTotalHeaderHeight;
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
273
|
Object.defineProperty(exports, "getTreeNodeDescendants", {
|
|
280
274
|
enumerable: true,
|
|
281
275
|
get: function () {
|
|
@@ -294,12 +288,6 @@ Object.defineProperty(exports, "gridAdditionalRowGroupsSelector", {
|
|
|
294
288
|
return _gridRowsSelector.gridAdditionalRowGroupsSelector;
|
|
295
289
|
}
|
|
296
290
|
});
|
|
297
|
-
Object.defineProperty(exports, "gridColumnsStateSelector", {
|
|
298
|
-
enumerable: true,
|
|
299
|
-
get: function () {
|
|
300
|
-
return _gridColumnsSelector.gridColumnsStateSelector;
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
291
|
Object.defineProperty(exports, "gridEditRowsStateSelector", {
|
|
304
292
|
enumerable: true,
|
|
305
293
|
get: function () {
|
|
@@ -330,42 +318,18 @@ Object.defineProperty(exports, "headerFilteringStateInitializer", {
|
|
|
330
318
|
return _useGridHeaderFiltering.headerFilteringStateInitializer;
|
|
331
319
|
}
|
|
332
320
|
});
|
|
333
|
-
Object.defineProperty(exports, "isDeepEqual", {
|
|
334
|
-
enumerable: true,
|
|
335
|
-
get: function () {
|
|
336
|
-
return _utils2.isDeepEqual;
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
321
|
Object.defineProperty(exports, "isEventTargetInPortal", {
|
|
340
322
|
enumerable: true,
|
|
341
323
|
get: function () {
|
|
342
324
|
return _domUtils.isEventTargetInPortal;
|
|
343
325
|
}
|
|
344
326
|
});
|
|
345
|
-
Object.defineProperty(exports, "isFunction", {
|
|
346
|
-
enumerable: true,
|
|
347
|
-
get: function () {
|
|
348
|
-
return _utils2.isFunction;
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
327
|
Object.defineProperty(exports, "isNavigationKey", {
|
|
352
328
|
enumerable: true,
|
|
353
329
|
get: function () {
|
|
354
330
|
return _keyboardUtils.isNavigationKey;
|
|
355
331
|
}
|
|
356
332
|
});
|
|
357
|
-
Object.defineProperty(exports, "isNumber", {
|
|
358
|
-
enumerable: true,
|
|
359
|
-
get: function () {
|
|
360
|
-
return _utils2.isNumber;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
Object.defineProperty(exports, "isObject", {
|
|
364
|
-
enumerable: true,
|
|
365
|
-
get: function () {
|
|
366
|
-
return _utils2.isObject;
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
333
|
Object.defineProperty(exports, "isSingleSelectColDef", {
|
|
370
334
|
enumerable: true,
|
|
371
335
|
get: function () {
|
|
@@ -444,12 +408,6 @@ Object.defineProperty(exports, "useGridColumnGrouping", {
|
|
|
444
408
|
return _useGridColumnGrouping.useGridColumnGrouping;
|
|
445
409
|
}
|
|
446
410
|
});
|
|
447
|
-
Object.defineProperty(exports, "useGridColumnHeaders", {
|
|
448
|
-
enumerable: true,
|
|
449
|
-
get: function () {
|
|
450
|
-
return _useGridColumnHeaders.useGridColumnHeaders;
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
411
|
Object.defineProperty(exports, "useGridColumnMenu", {
|
|
454
412
|
enumerable: true,
|
|
455
413
|
get: function () {
|
|
@@ -645,6 +603,7 @@ Object.defineProperty(exports, "useTimeout", {
|
|
|
645
603
|
var _GridVirtualScroller = require("../components/virtualization/GridVirtualScroller");
|
|
646
604
|
var _GridVirtualScrollerContent = require("../components/virtualization/GridVirtualScrollerContent");
|
|
647
605
|
var _GridVirtualScrollerRenderZone = require("../components/virtualization/GridVirtualScrollerRenderZone");
|
|
606
|
+
var _GridHeaders = require("../components/GridHeaders");
|
|
648
607
|
var _GridBaseColumnHeaders = require("../components/columnHeaders/GridBaseColumnHeaders");
|
|
649
608
|
var _GridColumnHeadersInner = require("../components/columnHeaders/GridColumnHeadersInner");
|
|
650
609
|
var _defaultGridSlotsComponents = require("../constants/defaultGridSlotsComponents");
|
|
@@ -655,12 +614,45 @@ var _useGridInitialization = require("../hooks/core/useGridInitialization");
|
|
|
655
614
|
var _useGridApiInitialization = require("../hooks/core/useGridApiInitialization");
|
|
656
615
|
var _useGridClipboard = require("../hooks/features/clipboard/useGridClipboard");
|
|
657
616
|
var _useGridColumnHeaders = require("../hooks/features/columnHeaders/useGridColumnHeaders");
|
|
617
|
+
Object.keys(_useGridColumnHeaders).forEach(function (key) {
|
|
618
|
+
if (key === "default" || key === "__esModule") return;
|
|
619
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
620
|
+
if (key in exports && exports[key] === _useGridColumnHeaders[key]) return;
|
|
621
|
+
Object.defineProperty(exports, key, {
|
|
622
|
+
enumerable: true,
|
|
623
|
+
get: function () {
|
|
624
|
+
return _useGridColumnHeaders[key];
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
});
|
|
658
628
|
var _gridHeaderFilteringSelectors = require("../hooks/features/headerFiltering/gridHeaderFilteringSelectors");
|
|
659
629
|
var _useGridColumnMenu = require("../hooks/features/columnMenu/useGridColumnMenu");
|
|
660
630
|
var _useGridColumns = require("../hooks/features/columns/useGridColumns");
|
|
661
631
|
var _gridColumnsUtils = require("../hooks/features/columns/gridColumnsUtils");
|
|
632
|
+
Object.keys(_gridColumnsUtils).forEach(function (key) {
|
|
633
|
+
if (key === "default" || key === "__esModule") return;
|
|
634
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
635
|
+
if (key in exports && exports[key] === _gridColumnsUtils[key]) return;
|
|
636
|
+
Object.defineProperty(exports, key, {
|
|
637
|
+
enumerable: true,
|
|
638
|
+
get: function () {
|
|
639
|
+
return _gridColumnsUtils[key];
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
});
|
|
662
643
|
var _useGridColumnSpanning = require("../hooks/features/columns/useGridColumnSpanning");
|
|
663
644
|
var _gridColumnsSelector = require("../hooks/features/columns/gridColumnsSelector");
|
|
645
|
+
Object.keys(_gridColumnsSelector).forEach(function (key) {
|
|
646
|
+
if (key === "default" || key === "__esModule") return;
|
|
647
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
648
|
+
if (key in exports && exports[key] === _gridColumnsSelector[key]) return;
|
|
649
|
+
Object.defineProperty(exports, key, {
|
|
650
|
+
enumerable: true,
|
|
651
|
+
get: function () {
|
|
652
|
+
return _gridColumnsSelector[key];
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
});
|
|
664
656
|
var _useGridColumnGrouping = require("../hooks/features/columnGrouping/useGridColumnGrouping");
|
|
665
657
|
var _useGridDensity = require("../hooks/features/density/useGridDensity");
|
|
666
658
|
var _useGridCsvExport = require("../hooks/features/export/useGridCsvExport");
|
|
@@ -721,6 +713,29 @@ var _createSelector = require("../utils/createSelector");
|
|
|
721
713
|
var _domUtils = require("../utils/domUtils");
|
|
722
714
|
var _keyboardUtils = require("../utils/keyboardUtils");
|
|
723
715
|
var _utils2 = require("../utils/utils");
|
|
716
|
+
Object.keys(_utils2).forEach(function (key) {
|
|
717
|
+
if (key === "default" || key === "__esModule") return;
|
|
718
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
719
|
+
if (key in exports && exports[key] === _utils2[key]) return;
|
|
720
|
+
Object.defineProperty(exports, key, {
|
|
721
|
+
enumerable: true,
|
|
722
|
+
get: function () {
|
|
723
|
+
return _utils2[key];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
var _fastMemo = require("../utils/fastMemo");
|
|
728
|
+
Object.keys(_fastMemo).forEach(function (key) {
|
|
729
|
+
if (key === "default" || key === "__esModule") return;
|
|
730
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
731
|
+
if (key in exports && exports[key] === _fastMemo[key]) return;
|
|
732
|
+
Object.defineProperty(exports, key, {
|
|
733
|
+
enumerable: true,
|
|
734
|
+
get: function () {
|
|
735
|
+
return _fastMemo[key];
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
});
|
|
724
739
|
var _warning = require("../utils/warning");
|
|
725
740
|
var _exportAs = require("../utils/exportAs");
|
|
726
741
|
var _getPublicApiRef = require("../utils/getPublicApiRef");
|
|
@@ -736,28 +751,28 @@ Object.keys(_getPublicApiRef).forEach(function (key) {
|
|
|
736
751
|
});
|
|
737
752
|
});
|
|
738
753
|
var _useGridPrivateApiContext = require("../hooks/utils/useGridPrivateApiContext");
|
|
739
|
-
var
|
|
740
|
-
Object.keys(
|
|
754
|
+
var _utils3 = require("../hooks/utils");
|
|
755
|
+
Object.keys(_utils3).forEach(function (key) {
|
|
741
756
|
if (key === "default" || key === "__esModule") return;
|
|
742
757
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
743
|
-
if (key in exports && exports[key] ===
|
|
758
|
+
if (key in exports && exports[key] === _utils3[key]) return;
|
|
744
759
|
Object.defineProperty(exports, key, {
|
|
745
760
|
enumerable: true,
|
|
746
761
|
get: function () {
|
|
747
|
-
return
|
|
762
|
+
return _utils3[key];
|
|
748
763
|
}
|
|
749
764
|
});
|
|
750
765
|
});
|
|
751
766
|
var _csvSerializer = require("../hooks/features/export/serializers/csvSerializer");
|
|
752
|
-
var
|
|
753
|
-
Object.keys(
|
|
767
|
+
var _utils4 = require("./utils");
|
|
768
|
+
Object.keys(_utils4).forEach(function (key) {
|
|
754
769
|
if (key === "default" || key === "__esModule") return;
|
|
755
770
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
756
|
-
if (key in exports && exports[key] ===
|
|
771
|
+
if (key in exports && exports[key] === _utils4[key]) return;
|
|
757
772
|
Object.defineProperty(exports, key, {
|
|
758
773
|
enumerable: true,
|
|
759
774
|
get: function () {
|
|
760
|
-
return
|
|
775
|
+
return _utils4[key];
|
|
761
776
|
}
|
|
762
777
|
});
|
|
763
778
|
});
|
|
@@ -24,4 +24,15 @@ Object.keys(_useProps).forEach(function (key) {
|
|
|
24
24
|
return _useProps[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
+
});
|
|
28
|
+
var _propValidation = require("./propValidation");
|
|
29
|
+
Object.keys(_propValidation).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _propValidation[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _propValidation[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
27
38
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.validateProps = exports.propValidatorsDataGrid = void 0;
|
|
7
|
+
const propValidatorsDataGrid = exports.propValidatorsDataGrid = [props => props.autoPageSize && props.autoHeight && ['MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.', 'You can not use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.', '', 'Please remove one of these two props.'].join('\n') || undefined];
|
|
8
|
+
const warnedOnceMap = new Set();
|
|
9
|
+
const warnOnce = message => {
|
|
10
|
+
if (!warnedOnceMap.has(message)) {
|
|
11
|
+
console.error(message);
|
|
12
|
+
warnedOnceMap.add(message);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const validateProps = (props, validators) => {
|
|
16
|
+
if (process.env.NODE_ENV === 'production') {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
validators.forEach(validator => {
|
|
20
|
+
const warning = validator(props);
|
|
21
|
+
if (warning) {
|
|
22
|
+
warnOnce(warning);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
exports.validateProps = validateProps;
|