@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
|
@@ -24,7 +24,7 @@ var _gridRowsUtils = require("./gridRowsUtils");
|
|
|
24
24
|
var _pipeProcessing = require("../../core/pipeProcessing");
|
|
25
25
|
var _strategyProcessing = require("../../core/strategyProcessing");
|
|
26
26
|
const rowsStateInitializer = (state, props, apiRef) => {
|
|
27
|
-
const isDataSourceAvailable = !!props.
|
|
27
|
+
const isDataSourceAvailable = !!props.dataSource;
|
|
28
28
|
apiRef.current.caches.rows = (0, _gridRowsUtils.createRowsInternalCache)({
|
|
29
29
|
rows: isDataSourceAvailable ? [] : props.rows,
|
|
30
30
|
getRowId: props.getRowId,
|
|
@@ -365,16 +365,16 @@ const useGridRows = (apiRef, props) => {
|
|
|
365
365
|
throttle: false
|
|
366
366
|
});
|
|
367
367
|
}, [logger, apiRef, props.rows, props.getRowId, props.loading, props.rowCount, throttledRowsChange]);
|
|
368
|
-
const previousDataSource = (0, _useLazyRef.default)(() => props.
|
|
368
|
+
const previousDataSource = (0, _useLazyRef.default)(() => props.dataSource);
|
|
369
369
|
const handleStrategyProcessorChange = React.useCallback(methodName => {
|
|
370
|
-
if (props.
|
|
371
|
-
previousDataSource.current = props.
|
|
370
|
+
if (props.dataSource && props.dataSource !== previousDataSource.current) {
|
|
371
|
+
previousDataSource.current = props.dataSource;
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
374
|
if (methodName === 'rowTreeCreation') {
|
|
375
375
|
groupRows();
|
|
376
376
|
}
|
|
377
|
-
}, [groupRows, previousDataSource, props.
|
|
377
|
+
}, [groupRows, previousDataSource, props.dataSource]);
|
|
378
378
|
const handleStrategyActivityChange = React.useCallback(() => {
|
|
379
379
|
// `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.
|
|
380
380
|
// All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.
|
|
@@ -425,7 +425,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
425
425
|
isRowCountPropUpdated = true;
|
|
426
426
|
lastRowCount.current = props.rowCount;
|
|
427
427
|
}
|
|
428
|
-
const currentRows = props.
|
|
428
|
+
const currentRows = props.dataSource ? Array.from(apiRef.current.getRowModels().values()) : props.rows;
|
|
429
429
|
const areNewRowsAlreadyInState = apiRef.current.caches.rows.rowsBeforePartialUpdates === currentRows;
|
|
430
430
|
const isNewLoadingAlreadyInState = apiRef.current.caches.rows.loadingPropBeforePartialUpdates === props.loading;
|
|
431
431
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
@@ -464,6 +464,6 @@ const useGridRows = (apiRef, props) => {
|
|
|
464
464
|
}),
|
|
465
465
|
throttle: false
|
|
466
466
|
});
|
|
467
|
-
}, [props.rows, props.rowCount, props.getRowId, props.loading, props.
|
|
467
|
+
}, [props.rows, props.rowCount, props.getRowId, props.loading, props.dataSource, logger, throttledRowsChange, apiRef]);
|
|
468
468
|
};
|
|
469
469
|
exports.useGridRows = useGridRows;
|
|
@@ -12,7 +12,8 @@ exports.useGridVirtualScroller = void 0;
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
var React = _interopRequireWildcard(require("react"));
|
|
14
14
|
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
15
|
-
var
|
|
15
|
+
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
16
|
+
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
16
17
|
var _useLazyRef = _interopRequireDefault(require("@mui/utils/useLazyRef"));
|
|
17
18
|
var _useTimeout = _interopRequireDefault(require("@mui/utils/useTimeout"));
|
|
18
19
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
@@ -25,10 +26,9 @@ var _useRunOnce = require("../../utils/useRunOnce");
|
|
|
25
26
|
var _gridColumnsSelector = require("../columns/gridColumnsSelector");
|
|
26
27
|
var _gridRowsSelector = require("../rows/gridRowsSelector");
|
|
27
28
|
var _useGridVisibleRows = require("../../utils/useGridVisibleRows");
|
|
28
|
-
var
|
|
29
|
+
var _utils = require("../../utils");
|
|
29
30
|
var platform = _interopRequireWildcard(require("../../../utils/platform"));
|
|
30
|
-
var
|
|
31
|
-
var _gridRowSelectionSelector = require("../rowSelection/gridRowSelectionSelector");
|
|
31
|
+
var _utils2 = require("../../../utils/utils");
|
|
32
32
|
var _gridRowsMetaSelector = require("../rows/gridRowsMetaSelector");
|
|
33
33
|
var _gridColumnsUtils = require("../columns/gridColumnsUtils");
|
|
34
34
|
var _gridVirtualizationSelectors = require("./gridVirtualizationSelectors");
|
|
@@ -40,6 +40,7 @@ var _columns = require("../columns");
|
|
|
40
40
|
var _gridFocusedVirtualCellSelector = require("./gridFocusedVirtualCellSelector");
|
|
41
41
|
var _roundToDecimalPlaces = require("../../../utils/roundToDecimalPlaces");
|
|
42
42
|
var _isJSDOM = require("../../../utils/isJSDOM");
|
|
43
|
+
var _rowSelection = require("../rowSelection");
|
|
43
44
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
44
45
|
const MINIMUM_COLUMN_WIDTH = 50;
|
|
45
46
|
var ScrollDirection = /*#__PURE__*/function (ScrollDirection) {
|
|
@@ -74,7 +75,7 @@ const useGridVirtualScroller = () => {
|
|
|
74
75
|
const hasBottomPinnedRows = pinnedRows.bottom.length > 0;
|
|
75
76
|
const [panels, setPanels] = React.useState(EMPTY_DETAIL_PANELS);
|
|
76
77
|
const isRtl = (0, _RtlProvider.useRtl)();
|
|
77
|
-
const
|
|
78
|
+
const rowSelectionManager = (0, _useGridSelector.useGridSelector)(apiRef, _rowSelection.gridRowSelectionManagerSelector);
|
|
78
79
|
const currentPage = (0, _useGridVisibleRows.useGridVisibleRows)(apiRef);
|
|
79
80
|
const mainRef = apiRef.current.mainElementRef;
|
|
80
81
|
const scrollerRef = apiRef.current.virtualScrollerRef;
|
|
@@ -178,7 +179,7 @@ const useGridVirtualScroller = () => {
|
|
|
178
179
|
}
|
|
179
180
|
previousContextScrollPosition.current = scrollPosition.current;
|
|
180
181
|
}, [apiRef]);
|
|
181
|
-
const triggerUpdateRenderContext = (0,
|
|
182
|
+
const triggerUpdateRenderContext = (0, _useEventCallback.default)(() => {
|
|
182
183
|
const scroller = scrollerRef.current;
|
|
183
184
|
if (!scroller) {
|
|
184
185
|
return undefined;
|
|
@@ -189,8 +190,8 @@ const useGridVirtualScroller = () => {
|
|
|
189
190
|
|
|
190
191
|
// Clamp the scroll position to the viewport to avoid re-calculating the render context for scroll bounce
|
|
191
192
|
const newScroll = {
|
|
192
|
-
top: (0,
|
|
193
|
-
left: isRtl ? (0,
|
|
193
|
+
top: (0, _utils2.clamp)(scroller.scrollTop, 0, maxScrollTop),
|
|
194
|
+
left: isRtl ? (0, _utils2.clamp)(scroller.scrollLeft, -maxScrollLeft, 0) : (0, _utils2.clamp)(scroller.scrollLeft, 0, maxScrollLeft)
|
|
194
195
|
};
|
|
195
196
|
const dx = newScroll.left - scrollPosition.current.left;
|
|
196
197
|
const dy = newScroll.top - scrollPosition.current.top;
|
|
@@ -247,7 +248,7 @@ const useGridVirtualScroller = () => {
|
|
|
247
248
|
frozenContext.current = undefined;
|
|
248
249
|
updateRenderContext(nextRenderContext);
|
|
249
250
|
};
|
|
250
|
-
const handleScroll = (0,
|
|
251
|
+
const handleScroll = (0, _useEventCallback.default)(() => {
|
|
251
252
|
if (ignoreNextScrollEvent.current) {
|
|
252
253
|
ignoreNextScrollEvent.current = false;
|
|
253
254
|
return;
|
|
@@ -259,10 +260,10 @@ const useGridVirtualScroller = () => {
|
|
|
259
260
|
renderContext: nextRenderContext
|
|
260
261
|
});
|
|
261
262
|
});
|
|
262
|
-
const handleWheel = (0,
|
|
263
|
+
const handleWheel = (0, _useEventCallback.default)(event => {
|
|
263
264
|
apiRef.current.publishEvent('virtualScrollerWheel', {}, event);
|
|
264
265
|
});
|
|
265
|
-
const handleTouchMove = (0,
|
|
266
|
+
const handleTouchMove = (0, _useEventCallback.default)(event => {
|
|
266
267
|
apiRef.current.publishEvent('virtualScrollerTouchMove', {}, event);
|
|
267
268
|
});
|
|
268
269
|
const getRows = (params = {}) => {
|
|
@@ -294,7 +295,7 @@ const useGridVirtualScroller = () => {
|
|
|
294
295
|
const rowModels = params.rows ?? currentPage.rows;
|
|
295
296
|
const firstRowToRender = baseRenderContext.firstRowIndex;
|
|
296
297
|
const lastRowToRender = Math.min(baseRenderContext.lastRowIndex, rowModels.length);
|
|
297
|
-
const rowIndexes = params.rows ? (0,
|
|
298
|
+
const rowIndexes = params.rows ? (0, _utils2.range)(0, params.rows.length) : (0, _utils2.range)(firstRowToRender, lastRowToRender);
|
|
298
299
|
let virtualRowIndex = -1;
|
|
299
300
|
if (!isPinnedSection && focusedVirtualCell) {
|
|
300
301
|
if (focusedVirtualCell.rowIndex < firstRowToRender) {
|
|
@@ -344,12 +345,7 @@ const useGridVirtualScroller = () => {
|
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
const baseRowHeight = !apiRef.current.rowHasAutoHeight(id) ? apiRef.current.unstable_getRowHeight(id) : 'auto';
|
|
347
|
-
|
|
348
|
-
if (selectedRowsLookup[id] == null) {
|
|
349
|
-
isSelected = false;
|
|
350
|
-
} else {
|
|
351
|
-
isSelected = apiRef.current.isRowSelectable(id);
|
|
352
|
-
}
|
|
348
|
+
const isSelected = rowSelectionManager.has(id) && apiRef.current.isRowSelectable(id);
|
|
353
349
|
let isFirstVisible = false;
|
|
354
350
|
if (params.position === undefined) {
|
|
355
351
|
isFirstVisible = rowIndexInPage === 0;
|
|
@@ -436,13 +432,13 @@ const useGridVirtualScroller = () => {
|
|
|
436
432
|
contentHeight
|
|
437
433
|
});
|
|
438
434
|
}, [apiRef, columnsTotalWidth, contentHeight]);
|
|
439
|
-
(0,
|
|
435
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
440
436
|
if (!isRenderContextReady.current) {
|
|
441
437
|
return;
|
|
442
438
|
}
|
|
443
439
|
apiRef.current.updateRenderContext?.();
|
|
444
440
|
}, [apiRef, enabledForColumns, enabledForRows]);
|
|
445
|
-
(0,
|
|
441
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
446
442
|
if (listView) {
|
|
447
443
|
scrollerRef.current.scrollLeft = 0;
|
|
448
444
|
}
|
|
@@ -504,9 +500,9 @@ const useGridVirtualScroller = () => {
|
|
|
504
500
|
apiRef.current.register('private', {
|
|
505
501
|
updateRenderContext: forceUpdateRenderContext
|
|
506
502
|
});
|
|
507
|
-
(0,
|
|
508
|
-
(0,
|
|
509
|
-
(0,
|
|
503
|
+
(0, _utils.useGridApiOptionHandler)(apiRef, 'sortedRowsSet', forceUpdateRenderContext);
|
|
504
|
+
(0, _utils.useGridApiOptionHandler)(apiRef, 'paginationModelChange', forceUpdateRenderContext);
|
|
505
|
+
(0, _utils.useGridApiOptionHandler)(apiRef, 'columnsChange', forceUpdateRenderContext);
|
|
510
506
|
return {
|
|
511
507
|
renderContext,
|
|
512
508
|
setPanels,
|
|
@@ -660,7 +656,7 @@ function getNearestIndexToRender(inputs, offset, options) {
|
|
|
660
656
|
// Check if all rows in this page are already measured
|
|
661
657
|
allRowsMeasured = lastMeasuredIndexRelativeToAllRows >= inputs.range.lastRowIndex;
|
|
662
658
|
}
|
|
663
|
-
const lastMeasuredIndexRelativeToCurrentPage = (0,
|
|
659
|
+
const lastMeasuredIndexRelativeToCurrentPage = (0, _utils2.clamp)(lastMeasuredIndexRelativeToAllRows - (inputs.range?.firstRowIndex || 0), 0, inputs.rowsMeta.positions.length);
|
|
664
660
|
if (allRowsMeasured || inputs.rowsMeta.positions[lastMeasuredIndexRelativeToCurrentPage] >= offset) {
|
|
665
661
|
// If all rows were measured (when no row has "auto" as height) or all rows before the offset
|
|
666
662
|
// were measured, then use a binary search because it's faster.
|
|
@@ -763,7 +759,7 @@ function getIndexesToRender({
|
|
|
763
759
|
lastPosition: positions[positions.length - 1] + lastSize
|
|
764
760
|
});
|
|
765
761
|
const lastIndexPadded = binarySearch(lastPosition, positions);
|
|
766
|
-
return [(0,
|
|
762
|
+
return [(0, _utils2.clamp)(firstIndexPadded, minFirstIndex, maxLastIndex), (0, _utils2.clamp)(lastIndexPadded, minFirstIndex, maxLastIndex)];
|
|
767
763
|
}
|
|
768
764
|
function areRenderContextsEqual(context1, context2) {
|
|
769
765
|
if (context1 === context2) {
|
|
@@ -8,8 +8,12 @@ exports.useGridSelector = exports.objectShallowCompare = exports.argsEqual = voi
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _fastObjectShallowCompare = require("@mui/x-internals/fastObjectShallowCompare");
|
|
10
10
|
var _warning = require("@mui/x-internals/warning");
|
|
11
|
-
var
|
|
11
|
+
var _index = require("use-sync-external-store/shim/index.js");
|
|
12
12
|
var _useLazyRef = require("./useLazyRef");
|
|
13
|
+
// use-sync-external-store has no exports field defined
|
|
14
|
+
// See https://github.com/facebook/react/issues/30698
|
|
15
|
+
// eslint-disable-next-line import/extensions
|
|
16
|
+
|
|
13
17
|
const defaultCompare = Object.is;
|
|
14
18
|
const objectShallowCompare = exports.objectShallowCompare = _fastObjectShallowCompare.fastObjectShallowCompare;
|
|
15
19
|
const arrayShallowCompare = (a, b) => {
|
|
@@ -83,7 +87,7 @@ const useGridSelector = (apiRef, selector, args = undefined, equals = defaultCom
|
|
|
83
87
|
};
|
|
84
88
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
89
|
}, EMPTY);
|
|
86
|
-
(0,
|
|
90
|
+
(0, _index.useSyncExternalStore)(unsubscribe, subscribe, emptyGetSnapshot);
|
|
87
91
|
return state;
|
|
88
92
|
};
|
|
89
93
|
exports.useGridSelector = useGridSelector;
|
package/hooks/utils/useIsSSR.js
CHANGED
|
@@ -4,9 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useIsSSR = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _index = require("use-sync-external-store/shim/index.js");
|
|
8
|
+
// use-sync-external-store has no exports field defined
|
|
9
|
+
// See https://github.com/facebook/react/issues/30698
|
|
10
|
+
// eslint-disable-next-line import/extensions
|
|
11
|
+
|
|
8
12
|
const emptySubscribe = () => () => {};
|
|
9
13
|
const clientSnapshot = () => false;
|
|
10
14
|
const serverSnapshot = () => true;
|
|
11
|
-
const useIsSSR = () => (0,
|
|
15
|
+
const useIsSSR = () => (0, _index.useSyncExternalStore)(emptySubscribe, clientSnapshot, serverSnapshot);
|
|
12
16
|
exports.useIsSSR = useIsSSR;
|
package/index.js
CHANGED
package/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/internals/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var _exportNames = {
|
|
|
10
10
|
GridHeaders: true,
|
|
11
11
|
GridBaseColumnHeaders: true,
|
|
12
12
|
DATA_GRID_DEFAULT_SLOTS_COMPONENTS: true,
|
|
13
|
+
vars: true,
|
|
13
14
|
propsStateInitializer: true,
|
|
14
15
|
getGridFilter: true,
|
|
15
16
|
getValueOptions: true,
|
|
@@ -61,6 +62,7 @@ var _exportNames = {
|
|
|
61
62
|
buildRootGroup: true,
|
|
62
63
|
getRowIdFromRowModel: true,
|
|
63
64
|
GRID_ID_AUTOGENERATED: true,
|
|
65
|
+
getRowValue: true,
|
|
64
66
|
useGridRowsMeta: true,
|
|
65
67
|
rowsMetaStateInitializer: true,
|
|
66
68
|
useGridParamsApi: true,
|
|
@@ -322,6 +324,12 @@ Object.defineProperty(exports, "getRowIdFromRowModel", {
|
|
|
322
324
|
return _gridRowsUtils.getRowIdFromRowModel;
|
|
323
325
|
}
|
|
324
326
|
});
|
|
327
|
+
Object.defineProperty(exports, "getRowValue", {
|
|
328
|
+
enumerable: true,
|
|
329
|
+
get: function () {
|
|
330
|
+
return _gridRowsUtils.getRowValue;
|
|
331
|
+
}
|
|
332
|
+
});
|
|
325
333
|
Object.defineProperty(exports, "getTreeNodeDescendants", {
|
|
326
334
|
enumerable: true,
|
|
327
335
|
get: function () {
|
|
@@ -754,6 +762,12 @@ Object.defineProperty(exports, "useTimeout", {
|
|
|
754
762
|
return _useTimeout.useTimeout;
|
|
755
763
|
}
|
|
756
764
|
});
|
|
765
|
+
Object.defineProperty(exports, "vars", {
|
|
766
|
+
enumerable: true,
|
|
767
|
+
get: function () {
|
|
768
|
+
return _cssVariables.vars;
|
|
769
|
+
}
|
|
770
|
+
});
|
|
757
771
|
var _GridVirtualScroller = require("../components/virtualization/GridVirtualScroller");
|
|
758
772
|
var _GridVirtualScrollerContent = require("../components/virtualization/GridVirtualScrollerContent");
|
|
759
773
|
var _GridVirtualScrollerRenderZone = require("../components/virtualization/GridVirtualScrollerRenderZone");
|
|
@@ -772,6 +786,7 @@ Object.keys(_signature).forEach(function (key) {
|
|
|
772
786
|
}
|
|
773
787
|
});
|
|
774
788
|
});
|
|
789
|
+
var _cssVariables = require("../constants/cssVariables");
|
|
775
790
|
var _useGridProps = require("../hooks/core/useGridProps");
|
|
776
791
|
var _GridFilterPanel = require("../components/panel/filterPanel/GridFilterPanel");
|
|
777
792
|
var _filterPanelUtils = require("../components/panel/filterPanel/filterPanelUtils");
|
|
@@ -8,7 +8,7 @@ exports.validateProps = validateProps;
|
|
|
8
8
|
var _warning = require("@mui/x-internals/warning");
|
|
9
9
|
var _utils = require("../../utils/utils");
|
|
10
10
|
var _signature = require("../../constants/signature");
|
|
11
|
-
const propValidatorsDataGrid = exports.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 === _signature.GridSignature.DataGrid && props.paginationMode === 'client' && (0, _utils.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.
|
|
11
|
+
const propValidatorsDataGrid = exports.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 === _signature.GridSignature.DataGrid && props.paginationMode === 'client' && (0, _utils.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];
|
|
12
12
|
function validateProps(props, validators) {
|
|
13
13
|
validators.forEach(validator => {
|
|
14
14
|
const message = validator(props);
|
package/locales/bnBD.js
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.bnBD = void 0;
|
|
7
|
+
var _locale = require("@mui/material/locale");
|
|
8
|
+
var _getGridLocalization = require("../utils/getGridLocalization");
|
|
9
|
+
const bnBDGrid = {
|
|
10
|
+
// Root
|
|
11
|
+
noRowsLabel: 'কোনো সারি নেই',
|
|
12
|
+
noResultsOverlayLabel: 'কোনো ফলাফল পাওয়া যায়নি।',
|
|
13
|
+
noColumnsOverlayLabel: 'কোনো কলাম নেই',
|
|
14
|
+
noColumnsOverlayManageColumns: 'কলাম পরিচালনা করুন',
|
|
15
|
+
// Density selector toolbar button text
|
|
16
|
+
toolbarDensity: 'ঘনত্ব',
|
|
17
|
+
toolbarDensityLabel: 'ঘনত্ব',
|
|
18
|
+
toolbarDensityCompact: 'সংকুচিত',
|
|
19
|
+
toolbarDensityStandard: 'মানক',
|
|
20
|
+
toolbarDensityComfortable: 'স্বাচ্ছন্দ্যদায়ক',
|
|
21
|
+
// Columns selector toolbar button text
|
|
22
|
+
toolbarColumns: 'কলাম',
|
|
23
|
+
toolbarColumnsLabel: 'কলাম নির্বাচন করুন',
|
|
24
|
+
// Filters toolbar button text
|
|
25
|
+
toolbarFilters: 'ফিল্টার',
|
|
26
|
+
toolbarFiltersLabel: 'ফিল্টার দেখান',
|
|
27
|
+
toolbarFiltersTooltipHide: 'ফিল্টার লুকান',
|
|
28
|
+
toolbarFiltersTooltipShow: 'ফিল্টার দেখান',
|
|
29
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} টি সক্রিয় ফিল্টার` : `${count} টি সক্রিয় ফিল্টার`,
|
|
30
|
+
// Quick filter toolbar field
|
|
31
|
+
toolbarQuickFilterPlaceholder: 'অনুসন্ধান করুন…',
|
|
32
|
+
toolbarQuickFilterLabel: 'অনুসন্ধান',
|
|
33
|
+
toolbarQuickFilterDeleteIconLabel: 'পরিষ্কার করুন',
|
|
34
|
+
// Prompt toolbar field
|
|
35
|
+
toolbarPromptControlPlaceholder: 'একটি প্রম্পট লিখুন…',
|
|
36
|
+
toolbarPromptControlWithRecordingPlaceholder: 'লিখুন বা রেকর্ড করুন…',
|
|
37
|
+
toolbarPromptControlRecordingPlaceholder: 'শুনছে…',
|
|
38
|
+
toolbarPromptControlLabel: 'প্রম্পট ইনপুট',
|
|
39
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'রেকর্ড',
|
|
40
|
+
toolbarPromptControlRecordButtonActiveLabel: 'রেকর্ড বন্ধ করুন',
|
|
41
|
+
toolbarPromptControlSendActionLabel: 'পাঠান',
|
|
42
|
+
toolbarPromptControlSendActionAriaLabel: 'প্রম্পট পাঠান',
|
|
43
|
+
toolbarPromptControlErrorMessage: 'অনুরোধ প্রক্রিয়াকরণে সমস্যা হয়েছে। অনুগ্রহ করে অন্য প্রম্পট দিয়ে আবার চেষ্টা করুন।',
|
|
44
|
+
// Export selector toolbar button text
|
|
45
|
+
toolbarExport: 'এক্সপোর্ট',
|
|
46
|
+
toolbarExportLabel: 'এক্সপোর্ট',
|
|
47
|
+
toolbarExportCSV: 'CSV হিসাবে ডাউনলোড করুন',
|
|
48
|
+
toolbarExportPrint: 'প্রিন্ট করুন',
|
|
49
|
+
toolbarExportExcel: 'Excel হিসাবে ডাউনলোড করুন',
|
|
50
|
+
// Columns management text
|
|
51
|
+
columnsManagementSearchTitle: 'অনুসন্ধান',
|
|
52
|
+
columnsManagementNoColumns: 'কোনো কলাম নেই',
|
|
53
|
+
columnsManagementShowHideAllText: 'সব দেখান/লুকান',
|
|
54
|
+
columnsManagementReset: 'রিসেট',
|
|
55
|
+
columnsManagementDeleteIconLabel: 'পরিষ্কার',
|
|
56
|
+
// Filter panel text
|
|
57
|
+
filterPanelAddFilter: 'ফিল্টার যোগ করুন',
|
|
58
|
+
filterPanelRemoveAll: 'সব সরান',
|
|
59
|
+
filterPanelDeleteIconLabel: 'মুছুন',
|
|
60
|
+
filterPanelLogicOperator: 'লজিক অপারেটর',
|
|
61
|
+
filterPanelOperator: 'অপারেটর',
|
|
62
|
+
filterPanelOperatorAnd: 'এবং',
|
|
63
|
+
filterPanelOperatorOr: 'অথবা',
|
|
64
|
+
filterPanelColumns: 'কলাম',
|
|
65
|
+
filterPanelInputLabel: 'মান',
|
|
66
|
+
filterPanelInputPlaceholder: 'ফিল্টার মান',
|
|
67
|
+
// Filter operators text
|
|
68
|
+
filterOperatorContains: 'অন্তর্ভুক্ত',
|
|
69
|
+
filterOperatorDoesNotContain: 'অন্তর্ভুক্ত নয়',
|
|
70
|
+
filterOperatorEquals: 'সমান',
|
|
71
|
+
filterOperatorDoesNotEqual: 'সমান নয়',
|
|
72
|
+
filterOperatorStartsWith: 'দিয়ে শুরু হয়',
|
|
73
|
+
filterOperatorEndsWith: 'দিয়ে শেষ হয়',
|
|
74
|
+
filterOperatorIs: 'হচ্ছে',
|
|
75
|
+
filterOperatorNot: 'হচ্ছে না',
|
|
76
|
+
filterOperatorAfter: 'পরবর্তী',
|
|
77
|
+
filterOperatorOnOrAfter: 'এই তারিখ বা পরবর্তী',
|
|
78
|
+
filterOperatorBefore: 'পূর্ববর্তী',
|
|
79
|
+
filterOperatorOnOrBefore: 'এই তারিখ বা পূর্ববর্তী',
|
|
80
|
+
filterOperatorIsEmpty: 'খালি',
|
|
81
|
+
filterOperatorIsNotEmpty: 'খালি নয়',
|
|
82
|
+
filterOperatorIsAnyOf: 'এর যেকোনো একটি',
|
|
83
|
+
'filterOperator=': '=',
|
|
84
|
+
'filterOperator!=': '!=',
|
|
85
|
+
'filterOperator>': '>',
|
|
86
|
+
'filterOperator>=': '>=',
|
|
87
|
+
'filterOperator<': '<',
|
|
88
|
+
'filterOperator<=': '<=',
|
|
89
|
+
// Header filter operators text
|
|
90
|
+
headerFilterOperatorContains: 'অন্তর্ভুক্ত',
|
|
91
|
+
headerFilterOperatorDoesNotContain: 'অন্তর্ভুক্ত নয়',
|
|
92
|
+
headerFilterOperatorEquals: 'সমান',
|
|
93
|
+
headerFilterOperatorDoesNotEqual: 'সমান নয়',
|
|
94
|
+
headerFilterOperatorStartsWith: 'দিয়ে শুরু হয়',
|
|
95
|
+
headerFilterOperatorEndsWith: 'দিয়ে শেষ হয়',
|
|
96
|
+
headerFilterOperatorIs: 'হচ্ছে',
|
|
97
|
+
headerFilterOperatorNot: 'হচ্ছে না',
|
|
98
|
+
headerFilterOperatorAfter: 'পরবর্তী',
|
|
99
|
+
headerFilterOperatorOnOrAfter: 'এই তারিখ বা পরবর্তী',
|
|
100
|
+
headerFilterOperatorBefore: 'পূর্ববর্তী',
|
|
101
|
+
headerFilterOperatorOnOrBefore: 'এই তারিখ বা পূর্ববর্তী',
|
|
102
|
+
headerFilterOperatorIsEmpty: 'খালি',
|
|
103
|
+
headerFilterOperatorIsNotEmpty: 'খালি নয়',
|
|
104
|
+
headerFilterOperatorIsAnyOf: 'এর যেকোনো একটি',
|
|
105
|
+
'headerFilterOperator=': 'সমান',
|
|
106
|
+
'headerFilterOperator!=': 'সমান নয়',
|
|
107
|
+
'headerFilterOperator>': 'বড়',
|
|
108
|
+
'headerFilterOperator>=': 'বড় বা সমান',
|
|
109
|
+
'headerFilterOperator<': 'ছোট',
|
|
110
|
+
'headerFilterOperator<=': 'ছোট বা সমান',
|
|
111
|
+
headerFilterClear: 'ফিল্টার মুছুন',
|
|
112
|
+
// Filter values text
|
|
113
|
+
filterValueAny: 'যেকোনো',
|
|
114
|
+
filterValueTrue: 'সত্য',
|
|
115
|
+
filterValueFalse: 'মিথ্যা',
|
|
116
|
+
// Column menu text
|
|
117
|
+
columnMenuLabel: 'মেনু',
|
|
118
|
+
columnMenuShowColumns: 'কলাম দেখান',
|
|
119
|
+
columnMenuManageColumns: 'কলাম পরিচালনা করুন',
|
|
120
|
+
columnMenuFilter: 'ফিল্টার',
|
|
121
|
+
columnMenuHideColumn: 'কলাম লুকান',
|
|
122
|
+
columnMenuUnsort: 'সাজানো বাতিল করুন',
|
|
123
|
+
columnMenuSortAsc: 'ASC অনুযায়ী সাজান',
|
|
124
|
+
columnMenuSortDesc: 'DESC অনুযায়ী সাজান',
|
|
125
|
+
// Column header text
|
|
126
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} টি সক্রিয় ফিল্টার` : `${count} টি সক্রিয় ফিল্টার`,
|
|
127
|
+
columnHeaderFiltersLabel: 'ফিল্টার দেখান',
|
|
128
|
+
columnHeaderSortIconLabel: 'সাজান',
|
|
129
|
+
// Rows selected footer text
|
|
130
|
+
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} টি সারি নির্বাচিত` : `${count.toLocaleString()} টি সারি নির্বাচিত`,
|
|
131
|
+
// Total row amount footer text
|
|
132
|
+
footerTotalRows: 'মোট সারি:',
|
|
133
|
+
// Total visible row amount footer text
|
|
134
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
|
|
135
|
+
// Checkbox selection text
|
|
136
|
+
checkboxSelectionHeaderName: 'চেকবক্স নির্বাচন',
|
|
137
|
+
checkboxSelectionSelectAllRows: 'সব সারি নির্বাচন করুন',
|
|
138
|
+
checkboxSelectionUnselectAllRows: 'সব সারি নির্বাচন বাতিল করুন',
|
|
139
|
+
checkboxSelectionSelectRow: 'সারি নির্বাচন করুন',
|
|
140
|
+
checkboxSelectionUnselectRow: 'সারি নির্বাচন বাতিল করুন',
|
|
141
|
+
// Boolean cell text
|
|
142
|
+
booleanCellTrueLabel: 'হ্যাঁ',
|
|
143
|
+
booleanCellFalseLabel: 'না',
|
|
144
|
+
// Actions cell more text
|
|
145
|
+
actionsCellMore: 'আরও',
|
|
146
|
+
// Column pinning text
|
|
147
|
+
pinToLeft: 'বাঁ দিকে পিন করুন',
|
|
148
|
+
pinToRight: 'ডান দিকে পিন করুন',
|
|
149
|
+
unpin: 'আনপিন করুন',
|
|
150
|
+
// Tree Data
|
|
151
|
+
treeDataGroupingHeaderName: 'গ্রুপ',
|
|
152
|
+
// treeDataExpand: 'see children',
|
|
153
|
+
// treeDataCollapse: 'hide children',
|
|
154
|
+
|
|
155
|
+
// Grouping columns
|
|
156
|
+
groupingColumnHeaderName: 'গ্রুপ',
|
|
157
|
+
groupColumn: name => `${name} অনুসারে গ্রুপ করুন`,
|
|
158
|
+
unGroupColumn: name => `${name} অনুসারে গ্রুপ বন্ধ করুন`,
|
|
159
|
+
// Master/detail
|
|
160
|
+
detailPanelToggle: 'বিস্তারিত প্যানেল টগল করুন',
|
|
161
|
+
expandDetailPanel: 'সম্প্রসারিত করুন',
|
|
162
|
+
collapseDetailPanel: 'সংকুচিত করুন',
|
|
163
|
+
// Row reordering text
|
|
164
|
+
rowReorderingHeaderName: 'সারি পুনর্বিন্যাস',
|
|
165
|
+
// Aggregation
|
|
166
|
+
aggregationMenuItemHeader: 'সংকলন',
|
|
167
|
+
aggregationFunctionLabelSum: 'যোগফল',
|
|
168
|
+
aggregationFunctionLabelAvg: 'গড়',
|
|
169
|
+
aggregationFunctionLabelMin: 'সর্বনিম্ন',
|
|
170
|
+
aggregationFunctionLabelMax: 'সর্বোচ্চ',
|
|
171
|
+
aggregationFunctionLabelSize: 'মাপ'
|
|
172
|
+
};
|
|
173
|
+
const bnBD = exports.bnBD = (0, _getGridLocalization.getGridLocalization)(bnBDGrid, _locale.bnBD);
|
package/locales/deDE.js
CHANGED
|
@@ -10,9 +10,8 @@ const deDEGrid = {
|
|
|
10
10
|
// Root
|
|
11
11
|
noRowsLabel: 'Keine Einträge',
|
|
12
12
|
noResultsOverlayLabel: 'Keine Ergebnisse gefunden.',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
noColumnsOverlayLabel: 'Keine Spalten',
|
|
14
|
+
noColumnsOverlayManageColumns: 'Spalten verwalten',
|
|
16
15
|
// Density selector toolbar button text
|
|
17
16
|
toolbarDensity: 'Zeilenhöhe',
|
|
18
17
|
toolbarDensityLabel: 'Zeilenhöhe',
|
|
@@ -109,8 +108,7 @@ const deDEGrid = {
|
|
|
109
108
|
'headerFilterOperator>=': 'Größer als oder gleich',
|
|
110
109
|
'headerFilterOperator<': 'Kleiner als',
|
|
111
110
|
'headerFilterOperator<=': 'Kleiner als oder gleich',
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
headerFilterClear: 'Filter löschen',
|
|
114
112
|
// Filter values text
|
|
115
113
|
filterValueAny: 'Beliebig',
|
|
116
114
|
filterValueTrue: 'Ja',
|
package/locales/huHU.js
CHANGED
|
@@ -10,9 +10,8 @@ const huHUGrid = {
|
|
|
10
10
|
// Root
|
|
11
11
|
noRowsLabel: 'Nincsenek sorok',
|
|
12
12
|
noResultsOverlayLabel: 'Nincs találat.',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
noColumnsOverlayLabel: 'Nincsenek oszlopok',
|
|
14
|
+
noColumnsOverlayManageColumns: 'Oszlopok kezelése',
|
|
16
15
|
// Density selector toolbar button text
|
|
17
16
|
toolbarDensity: 'Sormagasság',
|
|
18
17
|
toolbarDensityLabel: 'Sormagasság',
|
|
@@ -54,8 +53,7 @@ const huHUGrid = {
|
|
|
54
53
|
columnsManagementNoColumns: 'Nincsenek oszlopok',
|
|
55
54
|
columnsManagementShowHideAllText: 'Összes',
|
|
56
55
|
columnsManagementReset: 'Visszavon',
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
columnsManagementDeleteIconLabel: 'Törlés',
|
|
59
57
|
// Filter panel text
|
|
60
58
|
filterPanelAddFilter: 'Szűrő hozzáadása',
|
|
61
59
|
filterPanelRemoveAll: 'Összes törlése',
|
|
@@ -69,9 +67,9 @@ const huHUGrid = {
|
|
|
69
67
|
filterPanelInputPlaceholder: 'Érték szűrése',
|
|
70
68
|
// Filter operators text
|
|
71
69
|
filterOperatorContains: 'tartalmazza:',
|
|
72
|
-
|
|
70
|
+
filterOperatorDoesNotContain: 'nem tartalmazza',
|
|
73
71
|
filterOperatorEquals: 'egyenlő ezzel:',
|
|
74
|
-
|
|
72
|
+
filterOperatorDoesNotEqual: 'nem egyenlő',
|
|
75
73
|
filterOperatorStartsWith: 'ezzel kezdődik:',
|
|
76
74
|
filterOperatorEndsWith: 'ezzel végződik:',
|
|
77
75
|
filterOperatorIs: 'a következő:',
|
|
@@ -91,13 +89,13 @@ const huHUGrid = {
|
|
|
91
89
|
'filterOperator<=': '<=',
|
|
92
90
|
// Header filter operators text
|
|
93
91
|
headerFilterOperatorContains: 'Tartalmazza:',
|
|
94
|
-
|
|
92
|
+
headerFilterOperatorDoesNotContain: 'Nem tartalmazza',
|
|
95
93
|
headerFilterOperatorEquals: 'Egyenlő ezzel:',
|
|
96
|
-
|
|
94
|
+
headerFilterOperatorDoesNotEqual: 'Nem egyenlő',
|
|
97
95
|
headerFilterOperatorStartsWith: 'Ezzel kezdődik:',
|
|
98
96
|
headerFilterOperatorEndsWith: 'Ezzel végződik:',
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
headerFilterOperatorIs: 'Megegyezik',
|
|
98
|
+
headerFilterOperatorNot: 'Nem egyezik meg',
|
|
101
99
|
headerFilterOperatorAfter: 'Ezutáni:',
|
|
102
100
|
headerFilterOperatorOnOrAfter: 'Ekkori vagy ezutáni:',
|
|
103
101
|
headerFilterOperatorBefore: 'Ezelőtti:',
|
|
@@ -111,8 +109,7 @@ const huHUGrid = {
|
|
|
111
109
|
'headerFilterOperator>=': 'Nagyobb vagy egyenlő',
|
|
112
110
|
'headerFilterOperator<': 'Kisebb mint',
|
|
113
111
|
'headerFilterOperator<=': 'Kisebb vagy egyenlő',
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
headerFilterClear: 'Szűrő ürítése',
|
|
116
113
|
// Filter values text
|
|
117
114
|
filterValueAny: 'bármilyen',
|
|
118
115
|
filterValueTrue: 'igaz',
|
package/locales/index.d.ts
CHANGED
package/locales/index.js
CHANGED
|
@@ -36,6 +36,17 @@ Object.keys(_bgBG).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _bnBD = require("./bnBD");
|
|
40
|
+
Object.keys(_bnBD).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _bnBD[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _bnBD[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
var _csCZ = require("./csCZ");
|
|
40
51
|
Object.keys(_csCZ).forEach(function (key) {
|
|
41
52
|
if (key === "default" || key === "__esModule") return;
|