@univerjs/sheets-ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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/facade.js +47 -37
- package/lib/cjs/index.js +8906 -7574
- package/lib/cjs/locale/ar-SA.js +9 -1
- package/lib/cjs/locale/ca-ES.js +9 -1
- package/lib/cjs/locale/de-DE.js +9 -1
- package/lib/cjs/locale/en-US.js +9 -1
- package/lib/cjs/locale/es-ES.js +10 -2
- package/lib/cjs/locale/fa-IR.js +9 -1
- package/lib/cjs/locale/fr-FR.js +9 -1
- package/lib/cjs/locale/id-ID.js +9 -1
- package/lib/cjs/locale/it-IT.js +9 -1
- package/lib/cjs/locale/ja-JP.js +9 -1
- package/lib/cjs/locale/ko-KR.js +9 -1
- package/lib/cjs/locale/pl-PL.js +9 -1
- package/lib/cjs/locale/pt-BR.js +9 -1
- package/lib/cjs/locale/ru-RU.js +9 -1
- package/lib/cjs/locale/sk-SK.js +9 -1
- package/lib/cjs/locale/vi-VN.js +9 -1
- package/lib/cjs/locale/zh-CN.js +9 -1
- package/lib/cjs/locale/zh-HK.js +9 -1
- package/lib/cjs/locale/zh-TW.js +9 -1
- package/lib/es/facade.js +47 -37
- package/lib/es/index.js +8894 -7559
- package/lib/es/locale/ar-SA.js +9 -1
- package/lib/es/locale/ca-ES.js +9 -1
- package/lib/es/locale/de-DE.js +9 -1
- package/lib/es/locale/en-US.js +9 -1
- package/lib/es/locale/es-ES.js +10 -2
- package/lib/es/locale/fa-IR.js +9 -1
- package/lib/es/locale/fr-FR.js +9 -1
- package/lib/es/locale/id-ID.js +9 -1
- package/lib/es/locale/it-IT.js +9 -1
- package/lib/es/locale/ja-JP.js +9 -1
- package/lib/es/locale/ko-KR.js +9 -1
- package/lib/es/locale/pl-PL.js +9 -1
- package/lib/es/locale/pt-BR.js +9 -1
- package/lib/es/locale/ru-RU.js +9 -1
- package/lib/es/locale/sk-SK.js +9 -1
- package/lib/es/locale/vi-VN.js +9 -1
- package/lib/es/locale/zh-CN.js +9 -1
- package/lib/es/locale/zh-HK.js +9 -1
- package/lib/es/locale/zh-TW.js +9 -1
- package/lib/facade.js +47 -37
- package/lib/index.css +49 -0
- package/lib/index.js +8894 -7559
- package/lib/locale/ar-SA.js +9 -1
- package/lib/locale/ca-ES.js +9 -1
- package/lib/locale/de-DE.js +9 -1
- package/lib/locale/en-US.js +9 -1
- package/lib/locale/es-ES.js +10 -2
- package/lib/locale/fa-IR.js +9 -1
- package/lib/locale/fr-FR.js +9 -1
- package/lib/locale/id-ID.js +9 -1
- package/lib/locale/it-IT.js +9 -1
- package/lib/locale/ja-JP.js +9 -1
- package/lib/locale/ko-KR.js +9 -1
- package/lib/locale/pl-PL.js +9 -1
- package/lib/locale/pt-BR.js +9 -1
- package/lib/locale/ru-RU.js +9 -1
- package/lib/locale/sk-SK.js +9 -1
- package/lib/locale/vi-VN.js +9 -1
- package/lib/locale/zh-CN.js +9 -1
- package/lib/locale/zh-HK.js +9 -1
- package/lib/locale/zh-TW.js +9 -1
- package/lib/types/commands/commands/set-scroll.command.d.ts +3 -0
- 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/editor/editing.render-controller.d.ts +1 -0
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +1 -0
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +1 -9
- package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +7 -2
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +7 -1
- package/lib/types/controllers/render-controllers/header-unhide.render-controller.d.ts +0 -1
- package/lib/types/embed-tab-anchor.d.ts +23 -0
- package/lib/types/facade/f-univer.d.ts +1 -0
- package/lib/types/index.d.ts +17 -3
- package/lib/types/locale/en-US.d.ts +9 -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/canvas-pop-manager.service.d.ts +9 -0
- package/lib/types/services/cell-dropdown-manager.service.d.ts +1 -3
- package/lib/types/services/cell-popup-manager.service.d.ts +1 -0
- package/lib/types/services/editor/cell-editor-resize.service.d.ts +4 -1
- package/lib/types/services/editor-bridge.service.d.ts +2 -0
- package/lib/types/services/print-interceptor.service.d.ts +8 -0
- package/lib/types/services/selection/base-selection-render.service.d.ts +1 -0
- package/lib/types/services/sheet-embed-integration.service.d.ts +126 -0
- package/lib/types/services/sheet-embed-runtime.service.d.ts +26 -0
- package/lib/types/services/sheet-host-chrome-override.service.d.ts +25 -0
- package/lib/types/services/sheet-loading-render.service.d.ts +65 -0
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +2 -0
- package/lib/types/views/CellPopup.d.ts +2 -2
- package/lib/types/views/border-panel/interface.d.ts +63 -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/editor-container/EditorContainer.d.ts +7 -5
- package/lib/types/{menu/mobile-menu.d.ts → views/editor-container/EditorContainer.spec.d.ts} +1 -1
- package/lib/types/views/editor-container/focus-editor.d.ts +25 -0
- package/lib/types/views/hook.d.ts +4 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +2 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/sheet-tab-drag-sort.d.ts +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +2 -1
- package/lib/types/views/sheet-slider/SheetZoomInput.d.ts +18 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +12 -12
- 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 +16 -16
package/lib/locale/vi-VN.js
CHANGED
|
@@ -43,13 +43,14 @@ const locale = { "sheets-ui": {
|
|
|
43
43
|
main: "Ngắt dòng văn bản",
|
|
44
44
|
right: "Chọn kiểu ngắt"
|
|
45
45
|
},
|
|
46
|
+
shrinkToFit: "Thu nhỏ để vừa",
|
|
46
47
|
textRotateMode: {
|
|
47
48
|
main: "Xoay văn bản",
|
|
48
49
|
right: "Chọn kiểu xoay"
|
|
49
50
|
},
|
|
50
51
|
more: "Thêm",
|
|
51
52
|
toggleGridlines: "Chuyển đổi đường lưới",
|
|
52
|
-
|
|
53
|
+
fullscreen: "Toàn màn hình"
|
|
53
54
|
},
|
|
54
55
|
align: {
|
|
55
56
|
left: "Căn trái",
|
|
@@ -79,6 +80,11 @@ const locale = { "sheets-ui": {
|
|
|
79
80
|
borderInside: "Bên trong",
|
|
80
81
|
borderHorizontal: "Đường ngang bên trong",
|
|
81
82
|
borderVertical: "Đường dọc bên trong",
|
|
83
|
+
borderTlbr: "Đường viền chéo xuống",
|
|
84
|
+
borderTlbcTlmr: "Đường viền chéo xuống kép",
|
|
85
|
+
borderTlbrTlbcTlmr: "Đường viền chéo xuống ba",
|
|
86
|
+
borderBlTr: "Đường viền chéo lên",
|
|
87
|
+
borderMltrBctr: "Đường viền chéo lên kép",
|
|
82
88
|
borderColor: "Màu viền",
|
|
83
89
|
borderSize: "Độ dày viền",
|
|
84
90
|
borderType: "Loại đường viền"
|
|
@@ -113,6 +119,7 @@ const locale = { "sheets-ui": {
|
|
|
113
119
|
rotationDown: "Xoay xuống"
|
|
114
120
|
},
|
|
115
121
|
sheetConfig: {
|
|
122
|
+
sheetTabs: "Thẻ trang tính",
|
|
116
123
|
delete: "Xóa",
|
|
117
124
|
copy: "Sao chép",
|
|
118
125
|
rename: "Đổi tên",
|
|
@@ -389,6 +396,7 @@ const locale = { "sheets-ui": {
|
|
|
389
396
|
EditExtraObject: "Chỉnh sửa đối tượng khác"
|
|
390
397
|
},
|
|
391
398
|
dialog: {
|
|
399
|
+
emptyList: "Danh sách người dùng trống",
|
|
392
400
|
allowUserToEdit: "Cho phép người dùng chỉnh sửa",
|
|
393
401
|
allowedPermissionType: "Loại quyền hạn cho phép",
|
|
394
402
|
setCellValue: "Thiết lập giá trị ô",
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -43,13 +43,14 @@ const locale = { "sheets-ui": {
|
|
|
43
43
|
main: "文本换行",
|
|
44
44
|
right: "换行方式"
|
|
45
45
|
},
|
|
46
|
+
shrinkToFit: "缩小字体填充",
|
|
46
47
|
textRotateMode: {
|
|
47
48
|
main: "文本旋转",
|
|
48
49
|
right: "旋转方式"
|
|
49
50
|
},
|
|
50
51
|
more: "更多",
|
|
51
52
|
toggleGridlines: "切换网格线",
|
|
52
|
-
|
|
53
|
+
fullscreen: "全屏"
|
|
53
54
|
},
|
|
54
55
|
align: {
|
|
55
56
|
left: "左对齐",
|
|
@@ -79,6 +80,11 @@ const locale = { "sheets-ui": {
|
|
|
79
80
|
borderInside: "内侧",
|
|
80
81
|
borderHorizontal: "内侧横线",
|
|
81
82
|
borderVertical: "内侧竖线",
|
|
83
|
+
borderTlbr: "右下斜线",
|
|
84
|
+
borderTlbcTlmr: "右下双斜线",
|
|
85
|
+
borderTlbrTlbcTlmr: "右下三斜线",
|
|
86
|
+
borderBlTr: "右上斜线",
|
|
87
|
+
borderMltrBctr: "右上双斜线",
|
|
82
88
|
borderColor: "边框颜色",
|
|
83
89
|
borderSize: "边框粗细",
|
|
84
90
|
borderType: "边框线类型"
|
|
@@ -113,6 +119,7 @@ const locale = { "sheets-ui": {
|
|
|
113
119
|
rotationDown: "向下90°"
|
|
114
120
|
},
|
|
115
121
|
sheetConfig: {
|
|
122
|
+
sheetTabs: "工作表标签页",
|
|
116
123
|
delete: "删除",
|
|
117
124
|
copy: "复制",
|
|
118
125
|
rename: "重命名",
|
|
@@ -389,6 +396,7 @@ const locale = { "sheets-ui": {
|
|
|
389
396
|
EditExtraObject: "编辑其他对象"
|
|
390
397
|
},
|
|
391
398
|
dialog: {
|
|
399
|
+
emptyList: "用户列表为空",
|
|
392
400
|
allowUserToEdit: "允许用户编辑",
|
|
393
401
|
allowedPermissionType: "允许权限类型",
|
|
394
402
|
setCellValue: "设置单元格值",
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -43,13 +43,14 @@ const locale = { "sheets-ui": {
|
|
|
43
43
|
main: "自動換行",
|
|
44
44
|
right: "換行方式"
|
|
45
45
|
},
|
|
46
|
+
shrinkToFit: "縮小字型填滿",
|
|
46
47
|
textRotateMode: {
|
|
47
48
|
main: "文字旋轉",
|
|
48
49
|
right: "旋轉方式"
|
|
49
50
|
},
|
|
50
51
|
more: "更多",
|
|
51
52
|
toggleGridlines: "切換網格線",
|
|
52
|
-
|
|
53
|
+
fullscreen: "全螢幕"
|
|
53
54
|
},
|
|
54
55
|
align: {
|
|
55
56
|
left: "靠左對齊",
|
|
@@ -79,6 +80,11 @@ const locale = { "sheets-ui": {
|
|
|
79
80
|
borderInside: "內側",
|
|
80
81
|
borderHorizontal: "內側水平框線",
|
|
81
82
|
borderVertical: "內側垂直框線",
|
|
83
|
+
borderTlbr: "右下斜線",
|
|
84
|
+
borderTlbcTlmr: "右下雙斜線",
|
|
85
|
+
borderTlbrTlbcTlmr: "右下三斜線",
|
|
86
|
+
borderBlTr: "右上斜線",
|
|
87
|
+
borderMltrBctr: "右上雙斜線",
|
|
82
88
|
borderColor: "邊框顏色",
|
|
83
89
|
borderSize: "邊框粗細",
|
|
84
90
|
borderType: "邊框線類型"
|
|
@@ -113,6 +119,7 @@ const locale = { "sheets-ui": {
|
|
|
113
119
|
rotationDown: "向下90°"
|
|
114
120
|
},
|
|
115
121
|
sheetConfig: {
|
|
122
|
+
sheetTabs: "工作表分頁",
|
|
116
123
|
delete: "刪除",
|
|
117
124
|
copy: "複製",
|
|
118
125
|
rename: "重新命名",
|
|
@@ -389,6 +396,7 @@ const locale = { "sheets-ui": {
|
|
|
389
396
|
EditExtraObject: "編輯其他物件"
|
|
390
397
|
},
|
|
391
398
|
dialog: {
|
|
399
|
+
emptyList: "使用者清單為空",
|
|
392
400
|
allowUserToEdit: "允許使用者編輯",
|
|
393
401
|
allowedPermissionType: "允許權限類型",
|
|
394
402
|
setCellValue: "設定儲存格值",
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -43,13 +43,14 @@ const locale = { "sheets-ui": {
|
|
|
43
43
|
main: "自動換行",
|
|
44
44
|
right: "換行方式"
|
|
45
45
|
},
|
|
46
|
+
shrinkToFit: "縮小字型填滿",
|
|
46
47
|
textRotateMode: {
|
|
47
48
|
main: "文字旋轉",
|
|
48
49
|
right: "旋轉方式"
|
|
49
50
|
},
|
|
50
51
|
more: "更多",
|
|
51
52
|
toggleGridlines: "切換網格線",
|
|
52
|
-
|
|
53
|
+
fullscreen: "全螢幕"
|
|
53
54
|
},
|
|
54
55
|
align: {
|
|
55
56
|
left: "靠左對齊",
|
|
@@ -79,6 +80,11 @@ const locale = { "sheets-ui": {
|
|
|
79
80
|
borderInside: "內側",
|
|
80
81
|
borderHorizontal: "內側水平框線",
|
|
81
82
|
borderVertical: "內側垂直框線",
|
|
83
|
+
borderTlbr: "右下斜線",
|
|
84
|
+
borderTlbcTlmr: "右下雙斜線",
|
|
85
|
+
borderTlbrTlbcTlmr: "右下三斜線",
|
|
86
|
+
borderBlTr: "右上斜線",
|
|
87
|
+
borderMltrBctr: "右上雙斜線",
|
|
82
88
|
borderColor: "邊框顏色",
|
|
83
89
|
borderSize: "邊框粗細",
|
|
84
90
|
borderType: "邊框線類型"
|
|
@@ -113,6 +119,7 @@ const locale = { "sheets-ui": {
|
|
|
113
119
|
rotationDown: "向下90°"
|
|
114
120
|
},
|
|
115
121
|
sheetConfig: {
|
|
122
|
+
sheetTabs: "工作表分頁",
|
|
116
123
|
delete: "刪除",
|
|
117
124
|
copy: "複製",
|
|
118
125
|
rename: "重新命名",
|
|
@@ -389,6 +396,7 @@ const locale = { "sheets-ui": {
|
|
|
389
396
|
EditExtraObject: "編輯其他物件"
|
|
390
397
|
},
|
|
391
398
|
dialog: {
|
|
399
|
+
emptyList: "使用者清單為空",
|
|
392
400
|
allowUserToEdit: "允許使用者編輯",
|
|
393
401
|
allowedPermissionType: "允許權限類型",
|
|
394
402
|
setCellValue: "設定儲存格值",
|
|
@@ -19,6 +19,8 @@ export interface ISetScrollRelativeCommandParams {
|
|
|
19
19
|
offsetY?: number;
|
|
20
20
|
}
|
|
21
21
|
export interface IScrollCommandParams {
|
|
22
|
+
unitId?: string;
|
|
23
|
+
sheetId?: string;
|
|
22
24
|
offsetX?: number;
|
|
23
25
|
offsetY?: number;
|
|
24
26
|
/**
|
|
@@ -54,6 +56,7 @@ export interface IScrollToCellCommandParams {
|
|
|
54
56
|
range: IRange;
|
|
55
57
|
forceTop?: boolean;
|
|
56
58
|
forceLeft?: boolean;
|
|
59
|
+
unitId?: string;
|
|
57
60
|
}
|
|
58
61
|
/**
|
|
59
62
|
* The command is used to scroll to the specific cell if the target cell is not in the viewport.
|
|
@@ -13,12 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
20
|
-
export declare class CellAlertRenderController extends Disposable implements IRenderModule {
|
|
21
|
-
private readonly _context;
|
|
22
|
-
private _componentManager;
|
|
23
|
-
constructor(_context: IRenderContext<Workbook>, _componentManager: ComponentManager);
|
|
16
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
export interface ISetZoomRatioFromToolbarCommandParams {
|
|
18
|
+
value: number;
|
|
24
19
|
}
|
|
20
|
+
export declare const SetZoomRatioFromToolbarCommand: ICommand<ISetZoomRatioFromToolbarCommandParams>;
|
|
@@ -95,3 +95,4 @@ export declare function shouldSubmitCellEdit({ isEmpty, isCellImage, shouldSubmi
|
|
|
95
95
|
shouldSubmitEmptyCellImageEdit: boolean;
|
|
96
96
|
}): boolean;
|
|
97
97
|
export declare function getCellStyleBySnapshot(snapshot: IDocumentData): Nullable<IStyleData>;
|
|
98
|
+
export declare function emptyBody(body: IDocumentBody, removeStyle?: boolean): void;
|
|
@@ -32,6 +32,7 @@ export declare class FormulaEditorController extends RxDisposable {
|
|
|
32
32
|
private _loadedMap;
|
|
33
33
|
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _commandService: ICommandService, _contextService: IContextService, _formulaEditorManagerService: IFormulaEditorManagerService, _undoRedoService: IUndoRedoService, _textSelectionManagerService: DocSelectionManagerService, _editorService: IEditorService);
|
|
34
34
|
private _initialize;
|
|
35
|
+
private _syncFxBarFocusContext;
|
|
35
36
|
private _handleContentChange;
|
|
36
37
|
private _create;
|
|
37
38
|
private _listenFxBtnClick;
|
|
@@ -15,21 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
17
17
|
import type { MenuConfig } from '@univerjs/ui';
|
|
18
|
-
import { Disposable, IConfigService,
|
|
18
|
+
import { Disposable, IConfigService, IPermissionService } from '@univerjs/core';
|
|
19
19
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
20
|
import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
|
|
21
|
-
import { ComponentManager, IconManager } from '@univerjs/ui';
|
|
22
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
23
22
|
export interface IUniverSheetsPermissionMenuConfig {
|
|
24
23
|
menu: MenuConfig;
|
|
25
24
|
}
|
|
26
|
-
export declare class SheetPermissionRenderManagerController extends Disposable {
|
|
27
|
-
private _injector;
|
|
28
|
-
private _componentManager;
|
|
29
|
-
private _iconManager;
|
|
30
|
-
constructor(_injector: Injector, _componentManager: ComponentManager, _iconManager: IconManager);
|
|
31
|
-
private _init;
|
|
32
|
-
}
|
|
33
25
|
export declare class SheetPermissionRenderController extends Disposable implements IRenderModule {
|
|
34
26
|
private readonly _context;
|
|
35
27
|
private _rangeProtectionRuleModel;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import {
|
|
18
|
+
import type { ISheetHostChromeOverride } from '../../services/sheet-host-chrome-override.service';
|
|
19
|
+
import { Disposable, Injector } from '@univerjs/core';
|
|
19
20
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
20
21
|
import { IContextMenuService } from '@univerjs/ui';
|
|
21
22
|
import { ISheetSelectionRenderService } from '../../services/selection/base-selection-render.service';
|
|
@@ -28,6 +29,10 @@ export declare class SheetContextMenuRenderController extends Disposable impleme
|
|
|
28
29
|
private readonly _contextMenuService;
|
|
29
30
|
private readonly _selectionManagerService;
|
|
30
31
|
private readonly _selectionRenderService;
|
|
31
|
-
|
|
32
|
+
private readonly _injector;
|
|
33
|
+
constructor(_context: IRenderContext<Workbook>, _contextMenuService: IContextMenuService, _selectionManagerService: SheetsSelectionsService, _selectionRenderService: ISheetSelectionRenderService, _injector: Injector);
|
|
32
34
|
private _init;
|
|
35
|
+
private _shouldSuppressHostContextMenu;
|
|
36
|
+
private _getSheetHostChromeOverrideService;
|
|
33
37
|
}
|
|
38
|
+
export declare function shouldSuppressSheetContextMenuForEmbedOverride(hostUnitId: string, override: Pick<ISheetHostChromeOverride, 'entry' | 'hostUnitId'> | null | undefined): boolean;
|
|
@@ -19,6 +19,7 @@ import { ICommandService, IContextService, IUniverInstanceService, RxDisposable
|
|
|
19
19
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
20
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
21
21
|
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
22
|
+
import { ISheetEmbedRuntimeFocusCoordinator } from '../../services/sheet-embed-integration.service';
|
|
22
23
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
23
24
|
export declare class EditorBridgeRenderController extends RxDisposable implements IRenderModule {
|
|
24
25
|
private readonly _context;
|
|
@@ -29,8 +30,9 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
|
|
|
29
30
|
private readonly _contextService;
|
|
30
31
|
private readonly _renderManagerService;
|
|
31
32
|
private readonly _sheetSkeletonManagerService;
|
|
33
|
+
private readonly _embedRuntimeFocusCoordinator?;
|
|
32
34
|
private _d;
|
|
33
|
-
constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
35
|
+
constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _embedRuntimeFocusCoordinator?: ISheetEmbedRuntimeFocusCoordinator | undefined);
|
|
34
36
|
private _init;
|
|
35
37
|
private _disposeCurrent;
|
|
36
38
|
private _initSelectionChangeListener;
|
|
@@ -42,9 +44,13 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
|
|
|
42
44
|
* @param d DisposableCollection
|
|
43
45
|
*/
|
|
44
46
|
private _initialKeyboardListener;
|
|
47
|
+
private _initSheetFocusListener;
|
|
48
|
+
private _focusCellEditorInput;
|
|
45
49
|
private _commandExecutedListener;
|
|
46
50
|
private _showEditorByKeyboard;
|
|
47
51
|
private _tryHideEditor;
|
|
52
|
+
private _isEmbeddedFormulaEditorActive;
|
|
53
|
+
private _isCurrentEmbedRuntimeEvent;
|
|
48
54
|
private _hideEditor;
|
|
49
55
|
private _getSheetObject;
|
|
50
56
|
private _isCurrentSheetFocused;
|
|
@@ -19,7 +19,6 @@ import type { IHeaderUnhideRangeVisibleCheck } from '../../services/header-unhid
|
|
|
19
19
|
import { ICommandService, InterceptorManager, RxDisposable } from '@univerjs/core';
|
|
20
20
|
import { HeaderUnhideRangeService } from '../../services/header-unhide-range.service';
|
|
21
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
22
|
-
export type { IHeaderUnhideRangeVisibleCheck };
|
|
23
22
|
export declare const HEADER_UNHIDE_RANGE_VISIBLE_CHECK: import("@univerjs/core").IInterceptor<boolean, IHeaderUnhideRangeVisibleCheck>;
|
|
24
23
|
/**
|
|
25
24
|
* This controller controls rendering of the buttons to unhide hidden rows and columns.
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { IWorksheetData } from '@univerjs/core';
|
|
17
|
+
interface IEmbedSheetsTabCustomData {
|
|
18
|
+
version: 1;
|
|
19
|
+
embedId: string;
|
|
20
|
+
hostAnchorId: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function getEmbedSheetsTabCustomData(snapshot: Pick<IWorksheetData, 'custom'>): IEmbedSheetsTabCustomData | undefined;
|
|
23
|
+
export {};
|
|
@@ -137,6 +137,7 @@ export interface IFUniverSheetsUIMixin {
|
|
|
137
137
|
export declare class FUniverSheetsUIMixin extends FUniver implements IFUniverSheetsUIMixin {
|
|
138
138
|
private _initSheetUIEvent;
|
|
139
139
|
private _initObserverListener;
|
|
140
|
+
private _tryGetRenderDependency;
|
|
140
141
|
/**
|
|
141
142
|
* @ignore
|
|
142
143
|
*/
|
package/lib/types/index.d.ts
CHANGED
|
@@ -49,7 +49,8 @@ export { SheetPermissionOpenPanelOperation } from './commands/operations/sheet-p
|
|
|
49
49
|
export { SidebarDefinedNameOperation } from './commands/operations/sidebar-defined-name.operation';
|
|
50
50
|
export { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY, SHEET_VIEW_KEY } from './common/keys';
|
|
51
51
|
export { getCellRealRange, getViewportByCell } from './common/utils';
|
|
52
|
-
export {
|
|
52
|
+
export type { IUniverSheetsUIConfig } from './config/config';
|
|
53
|
+
export { SHEETS_UI_PLUGIN_CONFIG_KEY } from './config/config';
|
|
53
54
|
export { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';
|
|
54
55
|
export { SHEET_UI_PLUGIN_NAME } from './consts/plugin-name';
|
|
55
56
|
export { SheetsUIPart } from './consts/ui-name';
|
|
@@ -113,7 +114,7 @@ export { IMarkSelectionService, MarkSelectionService } from './services/mark-sel
|
|
|
113
114
|
export { SheetPermissionRenderManagerService } from './services/permission/sheet-permission-render-manager.service';
|
|
114
115
|
export type { ProtectedRangeShadowStrategy } from './services/permission/sheet-permission-render-manager.service';
|
|
115
116
|
export { SheetPermissionUserManagerService } from './services/permission/sheet-permission-user-list.service';
|
|
116
|
-
export { SheetPrintInterceptorService } from './services/print-interceptor.service';
|
|
117
|
+
export { SheetPrintingResourceCollector, SheetPrintInterceptorService } from './services/print-interceptor.service';
|
|
117
118
|
export { IRepeatLastActionService, RepeatLastActionPermission } from './services/repeat-last-action.service';
|
|
118
119
|
export type { RepeatableCommandHandler } from './services/repeat-last-action.service';
|
|
119
120
|
export { SheetScrollManagerService } from './services/scroll-manager.service';
|
|
@@ -124,14 +125,27 @@ export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
|
|
|
124
125
|
export { SelectionControl, SelectionControl as SelectionShape } from './services/selection/selection-control';
|
|
125
126
|
export { SheetSelectionRenderService } from './services/selection/selection-render.service';
|
|
126
127
|
export { SelectionShapeExtension } from './services/selection/selection-shape-extension';
|
|
128
|
+
export { ISheetEmbedFloatingGeometryService, ISheetEmbedInteractionBoundaryService, ISheetEmbedRuntimeFocusCoordinator, resolveActiveSheetEmbedRuntimeDomScope, resolveSheetEmbedRuntimeDomScope, SHEET_EMBED_CHILD_TYPE_ATTRIBUTE, SHEET_EMBED_CHILD_UNIT_ID_ATTRIBUTE, SHEET_EMBED_FLOAT_DOM_ATTRIBUTE, SHEET_EMBED_HOST_UNIT_ID_ATTRIBUTE, SHEET_EMBED_ID_ATTRIBUTE, SHEET_EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE, SHEET_EMBED_RUNTIME_FOCUS_ROLE_ATTRIBUTE, } from './services/sheet-embed-integration.service';
|
|
129
|
+
export type { ISheetEmbedRuntimeDomScope } from './services/sheet-embed-integration.service';
|
|
130
|
+
export { ISheetEmbedRuntimeService } from './services/sheet-embed-runtime.service';
|
|
131
|
+
export type { ISheetEmbedTabMountParams } from './services/sheet-embed-runtime.service';
|
|
132
|
+
export { ISheetHostChromeOverrideService } from './services/sheet-host-chrome-override.service';
|
|
133
|
+
export type { ISheetHostChromeOverride } from './services/sheet-host-chrome-override.service';
|
|
134
|
+
export { ISheetLoadingRenderService } from './services/sheet-loading-render.service';
|
|
127
135
|
export { SheetSkeletonManagerService } from './services/sheet-skeleton-manager.service';
|
|
128
136
|
export { SheetsRenderService } from './services/sheets-render.service';
|
|
129
137
|
export { IStatusBarService, StatusBarService } from './services/status-bar.service';
|
|
130
138
|
export { calculateDocSkeletonRects, getCustomRangePosition, getEditingCustomRangePosition, } from './services/utils/doc-skeleton-util';
|
|
131
|
-
export {
|
|
139
|
+
export { AutoFillPopupMenu } from './views/auto-fill-popup-menu/AutoFillPopupMenu';
|
|
140
|
+
export { BorderLine } from './views/border-panel/border-line/BorderLine';
|
|
141
|
+
export { BORDER_LINE_CHILDREN, BORDER_SIZE_CHILDREN } from './views/border-panel/interface';
|
|
142
|
+
export { EditorContainer, useKeyEventConfig } from './views/editor-container';
|
|
143
|
+
export { FormulaBar } from './views/formula-bar';
|
|
132
144
|
export { useActiveWorkbook, useActiveWorksheet, useWorkbooks } from './views/hook';
|
|
133
145
|
export type { IRangeProtectionRenderCellData } from './views/permission/extensions/range-protection.render';
|
|
134
146
|
export { type IPermissionDetailUserPartProps } from './views/permission/panel-detail/PermissionDetailUserPart';
|
|
135
147
|
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
|
|
148
|
+
export { SheetBar } from './views/sheet-bar/SheetBar';
|
|
149
|
+
export { SHEET_FOOTER_BAR_HEIGHT } from './views/sheet-container/SheetContainer';
|
|
136
150
|
export { type IStatisticItem } from './views/status-bar/CopyableStatisticItem';
|
|
137
151
|
export { functionDisplayNames } from './views/status-bar/CopyableStatisticItem';
|
|
@@ -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;
|
|
@@ -94,6 +95,11 @@ declare const locale: {
|
|
|
94
95
|
borderInside: string;
|
|
95
96
|
borderHorizontal: string;
|
|
96
97
|
borderVertical: string;
|
|
98
|
+
borderTlbr: string;
|
|
99
|
+
borderTlbcTlmr: string;
|
|
100
|
+
borderTlbrTlbcTlmr: string;
|
|
101
|
+
borderBlTr: string;
|
|
102
|
+
borderMltrBctr: string;
|
|
97
103
|
borderColor: string;
|
|
98
104
|
borderSize: string;
|
|
99
105
|
borderType: string;
|
|
@@ -130,6 +136,7 @@ declare const locale: {
|
|
|
130
136
|
rotationDown: string;
|
|
131
137
|
};
|
|
132
138
|
sheetConfig: {
|
|
139
|
+
sheetTabs: string;
|
|
133
140
|
delete: string;
|
|
134
141
|
copy: string;
|
|
135
142
|
rename: string;
|
|
@@ -412,6 +419,7 @@ declare const locale: {
|
|
|
412
419
|
EditExtraObject: string;
|
|
413
420
|
};
|
|
414
421
|
dialog: {
|
|
422
|
+
emptyList: string;
|
|
415
423
|
allowUserToEdit: string;
|
|
416
424
|
allowedPermissionType: string;
|
|
417
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>;
|
|
@@ -17,6 +17,7 @@ import type { DrawingTypeEnum, ICommandInfo, INeedCheckDisposable, IRange, Nulla
|
|
|
17
17
|
import type { BaseObject, IBoundRectNoAngle, Viewport } from '@univerjs/engine-render';
|
|
18
18
|
import type { ISheetLocationBase } from '@univerjs/sheets';
|
|
19
19
|
import type { IPopup } from '@univerjs/ui';
|
|
20
|
+
import type { Observable } from 'rxjs';
|
|
20
21
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
21
22
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
22
23
|
import { RefRangeService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
@@ -45,6 +46,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
|
|
|
45
46
|
private readonly _selectionManagerService;
|
|
46
47
|
private _popupMenuFeatureMap;
|
|
47
48
|
private _popupMenuOffsetMap;
|
|
49
|
+
private readonly _popupDisposables;
|
|
48
50
|
constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _refRangeService: RefRangeService, _commandService: ICommandService, _refSelectionsService: ISheetSelectionRenderService, _selectionManagerService: SheetsSelectionsService);
|
|
49
51
|
private _isSelectionMoving;
|
|
50
52
|
private _initMoving;
|
|
@@ -83,6 +85,11 @@ export declare class SheetCanvasPopManagerService extends Disposable {
|
|
|
83
85
|
dispose: () => void;
|
|
84
86
|
canDispose: () => boolean;
|
|
85
87
|
} | null | undefined;
|
|
88
|
+
attachPopupToDynamicAbsolutePosition(bound: IBoundRectNoAngle, anchorRect$: Observable<IBoundRectNoAngle>, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string): {
|
|
89
|
+
dispose: () => void;
|
|
90
|
+
canDispose: () => boolean;
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
private _attachAbsolutePopup;
|
|
86
93
|
/**
|
|
87
94
|
* Bind popup to the right part of cell at(row, col).
|
|
88
95
|
* This popup would move with the cell.
|
|
@@ -105,6 +112,8 @@ export declare class SheetCanvasPopManagerService extends Disposable {
|
|
|
105
112
|
* @param showOnSelectionMoving
|
|
106
113
|
*/
|
|
107
114
|
attachRangePopup(range: IRange, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string, viewport?: Viewport, showOnSelectionMoving?: boolean): Nullable<INeedCheckDisposable>;
|
|
115
|
+
private _resolveEmbeddedPopupInjector;
|
|
116
|
+
private _trackPopupDisposable;
|
|
108
117
|
/**
|
|
109
118
|
*
|
|
110
119
|
* @param initialRow
|
|
@@ -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
|
}
|
|
@@ -44,4 +44,5 @@ export declare class CellPopupManagerService extends Disposable {
|
|
|
44
44
|
showPopup(location: ISheetLocationBase, popup: ICellPopup): IDisposable;
|
|
45
45
|
getPopups(unitId: string, subUnitId: string, row: number, col: number, direction: 'horizontal' | 'vertical'): ICellPopup[];
|
|
46
46
|
hidePopup(unitId: string, subUnitId: string, row: number, col: number): void;
|
|
47
|
+
hidePopupsForUnit(unitId: string, subUnitId?: string): void;
|
|
47
48
|
}
|
|
@@ -17,6 +17,7 @@ import { Disposable, IConfigService, IUniverInstanceService } from '@univerjs/co
|
|
|
17
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
18
|
import { ILayoutService } from '@univerjs/ui';
|
|
19
19
|
import { IEditorBridgeService } from '../editor-bridge.service';
|
|
20
|
+
import { ISheetEmbedFloatingGeometryService } from '../sheet-embed-integration.service';
|
|
20
21
|
import { ICellEditorManagerService } from './cell-editor-manager.service';
|
|
21
22
|
export declare class SheetCellEditorResizeService extends Disposable {
|
|
22
23
|
private readonly _layoutService;
|
|
@@ -25,7 +26,8 @@ export declare class SheetCellEditorResizeService extends Disposable {
|
|
|
25
26
|
private readonly _renderManagerService;
|
|
26
27
|
private readonly _univerInstanceService;
|
|
27
28
|
private readonly _configService;
|
|
28
|
-
|
|
29
|
+
private readonly _embedFloatingGeometryService?;
|
|
30
|
+
constructor(_layoutService: ILayoutService, _cellEditorManagerService: ICellEditorManagerService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _embedFloatingGeometryService?: ISheetEmbedFloatingGeometryService | undefined);
|
|
29
31
|
private get _currentRenderer();
|
|
30
32
|
private get _editingUnitId();
|
|
31
33
|
private get _editingRenderer();
|
|
@@ -45,6 +47,7 @@ export declare class SheetCellEditorResizeService extends Disposable {
|
|
|
45
47
|
* and calculate the editor's boundaries relative to the browser.
|
|
46
48
|
*/
|
|
47
49
|
private _editAreaProcessing;
|
|
50
|
+
private _getEditorContentElement;
|
|
48
51
|
/**
|
|
49
52
|
* Since the document does not support cell background color, an additional rect needs to be added.
|
|
50
53
|
*/
|
|
@@ -27,6 +27,7 @@ export interface IEditorBridgeServiceVisibleParam {
|
|
|
27
27
|
eventType: DeviceInputEventType;
|
|
28
28
|
unitId: string;
|
|
29
29
|
keycode?: KeyCode;
|
|
30
|
+
initialValue?: string;
|
|
30
31
|
}
|
|
31
32
|
export interface ICurrentEditCellParam {
|
|
32
33
|
scene: Scene;
|
|
@@ -154,6 +155,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
154
155
|
editorUnitId: string;
|
|
155
156
|
isInArrayFormulaRange: Nullable<boolean>;
|
|
156
157
|
} | undefined;
|
|
158
|
+
private _getWorkbookForEditUnit;
|
|
157
159
|
getCurrentEditorId(): string;
|
|
158
160
|
changeVisible(params: IEditorBridgeServiceVisibleParam): void;
|
|
159
161
|
isVisible(): IEditorBridgeServiceVisibleParam;
|
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
import type { DisposableCollection, IRange, Worksheet } from '@univerjs/core';
|
|
17
17
|
import type { Engine, Scene, Spreadsheet, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
18
18
|
import { Disposable, InterceptorManager } from '@univerjs/core';
|
|
19
|
+
/** Tracks asynchronous resources registered by all interceptors for one print page. */
|
|
20
|
+
export declare class SheetPrintingResourceCollector {
|
|
21
|
+
private readonly _pending;
|
|
22
|
+
add(resource: Promise<unknown>): void;
|
|
23
|
+
wait(timeout?: number): Promise<void>;
|
|
24
|
+
}
|
|
19
25
|
interface ISheetPrintContext {
|
|
20
26
|
unitId: string;
|
|
21
27
|
subUnitId: string;
|
|
@@ -24,6 +30,8 @@ interface ISheetPrintContext {
|
|
|
24
30
|
root: HTMLElement;
|
|
25
31
|
worksheet: Worksheet;
|
|
26
32
|
skeleton: SpreadsheetSkeleton;
|
|
33
|
+
range: IRange;
|
|
34
|
+
resourceCollector: SheetPrintingResourceCollector;
|
|
27
35
|
offset: {
|
|
28
36
|
offsetX: number;
|
|
29
37
|
offsetY: number;
|