@mui/x-data-grid 7.0.0-alpha.8 → 7.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +379 -2
- package/DataGrid/DataGrid.js +6 -6
- package/DataGrid/useDataGridComponent.js +2 -1
- package/DataGrid/useDataGridProps.js +1 -0
- package/README.md +1 -1
- package/components/GridColumnHeaders.d.ts +3 -2
- package/components/GridColumnHeaders.js +3 -11
- package/components/GridDetailPanels.d.ts +5 -0
- package/components/GridDetailPanels.js +4 -0
- package/components/GridHeaders.d.ts +4 -0
- package/components/GridHeaders.js +53 -0
- package/components/GridPinnedRows.d.ts +7 -0
- package/components/GridPinnedRows.js +4 -0
- package/components/GridRow.d.ts +7 -4
- package/components/GridRow.js +260 -97
- package/components/GridScrollbarFillerCell.d.ts +7 -0
- package/components/GridScrollbarFillerCell.js +39 -0
- package/components/base/GridBody.d.ts +2 -13
- package/components/base/GridBody.js +2 -116
- package/components/base/GridOverlays.js +10 -21
- package/components/cell/GridActionsCellItem.d.ts +2 -2
- package/components/cell/GridCell.d.ts +15 -21
- package/components/cell/GridCell.js +67 -372
- package/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +2 -1
- package/components/columnHeaders/GridColumnHeaderItem.js +7 -3
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/components/columnHeaders/GridColumnHeadersInner.js +1 -2
- package/components/containers/GridRoot.js +18 -15
- package/components/containers/GridRootStyles.js +307 -204
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/components/panel/GridPanel.js +3 -4
- package/components/panel/filterPanel/GridFilterForm.d.ts +6 -4
- package/components/panel/filterPanel/GridFilterForm.js +31 -14
- package/components/panel/filterPanel/GridFilterPanel.js +46 -20
- package/components/toolbar/GridToolbarColumnsButton.d.ts +13 -1
- package/components/toolbar/GridToolbarColumnsButton.js +40 -22
- package/components/toolbar/GridToolbarDensitySelector.d.ts +13 -1
- package/components/toolbar/GridToolbarDensitySelector.js +40 -22
- package/components/toolbar/GridToolbarExport.d.ts +10 -1
- package/components/toolbar/GridToolbarExport.js +6 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +15 -1
- package/components/toolbar/GridToolbarExportContainer.js +41 -23
- package/components/toolbar/GridToolbarFilterButton.d.ts +5 -4
- package/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/components/virtualization/GridBottomContainer.d.ts +2 -0
- package/components/virtualization/GridBottomContainer.js +25 -0
- package/components/{containers → virtualization}/GridMainContainer.d.ts +2 -0
- package/components/virtualization/GridMainContainer.js +20 -0
- package/components/virtualization/GridTopContainer.d.ts +2 -0
- package/components/virtualization/GridTopContainer.js +35 -0
- package/components/virtualization/GridVirtualScrollbar.d.ts +7 -0
- package/components/virtualization/GridVirtualScrollbar.js +131 -0
- package/components/virtualization/GridVirtualScroller.d.ts +4 -4
- package/components/virtualization/GridVirtualScroller.js +69 -16
- package/components/virtualization/GridVirtualScrollerFiller.d.ts +4 -0
- package/components/virtualization/GridVirtualScrollerFiller.js +71 -0
- package/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/constants/defaultGridSlotsComponents.js +6 -2
- package/constants/gridClasses.d.ts +60 -8
- package/constants/gridClasses.js +1 -1
- package/hooks/core/gridCoreSelector.d.ts +6 -0
- package/hooks/core/gridCoreSelector.js +5 -0
- package/hooks/core/useGridInitialization.js +4 -0
- package/hooks/core/useGridRefs.d.ts +3 -0
- package/hooks/core/useGridRefs.js +13 -0
- package/hooks/core/useGridTheme.d.ts +3 -0
- package/hooks/core/useGridTheme.js +19 -0
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +7 -14
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +13 -18
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +68 -162
- package/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +17 -0
- package/hooks/features/columns/gridColumnsInterfaces.js +9 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +14 -1
- package/hooks/features/columns/gridColumnsSelector.js +52 -0
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -5
- package/hooks/features/columns/gridColumnsUtils.js +10 -12
- package/hooks/features/columns/index.d.ts +2 -2
- package/hooks/features/columns/index.js +2 -1
- package/hooks/features/columns/useGridColumnSpanning.js +62 -61
- package/hooks/features/columns/useGridColumns.js +20 -23
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +60 -11
- package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +2 -0
- package/hooks/features/dimensions/gridDimensionsSelectors.js +1 -0
- package/hooks/features/dimensions/index.d.ts +2 -0
- package/hooks/features/dimensions/index.js +1 -0
- package/hooks/features/dimensions/useGridDimensions.d.ts +7 -1
- package/hooks/features/dimensions/useGridDimensions.js +216 -148
- package/hooks/features/export/serializers/csvSerializer.js +2 -2
- package/hooks/features/filter/useGridFilter.js +3 -3
- package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
- package/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/hooks/features/focus/useGridFocus.js +3 -3
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -16
- package/hooks/features/pagination/useGridPagination.js +3 -5
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -0
- package/hooks/features/rows/gridRowsSelector.d.ts +2 -2
- package/hooks/features/rows/gridRowsSelector.js +5 -5
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.js +4 -4
- package/hooks/features/rows/useGridRowsMeta.js +7 -4
- package/hooks/features/scroll/useGridScroll.js +8 -10
- package/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/sorting/useGridSorting.js +15 -10
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +14 -0
- package/hooks/features/virtualization/gridVirtualizationSelectors.js +22 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +27 -42
- package/hooks/features/virtualization/useGridVirtualScroller.js +441 -438
- package/hooks/features/virtualization/useGridVirtualization.d.ts +8 -0
- package/hooks/features/virtualization/useGridVirtualization.js +8 -1
- package/hooks/utils/index.d.ts +3 -0
- package/hooks/utils/index.js +4 -1
- package/hooks/utils/useGridAriaAttributes.js +1 -2
- package/hooks/utils/useGridNativeEventListener.js +4 -9
- package/hooks/utils/useResizeObserver.d.ts +2 -0
- package/hooks/utils/useResizeObserver.js +36 -0
- package/hooks/utils/useRunOnce.d.ts +5 -0
- package/hooks/utils/useRunOnce.js +18 -0
- package/index.js +1 -1
- package/internals/index.d.ts +12 -9
- package/internals/index.js +9 -7
- package/legacy/DataGrid/DataGrid.js +6 -6
- package/legacy/DataGrid/useDataGridComponent.js +2 -1
- package/legacy/DataGrid/useDataGridProps.js +1 -0
- package/legacy/components/GridColumnHeaders.js +3 -11
- package/legacy/components/GridDetailPanels.js +4 -0
- package/legacy/components/GridHeaders.js +53 -0
- package/legacy/components/GridPinnedRows.js +4 -0
- package/legacy/components/GridRow.js +258 -98
- package/legacy/components/GridScrollbarFillerCell.js +36 -0
- package/legacy/components/base/GridBody.js +2 -114
- package/legacy/components/base/GridOverlays.js +10 -25
- package/legacy/components/cell/GridCell.js +69 -377
- package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +7 -3
- package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +1 -2
- package/legacy/components/containers/GridRoot.js +18 -15
- package/legacy/components/containers/GridRootStyles.js +215 -137
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/legacy/components/panel/GridPanel.js +3 -4
- package/legacy/components/panel/filterPanel/GridFilterForm.js +30 -13
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +49 -20
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +40 -21
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +40 -21
- package/legacy/components/toolbar/GridToolbarExport.js +6 -1
- package/legacy/components/toolbar/GridToolbarExportContainer.js +40 -21
- package/legacy/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/legacy/components/virtualization/GridBottomContainer.js +25 -0
- package/legacy/components/virtualization/GridMainContainer.js +20 -0
- package/legacy/components/virtualization/GridTopContainer.js +35 -0
- package/legacy/components/virtualization/GridVirtualScrollbar.js +129 -0
- package/legacy/components/virtualization/GridVirtualScroller.js +67 -16
- package/legacy/components/virtualization/GridVirtualScrollerFiller.js +70 -0
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/legacy/constants/defaultGridSlotsComponents.js +6 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/hooks/core/gridCoreSelector.js +7 -0
- package/legacy/hooks/core/useGridInitialization.js +4 -0
- package/legacy/hooks/core/useGridRefs.js +13 -0
- package/legacy/hooks/core/useGridTheme.js +21 -0
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +7 -14
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +69 -181
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/legacy/hooks/features/columns/gridColumnsInterfaces.js +9 -1
- package/legacy/hooks/features/columns/gridColumnsSelector.js +62 -0
- package/legacy/hooks/features/columns/gridColumnsUtils.js +10 -16
- package/legacy/hooks/features/columns/index.js +2 -1
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +60 -59
- package/legacy/hooks/features/columns/useGridColumns.js +22 -23
- package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +3 -0
- package/legacy/hooks/features/dimensions/index.js +1 -0
- package/legacy/hooks/features/dimensions/useGridDimensions.js +226 -151
- package/legacy/hooks/features/export/serializers/csvSerializer.js +2 -2
- package/legacy/hooks/features/filter/useGridFilter.js +3 -3
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/legacy/hooks/features/focus/useGridFocus.js +3 -3
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -16
- package/legacy/hooks/features/pagination/useGridPagination.js +3 -5
- package/legacy/hooks/features/rows/gridRowsSelector.js +5 -5
- package/legacy/hooks/features/rows/gridRowsUtils.js +4 -4
- package/legacy/hooks/features/rows/useGridRowsMeta.js +7 -4
- package/legacy/hooks/features/scroll/useGridScroll.js +8 -10
- package/legacy/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/legacy/hooks/features/sorting/useGridSorting.js +15 -10
- package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +29 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +490 -483
- package/legacy/hooks/features/virtualization/useGridVirtualization.js +8 -1
- package/legacy/hooks/utils/index.js +4 -1
- package/legacy/hooks/utils/useGridAriaAttributes.js +1 -2
- package/legacy/hooks/utils/useGridNativeEventListener.js +4 -9
- package/legacy/hooks/utils/useResizeObserver.js +36 -0
- package/legacy/hooks/utils/useRunOnce.js +18 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +9 -7
- package/legacy/locales/hrHR.js +161 -0
- package/legacy/locales/index.js +4 -1
- package/legacy/locales/ptPT.js +161 -0
- package/legacy/locales/zhHK.js +161 -0
- package/legacy/models/index.js +0 -1
- package/legacy/models/params/index.js +1 -2
- package/legacy/utils/utils.js +10 -1
- package/locales/hrHR.d.ts +1 -0
- package/locales/hrHR.js +149 -0
- package/locales/index.d.ts +3 -0
- package/locales/index.js +4 -1
- package/locales/ptPT.d.ts +1 -0
- package/locales/ptPT.js +149 -0
- package/locales/zhHK.d.ts +1 -0
- package/locales/zhHK.js +149 -0
- package/models/api/gridColumnGroupingApi.d.ts +2 -2
- package/models/api/gridCoreApi.d.ts +16 -16
- package/models/api/gridRowsMetaApi.d.ts +1 -1
- package/models/api/gridVirtualizationApi.d.ts +2 -3
- package/models/events/gridEventLookup.d.ts +3 -3
- package/models/gridFilterModel.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +16 -2
- package/models/gridStateCommunity.d.ts +5 -1
- package/models/index.d.ts +0 -1
- package/models/index.js +0 -1
- package/models/params/index.d.ts +0 -1
- package/models/params/index.js +1 -2
- package/models/props/DataGridProps.d.ts +6 -11
- package/modern/DataGrid/DataGrid.js +6 -6
- package/modern/DataGrid/useDataGridComponent.js +2 -1
- package/modern/DataGrid/useDataGridProps.js +1 -0
- package/modern/components/GridColumnHeaders.js +3 -11
- package/modern/components/GridDetailPanels.js +4 -0
- package/modern/components/GridHeaders.js +53 -0
- package/modern/components/GridPinnedRows.js +4 -0
- package/modern/components/GridRow.js +258 -96
- package/modern/components/GridScrollbarFillerCell.js +39 -0
- package/modern/components/base/GridBody.js +2 -116
- package/modern/components/base/GridOverlays.js +10 -16
- package/modern/components/cell/GridCell.js +65 -369
- package/modern/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +7 -3
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/modern/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/modern/components/containers/GridRoot.js +18 -14
- package/modern/components/containers/GridRootStyles.js +307 -204
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/modern/components/panel/GridPanel.js +3 -4
- package/modern/components/panel/filterPanel/GridFilterForm.js +30 -13
- package/modern/components/panel/filterPanel/GridFilterPanel.js +46 -20
- package/modern/components/toolbar/GridToolbarColumnsButton.js +38 -21
- package/modern/components/toolbar/GridToolbarDensitySelector.js +38 -21
- package/modern/components/toolbar/GridToolbarExport.js +6 -1
- package/modern/components/toolbar/GridToolbarExportContainer.js +39 -22
- package/modern/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/modern/components/virtualization/GridBottomContainer.js +25 -0
- package/modern/components/virtualization/GridMainContainer.js +20 -0
- package/modern/components/virtualization/GridTopContainer.js +35 -0
- package/modern/components/virtualization/GridVirtualScrollbar.js +131 -0
- package/modern/components/virtualization/GridVirtualScroller.js +69 -16
- package/modern/components/virtualization/GridVirtualScrollerFiller.js +71 -0
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/modern/constants/defaultGridSlotsComponents.js +6 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/core/gridCoreSelector.js +5 -0
- package/modern/hooks/core/useGridInitialization.js +4 -0
- package/modern/hooks/core/useGridRefs.js +13 -0
- package/modern/hooks/core/useGridTheme.js +19 -0
- package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +5 -12
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +67 -160
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/modern/hooks/features/columns/gridColumnsInterfaces.js +9 -1
- package/modern/hooks/features/columns/gridColumnsSelector.js +51 -0
- package/modern/hooks/features/columns/gridColumnsUtils.js +10 -12
- package/modern/hooks/features/columns/index.js +2 -1
- package/modern/hooks/features/columns/useGridColumnSpanning.js +62 -61
- package/modern/hooks/features/columns/useGridColumns.js +19 -21
- package/modern/hooks/features/dimensions/gridDimensionsSelectors.js +1 -0
- package/modern/hooks/features/dimensions/index.js +1 -0
- package/modern/hooks/features/dimensions/useGridDimensions.js +214 -146
- package/modern/hooks/features/export/serializers/csvSerializer.js +2 -2
- package/modern/hooks/features/filter/useGridFilter.js +3 -3
- package/modern/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/modern/hooks/features/focus/useGridFocus.js +3 -3
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -16
- package/modern/hooks/features/pagination/useGridPagination.js +3 -5
- package/modern/hooks/features/rows/gridRowsSelector.js +2 -2
- package/modern/hooks/features/rows/gridRowsUtils.js +4 -4
- package/modern/hooks/features/rows/useGridRowsMeta.js +7 -4
- package/modern/hooks/features/scroll/useGridScroll.js +8 -9
- package/modern/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/modern/hooks/features/sorting/useGridSorting.js +15 -10
- package/modern/hooks/features/virtualization/gridVirtualizationSelectors.js +22 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +435 -432
- package/modern/hooks/features/virtualization/useGridVirtualization.js +8 -1
- package/modern/hooks/utils/index.js +4 -1
- package/modern/hooks/utils/useGridAriaAttributes.js +1 -1
- package/modern/hooks/utils/useGridNativeEventListener.js +3 -9
- package/modern/hooks/utils/useResizeObserver.js +36 -0
- package/modern/hooks/utils/useRunOnce.js +18 -0
- package/modern/index.js +1 -1
- package/modern/internals/index.js +9 -7
- package/modern/locales/hrHR.js +149 -0
- package/modern/locales/index.js +4 -1
- package/modern/locales/ptPT.js +149 -0
- package/modern/locales/zhHK.js +149 -0
- package/modern/models/index.js +0 -1
- package/modern/models/params/index.js +1 -2
- package/modern/utils/utils.js +10 -1
- package/node/DataGrid/DataGrid.js +6 -6
- package/node/DataGrid/useDataGridComponent.js +1 -0
- package/node/DataGrid/useDataGridProps.js +1 -0
- package/node/components/GridColumnHeaders.js +3 -11
- package/node/components/GridDetailPanels.js +10 -0
- package/node/components/GridHeaders.js +60 -0
- package/node/components/GridPinnedRows.js +10 -0
- package/node/components/GridRow.js +256 -94
- package/node/components/GridScrollbarFillerCell.js +47 -0
- package/node/components/base/GridBody.js +7 -118
- package/node/components/base/GridOverlays.js +9 -15
- package/node/components/cell/GridCell.js +66 -369
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +1 -6
- package/node/components/columnHeaders/GridColumnHeaderItem.js +8 -4
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +5 -2
- package/node/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/node/components/containers/GridRoot.js +17 -14
- package/node/components/containers/GridRootStyles.js +175 -72
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/node/components/panel/GridPanel.js +3 -4
- package/node/components/panel/filterPanel/GridFilterForm.js +29 -12
- package/node/components/panel/filterPanel/GridFilterPanel.js +45 -19
- package/node/components/toolbar/GridToolbarColumnsButton.js +36 -20
- package/node/components/toolbar/GridToolbarDensitySelector.js +36 -20
- package/node/components/toolbar/GridToolbarExport.js +6 -1
- package/node/components/toolbar/GridToolbarExportContainer.js +37 -21
- package/node/components/toolbar/GridToolbarFilterButton.js +6 -10
- package/node/components/virtualization/GridBottomContainer.js +34 -0
- package/node/components/{containers → virtualization}/GridMainContainer.js +7 -29
- package/node/components/virtualization/GridTopContainer.js +44 -0
- package/node/components/virtualization/GridVirtualScrollbar.js +138 -0
- package/node/components/virtualization/GridVirtualScroller.js +69 -17
- package/node/components/virtualization/GridVirtualScrollerFiller.js +77 -0
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
- package/node/constants/defaultGridSlotsComponents.js +5 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/core/gridCoreSelector.js +12 -0
- package/node/hooks/core/useGridInitialization.js +4 -0
- package/node/hooks/core/useGridRefs.js +22 -0
- package/node/hooks/core/useGridTheme.js +29 -0
- package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +5 -12
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +65 -159
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +28 -23
- package/node/hooks/features/columns/gridColumnsInterfaces.js +11 -1
- package/node/hooks/features/columns/gridColumnsSelector.js +52 -1
- package/node/hooks/features/columns/gridColumnsUtils.js +10 -13
- package/node/hooks/features/columns/index.js +22 -61
- package/node/hooks/features/columns/useGridColumnSpanning.js +62 -61
- package/node/hooks/features/columns/useGridColumns.js +20 -22
- package/node/hooks/features/dimensions/gridDimensionsSelectors.js +8 -0
- package/node/hooks/features/dimensions/index.js +11 -0
- package/node/hooks/features/dimensions/useGridDimensions.js +215 -144
- package/node/hooks/features/export/serializers/csvSerializer.js +2 -2
- package/node/hooks/features/filter/useGridFilter.js +2 -2
- package/node/hooks/features/focus/gridFocusStateSelector.js +3 -7
- package/node/hooks/features/focus/useGridFocus.js +2 -2
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +2 -15
- package/node/hooks/features/pagination/useGridPagination.js +3 -5
- package/node/hooks/features/rows/gridRowsSelector.js +2 -2
- package/node/hooks/features/rows/gridRowsUtils.js +4 -4
- package/node/hooks/features/rows/useGridRowsMeta.js +5 -3
- package/node/hooks/features/scroll/useGridScroll.js +8 -9
- package/node/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/node/hooks/features/sorting/useGridSorting.js +15 -10
- package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +22 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +434 -431
- package/node/hooks/features/virtualization/useGridVirtualization.js +9 -1
- package/node/hooks/utils/index.js +36 -0
- package/node/hooks/utils/useGridAriaAttributes.js +1 -1
- package/node/hooks/utils/useGridNativeEventListener.js +3 -9
- package/node/hooks/utils/useResizeObserver.js +44 -0
- package/node/hooks/utils/useRunOnce.js +27 -0
- package/node/index.js +1 -1
- package/node/internals/index.js +86 -71
- package/node/locales/hrHR.js +155 -0
- package/node/locales/index.js +33 -0
- package/node/locales/ptPT.js +155 -0
- package/node/locales/zhHK.js +155 -0
- package/node/models/index.js +0 -11
- package/node/models/params/index.js +0 -11
- package/node/utils/utils.js +11 -1
- package/package.json +6 -6
- package/utils/utils.d.ts +6 -0
- package/utils/utils.js +10 -1
- package/components/DataGridVirtualScroller.d.ts +0 -3
- package/components/DataGridVirtualScroller.js +0 -35
- package/components/containers/GridMainContainer.js +0 -43
- package/legacy/components/DataGridVirtualScroller.js +0 -32
- package/legacy/components/containers/GridMainContainer.js +0 -45
- package/legacy/models/gridRootContainerRef.js +0 -1
- package/legacy/models/params/gridRenderedRowsIntervalChangeParams.js +0 -1
- package/models/gridRootContainerRef.d.ts +0 -5
- package/models/gridRootContainerRef.js +0 -1
- package/models/params/gridRenderedRowsIntervalChangeParams.d.ts +0 -10
- package/models/params/gridRenderedRowsIntervalChangeParams.js +0 -1
- package/modern/components/DataGridVirtualScroller.js +0 -35
- package/modern/components/containers/GridMainContainer.js +0 -42
- package/modern/models/gridRootContainerRef.js +0 -1
- package/modern/models/params/gridRenderedRowsIntervalChangeParams.js +0 -1
- package/node/components/DataGridVirtualScroller.js +0 -42
- package/node/models/gridRootContainerRef.js +0 -5
- package/node/models/params/gridRenderedRowsIntervalChangeParams.js +0 -5
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { zhHK as zhHKCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
var zhHKGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: '沒有行',
|
|
6
|
+
noResultsOverlayLabel: '未找到結果。',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: '密度',
|
|
9
|
+
toolbarDensityLabel: '密度',
|
|
10
|
+
toolbarDensityCompact: '袖珍的',
|
|
11
|
+
toolbarDensityStandard: '標準',
|
|
12
|
+
toolbarDensityComfortable: '舒服的',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: '列',
|
|
15
|
+
toolbarColumnsLabel: '選擇列',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: '過濾器',
|
|
18
|
+
toolbarFiltersLabel: '顯示過濾器',
|
|
19
|
+
toolbarFiltersTooltipHide: '隱藏過濾器',
|
|
20
|
+
toolbarFiltersTooltipShow: '顯示過濾器',
|
|
21
|
+
toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
|
|
22
|
+
return count !== 1 ? "".concat(count, " \u500B\u6709\u6548\u904E\u6FFE\u5668") : "".concat(count, " \u500B\u6D3B\u52D5\u904E\u6FFE\u5668");
|
|
23
|
+
},
|
|
24
|
+
// Quick filter toolbar field
|
|
25
|
+
toolbarQuickFilterPlaceholder: '搜尋…',
|
|
26
|
+
toolbarQuickFilterLabel: '搜尋',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
28
|
+
// Export selector toolbar button text
|
|
29
|
+
toolbarExport: '出口',
|
|
30
|
+
toolbarExportLabel: '出口',
|
|
31
|
+
toolbarExportCSV: '下載為 CSV',
|
|
32
|
+
toolbarExportPrint: '列印',
|
|
33
|
+
toolbarExportExcel: '下載為 Excel',
|
|
34
|
+
// Columns panel text
|
|
35
|
+
columnsPanelTextFieldLabel: '查找欄目',
|
|
36
|
+
columnsPanelTextFieldPlaceholder: '欄目標題',
|
|
37
|
+
columnsPanelDragIconLabel: '重新排序列',
|
|
38
|
+
columnsPanelShowAllButton: '顯示所有',
|
|
39
|
+
columnsPanelHideAllButton: '全部藏起來',
|
|
40
|
+
// Filter panel text
|
|
41
|
+
filterPanelAddFilter: '新增過濾器',
|
|
42
|
+
filterPanelRemoveAll: '移除所有',
|
|
43
|
+
filterPanelDeleteIconLabel: '刪除',
|
|
44
|
+
filterPanelLogicOperator: '邏輯運算符',
|
|
45
|
+
filterPanelOperator: '操作員',
|
|
46
|
+
filterPanelOperatorAnd: '和',
|
|
47
|
+
filterPanelOperatorOr: '或者',
|
|
48
|
+
filterPanelColumns: '列',
|
|
49
|
+
filterPanelInputLabel: '價值',
|
|
50
|
+
filterPanelInputPlaceholder: '過濾值',
|
|
51
|
+
// Filter operators text
|
|
52
|
+
filterOperatorContains: '包含',
|
|
53
|
+
filterOperatorEquals: '等於',
|
|
54
|
+
filterOperatorStartsWith: '以。。開始',
|
|
55
|
+
filterOperatorEndsWith: '以。。結束',
|
|
56
|
+
filterOperatorIs: '是',
|
|
57
|
+
filterOperatorNot: '不是',
|
|
58
|
+
filterOperatorAfter: '是在之後',
|
|
59
|
+
filterOperatorOnOrAfter: '是在或之後',
|
|
60
|
+
filterOperatorBefore: '是在之前',
|
|
61
|
+
filterOperatorOnOrBefore: '是在或之前',
|
|
62
|
+
filterOperatorIsEmpty: '是空的',
|
|
63
|
+
filterOperatorIsNotEmpty: '不為空',
|
|
64
|
+
filterOperatorIsAnyOf: '是以下任一個',
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
71
|
+
// Header filter operators text
|
|
72
|
+
headerFilterOperatorContains: '包含',
|
|
73
|
+
headerFilterOperatorEquals: '等於',
|
|
74
|
+
headerFilterOperatorStartsWith: '以。。開始',
|
|
75
|
+
headerFilterOperatorEndsWith: '以。。結束',
|
|
76
|
+
headerFilterOperatorIs: '是',
|
|
77
|
+
headerFilterOperatorNot: '不是',
|
|
78
|
+
headerFilterOperatorAfter: '是在之後',
|
|
79
|
+
headerFilterOperatorOnOrAfter: '是在或之後',
|
|
80
|
+
headerFilterOperatorBefore: '是之前',
|
|
81
|
+
headerFilterOperatorOnOrBefore: '是在或之前',
|
|
82
|
+
headerFilterOperatorIsEmpty: '是空的',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: '不為空',
|
|
84
|
+
headerFilterOperatorIsAnyOf: '是以下任一個',
|
|
85
|
+
'headerFilterOperator=': '等於',
|
|
86
|
+
'headerFilterOperator!=': '不等於',
|
|
87
|
+
'headerFilterOperator>': '比...更棒',
|
|
88
|
+
'headerFilterOperator>=': '大於或等於',
|
|
89
|
+
'headerFilterOperator<': '少於',
|
|
90
|
+
'headerFilterOperator<=': '小於或等於',
|
|
91
|
+
// Filter values text
|
|
92
|
+
filterValueAny: '任何',
|
|
93
|
+
filterValueTrue: '真的',
|
|
94
|
+
filterValueFalse: '錯誤的',
|
|
95
|
+
// Column menu text
|
|
96
|
+
columnMenuLabel: '選單',
|
|
97
|
+
columnMenuShowColumns: '顯示欄目',
|
|
98
|
+
columnMenuManageColumns: '管理欄目',
|
|
99
|
+
columnMenuFilter: '篩選',
|
|
100
|
+
columnMenuHideColumn: '隱藏列',
|
|
101
|
+
columnMenuUnsort: '取消排序',
|
|
102
|
+
columnMenuSortAsc: '按升序排序',
|
|
103
|
+
columnMenuSortDesc: '按降序排序',
|
|
104
|
+
// Column header text
|
|
105
|
+
columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
|
|
106
|
+
return count !== 1 ? "".concat(count, " \u500B\u6709\u6548\u904E\u6FFE\u5668") : "".concat(count, " \u500B\u6D3B\u52D5\u904E\u6FFE\u5668");
|
|
107
|
+
},
|
|
108
|
+
columnHeaderFiltersLabel: '顯示過濾器',
|
|
109
|
+
columnHeaderSortIconLabel: '種類',
|
|
110
|
+
// Rows selected footer text
|
|
111
|
+
footerRowSelected: function footerRowSelected(count) {
|
|
112
|
+
return count !== 1 ? "\u5DF2\u9078\u64C7 ".concat(count.toLocaleString(), " \u884C") : "\u5DF2\u9078\u64C7 ".concat(count.toLocaleString(), " \u884C");
|
|
113
|
+
},
|
|
114
|
+
// Total row amount footer text
|
|
115
|
+
footerTotalRows: '總行數:',
|
|
116
|
+
// Total visible row amount footer text
|
|
117
|
+
footerTotalVisibleRows: function footerTotalVisibleRows(visibleCount, totalCount) {
|
|
118
|
+
return "".concat(totalCount.toLocaleString(), " \u7684 ").concat(visibleCount.toLocaleString());
|
|
119
|
+
},
|
|
120
|
+
// Checkbox selection text
|
|
121
|
+
checkboxSelectionHeaderName: '複選框選擇',
|
|
122
|
+
checkboxSelectionSelectAllRows: '選擇所有行',
|
|
123
|
+
checkboxSelectionUnselectAllRows: '取消選擇所有行',
|
|
124
|
+
checkboxSelectionSelectRow: '選擇行',
|
|
125
|
+
checkboxSelectionUnselectRow: '取消選擇行',
|
|
126
|
+
// Boolean cell text
|
|
127
|
+
booleanCellTrueLabel: '是的',
|
|
128
|
+
booleanCellFalseLabel: '不',
|
|
129
|
+
// Actions cell more text
|
|
130
|
+
actionsCellMore: '更多的',
|
|
131
|
+
// Column pinning text
|
|
132
|
+
pinToLeft: '固定到左側',
|
|
133
|
+
pinToRight: '固定到右側',
|
|
134
|
+
unpin: '取消固定',
|
|
135
|
+
// Tree Data
|
|
136
|
+
treeDataGroupingHeaderName: 'Group',
|
|
137
|
+
treeDataExpand: '看看孩子們',
|
|
138
|
+
treeDataCollapse: '隱藏孩子',
|
|
139
|
+
// Grouping columns
|
|
140
|
+
groupingColumnHeaderName: '團體',
|
|
141
|
+
groupColumn: function groupColumn(name) {
|
|
142
|
+
return "\u6309 ".concat(name, " \u5206\u7D44");
|
|
143
|
+
},
|
|
144
|
+
unGroupColumn: function unGroupColumn(name) {
|
|
145
|
+
return "\u505C\u6B62\u4EE5 ".concat(name, " \u5206\u7D44");
|
|
146
|
+
},
|
|
147
|
+
// Master/detail
|
|
148
|
+
detailPanelToggle: '詳細資訊面板切換',
|
|
149
|
+
expandDetailPanel: '擴張',
|
|
150
|
+
collapseDetailPanel: '坍塌',
|
|
151
|
+
// Row reordering text
|
|
152
|
+
rowReorderingHeaderName: '行重新排序',
|
|
153
|
+
// Aggregation
|
|
154
|
+
aggregationMenuItemHeader: '聚合',
|
|
155
|
+
aggregationFunctionLabelSum: '和',
|
|
156
|
+
aggregationFunctionLabelAvg: '平均',
|
|
157
|
+
aggregationFunctionLabelMin: '分分鐘',
|
|
158
|
+
aggregationFunctionLabelMax: '最大限度',
|
|
159
|
+
aggregationFunctionLabelSize: '尺寸'
|
|
160
|
+
};
|
|
161
|
+
export var zhHK = getGridLocalization(zhHKGrid, zhHKCore);
|
package/legacy/models/index.js
CHANGED
|
@@ -6,7 +6,6 @@ export * from './gridFeatureMode';
|
|
|
6
6
|
export * from './gridFilterItem';
|
|
7
7
|
export * from './gridFilterModel';
|
|
8
8
|
export * from './gridPaginationProps';
|
|
9
|
-
export * from './gridRootContainerRef';
|
|
10
9
|
export * from './gridRenderContextProps';
|
|
11
10
|
export * from './gridRows';
|
|
12
11
|
export * from './gridRowSelectionModel';
|
|
@@ -10,5 +10,4 @@ export * from './gridHeaderSelectionCheckboxParams';
|
|
|
10
10
|
export * from './gridValueOptionsParams';
|
|
11
11
|
export * from './gridCellParams';
|
|
12
12
|
export * from './gridPreferencePanelParams';
|
|
13
|
-
export * from './gridMenuParams';
|
|
14
|
-
export * from './gridRenderedRowsIntervalChangeParams';
|
|
13
|
+
export * from './gridMenuParams';
|
package/legacy/utils/utils.js
CHANGED
|
@@ -177,4 +177,13 @@ export function deepClone(obj) {
|
|
|
177
177
|
return structuredClone(obj);
|
|
178
178
|
}
|
|
179
179
|
return JSON.parse(JSON.stringify(obj));
|
|
180
|
-
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
183
|
+
/**
|
|
184
|
+
* Mark a value as used so eslint doesn't complain. Use this instead
|
|
185
|
+
* of a `eslint-disable-next-line react-hooks/exhaustive-deps` because
|
|
186
|
+
* that hint disables checks on all values instead of just one.
|
|
187
|
+
*/
|
|
188
|
+
export function eslintUseValue(_) {}
|
|
189
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hrHR: import("../utils/getGridLocalization").Localization;
|
package/locales/hrHR.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { hrHR as hrHRCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const hrHRGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Nema redova',
|
|
6
|
+
noResultsOverlayLabel: 'Nema rezultata.',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: 'Gustoća',
|
|
9
|
+
toolbarDensityLabel: 'Gustoća',
|
|
10
|
+
toolbarDensityCompact: 'Kompaktan',
|
|
11
|
+
toolbarDensityStandard: 'Standard',
|
|
12
|
+
toolbarDensityComfortable: 'Udobno',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: 'Stupci',
|
|
15
|
+
toolbarColumnsLabel: 'Odaberite stupce',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: 'Filteri',
|
|
18
|
+
toolbarFiltersLabel: 'Prikaži filtre',
|
|
19
|
+
toolbarFiltersTooltipHide: 'Sakrij filtre',
|
|
20
|
+
toolbarFiltersTooltipShow: 'Prikaži filtre',
|
|
21
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`,
|
|
22
|
+
// Quick filter toolbar field
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Traži…',
|
|
24
|
+
toolbarQuickFilterLabel: 'traži',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Čisto',
|
|
26
|
+
// Export selector toolbar button text
|
|
27
|
+
toolbarExport: 'Izvoz',
|
|
28
|
+
toolbarExportLabel: 'Izvoz',
|
|
29
|
+
toolbarExportCSV: 'Preuzmi kao CSV',
|
|
30
|
+
toolbarExportPrint: 'Ispis',
|
|
31
|
+
toolbarExportExcel: 'Preuzmite kao Excel',
|
|
32
|
+
// Columns panel text
|
|
33
|
+
columnsPanelTextFieldLabel: 'Pronađi stupac',
|
|
34
|
+
columnsPanelTextFieldPlaceholder: 'Naslov stupca',
|
|
35
|
+
columnsPanelDragIconLabel: 'Promijeni redoslijed stupca',
|
|
36
|
+
columnsPanelShowAllButton: 'Pokaži sve',
|
|
37
|
+
columnsPanelHideAllButton: 'Sakrij sve',
|
|
38
|
+
// Filter panel text
|
|
39
|
+
filterPanelAddFilter: 'Dodajte filter',
|
|
40
|
+
filterPanelRemoveAll: 'Ukloniti sve',
|
|
41
|
+
filterPanelDeleteIconLabel: 'Izbrisati',
|
|
42
|
+
filterPanelLogicOperator: 'Logički operator',
|
|
43
|
+
filterPanelOperator: 'Operater',
|
|
44
|
+
filterPanelOperatorAnd: 'I',
|
|
45
|
+
filterPanelOperatorOr: 'Ili',
|
|
46
|
+
filterPanelColumns: 'Stupci',
|
|
47
|
+
filterPanelInputLabel: 'Vrijednost',
|
|
48
|
+
filterPanelInputPlaceholder: 'Vrijednost filtra',
|
|
49
|
+
// Filter operators text
|
|
50
|
+
filterOperatorContains: 'sadrži',
|
|
51
|
+
filterOperatorEquals: 'jednaki',
|
|
52
|
+
filterOperatorStartsWith: 'počinje sa',
|
|
53
|
+
filterOperatorEndsWith: 'završava sa',
|
|
54
|
+
filterOperatorIs: 'je',
|
|
55
|
+
filterOperatorNot: 'nije',
|
|
56
|
+
filterOperatorAfter: 'je poslije',
|
|
57
|
+
filterOperatorOnOrAfter: 'je na ili poslije',
|
|
58
|
+
filterOperatorBefore: 'je prije',
|
|
59
|
+
filterOperatorOnOrBefore: 'je na ili prije',
|
|
60
|
+
filterOperatorIsEmpty: 'prazno je',
|
|
61
|
+
filterOperatorIsNotEmpty: 'nije prazna',
|
|
62
|
+
filterOperatorIsAnyOf: 'je bilo koji od',
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
69
|
+
// Header filter operators text
|
|
70
|
+
headerFilterOperatorContains: 'Sadrži',
|
|
71
|
+
headerFilterOperatorEquals: 'Jednako',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Počinje sa',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Završava s',
|
|
74
|
+
headerFilterOperatorIs: 'Je',
|
|
75
|
+
headerFilterOperatorNot: 'Nije',
|
|
76
|
+
headerFilterOperatorAfter: 'Je poslije',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Je uključeno ili poslije',
|
|
78
|
+
headerFilterOperatorBefore: 'Je li prije',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Uključeno je ili prije',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Prazno je',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Nije prazna',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Je li bilo koji od',
|
|
83
|
+
'headerFilterOperator=': 'Jednako',
|
|
84
|
+
'headerFilterOperator!=': 'Nije jednako',
|
|
85
|
+
'headerFilterOperator>': 'Veći od',
|
|
86
|
+
'headerFilterOperator>=': 'Veće ili jednako',
|
|
87
|
+
'headerFilterOperator<': 'Manje od',
|
|
88
|
+
'headerFilterOperator<=': 'Manje od ili jednako',
|
|
89
|
+
// Filter values text
|
|
90
|
+
filterValueAny: 'bilo koji',
|
|
91
|
+
filterValueTrue: 'pravi',
|
|
92
|
+
filterValueFalse: 'lažno',
|
|
93
|
+
// Column menu text
|
|
94
|
+
columnMenuLabel: 'Jelovnik ',
|
|
95
|
+
columnMenuShowColumns: 'Prikaži stupce',
|
|
96
|
+
columnMenuManageColumns: 'Upravljanje stupcima',
|
|
97
|
+
columnMenuFilter: 'filtar',
|
|
98
|
+
columnMenuHideColumn: 'Sakrij stupac',
|
|
99
|
+
columnMenuUnsort: 'Poništi sortiranje',
|
|
100
|
+
columnMenuSortAsc: 'Poredaj uzlazno',
|
|
101
|
+
columnMenuSortDesc: 'Poredaj silaznim redom',
|
|
102
|
+
// Column header text
|
|
103
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`,
|
|
104
|
+
columnHeaderFiltersLabel: 'Prikaži filtre',
|
|
105
|
+
columnHeaderSortIconLabel: 'Vrsta',
|
|
106
|
+
// Rows selected footer text
|
|
107
|
+
footerRowSelected: count => count !== 1 ? `Odabrano je ${count.toLocaleString()} redaka` : `${count.toLocaleString()} redak odabran`,
|
|
108
|
+
// Total row amount footer text
|
|
109
|
+
footerTotalRows: 'Ukupno redaka:',
|
|
110
|
+
// Total visible row amount footer text
|
|
111
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} od ${totalCount.toLocaleString()}`,
|
|
112
|
+
// Checkbox selection text
|
|
113
|
+
checkboxSelectionHeaderName: 'Odabir potvrdnog okvira',
|
|
114
|
+
checkboxSelectionSelectAllRows: 'Odaberite sve retke',
|
|
115
|
+
checkboxSelectionUnselectAllRows: 'Poništi odabir svih redaka',
|
|
116
|
+
checkboxSelectionSelectRow: 'Odaberite red',
|
|
117
|
+
checkboxSelectionUnselectRow: 'Poništi odabir retka',
|
|
118
|
+
// Boolean cell text
|
|
119
|
+
booleanCellTrueLabel: 'Da',
|
|
120
|
+
booleanCellFalseLabel: 'Ne',
|
|
121
|
+
// Actions cell more text
|
|
122
|
+
actionsCellMore: 'više',
|
|
123
|
+
// Column pinning text
|
|
124
|
+
pinToLeft: 'Prikvači lijevo',
|
|
125
|
+
pinToRight: 'Prikvači desno',
|
|
126
|
+
unpin: 'Otkvači',
|
|
127
|
+
// Tree Data
|
|
128
|
+
treeDataGroupingHeaderName: 'Group',
|
|
129
|
+
treeDataExpand: 'vidjeti djecu',
|
|
130
|
+
treeDataCollapse: 'sakriti djecu',
|
|
131
|
+
// Grouping columns
|
|
132
|
+
groupingColumnHeaderName: 'Skupina',
|
|
133
|
+
groupColumn: name => `Grupiraj prema ${name}`,
|
|
134
|
+
unGroupColumn: name => `Zaustavi grupiranje prema ${name}`,
|
|
135
|
+
// Master/detail
|
|
136
|
+
detailPanelToggle: 'Prebacivanje ploče s detaljima',
|
|
137
|
+
expandDetailPanel: 'Proširiti',
|
|
138
|
+
collapseDetailPanel: 'Kolaps',
|
|
139
|
+
// Row reordering text
|
|
140
|
+
rowReorderingHeaderName: 'Promjena redoslijeda',
|
|
141
|
+
// Aggregation
|
|
142
|
+
aggregationMenuItemHeader: 'Agregacija',
|
|
143
|
+
aggregationFunctionLabelSum: 'iznos',
|
|
144
|
+
aggregationFunctionLabelAvg: 'prosj',
|
|
145
|
+
aggregationFunctionLabelMin: 'min',
|
|
146
|
+
aggregationFunctionLabelMax: 'max',
|
|
147
|
+
aggregationFunctionLabelSize: 'veličina'
|
|
148
|
+
};
|
|
149
|
+
export const hrHR = getGridLocalization(hrHRGrid, hrHRCore);
|
package/locales/index.d.ts
CHANGED
package/locales/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ptPT: import("../utils/getGridLocalization").Localization;
|
package/locales/ptPT.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { ptPT as ptPTCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const ptPTGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Nenhuma linha',
|
|
6
|
+
noResultsOverlayLabel: 'Nenhum resultado encontrado.',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: 'Densidade',
|
|
9
|
+
toolbarDensityLabel: 'Densidade',
|
|
10
|
+
toolbarDensityCompact: 'Compactar',
|
|
11
|
+
toolbarDensityStandard: 'Padrão',
|
|
12
|
+
toolbarDensityComfortable: 'Confortável',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: 'Colunas',
|
|
15
|
+
toolbarColumnsLabel: 'Selecione colunas',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: 'Filtros',
|
|
18
|
+
toolbarFiltersLabel: 'Mostrar filtros',
|
|
19
|
+
toolbarFiltersTooltipHide: 'Ocultar filtros',
|
|
20
|
+
toolbarFiltersTooltipShow: 'Mostrar filtros',
|
|
21
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
|
|
22
|
+
// Quick filter toolbar field
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
24
|
+
toolbarQuickFilterLabel: 'Procurar',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Claro',
|
|
26
|
+
// Export selector toolbar button text
|
|
27
|
+
toolbarExport: 'Exportar',
|
|
28
|
+
toolbarExportLabel: 'Exportar',
|
|
29
|
+
toolbarExportCSV: 'Baixar como CSV',
|
|
30
|
+
toolbarExportPrint: 'Imprimir',
|
|
31
|
+
toolbarExportExcel: 'Baixe como Excel',
|
|
32
|
+
// Columns panel text
|
|
33
|
+
columnsPanelTextFieldLabel: 'Encontrar coluna',
|
|
34
|
+
columnsPanelTextFieldPlaceholder: 'Título da coluna',
|
|
35
|
+
columnsPanelDragIconLabel: 'Reordenar coluna',
|
|
36
|
+
columnsPanelShowAllButton: 'Mostre tudo',
|
|
37
|
+
columnsPanelHideAllButton: 'Esconda tudo',
|
|
38
|
+
// Filter panel text
|
|
39
|
+
filterPanelAddFilter: 'Adicionar filtro',
|
|
40
|
+
filterPanelRemoveAll: 'Deletar tudo',
|
|
41
|
+
filterPanelDeleteIconLabel: 'Excluir',
|
|
42
|
+
filterPanelLogicOperator: 'Operador lógico',
|
|
43
|
+
filterPanelOperator: 'Operador',
|
|
44
|
+
filterPanelOperatorAnd: 'E',
|
|
45
|
+
filterPanelOperatorOr: 'Ou',
|
|
46
|
+
filterPanelColumns: 'Colunas',
|
|
47
|
+
filterPanelInputLabel: 'Valor',
|
|
48
|
+
filterPanelInputPlaceholder: 'Valor do filtro',
|
|
49
|
+
// Filter operators text
|
|
50
|
+
filterOperatorContains: 'contém',
|
|
51
|
+
filterOperatorEquals: 'é igual a',
|
|
52
|
+
filterOperatorStartsWith: 'começa com',
|
|
53
|
+
filterOperatorEndsWith: 'termina com',
|
|
54
|
+
filterOperatorIs: 'é',
|
|
55
|
+
filterOperatorNot: 'não é',
|
|
56
|
+
filterOperatorAfter: 'está depois',
|
|
57
|
+
filterOperatorOnOrAfter: 'está ligado ou depois',
|
|
58
|
+
filterOperatorBefore: 'é antes',
|
|
59
|
+
filterOperatorOnOrBefore: 'está ligado ou antes',
|
|
60
|
+
filterOperatorIsEmpty: 'está vazia',
|
|
61
|
+
filterOperatorIsNotEmpty: 'não está vazio',
|
|
62
|
+
filterOperatorIsAnyOf: 'é qualquer um',
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
69
|
+
// Header filter operators text
|
|
70
|
+
headerFilterOperatorContains: 'Contém',
|
|
71
|
+
headerFilterOperatorEquals: 'É igual a',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Começa com',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Termina com',
|
|
74
|
+
headerFilterOperatorIs: 'É',
|
|
75
|
+
headerFilterOperatorNot: 'Não é',
|
|
76
|
+
headerFilterOperatorAfter: 'Está depois',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Está ligado ou depois',
|
|
78
|
+
headerFilterOperatorBefore: 'É antes',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Está ligado ou antes',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Está vazia',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Não está vazio',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Algum',
|
|
83
|
+
'headerFilterOperator=': 'É igual a',
|
|
84
|
+
'headerFilterOperator!=': 'Não é igual',
|
|
85
|
+
'headerFilterOperator>': 'Maior que',
|
|
86
|
+
'headerFilterOperator>=': 'Melhor que ou igual a',
|
|
87
|
+
'headerFilterOperator<': 'Menor que',
|
|
88
|
+
'headerFilterOperator<=': 'Menos que ou igual a',
|
|
89
|
+
// Filter values text
|
|
90
|
+
filterValueAny: 'qualquer',
|
|
91
|
+
filterValueTrue: 'verdadeiro',
|
|
92
|
+
filterValueFalse: 'falso',
|
|
93
|
+
// Column menu text
|
|
94
|
+
columnMenuLabel: 'Cardápio',
|
|
95
|
+
columnMenuShowColumns: 'Mostrar colunas',
|
|
96
|
+
columnMenuManageColumns: 'Gerenciar colunas',
|
|
97
|
+
columnMenuFilter: 'Filtro',
|
|
98
|
+
columnMenuHideColumn: 'Ocultar coluna',
|
|
99
|
+
columnMenuUnsort: 'Desclassificar',
|
|
100
|
+
columnMenuSortAsc: 'Classificar por ordem crescente',
|
|
101
|
+
columnMenuSortDesc: 'Classificar por ordem decrescente',
|
|
102
|
+
// Column header text
|
|
103
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
|
|
104
|
+
columnHeaderFiltersLabel: 'Mostrar filtros',
|
|
105
|
+
columnHeaderSortIconLabel: 'Organizar',
|
|
106
|
+
// Rows selected footer text
|
|
107
|
+
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} linhas selecionadas` : `${count.toLocaleString()} linha selecionada`,
|
|
108
|
+
// Total row amount footer text
|
|
109
|
+
footerTotalRows: 'Total de linhas:',
|
|
110
|
+
// Total visible row amount footer text
|
|
111
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`,
|
|
112
|
+
// Checkbox selection text
|
|
113
|
+
checkboxSelectionHeaderName: 'Seleção de caixa de seleção',
|
|
114
|
+
checkboxSelectionSelectAllRows: 'Selecione todas as linhas',
|
|
115
|
+
checkboxSelectionUnselectAllRows: 'Desmarque todas as linhas',
|
|
116
|
+
checkboxSelectionSelectRow: 'Selecione a linha',
|
|
117
|
+
checkboxSelectionUnselectRow: 'Desmarcar linha',
|
|
118
|
+
// Boolean cell text
|
|
119
|
+
booleanCellTrueLabel: 'sim',
|
|
120
|
+
booleanCellFalseLabel: 'não',
|
|
121
|
+
// Actions cell more text
|
|
122
|
+
actionsCellMore: 'mais',
|
|
123
|
+
// Column pinning text
|
|
124
|
+
pinToLeft: 'Fixar à esquerda',
|
|
125
|
+
pinToRight: 'Fixar à direita',
|
|
126
|
+
unpin: 'Liberar',
|
|
127
|
+
// Tree Data
|
|
128
|
+
treeDataGroupingHeaderName: 'Group',
|
|
129
|
+
treeDataExpand: 'veja crianças',
|
|
130
|
+
treeDataCollapse: 'esconder crianças',
|
|
131
|
+
// Grouping columns
|
|
132
|
+
groupingColumnHeaderName: 'Grupo',
|
|
133
|
+
groupColumn: name => `Agrupar por ${name}`,
|
|
134
|
+
unGroupColumn: name => `Pare de agrupar por ${name}`,
|
|
135
|
+
// Master/detail
|
|
136
|
+
detailPanelToggle: 'Alternar painel de detalhes',
|
|
137
|
+
expandDetailPanel: 'Expandir',
|
|
138
|
+
collapseDetailPanel: 'Colapso',
|
|
139
|
+
// Row reordering text
|
|
140
|
+
rowReorderingHeaderName: 'Reordenação de linhas',
|
|
141
|
+
// Aggregation
|
|
142
|
+
aggregationMenuItemHeader: 'Agregação',
|
|
143
|
+
aggregationFunctionLabelSum: 'soma',
|
|
144
|
+
aggregationFunctionLabelAvg: 'média',
|
|
145
|
+
aggregationFunctionLabelMin: 'min',
|
|
146
|
+
aggregationFunctionLabelMax: 'máx.',
|
|
147
|
+
aggregationFunctionLabelSize: 'tamanho'
|
|
148
|
+
};
|
|
149
|
+
export const ptPT = getGridLocalization(ptPTGrid, ptPTCore);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const zhHK: import("../utils/getGridLocalization").Localization;
|
package/locales/zhHK.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { zhHK as zhHKCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const zhHKGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: '沒有行',
|
|
6
|
+
noResultsOverlayLabel: '未找到結果。',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: '密度',
|
|
9
|
+
toolbarDensityLabel: '密度',
|
|
10
|
+
toolbarDensityCompact: '袖珍的',
|
|
11
|
+
toolbarDensityStandard: '標準',
|
|
12
|
+
toolbarDensityComfortable: '舒服的',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: '列',
|
|
15
|
+
toolbarColumnsLabel: '選擇列',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: '過濾器',
|
|
18
|
+
toolbarFiltersLabel: '顯示過濾器',
|
|
19
|
+
toolbarFiltersTooltipHide: '隱藏過濾器',
|
|
20
|
+
toolbarFiltersTooltipShow: '顯示過濾器',
|
|
21
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
|
|
22
|
+
// Quick filter toolbar field
|
|
23
|
+
toolbarQuickFilterPlaceholder: '搜尋…',
|
|
24
|
+
toolbarQuickFilterLabel: '搜尋',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
26
|
+
// Export selector toolbar button text
|
|
27
|
+
toolbarExport: '出口',
|
|
28
|
+
toolbarExportLabel: '出口',
|
|
29
|
+
toolbarExportCSV: '下載為 CSV',
|
|
30
|
+
toolbarExportPrint: '列印',
|
|
31
|
+
toolbarExportExcel: '下載為 Excel',
|
|
32
|
+
// Columns panel text
|
|
33
|
+
columnsPanelTextFieldLabel: '查找欄目',
|
|
34
|
+
columnsPanelTextFieldPlaceholder: '欄目標題',
|
|
35
|
+
columnsPanelDragIconLabel: '重新排序列',
|
|
36
|
+
columnsPanelShowAllButton: '顯示所有',
|
|
37
|
+
columnsPanelHideAllButton: '全部藏起來',
|
|
38
|
+
// Filter panel text
|
|
39
|
+
filterPanelAddFilter: '新增過濾器',
|
|
40
|
+
filterPanelRemoveAll: '移除所有',
|
|
41
|
+
filterPanelDeleteIconLabel: '刪除',
|
|
42
|
+
filterPanelLogicOperator: '邏輯運算符',
|
|
43
|
+
filterPanelOperator: '操作員',
|
|
44
|
+
filterPanelOperatorAnd: '和',
|
|
45
|
+
filterPanelOperatorOr: '或者',
|
|
46
|
+
filterPanelColumns: '列',
|
|
47
|
+
filterPanelInputLabel: '價值',
|
|
48
|
+
filterPanelInputPlaceholder: '過濾值',
|
|
49
|
+
// Filter operators text
|
|
50
|
+
filterOperatorContains: '包含',
|
|
51
|
+
filterOperatorEquals: '等於',
|
|
52
|
+
filterOperatorStartsWith: '以。。開始',
|
|
53
|
+
filterOperatorEndsWith: '以。。結束',
|
|
54
|
+
filterOperatorIs: '是',
|
|
55
|
+
filterOperatorNot: '不是',
|
|
56
|
+
filterOperatorAfter: '是在之後',
|
|
57
|
+
filterOperatorOnOrAfter: '是在或之後',
|
|
58
|
+
filterOperatorBefore: '是在之前',
|
|
59
|
+
filterOperatorOnOrBefore: '是在或之前',
|
|
60
|
+
filterOperatorIsEmpty: '是空的',
|
|
61
|
+
filterOperatorIsNotEmpty: '不為空',
|
|
62
|
+
filterOperatorIsAnyOf: '是以下任一個',
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
69
|
+
// Header filter operators text
|
|
70
|
+
headerFilterOperatorContains: '包含',
|
|
71
|
+
headerFilterOperatorEquals: '等於',
|
|
72
|
+
headerFilterOperatorStartsWith: '以。。開始',
|
|
73
|
+
headerFilterOperatorEndsWith: '以。。結束',
|
|
74
|
+
headerFilterOperatorIs: '是',
|
|
75
|
+
headerFilterOperatorNot: '不是',
|
|
76
|
+
headerFilterOperatorAfter: '是在之後',
|
|
77
|
+
headerFilterOperatorOnOrAfter: '是在或之後',
|
|
78
|
+
headerFilterOperatorBefore: '是之前',
|
|
79
|
+
headerFilterOperatorOnOrBefore: '是在或之前',
|
|
80
|
+
headerFilterOperatorIsEmpty: '是空的',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: '不為空',
|
|
82
|
+
headerFilterOperatorIsAnyOf: '是以下任一個',
|
|
83
|
+
'headerFilterOperator=': '等於',
|
|
84
|
+
'headerFilterOperator!=': '不等於',
|
|
85
|
+
'headerFilterOperator>': '比...更棒',
|
|
86
|
+
'headerFilterOperator>=': '大於或等於',
|
|
87
|
+
'headerFilterOperator<': '少於',
|
|
88
|
+
'headerFilterOperator<=': '小於或等於',
|
|
89
|
+
// Filter values text
|
|
90
|
+
filterValueAny: '任何',
|
|
91
|
+
filterValueTrue: '真的',
|
|
92
|
+
filterValueFalse: '錯誤的',
|
|
93
|
+
// Column menu text
|
|
94
|
+
columnMenuLabel: '選單',
|
|
95
|
+
columnMenuShowColumns: '顯示欄目',
|
|
96
|
+
columnMenuManageColumns: '管理欄目',
|
|
97
|
+
columnMenuFilter: '篩選',
|
|
98
|
+
columnMenuHideColumn: '隱藏列',
|
|
99
|
+
columnMenuUnsort: '取消排序',
|
|
100
|
+
columnMenuSortAsc: '按升序排序',
|
|
101
|
+
columnMenuSortDesc: '按降序排序',
|
|
102
|
+
// Column header text
|
|
103
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
|
|
104
|
+
columnHeaderFiltersLabel: '顯示過濾器',
|
|
105
|
+
columnHeaderSortIconLabel: '種類',
|
|
106
|
+
// Rows selected footer text
|
|
107
|
+
footerRowSelected: count => count !== 1 ? `已選擇 ${count.toLocaleString()} 行` : `已選擇 ${count.toLocaleString()} 行`,
|
|
108
|
+
// Total row amount footer text
|
|
109
|
+
footerTotalRows: '總行數:',
|
|
110
|
+
// Total visible row amount footer text
|
|
111
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${totalCount.toLocaleString()} 的 ${visibleCount.toLocaleString()}`,
|
|
112
|
+
// Checkbox selection text
|
|
113
|
+
checkboxSelectionHeaderName: '複選框選擇',
|
|
114
|
+
checkboxSelectionSelectAllRows: '選擇所有行',
|
|
115
|
+
checkboxSelectionUnselectAllRows: '取消選擇所有行',
|
|
116
|
+
checkboxSelectionSelectRow: '選擇行',
|
|
117
|
+
checkboxSelectionUnselectRow: '取消選擇行',
|
|
118
|
+
// Boolean cell text
|
|
119
|
+
booleanCellTrueLabel: '是的',
|
|
120
|
+
booleanCellFalseLabel: '不',
|
|
121
|
+
// Actions cell more text
|
|
122
|
+
actionsCellMore: '更多的',
|
|
123
|
+
// Column pinning text
|
|
124
|
+
pinToLeft: '固定到左側',
|
|
125
|
+
pinToRight: '固定到右側',
|
|
126
|
+
unpin: '取消固定',
|
|
127
|
+
// Tree Data
|
|
128
|
+
treeDataGroupingHeaderName: 'Group',
|
|
129
|
+
treeDataExpand: '看看孩子們',
|
|
130
|
+
treeDataCollapse: '隱藏孩子',
|
|
131
|
+
// Grouping columns
|
|
132
|
+
groupingColumnHeaderName: '團體',
|
|
133
|
+
groupColumn: name => `按 ${name} 分組`,
|
|
134
|
+
unGroupColumn: name => `停止以 ${name} 分組`,
|
|
135
|
+
// Master/detail
|
|
136
|
+
detailPanelToggle: '詳細資訊面板切換',
|
|
137
|
+
expandDetailPanel: '擴張',
|
|
138
|
+
collapseDetailPanel: '坍塌',
|
|
139
|
+
// Row reordering text
|
|
140
|
+
rowReorderingHeaderName: '行重新排序',
|
|
141
|
+
// Aggregation
|
|
142
|
+
aggregationMenuItemHeader: '聚合',
|
|
143
|
+
aggregationFunctionLabelSum: '和',
|
|
144
|
+
aggregationFunctionLabelAvg: '平均',
|
|
145
|
+
aggregationFunctionLabelMin: '分分鐘',
|
|
146
|
+
aggregationFunctionLabelMax: '最大限度',
|
|
147
|
+
aggregationFunctionLabelSize: '尺寸'
|
|
148
|
+
};
|
|
149
|
+
export const zhHK = getGridLocalization(zhHKGrid, zhHKCore);
|