@fewangsit/wangsvue-fats 1.0.0-alpha.42 → 1.0.0-alpha.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ButtonCopy-C6DSmsOR.es.js +4 -0
- package/ButtonCopy-CeBlNyVx.system.js +1 -0
- package/ButtonSync-BLyCwwnU.system.js +1 -0
- package/ButtonSync-DtUhn-Q-.es.js +4 -0
- package/ButtonToggle-B9Fa75pf.es.js +4 -0
- package/ButtonToggle-CSxzlLR2.system.js +1 -0
- package/ButtonViewLog-B1oa4oFN.es.js +4 -0
- package/ButtonViewLog-_J6r7Oz8.system.js +1 -0
- package/Card-B19WgA6Y.es.js +4 -0
- package/Card-umUgd-nP.system.js +1 -0
- package/InputEmail-BZ5Y0wSk.system.js +1 -0
- package/InputEmail-DR_E1DsL.es.js +4 -0
- package/InputURL-DL6a94kM.system.js +1 -0
- package/InputURL-PVF5EUUY.es.js +4 -0
- package/Loading-Cq7rP88c.system.js +1 -0
- package/Loading-DUHTVct4.es.js +4 -0
- package/UserWithIcon-Ddn_GlNu.system.js +1 -0
- package/UserWithIcon-hWXf-A2U.es.js +4 -0
- package/async-components/index-C8nb7p3T.es.js +70 -0
- package/async-components/index-DvjqHrYE.system.js +1 -0
- package/components/animation/Animation-CCEnvZ_Z.es.js +48 -0
- package/components/animation/Animation-CJb4YIwm.system.js +1 -0
- package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +127 -0
- package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +1 -0
- package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +1 -0
- package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +201 -0
- package/components/badge/Badge-DXAyz4Z8.es.js +99 -0
- package/components/badge/Badge-wSExdsOP.system.js +1 -0
- package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +1 -0
- package/components/badgegroup/{BadgeGroup-Bj0EjoML.es.js → BadgeGroup-Dl2cL80L.es.js} +8 -8
- package/components/basetree/BaseTree-CmBp0uwr.system.js +1 -0
- package/components/basetree/{BaseTree-DLSA5FMh.es.js → BaseTree-RsvvntBp.es.js} +4 -4
- package/components/{treenode/TreeNode-KJOUvlTH.es.js → basetree/TreeNode-CUL5_2Rj.es.js} +5 -5
- package/components/basetree/TreeNode-D-YgXird.system.js +1 -0
- package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +1 -0
- package/components/breadcrumb/{Breadcrumb-BWSmLPqn.es.js → Breadcrumb-oqdG9WGT.es.js} +5 -5
- package/components/button/{Button-D-MSv_AS.es.js → Button-CgkhMnxo.es.js} +20 -16
- package/components/button/Button-D892iaxz.system.js +1 -0
- package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +1 -0
- package/components/buttonbulkaction/{ButtonBulkAction-B4RcdWmb.es.js → ButtonBulkAction-Tdf3aVtp.es.js} +55 -51
- package/components/buttoncopy/{ButtonCopy-BZgQAFOM.es.js → ButtonCopy-CUFHlIO-.es.js} +4 -4
- package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +1 -0
- package/components/buttoncopy/ButtonCopy.vue.d.ts +6 -4
- package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +61 -0
- package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +1 -0
- package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +1 -0
- package/components/buttonfilter/{ButtonFilter-BIE-jM2i.es.js → ButtonFilter-B49leY-q.es.js} +3 -3
- package/components/buttonradio/{ButtonRadio-5VUY8o5h.es.js → ButtonRadio-D6xKhPLg.es.js} +2 -2
- package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +1 -0
- package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +1 -0
- package/components/buttonscan/ButtonScan-mVHAdACL.es.js +387 -0
- package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +1 -0
- package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +25 -0
- package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +1 -0
- package/components/buttonsearch/{ButtonSearch-Clbafqts.es.js → ButtonSearch-BjcXUDQZ.es.js} +16 -16
- package/components/buttonselecttree/{ButtonSelectTree-B-_Iw5sB.es.js → ButtonSelectTree-D0lT3Exu.es.js} +33 -33
- package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +1 -0
- package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +1 -0
- package/components/buttonselectuser/{ButtonSelectUser-Ar7Y8tVR.es.js → ButtonSelectUser-OAZRY9OR.es.js} +23 -23
- package/components/buttonsync/{ButtonSync-Bc1GZXT6.es.js → ButtonSync-Brk16H8C.es.js} +2 -2
- package/components/buttonsync/{ButtonSync-ClllEdAy.system.js → ButtonSync-D5lXmtHs.system.js} +1 -1
- package/components/buttontoggle/{ButtonToggle-DIy3M8Pz.es.js → ButtonToggle-1R5y5DCx.es.js} +3 -3
- package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +1 -0
- package/components/buttonviewlog/{ButtonViewLog-h9uVv5A5.es.js → ButtonViewLog-CGsSkrzf.es.js} +1 -1
- package/components/buttonviewlog/{ButtonViewLog-Ct8QwEey.system.js → ButtonViewLog-leLO6F_N.system.js} +1 -1
- package/components/{basecalendar/BaseCalendar-47ahYXrt.es.js → calendar/BaseCalendar-5EI1UTbl.es.js} +19 -19
- package/components/calendar/BaseCalendar-C02-gmOQ.system.js +1 -0
- package/components/calendar/{Calendar-Df6CnW-l.es.js → Calendar-B2z-lfi9.es.js} +5 -5
- package/components/calendar/Calendar-CWw4R5mN.system.js +1 -0
- package/components/card/{Card-CwnxKNdM.es.js → Card-BccG14LV.es.js} +1 -1
- package/components/card/{Card-BUKU2FcT.system.js → Card-BjI-Xi0S.system.js} +1 -1
- package/components/checkbox/{Checkbox-DdsR222S.es.js → Checkbox-DBU7Ji2C.es.js} +3 -3
- package/components/checkbox/Checkbox-FZg_wq3C.system.js +1 -0
- package/components/codesnippet/{CodeSnippet-Bpps-Iyc.es.js → CodeSnippet--pMQi4aO.es.js} +7 -7
- package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +2 -0
- package/components/customcolumn/ColumnList-fdR5JfHj.es.js +159 -0
- package/components/customcolumn/ColumnList-yaNVEQFA.system.js +1 -0
- package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +139 -0
- package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +1 -0
- package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +1 -0
- package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +16 -0
- package/components/datatable/DataTable-BH7Fk88O.es.js +992 -0
- package/components/datatable/DataTable-Cko2S6sM.system.js +1 -0
- package/components/{multirow/MultiRow-ClSMxrEx.es.js → datatable/MultiRow-B2vMSb7W.es.js} +9 -9
- package/components/datatable/MultiRow-Sef5icam.system.js +1 -0
- package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +37 -0
- package/components/datatable/store/dataTable.store-C9376aEJ.system.js +1 -0
- package/components/dialog/{Dialog-Dy93f91f.es.js → Dialog-BCcbXSya.es.js} +5 -5
- package/components/dialog/Dialog-Dv7Jzg4E.system.js +1 -0
- package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +1 -0
- package/components/dialogconfirm/{DialogConfirm-BOFb7rJD.es.js → DialogConfirm-ByIWXisz.es.js} +24 -24
- package/components/dialogform/DialogForm-DGl_NOEr.system.js +1 -0
- package/components/dialogform/{DialogForm-C15nC1wH.es.js → DialogForm-tAbix3iC.es.js} +52 -53
- package/components/dialogselecttree/{DialogSelectTree-BA8xEqco.es.js → DialogSelectTree-BrVtt3iG.es.js} +13 -13
- package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +121 -0
- package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +1 -0
- package/components/{dialogselectuserfilter/DialogSelectUserFilter-Dz5OxAU-.es.js → dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js} +14 -10
- package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +71 -0
- package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +1 -0
- package/components/dropdown/Dropdown-BNzT2uLU.system.js +1 -0
- package/components/dropdown/{Dropdown-D4S52rW5.es.js → Dropdown-Dk4urj-W.es.js} +50 -44
- package/components/{codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js → editor/CodeSnippetAdapter-C0f7wytw.es.js} +4 -4
- package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +1 -0
- package/components/editor/{Editor-DQ7Xdy30.es.js → Editor-RB5MqBs1.es.js} +292 -441
- package/components/editor/Editor-upU4Z9FH.system.js +1 -0
- package/components/{editorbutton/EditorButton-DmVrr4Bk.system.js → editor/EditorButton-CC6U1a_u.system.js} +1 -1
- package/components/{editorbutton/EditorButton-DDgS2vga.es.js → editor/EditorButton-Cfew79JD.es.js} +1 -1
- package/components/editor/MentionList-BjWKefLh.system.js +1 -0
- package/components/{mentionlist/MentionList--7AymnhE.es.js → editor/MentionList-CdX0_-TK.es.js} +4 -4
- package/components/{mentionsection/MentionSection-C_c4qbpq.es.js → editor/MentionSection-5I-FSwew.es.js} +1 -1
- package/components/{mentionsection/MentionSection-C1gWOzH2.system.js → editor/MentionSection-CiuaeX4J.system.js} +1 -1
- package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +40 -0
- package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +1 -0
- package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +1 -0
- package/components/editor/mentionSectionExtension-rbWufuMT.es.js +46 -0
- package/components/editor/suggestion-BcYK0KeI.system.js +1 -0
- package/components/editor/suggestion-mkkpQFP-.es.js +41 -0
- package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +1 -0
- package/components/fieldwrapper/{FieldWrapper-C6HJ2HnC.es.js → FieldWrapper-DmOogUM5.es.js} +12 -11
- package/components/fileupload/{FileUpload-B6PAucnD.es.js → FileUpload-0EHKlInu.es.js} +11 -11
- package/components/fileupload/FileUpload-dXrsIAeC.system.js +1 -0
- package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +234 -0
- package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +1 -0
- package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +1 -0
- package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +56 -0
- package/components/form/Form-By85t_oI.system.js +1 -0
- package/components/form/{Form-eSj-nb1y.es.js → Form-DhWBpdkq.es.js} +42 -42
- package/components/hardwaresync/{HardwareSync-DUsVwHx1.es.js → HardwareSync-BckCfIeF.es.js} +21 -19
- package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +1 -0
- package/components/hardwaresync/store/device.store-DEKXH36R.system.js +1 -0
- package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +20 -0
- package/components/icon/{Icon-mDqG7urn.es.js → Icon-C4kXVcEX.es.js} +4 -4
- package/components/icon/Icon-D1a666FC.system.js +1 -0
- package/components/image/{Image-BZ31CL-y.es.js → Image-Bf5EaBWP.es.js} +21 -20
- package/components/image/Image-Cxi0E9gK.system.js +1 -0
- package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +1 -0
- package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +52 -0
- package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +1 -0
- package/components/imagecompressor/{ImageCompressor-DaW0ak9c.es.js → ImageCompressor-DPo-1Yo8.es.js} +207 -199
- package/components/{imageinputinfo/ImageInputInfo-oTtVBxzO.es.js → imagecompressor/ImageInputInfo-4Ac8cBDM.es.js} +2 -2
- package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +1 -0
- package/components/index-BMti6lK3.es.js +64 -0
- package/components/index-DBzSxIov.system.js +1 -0
- package/components/index.d.ts +162 -60
- package/components/inlinemessage/{InlineMessage-CBZT3jWS.es.js → InlineMessage-BPJD82sq.es.js} +12 -12
- package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +1 -0
- package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +1 -0
- package/components/inputbadge/{InputBadge-CsdT7M7-.es.js → InputBadge-BngtjqHQ.es.js} +13 -13
- package/components/inputcurrency/{InputCurrency-B96npK8W.es.js → InputCurrency-CE4WrJ9k.es.js} +16 -13
- package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +1 -0
- package/components/inputemail/InputEmail-8E04RVeq.system.js +1 -0
- package/components/inputemail/{InputEmail-BMzumenA.es.js → InputEmail-BFeY1l9Z.es.js} +1 -1
- package/components/inputgroup/{InputGroup-G9TEI4vX.system.js → InputGroup-CTHxHL8n.system.js} +1 -1
- package/components/inputgroup/{InputGroup-eNDRlJ5R.es.js → InputGroup-CUxNAtDZ.es.js} +1 -1
- package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +1 -0
- package/components/inputnumber/{InputNumber-Bzk_YzWM.es.js → InputNumber-CQd01PQ5.es.js} +7 -7
- package/components/inputpassword/InputPassword-D3jaUFfR.system.js +1 -0
- package/components/inputpassword/{InputPassword-BMHMWLgU.es.js → InputPassword-DGWsHAB4.es.js} +10 -10
- package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +1 -0
- package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +162 -0
- package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +15 -0
- package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +1 -0
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +423 -0
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +1 -0
- package/components/inputrangenumber/{InputRangeNumber-B1aAoKVj.es.js → InputRangeNumber-Cfea6oM_.es.js} +5 -5
- package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +1 -0
- package/components/inputsearch/{InputSearch-cPq3vqhy.es.js → InputSearch-CHJP-N57.es.js} +3 -3
- package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +1 -0
- package/components/inputtext/{InputText-_xEnXysf.es.js → InputText-BEDxrRqK.es.js} +14 -13
- package/components/inputtext/InputText-BOgH8xpA.system.js +1 -0
- package/components/inputurl/{InputURL-aqx1PVKL.es.js → InputURL-CNrOkrAC.es.js} +1 -1
- package/components/inputurl/InputURL-D4QWV9G7.system.js +1 -0
- package/components/litedropdown/{LiteDropdown-DcSzP11l.es.js → LiteDropdown-BbDUnfnd.es.js} +11 -11
- package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +1 -0
- package/components/loading/{Loading-D8M801C9.es.js → Loading-DIfTUHr7.es.js} +6 -6
- package/components/loading/Loading-Vb4HctBJ.system.js +1 -0
- package/components/menu/{Menu-BmTMFwBD.es.js → Menu-BtzGGhbp.es.js} +14 -14
- package/components/menu/Menu-CPm5vua_.system.js +1 -0
- package/components/menuitem/MenuItem-8yxkFTug.system.js +1 -0
- package/components/menuitem/{MenuItem-LoZMc0T9.es.js → MenuItem-uLVAqgBS.es.js} +1 -1
- package/components/multiselect/{MultiSelect-DGhS1EyX.es.js → MultiSelect-BoPpQ31j.es.js} +15 -15
- package/components/multiselect/MultiSelect-D5NEDtGe.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +1 -0
- package/components/overlaypanel/{OverlayPanel-DXNek7Yb.es.js → OverlayPanel-bQbjuUgG.es.js} +10 -10
- package/components/tabmenu/TabMenu-BBk8EW-C.system.js +1 -0
- package/components/tabmenu/{TabMenu-iMeZa8gy.es.js → TabMenu-ByKBaVsd.es.js} +13 -13
- package/components/tagtype/{TagType-CX7BVRrE.es.js → TagType-CAXomDiD.es.js} +4 -4
- package/components/tagtype/TagType-i4RK2JbL.system.js +1 -0
- package/components/textarea/{Textarea-ClnQ2qmf.es.js → Textarea-CnAlgPq5.es.js} +5 -5
- package/components/textarea/Textarea-qirKOw5z.system.js +1 -0
- package/components/timeline/Timeline-CF2qJo4E.es.js +120 -0
- package/components/timeline/Timeline-DKfKWZFI.system.js +1 -0
- package/components/{timelinecontentbytype/TimelineContentByType-ehFLzTA1.es.js → timeline/TimelineContentByType-_cKGDWAW.es.js} +48 -51
- package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +1 -0
- package/components/toast/Toast-C3D50rGo.system.js +1 -0
- package/components/toast/{Toast-DnALWJkx.es.js → Toast-DRUJCz4I.es.js} +4 -4
- package/components/toggleswitch/{ToggleSwitch-wRjnHRIw.es.js → ToggleSwitch-De-_8nQl.es.js} +2 -2
- package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +1 -0
- package/components/transactionroles/{TransactionRoles-B_67h5wb.es.js → TransactionRoles-WrcXMwBu.es.js} +2 -2
- package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +1 -0
- package/components/tree/Tree-93NvdElH.es.js +267 -0
- package/components/tree/Tree-BTTVTAEH.system.js +1 -0
- package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +1 -0
- package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +10 -0
- package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +1 -0
- package/components/treesearchinput/{TreeSearchInput-B1PmhE7k.es.js → TreeSearchInput-CNfoc3f6.es.js} +5 -5
- package/components/username/UserName-A1N6Q7bS.system.js +1 -0
- package/components/username/{UserName-CWs83BX6.es.js → UserName-D5C0qdbu.es.js} +45 -43
- package/components/userwithicon/{UserWithIcon-Dn3aNKdq.es.js → UserWithIcon-CHHDfQG0.es.js} +3 -3
- package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +1 -0
- package/config/config.esm-BZepf1kR.system.js +1 -0
- package/config/config.esm-Drl0fECZ.es.js +212 -0
- package/config/defaultProps-B3syHUKt.system.js +1 -0
- package/config/defaultProps-BC_lvAG9.es.js +136 -0
- package/config/locale-DK6d2rJ3.system.js +1 -0
- package/config/locale-pQnRpNZ6.es.js +85 -0
- package/event-bus/index-CykcrsqY.system.js +1 -0
- package/event-bus/index-PQwO5T6B.es.js +6 -0
- package/event-bus/mitt-BjeF6e5j.es.js +53 -0
- package/event-bus/mitt-X_X8W9w9.system.js +1 -0
- package/package.json +1 -1
- package/{components/animation/Animation-COWVilAA.es.js → plugins/WangsVue-Dl5OiLXF.es.js} +36 -132
- package/plugins/WangsVue-Dugc3GRS.system.js +1 -0
- package/plugins/i18n-BVujDShu.system.js +1 -0
- package/plugins/i18n-CIoi8go0.es.js +89 -0
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/addAttachment.util-CPzZEHNG.system.js +1 -0
- package/utils/addAttachment.util-D9sYCBjS.es.js +10 -0
- package/utils/computeAutoPlacement-Ac2MkS5B.es.js +33 -0
- package/utils/computeAutoPlacement-DCaci6j-.system.js +1 -0
- package/utils/computeOffsets-Cx9i84Mn.system.js +1 -0
- package/utils/computeOffsets-DXWJPq7f.es.js +56 -0
- package/utils/date.util-DbjB32co.es.js +198 -0
- package/utils/date.util-rX9kq_yC.system.js +1 -0
- package/utils/detectOverflow-BrAC_sJF.system.js +1 -0
- package/utils/detectOverflow-CETbaen7.es.js +88 -0
- package/utils/exportToExcel.util-Bf-PpzHW.system.js +1 -0
- package/utils/exportToExcel.util-jz7aU08m.es.js +32 -0
- package/utils/genPlaceholder.util-0UuDQpbx.es.js +37 -0
- package/utils/genPlaceholder.util-CxMG7LbT.system.js +1 -0
- package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +9 -0
- package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +1 -0
- package/utils/object.util-6veM2gu5.es.js +51 -0
- package/utils/object.util-uApor4uP.system.js +1 -0
- package/utils/orderModifiers-qXBm1wkD.system.js +1 -0
- package/utils/orderModifiers-rOag5Cyh.es.js +31 -0
- package/utils/role.util-BdUNoOqf.es.js +67 -0
- package/utils/role.util-Co8OMWnc.system.js +1 -0
- package/utils/textFormatter.util-BjenkyWf.system.js +1 -0
- package/utils/textFormatter.util-CYul3RpH.es.js +21 -0
- package/utils/toast.util-C7p3h9XQ.es.js +52 -0
- package/utils/toast.util-DPtauJUV.system.js +1 -0
- package/utils/utils.esm-iwnsFuDg.system.js +23 -0
- package/utils/utils.esm-s_-kLKXf.es.js +1080 -0
- package/utils/xlsx.util-FKEpiU2t.system.js +1 -0
- package/utils/xlsx.util-LU1upHR3.es.js +8 -0
- package/vendor/@popperjs/core-DFLwc7xU.system.js +1 -0
- package/vendor/@popperjs/core-DJHUrK4e.es.js +748 -0
- package/vendor/@tiptap/{core-bnIgGWIt.system.js → core-D4rHEGhs.system.js} +3 -3
- package/vendor/@tiptap/{core-BLz8iRA3.es.js → core-DSbPv8xh.es.js} +6 -6
- package/vendor/@tiptap/{extension-bold-BnsTNqIJ.es.js → extension-bold-CvAjR8FR.es.js} +1 -1
- package/vendor/@tiptap/{extension-bold-C_KVm_D0.system.js → extension-bold-DI_Zfdzb.system.js} +1 -1
- package/vendor/@tiptap/{extension-bubble-menu-D421L1EU.system.js → extension-bubble-menu-0_0wc2P7.system.js} +1 -1
- package/vendor/@tiptap/{extension-bubble-menu-D9Vgq7yO.es.js → extension-bubble-menu-DY29ulfu.es.js} +3 -3
- package/vendor/@tiptap/{extension-bullet-list-GNj3sKw9.es.js → extension-bullet-list-BrkIcd-z.es.js} +1 -1
- package/vendor/@tiptap/{extension-bullet-list-kXXFF-_p.system.js → extension-bullet-list-CgIgW9RG.system.js} +1 -1
- package/vendor/@tiptap/{extension-code-CfQ7g1i2.es.js → extension-code-BtAtPCQQ.es.js} +1 -1
- package/vendor/@tiptap/{extension-code-Q8P1EHjz.system.js → extension-code-SOANT0O3.system.js} +1 -1
- package/vendor/@tiptap/{extension-floating-menu-CSQuJzDM.es.js → extension-floating-menu-BTwcx1u8.es.js} +3 -3
- package/vendor/@tiptap/{extension-floating-menu-8rFSweor.system.js → extension-floating-menu-Dtu9tcTW.system.js} +1 -1
- package/vendor/@tiptap/{extension-heading-ZTlCgdtc.es.js → extension-heading-B6PMnqvS.es.js} +1 -1
- package/vendor/@tiptap/{extension-heading-BE64-Rg_.system.js → extension-heading-BpK6SnFO.system.js} +1 -1
- package/vendor/@tiptap/{extension-history-GLkLmX-Y.system.js → extension-history-CTFK6g3n.system.js} +1 -1
- package/vendor/@tiptap/{extension-history-eJIThEn-.es.js → extension-history-DdPDTH0G.es.js} +2 -2
- package/vendor/@tiptap/{extension-image-rKrdkZpJ.system.js → extension-image-BNa6azmK.system.js} +1 -1
- package/vendor/@tiptap/{extension-image-B8NPUVFM.es.js → extension-image-DCo2JDZp.es.js} +1 -1
- package/vendor/@tiptap/{extension-italic-C_CyJubw.es.js → extension-italic-D09oL4ps.es.js} +1 -1
- package/vendor/@tiptap/{extension-italic-Dg0Nosoc.system.js → extension-italic-w93Lmtg_.system.js} +1 -1
- package/vendor/@tiptap/{extension-link-D4PFdLvA.es.js → extension-link-CV6Fodq9.es.js} +3 -3
- package/vendor/@tiptap/{extension-link-Cd8bTMBz.system.js → extension-link-FrdAKaJ2.system.js} +1 -1
- package/vendor/@tiptap/{extension-list-item-Mnhfw2gP.system.js → extension-list-item-BRio_hHs.system.js} +1 -1
- package/vendor/@tiptap/{extension-list-item-7pIJ7t09.es.js → extension-list-item-D8wSpPxS.es.js} +1 -1
- package/vendor/@tiptap/{extension-mention-Dkg-tbrz.es.js → extension-mention-cFXQdAs7.es.js} +3 -3
- package/vendor/@tiptap/{extension-mention-DVF3rX_z.system.js → extension-mention-y62_tYRn.system.js} +1 -1
- package/vendor/@tiptap/{extension-ordered-list-DLI4xDN8.es.js → extension-ordered-list-BZU-Ty3o.es.js} +1 -1
- package/vendor/@tiptap/{extension-ordered-list-Hl0QU8Zt.system.js → extension-ordered-list-CH9LyYR1.system.js} +1 -1
- package/vendor/@tiptap/{extension-placeholder-V0iTxU19.es.js → extension-placeholder-CsBxoitZ.es.js} +3 -3
- package/vendor/@tiptap/{extension-placeholder-BeLl2T-f.system.js → extension-placeholder-Dqw7HNAJ.system.js} +1 -1
- package/vendor/@tiptap/{extension-underline-DsGbvz80.es.js → extension-underline-DklFOEoR.es.js} +1 -1
- package/vendor/@tiptap/{extension-underline-BdcAQ4JH.system.js → extension-underline-SGsaBlAL.system.js} +1 -1
- package/vendor/@tiptap/{suggestion-BpZSO8Lm.system.js → suggestion-B3Grok9m.system.js} +1 -1
- package/vendor/@tiptap/{suggestion-C4sBhJAD.es.js → suggestion-Dg-vhPtN.es.js} +5 -5
- package/vendor/@tiptap/{vue-3-DceiR7pK.es.js → vue-3-BOfcUn5G.es.js} +19 -19
- package/vendor/@tiptap/{vue-3-BH1pZykd.system.js → vue-3-ZMNXXvBd.system.js} +1 -1
- package/vendor/{highlight.js-BAruEf1H.system.js → highlight.js-ClnJXT0q.system.js} +1 -1
- package/vendor/{highlight.js-DHowhWoU.es.js → highlight.js-Czlvg6fB.es.js} +1 -1
- package/vendor/{lodash-DbIT-6qv.es.js → lodash-B6nNLFd3.es.js} +1 -1
- package/vendor/{lodash-DbvKLWSv.system.js → lodash-BuO1dYnQ.system.js} +1 -1
- package/vendor/{primevue-u6FsQONA.system.js → primevue-C5Z_k4WB.system.js} +29 -51
- package/vendor/{primevue-CadmDhWp.es.js → primevue-DkBtKf1Y.es.js} +2599 -3878
- package/vendor/{prosemirror-commands-DLmzIpoS.es.js → prosemirror-commands-CUjo-x4s.es.js} +1 -1
- package/vendor/{prosemirror-commands-DgY3QRzI.system.js → prosemirror-commands-Dn6KNBP0.system.js} +2 -2
- package/vendor/{prosemirror-history-BMpJFORS.es.js → prosemirror-history-BPOe4I2H.es.js} +1 -1
- package/vendor/{prosemirror-history-BrK-FTBv.system.js → prosemirror-history-BTrzvpc-.system.js} +1 -1
- package/vendor/{prosemirror-keymap-DF8LLxca.es.js → prosemirror-keymap-BvIUhswp.es.js} +1 -1
- package/vendor/{prosemirror-keymap-COb3Dq2o.system.js → prosemirror-keymap-WRY9zVpK.system.js} +1 -1
- package/vendor/{prosemirror-schema-list-BPpAP8wR.system.js → prosemirror-schema-list-Dv9KV10j.system.js} +1 -1
- package/vendor/{prosemirror-state-CwkYUmNs.es.js → prosemirror-state-BW6XGB3U.es.js} +6 -6
- package/vendor/{prosemirror-state-DzPLD-6l.system.js → prosemirror-state-COJ-aZZ4.system.js} +1 -1
- package/vendor/{prosemirror-transform-VaXuT0NM.system.js → prosemirror-transform-BXNgAhmF.system.js} +2 -2
- package/vendor/{prosemirror-view-ta7l3rKk.es.js → prosemirror-view-C9ZQp8VZ.es.js} +1 -1
- package/vendor/{prosemirror-view-JTdpiWMD.system.js → prosemirror-view-DOxSTbB-.system.js} +1 -1
- package/vendor/{simplebar-core-71xT5g0m.system.js → simplebar-core-CtWK1-xd.system.js} +1 -1
- package/vendor/{simplebar-core-Db65-Ath.es.js → simplebar-core-ofTx4QqK.es.js} +1 -1
- package/vendor/{simplebar-vue-BFEeFUIv.system.js → simplebar-vue-BHVrvuf1.system.js} +1 -1
- package/vendor/{simplebar-vue-DAxqu0eM.es.js → simplebar-vue-dpCx-K7E.es.js} +1 -1
- package/vendor/{tippy.js-CuKTz0UR.system.js → tippy.js-6wuFov1j.system.js} +1 -1
- package/vendor/{tippy.js-DNnwm2RY.es.js → tippy.js-i1ic-msv.es.js} +23 -23
- package/wangsvue-fats.js +141 -527
- package/wangsvue-fats.system.js +1 -1
- package/components/animation/Animation-6756VN9N.system.js +0 -1
- package/components/approverinfo/ApproverInfo-BdqBpNjY.system.js +0 -1
- package/components/approverinfo/ApproverInfo-C3_ibV8c.es.js +0 -321
- package/components/assetinfo/AssetInfo-BBgKToRP.system.js +0 -1
- package/components/assetinfo/AssetInfo-CmwgOU74.es.js +0 -298
- package/components/backgroundimagecropper/BackgroundImageCropper-DFHtaSyE.system.js +0 -1
- package/components/backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js +0 -57
- package/components/badge/Badge-CndPv5v9.system.js +0 -1
- package/components/badge/Badge-DA-XiE1C.es.js +0 -115
- package/components/badgegroup/BadgeGroup-Y-HhiHk8.system.js +0 -1
- package/components/basecalendar/BaseCalendar-Ce46jOkg.system.js +0 -1
- package/components/basetree/BaseTree-DDu1qI7t.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-B5bAijry.system.js +0 -1
- package/components/button/Button-Okx1_kOu.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-DLmvicRL.system.js +0 -1
- package/components/buttoncopy/ButtonCopy-CKi1bBpz.system.js +0 -1
- package/components/buttondownload/ButtonDownload-Bw9T3mbW.es.js +0 -92
- package/components/buttondownload/ButtonDownload-CpA0ryUT.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-C4WRvUrj.system.js +0 -1
- package/components/buttonradio/ButtonRadio-B2wWrgB5.system.js +0 -1
- package/components/buttonscan/ButtonScan-BCScT2cx.es.js +0 -421
- package/components/buttonscan/ButtonScan-TbyhlW5M.system.js +0 -1
- package/components/buttonsearch/ButtonSearch-e57pD5r3.system.js +0 -1
- package/components/buttonselecttree/ButtonSelectTree-Cbq1oeVK.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-Cfe6m75Z.system.js +0 -1
- package/components/buttontoggle/ButtonToggle-VNp0lbcW.system.js +0 -1
- package/components/calendar/Calendar-7yBKZsvj.system.js +0 -1
- package/components/checkbox/Checkbox-CCtItmVW.system.js +0 -1
- package/components/codesnippet/CodeSnippet-DvTtZ28b.system.js +0 -2
- package/components/codesnippetadapter/CodeSnippetAdapter-BtSqWBl1.system.js +0 -1
- package/components/columnlist/ColumnList-Bh3LZlOa.system.js +0 -1
- package/components/columnlist/ColumnList-Bp7soiys.es.js +0 -204
- package/components/customcolumn/CustomColumn-CVhAbTGn.system.js +0 -1
- package/components/customcolumn/CustomColumn-Dblxjw_0.es.js +0 -138
- package/components/datatable/DataTable--mHUKNUr.system.js +0 -1
- package/components/datatable/DataTable-J1j-OKsW.es.js +0 -983
- package/components/dialog/Dialog-WEl66uTI.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-o7_v7F31.system.js +0 -1
- package/components/dialogform/DialogForm-CdpY1_-F.system.js +0 -1
- package/components/dialogselecttree/DialogSelectTree-DKxWI9Re.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-BZTSktHZ.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-Bu5TDAPt.es.js +0 -186
- package/components/dialogselectuserfilter/DialogSelectUserFilter-DEl4zFaX.system.js +0 -1
- package/components/dropdown/Dropdown-DuvNYyq0.system.js +0 -1
- package/components/editor/Editor-IfYw2Tps.system.js +0 -1
- package/components/fieldwrapper/FieldWrapper-DFjw9hA8.system.js +0 -1
- package/components/fileupload/FileUpload-iVAJXujV.system.js +0 -1
- package/components/filtercontainer/FilterContainer-CuMaq5Sv.es.js +0 -284
- package/components/filtercontainer/FilterContainer-DUeVLHgZ.system.js +0 -1
- package/components/form/Form-D-e0VI8V.system.js +0 -1
- package/components/hardwaresync/HardwareSync--HomfQuH.system.js +0 -1
- package/components/icon/Icon-DUylRmY4.system.js +0 -1
- package/components/image/Image-DX6uB7Ns.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-BLeJDvN3.system.js +0 -1
- package/components/imageinputinfo/ImageInputInfo-C5F14hbF.system.js +0 -1
- package/components/inlinemessage/InlineMessage-19w6FOcP.system.js +0 -1
- package/components/inputbadge/InputBadge-dgANMV70.system.js +0 -1
- package/components/inputcurrency/InputCurrency-ChqGX5L8.system.js +0 -1
- package/components/inputemail/InputEmail-CYILS9bp.system.js +0 -1
- package/components/inputnumber/InputNumber-CRyg8Xw_.system.js +0 -1
- package/components/inputpassword/InputPassword-BjB6FsoL.system.js +0 -1
- package/components/inputphonenumber/InputPhoneNumber-CVM2oK5q.es.js +0 -591
- package/components/inputphonenumber/InputPhoneNumber-DIbd3upL.system.js +0 -1
- package/components/inputrangenumber/InputRangeNumber-C28xgFBY.system.js +0 -1
- package/components/inputsearch/InputSearch--KHwTBTm.system.js +0 -1
- package/components/inputtext/InputText-93zDNfC3.system.js +0 -1
- package/components/inputurl/InputURL-kWIiKGEG.system.js +0 -1
- package/components/litedropdown/LiteDropdown-3KsCx4wX.system.js +0 -1
- package/components/loading/Loading-Diwog8dc.system.js +0 -1
- package/components/mentionlist/MentionList-600dsWhX.system.js +0 -1
- package/components/menu/Menu-OR25pAK3.system.js +0 -1
- package/components/menuitem/MenuItem-imQ-hYTP.system.js +0 -1
- package/components/multirow/MultiRow-DKu6uIsI.system.js +0 -1
- package/components/multiselect/MultiSelect-DKFYq47E.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-C_WCcNPw.system.js +0 -1
- package/components/tabmenu/TabMenu-CAQqu-ff.system.js +0 -1
- package/components/tagtype/TagType-IMYg8AJf.system.js +0 -1
- package/components/textarea/Textarea-DlkzVURV.system.js +0 -1
- package/components/timeline/Timeline-BMRdV_mH.es.js +0 -120
- package/components/timeline/Timeline-D7SYc3QX.system.js +0 -1
- package/components/timelinecontentbytype/TimelineContentByType-BmWsZID0.system.js +0 -1
- package/components/toast/Toast-Pc_DOZ5-.system.js +0 -1
- package/components/toggleswitch/ToggleSwitch-WHdD3oYL.system.js +0 -1
- package/components/transactionroles/TransactionRoles-DSXBVwPM.system.js +0 -1
- package/components/tree/Tree-BoVGYw5N.system.js +0 -1
- package/components/tree/Tree-DnaIZZ8S.es.js +0 -268
- package/components/treenode/TreeNode-D5aepDIU.system.js +0 -1
- package/components/treesearchinput/TreeSearchInput-C-hXPV61.system.js +0 -1
- package/components/username/UserName-CCyPAYG6.system.js +0 -1
- package/components/userwithicon/UserWithIcon-CFjQcbAS.system.js +0 -1
- package/vendor/@popperjs/core-BDAJHTVh.es.js +0 -905
- package/vendor/@popperjs/core-DpNOCyB0.system.js +0 -1
- /package/assets/{lottiejs → lottie}/loading-page-B9ooQcfF.system.js +0 -0
- /package/assets/{lottiejs → lottie}/loading-page-CQ0mKER2.es.js +0 -0
- /package/assets/{lottiejs → lottie}/loading-plane-CgfbWppy.system.js +0 -0
- /package/assets/{lottiejs → lottie}/loading-plane-CoXtqoc9.es.js +0 -0
- /package/assets/{lottiejs → lottie}/loading-table-B4T3FYiI.system.js +0 -0
- /package/assets/{lottiejs → lottie}/loading-table-BnpbX8Ew.es.js +0 -0
- /package/assets/{lottiejs → lottie}/no-data-CMWnya_k.system.js +0 -0
- /package/assets/{lottiejs → lottie}/no-data-DOy8kIGF.es.js +0 -0
package/components/imagecompressor/{ImageCompressor-DaW0ak9c.es.js → ImageCompressor-DPo-1Yo8.es.js}
RENAMED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { _
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function xe(d) {
|
|
1
|
+
import { _ as me } from "../invisiblefield/InvisibleField-4XbiOrqw.es.js";
|
|
2
|
+
import { defineComponent as ke, mergeModels as ie, defineAsyncComponent as Me, inject as Ue, onMounted as Ae, onUnmounted as Se, ref as w, shallowRef as z, useModel as Fe, reactive as ze, computed as ne, watch as K, createElementBlock as B, openBlock as c, Fragment as Z, createVNode as m, normalizeClass as P, withCtx as G, createElementVNode as j, createBlock as O, createCommentVNode as k, renderList as Re, unref as h } from "vue";
|
|
3
|
+
import { u as De } from "../../vendor/vee-validate-RE5RuswC.es.js";
|
|
4
|
+
import { f as $e } from "../../vendor/vue-advanced-cropper-CshlvNaD.es.js";
|
|
5
|
+
import { i as Le } from "../../async-components/index-C8nb7p3T.es.js";
|
|
6
|
+
import { u as Te } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
|
|
7
|
+
import { g as je, a as Oe } from "../../utils/genPlaceholder.util-0UuDQpbx.es.js";
|
|
8
|
+
import _e from "../image/Image-Bf5EaBWP.es.js";
|
|
9
|
+
import { _ } from "../button/Button-CgkhMnxo.es.js";
|
|
10
|
+
import Ne from "../dialog/Dialog-BCcbXSya.es.js";
|
|
11
|
+
import Ve from "../dialogconfirm/DialogConfirm-ByIWXisz.es.js";
|
|
12
|
+
import Ee from "../fieldwrapper/FieldWrapper-DmOogUM5.es.js";
|
|
13
|
+
import ue from "../icon/Icon-C4kXVcEX.es.js";
|
|
14
|
+
import { _ as qe } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
|
|
15
|
+
import { _ as ce } from "./ImageInputInfo-4Ac8cBDM.es.js";
|
|
16
|
+
var xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
17
|
+
function Ke(d) {
|
|
19
18
|
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
|
|
20
19
|
}
|
|
21
20
|
var ee = { exports: {} };
|
|
22
|
-
(function(d,
|
|
21
|
+
(function(d, N) {
|
|
23
22
|
(function() {
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
for (var
|
|
27
|
-
for (var
|
|
28
|
-
r
|
|
29
|
-
var
|
|
30
|
-
|
|
23
|
+
function V(H, R) {
|
|
24
|
+
R = R || "";
|
|
25
|
+
for (var a = 1024, b = window.atob(H), I = [], n = 0, W = b.length; n < W; n += a) {
|
|
26
|
+
for (var C = b.slice(n, n + a), f = new Array(C.length), r = 0; r < C.length; r++)
|
|
27
|
+
f[r] = C.charCodeAt(r);
|
|
28
|
+
var E = new Uint8Array(f);
|
|
29
|
+
I.push(E);
|
|
31
30
|
}
|
|
32
|
-
return new Blob(
|
|
31
|
+
return new Blob(I, { type: R });
|
|
33
32
|
}
|
|
34
|
-
d.exports && (
|
|
35
|
-
}).call(
|
|
33
|
+
d.exports && (N = d.exports = V), N.base64ToBlob = V;
|
|
34
|
+
}).call(xe);
|
|
36
35
|
})(ee, ee.exports);
|
|
37
|
-
var
|
|
38
|
-
const
|
|
36
|
+
var Ge = ee.exports;
|
|
37
|
+
const He = /* @__PURE__ */ Ke(Ge), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
default: me
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), We = {
|
|
39
41
|
key: 1,
|
|
40
42
|
class: "flex gap-1 items-start"
|
|
41
|
-
},
|
|
43
|
+
}, Je = ["id", "multiple"], Qe = /* @__PURE__ */ ke({
|
|
42
44
|
__name: "ImageCompressor",
|
|
43
|
-
props: /* @__PURE__ */
|
|
45
|
+
props: /* @__PURE__ */ ie({
|
|
44
46
|
initialName: {},
|
|
45
47
|
multiple: { type: Boolean },
|
|
46
48
|
defaultImage: {},
|
|
@@ -67,15 +69,17 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
67
69
|
defaultImage: { default: 0 },
|
|
68
70
|
defaultImageModifiers: {}
|
|
69
71
|
}),
|
|
70
|
-
emits: /* @__PURE__ */
|
|
71
|
-
setup(d, { expose:
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
emits: /* @__PURE__ */ ie(["apply", "applyProp", "update:defaultImage", "delete"], ["update:defaultImage"]),
|
|
73
|
+
setup(d, { expose: N, emit: V }) {
|
|
74
|
+
const H = Me(
|
|
75
|
+
() => import("./BackgroundImageCropper-hiHqCcIy.es.js")
|
|
76
|
+
), R = Ue("preset", {}).image, a = d, b = V, { locale: I } = Te("ImageCompressor");
|
|
77
|
+
Ae(async () => {
|
|
78
|
+
ge(), A();
|
|
79
|
+
}), Se(() => {
|
|
80
|
+
S(0), S(1);
|
|
77
81
|
});
|
|
78
|
-
const
|
|
82
|
+
const n = w([
|
|
79
83
|
{
|
|
80
84
|
src: null,
|
|
81
85
|
type: null
|
|
@@ -84,81 +88,81 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
84
88
|
src: null,
|
|
85
89
|
type: null
|
|
86
90
|
}
|
|
87
|
-
]),
|
|
91
|
+
]), W = Oe(), C = w(), f = w(), r = w([]), E = w(), ae = z(0), J = w(), D = w(), p = z(), q = Fe(d, "defaultImage"), s = ze({
|
|
88
92
|
value: a.multiple ? [] : void 0
|
|
89
|
-
}), M = z(!1), y = z(),
|
|
90
|
-
var e,
|
|
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 ? (
|
|
92
|
-
},
|
|
93
|
-
var
|
|
94
|
-
(
|
|
93
|
+
}), M = z(!1), y = z(), de = z(0), g = z(!1), Q = w([!1, !1]), U = ne(() => `image/${a.fileType}`), X = (e) => typeof r.value[e] == "string" && r.value[e].includes("data:image/png;base64"), A = async () => {
|
|
94
|
+
var e, t;
|
|
95
|
+
(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 ? (C.value = je(a.initialName, 125, W), r.value = [(t = C.value) == null ? void 0 : t.toDataURL()]) : r.value = [], a.imagePreviewUrl ? s.value = a.imagePreviewUrl : a.initialName && (s.value = await pe()), b("applyProp");
|
|
96
|
+
}, pe = async () => new Promise((e) => {
|
|
97
|
+
var t;
|
|
98
|
+
(t = C.value) == null || t.toBlob((o) => {
|
|
95
99
|
e(
|
|
96
100
|
new File([o ?? new Blob()], Date.now() + ".png", {
|
|
97
101
|
type: "image/png"
|
|
98
102
|
})
|
|
99
103
|
);
|
|
100
104
|
});
|
|
101
|
-
}),
|
|
102
|
-
var
|
|
103
|
-
a.disabled || (e && (p.value = 1), (
|
|
104
|
-
},
|
|
105
|
-
const { files:
|
|
105
|
+
}), $ = (e = !1) => {
|
|
106
|
+
var t;
|
|
107
|
+
a.disabled || (e && (p.value = 1), (t = E.value) == null || t.click());
|
|
108
|
+
}, ve = async (e) => {
|
|
109
|
+
const { files: t } = e.target, o = Array.from(t ?? []).slice(
|
|
106
110
|
0,
|
|
107
111
|
r.value.length ? 1 : 2
|
|
108
112
|
);
|
|
109
|
-
for (const [
|
|
113
|
+
for (const [l, u] of o.entries())
|
|
110
114
|
try {
|
|
111
|
-
const i = p.value ??
|
|
112
|
-
await
|
|
115
|
+
const i = p.value ?? l;
|
|
116
|
+
await fe(u, i);
|
|
113
117
|
} catch (i) {
|
|
114
118
|
console.error("Error loading image:", i);
|
|
115
119
|
} finally {
|
|
116
120
|
p.value = void 0;
|
|
117
121
|
}
|
|
118
|
-
},
|
|
119
|
-
const o = (
|
|
120
|
-
return new Promise((
|
|
121
|
-
var
|
|
122
|
+
}, fe = async (e, t) => {
|
|
123
|
+
const o = (u) => u.includes("image"), l = (u) => u > 1e6;
|
|
124
|
+
return new Promise((u, i) => {
|
|
125
|
+
var L, F;
|
|
122
126
|
if (e)
|
|
123
|
-
if (
|
|
124
|
-
M.value = !0, y.value = typeof a.validatorMessage != "string" && ((
|
|
125
|
-
else if (
|
|
126
|
-
M.value = !0, y.value = typeof a.validatorMessage != "string" && ((
|
|
127
|
+
if (te(t), !o(e.type))
|
|
128
|
+
M.value = !0, y.value = typeof a.validatorMessage != "string" && ((L = a.validatorMessage) != null && L.invalidFormat) ? a.validatorMessage.invalidFormat : "Tipe file harus berupa gambar!", A(), g.value = !1, S(t), i("Tipe file harus berupa gambar!");
|
|
129
|
+
else if (l(e.size))
|
|
130
|
+
M.value = !0, y.value = typeof a.validatorMessage != "string" && ((F = a.validatorMessage) != null && F.exceed) ? a.validatorMessage.exceed : "Ukuran gambar terlalu besar! Maks. 1 MB", A(), g.value = !1, S(t), i("Ukuran gambar terlalu besar! Maks. 1 MB");
|
|
127
131
|
else {
|
|
128
|
-
|
|
129
|
-
const
|
|
132
|
+
S(t);
|
|
133
|
+
const x = URL.createObjectURL(e), v = new FileReader();
|
|
130
134
|
v.onload = (T) => {
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
(
|
|
135
|
+
var se;
|
|
136
|
+
n.value[t].src = x, n.value[t].type = be(
|
|
137
|
+
(se = T == null ? void 0 : T.target) == null ? void 0 : se.result,
|
|
134
138
|
e.type
|
|
135
139
|
);
|
|
136
140
|
}, v.onerror = (T) => {
|
|
137
141
|
console.error("🚀 ~ returnnewPromise ~ e:", T);
|
|
138
|
-
}, v.readAsArrayBuffer(e), p.value == null && (p.value =
|
|
142
|
+
}, v.readAsArrayBuffer(e), p.value == null && (p.value = t), g.value || (g.value = !0), M.value = !1, y.value = void 0;
|
|
139
143
|
}
|
|
140
|
-
|
|
144
|
+
de.value += 1, D.value = u;
|
|
141
145
|
});
|
|
142
|
-
},
|
|
146
|
+
}, ge = () => {
|
|
143
147
|
a.useValidator && Object.assign(
|
|
144
148
|
s,
|
|
145
|
-
|
|
146
|
-
var
|
|
147
|
-
return !e && a.mandatory ? typeof a.validatorMessage != "string" && ((
|
|
149
|
+
De(a.fieldName, (e) => {
|
|
150
|
+
var t;
|
|
151
|
+
return !e && a.mandatory ? typeof a.validatorMessage != "string" && ((t = a.validatorMessage) != null && t.empty) ? a.validatorMessage.empty : (a.label ?? "Photo") + " must be uploaded" : a.invalid && a.validatorMessage ? a.validatorMessage : y.value ? y.value : !0;
|
|
148
152
|
})
|
|
149
153
|
);
|
|
150
|
-
},
|
|
151
|
-
|
|
154
|
+
}, te = (e) => {
|
|
155
|
+
n.value[e] = {
|
|
152
156
|
src: null,
|
|
153
157
|
type: null
|
|
154
158
|
};
|
|
155
|
-
},
|
|
159
|
+
}, be = (e, t = null) => {
|
|
156
160
|
if (e) {
|
|
157
161
|
const o = new Uint8Array(e).subarray(0, 4);
|
|
158
|
-
let
|
|
159
|
-
for (const
|
|
160
|
-
|
|
161
|
-
switch (
|
|
162
|
+
let l = "";
|
|
163
|
+
for (const u of o)
|
|
164
|
+
l += u.toString(16);
|
|
165
|
+
switch (l) {
|
|
162
166
|
case "89504e47":
|
|
163
167
|
return "image/png";
|
|
164
168
|
case "47494638":
|
|
@@ -170,109 +174,109 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
170
174
|
case "ffd8ffe8":
|
|
171
175
|
return U.value;
|
|
172
176
|
default:
|
|
173
|
-
return
|
|
177
|
+
return t;
|
|
174
178
|
}
|
|
175
179
|
}
|
|
176
180
|
return null;
|
|
177
181
|
}, le = (e) => {
|
|
178
|
-
const
|
|
179
|
-
return window.URL.createObjectURL(
|
|
180
|
-
},
|
|
181
|
-
const o = await fetch(e).then((
|
|
182
|
-
return new File([o],
|
|
183
|
-
},
|
|
182
|
+
const t = He(e.split(",")[1], U.value);
|
|
183
|
+
return window.URL.createObjectURL(t);
|
|
184
|
+
}, ye = async (e, t) => {
|
|
185
|
+
const o = await fetch(e).then((l) => l.blob());
|
|
186
|
+
return new File([o], t, { type: U.value });
|
|
187
|
+
}, we = async () => {
|
|
184
188
|
const e = p.value ?? 0;
|
|
185
189
|
try {
|
|
186
|
-
await
|
|
187
|
-
} catch (
|
|
188
|
-
console.error(
|
|
190
|
+
await he(e);
|
|
191
|
+
} catch (t) {
|
|
192
|
+
console.error(t);
|
|
189
193
|
}
|
|
190
|
-
|
|
191
|
-
},
|
|
194
|
+
oe();
|
|
195
|
+
}, oe = () => {
|
|
192
196
|
var e;
|
|
193
|
-
g.value = !1, (e =
|
|
194
|
-
},
|
|
197
|
+
g.value = !1, (e = D.value) == null || e.call(D), D.value = void 0;
|
|
198
|
+
}, he = async (e) => {
|
|
195
199
|
if (J.value) {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const o =
|
|
199
|
-
await
|
|
200
|
+
const t = J.value.getResult();
|
|
201
|
+
if (t.canvas) {
|
|
202
|
+
const o = t.canvas.toDataURL(U.value);
|
|
203
|
+
await Ie(o, e);
|
|
200
204
|
}
|
|
201
205
|
}
|
|
202
|
-
},
|
|
206
|
+
}, Ie = async (e, t) => {
|
|
203
207
|
try {
|
|
204
208
|
f.value = document.createElement("canvas");
|
|
205
|
-
const o = f.value.getContext("2d"),
|
|
206
|
-
|
|
207
|
-
const
|
|
208
|
-
f.value.setAttribute("width", i.toString()), f.value.setAttribute("height",
|
|
209
|
-
const
|
|
209
|
+
const o = f.value.getContext("2d"), l = new Image();
|
|
210
|
+
l.src = e, await l.decode();
|
|
211
|
+
const u = 80 / 100, i = l.width * u, L = l.height * u;
|
|
212
|
+
f.value.setAttribute("width", i.toString()), f.value.setAttribute("height", L.toString()), o && o.drawImage(l, 0, 0, i, L);
|
|
213
|
+
const F = f.value.toDataURL(U.value, 0.95), x = Date.now() + `.${a.fileType}`, v = {
|
|
210
214
|
canvas: f.value,
|
|
211
215
|
compressed: {
|
|
212
|
-
blob: le(
|
|
213
|
-
base64:
|
|
214
|
-
fileName:
|
|
215
|
-
file: await
|
|
216
|
+
blob: le(F),
|
|
217
|
+
base64: F,
|
|
218
|
+
fileName: x,
|
|
219
|
+
file: await ye(le(F), x),
|
|
216
220
|
size: "",
|
|
217
221
|
type: U.value
|
|
218
222
|
},
|
|
219
223
|
message: "File has been compressed."
|
|
220
224
|
};
|
|
221
|
-
v.compressed.size = Math.round(v.compressed.file.size / 1e3) + "KB", r.value[
|
|
225
|
+
v.compressed.size = Math.round(v.compressed.file.size / 1e3) + "KB", r.value[t] = v.compressed.blob, a.multiple ? s.value && Array.isArray(s.value) ? s.value[t] = v.compressed.file : s.value = [v.compressed.file] : s.value = v.compressed.file, b("apply", v);
|
|
222
226
|
} catch (o) {
|
|
223
227
|
console.error(o);
|
|
224
228
|
}
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
},
|
|
229
|
+
}, S = (e) => {
|
|
230
|
+
n.value[e].src && URL.revokeObjectURL(n.value[e].src);
|
|
231
|
+
}, Ce = (e) => {
|
|
228
232
|
a.confirmOnDelete ? Q.value[e] = !0 : a.emitDeleteFn ? b("delete", Y, e) : Y(e);
|
|
229
233
|
}, Y = (e = 0) => {
|
|
230
|
-
M.value = !1, y.value = void 0, r.value = r.value.toSpliced(e, 1),
|
|
231
|
-
},
|
|
234
|
+
M.value = !1, y.value = void 0, r.value = r.value.toSpliced(e, 1), S(e), n.value[e] = { src: null, type: null }, n.value = [n.value[+!e], n.value[e]], p.value = 0, q.value = 0, a.confirmOnDelete || b("delete"), a.multiple && Array.isArray(s.value) ? s.value = s.value.toSpliced(e, 1) : s.handleReset && s.handleReset();
|
|
235
|
+
}, Be = (e) => {
|
|
232
236
|
var o;
|
|
233
|
-
const
|
|
234
|
-
p.value = e,
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
},
|
|
238
|
-
return
|
|
237
|
+
const t = (o = r.value[e]) == null ? void 0 : o.toString();
|
|
238
|
+
p.value = e, t != null && t.includes("blob") ? (p.value = e, g.value = !0) : (te(e), $());
|
|
239
|
+
}, Pe = () => {
|
|
240
|
+
$();
|
|
241
|
+
}, re = ne(() => navigator.userAgent.includes("Firefox"));
|
|
242
|
+
return K(y, (e) => {
|
|
239
243
|
e && s.setErrors && s.setErrors(e);
|
|
240
|
-
}),
|
|
241
|
-
e ||
|
|
242
|
-
}),
|
|
244
|
+
}), K(g, (e) => {
|
|
245
|
+
e || ae.value++;
|
|
246
|
+
}), K(
|
|
243
247
|
() => a.initialName,
|
|
244
248
|
() => {
|
|
245
249
|
A();
|
|
246
250
|
}
|
|
247
|
-
),
|
|
251
|
+
), K(
|
|
248
252
|
() => a.imagePreviewUrl,
|
|
249
253
|
() => {
|
|
250
254
|
A();
|
|
251
255
|
},
|
|
252
256
|
{ once: !0 }
|
|
253
|
-
),
|
|
254
|
-
|
|
255
|
-
class:
|
|
257
|
+
), N({ assignPreviewImagesFromProp: A }), (e, t) => (c(), B(Z, null, [
|
|
258
|
+
m(Ee, {
|
|
259
|
+
class: P([{ "!w-max": !a.multiple, "!w-full": a.multiple }]),
|
|
256
260
|
info: a.fieldInfo,
|
|
257
261
|
label: a.label,
|
|
258
262
|
mandatory: a.mandatory,
|
|
259
263
|
"data-wv-name": "image-compressor",
|
|
260
264
|
"data-wv-section": "root"
|
|
261
265
|
}, {
|
|
262
|
-
default:
|
|
266
|
+
default: G(() => [
|
|
263
267
|
j("div", {
|
|
264
|
-
class:
|
|
268
|
+
class: P(["w-full", { "grid gap-6 items-start grid-cols-2": e.multiple }]),
|
|
265
269
|
"data-wv-section": "wrapper"
|
|
266
270
|
}, [
|
|
267
|
-
r.value.length ? (
|
|
268
|
-
var
|
|
269
|
-
return
|
|
270
|
-
key:
|
|
271
|
+
r.value.length ? (c(!0), B(Z, { key: 0 }, Re(r.value, (o, l) => {
|
|
272
|
+
var u;
|
|
273
|
+
return c(), B("div", {
|
|
274
|
+
key: l,
|
|
271
275
|
class: "flex gap-1 items-start",
|
|
272
276
|
"data-wv-section": "preview"
|
|
273
277
|
}, [
|
|
274
278
|
j("div", {
|
|
275
|
-
class:
|
|
279
|
+
class: P([
|
|
276
280
|
"flex flex-col gap-1 items-center",
|
|
277
281
|
{ "max-w-[80px]": e.imagePreviewSize === "medium" },
|
|
278
282
|
{ "max-w-[125px]": e.imagePreviewSize === "big" }
|
|
@@ -280,9 +284,9 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
280
284
|
"data-wv-section": "preview-image-wrapper"
|
|
281
285
|
}, [
|
|
282
286
|
j("div", {
|
|
283
|
-
class:
|
|
287
|
+
class: P([
|
|
284
288
|
{
|
|
285
|
-
"[&>span]:hover:opacity-30 [&>[data-wv-section=input-image-trigger]]:hover:opacity-100": X(
|
|
289
|
+
"[&>span]:hover:opacity-30 [&>[data-wv-section=input-image-trigger]]:hover:opacity-100": X(l)
|
|
286
290
|
},
|
|
287
291
|
"relative",
|
|
288
292
|
{
|
|
@@ -293,24 +297,24 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
293
297
|
]),
|
|
294
298
|
"data-wv-section": "image-wrapper"
|
|
295
299
|
}, [
|
|
296
|
-
|
|
300
|
+
m(_e, {
|
|
297
301
|
rounded: e.rounded,
|
|
298
302
|
size: e.imagePreviewSize,
|
|
299
303
|
src: o,
|
|
300
304
|
class: "transition-opacity duration-300",
|
|
301
305
|
"data-wv-section": "preview-image"
|
|
302
306
|
}, null, 8, ["rounded", "size", "src"]),
|
|
303
|
-
X(
|
|
307
|
+
X(l) ? (c(), B("button", {
|
|
304
308
|
key: 0,
|
|
305
|
-
class:
|
|
306
|
-
(
|
|
309
|
+
class: P([
|
|
310
|
+
(u = h(R)) == null ? void 0 : u.button.class,
|
|
307
311
|
"hover:bg-opacity-0 rounded-lg opacity-0"
|
|
308
312
|
]),
|
|
309
|
-
onClick:
|
|
313
|
+
onClick: t[0] || (t[0] = (i) => $(!1)),
|
|
310
314
|
"data-wv-section": "input-image-trigger",
|
|
311
315
|
type: "button"
|
|
312
316
|
}, [
|
|
313
|
-
|
|
317
|
+
m(ue, {
|
|
314
318
|
class: "w-6 h-6",
|
|
315
319
|
"data-wv-section": "trigger-icon",
|
|
316
320
|
icon: "image-add",
|
|
@@ -318,24 +322,24 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
318
322
|
})
|
|
319
323
|
], 2)) : k("", !0)
|
|
320
324
|
], 2),
|
|
321
|
-
!a.disabled && !X(
|
|
325
|
+
!a.disabled && !X(l) ? (c(), B(Z, { key: 0 }, [
|
|
322
326
|
j("div", {
|
|
323
|
-
class:
|
|
327
|
+
class: P([
|
|
324
328
|
"flex gap-0.5 justify-center",
|
|
325
329
|
{ "scale-75": e.imagePreviewSize === "medium" }
|
|
326
330
|
]),
|
|
327
331
|
"data-wv-section": "preview-buttons"
|
|
328
332
|
}, [
|
|
329
|
-
|
|
330
|
-
onClick: (i) =>
|
|
333
|
+
m(_, {
|
|
334
|
+
onClick: (i) => Be(l),
|
|
331
335
|
class: "!py-0 !px-1 !h-max",
|
|
332
336
|
icon: "pencil",
|
|
333
337
|
label: "Edit",
|
|
334
338
|
text: ""
|
|
335
339
|
}, null, 8, ["onClick"]),
|
|
336
|
-
e.useDeleteButton ? (
|
|
340
|
+
e.useDeleteButton ? (c(), O(_, {
|
|
337
341
|
key: 0,
|
|
338
|
-
onClick: (i) =>
|
|
342
|
+
onClick: (i) => Ce(l),
|
|
339
343
|
class: "!py-0 !px-1 !h-max",
|
|
340
344
|
icon: "delete-bin",
|
|
341
345
|
label: "Delete",
|
|
@@ -343,11 +347,11 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
343
347
|
text: ""
|
|
344
348
|
}, null, 8, ["onClick"])) : k("", !0)
|
|
345
349
|
], 2),
|
|
346
|
-
|
|
347
|
-
visible: Q.value[
|
|
348
|
-
"onUpdate:visible": (i) => Q.value[
|
|
350
|
+
m(Ve, {
|
|
351
|
+
visible: Q.value[l],
|
|
352
|
+
"onUpdate:visible": (i) => Q.value[l] = i,
|
|
349
353
|
closable: !1,
|
|
350
|
-
onConfirm: (i) => b("delete", Y,
|
|
354
|
+
onConfirm: (i) => b("delete", Y, l),
|
|
351
355
|
body: "Are you sure you want to delete it?",
|
|
352
356
|
"confirm-label": "Delete",
|
|
353
357
|
header: "Delete Photo",
|
|
@@ -355,28 +359,28 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
355
359
|
}, null, 8, ["visible", "onUpdate:visible", "onConfirm"])
|
|
356
360
|
], 64)) : k("", !0)
|
|
357
361
|
], 2),
|
|
358
|
-
|
|
362
|
+
m(ce, {
|
|
359
363
|
"custom-requirements": e.customRequirements,
|
|
360
364
|
"show-add-button": r.value.length === 1 && a.multiple,
|
|
361
365
|
"show-info": e.showInfo,
|
|
362
|
-
onAddPhoto:
|
|
366
|
+
onAddPhoto: t[2] || (t[2] = (i) => $(!0))
|
|
363
367
|
}, {
|
|
364
|
-
default:
|
|
365
|
-
r.value.length === 2 && a.multiple ? (
|
|
368
|
+
default: G(() => [
|
|
369
|
+
r.value.length === 2 && a.multiple ? (c(), O(h(Le), {
|
|
366
370
|
key: 0,
|
|
367
|
-
modelValue:
|
|
368
|
-
"onUpdate:modelValue":
|
|
369
|
-
"label-id": "default-" +
|
|
370
|
-
value:
|
|
371
|
+
modelValue: q.value,
|
|
372
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => q.value = i),
|
|
373
|
+
"label-id": "default-" + l,
|
|
374
|
+
value: l,
|
|
371
375
|
label: "Set as default"
|
|
372
376
|
}, null, 8, ["modelValue", "label-id", "value"])) : k("", !0)
|
|
373
377
|
]),
|
|
374
378
|
_: 2
|
|
375
379
|
}, 1032, ["custom-requirements", "show-add-button", "show-info"])
|
|
376
380
|
]);
|
|
377
|
-
}), 128)) : (
|
|
381
|
+
}), 128)) : (c(), B("div", We, [
|
|
378
382
|
j("button", {
|
|
379
|
-
class:
|
|
383
|
+
class: P([
|
|
380
384
|
{
|
|
381
385
|
"w-[125px] h-[125px]": e.imagePreviewSize === "big",
|
|
382
386
|
"w-[30px] h-[30px]": e.imagePreviewSize === "small",
|
|
@@ -386,8 +390,8 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
386
390
|
"ring-inset",
|
|
387
391
|
"cursor-pointer",
|
|
388
392
|
{
|
|
389
|
-
"ring-1":
|
|
390
|
-
"ring-[0.5px]": !
|
|
393
|
+
"ring-1": re.value,
|
|
394
|
+
"ring-[0.5px]": !re.value
|
|
391
395
|
},
|
|
392
396
|
{ "rounded-full": e.rounded, "rounded-lg": !e.rounded },
|
|
393
397
|
{
|
|
@@ -399,103 +403,107 @@ const Ge = /* @__PURE__ */ xe(Ke), He = {
|
|
|
399
403
|
"bg-general-50": a.disabled
|
|
400
404
|
}
|
|
401
405
|
]),
|
|
402
|
-
onClick:
|
|
406
|
+
onClick: t[3] || (t[3] = (o) => $(!1)),
|
|
403
407
|
"data-wv-section": "input-image-trigger",
|
|
404
408
|
type: "button"
|
|
405
409
|
}, [
|
|
406
|
-
|
|
410
|
+
m(ue, {
|
|
407
411
|
class: "w-6 h-6",
|
|
408
412
|
"data-wv-section": "trigger-icon",
|
|
409
413
|
icon: "image-add",
|
|
410
414
|
severity: "primary"
|
|
411
415
|
})
|
|
412
416
|
], 2),
|
|
413
|
-
|
|
417
|
+
m(ce, {
|
|
414
418
|
"custom-requirements": e.customRequirements,
|
|
415
419
|
"show-info": e.showInfo
|
|
416
420
|
}, null, 8, ["custom-requirements", "show-info"])
|
|
417
421
|
]))
|
|
418
422
|
], 2),
|
|
419
|
-
(
|
|
423
|
+
(c(), B("input", {
|
|
420
424
|
id: e.fieldName,
|
|
421
|
-
key:
|
|
425
|
+
key: ae.value,
|
|
422
426
|
ref_key: "inputImageFile",
|
|
423
|
-
ref:
|
|
427
|
+
ref: E,
|
|
424
428
|
multiple: a.multiple && !r.value.length,
|
|
425
|
-
onChange:
|
|
429
|
+
onChange: ve,
|
|
426
430
|
accept: "image/*",
|
|
427
431
|
class: "hidden",
|
|
428
432
|
"data-wv-section": "hidden-image-input",
|
|
429
433
|
type: "file"
|
|
430
|
-
}, null, 40,
|
|
431
|
-
e.showValidatorMessage ? (
|
|
434
|
+
}, null, 40, Je)),
|
|
435
|
+
e.showValidatorMessage ? (c(), O(qe, {
|
|
432
436
|
key: 0,
|
|
433
437
|
format: !1,
|
|
434
438
|
message: s.errorMessage ?? y.value
|
|
435
439
|
}, null, 8, ["message"])) : k("", !0),
|
|
436
|
-
a.multiple ? (
|
|
440
|
+
a.multiple ? (c(), O(me, {
|
|
437
441
|
key: 1,
|
|
438
|
-
value:
|
|
442
|
+
value: q.value ? "secondImage" : "firstImage",
|
|
439
443
|
"field-name": "defaultImage"
|
|
440
444
|
}, null, 8, ["value"])) : k("", !0)
|
|
441
445
|
]),
|
|
442
446
|
_: 1
|
|
443
447
|
}, 8, ["class", "info", "label", "mandatory"]),
|
|
444
|
-
|
|
448
|
+
m(Ne, {
|
|
445
449
|
visible: g.value,
|
|
446
|
-
"onUpdate:visible":
|
|
450
|
+
"onUpdate:visible": t[4] || (t[4] = (o) => g.value = o),
|
|
447
451
|
draggable: !1,
|
|
448
|
-
header:
|
|
452
|
+
header: h(I).cropDialogHeader,
|
|
449
453
|
class: "w-max max-w-[98vw] min-w-[min(500px,98vw)] !max-h-[94vh]",
|
|
450
454
|
"content-class": "overflow-hidden overflow-y-auto min-h-[100px]",
|
|
451
455
|
"data-wv-section": "dialog-cropper",
|
|
452
456
|
"footer-class": "!gap-1",
|
|
453
457
|
modal: ""
|
|
454
458
|
}, {
|
|
455
|
-
footer:
|
|
456
|
-
|
|
457
|
-
label:
|
|
458
|
-
onClick:
|
|
459
|
+
footer: G(() => [
|
|
460
|
+
m(_, {
|
|
461
|
+
label: h(I).cancelCropLabel,
|
|
462
|
+
onClick: oe,
|
|
459
463
|
"data-wv-section": "cancel-crop",
|
|
460
464
|
severity: "secondary",
|
|
461
465
|
text: "",
|
|
462
466
|
type: "button"
|
|
463
467
|
}, null, 8, ["label"]),
|
|
464
|
-
|
|
465
|
-
label:
|
|
466
|
-
onClick:
|
|
468
|
+
m(_, {
|
|
469
|
+
label: h(I).changeImageLabel,
|
|
470
|
+
onClick: Pe,
|
|
467
471
|
"data-wv-section": "change-image-button",
|
|
468
472
|
text: "",
|
|
469
473
|
type: "button"
|
|
470
474
|
}, null, 8, ["label"]),
|
|
471
|
-
|
|
472
|
-
label:
|
|
473
|
-
onClick:
|
|
475
|
+
m(_, {
|
|
476
|
+
label: h(I).applyCropLabel,
|
|
477
|
+
onClick: we,
|
|
474
478
|
"data-wv-section": "apply-image-button",
|
|
475
479
|
severity: "success",
|
|
476
480
|
type: "button"
|
|
477
481
|
}, null, 8, ["label"])
|
|
478
482
|
]),
|
|
479
|
-
default:
|
|
480
|
-
p.value != null ? (
|
|
483
|
+
default: G(() => [
|
|
484
|
+
p.value != null ? (c(), O(h($e), {
|
|
481
485
|
key: 0,
|
|
482
486
|
ref_key: "vueAdvanceCropper",
|
|
483
487
|
ref: J,
|
|
484
488
|
"auto-zoom": !1,
|
|
485
|
-
"background-wrapper-component":
|
|
486
|
-
src:
|
|
489
|
+
"background-wrapper-component": h(H),
|
|
490
|
+
src: n.value[p.value].src,
|
|
487
491
|
class: "upload-example-cropper h-400",
|
|
488
492
|
"foreground-class": "h-400",
|
|
489
493
|
"image-class": "h-400"
|
|
490
|
-
}, null, 8, ["src"])) : k("", !0)
|
|
494
|
+
}, null, 8, ["background-wrapper-component", "src"])) : k("", !0)
|
|
491
495
|
]),
|
|
492
496
|
_: 1
|
|
493
497
|
}, 8, ["visible", "header"])
|
|
494
498
|
], 64));
|
|
495
499
|
}
|
|
496
|
-
})
|
|
500
|
+
}), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
501
|
+
__proto__: null,
|
|
502
|
+
default: Qe
|
|
503
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
497
504
|
export {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
xe as
|
|
505
|
+
da as I,
|
|
506
|
+
pa as a,
|
|
507
|
+
xe as c,
|
|
508
|
+
Ke as g
|
|
501
509
|
};
|