@mui/x-data-grid 6.15.0 → 6.16.1
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 +144 -0
- package/components/containers/GridRootStyles.js +10 -0
- package/constants/gridClasses.d.ts +4 -0
- package/constants/gridClasses.js +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -2
- package/hooks/features/filter/gridFilterUtils.js +2 -2
- package/index.js +1 -1
- package/legacy/components/containers/GridRootStyles.js +13 -9
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
- package/legacy/hooks/features/filter/gridFilterUtils.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/locales/ruRU.js +26 -28
- package/locales/ruRU.js +26 -28
- package/modern/components/containers/GridRootStyles.js +10 -0
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +2 -2
- package/modern/index.js +1 -1
- package/modern/locales/ruRU.js +26 -28
- package/node/DataGrid/DataGrid.js +3 -6
- package/node/DataGrid/useDataGridProps.js +1 -2
- package/node/colDef/gridActionsColDef.js +3 -5
- package/node/colDef/gridBooleanColDef.js +2 -3
- package/node/colDef/gridCheckboxSelectionColDef.js +3 -5
- package/node/colDef/gridDateColDef.js +3 -5
- package/node/colDef/gridDefaultColumnTypes.js +1 -2
- package/node/colDef/gridNumericColDef.js +2 -3
- package/node/colDef/gridNumericOperators.js +1 -2
- package/node/colDef/gridSingleSelectColDef.js +2 -3
- package/node/colDef/gridStringColDef.js +2 -3
- package/node/colDef/gridStringOperators.js +1 -2
- package/node/colDef/utils.js +1 -2
- package/node/components/DataGridVirtualScroller.js +2 -3
- package/node/components/GridApiContext.js +1 -2
- package/node/components/GridColumnHeaders.js +1 -2
- package/node/components/GridFooter.js +1 -2
- package/node/components/GridLoadingOverlay.js +1 -2
- package/node/components/GridNoResultsOverlay.js +2 -3
- package/node/components/GridNoRowsOverlay.js +1 -2
- package/node/components/GridPagination.js +2 -3
- package/node/components/GridRow.js +1 -2
- package/node/components/GridRowCount.js +1 -2
- package/node/components/GridSelectedRowCount.js +1 -2
- package/node/components/cell/GridActionsCellItem.js +1 -2
- package/node/components/cell/GridBooleanCell.js +1 -2
- package/node/components/cell/GridCell.js +3 -6
- package/node/components/cell/GridEditInputCell.js +1 -2
- package/node/components/cell/GridEditSingleSelectCell.js +3 -2
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -3
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +2 -3
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +2 -4
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -2
- package/node/components/columnHeaders/GridColumnHeadersInner.js +2 -3
- package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +2 -3
- package/node/components/columnHeaders/GridIconButtonContainer.js +2 -3
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -4
- package/node/components/columnSelection/GridHeaderCheckbox.js +1 -2
- package/node/components/containers/GridFooterContainer.js +1 -2
- package/node/components/containers/GridMainContainer.js +2 -3
- package/node/components/containers/GridOverlay.js +1 -2
- package/node/components/containers/GridRoot.js +1 -2
- package/node/components/containers/GridRootStyles.js +12 -3
- package/node/components/containers/GridToolbarContainer.js +1 -2
- package/node/components/menu/columnMenu/GridColumnMenu.js +4 -8
- package/node/components/menu/columnMenu/GridColumnMenuContainer.js +1 -2
- package/node/components/panel/GridPanel.js +2 -4
- package/node/components/panel/GridPanelWrapper.js +1 -2
- package/node/components/panel/GridPreferencesPanel.js +2 -3
- package/node/components/panel/filterPanel/GridFilterForm.js +6 -6
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +3 -2
- package/node/components/panel/filterPanel/GridFilterPanel.js +1 -2
- package/node/components/toolbar/GridToolbar.js +1 -2
- package/node/components/toolbar/GridToolbarColumnsButton.js +2 -3
- package/node/components/toolbar/GridToolbarDensitySelector.js +2 -3
- package/node/components/toolbar/GridToolbarExport.js +1 -2
- package/node/components/toolbar/GridToolbarExportContainer.js +2 -3
- package/node/components/toolbar/GridToolbarFilterButton.js +1 -2
- package/node/components/virtualization/GridVirtualScroller.js +2 -3
- package/node/components/virtualization/GridVirtualScrollerContent.js +2 -3
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +2 -3
- package/node/constants/defaultGridSlotsComponents.js +2 -3
- package/node/constants/envConstants.js +1 -2
- package/node/constants/gridClasses.js +1 -2
- package/node/constants/gridDetailPanelToggleField.js +1 -2
- package/node/constants/localeTextConstants.js +2 -3
- package/node/context/GridRootPropsContext.js +1 -2
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -4
- package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +4 -8
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +3 -3
- package/node/hooks/features/columns/gridColumnsSelector.js +11 -21
- package/node/hooks/features/columns/gridColumnsUtils.js +1 -2
- package/node/hooks/features/density/densitySelector.js +2 -4
- package/node/hooks/features/density/useGridDensity.js +2 -4
- package/node/hooks/features/filter/gridFilterSelector.js +14 -27
- package/node/hooks/features/filter/gridFilterUtils.js +2 -2
- package/node/hooks/features/focus/gridFocusStateSelector.js +8 -16
- package/node/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +2 -4
- package/node/hooks/features/pagination/gridPaginationSelector.js +8 -15
- package/node/hooks/features/pagination/gridPaginationUtils.js +1 -2
- package/node/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +2 -3
- package/node/hooks/features/rowSelection/gridRowSelectionSelector.js +4 -7
- package/node/hooks/features/rows/gridRowsSelector.js +14 -27
- package/node/hooks/features/rows/gridRowsUtils.js +2 -4
- package/node/hooks/features/sorting/gridSortingSelector.js +5 -9
- package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +2 -4
- package/node/hooks/utils/useGridApiEventHandler.js +2 -4
- package/node/hooks/utils/useGridPrivateApiContext.js +1 -2
- package/node/hooks/utils/useGridSelector.js +1 -2
- package/node/index.js +1 -1
- package/node/joy/icons.js +30 -60
- package/node/joy/joySlots.js +1 -2
- package/node/locales/arSD.js +1 -2
- package/node/locales/beBY.js +1 -2
- package/node/locales/bgBG.js +1 -2
- package/node/locales/coreLocales.js +3 -5
- package/node/locales/csCZ.js +1 -2
- package/node/locales/daDK.js +1 -2
- package/node/locales/deDE.js +1 -2
- package/node/locales/elGR.js +1 -2
- package/node/locales/enUS.js +1 -2
- package/node/locales/esES.js +1 -2
- package/node/locales/faIR.js +1 -2
- package/node/locales/fiFI.js +1 -2
- package/node/locales/frFR.js +1 -2
- package/node/locales/heIL.js +1 -2
- package/node/locales/huHU.js +1 -2
- package/node/locales/itIT.js +1 -2
- package/node/locales/jaJP.js +1 -2
- package/node/locales/koKR.js +1 -2
- package/node/locales/nbNO.js +1 -2
- package/node/locales/nlNL.js +1 -2
- package/node/locales/plPL.js +1 -2
- package/node/locales/ptBR.js +1 -2
- package/node/locales/roRO.js +1 -2
- package/node/locales/ruRU.js +27 -30
- package/node/locales/skSK.js +1 -2
- package/node/locales/svSE.js +1 -2
- package/node/locales/trTR.js +1 -2
- package/node/locales/ukUA.js +1 -2
- package/node/locales/urPK.js +1 -2
- package/node/locales/viVN.js +1 -2
- package/node/locales/zhCN.js +1 -2
- package/node/locales/zhTW.js +1 -2
- package/node/material/icons/GridColumnUnsortedIcon.js +2 -3
- package/node/material/icons/index.js +29 -57
- package/node/material/index.js +1 -2
- package/node/models/gridEditRowModel.js +4 -7
- package/node/models/gridFilterItem.js +2 -3
- package/node/models/params/gridEditCellParams.js +3 -5
- package/node/models/params/gridRowParams.js +3 -5
- package/node/utils/keyboardUtils.js +3 -6
- package/package.json +3 -3
package/node/locales/koKR.js
CHANGED
|
@@ -154,5 +154,4 @@ const koKRGrid = {
|
|
|
154
154
|
aggregationFunctionLabelMax: '최대값',
|
|
155
155
|
aggregationFunctionLabelSize: '크기'
|
|
156
156
|
};
|
|
157
|
-
const koKR = (0, _getGridLocalization.getGridLocalization)(koKRGrid, _locale.koKR);
|
|
158
|
-
exports.koKR = koKR;
|
|
157
|
+
const koKR = exports.koKR = (0, _getGridLocalization.getGridLocalization)(koKRGrid, _locale.koKR);
|
package/node/locales/nbNO.js
CHANGED
|
@@ -154,5 +154,4 @@ const nbNOGrid = {
|
|
|
154
154
|
aggregationFunctionLabelMax: 'maks',
|
|
155
155
|
aggregationFunctionLabelSize: 'størrelse'
|
|
156
156
|
};
|
|
157
|
-
const nbNO = (0, _getGridLocalization.getGridLocalization)(nbNOGrid, _locale.nbNO);
|
|
158
|
-
exports.nbNO = nbNO;
|
|
157
|
+
const nbNO = exports.nbNO = (0, _getGridLocalization.getGridLocalization)(nbNOGrid, _locale.nbNO);
|
package/node/locales/nlNL.js
CHANGED
|
@@ -152,5 +152,4 @@ const nlNLGrid = {
|
|
|
152
152
|
aggregationFunctionLabelMax: 'max',
|
|
153
153
|
aggregationFunctionLabelSize: 'grootte'
|
|
154
154
|
};
|
|
155
|
-
const nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid, _locale.nlNL);
|
|
156
|
-
exports.nlNL = nlNL;
|
|
155
|
+
const nlNL = exports.nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid, _locale.nlNL);
|
package/node/locales/plPL.js
CHANGED
|
@@ -156,5 +156,4 @@ const plPLGrid = {
|
|
|
156
156
|
// aggregationFunctionLabelSize: 'size',
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
const plPL = (0, _getGridLocalization.getGridLocalization)(plPLGrid, _locale.plPL);
|
|
160
|
-
exports.plPL = plPL;
|
|
159
|
+
const plPL = exports.plPL = (0, _getGridLocalization.getGridLocalization)(plPLGrid, _locale.plPL);
|
package/node/locales/ptBR.js
CHANGED
|
@@ -153,5 +153,4 @@ const ptBRGrid = {
|
|
|
153
153
|
aggregationFunctionLabelMax: 'máx',
|
|
154
154
|
aggregationFunctionLabelSize: 'tamanho'
|
|
155
155
|
};
|
|
156
|
-
const ptBR = (0, _getGridLocalization.getGridLocalization)(ptBRGrid, _locale.ptBR);
|
|
157
|
-
exports.ptBR = ptBR;
|
|
156
|
+
const ptBR = exports.ptBR = (0, _getGridLocalization.getGridLocalization)(ptBRGrid, _locale.ptBR);
|
package/node/locales/roRO.js
CHANGED
|
@@ -152,5 +152,4 @@ const roROGrid = {
|
|
|
152
152
|
aggregationFunctionLabelMax: 'Maxim',
|
|
153
153
|
aggregationFunctionLabelSize: 'Numărul elementelor'
|
|
154
154
|
};
|
|
155
|
-
const roRO = (0, _getGridLocalization.getGridLocalization)(roROGrid, _locale.roRO);
|
|
156
|
-
exports.roRO = roRO;
|
|
155
|
+
const roRO = exports.roRO = (0, _getGridLocalization.getGridLocalization)(roROGrid, _locale.roRO);
|
package/node/locales/ruRU.js
CHANGED
|
@@ -52,7 +52,7 @@ const ruRUGrid = {
|
|
|
52
52
|
columnsPanelHideAllButton: 'Скрыть все',
|
|
53
53
|
// Filter panel text
|
|
54
54
|
filterPanelAddFilter: 'Добавить фильтр',
|
|
55
|
-
|
|
55
|
+
filterPanelRemoveAll: 'Очистить фильтр',
|
|
56
56
|
filterPanelDeleteIconLabel: 'Удалить',
|
|
57
57
|
filterPanelLogicOperator: 'Логические операторы',
|
|
58
58
|
filterPanelOperator: 'Операторы',
|
|
@@ -75,34 +75,32 @@ const ruRUGrid = {
|
|
|
75
75
|
filterOperatorIsEmpty: 'пустой',
|
|
76
76
|
filterOperatorIsNotEmpty: 'не пустой',
|
|
77
77
|
filterOperatorIsAnyOf: 'любой из',
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
'filterOperator=': '=',
|
|
79
|
+
'filterOperator!=': '!=',
|
|
80
|
+
'filterOperator>': '>',
|
|
81
|
+
'filterOperator>=': '>=',
|
|
82
|
+
'filterOperator<': '<',
|
|
83
|
+
'filterOperator<=': '<=',
|
|
85
84
|
// Header filter operators text
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
85
|
+
headerFilterOperatorContains: 'содержит',
|
|
86
|
+
headerFilterOperatorEquals: 'равен',
|
|
87
|
+
headerFilterOperatorStartsWith: 'начинается с',
|
|
88
|
+
headerFilterOperatorEndsWith: 'заканчивается на',
|
|
89
|
+
headerFilterOperatorIs: 'равен',
|
|
90
|
+
headerFilterOperatorNot: 'не равен',
|
|
91
|
+
headerFilterOperatorAfter: 'больше чем',
|
|
92
|
+
headerFilterOperatorOnOrAfter: 'больше или равно',
|
|
93
|
+
headerFilterOperatorBefore: 'меньше чем',
|
|
94
|
+
headerFilterOperatorOnOrBefore: 'меньше или равно',
|
|
95
|
+
headerFilterOperatorIsEmpty: 'пустой',
|
|
96
|
+
headerFilterOperatorIsNotEmpty: 'не пустой',
|
|
97
|
+
headerFilterOperatorIsAnyOf: 'любой из',
|
|
98
|
+
'headerFilterOperator=': 'содержит',
|
|
99
|
+
'headerFilterOperator!=': 'не содержит',
|
|
100
|
+
'headerFilterOperator>': 'больше чем',
|
|
101
|
+
'headerFilterOperator>=': 'больше или равно',
|
|
102
|
+
'headerFilterOperator<': 'меньше чем',
|
|
103
|
+
'headerFilterOperator<=': 'меньше или равно',
|
|
106
104
|
// Filter values text
|
|
107
105
|
filterValueAny: 'любой',
|
|
108
106
|
filterValueTrue: 'истина',
|
|
@@ -181,5 +179,4 @@ const ruRUGrid = {
|
|
|
181
179
|
aggregationFunctionLabelMax: 'макс',
|
|
182
180
|
aggregationFunctionLabelSize: 'счет'
|
|
183
181
|
};
|
|
184
|
-
const ruRU = (0, _getGridLocalization.getGridLocalization)(ruRUGrid, _locale.ruRU);
|
|
185
|
-
exports.ruRU = ruRU;
|
|
182
|
+
const ruRU = exports.ruRU = (0, _getGridLocalization.getGridLocalization)(ruRUGrid, _locale.ruRU);
|
package/node/locales/skSK.js
CHANGED
|
@@ -181,5 +181,4 @@ const skSKGrid = {
|
|
|
181
181
|
aggregationFunctionLabelMax: 'max',
|
|
182
182
|
aggregationFunctionLabelSize: 'počet'
|
|
183
183
|
};
|
|
184
|
-
const skSK = (0, _getGridLocalization.getGridLocalization)(skSKGrid, _locale.skSK);
|
|
185
|
-
exports.skSK = skSK;
|
|
184
|
+
const skSK = exports.skSK = (0, _getGridLocalization.getGridLocalization)(skSKGrid, _locale.skSK);
|
package/node/locales/svSE.js
CHANGED
|
@@ -154,5 +154,4 @@ const svSEGrid = {
|
|
|
154
154
|
aggregationFunctionLabelMax: 'max',
|
|
155
155
|
aggregationFunctionLabelSize: 'antal'
|
|
156
156
|
};
|
|
157
|
-
const svSE = (0, _getGridLocalization.getGridLocalization)(svSEGrid, _locale.svSE);
|
|
158
|
-
exports.svSE = svSE;
|
|
157
|
+
const svSE = exports.svSE = (0, _getGridLocalization.getGridLocalization)(svSEGrid, _locale.svSE);
|
package/node/locales/trTR.js
CHANGED
|
@@ -153,5 +153,4 @@ const trTRGrid = {
|
|
|
153
153
|
aggregationFunctionLabelMax: 'maks',
|
|
154
154
|
aggregationFunctionLabelSize: 'boyut'
|
|
155
155
|
};
|
|
156
|
-
const trTR = (0, _getGridLocalization.getGridLocalization)(trTRGrid, _locale.trTR);
|
|
157
|
-
exports.trTR = trTR;
|
|
156
|
+
const trTR = exports.trTR = (0, _getGridLocalization.getGridLocalization)(trTRGrid, _locale.trTR);
|
package/node/locales/ukUA.js
CHANGED
|
@@ -174,5 +174,4 @@ const ukUAGrid = {
|
|
|
174
174
|
aggregationFunctionLabelMax: 'макс',
|
|
175
175
|
aggregationFunctionLabelSize: 'кількість'
|
|
176
176
|
};
|
|
177
|
-
const ukUA = (0, _getGridLocalization.getGridLocalization)(ukUAGrid, _locale.ukUA);
|
|
178
|
-
exports.ukUA = ukUA;
|
|
177
|
+
const ukUA = exports.ukUA = (0, _getGridLocalization.getGridLocalization)(ukUAGrid, _locale.ukUA);
|
package/node/locales/urPK.js
CHANGED
|
@@ -154,5 +154,4 @@ const urPKGrid = {
|
|
|
154
154
|
aggregationFunctionLabelMax: 'زیادہ سے زیادہ',
|
|
155
155
|
aggregationFunctionLabelSize: 'سائز'
|
|
156
156
|
};
|
|
157
|
-
const urPK = (0, _getGridLocalization.getGridLocalization)(urPKGrid, _coreLocales.urPKCore);
|
|
158
|
-
exports.urPK = urPK;
|
|
157
|
+
const urPK = exports.urPK = (0, _getGridLocalization.getGridLocalization)(urPKGrid, _coreLocales.urPKCore);
|
package/node/locales/viVN.js
CHANGED
|
@@ -152,5 +152,4 @@ const viVNGrid = {
|
|
|
152
152
|
aggregationFunctionLabelMax: 'Tối đa',
|
|
153
153
|
aggregationFunctionLabelSize: 'Kích cỡ'
|
|
154
154
|
};
|
|
155
|
-
const viVN = (0, _getGridLocalization.getGridLocalization)(viVNGrid, _locale.viVN);
|
|
156
|
-
exports.viVN = viVN;
|
|
155
|
+
const viVN = exports.viVN = (0, _getGridLocalization.getGridLocalization)(viVNGrid, _locale.viVN);
|
package/node/locales/zhCN.js
CHANGED
|
@@ -152,5 +152,4 @@ const zhCNGrid = {
|
|
|
152
152
|
aggregationFunctionLabelMax: '最大',
|
|
153
153
|
aggregationFunctionLabelSize: '大小'
|
|
154
154
|
};
|
|
155
|
-
const zhCN = (0, _getGridLocalization.getGridLocalization)(zhCNGrid, _locale.zhCN);
|
|
156
|
-
exports.zhCN = zhCN;
|
|
155
|
+
const zhCN = exports.zhCN = (0, _getGridLocalization.getGridLocalization)(zhCNGrid, _locale.zhCN);
|
package/node/locales/zhTW.js
CHANGED
|
@@ -152,5 +152,4 @@ const zhTWGrid = {
|
|
|
152
152
|
aggregationFunctionLabelMax: '最大',
|
|
153
153
|
aggregationFunctionLabelSize: '尺寸'
|
|
154
154
|
};
|
|
155
|
-
const zhTW = (0, _getGridLocalization.getGridLocalization)(zhTWGrid, _locale.zhTW);
|
|
156
|
-
exports.zhTW = zhTW;
|
|
155
|
+
const zhTW = exports.zhTW = (0, _getGridLocalization.getGridLocalization)(zhTWGrid, _locale.zhTW);
|
|
@@ -13,7 +13,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
const _excluded = ["sortingOrder"];
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
const GridColumnUnsortedIcon = /*#__PURE__*/React.memo(function GridColumnHeaderSortIcon(props) {
|
|
16
|
+
const GridColumnUnsortedIcon = exports.GridColumnUnsortedIcon = /*#__PURE__*/React.memo(function GridColumnHeaderSortIcon(props) {
|
|
17
17
|
const {
|
|
18
18
|
sortingOrder
|
|
19
19
|
} = props,
|
|
@@ -22,5 +22,4 @@ const GridColumnUnsortedIcon = /*#__PURE__*/React.memo(function GridColumnHeader
|
|
|
22
22
|
const [nextSortDirection] = sortingOrder;
|
|
23
23
|
const Icon = nextSortDirection === 'asc' ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
|
|
24
24
|
return Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, (0, _extends2.default)({}, other)) : null;
|
|
25
|
-
});
|
|
26
|
-
exports.GridColumnUnsortedIcon = GridColumnUnsortedIcon;
|
|
25
|
+
});
|
|
@@ -9,117 +9,89 @@ var _utils = require("@mui/material/utils");
|
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
const GridArrowUpwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
12
|
+
const GridArrowUpwardIcon = exports.GridArrowUpwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
13
13
|
d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"
|
|
14
14
|
}), 'ArrowUpward');
|
|
15
|
-
exports.
|
|
16
|
-
const GridArrowDownwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
15
|
+
const GridArrowDownwardIcon = exports.GridArrowDownwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
16
|
d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
|
|
18
17
|
}), 'ArrowDownward');
|
|
19
|
-
exports.
|
|
20
|
-
const GridKeyboardArrowRight = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
18
|
+
const GridKeyboardArrowRight = exports.GridKeyboardArrowRight = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
21
19
|
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
|
|
22
20
|
}), 'KeyboardArrowRight');
|
|
23
|
-
exports.
|
|
24
|
-
const GridExpandMoreIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
21
|
+
const GridExpandMoreIcon = exports.GridExpandMoreIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
25
22
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
26
23
|
}), 'ExpandMore');
|
|
27
|
-
exports.
|
|
28
|
-
const GridFilterListIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
24
|
+
const GridFilterListIcon = exports.GridFilterListIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
29
25
|
d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"
|
|
30
26
|
}), 'FilterList');
|
|
31
|
-
exports.
|
|
32
|
-
const GridFilterAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
27
|
+
const GridFilterAltIcon = exports.GridFilterAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
33
28
|
d: "M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"
|
|
34
29
|
}), 'FilterAlt');
|
|
35
|
-
exports.
|
|
36
|
-
const GridSearchIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
30
|
+
const GridSearchIcon = exports.GridSearchIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
37
31
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
38
32
|
}), 'Search');
|
|
39
|
-
exports.
|
|
40
|
-
const GridMenuIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
33
|
+
const GridMenuIcon = exports.GridMenuIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
41
34
|
d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
42
35
|
}), 'Menu');
|
|
43
|
-
exports.
|
|
44
|
-
const GridCheckCircleIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
36
|
+
const GridCheckCircleIcon = exports.GridCheckCircleIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
45
37
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
46
38
|
}), 'CheckCircle');
|
|
47
|
-
exports.
|
|
48
|
-
const GridColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
39
|
+
const GridColumnIcon = exports.GridColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
49
40
|
d: "M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"
|
|
50
41
|
}), 'ColumnIcon');
|
|
51
|
-
exports.
|
|
52
|
-
const GridSeparatorIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
42
|
+
const GridSeparatorIcon = exports.GridSeparatorIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
53
43
|
d: "M11 19V5h2v14z"
|
|
54
44
|
}), 'Separator');
|
|
55
|
-
exports.
|
|
56
|
-
const GridViewHeadlineIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
45
|
+
const GridViewHeadlineIcon = exports.GridViewHeadlineIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
57
46
|
d: "M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"
|
|
58
47
|
}), 'ViewHeadline');
|
|
59
|
-
exports.
|
|
60
|
-
const GridTableRowsIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
48
|
+
const GridTableRowsIcon = exports.GridTableRowsIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
61
49
|
d: "M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"
|
|
62
50
|
}), 'TableRows');
|
|
63
|
-
exports.
|
|
64
|
-
const GridViewStreamIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
51
|
+
const GridViewStreamIcon = exports.GridViewStreamIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
65
52
|
d: "M4 18h17v-6H4v6zM4 5v6h17V5H4z"
|
|
66
53
|
}), 'ViewStream');
|
|
67
|
-
exports.
|
|
68
|
-
const GridTripleDotsVerticalIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
54
|
+
const GridTripleDotsVerticalIcon = exports.GridTripleDotsVerticalIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
69
55
|
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
70
56
|
}), 'TripleDotsVertical');
|
|
71
|
-
exports.
|
|
72
|
-
const GridCloseIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
57
|
+
const GridCloseIcon = exports.GridCloseIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
73
58
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
74
59
|
}), 'Close');
|
|
75
|
-
exports.
|
|
76
|
-
const GridAddIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
60
|
+
const GridAddIcon = exports.GridAddIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
77
61
|
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
|
78
62
|
}), 'Add');
|
|
79
|
-
exports.
|
|
80
|
-
const GridRemoveIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
63
|
+
const GridRemoveIcon = exports.GridRemoveIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
81
64
|
d: "M19 13H5v-2h14v2z"
|
|
82
65
|
}), 'Remove');
|
|
83
|
-
exports.
|
|
84
|
-
const GridLoadIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
66
|
+
const GridLoadIcon = exports.GridLoadIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
85
67
|
d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"
|
|
86
68
|
}), 'Load');
|
|
87
|
-
exports.
|
|
88
|
-
const GridDragIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
69
|
+
const GridDragIcon = exports.GridDragIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
89
70
|
d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
90
71
|
}), 'Drag');
|
|
91
|
-
exports.
|
|
92
|
-
const GridSaveAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
72
|
+
const GridSaveAltIcon = exports.GridSaveAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
93
73
|
d: "M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"
|
|
94
74
|
}), 'SaveAlt');
|
|
95
|
-
exports.
|
|
96
|
-
const GridCheckIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
75
|
+
const GridCheckIcon = exports.GridCheckIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
97
76
|
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
98
77
|
}), 'Check');
|
|
99
|
-
exports.
|
|
100
|
-
const GridMoreVertIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
78
|
+
const GridMoreVertIcon = exports.GridMoreVertIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
101
79
|
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
102
80
|
}), 'MoreVert');
|
|
103
|
-
exports.
|
|
104
|
-
const GridVisibilityOffIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
81
|
+
const GridVisibilityOffIcon = exports.GridVisibilityOffIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
105
82
|
d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"
|
|
106
83
|
}), 'VisibilityOff');
|
|
107
|
-
exports.
|
|
108
|
-
const GridViewColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
84
|
+
const GridViewColumnIcon = exports.GridViewColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
109
85
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
110
86
|
d: "M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"
|
|
111
87
|
})
|
|
112
88
|
}), 'ViewColumn');
|
|
113
|
-
exports.
|
|
114
|
-
const GridClearIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
89
|
+
const GridClearIcon = exports.GridClearIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
115
90
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
116
91
|
}), 'Clear');
|
|
117
|
-
exports.
|
|
118
|
-
const GridDeleteIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
92
|
+
const GridDeleteIcon = exports.GridDeleteIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
119
93
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
|
|
120
94
|
}), 'Delete');
|
|
121
|
-
exports.
|
|
122
|
-
const GridDeleteForeverIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
95
|
+
const GridDeleteForeverIcon = exports.GridDeleteForeverIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
123
96
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"
|
|
124
|
-
}), 'Delete');
|
|
125
|
-
exports.GridDeleteForeverIcon = GridDeleteForeverIcon;
|
|
97
|
+
}), 'Delete');
|
package/node/material/index.js
CHANGED
|
@@ -4,21 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GridRowModes = exports.GridEditModes = exports.GridCellModes = void 0;
|
|
7
|
-
var GridEditModes = /*#__PURE__*/function (GridEditModes) {
|
|
7
|
+
var GridEditModes = exports.GridEditModes = /*#__PURE__*/function (GridEditModes) {
|
|
8
8
|
GridEditModes["Cell"] = "cell";
|
|
9
9
|
GridEditModes["Row"] = "row";
|
|
10
10
|
return GridEditModes;
|
|
11
11
|
}(GridEditModes || {});
|
|
12
|
-
exports.
|
|
13
|
-
var GridCellModes = /*#__PURE__*/function (GridCellModes) {
|
|
12
|
+
var GridCellModes = exports.GridCellModes = /*#__PURE__*/function (GridCellModes) {
|
|
14
13
|
GridCellModes["Edit"] = "edit";
|
|
15
14
|
GridCellModes["View"] = "view";
|
|
16
15
|
return GridCellModes;
|
|
17
16
|
}(GridCellModes || {});
|
|
18
|
-
exports.
|
|
19
|
-
var GridRowModes = /*#__PURE__*/function (GridRowModes) {
|
|
17
|
+
var GridRowModes = exports.GridRowModes = /*#__PURE__*/function (GridRowModes) {
|
|
20
18
|
GridRowModes["Edit"] = "edit";
|
|
21
19
|
GridRowModes["View"] = "view";
|
|
22
20
|
return GridRowModes;
|
|
23
|
-
}(GridRowModes || {});
|
|
24
|
-
exports.GridRowModes = GridRowModes;
|
|
21
|
+
}(GridRowModes || {});
|
|
@@ -9,9 +9,8 @@ exports.GridLogicOperator = void 0;
|
|
|
9
9
|
* @demos
|
|
10
10
|
* - [Custom filter operator](/x/react-data-grid/filtering/customization/#create-a-custom-operator)
|
|
11
11
|
*/
|
|
12
|
-
var GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
|
|
12
|
+
var GridLogicOperator = exports.GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
|
|
13
13
|
GridLogicOperator["And"] = "and";
|
|
14
14
|
GridLogicOperator["Or"] = "or";
|
|
15
15
|
return GridLogicOperator;
|
|
16
|
-
}(GridLogicOperator || {});
|
|
17
|
-
exports.GridLogicOperator = GridLogicOperator;
|
|
16
|
+
}(GridLogicOperator || {});
|
|
@@ -7,7 +7,7 @@ exports.GridCellEditStopReasons = exports.GridCellEditStartReasons = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* Params passed to `apiRef.current.setEditCellValue`.
|
|
9
9
|
*/
|
|
10
|
-
var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
|
|
10
|
+
var GridCellEditStartReasons = exports.GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
|
|
11
11
|
GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
12
12
|
GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
13
13
|
GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
@@ -17,8 +17,7 @@ var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons)
|
|
|
17
17
|
/**
|
|
18
18
|
* Params passed to the `cellEditStart` event.
|
|
19
19
|
*/
|
|
20
|
-
exports.
|
|
21
|
-
var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
|
|
20
|
+
var GridCellEditStopReasons = exports.GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
|
|
22
21
|
GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
|
|
23
22
|
GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
24
23
|
GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
@@ -29,5 +28,4 @@ var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
|
|
|
29
28
|
/**
|
|
30
29
|
* Params passed to the `cellEditStop event.
|
|
31
30
|
*/
|
|
32
|
-
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
33
|
-
exports.GridCellEditStopReasons = GridCellEditStopReasons;
|
|
31
|
+
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
@@ -20,7 +20,7 @@ exports.GridRowEditStopReasons = exports.GridRowEditStartReasons = void 0;
|
|
|
20
20
|
/**
|
|
21
21
|
* The getRowHeight return value.
|
|
22
22
|
*/
|
|
23
|
-
var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
|
|
23
|
+
var GridRowEditStartReasons = exports.GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
|
|
24
24
|
GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
25
25
|
GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
26
26
|
GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
@@ -30,8 +30,7 @@ var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
|
|
|
30
30
|
/**
|
|
31
31
|
* Params passed to the `rowEditStart` event.
|
|
32
32
|
*/
|
|
33
|
-
exports.
|
|
34
|
-
var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
|
|
33
|
+
var GridRowEditStopReasons = exports.GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
|
|
35
34
|
GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
|
|
36
35
|
GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
37
36
|
GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
@@ -47,5 +46,4 @@ var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
|
|
|
47
46
|
/**
|
|
48
47
|
* The getRowSpacing return value.
|
|
49
48
|
*/
|
|
50
|
-
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
51
|
-
exports.GridRowEditStopReasons = GridRowEditStopReasons;
|
|
49
|
+
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
@@ -33,12 +33,9 @@ exports.isDeleteKeys = isDeleteKeys;
|
|
|
33
33
|
function isPrintableKey(event) {
|
|
34
34
|
return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
|
|
35
35
|
}
|
|
36
|
-
const GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
39
|
-
exports.GRID_CELL_EXIT_EDIT_MODE_KEYS = GRID_CELL_EXIT_EDIT_MODE_KEYS;
|
|
40
|
-
const GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
|
|
41
|
-
exports.GRID_CELL_EDIT_COMMIT_KEYS = GRID_CELL_EDIT_COMMIT_KEYS;
|
|
36
|
+
const GRID_MULTIPLE_SELECTION_KEYS = exports.GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
|
|
37
|
+
const GRID_CELL_EXIT_EDIT_MODE_KEYS = exports.GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];
|
|
38
|
+
const GRID_CELL_EDIT_COMMIT_KEYS = exports.GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
|
|
42
39
|
const isMultipleKey = key => GRID_MULTIPLE_SELECTION_KEYS.indexOf(key) > -1;
|
|
43
40
|
exports.isMultipleKey = isMultipleKey;
|
|
44
41
|
const isCellEnterEditModeKeys = event => isEnterKey(event.key) || isDeleteKeys(event.key) || isPrintableKey(event);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.1",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"directory": "packages/grid/x-data-grid"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.
|
|
39
|
-
"@mui/utils": "^5.14.
|
|
38
|
+
"@babel/runtime": "^7.23.1",
|
|
39
|
+
"@mui/utils": "^5.14.11",
|
|
40
40
|
"clsx": "^2.0.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^4.1.8"
|