@mui/x-data-grid 6.0.0-beta.4 → 6.0.0
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 +204 -29
- package/DataGrid/DataGrid.js +10 -2
- package/DataGrid/useDataGridProps.js +25 -18
- package/colDef/gridSingleSelectColDef.js +13 -4
- package/components/GridColumnHeaders.d.ts +7 -0
- package/components/GridColumnHeaders.js +108 -0
- package/components/GridFooter.d.ts +1 -1
- package/components/GridFooter.js +2 -2
- package/components/GridHeader.js +2 -2
- package/components/GridLoadingOverlay.d.ts +1 -1
- package/components/GridNoResultsOverlay.d.ts +1 -1
- package/components/GridNoRowsOverlay.d.ts +1 -1
- package/components/GridRow.d.ts +13 -7
- package/components/GridRow.js +49 -31
- package/components/GridRowCount.d.ts +1 -1
- package/components/GridRowCount.js +4 -6
- package/components/GridScrollArea.js +4 -3
- package/components/GridSelectedRowCount.d.ts +1 -1
- package/components/GridSelectedRowCount.js +4 -6
- package/components/base/GridBody.d.ts +1 -4
- package/components/base/GridBody.js +43 -5
- package/components/base/GridFooterPlaceholder.js +2 -2
- package/components/base/GridOverlays.js +7 -7
- package/components/cell/GridActionsCell.js +4 -4
- package/components/cell/GridActionsCellItem.js +3 -3
- package/components/cell/GridBooleanCell.js +1 -1
- package/components/cell/GridCell.d.ts +2 -5
- package/components/cell/GridCell.js +14 -12
- package/components/cell/GridEditBooleanCell.js +3 -3
- package/components/cell/GridEditInputCell.js +3 -6
- package/components/cell/GridEditSingleSelectCell.d.ts +2 -8
- package/components/cell/GridEditSingleSelectCell.js +32 -16
- package/components/columnHeaders/ColumnHeaderMenuIcon.js +4 -4
- package/components/columnHeaders/GridBaseColumnHeaders.d.ts +7 -0
- package/{modern/components/columnHeaders/GridColumnHeaders.js → components/columnHeaders/GridBaseColumnHeaders.js} +14 -20
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +6 -6
- package/components/columnHeaders/GridColumnHeaderItem.js +5 -5
- package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +7 -7
- package/components/columnHeaders/GridColumnHeaderTitle.js +10 -14
- package/components/columnHeaders/GridColumnHeadersInner.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeadersInner.js +6 -6
- package/components/columnHeaders/GridIconButtonContainer.js +4 -6
- package/components/columnSelection/GridCellCheckboxRenderer.js +3 -3
- package/components/columnSelection/GridHeaderCheckbox.js +3 -3
- package/components/containers/GridFooterContainer.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +10 -15
- package/components/containers/GridMainContainer.js +3 -5
- package/components/containers/GridOverlay.d.ts +1 -2
- package/components/containers/GridOverlay.js +7 -11
- package/components/containers/GridRoot.js +4 -5
- package/components/containers/GridRootStyles.d.ts +5 -1
- package/components/containers/GridRootStyles.js +7 -3
- package/components/containers/GridToolbarContainer.d.ts +1 -1
- package/components/containers/GridToolbarContainer.js +4 -6
- package/components/index.d.ts +1 -1
- package/components/index.js +1 -1
- package/components/menu/GridMenu.js +5 -7
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +2 -2
- package/components/panel/GridColumnsPanel.js +16 -18
- package/components/panel/GridPanel.d.ts +6 -2
- package/components/panel/GridPanel.js +4 -0
- package/components/panel/GridPanelContent.d.ts +1 -1
- package/components/panel/GridPanelContent.js +4 -6
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelFooter.js +4 -6
- package/components/panel/GridPanelHeader.d.ts +1 -1
- package/components/panel/GridPanelHeader.js +4 -6
- package/components/panel/GridPanelWrapper.js +3 -5
- package/components/panel/GridPreferencesPanel.js +4 -4
- package/components/panel/filterPanel/GridFilterForm.js +50 -45
- package/components/panel/filterPanel/GridFilterInputBoolean.js +14 -11
- package/components/panel/filterPanel/GridFilterInputDate.js +4 -5
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -8
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +28 -20
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +3 -3
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +2 -8
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +53 -25
- package/components/panel/filterPanel/GridFilterInputValue.js +4 -5
- package/components/panel/filterPanel/GridFilterPanel.d.ts +5 -3
- package/components/panel/filterPanel/GridFilterPanel.js +35 -11
- package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -2
- package/components/panel/filterPanel/filterPanelUtils.js +3 -9
- package/components/toolbar/GridToolbarColumnsButton.js +4 -4
- package/components/toolbar/GridToolbarDensitySelector.js +9 -9
- package/components/toolbar/GridToolbarExportContainer.js +4 -4
- package/components/toolbar/GridToolbarFilterButton.js +9 -11
- package/components/toolbar/GridToolbarQuickFilter.js +8 -7
- package/components/virtualization/GridVirtualScroller.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.js +4 -6
- package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerContent.js +4 -4
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.js +4 -6
- package/constants/defaultGridSlotsComponents.js +5 -54
- package/constants/localeTextConstants.js +1 -0
- package/hooks/core/useGridLocaleText.js +2 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +22 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +19 -26
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +5 -5
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +5 -5
- package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +2 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +36 -19
- package/index.d.ts +3 -0
- package/index.js +5 -1
- package/internals/index.d.ts +4 -1
- package/internals/index.js +3 -2
- package/internals/utils/computeSlots.d.ts +6 -0
- package/internals/utils/computeSlots.js +17 -0
- package/internals/utils/index.d.ts +2 -0
- package/internals/utils/index.js +2 -0
- package/internals/utils/slotsMigration.d.ts +4 -0
- package/internals/utils/slotsMigration.js +13 -0
- package/legacy/DataGrid/DataGrid.js +10 -2
- package/legacy/DataGrid/useDataGridProps.js +21 -20
- package/legacy/colDef/gridSingleSelectColDef.js +13 -4
- package/legacy/components/GridColumnHeaders.js +106 -0
- package/legacy/components/GridFooter.js +2 -2
- package/legacy/components/GridHeader.js +2 -2
- package/legacy/components/GridRow.js +47 -31
- package/legacy/components/GridRowCount.js +4 -6
- package/legacy/components/GridScrollArea.js +4 -3
- package/legacy/components/GridSelectedRowCount.js +4 -6
- package/legacy/components/base/GridBody.js +43 -5
- package/legacy/components/base/GridFooterPlaceholder.js +2 -2
- package/legacy/components/base/GridOverlays.js +7 -7
- package/legacy/components/cell/GridActionsCell.js +4 -4
- package/legacy/components/cell/GridActionsCellItem.js +3 -3
- package/legacy/components/cell/GridBooleanCell.js +2 -2
- package/legacy/components/cell/GridCell.js +14 -12
- package/legacy/components/cell/GridEditBooleanCell.js +3 -3
- package/legacy/components/cell/GridEditInputCell.js +3 -6
- package/legacy/components/cell/GridEditSingleSelectCell.js +40 -23
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +4 -4
- package/legacy/components/columnHeaders/{GridColumnHeaders.js → GridBaseColumnHeaders.js} +14 -19
- package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +6 -6
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +5 -5
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +7 -7
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +12 -17
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +6 -6
- package/legacy/components/columnHeaders/GridIconButtonContainer.js +4 -6
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +3 -3
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +3 -3
- package/legacy/components/containers/GridFooterContainer.js +10 -15
- package/legacy/components/containers/GridMainContainer.js +3 -5
- package/legacy/components/containers/GridOverlay.js +12 -17
- package/legacy/components/containers/GridRoot.js +5 -6
- package/legacy/components/containers/GridRootStyles.js +7 -3
- package/legacy/components/containers/GridToolbarContainer.js +4 -6
- package/legacy/components/index.js +1 -1
- package/legacy/components/menu/GridMenu.js +5 -7
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +2 -2
- package/legacy/components/panel/GridColumnsPanel.js +16 -20
- package/legacy/components/panel/GridPanel.js +4 -0
- package/legacy/components/panel/GridPanelContent.js +4 -6
- package/legacy/components/panel/GridPanelFooter.js +4 -6
- package/legacy/components/panel/GridPanelHeader.js +4 -6
- package/legacy/components/panel/GridPanelWrapper.js +3 -5
- package/legacy/components/panel/GridPreferencesPanel.js +4 -4
- package/legacy/components/panel/filterPanel/GridFilterForm.js +50 -45
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +14 -11
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -5
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +32 -26
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +3 -3
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +52 -27
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -5
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +36 -10
- package/legacy/components/panel/filterPanel/filterPanelUtils.js +3 -9
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +4 -4
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +9 -9
- package/legacy/components/toolbar/GridToolbarExportContainer.js +4 -4
- package/legacy/components/toolbar/GridToolbarFilterButton.js +9 -11
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +8 -7
- package/legacy/components/virtualization/GridVirtualScroller.js +4 -6
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +4 -4
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +4 -6
- package/legacy/constants/defaultGridSlotsComponents.js +5 -54
- package/legacy/constants/localeTextConstants.js +1 -0
- package/legacy/hooks/core/useGridLocaleText.js +2 -4
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +19 -26
- package/legacy/hooks/features/columns/useGridColumns.js +5 -5
- package/legacy/hooks/features/filter/useGridFilter.js +5 -5
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +34 -17
- package/legacy/index.js +5 -1
- package/legacy/internals/index.js +3 -2
- package/legacy/internals/utils/computeSlots.js +16 -0
- package/legacy/internals/utils/index.js +2 -0
- package/legacy/internals/utils/slotsMigration.js +14 -0
- package/legacy/locales/arSD.js +15 -19
- package/legacy/locales/beBY.js +1 -0
- package/legacy/locales/bgBG.js +1 -0
- package/legacy/locales/csCZ.js +25 -32
- package/legacy/locales/daDK.js +1 -0
- package/legacy/locales/deDE.js +1 -0
- package/legacy/locales/elGR.js +1 -0
- package/legacy/locales/esES.js +2 -1
- package/legacy/locales/faIR.js +1 -0
- package/legacy/locales/fiFI.js +1 -0
- package/legacy/locales/frFR.js +1 -0
- package/legacy/locales/heIL.js +1 -0
- package/legacy/locales/huHU.js +1 -0
- package/legacy/locales/itIT.js +1 -0
- package/legacy/locales/jaJP.js +1 -0
- package/legacy/locales/koKR.js +1 -0
- package/legacy/locales/nbNO.js +1 -0
- package/legacy/locales/nlNL.js +1 -0
- package/legacy/locales/plPL.js +1 -0
- package/legacy/locales/ptBR.js +1 -0
- package/legacy/locales/roRO.js +1 -0
- package/legacy/locales/ruRU.js +1 -0
- package/legacy/locales/skSK.js +1 -0
- package/legacy/locales/svSE.js +1 -0
- package/legacy/locales/trTR.js +1 -0
- package/legacy/locales/ukUA.js +1 -0
- package/legacy/locales/urPK.js +1 -0
- package/legacy/locales/viVN.js +1 -0
- package/legacy/locales/zhCN.js +1 -0
- package/legacy/locales/zhTW.js +1 -0
- package/legacy/material/components/MUISelectOption.js +14 -0
- package/legacy/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +1 -1
- package/legacy/{components → material}/icons/index.js +7 -1
- package/legacy/material/index.js +65 -0
- package/legacy/models/gridFilterItem.js +2 -0
- package/legacy/models/params/gridRowParams.js +4 -0
- package/locales/arSD.js +15 -19
- package/locales/beBY.js +1 -0
- package/locales/bgBG.js +1 -0
- package/locales/csCZ.js +24 -31
- package/locales/daDK.js +1 -0
- package/locales/deDE.js +1 -0
- package/locales/elGR.js +1 -0
- package/locales/esES.js +2 -1
- package/locales/faIR.js +1 -0
- package/locales/fiFI.js +1 -0
- package/locales/frFR.js +1 -0
- package/locales/heIL.js +1 -0
- package/locales/huHU.js +1 -0
- package/locales/itIT.js +1 -0
- package/locales/jaJP.js +1 -0
- package/locales/koKR.js +1 -0
- package/locales/nbNO.js +1 -0
- package/locales/nlNL.js +1 -0
- package/locales/plPL.js +1 -0
- package/locales/ptBR.js +1 -0
- package/locales/roRO.js +1 -0
- package/locales/ruRU.js +1 -0
- package/locales/skSK.js +1 -0
- package/locales/svSE.js +1 -0
- package/locales/trTR.js +1 -0
- package/locales/ukUA.js +1 -0
- package/locales/urPK.js +1 -0
- package/locales/viVN.js +1 -0
- package/locales/zhCN.js +1 -0
- package/locales/zhTW.js +1 -0
- package/material/components/MUISelectOption.d.ts +3 -0
- package/material/components/MUISelectOption.js +16 -0
- package/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +1 -1
- package/{components → material}/icons/index.d.ts +6 -0
- package/{components → material}/icons/index.js +7 -1
- package/material/index.d.ts +57 -0
- package/material/index.js +65 -0
- package/material/package.json +6 -0
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/colDef/gridColDef.d.ts +19 -1
- package/models/gridExport.d.ts +4 -0
- package/models/gridFilterItem.d.ts +2 -0
- package/models/gridFilterItem.js +2 -0
- package/models/gridFilterModel.d.ts +2 -0
- package/models/gridFilterOperator.d.ts +2 -0
- package/models/gridIconSlotsComponent.d.ts +22 -2
- package/models/gridSlotsComponent.d.ts +18 -1
- package/models/gridSlotsComponentsProps.d.ts +103 -23
- package/models/params/gridRowParams.d.ts +6 -0
- package/models/params/gridRowParams.js +4 -0
- package/models/props/DataGridProps.d.ts +13 -2
- package/modern/DataGrid/DataGrid.js +10 -2
- package/modern/DataGrid/useDataGridProps.js +21 -17
- package/modern/colDef/gridSingleSelectColDef.js +13 -4
- package/modern/components/GridColumnHeaders.js +108 -0
- package/modern/components/GridFooter.js +1 -1
- package/modern/components/GridHeader.js +1 -1
- package/modern/components/GridRow.js +49 -28
- package/modern/components/GridRowCount.js +4 -6
- package/modern/components/GridScrollArea.js +4 -3
- package/modern/components/GridSelectedRowCount.js +4 -6
- package/modern/components/base/GridBody.js +43 -5
- package/modern/components/base/GridFooterPlaceholder.js +1 -1
- package/modern/components/base/GridOverlays.js +4 -4
- package/modern/components/cell/GridActionsCell.js +3 -3
- package/modern/components/cell/GridActionsCellItem.js +2 -2
- package/modern/components/cell/GridBooleanCell.js +1 -1
- package/modern/components/cell/GridCell.js +14 -12
- package/modern/components/cell/GridEditBooleanCell.js +2 -2
- package/modern/components/cell/GridEditInputCell.js +3 -6
- package/modern/components/cell/GridEditSingleSelectCell.js +30 -15
- package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/{components/columnHeaders/GridColumnHeaders.js → modern/components/columnHeaders/GridBaseColumnHeaders.js} +14 -20
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +5 -5
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +4 -4
- package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +6 -6
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +9 -13
- package/modern/components/columnHeaders/GridColumnHeadersInner.js +6 -6
- package/modern/components/columnHeaders/GridIconButtonContainer.js +4 -6
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/modern/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/modern/components/containers/GridFooterContainer.js +10 -15
- package/modern/components/containers/GridMainContainer.js +3 -5
- package/modern/components/containers/GridOverlay.js +7 -11
- package/modern/components/containers/GridRoot.js +4 -5
- package/modern/components/containers/GridRootStyles.js +7 -3
- package/modern/components/containers/GridToolbarContainer.js +4 -6
- package/modern/components/index.js +1 -1
- package/modern/components/menu/GridMenu.js +4 -6
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +2 -2
- package/modern/components/panel/GridColumnsPanel.js +14 -16
- package/modern/components/panel/GridPanel.js +4 -0
- package/modern/components/panel/GridPanelContent.js +4 -6
- package/modern/components/panel/GridPanelFooter.js +4 -6
- package/modern/components/panel/GridPanelHeader.js +4 -6
- package/modern/components/panel/GridPanelWrapper.js +3 -5
- package/modern/components/panel/GridPreferencesPanel.js +3 -3
- package/modern/components/panel/filterPanel/GridFilterForm.js +49 -44
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +13 -10
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +3 -4
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +24 -17
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +52 -24
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +3 -4
- package/modern/components/panel/filterPanel/GridFilterPanel.js +34 -10
- package/modern/components/panel/filterPanel/filterPanelUtils.js +3 -9
- package/modern/components/toolbar/GridToolbarColumnsButton.js +3 -3
- package/modern/components/toolbar/GridToolbarDensitySelector.js +8 -8
- package/modern/components/toolbar/GridToolbarExportContainer.js +3 -3
- package/modern/components/toolbar/GridToolbarFilterButton.js +8 -10
- package/modern/components/toolbar/GridToolbarQuickFilter.js +7 -6
- package/modern/components/virtualization/GridVirtualScroller.js +4 -6
- package/modern/components/virtualization/GridVirtualScrollerContent.js +4 -4
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +4 -6
- package/modern/constants/defaultGridSlotsComponents.js +5 -54
- package/modern/constants/localeTextConstants.js +1 -0
- package/modern/hooks/core/useGridLocaleText.js +2 -4
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +19 -26
- package/modern/hooks/features/columns/useGridColumns.js +3 -3
- package/modern/hooks/features/filter/useGridFilter.js +3 -3
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +34 -18
- package/modern/index.js +5 -1
- package/modern/internals/index.js +3 -2
- package/modern/internals/utils/computeSlots.js +17 -0
- package/modern/internals/utils/index.js +2 -0
- package/modern/internals/utils/slotsMigration.js +13 -0
- package/modern/locales/arSD.js +15 -19
- package/modern/locales/beBY.js +1 -0
- package/modern/locales/bgBG.js +1 -0
- package/modern/locales/csCZ.js +24 -31
- package/modern/locales/daDK.js +1 -0
- package/modern/locales/deDE.js +1 -0
- package/modern/locales/elGR.js +1 -0
- package/modern/locales/esES.js +2 -1
- package/modern/locales/faIR.js +1 -0
- package/modern/locales/fiFI.js +1 -0
- package/modern/locales/frFR.js +1 -0
- package/modern/locales/heIL.js +1 -0
- package/modern/locales/huHU.js +1 -0
- package/modern/locales/itIT.js +1 -0
- package/modern/locales/jaJP.js +1 -0
- package/modern/locales/koKR.js +1 -0
- package/modern/locales/nbNO.js +1 -0
- package/modern/locales/nlNL.js +1 -0
- package/modern/locales/plPL.js +1 -0
- package/modern/locales/ptBR.js +1 -0
- package/modern/locales/roRO.js +1 -0
- package/modern/locales/ruRU.js +1 -0
- package/modern/locales/skSK.js +1 -0
- package/modern/locales/svSE.js +1 -0
- package/modern/locales/trTR.js +1 -0
- package/modern/locales/ukUA.js +1 -0
- package/modern/locales/urPK.js +1 -0
- package/modern/locales/viVN.js +1 -0
- package/modern/locales/zhCN.js +1 -0
- package/modern/locales/zhTW.js +1 -0
- package/modern/material/components/MUISelectOption.js +16 -0
- package/modern/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +1 -1
- package/modern/{components → material}/icons/index.js +7 -1
- package/modern/material/index.js +65 -0
- package/modern/models/gridFilterItem.js +2 -0
- package/modern/models/params/gridRowParams.js +4 -0
- package/node/DataGrid/DataGrid.js +10 -2
- package/node/DataGrid/useDataGridProps.js +21 -17
- package/node/colDef/gridSingleSelectColDef.js +12 -3
- package/node/components/GridColumnHeaders.js +116 -0
- package/node/components/GridFooter.js +1 -1
- package/node/components/GridHeader.js +1 -1
- package/node/components/GridRow.js +49 -28
- package/node/components/GridRowCount.js +5 -7
- package/node/components/GridScrollArea.js +5 -4
- package/node/components/GridSelectedRowCount.js +5 -7
- package/node/components/base/GridBody.js +43 -5
- package/node/components/base/GridFooterPlaceholder.js +1 -1
- package/node/components/base/GridOverlays.js +6 -6
- package/node/components/cell/GridActionsCell.js +3 -3
- package/node/components/cell/GridActionsCellItem.js +2 -2
- package/node/components/cell/GridBooleanCell.js +1 -1
- package/node/components/cell/GridCell.js +14 -11
- package/node/components/cell/GridEditBooleanCell.js +2 -2
- package/node/components/cell/GridEditInputCell.js +3 -6
- package/node/components/cell/GridEditSingleSelectCell.js +28 -14
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/node/components/columnHeaders/{GridColumnHeaders.js → GridBaseColumnHeaders.js} +17 -23
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +5 -5
- package/node/components/columnHeaders/GridColumnHeaderItem.js +4 -4
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +6 -6
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +10 -14
- package/node/components/columnHeaders/GridColumnHeadersInner.js +7 -7
- package/node/components/columnHeaders/GridIconButtonContainer.js +5 -7
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/node/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/node/components/containers/GridFooterContainer.js +11 -16
- package/node/components/containers/GridMainContainer.js +4 -6
- package/node/components/containers/GridOverlay.js +8 -12
- package/node/components/containers/GridRoot.js +4 -5
- package/node/components/containers/GridRootStyles.js +7 -3
- package/node/components/containers/GridToolbarContainer.js +5 -7
- package/node/components/index.js +1 -1
- package/node/components/menu/GridMenu.js +4 -6
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +2 -2
- package/node/components/panel/GridColumnsPanel.js +14 -16
- package/node/components/panel/GridPanel.js +4 -0
- package/node/components/panel/GridPanelContent.js +5 -7
- package/node/components/panel/GridPanelFooter.js +5 -7
- package/node/components/panel/GridPanelHeader.js +5 -7
- package/node/components/panel/GridPanelWrapper.js +3 -5
- package/node/components/panel/GridPreferencesPanel.js +3 -3
- package/node/components/panel/filterPanel/GridFilterForm.js +48 -44
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +13 -10
- package/node/components/panel/filterPanel/GridFilterInputDate.js +3 -4
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +23 -16
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -2
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +50 -23
- package/node/components/panel/filterPanel/GridFilterInputValue.js +3 -4
- package/node/components/panel/filterPanel/GridFilterPanel.js +34 -10
- package/node/components/panel/filterPanel/filterPanelUtils.js +3 -10
- package/node/components/toolbar/GridToolbarColumnsButton.js +3 -3
- package/node/components/toolbar/GridToolbarDensitySelector.js +8 -8
- package/node/components/toolbar/GridToolbarExportContainer.js +3 -3
- package/node/components/toolbar/GridToolbarFilterButton.js +8 -10
- package/node/components/toolbar/GridToolbarQuickFilter.js +7 -6
- package/node/components/virtualization/GridVirtualScroller.js +5 -7
- package/node/components/virtualization/GridVirtualScrollerContent.js +5 -5
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +5 -7
- package/node/constants/defaultGridSlotsComponents.js +4 -53
- package/node/constants/localeTextConstants.js +1 -0
- package/node/hooks/core/useGridLocaleText.js +2 -4
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +21 -28
- package/node/hooks/features/columns/useGridColumns.js +3 -3
- package/node/hooks/features/filter/useGridFilter.js +3 -3
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +33 -16
- package/node/index.js +9 -1
- package/node/internals/index.js +94 -4
- package/node/internals/utils/computeSlots.js +23 -0
- package/node/internals/utils/index.js +27 -0
- package/node/internals/utils/slotsMigration.js +21 -0
- package/node/locales/arSD.js +15 -19
- package/node/locales/beBY.js +1 -0
- package/node/locales/bgBG.js +1 -0
- package/node/locales/csCZ.js +24 -31
- package/node/locales/daDK.js +1 -0
- package/node/locales/deDE.js +1 -0
- package/node/locales/elGR.js +1 -0
- package/node/locales/esES.js +2 -1
- package/node/locales/faIR.js +1 -0
- package/node/locales/fiFI.js +1 -0
- package/node/locales/frFR.js +1 -0
- package/node/locales/heIL.js +1 -0
- package/node/locales/huHU.js +1 -0
- package/node/locales/itIT.js +1 -0
- package/node/locales/jaJP.js +1 -0
- package/node/locales/koKR.js +1 -0
- package/node/locales/nbNO.js +1 -0
- package/node/locales/nlNL.js +1 -0
- package/node/locales/plPL.js +1 -0
- package/node/locales/ptBR.js +1 -0
- package/node/locales/roRO.js +1 -0
- package/node/locales/ruRU.js +1 -0
- package/node/locales/skSK.js +1 -0
- package/node/locales/svSE.js +1 -0
- package/node/locales/trTR.js +1 -0
- package/node/locales/ukUA.js +1 -0
- package/node/locales/urPK.js +1 -0
- package/node/locales/viVN.js +1 -0
- package/node/locales/zhCN.js +1 -0
- package/node/locales/zhTW.js +1 -0
- package/node/{components/DataGridColumnHeaders.js → material/components/MUISelectOption.js} +13 -35
- package/node/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +1 -1
- package/node/{components → material}/icons/index.js +10 -2
- package/node/material/index.js +73 -0
- package/node/models/gridFilterItem.js +2 -0
- package/node/models/params/gridRowParams.js +4 -0
- package/package.json +1 -1
- package/components/DataGridColumnHeaders.d.ts +0 -6
- package/components/DataGridColumnHeaders.js +0 -38
- package/components/columnHeaders/GridColumnHeaders.d.ts +0 -7
- package/legacy/components/DataGridColumnHeaders.js +0 -36
- package/modern/components/DataGridColumnHeaders.js +0 -38
- /package/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.d.ts +0 -0
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import { styled } from '@mui/
|
|
6
|
+
import { styled } from '@mui/system';
|
|
7
7
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
8
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
9
9
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
@@ -36,13 +36,11 @@ const GridVirtualScroller = /*#__PURE__*/React.forwardRef(function GridVirtualSc
|
|
|
36
36
|
} = props,
|
|
37
37
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
38
38
|
const rootProps = useGridRootProps();
|
|
39
|
-
const
|
|
40
|
-
classes: rootProps.classes
|
|
41
|
-
};
|
|
42
|
-
const classes = useUtilityClasses(ownerState);
|
|
39
|
+
const classes = useUtilityClasses(rootProps);
|
|
43
40
|
return /*#__PURE__*/_jsx(VirtualScrollerRoot, _extends({
|
|
44
41
|
ref: ref,
|
|
45
|
-
className: clsx(classes.root, className)
|
|
42
|
+
className: clsx(classes.root, className),
|
|
43
|
+
ownerState: rootProps
|
|
46
44
|
}, other));
|
|
47
45
|
});
|
|
48
46
|
export { GridVirtualScroller };
|
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["className", "style"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import { styled } from '@mui/
|
|
6
|
+
import { styled } from '@mui/system';
|
|
7
7
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
8
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
9
9
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
@@ -30,14 +30,14 @@ const GridVirtualScrollerContent = /*#__PURE__*/React.forwardRef(function GridVi
|
|
|
30
30
|
} = props,
|
|
31
31
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
32
32
|
const rootProps = useGridRootProps();
|
|
33
|
-
const ownerState = {
|
|
34
|
-
classes: rootProps.classes,
|
|
33
|
+
const ownerState = _extends({}, rootProps, {
|
|
35
34
|
overflowedContent: !rootProps.autoHeight && style?.minHeight === 'auto'
|
|
36
|
-
};
|
|
35
|
+
});
|
|
37
36
|
const classes = useUtilityClasses(ownerState);
|
|
38
37
|
return /*#__PURE__*/_jsx(VirtualScrollerContentRoot, _extends({
|
|
39
38
|
ref: ref,
|
|
40
39
|
className: clsx(classes.root, className),
|
|
40
|
+
ownerState: ownerState,
|
|
41
41
|
style: style
|
|
42
42
|
}, other));
|
|
43
43
|
});
|
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import { styled } from '@mui/
|
|
6
|
+
import { styled } from '@mui/system';
|
|
7
7
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
8
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
9
9
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
@@ -33,13 +33,11 @@ const GridVirtualScrollerRenderZone = /*#__PURE__*/React.forwardRef(function Gri
|
|
|
33
33
|
} = props,
|
|
34
34
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
35
35
|
const rootProps = useGridRootProps();
|
|
36
|
-
const
|
|
37
|
-
classes: rootProps.classes
|
|
38
|
-
};
|
|
39
|
-
const classes = useUtilityClasses(ownerState);
|
|
36
|
+
const classes = useUtilityClasses(rootProps);
|
|
40
37
|
return /*#__PURE__*/_jsx(VirtualScrollerRenderZoneRoot, _extends({
|
|
41
38
|
ref: ref,
|
|
42
|
-
className: clsx(classes.root, className)
|
|
39
|
+
className: clsx(classes.root, className),
|
|
40
|
+
ownerState: rootProps
|
|
43
41
|
}, other));
|
|
44
42
|
});
|
|
45
43
|
export { GridVirtualScrollerRenderZone };
|
|
@@ -1,64 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import MUIFormControl from '@mui/material/FormControl';
|
|
5
|
-
import MUISelect from '@mui/material/Select';
|
|
6
|
-
import MUISwitch from '@mui/material/Switch';
|
|
7
|
-
import MUIButton from '@mui/material/Button';
|
|
8
|
-
import MUIIconButton from '@mui/material/IconButton';
|
|
9
|
-
import MUITooltip from '@mui/material/Tooltip';
|
|
10
|
-
import MUIPopper from '@mui/material/Popper';
|
|
11
|
-
import { GridArrowDownwardIcon, GridArrowUpwardIcon, GridCell, GridSkeletonCell, GridCheckIcon, GridCloseIcon, GridColumnIcon, GridColumnsPanel, GridFilterAltIcon, GridFilterListIcon, GridFilterPanel, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridPanel, GridPreferencesPanel, GridRow, GridSaveAltIcon, GridSeparatorIcon, GridTableRowsIcon, GridTripleDotsVerticalIcon, GridViewHeadlineIcon, GridViewStreamIcon, GridMoreVertIcon, GridExpandMoreIcon, GridKeyboardArrowRight, GridAddIcon, GridRemoveIcon, GridDragIcon, GridColumnHeaderFilterIconButton, GridSearchIcon, GridVisibilityOffIcon, GridViewColumnIcon, GridClearIcon } from '../components';
|
|
2
|
+
import { GridCell, GridSkeletonCell, GridColumnsPanel, GridFilterPanel, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridPanel, GridPreferencesPanel, GridRow, GridColumnHeaderFilterIconButton } from '../components';
|
|
3
|
+
import { GridColumnHeaders } from '../components/GridColumnHeaders';
|
|
12
4
|
import { GridColumnMenu } from '../components/menu/columnMenu/GridColumnMenu';
|
|
13
|
-
import { GridColumnUnsortedIcon } from '../components/columnHeaders/GridColumnUnsortedIcon';
|
|
14
5
|
import { GridNoResultsOverlay } from '../components/GridNoResultsOverlay';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
BooleanCellFalseIcon: GridCloseIcon,
|
|
18
|
-
ColumnMenuIcon: GridTripleDotsVerticalIcon,
|
|
19
|
-
OpenFilterButtonIcon: GridFilterListIcon,
|
|
20
|
-
FilterPanelDeleteIcon: GridCloseIcon,
|
|
21
|
-
ColumnFilteredIcon: GridFilterAltIcon,
|
|
22
|
-
ColumnSelectorIcon: GridColumnIcon,
|
|
23
|
-
ColumnUnsortedIcon: GridColumnUnsortedIcon,
|
|
24
|
-
ColumnSortedAscendingIcon: GridArrowUpwardIcon,
|
|
25
|
-
ColumnSortedDescendingIcon: GridArrowDownwardIcon,
|
|
26
|
-
ColumnResizeIcon: GridSeparatorIcon,
|
|
27
|
-
DensityCompactIcon: GridViewHeadlineIcon,
|
|
28
|
-
DensityStandardIcon: GridTableRowsIcon,
|
|
29
|
-
DensityComfortableIcon: GridViewStreamIcon,
|
|
30
|
-
ExportIcon: GridSaveAltIcon,
|
|
31
|
-
MoreActionsIcon: GridMoreVertIcon,
|
|
32
|
-
TreeDataCollapseIcon: GridExpandMoreIcon,
|
|
33
|
-
TreeDataExpandIcon: GridKeyboardArrowRight,
|
|
34
|
-
GroupingCriteriaCollapseIcon: GridExpandMoreIcon,
|
|
35
|
-
GroupingCriteriaExpandIcon: GridKeyboardArrowRight,
|
|
36
|
-
DetailPanelExpandIcon: GridAddIcon,
|
|
37
|
-
DetailPanelCollapseIcon: GridRemoveIcon,
|
|
38
|
-
RowReorderIcon: GridDragIcon,
|
|
39
|
-
QuickFilterIcon: GridSearchIcon,
|
|
40
|
-
QuickFilterClearIcon: GridCloseIcon,
|
|
41
|
-
ColumnMenuHideIcon: GridVisibilityOffIcon,
|
|
42
|
-
ColumnMenuSortAscendingIcon: GridArrowUpwardIcon,
|
|
43
|
-
ColumnMenuSortDescendingIcon: GridArrowDownwardIcon,
|
|
44
|
-
ColumnMenuFilterIcon: GridFilterAltIcon,
|
|
45
|
-
ColumnMenuManageColumnsIcon: GridViewColumnIcon,
|
|
46
|
-
ColumnMenuClearIcon: GridClearIcon
|
|
47
|
-
};
|
|
48
|
-
export const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends({}, DEFAULT_GRID_ICON_SLOTS_COMPONENTS, {
|
|
49
|
-
BaseCheckbox: MUICheckbox,
|
|
50
|
-
BaseTextField: MUITextField,
|
|
51
|
-
BaseFormControl: MUIFormControl,
|
|
52
|
-
BaseSelect: MUISelect,
|
|
53
|
-
BaseSwitch: MUISwitch,
|
|
54
|
-
BaseButton: MUIButton,
|
|
55
|
-
BaseIconButton: MUIIconButton,
|
|
56
|
-
BaseTooltip: MUITooltip,
|
|
57
|
-
BasePopper: MUIPopper,
|
|
6
|
+
import materialSlots from '../material';
|
|
7
|
+
export const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends({}, materialSlots, {
|
|
58
8
|
Cell: GridCell,
|
|
59
9
|
SkeletonCell: GridSkeletonCell,
|
|
60
10
|
ColumnHeaderFilterIconButton: GridColumnHeaderFilterIconButton,
|
|
61
11
|
ColumnMenu: GridColumnMenu,
|
|
12
|
+
ColumnHeaders: GridColumnHeaders,
|
|
62
13
|
Footer: GridFooter,
|
|
63
14
|
Toolbar: null,
|
|
64
15
|
PreferencesPanel: GridPreferencesPanel,
|
|
@@ -35,6 +35,7 @@ export const GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
35
35
|
columnsPanelHideAllButton: 'Hide all',
|
|
36
36
|
// Filter panel text
|
|
37
37
|
filterPanelAddFilter: 'Add filter',
|
|
38
|
+
filterPanelRemoveAll: 'Remove all',
|
|
38
39
|
filterPanelDeleteIconLabel: 'Delete',
|
|
39
40
|
filterPanelLogicOperator: 'Logic operator',
|
|
40
41
|
filterPanelOperator: 'Operator',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useGridApiMethod } from '../utils/useGridApiMethod';
|
|
3
2
|
export const useGridLocaleText = (apiRef, props) => {
|
|
4
3
|
const getLocaleText = React.useCallback(key => {
|
|
5
4
|
if (props.localeText[key] == null) {
|
|
@@ -7,8 +6,7 @@ export const useGridLocaleText = (apiRef, props) => {
|
|
|
7
6
|
}
|
|
8
7
|
return props.localeText[key];
|
|
9
8
|
}, [props.localeText]);
|
|
10
|
-
|
|
9
|
+
apiRef.current.register('public', {
|
|
11
10
|
getLocaleText
|
|
12
|
-
};
|
|
13
|
-
useGridApiMethod(apiRef, localeTextApi, 'public');
|
|
11
|
+
});
|
|
14
12
|
};
|
|
@@ -2,16 +2,9 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as ReactDOM from 'react-dom';
|
|
4
4
|
import { unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
5
|
-
import { styled, useTheme } from '@mui/
|
|
5
|
+
import { styled, useTheme } from '@mui/system';
|
|
6
6
|
import { defaultMemoize } from 'reselect';
|
|
7
7
|
import { useGridPrivateApiContext } from '../../utils/useGridPrivateApiContext';
|
|
8
|
-
import { useGridSelector } from '../../utils/useGridSelector';
|
|
9
|
-
import { gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, gridColumnVisibilityModelSelector } from '../columns/gridColumnsSelector';
|
|
10
|
-
import { gridTabIndexColumnHeaderSelector, gridTabIndexCellSelector, gridFocusColumnHeaderSelector, unstable_gridFocusColumnGroupHeaderSelector, unstable_gridTabIndexColumnGroupHeaderSelector } from '../focus/gridFocusStateSelector';
|
|
11
|
-
import { gridDensityFactorSelector } from '../density/densitySelector';
|
|
12
|
-
import { gridFilterActiveItemsLookupSelector } from '../filter/gridFilterSelector';
|
|
13
|
-
import { gridSortColumnLookupSelector } from '../sorting/gridSortingSelector';
|
|
14
|
-
import { gridColumnMenuSelector } from '../columnMenu/columnMenuSelector';
|
|
15
8
|
import { useGridRootProps } from '../../utils/useGridRootProps';
|
|
16
9
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
17
10
|
import { GridColumnHeaderItem } from '../../../components/columnHeaders/GridColumnHeaderItem';
|
|
@@ -19,7 +12,6 @@ import { getFirstColumnIndexToRender, getTotalHeaderHeight } from '../columns/gr
|
|
|
19
12
|
import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
|
|
20
13
|
import { getRenderableIndexes } from '../virtualization/useGridVirtualScroller';
|
|
21
14
|
import { GridColumnGroupHeader } from '../../../components/columnHeaders/GridColumnGroupHeader';
|
|
22
|
-
import { gridColumnGroupsHeaderMaxDepthSelector, gridColumnGroupsHeaderStructureSelector } from '../columnGrouping/gridColumnGroupsSelector';
|
|
23
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
16
|
const GridColumnHeaderRow = styled('div', {
|
|
25
17
|
name: 'MuiDataGrid',
|
|
@@ -34,26 +26,26 @@ function isUIEvent(event) {
|
|
|
34
26
|
export const useGridColumnHeaders = props => {
|
|
35
27
|
const {
|
|
36
28
|
innerRef: innerRefProp,
|
|
37
|
-
minColumnIndex = 0
|
|
29
|
+
minColumnIndex = 0,
|
|
30
|
+
visibleColumns,
|
|
31
|
+
sortColumnLookup,
|
|
32
|
+
filterColumnLookup,
|
|
33
|
+
columnPositions,
|
|
34
|
+
columnHeaderTabIndexState,
|
|
35
|
+
columnGroupHeaderTabIndexState,
|
|
36
|
+
columnHeaderFocus,
|
|
37
|
+
columnGroupHeaderFocus,
|
|
38
|
+
densityFactor,
|
|
39
|
+
headerGroupingMaxDepth,
|
|
40
|
+
columnMenuState,
|
|
41
|
+
columnVisibility,
|
|
42
|
+
columnGroupsHeaderStructure,
|
|
43
|
+
hasOtherElementInTabSequence
|
|
38
44
|
} = props;
|
|
39
45
|
const theme = useTheme();
|
|
40
46
|
const [dragCol, setDragCol] = React.useState('');
|
|
41
47
|
const [resizeCol, setResizeCol] = React.useState('');
|
|
42
48
|
const apiRef = useGridPrivateApiContext();
|
|
43
|
-
const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);
|
|
44
|
-
const columnPositions = useGridSelector(apiRef, gridColumnPositionsSelector);
|
|
45
|
-
const columnHeaderTabIndexState = useGridSelector(apiRef, gridTabIndexColumnHeaderSelector);
|
|
46
|
-
const cellTabIndexState = useGridSelector(apiRef, gridTabIndexCellSelector);
|
|
47
|
-
const columnGroupHeaderTabIndexState = useGridSelector(apiRef, unstable_gridTabIndexColumnGroupHeaderSelector);
|
|
48
|
-
const columnHeaderFocus = useGridSelector(apiRef, gridFocusColumnHeaderSelector);
|
|
49
|
-
const columnGroupHeaderFocus = useGridSelector(apiRef, unstable_gridFocusColumnGroupHeaderSelector);
|
|
50
|
-
const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);
|
|
51
|
-
const headerGroupingMaxDepth = useGridSelector(apiRef, gridColumnGroupsHeaderMaxDepthSelector);
|
|
52
|
-
const filterColumnLookup = useGridSelector(apiRef, gridFilterActiveItemsLookupSelector);
|
|
53
|
-
const sortColumnLookup = useGridSelector(apiRef, gridSortColumnLookupSelector);
|
|
54
|
-
const columnMenuState = useGridSelector(apiRef, gridColumnMenuSelector);
|
|
55
|
-
const columnVisibility = useGridSelector(apiRef, gridColumnVisibilityModelSelector);
|
|
56
|
-
const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
|
|
57
49
|
const rootProps = useGridRootProps();
|
|
58
50
|
const innerRef = React.useRef(null);
|
|
59
51
|
const handleInnerRef = useForkRef(innerRefProp, innerRef);
|
|
@@ -198,8 +190,7 @@ export const useGridColumnHeaders = props => {
|
|
|
198
190
|
const colDef = renderedColumns[i];
|
|
199
191
|
const columnIndex = firstColumnToRender + i;
|
|
200
192
|
const isFirstColumn = columnIndex === 0;
|
|
201
|
-
const
|
|
202
|
-
const tabIndex = columnHeaderTabIndexState !== null && columnHeaderTabIndexState.field === colDef.field || isFirstColumn && !hasTabbableElement ? 0 : -1;
|
|
193
|
+
const tabIndex = columnHeaderTabIndexState !== null && columnHeaderTabIndexState.field === colDef.field || isFirstColumn && !hasOtherElementInTabSequence ? 0 : -1;
|
|
203
194
|
const hasFocus = columnHeaderFocus !== null && columnHeaderFocus.field === colDef.field;
|
|
204
195
|
const open = columnMenuState.open && columnMenuState.field === colDef.field;
|
|
205
196
|
columns.push( /*#__PURE__*/_jsx(GridColumnHeaderItem, _extends({}, sortColumnLookup[colDef.field], {
|
|
@@ -217,6 +208,7 @@ export const useGridColumnHeaders = props => {
|
|
|
217
208
|
return /*#__PURE__*/_jsx(GridColumnHeaderRow, {
|
|
218
209
|
role: "row",
|
|
219
210
|
"aria-rowindex": headerGroupingMaxDepth + 1,
|
|
211
|
+
ownerState: rootProps,
|
|
220
212
|
children: columns
|
|
221
213
|
});
|
|
222
214
|
};
|
|
@@ -285,6 +277,7 @@ export const useGridColumnHeaders = props => {
|
|
|
285
277
|
},
|
|
286
278
|
role: "row",
|
|
287
279
|
"aria-rowindex": depthIndex + 1,
|
|
280
|
+
ownerState: rootProps,
|
|
288
281
|
children: depthInfo.elements.map(({
|
|
289
282
|
groupId,
|
|
290
283
|
width,
|
|
@@ -217,11 +217,11 @@ export function useGridColumns(apiRef, props) {
|
|
|
217
217
|
}, [apiRef, columnTypes]);
|
|
218
218
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value) => {
|
|
219
219
|
if (value === GridPreferencePanelsValue.columns) {
|
|
220
|
-
const ColumnsPanel = props.
|
|
221
|
-
return /*#__PURE__*/_jsx(ColumnsPanel, _extends({}, props.
|
|
220
|
+
const ColumnsPanel = props.slots.columnsPanel;
|
|
221
|
+
return /*#__PURE__*/_jsx(ColumnsPanel, _extends({}, props.slotProps?.columnsPanel));
|
|
222
222
|
}
|
|
223
223
|
return initialValue;
|
|
224
|
-
}, [props.
|
|
224
|
+
}, [props.slots.columnsPanel, props.slotProps?.columnsPanel]);
|
|
225
225
|
const addColumnMenuItems = React.useCallback(columnMenuItems => {
|
|
226
226
|
if (props.disableColumnSelector) {
|
|
227
227
|
return columnMenuItems;
|
|
@@ -225,11 +225,11 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
225
225
|
}, [apiRef, props.disableMultipleColumnsFiltering]);
|
|
226
226
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value) => {
|
|
227
227
|
if (value === GridPreferencePanelsValue.filters) {
|
|
228
|
-
const FilterPanel = props.
|
|
229
|
-
return /*#__PURE__*/_jsx(FilterPanel, _extends({}, props.
|
|
228
|
+
const FilterPanel = props.slots.filterPanel;
|
|
229
|
+
return /*#__PURE__*/_jsx(FilterPanel, _extends({}, props.slotProps?.filterPanel));
|
|
230
230
|
}
|
|
231
231
|
return initialValue;
|
|
232
|
-
}, [props.
|
|
232
|
+
}, [props.slots.filterPanel, props.slotProps?.filterPanel]);
|
|
233
233
|
const flatFilteringMethod = React.useCallback(params => {
|
|
234
234
|
if (props.filterMode === 'client' && params.isRowMatchingFilters) {
|
|
235
235
|
const tree = gridRowTreeSelector(apiRef);
|
|
@@ -7,12 +7,12 @@ import * as React from 'react';
|
|
|
7
7
|
import * as ReactDOM from 'react-dom';
|
|
8
8
|
import { unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
9
9
|
import { useTheme } from '@mui/material/styles';
|
|
10
|
+
import { defaultMemoize } from 'reselect';
|
|
10
11
|
import { useGridPrivateApiContext } from '../../utils/useGridPrivateApiContext';
|
|
11
12
|
import { useGridRootProps } from '../../utils/useGridRootProps';
|
|
12
13
|
import { useGridSelector } from '../../utils/useGridSelector';
|
|
13
14
|
import { gridVisibleColumnDefinitionsSelector, gridColumnsTotalWidthSelector, gridColumnPositionsSelector } from '../columns/gridColumnsSelector';
|
|
14
15
|
import { gridFocusCellSelector, gridTabIndexCellSelector } from '../focus/gridFocusStateSelector';
|
|
15
|
-
import { gridEditRowsStateSelector } from '../editing/gridEditingSelectors';
|
|
16
16
|
import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
|
|
17
17
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
18
18
|
import { clamp } from '../../../utils/utils';
|
|
@@ -20,9 +20,8 @@ import { selectedIdsLookupSelector } from '../rowSelection/gridRowSelectionSelec
|
|
|
20
20
|
import { gridRowsMetaSelector } from '../rows/gridRowsMetaSelector';
|
|
21
21
|
import { getFirstNonSpannedColumnToRender } from '../columns/gridColumnsUtils';
|
|
22
22
|
import { getMinimalContentHeight } from '../rows/gridRowsUtils';
|
|
23
|
-
|
|
24
|
-
// Uses binary search to avoid looping through all possible positions
|
|
25
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
// Uses binary search to avoid looping through all possible positions
|
|
26
25
|
export function binarySearch(offset, positions, sliceStart = 0, sliceEnd = positions.length) {
|
|
27
26
|
if (positions.length <= 0) {
|
|
28
27
|
return -1;
|
|
@@ -75,7 +74,6 @@ export const useGridVirtualScroller = props => {
|
|
|
75
74
|
const cellFocus = useGridSelector(apiRef, gridFocusCellSelector);
|
|
76
75
|
const cellTabIndex = useGridSelector(apiRef, gridTabIndexCellSelector);
|
|
77
76
|
const rowsMeta = useGridSelector(apiRef, gridRowsMetaSelector);
|
|
78
|
-
const editRowsState = useGridSelector(apiRef, gridEditRowsStateSelector);
|
|
79
77
|
const selectedRowsLookup = useGridSelector(apiRef, selectedIdsLookupSelector);
|
|
80
78
|
const currentPage = useGridVisibleRows(apiRef, rootProps);
|
|
81
79
|
const renderZoneRef = React.useRef(null);
|
|
@@ -92,6 +90,12 @@ export const useGridVirtualScroller = props => {
|
|
|
92
90
|
height: null
|
|
93
91
|
});
|
|
94
92
|
const prevTotalWidth = React.useRef(columnsTotalWidth);
|
|
93
|
+
const rowStyleCache = React.useRef({});
|
|
94
|
+
const prevGetRowProps = React.useRef();
|
|
95
|
+
const prevRootRowStyle = React.useRef();
|
|
96
|
+
const getRenderedColumnsRef = React.useRef(defaultMemoize((columns, firstColumnToRender, lastColumnToRender) => {
|
|
97
|
+
return columns.slice(firstColumnToRender, lastColumnToRender);
|
|
98
|
+
}));
|
|
95
99
|
const getNearestIndexToRender = React.useCallback(offset => {
|
|
96
100
|
const lastMeasuredIndexRelativeToAllRows = apiRef.current.getLastMeasuredRowIndex();
|
|
97
101
|
let allRowsMeasured = lastMeasuredIndexRelativeToAllRows === Infinity;
|
|
@@ -359,7 +363,16 @@ export const useGridVirtualScroller = props => {
|
|
|
359
363
|
lastRowToRender,
|
|
360
364
|
visibleRows: currentPage.rows
|
|
361
365
|
});
|
|
362
|
-
const renderedColumns =
|
|
366
|
+
const renderedColumns = getRenderedColumnsRef.current(visibleColumns, firstColumnToRender, lastColumnToRender);
|
|
367
|
+
const _ref = rootProps.slotProps?.row || {},
|
|
368
|
+
{
|
|
369
|
+
style: rootRowStyle
|
|
370
|
+
} = _ref,
|
|
371
|
+
rootRowProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
372
|
+
const invalidatesCachedRowStyle = prevGetRowProps.current !== getRowProps || prevRootRowStyle.current !== rootRowStyle;
|
|
373
|
+
if (invalidatesCachedRowStyle) {
|
|
374
|
+
rowStyleCache.current = {};
|
|
375
|
+
}
|
|
363
376
|
const rows = [];
|
|
364
377
|
for (let i = 0; i < renderedRows.length; i += 1) {
|
|
365
378
|
const {
|
|
@@ -374,26 +387,27 @@ export const useGridVirtualScroller = props => {
|
|
|
374
387
|
} else {
|
|
375
388
|
isSelected = apiRef.current.isRowSelectable(id);
|
|
376
389
|
}
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
390
|
+
const focusedCell = cellFocus !== null && cellFocus.id === id ? cellFocus.field : null;
|
|
391
|
+
let tabbableCell = null;
|
|
392
|
+
if (cellTabIndex !== null && cellTabIndex.id === id) {
|
|
393
|
+
const cellParams = apiRef.current.getCellParams(id, cellTabIndex.field);
|
|
394
|
+
tabbableCell = cellParams.cellMode === 'view' ? cellTabIndex.field : null;
|
|
395
|
+
}
|
|
382
396
|
const _ref2 = typeof getRowProps === 'function' && getRowProps(id, model) || {},
|
|
383
397
|
{
|
|
384
398
|
style: rowStyle
|
|
385
399
|
} = _ref2,
|
|
386
400
|
rowProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
387
|
-
|
|
401
|
+
if (!rowStyleCache.current[id]) {
|
|
402
|
+
const style = _extends({}, rowStyle, rootRowStyle);
|
|
403
|
+
rowStyleCache.current[id] = style;
|
|
404
|
+
}
|
|
405
|
+
rows.push( /*#__PURE__*/_jsx(rootProps.slots.row, _extends({
|
|
388
406
|
row: model,
|
|
389
407
|
rowId: id,
|
|
390
408
|
rowHeight: baseRowHeight,
|
|
391
|
-
|
|
392
|
-
,
|
|
393
|
-
cellTabIndex: cellTabIndex // TODO move to inside the row
|
|
394
|
-
,
|
|
395
|
-
editRowsState: editRowsState // TODO move to inside the row
|
|
396
|
-
,
|
|
409
|
+
focusedCell: focusedCell,
|
|
410
|
+
tabbableCell: tabbableCell,
|
|
397
411
|
renderedColumns: renderedColumns,
|
|
398
412
|
visibleColumns: visibleColumns,
|
|
399
413
|
firstColumnToRender: firstColumnToRender,
|
|
@@ -404,9 +418,11 @@ export const useGridVirtualScroller = props => {
|
|
|
404
418
|
isLastVisible: lastVisibleRowIndex,
|
|
405
419
|
position: position
|
|
406
420
|
}, rowProps, rootRowProps, {
|
|
407
|
-
style:
|
|
421
|
+
style: rowStyleCache.current[id]
|
|
408
422
|
}), id));
|
|
409
423
|
}
|
|
424
|
+
prevGetRowProps.current = getRowProps;
|
|
425
|
+
prevRootRowStyle.current = rootRowStyle;
|
|
410
426
|
return rows;
|
|
411
427
|
};
|
|
412
428
|
const needsHorizontalScrollbar = containerDimensions.width && columnsTotalWidth > containerDimensions.width;
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid v6.0.0
|
|
2
|
+
* @mui/x-data-grid v6.0.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -17,6 +17,8 @@ export * from './models';
|
|
|
17
17
|
export * from './context';
|
|
18
18
|
export * from './colDef';
|
|
19
19
|
export * from './utils';
|
|
20
|
+
export { GridColumnHeaders } from './components/GridColumnHeaders';
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Reexportable components.
|
|
22
24
|
*/
|
|
@@ -24,4 +26,6 @@ export { GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENT
|
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* The full grid API.
|
|
29
|
+
* @demos
|
|
30
|
+
* - [API object](/x/react-data-grid/api-object/)
|
|
27
31
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { GridVirtualScroller } from '../components/virtualization/GridVirtualScroller';
|
|
2
2
|
export { GridVirtualScrollerContent } from '../components/virtualization/GridVirtualScrollerContent';
|
|
3
3
|
export { GridVirtualScrollerRenderZone } from '../components/virtualization/GridVirtualScrollerRenderZone';
|
|
4
|
-
export {
|
|
4
|
+
export { GridBaseColumnHeaders } from '../components/columnHeaders/GridBaseColumnHeaders';
|
|
5
5
|
export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
|
|
6
6
|
export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from '../constants/defaultGridSlotsComponents';
|
|
7
7
|
export { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
@@ -50,4 +50,5 @@ export { isNavigationKey } from '../utils/keyboardUtils';
|
|
|
50
50
|
export { clamp, isDeepEqual, isNumber, isFunction, isObject } from '../utils/utils';
|
|
51
51
|
export { buildWarning } from '../utils/warning';
|
|
52
52
|
export { exportAs } from '../utils/exportAs';
|
|
53
|
-
export { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
53
|
+
export { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
54
|
+
export * from './utils';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import { uncapitalizeObjectKeys } from './slotsMigration';
|
|
3
|
+
|
|
4
|
+
// TODO v7: Remove `components` and usages of `UncapitalizeObjectKeys` type
|
|
5
|
+
// after converting keys in Grid(Pro|Premium)SlotsComponent to camelCase.
|
|
6
|
+
// https://github.com/mui/mui-x/issues/7940
|
|
7
|
+
export function computeSlots({
|
|
8
|
+
defaultSlots,
|
|
9
|
+
slots,
|
|
10
|
+
components
|
|
11
|
+
}) {
|
|
12
|
+
const overrides = slots ?? (components ? uncapitalizeObjectKeys(components) : null);
|
|
13
|
+
if (!overrides || Object.keys(overrides).length === 0) {
|
|
14
|
+
return defaultSlots;
|
|
15
|
+
}
|
|
16
|
+
return _extends({}, defaultSlots, overrides);
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
// TODO v7: This file exist only to simplify typing between
|
|
3
|
+
// components/componentsProps and slots/slotProps
|
|
4
|
+
// Should be deleted when components/componentsProps are removed
|
|
5
|
+
|
|
6
|
+
export const uncapitalizeObjectKeys = capitalizedObject => {
|
|
7
|
+
if (capitalizedObject === undefined) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
return Object.keys(capitalizedObject).reduce((acc, key) => _extends({}, acc, {
|
|
11
|
+
[`${key.charAt(0).toLowerCase()}${key.slice(1)}`]: capitalizedObject[key]
|
|
12
|
+
}), {});
|
|
13
|
+
};
|
package/modern/locales/arSD.js
CHANGED
|
@@ -20,17 +20,15 @@ const arSDGrid = {
|
|
|
20
20
|
toolbarFiltersTooltipShow: 'اظهر المرشِحات',
|
|
21
21
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} من المرشِحات النشطة` : `مرشِح نشط`,
|
|
22
22
|
// Quick filter toolbar field
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'بحث...',
|
|
24
|
+
toolbarQuickFilterLabel: 'بحث',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'أزال',
|
|
27
26
|
// Export selector toolbar button text
|
|
28
27
|
toolbarExport: 'تصدير',
|
|
29
28
|
toolbarExportLabel: 'تصدير',
|
|
30
29
|
toolbarExportCSV: 'تنزيل كملف CSV',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
toolbarExportPrint: 'طباعة',
|
|
31
|
+
toolbarExportExcel: 'تحميل كملف الإكسل',
|
|
34
32
|
// Columns panel text
|
|
35
33
|
columnsPanelTextFieldLabel: 'البحث عن العمود',
|
|
36
34
|
columnsPanelTextFieldPlaceholder: 'عنوان العمود',
|
|
@@ -39,6 +37,7 @@ const arSDGrid = {
|
|
|
39
37
|
columnsPanelHideAllButton: 'إخفاء الكل',
|
|
40
38
|
// Filter panel text
|
|
41
39
|
filterPanelAddFilter: 'إضافة مرشِح',
|
|
40
|
+
// filterPanelRemoveAll: 'Remove all',
|
|
42
41
|
filterPanelDeleteIconLabel: 'حذف',
|
|
43
42
|
filterPanelLogicOperator: 'عامل منطقي',
|
|
44
43
|
filterPanelOperator: 'عامل',
|
|
@@ -108,20 +107,17 @@ const arSDGrid = {
|
|
|
108
107
|
groupColumn: name => `تجميع حسب ${name}`,
|
|
109
108
|
unGroupColumn: name => `إيقاف التجميع حسب ${name}`,
|
|
110
109
|
// Master/detail
|
|
111
|
-
|
|
110
|
+
detailPanelToggle: 'اظهار/اخفاء لوحة التفاصيل',
|
|
112
111
|
expandDetailPanel: 'توسيع',
|
|
113
|
-
collapseDetailPanel: 'طوي'
|
|
114
|
-
|
|
112
|
+
collapseDetailPanel: 'طوي',
|
|
115
113
|
// Row reordering text
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
rowReorderingHeaderName: 'أعادة ترتيب الصفوف',
|
|
118
115
|
// Aggregation
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'الدلالات الحسابية',
|
|
117
|
+
aggregationFunctionLabelSum: 'مجموع',
|
|
118
|
+
aggregationFunctionLabelAvg: 'معدل',
|
|
119
|
+
aggregationFunctionLabelMin: 'الحد الادنى',
|
|
120
|
+
aggregationFunctionLabelMax: 'الحد الاقصى',
|
|
121
|
+
aggregationFunctionLabelSize: 'الحجم'
|
|
125
122
|
};
|
|
126
|
-
|
|
127
123
|
export const arSD = getGridLocalization(arSDGrid, arSDCore);
|
package/modern/locales/beBY.js
CHANGED
|
@@ -51,6 +51,7 @@ const beBYGrid = {
|
|
|
51
51
|
columnsPanelHideAllButton: 'Схаваць усе',
|
|
52
52
|
// Filter panel text
|
|
53
53
|
filterPanelAddFilter: 'Дадаць фільтр',
|
|
54
|
+
// filterPanelRemoveAll: 'Remove all',
|
|
54
55
|
filterPanelDeleteIconLabel: 'Выдаліць',
|
|
55
56
|
filterPanelLogicOperator: 'Лагічныя аператары',
|
|
56
57
|
filterPanelOperator: 'Аператары',
|
package/modern/locales/bgBG.js
CHANGED
|
@@ -39,6 +39,7 @@ const bgBGGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: 'Скрий Всички',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: 'Добави Филтър',
|
|
42
|
+
// filterPanelRemoveAll: 'Remove all',
|
|
42
43
|
filterPanelDeleteIconLabel: 'Изтрий',
|
|
43
44
|
// filterPanelLogicOperator: 'Logic operator',
|
|
44
45
|
filterPanelOperator: 'Оператори',
|