@fewangsit/wangsvue-fats 1.0.0-alpha.41 → 1.0.0-alpha.42
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/assets/lottiejs/loading-page-B9ooQcfF.system.js +1 -0
- package/assets/lottiejs/loading-page-CQ0mKER2.es.js +15 -0
- package/assets/lottiejs/loading-table-B4T3FYiI.system.js +1 -0
- package/assets/lottiejs/loading-table-BnpbX8Ew.es.js +15 -0
- package/assets/lottiejs/no-data-CMWnya_k.system.js +1 -0
- package/{no-data-DLHO1L_u.js → assets/lottiejs/no-data-DOy8kIGF.es.js} +13 -2
- package/components/animation/Animation-6756VN9N.system.js +1 -0
- package/components/animation/Animation-COWVilAA.es.js +428 -0
- package/components/approverinfo/ApproverInfo-BdqBpNjY.system.js +1 -0
- package/components/approverinfo/ApproverInfo-C3_ibV8c.es.js +321 -0
- package/components/assetinfo/AssetInfo-BBgKToRP.system.js +1 -0
- package/components/assetinfo/AssetInfo-CmwgOU74.es.js +298 -0
- package/components/backgroundimagecropper/BackgroundImageCropper-DFHtaSyE.system.js +1 -0
- package/components/backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js +57 -0
- package/components/badge/Badge-CndPv5v9.system.js +1 -0
- package/components/badge/Badge-DA-XiE1C.es.js +115 -0
- package/components/badgegroup/BadgeGroup-Bj0EjoML.es.js +68 -0
- package/components/badgegroup/BadgeGroup-Y-HhiHk8.system.js +1 -0
- package/components/basecalendar/BaseCalendar-47ahYXrt.es.js +867 -0
- package/components/basecalendar/BaseCalendar-Ce46jOkg.system.js +1 -0
- package/components/basetree/BaseTree-DDu1qI7t.system.js +1 -0
- package/components/basetree/BaseTree-DLSA5FMh.es.js +167 -0
- package/components/breadcrumb/Breadcrumb-B5bAijry.system.js +1 -0
- package/components/breadcrumb/Breadcrumb-BWSmLPqn.es.js +46 -0
- package/components/button/Button-D-MSv_AS.es.js +120 -0
- package/components/button/Button-Okx1_kOu.system.js +1 -0
- package/components/buttonbulkaction/ButtonBulkAction-B4RcdWmb.es.js +185 -0
- package/components/buttonbulkaction/ButtonBulkAction-DLmvicRL.system.js +1 -0
- package/components/buttoncopy/ButtonCopy-BZgQAFOM.es.js +31 -0
- package/components/buttoncopy/ButtonCopy-CKi1bBpz.system.js +1 -0
- package/components/buttondownload/ButtonDownload-Bw9T3mbW.es.js +92 -0
- package/components/buttondownload/ButtonDownload-CpA0ryUT.system.js +1 -0
- package/components/buttonfilter/ButtonFilter-BIE-jM2i.es.js +28 -0
- package/components/buttonfilter/ButtonFilter-C4WRvUrj.system.js +1 -0
- package/components/buttonradio/ButtonRadio-5VUY8o5h.es.js +83 -0
- package/components/buttonradio/ButtonRadio-B2wWrgB5.system.js +1 -0
- package/components/buttonscan/ButtonScan-BCScT2cx.es.js +421 -0
- package/components/buttonscan/ButtonScan-TbyhlW5M.system.js +1 -0
- package/components/buttonsearch/ButtonSearch-Clbafqts.es.js +70 -0
- package/components/buttonsearch/ButtonSearch-e57pD5r3.system.js +1 -0
- package/components/buttonselecttree/ButtonSelectTree-B-_Iw5sB.es.js +218 -0
- package/components/buttonselecttree/ButtonSelectTree-Cbq1oeVK.system.js +1 -0
- package/components/buttonselectuser/ButtonSelectUser-Ar7Y8tVR.es.js +101 -0
- package/components/buttonselectuser/ButtonSelectUser-Cfe6m75Z.system.js +1 -0
- package/components/buttonsync/ButtonSync-Bc1GZXT6.es.js +29 -0
- package/components/buttonsync/ButtonSync-ClllEdAy.system.js +1 -0
- package/components/buttontoggle/ButtonToggle-DIy3M8Pz.es.js +11 -0
- package/components/buttontoggle/ButtonToggle-VNp0lbcW.system.js +1 -0
- package/components/buttonviewlog/ButtonViewLog-Ct8QwEey.system.js +1 -0
- package/components/buttonviewlog/ButtonViewLog-h9uVv5A5.es.js +21 -0
- package/components/calendar/Calendar-7yBKZsvj.system.js +1 -0
- package/components/calendar/Calendar-Df6CnW-l.es.js +112 -0
- package/components/card/Card-BUKU2FcT.system.js +1 -0
- package/components/card/Card-CwnxKNdM.es.js +47 -0
- package/components/checkbox/Checkbox-CCtItmVW.system.js +1 -0
- package/components/checkbox/Checkbox-DdsR222S.es.js +135 -0
- package/components/codesnippet/CodeSnippet-Bpps-Iyc.es.js +127 -0
- package/components/codesnippet/CodeSnippet-DvTtZ28b.system.js +2 -0
- package/components/codesnippetadapter/CodeSnippetAdapter-BtSqWBl1.system.js +1 -0
- package/components/codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js +26 -0
- package/components/columnlist/ColumnList-Bh3LZlOa.system.js +1 -0
- package/components/columnlist/ColumnList-Bp7soiys.es.js +204 -0
- package/components/customcolumn/CustomColumn-CVhAbTGn.system.js +1 -0
- package/components/customcolumn/CustomColumn-Dblxjw_0.es.js +138 -0
- package/components/datatable/DataTable--mHUKNUr.system.js +1 -0
- package/components/datatable/DataTable-J1j-OKsW.es.js +983 -0
- package/components/dialog/Dialog-Dy93f91f.es.js +121 -0
- package/components/dialog/Dialog-WEl66uTI.system.js +1 -0
- package/components/dialogconfirm/DialogConfirm-BOFb7rJD.es.js +139 -0
- package/components/dialogconfirm/DialogConfirm-o7_v7F31.system.js +1 -0
- package/components/dialogform/DialogForm-C15nC1wH.es.js +223 -0
- package/components/dialogform/DialogForm-CdpY1_-F.system.js +1 -0
- package/components/dialogselecttree/DialogSelectTree-BA8xEqco.es.js +268 -0
- package/components/dialogselecttree/DialogSelectTree-DKxWI9Re.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUser-BZTSktHZ.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUser-Bu5TDAPt.es.js +186 -0
- package/components/dialogselectuserfilter/DialogSelectUserFilter-DEl4zFaX.system.js +1 -0
- package/components/dialogselectuserfilter/DialogSelectUserFilter-Dz5OxAU-.es.js +40 -0
- package/components/dropdown/Dropdown-D4S52rW5.es.js +252 -0
- package/components/dropdown/Dropdown-DuvNYyq0.system.js +1 -0
- package/components/editor/Editor-DQ7Xdy30.es.js +1036 -0
- package/components/editor/Editor-IfYw2Tps.system.js +1 -0
- package/components/editorbutton/EditorButton-DDgS2vga.es.js +28 -0
- package/components/editorbutton/EditorButton-DmVrr4Bk.system.js +1 -0
- package/components/fieldwrapper/FieldWrapper-C6HJ2HnC.es.js +34 -0
- package/components/fieldwrapper/FieldWrapper-DFjw9hA8.system.js +1 -0
- package/components/fileupload/FileUpload-B6PAucnD.es.js +175 -0
- package/components/fileupload/FileUpload-iVAJXujV.system.js +1 -0
- package/components/filtercontainer/FilterContainer-CuMaq5Sv.es.js +284 -0
- package/components/filtercontainer/FilterContainer-DUeVLHgZ.system.js +1 -0
- package/components/form/Form-D-e0VI8V.system.js +1 -0
- package/components/form/Form-eSj-nb1y.es.js +181 -0
- package/components/hardwaresync/HardwareSync--HomfQuH.system.js +1 -0
- package/components/hardwaresync/HardwareSync-DUsVwHx1.es.js +236 -0
- package/components/icon/Icon-DUylRmY4.system.js +1 -0
- package/components/icon/Icon-mDqG7urn.es.js +82 -0
- package/components/image/Image-BZ31CL-y.es.js +169 -0
- package/components/image/Image-DX6uB7Ns.system.js +1 -0
- package/components/imagecompressor/ImageCompressor-BLeJDvN3.system.js +1 -0
- package/components/imagecompressor/ImageCompressor-DaW0ak9c.es.js +501 -0
- package/components/imageinputinfo/ImageInputInfo-C5F14hbF.system.js +1 -0
- package/components/imageinputinfo/ImageInputInfo-oTtVBxzO.es.js +46 -0
- package/components/inlinemessage/InlineMessage-19w6FOcP.system.js +1 -0
- package/components/inlinemessage/InlineMessage-CBZT3jWS.es.js +94 -0
- package/components/inputbadge/InputBadge-CsdT7M7-.es.js +186 -0
- package/components/inputbadge/InputBadge-dgANMV70.system.js +1 -0
- package/components/inputcurrency/InputCurrency-B96npK8W.es.js +1208 -0
- package/components/inputcurrency/InputCurrency-ChqGX5L8.system.js +1 -0
- package/components/inputemail/InputEmail-BMzumenA.es.js +49 -0
- package/components/inputemail/InputEmail-CYILS9bp.system.js +1 -0
- package/components/inputgroup/InputGroup-G9TEI4vX.system.js +1 -0
- package/components/inputgroup/InputGroup-eNDRlJ5R.es.js +56 -0
- package/components/inputnumber/InputNumber-Bzk_YzWM.es.js +232 -0
- package/components/inputnumber/InputNumber-CRyg8Xw_.system.js +1 -0
- package/components/inputpassword/InputPassword-BMHMWLgU.es.js +121 -0
- package/components/inputpassword/InputPassword-BjB6FsoL.system.js +1 -0
- package/components/inputphonenumber/InputPhoneNumber-CVM2oK5q.es.js +591 -0
- package/components/inputphonenumber/InputPhoneNumber-DIbd3upL.system.js +1 -0
- package/components/inputrangenumber/InputRangeNumber-B1aAoKVj.es.js +134 -0
- package/components/inputrangenumber/InputRangeNumber-C28xgFBY.system.js +1 -0
- package/components/inputsearch/InputSearch--KHwTBTm.system.js +1 -0
- package/components/inputsearch/InputSearch-cPq3vqhy.es.js +53 -0
- package/components/inputtext/InputText-93zDNfC3.system.js +1 -0
- package/components/inputtext/InputText-_xEnXysf.es.js +241 -0
- package/components/inputurl/InputURL-aqx1PVKL.es.js +61 -0
- package/components/inputurl/InputURL-kWIiKGEG.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-3KsCx4wX.system.js +1 -0
- package/components/litedropdown/LiteDropdown-DcSzP11l.es.js +102 -0
- package/components/loading/Loading-D8M801C9.es.js +24 -0
- package/components/loading/Loading-Diwog8dc.system.js +1 -0
- package/components/mentionlist/MentionList--7AymnhE.es.js +58 -0
- package/components/mentionlist/MentionList-600dsWhX.system.js +1 -0
- package/components/mentionsection/MentionSection-C1gWOzH2.system.js +3 -0
- package/components/mentionsection/MentionSection-C_c4qbpq.es.js +52 -0
- package/components/menu/Menu-BmTMFwBD.es.js +73 -0
- package/components/menu/Menu-OR25pAK3.system.js +1 -0
- package/components/menuitem/MenuItem-LoZMc0T9.es.js +65 -0
- package/components/menuitem/MenuItem-imQ-hYTP.system.js +1 -0
- package/components/multirow/MultiRow-ClSMxrEx.es.js +52 -0
- package/components/multirow/MultiRow-DKu6uIsI.system.js +1 -0
- package/components/multiselect/MultiSelect-DGhS1EyX.es.js +189 -0
- package/components/multiselect/MultiSelect-DKFYq47E.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-C_WCcNPw.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-DXNek7Yb.es.js +49 -0
- package/components/tabmenu/TabMenu-CAQqu-ff.system.js +1 -0
- package/components/tabmenu/TabMenu-iMeZa8gy.es.js +108 -0
- package/components/tagtype/TagType-CX7BVRrE.es.js +49 -0
- package/components/tagtype/TagType-IMYg8AJf.system.js +1 -0
- package/components/textarea/Textarea-ClnQ2qmf.es.js +108 -0
- package/components/textarea/Textarea-DlkzVURV.system.js +1 -0
- package/components/timeline/Timeline-BMRdV_mH.es.js +120 -0
- package/components/timeline/Timeline-D7SYc3QX.system.js +1 -0
- package/components/timelinecontentbytype/TimelineContentByType-BmWsZID0.system.js +1 -0
- package/components/timelinecontentbytype/TimelineContentByType-ehFLzTA1.es.js +111 -0
- package/components/toast/Toast-DnALWJkx.es.js +74 -0
- package/components/toast/Toast-Pc_DOZ5-.system.js +1 -0
- package/components/toggleswitch/ToggleSwitch-WHdD3oYL.system.js +1 -0
- package/components/toggleswitch/ToggleSwitch-wRjnHRIw.es.js +90 -0
- package/components/transactionroles/TransactionRoles-B_67h5wb.es.js +223 -0
- package/components/transactionroles/TransactionRoles-DSXBVwPM.system.js +1 -0
- package/components/tree/Tree-BoVGYw5N.system.js +1 -0
- package/components/tree/Tree-DnaIZZ8S.es.js +268 -0
- package/components/treenode/TreeNode-D5aepDIU.system.js +1 -0
- package/components/treenode/TreeNode-KJOUvlTH.es.js +499 -0
- package/components/treesearchinput/TreeSearchInput-B1PmhE7k.es.js +56 -0
- package/components/treesearchinput/TreeSearchInput-C-hXPV61.system.js +1 -0
- package/components/username/UserName-CCyPAYG6.system.js +1 -0
- package/components/username/UserName-CWs83BX6.es.js +130 -0
- package/components/userwithicon/UserWithIcon-CFjQcbAS.system.js +1 -0
- package/components/userwithicon/UserWithIcon-Dn3aNKdq.es.js +18 -0
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +19 -0
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +1 -0
- package/package.json +1 -1
- package/stats.html +1 -1
- package/style.css +1 -1
- package/vendor/@popperjs/core-BDAJHTVh.es.js +905 -0
- package/vendor/@popperjs/core-DpNOCyB0.system.js +1 -0
- package/vendor/@tiptap/core-BLz8iRA3.es.js +2868 -0
- package/vendor/@tiptap/core-bnIgGWIt.system.js +80 -0
- package/vendor/@tiptap/extension-bold-BnsTNqIJ.es.js +71 -0
- package/vendor/@tiptap/extension-bold-C_KVm_D0.system.js +1 -0
- package/vendor/@tiptap/extension-bubble-menu-D421L1EU.system.js +1 -0
- package/vendor/@tiptap/extension-bubble-menu-D9Vgq7yO.es.js +128 -0
- package/vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js +53 -0
- package/vendor/@tiptap/extension-bullet-list-kXXFF-_p.system.js +1 -0
- package/vendor/@tiptap/extension-code-CfQ7g1i2.es.js +51 -0
- package/vendor/@tiptap/extension-code-Q8P1EHjz.system.js +1 -0
- package/vendor/@tiptap/extension-floating-menu-8rFSweor.system.js +1 -0
- package/vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js +99 -0
- package/vendor/@tiptap/extension-heading-BE64-Rg_.system.js +1 -0
- package/vendor/@tiptap/extension-heading-ZTlCgdtc.es.js +54 -0
- package/vendor/@tiptap/extension-history-GLkLmX-Y.system.js +1 -0
- package/vendor/@tiptap/extension-history-eJIThEn-.es.js +35 -0
- package/vendor/@tiptap/extension-image-B8NPUVFM.es.js +64 -0
- package/vendor/@tiptap/extension-image-rKrdkZpJ.system.js +1 -0
- package/vendor/@tiptap/extension-italic-C_CyJubw.es.js +70 -0
- package/vendor/@tiptap/extension-italic-Dg0Nosoc.system.js +1 -0
- package/vendor/@tiptap/extension-link-Cd8bTMBz.system.js +1 -0
- package/vendor/@tiptap/extension-link-D4PFdLvA.es.js +262 -0
- package/vendor/@tiptap/extension-list-item-7pIJ7t09.es.js +33 -0
- package/vendor/@tiptap/extension-list-item-Mnhfw2gP.system.js +1 -0
- package/vendor/@tiptap/extension-mention-DVF3rX_z.system.js +1 -0
- package/vendor/@tiptap/extension-mention-Dkg-tbrz.es.js +130 -0
- package/vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js +71 -0
- package/vendor/@tiptap/extension-ordered-list-Hl0QU8Zt.system.js +1 -0
- package/vendor/@tiptap/extension-placeholder-BeLl2T-f.system.js +1 -0
- package/vendor/@tiptap/extension-placeholder-V0iTxU19.es.js +52 -0
- package/vendor/@tiptap/extension-underline-BdcAQ4JH.system.js +1 -0
- package/vendor/@tiptap/extension-underline-DsGbvz80.es.js +40 -0
- package/vendor/@tiptap/suggestion-BpZSO8Lm.system.js +1 -0
- package/vendor/@tiptap/suggestion-C4sBhJAD.es.js +131 -0
- package/vendor/@tiptap/vue-3-BH1pZykd.system.js +1 -0
- package/vendor/@tiptap/vue-3-DceiR7pK.es.js +436 -0
- package/vendor/highlight.js-BAruEf1H.system.js +2 -0
- package/vendor/highlight.js-DHowhWoU.es.js +2493 -0
- package/vendor/linkifyjs-BxsOjwQz.es.js +705 -0
- package/vendor/linkifyjs-CMLfIa6I.system.js +5 -0
- package/vendor/lodash-DbIT-6qv.es.js +127 -0
- package/vendor/lodash-DbvKLWSv.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-CadmDhWp.es.js +13928 -0
- package/vendor/primevue-u6FsQONA.system.js +193 -0
- package/vendor/prosemirror-commands-DLmzIpoS.es.js +383 -0
- package/vendor/prosemirror-commands-DgY3QRzI.system.js +2 -0
- package/vendor/prosemirror-history-BMpJFORS.es.js +248 -0
- package/vendor/prosemirror-history-BrK-FTBv.system.js +1 -0
- package/vendor/prosemirror-keymap-COb3Dq2o.system.js +1 -0
- package/vendor/prosemirror-keymap-DF8LLxca.es.js +60 -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-BPpAP8wR.system.js +1 -0
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +87 -0
- package/vendor/prosemirror-state-CwkYUmNs.es.js +820 -0
- package/vendor/prosemirror-state-DzPLD-6l.system.js +1 -0
- package/vendor/prosemirror-transform-DvAmofec.es.js +1507 -0
- package/vendor/prosemirror-transform-VaXuT0NM.system.js +2 -0
- package/vendor/prosemirror-view-JTdpiWMD.system.js +5 -0
- package/vendor/prosemirror-view-ta7l3rKk.es.js +3742 -0
- package/vendor/rope-sequence-4t46C6az.system.js +1 -0
- package/vendor/rope-sequence-sEGCUMi8.es.js +100 -0
- package/vendor/simplebar-core-71xT5g0m.system.js +1 -0
- package/vendor/simplebar-core-Db65-Ath.es.js +333 -0
- package/vendor/simplebar-vue-BFEeFUIv.system.js +1 -0
- package/vendor/simplebar-vue-DAxqu0eM.es.js +176 -0
- package/vendor/tippy.js-CuKTz0UR.system.js +1 -0
- package/vendor/tippy.js-DNnwm2RY.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 +542 -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/lottiejs/loading-plane-CgfbWppy.system.js} +0 -0
- /package/{loading-page-CoXtqoc9.js → assets/lottiejs/loading-plane-CoXtqoc9.es.js} +0 -0
|
@@ -0,0 +1,1036 @@
|
|
|
1
|
+
import { defineComponent as De, mergeModels as xe, inject as je, useModel as _e, onMounted as ze, reactive as We, shallowRef as C, ref as D, computed as ae, watch as ye, resolveDirective as Ke, createElementBlock as j, openBlock as h, Fragment as oe, createVNode as u, withCtx as b, createElementVNode as c, normalizeClass as k, createCommentVNode as z, createBlock as W, renderList as Ce, mergeProps as Ge, unref as s, createTextVNode as qe, toDisplayString as ke, withDirectives as Je, nextTick as Xe } from "vue";
|
|
2
|
+
import "../assetinfo/AssetInfo-CmwgOU74.es.js";
|
|
3
|
+
import { h as Ze } from "../../vendor/primevue-CadmDhWp.es.js";
|
|
4
|
+
import { u as Qe } from "../../vendor/vee-validate-RE5RuswC.es.js";
|
|
5
|
+
import { B as Ye } from "../../vendor/@tiptap/extension-bold-BnsTNqIJ.es.js";
|
|
6
|
+
import { B as et } from "../../vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js";
|
|
7
|
+
import { C as tt } from "../../vendor/@tiptap/extension-code-CfQ7g1i2.es.js";
|
|
8
|
+
import { N as K, m as ie } from "../../vendor/@tiptap/core-BLz8iRA3.es.js";
|
|
9
|
+
import { F as at } from "../../vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js";
|
|
10
|
+
import { H as ot } from "../../vendor/@tiptap/extension-heading-ZTlCgdtc.es.js";
|
|
11
|
+
import { H as nt } from "../../vendor/@tiptap/extension-history-eJIThEn-.es.js";
|
|
12
|
+
import { I as lt } from "../../vendor/@tiptap/extension-image-B8NPUVFM.es.js";
|
|
13
|
+
import { I as it } from "../../vendor/@tiptap/extension-italic-C_CyJubw.es.js";
|
|
14
|
+
import { L as rt } from "../../vendor/@tiptap/extension-link-D4PFdLvA.es.js";
|
|
15
|
+
import { L as st } from "../../vendor/@tiptap/extension-list-item-7pIJ7t09.es.js";
|
|
16
|
+
import { M as ct } from "../../vendor/@tiptap/extension-mention-Dkg-tbrz.es.js";
|
|
17
|
+
import { O as dt } from "../../vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js";
|
|
18
|
+
import { P as ut } from "../../vendor/@tiptap/extension-placeholder-V0iTxU19.es.js";
|
|
19
|
+
import { U as mt } from "../../vendor/@tiptap/extension-underline-DsGbvz80.es.js";
|
|
20
|
+
import { V as Ae, a as pt, u as ft, E as vt, F as ne } from "../../vendor/@tiptap/vue-3-DceiR7pK.es.js";
|
|
21
|
+
import { _ as gt } from "../codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js";
|
|
22
|
+
import { _ as ht } from "../mentionsection/MentionSection-C_c4qbpq.es.js";
|
|
23
|
+
import { t as bt } from "../../vendor/tippy.js-DNnwm2RY.es.js";
|
|
24
|
+
import { _ as xt } from "../mentionlist/MentionList--7AymnhE.es.js";
|
|
25
|
+
import { _ as le } from "../button/Button-D-MSv_AS.es.js";
|
|
26
|
+
import { _ as _t } from "../dialog/Dialog-Dy93f91f.es.js";
|
|
27
|
+
import { _ as yt } from "../fieldwrapper/FieldWrapper-C6HJ2HnC.es.js";
|
|
28
|
+
import { _ as Ct } from "../form/Form-eSj-nb1y.es.js";
|
|
29
|
+
import { _ as kt } from "../icon/Icon-mDqG7urn.es.js";
|
|
30
|
+
import { _ as wt } from "../inputtext/InputText-_xEnXysf.es.js";
|
|
31
|
+
import { _ as we } from "../inputurl/InputURL-aqx1PVKL.es.js";
|
|
32
|
+
import { _ as St } from "../overlaypanel/OverlayPanel-DXNek7Yb.es.js";
|
|
33
|
+
import { _ as At } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
|
|
34
|
+
import { _ as B } from "../editorbutton/EditorButton-DDgS2vga.es.js";
|
|
35
|
+
const Se = [
|
|
36
|
+
"#57291F",
|
|
37
|
+
"#C0413B",
|
|
38
|
+
"#D77B5F",
|
|
39
|
+
"#FF9200",
|
|
40
|
+
"#C87505",
|
|
41
|
+
"#F18E3F",
|
|
42
|
+
"#C14C32",
|
|
43
|
+
"#80003A",
|
|
44
|
+
"#506432",
|
|
45
|
+
"#B30019",
|
|
46
|
+
"#EC410B",
|
|
47
|
+
"#8CB5B5",
|
|
48
|
+
"#6C3400",
|
|
49
|
+
"#FFA400",
|
|
50
|
+
"#41222A",
|
|
51
|
+
"#FFB27B",
|
|
52
|
+
"#BC7576"
|
|
53
|
+
], Mt = () => {
|
|
54
|
+
const n = Math.floor(Math.random() * Se.length);
|
|
55
|
+
return Se[n];
|
|
56
|
+
}, $a = (n, f, d, N) => {
|
|
57
|
+
const l = d ?? Mt(), p = document.createElement("canvas");
|
|
58
|
+
p.style.background = l, p.width = f, p.height = f;
|
|
59
|
+
const g = p.getContext("2d");
|
|
60
|
+
if (g) {
|
|
61
|
+
const H = "Poppins", G = "600", J = "#fff";
|
|
62
|
+
g.font = `${G} 48px/48px ${H}`, g.textAlign = "center", g.textBaseline = "middle";
|
|
63
|
+
const w = p.width / 2, E = (p.height + 8) / 2;
|
|
64
|
+
g.fillStyle = l, g.fillRect(0, 0, p.width, p.height), g.fillStyle = J, g.fillText(n, w, E);
|
|
65
|
+
}
|
|
66
|
+
return p;
|
|
67
|
+
}, Lt = K.create({
|
|
68
|
+
name: "doc",
|
|
69
|
+
topNode: !0,
|
|
70
|
+
content: "block+"
|
|
71
|
+
}), It = K.create({
|
|
72
|
+
name: "paragraph",
|
|
73
|
+
priority: 1e3,
|
|
74
|
+
addOptions() {
|
|
75
|
+
return {
|
|
76
|
+
HTMLAttributes: {}
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
group: "block",
|
|
80
|
+
content: "inline*",
|
|
81
|
+
parseHTML() {
|
|
82
|
+
return [
|
|
83
|
+
{ tag: "p" }
|
|
84
|
+
];
|
|
85
|
+
},
|
|
86
|
+
renderHTML({ HTMLAttributes: n }) {
|
|
87
|
+
return ["p", ie(this.options.HTMLAttributes, n), 0];
|
|
88
|
+
},
|
|
89
|
+
addCommands() {
|
|
90
|
+
return {
|
|
91
|
+
setParagraph: () => ({ commands: n }) => n.setNode(this.name)
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
addKeyboardShortcuts() {
|
|
95
|
+
return {
|
|
96
|
+
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}), Tt = K.create({
|
|
100
|
+
name: "text",
|
|
101
|
+
group: "inline"
|
|
102
|
+
}), Bt = K.create({
|
|
103
|
+
name: "codeSnippet",
|
|
104
|
+
group: "block",
|
|
105
|
+
atom: !0,
|
|
106
|
+
addAttributes() {
|
|
107
|
+
return {
|
|
108
|
+
code: {
|
|
109
|
+
default: ""
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
parseHTML() {
|
|
114
|
+
return [
|
|
115
|
+
{
|
|
116
|
+
tag: "codeSnippet"
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
},
|
|
120
|
+
renderHTML({ HTMLAttributes: n }) {
|
|
121
|
+
return ["codeSnippet", ie(n)];
|
|
122
|
+
},
|
|
123
|
+
addNodeView() {
|
|
124
|
+
return Ae(gt);
|
|
125
|
+
},
|
|
126
|
+
addCommands() {
|
|
127
|
+
return {
|
|
128
|
+
insertCodeSnippet: () => ({ commands: n }) => n.insertContent({
|
|
129
|
+
type: "codeSnippet",
|
|
130
|
+
attrs: { code: "" }
|
|
131
|
+
}),
|
|
132
|
+
deleteCodeSnippet: () => ({ commands: n }) => n.deleteSelection()
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}), Ht = K.create({
|
|
136
|
+
name: "mentionSection",
|
|
137
|
+
group: "block",
|
|
138
|
+
atom: !0,
|
|
139
|
+
addAttributes() {
|
|
140
|
+
return {
|
|
141
|
+
title: {
|
|
142
|
+
default: ""
|
|
143
|
+
},
|
|
144
|
+
bodyText: {
|
|
145
|
+
default: ""
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
parseHTML() {
|
|
150
|
+
return [
|
|
151
|
+
{
|
|
152
|
+
tag: "mentionSection"
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
},
|
|
156
|
+
renderHTML({ HTMLAttributes: n }) {
|
|
157
|
+
return ["mentionSection", ie(n)];
|
|
158
|
+
},
|
|
159
|
+
addNodeView() {
|
|
160
|
+
return Ae(ht);
|
|
161
|
+
},
|
|
162
|
+
addCommands() {
|
|
163
|
+
return {
|
|
164
|
+
insertMentionSection: (n) => ({ commands: f }) => f.insertContent({
|
|
165
|
+
type: "mentionSection",
|
|
166
|
+
attrs: {
|
|
167
|
+
title: n,
|
|
168
|
+
bodyText: null
|
|
169
|
+
}
|
|
170
|
+
}),
|
|
171
|
+
deleteMentionSection: () => ({ commands: n }) => n.deleteSelection()
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}), Ft = () => ({
|
|
175
|
+
render: () => {
|
|
176
|
+
let n, f;
|
|
177
|
+
return {
|
|
178
|
+
onStart(d) {
|
|
179
|
+
n = new pt(xt, {
|
|
180
|
+
props: {
|
|
181
|
+
items: d.items,
|
|
182
|
+
command: d.command
|
|
183
|
+
},
|
|
184
|
+
editor: d.editor
|
|
185
|
+
}), d.clientRect && (f = bt("body", {
|
|
186
|
+
getReferenceClientRect: d.clientRect,
|
|
187
|
+
appendTo: () => document.body,
|
|
188
|
+
content: n.element,
|
|
189
|
+
showOnCreate: !0,
|
|
190
|
+
interactive: !0,
|
|
191
|
+
trigger: "manual",
|
|
192
|
+
placement: "bottom-start"
|
|
193
|
+
}));
|
|
194
|
+
},
|
|
195
|
+
onUpdate(d) {
|
|
196
|
+
n.updateProps(d), d.clientRect && f[0].setProps({
|
|
197
|
+
getReferenceClientRect: d.clientRect
|
|
198
|
+
});
|
|
199
|
+
},
|
|
200
|
+
onKeyDown(d) {
|
|
201
|
+
return d.event.key === "Escape" ? (f[0].hide(), !0) : n.ref.onKeyDown(d.event);
|
|
202
|
+
},
|
|
203
|
+
onExit() {
|
|
204
|
+
f[0].destroy(), n.destroy();
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}), Pt = 1 * 1024 * 1024, Vt = 10 * 1024 * 1024, $t = (n) => n.startsWith("image/") ? "image" : n.includes("mp4") ? "mp4" : n === "video/x-matroska" ? "mkv" : n === "text/plain" ? "txt" : n === "text/csv" ? "csv" : n === "text/html" ? "html" : n === "application/json" ? "json" : n === "application/pdf" ? "pdf" : n === "application/vnd.ms-excel" || n === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "xls" : n === "application/msword" || n === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "doc" : n.startsWith("application/x-url") ? "link" : n.includes("application/x-zip-compressed") || n.includes("application/x-compressed") ? "compressed" : "unknown", Nt = (n, f = 1) => {
|
|
209
|
+
var N;
|
|
210
|
+
if (f *= Pt, !((N = n.type) != null && N.length))
|
|
211
|
+
return !1;
|
|
212
|
+
const d = $t(n.type);
|
|
213
|
+
return n.size <= (d === "mp4" || d === "mkv" ? Vt : f);
|
|
214
|
+
}, Et = ["title", "onClick"], Rt = { class: "!text-[9px] !leading-3 !h-max !font-normal" }, Ot = {
|
|
215
|
+
class: /* @__PURE__ */ k([
|
|
216
|
+
"flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
|
|
217
|
+
"[&_.separator::after]:content-['|']",
|
|
218
|
+
"[&_.separator::after]:text-xl",
|
|
219
|
+
"[&_.separator::after]:font-thin",
|
|
220
|
+
"[&_.separator]:h-6"
|
|
221
|
+
])
|
|
222
|
+
}, Ut = {
|
|
223
|
+
class: /* @__PURE__ */ k([
|
|
224
|
+
"flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
|
|
225
|
+
"[&_.separator::after]:content-['|']",
|
|
226
|
+
"[&_.separator::after]:text-xl",
|
|
227
|
+
"[&_.separator::after]:font-thin",
|
|
228
|
+
"[&_.separator]:h-6"
|
|
229
|
+
])
|
|
230
|
+
}, Dt = /* @__PURE__ */ c("span", { class: "separator" }, null, -1), jt = /* @__PURE__ */ c("span", { class: "separator" }, null, -1), zt = /* @__PURE__ */ c("span", { class: "separator" }, null, -1), Wt = { class: "flex flex-col gap-4" }, Kt = { class: "flex gap-2" }, Gt = { class: "flex-1" }, qt = { class: "flex items-end" }, Jt = /* @__PURE__ */ c("p", null, "Baru Saja Ditambahkan", -1), Xt = { class: "flex flex-wrap justify-center gap-2" }, Zt = ["src"], Qt = { class: "flex flex-col justify-center w-28 h-28 items-center" }, Yt = { class: "relative py-[7px] px-3" }, ea = /* @__PURE__ */ c("p", null, "Cari Gambar", -1), ta = {
|
|
231
|
+
class: /* @__PURE__ */ k([
|
|
232
|
+
"flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
|
|
233
|
+
"[&_.separator::after]:content-['|']",
|
|
234
|
+
"[&_.separator::after]:text-xl",
|
|
235
|
+
"[&_.separator::after]:font-thin",
|
|
236
|
+
"[&_.separator]:h-6"
|
|
237
|
+
])
|
|
238
|
+
}, Na = /* @__PURE__ */ De({
|
|
239
|
+
__name: "Editor",
|
|
240
|
+
props: /* @__PURE__ */ xe({
|
|
241
|
+
modelValue: {},
|
|
242
|
+
initialValue: {},
|
|
243
|
+
placeholder: { default: "Tulis" },
|
|
244
|
+
editorState: { default: "editable" },
|
|
245
|
+
borderLess: { type: Boolean, default: !1 },
|
|
246
|
+
label: {},
|
|
247
|
+
useValidator: { type: Boolean },
|
|
248
|
+
fieldName: {},
|
|
249
|
+
labelClass: {},
|
|
250
|
+
fieldInfo: {},
|
|
251
|
+
validatorMessageClass: {},
|
|
252
|
+
validatorMessage: {},
|
|
253
|
+
mandatory: { type: Boolean },
|
|
254
|
+
invalid: { type: Boolean },
|
|
255
|
+
showOptionalText: { type: Boolean, default: void 0 },
|
|
256
|
+
isImageUploadBase64: { type: Boolean, default: !1 },
|
|
257
|
+
fetchMentionSuggestionFunction: {},
|
|
258
|
+
mentionedList: {},
|
|
259
|
+
editorWrapperClass: {},
|
|
260
|
+
toolbarWrapperClass: {},
|
|
261
|
+
contentWrapperClass: {}
|
|
262
|
+
}, {
|
|
263
|
+
modelValue: {},
|
|
264
|
+
modelModifiers: {},
|
|
265
|
+
mentionedList: {},
|
|
266
|
+
mentionedListModifiers: {}
|
|
267
|
+
}),
|
|
268
|
+
emits: /* @__PURE__ */ xe(["update:modelValue", "postImageLocal", "deleteImageLocal", "blur", "focus", "update:mentionedList"], ["update:modelValue", "update:mentionedList"]),
|
|
269
|
+
setup(n, { expose: f, emit: d }) {
|
|
270
|
+
const N = je("preset", {}).menu, l = n, p = d;
|
|
271
|
+
_e(n, "modelValue");
|
|
272
|
+
const g = _e(n, "mentionedList");
|
|
273
|
+
ze(() => {
|
|
274
|
+
l.useValidator && (Object.assign(
|
|
275
|
+
x,
|
|
276
|
+
Qe(
|
|
277
|
+
() => l.fieldName ?? "editorInput",
|
|
278
|
+
(e) => Xe(() => $e(e))
|
|
279
|
+
)
|
|
280
|
+
), l.initialValue != null && (x.value = l.initialValue), l.modelValue != null && (x.value = l.modelValue)), Re();
|
|
281
|
+
});
|
|
282
|
+
const H = C(!1), G = D(), q = D(), J = D(), w = D([]), E = C(!1), F = C(), R = C(), X = C(), x = We({
|
|
283
|
+
value: l.modelValue
|
|
284
|
+
}), S = C(!1), O = D([]), Y = C(), Me = ae(
|
|
285
|
+
() => {
|
|
286
|
+
var e;
|
|
287
|
+
return l.placeholder ?? "Tulis " + (l.label ? (e = l.label) == null ? void 0 : e.toLowerCase() : "");
|
|
288
|
+
}
|
|
289
|
+
), a = ft({
|
|
290
|
+
content: l.initialValue ?? l.modelValue,
|
|
291
|
+
onBlur: (e) => p("blur", e),
|
|
292
|
+
onFocus: (e) => p("focus", e),
|
|
293
|
+
onUpdate: () => {
|
|
294
|
+
var e, t;
|
|
295
|
+
p("update:modelValue", ((e = a.value) == null ? void 0 : e.getJSON()) ?? {}), x.value = ((t = a.value) == null ? void 0 : t.getJSON()) ?? {};
|
|
296
|
+
},
|
|
297
|
+
onPaste: async (e) => {
|
|
298
|
+
let t = [];
|
|
299
|
+
const { items: i } = e.clipboardData, o = (r) => new Promise((m) => {
|
|
300
|
+
if (r.kind === "file") {
|
|
301
|
+
const v = r.getAsFile();
|
|
302
|
+
v && t.push(v), m();
|
|
303
|
+
} else
|
|
304
|
+
m();
|
|
305
|
+
});
|
|
306
|
+
await Promise.all(Array.from(i).map(o));
|
|
307
|
+
try {
|
|
308
|
+
if (t.length) {
|
|
309
|
+
const r = t.filter((m) => m.type.startsWith("image/")).filter((m) => Nt(m, 10));
|
|
310
|
+
await se(r);
|
|
311
|
+
}
|
|
312
|
+
} catch (r) {
|
|
313
|
+
console.error("Error pasting images:", r);
|
|
314
|
+
} finally {
|
|
315
|
+
t = [];
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
onSelectionUpdate(e) {
|
|
319
|
+
var i;
|
|
320
|
+
const t = e.editor.getAttributes(
|
|
321
|
+
"image"
|
|
322
|
+
);
|
|
323
|
+
(i = a.value) == null || i.state.doc.descendants((o) => {
|
|
324
|
+
o.type.name === "mention" && O.value.push(o.attrs.id);
|
|
325
|
+
}), O.value = Array.from(
|
|
326
|
+
new Set(O.value)
|
|
327
|
+
), t.title === "localImage" ? R.value = t : R.value = void 0;
|
|
328
|
+
},
|
|
329
|
+
editable: l.editorState === "editable",
|
|
330
|
+
extensions: [
|
|
331
|
+
ut.configure({
|
|
332
|
+
emptyEditorClass: "is-editor-empty !text-general-200 !font-light",
|
|
333
|
+
placeholder: Me.value,
|
|
334
|
+
includeChildren: !1
|
|
335
|
+
}),
|
|
336
|
+
Lt.extend({
|
|
337
|
+
addKeyboardShortcuts() {
|
|
338
|
+
return {
|
|
339
|
+
"Mod-\\": () => (this.editor.commands.clearNodes(), this.editor.commands.unsetAllMarks())
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
}),
|
|
343
|
+
// Blocks
|
|
344
|
+
ot,
|
|
345
|
+
It,
|
|
346
|
+
Tt,
|
|
347
|
+
lt.extend({
|
|
348
|
+
addKeyboardShortcuts() {
|
|
349
|
+
const e = () => {
|
|
350
|
+
const { node: t } = this.editor.state.selection;
|
|
351
|
+
return t && t.type.name === "image" && t.attrs.title === "localImage" ? (ce(), !0) : !1;
|
|
352
|
+
};
|
|
353
|
+
return {
|
|
354
|
+
Insert: () => re(),
|
|
355
|
+
Backspace: e,
|
|
356
|
+
Delete: e
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
}).configure({
|
|
360
|
+
HTMLAttributes: {
|
|
361
|
+
class: "w-fit max-h-[300px] object-contain"
|
|
362
|
+
}
|
|
363
|
+
}),
|
|
364
|
+
Bt.extend({
|
|
365
|
+
addKeyboardShortcuts() {
|
|
366
|
+
return {
|
|
367
|
+
"Mod-alt-c": de
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}),
|
|
371
|
+
Ht,
|
|
372
|
+
dt.configure({
|
|
373
|
+
HTMLAttributes: {
|
|
374
|
+
class: "list-decimal px-3 py-1"
|
|
375
|
+
}
|
|
376
|
+
}),
|
|
377
|
+
et.configure({
|
|
378
|
+
HTMLAttributes: {
|
|
379
|
+
class: "list-disc px-3 py-1"
|
|
380
|
+
}
|
|
381
|
+
}),
|
|
382
|
+
st,
|
|
383
|
+
// Marks
|
|
384
|
+
Ye,
|
|
385
|
+
it,
|
|
386
|
+
mt,
|
|
387
|
+
tt,
|
|
388
|
+
rt.extend({
|
|
389
|
+
addKeyboardShortcuts() {
|
|
390
|
+
return {
|
|
391
|
+
"Mod-k": () => ee()
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
}).configure({
|
|
395
|
+
openOnClick: !1
|
|
396
|
+
}),
|
|
397
|
+
nt,
|
|
398
|
+
ct.configure({
|
|
399
|
+
HTMLAttributes: {
|
|
400
|
+
class: "bg-primary-200 text-primary-800 rounded-[50px] px-1"
|
|
401
|
+
},
|
|
402
|
+
suggestion: {
|
|
403
|
+
items({ query: e }) {
|
|
404
|
+
return ((X == null ? void 0 : X.value) ?? []).filter((t) => t == null ? void 0 : t.fullName.toLowerCase().includes(e.toLowerCase())).map((t) => ({
|
|
405
|
+
id: t == null ? void 0 : t._id,
|
|
406
|
+
label: t == null ? void 0 : t.fullName,
|
|
407
|
+
nickName: t.nickName,
|
|
408
|
+
profilePicture: t.profilePicture
|
|
409
|
+
}));
|
|
410
|
+
},
|
|
411
|
+
...Ft()
|
|
412
|
+
}
|
|
413
|
+
}),
|
|
414
|
+
at
|
|
415
|
+
]
|
|
416
|
+
}), Le = ae(() => {
|
|
417
|
+
var L, y, I, T, P, V, $, U, Q, me, pe, fe, ve, ge, he, be;
|
|
418
|
+
if (!a.value) return [];
|
|
419
|
+
const {
|
|
420
|
+
toggleBold: e,
|
|
421
|
+
focus: t,
|
|
422
|
+
toggleItalic: i,
|
|
423
|
+
toggleUnderline: o,
|
|
424
|
+
toggleBulletList: r,
|
|
425
|
+
toggleCode: m,
|
|
426
|
+
toggleOrderedList: v,
|
|
427
|
+
unsetAllMarks: A,
|
|
428
|
+
clearNodes: M
|
|
429
|
+
} = a.value.commands, _ = (L = a.value) == null ? void 0 : L.isActive("code");
|
|
430
|
+
return [
|
|
431
|
+
{
|
|
432
|
+
label: "Aa",
|
|
433
|
+
iconPos: "right",
|
|
434
|
+
icon: "arrow-down",
|
|
435
|
+
class: "!gap-0 !w-[50px] !p-0 !m-0 [&_span]:leading-[22px]",
|
|
436
|
+
onClick: (y = G.value) == null ? void 0 : y.toggle
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
icon: "bold",
|
|
440
|
+
tooltipText: "Bold | Ctrl + B",
|
|
441
|
+
active: (I = a.value) == null ? void 0 : I.isActive("bold"),
|
|
442
|
+
disabled: _,
|
|
443
|
+
onClick: () => {
|
|
444
|
+
t(), e();
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
icon: "italic",
|
|
449
|
+
tooltipText: "Italic | Ctrl + I",
|
|
450
|
+
active: (T = a.value) == null ? void 0 : T.isActive("italic"),
|
|
451
|
+
disabled: _,
|
|
452
|
+
onClick: () => {
|
|
453
|
+
t(), i();
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
icon: "underline",
|
|
458
|
+
class: "mr-3",
|
|
459
|
+
active: (P = a.value) == null ? void 0 : P.isActive("underline"),
|
|
460
|
+
tooltipText: "Underline | Ctrl + U",
|
|
461
|
+
disabled: _,
|
|
462
|
+
onClick: () => {
|
|
463
|
+
t(), o();
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
icon: "list-unordered",
|
|
468
|
+
tooltipText: "Bullet List | Ctrl + 7",
|
|
469
|
+
active: (V = a.value) == null ? void 0 : V.isActive("bullet-list"),
|
|
470
|
+
onClick: () => {
|
|
471
|
+
t(), r();
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
icon: "list-ordered",
|
|
476
|
+
tooltipText: "Numbered List | Ctrl + 8",
|
|
477
|
+
active: ($ = a.value) == null ? void 0 : $.isActive("ordered-list"),
|
|
478
|
+
class: "mr-3",
|
|
479
|
+
onClick: () => {
|
|
480
|
+
t(), v();
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
icon: "link-m",
|
|
485
|
+
tooltipText: "Link | Ctrl + K",
|
|
486
|
+
disabled: ((U = a.value) == null ? void 0 : U.isActive("link")) || H.value,
|
|
487
|
+
onClick: ee
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
icon: "image-add",
|
|
491
|
+
active: (Q = a.value) == null ? void 0 : Q.isActive("image"),
|
|
492
|
+
tooltipText: "Image | Insert",
|
|
493
|
+
onClick: () => re()
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
icon: "code-line",
|
|
497
|
+
active: (me = a.value) == null ? void 0 : me.isActive("code"),
|
|
498
|
+
tooltipText: "Inline Code | Ctrl + E",
|
|
499
|
+
onClick: () => {
|
|
500
|
+
t(), m();
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
icon: "code-box-line",
|
|
505
|
+
active: (pe = a.value) == null ? void 0 : pe.isActive("codeSnippet"),
|
|
506
|
+
tooltipText: "Code Block | Ctrl + Alt + C",
|
|
507
|
+
onClick: () => {
|
|
508
|
+
de();
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
icon: "format-clear",
|
|
513
|
+
tooltipText: "Clear Formatting Ctrl + \\",
|
|
514
|
+
disabled: !((fe = a.value) != null && fe.isActive("bold")) && !((ve = a.value) != null && ve.isActive("underline")) && !((ge = a.value) != null && ge.isActive("italic")) && !((he = a.value) != null && he.isActive("code")) && !((be = a.value) != null && be.isActive("heading")),
|
|
515
|
+
onClick: () => {
|
|
516
|
+
t(), M(), A();
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
];
|
|
520
|
+
}), Ie = C([
|
|
521
|
+
{
|
|
522
|
+
label: "Paragraf",
|
|
523
|
+
class: "p",
|
|
524
|
+
shortCut: "Ctrl+Alt+P",
|
|
525
|
+
command: () => {
|
|
526
|
+
var e, t;
|
|
527
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setParagraph();
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
label: "Heading 1",
|
|
532
|
+
class: "heading-1",
|
|
533
|
+
shortCut: "Ctrl+Alt+1",
|
|
534
|
+
command: () => {
|
|
535
|
+
var e, t;
|
|
536
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 1 });
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
label: "Heading 2",
|
|
541
|
+
class: "heading-2",
|
|
542
|
+
shortCut: "Ctrl+Alt+2",
|
|
543
|
+
command: () => {
|
|
544
|
+
var e, t;
|
|
545
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 2 });
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
class: "heading-3",
|
|
550
|
+
label: "Heading 3",
|
|
551
|
+
shortCut: "Ctrl+Alt+3",
|
|
552
|
+
command: () => {
|
|
553
|
+
var e, t;
|
|
554
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 3 });
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
label: "Heading 4",
|
|
559
|
+
class: "heading-4",
|
|
560
|
+
shortCut: "Ctrl+Alt+4",
|
|
561
|
+
command: () => {
|
|
562
|
+
var e, t;
|
|
563
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 4 });
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
label: "Heading 5",
|
|
568
|
+
class: "heading-5",
|
|
569
|
+
shortCut: "Ctrl+Alt+5",
|
|
570
|
+
command: () => {
|
|
571
|
+
var e, t;
|
|
572
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 5 });
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
label: "Heading 6",
|
|
577
|
+
class: "heading-6",
|
|
578
|
+
shortCut: "Ctrl+Alt+6",
|
|
579
|
+
command: () => {
|
|
580
|
+
var e, t;
|
|
581
|
+
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 6 });
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
]), Z = ae(() => {
|
|
585
|
+
var e;
|
|
586
|
+
return (e = a.value) == null ? void 0 : e.getAttributes("link");
|
|
587
|
+
}), Te = () => {
|
|
588
|
+
var i;
|
|
589
|
+
const { href: e } = Z.value, t = (i = a.value) == null ? void 0 : i.view.dom.querySelector(`[href="${e}"]`);
|
|
590
|
+
return Pe() || t && (t == null ? void 0 : t.textContent) !== e && t.textContent || void 0;
|
|
591
|
+
}, Be = () => {
|
|
592
|
+
var e;
|
|
593
|
+
window.open((e = Z.value) == null ? void 0 : e.href, "_blank");
|
|
594
|
+
}, He = () => {
|
|
595
|
+
var e;
|
|
596
|
+
window.navigator.clipboard.writeText((e = Z.value) == null ? void 0 : e.href);
|
|
597
|
+
}, Fe = () => {
|
|
598
|
+
var e;
|
|
599
|
+
if (a.value) {
|
|
600
|
+
const { unsetLink: t, focus: i } = ((e = a.value) == null ? void 0 : e.commands) ?? {};
|
|
601
|
+
i(), t();
|
|
602
|
+
}
|
|
603
|
+
}, Pe = () => {
|
|
604
|
+
if (a.value) {
|
|
605
|
+
const { state: e } = a.value, { from: t, to: i } = e.selection;
|
|
606
|
+
return e == null ? void 0 : e.doc.textBetween(t, i, " ");
|
|
607
|
+
}
|
|
608
|
+
}, re = () => (E.value = !0, !1), se = async (e) => {
|
|
609
|
+
if (l.isImageUploadBase64) {
|
|
610
|
+
const t = await Ee(e[0]);
|
|
611
|
+
te(t);
|
|
612
|
+
} else
|
|
613
|
+
p("postImageLocal", {
|
|
614
|
+
image: e[0],
|
|
615
|
+
setImageCb: te
|
|
616
|
+
});
|
|
617
|
+
}, Ve = (e) => {
|
|
618
|
+
const { files: t } = e.target;
|
|
619
|
+
se(t);
|
|
620
|
+
}, $e = (e = {}) => {
|
|
621
|
+
if (typeof l.validatorMessage == "string" && l.invalid)
|
|
622
|
+
return l.validatorMessage;
|
|
623
|
+
if (typeof l.validatorMessage != "string") {
|
|
624
|
+
const { empty: t } = l.validatorMessage ?? {};
|
|
625
|
+
if (e.content === void 0 && l.mandatory && t)
|
|
626
|
+
return t ?? !0;
|
|
627
|
+
}
|
|
628
|
+
return !0;
|
|
629
|
+
}, ee = (e) => {
|
|
630
|
+
var o, r, m, v;
|
|
631
|
+
const t = e ?? {
|
|
632
|
+
currentTarget: (r = (o = J.value) == null ? void 0 : o.querySelector(".ic-link-m")) == null ? void 0 : r.closest("button")
|
|
633
|
+
}, { dom: i } = ((m = a.value) == null ? void 0 : m.view) ?? {};
|
|
634
|
+
return (v = q.value) == null || v.toggle(t, i), !0;
|
|
635
|
+
}, Ne = ({ formValues: e }) => {
|
|
636
|
+
var A, M;
|
|
637
|
+
if (!a.value) return !1;
|
|
638
|
+
const { setLink: t, insertContent: i, focus: o } = a.value.commands, { url: r, text: m } = e, { state: v } = a.value;
|
|
639
|
+
return o(), t({
|
|
640
|
+
href: r,
|
|
641
|
+
target: "_blank",
|
|
642
|
+
rel: "nofollow"
|
|
643
|
+
}), (A = a.value) != null && A.isActive("link") ? a.value.chain().focus().command(({ tr: _, state: L }) => {
|
|
644
|
+
const { $from: y, $to: I } = L.selection, T = v.schema.marks.link;
|
|
645
|
+
let P = y.start(), V = I.end();
|
|
646
|
+
return v.doc.nodesBetween(y.pos, I.pos, ($, U) => {
|
|
647
|
+
$.isText && $.marks.some((Q) => Q.type === T) && (P = Math.min(P, U), V = Math.max(V, U + $.nodeSize));
|
|
648
|
+
}), _.insertText(m || r, P, V), !0;
|
|
649
|
+
}).run() : v.selection.empty && i(m || r), (M = q.value) == null || M.hide(), H.value = !1, !0;
|
|
650
|
+
}, te = (e) => {
|
|
651
|
+
var t, i, o, r;
|
|
652
|
+
(t = a.value) == null || t.commands.focus(), e && (l.isImageUploadBase64 ? (i = a.value) == null || i.commands.setImage({
|
|
653
|
+
src: e,
|
|
654
|
+
title: "localImageBase64"
|
|
655
|
+
}) : (o = a.value) == null || o.commands.setImage({ src: e, title: "localImage" }), w.value = Array.from(
|
|
656
|
+
/* @__PURE__ */ new Set([...w.value, e])
|
|
657
|
+
)), F.value && ((r = a.value) == null || r.commands.setImage({ src: F.value }), w.value = Array.from(
|
|
658
|
+
/* @__PURE__ */ new Set([...w.value, F.value])
|
|
659
|
+
)), F.value = void 0, ue();
|
|
660
|
+
}, ce = () => {
|
|
661
|
+
var e;
|
|
662
|
+
R.value && R.value.title === "localImage" && p("deleteImageLocal", R.value), (e = a.value) == null || e.commands.deleteSelection();
|
|
663
|
+
}, Ee = (e) => new Promise((t, i) => {
|
|
664
|
+
const o = new FileReader();
|
|
665
|
+
o.readAsDataURL(e), o.onload = () => {
|
|
666
|
+
t(o.result);
|
|
667
|
+
}, o.onerror = (r) => {
|
|
668
|
+
i(r);
|
|
669
|
+
};
|
|
670
|
+
}), Re = async () => {
|
|
671
|
+
if (l.fetchMentionSuggestionFunction) {
|
|
672
|
+
S.value = !S.value;
|
|
673
|
+
try {
|
|
674
|
+
const { data: e } = await l.fetchMentionSuggestionFunction() ?? {};
|
|
675
|
+
X.value = e, S.value = !S.value;
|
|
676
|
+
} catch (e) {
|
|
677
|
+
console.error(e);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}, de = () => {
|
|
681
|
+
var i, o;
|
|
682
|
+
const { insertCodeSnippet: e, deleteCodeSnippet: t } = (i = a.value) == null ? void 0 : i.commands;
|
|
683
|
+
return (o = a.value) != null && o.isActive("codeSnippet") ? t() : e(), !1;
|
|
684
|
+
}, ue = () => {
|
|
685
|
+
a.value.commands.createParagraphNear();
|
|
686
|
+
}, Oe = (e) => {
|
|
687
|
+
var t;
|
|
688
|
+
try {
|
|
689
|
+
const { insertMentionSection: i } = (t = a.value) == null ? void 0 : t.commands;
|
|
690
|
+
i(e), Y.value !== e && Y.value !== void 0 && Ue(), Y.value = e;
|
|
691
|
+
} catch (i) {
|
|
692
|
+
console.error(i);
|
|
693
|
+
}
|
|
694
|
+
}, Ue = () => {
|
|
695
|
+
S.value = !0, setTimeout(() => {
|
|
696
|
+
S.value = !1;
|
|
697
|
+
}, 100);
|
|
698
|
+
};
|
|
699
|
+
return f({
|
|
700
|
+
mentionSectionTrigger: Oe
|
|
701
|
+
}), ye(
|
|
702
|
+
() => l.invalid,
|
|
703
|
+
() => {
|
|
704
|
+
var e;
|
|
705
|
+
(e = x.validate) == null || e.call(x);
|
|
706
|
+
}
|
|
707
|
+
), ye(O, () => {
|
|
708
|
+
g.value = O.value;
|
|
709
|
+
}), (e, t) => {
|
|
710
|
+
const i = Ke("focus");
|
|
711
|
+
return h(), j(oe, null, [
|
|
712
|
+
u(yt, {
|
|
713
|
+
info: e.fieldInfo,
|
|
714
|
+
label: l.label,
|
|
715
|
+
"label-class": l.labelClass,
|
|
716
|
+
mandatory: l.mandatory,
|
|
717
|
+
"show-optional-text": l.showOptionalText
|
|
718
|
+
}, {
|
|
719
|
+
default: b(() => [
|
|
720
|
+
c("div", {
|
|
721
|
+
ref_key: "root",
|
|
722
|
+
ref: J,
|
|
723
|
+
class: k([
|
|
724
|
+
"rounded-b text-grayscale-900 w-full",
|
|
725
|
+
"[&:has(:focus)]:border-general-200 border-general-100",
|
|
726
|
+
`${e.borderLess || e.editorState === "readonly" ? "border-none" : "border-[0.5px]"}`,
|
|
727
|
+
// Inline Code
|
|
728
|
+
"[&_code]:bg-primary-100",
|
|
729
|
+
"[&_code]:rounded-md",
|
|
730
|
+
"[&_code]:p-[0.25em_0.3em]",
|
|
731
|
+
"[&_code]:text-[0.85rem]",
|
|
732
|
+
"[&_code]:!font-source-code-pro",
|
|
733
|
+
`${l.editorWrapperClass}`
|
|
734
|
+
]),
|
|
735
|
+
"data-wv-name": "editor"
|
|
736
|
+
}, [
|
|
737
|
+
l.editorState === "editable" ? (h(), j("div", {
|
|
738
|
+
key: 0,
|
|
739
|
+
class: k([
|
|
740
|
+
"border-b-[0.5px] border-inherit px-3 py-1 flex gap-1 bg-general-50",
|
|
741
|
+
`${l.toolbarWrapperClass}`
|
|
742
|
+
]),
|
|
743
|
+
"data-wv-section": "toolbar"
|
|
744
|
+
}, [
|
|
745
|
+
(h(!0), j(oe, null, Ce(Le.value, (o) => (h(), W(B, Ge({ ref_for: !0 }, o, {
|
|
746
|
+
key: o.icon,
|
|
747
|
+
class: [{ "!bg-primary-50 ": o.active }, o.class]
|
|
748
|
+
}), null, 16, ["class"]))), 128))
|
|
749
|
+
], 2)) : z("", !0),
|
|
750
|
+
S.value ? z("", !0) : (h(), W(s(vt), {
|
|
751
|
+
key: 1,
|
|
752
|
+
class: k([
|
|
753
|
+
`${l.editorState === "editable" ? "px-3 py-2" : ""} [&_*]:outline-none`,
|
|
754
|
+
"[&_.is-editor-empty:first-child::before]:text-general-200",
|
|
755
|
+
"[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
|
|
756
|
+
"[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
|
|
757
|
+
"[&_.is-editor-empty:first-child::before]:font-normal",
|
|
758
|
+
"[&_.is-editor-empty:first-child::before]:pointer-events-none",
|
|
759
|
+
"[&_.is-editor-empty:first-child::before]:float-left",
|
|
760
|
+
"[&_.is-editor-empty:first-child::before]:h-0",
|
|
761
|
+
// Anchor
|
|
762
|
+
"[&_a]:hover:underline transition-transform duration-75",
|
|
763
|
+
"[&_a]:text-link",
|
|
764
|
+
"[&_a]:cursor-pointer",
|
|
765
|
+
// Bold
|
|
766
|
+
"[&_b]:font-bold",
|
|
767
|
+
"[&_strong]:font-bold",
|
|
768
|
+
// Image
|
|
769
|
+
"[&_img.ProseMirror-selectednode]:!outline-[0.5px]",
|
|
770
|
+
"[&_img.ProseMirror-selectednode]:!outline-link",
|
|
771
|
+
"[&_img.ProseMirror-selectednode]:!outline-offset-1",
|
|
772
|
+
"[&_img.ProseMirror-selectednode]:!rounded-sm",
|
|
773
|
+
"[&_img]:my-2",
|
|
774
|
+
// Inline Code
|
|
775
|
+
"[&_*:has(code)]:my-[0.25rem]",
|
|
776
|
+
`${l.contentWrapperClass}`
|
|
777
|
+
]),
|
|
778
|
+
editor: s(a),
|
|
779
|
+
spellcheck: "false"
|
|
780
|
+
}, null, 8, ["class", "editor"])),
|
|
781
|
+
u(s(Ze), {
|
|
782
|
+
ref_key: "headingMenu",
|
|
783
|
+
ref: G,
|
|
784
|
+
model: Ie.value,
|
|
785
|
+
popup: ""
|
|
786
|
+
}, {
|
|
787
|
+
item: b(({ item: o }) => {
|
|
788
|
+
var r, m, v, A, M, _, L, y;
|
|
789
|
+
return [
|
|
790
|
+
c("a", {
|
|
791
|
+
class: k([
|
|
792
|
+
...(r = s(N)) == null ? void 0 : r.action.class,
|
|
793
|
+
o.class,
|
|
794
|
+
"flex items-center !justify-between h-[30px]",
|
|
795
|
+
{
|
|
796
|
+
"bg-primary-50": ((m = s(a)) == null ? void 0 : m.isActive("heading", { level: 1 })) && o.label === "Heading 1" || ((v = s(a)) == null ? void 0 : v.isActive("heading", { level: 2 })) && o.label === "Heading 2" || ((A = s(a)) == null ? void 0 : A.isActive("heading", { level: 3 })) && o.label === "Heading 3" || ((M = s(a)) == null ? void 0 : M.isActive("heading", { level: 4 })) && o.label === "Heading 4" || ((_ = s(a)) == null ? void 0 : _.isActive("heading", { level: 5 })) && o.label === "Heading 5" || ((L = s(a)) == null ? void 0 : L.isActive("heading", { level: 6 })) && o.label === "Heading 6" || ((y = s(a)) == null ? void 0 : y.isActive("paragraph")) && o.label === "Paragraf"
|
|
797
|
+
}
|
|
798
|
+
]),
|
|
799
|
+
title: o.label,
|
|
800
|
+
onClick: (I) => {
|
|
801
|
+
var T;
|
|
802
|
+
return (T = o.command) == null ? void 0 : T.call(o, { item: o, originalEvent: I });
|
|
803
|
+
}
|
|
804
|
+
}, [
|
|
805
|
+
qe(ke(o.label) + " ", 1),
|
|
806
|
+
c("code", Rt, ke(o.shortCut), 1)
|
|
807
|
+
], 10, Et)
|
|
808
|
+
];
|
|
809
|
+
}),
|
|
810
|
+
_: 1
|
|
811
|
+
}, 8, ["model"]),
|
|
812
|
+
s(a) && l.editorState === "editable" ? (h(), W(s(ne), {
|
|
813
|
+
key: 2,
|
|
814
|
+
editor: s(a),
|
|
815
|
+
"should-show": () => {
|
|
816
|
+
var o, r;
|
|
817
|
+
return ((o = s(a)) == null ? void 0 : o.isActive("codeSnippet")) || ((r = s(a)) == null ? void 0 : r.isActive("mentionSection"));
|
|
818
|
+
},
|
|
819
|
+
"tippy-options": { placement: "top", zIndex: 9 },
|
|
820
|
+
class: "-mt-1.5 shadow-panel",
|
|
821
|
+
"plugin-key": "editLinkToolbar"
|
|
822
|
+
}, {
|
|
823
|
+
default: b(() => [
|
|
824
|
+
c("div", Ot, [
|
|
825
|
+
u(B, {
|
|
826
|
+
onClick: ue,
|
|
827
|
+
icon: "close",
|
|
828
|
+
severity: "secondary",
|
|
829
|
+
text: "",
|
|
830
|
+
"tooltip-text": "Buat text baru dibawah"
|
|
831
|
+
})
|
|
832
|
+
])
|
|
833
|
+
]),
|
|
834
|
+
_: 1
|
|
835
|
+
}, 8, ["editor", "should-show"])) : z("", !0),
|
|
836
|
+
s(a) && !H.value && l.editorState === "editable" ? (h(), W(s(ne), {
|
|
837
|
+
key: 3,
|
|
838
|
+
editor: s(a),
|
|
839
|
+
"should-show": () => {
|
|
840
|
+
var o;
|
|
841
|
+
return (o = s(a)) == null ? void 0 : o.isActive("link");
|
|
842
|
+
},
|
|
843
|
+
"tippy-options": { placement: "bottom", zIndex: 9 },
|
|
844
|
+
class: "-mt-1.5 shadow-panel",
|
|
845
|
+
"plugin-key": "editLinkToolbar"
|
|
846
|
+
}, {
|
|
847
|
+
default: b(() => [
|
|
848
|
+
c("div", Ut, [
|
|
849
|
+
u(B, {
|
|
850
|
+
onClick: ee,
|
|
851
|
+
class: "!w-max",
|
|
852
|
+
label: "Edit Tautan",
|
|
853
|
+
severity: "secondary",
|
|
854
|
+
text: ""
|
|
855
|
+
}),
|
|
856
|
+
Dt,
|
|
857
|
+
u(B, {
|
|
858
|
+
onClick: Be,
|
|
859
|
+
icon: "external-link",
|
|
860
|
+
severity: "secondary",
|
|
861
|
+
text: "",
|
|
862
|
+
"tooltip-text": "Buka di tab baru"
|
|
863
|
+
}),
|
|
864
|
+
jt,
|
|
865
|
+
u(B, {
|
|
866
|
+
onClick: Fe,
|
|
867
|
+
icon: "link-unlink-m",
|
|
868
|
+
severity: "secondary",
|
|
869
|
+
text: "",
|
|
870
|
+
"tooltip-text": "Lepas tautan"
|
|
871
|
+
}),
|
|
872
|
+
zt,
|
|
873
|
+
u(B, {
|
|
874
|
+
onClick: He,
|
|
875
|
+
icon: "file-copy",
|
|
876
|
+
severity: "secondary",
|
|
877
|
+
text: "",
|
|
878
|
+
"tooltip-text": "Salin tautan"
|
|
879
|
+
})
|
|
880
|
+
])
|
|
881
|
+
]),
|
|
882
|
+
_: 1
|
|
883
|
+
}, 8, ["editor", "should-show"])) : z("", !0),
|
|
884
|
+
u(_t, {
|
|
885
|
+
visible: E.value,
|
|
886
|
+
"onUpdate:visible": t[2] || (t[2] = (o) => E.value = o),
|
|
887
|
+
class: "w-[400px]",
|
|
888
|
+
header: "Pilih Gambar"
|
|
889
|
+
}, {
|
|
890
|
+
default: b(() => [
|
|
891
|
+
c("div", Wt, [
|
|
892
|
+
c("div", Kt, [
|
|
893
|
+
c("div", Gt, [
|
|
894
|
+
u(we, {
|
|
895
|
+
"model-value": F.value,
|
|
896
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => F.value = o),
|
|
897
|
+
class: "w-[269px]",
|
|
898
|
+
label: "URL Gambar"
|
|
899
|
+
}, null, 8, ["model-value"])
|
|
900
|
+
]),
|
|
901
|
+
c("div", qt, [
|
|
902
|
+
u(le, {
|
|
903
|
+
onClick: t[1] || (t[1] = (o) => te()),
|
|
904
|
+
label: "Simpan",
|
|
905
|
+
severity: "secondary"
|
|
906
|
+
})
|
|
907
|
+
])
|
|
908
|
+
]),
|
|
909
|
+
c("div", null, [
|
|
910
|
+
Jt,
|
|
911
|
+
c("div", Xt, [
|
|
912
|
+
(h(!0), j(oe, null, Ce(w.value, (o, r) => (h(), j("img", {
|
|
913
|
+
key: r,
|
|
914
|
+
src: o,
|
|
915
|
+
alt: "preview",
|
|
916
|
+
class: "w-28 h-28 object-scale-down rounded-lg"
|
|
917
|
+
}, null, 8, Zt))), 128)),
|
|
918
|
+
c("div", Qt, [
|
|
919
|
+
u(kt, {
|
|
920
|
+
class: "!w-[70px] !h-[70px]",
|
|
921
|
+
icon: "upload-2",
|
|
922
|
+
severity: "primary"
|
|
923
|
+
}),
|
|
924
|
+
u(le, { severity: "secondary" }, {
|
|
925
|
+
default: b(() => [
|
|
926
|
+
c("div", Yt, [
|
|
927
|
+
ea,
|
|
928
|
+
c("input", {
|
|
929
|
+
onChange: Ve,
|
|
930
|
+
class: "opacity-0 absolute top-0 bottom-0 left-0 right-0",
|
|
931
|
+
type: "file"
|
|
932
|
+
}, null, 32)
|
|
933
|
+
])
|
|
934
|
+
]),
|
|
935
|
+
_: 1
|
|
936
|
+
})
|
|
937
|
+
])
|
|
938
|
+
])
|
|
939
|
+
])
|
|
940
|
+
])
|
|
941
|
+
]),
|
|
942
|
+
_: 1
|
|
943
|
+
}, 8, ["visible"]),
|
|
944
|
+
s(a) && l.editorState === "editable" ? (h(), W(s(ne), {
|
|
945
|
+
key: 4,
|
|
946
|
+
editor: s(a),
|
|
947
|
+
"should-show": () => {
|
|
948
|
+
var o;
|
|
949
|
+
return !!((o = s(a)) != null && o.isActive("image"));
|
|
950
|
+
},
|
|
951
|
+
"tippy-options": { placement: "top", zIndex: 9 },
|
|
952
|
+
class: "-mt-1.5 shadow-panel",
|
|
953
|
+
"plugin-key": "editImageToolbar"
|
|
954
|
+
}, {
|
|
955
|
+
default: b(() => [
|
|
956
|
+
c("div", ta, [
|
|
957
|
+
u(B, {
|
|
958
|
+
onClick: ce,
|
|
959
|
+
icon: "delete-bin",
|
|
960
|
+
severity: "secondary",
|
|
961
|
+
text: "",
|
|
962
|
+
"tooltip-text": "Unset Image"
|
|
963
|
+
})
|
|
964
|
+
])
|
|
965
|
+
]),
|
|
966
|
+
_: 1
|
|
967
|
+
}, 8, ["editor", "should-show"])) : z("", !0)
|
|
968
|
+
], 2),
|
|
969
|
+
u(At, {
|
|
970
|
+
class: k(e.validatorMessageClass),
|
|
971
|
+
message: x.errorMessage
|
|
972
|
+
}, null, 8, ["class", "message"])
|
|
973
|
+
]),
|
|
974
|
+
_: 1
|
|
975
|
+
}, 8, ["info", "label", "label-class", "mandatory", "show-optional-text"]),
|
|
976
|
+
u(St, {
|
|
977
|
+
ref_key: "editLinkOverlay",
|
|
978
|
+
ref: q,
|
|
979
|
+
pt: {
|
|
980
|
+
content: {
|
|
981
|
+
class: ""
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
onHide: t[3] || (t[3] = (o) => H.value = !1),
|
|
985
|
+
"append-to": "self",
|
|
986
|
+
class: "w-[342px] bg-white p-4"
|
|
987
|
+
}, {
|
|
988
|
+
default: b(() => [
|
|
989
|
+
u(Ct, {
|
|
990
|
+
onSubmit: Ne,
|
|
991
|
+
class: "!gap-0",
|
|
992
|
+
"hide-stay-checkbox": ""
|
|
993
|
+
}, {
|
|
994
|
+
fields: b(() => {
|
|
995
|
+
var o, r;
|
|
996
|
+
return [
|
|
997
|
+
Je(u(we, {
|
|
998
|
+
"validator-message": { empty: "Masukan tautan yang valid" },
|
|
999
|
+
value: (o = Z.value) == null ? void 0 : o.href,
|
|
1000
|
+
"field-name": "url",
|
|
1001
|
+
label: "Tempel Tautan",
|
|
1002
|
+
mandatory: "",
|
|
1003
|
+
placeholder: "Tempel tautan baru",
|
|
1004
|
+
"use-validator": ""
|
|
1005
|
+
}, null, 8, ["value"]), [
|
|
1006
|
+
[i]
|
|
1007
|
+
]),
|
|
1008
|
+
u(wt, {
|
|
1009
|
+
value: Te(),
|
|
1010
|
+
"field-name": "text",
|
|
1011
|
+
label: "Teks Tampilan",
|
|
1012
|
+
placeholder: "Teks untuk ditampilkan",
|
|
1013
|
+
"use-validator": ""
|
|
1014
|
+
}, null, 8, ["value"]),
|
|
1015
|
+
u(le, {
|
|
1016
|
+
label: (r = s(a)) != null && r.isActive("link") ? "Simpan" : "Tambahkan",
|
|
1017
|
+
class: "w-max ml-auto",
|
|
1018
|
+
severity: "secondary",
|
|
1019
|
+
type: "submit"
|
|
1020
|
+
}, null, 8, ["label"])
|
|
1021
|
+
];
|
|
1022
|
+
}),
|
|
1023
|
+
_: 1
|
|
1024
|
+
})
|
|
1025
|
+
]),
|
|
1026
|
+
_: 1
|
|
1027
|
+
}, 512)
|
|
1028
|
+
], 64);
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
export {
|
|
1033
|
+
Na as _,
|
|
1034
|
+
Mt as a,
|
|
1035
|
+
$a as g
|
|
1036
|
+
};
|