@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/modern/locales/ptBR.js
CHANGED
|
@@ -21,14 +21,14 @@ const ptBRGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'Exibir filtros',
|
|
22
22
|
toolbarFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Procurar...',
|
|
25
|
+
toolbarQuickFilterLabel: 'Procurar',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Limpar',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'Exportar',
|
|
29
29
|
toolbarExportLabel: 'Exportar',
|
|
30
30
|
toolbarExportCSV: 'Baixar como CSV',
|
|
31
|
-
toolbarExportPrint: '
|
|
31
|
+
toolbarExportPrint: 'Imprimir',
|
|
32
32
|
toolbarExportExcel: 'Baixar como Excel',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'Localizar coluna',
|
|
@@ -60,7 +60,7 @@ const ptBRGrid = {
|
|
|
60
60
|
filterOperatorOnOrBefore: 'em ou antes de',
|
|
61
61
|
filterOperatorIsEmpty: 'está vazio',
|
|
62
62
|
filterOperatorIsNotEmpty: 'não está vazio',
|
|
63
|
-
|
|
63
|
+
filterOperatorIsAnyOf: 'é qualquer um dos',
|
|
64
64
|
// Filter values text
|
|
65
65
|
filterValueAny: 'qualquer',
|
|
66
66
|
filterValueTrue: 'verdadeiro',
|
|
@@ -99,9 +99,9 @@ const ptBRGrid = {
|
|
|
99
99
|
pinToRight: 'Fixar à direita',
|
|
100
100
|
unpin: 'Desafixar',
|
|
101
101
|
// Tree Data
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
treeDataGroupingHeaderName: 'Grupo',
|
|
103
|
+
treeDataExpand: 'mostrar filhos',
|
|
104
|
+
treeDataCollapse: 'esconder filhos',
|
|
105
105
|
// Grouping columns
|
|
106
106
|
groupingColumnHeaderName: 'Grupo',
|
|
107
107
|
groupColumn: name => `Agrupar por ${name}`,
|
|
@@ -109,8 +109,15 @@ const ptBRGrid = {
|
|
|
109
109
|
// Master/detail
|
|
110
110
|
detailPanelToggle: 'Painel de detalhes',
|
|
111
111
|
expandDetailPanel: 'Expandir',
|
|
112
|
-
collapseDetailPanel: 'Esconder'
|
|
113
|
-
//
|
|
112
|
+
collapseDetailPanel: 'Esconder',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
rowReorderingHeaderName: 'Reorganizar linhas' // 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 ptBR = getGridLocalization(ptBRGrid, ptBRCore);
|
|
@@ -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/modern/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/modern/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/modern/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/modern/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/modern/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/modern/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/modern/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);
|
|
@@ -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);
|
|
@@ -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";
|
|
@@ -8,9 +8,10 @@ export const isSpaceKey = key => key === ' ';
|
|
|
8
8
|
export const isArrowKeys = key => key.indexOf('Arrow') === 0;
|
|
9
9
|
export const isHomeOrEndKeys = key => key === 'Home' || key === 'End';
|
|
10
10
|
export const isPageKeys = key => key.indexOf('Page') === 0;
|
|
11
|
-
export const isDeleteKeys = key => key === 'Delete' || key === 'Backspace';
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export const isDeleteKeys = key => key === 'Delete' || key === 'Backspace'; // Non printable keys have a name, e.g. "ArrowRight", see the whole list:
|
|
12
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
|
|
13
|
+
|
|
14
|
+
export const isPrintableKey = key => key.length === 1;
|
|
14
15
|
export const GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
|
|
15
16
|
export const GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];
|
|
16
17
|
export const GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
|
|
@@ -109,7 +109,7 @@ DataGridRaw.propTypes = {
|
|
|
109
109
|
columns: (0, _utils.chainPropTypes)(_propTypes.default.array.isRequired, props => {
|
|
110
110
|
// @ts-ignore because otherwise `build:api` doesn't work
|
|
111
111
|
if (props.columns && props.columns.some(column => column.resizable)) {
|
|
112
|
-
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
|
|
112
|
+
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'));
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return null;
|
|
@@ -679,14 +679,14 @@ DataGridRaw.propTypes = {
|
|
|
679
679
|
*/
|
|
680
680
|
pageSize: (0, _utils.chainPropTypes)(_propTypes.default.number, props => {
|
|
681
681
|
if (props.pageSize && props.pageSize > _useDataGridProps.MAX_PAGE_SIZE) {
|
|
682
|
-
return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${_useDataGridProps.MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to
|
|
682
|
+
return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${_useDataGridProps.MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
|
|
683
683
|
}
|
|
684
684
|
|
|
685
685
|
return null;
|
|
686
686
|
}),
|
|
687
687
|
pagination: props => {
|
|
688
688
|
if (props.pagination === false) {
|
|
689
|
-
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
|
|
689
|
+
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'));
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
return null;
|
|
@@ -766,7 +766,7 @@ DataGridRaw.propTypes = {
|
|
|
766
766
|
*/
|
|
767
767
|
selectionModel: (0, _utils.chainPropTypes)(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.array]), props => {
|
|
768
768
|
if (!props.checkboxSelection && Array.isArray(props.selectionModel) && props.selectionModel.length > 1) {
|
|
769
|
-
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
|
|
769
|
+
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'));
|
|
770
770
|
}
|
|
771
771
|
|
|
772
772
|
return null;
|
|
@@ -94,7 +94,7 @@ const useDataGridComponent = props => {
|
|
|
94
94
|
const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? _useGridEditing2.useGridEditing : _useGridEditing.useGridEditing;
|
|
95
95
|
useGridEditing(apiRef, props);
|
|
96
96
|
(0, _useGridFocus.useGridFocus)(apiRef, props);
|
|
97
|
-
(0, _useGridPreferencesPanel.useGridPreferencesPanel)(apiRef);
|
|
97
|
+
(0, _useGridPreferencesPanel.useGridPreferencesPanel)(apiRef, props);
|
|
98
98
|
(0, _useGridFilter.useGridFilter)(apiRef, props);
|
|
99
99
|
(0, _useGridSorting.useGridSorting)(apiRef, props);
|
|
100
100
|
(0, _useGridDensity.useGridDensity)(apiRef, props);
|
|
@@ -18,6 +18,8 @@ exports.GRID_ACTIONS_COLUMN_TYPE = GRID_ACTIONS_COLUMN_TYPE;
|
|
|
18
18
|
const GRID_ACTIONS_COL_DEF = (0, _extends2.default)({}, _gridStringColDef.GRID_STRING_COL_DEF, {
|
|
19
19
|
sortable: false,
|
|
20
20
|
filterable: false,
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
aggregable: false,
|
|
21
23
|
width: 100,
|
|
22
24
|
align: 'center',
|
|
23
25
|
headerAlign: 'center',
|
|
@@ -35,6 +35,8 @@ const GRID_BOOLEAN_COL_DEF = (0, _extends2.default)({}, _gridStringColDef.GRID_S
|
|
|
35
35
|
sortComparator: _gridSortingUtils.gridNumberComparator,
|
|
36
36
|
valueFormatter: gridBooleanFormatter,
|
|
37
37
|
filterOperators: (0, _gridBooleanOperators.getGridBooleanOperators)(),
|
|
38
|
-
getApplyQuickFilterFn: undefined
|
|
38
|
+
getApplyQuickFilterFn: undefined,
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
aggregable: false
|
|
39
41
|
});
|
|
40
42
|
exports.GRID_BOOLEAN_COL_DEF = GRID_BOOLEAN_COL_DEF;
|
|
@@ -99,7 +99,8 @@ const getGridDateOperators = showTime => [{
|
|
|
99
99
|
}) => {
|
|
100
100
|
return value == null;
|
|
101
101
|
};
|
|
102
|
-
}
|
|
102
|
+
},
|
|
103
|
+
requiresFilterValue: false
|
|
103
104
|
}, {
|
|
104
105
|
value: 'isNotEmpty',
|
|
105
106
|
getApplyFilterFn: () => {
|
|
@@ -108,7 +109,8 @@ const getGridDateOperators = showTime => [{
|
|
|
108
109
|
}) => {
|
|
109
110
|
return value != null;
|
|
110
111
|
};
|
|
111
|
-
}
|
|
112
|
+
},
|
|
113
|
+
requiresFilterValue: false
|
|
112
114
|
}];
|
|
113
115
|
|
|
114
116
|
exports.getGridDateOperators = getGridDateOperators;
|
|
@@ -165,7 +165,8 @@ const getGridNumericOperators = () => [{
|
|
|
165
165
|
}) => {
|
|
166
166
|
return value == null;
|
|
167
167
|
};
|
|
168
|
-
}
|
|
168
|
+
},
|
|
169
|
+
requiresFilterValue: false
|
|
169
170
|
}, {
|
|
170
171
|
value: 'isNotEmpty',
|
|
171
172
|
getApplyFilterFn: () => {
|
|
@@ -174,7 +175,8 @@ const getGridNumericOperators = () => [{
|
|
|
174
175
|
}) => {
|
|
175
176
|
return value != null;
|
|
176
177
|
};
|
|
177
|
-
}
|
|
178
|
+
},
|
|
179
|
+
requiresFilterValue: false
|
|
178
180
|
}, {
|
|
179
181
|
value: 'isAnyOf',
|
|
180
182
|
getApplyFilterFn: filterItem => {
|
|
@@ -11,6 +11,9 @@ var _gridSortingUtils = require("../hooks/features/sorting/gridSortingUtils");
|
|
|
11
11
|
|
|
12
12
|
var _gridStringOperators = require("./gridStringOperators");
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* TODO: Move pro and premium properties outside of this Community file
|
|
16
|
+
*/
|
|
14
17
|
const GRID_STRING_COL_DEF = {
|
|
15
18
|
width: 100,
|
|
16
19
|
minWidth: 50,
|
|
@@ -22,6 +25,8 @@ const GRID_STRING_COL_DEF = {
|
|
|
22
25
|
filterable: true,
|
|
23
26
|
groupable: true,
|
|
24
27
|
pinnable: true,
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
private_aggregable: true,
|
|
25
30
|
editable: false,
|
|
26
31
|
sortComparator: _gridSortingUtils.gridStringOrNumberComparator,
|
|
27
32
|
type: 'string',
|