@mui/x-data-grid 5.12.3 → 5.14.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 +147 -1
- package/DataGrid/DataGrid.js +4 -4
- package/DataGrid/useDataGridComponent.js +1 -1
- package/colDef/gridActionsColDef.js +2 -0
- package/colDef/gridBooleanColDef.js +3 -1
- package/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/colDef/gridDateOperators.d.ts +1 -1
- package/colDef/gridDateOperators.js +4 -2
- package/colDef/gridNumericOperators.js +4 -2
- package/colDef/gridStringColDef.d.ts +3 -0
- package/colDef/gridStringColDef.js +6 -0
- package/colDef/gridStringOperators.d.ts +1 -1
- package/colDef/gridStringOperators.js +15 -8
- package/components/GridRow.js +1 -1
- package/components/base/GridOverlays.js +4 -1
- package/components/cell/GridActionsCellItem.d.ts +2 -2
- package/components/cell/GridBooleanCell.d.ts +5 -2
- package/components/cell/GridBooleanCell.js +93 -2
- package/components/cell/GridEditDateCell.js +5 -1
- package/components/cell/index.d.ts +1 -0
- package/components/cell/index.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
- package/components/containers/GridRootStyles.js +10 -0
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +11 -4
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +3 -8
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +30 -14
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -7
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +32 -14
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +6 -3
- package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.js +20 -10
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/constants/gridClasses.d.ts +25 -1
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +8 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +2 -1
- package/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +13 -6
- package/hooks/features/dimensions/useGridDimensions.js +28 -15
- package/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/hooks/features/editRows/useGridCellEditing.old.js +6 -0
- package/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/hooks/features/editRows/useGridRowEditing.old.js +6 -0
- package/hooks/features/export/utils.d.ts +1 -1
- package/hooks/features/export/utils.js +9 -2
- package/hooks/features/filter/gridFilterUtils.js +6 -0
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +30 -5
- package/hooks/features/pagination/useGridPage.js +4 -3
- package/hooks/features/pagination/useGridPageSize.js +4 -3
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +1 -1
- package/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/hooks/features/selection/useGridSelection.js +24 -10
- package/hooks/features/sorting/gridSortingUtils.d.ts +1 -0
- package/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/sorting/useGridSorting.js +34 -6
- package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +12 -1
- package/hooks/features/statePersistence/index.d.ts +1 -1
- package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/hooks/utils/useGridApiContext.js +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridNativeEventListener.js +1 -1
- package/hooks/utils/useGridRootProps.js +1 -1
- package/index.js +1 -1
- package/internals/index.d.ts +2 -2
- package/internals/index.js +2 -2
- package/legacy/DataGrid/DataGrid.js +4 -4
- package/legacy/DataGrid/useDataGridComponent.js +1 -1
- package/legacy/colDef/gridActionsColDef.js +2 -0
- package/legacy/colDef/gridBooleanColDef.js +3 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/legacy/colDef/gridDateOperators.js +4 -2
- package/legacy/colDef/gridNumericOperators.js +4 -2
- package/legacy/colDef/gridStringColDef.js +6 -0
- package/legacy/colDef/gridStringOperators.js +17 -7
- package/legacy/components/GridRow.js +1 -1
- package/legacy/components/base/GridOverlays.js +4 -1
- package/legacy/components/cell/GridBooleanCell.js +93 -2
- package/legacy/components/cell/GridEditDateCell.js +5 -1
- package/legacy/components/cell/index.js +1 -0
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +6 -1
- package/legacy/components/containers/GridRootStyles.js +3 -3
- package/legacy/components/panel/filterPanel/GridFilterForm.js +9 -4
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +22 -7
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +24 -7
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/legacy/components/toolbar/GridToolbarExport.js +20 -10
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +8 -1
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/legacy/hooks/features/columns/useGridColumns.js +13 -8
- package/legacy/hooks/features/dimensions/useGridDimensions.js +27 -15
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +16 -8
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/legacy/hooks/features/editRows/useGridRowEditing.old.js +22 -14
- package/legacy/hooks/features/export/utils.js +9 -2
- package/legacy/hooks/features/filter/gridFilterUtils.js +6 -0
- package/legacy/hooks/features/filter/useGridFilter.js +30 -5
- package/legacy/hooks/features/pagination/useGridPage.js +4 -3
- package/legacy/hooks/features/pagination/useGridPageSize.js +4 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/legacy/hooks/features/rows/useGridRows.js +1 -1
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/legacy/hooks/features/selection/useGridSelection.js +26 -12
- package/legacy/hooks/features/sorting/gridSortingUtils.js +11 -12
- package/legacy/hooks/features/sorting/useGridSorting.js +34 -6
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +22 -12
- package/legacy/hooks/utils/useGridApiContext.js +1 -1
- package/legacy/hooks/utils/useGridNativeEventListener.js +1 -1
- package/legacy/hooks/utils/useGridRootProps.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +2 -2
- package/legacy/locales/arSD.js +7 -0
- package/legacy/locales/bgBG.js +7 -0
- package/legacy/locales/csCZ.js +7 -0
- package/legacy/locales/daDK.js +7 -0
- package/legacy/locales/deDE.js +12 -5
- package/legacy/locales/elGR.js +7 -0
- package/legacy/locales/esES.js +7 -0
- package/legacy/locales/faIR.js +7 -0
- package/legacy/locales/fiFI.js +7 -0
- package/legacy/locales/frFR.js +17 -10
- package/legacy/locales/heIL.js +8 -1
- package/legacy/locales/huHU.js +7 -0
- package/legacy/locales/index.js +4 -1
- package/legacy/locales/itIT.js +7 -0
- package/legacy/locales/jaJP.js +8 -1
- package/legacy/locales/koKR.js +7 -0
- package/legacy/locales/nbNO.js +8 -1
- package/legacy/locales/nlNL.js +21 -14
- package/legacy/locales/plPL.js +7 -0
- package/legacy/locales/ptBR.js +17 -10
- package/legacy/locales/roRO.js +135 -0
- package/legacy/locales/ruRU.js +7 -0
- package/legacy/locales/skSK.js +22 -15
- package/legacy/locales/svSE.js +8 -1
- package/legacy/locales/trTR.js +7 -0
- package/legacy/locales/ukUA.js +7 -0
- package/legacy/locales/viVN.js +7 -0
- package/legacy/locales/zhCN.js +7 -0
- package/legacy/locales/zhTW.js +135 -0
- package/legacy/models/events/gridEvents.js +1 -0
- package/legacy/utils/keyboardUtils.js +4 -3
- package/locales/arSD.js +7 -0
- package/locales/bgBG.js +7 -0
- package/locales/csCZ.js +7 -0
- package/locales/daDK.js +7 -0
- package/locales/deDE.js +12 -5
- package/locales/elGR.js +7 -0
- package/locales/esES.js +7 -0
- package/locales/faIR.js +7 -0
- package/locales/fiFI.js +7 -0
- package/locales/frFR.js +17 -10
- package/locales/heIL.js +8 -1
- package/locales/huHU.js +7 -0
- package/locales/index.d.ts +3 -0
- package/locales/index.js +4 -1
- package/locales/itIT.js +7 -0
- package/locales/jaJP.js +8 -1
- package/locales/koKR.js +7 -0
- package/locales/nbNO.js +8 -1
- package/locales/nlNL.js +21 -14
- package/locales/plPL.js +7 -0
- package/locales/ptBR.js +17 -10
- package/locales/roRO.d.ts +2 -0
- package/locales/roRO.js +123 -0
- package/locales/ruRU.js +7 -0
- package/locales/skSK.js +22 -15
- package/locales/svSE.js +8 -1
- package/locales/trTR.js +7 -0
- package/locales/ukUA.js +7 -0
- package/locales/viVN.js +7 -0
- package/locales/zhCN.js +7 -0
- package/locales/zhTW.d.ts +2 -0
- package/locales/zhTW.js +123 -0
- package/models/api/gridColumnSpanning.d.ts +2 -0
- package/models/api/gridLocaleTextApi.d.ts +8 -2
- package/models/api/gridSelectionApi.d.ts +6 -0
- package/models/events/gridEvents.d.ts +1 -0
- package/models/events/gridEvents.js +1 -0
- package/models/gridFilterOperator.d.ts +6 -0
- package/models/gridRows.d.ts +10 -1
- package/models/params/gridCellParams.d.ts +4 -4
- package/modern/DataGrid/DataGrid.js +4 -4
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/colDef/gridActionsColDef.js +2 -0
- package/modern/colDef/gridBooleanColDef.js +3 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/modern/colDef/gridDateOperators.js +4 -2
- package/modern/colDef/gridNumericOperators.js +4 -2
- package/modern/colDef/gridStringColDef.js +6 -0
- package/modern/colDef/gridStringOperators.js +15 -8
- package/modern/components/GridRow.js +1 -1
- package/modern/components/base/GridOverlays.js +4 -1
- package/modern/components/cell/GridBooleanCell.js +93 -2
- package/modern/components/cell/GridEditDateCell.js +5 -1
- package/modern/components/cell/index.js +1 -0
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
- package/modern/components/containers/GridRootStyles.js +10 -0
- package/modern/components/panel/filterPanel/GridFilterForm.js +11 -4
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -8
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +22 -8
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/modern/components/toolbar/GridToolbarExport.js +20 -10
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +8 -1
- package/modern/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/modern/hooks/features/columns/useGridColumns.js +10 -5
- package/modern/hooks/features/dimensions/useGridDimensions.js +28 -15
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +6 -0
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/modern/hooks/features/editRows/useGridRowEditing.old.js +6 -0
- package/modern/hooks/features/export/utils.js +5 -2
- package/modern/hooks/features/filter/gridFilterUtils.js +6 -0
- package/modern/hooks/features/filter/useGridFilter.js +25 -4
- package/modern/hooks/features/pagination/useGridPage.js +4 -3
- package/modern/hooks/features/pagination/useGridPageSize.js +4 -3
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +8 -4
- package/modern/hooks/features/rows/useGridRows.js +1 -1
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/modern/hooks/features/selection/useGridSelection.js +22 -10
- package/modern/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/modern/hooks/features/sorting/useGridSorting.js +30 -6
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +13 -7
- package/modern/hooks/utils/useGridApiContext.js +1 -1
- package/modern/hooks/utils/useGridNativeEventListener.js +1 -1
- package/modern/hooks/utils/useGridRootProps.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +2 -2
- package/modern/locales/arSD.js +7 -0
- package/modern/locales/bgBG.js +7 -0
- package/modern/locales/csCZ.js +7 -0
- package/modern/locales/daDK.js +7 -0
- package/modern/locales/deDE.js +12 -5
- package/modern/locales/elGR.js +7 -0
- package/modern/locales/esES.js +7 -0
- package/modern/locales/faIR.js +7 -0
- package/modern/locales/fiFI.js +7 -0
- package/modern/locales/frFR.js +17 -10
- package/modern/locales/heIL.js +8 -1
- package/modern/locales/huHU.js +7 -0
- package/modern/locales/index.js +4 -1
- package/modern/locales/itIT.js +7 -0
- package/modern/locales/jaJP.js +8 -1
- package/modern/locales/koKR.js +7 -0
- package/modern/locales/nbNO.js +8 -1
- package/modern/locales/nlNL.js +21 -14
- package/modern/locales/plPL.js +7 -0
- package/modern/locales/ptBR.js +17 -10
- package/modern/locales/roRO.js +123 -0
- package/modern/locales/ruRU.js +7 -0
- package/modern/locales/skSK.js +22 -15
- package/modern/locales/svSE.js +8 -1
- package/modern/locales/trTR.js +7 -0
- package/modern/locales/ukUA.js +7 -0
- package/modern/locales/viVN.js +7 -0
- package/modern/locales/zhCN.js +7 -0
- package/modern/locales/zhTW.js +123 -0
- package/modern/models/events/gridEvents.js +1 -0
- package/modern/utils/keyboardUtils.js +4 -3
- package/node/DataGrid/DataGrid.js +4 -4
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/colDef/gridActionsColDef.js +2 -0
- package/node/colDef/gridBooleanColDef.js +3 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/node/colDef/gridDateOperators.js +4 -2
- package/node/colDef/gridNumericOperators.js +4 -2
- package/node/colDef/gridStringColDef.js +5 -0
- package/node/colDef/gridStringOperators.js +15 -8
- package/node/components/GridRow.js +1 -1
- package/node/components/base/GridOverlays.js +4 -1
- package/node/components/cell/GridBooleanCell.js +93 -2
- package/node/components/cell/GridEditDateCell.js +7 -1
- package/node/components/cell/index.js +13 -0
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
- package/node/components/containers/GridRootStyles.js +10 -0
- package/node/components/panel/filterPanel/GridFilterForm.js +9 -4
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +31 -15
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +33 -15
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/node/components/toolbar/GridToolbarExport.js +16 -10
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +8 -1
- package/node/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/node/hooks/features/columns/useGridColumns.js +13 -6
- package/node/hooks/features/dimensions/useGridDimensions.js +28 -15
- package/node/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/node/hooks/features/editRows/useGridCellEditing.old.js +6 -0
- package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/node/hooks/features/editRows/useGridRowEditing.old.js +6 -0
- package/node/hooks/features/export/utils.js +10 -2
- package/node/hooks/features/filter/gridFilterUtils.js +7 -0
- package/node/hooks/features/filter/useGridFilter.js +30 -5
- package/node/hooks/features/pagination/useGridPage.js +4 -3
- package/node/hooks/features/pagination/useGridPageSize.js +4 -3
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/node/hooks/features/rows/useGridRows.js +1 -1
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/node/hooks/features/selection/useGridSelection.js +24 -10
- package/node/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/node/hooks/features/sorting/useGridSorting.js +34 -6
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/node/hooks/utils/useGridApiContext.js +1 -1
- package/node/hooks/utils/useGridNativeEventListener.js +1 -1
- package/node/hooks/utils/useGridRootProps.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +18 -0
- package/node/locales/arSD.js +7 -0
- package/node/locales/bgBG.js +7 -0
- package/node/locales/csCZ.js +7 -0
- package/node/locales/daDK.js +7 -0
- package/node/locales/deDE.js +12 -5
- package/node/locales/elGR.js +7 -0
- package/node/locales/esES.js +7 -0
- package/node/locales/faIR.js +7 -0
- package/node/locales/fiFI.js +7 -0
- package/node/locales/frFR.js +17 -10
- package/node/locales/heIL.js +8 -1
- package/node/locales/huHU.js +7 -0
- package/node/locales/index.js +39 -0
- package/node/locales/itIT.js +7 -0
- package/node/locales/jaJP.js +8 -1
- package/node/locales/koKR.js +7 -0
- package/node/locales/nbNO.js +8 -1
- package/node/locales/nlNL.js +21 -14
- package/node/locales/plPL.js +7 -0
- package/node/locales/ptBR.js +17 -10
- package/node/locales/roRO.js +133 -0
- package/node/locales/ruRU.js +7 -0
- package/node/locales/skSK.js +22 -15
- package/node/locales/svSE.js +8 -1
- package/node/locales/trTR.js +7 -0
- package/node/locales/ukUA.js +7 -0
- package/node/locales/viVN.js +7 -0
- package/node/locales/zhCN.js +7 -0
- package/node/locales/zhTW.js +133 -0
- package/node/models/events/gridEvents.js +1 -0
- package/node/utils/keyboardUtils.js +4 -3
- package/package.json +3 -3
- package/utils/getGridLocalization.d.ts +1 -1
- package/utils/keyboardUtils.js +4 -3
package/locales/roRO.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { roRO as roROCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const roROGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Lipsă date',
|
|
6
|
+
noResultsOverlayLabel: 'Nu au fost găsite rezultate.',
|
|
7
|
+
errorOverlayDefaultLabel: 'A apărut o eroare neașteptată.',
|
|
8
|
+
// Density selector toolbar button text
|
|
9
|
+
toolbarDensity: 'Înălțime rând',
|
|
10
|
+
toolbarDensityLabel: 'Înălțime rând',
|
|
11
|
+
toolbarDensityCompact: 'Compact',
|
|
12
|
+
toolbarDensityStandard: 'Standard',
|
|
13
|
+
toolbarDensityComfortable: 'Lat',
|
|
14
|
+
// Columns selector toolbar button text
|
|
15
|
+
toolbarColumns: 'Coloane',
|
|
16
|
+
toolbarColumnsLabel: 'Afișează selecție coloane',
|
|
17
|
+
// Filters toolbar button text
|
|
18
|
+
toolbarFilters: 'Filtru',
|
|
19
|
+
toolbarFiltersLabel: 'Afișează filtru',
|
|
20
|
+
toolbarFiltersTooltipHide: 'Ascunde filtru',
|
|
21
|
+
toolbarFiltersTooltipShow: 'Afișează filtru',
|
|
22
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
|
|
23
|
+
// Quick filter toolbar field
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Căutare...',
|
|
25
|
+
toolbarQuickFilterLabel: 'Căutare',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Ștergere',
|
|
27
|
+
// Export selector toolbar button text
|
|
28
|
+
toolbarExport: 'Export',
|
|
29
|
+
toolbarExportLabel: 'Export',
|
|
30
|
+
toolbarExportCSV: 'Download în format CSV',
|
|
31
|
+
toolbarExportPrint: 'Printare',
|
|
32
|
+
toolbarExportExcel: 'Download în format Excel',
|
|
33
|
+
// Columns panel text
|
|
34
|
+
columnsPanelTextFieldLabel: 'Găsește coloana',
|
|
35
|
+
columnsPanelTextFieldPlaceholder: 'Titlu coloană',
|
|
36
|
+
columnsPanelDragIconLabel: 'Resortare coloană',
|
|
37
|
+
columnsPanelShowAllButton: 'Afișează tot',
|
|
38
|
+
columnsPanelHideAllButton: 'Ascunde tot',
|
|
39
|
+
// Filter panel text
|
|
40
|
+
filterPanelAddFilter: 'Adăugare filtru',
|
|
41
|
+
filterPanelDeleteIconLabel: 'Ștergere',
|
|
42
|
+
filterPanelLinkOperator: 'Operatori logici',
|
|
43
|
+
filterPanelOperators: 'Operatori',
|
|
44
|
+
// TODO v6: rename to filterPanelOperator
|
|
45
|
+
filterPanelOperatorAnd: 'Și',
|
|
46
|
+
filterPanelOperatorOr: 'Sau',
|
|
47
|
+
filterPanelColumns: 'Coloane',
|
|
48
|
+
filterPanelInputLabel: 'Valoare',
|
|
49
|
+
filterPanelInputPlaceholder: 'Filtrare valoare',
|
|
50
|
+
// Filter operators text
|
|
51
|
+
filterOperatorContains: 'conține',
|
|
52
|
+
filterOperatorEquals: 'este egal cu',
|
|
53
|
+
filterOperatorStartsWith: 'începe cu',
|
|
54
|
+
filterOperatorEndsWith: 'se termină cu',
|
|
55
|
+
filterOperatorIs: 'este',
|
|
56
|
+
filterOperatorNot: 'nu este',
|
|
57
|
+
filterOperatorAfter: 'este după',
|
|
58
|
+
filterOperatorOnOrAfter: 'este la sau după',
|
|
59
|
+
filterOperatorBefore: 'este înainte de',
|
|
60
|
+
filterOperatorOnOrBefore: 'este la sau înainte de',
|
|
61
|
+
filterOperatorIsEmpty: 'este gol',
|
|
62
|
+
filterOperatorIsNotEmpty: 'nu este gol',
|
|
63
|
+
filterOperatorIsAnyOf: 'este una din valori',
|
|
64
|
+
// Filter values text
|
|
65
|
+
filterValueAny: 'Aleatoriu',
|
|
66
|
+
filterValueTrue: 'Da',
|
|
67
|
+
filterValueFalse: 'Nu',
|
|
68
|
+
// Column menu text
|
|
69
|
+
columnMenuLabel: 'Meniu',
|
|
70
|
+
columnMenuShowColumns: 'Afișează toate coloanele',
|
|
71
|
+
columnMenuFilter: 'Filtru',
|
|
72
|
+
columnMenuHideColumn: 'Ascunde',
|
|
73
|
+
columnMenuUnsort: 'Dezactivare sortare',
|
|
74
|
+
columnMenuSortAsc: 'Sortează crescător',
|
|
75
|
+
columnMenuSortDesc: 'Sortează descrescător',
|
|
76
|
+
// Column header text
|
|
77
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
|
|
78
|
+
columnHeaderFiltersLabel: 'Afișează filtru',
|
|
79
|
+
columnHeaderSortIconLabel: 'Sortare',
|
|
80
|
+
// Rows selected footer text
|
|
81
|
+
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} Înregistrări selectate` : `${count.toLocaleString()} Înregistrare selectată`,
|
|
82
|
+
// Total row amount footer text
|
|
83
|
+
footerTotalRows: 'Total:',
|
|
84
|
+
// Total visible row amount footer text
|
|
85
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} din ${totalCount.toLocaleString()}`,
|
|
86
|
+
// Checkbox selection text
|
|
87
|
+
checkboxSelectionHeaderName: 'Checkbox Selecție',
|
|
88
|
+
checkboxSelectionSelectAllRows: 'Selectare toate rândurile',
|
|
89
|
+
checkboxSelectionUnselectAllRows: 'Deselectare toate rândurile',
|
|
90
|
+
checkboxSelectionSelectRow: 'Selectare rând',
|
|
91
|
+
checkboxSelectionUnselectRow: 'Deselectare rând',
|
|
92
|
+
// Boolean cell text
|
|
93
|
+
booleanCellTrueLabel: 'Da',
|
|
94
|
+
booleanCellFalseLabel: 'Nu',
|
|
95
|
+
// Actions cell more text
|
|
96
|
+
actionsCellMore: 'Mai multe',
|
|
97
|
+
// Column pinning text
|
|
98
|
+
pinToLeft: 'Fixare în stânga',
|
|
99
|
+
pinToRight: 'Fixare în dreapta',
|
|
100
|
+
unpin: 'Anulare fixare',
|
|
101
|
+
// Tree Data
|
|
102
|
+
treeDataGroupingHeaderName: 'Grup',
|
|
103
|
+
treeDataExpand: 'Afișare copii',
|
|
104
|
+
treeDataCollapse: 'Ascundere copii',
|
|
105
|
+
// Grouping columns
|
|
106
|
+
groupingColumnHeaderName: 'Grupare',
|
|
107
|
+
groupColumn: name => `Grupare după ${name}`,
|
|
108
|
+
unGroupColumn: name => `Anulare Grupare după ${name}`,
|
|
109
|
+
// Master/detail
|
|
110
|
+
detailPanelToggle: 'Comutare panou detalii',
|
|
111
|
+
expandDetailPanel: 'Extindere',
|
|
112
|
+
collapseDetailPanel: 'Restrângere',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
rowReorderingHeaderName: 'Reordonare rânduri' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
122
|
+
};
|
|
123
|
+
export const roRO = getGridLocalization(roROGrid, roROCore);
|
package/locales/ruRU.js
CHANGED
|
@@ -144,6 +144,13 @@ const ruRUGrid = {
|
|
|
144
144
|
expandDetailPanel: 'Развернуть',
|
|
145
145
|
collapseDetailPanel: 'Свернуть' // Row reordering text
|
|
146
146
|
// rowReorderingHeaderName: 'Row reordering',
|
|
147
|
+
// Aggregation
|
|
148
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
149
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
150
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
151
|
+
// aggregationFunctionLabelMin: 'min',
|
|
152
|
+
// aggregationFunctionLabelMax: 'max',
|
|
153
|
+
// aggregationFunctionLabelSize: 'size',
|
|
147
154
|
|
|
148
155
|
};
|
|
149
156
|
export const ruRU = getGridLocalization(ruRUGrid, ruRUCore);
|
package/locales/skSK.js
CHANGED
|
@@ -31,15 +31,15 @@ const skSKGrid = {
|
|
|
31
31
|
return `${count} ${pluralForm}`;
|
|
32
32
|
},
|
|
33
33
|
// Quick filter toolbar field
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
toolbarQuickFilterPlaceholder: 'Vyhľadať...',
|
|
35
|
+
toolbarQuickFilterLabel: 'Vyhľadať',
|
|
36
|
+
toolbarQuickFilterDeleteIconLabel: 'Vymazať',
|
|
37
37
|
// Export selector toolbar button text
|
|
38
38
|
toolbarExport: 'Export',
|
|
39
39
|
toolbarExportLabel: 'Export',
|
|
40
40
|
toolbarExportCSV: 'Stiahnuť ako CSV',
|
|
41
41
|
toolbarExportPrint: 'Vytlačiť',
|
|
42
|
-
|
|
42
|
+
toolbarExportExcel: 'Stiahnuť ako Excel',
|
|
43
43
|
// Columns panel text
|
|
44
44
|
columnsPanelTextFieldLabel: 'Nájsť stĺpec',
|
|
45
45
|
columnsPanelTextFieldPlaceholder: 'Názov stĺpca',
|
|
@@ -49,7 +49,7 @@ const skSKGrid = {
|
|
|
49
49
|
// Filter panel text
|
|
50
50
|
filterPanelAddFilter: 'Pridať filter',
|
|
51
51
|
filterPanelDeleteIconLabel: 'Odstrániť',
|
|
52
|
-
|
|
52
|
+
filterPanelLinkOperator: 'Logický operátor',
|
|
53
53
|
filterPanelOperators: 'Operátory',
|
|
54
54
|
// TODO v6: rename to filterPanelOperator
|
|
55
55
|
filterPanelOperatorAnd: 'A',
|
|
@@ -70,7 +70,7 @@ const skSKGrid = {
|
|
|
70
70
|
filterOperatorOnOrBefore: 'je na alebo skôr',
|
|
71
71
|
filterOperatorIsEmpty: 'je prázdny',
|
|
72
72
|
filterOperatorIsNotEmpty: 'nie je prázdny',
|
|
73
|
-
|
|
73
|
+
filterOperatorIsAnyOf: 'je jeden z',
|
|
74
74
|
// Filter values text
|
|
75
75
|
filterValueAny: 'akýkoľvek',
|
|
76
76
|
filterValueTrue: 'áno',
|
|
@@ -120,10 +120,10 @@ const skSKGrid = {
|
|
|
120
120
|
},
|
|
121
121
|
// Checkbox selection text
|
|
122
122
|
checkboxSelectionHeaderName: 'Výber riadku',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
checkboxSelectionSelectAllRows: 'Vybrať všetky riadky',
|
|
124
|
+
checkboxSelectionUnselectAllRows: 'Zrušiť výber všetkých riadkov',
|
|
125
|
+
checkboxSelectionSelectRow: 'Vyber riadok',
|
|
126
|
+
checkboxSelectionUnselectRow: 'Zruš výber riadku',
|
|
127
127
|
// Boolean cell text
|
|
128
128
|
booleanCellTrueLabel: 'áno',
|
|
129
129
|
booleanCellFalseLabel: 'nie',
|
|
@@ -140,12 +140,19 @@ const skSKGrid = {
|
|
|
140
140
|
// Grouping columns
|
|
141
141
|
groupingColumnHeaderName: 'Skupina',
|
|
142
142
|
groupColumn: name => `Zoskupiť podľa ${name}`,
|
|
143
|
-
unGroupColumn: name => `Prestať zoskupovať podľa ${name}
|
|
144
|
-
//
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
unGroupColumn: name => `Prestať zoskupovať podľa ${name}`,
|
|
144
|
+
// Master/detail
|
|
145
|
+
detailPanelToggle: 'Prepnúť detail panelu',
|
|
146
|
+
expandDetailPanel: 'Rozbaliť',
|
|
147
|
+
collapseDetailPanel: 'Zbaliť',
|
|
147
148
|
// Row reordering text
|
|
148
|
-
|
|
149
|
+
rowReorderingHeaderName: 'Preusporiadávanie riadkov' // Aggregation
|
|
150
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
151
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
152
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
153
|
+
// aggregationFunctionLabelMin: 'min',
|
|
154
|
+
// aggregationFunctionLabelMax: 'max',
|
|
155
|
+
// aggregationFunctionLabelSize: 'size',
|
|
149
156
|
|
|
150
157
|
};
|
|
151
158
|
export const skSK = getGridLocalization(skSKGrid, skSKCore);
|
package/locales/svSE.js
CHANGED
|
@@ -111,6 +111,13 @@ const svSEGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Expandera',
|
|
112
112
|
collapseDetailPanel: 'Kollapsa',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: 'Ordna om rader'
|
|
114
|
+
rowReorderingHeaderName: 'Ordna om rader' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
115
122
|
};
|
|
116
123
|
export const svSE = getGridLocalization(svSEGrid, svSECore);
|
package/locales/trTR.js
CHANGED
|
@@ -111,6 +111,13 @@ const trTRGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Genişlet',
|
|
112
112
|
collapseDetailPanel: 'Gizle' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const trTR = getGridLocalization(trTRGrid, trTRCore);
|
package/locales/ukUA.js
CHANGED
|
@@ -137,6 +137,13 @@ const ukUAGrid = {
|
|
|
137
137
|
// collapseDetailPanel: 'Collapse',
|
|
138
138
|
// Row reordering text
|
|
139
139
|
// rowReorderingHeaderName: 'Row reordering',
|
|
140
|
+
// Aggregation
|
|
141
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
142
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
143
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
144
|
+
// aggregationFunctionLabelMin: 'min',
|
|
145
|
+
// aggregationFunctionLabelMax: 'max',
|
|
146
|
+
// aggregationFunctionLabelSize: 'size',
|
|
140
147
|
|
|
141
148
|
};
|
|
142
149
|
export const ukUA = getGridLocalization(ukUAGrid, ukUACore);
|
package/locales/viVN.js
CHANGED
|
@@ -111,6 +111,13 @@ const viVNGrid = {
|
|
|
111
111
|
// collapseDetailPanel: 'Collapse',
|
|
112
112
|
// Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const viVN = getGridLocalization(viVNGrid, viVNCore);
|
package/locales/zhCN.js
CHANGED
|
@@ -111,6 +111,13 @@ const zhCNGrid = {
|
|
|
111
111
|
// collapseDetailPanel: 'Collapse',
|
|
112
112
|
// Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const zhCN = getGridLocalization(zhCNGrid, zhCNCore);
|
package/locales/zhTW.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { zhTW as zhTWCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const zhTWGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: '沒有資料',
|
|
6
|
+
noResultsOverlayLabel: '沒有結果',
|
|
7
|
+
errorOverlayDefaultLabel: '發生錯誤',
|
|
8
|
+
// Density selector toolbar button text
|
|
9
|
+
toolbarDensity: '表格密度',
|
|
10
|
+
toolbarDensityLabel: '表格密度',
|
|
11
|
+
toolbarDensityCompact: '緊湊',
|
|
12
|
+
toolbarDensityStandard: '標準',
|
|
13
|
+
toolbarDensityComfortable: '舒適',
|
|
14
|
+
// Columns selector toolbar button text
|
|
15
|
+
toolbarColumns: '欄位',
|
|
16
|
+
toolbarColumnsLabel: '選擇欄位',
|
|
17
|
+
// Filters toolbar button text
|
|
18
|
+
toolbarFilters: '篩選器',
|
|
19
|
+
toolbarFiltersLabel: '顯示篩選器',
|
|
20
|
+
toolbarFiltersTooltipHide: '隱藏篩選器',
|
|
21
|
+
toolbarFiltersTooltipShow: '顯示篩選器',
|
|
22
|
+
toolbarFiltersTooltipActive: count => `${count} 個篩選器`,
|
|
23
|
+
// Quick filter toolbar field
|
|
24
|
+
toolbarQuickFilterPlaceholder: '搜尋...',
|
|
25
|
+
toolbarQuickFilterLabel: '搜尋',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
27
|
+
// Export selector toolbar button text
|
|
28
|
+
toolbarExport: '匯出',
|
|
29
|
+
toolbarExportLabel: '匯出',
|
|
30
|
+
toolbarExportCSV: '匯出 CSV',
|
|
31
|
+
toolbarExportPrint: '列印',
|
|
32
|
+
toolbarExportExcel: '匯出 Excel',
|
|
33
|
+
// Columns panel text
|
|
34
|
+
columnsPanelTextFieldLabel: '欄位搜尋',
|
|
35
|
+
columnsPanelTextFieldPlaceholder: '欄位名稱',
|
|
36
|
+
columnsPanelDragIconLabel: '排序欄位',
|
|
37
|
+
columnsPanelShowAllButton: '顯示所有',
|
|
38
|
+
columnsPanelHideAllButton: '隱藏所有',
|
|
39
|
+
// Filter panel text
|
|
40
|
+
filterPanelAddFilter: '增加篩選器',
|
|
41
|
+
filterPanelDeleteIconLabel: '刪除',
|
|
42
|
+
filterPanelLinkOperator: '邏輯運算子',
|
|
43
|
+
filterPanelOperators: '運算子',
|
|
44
|
+
// TODO v6: rename to filterPanelOperator
|
|
45
|
+
filterPanelOperatorAnd: '且',
|
|
46
|
+
filterPanelOperatorOr: '或',
|
|
47
|
+
filterPanelColumns: '欄位',
|
|
48
|
+
filterPanelInputLabel: '值',
|
|
49
|
+
filterPanelInputPlaceholder: '篩選值',
|
|
50
|
+
// Filter operators text
|
|
51
|
+
filterOperatorContains: '包含',
|
|
52
|
+
filterOperatorEquals: '等於',
|
|
53
|
+
filterOperatorStartsWith: '以...開頭',
|
|
54
|
+
filterOperatorEndsWith: '以...結束',
|
|
55
|
+
filterOperatorIs: '為',
|
|
56
|
+
filterOperatorNot: '不為',
|
|
57
|
+
filterOperatorAfter: '...之後',
|
|
58
|
+
filterOperatorOnOrAfter: '...(含)之後',
|
|
59
|
+
filterOperatorBefore: '...之前',
|
|
60
|
+
filterOperatorOnOrBefore: '...(含)之前',
|
|
61
|
+
filterOperatorIsEmpty: '為空',
|
|
62
|
+
filterOperatorIsNotEmpty: '不為空',
|
|
63
|
+
filterOperatorIsAnyOf: '是其中之一',
|
|
64
|
+
// Filter values text
|
|
65
|
+
filterValueAny: '任何值',
|
|
66
|
+
filterValueTrue: '真',
|
|
67
|
+
filterValueFalse: '假',
|
|
68
|
+
// Column menu text
|
|
69
|
+
columnMenuLabel: '選單',
|
|
70
|
+
columnMenuShowColumns: '顯示欄位',
|
|
71
|
+
columnMenuFilter: '篩選器',
|
|
72
|
+
columnMenuHideColumn: '隱藏',
|
|
73
|
+
columnMenuUnsort: '預設排序',
|
|
74
|
+
columnMenuSortAsc: '升序',
|
|
75
|
+
columnMenuSortDesc: '降序',
|
|
76
|
+
// Column header text
|
|
77
|
+
columnHeaderFiltersTooltipActive: count => `${count} 個篩選器`,
|
|
78
|
+
columnHeaderFiltersLabel: '顯示篩選器',
|
|
79
|
+
columnHeaderSortIconLabel: '排序',
|
|
80
|
+
// Rows selected footer text
|
|
81
|
+
footerRowSelected: count => `已選取 ${count.toLocaleString()} 個`,
|
|
82
|
+
// Total row amount footer text
|
|
83
|
+
footerTotalRows: '總數:',
|
|
84
|
+
// Total visible row amount footer text
|
|
85
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
|
|
86
|
+
// Checkbox selection text
|
|
87
|
+
checkboxSelectionHeaderName: '核取方塊',
|
|
88
|
+
checkboxSelectionSelectAllRows: '全選',
|
|
89
|
+
checkboxSelectionUnselectAllRows: '取消全選',
|
|
90
|
+
checkboxSelectionSelectRow: '選取',
|
|
91
|
+
checkboxSelectionUnselectRow: '取消選取',
|
|
92
|
+
// Boolean cell text
|
|
93
|
+
booleanCellTrueLabel: '真',
|
|
94
|
+
booleanCellFalseLabel: '假',
|
|
95
|
+
// Actions cell more text
|
|
96
|
+
actionsCellMore: '查看更多',
|
|
97
|
+
// Column pinning text
|
|
98
|
+
pinToLeft: '釘選在左側',
|
|
99
|
+
pinToRight: '釘選在右側',
|
|
100
|
+
unpin: '取消釘選',
|
|
101
|
+
// Tree Data
|
|
102
|
+
treeDataGroupingHeaderName: '群組',
|
|
103
|
+
treeDataExpand: '查看子項目',
|
|
104
|
+
treeDataCollapse: '隱藏子項目',
|
|
105
|
+
// Grouping columns
|
|
106
|
+
groupingColumnHeaderName: '群組',
|
|
107
|
+
groupColumn: name => `以 ${name} 分組`,
|
|
108
|
+
unGroupColumn: name => `取消以 ${name} 分組`,
|
|
109
|
+
// Master/detail
|
|
110
|
+
detailPanelToggle: '切換顯示詳細資訊',
|
|
111
|
+
expandDetailPanel: '展開',
|
|
112
|
+
collapseDetailPanel: '摺疊',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
rowReorderingHeaderName: '排序' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
122
|
+
};
|
|
123
|
+
export const zhTW = getGridLocalization(zhTWGrid, zhTWCore);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GridStateColDef } from '../colDef';
|
|
1
2
|
import { GridColumnIndex, GridCellColSpanInfo } from '../gridColumnSpanning';
|
|
2
3
|
import { GridRowId } from '../gridRows';
|
|
3
4
|
/**
|
|
@@ -24,5 +25,6 @@ export interface GridColumnSpanningApi {
|
|
|
24
25
|
rowId: GridRowId;
|
|
25
26
|
minFirstColumn: number;
|
|
26
27
|
maxLastColumn: number;
|
|
28
|
+
columns: GridStateColDef[];
|
|
27
29
|
}) => void;
|
|
28
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ComponentsPropsList } from '@mui/material/styles';
|
|
3
3
|
/**
|
|
4
4
|
* Set the types of the texts in the grid.
|
|
@@ -90,8 +90,14 @@ export interface GridLocaleText {
|
|
|
90
90
|
detailPanelToggle: string;
|
|
91
91
|
expandDetailPanel: string;
|
|
92
92
|
collapseDetailPanel: string;
|
|
93
|
-
MuiTablePagination: Omit<ComponentsPropsList['MuiTablePagination'], 'page' | 'count' | 'onChangePage' | 'rowsPerPage' | 'onPageChange'>;
|
|
94
93
|
rowReorderingHeaderName: string;
|
|
94
|
+
aggregationMenuItemHeader: string;
|
|
95
|
+
aggregationFunctionLabelSum: string;
|
|
96
|
+
aggregationFunctionLabelAvg: string;
|
|
97
|
+
aggregationFunctionLabelMin: string;
|
|
98
|
+
aggregationFunctionLabelMax: string;
|
|
99
|
+
aggregationFunctionLabelSize: string;
|
|
100
|
+
MuiTablePagination: Omit<ComponentsPropsList['MuiTablePagination'], 'page' | 'count' | 'onChangePage' | 'rowsPerPage' | 'onPageChange'>;
|
|
95
101
|
}
|
|
96
102
|
export declare type GridTranslationKeys = keyof GridLocaleText;
|
|
97
103
|
/**
|
|
@@ -35,6 +35,12 @@ export interface GridSelectionApi {
|
|
|
35
35
|
* @returns {boolean} A boolean indicating if the row is selected.
|
|
36
36
|
*/
|
|
37
37
|
isRowSelected: (id: GridRowId) => boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Determines if a row can be selected or not.
|
|
40
|
+
* @param {GridRowId} id The id of the row.
|
|
41
|
+
* @returns {boolean} A boolean indicating if the row can be selected.
|
|
42
|
+
*/
|
|
43
|
+
isRowSelectable: (id: GridRowId) => boolean;
|
|
38
44
|
/**
|
|
39
45
|
* Returns an array of the selected rows.
|
|
40
46
|
* @returns {Map<GridRowId, GridRowModel>} A `Map` with the selected rows.
|
|
@@ -53,6 +53,7 @@ declare enum GridEvents {
|
|
|
53
53
|
pageChange = "pageChange",
|
|
54
54
|
pageSizeChange = "pageSizeChange",
|
|
55
55
|
rowGroupingModelChange = "rowGroupingModelChange",
|
|
56
|
+
aggregationModelChange = "aggregationModelChange",
|
|
56
57
|
rowsScroll = "rowsScroll",
|
|
57
58
|
rowsScrollEnd = "rowsScrollEnd",
|
|
58
59
|
columnSeparatorMouseDown = "columnSeparatorMouseDown",
|
|
@@ -54,6 +54,7 @@ var GridEvents;
|
|
|
54
54
|
GridEvents["pageChange"] = "pageChange";
|
|
55
55
|
GridEvents["pageSizeChange"] = "pageSizeChange";
|
|
56
56
|
GridEvents["rowGroupingModelChange"] = "rowGroupingModelChange";
|
|
57
|
+
GridEvents["aggregationModelChange"] = "aggregationModelChange";
|
|
57
58
|
GridEvents["rowsScroll"] = "rowsScroll";
|
|
58
59
|
GridEvents["rowsScrollEnd"] = "rowsScrollEnd";
|
|
59
60
|
GridEvents["columnSeparatorMouseDown"] = "columnSeparatorMouseDown";
|
|
@@ -35,4 +35,10 @@ export interface GridFilterOperator<R extends GridValidRowModel = any, V = any,
|
|
|
35
35
|
* The props to pass to the input component in the filter panel for this filter operator.
|
|
36
36
|
*/
|
|
37
37
|
InputComponentProps?: Record<string, any>;
|
|
38
|
+
/**
|
|
39
|
+
* If `false`, filter operator doesn't require user-entered value to work.
|
|
40
|
+
* Usually should be set to `false` for filter operators that don't have `InputComponent` (for example `isEmpty`)
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
requiresFilterValue?: boolean;
|
|
38
44
|
}
|
package/models/gridRows.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ export interface GridRowTreeNodeConfig {
|
|
|
25
25
|
* @default []
|
|
26
26
|
*/
|
|
27
27
|
children?: GridRowId[];
|
|
28
|
+
/**
|
|
29
|
+
* The id of the footer
|
|
30
|
+
*/
|
|
31
|
+
footerId?: GridRowId | null;
|
|
28
32
|
/**
|
|
29
33
|
* The row id of the parent (null if this row is a top level row).
|
|
30
34
|
*/
|
|
@@ -41,7 +45,7 @@ export interface GridRowTreeNodeConfig {
|
|
|
41
45
|
/**
|
|
42
46
|
* The key used to group the children of this row.
|
|
43
47
|
*/
|
|
44
|
-
groupingKey: GridKeyValue;
|
|
48
|
+
groupingKey: GridKeyValue | null;
|
|
45
49
|
/**
|
|
46
50
|
* The field used to group the children of this row.
|
|
47
51
|
* Is `null` if no field has been used to group the children of this row.
|
|
@@ -52,6 +56,11 @@ export interface GridRowTreeNodeConfig {
|
|
|
52
56
|
* @default false
|
|
53
57
|
*/
|
|
54
58
|
isAutoGenerated?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Position of the row among its sibling.
|
|
61
|
+
* @default 'body'
|
|
62
|
+
*/
|
|
63
|
+
position?: 'body' | 'footer';
|
|
55
64
|
}
|
|
56
65
|
/**
|
|
57
66
|
* The grid rows total height and row positions.
|
|
@@ -142,7 +142,7 @@ export interface GridValueFormatterParams<V = any> {
|
|
|
142
142
|
/**
|
|
143
143
|
* Object passed as parameter in the column [[GridColDef]] edit cell props change callback.
|
|
144
144
|
*/
|
|
145
|
-
export interface GridPreProcessEditCellProps {
|
|
145
|
+
export interface GridPreProcessEditCellProps<V = any, R extends GridValidRowModel = any> {
|
|
146
146
|
/**
|
|
147
147
|
* The grid row id.
|
|
148
148
|
*/
|
|
@@ -150,11 +150,11 @@ export interface GridPreProcessEditCellProps {
|
|
|
150
150
|
/**
|
|
151
151
|
* The row that is being edited.
|
|
152
152
|
*/
|
|
153
|
-
row: GridRowModel
|
|
153
|
+
row: GridRowModel<R>;
|
|
154
154
|
/**
|
|
155
155
|
* The edit cell props.
|
|
156
156
|
*/
|
|
157
|
-
props: GridEditCellProps
|
|
157
|
+
props: GridEditCellProps<V>;
|
|
158
158
|
/**
|
|
159
159
|
* Whether the new value is different from the stored value or not.
|
|
160
160
|
*/
|
|
@@ -163,5 +163,5 @@ export interface GridPreProcessEditCellProps {
|
|
|
163
163
|
* Object containing the props of the other fields.
|
|
164
164
|
* Only available for row editing and when using the new editing API.
|
|
165
165
|
*/
|
|
166
|
-
otherFieldsProps?: Record<string, GridEditCellProps
|
|
166
|
+
otherFieldsProps?: Record<string, GridEditCellProps<V>>;
|
|
167
167
|
}
|
|
@@ -86,7 +86,7 @@ DataGridRaw.propTypes = {
|
|
|
86
86
|
columns: chainPropTypes(PropTypes.array.isRequired, props => {
|
|
87
87
|
// @ts-ignore because otherwise `build:api` doesn't work
|
|
88
88
|
if (props.columns && props.columns.some(column => column.resizable)) {
|
|
89
|
-
return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to
|
|
89
|
+
return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
return null;
|
|
@@ -656,14 +656,14 @@ DataGridRaw.propTypes = {
|
|
|
656
656
|
*/
|
|
657
657
|
pageSize: chainPropTypes(PropTypes.number, props => {
|
|
658
658
|
if (props.pageSize && props.pageSize > MAX_PAGE_SIZE) {
|
|
659
|
-
return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to
|
|
659
|
+
return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
return null;
|
|
663
663
|
}),
|
|
664
664
|
pagination: props => {
|
|
665
665
|
if (props.pagination === false) {
|
|
666
|
-
return new Error(['MUI: `<DataGrid pagination={false} />` is not a valid prop.', 'Infinite scrolling is not available in the MIT version.', '', 'You need to upgrade to
|
|
666
|
+
return new Error(['MUI: `<DataGrid pagination={false} />` is not a valid prop.', 'Infinite scrolling is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination.'].join('\n'));
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
return null;
|
|
@@ -743,7 +743,7 @@ DataGridRaw.propTypes = {
|
|
|
743
743
|
*/
|
|
744
744
|
selectionModel: chainPropTypes(PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array]), props => {
|
|
745
745
|
if (!props.checkboxSelection && Array.isArray(props.selectionModel) && props.selectionModel.length > 1) {
|
|
746
|
-
return new Error([`MUI: \`<DataGrid selectionModel={${JSON.stringify(props.selectionModel)}} />\` is not a valid prop.`, 'selectionModel can only be of 1 item in DataGrid.', '', 'You need to upgrade to
|
|
746
|
+
return new Error([`MUI: \`<DataGrid selectionModel={${JSON.stringify(props.selectionModel)}} />\` is not a valid prop.`, 'selectionModel can only be of 1 item in DataGrid.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection.'].join('\n'));
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
return null;
|
|
@@ -58,7 +58,7 @@ export const useDataGridComponent = props => {
|
|
|
58
58
|
const useGridEditing = props.experimentalFeatures?.newEditingApi ? useGridEditing_new : useGridEditing_old;
|
|
59
59
|
useGridEditing(apiRef, props);
|
|
60
60
|
useGridFocus(apiRef, props);
|
|
61
|
-
useGridPreferencesPanel(apiRef);
|
|
61
|
+
useGridPreferencesPanel(apiRef, props);
|
|
62
62
|
useGridFilter(apiRef, props);
|
|
63
63
|
useGridSorting(apiRef, props);
|
|
64
64
|
useGridDensity(apiRef, props);
|
|
@@ -21,5 +21,7 @@ export const GRID_BOOLEAN_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
|
21
21
|
sortComparator: gridNumberComparator,
|
|
22
22
|
valueFormatter: gridBooleanFormatter,
|
|
23
23
|
filterOperators: getGridBooleanOperators(),
|
|
24
|
-
getApplyQuickFilterFn: undefined
|
|
24
|
+
getApplyQuickFilterFn: undefined,
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
aggregable: false
|
|
25
27
|
});
|
|
@@ -91,7 +91,8 @@ export const getGridDateOperators = showTime => [{
|
|
|
91
91
|
}) => {
|
|
92
92
|
return value == null;
|
|
93
93
|
};
|
|
94
|
-
}
|
|
94
|
+
},
|
|
95
|
+
requiresFilterValue: false
|
|
95
96
|
}, {
|
|
96
97
|
value: 'isNotEmpty',
|
|
97
98
|
getApplyFilterFn: () => {
|
|
@@ -100,5 +101,6 @@ export const getGridDateOperators = showTime => [{
|
|
|
100
101
|
}) => {
|
|
101
102
|
return value != null;
|
|
102
103
|
};
|
|
103
|
-
}
|
|
104
|
+
},
|
|
105
|
+
requiresFilterValue: false
|
|
104
106
|
}];
|