@cool-office/docs-ui 0.0.0-stage → 1.2.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/LICENSE +176 -0
- package/README.md +112 -2
- package/lib/cjs/facade.js +81 -0
- package/lib/cjs/index.js +33220 -0
- package/lib/cjs/locale/ar-SA.js +258 -0
- package/lib/cjs/locale/ca-ES.js +258 -0
- package/lib/cjs/locale/de-DE.js +258 -0
- package/lib/cjs/locale/en-US.js +273 -0
- package/lib/cjs/locale/es-ES.js +258 -0
- package/lib/cjs/locale/fa-IR.js +258 -0
- package/lib/cjs/locale/fr-FR.js +258 -0
- package/lib/cjs/locale/id-ID.js +258 -0
- package/lib/cjs/locale/it-IT.js +258 -0
- package/lib/cjs/locale/ja-JP.js +258 -0
- package/lib/cjs/locale/ko-KR.js +258 -0
- package/lib/cjs/locale/pl-PL.js +258 -0
- package/lib/cjs/locale/pt-BR.js +258 -0
- package/lib/cjs/locale/ru-RU.js +258 -0
- package/lib/cjs/locale/sk-SK.js +258 -0
- package/lib/cjs/locale/vi-VN.js +258 -0
- package/lib/cjs/locale/zh-CN.js +258 -0
- package/lib/cjs/locale/zh-HK.js +258 -0
- package/lib/cjs/locale/zh-TW.js +258 -0
- package/lib/es/facade.js +82 -0
- package/lib/es/index.js +32881 -0
- package/lib/es/locale/ar-SA.js +258 -0
- package/lib/es/locale/ca-ES.js +258 -0
- package/lib/es/locale/de-DE.js +258 -0
- package/lib/es/locale/en-US.js +273 -0
- package/lib/es/locale/es-ES.js +258 -0
- package/lib/es/locale/fa-IR.js +258 -0
- package/lib/es/locale/fr-FR.js +258 -0
- package/lib/es/locale/id-ID.js +258 -0
- package/lib/es/locale/it-IT.js +258 -0
- package/lib/es/locale/ja-JP.js +258 -0
- package/lib/es/locale/ko-KR.js +258 -0
- package/lib/es/locale/pl-PL.js +258 -0
- package/lib/es/locale/pt-BR.js +258 -0
- package/lib/es/locale/ru-RU.js +258 -0
- package/lib/es/locale/sk-SK.js +258 -0
- package/lib/es/locale/vi-VN.js +258 -0
- package/lib/es/locale/zh-CN.js +258 -0
- package/lib/es/locale/zh-HK.js +258 -0
- package/lib/es/locale/zh-TW.js +258 -0
- package/lib/facade.js +82 -0
- package/lib/index.css +1252 -0
- package/lib/index.js +32881 -0
- package/lib/locale/ar-SA.js +258 -0
- package/lib/locale/ca-ES.js +258 -0
- package/lib/locale/de-DE.js +258 -0
- package/lib/locale/en-US.js +273 -0
- package/lib/locale/es-ES.js +258 -0
- package/lib/locale/fa-IR.js +258 -0
- package/lib/locale/fr-FR.js +258 -0
- package/lib/locale/id-ID.js +258 -0
- package/lib/locale/it-IT.js +258 -0
- package/lib/locale/ja-JP.js +258 -0
- package/lib/locale/ko-KR.js +258 -0
- package/lib/locale/pl-PL.js +258 -0
- package/lib/locale/pt-BR.js +258 -0
- package/lib/locale/ru-RU.js +258 -0
- package/lib/locale/sk-SK.js +258 -0
- package/lib/locale/vi-VN.js +258 -0
- package/lib/locale/zh-CN.js +258 -0
- package/lib/locale/zh-HK.js +258 -0
- package/lib/locale/zh-TW.js +258 -0
- package/lib/types/basics/component-tools.d.ts +30 -0
- package/lib/types/basics/custom-decoration-factory.d.ts +40 -0
- package/lib/types/basics/doc-custom-range-chrome.d.ts +31 -0
- package/lib/types/basics/docs-view-key.d.ts +30 -0
- package/lib/types/basics/editor.d.ts +16 -0
- package/lib/types/basics/paragraph.d.ts +24 -0
- package/lib/types/basics/selection.d.ts +17 -0
- package/lib/types/basics/table.d.ts +31 -0
- package/lib/types/commands/commands/auto-format.command.d.ts +22 -0
- package/lib/types/commands/commands/break-line.command.d.ts +29 -0
- package/lib/types/commands/commands/clipboard.command.d.ts +39 -0
- package/lib/types/commands/commands/clipboard.inner.command.d.ts +43 -0
- package/lib/types/commands/commands/doc-block-move.command.d.ts +52 -0
- package/lib/types/commands/commands/doc-delete.command.d.ts +44 -0
- package/lib/types/commands/commands/doc-header-footer.command.d.ts +40 -0
- package/lib/types/commands/commands/doc-horizontal-line.command.d.ts +24 -0
- package/lib/types/commands/commands/doc-page-setup.command.d.ts +27 -0
- package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +20 -0
- package/lib/types/commands/commands/doc-select-all.command.d.ts +23 -0
- package/lib/types/commands/commands/format-painter.command.d.ts +33 -0
- package/lib/types/commands/commands/ime-input.command.d.ts +25 -0
- package/lib/types/commands/commands/inline-format.command.d.ts +36 -0
- package/lib/types/commands/commands/insert-below/insert-bullet-below.command.d.ts +21 -0
- package/lib/types/commands/commands/insert-custom-range.command.d.ts +26 -0
- package/lib/types/commands/commands/insert-header-footer-field.command.d.ts +28 -0
- package/lib/types/commands/commands/insert-special-character.command.d.ts +19 -0
- package/lib/types/commands/commands/list.command.d.ts +64 -0
- package/lib/types/commands/commands/paragraph-align.command.d.ts +34 -0
- package/lib/types/commands/commands/refresh-header-footer-fields.command.d.ts +22 -0
- package/lib/types/commands/commands/replace-content.command.d.ts +55 -0
- package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts +21 -0
- package/lib/types/commands/commands/set-heading.command.d.ts +38 -0
- package/lib/types/commands/commands/switch-doc-mode.command.d.ts +19 -0
- package/lib/types/commands/commands/table/doc-table-create.command.d.ts +56 -0
- package/lib/types/commands/commands/table/doc-table-delete.command.d.ts +28 -0
- package/lib/types/commands/commands/table/doc-table-insert.command.d.ts +49 -0
- package/lib/types/commands/commands/table/doc-table-tab.command.d.ts +20 -0
- package/lib/types/commands/commands/table/table.d.ts +108 -0
- package/lib/types/commands/commands/util.d.ts +17 -0
- package/lib/types/commands/operations/doc-create-table.operation.d.ts +17 -0
- package/lib/types/commands/operations/doc-cursor.operation.d.ts +29 -0
- package/lib/types/commands/operations/doc-header-footer-panel.operation.d.ts +20 -0
- package/lib/types/commands/operations/doc-header-footer-ribbon.operation.d.ts +19 -0
- package/lib/types/commands/operations/doc-paragraph-setting-panel.operation.d.ts +17 -0
- package/lib/types/commands/operations/doc-section-setting-panel.operation.d.ts +17 -0
- package/lib/types/commands/operations/insert-break.operation.d.ts +21 -0
- package/lib/types/commands/operations/open-page-setting.operation.d.ts +17 -0
- package/lib/types/commands/operations/paragraph-permission.operation.d.ts +17 -0
- package/lib/types/commands/operations/permission-panel.operation.d.ts +17 -0
- package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts +22 -0
- package/lib/types/commands/util.d.ts +23 -0
- package/lib/types/components/doc-page-render-component.d.ts +21 -0
- package/lib/types/config/config.d.ts +50 -0
- package/lib/types/consts/mobile-context.d.ts +17 -0
- package/lib/types/controllers/components.controller.d.ts +25 -0
- package/lib/types/controllers/doc-auto-format.controller.d.ts +27 -0
- package/lib/types/controllers/doc-header-footer-ribbon.controller.d.ts +31 -0
- package/lib/types/controllers/doc-header-footer.controller.d.ts +46 -0
- package/lib/types/controllers/doc-move-cursor.controller.d.ts +71 -0
- package/lib/types/controllers/doc-paragraph-setting.controller.d.ts +25 -0
- package/lib/types/controllers/doc-section-setting.controller.d.ts +27 -0
- package/lib/types/controllers/doc-table.controller.d.ts +23 -0
- package/lib/types/controllers/format-painter.controller.d.ts +23 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +25 -0
- package/lib/types/controllers/mobile/ui.controller.d.ts +29 -0
- package/lib/types/controllers/render-controllers/back-scroll.render-controller.d.ts +50 -0
- package/lib/types/controllers/render-controllers/doc-canvas-popup-layout-interaction.controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/doc-checklist.render-controller.d.ts +31 -0
- package/lib/types/controllers/render-controllers/doc-clipboard.controller.d.ts +32 -0
- package/lib/types/controllers/render-controllers/doc-contextmenu.render-controller.d.ts +38 -0
- package/lib/types/controllers/render-controllers/doc-editor-bridge.controller.d.ts +41 -0
- package/lib/types/controllers/render-controllers/doc-field.render-controller.d.ts +31 -0
- package/lib/types/controllers/render-controllers/doc-ime-input.controller.d.ts +44 -0
- package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +36 -0
- package/lib/types/controllers/render-controllers/doc-layout-progress.render-controller.d.ts +42 -0
- package/lib/types/controllers/render-controllers/doc-layout-recovery.render-controller.d.ts +38 -0
- package/lib/types/controllers/render-controllers/doc-mutation-layout.d.ts +35 -0
- package/lib/types/controllers/render-controllers/doc-paragraph-placeholder.render-controller.d.ts +61 -0
- package/lib/types/controllers/render-controllers/doc-paste-options.render-controller.d.ts +27 -0
- package/lib/types/controllers/render-controllers/doc-resize.render-controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +50 -0
- package/lib/types/controllers/render-controllers/doc-selection-render.util.d.ts +21 -0
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +133 -0
- package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +23 -0
- package/lib/types/controllers/render-controllers/mobile/back-scroll.render-controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/mobile/doc-pinch-zoom.d.ts +51 -0
- package/lib/types/controllers/render-controllers/mobile/doc-selection-render.controller.d.ts +73 -0
- package/lib/types/controllers/render-controllers/mobile/doc.render-controller.d.ts +36 -0
- package/lib/types/controllers/render-controllers/mobile/zoom.render-controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +49 -0
- package/lib/types/controllers/ui.controller.d.ts +38 -0
- package/lib/types/embed-docs-custom-block-bleed.d.ts +32 -0
- package/lib/types/embed-docs-custom-block-refresh.d.ts +28 -0
- package/lib/types/embed-docs-custom-block-scroll.d.ts +19 -0
- package/lib/types/embed-host-anchor.d.ts +48 -0
- package/lib/types/facade/f-document.d.ts +39 -0
- package/lib/types/facade/index.d.ts +17 -0
- package/lib/types/index.d.ts +142 -0
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/ca-ES.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +280 -0
- package/lib/types/locale/es-ES.d.ts +18 -0
- package/lib/types/locale/fa-IR.d.ts +18 -0
- package/lib/types/locale/fr-FR.d.ts +18 -0
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/ja-JP.d.ts +18 -0
- package/lib/types/locale/ko-KR.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/ru-RU.d.ts +18 -0
- package/lib/types/locale/sk-SK.d.ts +18 -0
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/locale/vi-VN.d.ts +18 -0
- package/lib/types/locale/zh-CN.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/locale/zh-TW.d.ts +18 -0
- package/lib/types/menu/context-menu.d.ts +39 -0
- package/lib/types/menu/display.menu.d.ts +21 -0
- package/lib/types/menu/header-footer-ribbon.d.ts +17 -0
- package/lib/types/menu/menu.d.ts +77 -0
- package/lib/types/menu/mobile-schema.d.ts +17 -0
- package/lib/types/menu/paragraph-menu.d.ts +90 -0
- package/lib/types/menu/permission.menu.d.ts +19 -0
- package/lib/types/menu/schema.d.ts +18 -0
- package/lib/types/mobile-plugin.d.ts +36 -0
- package/lib/types/plugin.d.ts +37 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +136 -0
- package/lib/types/services/clipboard/copy-content-cache.d.ts +24 -0
- package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +57 -0
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +51 -0
- package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +17 -0
- package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts +16 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +18 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +18 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +18 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +31 -0
- package/lib/types/services/clipboard/html-to-udm/utils.d.ts +17 -0
- package/lib/types/services/clipboard/internal-fragment.d.ts +34 -0
- package/lib/types/services/clipboard/paste-options.d.ts +33 -0
- package/lib/types/services/clipboard/rtf-to-plain-text.d.ts +16 -0
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +25 -0
- package/lib/types/services/clipboard/udm-to-html/doc-html-export.service.d.ts +23 -0
- package/lib/types/services/doc-auto-format.service.d.ts +54 -0
- package/lib/types/services/doc-contextual-ribbon.service.d.ts +29 -0
- package/lib/types/services/doc-embed-integration.service.d.ts +65 -0
- package/lib/types/services/doc-event-manager.service.d.ts +204 -0
- package/lib/types/services/doc-heading-collapse.service.d.ts +38 -0
- package/lib/types/services/doc-ime-input-manager.service.d.ts +63 -0
- package/lib/types/services/doc-ime-state-change-interceptor.service.d.ts +23 -0
- package/lib/types/services/doc-layout-coordinator.service.d.ts +79 -0
- package/lib/types/services/doc-layout-interaction.service.d.ts +29 -0
- package/lib/types/services/doc-layout-progress.service.d.ts +30 -0
- package/lib/types/services/doc-menu-style.service.d.ts +37 -0
- package/lib/types/services/doc-mobile-element-menu.service.d.ts +44 -0
- package/lib/types/services/doc-page-layout.service.d.ts +28 -0
- package/lib/types/services/doc-paragraph-menu.service.d.ts +129 -0
- package/lib/types/services/doc-popup-manager.service.d.ts +79 -0
- package/lib/types/services/doc-print-interceptor.service.d.ts +55 -0
- package/lib/types/services/doc-render-background.d.ts +29 -0
- package/lib/types/services/doc-view-scale.d.ts +54 -0
- package/lib/types/services/doc-zoom.d.ts +23 -0
- package/lib/types/services/docs-render.service.d.ts +30 -0
- package/lib/types/services/editor/editor-manager.service.d.ts +88 -0
- package/lib/types/services/editor/editor-runtime-config.d.ts +26 -0
- package/lib/types/services/editor/editor.d.ts +139 -0
- package/lib/types/services/float-menu.service.d.ts +62 -0
- package/lib/types/services/index.d.ts +22 -0
- package/lib/types/services/mobile/doc-selection-render.service.d.ts +60 -0
- package/lib/types/services/mobile/doc-view-scale.d.ts +19 -0
- package/lib/types/services/mobile/float-menu.service.d.ts +20 -0
- package/lib/types/services/mobile/mobile-text-selection-visuals.d.ts +32 -0
- package/lib/types/services/selection/convert-rect-range.d.ts +42 -0
- package/lib/types/services/selection/convert-text-range.d.ts +86 -0
- package/lib/types/services/selection/doc-selection-render.service.d.ts +203 -0
- package/lib/types/services/selection/range-interface.d.ts +34 -0
- package/lib/types/services/selection/rect-range.d.ts +63 -0
- package/lib/types/services/selection/selection-utils.d.ts +41 -0
- package/lib/types/services/selection/text-range.d.ts +88 -0
- package/lib/types/services/selection/word-boundary.d.ts +23 -0
- package/lib/types/shortcuts/core-editing.shortcut.d.ts +25 -0
- package/lib/types/shortcuts/cursor.shortcut.d.ts +41 -0
- package/lib/types/shortcuts/format.shortcut.d.ts +19 -0
- package/lib/types/shortcuts/heading.shortcut.d.ts +22 -0
- package/lib/types/shortcuts/toolbar.shortcut.d.ts +28 -0
- package/lib/types/shortcuts/utils.d.ts +19 -0
- package/lib/types/types/const/padding.d.ts +16 -0
- package/lib/types/utils/date-time-field.d.ts +22 -0
- package/lib/types/utils/horizontal-line.d.ts +17 -0
- package/lib/types/utils/section-header-footer.d.ts +34 -0
- package/lib/types/views/DocLayoutProgress.d.ts +16 -0
- package/lib/types/views/DocLayoutRecovery.d.ts +17 -0
- package/lib/types/views/DocPasteOptions.d.ts +17 -0
- package/lib/types/views/DocSideMenu.d.ts +16 -0
- package/lib/types/views/Icon.d.ts +46 -0
- package/lib/types/views/PageSettings.d.ts +43 -0
- package/lib/types/views/ParagraphMenu.d.ts +79 -0
- package/lib/types/views/RichTextEditor.d.ts +62 -0
- package/lib/types/views/SideMenu.d.ts +43 -0
- package/lib/types/views/const.d.ts +16 -0
- package/lib/types/views/count-bar/CountBar.d.ts +21 -0
- package/lib/types/views/count-bar/ZoomSlider.d.ts +16 -0
- package/lib/types/views/count-bar/index.d.ts +16 -0
- package/lib/types/views/doc-footer/DocFooter.d.ts +16 -0
- package/lib/types/views/doc-footer/index.d.ts +16 -0
- package/lib/types/views/doc-side-menu-layout.d.ts +17 -0
- package/lib/types/views/doc-statistics/DocPageStatus.d.ts +30 -0
- package/lib/types/views/doc-statistics/DocStatistics.d.ts +16 -0
- package/lib/types/views/doc-statistics/use-doc-statistics.d.ts +30 -0
- package/lib/types/views/editor/utils.d.ts +22 -0
- package/lib/types/views/float-toolbar/FloatToolbar.d.ts +40 -0
- package/lib/types/views/float-toolbar/FloatToolbar.stories.d.ts +22 -0
- package/lib/types/views/header-footer/content-cover.d.ts +30 -0
- package/lib/types/views/header-footer/panel/DocHeaderFooterFields.d.ts +19 -0
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +23 -0
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +17 -0
- package/lib/types/views/header-footer/panel/DocHeaderFooterRibbonControl.d.ts +20 -0
- package/lib/types/views/header-footer/panel/component-name.d.ts +18 -0
- package/lib/types/views/header-footer/panel/use-header-footer-options.d.ts +25 -0
- package/lib/types/views/header-footer/text-bubble.d.ts +35 -0
- package/lib/types/views/heading-collapse-shape.d.ts +38 -0
- package/lib/types/views/list-type-picker/Picker.d.ts +27 -0
- package/lib/types/views/list-type-picker/index.d.ts +18 -0
- package/lib/types/views/mobile/MobileDocCanvasViewport.d.ts +20 -0
- package/lib/types/views/mobile/MobileDocPasteOptions.d.ts +21 -0
- package/lib/types/views/mobile/MobileDocSettings.d.ts +20 -0
- package/lib/types/views/mobile-doc-toolbar/MobileDocToolbar.d.ts +30 -0
- package/lib/types/views/mobile-element-menu/MobileDocElementMenu.d.ts +25 -0
- package/lib/types/views/mobile-rich-text-editor/MobileRichTextEditor.d.ts +33 -0
- package/lib/types/views/mobile-rich-text-toolbar/MobileRichTextToolbar.d.ts +20 -0
- package/lib/types/views/paragraph-menu/component-keys.d.ts +17 -0
- package/lib/types/views/paragraph-menu/paragraph-menu-position.d.ts +21 -0
- package/lib/types/views/paragraph-menu/theme-color.d.ts +17 -0
- package/lib/types/views/paragraph-setting/Setting.d.ts +45 -0
- package/lib/types/views/paragraph-setting/hook/utils.d.ts +48 -0
- package/lib/types/views/paragraph-setting/index.d.ts +17 -0
- package/lib/types/views/paragraph-setting/line-spacing.d.ts +39 -0
- package/lib/types/views/permission/DocObjectPermissionEntry.d.ts +24 -0
- package/lib/types/views/rich-text-editor/hooks/editor-undo-redo-keyboard.d.ts +36 -0
- package/lib/types/views/rich-text-editor/hooks/index.d.ts +23 -0
- package/lib/types/views/rich-text-editor/hooks/use-editor-click-outside.d.ts +17 -0
- package/lib/types/views/rich-text-editor/hooks/use-editor.d.ts +36 -0
- package/lib/types/views/rich-text-editor/hooks/use-is-focusing.d.ts +16 -0
- package/lib/types/views/rich-text-editor/hooks/use-keyboard-event.d.ts +26 -0
- package/lib/types/views/rich-text-editor/hooks/use-left-and-right-arrow.d.ts +18 -0
- package/lib/types/views/rich-text-editor/hooks/use-on-change.d.ts +18 -0
- package/lib/types/views/rich-text-editor/hooks/use-resize.d.ts +23 -0
- package/lib/types/views/section-setting/Setting.d.ts +27 -0
- package/lib/types/views/section-setting/component-name.d.ts +16 -0
- package/lib/types/views/section-setting/index.d.ts +17 -0
- package/lib/types/views/section-setting/use-section-setting.d.ts +75 -0
- package/lib/types/views/side-menu/SideMenu.stories.d.ts +31 -0
- package/lib/types/views/table/create/TableCreate.d.ts +24 -0
- package/lib/types/views/table/create/component-name.d.ts +16 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +54 -0
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +99 -3
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
//#region src/locale/zh-TW.ts
|
|
2
|
+
const locale = { "docs-ui": {
|
|
3
|
+
pasteOptions: {
|
|
4
|
+
special: "選擇性貼上",
|
|
5
|
+
title: "貼上選項",
|
|
6
|
+
source: "保留來源格式",
|
|
7
|
+
destination: "符合目的地格式",
|
|
8
|
+
text: "只保留文字",
|
|
9
|
+
useKeyboard: "無法讀取剪貼簿。請按 {0} 貼上,再透過「貼上選項」切換格式。",
|
|
10
|
+
useSystemPaste: "無法存取剪貼簿。請使用裝置或鍵盤提供的貼上操作,再透過「貼上選項」切換格式。",
|
|
11
|
+
failed: "無法切換貼上格式。"
|
|
12
|
+
},
|
|
13
|
+
outline: { title: "文件大綱" },
|
|
14
|
+
objectPermission: {
|
|
15
|
+
paragraphPermission: "權限",
|
|
16
|
+
title: "權限",
|
|
17
|
+
paragraph: "段落",
|
|
18
|
+
section: "節"
|
|
19
|
+
},
|
|
20
|
+
mobile: {
|
|
21
|
+
insert: "插入",
|
|
22
|
+
edit: "編輯",
|
|
23
|
+
done: "完成",
|
|
24
|
+
more: "更多",
|
|
25
|
+
back: "返回",
|
|
26
|
+
close: "關閉",
|
|
27
|
+
format: "格式",
|
|
28
|
+
layout: "版面",
|
|
29
|
+
keyboard: "顯示鍵盤",
|
|
30
|
+
hideKeyboard: "收合鍵盤",
|
|
31
|
+
expand: "展開工具",
|
|
32
|
+
collapse: "收合工具"
|
|
33
|
+
},
|
|
34
|
+
layout: {
|
|
35
|
+
progress: "正在排版文件…",
|
|
36
|
+
recovering: "正在復原文件排版…"
|
|
37
|
+
},
|
|
38
|
+
toolbar: {
|
|
39
|
+
zoom: "縮放",
|
|
40
|
+
fullscreen: "全螢幕",
|
|
41
|
+
font: "字體",
|
|
42
|
+
fontSize: "字號",
|
|
43
|
+
bold: "粗體",
|
|
44
|
+
italic: "斜體",
|
|
45
|
+
strikethrough: "刪除線",
|
|
46
|
+
subscript: "下標",
|
|
47
|
+
superscript: "上標",
|
|
48
|
+
underline: "底線",
|
|
49
|
+
textColor: { main: "文字顏色" },
|
|
50
|
+
fillColor: { main: "文字背景色" },
|
|
51
|
+
table: {
|
|
52
|
+
main: "表格",
|
|
53
|
+
insert: "插入表格",
|
|
54
|
+
colCount: "欄數",
|
|
55
|
+
rowCount: "列數"
|
|
56
|
+
},
|
|
57
|
+
resetColor: "重置顏色",
|
|
58
|
+
order: "有序列表",
|
|
59
|
+
unorder: "無序列表",
|
|
60
|
+
checklist: "任務列表",
|
|
61
|
+
alignLeft: "左對齊",
|
|
62
|
+
alignCenter: "居中對齊",
|
|
63
|
+
alignRight: "右對齊",
|
|
64
|
+
alignJustify: "兩端對齊",
|
|
65
|
+
horizontalLine: "水平線",
|
|
66
|
+
headerFooter: "頁眉頁腳",
|
|
67
|
+
pageSetup: "頁面設置",
|
|
68
|
+
breaks: "分隔符",
|
|
69
|
+
columnBreak: "分欄符",
|
|
70
|
+
sectionBreakNextPage: "分節符(下一頁)",
|
|
71
|
+
sectionBreakContinuous: "分節符(連續)",
|
|
72
|
+
sectionBreakNextColumn: "分節符(下一欄)",
|
|
73
|
+
sectionBreakEvenPage: "分節符(偶數頁)",
|
|
74
|
+
sectionBreakOddPage: "分節符(奇數頁)",
|
|
75
|
+
heading: {
|
|
76
|
+
tooltip: "標題",
|
|
77
|
+
normal: "普通文字",
|
|
78
|
+
leading1: "標題1",
|
|
79
|
+
leading2: "標題2",
|
|
80
|
+
leading3: "標題3",
|
|
81
|
+
leading4: "標題4",
|
|
82
|
+
leading5: "標題5",
|
|
83
|
+
title: "標題",
|
|
84
|
+
subTitle: "副標題"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
table: {
|
|
88
|
+
insert: "插入",
|
|
89
|
+
insertRowAbove: "在上方插入行",
|
|
90
|
+
insertRowBelow: "在下方插入行",
|
|
91
|
+
insertColumnLeft: "在左側插入列",
|
|
92
|
+
insertColumnRight: "在右側插入列",
|
|
93
|
+
delete: "刪除表格",
|
|
94
|
+
deleteRows: "刪除行",
|
|
95
|
+
deleteColumns: "刪除列",
|
|
96
|
+
deleteTable: "刪除表格"
|
|
97
|
+
},
|
|
98
|
+
headerFooter: {
|
|
99
|
+
navigation: "導覽",
|
|
100
|
+
options: "選項",
|
|
101
|
+
position: "位置",
|
|
102
|
+
refreshFields: "更新欄位",
|
|
103
|
+
pageNumber: "頁碼",
|
|
104
|
+
currentPage: "目前頁碼",
|
|
105
|
+
totalPages: "總頁數",
|
|
106
|
+
dateTime: "日期與時間",
|
|
107
|
+
updateAutomatically: "自動更新",
|
|
108
|
+
insertFailed: "文件已變更或無法編輯,請關閉對話方塊後重試。",
|
|
109
|
+
goToHeader: "移至頁首",
|
|
110
|
+
goToFooter: "移至頁尾",
|
|
111
|
+
linkToPrevious: "連結到上一節",
|
|
112
|
+
header: "頁眉",
|
|
113
|
+
footer: "頁腳",
|
|
114
|
+
panel: "頁眉頁腳設置",
|
|
115
|
+
firstPageCheckBox: "首頁不同",
|
|
116
|
+
oddEvenCheckBox: "奇偶頁不同",
|
|
117
|
+
headerTopMargin: "頁眉頂端距離(px)",
|
|
118
|
+
footerBottomMargin: "頁腳底端距離(px)",
|
|
119
|
+
closeHeaderFooter: "關閉頁眉頁腳",
|
|
120
|
+
disableText: "頁眉頁腳設置不可用"
|
|
121
|
+
},
|
|
122
|
+
statistics: {
|
|
123
|
+
title: "文件統計",
|
|
124
|
+
open: "檢視文件統計",
|
|
125
|
+
document: "整份文件",
|
|
126
|
+
selection: "目前選取範圍",
|
|
127
|
+
wordCount: "字數 {0}",
|
|
128
|
+
selectedWords: "字數 {0} / {1}",
|
|
129
|
+
currentPage: "第 {0} 頁",
|
|
130
|
+
currentPageOfTotal: "第 {0} 頁,共 {1} 頁",
|
|
131
|
+
pages: "頁數",
|
|
132
|
+
words: "字數",
|
|
133
|
+
charactersWithoutSpaces: "字元數(不計空格)",
|
|
134
|
+
charactersWithSpaces: "字元數(計空格)",
|
|
135
|
+
paragraphs: "段落數",
|
|
136
|
+
lines: "行數",
|
|
137
|
+
nonAsianWords: "非亞洲語言字數",
|
|
138
|
+
asianCharactersAndKoreanWords: "亞洲語言字元、韓文單字"
|
|
139
|
+
},
|
|
140
|
+
placeholder: {
|
|
141
|
+
heading1: "標題1",
|
|
142
|
+
heading2: "標題2",
|
|
143
|
+
heading3: "標題3",
|
|
144
|
+
heading4: "標題4",
|
|
145
|
+
heading5: "標題5",
|
|
146
|
+
normalText: "請輸入文字或按\"/\"啟用命令",
|
|
147
|
+
listItem: "項目"
|
|
148
|
+
},
|
|
149
|
+
doc: {
|
|
150
|
+
blockMenu: { dragBlock: "拖曳區塊" },
|
|
151
|
+
menu: {
|
|
152
|
+
paragraphSetting: "段落設定",
|
|
153
|
+
sectionSetting: "節設定"
|
|
154
|
+
},
|
|
155
|
+
slider: {
|
|
156
|
+
paragraphSetting: "段落設定",
|
|
157
|
+
sectionSetting: "節設定"
|
|
158
|
+
},
|
|
159
|
+
paragraphSetting: {
|
|
160
|
+
alignment: "對齊方式",
|
|
161
|
+
indentation: "縮排",
|
|
162
|
+
left: "左",
|
|
163
|
+
right: "右",
|
|
164
|
+
firstLine: "第一行",
|
|
165
|
+
hanging: "凸排",
|
|
166
|
+
spacing: "間距",
|
|
167
|
+
before: "段前",
|
|
168
|
+
after: "段後",
|
|
169
|
+
lineSpace: "行距",
|
|
170
|
+
multiSpace: "多倍行距",
|
|
171
|
+
atLeast: "至少 (px)",
|
|
172
|
+
exactly: "固定值 (px)"
|
|
173
|
+
},
|
|
174
|
+
sectionSetting: {
|
|
175
|
+
selectedSections: "已選取 {0} 個節",
|
|
176
|
+
multipleValues: "多個值",
|
|
177
|
+
columnCount: "欄數",
|
|
178
|
+
columnGap: "欄間距",
|
|
179
|
+
columnSeparator: "分隔線",
|
|
180
|
+
none: "無",
|
|
181
|
+
betweenColumns: "欄之間",
|
|
182
|
+
sectionStart: "節起始位置",
|
|
183
|
+
unspecified: "未指定",
|
|
184
|
+
continuous: "接續本頁",
|
|
185
|
+
nextColumn: "下一欄",
|
|
186
|
+
nextPage: "下一頁",
|
|
187
|
+
evenPage: "偶數頁",
|
|
188
|
+
oddPage: "奇數頁",
|
|
189
|
+
pageSetup: "頁面設定",
|
|
190
|
+
pageWidth: "頁面寬度",
|
|
191
|
+
pageHeight: "頁面高度",
|
|
192
|
+
pageNumberStart: "起始頁碼"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
rightClick: {
|
|
196
|
+
copy: "複製",
|
|
197
|
+
cut: "剪切",
|
|
198
|
+
paste: "貼上",
|
|
199
|
+
select: "選取",
|
|
200
|
+
selectAll: "全選",
|
|
201
|
+
delete: "刪除",
|
|
202
|
+
bulletList: "無序列表",
|
|
203
|
+
orderList: "有序列表",
|
|
204
|
+
checkList: "任務列表",
|
|
205
|
+
insertBellow: "在下方插入"
|
|
206
|
+
},
|
|
207
|
+
paragraphMenu: {
|
|
208
|
+
alignAndIndent: "對齊與縮排",
|
|
209
|
+
align: "對齊",
|
|
210
|
+
indent: "縮排",
|
|
211
|
+
color: "顏色",
|
|
212
|
+
increase: "增加",
|
|
213
|
+
decrease: "減少",
|
|
214
|
+
increaseIndent: "增加縮排",
|
|
215
|
+
decreaseIndent: "減少縮排",
|
|
216
|
+
defaultTextColor: "預設文字顏色",
|
|
217
|
+
noBackground: "無背景色"
|
|
218
|
+
},
|
|
219
|
+
heading: {
|
|
220
|
+
collapse: "收合",
|
|
221
|
+
expand: "展開"
|
|
222
|
+
},
|
|
223
|
+
"page-settings": {
|
|
224
|
+
"document-setting": "文件設定",
|
|
225
|
+
"modern-width": "內容寬度",
|
|
226
|
+
"modern-width-narrow": "窄",
|
|
227
|
+
"modern-width-medium": "適中",
|
|
228
|
+
"modern-width-wide": "寬",
|
|
229
|
+
"page-size": {
|
|
230
|
+
main: "紙張大小",
|
|
231
|
+
a4: "A4",
|
|
232
|
+
a3: "A3",
|
|
233
|
+
a5: "A5",
|
|
234
|
+
b4: "B4",
|
|
235
|
+
b5: "B5",
|
|
236
|
+
letter: "美式信紙",
|
|
237
|
+
legal: "美式法律用紙",
|
|
238
|
+
tabloid: "小報尺寸",
|
|
239
|
+
statement: "聲明用紙",
|
|
240
|
+
executive: "行政用紙",
|
|
241
|
+
folio: "對開紙"
|
|
242
|
+
},
|
|
243
|
+
"paper-size": "紙張大小",
|
|
244
|
+
orientation: "方向",
|
|
245
|
+
portrait: "縱向",
|
|
246
|
+
landscape: "橫向",
|
|
247
|
+
"custom-paper-size": "自定義紙張大小",
|
|
248
|
+
top: "上",
|
|
249
|
+
bottom: "下",
|
|
250
|
+
left: "左",
|
|
251
|
+
right: "右",
|
|
252
|
+
cancel: "取消",
|
|
253
|
+
confirm: "確認"
|
|
254
|
+
}
|
|
255
|
+
} };
|
|
256
|
+
|
|
257
|
+
//#endregion
|
|
258
|
+
export { locale as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { DocumentDataModel, Nullable } from '@cool-office/core';
|
|
17
|
+
import type { DocBackground, Documents, Engine, IRender, IRenderContext, IRenderManagerService, Scene } from '@cool-office/engine-render';
|
|
18
|
+
export interface IDocObjectParam {
|
|
19
|
+
document: Documents;
|
|
20
|
+
docBackground: DocBackground;
|
|
21
|
+
scene: Scene;
|
|
22
|
+
engine: Engine;
|
|
23
|
+
}
|
|
24
|
+
export declare function neoGetDocObject(renderContext: IRender | IRenderContext<DocumentDataModel>): {
|
|
25
|
+
document: Documents;
|
|
26
|
+
docBackground: DocBackground;
|
|
27
|
+
scene: Scene;
|
|
28
|
+
engine: Engine;
|
|
29
|
+
};
|
|
30
|
+
export declare function getDocObjectById(unitId: string, renderManagerService: IRenderManagerService): Nullable<IDocObjectParam>;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { CustomDecorationType, IAccessor, IMutationInfo } from '@cool-office/core';
|
|
17
|
+
import type { IRichTextEditingMutationParams } from '@cool-office/docs';
|
|
18
|
+
import type { ITextRangeWithStyle } from '@cool-office/engine-render';
|
|
19
|
+
interface IAddCustomDecorationParam {
|
|
20
|
+
unitId: string;
|
|
21
|
+
ranges: ITextRangeWithStyle[];
|
|
22
|
+
segmentId?: string;
|
|
23
|
+
id: string;
|
|
24
|
+
type: CustomDecorationType;
|
|
25
|
+
}
|
|
26
|
+
export declare function addCustomDecorationFactory(param: IAddCustomDecorationParam): IMutationInfo<IRichTextEditingMutationParams>;
|
|
27
|
+
interface IAddCustomDecorationFactoryParam {
|
|
28
|
+
segmentId?: string;
|
|
29
|
+
id: string;
|
|
30
|
+
type: CustomDecorationType;
|
|
31
|
+
unitId?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function addCustomDecorationBySelectionFactory(accessor: IAccessor, param: IAddCustomDecorationFactoryParam): false | IMutationInfo<IRichTextEditingMutationParams>;
|
|
34
|
+
export interface IDeleteCustomRangeParam {
|
|
35
|
+
unitId: string;
|
|
36
|
+
id: string;
|
|
37
|
+
segmentId?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function deleteCustomDecorationFactory(accessor: IAccessor, params: IDeleteCustomRangeParam): false | IMutationInfo<IRichTextEditingMutationParams>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 '@cool-office/core';
|
|
17
|
+
import type { UniverRenderingContext } from '@cool-office/engine-render';
|
|
18
|
+
export declare const DOC_CUSTOM_RANGE_CHROME_RADIUS = 1;
|
|
19
|
+
export declare const DOC_CUSTOM_RANGE_CHROME_BACKGROUND_ALPHA = 0.07;
|
|
20
|
+
export interface IDocCustomRangeChromeRect {
|
|
21
|
+
bottom: number;
|
|
22
|
+
left: number;
|
|
23
|
+
right: number;
|
|
24
|
+
top: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IDocCustomRangeChromeTheme {
|
|
27
|
+
background: string;
|
|
28
|
+
border: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function resolveDocCustomRangeChromeTheme(themeService: ThemeService): IDocCustomRangeChromeTheme;
|
|
31
|
+
export declare function drawDocCustomRangeChrome(ctx: Pick<UniverRenderingContext, 'beginPath' | 'fill' | 'fillStyle' | 'lineWidth' | 'restore' | 'roundRect' | 'save' | 'stroke' | 'strokeStyle'>, rect: IDocCustomRangeChromeRect, theme: IDocCustomRangeChromeTheme): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
export declare enum DOCS_VIEW_KEY {
|
|
17
|
+
MAIN = "__Document_Render_Main__",
|
|
18
|
+
BACKGROUND = "__Document_Render_Background__"
|
|
19
|
+
}
|
|
20
|
+
export declare enum VIEWPORT_KEY {
|
|
21
|
+
VIEW_MAIN = "viewMain",
|
|
22
|
+
VIEW_TOP = "viewTop",
|
|
23
|
+
VIEW_LEFT = "viewLeft",
|
|
24
|
+
VIEW_LEFT_TOP = "viewLeftTop"
|
|
25
|
+
}
|
|
26
|
+
export declare const DOCS_COMPONENT_BACKGROUND_LAYER_INDEX = 0;
|
|
27
|
+
export declare const DOCS_COMPONENT_MAIN_LAYER_INDEX = 2;
|
|
28
|
+
export declare const DOCS_COMPONENT_HEADER_LAYER_INDEX = 4;
|
|
29
|
+
export declare const DOCS_COMPONENT_DEFAULT_Z_INDEX = 10;
|
|
30
|
+
export declare const NORMAL_TEXT_SELECTION_PLUGIN_NAME = "normalTextSelectionPluginName";
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare function isElementVisible(element: HTMLElement | null): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { ICustomDecoration, ICustomRange, ICustomTable, IDocumentBody, IParagraph, ITextRange, ITextRun, ITextStyle, Nullable } from '@cool-office/core';
|
|
17
|
+
export declare function isTopLevelStructuralGap(dataStream: string, offset: number): boolean;
|
|
18
|
+
export declare function hasParagraphInTable(paragraph: IParagraph, tables: ICustomTable[]): boolean;
|
|
19
|
+
export declare function getTextRunAtPosition(body: IDocumentBody, position: number, defaultStyle: ITextStyle, cacheStyle: Nullable<ITextStyle>, isCellEditor?: boolean): ITextRun;
|
|
20
|
+
export declare function getTextRunAtInputPosition(body: IDocumentBody, position: number, defaultStyle: ITextStyle, cacheStyle: Nullable<ITextStyle>, isCellEditor?: boolean, inheritParagraphStartStyle?: boolean): ITextRun;
|
|
21
|
+
/** Replacing a selection uses its first character; a caret normally uses its left neighbor. */
|
|
22
|
+
export declare function getTextRunForSelection(body: IDocumentBody, range: Pick<ITextRange, 'startOffset' | 'endOffset'>, defaultStyle: ITextStyle, cacheStyle: Nullable<ITextStyle>, isCellEditor?: boolean, inheritParagraphStartStyle?: boolean): ITextRun;
|
|
23
|
+
export declare function getCustomRangeAtPosition(customRanges: ICustomRange[], position: number, extendRange?: boolean): ICustomRange<Record<string, any>> | null | undefined;
|
|
24
|
+
export declare function getCustomDecorationAtPosition(customDecorations: ICustomDecoration[], position: number): ICustomDecoration[];
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IDocumentData } from '@cool-office/core';
|
|
17
|
+
export declare function findFirstCursorOffset(snapshot: IDocumentData): number;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 } from '@cool-office/core';
|
|
17
|
+
import type { IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonTable } from '@cool-office/engine-render';
|
|
18
|
+
export declare function firstLineInTable(table: IDocumentSkeletonTable): IDocumentSkeletonLine;
|
|
19
|
+
export declare function lastLineInTable(table: IDocumentSkeletonTable): IDocumentSkeletonLine | undefined;
|
|
20
|
+
export declare function findTableAfterLine(line: IDocumentSkeletonLine, page: IDocumentSkeletonPage): IDocumentSkeletonTable | null;
|
|
21
|
+
export declare function findLineBeforeAndAfterTable(table: Nullable<IDocumentSkeletonTable>): {
|
|
22
|
+
lineBeforeTable: null;
|
|
23
|
+
lineAfterTable: null;
|
|
24
|
+
};
|
|
25
|
+
export declare function findBellowCell(cell: IDocumentSkeletonPage): Nullable<IDocumentSkeletonPage>;
|
|
26
|
+
export declare function findAboveCell(cell: IDocumentSkeletonPage): Nullable<IDocumentSkeletonPage>;
|
|
27
|
+
export declare function findTableBeforeLine(line: IDocumentSkeletonLine, page: IDocumentSkeletonPage): IDocumentSkeletonTable | null;
|
|
28
|
+
export declare function firstLineInCell(cell: IDocumentSkeletonPage): IDocumentSkeletonLine;
|
|
29
|
+
export declare function lastLineInCell(cell: IDocumentSkeletonPage): IDocumentSkeletonLine;
|
|
30
|
+
export declare function isFirstLineInCell(line: IDocumentSkeletonLine, cell: IDocumentSkeletonPage): boolean;
|
|
31
|
+
export declare function isLastLineInCell(line: IDocumentSkeletonLine, cell: IDocumentSkeletonPage): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { ICommand } from '@cool-office/core';
|
|
17
|
+
export interface ITabCommandParams {
|
|
18
|
+
shift?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const TabCommand: ICommand<ITabCommandParams>;
|
|
21
|
+
export declare const AfterSpaceCommand: ICommand;
|
|
22
|
+
export declare const EnterCommand: ICommand;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { ICommand, IParagraphBorder, ITextRangeParam } from '@cool-office/core';
|
|
17
|
+
import { generateParagraphs } from '@cool-office/docs';
|
|
18
|
+
export { generateParagraphs };
|
|
19
|
+
export declare enum BreakLineInsertionMode {
|
|
20
|
+
SplitParagraph = "split-paragraph",
|
|
21
|
+
InsertGap = "insert-gap"
|
|
22
|
+
}
|
|
23
|
+
interface IBreakLineCommandParams {
|
|
24
|
+
horizontalLine?: IParagraphBorder;
|
|
25
|
+
insertionMode?: BreakLineInsertionMode;
|
|
26
|
+
textRange?: ITextRangeParam;
|
|
27
|
+
unitId?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const BreakLineCommand: ICommand<IBreakLineCommandParams>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IAccessor, ICommand, IMultiCommand } from '@cool-office/core';
|
|
17
|
+
import type { DocPasteMode } from '../../services/clipboard/paste-options';
|
|
18
|
+
import { CommandType, IContextService } from '@cool-office/core';
|
|
19
|
+
export declare function whenDocOrEditor(contextService: IContextService): boolean;
|
|
20
|
+
export declare function whenFocusEditor(contextService: IContextService): boolean;
|
|
21
|
+
export declare const DocCopyCommand: IMultiCommand;
|
|
22
|
+
export declare const DocCopyCurrentParagraphCommand: {
|
|
23
|
+
id: string;
|
|
24
|
+
type: CommandType;
|
|
25
|
+
handler: (accessor: IAccessor) => Promise<boolean>;
|
|
26
|
+
};
|
|
27
|
+
export declare const DocCutCommand: IMultiCommand;
|
|
28
|
+
export declare const DocCutCurrentParagraphCommand: {
|
|
29
|
+
id: string;
|
|
30
|
+
type: CommandType;
|
|
31
|
+
handler: (accessor: IAccessor) => Promise<boolean>;
|
|
32
|
+
};
|
|
33
|
+
export declare const DocPasteSpecialCommand: ICommand<{
|
|
34
|
+
value: DocPasteMode;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const DocPasteCommand: IMultiCommand;
|
|
37
|
+
export declare const DocChangePasteModeCommand: ICommand<{
|
|
38
|
+
value: DocPasteMode;
|
|
39
|
+
}>;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { DocumentDataModel, ICommand, IDocumentBody, IDocumentData, ITextRange, JSONXActions, Nullable } from '@cool-office/core';
|
|
17
|
+
import type { DocumentViewModel, IRectRangeWithStyle, ITextRangeWithStyle } from '@cool-office/engine-render';
|
|
18
|
+
import type { IDocClipboardPasteCustomRangeMapping } from '../../services/clipboard/doc-paste-mutation-adapter.service';
|
|
19
|
+
export interface IInnerPasteCommandParams {
|
|
20
|
+
unitId?: string;
|
|
21
|
+
segmentId: string;
|
|
22
|
+
doc: Partial<IDocumentData>;
|
|
23
|
+
/** Ranges to replace, without changing the selection recorded for undo. */
|
|
24
|
+
selections?: ITextRangeWithStyle[];
|
|
25
|
+
textRanges: ITextRangeWithStyle[];
|
|
26
|
+
customRangeMappings?: IDocClipboardPasteCustomRangeMapping[];
|
|
27
|
+
}
|
|
28
|
+
export declare const InnerPasteCommand: ICommand<IInnerPasteCommandParams>;
|
|
29
|
+
export declare function getCutActionsFromDocRanges(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>, docDataModel: DocumentDataModel, viewModel: DocumentViewModel, segmentId: string, wholeBodySelected?: boolean, preserveFormatting?: boolean): JSONXActions;
|
|
30
|
+
export declare function getReplaceDocRangesActions(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>, docDataModel: DocumentDataModel, viewModel: DocumentViewModel, segmentId: string, insertBody: IDocumentBody, wholeBodySelected?: boolean): {
|
|
31
|
+
actions: JSONXActions;
|
|
32
|
+
insertOffset: number;
|
|
33
|
+
} | null;
|
|
34
|
+
export declare function getDocRangeInsertOffset(textRanges: Readonly<Nullable<ITextRangeWithStyle[]>>, rectRanges: Readonly<Nullable<IRectRangeWithStyle[]>>): Nullable<number>;
|
|
35
|
+
export interface IInnerCutCommandParams {
|
|
36
|
+
unitId?: string;
|
|
37
|
+
segmentId: string;
|
|
38
|
+
textRanges: ITextRangeWithStyle[];
|
|
39
|
+
selections?: ITextRange[];
|
|
40
|
+
rectRanges?: IRectRangeWithStyle[];
|
|
41
|
+
wholeBodySelected?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare const CutContentCommand: ICommand<IInnerCutCommandParams>;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ICommand, IDocumentData, JSONXActions } from '@cool-office/core';
|
|
17
|
+
export interface IMoveDocBlockCommandParams {
|
|
18
|
+
unitId?: string;
|
|
19
|
+
sourceRange: {
|
|
20
|
+
startOffset: number;
|
|
21
|
+
endOffset: number;
|
|
22
|
+
};
|
|
23
|
+
targetOffset: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IMoveDocBlockActionResult {
|
|
26
|
+
nextDocumentData: IDocumentData;
|
|
27
|
+
movedRange: {
|
|
28
|
+
startOffset: number;
|
|
29
|
+
endOffset: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface IMoveDocBlockTextChange {
|
|
33
|
+
movedRange: {
|
|
34
|
+
startOffset: number;
|
|
35
|
+
endOffset: number;
|
|
36
|
+
};
|
|
37
|
+
sourceRange: {
|
|
38
|
+
startOffset: number;
|
|
39
|
+
endOffset: number;
|
|
40
|
+
};
|
|
41
|
+
targetOffset: number;
|
|
42
|
+
}
|
|
43
|
+
export declare const MoveDocBlockCommand: ICommand<IMoveDocBlockCommandParams>;
|
|
44
|
+
export declare function buildMoveDocBlockActions(params: {
|
|
45
|
+
documentData: IDocumentData;
|
|
46
|
+
sourceRange: {
|
|
47
|
+
startOffset: number;
|
|
48
|
+
endOffset: number;
|
|
49
|
+
};
|
|
50
|
+
targetOffset: number;
|
|
51
|
+
}): IMoveDocBlockActionResult;
|
|
52
|
+
export declare function buildReplaceDocumentBodyActions(previousDocumentData: IDocumentData, nextDocumentData: IDocumentData, move?: IMoveDocBlockTextChange): JSONXActions | null;
|