@mui/x-data-grid-pro 7.14.0 → 7.16.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 +167 -1
- package/DataGridPro/DataGridPro.js +12 -5
- package/DataGridPro/useDataGridProProps.js +2 -3
- package/components/GridColumnHeaders.js +2 -3
- package/components/GridColumnMenuPinningItem.js +5 -6
- package/components/GridDataSourceTreeDataGroupingCell.js +2 -3
- package/components/GridDetailPanel.js +1 -2
- package/components/GridDetailPanelToggleCell.js +2 -3
- package/components/GridDetailPanels.js +2 -3
- package/components/GridPinnedRows.js +2 -3
- package/components/GridProColumnMenu.js +2 -3
- package/components/GridRowReorderCell.d.ts +3 -0
- package/components/GridRowReorderCell.js +68 -3
- package/components/GridTreeDataGroupingCell.js +2 -3
- package/components/headerFiltering/GridHeaderFilterCell.js +3 -6
- package/components/headerFiltering/GridHeaderFilterClearButton.js +2 -3
- package/components/headerFiltering/GridHeaderFilterMenu.js +2 -3
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +2 -3
- package/components/index.d.ts +1 -0
- package/components/index.js +11 -0
- package/constants/dataGridProDefaultSlotsComponents.js +1 -1
- package/esm/DataGridPro/DataGridPro.js +16 -8
- package/esm/DataGridPro/index.js +3 -3
- package/esm/DataGridPro/useDataGridProComponent.js +16 -16
- package/esm/DataGridPro/useDataGridProProps.js +1 -1
- package/esm/components/GridColumnHeaders.js +1 -1
- package/esm/components/GridColumnMenuPinningItem.js +5 -5
- package/esm/components/GridDataSourceTreeDataGroupingCell.js +3 -3
- package/esm/components/GridDetailPanel.js +2 -2
- package/esm/components/GridDetailPanelToggleCell.js +3 -3
- package/esm/components/GridDetailPanels.js +4 -4
- package/esm/components/GridProColumnMenu.js +1 -1
- package/esm/components/GridRowReorderCell.js +67 -1
- package/esm/components/GridTreeDataGroupingCell.js +2 -2
- package/esm/components/headerFiltering/GridHeaderFilterCell.js +4 -6
- package/esm/components/headerFiltering/GridHeaderFilterClearButton.js +1 -1
- package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +1 -1
- package/esm/components/headerFiltering/index.js +3 -3
- package/esm/components/index.js +6 -5
- package/esm/components/reexports.js +1 -1
- package/esm/constants/dataGridProDefaultSlotsComponents.js +7 -7
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/esm/hooks/features/columnPinning/index.js +1 -1
- package/esm/hooks/features/columnReorder/index.js +1 -1
- package/esm/hooks/features/columnReorder/useGridColumnReorder.js +6 -6
- package/esm/hooks/features/dataSource/useGridDataSource.js +3 -3
- package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +2 -2
- package/esm/hooks/features/detailPanel/index.js +3 -3
- package/esm/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
- package/esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -2
- package/esm/hooks/features/index.js +8 -8
- package/esm/hooks/features/rowPinning/index.js +1 -1
- package/esm/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +1 -1
- package/esm/hooks/features/rowReorder/gridRowReorderColDef.js +1 -1
- package/esm/hooks/features/rowReorder/index.js +1 -1
- package/esm/hooks/features/rowReorder/useGridRowReorder.js +1 -1
- package/esm/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +1 -1
- package/esm/hooks/features/rows/index.js +1 -1
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
- package/esm/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +6 -6
- package/esm/hooks/features/treeData/index.js +1 -1
- package/esm/hooks/features/treeData/useGridTreeData.js +1 -1
- package/esm/hooks/features/treeData/useGridTreeDataPreProcessors.js +7 -7
- package/esm/hooks/index.js +1 -1
- package/esm/hooks/utils/useGridAriaAttributes.js +1 -1
- package/esm/index.js +9 -9
- package/esm/internals/index.js +27 -27
- package/esm/material/icons.js +2 -2
- package/esm/material/index.js +1 -1
- package/esm/models/index.js +7 -7
- package/esm/themeAugmentation/index.js +2 -2
- package/esm/typeOverloads/index.js +1 -1
- package/esm/typeOverloads/reexports.js +3 -3
- package/esm/utils/index.js +1 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/esm/utils/tree/createRowTree.js +1 -1
- package/esm/utils/tree/index.js +1 -1
- package/esm/utils/tree/insertDataRowInTree.js +1 -1
- package/esm/utils/tree/removeDataRowFromTree.js +1 -1
- package/esm/utils/tree/updateRowTree.js +3 -3
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +3 -4
- package/hooks/features/columnPinning/useGridColumnPinning.js +2 -3
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +2 -3
- package/hooks/features/columnReorder/useGridColumnReorder.js +7 -8
- package/hooks/features/dataSource/gridDataSourceSelector.js +1 -1
- package/hooks/features/dataSource/useGridDataSource.js +2 -3
- package/hooks/features/dataSource/utils.js +1 -1
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +2 -3
- package/hooks/features/detailPanel/useGridDetailPanel.js +2 -3
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -3
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +2 -3
- package/hooks/features/lazyLoader/useGridLazyLoader.js +1 -2
- package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +2 -3
- package/hooks/features/rowPinning/useGridRowPinning.js +2 -3
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +2 -3
- package/hooks/features/rowReorder/gridRowReorderColDef.js +1 -1
- package/hooks/features/rowReorder/useGridRowReorder.js +2 -3
- package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +2 -3
- package/hooks/features/rows/useGridRowAriaAttributes.js +1 -2
- package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +2 -3
- package/hooks/features/treeData/gridTreeDataGroupColDef.js +1 -1
- package/hooks/features/treeData/useGridTreeData.js +1 -2
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +2 -3
- package/hooks/utils/useGridAriaAttributes.js +1 -1
- package/index.js +1 -1
- package/material/icons.js +3 -4
- package/material/index.js +1 -1
- package/modern/DataGridPro/DataGridPro.js +16 -8
- package/modern/DataGridPro/index.js +3 -3
- package/modern/DataGridPro/useDataGridProComponent.js +16 -16
- package/modern/DataGridPro/useDataGridProProps.js +1 -1
- package/modern/components/GridColumnHeaders.js +1 -1
- package/modern/components/GridColumnMenuPinningItem.js +5 -5
- package/modern/components/GridDataSourceTreeDataGroupingCell.js +3 -3
- package/modern/components/GridDetailPanel.js +2 -2
- package/modern/components/GridDetailPanelToggleCell.js +3 -3
- package/modern/components/GridDetailPanels.js +4 -4
- package/modern/components/GridProColumnMenu.js +1 -1
- package/modern/components/GridRowReorderCell.js +67 -1
- package/modern/components/GridTreeDataGroupingCell.js +2 -2
- package/modern/components/headerFiltering/GridHeaderFilterCell.js +4 -6
- package/modern/components/headerFiltering/GridHeaderFilterClearButton.js +1 -1
- package/modern/components/headerFiltering/GridHeaderFilterMenuContainer.js +1 -1
- package/modern/components/headerFiltering/index.js +3 -3
- package/modern/components/index.js +6 -5
- package/modern/components/reexports.js +1 -1
- package/modern/constants/dataGridProDefaultSlotsComponents.js +7 -7
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/modern/hooks/features/columnPinning/index.js +1 -1
- package/modern/hooks/features/columnReorder/index.js +1 -1
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +6 -6
- package/modern/hooks/features/dataSource/useGridDataSource.js +3 -3
- package/modern/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +2 -2
- package/modern/hooks/features/detailPanel/index.js +3 -3
- package/modern/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
- package/modern/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -2
- package/modern/hooks/features/index.js +8 -8
- package/modern/hooks/features/rowPinning/index.js +1 -1
- package/modern/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +1 -1
- package/modern/hooks/features/rowReorder/gridRowReorderColDef.js +1 -1
- package/modern/hooks/features/rowReorder/index.js +1 -1
- package/modern/hooks/features/rowReorder/useGridRowReorder.js +1 -1
- package/modern/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +1 -1
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
- package/modern/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +6 -6
- package/modern/hooks/features/treeData/index.js +1 -1
- package/modern/hooks/features/treeData/useGridTreeData.js +1 -1
- package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.js +7 -7
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/utils/useGridAriaAttributes.js +1 -1
- package/modern/index.js +10 -10
- package/modern/internals/index.js +27 -27
- package/modern/material/icons.js +2 -2
- package/modern/material/index.js +1 -1
- package/modern/models/index.js +7 -7
- package/modern/themeAugmentation/index.js +2 -2
- package/modern/typeOverloads/index.js +1 -1
- package/modern/typeOverloads/reexports.js +3 -3
- package/modern/utils/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/modern/utils/tree/createRowTree.js +1 -1
- package/modern/utils/tree/index.js +1 -1
- package/modern/utils/tree/insertDataRowInTree.js +1 -1
- package/modern/utils/tree/removeDataRowFromTree.js +1 -1
- package/modern/utils/tree/updateRowTree.js +3 -3
- package/package.json +8 -8
- package/utils/releaseInfo.js +1 -1
- package/utils/tree/updateRowTree.js +1 -1
- package/utils/tree/utils.js +1 -1
|
@@ -8,9 +8,9 @@ import { unstable_useForkRef as useForkRef, unstable_composeClasses as composeCl
|
|
|
8
8
|
import { fastMemo } from '@mui/x-internals/fastMemo';
|
|
9
9
|
import { gridVisibleColumnFieldsSelector, getDataGridUtilityClass, useGridSelector, gridFilterModelSelector, gridFilterableColumnLookupSelector } from '@mui/x-data-grid';
|
|
10
10
|
import { useGridPrivateApiContext, gridHeaderFilteringEditFieldSelector, gridHeaderFilteringMenuSelector, isNavigationKey, shouldCellShowLeftBorder, shouldCellShowRightBorder } from '@mui/x-data-grid/internals';
|
|
11
|
-
import { useGridRootProps } from
|
|
12
|
-
import { GridHeaderFilterMenuContainer } from
|
|
13
|
-
import { GridHeaderFilterClearButton } from
|
|
11
|
+
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
12
|
+
import { GridHeaderFilterMenuContainer } from "./GridHeaderFilterMenuContainer.js";
|
|
13
|
+
import { GridHeaderFilterClearButton } from "./GridHeaderFilterClearButton.js";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
@@ -187,9 +187,7 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
187
187
|
ref: handleRef,
|
|
188
188
|
style: _extends({
|
|
189
189
|
height,
|
|
190
|
-
width
|
|
191
|
-
minWidth: width,
|
|
192
|
-
maxWidth: width
|
|
190
|
+
width
|
|
193
191
|
}, styleProp),
|
|
194
192
|
role: "columnheader",
|
|
195
193
|
"aria-colindex": colIndex + 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useGridRootProps } from
|
|
3
|
+
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const sx = {
|
|
6
6
|
padding: '2px'
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { useGridApiContext, useGridSelector } from '@mui/x-data-grid';
|
|
7
7
|
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
8
8
|
import { gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
|
|
9
|
-
import { useGridRootProps } from
|
|
9
|
+
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const sx = {
|
|
12
12
|
width: 22,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./GridHeaderFilterMenuContainer.js";
|
|
2
|
+
export * from "./GridHeaderFilterCell.js";
|
|
3
|
+
export * from "./GridHeaderFilterMenu.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Only export the variable and types that should be publicly exposed and re-exported from `@mui/x-data-grid-pro`
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
2
|
+
export * from "./GridTreeDataGroupingCell.js";
|
|
3
|
+
export * from "./GridColumnMenuPinningItem.js";
|
|
4
|
+
export * from "./GridDetailPanelToggleCell.js";
|
|
5
|
+
export * from "./GridRowReorderCell.js";
|
|
6
|
+
export * from "../material/icons.js";
|
|
7
|
+
export * from "./headerFiltering/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GridProColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PRO as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PRO as GRID_COLUMN_MENU_SLOT_PROPS } from
|
|
1
|
+
export { GridProColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PRO as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PRO as GRID_COLUMN_MENU_SLOT_PROPS } from "./GridProColumnMenu.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridProColumnMenu } from
|
|
4
|
-
import { GridColumnHeaders } from
|
|
5
|
-
import { GridHeaderFilterMenu } from
|
|
6
|
-
import { GridHeaderFilterCell } from
|
|
7
|
-
import { GridDetailPanels } from
|
|
8
|
-
import { GridPinnedRows } from
|
|
9
|
-
import materialSlots from
|
|
3
|
+
import { GridProColumnMenu } from "../components/GridProColumnMenu.js";
|
|
4
|
+
import { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
5
|
+
import { GridHeaderFilterMenu } from "../components/headerFiltering/GridHeaderFilterMenu.js";
|
|
6
|
+
import { GridHeaderFilterCell } from "../components/headerFiltering/GridHeaderFilterCell.js";
|
|
7
|
+
import { GridDetailPanels } from "../components/GridDetailPanels.js";
|
|
8
|
+
import { GridPinnedRows } from "../components/GridPinnedRows.js";
|
|
9
|
+
import materialSlots from "../material/index.js";
|
|
10
10
|
export const DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS = _extends({}, DATA_GRID_DEFAULT_SLOTS_COMPONENTS, materialSlots, {
|
|
11
11
|
columnMenu: GridProColumnMenu,
|
|
12
12
|
columnHeaders: GridColumnHeaders,
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { gridFocusColumnHeaderFilterSelector, useGridSelector, gridFilterModelSelector, gridTabIndexColumnHeaderFilterSelector, getDataGridUtilityClass, GridPinnedColumnPosition, gridDimensionsSelector } from '@mui/x-data-grid';
|
|
6
6
|
import { useGridColumnHeaders as useGridColumnHeadersCommunity, useGridPrivateApiContext, getGridFilter, GridColumnHeaderRow } from '@mui/x-data-grid/internals';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { useGridRootProps } from
|
|
8
|
+
import { useGridRootProps } from "../../utils/useGridRootProps.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
const useUtilityClasses = ownerState => {
|
|
11
11
|
const {
|
|
@@ -91,7 +91,7 @@ export const useGridColumnHeaders = props => {
|
|
|
91
91
|
columnIndex,
|
|
92
92
|
computedWidth: colDef.computedWidth
|
|
93
93
|
});
|
|
94
|
-
filters.push(
|
|
94
|
+
filters.push(/*#__PURE__*/_jsx(rootProps.slots.headerFilterCell, _extends({
|
|
95
95
|
colIndex: columnIndex,
|
|
96
96
|
height: dimensions.headerFilterHeight,
|
|
97
97
|
width: colDef.computedWidth,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./gridColumnPinningInterface.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./columnReorderSelector.js";
|
|
2
2
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import composeClasses from '@mui/utils/composeClasses';
|
|
4
|
-
import {
|
|
4
|
+
import { useRtl } from '@mui/system/RtlProvider';
|
|
5
5
|
import { useGridApiEventHandler, getDataGridUtilityClass, useGridLogger, useGridApiOptionHandler } from '@mui/x-data-grid';
|
|
6
|
-
import { gridColumnReorderDragColSelector } from
|
|
6
|
+
import { gridColumnReorderDragColSelector } from "./columnReorderSelector.js";
|
|
7
7
|
const CURSOR_MOVE_DIRECTION_LEFT = 'left';
|
|
8
8
|
const CURSOR_MOVE_DIRECTION_RIGHT = 'right';
|
|
9
9
|
const getCursorMoveDirectionX = (currentCoordinates, nextCoordinates) => {
|
|
@@ -42,7 +42,7 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
42
42
|
classes: props.classes
|
|
43
43
|
};
|
|
44
44
|
const classes = useUtilityClasses(ownerState);
|
|
45
|
-
const
|
|
45
|
+
const isRtl = useRtl();
|
|
46
46
|
React.useEffect(() => {
|
|
47
47
|
return () => {
|
|
48
48
|
clearTimeout(removeDnDStylesTimeout.current);
|
|
@@ -152,8 +152,8 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
152
152
|
const visibleColumns = apiRef.current.getVisibleColumns();
|
|
153
153
|
const allColumns = apiRef.current.getAllColumns();
|
|
154
154
|
const cursorMoveDirectionX = getCursorMoveDirectionX(cursorPosition.current, coordinates);
|
|
155
|
-
const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && (
|
|
156
|
-
const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && (
|
|
155
|
+
const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && (isRtl ? dragColIndex < targetColIndex : targetColIndex < dragColIndex);
|
|
156
|
+
const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && (isRtl ? targetColIndex < dragColIndex : dragColIndex < targetColIndex);
|
|
157
157
|
if (hasMovedLeft || hasMovedRight) {
|
|
158
158
|
let canBeReordered;
|
|
159
159
|
let indexOffsetInHiddenColumns = 0;
|
|
@@ -194,7 +194,7 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
194
194
|
}
|
|
195
195
|
cursorPosition.current = coordinates;
|
|
196
196
|
}
|
|
197
|
-
}, [apiRef, logger,
|
|
197
|
+
}, [apiRef, logger, isRtl]);
|
|
198
198
|
const handleDragEnd = React.useCallback((params, event) => {
|
|
199
199
|
const dragColField = gridColumnReorderDragColSelector(apiRef);
|
|
200
200
|
if (props.disableColumnReorder || !dragColField) {
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
4
4
|
import { useGridApiEventHandler, gridRowsLoadingSelector, useGridApiMethod, useGridSelector } from '@mui/x-data-grid';
|
|
5
5
|
import { gridRowGroupsToFetchSelector } from '@mui/x-data-grid/internals';
|
|
6
|
-
import { gridGetRowsParamsSelector, gridDataSourceErrorsSelector } from
|
|
7
|
-
import { runIfServerMode, NestedDataManager, RequestStatus } from
|
|
8
|
-
import { GridDataSourceCacheDefault } from
|
|
6
|
+
import { gridGetRowsParamsSelector, gridDataSourceErrorsSelector } from "./gridDataSourceSelector.js";
|
|
7
|
+
import { runIfServerMode, NestedDataManager, RequestStatus } from "./utils.js";
|
|
8
|
+
import { GridDataSourceCacheDefault } from "./cache.js";
|
|
9
9
|
const INITIAL_STATE = {
|
|
10
10
|
loading: {},
|
|
11
11
|
errors: {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
4
|
-
import { GridDetailPanelToggleCell } from
|
|
5
|
-
import { gridDetailPanelExpandedRowIdsSelector } from
|
|
4
|
+
import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.js";
|
|
5
|
+
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export const GRID_DETAIL_PANEL_TOGGLE_FIELD = '__detail_panel_toggle__';
|
|
8
8
|
export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelExpandedRowsHeightCacheSelector } from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./gridDetailPanelToggleColDef.js";
|
|
2
|
+
export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelExpandedRowsHeightCacheSelector } from "./gridDetailPanelSelector.js";
|
|
3
|
+
export * from "./gridDetailPanelInterface.js";
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useGridSelector, useGridApiEventHandler, useGridApiMethod, gridDataRowIdsSelector } from '@mui/x-data-grid';
|
|
4
4
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
5
|
-
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from
|
|
6
|
-
import { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelExpandedRowsHeightCacheSelector, gridDetailPanelRawHeightCacheSelector } from
|
|
5
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from "./gridDetailPanelToggleColDef.js";
|
|
6
|
+
import { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelExpandedRowsHeightCacheSelector, gridDetailPanelRawHeightCacheSelector } from "./gridDetailPanelSelector.js";
|
|
7
7
|
// FIXME: calling `api.updateDimensions()` here triggers a cycle where `updateDimensions` is
|
|
8
8
|
// called 3 times when opening/closing a panel.
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { gridClasses } from '@mui/x-data-grid';
|
|
4
4
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
5
|
-
import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from
|
|
6
|
-
import { gridDetailPanelExpandedRowIdsSelector } from
|
|
5
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from "./gridDetailPanelToggleColDef.js";
|
|
6
|
+
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
|
|
7
7
|
export const useGridDetailPanelPreProcessors = (privateApiRef, props) => {
|
|
8
8
|
const addToggleColumn = React.useCallback(columnsState => {
|
|
9
9
|
if (props.getDetailPanelContent == null) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Only export the variable and types that should be publicly exposed and re-exported from `@mui/x-data-grid-pro`
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
2
|
+
export * from "./columnPinning/index.js";
|
|
3
|
+
export * from "./columnReorder/index.js";
|
|
4
|
+
export * from "./rowReorder/index.js";
|
|
5
|
+
export * from "./treeData/index.js";
|
|
6
|
+
export * from "./detailPanel/index.js";
|
|
7
|
+
export * from "./rowPinning/index.js";
|
|
8
|
+
export * from "./dataSource/interfaces.js";
|
|
9
|
+
export * from "./dataSource/cache.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./gridRowPinningInterface.js";
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
4
4
|
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
5
|
-
import { insertNodeInTree } from
|
|
5
|
+
import { insertNodeInTree } from "../../../utils/tree/utils.js";
|
|
6
6
|
export function addPinnedRow({
|
|
7
7
|
groupingParams,
|
|
8
8
|
rowModel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
3
|
-
import { renderRowReorderCell } from
|
|
3
|
+
import { renderRowReorderCell } from "../../../components/GridRowReorderCell.js";
|
|
4
4
|
export const GRID_REORDER_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
5
5
|
type: 'custom',
|
|
6
6
|
field: '__reorder__',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./gridRowReorderColDef.js";
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import composeClasses from '@mui/utils/composeClasses';
|
|
3
3
|
import { useGridLogger, useGridApiEventHandler, getDataGridUtilityClass, useGridSelector, gridSortModelSelector, gridRowMaximumTreeDepthSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
|
|
4
4
|
import { gridEditRowsStateSelector } from '@mui/x-data-grid/internals';
|
|
5
|
-
import { GRID_REORDER_COL_DEF } from
|
|
5
|
+
import { GRID_REORDER_COL_DEF } from "./gridRowReorderColDef.js";
|
|
6
6
|
var Direction = /*#__PURE__*/function (Direction) {
|
|
7
7
|
Direction[Direction["UP"] = 0] = "UP";
|
|
8
8
|
Direction[Direction["DOWN"] = 1] = "DOWN";
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import composeClasses from '@mui/utils/composeClasses';
|
|
4
4
|
import { getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
5
5
|
import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
|
|
6
|
-
import { GRID_REORDER_COL_DEF } from
|
|
6
|
+
import { GRID_REORDER_COL_DEF } from "./gridRowReorderColDef.js";
|
|
7
7
|
const useUtilityClasses = ownerState => {
|
|
8
8
|
const {
|
|
9
9
|
classes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./useGridRowAriaAttributes.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useGridSelector, gridFilteredTopLevelRowCountSelector, GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
3
3
|
import { useGridRowAriaAttributes as useGridRowAriaAttributesCommunity, gridFilteredChildrenCountLookupSelector, gridExpandedSortedRowTreeLevelPositionLookupSelector } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { useGridPrivateApiContext } from
|
|
5
|
-
import { useGridRootProps } from
|
|
4
|
+
import { useGridPrivateApiContext } from "../../utils/useGridPrivateApiContext.js";
|
|
5
|
+
import { useGridRootProps } from "../../utils/useGridRootProps.js";
|
|
6
6
|
export const useGridRowAriaAttributes = addTreeDataAttributes => {
|
|
7
7
|
const apiRef = useGridPrivateApiContext();
|
|
8
8
|
const props = useGridRootProps();
|
|
@@ -4,12 +4,12 @@ const _excluded = ["hideDescendantCount"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { gridRowTreeSelector, useFirstRender, GRID_CHECKBOX_SELECTION_FIELD } from '@mui/x-data-grid';
|
|
6
6
|
import { useGridRegisterPipeProcessor, useGridRegisterStrategyProcessor } from '@mui/x-data-grid/internals';
|
|
7
|
-
import { GRID_TREE_DATA_GROUPING_COL_DEF, GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES } from
|
|
8
|
-
import { skipFiltering, skipSorting } from
|
|
9
|
-
import { GridDataSourceTreeDataGroupingCell } from
|
|
10
|
-
import { createRowTree } from
|
|
11
|
-
import { updateRowTree } from
|
|
12
|
-
import { getVisibleRowsLookup } from
|
|
7
|
+
import { GRID_TREE_DATA_GROUPING_COL_DEF, GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES } from "../treeData/gridTreeDataGroupColDef.js";
|
|
8
|
+
import { skipFiltering, skipSorting } from "./utils.js";
|
|
9
|
+
import { GridDataSourceTreeDataGroupingCell } from "../../../components/GridDataSourceTreeDataGroupingCell.js";
|
|
10
|
+
import { createRowTree } from "../../../utils/tree/createRowTree.js";
|
|
11
|
+
import { updateRowTree } from "../../../utils/tree/updateRowTree.js";
|
|
12
|
+
import { getVisibleRowsLookup } from "../../../utils/tree/utils.js";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const DATA_SOURCE_TREE_DATA_STRATEGY = 'dataSourceTreeData';
|
|
15
15
|
export const useGridDataSourceTreeDataPreProcessors = (privateApiRef, props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GRID_TREE_DATA_GROUPING_FIELD } from
|
|
1
|
+
export { GRID_TREE_DATA_GROUPING_FIELD } from "./gridTreeDataGroupColDef.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useGridApiEventHandler } from '@mui/x-data-grid';
|
|
3
|
-
import { GRID_TREE_DATA_GROUPING_FIELD } from
|
|
3
|
+
import { GRID_TREE_DATA_GROUPING_FIELD } from "./gridTreeDataGroupColDef.js";
|
|
4
4
|
export const useGridTreeData = (apiRef, props) => {
|
|
5
5
|
/**
|
|
6
6
|
* EVENTS
|
|
@@ -4,13 +4,13 @@ const _excluded = ["hideDescendantCount"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { gridRowTreeSelector, useFirstRender, GRID_CHECKBOX_SELECTION_FIELD } from '@mui/x-data-grid';
|
|
6
6
|
import { useGridRegisterPipeProcessor, useGridRegisterStrategyProcessor } from '@mui/x-data-grid/internals';
|
|
7
|
-
import { GRID_TREE_DATA_GROUPING_COL_DEF, GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES } from
|
|
8
|
-
import { filterRowTreeFromTreeData, TREE_DATA_STRATEGY } from
|
|
9
|
-
import { GridTreeDataGroupingCell } from
|
|
10
|
-
import { createRowTree } from
|
|
11
|
-
import { sortRowTree } from
|
|
12
|
-
import { updateRowTree } from
|
|
13
|
-
import { getVisibleRowsLookup } from
|
|
7
|
+
import { GRID_TREE_DATA_GROUPING_COL_DEF, GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES } from "./gridTreeDataGroupColDef.js";
|
|
8
|
+
import { filterRowTreeFromTreeData, TREE_DATA_STRATEGY } from "./gridTreeDataUtils.js";
|
|
9
|
+
import { GridTreeDataGroupingCell } from "../../../components/index.js";
|
|
10
|
+
import { createRowTree } from "../../../utils/tree/createRowTree.js";
|
|
11
|
+
import { sortRowTree } from "../../../utils/tree/sortRowTree.js";
|
|
12
|
+
import { updateRowTree } from "../../../utils/tree/updateRowTree.js";
|
|
13
|
+
import { getVisibleRowsLookup } from "../../../utils/tree/utils.js";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export const useGridTreeDataPreProcessors = (privateApiRef, props) => {
|
|
16
16
|
const setStrategyAvailability = React.useCallback(() => {
|
package/modern/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./features/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { useGridAriaAttributes as useGridAriaAttributesCommunity } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { useGridRootProps } from
|
|
3
|
+
import { useGridRootProps } from "./useGridRootProps.js";
|
|
4
4
|
export const useGridAriaAttributes = () => {
|
|
5
5
|
const ariaAttributesCommunity = useGridAriaAttributesCommunity();
|
|
6
6
|
const rootProps = useGridRootProps();
|
package/modern/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid-pro v7.
|
|
2
|
+
* @mui/x-data-grid-pro v7.16.0
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import "./typeOverloads/index.js";
|
|
9
9
|
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated Use `@mui/x-license` package instead:
|
|
@@ -19,11 +19,11 @@ export * from '@mui/x-data-grid/models';
|
|
|
19
19
|
export * from '@mui/x-data-grid/context';
|
|
20
20
|
export * from '@mui/x-data-grid/utils';
|
|
21
21
|
export * from '@mui/x-data-grid/colDef';
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export { useGridApiContext, useGridApiRef, useGridRootProps } from
|
|
28
|
-
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from
|
|
29
|
-
export { GridColumnHeaders } from
|
|
22
|
+
export * from "./DataGridPro/index.js";
|
|
23
|
+
export * from "./hooks/index.js";
|
|
24
|
+
export * from "./models/index.js";
|
|
25
|
+
export * from "./components/index.js";
|
|
26
|
+
export * from "./utils/index.js";
|
|
27
|
+
export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
|
|
28
|
+
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
|
|
29
|
+
export { GridColumnHeaders } from "./components/GridColumnHeaders.js";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
// eslint-disable-next-line import/export
|
|
2
2
|
export * from '@mui/x-data-grid/internals';
|
|
3
|
-
export { GridColumnHeaders } from
|
|
4
|
-
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from
|
|
3
|
+
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
4
|
+
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
5
5
|
|
|
6
6
|
/* eslint-disable import/export --
|
|
7
7
|
* x-data-grid-pro internals that are overriding the x-data-grid internals
|
|
8
8
|
*/
|
|
9
|
-
export { useGridColumnHeaders } from
|
|
10
|
-
export { useGridAriaAttributes } from
|
|
11
|
-
export { useGridRowAriaAttributes } from
|
|
9
|
+
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
10
|
+
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
11
|
+
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
12
12
|
// eslint-enable import/export
|
|
13
13
|
|
|
14
|
-
export { useGridColumnPinning, columnPinningStateInitializer } from
|
|
15
|
-
export { useGridColumnPinningPreProcessors } from
|
|
16
|
-
export { useGridColumnReorder, columnReorderStateInitializer } from
|
|
17
|
-
export { useGridDataSourceTreeDataPreProcessors } from
|
|
18
|
-
export { useGridDetailPanel, detailPanelStateInitializer } from
|
|
19
|
-
export { useGridDetailPanelPreProcessors } from
|
|
20
|
-
export { useGridInfiniteLoader } from
|
|
21
|
-
export { useGridRowReorder } from
|
|
22
|
-
export { useGridRowReorderPreProcessors } from
|
|
23
|
-
export { useGridTreeData } from
|
|
24
|
-
export { useGridTreeDataPreProcessors } from
|
|
25
|
-
export { TREE_DATA_STRATEGY } from
|
|
26
|
-
export { useGridRowPinning, rowPinningStateInitializer } from
|
|
27
|
-
export { useGridRowPinningPreProcessors, addPinnedRow } from
|
|
28
|
-
export { useGridLazyLoader } from
|
|
29
|
-
export { useGridLazyLoaderPreProcessors } from
|
|
30
|
-
export { useGridDataSource, dataSourceStateInitializer } from
|
|
31
|
-
export { createRowTree } from
|
|
32
|
-
export { updateRowTree } from
|
|
33
|
-
export { sortRowTree } from
|
|
34
|
-
export { insertNodeInTree, removeNodeFromTree, getVisibleRowsLookup } from
|
|
35
|
-
export * from
|
|
14
|
+
export { useGridColumnPinning, columnPinningStateInitializer } from "../hooks/features/columnPinning/useGridColumnPinning.js";
|
|
15
|
+
export { useGridColumnPinningPreProcessors } from "../hooks/features/columnPinning/useGridColumnPinningPreProcessors.js";
|
|
16
|
+
export { useGridColumnReorder, columnReorderStateInitializer } from "../hooks/features/columnReorder/useGridColumnReorder.js";
|
|
17
|
+
export { useGridDataSourceTreeDataPreProcessors } from "../hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js";
|
|
18
|
+
export { useGridDetailPanel, detailPanelStateInitializer } from "../hooks/features/detailPanel/useGridDetailPanel.js";
|
|
19
|
+
export { useGridDetailPanelPreProcessors } from "../hooks/features/detailPanel/useGridDetailPanelPreProcessors.js";
|
|
20
|
+
export { useGridInfiniteLoader } from "../hooks/features/infiniteLoader/useGridInfiniteLoader.js";
|
|
21
|
+
export { useGridRowReorder } from "../hooks/features/rowReorder/useGridRowReorder.js";
|
|
22
|
+
export { useGridRowReorderPreProcessors } from "../hooks/features/rowReorder/useGridRowReorderPreProcessors.js";
|
|
23
|
+
export { useGridTreeData } from "../hooks/features/treeData/useGridTreeData.js";
|
|
24
|
+
export { useGridTreeDataPreProcessors } from "../hooks/features/treeData/useGridTreeDataPreProcessors.js";
|
|
25
|
+
export { TREE_DATA_STRATEGY } from "../hooks/features/treeData/gridTreeDataUtils.js";
|
|
26
|
+
export { useGridRowPinning, rowPinningStateInitializer } from "../hooks/features/rowPinning/useGridRowPinning.js";
|
|
27
|
+
export { useGridRowPinningPreProcessors, addPinnedRow } from "../hooks/features/rowPinning/useGridRowPinningPreProcessors.js";
|
|
28
|
+
export { useGridLazyLoader } from "../hooks/features/lazyLoader/useGridLazyLoader.js";
|
|
29
|
+
export { useGridLazyLoaderPreProcessors } from "../hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js";
|
|
30
|
+
export { useGridDataSource, dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSource.js";
|
|
31
|
+
export { createRowTree } from "../utils/tree/createRowTree.js";
|
|
32
|
+
export { updateRowTree } from "../utils/tree/updateRowTree.js";
|
|
33
|
+
export { sortRowTree } from "../utils/tree/sortRowTree.js";
|
|
34
|
+
export { insertNodeInTree, removeNodeFromTree, getVisibleRowsLookup } from "../utils/tree/utils.js";
|
|
35
|
+
export * from "./propValidation.js";
|
package/modern/material/icons.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createSvgIcon } from '@mui/material/utils';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export const GridPushPinRightIcon = createSvgIcon(
|
|
4
|
+
export const GridPushPinRightIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
5
5
|
transform: "rotate(-30 15 10)",
|
|
6
6
|
children: /*#__PURE__*/_jsx("path", {
|
|
7
7
|
d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
|
|
8
8
|
fillRule: "evenodd"
|
|
9
9
|
})
|
|
10
10
|
}), 'PushPinRight');
|
|
11
|
-
export const GridPushPinLeftIcon = createSvgIcon(
|
|
11
|
+
export const GridPushPinLeftIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
12
12
|
transform: "rotate(30 8 12)",
|
|
13
13
|
children: /*#__PURE__*/_jsx("path", {
|
|
14
14
|
d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
|
package/modern/material/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { GridPushPinRightIcon, GridPushPinLeftIcon } from
|
|
2
|
+
import { GridPushPinRightIcon, GridPushPinLeftIcon } from "./icons.js";
|
|
3
3
|
const iconSlots = {
|
|
4
4
|
columnMenuPinRightIcon: GridPushPinRightIcon,
|
|
5
5
|
columnMenuPinLeftIcon: GridPushPinLeftIcon
|
package/modern/models/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from "./gridApiPro.js";
|
|
2
|
+
export * from "./gridGroupingColDefOverride.js";
|
|
3
|
+
export * from "./gridRowScrollEndParams.js";
|
|
4
|
+
export * from "./gridRowOrderChangeParams.js";
|
|
5
|
+
export * from "./gridFetchRowsParams.js";
|
|
6
|
+
export * from "./gridProSlotsComponent.js";
|
|
7
|
+
export * from "./gridProIconSlotsComponent.js";
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./modules.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { useGridApiContext } from
|
|
2
|
-
export { useGridApiRef } from
|
|
3
|
-
export { useGridRootProps } from
|
|
1
|
+
export { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
2
|
+
export { useGridApiRef } from "../hooks/utils/useGridApiRef.js";
|
|
3
|
+
export { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The full grid API.
|
package/modern/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./tree/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyNTQ4MzYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
2
2
|
import { buildRootGroup } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { insertDataRowInTree } from
|
|
3
|
+
import { insertDataRowInTree } from "./insertDataRowInTree.js";
|
|
4
4
|
/**
|
|
5
5
|
* Transform a list of rows into a tree structure where each row references its parent and children.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getGroupRowIdFromPath } from
|
|
1
|
+
export { getGroupRowIdFromPath } from "./utils.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
2
|
-
import { updateGroupDefaultExpansion, checkGroupChildrenExpansion, getGroupRowIdFromPath, insertNodeInTree, updateGroupNodeIdAndAutoGenerated } from
|
|
2
|
+
import { updateGroupDefaultExpansion, checkGroupChildrenExpansion, getGroupRowIdFromPath, insertNodeInTree, updateGroupNodeIdAndAutoGenerated } from "./utils.js";
|
|
3
3
|
/**
|
|
4
4
|
* Inserts a data row in a tree.
|
|
5
5
|
* For each steps of its path:
|