@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,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, ICommandService, IConfigService, Injector } from '@univerjs/core';
|
|
2
17
|
import { ComponentManager, ILayoutService, IMenuManagerService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
18
|
export declare class SheetUIMobileController extends Disposable {
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { ISheetSelectionRenderService } from '../services/selection/base-selection-render.service';
|
|
5
21
|
export declare class MoveRangeRenderController extends Disposable implements IRenderModule {
|
|
@@ -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, DisposableCollection, ICommandService, IContextService, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
17
|
import { RangeProtectionRuleModel, SheetPermissionCheckController } from '@univerjs/sheets';
|
|
3
18
|
import { IDialogService } from '@univerjs/ui';
|
|
@@ -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 } from '@univerjs/core';
|
|
2
17
|
import { SheetPermissionInitController } from '@univerjs/sheets';
|
|
3
18
|
export declare class SheetPermissionInitUIController extends Disposable {
|
package/lib/types/controllers/permission/sheet-permission-interceptor-canvas-render.controller.d.ts
CHANGED
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { DisposableCollection, IPermissionService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
19
|
import { RangeProtectionCache, RangeProtectionRuleModel, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { ISheetSelectionRenderService } from '../../services/selection/base-selection-render.service';
|
|
5
21
|
import { HeaderFreezeRenderController } from '../render-controllers/freeze.render-controller';
|
package/lib/types/controllers/permission/sheet-permission-interceptor-clipboard.controller.d.ts
CHANGED
|
@@ -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, DisposableCollection, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
17
|
import { SheetPermissionCheckController, SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
18
|
import { ISheetClipboardService } from '../../services/clipboard/clipboard.service';
|
package/lib/types/controllers/permission/sheet-permission-interceptor-formula-render.controller.d.ts
CHANGED
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { DisposableCollection, IPermissionService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
19
|
import { RangeProtectionCache } from '@univerjs/sheets';
|
|
4
20
|
import { StatusBarController } from '../status-bar.controller';
|
|
5
21
|
export declare class SheetPermissionInterceptorFormulaRenderController extends RxDisposable implements IRenderModule {
|
|
@@ -1,7 +1,24 @@
|
|
|
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 { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
17
|
+
import type { MenuConfig } from '@univerjs/ui';
|
|
3
18
|
import { Disposable, IConfigService, Injector, IPermissionService } from '@univerjs/core';
|
|
19
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
20
|
import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
|
|
21
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
5
22
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
6
23
|
export interface IUniverSheetsPermissionMenuConfig {
|
|
7
24
|
menu: MenuConfig;
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable } from '@univerjs/core';
|
|
3
19
|
import { ISheetClipboardService } from '../../services/clipboard/clipboard.service';
|
|
4
20
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
5
21
|
import { SheetClipboardController } from '../clipboard/clipboard.controller';
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { IContextMenuService } from '@univerjs/ui';
|
|
5
21
|
import { ISheetSelectionRenderService } from '../../services/selection/base-selection-render.service';
|
|
@@ -1,5 +1,22 @@
|
|
|
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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { ICommandService, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
19
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
20
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
21
|
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
5
22
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
3
19
|
import { IFormatPainterService } from '../../services/format-painter/format-painter.service';
|
|
4
20
|
import { ISheetSelectionRenderService } from '../../services/selection/base-selection-render.service';
|
|
5
21
|
export declare class FormatPainterRenderController extends Disposable implements IRenderModule {
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService, Injector, InterceptorManager, ThemeService } from '@univerjs/core';
|
|
3
19
|
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { SheetScrollManagerService } from '../../services/scroll-manager.service';
|
|
5
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
@@ -7,7 +23,7 @@ export declare const FREEZE_ROW_MAIN_NAME = "__SpreadsheetFreezeRowMainName__";
|
|
|
7
23
|
export declare const FREEZE_ROW_HEADER_NAME = "__SpreadsheetFreezeRowHeaderName__";
|
|
8
24
|
export declare const FREEZE_COLUMN_MAIN_NAME = "__SpreadsheetFreezeColumnMainName__";
|
|
9
25
|
export declare const FREEZE_COLUMN_HEADER_NAME = "__SpreadsheetFreezeColumnHeaderName__";
|
|
10
|
-
export declare const FREEZE_PERMISSION_CHECK: import(
|
|
26
|
+
export declare const FREEZE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, null>;
|
|
11
27
|
export declare class HeaderFreezeRenderController extends Disposable implements IRenderModule {
|
|
12
28
|
private readonly _context;
|
|
13
29
|
private readonly _sheetSkeletonManagerService;
|
|
@@ -37,7 +53,7 @@ export declare class HeaderFreezeRenderController extends Disposable implements
|
|
|
37
53
|
private _freezeHoverColor;
|
|
38
54
|
private _lastFreeze;
|
|
39
55
|
interceptor: InterceptorManager<{
|
|
40
|
-
FREEZE_PERMISSION_CHECK: import(
|
|
56
|
+
FREEZE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, null>;
|
|
41
57
|
}>;
|
|
42
58
|
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService: SheetScrollManagerService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector);
|
|
43
59
|
dispose(): 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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { IContextMenuService } from '@univerjs/ui';
|
|
5
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
@@ -1,8 +1,24 @@
|
|
|
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, Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService, InterceptorManager } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
5
|
-
export declare const HEADER_MOVE_PERMISSION_CHECK: import(
|
|
21
|
+
export declare const HEADER_MOVE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, IRange>;
|
|
6
22
|
export declare class HeaderMoveRenderController extends Disposable implements IRenderModule {
|
|
7
23
|
private readonly _context;
|
|
8
24
|
private readonly _sheetSkeletonManagerService;
|
|
@@ -22,7 +38,7 @@ export declare class HeaderMoveRenderController extends Disposable implements IR
|
|
|
22
38
|
private _changeToColumn;
|
|
23
39
|
private _changeToRow;
|
|
24
40
|
readonly interceptor: InterceptorManager<{
|
|
25
|
-
HEADER_MOVE_PERMISSION_CHECK: import(
|
|
41
|
+
HEADER_MOVE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, IRange>;
|
|
26
42
|
}>;
|
|
27
43
|
private readonly _workbookSelections;
|
|
28
44
|
constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
|
|
@@ -1,8 +1,24 @@
|
|
|
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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService, InterceptorManager } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
5
|
-
export declare const HEADER_RESIZE_PERMISSION_CHECK: import(
|
|
21
|
+
export declare const HEADER_RESIZE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, {
|
|
6
22
|
row?: number;
|
|
7
23
|
col?: number;
|
|
8
24
|
}>;
|
|
@@ -22,7 +38,7 @@ export declare class HeaderResizeRenderController extends Disposable implements
|
|
|
22
38
|
private _startOffsetX;
|
|
23
39
|
private _startOffsetY;
|
|
24
40
|
interceptor: InterceptorManager<{
|
|
25
|
-
HEADER_RESIZE_PERMISSION_CHECK: import(
|
|
41
|
+
HEADER_RESIZE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, {
|
|
26
42
|
row?: number;
|
|
27
43
|
col?: number;
|
|
28
44
|
}>;
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext } from '@univerjs/engine-render';
|
|
18
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
19
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
4
20
|
/**
|
|
5
21
|
* This controller controls rendering of the buttons to unhide hidden rows and columns.
|
package/lib/types/controllers/render-controllers/mobile/mobile-contextmenu.render-controller.d.ts
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
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, Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import type { ISelectionWithStyle } from '@univerjs/sheets';
|
|
19
|
+
import { Disposable, IContextService } from '@univerjs/core';
|
|
20
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
21
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
22
|
import { IContextMenuService, ILayoutService } from '@univerjs/ui';
|
|
5
|
-
import { ISheetSelectionRenderService } from '../../../services/selection/base-selection-render.service';
|
|
6
23
|
import { SheetSkeletonManagerService } from '../../../services/sheet-skeleton-manager.service';
|
|
24
|
+
export declare function shouldKeepCurrentSelectionForMobileContextMenu(currentSelections: Array<IRange | ISelectionWithStyle>, targetRange: IRange): boolean;
|
|
7
25
|
/**
|
|
8
|
-
* On mobile devices, the context menu
|
|
26
|
+
* On mobile devices, the context menu pops up after a native touch long press.
|
|
27
|
+
* This bypasses the older "selection event -> menu" chain, which was unreliable
|
|
28
|
+
* when the touch target was the selection overlay itself.
|
|
9
29
|
*
|
|
10
30
|
* @ignore
|
|
11
31
|
*/
|
|
@@ -13,9 +33,26 @@ export declare class SheetContextMenuMobileRenderController extends Disposable i
|
|
|
13
33
|
private readonly _context;
|
|
14
34
|
private readonly _layoutService;
|
|
15
35
|
private readonly _contextMenuService;
|
|
36
|
+
private readonly _contextService;
|
|
37
|
+
private readonly _renderManagerService;
|
|
16
38
|
private readonly _selectionManagerService;
|
|
17
|
-
private readonly _selectionRenderService;
|
|
18
39
|
private readonly _sheetSkeletonManagerService;
|
|
19
|
-
constructor(_context: IRenderContext<Workbook>, _layoutService: ILayoutService, _contextMenuService: IContextMenuService,
|
|
40
|
+
constructor(_context: IRenderContext<Workbook>, _layoutService: ILayoutService, _contextMenuService: IContextMenuService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _selectionManagerService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
20
41
|
private _init;
|
|
42
|
+
private _createLongPressState;
|
|
43
|
+
private _clearLongPressTimer;
|
|
44
|
+
private _resetLongPressState;
|
|
45
|
+
private _getTouchOffset;
|
|
46
|
+
private _getMainAreaViewport;
|
|
47
|
+
private _getTargetCellByOffset;
|
|
48
|
+
private _getCurrentRenderSelections;
|
|
49
|
+
private _cloneSelections;
|
|
50
|
+
private _getSelectionSnapshot;
|
|
51
|
+
private _restoreSelectionSnapshot;
|
|
52
|
+
private _replaceSelectionWithTargetCell;
|
|
53
|
+
private _openMenu;
|
|
54
|
+
private _triggerLongPressMenu;
|
|
55
|
+
private _handleTouchStart;
|
|
56
|
+
private _handleTouchMove;
|
|
57
|
+
private _handleTouchEnd;
|
|
21
58
|
}
|
package/lib/types/controllers/render-controllers/mobile/mobile-header-resize.render-controller.d.ts
CHANGED
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService, IContextService } from '@univerjs/core';
|
|
3
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
20
|
import { SheetScrollManagerService } from '../../../services/scroll-manager.service';
|
|
5
21
|
import { SheetSkeletonManagerService } from '../../../services/sheet-skeleton-manager.service';
|
package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
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, Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
19
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
20
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
21
|
import { SheetScrollManagerService } from '../../../services/scroll-manager.service';
|
|
5
22
|
import { SheetSkeletonManagerService } from '../../../services/sheet-skeleton-manager.service';
|
|
@@ -1,5 +1,22 @@
|
|
|
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, Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule, Viewport } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable, ICommandService, IContextService, Injector } from '@univerjs/core';
|
|
19
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
20
|
import { SheetScrollManagerService } from '../../services/scroll-manager.service';
|
|
4
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
5
22
|
/**
|
|
@@ -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 { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { IRenderContext, IRenderModule, ISummaryMetric } from '@univerjs/engine-render';
|
|
18
|
+
import { ICommandService, IConfigService, RxDisposable } from '@univerjs/core';
|
|
3
19
|
import { ITelemetryService } from '@univerjs/telemetry';
|
|
4
20
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
5
21
|
import { SheetsRenderService } from '../../services/sheets-render.service';
|
|
@@ -18,7 +34,7 @@ export declare class SheetRenderController extends RxDisposable implements IRend
|
|
|
18
34
|
private readonly _commandService;
|
|
19
35
|
private readonly _telemetryService?;
|
|
20
36
|
private _renderMetric$;
|
|
21
|
-
renderMetric$: import(
|
|
37
|
+
renderMetric$: import("rxjs").Observable<ITelemetryData>;
|
|
22
38
|
constructor(_context: IRenderContext<Workbook>, _configService: IConfigService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetRenderService: SheetsRenderService, _commandService: ICommandService, _telemetryService?: ITelemetryService | undefined);
|
|
23
39
|
private _addNewRender;
|
|
24
40
|
private _renderFrameTimeMetric;
|