@mui/x-data-grid 5.11.1 → 5.12.2
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 +199 -20
- package/DataGrid/DataGrid.js +26 -1
- package/README.md +2 -2
- package/colDef/gridCheckboxSelectionColDef.d.ts +1 -0
- package/colDef/gridCheckboxSelectionColDef.js +2 -1
- package/colDef/gridDateOperators.d.ts +1 -1
- package/colDef/gridNumericColDef.js +1 -1
- package/components/GridRow.d.ts +1 -1
- package/components/GridRow.js +51 -12
- package/components/cell/GridActionsCellItem.d.ts +1 -1
- package/components/cell/GridCell.d.ts +2 -1
- package/components/cell/GridCell.js +12 -7
- package/components/columnHeaders/GridColumnHeaderItem.js +9 -6
- package/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
- package/components/columnSelection/GridHeaderCheckbox.js +0 -1
- package/components/containers/GridRootStyles.js +8 -3
- package/components/menu/GridMenu.js +9 -2
- package/components/panel/GridColumnsPanel.js +12 -7
- package/components/panel/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPanelWrapper.js +3 -3
- package/components/panel/filterPanel/GridFilterForm.d.ts +61 -4
- package/components/panel/filterPanel/GridFilterForm.js +88 -8
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/components/panel/filterPanel/GridFilterPanel.d.ts +8 -5
- package/components/panel/filterPanel/GridFilterPanel.js +26 -11
- package/components/toolbar/GridToolbarColumnsButton.js +0 -1
- package/components/toolbar/GridToolbarDensitySelector.js +0 -1
- package/components/toolbar/GridToolbarExportContainer.js +0 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +0 -1
- package/components/toolbar/GridToolbarQuickFilter.d.ts +7 -0
- package/components/toolbar/GridToolbarQuickFilter.js +57 -4
- package/constants/defaultGridSlotsComponents.js +2 -1
- package/constants/gridClasses.d.ts +4 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +1 -0
- package/hooks/core/useGridStateInitialization.js +19 -6
- package/hooks/features/columnMenu/useGridColumnMenu.js +22 -0
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +3 -0
- package/hooks/features/columns/useGridColumnSpanning.d.ts +1 -1
- package/hooks/features/columns/useGridColumnSpanning.js +1 -1
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +13 -15
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +5 -0
- package/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/hooks/features/editRows/useGridCellEditing.new.js +11 -4
- package/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.js +10 -4
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/events/useGridEvents.js +2 -0
- package/hooks/features/filter/gridFilterSelector.d.ts +5 -0
- package/hooks/features/filter/gridFilterSelector.js +6 -0
- package/hooks/features/filter/gridFilterState.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +10 -2
- package/hooks/features/filter/gridFilterUtils.js +3 -6
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +29 -12
- package/hooks/features/pagination/useGridPage.js +1 -1
- package/hooks/features/pagination/useGridPageSize.js +1 -1
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/rows/useGridRowsMeta.js +133 -67
- package/hooks/features/selection/useGridSelection.js +1 -1
- package/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/sorting/useGridSorting.js +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +2 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +65 -11
- package/index.js +1 -1
- package/internals/index.d.ts +1 -0
- package/legacy/DataGrid/DataGrid.js +26 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -1
- package/legacy/colDef/gridNumericColDef.js +1 -1
- package/legacy/components/GridRow.js +56 -12
- package/legacy/components/cell/GridCell.js +12 -7
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +11 -6
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -1
- package/legacy/components/containers/GridRootStyles.js +10 -7
- package/legacy/components/menu/GridMenu.js +9 -2
- package/legacy/components/panel/GridColumnsPanel.js +14 -7
- package/legacy/components/panel/GridPanelWrapper.js +3 -3
- package/legacy/components/panel/filterPanel/GridFilterForm.js +89 -8
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +28 -12
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -1
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -1
- package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -1
- package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -1
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +67 -6
- package/legacy/constants/defaultGridSlotsComponents.js +2 -1
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +1 -0
- package/legacy/hooks/core/useGridStateInitialization.js +18 -6
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +22 -0
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +1 -1
- package/legacy/hooks/features/columns/useGridColumns.js +13 -15
- package/legacy/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +14 -7
- package/legacy/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +10 -4
- package/legacy/hooks/features/events/useGridEvents.js +2 -0
- package/legacy/hooks/features/filter/gridFilterSelector.js +8 -0
- package/legacy/hooks/features/filter/gridFilterUtils.js +4 -7
- package/legacy/hooks/features/filter/useGridFilter.js +33 -12
- package/legacy/hooks/features/pagination/useGridPage.js +1 -1
- package/legacy/hooks/features/pagination/useGridPageSize.js +1 -1
- package/legacy/hooks/features/rows/useGridRowsMeta.js +133 -66
- package/legacy/hooks/features/selection/useGridSelection.js +1 -1
- package/legacy/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
- package/legacy/hooks/features/sorting/useGridSorting.js +1 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +84 -26
- package/legacy/index.js +1 -1
- package/legacy/locales/arSD.js +1 -0
- package/legacy/locales/bgBG.js +1 -0
- package/legacy/locales/csCZ.js +1 -0
- package/legacy/locales/daDK.js +1 -0
- package/legacy/locales/deDE.js +1 -0
- package/legacy/locales/elGR.js +1 -0
- package/legacy/locales/esES.js +1 -0
- package/legacy/locales/faIR.js +1 -0
- package/legacy/locales/fiFI.js +1 -0
- package/legacy/locales/frFR.js +1 -0
- package/legacy/locales/heIL.js +10 -9
- package/legacy/locales/huHU.js +1 -0
- package/legacy/locales/itIT.js +1 -0
- package/legacy/locales/jaJP.js +29 -24
- package/legacy/locales/koKR.js +1 -0
- package/legacy/locales/nbNO.js +128 -0
- package/legacy/locales/nlNL.js +1 -0
- package/legacy/locales/plPL.js +1 -0
- package/legacy/locales/ptBR.js +1 -0
- package/legacy/locales/ruRU.js +7 -6
- package/legacy/locales/skSK.js +1 -0
- package/legacy/locales/trTR.js +8 -7
- package/legacy/locales/ukUA.js +1 -0
- package/legacy/locales/viVN.js +1 -0
- package/legacy/locales/zhCN.js +1 -0
- package/legacy/models/events/gridEvents.js +2 -0
- package/legacy/models/gridApiCaches.js +1 -0
- package/legacy/models/params/gridMenuParams.js +1 -0
- package/legacy/models/params/index.js +2 -1
- package/locales/arSD.js +1 -0
- package/locales/bgBG.js +1 -0
- package/locales/csCZ.js +1 -0
- package/locales/daDK.js +1 -0
- package/locales/deDE.js +1 -0
- package/locales/elGR.js +1 -0
- package/locales/esES.js +1 -0
- package/locales/faIR.js +1 -0
- package/locales/fiFI.js +1 -0
- package/locales/frFR.js +1 -0
- package/locales/heIL.js +10 -9
- package/locales/huHU.js +1 -0
- package/locales/itIT.js +1 -0
- package/locales/jaJP.js +25 -24
- package/locales/koKR.js +1 -0
- package/locales/nbNO.d.ts +2 -0
- package/locales/nbNO.js +116 -0
- package/locales/nlNL.js +1 -0
- package/locales/plPL.js +1 -0
- package/locales/ptBR.js +1 -0
- package/locales/ruRU.js +7 -6
- package/locales/skSK.js +1 -0
- package/locales/trTR.js +8 -7
- package/locales/ukUA.js +1 -0
- package/locales/viVN.js +1 -0
- package/locales/zhCN.js +1 -0
- package/models/api/gridCallbackDetails.d.ts +6 -1
- package/models/api/gridCoreApi.d.ts +2 -6
- package/models/api/gridFilterApi.d.ts +8 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/api/gridRowsMetaApi.d.ts +24 -0
- package/models/api/gridStateApi.d.ts +14 -3
- package/models/colDef/gridColDef.d.ts +4 -4
- package/models/events/gridEventLookup.d.ts +16 -1
- package/models/events/gridEvents.d.ts +3 -1
- package/models/events/gridEvents.js +2 -0
- package/models/gridApiCaches.d.ts +6 -0
- package/models/gridApiCaches.js +1 -0
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/params/gridMenuParams.d.ts +7 -0
- package/models/params/gridMenuParams.js +1 -0
- package/models/params/gridRowParams.d.ts +1 -1
- package/models/params/index.d.ts +1 -0
- package/models/params/index.js +2 -1
- package/models/props/DataGridProps.d.ts +24 -2
- package/modern/DataGrid/DataGrid.js +26 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +2 -1
- package/modern/colDef/gridNumericColDef.js +1 -1
- package/modern/components/GridRow.js +51 -12
- package/modern/components/cell/GridCell.js +12 -7
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +9 -6
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
- package/modern/components/columnSelection/GridHeaderCheckbox.js +0 -1
- package/modern/components/containers/GridRootStyles.js +8 -3
- package/modern/components/menu/GridMenu.js +9 -2
- package/modern/components/panel/GridColumnsPanel.js +12 -7
- package/modern/components/panel/GridPanelWrapper.js +3 -3
- package/modern/components/panel/filterPanel/GridFilterForm.js +88 -8
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/modern/components/panel/filterPanel/GridFilterPanel.js +26 -11
- package/modern/components/toolbar/GridToolbarColumnsButton.js +0 -1
- package/modern/components/toolbar/GridToolbarDensitySelector.js +0 -1
- package/modern/components/toolbar/GridToolbarExportContainer.js +0 -1
- package/modern/components/toolbar/GridToolbarFilterButton.js +0 -1
- package/modern/components/toolbar/GridToolbarQuickFilter.js +57 -4
- package/modern/constants/defaultGridSlotsComponents.js +2 -1
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +1 -0
- package/modern/hooks/core/useGridStateInitialization.js +19 -6
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +22 -0
- package/modern/hooks/features/columns/useGridColumnSpanning.js +1 -1
- package/modern/hooks/features/columns/useGridColumns.js +12 -14
- package/modern/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +10 -3
- package/modern/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +9 -3
- package/modern/hooks/features/events/useGridEvents.js +2 -0
- package/modern/hooks/features/filter/gridFilterSelector.js +6 -0
- package/modern/hooks/features/filter/gridFilterUtils.js +3 -6
- package/modern/hooks/features/filter/useGridFilter.js +29 -12
- package/modern/hooks/features/pagination/useGridPage.js +1 -1
- package/modern/hooks/features/pagination/useGridPageSize.js +1 -1
- package/modern/hooks/features/rows/useGridRowsMeta.js +129 -59
- package/modern/hooks/features/selection/useGridSelection.js +1 -1
- package/modern/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
- package/modern/hooks/features/sorting/useGridSorting.js +1 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +65 -11
- package/modern/index.js +1 -1
- package/modern/locales/arSD.js +1 -0
- package/modern/locales/bgBG.js +1 -0
- package/modern/locales/csCZ.js +1 -0
- package/modern/locales/daDK.js +1 -0
- package/modern/locales/deDE.js +1 -0
- package/modern/locales/elGR.js +1 -0
- package/modern/locales/esES.js +1 -0
- package/modern/locales/faIR.js +1 -0
- package/modern/locales/fiFI.js +1 -0
- package/modern/locales/frFR.js +1 -0
- package/modern/locales/heIL.js +10 -9
- package/modern/locales/huHU.js +1 -0
- package/modern/locales/itIT.js +1 -0
- package/modern/locales/jaJP.js +25 -24
- package/modern/locales/koKR.js +1 -0
- package/modern/locales/nbNO.js +116 -0
- package/modern/locales/nlNL.js +1 -0
- package/modern/locales/plPL.js +1 -0
- package/modern/locales/ptBR.js +1 -0
- package/modern/locales/ruRU.js +7 -6
- package/modern/locales/skSK.js +1 -0
- package/modern/locales/trTR.js +8 -7
- package/modern/locales/ukUA.js +1 -0
- package/modern/locales/viVN.js +1 -0
- package/modern/locales/zhCN.js +1 -0
- package/modern/models/events/gridEvents.js +2 -0
- package/modern/models/gridApiCaches.js +1 -0
- package/modern/models/params/gridMenuParams.js +1 -0
- package/modern/models/params/index.js +2 -1
- package/node/DataGrid/DataGrid.js +26 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +4 -2
- package/node/colDef/gridNumericColDef.js +1 -1
- package/node/components/GridRow.js +53 -12
- package/node/components/cell/GridCell.js +12 -7
- package/node/components/columnHeaders/GridColumnHeaderItem.js +9 -6
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
- package/node/components/columnSelection/GridHeaderCheckbox.js +0 -1
- package/node/components/containers/GridRootStyles.js +8 -3
- package/node/components/menu/GridMenu.js +10 -2
- package/node/components/panel/GridColumnsPanel.js +12 -7
- package/node/components/panel/GridPanelWrapper.js +5 -3
- package/node/components/panel/filterPanel/GridFilterForm.js +91 -9
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/node/components/panel/filterPanel/GridFilterPanel.js +28 -11
- package/node/components/toolbar/GridToolbarColumnsButton.js +0 -1
- package/node/components/toolbar/GridToolbarDensitySelector.js +0 -1
- package/node/components/toolbar/GridToolbarExportContainer.js +0 -1
- package/node/components/toolbar/GridToolbarFilterButton.js +0 -1
- package/node/components/toolbar/GridToolbarQuickFilter.js +61 -4
- package/node/constants/defaultGridSlotsComponents.js +2 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +1 -0
- package/node/hooks/core/useGridStateInitialization.js +19 -6
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +23 -0
- package/node/hooks/features/columns/useGridColumnSpanning.js +11 -16
- package/node/hooks/features/columns/useGridColumns.js +13 -15
- package/node/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/node/hooks/features/editRows/useGridCellEditing.new.js +11 -4
- package/node/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/node/hooks/features/editRows/useGridRowEditing.new.js +10 -4
- package/node/hooks/features/events/useGridEvents.js +2 -0
- package/node/hooks/features/filter/gridFilterSelector.js +9 -2
- package/node/hooks/features/filter/gridFilterUtils.js +4 -5
- package/node/hooks/features/filter/useGridFilter.js +28 -11
- package/node/hooks/features/pagination/useGridPage.js +1 -1
- package/node/hooks/features/pagination/useGridPageSize.js +1 -1
- package/node/hooks/features/rows/useGridRowsMeta.js +136 -69
- package/node/hooks/features/selection/useGridSelection.js +1 -1
- package/node/hooks/features/selection/useGridSelectionPreProcessors.js +7 -5
- package/node/hooks/features/sorting/useGridSorting.js +1 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +65 -12
- package/node/index.js +1 -1
- package/node/locales/arSD.js +1 -0
- package/node/locales/bgBG.js +1 -0
- package/node/locales/csCZ.js +1 -0
- package/node/locales/daDK.js +1 -0
- package/node/locales/deDE.js +1 -0
- package/node/locales/elGR.js +1 -0
- package/node/locales/esES.js +1 -0
- package/node/locales/faIR.js +1 -0
- package/node/locales/fiFI.js +1 -0
- package/node/locales/frFR.js +1 -0
- package/node/locales/heIL.js +10 -9
- package/node/locales/huHU.js +1 -0
- package/node/locales/itIT.js +1 -0
- package/node/locales/jaJP.js +25 -24
- package/node/locales/koKR.js +1 -0
- package/node/locales/nbNO.js +126 -0
- package/node/locales/nlNL.js +1 -0
- package/node/locales/plPL.js +1 -0
- package/node/locales/ptBR.js +1 -0
- package/node/locales/ruRU.js +7 -6
- package/node/locales/skSK.js +1 -0
- package/node/locales/trTR.js +8 -7
- package/node/locales/ukUA.js +1 -0
- package/node/locales/viVN.js +1 -0
- package/node/locales/zhCN.js +1 -0
- package/node/models/events/gridEvents.js +2 -0
- package/node/models/gridApiCaches.js +5 -0
- package/node/models/params/gridMenuParams.js +5 -0
- package/node/models/params/index.js +13 -0
- package/package.json +6 -5
package/locales/jaJP.js
CHANGED
|
@@ -21,15 +21,15 @@ const jaJPGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'フィルター表示',
|
|
22
22
|
toolbarFiltersTooltipActive: count => `${count}件のフィルターを適用中`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: '検索...',
|
|
25
|
+
toolbarQuickFilterLabel: '検索',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'クリア',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'エクスポート',
|
|
29
29
|
toolbarExportLabel: 'エクスポート',
|
|
30
30
|
toolbarExportCSV: 'CSVダウンロード',
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
toolbarExportPrint: '印刷',
|
|
32
|
+
toolbarExportExcel: 'Excelダウンロード',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: '列検索',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: '検索クエリを入力...',
|
|
@@ -60,7 +60,7 @@ const jaJPGrid = {
|
|
|
60
60
|
filterOperatorOnOrBefore: '...以前',
|
|
61
61
|
filterOperatorIsEmpty: '...空である',
|
|
62
62
|
filterOperatorIsNotEmpty: '...空でない',
|
|
63
|
-
|
|
63
|
+
filterOperatorIsAnyOf: '...のいずれか',
|
|
64
64
|
// Filter values text
|
|
65
65
|
// filterValueAny: 'any',
|
|
66
66
|
// filterValueTrue: 'true',
|
|
@@ -85,31 +85,32 @@ const jaJPGrid = {
|
|
|
85
85
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
|
|
86
86
|
// Checkbox selection text
|
|
87
87
|
checkboxSelectionHeaderName: 'チェックボックス',
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
checkboxSelectionSelectAllRows: 'すべての行を選択',
|
|
89
|
+
checkboxSelectionUnselectAllRows: 'すべての行選択を解除',
|
|
90
|
+
checkboxSelectionSelectRow: '行を選択',
|
|
91
|
+
checkboxSelectionUnselectRow: '行選択を解除',
|
|
92
92
|
// Boolean cell text
|
|
93
93
|
booleanCellTrueLabel: '真',
|
|
94
|
-
booleanCellFalseLabel: '偽'
|
|
94
|
+
booleanCellFalseLabel: '偽',
|
|
95
|
+
// Actions cell more text
|
|
95
96
|
// actionsCellMore: 'more',
|
|
96
97
|
// Column pinning text
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
pinToLeft: '左側に固定',
|
|
99
|
+
pinToRight: '右側に固定',
|
|
100
|
+
unpin: '固定解除',
|
|
100
101
|
// Tree Data
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
treeDataGroupingHeaderName: 'グループ',
|
|
103
|
+
treeDataExpand: '展開',
|
|
104
|
+
treeDataCollapse: '折りたたみ',
|
|
104
105
|
// Grouping columns
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
groupingColumnHeaderName: 'グループ',
|
|
107
|
+
groupColumn: name => `${name}でグループ化`,
|
|
108
|
+
unGroupColumn: name => `${name}のグループを解除`,
|
|
108
109
|
// Master/detail
|
|
109
|
-
//
|
|
110
|
-
|
|
110
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
111
|
+
expandDetailPanel: '展開',
|
|
112
|
+
collapseDetailPanel: '折りたたみ',
|
|
111
113
|
// Row reordering text
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
rowReorderingHeaderName: '行並び替え'
|
|
114
115
|
};
|
|
115
116
|
export const jaJP = getGridLocalization(jaJPGrid, jaJPCore);
|
package/locales/koKR.js
CHANGED
|
@@ -106,6 +106,7 @@ const koKRGrid = {
|
|
|
106
106
|
// groupColumn: name => `Group by ${name}`,
|
|
107
107
|
// unGroupColumn: name => `Stop grouping by ${name}`,
|
|
108
108
|
// Master/detail
|
|
109
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
109
110
|
// expandDetailPanel: 'Expand',
|
|
110
111
|
// collapseDetailPanel: 'Collapse',
|
|
111
112
|
// Row reordering text
|
package/locales/nbNO.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { nbNO as nbNOCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const nbNOGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Ingen rader',
|
|
6
|
+
noResultsOverlayLabel: 'Fant ingen resultat.',
|
|
7
|
+
errorOverlayDefaultLabel: 'Det skjedde en feil.',
|
|
8
|
+
// Density selector toolbar button text
|
|
9
|
+
toolbarDensity: 'Tetthet',
|
|
10
|
+
toolbarDensityLabel: 'Tetthet',
|
|
11
|
+
toolbarDensityCompact: 'Kompakt',
|
|
12
|
+
toolbarDensityStandard: 'Standard',
|
|
13
|
+
toolbarDensityComfortable: 'Komfortabelt',
|
|
14
|
+
// Columns selector toolbar button text
|
|
15
|
+
toolbarColumns: 'Kolonner',
|
|
16
|
+
toolbarColumnsLabel: 'Velg kolonner',
|
|
17
|
+
// Filters toolbar button text
|
|
18
|
+
toolbarFilters: 'Filter',
|
|
19
|
+
toolbarFiltersLabel: 'Vis filter',
|
|
20
|
+
toolbarFiltersTooltipHide: 'Skjul fitler',
|
|
21
|
+
toolbarFiltersTooltipShow: 'Vis filter',
|
|
22
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
|
|
23
|
+
// Quick filter toolbar field
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Søk...',
|
|
25
|
+
toolbarQuickFilterLabel: 'Søk',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Slett',
|
|
27
|
+
// Export selector toolbar button text
|
|
28
|
+
toolbarExport: 'Eksporter',
|
|
29
|
+
toolbarExportLabel: 'Eksporter',
|
|
30
|
+
toolbarExportCSV: 'Last ned som CSV',
|
|
31
|
+
toolbarExportPrint: 'Skriv ut',
|
|
32
|
+
toolbarExportExcel: 'Last ned som Excel',
|
|
33
|
+
// Columns panel text
|
|
34
|
+
columnsPanelTextFieldLabel: 'Finn kolonne',
|
|
35
|
+
columnsPanelTextFieldPlaceholder: 'Kolonne tittel',
|
|
36
|
+
columnsPanelDragIconLabel: 'Reorganiser kolonne',
|
|
37
|
+
columnsPanelShowAllButton: 'Vis alle',
|
|
38
|
+
columnsPanelHideAllButton: 'Skjul alle',
|
|
39
|
+
// Filter panel text
|
|
40
|
+
filterPanelAddFilter: 'Legg til filter',
|
|
41
|
+
filterPanelDeleteIconLabel: 'Slett',
|
|
42
|
+
filterPanelLinkOperator: 'Logisk operator',
|
|
43
|
+
filterPanelOperators: 'Operatører',
|
|
44
|
+
// TODO v6: rename to filterPanelOperator
|
|
45
|
+
filterPanelOperatorAnd: 'Og',
|
|
46
|
+
filterPanelOperatorOr: 'Eller',
|
|
47
|
+
filterPanelColumns: 'Kolonner',
|
|
48
|
+
filterPanelInputLabel: 'Verdi',
|
|
49
|
+
filterPanelInputPlaceholder: 'Filter verdi',
|
|
50
|
+
// Filter operators text
|
|
51
|
+
filterOperatorContains: 'inneholder',
|
|
52
|
+
filterOperatorEquals: 'er lik',
|
|
53
|
+
filterOperatorStartsWith: 'starter med',
|
|
54
|
+
filterOperatorEndsWith: 'slutter med',
|
|
55
|
+
filterOperatorIs: 'er',
|
|
56
|
+
filterOperatorNot: 'er ikke',
|
|
57
|
+
filterOperatorAfter: 'er etter',
|
|
58
|
+
filterOperatorOnOrAfter: 'er på eller etter',
|
|
59
|
+
filterOperatorBefore: 'er før',
|
|
60
|
+
filterOperatorOnOrBefore: 'er på eller før',
|
|
61
|
+
filterOperatorIsEmpty: 'er tom',
|
|
62
|
+
filterOperatorIsNotEmpty: 'er ikke tom',
|
|
63
|
+
filterOperatorIsAnyOf: 'er en av',
|
|
64
|
+
// Filter values text
|
|
65
|
+
filterValueAny: 'noen',
|
|
66
|
+
filterValueTrue: 'sant',
|
|
67
|
+
filterValueFalse: 'usant',
|
|
68
|
+
// Column menu text
|
|
69
|
+
columnMenuLabel: 'Meny',
|
|
70
|
+
columnMenuShowColumns: 'Vis kolonner',
|
|
71
|
+
columnMenuFilter: 'Filter',
|
|
72
|
+
columnMenuHideColumn: 'Skjul',
|
|
73
|
+
columnMenuUnsort: 'Usorter',
|
|
74
|
+
columnMenuSortAsc: 'Sorter ØKENDE',
|
|
75
|
+
columnMenuSortDesc: 'Sorter SYNKENDE',
|
|
76
|
+
// Column header text
|
|
77
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
|
|
78
|
+
columnHeaderFiltersLabel: 'Vis filter',
|
|
79
|
+
columnHeaderSortIconLabel: 'Sorter',
|
|
80
|
+
// Rows selected footer text
|
|
81
|
+
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} rader valgt` : `${count.toLocaleString()} rad valgt`,
|
|
82
|
+
// Total row amount footer text
|
|
83
|
+
footerTotalRows: 'Totalt antall rader:',
|
|
84
|
+
// Total visible row amount footer text
|
|
85
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} av ${totalCount.toLocaleString()}`,
|
|
86
|
+
// Checkbox selection text
|
|
87
|
+
checkboxSelectionHeaderName: 'Avmerkingsboks valgt',
|
|
88
|
+
checkboxSelectionSelectAllRows: 'Velg alle rader',
|
|
89
|
+
checkboxSelectionUnselectAllRows: 'Velg bort alle rader',
|
|
90
|
+
checkboxSelectionSelectRow: 'Velg rad',
|
|
91
|
+
checkboxSelectionUnselectRow: 'Velg bort rad',
|
|
92
|
+
// Boolean cell text
|
|
93
|
+
booleanCellTrueLabel: 'sant',
|
|
94
|
+
booleanCellFalseLabel: 'usant',
|
|
95
|
+
// Actions cell more text
|
|
96
|
+
actionsCellMore: 'mer',
|
|
97
|
+
// Column pinning text
|
|
98
|
+
pinToLeft: 'Fest til venstre',
|
|
99
|
+
pinToRight: 'Fest til høyre',
|
|
100
|
+
unpin: 'Løsne',
|
|
101
|
+
// Tree Data
|
|
102
|
+
treeDataGroupingHeaderName: 'Grupper',
|
|
103
|
+
treeDataExpand: 'se barn',
|
|
104
|
+
treeDataCollapse: 'skjul barn',
|
|
105
|
+
// Grouping columns
|
|
106
|
+
groupingColumnHeaderName: 'Grupper',
|
|
107
|
+
groupColumn: name => `Grupper på ${name}`,
|
|
108
|
+
unGroupColumn: name => `Stopp å grupper på ${name}`,
|
|
109
|
+
// Master/detail
|
|
110
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
111
|
+
expandDetailPanel: 'Utvid',
|
|
112
|
+
collapseDetailPanel: 'Kollaps',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
rowReorderingHeaderName: 'Rad reorganisering'
|
|
115
|
+
};
|
|
116
|
+
export const nbNO = getGridLocalization(nbNOGrid, nbNOCore);
|
package/locales/nlNL.js
CHANGED
|
@@ -106,6 +106,7 @@ const nlNLGrid = {
|
|
|
106
106
|
groupingColumnHeaderName: 'Groep',
|
|
107
107
|
groupColumn: name => `Groepeer op ${name}`,
|
|
108
108
|
unGroupColumn: name => `Stop groeperen op ${name}` // Master/detail
|
|
109
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
109
110
|
// expandDetailPanel: 'Expand',
|
|
110
111
|
// collapseDetailPanel: 'Collapse',
|
|
111
112
|
// Row reordering text
|
package/locales/plPL.js
CHANGED
|
@@ -107,6 +107,7 @@ const plPLGrid = {
|
|
|
107
107
|
groupColumn: name => `Grupuj według ${name}`,
|
|
108
108
|
unGroupColumn: name => `Rozgrupuj ${name}`,
|
|
109
109
|
// Master/detail
|
|
110
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
110
111
|
expandDetailPanel: 'Rozwiń',
|
|
111
112
|
collapseDetailPanel: 'Zwiń' // Row reordering text
|
|
112
113
|
// rowReorderingHeaderName: 'Row reordering',
|
package/locales/ptBR.js
CHANGED
|
@@ -107,6 +107,7 @@ const ptBRGrid = {
|
|
|
107
107
|
groupColumn: name => `Agrupar por ${name}`,
|
|
108
108
|
unGroupColumn: name => `Parar agrupamento por ${name}`,
|
|
109
109
|
// Master/detail
|
|
110
|
+
detailPanelToggle: 'Painel de detalhes',
|
|
110
111
|
expandDetailPanel: 'Expandir',
|
|
111
112
|
collapseDetailPanel: 'Esconder' // Row reordering text
|
|
112
113
|
// rowReorderingHeaderName: 'Row reordering',
|
package/locales/ruRU.js
CHANGED
|
@@ -40,7 +40,7 @@ const ruRUGrid = {
|
|
|
40
40
|
toolbarExportLabel: 'Экспорт',
|
|
41
41
|
toolbarExportCSV: 'Скачать в формате CSV',
|
|
42
42
|
toolbarExportPrint: 'Печать',
|
|
43
|
-
|
|
43
|
+
toolbarExportExcel: 'Скачать в формате Excel',
|
|
44
44
|
// Columns panel text
|
|
45
45
|
columnsPanelTextFieldLabel: 'Найти столбец',
|
|
46
46
|
columnsPanelTextFieldPlaceholder: 'Заголовок столбца',
|
|
@@ -71,7 +71,7 @@ const ruRUGrid = {
|
|
|
71
71
|
filterOperatorOnOrBefore: 'меньше или равно',
|
|
72
72
|
filterOperatorIsEmpty: 'пустой',
|
|
73
73
|
filterOperatorIsNotEmpty: 'не пустой',
|
|
74
|
-
|
|
74
|
+
filterOperatorIsAnyOf: 'любой из',
|
|
75
75
|
// Filter values text
|
|
76
76
|
filterValueAny: 'любой',
|
|
77
77
|
filterValueTrue: 'истина',
|
|
@@ -138,10 +138,11 @@ const ruRUGrid = {
|
|
|
138
138
|
// Grouping columns
|
|
139
139
|
groupingColumnHeaderName: 'Группа',
|
|
140
140
|
groupColumn: name => `Сгруппировать по ${name}`,
|
|
141
|
-
unGroupColumn: name => `Разгруппировать по ${name}
|
|
142
|
-
//
|
|
143
|
-
//
|
|
144
|
-
|
|
141
|
+
unGroupColumn: name => `Разгруппировать по ${name}`,
|
|
142
|
+
// Master/detail
|
|
143
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
144
|
+
expandDetailPanel: 'Развернуть',
|
|
145
|
+
collapseDetailPanel: 'Свернуть' // Row reordering text
|
|
145
146
|
// rowReorderingHeaderName: 'Row reordering',
|
|
146
147
|
|
|
147
148
|
};
|
package/locales/skSK.js
CHANGED
|
@@ -141,6 +141,7 @@ const skSKGrid = {
|
|
|
141
141
|
groupingColumnHeaderName: 'Skupina',
|
|
142
142
|
groupColumn: name => `Zoskupiť podľa ${name}`,
|
|
143
143
|
unGroupColumn: name => `Prestať zoskupovať podľa ${name}` // Master/detail
|
|
144
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
144
145
|
// expandDetailPanel: 'Expand',
|
|
145
146
|
// collapseDetailPanel: 'Collapse',
|
|
146
147
|
// Row reordering text
|
package/locales/trTR.js
CHANGED
|
@@ -21,15 +21,15 @@ const trTRGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'Filtreleri göster',
|
|
22
22
|
toolbarFiltersTooltipActive: count => `${count} aktif filtre`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Ara...',
|
|
25
|
+
toolbarQuickFilterLabel: 'Ara',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Temizle',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'Dışa aktar',
|
|
29
29
|
toolbarExportLabel: 'Dışa aktar',
|
|
30
30
|
toolbarExportCSV: 'CSV olarak aktar',
|
|
31
31
|
toolbarExportPrint: 'Yazdır',
|
|
32
|
-
|
|
32
|
+
toolbarExportExcel: 'Excel olarak aktar',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'Sütun ara',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: 'Sütun adı',
|
|
@@ -62,9 +62,9 @@ const trTRGrid = {
|
|
|
62
62
|
filterOperatorIsNotEmpty: 'dolu',
|
|
63
63
|
filterOperatorIsAnyOf: 'herhangi biri',
|
|
64
64
|
// Filter values text
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
filterValueAny: 'herhangi',
|
|
66
|
+
filterValueTrue: 'doğru',
|
|
67
|
+
filterValueFalse: 'yanlış',
|
|
68
68
|
// Column menu text
|
|
69
69
|
columnMenuLabel: 'Menü',
|
|
70
70
|
columnMenuShowColumns: 'Sütunları göster',
|
|
@@ -107,6 +107,7 @@ const trTRGrid = {
|
|
|
107
107
|
groupColumn: name => `${name} için grupla`,
|
|
108
108
|
unGroupColumn: name => `${name} için gruplamayı kaldır`,
|
|
109
109
|
// Master/detail
|
|
110
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
110
111
|
expandDetailPanel: 'Genişlet',
|
|
111
112
|
collapseDetailPanel: 'Gizle' // Row reordering text
|
|
112
113
|
// rowReorderingHeaderName: 'Row reordering',
|
package/locales/ukUA.js
CHANGED
|
@@ -132,6 +132,7 @@ const ukUAGrid = {
|
|
|
132
132
|
// groupColumn: name => `Group by ${name}`,
|
|
133
133
|
// unGroupColumn: name => `Stop grouping by ${name}`,
|
|
134
134
|
// Master/detail
|
|
135
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
135
136
|
// expandDetailPanel: 'Expand',
|
|
136
137
|
// collapseDetailPanel: 'Collapse',
|
|
137
138
|
// Row reordering text
|
package/locales/viVN.js
CHANGED
|
@@ -106,6 +106,7 @@ const viVNGrid = {
|
|
|
106
106
|
// groupColumn: name => `Group by ${name}`,
|
|
107
107
|
// unGroupColumn: name => `Stop grouping by ${name}`,
|
|
108
108
|
// Master/detail
|
|
109
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
109
110
|
// expandDetailPanel: 'Expand',
|
|
110
111
|
// collapseDetailPanel: 'Collapse',
|
|
111
112
|
// Row reordering text
|
package/locales/zhCN.js
CHANGED
|
@@ -106,6 +106,7 @@ const zhCNGrid = {
|
|
|
106
106
|
// groupColumn: name => `Group by ${name}`,
|
|
107
107
|
// unGroupColumn: name => `Stop grouping by ${name}`,
|
|
108
108
|
// Master/detail
|
|
109
|
+
// detailPanelToggle: 'Detail panel toggle',
|
|
109
110
|
// expandDetailPanel: 'Expand',
|
|
110
111
|
// collapseDetailPanel: 'Collapse',
|
|
111
112
|
// Row reordering text
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { GridControlledStateReasonLookup } from '../events/gridEventLookup';
|
|
1
2
|
/**
|
|
2
3
|
* Additional details passed to the callbacks
|
|
3
4
|
*/
|
|
4
|
-
export interface GridCallbackDetails {
|
|
5
|
+
export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLookup = any> {
|
|
5
6
|
/**
|
|
6
7
|
* Provided only if `DataGridPro` is being used.
|
|
7
8
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
8
9
|
*/
|
|
9
10
|
api?: any;
|
|
11
|
+
/**
|
|
12
|
+
* The reason for this callback to have been called.
|
|
13
|
+
*/
|
|
14
|
+
reason?: GridControlledStateReasonLookup[K];
|
|
10
15
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridEventPublisher, GridEventListener, GridEventsStr } from '../events';
|
|
3
3
|
import { EventManager, EventListenerOptions } from '../../utils/EventManager';
|
|
4
|
-
import {
|
|
5
|
-
interface Caches {
|
|
6
|
-
rows: GridRowsInternalCache;
|
|
7
|
-
}
|
|
4
|
+
import { GridApiCaches } from '../gridApiCaches';
|
|
8
5
|
/**
|
|
9
6
|
* The core API interface that is available in the grid `apiRef`.
|
|
10
7
|
*/
|
|
@@ -53,7 +50,7 @@ export interface GridCoreApi {
|
|
|
53
50
|
* The caches used by hooks and state initializers.
|
|
54
51
|
* @ignore - do not document.
|
|
55
52
|
*/
|
|
56
|
-
unstable_caches:
|
|
53
|
+
unstable_caches: GridApiCaches;
|
|
57
54
|
/**
|
|
58
55
|
* Registers a handler for an event.
|
|
59
56
|
* @param {string} event The name of the event.
|
|
@@ -80,4 +77,3 @@ export interface GridCoreApi {
|
|
|
80
77
|
*/
|
|
81
78
|
instanceId: number;
|
|
82
79
|
}
|
|
83
|
-
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GridRowId, GridRowModel } from '../gridRows';
|
|
2
2
|
import { GridFilterModel } from '../gridFilterModel';
|
|
3
3
|
import { GridFilterItem, GridLinkOperator } from '../gridFilterItem';
|
|
4
|
+
import { GridControlledStateReasonLookup } from '../events';
|
|
4
5
|
/**
|
|
5
6
|
* The filter API interface that is available in the grid [[apiRef]].
|
|
6
7
|
*/
|
|
@@ -19,6 +20,11 @@ export interface GridFilterApi {
|
|
|
19
20
|
* @param {GridFilterItem} item The filter to update.
|
|
20
21
|
*/
|
|
21
22
|
upsertFilterItem: (item: GridFilterItem) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Updates or inserts many [[GridFilterItem]].
|
|
25
|
+
* @param {GridFilterItem[]} items The filters to update.
|
|
26
|
+
*/
|
|
27
|
+
upsertFilterItems: (items: GridFilterItem[]) => void;
|
|
22
28
|
/**
|
|
23
29
|
* Applies all filters on all rows.
|
|
24
30
|
* @ignore - do not document.
|
|
@@ -37,8 +43,9 @@ export interface GridFilterApi {
|
|
|
37
43
|
/**
|
|
38
44
|
* Sets the filter model to the one given by `model`.
|
|
39
45
|
* @param {GridFilterModel} model The new filter model.
|
|
46
|
+
* @param {string} reason The reason for the model to have changed.
|
|
40
47
|
*/
|
|
41
|
-
setFilterModel: (model: GridFilterModel) => void;
|
|
48
|
+
setFilterModel: (model: GridFilterModel, reason?: GridControlledStateReasonLookup['filter']) => void;
|
|
42
49
|
/**
|
|
43
50
|
* Returns a sorted `Map` containing only the visible rows.
|
|
44
51
|
* @returns {Map<GridRowId, GridRowModel>} The sorted `Map`.
|
|
@@ -87,6 +87,7 @@ export interface GridLocaleText {
|
|
|
87
87
|
groupingColumnHeaderName: string;
|
|
88
88
|
groupColumn: (name: string) => string;
|
|
89
89
|
unGroupColumn: (name: string) => string;
|
|
90
|
+
detailPanelToggle: string;
|
|
90
91
|
expandDetailPanel: string;
|
|
91
92
|
collapseDetailPanel: string;
|
|
92
93
|
MuiTablePagination: Omit<ComponentsPropsList['MuiTablePagination'], 'page' | 'count' | 'onChangePage' | 'rowsPerPage' | 'onPageChange'>;
|
|
@@ -24,4 +24,28 @@ export interface GridRowsMetaApi {
|
|
|
24
24
|
* @ignore - do not document.
|
|
25
25
|
*/
|
|
26
26
|
unstable_setRowHeight: (id: GridRowId, height: number) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Stores the row height measurement and triggers an hydration, if needed.
|
|
29
|
+
* @param {GridRowId} id The id of the row.
|
|
30
|
+
* @param {number} height The new height.
|
|
31
|
+
* @ignore - do not document.
|
|
32
|
+
*/
|
|
33
|
+
unstable_storeRowHeightMeasurement: (id: GridRowId, height: number) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Determines if the height of a row is "auto".
|
|
36
|
+
* @ignore - do not document.
|
|
37
|
+
*/
|
|
38
|
+
unstable_rowHasAutoHeight: (id: GridRowId) => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the index of the last row measured.
|
|
41
|
+
* The value considers only the rows reachable by scroll, e.g. first row has index=0 in all pages.
|
|
42
|
+
* @ignore - do not document.
|
|
43
|
+
*/
|
|
44
|
+
unstable_getLastMeasuredRowIndex: () => number;
|
|
45
|
+
/**
|
|
46
|
+
* Updates the index of the last row measured.
|
|
47
|
+
* @param {number} index The row index.
|
|
48
|
+
* @ignore - do not document.
|
|
49
|
+
*/
|
|
50
|
+
unstable_setLastMeasuredRowIndex: (index: number) => void;
|
|
27
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridStateCommunity } from '../gridStateCommunity';
|
|
2
|
-
import { GridControlledStateEventLookup } from '../events';
|
|
2
|
+
import { GridControlledStateEventLookup, GridControlledStateReasonLookup } from '../events';
|
|
3
3
|
import { GridControlStateItem } from '../controlStateItem';
|
|
4
4
|
export interface GridStateApi<State extends GridStateCommunity> {
|
|
5
5
|
/**
|
|
@@ -13,14 +13,25 @@ export interface GridStateApi<State extends GridStateCommunity> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Sets the whole state of the grid.
|
|
15
15
|
* @param {GridState | (oldState: GridState) => GridState} state The new state or the callback creating the new state.
|
|
16
|
+
* @param {string} reason The reason for this change to happen.
|
|
16
17
|
* @returns {boolean} Has the state been updated.
|
|
17
18
|
* @ignore - do not document.
|
|
18
19
|
*/
|
|
19
|
-
setState: <S extends State>(state: S | ((previousState: S) => S)) => boolean;
|
|
20
|
+
setState: <S extends State, K extends keyof GridControlledStateReasonLookup>(state: S | ((previousState: S) => S), reason?: GridControlledStateReasonLookup[K]) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Updates a single sub-state.
|
|
23
|
+
* Publishes the `xxxChange` event and calls the `onXXXChange` prop.
|
|
24
|
+
* @param {K} key Which key of the state to update.
|
|
25
|
+
* @param {(oldState: GridState) => GridState} state The new state of the sub-state to update.
|
|
26
|
+
* @param {GridControlledStateReasonLookup[K]} reason The reason to pass to the callback prop and event.
|
|
27
|
+
* @returns {boolean} `true` if the state has been successfully updated.
|
|
28
|
+
* @ignore - do not document.
|
|
29
|
+
*/
|
|
30
|
+
unstable_updateControlState: <K extends keyof GridControlledStateReasonLookup>(key: K, state: (oldState: State[K]) => State[K], reason?: GridControlledStateReasonLookup[K]) => boolean;
|
|
20
31
|
/**
|
|
21
32
|
* Updates a control state that binds the model, the onChange prop, and the grid state together.
|
|
22
33
|
* @param {GridControlStateItem>} controlState The [[GridControlStateItem]] to be registered.
|
|
23
34
|
* @ignore - do not document.
|
|
24
35
|
*/
|
|
25
|
-
|
|
36
|
+
unstable_registerControlState: <E extends keyof GridControlledStateEventLookup>(controlState: GridControlStateItem<State, E>) => void;
|
|
26
37
|
}
|
|
@@ -233,7 +233,7 @@ export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V> {
|
|
|
233
233
|
*/
|
|
234
234
|
colSpan?: number | ((params: GridCellParams<V, R, F>) => number | undefined);
|
|
235
235
|
}
|
|
236
|
-
export interface GridActionsColDef extends GridColDef {
|
|
236
|
+
export interface GridActionsColDef<R extends GridValidRowModel = any, V = any, F = V> extends GridColDef<R, V, F> {
|
|
237
237
|
/**
|
|
238
238
|
* Type allows to merge this object with a default definition [[GridColDef]].
|
|
239
239
|
* @default 'actions'
|
|
@@ -244,11 +244,11 @@ export interface GridActionsColDef extends GridColDef {
|
|
|
244
244
|
* @param {GridRowParams} params The params for each row.
|
|
245
245
|
* @returns {React.ReactElement<GridActionsCellItemProps>[]} An array of [[GridActionsCell]] elements.
|
|
246
246
|
*/
|
|
247
|
-
getActions: (params: GridRowParams) => React.ReactElement<GridActionsCellItemProps>[];
|
|
247
|
+
getActions: (params: GridRowParams<R>) => React.ReactElement<GridActionsCellItemProps>[];
|
|
248
248
|
}
|
|
249
|
-
export declare type GridEnrichedColDef<R extends GridValidRowModel = any, V = any, F = V> = GridColDef<R, V, F> | GridActionsColDef
|
|
249
|
+
export declare type GridEnrichedColDef<R extends GridValidRowModel = any, V = any, F = V> = GridColDef<R, V, F> | GridActionsColDef<R, V, F>;
|
|
250
250
|
export declare type GridColumns<R extends GridValidRowModel = any> = GridEnrichedColDef<R>[];
|
|
251
|
-
export declare type GridColTypeDef<V = any, F = V> = Omit<GridColDef<
|
|
251
|
+
export declare type GridColTypeDef<V = any, F = V> = Omit<GridColDef<any, V, F>, 'field'> & {
|
|
252
252
|
extendType?: GridNativeColTypes;
|
|
253
253
|
};
|
|
254
254
|
export declare type GridStateColDef<R extends GridValidRowModel = any, V = any, F = V> = GridEnrichedColDef<R, V, F> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridCellEditCommitParams, GridColumnHeaderParams, GridColumnOrderChangeParams, GridColumnResizeParams, GridColumnVisibilityChangeParams, GridEditCellPropsParams, GridHeaderSelectionCheckboxParams, GridPreferencePanelParams, GridRowParams, GridRowSelectionCheckboxParams, GridScrollParams } from '../params';
|
|
2
|
+
import type { GridCellEditCommitParams, GridColumnHeaderParams, GridColumnOrderChangeParams, GridColumnResizeParams, GridColumnVisibilityChangeParams, GridEditCellPropsParams, GridHeaderSelectionCheckboxParams, GridMenuParams, GridPreferencePanelParams, GridRowParams, GridRowSelectionCheckboxParams, GridScrollParams } from '../params';
|
|
3
3
|
import { GridCellEditStartParams, GridCellEditStopParams } from '../params/gridEditCellParams';
|
|
4
4
|
import { GridCellParams } from '../params/gridCellParams';
|
|
5
5
|
import type { GridFilterModel } from '../gridFilterModel';
|
|
@@ -280,6 +280,9 @@ export interface GridControlledStateEventLookup {
|
|
|
280
280
|
params: GridColumnVisibilityModel;
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
+
export interface GridControlledStateReasonLookup {
|
|
284
|
+
filter: 'upsertFilterItem' | 'upsertFilterItems' | 'deleteFilterItem' | 'changeLogicOperator' | 'restoreState';
|
|
285
|
+
}
|
|
283
286
|
export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
|
|
284
287
|
/**
|
|
285
288
|
* Fired when the grid is unmounted.
|
|
@@ -552,4 +555,16 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
552
555
|
preferencePanelOpen: {
|
|
553
556
|
params: GridPreferencePanelParams;
|
|
554
557
|
};
|
|
558
|
+
/**
|
|
559
|
+
* Fired when the menu is opened.
|
|
560
|
+
*/
|
|
561
|
+
menuOpen: {
|
|
562
|
+
params: GridMenuParams;
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Fired when the grid menu is closed.
|
|
566
|
+
*/
|
|
567
|
+
menuClose: {
|
|
568
|
+
params: GridMenuParams;
|
|
569
|
+
};
|
|
555
570
|
}
|
|
@@ -80,7 +80,9 @@ declare enum GridEvents {
|
|
|
80
80
|
virtualScrollerWheel = "virtualScrollerWheel",
|
|
81
81
|
virtualScrollerTouchMove = "virtualScrollerTouchMove",
|
|
82
82
|
preferencePanelClose = "preferencePanelClose",
|
|
83
|
-
preferencePanelOpen = "preferencePanelOpen"
|
|
83
|
+
preferencePanelOpen = "preferencePanelOpen",
|
|
84
|
+
menuOpen = "menuOpen",
|
|
85
|
+
menuClose = "menuClose"
|
|
84
86
|
}
|
|
85
87
|
export declare type GridEventsStr = keyof GridEventLookup;
|
|
86
88
|
export { GridEvents };
|
|
@@ -82,6 +82,8 @@ var GridEvents;
|
|
|
82
82
|
GridEvents["virtualScrollerTouchMove"] = "virtualScrollerTouchMove";
|
|
83
83
|
GridEvents["preferencePanelClose"] = "preferencePanelClose";
|
|
84
84
|
GridEvents["preferencePanelOpen"] = "preferencePanelOpen";
|
|
85
|
+
GridEvents["menuOpen"] = "menuOpen";
|
|
86
|
+
GridEvents["menuClose"] = "menuClose";
|
|
85
87
|
})(GridEvents || (GridEvents = {}));
|
|
86
88
|
|
|
87
89
|
export { GridEvents };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridRowsInternalCache } from '../hooks/features/rows/gridRowsState';
|
|
2
|
+
import { GridColumnsInternalCache } from '../hooks/features/columns/gridColumnsInterfaces';
|
|
3
|
+
export interface GridApiCaches {
|
|
4
|
+
rows: GridRowsInternalCache;
|
|
5
|
+
columns: GridColumnsInternalCache;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -124,4 +124,9 @@ export interface GridIconSlotsComponent {
|
|
|
124
124
|
* @default GridSearchIcon
|
|
125
125
|
*/
|
|
126
126
|
QuickFilterIcon: React.JSXElementConstructor<any>;
|
|
127
|
+
/**
|
|
128
|
+
* Icon displayed on the quick filter reset input.
|
|
129
|
+
* @default GridCloseIcon
|
|
130
|
+
*/
|
|
131
|
+
QuickFilterClearIcon: React.JSXElementConstructor<any>;
|
|
127
132
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -57,7 +57,7 @@ export interface GridRowHeightParams extends GridRowEntry {
|
|
|
57
57
|
/**
|
|
58
58
|
* The getRowHeight return value.
|
|
59
59
|
*/
|
|
60
|
-
export declare type GridRowHeightReturnValue = number | null | undefined;
|
|
60
|
+
export declare type GridRowHeightReturnValue = number | null | undefined | 'auto';
|
|
61
61
|
declare enum GridRowEditStartReasons {
|
|
62
62
|
enterKeyDown = "enterKeyDown",
|
|
63
63
|
cellDoubleClick = "cellDoubleClick",
|
package/models/params/index.d.ts
CHANGED
package/models/params/index.js
CHANGED
|
@@ -10,4 +10,5 @@ export * from './gridHeaderSelectionCheckboxParams';
|
|
|
10
10
|
export * from './gridValueOptionsParams';
|
|
11
11
|
export * from './gridCellParams';
|
|
12
12
|
export * from './gridSortModelParams';
|
|
13
|
-
export * from './gridPreferencePanelParams';
|
|
13
|
+
export * from './gridPreferencePanelParams';
|
|
14
|
+
export * from './gridMenuParams';
|