@mui/x-data-grid 8.0.0-alpha.12 → 8.0.0-alpha.13
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 +299 -0
- package/DataGrid/DataGrid.js +31 -22
- package/DataGrid/useDataGridProps.js +1 -1
- package/colDef/gridCheckboxSelectionColDef.js +1 -3
- package/components/GridFooter.js +1 -1
- package/components/GridHeader.js +1 -1
- package/components/GridPagination.js +5 -6
- package/components/GridRowCount.js +4 -5
- package/components/GridScrollArea.js +4 -3
- package/components/GridSelectedRowCount.js +5 -6
- package/components/GridShadowScrollArea.d.ts +8 -0
- package/components/GridShadowScrollArea.js +82 -0
- package/components/cell/GridEditInputCell.js +2 -3
- package/components/columnSelection/GridHeaderCheckbox.js +51 -17
- package/components/columnsManagement/GridColumnsManagement.js +59 -61
- package/components/containers/GridOverlay.js +6 -8
- package/components/containers/GridRoot.js +4 -2
- package/components/containers/GridRootStyles.d.ts +1 -2
- package/components/containers/GridRootStyles.js +77 -100
- package/components/containers/GridToolbarContainer.js +5 -6
- package/components/menu/GridMenu.js +7 -6
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -3
- package/components/panel/GridPanel.js +18 -20
- package/components/panel/GridPanelContent.js +6 -8
- package/components/panel/GridPanelFooter.js +5 -6
- package/components/panel/GridPanelHeader.js +4 -5
- package/components/panel/filterPanel/GridFilterForm.js +13 -20
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +20 -45
- package/components/panel/filterPanel/GridFilterInputValue.js +3 -6
- package/components/toolbar/GridToolbarFilterButton.js +5 -6
- package/components/toolbar/GridToolbarQuickFilter.js +23 -30
- package/components/virtualization/GridVirtualScrollbar.js +8 -5
- package/components/virtualization/GridVirtualScrollerFiller.js +2 -1
- package/constants/cssVariables.d.ts +294 -0
- package/constants/cssVariables.js +168 -0
- package/constants/dataGridPropsDefaultValues.js +1 -0
- package/constants/defaultGridSlotsComponents.js +1 -1
- package/constants/gridClasses.d.ts +13 -0
- package/constants/gridClasses.js +1 -1
- package/context/GridContextProvider.js +4 -1
- package/esm/DataGrid/DataGrid.js +31 -22
- package/esm/DataGrid/useDataGridProps.js +1 -1
- package/esm/colDef/gridCheckboxSelectionColDef.js +1 -3
- package/esm/components/GridFooter.js +2 -2
- package/esm/components/GridHeader.js +1 -1
- package/esm/components/GridPagination.js +5 -6
- package/esm/components/GridRowCount.js +4 -5
- package/esm/components/GridScrollArea.js +2 -1
- package/esm/components/GridSelectedRowCount.js +5 -6
- package/esm/components/GridShadowScrollArea.d.ts +8 -0
- package/esm/components/GridShadowScrollArea.js +74 -0
- package/esm/components/cell/GridEditInputCell.js +2 -3
- package/esm/components/columnSelection/GridHeaderCheckbox.js +51 -17
- package/esm/components/columnsManagement/GridColumnsManagement.js +60 -62
- package/esm/components/containers/GridOverlay.js +6 -8
- package/esm/components/containers/GridRoot.js +4 -2
- package/esm/components/containers/GridRootStyles.d.ts +1 -2
- package/esm/components/containers/GridRootStyles.js +78 -101
- package/esm/components/containers/GridToolbarContainer.js +5 -6
- package/esm/components/menu/GridMenu.js +7 -6
- package/esm/components/menu/columnMenu/GridColumnHeaderMenu.js +2 -1
- package/esm/components/panel/GridPanel.js +18 -20
- package/esm/components/panel/GridPanelContent.js +6 -8
- package/esm/components/panel/GridPanelFooter.js +5 -6
- package/esm/components/panel/GridPanelHeader.js +4 -5
- package/esm/components/panel/filterPanel/GridFilterForm.js +13 -20
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js +19 -44
- package/esm/components/panel/filterPanel/GridFilterInputValue.js +3 -6
- package/esm/components/toolbar/GridToolbarFilterButton.js +5 -6
- package/esm/components/toolbar/GridToolbarQuickFilter.js +23 -30
- package/esm/components/virtualization/GridVirtualScrollbar.js +3 -1
- package/esm/components/virtualization/GridVirtualScrollerFiller.js +2 -1
- package/esm/constants/cssVariables.d.ts +294 -0
- package/esm/constants/cssVariables.js +161 -0
- package/esm/constants/dataGridPropsDefaultValues.js +1 -0
- package/esm/constants/defaultGridSlotsComponents.js +2 -2
- package/esm/constants/gridClasses.d.ts +13 -0
- package/esm/constants/gridClasses.js +1 -1
- package/esm/context/GridContextProvider.js +4 -1
- package/esm/hooks/features/clipboard/useGridClipboard.js +3 -2
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
- package/esm/hooks/features/columns/gridColumnsSelector.js +8 -0
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
- package/esm/hooks/features/columns/gridColumnsUtils.js +6 -3
- package/esm/hooks/features/columns/index.d.ts +1 -1
- package/esm/hooks/features/columns/index.js +1 -1
- package/esm/hooks/features/columns/useGridColumns.js +4 -2
- package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
- package/esm/hooks/features/dataSource/gridDataSourceError.js +32 -0
- package/esm/hooks/features/dataSource/index.d.ts +2 -0
- package/esm/hooks/features/dataSource/index.js +2 -0
- package/esm/hooks/features/dataSource/models.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
- package/esm/hooks/features/dimensions/useGridDimensions.js +11 -10
- package/esm/hooks/features/editing/useGridCellEditing.js +2 -1
- package/esm/hooks/features/editing/useGridRowEditing.js +2 -1
- package/esm/hooks/features/export/utils.js +4 -2
- package/esm/hooks/features/focus/useGridFocus.js +3 -2
- package/esm/hooks/features/index.d.ts +1 -1
- package/esm/hooks/features/index.js +1 -1
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +148 -81
- package/esm/hooks/features/rowSelection/utils.d.ts +2 -2
- package/esm/hooks/features/rowSelection/utils.js +11 -11
- package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/esm/hooks/features/rows/gridRowsUtils.js +8 -0
- package/esm/hooks/features/rows/useGridParamsApi.js +2 -8
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
- package/esm/hooks/features/rows/useGridRows.d.ts +2 -2
- package/esm/hooks/features/rows/useGridRows.js +7 -7
- package/esm/hooks/features/virtualization/useGridVirtualScroller.js +5 -9
- package/esm/hooks/utils/useGridSelector.js +4 -1
- package/esm/hooks/utils/useIsSSR.js +4 -1
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +2 -1
- package/esm/internals/index.js +2 -1
- package/esm/internals/utils/propValidation.js +1 -1
- package/esm/locales/bnBD.d.ts +2 -0
- package/esm/locales/bnBD.js +167 -0
- package/esm/locales/deDE.js +3 -5
- package/esm/locales/huHU.js +10 -13
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/esm/locales/ruRU.js +17 -21
- package/esm/material/index.d.ts +1 -0
- package/esm/material/index.js +164 -49
- package/esm/material/variables.d.ts +5 -0
- package/esm/material/variables.js +89 -0
- package/esm/models/api/gridRowSelectionApi.d.ts +4 -2
- package/esm/models/api/gridSortApi.d.ts +1 -1
- package/esm/models/configuration/gridConfiguration.d.ts +7 -1
- package/esm/models/gridBaseSlots.d.ts +56 -6
- package/esm/models/gridDataSource.d.ts +9 -4
- package/esm/models/gridRowSelectionManager.d.ts +9 -0
- package/esm/models/gridRowSelectionManager.js +36 -0
- package/esm/models/gridRowSelectionModel.d.ts +4 -2
- package/esm/models/gridSlotsComponent.d.ts +7 -27
- package/esm/models/gridSlotsComponentsProps.d.ts +3 -11
- package/esm/models/gridSortModel.d.ts +1 -1
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.js +2 -3
- package/esm/models/props/DataGridProps.d.ts +22 -17
- package/esm/utils/css/context.d.ts +14 -0
- package/esm/utils/css/context.js +54 -0
- package/esm/utils/index.d.ts +2 -1
- package/esm/utils/index.js +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +3 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/hooks/features/columnResize/useGridColumnResize.js +28 -27
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
- package/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
- package/hooks/features/columns/gridColumnsSelector.js +9 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
- package/hooks/features/columns/gridColumnsUtils.js +6 -3
- package/hooks/features/columns/index.d.ts +1 -1
- package/hooks/features/columns/index.js +94 -10
- package/hooks/features/columns/useGridColumns.js +4 -2
- package/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
- package/hooks/features/dataSource/gridDataSourceError.js +40 -0
- package/hooks/features/dataSource/index.d.ts +2 -0
- package/hooks/features/dataSource/index.js +25 -0
- package/hooks/features/dataSource/models.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
- package/hooks/features/dimensions/useGridDimensions.js +19 -18
- package/hooks/features/editing/useGridCellEditing.js +10 -9
- package/hooks/features/editing/useGridRowEditing.js +11 -10
- package/hooks/features/export/utils.js +4 -2
- package/hooks/features/focus/useGridFocus.js +8 -7
- package/hooks/features/index.d.ts +1 -1
- package/hooks/features/index.js +11 -28
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
- package/hooks/features/rowSelection/useGridRowSelection.js +146 -79
- package/hooks/features/rowSelection/utils.d.ts +2 -2
- package/hooks/features/rowSelection/utils.js +10 -10
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/hooks/features/rows/gridRowsUtils.js +10 -1
- package/hooks/features/rows/useGridParamsApi.js +2 -8
- package/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +7 -7
- package/hooks/features/virtualization/useGridVirtualScroller.js +21 -25
- package/hooks/utils/useGridSelector.js +6 -2
- package/hooks/utils/useIsSSR.js +6 -2
- package/index.js +1 -1
- package/internals/index.d.ts +2 -1
- package/internals/index.js +15 -0
- package/internals/utils/propValidation.js +1 -1
- package/locales/bnBD.d.ts +2 -0
- package/locales/bnBD.js +173 -0
- package/locales/deDE.js +3 -5
- package/locales/huHU.js +10 -13
- package/locales/index.d.ts +1 -0
- package/locales/index.js +11 -0
- package/locales/ruRU.js +17 -21
- package/material/index.d.ts +1 -0
- package/material/index.js +170 -49
- package/material/variables.d.ts +5 -0
- package/material/variables.js +95 -0
- package/models/api/gridRowSelectionApi.d.ts +4 -2
- package/models/api/gridSortApi.d.ts +1 -1
- package/models/configuration/gridConfiguration.d.ts +7 -1
- package/models/gridBaseSlots.d.ts +56 -6
- package/models/gridDataSource.d.ts +9 -4
- package/models/gridRowSelectionManager.d.ts +9 -0
- package/models/gridRowSelectionManager.js +43 -0
- package/models/gridRowSelectionModel.d.ts +4 -2
- package/models/gridSlotsComponent.d.ts +7 -27
- package/models/gridSlotsComponentsProps.d.ts +3 -11
- package/models/gridSortModel.d.ts +1 -1
- package/models/index.d.ts +2 -1
- package/models/index.js +34 -11
- package/models/props/DataGridProps.d.ts +22 -17
- package/modern/DataGrid/DataGrid.js +31 -22
- package/modern/DataGrid/useDataGridProps.js +1 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -3
- package/modern/components/GridFooter.js +2 -2
- package/modern/components/GridHeader.js +1 -1
- package/modern/components/GridPagination.js +5 -6
- package/modern/components/GridRowCount.js +4 -5
- package/modern/components/GridScrollArea.js +2 -1
- package/modern/components/GridSelectedRowCount.js +5 -6
- package/modern/components/GridShadowScrollArea.d.ts +8 -0
- package/modern/components/GridShadowScrollArea.js +74 -0
- package/modern/components/cell/GridEditInputCell.js +2 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +51 -17
- package/modern/components/columnsManagement/GridColumnsManagement.js +60 -62
- package/modern/components/containers/GridOverlay.js +6 -8
- package/modern/components/containers/GridRoot.js +4 -2
- package/modern/components/containers/GridRootStyles.d.ts +1 -2
- package/modern/components/containers/GridRootStyles.js +78 -101
- package/modern/components/containers/GridToolbarContainer.js +5 -6
- package/modern/components/menu/GridMenu.js +7 -6
- package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +2 -1
- package/modern/components/panel/GridPanel.js +18 -20
- package/modern/components/panel/GridPanelContent.js +6 -8
- package/modern/components/panel/GridPanelFooter.js +5 -6
- package/modern/components/panel/GridPanelHeader.js +4 -5
- package/modern/components/panel/filterPanel/GridFilterForm.js +13 -20
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +19 -44
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +3 -6
- package/modern/components/toolbar/GridToolbarFilterButton.js +5 -6
- package/modern/components/toolbar/GridToolbarQuickFilter.js +23 -30
- package/modern/components/virtualization/GridVirtualScrollbar.js +3 -1
- package/modern/components/virtualization/GridVirtualScrollerFiller.js +2 -1
- package/modern/constants/cssVariables.d.ts +294 -0
- package/modern/constants/cssVariables.js +161 -0
- package/modern/constants/dataGridPropsDefaultValues.js +1 -0
- package/modern/constants/defaultGridSlotsComponents.js +2 -2
- package/modern/constants/gridClasses.d.ts +13 -0
- package/modern/constants/gridClasses.js +1 -1
- package/modern/context/GridContextProvider.js +4 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +3 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/modern/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
- package/modern/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
- package/modern/hooks/features/columns/gridColumnsSelector.js +8 -0
- package/modern/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
- package/modern/hooks/features/columns/gridColumnsUtils.js +6 -3
- package/modern/hooks/features/columns/index.d.ts +1 -1
- package/modern/hooks/features/columns/index.js +1 -1
- package/modern/hooks/features/columns/useGridColumns.js +4 -2
- package/modern/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
- package/modern/hooks/features/dataSource/gridDataSourceError.js +32 -0
- package/modern/hooks/features/dataSource/index.d.ts +2 -0
- package/modern/hooks/features/dataSource/index.js +2 -0
- package/modern/hooks/features/dataSource/models.d.ts +1 -1
- package/modern/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/modern/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
- package/modern/hooks/features/dimensions/useGridDimensions.js +11 -10
- package/modern/hooks/features/editing/useGridCellEditing.js +2 -1
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -1
- package/modern/hooks/features/export/utils.js +4 -2
- package/modern/hooks/features/focus/useGridFocus.js +3 -2
- package/modern/hooks/features/index.d.ts +1 -1
- package/modern/hooks/features/index.js +1 -1
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +148 -81
- package/modern/hooks/features/rowSelection/utils.d.ts +2 -2
- package/modern/hooks/features/rowSelection/utils.js +11 -11
- package/modern/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/modern/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +8 -0
- package/modern/hooks/features/rows/useGridParamsApi.js +2 -8
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
- package/modern/hooks/features/rows/useGridRows.d.ts +2 -2
- package/modern/hooks/features/rows/useGridRows.js +7 -7
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -9
- package/modern/hooks/utils/useGridSelector.js +4 -1
- package/modern/hooks/utils/useIsSSR.js +4 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.d.ts +2 -1
- package/modern/internals/index.js +2 -1
- package/modern/internals/utils/propValidation.js +1 -1
- package/modern/locales/bnBD.d.ts +2 -0
- package/modern/locales/bnBD.js +167 -0
- package/modern/locales/deDE.js +3 -5
- package/modern/locales/huHU.js +10 -13
- package/modern/locales/index.d.ts +1 -0
- package/modern/locales/index.js +1 -0
- package/modern/locales/ruRU.js +17 -21
- package/modern/material/index.d.ts +1 -0
- package/modern/material/index.js +164 -49
- package/modern/material/variables.d.ts +5 -0
- package/modern/material/variables.js +89 -0
- package/modern/models/api/gridRowSelectionApi.d.ts +4 -2
- package/modern/models/api/gridSortApi.d.ts +1 -1
- package/modern/models/configuration/gridConfiguration.d.ts +7 -1
- package/modern/models/gridBaseSlots.d.ts +56 -6
- package/modern/models/gridDataSource.d.ts +9 -4
- package/modern/models/gridRowSelectionManager.d.ts +9 -0
- package/modern/models/gridRowSelectionManager.js +36 -0
- package/modern/models/gridRowSelectionModel.d.ts +4 -2
- package/modern/models/gridSlotsComponent.d.ts +7 -27
- package/modern/models/gridSlotsComponentsProps.d.ts +3 -11
- package/modern/models/gridSortModel.d.ts +1 -1
- package/modern/models/index.d.ts +2 -1
- package/modern/models/index.js +2 -3
- package/modern/models/props/DataGridProps.d.ts +22 -17
- package/modern/utils/css/context.d.ts +14 -0
- package/modern/utils/css/context.js +54 -0
- package/modern/utils/index.d.ts +2 -1
- package/modern/utils/index.js +1 -1
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/css/context.d.ts +14 -0
- package/utils/css/context.js +64 -0
- package/utils/index.d.ts +2 -1
- package/utils/index.js +8 -1
|
@@ -16,7 +16,7 @@ import { getTreeNodeDescendants, createRowsInternalCache, getRowsStateFromCache,
|
|
|
16
16
|
import { useGridRegisterPipeApplier } from "../../core/pipeProcessing/index.js";
|
|
17
17
|
import { GridStrategyGroup } from "../../core/strategyProcessing/index.js";
|
|
18
18
|
export const rowsStateInitializer = (state, props, apiRef) => {
|
|
19
|
-
const isDataSourceAvailable = !!props.
|
|
19
|
+
const isDataSourceAvailable = !!props.dataSource;
|
|
20
20
|
apiRef.current.caches.rows = createRowsInternalCache({
|
|
21
21
|
rows: isDataSourceAvailable ? [] : props.rows,
|
|
22
22
|
getRowId: props.getRowId,
|
|
@@ -356,16 +356,16 @@ export const useGridRows = (apiRef, props) => {
|
|
|
356
356
|
throttle: false
|
|
357
357
|
});
|
|
358
358
|
}, [logger, apiRef, props.rows, props.getRowId, props.loading, props.rowCount, throttledRowsChange]);
|
|
359
|
-
const previousDataSource = useLazyRef(() => props.
|
|
359
|
+
const previousDataSource = useLazyRef(() => props.dataSource);
|
|
360
360
|
const handleStrategyProcessorChange = React.useCallback(methodName => {
|
|
361
|
-
if (props.
|
|
362
|
-
previousDataSource.current = props.
|
|
361
|
+
if (props.dataSource && props.dataSource !== previousDataSource.current) {
|
|
362
|
+
previousDataSource.current = props.dataSource;
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
if (methodName === 'rowTreeCreation') {
|
|
366
366
|
groupRows();
|
|
367
367
|
}
|
|
368
|
-
}, [groupRows, previousDataSource, props.
|
|
368
|
+
}, [groupRows, previousDataSource, props.dataSource]);
|
|
369
369
|
const handleStrategyActivityChange = React.useCallback(() => {
|
|
370
370
|
// `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.
|
|
371
371
|
// All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.
|
|
@@ -416,7 +416,7 @@ export const useGridRows = (apiRef, props) => {
|
|
|
416
416
|
isRowCountPropUpdated = true;
|
|
417
417
|
lastRowCount.current = props.rowCount;
|
|
418
418
|
}
|
|
419
|
-
const currentRows = props.
|
|
419
|
+
const currentRows = props.dataSource ? Array.from(apiRef.current.getRowModels().values()) : props.rows;
|
|
420
420
|
const areNewRowsAlreadyInState = apiRef.current.caches.rows.rowsBeforePartialUpdates === currentRows;
|
|
421
421
|
const isNewLoadingAlreadyInState = apiRef.current.caches.rows.loadingPropBeforePartialUpdates === props.loading;
|
|
422
422
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
@@ -455,5 +455,5 @@ export const useGridRows = (apiRef, props) => {
|
|
|
455
455
|
}),
|
|
456
456
|
throttle: false
|
|
457
457
|
});
|
|
458
|
-
}, [props.rows, props.rowCount, props.getRowId, props.loading, props.
|
|
458
|
+
}, [props.rows, props.rowCount, props.getRowId, props.loading, props.dataSource, logger, throttledRowsChange, apiRef]);
|
|
459
459
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as ReactDOM from 'react-dom';
|
|
4
|
-
import
|
|
4
|
+
import useEventCallback from '@mui/utils/useEventCallback';
|
|
5
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
5
6
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
6
7
|
import useTimeout from '@mui/utils/useTimeout';
|
|
7
8
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
@@ -17,7 +18,6 @@ import { useGridVisibleRows, getVisibleRows } from "../../utils/useGridVisibleRo
|
|
|
17
18
|
import { useGridApiOptionHandler } from "../../utils/index.js";
|
|
18
19
|
import * as platform from "../../../utils/platform.js";
|
|
19
20
|
import { clamp, range } from "../../../utils/utils.js";
|
|
20
|
-
import { selectedIdsLookupSelector } from "../rowSelection/gridRowSelectionSelector.js";
|
|
21
21
|
import { gridRowsMetaSelector } from "../rows/gridRowsMetaSelector.js";
|
|
22
22
|
import { getFirstNonSpannedColumnToRender } from "../columns/gridColumnsUtils.js";
|
|
23
23
|
import { gridRenderContextSelector, gridVirtualizationRowEnabledSelector, gridVirtualizationColumnEnabledSelector } from "./gridVirtualizationSelectors.js";
|
|
@@ -29,6 +29,7 @@ import { EMPTY_PINNED_COLUMN_FIELDS } from "../columns/index.js";
|
|
|
29
29
|
import { gridFocusedVirtualCellSelector } from "./gridFocusedVirtualCellSelector.js";
|
|
30
30
|
import { roundToDecimalPlaces } from "../../../utils/roundToDecimalPlaces.js";
|
|
31
31
|
import { isJSDOM } from "../../../utils/isJSDOM.js";
|
|
32
|
+
import { gridRowSelectionManagerSelector } from "../rowSelection/index.js";
|
|
32
33
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
33
34
|
const MINIMUM_COLUMN_WIDTH = 50;
|
|
34
35
|
var ScrollDirection = /*#__PURE__*/function (ScrollDirection) {
|
|
@@ -63,7 +64,7 @@ export const useGridVirtualScroller = () => {
|
|
|
63
64
|
const hasBottomPinnedRows = pinnedRows.bottom.length > 0;
|
|
64
65
|
const [panels, setPanels] = React.useState(EMPTY_DETAIL_PANELS);
|
|
65
66
|
const isRtl = useRtl();
|
|
66
|
-
const
|
|
67
|
+
const rowSelectionManager = useGridSelector(apiRef, gridRowSelectionManagerSelector);
|
|
67
68
|
const currentPage = useGridVisibleRows(apiRef);
|
|
68
69
|
const mainRef = apiRef.current.mainElementRef;
|
|
69
70
|
const scrollerRef = apiRef.current.virtualScrollerRef;
|
|
@@ -333,12 +334,7 @@ export const useGridVirtualScroller = () => {
|
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
const baseRowHeight = !apiRef.current.rowHasAutoHeight(id) ? apiRef.current.unstable_getRowHeight(id) : 'auto';
|
|
336
|
-
|
|
337
|
-
if (selectedRowsLookup[id] == null) {
|
|
338
|
-
isSelected = false;
|
|
339
|
-
} else {
|
|
340
|
-
isSelected = apiRef.current.isRowSelectable(id);
|
|
341
|
-
}
|
|
337
|
+
const isSelected = rowSelectionManager.has(id) && apiRef.current.isRowSelectable(id);
|
|
342
338
|
let isFirstVisible = false;
|
|
343
339
|
if (params.position === undefined) {
|
|
344
340
|
isFirstVisible = rowIndexInPage === 0;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { fastObjectShallowCompare } from '@mui/x-internals/fastObjectShallowCompare';
|
|
3
3
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
4
|
-
|
|
4
|
+
// use-sync-external-store has no exports field defined
|
|
5
|
+
// See https://github.com/facebook/react/issues/30698
|
|
6
|
+
// eslint-disable-next-line import/extensions
|
|
7
|
+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
5
8
|
import { useLazyRef } from "./useLazyRef.js";
|
|
6
9
|
const defaultCompare = Object.is;
|
|
7
10
|
export const objectShallowCompare = fastObjectShallowCompare;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// use-sync-external-store has no exports field defined
|
|
2
|
+
// See https://github.com/facebook/react/issues/30698
|
|
3
|
+
// eslint-disable-next-line import/extensions
|
|
4
|
+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
2
5
|
const emptySubscribe = () => () => {};
|
|
3
6
|
const clientSnapshot = () => false;
|
|
4
7
|
const serverSnapshot = () => true;
|
package/esm/index.js
CHANGED
package/esm/internals/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { GridHeaders } from "../components/GridHeaders.js";
|
|
|
8
8
|
export { GridBaseColumnHeaders } from "../components/columnHeaders/GridBaseColumnHeaders.js";
|
|
9
9
|
export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlotsComponents.js";
|
|
10
10
|
export * from "../constants/signature.js";
|
|
11
|
+
export { vars } from "../constants/cssVariables.js";
|
|
11
12
|
export { propsStateInitializer } from "../hooks/core/useGridProps.js";
|
|
12
13
|
export { getGridFilter } from "../components/panel/filterPanel/GridFilterPanel.js";
|
|
13
14
|
export { getValueOptions } from "../components/panel/filterPanel/filterPanelUtils.js";
|
|
@@ -54,7 +55,7 @@ export type { GridRowTreeCreationParams, GridRowTreeCreationValue, GridHydrateRo
|
|
|
54
55
|
export { getTreeNodeDescendants, buildRootGroup } from "../hooks/features/rows/gridRowsUtils.js";
|
|
55
56
|
export { useGridRowsMeta, rowsMetaStateInitializer } from "../hooks/features/rows/useGridRowsMeta.js";
|
|
56
57
|
export { useGridParamsApi } from "../hooks/features/rows/useGridParamsApi.js";
|
|
57
|
-
export { getRowIdFromRowModel, GRID_ID_AUTOGENERATED } from "../hooks/features/rows/gridRowsUtils.js";
|
|
58
|
+
export { getRowIdFromRowModel, GRID_ID_AUTOGENERATED, getRowValue } from "../hooks/features/rows/gridRowsUtils.js";
|
|
58
59
|
export { gridAdditionalRowGroupsSelector, gridPinnedRowsSelector, gridRowSelector } from "../hooks/features/rows/gridRowsSelector.js";
|
|
59
60
|
export { headerFilteringStateInitializer, useGridHeaderFiltering } from "../hooks/features/headerFiltering/useGridHeaderFiltering.js";
|
|
60
61
|
export { useGridRowSelection, rowSelectionStateInitializer } from "../hooks/features/rowSelection/useGridRowSelection.js";
|
package/esm/internals/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { GridHeaders } from "../components/GridHeaders.js";
|
|
|
5
5
|
export { GridBaseColumnHeaders } from "../components/columnHeaders/GridBaseColumnHeaders.js";
|
|
6
6
|
export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlotsComponents.js";
|
|
7
7
|
export * from "../constants/signature.js";
|
|
8
|
+
export { vars } from "../constants/cssVariables.js";
|
|
8
9
|
export { propsStateInitializer } from "../hooks/core/useGridProps.js";
|
|
9
10
|
export { getGridFilter } from "../components/panel/filterPanel/GridFilterPanel.js";
|
|
10
11
|
export { getValueOptions } from "../components/panel/filterPanel/filterPanelUtils.js";
|
|
@@ -43,7 +44,7 @@ export { useGridRowsPreProcessors } from "../hooks/features/rows/useGridRowsPreP
|
|
|
43
44
|
export { getTreeNodeDescendants, buildRootGroup } from "../hooks/features/rows/gridRowsUtils.js";
|
|
44
45
|
export { useGridRowsMeta, rowsMetaStateInitializer } from "../hooks/features/rows/useGridRowsMeta.js";
|
|
45
46
|
export { useGridParamsApi } from "../hooks/features/rows/useGridParamsApi.js";
|
|
46
|
-
export { getRowIdFromRowModel, GRID_ID_AUTOGENERATED } from "../hooks/features/rows/gridRowsUtils.js";
|
|
47
|
+
export { getRowIdFromRowModel, GRID_ID_AUTOGENERATED, getRowValue } from "../hooks/features/rows/gridRowsUtils.js";
|
|
47
48
|
export { gridAdditionalRowGroupsSelector, gridPinnedRowsSelector, gridRowSelector } from "../hooks/features/rows/gridRowsSelector.js";
|
|
48
49
|
export { headerFilteringStateInitializer, useGridHeaderFiltering } from "../hooks/features/headerFiltering/useGridHeaderFiltering.js";
|
|
49
50
|
export { useGridRowSelection, rowSelectionStateInitializer } from "../hooks/features/rowSelection/useGridRowSelection.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
2
2
|
import { isNumber } from "../../utils/utils.js";
|
|
3
3
|
import { GridSignature } from "../../constants/signature.js";
|
|
4
|
-
export const propValidatorsDataGrid = [props => props.autoPageSize && props.autoHeight && ['MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.', 'You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.', '', 'Please remove one of these two props.'].join('\n') || undefined, props => props.paginationMode === 'client' && props.paginationMeta != null && ['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.', '`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.signature === GridSignature.DataGrid && props.paginationMode === 'client' && isNumber(props.rowCount) && ['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.', '`rowCount` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.paginationMode === 'server' && props.rowCount == null && !props.
|
|
4
|
+
export const propValidatorsDataGrid = [props => props.autoPageSize && props.autoHeight && ['MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.', 'You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.', '', 'Please remove one of these two props.'].join('\n') || undefined, props => props.paginationMode === 'client' && props.paginationMeta != null && ['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.', '`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.signature === GridSignature.DataGrid && props.paginationMode === 'client' && isNumber(props.rowCount) && ['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.', '`rowCount` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.paginationMode === 'server' && props.rowCount == null && !props.dataSource && ["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`", 'For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination'].join('\n') || undefined];
|
|
5
5
|
export function validateProps(props, validators) {
|
|
6
6
|
validators.forEach(validator => {
|
|
7
7
|
const message = validator(props);
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { bnBD as bnBDCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from "../utils/getGridLocalization.js";
|
|
3
|
+
const bnBDGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'কোনো সারি নেই',
|
|
6
|
+
noResultsOverlayLabel: 'কোনো ফলাফল পাওয়া যায়নি।',
|
|
7
|
+
noColumnsOverlayLabel: 'কোনো কলাম নেই',
|
|
8
|
+
noColumnsOverlayManageColumns: 'কলাম পরিচালনা করুন',
|
|
9
|
+
// Density selector toolbar button text
|
|
10
|
+
toolbarDensity: 'ঘনত্ব',
|
|
11
|
+
toolbarDensityLabel: 'ঘনত্ব',
|
|
12
|
+
toolbarDensityCompact: 'সংকুচিত',
|
|
13
|
+
toolbarDensityStandard: 'মানক',
|
|
14
|
+
toolbarDensityComfortable: 'স্বাচ্ছন্দ্যদায়ক',
|
|
15
|
+
// Columns selector toolbar button text
|
|
16
|
+
toolbarColumns: 'কলাম',
|
|
17
|
+
toolbarColumnsLabel: 'কলাম নির্বাচন করুন',
|
|
18
|
+
// Filters toolbar button text
|
|
19
|
+
toolbarFilters: 'ফিল্টার',
|
|
20
|
+
toolbarFiltersLabel: 'ফিল্টার দেখান',
|
|
21
|
+
toolbarFiltersTooltipHide: 'ফিল্টার লুকান',
|
|
22
|
+
toolbarFiltersTooltipShow: 'ফিল্টার দেখান',
|
|
23
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} টি সক্রিয় ফিল্টার` : `${count} টি সক্রিয় ফিল্টার`,
|
|
24
|
+
// Quick filter toolbar field
|
|
25
|
+
toolbarQuickFilterPlaceholder: 'অনুসন্ধান করুন…',
|
|
26
|
+
toolbarQuickFilterLabel: 'অনুসন্ধান',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: 'পরিষ্কার করুন',
|
|
28
|
+
// Prompt toolbar field
|
|
29
|
+
toolbarPromptControlPlaceholder: 'একটি প্রম্পট লিখুন…',
|
|
30
|
+
toolbarPromptControlWithRecordingPlaceholder: 'লিখুন বা রেকর্ড করুন…',
|
|
31
|
+
toolbarPromptControlRecordingPlaceholder: 'শুনছে…',
|
|
32
|
+
toolbarPromptControlLabel: 'প্রম্পট ইনপুট',
|
|
33
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'রেকর্ড',
|
|
34
|
+
toolbarPromptControlRecordButtonActiveLabel: 'রেকর্ড বন্ধ করুন',
|
|
35
|
+
toolbarPromptControlSendActionLabel: 'পাঠান',
|
|
36
|
+
toolbarPromptControlSendActionAriaLabel: 'প্রম্পট পাঠান',
|
|
37
|
+
toolbarPromptControlErrorMessage: 'অনুরোধ প্রক্রিয়াকরণে সমস্যা হয়েছে। অনুগ্রহ করে অন্য প্রম্পট দিয়ে আবার চেষ্টা করুন।',
|
|
38
|
+
// Export selector toolbar button text
|
|
39
|
+
toolbarExport: 'এক্সপোর্ট',
|
|
40
|
+
toolbarExportLabel: 'এক্সপোর্ট',
|
|
41
|
+
toolbarExportCSV: 'CSV হিসাবে ডাউনলোড করুন',
|
|
42
|
+
toolbarExportPrint: 'প্রিন্ট করুন',
|
|
43
|
+
toolbarExportExcel: 'Excel হিসাবে ডাউনলোড করুন',
|
|
44
|
+
// Columns management text
|
|
45
|
+
columnsManagementSearchTitle: 'অনুসন্ধান',
|
|
46
|
+
columnsManagementNoColumns: 'কোনো কলাম নেই',
|
|
47
|
+
columnsManagementShowHideAllText: 'সব দেখান/লুকান',
|
|
48
|
+
columnsManagementReset: 'রিসেট',
|
|
49
|
+
columnsManagementDeleteIconLabel: 'পরিষ্কার',
|
|
50
|
+
// Filter panel text
|
|
51
|
+
filterPanelAddFilter: 'ফিল্টার যোগ করুন',
|
|
52
|
+
filterPanelRemoveAll: 'সব সরান',
|
|
53
|
+
filterPanelDeleteIconLabel: 'মুছুন',
|
|
54
|
+
filterPanelLogicOperator: 'লজিক অপারেটর',
|
|
55
|
+
filterPanelOperator: 'অপারেটর',
|
|
56
|
+
filterPanelOperatorAnd: 'এবং',
|
|
57
|
+
filterPanelOperatorOr: 'অথবা',
|
|
58
|
+
filterPanelColumns: 'কলাম',
|
|
59
|
+
filterPanelInputLabel: 'মান',
|
|
60
|
+
filterPanelInputPlaceholder: 'ফিল্টার মান',
|
|
61
|
+
// Filter operators text
|
|
62
|
+
filterOperatorContains: 'অন্তর্ভুক্ত',
|
|
63
|
+
filterOperatorDoesNotContain: 'অন্তর্ভুক্ত নয়',
|
|
64
|
+
filterOperatorEquals: 'সমান',
|
|
65
|
+
filterOperatorDoesNotEqual: 'সমান নয়',
|
|
66
|
+
filterOperatorStartsWith: 'দিয়ে শুরু হয়',
|
|
67
|
+
filterOperatorEndsWith: 'দিয়ে শেষ হয়',
|
|
68
|
+
filterOperatorIs: 'হচ্ছে',
|
|
69
|
+
filterOperatorNot: 'হচ্ছে না',
|
|
70
|
+
filterOperatorAfter: 'পরবর্তী',
|
|
71
|
+
filterOperatorOnOrAfter: 'এই তারিখ বা পরবর্তী',
|
|
72
|
+
filterOperatorBefore: 'পূর্ববর্তী',
|
|
73
|
+
filterOperatorOnOrBefore: 'এই তারিখ বা পূর্ববর্তী',
|
|
74
|
+
filterOperatorIsEmpty: 'খালি',
|
|
75
|
+
filterOperatorIsNotEmpty: 'খালি নয়',
|
|
76
|
+
filterOperatorIsAnyOf: 'এর যেকোনো একটি',
|
|
77
|
+
'filterOperator=': '=',
|
|
78
|
+
'filterOperator!=': '!=',
|
|
79
|
+
'filterOperator>': '>',
|
|
80
|
+
'filterOperator>=': '>=',
|
|
81
|
+
'filterOperator<': '<',
|
|
82
|
+
'filterOperator<=': '<=',
|
|
83
|
+
// Header filter operators text
|
|
84
|
+
headerFilterOperatorContains: 'অন্তর্ভুক্ত',
|
|
85
|
+
headerFilterOperatorDoesNotContain: 'অন্তর্ভুক্ত নয়',
|
|
86
|
+
headerFilterOperatorEquals: 'সমান',
|
|
87
|
+
headerFilterOperatorDoesNotEqual: 'সমান নয়',
|
|
88
|
+
headerFilterOperatorStartsWith: 'দিয়ে শুরু হয়',
|
|
89
|
+
headerFilterOperatorEndsWith: 'দিয়ে শেষ হয়',
|
|
90
|
+
headerFilterOperatorIs: 'হচ্ছে',
|
|
91
|
+
headerFilterOperatorNot: 'হচ্ছে না',
|
|
92
|
+
headerFilterOperatorAfter: 'পরবর্তী',
|
|
93
|
+
headerFilterOperatorOnOrAfter: 'এই তারিখ বা পরবর্তী',
|
|
94
|
+
headerFilterOperatorBefore: 'পূর্ববর্তী',
|
|
95
|
+
headerFilterOperatorOnOrBefore: 'এই তারিখ বা পূর্ববর্তী',
|
|
96
|
+
headerFilterOperatorIsEmpty: 'খালি',
|
|
97
|
+
headerFilterOperatorIsNotEmpty: 'খালি নয়',
|
|
98
|
+
headerFilterOperatorIsAnyOf: 'এর যেকোনো একটি',
|
|
99
|
+
'headerFilterOperator=': 'সমান',
|
|
100
|
+
'headerFilterOperator!=': 'সমান নয়',
|
|
101
|
+
'headerFilterOperator>': 'বড়',
|
|
102
|
+
'headerFilterOperator>=': 'বড় বা সমান',
|
|
103
|
+
'headerFilterOperator<': 'ছোট',
|
|
104
|
+
'headerFilterOperator<=': 'ছোট বা সমান',
|
|
105
|
+
headerFilterClear: 'ফিল্টার মুছুন',
|
|
106
|
+
// Filter values text
|
|
107
|
+
filterValueAny: 'যেকোনো',
|
|
108
|
+
filterValueTrue: 'সত্য',
|
|
109
|
+
filterValueFalse: 'মিথ্যা',
|
|
110
|
+
// Column menu text
|
|
111
|
+
columnMenuLabel: 'মেনু',
|
|
112
|
+
columnMenuShowColumns: 'কলাম দেখান',
|
|
113
|
+
columnMenuManageColumns: 'কলাম পরিচালনা করুন',
|
|
114
|
+
columnMenuFilter: 'ফিল্টার',
|
|
115
|
+
columnMenuHideColumn: 'কলাম লুকান',
|
|
116
|
+
columnMenuUnsort: 'সাজানো বাতিল করুন',
|
|
117
|
+
columnMenuSortAsc: 'ASC অনুযায়ী সাজান',
|
|
118
|
+
columnMenuSortDesc: 'DESC অনুযায়ী সাজান',
|
|
119
|
+
// Column header text
|
|
120
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} টি সক্রিয় ফিল্টার` : `${count} টি সক্রিয় ফিল্টার`,
|
|
121
|
+
columnHeaderFiltersLabel: 'ফিল্টার দেখান',
|
|
122
|
+
columnHeaderSortIconLabel: 'সাজান',
|
|
123
|
+
// Rows selected footer text
|
|
124
|
+
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} টি সারি নির্বাচিত` : `${count.toLocaleString()} টি সারি নির্বাচিত`,
|
|
125
|
+
// Total row amount footer text
|
|
126
|
+
footerTotalRows: 'মোট সারি:',
|
|
127
|
+
// Total visible row amount footer text
|
|
128
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
|
|
129
|
+
// Checkbox selection text
|
|
130
|
+
checkboxSelectionHeaderName: 'চেকবক্স নির্বাচন',
|
|
131
|
+
checkboxSelectionSelectAllRows: 'সব সারি নির্বাচন করুন',
|
|
132
|
+
checkboxSelectionUnselectAllRows: 'সব সারি নির্বাচন বাতিল করুন',
|
|
133
|
+
checkboxSelectionSelectRow: 'সারি নির্বাচন করুন',
|
|
134
|
+
checkboxSelectionUnselectRow: 'সারি নির্বাচন বাতিল করুন',
|
|
135
|
+
// Boolean cell text
|
|
136
|
+
booleanCellTrueLabel: 'হ্যাঁ',
|
|
137
|
+
booleanCellFalseLabel: 'না',
|
|
138
|
+
// Actions cell more text
|
|
139
|
+
actionsCellMore: 'আরও',
|
|
140
|
+
// Column pinning text
|
|
141
|
+
pinToLeft: 'বাঁ দিকে পিন করুন',
|
|
142
|
+
pinToRight: 'ডান দিকে পিন করুন',
|
|
143
|
+
unpin: 'আনপিন করুন',
|
|
144
|
+
// Tree Data
|
|
145
|
+
treeDataGroupingHeaderName: 'গ্রুপ',
|
|
146
|
+
// treeDataExpand: 'see children',
|
|
147
|
+
// treeDataCollapse: 'hide children',
|
|
148
|
+
|
|
149
|
+
// Grouping columns
|
|
150
|
+
groupingColumnHeaderName: 'গ্রুপ',
|
|
151
|
+
groupColumn: name => `${name} অনুসারে গ্রুপ করুন`,
|
|
152
|
+
unGroupColumn: name => `${name} অনুসারে গ্রুপ বন্ধ করুন`,
|
|
153
|
+
// Master/detail
|
|
154
|
+
detailPanelToggle: 'বিস্তারিত প্যানেল টগল করুন',
|
|
155
|
+
expandDetailPanel: 'সম্প্রসারিত করুন',
|
|
156
|
+
collapseDetailPanel: 'সংকুচিত করুন',
|
|
157
|
+
// Row reordering text
|
|
158
|
+
rowReorderingHeaderName: 'সারি পুনর্বিন্যাস',
|
|
159
|
+
// Aggregation
|
|
160
|
+
aggregationMenuItemHeader: 'সংকলন',
|
|
161
|
+
aggregationFunctionLabelSum: 'যোগফল',
|
|
162
|
+
aggregationFunctionLabelAvg: 'গড়',
|
|
163
|
+
aggregationFunctionLabelMin: 'সর্বনিম্ন',
|
|
164
|
+
aggregationFunctionLabelMax: 'সর্বোচ্চ',
|
|
165
|
+
aggregationFunctionLabelSize: 'মাপ'
|
|
166
|
+
};
|
|
167
|
+
export const bnBD = getGridLocalization(bnBDGrid, bnBDCore);
|
package/esm/locales/deDE.js
CHANGED
|
@@ -4,9 +4,8 @@ const deDEGrid = {
|
|
|
4
4
|
// Root
|
|
5
5
|
noRowsLabel: 'Keine Einträge',
|
|
6
6
|
noResultsOverlayLabel: 'Keine Ergebnisse gefunden.',
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
noColumnsOverlayLabel: 'Keine Spalten',
|
|
8
|
+
noColumnsOverlayManageColumns: 'Spalten verwalten',
|
|
10
9
|
// Density selector toolbar button text
|
|
11
10
|
toolbarDensity: 'Zeilenhöhe',
|
|
12
11
|
toolbarDensityLabel: 'Zeilenhöhe',
|
|
@@ -103,8 +102,7 @@ const deDEGrid = {
|
|
|
103
102
|
'headerFilterOperator>=': 'Größer als oder gleich',
|
|
104
103
|
'headerFilterOperator<': 'Kleiner als',
|
|
105
104
|
'headerFilterOperator<=': 'Kleiner als oder gleich',
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
headerFilterClear: 'Filter löschen',
|
|
108
106
|
// Filter values text
|
|
109
107
|
filterValueAny: 'Beliebig',
|
|
110
108
|
filterValueTrue: 'Ja',
|
package/esm/locales/huHU.js
CHANGED
|
@@ -4,9 +4,8 @@ const huHUGrid = {
|
|
|
4
4
|
// Root
|
|
5
5
|
noRowsLabel: 'Nincsenek sorok',
|
|
6
6
|
noResultsOverlayLabel: 'Nincs találat.',
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
noColumnsOverlayLabel: 'Nincsenek oszlopok',
|
|
8
|
+
noColumnsOverlayManageColumns: 'Oszlopok kezelése',
|
|
10
9
|
// Density selector toolbar button text
|
|
11
10
|
toolbarDensity: 'Sormagasság',
|
|
12
11
|
toolbarDensityLabel: 'Sormagasság',
|
|
@@ -48,8 +47,7 @@ const huHUGrid = {
|
|
|
48
47
|
columnsManagementNoColumns: 'Nincsenek oszlopok',
|
|
49
48
|
columnsManagementShowHideAllText: 'Összes',
|
|
50
49
|
columnsManagementReset: 'Visszavon',
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
columnsManagementDeleteIconLabel: 'Törlés',
|
|
53
51
|
// Filter panel text
|
|
54
52
|
filterPanelAddFilter: 'Szűrő hozzáadása',
|
|
55
53
|
filterPanelRemoveAll: 'Összes törlése',
|
|
@@ -63,9 +61,9 @@ const huHUGrid = {
|
|
|
63
61
|
filterPanelInputPlaceholder: 'Érték szűrése',
|
|
64
62
|
// Filter operators text
|
|
65
63
|
filterOperatorContains: 'tartalmazza:',
|
|
66
|
-
|
|
64
|
+
filterOperatorDoesNotContain: 'nem tartalmazza',
|
|
67
65
|
filterOperatorEquals: 'egyenlő ezzel:',
|
|
68
|
-
|
|
66
|
+
filterOperatorDoesNotEqual: 'nem egyenlő',
|
|
69
67
|
filterOperatorStartsWith: 'ezzel kezdődik:',
|
|
70
68
|
filterOperatorEndsWith: 'ezzel végződik:',
|
|
71
69
|
filterOperatorIs: 'a következő:',
|
|
@@ -85,13 +83,13 @@ const huHUGrid = {
|
|
|
85
83
|
'filterOperator<=': '<=',
|
|
86
84
|
// Header filter operators text
|
|
87
85
|
headerFilterOperatorContains: 'Tartalmazza:',
|
|
88
|
-
|
|
86
|
+
headerFilterOperatorDoesNotContain: 'Nem tartalmazza',
|
|
89
87
|
headerFilterOperatorEquals: 'Egyenlő ezzel:',
|
|
90
|
-
|
|
88
|
+
headerFilterOperatorDoesNotEqual: 'Nem egyenlő',
|
|
91
89
|
headerFilterOperatorStartsWith: 'Ezzel kezdődik:',
|
|
92
90
|
headerFilterOperatorEndsWith: 'Ezzel végződik:',
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
headerFilterOperatorIs: 'Megegyezik',
|
|
92
|
+
headerFilterOperatorNot: 'Nem egyezik meg',
|
|
95
93
|
headerFilterOperatorAfter: 'Ezutáni:',
|
|
96
94
|
headerFilterOperatorOnOrAfter: 'Ekkori vagy ezutáni:',
|
|
97
95
|
headerFilterOperatorBefore: 'Ezelőtti:',
|
|
@@ -105,8 +103,7 @@ const huHUGrid = {
|
|
|
105
103
|
'headerFilterOperator>=': 'Nagyobb vagy egyenlő',
|
|
106
104
|
'headerFilterOperator<': 'Kisebb mint',
|
|
107
105
|
'headerFilterOperator<=': 'Kisebb vagy egyenlő',
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
headerFilterClear: 'Szűrő ürítése',
|
|
110
107
|
// Filter values text
|
|
111
108
|
filterValueAny: 'bármilyen',
|
|
112
109
|
filterValueTrue: 'igaz',
|
package/esm/locales/index.d.ts
CHANGED
package/esm/locales/index.js
CHANGED
package/esm/locales/ruRU.js
CHANGED
|
@@ -15,9 +15,8 @@ const ruRUGrid = {
|
|
|
15
15
|
// Root
|
|
16
16
|
noRowsLabel: 'Нет строк',
|
|
17
17
|
noResultsOverlayLabel: 'Данные не найдены.',
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
noColumnsOverlayLabel: 'Нет столбцов',
|
|
19
|
+
noColumnsOverlayManageColumns: 'Управление столбцами',
|
|
21
20
|
// Density selector toolbar button text
|
|
22
21
|
toolbarDensity: 'Высота строки',
|
|
23
22
|
toolbarDensityLabel: 'Высота строки',
|
|
@@ -42,16 +41,15 @@ const ruRUGrid = {
|
|
|
42
41
|
toolbarQuickFilterLabel: 'Поиск',
|
|
43
42
|
toolbarQuickFilterDeleteIconLabel: 'Очистить',
|
|
44
43
|
// Prompt toolbar field
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
toolbarPromptControlPlaceholder: 'Введите запрос…',
|
|
45
|
+
toolbarPromptControlWithRecordingPlaceholder: 'Введите или запишите запрос…',
|
|
46
|
+
toolbarPromptControlRecordingPlaceholder: 'Прослушивание запроса…',
|
|
47
|
+
toolbarPromptControlLabel: 'Ввод запроса',
|
|
48
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'Запись',
|
|
49
|
+
toolbarPromptControlRecordButtonActiveLabel: 'Остановить запись',
|
|
50
|
+
toolbarPromptControlSendActionLabel: 'Отправить',
|
|
51
|
+
toolbarPromptControlSendActionAriaLabel: 'Отправить запрос',
|
|
52
|
+
toolbarPromptControlErrorMessage: 'При обработке запроса произошла ошибка. Пожалуйста, повторите попытку с другим запросом.',
|
|
55
53
|
// Export selector toolbar button text
|
|
56
54
|
toolbarExport: 'Экспорт',
|
|
57
55
|
toolbarExportLabel: 'Экспорт',
|
|
@@ -63,8 +61,7 @@ const ruRUGrid = {
|
|
|
63
61
|
columnsManagementNoColumns: 'Нет столбцов',
|
|
64
62
|
columnsManagementShowHideAllText: 'Показать/Скрыть Всё',
|
|
65
63
|
columnsManagementReset: 'Сбросить',
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
columnsManagementDeleteIconLabel: 'Очистить',
|
|
68
65
|
// Filter panel text
|
|
69
66
|
filterPanelAddFilter: 'Добавить фильтр',
|
|
70
67
|
filterPanelRemoveAll: 'Очистить фильтр',
|
|
@@ -78,9 +75,9 @@ const ruRUGrid = {
|
|
|
78
75
|
filterPanelInputPlaceholder: 'Значение фильтра',
|
|
79
76
|
// Filter operators text
|
|
80
77
|
filterOperatorContains: 'содержит',
|
|
81
|
-
|
|
78
|
+
filterOperatorDoesNotContain: 'не содержит',
|
|
82
79
|
filterOperatorEquals: 'равен',
|
|
83
|
-
|
|
80
|
+
filterOperatorDoesNotEqual: 'не равен',
|
|
84
81
|
filterOperatorStartsWith: 'начинается с',
|
|
85
82
|
filterOperatorEndsWith: 'заканчивается на',
|
|
86
83
|
filterOperatorIs: 'равен',
|
|
@@ -100,9 +97,9 @@ const ruRUGrid = {
|
|
|
100
97
|
'filterOperator<=': '<=',
|
|
101
98
|
// Header filter operators text
|
|
102
99
|
headerFilterOperatorContains: 'содержит',
|
|
103
|
-
|
|
100
|
+
headerFilterOperatorDoesNotContain: 'не содержит',
|
|
104
101
|
headerFilterOperatorEquals: 'равен',
|
|
105
|
-
|
|
102
|
+
headerFilterOperatorDoesNotEqual: 'не равен',
|
|
106
103
|
headerFilterOperatorStartsWith: 'начинается с',
|
|
107
104
|
headerFilterOperatorEndsWith: 'заканчивается на',
|
|
108
105
|
headerFilterOperatorIs: 'равен',
|
|
@@ -120,8 +117,7 @@ const ruRUGrid = {
|
|
|
120
117
|
'headerFilterOperator>=': 'больше или равно',
|
|
121
118
|
'headerFilterOperator<': 'меньше чем',
|
|
122
119
|
'headerFilterOperator<=': 'меньше или равно',
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
headerFilterClear: 'Очистить фильтр',
|
|
125
121
|
// Filter values text
|
|
126
122
|
filterValueAny: 'любой',
|
|
127
123
|
filterValueTrue: 'истина',
|
package/esm/material/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GridIconSlotsComponent } from '../models';
|
|
2
2
|
import type { GridBaseSlots } from '../models/gridSlotsComponent';
|
|
3
|
+
export { useMaterialCSSVariables } from "./variables.js";
|
|
3
4
|
declare const materialSlots: GridBaseSlots & GridIconSlotsComponent;
|
|
4
5
|
export default materialSlots;
|