@univerjs-pro/bases-ui 0.25.0-insiders.20260608-e4336f7
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/README.md +3 -0
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/facade.js +1 -0
- package/lib/index.css +2533 -0
- package/lib/index.js +1 -0
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/commands/operations/activate-table.operation.d.ts +6 -0
- package/lib/types/commands/operations/activate-view.operation.d.ts +6 -0
- package/lib/types/commands/operations/editing.operation.d.ts +9 -0
- package/lib/types/commands/operations/keyboard.operation.d.ts +9 -0
- package/lib/types/commands/operations/scroll.operation.d.ts +7 -0
- package/lib/types/commands/operations/set-selection.operation.d.ts +5 -0
- package/lib/types/commands/operations/toolbar-menu.operation.d.ts +37 -0
- package/lib/types/commands/operations/zoom.operation.d.ts +6 -0
- package/lib/types/components/AddRecordButton.d.ts +6 -0
- package/lib/types/components/BaseAttachmentPreview.d.ts +9 -0
- package/lib/types/components/BaseCellEditors.d.ts +78 -0
- package/lib/types/components/BaseCollaborationStatus.d.ts +24 -0
- package/lib/types/components/BaseColorPalette.d.ts +13 -0
- package/lib/types/components/BaseConfirmDialog.d.ts +12 -0
- package/lib/types/components/BaseIcons.d.ts +19 -0
- package/lib/types/components/BaseMenus.d.ts +593 -0
- package/lib/types/components/BaseNumberInput.d.ts +14 -0
- package/lib/types/components/BaseStandaloneShell.d.ts +139 -0
- package/lib/types/components/BaseToolbar.d.ts +49 -0
- package/lib/types/components/CardCustomizePanel.d.ts +1 -0
- package/lib/types/components/FieldConfigPanel.d.ts +1 -0
- package/lib/types/components/FieldMenu.d.ts +44 -0
- package/lib/types/components/RecordDetailPanel.d.ts +88 -0
- package/lib/types/components/ViewTabs.d.ts +36 -0
- package/lib/types/components/base-formula-library.d.ts +25 -0
- package/lib/types/config/config.d.ts +46 -0
- package/lib/types/controllers/base-keyboard.shortcut.d.ts +9 -0
- package/lib/types/controllers/base-render.controller.d.ts +172 -0
- package/lib/types/controllers/base-theme.controller.d.ts +7 -0
- package/lib/types/controllers/base-ui.controller.d.ts +27 -0
- package/lib/types/controllers/menu.d.ts +3 -0
- package/lib/types/facade/f-base-rendered-view.d.ts +13 -0
- package/lib/types/facade/f-base-ui.d.ts +41 -0
- package/lib/types/facade/f-univer.d.ts +12 -0
- package/lib/types/facade/index.d.ts +3 -0
- package/lib/types/fields/editors/attachment.editor.d.ts +2 -0
- package/lib/types/fields/editors/date.editor.d.ts +2 -0
- package/lib/types/fields/editors/number.editor.d.ts +5 -0
- package/lib/types/fields/editors/person.editor.d.ts +2 -0
- package/lib/types/fields/editors/select.editor.d.ts +3 -0
- package/lib/types/fields/editors/text.editor.d.ts +2 -0
- package/lib/types/fields/field-ui-plugin.d.ts +63 -0
- package/lib/types/fields/renderers/attachment.renderer.d.ts +2 -0
- package/lib/types/fields/renderers/checkbox.renderer.d.ts +2 -0
- package/lib/types/fields/renderers/date.renderer.d.ts +2 -0
- package/lib/types/fields/renderers/number.renderer.d.ts +5 -0
- package/lib/types/fields/renderers/select.renderer.d.ts +3 -0
- package/lib/types/fields/renderers/text.renderer.d.ts +2 -0
- package/lib/types/index.d.ts +67 -0
- package/lib/types/internal.d.ts +11 -0
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +1163 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/formula/ar-SA.d.ts +1 -0
- package/lib/types/locale/formula/ca-ES.d.ts +1 -0
- package/lib/types/locale/formula/de-DE.d.ts +1 -0
- package/lib/types/locale/formula/en-US.d.ts +707 -0
- package/lib/types/locale/formula/es-ES.d.ts +1 -0
- package/lib/types/locale/formula/fa-IR.d.ts +1 -0
- package/lib/types/locale/formula/fr-FR.d.ts +1 -0
- package/lib/types/locale/formula/id-ID.d.ts +1 -0
- package/lib/types/locale/formula/it-IT.d.ts +1 -0
- package/lib/types/locale/formula/ja-JP.d.ts +1 -0
- package/lib/types/locale/formula/ko-KR.d.ts +1 -0
- package/lib/types/locale/formula/pl-PL.d.ts +1 -0
- package/lib/types/locale/formula/pt-BR.d.ts +1 -0
- package/lib/types/locale/formula/ru-RU.d.ts +1 -0
- package/lib/types/locale/formula/sk-SK.d.ts +1 -0
- package/lib/types/locale/formula/vi-VN.d.ts +1 -0
- package/lib/types/locale/formula/zh-CN.d.ts +707 -0
- package/lib/types/locale/formula/zh-HK.d.ts +1 -0
- package/lib/types/locale/formula/zh-TW.d.ts +1 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/menu/schema.d.ts +16 -0
- package/lib/types/plugin.d.ts +18 -0
- package/lib/types/render/base-canvas-render-component.d.ts +19 -0
- package/lib/types/render/base-render-manager.d.ts +17 -0
- package/lib/types/render/base-scene.d.ts +239 -0
- package/lib/types/render/base-view-render-controller.d.ts +285 -0
- package/lib/types/render/canvas-draw-command.d.ts +178 -0
- package/lib/types/render/layers/body.layer.d.ts +2 -0
- package/lib/types/render/layers/drag.layer.d.ts +2 -0
- package/lib/types/render/layers/editor-overlay.layer.d.ts +2 -0
- package/lib/types/render/layers/header.layer.d.ts +2 -0
- package/lib/types/render/layers/selection.layer.d.ts +2 -0
- package/lib/types/search/base-view-search.d.ts +13 -0
- package/lib/types/services/base-attachment-io.service.d.ts +21 -0
- package/lib/types/services/base-clipboard.service.d.ts +21 -0
- package/lib/types/services/base-drag.service.d.ts +19 -0
- package/lib/types/services/base-editor.service.d.ts +20 -0
- package/lib/types/services/base-field-ui-registry.service.d.ts +15 -0
- package/lib/types/services/base-formula-progress.service.d.ts +20 -0
- package/lib/types/services/base-layout.service.d.ts +30 -0
- package/lib/types/services/base-render.service.d.ts +10 -0
- package/lib/types/services/base-selection.service.d.ts +14 -0
- package/lib/types/services/base-ui-popup.service.d.ts +27 -0
- package/lib/types/services/base-ui-state.service.d.ts +156 -0
- package/lib/types/services/base-view-ui-registry.service.d.ts +15 -0
- package/lib/types/services/base-workbench-render.service.d.ts +15 -0
- package/lib/types/views/base-canvas-render-utils.d.ts +258 -0
- package/lib/types/views/base-container/BaseContainer.d.ts +30 -0
- package/lib/types/views/calendar/calendar-layout.d.ts +88 -0
- package/lib/types/views/calendar/calendar-render-controller.d.ts +7 -0
- package/lib/types/views/calendar/calendar-settings-panel.d.ts +1 -0
- package/lib/types/views/gallery/gallery-render-controller.d.ts +7 -0
- package/lib/types/views/gallery/gallery-settings-panel.d.ts +1 -0
- package/lib/types/views/gantt/gantt-layout.d.ts +91 -0
- package/lib/types/views/gantt/gantt-render-controller.d.ts +7 -0
- package/lib/types/views/gantt/gantt-settings-panel.d.ts +1 -0
- package/lib/types/views/grid/grid-render-controller.d.ts +7 -0
- package/lib/types/views/grid/grid-settings-panel.d.ts +1 -0
- package/lib/types/views/kanban/kanban-render-controller.d.ts +7 -0
- package/lib/types/views/kanban/kanban-settings-panel.d.ts +1 -0
- package/lib/types/views/view-ui-plugin.d.ts +26 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -0
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import type { CalendarProjection, GalleryProjection, GanttProjection, GridProjection, KanbanProjection, ProjectedField, ProjectedRow, Viewport } from '@univerjs/core';
|
|
2
|
+
import type { BaseGridFieldIndicator, IBaseCalendarEventDragState, IBaseCalendarKeyboardFocusState, IBaseCanvasScrollbarState, IBaseConditionalColorRule, IBaseGalleryCardDragState, IBaseGanttBarDragState, IBaseGridAddRecordHoverState, IBaseGridFieldDragState, IBaseGridFillPreviewState, IBaseGridRowDragState, IBaseGridSelectionState, IBaseGridVirtualRowState, IBaseKanbanCardDragState } from '../render/base-view-render-controller';
|
|
3
|
+
import type { CanvasDrawCommand, IBaseCanvasHitRegion } from '../render/canvas-draw-command';
|
|
4
|
+
export declare const BASE_CANVAS_COLORS: {
|
|
5
|
+
background: string;
|
|
6
|
+
header: string;
|
|
7
|
+
muted: string;
|
|
8
|
+
text: string;
|
|
9
|
+
line: string;
|
|
10
|
+
softLine: string;
|
|
11
|
+
selected: string;
|
|
12
|
+
accent: string;
|
|
13
|
+
accentSoft: string;
|
|
14
|
+
card: string;
|
|
15
|
+
lane: string;
|
|
16
|
+
calendar: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const GRID_HEADER_HEIGHT = 40;
|
|
19
|
+
export declare const GRID_ROW_HEIGHT = 42;
|
|
20
|
+
export declare const GRID_GROUP_ROW_HEIGHT = 34;
|
|
21
|
+
export declare const GRID_ADD_RECORD_ROW_HEIGHT = 34;
|
|
22
|
+
export declare const GRID_GROUP_GAP_HEIGHT = 10;
|
|
23
|
+
export declare const GRID_SUMMARY_HEIGHT = 42;
|
|
24
|
+
export declare const GRID_DEFAULT_COLUMN_WIDTH = 160;
|
|
25
|
+
export declare const GRID_ADD_FIELD_COLUMN_WIDTH = 88;
|
|
26
|
+
export declare const GRID_CELL_PADDING = 10;
|
|
27
|
+
export declare const GRID_ROW_HEADER_WIDTH = 56;
|
|
28
|
+
export declare function resolveGridRowHeight(rowHeight?: unknown): number;
|
|
29
|
+
export declare function getGridProjectionBodyHeight(projection: GridProjection | GanttProjection, collapsedGroupPaths?: ReadonlySet<string>, rowHeight?: number): number;
|
|
30
|
+
export declare function getGridProjectionVisibleRows(projection: GridProjection | GanttProjection, collapsedGroupPaths?: ReadonlySet<string>): ProjectedRow[];
|
|
31
|
+
export interface IBaseProjectedRowLayoutItem {
|
|
32
|
+
kind: 'group-header' | 'group-gap' | 'record' | 'add-record';
|
|
33
|
+
recordId?: string;
|
|
34
|
+
groupPath?: string;
|
|
35
|
+
groupKey?: string;
|
|
36
|
+
groupLevel?: number;
|
|
37
|
+
groupLabel?: string;
|
|
38
|
+
fieldId?: string;
|
|
39
|
+
rowNumber?: number;
|
|
40
|
+
y: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
export declare function buildBaseProjectedRowLayout(projection: GridProjection | GanttProjection, collapsedGroupPaths?: ReadonlySet<string>, rowHeight?: number): IBaseProjectedRowLayoutItem[];
|
|
44
|
+
export declare function pushBaseBackground(commands: CanvasDrawCommand[], viewport: Viewport): void;
|
|
45
|
+
export declare function drawGridSurface(commands: CanvasDrawCommand[], hitRegions: IBaseCanvasHitRegion[], projection: GridProjection | GanttProjection, ctx: {
|
|
46
|
+
tableId: string;
|
|
47
|
+
viewId: string;
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
selectionType: 'grid-cell' | 'gantt-cell';
|
|
53
|
+
collapsedGroupPaths?: ReadonlySet<string>;
|
|
54
|
+
gridFillPreview?: IBaseGridFillPreviewState | null;
|
|
55
|
+
gridColumnResizeDragX?: number | null;
|
|
56
|
+
gridFreezeDragX?: number | null;
|
|
57
|
+
gridFreezeHoverY?: number | null;
|
|
58
|
+
gridFieldDrag?: IBaseGridFieldDragState | null;
|
|
59
|
+
gridHoverAddField?: boolean;
|
|
60
|
+
gridHoverAddRecordRow?: IBaseGridAddRecordHoverState | null;
|
|
61
|
+
gridHoverFieldId?: string | null;
|
|
62
|
+
gridHoverFieldMenuFieldId?: string | null;
|
|
63
|
+
gridHoverFieldDescriptionFieldId?: string | null;
|
|
64
|
+
gridHoverCellRecordId?: string | null;
|
|
65
|
+
gridHoverCellFieldId?: string | null;
|
|
66
|
+
gridHoverLinkActionRecordId?: string | null;
|
|
67
|
+
gridHoverLinkActionFieldId?: string | null;
|
|
68
|
+
gridAttachmentDropTarget?: {
|
|
69
|
+
viewId: string;
|
|
70
|
+
recordId: string;
|
|
71
|
+
fieldId: string;
|
|
72
|
+
fileName?: string;
|
|
73
|
+
} | null;
|
|
74
|
+
gridHoverRowHeaderRecordId?: string | null;
|
|
75
|
+
gridHoverRecordId?: string | null;
|
|
76
|
+
gridVirtualRows?: IBaseGridVirtualRowState[];
|
|
77
|
+
gridRowDrag?: IBaseGridRowDragState | null;
|
|
78
|
+
gridOpenRecordLabel?: string;
|
|
79
|
+
gridAddRecordLabel?: string;
|
|
80
|
+
gridRecordLabel?: string;
|
|
81
|
+
gridRecordCountLabel?: string;
|
|
82
|
+
gridCalculateLabel?: string;
|
|
83
|
+
gridAttachmentDropLabel?: string;
|
|
84
|
+
gridRatingHover?: {
|
|
85
|
+
viewId: string;
|
|
86
|
+
recordId: string;
|
|
87
|
+
fieldId: string;
|
|
88
|
+
value: number;
|
|
89
|
+
x: number;
|
|
90
|
+
y: number;
|
|
91
|
+
} | null;
|
|
92
|
+
gridRowHeight?: number;
|
|
93
|
+
gridFieldIndicators?: Record<string, BaseGridFieldIndicator[]>;
|
|
94
|
+
gridStatLabels?: Record<string, string>;
|
|
95
|
+
gridSelection?: IBaseGridSelectionState | null;
|
|
96
|
+
gridSearchMatches?: Array<{
|
|
97
|
+
recordId: string;
|
|
98
|
+
fieldId: string;
|
|
99
|
+
}>;
|
|
100
|
+
gridSearchActiveMatch?: {
|
|
101
|
+
recordId: string;
|
|
102
|
+
fieldId: string;
|
|
103
|
+
} | null;
|
|
104
|
+
conditionalColoringRules?: IBaseConditionalColorRule[];
|
|
105
|
+
summaryBarHovered?: boolean;
|
|
106
|
+
scrollX?: number;
|
|
107
|
+
scrollY?: number;
|
|
108
|
+
overscanRows?: number;
|
|
109
|
+
scrollbar?: IBaseCanvasScrollbarState | null;
|
|
110
|
+
showAddFieldColumn?: boolean;
|
|
111
|
+
}): void;
|
|
112
|
+
export declare function getKanbanLaneMaxScroll(projection: KanbanProjection, laneKey: string, viewportHeight: number): number;
|
|
113
|
+
export declare function getKanbanCardScrollTarget(projection: KanbanProjection, recordId: string, viewportWidth: number, viewportHeight: number, options?: {
|
|
114
|
+
currentScrollX?: number;
|
|
115
|
+
currentLaneScrollY?: number;
|
|
116
|
+
}): {
|
|
117
|
+
laneKey: string;
|
|
118
|
+
scrollX: number;
|
|
119
|
+
laneScrollY: number;
|
|
120
|
+
} | null;
|
|
121
|
+
export declare function drawKanban(commands: CanvasDrawCommand[], hitRegions: IBaseCanvasHitRegion[], projection: KanbanProjection, ctx: {
|
|
122
|
+
tableId: string;
|
|
123
|
+
viewId: string;
|
|
124
|
+
viewport: Viewport;
|
|
125
|
+
scrollX?: number;
|
|
126
|
+
scrollY?: number;
|
|
127
|
+
kanbanColumnScroll?: Record<string, number>;
|
|
128
|
+
kanbanLaneScrollbarVisibleKeys?: ReadonlySet<string>;
|
|
129
|
+
kanbanLaneScrollbarHoverKey?: string | null;
|
|
130
|
+
kanbanLaneScrollbarDraggingKey?: string | null;
|
|
131
|
+
kanbanCardDrag?: IBaseKanbanCardDragState | null;
|
|
132
|
+
kanbanHoverRecordId?: string | null;
|
|
133
|
+
kanbanHoverAddRecordGroupKey?: string | null;
|
|
134
|
+
kanbanHoverAddGroup?: boolean;
|
|
135
|
+
kanbanAddRecordLabel?: string;
|
|
136
|
+
kanbanMoveRecordLabel?: string;
|
|
137
|
+
kanbanSearchRecordIds?: string[];
|
|
138
|
+
kanbanSearchActiveRecordId?: string | null;
|
|
139
|
+
gridRatingHover?: {
|
|
140
|
+
viewId: string;
|
|
141
|
+
recordId: string;
|
|
142
|
+
fieldId: string;
|
|
143
|
+
value: number;
|
|
144
|
+
x: number;
|
|
145
|
+
y: number;
|
|
146
|
+
} | null;
|
|
147
|
+
scrollbar?: IBaseCanvasScrollbarState | null;
|
|
148
|
+
}): void;
|
|
149
|
+
export declare function drawCalendar(commands: CanvasDrawCommand[], hitRegions: IBaseCanvasHitRegion[], projection: CalendarProjection, ctx: {
|
|
150
|
+
tableId: string;
|
|
151
|
+
viewId: string;
|
|
152
|
+
viewport: Viewport;
|
|
153
|
+
anchorMs?: number;
|
|
154
|
+
searchRecordIds?: string[];
|
|
155
|
+
searchActiveRecordId?: string | null;
|
|
156
|
+
scrollY?: number;
|
|
157
|
+
allDayScrollY?: number;
|
|
158
|
+
scrollbar?: IBaseCanvasScrollbarState | null;
|
|
159
|
+
hover?: {
|
|
160
|
+
type: string;
|
|
161
|
+
recordId?: string | null;
|
|
162
|
+
mode?: 'day' | 'week' | 'month' | null;
|
|
163
|
+
direction?: 'prev' | 'next' | null;
|
|
164
|
+
dateMs?: number | null;
|
|
165
|
+
edge?: 'start' | 'end' | null;
|
|
166
|
+
} | null;
|
|
167
|
+
calendarEventDrag?: IBaseCalendarEventDragState | null;
|
|
168
|
+
keyboardFocus?: IBaseCalendarKeyboardFocusState | null;
|
|
169
|
+
calendarTodayLabel?: string;
|
|
170
|
+
calendarDayLabel?: string;
|
|
171
|
+
calendarWeekLabel?: string;
|
|
172
|
+
calendarMonthLabel?: string;
|
|
173
|
+
calendarMoreLabel?: string;
|
|
174
|
+
}): void;
|
|
175
|
+
export declare function drawGantt(commands: CanvasDrawCommand[], hitRegions: IBaseCanvasHitRegion[], projection: GanttProjection, ctx: {
|
|
176
|
+
tableId: string;
|
|
177
|
+
viewId: string;
|
|
178
|
+
viewport: Viewport;
|
|
179
|
+
collapsedGroupPaths?: ReadonlySet<string>;
|
|
180
|
+
gridHoverAddRecordRow?: IBaseGridAddRecordHoverState | null;
|
|
181
|
+
gridHoverFieldId?: string | null;
|
|
182
|
+
gridHoverFieldMenuFieldId?: string | null;
|
|
183
|
+
gridHoverFieldDescriptionFieldId?: string | null;
|
|
184
|
+
gridHoverCellRecordId?: string | null;
|
|
185
|
+
gridHoverCellFieldId?: string | null;
|
|
186
|
+
gridHoverLinkActionRecordId?: string | null;
|
|
187
|
+
gridHoverLinkActionFieldId?: string | null;
|
|
188
|
+
gridHoverRowHeaderRecordId?: string | null;
|
|
189
|
+
gridHoverRecordId?: string | null;
|
|
190
|
+
gridRatingHover?: {
|
|
191
|
+
viewId: string;
|
|
192
|
+
recordId: string;
|
|
193
|
+
fieldId: string;
|
|
194
|
+
value: number;
|
|
195
|
+
x: number;
|
|
196
|
+
y: number;
|
|
197
|
+
} | null;
|
|
198
|
+
gridRowDrag?: IBaseGridRowDragState | null;
|
|
199
|
+
gridRowHeight?: number;
|
|
200
|
+
gridFieldIndicators?: Record<string, BaseGridFieldIndicator[]>;
|
|
201
|
+
gridSelection?: IBaseGridSelectionState | null;
|
|
202
|
+
gridAddRecordLabel?: string;
|
|
203
|
+
gridRecordLabel?: string;
|
|
204
|
+
gridRecordCountLabel?: string;
|
|
205
|
+
gridCalculateLabel?: string;
|
|
206
|
+
gridAttachmentDropLabel?: string;
|
|
207
|
+
ganttFieldsLabel?: string;
|
|
208
|
+
ganttTodayLabel?: string;
|
|
209
|
+
ganttWeekLabel?: string;
|
|
210
|
+
ganttMonthLabel?: string;
|
|
211
|
+
ganttQuarterLabel?: string;
|
|
212
|
+
ganttYearLabel?: string;
|
|
213
|
+
conditionalColoringRules?: IBaseConditionalColorRule[];
|
|
214
|
+
scrollX?: number;
|
|
215
|
+
scrollY?: number;
|
|
216
|
+
ganttLeftPaneScrollX?: number;
|
|
217
|
+
overscanRows?: number;
|
|
218
|
+
scrollbar?: IBaseCanvasScrollbarState | null;
|
|
219
|
+
ganttSearchRecordIds?: string[];
|
|
220
|
+
ganttSearchActiveRecordId?: string | null;
|
|
221
|
+
ganttHover?: {
|
|
222
|
+
type: string;
|
|
223
|
+
recordId?: string | null;
|
|
224
|
+
scale?: 'week' | 'month' | 'quarter' | 'year' | null;
|
|
225
|
+
direction?: 'prev' | 'next' | null;
|
|
226
|
+
start?: number | null;
|
|
227
|
+
end?: number | null;
|
|
228
|
+
} | null;
|
|
229
|
+
ganttBarDrag?: IBaseGanttBarDragState | null;
|
|
230
|
+
}): void;
|
|
231
|
+
export declare function getGalleryProjectionBodyHeight(projection: GalleryProjection, viewportWidth: number): number;
|
|
232
|
+
export declare function getCalendarProjectionBodyHeight(projection: CalendarProjection, viewport: Viewport, anchorMs?: number): number;
|
|
233
|
+
export declare function getGalleryCardScrollTarget(projection: GalleryProjection, recordId: string, viewportWidth: number, viewportHeight: number, options?: {
|
|
234
|
+
currentScrollY?: number;
|
|
235
|
+
}): {
|
|
236
|
+
scrollY: number;
|
|
237
|
+
} | null;
|
|
238
|
+
export declare function drawGallery(commands: CanvasDrawCommand[], hitRegions: IBaseCanvasHitRegion[], projection: GalleryProjection, ctx: {
|
|
239
|
+
tableId: string;
|
|
240
|
+
viewId: string;
|
|
241
|
+
viewport: Viewport;
|
|
242
|
+
scrollY?: number;
|
|
243
|
+
galleryHoverRecordId?: string | null;
|
|
244
|
+
galleryCardDrag?: IBaseGalleryCardDragState | null;
|
|
245
|
+
gallerySearchRecordIds?: string[];
|
|
246
|
+
gallerySearchActiveRecordId?: string | null;
|
|
247
|
+
gridRatingHover?: {
|
|
248
|
+
viewId: string;
|
|
249
|
+
recordId: string;
|
|
250
|
+
fieldId: string;
|
|
251
|
+
value: number;
|
|
252
|
+
x: number;
|
|
253
|
+
y: number;
|
|
254
|
+
} | null;
|
|
255
|
+
scrollbar?: IBaseCanvasScrollbarState | null;
|
|
256
|
+
}): void;
|
|
257
|
+
export declare function getFieldWidth(field: ProjectedField): number;
|
|
258
|
+
export declare function cellText(value: unknown): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BaseDataModel, IFieldSnapshot, IRecordSnapshot, ITableSnapshot, IViewSnapshot } from '@univerjs/core';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import type { IBaseCellEditorOption } from '../../components/BaseCellEditors';
|
|
4
|
+
import type { IBasePeopleOption } from '../../components/BaseMenus';
|
|
5
|
+
import type { BaseUIStateService } from '../../services/base-ui-state.service';
|
|
6
|
+
import { IBaseProjectionService } from '@univerjs-pro/bases';
|
|
7
|
+
import { ICommandService } from '@univerjs/core';
|
|
8
|
+
export interface IBaseWorkbenchContext {
|
|
9
|
+
base: BaseDataModel;
|
|
10
|
+
table: ITableSnapshot;
|
|
11
|
+
view: IViewSnapshot;
|
|
12
|
+
}
|
|
13
|
+
export declare function restoreBaseCanvasKeyboardFocus(): void;
|
|
14
|
+
export declare function isBaseActiveCellEditorHostOrFloatingTarget(event: globalThis.MouseEvent, activeEditor: Element | null): boolean;
|
|
15
|
+
export declare function RenderBaseHeader(): import("react").JSX.Element | null;
|
|
16
|
+
export declare function RenderBaseHeaderMenu(): import("react").JSX.Element | null;
|
|
17
|
+
export declare function createAndOpenBaseDraftRecord(context: IBaseWorkbenchContext, projectionService: IBaseProjectionService, stateService: BaseUIStateService, commandService: Pick<ICommandService, 'executeCommand'>, values: Record<string, unknown>): Promise<IRecordSnapshot | null>;
|
|
18
|
+
export declare function RenderBaseLeftSidebar(): import("react").JSX.Element | null;
|
|
19
|
+
export declare function RenderBaseContent(): import("react").JSX.Element | null;
|
|
20
|
+
export declare function RenderBaseActiveCellEditor(): import("react").JSX.Element | null;
|
|
21
|
+
export declare function RenderBaseWorkbench(): import("react").JSX.Element;
|
|
22
|
+
export declare function getBaseActiveCellEditorStyle(field: Pick<IFieldSnapshot, 'type'>, rect: {
|
|
23
|
+
top: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}, editorLeft: number, editorWidth: number, hostWidth?: number, hostHeight?: number): CSSProperties;
|
|
26
|
+
export declare function resolveInlineEditorOptions(field: IFieldSnapshot, personOptions?: IBasePeopleOption[], groupOptions?: IBasePeopleOption[], value?: unknown): IBaseCellEditorOption[];
|
|
27
|
+
export declare function RenderBaseCalendarRecordPopover(): import("react").JSX.Element | null;
|
|
28
|
+
export declare function RenderBaseFooter(): import("react").JSX.Element | null;
|
|
29
|
+
export declare function RenderBaseGlobal(): import("react").JSX.Element;
|
|
30
|
+
export declare function RenderBaseRecordDetailSidebar(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { CalendarProjection, RecordId, Rect, Viewport } from '@univerjs/core';
|
|
2
|
+
export type CalendarLayoutMode = 'day' | 'week' | 'month';
|
|
3
|
+
export interface ICalendarLayoutOptions {
|
|
4
|
+
anchorMs?: number;
|
|
5
|
+
nowMs?: number;
|
|
6
|
+
draftEvent?: ICalendarDraftEvent | null;
|
|
7
|
+
timeScrollY?: number;
|
|
8
|
+
allDayScrollY?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ICalendarDraftEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
startMs: number;
|
|
14
|
+
endMs?: number;
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ICalendarLayoutColumn {
|
|
18
|
+
key: string;
|
|
19
|
+
label: string;
|
|
20
|
+
dateLabel: string;
|
|
21
|
+
startMs: number;
|
|
22
|
+
endMs: number;
|
|
23
|
+
rect: Rect;
|
|
24
|
+
headerRect: Rect;
|
|
25
|
+
isToday: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ICalendarLayoutEvent {
|
|
28
|
+
recordId: RecordId;
|
|
29
|
+
title: string;
|
|
30
|
+
color: string;
|
|
31
|
+
rect: Rect;
|
|
32
|
+
columnKey: string;
|
|
33
|
+
allDay: boolean;
|
|
34
|
+
continuesBefore?: boolean;
|
|
35
|
+
continuesAfter?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface ICalendarLayoutMore {
|
|
38
|
+
key: string;
|
|
39
|
+
dateMs: number;
|
|
40
|
+
count: number;
|
|
41
|
+
rect: Rect;
|
|
42
|
+
items: ICalendarLayoutMoreItem[];
|
|
43
|
+
}
|
|
44
|
+
export interface ICalendarLayoutMoreItem {
|
|
45
|
+
recordId: RecordId;
|
|
46
|
+
title: string;
|
|
47
|
+
color: string;
|
|
48
|
+
continuesBefore?: boolean;
|
|
49
|
+
continuesAfter?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface ICalendarTempLayoutEvent {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
color: string;
|
|
55
|
+
rect: Rect;
|
|
56
|
+
rects?: Rect[];
|
|
57
|
+
}
|
|
58
|
+
export interface ICalendarCurrentTimeIndicator {
|
|
59
|
+
y: number;
|
|
60
|
+
dotX: number;
|
|
61
|
+
lineStartX: number;
|
|
62
|
+
lineEndX: number;
|
|
63
|
+
columnKey: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ICalendarLayout {
|
|
66
|
+
mode: CalendarLayoutMode;
|
|
67
|
+
headerHeight: number;
|
|
68
|
+
contentRect: Rect;
|
|
69
|
+
dayHeaderRect?: Rect;
|
|
70
|
+
allDayRect?: Rect;
|
|
71
|
+
timeBodyRect?: Rect;
|
|
72
|
+
allDayContentHeight?: number;
|
|
73
|
+
timeContentHeight?: number;
|
|
74
|
+
timeScaleHeight?: number;
|
|
75
|
+
timeTopPadding?: number;
|
|
76
|
+
timeBottomPadding?: number;
|
|
77
|
+
title: string;
|
|
78
|
+
columns: ICalendarLayoutColumn[];
|
|
79
|
+
timeSlots: Array<{
|
|
80
|
+
label: string;
|
|
81
|
+
y: number;
|
|
82
|
+
}>;
|
|
83
|
+
events: ICalendarLayoutEvent[];
|
|
84
|
+
moreEvents: ICalendarLayoutMore[];
|
|
85
|
+
currentTimeIndicator?: ICalendarCurrentTimeIndicator;
|
|
86
|
+
tempEvent?: ICalendarTempLayoutEvent;
|
|
87
|
+
}
|
|
88
|
+
export declare function buildCalendarLayout(projection: CalendarProjection, viewport: Viewport, options?: ICalendarLayoutOptions): ICalendarLayout;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CalendarProjection } from '@univerjs/core';
|
|
2
|
+
import type { IBaseCanvasRenderLayer } from '../../render/base-view-render-controller';
|
|
3
|
+
import { CanvasBaseViewRenderController } from '../../render/base-view-render-controller';
|
|
4
|
+
export declare class CalendarRenderController extends CanvasBaseViewRenderController<CalendarProjection> {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildRenderLayers(projection: CalendarProjection): IBaseCanvasRenderLayer[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CalendarSettingsPanel(): null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GalleryProjection } from '@univerjs/core';
|
|
2
|
+
import type { IBaseCanvasRenderLayer } from '../../render/base-view-render-controller';
|
|
3
|
+
import { CanvasBaseViewRenderController } from '../../render/base-view-render-controller';
|
|
4
|
+
export declare class GalleryRenderController extends CanvasBaseViewRenderController<GalleryProjection> {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildRenderLayers(projection: GalleryProjection): IBaseCanvasRenderLayer[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GallerySettingsPanel(): null;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { GanttProjection, Rect, Viewport } from '@univerjs/core';
|
|
2
|
+
import type { IBaseProjectedRowLayoutItem } from '../base-canvas-render-utils';
|
|
3
|
+
export type GanttTimelineScale = GanttProjection['timeline']['scale'];
|
|
4
|
+
export interface IGanttLayoutColumn {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
majorLabel?: string;
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
10
|
+
rect: Rect;
|
|
11
|
+
nonWorking?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface IGanttLayoutMajorHeader {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
start: number;
|
|
17
|
+
end: number;
|
|
18
|
+
rect: Rect;
|
|
19
|
+
}
|
|
20
|
+
export interface IGanttLayoutBar {
|
|
21
|
+
recordId: string;
|
|
22
|
+
title: string;
|
|
23
|
+
start: number;
|
|
24
|
+
end: number;
|
|
25
|
+
color: string;
|
|
26
|
+
progress?: number;
|
|
27
|
+
workingDayCount?: number;
|
|
28
|
+
rect: Rect;
|
|
29
|
+
row: IBaseProjectedRowLayoutItem;
|
|
30
|
+
labelInside: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface IGanttLayout {
|
|
33
|
+
leftPane: Rect;
|
|
34
|
+
timeline: Rect;
|
|
35
|
+
timelineHeader: Rect;
|
|
36
|
+
timelineMajorHeader: Rect;
|
|
37
|
+
timelineMinorHeader: Rect;
|
|
38
|
+
timelineBody: Rect;
|
|
39
|
+
collapseButton: Rect;
|
|
40
|
+
controls: {
|
|
41
|
+
scale: Array<{
|
|
42
|
+
scale: GanttTimelineScale;
|
|
43
|
+
rect: Rect;
|
|
44
|
+
active: boolean;
|
|
45
|
+
label: string;
|
|
46
|
+
}>;
|
|
47
|
+
today: Rect;
|
|
48
|
+
prev: Rect;
|
|
49
|
+
next: Rect;
|
|
50
|
+
};
|
|
51
|
+
rowLayout: IBaseProjectedRowLayoutItem[];
|
|
52
|
+
visibleRows: IBaseProjectedRowLayoutItem[];
|
|
53
|
+
columns: IGanttLayoutColumn[];
|
|
54
|
+
majorHeaders: IGanttLayoutMajorHeader[];
|
|
55
|
+
bars: IGanttLayoutBar[];
|
|
56
|
+
totalTimelineWidth: number;
|
|
57
|
+
maxScrollX: number;
|
|
58
|
+
maxScrollY: number;
|
|
59
|
+
headerHeight: number;
|
|
60
|
+
}
|
|
61
|
+
export interface IGanttLayoutOptions {
|
|
62
|
+
viewport: Viewport;
|
|
63
|
+
rowLayout: IBaseProjectedRowLayoutItem[];
|
|
64
|
+
scrollX?: number;
|
|
65
|
+
scrollY?: number;
|
|
66
|
+
rowOverscanPx?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface IGanttBarScrollTarget {
|
|
69
|
+
scrollX: number;
|
|
70
|
+
scrollY: number;
|
|
71
|
+
}
|
|
72
|
+
export interface IGanttInitialScrollOptions {
|
|
73
|
+
rowLayout?: IBaseProjectedRowLayoutItem[];
|
|
74
|
+
scrollY?: number;
|
|
75
|
+
}
|
|
76
|
+
export declare function getGanttBarsByRecordId(projection: GanttProjection): Map<string, GanttProjection['bars'][number]>;
|
|
77
|
+
export declare function getGanttBarDisplayEnd(bar: Pick<GanttProjection['bars'][number], 'start' | 'end'>, _projection: GanttProjection): number;
|
|
78
|
+
export declare function getGanttBarDisplayStart(bar: Pick<GanttProjection['bars'][number], 'start' | 'end'>): number;
|
|
79
|
+
export declare function getGanttFieldRangeFromDisplayRange(start: number, end: number, _projection: GanttProjection): {
|
|
80
|
+
start: number;
|
|
81
|
+
end: number;
|
|
82
|
+
};
|
|
83
|
+
export declare function buildGanttLayout(projection: GanttProjection, options: IGanttLayoutOptions): IGanttLayout;
|
|
84
|
+
export declare function getGanttLeftPaneWidth(projection: GanttProjection, viewportWidth: number): number;
|
|
85
|
+
export declare function snapGanttTime(value: number, projection: GanttProjection): number;
|
|
86
|
+
export declare function ganttXToTime(x: number, projection: GanttProjection, timelineX: number, unitWidth: number, scrollX: number): number;
|
|
87
|
+
export declare function getGanttBarScrollTarget(projection: GanttProjection, recordId: string, viewport: Viewport, rowLayout: IBaseProjectedRowLayoutItem[], options?: {
|
|
88
|
+
currentScrollX?: number;
|
|
89
|
+
currentScrollY?: number;
|
|
90
|
+
}): IGanttBarScrollTarget | null;
|
|
91
|
+
export declare function getGanttInitialScrollX(projection: GanttProjection, viewport: Viewport, options?: IGanttInitialScrollOptions): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GanttProjection } from '@univerjs/core';
|
|
2
|
+
import type { IBaseCanvasRenderLayer } from '../../render/base-view-render-controller';
|
|
3
|
+
import { CanvasBaseViewRenderController } from '../../render/base-view-render-controller';
|
|
4
|
+
export declare class GanttRenderController extends CanvasBaseViewRenderController<GanttProjection> {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildRenderLayers(projection: GanttProjection): IBaseCanvasRenderLayer[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GanttSettingsPanel(): null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GridProjection } from '@univerjs/core';
|
|
2
|
+
import type { IBaseCanvasRenderLayer } from '../../render/base-view-render-controller';
|
|
3
|
+
import { CanvasBaseViewRenderController } from '../../render/base-view-render-controller';
|
|
4
|
+
export declare class GridRenderController extends CanvasBaseViewRenderController<GridProjection> {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildRenderLayers(projection: GridProjection): IBaseCanvasRenderLayer[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GridSettingsPanel(): null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { KanbanProjection } from '@univerjs/core';
|
|
2
|
+
import type { IBaseCanvasRenderLayer } from '../../render/base-view-render-controller';
|
|
3
|
+
import { CanvasBaseViewRenderController } from '../../render/base-view-render-controller';
|
|
4
|
+
export declare class KanbanRenderController extends CanvasBaseViewRenderController<KanbanProjection> {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildRenderLayers(projection: KanbanProjection): IBaseCanvasRenderLayer[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function KanbanSettingsPanel(): null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { BaseViewProjection, ViewType } from '@univerjs/core';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
import type { BaseViewRenderController } from '../render/base-view-render-controller';
|
|
4
|
+
export interface IViewRenderContext {
|
|
5
|
+
unitId: string;
|
|
6
|
+
tableId: string;
|
|
7
|
+
viewId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IViewSettingsPanelContext {
|
|
10
|
+
viewId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IViewToolbarContext {
|
|
13
|
+
viewId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IToolbarItem {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IViewUIPlugin<TProjection extends BaseViewProjection = BaseViewProjection> {
|
|
20
|
+
type: ViewType;
|
|
21
|
+
icon: ComponentType;
|
|
22
|
+
createRenderController(ctx: IViewRenderContext): BaseViewRenderController<TProjection>;
|
|
23
|
+
createSettingsPanel(ctx: IViewSettingsPanelContext): ComponentType;
|
|
24
|
+
createToolbarItems?(ctx: IViewToolbarContext): IToolbarItem[];
|
|
25
|
+
}
|
|
26
|
+
export declare function createCoreViewUIPlugins(): IViewUIPlugin[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x31ddd2,_0x5ac913){var _0x56c019=_0x4f44,_0xa24119=_0x31ddd2();while(!![]){try{var _0x50cdbe=parseInt(_0x56c019(0x1be))/0x1+parseInt(_0x56c019(0x18f))/0x2*(parseInt(_0x56c019(0x188))/0x3)+-parseInt(_0x56c019(0x1fb))/0x4+-parseInt(_0x56c019(0x1cd))/0x5+-parseInt(_0x56c019(0x1e2))/0x6*(parseInt(_0x56c019(0x1c7))/0x7)+-parseInt(_0x56c019(0x1e6))/0x8*(parseInt(_0x56c019(0x192))/0x9)+-parseInt(_0x56c019(0x18a))/0xa*(-parseInt(_0x56c019(0x171))/0xb);if(_0x50cdbe===_0x5ac913)break;else _0xa24119['push'](_0xa24119['shift']());}catch(_0x1a76a1){_0xa24119['push'](_0xa24119['shift']());}}}(_0x302e,0x46f52),function(_0x2a3c1e,_0x365019){var _0x1173a2=_0x4f44;typeof exports==_0x1173a2(0x175)&&typeof module<'u'?_0x365019(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/core/facade')):typeof define==_0x1173a2(0x209)&&define[_0x1173a2(0x1b1)]?define(['exports',_0x1173a2(0x179),_0x1173a2(0x1af),_0x1173a2(0x183)],_0x365019):(_0x2a3c1e=typeof globalThis<'u'?globalThis:_0x2a3c1e||self,_0x365019(_0x2a3c1e[_0x1173a2(0x208)]={},_0x2a3c1e[_0x1173a2(0x1ac)],_0x2a3c1e['rxjs'],_0x2a3c1e[_0x1173a2(0x17a)]));}(this,function(_0x557ef5,_0xd2e039,_0x9a8dc9,_0x39f289){var _0x1ffb69=_0x4f44;Object[_0x1ffb69(0x189)](_0x557ef5,Symbol[_0x1ffb69(0x202)],{'value':_0x1ffb69(0x195)});var _0x53a737=class{constructor(_0x48cb58,_0x40b460,_0x428c00){var _0x332653=_0x1ffb69;this[_0x332653(0x1ec)]=_0x48cb58,this[_0x332653(0x1bf)]=_0x40b460,this[_0x332653(0x182)]=_0x428c00;}[_0x1ffb69(0x184)](){var _0x314261=_0x1ffb69;return this[_0x314261(0x1ec)];}['getViewType'](){var _0x55b1ff=_0x1ffb69;return this[_0x55b1ff(0x1bf)];}[_0x1ffb69(0x173)](){return{'x':0x0,'y':0x0,'width':0x0,'height':0x0};}['refresh'](){var _0x2e9b75=_0x1ffb69;this['_controller'][_0x2e9b75(0x1e7)]();}[_0x1ffb69(0x1e9)](_0x3ba303,_0xb5877b){var _0x2deeed=_0x1ffb69;return this[_0x2deeed(0x182)]['hitTest'](_0x3ba303,_0xb5877b);}};function _0x48453c(_0x557a40){'@babel/helpers - typeof';var _0x49e1de=_0x1ffb69;return _0x48453c=typeof Symbol==_0x49e1de(0x209)&&typeof Symbol[_0x49e1de(0x178)]=='symbol'?function(_0xe4ebed){return typeof _0xe4ebed;}:function(_0x2cf9d5){var _0x5a64bc=_0x49e1de;return _0x2cf9d5&&typeof Symbol==_0x5a64bc(0x209)&&_0x2cf9d5[_0x5a64bc(0x1e5)]===Symbol&&_0x2cf9d5!==Symbol[_0x5a64bc(0x1fd)]?'symbol':typeof _0x2cf9d5;},_0x48453c(_0x557a40);}function _0x5f4800(_0x394875,_0x5867fd){var _0x45e50f=_0x1ffb69;if(_0x48453c(_0x394875)!=_0x45e50f(0x175)||!_0x394875)return _0x394875;var _0x5ec440=_0x394875[Symbol['toPrimitive']];if(_0x5ec440!==void 0x0){var _0x4435cf=_0x5ec440[_0x45e50f(0x19a)](_0x394875,_0x5867fd||'default');if(_0x48453c(_0x4435cf)!=_0x45e50f(0x175))return _0x4435cf;throw TypeError(_0x45e50f(0x1d6));}return(_0x5867fd===_0x45e50f(0x1e3)?String:Number)(_0x394875);}function _0x1199d6(_0x4458cb){var _0x577fbb=_0x1ffb69,_0x5a1156=_0x5f4800(_0x4458cb,_0x577fbb(0x1e3));return _0x48453c(_0x5a1156)==_0x577fbb(0x1ae)?_0x5a1156:_0x5a1156+'';}function _0x6f43ed(_0x59ea31,_0x481705,_0x1a8abd){var _0x34189f=_0x1ffb69;return(_0x481705=_0x1199d6(_0x481705))in _0x59ea31?Object[_0x34189f(0x189)](_0x59ea31,_0x481705,{'value':_0x1a8abd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59ea31[_0x481705]=_0x1a8abd,_0x59ea31;}let _0x49de82=(0x0,_0xd2e039[_0x1ffb69(0x177)])(_0x1ffb69(0x186));var _0xbecf41=class extends _0xd2e039['Disposable']{constructor(..._0xe8fba){var _0x4dd7ef=_0x1ffb69;super(..._0xe8fba),_0x6f43ed(this,'_deferredEmitHandle',null),_0x6f43ed(this,_0x4dd7ef(0x1a2),{'scrollState':{},'zoomState':{},'calendarAnchorState':{},'calendarAllDayScrollState':{},'collapsedGroupPaths':{},'kanbanColumnScrollState':{},'ganttLeftPaneScrollState':{},'search':{'open':!0x1,'query':'','activeIndex':null},'openPanels':{},'sidebars':{},'layout':{}}),_0x6f43ed(this,'state$',new _0x9a8dc9[(_0x4dd7ef(0x1b2))](this['_state']));}[_0x1ffb69(0x1c2)](){var _0x3f3e00=_0x1ffb69;return this[_0x3f3e00(0x1a2)];}[_0x1ffb69(0x1d3)](_0xb930aa){var _0x3841a1=_0x1ffb69;this['_state'][_0x3841a1(0x17f)]=_0xb930aa,this[_0x3841a1(0x1ef)](),this['_emit']();}[_0x1ffb69(0x20a)](_0x48dd46){var _0x4c921c=_0x1ffb69;this[_0x4c921c(0x1a2)]['activeViewId']=_0x48dd46,this[_0x4c921c(0x1ef)](),this['_emit']();}[_0x1ffb69(0x1d4)](_0x17803f){var _0xfa7795=_0x1ffb69;this[_0xfa7795(0x1a2)][_0xfa7795(0x1d8)]=_0x17803f,this[_0xfa7795(0x19c)]();}[_0x1ffb69(0x1ca)](){var _0x2bb7fa=_0x1ffb69;this[_0x2bb7fa(0x198)](),super[_0x2bb7fa(0x1ca)]();}[_0x1ffb69(0x1f2)](_0x768ddf,_0x5c1888,_0x167cf5){var _0x279563=_0x1ffb69;this[_0x279563(0x1a2)][_0x279563(0x1a4)][_0x768ddf]=_0x5c1888,this[_0x279563(0x1bb)](_0x167cf5);}['setZoom'](_0x569f3d,_0x4d9816){var _0x4f6eb9=_0x1ffb69;this[_0x4f6eb9(0x1a2)][_0x4f6eb9(0x1ab)][_0x569f3d]=Math[_0x4f6eb9(0x174)](0x4,Math[_0x4f6eb9(0x1fc)](0.25,_0x4d9816)),this[_0x4f6eb9(0x19c)]();}[_0x1ffb69(0x1f1)](_0x24df8d,_0x5f2c2b){var _0x40c84b=_0x1ffb69;this[_0x40c84b(0x1a2)][_0x40c84b(0x19e)][_0x24df8d]=_0x5f2c2b,this[_0x40c84b(0x1a2)][_0x40c84b(0x1d1)][_0x24df8d]=0x0,this[_0x40c84b(0x19c)]();}[_0x1ffb69(0x1a1)](_0x525b8a,_0x1960c4,_0x4cca84){var _0x2df792=_0x1ffb69;this[_0x2df792(0x1a2)]['calendarAllDayScrollState'][_0x525b8a]=Math[_0x2df792(0x1fc)](0x0,_0x1960c4),this[_0x2df792(0x1bb)](_0x4cca84);}[_0x1ffb69(0x1b5)](_0x3b98fe){var _0x17e706=_0x1ffb69,_0x447e7b;return(_0x447e7b=this[_0x17e706(0x1a2)]['collapsedGroupPaths'][_0x3b98fe])==null?new Set():_0x447e7b;}[_0x1ffb69(0x193)](_0x30f393,_0x4593fb){var _0xe0f88b=_0x1ffb69,_0x2a159a;if(!_0x4593fb)return;let _0x5993f0=(_0x2a159a=this[_0xe0f88b(0x1a2)]['collapsedGroupPaths'][_0x30f393])==null?new Set():_0x2a159a,_0x3cc6a0=new Set(_0x5993f0);_0x3cc6a0[_0xe0f88b(0x1de)](_0x4593fb)?_0x3cc6a0['delete'](_0x4593fb):_0x3cc6a0[_0xe0f88b(0x1ce)](_0x4593fb),this[_0xe0f88b(0x1a2)]['collapsedGroupPaths'][_0x30f393]=_0x3cc6a0,this[_0xe0f88b(0x19c)]();}[_0x1ffb69(0x1f4)](_0x341aaf,_0x2c94fe,_0x5ae570){var _0x303b6f=_0x1ffb69,_0x242366;this[_0x303b6f(0x1a2)][_0x303b6f(0x19b)][_0x341aaf]={...(_0x242366=this['_state'][_0x303b6f(0x19b)][_0x341aaf])==null?{}:_0x242366,[_0x2c94fe]:Math['max'](0x0,_0x5ae570)},this[_0x303b6f(0x19c)]();}['setKanbanColumnScrollMap'](_0x3fdc5a,_0x5e4c79){var _0x979903=_0x1ffb69;this[_0x979903(0x1a2)][_0x979903(0x19b)][_0x3fdc5a]=Object[_0x979903(0x204)](Object[_0x979903(0x1b8)](_0x5e4c79)[_0x979903(0x1a7)](([_0x4ed359,_0x1b1377])=>[_0x4ed359,Math[_0x979903(0x1fc)](0x0,_0x1b1377)])),this['_emit']();}[_0x1ffb69(0x1e4)](_0x20f8d7,_0x26116c,_0x2bdc96){var _0x168e3f=_0x1ffb69;this[_0x168e3f(0x1a2)][_0x168e3f(0x205)][_0x20f8d7]=Math[_0x168e3f(0x1fc)](0x0,_0x26116c),this[_0x168e3f(0x1bb)](_0x2bdc96);}[_0x1ffb69(0x1c1)](){var _0x2e08e8=_0x1ffb69;this[_0x2e08e8(0x1a2)][_0x2e08e8(0x1cc)]['open']=!0x0,this[_0x2e08e8(0x19c)]();}['closeSearch'](){var _0x2593c5=_0x1ffb69;this[_0x2593c5(0x1ef)](),this[_0x2593c5(0x19c)]();}['setSearchQuery'](_0x5d3560){var _0x1d927b=_0x1ffb69;this[_0x1d927b(0x1a2)][_0x1d927b(0x1cc)]['open']=!0x0,this[_0x1d927b(0x1a2)][_0x1d927b(0x1cc)]['query']=_0x5d3560,this['_state'][_0x1d927b(0x1cc)][_0x1d927b(0x19d)]=null,this['_emit']();}['setSearchActiveIndex'](_0x66baf4){var _0x393949=_0x1ffb69;this[_0x393949(0x1a2)][_0x393949(0x1cc)][_0x393949(0x19d)]=_0x66baf4,this[_0x393949(0x19c)]();}[_0x1ffb69(0x199)](_0x9026b6,_0x2c92e2){var _0x5375ff=_0x1ffb69;_0x2c92e2!=null&&_0x2c92e2[_0x5375ff(0x1dc)]||(delete this['_state'][_0x5375ff(0x1cf)][_0x5375ff(0x1b9)],delete this[_0x5375ff(0x1a2)][_0x5375ff(0x1cf)]['calendarMoreRecordPopover']),this[_0x5375ff(0x1a2)]['openPanels']['recordDetail']={'mode':_0x5375ff(0x1f5),'recordId':_0x9026b6},this[_0x5375ff(0x1a2)][_0x5375ff(0x1c4)][_0x5375ff(0x1ee)]=!0x0,this[_0x5375ff(0x19c)]();}[_0x1ffb69(0x196)](_0x1c9886={}){var _0x536301=_0x1ffb69;delete this[_0x536301(0x1a2)]['openPanels']['calendarRecordPopover'],delete this['_state'][_0x536301(0x1cf)]['calendarMoreRecordPopover'],this[_0x536301(0x1a2)][_0x536301(0x1cf)]['recordDetail']={'mode':'draft','values':{..._0x1c9886}},this['_state'][_0x536301(0x1c4)][_0x536301(0x1ee)]=!0x0,this[_0x536301(0x19c)]();}['updateDraftRecordDetailField'](_0x514e7d,_0x31c7fe){var _0x576203=_0x1ffb69;let _0x33ac6f=this[_0x576203(0x1a2)][_0x576203(0x1cf)][_0x576203(0x1d0)];!_0x33ac6f||typeof _0x33ac6f!=_0x576203(0x175)||_0x33ac6f['mode']!==_0x576203(0x201)||(_0x33ac6f[_0x576203(0x1c3)]={..._0x33ac6f['values'],[_0x514e7d]:_0x31c7fe},this['_emit']());}[_0x1ffb69(0x172)](){var _0x588ad6=_0x1ffb69;delete this[_0x588ad6(0x1a2)]['openPanels'][_0x588ad6(0x1d0)],this[_0x588ad6(0x1a2)][_0x588ad6(0x1c4)]['right']=!0x1,this[_0x588ad6(0x19c)]();}[_0x1ffb69(0x17d)](_0x416044){var _0x11fb9f=_0x1ffb69;let _0x2a6933=_0x416044[_0x11fb9f(0x19f)]===_0x11fb9f(0x1bc)?_0x11fb9f(0x1df):'calendarRecordPopover';this['_state'][_0x11fb9f(0x1cf)][_0x2a6933]={..._0x416044,'values':_0x416044[_0x11fb9f(0x1c3)]?{..._0x416044['values']}:void 0x0,'anchor':{..._0x416044['anchor']}},_0x416044[_0x11fb9f(0x19f)]===_0x11fb9f(0x1bc)&&delete this[_0x11fb9f(0x1a2)][_0x11fb9f(0x1cf)][_0x11fb9f(0x1b9)],this[_0x11fb9f(0x19c)]();}[_0x1ffb69(0x1ff)](_0x2e00b8,_0x431785){var _0x3f322b=_0x1ffb69,_0x59cb70;let _0x18144f=this[_0x3f322b(0x1a2)][_0x3f322b(0x1cf)][_0x3f322b(0x1b9)];!_0x18144f||_0x18144f['mode']!=='draft'||(_0x18144f[_0x3f322b(0x1c3)]={...(_0x59cb70=_0x18144f[_0x3f322b(0x1c3)])==null?{}:_0x59cb70,[_0x2e00b8]:_0x431785},this[_0x3f322b(0x19c)]());}[_0x1ffb69(0x1b3)](){var _0x3edb12=_0x1ffb69;delete this[_0x3edb12(0x1a2)]['openPanels'][_0x3edb12(0x1b9)],this[_0x3edb12(0x19c)]();}[_0x1ffb69(0x1b4)](){var _0x39e3cb=_0x1ffb69;delete this[_0x39e3cb(0x1a2)][_0x39e3cb(0x1cf)]['calendarMoreRecordPopover'],delete this['_state'][_0x39e3cb(0x1cf)]['calendarRecordPopover'],this['_emit']();}[_0x1ffb69(0x1a3)](_0x330bd6){var _0x25bfc8=_0x1ffb69;this[_0x25bfc8(0x1a2)][_0x25bfc8(0x1c4)][_0x25bfc8(0x1eb)]=_0x330bd6,this[_0x25bfc8(0x19c)]();}[_0x1ffb69(0x1d2)](_0x2903cb){var _0x134adc=_0x1ffb69;this[_0x134adc(0x1a2)]['sidebars']['right']=_0x2903cb,this[_0x134adc(0x19c)]();}[_0x1ffb69(0x1d5)](_0x2a7735){var _0x494ba7=_0x1ffb69;this['_state'][_0x494ba7(0x1ad)][_0x494ba7(0x18c)]=Math[_0x494ba7(0x174)](0x1f4,Math[_0x494ba7(0x1fc)](0xc8,Math[_0x494ba7(0x1f7)](_0x2a7735))),this[_0x494ba7(0x19c)]();}[_0x1ffb69(0x1a6)](_0x4cc1a2){var _0x48a2d7=_0x1ffb69;this[_0x48a2d7(0x1a2)][_0x48a2d7(0x1cf)][_0x48a2d7(0x1c9)]=_0x4cc1a2,this['_emit']();}['closeFieldConfig'](){var _0x3a6284=_0x1ffb69;delete this[_0x3a6284(0x1a2)][_0x3a6284(0x1cf)][_0x3a6284(0x1c9)],this['_emit']();}['toSnapshotPatch'](){return{};}[_0x1ffb69(0x19c)](){var _0x43afa6=_0x1ffb69;this['_cancelDeferredEmit'](),this[_0x43afa6(0x1a5)][_0x43afa6(0x1c0)]({...this['_state'],'scrollState':{...this['_state'][_0x43afa6(0x1a4)]},'zoomState':{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1ab)]},'calendarAnchorState':{...this[_0x43afa6(0x1a2)][_0x43afa6(0x19e)]},'calendarAllDayScrollState':{...this['_state'][_0x43afa6(0x1d1)]},'collapsedGroupPaths':Object[_0x43afa6(0x204)](Object[_0x43afa6(0x1b8)](this[_0x43afa6(0x1a2)][_0x43afa6(0x176)])[_0x43afa6(0x1a7)](([_0x1f772f,_0x38013a])=>[_0x1f772f,new Set(_0x38013a)])),'kanbanColumnScrollState':Object[_0x43afa6(0x204)](Object['entries'](this['_state']['kanbanColumnScrollState'])[_0x43afa6(0x1a7)](([_0x4a4150,_0x2da142])=>[_0x4a4150,{..._0x2da142}])),'ganttLeftPaneScrollState':{...this[_0x43afa6(0x1a2)][_0x43afa6(0x205)]},'search':{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1cc)]},'openPanels':{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1cf)],'calendarRecordPopover':this[_0x43afa6(0x1a2)]['openPanels'][_0x43afa6(0x1b9)]?{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1cf)][_0x43afa6(0x1b9)],'values':this[_0x43afa6(0x1a2)][_0x43afa6(0x1cf)]['calendarRecordPopover'][_0x43afa6(0x1c3)]?{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1cf)][_0x43afa6(0x1b9)][_0x43afa6(0x1c3)]}:void 0x0,'anchor':{...this[_0x43afa6(0x1a2)]['openPanels'][_0x43afa6(0x1b9)]['anchor']}}:void 0x0,'calendarMoreRecordPopover':this['_state'][_0x43afa6(0x1cf)][_0x43afa6(0x1df)]?{...this['_state']['openPanels'][_0x43afa6(0x1df)],'values':this['_state']['openPanels'][_0x43afa6(0x1df)][_0x43afa6(0x1c3)]?{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1cf)]['calendarMoreRecordPopover']['values']}:void 0x0,'anchor':{...this[_0x43afa6(0x1a2)]['openPanels'][_0x43afa6(0x1df)]['anchor']}}:void 0x0},'sidebars':{...this[_0x43afa6(0x1a2)][_0x43afa6(0x1c4)]},'layout':{...this['_state'][_0x43afa6(0x1ad)]}});}[_0x1ffb69(0x1bb)](_0x4a98a6){var _0x91820c=_0x1ffb69;if(_0x4a98a6!=null&&_0x4a98a6[_0x91820c(0x207)]){this[_0x91820c(0x1d9)]();return;}this[_0x91820c(0x19c)]();}['_scheduleDeferredEmit'](){var _0x46e5c6=_0x1ffb69;if(this['_deferredEmitHandle']!=null)return;let _0x280490=()=>{var _0x234fad=_0x4f44;this['_deferredEmitHandle']=null,this[_0x234fad(0x19c)]();};this[_0x46e5c6(0x191)]=typeof requestAnimationFrame==_0x46e5c6(0x209)?requestAnimationFrame(_0x280490):setTimeout(_0x280490,0x10);}[_0x1ffb69(0x198)](){var _0x596e2d=_0x1ffb69;this[_0x596e2d(0x191)]!=null&&(typeof cancelAnimationFrame==_0x596e2d(0x209)&&typeof this[_0x596e2d(0x191)]=='number'?cancelAnimationFrame(this['_deferredEmitHandle']):clearTimeout(this[_0x596e2d(0x191)]),this[_0x596e2d(0x191)]=null);}['_resetSearchState'](){var _0x21042d=_0x1ffb69;this['_state'][_0x21042d(0x1cc)]['open']=!0x1,this[_0x21042d(0x1a2)][_0x21042d(0x1cc)]['query']='',this[_0x21042d(0x1a2)][_0x21042d(0x1cc)]['activeIndex']=null;}};function _0x1275b2(_0x370e2f,_0x2da161){return function(_0x367501,_0x26eed6){_0x2da161(_0x367501,_0x26eed6,_0x370e2f);};}function _0x350677(_0x3f024d,_0x565abb,_0x3d67bd,_0x204110){var _0x55ae75=_0x1ffb69,_0x50bbc9=arguments['length'],_0x23880d=_0x50bbc9<0x3?_0x565abb:_0x204110===null?_0x204110=Object[_0x55ae75(0x1f9)](_0x565abb,_0x3d67bd):_0x204110,_0x1adb4f;if(typeof Reflect==_0x55ae75(0x175)&&typeof Reflect['decorate']==_0x55ae75(0x209))_0x23880d=Reflect[_0x55ae75(0x1aa)](_0x3f024d,_0x565abb,_0x3d67bd,_0x204110);else{for(var _0x3a3062=_0x3f024d[_0x55ae75(0x194)]-0x1;_0x3a3062>=0x0;_0x3a3062--)(_0x1adb4f=_0x3f024d[_0x3a3062])&&(_0x23880d=(_0x50bbc9<0x3?_0x1adb4f(_0x23880d):_0x50bbc9>0x3?_0x1adb4f(_0x565abb,_0x3d67bd,_0x23880d):_0x1adb4f(_0x565abb,_0x3d67bd))||_0x23880d);}return _0x50bbc9>0x3&&_0x23880d&&Object[_0x55ae75(0x189)](_0x565abb,_0x3d67bd,_0x23880d),_0x23880d;}(0x0,_0xd2e039[_0x1ffb69(0x177)])(_0x1ffb69(0x1e1));let _0x5d3c95=class extends _0xd2e039[_0x1ffb69(0x181)]{constructor(_0xf62546){var _0x2aef29=_0x1ffb69;super(),this[_0x2aef29(0x1f0)]=_0xf62546,_0x6f43ed(this,_0x2aef29(0x185),null),_0x6f43ed(this,_0x2aef29(0x1b7),new _0x9a8dc9['BehaviorSubject'](null));}[_0x1ffb69(0x1c8)](_0x539611){var _0x22554a=_0x1ffb69,_0x1edf2b;this[_0x22554a(0x185)]=_0x539611,this[_0x22554a(0x1b7)][_0x22554a(0x1c0)](_0x539611),(_0x1edf2b=this['_stateService'])==null||_0x1edf2b[_0x22554a(0x1d4)]({'type':'grid-cell','tableId':_0x539611[_0x22554a(0x1e8)],'viewId':_0x539611[_0x22554a(0x187)],'recordId':_0x539611[_0x22554a(0x1b6)],'fieldId':_0x539611[_0x22554a(0x190)]});}[_0x1ffb69(0x1da)](){var _0x39f1f1=_0x1ffb69;this[_0x39f1f1(0x185)]=null,this[_0x39f1f1(0x1b7)]['next'](null);}[_0x1ffb69(0x18d)](){var _0x5f3688=_0x1ffb69;return this[_0x5f3688(0x185)];}};_0x5d3c95=_0x350677([_0x1275b2(0x0,_0x49de82)],_0x5d3c95);var _0x40c62a=class{constructor(_0x577c23,_0x403211,_0x4c4676=new _0x5d3c95(_0x577c23),_0xd48322){var _0x29b04a=_0x1ffb69;this[_0x29b04a(0x1f0)]=_0x577c23,this['_selectionService']=_0x403211,this[_0x29b04a(0x1cb)]=_0x4c4676,this[_0x29b04a(0x180)]=_0xd48322,_0x6f43ed(this,_0x29b04a(0x1a8),{});}[_0x1ffb69(0x1e0)](){var _0x37cee0=_0x1ffb69,_0xdcbe45;return(_0xdcbe45=this[_0x37cee0(0x1f0)][_0x37cee0(0x1c2)]()[_0x37cee0(0x17f)])==null?null:_0xdcbe45;}['getActiveViewId'](){var _0x2422f2=_0x1ffb69,_0x567ba7;return(_0x567ba7=this[_0x2422f2(0x1f0)][_0x2422f2(0x1c2)]()[_0x2422f2(0x206)])==null?null:_0x567ba7;}async[_0x1ffb69(0x1d3)](_0x101995){var _0x13b0d5=_0x1ffb69;this['_stateService'][_0x13b0d5(0x1d3)](_0x101995);}async[_0x1ffb69(0x20a)](_0x34f3b2){var _0x4e8be6=_0x1ffb69;this[_0x4e8be6(0x1f0)][_0x4e8be6(0x20a)](_0x34f3b2);}[_0x1ffb69(0x1d7)](){var _0x390191=_0x1ffb69;return this[_0x390191(0x1fe)][_0x390191(0x1d7)]();}[_0x1ffb69(0x1d4)](_0x1fe987){var _0x338fa7=_0x1ffb69;this[_0x338fa7(0x1fe)][_0x338fa7(0x1d4)](_0x1fe987);}[_0x1ffb69(0x1a0)](_0x5153a6,_0x3fca30={}){var _0xfc6ac0=_0x1ffb69,_0x2b81f6,_0x25a768,_0x2fc05f;let _0x5de9cc=(_0x2b81f6=_0x3fca30[_0xfc6ac0(0x187)])==null?this[_0xfc6ac0(0x1f8)]():_0x2b81f6;_0x5de9cc&&this[_0xfc6ac0(0x1f0)][_0xfc6ac0(0x1f2)](_0x5de9cc,{'x':(_0x25a768=_0x3fca30['x'])==null?0x0:_0x25a768,'y':(_0x2fc05f=_0x3fca30['y'])==null?0x0:_0x2fc05f});}[_0x1ffb69(0x17c)](_0x2795db,_0xc4c496={}){var _0x2f34fc=_0x1ffb69,_0x184333,_0x2bfcd7,_0x5f4923;let _0x2c7cdd=(_0x184333=_0xc4c496['viewId'])==null?this[_0x2f34fc(0x1f8)]():_0x184333;_0x2c7cdd&&this[_0x2f34fc(0x1f0)][_0x2f34fc(0x1f2)](_0x2c7cdd,{'x':(_0x2bfcd7=_0xc4c496['x'])==null?0x0:_0x2bfcd7,'y':(_0x5f4923=_0xc4c496['y'])==null?0x0:_0x5f4923});}[_0x1ffb69(0x1c8)](_0x117aa1){var _0x55cb56=_0x1ffb69;this[_0x55cb56(0x1cb)][_0x55cb56(0x1c8)](_0x117aa1);}[_0x1ffb69(0x1da)](){this['_editorService']['stopEditingCell']();}['openLeftSidebar'](){this['_stateService']['setLeftSidebarVisible'](!0x0);}[_0x1ffb69(0x17b)](){var _0x2077b1=_0x1ffb69;this[_0x2077b1(0x1f0)][_0x2077b1(0x1a3)](!0x1);}[_0x1ffb69(0x1fa)](){var _0x1008f2=_0x1ffb69;this['_stateService'][_0x1008f2(0x1d2)](!0x0);}[_0x1ffb69(0x1c6)](){var _0x532895=_0x1ffb69;this[_0x532895(0x1f0)][_0x532895(0x1d2)](!0x1);}[_0x1ffb69(0x199)](_0x599ffb){var _0x2e1b20=_0x1ffb69;this[_0x2e1b20(0x1f0)][_0x2e1b20(0x199)](_0x599ffb);}['openDraftRecordDetail'](_0x5c3af0={}){var _0x975641=_0x1ffb69;this[_0x975641(0x1f0)]['openDraftRecordDetail'](_0x5c3af0);}[_0x1ffb69(0x172)](){var _0x10b2e3=_0x1ffb69;this[_0x10b2e3(0x1f0)][_0x10b2e3(0x172)]();}['openFieldConfigPanel'](_0x7d20f9){var _0x4a1459=_0x1ffb69;this[_0x4a1459(0x1f0)][_0x4a1459(0x1c2)]()['openPanels'][_0x4a1459(0x1c9)]=_0x7d20f9;}[_0x1ffb69(0x1ed)](_0x4c49fb){var _0x35e93a=_0x1ffb69;this[_0x35e93a(0x1f0)][_0x35e93a(0x1c2)]()['openPanels'][_0x35e93a(0x1c5)]=_0x4c49fb;}['getPersonOptions'](){var _0x5bf32c;return[...(_0x5bf32c=this['_getBaseUIConfig']()['personOptions'])==null?[]:_0x5bf32c];}['setPersonOptions'](_0x10ee3b){var _0x200ab0=_0x1ffb69;this[_0x200ab0(0x1ba)]({'personOptions':_0x10ee3b});}[_0x1ffb69(0x1bd)](){var _0x56a523=_0x1ffb69,_0x5b4bff;return[...(_0x5b4bff=this[_0x56a523(0x1a9)]()[_0x56a523(0x1b0)])==null?[]:_0x5b4bff];}[_0x1ffb69(0x18b)](_0xee6f87){var _0x14829f=_0x1ffb69;this[_0x14829f(0x1ba)]({'groupOptions':_0xee6f87});}['getRenderedView'](){return null;}[_0x1ffb69(0x1a9)](){var _0x5362de=_0x1ffb69,_0x44ac07,_0x546e22;return(_0x44ac07=(_0x546e22=this[_0x5362de(0x180)])==null?void 0x0:_0x546e22[_0x5362de(0x1f3)]('base-ui.config'))==null?this[_0x5362de(0x1a8)]:_0x44ac07;}[_0x1ffb69(0x1ba)](_0x134805){var _0x3dbd28=_0x1ffb69,_0x44cc29;this[_0x3dbd28(0x1a8)]={...this[_0x3dbd28(0x1a9)](),..._0x134805},(_0x44cc29=this[_0x3dbd28(0x180)])==null||_0x44cc29['setConfig'](_0x3dbd28(0x1ea),_0x134805,{'merge':!0x0});}};(0x0,_0xd2e039[_0x1ffb69(0x177)])(_0x1ffb69(0x18e));let _0x36d15b=class extends _0xd2e039['Disposable']{constructor(_0x5813f9){var _0x13d04c=_0x1ffb69;super(),this[_0x13d04c(0x1f0)]=_0x5813f9;}[_0x1ffb69(0x1d7)](){var _0x27dad8=_0x1ffb69,_0x1b3aef;return(_0x1b3aef=this[_0x27dad8(0x1f0)][_0x27dad8(0x1c2)]()['selection'])==null?null:_0x1b3aef;}[_0x1ffb69(0x1d4)](_0x5a9039){var _0x5091b4=_0x1ffb69;this[_0x5091b4(0x1f0)][_0x5091b4(0x1d4)](_0x5a9039);}};_0x36d15b=_0x350677([_0x1275b2(0x0,_0x49de82)],_0x36d15b);var _0x5e1974=class extends _0x39f289[_0x1ffb69(0x17e)]{[_0x1ffb69(0x1dd)](){var _0x5f21f9=_0x1ffb69;return new _0x40c62a(this[_0x5f21f9(0x1db)][_0x5f21f9(0x1f6)](_0xbecf41),this[_0x5f21f9(0x1db)][_0x5f21f9(0x1f6)](_0x36d15b),this['_injector']['get'](_0x5d3c95),this[_0x5f21f9(0x1db)]['get'](_0xd2e039[_0x5f21f9(0x200)]));}};_0x39f289[_0x1ffb69(0x17e)][_0x1ffb69(0x197)](_0x5e1974),_0x557ef5[_0x1ffb69(0x203)]=_0x53a737,_0x557ef5[_0x1ffb69(0x170)]=_0x40c62a,_0x557ef5['FUniverBaseUIMixin']=_0x5e1974;}));function _0x4f44(_0x9d8da8,_0x35db6d){_0x9d8da8=_0x9d8da8-0x170;var _0x302e5a=_0x302e();var _0x4f440b=_0x302e5a[_0x9d8da8];return _0x4f440b;}function _0x302e(){var _0x23d9df=['mode','scrollToRecord','setCalendarAllDayScroll','_state','setLeftSidebarVisible','scrollState','state$','openFieldConfig','map','_localConfig','_getBaseUIConfig','decorate','zoomState','UniverCore','layout','symbol','rxjs','groupOptions','amd','BehaviorSubject','closeCalendarRecordPopover','closeCalendarMoreRecordPopover','getCollapsedGroupPaths','recordId','editingCell$','entries','calendarRecordPopover','_updateBaseUIConfig','_emitOrDefer','more','getGroupOptions','393481OmZuMP','_viewType','next','openSearch','getState','values','sidebars','viewSettings','closeRightSidebar','7eySZFO','startEditingCell','fieldConfig','dispose','_editorService','search','2055010vusDeq','add','openPanels','recordDetail','calendarAllDayScrollState','setRightSidebarVisible','activateTable','setSelection','setLeftPanelWidth','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSelection','selection','_scheduleDeferredEmit','stopEditingCell','_injector','preserveCalendarPopover','getBaseUI','has','calendarMoreRecordPopover','getActiveTableId','base-ui.editor.service','695238NWXhww','string','setGanttLeftPaneScrollX','constructor','174808nKFNxr','invalidate','tableId','hitTest','base-ui.config','left','_viewId','openViewSettingsPanel','right','_resetSearchState','_stateService','setCalendarAnchorDate','setScrollState','getConfig','setKanbanColumnScroll','existing','get','round','getActiveViewId','getOwnPropertyDescriptor','openRightSidebar','657608nvPxZl','max','prototype','_selectionService','updateCalendarRecordPopoverField','IConfigService','draft','toStringTag','FBaseRenderedView','fromEntries','ganttLeftPaneScrollState','activeViewId','defer','UniverProBasesUiFacade','function','activateView','FBaseUI','3949cOLqrA','closeRecordDetail','getViewport','min','object','collapsedGroupPaths','createIdentifier','iterator','@univerjs/core','UniverCoreFacade','closeLeftSidebar','scrollToField','openCalendarRecordPopover','FUniver','activeTableId','_configService','Disposable','_controller','@univerjs/core/facade','getViewId','_editingCell','base-ui.state.service','viewId','1615749EJknjI','defineProperty','9910wgczGH','setGroupOptions','leftPanelWidth','getEditingCell','base-ui.selection.service','2SvEoQx','fieldId','_deferredEmitHandle','126XxcjRm','toggleCollapsedGroupPath','length','Module','openDraftRecordDetail','extend','_cancelDeferredEmit','openRecordDetail','call','kanbanColumnScrollState','_emit','activeIndex','calendarAnchorState'];_0x302e=function(){return _0x23d9df;};return _0x302e();}
|