@mui/x-data-grid-premium 9.5.0 → 9.7.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 +261 -0
- package/DataGridPremium/DataGridPremium.d.mts +1 -1
- package/DataGridPremium/DataGridPremium.d.ts +1 -1
- package/DataGridPremium/DataGridPremium.js +3 -3
- package/DataGridPremium/DataGridPremium.mjs +3 -3
- package/DataGridPremium/useDataGridPremiumComponent.d.mts +1 -1
- package/DataGridPremium/useDataGridPremiumComponent.d.ts +1 -1
- package/components/GridAggregationHeader.d.mts +2 -2
- package/components/GridAggregationHeader.d.ts +2 -2
- package/components/GridDataSourceGroupingCriteriaCell.d.mts +1 -1
- package/components/GridDataSourceGroupingCriteriaCell.d.ts +1 -1
- package/components/GridEmptyPivotOverlay.d.mts +1 -1
- package/components/GridEmptyPivotOverlay.d.ts +1 -1
- package/components/GridEmptyPivotOverlay.js +1 -1
- package/components/GridEmptyPivotOverlay.mjs +1 -1
- package/components/GridExcelExportMenuItem.js +1 -1
- package/components/GridExcelExportMenuItem.mjs +1 -1
- package/components/GridGroupingCriteriaCell.d.mts +1 -1
- package/components/GridGroupingCriteriaCell.d.ts +1 -1
- package/components/GridPremiumColumnMenu.d.mts +1 -1
- package/components/GridPremiumColumnMenu.d.ts +1 -1
- package/components/GridPremiumToolbar.d.mts +1 -1
- package/components/GridPremiumToolbar.d.ts +1 -1
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.mts +2 -2
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +2 -2
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.js +3 -3
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.mjs +3 -3
- package/components/chartsPanel/ChartsPanelTrigger.d.mts +1 -1
- package/components/chartsPanel/ChartsPanelTrigger.d.ts +1 -1
- package/components/chartsPanel/ChartsPanelTrigger.js +1 -1
- package/components/chartsPanel/ChartsPanelTrigger.mjs +1 -1
- package/components/chartsPanel/GridChartsPanel.js +2 -2
- package/components/chartsPanel/GridChartsPanel.mjs +2 -2
- package/components/chartsPanel/data/GridChartsPanelDataSearch.d.mts +1 -1
- package/components/chartsPanel/data/GridChartsPanelDataSearch.d.ts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.d.mts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.d.ts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.js +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.mjs +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuChartsItem.d.mts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuChartsItem.d.ts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuPivotItem.d.mts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuPivotItem.d.ts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuRowGroupItem.d.mts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuRowGroupItem.d.ts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuRowUngroupItem.d.mts +1 -1
- package/components/columnMenu/menuItems/GridColumnMenuRowUngroupItem.d.ts +1 -1
- package/components/export/ExportExcel.js +1 -1
- package/components/export/ExportExcel.mjs +1 -1
- package/components/pivotPanel/GridPivotPanelSearch.d.mts +1 -1
- package/components/pivotPanel/GridPivotPanelSearch.d.ts +1 -1
- package/components/pivotPanel/PivotPanelTrigger.d.mts +2 -2
- package/components/pivotPanel/PivotPanelTrigger.d.ts +2 -2
- package/components/pivotPanel/PivotPanelTrigger.js +1 -1
- package/components/pivotPanel/PivotPanelTrigger.mjs +1 -1
- package/components/promptField/GridPromptField.d.mts +1 -1
- package/components/promptField/GridPromptField.d.ts +1 -1
- package/components/promptField/PromptField.d.mts +1 -1
- package/components/promptField/PromptField.d.ts +1 -1
- package/components/promptField/PromptField.js +1 -1
- package/components/promptField/PromptField.mjs +1 -1
- package/components/promptField/PromptFieldControl.d.mts +1 -1
- package/components/promptField/PromptFieldControl.d.ts +1 -1
- package/components/promptField/PromptFieldControl.js +1 -1
- package/components/promptField/PromptFieldControl.mjs +1 -1
- package/components/promptField/PromptFieldRecord.d.mts +1 -1
- package/components/promptField/PromptFieldRecord.d.ts +1 -1
- package/components/promptField/PromptFieldRecord.js +1 -1
- package/components/promptField/PromptFieldRecord.mjs +1 -1
- package/components/promptField/PromptFieldSend.d.mts +1 -1
- package/components/promptField/PromptFieldSend.d.ts +1 -1
- package/components/promptField/PromptFieldSend.js +1 -1
- package/components/promptField/PromptFieldSend.mjs +1 -1
- package/context/GridChartsRendererProxy.js +1 -1
- package/context/GridChartsRendererProxy.mjs +1 -1
- package/hooks/features/aggregation/createAggregationLookup.js +2 -0
- package/hooks/features/aggregation/createAggregationLookup.mjs +2 -0
- package/hooks/features/aggregation/gridAggregationSelectors.d.mts +3 -3
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +3 -3
- package/hooks/features/aggregation/gridAggregationSelectors.js +1 -1
- package/hooks/features/aggregation/gridAggregationSelectors.mjs +1 -1
- package/hooks/features/aggregation/gridAggregationUtils.d.mts +2 -2
- package/hooks/features/aggregation/gridAggregationUtils.d.ts +2 -2
- package/hooks/features/aggregation/useGridAggregation.d.mts +1 -1
- package/hooks/features/aggregation/useGridAggregation.d.ts +1 -1
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.mts +2 -2
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +2 -2
- package/hooks/features/aiAssistant/useGridAiAssistant.d.mts +1 -1
- package/hooks/features/aiAssistant/useGridAiAssistant.d.ts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.d.mts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.d.ts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.js +2 -2
- package/hooks/features/cellSelection/useGridCellSelection.mjs +2 -2
- package/hooks/features/chartsIntegration/useGridChartsIntegration.d.mts +1 -1
- package/hooks/features/chartsIntegration/useGridChartsIntegration.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboardImport.d.mts +1 -1
- package/hooks/features/clipboard/useGridClipboardImport.d.ts +1 -1
- package/hooks/features/dataSource/utils.d.mts +1 -1
- package/hooks/features/dataSource/utils.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditable.d.mts +1 -1
- package/hooks/features/editing/useGridCellEditable.d.ts +1 -1
- package/hooks/features/export/serializer/excelSerializer.d.mts +3 -3
- package/hooks/features/export/serializer/excelSerializer.d.ts +3 -3
- package/hooks/features/history/useGridHistory.d.mts +1 -1
- package/hooks/features/history/useGridHistory.d.ts +1 -1
- package/hooks/features/pivoting/useGridPivoting.d.mts +2 -2
- package/hooks/features/pivoting/useGridPivoting.d.ts +2 -2
- package/hooks/features/pivoting/utils.d.mts +1 -1
- package/hooks/features/pivoting/utils.d.ts +1 -1
- package/hooks/features/pivoting/utils.js +3 -1
- package/hooks/features/pivoting/utils.mjs +3 -1
- package/hooks/features/rowGrouping/createGroupingColDef.d.mts +3 -2
- package/hooks/features/rowGrouping/createGroupingColDef.d.ts +3 -2
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.mts +2 -1
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +2 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.d.mts +1 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
- package/hooks/features/rowReorder/operations.d.mts +2 -1
- package/hooks/features/rowReorder/operations.d.ts +2 -1
- package/hooks/features/rows/useGridParamsOverridableMethods.js +2 -2
- package/hooks/features/rows/useGridParamsOverridableMethods.mjs +2 -2
- package/hooks/features/sidebar/useGridSidebar.d.mts +1 -1
- package/hooks/features/sidebar/useGridSidebar.d.ts +1 -1
- package/hooks/utils/useGridApiContext.d.mts +1 -1
- package/hooks/utils/useGridApiContext.d.ts +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.d.mts +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.d.ts +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.js +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +10 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
declare function GridColumnMenuAggregationItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace GridColumnMenuAggregationItem {
|
|
4
4
|
var propTypes: any;
|
|
@@ -122,7 +122,7 @@ function GridColumnMenuAggregationItem(props) {
|
|
|
122
122
|
}))
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes = {
|
|
125
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes /* remove-proptypes */ = {
|
|
126
126
|
// ----------------------------- Warning --------------------------------
|
|
127
127
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
128
128
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -115,7 +115,7 @@ function GridColumnMenuAggregationItem(props) {
|
|
|
115
115
|
}))
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes = {
|
|
118
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes /* remove-proptypes */ = {
|
|
119
119
|
// ----------------------------- Warning --------------------------------
|
|
120
120
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
121
121
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuChartsItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuChartsItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuPivotItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuPivotItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuRowGroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuRowGroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuRowUngroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
export declare function GridColumnMenuRowUngroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -51,7 +51,7 @@ const ExportExcel = exports.ExportExcel = (0, _forwardRef.forwardRef)(function E
|
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
if (process.env.NODE_ENV !== "production") ExportExcel.displayName = "ExportExcel";
|
|
54
|
-
process.env.NODE_ENV !== "production" ? ExportExcel.propTypes = {
|
|
54
|
+
process.env.NODE_ENV !== "production" ? ExportExcel.propTypes /* remove-proptypes */ = {
|
|
55
55
|
// ----------------------------- Warning --------------------------------
|
|
56
56
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
57
57
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -43,7 +43,7 @@ const ExportExcel = forwardRef(function ExportExcel(props, ref) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
if (process.env.NODE_ENV !== "production") ExportExcel.displayName = "ExportExcel";
|
|
46
|
-
process.env.NODE_ENV !== "production" ? ExportExcel.propTypes = {
|
|
46
|
+
process.env.NODE_ENV !== "production" ? ExportExcel.propTypes /* remove-proptypes */ = {
|
|
47
47
|
// ----------------------------- Warning --------------------------------
|
|
48
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
49
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
|
|
3
|
+
import type { GridSlotProps } from '@mui/x-data-grid-pro';
|
|
4
4
|
export interface PivotPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the pivot panel is open.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
|
|
3
|
+
import type { GridSlotProps } from '@mui/x-data-grid-pro';
|
|
4
4
|
export interface PivotPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the pivot panel is open.
|
|
@@ -74,7 +74,7 @@ const PivotPanelTrigger = exports.PivotPanelTrigger = (0, _forwardRef.forwardRef
|
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
if (process.env.NODE_ENV !== "production") PivotPanelTrigger.displayName = "PivotPanelTrigger";
|
|
77
|
-
process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes = {
|
|
77
|
+
process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes /* remove-proptypes */ = {
|
|
78
78
|
// ----------------------------- Warning --------------------------------
|
|
79
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
80
80
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -66,7 +66,7 @@ const PivotPanelTrigger = forwardRef(function PivotPanelTrigger(props, ref) {
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
if (process.env.NODE_ENV !== "production") PivotPanelTrigger.displayName = "PivotPanelTrigger";
|
|
69
|
-
process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes = {
|
|
69
|
+
process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes /* remove-proptypes */ = {
|
|
70
70
|
// ----------------------------- Warning --------------------------------
|
|
71
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
72
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { RenderProp } from '@mui/x-data-grid';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.mjs";
|
|
4
4
|
export type PromptFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'onSubmit'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { RenderProp } from '@mui/x-data-grid';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.js";
|
|
4
4
|
export type PromptFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'onSubmit'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -71,7 +71,7 @@ const PromptField = exports.PromptField = (0, _forwardRef.forwardRef)(function P
|
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
if (process.env.NODE_ENV !== "production") PromptField.displayName = "PromptField";
|
|
74
|
-
process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
|
|
74
|
+
process.env.NODE_ENV !== "production" ? PromptField.propTypes /* remove-proptypes */ = {
|
|
75
75
|
// ----------------------------- Warning --------------------------------
|
|
76
76
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
77
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -64,7 +64,7 @@ const PromptField = forwardRef(function PromptField(props, ref) {
|
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
if (process.env.NODE_ENV !== "production") PromptField.displayName = "PromptField";
|
|
67
|
-
process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
|
|
67
|
+
process.env.NODE_ENV !== "production" ? PromptField.propTypes /* remove-proptypes */ = {
|
|
68
68
|
// ----------------------------- Warning --------------------------------
|
|
69
69
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
70
70
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.mjs";
|
|
4
4
|
export type PromptFieldControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.js";
|
|
4
4
|
export type PromptFieldControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -66,7 +66,7 @@ const PromptFieldControl = exports.PromptFieldControl = (0, _forwardRef.forwardR
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
if (process.env.NODE_ENV !== "production") PromptFieldControl.displayName = "PromptFieldControl";
|
|
69
|
-
process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
|
|
69
|
+
process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes /* remove-proptypes */ = {
|
|
70
70
|
// ----------------------------- Warning --------------------------------
|
|
71
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
72
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -58,7 +58,7 @@ const PromptFieldControl = forwardRef(function PromptFieldControl(props, ref) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
if (process.env.NODE_ENV !== "production") PromptFieldControl.displayName = "PromptFieldControl";
|
|
61
|
-
process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes /* remove-proptypes */ = {
|
|
62
62
|
// ----------------------------- Warning --------------------------------
|
|
63
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
64
64
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.mjs";
|
|
4
4
|
export type PromptFieldRecordProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.js";
|
|
4
4
|
export type PromptFieldRecordProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -132,7 +132,7 @@ const PromptFieldRecord = exports.PromptFieldRecord = (0, _forwardRef.forwardRef
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
if (process.env.NODE_ENV !== "production") PromptFieldRecord.displayName = "PromptFieldRecord";
|
|
135
|
-
process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes = {
|
|
135
|
+
process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes /* remove-proptypes */ = {
|
|
136
136
|
// ----------------------------- Warning --------------------------------
|
|
137
137
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
138
138
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -124,7 +124,7 @@ const PromptFieldRecord = forwardRef(function PromptFieldRecord(props, ref) {
|
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
126
|
if (process.env.NODE_ENV !== "production") PromptFieldRecord.displayName = "PromptFieldRecord";
|
|
127
|
-
process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes = {
|
|
127
|
+
process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes /* remove-proptypes */ = {
|
|
128
128
|
// ----------------------------- Warning --------------------------------
|
|
129
129
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
130
130
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.mjs";
|
|
4
4
|
export type PromptFieldSendProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
|
|
3
|
-
import {
|
|
3
|
+
import type { PromptFieldState } from "./PromptFieldContext.js";
|
|
4
4
|
export type PromptFieldSendProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -57,7 +57,7 @@ const PromptFieldSend = exports.PromptFieldSend = (0, _forwardRef.forwardRef)(fu
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
if (process.env.NODE_ENV !== "production") PromptFieldSend.displayName = "PromptFieldSend";
|
|
60
|
-
process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes = {
|
|
60
|
+
process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes /* remove-proptypes */ = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
63
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -49,7 +49,7 @@ const PromptFieldSend = forwardRef(function PromptFieldSend(props, ref) {
|
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
if (process.env.NODE_ENV !== "production") PromptFieldSend.displayName = "PromptFieldSend";
|
|
52
|
-
process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes = {
|
|
52
|
+
process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes /* remove-proptypes */ = {
|
|
53
53
|
// ----------------------------- Warning --------------------------------
|
|
54
54
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
55
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -52,7 +52,7 @@ function GridChartsRendererProxy(props) {
|
|
|
52
52
|
onRender: onRender
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes = {
|
|
55
|
+
process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes /* remove-proptypes */ = {
|
|
56
56
|
// ----------------------------- Warning --------------------------------
|
|
57
57
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
58
58
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -45,7 +45,7 @@ function GridChartsRendererProxy(props) {
|
|
|
45
45
|
onRender: onRender
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes = {
|
|
48
|
+
process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes /* remove-proptypes */ = {
|
|
49
49
|
// ----------------------------- Warning --------------------------------
|
|
50
50
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
51
51
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -139,6 +139,8 @@ const createAggregationLookup = ({
|
|
|
139
139
|
for (let i = 0; i < aggregatedFields.length; i += 1) {
|
|
140
140
|
const field = aggregatedFields[i];
|
|
141
141
|
const column = columnsLookup[field];
|
|
142
|
+
// `column` can be `undefined` if the field has no matching column; `getRowValue`
|
|
143
|
+
// tolerates that and returns `undefined`, which is filtered out when aggregating.
|
|
142
144
|
const valueGetter = row => apiRef.current.getRowValue(row, column);
|
|
143
145
|
valueGetters[field] = valueGetter;
|
|
144
146
|
}
|
|
@@ -132,6 +132,8 @@ export const createAggregationLookup = ({
|
|
|
132
132
|
for (let i = 0; i < aggregatedFields.length; i += 1) {
|
|
133
133
|
const field = aggregatedFields[i];
|
|
134
134
|
const column = columnsLookup[field];
|
|
135
|
+
// `column` can be `undefined` if the field has no matching column; `getRowValue`
|
|
136
|
+
// tolerates that and returns `undefined`, which is filtered out when aggregating.
|
|
135
137
|
const valueGetter = row => apiRef.current.getRowValue(row, column);
|
|
136
138
|
valueGetters[field] = valueGetter;
|
|
137
139
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { GridAggregationPosition } from '@mui/x-data-grid-pro/internals';
|
|
2
|
+
import type { GridRowId } from '@mui/x-data-grid-pro';
|
|
3
3
|
import type { GridStatePremium } from "../../../models/gridStatePremium.mjs";
|
|
4
4
|
export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces.mjs").GridAggregationState>;
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const gridCellAggregationResultSelector: (args_0: import("react")
|
|
|
21
21
|
state: GridStatePremium;
|
|
22
22
|
} | null>, args_1: {
|
|
23
23
|
id: GridRowId;
|
|
24
|
-
field: string;
|
|
24
|
+
field: string | undefined;
|
|
25
25
|
}) => {
|
|
26
26
|
position: GridAggregationPosition;
|
|
27
27
|
value: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { GridAggregationPosition } from '@mui/x-data-grid-pro/internals';
|
|
2
|
+
import type { GridRowId } from '@mui/x-data-grid-pro';
|
|
3
3
|
import type { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
4
4
|
export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces.js").GridAggregationState>;
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const gridCellAggregationResultSelector: (args_0: import("react")
|
|
|
21
21
|
state: GridStatePremium;
|
|
22
22
|
} | null>, args_1: {
|
|
23
23
|
id: GridRowId;
|
|
24
|
-
field: string;
|
|
24
|
+
field: string | undefined;
|
|
25
25
|
}) => {
|
|
26
26
|
position: GridAggregationPosition;
|
|
27
27
|
value: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { GridColDef, GridRowId, GridGroupNode } from '@mui/x-data-grid-pro';
|
|
3
|
+
import type { GridColumnRawLookup, GridHydrateRowsValue } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import type { GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationModel, GridAggregationRule, GridAggregationRules } from "./gridAggregationInterfaces.mjs";
|
|
5
5
|
import type { GridStatePremium } from "../../../models/gridStatePremium.mjs";
|
|
6
6
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { GridColDef, GridRowId, GridGroupNode } from '@mui/x-data-grid-pro';
|
|
3
|
+
import type { GridColumnRawLookup, GridHydrateRowsValue } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import type { GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationModel, GridAggregationRule, GridAggregationRules } from "./gridAggregationInterfaces.js";
|
|
5
5
|
import type { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
6
6
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
export declare const aggregationStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'aggregationModel' | 'initialState'>, GridPrivateApiPremium>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
export declare const aggregationStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'aggregationModel' | 'initialState'>, GridPrivateApiPremium>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
3
|
+
import type { GridBaseColDef } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import type { GridApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
import type { GridAggregationRule } from "./gridAggregationInterfaces.mjs";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
3
|
+
import type { GridBaseColDef } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import type { GridApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
import type { GridAggregationRule } from "./gridAggregationInterfaces.js";
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
5
5
|
export declare const aiAssistantStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState' | 'aiAssistantConversations' | 'aiAssistant'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
export declare const aiAssistantStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState' | 'aiAssistantConversations' | 'aiAssistant'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
export declare const cellSelectionStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'cellSelectionModel' | 'initialState'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
export declare const cellSelectionStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'cellSelectionModel' | 'initialState'>>;
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.useGridCellSelection = exports.cellSelectionStateInitializer = void 0;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _platform = require("@base-ui/utils/platform");
|
|
12
13
|
var _ownerDocument = _interopRequireDefault(require("@mui/utils/ownerDocument"));
|
|
13
14
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
14
15
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
@@ -187,8 +188,7 @@ const useGridCellSelection = (apiRef, props) => {
|
|
|
187
188
|
const handleCellMouseDown = React.useCallback((params, event) => {
|
|
188
189
|
// Skip if the click comes from the right-button or, only on macOS, Ctrl is pressed
|
|
189
190
|
// Fix for https://github.com/mui/mui-x/pull/6567#issuecomment-1329155578
|
|
190
|
-
|
|
191
|
-
if (event.button !== 0 || event.ctrlKey && isMacOs) {
|
|
191
|
+
if (event.button !== 0 || event.ctrlKey && _platform.platform.os.mac) {
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
if (params.field === _xDataGridPro.GRID_REORDER_COL_DEF.field) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import { platform } from '@base-ui/utils/platform';
|
|
5
6
|
import ownerDocument from '@mui/utils/ownerDocument';
|
|
6
7
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
7
8
|
import { getGridCellElement, getTotalHeaderHeight, getVisibleRows, isFillDownShortcut, isFillRightShortcut, isNavigationKey, serializeCellValue, useGridRegisterPipeProcessor } from '@mui/x-data-grid-pro/internals';
|
|
@@ -179,8 +180,7 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
179
180
|
const handleCellMouseDown = React.useCallback((params, event) => {
|
|
180
181
|
// Skip if the click comes from the right-button or, only on macOS, Ctrl is pressed
|
|
181
182
|
// Fix for https://github.com/mui/mui-x/pull/6567#issuecomment-1329155578
|
|
182
|
-
|
|
183
|
-
if (event.button !== 0 || event.ctrlKey && isMacOs) {
|
|
183
|
+
if (event.button !== 0 || event.ctrlKey && platform.os.mac) {
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
if (params.field === GRID_REORDER_COL_DEF.field) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
import type { ChartState } from "../../../models/gridChartsIntegration.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
import type { ChartState } from "../../../models/gridChartsIntegration.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridColDef, GridRowId, GridValidRowModel, GridRowModel } from '@mui/x-data-grid';
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
5
5
|
export declare class CellValueUpdater {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridColDef, GridRowId, GridValidRowModel, GridRowModel } from '@mui/x-data-grid';
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
export declare class CellValueUpdater {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridColDef, GridRowId, GridRowTreeConfig } from '@mui/x-data-grid-pro';
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
4
4
|
import type { GridPivotingDynamicPropsOverrides, PivotingColDefCallback, GridPivotModel } from "../pivoting/gridPivotingInterfaces.mjs";
|
|
5
5
|
import type { GridGetRowsResponsePivotColumn } from "./models.mjs";
|