@fewangsit/wangsvue-fats 1.0.0-alpha.40 → 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/utils/date.util.d.ts +5 -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 -51893
- /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,501 @@
|
|
|
1
|
+
import { defineComponent as Ce, mergeModels as se, inject as ke, onMounted as Pe, onUnmounted as Me, ref as w, shallowRef as z, useModel as Ue, reactive as Ae, computed as ie, watch as G, createElementBlock as B, openBlock as m, Fragment as Z, createVNode as c, normalizeClass as C, withCtx as H, createElementVNode as j, createBlock as N, createCommentVNode as k, renderList as Fe, unref as R } from "vue";
|
|
2
|
+
import { u as Se } from "../../vendor/vee-validate-RE5RuswC.es.js";
|
|
3
|
+
import { f as ze } from "../../vendor/vue-advanced-cropper-CshlvNaD.es.js";
|
|
4
|
+
import { u as Re } from "../animation/Animation-COWVilAA.es.js";
|
|
5
|
+
import { g as De, a as $e } from "../editor/Editor-DQ7Xdy30.es.js";
|
|
6
|
+
import { _ as Le } from "../image/Image-BZ31CL-y.es.js";
|
|
7
|
+
import { _ as O } from "../button/Button-D-MSv_AS.es.js";
|
|
8
|
+
import { _ as _e } from "../buttonradio/ButtonRadio-5VUY8o5h.es.js";
|
|
9
|
+
import { _ as Te } from "../dialog/Dialog-Dy93f91f.es.js";
|
|
10
|
+
import { _ as je } from "../dialogconfirm/DialogConfirm-BOFb7rJD.es.js";
|
|
11
|
+
import { _ as Ne } from "../fieldwrapper/FieldWrapper-C6HJ2HnC.es.js";
|
|
12
|
+
import { _ as ne } from "../icon/Icon-mDqG7urn.es.js";
|
|
13
|
+
import { _ as Oe } from "../invisiblefield/InvisibleField-4XbiOrqw.es.js";
|
|
14
|
+
import { _ as Ve } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
|
|
15
|
+
import { B as Ee } from "../backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js";
|
|
16
|
+
import { _ as ue } from "../imageinputinfo/ImageInputInfo-oTtVBxzO.es.js";
|
|
17
|
+
var qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
|
+
function xe(d) {
|
|
19
|
+
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
|
|
20
|
+
}
|
|
21
|
+
var ee = { exports: {} };
|
|
22
|
+
(function(d, V) {
|
|
23
|
+
(function() {
|
|
24
|
+
function E(W, a) {
|
|
25
|
+
a = a || "";
|
|
26
|
+
for (var b = 1024, h = window.atob(W), u = [], P = 0, D = h.length; P < D; P += b) {
|
|
27
|
+
for (var f = h.slice(P, P + b), r = new Array(f.length), I = 0; I < f.length; I++)
|
|
28
|
+
r[I] = f.charCodeAt(I);
|
|
29
|
+
var q = new Uint8Array(r);
|
|
30
|
+
u.push(q);
|
|
31
|
+
}
|
|
32
|
+
return new Blob(u, { type: a });
|
|
33
|
+
}
|
|
34
|
+
d.exports && (V = d.exports = E), V.base64ToBlob = E;
|
|
35
|
+
}).call(qe);
|
|
36
|
+
})(ee, ee.exports);
|
|
37
|
+
var Ke = ee.exports;
|
|
38
|
+
const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: "flex gap-1 items-start"
|
|
41
|
+
}, We = ["id", "multiple"], ca = /* @__PURE__ */ Ce({
|
|
42
|
+
__name: "ImageCompressor",
|
|
43
|
+
props: /* @__PURE__ */ se({
|
|
44
|
+
initialName: {},
|
|
45
|
+
multiple: { type: Boolean },
|
|
46
|
+
defaultImage: {},
|
|
47
|
+
disabled: { type: Boolean, default: !1 },
|
|
48
|
+
compressedBlob: { default: void 0 },
|
|
49
|
+
imagePreviewUrl: { default: void 0 },
|
|
50
|
+
imagePreviewSize: { default: "big" },
|
|
51
|
+
rounded: { type: Boolean, default: !1 },
|
|
52
|
+
useDeleteButton: { type: Boolean, default: !0 },
|
|
53
|
+
useValidator: { type: Boolean, default: !1 },
|
|
54
|
+
mandatory: { type: Boolean, default: !1 },
|
|
55
|
+
invalid: { type: Boolean },
|
|
56
|
+
validatorMessage: { default: "Photo must be uploaded" },
|
|
57
|
+
label: { default: void 0 },
|
|
58
|
+
fieldName: { default: "imageInput" },
|
|
59
|
+
fieldInfo: { default: void 0 },
|
|
60
|
+
showInfo: { type: Boolean, default: !0 },
|
|
61
|
+
customRequirements: { default: void 0 },
|
|
62
|
+
confirmOnDelete: { type: Boolean },
|
|
63
|
+
emitDeleteFn: { type: Boolean },
|
|
64
|
+
showValidatorMessage: { type: Boolean, default: !0 },
|
|
65
|
+
fileType: { default: "webp" }
|
|
66
|
+
}, {
|
|
67
|
+
defaultImage: { default: 0 },
|
|
68
|
+
defaultImageModifiers: {}
|
|
69
|
+
}),
|
|
70
|
+
emits: /* @__PURE__ */ se(["apply", "applyProp", "update:defaultImage", "delete"], ["update:defaultImage"]),
|
|
71
|
+
setup(d, { expose: V, emit: E }) {
|
|
72
|
+
const W = ke("preset", {}).image, a = d, b = E, { locale: h } = Re("ImageCompressor");
|
|
73
|
+
Pe(async () => {
|
|
74
|
+
ve(), A();
|
|
75
|
+
}), Me(() => {
|
|
76
|
+
F(0), F(1);
|
|
77
|
+
});
|
|
78
|
+
const u = w([
|
|
79
|
+
{
|
|
80
|
+
src: null,
|
|
81
|
+
type: null
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
src: null,
|
|
85
|
+
type: null
|
|
86
|
+
}
|
|
87
|
+
]), P = $e(), D = w(), f = w(), r = w([]), I = w(), q = z(0), J = w(), $ = w(), p = z(), x = Ue(d, "defaultImage"), s = Ae({
|
|
88
|
+
value: a.multiple ? [] : void 0
|
|
89
|
+
}), M = z(!1), y = z(), me = z(0), g = z(!1), Q = w([!1, !1]), U = ie(() => `image/${a.fileType}`), X = (e) => typeof r.value[e] == "string" && r.value[e].includes("data:image/png;base64"), A = async () => {
|
|
90
|
+
var e, l;
|
|
91
|
+
(e = a.imagePreviewUrl) != null && e.length ? r.value = Array.isArray(a.imagePreviewUrl) ? a.imagePreviewUrl : [a.imagePreviewUrl] : Array.isArray(a.compressedBlob) ? r.value = a.compressedBlob : a.compressedBlob ? r.value = [a.compressedBlob] : a.initialName ? (D.value = De(a.initialName, 125, P), r.value = [(l = D.value) == null ? void 0 : l.toDataURL()]) : r.value = [], a.imagePreviewUrl ? s.value = a.imagePreviewUrl : a.initialName && (s.value = await ce()), b("applyProp");
|
|
92
|
+
}, ce = async () => new Promise((e) => {
|
|
93
|
+
var l;
|
|
94
|
+
(l = D.value) == null || l.toBlob((o) => {
|
|
95
|
+
e(
|
|
96
|
+
new File([o ?? new Blob()], Date.now() + ".png", {
|
|
97
|
+
type: "image/png"
|
|
98
|
+
})
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
}), L = (e = !1) => {
|
|
102
|
+
var l;
|
|
103
|
+
a.disabled || (e && (p.value = 1), (l = I.value) == null || l.click());
|
|
104
|
+
}, de = async (e) => {
|
|
105
|
+
const { files: l } = e.target, o = Array.from(l ?? []).slice(
|
|
106
|
+
0,
|
|
107
|
+
r.value.length ? 1 : 2
|
|
108
|
+
);
|
|
109
|
+
for (const [t, n] of o.entries())
|
|
110
|
+
try {
|
|
111
|
+
const i = p.value ?? t;
|
|
112
|
+
await pe(n, i);
|
|
113
|
+
} catch (i) {
|
|
114
|
+
console.error("Error loading image:", i);
|
|
115
|
+
} finally {
|
|
116
|
+
p.value = void 0;
|
|
117
|
+
}
|
|
118
|
+
}, pe = async (e, l) => {
|
|
119
|
+
const o = (n) => n.includes("image"), t = (n) => n > 1e6;
|
|
120
|
+
return new Promise((n, i) => {
|
|
121
|
+
var _, S;
|
|
122
|
+
if (e)
|
|
123
|
+
if (ae(l), !o(e.type))
|
|
124
|
+
M.value = !0, y.value = typeof a.validatorMessage != "string" && ((_ = a.validatorMessage) != null && _.invalidFormat) ? a.validatorMessage.invalidFormat : "Tipe file harus berupa gambar!", A(), g.value = !1, F(l), i("Tipe file harus berupa gambar!");
|
|
125
|
+
else if (t(e.size))
|
|
126
|
+
M.value = !0, y.value = typeof a.validatorMessage != "string" && ((S = a.validatorMessage) != null && S.exceed) ? a.validatorMessage.exceed : "Ukuran gambar terlalu besar! Maks. 1 MB", A(), g.value = !1, F(l), i("Ukuran gambar terlalu besar! Maks. 1 MB");
|
|
127
|
+
else {
|
|
128
|
+
F(l);
|
|
129
|
+
const K = URL.createObjectURL(e), v = new FileReader();
|
|
130
|
+
v.onload = (T) => {
|
|
131
|
+
var re;
|
|
132
|
+
u.value[l].src = K, u.value[l].type = fe(
|
|
133
|
+
(re = T == null ? void 0 : T.target) == null ? void 0 : re.result,
|
|
134
|
+
e.type
|
|
135
|
+
);
|
|
136
|
+
}, v.onerror = (T) => {
|
|
137
|
+
console.error("🚀 ~ returnnewPromise ~ e:", T);
|
|
138
|
+
}, v.readAsArrayBuffer(e), p.value == null && (p.value = l), g.value || (g.value = !0), M.value = !1, y.value = void 0;
|
|
139
|
+
}
|
|
140
|
+
me.value += 1, $.value = n;
|
|
141
|
+
});
|
|
142
|
+
}, ve = () => {
|
|
143
|
+
a.useValidator && Object.assign(
|
|
144
|
+
s,
|
|
145
|
+
Se(a.fieldName, (e) => {
|
|
146
|
+
var l;
|
|
147
|
+
return !e && a.mandatory ? typeof a.validatorMessage != "string" && ((l = a.validatorMessage) != null && l.empty) ? a.validatorMessage.empty : (a.label ?? "Photo") + " must be uploaded" : a.invalid && a.validatorMessage ? a.validatorMessage : y.value ? y.value : !0;
|
|
148
|
+
})
|
|
149
|
+
);
|
|
150
|
+
}, ae = (e) => {
|
|
151
|
+
u.value[e] = {
|
|
152
|
+
src: null,
|
|
153
|
+
type: null
|
|
154
|
+
};
|
|
155
|
+
}, fe = (e, l = null) => {
|
|
156
|
+
if (e) {
|
|
157
|
+
const o = new Uint8Array(e).subarray(0, 4);
|
|
158
|
+
let t = "";
|
|
159
|
+
for (const n of o)
|
|
160
|
+
t += n.toString(16);
|
|
161
|
+
switch (t) {
|
|
162
|
+
case "89504e47":
|
|
163
|
+
return "image/png";
|
|
164
|
+
case "47494638":
|
|
165
|
+
return "image/gif";
|
|
166
|
+
case "ffd8ffe0":
|
|
167
|
+
case "ffd8ffe1":
|
|
168
|
+
case "ffd8ffe2":
|
|
169
|
+
case "ffd8ffe3":
|
|
170
|
+
case "ffd8ffe8":
|
|
171
|
+
return U.value;
|
|
172
|
+
default:
|
|
173
|
+
return l;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return null;
|
|
177
|
+
}, le = (e) => {
|
|
178
|
+
const l = Ge(e.split(",")[1], U.value);
|
|
179
|
+
return window.URL.createObjectURL(l);
|
|
180
|
+
}, ge = async (e, l) => {
|
|
181
|
+
const o = await fetch(e).then((t) => t.blob());
|
|
182
|
+
return new File([o], l, { type: U.value });
|
|
183
|
+
}, be = async () => {
|
|
184
|
+
const e = p.value ?? 0;
|
|
185
|
+
try {
|
|
186
|
+
await ye(e);
|
|
187
|
+
} catch (l) {
|
|
188
|
+
console.error(l);
|
|
189
|
+
}
|
|
190
|
+
te();
|
|
191
|
+
}, te = () => {
|
|
192
|
+
var e;
|
|
193
|
+
g.value = !1, (e = $.value) == null || e.call($), $.value = void 0;
|
|
194
|
+
}, ye = async (e) => {
|
|
195
|
+
if (J.value) {
|
|
196
|
+
const l = J.value.getResult();
|
|
197
|
+
if (l.canvas) {
|
|
198
|
+
const o = l.canvas.toDataURL(U.value);
|
|
199
|
+
await we(o, e);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}, we = async (e, l) => {
|
|
203
|
+
try {
|
|
204
|
+
f.value = document.createElement("canvas");
|
|
205
|
+
const o = f.value.getContext("2d"), t = new Image();
|
|
206
|
+
t.src = e, await t.decode();
|
|
207
|
+
const n = 80 / 100, i = t.width * n, _ = t.height * n;
|
|
208
|
+
f.value.setAttribute("width", i.toString()), f.value.setAttribute("height", _.toString()), o && o.drawImage(t, 0, 0, i, _);
|
|
209
|
+
const S = f.value.toDataURL(U.value, 0.95), K = Date.now() + `.${a.fileType}`, v = {
|
|
210
|
+
canvas: f.value,
|
|
211
|
+
compressed: {
|
|
212
|
+
blob: le(S),
|
|
213
|
+
base64: S,
|
|
214
|
+
fileName: K,
|
|
215
|
+
file: await ge(le(S), K),
|
|
216
|
+
size: "",
|
|
217
|
+
type: U.value
|
|
218
|
+
},
|
|
219
|
+
message: "File has been compressed."
|
|
220
|
+
};
|
|
221
|
+
v.compressed.size = Math.round(v.compressed.file.size / 1e3) + "KB", r.value[l] = v.compressed.blob, a.multiple ? s.value && Array.isArray(s.value) ? s.value[l] = v.compressed.file : s.value = [v.compressed.file] : s.value = v.compressed.file, b("apply", v);
|
|
222
|
+
} catch (o) {
|
|
223
|
+
console.error(o);
|
|
224
|
+
}
|
|
225
|
+
}, F = (e) => {
|
|
226
|
+
u.value[e].src && URL.revokeObjectURL(u.value[e].src);
|
|
227
|
+
}, he = (e) => {
|
|
228
|
+
a.confirmOnDelete ? Q.value[e] = !0 : a.emitDeleteFn ? b("delete", Y, e) : Y(e);
|
|
229
|
+
}, Y = (e = 0) => {
|
|
230
|
+
M.value = !1, y.value = void 0, r.value = r.value.toSpliced(e, 1), F(e), u.value[e] = { src: null, type: null }, u.value = [u.value[+!e], u.value[e]], p.value = 0, x.value = 0, a.confirmOnDelete || b("delete"), a.multiple && Array.isArray(s.value) ? s.value = s.value.toSpliced(e, 1) : s.handleReset && s.handleReset();
|
|
231
|
+
}, Ie = (e) => {
|
|
232
|
+
var o;
|
|
233
|
+
const l = (o = r.value[e]) == null ? void 0 : o.toString();
|
|
234
|
+
p.value = e, l != null && l.includes("blob") ? (p.value = e, g.value = !0) : (ae(e), L());
|
|
235
|
+
}, Be = () => {
|
|
236
|
+
L();
|
|
237
|
+
}, oe = ie(() => navigator.userAgent.includes("Firefox"));
|
|
238
|
+
return G(y, (e) => {
|
|
239
|
+
e && s.setErrors && s.setErrors(e);
|
|
240
|
+
}), G(g, (e) => {
|
|
241
|
+
e || q.value++;
|
|
242
|
+
}), G(
|
|
243
|
+
() => a.initialName,
|
|
244
|
+
() => {
|
|
245
|
+
A();
|
|
246
|
+
}
|
|
247
|
+
), G(
|
|
248
|
+
() => a.imagePreviewUrl,
|
|
249
|
+
() => {
|
|
250
|
+
A();
|
|
251
|
+
},
|
|
252
|
+
{ once: !0 }
|
|
253
|
+
), V({ assignPreviewImagesFromProp: A }), (e, l) => (m(), B(Z, null, [
|
|
254
|
+
c(Ne, {
|
|
255
|
+
class: C([{ "!w-max": !a.multiple, "!w-full": a.multiple }]),
|
|
256
|
+
info: a.fieldInfo,
|
|
257
|
+
label: a.label,
|
|
258
|
+
mandatory: a.mandatory,
|
|
259
|
+
"data-wv-name": "image-compressor",
|
|
260
|
+
"data-wv-section": "root"
|
|
261
|
+
}, {
|
|
262
|
+
default: H(() => [
|
|
263
|
+
j("div", {
|
|
264
|
+
class: C(["w-full", { "grid gap-6 items-start grid-cols-2": e.multiple }]),
|
|
265
|
+
"data-wv-section": "wrapper"
|
|
266
|
+
}, [
|
|
267
|
+
r.value.length ? (m(!0), B(Z, { key: 0 }, Fe(r.value, (o, t) => {
|
|
268
|
+
var n;
|
|
269
|
+
return m(), B("div", {
|
|
270
|
+
key: t,
|
|
271
|
+
class: "flex gap-1 items-start",
|
|
272
|
+
"data-wv-section": "preview"
|
|
273
|
+
}, [
|
|
274
|
+
j("div", {
|
|
275
|
+
class: C([
|
|
276
|
+
"flex flex-col gap-1 items-center",
|
|
277
|
+
{ "max-w-[80px]": e.imagePreviewSize === "medium" },
|
|
278
|
+
{ "max-w-[125px]": e.imagePreviewSize === "big" }
|
|
279
|
+
]),
|
|
280
|
+
"data-wv-section": "preview-image-wrapper"
|
|
281
|
+
}, [
|
|
282
|
+
j("div", {
|
|
283
|
+
class: C([
|
|
284
|
+
{
|
|
285
|
+
"[&>span]:hover:opacity-30 [&>[data-wv-section=input-image-trigger]]:hover:opacity-100": X(t)
|
|
286
|
+
},
|
|
287
|
+
"relative",
|
|
288
|
+
{
|
|
289
|
+
"w-[125px] h-[125px]": e.imagePreviewSize === "big",
|
|
290
|
+
"w-[30px] h-[30px]": e.imagePreviewSize === "small",
|
|
291
|
+
"w-[80px] h-[80px]": e.imagePreviewSize === "medium"
|
|
292
|
+
}
|
|
293
|
+
]),
|
|
294
|
+
"data-wv-section": "image-wrapper"
|
|
295
|
+
}, [
|
|
296
|
+
c(Le, {
|
|
297
|
+
rounded: e.rounded,
|
|
298
|
+
size: e.imagePreviewSize,
|
|
299
|
+
src: o,
|
|
300
|
+
class: "transition-opacity duration-300",
|
|
301
|
+
"data-wv-section": "preview-image"
|
|
302
|
+
}, null, 8, ["rounded", "size", "src"]),
|
|
303
|
+
X(t) ? (m(), B("button", {
|
|
304
|
+
key: 0,
|
|
305
|
+
class: C([
|
|
306
|
+
(n = R(W)) == null ? void 0 : n.button.class,
|
|
307
|
+
"hover:bg-opacity-0 rounded-lg opacity-0"
|
|
308
|
+
]),
|
|
309
|
+
onClick: l[0] || (l[0] = (i) => L(!1)),
|
|
310
|
+
"data-wv-section": "input-image-trigger",
|
|
311
|
+
type: "button"
|
|
312
|
+
}, [
|
|
313
|
+
c(ne, {
|
|
314
|
+
class: "w-6 h-6",
|
|
315
|
+
"data-wv-section": "trigger-icon",
|
|
316
|
+
icon: "image-add",
|
|
317
|
+
severity: "primary"
|
|
318
|
+
})
|
|
319
|
+
], 2)) : k("", !0)
|
|
320
|
+
], 2),
|
|
321
|
+
!a.disabled && !X(t) ? (m(), B(Z, { key: 0 }, [
|
|
322
|
+
j("div", {
|
|
323
|
+
class: C([
|
|
324
|
+
"flex gap-0.5 justify-center",
|
|
325
|
+
{ "scale-75": e.imagePreviewSize === "medium" }
|
|
326
|
+
]),
|
|
327
|
+
"data-wv-section": "preview-buttons"
|
|
328
|
+
}, [
|
|
329
|
+
c(O, {
|
|
330
|
+
onClick: (i) => Ie(t),
|
|
331
|
+
class: "!py-0 !px-1 !h-max",
|
|
332
|
+
icon: "pencil",
|
|
333
|
+
label: "Edit",
|
|
334
|
+
text: ""
|
|
335
|
+
}, null, 8, ["onClick"]),
|
|
336
|
+
e.useDeleteButton ? (m(), N(O, {
|
|
337
|
+
key: 0,
|
|
338
|
+
onClick: (i) => he(t),
|
|
339
|
+
class: "!py-0 !px-1 !h-max",
|
|
340
|
+
icon: "delete-bin",
|
|
341
|
+
label: "Delete",
|
|
342
|
+
severity: "danger",
|
|
343
|
+
text: ""
|
|
344
|
+
}, null, 8, ["onClick"])) : k("", !0)
|
|
345
|
+
], 2),
|
|
346
|
+
c(je, {
|
|
347
|
+
visible: Q.value[t],
|
|
348
|
+
"onUpdate:visible": (i) => Q.value[t] = i,
|
|
349
|
+
closable: !1,
|
|
350
|
+
onConfirm: (i) => b("delete", Y, t),
|
|
351
|
+
body: "Are you sure you want to delete it?",
|
|
352
|
+
"confirm-label": "Delete",
|
|
353
|
+
header: "Delete Photo",
|
|
354
|
+
severity: "danger"
|
|
355
|
+
}, null, 8, ["visible", "onUpdate:visible", "onConfirm"])
|
|
356
|
+
], 64)) : k("", !0)
|
|
357
|
+
], 2),
|
|
358
|
+
c(ue, {
|
|
359
|
+
"custom-requirements": e.customRequirements,
|
|
360
|
+
"show-add-button": r.value.length === 1 && a.multiple,
|
|
361
|
+
"show-info": e.showInfo,
|
|
362
|
+
onAddPhoto: l[2] || (l[2] = (i) => L(!0))
|
|
363
|
+
}, {
|
|
364
|
+
default: H(() => [
|
|
365
|
+
r.value.length === 2 && a.multiple ? (m(), N(_e, {
|
|
366
|
+
key: 0,
|
|
367
|
+
modelValue: x.value,
|
|
368
|
+
"onUpdate:modelValue": l[1] || (l[1] = (i) => x.value = i),
|
|
369
|
+
"label-id": "default-" + t,
|
|
370
|
+
value: t,
|
|
371
|
+
label: "Set as default"
|
|
372
|
+
}, null, 8, ["modelValue", "label-id", "value"])) : k("", !0)
|
|
373
|
+
]),
|
|
374
|
+
_: 2
|
|
375
|
+
}, 1032, ["custom-requirements", "show-add-button", "show-info"])
|
|
376
|
+
]);
|
|
377
|
+
}), 128)) : (m(), B("div", He, [
|
|
378
|
+
j("button", {
|
|
379
|
+
class: C([
|
|
380
|
+
{
|
|
381
|
+
"w-[125px] h-[125px]": e.imagePreviewSize === "big",
|
|
382
|
+
"w-[30px] h-[30px]": e.imagePreviewSize === "small",
|
|
383
|
+
"w-[80px] h-[80px]": e.imagePreviewSize === "medium"
|
|
384
|
+
},
|
|
385
|
+
"flex items-center justify-center",
|
|
386
|
+
"ring-inset",
|
|
387
|
+
"cursor-pointer",
|
|
388
|
+
{
|
|
389
|
+
"ring-1": oe.value,
|
|
390
|
+
"ring-[0.5px]": !oe.value
|
|
391
|
+
},
|
|
392
|
+
{ "rounded-full": e.rounded, "rounded-lg": !e.rounded },
|
|
393
|
+
{
|
|
394
|
+
"ring-general-400 focus-visible:ring-primary-500": !M.value && !s.errorMessage,
|
|
395
|
+
"ring-danger-500": M.value || s.errorMessage
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"bg-white": !a.disabled,
|
|
399
|
+
"bg-general-50": a.disabled
|
|
400
|
+
}
|
|
401
|
+
]),
|
|
402
|
+
onClick: l[3] || (l[3] = (o) => L(!1)),
|
|
403
|
+
"data-wv-section": "input-image-trigger",
|
|
404
|
+
type: "button"
|
|
405
|
+
}, [
|
|
406
|
+
c(ne, {
|
|
407
|
+
class: "w-6 h-6",
|
|
408
|
+
"data-wv-section": "trigger-icon",
|
|
409
|
+
icon: "image-add",
|
|
410
|
+
severity: "primary"
|
|
411
|
+
})
|
|
412
|
+
], 2),
|
|
413
|
+
c(ue, {
|
|
414
|
+
"custom-requirements": e.customRequirements,
|
|
415
|
+
"show-info": e.showInfo
|
|
416
|
+
}, null, 8, ["custom-requirements", "show-info"])
|
|
417
|
+
]))
|
|
418
|
+
], 2),
|
|
419
|
+
(m(), B("input", {
|
|
420
|
+
id: e.fieldName,
|
|
421
|
+
key: q.value,
|
|
422
|
+
ref_key: "inputImageFile",
|
|
423
|
+
ref: I,
|
|
424
|
+
multiple: a.multiple && !r.value.length,
|
|
425
|
+
onChange: de,
|
|
426
|
+
accept: "image/*",
|
|
427
|
+
class: "hidden",
|
|
428
|
+
"data-wv-section": "hidden-image-input",
|
|
429
|
+
type: "file"
|
|
430
|
+
}, null, 40, We)),
|
|
431
|
+
e.showValidatorMessage ? (m(), N(Ve, {
|
|
432
|
+
key: 0,
|
|
433
|
+
format: !1,
|
|
434
|
+
message: s.errorMessage ?? y.value
|
|
435
|
+
}, null, 8, ["message"])) : k("", !0),
|
|
436
|
+
a.multiple ? (m(), N(Oe, {
|
|
437
|
+
key: 1,
|
|
438
|
+
value: x.value ? "secondImage" : "firstImage",
|
|
439
|
+
"field-name": "defaultImage"
|
|
440
|
+
}, null, 8, ["value"])) : k("", !0)
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
}, 8, ["class", "info", "label", "mandatory"]),
|
|
444
|
+
c(Te, {
|
|
445
|
+
visible: g.value,
|
|
446
|
+
"onUpdate:visible": l[4] || (l[4] = (o) => g.value = o),
|
|
447
|
+
draggable: !1,
|
|
448
|
+
header: R(h).cropDialogHeader,
|
|
449
|
+
class: "w-max max-w-[98vw] min-w-[min(500px,98vw)] !max-h-[94vh]",
|
|
450
|
+
"content-class": "overflow-hidden overflow-y-auto min-h-[100px]",
|
|
451
|
+
"data-wv-section": "dialog-cropper",
|
|
452
|
+
"footer-class": "!gap-1",
|
|
453
|
+
modal: ""
|
|
454
|
+
}, {
|
|
455
|
+
footer: H(() => [
|
|
456
|
+
c(O, {
|
|
457
|
+
label: R(h).cancelCropLabel,
|
|
458
|
+
onClick: te,
|
|
459
|
+
"data-wv-section": "cancel-crop",
|
|
460
|
+
severity: "secondary",
|
|
461
|
+
text: "",
|
|
462
|
+
type: "button"
|
|
463
|
+
}, null, 8, ["label"]),
|
|
464
|
+
c(O, {
|
|
465
|
+
label: R(h).changeImageLabel,
|
|
466
|
+
onClick: Be,
|
|
467
|
+
"data-wv-section": "change-image-button",
|
|
468
|
+
text: "",
|
|
469
|
+
type: "button"
|
|
470
|
+
}, null, 8, ["label"]),
|
|
471
|
+
c(O, {
|
|
472
|
+
label: R(h).applyCropLabel,
|
|
473
|
+
onClick: be,
|
|
474
|
+
"data-wv-section": "apply-image-button",
|
|
475
|
+
severity: "success",
|
|
476
|
+
type: "button"
|
|
477
|
+
}, null, 8, ["label"])
|
|
478
|
+
]),
|
|
479
|
+
default: H(() => [
|
|
480
|
+
p.value != null ? (m(), N(R(ze), {
|
|
481
|
+
key: 0,
|
|
482
|
+
ref_key: "vueAdvanceCropper",
|
|
483
|
+
ref: J,
|
|
484
|
+
"auto-zoom": !1,
|
|
485
|
+
"background-wrapper-component": Ee,
|
|
486
|
+
src: u.value[p.value].src,
|
|
487
|
+
class: "upload-example-cropper h-400",
|
|
488
|
+
"foreground-class": "h-400",
|
|
489
|
+
"image-class": "h-400"
|
|
490
|
+
}, null, 8, ["src"])) : k("", !0)
|
|
491
|
+
]),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["visible", "header"])
|
|
494
|
+
], 64));
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
export {
|
|
498
|
+
ca as _,
|
|
499
|
+
qe as c,
|
|
500
|
+
xe as g
|
|
501
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../animation/Animation-6756VN9N.system.js","../button/Button-Okx1_kOu.system.js"],function(h,b){"use strict";var c,n,t,s,u,p,f,i,d,r,a,l,y,g;return{setters:[e=>{c=e.defineComponent,n=e.createElementBlock,t=e.openBlock,s=e.createCommentVNode,u=e.createBlock,p=e.renderSlot,f=e.normalizeClass,i=e.Fragment,d=e.renderList,r=e.toDisplayString,a=e.createElementVNode,l=e.unref},e=>{y=e.u},e=>{g=e._}],execute:function(){const e={class:"flex flex-col gap-y-4"},C={key:0,class:f(["text-xs font-normal text-grayscale-900","[&_li]:before:content-['•']","[&_li]:before:inline-block [&_li]:before:w-[12px] [&_li]:before:ml-[-12px] pl-3","max-w-[121px] [&_li]:pl-0.5"]),"data-wv-section":"image-requirements-info"},w=h("_",c({__name:"ImageInputInfo",props:{customRequirements:{},showInfo:{type:Boolean},showAddButton:{type:Boolean}},emits:["addPhoto"],setup(x){const{locale:k}=y("ImageCompressor");return(o,_)=>{var B;return t(),n("div",e,[o.showInfo?(t(),n("ul",C,[(B=o.customRequirements)!=null&&B.length?(t(!0),n(i,{key:0},d(o.customRequirements,m=>(t(),n("li",{key:m},r(m),1))),128)):(t(),n(i,{key:1},[a("li",null,r(l(k).maxSizeRequirement),1),a("li",null,r(l(k).imageTypeRequirement),1)],64))])):s("",!0),o.showAddButton?(t(),u(g,{key:1,onClick:_[0]||(_[0]=m=>o.$emit("addPhoto")),icon:"add",label:"Add Photo",text:""})):s("",!0),p(o.$slots,"default")])}}}))}}});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as d, createElementBlock as t, openBlock as o, createCommentVNode as a, createBlock as c, renderSlot as f, normalizeClass as _, Fragment as m, renderList as g, toDisplayString as r, createElementVNode as u, unref as p } from "vue";
|
|
2
|
+
import { u as y } from "../animation/Animation-COWVilAA.es.js";
|
|
3
|
+
import { _ as k } from "../button/Button-D-MSv_AS.es.js";
|
|
4
|
+
const h = { class: "flex flex-col gap-y-4" }, w = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: /* @__PURE__ */ _([
|
|
7
|
+
"text-xs font-normal text-grayscale-900",
|
|
8
|
+
"[&_li]:before:content-['•']",
|
|
9
|
+
"[&_li]:before:inline-block [&_li]:before:w-[12px] [&_li]:before:ml-[-12px] pl-3",
|
|
10
|
+
"max-w-[121px] [&_li]:pl-0.5"
|
|
11
|
+
]),
|
|
12
|
+
"data-wv-section": "image-requirements-info"
|
|
13
|
+
}, C = /* @__PURE__ */ d({
|
|
14
|
+
__name: "ImageInputInfo",
|
|
15
|
+
props: {
|
|
16
|
+
customRequirements: {},
|
|
17
|
+
showInfo: { type: Boolean },
|
|
18
|
+
showAddButton: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["addPhoto"],
|
|
21
|
+
setup(x) {
|
|
22
|
+
const { locale: l } = y("ImageCompressor");
|
|
23
|
+
return (e, s) => {
|
|
24
|
+
var i;
|
|
25
|
+
return o(), t("div", h, [
|
|
26
|
+
e.showInfo ? (o(), t("ul", w, [
|
|
27
|
+
(i = e.customRequirements) != null && i.length ? (o(!0), t(m, { key: 0 }, g(e.customRequirements, (n) => (o(), t("li", { key: n }, r(n), 1))), 128)) : (o(), t(m, { key: 1 }, [
|
|
28
|
+
u("li", null, r(p(l).maxSizeRequirement), 1),
|
|
29
|
+
u("li", null, r(p(l).imageTypeRequirement), 1)
|
|
30
|
+
], 64))
|
|
31
|
+
])) : a("", !0),
|
|
32
|
+
e.showAddButton ? (o(), c(k, {
|
|
33
|
+
key: 1,
|
|
34
|
+
onClick: s[0] || (s[0] = (n) => e.$emit("addPhoto")),
|
|
35
|
+
icon: "add",
|
|
36
|
+
label: "Add Photo",
|
|
37
|
+
text: ""
|
|
38
|
+
})) : a("", !0),
|
|
39
|
+
f(e.$slots, "default")
|
|
40
|
+
]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
C as _
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../button/Button-Okx1_kOu.system.js","../icon/Icon-DUylRmY4.system.js"],function(B,S){"use strict";var f,p,m,n,t,c,r,o,l,v,d,i,g,y,w,_,h,u;return{setters:[e=>{f=e.defineComponent,p=e.ref,m=e.computed,n=e.createElementBlock,t=e.openBlock,c=e.mergeProps,r=e.createElementVNode,o=e.createCommentVNode,l=e.createBlock,v=e.normalizeClass,d=e.unref,i=e.toDisplayString,g=e.Fragment,y=e.renderList,w=e.createVNode},e=>{_=e.c,h=e._},e=>{u=e._}],execute:function(){const e={class:"flex items-center gap-3 w-full"},C={class:"flex items-center w-full justify-between","data-wv-section":"content"},x={key:0,class:"font-bold","data-wv-section":"title"},b={"data-wv-section":"message"},N={key:0,class:"flex flex-col gap-3 overflow-auto max-h-[71px]","data-wv-section":"list"},z=B("_",f({__name:"InlineMessage",props:{severity:{default:"secondary"},title:{},message:{},lists:{},showIcon:{type:Boolean,default:!0},removable:{type:Boolean,default:!0},messageWrapperClass:{},loading:{type:Boolean,default:!1}},emits:["close"],setup(V){const s=V,$=p(!0),I=m(()=>{if(s.loading)return"spinner";switch(s.severity){case"success":return"checkbox-circle";case"danger":return"close-circle";default:return"info"}});return(a,k)=>(t(),n("div",c(a.$preset.inlinemessage.root({props:s}),{"aria-atomic":"true","aria-live":"assertive",role:"alert"}),[r("div",e,[a.showIcon?(t(),l(u,c({key:0},a.$preset.inlinemessage.icon({props:s}),{icon:I.value,severity:s.severity}),null,16,["icon","severity"])):o("",!0),r("div",C,[r("section",{class:v(["flex flex-col font-medium",...d(_)(s.messageWrapperClass)]),"data-wv-section":"messagewrapper"},[a.title?(t(),n("span",x,i(s.title),1)):o("",!0),r("span",b,i(s.loading?`${s.message}...`:s.message),1)],2),a.removable?(t(),l(h,{key:0,severity:s.severity,onClick:k[0]||(k[0]=()=>{a.$emit("close"),$.value=!1}),class:"[&_i]:w-6 [&_i]:h-6","data-wv-section":"close",icon:"close",rounded:"",text:""},null,8,["severity"])):o("",!0)])]),s.lists?(t(),n("div",N,[(t(!0),n(g,null,y(s.lists,(E,j)=>(t(),n("div",{key:j,class:"flex items-center gap-2","data-wv-section":"item"},[w(u,{severity:s.severity,class:"w-4 h-4 !cursor-auto",icon:"arrow-right-fill"},null,8,["severity"]),r("span",null,i(E),1)]))),128))])):o("",!0)],16))}}))}}});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent as g, ref as y, computed as w, createElementBlock as a, openBlock as s, mergeProps as n, createElementVNode as o, createCommentVNode as r, createBlock as c, normalizeClass as _, unref as h, toDisplayString as i, Fragment as k, renderList as x, createVNode as C } from "vue";
|
|
2
|
+
import { c as B, _ as $ } from "../button/Button-D-MSv_AS.es.js";
|
|
3
|
+
import { _ as m } from "../icon/Icon-mDqG7urn.es.js";
|
|
4
|
+
const b = { class: "flex items-center gap-3 w-full" }, I = {
|
|
5
|
+
class: "flex items-center w-full justify-between",
|
|
6
|
+
"data-wv-section": "content"
|
|
7
|
+
}, N = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "font-bold",
|
|
10
|
+
"data-wv-section": "title"
|
|
11
|
+
}, V = { "data-wv-section": "message" }, E = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "flex flex-col gap-3 overflow-auto max-h-[71px]",
|
|
14
|
+
"data-wv-section": "list"
|
|
15
|
+
}, z = /* @__PURE__ */ g({
|
|
16
|
+
__name: "InlineMessage",
|
|
17
|
+
props: {
|
|
18
|
+
severity: { default: "secondary" },
|
|
19
|
+
title: {},
|
|
20
|
+
message: {},
|
|
21
|
+
lists: {},
|
|
22
|
+
showIcon: { type: Boolean, default: !0 },
|
|
23
|
+
removable: { type: Boolean, default: !0 },
|
|
24
|
+
messageWrapperClass: {},
|
|
25
|
+
loading: { type: Boolean, default: !1 }
|
|
26
|
+
},
|
|
27
|
+
emits: ["close"],
|
|
28
|
+
setup(u) {
|
|
29
|
+
const e = u, d = y(!0), p = w(() => {
|
|
30
|
+
if (e.loading) return "spinner";
|
|
31
|
+
switch (e.severity) {
|
|
32
|
+
case "success":
|
|
33
|
+
return "checkbox-circle";
|
|
34
|
+
case "danger":
|
|
35
|
+
return "close-circle";
|
|
36
|
+
default:
|
|
37
|
+
return "info";
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
return (t, l) => (s(), a("div", n(t.$preset.inlinemessage.root({ props: e }), {
|
|
41
|
+
"aria-atomic": "true",
|
|
42
|
+
"aria-live": "assertive",
|
|
43
|
+
role: "alert"
|
|
44
|
+
}), [
|
|
45
|
+
o("div", b, [
|
|
46
|
+
t.showIcon ? (s(), c(m, n({ key: 0 }, t.$preset.inlinemessage.icon({ props: e }), {
|
|
47
|
+
icon: p.value,
|
|
48
|
+
severity: e.severity
|
|
49
|
+
}), null, 16, ["icon", "severity"])) : r("", !0),
|
|
50
|
+
o("div", I, [
|
|
51
|
+
o("section", {
|
|
52
|
+
class: _([
|
|
53
|
+
"flex flex-col font-medium",
|
|
54
|
+
...h(B)(e.messageWrapperClass)
|
|
55
|
+
]),
|
|
56
|
+
"data-wv-section": "messagewrapper"
|
|
57
|
+
}, [
|
|
58
|
+
t.title ? (s(), a("span", N, i(e.title), 1)) : r("", !0),
|
|
59
|
+
o("span", V, i(e.loading ? `${e.message}...` : e.message), 1)
|
|
60
|
+
], 2),
|
|
61
|
+
t.removable ? (s(), c($, {
|
|
62
|
+
key: 0,
|
|
63
|
+
severity: e.severity,
|
|
64
|
+
onClick: l[0] || (l[0] = () => {
|
|
65
|
+
t.$emit("close"), d.value = !1;
|
|
66
|
+
}),
|
|
67
|
+
class: "[&_i]:w-6 [&_i]:h-6",
|
|
68
|
+
"data-wv-section": "close",
|
|
69
|
+
icon: "close",
|
|
70
|
+
rounded: "",
|
|
71
|
+
text: ""
|
|
72
|
+
}, null, 8, ["severity"])) : r("", !0)
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
e.lists ? (s(), a("div", E, [
|
|
76
|
+
(s(!0), a(k, null, x(e.lists, (f, v) => (s(), a("div", {
|
|
77
|
+
key: v,
|
|
78
|
+
class: "flex items-center gap-2",
|
|
79
|
+
"data-wv-section": "item"
|
|
80
|
+
}, [
|
|
81
|
+
C(m, {
|
|
82
|
+
severity: e.severity,
|
|
83
|
+
class: "w-4 h-4 !cursor-auto",
|
|
84
|
+
icon: "arrow-right-fill"
|
|
85
|
+
}, null, 8, ["severity"]),
|
|
86
|
+
o("span", null, i(f), 1)
|
|
87
|
+
]))), 128))
|
|
88
|
+
])) : r("", !0)
|
|
89
|
+
], 16));
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
z as _
|
|
94
|
+
};
|