@fewangsit/wangsvue-fats 1.0.0-alpha.41 → 1.0.0-alpha.43
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/ButtonCopy-C6DSmsOR.es.js +4 -0
- package/ButtonCopy-CeBlNyVx.system.js +1 -0
- package/ButtonSync-BLyCwwnU.system.js +1 -0
- package/ButtonSync-DtUhn-Q-.es.js +4 -0
- package/ButtonToggle-B9Fa75pf.es.js +4 -0
- package/ButtonToggle-CSxzlLR2.system.js +1 -0
- package/ButtonViewLog-B1oa4oFN.es.js +4 -0
- package/ButtonViewLog-_J6r7Oz8.system.js +1 -0
- package/Card-B19WgA6Y.es.js +4 -0
- package/Card-umUgd-nP.system.js +1 -0
- package/InputEmail-BZ5Y0wSk.system.js +1 -0
- package/InputEmail-DR_E1DsL.es.js +4 -0
- package/InputURL-DL6a94kM.system.js +1 -0
- package/InputURL-PVF5EUUY.es.js +4 -0
- package/Loading-Cq7rP88c.system.js +1 -0
- package/Loading-DUHTVct4.es.js +4 -0
- package/UserWithIcon-Ddn_GlNu.system.js +1 -0
- package/UserWithIcon-hWXf-A2U.es.js +4 -0
- package/assets/lottie/loading-page-B9ooQcfF.system.js +1 -0
- package/assets/lottie/loading-page-CQ0mKER2.es.js +15 -0
- package/assets/lottie/loading-table-B4T3FYiI.system.js +1 -0
- package/assets/lottie/loading-table-BnpbX8Ew.es.js +15 -0
- package/assets/lottie/no-data-CMWnya_k.system.js +1 -0
- package/{no-data-DLHO1L_u.js → assets/lottie/no-data-DOy8kIGF.es.js} +13 -2
- package/async-components/index-C8nb7p3T.es.js +70 -0
- package/async-components/index-DvjqHrYE.system.js +1 -0
- package/components/animation/Animation-CCEnvZ_Z.es.js +48 -0
- package/components/animation/Animation-CJb4YIwm.system.js +1 -0
- package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +127 -0
- package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +1 -0
- package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +1 -0
- package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +201 -0
- package/components/badge/Badge-DXAyz4Z8.es.js +99 -0
- package/components/badge/Badge-wSExdsOP.system.js +1 -0
- package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +1 -0
- package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +68 -0
- package/components/basetree/BaseTree-CmBp0uwr.system.js +1 -0
- package/components/basetree/BaseTree-RsvvntBp.es.js +167 -0
- package/components/basetree/TreeNode-CUL5_2Rj.es.js +499 -0
- package/components/basetree/TreeNode-D-YgXird.system.js +1 -0
- package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +1 -0
- package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +46 -0
- package/components/button/Button-CgkhMnxo.es.js +124 -0
- package/components/button/Button-D892iaxz.system.js +1 -0
- package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +1 -0
- package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +189 -0
- package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +31 -0
- package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +1 -0
- package/components/buttoncopy/ButtonCopy.vue.d.ts +6 -4
- package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +61 -0
- package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +1 -0
- package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +1 -0
- package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +28 -0
- package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +83 -0
- package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +1 -0
- package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +1 -0
- package/components/buttonscan/ButtonScan-mVHAdACL.es.js +387 -0
- package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +1 -0
- package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +25 -0
- package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +1 -0
- package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +70 -0
- package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +218 -0
- package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +1 -0
- package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +1 -0
- package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +101 -0
- package/components/buttonsync/ButtonSync-Brk16H8C.es.js +29 -0
- package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +1 -0
- package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +11 -0
- package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +1 -0
- package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +21 -0
- package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +1 -0
- package/components/calendar/BaseCalendar-5EI1UTbl.es.js +867 -0
- package/components/calendar/BaseCalendar-C02-gmOQ.system.js +1 -0
- package/components/calendar/Calendar-B2z-lfi9.es.js +112 -0
- package/components/calendar/Calendar-CWw4R5mN.system.js +1 -0
- package/components/card/Card-BccG14LV.es.js +47 -0
- package/components/card/Card-BjI-Xi0S.system.js +1 -0
- package/components/checkbox/Checkbox-DBU7Ji2C.es.js +135 -0
- package/components/checkbox/Checkbox-FZg_wq3C.system.js +1 -0
- package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +127 -0
- package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +2 -0
- package/components/customcolumn/ColumnList-fdR5JfHj.es.js +159 -0
- package/components/customcolumn/ColumnList-yaNVEQFA.system.js +1 -0
- package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +139 -0
- package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +1 -0
- package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +1 -0
- package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +16 -0
- package/components/datatable/DataTable-BH7Fk88O.es.js +992 -0
- package/components/datatable/DataTable-Cko2S6sM.system.js +1 -0
- package/components/datatable/MultiRow-B2vMSb7W.es.js +52 -0
- package/components/datatable/MultiRow-Sef5icam.system.js +1 -0
- package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +37 -0
- package/components/datatable/store/dataTable.store-C9376aEJ.system.js +1 -0
- package/components/dialog/Dialog-BCcbXSya.es.js +121 -0
- package/components/dialog/Dialog-Dv7Jzg4E.system.js +1 -0
- package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +1 -0
- package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +139 -0
- package/components/dialogform/DialogForm-DGl_NOEr.system.js +1 -0
- package/components/dialogform/DialogForm-tAbix3iC.es.js +222 -0
- package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +268 -0
- package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +121 -0
- package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +44 -0
- package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +71 -0
- package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +1 -0
- package/components/dropdown/Dropdown-BNzT2uLU.system.js +1 -0
- package/components/dropdown/Dropdown-Dk4urj-W.es.js +258 -0
- package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +26 -0
- package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +1 -0
- package/components/editor/Editor-RB5MqBs1.es.js +887 -0
- package/components/editor/Editor-upU4Z9FH.system.js +1 -0
- package/components/editor/EditorButton-CC6U1a_u.system.js +1 -0
- package/components/editor/EditorButton-Cfew79JD.es.js +28 -0
- package/components/editor/MentionList-BjWKefLh.system.js +1 -0
- package/components/editor/MentionList-CdX0_-TK.es.js +58 -0
- package/components/editor/MentionSection-5I-FSwew.es.js +52 -0
- package/components/editor/MentionSection-CiuaeX4J.system.js +3 -0
- package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +40 -0
- package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +1 -0
- package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +1 -0
- package/components/editor/mentionSectionExtension-rbWufuMT.es.js +46 -0
- package/components/editor/suggestion-BcYK0KeI.system.js +1 -0
- package/components/editor/suggestion-mkkpQFP-.es.js +41 -0
- package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +1 -0
- package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +35 -0
- package/components/fileupload/FileUpload-0EHKlInu.es.js +175 -0
- package/components/fileupload/FileUpload-dXrsIAeC.system.js +1 -0
- package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +234 -0
- package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +1 -0
- package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +1 -0
- package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +56 -0
- package/components/form/Form-By85t_oI.system.js +1 -0
- package/components/form/Form-DhWBpdkq.es.js +181 -0
- package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +238 -0
- package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +1 -0
- package/components/hardwaresync/store/device.store-DEKXH36R.system.js +1 -0
- package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +20 -0
- package/components/icon/Icon-C4kXVcEX.es.js +82 -0
- package/components/icon/Icon-D1a666FC.system.js +1 -0
- package/components/image/Image-Bf5EaBWP.es.js +170 -0
- package/components/image/Image-Cxi0E9gK.system.js +1 -0
- package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +1 -0
- package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +52 -0
- package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +1 -0
- package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +509 -0
- package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +46 -0
- package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +1 -0
- package/components/index-BMti6lK3.es.js +64 -0
- package/components/index-DBzSxIov.system.js +1 -0
- package/components/index.d.ts +162 -60
- package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +94 -0
- package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +1 -0
- package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +1 -0
- package/components/inputbadge/InputBadge-BngtjqHQ.es.js +186 -0
- package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +1211 -0
- package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +1 -0
- package/components/inputemail/InputEmail-8E04RVeq.system.js +1 -0
- package/components/inputemail/InputEmail-BFeY1l9Z.es.js +49 -0
- package/components/inputgroup/InputGroup-CTHxHL8n.system.js +1 -0
- package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +56 -0
- package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +1 -0
- package/components/inputnumber/InputNumber-CQd01PQ5.es.js +232 -0
- package/components/inputpassword/InputPassword-D3jaUFfR.system.js +1 -0
- package/components/inputpassword/InputPassword-DGWsHAB4.es.js +121 -0
- package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +1 -0
- package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +162 -0
- package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +15 -0
- package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +1 -0
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +423 -0
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +1 -0
- package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +134 -0
- package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +1 -0
- package/components/inputsearch/InputSearch-CHJP-N57.es.js +53 -0
- package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +1 -0
- package/components/inputtext/InputText-BEDxrRqK.es.js +242 -0
- package/components/inputtext/InputText-BOgH8xpA.system.js +1 -0
- package/components/inputurl/InputURL-CNrOkrAC.es.js +61 -0
- package/components/inputurl/InputURL-D4QWV9G7.system.js +1 -0
- package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +27 -0
- package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +1 -0
- package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +102 -0
- package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +1 -0
- package/components/loading/Loading-DIfTUHr7.es.js +24 -0
- package/components/loading/Loading-Vb4HctBJ.system.js +1 -0
- package/components/menu/Menu-BtzGGhbp.es.js +73 -0
- package/components/menu/Menu-CPm5vua_.system.js +1 -0
- package/components/menuitem/MenuItem-8yxkFTug.system.js +1 -0
- package/components/menuitem/MenuItem-uLVAqgBS.es.js +65 -0
- package/components/multiselect/MultiSelect-BoPpQ31j.es.js +189 -0
- package/components/multiselect/MultiSelect-D5NEDtGe.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +49 -0
- package/components/tabmenu/TabMenu-BBk8EW-C.system.js +1 -0
- package/components/tabmenu/TabMenu-ByKBaVsd.es.js +108 -0
- package/components/tagtype/TagType-CAXomDiD.es.js +49 -0
- package/components/tagtype/TagType-i4RK2JbL.system.js +1 -0
- package/components/textarea/Textarea-CnAlgPq5.es.js +108 -0
- package/components/textarea/Textarea-qirKOw5z.system.js +1 -0
- package/components/timeline/Timeline-CF2qJo4E.es.js +120 -0
- package/components/timeline/Timeline-DKfKWZFI.system.js +1 -0
- package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +108 -0
- package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +1 -0
- package/components/toast/Toast-C3D50rGo.system.js +1 -0
- package/components/toast/Toast-DRUJCz4I.es.js +74 -0
- package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +90 -0
- package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +1 -0
- package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +223 -0
- package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +1 -0
- package/components/tree/Tree-93NvdElH.es.js +267 -0
- package/components/tree/Tree-BTTVTAEH.system.js +1 -0
- package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +1 -0
- package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +10 -0
- package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +1 -0
- package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +56 -0
- package/components/username/UserName-A1N6Q7bS.system.js +1 -0
- package/components/username/UserName-D5C0qdbu.es.js +132 -0
- package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +18 -0
- package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +1 -0
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +19 -0
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +1 -0
- package/config/config.esm-BZepf1kR.system.js +1 -0
- package/config/config.esm-Drl0fECZ.es.js +212 -0
- package/config/defaultProps-B3syHUKt.system.js +1 -0
- package/config/defaultProps-BC_lvAG9.es.js +136 -0
- package/config/locale-DK6d2rJ3.system.js +1 -0
- package/config/locale-pQnRpNZ6.es.js +85 -0
- package/event-bus/index-CykcrsqY.system.js +1 -0
- package/event-bus/index-PQwO5T6B.es.js +6 -0
- package/event-bus/mitt-BjeF6e5j.es.js +53 -0
- package/event-bus/mitt-X_X8W9w9.system.js +1 -0
- package/package.json +1 -1
- package/plugins/WangsVue-Dl5OiLXF.es.js +332 -0
- package/plugins/WangsVue-Dugc3GRS.system.js +1 -0
- package/plugins/i18n-BVujDShu.system.js +1 -0
- package/plugins/i18n-CIoi8go0.es.js +89 -0
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/addAttachment.util-CPzZEHNG.system.js +1 -0
- package/utils/addAttachment.util-D9sYCBjS.es.js +10 -0
- package/utils/computeAutoPlacement-Ac2MkS5B.es.js +33 -0
- package/utils/computeAutoPlacement-DCaci6j-.system.js +1 -0
- package/utils/computeOffsets-Cx9i84Mn.system.js +1 -0
- package/utils/computeOffsets-DXWJPq7f.es.js +56 -0
- package/utils/date.util-DbjB32co.es.js +198 -0
- package/utils/date.util-rX9kq_yC.system.js +1 -0
- package/utils/detectOverflow-BrAC_sJF.system.js +1 -0
- package/utils/detectOverflow-CETbaen7.es.js +88 -0
- package/utils/exportToExcel.util-Bf-PpzHW.system.js +1 -0
- package/utils/exportToExcel.util-jz7aU08m.es.js +32 -0
- package/utils/genPlaceholder.util-0UuDQpbx.es.js +37 -0
- package/utils/genPlaceholder.util-CxMG7LbT.system.js +1 -0
- package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +9 -0
- package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +1 -0
- package/utils/object.util-6veM2gu5.es.js +51 -0
- package/utils/object.util-uApor4uP.system.js +1 -0
- package/utils/orderModifiers-qXBm1wkD.system.js +1 -0
- package/utils/orderModifiers-rOag5Cyh.es.js +31 -0
- package/utils/role.util-BdUNoOqf.es.js +67 -0
- package/utils/role.util-Co8OMWnc.system.js +1 -0
- package/utils/textFormatter.util-BjenkyWf.system.js +1 -0
- package/utils/textFormatter.util-CYul3RpH.es.js +21 -0
- package/utils/toast.util-C7p3h9XQ.es.js +52 -0
- package/utils/toast.util-DPtauJUV.system.js +1 -0
- package/utils/utils.esm-iwnsFuDg.system.js +23 -0
- package/utils/utils.esm-s_-kLKXf.es.js +1080 -0
- package/utils/xlsx.util-FKEpiU2t.system.js +1 -0
- package/utils/xlsx.util-LU1upHR3.es.js +8 -0
- package/vendor/@popperjs/core-DFLwc7xU.system.js +1 -0
- package/vendor/@popperjs/core-DJHUrK4e.es.js +748 -0
- package/vendor/@tiptap/core-D4rHEGhs.system.js +80 -0
- package/vendor/@tiptap/core-DSbPv8xh.es.js +2868 -0
- package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +71 -0
- package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +1 -0
- package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +1 -0
- package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +128 -0
- package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +53 -0
- package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +1 -0
- package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +51 -0
- package/vendor/@tiptap/extension-code-SOANT0O3.system.js +1 -0
- package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +99 -0
- package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +1 -0
- package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +54 -0
- package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +1 -0
- package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +1 -0
- package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +35 -0
- package/vendor/@tiptap/extension-image-BNa6azmK.system.js +1 -0
- package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +64 -0
- package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +70 -0
- package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +1 -0
- package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +262 -0
- package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +1 -0
- package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +1 -0
- package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +33 -0
- package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +130 -0
- package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +1 -0
- package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +71 -0
- package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +1 -0
- package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +52 -0
- package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +1 -0
- package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +40 -0
- package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +1 -0
- package/vendor/@tiptap/suggestion-B3Grok9m.system.js +1 -0
- package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +131 -0
- package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +436 -0
- package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +1 -0
- package/vendor/highlight.js-ClnJXT0q.system.js +2 -0
- package/vendor/highlight.js-Czlvg6fB.es.js +2493 -0
- package/vendor/linkifyjs-BxsOjwQz.es.js +705 -0
- package/vendor/linkifyjs-CMLfIa6I.system.js +5 -0
- package/vendor/lodash-B6nNLFd3.es.js +127 -0
- package/vendor/lodash-BuO1dYnQ.system.js +1 -0
- package/vendor/lodash-es-C3G1Cc1m.system.js +1 -0
- package/vendor/lodash-es-CJerBxJQ.es.js +766 -0
- package/vendor/orderedmap-B3SOk52B.es.js +103 -0
- package/vendor/orderedmap-Dwr31MF0.system.js +1 -0
- package/vendor/primevue-C5Z_k4WB.system.js +171 -0
- package/vendor/primevue-DkBtKf1Y.es.js +12649 -0
- package/vendor/prosemirror-commands-CUjo-x4s.es.js +383 -0
- package/vendor/prosemirror-commands-Dn6KNBP0.system.js +2 -0
- package/vendor/prosemirror-history-BPOe4I2H.es.js +248 -0
- package/vendor/prosemirror-history-BTrzvpc-.system.js +1 -0
- package/vendor/prosemirror-keymap-BvIUhswp.es.js +60 -0
- package/vendor/prosemirror-keymap-WRY9zVpK.system.js +1 -0
- package/vendor/prosemirror-model-D2n-Dx_L.es.js +2736 -0
- package/vendor/prosemirror-model-DTWK5xnv.system.js +4 -0
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +87 -0
- package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +1 -0
- package/vendor/prosemirror-state-BW6XGB3U.es.js +820 -0
- package/vendor/prosemirror-state-COJ-aZZ4.system.js +1 -0
- package/vendor/prosemirror-transform-BXNgAhmF.system.js +2 -0
- package/vendor/prosemirror-transform-DvAmofec.es.js +1507 -0
- package/vendor/prosemirror-view-C9ZQp8VZ.es.js +3742 -0
- package/vendor/prosemirror-view-DOxSTbB-.system.js +5 -0
- package/vendor/rope-sequence-4t46C6az.system.js +1 -0
- package/vendor/rope-sequence-sEGCUMi8.es.js +100 -0
- package/vendor/simplebar-core-CtWK1-xd.system.js +1 -0
- package/vendor/simplebar-core-ofTx4QqK.es.js +333 -0
- package/vendor/simplebar-vue-BHVrvuf1.system.js +1 -0
- package/vendor/simplebar-vue-dpCx-K7E.es.js +176 -0
- package/vendor/tippy.js-6wuFov1j.system.js +1 -0
- package/vendor/tippy.js-i1ic-msv.es.js +721 -0
- package/vendor/uuid-93tp0umt.es.js +9 -0
- package/vendor/uuid-Cymn6orr.system.js +1 -0
- package/vendor/vee-validate-Cc_B-qII.system.js +5 -0
- package/vendor/vee-validate-RE5RuswC.es.js +1309 -0
- package/vendor/vue-advanced-cropper-CshlvNaD.es.js +1380 -0
- package/vendor/vue-advanced-cropper-NG93jHnU.system.js +20 -0
- package/vendor/w3c-keyname-BSD-PgAi.system.js +1 -0
- package/vendor/w3c-keyname-CLxH8j-f.es.js +92 -0
- package/wangsvue-fats.js +156 -0
- package/wangsvue-fats.system.js +1 -313
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-D9bw9OcI.js +0 -4
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-g0dJCy2p.js +0 -4
- package/no-data-y1X5WtcQ.js +0 -1
- package/wangsvue-fats.es.js +0 -51894
- /package/{loading-page-CgfbWppy.js → assets/lottie/loading-plane-CgfbWppy.system.js} +0 -0
- /package/{loading-page-CoXtqoc9.js → assets/lottie/loading-plane-CoXtqoc9.es.js} +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { P as T, a as U } from "../prosemirror-state-BW6XGB3U.es.js";
|
|
2
|
+
import { a as j, D as L } from "../prosemirror-view-C9ZQp8VZ.es.js";
|
|
3
|
+
import { o as z } from "./core-DSbPv8xh.es.js";
|
|
4
|
+
function G(R) {
|
|
5
|
+
var s;
|
|
6
|
+
const { char: q, allowSpaces: D, allowToIncludeChar: _, allowedPrefixes: f, startOfLine: B, $position: d } = R, E = D && !_, g = z(q), C = new RegExp(`\\s${g}$`), v = B ? "^" : "", I = _ ? "" : g, M = E ? new RegExp(`${v}${g}.*?(?=\\s${I}|$)`, "gm") : new RegExp(`${v}(?:^)?${g}[^\\s${I}]*`, "gm"), r = ((s = d.nodeBefore) === null || s === void 0 ? void 0 : s.isText) && d.nodeBefore.text;
|
|
7
|
+
if (!r)
|
|
8
|
+
return null;
|
|
9
|
+
const e = d.pos - r.length, o = Array.from(r.matchAll(M)).pop();
|
|
10
|
+
if (!o || o.input === void 0 || o.index === void 0)
|
|
11
|
+
return null;
|
|
12
|
+
const n = o.input.slice(Math.max(0, o.index - 1), o.index), i = new RegExp(`^[${f == null ? void 0 : f.join("")}\0]?$`).test(n);
|
|
13
|
+
if (f !== null && !i)
|
|
14
|
+
return null;
|
|
15
|
+
const a = e + o.index;
|
|
16
|
+
let l = a + o[0].length;
|
|
17
|
+
return E && C.test(r.slice(l - 1, l + 1)) && (o[0] += " ", l += 1), a < d.pos && l >= d.pos ? {
|
|
18
|
+
range: {
|
|
19
|
+
from: a,
|
|
20
|
+
to: l
|
|
21
|
+
},
|
|
22
|
+
query: o[0].slice(q.length),
|
|
23
|
+
text: o[0]
|
|
24
|
+
} : null;
|
|
25
|
+
}
|
|
26
|
+
const H = new U("suggestion");
|
|
27
|
+
function W({ pluginKey: R = H, editor: s, char: q = "@", allowSpaces: D = !1, allowToIncludeChar: _ = !1, allowedPrefixes: f = [" "], startOfLine: B = !1, decorationTag: d = "span", decorationClass: E = "suggestion", command: g = () => null, items: C = () => [], render: v = () => ({}), allow: I = () => !0, findSuggestionMatch: M = G }) {
|
|
28
|
+
let r;
|
|
29
|
+
const e = v == null ? void 0 : v(), o = new T({
|
|
30
|
+
key: R,
|
|
31
|
+
view() {
|
|
32
|
+
return {
|
|
33
|
+
update: async (n, i) => {
|
|
34
|
+
var a, l, u, p, m, y, x;
|
|
35
|
+
const t = (a = this.key) === null || a === void 0 ? void 0 : a.getState(i), c = (l = this.key) === null || l === void 0 ? void 0 : l.getState(n.state), S = t.active && c.active && t.range.from !== c.range.from, N = !t.active && c.active, b = t.active && !c.active, k = !N && !b && t.query !== c.query, $ = N || S && k, P = k || S, A = b || S && k;
|
|
36
|
+
if (!$ && !P && !A)
|
|
37
|
+
return;
|
|
38
|
+
const h = A && !$ ? t : c, F = n.dom.querySelector(`[data-decoration-id="${h.decorationId}"]`);
|
|
39
|
+
r = {
|
|
40
|
+
editor: s,
|
|
41
|
+
range: h.range,
|
|
42
|
+
query: h.query,
|
|
43
|
+
text: h.text,
|
|
44
|
+
items: [],
|
|
45
|
+
command: (w) => g({
|
|
46
|
+
editor: s,
|
|
47
|
+
range: h.range,
|
|
48
|
+
props: w
|
|
49
|
+
}),
|
|
50
|
+
decorationNode: F,
|
|
51
|
+
// virtual node for popper.js or tippy.js
|
|
52
|
+
// this can be used for building popups without a DOM node
|
|
53
|
+
clientRect: F ? () => {
|
|
54
|
+
var w;
|
|
55
|
+
const { decorationId: O } = (w = this.key) === null || w === void 0 ? void 0 : w.getState(s.state), K = n.dom.querySelector(`[data-decoration-id="${O}"]`);
|
|
56
|
+
return (K == null ? void 0 : K.getBoundingClientRect()) || null;
|
|
57
|
+
} : null
|
|
58
|
+
}, $ && ((u = e == null ? void 0 : e.onBeforeStart) === null || u === void 0 || u.call(e, r)), P && ((p = e == null ? void 0 : e.onBeforeUpdate) === null || p === void 0 || p.call(e, r)), (P || $) && (r.items = await C({
|
|
59
|
+
editor: s,
|
|
60
|
+
query: h.query
|
|
61
|
+
})), A && ((m = e == null ? void 0 : e.onExit) === null || m === void 0 || m.call(e, r)), P && ((y = e == null ? void 0 : e.onUpdate) === null || y === void 0 || y.call(e, r)), $ && ((x = e == null ? void 0 : e.onStart) === null || x === void 0 || x.call(e, r));
|
|
62
|
+
},
|
|
63
|
+
destroy: () => {
|
|
64
|
+
var n;
|
|
65
|
+
r && ((n = e == null ? void 0 : e.onExit) === null || n === void 0 || n.call(e, r));
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
state: {
|
|
70
|
+
// Initialize the plugin's internal state.
|
|
71
|
+
init() {
|
|
72
|
+
return {
|
|
73
|
+
active: !1,
|
|
74
|
+
range: {
|
|
75
|
+
from: 0,
|
|
76
|
+
to: 0
|
|
77
|
+
},
|
|
78
|
+
query: null,
|
|
79
|
+
text: null,
|
|
80
|
+
composing: !1
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
// Apply changes to the plugin state from a view transaction.
|
|
84
|
+
apply(n, i, a, l) {
|
|
85
|
+
const { isEditable: u } = s, { composing: p } = s.view, { selection: m } = n, { empty: y, from: x } = m, t = { ...i };
|
|
86
|
+
if (t.composing = p, u && (y || s.view.composing)) {
|
|
87
|
+
(x < i.range.from || x > i.range.to) && !p && !i.composing && (t.active = !1);
|
|
88
|
+
const c = M({
|
|
89
|
+
char: q,
|
|
90
|
+
allowSpaces: D,
|
|
91
|
+
allowToIncludeChar: _,
|
|
92
|
+
allowedPrefixes: f,
|
|
93
|
+
startOfLine: B,
|
|
94
|
+
$position: m.$from
|
|
95
|
+
}), S = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
96
|
+
c && I({
|
|
97
|
+
editor: s,
|
|
98
|
+
state: l,
|
|
99
|
+
range: c.range,
|
|
100
|
+
isActive: i.active
|
|
101
|
+
}) ? (t.active = !0, t.decorationId = i.decorationId ? i.decorationId : S, t.range = c.range, t.query = c.query, t.text = c.text) : t.active = !1;
|
|
102
|
+
} else
|
|
103
|
+
t.active = !1;
|
|
104
|
+
return t.active || (t.decorationId = null, t.range = { from: 0, to: 0 }, t.query = null, t.text = null), t;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
props: {
|
|
108
|
+
// Call the keydown hook if suggestion is active.
|
|
109
|
+
handleKeyDown(n, i) {
|
|
110
|
+
var a;
|
|
111
|
+
const { active: l, range: u } = o.getState(n.state);
|
|
112
|
+
return l && ((a = e == null ? void 0 : e.onKeyDown) === null || a === void 0 ? void 0 : a.call(e, { view: n, event: i, range: u })) || !1;
|
|
113
|
+
},
|
|
114
|
+
// Setup decorator on the currently active suggestion.
|
|
115
|
+
decorations(n) {
|
|
116
|
+
const { active: i, range: a, decorationId: l } = o.getState(n);
|
|
117
|
+
return i ? j.create(n.doc, [
|
|
118
|
+
L.inline(a.from, a.to, {
|
|
119
|
+
nodeName: d,
|
|
120
|
+
class: E,
|
|
121
|
+
"data-decoration-id": l
|
|
122
|
+
})
|
|
123
|
+
]) : null;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
return o;
|
|
128
|
+
}
|
|
129
|
+
export {
|
|
130
|
+
W as S
|
|
131
|
+
};
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { B as g } from "./extension-bubble-menu-DY29ulfu.es.js";
|
|
2
|
+
import { defineComponent as d, shallowRef as y, onMounted as c, onBeforeUnmount as u, h as a, ref as l, getCurrentInstance as C, watchEffect as b, nextTick as w, unref as S, markRaw as f, provide as h, reactive as _, render as v, customRef as x } from "vue";
|
|
3
|
+
import { q as N, r as O } from "./core-DSbPv8xh.es.js";
|
|
4
|
+
import { a as P } from "./extension-floating-menu-BTwcx1u8.es.js";
|
|
5
|
+
d({
|
|
6
|
+
name: "BubbleMenu",
|
|
7
|
+
props: {
|
|
8
|
+
pluginKey: {
|
|
9
|
+
type: [String, Object],
|
|
10
|
+
default: "bubbleMenu"
|
|
11
|
+
},
|
|
12
|
+
editor: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
updateDelay: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
20
|
+
tippyOptions: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => ({})
|
|
23
|
+
},
|
|
24
|
+
shouldShow: {
|
|
25
|
+
type: Function,
|
|
26
|
+
default: null
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(r, { slots: t }) {
|
|
30
|
+
const n = l(null);
|
|
31
|
+
return c(() => {
|
|
32
|
+
const { updateDelay: e, editor: o, pluginKey: i, shouldShow: s, tippyOptions: p } = r;
|
|
33
|
+
o.registerPlugin(g({
|
|
34
|
+
updateDelay: e,
|
|
35
|
+
editor: o,
|
|
36
|
+
element: n.value,
|
|
37
|
+
pluginKey: i,
|
|
38
|
+
shouldShow: s,
|
|
39
|
+
tippyOptions: p
|
|
40
|
+
}));
|
|
41
|
+
}), u(() => {
|
|
42
|
+
const { pluginKey: e, editor: o } = r;
|
|
43
|
+
o.unregisterPlugin(e);
|
|
44
|
+
}), () => {
|
|
45
|
+
var e;
|
|
46
|
+
return a("div", { ref: n }, (e = t.default) === null || e === void 0 ? void 0 : e.call(t));
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
function m(r) {
|
|
51
|
+
return x((t, n) => ({
|
|
52
|
+
get() {
|
|
53
|
+
return t(), r;
|
|
54
|
+
},
|
|
55
|
+
set(e) {
|
|
56
|
+
r = e, requestAnimationFrame(() => {
|
|
57
|
+
requestAnimationFrame(() => {
|
|
58
|
+
n();
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
class D extends N {
|
|
65
|
+
constructor(t = {}) {
|
|
66
|
+
return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState = m(this.view.state), this.reactiveExtensionStorage = m(this.extensionStorage), this.on("beforeTransaction", ({ nextState: n }) => {
|
|
67
|
+
this.reactiveState.value = n, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
68
|
+
}), f(this);
|
|
69
|
+
}
|
|
70
|
+
get state() {
|
|
71
|
+
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
72
|
+
}
|
|
73
|
+
get storage() {
|
|
74
|
+
return this.reactiveExtensionStorage ? this.reactiveExtensionStorage.value : super.storage;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Register a ProseMirror plugin.
|
|
78
|
+
*/
|
|
79
|
+
registerPlugin(t, n) {
|
|
80
|
+
const e = super.registerPlugin(t, n);
|
|
81
|
+
return this.reactiveState && (this.reactiveState.value = e), e;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Unregister a ProseMirror plugin.
|
|
85
|
+
*/
|
|
86
|
+
unregisterPlugin(t) {
|
|
87
|
+
const n = super.unregisterPlugin(t);
|
|
88
|
+
return this.reactiveState && n && (this.reactiveState.value = n), n;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const A = d({
|
|
92
|
+
name: "EditorContent",
|
|
93
|
+
props: {
|
|
94
|
+
editor: {
|
|
95
|
+
default: null,
|
|
96
|
+
type: Object
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
setup(r) {
|
|
100
|
+
const t = l(), n = C();
|
|
101
|
+
return b(() => {
|
|
102
|
+
const e = r.editor;
|
|
103
|
+
e && e.options.element && t.value && w(() => {
|
|
104
|
+
if (!t.value || !e.options.element.firstChild)
|
|
105
|
+
return;
|
|
106
|
+
const o = S(t.value);
|
|
107
|
+
t.value.append(...e.options.element.childNodes), e.contentComponent = n.ctx._, n && (e.appContext = {
|
|
108
|
+
...n.appContext,
|
|
109
|
+
// Vue internally uses prototype chain to forward/shadow injects across the entire component chain
|
|
110
|
+
// so don't use object spread operator or 'Object.assign' and just set `provides` as is on editor's appContext
|
|
111
|
+
// @ts-expect-error forward instance's 'provides' into appContext
|
|
112
|
+
provides: n.provides
|
|
113
|
+
}), e.setOptions({
|
|
114
|
+
element: o
|
|
115
|
+
}), e.createNodeViews();
|
|
116
|
+
});
|
|
117
|
+
}), u(() => {
|
|
118
|
+
const e = r.editor;
|
|
119
|
+
e && (e.contentComponent = null, e.appContext = null);
|
|
120
|
+
}), { rootEl: t };
|
|
121
|
+
},
|
|
122
|
+
render() {
|
|
123
|
+
return a("div", {
|
|
124
|
+
ref: (r) => {
|
|
125
|
+
this.rootEl = r;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}), U = d({
|
|
130
|
+
name: "FloatingMenu",
|
|
131
|
+
props: {
|
|
132
|
+
pluginKey: {
|
|
133
|
+
// TODO: TypeScript breaks :(
|
|
134
|
+
// type: [String, Object as PropType<Exclude<FloatingMenuPluginProps['pluginKey'], string>>],
|
|
135
|
+
type: null,
|
|
136
|
+
default: "floatingMenu"
|
|
137
|
+
},
|
|
138
|
+
editor: {
|
|
139
|
+
type: Object,
|
|
140
|
+
required: !0
|
|
141
|
+
},
|
|
142
|
+
tippyOptions: {
|
|
143
|
+
type: Object,
|
|
144
|
+
default: () => ({})
|
|
145
|
+
},
|
|
146
|
+
shouldShow: {
|
|
147
|
+
type: Function,
|
|
148
|
+
default: null
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
setup(r, { slots: t }) {
|
|
152
|
+
const n = l(null);
|
|
153
|
+
return c(() => {
|
|
154
|
+
const { pluginKey: e, editor: o, tippyOptions: i, shouldShow: s } = r;
|
|
155
|
+
o.registerPlugin(P({
|
|
156
|
+
pluginKey: e,
|
|
157
|
+
editor: o,
|
|
158
|
+
element: n.value,
|
|
159
|
+
tippyOptions: i,
|
|
160
|
+
shouldShow: s
|
|
161
|
+
}));
|
|
162
|
+
}), u(() => {
|
|
163
|
+
const { pluginKey: e, editor: o } = r;
|
|
164
|
+
o.unregisterPlugin(e);
|
|
165
|
+
}), () => {
|
|
166
|
+
var e;
|
|
167
|
+
return a("div", { ref: n }, (e = t.default) === null || e === void 0 ? void 0 : e.call(t));
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
d({
|
|
172
|
+
name: "NodeViewContent",
|
|
173
|
+
props: {
|
|
174
|
+
as: {
|
|
175
|
+
type: String,
|
|
176
|
+
default: "div"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
render() {
|
|
180
|
+
return a(this.as, {
|
|
181
|
+
style: {
|
|
182
|
+
whiteSpace: "pre-wrap"
|
|
183
|
+
},
|
|
184
|
+
"data-node-view-content": ""
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
const K = d({
|
|
189
|
+
name: "NodeViewWrapper",
|
|
190
|
+
props: {
|
|
191
|
+
as: {
|
|
192
|
+
type: String,
|
|
193
|
+
default: "div"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
inject: ["onDragStart", "decorationClasses"],
|
|
197
|
+
render() {
|
|
198
|
+
var r, t;
|
|
199
|
+
return a(this.as, {
|
|
200
|
+
// @ts-ignore
|
|
201
|
+
class: this.decorationClasses,
|
|
202
|
+
style: {
|
|
203
|
+
whiteSpace: "normal"
|
|
204
|
+
},
|
|
205
|
+
"data-node-view-wrapper": "",
|
|
206
|
+
// @ts-ignore (https://github.com/vuejs/vue-next/issues/3031)
|
|
207
|
+
onDragstart: this.onDragStart
|
|
208
|
+
}, (t = (r = this.$slots).default) === null || t === void 0 ? void 0 : t.call(r));
|
|
209
|
+
}
|
|
210
|
+
}), L = (r = {}) => {
|
|
211
|
+
const t = y();
|
|
212
|
+
return c(() => {
|
|
213
|
+
t.value = new D(r);
|
|
214
|
+
}), u(() => {
|
|
215
|
+
var n, e, o;
|
|
216
|
+
const i = (n = t.value) === null || n === void 0 ? void 0 : n.options.element, s = i == null ? void 0 : i.cloneNode(!0);
|
|
217
|
+
(e = i == null ? void 0 : i.parentNode) === null || e === void 0 || e.replaceChild(s, i), (o = t.value) === null || o === void 0 || o.destroy();
|
|
218
|
+
}), t;
|
|
219
|
+
};
|
|
220
|
+
class E {
|
|
221
|
+
constructor(t, { props: n = {}, editor: e }) {
|
|
222
|
+
this.editor = e, this.component = f(t), this.el = document.createElement("div"), this.props = _(n), this.renderedComponent = this.renderComponent();
|
|
223
|
+
}
|
|
224
|
+
get element() {
|
|
225
|
+
return this.renderedComponent.el;
|
|
226
|
+
}
|
|
227
|
+
get ref() {
|
|
228
|
+
var t, n, e, o;
|
|
229
|
+
return !((n = (t = this.renderedComponent.vNode) === null || t === void 0 ? void 0 : t.component) === null || n === void 0) && n.exposed ? this.renderedComponent.vNode.component.exposed : (o = (e = this.renderedComponent.vNode) === null || e === void 0 ? void 0 : e.component) === null || o === void 0 ? void 0 : o.proxy;
|
|
230
|
+
}
|
|
231
|
+
renderComponent() {
|
|
232
|
+
let t = a(this.component, this.props);
|
|
233
|
+
return this.editor.appContext && (t.appContext = this.editor.appContext), typeof document < "u" && this.el && v(t, this.el), { vNode: t, destroy: () => {
|
|
234
|
+
this.el && v(null, this.el), this.el = null, t = null;
|
|
235
|
+
}, el: this.el ? this.el.firstElementChild : null };
|
|
236
|
+
}
|
|
237
|
+
updateProps(t = {}) {
|
|
238
|
+
Object.entries(t).forEach(([n, e]) => {
|
|
239
|
+
this.props[n] = e;
|
|
240
|
+
}), this.renderComponent();
|
|
241
|
+
}
|
|
242
|
+
destroy() {
|
|
243
|
+
this.renderedComponent.destroy();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const R = {
|
|
247
|
+
editor: {
|
|
248
|
+
type: Object,
|
|
249
|
+
required: !0
|
|
250
|
+
},
|
|
251
|
+
node: {
|
|
252
|
+
type: Object,
|
|
253
|
+
required: !0
|
|
254
|
+
},
|
|
255
|
+
decorations: {
|
|
256
|
+
type: Object,
|
|
257
|
+
required: !0
|
|
258
|
+
},
|
|
259
|
+
selected: {
|
|
260
|
+
type: Boolean,
|
|
261
|
+
required: !0
|
|
262
|
+
},
|
|
263
|
+
extension: {
|
|
264
|
+
type: Object,
|
|
265
|
+
required: !0
|
|
266
|
+
},
|
|
267
|
+
getPos: {
|
|
268
|
+
type: Function,
|
|
269
|
+
required: !0
|
|
270
|
+
},
|
|
271
|
+
updateAttributes: {
|
|
272
|
+
type: Function,
|
|
273
|
+
required: !0
|
|
274
|
+
},
|
|
275
|
+
deleteNode: {
|
|
276
|
+
type: Function,
|
|
277
|
+
required: !0
|
|
278
|
+
},
|
|
279
|
+
view: {
|
|
280
|
+
type: Object,
|
|
281
|
+
required: !0
|
|
282
|
+
},
|
|
283
|
+
innerDecorations: {
|
|
284
|
+
type: Object,
|
|
285
|
+
required: !0
|
|
286
|
+
},
|
|
287
|
+
HTMLAttributes: {
|
|
288
|
+
type: Object,
|
|
289
|
+
required: !0
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
class j extends O {
|
|
293
|
+
mount() {
|
|
294
|
+
const t = {
|
|
295
|
+
editor: this.editor,
|
|
296
|
+
node: this.node,
|
|
297
|
+
decorations: this.decorations,
|
|
298
|
+
innerDecorations: this.innerDecorations,
|
|
299
|
+
view: this.view,
|
|
300
|
+
selected: !1,
|
|
301
|
+
extension: this.extension,
|
|
302
|
+
HTMLAttributes: this.HTMLAttributes,
|
|
303
|
+
getPos: () => this.getPos(),
|
|
304
|
+
updateAttributes: (o = {}) => this.updateAttributes(o),
|
|
305
|
+
deleteNode: () => this.deleteNode()
|
|
306
|
+
}, n = this.onDragStart.bind(this);
|
|
307
|
+
this.decorationClasses = l(this.getDecorationClasses());
|
|
308
|
+
const e = d({
|
|
309
|
+
extends: { ...this.component },
|
|
310
|
+
props: Object.keys(t),
|
|
311
|
+
template: this.component.template,
|
|
312
|
+
setup: (o) => {
|
|
313
|
+
var i, s;
|
|
314
|
+
return h("onDragStart", n), h("decorationClasses", this.decorationClasses), (s = (i = this.component).setup) === null || s === void 0 ? void 0 : s.call(i, o, {
|
|
315
|
+
expose: () => {
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
},
|
|
319
|
+
// add support for scoped styles
|
|
320
|
+
// @ts-ignore
|
|
321
|
+
// eslint-disable-next-line
|
|
322
|
+
__scopeId: this.component.__scopeId,
|
|
323
|
+
// add support for CSS Modules
|
|
324
|
+
// @ts-ignore
|
|
325
|
+
// eslint-disable-next-line
|
|
326
|
+
__cssModules: this.component.__cssModules,
|
|
327
|
+
// add support for vue devtools
|
|
328
|
+
// @ts-ignore
|
|
329
|
+
// eslint-disable-next-line
|
|
330
|
+
__name: this.component.__name,
|
|
331
|
+
// @ts-ignore
|
|
332
|
+
// eslint-disable-next-line
|
|
333
|
+
__file: this.component.__file
|
|
334
|
+
});
|
|
335
|
+
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.renderer = new E(e, {
|
|
336
|
+
editor: this.editor,
|
|
337
|
+
props: t
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Return the DOM element.
|
|
342
|
+
* This is the element that will be used to display the node view.
|
|
343
|
+
*/
|
|
344
|
+
get dom() {
|
|
345
|
+
if (!this.renderer.element || !this.renderer.element.hasAttribute("data-node-view-wrapper"))
|
|
346
|
+
throw Error("Please use the NodeViewWrapper component for your node view.");
|
|
347
|
+
return this.renderer.element;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Return the content DOM element.
|
|
351
|
+
* This is the element that will be used to display the rich-text content of the node.
|
|
352
|
+
*/
|
|
353
|
+
get contentDOM() {
|
|
354
|
+
return this.node.isLeaf ? null : this.dom.querySelector("[data-node-view-content]");
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* On editor selection update, check if the node is selected.
|
|
358
|
+
* If it is, call `selectNode`, otherwise call `deselectNode`.
|
|
359
|
+
*/
|
|
360
|
+
handleSelectionUpdate() {
|
|
361
|
+
const { from: t, to: n } = this.editor.state.selection, e = this.getPos();
|
|
362
|
+
if (typeof e == "number")
|
|
363
|
+
if (t <= e && n >= e + this.node.nodeSize) {
|
|
364
|
+
if (this.renderer.props.selected)
|
|
365
|
+
return;
|
|
366
|
+
this.selectNode();
|
|
367
|
+
} else {
|
|
368
|
+
if (!this.renderer.props.selected)
|
|
369
|
+
return;
|
|
370
|
+
this.deselectNode();
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* On update, update the React component.
|
|
375
|
+
* To prevent unnecessary updates, the `update` option can be used.
|
|
376
|
+
*/
|
|
377
|
+
update(t, n, e) {
|
|
378
|
+
const o = (i) => {
|
|
379
|
+
this.decorationClasses.value = this.getDecorationClasses(), this.renderer.updateProps(i);
|
|
380
|
+
};
|
|
381
|
+
if (typeof this.options.update == "function") {
|
|
382
|
+
const i = this.node, s = this.decorations, p = this.innerDecorations;
|
|
383
|
+
return this.node = t, this.decorations = n, this.innerDecorations = e, this.options.update({
|
|
384
|
+
oldNode: i,
|
|
385
|
+
oldDecorations: s,
|
|
386
|
+
newNode: t,
|
|
387
|
+
newDecorations: n,
|
|
388
|
+
oldInnerDecorations: p,
|
|
389
|
+
innerDecorations: e,
|
|
390
|
+
updateProps: () => o({ node: t, decorations: n, innerDecorations: e })
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
return t.type !== this.node.type ? !1 : (t === this.node && this.decorations === n && this.innerDecorations === e || (this.node = t, this.decorations = n, this.innerDecorations = e, o({ node: t, decorations: n, innerDecorations: e })), !0);
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Select the node.
|
|
397
|
+
* Add the `selected` prop and the `ProseMirror-selectednode` class.
|
|
398
|
+
*/
|
|
399
|
+
selectNode() {
|
|
400
|
+
this.renderer.updateProps({
|
|
401
|
+
selected: !0
|
|
402
|
+
}), this.renderer.element && this.renderer.element.classList.add("ProseMirror-selectednode");
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Deselect the node.
|
|
406
|
+
* Remove the `selected` prop and the `ProseMirror-selectednode` class.
|
|
407
|
+
*/
|
|
408
|
+
deselectNode() {
|
|
409
|
+
this.renderer.updateProps({
|
|
410
|
+
selected: !1
|
|
411
|
+
}), this.renderer.element && this.renderer.element.classList.remove("ProseMirror-selectednode");
|
|
412
|
+
}
|
|
413
|
+
getDecorationClasses() {
|
|
414
|
+
return this.decorations.map((t) => t.type.attrs.class).flat().join(" ");
|
|
415
|
+
}
|
|
416
|
+
destroy() {
|
|
417
|
+
this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function B(r, t) {
|
|
421
|
+
return (n) => {
|
|
422
|
+
if (!n.editor.contentComponent)
|
|
423
|
+
return {};
|
|
424
|
+
const e = typeof r == "function" && "__vccOpts" in r ? r.__vccOpts : r;
|
|
425
|
+
return new j(e, n, t);
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
export {
|
|
429
|
+
A as E,
|
|
430
|
+
U as F,
|
|
431
|
+
K as N,
|
|
432
|
+
B as V,
|
|
433
|
+
E as a,
|
|
434
|
+
R as n,
|
|
435
|
+
L as u
|
|
436
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./extension-bubble-menu-0_0wc2P7.system.js","vue","./core-D4rHEGhs.system.js","./extension-floating-menu-Dtu9tcTW.system.js"],function(a,V){"use strict";var y,u,C,h,c,l,p,b,w,S,_,v,f,x,m,N,O,P,j;return{setters:[o=>{y=o.B},o=>{u=o.defineComponent,C=o.shallowRef,h=o.onMounted,c=o.onBeforeUnmount,l=o.h,p=o.ref,b=o.getCurrentInstance,w=o.watchEffect,S=o.nextTick,_=o.unref,v=o.markRaw,f=o.provide,x=o.reactive,m=o.render,N=o.customRef},o=>{O=o.q,P=o.r},o=>{j=o.a}],execute:function(){a("V",M),u({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:t}){const n=p(null);return h(()=>{const{updateDelay:e,editor:i,pluginKey:s,shouldShow:d,tippyOptions:g}=r;i.registerPlugin(y({updateDelay:e,editor:i,element:n.value,pluginKey:s,shouldShow:d,tippyOptions:g}))}),c(()=>{const{pluginKey:e,editor:i}=r;i.unregisterPlugin(e)}),()=>{var e;return l("div",{ref:n},(e=t.default)===null||e===void 0?void 0:e.call(t))}}});function o(r){return N((t,n)=>({get(){return t(),r},set(e){r=e,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class D extends O{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=o(this.view.state),this.reactiveExtensionStorage=o(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),v(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const e=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=e),e}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const F=a("E",u({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(r){const t=p(),n=b();return w(()=>{const e=r.editor;e&&e.options.element&&t.value&&S(()=>{if(!t.value||!e.options.element.firstChild)return;const i=_(t.value);t.value.append(...e.options.element.childNodes),e.contentComponent=n.ctx._,n&&(e.appContext={...n.appContext,provides:n.provides}),e.setOptions({element:i}),e.createNodeViews()})}),c(()=>{const e=r.editor;e&&(e.contentComponent=null,e.appContext=null)}),{rootEl:t}},render(){return l("div",{ref:r=>{this.rootEl=r}})}})),A=a("F",u({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:t}){const n=p(null);return h(()=>{const{pluginKey:e,editor:i,tippyOptions:s,shouldShow:d}=r;i.registerPlugin(j({pluginKey:e,editor:i,element:n.value,tippyOptions:s,shouldShow:d}))}),c(()=>{const{pluginKey:e,editor:i}=r;i.unregisterPlugin(e)}),()=>{var e;return l("div",{ref:n},(e=t.default)===null||e===void 0?void 0:e.call(t))}}}));u({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return l(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});const R=a("N",u({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var r,t;return l(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(t=(r=this.$slots).default)===null||t===void 0?void 0:t.call(r))}})),U=a("u",(r={})=>{const t=C();return h(()=>{t.value=new D(r)}),c(()=>{var n,e,i;const s=(n=t.value)===null||n===void 0?void 0:n.options.element,d=s==null?void 0:s.cloneNode(!0);(e=s==null?void 0:s.parentNode)===null||e===void 0||e.replaceChild(d,s),(i=t.value)===null||i===void 0||i.destroy()}),t});class E{constructor(t,{props:n={},editor:e}){this.editor=e,this.component=v(t),this.el=document.createElement("div"),this.props=x(n),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var t,n,e,i;return!((n=(t=this.renderedComponent.vNode)===null||t===void 0?void 0:t.component)===null||n===void 0)&&n.exposed?this.renderedComponent.vNode.component.exposed:(i=(e=this.renderedComponent.vNode)===null||e===void 0?void 0:e.component)===null||i===void 0?void 0:i.proxy}renderComponent(){let t=l(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<"u"&&this.el&&m(t,this.el),{vNode:t,destroy:()=>{this.el&&m(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(t={}){Object.entries(t).forEach(([n,e])=>{this.props[n]=e}),this.renderComponent()}destroy(){this.renderedComponent.destroy()}}a("a",E);const B=a("n",{editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0},view:{type:Object,required:!0},innerDecorations:{type:Object,required:!0},HTMLAttributes:{type:Object,required:!0}});class q extends P{mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=p(this.getDecorationClasses());const e=u({extends:{...this.component},props:Object.keys(t),template:this.component.template,setup:i=>{var s,d;return f("onDragStart",n),f("decorationClasses",this.decorationClasses),(d=(s=this.component).setup)===null||d===void 0?void 0:d.call(s,i,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new E(e,{editor:this.editor,props:t})}get dom(){if(!this.renderer.element||!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")}handleSelectionUpdate(){const{from:t,to:n}=this.editor.state.selection,e=this.getPos();if(typeof e=="number")if(t<=e&&n>=e+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,n,e){const i=s=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(s)};if(typeof this.options.update=="function"){const s=this.node,d=this.decorations,g=this.innerDecorations;return this.node=t,this.decorations=n,this.innerDecorations=e,this.options.update({oldNode:s,oldDecorations:d,newNode:t,newDecorations:n,oldInnerDecorations:g,innerDecorations:e,updateProps:()=>i({node:t,decorations:n,innerDecorations:e})})}return t.type!==this.node.type?!1:(t===this.node&&this.decorations===n&&this.innerDecorations===e||(this.node=t,this.decorations=n,this.innerDecorations=e,i({node:t,decorations:n,innerDecorations:e})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element&&this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element&&this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(t=>t.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function M(r,t){return n=>{if(!n.editor.contentComponent)return{};const e=typeof r=="function"&&"__vccOpts"in r?r.__vccOpts:r;return new q(e,n,t)}}}}});
|