@mui/x-data-grid 6.3.0 → 6.4.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 +105 -2
- package/DataGrid/DataGrid.js +20 -1
- package/DataGrid/useDataGridComponent.js +2 -2
- package/DataGrid/useDataGridProps.js +3 -1
- package/colDef/gridBooleanColDef.js +19 -1
- package/colDef/gridDateColDef.js +6 -2
- package/colDef/gridSingleSelectColDef.js +21 -1
- package/components/GridPagination.js +3 -1
- package/components/base/GridBody.d.ts +1 -0
- package/components/base/GridBody.js +6 -3
- package/components/containers/GridRootStyles.js +1 -0
- package/components/panel/GridPanel.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
- package/components/toolbar/GridToolbarFilterButton.js +3 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +12 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +2 -1
- package/hooks/features/clipboard/useGridClipboard.js +43 -26
- package/hooks/features/dimensions/useGridDimensions.js +2 -4
- package/hooks/features/editing/useGridCellEditing.js +7 -3
- package/hooks/features/editing/useGridRowEditing.js +7 -3
- package/hooks/features/export/serializers/csvSerializer.d.ts +5 -0
- package/hooks/features/export/serializers/csvSerializer.js +46 -6
- package/hooks/features/export/useGridCsvExport.d.ts +2 -1
- package/hooks/features/export/useGridCsvExport.js +7 -5
- package/hooks/features/focus/useGridFocus.js +2 -2
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +11 -0
- package/index.js +1 -1
- package/internals/index.d.ts +3 -2
- package/internals/index.js +3 -2
- package/joy/icons.d.ts +33 -0
- package/joy/icons.js +433 -0
- package/joy/joySlots.js +254 -42
- package/legacy/DataGrid/DataGrid.js +20 -1
- package/legacy/DataGrid/useDataGridComponent.js +2 -2
- package/legacy/DataGrid/useDataGridProps.js +3 -1
- package/legacy/colDef/gridBooleanColDef.js +21 -1
- package/legacy/colDef/gridDateColDef.js +10 -2
- package/legacy/colDef/gridSingleSelectColDef.js +21 -1
- package/legacy/components/GridPagination.js +3 -1
- package/legacy/components/base/GridBody.js +6 -3
- package/legacy/components/containers/GridRootStyles.js +1 -0
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
- package/legacy/components/toolbar/GridToolbarFilterButton.js +3 -1
- package/legacy/hooks/features/clipboard/useGridClipboard.js +44 -26
- package/legacy/hooks/features/dimensions/useGridDimensions.js +2 -4
- package/legacy/hooks/features/editing/useGridCellEditing.js +7 -3
- package/legacy/hooks/features/editing/useGridRowEditing.js +7 -3
- package/legacy/hooks/features/export/serializers/csvSerializer.js +43 -6
- package/legacy/hooks/features/export/useGridCsvExport.js +8 -5
- package/legacy/hooks/features/focus/useGridFocus.js +2 -2
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +10 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +3 -2
- package/legacy/joy/icons.js +432 -0
- package/legacy/joy/joySlots.js +273 -54
- package/legacy/locales/deDE.js +2 -2
- package/legacy/locales/frFR.js +6 -6
- package/legacy/locales/ptBR.js +1 -1
- package/legacy/locales/ukUA.js +8 -9
- package/legacy/material/index.js +3 -1
- package/legacy/models/api/index.js +0 -1
- package/legacy/utils/domUtils.js +14 -1
- package/locales/deDE.js +2 -2
- package/locales/frFR.js +6 -6
- package/locales/ptBR.js +1 -1
- package/locales/ukUA.js +8 -9
- package/material/index.d.ts +3 -1
- package/material/index.js +3 -1
- package/models/api/gridApiCommon.d.ts +1 -2
- package/models/api/gridCoreApi.d.ts +4 -0
- package/models/api/index.d.ts +0 -1
- package/models/api/index.js +0 -1
- package/models/events/gridEventLookup.d.ts +6 -0
- package/models/gridSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.ts +4 -0
- package/models/props/DataGridProps.d.ts +19 -0
- package/modern/DataGrid/DataGrid.js +20 -1
- package/modern/DataGrid/useDataGridComponent.js +2 -2
- package/modern/DataGrid/useDataGridProps.js +3 -1
- package/modern/colDef/gridBooleanColDef.js +19 -1
- package/modern/colDef/gridDateColDef.js +6 -2
- package/modern/colDef/gridSingleSelectColDef.js +21 -1
- package/modern/components/GridPagination.js +2 -1
- package/modern/components/base/GridBody.js +6 -3
- package/modern/components/containers/GridRootStyles.js +1 -0
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
- package/modern/components/toolbar/GridToolbarFilterButton.js +3 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +43 -26
- package/modern/hooks/features/dimensions/useGridDimensions.js +1 -3
- package/modern/hooks/features/editing/useGridCellEditing.js +7 -3
- package/modern/hooks/features/editing/useGridRowEditing.js +7 -3
- package/modern/hooks/features/export/serializers/csvSerializer.js +44 -6
- package/modern/hooks/features/export/useGridCsvExport.js +7 -5
- package/modern/hooks/features/focus/useGridFocus.js +2 -2
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +11 -0
- package/modern/index.js +1 -1
- package/modern/internals/index.js +3 -2
- package/modern/joy/icons.js +433 -0
- package/modern/joy/joySlots.js +248 -41
- package/modern/locales/deDE.js +2 -2
- package/modern/locales/frFR.js +6 -6
- package/modern/locales/ptBR.js +1 -1
- package/modern/locales/ukUA.js +8 -9
- package/modern/material/index.js +3 -1
- package/modern/models/api/index.js +0 -1
- package/modern/utils/domUtils.js +13 -1
- package/node/DataGrid/DataGrid.js +20 -1
- package/node/DataGrid/useDataGridComponent.js +2 -2
- package/node/DataGrid/useDataGridProps.js +3 -1
- package/node/colDef/gridBooleanColDef.js +19 -1
- package/node/colDef/gridDateColDef.js +6 -2
- package/node/colDef/gridSingleSelectColDef.js +21 -1
- package/node/components/GridPagination.js +2 -1
- package/node/components/base/GridBody.js +6 -3
- package/node/components/containers/GridRootStyles.js +1 -0
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
- package/node/components/toolbar/GridToolbarFilterButton.js +3 -1
- package/node/hooks/features/clipboard/useGridClipboard.js +42 -25
- package/node/hooks/features/dimensions/useGridDimensions.js +1 -3
- package/node/hooks/features/editing/useGridCellEditing.js +7 -3
- package/node/hooks/features/editing/useGridRowEditing.js +7 -3
- package/node/hooks/features/export/serializers/csvSerializer.js +46 -6
- package/node/hooks/features/export/useGridCsvExport.js +6 -3
- package/node/hooks/features/focus/useGridFocus.js +2 -2
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +11 -0
- package/node/index.js +1 -1
- package/node/internals/index.js +23 -1
- package/node/joy/icons.js +471 -0
- package/node/joy/joySlots.js +248 -40
- package/node/locales/deDE.js +2 -2
- package/node/locales/frFR.js +6 -6
- package/node/locales/ptBR.js +1 -1
- package/node/locales/ukUA.js +8 -9
- package/node/material/index.js +3 -1
- package/node/models/api/index.js +0 -11
- package/node/utils/domUtils.js +15 -1
- package/package.json +2 -2
- package/utils/domUtils.d.ts +1 -0
- package/utils/domUtils.js +13 -1
- package/legacy/models/api/gridClipboardApi.js +0 -1
- package/models/api/gridClipboardApi.d.ts +0 -11
- package/models/api/gridClipboardApi.js +0 -1
- package/modern/models/api/gridClipboardApi.js +0 -1
- package/node/models/api/gridClipboardApi.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GRID_CHECKBOX_SELECTION_COL_DEF } from '../../../../colDef';
|
|
2
2
|
import { buildWarning } from '../../../../utils/warning';
|
|
3
|
-
|
|
3
|
+
function sanitizeCellValue(value, delimiterCharacter) {
|
|
4
4
|
if (typeof value === 'string') {
|
|
5
5
|
const formattedValue = value.replace(/"/g, '""');
|
|
6
6
|
|
|
@@ -11,16 +11,49 @@ const serializeCellValue = (value, delimiterCharacter) => {
|
|
|
11
11
|
return formattedValue;
|
|
12
12
|
}
|
|
13
13
|
return value;
|
|
14
|
+
}
|
|
15
|
+
export const serializeCellValue = (cellParams, options) => {
|
|
16
|
+
const {
|
|
17
|
+
delimiterCharacter,
|
|
18
|
+
ignoreValueFormatter
|
|
19
|
+
} = options;
|
|
20
|
+
let value;
|
|
21
|
+
if (ignoreValueFormatter) {
|
|
22
|
+
var _cellParams$value2;
|
|
23
|
+
const columnType = cellParams.colDef.type;
|
|
24
|
+
if (columnType === 'number') {
|
|
25
|
+
value = String(cellParams.value);
|
|
26
|
+
} else if (columnType === 'date' || columnType === 'dateTime') {
|
|
27
|
+
var _cellParams$value;
|
|
28
|
+
value = (_cellParams$value = cellParams.value) == null ? void 0 : _cellParams$value.toISOString();
|
|
29
|
+
} else if (typeof ((_cellParams$value2 = cellParams.value) == null ? void 0 : _cellParams$value2.toString) === 'function') {
|
|
30
|
+
value = cellParams.value.toString();
|
|
31
|
+
} else {
|
|
32
|
+
value = cellParams.value;
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
value = cellParams.formattedValue;
|
|
36
|
+
}
|
|
37
|
+
return sanitizeCellValue(value, delimiterCharacter);
|
|
14
38
|
};
|
|
15
39
|
const objectFormattedValueWarning = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
|
|
16
|
-
const serializeRow = (
|
|
40
|
+
const serializeRow = ({
|
|
41
|
+
id,
|
|
42
|
+
columns,
|
|
43
|
+
getCellParams,
|
|
44
|
+
delimiterCharacter,
|
|
45
|
+
ignoreValueFormatter
|
|
46
|
+
}) => columns.map(column => {
|
|
17
47
|
const cellParams = getCellParams(id, column.field);
|
|
18
48
|
if (process.env.NODE_ENV !== 'production') {
|
|
19
49
|
if (String(cellParams.formattedValue) === '[object Object]') {
|
|
20
50
|
objectFormattedValueWarning();
|
|
21
51
|
}
|
|
22
52
|
}
|
|
23
|
-
return serializeCellValue(cellParams
|
|
53
|
+
return serializeCellValue(cellParams, {
|
|
54
|
+
delimiterCharacter,
|
|
55
|
+
ignoreValueFormatter
|
|
56
|
+
});
|
|
24
57
|
});
|
|
25
58
|
export function buildCSV(options) {
|
|
26
59
|
const {
|
|
@@ -28,12 +61,19 @@ export function buildCSV(options) {
|
|
|
28
61
|
rowIds,
|
|
29
62
|
getCellParams,
|
|
30
63
|
delimiterCharacter,
|
|
31
|
-
includeHeaders
|
|
64
|
+
includeHeaders,
|
|
65
|
+
ignoreValueFormatter
|
|
32
66
|
} = options;
|
|
33
|
-
const CSVBody = rowIds.reduce((acc, id) => `${acc}${serializeRow(
|
|
67
|
+
const CSVBody = rowIds.reduce((acc, id) => `${acc}${serializeRow({
|
|
68
|
+
id,
|
|
69
|
+
columns,
|
|
70
|
+
getCellParams,
|
|
71
|
+
delimiterCharacter,
|
|
72
|
+
ignoreValueFormatter
|
|
73
|
+
}).join(delimiterCharacter)}\r\n`, '').trim();
|
|
34
74
|
if (!includeHeaders) {
|
|
35
75
|
return CSVBody;
|
|
36
76
|
}
|
|
37
|
-
const CSVHead = `${columns.filter(column => column.field !== GRID_CHECKBOX_SELECTION_COL_DEF.field).map(column =>
|
|
77
|
+
const CSVHead = `${columns.filter(column => column.field !== GRID_CHECKBOX_SELECTION_COL_DEF.field).map(column => sanitizeCellValue(column.headerName || column.field, delimiterCharacter)).join(delimiterCharacter)}\r\n`;
|
|
38
78
|
return `${CSVHead}${CSVBody}`.trim();
|
|
39
79
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridPrivateApiCommunity } from '../../../models/api/gridApiCommunity';
|
|
3
|
+
import type { DataGridProcessedProps } from '../../../models/props/DataGridProps';
|
|
3
4
|
/**
|
|
4
5
|
* @requires useGridColumns (state)
|
|
5
6
|
* @requires useGridFilter (state)
|
|
@@ -7,4 +8,4 @@ import { GridPrivateApiCommunity } from '../../../models/api/gridApiCommunity';
|
|
|
7
8
|
* @requires useGridSelection (state)
|
|
8
9
|
* @requires useGridParamsApi (method)
|
|
9
10
|
*/
|
|
10
|
-
export declare const useGridCsvExport: (apiRef: React.MutableRefObject<GridPrivateApiCommunity>) => void;
|
|
11
|
+
export declare const useGridCsvExport: (apiRef: React.MutableRefObject<GridPrivateApiCommunity>, props: Pick<DataGridProcessedProps, 'unstable_ignoreValueFormatterDuringExport'>) => void;
|
|
@@ -6,7 +6,7 @@ import { buildCSV } from './serializers/csvSerializer';
|
|
|
6
6
|
import { getColumnsToExport, defaultGetRowsToExport } from './utils';
|
|
7
7
|
import { useGridRegisterPipeProcessor } from '../../core/pipeProcessing';
|
|
8
8
|
import { GridCsvExportMenuItem } from '../../../components/toolbar/GridToolbarExport';
|
|
9
|
-
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
/**
|
|
11
11
|
* @requires useGridColumns (state)
|
|
12
12
|
* @requires useGridFilter (state)
|
|
@@ -14,9 +14,10 @@ import { GridCsvExportMenuItem } from '../../../components/toolbar/GridToolbarEx
|
|
|
14
14
|
* @requires useGridSelection (state)
|
|
15
15
|
* @requires useGridParamsApi (method)
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
|
-
export const useGridCsvExport = apiRef => {
|
|
17
|
+
export const useGridCsvExport = (apiRef, props) => {
|
|
19
18
|
const logger = useGridLogger(apiRef, 'useGridCsvExport');
|
|
19
|
+
const ignoreValueFormatterProp = props.unstable_ignoreValueFormatterDuringExport;
|
|
20
|
+
const ignoreValueFormatter = (typeof ignoreValueFormatterProp === 'object' ? ignoreValueFormatterProp == null ? void 0 : ignoreValueFormatterProp.csvExport : ignoreValueFormatterProp) || false;
|
|
20
21
|
const getDataAsCsv = React.useCallback((options = {}) => {
|
|
21
22
|
var _options$getRowsToExp, _options$includeHeade;
|
|
22
23
|
logger.debug(`Get data as CSV`);
|
|
@@ -33,9 +34,10 @@ export const useGridCsvExport = apiRef => {
|
|
|
33
34
|
rowIds: exportedRowIds,
|
|
34
35
|
getCellParams: apiRef.current.getCellParams,
|
|
35
36
|
delimiterCharacter: options.delimiter || ',',
|
|
36
|
-
includeHeaders: (_options$includeHeade = options.includeHeaders) != null ? _options$includeHeade : true
|
|
37
|
+
includeHeaders: (_options$includeHeade = options.includeHeaders) != null ? _options$includeHeade : true,
|
|
38
|
+
ignoreValueFormatter
|
|
37
39
|
});
|
|
38
|
-
}, [logger, apiRef]);
|
|
40
|
+
}, [logger, apiRef, ignoreValueFormatter]);
|
|
39
41
|
const exportDataAsCsv = React.useCallback(options => {
|
|
40
42
|
logger.debug(`Export data as CSV`);
|
|
41
43
|
const csv = getDataAsCsv(options);
|
|
@@ -298,9 +298,9 @@ export const useGridFocus = (apiRef, props) => {
|
|
|
298
298
|
useGridApiMethod(apiRef, focusPrivateApi, 'private');
|
|
299
299
|
React.useEffect(() => {
|
|
300
300
|
const doc = ownerDocument(apiRef.current.rootElementRef.current);
|
|
301
|
-
doc.addEventListener('
|
|
301
|
+
doc.addEventListener('mouseup', handleDocumentClick);
|
|
302
302
|
return () => {
|
|
303
|
-
doc.removeEventListener('
|
|
303
|
+
doc.removeEventListener('mouseup', handleDocumentClick);
|
|
304
304
|
};
|
|
305
305
|
}, [apiRef, handleDocumentClick]);
|
|
306
306
|
useGridApiEventHandler(apiRef, 'columnHeaderBlur', handleBlur);
|
|
@@ -14,6 +14,7 @@ import { gridPinnedRowsSelector } from '../rows/gridRowsSelector';
|
|
|
14
14
|
import { unstable_gridFocusColumnGroupHeaderSelector } from '../focus';
|
|
15
15
|
import { gridColumnGroupsHeaderMaxDepthSelector } from '../columnGrouping/gridColumnGroupsSelector';
|
|
16
16
|
import { useGridSelector } from '../../utils/useGridSelector';
|
|
17
|
+
import { useGridRegisterPipeProcessor } from '../../core/pipeProcessing';
|
|
17
18
|
function enrichPageRowsWithPinnedRows(apiRef, rows) {
|
|
18
19
|
const pinnedRows = gridPinnedRowsSelector(apiRef) || {};
|
|
19
20
|
return [...(pinnedRows.top || []), ...rows, ...(pinnedRows.bottom || [])];
|
|
@@ -450,6 +451,16 @@ export const useGridKeyboardNavigation = (apiRef, props) => {
|
|
|
450
451
|
event.preventDefault();
|
|
451
452
|
}
|
|
452
453
|
}, [apiRef, currentPageRows, theme.direction, getRowIdFromIndex, goToCell, goToHeader]);
|
|
454
|
+
const checkIfCanStartEditing = React.useCallback((initialValue, {
|
|
455
|
+
event
|
|
456
|
+
}) => {
|
|
457
|
+
if (event.key === ' ') {
|
|
458
|
+
// Space scrolls to the last row
|
|
459
|
+
return false;
|
|
460
|
+
}
|
|
461
|
+
return initialValue;
|
|
462
|
+
}, []);
|
|
463
|
+
useGridRegisterPipeProcessor(apiRef, 'canStartEditing', checkIfCanStartEditing);
|
|
453
464
|
useGridApiEventHandler(apiRef, 'columnHeaderKeyDown', handleColumnHeaderKeyDown);
|
|
454
465
|
useGridApiEventHandler(apiRef, 'columnGroupHeaderKeyDown', handleColumnGroupHeaderKeyDown);
|
|
455
466
|
useGridApiEventHandler(apiRef, 'cellKeyDown', handleCellKeyDown);
|
package/index.js
CHANGED
package/internals/index.d.ts
CHANGED
|
@@ -51,13 +51,13 @@ export { useGridDimensions } from '../hooks/features/dimensions/useGridDimension
|
|
|
51
51
|
export { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
|
|
52
52
|
export type { GridRestoreStatePreProcessingContext } from '../hooks/features/statePersistence/gridStatePersistenceInterface';
|
|
53
53
|
export { useGridVirtualScroller, getRenderableIndexes, } from '../hooks/features/virtualization/useGridVirtualScroller';
|
|
54
|
-
export { useGridVisibleRows } from '../hooks/utils/useGridVisibleRows';
|
|
54
|
+
export { useGridVisibleRows, getVisibleRows } from '../hooks/utils/useGridVisibleRows';
|
|
55
55
|
export { useGridInitializeState } from '../hooks/utils/useGridInitializeState';
|
|
56
56
|
export type { GridStateInitializer } from '../hooks/utils/useGridInitializeState';
|
|
57
57
|
export type { GridExperimentalFeatures, DataGridPropsWithoutDefaultValue, DataGridPropsWithDefaultValues, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithComplexDefaultValueBeforeProcessing, } from '../models/props/DataGridProps';
|
|
58
58
|
export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/export/utils';
|
|
59
59
|
export { createSelector, unstable_resetCreateSelectorCache } from '../utils/createSelector';
|
|
60
|
-
export { findParentElementFromClassName } from '../utils/domUtils';
|
|
60
|
+
export { findParentElementFromClassName, getActiveElement } from '../utils/domUtils';
|
|
61
61
|
export { isNavigationKey } from '../utils/keyboardUtils';
|
|
62
62
|
export { clamp, isDeepEqual, isNumber, isFunction, isObject } from '../utils/utils';
|
|
63
63
|
export { buildWarning } from '../utils/warning';
|
|
@@ -66,4 +66,5 @@ export type { GridPrivateOnlyApiCommon } from '../models/api/gridApiCommon';
|
|
|
66
66
|
export { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
67
67
|
export type { GridApiCommunity } from '../models/api/gridApiCommunity';
|
|
68
68
|
export type { GridApiCaches } from '../models/gridApiCaches';
|
|
69
|
+
export { serializeCellValue } from '../hooks/features/export/serializers/csvSerializer';
|
|
69
70
|
export * from './utils';
|
package/internals/index.js
CHANGED
|
@@ -41,14 +41,15 @@ export { useGridEvents } from '../hooks/features/events/useGridEvents';
|
|
|
41
41
|
export { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
|
|
42
42
|
export { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
|
|
43
43
|
export { useGridVirtualScroller, getRenderableIndexes } from '../hooks/features/virtualization/useGridVirtualScroller';
|
|
44
|
-
export { useGridVisibleRows } from '../hooks/utils/useGridVisibleRows';
|
|
44
|
+
export { useGridVisibleRows, getVisibleRows } from '../hooks/utils/useGridVisibleRows';
|
|
45
45
|
export { useGridInitializeState } from '../hooks/utils/useGridInitializeState';
|
|
46
46
|
export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/export/utils';
|
|
47
47
|
export { createSelector, unstable_resetCreateSelectorCache } from '../utils/createSelector';
|
|
48
|
-
export { findParentElementFromClassName } from '../utils/domUtils';
|
|
48
|
+
export { findParentElementFromClassName, getActiveElement } from '../utils/domUtils';
|
|
49
49
|
export { isNavigationKey } from '../utils/keyboardUtils';
|
|
50
50
|
export { clamp, isDeepEqual, isNumber, isFunction, isObject } from '../utils/utils';
|
|
51
51
|
export { buildWarning } from '../utils/warning';
|
|
52
52
|
export { exportAs } from '../utils/exportAs';
|
|
53
53
|
export { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
54
|
+
export { serializeCellValue } from '../hooks/features/export/serializers/csvSerializer';
|
|
54
55
|
export * from './utils';
|
package/joy/icons.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { GridIconSlotsComponent } from '../models/gridIconSlotsComponent';
|
|
2
|
+
import { UncapitalizeObjectKeys } from '../internals/utils';
|
|
3
|
+
export declare const GridArrowUpwardIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
4
|
+
export declare const GridArrowDownwardIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
5
|
+
export declare const GridKeyboardArrowLeft: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
6
|
+
export declare const GridKeyboardArrowRight: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
7
|
+
export declare const GridExpandMoreIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
8
|
+
export declare const GridFilterListIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
9
|
+
export declare const GridFilterAltIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
10
|
+
export declare const GridSearchIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
11
|
+
export declare const GridMenuIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
12
|
+
export declare const GridCheckCircleIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
13
|
+
export declare const GridColumnIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
14
|
+
export declare const GridSeparatorIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
15
|
+
export declare const GridViewHeadlineIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
16
|
+
export declare const GridTableRowsIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
17
|
+
export declare const GridViewStreamIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
18
|
+
export declare const GridTripleDotsVerticalIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
19
|
+
export declare const GridCloseIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
20
|
+
export declare const GridAddIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
21
|
+
export declare const GridRemoveIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
22
|
+
export declare const GridLoadIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
23
|
+
export declare const GridDragIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
24
|
+
export declare const GridSaveAltIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
25
|
+
export declare const GridCheckIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
26
|
+
export declare const GridMoreVertIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
27
|
+
export declare const GridVisibilityOffIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
28
|
+
export declare const GridViewColumnIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
29
|
+
export declare const GridClearIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
30
|
+
export declare const GridDeleteIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
31
|
+
export declare const GridDeleteForeverIcon: import("@mui/types").OverridableComponent<import("@mui/joy/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
32
|
+
declare const joyIconSlots: UncapitalizeObjectKeys<GridIconSlotsComponent>;
|
|
33
|
+
export default joyIconSlots;
|