adtec-hnyzfc-core-package 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/README.en.md +19 -0
- package/README.md +30 -0
- package/dist/chunks/AddOrMinusMultiDialog.vue_vue_type_script_setup_true_lang-BB_TkU5c.js +1 -0
- package/dist/chunks/App-DxNJxGeF.js +1 -0
- package/dist/chunks/ApprovalNode.vue_vue_type_script_setup_true_lang-UOTgC-LR.js +1 -0
- package/dist/chunks/AssigneePanel.vue_vue_type_script_setup_true_lang-BkXSUmTP.js +1 -0
- package/dist/chunks/CcNode.vue_vue_type_script_setup_true_lang-DC4Lfz0O.js +1 -0
- package/dist/chunks/ConditionPanel.vue_vue_type_script_setup_true_lang-Bk2Pwa9X.js +1 -0
- package/dist/chunks/ElFlex.vue_vue_type_script_setup_true_lang-D3H7QH-5.js +1 -0
- package/dist/chunks/ElScrollbars.vue_vue_type_script_setup_true_lang-0Vhrxdyr.js +1 -0
- package/dist/chunks/ElTitle.vue_vue_type_script_setup_true_lang-B0oGtxWu.js +1 -0
- package/dist/chunks/ElTotalTools.vue_vue_type_script_setup_true_lang-Dw9M4qw4.js +1 -0
- package/dist/chunks/EndPanel.vue_vue_type_script_setup_true_lang-C4iNIDO-.js +1 -0
- package/dist/chunks/JumpNode.vue_vue_type_script_setup_true_lang-CAfaLHA3.js +1 -0
- package/dist/chunks/JumpPanel.vue_vue_type_script_setup_true_lang--JoN66Kg.js +1 -0
- package/dist/chunks/NotifyNode.vue_vue_type_script_setup_true_lang-DaNOnZvd.js +1 -0
- package/dist/chunks/NotifyPanel.vue_vue_type_script_setup_true_lang-BsWhTM_2.js +1 -0
- package/dist/chunks/ProcessDetailDialog.vue_vue_type_style_index_0_lang-Bf9S1As6.js +1 -0
- package/dist/chunks/ProcessInstance.vue_vue_type_script_setup_true_lang-DuqA8amj.js +1 -0
- package/dist/chunks/TimerNode.vue_vue_type_script_setup_true_lang-xL5Q53ju.js +1 -0
- package/dist/chunks/TimerPanel.vue_vue_type_script_setup_true_lang-D-Cav33S.js +1 -0
- package/dist/chunks/TreeNode.vue_vue_type_script_setup_true_name_TreeNode_lang-DRb0aQ9n.js +1 -0
- package/dist/chunks/Trigger.vue_vue_type_script_setup_true_lang-DH_ba4a_.js +1 -0
- package/dist/chunks/VxeButton.vue_vue_type_script_setup_true_lang-s_mYx9TA.js +1 -0
- package/dist/chunks/VxeCheckbox.vue_vue_type_script_setup_true_lang-Ccr5YD1x.js +1 -0
- package/dist/chunks/VxeForm.vue_vue_type_script_setup_true_lang-DXNZ8Qzg.js +1 -0
- package/dist/chunks/VxeInput.vue_vue_type_script_setup_true_lang-v9AqGSoL.js +1 -0
- package/dist/chunks/VxeLoading.vue_vue_type_script_setup_true_lang-B253kD5t.js +1 -0
- package/dist/chunks/VxeModal.vue_vue_type_script_setup_true_lang-B4gh7jFR.js +1 -0
- package/dist/chunks/VxePager.vue_vue_type_script_setup_true_lang-DpOa3T96.js +1 -0
- package/dist/chunks/VxeSelect.vue_vue_type_script_setup_true_lang-BfVzFeBc.js +1 -0
- package/dist/chunks/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/dist/chunks/about-DtNEP_7P.js +1 -0
- package/dist/chunks/add-column-after-CJNsJvxN.js +1 -0
- package/dist/chunks/add-column-before-CzE7aUZ_.js +1 -0
- package/dist/chunks/add-row-after-BF72OPbU.js +1 -0
- package/dist/chunks/add-row-before-CXwFDMk7.js +1 -0
- package/dist/chunks/align-center-D9p855ZM.js +1 -0
- package/dist/chunks/align-distributed-BgCc7jUK.js +1 -0
- package/dist/chunks/align-dropdown-D13C01hp.js +1 -0
- package/dist/chunks/align-justify-D2CCR-Tv.js +1 -0
- package/dist/chunks/align-left-DGoeY8M8.js +1 -0
- package/dist/chunks/align-right-cvoUZD0j.js +1 -0
- package/dist/chunks/audio-Cu_8DUAk.js +1 -0
- package/dist/chunks/background-BqaAiULF.js +1 -0
- package/dist/chunks/background-C6Fsx6fV.js +1 -0
- package/dist/chunks/background-VJOZiuR_.js +1 -0
- package/dist/chunks/background-color-D2MqN3R4.js +1 -0
- package/dist/chunks/background-slZFdhpF.js +1 -0
- package/dist/chunks/barcode-BQt9XJ1d.js +1 -0
- package/dist/chunks/bold-D9vAACcy.js +1 -0
- package/dist/chunks/bookmark-DYEjgk_G.js +1 -0
- package/dist/chunks/border-CUaBgIHA.js +1 -0
- package/dist/chunks/border-color-beMzdKg0.js +1 -0
- package/dist/chunks/break-BA7SNRJX.js +1 -0
- package/dist/chunks/break-marks-faiEoYm7.js +1 -0
- package/dist/chunks/builtin-3ftgL3GZ.js +1 -0
- package/dist/chunks/builtin-CSh-wrSS.js +1 -0
- package/dist/chunks/bullet-list-CFOOqcgF.js +1 -0
- package/dist/chunks/button-nUj48jue.js +1 -0
- package/dist/chunks/cal-service-CTPNhNPR.js +1 -0
- package/dist/chunks/callout-BT-iP5Sk.js +1 -0
- package/dist/chunks/cells-align-CN0b1sZ9.js +1 -0
- package/dist/chunks/cells-background-BOVJJDvo.js +1 -0
- package/dist/chunks/chinese-case-tmszLoqn.js +1 -0
- package/dist/chunks/chinese-date-eMPyZbXG.js +1 -0
- package/dist/chunks/classic-DNZZbcIZ.js +1 -0
- package/dist/chunks/clear-format-DvpqxlV6.js +1 -0
- package/dist/chunks/clickable-DKwLfwy9.js +1 -0
- package/dist/chunks/code-CH7OuxFw.js +1 -0
- package/dist/chunks/code-block-JF01NxEw.js +1 -0
- package/dist/chunks/color-BnK_2y7Y.js +1 -0
- package/dist/chunks/color-D8FvJD1R.js +1 -0
- package/dist/chunks/color-DlBMjYug.js +1 -0
- package/dist/chunks/columns-Dgp7WOMC.js +1 -0
- package/dist/chunks/common-C-Ic6cml.js +1 -0
- package/dist/chunks/comp.selectUser.vue_vue_type_script_setup_true_lang-BQDO393q.js +1 -0
- package/dist/chunks/convert-GZ3LS7qA.js +1 -0
- package/dist/chunks/copy-T4iFGqM8.js +1 -0
- package/dist/chunks/countdown-DbPShhbl.js +1 -0
- package/dist/chunks/delete-BF28u1QP.js +1 -0
- package/dist/chunks/delete-CIGtGv1V.js +1 -0
- package/dist/chunks/delete-Cm58IzMB.js +1 -0
- package/dist/chunks/delete-column-CHMoJvLA.js +1 -0
- package/dist/chunks/delete-row-CI3hNsZF.js +1 -0
- package/dist/chunks/details-C1d8AweL.js +1 -0
- package/dist/chunks/diagrams-BM7f8Hww.js +1 -0
- package/dist/chunks/dialog-BnThXCWu.js +1 -0
- package/dist/chunks/download-BQbssS62.js +1 -0
- package/dist/chunks/duplicate-BZnVSQFI.js +1 -0
- package/dist/chunks/echarts--CrLLrqK.js +1 -0
- package/dist/chunks/edit-BU7Znarl.js +1 -0
- package/dist/chunks/editor-scroll-CH3ZXFEC.js +1 -0
- package/dist/chunks/embed-D5OUIJIb.js +1 -0
- package/dist/chunks/emoji-CfG5eQor.js +1 -0
- package/dist/chunks/emoji-remove-D7X2J_pD.js +1 -0
- package/dist/chunks/file-BwWjS162.js +1 -0
- package/dist/chunks/file-NWFwbEfb.js +1 -0
- package/dist/chunks/fix-ZyIVHkwS.js +1 -0
- package/dist/chunks/font-family-CjRNj3c-.js +1 -0
- package/dist/chunks/font-size-CrQIO90J.js +1 -0
- package/dist/chunks/footer-BGyVHmXa.js +1 -0
- package/dist/chunks/footnote-Cn1TpCIc.js +1 -0
- package/dist/chunks/format-painter-D7T03Op2.js +1 -0
- package/dist/chunks/fullscreen-DbG5eL7F.js +1 -0
- package/dist/chunks/hard-break-lDnyWngX.js +1 -0
- package/dist/chunks/header-IhIcBDsi.js +1 -0
- package/dist/chunks/heading-CnhWTg8v.js +1 -0
- package/dist/chunks/highlight-C1-tVYwz.js +1 -0
- package/dist/chunks/history-record-BccG7Xr0.js +2 -0
- package/dist/chunks/hr-ABHyxX8G.js +1 -0
- package/dist/chunks/html-xidra7UB.js +1 -0
- package/dist/chunks/i18n-hQyxfD7_.js +5 -0
- package/dist/chunks/icon-D4BzC_KU.js +1 -0
- package/dist/chunks/image-B3BIUefa.js +1 -0
- package/dist/chunks/image-DIF0OiGH.js +1 -0
- package/dist/chunks/image-resizer-DI5dQsWL.js +1 -0
- package/dist/chunks/indent-DmZgQbne.js +1 -0
- package/dist/chunks/index-B0qeXfXM.js +1 -0
- package/dist/chunks/index-B7ezl8la.js +1 -0
- package/dist/chunks/index-DB4X4foC.js +1 -0
- package/dist/chunks/index-DDQ58xAl.js +1 -0
- package/dist/chunks/index-DSxva9gK.js +1 -0
- package/dist/chunks/index-DTsjZpBR.js +3 -0
- package/dist/chunks/index-Dl16_5Ga.js +1 -0
- package/dist/chunks/input-Cmbl9ycs.js +1 -0
- package/dist/chunks/insert-CBKLBcgd.js +1 -0
- package/dist/chunks/italic-DDov0JhD.js +1 -0
- package/dist/chunks/letter-spacing-XN7tot45.js +1 -0
- package/dist/chunks/line-height-DnkFL2Le.js +1 -0
- package/dist/chunks/line-number-Dy4fgJnc.js +1 -0
- package/dist/chunks/link-DQkXWKsV.js +1 -0
- package/dist/chunks/load-resource-DgkZV52W.js +1 -0
- package/dist/chunks/locale-C7l3TK_C.js +1 -0
- package/dist/chunks/margin-DZ6aGElI.js +1 -0
- package/dist/chunks/margin-DbGENlKn.js +1 -0
- package/dist/chunks/markdown-sCZ1k8eH.js +1 -0
- package/dist/chunks/math-C4D8Aloc.js +1 -0
- package/dist/chunks/math-DkDGgpfC.js +1 -0
- package/dist/chunks/mention-DzuNysNP.js +1 -0
- package/dist/chunks/mentions-D1AaJTuX.js +1 -0
- package/dist/chunks/menus-DkIRsvVB.js +1 -0
- package/dist/chunks/merge-cells-CdCOEOpL.js +1 -0
- package/dist/chunks/mermaid-CeJuDnTt.js +2 -0
- package/dist/chunks/mind-map-B8Ep-Bgc.js +1 -0
- package/dist/chunks/modal-C74zGRb1.js +1 -0
- package/dist/chunks/next-cell-D4oCgtpo.js +1 -0
- package/dist/chunks/node-BNsD5_pO.js +1 -0
- package/dist/chunks/node-view-BtvLsCIq.js +1 -0
- package/dist/chunks/node-view-C-z3oj0k.js +1 -0
- package/dist/chunks/node-view-CBjV65ug.js +1 -0
- package/dist/chunks/node-view-CqFhGDvz.js +1 -0
- package/dist/chunks/node-view-CsG70jor.js +1 -0
- package/dist/chunks/node-view-Cw1LtcLJ.js +1 -0
- package/dist/chunks/node-view-D8s_W1o0.js +1 -0
- package/dist/chunks/node-view-DhXzoQcA.js +1 -0
- package/dist/chunks/node-view-DsQdaAj1.js +1 -0
- package/dist/chunks/node-view-SsT-Zs6P.js +1 -0
- package/dist/chunks/node-view-j1q0uEdL.js +1 -0
- package/dist/chunks/node-view-kqpt80Cn.js +1 -0
- package/dist/chunks/open-BSrMYm2w.js +1 -0
- package/dist/chunks/open-Buzpv6If.js +1 -0
- package/dist/chunks/open-CJ09Ahsf.js +1 -0
- package/dist/chunks/operationAuth.vue_vue_type_script_setup_true_lang-Cqn1ksOr.js +1 -0
- package/dist/chunks/option-box-Dx4Qltcx.js +1 -0
- package/dist/chunks/ordered-list-C2PAaNhi.js +1 -0
- package/dist/chunks/orientation-DXuBvjLa.js +1 -0
- package/dist/chunks/outdent-CvGDlZRv.js +1 -0
- package/dist/chunks/page-BqOSF_Ak.js +1 -0
- package/dist/chunks/page-RfNV_LDj.js +1 -0
- package/dist/chunks/page-options-BtWfq-ao.js +1 -0
- package/dist/chunks/pdf-CecjYeuM.js +1 -0
- package/dist/chunks/player-CIYSGQvp.js +1 -0
- package/dist/chunks/preload-helper-BlTxHScW.js +1 -0
- package/dist/chunks/preview-CFqZ9c_6.js +1 -0
- package/dist/chunks/preview-D7pZ2aIR.js +1 -0
- package/dist/chunks/previous-cell-BkRHmNRc.js +1 -0
- package/dist/chunks/print-CTxEeqZC.js +1 -0
- package/dist/chunks/print-DLFh00TF.js +68 -0
- package/dist/chunks/proportion-LC32q4tQ.js +1 -0
- package/dist/chunks/qrcode-DgtIQ8vB.js +1 -0
- package/dist/chunks/quote-C2YmwcHS.js +1 -0
- package/dist/chunks/redo-mVLGHgiE.js +1 -0
- package/dist/chunks/render.vue_vue_type_script_setup_true_lang-sGvQddve.js +1 -0
- package/dist/chunks/ribbon-BTlruJ6o.js +1 -0
- package/dist/chunks/scrollable-NEHnK6E3.js +1 -0
- package/dist/chunks/search-replace-C-QxDYEE.js +1 -0
- package/dist/chunks/search-replace-SQZer4ug.js +1 -0
- package/dist/chunks/select-CVk2bhdF.js +1 -0
- package/dist/chunks/select-all-CUTkOIEM.js +1 -0
- package/dist/chunks/selection-BIZq2qs_.js +1 -0
- package/dist/chunks/share-CXMDbx3J.js +1 -0
- package/dist/chunks/short-id-DJZHbKNv.js +1 -0
- package/dist/chunks/shortcut-BFtk1iAo.js +1 -0
- package/dist/chunks/shortcuts-B5yodaU0.js +1 -0
- package/dist/chunks/signature-DvSI4fGK.js +1 -0
- package/dist/chunks/size-B8SkKc4o.js +1 -0
- package/dist/chunks/skin-L-I3dHbK.js +1 -0
- package/dist/chunks/split-cell-DS97AZSx.js +1 -0
- package/dist/chunks/state-X-ofkjhe.js +1 -0
- package/dist/chunks/strike-DdJ2RxDi.js +1 -0
- package/dist/chunks/subscript-BQHYftJy.js +1 -0
- package/dist/chunks/superscript-DfBvIzY8.js +1 -0
- package/dist/chunks/symbol-BzJUnQGI.js +1 -0
- package/dist/chunks/tag-ChwaeZ2Y.js +1 -0
- package/dist/chunks/task-list-CFl0tJ8C.js +1 -0
- package/dist/chunks/template-Ox_sJjLt.js +1 -0
- package/dist/chunks/text-BXh5YX5W.js +1 -0
- package/dist/chunks/text-box-NtGpVrop.js +1 -0
- package/dist/chunks/theme-D-xn-kuC.js +1 -0
- package/dist/chunks/toc-Bl4owmo_.js +1 -0
- package/dist/chunks/toc-DfYsz5xN.js +1 -0
- package/dist/chunks/toc-vdoyuw4L.js +1 -0
- package/dist/chunks/tofile-D7Co0CFi.js +1 -0
- package/dist/chunks/toggle-header-cell-DJZAj_HV.js +1 -0
- package/dist/chunks/toggle-header-column-B3piodU4.js +1 -0
- package/dist/chunks/toggle-header-row-Ck912FG0.js +1 -0
- package/dist/chunks/toolbarSelection-IfVwbuDC.js +1 -0
- package/dist/chunks/tooltip-Hk3wzOqG.js +1 -0
- package/dist/chunks/underline--__ksgwM.js +1 -0
- package/dist/chunks/undo-D36oEvmQ.js +1 -0
- package/dist/chunks/unlink-bDvFzxUO.js +1 -0
- package/dist/chunks/video-C3kIrKeJ.js +1 -0
- package/dist/chunks/watermark-BOQfqt_F.js +1 -0
- package/dist/chunks/web-Dy0LCxPV.js +1 -0
- package/dist/chunks/web-page-Bu52V8Ux.js +1 -0
- package/dist/chunks/width-CREo8g06.js +1 -0
- package/dist/chunks/word-wrap-CgEAjND5.js +1 -0
- package/dist/chunks/writing-mode-QdAtr1Oa.js +1 -0
- package/dist/chunks/zoom-CRQJ0GZw.js +1 -0
- package/dist/chunks/zoom-auto-B3OA0TRG.js +1 -0
- package/dist/chunks/zoom-original-B5-bu5K8.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/prebuilt/umo-editor/favicon.ico +0 -0
- package/dist/prebuilt/umo-editor/umo-editor.css +1 -0
- package/dist/prebuilt/umo-editor/umo-editor.d.ts +9 -0
- package/dist/prebuilt/umo-editor/umo-editor.js +564 -0
- package/dist/src/api/BasicApi.d.ts +20 -0
- package/dist/src/api/BasicApi.js +1 -0
- package/dist/src/api/DeptInfoApi.d.ts +15 -0
- package/dist/src/api/DeptInfoApi.js +1 -0
- package/dist/src/api/DocumentApi.d.ts +14 -0
- package/dist/src/api/DocumentApi.js +1 -0
- package/dist/src/api/EmployeeInfoApi.d.ts +7 -0
- package/dist/src/api/EmployeeInfoApi.js +1 -0
- package/dist/src/api/SysDictCacheApi.d.ts +13 -0
- package/dist/src/api/SysDictCacheApi.js +1 -0
- package/dist/src/api/SysUserApi.d.ts +22 -0
- package/dist/src/api/SysUserApi.js +1 -0
- package/dist/src/api/framework.d.ts +10 -0
- package/dist/src/api/framework.js +1 -0
- package/dist/src/api/workflow/workflow.d.ts +13 -0
- package/dist/src/api/workflow/workflow.js +1 -0
- package/dist/src/api/workflow/workflowCommentApi.d.ts +14 -0
- package/dist/src/api/workflow/workflowCommentApi.js +1 -0
- package/dist/src/api/workflow/workflowInstApi.d.ts +26 -0
- package/dist/src/api/workflow/workflowInstApi.js +1 -0
- package/dist/src/components/ElCardList.vue.d.ts +32 -0
- package/dist/src/components/ElCardList.vue.js +1 -0
- package/dist/src/components/ElFlex/ElFlex.vue.d.ts +12 -0
- package/dist/src/components/ElFlex/ElFlex.vue.js +1 -0
- package/dist/src/components/ElTotalTools.vue.d.ts +65 -0
- package/dist/src/components/ElTotalTools.vue.js +1 -0
- package/dist/src/components/OperationAuth/operationAuth.vue.d.ts +16 -0
- package/dist/src/components/OperationAuth/operationAuth.vue.js +1 -0
- package/dist/src/components/RichTextEditor/RichTextEditor.vue.d.ts +53 -0
- package/dist/src/components/RichTextEditor/RichTextEditor.vue.js +1 -0
- package/dist/src/components/RichTextEditor/installUmoEditorApp.d.ts +3 -0
- package/dist/src/components/RichTextEditor/installUmoEditorApp.js +24 -0
- package/dist/src/components/RichTextEditor/richTextHtmlUtils.d.ts +17 -0
- package/dist/src/components/RichTextEditor/richTextHtmlUtils.js +1 -0
- package/dist/src/components/Scrollbars/ElScrollbars.vue.d.ts +12 -0
- package/dist/src/components/Scrollbars/ElScrollbars.vue.js +1 -0
- package/dist/src/components/Search/ElIconSearch.vue.d.ts +170 -0
- package/dist/src/components/Search/ElIconSearch.vue.js +1 -0
- package/dist/src/components/Search/ElSearch.vue.d.ts +18 -0
- package/dist/src/components/Search/ElSearch.vue.js +1 -0
- package/dist/src/components/SelectInDicators/SelectInDicators.vue.d.ts +17 -0
- package/dist/src/components/SelectInDicators/SelectInDicators.vue.js +1 -0
- package/dist/src/components/SelectInDicators/api/DataIndicatorsApi.d.ts +16 -0
- package/dist/src/components/SelectInDicators/api/DataIndicatorsApi.js +1 -0
- package/dist/src/components/SelectInDicators/interface/IComIndex.d.ts +25 -0
- package/dist/src/components/SelectInDicators/interface/IComIndex.js +1 -0
- package/dist/src/components/SelectInDicators/interface/IComIndexAttri.d.ts +18 -0
- package/dist/src/components/SelectInDicators/interface/IComIndexAttri.js +1 -0
- package/dist/src/components/Title/ElTitle.vue.d.ts +49 -0
- package/dist/src/components/Title/ElTitle.vue.js +1 -0
- package/dist/src/components/autoToolTip/ElAutoToolTip.vue.d.ts +25 -0
- package/dist/src/components/autoToolTip/ElAutoToolTip.vue.js +1 -0
- package/dist/src/components/baseEcharts/index.vue.d.ts +46 -0
- package/dist/src/components/baseEcharts/index.vue.js +1 -0
- package/dist/src/components/bpmntree/api/modules/role.d.ts +17 -0
- package/dist/src/components/bpmntree/api/modules/role.js +1 -0
- package/dist/src/components/bpmntree/api/modules/user.d.ts +12 -0
- package/dist/src/components/bpmntree/api/modules/user.js +1 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/Operator.vue.d.ts +10 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/Operator.vue.js +1 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/Trigger.vue.d.ts +13 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/Trigger.vue.js +1 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/index.vue.d.ts +28 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/index.vue.js +1 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/type.d.ts +16 -0
- package/dist/src/components/bpmntree/components/AdvancedFilter/type.js +1 -0
- package/dist/src/components/bpmntree/components/FlowIcon/index.d.ts +47 -0
- package/dist/src/components/bpmntree/components/FlowIcon/index.js +1 -0
- package/dist/src/components/bpmntree/components/Render/render.vue.d.ts +10 -0
- package/dist/src/components/bpmntree/components/Render/render.vue.js +1 -0
- package/dist/src/components/bpmntree/components/Render/type.d.ts +12 -0
- package/dist/src/components/bpmntree/components/Render/type.js +1 -0
- package/dist/src/components/bpmntree/components/RoleSelector/RolePicker.vue.d.ts +19 -0
- package/dist/src/components/bpmntree/components/RoleSelector/RolePicker.vue.js +1 -0
- package/dist/src/components/bpmntree/components/RoleSelector/RoleTag.vue.d.ts +15 -0
- package/dist/src/components/bpmntree/components/RoleSelector/RoleTag.vue.js +1 -0
- package/dist/src/components/bpmntree/components/RoleSelector/index.vue.d.ts +19 -0
- package/dist/src/components/bpmntree/components/RoleSelector/index.vue.js +1 -0
- package/dist/src/components/bpmntree/components/UserSelector/UserTag.vue.d.ts +15 -0
- package/dist/src/components/bpmntree/components/UserSelector/UserTag.vue.js +1 -0
- package/dist/src/components/bpmntree/components/UserSelector/index.vue.d.ts +19 -0
- package/dist/src/components/bpmntree/components/UserSelector/index.vue.js +1 -0
- package/dist/src/components/bpmntree/hooks/useDraggableScroll.d.ts +4 -0
- package/dist/src/components/bpmntree/hooks/useDraggableScroll.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/index.vue.d.ts +33 -0
- package/dist/src/components/bpmntree/views/flowDesign/index.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/Add.vue.d.ts +7 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/Add.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ApprovalNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ApprovalNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/CcNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/CcNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ConcurrentNode.vue.d.ts +9 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ConcurrentNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ConditionNode.vue.d.ts +16 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ConditionNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/EndNode.vue.d.ts +13 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/EndNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ExclusiveNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ExclusiveNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/GatewayNode.vue.d.ts +23 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/GatewayNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/InclusiveNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/InclusiveNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/JumpNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/JumpNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/Node.vue.d.ts +35 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/Node.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/NotifyNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/NotifyNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ParallelNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/ParallelNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/PopoverView.vue.d.ts +8 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/PopoverView.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/StartNode.vue.d.ts +12 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/StartNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/TimerNode.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/TimerNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/TreeNode.vue.d.ts +18 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/TreeNode.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/type.d.ts +119 -0
- package/dist/src/components/bpmntree/views/flowDesign/nodes/type.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ApprovalPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ApprovalPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/AssigneePanel.vue.d.ts +19 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/AssigneePanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/CcPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/CcPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ConditionPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ConditionPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/EndPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/EndPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ExecutionListeners.vue.d.ts +16 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ExecutionListeners.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/JumpPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/JumpPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/NotifyPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/NotifyPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ParaPanel.vue.d.ts +12 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/ParaPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/StartPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/StartPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/TaskListeners.vue.d.ts +16 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/TaskListeners.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/TimerPanel.vue.d.ts +6 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/TimerPanel.vue.js +1 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/index.vue.d.ts +13 -0
- package/dist/src/components/bpmntree/views/flowDesign/panels/index.vue.js +1 -0
- package/dist/src/components/bpmntree/views/view.index.vue.d.ts +11 -0
- package/dist/src/components/bpmntree/views/view.index.vue.js +1 -0
- package/dist/src/components/business/comp.selectUser.vue.d.ts +28 -0
- package/dist/src/components/business/comp.selectUser.vue.js +1 -0
- package/dist/src/components/business/comp.userForm.vue.d.ts +24 -0
- package/dist/src/components/business/comp.userForm.vue.js +1 -0
- package/dist/src/components/business/userSelect.vue.d.ts +110 -0
- package/dist/src/components/business/userSelect.vue.js +1 -0
- package/dist/src/components/icon/ElIconBtn.vue.d.ts +119 -0
- package/dist/src/components/icon/ElIconBtn.vue.js +1 -0
- package/dist/src/components/icon/ElIcons.vue.d.ts +10 -0
- package/dist/src/components/icon/ElIcons.vue.js +1 -0
- package/dist/src/components/kFrame/IframeOptions.d.ts +36 -0
- package/dist/src/components/kFrame/IframeOptions.js +1 -0
- package/dist/src/components/kFrame/KFrame.vue.d.ts +32 -0
- package/dist/src/components/kFrame/KFrame.vue.js +1 -0
- package/dist/src/components/tooltip/index.d.ts +4 -0
- package/dist/src/components/tooltip/index.js +1 -0
- package/dist/src/components/tooltip/src/tooltip.d.ts +55 -0
- package/dist/src/components/tooltip/src/tooltip.js +1 -0
- package/dist/src/components/upload/CustomElUpload.vue.d.ts +247 -0
- package/dist/src/components/upload/CustomElUpload.vue.js +1 -0
- package/dist/src/components/upload/DocxJsViewer.vue.d.ts +32 -0
- package/dist/src/components/upload/DocxJsViewer.vue.js +1 -0
- package/dist/src/components/upload/ElUploads.vue.d.ts +212 -0
- package/dist/src/components/upload/ElUploads.vue.js +1 -0
- package/dist/src/components/upload/ExcelJsViewer.vue.d.ts +33 -0
- package/dist/src/components/upload/ExcelJsViewer.vue.js +1 -0
- package/dist/src/components/upload/FileView.vue.d.ts +59 -0
- package/dist/src/components/upload/FileView.vue.js +1 -0
- package/dist/src/components/upload/FileViewComponents.vue.d.ts +5 -0
- package/dist/src/components/upload/FileViewComponents.vue.js +1 -0
- package/dist/src/components/upload/OfficePreview.vue.d.ts +62 -0
- package/dist/src/components/upload/OfficePreview.vue.js +1 -0
- package/dist/src/components/upload/OfficePreviewHeaderBar.vue.d.ts +73 -0
- package/dist/src/components/upload/OfficePreviewHeaderBar.vue.js +1 -0
- package/dist/src/components/upload/OfficePreviewToolbar.vue.d.ts +41 -0
- package/dist/src/components/upload/OfficePreviewToolbar.vue.js +1 -0
- package/dist/src/components/upload/PdfJsViewer.vue.d.ts +49 -0
- package/dist/src/components/upload/PdfJsViewer.vue.js +1 -0
- package/dist/src/components/vxeGrid/index.vue.d.ts +9 -0
- package/dist/src/components/vxeGrid/index.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeButton.vue.d.ts +27 -0
- package/dist/src/components/vxeReplace/VxeButton.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeCheckbox.vue.d.ts +22 -0
- package/dist/src/components/vxeReplace/VxeCheckbox.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeForm.vue.d.ts +17 -0
- package/dist/src/components/vxeReplace/VxeForm.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeInput.vue.d.ts +16 -0
- package/dist/src/components/vxeReplace/VxeInput.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeLoading.vue.d.ts +17 -0
- package/dist/src/components/vxeReplace/VxeLoading.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeModal.vue.d.ts +37 -0
- package/dist/src/components/vxeReplace/VxeModal.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxePager.vue.d.ts +24 -0
- package/dist/src/components/vxeReplace/VxePager.vue.js +1 -0
- package/dist/src/components/vxeReplace/VxeSelect.vue.d.ts +17 -0
- package/dist/src/components/vxeReplace/VxeSelect.vue.js +1 -0
- package/dist/src/components/vxeReplace/index.d.ts +11 -0
- package/dist/src/components/vxeReplace/index.js +1 -0
- package/dist/src/components/workflow/TaskOperation.vue.d.ts +91 -0
- package/dist/src/components/workflow/TaskOperation.vue.js +1 -0
- package/dist/src/components/workflow/WorkflowTodoDialog.vue.d.ts +2 -0
- package/dist/src/components/workflow/WorkflowTodoDialog.vue.js +1 -0
- package/dist/src/components/workflow/components/AddOrMinusMultiDialog.vue.d.ts +8 -0
- package/dist/src/components/workflow/components/AddOrMinusMultiDialog.vue.js +1 -0
- package/dist/src/components/workflow/components/CheckDialog.vue.d.ts +12 -0
- package/dist/src/components/workflow/components/CheckDialog.vue.js +1 -0
- package/dist/src/components/workflow/components/ProcessDetailComp.vue.d.ts +22 -0
- package/dist/src/components/workflow/components/ProcessDetailComp.vue.js +1 -0
- package/dist/src/components/workflow/components/ProcessDetailDialog.vue.d.ts +15 -0
- package/dist/src/components/workflow/components/ProcessDetailDialog.vue.js +1 -0
- package/dist/src/components/workflow/components/ProcessInstance.vue.d.ts +13 -0
- package/dist/src/components/workflow/components/ProcessInstance.vue.js +1 -0
- package/dist/src/components/workflow/components/ProcessInstanceStep.vue.d.ts +17 -0
- package/dist/src/components/workflow/components/ProcessInstanceStep.vue.js +2 -0
- package/dist/src/components/workflow/components/SelectAssigneeDialog.vue.d.ts +8 -0
- package/dist/src/components/workflow/components/SelectAssigneeDialog.vue.js +1 -0
- package/dist/src/components/workflow/components/SelectReturnActivityDialog.vue.d.ts +8 -0
- package/dist/src/components/workflow/components/SelectReturnActivityDialog.vue.js +1 -0
- package/dist/src/config/ElementPlusConfig.d.ts +14 -0
- package/dist/src/config/ElementPlusConfig.js +1 -0
- package/dist/src/config/VxeTableConfig.d.ts +14 -0
- package/dist/src/config/VxeTableConfig.js +1 -0
- package/dist/src/directives/vTrack.d.ts +9 -0
- package/dist/src/directives/vTrack.js +1 -0
- package/dist/src/hooks/createDialogHooks.d.ts +38 -0
- package/dist/src/hooks/createDialogHooks.js +24 -0
- package/dist/src/hooks/useComputed.d.ts +5 -0
- package/dist/src/hooks/useComputed.js +1 -0
- package/dist/src/hooks/useDictHooks.d.ts +14 -0
- package/dist/src/hooks/useDictHooks.js +1 -0
- package/dist/src/hooks/useEcharts.d.ts +15 -0
- package/dist/src/hooks/useEcharts.js +1 -0
- package/dist/src/hooks/useFileView.d.ts +4 -0
- package/dist/src/hooks/useFileView.js +1 -0
- package/dist/src/hooks/useListenerHooks.d.ts +5 -0
- package/dist/src/hooks/useListenerHooks.js +1 -0
- package/dist/src/hooks/useMessageHooks.d.ts +10 -0
- package/dist/src/hooks/useMessageHooks.js +1 -0
- package/dist/src/hooks/useOpenNewMenu.d.ts +5 -0
- package/dist/src/hooks/useOpenNewMenu.js +1 -0
- package/dist/src/hooks/usePermissionHooks.d.ts +11 -0
- package/dist/src/hooks/usePermissionHooks.js +1 -0
- package/dist/src/hooks/usePermissionToolHooks.d.ts +9 -0
- package/dist/src/hooks/usePermissionToolHooks.js +1 -0
- package/dist/src/hooks/useResetRefHooks.d.ts +8 -0
- package/dist/src/hooks/useResetRefHooks.js +1 -0
- package/dist/src/hooks/userWorkflowHooks.d.ts +109 -0
- package/dist/src/hooks/userWorkflowHooks.js +1 -0
- package/dist/src/hooks/workflowTodo.d.ts +9 -0
- package/dist/src/hooks/workflowTodo.js +1 -0
- package/dist/src/hooks/workflowTodo2.d.ts +3 -0
- package/dist/src/hooks/workflowTodo2.js +1 -0
- package/dist/src/interface/BaseEntity.d.ts +16 -0
- package/dist/src/interface/BaseEntity.js +1 -0
- package/dist/src/interface/IMdmDept.d.ts +58 -0
- package/dist/src/interface/IMdmDept.js +1 -0
- package/dist/src/interface/IMdmEmployee.d.ts +129 -0
- package/dist/src/interface/IMdmEmployee.js +1 -0
- package/dist/src/interface/IMdmEmployeeQuery.d.ts +20 -0
- package/dist/src/interface/IMdmEmployeeQuery.js +1 -0
- package/dist/src/interface/IMdmOrg.d.ts +16 -0
- package/dist/src/interface/IMdmOrg.js +1 -0
- package/dist/src/interface/IMdmOrgQuery.d.ts +12 -0
- package/dist/src/interface/IMdmOrgQuery.js +1 -0
- package/dist/src/interface/IOrgDeptInfo.d.ts +11 -0
- package/dist/src/interface/IOrgDeptInfo.js +1 -0
- package/dist/src/interface/ISortList.d.ts +5 -0
- package/dist/src/interface/ISortList.js +1 -0
- package/dist/src/interface/ISysDictDataCacheVo.d.ts +28 -0
- package/dist/src/interface/ISysDictDataCacheVo.js +1 -0
- package/dist/src/interface/ISysDictType.d.ts +19 -0
- package/dist/src/interface/ISysDictType.js +1 -0
- package/dist/src/interface/ISysMenuDataVo.d.ts +22 -0
- package/dist/src/interface/ISysMenuDataVo.js +1 -0
- package/dist/src/interface/ISysMenuInfoVo.d.ts +82 -0
- package/dist/src/interface/ISysMenuInfoVo.js +1 -0
- package/dist/src/interface/ISysMenuOperationVo.d.ts +21 -0
- package/dist/src/interface/ISysMenuOperationVo.js +1 -0
- package/dist/src/interface/ISysUploadFiles.d.ts +18 -0
- package/dist/src/interface/ISysUploadFiles.js +1 -0
- package/dist/src/interface/ISysUserInfo.d.ts +41 -0
- package/dist/src/interface/ISysUserInfo.js +1 -0
- package/dist/src/interface/ITpReviewBatch.d.ts +41 -0
- package/dist/src/interface/ITpReviewBatch.js +1 -0
- package/dist/src/interface/IUserBaseInfo.d.ts +72 -0
- package/dist/src/interface/IUserBaseInfo.js +1 -0
- package/dist/src/interface/IUserPermissionVo.d.ts +44 -0
- package/dist/src/interface/IUserPermissionVo.js +1 -0
- package/dist/src/interface/IVxeTable.d.ts +6 -0
- package/dist/src/interface/IVxeTable.js +1 -0
- package/dist/src/interface/Message.d.ts +71 -0
- package/dist/src/interface/Message.js +1 -0
- package/dist/src/interface/PageData.d.ts +17 -0
- package/dist/src/interface/PageData.js +1 -0
- package/dist/src/interface/ResponseData.d.ts +16 -0
- package/dist/src/interface/ResponseData.js +1 -0
- package/dist/src/interface/dictMapType.d.ts +10 -0
- package/dist/src/interface/dictMapType.js +1 -0
- package/dist/src/interface/enum/FlexEnum.d.ts +84 -0
- package/dist/src/interface/enum/FlexEnum.js +1 -0
- package/dist/src/interface/enum/MessageEnum.d.ts +40 -0
- package/dist/src/interface/enum/MessageEnum.js +1 -0
- package/dist/src/interface/workflow/IWfNodeLastApprovalVo.d.ts +22 -0
- package/dist/src/interface/workflow/IWfNodeLastApprovalVo.js +1 -0
- package/dist/src/interface/workflow/IWfProcessDefVo.d.ts +16 -0
- package/dist/src/interface/workflow/IWfProcessDefVo.js +1 -0
- package/dist/src/interface/workflow/IWfReturnNodeVo.d.ts +15 -0
- package/dist/src/interface/workflow/IWfReturnNodeVo.js +1 -0
- package/dist/src/interface/workflow/IWfTaskAskVo.d.ts +64 -0
- package/dist/src/interface/workflow/IWfTaskAskVo.js +1 -0
- package/dist/src/interface/workflow/IWfTaskQueryVo.d.ts +32 -0
- package/dist/src/interface/workflow/IWfTaskQueryVo.js +1 -0
- package/dist/src/interface/workflow/IWfTaskUsersVo.d.ts +20 -0
- package/dist/src/interface/workflow/IWfTaskUsersVo.js +1 -0
- package/dist/src/interface/workflow/IWfTaskVo.d.ts +163 -0
- package/dist/src/interface/workflow/IWfTaskVo.js +1 -0
- package/dist/src/interface/workflow/workflow.d.ts +20 -0
- package/dist/src/interface/workflow/workflow.js +1 -0
- package/dist/src/mixin/globalMixin.d.ts +8 -0
- package/dist/src/mixin/globalMixin.js +1 -0
- package/dist/src/packages/index.d.ts +336 -0
- package/dist/src/packages/index.js +1 -0
- package/dist/src/packages/text.vue.d.ts +2 -0
- package/dist/src/packages/text.vue.js +1 -0
- package/dist/src/plugins/echartsConfig.d.ts +8 -0
- package/dist/src/plugins/echartsConfig.js +1 -0
- package/dist/src/plugins/plugins.d.ts +4 -0
- package/dist/src/plugins/plugins.js +1 -0
- package/dist/src/plugins/renderDialog.d.ts +8 -0
- package/dist/src/plugins/renderDialog.js +1 -0
- package/dist/src/stores/dictStore.d.ts +62 -0
- package/dist/src/stores/dictStore.js +1 -0
- package/dist/src/stores/messageStore.d.ts +30 -0
- package/dist/src/stores/messageStore.js +1 -0
- package/dist/src/stores/permissionStore.d.ts +56 -0
- package/dist/src/stores/permissionStore.js +1 -0
- package/dist/src/stores/storeConfig.d.ts +2 -0
- package/dist/src/stores/storeConfig.js +1 -0
- package/dist/src/stores/userInfoStore.d.ts +13 -0
- package/dist/src/stores/userInfoStore.js +1 -0
- package/dist/src/types/vxe-pc-ui/all.d.ts +540 -0
- package/dist/src/types/vxe-pc-ui/components/alert.d.ts +87 -0
- package/dist/src/types/vxe-pc-ui/components/anchor-link.d.ts +91 -0
- package/dist/src/types/vxe-pc-ui/components/anchor.d.ts +104 -0
- package/dist/src/types/vxe-pc-ui/components/avatar.d.ts +88 -0
- package/dist/src/types/vxe-pc-ui/components/backtop.d.ts +122 -0
- package/dist/src/types/vxe-pc-ui/components/badge.d.ts +76 -0
- package/dist/src/types/vxe-pc-ui/components/breadcrumb-item.d.ts +80 -0
- package/dist/src/types/vxe-pc-ui/components/breadcrumb.d.ts +87 -0
- package/dist/src/types/vxe-pc-ui/components/button-group.d.ts +120 -0
- package/dist/src/types/vxe-pc-ui/components/button.d.ts +330 -0
- package/dist/src/types/vxe-pc-ui/components/calendar.d.ts +264 -0
- package/dist/src/types/vxe-pc-ui/components/card.d.ts +93 -0
- package/dist/src/types/vxe-pc-ui/components/carousel-item.d.ts +75 -0
- package/dist/src/types/vxe-pc-ui/components/carousel.d.ts +134 -0
- package/dist/src/types/vxe-pc-ui/components/cascader.d.ts +382 -0
- package/dist/src/types/vxe-pc-ui/components/checkbox-button.d.ts +114 -0
- package/dist/src/types/vxe-pc-ui/components/checkbox-group.d.ts +154 -0
- package/dist/src/types/vxe-pc-ui/components/checkbox.d.ts +128 -0
- package/dist/src/types/vxe-pc-ui/components/col.d.ts +80 -0
- package/dist/src/types/vxe-pc-ui/components/colgroup.d.ts +69 -0
- package/dist/src/types/vxe-pc-ui/components/collapse-pane.d.ts +89 -0
- package/dist/src/types/vxe-pc-ui/components/collapse.d.ts +133 -0
- package/dist/src/types/vxe-pc-ui/components/color-picker.d.ts +276 -0
- package/dist/src/types/vxe-pc-ui/components/column.d.ts +850 -0
- package/dist/src/types/vxe-pc-ui/components/context-menu.d.ts +289 -0
- package/dist/src/types/vxe-pc-ui/components/countdown.d.ts +112 -0
- package/dist/src/types/vxe-pc-ui/components/date-panel.d.ts +331 -0
- package/dist/src/types/vxe-pc-ui/components/date-picker.d.ts +370 -0
- package/dist/src/types/vxe-pc-ui/components/date-range-picker.d.ts +367 -0
- package/dist/src/types/vxe-pc-ui/components/drawer.d.ts +311 -0
- package/dist/src/types/vxe-pc-ui/components/empty.d.ts +78 -0
- package/dist/src/types/vxe-pc-ui/components/flow-design.d.ts +85 -0
- package/dist/src/types/vxe-pc-ui/components/flow-view.d.ts +85 -0
- package/dist/src/types/vxe-pc-ui/components/form-design.d.ts +376 -0
- package/dist/src/types/vxe-pc-ui/components/form-gather.d.ts +124 -0
- package/dist/src/types/vxe-pc-ui/components/form-group.d.ts +77 -0
- package/dist/src/types/vxe-pc-ui/components/form-item.d.ts +411 -0
- package/dist/src/types/vxe-pc-ui/components/form-view.d.ts +183 -0
- package/dist/src/types/vxe-pc-ui/components/form.d.ts +487 -0
- package/dist/src/types/vxe-pc-ui/components/gantt-module/gantt-view.d.ts +177 -0
- package/dist/src/types/vxe-pc-ui/components/gantt-module/index.d.ts +1 -0
- package/dist/src/types/vxe-pc-ui/components/gantt-plugins/extend-gantt-chart.d.ts +131 -0
- package/dist/src/types/vxe-pc-ui/components/gantt-plugins/index.d.ts +1 -0
- package/dist/src/types/vxe-pc-ui/components/gantt.d.ts +1240 -0
- package/dist/src/types/vxe-pc-ui/components/grid.d.ts +1248 -0
- package/dist/src/types/vxe-pc-ui/components/icon-picker.d.ts +231 -0
- package/dist/src/types/vxe-pc-ui/components/icon.d.ts +87 -0
- package/dist/src/types/vxe-pc-ui/components/image-group.d.ts +127 -0
- package/dist/src/types/vxe-pc-ui/components/image-preview.d.ts +167 -0
- package/dist/src/types/vxe-pc-ui/components/image.d.ts +173 -0
- package/dist/src/types/vxe-pc-ui/components/input.d.ts +435 -0
- package/dist/src/types/vxe-pc-ui/components/layout-aside.d.ts +88 -0
- package/dist/src/types/vxe-pc-ui/components/layout-body.d.ts +91 -0
- package/dist/src/types/vxe-pc-ui/components/layout-container.d.ts +73 -0
- package/dist/src/types/vxe-pc-ui/components/layout-footer.d.ts +73 -0
- package/dist/src/types/vxe-pc-ui/components/layout-header.d.ts +69 -0
- package/dist/src/types/vxe-pc-ui/components/link.d.ts +111 -0
- package/dist/src/types/vxe-pc-ui/components/list-design.d.ts +190 -0
- package/dist/src/types/vxe-pc-ui/components/list-view.d.ts +199 -0
- package/dist/src/types/vxe-pc-ui/components/list.d.ts +663 -0
- package/dist/src/types/vxe-pc-ui/components/loading.d.ts +103 -0
- package/dist/src/types/vxe-pc-ui/components/mention.d.ts +77 -0
- package/dist/src/types/vxe-pc-ui/components/menu.d.ts +275 -0
- package/dist/src/types/vxe-pc-ui/components/modal.d.ts +554 -0
- package/dist/src/types/vxe-pc-ui/components/notice-bar.d.ts +106 -0
- package/dist/src/types/vxe-pc-ui/components/number-input.d.ts +320 -0
- package/dist/src/types/vxe-pc-ui/components/optgroup.d.ts +88 -0
- package/dist/src/types/vxe-pc-ui/components/option.d.ts +103 -0
- package/dist/src/types/vxe-pc-ui/components/pager.d.ts +335 -0
- package/dist/src/types/vxe-pc-ui/components/password-input.d.ts +142 -0
- package/dist/src/types/vxe-pc-ui/components/print-page-break.d.ts +69 -0
- package/dist/src/types/vxe-pc-ui/components/print.d.ts +206 -0
- package/dist/src/types/vxe-pc-ui/components/pulldown.d.ts +239 -0
- package/dist/src/types/vxe-pc-ui/components/radio-button.d.ts +118 -0
- package/dist/src/types/vxe-pc-ui/components/radio-group.d.ts +153 -0
- package/dist/src/types/vxe-pc-ui/components/radio.d.ts +134 -0
- package/dist/src/types/vxe-pc-ui/components/rate.d.ts +88 -0
- package/dist/src/types/vxe-pc-ui/components/result.d.ts +84 -0
- package/dist/src/types/vxe-pc-ui/components/row.d.ts +79 -0
- package/dist/src/types/vxe-pc-ui/components/segmented.d.ts +123 -0
- package/dist/src/types/vxe-pc-ui/components/select.d.ts +556 -0
- package/dist/src/types/vxe-pc-ui/components/slider.d.ts +126 -0
- package/dist/src/types/vxe-pc-ui/components/split-pane.d.ts +133 -0
- package/dist/src/types/vxe-pc-ui/components/split.d.ts +312 -0
- package/dist/src/types/vxe-pc-ui/components/splitter-panel.d.ts +105 -0
- package/dist/src/types/vxe-pc-ui/components/splitter.d.ts +293 -0
- package/dist/src/types/vxe-pc-ui/components/steps.d.ts +68 -0
- package/dist/src/types/vxe-pc-ui/components/switch.d.ts +133 -0
- package/dist/src/types/vxe-pc-ui/components/tab-pane.d.ts +114 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/custom.d.ts +123 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/edit.d.ts +243 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/export.d.ts +96 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/filter.d.ts +140 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/index.d.ts +7 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/keyboard.d.ts +26 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/menu.d.ts +28 -0
- package/dist/src/types/vxe-pc-ui/components/table-module/validator.d.ts +53 -0
- package/dist/src/types/vxe-pc-ui/components/table-plugins/extend-cell-area.d.ts +781 -0
- package/dist/src/types/vxe-pc-ui/components/table-plugins/extend-pivot-table.d.ts +58 -0
- package/dist/src/types/vxe-pc-ui/components/table-plugins/filters-combination.d.ts +15 -0
- package/dist/src/types/vxe-pc-ui/components/table-plugins/filters-complex-input.d.ts +9 -0
- package/dist/src/types/vxe-pc-ui/components/table-plugins/index.d.ts +4 -0
- package/dist/src/types/vxe-pc-ui/components/table-select.d.ts +226 -0
- package/dist/src/types/vxe-pc-ui/components/table-transfer.d.ts +84 -0
- package/dist/src/types/vxe-pc-ui/components/table.d.ts +7688 -0
- package/dist/src/types/vxe-pc-ui/components/tabs.d.ts +332 -0
- package/dist/src/types/vxe-pc-ui/components/tag.d.ts +114 -0
- package/dist/src/types/vxe-pc-ui/components/text-ellipsis.d.ts +112 -0
- package/dist/src/types/vxe-pc-ui/components/text.d.ts +122 -0
- package/dist/src/types/vxe-pc-ui/components/textarea.d.ts +268 -0
- package/dist/src/types/vxe-pc-ui/components/timeline-item.d.ts +75 -0
- package/dist/src/types/vxe-pc-ui/components/timeline.d.ts +77 -0
- package/dist/src/types/vxe-pc-ui/components/tip.d.ts +83 -0
- package/dist/src/types/vxe-pc-ui/components/toolbar.d.ts +336 -0
- package/dist/src/types/vxe-pc-ui/components/tooltip.d.ts +196 -0
- package/dist/src/types/vxe-pc-ui/components/tour.d.ts +77 -0
- package/dist/src/types/vxe-pc-ui/components/transfer.d.ts +84 -0
- package/dist/src/types/vxe-pc-ui/components/tree-select.d.ts +376 -0
- package/dist/src/types/vxe-pc-ui/components/tree.d.ts +1000 -0
- package/dist/src/types/vxe-pc-ui/components/upload.d.ts +518 -0
- package/dist/src/types/vxe-pc-ui/components/watermark.d.ts +120 -0
- package/dist/src/types/vxe-pc-ui/handles/form-design.d.ts +50 -0
- package/dist/src/types/vxe-pc-ui/handles/index.d.ts +3 -0
- package/dist/src/types/vxe-pc-ui/handles/list-design.d.ts +2 -0
- package/dist/src/types/vxe-pc-ui/handles/table.d.ts +15 -0
- package/dist/src/types/vxe-pc-ui/index.d.ts +8 -0
- package/dist/src/types/vxe-pc-ui/ui/commands.d.ts +57 -0
- package/dist/src/types/vxe-pc-ui/ui/formats.d.ts +62 -0
- package/dist/src/types/vxe-pc-ui/ui/global-config.d.ts +258 -0
- package/dist/src/types/vxe-pc-ui/ui/global-icon.d.ts +311 -0
- package/dist/src/types/vxe-pc-ui/ui/hooks.d.ts +13 -0
- package/dist/src/types/vxe-pc-ui/ui/index.d.ts +98 -0
- package/dist/src/types/vxe-pc-ui/ui/interceptor.d.ts +52 -0
- package/dist/src/types/vxe-pc-ui/ui/menus.d.ts +89 -0
- package/dist/src/types/vxe-pc-ui/ui/renderer.d.ts +1041 -0
- package/dist/src/types/vxe-pc-ui/ui/validators.d.ts +38 -0
- package/dist/src/types/vxe-pc-ui-shim.d.ts +43 -0
- package/dist/src/utils/AxiosConfig.d.ts +2 -0
- package/dist/src/utils/AxiosConfig.js +1 -0
- package/dist/src/utils/FrameworkUtils.d.ts +58 -0
- package/dist/src/utils/FrameworkUtils.js +1 -0
- package/dist/src/utils/applyObjectHasOwnPolyfill.d.ts +2 -0
- package/dist/src/utils/applyObjectHasOwnPolyfill.js +1 -0
- package/dist/src/utils/buildUploadHeaders.d.ts +23 -0
- package/dist/src/utils/buildUploadHeaders.js +1 -0
- package/dist/src/utils/commonUtils.d.ts +71 -0
- package/dist/src/utils/commonUtils.js +1 -0
- package/dist/src/utils/docxPreviewUtil.d.ts +10 -0
- package/dist/src/utils/docxPreviewUtil.js +1 -0
- package/dist/src/utils/encrypt.d.ts +5 -0
- package/dist/src/utils/encrypt.js +1 -0
- package/dist/src/utils/excelPreviewUtil.d.ts +41 -0
- package/dist/src/utils/excelPreviewUtil.js +1 -0
- package/dist/src/utils/modules.d.ts +8 -0
- package/dist/src/utils/modules.js +2 -0
- package/dist/src/utils/officePreviewUtil.d.ts +52 -0
- package/dist/src/utils/officePreviewUtil.js +1 -0
- package/dist/src/utils/patchWujiePopperCoordinates.d.ts +2 -0
- package/dist/src/utils/patchWujiePopperCoordinates.js +13 -0
- package/dist/src/utils/pdfSearchUtil.d.ts +30 -0
- package/dist/src/utils/pdfSearchUtil.js +1 -0
- package/dist/src/utils/request.d.ts +27 -0
- package/dist/src/utils/request.js +1 -0
- package/dist/src/utils/routeMetaParams.d.ts +16 -0
- package/dist/src/utils/routeMetaParams.js +1 -0
- package/dist/src/utils/toSameOriginFileUrl.d.ts +5 -0
- package/dist/src/utils/toSameOriginFileUrl.js +1 -0
- package/dist/src/utils/tree.d.ts +8 -0
- package/dist/src/utils/tree.js +1 -0
- package/dist/src/utils/uploadAccept.d.ts +11 -0
- package/dist/src/utils/uploadAccept.js +1 -0
- package/dist/src/utils/userSessionStorage.d.ts +5 -0
- package/dist/src/utils/userSessionStorage.js +1 -0
- package/dist/styles/core.css +1 -0
- package/dist/styles/element-ui.css +1 -0
- package/dist/vite/highlightJsLibVirtual.d.ts +2 -0
- package/dist/vite/highlightJsLibVirtual.js +1 -0
- package/dist/vite/nodeModulesResolve.d.ts +13 -0
- package/dist/vite/nodeModulesResolve.js +1 -0
- package/dist/vite/projectRoot.d.ts +3 -0
- package/dist/vite/projectRoot.js +1 -0
- package/dist/vite/tiptapUmoResolve.d.ts +4 -0
- package/dist/vite/tiptapUmoResolve.js +1 -0
- package/dist/vite/tiptapVueRendererFix.d.ts +4 -0
- package/dist/vite/tiptapVueRendererFix.js +9 -0
- package/dist/vite/umoCjsVirtual.d.ts +2 -0
- package/dist/vite/umoCjsVirtual.js +5 -0
- package/dist/vite/umoIntegration.d.ts +18 -0
- package/dist/vite/umoIntegration.js +1 -0
- package/dist/vite/yjsPeerResolve.d.ts +3 -0
- package/dist/vite/yjsPeerResolve.js +1 -0
- package/package.json +222 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as v,ref as h,watch as Be,nextTick as y,resolveComponent as o,openBlock as e,createBlock as n,withCtx as g,createElementVNode as _,createElementBlock as m,unref as u,isRef as Ee,Fragment as c,renderList as Ne,createVNode as a,createCommentVNode as t,renderSlot as i}from"vue";import{u as Re}from"./select-CVk2bhdF.js";import{_ as Se}from"./_plugin-vue_export-helper-DlAUqK2U.js";const Ie={class:"umo-classic-menu"},Ae={key:0,class:"umo-virtual-group"},Fe={class:"umo-virtual-group"},Le={class:"umo-virtual-group"},Oe={class:"umo-virtual-group"},Te={class:"umo-virtual-group"},Ue={class:"umo-virtual-group"},De={class:"virtual-group is-slot"},Ge={class:"umo-virtual-group"},He={class:"umo-virtual-group"},Je={class:"umo-virtual-group"},Ke={class:"umo-virtual-group"},Pe={class:"umo-virtual-group"},Qe={class:"virtual-group is-slot"},We={class:"umo-virtual-group"},Xe={class:"umo-virtual-group"},Ye={class:"umo-virtual-group"},Ze={class:"umo-virtual-group"},ot={class:"umo-virtual-group"},et={class:"umo-virtual-group"},tt={class:"umo-virtual-group"},nt={class:"umo-virtual-group"},st={class:"virtual-group is-slot"},at={class:"umo-virtual-group"},_t={class:"umo-virtual-group"},rt={class:"umo-virtual-group"},lt={class:"virtual-group is-slot"},ut={class:"umo-virtual-group"},mt={class:"umo-virtual-group"},ct={class:"virtual-group is-slot"},it={class:"umo-virtual-group"},bt={class:"umo-virtual-group"},pt={class:"umo-virtual-group"},dt={class:"umo-virtual-group"},vt={class:"virtual-group is-slot"},gt={class:"umo-virtual-group"},ft={class:"umo-virtual-group"},kt={class:"virtual-group is-slot"},ht={__name:"classic",props:{menus:{type:Array,default:()=>[]},currentMenu:{type:String,default:""}},emits:["menu-change"],setup(p,{emit:w}){const x=p,{selectVisible:z}=Re(),M=w,V=v("container"),q=v("options"),f=v("page"),s=r=>q.value.disableExtensions.includes(r);let l=h("");Be(()=>x.currentMenu,async r=>{l.value=r,await y(),d.value?.update()},{immediate:!0});const d=h(null),$=async r=>{M("menu-change",r),await y(),d.value?.update()};return(r,k)=>{const C=o("icon"),j=o("t-option"),B=o("t-select"),E=o("menus-toolbar-base-undo"),N=o("menus-toolbar-base-redo"),R=o("menus-toolbar-base-format-painter"),S=o("menus-toolbar-base-clear-format"),I=o("menus-toolbar-base-heading"),A=o("menus-toolbar-base-font-family"),F=o("menus-toolbar-base-font-size"),L=o("menus-toolbar-base-word-wrap"),O=o("menus-toolbar-base-bold"),T=o("menus-toolbar-base-italic"),U=o("menus-toolbar-base-underline"),D=o("menus-toolbar-base-strike"),G=o("menus-toolbar-base-subscript"),H=o("menus-toolbar-base-superscript"),J=o("menus-toolbar-base-color"),K=o("menus-toolbar-base-background-color"),P=o("menus-toolbar-base-highlight"),Q=o("menus-toolbar-base-letter-spacing"),W=o("menus-toolbar-base-ordered-list"),X=o("menus-toolbar-base-bullet-list"),Y=o("menus-toolbar-base-task-list"),Z=o("menus-toolbar-base-indent"),oo=o("menus-toolbar-base-outdent"),eo=o("menus-toolbar-base-line-height"),to=o("menus-toolbar-base-margin"),no=o("menus-toolbar-base-align-dropdown"),so=o("menus-toolbar-base-code"),ao=o("menus-toolbar-base-quote"),_o=o("menus-toolbar-base-select-all"),ro=o("menus-toolbar-base-markdown"),lo=o("menus-toolbar-base-search-replace"),uo=o("menus-toolbar-base-print"),mo=o("menus-toolbar-insert-link"),co=o("menus-toolbar-insert-image"),io=o("menus-toolbar-insert-video"),bo=o("menus-toolbar-insert-audio"),po=o("menus-toolbar-insert-file"),vo=o("menus-toolbar-insert-text-box"),go=o("menus-toolbar-insert-details"),fo=o("menus-toolbar-insert-code-block"),ko=o("menus-toolbar-insert-symbol"),ho=o("menus-toolbar-insert-chinese-date"),yo=o("menus-toolbar-insert-emoji"),wo=o("menus-toolbar-insert-tag"),xo=o("menus-toolbar-insert-columns"),zo=o("menus-toolbar-insert-callout"),Mo=o("menus-toolbar-insert-mention"),Vo=o("menus-toolbar-insert-option-box"),qo=o("menus-toolbar-insert-hard-break"),$o=o("menus-toolbar-insert-hr"),Co=o("menus-toolbar-insert-bookmark"),jo=o("menus-toolbar-insert-footnote"),Bo=o("menus-toolbar-insert-toc"),Eo=o("menus-toolbar-insert-template"),No=o("menus-toolbar-insert-web-page"),Ro=o("menus-toolbar-table-insert"),So=o("menus-toolbar-table-fix"),Io=o("menus-toolbar-table-cells-align"),Ao=o("menus-toolbar-table-cells-background"),Fo=o("menus-toolbar-table-add-row-before"),Lo=o("menus-toolbar-table-add-row-after"),Oo=o("menus-toolbar-table-add-column-before"),To=o("menus-toolbar-table-add-column-after"),Uo=o("menus-toolbar-table-delete-row"),Do=o("menus-toolbar-table-delete-column"),Go=o("menus-toolbar-table-merge-cells"),Ho=o("menus-toolbar-table-split-cell"),Jo=o("menus-toolbar-table-toggle-header-row"),Ko=o("menus-toolbar-table-toggle-header-column"),Po=o("menus-toolbar-table-toggle-header-cell"),Qo=o("menus-toolbar-table-next-cell"),Wo=o("menus-toolbar-table-previous-cell"),Xo=o("menus-toolbar-table-delete"),Yo=o("menus-toolbar-tools-qrcode"),Zo=o("menus-toolbar-tools-barcode"),oe=o("menus-toolbar-tools-signature"),ee=o("menus-toolbar-tools-math"),te=o("menus-toolbar-tools-diagrams"),ne=o("menus-toolbar-tools-echarts"),se=o("menus-toolbar-tools-mermaid"),ae=o("menus-toolbar-tools-chinese-case"),_e=o("menus-toolbar-page-margin"),re=o("menus-toolbar-page-size"),le=o("menus-toolbar-page-orientation"),ue=o("menus-toolbar-page-break"),me=o("menus-toolbar-page-break-marks"),ce=o("menus-toolbar-page-line-number"),ie=o("menus-toolbar-page-watermark"),be=o("menus-toolbar-page-background"),pe=o("menus-toolbar-view-toc"),de=o("menus-toolbar-view-fullscreen"),ve=o("menus-toolbar-view-preview"),ge=o("menus-toolbar-view-page"),fe=o("menus-toolbar-view-web"),ke=o("menus-toolbar-view-zoom"),he=o("menus-toolbar-view-zoom-original"),ye=o("menus-toolbar-view-zoom-auto"),we=o("menus-toolbar-view-skin"),xe=o("menus-toolbar-view-theme"),ze=o("menus-toolbar-view-locale"),Me=o("menus-toolbar-export-image"),Ve=o("menus-toolbar-export-pdf"),qe=o("menus-toolbar-export-text"),$e=o("menus-toolbar-export-share"),Ce=o("menus-toolbar-export-embed"),je=o("toolbar-scrollable");return e(),n(je,{ref_key:"scrollableRef",ref:d,class:"umo-scrollable-container"},{default:g(()=>[_("div",Ie,[p.menus.length>1?(e(),m("div",Ae,[u(z)?(e(),n(B,{key:0,modelValue:u(l),"onUpdate:modelValue":k[0]||(k[0]=b=>Ee(l)?l.value=b:l=b),"popup-props":{destroyOnClose:!0,attach:u(V)},size:"small","auto-width":"",borderless:"",onChange:$},{prefixIcon:g(()=>[a(C,{name:"menu"})]),default:g(()=>[(e(!0),m(c,null,Ne(p.menus,b=>(e(),n(j,{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","popup-props"])):t("v-if",!0)])):t("v-if",!0),u(l)==="base"?(e(),m(c,{key:1},[_("div",Fe,[a(E),a(N),a(R),a(S)]),_("div",Le,[a(I),a(A,{borderless:""}),a(F,{borderless:""}),a(L),a(O),a(T),a(U),a(D),a(G),a(H),a(J),a(K),s("highlight")?t("v-if",!0):(e(),n(P,{key:0})),a(Q)]),_("div",Oe,[a(W),a(X),s("task-list")?t("v-if",!0):(e(),n(Y,{key:0})),a(Z),a(oo),s("line-height")?t("v-if",!0):(e(),n(eo,{key:1})),s("margin")?t("v-if",!0):(e(),n(to,{key:2})),a(no),s("code")?t("v-if",!0):(e(),n(so,{key:3})),s("quote")?t("v-if",!0):(e(),n(ao,{key:4})),s("select-all")?t("v-if",!0):(e(),n(_o,{key:5}))]),_("div",Te,[s("markdown")?t("v-if",!0):(e(),n(ro,{key:0})),a(lo)]),_("div",Ue,[s("print")?t("v-if",!0):(e(),n(uo,{key:0}))]),_("div",De,[i(r.$slots,"toolbar_base",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0),u(l)==="insert"?(e(),m(c,{key:2},[_("div",Ge,[s("link")?t("v-if",!0):(e(),n(mo,{key:0})),s("image")?t("v-if",!0):(e(),n(co,{key:1})),s("video")?t("v-if",!0):(e(),n(io,{key:2})),s("audio")?t("v-if",!0):(e(),n(bo,{key:3})),s("file")?t("v-if",!0):(e(),n(po,{key:4}))]),_("div",He,[s("text-box")?t("v-if",!0):(e(),n(vo,{key:0})),s("details")?t("v-if",!0):(e(),n(go,{key:1})),s("code-block")?t("v-if",!0):(e(),n(fo,{key:2})),s("symbol")?t("v-if",!0):(e(),n(ko,{key:3})),s("chinese-date")?t("v-if",!0):(e(),n(ho,{key:4})),s("emoji")?t("v-if",!0):(e(),n(yo,{key:5}))]),_("div",Je,[s("tag")?t("v-if",!0):(e(),n(wo,{key:0})),s("columns")?t("v-if",!0):(e(),n(xo,{key:1})),s("callout")?t("v-if",!0):(e(),n(zo,{key:2})),s("mention")?t("v-if",!0):(e(),n(Mo,{key:3})),s("option-box")?t("v-if",!0):(e(),n(Vo,{key:4}))]),_("div",Ke,[s("hard-break")?t("v-if",!0):(e(),n(qo,{key:0})),s("hr")?t("v-if",!0):(e(),n($o,{key:1})),s("bookmark")?t("v-if",!0):(e(),n(Co,{key:2})),s("footnote")?t("v-if",!0):(e(),n(jo,{key:3})),s("toc")?t("v-if",!0):(e(),n(Bo,{key:4}))]),_("div",Pe,[s("template")?t("v-if",!0):(e(),n(Eo,{key:0})),s("web-page")?t("v-if",!0):(e(),n(No,{key:1}))]),_("div",Qe,[i(r.$slots,"toolbar_insert",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0),u(l)==="table"?(e(),m(c,{key:3},[_("div",We,[a(Ro),a(So)]),_("div",Xe,[a(Io),a(Ao),t(" <menus-toolbar-table-border-color /> ")]),_("div",Ye,[a(Fo,{huge:!1}),a(Lo,{huge:!1}),a(Oo,{huge:!1}),a(To,{huge:!1})]),_("div",Ze,[a(Uo,{huge:!1}),a(Do,{huge:!1})]),_("div",ot,[a(Go,{huge:!1}),a(Ho,{huge:!1})]),_("div",et,[a(Jo,{huge:!1}),a(Ko,{huge:!1}),a(Po,{huge:!1})]),_("div",tt,[a(Qo,{huge:!1}),a(Wo,{huge:!1})]),_("div",nt,[a(Xo)]),_("div",st,[i(r.$slots,"toolbar_table",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0),u(l)==="tools"?(e(),m(c,{key:4},[_("div",at,[s("qrcode")?t("v-if",!0):(e(),n(Yo,{key:0})),s("barcode")?t("v-if",!0):(e(),n(Zo,{key:1})),s("signature")?t("v-if",!0):(e(),n(oe,{key:2}))]),_("div",_t,[s("math")?t("v-if",!0):(e(),n(ee,{key:0})),s("diagrams")?t("v-if",!0):(e(),n(te,{key:1})),s("echarts")?t("v-if",!0):(e(),n(ne,{key:2})),t(` <menus-toolbar-tools-mind-map v-if="!disableMenu('mind-map')" /> `),s("mermaid")?t("v-if",!0):(e(),n(se,{key:3}))]),_("div",rt,[s("chinese-case")?t("v-if",!0):(e(),n(ae,{key:0}))]),_("div",lt,[i(r.$slots,"toolbar_tools",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0),u(l)==="page"?(e(),m(c,{key:5},[_("div",ut,[a(_e),u(f).layout==="page"?(e(),n(re,{key:0})):t("v-if",!0),u(f).layout==="page"?(e(),n(le,{key:1})):t("v-if",!0)]),_("div",mt,[a(ue),a(me),a(ce),s("watermark")?t("v-if",!0):(e(),n(ie,{key:0})),s("background")?t("v-if",!0):(e(),n(be,{key:1}))]),_("div",ct,[i(r.$slots,"toolbar_page",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0),u(l)==="view"?(e(),m(c,{key:6},[_("div",it,[s("toc")?t("v-if",!0):(e(),n(pe,{key:0})),s("fullscreen")?t("v-if",!0):(e(),n(de,{key:1})),s("preview")?t("v-if",!0):(e(),n(ve,{key:2}))]),_("div",bt,[s("layout-page")?t("v-if",!0):(e(),n(ge,{key:0})),s("layout-web")?t("v-if",!0):(e(),n(fe,{key:1}))]),_("div",pt,[s("zoom")?t("v-if",!0):(e(),n(ke,{key:0})),s("zoom-original")?t("v-if",!0):(e(),n(he,{key:1})),s("zoom-auto")?t("v-if",!0):(e(),n(ye,{key:2}))]),_("div",dt,[s("skin")?t("v-if",!0):(e(),n(we,{key:0})),s("theme")?t("v-if",!0):(e(),n(xe,{key:1})),s("locale")?t("v-if",!0):(e(),n(ze,{key:2}))]),_("div",vt,[i(r.$slots,"toolbar_view",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0),u(l)==="export"?(e(),m(c,{key:7},[_("div",gt,[s("export-image")?t("v-if",!0):(e(),n(Me,{key:0})),s("export-pdf")?t("v-if",!0):(e(),n(Ve,{key:1})),s("export-text")?t("v-if",!0):(e(),n(qe,{key:2}))]),_("div",ft,[s("share")?t("v-if",!0):(e(),n($e,{key:0})),s("embed")?t("v-if",!0):(e(),n(Ce,{key:1}))]),_("div",kt,[i(r.$slots,"toolbar_export",{toolbarMode:"classic"},void 0,!0)])],64)):t("v-if",!0)])]),_:3},512)}}},zt=Se(ht,[["__scopeId","data-v-d39ee1f1"]]);export{zt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as c,openBlock as m,createBlock as s,unref as e}from"vue";import{t as u}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const d={__name:"clear-format",setup(a){const o=r("editor");return(i,t)=>{const n=c("menus-button");return m(),s(n,{ico:"clear-format",text:e(u)("base.clearFormat"),"hide-text":"",onMenuClick:t[0]||(t[0]=l=>e(o)?.chain().focus().unsetAllMarks().run())},null,8,["text"])}}};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as n,resolveComponent as a,openBlock as i,createBlock as r,unref as o}from"vue";import{t as m}from"./i18n-hQyxfD7_.js";import{g as u}from"./selection-BIZq2qs_.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@tiptap/pm/state";const d={__name:"clickable",setup(s){const e=n("editor"),c=()=>{const t=e.value?u(e.value):null;t&&e.value?.commands.setIframe({...t?.attrs,clickable:!t?.attrs?.clickable})};return(t,b)=>{const l=a("menus-button");return i(),r(l,{"menu-active":o(e)?.getAttributes("iframe")?.clickable,ico:"clickable",text:o(m)("bubbleMenu.webpage.clickable"),onMenuClick:c},null,8,["menu-active","text"])}}};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as c,resolveComponent as r,openBlock as i,createBlock as u,unref as e}from"vue";import{t as s}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const b={__name:"code",setup(d){const t=c("editor");return(m,o)=>{const n=r("menus-button");return i(),u(n,{ico:"code",text:e(s)("base.code"),shortcut:"Ctrl+E","hide-text":"","menu-active":e(t)?.isActive("code"),disabled:!e(t)?.can().chain().focus().toggleCode().run(),onMenuClick:o[0]||(o[0]=a=>e(t)?.chain().focus().toggleCode().run())},null,8,["text","menu-active","disabled"])}}};export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as c,openBlock as u,createBlock as s,unref as t}from"vue";import{t as l}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const a={__name:"code-block",setup(i){const e=r("editor");return(m,o)=>{const n=c("menus-button");return u(),s(n,{ico:"code-block",text:t(l)("insert.codeBlock"),shortcut:"Ctrl+Alt+C",huge:"",onMenuClick:o[0]||(o[0]=p=>t(e)?.chain().focus().setCodeBlock().run())},null,8,["text"])}}};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as f,ref as B,watch as j,resolveComponent as m,openBlock as c,createElementBlock as s,createElementVNode as t,createVNode as a,toDisplayString as p,unref as l,Fragment as h,renderList as g,normalizeStyle as b,createCommentVNode as F,withCtx as E,normalizeClass as L}from"vue";import{t as _}from"./i18n-hQyxfD7_.js";import{u as U}from"./state-X-ofkjhe.js";import{_ as q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@vueuse/core";const G={class:"umo-color-picker-container"},H={class:"umo-color-picker-default-button"},J={class:"umo-color-picker-group"},K=["onClick"],M=["textContent"],O={class:"umo-color-picker-group"},Q=["onClick"],R=["textContent"],T={key:1,class:"umo-color-picker-group"},W=["onClick"],X={class:"umo-color-picker-more-menu"},Y=["textContent"],Z={class:"umo-color-picker-more-arrow"},oo={__name:"color",props:{defaultColor:{type:String,default:"#000"}},emits:["change"],setup(A,{emit:P}){const $=A,x=P,z=f("container"),D=f("editor"),y=f("options"),r=U("recent",y),S=["#B12318","#EB3323","#F6C143","#FFFE55","#A0CD63","#4FAD5B","#4CAFEA","#2D70BA","#06215C","#68389B"],k=B($.defaultColor),v=B(!1),V=(n,e)=>{e&&e.trigger!=="palette-saturation-brightness"||(r.value.colors.forEach((C,d)=>{C===n&&r.value.colors.splice(d,1)}),r.value.colors.unshift(n),r.value.colors.length>10&&r.value.colors.splice(10,1),x("change",n))};j(()=>v.value,n=>{n&&D.value?.commands.focus(void 0,{scrollIntoView:!1})});const u=n=>{V(n),x("change",n)};return(n,e)=>{const C=m("t-button"),d=m("icon"),N=m("t-color-picker-panel"),I=m("t-popup");return c(),s("div",G,[t("div",H,[a(C,{theme:"default",variant:"outline",size:"small",block:"",onClick:e[0]||(e[0]=o=>u(k.value)),textContent:p(l(_)("colorPicker.default"))},null,8,["textContent"])]),t("div",J,[(c(!0),s(h,null,g(l(y).dicts?.colors,(o,i)=>(c(),s("div",{key:i,class:"umo-color-picker-item",style:b({backgroundColor:o}),onClick:w=>u(o)},null,12,K))),128))]),t("div",{class:"umo-color-picker-group-title",textContent:p(l(_)("colorPicker.standard"))},null,8,M),t("div",O,[(c(),s(h,null,g(S,(o,i)=>t("div",{key:i,class:"umo-color-picker-item",style:b({backgroundColor:o}),onClick:w=>u(o)},null,12,Q)),64))]),l(r).colors.length>0?(c(),s("div",{key:0,class:"umo-color-picker-group-title",textContent:p(l(_)("colorPicker.recent"))},null,8,R)):F("v-if",!0),l(r).colors.length>0?(c(),s("div",T,[(c(!0),s(h,null,g(l(r).colors,(o,i)=>(c(),s("div",{key:i,class:"umo-color-picker-item",style:b({backgroundColor:o}),onClick:w=>u(o)},null,12,W))),128))])):F("v-if",!0),e[3]||(e[3]=t("div",{class:"umo-color-picker-divider"},null,-1)),a(I,{attach:l(z),trigger:"click",placement:"right-bottom",onVisibleChange:e[2]||(e[2]=o=>v.value=o)},{content:E(()=>[a(N,{modelValue:k.value,"onUpdate:modelValue":e[1]||(e[1]=o=>k.value=o),size:"small","color-modes":["monochrome"],"swatch-colors":[],"enable-alpha":"",onChange:V},null,8,["modelValue"])]),default:E(()=>[t("div",{class:L(["umo-color-picker-more",{active:v.value}])},[t("div",X,[a(d,{name:"palette-color"}),t("span",{textContent:p(l(_)("colorPicker.more"))},null,8,Y)]),t("div",Z,[a(d,{name:"arrow-down"})])],2)]),_:1},8,["attach"])])}}},io=q(oo,[["__scopeId","data-v-4d4a08b7"]]);export{io as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as s,ref as b,resolveComponent as a,openBlock as x,createBlock as h,unref as e,withCtx as p,createElementVNode as y,normalizeStyle as S,createVNode as k}from"vue";import{t as P}from"./i18n-hQyxfD7_.js";import{r as T,F as i}from"./editor-scroll-CH3ZXFEC.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const O={__name:"color",props:{text:{type:String,default:""},modeless:{type:Boolean,default:!1},defaultColor:{type:String,default:"#000"}},emits:["change"],setup(r,{emit:d}){const f=r,m=d,{popupVisible:l,togglePopup:g}=usePopup(),o=s("editor"),_=s("container");let t=b();const u=n=>{if(t.value=n,l.value=!1,f.modeless){m("change",t.value);return}T(_,()=>{n===""?o.value?.chain().focus(void 0,i).unsetColor().run():o.value?.chain().focus(void 0,i).setColor(n).run()})};return(n,c)=>{const C=a("picker-color"),v=a("menus-button");return x(),h(v,{ico:"color",text:r.text||e(P)("base.color"),"menu-type":"popup","popup-handle":"arrow","hide-text":"","popup-visible":e(l),disabled:!e(o)?.can().chain().focus().setColor().run(),onTogglePopup:e(g),onMenuClick:c[0]||(c[0]=V=>u(e(t)))},{content:p(()=>[k(C,{"default-color":r.defaultColor,onChange:u},null,8,["default-color"])]),default:p(()=>[y("div",{class:"umo-current-color",style:S({background:e(o)?.getAttributes("textStyle")?.color||e(t)})},null,4)]),_:1},8,["text","popup-visible","disabled","onTogglePopup"])}}},j=B(O,[["__scopeId","data-v-82d64ba1"]]);export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as a,resolveComponent as r,openBlock as i,createBlock as m,unref as t,withCtx as _,createVNode as g}from"vue";import{t as b}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const k={__name:"color",emits:["change"],setup(f,{emit:d}){const{popupVisible:e,togglePopup:u}=usePopup(),n=a("editor"),l=o=>{e.value=!1;const p=o===""?null:o;n.value?.state?.selection?.$from?.node()&&n.value?.commands.updateAttributes("tag",{type:"custom",color:p})};return(o,p)=>{const c=r("picker-color"),s=r("menus-button");return i(),m(s,{ico:"color",text:t(b)("bubbleMenu.tag.color"),"menu-type":"popup",huge:"","popup-visible":t(e),onTogglePopup:t(u)},{content:_(()=>[g(c,{"default-color":"transparent",onChange:l})]),_:1},8,["text","popup-visible","onTogglePopup"])}}};export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as g,ref as C,watch as h,resolveComponent as b,openBlock as l,createBlock as x,unref as t,withCtx as k,createElementVNode as i,toDisplayString as r,createElementBlock as P,Fragment as y,renderList as B,normalizeClass as w}from"vue";import{t as m}from"./i18n-hQyxfD7_.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const M={class:"umo-columns-title"},T={class:"umo-columns-container"},V=["onMouseenter","onClick"],$={__name:"columns",setup(j){const{popupVisible:c,togglePopup:p}=usePopup(),a=g("editor");let u=C(0);const _=[1,2,3,4,5,6],d=e=>{u.value=e},v=e=>{let n='<div class="umo-node-column-container">';for(let s=0;s<e;s++)n+='<div class="prosemirror-column"><p></p></div>';n+="</div>",a.value?.chain().focus().insertContent(n).run(),c.value=!1};return h(()=>c.value,e=>{e||(u.value=0)}),(e,n)=>{const s=b("menus-button");return l(),x(s,{ico:"columns",text:t(m)("insert.columns.text"),"menu-type":"popup",huge:"","popup-visible":t(c),onTogglePopup:t(p)},{content:k(()=>[i("div",M,r(t(m)("insert.columns.number")),1),i("div",T,[(l(),P(y,null,B(_,o=>i("div",{key:o,class:w(["umo-columns-item",{"umo-columns-item-selected":t(u)>=o}]),onMouseenter:f=>d(o),onClick:f=>v(o)},r(o),43,V)),64))])]),_:1},8,["text","popup-visible","onTogglePopup"])}}},L=E($,[["__scopeId","data-v-5a2ebd09"]]);export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as i,ref as g,resolveComponent as a,openBlock as h,createBlock as S,withCtx as o,createVNode as e,unref as t,createTextVNode as T,toDisplayString as A}from"vue";import{t as u}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const D={__name:"common",props:{node:{type:Object,default:null},pos:{type:Number,default:null}},emits:["dropdown-visible"],setup(m,{emit:r}){const n=m,f=r,_=i("container"),d=i("editor"),b=i("blockMenu");let p=g(!1);const k={attach:`${_} .umo-main-container`,popperOptions:{modifiers:[{name:"offset",options:{offset:[2,0]}}]},onVisibleChange(s){b.value=s,p.value=s,f("dropdown-visible",s)}},x=()=>{d.value?.chain().setNodeSelection(n.pos).focus().unsetAllMarks().run()},M=()=>{d.value?.commands.setNodeSelection(n.pos),document.execCommand("copy")},v=()=>{d.value?.commands.setNodeSelection(n.pos),document.execCommand("cut")},C=()=>{d.value?.commands.insertContentAt(n.pos,n.node?.toJSON())},N=()=>{d.value?.chain().setNodeSelection(n.pos).focus().deleteSelection().run()};return(s,O)=>{const l=a("menus-button"),c=a("t-dropdown-item"),w=a("t-dropdown-menu"),y=a("t-dropdown");return h(),S(y,{placement:"bottom-right","overlay-class-name":"umo-block-menu-dropdown",trigger:"click","destroy-on-close":!1,"popup-props":k},{default:o(()=>[e(l,{class:"umo-block-menu-button","menu-active":t(p),ico:"block-menu","hide-text":"",style:{cursor:"grab"}},null,8,["menu-active"]),e(w,null,{default:o(()=>[e(c,{class:"umo-block-menu-group-name",disabled:""},{default:o(()=>[T(A(t(u)("blockMenu.common")),1)]),_:1}),e(c,null,{default:o(()=>[e(l,{ico:"node-clear-format",text:t(u)("blockMenu.clearFormat"),tooltip:!1,onMenuClick:x},null,8,["text"])]),_:1}),e(c,{divider:""},{default:o(()=>[e(l,{ico:"node-duplicate",text:t(u)("blockMenu.duplicate"),tooltip:!1,onMenuClick:C},null,8,["text"])]),_:1}),e(c,null,{default:o(()=>[e(l,{ico:"node-copy",text:t(u)("blockMenu.copy"),tooltip:!1,onMenuClick:M},null,8,["text"])]),_:1}),e(c,null,{default:o(()=>[e(l,{ico:"node-cut",text:t(u)("blockMenu.cut"),tooltip:!1,onMenuClick:v},null,8,["text"])]),_:1}),e(c,{class:"umo-delete-node"},{default:o(()=>[e(l,{ico:"node-delete-2",text:t(u)("blockMenu.delete"),tooltip:!1,onMenuClick:N},null,8,["text"])]),_:1})]),_:1})]),_:1})}}};export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as C,watch as x,nextTick as B,ref as w,resolveComponent as i,openBlock as s,createBlock as d,isRef as L,unref as p,withCtx as a,createCommentVNode as b,createVNode as c,createTextVNode as y}from"vue";import{useVModel as N}from"@vueuse/core";import Q from"../src/api/EmployeeInfoApi.js";import q from"../src/components/business/comp.userForm.vue.js";const M=C({__name:"comp.selectUser",props:{modelValue:{type:Boolean},title:{default:"选择人员"},fetchData:{type:Function,default:Q.getMdmEmployeeListByIds},defalutQueryParam:{default:{}},diagLogLoading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0}},emits:["update:modelValue","update:diagLogLoading","success"],setup(o,{emit:V}){const r=o;x(()=>r.modelValue,l=>{l&&B(()=>{u.value?.resetQuery()})});const m=V,t=N(r,"modelValue",m),u=w(),v=async()=>{await u.value?.confirm()},g=async l=>{m("success",l)};return(l,e)=>{const f=i("el-button"),k=i("el-drawer");return s(),d(k,{modelValue:p(t),"onUpdate:modelValue":e[1]||(e[1]=n=>L(t)?t.value=n:null),title:o.title,size:"850px",onClose:e[2]||(e[2]=n=>t.value=!1)},{footer:a(()=>[c(f,{onClick:e[0]||(e[0]=n=>t.value=!1)},{default:a(()=>[...e[3]||(e[3]=[y("取消",-1)])]),_:1}),c(f,{type:"primary",onClick:v},{default:a(()=>[...e[4]||(e[4]=[y("确定",-1)])]),_:1})]),default:a(()=>[p(t)?(s(),d(q,{key:0,ref_key:"ref_form",ref:u,multiple:o.multiple,"fetch-data":o.fetchData,onSuccess:g,"defalut-query-param":o.defalutQueryParam},null,8,["multiple","fetch-data","defalut-query-param"])):b("v-if",!0)]),_:1},8,["modelValue","title"])}}});export{M as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as c,computed as m,resolveComponent as s,openBlock as p,createBlock as v,unref as a}from"vue";import{t as r}from"./i18n-hQyxfD7_.js";import{g as u}from"./selection-BIZq2qs_.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@tiptap/pm/state";const x={__name:"convert",setup(g){const e=c("editor"),o=m(()=>(e.value?u(e.value):null)?.type?.name==="inlineImage"),l=()=>{const t=e.value?u(e.value):null;if(t){const i=t?.type?.name==="inlineImage"?"inlineImage":"image",n=t.attrs||{};!n.error&&n.src&&(e.value?.chain().focus().deleteSelectionNode().setMeta("convert",!0).run(),i==="inlineImage"?e.value?.chain().focus().setImage({...n,equalProportion:!1,inline:!1}).run():e.value?.chain().focus().setInlineImage({...n,inline:!0,equalProportion:!1}).run())}};return(t,i)=>{const n=s("menus-button");return p(),v(n,{ico:"image-inline",text:o.value?a(r)("bubbleMenu.image.convertToNode"):a(r)("bubbleMenu.image.convertToInline"),"menu-active":o.value,onMenuClick:l},null,8,["text","menu-active"])}}};export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as o,resolveComponent as p,openBlock as u,createBlock as m,unref as a,ref as l}from"vue";import{t as n}from"./i18n-hQyxfD7_.js";import{useClipboard as _}from"@vueuse/core";import"@tool-belt/type-predicates";import"vue-i18n";const h={__name:"copy",setup(f){const c=o("container"),r=o("editor"),s=()=>{const{href:t}=r.value.getAttributes("link"),{copy:e}=_({source:l(t)});e(),useMessage("success",{attach:c,content:n("insert.link.copySuccess")})};return(t,e)=>{const i=p("menus-button");return u(),m(i,{ico:"copy",text:a(n)("insert.link.copy"),"hide-text":"",onMenuClick:s},null,8,["text"])}}};export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as R,ref as m,watch as A,onBeforeUnmount as F,resolveComponent as u,openBlock as G,createBlock as H,unref as o,withCtx as l,renderSlot as J,createElementVNode as x,createVNode as n,createTextVNode as v,toDisplayString as f,isRef as I}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const L={class:"umo-preview-countdown"},Q={class:"umo-preview-countdown-title"},W={class:"umo-preview-countdown-input",size:"small"},X={__name:"countdown",props:{visible:{type:Boolean,require:!0}},emits:["countdown-change","exit-preivew","close"],setup(B,{emit:U}){const _=U,b=R("container"),k={modifiers:[{name:"offset",options:{offset:[-10,10]}}]},w=m(null);let c=m(null),d=m(null),p=m(null);const h=m("showEndMessage"),z=[{label:e("preview.countdown.1hour"),value:60},{label:e("preview.countdown.45minutes"),value:45},{label:e("preview.countdown.30minutes"),value:30},{label:e("preview.countdown.15minutes"),value:15},{label:e("preview.countdown.10minutes"),value:10},{label:e("preview.countdown.5minutes"),value:5},{label:e("preview.countdown.custom"),value:null}],N=r=>{d.value=r};let g=m(""),s=null,i=null;const M=()=>{c.value=null,d.value=null,p.value=null,g.value=""},P=async()=>{s&&s.close(),i!==null&&clearInterval(i);const r=(c.value||0)*3600+(d.value||0)*60+(p.value||0);if(r<=0){s=await useMessage("error",{attach:b,content:e("preview.countdown.error")});return}let t=r;i=setInterval(async()=>{if(t<=0){s&&s.close(),M(),i!==null&&clearInterval(i),h.value==="showEndMessage"&&(g.value="",s=await useMessage("error",{attach:b,content:e("preview.countdown.endCountdown"),duration:5e3,closeBtn:!0})),h.value==="exitPreview"&&_("exit-preivew");return}t--,g.value=`${e("preview.countdown.remaining")}: ${String(Math.floor(t/3600)).padStart(2,"0")}:${String(Math.floor(t%3600/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`},1e3),_("close")},T=()=>{i&&clearInterval(i),M(),_("close")};return A(()=>g.value,r=>{_("countdown-change",r)},{immediate:!0}),F(()=>{i!==null&&clearInterval(i),s&&s.close()}),(r,t)=>{const C=u("icon"),q=u("t-select"),V=u("t-form-item"),S=u("t-input-number"),E=u("t-radio"),O=u("t-radio-group"),y=u("t-button"),$=u("t-space"),j=u("t-form"),D=u("t-popup");return G(),H(D,{visible:B.visible,attach:o(b),"z-index":2e3,trigger:"click",placement:"top-left","popper-options":k},{content:l(()=>[x("div",L,[x("div",Q,[n(C,{name:"time"}),v(" "+f(o(e)("preview.countdown.title")),1)]),n(j,{"label-align":"left","label-width":"75px",onSubmit:P},{default:l(()=>[n(V,{label:o(e)("preview.countdown.select"),name:"quickSelect"},{default:l(()=>[n(q,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=a=>w.value=a),options:z,placeholder:o(e)("preview.countdown.selectTip"),"popup-props":{attach:o(b),zIndex:2e3},onChange:N},null,8,["modelValue","placeholder","popup-props"])]),_:1},8,["label"]),n(V,{label:o(e)("preview.countdown.custom"),name:"custom"},{default:l(()=>[x("div",W,[n(S,{modelValue:o(c),"onUpdate:modelValue":t[1]||(t[1]=a=>I(c)?c.value=a:c=a),theme:"normal",align:"center","decimal-places":0,placeholder:o(e)("preview.countdown.hours"),min:0,max:60,step:1,disabled:w.value!==null},null,8,["modelValue","placeholder","disabled"]),n(S,{modelValue:o(d),"onUpdate:modelValue":t[2]||(t[2]=a=>I(d)?d.value=a:d=a),theme:"normal",align:"center","decimal-places":0,placeholder:o(e)("preview.countdown.minutes"),min:0,max:60,step:1,disabled:w.value!==null},null,8,["modelValue","placeholder","disabled"]),n(S,{modelValue:o(p),"onUpdate:modelValue":t[3]||(t[3]=a=>I(p)?p.value=a:p=a),theme:"normal",align:"center","decimal-places":0,placeholder:o(e)("preview.countdown.seconds"),min:0,max:60,step:1,disabled:w.value!==null},null,8,["modelValue","placeholder","disabled"])])]),_:1},8,["label"]),n(V,{label:o(e)("preview.countdown.whenEnd"),name:"endOptions"},{default:l(()=>[n(O,{modelValue:h.value,"onUpdate:modelValue":t[4]||(t[4]=a=>h.value=a),"default-value":"showEndMessage"},{default:l(()=>[n(E,{value:"showEndMessage"},{default:l(()=>[v(f(o(e)("preview.countdown.showEndMessage")),1)]),_:1}),n(E,{value:"exitPreview"},{default:l(()=>[v(f(o(e)("preview.countdown.exitPreview")),1)]),_:1})]),_:1},8,["modelValue"]),t[5]||(t[5]=x("div",null,null,-1))]),_:1},8,["label"]),n(V,null,{default:l(()=>[n($,{size:"small"},{default:l(()=>[n(y,{theme:"primary",type:"submit"},{default:l(()=>[n(C,{name:"time"}),v(" "+f(o(e)("preview.countdown.start")),1)]),_:1}),n(y,{theme:"default",variant:"base",onClick:T},{default:l(()=>[v(f(o(e)("preview.countdown.cancel")),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),default:l(()=>[J(r.$slots,"default",{},void 0,!0)]),_:3},8,["visible","attach"])}}},ne=K(X,[["__scopeId","data-v-51c69860"]]);export{ne as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as a,resolveComponent as s,openBlock as d,createBlock as i,unref as l}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{u as m}from"./dialog-BnThXCWu.js";import"@tool-belt/type-predicates";import"vue-i18n";import"tdesign-vue-next";const C={__name:"delete",setup(u){const t=a("container"),o=a("editor"),c=()=>{const n=m({attach:t,theme:"danger",header:e("table.delete.title"),body:e("table.delete.message"),confirmBtn:{theme:"danger",content:e("table.delete.delete")},onConfirm(){o.value?.chain().focus().deleteTable().run(),useMessage("success",{attach:t,content:e("table.delete.success")}),n.destroy()}})};return(n,b)=>{const r=s("menus-button");return d(),i(r,{ico:"table-delete",text:l(e)("table.delete.text"),huge:"",disabled:!l(o)?.can().deleteTable(),onMenuClick:c},null,8,["text","disabled"])}}};export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as c,openBlock as u,createBlock as l,unref as t}from"vue";import{t as s}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const b={__name:"delete",setup(i){const o=r("editor");return(m,e)=>{const n=c("menus-button");return u(),l(n,{ico:"node-delete",text:t(s)("bubbleMenu.delete"),shortcut:"Backspace",onMenuClick:e[0]||(e[0]=p=>t(o)?.chain().focus().deleteSelectionNode().run())},null,8,["text"])}}};export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as u,openBlock as c,createBlock as l,unref as t}from"vue";import{t as i}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const b={__name:"delete",setup(m){const o=r("editor");return(p,e)=>{const n=u("menus-button");return c(),l(n,{ico:"node-delete",text:t(i)("bubbleMenu.tag.delete"),onMenuClick:e[0]||(e[0]=s=>t(o)?.chain().focus().deleteSelection().run())},null,8,["text"])}}};export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as t,resolveComponent as u,openBlock as i,createBlock as d,unref as o}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{u as p}from"./dialog-BnThXCWu.js";import{u as b}from"./state-X-ofkjhe.js";import"@tool-belt/type-predicates";import"vue-i18n";import"tdesign-vue-next";import"@vueuse/core";const M={__name:"delete-column",setup(C){const n=t("container"),l=t("editor"),c=t("options"),a=b("toolbar",c),m=()=>{const s=p({attach:n,theme:"danger",header:e("table.deleteColumn.title"),body:e("table.deleteColumn.message"),confirmBtn:{theme:"danger",content:e("table.deleteColumn.delete")},onConfirm(){l.value?.chain().focus().deleteColumn().run(),useMessage("success",{attach:n,content:e("table.deleteColumn.success")}),s.destroy()}})};return(s,f)=>{const r=u("menus-button");return i(),d(r,{ico:"table-delete-column",text:o(e)("table.deleteColumn.text"),"hide-text":o(a).mode==="classic",disabled:!o(l)?.can().deleteColumn(),onMenuClick:m},null,8,["text","hide-text","disabled"])}}};export{M as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as t,resolveComponent as d,openBlock as m,createBlock as u,unref as o}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{u as p}from"./dialog-BnThXCWu.js";import{u as b}from"./state-X-ofkjhe.js";import"@tool-belt/type-predicates";import"vue-i18n";import"tdesign-vue-next";import"@vueuse/core";const v={__name:"delete-row",setup(f){const n=t("container"),s=t("editor"),a=t("options"),c=b("toolbar",a),l=()=>{const r=p({attach:n,theme:"danger",header:e("table.deleteRow.title"),body:e("table.deleteRow.message"),confirmBtn:{theme:"danger",content:e("table.deleteRow.delete")},onConfirm(){s.value?.chain().focus().deleteRow().run(),useMessage("success",{attach:n,content:e("table.deleteRow.success")}),r.destroy()}})};return(r,_)=>{const i=d("menus-button");return m(),u(i,{ico:"table-delete-row",text:o(e)("table.deleteRow.text"),"hide-text":o(c).mode==="classic",disabled:!o(s)?.can().deleteRow(),onMenuClick:l},null,8,["text","hide-text","disabled"])}}};export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as s,openBlock as i,createBlock as c,unref as e}from"vue";import{t as m}from"./i18n-hQyxfD7_.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const u={__name:"details",setup(_){const o=r("editor");return(a,t)=>{const n=s("menus-button");return i(),c(n,{ico:"details",text:e(m)("insert.details"),huge:"",onMenuClick:t[0]||(t[0]=l=>e(o)?.chain().focus().setDetails().run())},null,8,["text"])}}},v=p(u,[["__scopeId","data-v-0d72eb6e"]]);export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _=Object.defineProperty;var $=(i,e,t)=>e in i?_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var M=(i,e,t)=>$(i,typeof e!="symbol"?e+"":e,t);import{inject as v,ref as x,watch as k,nextTick as z,resolveComponent as f,openBlock as C,createBlock as L,isRef as S,unref as o,withCtx as E,createVNode as w,createElementBlock as V,createCommentVNode as j,createElementVNode as B,createTextVNode as D,toDisplayString as O}from"vue";import{u as A,t as m}from"./i18n-hQyxfD7_.js";import{s as I}from"./short-id-DJZHbKNv.js";import"@tool-belt/type-predicates";import"vue-i18n";const J={"zh-CN":"zh","en-US":"en"};class F{constructor({domain:e,params:t,container:n}){M(this,"handleMessageEvent",e=>{if(this.frame!==void 0&&e.source===this.frame.contentWindow&&e.data.length>0)try{const t=JSON.parse(e.data);t&&this.handleMessage(t)}catch(t){console.error(t)}});this.frame=void 0,this.container=n,this.domain="https://embed.diagrams.net",this.params={ui:"atlas",proto:"json",libraries:1,configure:1,noSaveBtn:1},this.xml=null,this.format="xmlsvg",this.data=null,this.domain=e||this.domain,this.params={...this.params,...t},this.container=n}edit(e){let t=this.format;return e.substring(0,15)==="data:image/png;"?t="xmlpng":e.substring(0,19)==="data:image/svg+xml;"&&(t="xmlsvg"),this.startEditing(e,t),this}createFrame(){const e=Object.keys(this.params).map(a=>`${a}=${this.params[a]}`).join("&"),{locale:t}=A(),n=J[t.value],r=document.createElement("iframe");return r.setAttribute("class","umo-diagrams-iframe"),r.setAttribute("src",`${this.domain}?${e}&lang=${n}`),r}postMessage(e){this.frame&&this.frame.contentWindow?.postMessage(JSON.stringify(e),"*")}handleMessage(e){e.event==="configure"?this.configureEditor():e.event==="init"?this.initializeEditor():e.event==="save"&&(this.exportData(e.data),this.xml=e.xml,e.exit?e.event="exit":this.postMessage({action:"status",messageKey:"allChangesSaved",modified:!1})),e.event==="exit"&&(this.format!=="xml"&&this.xml&&this.postMessage({action:"export",format:this.format,xml:this.xml,spinKey:"export"}),this.stopEditing())}startEditing(e,t){this.frame||(window.addEventListener("message",this.handleMessageEvent),this.format=t||this.format,this.data=e,this.frame=this.createFrame(),document.querySelector(this.container)?.appendChild(this.frame))}stopEditing(){window.removeEventListener("message",this.handleMessageEvent),this.frame=void 0}initializeEditor(){this.postMessage({action:"load",autosave:0,saveAndExit:"1",modified:"unsavedChanges",xml:this.data})}configureEditor(){this.postMessage({action:"configure",config:this.params.configure})}exportData(e){return e}}const K={key:0,class:"umo-diagrams-loading"},H={__name:"diagrams",props:{content:{type:String,default:""}},setup(i){const e=i,t=v("container"),n=v("editor"),r=v("options");let a=x(!1),u=x(!1);const y=new F({domain:r.value.diagrams?.domain||"",params:r.value.diagrams?.params||{},container:`${t} .umo-diagrams-container`});let c=x(void 0);const b=async d=>{if(d?.type!=="message"||typeof d?.data!="string")return;const{event:s,bounds:g,data:l}=JSON.parse(d.data);if(s==="load"&&(u.value=!1),s==="export"){if(!e.content||e.content&&e.content!==l){const{width:h,height:p}=g;c.value={id:I(10),type:"diagrams",src:l,width:h,height:p,content:l}}a.value=!1;return}s==="exit"&&(a.value=!1)};return k(()=>a.value,async d=>{if(!d){window.removeEventListener("message",b),y.stopEditing(),c.value?.type&&n.value?.chain().focus().setImage(c.value,!!e.content).run();return}await z(),u.value=!0,y.edit(e.content||""),window.addEventListener("message",b),c.value=void 0},{immediate:!0}),(d,s)=>{const g=f("icon"),l=f("t-loading"),h=f("modal"),p=f("menus-button");return C(),L(p,{ico:i.content?"edit":"diagrams",text:i.content?o(m)("tools.diagrams.edit"):o(m)("tools.diagrams.text"),huge:"",onMenuClick:s[1]||(s[1]=N=>S(a)?a.value=!0:a=!0)},{default:E(()=>[w(h,{visible:o(a),footer:!1,"destroy-on-close":"",class:"umo-diagrams-dialog",mode:"full-screen",onClose:s[0]||(s[0]=N=>S(a)?a.value=!1:a=!1)},{header:E(()=>[w(g,{name:"diagrams"}),D(" "+O(i.content?o(m)("tools.diagrams.edit"):o(m)("tools.diagrams.text")),1)]),default:E(()=>[o(u)?(C(),V("div",K,[w(l,{text:o(m)("tools.diagrams.loading"),size:"small"},null,8,["text"])])):j("v-if",!0),s[2]||(s[2]=B("div",{class:"umo-diagrams-container"},null,-1))]),_:1},8,["visible"])]),_:1},8,["ico","text"])}}};export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DialogPlugin as r}from"tdesign-vue-next";import{t as n}from"./i18n-hQyxfD7_.js";function c(e){return r.alert({placement:"center",...e})}function l(e){return r.confirm({placement:"center",preventScrollThrough:!1,cancelBtn:n("dialog.cancel"),...e})}export{c as a,l as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as d,resolveComponent as c,unref as n,openBlock as a,createBlock as m,createCommentVNode as u}from"vue";import{t as i}from"./i18n-hQyxfD7_.js";import{g as s}from"./selection-BIZq2qs_.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@tiptap/pm/state";const C={__name:"download",setup(p){const o=d("editor"),r=()=>{const t=o.value?s(o.value):null,e=document.createElement("a");e.href=t?.attrs.url,e.download=t?.attrs.name,e&&(document.body.appendChild(e),e.click(),document.body.removeChild(e))};return(t,e)=>{const l=c("menus-button");return n(o)?.getAttributes("file")?.uploaded?(a(),m(l,{key:0,ico:"download",text:n(i)("bubbleMenu.file.download"),onMenuClick:r},null,8,["text"])):u("v-if",!0)}}};export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as a,resolveComponent as u,openBlock as l,createBlock as p,unref as m}from"vue";import{t as d}from"./i18n-hQyxfD7_.js";import{g as _}from"./selection-BIZq2qs_.js";import{s as f}from"./short-id-DJZHbKNv.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@tiptap/pm/state";const h={__name:"duplicate",setup(k){const e=a("editor"),s=()=>{const t=e.value?_(e.value):null,n=()=>{let c=0;return e.value?.state.doc.descendants((r,i)=>{r===t&&(c=i+r.nodeSize)}),c},o=t?.type.create({...t.attrs,id:f()},t.content,t.marks);e.value?.commands.insertContentAt(n(),o?.toJSON())};return(t,n)=>{const o=u("menus-button");return l(),p(o,{ico:"node-duplicate",text:m(d)("blockMenu.duplicate"),onMenuClick:s},null,8,["text"])}}};export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as G,ref as U,watch as se,nextTick as Q,resolveComponent as g,openBlock as i,createBlock as v,unref as t,withCtx as s,createVNode as d,isRef as R,createElementBlock as C,createElementVNode as D,createTextVNode as h,toDisplayString as b,createCommentVNode as u,Fragment as J,renderList as M}from"vue";import{t as n}from"./i18n-hQyxfD7_.js";import{a as L}from"./dialog-BnThXCWu.js";import{Input as re}from"tdesign-vue-next";import{c as Z,a as ie}from"./cal-service-CTPNhNPR.js";import{l as de}from"./load-resource-DgkZV52W.js";import{g as ue}from"./selection-BIZq2qs_.js";import{s as x}from"./short-id-DJZHbKNv.js";import{_ as ce}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@tiptap/pm/state";const fe={key:0,class:"umo-echarts-container"},me={class:"umo-echarts-header"},pe={key:0,class:"umo-echarts-source-center"},ge={key:1,class:"umo-echarts-source-center"},ve={class:"umo-echarts-settting"},he={key:2,class:"umo-echarts-source-center"},be={class:"umo-echarts-render",style:{"margin-left":"2px"}},_e={__name:"echarts",props:{mode:{type:String,default:void 0}},setup(q){const $=G("container"),P=G("editor"),E=G("options");let V=U(!1),I=U(!0),c=U(0),O=U(null),m=U(null),N=null,A=null,w=U(0),l=U({data:[],config:{}}),p={};const H=()=>{if(V.value)return;w.value=0;const a=()=>{I.value=!0,c.value=E.value.echarts?.mode,m.value=null,K(),V.value=!0};if(q.mode==="add"){a();return}if(O.value=ue(P.value),O.value?.type?.name!=="echarts"){a();return}I.value=!1,c.value=O.value.attrs?.mode,m.value=null,O.value.attrs?.chartOptions!==null&&(m.value=JSON.stringify(O.value.attrs?.chartOptions)),K(),j(O.value.attrs?.chartConfig),V.value=!0},W=()=>{let a={id:"",name:"",mode:c.value,chartOptions:null,chartConfig:null,describe:"",nodeAlign:"center",margin:{}};if(I.value?(a.id=x(),a.mode=c.value):a=JSON.parse(JSON.stringify(O.value.attrs)),a.mode===1){const e=Z(l.value.data);if(a.chartConfig={data:e,config:l.value.config},A===null){const r=L({attach:$,theme:"warning",header:n("tools.echarts.text"),body:n("tools.echarts.settingError"),onConfirm(){r.destroy()}});return}}else{try{a.chartOptions=JSON.parse(m.value)}catch{const r=L({attach:$,theme:"warning",header:n("tools.echarts.text"),body:n("tools.echarts.sourceerror"),onConfirm(){r.destroy()}});return}if(N===null){const e=L({attach:$,theme:"warning",header:n("tools.echarts.text"),body:n("tools.echarts.sourceerror2"),onConfirm(){e.destroy()}});return}}if(E.value.echarts?.renderImage||a.mode===0){const e=(a.mode===1?A:N).getDataURL({type:"png",pixelRatio:5,backgroundColor:"#fff"}),r=atob(e.split(",")[1]),[f]=e.split(","),[_,F]=f.split(":").slice(1).toString().split(";"),S=new ArrayBuffer(r.length),B=new Uint8Array(S);for(let T=0;T<r.length;T++)B[T]=r.charCodeAt(T);const y=new Blob([S],{type:F});E.value.onFileUpload(y,a.id,"echarts")}I.value?P.value.commands.setEcharts(a):P.value.commands.updateEcharts(a),V.value=!1};se(()=>[m.value,c.value,l.value.config,w.value],async()=>{try{z(),await Q(),await X()}catch{}},{deep:!0,immediate:!1});const X=async()=>{if(await Q(),await de(`${E.value.cdnUrl}/libs/echarts/echarts.min.js`),typeof echarts<"u"){z();const a=document.getElementById("echartsSettingModeId"),e=document.getElementById("echartsSourceModeId");if(c.value===1&&a!==null){const r=Z(l.value.data);if(!(r===null||r.length===0)){const f=ie(JSON.parse(JSON.stringify(r)),JSON.parse(JSON.stringify(l.value.config)),E.value);A=echarts.init(a);try{A.setOption(f)}catch{z()}}}else if(c.value===0&&m.value!==null&&e!==null){N=echarts.init(e);try{const r=Y(m.value);r!==m.value&&(m.value=r),N.setOption(JSON.parse(m.value))}catch{z()}}}},z=()=>{N!==null&&(N.dispose(),N=null),A!==null&&(A.dispose(),A=null)},Y=a=>{const e=/(\s*)([a-zA-Z_$][\w$]*)(\s*:\s*)/g,r=/'([^']*)'/g;return a=a.replace(r,'"$1"'),a=a.replace(e,'$1"$2"$3'),a},K=()=>{p={},p.Columns=[],Array.from({length:26},(e,r)=>String.fromCharCode(r+65)).forEach(e=>{p.Columns.push({title:e,colKey:e.toUpperCase(),align:"center",fixed:e==="A"?"left":void 0,edit:{component:re,props:{clearable:!1,autofocus:!1,placeholder:""},abortEditOnEvent:["onEnter"],onEdited:r=>{const f=r.newRowData;if(r.rowIndex>0)for(const _ in f)_==="A"||_==="tabkey"||(isNaN(Number(f[_]))?f[_]=0:f[_]=Number(f[_]));l.value.data.splice(r.rowIndex,1,f)},defaultEditable:!1,showEditIcon:!1}})}),p.seriesType=[{code:"bar",name:n("tools.echarts.set.bar")},{code:"line",name:n("tools.echarts.set.line")},{code:"pie",name:n("tools.echarts.set.pie")}],p.legendorient=[{code:"horizontal",name:n("tools.echarts.set.horizontal")},{code:"vertical",name:n("tools.echarts.set.vertical")}],p.legendlocation=[{code:"top",name:n("tools.echarts.set.top")},{code:"bottom",name:n("tools.echarts.set.bottom")}],p.titleleft=[{code:"left",name:n("tools.echarts.set.left")},{code:"center",name:n("tools.echarts.set.center")},{code:"right",name:n("tools.echarts.set.right")}],l.value={data:[],config:{}},l.value.data=[{tabkey:x(),A:"",B:"系列1",C:"系列2",D:"系列3"},{tabkey:x(),A:"类别 1",B:4.3,C:2.4,D:2},{tabkey:x(),A:"类别 2",B:2.5,C:4.4,D:2},{tabkey:x(),A:"类别 3",B:3.5,C:1.8,D:3},{tabkey:x(),A:"类别 4",B:4.5,C:2.8,D:5}];for(let e=0;e<17;e++)l.value.data.push({tabkey:x(),A:"",B:"",C:"",D:""});l.value.config.seriesType="bar",l.value.config.smooth=!1,l.value.config.legend=!0,l.value.config.legendorient="horizontal",l.value.config.legendlocation="bottom",l.value.config.legendleft="center",l.value.config.titleText="",l.value.config.titleleft="center"},j=a=>{if(a!==null){a.data!==null&&a.data.length>0&&(l.value.data=a.data);for(const e of l.value.data)e.tabkey=x();for(let e=0;e<10;e++)l.value.data.push({tabkey:x(),A:"",B:""});if(a.config!==null)for(const e in a.config)l.value.config[e]!==null&&(l.value.config[e]=a.config[e])}},ee=()=>!0;return(a,e)=>{const r=g("icon"),f=g("t-radio-button"),_=g("t-radio-group"),F=g("t-textarea"),S=g("t-option"),B=g("t-select"),y=g("t-form-item"),T=g("t-checkbox"),te=g("t-input"),le=g("t-form"),oe=g("t-table"),ae=g("modal"),ne=g("menus-button");return i(),v(ne,{ico:"echarts",text:t(n)("tools.echarts.text"),huge:"",onMenuClick:H},{default:s(()=>[d(ae,{visible:t(V),width:"960px",onConfirm:W,onClose:e[11]||(e[11]=o=>R(V)?V.value=!1:V=!1)},{header:s(()=>[d(r,{name:"echarts"}),h(" "+b(t(I)?t(n)("tools.echarts.add"):t(n)("tools.echarts.edit")),1)]),default:s(()=>[t(V)?(i(),C("div",fe,[D("div",me,[t(c)===1?(i(),v(_,{key:0,modelValue:t(w),"onUpdate:modelValue":e[0]||(e[0]=o=>R(w)?w.value=o:w=o),variant:"default-filled","default-value":"0"},{default:s(()=>[d(f,{value:0},{default:s(()=>[h(b(t(n)("tools.echarts.setting")),1)]),_:1}),d(f,{value:1},{default:s(()=>[h(b(t(n)("tools.echarts.dataGrid")),1)]),_:1})]),_:1},8,["modelValue"])):u("v-if",!0),d(_,{modelValue:t(c),"onUpdate:modelValue":e[1]||(e[1]=o=>R(c)?c.value=o:c=o),variant:"default-filled","default-value":"0"},{default:s(()=>[d(f,{value:1},{default:s(()=>[h(b(t(n)("tools.echarts.visualization")),1)]),_:1}),d(f,{value:0},{default:s(()=>[h(b(t(n)("tools.echarts.source")),1)]),_:1})]),_:1},8,["modelValue"])]),t(c)===0?(i(),C("div",pe,[d(F,{modelValue:t(m),"onUpdate:modelValue":e[2]||(e[2]=o=>R(m)?m.value=o:m=o),class:"umo-echarts-code",autofocus:"",placeholder:t(n)("tools.echarts.placeholder")},null,8,["modelValue","placeholder"]),e[12]||(e[12]=D("div",{class:"umo-echarts-render"},[D("div",{id:"echartsSourceModeId",class:"umo-echarts-svg"})],-1))])):u("v-if",!0),t(c)===1&&t(w)===0?(i(),C("div",ge,[e[13]||(e[13]=D("div",{class:"umo-echarts-render"},[D("div",{id:"echartsSettingModeId",class:"umo-echarts-svg"})],-1)),D("div",ve,[d(le,{"label-align":"top"},{default:s(()=>[u("图形类型"),d(y,{label:t(n)("tools.echarts.set.seriesType"),name:"seriesType"},{default:s(()=>[d(B,{modelValue:t(l).config.seriesType,"onUpdate:modelValue":e[3]||(e[3]=o=>t(l).config.seriesType=o),class:"demo-select-base"},{default:s(()=>[(i(!0),C(J,null,M(t(p).seriesType,(o,k)=>(i(),v(S,{key:k,value:o.code,label:o.name},{default:s(()=>[h(b(o.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(l).config.seriesType==="line"?(i(),v(y,{key:0},{default:s(()=>[u("平滑折线"),t(l).config.seriesType==="line"?(i(),v(T,{key:0,modelValue:t(l).config.smooth,"onUpdate:modelValue":e[4]||(e[4]=o=>t(l).config.smooth=o)},{default:s(()=>[h(b(t(n)("tools.echarts.set.smooth")),1)]),_:1},8,["modelValue"])):u("v-if",!0)]),_:1})):u("v-if",!0),d(y,null,{default:s(()=>[u("图例"),d(T,{modelValue:t(l).config.legend,"onUpdate:modelValue":e[5]||(e[5]=o=>t(l).config.legend=o)},{default:s(()=>[h(b(t(n)("tools.echarts.set.legend")),1)]),_:1},8,["modelValue"])]),_:1}),u("图例布局"),t(l).config.legend?(i(),v(y,{key:1,label:t(n)("tools.echarts.set.legendorient"),name:"legendorient"},{default:s(()=>[d(B,{modelValue:t(l).config.legendorient,"onUpdate:modelValue":e[6]||(e[6]=o=>t(l).config.legendorient=o),class:"demo-select-base"},{default:s(()=>[(i(!0),C(J,null,M(t(p).legendorient,(o,k)=>(i(),v(S,{key:k,value:o.code,label:o.name},{default:s(()=>[h(b(o.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):u("v-if",!0),u("图例纵向位置"),t(l).config.legend?(i(),v(y,{key:2,label:t(n)("tools.echarts.set.legendlocation"),name:"legend"},{default:s(()=>[d(B,{modelValue:t(l).config.legendlocation,"onUpdate:modelValue":e[7]||(e[7]=o=>t(l).config.legendlocation=o),class:"demo-select-base"},{default:s(()=>[(i(!0),C(J,null,M(t(p).legendlocation,(o,k)=>(i(),v(S,{key:k,value:o.code,label:o.name},{default:s(()=>[h(b(o.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):u("v-if",!0),u("图例横向位置"),t(l).config.legend?(i(),v(y,{key:3,label:t(n)("tools.echarts.set.legendleft"),name:"legendleft"},{default:s(()=>[d(B,{modelValue:t(l).config.legendleft,"onUpdate:modelValue":e[8]||(e[8]=o=>t(l).config.legendleft=o),class:"demo-select-base"},{default:s(()=>[(i(!0),C(J,null,M(t(p).titleleft,(o,k)=>(i(),v(S,{key:k,value:o.code,label:o.name},{default:s(()=>[h(b(o.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):u("v-if",!0),u("标题名称"),d(y,{label:t(n)("tools.echarts.set.titleText"),name:"title"},{default:s(()=>[d(te,{modelValue:t(l).config.titleText,"onUpdate:modelValue":e[9]||(e[9]=o=>t(l).config.titleText=o),placeholder:t(n)("tools.echarts.set.titleTextPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),u("标题位置"),t(l).config.titleText!=""?(i(),v(y,{key:4,label:t(n)("tools.echarts.set.titleleft"),name:"titleleft"},{default:s(()=>[d(B,{modelValue:t(l).config.titleleft,"onUpdate:modelValue":e[10]||(e[10]=o=>t(l).config.titleleft=o),class:"demo-select-base"},{default:s(()=>[(i(!0),C(J,null,M(t(p).titleleft,(o,k)=>(i(),v(S,{key:k,value:o.code,label:o.name},{default:s(()=>[h(b(o.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):u("v-if",!0)]),_:1})])])):u("v-if",!0),t(c)===1&&t(w)===1?(i(),C("div",he,[D("div",be,[d(oe,{id:"echartsSettingGridId",class:"umo-echarts-table","row-key":"tabkey",columns:t(p).Columns,data:t(l).data,size:"small","show-header":!1,"fixed-rows":[1],"editable-cell-state":ee,bordered:"","lazy-load":""},null,8,["columns","data"])])])):u("v-if",!0)])):u("v-if",!0)]),_:1},8,["visible"])]),_:1},8,["text"])}}},Ue=ce(_e,[["__scopeId","data-v-5c8192e7"]]);export{Ue as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as _,computed as i,resolveComponent as t,openBlock as e,createElementBlock as d,Fragment as p,createBlock as n,createCommentVNode as r}from"vue";import{g as v}from"./selection-BIZq2qs_.js";import"@tiptap/pm/state";const q={__name:"edit",setup(b){const c=_("editor"),o=i(()=>(c.value?v(c?.value):null)?.attrs||{});return(l,f)=>{const a=t("menus-toolbar-tools-qrcode"),s=t("menus-toolbar-tools-barcode"),u=t("menus-toolbar-tools-diagrams"),m=t("menus-toolbar-tools-mermaid");return e(),d(p,null,[o.value.type==="qrcode"?(e(),n(a,{key:0,content:o.value.content},null,8,["content"])):r("v-if",!0),o.value.type==="barcode"?(e(),n(s,{key:1,content:o.value.content},null,8,["content"])):r("v-if",!0),o.value.type==="diagrams"?(e(),n(u,{key:2,content:o.value.content},null,8,["content"])):r("v-if",!0),o.value.type==="mermaid"?(e(),n(m,{key:3,content:o.value.content,config:JSON.parse(o.value.config||"{}")},null,8,["content","config"])):r("v-if",!0)],64)}}};export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const y={scrollIntoView:!1};function c(n,t,e){!e||t.has(e)||(t.add(e),n.push({el:e,top:e.scrollTop,left:e.scrollLeft}))}function g(n){const t=[],e=new Set,l=document.querySelector(`${n} .umo-zoomable-container`);c(t,e,l);let o=l?.parentElement??document.querySelector(n)?.parentElement??null;for(;o&&o!==document.documentElement;){if(o.classList?.contains("el-scrollbar__wrap"))c(t,e,o);else{const r=getComputedStyle(o),s=`${r.overflow}${r.overflowY}${r.overflowX}`;/auto|scroll/.test(s)&&c(t,e,o)}o=o.parentElement}return c(t,e,document.documentElement),c(t,e,document.body),t}function S(n,t){const e=g(n);try{return t()}finally{h(e)}}function h(n){if(!n.length)return;const t=()=>{for(const{el:e,top:l,left:o}of n)e.scrollTop=l,e.scrollLeft=o};t(),requestAnimationFrame(t)}function w(n,t){const{state:e,view:l}=n,{schema:o,selection:r}=e,s=o.nodes.paragraph,p=o.nodes.heading;if(!s||!p)return!1;let i=e.tr,a=s,f=null;t==="paragraph"||n.isActive("heading",{level:t})?a=s:(a=p,f={level:t});for(let u=0;u<r.ranges.length;u++){const{$from:m,$to:d}=r.ranges[u];i=i.setBlockType(m.pos,d.pos,a,f)}return l.dispatch(i),!0}export{y as F,w as a,S as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as m,ref as h,computed as g,resolveComponent as r,openBlock as y,createElementBlock as V,Fragment as w,createVNode as a,isRef as s,unref as t,withCtx as i,createElementVNode as c,toDisplayString as d,createTextVNode as k}from"vue";import{t as o}from"./i18n-hQyxfD7_.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const N={class:"umo-embed-container"},$=["textContent"],B={__name:"embed",setup(j){const u=m("options"),p=m("container");let e=h(!1);const l=g(()=>`<iframe src="${u.value.shareUrl}" width="100%" height="720px" frameborder="0" allowfullscreen="true"></iframe>`),_=()=>{useCopy(l,o("export.embed.copied"),p),e.value=!1};return(z,n)=>{const b=r("menus-button"),f=r("icon"),x=r("t-textarea"),v=r("modal");return y(),V(w,null,[a(b,{ico:"embed",text:t(o)("export.embed.text"),huge:"",onMenuClick:n[0]||(n[0]=C=>s(e)?e.value=!0:e=!0)},null,8,["text"]),a(v,{visible:t(e),width:"460px","confirm-btn":t(o)("export.embed.copy"),onConfirm:_,onClose:n[1]||(n[1]=C=>s(e)?e.value=!1:e=!1)},{header:i(()=>[a(f,{name:"embed"}),k(" "+d(t(o)("export.embed.title")),1)]),default:i(()=>[c("div",N,[c("div",{class:"umo-embed-tip",textContent:d(t(o)("export.embed.tip"))},null,8,$),a(x,{class:"umo-embed-textarea",value:l.value,readonly:"",autosize:""},null,8,["value"])])]),_:1},8,["visible","confirm-btn"])],64)}}},S=E(B,[["__scopeId","data-v-c769424b"]]);export{S as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as u,resolveComponent as k,openBlock as e,createBlock as x,unref as t,withCtx as C,createElementVNode as s,createElementBlock as n,Fragment as i,renderList as m,toDisplayString as a}from"vue";import{t as E}from"./i18n-hQyxfD7_.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const P={class:"umo-emojis-container umo-scrollbar"},S=["textContent"],B={class:"umo-emojis-group-container"},T=["onClick"],V={__name:"emoji",props:{onSelectEmoji:void 0},setup(_){const c=_,{popupVisible:p,togglePopup:d}=usePopup(),j=u("editor"),f=u("options"),g=o=>{c.onSelectEmoji?c.onSelectEmoji(o):j.value?.chain().focus().insertContent(o).run(),p.value=!1};return(o,w)=>{const v=k("menus-button");return e(),x(v,{ico:"emoji",text:t(E)("insert.emoji"),"menu-type":"popup",huge:"","popup-visible":t(p),onTogglePopup:t(d)},{content:C(()=>[s("div",P,[(e(!0),n(i,null,m(t(f).dicts?.emojis,(r,h)=>(e(),n(i,{key:h},[s("div",{class:"umo-emojis-group-title",textContent:a(o.l(r.label))},null,8,S),s("div",B,[(e(!0),n(i,null,m(r.items.split(" "),(l,b)=>(e(),n("div",{key:b,class:"umo-emojis-group-item",onClick:D=>g(l)},a(l),9,T))),128))])],64))),128))])]),_:1},8,["text","popup-visible","onTogglePopup"])}}},q=y(V,[["__scopeId","data-v-823c4a03"]]);export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as m,resolveComponent as r,openBlock as c,createBlock as l,unref as u}from"vue";import{t as i}from"./i18n-hQyxfD7_.js";import{g as a}from"./selection-BIZq2qs_.js";import"@tool-belt/type-predicates";import"vue-i18n";import"@tiptap/pm/state";const g={__name:"emoji-remove",emits:["change"],setup(s,{emit:p}){const e=m("editor"),o=()=>{(e.value?a(e.value):null)&&e.value?.commands.updateAttributes("callout",{icon:null})};return(t,_)=>{const n=r("menus-button");return c(),l(n,{ico:"remove",text:u(i)("bubbleMenu.callout.removeEmoji"),onMenuClick:o},null,8,["text"])}}};export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={ai:["ai","eps"],app:["app"],axure:["rp"],book:["mobi","oeb","lit","xeb","ebx","rb","pdb","epub","azw3","hlp","chm","wdl","ceb","abm","pdg","caj"],css:["css","less","sass"],dmg:["dmg"],excel:["csv","fods","ods","ots","xls","xlsm","xlsx","xlt","xltm","xltx","et","ett"],exe:["exe"],html:["htm","html","mht"],img:["png","bmp","jpg","jpeg","gif","webp","tga","exif","fpx","svg","hdri","raw","ico","jfif","dib","pbm","pgm","ppm","rgb"],java:["jar","java"],js:["js","jsx","ts","tsx"],json:["json"],keynote:["key"],md:["md","markdown"],music:["au","aif","aiff","aifc","rmi","mp3","mid","cda","wav","wma","ra","ram","snd","mida","ogg","ape","flac","aac"],numbers:["numbers"],pages:["pages"],pdf:["pdf"],php:["php"],pkg:["pkg"],ppt:["fodp","odp","otp","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","dps","dpt","wpp"],psd:["psd"],python:["python"],sh:["sh"],sketch:["sketch"],sql:["sql"],text:["text","txt"],video:["mp4","avi","mov","rmvb","rm","flv","mpeg","wmv","mkv"],vue:["vue"],word:["doc","docm","docx","dot","dotm","dotx","epub","fodt","odt","ott","rtf","wps","wpt"],xmind:["xmind"],zip:["zip","rar","tar","gz","gzip","uue","bz2","iso","7z","z","ace","lzh","arj","cab"],font:["eot","otf","fon","font","ttf","ttc","woff","woff2"]},i=e=>{const t=e?.split(".");return t?t[t.length-1]:void 0},m=e=>{let t="common";const p=i(e);if(p)for(const s of Object.keys(o))o[s].includes(p)&&(t=s);return t},c=e=>{try{return new Promise(t=>{const{type:p}=e;if(p.startsWith("image/")){const s=new Image;s.onload=()=>{const a=s.naturalWidth,n=s.naturalHeight;URL.revokeObjectURL(s.src),t({width:a,height:n})},s.onerror=()=>{t({width:0,height:0})},s.src=URL.createObjectURL(e)}else t({width:0,height:0})})}catch{return null}},r=e=>{let t=e;return e instanceof SVGElement&&(t=new XMLSerializer().serializeToString(e)),t=t.replace(/>\s+</g,"><").replace(/\n/g,"").trim(),`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`};export{i as a,c as b,m as g,r as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as t,resolveComponent as l,openBlock as s,createBlock as u,unref as e}from"vue";import{t as p}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const F={__name:"file",setup(m){const n=t("container"),i=t("editor"),r=t("uploadFileMap");return(a,o)=>{const c=l("menus-button");return s(),u(c,{ico:"file",text:e(p)("insert.file"),huge:"",onMenuClick:o[0]||(o[0]=f=>e(i)?.chain().focus().selectFiles("file",e(n),e(r)).run())},null,8,["text"])}}};export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as l,openBlock as s,createBlock as p,unref as t}from"vue";import{t as n}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const _={__name:"fix",setup(u){const e=r("editor");return(c,o)=>{const i=l("menus-button");return s(),p(i,{ico:"table-fix",text:t(n)("table.fix.text"),tooltip:t(n)("table.fix.tip"),huge:"",disabled:!t(e)?.isActive("table"),onMenuClick:o[0]||(o[0]=a=>t(e)?.chain().focus().fixTables().run())},null,8,["text","tooltip","disabled"])}}};export{_ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as N,ref as F,computed as G,watch as H,onMounted as ve,resolveComponent as S,openBlock as c,createBlock as z,unref as d,normalizeStyle as K,withCtx as R,createElementBlock as g,Fragment as Q,renderList as I,createElementVNode as pe,createTextVNode as Fe,toDisplayString as ye,createCommentVNode as T,withModifiers as ee,normalizeClass as we,createVNode as me}from"vue";import{t as a}from"./i18n-hQyxfD7_.js";import{t as ge,f as be}from"./toolbarSelection-IfVwbuDC.js";import{u as te}from"./state-X-ofkjhe.js";import{isString as he}from"@tool-belt/type-predicates";import{MessagePlugin as ne}from"tdesign-vue-next";import"vue-i18n";import"@vueuse/core";const _e=["title"],xe={key:0,class:"umo-font-family-unsupport"},Se=["title","onClick"],Re={__name:"font-family",setup(ke){const f=N("editor"),i=N("options"),oe=te("toolbar",i),s=te("recent",i),ae=N("typeWriterIsRunning"),b=F([]),k=F({}),h=F([]),A=F([]);let C=F(!1),D=F(!0);const le=G(()=>(ge.value,!f.value||ae.value?null:be(f.value))),y=()=>{Array.isArray(s.value.fonts)||(s.value.fonts=[]),Array.isArray(s.value.downloadedFonts)||(s.value.downloadedFonts=[])},W=(e={})=>{y();const t={...s.value,...e};s.value=t},j=e=>he(e)?e.split(",")[0].trim().replace(/^["']|["']$/g,""):"",_=document.createElement("canvas").getContext("2d"),U=["monospace","serif","sans-serif"],se=["WwMmIi123","汉字測試","AaBbCcXxYyZz"],M={},B=e=>Number.isFinite(e)?e.toFixed(2):"0",L=e=>_?(_.font=`72px ${e}`,se.map(t=>{const n=_.measureText(t);return[B(n.width),B(n.actualBoundingBoxLeft),B(n.actualBoundingBoxRight)].join(":")}).join("|")):"",ue=e=>_?(U.forEach(t=>{M[t]||(M[t]=L(t))}),U.some(t=>L(`"${e}", ${t}`)!==M[t])):!0,w=e=>{if(!e)return!0;const t=j(e);return t?ue(t):!1},v=(e,t)=>{e&&(k.value[e]=t)},$=()=>{(i.value.dicts?.fonts||[]).forEach(t=>{(t?.value||t?.value===null)&&v(t.value,w(t.value))})},p=e=>h.value.includes(e),V=e=>e?.value?(k.value[e.value]===void 0&&v(e.value,w(e.value)),!!k.value[e.value]):!0,O=e=>!!e?.value&&!!e?.url&&!p(e.value),re=e=>{const t=`url("${e.url}")`;return e.format?`${t} format("${e.format}")`:t},J=e=>{y();const n=(Array.isArray(s.value.downloadedFonts)?s.value.downloadedFonts:[]).filter(o=>o?.value!==e.value);n.unshift({value:e.value,url:e.url,format:e.format,style:e.style,weight:e.weight}),W({downloadedFonts:n.slice(0,50)})},E=async(e,{silent:t=!1,persist:n=!0}={})=>{if(!e?.value||!e?.url||p(e.value))return!1;if(w(e.value))return v(e.value,!0),n&&J(e),!0;h.value.push(e.value);try{const o=new FontFace(e.value,re(e),{style:e.style||"normal",weight:e.weight||"400",display:"swap"});return await o.load(),document.fonts.add(o),await document.fonts.load(`16px "${e.value}"`),v(e.value,w(e.value)),n&&J(e),t||useMessage("success",a("base.fontFamily.downloadSuccess",{font:l(e.label)})),!0}catch{return v(e.value,!1),t||useMessage("error",a("base.fontFamily.downloadFailed",{font:l(e.label)})),!1}finally{const o=h.value.indexOf(e.value);o>-1&&h.value.splice(o,1)}},ie=async()=>{y();for(const e of s.value.downloadedFonts){if(!e?.value)continue;const t=i.value.dicts?.fonts?.find(({value:o})=>o===e.value),n={...e,...t,value:t?.value||e.value,url:t?.url||e.url};if(w(n.value)){v(n.value,!0);continue}n.url&&await E(n,{silent:!0,persist:!1})}$()},ce=async e=>{if(!e?.url){useMessage("warning",a("base.fontFamily.noDownloadUrl"));return}useMessage("loading",a("base.fontFamily.downloadStart",{font:l(e.label)})),await E(e,{silent:!1,persist:!0})&&Z(e.value)},de=G(()=>{y();const e=[{label:a("base.fontFamily.all"),children:i.value.dicts?.fonts}],t=n=>n.map(o=>i.value.dicts?.fonts.find(({value:u})=>u===o)).filter(Boolean);return s.value.fonts.length>0&&e.unshift({label:a("base.fontFamily.recent"),children:t(s.value.fonts)}),b.value.length>0&&e.unshift({label:a("base.fontFamily.used"),children:t(b.value)}),e}),P=(e,t)=>{if(!e)return;const n=Array.isArray(e.marks)?e.marks:[];for(const u of n){const m=j(u?.attrs?.fontFamily);m&&t.add(m)}const o=Array.isArray(e.content)?e.content:[];for(const u of o)P(u,t)},X=()=>{const e=f.value?.getJSON(),t=new Set;return P(e,t),[...t]},Y=()=>{const e=X();for(const t of e)b.value.includes(t)||b.value.push(t)},x=async()=>{if(D.value||C.value)return;const e=new Set((s.value.downloadedFonts||[]).map(o=>o?.value).filter(Boolean)),n=X().map(o=>i.value.dicts?.fonts?.find(u=>u.value===o)).filter(o=>o?.url&&!V(o)&&!p(o.value)&&!A.value.includes(o.value)&&!e.has(o.value));if(n.length){C.value=!0;try{ne.closeAll(),useMessage("loading",{content:a("base.fontFamily.autoDownloadStart"),duration:0});let o=0;for(const u of n)await E(u,{silent:!0,persist:!0})&&(o+=1,A.value.includes(u.value)||A.value.push(u.value));$(),ne.closeAll(),o>0&&useMessage("success",a("base.fontFamily.autoDownloadDone"))}finally{C.value=!1}}},Z=e=>{if(e){const t=s.value.fonts.filter(n=>n!==e);t.unshift(e),W({fonts:t.slice(0,10)})}f.value?.chain().focus().setFontFamily(e).run(),Y()};return H(()=>f.value,(e,t,n)=>{e&&(Y(),x(),e.on("update",x),n(()=>e.off("update",x)))}),H(()=>i.value.dicts?.fonts,()=>{$()},{deep:!0,immediate:!0}),ve(async()=>{y(),D.value=!0,await ie(),D.value=!1,await x()}),(e,t)=>{const n=S("icon"),o=S("t-option"),u=S("t-option-group"),m=S("menus-button");return c(),z(m,{text:d(a)("base.fontFamily.text"),placeholder:d(a)("base.fontFamily.text"),"menu-type":"select","hide-text":"","select-value":le.value,style:K({width:d(oe).mode!=="classic"?"143px":"90px"}),filterable:"",disabled:!d(f)?.can().chain().focus().setFontFamily().run(),onMenuClick:Z},{default:R(()=>[(c(!0),g(Q,null,I(de.value,(q,fe)=>(c(),z(u,{key:fe,label:q.label,divider:!1},{default:R(()=>[(c(!0),g(Q,null,I(q.children,r=>(c(),z(o,{key:r.value,class:"umo-font-family-item",value:r.value,label:e.l(r.label)},{default:R(()=>[pe("span",{style:K({fontFamily:r.value})},[Fe(ye(e.l(r.label))+" ",1),V(r)?T("v-if",!0):(c(),g("span",{key:0,title:d(a)("base.fontFamily.unsupport"),class:"umo-font-family-unsupport"},"!",8,_e))],4),V(r)?T("v-if",!0):(c(),g("span",xe,[O(r)||p(r.value)?(c(),g("span",{key:0,class:we(["umo-font-family-download",{"is-loading":p(r.value)}]),title:p(r.value)?d(a)("base.fontFamily.downloading"):d(a)("base.fontFamily.downloadActionTip"),onMousedown:t[0]||(t[0]=ee(()=>{},["stop","prevent"])),onClick:ee(Ce=>O(r)?ce(r):null,["stop","prevent"])},[me(n,{name:"download",size:"14"})],42,Se)):T("v-if",!0)]))]),_:2},1032,["value","label"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["text","placeholder","select-value","style","disabled"])}}};export{Re as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as p,computed as T,resolveComponent as M,openBlock as d,createElementBlock as B,Fragment as R,createBlock as f,mergeProps as E,unref as a,createCommentVNode as b}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{t as I,g as S,r as O,a as P,b as W}from"./toolbarSelection-IfVwbuDC.js";import{r as A,F as z}from"./editor-scroll-CH3ZXFEC.js";import"@tool-belt/type-predicates";import"vue-i18n";const V={__name:"font-size",props:{select:{type:Boolean,default:!0}},setup(m){const n=p("editor"),h=p("container"),F=p("options"),y=p("typeWriterIsRunning"),v=l=>F.value.disableExtensions.includes(l),_=T(()=>(I.value,y.value?null:S(n.value))),s=[{label:e("base.fontSize.default"),value:"14px",order:4},{label:e("base.fontSize.42pt"),value:"42pt",order:20},{label:e("base.fontSize.36pt"),value:"36pt",order:19},{label:e("base.fontSize.26pt"),value:"26pt",order:16},{label:e("base.fontSize.24pt"),value:"24pt",order:15},{label:e("base.fontSize.22pt"),value:"22pt",order:14},{label:e("base.fontSize.18pt"),value:"18pt",order:11},{label:e("base.fontSize.16pt"),value:"16pt",order:10},{label:e("base.fontSize.15pt"),value:"15pt",order:9},{label:e("base.fontSize.14pt"),value:"14pt",order:7},{label:e("base.fontSize.12pt"),value:"12pt",order:4},{label:e("base.fontSize.10_5pt"),value:"10.5pt",order:1},{label:e("base.fontSize.9pt"),value:"9pt",order:3},{label:e("base.fontSize.7_5pt"),value:"7.5pt",order:1},{label:e("base.fontSize.6_5pt"),value:"6.5pt",order:0},{label:"10",value:"10px",order:1},{label:"11",value:"11px",order:2},{label:"12",value:"12px",order:3},{label:"16",value:"16px",order:5},{label:"18",value:"18px",order:6},{label:"20",value:"20px",order:8},{label:"22",value:"22px",order:10},{label:"24",value:"24px",order:11},{label:"26",value:"26px",order:12},{label:"28",value:"28px",order:13},{label:"32",value:"32px",order:15},{label:"36",value:"36px",order:17},{label:"42",value:"42px",order:18},{label:"48",value:"48px",order:19},{label:"72",value:"72px",order:21},{label:"96",value:"96px",order:22}],g=l=>{const t=n.value;t&&A(h,()=>{const{empty:o,from:r,to:x}=t.state.selection;let c=t.chain().focus(void 0,z);if(!o&&r!==x)c=c.setTextSelection({from:r,to:x});else{if(!O(t)&&!P(t))return;{const u=t.state.selection;if(!u.empty&&u.from!==u.to)c=t.chain().focus(void 0,z).setTextSelection({from:u.from,to:u.to});else return}}c.setFontSize(l).run()&&W(t)})},i=l=>{!l||S(n.value)===l||g(l)},k=()=>{const{fontSize:l}=n.value?.getAttributes("textStyle")||{};if(l){const t=s.find(({value:r})=>r===l);if(!t)return;const o=s.find(({order:r})=>r===t.order+1);o&&i(o.value)}else i("16px")},C=()=>{const{fontSize:l}=n.value?.getAttributes("textStyle")||{};if(l){const t=s.find(({value:r})=>r===l);if(!t)return;const o=s.find(({order:r})=>r===t.order-1);o&&i(o.value)}else i("14px")};return(l,t)=>{const o=M("menus-button");return d(),B(R,null,[m.select?(d(),f(o,E({key:0,text:a(e)("base.fontSize.text"),"menu-type":"select","hide-text":"",style:{width:"80px"},"select-options":s,"select-value":_.value},l.$attrs,{placeholder:a(e)("base.fontSize.text"),filterable:"",disabled:!a(n)?.can().chain().focus().setFontSize().run(),onMenuClick:i}),null,16,["text","select-value","placeholder","disabled"])):b("v-if",!0),v("font-size-increase")?b("v-if",!0):(d(),f(o,{key:1,ico:"font-size-increase",text:a(e)("base.fontSize.increase"),"hide-text":"",disabled:!a(n)?.can().chain().focus().setFontSize().run(),onMenuClick:k},null,8,["text","disabled"])),v("font-size-decrease")?b("v-if",!0):(d(),f(o,{key:2,ico:"font-size-decrease",text:a(e)("base.fontSize.decrease"),"hide-text":"",disabled:!a(n)?.can().chain().focus().setFontSize().run(),onMenuClick:C},null,8,["text","disabled"]))],64)}}};export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as p,resolveComponent as f,openBlock as m,createBlock as u,unref as o}from"vue";import{t as n}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const x={__name:"footer",setup(s){const e=p("page");return(c,t)=>{const r=f("menus-button");return m(),u(r,{ico:"page-footer",text:o(e).footer?o(n)("page.footer.hide"):o(n)("page.footer.show"),huge:"",onMenuClick:t[0]||(t[0]=a=>o(e).footer=!o(e).footer)},null,8,["text"])}}};export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as n,resolveComponent as r,openBlock as c,createBlock as m,unref as o}from"vue";import{t as u}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const d={__name:"footnote",setup(i){const t=n("editor");return(s,p)=>{const e=r("menus-button");return c(),m(e,{ico:"footnote",text:o(u)("insert.footnote"),huge:"",onMenuClick:o(t)?.commands.addFootnote},null,8,["text","onMenuClick"])}}};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as s,resolveComponent as u,openBlock as l,createBlock as p,unref as n}from"vue";import{t as a}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const _={__name:"format-painter",setup(c){const t=s("editor"),o=r=>{if(t.value?.view?.painter?.enabled){t.value?.commands.unsetFormatPainter();return}t.value?.chain().focus().setFormatPainter(r).run()};return(r,e)=>{const i=u("menus-button");return l(),p(i,{ico:"format-painter",text:n(a)("base.formatPainter.text"),tooltip:n(a)("base.formatPainter.tip"),"menu-active":n(t)?.view?.painter?.enabled,disabled:n(t)?.state?.selection?.empty,"hide-text":"",onMenuClick:e[0]||(e[0]=m=>o(!0)),onDblclick:e[1]||(e[1]=m=>o(!1))},null,8,["text","tooltip","menu-active","disabled"])}}};export{_ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as u,openBlock as c,createBlock as s,unref as e}from"vue";import{t as l}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const x={__name:"fullscreen",setup(i){const t=r("fullscreen");return(m,n)=>{const o=u("menus-button");return c(),s(o,{ico:e(t)?"full-screen-exit":"full-screen",text:e(t)?e(l)("fullscreen.disable"):e(l)("fullscreen.title"),shortcut:"Ctrl+F11",huge:"","menu-active":e(t),onMenuClick:n[0]||(n[0]=f=>t.value=!e(t))},null,8,["ico","text","menu-active"])}}};export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as n,resolveComponent as u,openBlock as s,createBlock as a,unref as e}from"vue";import{t as c}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const l={__name:"hard-break",setup(i){const r=n("editor");return(m,t)=>{const o=u("menus-button");return s(),a(o,{ico:"hard-break",text:e(c)("insert.hardBreak"),huge:"",shortcut:"Shift+Enter",onMenuClick:t[0]||(t[0]=p=>e(r)?.chain().focus().setHardBreak().run())},null,8,["text"])}}};export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as a,resolveComponent as p,openBlock as m,createBlock as u,unref as e}from"vue";import{t as n}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const g={__name:"header",setup(s){const t=a("page");return(c,o)=>{const r=p("menus-button");return m(),u(r,{ico:"page-header",text:e(t).header?e(n)("page.header.hide"):e(n)("page.header.show"),huge:"",onMenuClick:o[0]||(o[0]=d=>e(t).header=!e(t).header)},null,8,["text"])}}};export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as g,ref as x,computed as H,resolveComponent as v,unref as o,openBlock as a,createElementBlock as s,normalizeClass as c,createElementVNode as l,Fragment as u,renderList as k,withModifiers as w,toDisplayString as d,createCommentVNode as S,createVNode as $,withCtx as f,createBlock as E}from"vue";import{t as _}from"./i18n-hQyxfD7_.js";import{u as L}from"./state-X-ofkjhe.js";import{onClickOutside as N}from"@vueuse/core";import{r as R,F as z,a as I}from"./editor-scroll-CH3ZXFEC.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const T=["disabled"],U={class:"umo-heading-container"},W=["onClick"],j={class:"subtitle"},D=["onClick"],q={class:"subtitle"},G={__name:"heading",setup(J){const{popupVisible:i}=usePopup(),y=g("container"),r=g("editor"),V=L("toolbar",g("options")),C=x(null),p=x([{label:_("base.heading.paragraph"),desc:"text",value:"paragraph"}]);for(const n of Array.from({length:6}).keys()){const t=n+1;p.value.push({label:`${_("base.heading.text",{level:t})}`,desc:`h${t}`,value:t})}const h=H(()=>{const n=t=>r.value?.isActive("heading",{level:t});if(r.value){if(r.value?.isActive("paragraph"))return"paragraph";if(n(1))return 1;if(n(2))return 2;if(n(3))return 3;if(n(4))return 4;if(n(5))return 5;if(n(6))return 6}return""}),m=n=>{const t=r.value;t&&(R(y,()=>{t.commands.focus(void 0,z),I(t,n)}),i.value=!1)};return N(C,()=>{i.value=!1},{ignore:[".umo-popup"]}),(n,t)=>{const M=v("icon"),O=v("t-popup"),A=v("t-option"),B=v("menus-button");return o(V).mode!=="classic"?(a(),s("div",{key:0,class:c(["umo-toolbar-headding",{unfold:o(i)}]),disabled:!o(r)?.isEditable},[l("div",U,[(a(!0),s(u,null,k(o(p),(e,b)=>(a(),s(u,{key:e.value},[b<4?(a(),s("div",{key:0,class:c(["card",{active:e.value===h.value&&o(r)?.isEditable}]),onMousedown:t[0]||(t[0]=w(()=>{},["prevent"])),onClick:F=>m(e.value)},[l("div",{class:c(["title",e.desc])},d(e.label),3),l("div",j,d(e.desc),1)],42,W)):S("v-if",!0)],64))),128)),$(O,{attach:o(y),trigger:"click",placement:"bottom-right","overlay-class-name":"umo-heading-container-popup","destroy-on-close":"",visible:o(i)},{content:f(()=>[l("div",{ref_key:"popupContentRef",ref:C,class:"umo-heading-container"},[(a(!0),s(u,null,k(o(p),(e,b)=>(a(),s(u,{key:e.value},[b>=4?(a(),s("div",{key:0,class:c(["card",{active:e.value===h.value&&o(r)?.isEditable}]),onMousedown:t[2]||(t[2]=w(()=>{},["prevent"])),onClick:F=>m(e.value)},[l("div",{class:c(["title",e.desc])},d(e.label),3),l("div",q,d(e.desc),1)],42,D)):S("v-if",!0)],64))),128))],512)]),default:f(()=>[l("div",{class:"arrow",onClick:t[1]||(t[1]=e=>i.value=!o(i))},[$(M,{name:"arrow-down"})])]),_:1},8,["attach","visible"])])],10,T)):(a(),E(B,{key:1,text:o(_)("base.heading.tip"),"hide-text":"","menu-type":"select",style:{width:"76px"},placeholder:o(_)("base.heading.text"),borderless:"","select-value":h.value,onMenuClick:m},{default:f(()=>[(a(!0),s(u,null,k(o(p),e=>(a(),E(A,{key:e.value,class:"umo-heading-select-option",value:e.value,label:e.label},{default:f(()=>[l("div",{class:c(["heading-size",e.desc])},d(e.label),3)]),_:2},1032,["value","label"]))),128))]),_:1},8,["text","placeholder","select-value"]))}}},ne=P(G,[["__scopeId","data-v-ecf42a7a"]]);export{ne as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as k,ref as x,resolveComponent as c,openBlock as f,createBlock as y,unref as t,withCtx as i,createVNode as n,normalizeStyle as p,createElementBlock as B,Fragment as w,renderList as S,createElementVNode as m,toDisplayString as b}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{_ as $}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const E=["textContent"],F={__name:"highlight",setup(N){const r=k("editor"),g=[{label:e("base.highlight.yellowBg"),value:1,bgcolor:"#ffff8a"},{label:e("base.highlight.greenBg"),value:2,bgcolor:"#a7ffa7"},{label:e("base.highlight.purpleBg"),value:3,bgcolor:"#e6afff"},{label:e("base.highlight.blueBg"),value:4,bgcolor:"#83d3ff",divider:!0},{label:e("base.highlight.red"),value:5,color:"#e71313"},{label:e("base.highlight.green"),value:6,color:"#128a00",divider:!0}];let a=x();const h=l=>{if(!l){h(g[0]);return}l.bgcolor&&r.value?.chain().focus().setBackgroundColor(l.bgcolor).run(),l.color&&r.value?.chain().focus().setColor(l.color).run(),a.value=l},_=()=>{r.value?.chain().focus().unsetBackgroundColor().run(),r.value?.chain().focus().unsetColor().run(),a.value=void 0};return(l,u)=>{const s=c("icon"),d=c("t-dropdown-item"),v=c("t-dropdown-menu"),C=c("menus-button");return f(),y(C,{text:t(e)("base.highlight.text"),shortcut:"Ctrl+Shift+H","menu-type":"dropdown","popup-handle":"arrow","hide-text":"","overlay-class-name":"umo-highlight-dropdown",disabled:!t(r)?.can().chain().focus().setBackgroundColor().run(),onMenuClick:u[1]||(u[1]=o=>h(t(a)))},{dropmenu:i(()=>[n(v,null,{default:i(()=>[(f(),B(w,null,S(g,o=>n(d,{key:o.value,class:"umo-text-highlight-menu",value:o.value,style:p({backgroundColor:o.bgcolor,color:o.color}),divider:o.divider,onClick:V=>h(o)},{default:i(()=>[n(s,{name:"highlight"}),m("span",null,b(o.label),1)]),_:2},1032,["value","style","divider","onClick"])),64)),n(d,{class:"umo-text-highlight-menu umo-clear-format-menu",onClick:u[0]||(u[0]=o=>_())},{default:i(()=>[n(s,{name:"clear-format"}),m("span",{textContent:b(t(e)("base.highlight.clear"))},null,8,E)]),_:1})]),_:1})]),default:i(()=>[n(s,{name:"highlight",class:"umo-icon-highlight",style:p({backgroundColor:t(a)?.bgcolor,color:t(a)?.color})},null,8,["style"])]),_:1},8,["text","disabled"])}}},L=$(F,[["__scopeId","data-v-ff7ae0a0"]]);export{L as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Extension as A}from"@tiptap/core";import{ref as H}from"vue";const l=H({isRunning:!1,currentParagraph:0,currentTextNode:0,currentChar:0});let h=null,v={totalChars:0,typedChars:0};const U=t=>t.reduce((e,r)=>r.type==="paragraph"&&r.content?r.content.reduce((s,a)=>s+(a.type==="text"?a.text?.length:0),e):e,0),M=A.create({name:"typewriter",addCommands(){return{startTypewriter:(t,e)=>({editor:r,commands:s})=>((async()=>{try{h&&(clearTimeout(h),h=null),l.value={isRunning:!0,currentParagraph:0,currentTextNode:0,currentChar:0},v={totalChars:U(t?.content),typedChars:0};const a=e?.focus===null?null:e?.focus||"end",i=async n=>{await new Promise(g=>{setTimeout(()=>{try{r.chain().insertContent(n).focus(a).run()}catch{}g()},0)})},f=Math.max(e?.speed||1,0),c=n=>n?.type==="paragraph"&&(!n.content||n.content.length===0||n.content.length===1&&n.content[0].type==="text"&&!n.content[0].text),R=async(n,g,p,N=!1)=>{let d=0;if(n.type==="paragraph")if(c(n)){const u=[n];for(let o=g+1;o<p.length&&c(p[o]);o++)u.push(p[o]),d++,l.value.currentParagraph++;await i(u),l.value.currentParagraph++}else{if(await i([{type:"paragraph",attrs:n.attrs}]),n.content&&n.content.length>0)for(let u=0;u<n.content.length;u++){l.value.currentTextNode=u;const o=n.content[u],C=await R(o,u,n.content,!1);u=u+(C||0)}else r.commands.enter();l.value.currentParagraph++}else if(n.type==="text"){const u=n.text||"",o=n.marks||[],C=e?.step||1;for(let y=0;y<u.length;y+=C){if(!l.value.isRunning)return;const I=Math.min(y+C,u.length),x=u.slice(y,I);await new Promise(k=>{h=setTimeout(async()=>{await i([{type:"text",text:x,marks:o}]),l.value.currentChar=y+x.length-1,v.typedChars+=x.length,e?.onProgress&&v.totalChars>0&&e.onProgress(v.typedChars/v.totalChars),k()},f)})}}else if(n.type==="table"){const u=[n];for(let o=g+1;o<p.length&&c(p[o]);o++)u.push(p[o]),d++;u.length===1&&u.push({type:"paragraph"}),await i(u),r.commands.enter()}else N?await i([n,{type:"paragraph"}]):await i([n]);return d},m=t?.content;for(let n=0;n<m.length&&l.value.isRunning;n++){const g=await R(m[n],n,m,!0);n=n+g}l.value.isRunning&&e?.onComplete&&e.onComplete(),l.value.isRunning=!1}catch{}})(),!0),stopTypewriter:()=>()=>(l.value.isRunning=!1,h&&(clearTimeout(h),h=null),!0),getTypewriterState:()=>({isRunning:l.value.isRunning,currentParagraph:l.value.currentParagraph,currentTextNode:l.value.currentTextNode,currentChar:l.value.currentChar})}}}),W=()=>l.value.isRunning,D=t=>t&&typeof t=="string"&&!t.startsWith("<")?t.split(`
|
|
2
|
+
`).map(e=>`<p>${e}</p>`).join(""):t,O=(t,e,r)=>{t.value.isUndoRedo||!r||(e==="editor"?b(t,e,r):j(t,e,r))},b=(t,e,r)=>{if((r?.undone?.eventCount||0)>0)return;const a=r?.done?.eventCount||0;if(a===0)return;const{done:i}=t.value;let f=typeof t.value.editorCount=="number"?t.value.editorCount:i.filter(c=>c.type===e).length;if(f<a){for(let c=f;c<a;c++)i.push({type:e});f=a}t.value.editorCount=f,T(t)},j=(t,e,r)=>{if(!e)return;const{proType:s,newData:a,oldData:i}=r;!s||!a||!i||w(a,i)||(t.value.done.push({type:e,...r}),T(t))},T=t=>{t.value.undone=[]},w=(t,e)=>{if(t===e)return!0;if(t===null||e===null)return t===e;if(typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t))return!Array.isArray(e)||t.length!==e.length?!1:t.every((a,i)=>w(a,e[i]));const r=Object.keys(t),s=Object.keys(e);return r.length!==s.length?!1:r.every(a=>s.includes(a)&&w(t[a],e[a]))}return!1},P=(t,e)=>{t.value.isUndoRedo=!0;try{e()}catch{}setTimeout(()=>{t.value.isUndoRedo=!1},0)},q=(t,e)=>{const{done:r}=t.value;r.length!==0&&P(t,()=>{const s=r.pop();if(e(s),t.value.undone.unshift(s),s?.type==="editor"){const a=typeof t.value.editorCount=="number"?t.value.editorCount:0;t.value.editorCount=Math.max(0,a-1)}})},B=(t,e)=>{const{undone:r}=t.value;r.length!==0&&P(t,()=>{const s=r.shift();if(e(s),t.value.done.push(s),s?.type==="editor"){const a=typeof t.value.editorCount=="number"?t.value.editorCount:0;t.value.editorCount=a+1}})};export{M as T,O as a,D as c,W as g,B as r,q as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as _,ref as v,resolveComponent as a,openBlock as m,createBlock as V,unref as o,withCtx as i,createElementVNode as t,toDisplayString as h,createElementBlock as P,Fragment as z,renderList as R,normalizeStyle as T,createVNode as c,isRef as D,normalizeClass as E}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";const N={class:"umo-page-divider-dropdown"},S={class:"umo-page-divider-item-title"},j=["textContent"],F=["value","title","onClick"],I=["data-type"],L=["textContent"],U={class:"arrow"},q={class:"umo-page-divider-color-picker"},A={__name:"hr",setup(G){const{popupVisible:u,togglePopup:b}=usePopup(),g=_("container"),d=_("editor"),f=[{label:e("insert.hr.signle"),value:"signle"},{label:e("insert.hr.double"),value:"double"},{label:e("insert.hr.dotted"),value:"dotted"},{label:e("insert.hr.dashed"),value:"dashed"},{label:e("insert.hr.dashedDouble"),value:"dashed-double"},{label:e("insert.hr.signleBold"),value:"signle-bold"},{label:e("insert.hr.doubleBoldTop"),value:"double-bold-top"},{label:e("insert.hr.doubleBoldBottom"),value:"double-bold-bottom"},{label:e("insert.hr.wavy"),value:"wavy"}];let s=v("#000"),n=v(!1);const k=r=>{s.value=r,n.value=!1},C=({value:r})=>{!r||!d.value||(d.value.chain().focus().setHorizontalRule({type:r,color:s.value}).run(),u.value=!1)};return(r,p)=>{const x=a("icon"),y=a("picker-color"),w=a("t-popup"),B=a("menus-button");return m(),V(B,{ico:"hr",text:o(e)("insert.hr.text"),"menu-type":"popup",huge:"","popup-visible":o(u),onTogglePopup:o(b)},{content:i(()=>[t("div",N,[t("div",S,[t("span",{textContent:h(o(e)("insert.hr.title"))},null,8,j)]),(m(),P(z,null,R(f,l=>t("div",{key:l.value,class:"umo-page-divider-item",value:l.value,title:l.label,onClick:J=>C(l)},[t("hr",{class:"umo-page-divider","data-type":l.value,style:T({color:o(s)})},null,12,I)],8,F)),64)),c(w,{modelValue:o(n),"onUpdate:modelValue":p[0]||(p[0]=l=>D(n)?n.value=l:n=l),attach:o(g),placement:"right-bottom",trigger:"click"},{content:i(()=>[t("div",q,[c(y,{"default-color":"#000",onChange:k})])]),default:i(()=>[t("div",{class:E(["umo-page-divider-item umo-open-color-picker",{active:o(n)}])},[t("span",{textContent:h(o(e)("insert.hr.color"))},null,8,L),t("div",U,[c(x,{name:"arrow-down"})])],2)]),_:1},8,["modelValue","attach"])])]),_:1},8,["text","popup-visible","onTogglePopup"])}}},X=H(A,[["__scopeId","data-v-91f37d14"]]);export{X as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as m,resolveComponent as r,openBlock as s,createBlock as u}from"vue";import{t as i}from"./i18n-hQyxfD7_.js";import{saveAs as p}from"file-saver";import"@tool-belt/type-predicates";import"vue-i18n";const b={__name:"html",setup(a){const e=m("editor"),o=m("options"),l=()=>{if(!e.value)return;const n=new Blob([e.value.getHTML()],{type:"text/html;charset=utf-8"}),{title:c}=o.value.document,t=c!==""?o.value.document?.title:i("document.untitled");p(n,`${t}.html`)};return(n,c)=>{const t=r("menus-button");return s(),u(t,{ico:"html5",text:"HTML",huge:"",onMenuClick:l})}}};export{b as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{isRecord as o}from"@tool-belt/type-predicates";import{createI18n as r}from"vue-i18n";const a="%cRich Text Editor%cVersion: v{version}",n={ribbon:"Professional",classic:"Classic",toggle:"Toolbar",show:"Show Toolbar",hide:"Hide Toolbar",base:"Home",insert:"Insert",table:"Table",tools:"Tools",page:"Page",view:"View",export:"Export"},i={align:{title:"Alignment",left:"Left",center:"Center",right:"Right",justify:"Justify",distributed:"Distributed"},bgColor:"Background Color of Text",bold:"Bold",letterSpacing:{text:"Letter Spacing",tip:"Current Spacing: {value} Character",reset:"Reset Letter Spacing"},clearFormat:"Clear Text Formatting",code:"Code",color:"Font Color",fontFamily:{text:"Select Font",all:"Common Fonts",recent:"Recently Used",used:"Used Fonts",unsupport:"This font may not display properly, possibly due to it not being installed on this device",download:"Download",downloading:"Downloading",downloadActionTip:"Download and enable this font in current browser",downloadStart:"{font} is downloading and will be enabled automatically when finished",autoDownloadStart:"Downloading required fonts for this document",autoDownloadDone:"Required document fonts downloaded",downloadSuccess:"{font} downloaded and enabled",downloadFailed:"Failed to download {font}, please try again later",noDownloadUrl:"No download URL configured for this font"},fontSize:{text:"Font Size",increase:"Increase Font Size",decrease:"Decrease Font Size",default:"Default","42pt":"First","36pt":"Sub-first","26pt":"First Level","24pt":"Sub-first Level","22pt":"Second Level","18pt":"Sub-second Level","16pt":"Third Level","15pt":"Sub-third Level","14pt":"Fourth Level","12pt":"Sub-fourth Level","10_5pt":"Fifth Level","9pt":"Sub-fifth Level","7_5pt":"Sixth Level","6_5pt":"Sub-sixth Level"},formatPainter:{text:"Format Painter",tip:"Format Painter: Double click to reuse, press ESC to exit"},wordWrap:{text:"Word Wrap",normal:"Normal",breakWord:"Break Word",breakAll:"Break All"},heading:{text:"Title {level}",paragraph:"Normal",tip:"Set heading, can generate document map based on headings"},highlight:{text:"Highlight",clear:"Clear Highlight",yellowBg:"Yellow Background",purpleBg:"Purple Background",greenBg:"Green Background",blueBg:"Blue Background",red:"Red Text",green:"Green Text"},indent:"Increase Indent",italic:"Italic",lineHeight:{text:"Line Height",default:" (Default)"},outdent:"Decrease Indent",margin:{text:"Vertical Spacing",top:"Top",bottom:"Bottom",default:"Default",reset:"Auto Spacing"},markdown:{text:"Markdown",enable:"Enable Markdown",disable:"Disable Markdown",message:"This action will reset the editor, and after switching, current history will be lost, unable to undo, etc. Confirm now?",toggle:"Switch Now"},quote:"Quote",redo:"Redo",selectAll:"Select All",strike:"Strikethrough",subscript:"Subscript",superscript:"Superscript",underline:"Underline",undo:"Undo"},l={audio:"Audio",codeBlock:"Code Block",date:"Chinese Date",emoji:"Emoji",file:"File",hardBreak:"Line Break",hr:{text:"Divider",title:"Divider Style",color:"Divider Color",signle:"Single Line",double:"Double Thin Lines",dotted:"Dotted Line",dashed:"Dashed Line",dashedDouble:"Double Dashed Line",signleBold:"Thick Line",doubleBoldTop:"Thick & Thin Lines (Top)",doubleBoldBottom:"Thin & Thick Lines (Bottom)",wavy:"Wavy Line"},option:{text:"Option",radio:"Radio Button",checkbox:"Checkbox",tip:"Option Type",content:"Option Content",add:"Add Option",checkall:"Show Select All",check:"Select All",confirm:"Confirm",cancel:"Cancel",text1:"Option 1",text2:"Option 2"},image:{text:"Image",block:"Image",blockdesc:"Insert new image node",inline:"Inline Image",inlinedesc:"Insert inline image in the current line"},link:{text:"Link",confirm:"Confirm",remove:"Remove Link",hrefText:"Link Text:",hrefTextTip:"Enter or select link text",href:"Link URL:",hrefTip:"Usually starting with http:// or https://",copy:"Copy Link",copySuccess:"Copy successful",open:"Open Link",edit:"Edit Link"},details:"Details",columns:{text:"Columns",number:"Number of Columns"},tag:"Tag",callout:"Callout",mention:"Mention",bookmark:{text:"Bookmark",set:"Set bookmarks",ok:"Confirmed",textName:"Bookmark name",placeholder:" Please enter the bookmark name...",show:"Show bookmarks",actions:"Actions",delete:"Delete bookmark",emptyError:"Please enter the bookmark name or select the bookmark!"},symbol:"Symbol",template:"Template",textBox:"Text Box",toc:"Document Map",video:"Video",web:{text:"Web Page",insert:"Insert",title:"Insert Web Page",tip:"Some web pages may not support embedding.",type:"Link Type:",url:"Page URL:",placeholder:"Enter a web address, starting with http:// or https://"},footnote:"Footnote"},s={addColumnAfter:"Insert Column After",addColumnBefore:"Insert Column Before",addRowAfter:"Insert Row Below",addRowBefore:"Insert Row Above",borderColor:"Border Color",cellAlign:{text:"Alignment",tip:"Cell Alignment",lt:"Top Left",ct:"Top Center",rt:"Top Right",jt:"Top Justify",lm:"Middle Left",cm:"Middle Center",rm:"Middle Right",jm:"Middle Justify",lb:"Bottom Left",cb:"Bottom Center",rb:"Bottom Right",jb:"Bottom Justify"},cellBgColor:{text:"Background",tip:"Cell Background Color"},deleteColumn:{text:"Delete Column",title:"Delete Table Column",message:"This operation will delete the selected table column. Continue?",delete:"Delete Now",success:"Deleted Successfully"},deleteRow:{text:"Delete Row",title:"Delete Table Row",message:"This operation will delete the selected table row. Continue?",delete:"Delete Now",success:"Deleted Successfully"},delete:{text:"Delete Table",title:"Delete Current Table",message:"This operation will delete the selected table. Continue?",delete:"Delete Now",success:"Deleted Successfully"},fix:{text:"Fix Table",tip:"Click to automatically fix table when it's disordered"},insert:{text:"Insert Table",tip:"Insert New Table",property:"Table Properties",withHeader:"Include Header",rows:"Number of Rows:",cols:"Number of Columns:",create:"Create Table"},mergeCells:"Merge Cells",nextCell:"Next Cell",prevCell:"Previous Cell",splitCell:"Split Cell",toggleHeaderCell:"Header Cell",toggleHeaderRow:"Header Row",toggleHeaderColumn:"Header Column"},d={barcode:{text:"Barcode",edit:"Edit Barcode",title:"Barcode",format:"Format",font:"Font Style",lineColor:"Barcode & Text Color",bgColor:"Barcode Background Color",more:"More",width:"Width:",height:"Height:",margin:"Margin:",displayValue:"Display Text",displayValueText:"Show Text",textContent:"Text Content:",textContentTip:"Overrides barcode content text",textPosition:"Text Position:",top:"Top",bottom:"Bottom",textMargin:"Vertical Distance:",fontSize:"Font Size:",placeholder:"Enter content to convert into barcode",error:"Your input may not comply with the current barcode standard constraints, please check.",preview:"Preview",renderError:"No preview available",notEmpty:"Barcode content cannot be empty"},chineseCase:{text:"Chinese Case",tip:"Chinese Case Conversion"},math:{text:"Mathematics",insert:"Insert LaTeX Math",edit:"Edit LaTeX Math",update:"Update Math",inline:"Inline Math",block:"Block Math",placeholder:"Enter LaTeX or select from the right",preview:"Math Preview Area",template:"Math templates",cancel:"Cancel",confirm:"Insert Math"},diagrams:{text:"Diagram",edit:"Edit Diagram",loading:"Loading..."},mermaid:{text:"Mermaid",edit:"Edit Mermaid",theme:"Select Theme",themes:{default:"Default Theme",base:"Simple Theme",dark:"Dark Theme",forest:"Forest Theme",neutral:"Neutral Theme"},copy:"Copy Code",clear:"Clear Code",copied:"Code Copied to Clipboard",placeholder:"Enter or paste Mermaid code",preview:"Preview",notEmpty:"Mermaid content cannot be empty",codeEmpty:"Mermaid code cannot be empty",notLoaded:"Mermaid is still loading",keepSize:"Keep Original Size",renderError:"Syntax error in graph"},echarts:{text:"Chart",add:"Create a new chart",edit:"Change Chart",source:"Advanced Mode",visualization:"Basic Mode",placeholder:"Please enter or paste data in echarts format",sourceerror:"Echarts structure is incorrect, please confirm!",sourceerror2:"Echarts structure incorrect or undefined!",dataGrid:"Data Grid",setting:"Settings",settingError:"Please confirm if the preview view is displayed correctly!",set:{bar:"Bar",line:"Line",pie:"Pie",top:"Top",bottom:"Bottom",left:"Left",center:"Center",right:"Right",horizontal:"Horizontal",vertical:"Vertical",smooth:"Smooth",seriesType:"Chart type",legend:"Show Legend",legendorient:"Legend layout",legendlocation:"Legend vertical",legendleft:"Legend horizontal",titleText:"Chart title",titleTextPlaceholder:"Please enter a title name...",titleleft:"Title Position"}},mindMap:"Mind Map",qrcode:{text:"QR Code",edit:"Edit QR Code",level:"QR Code Error Correction Level",levelL:"Low",levelM:"Medium",levelQ:"Quartile",levelH:"High",padding:"padding:",paddingTip:"white space padding",width:"Size:",widthTip:"QR Code size in pixels",color:"QR Code Color",bgColor:"Color of background",placeholder:"Enter or paste content to convert into QR Code",preview:"Preview",renderError:"QR Code generation failed",notEmpty:"QR Code content cannot be empty"},signature:{text:"E-Signature",title:"Insert Electronic Signature",clear:"Clear",lineWidth:"Pen Thickness",lineColor:"Pen Color",smooth:"Show Brush Strokes",reset:"Reset Options",tip:"Please sign in the this area",notEmpty:"No signature detected"}},c={bg:{text:"Background",custom:"Custom Page Background",default:"Default",color1:`Eye-friendly
|
|
2
|
+
Green`,color2:`Elegant
|
|
3
|
+
Yellow`,color3:`Cloudy
|
|
4
|
+
Blue`,color4:"Sky Blue",color5:`Dark Night
|
|
5
|
+
Black`},breakMarks:"Line Breaks",break:"Page Break",lineNumber:"Line Numbers",margin:"Margins",orientation:{text:"Orientation",landscape:"Landscape",portrait:"Portrait"},preview:"Presentation",size:{text:"Size",cm:"CM",custom:"Custom Settings"},watermark:{text:"Watermark",fontFamily:"Watermark Font",fontSize:"Watermark Size",fontColor:"Watermark Color",content:"Watermark Text",type:"Watermark Style",compact:"Compact",spacious:"Spacious",clear:"Remove Watermark"}},p={zoom:"Zoom",zoomOriginal:"Original Size",zoomAuto:"Best Fit",theme:"Theme",themeLight:"Light mode",themeDark:"Dark mode",skin:"Appearance",skinDefault:"Default",skinModern:"Modern",locale:"Language"},m={bullet:{text:"Bulleted List",disc:"Filled Circle",circle:"Open Circle",square:"Filled Square"},ordered:{text:"Numbered List",property:"List Properties",startAt:"Starting Number:",decimal:"Numbers",decimalLeadingZero:"Numbers with Leading Zero",lowerRoman:"Lowercase Roman Numerals",upperRoman:"Uppercase Roman Numerals",lowerLatin:"Lowercase Alphabet",upperLatin:"Uppercase Alphabet",tradChineseInformal:"Traditional Chinese Counting",simpChineseFormal:"Formal Uppercase Chinese Counting"},task:{text:"To-Do List",split:"Add Task",sink:"Convert to Sub-task",lift:"Remove as Task"}},u={default:"Default Color",standard:"Standard Colors",recent:"Recently Used",more:"More Colors"},g={insert:"Insert Content",template:"Insert Template",common:"Common actions",clearFormat:"Clear formatting",duplicate:"Duplicate",copy:"Copy",cut:"Cut",delete:"Delete"},h={code:{copy:{text:"Copy Code",success:"Code copied to clipboard"},languages:"Languages",lineNumbers:"Show Line Numbers",themes:{text:"Theme",light:"Light Theme",dark:"Dark Theme"},wordWrap:"Word Wrap"},file:{autoWidth:"Fit Width",download:"Download File"},image:{open:"Open in a new window",draggable:"Image Floating",flipX:"Flip Horizontally",flipY:"Flip Vertically",preview:"Preview Image",proportion:"Lock Image Aspect Ratio",reset:"Reset Image Position",rotateCC:"Rotate Counter-Clockwise 90°",rotateC:"Rotate Clockwise 90°",convertToNode:"Convert to Block Image",convertToInline:"Convert to Inline Image"},textBox:{background:"Background Color",border:"Border Settings",borderColor:"Border Color",borderStyle:"Border Style",noBorder:"No Border",writingMode:"Writing Mode",horizontalTb:"Horizontal Text",verticalLr:"Vertical Text (Left to Right)",verticalRl:"Vertical Text (Right to Left)"},callout:{removeEmoji:"Remove Emoji",background:"Background Color"},tag:{placeholder:"Tag Name",content:"Tag Name",background:"Background Color",color:"Text Color",delete:"Delete Tag"},webpage:{clickable:"Toggle Clickable",open:"Open in a new window"},toFile:"Convert to File",delete:"Delete"},b={title:"Page Settings",size:{text:"Page Size",width:"Width:",height:"Height:",custom:"Custom"},margin:{text:"Page Margins",default:"Default",narrow:"Narrow",moderate:"Moderate",wide:"Wide",top:"Top:",right:"Right:",bottom:"Bottom:",left:"Left:"}},w={untitled:"Untitled Document",headingPlaceholder:"Enter Title"},f={text:"Search",title:"Search and Replace",searchText:"Search...",replaceText:"Replace...",caseSensitive:"Case Sensitive",search:"Search",replace:"Replace",replaceAll:"Replace All"},x={title:"Document Map",show:"Document Map",hide:"Hide Document Map",empty:"No Document Map Available"},C={enable:"Enable Spell Check",disable:"Disable Spell Check"},k={title:"Keyboard Shortcuts",text:"Text",commonlyUsed:"Common",copy:"Copy",paste:"Paste",pasteAsText:"Paste as Plain Text",paragraph:"Insert New Paragraph",hardBreak:"Line Break",format:"Text",page:"Page",pageZoomIn:"Zoom In",pageZoomOut:"Zoom Out",pageZoomReset:"Reset Zoom to Default",pageAutoWidth:"Fit to Best Width",markdown:"Markdown"},y={title:"Switch Language",message:"After changing the language, the page will refresh. Please save your document content first. Are you sure you want to switch now?",confirm:"Switch"},v={title:"Reset Settings",message:"This action will clear all editor settings and current content, and refresh the page. It's recommended to save your content before resetting. Are you sure you want to reset now?",reset:"Reset"},T={title:"About Editor",version:"Version"},S={web:"Web View",page:"Page View"},B={characters:"Characters",title:"Document Statistics",input:"Characters Typed",selection:"Selected Characters",limit:"Character Limit"},L={title:"Presentation",disable:"Exit Presentation",countdown:{title:"Set Countdown",select:"Select",selectTip:"Select the countdown duration",custom:"Custom",hours:"Hours",minutes:"Minutes",seconds:"Seconds",whenEnd:"When End",showEndMessage:"Show end message",exitPreview:"Exit presentation mode",start:"Start",cancel:"Cancel","1hour":"1 Hour","45minutes":"45 Minutes","30minutes":"30 Minutes","15minutes":"15 Minutes","10minutes":"10 Minutes","5minutes":"5 Minutes",error:"Please set a valid countdown time",endCountdown:"Countdown has ended",remaining:"Remaining time"},laserPointer:"Laser Pointer"},D={title:"Fullscreen",disable:"Exit Fullscreen"},M={zoomIn:"Zoom In",zoomOut:"Zoom Out",level:"Zoom Level: ",autoWidth:"Best Fit Width",autoWidthError:"Error calculating automatic page width",reset:"Back to 100%"},P={codeBlock:{menu:"Menu"},image:{loading:"Loading image...",error:"Image load failed"},textBox:{tip:"Double-click to edit"}},R={uploading:"Uploading file...",download:"Download File",limit:'File "{filename}" exceeds the limit of {size}MB',notAllow:{title:"Error Message",message:"Insertion of this file type is not allowed in the current document."}},E={placeholder:"Please enter content"},F={noResult:"No result"},A={text:"Save",saved:"Saved",unsaved:"Unsaved",network:"Network Status:",online:"Online",offline:"Offline",saving:"Saving document...",savedAt:"Saved at:",savedAtText:"Saved at {time}",failed:"Failed to save document",success:"Document saved successfully",error:"Error saving document",cache:{text:"Restore from Cache",error:{title:"Error Message",message:"There is no content in the cache!"}}},z={text:"Print",title:"Print Document",message:"Before printing the document, please ensure that all images on the pages have finished loading. To ensure that all content is displayed correctly, please check the 'Background graphics' option in the print dialog box and set the 'Margins' to 'None.'",confirm:"Print Now"},I={cancel:"Cancel"},N={notSupported:"Browser does not support copy function",copyFailed:"Copy failed"},W={imagePlaceholder:"[Image]",dialog:{title:"Notice",body:"The clipboard content has been pasted, but included images were not processed correctly. Please manually copy and replace the unprocessed images in the document."}},$={welcome:a,toolbar:n,base:i,insert:l,table:s,tools:d,page:c,view:p,export:{embed:{text:"Embed",title:"Embed Code",tip:"After copying, manually adjust the iframe width and height for optimal viewing.",copy:"Copy",copied:"Code copied to clipboard"},image:{text:"Image",jpg:"JPG",png:"PNG",error:{title:"Error Message",message:"Failed to export image, please try again or refresh the page."}},share:{text:"Share",tip:"Copy the link and send it to those you want to share with.",copy:"Copy Link",copied:"Link copied to clipboard"},pdf:{text:"PDF Document",title:"Export PDF Document",message:"Before exporting the PDF document, please ensure that all images on the pages have finished loading. Then, in the pop-up print dialog, select 'Printer - Save as PDF', and click the 'Save' button. To ensure that all content is displayed correctly, please check the 'Background graphics' option in the print dialog box and set the 'Margins' to 'None.'",confirm:"I Understand"},text:"Text"},list:m,colorPicker:u,blockMenu:g,bubbleMenu:h,pageOptions:b,document:w,search:f,toc:x,spellcheck:C,shortcut:k,changeLocale:y,resetAll:v,about:T,layout:S,wordCount:B,preview:L,fullscreen:D,zoom:M,node:P,file:R,callout:E,mention:F,save:A,print:z,dialog:I,copy:N,officePaste:W},H="%c富文本编辑器%c当前版本:v{version}",O={ribbon:"专业工具栏",classic:"经典工具栏",toggle:"切换工具栏",show:"显示工具栏",hide:"隐藏工具栏",base:"开始",insert:"插入",table:"表格",tools:"工具",page:"页面",view:"视图",export:"导出"},U={align:{title:"对齐方式",left:"左对齐",center:"居中对齐",right:"右对齐",justify:"两端对齐",distributed:"分散对齐"},bgColor:"字体背景颜色",bold:"粗体",letterSpacing:{text:"字间距",tip:"当前间距: {value} 字符",reset:"重置字间距"},clearFormat:"清除文本格式",code:"代码",color:"字体颜色",fontFamily:{text:"选择字体",all:"常用字体",recent:"最近使用",used:"已使用字体",unsupport:"可能无法正常显示该字体,可能是本机未安装该字体",download:"下载",downloading:"下载中",downloadActionTip:"下载并在当前浏览器启用该字体",downloadStart:"{font} 正在下载,下载后将自动启用",autoDownloadStart:"正在下载文档所需字体",autoDownloadDone:"文档所需字体已下载完成并启用",downloadSuccess:"{font} 已下载并启用",downloadFailed:"{font} 下载失败,请稍后重试",noDownloadUrl:"该字体未配置下载地址"},fontSize:{text:"字体大小",increase:"增大字号",decrease:"减小字号",default:"默认","42pt":"初号","36pt":"小初","26pt":"一号","24pt":"小一","22pt":"二号","18pt":"小二","16pt":"三号","15pt":"小三","14pt":"四号","12pt":"小四","10_5pt":"五号","9pt":"小五","7_5pt":"六号","6_5pt":"小六"},formatPainter:{text:"格式刷",tip:"格式刷:双击可重复使用,按 ESC 退出"},wordWrap:{text:"文字换行方式",normal:"正常换行",breakWord:"按词换行",breakAll:"强制换行"},heading:{text:"标题 {level}",paragraph:"正文",tip:"设置标题,可依据标题生成大纲"},highlight:{text:"高亮显示",clear:"清除高亮显示",yellowBg:"黄色背景",purpleBg:"紫色背景",greenBg:"绿色背景",blueBg:"蓝色背景",red:"红色字体",green:"绿色字体"},indent:"增加缩进",italic:"斜体",lineHeight:{text:"行高",default:" (默认)"},outdent:"减少缩进",margin:{text:"上下间距",top:"上间距",bottom:"下间距",default:"默认",reset:"自动间距"},markdown:{text:"Markdown",enable:"开启 Markdown 模式",disable:"关闭 Markdown 模式",message:"此操作会重置编辑器,切换后当前历史记录会丢失,将无法进行“撤回”等操作,确定要现在切换吗?",toggle:"立即切换"},quote:"引用",redo:"重做",selectAll:"全选",strike:"中划线",subscript:"下标",superscript:"上标",underline:"下划线",undo:"撤消"},j={audio:"音频",codeBlock:"代码块",date:"日期",emoji:"表情",file:"文件",hardBreak:"换行符",hr:{text:"分隔线",title:"分割线类型",color:"分割线颜色",signle:"细线",double:"双细线",dotted:"点线",dashed:"虚线",dashedDouble:"双虚线",signleBold:"粗线",doubleBoldTop:"粗细线",doubleBoldBottom:"细粗线",wavy:"波浪线"},option:{text:"选项",radio:"单选",checkbox:"复选",tip:"选项类型",content:"选项内容",add:"添加选项",checkall:"显示全选",check:"全选",confirm:"确定",cancel:"取消",text1:"选项1",text2:"选项2"},image:{text:"图片",block:"图片",blockdesc:"插入新的图片节点",inline:"内联图片",inlinedesc:"在当前行插入内联图片"},link:{text:"链接",confirm:"确定",remove:"移除链接",hrefText:"链接文本:",hrefTextTip:"请输入或选中链接文本",href:"链接地址:",hrefTip:"一般以 http:// 或 https:// 开头",copy:"复制链接",copySuccess:"复制成功",open:"打开链接",edit:"编辑链接"},details:"详情",columns:{text:"分栏",number:"选择分栏数量"},tag:"标签",callout:"高亮块",mention:"提及某人",bookmark:{text:"书签",set:"设置书签",ok:"确定",textName:"书签名称",placeholder:"请输入书签名称...",show:"显示书签",actions:"操作",delete:"删除书签",emptyError:"请输入书签名称或者选择书签"},symbol:"特殊字符",template:"模板",textBox:"文本框",toc:"页面大纲",video:"视频",web:{text:"网页",insert:"插入",title:"插入网页",tip:"某些网页可能不支持嵌入。",type:"链接类型:",url:"网页地址:",placeholder:"请输入网页地址,以 http:// 或 https:// 开头"},footnote:"脚注"},V={addColumnAfter:"插入列(右)",addColumnBefore:"插入列(左)",addRowAfter:"插入行(后)",addRowBefore:"插入行(前)",borderColor:"边框颜色",cellAlign:{text:"对齐方式",tip:"单元格对齐方式",lt:"靠上左对齐",ct:"靠上居中对齐",rt:"靠上右对齐",jt:"靠上两端对齐",lm:"中间左对齐",cm:"中间居中对齐",rm:"中间右对齐",jm:"中间两端对齐",lb:"靠下左对齐",cb:"靠下居中对齐",rb:"靠下右对齐",jb:"靠下两端对齐"},cellBgColor:{text:"背景颜色",tip:"单元格背景颜色"},deleteColumn:{text:"删除列",title:"删除表格列",message:"此操作会删除当前选中的表格列,是否继续?",delete:"立即删除",success:"删除成功"},deleteRow:{text:"删除行",title:"删除表格行",message:"此操作会删除当前选中的表格行,是否继续?",delete:"立即删除",success:"删除成功"},delete:{text:"删除表格",title:"删除当前表格",message:"此操作会删除当前整个表格,是否继续?",delete:"立即删除",success:"删除成功"},fix:{text:"修复",tip:"当表格有错乱时,点击此按钮可自动修复表格"},insert:{text:"插入表格",tip:"插入新表格",property:"表格属性",withHeader:"包含表头",rows:"行数:",cols:"列数:",create:"创建表格"},mergeCells:"合并单元格",nextCell:"下一个单元格",prevCell:"上一个单元格",splitCell:"拆分单元格",toggleHeaderCell:"切换表头单元格",toggleHeaderRow:"切换表头行",toggleHeaderColumn:"切换表头列"},Z={barcode:{text:"条形码",edit:"编辑条形码",title:"条形码生成",format:"条形码标准",font:"文字字体",lineColor:"条形码及文字颜色",bgColor:"条形码背景颜色",more:"更多",width:"单个条形的宽度:",height:"条形码的高度:",margin:"条形码四周留白:",displayValue:"是否显示文字",displayValueText:"显示文字",textContent:"文字内容:",textContentTip:"填写后会覆盖条形码内容文本",textPosition:"文字所在位置:",top:"顶部",bottom:"底部",textMargin:"文字上下距离:",fontSize:"文字字体大小:",placeholder:"请输入要转化成条形码的内容",error:"您输入的内容可能不符合当前选择的条形码规范约束,请检查。",preview:"预览",renderError:"当前无预览内容",notEmpty:"条形码内容不能为空"},chineseCase:{text:"中文大小写",tip:"中文大小写"},math:{text:"公式",insert:"插入 LaTex 公式",edit:"编辑公式",update:"更新公式",inline:"行内公式",block:"块级公式",placeholder:"请输入 LaTex 公式或从右侧选择",preview:"公式预览区域",template:"常用公式",cancel:"取消",confirm:"插入公式"},diagrams:{text:"流程图",edit:"编辑流程图",loading:"加载中..."},mermaid:{text:"Mermaid",edit:"编辑 Mermaid",theme:"选择主题",themes:{default:"默认主题",base:"简约主题",dark:"深色主题",forest:"森林主题",neutral:"中性主题"},copy:"复制代码",clear:"清除代码",copied:"代码已复制到剪切板",placeholder:"请输入或粘贴 Mermaid 代码",preview:"预览",notEmpty:"Mermaid 内容不能为空",codeEmpty:"Mermaid 代码不能为空",notLoaded:"Mermaid 尚未加载完成",keepSize:"保持修改前的大小",renderError:"Mermaid 渲染错误,请修改后重试"},echarts:{text:"图表",add:"新建图表",edit:"更改图表",source:"高级模式",visualization:"基础模式",placeholder:"请输入或粘贴 echarts 格式的数据",sourceerror:"echarts 结构不正确,请确认!",sourceerror2:"echarts 结构不正确或未定义!",dataGrid:"数据",setting:"设置",settingError:"请确认预览视图是否正确显示!",set:{bar:"柱状图",line:"折线图",pie:"饼图",top:"顶部",bottom:"底部",left:"居左",center:"居中",right:"居右",horizontal:"水平",vertical:"垂直",smooth:"平滑折线",seriesType:"图表类型",legend:"显示图例",legendorient:"图例布局",legendlocation:"图例纵向位置",legendleft:"图例横向位置",titleText:"标题名称",titleTextPlaceholder:"请输入标题名称...",titleleft:"标题位置"}},mindMap:"思维导图",qrcode:{text:"二维码",edit:"编辑二维码",level:"二维码容错能力",levelL:"低",levelM:"中",levelQ:"高",levelH:"最高",padding:"四周留白:",paddingTip:"二维码四周留白大小",width:"宽高度:",widthTip:"二维码的宽度和高度",color:"二维码颜色",bgColor:"二维码背景颜色",placeholder:"请输入或粘贴要转化成二维码的内容",preview:"预览",renderError:"二维码生成失败",notEmpty:"二维码内容不能为空"},signature:{text:"电子签名",title:"插入电子签名",clear:"清空画布",lineWidth:"画笔粗细",lineColor:"画笔颜色",smooth:"显示笔锋",reset:"重置设置",tip:"请在当前区域签名",notEmpty:"没有检测到您的签名"}},Q={bg:{text:"页面背景",custom:"自定义页面背景",default:"默认背景",color1:"护眼绿",color2:"淡雅黄",color3:"云水蓝",color4:"天空蓝",color5:"暗夜黑"},breakMarks:"显示换行",break:"分页符",lineNumber:"显示行号",margin:"页边距",orientation:{text:"页面方向",landscape:"横向",portrait:"纵向"},size:{text:"页面大小",cm:"厘米",custom:"自定义设置"},watermark:{text:"页面水印",fontFamily:"水印文字字体",fontSize:"水印文字大小",fontColor:"水印文字颜色",content:"水印文字内容",type:"水印类型",compact:"紧凑型",spacious:"宽松型",clear:"清除水印"}},G={zoom:"缩放比例",zoomOriginal:"原始比例",zoomAuto:"最佳比例",theme:"主题设置",themeLight:"浅色主题",themeDark:"深色主题",skin:"外观设置",skinDefault:"默认外观",skinModern:"现代外观",locale:"语言设置"},q={bullet:{text:"无序列表",disc:"实心圆点",circle:"空心圆点",square:"实心方块"},ordered:{text:"有序列表",property:"列表属性",startAt:"起始编号:",decimal:"数字",decimalLeadingZero:"以 0 的开头的数字",lowerRoman:"小写罗马数字",upperRoman:"大写罗马数字",lowerLatin:"小写英文编号",upperLatin:"大写英文编号",tradChineseInformal:"中文编号",simpChineseFormal:"大写中文编号"},task:{text:"待办事项",split:"增加任务",sink:"设为子任务",lift:"移除任务"}},_={default:"默认颜色",standard:"标准色",recent:"最近使用",more:"更多颜色"},J={insert:"插入新内容",template:"插入模板",common:"常用操作",clearFormat:"清除格式",duplicate:"复制节点",copy:"复制",cut:"剪切",delete:"删除"},X={code:{copy:{text:"复制代码",success:"代码已复制到剪贴板"},languages:"语言列表",lineNumbers:"显示行号",themes:{text:"主题",light:"浅色主题",dark:"深色主题"},wordWrap:"自动换行"},file:{autoWidth:"自动宽度",download:"下载文件"},image:{open:"新窗口打开",draggable:"图片浮动",flipX:"水平翻转",flipY:"垂直翻转",preview:"预览图片",proportion:"锁定图片缩放比例",reset:"重置图片位置",rotateCC:"逆时针旋转90度",rotateC:"顺时针旋转90度",convertToNode:"转为块图片",convertToInline:"转为行内图片"},textBox:{background:"背景颜色",border:"边框设置",borderColor:"边框颜色",borderStyle:"边框样式",noBorder:"不显示边框",writingMode:"文字排列方式",horizontalTb:"默认",verticalLr:"垂直排列(从左到右)",verticalRl:"垂直排列(从右到左)"},callout:{removeEmoji:"移除表情",background:"背景颜色"},tag:{placeholder:"标签名称",content:"标签内容",background:"背景颜色",color:"文字颜色",delete:"删除标签"},webpage:{clickable:"切换到可点击",open:"新窗口打开"},toFile:"转为文件",delete:"删除"},Y={title:"页面设置",size:{text:"页面尺寸",width:"宽:",height:"高:",custom:"自定义"},margin:{text:"页面边距",default:"默认",narrow:"窄",moderate:"适中",wide:"宽",top:"上:",right:"右:",bottom:"下:",left:"左:"}},K={untitled:"未命名文档",headingPlaceholder:"请输入标题"},ee={text:"查找替换",title:"查找和替换",searchText:"要查找的字符",replaceText:"要替换的字符",caseSensitive:"区分大小写(英文)",search:"查找",replace:"替换",replaceAll:"全部替换"},te={title:"页面大纲",show:"显示大纲",hide:"隐藏大纲",empty:"暂无页面大纲"},oe={enable:"开启拼写检查",disable:"关闭拼写检查"},re={title:"快捷键列表",text:"文字",commonlyUsed:"常用快捷键",copy:"复制",paste:"粘贴",pasteAsText:"粘贴为纯文本",paragraph:"插入新段落",hardBreak:"换行",format:"文字格式",page:"页面显示",pageZoomIn:"页面放大",pageZoomOut:"页面缩小",pageZoomReset:"缩放到初始比例",pageAutoWidth:"缩放到最佳比例",markdown:"Markdown 格式"},ae={title:"切换语言",message:"切换语言后,页面将刷新,请先保存文档内容,确定要现在切换吗?",confirm:"立即切换"},ne={title:"重置设置",message:"此操作会清空所有的编辑器设置数据,包括当前编辑的内容,并刷新页面,建议保存内容后再重置,确定要现在重置吗?",reset:"立即重置"},ie={title:"关于编辑器",version:"当前版本"},le={characters:"字符",title:"文档信息统计",input:"已输入字数",selection:"已选中字数",limit:"字数限制"},se={web:"Web 视图",page:"页面视图"},de={title:"演示模式",disable:"关闭演示模式",countdown:{title:"设置倒计时",select:"快速选择",selectTip:"请选择倒计时长",custom:"自定义",hours:"小时",minutes:"分钟",seconds:"秒",whenEnd:"结束时",showEndMessage:"弹出演示结束提示信息",exitPreview:"直接退出演示模式",start:"开始倒计时",cancel:"取消","1hour":"1小时","45minutes":"45分钟","30minutes":"半小时","15minutes":"15分钟","10minutes":"10分钟","5minutes":"5分钟",error:"请设置有效的倒计时时间",endCountdown:"倒计时已结束",remaining:"倒计时剩余"},laserPointer:"激光笔"},ce={title:"全屏模式",disable:"退出全屏"},pe={zoomIn:"增加缩放",zoomOut:"减小缩放",level:"当前缩放比例:",autoWidth:"最佳宽度",autoWidthError:"页面自动宽度计算出错",reset:"快速设置为 100%"},me={codeBlock:{menu:"菜单栏"},image:{loading:"正在加载图片...",error:"图片加载错误"},textBox:{tip:"双击进行编辑"}},ue={uploading:"文件上传中...",preview:"预览文件",download:"下载文件",limit:"文件”{filename}“大小超过 {size}MB 的限制",unknownName:"未知名称",unknownSize:"未知大小",notAllow:{title:"错误提示",message:"当前文档不允许插入该类型的文件。"}},ge={placeholder:"请输入内容"},he={noResult:"无结果"},be={text:"保存文档",saved:"文档已保存",unsaved:"文档未保存",network:"网络状态:",online:"在线",offline:"离线",saving:"正在保存文档...",savedAt:"保存时间:",savedAtText:"{time}保存",failed:"文档保存失败",success:"文档保存成功",error:"文档保存出错",cache:{text:"从缓存中恢复",error:{title:"错误提示",message:"当前缓存中没有内容!"}}},we={text:"打印",title:"打印文档",message:"打印文档前,请确保所有页面中的图片已加载完毕。为确保所有内容正确显示,请在打印框中勾选 “背景图形”选项,并将 “边距”设为“无”。",confirm:"立即打印"},fe={cancel:"取消"},xe={notSupported:"当前浏览器不支持复制功能",copyFailed:"复制失败"},Ce={imagePlaceholder:"[图片]",dialog:{title:"提示信息",body:"剪贴板内容已粘贴,但包含的图片未被正确处理,请手动复制替换文档中未处理的图片。"}},ke={welcome:H,toolbar:O,base:U,insert:j,table:V,tools:Z,page:Q,view:G,export:{embed:{text:"Embed",title:"Embed 嵌入",tip:"复制后,请手动修改 iframe 的宽度和高度,以便获得更好的浏览效果。",copy:"复制",copied:"代码已复制到剪切板"},image:{text:"图片",jpg:"JPG 格式",png:"PNG 格式",error:{title:"错误提示",message:"导出图片失败,请重试或尝试刷新页面。"}},share:{text:"分享文档",tip:"复制链接发给需要分享的人。",copy:"复制链接",copied:"链接已复制到剪切板"},pdf:{text:"PDF文档",title:"导出 PDF 文档",message:"导出 PDF 文档前,请确保所有页面中的图片已加载完毕。然后在弹出的打印框中选择“打印机 - 另存为PDF”,再点击“保存”按钮即可。为确保所有内容正确显示,请在打印框中勾选 “背景图形”选项,并将 “边距”设为“无”。",confirm:"我知道了"},text:"文本文档"},list:q,colorPicker:_,blockMenu:J,bubbleMenu:X,pageOptions:Y,document:K,search:ee,toc:te,spellcheck:oe,shortcut:re,changeLocale:ae,resetAll:ne,about:ie,wordCount:le,layout:se,preview:de,fullscreen:ce,zoom:pe,node:me,file:ue,callout:ge,mention:he,save:be,print:we,dialog:fe,copy:xe,officePaste:Ce},ye=r({legacy:!1,locale:"zh-CN",defaultLocale:"zh-CN",warnHtmlMessage:!1,messages:{"en-US":$,"zh-CN":ke}}),{global:t}=ye,{t:Se}=t,Be=e=>{if(typeof e=="string")return e;if(o(e))return e[t.locale.value.replace("-","_")]},Le=()=>t;export{ye as i,Be as l,Se as t,Le as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{computed as r,openBlock as n,createElementBlock as c,normalizeStyle as i,createElementVNode as l}from"vue";const u=["width","height"],s=["xlink:href"],h={__name:"icon",props:{name:{type:String,required:!0},size:{type:String,default:"1em"},color:{type:String,default:"currentcolor"}},setup(t){const e=t,o=r(()=>{if(!(!e.color||e.color==="currentcolor"))return{color:e.color}});return(a,d)=>(n(),c("svg",{class:"umo-icon","aria-hidden":"true",width:t.size,height:t.size,style:i(o.value)},[l("use",{"xlink:href":`#umo-icon-${e.name}`},null,8,s)],12,u))}};export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as t,resolveComponent as o,openBlock as r,createBlock as k,unref as h,withCtx as i,createVNode as a,createElementBlock as x,Fragment as b,renderList as y,createElementVNode as c,toDisplayString as s}from"vue";import{t as n}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const C={class:"umo-image-dropdown-title"},F={class:"umo-image-dropdown-description"},D={__name:"image",setup(B){const m=t("container"),d=t("editor"),u=t("uploadFileMap"),p=[{title:n("insert.image.block"),value:"image",icon:"image",description:n("insert.image.blockdesc")},{title:n("insert.image.inline"),value:"inlineImage",icon:"image-inline",description:n("insert.image.inlinedesc")}],_=l=>{d.value?.chain().focus().selectFiles(l,m,u.value).run()};return(l,E)=>{const g=o("icon"),v=o("t-dropdown-item"),w=o("t-dropdown-menu"),f=o("menus-button");return r(),k(f,{ico:"image",text:h(n)("insert.image.text"),"menu-type":"dropdown",huge:"","overlay-class-name":"umo-image-dropdown"},{dropmenu:i(()=>[a(w,null,{default:i(()=>[(r(),x(b,null,y(p,e=>a(v,{key:e.value,value:e.value,onClick:I=>_(e.value)},{default:i(()=>[a(g,{name:e.icon,class:"umo-image-dropdown-icon"},null,8,["name"]),c("div",null,[c("div",C,s(e.title),1),c("div",F,s(e.description),1)])]),_:2},1032,["value","onClick"])),64))]),_:1})]),_:1},8,["text"])}}};export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as t,resolveComponent as x,openBlock as f,createBlock as _,unref as y,nextTick as b}from"vue";import{t as e}from"./i18n-hQyxfD7_.js";import{a as h}from"./dialog-BnThXCWu.js";import $ from"dom-to-image-more";import{saveAs as k}from"file-saver";import"@tool-belt/type-predicates";import"vue-i18n";import"tdesign-vue-next";const F={__name:"image",setup(w){const{toBlob:s}=$,i=t("container"),r=t("exportFile"),o=t("page"),c=t("options"),p=[{content:e("export.image.png"),value:"png"},{content:e("export.image.jpg"),value:"jpg"}],u=async({content:m,value:l})=>{if(!m)return;const{zoomLevel:n}=o.value;r.value.image=!0;try{o.value.zoomLevel=100,await b();const a=document.querySelector(`${i} .umo-page-content`),g=await s(a,{scale:devicePixelRatio}),{title:v}=c.value.document,d=v!==""?c.value?.document?.title:e("document.untitled");k(g,`${d}${devicePixelRatio>1?`@${devicePixelRatio}x`:""}.${l}`)}catch{const a=h({attach:i,theme:"warning",header:e("export.image.error.title"),body:e("export.image.error.message"),onConfirm(){a.destroy()}})}finally{o.value.zoomLevel=n,r.value.image=!1}};return(m,l)=>{const n=x("menus-button");return f(),_(n,{ico:"image",text:y(e)("export.image.text"),"menu-type":"dropdown",huge:"","select-options":p,onClick:u},null,8,["text"])}}};export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ref as x,watch as nt,computed as k,openBlock as z,createElementBlock as N,normalizeStyle as q,normalizeClass as it,renderSlot as ot,Fragment as A,renderList as rt,withModifiers as F,createElementVNode as I,createCommentVNode as T}from"vue";import{_ as at}from"./_plugin-vue_export-helper-DlAUqK2U.js";const lt=["data-side","onPointerdown"],st={__name:"image-resizer",props:{selected:{type:Boolean,default:!1},rotatable:{type:Boolean,default:!1},resizable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},angle:{type:Number,default:0},width:{type:Number,default:0},height:{type:Number,default:0},left:{type:Number,default:0},top:{type:Number,default:0},minWidth:{type:Number,default:14},minHeight:{type:Number,default:14},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0},zIndex:{type:Number,default:0},equalProportion:{type:Boolean,default:!1},scaleRatio:{type:Number,default:1}},emits:["rotate","resize","drag-end","mousedown","focus"],setup(r,{expose:V,emit:X}){const o=r,f=X,p=x(null),v=x(!1),y=x(0),b=x(0),a=x(null);V({get $el(){return p.value}});function S(){const t=Number(o.scaleRatio);return t>0?t:1}function Y(){return a.value?.width?a.value.width:v.value&&y.value>0?y.value:o.width>0?o.width:0}function K(){return a.value?.height?a.value.height:v.value&&b.value>0?b.value:o.height>0?o.height:0}function U(){if(!a.value)return;const{width:t,height:e}=a.value,n=Number(o.width),i=Number(o.height);n>0&&i>0&&Math.abs(n-t)<1&&Math.abs(i-e)<1&&(a.value=null,y.value=0,b.value=0)}nt(()=>[o.width,o.height],U);const j=k(()=>{const t={zIndex:o.zIndex,transform:`rotate(${o.angle||0}deg)`},e=Y(),n=K();return e>0&&(t.width=`${e}px`),n>0&&(t.height=`${n}px`),o.left&&(t.left=`${o.left}px`),o.top&&(t.top=`${o.top}px`),t}),G=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],J=k(()=>G.map(t=>({side:t,style:O(t)})));function O(t){const e={transform:"translate(-50%, -50%)"};return t.includes("top")?e.top="0":t.includes("bottom")?e.top="100%":e.top="50%",t.includes("left")?e.left="0":t.includes("right")?e.left="100%":e.left="50%",e}function Q(t,e){let n=Math.max(o.minWidth,t),i=Math.max(o.minHeight,e);return o.maxWidth>0&&(n=Math.min(n,o.maxWidth)),o.maxHeight>0&&(i=Math.min(i,o.maxHeight)),{width:n,height:i}}function W(t){return t.touches?.length?{x:t.touches[0].clientX,y:t.touches[0].clientY}:{x:t.clientX,y:t.clientY}}function Z(){let t=o.width,e=o.height;const n=p.value;if((!t||!e)&&n){const i=n.getBoundingClientRect();t=t||i.width/S(),e=e||i.height/S()}if((!t||!e)&&n){const i=n.querySelector("img");i&&(t=t||i.offsetWidth||i.naturalWidth,e=e||i.offsetHeight||i.naturalHeight)}return{width:t||0,height:e||0}}function R(t,e){y.value=t,b.value=e}function _(t){f("focus"),f("mousedown",t)}function E(t,e,n){const i=p.value?.ownerDocument??document;return i.addEventListener("pointermove",e),i.addEventListener("pointerup",n),i.addEventListener("pointercancel",n),()=>{i.removeEventListener("pointermove",e),i.removeEventListener("pointerup",n),i.removeEventListener("pointercancel",n),t?.releasePointerCapture?.(t._activePointerId)}}function tt(t,e){if(o.disabled)return;e.preventDefault(),e.stopPropagation();const n=e.currentTarget;if(n?.setPointerCapture&&e.pointerId!=null)try{n.setPointerCapture(e.pointerId),n._activePointerId=e.pointerId}catch{}const i=S(),M=W(e),h=Z();let l=h.width,s=h.height;if(!l||!s)return;v.value=!0,R(l,s);const m=l/s,w=t.includes("right"),P=t.includes("left"),$=t.includes("bottom"),D=t==="top"||t.startsWith("top-");let H=null;H=E(n,u=>{u.preventDefault?.();const g=W(u),C=(g.x-M.x)/i,B=(g.y-M.y)/i;let d=l,c=s;w&&(d=l+C),P&&(d=l-C),$&&(c=s+B),D&&(c=s-B),(o.equalProportion||u.shiftKey)&&(D||$?d=c*m:w||P||(Math.abs(C)>Math.abs(B)?"x":"y")==="x"?c=d/m:d=c*m);const L=Q(d,c);R(L.width,L.height),f("resize",L)},()=>{const u=y.value,g=b.value;H?.(),H=null,v.value=!1,u>0&&g>0&&(a.value={width:u,height:g}),f("drag-end",{width:u,height:g})})}function et(t){if(o.disabled)return;t.preventDefault(),t.stopPropagation();const e=t.currentTarget;if(e?.setPointerCapture&&t.pointerId!=null)try{e.setPointerCapture(t.pointerId),e._activePointerId=t.pointerId}catch{}const n=p.value?.getBoundingClientRect();if(!n)return;const i=n.left+n.width/2,M=n.top+n.height/2;let h=null;h=E(e,m=>{const w=W(m),P=Math.atan2(w.y-M,w.x-i)*180/Math.PI+90;f("rotate",{angle:(P+360)%360})},()=>{h?.(),h=null})}return(t,e)=>(z(),N("div",{ref_key:"rootRef",ref:p,class:it(["es-drager",{disabled:r.disabled,selected:r.selected&&!r.disabled,border:!0,"is-resizing":v.value}]),style:q(j.value),tabindex:"-1",onMousedown:_,onFocus:e[0]||(e[0]=n=>f("focus"))},[ot(t.$slots,"default",{},void 0,!0),r.selected&&!r.disabled&&r.resizable?(z(),N(A,{key:0},[(z(!0),N(A,null,rt(J.value,n=>(z(),N("div",{key:n.side,class:"es-drager-dot","data-side":n.side,style:q(n.style),onPointerdown:F(i=>tt(n.side,i),["stop"])},[...e[1]||(e[1]=[I("div",{class:"es-drager-dot-handle"},null,-1)])],44,lt))),128)),r.rotatable?(z(),N("div",{key:0,class:"es-drager-rotate",onPointerdown:F(et,["stop"])},[...e[2]||(e[2]=[I("div",{class:"es-drager-rotate-handle"},[I("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[I("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})])],-1)])],32)):T("v-if",!0)],64)):T("v-if",!0)],38))}},mt=at(st,[["__scopeId","data-v-7f0f7e04"]]);export{mt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as r,resolveComponent as i,openBlock as s,createBlock as c,unref as t}from"vue";import{t as u}from"./i18n-hQyxfD7_.js";import"@tool-belt/type-predicates";import"vue-i18n";const b={__name:"indent",setup(d){const n=r("editor");return(m,e)=>{const o=i("menus-button");return s(),c(o,{text:t(u)("base.indent"),ico:"indent",shortcut:"Tab","hide-text":"",disabled:!t(n)?.can().chain().focus().setIndent().run(),onMenuClick:e[0]||(e[0]=a=>t(n)?.chain().focus().setIndent().run())},null,8,["text","disabled"])}}};export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as _,ref as c,resolveComponent as m,openBlock as a,createBlock as r,unref as e,normalizeClass as k,withCtx as b,createElementVNode as f,createVNode as h,createCommentVNode as v}from"vue";import{DragHandle as y}from"@tiptap/extension-drag-handle-vue-3";const C={class:"umo-block-menu-hander"},w={__name:"index",setup(N){const o=_("editor");let n=c(null),l=c(null);const i=({node:t,pos:s})=>{n.value=t||null,s!==null&&(l.value=s)},d=t=>{o.value.commands.setMeta("lockDragHandle",t)};return(t,s)=>{const u=m("menus-block-node"),p=m("menus-block-common");return a(),r(e(y),{editor:e(o),class:k(["umo-block-menu-drag-handle",{"is-empty":e(o)?.isEmpty,"is-visible":e(l)!==null}]),"node-type":e(n)?.type?.name||"unknown",onNodeChange:i},{default:b(()=>[f("div",C,[h(u,{node:e(n),pos:e(l),onDropdownVisible:d},null,8,["node","pos"]),e(o)?.isEmpty?v("v-if",!0):(a(),r(p,{key:0,node:e(n),pos:e(l),onDropdownVisible:d},null,8,["node","pos"]))])]),_:1},8,["editor","class","node-type"])}}};export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as p,ref as Y,resolveComponent as b,unref as e,openBlock as s,createElementBlock as v,createBlock as C,createSlots as O,renderList as I,withCtx as r,renderSlot as B,normalizeProps as P,guardReactiveProps as D,createCommentVNode as T,createElementVNode as u,normalizeClass as V,isRef as E,createVNode as m,toDisplayString as c,createTextVNode as Z,Fragment as ee}from"vue";import{u as te,t}from"./i18n-hQyxfD7_.js";import{a as oe}from"./dialog-BnThXCWu.js";import{u as F}from"./state-X-ofkjhe.js";import{useTimeAgoIntl as ne,useOnline as ae}from"@vueuse/core";import{_ as le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"@tool-belt/type-predicates";import"vue-i18n";import"tdesign-vue-next";const L=$=>{const{locale:g}=te();return ne(new Date($),{locale:g.value}).value.replace(/"/gi,"")},se={key:0,class:"umo-toolbar-container"},re={class:"umo-status"},ue={class:"umo-status-saved button-text"},ce=["textContent"],ie=["textContent"],me={class:"umo-document-status-container umo-status"},de=["textContent"],be=["textContent"],pe={class:"umo-document-button-container"},ve={class:"umo-button-text"},_e={__name:"index",emits:["menu-change"],setup($,{emit:g}){const z=g,k=p("container"),_=p("toolbarActive"),R=p("editor"),f=p("savedAt"),d=p("options"),i=F("toolbar",d);let l=Y(!1);const M=ae(),S=[{label:t("toolbar.base"),value:"base"},{label:t("toolbar.insert"),value:"insert"},{label:t("toolbar.table"),value:"table"},{label:t("toolbar.tools"),value:"tools"},{label:t("toolbar.page"),value:"page"},{label:t("toolbar.view"),value:"view"},{label:t("toolbar.export"),value:"export"}];let h=S;d.value.toolbar?.menus&&(h=d.value.toolbar?.menus.map(a=>S.filter(n=>n.value===a)[0])),_.value||(_.value=h[0].value);const N=a=>{_.value=a,z("menu-change",a)},j=[{label:t("toolbar.ribbon"),value:"ribbon",prefixIcon:"toolbar-ribbon"},{label:t("toolbar.classic"),value:"classic",prefixIcon:"toolbar-classic"},{label:t("toolbar.hide"),value:"hideToolbar",prefixIcon:"hide-toolbar"}],U=({value:a})=>{a==="hideToolbar"?i.value.show=!1:(i.value.show=!0,i.value.mode=a)},q=p("saveContent"),G=()=>{q(),l.value=!1},H=()=>{const a=F("document",d),{content:n}=a.value;if(!n||n===""||n==="<p></p>"){const w=oe({attach:k,theme:"info",header:t("save.cache.error.title"),body:t("save.cache.error.message"),onConfirm(){w.destroy()}});return}l.value=!1,R.value?.chain().setContent(n,!0).focus().run()};return(a,n)=>{const w=b("toolbar-ribbon"),J=b("toolbar-classic"),x=b("t-button"),K=b("t-popup"),y=b("icon"),Q=b("t-dropdown-menu"),W=b("t-dropdown"),X=b("tooltip");return e(i).show?(s(),v("div",se,[e(i).mode==="ribbon"?(s(),C(w,{key:0,menus:e(h),"current-menu":e(_),onMenuChange:N},O({_:2},[I(e(d).toolbar?.menus,o=>({name:`toolbar_${o}`,fn:r(A=>[B(a.$slots,`toolbar_${o}`,P(D(A)),void 0,!0)])}))]),1032,["menus","current-menu"])):T("v-if",!0),e(i).mode==="classic"?(s(),C(J,{key:1,menus:e(h),"current-menu":e(_),onMenuChange:N},O({_:2},[I(e(d).toolbar?.menus,o=>({name:`toolbar_${o}`,fn:r(A=>[B(a.$slots,`toolbar_${o}`,P(D(A)),void 0,!0)])}))]),1032,["menus","current-menu"])):T("v-if",!0),u("div",{class:V(["umo-toolbar-actions",`umo-toolbar-actions-${e(i).mode}`])},[e(d).toolbar.showSaveLabel&&e(d).document.readOnly!==!0?(s(),C(K,{key:0,modelValue:e(l),"onUpdate:modelValue":n[0]||(n[0]=o=>E(l)?l.value=o:l=o),attach:e(k),trigger:"click",placement:"bottom-right",onVisibleChange:n[1]||(n[1]=o=>E(l)?l.value=o:l=o)},{content:r(()=>[u("div",me,[u("div",null,c(e(t)("save.network"))+" "+c(e(M)?e(t)("save.online"):e(t)("save.offline")),1),u("div",null,[Z(c(e(t)("save.savedAt"))+" ",1),e(f)?(s(),v("span",{key:0,textContent:c(e(t)("save.savedAtText",{time:e(L)(e(f))}))},null,8,de)):(s(),v("span",{key:1,textContent:c(e(t)("save.unsaved"))},null,8,be))]),u("div",pe,[m(x,{size:"small",onClick:G,textContent:c(e(t)("save.text"))},null,8,["textContent"]),m(x,{size:"small",variant:"outline",onClick:H,textContent:c(e(t)("save.cache.text"))},null,8,["textContent"])])])]),default:r(()=>[m(x,{class:V(["umo-toolbar-actions-button",{active:e(l)}]),variant:"text",size:"small"},{default:r(()=>[u("span",re,[u("span",{class:V(["umo-status-online",{offline:!e(M)}])},null,2),u("span",ue,[e(f)?(s(),v("span",{key:0,textContent:c(e(t)("save.savedAtText",{time:e(L)(e(f))}))},null,8,ce)):(s(),v("span",{key:1,class:"unsaved",textContent:c(e(t)("save.unsaved"))},null,8,ie))])])]),_:1},8,["class"])]),_:1},8,["modelValue","attach"])):T("v-if",!0),m(W,{trigger:"click",size:"small",placement:"bottom-right","popup-props":{destroyOnClose:!0,attach:e(k)},onClick:U},{dropdown:r(()=>[(s(),v(ee,null,I(j,o=>m(Q,{key:o.value,content:o.label,value:o.value,divider:o.divider,active:o.value===e(i).mode},{prefixIcon:r(()=>[m(y,{name:o.prefixIcon},null,8,["name"])]),_:2},1032,["content","value","divider","active"])),64))]),default:r(()=>[m(x,{class:"umo-toolbar-actions-button",variant:"text",size:"small"},{default:r(()=>[m(y,{name:"expand-down"}),u("span",ve,c(e(t)("toolbar.toggle")),1)]),_:1})]),_:1},8,["popup-props"])],2)])):(s(),C(X,{key:1,content:e(t)("toolbar.show"),placement:"bottom-right"},{default:r(()=>[u("div",{class:"umo-show-toolbar",onClick:n[2]||(n[2]=o=>e(i).show=!0)},[m(y,{name:"arrow-down"})])]),_:1},8,["content"]))}}},Ie=le(_e,[["__scopeId","data-v-74a0963b"]]);export{Ie as default};
|