@univerjs/sheets-ui 1.0.0-alpha.3 → 1.0.0-alpha.5
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/lib/cjs/index.js +7409 -6966
- package/lib/cjs/locale/ar-SA.js +4 -1
- package/lib/cjs/locale/ca-ES.js +4 -1
- package/lib/cjs/locale/de-DE.js +4 -1
- package/lib/cjs/locale/en-US.js +4 -1
- package/lib/cjs/locale/es-ES.js +4 -1
- package/lib/cjs/locale/fa-IR.js +4 -1
- package/lib/cjs/locale/fr-FR.js +4 -1
- package/lib/cjs/locale/id-ID.js +4 -1
- package/lib/cjs/locale/it-IT.js +4 -1
- package/lib/cjs/locale/ja-JP.js +4 -1
- package/lib/cjs/locale/ko-KR.js +4 -1
- package/lib/cjs/locale/pl-PL.js +4 -1
- package/lib/cjs/locale/pt-BR.js +4 -1
- package/lib/cjs/locale/ru-RU.js +4 -1
- package/lib/cjs/locale/sk-SK.js +4 -1
- package/lib/cjs/locale/vi-VN.js +4 -1
- package/lib/cjs/locale/zh-CN.js +4 -1
- package/lib/cjs/locale/zh-HK.js +4 -1
- package/lib/cjs/locale/zh-TW.js +4 -1
- package/lib/es/index.js +7416 -6974
- package/lib/es/locale/ar-SA.js +4 -1
- package/lib/es/locale/ca-ES.js +4 -1
- package/lib/es/locale/de-DE.js +4 -1
- package/lib/es/locale/en-US.js +4 -1
- package/lib/es/locale/es-ES.js +4 -1
- package/lib/es/locale/fa-IR.js +4 -1
- package/lib/es/locale/fr-FR.js +4 -1
- package/lib/es/locale/id-ID.js +4 -1
- package/lib/es/locale/it-IT.js +4 -1
- package/lib/es/locale/ja-JP.js +4 -1
- package/lib/es/locale/ko-KR.js +4 -1
- package/lib/es/locale/pl-PL.js +4 -1
- package/lib/es/locale/pt-BR.js +4 -1
- package/lib/es/locale/ru-RU.js +4 -1
- package/lib/es/locale/sk-SK.js +4 -1
- package/lib/es/locale/vi-VN.js +4 -1
- package/lib/es/locale/zh-CN.js +4 -1
- package/lib/es/locale/zh-HK.js +4 -1
- package/lib/es/locale/zh-TW.js +4 -1
- package/lib/index.css +45 -0
- package/lib/index.js +7416 -6974
- package/lib/locale/ar-SA.js +4 -1
- package/lib/locale/ca-ES.js +4 -1
- package/lib/locale/de-DE.js +4 -1
- package/lib/locale/en-US.js +4 -1
- package/lib/locale/es-ES.js +4 -1
- package/lib/locale/fa-IR.js +4 -1
- package/lib/locale/fr-FR.js +4 -1
- package/lib/locale/id-ID.js +4 -1
- package/lib/locale/it-IT.js +4 -1
- package/lib/locale/ja-JP.js +4 -1
- package/lib/locale/ko-KR.js +4 -1
- package/lib/locale/pl-PL.js +4 -1
- package/lib/locale/pt-BR.js +4 -1
- package/lib/locale/ru-RU.js +4 -1
- package/lib/locale/sk-SK.js +4 -1
- package/lib/locale/vi-VN.js +4 -1
- package/lib/locale/zh-CN.js +4 -1
- package/lib/locale/zh-HK.js +4 -1
- package/lib/locale/zh-TW.js +4 -1
- package/lib/types/{controllers/cell-alert.controller.d.ts → commands/commands/set-zoom-ratio-from-toolbar.command.d.ts} +4 -8
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +1 -9
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +4 -1
- package/lib/types/menu/frozen.menu.d.ts +2 -0
- package/lib/types/menu/fullscreen.menu.d.ts +19 -0
- package/lib/types/menu/menu.d.ts +1 -0
- package/lib/types/menu/text-to-number.menu.d.ts +0 -2
- package/lib/types/menu/zoom.menu.d.ts +20 -0
- package/lib/types/services/cell-dropdown-manager.service.d.ts +1 -3
- package/lib/types/services/sheet-loading-render.service.d.ts +65 -0
- package/lib/types/views/CellPopup.d.ts +2 -2
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +1 -1
- package/lib/types/views/dropdown/CascaderDropdown.d.ts +2 -2
- package/lib/types/views/dropdown/ColorDropdown.d.ts +2 -2
- package/lib/types/views/dropdown/DateDropdown.d.ts +2 -2
- package/lib/types/views/dropdown/ListDropDown.d.ts +2 -2
- package/lib/types/views/hook.d.ts +4 -0
- package/lib/types/views/sheet-slider/SheetZoomInput.d.ts +18 -0
- package/lib/umd/index.js +11 -11
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
|
@@ -58,13 +58,14 @@ declare const locale: {
|
|
|
58
58
|
main: string;
|
|
59
59
|
right: string;
|
|
60
60
|
};
|
|
61
|
+
shrinkToFit: string;
|
|
61
62
|
textRotateMode: {
|
|
62
63
|
main: string;
|
|
63
64
|
right: string;
|
|
64
65
|
};
|
|
65
66
|
more: string;
|
|
66
67
|
toggleGridlines: string;
|
|
67
|
-
|
|
68
|
+
fullscreen: string;
|
|
68
69
|
};
|
|
69
70
|
align: {
|
|
70
71
|
left: string;
|
|
@@ -135,6 +136,7 @@ declare const locale: {
|
|
|
135
136
|
rotationDown: string;
|
|
136
137
|
};
|
|
137
138
|
sheetConfig: {
|
|
139
|
+
sheetTabs: string;
|
|
138
140
|
delete: string;
|
|
139
141
|
copy: string;
|
|
140
142
|
rename: string;
|
|
@@ -417,6 +419,7 @@ declare const locale: {
|
|
|
417
419
|
EditExtraObject: string;
|
|
418
420
|
};
|
|
419
421
|
dialog: {
|
|
422
|
+
emptyList: string;
|
|
420
423
|
allowUserToEdit: string;
|
|
421
424
|
allowedPermissionType: string;
|
|
422
425
|
setCellValue: string;
|
|
@@ -17,6 +17,8 @@ import type { IAccessor } from '@univerjs/core';
|
|
|
17
17
|
import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
18
18
|
import type { LocaleKey } from '../locale/types';
|
|
19
19
|
export declare const SHEET_FROZEN_MENU_ID = "sheet.menu.sheet-frozen";
|
|
20
|
+
export declare const SHEET_FROZEN_TOOLBAR_MENU_ID = "sheet.toolbar.sheet-frozen";
|
|
21
|
+
export declare function SheetFrozenToolbarMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey>;
|
|
20
22
|
export declare function SheetFrozenMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey>;
|
|
21
23
|
export declare const SHEET_FROZEN_COLUMN_HEADER_MENU_ID = "sheet.column-header-menu.sheet-frozen";
|
|
22
24
|
export declare function SheetFrozenColumnHeaderMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IAccessor } from '@univerjs/core';
|
|
17
|
+
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
18
|
+
import type { LocaleKey } from '../locale/types';
|
|
19
|
+
export declare function FullscreenMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
package/lib/types/menu/menu.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export declare const TEXT_WRAP_CHILDREN: {
|
|
|
52
52
|
value: WrapStrategy;
|
|
53
53
|
}[];
|
|
54
54
|
export declare function WrapTextMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, WrapStrategy>;
|
|
55
|
+
export declare function ShrinkToFitMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
55
56
|
export declare const TEXT_ROTATE_CHILDREN: ({
|
|
56
57
|
label: string;
|
|
57
58
|
icon: string;
|
|
@@ -16,7 +16,5 @@
|
|
|
16
16
|
import type { IAccessor } from '@univerjs/core';
|
|
17
17
|
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
18
18
|
import type { LocaleKey } from '../locale/types';
|
|
19
|
-
export declare const TEXT_TO_NUMBER_TOOLBAR_MENU_ID = "sheet.toolbar.text-to-number";
|
|
20
|
-
export declare function Text2NumberToolbarMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
21
19
|
export declare const TEXT_TO_NUMBER_CONTEXT_MENU_ID = "sheet.contextMenu.text-to-number";
|
|
22
20
|
export declare function Text2NumberContextMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IAccessor } from '@univerjs/core';
|
|
17
|
+
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
18
|
+
import type { LocaleKey } from '../locale/types';
|
|
19
|
+
export declare const ZOOM_RATIO_MENU_ID = "sheet.menu.zoom-ratio";
|
|
20
|
+
export declare function ZoomRatioMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey, number>;
|
|
@@ -18,7 +18,6 @@ import type { ISheetLocation } from '@univerjs/sheets';
|
|
|
18
18
|
import type { ICellDropdown } from '../views/dropdown';
|
|
19
19
|
import { Disposable } from '@univerjs/core';
|
|
20
20
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
21
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
22
21
|
import { SheetCanvasPopManagerService } from './canvas-pop-manager.service';
|
|
23
22
|
export type IDropdownParam = {
|
|
24
23
|
location: ISheetLocation;
|
|
@@ -37,7 +36,6 @@ export declare const ISheetCellDropdownManagerService: import("@wendellhu/redi")
|
|
|
37
36
|
export declare class SheetCellDropdownManagerService extends Disposable implements ISheetCellDropdownManagerService {
|
|
38
37
|
private readonly _canvasPopupManagerService;
|
|
39
38
|
private readonly _renderManagerService;
|
|
40
|
-
|
|
41
|
-
constructor(_canvasPopupManagerService: SheetCanvasPopManagerService, _renderManagerService: IRenderManagerService, _componentManager: ComponentManager);
|
|
39
|
+
constructor(_canvasPopupManagerService: SheetCanvasPopManagerService, _renderManagerService: IRenderManagerService);
|
|
42
40
|
showDropdown(param: IDropdownParam): IDisposable;
|
|
43
41
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { ICellData, IObjectMatrixPrimitiveType, IWorkbookData } from '@univerjs/core';
|
|
17
|
+
import { Disposable, Injector, Workbook } from '@univerjs/core';
|
|
18
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
19
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
20
|
+
import { ILayoutService } from '@univerjs/ui';
|
|
21
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
22
|
+
export interface ISheetLoadingRenderService {
|
|
23
|
+
readonly workbook$: Observable<Workbook | null>;
|
|
24
|
+
readonly loading$: Observable<boolean>;
|
|
25
|
+
readonly previewReady$: Observable<boolean>;
|
|
26
|
+
showSkeleton(workbookData: IWorkbookData, activeSheetId: string): void;
|
|
27
|
+
show(workbookData: IWorkbookData, activeSheetId: string, cellData?: IObjectMatrixPrimitiveType<ICellData>): void;
|
|
28
|
+
handoff(sourceUnitId: string, timeoutMs: number): Promise<boolean>;
|
|
29
|
+
hide(sourceUnitId: string): void;
|
|
30
|
+
}
|
|
31
|
+
export declare const ISheetLoadingRenderService: import("@wendellhu/redi").IdentifierDecorator<ISheetLoadingRenderService>;
|
|
32
|
+
/**
|
|
33
|
+
* Renders a read-only workbook shell without registering it in IUniverInstanceService.
|
|
34
|
+
* The temporary workbook is therefore invisible to formulas, RPC and collaboration.
|
|
35
|
+
*/
|
|
36
|
+
export declare class SheetLoadingRenderService extends Disposable implements ISheetLoadingRenderService {
|
|
37
|
+
private readonly _injector;
|
|
38
|
+
private readonly _layoutService;
|
|
39
|
+
private readonly _sheetInterceptorService;
|
|
40
|
+
private readonly _renderManagerService;
|
|
41
|
+
readonly workbook$: BehaviorSubject<Workbook | null>;
|
|
42
|
+
readonly loading$: BehaviorSubject<boolean>;
|
|
43
|
+
readonly previewReady$: BehaviorSubject<boolean>;
|
|
44
|
+
private _loadingRender;
|
|
45
|
+
private _finalCanvasGuard;
|
|
46
|
+
private _hiddenFinalCanvas;
|
|
47
|
+
private _finalCanvasVisibility;
|
|
48
|
+
constructor(_injector: Injector, _layoutService: ILayoutService, _sheetInterceptorService: SheetInterceptorService, _renderManagerService: IRenderManagerService);
|
|
49
|
+
showSkeleton(workbookData: IWorkbookData, activeSheetId: string): void;
|
|
50
|
+
show(workbookData: IWorkbookData, activeSheetId: string, cellData?: IObjectMatrixPrimitiveType<ICellData>): void;
|
|
51
|
+
handoff(sourceUnitId: string, timeoutMs: number): Promise<boolean>;
|
|
52
|
+
hide(sourceUnitId: string): void;
|
|
53
|
+
dispose(): void;
|
|
54
|
+
private _createLoadingWorkbook;
|
|
55
|
+
private _createLoadingRender;
|
|
56
|
+
private _waitForFinalCanvas;
|
|
57
|
+
private _getFinalRender$;
|
|
58
|
+
private _guardFinalCanvas;
|
|
59
|
+
private _requestFinalRender;
|
|
60
|
+
private _hideFinalCanvas;
|
|
61
|
+
private _restoreFinalCanvas;
|
|
62
|
+
private _waitForNextAnimationFrame;
|
|
63
|
+
private _disposeLoadingRender;
|
|
64
|
+
private _disposeRender;
|
|
65
|
+
}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { ISheetLocationBase } from '@univerjs/sheets';
|
|
17
|
-
import type {
|
|
17
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
18
18
|
export declare const CellPopup: (props: {
|
|
19
|
-
popup:
|
|
19
|
+
popup: IPopupWithExtraProps<ISheetLocationBase & {
|
|
20
20
|
direction: "horizontal" | "vertical";
|
|
21
21
|
}>;
|
|
22
22
|
}) => import("react").JSX.Element;
|
|
@@ -22,4 +22,4 @@ export interface IDefinedNameInputProps extends Omit<IDefinedNamesServiceParam,
|
|
|
22
22
|
cancel?: () => void;
|
|
23
23
|
id?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const DefinedNameInput: (props: IDefinedNameInputProps) => import("react").JSX.Element |
|
|
25
|
+
export declare const DefinedNameInput: (props: IDefinedNameInputProps) => import("react").JSX.Element | null;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { ICascaderOption } from '@univerjs/design';
|
|
17
|
-
import type {
|
|
17
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
18
18
|
import type { IBaseDropdownProps } from './type';
|
|
19
19
|
export interface ICascaderDropdownProps {
|
|
20
20
|
options: ICascaderOption[];
|
|
@@ -22,7 +22,7 @@ export interface ICascaderDropdownProps {
|
|
|
22
22
|
onChange: (value: string[]) => void;
|
|
23
23
|
}
|
|
24
24
|
export declare function CascaderDropdown(props: {
|
|
25
|
-
popup:
|
|
25
|
+
popup: IPopupWithExtraProps<ICascaderDropdownProps & IBaseDropdownProps>;
|
|
26
26
|
}): import("react").JSX.Element;
|
|
27
27
|
export declare namespace CascaderDropdown {
|
|
28
28
|
var componentKey: string;
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
17
17
|
import type { IBaseDropdownProps } from './type';
|
|
18
18
|
export interface IColorDropdownProps {
|
|
19
19
|
defaultValue?: string;
|
|
20
20
|
onChange?: (value: string) => void;
|
|
21
21
|
}
|
|
22
22
|
export declare function ColorDropdown(props: {
|
|
23
|
-
popup:
|
|
23
|
+
popup: IPopupWithExtraProps<IColorDropdownProps & IBaseDropdownProps>;
|
|
24
24
|
}): import("react").JSX.Element;
|
|
25
25
|
export declare namespace ColorDropdown {
|
|
26
26
|
var componentKey: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { DateKit } from '@univerjs/core';
|
|
17
|
-
import type {
|
|
17
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
18
18
|
import type { IBaseDropdownProps } from './type';
|
|
19
19
|
export interface IDateDropdownProps {
|
|
20
20
|
defaultValue?: DateKit;
|
|
@@ -23,7 +23,7 @@ export interface IDateDropdownProps {
|
|
|
23
23
|
showTime?: boolean;
|
|
24
24
|
}
|
|
25
25
|
export declare function DateDropdown(props: {
|
|
26
|
-
popup:
|
|
26
|
+
popup: IPopupWithExtraProps<IDateDropdownProps & IBaseDropdownProps>;
|
|
27
27
|
}): import("react").JSX.Element;
|
|
28
28
|
export declare namespace DateDropdown {
|
|
29
29
|
var componentKey: string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
17
17
|
import type { IBaseDropdownProps } from './type';
|
|
18
18
|
export interface IListDropdownProps {
|
|
19
19
|
multiple?: boolean;
|
|
@@ -29,7 +29,7 @@ export interface IListDropdownProps {
|
|
|
29
29
|
showSearch?: boolean;
|
|
30
30
|
}
|
|
31
31
|
export declare function ListDropDown(props: {
|
|
32
|
-
popup:
|
|
32
|
+
popup: IPopupWithExtraProps<IListDropdownProps & IBaseDropdownProps>;
|
|
33
33
|
}): import("react").JSX.Element | null;
|
|
34
34
|
export declare namespace ListDropDown {
|
|
35
35
|
var componentKey: string;
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
18
|
+
export declare const SheetLoadingWorkbookContext: import("react").Context<Workbook | null>;
|
|
18
19
|
export declare function useActiveWorkbook(): Workbook | null;
|
|
20
|
+
export declare function useSheetLoadingWorkbook(): Workbook | null;
|
|
21
|
+
export declare function useSheetLoading(): boolean;
|
|
22
|
+
export declare function useSheetLoadingPreviewReady(): boolean;
|
|
19
23
|
export declare function useActiveWorksheet(workbook?: Workbook | null): import("@univerjs/core").Nullable<import("@univerjs/core").Worksheet>;
|
|
20
24
|
export declare function useWorkbooks(): Workbook[];
|
|
21
25
|
export declare function useSheetSkeleton(): SheetSkeletonManagerService | null | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IZoomInputProps } from '@univerjs/ui';
|
|
17
|
+
export declare const SHEET_ZOOM_INPUT_COMPONENT = "SHEET_ZOOM_INPUT_COMPONENT";
|
|
18
|
+
export declare function SheetZoomInput(props: Omit<IZoomInputProps, 'className' | 'onChange'>): import("react").JSX.Element;
|