Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat(core): support pivot base views (#7593)

Univerf8652364a4ce
diff --git a/packages/core/src/bases/typedef.ts b/packages/core/src/bases/typedef.ts
index a5cd369d83..a8817c6196 100644
--- a/packages/core/src/bases/typedef.ts
+++ b/packages/core/src/bases/typedef.ts
@@ -158,6 +158,7 @@ export enum BaseViewType {
Calendar = 'calendar',
Gantt = 'gantt',
Gallery = 'gallery',
+ Pivot = 'pivot',
}
export type FieldConfig = Record<string, unknown>;
@@ -702,12 +703,19 @@ export interface IInvalidViewProjection {
fieldId?: FieldId;
}
+/** Marker projection for view types rendered by a registered DOM view renderer. */
+export interface IBaseCustomViewProjection {
+ type: 'custom';
+ viewType: BaseViewType;
+}
+
export type BaseViewProjection =
| IGridProjection
| IKanbanProjection
| ICalendarProjection
| IGanttProjection
| IGalleryProjection
+ | IBaseCustomViewProjection
| IInvalidViewProjection;
export interface IBaseViewport {