@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,41 @@
|
|
|
1
|
+
import type { BaseSelection, IConfigService } from '@univerjs/core';
|
|
2
|
+
import type { IBasePeopleOption } from '../components/BaseMenus';
|
|
3
|
+
import type { IStartEditingCellInput } from '../services/base-editor.service';
|
|
4
|
+
import type { BaseSelectionService } from '../services/base-selection.service';
|
|
5
|
+
import type { BaseUIStateService, IScrollToRecordOptions } from '../services/base-ui-state.service';
|
|
6
|
+
import type { FBaseRenderedView } from './f-base-rendered-view';
|
|
7
|
+
import { BaseEditorService } from '../services/base-editor.service';
|
|
8
|
+
export declare class FBaseUI {
|
|
9
|
+
private readonly _stateService;
|
|
10
|
+
private readonly _selectionService;
|
|
11
|
+
private readonly _editorService;
|
|
12
|
+
private readonly _configService?;
|
|
13
|
+
private _localConfig;
|
|
14
|
+
constructor(_stateService: BaseUIStateService, _selectionService: BaseSelectionService, _editorService?: BaseEditorService, _configService?: Pick<IConfigService, "getConfig" | "setConfig"> | undefined);
|
|
15
|
+
getActiveTableId(): string | null;
|
|
16
|
+
getActiveViewId(): string | null;
|
|
17
|
+
activateTable(tableId: string): Promise<void>;
|
|
18
|
+
activateView(viewId: string): Promise<void>;
|
|
19
|
+
getSelection(): BaseSelection | null;
|
|
20
|
+
setSelection(selection: BaseSelection | null): void;
|
|
21
|
+
scrollToRecord(_recordId: string, options?: IScrollToRecordOptions): void;
|
|
22
|
+
scrollToField(_fieldId: string, options?: IScrollToRecordOptions): void;
|
|
23
|
+
startEditingCell(input: IStartEditingCellInput): void;
|
|
24
|
+
stopEditingCell(): void;
|
|
25
|
+
openLeftSidebar(): void;
|
|
26
|
+
closeLeftSidebar(): void;
|
|
27
|
+
openRightSidebar(): void;
|
|
28
|
+
closeRightSidebar(): void;
|
|
29
|
+
openRecordDetail(recordId: string): void;
|
|
30
|
+
openDraftRecordDetail(values?: Record<string, unknown>): void;
|
|
31
|
+
closeRecordDetail(): void;
|
|
32
|
+
openFieldConfigPanel(fieldId: string): void;
|
|
33
|
+
openViewSettingsPanel(viewId: string): void;
|
|
34
|
+
getPersonOptions(): IBasePeopleOption[];
|
|
35
|
+
setPersonOptions(options: IBasePeopleOption[]): void;
|
|
36
|
+
getGroupOptions(): IBasePeopleOption[];
|
|
37
|
+
setGroupOptions(options: IBasePeopleOption[]): void;
|
|
38
|
+
getRenderedView(): FBaseRenderedView | null;
|
|
39
|
+
private _getBaseUIConfig;
|
|
40
|
+
private _updateBaseUIConfig;
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FUniver } from '@univerjs/core/facade';
|
|
2
|
+
import { FBaseUI } from './f-base-ui';
|
|
3
|
+
export interface IFUniverBaseUIMixin {
|
|
4
|
+
getBaseUI(baseId: string): FBaseUI;
|
|
5
|
+
}
|
|
6
|
+
export declare class FUniverBaseUIMixin extends FUniver implements IFUniverBaseUIMixin {
|
|
7
|
+
getBaseUI(): FBaseUI;
|
|
8
|
+
}
|
|
9
|
+
declare module '@univerjs/core/facade' {
|
|
10
|
+
interface FUniver extends IFUniverBaseUIMixin {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IFieldEditor, IFieldEditorContext } from '../field-ui-plugin';
|
|
2
|
+
export declare function createNumberEditor(ctx: IFieldEditorContext): IFieldEditor;
|
|
3
|
+
export declare function createCurrencyEditor(ctx: IFieldEditorContext): IFieldEditor;
|
|
4
|
+
export declare function createProgressEditor(ctx: IFieldEditorContext): IFieldEditor;
|
|
5
|
+
export declare function createRatingEditor(ctx: IFieldEditorContext): IFieldEditor;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { BaseCellValue as CellValue, FieldType, IDisposable, ProjectedField, Rect } from '@univerjs/core';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
import type { CanvasDrawCommand } from '../render/canvas-draw-command';
|
|
4
|
+
export interface IFieldCellRenderContext<TValue extends CellValue = CellValue, TConfig = unknown> {
|
|
5
|
+
value: TValue | null;
|
|
6
|
+
config: TConfig;
|
|
7
|
+
commands?: CanvasDrawCommand[];
|
|
8
|
+
field?: ProjectedField;
|
|
9
|
+
rect?: Rect;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
hovered?: boolean;
|
|
12
|
+
linkActionHovered?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface IFieldCardRenderContext<TValue extends CellValue = CellValue, TConfig = unknown> extends IFieldCellRenderContext<TValue, TConfig> {
|
|
15
|
+
}
|
|
16
|
+
export interface IFieldEditor<TValue extends CellValue = CellValue> extends IDisposable {
|
|
17
|
+
readonly fieldType: string;
|
|
18
|
+
getValue(): TValue | null;
|
|
19
|
+
setValue(value: unknown): void;
|
|
20
|
+
commit(): void;
|
|
21
|
+
cancel(): void;
|
|
22
|
+
}
|
|
23
|
+
export interface IFieldEditorContext<TValue extends CellValue = CellValue, TConfig = unknown> extends IFieldCellRenderContext<TValue, TConfig> {
|
|
24
|
+
commit(value: TValue | null): void;
|
|
25
|
+
}
|
|
26
|
+
export interface IFieldConfigPanelContext<TConfig = unknown> {
|
|
27
|
+
config: TConfig;
|
|
28
|
+
update(config: TConfig): void;
|
|
29
|
+
}
|
|
30
|
+
export interface IFieldUIPlugin<TValue extends CellValue = CellValue, TConfig = unknown> {
|
|
31
|
+
type: FieldType;
|
|
32
|
+
icon: ComponentType;
|
|
33
|
+
renderCell(ctx: IFieldCellRenderContext<TValue, TConfig>): void;
|
|
34
|
+
renderCardItem(ctx: IFieldCardRenderContext<TValue, TConfig>): void;
|
|
35
|
+
renderGanttCell(ctx: IFieldCellRenderContext<TValue, TConfig>): void;
|
|
36
|
+
createEditor(ctx: IFieldEditorContext<TValue, TConfig>): IFieldEditor<TValue>;
|
|
37
|
+
createConfigPanel(ctx: IFieldConfigPanelContext<TConfig>): ComponentType;
|
|
38
|
+
}
|
|
39
|
+
export declare function clearBaseFormulaFormatCache(): void;
|
|
40
|
+
export declare function getBaseFormulaFormatCacheSize(): number;
|
|
41
|
+
export interface IBaseProgressCellLayout {
|
|
42
|
+
trackX: number;
|
|
43
|
+
trackY: number;
|
|
44
|
+
trackWidth: number;
|
|
45
|
+
trackHeight: number;
|
|
46
|
+
fillWidth: number;
|
|
47
|
+
labelX: number;
|
|
48
|
+
labelWidth: number;
|
|
49
|
+
label: string;
|
|
50
|
+
rawValue: number;
|
|
51
|
+
start: number;
|
|
52
|
+
end: number;
|
|
53
|
+
}
|
|
54
|
+
export interface IBaseProgressCellLayoutOptions {
|
|
55
|
+
maxTrackWidth?: number;
|
|
56
|
+
maxLabelWidth?: number;
|
|
57
|
+
minLabelWidth?: number;
|
|
58
|
+
}
|
|
59
|
+
export declare const BASE_FIELD_UI_TYPES: FieldType[];
|
|
60
|
+
export declare function createCoreFieldUIPlugins(): IFieldUIPlugin[];
|
|
61
|
+
export declare function getCoreFieldUIPlugin(type: FieldType): IFieldUIPlugin;
|
|
62
|
+
export declare function getBaseLinkTextWidth(text: string): number;
|
|
63
|
+
export declare function getBaseProgressCellLayout(value: unknown, config: unknown, rect: Rect, options?: IBaseProgressCellLayoutOptions): IBaseProgressCellLayout;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IFieldCellRenderContext } from '../field-ui-plugin';
|
|
2
|
+
export declare function renderNumberCell(ctx: IFieldCellRenderContext): void;
|
|
3
|
+
export declare function renderCurrencyCell(ctx: IFieldCellRenderContext): void;
|
|
4
|
+
export declare function renderProgressCell(ctx: IFieldCellRenderContext): void;
|
|
5
|
+
export declare function renderRatingCell(ctx: IFieldCellRenderContext): void;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import './global.css';
|
|
2
|
+
export { ActivateBaseTableOperation, type IActivateBaseTableOperationParams } from './commands/operations/activate-table.operation';
|
|
3
|
+
export { ActivateBaseViewOperation, type IActivateBaseViewOperationParams } from './commands/operations/activate-view.operation';
|
|
4
|
+
export { type IStartBaseEditingCellOperationParams, type IStopBaseEditingCellOperationParams, StartBaseEditingCellOperation, StopBaseEditingCellOperation } from './commands/operations/editing.operation';
|
|
5
|
+
export { BASE_KEYBOARD_OPERATIONS, BaseKeyboardOperation, type IBaseKeyboardOperationParams } from './commands/operations/keyboard.operation';
|
|
6
|
+
export { type ISetBaseScrollOperationParams, SetBaseScrollOperation } from './commands/operations/scroll.operation';
|
|
7
|
+
export { type ISetBaseSelectionOperationParams, SetBaseSelectionOperation } from './commands/operations/set-selection.operation';
|
|
8
|
+
export { BASE_RECORD_DETAIL_PANEL, BASE_TOOLBAR_MENU_OPERATIONS, CloseBaseRecordDetailPanelOperation, CloseBaseToolbarMenuOperation, type IBaseToolbarMenuAnchor, type IOpenBaseRecordDetailPanelOperationParams, type IOpenBaseToolbarMenuOperationParams, OpenBaseAddFieldPanelOperation, OpenBaseAddRecordMenuOperation, OpenBaseCalendarEventSettingsMenuOperation, OpenBaseCalendarViewSettingsMenuOperation, OpenBaseConditionalColoringMenuOperation, OpenBaseCustomizeFieldMenuOperation, OpenBaseCustomizeGalleryMenuOperation, OpenBaseCustomizeKanbanMenuOperation, OpenBaseFilterMenuOperation, OpenBaseGridContextMenuOperation, OpenBaseGroupMenuOperation, OpenBaseKanbanColumnColorMenuOperation, OpenBaseKanbanColumnTitleMenuOperation, OpenBaseRecordDetailPanelOperation, OpenBaseRowHeightMenuOperation, OpenBaseSortMenuOperation, OpenBaseViewSettingsMenuOperation, } from './commands/operations/toolbar-menu.operation';
|
|
9
|
+
export { type ISetBaseZoomOperationParams, SetBaseZoomOperation } from './commands/operations/zoom.operation';
|
|
10
|
+
export { AddRecordButton } from './components/AddRecordButton';
|
|
11
|
+
export { BaseAttachmentCellEditor, BaseContactCellEditor, BaseDateCellEditor, BaseLinkCellEditor, BaseMultiSelectCellEditor, BaseNumberCellEditor, BaseSelectCellEditor, BaseTextCellEditor, type IBaseCellEditorFocusHandle, type IBaseCellEditorOption, type IBaseLinkCellValue } from './components/BaseCellEditors';
|
|
12
|
+
export { BASE_COLLABORATION_STATUS_DEFAULT_LABELS, BaseCollaborationStatus, type IBaseCollaborationStatusLabels, type IBaseCollaborationStatusProps } from './components/BaseCollaborationStatus';
|
|
13
|
+
export { BaseConfirmDialog, type IBaseConfirmDialogProps } from './components/BaseConfirmDialog';
|
|
14
|
+
export { BaseFieldTypeIcon, BasePlusIcon, BaseToolbarIcon, BaseViewIcon } from './components/BaseIcons';
|
|
15
|
+
export { AddRecordMenu, AddViewMenu, BASE_CONDITIONAL_COLORING_MENU_MAX_WIDTH, BASE_CONDITIONAL_COLORING_MENU_MIN_WIDTH, BASE_FIELD_CONFIG_PANEL_WIDTH, BASE_MENU_DEFAULT_LABELS, BaseFieldConfigPanel, BaseFieldDescriptionPanel, BaseFloatingMenu, type BaseFloatingOverlayAnchor, BaseFloatingOverlayController, CalendarEventSettingsMenu, CalendarViewSettingsMenu, ConditionalColoringMenu, createDefaultBaseFieldConfig, CustomizeFieldMenu, CustomizeGalleryMenu, CustomizeKanbanMenu, FieldHeaderMenu, type FieldHeaderMenuAction, FieldRowActionMenu, FieldStatsMenu, FilterMenu, GanttViewSettingsMenu, getBaseFloatingPosition, getDefaultBaseFieldValue, GridContextMenu, GroupMenu, type IBaseConditionalColorRule, type IBaseFieldConfigSubmitInput, type IBaseFieldTypeCatalogItem, type IBaseFloatingOverlayOptions, type IBaseFloatingPosition, type IBaseFloatingPositionOptions, type IBaseFormulaTableItem, type IBaseMenuFieldItem, type IBaseMenuLabels, type IBaseMenuOption, type IBaseMenuViewItem, type IBasePeopleOption, KanbanColumnColorMenu, KanbanColumnTitleMenu, KanbanGroupMenu, RowHeightMenu, SortMenu, supportsBaseFieldDefaultValue, ViewSettingsMenu, } from './components/BaseMenus';
|
|
16
|
+
export { BaseNumberInput, type IBaseNumberInputProps } from './components/BaseNumberInput';
|
|
17
|
+
export { type BaseRecordDetailValueType, BaseStandaloneShell, BaseTableSidebar, BaseTableSidebarFrame, type IBaseTableSidebarFrameProps, type IBaseTableSidebarItem, type IBaseTableSidebarProps, type IBaseToolbarState, type IBaseViewTabItem, type IRecordDetailFieldItem } from './components/BaseStandaloneShell';
|
|
18
|
+
export { BaseToolbar } from './components/BaseToolbar';
|
|
19
|
+
export { CardCustomizePanel } from './components/CardCustomizePanel';
|
|
20
|
+
export { FieldConfigPanel } from './components/FieldConfigPanel';
|
|
21
|
+
export { FieldMenu } from './components/FieldMenu';
|
|
22
|
+
export { RecordDetailFloatingPanel, RecordDetailPanel } from './components/RecordDetailPanel';
|
|
23
|
+
export { ViewTabs } from './components/ViewTabs';
|
|
24
|
+
export { BASES_UI_PLUGIN_CONFIG_KEY, configSymbol as BASES_UI_PLUGIN_CONFIG_SYMBOL, defaultPluginConfig, type IUniverBaseUIConfig } from './config/config';
|
|
25
|
+
export { BASE_KEYBOARD_SHORTCUTS, BASE_SHORTCUTS, BASE_UNDO_REDO_SHORTCUTS, FOCUSING_BASE, whenBaseFocused } from './controllers/base-keyboard.shortcut';
|
|
26
|
+
export { BASE_CANVAS_COMPONENT_KEY, BaseRenderController } from './controllers/base-render.controller';
|
|
27
|
+
export { BaseUIController } from './controllers/base-ui.controller';
|
|
28
|
+
export { FBaseRenderedView, FBaseUI, FUniverBaseUIMixin, type IFUniverBaseUIMixin } from './facade';
|
|
29
|
+
export { createCoreFieldUIPlugins } from './fields/field-ui-plugin';
|
|
30
|
+
export type { IFieldCardRenderContext, IFieldCellRenderContext, IFieldConfigPanelContext, IFieldEditorContext, IFieldUIPlugin } from './fields/field-ui-plugin';
|
|
31
|
+
export { BaseMenuItemCommandId, baseMenuSchema } from './menu/schema';
|
|
32
|
+
export { BASES_UI_PLUGIN_NAME, UniverBasesUIPlugin } from './plugin';
|
|
33
|
+
export { BaseCanvasRenderComponent } from './render/base-canvas-render-component';
|
|
34
|
+
export { BaseRenderManager } from './render/base-render-manager';
|
|
35
|
+
export { BaseSceneHost, BaseSubScene } from './render/base-scene';
|
|
36
|
+
export type { IBaseScene, IBaseSceneHostMountOptions, IBaseSubSceneMountOptions } from './render/base-scene';
|
|
37
|
+
export { BASE_CANVAS_LAYER_ORDER, type BaseCanvasLayerRole, type BaseCanvasScrollbarAxis, type BaseGridFieldIndicator, BaseViewRenderController, CanvasBaseViewRenderController, createBaseCanvasLayer, createBaseCanvasLayersFromCommands, type IBaseCalendarKeyboardFocusState, type IBaseCanvasLayeredRenderState, type IBaseCanvasRenderLayer, type IBaseCanvasScrollbarState, type IBaseGridAddRecordHoverState, type IBaseGridFieldDragState, type IBaseGridFillPreviewState, type IBaseGridRowDragState, type IBaseGridSelectionState, type IBaseGridVirtualRowState, type IBaseRenderContext, NoopBaseViewRenderController } from './render/base-view-render-controller';
|
|
38
|
+
export type { BaseCheckboxIcon, BaseRatingIcon, CanvasDrawCommand, IBaseCanvas2DContext, IBaseCanvasHitRegion, IBaseCanvasRenderState, ICanvasCommandMeta } from './render/canvas-draw-command';
|
|
39
|
+
export { paintCanvasCommands } from './render/canvas-draw-command';
|
|
40
|
+
export { type IBaseResolvedViewSearch, resolveBaseViewSearch } from './search/base-view-search';
|
|
41
|
+
export { AttachmentIoService, AttachmentSourceType, BaseAttachmentIoService, type BaseAttachmentValue, IAttachmentIoService, type IAttachmentIoService as IAttachmentIoServiceType, type IAttachmentUploadOptions, type IAttachmentValue, IBaseAttachmentIoService, type IBaseAttachmentIoService as IBaseAttachmentIoServiceType, type IBaseAttachmentUploadOptions } from './services/base-attachment-io.service';
|
|
42
|
+
export { BaseClipboardService, IBaseClipboardService } from './services/base-clipboard.service';
|
|
43
|
+
export { BaseDragService, IBaseDragService } from './services/base-drag.service';
|
|
44
|
+
export { BaseEditorService, IBaseEditorService } from './services/base-editor.service';
|
|
45
|
+
export type { IStartEditingCellInput } from './services/base-editor.service';
|
|
46
|
+
export { BaseFieldUIRegistryService, IBaseFieldUIRegistryService } from './services/base-field-ui-registry.service';
|
|
47
|
+
export type { IBaseFieldUIRegistryService as IBaseFieldUIRegistryServiceType } from './services/base-field-ui-registry.service';
|
|
48
|
+
export { BaseFormulaCalculationProgressService, type IBaseFormulaCalculationProgress } from './services/base-formula-progress.service';
|
|
49
|
+
export { BaseLayoutService, IBaseLayoutService } from './services/base-layout.service';
|
|
50
|
+
export type { ICalendarLayout, IGalleryLayout, IGanttLayout, IGridLayout, IKanbanLayout } from './services/base-layout.service';
|
|
51
|
+
export { BaseRenderService, IBaseRenderService } from './services/base-render.service';
|
|
52
|
+
export { BaseSelectionService, IBaseSelectionService } from './services/base-selection.service';
|
|
53
|
+
export { type BaseToolbarMenuId, BaseUIPopupService, type IBaseToolbarMenuState, IBaseUIPopupService, type IBaseUIPopupService as IBaseUIPopupServiceType } from './services/base-ui-popup.service';
|
|
54
|
+
export { BaseUIStateService, type IBaseUIState, IBaseUIStateService, type IScrollState } from './services/base-ui-state.service';
|
|
55
|
+
export { BaseViewUIRegistryService, IBaseViewUIRegistryService } from './services/base-view-ui-registry.service';
|
|
56
|
+
export type { IBaseViewUIRegistryService as IBaseViewUIRegistryServiceType } from './services/base-view-ui-registry.service';
|
|
57
|
+
export { buildBaseProjectedRowLayout, getCalendarProjectionBodyHeight, getFieldWidth, getGalleryCardScrollTarget, getGalleryProjectionBodyHeight, getGridProjectionBodyHeight, getGridProjectionVisibleRows, getKanbanCardScrollTarget, getKanbanLaneMaxScroll, GRID_ADD_FIELD_COLUMN_WIDTH, GRID_HEADER_HEIGHT, GRID_ROW_HEADER_WIDTH, GRID_SUMMARY_HEIGHT, resolveGridRowHeight } from './views/base-canvas-render-utils';
|
|
58
|
+
export { RenderBaseContent, RenderBaseFooter, RenderBaseGlobal, RenderBaseHeader, RenderBaseHeaderMenu, RenderBaseLeftSidebar, RenderBaseRecordDetailSidebar, RenderBaseWorkbench } from './views/base-container/BaseContainer';
|
|
59
|
+
export { buildCalendarLayout } from './views/calendar/calendar-layout';
|
|
60
|
+
export { CalendarRenderController } from './views/calendar/calendar-render-controller';
|
|
61
|
+
export { GalleryRenderController } from './views/gallery/gallery-render-controller';
|
|
62
|
+
export { getGanttBarDisplayEnd, getGanttBarScrollTarget, getGanttFieldRangeFromDisplayRange, getGanttInitialScrollX, getGanttLeftPaneWidth } from './views/gantt/gantt-layout';
|
|
63
|
+
export { GanttRenderController } from './views/gantt/gantt-render-controller';
|
|
64
|
+
export { GridRenderController } from './views/grid/grid-render-controller';
|
|
65
|
+
export { KanbanRenderController } from './views/kanban/kanban-render-controller';
|
|
66
|
+
export { createCoreViewUIPlugins } from './views/view-ui-plugin';
|
|
67
|
+
export type { IToolbarItem, IViewRenderContext, IViewSettingsPanelContext, IViewToolbarContext, IViewUIPlugin } from './views/view-ui-plugin';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { AddRecordButton } from './components/AddRecordButton';
|
|
2
|
+
export { type IBaseCellEditorFocusHandle, type IBaseCellEditorOption, BaseContactCellEditor, BaseDateCellEditor, BaseLinkCellEditor, type IBaseLinkCellValue, BaseMultiSelectCellEditor, BaseNumberCellEditor, BaseSelectCellEditor, BaseTextCellEditor } from './components/BaseCellEditors';
|
|
3
|
+
export { BaseConfirmDialog, type IBaseConfirmDialogProps } from './components/BaseConfirmDialog';
|
|
4
|
+
export { AddRecordMenu, AddViewMenu, BASE_FIELD_CONFIG_PANEL_WIDTH, BASE_MENU_DEFAULT_LABELS, type IBaseConditionalColorRule, BaseFieldConfigPanel, type IBaseFieldConfigSubmitInput, BaseFieldDescriptionPanel, type IBaseFieldTypeCatalogItem, BaseFloatingMenu, type IBaseFloatingMenuProps, type BaseFloatingOverlayAnchor, BaseFloatingOverlayController, type IBaseFloatingOverlayOptions, type IBaseFloatingPosition, type IBaseFloatingPositionOptions, type IBaseFormulaTableItem, type IBaseMenuFieldItem, type IBaseMenuLabels, type IBaseMenuOption, type IBaseMenuViewItem, CalendarEventSettingsMenu, CalendarViewSettingsMenu, ConditionalColoringMenu, CustomizeFieldMenu, CustomizeGalleryMenu, CustomizeKanbanMenu, FieldHeaderMenu, type FieldHeaderMenuAction, FieldRowActionMenu, FieldStatsMenu, FilterMenu, GanttViewSettingsMenu, getBaseFloatingPosition, GroupMenu, KanbanColumnColorMenu, KanbanColumnTitleMenu, KanbanGroupMenu, RowHeightMenu, SortMenu, ViewSettingsMenu, } from './components/BaseMenus';
|
|
5
|
+
export { BaseNumberInput, type IBaseNumberInputProps } from './components/BaseNumberInput';
|
|
6
|
+
export { type BaseRecordDetailValueType, BaseStandaloneShell, BaseTableSidebar, BaseTableSidebarFrame, type IBaseTableSidebarFrameProps, type IBaseTableSidebarItem, type IBaseTableSidebarProps, type IBaseToolbarState, type IBaseViewTabItem, type IRecordDetailFieldItem } from './components/BaseStandaloneShell';
|
|
7
|
+
export { BaseToolbar } from './components/BaseToolbar';
|
|
8
|
+
export { FieldMenu } from './components/FieldMenu';
|
|
9
|
+
export { RecordDetailFloatingPanel, RecordDetailPanel } from './components/RecordDetailPanel';
|
|
10
|
+
export { ViewTabs } from './components/ViewTabs';
|
|
11
|
+
export { type IBaseResolvedViewSearch, resolveBaseViewSearch } from './search/base-view-search';
|