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
+13
View File
@@ -0,0 +1,13 @@
import { float, integer } from '@mui/x-internals/types';
export type ColumnIndex = number;
export type CellColSpanInfo = {
spannedByColSpan: true;
rightVisibleCellIndex: ColumnIndex;
leftVisibleCellIndex: ColumnIndex;
} | {
spannedByColSpan: false;
cellProps: {
colSpan: integer;
width: float;
};
};
+13
View File
@@ -0,0 +1,13 @@
import { float, integer } from '@mui/x-internals/types';
export type ColumnIndex = number;
export type CellColSpanInfo = {
spannedByColSpan: true;
rightVisibleCellIndex: ColumnIndex;
leftVisibleCellIndex: ColumnIndex;
} | {
spannedByColSpan: false;
cellProps: {
colSpan: integer;
width: float;
};
};
+5
View File
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
+1
View File
@@ -0,0 +1 @@
export {};
+85
View File
@@ -0,0 +1,85 @@
export type Size = {
width: number;
height: number;
};
export declare const Size: {
EMPTY: {
width: number;
height: number;
};
equals: (a: Size, b: Size) => boolean;
};
export type Row = {
[key: string | symbol]: any;
};
export type Column = {
[key: string | symbol]: any;
};
export type ColumnWithWidth = {
computedWidth: number;
} & Column;
export type RowId = any;
export type RowEntry = {
id: any;
model: Row;
};
export type PinnedRows = {
top: RowEntry[];
bottom: RowEntry[];
};
export declare const PinnedRows: {
EMPTY: PinnedRows;
};
export type PinnedColumns = {
left: Column[];
right: Column[];
};
export declare const PinnedColumns: {
EMPTY: PinnedColumns;
};
export type FocusedCell = {
rowIndex: number;
columnIndex: number;
id?: any;
field?: string;
};
export interface ColumnsRenderContext {
firstColumnIndex: number;
lastColumnIndex: number;
}
export interface RenderContext extends ColumnsRenderContext {
firstRowIndex: number;
lastRowIndex: number;
}
export interface GridScrollParams {
left: number;
top: number;
renderContext?: RenderContext;
}
export type GridScrollFn = (v: GridScrollParams) => void;
export type PinnedRowPosition = keyof PinnedRows;
export type ScrollPosition = {
top: number;
left: number;
};
export declare const ScrollPosition: {
EMPTY: {
top: number;
left: number;
};
equals: (a: ScrollPosition, b: ScrollPosition) => boolean;
};
export declare enum ScrollDirection {
NONE = 0,
UP = 1,
DOWN = 2,
LEFT = 3,
RIGHT = 4,
}
export declare namespace ScrollDirection {
function forDelta(dx: number, dy: number): ScrollDirection;
}
export type RowRange = {
firstRowIndex: number;
lastRowIndex: number;
};
+85
View File
@@ -0,0 +1,85 @@
export type Size = {
width: number;
height: number;
};
export declare const Size: {
EMPTY: {
width: number;
height: number;
};
equals: (a: Size, b: Size) => boolean;
};
export type Row = {
[key: string | symbol]: any;
};
export type Column = {
[key: string | symbol]: any;
};
export type ColumnWithWidth = {
computedWidth: number;
} & Column;
export type RowId = any;
export type RowEntry = {
id: any;
model: Row;
};
export type PinnedRows = {
top: RowEntry[];
bottom: RowEntry[];
};
export declare const PinnedRows: {
EMPTY: PinnedRows;
};
export type PinnedColumns = {
left: Column[];
right: Column[];
};
export declare const PinnedColumns: {
EMPTY: PinnedColumns;
};
export type FocusedCell = {
rowIndex: number;
columnIndex: number;
id?: any;
field?: string;
};
export interface ColumnsRenderContext {
firstColumnIndex: number;
lastColumnIndex: number;
}
export interface RenderContext extends ColumnsRenderContext {
firstRowIndex: number;
lastRowIndex: number;
}
export interface GridScrollParams {
left: number;
top: number;
renderContext?: RenderContext;
}
export type GridScrollFn = (v: GridScrollParams) => void;
export type PinnedRowPosition = keyof PinnedRows;
export type ScrollPosition = {
top: number;
left: number;
};
export declare const ScrollPosition: {
EMPTY: {
top: number;
left: number;
};
equals: (a: ScrollPosition, b: ScrollPosition) => boolean;
};
export declare enum ScrollDirection {
NONE = 0,
UP = 1,
DOWN = 2,
LEFT = 3,
RIGHT = 4,
}
export declare namespace ScrollDirection {
function forDelta(dx: number, dy: number): ScrollDirection;
}
export type RowRange = {
firstRowIndex: number;
lastRowIndex: number;
};
+68
View File
@@ -0,0 +1,68 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Size = exports.ScrollPosition = exports.ScrollDirection = exports.PinnedRows = exports.PinnedColumns = void 0;
/* eslint-disable @typescript-eslint/no-redeclare */
const Size = exports.Size = {
EMPTY: {
width: 0,
height: 0
},
equals: (a, b) => a.width === b.width && a.height === b.height
};
// TODO
const PinnedRows = exports.PinnedRows = {
EMPTY: {
top: [],
bottom: []
}
};
const PinnedColumns = exports.PinnedColumns = {
EMPTY: {
left: [],
right: []
}
};
const ScrollPosition = exports.ScrollPosition = {
EMPTY: {
top: 0,
left: 0
},
equals: (a, b) => a.top === b.top && a.left === b.left
};
let ScrollDirection = exports.ScrollDirection = /*#__PURE__*/function (ScrollDirection) {
ScrollDirection[ScrollDirection["NONE"] = 0] = "NONE";
ScrollDirection[ScrollDirection["UP"] = 1] = "UP";
ScrollDirection[ScrollDirection["DOWN"] = 2] = "DOWN";
ScrollDirection[ScrollDirection["LEFT"] = 3] = "LEFT";
ScrollDirection[ScrollDirection["RIGHT"] = 4] = "RIGHT";
return ScrollDirection;
}({});
(function (_ScrollDirection) {
function forDelta(dx, dy) {
if (dx === 0 && dy === 0) {
return ScrollDirection.NONE;
}
/* eslint-disable */
if (Math.abs(dy) >= Math.abs(dx)) {
if (dy > 0) {
return ScrollDirection.DOWN;
} else {
return ScrollDirection.UP;
}
} else {
if (dx > 0) {
return ScrollDirection.RIGHT;
} else {
return ScrollDirection.LEFT;
}
}
/* eslint-enable */
}
_ScrollDirection.forDelta = forDelta;
})(ScrollDirection || (exports.ScrollDirection = ScrollDirection = {}));
+62
View File
@@ -0,0 +1,62 @@
/* eslint-disable @typescript-eslint/no-redeclare */
export const Size = {
EMPTY: {
width: 0,
height: 0
},
equals: (a, b) => a.width === b.width && a.height === b.height
};
// TODO
export const PinnedRows = {
EMPTY: {
top: [],
bottom: []
}
};
export const PinnedColumns = {
EMPTY: {
left: [],
right: []
}
};
export const ScrollPosition = {
EMPTY: {
top: 0,
left: 0
},
equals: (a, b) => a.top === b.top && a.left === b.left
};
export let ScrollDirection = /*#__PURE__*/function (ScrollDirection) {
ScrollDirection[ScrollDirection["NONE"] = 0] = "NONE";
ScrollDirection[ScrollDirection["UP"] = 1] = "UP";
ScrollDirection[ScrollDirection["DOWN"] = 2] = "DOWN";
ScrollDirection[ScrollDirection["LEFT"] = 3] = "LEFT";
ScrollDirection[ScrollDirection["RIGHT"] = 4] = "RIGHT";
return ScrollDirection;
}({});
(function (_ScrollDirection) {
function forDelta(dx, dy) {
if (dx === 0 && dy === 0) {
return ScrollDirection.NONE;
}
/* eslint-disable */
if (Math.abs(dy) >= Math.abs(dx)) {
if (dy > 0) {
return ScrollDirection.DOWN;
} else {
return ScrollDirection.UP;
}
} else {
if (dx > 0) {
return ScrollDirection.RIGHT;
} else {
return ScrollDirection.LEFT;
}
}
/* eslint-enable */
}
_ScrollDirection.forDelta = forDelta;
})(ScrollDirection || (ScrollDirection = {}));
+109
View File
@@ -0,0 +1,109 @@
import { Size } from "./core.mjs";
export interface DimensionsState {
/**
* Indicates that the dimensions have been initialized.
*/
isReady: boolean;
/**
* The root container size.
*/
root: Size;
/**
* The viewport size including scrollbars.
*/
viewportOuterSize: Size;
/**
* The viewport size not including scrollbars.
*/
viewportInnerSize: Size;
/**
* The size of the main content (unpinned rows & columns).
*/
contentSize: Size;
/**
* The minimum size to display the grid, including all pinned sections and headers.
*/
minimumSize: Size;
/**
* Indicates if a scroll is currently needed to go from the beginning of the first column to the end of the last column.
*/
hasScrollX: boolean;
/**
* Indicates if a scroll is currently needed to go from the beginning of the first row to the end of the last row.
*/
hasScrollY: boolean;
/**
* Size of the scrollbar used to scroll the rows in pixel.
* It is defined even when the scrollbar is currently not needed.
*/
scrollbarSize: number;
/**
* Width of a row. At least as wide as `viewportOuterSize.width`.
*/
rowWidth: number;
/**
* Height of a row.
*/
rowHeight: number;
/**
* Size of all the columns.
*/
columnsTotalWidth: number;
/**
* Size of left pinned columns.
*/
leftPinnedWidth: number;
/**
* Size of right pinned columns.
*/
rightPinnedWidth: number;
/**
* Size of the top container.
*/
topContainerHeight: number;
/**
* Size of the bottom container.
*/
bottomContainerHeight: number;
/**
* Indicates that the container takes the height of its content.
*/
autoHeight: boolean;
/**
* Minimal height to display the content area.
*/
minimalContentHeight: string | number | undefined;
}
/**
* The rows total height and positions.
*/
export interface RowsMetaState {
/**
* The grid rows positions.
*/
positions: number[];
/**
* The sum of all visible grid rows in the current rows.
*/
currentPageTotalHeight: number;
/**
* The total height of the pinned top rows.
*/
pinnedTopRowsTotalHeight: number;
/**
* The total height of the pinned bottom rows.
*/
pinnedBottomRowsTotalHeight: number;
}
export interface RowSpacing {
top?: number;
bottom?: number;
}
export type HeightEntry = {
content: number;
spacingTop: number;
spacingBottom: number;
detail: number;
autoHeight: boolean;
needsFirstMeasurement: boolean;
};
+109
View File
@@ -0,0 +1,109 @@
import { Size } from "./core.js";
export interface DimensionsState {
/**
* Indicates that the dimensions have been initialized.
*/
isReady: boolean;
/**
* The root container size.
*/
root: Size;
/**
* The viewport size including scrollbars.
*/
viewportOuterSize: Size;
/**
* The viewport size not including scrollbars.
*/
viewportInnerSize: Size;
/**
* The size of the main content (unpinned rows & columns).
*/
contentSize: Size;
/**
* The minimum size to display the grid, including all pinned sections and headers.
*/
minimumSize: Size;
/**
* Indicates if a scroll is currently needed to go from the beginning of the first column to the end of the last column.
*/
hasScrollX: boolean;
/**
* Indicates if a scroll is currently needed to go from the beginning of the first row to the end of the last row.
*/
hasScrollY: boolean;
/**
* Size of the scrollbar used to scroll the rows in pixel.
* It is defined even when the scrollbar is currently not needed.
*/
scrollbarSize: number;
/**
* Width of a row. At least as wide as `viewportOuterSize.width`.
*/
rowWidth: number;
/**
* Height of a row.
*/
rowHeight: number;
/**
* Size of all the columns.
*/
columnsTotalWidth: number;
/**
* Size of left pinned columns.
*/
leftPinnedWidth: number;
/**
* Size of right pinned columns.
*/
rightPinnedWidth: number;
/**
* Size of the top container.
*/
topContainerHeight: number;
/**
* Size of the bottom container.
*/
bottomContainerHeight: number;
/**
* Indicates that the container takes the height of its content.
*/
autoHeight: boolean;
/**
* Minimal height to display the content area.
*/
minimalContentHeight: string | number | undefined;
}
/**
* The rows total height and positions.
*/
export interface RowsMetaState {
/**
* The grid rows positions.
*/
positions: number[];
/**
* The sum of all visible grid rows in the current rows.
*/
currentPageTotalHeight: number;
/**
* The total height of the pinned top rows.
*/
pinnedTopRowsTotalHeight: number;
/**
* The total height of the pinned bottom rows.
*/
pinnedBottomRowsTotalHeight: number;
}
export interface RowSpacing {
top?: number;
bottom?: number;
}
export type HeightEntry = {
content: number;
spacingTop: number;
spacingBottom: number;
detail: number;
autoHeight: boolean;
needsFirstMeasurement: boolean;
};
+5
View File
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
+1
View File
@@ -0,0 +1 @@
export {};
+4
View File
@@ -0,0 +1,4 @@
export * from "./core.mjs";
export * from "./colspan.mjs";
export * from "./dimensions.mjs";
export * from "./rowspan.mjs";
+4
View File
@@ -0,0 +1,4 @@
export * from "./core.js";
export * from "./colspan.js";
export * from "./dimensions.js";
export * from "./rowspan.js";
+49
View File
@@ -0,0 +1,49 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _core = require("./core");
Object.keys(_core).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _core[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _core[key];
}
});
});
var _colspan = require("./colspan");
Object.keys(_colspan).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _colspan[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _colspan[key];
}
});
});
var _dimensions = require("./dimensions");
Object.keys(_dimensions).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _dimensions[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _dimensions[key];
}
});
});
var _rowspan = require("./rowspan");
Object.keys(_rowspan).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _rowspan[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _rowspan[key];
}
});
});
+4
View File
@@ -0,0 +1,4 @@
export * from "./core.mjs";
export * from "./colspan.mjs";
export * from "./dimensions.mjs";
export * from "./rowspan.mjs";
+17
View File
@@ -0,0 +1,17 @@
import { RowId, RowRange } from "./core.mjs";
type ColumnIndex = number;
export interface RowSpanningCaches {
spannedCells: Record<RowId, Record<ColumnIndex, number>>;
hiddenCells: Record<RowId, Record<ColumnIndex, boolean>>;
/**
* For each hidden cell, it contains the row index corresponding to the cell that is
* the origin of the hidden cell. i.e. the cell which is spanned.
* Used by the virtualization to properly keep the spanned cells in view.
*/
hiddenCellOriginMap: Record<number, Record<ColumnIndex, number>>;
}
export interface RowSpanningState {
caches: RowSpanningCaches;
processedRange: RowRange;
}
export {};
+17
View File
@@ -0,0 +1,17 @@
import { RowId, RowRange } from "./core.js";
type ColumnIndex = number;
export interface RowSpanningCaches {
spannedCells: Record<RowId, Record<ColumnIndex, number>>;
hiddenCells: Record<RowId, Record<ColumnIndex, boolean>>;
/**
* For each hidden cell, it contains the row index corresponding to the cell that is
* the origin of the hidden cell. i.e. the cell which is spanned.
* Used by the virtualization to properly keep the spanned cells in view.
*/
hiddenCellOriginMap: Record<number, Record<ColumnIndex, number>>;
}
export interface RowSpanningState {
caches: RowSpanningCaches;
processedRange: RowRange;
}
export {};
+5
View File
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
+1
View File
@@ -0,0 +1 @@
export {};