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