@univerjs/sheets-ui 0.17.0 → 0.18.0
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 +1 -1
- package/lib/cjs/index.js +288 -20
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1276
- package/lib/es/index.js +288 -25637
- package/lib/es/locale/ca-ES.js +1 -463
- package/lib/es/locale/en-US.js +1 -465
- package/lib/es/locale/es-ES.js +1 -463
- package/lib/es/locale/fa-IR.js +1 -465
- package/lib/es/locale/fr-FR.js +1 -465
- package/lib/es/locale/ja-JP.js +1 -463
- package/lib/es/locale/ko-KR.js +1 -463
- package/lib/es/locale/ru-RU.js +1 -463
- package/lib/es/locale/sk-SK.js +1 -463
- package/lib/es/locale/vi-VN.js +1 -463
- package/lib/es/locale/zh-CN.js +1 -464
- package/lib/es/locale/zh-TW.js +1 -464
- package/lib/facade.js +1 -1276
- package/lib/index.css +1215 -1
- package/lib/index.js +288 -25637
- package/lib/locale/ca-ES.js +1 -463
- package/lib/locale/en-US.js +1 -465
- package/lib/locale/es-ES.js +1 -463
- package/lib/locale/fa-IR.js +1 -465
- package/lib/locale/fr-FR.js +1 -465
- package/lib/locale/ja-JP.js +1 -463
- package/lib/locale/ko-KR.js +1 -463
- package/lib/locale/ru-RU.js +1 -463
- package/lib/locale/sk-SK.js +1 -463
- package/lib/locale/vi-VN.js +1 -463
- package/lib/locale/zh-CN.js +1 -464
- package/lib/locale/zh-TW.js +1 -464
- package/lib/types/basics/editor/get-editor-object.d.ts +17 -2
- package/lib/types/basics/editor/range.d.ts +17 -2
- package/lib/types/commands/commands/clipboard.command.d.ts +16 -1
- package/lib/types/commands/commands/delete-range-move-left-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/delete-range-move-up-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/headersize-changed.command.d.ts +16 -1
- package/lib/types/commands/commands/hide-row-col-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/inline-format.command.d.ts +16 -1
- package/lib/types/commands/commands/insert-range-move-down-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/insert-range-move-right-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/range-protection.command.d.ts +17 -2
- package/lib/types/commands/commands/remove-row-col-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/remove-sheet-confirm.command.d.ts +16 -1
- package/lib/types/commands/commands/set-format-painter.command.d.ts +16 -1
- package/lib/types/commands/commands/set-frozen.command.d.ts +16 -1
- package/lib/types/commands/commands/set-scroll.command.d.ts +16 -1
- package/lib/types/commands/commands/set-selection.command.d.ts +17 -1
- package/lib/types/commands/commands/set-worksheet-auto-col-width.command.d.ts +16 -1
- package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +16 -1
- package/lib/types/commands/commands/unhide.command.d.ts +16 -1
- package/lib/types/commands/commands/utils/selection-utils.d.ts +17 -1
- package/lib/types/commands/commands/worksheet-protection.command.d.ts +16 -1
- package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +17 -2
- package/lib/types/commands/operations/cell-edit.operation.d.ts +17 -2
- package/lib/types/commands/operations/rename-sheet.operation.d.ts +16 -1
- package/lib/types/commands/operations/scroll-to-range.operation.d.ts +17 -2
- package/lib/types/commands/operations/scroll.operation.d.ts +17 -2
- package/lib/types/commands/operations/set-format-painter.operation.d.ts +17 -2
- package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +16 -1
- package/lib/types/commands/operations/sheet-permission-open-dialog.operation.d.ts +16 -1
- package/lib/types/commands/operations/sheet-permission-open-panel.operation.d.ts +17 -2
- package/lib/types/commands/operations/sidebar-defined-name.operation.d.ts +16 -1
- package/lib/types/common/utils.d.ts +22 -7
- package/lib/types/components/border-panel/BorderPanel.d.ts +16 -1
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +15 -0
- package/lib/types/components/border-panel/interface.d.ts +17 -2
- package/lib/types/components/hook.d.ts +17 -2
- package/lib/types/components/menu-item-frozen/MenuItemFrozen.d.ts +16 -1
- package/lib/types/components/menu-item-frozen/interface.d.ts +16 -1
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +16 -1
- package/lib/types/components/menu-item-input/interface.d.ts +17 -2
- package/lib/types/config/config.d.ts +19 -4
- package/lib/types/consts/mobile-context.d.ts +5 -0
- package/lib/types/consts/permission.d.ts +15 -0
- package/lib/types/controllers/auto-fill-ui.controller.d.ts +15 -0
- package/lib/types/controllers/auto-height.controller.d.ts +18 -2
- package/lib/types/controllers/auto-width.controller.d.ts +20 -4
- package/lib/types/controllers/cell-alert.controller.d.ts +18 -2
- package/lib/types/controllers/cell-custom-render.controller.d.ts +18 -2
- package/lib/types/controllers/cell-popup-editor.controller.d.ts +18 -2
- package/lib/types/controllers/checkbox.controller.d.ts +15 -0
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +16 -1
- package/lib/types/controllers/clipboard/utils.d.ts +19 -3
- package/lib/types/controllers/defined-name/defined-name.controller.d.ts +15 -0
- package/lib/types/controllers/drag-render.controller.d.ts +19 -2
- package/lib/types/controllers/editor/data-sync.controller.d.ts +15 -0
- package/lib/types/controllers/editor/editing.render-controller.d.ts +17 -1
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +15 -0
- package/lib/types/controllers/force-string-alert-render.controller.d.ts +18 -2
- package/lib/types/controllers/force-string-render.controller.d.ts +18 -2
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts +15 -0
- package/lib/types/controllers/hover-render.controller.d.ts +18 -2
- package/lib/types/controllers/mark-selection.controller.d.ts +18 -2
- package/lib/types/controllers/mobile/mobile-sheet-ui.controller.d.ts +15 -0
- package/lib/types/controllers/move-range.controller.d.ts +18 -2
- package/lib/types/controllers/permission/sheet-permission-check-ui.controller.d.ts +15 -0
- package/lib/types/controllers/permission/sheet-permission-init-ui.controller.d.ts +15 -0
- package/lib/types/controllers/permission/sheet-permission-interceptor-canvas-render.controller.d.ts +18 -2
- package/lib/types/controllers/permission/sheet-permission-interceptor-clipboard.controller.d.ts +15 -0
- package/lib/types/controllers/permission/sheet-permission-interceptor-formula-render.controller.d.ts +18 -2
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +19 -2
- package/lib/types/controllers/render-controllers/clipboard.render-controller.d.ts +18 -2
- package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +18 -2
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +19 -2
- package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +18 -2
- package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +20 -4
- package/lib/types/controllers/render-controllers/header-menu.render-controller.d.ts +18 -2
- package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +20 -4
- package/lib/types/controllers/render-controllers/header-resize.render-controller.d.ts +20 -4
- package/lib/types/controllers/render-controllers/header-unhide.render-controller.d.ts +18 -2
- package/lib/types/controllers/render-controllers/mobile/mobile-contextmenu.render-controller.d.ts +43 -6
- package/lib/types/controllers/render-controllers/mobile/mobile-header-resize.render-controller.d.ts +18 -2
- package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts +19 -2
- package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +19 -2
- package/lib/types/controllers/render-controllers/sheet.render-controller.d.ts +19 -3
- package/lib/types/controllers/render-controllers/skeleton.render-controller.d.ts +19 -2
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +18 -2
- package/lib/types/controllers/sheet-ui.controller.d.ts +15 -0
- package/lib/types/controllers/shortcuts/copy-fill.shortcut.d.ts +18 -0
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +17 -1
- package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +16 -1
- package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +17 -2
- package/lib/types/controllers/shortcuts/style.shortcut.d.ts +16 -1
- package/lib/types/controllers/shortcuts/utils.d.ts +16 -1
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts +16 -1
- package/lib/types/controllers/shortcuts/view.shortcut.d.ts +16 -1
- package/lib/types/controllers/status-bar.controller.d.ts +21 -4
- package/lib/types/controllers/utils/char-tools.d.ts +16 -1
- package/lib/types/controllers/utils/component-tools.d.ts +18 -2
- package/lib/types/controllers/utils/range-tools.d.ts +17 -2
- package/lib/types/controllers/utils/selections-tools.d.ts +19 -3
- package/lib/types/facade/f-enum.d.ts +15 -0
- package/lib/types/facade/f-event.d.ts +22 -7
- package/lib/types/facade/f-permission.d.ts +15 -0
- package/lib/types/facade/f-range.d.ts +21 -4
- package/lib/types/facade/f-sheet-hooks.d.ts +18 -2
- package/lib/types/facade/f-univer.d.ts +18 -3
- package/lib/types/facade/f-workbook.d.ts +20 -5
- package/lib/types/facade/f-worksheet.d.ts +22 -5
- package/lib/types/hooks/use-highlight-range.d.ts +16 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/types/menu/border.menu.d.ts +18 -3
- package/lib/types/menu/clear.menu.d.ts +17 -2
- package/lib/types/menu/delete.menu.d.ts +17 -2
- package/lib/types/menu/font.menu.d.ts +18 -2
- package/lib/types/menu/frozen.menu.d.ts +17 -2
- package/lib/types/menu/gridlines.menu.d.ts +17 -2
- package/lib/types/menu/header-menu-shape.d.ts +17 -1
- package/lib/types/menu/insert.menu.d.ts +17 -2
- package/lib/types/menu/menu-util.d.ts +18 -2
- package/lib/types/menu/menu.d.ts +18 -2
- package/lib/types/menu/merge.menu.d.ts +17 -2
- package/lib/types/menu/mobile-menu.d.ts +16 -2
- package/lib/types/menu/permission-menu-util.d.ts +25 -10
- package/lib/types/menu/permission.menu.d.ts +17 -2
- package/lib/types/menu/schema.d.ts +16 -1
- package/lib/types/menu/sheet.menu.d.ts +17 -2
- package/lib/types/menu/text-to-number.menu.d.ts +17 -2
- package/lib/types/menu/utils.d.ts +17 -2
- package/lib/types/mobile-plugin.d.ts +16 -1
- package/lib/types/plugin.d.ts +16 -1
- package/lib/types/services/auto-height.service.d.ts +19 -3
- package/lib/types/services/canvas-pop-manager.service.d.ts +23 -4
- package/lib/types/services/cell-alert-manager.service.d.ts +19 -3
- package/lib/types/services/cell-dropdown-manager.service.d.ts +20 -4
- package/lib/types/services/cell-popup-manager.service.d.ts +21 -4
- package/lib/types/services/clipboard/clipboard.service.d.ts +22 -5
- package/lib/types/services/clipboard/clone.d.ts +17 -2
- package/lib/types/services/clipboard/copy-content-cache.d.ts +19 -4
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +19 -4
- package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +16 -1
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +16 -1
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-univer.d.ts +16 -1
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +16 -1
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +16 -1
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +22 -7
- package/lib/types/services/clipboard/type.d.ts +25 -3
- package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +18 -3
- package/lib/types/services/clipboard/utils.d.ts +17 -2
- package/lib/types/services/drag-manager.service.d.ts +22 -5
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +18 -3
- package/lib/types/services/editor/cell-editor-resize.service.d.ts +15 -0
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +18 -3
- package/lib/types/services/editor-bridge.service.d.ts +23 -5
- package/lib/types/services/format-painter/format-painter.service.d.ts +19 -3
- package/lib/types/services/hover-manager.service.d.ts +39 -22
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +17 -2
- package/lib/types/services/permission/sheet-permission-panel.model.d.ts +17 -2
- package/lib/types/services/permission/sheet-permission-render-manager.service.d.ts +16 -1
- package/lib/types/services/permission/sheet-permission-user-list.service.d.ts +18 -3
- package/lib/types/services/print-interceptor.service.d.ts +21 -5
- package/lib/types/services/scroll-manager.service.d.ts +18 -3
- package/lib/types/services/select-all/select-all.service.d.ts +17 -1
- package/lib/types/services/selection/base-selection-render.service.d.ts +26 -8
- package/lib/types/services/selection/const.d.ts +20 -5
- package/lib/types/services/selection/mobile-selection-render.service.d.ts +22 -3
- package/lib/types/services/selection/mobile-selection-shape.d.ts +20 -3
- package/lib/types/services/selection/selection-control.d.ts +24 -6
- package/lib/types/services/selection/selection-layer.d.ts +17 -1
- package/lib/types/services/selection/selection-render-model.d.ts +18 -2
- package/lib/types/services/selection/selection-render.service.d.ts +19 -2
- package/lib/types/services/selection/selection-shape-extension.d.ts +18 -3
- package/lib/types/services/selection/util.d.ts +18 -3
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +20 -4
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +21 -4
- package/lib/types/services/sheets-render.service.d.ts +17 -1
- package/lib/types/services/shortcut-experience.service.d.ts +18 -2
- package/lib/types/services/status-bar.service.d.ts +19 -4
- package/lib/types/services/utils/doc-skeleton-util.d.ts +18 -3
- package/lib/types/services/utils/drawing-position-util.d.ts +18 -3
- package/lib/types/services/utils/selection-util.d.ts +17 -2
- package/lib/types/views/auto-fill-popup-menu/AutoFillPopupMenu.d.ts +15 -0
- package/lib/types/views/cell-alert/CellAlertPopup.d.ts +16 -1
- package/lib/types/views/cell-popup/index.d.ts +17 -2
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +16 -1
- package/lib/types/views/dropdown/cascader-dropdown/index.d.ts +18 -3
- package/lib/types/views/dropdown/color-dropdown/index.d.ts +17 -2
- package/lib/types/views/dropdown/date-dropdown/index.d.ts +17 -2
- package/lib/types/views/dropdown/index.d.ts +23 -4
- package/lib/types/views/dropdown/list-dropdown/index.d.ts +17 -2
- package/lib/types/views/dropdown/type.d.ts +16 -1
- package/lib/types/views/editor-container/hooks.d.ts +16 -1
- package/lib/types/views/header-resize-shape.d.ts +17 -1
- package/lib/types/views/header-unhide-shape.d.ts +17 -1
- package/lib/types/views/permission/extensions/range-protection.render.d.ts +19 -3
- package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +18 -2
- package/lib/types/views/permission/panel/index.d.ts +16 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailFooterPart.d.ts +17 -2
- package/lib/types/views/permission/panel-detail/PermissionDetailMainPart.d.ts +16 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailPanel.d.ts +16 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +15 -0
- package/lib/types/views/permission/spin/index.d.ts +16 -1
- package/lib/types/views/permission/util.d.ts +17 -2
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +16 -1
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +16 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +17 -2
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabsContextMenu.d.ts +17 -2
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +15 -0
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +17 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +288 -20
- package/lib/umd/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.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-TW.js +1 -1
- package/package.json +16 -15
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IDisposable, IPosition, Nullable } from '@univerjs/core';
|
|
17
|
+
import type { Observable } from 'rxjs';
|
|
3
18
|
export interface ICellEditorManagerParam extends Partial<IPosition> {
|
|
4
19
|
show: boolean;
|
|
5
20
|
}
|
|
@@ -38,4 +53,4 @@ export declare class CellEditorManagerService implements ICellEditorManagerServi
|
|
|
38
53
|
setFocus(param?: boolean): void;
|
|
39
54
|
private _refresh;
|
|
40
55
|
}
|
|
41
|
-
export declare const ICellEditorManagerService: import(
|
|
56
|
+
export declare const ICellEditorManagerService: import("@wendellhu/redi").IdentifierDecorator<CellEditorManagerService>;
|
|
@@ -1,3 +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
|
+
*/
|
|
1
16
|
import { Disposable, IConfigService, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
18
|
import { ILayoutService } from '@univerjs/ui';
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IDisposable, Nullable } from '@univerjs/core';
|
|
17
|
+
import type { Observable } from 'rxjs';
|
|
3
18
|
export interface IFormulaEditorManagerService {
|
|
4
19
|
position$: Observable<Nullable<DOMRect>>;
|
|
5
20
|
focus$: Observable<boolean>;
|
|
@@ -29,4 +44,4 @@ export declare class FormulaEditorManagerService implements IDisposable {
|
|
|
29
44
|
handleFoldBtnClick(params: boolean): void;
|
|
30
45
|
private _refresh;
|
|
31
46
|
}
|
|
32
|
-
export declare const IFormulaEditorManagerService: import(
|
|
47
|
+
export declare const IFormulaEditorManagerService: import("@wendellhu/redi").IdentifierDecorator<FormulaEditorManagerService>;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { IDisposable, IPosition, ISelectionCell, Nullable } from '@univerjs/core';
|
|
17
|
+
import type { Engine, IDocumentLayoutObject, Scene } from '@univerjs/engine-render';
|
|
18
|
+
import type { KeyCode } from '@univerjs/ui';
|
|
19
|
+
import type { Observable } from 'rxjs';
|
|
20
|
+
import { Disposable, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
5
21
|
import { IEditorService } from '@univerjs/docs-ui';
|
|
22
|
+
import { DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
|
|
6
23
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
24
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
25
|
export interface IEditorBridgeServiceVisibleParam {
|
|
8
26
|
visible: boolean;
|
|
9
27
|
eventType: DeviceInputEventType;
|
|
@@ -144,4 +162,4 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
144
162
|
changeEditorDirty(dirtyStatus: boolean): void;
|
|
145
163
|
getEditorDirty(): boolean;
|
|
146
164
|
}
|
|
147
|
-
export declare const IEditorBridgeService: import(
|
|
165
|
+
export declare const IEditorBridgeService: import("@wendellhu/redi").IdentifierDecorator<EditorBridgeService>;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IMutationInfo, IRange, IStyleData } from '@univerjs/core';
|
|
17
|
+
import type { Observable } from 'rxjs';
|
|
18
|
+
import { Disposable, ICommandService, ILogService, IUndoRedoService, ObjectMatrix, ThemeService } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
5
21
|
export interface IFormatPainterService {
|
|
@@ -40,7 +56,7 @@ export interface IFormatPainterBeforeApplyHookParams {
|
|
|
40
56
|
undoMutationsInfo: IMutationInfo[];
|
|
41
57
|
format: ISelectionFormatInfo;
|
|
42
58
|
}
|
|
43
|
-
export declare const IFormatPainterService: import(
|
|
59
|
+
export declare const IFormatPainterService: import("@wendellhu/redi").IdentifierDecorator<IFormatPainterService>;
|
|
44
60
|
export declare class FormatPainterService extends Disposable implements IFormatPainterService {
|
|
45
61
|
private readonly _selectionManagerService;
|
|
46
62
|
private readonly _themeService;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 { ICustomRange, IParagraph, IPosition, Nullable } from '@univerjs/core';
|
|
17
|
+
import type { IBoundRectNoAngle, IDocumentSkeletonDrawing, IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISheetLocation, ISheetLocationBase } from '@univerjs/sheets';
|
|
19
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
20
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
21
|
export interface IHoverCellPosition {
|
|
5
22
|
position: IPosition;
|
|
6
23
|
/**
|
|
@@ -84,28 +101,28 @@ export declare class HoverManagerService extends Disposable {
|
|
|
84
101
|
private _currentColHeaderPointerDown$;
|
|
85
102
|
private _currentRowHeaderPointerUp$;
|
|
86
103
|
private _currentColHeaderPointerUp$;
|
|
87
|
-
currentCell$: import(
|
|
88
|
-
currentRichTextNoDistinct$: import(
|
|
89
|
-
currentRichText$: import(
|
|
104
|
+
currentCell$: import("rxjs").Observable<Nullable<IHoverCellPosition>>;
|
|
105
|
+
currentRichTextNoDistinct$: import("rxjs").Observable<void | IHoverRichTextPosition | null | undefined>;
|
|
106
|
+
currentRichText$: import("rxjs").Observable<void | IHoverRichTextPosition | null | undefined>;
|
|
90
107
|
/**
|
|
91
108
|
* Nearly same as currentRichText$, but with event
|
|
92
109
|
*/
|
|
93
|
-
currentCellPosWithEvent$: import(
|
|
94
|
-
currentPosition$: import(
|
|
95
|
-
currentClickedCell$: import(
|
|
96
|
-
currentDbClickedCell$: import(
|
|
97
|
-
currentPointerDownCell$: import(
|
|
98
|
-
currentPointerUpCell$: import(
|
|
99
|
-
currentHoveredRowHeader$: import(
|
|
100
|
-
currentHoveredColHeader$: import(
|
|
101
|
-
currentRowHeaderClick$: import(
|
|
102
|
-
currentColHeaderClick$: import(
|
|
103
|
-
currentRowHeaderDbClick$: import(
|
|
104
|
-
currentColHeaderDbClick$: import(
|
|
105
|
-
currentRowHeaderPointerDown$: import(
|
|
106
|
-
currentColHeaderPointerDown$: import(
|
|
107
|
-
currentRowHeaderPointerUp$: import(
|
|
108
|
-
currentColHeaderPointerUp$: import(
|
|
110
|
+
currentCellPosWithEvent$: import("rxjs").Observable<void | ICellPosWithEvent | null | undefined>;
|
|
111
|
+
currentPosition$: import("rxjs").Observable<Nullable<IHoverCellPosition>>;
|
|
112
|
+
currentClickedCell$: import("rxjs").Observable<IHoverRichTextInfo>;
|
|
113
|
+
currentDbClickedCell$: import("rxjs").Observable<IHoverRichTextInfo>;
|
|
114
|
+
currentPointerDownCell$: import("rxjs").Observable<ICellPosWithEvent>;
|
|
115
|
+
currentPointerUpCell$: import("rxjs").Observable<ICellPosWithEvent>;
|
|
116
|
+
currentHoveredRowHeader$: import("rxjs").Observable<Nullable<IHoverHeaderPosition>>;
|
|
117
|
+
currentHoveredColHeader$: import("rxjs").Observable<Nullable<IHoverHeaderPosition>>;
|
|
118
|
+
currentRowHeaderClick$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
119
|
+
currentColHeaderClick$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
120
|
+
currentRowHeaderDbClick$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
121
|
+
currentColHeaderDbClick$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
122
|
+
currentRowHeaderPointerDown$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
123
|
+
currentColHeaderPointerDown$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
124
|
+
currentRowHeaderPointerUp$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
125
|
+
currentColHeaderPointerUp$: import("rxjs").Observable<IHoverHeaderPosition>;
|
|
109
126
|
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
110
127
|
dispose(): void;
|
|
111
128
|
private _initCellDisposableListener;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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 { ISelectionWithStyle } from '@univerjs/sheets';
|
|
2
17
|
import { Disposable, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
3
18
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
19
|
import { SelectionControl } from '../selection/selection-control';
|
|
@@ -18,7 +33,7 @@ interface IMarkSelectionInfo {
|
|
|
18
33
|
control: SelectionControl | null;
|
|
19
34
|
exits: string[];
|
|
20
35
|
}
|
|
21
|
-
export declare const IMarkSelectionService: import(
|
|
36
|
+
export declare const IMarkSelectionService: import("@wendellhu/redi").IdentifierDecorator<IMarkSelectionService>;
|
|
22
37
|
/**
|
|
23
38
|
* For copy and cut selection.
|
|
24
39
|
* also for selection when hover on conditional format items in the cf panel on the right.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IRange } from '@univerjs/core';
|
|
17
|
+
import type { IRangeProtectionRule, IWorksheetProtectionRule } from '@univerjs/sheets';
|
|
3
18
|
export declare const DEFAULT_RANGE_RULE: IRangeProtectionRule;
|
|
4
19
|
export type IPermissionPanelRule = (IRangeProtectionRule | IWorksheetProtectionRule) & {
|
|
5
20
|
ranges: IRange[];
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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 { Observable } from 'rxjs';
|
|
2
17
|
import { Disposable, IConfigService } from '@univerjs/core';
|
|
3
18
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
19
|
export type ProtectedRangeShadowStrategy = 'always' | 'non-editable' | 'non-viewable' | 'none';
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
|
|
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 { ICollaborator } from '@univerjs/protocol';
|
|
2
17
|
export declare class SheetPermissionUserManagerService {
|
|
3
18
|
private _userList;
|
|
4
19
|
private _userList$;
|
|
5
|
-
userList$: import(
|
|
20
|
+
userList$: import("rxjs").Observable<ICollaborator[]>;
|
|
6
21
|
private _oldCollaboratorList;
|
|
7
22
|
private _selectUserList;
|
|
8
23
|
private _selectUserList$;
|
|
9
|
-
selectUserList$: import(
|
|
24
|
+
selectUserList$: import("rxjs").Observable<ICollaborator[]>;
|
|
10
25
|
get userList(): ICollaborator[];
|
|
11
26
|
setCanEditUserList(userList: ICollaborator[]): void;
|
|
12
27
|
reset(): void;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { DisposableCollection, IRange, Worksheet } from '@univerjs/core';
|
|
17
|
+
import type { Engine, Scene, Spreadsheet, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, InterceptorManager } from '@univerjs/core';
|
|
3
19
|
interface ISheetPrintContext {
|
|
4
20
|
unitId: string;
|
|
5
21
|
subUnitId: string;
|
|
@@ -19,12 +35,12 @@ interface ISheetPrintComponentContext extends ISheetPrintContext {
|
|
|
19
35
|
export declare class SheetPrintInterceptorService extends Disposable {
|
|
20
36
|
private _printComponentMap;
|
|
21
37
|
readonly interceptor: InterceptorManager<{
|
|
22
|
-
PRINTING_RANGE: import(
|
|
38
|
+
PRINTING_RANGE: import("@univerjs/core").IInterceptor<IRange, {
|
|
23
39
|
unitId: string;
|
|
24
40
|
subUnitId: string;
|
|
25
41
|
}>;
|
|
26
|
-
PRINTING_COMPONENT_COLLECT: import(
|
|
27
|
-
PRINTING_DOM_COLLECT: import(
|
|
42
|
+
PRINTING_COMPONENT_COLLECT: import("@univerjs/core").IInterceptor<undefined, ISheetPrintComponentContext>;
|
|
43
|
+
PRINTING_DOM_COLLECT: import("@univerjs/core").IInterceptor<DisposableCollection, ISheetPrintContext>;
|
|
28
44
|
}>;
|
|
29
45
|
constructor();
|
|
30
46
|
registerPrintComponent(componentKey: string, printingComponentKey: string): void;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Nullable, Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
18
|
import { BehaviorSubject } from 'rxjs';
|
|
4
19
|
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
5
20
|
export interface IScrollState {
|
|
@@ -107,7 +122,7 @@ export declare class SheetScrollManagerService implements IRenderModule {
|
|
|
107
122
|
/**
|
|
108
123
|
* a subject for current sheet scrollInfo ( events, ex wheel event and point events add deltaXY to rawScrollInfo$)
|
|
109
124
|
*/
|
|
110
|
-
readonly rawScrollInfo$: import(
|
|
125
|
+
readonly rawScrollInfo$: import("rxjs").Observable<Nullable<IScrollState>>;
|
|
111
126
|
/**
|
|
112
127
|
* a subject for current valid scrollInfo, viewport@_scrollCore would limit rawScrollInfo$ exclude negative value or over max value.
|
|
113
128
|
* use this subject not rawScrollInfo$ when get scrolling state of viewport.
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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 { IRange } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
2
18
|
export declare class SelectAllService extends Disposable {
|
|
3
19
|
rangesStack: IRange[];
|
|
4
20
|
selectedRangeWorksheet: string;
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 { ICellInfo, ICellWithCoord, IContextService, IDisposable, IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord, Nullable } from '@univerjs/core';
|
|
17
|
+
import type { IMouseEvent, IPointerEvent, IRenderModule, Scene, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
|
|
19
|
+
import type { Theme } from '@univerjs/themes';
|
|
20
|
+
import type { IShortcutService } from '@univerjs/ui';
|
|
21
|
+
import type { Observable, Subscription } from 'rxjs';
|
|
22
|
+
import type { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
23
|
+
import { Disposable, InterceptorManager, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
24
|
+
import { ScrollTimer, ScrollTimerType } from '@univerjs/engine-render';
|
|
25
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
8
26
|
import { SelectionControl } from './selection-control';
|
|
9
27
|
export interface IControlFillConfig {
|
|
10
28
|
oldRange: IRange;
|
|
@@ -42,7 +60,7 @@ export interface ISheetSelectionRenderService {
|
|
|
42
60
|
refreshSelectionMoveEnd(): void;
|
|
43
61
|
resetSelectionsByModelData(selectionsWithStyleList: readonly ISelectionWithStyle[]): void;
|
|
44
62
|
}
|
|
45
|
-
export declare const ISheetSelectionRenderService: import(
|
|
63
|
+
export declare const ISheetSelectionRenderService: import("@wendellhu/redi").IdentifierDecorator<ISheetSelectionRenderService>;
|
|
46
64
|
/**
|
|
47
65
|
* The basic implementation of selection rendering logics. It is designed to be reused for different purposes.
|
|
48
66
|
*/
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { ThemeService } from '@univerjs/core';
|
|
17
|
+
import type { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISelectionStyle } from '@univerjs/sheets';
|
|
19
|
+
export declare const RANGE_MOVE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, null>;
|
|
20
|
+
export declare const RANGE_FILL_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, {
|
|
6
21
|
x: number;
|
|
7
22
|
y: number;
|
|
8
23
|
skeleton: SpreadsheetSkeleton;
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 { IRange, Nullable, Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, Scene, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISelectionWithStyle } from '@univerjs/sheets';
|
|
19
|
+
import { ICommandService, IContextService, ILogService, Injector, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
20
|
+
import { ScrollTimerType } from '@univerjs/engine-render';
|
|
21
|
+
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
22
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
23
|
import { SheetScrollManagerService } from '../scroll-manager.service';
|
|
6
24
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
@@ -14,6 +32,7 @@ declare enum ExpandingControl {
|
|
|
14
32
|
TOP = "top",
|
|
15
33
|
BOTTOM = "bottom"
|
|
16
34
|
}
|
|
35
|
+
export declare function shouldKeepCurrentSelectionOnMobileLongPress(currentSelections: IRange[], targetRange: IRange): boolean;
|
|
17
36
|
export declare class MobileSheetsSelectionRenderService extends BaseSelectionRenderService implements IRenderModule {
|
|
18
37
|
private readonly _context;
|
|
19
38
|
private readonly _logService;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 { ThemeService } from '@univerjs/core';
|
|
17
|
+
import type { IRectProps, Scene } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISelectionStyle } from '@univerjs/sheets';
|
|
19
|
+
import { RANGE_TYPE } from '@univerjs/core';
|
|
20
|
+
import { Rect } from '@univerjs/engine-render';
|
|
4
21
|
import { SelectionControl } from './selection-control';
|
|
5
22
|
export declare class MobileSelectionControl extends SelectionControl {
|
|
6
23
|
protected _scene: Scene;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { ICellWithCoord, IRangeWithCoord, Nullable, ThemeService } from '@univerjs/core';
|
|
17
|
+
import type { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISelectionStyle, ISelectionWidgetConfig, ISelectionWithCoord } from '@univerjs/sheets';
|
|
19
|
+
import type { ISelectionShapeExtensionOption } from './selection-shape-extension';
|
|
20
|
+
import { Disposable, RANGE_TYPE } from '@univerjs/core';
|
|
21
|
+
import { Group, Rect } from '@univerjs/engine-render';
|
|
5
22
|
import { Subject } from 'rxjs';
|
|
6
23
|
import { SelectionRenderModel } from './selection-render-model';
|
|
24
|
+
import { SelectionShapeExtension } from './selection-shape-extension';
|
|
7
25
|
export declare enum SELECTION_MANAGER_KEY {
|
|
8
26
|
Selection = "__SpreadsheetSelectionShape__",
|
|
9
27
|
top = "__SpreadsheetSelectionTopControl__",
|
|
@@ -92,7 +110,7 @@ export declare class SelectionControl extends Disposable {
|
|
|
92
110
|
protected _widgetRects: Rect[];
|
|
93
111
|
protected _controlExtension: Nullable<SelectionShapeExtension>;
|
|
94
112
|
private _dispose$;
|
|
95
|
-
readonly dispose$: import(
|
|
113
|
+
readonly dispose$: import("rxjs").Observable<SelectionControl>;
|
|
96
114
|
/**
|
|
97
115
|
* eventSource: selectionShapeExtension selectionMoving$.next,
|
|
98
116
|
* Observer: prompt.controller
|
|
@@ -103,7 +121,7 @@ export declare class SelectionControl extends Disposable {
|
|
|
103
121
|
readonly selectionScaled$: Subject<Nullable<IRangeWithCoord>>;
|
|
104
122
|
readonly selectionFilling$: Subject<Nullable<IRangeWithCoord>>;
|
|
105
123
|
private readonly _selectionFilled$;
|
|
106
|
-
readonly selectionFilled$: import(
|
|
124
|
+
readonly selectionFilled$: import("rxjs").Observable<Nullable<IRangeWithCoord>>;
|
|
107
125
|
constructor(_scene: Scene, _zIndex: number, _themeService: ThemeService, options?: {
|
|
108
126
|
highlightHeader?: boolean;
|
|
109
127
|
enableAutoFill?: boolean;
|