editor-svg 1.0.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/.editorconfig +9 -0
- package/.eslintrc +46 -0
- package/.prettierrc +8 -0
- package/AGENTS.md +186 -0
- package/CHANGELOG.md +2543 -0
- package/CLAUDE.md +110 -0
- package/LICENSE +21 -0
- package/README.md +110 -0
- package/cypress/e2e/control/checkbox.cy.ts +46 -0
- package/cypress/e2e/control/select.cy.ts +56 -0
- package/cypress/e2e/control/text.cy.ts +43 -0
- package/cypress/e2e/editor.cy.ts +67 -0
- package/cypress/e2e/menus/block.cy.ts +38 -0
- package/cypress/e2e/menus/checkbox.cy.ts +33 -0
- package/cypress/e2e/menus/codeblock.cy.ts +34 -0
- package/cypress/e2e/menus/date.cy.ts +28 -0
- package/cypress/e2e/menus/format.cy.ts +40 -0
- package/cypress/e2e/menus/hyperlink.cy.ts +39 -0
- package/cypress/e2e/menus/image.cy.ts +25 -0
- package/cypress/e2e/menus/latex.cy.ts +34 -0
- package/cypress/e2e/menus/pagebreak.cy.ts +21 -0
- package/cypress/e2e/menus/painter.cy.ts +53 -0
- package/cypress/e2e/menus/print.cy.ts +25 -0
- package/cypress/e2e/menus/row.cy.ts +103 -0
- package/cypress/e2e/menus/search.cy.ts +112 -0
- package/cypress/e2e/menus/separator.cy.ts +32 -0
- package/cypress/e2e/menus/table.cy.ts +25 -0
- package/cypress/e2e/menus/text.cy.ts +304 -0
- package/cypress/e2e/menus/title.cy.ts +43 -0
- package/cypress/e2e/menus/undoRedo.cy.ts +49 -0
- package/cypress/e2e/menus/watermark.cy.ts +64 -0
- package/cypress/fixtures/example.json +3 -0
- package/cypress/fixtures/test.png +0 -0
- package/cypress/global.d.ts +13 -0
- package/cypress/support/commands.ts +5 -0
- package/cypress/support/e2e.ts +1 -0
- package/cypress/tsconfig.json +21 -0
- package/cypress.config.ts +10 -0
- package/docs/.vitepress/config.ts +191 -0
- package/docs/.vitepress/theme/components/DeepWikiBadge.vue +21 -0
- package/docs/.vitepress/theme/components/ZreadBadge.vue +21 -0
- package/docs/.vitepress/theme/index.ts +27 -0
- package/docs/en/guide/api-common.md +49 -0
- package/docs/en/guide/api-instance.md +34 -0
- package/docs/en/guide/command-execute.md +1167 -0
- package/docs/en/guide/command-get.md +355 -0
- package/docs/en/guide/contextmenu-custom.md +44 -0
- package/docs/en/guide/contextmenu-internal.md +61 -0
- package/docs/en/guide/eventbus.md +260 -0
- package/docs/en/guide/i18n.md +112 -0
- package/docs/en/guide/listener.md +126 -0
- package/docs/en/guide/option.md +214 -0
- package/docs/en/guide/override.md +57 -0
- package/docs/en/guide/plugin-custom.md +25 -0
- package/docs/en/guide/plugin-internal.md +125 -0
- package/docs/en/guide/schema.md +237 -0
- package/docs/en/guide/shortcut-custom.md +22 -0
- package/docs/en/guide/shortcut-internal.md +189 -0
- package/docs/en/guide/start.md +97 -0
- package/docs/en/index.md +43 -0
- package/docs/guide/api-common.md +49 -0
- package/docs/guide/api-instance.md +34 -0
- package/docs/guide/command-execute.md +1157 -0
- package/docs/guide/command-get.md +353 -0
- package/docs/guide/contextmenu-custom.md +44 -0
- package/docs/guide/contextmenu-internal.md +61 -0
- package/docs/guide/eventbus.md +260 -0
- package/docs/guide/i18n.md +111 -0
- package/docs/guide/listener.md +126 -0
- package/docs/guide/option.md +214 -0
- package/docs/guide/override.md +57 -0
- package/docs/guide/plugin-custom.md +25 -0
- package/docs/guide/plugin-internal.md +125 -0
- package/docs/guide/schema.md +237 -0
- package/docs/guide/shortcut-custom.md +22 -0
- package/docs/guide/shortcut-internal.md +189 -0
- package/docs/guide/start.md +97 -0
- package/docs/index.md +43 -0
- package/docs/public/favicon.png +0 -0
- package/favicon.png +0 -0
- package/index.html +435 -0
- package/package.json +55 -0
- package/pnpm-lock.yaml +4113 -0
- package/scripts/release.js +41 -0
- package/scripts/verifyCommit.js +19 -0
- package/src/assets/images/alignment.svg +1 -0
- package/src/assets/images/arrow-left.svg +1 -0
- package/src/assets/images/arrow-right.svg +1 -0
- package/src/assets/images/block.svg +1 -0
- package/src/assets/images/bold.svg +1 -0
- package/src/assets/images/catalog.svg +1 -0
- package/src/assets/images/center.svg +1 -0
- package/src/assets/images/checkbox.svg +1 -0
- package/src/assets/images/close.svg +1 -0
- package/src/assets/images/codeblock.svg +1 -0
- package/src/assets/images/color.svg +1 -0
- package/src/assets/images/control.svg +1 -0
- package/src/assets/images/date.svg +1 -0
- package/src/assets/images/exit-fullscreen.svg +1 -0
- package/src/assets/images/format.svg +1 -0
- package/src/assets/images/highlight.svg +1 -0
- package/src/assets/images/hyperlink.svg +1 -0
- package/src/assets/images/image.svg +1 -0
- package/src/assets/images/italic.svg +1 -0
- package/src/assets/images/justify.svg +7 -0
- package/src/assets/images/latex.svg +1 -0
- package/src/assets/images/left.svg +1 -0
- package/src/assets/images/line-dash-dot-dot.svg +1 -0
- package/src/assets/images/line-dash-dot.svg +1 -0
- package/src/assets/images/line-dash-large-gap.svg +1 -0
- package/src/assets/images/line-dash-small-gap.svg +1 -0
- package/src/assets/images/line-dot.svg +1 -0
- package/src/assets/images/line-double.svg +1 -0
- package/src/assets/images/line-single.svg +1 -0
- package/src/assets/images/line-wavy.svg +1 -0
- package/src/assets/images/list.svg +1 -0
- package/src/assets/images/option.svg +1 -0
- package/src/assets/images/page-break.svg +1 -0
- package/src/assets/images/page-mode.svg +1 -0
- package/src/assets/images/page-scale-add.svg +1 -0
- package/src/assets/images/page-scale-minus.svg +1 -0
- package/src/assets/images/painter.svg +1 -0
- package/src/assets/images/paper-direction.svg +1 -0
- package/src/assets/images/paper-margin.svg +1 -0
- package/src/assets/images/paper-size.svg +1 -0
- package/src/assets/images/print.svg +1 -0
- package/src/assets/images/radio.svg +4 -0
- package/src/assets/images/redo.svg +1 -0
- package/src/assets/images/request-fullscreen.svg +1 -0
- package/src/assets/images/right.svg +1 -0
- package/src/assets/images/row-margin.svg +1 -0
- package/src/assets/images/search.svg +1 -0
- package/src/assets/images/separator.svg +1 -0
- package/src/assets/images/signature-undo.svg +1 -0
- package/src/assets/images/signature.svg +1 -0
- package/src/assets/images/size-add.svg +1 -0
- package/src/assets/images/size-minus.svg +1 -0
- package/src/assets/images/strikeout.svg +1 -0
- package/src/assets/images/subscript.svg +1 -0
- package/src/assets/images/superscript.svg +1 -0
- package/src/assets/images/table.svg +1 -0
- package/src/assets/images/title.svg +1 -0
- package/src/assets/images/trash.svg +1 -0
- package/src/assets/images/underline.svg +1 -0
- package/src/assets/images/undo.svg +1 -0
- package/src/assets/images/watermark.svg +1 -0
- package/src/assets/images/word-tool.svg +1 -0
- package/src/assets/snapshots/main_v0.2.1.png +0 -0
- package/src/assets/snapshots/main_v0.2.2.png +0 -0
- package/src/assets/snapshots/main_v0.3.0.png +0 -0
- package/src/assets/snapshots/main_v0.3.1.png +0 -0
- package/src/assets/snapshots/main_v0.5.0.png +0 -0
- package/src/assets/snapshots/main_v0.5.1.png +0 -0
- package/src/assets/snapshots/main_v0.6.0.png +0 -0
- package/src/assets/snapshots/main_v0.6.1.png +0 -0
- package/src/assets/snapshots/main_v0.7.0.png +0 -0
- package/src/assets/snapshots/main_v0.7.1.png +0 -0
- package/src/assets/snapshots/main_v0.7.2.png +0 -0
- package/src/assets/snapshots/main_v0.7.3.png +0 -0
- package/src/assets/snapshots/main_v0.7.4.png +0 -0
- package/src/assets/snapshots/main_v0.7.6.png +0 -0
- package/src/assets/snapshots/main_v0.7.7.png +0 -0
- package/src/assets/snapshots/main_v0.8.0.png +0 -0
- package/src/assets/snapshots/main_v0.8.5.png +0 -0
- package/src/assets/snapshots/main_v0.8.6.png +0 -0
- package/src/assets/snapshots/main_v0.8.7.png +0 -0
- package/src/assets/snapshots/main_v0.8.8.png +0 -0
- package/src/assets/snapshots/main_v0.9.0.png +0 -0
- package/src/assets/snapshots/main_v0.9.1.png +0 -0
- package/src/assets/snapshots/main_v0.9.2.png +0 -0
- package/src/assets/snapshots/main_v0.9.23.png +0 -0
- package/src/assets/snapshots/main_v0.9.28.png +0 -0
- package/src/assets/snapshots/main_v0.9.29.png +0 -0
- package/src/assets/snapshots/main_v0.9.3.png +0 -0
- package/src/assets/snapshots/main_v0.9.30.png +0 -0
- package/src/assets/snapshots/main_v0.9.32.png +0 -0
- package/src/assets/snapshots/main_v0.9.35.png +0 -0
- package/src/assets/snapshots/main_v0.9.4.png +0 -0
- package/src/assets/snapshots/main_v0.9.5.png +0 -0
- package/src/assets/snapshots/main_v0.9.6.png +0 -0
- package/src/assets/snapshots/main_v0.9.8.png +0 -0
- package/src/components/dialog/Dialog.ts +171 -0
- package/src/components/dialog/dialog.css +131 -0
- package/src/components/signature/Signature.ts +340 -0
- package/src/components/signature/signature.css +132 -0
- package/src/editor/assets/css/block/block.css +21 -0
- package/src/editor/assets/css/contextmenu/contextmenu.css +196 -0
- package/src/editor/assets/css/control/calculator.css +85 -0
- package/src/editor/assets/css/control/select.css +44 -0
- package/src/editor/assets/css/date/datePicker.css +233 -0
- package/src/editor/assets/css/hyperlink/hyperlink.css +26 -0
- package/src/editor/assets/css/index.css +78 -0
- package/src/editor/assets/css/previewer/previewer.css +122 -0
- package/src/editor/assets/css/resizer/resizer.css +74 -0
- package/src/editor/assets/css/table/table.css +155 -0
- package/src/editor/assets/css/zone/zone.css +61 -0
- package/src/editor/assets/images/close.svg +1 -0
- package/src/editor/assets/images/delete-col.svg +1 -0
- package/src/editor/assets/images/delete-row-col.svg +1 -0
- package/src/editor/assets/images/delete-row.svg +1 -0
- package/src/editor/assets/images/delete-table.svg +1 -0
- package/src/editor/assets/images/image-change.svg +1 -0
- package/src/editor/assets/images/image-download.svg +1 -0
- package/src/editor/assets/images/image-next.svg +1 -0
- package/src/editor/assets/images/image-pre.svg +1 -0
- package/src/editor/assets/images/image.svg +1 -0
- package/src/editor/assets/images/insert-bottom-row.svg +1 -0
- package/src/editor/assets/images/insert-left-col.svg +1 -0
- package/src/editor/assets/images/insert-right-col.svg +1 -0
- package/src/editor/assets/images/insert-row-col.svg +1 -0
- package/src/editor/assets/images/insert-top-row.svg +1 -0
- package/src/editor/assets/images/merge-cancel-cell.svg +1 -0
- package/src/editor/assets/images/merge-cell.svg +1 -0
- package/src/editor/assets/images/original-size.svg +1 -0
- package/src/editor/assets/images/print.svg +1 -0
- package/src/editor/assets/images/rotate.svg +1 -0
- package/src/editor/assets/images/submenu-dropdown.svg +1 -0
- package/src/editor/assets/images/table-border-all.svg +1 -0
- package/src/editor/assets/images/table-border-dash.svg +1 -0
- package/src/editor/assets/images/table-border-empty.svg +1 -0
- package/src/editor/assets/images/table-border-external.svg +1 -0
- package/src/editor/assets/images/table-border-internal.svg +1 -0
- package/src/editor/assets/images/table-border-td-back.svg +1 -0
- package/src/editor/assets/images/table-border-td-bottom.svg +1 -0
- package/src/editor/assets/images/table-border-td-forward.svg +1 -0
- package/src/editor/assets/images/table-border-td-left.svg +1 -0
- package/src/editor/assets/images/table-border-td-right.svg +1 -0
- package/src/editor/assets/images/table-border-td-top.svg +1 -0
- package/src/editor/assets/images/table-border-td.svg +1 -0
- package/src/editor/assets/images/vertical-align-bottom.svg +1 -0
- package/src/editor/assets/images/vertical-align-middle.svg +1 -0
- package/src/editor/assets/images/vertical-align-top.svg +1 -0
- package/src/editor/assets/images/vertical-align.svg +1 -0
- package/src/editor/assets/images/zoom-in.svg +1 -0
- package/src/editor/assets/images/zoom-out.svg +1 -0
- package/src/editor/core/actuator/Actuator.ts +21 -0
- package/src/editor/core/actuator/handlers/positionContextChange.ts +13 -0
- package/src/editor/core/command/Command.ts +312 -0
- package/src/editor/core/command/CommandAdapt.ts +2733 -0
- package/src/editor/core/contextmenu/ContextMenu.ts +363 -0
- package/src/editor/core/contextmenu/menus/controlMenus.ts +25 -0
- package/src/editor/core/contextmenu/menus/globalMenus.ts +66 -0
- package/src/editor/core/contextmenu/menus/hyperlinkMenus.ts +58 -0
- package/src/editor/core/contextmenu/menus/imageMenus.ts +134 -0
- package/src/editor/core/contextmenu/menus/tableMenus.ts +331 -0
- package/src/editor/core/cursor/Cursor.ts +248 -0
- package/src/editor/core/cursor/CursorAgent.ts +75 -0
- package/src/editor/core/draw/Draw.ts +2934 -0
- package/src/editor/core/draw/control/Control.ts +1767 -0
- package/src/editor/core/draw/control/checkbox/CheckboxControl.ts +154 -0
- package/src/editor/core/draw/control/date/DateControl.ts +363 -0
- package/src/editor/core/draw/control/interactive/ControlSearch.ts +214 -0
- package/src/editor/core/draw/control/number/Calculator.ts +183 -0
- package/src/editor/core/draw/control/number/NumberControl.ts +183 -0
- package/src/editor/core/draw/control/radio/RadioControl.ts +68 -0
- package/src/editor/core/draw/control/richtext/Border.ts +52 -0
- package/src/editor/core/draw/control/select/SelectControl.ts +567 -0
- package/src/editor/core/draw/control/text/TextControl.ts +280 -0
- package/src/editor/core/draw/frame/Background.ts +117 -0
- package/src/editor/core/draw/frame/Badge.ts +88 -0
- package/src/editor/core/draw/frame/Footer.ts +155 -0
- package/src/editor/core/draw/frame/Header.ts +158 -0
- package/src/editor/core/draw/frame/LineNumber.ts +43 -0
- package/src/editor/core/draw/frame/Margin.ts +53 -0
- package/src/editor/core/draw/frame/PageBorder.ts +47 -0
- package/src/editor/core/draw/frame/PageNumber.ts +88 -0
- package/src/editor/core/draw/frame/Placeholder.ts +114 -0
- package/src/editor/core/draw/frame/Watermark.ts +188 -0
- package/src/editor/core/draw/graffiti/Graffiti.ts +125 -0
- package/src/editor/core/draw/interactive/Area.ts +312 -0
- package/src/editor/core/draw/interactive/Group.ts +198 -0
- package/src/editor/core/draw/interactive/Search.ts +527 -0
- package/src/editor/core/draw/particle/CheckboxParticle.ts +111 -0
- package/src/editor/core/draw/particle/HyperlinkParticle.ts +86 -0
- package/src/editor/core/draw/particle/ImageParticle.ts +280 -0
- package/src/editor/core/draw/particle/LabelParticle.ts +79 -0
- package/src/editor/core/draw/particle/LineBreakParticle.ts +55 -0
- package/src/editor/core/draw/particle/ListParticle.ts +255 -0
- package/src/editor/core/draw/particle/PageBreakParticle.ts +54 -0
- package/src/editor/core/draw/particle/RadioParticle.ts +99 -0
- package/src/editor/core/draw/particle/SeparatorParticle.ts +37 -0
- package/src/editor/core/draw/particle/SubscriptParticle.ts +23 -0
- package/src/editor/core/draw/particle/SuperscriptParticle.ts +23 -0
- package/src/editor/core/draw/particle/TextParticle.ts +174 -0
- package/src/editor/core/draw/particle/WhiteSpaceParticle.ts +32 -0
- package/src/editor/core/draw/particle/block/BlockParticle.ts +76 -0
- package/src/editor/core/draw/particle/block/modules/BaseBlock.ts +280 -0
- package/src/editor/core/draw/particle/block/modules/IFrameBlock.ts +47 -0
- package/src/editor/core/draw/particle/block/modules/VideoBlock.ts +61 -0
- package/src/editor/core/draw/particle/date/DateParticle.ts +111 -0
- package/src/editor/core/draw/particle/date/DatePicker.ts +577 -0
- package/src/editor/core/draw/particle/latex/LaTexParticle.ts +43 -0
- package/src/editor/core/draw/particle/latex/utils/LaTexUtils.ts +1196 -0
- package/src/editor/core/draw/particle/latex/utils/hershey.ts +1632 -0
- package/src/editor/core/draw/particle/latex/utils/symbols.ts +318 -0
- package/src/editor/core/draw/particle/previewer/Previewer.ts +582 -0
- package/src/editor/core/draw/particle/table/TableOperate.ts +988 -0
- package/src/editor/core/draw/particle/table/TableParticle.ts +558 -0
- package/src/editor/core/draw/particle/table/TableTool.ts +551 -0
- package/src/editor/core/draw/richtext/AbstractRichText.ts +59 -0
- package/src/editor/core/draw/richtext/Highlight.ts +24 -0
- package/src/editor/core/draw/richtext/Strikeout.ts +28 -0
- package/src/editor/core/draw/richtext/Underline.ts +106 -0
- package/src/editor/core/event/CanvasEvent.ts +215 -0
- package/src/editor/core/event/GlobalEvent.ts +173 -0
- package/src/editor/core/event/eventbus/EventBus.ts +50 -0
- package/src/editor/core/event/handlers/click.ts +234 -0
- package/src/editor/core/event/handlers/composition.ts +45 -0
- package/src/editor/core/event/handlers/copy.ts +72 -0
- package/src/editor/core/event/handlers/cut.ts +47 -0
- package/src/editor/core/event/handlers/drag.ts +66 -0
- package/src/editor/core/event/handlers/drop.ts +28 -0
- package/src/editor/core/event/handlers/input.ts +129 -0
- package/src/editor/core/event/handlers/keydown/backspace.ts +161 -0
- package/src/editor/core/event/handlers/keydown/delete.ts +119 -0
- package/src/editor/core/event/handlers/keydown/end.ts +69 -0
- package/src/editor/core/event/handlers/keydown/enter.ts +126 -0
- package/src/editor/core/event/handlers/keydown/home.ts +69 -0
- package/src/editor/core/event/handlers/keydown/index.ts +85 -0
- package/src/editor/core/event/handlers/keydown/left.ts +162 -0
- package/src/editor/core/event/handlers/keydown/right.ts +178 -0
- package/src/editor/core/event/handlers/keydown/tab.ts +41 -0
- package/src/editor/core/event/handlers/keydown/updown.ts +342 -0
- package/src/editor/core/event/handlers/mousedown.ts +262 -0
- package/src/editor/core/event/handlers/mouseleave.ts +14 -0
- package/src/editor/core/event/handlers/mousemove.ts +133 -0
- package/src/editor/core/event/handlers/mouseup.ts +341 -0
- package/src/editor/core/event/handlers/paste.ts +231 -0
- package/src/editor/core/history/HistoryManager.ts +61 -0
- package/src/editor/core/i18n/I18n.ts +51 -0
- package/src/editor/core/i18n/lang/en.json +92 -0
- package/src/editor/core/i18n/lang/zh-CN.json +92 -0
- package/src/editor/core/listener/Listener.ts +41 -0
- package/src/editor/core/observer/ImageObserver.ts +19 -0
- package/src/editor/core/observer/MouseObserver.ts +56 -0
- package/src/editor/core/observer/ScrollObserver.ts +88 -0
- package/src/editor/core/observer/SelectionObserver.ts +143 -0
- package/src/editor/core/override/Override.ts +14 -0
- package/src/editor/core/plugin/Plugin.ts +17 -0
- package/src/editor/core/position/Position.ts +870 -0
- package/src/editor/core/range/RangeManager.ts +723 -0
- package/src/editor/core/register/Register.ts +28 -0
- package/src/editor/core/shortcut/Shortcut.ts +80 -0
- package/src/editor/core/shortcut/keys/listKeys.ts +22 -0
- package/src/editor/core/shortcut/keys/richtextKeys.ts +102 -0
- package/src/editor/core/shortcut/keys/titleKeys.ts +62 -0
- package/src/editor/core/worker/WorkerManager.ts +96 -0
- package/src/editor/core/worker/works/catalog.ts +189 -0
- package/src/editor/core/worker/works/group.ts +34 -0
- package/src/editor/core/worker/works/value.ts +32 -0
- package/src/editor/core/worker/works/wordCount.ts +132 -0
- package/src/editor/core/zone/Zone.ts +183 -0
- package/src/editor/core/zone/ZoneTip.ts +108 -0
- package/src/editor/dataset/constant/Background.ts +10 -0
- package/src/editor/dataset/constant/Badge.ts +6 -0
- package/src/editor/dataset/constant/Checkbox.ts +12 -0
- package/src/editor/dataset/constant/Common.ts +44 -0
- package/src/editor/dataset/constant/ContextMenu.ts +61 -0
- package/src/editor/dataset/constant/Control.ts +14 -0
- package/src/editor/dataset/constant/Cursor.ts +11 -0
- package/src/editor/dataset/constant/Editor.ts +19 -0
- package/src/editor/dataset/constant/Element.ts +173 -0
- package/src/editor/dataset/constant/Footer.ts +10 -0
- package/src/editor/dataset/constant/Graffiti.ts +6 -0
- package/src/editor/dataset/constant/Group.ts +10 -0
- package/src/editor/dataset/constant/Header.ts +10 -0
- package/src/editor/dataset/constant/ImgCaption.ts +8 -0
- package/src/editor/dataset/constant/Label.ts +8 -0
- package/src/editor/dataset/constant/LineBreak.ts +7 -0
- package/src/editor/dataset/constant/LineNumber.ts +11 -0
- package/src/editor/dataset/constant/List.ts +26 -0
- package/src/editor/dataset/constant/PageBorder.ts +8 -0
- package/src/editor/dataset/constant/PageBreak.ts +7 -0
- package/src/editor/dataset/constant/PageNumber.ts +22 -0
- package/src/editor/dataset/constant/Placeholder.ts +9 -0
- package/src/editor/dataset/constant/Radio.ts +12 -0
- package/src/editor/dataset/constant/Regular.ts +23 -0
- package/src/editor/dataset/constant/Separator.ts +6 -0
- package/src/editor/dataset/constant/Shortcut.ts +3 -0
- package/src/editor/dataset/constant/Table.ts +9 -0
- package/src/editor/dataset/constant/Title.ts +38 -0
- package/src/editor/dataset/constant/Watermark.ts +17 -0
- package/src/editor/dataset/constant/WhiteSpace.ts +7 -0
- package/src/editor/dataset/constant/Zone.ts +5 -0
- package/src/editor/dataset/enum/Area.ts +5 -0
- package/src/editor/dataset/enum/Background.ts +11 -0
- package/src/editor/dataset/enum/Block.ts +4 -0
- package/src/editor/dataset/enum/Common.ts +30 -0
- package/src/editor/dataset/enum/Control.ts +39 -0
- package/src/editor/dataset/enum/Editor.ts +51 -0
- package/src/editor/dataset/enum/Element.ts +21 -0
- package/src/editor/dataset/enum/ElementStyle.ts +12 -0
- package/src/editor/dataset/enum/Event.ts +5 -0
- package/src/editor/dataset/enum/KeyMap.ts +85 -0
- package/src/editor/dataset/enum/LineNumber.ts +4 -0
- package/src/editor/dataset/enum/List.ts +23 -0
- package/src/editor/dataset/enum/Observer.ts +6 -0
- package/src/editor/dataset/enum/Row.ts +7 -0
- package/src/editor/dataset/enum/Text.ts +13 -0
- package/src/editor/dataset/enum/Title.ts +8 -0
- package/src/editor/dataset/enum/VerticalAlign.ts +5 -0
- package/src/editor/dataset/enum/Watermark.ts +4 -0
- package/src/editor/dataset/enum/table/Table.ts +19 -0
- package/src/editor/dataset/enum/table/TableTool.ts +4 -0
- package/src/editor/index.ts +241 -0
- package/src/editor/interface/Area.ts +68 -0
- package/src/editor/interface/Background.ts +9 -0
- package/src/editor/interface/Badge.ts +17 -0
- package/src/editor/interface/Block.ts +18 -0
- package/src/editor/interface/Catalog.ts +11 -0
- package/src/editor/interface/Checkbox.ts +17 -0
- package/src/editor/interface/Command.ts +3 -0
- package/src/editor/interface/Common.ts +43 -0
- package/src/editor/interface/Control.ts +250 -0
- package/src/editor/interface/Cursor.ts +7 -0
- package/src/editor/interface/Draw.ts +86 -0
- package/src/editor/interface/Editor.ts +172 -0
- package/src/editor/interface/Element.ts +273 -0
- package/src/editor/interface/Event.ts +27 -0
- package/src/editor/interface/EventBus.ts +46 -0
- package/src/editor/interface/Footer.ts +9 -0
- package/src/editor/interface/Graffiti.ts +15 -0
- package/src/editor/interface/Group.ts +8 -0
- package/src/editor/interface/Header.ts +9 -0
- package/src/editor/interface/Label.ts +8 -0
- package/src/editor/interface/LineBreak.ts +5 -0
- package/src/editor/interface/LineNumber.ts +10 -0
- package/src/editor/interface/Listener.ts +88 -0
- package/src/editor/interface/Margin.ts +1 -0
- package/src/editor/interface/PageBorder.ts +8 -0
- package/src/editor/interface/PageBreak.ts +5 -0
- package/src/editor/interface/PageNumber.ts +16 -0
- package/src/editor/interface/Placeholder.ts +7 -0
- package/src/editor/interface/Plugin.ts +8 -0
- package/src/editor/interface/Position.ts +113 -0
- package/src/editor/interface/Previewer.ts +15 -0
- package/src/editor/interface/Radio.ts +17 -0
- package/src/editor/interface/Range.ts +61 -0
- package/src/editor/interface/Row.ts +25 -0
- package/src/editor/interface/Search.ts +36 -0
- package/src/editor/interface/Separator.ts +4 -0
- package/src/editor/interface/Text.ts +15 -0
- package/src/editor/interface/Title.ts +32 -0
- package/src/editor/interface/Watermark.ts +16 -0
- package/src/editor/interface/WhiteSpace.ts +5 -0
- package/src/editor/interface/Zone.ts +3 -0
- package/src/editor/interface/contextmenu/ContextMenu.ts +76 -0
- package/src/editor/interface/i18n/I18n.ts +7 -0
- package/src/editor/interface/shortcut/Shortcut.ts +14 -0
- package/src/editor/interface/table/Colgroup.ts +4 -0
- package/src/editor/interface/table/Table.ts +9 -0
- package/src/editor/interface/table/Td.ts +36 -0
- package/src/editor/interface/table/Tr.ts +11 -0
- package/src/editor/types/index.d.ts +5 -0
- package/src/editor/utils/clipboard.ts +94 -0
- package/src/editor/utils/element.ts +1877 -0
- package/src/editor/utils/hotkey.ts +5 -0
- package/src/editor/utils/index.ts +445 -0
- package/src/editor/utils/option.ts +253 -0
- package/src/editor/utils/paragraph.ts +28 -0
- package/src/editor/utils/print.ts +99 -0
- package/src/editor/utils/ua.ts +13 -0
- package/src/main.ts +2053 -0
- package/src/mock.ts +611 -0
- package/src/plugins/copy/index.ts +30 -0
- package/src/plugins/markdown/index.ts +118 -0
- package/src/style.css +1079 -0
- package/src/utils/index.ts +45 -0
- package/src/utils/prism.ts +89 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +25 -0
- package/vite.config.ts +46 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
.ce-contextmenu-container {
|
|
2
|
+
z-index: 9;
|
|
3
|
+
position: fixed;
|
|
4
|
+
display: none;
|
|
5
|
+
padding: 4px;
|
|
6
|
+
overflow-x: hidden;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
background: #fff;
|
|
9
|
+
box-shadow: 0 2px 12px 0 rgb(56 56 56 / 20%);
|
|
10
|
+
border: 1px solid #e2e6ed;
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ce-contextmenu-content {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ce-contextmenu-content .ce-contextmenu-sub-item::after {
|
|
20
|
+
position: absolute;
|
|
21
|
+
content: "";
|
|
22
|
+
width: 16px;
|
|
23
|
+
height: 16px;
|
|
24
|
+
right: 12px;
|
|
25
|
+
background: url(../../images/submenu-dropdown.svg);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ce-contextmenu-content .ce-contextmenu-item {
|
|
29
|
+
min-width: 140px;
|
|
30
|
+
padding: 0 32px 0 16px;
|
|
31
|
+
height: 30px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ce-contextmenu-content .ce-contextmenu-item.hover {
|
|
40
|
+
background: rgba(25, 55, 88, .04);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ce-contextmenu-content .ce-contextmenu-item span {
|
|
44
|
+
max-width: 300px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #3d4757;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut {
|
|
53
|
+
color: #767c85;
|
|
54
|
+
height: 30px;
|
|
55
|
+
flex: 1;
|
|
56
|
+
text-align: right;
|
|
57
|
+
line-height: 30px;
|
|
58
|
+
margin-left: 20px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ce-contextmenu-content .ce-contextmenu-item i {
|
|
62
|
+
width: 16px;
|
|
63
|
+
height: 16px;
|
|
64
|
+
vertical-align: middle;
|
|
65
|
+
display: inline-block;
|
|
66
|
+
background-repeat: no-repeat;
|
|
67
|
+
background-size: 100% 100%;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
margin-right: 8px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ce-contextmenu-divider {
|
|
73
|
+
background-color: #e2e6ed;
|
|
74
|
+
margin: 4px 16px;
|
|
75
|
+
height: 1px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ce-contextmenu-print {
|
|
79
|
+
background-image: url(../../../assets/images/print.svg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ce-contextmenu-image {
|
|
83
|
+
background-image: url(../../../assets/images/image.svg);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ce-contextmenu-image-change {
|
|
87
|
+
background-image: url(../../../assets/images/image-change.svg);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ce-contextmenu-insert-row-col {
|
|
91
|
+
background-image: url(../../../assets/images/insert-row-col.svg);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ce-contextmenu-insert-top-row {
|
|
95
|
+
background-image: url(../../../assets/images/insert-top-row.svg);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ce-contextmenu-insert-bottom-row {
|
|
99
|
+
background-image: url(../../../assets/images/insert-bottom-row.svg);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ce-contextmenu-insert-left-col {
|
|
103
|
+
background-image: url(../../../assets/images/insert-left-col.svg);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ce-contextmenu-insert-right-col {
|
|
107
|
+
background-image: url(../../../assets/images/insert-right-col.svg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ce-contextmenu-delete-row-col {
|
|
111
|
+
background-image: url(../../../assets/images/delete-row-col.svg);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ce-contextmenu-delete-row {
|
|
115
|
+
background-image: url(../../../assets/images/delete-row.svg);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ce-contextmenu-delete-col {
|
|
119
|
+
background-image: url(../../../assets/images/delete-col.svg);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ce-contextmenu-delete-table {
|
|
123
|
+
background-image: url(../../../assets/images/delete-table.svg);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ce-contextmenu-merge-cell {
|
|
127
|
+
background-image: url(../../../assets/images/merge-cell.svg);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ce-contextmenu-merge-cancel-cell {
|
|
131
|
+
background-image: url(../../../assets/images/merge-cancel-cell.svg);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ce-contextmenu-vertical-align {
|
|
135
|
+
background-image: url(../../../assets/images/vertical-align.svg);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ce-contextmenu-vertical-align-top {
|
|
139
|
+
background-image: url(../../../assets/images/vertical-align-top.svg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ce-contextmenu-vertical-align-middle {
|
|
143
|
+
background-image: url(../../../assets/images/vertical-align-middle.svg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ce-contextmenu-vertical-align-bottom {
|
|
147
|
+
background-image: url(../../../assets/images/vertical-align-bottom.svg);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ce-contextmenu-border-all {
|
|
151
|
+
background-image: url(../../../assets/images/table-border-all.svg);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ce-contextmenu-border-empty {
|
|
155
|
+
background-image: url(../../../assets/images/table-border-empty.svg);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.ce-contextmenu-border-dash {
|
|
159
|
+
background-image: url(../../../assets/images/table-border-dash.svg);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ce-contextmenu-border-external {
|
|
163
|
+
background-image: url(../../../assets/images/table-border-external.svg);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ce-contextmenu-border-internal {
|
|
167
|
+
background-image: url(../../../assets/images/table-border-internal.svg);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ce-contextmenu-border-td {
|
|
171
|
+
background-image: url(../../../assets/images/table-border-td.svg);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ce-contextmenu-border-td-top {
|
|
175
|
+
background-image: url(../../../assets/images/table-border-td-top.svg);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ce-contextmenu-border-td-left {
|
|
179
|
+
background-image: url(../../../assets/images/table-border-td-left.svg);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ce-contextmenu-border-td-bottom {
|
|
183
|
+
background-image: url(../../../assets/images/table-border-td-bottom.svg);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ce-contextmenu-border-td-right {
|
|
187
|
+
background-image: url(../../../assets/images/table-border-td-right.svg);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.ce-contextmenu-border-td-forward {
|
|
191
|
+
background-image: url(../../../assets/images/table-border-td-forward.svg);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.ce-contextmenu-border-td-back {
|
|
195
|
+
background-image: url(../../../assets/images/table-border-td-back.svg);
|
|
196
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.ce-calculator {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
border: 1px solid #e4e7ed;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
margin: 5px 0;
|
|
10
|
+
padding: 8px;
|
|
11
|
+
width: 200px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ce-calculator-display {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 40px;
|
|
17
|
+
line-height: 40px;
|
|
18
|
+
text-align: right;
|
|
19
|
+
padding: 0 10px;
|
|
20
|
+
margin-bottom: 8px;
|
|
21
|
+
border: 1px solid #e4e7ed;
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
background-color: #f5f7fa;
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ce-calculator-buttons {
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: repeat(4, 1fr);
|
|
33
|
+
gap: 4px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ce-calculator-button {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 36px;
|
|
39
|
+
border: 1px solid #e4e7ed;
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition: all 0.2s;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ce-calculator-button:hover {
|
|
49
|
+
background-color: #EEF2FD;
|
|
50
|
+
border-color: #c6d1ff;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ce-calculator-button:active {
|
|
54
|
+
background-color: #e1e8ff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 运算符按钮样式 */
|
|
58
|
+
.ce-calculator-button.operator {
|
|
59
|
+
background-color: #f5f7fa;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ce-calculator-button.operator:hover {
|
|
63
|
+
background-color: #EEF2FD;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 等号按钮样式 */
|
|
67
|
+
.ce-calculator-button.equal {
|
|
68
|
+
background-color: var(--COLOR-HOVER, #5175f4);
|
|
69
|
+
color: #fff;
|
|
70
|
+
border-color: var(--COLOR-HOVER, #5175f4);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ce-calculator-button.equal:hover {
|
|
74
|
+
background-color: var(--COLOR-HOVER, #6a84ff);
|
|
75
|
+
border-color: var(--COLOR-HOVER, #6a84ff);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* 功能按钮样式 */
|
|
79
|
+
.ce-calculator-button.utility {
|
|
80
|
+
background-color: #f0f2f5;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ce-calculator-button.utility:hover {
|
|
84
|
+
background-color: #e6e8eb;
|
|
85
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.ce-select-control-popup {
|
|
2
|
+
max-width: 160px;
|
|
3
|
+
min-width: 69px;
|
|
4
|
+
max-height: 225px;
|
|
5
|
+
position: absolute;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
border: 1px solid #e4e7ed;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
margin: 5px 0;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ce-select-control-popup ul {
|
|
17
|
+
list-style: none;
|
|
18
|
+
padding: 3px 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ce-select-control-popup ul li {
|
|
24
|
+
font-size: 13px;
|
|
25
|
+
padding: 0 20px;
|
|
26
|
+
position: relative;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
color: #666;
|
|
31
|
+
height: 36px;
|
|
32
|
+
line-height: 36px;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ce-select-control-popup ul li:hover {
|
|
38
|
+
background-color: #EEF2FD;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ce-select-control-popup ul li.active {
|
|
42
|
+
color: var(--COLOR-HOVER, #5175f4);
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
.ce-date-container {
|
|
2
|
+
display: none;
|
|
3
|
+
width: 300px;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
color: #606266;
|
|
10
|
+
background: #ffffff;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
padding: 10px;
|
|
13
|
+
user-select: none;
|
|
14
|
+
border: 1px solid #e4e7ed;
|
|
15
|
+
box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ce-date-container.active {
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ce-date-wrap {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ce-date-wrap.active {
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ce-date-title {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
text-align: center;
|
|
35
|
+
color: #606266;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ce-date-title>span {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ce-date-title>span:not(.ce-date-title__now) {
|
|
44
|
+
font-family: cursive;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ce-date-title>span:not(.ce-date-title__now):hover {
|
|
49
|
+
color: #5175F4;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ce-date-title .ce-date-title__pre-year {
|
|
53
|
+
width: 15%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ce-date-title .ce-date-title__pre-month {
|
|
57
|
+
width: 15%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ce-date-title .ce-date-title__now {
|
|
61
|
+
width: 40%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ce-date-title .ce-date-title__next-year {
|
|
65
|
+
width: 15%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ce-date-title .ce-date-title__next-month {
|
|
69
|
+
width: 15%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ce-date-week {
|
|
73
|
+
width: 100%;
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
margin-top: 15px;
|
|
77
|
+
padding-bottom: 5px;
|
|
78
|
+
border-bottom: 1px solid #e4e7ed;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ce-date-week>span {
|
|
82
|
+
list-style: none;
|
|
83
|
+
width: calc(100%/7);
|
|
84
|
+
text-align: center;
|
|
85
|
+
color: #606266;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ce-date-day {
|
|
90
|
+
width: 100%;
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
align-items: center;
|
|
94
|
+
margin-top: 5px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ce-date-day>div {
|
|
98
|
+
width: calc(100%/7);
|
|
99
|
+
height: 40px;
|
|
100
|
+
text-align: center;
|
|
101
|
+
color: #606266;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
line-height: 40px;
|
|
105
|
+
border-radius: 4px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ce-date-day>div:hover {
|
|
109
|
+
color: #5175F4;
|
|
110
|
+
opacity: .8;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ce-date-day>div.active {
|
|
114
|
+
color: #5175F4;
|
|
115
|
+
font-weight: 700;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ce-date-day>div.disable {
|
|
119
|
+
color: #c0c4cc;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ce-date-day>div.select {
|
|
123
|
+
color: #fff;
|
|
124
|
+
background-color: #5175F4;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ce-time-wrap {
|
|
128
|
+
display: none;
|
|
129
|
+
padding: 10px;
|
|
130
|
+
height: 286px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ce-time-wrap ::-webkit-scrollbar {
|
|
134
|
+
width: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ce-time-wrap.active {
|
|
138
|
+
display: flex;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ce-time-wrap li {
|
|
142
|
+
list-style: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ce-time-wrap>li {
|
|
146
|
+
width: 33.3%;
|
|
147
|
+
height: 100%;
|
|
148
|
+
text-align: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ce-time-wrap>li>span {
|
|
152
|
+
transform: translateY(-5px);
|
|
153
|
+
display: inline-block;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ce-time-wrap>li>ol {
|
|
157
|
+
height: calc(100% - 20px);
|
|
158
|
+
overflow-y: auto;
|
|
159
|
+
border: 1px solid #e2e2e2;
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ce-time-wrap>li:first-child>ol {
|
|
164
|
+
border-right: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ce-time-wrap>li:last-child>ol {
|
|
168
|
+
border-left: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ce-time-wrap>li>ol>li {
|
|
172
|
+
line-height: 30px;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
transition: all .3s;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ce-time-wrap>li>ol>li:hover {
|
|
178
|
+
background-color: #eaeaea;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ce-time-wrap>li>ol>li.active {
|
|
182
|
+
color: #ffffff;
|
|
183
|
+
background: #5175F4;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ce-date-menu {
|
|
187
|
+
width: 100%;
|
|
188
|
+
height: 28px;
|
|
189
|
+
display: flex;
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
align-items: center;
|
|
192
|
+
padding-top: 10px;
|
|
193
|
+
position: relative;
|
|
194
|
+
border-top: 1px solid #e4e7ed;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ce-date-menu button {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
line-height: 1;
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
background: #fff;
|
|
203
|
+
border: 1px solid #dcdfe6;
|
|
204
|
+
color: #606266;
|
|
205
|
+
appearance: none;
|
|
206
|
+
text-align: center;
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
outline: none;
|
|
209
|
+
margin: 0;
|
|
210
|
+
transition: .1s;
|
|
211
|
+
font-weight: 500;
|
|
212
|
+
user-select: none;
|
|
213
|
+
padding: 7px 15px;
|
|
214
|
+
font-size: 12px;
|
|
215
|
+
border-radius: 3px;
|
|
216
|
+
margin-left: 10px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ce-date-menu button:hover {
|
|
220
|
+
color: #5175F4;
|
|
221
|
+
border-color: #5175F4;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ce-date-menu button.ce-date-menu__time {
|
|
225
|
+
border: 1px solid transparent;
|
|
226
|
+
position: absolute;
|
|
227
|
+
left: 0;
|
|
228
|
+
margin-left: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ce-date-menu button.ce-date-menu__time:hover {
|
|
232
|
+
color: #5175F4;
|
|
233
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.ce-hyperlink-popup {
|
|
2
|
+
background: #fff;
|
|
3
|
+
box-shadow: 0 2px 12px 0 rgb(98 107 132 / 20%);
|
|
4
|
+
border-radius: 2px;
|
|
5
|
+
color: #3d4757;
|
|
6
|
+
padding: 12px 16px;
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
text-align: center;
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ce-hyperlink-popup a {
|
|
14
|
+
min-width: 100px;
|
|
15
|
+
max-width: 300px;
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
border-bottom-width: 1px;
|
|
24
|
+
border-bottom-style: solid;
|
|
25
|
+
color: #0000ff;
|
|
26
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@import './control/select.css';
|
|
2
|
+
@import './control/calculator.css';
|
|
3
|
+
@import './date/datePicker.css';
|
|
4
|
+
@import './block/block.css';
|
|
5
|
+
@import './table/table.css';
|
|
6
|
+
@import './resizer/resizer.css';
|
|
7
|
+
@import './previewer/previewer.css';
|
|
8
|
+
@import './contextmenu/contextmenu.css';
|
|
9
|
+
@import './hyperlink/hyperlink.css';
|
|
10
|
+
@import './zone/zone.css';
|
|
11
|
+
|
|
12
|
+
.ce-inputarea {
|
|
13
|
+
width: 100px;
|
|
14
|
+
height: 30px;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
min-height: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
top: 0;
|
|
21
|
+
letter-spacing: 0;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
position: absolute;
|
|
24
|
+
z-index: -1;
|
|
25
|
+
outline: none;
|
|
26
|
+
resize: none;
|
|
27
|
+
border: none;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
color: transparent;
|
|
30
|
+
user-select: none;
|
|
31
|
+
caret-color: transparent;
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ce-cursor {
|
|
36
|
+
width: 1px;
|
|
37
|
+
height: 20px;
|
|
38
|
+
left: 0;
|
|
39
|
+
right: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
outline: none;
|
|
42
|
+
background-color: #000000;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ce-cursor.ce-cursor--animation {
|
|
47
|
+
animation-duration: 1s;
|
|
48
|
+
animation-iteration-count: infinite;
|
|
49
|
+
animation-name: cursorAnimation;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@keyframes cursorAnimation {
|
|
53
|
+
from {
|
|
54
|
+
opacity: 1
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
13% {
|
|
58
|
+
opacity: 0
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
50% {
|
|
62
|
+
opacity: 0
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
63% {
|
|
66
|
+
opacity: 1
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
to {
|
|
70
|
+
opacity: 1
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ce-float-image {
|
|
75
|
+
position: absolute;
|
|
76
|
+
opacity: 0.5;
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
}
|