neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
@@ -0,0 +1,19 @@
import type { RefObject } from '@mui/x-internals/types';
import type { GridRowId, GridRowModel } from "../gridRows.mjs";
import type { GridColDef } from "../colDef/index.mjs";
/**
* Get the cell aggregation result
* @param {GridRowId} id The row id
* @param {string} field The field
* @returns { { position: 'footer' | 'inline'; value: any } | null } The cell aggregation result
*/
export type GetCellAggregationResultFn = (id: GridRowId, field: string) => {
position: 'footer' | 'inline';
value: any;
formattedValue?: any;
} | null;
export type FilterValueGetterFn = (row: GridRowModel, colDef: GridColDef) => any;
export interface GridAggregationInternalHooks<Api, Props> {
useCellAggregationResult: GetCellAggregationResultFn;
useFilterValueGetter: (apiRef: RefObject<Api>, props: Props) => FilterValueGetterFn;
}
@@ -0,0 +1,19 @@
import type { RefObject } from '@mui/x-internals/types';
import type { GridRowId, GridRowModel } from "../gridRows.js";
import type { GridColDef } from "../colDef/index.js";
/**
* Get the cell aggregation result
* @param {GridRowId} id The row id
* @param {string} field The field
* @returns { { position: 'footer' | 'inline'; value: any } | null } The cell aggregation result
*/
export type GetCellAggregationResultFn = (id: GridRowId, field: string) => {
position: 'footer' | 'inline';
value: any;
formattedValue?: any;
} | null;
export type FilterValueGetterFn = (row: GridRowModel, colDef: GridColDef) => any;
export interface GridAggregationInternalHooks<Api, Props> {
useCellAggregationResult: GetCellAggregationResultFn;
useFilterValueGetter: (apiRef: RefObject<Api>, props: Props) => FilterValueGetterFn;
}
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -0,0 +1 @@
export {};
@@ -0,0 +1,19 @@
import type { RefObject } from '@mui/x-internals/types';
import type { GridPrivateApiCommunity } from "../api/gridApiCommunity.mjs";
import type { DataGridProcessedProps } from "../props/DataGridProps.mjs";
import type { GridEditingApi } from "../api/gridEditingApi.mjs";
/**
* Get the cell editable condition function
* @param {Object} params The cell parameters
* @param {Object} params.rowNode The row node
* @param {Object} params.colDef The column definition
* @param {any} params.value The cell value
* @returns {boolean} Whether the cell is editable
*/
export type CellEditableConditionFn = (params: Parameters<GridEditingApi['isCellEditable']>[0]) => boolean;
/**
* Cell editable configuration interface for internal hooks
*/
export interface GridCellEditableInternalHook<Api = GridPrivateApiCommunity, Props = DataGridProcessedProps> {
useIsCellEditable: (apiRef: RefObject<Api>, props: Props) => CellEditableConditionFn;
}
@@ -0,0 +1,19 @@
import type { RefObject } from '@mui/x-internals/types';
import type { GridPrivateApiCommunity } from "../api/gridApiCommunity.js";
import type { DataGridProcessedProps } from "../props/DataGridProps.js";
import type { GridEditingApi } from "../api/gridEditingApi.js";
/**
* Get the cell editable condition function
* @param {Object} params The cell parameters
* @param {Object} params.rowNode The row node
* @param {Object} params.colDef The column definition
* @param {any} params.value The cell value
* @returns {boolean} Whether the cell is editable
*/
export type CellEditableConditionFn = (params: Parameters<GridEditingApi['isCellEditable']>[0]) => boolean;
/**
* Cell editable configuration interface for internal hooks
*/
export interface GridCellEditableInternalHook<Api = GridPrivateApiCommunity, Props = DataGridProcessedProps> {
useIsCellEditable: (apiRef: RefObject<Api>, props: Props) => CellEditableConditionFn;
}
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -0,0 +1 @@
export {};
@@ -0,0 +1,21 @@
import type * as React from 'react';
import type { GridRowAriaAttributesInternalHook, GridRowsOverridableMethodsInternalHook } from "./gridRowConfiguration.mjs";
import type { GridAggregationInternalHooks } from "./gridAggregationConfiguration.mjs";
import type { GridCellEditableInternalHook } from "./gridCellEditableConfiguration.mjs";
import type { GridCSSVariablesInterface } from "../../constants/cssVariables.mjs";
import type { GridPrivateApiCommon } from "../api/gridApiCommon.mjs";
import type { GridPrivateApiCommunity } from "../api/gridApiCommunity.mjs";
import type { DataGridProcessedProps } from "../props/DataGridProps.mjs";
import type { GridParamsOverridableMethodsInternalHook } from "./gridParamsConfiguration.mjs";
export interface GridAriaAttributesInternalHook {
useGridAriaAttributes: () => React.HTMLAttributes<HTMLElement>;
}
export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api, Props>, GridParamsOverridableMethodsInternalHook<Api> {
useCSSVariables: () => {
id: string;
variables: GridCSSVariablesInterface;
};
}
export interface GridConfiguration<Api extends GridPrivateApiCommon = GridPrivateApiCommunity, Props = DataGridProcessedProps> {
hooks: GridInternalHook<Api, Props>;
}
@@ -0,0 +1,21 @@
import type * as React from 'react';
import type { GridRowAriaAttributesInternalHook, GridRowsOverridableMethodsInternalHook } from "./gridRowConfiguration.js";
import type { GridAggregationInternalHooks } from "./gridAggregationConfiguration.js";
import type { GridCellEditableInternalHook } from "./gridCellEditableConfiguration.js";
import type { GridCSSVariablesInterface } from "../../constants/cssVariables.js";
import type { GridPrivateApiCommon } from "../api/gridApiCommon.js";
import type { GridPrivateApiCommunity } from "../api/gridApiCommunity.js";
import type { DataGridProcessedProps } from "../props/DataGridProps.js";
import type { GridParamsOverridableMethodsInternalHook } from "./gridParamsConfiguration.js";
export interface GridAriaAttributesInternalHook {
useGridAriaAttributes: () => React.HTMLAttributes<HTMLElement>;
}
export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api, Props>, GridParamsOverridableMethodsInternalHook<Api> {
useCSSVariables: () => {
id: string;
variables: GridCSSVariablesInterface;
};
}
export interface GridConfiguration<Api extends GridPrivateApiCommon = GridPrivateApiCommunity, Props = DataGridProcessedProps> {
hooks: GridInternalHook<Api, Props>;
}
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -0,0 +1 @@
export {};
@@ -0,0 +1,12 @@
import type { RefObject } from '@mui/x-internals/types';
import type { GridParamsApi } from "../api/gridParamsApi.mjs";
/**
* Overridable params methods interface, these methods could be overriden in a higher plan package.
*/
export interface GridParamsOverridableMethodsInternalHook<Api> {
useGridParamsOverridableMethods: (apiRef: RefObject<Api>) => {
getCellValue: GridParamsApi['getCellValue'];
getRowValue: GridParamsApi['getRowValue'];
getRowFormattedValue: GridParamsApi['getRowFormattedValue'];
};
}
@@ -0,0 +1,12 @@
import type { RefObject } from '@mui/x-internals/types';
import type { GridParamsApi } from "../api/gridParamsApi.js";
/**
* Overridable params methods interface, these methods could be overriden in a higher plan package.
*/
export interface GridParamsOverridableMethodsInternalHook<Api> {
useGridParamsOverridableMethods: (apiRef: RefObject<Api>) => {
getCellValue: GridParamsApi['getCellValue'];
getRowValue: GridParamsApi['getRowValue'];
getRowFormattedValue: GridParamsApi['getRowFormattedValue'];
};
}
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -0,0 +1 @@
export {};
@@ -0,0 +1,23 @@
import type * as React from 'react';
import type { RefObject } from '@mui/x-internals/types';
import type { GridTreeNode } from "../gridRows.mjs";
import type { GridRowProApi } from "../api/index.mjs";
/**
* Get the ARIA attributes for a row
* @param {GridTreeNode} rowNode The row node
* @param {number} index The position index of the row
* @returns {React.HTMLAttributes<HTMLElement>} The ARIA attributes
*/
export type GetRowAriaAttributesFn = (rowNode: GridTreeNode, index: number) => React.HTMLAttributes<HTMLElement>;
export interface GridRowAriaAttributesInternalHook {
useGridRowAriaAttributes: () => GetRowAriaAttributesFn;
}
/**
* Overridable row methods interface, these methods could be overriden in a higher plan package.
*/
export interface GridRowsOverridableMethodsInternalHook<Api, Props> {
useGridRowsOverridableMethods: (apiRef: RefObject<Api>, props: Props) => {
setRowIndex: GridRowProApi['setRowIndex'];
setRowPosition: GridRowProApi['setRowPosition'];
};
}
@@ -0,0 +1,23 @@
import type * as React from 'react';
import type { RefObject } from '@mui/x-internals/types';
import type { GridTreeNode } from "../gridRows.js";
import type { GridRowProApi } from "../api/index.js";
/**
* Get the ARIA attributes for a row
* @param {GridTreeNode} rowNode The row node
* @param {number} index The position index of the row
* @returns {React.HTMLAttributes<HTMLElement>} The ARIA attributes
*/
export type GetRowAriaAttributesFn = (rowNode: GridTreeNode, index: number) => React.HTMLAttributes<HTMLElement>;
export interface GridRowAriaAttributesInternalHook {
useGridRowAriaAttributes: () => GetRowAriaAttributesFn;
}
/**
* Overridable row methods interface, these methods could be overriden in a higher plan package.
*/
export interface GridRowsOverridableMethodsInternalHook<Api, Props> {
useGridRowsOverridableMethods: (apiRef: RefObject<Api>, props: Props) => {
setRowIndex: GridRowProApi['setRowIndex'];
setRowPosition: GridRowProApi['setRowPosition'];
};
}
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -0,0 +1 @@
export {};