@mui/x-data-grid 7.0.0-alpha.2 → 7.0.0-alpha.4
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 +364 -0
- package/DataGrid/DataGrid.d.ts +0 -10
- package/DataGrid/DataGrid.js +11 -23
- package/DataGrid/useDataGridProps.js +1 -1
- package/README.md +0 -1
- package/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/colDef/gridDefaultColumnTypes.d.ts +2 -2
- package/colDef/gridDefaultColumnTypes.js +2 -2
- package/components/GridHeader.js +3 -2
- package/components/GridRow.js +9 -6
- package/components/base/GridOverlays.js +0 -2
- package/components/cell/GridActionsCell.js +0 -1
- package/components/cell/GridCell.js +3 -5
- package/components/cell/GridEditDateCell.js +1 -20
- package/components/columnHeaders/GridColumnGroupHeader.js +2 -1
- package/components/columnHeaders/GridColumnHeaderItem.js +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +2 -2
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/components/panel/index.d.ts +0 -1
- package/components/panel/index.js +0 -1
- package/components/virtualization/GridVirtualScroller.js +0 -1
- package/constants/defaultGridSlotsComponents.js +1 -2
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/hooks/features/editing/useGridCellEditing.js +8 -23
- package/hooks/features/editing/useGridRowEditing.js +7 -22
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridCsvExport.js +1 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +1 -0
- package/hooks/features/filter/gridFilterUtils.js +7 -4
- package/hooks/features/filter/useGridFilter.js +2 -2
- package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
- package/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +3 -3
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +3 -4
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -6
- package/hooks/features/rowSelection/useGridRowSelection.js +2 -1
- package/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/hooks/features/sorting/useGridSorting.js +6 -5
- package/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/index.js +1 -1
- package/internals/index.d.ts +2 -2
- package/internals/index.js +2 -2
- package/legacy/DataGrid/DataGrid.js +11 -23
- package/legacy/DataGrid/useDataGridProps.js +1 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/legacy/colDef/gridDefaultColumnTypes.js +2 -2
- package/legacy/components/GridHeader.js +3 -2
- package/legacy/components/GridRow.js +9 -6
- package/legacy/components/base/GridOverlays.js +0 -2
- package/legacy/components/cell/GridActionsCell.js +0 -1
- package/legacy/components/cell/GridCell.js +3 -5
- package/legacy/components/cell/GridEditDateCell.js +1 -20
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +2 -1
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +2 -1
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterForm.js +2 -2
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/legacy/components/panel/index.js +0 -1
- package/legacy/components/virtualization/GridVirtualScroller.js +0 -1
- package/legacy/constants/defaultGridSlotsComponents.js +1 -2
- package/legacy/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/legacy/hooks/features/editing/useGridCellEditing.js +8 -23
- package/legacy/hooks/features/editing/useGridRowEditing.js +7 -24
- package/legacy/hooks/features/export/useGridCsvExport.js +1 -1
- package/legacy/hooks/features/filter/gridFilterUtils.js +7 -4
- package/legacy/hooks/features/filter/useGridFilter.js +2 -2
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +3 -4
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -6
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +2 -1
- package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/legacy/hooks/features/sorting/useGridSorting.js +6 -5
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +2 -2
- package/legacy/locales/bgBG.js +33 -37
- package/legacy/locales/coreLocales.js +1 -0
- package/legacy/locales/daDK.js +37 -39
- package/legacy/locales/plPL.js +0 -1
- package/legacy/models/params/gridEditCellParams.js +1 -0
- package/legacy/utils/domUtils.js +10 -1
- package/legacy/utils/utils.js +0 -1
- package/locales/bgBG.js +33 -37
- package/locales/coreLocales.js +1 -0
- package/locales/daDK.js +37 -39
- package/locales/plPL.js +0 -1
- package/models/api/gridEditingApi.d.ts +2 -4
- package/models/api/gridSortApi.d.ts +2 -2
- package/models/colDef/gridColType.d.ts +2 -4
- package/models/gridFilterModel.d.ts +2 -2
- package/models/gridSlotsComponent.d.ts +0 -5
- package/models/gridSlotsComponentsProps.d.ts +0 -3
- package/models/params/gridEditCellParams.d.ts +3 -1
- package/models/params/gridEditCellParams.js +1 -0
- package/models/params/gridRowParams.d.ts +1 -0
- package/models/props/DataGridProps.d.ts +1 -1
- package/modern/DataGrid/DataGrid.js +11 -23
- package/modern/DataGrid/useDataGridProps.js +1 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/modern/colDef/gridDefaultColumnTypes.js +2 -2
- package/modern/components/GridHeader.js +2 -1
- package/modern/components/GridRow.js +9 -6
- package/modern/components/base/GridOverlays.js +0 -2
- package/modern/components/cell/GridActionsCell.js +0 -1
- package/modern/components/cell/GridCell.js +2 -4
- package/modern/components/cell/GridEditDateCell.js +1 -20
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +2 -1
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +2 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterForm.js +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/modern/components/panel/index.js +0 -1
- package/modern/components/virtualization/GridVirtualScroller.js +0 -1
- package/modern/constants/defaultGridSlotsComponents.js +1 -2
- package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/modern/hooks/features/editing/useGridCellEditing.js +8 -23
- package/modern/hooks/features/editing/useGridRowEditing.js +7 -22
- package/modern/hooks/features/export/useGridCsvExport.js +1 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +4 -2
- package/modern/hooks/features/filter/useGridFilter.js +2 -2
- package/modern/hooks/features/focus/gridFocusStateSelector.js +2 -6
- package/modern/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +3 -4
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -6
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +2 -1
- package/modern/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/modern/hooks/features/sorting/useGridSorting.js +6 -5
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +2 -2
- package/modern/locales/bgBG.js +33 -37
- package/modern/locales/coreLocales.js +1 -0
- package/modern/locales/daDK.js +37 -39
- package/modern/locales/plPL.js +0 -1
- package/modern/models/params/gridEditCellParams.js +1 -0
- package/modern/utils/domUtils.js +10 -1
- package/modern/utils/utils.js +0 -1
- package/node/DataGrid/DataGrid.js +11 -23
- package/node/DataGrid/useDataGridProps.js +1 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/node/colDef/gridDefaultColumnTypes.js +2 -2
- package/node/components/GridHeader.js +2 -1
- package/node/components/GridRow.js +8 -5
- package/node/components/base/GridOverlays.js +0 -2
- package/node/components/cell/GridActionsCell.js +0 -1
- package/node/components/cell/GridCell.js +2 -4
- package/node/components/cell/GridEditDateCell.js +1 -20
- package/node/components/columnHeaders/GridColumnGroupHeader.js +2 -1
- package/node/components/columnHeaders/GridColumnHeaderItem.js +2 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/node/components/panel/filterPanel/GridFilterForm.js +2 -2
- package/node/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/node/components/panel/index.js +0 -11
- package/node/components/virtualization/GridVirtualScroller.js +0 -1
- package/node/constants/defaultGridSlotsComponents.js +0 -1
- package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/node/hooks/features/editing/useGridCellEditing.js +7 -22
- package/node/hooks/features/editing/useGridRowEditing.js +6 -21
- package/node/hooks/features/export/useGridCsvExport.js +1 -1
- package/node/hooks/features/filter/gridFilterUtils.js +6 -3
- package/node/hooks/features/filter/useGridFilter.js +1 -1
- package/node/hooks/features/focus/gridFocusStateSelector.js +3 -7
- package/node/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +5 -7
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +8 -5
- package/node/hooks/features/rowSelection/useGridRowSelection.js +2 -1
- package/node/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/node/hooks/features/sorting/useGridSorting.js +6 -5
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +21 -14
- package/node/locales/bgBG.js +33 -37
- package/node/locales/daDK.js +37 -39
- package/node/locales/plPL.js +0 -1
- package/node/models/params/gridEditCellParams.js +1 -0
- package/node/utils/domUtils.js +11 -1
- package/node/utils/utils.js +0 -1
- package/package.json +4 -4
- package/utils/domUtils.d.ts +2 -0
- package/utils/domUtils.js +10 -1
- package/utils/utils.js +0 -1
|
@@ -14,8 +14,9 @@ import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '../../../constants/gridDetailPan
|
|
|
14
14
|
import { gridPinnedRowsSelector } from '../rows/gridRowsSelector';
|
|
15
15
|
import { unstable_gridFocusColumnGroupHeaderSelector } from '../focus';
|
|
16
16
|
import { gridColumnGroupsHeaderMaxDepthSelector } from '../columnGrouping/gridColumnGroupsSelector';
|
|
17
|
-
import {
|
|
17
|
+
import { gridHeaderFilteringEditFieldSelector, gridHeaderFilteringMenuSelector } from '../headerFiltering/gridHeaderFilteringSelectors';
|
|
18
18
|
import { useGridRegisterPipeProcessor } from '../../core/pipeProcessing';
|
|
19
|
+
import { isEventTargetInPortal } from '../../../utils/domUtils';
|
|
19
20
|
function enrichPageRowsWithPinnedRows(apiRef, rows) {
|
|
20
21
|
var pinnedRows = gridPinnedRowsSelector(apiRef) || {};
|
|
21
22
|
return [].concat(_toConsumableArray(pinnedRows.top || []), _toConsumableArray(rows), _toConsumableArray(pinnedRows.bottom || []));
|
|
@@ -71,7 +72,7 @@ export var useGridKeyboardNavigation = function useGridKeyboardNavigation(apiRef
|
|
|
71
72
|
}, [apiRef, initialCurrentPageRows]);
|
|
72
73
|
var headerFilteringEnabled =
|
|
73
74
|
// @ts-expect-error // TODO move relevant code to the `DataGridPro`
|
|
74
|
-
props.signature !== 'DataGrid' && props.
|
|
75
|
+
props.signature !== 'DataGrid' && props.headerFilters;
|
|
75
76
|
|
|
76
77
|
/**
|
|
77
78
|
* @param {number} colIndex Index of the column to focus
|
|
@@ -239,8 +240,8 @@ export var useGridKeyboardNavigation = function useGridKeyboardNavigation(apiRef
|
|
|
239
240
|
if (!dimensions) {
|
|
240
241
|
return;
|
|
241
242
|
}
|
|
242
|
-
var isEditing =
|
|
243
|
-
var isHeaderMenuOpen =
|
|
243
|
+
var isEditing = gridHeaderFilteringEditFieldSelector(apiRef) === params.field;
|
|
244
|
+
var isHeaderMenuOpen = gridHeaderFilteringMenuSelector(apiRef) === params.field;
|
|
244
245
|
if (isEditing || isHeaderMenuOpen || !isNavigationKey(event.key)) {
|
|
245
246
|
return;
|
|
246
247
|
}
|
|
@@ -412,7 +413,7 @@ export var useGridKeyboardNavigation = function useGridKeyboardNavigation(apiRef
|
|
|
412
413
|
}, [apiRef, currentPageRows.length, goToHeader, goToGroupHeader, goToCell, getRowIdFromIndex]);
|
|
413
414
|
var handleCellKeyDown = React.useCallback(function (params, event) {
|
|
414
415
|
// Ignore portal
|
|
415
|
-
if (
|
|
416
|
+
if (isEventTargetInPortal(event)) {
|
|
416
417
|
return;
|
|
417
418
|
}
|
|
418
419
|
|
|
@@ -506,7 +507,9 @@ export var useGridKeyboardNavigation = function useGridKeyboardNavigation(apiRef
|
|
|
506
507
|
break;
|
|
507
508
|
}
|
|
508
509
|
var colDef = params.colDef;
|
|
509
|
-
if (colDef &&
|
|
510
|
+
if (colDef &&
|
|
511
|
+
// `GRID_TREE_DATA_GROUPING_FIELD` from the Pro package
|
|
512
|
+
colDef.field === '__tree_data_group__') {
|
|
510
513
|
break;
|
|
511
514
|
}
|
|
512
515
|
if (!event.shiftKey && rowIndexBefore < lastRowIndexInPage) {
|
|
@@ -15,6 +15,7 @@ import { isKeyboardEvent, isNavigationKey } from '../../../utils/keyboardUtils';
|
|
|
15
15
|
import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
|
|
16
16
|
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '../../../constants/gridDetailPanelToggleField';
|
|
17
17
|
import { gridClasses } from '../../../constants/gridClasses';
|
|
18
|
+
import { isEventTargetInPortal } from '../../../utils/domUtils';
|
|
18
19
|
var getSelectionModelPropValue = function getSelectionModelPropValue(selectionModelProp, prevSelectionModel) {
|
|
19
20
|
if (selectionModelProp == null) {
|
|
20
21
|
return selectionModelProp;
|
|
@@ -312,7 +313,7 @@ export var useGridRowSelection = function useGridRowSelection(apiRef, props) {
|
|
|
312
313
|
|
|
313
314
|
// Ignore portal
|
|
314
315
|
// Do not apply shortcuts if the focus is not on the cell root component
|
|
315
|
-
if (
|
|
316
|
+
if (isEventTargetInPortal(event)) {
|
|
316
317
|
return;
|
|
317
318
|
}
|
|
318
319
|
if (isNavigationKey(event.key) && event.shiftKey) {
|
|
@@ -68,7 +68,6 @@ export var useGridRowsMeta = function useGridRowsMeta(apiRef, props) {
|
|
|
68
68
|
needsFirstMeasurement: true // Assume all rows will need to be measured by default
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
|
|
72
71
|
var _rowsHeightLookup$cur = rowsHeightLookup.current[row.id],
|
|
73
72
|
isResized = _rowsHeightLookup$cur.isResized,
|
|
74
73
|
needsFirstMeasurement = _rowsHeightLookup$cur.needsFirstMeasurement,
|
|
@@ -123,7 +123,8 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
123
123
|
apiRef.current.applySorting();
|
|
124
124
|
}
|
|
125
125
|
}, [apiRef, logger, props.disableMultipleColumnsSorting]);
|
|
126
|
-
var sortColumn = React.useCallback(function (
|
|
126
|
+
var sortColumn = React.useCallback(function (field, direction, allowMultipleSorting) {
|
|
127
|
+
var column = apiRef.current.getColumn(field);
|
|
127
128
|
if (!column.sortable) {
|
|
128
129
|
return;
|
|
129
130
|
}
|
|
@@ -216,15 +217,15 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
216
217
|
* EVENTS
|
|
217
218
|
*/
|
|
218
219
|
var handleColumnHeaderClick = React.useCallback(function (_ref2, event) {
|
|
219
|
-
var
|
|
220
|
+
var field = _ref2.field;
|
|
220
221
|
var allowMultipleSorting = event.shiftKey || event.metaKey || event.ctrlKey;
|
|
221
|
-
sortColumn(
|
|
222
|
+
sortColumn(field, undefined, allowMultipleSorting);
|
|
222
223
|
}, [sortColumn]);
|
|
223
224
|
var handleColumnHeaderKeyDown = React.useCallback(function (_ref3, event) {
|
|
224
|
-
var
|
|
225
|
+
var field = _ref3.field;
|
|
225
226
|
// Ctrl + Enter opens the column menu
|
|
226
227
|
if (isEnterKey(event.key) && !event.ctrlKey && !event.metaKey) {
|
|
227
|
-
sortColumn(
|
|
228
|
+
sortColumn(field, undefined, event.shiftKey);
|
|
228
229
|
}
|
|
229
230
|
}, [sortColumn]);
|
|
230
231
|
var handleColumnsChange = React.useCallback(function () {
|
|
@@ -585,7 +585,6 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
585
585
|
if (rootProps.autoHeight && currentPage.rows.length === 0) {
|
|
586
586
|
size.height = getMinimalContentHeight(apiRef, rootProps.rowHeight); // Give room to show the overlay when there no rows.
|
|
587
587
|
}
|
|
588
|
-
|
|
589
588
|
return size;
|
|
590
589
|
}, [apiRef, rootRef, columnsTotalWidth, rowsMeta.currentPageTotalHeight, needsHorizontalScrollbar, rootProps.autoHeight, rootProps.rowHeight, currentPage.rows.length]);
|
|
591
590
|
React.useEffect(function () {
|
package/legacy/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
|
11
11
|
export { unwrapPrivateAPI } from '../hooks/core/useGridApiInitialization';
|
|
12
12
|
export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
13
13
|
export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
14
|
-
export {
|
|
14
|
+
export { gridHeaderFilteringEditFieldSelector, gridHeaderFilteringMenuSelector } from '../hooks/features/headerFiltering/gridHeaderFilteringSelectors';
|
|
15
15
|
export { useGridColumnMenu, columnMenuStateInitializer } from '../hooks/features/columnMenu/useGridColumnMenu';
|
|
16
16
|
export { useGridColumns, columnsStateInitializer } from '../hooks/features/columns/useGridColumns';
|
|
17
17
|
export { getTotalHeaderHeight } from '../hooks/features/columns/gridColumnsUtils';
|
|
@@ -54,7 +54,7 @@ export { useGridInitializeState } from '../hooks/utils/useGridInitializeState';
|
|
|
54
54
|
export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/export/utils';
|
|
55
55
|
export * from '../utils/createControllablePromise';
|
|
56
56
|
export { createSelector, createSelectorMemoized, unstable_resetCreateSelectorCache } from '../utils/createSelector';
|
|
57
|
-
export { findParentElementFromClassName, getActiveElement } from '../utils/domUtils';
|
|
57
|
+
export { findParentElementFromClassName, getActiveElement, isEventTargetInPortal } from '../utils/domUtils';
|
|
58
58
|
export { isNavigationKey } from '../utils/keyboardUtils';
|
|
59
59
|
export { clamp, isDeepEqual, isNumber, isFunction, isObject } from '../utils/utils';
|
|
60
60
|
export { buildWarning } from '../utils/warning';
|
package/legacy/locales/bgBG.js
CHANGED
|
@@ -62,34 +62,32 @@ var bgBGGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: 'е празен',
|
|
63
63
|
filterOperatorIsNotEmpty: 'не е празен',
|
|
64
64
|
filterOperatorIsAnyOf: 'е някой от',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
72
71
|
// Header filter operators text
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
headerFilterOperatorContains: 'Съдържа',
|
|
73
|
+
headerFilterOperatorEquals: 'Равнo',
|
|
74
|
+
headerFilterOperatorStartsWith: 'Започва с',
|
|
75
|
+
headerFilterOperatorEndsWith: 'Завършва с',
|
|
76
|
+
headerFilterOperatorIs: 'Равно е на',
|
|
77
|
+
headerFilterOperatorNot: 'Не се равнява на',
|
|
78
|
+
headerFilterOperatorAfter: 'След',
|
|
79
|
+
headerFilterOperatorOnOrAfter: 'След (включително)',
|
|
80
|
+
headerFilterOperatorBefore: 'Преди',
|
|
81
|
+
headerFilterOperatorOnOrBefore: 'Преди (включително)',
|
|
82
|
+
headerFilterOperatorIsEmpty: 'Празен',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: 'Не е празен',
|
|
84
|
+
headerFilterOperatorIsAnyOf: 'Всичко от',
|
|
85
|
+
'headerFilterOperator=': 'Равно',
|
|
86
|
+
'headerFilterOperator!=': 'Различно',
|
|
87
|
+
'headerFilterOperator>': 'По-голямо от',
|
|
88
|
+
'headerFilterOperator>=': 'По-голямо или равно на',
|
|
89
|
+
'headerFilterOperator<': 'По-малко от',
|
|
90
|
+
'headerFilterOperator<=': 'По-малко или равно на',
|
|
93
91
|
// Filter values text
|
|
94
92
|
filterValueAny: 'всякакви',
|
|
95
93
|
filterValueTrue: 'вярно',
|
|
@@ -147,19 +145,17 @@ var bgBGGrid = {
|
|
|
147
145
|
return "\u0421\u043F\u0440\u0438 \u0433\u0440\u0443\u043F\u0438\u0440\u0430\u043D\u0435 \u043F\u043E ".concat(name);
|
|
148
146
|
},
|
|
149
147
|
// Master/detail
|
|
150
|
-
|
|
148
|
+
detailPanelToggle: 'Превключване на панела с детайли',
|
|
151
149
|
expandDetailPanel: 'Разгъване',
|
|
152
150
|
collapseDetailPanel: 'Свиване',
|
|
153
151
|
// Row reordering text
|
|
154
|
-
rowReorderingHeaderName: 'Подредба на редове'
|
|
155
|
-
|
|
152
|
+
rowReorderingHeaderName: 'Подредба на редове',
|
|
156
153
|
// Aggregation
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
154
|
+
aggregationMenuItemHeader: 'Агрегиране',
|
|
155
|
+
aggregationFunctionLabelSum: 'сума',
|
|
156
|
+
aggregationFunctionLabelAvg: 'срст',
|
|
157
|
+
aggregationFunctionLabelMin: 'мин',
|
|
158
|
+
aggregationFunctionLabelMax: 'макс',
|
|
159
|
+
aggregationFunctionLabelSize: 'размер'
|
|
163
160
|
};
|
|
164
|
-
|
|
165
161
|
export var bgBG = getGridLocalization(bgBGGrid, bgBGCore);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
|
|
4
4
|
// in broader compatibility between the packages.
|
|
5
5
|
// See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
|
|
6
|
+
|
|
6
7
|
export var beBYCore = {
|
|
7
8
|
components: {
|
|
8
9
|
MuiTablePagination: {
|
package/legacy/locales/daDK.js
CHANGED
|
@@ -49,47 +49,45 @@ var daDKGrid = {
|
|
|
49
49
|
filterPanelInputLabel: 'Værdi',
|
|
50
50
|
filterPanelInputPlaceholder: 'Filter værdi',
|
|
51
51
|
// Filter operators text
|
|
52
|
-
filterOperatorContains: '
|
|
53
|
-
filterOperatorEquals: '
|
|
54
|
-
filterOperatorStartsWith: '
|
|
55
|
-
filterOperatorEndsWith: '
|
|
56
|
-
filterOperatorIs: '
|
|
57
|
-
filterOperatorNot: '
|
|
58
|
-
filterOperatorAfter: '
|
|
59
|
-
filterOperatorOnOrAfter: '
|
|
60
|
-
filterOperatorBefore: '
|
|
61
|
-
filterOperatorOnOrBefore: '
|
|
62
|
-
filterOperatorIsEmpty: '
|
|
63
|
-
filterOperatorIsNotEmpty: '
|
|
52
|
+
filterOperatorContains: 'indeholder',
|
|
53
|
+
filterOperatorEquals: 'lig med',
|
|
54
|
+
filterOperatorStartsWith: 'begynder med',
|
|
55
|
+
filterOperatorEndsWith: 'ender med',
|
|
56
|
+
filterOperatorIs: 'er lig med',
|
|
57
|
+
filterOperatorNot: 'er ikke lig med',
|
|
58
|
+
filterOperatorAfter: 'efter',
|
|
59
|
+
filterOperatorOnOrAfter: 'på eller efter',
|
|
60
|
+
filterOperatorBefore: 'før',
|
|
61
|
+
filterOperatorOnOrBefore: 'på eller før',
|
|
62
|
+
filterOperatorIsEmpty: 'indeholder ikke data',
|
|
63
|
+
filterOperatorIsNotEmpty: 'indeholder data',
|
|
64
64
|
filterOperatorIsAnyOf: 'indeholder en af',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
72
71
|
// Header filter operators text
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
headerFilterOperatorContains: 'Indeholder',
|
|
73
|
+
headerFilterOperatorEquals: 'Lig med',
|
|
74
|
+
headerFilterOperatorStartsWith: 'Begynder med',
|
|
75
|
+
headerFilterOperatorEndsWith: 'Ender med',
|
|
76
|
+
headerFilterOperatorIs: 'Er lig med',
|
|
77
|
+
headerFilterOperatorNot: 'Er ikke lig med',
|
|
78
|
+
headerFilterOperatorAfter: 'Efter',
|
|
79
|
+
headerFilterOperatorOnOrAfter: 'På eller efter',
|
|
80
|
+
headerFilterOperatorBefore: 'Før',
|
|
81
|
+
headerFilterOperatorOnOrBefore: 'På eller før',
|
|
82
|
+
headerFilterOperatorIsEmpty: 'Indeholder ikke data',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: 'Indeholder data',
|
|
84
|
+
headerFilterOperatorIsAnyOf: 'Indeholder en af',
|
|
85
|
+
'headerFilterOperator=': 'Lig med',
|
|
86
|
+
'headerFilterOperator!=': 'Ikke lig med',
|
|
87
|
+
'headerFilterOperator>': 'Større end',
|
|
88
|
+
'headerFilterOperator>=': 'Større end eller lig med',
|
|
89
|
+
'headerFilterOperator<': 'Mindre end',
|
|
90
|
+
'headerFilterOperator<=': 'Mindre end eller lig med',
|
|
93
91
|
// Filter values text
|
|
94
92
|
filterValueAny: 'hvilken som helst',
|
|
95
93
|
filterValueTrue: 'positiv',
|
package/legacy/locales/plPL.js
CHANGED
|
@@ -6,6 +6,7 @@ var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons)
|
|
|
6
6
|
GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
7
7
|
GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
8
8
|
GridCellEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
9
|
+
GridCellEditStartReasons["pasteKeyDown"] = "pasteKeyDown";
|
|
9
10
|
return GridCellEditStartReasons;
|
|
10
11
|
}(GridCellEditStartReasons || {});
|
|
11
12
|
/**
|
package/legacy/utils/domUtils.js
CHANGED
|
@@ -37,4 +37,13 @@ export var getActiveElement = function getActiveElement() {
|
|
|
37
37
|
return getActiveElement(activeEl.shadowRoot);
|
|
38
38
|
}
|
|
39
39
|
return activeEl;
|
|
40
|
-
};
|
|
40
|
+
};
|
|
41
|
+
export function isEventTargetInPortal(event) {
|
|
42
|
+
if (
|
|
43
|
+
// The target is not an element when triggered by a Select inside the cell
|
|
44
|
+
// See https://github.com/mui/material-ui/issues/10534
|
|
45
|
+
event.target.nodeType === 1 && !event.currentTarget.contains(event.target)) {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
}
|
package/legacy/utils/utils.js
CHANGED
package/locales/bgBG.js
CHANGED
|
@@ -60,34 +60,32 @@ const bgBGGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'е празен',
|
|
61
61
|
filterOperatorIsNotEmpty: 'не е празен',
|
|
62
62
|
filterOperatorIsAnyOf: 'е някой от',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
70
69
|
// Header filter operators text
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
headerFilterOperatorContains: 'Съдържа',
|
|
71
|
+
headerFilterOperatorEquals: 'Равнo',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Започва с',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Завършва с',
|
|
74
|
+
headerFilterOperatorIs: 'Равно е на',
|
|
75
|
+
headerFilterOperatorNot: 'Не се равнява на',
|
|
76
|
+
headerFilterOperatorAfter: 'След',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'След (включително)',
|
|
78
|
+
headerFilterOperatorBefore: 'Преди',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Преди (включително)',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Празен',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Не е празен',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Всичко от',
|
|
83
|
+
'headerFilterOperator=': 'Равно',
|
|
84
|
+
'headerFilterOperator!=': 'Различно',
|
|
85
|
+
'headerFilterOperator>': 'По-голямо от',
|
|
86
|
+
'headerFilterOperator>=': 'По-голямо или равно на',
|
|
87
|
+
'headerFilterOperator<': 'По-малко от',
|
|
88
|
+
'headerFilterOperator<=': 'По-малко или равно на',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'всякакви',
|
|
93
91
|
filterValueTrue: 'вярно',
|
|
@@ -135,19 +133,17 @@ const bgBGGrid = {
|
|
|
135
133
|
groupColumn: name => `Групирай по ${name}`,
|
|
136
134
|
unGroupColumn: name => `Спри групиране по ${name}`,
|
|
137
135
|
// Master/detail
|
|
138
|
-
|
|
136
|
+
detailPanelToggle: 'Превключване на панела с детайли',
|
|
139
137
|
expandDetailPanel: 'Разгъване',
|
|
140
138
|
collapseDetailPanel: 'Свиване',
|
|
141
139
|
// Row reordering text
|
|
142
|
-
rowReorderingHeaderName: 'Подредба на редове'
|
|
143
|
-
|
|
140
|
+
rowReorderingHeaderName: 'Подредба на редове',
|
|
144
141
|
// Aggregation
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
aggregationMenuItemHeader: 'Агрегиране',
|
|
143
|
+
aggregationFunctionLabelSum: 'сума',
|
|
144
|
+
aggregationFunctionLabelAvg: 'срст',
|
|
145
|
+
aggregationFunctionLabelMin: 'мин',
|
|
146
|
+
aggregationFunctionLabelMax: 'макс',
|
|
147
|
+
aggregationFunctionLabelSize: 'размер'
|
|
151
148
|
};
|
|
152
|
-
|
|
153
149
|
export const bgBG = getGridLocalization(bgBGGrid, bgBGCore);
|
package/locales/coreLocales.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
|
|
4
4
|
// in broader compatibility between the packages.
|
|
5
5
|
// See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
|
|
6
|
+
|
|
6
7
|
export const beBYCore = {
|
|
7
8
|
components: {
|
|
8
9
|
MuiTablePagination: {
|
package/locales/daDK.js
CHANGED
|
@@ -47,47 +47,45 @@ const daDKGrid = {
|
|
|
47
47
|
filterPanelInputLabel: 'Værdi',
|
|
48
48
|
filterPanelInputPlaceholder: 'Filter værdi',
|
|
49
49
|
// Filter operators text
|
|
50
|
-
filterOperatorContains: '
|
|
51
|
-
filterOperatorEquals: '
|
|
52
|
-
filterOperatorStartsWith: '
|
|
53
|
-
filterOperatorEndsWith: '
|
|
54
|
-
filterOperatorIs: '
|
|
55
|
-
filterOperatorNot: '
|
|
56
|
-
filterOperatorAfter: '
|
|
57
|
-
filterOperatorOnOrAfter: '
|
|
58
|
-
filterOperatorBefore: '
|
|
59
|
-
filterOperatorOnOrBefore: '
|
|
60
|
-
filterOperatorIsEmpty: '
|
|
61
|
-
filterOperatorIsNotEmpty: '
|
|
50
|
+
filterOperatorContains: 'indeholder',
|
|
51
|
+
filterOperatorEquals: 'lig med',
|
|
52
|
+
filterOperatorStartsWith: 'begynder med',
|
|
53
|
+
filterOperatorEndsWith: 'ender med',
|
|
54
|
+
filterOperatorIs: 'er lig med',
|
|
55
|
+
filterOperatorNot: 'er ikke lig med',
|
|
56
|
+
filterOperatorAfter: 'efter',
|
|
57
|
+
filterOperatorOnOrAfter: 'på eller efter',
|
|
58
|
+
filterOperatorBefore: 'før',
|
|
59
|
+
filterOperatorOnOrBefore: 'på eller før',
|
|
60
|
+
filterOperatorIsEmpty: 'indeholder ikke data',
|
|
61
|
+
filterOperatorIsNotEmpty: 'indeholder data',
|
|
62
62
|
filterOperatorIsAnyOf: 'indeholder en af',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
70
69
|
// Header filter operators text
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
headerFilterOperatorContains: 'Indeholder',
|
|
71
|
+
headerFilterOperatorEquals: 'Lig med',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Begynder med',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Ender med',
|
|
74
|
+
headerFilterOperatorIs: 'Er lig med',
|
|
75
|
+
headerFilterOperatorNot: 'Er ikke lig med',
|
|
76
|
+
headerFilterOperatorAfter: 'Efter',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'På eller efter',
|
|
78
|
+
headerFilterOperatorBefore: 'Før',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'På eller før',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Indeholder ikke data',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Indeholder data',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Indeholder en af',
|
|
83
|
+
'headerFilterOperator=': 'Lig med',
|
|
84
|
+
'headerFilterOperator!=': 'Ikke lig med',
|
|
85
|
+
'headerFilterOperator>': 'Større end',
|
|
86
|
+
'headerFilterOperator>=': 'Større end eller lig med',
|
|
87
|
+
'headerFilterOperator<': 'Mindre end',
|
|
88
|
+
'headerFilterOperator<=': 'Mindre end eller lig med',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'hvilken som helst',
|
|
93
91
|
filterValueTrue: 'positiv',
|
package/locales/plPL.js
CHANGED
|
@@ -18,10 +18,6 @@ export type GridRowModesModelProps = ({
|
|
|
18
18
|
export type GridRowModesModel = Record<GridRowId, GridRowModesModelProps>;
|
|
19
19
|
export interface GridEditCellMeta {
|
|
20
20
|
changeReason?: 'debouncedSetEditCellValue' | 'setEditCellValue';
|
|
21
|
-
/**
|
|
22
|
-
* Determines if `setEditCellValue` should be called on the first render to sync the value.
|
|
23
|
-
*/
|
|
24
|
-
unstable_updateValueOnRender?: boolean;
|
|
25
21
|
}
|
|
26
22
|
export interface GridEditingSharedApi {
|
|
27
23
|
/**
|
|
@@ -81,6 +77,7 @@ export interface GridStartCellEditModeParams {
|
|
|
81
77
|
/**
|
|
82
78
|
* The initial value for the field.
|
|
83
79
|
* If `deleteValue` is also true, this value is not used.
|
|
80
|
+
* @deprecated No longer needed.
|
|
84
81
|
*/
|
|
85
82
|
initialValue?: any;
|
|
86
83
|
}
|
|
@@ -126,6 +123,7 @@ export interface GridStartRowEditModeParams {
|
|
|
126
123
|
/**
|
|
127
124
|
* The initial value for the given `fieldToFocus`.
|
|
128
125
|
* If `deleteValue` is also true, this value is not used.
|
|
126
|
+
* @deprecated No longer needed.
|
|
129
127
|
*/
|
|
130
128
|
initialValue?: string;
|
|
131
129
|
}
|
|
@@ -21,11 +21,11 @@ export interface GridSortApi {
|
|
|
21
21
|
setSortModel: (model: GridSortModel) => void;
|
|
22
22
|
/**
|
|
23
23
|
* Sorts a column.
|
|
24
|
-
* @param {GridColDef}
|
|
24
|
+
* @param {GridColDef['field']} field The field identifier of the column to be sorted.
|
|
25
25
|
* @param {GridSortDirection} direction The direction to be sorted. By default, the next in the `sortingOrder` prop.
|
|
26
26
|
* @param {boolean} allowMultipleSorting Whether to keep the existing [[GridSortItem]]. Default is `false`.
|
|
27
27
|
*/
|
|
28
|
-
sortColumn: (
|
|
28
|
+
sortColumn: (field: GridColDef['field'], direction?: GridSortDirection, allowMultipleSorting?: boolean) => void;
|
|
29
29
|
/**
|
|
30
30
|
* Returns all rows sorted according to the active sort model.
|
|
31
31
|
* @returns {GridRowModel[]} The sorted [[GridRowModel]] objects.
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
type
|
|
2
|
-
export type
|
|
3
|
-
export type GridColType = LiteralUnion<GridNativeColTypes, string>;
|
|
4
|
-
export {};
|
|
1
|
+
export type GridNativeColTypes = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect' | 'actions' | 'custom';
|
|
2
|
+
export type GridColType = GridNativeColTypes;
|