@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js","../../vendor/vee-validate-Cc_B-qII.system.js","../../async-components/index-DvjqHrYE.system.js","../../event-bus/index-CykcrsqY.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../../utils/object.util-uApor4uP.system.js","./helpers/applyFilter.helper-Ci22FrPF.system.js","../button/Button-D892iaxz.system.js"],function(ne,me){"use strict";var N,m,y,B,C,E,V,h,l,i,P,o,j,k,x,u,R,v,T,D,O,A,L,W,U,q,f,I,K,G,J,Q,S;return{setters:[t=>{N=t.defineComponent,m=t.ref,y=t.shallowRef,B=t.onMounted,C=t.onBeforeUnmount,E=t.watch,V=t.withDirectives,h=t.createElementBlock,l=t.openBlock,i=t.mergeProps,P=t.withModifiers,o=t.unref,j=t.createElementVNode,k=t.Fragment,x=t.renderList,u=t.createBlock,R=t.renderSlot,v=t.createVNode,T=t.vShow,D=t.withCtx},t=>{O=t.default},t=>{A=t.a},t=>{L=t.e,W=t.f,U=t.g,q=t.h},t=>{f=t.e},t=>{I=t.u},t=>{K=t.s,G=t.g},t=>{J=t.a,Q=t.b},t=>{S=t._}],execute:function(){const t={class:"flex items-end justify-end gap-2","data-wv-section":"filteractionbuttons"},se=N({inheritAttrs:!1,__name:"FilterContainer",props:{tableName:{default:"datatable"},fieldsPerRow:{default:4},fields:{},static:{type:Boolean}},emits:["apply"],setup(Z,{emit:b}){const s=Z,c=b,{locale:w}=I("FilterContainer"),{resetForm:oe,handleSubmit:re,setValues:le}=A(),g=m({}),F=m({}),$=y(),_=m(null),z=y(!1),H=y(0);B(()=>{te(),f.on("show-filter",X),f.on("data-table:updated",Y),de()}),C(()=>{f.off("show-filter",X),f.off("data-table:updated",Y)});const X=a=>{a.tableName===s.tableName&&(z.value=a.show)},Y=a=>{a.tableName===s.tableName&&($.value=a.data)},ee=async(a,n,e={})=>{if(s.static&&!a)F.value[n]=ie(n);else try{g.value[n]=!0;const r={[n]:!0,...e},d=await(a==null?void 0:a(r));d&&(F.value[n]=d)}catch(r){console.error(r)}finally{g.value[n]=!1}},ie=a=>{const n=new Set;if($.value)for(let e=0;e<$.value.length;e++){const r=G($.value[e],a);n.add(r)}return Array.from(n).map(e=>({label:e,value:e}))},te=()=>{if(_.value){const{children:a}=_.value,n=_.value.childElementCount,e=n%s.fieldsPerRow;let[r,d]=[1,1];for(const ae in Array.from({length:n})){const fe=Number(ae)===n-1;a[ae].setAttribute("style",`grid-area: ${r}/${fe&&e?s.fieldsPerRow:d}`),++d>s.fieldsPerRow&&(d=1,r++)}}},ce=()=>{oe(),H.value++},M=re(a=>{s.static?J(a,s.tableName,s.fields,c):Q(a,s.tableName,c)}),ue=(a,n)=>{var e;switch(a.type){case"rangenumber":return a.field?`${a.field}.matchMode`:`${(e=a.fields)==null?void 0:e[n]}.matchMode`;case"multiselect":case"dropdown":case"calendar":case"category":case"group":return`${a.field}.matchMode`}},pe=a=>(()=>{switch(a.type){case"rangenumber":return"BETWEEN";case"multiselect":case"category":case"group":return"IN";case"dropdown":return"EQUALS";case"calendar":return"DATE_BETWEEN"}})(),de=()=>{if(s.static){const a={};s.fields.forEach(n=>{K(a,ue(n),pe(n))}),le(a)}},p=(a,n)=>{switch(a.type){case"rangenumber":return a.field?s.static?`${a.field}.value.${n}`:`${a.field}`:s.static?`${a.fields[n]}.value`:a.fields[n];case"multiselect":case"dropdown":case"calendar":case"category":case"group":return s.static?`${a.field}.value`:`${a.field}`}};return E(()=>s.fields,te),(a,n)=>V((l(),h("form",i({ref_key:"container",ref:_},a.$preset.filtercontainer.root,{style:`grid-template-columns: repeat(${a.fieldsPerRow}, 1fr)`,onSubmit:n[0]||(n[0]=P((...e)=>o(M)&&o(M)(...e),["prevent"])),"data-wv-name":"filtercontainer"}),[(l(!0),h(k,null,x(a.fields,e=>(l(),h(k,{key:JSON.stringify(e)+H.value},[e.type=="rangenumber"?(l(),u(o(L),i({key:0,ref_for:!0},e,{mandatory:!1,"max-field-name":p(e,1),"min-field-name":p(e,0),"show-optional-text":!1,"use-validator":""}),null,16,["max-field-name","min-field-name"])):e.type=="multiselect"?(l(),u(o(W),i({key:1,ref_for:!0},e,{"field-name":p(e),loading:g.value[e.optionField??e.field],mandatory:!1,options:F.value[e.optionField??e.field],"show-optional-text":!1,onShow:r=>ee(e.fetchOptionFn,e.optionField??e.field,e.params),"option-label":"label","option-value":"value","use-validator":""}),null,16,["field-name","loading","options","onShow"])):e.type=="dropdown"?(l(),u(o(U),i({key:2,ref_for:!0},e,{"field-name":p(e),loading:g.value[e.field],mandatory:!1,options:F.value[e.optionField??e.field],"show-optional-text":!1,onShow:r=>ee(e.fetchOptionFn,e.optionField??e.field,e.params),"option-label":"label","option-value":"value","use-validator":""}),null,16,["field-name","loading","options","onShow"])):e.type==="calendar"?(l(),u(o(q),i({key:3,ref_for:!0},e,{"field-name":p(e),mandatory:!1,"show-optional-text":!1,"selection-mode":"range","use-validator":""}),null,16,["field-name"])):R(a.$slots,"field",{key:4,field:e,fieldName:p(e)})],64))),128)),j("div",t,[v(S,{label:o(w).clearFieldText,onClick:ce,"data-wv-section":"clearbutton",text:""},null,8,["label"]),v(S,{label:o(w).applyText,onClick:o(M),"data-wv-section":"applybutton",severity:"success"},null,8,["label","onClick"])])],16)),[[T,z.value]])}}),ye=ne("_",N({__name:"FilterContainer",setup(Z){return(b,s)=>(l(),u(se,i({fields:b.$attrs.fields},b.$attrs),{field:D(({field:c,fieldName:w})=>[v(O,i(c,{"field-data-key":c.fieldDataKey??"key","field-label":c.label,"field-name":w,label:c.buttonLabel,mandatory:!1,params:c.params,"show-optional-text":!1,"use-validator":""}),null,16,["field-data-key","field-label","field-name","label","params"])]),_:1},16,["fields"]))}}))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["../../../event-bus/index-CykcrsqY.system.js","../../../utils/object.util-uApor4uP.system.js"],function(u,d){"use strict";var n,p;return{setters:[o=>{n=o.e},o=>{p=o.g}],execute:function(){const o=e=>{if(Array.isArray(e)){const[i,l]=e;return[new Date(i).setHours(0,0,0),new Date(l??i).setHours(23,59,59)]}},h=u("b",(e,i,l)=>{const y=Object.keys(e),a={};n.emit("multi-select:hide-overlay"),y.forEach(t=>{var f;const r=Array.isArray(e[t]),A=typeof e[t]=="string",s=r?(f=e[t])==null?void 0:f.filter(g=>g!=null):e[t];if((s!=null&&!r||r&&s.length)&&!A){if(Array.isArray(s)&&s.every(c=>typeof c=="number"&&c>9466848e5&&!isNaN(new Date(c).getTime()))){a[t]=JSON.stringify(o(s));return}a[t]=s!=null&&s.length?JSON.stringify(e[t]):JSON.stringify(s)}else a[t]=e[t]}),n.emit("data-table:apply-filter",{tableName:i,filter:a}),n.emit("data-table:clear-selected-data",{tableName:i}),l==null||l("apply",a)}),m=u("a",(e,i,l,y)=>{const a={};n.emit("multi-select:hide-overlay"),l.forEach(t=>{if("field"in t){const r=p(e,t.field);"value"in r&&r.value!=null&&(a[t.field]=r,"matchMode"in r&&r.matchMode=="DATE_BETWEEN"&&(a[t.field].value=o(r.value)),Array.isArray(r.value)&&!r.value.filter(Boolean).length&&delete a[t.field])}}),n.emit("data-table:apply-filter",{tableName:i,filter:a}),n.emit("data-table:clear-selected-data",{tableName:i}),y==null||y("apply",a)})}}});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { e as n } from "../../../event-bus/index-PQwO5T6B.es.js";
|
|
2
|
+
import { g } from "../../../utils/object.util-6veM2gu5.es.js";
|
|
3
|
+
const f = (e) => {
|
|
4
|
+
if (Array.isArray(e)) {
|
|
5
|
+
const [s, l] = e;
|
|
6
|
+
return [
|
|
7
|
+
new Date(s).setHours(0, 0, 0),
|
|
8
|
+
new Date(l ?? s).setHours(23, 59, 59)
|
|
9
|
+
];
|
|
10
|
+
}
|
|
11
|
+
}, d = (e, s, l) => {
|
|
12
|
+
const o = Object.keys(e), a = {};
|
|
13
|
+
n.emit("multi-select:hide-overlay"), o.forEach((t) => {
|
|
14
|
+
var c;
|
|
15
|
+
const r = Array.isArray(e[t]), A = typeof e[t] == "string", i = r ? (c = e[t]) == null ? void 0 : c.filter((p) => p != null) : e[t];
|
|
16
|
+
if ((i != null && !r || r && i.length) && !A) {
|
|
17
|
+
if (Array.isArray(i) && i.every(
|
|
18
|
+
(y) => typeof y == "number" && y > 9466848e5 && // Greater than 2000-01-01 00:00:00 UTC (milliseconds)
|
|
19
|
+
!isNaN(new Date(y).getTime())
|
|
20
|
+
// Converts to a valid date
|
|
21
|
+
)) {
|
|
22
|
+
a[t] = JSON.stringify(
|
|
23
|
+
// Adjust the end range time to 23.59.59 and the start to 00.00.00 to fix filtering issue when user only select a date
|
|
24
|
+
f(i)
|
|
25
|
+
);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
a[t] = i != null && i.length ? JSON.stringify(e[t]) : JSON.stringify(i);
|
|
29
|
+
} else
|
|
30
|
+
a[t] = e[t];
|
|
31
|
+
}), n.emit("data-table:apply-filter", {
|
|
32
|
+
tableName: s,
|
|
33
|
+
filter: a
|
|
34
|
+
}), n.emit("data-table:clear-selected-data", {
|
|
35
|
+
tableName: s
|
|
36
|
+
}), l == null || l("apply", a);
|
|
37
|
+
}, m = (e, s, l, o) => {
|
|
38
|
+
const a = {};
|
|
39
|
+
n.emit("multi-select:hide-overlay"), l.forEach((t) => {
|
|
40
|
+
if ("field" in t) {
|
|
41
|
+
const r = g(e, t.field);
|
|
42
|
+
"value" in r && r.value != null && (a[t.field] = r, "matchMode" in r && r.matchMode == "DATE_BETWEEN" && (a[t.field].value = f(
|
|
43
|
+
r.value
|
|
44
|
+
)), Array.isArray(r.value) && !r.value.filter(Boolean).length && delete a[t.field]);
|
|
45
|
+
}
|
|
46
|
+
}), n.emit("data-table:apply-filter", {
|
|
47
|
+
tableName: s,
|
|
48
|
+
filter: a
|
|
49
|
+
}), n.emit("data-table:clear-selected-data", {
|
|
50
|
+
tableName: s
|
|
51
|
+
}), o == null || o("apply", a);
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
m as a,
|
|
55
|
+
d as b
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../../vendor/vee-validate-Cc_B-qII.system.js","../../async-components/index-DvjqHrYE.system.js","../button/Button-D892iaxz.system.js","../validatormessage/ValidatorMessage-VVfyqlRF.system.js"],function(ce,ge){"use strict";var E,M,b,T,i,N,B,r,s,l,R,m,u,A,V,C,W,O,H,p,z,D,y,q;return{setters:[e=>{E=e.defineComponent,M=e.onMounted,b=e.ref,T=e.inject,i=e.shallowRef,N=e.provide,B=e.createElementBlock,r=e.openBlock,s=e.mergeProps,l=e.unref,R=e.withModifiers,m=e.createElementVNode,u=e.createCommentVNode,A=e.renderSlot,V=e.normalizeProps,C=e.createVNode,W=e.withDirectives,O=e.vShow,H=e.guardReactiveProps,p=e.createBlock},e=>{z=e.a},e=>{D=e.C},e=>{y=e._},e=>{q=e._}],execute:function(){const e=ce("default",E({__name:"Form",props:{buttonsTemplate:{},disableSubmit:{type:Boolean},cancelBtnLabel:{default:"Batal"},clearBtnLabel:{default:"Bersihkan Field"},columnPerRow:{},hideFooter:{type:Boolean},hideStayCheckbox:{type:Boolean},invalid:{type:Boolean},resetAfterSubmit:{type:Boolean,default:!0},saveBtnLabel:{default:"Simpan"},submitBtnLabel:{default:"Simpan"},stayCheckboxLabel:{default:"Tetap di halaman ini"},validatorMessage:{default:"Please input all required field!"},validateOnSave:{type:Boolean,default:!1},cancelBtnSeverity:{default:"secondary"},saveBtnSeverity:{default:"success"},submitBtnSeverity:{default:"success"}},emits:["cancel","clear","save","submit"],setup(fe,{expose:ve,emit:de}){const o=fe,g=de;M(()=>{if($.value){const t=o.columnPerRow??1;$.value.style.gridTemplateColumns=`repeat(${t}, minmax(0, 1fr))`,x()}});const n=T("preset",{}).form,{handleSubmit:be,values:w,resetForm:I,errors:me,resetField:pe,setValues:ye,setFieldValue:ke,setErrors:Se}=z(),k=i(!1),K=b(),c=i(!1),U=i(!1),F=i(0),L=b(),v=i(!1),P=i(!1),$=b(null),j=b(null);N("isSubmitting",v);const x=()=>{var t;if(L.value){const a=(t=L.value)==null?void 0:t.offsetHeight;j.value&&(j.value.style.height=`calc(100% + ${a+20}px)`)}},G=()=>{v.value=!0,U.value||(c.value=!0)},J=()=>{v.value=!0,P.value=!0,o.validateOnSave?(U.value||(c.value=!0),h()):Be()},h=be(t=>{if(!o.invalid){const a=X(t),f={stayAfterSubmit:k.value,formValues:a};P.value?g("save",f):g("submit",f),c.value=!1,P.value=!1,o.resetAfterSubmit&&(F.value+=1,I())}v.value=!1},()=>{v.value=!1}),Be=()=>{const t=X(w),a={stayAfterSubmit:k.value,formValues:t};g("save",a),v.value=!1},Q=()=>{I(),F.value++,g("clear"),c.value=!1},X=t=>{const a=t,f=Object.keys(a);for(const d of f)typeof a[d]=="string"&&(a[d]=a[d].trim());return a};return ve({stayAfterSubmit:k,submit:h,onSubmitClicked:G,onSaveClicked:J,showValidator:c,formElement:K,clearField:Q,resetField:pe,errors:me,setOuterFieldsWrapperHeight:x,setValues:ye,setFieldValue:ke,setErrors:Se,values:w}),(t,a)=>{var f,d,Y,Z,_,ee,te,ae,le,se,ne,oe,re,ie,ue;return r(),B("form",s({ref_key:"formElement",ref:K},(f=l(n))==null?void 0:f.root({props:o}),{onInput:a[2]||(a[2]=S=>c.value=!1),onSubmit:a[3]||(a[3]=R((...S)=>l(h)&&l(h)(...S),["prevent"]))}),[m("div",{ref_key:"outerFieldsWrapper",ref:j},[m("div",s({ref_key:"fieldsWrapper",ref:$},(d=l(n))==null?void 0:d["fields-wrapper"]),[A(t.$slots,"fields",{key:F.value,formValues:l(w)})],16)],512),t.hideFooter?u("",!0):(r(),B("div",s({key:0,ref_key:"footer",ref:L},(Y=l(n))==null?void 0:Y.footer),[t.hideStayCheckbox?u("",!0):(r(),B("div",V(s({key:0},(Z=l(n))==null?void 0:Z.staycheckbox)),[C(l(D),{modelValue:k.value,"onUpdate:modelValue":a[0]||(a[0]=S=>k.value=S),label:t.stayCheckboxLabel},null,8,["modelValue","label"])],16)),m("div",s({id:"footer-actions-wrapper"},(_=l(n))==null?void 0:_["action-buttons"]),[W(C(q,s((ee=l(n))==null?void 0:ee["validator-message"],{message:t.validatorMessage}),null,16,["message"]),[[O,c.value||o.invalid]]),m("div",V(H((te=l(n))==null?void 0:te["button-wrapper"])),[(ae=o.buttonsTemplate)!=null&&ae.includes("cancel")?(r(),p(y,s({key:0},(le=l(n))==null?void 0:le["cancel-button"],{label:t.cancelBtnLabel,severity:t.cancelBtnSeverity,onClick:a[1]||(a[1]=S=>t.$emit("cancel")),"data-test":"cancel-button",text:"",type:"button"}),null,16,["label","severity"])):u("",!0),(se=o.buttonsTemplate)!=null&&se.includes("clear")?(r(),p(y,s({key:1},(ne=l(n))==null?void 0:ne["clear-button"],{label:t.clearBtnLabel,onClick:Q,text:"",type:"button"}),null,16,["label"])):u("",!0),(oe=o.buttonsTemplate)!=null&&oe.includes("save")?(r(),p(y,s({key:2},(re=l(n))==null?void 0:re["save-button"],{label:t.saveBtnLabel,severity:t.saveBtnSeverity,onClick:J,outlined:"",type:"button"}),null,16,["label","severity"])):u("",!0),(ie=o.buttonsTemplate)!=null&&ie.includes("submit")?(r(),p(y,s({key:3},(ue=l(n))==null?void 0:ue["submit-button"],{disabled:t.disableSubmit,label:t.submitBtnLabel,severity:t.submitBtnSeverity,onClick:G,type:"submit"}),null,16,["disabled","label","severity"])):u("",!0)],16)],16)],16))],16)}}}))}}});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ne, onMounted as ie, ref as y, inject as ue, shallowRef as
|
|
1
|
+
import { defineComponent as ne, onMounted as ie, ref as y, inject as ue, shallowRef as d, provide as fe, createElementBlock as L, openBlock as i, mergeProps as o, unref as l, withModifiers as de, createElementVNode as k, createCommentVNode as m, renderSlot as me, normalizeProps as X, createVNode as Y, withDirectives as ve, vShow as ce, guardReactiveProps as be, createBlock as S } from "vue";
|
|
2
2
|
import { a as pe } from "../../vendor/vee-validate-RE5RuswC.es.js";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
3
|
+
import { C as ye } from "../../async-components/index-C8nb7p3T.es.js";
|
|
4
|
+
import { _ as B } from "../button/Button-CgkhMnxo.es.js";
|
|
5
5
|
import { _ as ke } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
|
|
6
|
-
const
|
|
6
|
+
const ge = /* @__PURE__ */ ne({
|
|
7
7
|
__name: "Form",
|
|
8
8
|
props: {
|
|
9
9
|
buttonsTemplate: {},
|
|
@@ -33,27 +33,27 @@ const Ce = /* @__PURE__ */ ne({
|
|
|
33
33
|
F.value.style.gridTemplateColumns = `repeat(${e}, minmax(0, 1fr))`, A();
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const
|
|
36
|
+
const a = ue("preset", {}).form, {
|
|
37
37
|
handleSubmit: ee,
|
|
38
|
-
values:
|
|
38
|
+
values: C,
|
|
39
39
|
resetForm: $,
|
|
40
40
|
errors: te,
|
|
41
|
-
resetField:
|
|
42
|
-
setValues:
|
|
41
|
+
resetField: le,
|
|
42
|
+
setValues: ae,
|
|
43
43
|
setFieldValue: se,
|
|
44
44
|
setErrors: oe
|
|
45
|
-
} = pe(), v =
|
|
45
|
+
} = pe(), v = d(!1), P = y(), r = d(!1), T = d(!1), h = d(0), V = y(), u = d(!1), g = d(!1), F = y(null), w = y(null);
|
|
46
46
|
fe("isSubmitting", u);
|
|
47
47
|
const A = () => {
|
|
48
48
|
var e;
|
|
49
|
-
if (
|
|
50
|
-
const t = (e =
|
|
49
|
+
if (V.value) {
|
|
50
|
+
const t = (e = V.value) == null ? void 0 : e.offsetHeight;
|
|
51
51
|
w.value && (w.value.style.height = `calc(100% + ${t + 20}px)`);
|
|
52
52
|
}
|
|
53
53
|
}, E = () => {
|
|
54
54
|
u.value = !0, T.value || (r.value = !0);
|
|
55
55
|
}, W = () => {
|
|
56
|
-
u.value = !0,
|
|
56
|
+
u.value = !0, g.value = !0, s.validateOnSave ? (T.value || (r.value = !0), p()) : re();
|
|
57
57
|
}, p = ee(
|
|
58
58
|
(e) => {
|
|
59
59
|
if (!s.invalid) {
|
|
@@ -61,7 +61,7 @@ const Ce = /* @__PURE__ */ ne({
|
|
|
61
61
|
stayAfterSubmit: v.value,
|
|
62
62
|
formValues: t
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
g.value ? b("save", n) : b("submit", n), r.value = !1, g.value = !1, s.resetAfterSubmit && (h.value += 1, $());
|
|
65
65
|
}
|
|
66
66
|
u.value = !1;
|
|
67
67
|
},
|
|
@@ -69,13 +69,13 @@ const Ce = /* @__PURE__ */ ne({
|
|
|
69
69
|
u.value = !1;
|
|
70
70
|
}
|
|
71
71
|
), re = () => {
|
|
72
|
-
const e = O(
|
|
72
|
+
const e = O(C), t = {
|
|
73
73
|
stayAfterSubmit: v.value,
|
|
74
74
|
formValues: e
|
|
75
75
|
};
|
|
76
76
|
b("save", t), u.value = !1;
|
|
77
77
|
}, M = () => {
|
|
78
|
-
$(),
|
|
78
|
+
$(), h.value++, b("clear"), r.value = !1;
|
|
79
79
|
}, O = (e) => {
|
|
80
80
|
const t = e, n = Object.keys(t);
|
|
81
81
|
for (const f of n)
|
|
@@ -90,23 +90,23 @@ const Ce = /* @__PURE__ */ ne({
|
|
|
90
90
|
showValidator: r,
|
|
91
91
|
formElement: P,
|
|
92
92
|
clearField: M,
|
|
93
|
-
resetField:
|
|
93
|
+
resetField: le,
|
|
94
94
|
errors: te,
|
|
95
95
|
setOuterFieldsWrapperHeight: A,
|
|
96
|
-
setValues:
|
|
96
|
+
setValues: ae,
|
|
97
97
|
setFieldValue: se,
|
|
98
98
|
setErrors: oe,
|
|
99
|
-
values:
|
|
99
|
+
values: C
|
|
100
100
|
}), (e, t) => {
|
|
101
101
|
var n, f, R, H, N, j, q, z, D, I, K, U, G, J, Q;
|
|
102
102
|
return i(), L("form", o({
|
|
103
103
|
ref_key: "formElement",
|
|
104
104
|
ref: P
|
|
105
|
-
}, (n = a
|
|
105
|
+
}, (n = l(a)) == null ? void 0 : n.root({ props: s }), {
|
|
106
106
|
onInput: t[2] || (t[2] = (c) => r.value = !1),
|
|
107
|
-
onSubmit: t[3] || (t[3] =
|
|
107
|
+
onSubmit: t[3] || (t[3] = de(
|
|
108
108
|
//@ts-ignore
|
|
109
|
-
(...c) =>
|
|
109
|
+
(...c) => l(p) && l(p)(...c),
|
|
110
110
|
["prevent"]
|
|
111
111
|
))
|
|
112
112
|
}), [
|
|
@@ -117,58 +117,58 @@ const Ce = /* @__PURE__ */ ne({
|
|
|
117
117
|
k("div", o({
|
|
118
118
|
ref_key: "fieldsWrapper",
|
|
119
119
|
ref: F
|
|
120
|
-
}, (f = a
|
|
121
|
-
|
|
122
|
-
key:
|
|
123
|
-
formValues:
|
|
120
|
+
}, (f = l(a)) == null ? void 0 : f["fields-wrapper"]), [
|
|
121
|
+
me(e.$slots, "fields", {
|
|
122
|
+
key: h.value,
|
|
123
|
+
formValues: l(C)
|
|
124
124
|
})
|
|
125
125
|
], 16)
|
|
126
126
|
], 512),
|
|
127
|
-
e.hideFooter ?
|
|
127
|
+
e.hideFooter ? m("", !0) : (i(), L("div", o({
|
|
128
128
|
key: 0,
|
|
129
129
|
ref_key: "footer",
|
|
130
|
-
ref:
|
|
131
|
-
}, (R = a
|
|
132
|
-
e.hideStayCheckbox ?
|
|
133
|
-
Y(ye, {
|
|
130
|
+
ref: V
|
|
131
|
+
}, (R = l(a)) == null ? void 0 : R.footer), [
|
|
132
|
+
e.hideStayCheckbox ? m("", !0) : (i(), L("div", X(o({ key: 0 }, (H = l(a)) == null ? void 0 : H.staycheckbox)), [
|
|
133
|
+
Y(l(ye), {
|
|
134
134
|
modelValue: v.value,
|
|
135
135
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => v.value = c),
|
|
136
136
|
label: e.stayCheckboxLabel
|
|
137
137
|
}, null, 8, ["modelValue", "label"])
|
|
138
138
|
], 16)),
|
|
139
|
-
k("div", o({ id: "footer-actions-wrapper" }, (N = a
|
|
140
|
-
ve(Y(ke, o((j = a
|
|
139
|
+
k("div", o({ id: "footer-actions-wrapper" }, (N = l(a)) == null ? void 0 : N["action-buttons"]), [
|
|
140
|
+
ve(Y(ke, o((j = l(a)) == null ? void 0 : j["validator-message"], { message: e.validatorMessage }), null, 16, ["message"]), [
|
|
141
141
|
[ce, r.value || s.invalid]
|
|
142
142
|
]),
|
|
143
|
-
k("div", X(be((q = a
|
|
144
|
-
(z = s.buttonsTemplate) != null && z.includes("cancel") ? (i(), S(B, o({ key: 0 }, (D = a
|
|
143
|
+
k("div", X(be((q = l(a)) == null ? void 0 : q["button-wrapper"])), [
|
|
144
|
+
(z = s.buttonsTemplate) != null && z.includes("cancel") ? (i(), S(B, o({ key: 0 }, (D = l(a)) == null ? void 0 : D["cancel-button"], {
|
|
145
145
|
label: e.cancelBtnLabel,
|
|
146
146
|
severity: e.cancelBtnSeverity,
|
|
147
147
|
onClick: t[1] || (t[1] = (c) => e.$emit("cancel")),
|
|
148
148
|
"data-test": "cancel-button",
|
|
149
149
|
text: "",
|
|
150
150
|
type: "button"
|
|
151
|
-
}), null, 16, ["label", "severity"])) :
|
|
152
|
-
(I = s.buttonsTemplate) != null && I.includes("clear") ? (i(), S(B, o({ key: 1 }, (K = a
|
|
151
|
+
}), null, 16, ["label", "severity"])) : m("", !0),
|
|
152
|
+
(I = s.buttonsTemplate) != null && I.includes("clear") ? (i(), S(B, o({ key: 1 }, (K = l(a)) == null ? void 0 : K["clear-button"], {
|
|
153
153
|
label: e.clearBtnLabel,
|
|
154
154
|
onClick: M,
|
|
155
155
|
text: "",
|
|
156
156
|
type: "button"
|
|
157
|
-
}), null, 16, ["label"])) :
|
|
158
|
-
(U = s.buttonsTemplate) != null && U.includes("save") ? (i(), S(B, o({ key: 2 }, (G = a
|
|
157
|
+
}), null, 16, ["label"])) : m("", !0),
|
|
158
|
+
(U = s.buttonsTemplate) != null && U.includes("save") ? (i(), S(B, o({ key: 2 }, (G = l(a)) == null ? void 0 : G["save-button"], {
|
|
159
159
|
label: e.saveBtnLabel,
|
|
160
160
|
severity: e.saveBtnSeverity,
|
|
161
161
|
onClick: W,
|
|
162
162
|
outlined: "",
|
|
163
163
|
type: "button"
|
|
164
|
-
}), null, 16, ["label", "severity"])) :
|
|
165
|
-
(J = s.buttonsTemplate) != null && J.includes("submit") ? (i(), S(B, o({ key: 3 }, (Q = a
|
|
164
|
+
}), null, 16, ["label", "severity"])) : m("", !0),
|
|
165
|
+
(J = s.buttonsTemplate) != null && J.includes("submit") ? (i(), S(B, o({ key: 3 }, (Q = l(a)) == null ? void 0 : Q["submit-button"], {
|
|
166
166
|
disabled: e.disableSubmit,
|
|
167
167
|
label: e.submitBtnLabel,
|
|
168
168
|
severity: e.submitBtnSeverity,
|
|
169
169
|
onClick: E,
|
|
170
170
|
type: "submit"
|
|
171
|
-
}), null, 16, ["disabled", "label", "severity"])) :
|
|
171
|
+
}), null, 16, ["disabled", "label", "severity"])) : m("", !0)
|
|
172
172
|
], 16)
|
|
173
173
|
], 16)
|
|
174
174
|
], 16))
|
|
@@ -177,5 +177,5 @@ const Ce = /* @__PURE__ */ ne({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
export {
|
|
180
|
-
|
|
180
|
+
ge as default
|
|
181
181
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { defineComponent as G, onMounted as K, shallowRef as u, computed as d, ref as X, watch as ee, createBlock as g, openBlock as m, createSlots as ae, withCtx as E, createCommentVNode as b, createVNode as R, createElementVNode as V, normalizeClass as M, createElementBlock as ne, Fragment as te, toDisplayString as se } from "vue";
|
|
2
|
-
import { u as le } from "
|
|
3
|
-
import { u as oe
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
|
|
2
|
+
import { u as le } from "../../utils/toast.util-C7p3h9XQ.es.js";
|
|
3
|
+
import { u as oe } from "./store/device.store-DpVE6Nhl.es.js";
|
|
4
|
+
import { g as re } from "../buttonscan/ButtonScan-mVHAdACL.es.js";
|
|
5
|
+
import { W as ie } from "../buttonscan/workers/scanner.worker-D3a72Zyk.es.js";
|
|
6
|
+
import { _ as C } from "../button/Button-CgkhMnxo.es.js";
|
|
7
|
+
import ce from "../dialog/Dialog-BCcbXSya.es.js";
|
|
8
|
+
import { _ as $ } from "../dropdown/Dropdown-Dk4urj-W.es.js";
|
|
9
|
+
import ue from "../icon/Icon-C4kXVcEX.es.js";
|
|
10
|
+
import { _ as ve } from "../inlinemessage/InlineMessage-BPJD82sq.es.js";
|
|
11
|
+
const Ne = /* @__PURE__ */ G({
|
|
10
12
|
__name: "HardwareSync",
|
|
11
13
|
props: {
|
|
12
14
|
visible: { type: Boolean },
|
|
@@ -22,7 +24,7 @@ const De = /* @__PURE__ */ G({
|
|
|
22
24
|
O();
|
|
23
25
|
});
|
|
24
26
|
const {
|
|
25
|
-
device:
|
|
27
|
+
device: _,
|
|
26
28
|
devices: I,
|
|
27
29
|
saveDevices: U,
|
|
28
30
|
setDevice: Q,
|
|
@@ -58,7 +60,7 @@ const De = /* @__PURE__ */ G({
|
|
|
58
60
|
);
|
|
59
61
|
l.value = e ? l.value : p.value[0] ?? i, r.value = a ? r.value : f.value[0] ?? i, N();
|
|
60
62
|
} catch (e) {
|
|
61
|
-
c.value = h(
|
|
63
|
+
c.value = h(re(e));
|
|
62
64
|
} finally {
|
|
63
65
|
v.value = !1;
|
|
64
66
|
}
|
|
@@ -98,9 +100,9 @@ const De = /* @__PURE__ */ G({
|
|
|
98
100
|
QR: r.value.device
|
|
99
101
|
});
|
|
100
102
|
}, O = () => {
|
|
101
|
-
z(),
|
|
102
|
-
label:
|
|
103
|
-
device:
|
|
103
|
+
z(), _.value.RFID ? l.value = {
|
|
104
|
+
label: _.value.RFID.name,
|
|
105
|
+
device: _.value.RFID
|
|
104
106
|
} : p.value.length && (l.value = p.value[0] ?? i), f.value.length && (r.value = f.value[0] ?? i), N();
|
|
105
107
|
}, F = () => {
|
|
106
108
|
k("update:visible", !1), k("scan");
|
|
@@ -119,7 +121,7 @@ const De = /* @__PURE__ */ G({
|
|
|
119
121
|
userId: (n = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : n._id
|
|
120
122
|
});
|
|
121
123
|
}, q = () => {
|
|
122
|
-
window.scannerWorker ?? (window.scannerWorker = new
|
|
124
|
+
window.scannerWorker ?? (window.scannerWorker = new ie());
|
|
123
125
|
};
|
|
124
126
|
return ee(
|
|
125
127
|
() => o.visible,
|
|
@@ -142,7 +144,7 @@ const De = /* @__PURE__ */ G({
|
|
|
142
144
|
modal: ""
|
|
143
145
|
}, ae({
|
|
144
146
|
footer: E(() => [
|
|
145
|
-
D.value ? (m(), g(
|
|
147
|
+
D.value ? (m(), g(C, {
|
|
146
148
|
key: 0,
|
|
147
149
|
onClick: e[2] || (e[2] = (a) => n.$emit("update:visible", !1)),
|
|
148
150
|
label: "Close",
|
|
@@ -150,13 +152,13 @@ const De = /* @__PURE__ */ G({
|
|
|
150
152
|
text: ""
|
|
151
153
|
})) : b("", !0),
|
|
152
154
|
w.value ? b("", !0) : (m(), ne(te, { key: 1 }, [
|
|
153
|
-
H.value && !o.withoutScanBtn ? (m(), g(
|
|
155
|
+
H.value && !o.withoutScanBtn ? (m(), g(C, {
|
|
154
156
|
key: 0,
|
|
155
157
|
onClick: F,
|
|
156
158
|
icon: "rfid",
|
|
157
159
|
label: "Scan RFID"
|
|
158
160
|
})) : b("", !0),
|
|
159
|
-
Y.value && !o.withoutScanBtn ? (m(), g(
|
|
161
|
+
Y.value && !o.withoutScanBtn ? (m(), g(C, {
|
|
160
162
|
key: 1,
|
|
161
163
|
onClick: F,
|
|
162
164
|
icon: "qr",
|
|
@@ -175,7 +177,7 @@ const De = /* @__PURE__ */ G({
|
|
|
175
177
|
"message-wrapper-class": "text-[11px] leading-[14px] tracking-[0.02em]",
|
|
176
178
|
severity: "danger"
|
|
177
179
|
}, null, 8, ["message", "title"])) : b("", !0),
|
|
178
|
-
R(
|
|
180
|
+
R(C, {
|
|
179
181
|
disabled: w.value,
|
|
180
182
|
loading: v.value,
|
|
181
183
|
onClick: Z,
|
|
@@ -232,5 +234,5 @@ const De = /* @__PURE__ */ G({
|
|
|
232
234
|
}
|
|
233
235
|
});
|
|
234
236
|
export {
|
|
235
|
-
|
|
237
|
+
Ne as _
|
|
236
238
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../../utils/toast.util-DPtauJUV.system.js","./store/device.store-DEKXH36R.system.js","../buttonscan/ButtonScan-BZzpqBe8.system.js","../buttonscan/workers/scanner.worker-8_0GG6W3.system.js","../button/Button-D892iaxz.system.js","../dialog/Dialog-Dv7Jzg4E.system.js","../dropdown/Dropdown-BNzT2uLU.system.js","../icon/Icon-D1a666FC.system.js","../inlinemessage/InlineMessage-DTyTe5_W.system.js"],function(X,pe){"use strict";var V,O,r,d,F,j,y,m,M,w,f,g,E,_,x,$,W,P,U,Q,z,S,H,B,Y,L;return{setters:[e=>{V=e.defineComponent,O=e.onMounted,r=e.shallowRef,d=e.computed,F=e.ref,j=e.watch,y=e.createBlock,m=e.openBlock,M=e.createSlots,w=e.withCtx,f=e.createCommentVNode,g=e.createVNode,E=e.createElementVNode,_=e.normalizeClass,x=e.createElementBlock,$=e.Fragment,W=e.toDisplayString},e=>{P=e.u},e=>{U=e.u},e=>{Q=e.g},e=>{z=e.W},e=>{S=e._},e=>{H=e.default},e=>{B=e._},e=>{Y=e.default},e=>{L=e._}],execute:function(){const e=X("_",V({__name:"HardwareSync",props:{visible:{type:Boolean},errorCode:{},searchBy:{},bulk:{type:Boolean},withoutScanBtn:{type:Boolean}},emits:["update:visible","scan"],setup(ee,{emit:te}){const i=ee,A=te,ne=P();O(()=>{G()});const{device:I,devices:q,saveDevices:se,setDevice:ae,loadDevices:le}=U(),u={label:"None",device:void 0},p=r(!1),o=r(u),c=r(u),J=s=>{var t,n;if((t=q.value)!=null&&t.length){const l=(n=q.value)==null?void 0:n.filter(a=>a[s]).map(a=>({label:`${a.name??a.jenisDevice+" - "+a.serialNumber}`,device:a}));return l.length?l:[]}return o.value=u,c.value=u,[]},b=d(()=>J("rfidScan")),h=d(()=>J("qrScan")),T=d(()=>i.errorCode==="NOT_SUPPORTED_SYSTEM"),oe=d(()=>i.searchBy==="RFID"&&o.value.device),re=d(()=>i.searchBy==="QR"&&c.value.device),C=d(()=>!!i.searchBy&&i.errorCode!=="HARDWARE_NOT_SYNCHRONIZED"),Z=async s=>{try{se(s);const t=b.value.some(l=>{var a,D,N;return((a=l==null?void 0:l.device)==null?void 0:a.serialNumber)===((N=(D=o.value)==null?void 0:D.device)==null?void 0:N.serialNumber)}),n=h.value.some(l=>{var a,D,N;return((a=l==null?void 0:l.device)==null?void 0:a.serialNumber)===((N=(D=c.value)==null?void 0:D.device)==null?void 0:N.serialNumber)});o.value=t?o.value:b.value[0]??u,c.value=n?c.value:h.value[0]??u,k()}catch(t){v.value=R(Q(t))}finally{p.value=!1}},v=F(),ie=r({title:"The detected OS is not compatible",detail:"Please check the OS compatibility list on our product information page."}),ce=r({title:"Scanner Disconnected",detail:"Your scanner has been disconnected. Please reconnect it or select another device from the list."}),ue=r({title:"Scanner driver not found",detail:"The scanner driver may not be running or installed correctly on your device. Please contact your administrator."}),ve=r({title:"Scanner not detected",detail:"The scanner is either not detected or not identified by our system."});r({title:"Scanner is not registered",detail:"The scanner is not registered in your company."});const R=s=>{switch(s??i.errorCode){case"DEVICE_NOT_CONNECTED":return ve.value;case"DRIVER_NOT_FOUND":return ue.value;case"NOT_SUPPORTED_SYSTEM":return ie.value;case"DEVICE_DISCONNECTED":return ce.value;default:return}},k=()=>{ae({RFID:o.value.device,QR:c.value.device})},G=()=>{le(),I.value.RFID?o.value={label:I.value.RFID.name,device:I.value.RFID}:b.value.length&&(o.value=b.value[0]??u),h.value.length&&(c.value=h.value[0]??u),k()},K=()=>{A("update:visible",!1),A("scan")},de=()=>{var s;p.value=!0,v.value=void 0,window.scannerWorker.onmessage=({data:t})=>{var n;if(t.status==="synced"){const l=((n=t==null?void 0:t.data)==null?void 0:n.deviceList)??[];Z(l);const{error:a}=(t==null?void 0:t.data)??{};a==="Driver not connected to server"?(p.value=!1,v.value=R("DRIVER_NOT_FOUND")):l.length||(p.value=!1,v.value=R("DEVICE_NOT_CONNECTED"))}else t.status==="error_sync"&&(p.value=!1,Z([]),ne.add({message:"Failed to connecting scanner",severity:"error"}))},window.scannerWorker.postMessage({command:"sync",userId:(s=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:s._id})},me=()=>{window.scannerWorker??(window.scannerWorker=new z)};return j(()=>i.visible,s=>{s&&(me(),v.value=R(),G(),p.value=!1)}),(s,t)=>(m(),y(H,{closable:!C.value,"header-class":[{"flex !gap-1 !items-center !justify-center !text-sm !font-bold !leading-[18px] tracking-[0.02em] [&>div]:hidden":C.value}],visible:s.visible,"onUpdate:visible":t[3]||(t[3]=n=>s.$emit("update:visible",n)),class:"w-[400px]","content-class":"!overflow-y-visible","footer-class":"!gap-1",header:"Hardware Synchronize",modal:""},M({footer:w(()=>[C.value?(m(),y(S,{key:0,onClick:t[2]||(t[2]=n=>s.$emit("update:visible",!1)),label:"Close",severity:"secondary",text:""})):f("",!0),T.value?f("",!0):(m(),x($,{key:1},[oe.value&&!i.withoutScanBtn?(m(),y(S,{key:0,onClick:K,icon:"rfid",label:"Scan RFID"})):f("",!0),re.value&&!i.withoutScanBtn?(m(),y(S,{key:1,onClick:K,icon:"qr",label:"Scan QR"})):f("",!0)],64))]),default:w(()=>[v.value?(m(),y(L,{key:0,class:_(["p-[9.52px] transition"]),message:v.value.detail,removable:!1,"show-icon":!1,title:v.value.title,"message-wrapper-class":"text-[11px] leading-[14px] tracking-[0.02em]",severity:"danger"},null,8,["message","title"])):f("",!0),g(S,{disabled:T.value,loading:p.value,onClick:de,icon:"refresh",label:"Sync","loading-icon":"refresh",outlined:""},null,8,["disabled","loading"]),E("section",{class:_(["grid grid-cols-2 gap-3 justify-start w-full",{"opacity-60 pointer-events-none":T.value}]),"data-ts-section":"scanner-list"},[g(B,{modelValue:o.value,"onUpdate:modelValue":[t[0]||(t[0]=n=>o.value=n),k],options:b.value,label:"RFID Scanner","option-label":"label"},null,8,["modelValue","options"]),g(B,{modelValue:c.value,"onUpdate:modelValue":[t[1]||(t[1]=n=>c.value=n),k],options:h.value,label:"QR Scanner","option-label":"label"},null,8,["modelValue","options"])],2)]),_:2},[C.value?{name:"header",fn:w(()=>{var n;return[g(Y,{icon:(n=s.searchBy)==null?void 0:n.toLowerCase()},null,8,["icon"]),E("h3",null,"Scan "+W(s.searchBy),1)]}),key:"0"}:void 0]),1032,["closable","header-class","visible"]))}}))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue"],function(o,d){"use strict";var c;return{setters:[e=>{c=e.ref}],execute:function(){const e=()=>window.devices??[],r=()=>window.device??{RFID:null,QR:null},s=c(e()),n=c(r()),l=o("u",()=>{const u=t=>{window.devices=t,i()},v=t=>{window.device=t,n.value=t},i=()=>{s.value=e()};return{devices:s,device:n,saveDevices:u,setDevice:v,loadDevices:i}})}}});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ref as o } from "vue";
|
|
2
|
+
const i = () => window.devices ?? [], d = () => window.device ?? { RFID: null, QR: null }, s = o(i()), t = o(d()), u = () => {
|
|
3
|
+
const n = (e) => {
|
|
4
|
+
window.devices = e, c();
|
|
5
|
+
}, v = (e) => {
|
|
6
|
+
window.device = e, t.value = e;
|
|
7
|
+
}, c = () => {
|
|
8
|
+
s.value = i();
|
|
9
|
+
};
|
|
10
|
+
return {
|
|
11
|
+
devices: s,
|
|
12
|
+
device: t,
|
|
13
|
+
saveDevices: n,
|
|
14
|
+
setDevice: v,
|
|
15
|
+
loadDevices: c
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
u
|
|
20
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as d, resolveDirective as
|
|
1
|
+
import { defineComponent as c, computed as d, resolveDirective as f, createElementBlock as t, openBlock as o, Fragment as v, withDirectives as i, createCommentVNode as n, mergeProps as l } from "vue";
|
|
2
2
|
const $ = /* @__PURE__ */ c({
|
|
3
3
|
__name: "Icon",
|
|
4
4
|
props: {
|
|
@@ -31,8 +31,8 @@ const $ = /* @__PURE__ */ c({
|
|
|
31
31
|
"cursor-pointer shink-0"
|
|
32
32
|
]);
|
|
33
33
|
return (e, m) => {
|
|
34
|
-
const r =
|
|
35
|
-
return o(), t(
|
|
34
|
+
const r = f("tooltip");
|
|
35
|
+
return o(), t(v, null, [
|
|
36
36
|
e.tooltipPos === "top" ? i((o(), t("i", l({ key: 0 }, e.$attrs, {
|
|
37
37
|
class: [...s.value, e.$props.class]
|
|
38
38
|
}), null, 16)), [
|
|
@@ -78,5 +78,5 @@ const $ = /* @__PURE__ */ c({
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
export {
|
|
81
|
-
$ as
|
|
81
|
+
$ as default
|
|
82
82
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue"],function(d,y){"use strict";var c,u,p,r,s,v,o,i,n;return{setters:[t=>{c=t.defineComponent,u=t.computed,p=t.resolveDirective,r=t.createElementBlock,s=t.openBlock,v=t.Fragment,o=t.withDirectives,i=t.createCommentVNode,n=t.mergeProps}],execute:function(){const t=d("default",c({__name:"Icon",props:{icon:{},severity:{default:void 0},info:{default:void 0},tooltipPos:{default:"bottom"},class:{default:void 0}},setup(m){const f=m,g=(()=>{switch(f.severity){case"primary":return"text-primary-500";case"success":return"text-success-500";case"warning":return"text-warning-500";case"danger":return"text-danger-500";case"info":return"text-info-500";default:return"inherit"}})(),a=u(()=>["icon",`ic-${f.icon}`,g,"cursor-pointer shink-0"]);return(e,k)=>{const l=p("tooltip");return s(),r(v,null,[e.tooltipPos==="top"?o((s(),r("i",n({key:0},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{top:!0}]]):i("",!0),e.tooltipPos==="bottom"?o((s(),r("i",n({key:1},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{bottom:!0}]]):i("",!0),e.tooltipPos==="right"?o((s(),r("i",n({key:2},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{right:!0}]]):i("",!0),e.tooltipPos==="left"?o((s(),r("i",n({key:3},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{left:!0}]]):i("",!0)],64)}}}))}}});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as j, computed as p, onMounted as G, onUnmounted as M, shallowRef as f, createBlock as W, openBlock as
|
|
2
|
-
import { l as J } from "../../vendor/primevue-
|
|
3
|
-
import { u as K
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
1
|
+
import { defineComponent as j, computed as p, onMounted as G, onUnmounted as M, shallowRef as f, createBlock as W, openBlock as s, unref as q, mergeProps as I, withCtx as b, createElementBlock as m, normalizeStyle as k, Fragment as _, createElementVNode as U, renderList as T, withDirectives as A, vShow as H, withModifiers as D, createVNode as C, normalizeClass as z } from "vue";
|
|
2
|
+
import { l as J } from "../../vendor/primevue-DkBtKf1Y.es.js";
|
|
3
|
+
import { u as K } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
|
|
4
|
+
import { m as Q } from "../../utils/mergePropsWithDefaults.util-BKcJzgvs.es.js";
|
|
5
|
+
import { _ as F } from "../button/Button-CgkhMnxo.es.js";
|
|
6
|
+
import X from "../icon/Icon-C4kXVcEX.es.js";
|
|
7
|
+
const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], se = /* @__PURE__ */ j({
|
|
7
8
|
__name: "Image",
|
|
8
9
|
props: {
|
|
9
10
|
src: {},
|
|
@@ -56,7 +57,7 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ie = /* @
|
|
|
56
57
|
var t, l, a, g;
|
|
57
58
|
const e = u.value;
|
|
58
59
|
if (typeof e == "string") {
|
|
59
|
-
const
|
|
60
|
+
const i = (l = (t = c.value).getImageURL) == null ? void 0 : l.call(t, "preview"), n = i && !(i != null && i.includes("undefined")) ? new URL(i).origin : "", R = n && e.includes(n);
|
|
60
61
|
return e.includes("http") && !R || // From public resource
|
|
61
62
|
e.includes("data:image/svg+xml") ? e : (g = (a = c.value).getImageURL) == null ? void 0 : g.call(a, r.src);
|
|
62
63
|
}
|
|
@@ -74,7 +75,7 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ie = /* @
|
|
|
74
75
|
};
|
|
75
76
|
return (e, t) => {
|
|
76
77
|
var l;
|
|
77
|
-
return
|
|
78
|
+
return s(), W(q(J), I(e.$props, {
|
|
78
79
|
preview: E.value,
|
|
79
80
|
pt: { root: (l = e.$preset.image) == null ? void 0 : l.root({ props: e.$props }) }
|
|
80
81
|
}), {
|
|
@@ -94,16 +95,16 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ie = /* @
|
|
|
94
95
|
preview: b((a) => {
|
|
95
96
|
var g;
|
|
96
97
|
return [
|
|
97
|
-
(g = e.galleries) != null && g.length ? (
|
|
98
|
-
(
|
|
99
|
-
key:
|
|
98
|
+
(g = e.galleries) != null && g.length ? (s(), m(_, { key: 1 }, [
|
|
99
|
+
(s(!0), m(_, null, T(e.galleries, ({ src: i }, n) => A((s(), m("img", {
|
|
100
|
+
key: n,
|
|
100
101
|
onerror: d,
|
|
101
|
-
src: B(
|
|
102
|
+
src: B(i),
|
|
102
103
|
style: k(a.style),
|
|
103
104
|
alt: "",
|
|
104
105
|
"data-wv-section": "image-gallery"
|
|
105
106
|
}, null, 12, ee)), [
|
|
106
|
-
[H,
|
|
107
|
+
[H, n === o.value]
|
|
107
108
|
])), 128)),
|
|
108
109
|
U("div", {
|
|
109
110
|
onClick: t[0] || (t[0] = D(() => {
|
|
@@ -124,16 +125,16 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ie = /* @
|
|
|
124
125
|
severity: "secondary",
|
|
125
126
|
text: ""
|
|
126
127
|
}),
|
|
127
|
-
(
|
|
128
|
-
key:
|
|
128
|
+
(s(!0), m(_, null, T(e.galleries, ({ src: i }, n) => (s(), m("img", {
|
|
129
|
+
key: n,
|
|
129
130
|
class: z([
|
|
130
131
|
"h-10 w-10 object-cover cursor-pointer opacity-50 hover:opacity-100 transition-opacity",
|
|
131
|
-
{ "!opacity-100": o.value ==
|
|
132
|
+
{ "!opacity-100": o.value == n }
|
|
132
133
|
]),
|
|
133
134
|
onerror: d,
|
|
134
|
-
src: B(
|
|
135
|
+
src: B(i),
|
|
135
136
|
style: k(a.style),
|
|
136
|
-
onClick: D((R) => y(
|
|
137
|
+
onClick: D((R) => y(n), ["stop"]),
|
|
137
138
|
alt: "",
|
|
138
139
|
"data-wv-section": "thumbnail-image"
|
|
139
140
|
}, null, 14, te))), 128)),
|
|
@@ -150,7 +151,7 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ie = /* @
|
|
|
150
151
|
text: ""
|
|
151
152
|
})
|
|
152
153
|
])
|
|
153
|
-
], 64)) : (
|
|
154
|
+
], 64)) : (s(), m("img", {
|
|
154
155
|
key: 0,
|
|
155
156
|
onerror: d,
|
|
156
157
|
src: V.value,
|
|
@@ -165,5 +166,5 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ie = /* @
|
|
|
165
166
|
}
|
|
166
167
|
});
|
|
167
168
|
export {
|
|
168
|
-
|
|
169
|
+
se as default
|
|
169
170
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../../vendor/primevue-C5Z_k4WB.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../../utils/mergePropsWithDefaults.util-CXowvEKY.system.js","../button/Button-D892iaxz.system.js","../icon/Icon-D1a666FC.system.js"],function(A,ne){"use strict";var j,g,U,D,p,V,c,x,f,h,u,y,w,_,z,E,F,B,I,b,N,P,T,S,M;return{setters:[t=>{j=t.defineComponent,g=t.computed,U=t.onMounted,D=t.onUnmounted,p=t.shallowRef,V=t.createBlock,c=t.openBlock,x=t.unref,f=t.mergeProps,h=t.withCtx,u=t.createElementBlock,y=t.normalizeStyle,w=t.Fragment,_=t.createElementVNode,z=t.renderList,E=t.withDirectives,F=t.vShow,B=t.withModifiers,I=t.createVNode,b=t.normalizeClass},t=>{N=t.l},t=>{P=t.u},t=>{T=t.m},t=>{S=t._},t=>{M=t.default}],execute:function(){const t=["src"],H=["src"],J=["src"],K=["src","onClick"],se=A("default",j({__name:"Image",props:{src:{},size:{},width:{},rounded:{type:Boolean},imageStyle:{},imageClass:{},galleries:{},indicatorIcon:{},zoomInDisabled:{type:Boolean},zoomOutDisabled:{type:Boolean},pt:{},ptOptions:{},unstyled:{type:Boolean},getImageURL:{type:Function},placeholder:{}},setup(Q){const n=Q,{defaultProps:X}=P("Image"),m=g(()=>T(n,X));U(()=>{setTimeout(()=>{W()},3e3)}),D(()=>{$()});const i=p(0),k=p(),O=p(),L=p(!1),Y=g(()=>{var e;return!L.value&&!((e=v.value)!=null&&e.toString().includes("data:image/png;base64"))&&v.value!==m.value.placeholder}),ee=()=>{const e=n.galleries??[];i.value=(i.value+1)%e.length,R()},te=()=>{const e=n.galleries??[];i.value=(i.value-1+e.length)%e.length,R()},W=()=>{var e;$(),(e=n.galleries)!=null&&e.length&&(k.value=window.setInterval(()=>{const r=n.galleries??[];i.value=(i.value+1)%r.length},3e3))},$=()=>{k.value&&(window.clearInterval(k.value),k.value=void 0)},G=g(()=>n.width!=null?n.width:n.size==="small"?30:n.size==="medium"?80:125),v=g(()=>{var e,r;return!n.src||L.value?m.value.placeholder:typeof n.src=="string"?n.src.includes("http")||n.src.includes("data:image/png;base64")?n.src:(r=(e=m.value).getImageURL)==null?void 0:r.call(e,n.src,G.value):n.src}),re=g(()=>{var r,a,s,d;const e=v.value;if(typeof e=="string"){const l=(a=(r=m.value).getImageURL)==null?void 0:a.call(r,"preview"),o=l&&!(l!=null&&l.includes("undefined"))?new URL(l).origin:"",q=o&&e.includes(o);return e.includes("http")&&!q||e.includes("data:image/svg+xml")?e:(d=(s=m.value).getImageURL)==null?void 0:d.call(s,n.src)}return e}),R=e=>{$(),typeof e=="number"&&(i.value=e),O.value?window.clearTimeout(O.value):window.setTimeout(W,3e3)},C=e=>{var a;const r=(a=e.target)==null?void 0:a.src;(r===v.value||r.includes(v.value.toString()))&&(L.value=!0)},Z=e=>{var a,s;const r=e;return typeof r=="string"?r.includes("http")?r:(s=(a=m.value).getImageURL)==null?void 0:s.call(a,r):r};return(e,r)=>{var a;return c(),V(x(N),f(e.$props,{preview:Y.value,pt:{root:(a=e.$preset.image)==null?void 0:a.root({props:e.$props})}}),{image:h(()=>{var s;return[_("img",f((s=e.$preset.image)==null?void 0:s.image({props:e.$props,context:{imageSize:G.value}}),{onerror:C,src:v.value,alt:""}),null,16,t)]}),indicatoricon:h(()=>[I(M,f(e.$preset.image.icon,{icon:"eye"}),null,16)]),preview:h(s=>{var d;return[(d=e.galleries)!=null&&d.length?(c(),u(w,{key:1},[(c(!0),u(w,null,z(e.galleries,({src:l},o)=>E((c(),u("img",{key:o,onerror:C,src:Z(l),style:y(s.style),alt:"","data-wv-section":"image-gallery"},null,12,J)),[[F,o===i.value]])),128)),_("div",{onClick:r[0]||(r[0]=B(()=>{},["stop"])),class:"fixed bottom-0 left-0 flex justify-center items-center w-full p-4 mx-auto flex-row bg-black/80","data-wv-section":"gallery-thumbnail"},[I(S,{class:b(["text-surface-0 rotate-180 sticky left-0 !w-8 !h-8 [&_i]:w-5 [&_i]:h-5","rounded-full mr-3"]),onClick:te,"aria-label":"Previous Image","data-wv-section":"prev-button",icon:"arrow-right","icon-class":"w-5 h-5",severity:"secondary",text:""}),(c(!0),u(w,null,z(e.galleries,({src:l},o)=>(c(),u("img",{key:o,class:b(["h-10 w-10 object-cover cursor-pointer opacity-50 hover:opacity-100 transition-opacity",{"!opacity-100":i.value==o}]),onerror:C,src:Z(l),style:y(s.style),onClick:B(q=>R(o),["stop"]),alt:"","data-wv-section":"thumbnail-image"},null,14,K))),128)),I(S,{class:b(["text-surface-0 sticky !w-8 !h-8 [&_i]:w-5 [&_i]:h-5","rounded-full ml-3"]),onClick:ee,"aria-label":"Next Image","data-wv-section":"next-button",icon:"arrow-right",severity:"secondary",text:""})])],64)):(c(),u("img",{key:0,onerror:C,src:re.value,style:y(s.style),alt:""},null,12,H))]}),_:1},16,["preview","pt"])}}}))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../../vendor/vue-advanced-cropper-NG93jHnU.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../datatable/DataTable-Cko2S6sM.system.js"],function(_,I){"use strict";var l,c,u,p,f,r,v,h,m,g,z,d,w,y;return{setters:[e=>{l=e.defineComponent,c=e.shallowRef,u=e.ref,p=e.createBlock,f=e.openBlock,r=e.unref,v=e.withCtx,h=e.renderSlot,m=e.createElementVNode,g=e.normalizeClass,z=e.toDisplayString},e=>{d=e.o},e=>{w=e.u},e=>{y=e._}],execute:function(){const S=_("default",y(l({__name:"BackgroundImageCropper",props:{touchMove:{},mouseMove:{},touchResize:{},wheelResize:{}},emits:["move","resize"],setup(k){const i=k,{locale:C}=w("ImageCompressor"),s=c(!1),n=u(),B=(o,t)=>{if(o.type==="touchstart"||o.type==="touchmove"){if(o.touches.length===1&&!t)return s.value=!0,n.value="touch",R(),!1;s.value=!1}else if(o.type==="wheel"){if(!t&&!o.ctrlKey)return s.value=!0,n.value="wheel",R(),!1;s.value=!1}o.preventDefault(),o.stopPropagation()},R=()=>{setTimeout(()=>{s.value=!1},1e3)};return(o,t)=>(f(),p(r(d),{"events-filter":B,"mouse-move":i.mouseMove,"touch-move":i.touchMove,"touch-resize":i.touchResize,"wheel-resize":i.wheelResize,onMove:t[0]||(t[0]=a=>o.$emit("move",a)),onResize:t[1]||(t[1]=a=>o.$emit("resize",a))},{default:v(()=>[h(o.$slots,"default",{},void 0,!0),m("div",{class:g([{"cropper-event-notification--visible":s.value},"cropper-event-notification"])},z(n.value==="wheel"?r(C).cropperCtrlScrollInfo:r(C).cropperTwoFingerInfo),3)]),_:3},8,["mouse-move","touch-move","touch-resize","wheel-resize"]))}}),[["__scopeId","data-v-9031c32d"]]))}}});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as n, shallowRef as f, ref as m, createBlock as h, openBlock as v, unref as l, withCtx as d, renderSlot as z, createElementVNode as g, normalizeClass as w, toDisplayString as C } from "vue";
|
|
2
|
+
import { o as y } from "../../vendor/vue-advanced-cropper-CshlvNaD.es.js";
|
|
3
|
+
import { u as I } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
|
|
4
|
+
import { _ as R } from "../datatable/DataTable-BH7Fk88O.es.js";
|
|
5
|
+
const M = /* @__PURE__ */ n({
|
|
6
|
+
__name: "BackgroundImageCropper",
|
|
7
|
+
props: {
|
|
8
|
+
touchMove: {},
|
|
9
|
+
mouseMove: {},
|
|
10
|
+
touchResize: {},
|
|
11
|
+
wheelResize: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["move", "resize"],
|
|
14
|
+
setup(c) {
|
|
15
|
+
const s = c, { locale: u } = I("ImageCompressor"), t = f(!1), r = m(), p = (e, o) => {
|
|
16
|
+
if (e.type === "touchstart" || e.type === "touchmove") {
|
|
17
|
+
if (e.touches.length === 1 && !o)
|
|
18
|
+
return t.value = !0, r.value = "touch", a(), !1;
|
|
19
|
+
t.value = !1;
|
|
20
|
+
} else if (e.type === "wheel") {
|
|
21
|
+
if (!o && !e.ctrlKey)
|
|
22
|
+
return t.value = !0, r.value = "wheel", a(), !1;
|
|
23
|
+
t.value = !1;
|
|
24
|
+
}
|
|
25
|
+
e.preventDefault(), e.stopPropagation();
|
|
26
|
+
}, a = () => {
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
t.value = !1;
|
|
29
|
+
}, 1e3);
|
|
30
|
+
};
|
|
31
|
+
return (e, o) => (v(), h(l(y), {
|
|
32
|
+
"events-filter": p,
|
|
33
|
+
"mouse-move": s.mouseMove,
|
|
34
|
+
"touch-move": s.touchMove,
|
|
35
|
+
"touch-resize": s.touchResize,
|
|
36
|
+
"wheel-resize": s.wheelResize,
|
|
37
|
+
onMove: o[0] || (o[0] = (i) => e.$emit("move", i)),
|
|
38
|
+
onResize: o[1] || (o[1] = (i) => e.$emit("resize", i))
|
|
39
|
+
}, {
|
|
40
|
+
default: d(() => [
|
|
41
|
+
z(e.$slots, "default", {}, void 0, !0),
|
|
42
|
+
g("div", {
|
|
43
|
+
class: w([{ "cropper-event-notification--visible": t.value }, "cropper-event-notification"])
|
|
44
|
+
}, C(r.value === "wheel" ? l(u).cropperCtrlScrollInfo : l(u).cropperTwoFingerInfo), 3)
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 8, ["mouse-move", "touch-move", "touch-resize", "wheel-resize"]));
|
|
48
|
+
}
|
|
49
|
+
}), T = /* @__PURE__ */ R(M, [["__scopeId", "data-v-9031c32d"]]);
|
|
50
|
+
export {
|
|
51
|
+
T as default
|
|
52
|
+
};
|