@mui/x-data-grid 5.8.0 → 5.9.0
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 +141 -63
- package/DataGrid/DataGrid.js +1 -1
- package/DataGrid/useDataGridComponent.js +3 -1
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/components/GridRow.d.ts +4 -0
- package/components/GridRow.js +49 -23
- package/components/base/GridOverlays.js +4 -3
- package/components/cell/GridActionsCell.d.ts +5 -1
- package/components/cell/GridActionsCell.js +170 -21
- package/components/cell/GridActionsCellItem.d.ts +66 -4
- package/components/cell/GridActionsCellItem.js +7 -5
- package/components/cell/GridCell.d.ts +1 -0
- package/components/cell/GridCell.js +28 -7
- package/components/cell/GridEditInputCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.js +22 -13
- package/components/columnHeaders/GridColumnHeaderItem.js +4 -7
- package/components/columnHeaders/GridColumnHeaders.d.ts +0 -1
- package/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +3 -3
- package/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
- package/components/panel/GridPanel.js +1 -0
- package/components/panel/filterPanel/GridFilterForm.js +14 -10
- package/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -15
- package/components/panel/filterPanel/GridFilterInputValue.js +22 -15
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.js +2 -0
- package/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/constants/gridDetailPanelToggleField.d.ts +1 -0
- package/constants/gridDetailPanelToggleField.js +2 -0
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +32 -15
- package/hooks/core/pipeProcessing/index.d.ts +1 -0
- package/hooks/core/pipeProcessing/index.js +2 -1
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +8 -3
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +0 -3
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +76 -10
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +3 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +19 -1
- package/hooks/features/columns/gridColumnsUtils.js +61 -8
- package/hooks/features/columns/useGridColumnSpanning.d.ts +7 -0
- package/hooks/features/columns/useGridColumnSpanning.js +109 -0
- package/hooks/features/columns/useGridColumns.js +24 -18
- package/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/hooks/features/editRows/useGridCellEditing.new.js +18 -10
- package/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/hooks/features/editRows/useGridRowEditing.new.js +23 -15
- package/hooks/features/filter/useGridFilter.js +14 -9
- package/hooks/features/focus/useGridFocus.js +19 -9
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -0
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +39 -7
- package/hooks/features/rows/gridRowsSelector.d.ts +1 -0
- package/hooks/features/rows/gridRowsSelector.js +1 -0
- package/hooks/features/rows/gridRowsState.d.ts +4 -0
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +5 -4
- package/hooks/features/rows/useGridRowsMeta.js +6 -13
- package/hooks/features/scroll/useGridScroll.d.ts +2 -0
- package/hooks/features/scroll/useGridScroll.js +25 -3
- package/hooks/features/selection/useGridSelection.js +3 -2
- package/hooks/features/sorting/useGridSorting.js +10 -10
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +7 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +54 -27
- package/index.js +1 -1
- package/internals/index.d.ts +1 -0
- package/internals/index.js +1 -0
- package/legacy/DataGrid/DataGrid.js +1 -1
- package/legacy/DataGrid/useDataGridComponent.js +3 -1
- package/legacy/components/GridRow.js +47 -23
- package/legacy/components/base/GridOverlays.js +4 -3
- package/legacy/components/cell/GridActionsCell.js +188 -27
- package/legacy/components/cell/GridActionsCellItem.js +7 -5
- package/legacy/components/cell/GridCell.js +29 -7
- package/legacy/components/cell/GridEditInputCell.js +1 -1
- package/legacy/components/cell/GridEditSingleSelectCell.js +33 -24
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +4 -7
- package/legacy/components/columnHeaders/GridColumnHeaders.js +2 -3
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +21 -3
- package/legacy/components/panel/GridPanel.js +1 -0
- package/legacy/components/panel/filterPanel/GridFilterForm.js +14 -10
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -17
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +22 -17
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/legacy/components/virtualization/GridVirtualScroller.js +2 -0
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/legacy/constants/gridDetailPanelToggleField.js +2 -0
- package/legacy/hooks/core/pipeProcessing/index.js +2 -1
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +60 -24
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +89 -10
- package/legacy/hooks/features/columns/gridColumnsUtils.js +79 -22
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +107 -0
- package/legacy/hooks/features/columns/useGridColumns.js +24 -18
- package/legacy/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +14 -8
- package/legacy/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +32 -24
- package/legacy/hooks/features/filter/useGridFilter.js +14 -9
- package/legacy/hooks/features/focus/useGridFocus.js +19 -9
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +39 -6
- package/legacy/hooks/features/rows/gridRowsSelector.js +3 -0
- package/legacy/hooks/features/rows/useGridRows.js +5 -4
- package/legacy/hooks/features/rows/useGridRowsMeta.js +6 -13
- package/legacy/hooks/features/scroll/useGridScroll.js +25 -3
- package/legacy/hooks/features/selection/useGridSelection.js +3 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +5 -7
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +65 -37
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +1 -0
- package/legacy/locales/huHU.js +120 -0
- package/legacy/locales/index.js +1 -0
- package/legacy/models/api/gridColumnSpanning.js +1 -0
- package/legacy/models/events/gridEvents.js +2 -3
- package/legacy/models/gridColumnSpanning.js +1 -0
- package/locales/huHU.d.ts +2 -0
- package/locales/huHU.js +108 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/models/api/gridApiCommon.d.ts +2 -1
- package/models/api/gridColumnSpanning.d.ts +28 -0
- package/models/api/gridColumnSpanning.js +1 -0
- package/models/api/gridEditingApi.d.ts +49 -3
- package/models/colDef/gridColDef.d.ts +5 -0
- package/models/events/gridEventLookup.d.ts +3 -8
- package/models/events/gridEvents.d.ts +9 -14
- package/models/events/gridEvents.js +2 -3
- package/models/gridColumnSpanning.d.ts +12 -0
- package/models/gridColumnSpanning.js +1 -0
- package/models/gridEditRowModel.d.ts +1 -1
- package/models/params/gridCellParams.d.ts +12 -2
- package/models/params/gridRowParams.d.ts +5 -0
- package/models/props/DataGridProps.d.ts +1 -1
- package/modern/DataGrid/DataGrid.js +1 -1
- package/modern/DataGrid/useDataGridComponent.js +3 -1
- package/modern/components/GridRow.js +47 -21
- package/modern/components/base/GridOverlays.js +4 -3
- package/modern/components/cell/GridActionsCell.js +168 -21
- package/modern/components/cell/GridActionsCellItem.js +7 -5
- package/modern/components/cell/GridCell.js +28 -7
- package/modern/components/cell/GridEditInputCell.js +1 -1
- package/modern/components/cell/GridEditSingleSelectCell.js +20 -11
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +4 -7
- package/modern/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
- package/modern/components/panel/GridPanel.js +1 -0
- package/modern/components/panel/filterPanel/GridFilterForm.js +10 -6
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +11 -6
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +20 -13
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +20 -13
- package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/modern/components/virtualization/GridVirtualScroller.js +2 -0
- package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/modern/constants/gridDetailPanelToggleField.js +2 -0
- package/modern/hooks/core/pipeProcessing/index.js +2 -1
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +76 -10
- package/modern/hooks/features/columns/gridColumnsUtils.js +61 -8
- package/modern/hooks/features/columns/useGridColumnSpanning.js +107 -0
- package/modern/hooks/features/columns/useGridColumns.js +24 -18
- package/modern/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +18 -10
- package/modern/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +23 -15
- package/modern/hooks/features/filter/useGridFilter.js +14 -9
- package/modern/hooks/features/focus/useGridFocus.js +19 -9
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +37 -7
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -0
- package/modern/hooks/features/rows/useGridRows.js +5 -4
- package/modern/hooks/features/rows/useGridRowsMeta.js +6 -13
- package/modern/hooks/features/scroll/useGridScroll.js +23 -3
- package/modern/hooks/features/selection/useGridSelection.js +3 -2
- package/modern/hooks/features/sorting/useGridSorting.js +10 -10
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +54 -23
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -0
- package/modern/locales/huHU.js +108 -0
- package/modern/locales/index.js +1 -0
- package/modern/models/api/gridColumnSpanning.js +1 -0
- package/modern/models/events/gridEvents.js +2 -3
- package/modern/models/gridColumnSpanning.js +1 -0
- package/node/DataGrid/DataGrid.js +1 -1
- package/node/DataGrid/useDataGridComponent.js +4 -1
- package/node/components/GridRow.js +50 -23
- package/node/components/base/GridOverlays.js +3 -2
- package/node/components/cell/GridActionsCell.js +172 -21
- package/node/components/cell/GridActionsCellItem.js +7 -4
- package/node/components/cell/GridCell.js +28 -7
- package/node/components/cell/GridEditInputCell.js +1 -1
- package/node/components/cell/GridEditSingleSelectCell.js +23 -13
- package/node/components/columnHeaders/GridColumnHeaderItem.js +4 -7
- package/node/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
- package/node/components/panel/GridPanel.js +1 -0
- package/node/components/panel/filterPanel/GridFilterForm.js +15 -10
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +14 -8
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +23 -15
- package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -15
- package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/node/components/virtualization/GridVirtualScroller.js +2 -0
- package/node/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/node/constants/gridDetailPanelToggleField.js +9 -0
- package/node/hooks/core/pipeProcessing/index.js +13 -0
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +51 -20
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +42 -0
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -3
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +80 -10
- package/node/hooks/features/columns/gridColumnsUtils.js +65 -9
- package/node/hooks/features/columns/useGridColumnSpanning.js +130 -0
- package/node/hooks/features/columns/useGridColumns.js +23 -17
- package/node/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/node/hooks/features/editRows/useGridCellEditing.new.js +18 -10
- package/node/hooks/features/editRows/useGridEditing.new.js +6 -2
- package/node/hooks/features/editRows/useGridRowEditing.new.js +21 -14
- package/node/hooks/features/filter/useGridFilter.js +14 -9
- package/node/hooks/features/focus/useGridFocus.js +19 -9
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +40 -7
- package/node/hooks/features/rows/gridRowsSelector.js +3 -1
- package/node/hooks/features/rows/useGridRows.js +5 -4
- package/node/hooks/features/rows/useGridRowsMeta.js +6 -14
- package/node/hooks/features/scroll/useGridScroll.js +26 -2
- package/node/hooks/features/selection/useGridSelection.js +4 -2
- package/node/hooks/features/sorting/useGridSorting.js +10 -10
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +59 -27
- package/node/index.js +1 -1
- package/node/internals/index.js +8 -0
- package/node/locales/huHU.js +118 -0
- package/node/locales/index.js +13 -0
- package/node/models/api/gridColumnSpanning.js +5 -0
- package/node/models/events/gridEvents.js +2 -3
- package/node/models/gridColumnSpanning.js +5 -0
- package/package.json +4 -4
- package/utils/domUtils.d.ts +2 -2
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { huHU as huHUCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
var huHUGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Nincsenek sorok',
|
|
6
|
+
noResultsOverlayLabel: 'Nincs találat.',
|
|
7
|
+
errorOverlayDefaultLabel: 'Váratlan hiba történt.',
|
|
8
|
+
// Density selector toolbar button text
|
|
9
|
+
toolbarDensity: 'Sormagasság',
|
|
10
|
+
toolbarDensityLabel: 'Sormagasság',
|
|
11
|
+
toolbarDensityCompact: 'Kompakt',
|
|
12
|
+
toolbarDensityStandard: 'Normál',
|
|
13
|
+
toolbarDensityComfortable: 'Kényelmes',
|
|
14
|
+
// Columns selector toolbar button text
|
|
15
|
+
toolbarColumns: 'Oszlopok',
|
|
16
|
+
toolbarColumnsLabel: 'Oszlopok kiválasztása',
|
|
17
|
+
// Filters toolbar button text
|
|
18
|
+
toolbarFilters: 'Szűrők',
|
|
19
|
+
toolbarFiltersLabel: 'Szűrők megjelenítése',
|
|
20
|
+
toolbarFiltersTooltipHide: 'Szűrők elrejtése',
|
|
21
|
+
toolbarFiltersTooltipShow: 'Szűrők megjelenítése',
|
|
22
|
+
toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
|
|
23
|
+
return "".concat(count, " akt\xEDv sz\u0171r\u0151");
|
|
24
|
+
},
|
|
25
|
+
// Export selector toolbar button text
|
|
26
|
+
toolbarExport: 'Exportálás',
|
|
27
|
+
toolbarExportLabel: 'Exportálás',
|
|
28
|
+
toolbarExportCSV: 'Mentés CSV fájlként',
|
|
29
|
+
toolbarExportPrint: 'Nyomtatás',
|
|
30
|
+
// Columns panel text
|
|
31
|
+
columnsPanelTextFieldLabel: 'Oszlop keresése',
|
|
32
|
+
columnsPanelTextFieldPlaceholder: 'Oszlop neve',
|
|
33
|
+
columnsPanelDragIconLabel: 'Oszlop átrendezése',
|
|
34
|
+
columnsPanelShowAllButton: 'Összes megjelenítése',
|
|
35
|
+
columnsPanelHideAllButton: 'Összes elrejtése',
|
|
36
|
+
// Filter panel text
|
|
37
|
+
filterPanelAddFilter: 'Szűrő hozzáadása',
|
|
38
|
+
filterPanelDeleteIconLabel: 'Törlés',
|
|
39
|
+
filterPanelLinkOperator: 'Logikai operátor',
|
|
40
|
+
filterPanelOperators: 'Operátorok',
|
|
41
|
+
// TODO v6: rename to filterPanelOperator
|
|
42
|
+
filterPanelOperatorAnd: 'És',
|
|
43
|
+
filterPanelOperatorOr: 'Vagy',
|
|
44
|
+
filterPanelColumns: 'Oszlopok',
|
|
45
|
+
filterPanelInputLabel: 'Érték',
|
|
46
|
+
filterPanelInputPlaceholder: 'Érték szűrése',
|
|
47
|
+
// Filter operators text
|
|
48
|
+
filterOperatorContains: 'tartalmazza:',
|
|
49
|
+
filterOperatorEquals: 'egyenlő ezzel:',
|
|
50
|
+
filterOperatorStartsWith: 'ezzel kezdődik:',
|
|
51
|
+
filterOperatorEndsWith: 'ezzel végződik:',
|
|
52
|
+
filterOperatorIs: 'a következő:',
|
|
53
|
+
filterOperatorNot: 'nem a következő:',
|
|
54
|
+
filterOperatorAfter: 'ezutáni:',
|
|
55
|
+
filterOperatorOnOrAfter: 'ekkori vagy ezutáni:',
|
|
56
|
+
filterOperatorBefore: 'ezelőtti:',
|
|
57
|
+
filterOperatorOnOrBefore: 'ekkori vagy ezelőtti:',
|
|
58
|
+
filterOperatorIsEmpty: 'üres',
|
|
59
|
+
filterOperatorIsNotEmpty: 'nem üres',
|
|
60
|
+
filterOperatorIsAnyOf: 'a következők egyike:',
|
|
61
|
+
// Filter values text
|
|
62
|
+
filterValueAny: 'bármilyen',
|
|
63
|
+
filterValueTrue: 'igaz',
|
|
64
|
+
filterValueFalse: 'hamis',
|
|
65
|
+
// Column menu text
|
|
66
|
+
columnMenuLabel: 'Menü',
|
|
67
|
+
columnMenuShowColumns: 'Oszlopok megjelenítése',
|
|
68
|
+
columnMenuFilter: 'Szűrők',
|
|
69
|
+
columnMenuHideColumn: 'Elrejtés',
|
|
70
|
+
columnMenuUnsort: 'Sorrend visszaállítása',
|
|
71
|
+
columnMenuSortAsc: 'Növekvő sorrendbe',
|
|
72
|
+
columnMenuSortDesc: 'Csökkenő sorrendbe',
|
|
73
|
+
// Column header text
|
|
74
|
+
columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
|
|
75
|
+
return "".concat(count, " akt\xEDv sz\u0171r\u0151");
|
|
76
|
+
},
|
|
77
|
+
columnHeaderFiltersLabel: 'Szűrők megjelenítése',
|
|
78
|
+
columnHeaderSortIconLabel: 'Átrendezés',
|
|
79
|
+
// Rows selected footer text
|
|
80
|
+
footerRowSelected: function footerRowSelected(count) {
|
|
81
|
+
return "".concat(count.toLocaleString(), " sor kiv\xE1lasztva");
|
|
82
|
+
},
|
|
83
|
+
// Total row amount footer text
|
|
84
|
+
footerTotalRows: 'Összesen:',
|
|
85
|
+
// Total visible row amount footer text
|
|
86
|
+
footerTotalVisibleRows: function footerTotalVisibleRows(visibleCount, totalCount) {
|
|
87
|
+
return "".concat(visibleCount.toLocaleString(), " (\xF6sszesen: ").concat(totalCount.toLocaleString(), ")");
|
|
88
|
+
},
|
|
89
|
+
// Checkbox selection text
|
|
90
|
+
checkboxSelectionHeaderName: 'Jelölőnégyzetes kijelölés',
|
|
91
|
+
checkboxSelectionSelectAllRows: 'Minden sor kijelölése',
|
|
92
|
+
checkboxSelectionUnselectAllRows: 'Minden sor kijelölésének törlése',
|
|
93
|
+
checkboxSelectionSelectRow: 'Sor kijelölése',
|
|
94
|
+
checkboxSelectionUnselectRow: 'Sor kijelölésének törlése',
|
|
95
|
+
// Boolean cell text
|
|
96
|
+
booleanCellTrueLabel: 'igen',
|
|
97
|
+
booleanCellFalseLabel: 'nem',
|
|
98
|
+
// Actions cell more text
|
|
99
|
+
actionsCellMore: 'további',
|
|
100
|
+
// Column pinning text
|
|
101
|
+
pinToLeft: 'Rögzítés balra',
|
|
102
|
+
pinToRight: 'Rögzítés jobbra',
|
|
103
|
+
unpin: 'Rögzítés törlése',
|
|
104
|
+
// Tree Data
|
|
105
|
+
treeDataGroupingHeaderName: 'Csoport',
|
|
106
|
+
treeDataExpand: 'gyermekek megjelenítése',
|
|
107
|
+
treeDataCollapse: 'gyermekek elrejtése',
|
|
108
|
+
// Grouping columns
|
|
109
|
+
groupingColumnHeaderName: 'Csoportosítás',
|
|
110
|
+
groupColumn: function groupColumn(name) {
|
|
111
|
+
return "Csoportos\xEDt\xE1s ".concat(name, " szerint");
|
|
112
|
+
},
|
|
113
|
+
unGroupColumn: function unGroupColumn(name) {
|
|
114
|
+
return "".concat(name, " szerinti csoportos\xEDt\xE1s t\xF6rl\xE9se");
|
|
115
|
+
},
|
|
116
|
+
// Master/detail
|
|
117
|
+
expandDetailPanel: 'Kibontás',
|
|
118
|
+
collapseDetailPanel: 'Összecsukás'
|
|
119
|
+
};
|
|
120
|
+
export var huHU = getGridLocalization(huHUGrid, huHUCore);
|
package/legacy/locales/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -59,12 +59,11 @@ var GridEvents;
|
|
|
59
59
|
GridEvents["columnOrderChange"] = "columnOrderChange";
|
|
60
60
|
GridEvents["rowsSet"] = "rowsSet";
|
|
61
61
|
GridEvents["rowExpansionChange"] = "rowExpansionChange";
|
|
62
|
-
GridEvents["
|
|
62
|
+
GridEvents["sortedRowsSet"] = "sortedRowsSet";
|
|
63
|
+
GridEvents["filteredRowsSet"] = "filteredRowsSet";
|
|
63
64
|
GridEvents["columnsChange"] = "columnsChange";
|
|
64
65
|
GridEvents["detailPanelsExpandedRowIdsChange"] = "detailPanelsExpandedRowIdsChange";
|
|
65
66
|
GridEvents["pinnedColumnsChange"] = "pinnedColumnsChange";
|
|
66
|
-
GridEvents["pipeProcessorRegister"] = "pipeProcessorRegister";
|
|
67
|
-
GridEvents["pipeProcessorUnregister"] = "pipeProcessorUnregister";
|
|
68
67
|
GridEvents["activeStrategyProcessorChange"] = "activeStrategyProcessorChange";
|
|
69
68
|
GridEvents["strategyAvailabilityChange"] = "strategyAvailabilityChange";
|
|
70
69
|
GridEvents["sortModelChange"] = "sortModelChange";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/locales/huHU.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { huHU as huHUCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const huHUGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Nincsenek sorok',
|
|
6
|
+
noResultsOverlayLabel: 'Nincs találat.',
|
|
7
|
+
errorOverlayDefaultLabel: 'Váratlan hiba történt.',
|
|
8
|
+
// Density selector toolbar button text
|
|
9
|
+
toolbarDensity: 'Sormagasság',
|
|
10
|
+
toolbarDensityLabel: 'Sormagasság',
|
|
11
|
+
toolbarDensityCompact: 'Kompakt',
|
|
12
|
+
toolbarDensityStandard: 'Normál',
|
|
13
|
+
toolbarDensityComfortable: 'Kényelmes',
|
|
14
|
+
// Columns selector toolbar button text
|
|
15
|
+
toolbarColumns: 'Oszlopok',
|
|
16
|
+
toolbarColumnsLabel: 'Oszlopok kiválasztása',
|
|
17
|
+
// Filters toolbar button text
|
|
18
|
+
toolbarFilters: 'Szűrők',
|
|
19
|
+
toolbarFiltersLabel: 'Szűrők megjelenítése',
|
|
20
|
+
toolbarFiltersTooltipHide: 'Szűrők elrejtése',
|
|
21
|
+
toolbarFiltersTooltipShow: 'Szűrők megjelenítése',
|
|
22
|
+
toolbarFiltersTooltipActive: count => `${count} aktív szűrő`,
|
|
23
|
+
// Export selector toolbar button text
|
|
24
|
+
toolbarExport: 'Exportálás',
|
|
25
|
+
toolbarExportLabel: 'Exportálás',
|
|
26
|
+
toolbarExportCSV: 'Mentés CSV fájlként',
|
|
27
|
+
toolbarExportPrint: 'Nyomtatás',
|
|
28
|
+
// Columns panel text
|
|
29
|
+
columnsPanelTextFieldLabel: 'Oszlop keresése',
|
|
30
|
+
columnsPanelTextFieldPlaceholder: 'Oszlop neve',
|
|
31
|
+
columnsPanelDragIconLabel: 'Oszlop átrendezése',
|
|
32
|
+
columnsPanelShowAllButton: 'Összes megjelenítése',
|
|
33
|
+
columnsPanelHideAllButton: 'Összes elrejtése',
|
|
34
|
+
// Filter panel text
|
|
35
|
+
filterPanelAddFilter: 'Szűrő hozzáadása',
|
|
36
|
+
filterPanelDeleteIconLabel: 'Törlés',
|
|
37
|
+
filterPanelLinkOperator: 'Logikai operátor',
|
|
38
|
+
filterPanelOperators: 'Operátorok',
|
|
39
|
+
// TODO v6: rename to filterPanelOperator
|
|
40
|
+
filterPanelOperatorAnd: 'És',
|
|
41
|
+
filterPanelOperatorOr: 'Vagy',
|
|
42
|
+
filterPanelColumns: 'Oszlopok',
|
|
43
|
+
filterPanelInputLabel: 'Érték',
|
|
44
|
+
filterPanelInputPlaceholder: 'Érték szűrése',
|
|
45
|
+
// Filter operators text
|
|
46
|
+
filterOperatorContains: 'tartalmazza:',
|
|
47
|
+
filterOperatorEquals: 'egyenlő ezzel:',
|
|
48
|
+
filterOperatorStartsWith: 'ezzel kezdődik:',
|
|
49
|
+
filterOperatorEndsWith: 'ezzel végződik:',
|
|
50
|
+
filterOperatorIs: 'a következő:',
|
|
51
|
+
filterOperatorNot: 'nem a következő:',
|
|
52
|
+
filterOperatorAfter: 'ezutáni:',
|
|
53
|
+
filterOperatorOnOrAfter: 'ekkori vagy ezutáni:',
|
|
54
|
+
filterOperatorBefore: 'ezelőtti:',
|
|
55
|
+
filterOperatorOnOrBefore: 'ekkori vagy ezelőtti:',
|
|
56
|
+
filterOperatorIsEmpty: 'üres',
|
|
57
|
+
filterOperatorIsNotEmpty: 'nem üres',
|
|
58
|
+
filterOperatorIsAnyOf: 'a következők egyike:',
|
|
59
|
+
// Filter values text
|
|
60
|
+
filterValueAny: 'bármilyen',
|
|
61
|
+
filterValueTrue: 'igaz',
|
|
62
|
+
filterValueFalse: 'hamis',
|
|
63
|
+
// Column menu text
|
|
64
|
+
columnMenuLabel: 'Menü',
|
|
65
|
+
columnMenuShowColumns: 'Oszlopok megjelenítése',
|
|
66
|
+
columnMenuFilter: 'Szűrők',
|
|
67
|
+
columnMenuHideColumn: 'Elrejtés',
|
|
68
|
+
columnMenuUnsort: 'Sorrend visszaállítása',
|
|
69
|
+
columnMenuSortAsc: 'Növekvő sorrendbe',
|
|
70
|
+
columnMenuSortDesc: 'Csökkenő sorrendbe',
|
|
71
|
+
// Column header text
|
|
72
|
+
columnHeaderFiltersTooltipActive: count => `${count} aktív szűrő`,
|
|
73
|
+
columnHeaderFiltersLabel: 'Szűrők megjelenítése',
|
|
74
|
+
columnHeaderSortIconLabel: 'Átrendezés',
|
|
75
|
+
// Rows selected footer text
|
|
76
|
+
footerRowSelected: count => `${count.toLocaleString()} sor kiválasztva`,
|
|
77
|
+
// Total row amount footer text
|
|
78
|
+
footerTotalRows: 'Összesen:',
|
|
79
|
+
// Total visible row amount footer text
|
|
80
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} (összesen: ${totalCount.toLocaleString()})`,
|
|
81
|
+
// Checkbox selection text
|
|
82
|
+
checkboxSelectionHeaderName: 'Jelölőnégyzetes kijelölés',
|
|
83
|
+
checkboxSelectionSelectAllRows: 'Minden sor kijelölése',
|
|
84
|
+
checkboxSelectionUnselectAllRows: 'Minden sor kijelölésének törlése',
|
|
85
|
+
checkboxSelectionSelectRow: 'Sor kijelölése',
|
|
86
|
+
checkboxSelectionUnselectRow: 'Sor kijelölésének törlése',
|
|
87
|
+
// Boolean cell text
|
|
88
|
+
booleanCellTrueLabel: 'igen',
|
|
89
|
+
booleanCellFalseLabel: 'nem',
|
|
90
|
+
// Actions cell more text
|
|
91
|
+
actionsCellMore: 'további',
|
|
92
|
+
// Column pinning text
|
|
93
|
+
pinToLeft: 'Rögzítés balra',
|
|
94
|
+
pinToRight: 'Rögzítés jobbra',
|
|
95
|
+
unpin: 'Rögzítés törlése',
|
|
96
|
+
// Tree Data
|
|
97
|
+
treeDataGroupingHeaderName: 'Csoport',
|
|
98
|
+
treeDataExpand: 'gyermekek megjelenítése',
|
|
99
|
+
treeDataCollapse: 'gyermekek elrejtése',
|
|
100
|
+
// Grouping columns
|
|
101
|
+
groupingColumnHeaderName: 'Csoportosítás',
|
|
102
|
+
groupColumn: name => `Csoportosítás ${name} szerint`,
|
|
103
|
+
unGroupColumn: name => `${name} szerinti csoportosítás törlése`,
|
|
104
|
+
// Master/detail
|
|
105
|
+
expandDetailPanel: 'Kibontás',
|
|
106
|
+
collapseDetailPanel: 'Összecsukás'
|
|
107
|
+
};
|
|
108
|
+
export const huHU = getGridLocalization(huHUGrid, huHUCore);
|
package/locales/index.d.ts
CHANGED
package/locales/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import { GridLoggerApi } from './gridLoggerApi';
|
|
|
21
21
|
import { GridScrollApi } from './gridScrollApi';
|
|
22
22
|
import { GridVirtualScrollerApi } from './gridVirtualScrollerApi';
|
|
23
23
|
import type { GridPipeProcessingApi } from '../../hooks/core/pipeProcessing';
|
|
24
|
+
import { GridColumnSpanningApi } from './gridColumnSpanning';
|
|
24
25
|
import type { GridStrategyProcessingApi } from '../../hooks/core/strategyProcessing';
|
|
25
26
|
import type { GridDimensionsApi } from '../../hooks/features/dimensions';
|
|
26
27
|
import type { GridPaginationApi } from '../../hooks/features/pagination';
|
|
@@ -28,6 +29,6 @@ import type { GridStatePersistenceApi } from '../../hooks/features/statePersiste
|
|
|
28
29
|
declare type GridStateApiUntyped = {
|
|
29
30
|
[key in keyof (GridStateApi<any> & GridStatePersistenceApi<any>)]: any;
|
|
30
31
|
};
|
|
31
|
-
export interface GridApiCommon extends GridCoreApi, GridLoggerApi, GridPipeProcessingApi, GridStrategyProcessingApi, GridDensityApi, GridDimensionsApi, GridRowApi, GridRowsMetaApi, GridEditingApi, GridParamsApi, GridColumnApi, GridSelectionApi, GridSortApi, GridPaginationApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridDisableVirtualizationApi, GridVirtualScrollerApi, GridLocaleTextApi, GridClipboardApi, GridScrollApi, GridStateApiUntyped {
|
|
32
|
+
export interface GridApiCommon extends GridCoreApi, GridLoggerApi, GridPipeProcessingApi, GridStrategyProcessingApi, GridDensityApi, GridDimensionsApi, GridRowApi, GridRowsMetaApi, GridEditingApi, GridParamsApi, GridColumnApi, GridSelectionApi, GridSortApi, GridPaginationApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridDisableVirtualizationApi, GridVirtualScrollerApi, GridLocaleTextApi, GridClipboardApi, GridScrollApi, GridColumnSpanningApi, GridStateApiUntyped {
|
|
32
33
|
}
|
|
33
34
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GridColumnIndex, GridCellColSpanInfo } from '../gridColumnSpanning';
|
|
2
|
+
import { GridRowId } from '../gridRows';
|
|
3
|
+
/**
|
|
4
|
+
* The Column Spanning API interface that is available in the grid `apiRef`.
|
|
5
|
+
*/
|
|
6
|
+
export interface GridColumnSpanningApi {
|
|
7
|
+
/**
|
|
8
|
+
* Returns cell colSpan info.
|
|
9
|
+
* @param {GridRowId} rowId The row id
|
|
10
|
+
* @param {number} columnIndex The column index (0-based)
|
|
11
|
+
* @returns {GridCellColSpanInfo|undefined} Cell colSpan info
|
|
12
|
+
* @ignore - do not document.
|
|
13
|
+
*/
|
|
14
|
+
unstable_getCellColSpanInfo: (rowId: GridRowId, columnIndex: GridColumnIndex) => GridCellColSpanInfo | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Calculate column spanning for each cell in the row
|
|
17
|
+
* @param {Object} options The options to apply on the calculation.
|
|
18
|
+
* @param {GridRowId} options.rowId The row id
|
|
19
|
+
* @param {number} options.minFirstColumn First visible column index
|
|
20
|
+
* @param {number} options.maxLastColumn Last visible column index
|
|
21
|
+
* @ignore - do not document.
|
|
22
|
+
*/
|
|
23
|
+
unstable_calculateColSpan: (options: {
|
|
24
|
+
rowId: GridRowId;
|
|
25
|
+
minFirstColumn: number;
|
|
26
|
+
maxLastColumn: number;
|
|
27
|
+
}) => void;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { GridCellMode, GridRowMode } from '../gridCell';
|
|
2
2
|
import { GridEditRowsModel, GridEditCellProps } from '../gridEditRowModel';
|
|
3
|
-
import { GridRowId } from '../gridRows';
|
|
3
|
+
import { GridRowId, GridRowModel } from '../gridRows';
|
|
4
4
|
import { GridCellParams } from '../params/gridCellParams';
|
|
5
5
|
import { GridCommitCellChangeParams, GridEditCellValueParams, GridEditCellPropsParams } from '../params/gridEditCellParams';
|
|
6
6
|
import { MuiBaseEvent } from '../muiEvent';
|
|
7
|
+
export interface GridNewEditingSharedApi {
|
|
8
|
+
/**
|
|
9
|
+
* Controls if a cell is editable.
|
|
10
|
+
* @param {GridCellParams} params The cell params.
|
|
11
|
+
* @returns {boolean} A boolean value determining if the cell is editable.
|
|
12
|
+
*/
|
|
13
|
+
isCellEditable: (params: GridCellParams) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the value of the edit cell.
|
|
16
|
+
* Commonly used inside the edit cell component.
|
|
17
|
+
* @param {GridEditCellValueParams} params Contains the id, field and value to set.
|
|
18
|
+
* @param {React.SyntheticEvent} event The event to pass forward.
|
|
19
|
+
* @returns {Promise<boolean> | void} A promise with the validation status if `preventCommitWhileValidating` is `true`. Otherwise, void.
|
|
20
|
+
*/
|
|
21
|
+
setEditCellValue: (params: GridEditCellValueParams, event?: MuiBaseEvent) => Promise<boolean> | void;
|
|
22
|
+
/**
|
|
23
|
+
* Immediatelly updates the value of the cell, without waiting for the debounce.
|
|
24
|
+
* @param {GridRowId} id The row id.
|
|
25
|
+
* @param {string} field The field to update. If not passed, updates all fields in the given row id.
|
|
26
|
+
* @ignore - do not document.
|
|
27
|
+
*/
|
|
28
|
+
unstable_runPendingEditCellValueMutation: (id: GridRowId, field?: string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the row with the values that were set by editing the cells.
|
|
31
|
+
* In row editing, `field` is ignored and all fields are considered.
|
|
32
|
+
* @param {GridRowId} id The row id being edited.
|
|
33
|
+
* @param {string} field The field being edited.
|
|
34
|
+
* @ignore - do not document.
|
|
35
|
+
*/
|
|
36
|
+
unstable_getRowWithUpdatedValues: (id: GridRowId, field: string) => GridRowModel;
|
|
37
|
+
}
|
|
7
38
|
/**
|
|
8
39
|
* The shared methods used by the cell and row editing API.
|
|
9
40
|
*/
|
|
@@ -11,11 +42,13 @@ export interface GridEditingSharedApi {
|
|
|
11
42
|
/**
|
|
12
43
|
* Set the edit rows model of the grid.
|
|
13
44
|
* @param {GridEditRowsModel} model The new edit rows model.
|
|
45
|
+
* @deprecated Prefer the new editing API.
|
|
14
46
|
*/
|
|
15
47
|
setEditRowsModel: (model: GridEditRowsModel) => void;
|
|
16
48
|
/**
|
|
17
49
|
* Gets the edit rows model of the grid.
|
|
18
50
|
* @returns {GridEditRowsModel} The edit rows model.
|
|
51
|
+
* @deprecated Prefer the new editing API.
|
|
19
52
|
*/
|
|
20
53
|
getEditRowsModel: () => GridEditRowsModel;
|
|
21
54
|
/**
|
|
@@ -186,7 +219,7 @@ export interface GridStopRowEditModeParams {
|
|
|
186
219
|
*/
|
|
187
220
|
cellToFocusAfter?: 'none' | 'below' | 'right' | 'left';
|
|
188
221
|
}
|
|
189
|
-
export interface GridNewCellEditingApi extends
|
|
222
|
+
export interface GridNewCellEditingApi extends GridNewEditingSharedApi, Pick<GridCellEditingApi, 'getCellMode'> {
|
|
190
223
|
/**
|
|
191
224
|
* Puts the cell corresponding to the given row id and field into edit mode.
|
|
192
225
|
* @param {GridStartCellEditModeParams} params The row id and field of the cell to edit.
|
|
@@ -206,8 +239,15 @@ export interface GridNewCellEditingApi extends Omit<GridEditingSharedApi, 'getEd
|
|
|
206
239
|
* @ignore - do not document.
|
|
207
240
|
*/
|
|
208
241
|
unstable_setCellEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
|
|
242
|
+
/**
|
|
243
|
+
* Returns the row with the new value that was set by editing the cell.
|
|
244
|
+
* @param {GridRowId} id The row id being edited.
|
|
245
|
+
* @param {string} field The field being edited.
|
|
246
|
+
* @ignore - do not document.
|
|
247
|
+
*/
|
|
248
|
+
unstable_getRowWithUpdatedValuesFromCellEditing: (id: GridRowId, field: string) => GridRowModel;
|
|
209
249
|
}
|
|
210
|
-
export interface GridNewRowEditingApi extends
|
|
250
|
+
export interface GridNewRowEditingApi extends GridNewEditingSharedApi, Pick<GridRowEditingApi, 'getRowMode'> {
|
|
211
251
|
/**
|
|
212
252
|
* Puts the row corresponding to the given id into edit mode.
|
|
213
253
|
* @param {GridStartCellEditModeParams} params The row id edit.
|
|
@@ -227,6 +267,12 @@ export interface GridNewRowEditingApi extends Omit<GridEditingSharedApi, 'getEdi
|
|
|
227
267
|
* @ignore - do not document.
|
|
228
268
|
*/
|
|
229
269
|
unstable_setRowEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
|
|
270
|
+
/**
|
|
271
|
+
* Returns the row with the values that were set by editing all cells.
|
|
272
|
+
* @param {GridRowId} id The row id being edited.
|
|
273
|
+
* @ignore - do not document.
|
|
274
|
+
*/
|
|
275
|
+
unstable_getRowWithUpdatedValuesFromRowEditing: (id: GridRowId) => GridRowModel;
|
|
230
276
|
}
|
|
231
277
|
/**
|
|
232
278
|
* The editing API interface that is available in the grid `apiRef`.
|
|
@@ -214,6 +214,11 @@ export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V> {
|
|
|
214
214
|
* @default false
|
|
215
215
|
*/
|
|
216
216
|
disableExport?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Number of columns a cell should span.
|
|
219
|
+
* @default 1
|
|
220
|
+
*/
|
|
221
|
+
colSpan?: number | ((params: GridCellParams<V, R, F>) => number | undefined);
|
|
217
222
|
}
|
|
218
223
|
export interface GridActionsColDef extends GridColDef {
|
|
219
224
|
/**
|
|
@@ -9,7 +9,6 @@ import type { GridSelectionModel } from '../gridSelectionModel';
|
|
|
9
9
|
import type { ElementSize } from '../elementSize';
|
|
10
10
|
import type { MuiBaseEvent } from '../muiEvent';
|
|
11
11
|
import type { GridRowId, GridRowTreeNodeConfig } from '../gridRows';
|
|
12
|
-
import type { GridPipeProcessorGroup } from '../../hooks/core/pipeProcessing';
|
|
13
12
|
import type { GridColumnVisibilityModel } from '../../hooks/features/columns';
|
|
14
13
|
import type { GridStrategyProcessorName } from '../../hooks/core/strategyProcessing';
|
|
15
14
|
import { GridRowEditStartParams, GridRowEditStopParams } from '../params/gridRowParams';
|
|
@@ -162,12 +161,6 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
162
161
|
debouncedResize: {
|
|
163
162
|
params: ElementSize;
|
|
164
163
|
};
|
|
165
|
-
pipeProcessorRegister: {
|
|
166
|
-
params: GridPipeProcessorGroup;
|
|
167
|
-
};
|
|
168
|
-
pipeProcessorUnregister: {
|
|
169
|
-
params: GridPipeProcessorGroup;
|
|
170
|
-
};
|
|
171
164
|
activeStrategyProcessorChange: {
|
|
172
165
|
params: GridStrategyProcessorName;
|
|
173
166
|
};
|
|
@@ -200,7 +193,8 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
200
193
|
params: GridColumnOrderChangeParams;
|
|
201
194
|
};
|
|
202
195
|
rowsSet: {};
|
|
203
|
-
|
|
196
|
+
filteredRowsSet: {};
|
|
197
|
+
sortedRowsSet: {};
|
|
204
198
|
rowExpansionChange: {
|
|
205
199
|
params: GridRowTreeNodeConfig;
|
|
206
200
|
};
|
|
@@ -252,6 +246,7 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
252
246
|
};
|
|
253
247
|
rowsScroll: {
|
|
254
248
|
params: GridScrollParams;
|
|
249
|
+
event: React.UIEvent | MuiBaseEvent;
|
|
255
250
|
};
|
|
256
251
|
virtualScrollerContentSizeChange: {};
|
|
257
252
|
headerSelectionCheckboxChange: {
|
|
@@ -93,7 +93,7 @@ declare enum GridEvents {
|
|
|
93
93
|
*/
|
|
94
94
|
rowEditCommit = "rowEditCommit",
|
|
95
95
|
/**
|
|
96
|
-
* Fired when a [navigation key](/
|
|
96
|
+
* Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a cell.
|
|
97
97
|
* @ignore - do not document.
|
|
98
98
|
*/
|
|
99
99
|
cellNavigationKeyDown = "cellNavigationKeyDown",
|
|
@@ -129,7 +129,7 @@ declare enum GridEvents {
|
|
|
129
129
|
*/
|
|
130
130
|
columnHeaderFocus = "columnHeaderFocus",
|
|
131
131
|
/**
|
|
132
|
-
* Fired when a [navigation key](/
|
|
132
|
+
* Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a column header.
|
|
133
133
|
* @ignore - do not document.
|
|
134
134
|
*/
|
|
135
135
|
columnHeaderNavigationKeyDown = "columnHeaderNavigationKeyDown",
|
|
@@ -255,10 +255,15 @@ declare enum GridEvents {
|
|
|
255
255
|
*/
|
|
256
256
|
rowExpansionChange = "rowExpansionChange",
|
|
257
257
|
/**
|
|
258
|
-
* Fired when the
|
|
258
|
+
* Fired when the sorted rows are updated
|
|
259
|
+
* @ignore - do not document
|
|
260
|
+
*/
|
|
261
|
+
sortedRowsSet = "sortedRowsSet",
|
|
262
|
+
/**
|
|
263
|
+
* Fired when the filtered rows are updated
|
|
259
264
|
* @ignore - do not document.
|
|
260
265
|
*/
|
|
261
|
-
|
|
266
|
+
filteredRowsSet = "filteredRowsSet",
|
|
262
267
|
/**
|
|
263
268
|
* Fired when the columns state is changed.
|
|
264
269
|
*/
|
|
@@ -273,16 +278,6 @@ declare enum GridEvents {
|
|
|
273
278
|
* @ignore - do not document.
|
|
274
279
|
*/
|
|
275
280
|
pinnedColumnsChange = "pinnedColumnsChange",
|
|
276
|
-
/**
|
|
277
|
-
* Fired when a pre-processor is registered.
|
|
278
|
-
* @ignore - do not document.
|
|
279
|
-
*/
|
|
280
|
-
pipeProcessorRegister = "pipeProcessorRegister",
|
|
281
|
-
/**
|
|
282
|
-
* Fired when a pre-processor is unregistered.
|
|
283
|
-
* @ignore - do not document.
|
|
284
|
-
*/
|
|
285
|
-
pipeProcessorUnregister = "pipeProcessorUnregister",
|
|
286
281
|
/**
|
|
287
282
|
* Fired when a processor of the active strategy changes.
|
|
288
283
|
* @ignore - do not document.
|
|
@@ -59,12 +59,11 @@ var GridEvents;
|
|
|
59
59
|
GridEvents["columnOrderChange"] = "columnOrderChange";
|
|
60
60
|
GridEvents["rowsSet"] = "rowsSet";
|
|
61
61
|
GridEvents["rowExpansionChange"] = "rowExpansionChange";
|
|
62
|
-
GridEvents["
|
|
62
|
+
GridEvents["sortedRowsSet"] = "sortedRowsSet";
|
|
63
|
+
GridEvents["filteredRowsSet"] = "filteredRowsSet";
|
|
63
64
|
GridEvents["columnsChange"] = "columnsChange";
|
|
64
65
|
GridEvents["detailPanelsExpandedRowIdsChange"] = "detailPanelsExpandedRowIdsChange";
|
|
65
66
|
GridEvents["pinnedColumnsChange"] = "pinnedColumnsChange";
|
|
66
|
-
GridEvents["pipeProcessorRegister"] = "pipeProcessorRegister";
|
|
67
|
-
GridEvents["pipeProcessorUnregister"] = "pipeProcessorUnregister";
|
|
68
67
|
GridEvents["activeStrategyProcessorChange"] = "activeStrategyProcessorChange";
|
|
69
68
|
GridEvents["strategyAvailabilityChange"] = "strategyAvailabilityChange";
|
|
70
69
|
GridEvents["sortModelChange"] = "sortModelChange";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type GridColumnIndex = number;
|
|
2
|
+
export declare type GridCellColSpanInfo = {
|
|
3
|
+
spannedByColSpan: true;
|
|
4
|
+
rightVisibleCellIndex: GridColumnIndex;
|
|
5
|
+
leftVisibleCellIndex: GridColumnIndex;
|
|
6
|
+
} | {
|
|
7
|
+
spannedByColSpan: false;
|
|
8
|
+
cellProps: {
|
|
9
|
+
colSpan: number;
|
|
10
|
+
width: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { GridCellMode } from '../gridCell';
|
|
2
3
|
import { GridRowId, GridRowModel, GridRowTreeNodeConfig, GridValidRowModel } from '../gridRows';
|
|
3
4
|
import type { GridStateColDef } from '../colDef/gridColDef';
|
|
@@ -17,11 +18,11 @@ export interface GridCellParams<V = any, R extends GridValidRowModel = any, F =
|
|
|
17
18
|
/**
|
|
18
19
|
* The cell value, but if the column has valueGetter, use getValue.
|
|
19
20
|
*/
|
|
20
|
-
value
|
|
21
|
+
value?: V | undefined;
|
|
21
22
|
/**
|
|
22
23
|
* The cell value formatted with the column valueFormatter.
|
|
23
24
|
*/
|
|
24
|
-
formattedValue
|
|
25
|
+
formattedValue?: F | undefined;
|
|
25
26
|
/**
|
|
26
27
|
* The row model of the row that the current cell belongs to.
|
|
27
28
|
*/
|
|
@@ -59,6 +60,9 @@ export interface GridCellParams<V = any, R extends GridValidRowModel = any, F =
|
|
|
59
60
|
*/
|
|
60
61
|
getValue: (id: GridRowId, field: string) => any;
|
|
61
62
|
}
|
|
63
|
+
export interface FocusElement {
|
|
64
|
+
focus(): void;
|
|
65
|
+
}
|
|
62
66
|
/**
|
|
63
67
|
* GridCellParams containing api.
|
|
64
68
|
*/
|
|
@@ -68,6 +72,12 @@ export interface GridRenderCellParams<V = any, R extends GridValidRowModel = any
|
|
|
68
72
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
69
73
|
*/
|
|
70
74
|
api: any;
|
|
75
|
+
/**
|
|
76
|
+
* A ref allowing to set imperative focus.
|
|
77
|
+
* It can be passed to the element that should receive focus.
|
|
78
|
+
* @ignore - do not document.
|
|
79
|
+
*/
|
|
80
|
+
focusElementRef?: React.Ref<FocusElement>;
|
|
71
81
|
}
|
|
72
82
|
/**
|
|
73
83
|
* GridEditCellProps containing api.
|
|
@@ -34,6 +34,11 @@ interface GridRowVisibilityParams {
|
|
|
34
34
|
* Whether this row is the last visible or not.
|
|
35
35
|
*/
|
|
36
36
|
isLastVisible: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Index of the row in the current page.
|
|
39
|
+
* If the pagination is disabled, it will be the index relative to all filtered rows.
|
|
40
|
+
*/
|
|
41
|
+
indexRelativeToCurrentPage: number;
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
44
|
* Object passed as parameter in the row `getRowClassName` callback prop.
|
|
@@ -370,7 +370,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
370
370
|
* @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
|
|
371
371
|
* @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
|
|
372
372
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
373
|
-
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
|
|
373
|
+
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
|
|
374
374
|
*/
|
|
375
375
|
onEditCellPropsChange?: GridEventListener<GridEvents.editCellPropsChange>;
|
|
376
376
|
/**
|
|
@@ -458,7 +458,7 @@ DataGridRaw.propTypes = {
|
|
|
458
458
|
* @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
|
|
459
459
|
* @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
|
|
460
460
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
461
|
-
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
|
|
461
|
+
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
|
|
462
462
|
*/
|
|
463
463
|
onEditCellPropsChange: PropTypes.func,
|
|
464
464
|
|