@fewangsit/wangsvue-fats 1.0.0-alpha.43 → 1.0.0-alpha.45
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/components/buttoncopy/ButtonCopy.vue.d.ts +4 -6
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
- package/components/index.d.ts +61 -162
- package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
- package/event-bus/index.d.ts +3 -0
- package/loading-page-BrQattYE.js +1 -0
- package/loading-page-CoC9UhfC.js +4 -0
- package/loading-page-DbLuqCHa.js +1 -0
- package/loading-page-f8D03l3G.js +4 -0
- package/loading-plane-CgfbWppy.js +1 -0
- package/loading-plane-CoXtqoc9.js +4 -0
- package/loading-table-Bdr9ZhtP.js +1 -0
- package/loading-table-ByUoWqUo.js +4 -0
- package/loading-table-BygEMzFM.js +4 -0
- package/loading-table-BzrSQlA0.js +1 -0
- package/loading-table-D9bw9OcI.js +4 -0
- package/loading-table-chOgXi94.js +1 -0
- package/no-data-CTKux8RI.js +4 -0
- package/no-data-Cgze_Rvp.js +1 -0
- package/{assets/lottie/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
- package/no-data-Dep79CBh.js +1 -0
- package/no-data-g0dJCy2p.js +4 -0
- package/no-data-y1X5WtcQ.js +1 -0
- package/package.json +3 -3
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/index.d.ts +1 -1
- package/wangsvue-fats.js +52090 -144
- package/wangsvue-fats.system.js +312 -1
- package/ButtonCopy-C6DSmsOR.es.js +0 -4
- package/ButtonCopy-CeBlNyVx.system.js +0 -1
- package/ButtonSync-BLyCwwnU.system.js +0 -1
- package/ButtonSync-DtUhn-Q-.es.js +0 -4
- package/ButtonToggle-B9Fa75pf.es.js +0 -4
- package/ButtonToggle-CSxzlLR2.system.js +0 -1
- package/ButtonViewLog-B1oa4oFN.es.js +0 -4
- package/ButtonViewLog-_J6r7Oz8.system.js +0 -1
- package/Card-B19WgA6Y.es.js +0 -4
- package/Card-umUgd-nP.system.js +0 -1
- package/InputEmail-BZ5Y0wSk.system.js +0 -1
- package/InputEmail-DR_E1DsL.es.js +0 -4
- package/InputURL-DL6a94kM.system.js +0 -1
- package/InputURL-PVF5EUUY.es.js +0 -4
- package/Loading-Cq7rP88c.system.js +0 -1
- package/Loading-DUHTVct4.es.js +0 -4
- package/UserWithIcon-Ddn_GlNu.system.js +0 -1
- package/UserWithIcon-hWXf-A2U.es.js +0 -4
- package/assets/lottie/loading-page-B9ooQcfF.system.js +0 -1
- package/assets/lottie/loading-page-CQ0mKER2.es.js +0 -15
- package/assets/lottie/loading-table-B4T3FYiI.system.js +0 -1
- package/assets/lottie/loading-table-BnpbX8Ew.es.js +0 -15
- package/assets/lottie/no-data-CMWnya_k.system.js +0 -1
- package/async-components/index-C8nb7p3T.es.js +0 -70
- package/async-components/index-DvjqHrYE.system.js +0 -1
- package/components/animation/Animation-CCEnvZ_Z.es.js +0 -48
- package/components/animation/Animation-CJb4YIwm.system.js +0 -1
- package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +0 -127
- package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +0 -1
- package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +0 -1
- package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +0 -201
- package/components/badge/Badge-DXAyz4Z8.es.js +0 -99
- package/components/badge/Badge-wSExdsOP.system.js +0 -1
- package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +0 -1
- package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +0 -68
- package/components/basetree/BaseTree-CmBp0uwr.system.js +0 -1
- package/components/basetree/BaseTree-RsvvntBp.es.js +0 -167
- package/components/basetree/TreeNode-CUL5_2Rj.es.js +0 -499
- package/components/basetree/TreeNode-D-YgXird.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +0 -46
- package/components/button/Button-CgkhMnxo.es.js +0 -124
- package/components/button/Button-D892iaxz.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +0 -189
- package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +0 -31
- package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +0 -1
- package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +0 -61
- package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +0 -28
- package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +0 -83
- package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +0 -1
- package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +0 -1
- package/components/buttonscan/ButtonScan-mVHAdACL.es.js +0 -387
- package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +0 -1
- package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +0 -25
- package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +0 -1
- package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +0 -70
- package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +0 -218
- package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +0 -101
- package/components/buttonsync/ButtonSync-Brk16H8C.es.js +0 -29
- package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +0 -1
- package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +0 -11
- package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +0 -1
- package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +0 -21
- package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +0 -1
- package/components/calendar/BaseCalendar-5EI1UTbl.es.js +0 -867
- package/components/calendar/BaseCalendar-C02-gmOQ.system.js +0 -1
- package/components/calendar/Calendar-B2z-lfi9.es.js +0 -112
- package/components/calendar/Calendar-CWw4R5mN.system.js +0 -1
- package/components/card/Card-BccG14LV.es.js +0 -47
- package/components/card/Card-BjI-Xi0S.system.js +0 -1
- package/components/checkbox/Checkbox-DBU7Ji2C.es.js +0 -135
- package/components/checkbox/Checkbox-FZg_wq3C.system.js +0 -1
- package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +0 -127
- package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +0 -2
- package/components/customcolumn/ColumnList-fdR5JfHj.es.js +0 -159
- package/components/customcolumn/ColumnList-yaNVEQFA.system.js +0 -1
- package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +0 -139
- package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +0 -16
- package/components/datatable/DataTable-BH7Fk88O.es.js +0 -992
- package/components/datatable/DataTable-Cko2S6sM.system.js +0 -1
- package/components/datatable/MultiRow-B2vMSb7W.es.js +0 -52
- package/components/datatable/MultiRow-Sef5icam.system.js +0 -1
- package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +0 -37
- package/components/datatable/store/dataTable.store-C9376aEJ.system.js +0 -1
- package/components/dialog/Dialog-BCcbXSya.es.js +0 -121
- package/components/dialog/Dialog-Dv7Jzg4E.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +0 -139
- package/components/dialogform/DialogForm-DGl_NOEr.system.js +0 -1
- package/components/dialogform/DialogForm-tAbix3iC.es.js +0 -222
- package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +0 -268
- package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +0 -121
- package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +0 -44
- package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +0 -71
- package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +0 -1
- package/components/dropdown/Dropdown-BNzT2uLU.system.js +0 -1
- package/components/dropdown/Dropdown-Dk4urj-W.es.js +0 -258
- package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +0 -26
- package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +0 -1
- package/components/editor/Editor-RB5MqBs1.es.js +0 -887
- package/components/editor/Editor-upU4Z9FH.system.js +0 -1
- package/components/editor/EditorButton-CC6U1a_u.system.js +0 -1
- package/components/editor/EditorButton-Cfew79JD.es.js +0 -28
- package/components/editor/MentionList-BjWKefLh.system.js +0 -1
- package/components/editor/MentionList-CdX0_-TK.es.js +0 -58
- package/components/editor/MentionSection-5I-FSwew.es.js +0 -52
- package/components/editor/MentionSection-CiuaeX4J.system.js +0 -3
- package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +0 -40
- package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +0 -1
- package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +0 -1
- package/components/editor/mentionSectionExtension-rbWufuMT.es.js +0 -46
- package/components/editor/suggestion-BcYK0KeI.system.js +0 -1
- package/components/editor/suggestion-mkkpQFP-.es.js +0 -41
- package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +0 -1
- package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +0 -35
- package/components/fileupload/FileUpload-0EHKlInu.es.js +0 -175
- package/components/fileupload/FileUpload-dXrsIAeC.system.js +0 -1
- package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +0 -234
- package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +0 -56
- package/components/form/Form-By85t_oI.system.js +0 -1
- package/components/form/Form-DhWBpdkq.es.js +0 -181
- package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +0 -238
- package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +0 -1
- package/components/hardwaresync/store/device.store-DEKXH36R.system.js +0 -1
- package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +0 -20
- package/components/icon/Icon-C4kXVcEX.es.js +0 -82
- package/components/icon/Icon-D1a666FC.system.js +0 -1
- package/components/image/Image-Bf5EaBWP.es.js +0 -170
- package/components/image/Image-Cxi0E9gK.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +0 -52
- package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +0 -509
- package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +0 -46
- package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +0 -1
- package/components/index-BMti6lK3.es.js +0 -64
- package/components/index-DBzSxIov.system.js +0 -1
- package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +0 -94
- package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +0 -1
- package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +0 -1
- package/components/inputbadge/InputBadge-BngtjqHQ.es.js +0 -186
- package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +0 -1211
- package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +0 -1
- package/components/inputemail/InputEmail-8E04RVeq.system.js +0 -1
- package/components/inputemail/InputEmail-BFeY1l9Z.es.js +0 -49
- package/components/inputgroup/InputGroup-CTHxHL8n.system.js +0 -1
- package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +0 -56
- package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +0 -1
- package/components/inputnumber/InputNumber-CQd01PQ5.es.js +0 -232
- package/components/inputpassword/InputPassword-D3jaUFfR.system.js +0 -1
- package/components/inputpassword/InputPassword-DGWsHAB4.es.js +0 -121
- package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +0 -1
- package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +0 -162
- package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +0 -15
- package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +0 -1
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +0 -423
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +0 -1
- package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +0 -134
- package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +0 -1
- package/components/inputsearch/InputSearch-CHJP-N57.es.js +0 -53
- package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +0 -1
- package/components/inputtext/InputText-BEDxrRqK.es.js +0 -242
- package/components/inputtext/InputText-BOgH8xpA.system.js +0 -1
- package/components/inputurl/InputURL-CNrOkrAC.es.js +0 -61
- package/components/inputurl/InputURL-D4QWV9G7.system.js +0 -1
- package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
- package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
- package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +0 -102
- package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +0 -1
- package/components/loading/Loading-DIfTUHr7.es.js +0 -24
- package/components/loading/Loading-Vb4HctBJ.system.js +0 -1
- package/components/menu/Menu-BtzGGhbp.es.js +0 -73
- package/components/menu/Menu-CPm5vua_.system.js +0 -1
- package/components/menuitem/MenuItem-8yxkFTug.system.js +0 -1
- package/components/menuitem/MenuItem-uLVAqgBS.es.js +0 -65
- package/components/multiselect/MultiSelect-BoPpQ31j.es.js +0 -189
- package/components/multiselect/MultiSelect-D5NEDtGe.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +0 -49
- package/components/tabmenu/TabMenu-BBk8EW-C.system.js +0 -1
- package/components/tabmenu/TabMenu-ByKBaVsd.es.js +0 -108
- package/components/tagtype/TagType-CAXomDiD.es.js +0 -49
- package/components/tagtype/TagType-i4RK2JbL.system.js +0 -1
- package/components/textarea/Textarea-CnAlgPq5.es.js +0 -108
- package/components/textarea/Textarea-qirKOw5z.system.js +0 -1
- package/components/timeline/Timeline-CF2qJo4E.es.js +0 -120
- package/components/timeline/Timeline-DKfKWZFI.system.js +0 -1
- package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +0 -108
- package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +0 -1
- package/components/toast/Toast-C3D50rGo.system.js +0 -1
- package/components/toast/Toast-DRUJCz4I.es.js +0 -74
- package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +0 -90
- package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +0 -1
- package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +0 -223
- package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +0 -1
- package/components/tree/Tree-93NvdElH.es.js +0 -267
- package/components/tree/Tree-BTTVTAEH.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +0 -10
- package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +0 -1
- package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +0 -56
- package/components/username/UserName-A1N6Q7bS.system.js +0 -1
- package/components/username/UserName-D5C0qdbu.es.js +0 -132
- package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +0 -18
- package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +0 -1
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
- package/config/config.esm-BZepf1kR.system.js +0 -1
- package/config/config.esm-Drl0fECZ.es.js +0 -212
- package/config/defaultProps-B3syHUKt.system.js +0 -1
- package/config/defaultProps-BC_lvAG9.es.js +0 -136
- package/config/locale-DK6d2rJ3.system.js +0 -1
- package/config/locale-pQnRpNZ6.es.js +0 -85
- package/event-bus/index-CykcrsqY.system.js +0 -1
- package/event-bus/index-PQwO5T6B.es.js +0 -6
- package/event-bus/mitt-BjeF6e5j.es.js +0 -53
- package/event-bus/mitt-X_X8W9w9.system.js +0 -1
- package/plugins/WangsVue-Dl5OiLXF.es.js +0 -332
- package/plugins/WangsVue-Dugc3GRS.system.js +0 -1
- package/plugins/i18n-BVujDShu.system.js +0 -1
- package/plugins/i18n-CIoi8go0.es.js +0 -89
- package/utils/addAttachment.util-CPzZEHNG.system.js +0 -1
- package/utils/addAttachment.util-D9sYCBjS.es.js +0 -10
- package/utils/computeAutoPlacement-Ac2MkS5B.es.js +0 -33
- package/utils/computeAutoPlacement-DCaci6j-.system.js +0 -1
- package/utils/computeOffsets-Cx9i84Mn.system.js +0 -1
- package/utils/computeOffsets-DXWJPq7f.es.js +0 -56
- package/utils/date.util-DbjB32co.es.js +0 -198
- package/utils/date.util-rX9kq_yC.system.js +0 -1
- package/utils/detectOverflow-BrAC_sJF.system.js +0 -1
- package/utils/detectOverflow-CETbaen7.es.js +0 -88
- package/utils/exportToExcel.util-Bf-PpzHW.system.js +0 -1
- package/utils/exportToExcel.util-jz7aU08m.es.js +0 -32
- package/utils/genPlaceholder.util-0UuDQpbx.es.js +0 -37
- package/utils/genPlaceholder.util-CxMG7LbT.system.js +0 -1
- package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +0 -9
- package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +0 -1
- package/utils/object.util-6veM2gu5.es.js +0 -51
- package/utils/object.util-uApor4uP.system.js +0 -1
- package/utils/orderModifiers-qXBm1wkD.system.js +0 -1
- package/utils/orderModifiers-rOag5Cyh.es.js +0 -31
- package/utils/role.util-BdUNoOqf.es.js +0 -67
- package/utils/role.util-Co8OMWnc.system.js +0 -1
- package/utils/textFormatter.util-BjenkyWf.system.js +0 -1
- package/utils/textFormatter.util-CYul3RpH.es.js +0 -21
- package/utils/toast.util-C7p3h9XQ.es.js +0 -52
- package/utils/toast.util-DPtauJUV.system.js +0 -1
- package/utils/utils.esm-iwnsFuDg.system.js +0 -23
- package/utils/utils.esm-s_-kLKXf.es.js +0 -1080
- package/utils/xlsx.util-FKEpiU2t.system.js +0 -1
- package/utils/xlsx.util-LU1upHR3.es.js +0 -8
- package/vendor/@popperjs/core-DFLwc7xU.system.js +0 -1
- package/vendor/@popperjs/core-DJHUrK4e.es.js +0 -748
- package/vendor/@tiptap/core-D4rHEGhs.system.js +0 -80
- package/vendor/@tiptap/core-DSbPv8xh.es.js +0 -2868
- package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +0 -71
- package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +0 -128
- package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +0 -53
- package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +0 -1
- package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +0 -51
- package/vendor/@tiptap/extension-code-SOANT0O3.system.js +0 -1
- package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +0 -99
- package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +0 -1
- package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +0 -54
- package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +0 -1
- package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +0 -1
- package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +0 -35
- package/vendor/@tiptap/extension-image-BNa6azmK.system.js +0 -1
- package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +0 -64
- package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +0 -70
- package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +0 -1
- package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +0 -262
- package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +0 -33
- package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +0 -130
- package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +0 -1
- package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +0 -71
- package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +0 -1
- package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +0 -52
- package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +0 -1
- package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +0 -40
- package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +0 -1
- package/vendor/@tiptap/suggestion-B3Grok9m.system.js +0 -1
- package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +0 -131
- package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +0 -436
- package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +0 -1
- package/vendor/highlight.js-ClnJXT0q.system.js +0 -2
- package/vendor/highlight.js-Czlvg6fB.es.js +0 -2493
- package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
- package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
- package/vendor/lodash-B6nNLFd3.es.js +0 -127
- package/vendor/lodash-BuO1dYnQ.system.js +0 -1
- package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
- package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
- package/vendor/orderedmap-B3SOk52B.es.js +0 -103
- package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
- package/vendor/primevue-C5Z_k4WB.system.js +0 -171
- package/vendor/primevue-DkBtKf1Y.es.js +0 -12649
- package/vendor/prosemirror-commands-CUjo-x4s.es.js +0 -383
- package/vendor/prosemirror-commands-Dn6KNBP0.system.js +0 -2
- package/vendor/prosemirror-history-BPOe4I2H.es.js +0 -248
- package/vendor/prosemirror-history-BTrzvpc-.system.js +0 -1
- package/vendor/prosemirror-keymap-BvIUhswp.es.js +0 -60
- package/vendor/prosemirror-keymap-WRY9zVpK.system.js +0 -1
- package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
- package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
- package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +0 -1
- package/vendor/prosemirror-state-BW6XGB3U.es.js +0 -820
- package/vendor/prosemirror-state-COJ-aZZ4.system.js +0 -1
- package/vendor/prosemirror-transform-BXNgAhmF.system.js +0 -2
- package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
- package/vendor/prosemirror-view-C9ZQp8VZ.es.js +0 -3742
- package/vendor/prosemirror-view-DOxSTbB-.system.js +0 -5
- package/vendor/rope-sequence-4t46C6az.system.js +0 -1
- package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
- package/vendor/simplebar-core-CtWK1-xd.system.js +0 -1
- package/vendor/simplebar-core-ofTx4QqK.es.js +0 -333
- package/vendor/simplebar-vue-BHVrvuf1.system.js +0 -1
- package/vendor/simplebar-vue-dpCx-K7E.es.js +0 -176
- package/vendor/tippy.js-6wuFov1j.system.js +0 -1
- package/vendor/tippy.js-i1ic-msv.es.js +0 -721
- package/vendor/uuid-93tp0umt.es.js +0 -9
- package/vendor/uuid-Cymn6orr.system.js +0 -1
- package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
- package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
- package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
- package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
- package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
- package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
- /package/{assets/lottie/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
- /package/{assets/lottie/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
|
@@ -1,887 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Ee, mergeModels as ve, inject as Oe, useModel as fe, onMounted as De, reactive as je, shallowRef as h, ref as V, computed as J, watch as ge, resolveDirective as Re, createElementBlock as $, openBlock as m, Fragment as Q, createVNode as d, withCtx as p, createElementVNode as r, normalizeClass as b, createCommentVNode as U, createBlock as E, renderList as he, mergeProps as We, unref as s, createTextVNode as ze, toDisplayString as be, withDirectives as Ke, nextTick as Ge } from "vue";
|
|
2
|
-
import "../../event-bus/index-PQwO5T6B.es.js";
|
|
3
|
-
import { _ as L } from "./EditorButton-Cfew79JD.es.js";
|
|
4
|
-
import { h as qe } from "../../vendor/primevue-DkBtKf1Y.es.js";
|
|
5
|
-
import { u as Je } from "../../vendor/vee-validate-RE5RuswC.es.js";
|
|
6
|
-
import { B as Qe } from "../../vendor/@tiptap/extension-bold-CvAjR8FR.es.js";
|
|
7
|
-
import { B as Xe } from "../../vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js";
|
|
8
|
-
import { C as Ye } from "../../vendor/@tiptap/extension-code-BtAtPCQQ.es.js";
|
|
9
|
-
import { N as Z, m as Ze } from "../../vendor/@tiptap/core-DSbPv8xh.es.js";
|
|
10
|
-
import { F as et } from "../../vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js";
|
|
11
|
-
import { H as tt } from "../../vendor/@tiptap/extension-heading-B6PMnqvS.es.js";
|
|
12
|
-
import { H as at } from "../../vendor/@tiptap/extension-history-DdPDTH0G.es.js";
|
|
13
|
-
import { I as ot } from "../../vendor/@tiptap/extension-image-DCo2JDZp.es.js";
|
|
14
|
-
import { I as lt } from "../../vendor/@tiptap/extension-italic-D09oL4ps.es.js";
|
|
15
|
-
import { L as st } from "../../vendor/@tiptap/extension-link-CV6Fodq9.es.js";
|
|
16
|
-
import { L as it } from "../../vendor/@tiptap/extension-list-item-D8wSpPxS.es.js";
|
|
17
|
-
import { M as nt } from "../../vendor/@tiptap/extension-mention-cFXQdAs7.es.js";
|
|
18
|
-
import { O as rt } from "../../vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js";
|
|
19
|
-
import { P as dt } from "../../vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js";
|
|
20
|
-
import { U as ct } from "../../vendor/@tiptap/extension-underline-DklFOEoR.es.js";
|
|
21
|
-
import { u as ut, E as mt, F as X } from "../../vendor/@tiptap/vue-3-BOfcUn5G.es.js";
|
|
22
|
-
import { c as ye, B as Y, F as pt, d as vt } from "../../async-components/index-C8nb7p3T.es.js";
|
|
23
|
-
import { C as ft } from "./codeSnippetExtension-C-ADHg2S.es.js";
|
|
24
|
-
import { M as gt } from "./mentionSectionExtension-rbWufuMT.es.js";
|
|
25
|
-
import { s as ht } from "./suggestion-mkkpQFP-.es.js";
|
|
26
|
-
import { v as bt } from "../../utils/addAttachment.util-D9sYCBjS.es.js";
|
|
27
|
-
import yt from "../dialog/Dialog-BCcbXSya.es.js";
|
|
28
|
-
import xt from "../fieldwrapper/FieldWrapper-DmOogUM5.es.js";
|
|
29
|
-
import _t from "../icon/Icon-C4kXVcEX.es.js";
|
|
30
|
-
import kt from "../overlaypanel/OverlayPanel-bQbjuUgG.es.js";
|
|
31
|
-
import { _ as Ct } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
|
|
32
|
-
const wt = Z.create({
|
|
33
|
-
name: "doc",
|
|
34
|
-
topNode: !0,
|
|
35
|
-
content: "block+"
|
|
36
|
-
}), At = Z.create({
|
|
37
|
-
name: "paragraph",
|
|
38
|
-
priority: 1e3,
|
|
39
|
-
addOptions() {
|
|
40
|
-
return {
|
|
41
|
-
HTMLAttributes: {}
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
group: "block",
|
|
45
|
-
content: "inline*",
|
|
46
|
-
parseHTML() {
|
|
47
|
-
return [
|
|
48
|
-
{ tag: "p" }
|
|
49
|
-
];
|
|
50
|
-
},
|
|
51
|
-
renderHTML({ HTMLAttributes: y }) {
|
|
52
|
-
return ["p", Ze(this.options.HTMLAttributes, y), 0];
|
|
53
|
-
},
|
|
54
|
-
addCommands() {
|
|
55
|
-
return {
|
|
56
|
-
setParagraph: () => ({ commands: y }) => y.setNode(this.name)
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
addKeyboardShortcuts() {
|
|
60
|
-
return {
|
|
61
|
-
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}), Lt = Z.create({
|
|
65
|
-
name: "text",
|
|
66
|
-
group: "inline"
|
|
67
|
-
}), Mt = ["title", "onClick"], It = { class: "!text-[9px] !leading-3 !h-max !font-normal" }, Tt = {
|
|
68
|
-
class: /* @__PURE__ */ b([
|
|
69
|
-
"flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
|
|
70
|
-
"[&_.separator::after]:content-['|']",
|
|
71
|
-
"[&_.separator::after]:text-xl",
|
|
72
|
-
"[&_.separator::after]:font-thin",
|
|
73
|
-
"[&_.separator]:h-6"
|
|
74
|
-
])
|
|
75
|
-
}, St = {
|
|
76
|
-
class: /* @__PURE__ */ b([
|
|
77
|
-
"flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
|
|
78
|
-
"[&_.separator::after]:content-['|']",
|
|
79
|
-
"[&_.separator::after]:text-xl",
|
|
80
|
-
"[&_.separator::after]:font-thin",
|
|
81
|
-
"[&_.separator]:h-6"
|
|
82
|
-
])
|
|
83
|
-
}, Bt = /* @__PURE__ */ r("span", { class: "separator" }, null, -1), Ht = /* @__PURE__ */ r("span", { class: "separator" }, null, -1), Pt = /* @__PURE__ */ r("span", { class: "separator" }, null, -1), Ft = { class: "flex flex-col gap-4" }, Nt = { class: "flex gap-2" }, Vt = { class: "flex-1" }, $t = { class: "flex items-end" }, Ut = /* @__PURE__ */ r("p", null, "Baru Saja Ditambahkan", -1), Et = { class: "flex flex-wrap justify-center gap-2" }, Ot = ["src"], Dt = { class: "flex flex-col justify-center w-28 h-28 items-center" }, jt = { class: "relative py-[7px] px-3" }, Rt = /* @__PURE__ */ r("p", null, "Cari Gambar", -1), Wt = {
|
|
84
|
-
class: /* @__PURE__ */ b([
|
|
85
|
-
"flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
|
|
86
|
-
"[&_.separator::after]:content-['|']",
|
|
87
|
-
"[&_.separator::after]:text-xl",
|
|
88
|
-
"[&_.separator::after]:font-thin",
|
|
89
|
-
"[&_.separator]:h-6"
|
|
90
|
-
])
|
|
91
|
-
}, ka = /* @__PURE__ */ Ee({
|
|
92
|
-
__name: "Editor",
|
|
93
|
-
props: /* @__PURE__ */ ve({
|
|
94
|
-
modelValue: {},
|
|
95
|
-
initialValue: {},
|
|
96
|
-
placeholder: { default: "Tulis" },
|
|
97
|
-
editorState: { default: "editable" },
|
|
98
|
-
borderLess: { type: Boolean, default: !1 },
|
|
99
|
-
label: {},
|
|
100
|
-
useValidator: { type: Boolean },
|
|
101
|
-
fieldName: {},
|
|
102
|
-
labelClass: {},
|
|
103
|
-
fieldInfo: {},
|
|
104
|
-
validatorMessageClass: {},
|
|
105
|
-
validatorMessage: {},
|
|
106
|
-
mandatory: { type: Boolean },
|
|
107
|
-
invalid: { type: Boolean },
|
|
108
|
-
showOptionalText: { type: Boolean, default: void 0 },
|
|
109
|
-
isImageUploadBase64: { type: Boolean, default: !1 },
|
|
110
|
-
fetchMentionSuggestionFunction: {},
|
|
111
|
-
mentionedList: {},
|
|
112
|
-
editorWrapperClass: {},
|
|
113
|
-
toolbarWrapperClass: {},
|
|
114
|
-
contentWrapperClass: {}
|
|
115
|
-
}, {
|
|
116
|
-
modelValue: {},
|
|
117
|
-
modelModifiers: {},
|
|
118
|
-
mentionedList: {},
|
|
119
|
-
mentionedListModifiers: {}
|
|
120
|
-
}),
|
|
121
|
-
emits: /* @__PURE__ */ ve(["update:modelValue", "postImageLocal", "deleteImageLocal", "blur", "focus", "update:mentionedList"], ["update:modelValue", "update:mentionedList"]),
|
|
122
|
-
setup(y, { expose: xe, emit: _e }) {
|
|
123
|
-
const ke = Oe("preset", {}).menu, l = y, B = _e;
|
|
124
|
-
fe(y, "modelValue");
|
|
125
|
-
const Ce = fe(y, "mentionedList");
|
|
126
|
-
De(() => {
|
|
127
|
-
l.useValidator && (Object.assign(
|
|
128
|
-
v,
|
|
129
|
-
Je(
|
|
130
|
-
() => l.fieldName ?? "editorInput",
|
|
131
|
-
(e) => Ge(() => Pe(e))
|
|
132
|
-
)
|
|
133
|
-
), l.initialValue != null && (v.value = l.initialValue), l.modelValue != null && (v.value = l.modelValue)), Ve();
|
|
134
|
-
});
|
|
135
|
-
const O = h(!1), ee = V(), W = V(), te = V(), H = V([]), z = h(!1), M = h(), P = h(), D = h(), v = je({
|
|
136
|
-
value: l.modelValue
|
|
137
|
-
}), x = h(!1), F = V([]), K = h(), we = J(
|
|
138
|
-
() => {
|
|
139
|
-
var e;
|
|
140
|
-
return l.placeholder ?? "Tulis " + (l.label ? (e = l.label) == null ? void 0 : e.toLowerCase() : "");
|
|
141
|
-
}
|
|
142
|
-
), a = ut({
|
|
143
|
-
content: l.initialValue ?? l.modelValue,
|
|
144
|
-
onBlur: (e) => B("blur", e),
|
|
145
|
-
onFocus: (e) => B("focus", e),
|
|
146
|
-
onUpdate: () => {
|
|
147
|
-
var e, t;
|
|
148
|
-
B("update:modelValue", ((e = a.value) == null ? void 0 : e.getJSON()) ?? {}), v.value = ((t = a.value) == null ? void 0 : t.getJSON()) ?? {};
|
|
149
|
-
},
|
|
150
|
-
onPaste: async (e) => {
|
|
151
|
-
let t = [];
|
|
152
|
-
const { items: i } = e.clipboardData, o = (n) => new Promise((c) => {
|
|
153
|
-
if (n.kind === "file") {
|
|
154
|
-
const u = n.getAsFile();
|
|
155
|
-
u && t.push(u), c();
|
|
156
|
-
} else
|
|
157
|
-
c();
|
|
158
|
-
});
|
|
159
|
-
await Promise.all(Array.from(i).map(o));
|
|
160
|
-
try {
|
|
161
|
-
if (t.length) {
|
|
162
|
-
const n = t.filter((c) => c.type.startsWith("image/")).filter((c) => bt(c, 10));
|
|
163
|
-
await oe(n);
|
|
164
|
-
}
|
|
165
|
-
} catch (n) {
|
|
166
|
-
console.error("Error pasting images:", n);
|
|
167
|
-
} finally {
|
|
168
|
-
t = [];
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
onSelectionUpdate(e) {
|
|
172
|
-
var i;
|
|
173
|
-
const t = e.editor.getAttributes(
|
|
174
|
-
"image"
|
|
175
|
-
);
|
|
176
|
-
(i = a.value) == null || i.state.doc.descendants((o) => {
|
|
177
|
-
o.type.name === "mention" && F.value.push(o.attrs.id);
|
|
178
|
-
}), F.value = Array.from(
|
|
179
|
-
new Set(F.value)
|
|
180
|
-
), t.title === "localImage" ? P.value = t : P.value = void 0;
|
|
181
|
-
},
|
|
182
|
-
editable: l.editorState === "editable",
|
|
183
|
-
extensions: [
|
|
184
|
-
dt.configure({
|
|
185
|
-
emptyEditorClass: "is-editor-empty !text-general-200 !font-light",
|
|
186
|
-
placeholder: we.value,
|
|
187
|
-
includeChildren: !1
|
|
188
|
-
}),
|
|
189
|
-
wt.extend({
|
|
190
|
-
addKeyboardShortcuts() {
|
|
191
|
-
return {
|
|
192
|
-
"Mod-\\": () => (this.editor.commands.clearNodes(), this.editor.commands.unsetAllMarks())
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
}),
|
|
196
|
-
// Blocks
|
|
197
|
-
tt,
|
|
198
|
-
At,
|
|
199
|
-
Lt,
|
|
200
|
-
ot.extend({
|
|
201
|
-
addKeyboardShortcuts() {
|
|
202
|
-
const e = () => {
|
|
203
|
-
const { node: t } = this.editor.state.selection;
|
|
204
|
-
return t && t.type.name === "image" && t.attrs.title === "localImage" ? (le(), !0) : !1;
|
|
205
|
-
};
|
|
206
|
-
return {
|
|
207
|
-
Insert: () => ae(),
|
|
208
|
-
Backspace: e,
|
|
209
|
-
Delete: e
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
}).configure({
|
|
213
|
-
HTMLAttributes: {
|
|
214
|
-
class: "w-fit max-h-[300px] object-contain"
|
|
215
|
-
}
|
|
216
|
-
}),
|
|
217
|
-
ft.extend({
|
|
218
|
-
addKeyboardShortcuts() {
|
|
219
|
-
return {
|
|
220
|
-
"Mod-alt-c": se
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
}),
|
|
224
|
-
gt,
|
|
225
|
-
rt.configure({
|
|
226
|
-
HTMLAttributes: {
|
|
227
|
-
class: "list-decimal px-3 py-1"
|
|
228
|
-
}
|
|
229
|
-
}),
|
|
230
|
-
Xe.configure({
|
|
231
|
-
HTMLAttributes: {
|
|
232
|
-
class: "list-disc px-3 py-1"
|
|
233
|
-
}
|
|
234
|
-
}),
|
|
235
|
-
it,
|
|
236
|
-
// Marks
|
|
237
|
-
Qe,
|
|
238
|
-
lt,
|
|
239
|
-
ct,
|
|
240
|
-
Ye,
|
|
241
|
-
st.extend({
|
|
242
|
-
addKeyboardShortcuts() {
|
|
243
|
-
return {
|
|
244
|
-
"Mod-k": () => G()
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
}).configure({
|
|
248
|
-
openOnClick: !1
|
|
249
|
-
}),
|
|
250
|
-
at,
|
|
251
|
-
nt.configure({
|
|
252
|
-
HTMLAttributes: {
|
|
253
|
-
class: "bg-primary-200 text-primary-800 rounded-[50px] px-1"
|
|
254
|
-
},
|
|
255
|
-
suggestion: {
|
|
256
|
-
items({ query: e }) {
|
|
257
|
-
return ((D == null ? void 0 : D.value) ?? []).filter((t) => t == null ? void 0 : t.fullName.toLowerCase().includes(e.toLowerCase())).map((t) => ({
|
|
258
|
-
id: t == null ? void 0 : t._id,
|
|
259
|
-
label: t == null ? void 0 : t.fullName,
|
|
260
|
-
nickName: t.nickName,
|
|
261
|
-
profilePicture: t.profilePicture
|
|
262
|
-
}));
|
|
263
|
-
},
|
|
264
|
-
...ht()
|
|
265
|
-
}
|
|
266
|
-
}),
|
|
267
|
-
et
|
|
268
|
-
]
|
|
269
|
-
}), Ae = J(() => {
|
|
270
|
-
var C, g, w, A, I, T, S, N, R, ne, re, de, ce, ue, me, pe;
|
|
271
|
-
if (!a.value) return [];
|
|
272
|
-
const {
|
|
273
|
-
toggleBold: e,
|
|
274
|
-
focus: t,
|
|
275
|
-
toggleItalic: i,
|
|
276
|
-
toggleUnderline: o,
|
|
277
|
-
toggleBulletList: n,
|
|
278
|
-
toggleCode: c,
|
|
279
|
-
toggleOrderedList: u,
|
|
280
|
-
unsetAllMarks: _,
|
|
281
|
-
clearNodes: k
|
|
282
|
-
} = a.value.commands, f = (C = a.value) == null ? void 0 : C.isActive("code");
|
|
283
|
-
return [
|
|
284
|
-
{
|
|
285
|
-
label: "Aa",
|
|
286
|
-
iconPos: "right",
|
|
287
|
-
icon: "arrow-down",
|
|
288
|
-
class: "!gap-0 !w-[50px] !p-0 !m-0 [&_span]:leading-[22px]",
|
|
289
|
-
onClick: (g = ee.value) == null ? void 0 : g.toggle
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
icon: "bold",
|
|
293
|
-
tooltipText: "Bold | Ctrl + B",
|
|
294
|
-
active: (w = a.value) == null ? void 0 : w.isActive("bold"),
|
|
295
|
-
disabled: f,
|
|
296
|
-
onClick: () => {
|
|
297
|
-
t(), e();
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
icon: "italic",
|
|
302
|
-
tooltipText: "Italic | Ctrl + I",
|
|
303
|
-
active: (A = a.value) == null ? void 0 : A.isActive("italic"),
|
|
304
|
-
disabled: f,
|
|
305
|
-
onClick: () => {
|
|
306
|
-
t(), i();
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
icon: "underline",
|
|
311
|
-
class: "mr-3",
|
|
312
|
-
active: (I = a.value) == null ? void 0 : I.isActive("underline"),
|
|
313
|
-
tooltipText: "Underline | Ctrl + U",
|
|
314
|
-
disabled: f,
|
|
315
|
-
onClick: () => {
|
|
316
|
-
t(), o();
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
icon: "list-unordered",
|
|
321
|
-
tooltipText: "Bullet List | Ctrl + 7",
|
|
322
|
-
active: (T = a.value) == null ? void 0 : T.isActive("bullet-list"),
|
|
323
|
-
onClick: () => {
|
|
324
|
-
t(), n();
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
icon: "list-ordered",
|
|
329
|
-
tooltipText: "Numbered List | Ctrl + 8",
|
|
330
|
-
active: (S = a.value) == null ? void 0 : S.isActive("ordered-list"),
|
|
331
|
-
class: "mr-3",
|
|
332
|
-
onClick: () => {
|
|
333
|
-
t(), u();
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
icon: "link-m",
|
|
338
|
-
tooltipText: "Link | Ctrl + K",
|
|
339
|
-
disabled: ((N = a.value) == null ? void 0 : N.isActive("link")) || O.value,
|
|
340
|
-
onClick: G
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
icon: "image-add",
|
|
344
|
-
active: (R = a.value) == null ? void 0 : R.isActive("image"),
|
|
345
|
-
tooltipText: "Image | Insert",
|
|
346
|
-
onClick: () => ae()
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
icon: "code-line",
|
|
350
|
-
active: (ne = a.value) == null ? void 0 : ne.isActive("code"),
|
|
351
|
-
tooltipText: "Inline Code | Ctrl + E",
|
|
352
|
-
onClick: () => {
|
|
353
|
-
t(), c();
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
icon: "code-box-line",
|
|
358
|
-
active: (re = a.value) == null ? void 0 : re.isActive("codeSnippet"),
|
|
359
|
-
tooltipText: "Code Block | Ctrl + Alt + C",
|
|
360
|
-
onClick: () => {
|
|
361
|
-
se();
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
icon: "format-clear",
|
|
366
|
-
tooltipText: "Clear Formatting Ctrl + \\",
|
|
367
|
-
disabled: !((de = a.value) != null && de.isActive("bold")) && !((ce = a.value) != null && ce.isActive("underline")) && !((ue = a.value) != null && ue.isActive("italic")) && !((me = a.value) != null && me.isActive("code")) && !((pe = a.value) != null && pe.isActive("heading")),
|
|
368
|
-
onClick: () => {
|
|
369
|
-
t(), k(), _();
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
];
|
|
373
|
-
}), Le = h([
|
|
374
|
-
{
|
|
375
|
-
label: "Paragraf",
|
|
376
|
-
class: "p",
|
|
377
|
-
shortCut: "Ctrl+Alt+P",
|
|
378
|
-
command: () => {
|
|
379
|
-
var e, t;
|
|
380
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setParagraph();
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
label: "Heading 1",
|
|
385
|
-
class: "heading-1",
|
|
386
|
-
shortCut: "Ctrl+Alt+1",
|
|
387
|
-
command: () => {
|
|
388
|
-
var e, t;
|
|
389
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 1 });
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
label: "Heading 2",
|
|
394
|
-
class: "heading-2",
|
|
395
|
-
shortCut: "Ctrl+Alt+2",
|
|
396
|
-
command: () => {
|
|
397
|
-
var e, t;
|
|
398
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 2 });
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
class: "heading-3",
|
|
403
|
-
label: "Heading 3",
|
|
404
|
-
shortCut: "Ctrl+Alt+3",
|
|
405
|
-
command: () => {
|
|
406
|
-
var e, t;
|
|
407
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 3 });
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
label: "Heading 4",
|
|
412
|
-
class: "heading-4",
|
|
413
|
-
shortCut: "Ctrl+Alt+4",
|
|
414
|
-
command: () => {
|
|
415
|
-
var e, t;
|
|
416
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 4 });
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
label: "Heading 5",
|
|
421
|
-
class: "heading-5",
|
|
422
|
-
shortCut: "Ctrl+Alt+5",
|
|
423
|
-
command: () => {
|
|
424
|
-
var e, t;
|
|
425
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 5 });
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
label: "Heading 6",
|
|
430
|
-
class: "heading-6",
|
|
431
|
-
shortCut: "Ctrl+Alt+6",
|
|
432
|
-
command: () => {
|
|
433
|
-
var e, t;
|
|
434
|
-
(e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 6 });
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
]), j = J(() => {
|
|
438
|
-
var e;
|
|
439
|
-
return (e = a.value) == null ? void 0 : e.getAttributes("link");
|
|
440
|
-
}), Me = () => {
|
|
441
|
-
var i;
|
|
442
|
-
const { href: e } = j.value, t = (i = a.value) == null ? void 0 : i.view.dom.querySelector(`[href="${e}"]`);
|
|
443
|
-
return Be() || t && (t == null ? void 0 : t.textContent) !== e && t.textContent || void 0;
|
|
444
|
-
}, Ie = () => {
|
|
445
|
-
var e;
|
|
446
|
-
window.open((e = j.value) == null ? void 0 : e.href, "_blank");
|
|
447
|
-
}, Te = () => {
|
|
448
|
-
var e;
|
|
449
|
-
window.navigator.clipboard.writeText((e = j.value) == null ? void 0 : e.href);
|
|
450
|
-
}, Se = () => {
|
|
451
|
-
var e;
|
|
452
|
-
if (a.value) {
|
|
453
|
-
const { unsetLink: t, focus: i } = ((e = a.value) == null ? void 0 : e.commands) ?? {};
|
|
454
|
-
i(), t();
|
|
455
|
-
}
|
|
456
|
-
}, Be = () => {
|
|
457
|
-
if (a.value) {
|
|
458
|
-
const { state: e } = a.value, { from: t, to: i } = e.selection;
|
|
459
|
-
return e == null ? void 0 : e.doc.textBetween(t, i, " ");
|
|
460
|
-
}
|
|
461
|
-
}, ae = () => (z.value = !0, !1), oe = async (e) => {
|
|
462
|
-
if (l.isImageUploadBase64) {
|
|
463
|
-
const t = await Ne(e[0]);
|
|
464
|
-
q(t);
|
|
465
|
-
} else
|
|
466
|
-
B("postImageLocal", {
|
|
467
|
-
image: e[0],
|
|
468
|
-
setImageCb: q
|
|
469
|
-
});
|
|
470
|
-
}, He = (e) => {
|
|
471
|
-
const { files: t } = e.target;
|
|
472
|
-
oe(t);
|
|
473
|
-
}, Pe = (e = {}) => {
|
|
474
|
-
if (typeof l.validatorMessage == "string" && l.invalid)
|
|
475
|
-
return l.validatorMessage;
|
|
476
|
-
if (typeof l.validatorMessage != "string") {
|
|
477
|
-
const { empty: t } = l.validatorMessage ?? {};
|
|
478
|
-
if (e.content === void 0 && l.mandatory && t)
|
|
479
|
-
return t ?? !0;
|
|
480
|
-
}
|
|
481
|
-
return !0;
|
|
482
|
-
}, G = (e) => {
|
|
483
|
-
var o, n, c, u;
|
|
484
|
-
const t = e ?? {
|
|
485
|
-
currentTarget: (n = (o = te.value) == null ? void 0 : o.querySelector(".ic-link-m")) == null ? void 0 : n.closest("button")
|
|
486
|
-
}, { dom: i } = ((c = a.value) == null ? void 0 : c.view) ?? {};
|
|
487
|
-
return (u = W.value) == null || u.toggle(t, i), !0;
|
|
488
|
-
}, Fe = ({ formValues: e }) => {
|
|
489
|
-
var _, k;
|
|
490
|
-
if (!a.value) return !1;
|
|
491
|
-
const { setLink: t, insertContent: i, focus: o } = a.value.commands, { url: n, text: c } = e, { state: u } = a.value;
|
|
492
|
-
return o(), t({
|
|
493
|
-
href: n,
|
|
494
|
-
target: "_blank",
|
|
495
|
-
rel: "nofollow"
|
|
496
|
-
}), (_ = a.value) != null && _.isActive("link") ? a.value.chain().focus().command(({ tr: f, state: C }) => {
|
|
497
|
-
const { $from: g, $to: w } = C.selection, A = u.schema.marks.link;
|
|
498
|
-
let I = g.start(), T = w.end();
|
|
499
|
-
return u.doc.nodesBetween(g.pos, w.pos, (S, N) => {
|
|
500
|
-
S.isText && S.marks.some((R) => R.type === A) && (I = Math.min(I, N), T = Math.max(T, N + S.nodeSize));
|
|
501
|
-
}), f.insertText(c || n, I, T), !0;
|
|
502
|
-
}).run() : u.selection.empty && i(c || n), (k = W.value) == null || k.hide(), O.value = !1, !0;
|
|
503
|
-
}, q = (e) => {
|
|
504
|
-
var t, i, o, n;
|
|
505
|
-
(t = a.value) == null || t.commands.focus(), e && (l.isImageUploadBase64 ? (i = a.value) == null || i.commands.setImage({
|
|
506
|
-
src: e,
|
|
507
|
-
title: "localImageBase64"
|
|
508
|
-
}) : (o = a.value) == null || o.commands.setImage({ src: e, title: "localImage" }), H.value = Array.from(
|
|
509
|
-
/* @__PURE__ */ new Set([...H.value, e])
|
|
510
|
-
)), M.value && ((n = a.value) == null || n.commands.setImage({ src: M.value }), H.value = Array.from(
|
|
511
|
-
/* @__PURE__ */ new Set([...H.value, M.value])
|
|
512
|
-
)), M.value = void 0, ie();
|
|
513
|
-
}, le = () => {
|
|
514
|
-
var e;
|
|
515
|
-
P.value && P.value.title === "localImage" && B("deleteImageLocal", P.value), (e = a.value) == null || e.commands.deleteSelection();
|
|
516
|
-
}, Ne = (e) => new Promise((t, i) => {
|
|
517
|
-
const o = new FileReader();
|
|
518
|
-
o.readAsDataURL(e), o.onload = () => {
|
|
519
|
-
t(o.result);
|
|
520
|
-
}, o.onerror = (n) => {
|
|
521
|
-
i(n);
|
|
522
|
-
};
|
|
523
|
-
}), Ve = async () => {
|
|
524
|
-
if (l.fetchMentionSuggestionFunction) {
|
|
525
|
-
x.value = !x.value;
|
|
526
|
-
try {
|
|
527
|
-
const { data: e } = await l.fetchMentionSuggestionFunction() ?? {};
|
|
528
|
-
D.value = e, x.value = !x.value;
|
|
529
|
-
} catch (e) {
|
|
530
|
-
console.error(e);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}, se = () => {
|
|
534
|
-
var i, o;
|
|
535
|
-
const { insertCodeSnippet: e, deleteCodeSnippet: t } = (i = a.value) == null ? void 0 : i.commands;
|
|
536
|
-
return (o = a.value) != null && o.isActive("codeSnippet") ? t() : e(), !1;
|
|
537
|
-
}, ie = () => {
|
|
538
|
-
a.value.commands.createParagraphNear();
|
|
539
|
-
}, $e = (e) => {
|
|
540
|
-
var t;
|
|
541
|
-
try {
|
|
542
|
-
const { insertMentionSection: i } = (t = a.value) == null ? void 0 : t.commands;
|
|
543
|
-
i(e), K.value !== e && K.value !== void 0 && Ue(), K.value = e;
|
|
544
|
-
} catch (i) {
|
|
545
|
-
console.error(i);
|
|
546
|
-
}
|
|
547
|
-
}, Ue = () => {
|
|
548
|
-
x.value = !0, setTimeout(() => {
|
|
549
|
-
x.value = !1;
|
|
550
|
-
}, 100);
|
|
551
|
-
};
|
|
552
|
-
return xe({
|
|
553
|
-
mentionSectionTrigger: $e
|
|
554
|
-
}), ge(
|
|
555
|
-
() => l.invalid,
|
|
556
|
-
() => {
|
|
557
|
-
var e;
|
|
558
|
-
(e = v.validate) == null || e.call(v);
|
|
559
|
-
}
|
|
560
|
-
), ge(F, () => {
|
|
561
|
-
Ce.value = F.value;
|
|
562
|
-
}), (e, t) => {
|
|
563
|
-
const i = Re("focus");
|
|
564
|
-
return m(), $(Q, null, [
|
|
565
|
-
d(xt, {
|
|
566
|
-
info: e.fieldInfo,
|
|
567
|
-
label: l.label,
|
|
568
|
-
"label-class": l.labelClass,
|
|
569
|
-
mandatory: l.mandatory,
|
|
570
|
-
"show-optional-text": l.showOptionalText
|
|
571
|
-
}, {
|
|
572
|
-
default: p(() => [
|
|
573
|
-
r("div", {
|
|
574
|
-
ref_key: "root",
|
|
575
|
-
ref: te,
|
|
576
|
-
class: b([
|
|
577
|
-
"rounded-b text-grayscale-900 w-full",
|
|
578
|
-
"[&:has(:focus)]:border-general-200 border-general-100",
|
|
579
|
-
`${e.borderLess || e.editorState === "readonly" ? "border-none" : "border-[0.5px]"}`,
|
|
580
|
-
// Inline Code
|
|
581
|
-
"[&_code]:bg-primary-100",
|
|
582
|
-
"[&_code]:rounded-md",
|
|
583
|
-
"[&_code]:p-[0.25em_0.3em]",
|
|
584
|
-
"[&_code]:text-[0.85rem]",
|
|
585
|
-
"[&_code]:!font-source-code-pro",
|
|
586
|
-
`${l.editorWrapperClass}`
|
|
587
|
-
]),
|
|
588
|
-
"data-wv-name": "editor"
|
|
589
|
-
}, [
|
|
590
|
-
l.editorState === "editable" ? (m(), $("div", {
|
|
591
|
-
key: 0,
|
|
592
|
-
class: b([
|
|
593
|
-
"border-b-[0.5px] border-inherit px-3 py-1 flex gap-1 bg-general-50",
|
|
594
|
-
`${l.toolbarWrapperClass}`
|
|
595
|
-
]),
|
|
596
|
-
"data-wv-section": "toolbar"
|
|
597
|
-
}, [
|
|
598
|
-
(m(!0), $(Q, null, he(Ae.value, (o) => (m(), E(L, We({ ref_for: !0 }, o, {
|
|
599
|
-
key: o.icon,
|
|
600
|
-
class: [{ "!bg-primary-50 ": o.active }, o.class]
|
|
601
|
-
}), null, 16, ["class"]))), 128))
|
|
602
|
-
], 2)) : U("", !0),
|
|
603
|
-
x.value ? U("", !0) : (m(), E(s(mt), {
|
|
604
|
-
key: 1,
|
|
605
|
-
class: b([
|
|
606
|
-
`${l.editorState === "editable" ? "px-3 py-2" : ""} [&_*]:outline-none`,
|
|
607
|
-
"[&_.is-editor-empty:first-child::before]:text-general-200",
|
|
608
|
-
"[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
|
|
609
|
-
"[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
|
|
610
|
-
"[&_.is-editor-empty:first-child::before]:font-normal",
|
|
611
|
-
"[&_.is-editor-empty:first-child::before]:pointer-events-none",
|
|
612
|
-
"[&_.is-editor-empty:first-child::before]:float-left",
|
|
613
|
-
"[&_.is-editor-empty:first-child::before]:h-0",
|
|
614
|
-
// Anchor
|
|
615
|
-
"[&_a]:hover:underline transition-transform duration-75",
|
|
616
|
-
"[&_a]:text-link",
|
|
617
|
-
"[&_a]:cursor-pointer",
|
|
618
|
-
// Bold
|
|
619
|
-
"[&_b]:font-bold",
|
|
620
|
-
"[&_strong]:font-bold",
|
|
621
|
-
// Image
|
|
622
|
-
"[&_img.ProseMirror-selectednode]:!outline-[0.5px]",
|
|
623
|
-
"[&_img.ProseMirror-selectednode]:!outline-link",
|
|
624
|
-
"[&_img.ProseMirror-selectednode]:!outline-offset-1",
|
|
625
|
-
"[&_img.ProseMirror-selectednode]:!rounded-sm",
|
|
626
|
-
"[&_img]:my-2",
|
|
627
|
-
// Inline Code
|
|
628
|
-
"[&_*:has(code)]:my-[0.25rem]",
|
|
629
|
-
`${l.contentWrapperClass}`
|
|
630
|
-
]),
|
|
631
|
-
editor: s(a),
|
|
632
|
-
spellcheck: "false"
|
|
633
|
-
}, null, 8, ["class", "editor"])),
|
|
634
|
-
d(s(qe), {
|
|
635
|
-
ref_key: "headingMenu",
|
|
636
|
-
ref: ee,
|
|
637
|
-
model: Le.value,
|
|
638
|
-
popup: ""
|
|
639
|
-
}, {
|
|
640
|
-
item: p(({ item: o }) => {
|
|
641
|
-
var n, c, u, _, k, f, C, g;
|
|
642
|
-
return [
|
|
643
|
-
r("a", {
|
|
644
|
-
class: b([
|
|
645
|
-
...(n = s(ke)) == null ? void 0 : n.action.class,
|
|
646
|
-
o.class,
|
|
647
|
-
"flex items-center !justify-between h-[30px]",
|
|
648
|
-
{
|
|
649
|
-
"bg-primary-50": ((c = s(a)) == null ? void 0 : c.isActive("heading", { level: 1 })) && o.label === "Heading 1" || ((u = s(a)) == null ? void 0 : u.isActive("heading", { level: 2 })) && o.label === "Heading 2" || ((_ = s(a)) == null ? void 0 : _.isActive("heading", { level: 3 })) && o.label === "Heading 3" || ((k = s(a)) == null ? void 0 : k.isActive("heading", { level: 4 })) && o.label === "Heading 4" || ((f = s(a)) == null ? void 0 : f.isActive("heading", { level: 5 })) && o.label === "Heading 5" || ((C = s(a)) == null ? void 0 : C.isActive("heading", { level: 6 })) && o.label === "Heading 6" || ((g = s(a)) == null ? void 0 : g.isActive("paragraph")) && o.label === "Paragraf"
|
|
650
|
-
}
|
|
651
|
-
]),
|
|
652
|
-
title: o.label,
|
|
653
|
-
onClick: (w) => {
|
|
654
|
-
var A;
|
|
655
|
-
return (A = o.command) == null ? void 0 : A.call(o, { item: o, originalEvent: w });
|
|
656
|
-
}
|
|
657
|
-
}, [
|
|
658
|
-
ze(be(o.label) + " ", 1),
|
|
659
|
-
r("code", It, be(o.shortCut), 1)
|
|
660
|
-
], 10, Mt)
|
|
661
|
-
];
|
|
662
|
-
}),
|
|
663
|
-
_: 1
|
|
664
|
-
}, 8, ["model"]),
|
|
665
|
-
s(a) && l.editorState === "editable" ? (m(), E(s(X), {
|
|
666
|
-
key: 2,
|
|
667
|
-
editor: s(a),
|
|
668
|
-
"should-show": () => {
|
|
669
|
-
var o, n;
|
|
670
|
-
return ((o = s(a)) == null ? void 0 : o.isActive("codeSnippet")) || ((n = s(a)) == null ? void 0 : n.isActive("mentionSection"));
|
|
671
|
-
},
|
|
672
|
-
"tippy-options": { placement: "top", zIndex: 9 },
|
|
673
|
-
class: "-mt-1.5 shadow-panel",
|
|
674
|
-
"plugin-key": "editLinkToolbar"
|
|
675
|
-
}, {
|
|
676
|
-
default: p(() => [
|
|
677
|
-
r("div", Tt, [
|
|
678
|
-
d(L, {
|
|
679
|
-
onClick: ie,
|
|
680
|
-
icon: "close",
|
|
681
|
-
severity: "secondary",
|
|
682
|
-
text: "",
|
|
683
|
-
"tooltip-text": "Buat text baru dibawah"
|
|
684
|
-
})
|
|
685
|
-
])
|
|
686
|
-
]),
|
|
687
|
-
_: 1
|
|
688
|
-
}, 8, ["editor", "should-show"])) : U("", !0),
|
|
689
|
-
s(a) && !O.value && l.editorState === "editable" ? (m(), E(s(X), {
|
|
690
|
-
key: 3,
|
|
691
|
-
editor: s(a),
|
|
692
|
-
"should-show": () => {
|
|
693
|
-
var o;
|
|
694
|
-
return (o = s(a)) == null ? void 0 : o.isActive("link");
|
|
695
|
-
},
|
|
696
|
-
"tippy-options": { placement: "bottom", zIndex: 9 },
|
|
697
|
-
class: "-mt-1.5 shadow-panel",
|
|
698
|
-
"plugin-key": "editLinkToolbar"
|
|
699
|
-
}, {
|
|
700
|
-
default: p(() => [
|
|
701
|
-
r("div", St, [
|
|
702
|
-
d(L, {
|
|
703
|
-
onClick: G,
|
|
704
|
-
class: "!w-max",
|
|
705
|
-
label: "Edit Tautan",
|
|
706
|
-
severity: "secondary",
|
|
707
|
-
text: ""
|
|
708
|
-
}),
|
|
709
|
-
Bt,
|
|
710
|
-
d(L, {
|
|
711
|
-
onClick: Ie,
|
|
712
|
-
icon: "external-link",
|
|
713
|
-
severity: "secondary",
|
|
714
|
-
text: "",
|
|
715
|
-
"tooltip-text": "Buka di tab baru"
|
|
716
|
-
}),
|
|
717
|
-
Ht,
|
|
718
|
-
d(L, {
|
|
719
|
-
onClick: Se,
|
|
720
|
-
icon: "link-unlink-m",
|
|
721
|
-
severity: "secondary",
|
|
722
|
-
text: "",
|
|
723
|
-
"tooltip-text": "Lepas tautan"
|
|
724
|
-
}),
|
|
725
|
-
Pt,
|
|
726
|
-
d(L, {
|
|
727
|
-
onClick: Te,
|
|
728
|
-
icon: "file-copy",
|
|
729
|
-
severity: "secondary",
|
|
730
|
-
text: "",
|
|
731
|
-
"tooltip-text": "Salin tautan"
|
|
732
|
-
})
|
|
733
|
-
])
|
|
734
|
-
]),
|
|
735
|
-
_: 1
|
|
736
|
-
}, 8, ["editor", "should-show"])) : U("", !0),
|
|
737
|
-
d(yt, {
|
|
738
|
-
visible: z.value,
|
|
739
|
-
"onUpdate:visible": t[2] || (t[2] = (o) => z.value = o),
|
|
740
|
-
class: "w-[400px]",
|
|
741
|
-
header: "Pilih Gambar"
|
|
742
|
-
}, {
|
|
743
|
-
default: p(() => [
|
|
744
|
-
r("div", Ft, [
|
|
745
|
-
r("div", Nt, [
|
|
746
|
-
r("div", Vt, [
|
|
747
|
-
d(s(ye), {
|
|
748
|
-
"model-value": M.value,
|
|
749
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => M.value = o),
|
|
750
|
-
class: "w-[269px]",
|
|
751
|
-
label: "URL Gambar"
|
|
752
|
-
}, null, 8, ["model-value"])
|
|
753
|
-
]),
|
|
754
|
-
r("div", $t, [
|
|
755
|
-
d(s(Y), {
|
|
756
|
-
onClick: t[1] || (t[1] = (o) => q()),
|
|
757
|
-
label: "Simpan",
|
|
758
|
-
severity: "secondary"
|
|
759
|
-
})
|
|
760
|
-
])
|
|
761
|
-
]),
|
|
762
|
-
r("div", null, [
|
|
763
|
-
Ut,
|
|
764
|
-
r("div", Et, [
|
|
765
|
-
(m(!0), $(Q, null, he(H.value, (o, n) => (m(), $("img", {
|
|
766
|
-
key: n,
|
|
767
|
-
src: o,
|
|
768
|
-
alt: "preview",
|
|
769
|
-
class: "w-28 h-28 object-scale-down rounded-lg"
|
|
770
|
-
}, null, 8, Ot))), 128)),
|
|
771
|
-
r("div", Dt, [
|
|
772
|
-
d(_t, {
|
|
773
|
-
class: "!w-[70px] !h-[70px]",
|
|
774
|
-
icon: "upload-2",
|
|
775
|
-
severity: "primary"
|
|
776
|
-
}),
|
|
777
|
-
d(s(Y), { severity: "secondary" }, {
|
|
778
|
-
default: p(() => [
|
|
779
|
-
r("div", jt, [
|
|
780
|
-
Rt,
|
|
781
|
-
r("input", {
|
|
782
|
-
onChange: He,
|
|
783
|
-
class: "opacity-0 absolute top-0 bottom-0 left-0 right-0",
|
|
784
|
-
type: "file"
|
|
785
|
-
}, null, 32)
|
|
786
|
-
])
|
|
787
|
-
]),
|
|
788
|
-
_: 1
|
|
789
|
-
})
|
|
790
|
-
])
|
|
791
|
-
])
|
|
792
|
-
])
|
|
793
|
-
])
|
|
794
|
-
]),
|
|
795
|
-
_: 1
|
|
796
|
-
}, 8, ["visible"]),
|
|
797
|
-
s(a) && l.editorState === "editable" ? (m(), E(s(X), {
|
|
798
|
-
key: 4,
|
|
799
|
-
editor: s(a),
|
|
800
|
-
"should-show": () => {
|
|
801
|
-
var o;
|
|
802
|
-
return !!((o = s(a)) != null && o.isActive("image"));
|
|
803
|
-
},
|
|
804
|
-
"tippy-options": { placement: "top", zIndex: 9 },
|
|
805
|
-
class: "-mt-1.5 shadow-panel",
|
|
806
|
-
"plugin-key": "editImageToolbar"
|
|
807
|
-
}, {
|
|
808
|
-
default: p(() => [
|
|
809
|
-
r("div", Wt, [
|
|
810
|
-
d(L, {
|
|
811
|
-
onClick: le,
|
|
812
|
-
icon: "delete-bin",
|
|
813
|
-
severity: "secondary",
|
|
814
|
-
text: "",
|
|
815
|
-
"tooltip-text": "Unset Image"
|
|
816
|
-
})
|
|
817
|
-
])
|
|
818
|
-
]),
|
|
819
|
-
_: 1
|
|
820
|
-
}, 8, ["editor", "should-show"])) : U("", !0)
|
|
821
|
-
], 2),
|
|
822
|
-
d(Ct, {
|
|
823
|
-
class: b(e.validatorMessageClass),
|
|
824
|
-
message: v.errorMessage
|
|
825
|
-
}, null, 8, ["class", "message"])
|
|
826
|
-
]),
|
|
827
|
-
_: 1
|
|
828
|
-
}, 8, ["info", "label", "label-class", "mandatory", "show-optional-text"]),
|
|
829
|
-
d(kt, {
|
|
830
|
-
ref_key: "editLinkOverlay",
|
|
831
|
-
ref: W,
|
|
832
|
-
pt: {
|
|
833
|
-
content: {
|
|
834
|
-
class: ""
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
onHide: t[3] || (t[3] = (o) => O.value = !1),
|
|
838
|
-
"append-to": "self",
|
|
839
|
-
class: "w-[342px] bg-white p-4"
|
|
840
|
-
}, {
|
|
841
|
-
default: p(() => [
|
|
842
|
-
d(s(pt), {
|
|
843
|
-
onSubmit: Fe,
|
|
844
|
-
class: "!gap-0",
|
|
845
|
-
"hide-stay-checkbox": ""
|
|
846
|
-
}, {
|
|
847
|
-
fields: p(() => {
|
|
848
|
-
var o, n;
|
|
849
|
-
return [
|
|
850
|
-
Ke(d(s(ye), {
|
|
851
|
-
"validator-message": { empty: "Masukan tautan yang valid" },
|
|
852
|
-
value: (o = j.value) == null ? void 0 : o.href,
|
|
853
|
-
"field-name": "url",
|
|
854
|
-
label: "Tempel Tautan",
|
|
855
|
-
mandatory: "",
|
|
856
|
-
placeholder: "Tempel tautan baru",
|
|
857
|
-
"use-validator": ""
|
|
858
|
-
}, null, 8, ["value"]), [
|
|
859
|
-
[i]
|
|
860
|
-
]),
|
|
861
|
-
d(s(vt), {
|
|
862
|
-
value: Me(),
|
|
863
|
-
"field-name": "text",
|
|
864
|
-
label: "Teks Tampilan",
|
|
865
|
-
placeholder: "Teks untuk ditampilkan",
|
|
866
|
-
"use-validator": ""
|
|
867
|
-
}, null, 8, ["value"]),
|
|
868
|
-
d(s(Y), {
|
|
869
|
-
label: (n = s(a)) != null && n.isActive("link") ? "Simpan" : "Tambahkan",
|
|
870
|
-
class: "w-max ml-auto",
|
|
871
|
-
severity: "secondary",
|
|
872
|
-
type: "submit"
|
|
873
|
-
}, null, 8, ["label"])
|
|
874
|
-
];
|
|
875
|
-
}),
|
|
876
|
-
_: 1
|
|
877
|
-
})
|
|
878
|
-
]),
|
|
879
|
-
_: 1
|
|
880
|
-
}, 512)
|
|
881
|
-
], 64);
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
});
|
|
885
|
-
export {
|
|
886
|
-
ka as default
|
|
887
|
-
};
|