@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
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, inject as g, ref as x, computed as T, createElementBlock as p, openBlock as f, mergeProps as b, unref as h, createVNode as N, createCommentVNode as k, toDisplayString as v } from "vue";
|
|
2
|
-
import { e as u } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
|
|
3
|
-
import { _ as y } from "../icon/Icon-mDqG7urn.es.js";
|
|
4
|
-
const S = () => new Promise((i, e) => {
|
|
5
|
-
if (window.XLSX) return i(window.XLSX);
|
|
6
|
-
const l = document.createElement("script");
|
|
7
|
-
l.src = "https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js", l.onload = () => i(window.XLSX), l.onerror = e, document.body.appendChild(l);
|
|
8
|
-
}), E = async (i) => {
|
|
9
|
-
const e = await S(), l = e.utils.book_new(), n = e.utils.json_to_sheet([]);
|
|
10
|
-
let o = 0;
|
|
11
|
-
i.tables.forEach((a) => {
|
|
12
|
-
a.tableTitle && (e.utils.sheet_add_aoa(n, [[a.tableTitle]], {
|
|
13
|
-
origin: { r: o, c: 0 }
|
|
14
|
-
}), o += 1), e.utils.sheet_add_aoa(n, [a.headers], {
|
|
15
|
-
origin: { r: o, c: 0 }
|
|
16
|
-
}), e.utils.sheet_add_json(n, a.data, {
|
|
17
|
-
origin: { r: o + 1, c: 0 },
|
|
18
|
-
skipHeader: !0
|
|
19
|
-
}), o += a.data.length + 3;
|
|
20
|
-
}), i.additionalTexts && (o += 1, i.additionalTexts.forEach((a, t) => {
|
|
21
|
-
Array.isArray(a) ? a.forEach((r, s) => {
|
|
22
|
-
e.utils.sheet_add_aoa(n, [[r]], {
|
|
23
|
-
origin: { r: o + t, c: s }
|
|
24
|
-
});
|
|
25
|
-
}) : e.utils.sheet_add_aoa(n, [[a]], {
|
|
26
|
-
origin: { r: o + t, c: 0 }
|
|
27
|
-
});
|
|
28
|
-
})), e.utils.book_append_sheet(l, n, "Sheet1");
|
|
29
|
-
const m = (/* @__PURE__ */ new Date()).toLocaleDateString("en-gb", {
|
|
30
|
-
day: "2-digit",
|
|
31
|
-
month: "2-digit",
|
|
32
|
-
year: "2-digit"
|
|
33
|
-
}).replaceAll("/", "");
|
|
34
|
-
e.writeFile(l, `${i.fileName}-${m}.xlsx`);
|
|
35
|
-
}, X = {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "inherit text-xs"
|
|
38
|
-
}, C = /* @__PURE__ */ _({
|
|
39
|
-
__name: "ButtonDownload",
|
|
40
|
-
props: {
|
|
41
|
-
fileName: {},
|
|
42
|
-
label: { default: void 0 },
|
|
43
|
-
tableName: { default: "datatable" },
|
|
44
|
-
multiTableNames: { default: void 0 },
|
|
45
|
-
additionalTextBelowTable: { default: void 0 }
|
|
46
|
-
},
|
|
47
|
-
setup(i) {
|
|
48
|
-
const e = i, l = g("preset", {}).buttondownload, n = x({}), o = T(() => Object.entries(n.value).map(([t]) => t)), m = () => {
|
|
49
|
-
const { fileName: t, tableName: r, multiTableNames: s } = e;
|
|
50
|
-
if (s != null && s.length)
|
|
51
|
-
u.on("button-download:multi-tables", a), s.forEach((d) => {
|
|
52
|
-
const c = { fileName: t, tableName: d, multiTableNames: s };
|
|
53
|
-
u.emit("data-table:download", c);
|
|
54
|
-
});
|
|
55
|
-
else {
|
|
56
|
-
const d = {
|
|
57
|
-
fileName: t,
|
|
58
|
-
tableName: r,
|
|
59
|
-
additionalTexts: e.additionalTextBelowTable
|
|
60
|
-
};
|
|
61
|
-
u.emit("data-table:download", d);
|
|
62
|
-
}
|
|
63
|
-
}, a = async ({
|
|
64
|
-
table: t
|
|
65
|
-
}) => {
|
|
66
|
-
var c;
|
|
67
|
-
const { tableName: r } = t;
|
|
68
|
-
if (o.value.includes(r) || (n.value[r] = t), o.value.length !== ((c = e.multiTableNames) == null ? void 0 : c.length)) return;
|
|
69
|
-
u.off("button-download:multi-tables", a);
|
|
70
|
-
const s = () => e.fileName.trim().replace(/[^a-zA-Z0-9\s]/g, "-").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/-+$/, ""), d = [];
|
|
71
|
-
e.multiTableNames.forEach((w) => {
|
|
72
|
-
d.push(n.value[w]);
|
|
73
|
-
}), await E({
|
|
74
|
-
tables: d,
|
|
75
|
-
additionalTexts: e.additionalTextBelowTable,
|
|
76
|
-
fileName: s()
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
return (t, r) => (f(), p("button", b({ onClick: m }, h(l).root({ props: e }), { type: "button" }), [
|
|
80
|
-
N(y, b(h(l).icon, {
|
|
81
|
-
icon: "download",
|
|
82
|
-
info: "Download",
|
|
83
|
-
"tooltip-pos": "bottom"
|
|
84
|
-
}), null, 16),
|
|
85
|
-
t.label ? (f(), p("span", X, v(t.label), 1)) : k("", !0)
|
|
86
|
-
], 16));
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
export {
|
|
90
|
-
C as _,
|
|
91
|
-
E as e
|
|
92
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../assetinfo/AssetInfo-BBgKToRP.system.js","../icon/Icon-DUylRmY4.system.js"],function(_,X){"use strict";var g,N,T,x,f,p,b,h,y,k,v,u,S;return{setters:[t=>{g=t.defineComponent,N=t.inject,T=t.ref,x=t.computed,f=t.createElementBlock,p=t.openBlock,b=t.mergeProps,h=t.unref,y=t.createVNode,k=t.createCommentVNode,v=t.toDisplayString},t=>{u=t.e},t=>{S=t._}],execute:function(){const t=()=>new Promise((i,e)=>{if(window.XLSX)return i(window.XLSX);const s=document.createElement("script");s.src="https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js",s.onload=()=>i(window.XLSX),s.onerror=e,document.body.appendChild(s)}),E=_("e",async i=>{const e=await t(),s=e.utils.book_new(),l=e.utils.json_to_sheet([]);let n=0;i.tables.forEach(o=>{o.tableTitle&&(e.utils.sheet_add_aoa(l,[[o.tableTitle]],{origin:{r:n,c:0}}),n+=1),e.utils.sheet_add_aoa(l,[o.headers],{origin:{r:n,c:0}}),e.utils.sheet_add_json(l,o.data,{origin:{r:n+1,c:0},skipHeader:!0}),n+=o.data.length+3}),i.additionalTexts&&(n+=1,i.additionalTexts.forEach((o,a)=>{Array.isArray(o)?o.forEach((c,r)=>{e.utils.sheet_add_aoa(l,[[c]],{origin:{r:n+a,c:r}})}):e.utils.sheet_add_aoa(l,[[o]],{origin:{r:n+a,c:0}})})),e.utils.book_append_sheet(s,l,"Sheet1");const w=new Date().toLocaleDateString("en-gb",{day:"2-digit",month:"2-digit",year:"2-digit"}).replaceAll("/","");e.writeFile(s,`${i.fileName}-${w}.xlsx`)}),j={key:0,class:"inherit text-xs"},C=_("_",g({__name:"ButtonDownload",props:{fileName:{},label:{default:void 0},tableName:{default:"datatable"},multiTableNames:{default:void 0},additionalTextBelowTable:{default:void 0}},setup(i){const e=i,s=N("preset",{}).buttondownload,l=T({}),n=x(()=>Object.entries(l.value).map(([a])=>a)),w=()=>{const{fileName:a,tableName:c,multiTableNames:r}=e;if(r!=null&&r.length)u.on("button-download:multi-tables",o),r.forEach(d=>{const m={fileName:a,tableName:d,multiTableNames:r};u.emit("data-table:download",m)});else{const d={fileName:a,tableName:c,additionalTexts:e.additionalTextBelowTable};u.emit("data-table:download",d)}},o=async({table:a})=>{var m;const{tableName:c}=a;if(n.value.includes(c)||(l.value[c]=a),n.value.length!==((m=e.multiTableNames)==null?void 0:m.length))return;u.off("button-download:multi-tables",o);const r=()=>e.fileName.trim().replace(/[^a-zA-Z0-9\s]/g,"-").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/-+$/,""),d=[];e.multiTableNames.forEach(B=>{d.push(l.value[B])}),await E({tables:d,additionalTexts:e.additionalTextBelowTable,fileName:r()})};return(a,c)=>(p(),f("button",b({onClick:w},h(s).root({props:e}),{type:"button"}),[y(S,b(h(s).icon,{icon:"download",info:"Download","tooltip-pos":"bottom"}),null,16),a.label?(p(),f("span",j,v(a.label),1)):k("",!0)],16))}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../assetinfo/AssetInfo-BBgKToRP.system.js","../icon/Icon-DUylRmY4.system.js"],function(_,g){"use strict";var s,c,i,r,l,n,o,a,f,u;return{setters:[e=>{s=e.defineComponent,c=e.inject,i=e.shallowRef,r=e.createElementBlock,l=e.openBlock,n=e.mergeProps,o=e.unref,a=e.createVNode},e=>{f=e.e},e=>{u=e._}],execute:function(){const e=_("_",s({__name:"ButtonFilter",props:{tableName:{default:"datatable"}},emits:["showFilter"],setup(b,{emit:h}){const m=c("preset",{}).buttonfilter,{tableName:w}=b,B=h,t=i(!1),F=()=>{t.value=!t.value,B("showFilter",t.value),f.emit("show-filter",{tableName:w,show:t.value})};return(k,j)=>{var p,v;return l(),r("button",n({onClick:F},(p=o(m))==null?void 0:p.root({context:{active:t.value}}),{type:"button"}),[a(u,n((v=o(m))==null?void 0:v.icon({context:{active:t.value}}),{icon:t.value?"filter-fill":"filter",info:"Filter","tooltip-pos":"bottom"}),null,16,["icon"])],16)}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../icon/Icon-DUylRmY4.system.js","../../vendor/lodash-es-C3G1Cc1m.system.js"],function(E,D){"use strict";var m,f,v,h,c,s,n,r,B,i,g,u,p,d,k,C,V,S,P,z;return{setters:[e=>{m=e.h,f=e.defineComponent,v=e.inject,h=e.computed,c=e.createBlock,s=e.openBlock,n=e.unref,r=e.mergeProps,B=e.withCtx,i=e.createElementVNode,g=e.renderSlot,u=e.createCommentVNode,p=e.normalizeProps,d=e.guardReactiveProps,k=e.normalizeStyle,C=e.normalizeClass,V=e.createElementBlock,S=e.toDisplayString},e=>{P=e._},e=>{z=e.i}],execute:function(){const e=(b,y)=>{const{attrs:a,slots:l}=y||{};return b.label?m("label",a,l.default()):l.default()},N=["id","aria-invalid","checked","disabled","name","readonly","tabindex","value"],$=E("_",f({inheritAttrs:!1,__name:"ButtonRadio",props:{label:{},value:{},modelValue:{},name:{},binary:{type:Boolean,default:!1},invalid:{type:Boolean},disabled:{type:Boolean},variant:{},readonly:{type:Boolean},tabindex:{},inputId:{},inputStyle:{type:[Boolean,null,String,Object,Array]},inputClass:{},tooltip:{},tooltipPos:{default:"top"}},emits:["update:modelValue","change","focus","blur"],setup(b,{emit:y}){const a=b,l=y,o=v("preset",{}).buttonradio,j=h(()=>a.modelValue!=null&&(a.binary?!!a.modelValue:z(a.modelValue,a.value))),I=t=>{if(!a.disabled&&!a.readonly){const w=a.binary?!j.value:a.value;l("update:modelValue",w),l("change",t)}},R=t=>{l("focus",t)},A=t=>{l("blur",t)};return(t,w)=>(s(),c(n(e),r(n(o).label,{label:t.label}),{default:B(()=>[i("span",p(d(n(o).root({props:a}))),[i("input",{id:t.inputId,"aria-invalid":t.invalid||void 0,checked:j.value,class:C([n(o).input({props:a}).class,t.inputClass]),disabled:t.disabled,name:t.name,readonly:t.readonly,style:k(t.inputStyle),tabindex:t.tabindex,value:t.value,onBlur:A,onChange:I,onFocus:R,type:"radio"},null,46,N),i("span",p(d(n(o).box({props:a}))),[i("span",p(d(n(o).icon)),null,16)],16)],16),g(t.$slots,"label",{},()=>[t.label?(s(),V("span",r({key:0,"data-wv-section":"labeltext"},n(o).labeltext),S(t.label),17)):u("",!0)]),t.tooltip?(s(),c(P,r({key:0,info:t.tooltip,"tooltip-pos":t.tooltipPos},n(o).tooltipicon,{"data-wv-section":"tooltipicon",icon:"info"}),null,16,["info","tooltip-pos"])):u("",!0)]),_:3},16,["label"]))}}))}}});
|
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import { AxiosError as Ze } from "axios";
|
|
2
|
-
import { ref as ce, defineComponent as we, onBeforeUnmount as Re, shallowRef as v, computed as I, createElementBlock as w, openBlock as u, Fragment as C, createVNode as y, createBlock as O, createCommentVNode as E, mergeProps as ke, withCtx as Ve, createElementVNode as W, normalizeClass as ee, createTextVNode as ne, toDisplayString as P, Teleport as Ye } from "vue";
|
|
3
|
-
import { u as Ie } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
|
|
4
|
-
import { _ as te } from "../button/Button-D-MSv_AS.es.js";
|
|
5
|
-
import { _ as We } from "../dialogconfirm/DialogConfirm-BOFb7rJD.es.js";
|
|
6
|
-
import { _ as Te } from "../hardwaresync/HardwareSync-DUsVwHx1.es.js";
|
|
7
|
-
import { _ as F } from "../icon/Icon-mDqG7urn.es.js";
|
|
8
|
-
import { _ as K } from "../toast/Toast-DnALWJkx.es.js";
|
|
9
|
-
import { u as De } from "../../vendor/uuid-93tp0umt.es.js";
|
|
10
|
-
let _;
|
|
11
|
-
const Ge = new Uint8Array(16);
|
|
12
|
-
function Xe() {
|
|
13
|
-
if (!_ && (_ = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !_))
|
|
14
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
15
|
-
return _(Ge);
|
|
16
|
-
}
|
|
17
|
-
const ze = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), se = {
|
|
18
|
-
randomUUID: ze
|
|
19
|
-
};
|
|
20
|
-
function B(s, l, d) {
|
|
21
|
-
if (se.randomUUID && !s)
|
|
22
|
-
return se.randomUUID();
|
|
23
|
-
s = s || {};
|
|
24
|
-
const n = s.random || (s.rng || Xe)();
|
|
25
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, De(n);
|
|
26
|
-
}
|
|
27
|
-
const Ce = (s) => {
|
|
28
|
-
if (s instanceof Ze)
|
|
29
|
-
return s.response ? "DEVICE_NOT_CONNECTED" : "DRIVER_NOT_FOUND";
|
|
30
|
-
if (s instanceof Error && ["NOT_SUPPORTED_SYSTEM", "HARDWARE_NOT_SYNCHRONIZED"].includes(
|
|
31
|
-
s.message
|
|
32
|
-
))
|
|
33
|
-
return s.message;
|
|
34
|
-
}, re = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPW51bGwsdD1udWxsLGE7c2VsZi5vbm1lc3NhZ2U9cz0+e2NvbnN0IGU9cy5kYXRhO3N3aXRjaChlLmNvbW1hbmQpe2Nhc2Uic3luYyI6dShlKTticmVhaztjYXNlImNvbm5lY3QiOmwoZSk7YnJlYWs7Y2FzZSJzY2FuIjptKGUpO2JyZWFrO2Nhc2Uic3RvcHNjYW4iOmQoZSk7YnJlYWt9fTtjb25zdCByPXM9PntsZXQgZT0iZXN0YWJsaXNoZWQiO24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOPyhlPSJyZXVzZWQiLHMub25vcGVuKG4sZSksaShzLnRpbWVvdXQpKTpuPW5ldyBXZWJTb2NrZXQoIndzczovL2Rldi1hcGkudGFnc2FtdXJhaS5jb20vcmZpZC1yZWFkZXItZ28vIiksbi5vbm9wZW49KCk9PntlPSJlc3RhYmxpc2hlZCIsbiYmcy5vbm9wZW4obixlKSxpKHMudGltZW91dCl9LG4ub25tZXNzYWdlPW89PntzLm9ubWVzc2FnZShvKSxpKHMudGltZW91dCl9LG4ub25lcnJvcj1vPT57Y29uc29sZS5lcnJvcigi8J+agCB+IFNjYW5uZXIgV29ya2VyOiBvcGVuQ29ubmVjdGlvbiB+IGVycm9yOiIsbykscy5vbmVycm9yKG8pLG49PW51bGx8fG4uY2xvc2UoKSxuPW51bGwsdCYmY2xlYXJUaW1lb3V0KHQpfX0scD0oKT0+e2Qoe3VzZXJJZDphfSksYT12b2lkIDAsbiYmbi5jbG9zZSgpLG49bnVsbCx0JiZjbGVhclRpbWVvdXQodCksY29uc29sZS5pbmZvKCJTb2NrZXQgY29ubmVjdGlvbiBoYXMgYmVlbiBjbG9zZWQhIil9LGk9KHM9MCk9PntzJiYodCYmY2xlYXJUaW1lb3V0KHQpLHQ9c2V0VGltZW91dChwLHMpKX0sdT0oe3VzZXJJZDpzfSk9PnthPXMscih7b25vcGVuOmU9PntlLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY2VkIiwuLi5KU09OLnBhcnNlKGUuZGF0YSl9KX0sb25lcnJvcjplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY19lcnJvciIsZXJyb3I6ZX0pfX0pfSxsPSh7dXNlcklkOnN9KT0+e2E9cyxyKHtvbm9wZW46KGUsbyk9PntvPT09ImVzdGFibGlzaGVkIj9lLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSk6cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9yZXVzZWQifSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9lc3RhYmxpc2hlZCIsLi4uSlNPTi5wYXJzZShlLmRhdGEpfSl9LG9uZXJyb3I6ZT0+e3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yX2Nvbm5lY3RpbmciLGVycm9yOmV9KX19KX0sbT0oe3NjYW5Db21tYW5kOnMsdXNlcklkOmUsc2VyaWFsTnVtYmVyOm8samVuaXNEZXZpY2U6Z30pPT57YT1lLHIoe29ub3BlbjpjPT57Yy5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOnMsdXNlcklkOmUsc291cmNlOiJhcHAiLHNlcmlhbE51bWJlcjpvLGplbmlzRGV2aWNlOmd9LGV2ZW50OiJyZWFkZXIifSkpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fc3RhcnRlZCJ9KX0sb25tZXNzYWdlOmM9Pntwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FubmVkIiwuLi5KU09OLnBhcnNlKGMuZGF0YSl9KX0sb25lcnJvcjpjPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9lcnJvciIsZXJyb3I6Y30pfX0pfSxkPSh7dXNlcklkOnN9KT0+e24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOJiYobi5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOiJzdG9wc2NhbiIsdXNlcklkOnMsc291cmNlOiJhcHAifSxldmVudDoicmVhZGVyIn0pKSxwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FuX3N0b3BwZWQifSksY29uc29sZS5pbmZvKCJTY2FuIFByb2Nlc3MgU3RvcHBlZCEiKSl9fSkoKTsK", Oe = (s) => Uint8Array.from(atob(s), (l) => l.charCodeAt(0)), oe = typeof self < "u" && self.Blob && new Blob([Oe(re)], { type: "text/javascript;charset=utf-8" });
|
|
35
|
-
function Ee(s) {
|
|
36
|
-
let l;
|
|
37
|
-
try {
|
|
38
|
-
if (l = oe && (self.URL || self.webkitURL).createObjectURL(oe), !l) throw "";
|
|
39
|
-
const d = new Worker(l, {
|
|
40
|
-
name: s == null ? void 0 : s.name
|
|
41
|
-
});
|
|
42
|
-
return d.addEventListener("error", () => {
|
|
43
|
-
(self.URL || self.webkitURL).revokeObjectURL(l);
|
|
44
|
-
}), d;
|
|
45
|
-
} catch {
|
|
46
|
-
return new Worker(
|
|
47
|
-
"data:text/javascript;base64," + re,
|
|
48
|
-
{
|
|
49
|
-
name: s == null ? void 0 : s.name
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
} finally {
|
|
53
|
-
l && (self.URL || self.webkitURL).revokeObjectURL(l);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const ie = () => window.devices ?? [], _e = () => window.device ?? { RFID: null, QR: null }, ae = ce(ie()), le = ce(_e()), Je = () => {
|
|
57
|
-
const s = (n) => {
|
|
58
|
-
window.devices = n, d();
|
|
59
|
-
}, l = (n) => {
|
|
60
|
-
window.device = n, le.value = n;
|
|
61
|
-
}, d = () => {
|
|
62
|
-
ae.value = ie();
|
|
63
|
-
};
|
|
64
|
-
return {
|
|
65
|
-
devices: ae,
|
|
66
|
-
device: le,
|
|
67
|
-
saveDevices: s,
|
|
68
|
-
setDevice: l,
|
|
69
|
-
loadDevices: d
|
|
70
|
-
};
|
|
71
|
-
}, Le = { class: "flex gap-2 items-center" }, Ue = { class: "flex gap-0.5 items-center leading-4" }, xe = { class: "flex gap-5 items-center" }, Pe = /* @__PURE__ */ W("span", null, "do not leave this page", -1), Fe = {
|
|
72
|
-
key: 1,
|
|
73
|
-
class: "text-xs font-medium leading-[16.39px] tracking-[0.02em]"
|
|
74
|
-
}, en = /* @__PURE__ */ we({
|
|
75
|
-
__name: "ButtonScan",
|
|
76
|
-
props: {
|
|
77
|
-
label: {},
|
|
78
|
-
icon: {},
|
|
79
|
-
type: { default: "RFID" },
|
|
80
|
-
autoSwitch: { type: Boolean },
|
|
81
|
-
scanValidation: {},
|
|
82
|
-
modelValue: {},
|
|
83
|
-
bulk: { type: Boolean },
|
|
84
|
-
id: {},
|
|
85
|
-
disabled: { type: Boolean },
|
|
86
|
-
powerbank: { type: Boolean },
|
|
87
|
-
labelOnly: { type: Boolean },
|
|
88
|
-
outlined: { type: Boolean },
|
|
89
|
-
severity: {},
|
|
90
|
-
size: { default: void 0 },
|
|
91
|
-
style: {},
|
|
92
|
-
class: {},
|
|
93
|
-
iconPos: {},
|
|
94
|
-
iconClass: {},
|
|
95
|
-
tooltip: {},
|
|
96
|
-
tooltipPos: {},
|
|
97
|
-
badge: {},
|
|
98
|
-
badgeClass: {},
|
|
99
|
-
badgeSeverity: {},
|
|
100
|
-
loading: { type: Boolean },
|
|
101
|
-
loadingIcon: {},
|
|
102
|
-
link: { type: Boolean },
|
|
103
|
-
raised: { type: Boolean },
|
|
104
|
-
rounded: { type: Boolean },
|
|
105
|
-
text: { type: Boolean },
|
|
106
|
-
plain: { type: Boolean }
|
|
107
|
-
},
|
|
108
|
-
emits: ["update:modelValue", "connect", "connected", "scan", "stop", "error", "beforeStartScan"],
|
|
109
|
-
setup(s, { expose: l, emit: d }) {
|
|
110
|
-
const n = s, c = d;
|
|
111
|
-
Re(() => {
|
|
112
|
-
q();
|
|
113
|
-
});
|
|
114
|
-
const r = Ie(), { devices: ue, device: g, saveDevices: de, setDevice: Q } = Je(), S = v(!1), T = v(!1), R = v(!1), k = v(!1), N = v(!1), J = v(!1), b = v(), j = v(0), a = v(n.type ?? "RFID"), L = [], D = I(
|
|
115
|
-
() => a.value === "RFID" ? "RFID_Scanning" : "QR_Scanning"
|
|
116
|
-
), f = I(
|
|
117
|
-
() => a.value === "RFID" ? "RFID_Connecting" : "QR_Connecting"
|
|
118
|
-
);
|
|
119
|
-
I(() => `The scanner could not identify the ${a.value} code. It may be damaged or improperly positioned. Please check the code and try again.`);
|
|
120
|
-
const ve = () => {
|
|
121
|
-
window.scannerWorker ?? (window.scannerWorker = new Ee());
|
|
122
|
-
}, U = () => {
|
|
123
|
-
const { serialNumber: e = "" } = g.value[a.value] ?? {};
|
|
124
|
-
return e;
|
|
125
|
-
}, H = async () => {
|
|
126
|
-
try {
|
|
127
|
-
ve(), await me(), S.value = !0;
|
|
128
|
-
} catch (e) {
|
|
129
|
-
console.error(e), S.value = !1;
|
|
130
|
-
}
|
|
131
|
-
}, me = async () => {
|
|
132
|
-
var e;
|
|
133
|
-
try {
|
|
134
|
-
if (!ye())
|
|
135
|
-
throw new Error("NOT_SUPPORTED_SYSTEM");
|
|
136
|
-
if (c("connect"), !ue.value.length || !g.value[a.value])
|
|
137
|
-
throw new Error("HARDWARE_NOT_SYNCHRONIZED");
|
|
138
|
-
r.add({
|
|
139
|
-
customMessage: !0,
|
|
140
|
-
message: a.value === "QR" ? "Connecting QR Scanner..." : "Connecting RFID Scanner...",
|
|
141
|
-
severity: "info",
|
|
142
|
-
life: 0,
|
|
143
|
-
group: f.value
|
|
144
|
-
}), R.value = !0;
|
|
145
|
-
const o = () => {
|
|
146
|
-
c("connected", g.value[a.value]), setTimeout(() => {
|
|
147
|
-
x();
|
|
148
|
-
}, 0);
|
|
149
|
-
};
|
|
150
|
-
window.scannerWorker.onmessage = ({ data: t }) => {
|
|
151
|
-
var h;
|
|
152
|
-
if (t.status === "connection_established")
|
|
153
|
-
try {
|
|
154
|
-
const { error: m } = (t == null ? void 0 : t.data) ?? {}, i = ((h = t == null ? void 0 : t.data) == null ? void 0 : h.deviceList) ?? [], Z = g.value[n.type], p = i.some(
|
|
155
|
-
(z) => z.serialNumber === (Z == null ? void 0 : Z.serialNumber)
|
|
156
|
-
);
|
|
157
|
-
if (i.length && p)
|
|
158
|
-
o();
|
|
159
|
-
else {
|
|
160
|
-
if (m === "Driver not connected to server")
|
|
161
|
-
throw new Error("DRIVER_NOT_FOUND");
|
|
162
|
-
if (!i.length)
|
|
163
|
-
throw new Error("DEVICE_NOT_CONNECTED");
|
|
164
|
-
}
|
|
165
|
-
r.removeGroup(f.value);
|
|
166
|
-
} catch (m) {
|
|
167
|
-
M(m);
|
|
168
|
-
}
|
|
169
|
-
else t.status === "connection_reused" ? o() : t.status === "error_connecting" && (r.removeGroup(f.value), r.add({
|
|
170
|
-
customMessage: !0,
|
|
171
|
-
message: "Scanner connection failed",
|
|
172
|
-
severity: "error"
|
|
173
|
-
}));
|
|
174
|
-
}, window.scannerWorker.postMessage({
|
|
175
|
-
command: "connect",
|
|
176
|
-
userId: (e = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : e._id
|
|
177
|
-
});
|
|
178
|
-
} catch (o) {
|
|
179
|
-
M(o);
|
|
180
|
-
}
|
|
181
|
-
}, x = (e = !1, o = !1) => {
|
|
182
|
-
var h;
|
|
183
|
-
J.value = !1, r.removeGroup(f.value), localStorage.devmode || (window.addEventListener("blur", X), window.addEventListener("beforeunload", X));
|
|
184
|
-
const t = g.value[a.value];
|
|
185
|
-
if (t) {
|
|
186
|
-
let m = "";
|
|
187
|
-
n.bulk ? m = `bulkscan-${a.value.toLowerCase()}` : m = `scan-${a.value.toLowerCase()}`, window.scannerWorker.onmessage = async ({ data: i }) => {
|
|
188
|
-
var Z;
|
|
189
|
-
if (i.status === "scan_started")
|
|
190
|
-
o || (j.value++, setTimeout(() => {
|
|
191
|
-
r.add({
|
|
192
|
-
customMessage: !0,
|
|
193
|
-
message: "scanning",
|
|
194
|
-
severity: "info",
|
|
195
|
-
life: 0,
|
|
196
|
-
group: D.value
|
|
197
|
-
});
|
|
198
|
-
}, 0));
|
|
199
|
-
else if (i.status === "scanned") {
|
|
200
|
-
const { code: p, error: z, deviceList: Ne } = (i == null ? void 0 : i.data) ?? {};
|
|
201
|
-
if (z) return pe(z, Ne);
|
|
202
|
-
if (p) {
|
|
203
|
-
if (["scan-rfid", "scan-qr"].includes(m)) {
|
|
204
|
-
N.value = !!n.scanValidation;
|
|
205
|
-
const he = await ((Z = n.scanValidation) == null ? void 0 : Z.call(
|
|
206
|
-
n,
|
|
207
|
-
a.value,
|
|
208
|
-
p,
|
|
209
|
-
U()
|
|
210
|
-
)) ?? !0;
|
|
211
|
-
if (N.value = !1, he)
|
|
212
|
-
n.autoSwitch ? ($(), fe()) : V(!0);
|
|
213
|
-
else {
|
|
214
|
-
J.value || x(!1, !0);
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
L.includes(p) || (c("update:modelValue", p), c("scan", p, U()), n.bulk && L.push(p));
|
|
219
|
-
}
|
|
220
|
-
} else i.status === "scan_stopped" ? V(!0) : i.status === "scan_error" && A(i.error);
|
|
221
|
-
}, window.scannerWorker.onerror = A, window.scannerWorker.postMessage({
|
|
222
|
-
command: "scan",
|
|
223
|
-
scanCommand: m,
|
|
224
|
-
userId: (h = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : h._id,
|
|
225
|
-
source: "app",
|
|
226
|
-
jenisDevice: t.jenisDevice,
|
|
227
|
-
serialNumber: t.serialNumber,
|
|
228
|
-
newConnection: e
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
}, M = (e) => {
|
|
232
|
-
Q({ RFID: void 0, QR: void 0 }), k.value = !0, b.value = e instanceof Error ? e.message : Ce(e), R.value = !1, c("error", e), r.removeGroup(f.value);
|
|
233
|
-
}, pe = (e, o = []) => {
|
|
234
|
-
let t = "";
|
|
235
|
-
b.value = void 0, Y(!0), e === "Time out" ? t = "The scanning process has timed out. Please try again." : e === "Driver not connected to server" ? b.value = "DRIVER_NOT_FOUND" : e === "Device disconnected" && (b.value = "DEVICE_DISCONNECTED", de(o), Q({ RFID: void 0, QR: void 0 })), c("error", e), k.value = !!b.value, t && r.add({
|
|
236
|
-
customMessage: !0,
|
|
237
|
-
message: t,
|
|
238
|
-
error: e,
|
|
239
|
-
life: 6e3,
|
|
240
|
-
group: D.value
|
|
241
|
-
});
|
|
242
|
-
}, A = (e) => {
|
|
243
|
-
Y(!0), c("error", e), r.add({
|
|
244
|
-
customMessage: !0,
|
|
245
|
-
message: "An unexpected error occurred during scanning. Please try again, and if the issue persists, contact your administrator for assistance.",
|
|
246
|
-
error: e,
|
|
247
|
-
life: 6e3,
|
|
248
|
-
group: D.value
|
|
249
|
-
});
|
|
250
|
-
}, G = () => {
|
|
251
|
-
window.Cypress ? be() : H();
|
|
252
|
-
}, be = () => {
|
|
253
|
-
r.add({
|
|
254
|
-
customMessage: !0,
|
|
255
|
-
message: "Connecting device...",
|
|
256
|
-
severity: "info",
|
|
257
|
-
life: 3e3,
|
|
258
|
-
group: f.value
|
|
259
|
-
}), setTimeout(async () => {
|
|
260
|
-
var e;
|
|
261
|
-
if (c("connect"), c("connected", {
|
|
262
|
-
jenisDevice: "Handheld",
|
|
263
|
-
serialNumber: B(),
|
|
264
|
-
API: "v2",
|
|
265
|
-
rfidScan: !0,
|
|
266
|
-
qrScan: !0,
|
|
267
|
-
name: "Device Test"
|
|
268
|
-
}), n.bulk)
|
|
269
|
-
c("scan", B(), "serialNumber");
|
|
270
|
-
else {
|
|
271
|
-
const o = B();
|
|
272
|
-
N.value = !!n.scanValidation;
|
|
273
|
-
const t = await ((e = n.scanValidation) == null ? void 0 : e.call(
|
|
274
|
-
n,
|
|
275
|
-
a.value,
|
|
276
|
-
o,
|
|
277
|
-
U()
|
|
278
|
-
)) ?? !0;
|
|
279
|
-
N.value = !1, t && (c("scan", o, "serialNumber"), V());
|
|
280
|
-
}
|
|
281
|
-
}, 100);
|
|
282
|
-
}, $ = () => {
|
|
283
|
-
r.removeGroup("RFID_Scanning"), r.removeGroup("QR_Scanning");
|
|
284
|
-
}, V = (e = !1) => {
|
|
285
|
-
$(), R.value = !1, q(), e && c("stop"), L.splice(0);
|
|
286
|
-
}, Y = (e = !1) => {
|
|
287
|
-
var o;
|
|
288
|
-
window.scannerWorker.onmessage = null, window.scannerWorker.postMessage({
|
|
289
|
-
command: "stopscan",
|
|
290
|
-
userId: (o = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : o._id
|
|
291
|
-
}), V(e), J.value = !0, S.value = !1;
|
|
292
|
-
}, fe = () => {
|
|
293
|
-
n.bulk || (g.value[a.value] ? (a.value = a.value === "QR" ? "RFID" : "QR", x()) : (V(), k.value = !0, b.value = "HARDWARE_NOT_SYNCHRONIZED", R.value = !1));
|
|
294
|
-
}, X = (e) => {
|
|
295
|
-
T.value = !0, Y(!0), e.preventDefault();
|
|
296
|
-
}, q = () => {
|
|
297
|
-
window.removeEventListener("blur", X), window.removeEventListener("beforeunload", X);
|
|
298
|
-
}, ye = () => {
|
|
299
|
-
const { userAgent: e } = navigator;
|
|
300
|
-
return e.includes("Windows");
|
|
301
|
-
}, ge = I(() => {
|
|
302
|
-
if (!n.labelOnly)
|
|
303
|
-
return n.icon ? n.icon : n.autoSwitch ? "qr-scan" : a.value === "QR" ? "qr" : "rfid";
|
|
304
|
-
}), Se = I(() => n.label ? n.label : n.autoSwitch ? "SCAN TAG" : a.value === "QR" ? "Scan QR" : "Scan RFID");
|
|
305
|
-
return l({
|
|
306
|
-
onBeforeStartScan: G,
|
|
307
|
-
startScan: H,
|
|
308
|
-
stopScan: Y
|
|
309
|
-
}), (e, o) => (u(), w(C, null, [
|
|
310
|
-
y(te, ke(e.$attrs, {
|
|
311
|
-
class: [
|
|
312
|
-
{
|
|
313
|
-
"[&_i]:w-2 [&_i]:h-2": e.type === "QR",
|
|
314
|
-
"[&_i]:w-[11px] [&_i]:h-[7px]": e.type === "RFID"
|
|
315
|
-
},
|
|
316
|
-
"!px-1.5"
|
|
317
|
-
],
|
|
318
|
-
disabled: n.disabled,
|
|
319
|
-
icon: ge.value,
|
|
320
|
-
label: Se.value,
|
|
321
|
-
outlined: n.outlined,
|
|
322
|
-
severity: n.severity,
|
|
323
|
-
size: n.size,
|
|
324
|
-
onClick: G
|
|
325
|
-
}), null, 16, ["class", "disabled", "icon", "label", "outlined", "severity", "size"]),
|
|
326
|
-
y(Te, {
|
|
327
|
-
visible: k.value,
|
|
328
|
-
"onUpdate:visible": o[0] || (o[0] = (t) => k.value = t),
|
|
329
|
-
bulk: e.bulk,
|
|
330
|
-
"error-code": b.value,
|
|
331
|
-
"search-by": a.value,
|
|
332
|
-
onScan: G
|
|
333
|
-
}, null, 8, ["visible", "bulk", "error-code", "search-by"]),
|
|
334
|
-
S.value ? (u(), O(K, {
|
|
335
|
-
key: 0,
|
|
336
|
-
"base-z-index": 9983,
|
|
337
|
-
group: f.value,
|
|
338
|
-
icon: "info"
|
|
339
|
-
}, null, 8, ["group"])) : E("", !0),
|
|
340
|
-
S.value ? (u(), O(K, {
|
|
341
|
-
key: 1,
|
|
342
|
-
"base-z-index": 9997,
|
|
343
|
-
class: "!absolute !bottom-[80px] !h-max",
|
|
344
|
-
group: "scan-error-validation"
|
|
345
|
-
})) : E("", !0),
|
|
346
|
-
S.value ? (u(), O(K, {
|
|
347
|
-
key: j.value,
|
|
348
|
-
"base-z-index": 9984,
|
|
349
|
-
group: D.value,
|
|
350
|
-
class: "[&_[data-pc-section=buttoncontainer]]"
|
|
351
|
-
}, {
|
|
352
|
-
message: Ve(({ message: t }) => [
|
|
353
|
-
W("div", {
|
|
354
|
-
class: ee(
|
|
355
|
-
t.detail == "scanning" ? "w-full -mr-8 z-10 flex gap-2 justify-between items-center text-general-800 text-xs font-normal" : "w-full"
|
|
356
|
-
)
|
|
357
|
-
}, [
|
|
358
|
-
t.detail === "scanning" ? (u(), w(C, { key: 0 }, [
|
|
359
|
-
W("section", Le, [
|
|
360
|
-
y(F, {
|
|
361
|
-
class: "animate-spin text-base",
|
|
362
|
-
icon: "loader-4"
|
|
363
|
-
}),
|
|
364
|
-
W("span", Ue, [
|
|
365
|
-
a.value === "RFID" ? (u(), w(C, { key: 0 }, [
|
|
366
|
-
y(F, {
|
|
367
|
-
class: "text-base !w-4 !h-4",
|
|
368
|
-
icon: "rfid"
|
|
369
|
-
}),
|
|
370
|
-
ne(" " + P(N.value ? "Validating RFID..." : "RFID Scanning..."), 1)
|
|
371
|
-
], 64)) : (u(), w(C, { key: 1 }, [
|
|
372
|
-
y(F, {
|
|
373
|
-
class: "text-sm",
|
|
374
|
-
icon: "qr"
|
|
375
|
-
}),
|
|
376
|
-
ne(" " + P(N.value ? "Validating QR..." : "QR Scanning..."), 1)
|
|
377
|
-
], 64))
|
|
378
|
-
])
|
|
379
|
-
]),
|
|
380
|
-
W("section", xe, [
|
|
381
|
-
Pe,
|
|
382
|
-
y(te, {
|
|
383
|
-
onClick: o[1] || (o[1] = (h) => Y(!0)),
|
|
384
|
-
label: "Stop Scan",
|
|
385
|
-
severity: "danger"
|
|
386
|
-
})
|
|
387
|
-
])
|
|
388
|
-
], 64)) : (u(), w("span", Fe, P(t.detail), 1))
|
|
389
|
-
], 2)
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}, 8, ["group"])) : E("", !0),
|
|
393
|
-
y(We, {
|
|
394
|
-
visible: T.value,
|
|
395
|
-
"onUpdate:visible": o[2] || (o[2] = (t) => T.value = t),
|
|
396
|
-
header: `${a.value} SCAN STOPPED`,
|
|
397
|
-
onConfirm: o[3] || (o[3] = (t) => (T.value = !1, G())),
|
|
398
|
-
"confirm-label": "Continue",
|
|
399
|
-
message: "The scan process was interrupted because you want to leave this window.",
|
|
400
|
-
severity: "danger"
|
|
401
|
-
}, null, 8, ["visible", "header"]),
|
|
402
|
-
(u(), O(Ye, { to: "body" }, [
|
|
403
|
-
R.value ? (u(), w("div", {
|
|
404
|
-
key: 0,
|
|
405
|
-
class: ee([
|
|
406
|
-
e.$preset.dialog.mask({ props: { modal: !0 } }).class,
|
|
407
|
-
"w-screen h-screen fixed top-0 left-0",
|
|
408
|
-
"!z-[9982]"
|
|
409
|
-
]),
|
|
410
|
-
"data-ts-section": "toast-mask"
|
|
411
|
-
}, null, 2)) : E("", !0)
|
|
412
|
-
]))
|
|
413
|
-
], 64));
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
export {
|
|
417
|
-
Ee as W,
|
|
418
|
-
en as _,
|
|
419
|
-
Ce as g,
|
|
420
|
-
Je as u
|
|
421
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["axios","vue","../assetinfo/AssetInfo-BBgKToRP.system.js","../button/Button-Okx1_kOu.system.js","../dialogconfirm/DialogConfirm-o7_v7F31.system.js","../hardwaresync/HardwareSync--HomfQuH.system.js","../icon/Icon-DUylRmY4.system.js","../toast/Toast-Pc_DOZ5-.system.js","../../vendor/uuid-Cymn6orr.system.js"],function(G,Fe){"use strict";var $,B,q,ee,v,N,y,d,I,b,Y,T,ne,te,h,P,F,X,se,oe,j,ae,le,E,O,ce;return{setters:[e=>{$=e.AxiosError},e=>{B=e.ref,q=e.defineComponent,ee=e.onBeforeUnmount,v=e.shallowRef,N=e.computed,y=e.createElementBlock,d=e.openBlock,I=e.Fragment,b=e.createVNode,Y=e.createBlock,T=e.createCommentVNode,ne=e.mergeProps,te=e.withCtx,h=e.createElementVNode,P=e.normalizeClass,F=e.createTextVNode,X=e.toDisplayString,se=e.Teleport},e=>{oe=e.u},e=>{j=e._},e=>{ae=e._},e=>{le=e._},e=>{E=e._},e=>{O=e._},e=>{ce=e.u}],execute:function(){G("W",de);let e;const we=new Uint8Array(16);function Ze(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(we)}const re={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function K(o,c,m){if(re.randomUUID&&!o)return re.randomUUID();o=o||{};const t=o.random||(o.rng||Ze)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,ce(t)}const Re=G("g",o=>{if(o instanceof $)return o.response?"DEVICE_NOT_CONNECTED":"DRIVER_NOT_FOUND";if(o instanceof Error&&["NOT_SUPPORTED_SYSTEM","HARDWARE_NOT_SYNCHRONIZED"].includes(o.message))return o.message}),ie="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPW51bGwsdD1udWxsLGE7c2VsZi5vbm1lc3NhZ2U9cz0+e2NvbnN0IGU9cy5kYXRhO3N3aXRjaChlLmNvbW1hbmQpe2Nhc2Uic3luYyI6dShlKTticmVhaztjYXNlImNvbm5lY3QiOmwoZSk7YnJlYWs7Y2FzZSJzY2FuIjptKGUpO2JyZWFrO2Nhc2Uic3RvcHNjYW4iOmQoZSk7YnJlYWt9fTtjb25zdCByPXM9PntsZXQgZT0iZXN0YWJsaXNoZWQiO24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOPyhlPSJyZXVzZWQiLHMub25vcGVuKG4sZSksaShzLnRpbWVvdXQpKTpuPW5ldyBXZWJTb2NrZXQoIndzczovL2Rldi1hcGkudGFnc2FtdXJhaS5jb20vcmZpZC1yZWFkZXItZ28vIiksbi5vbm9wZW49KCk9PntlPSJlc3RhYmxpc2hlZCIsbiYmcy5vbm9wZW4obixlKSxpKHMudGltZW91dCl9LG4ub25tZXNzYWdlPW89PntzLm9ubWVzc2FnZShvKSxpKHMudGltZW91dCl9LG4ub25lcnJvcj1vPT57Y29uc29sZS5lcnJvcigi8J+agCB+IFNjYW5uZXIgV29ya2VyOiBvcGVuQ29ubmVjdGlvbiB+IGVycm9yOiIsbykscy5vbmVycm9yKG8pLG49PW51bGx8fG4uY2xvc2UoKSxuPW51bGwsdCYmY2xlYXJUaW1lb3V0KHQpfX0scD0oKT0+e2Qoe3VzZXJJZDphfSksYT12b2lkIDAsbiYmbi5jbG9zZSgpLG49bnVsbCx0JiZjbGVhclRpbWVvdXQodCksY29uc29sZS5pbmZvKCJTb2NrZXQgY29ubmVjdGlvbiBoYXMgYmVlbiBjbG9zZWQhIil9LGk9KHM9MCk9PntzJiYodCYmY2xlYXJUaW1lb3V0KHQpLHQ9c2V0VGltZW91dChwLHMpKX0sdT0oe3VzZXJJZDpzfSk9PnthPXMscih7b25vcGVuOmU9PntlLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY2VkIiwuLi5KU09OLnBhcnNlKGUuZGF0YSl9KX0sb25lcnJvcjplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY19lcnJvciIsZXJyb3I6ZX0pfX0pfSxsPSh7dXNlcklkOnN9KT0+e2E9cyxyKHtvbm9wZW46KGUsbyk9PntvPT09ImVzdGFibGlzaGVkIj9lLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSk6cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9yZXVzZWQifSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9lc3RhYmxpc2hlZCIsLi4uSlNPTi5wYXJzZShlLmRhdGEpfSl9LG9uZXJyb3I6ZT0+e3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yX2Nvbm5lY3RpbmciLGVycm9yOmV9KX19KX0sbT0oe3NjYW5Db21tYW5kOnMsdXNlcklkOmUsc2VyaWFsTnVtYmVyOm8samVuaXNEZXZpY2U6Z30pPT57YT1lLHIoe29ub3BlbjpjPT57Yy5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOnMsdXNlcklkOmUsc291cmNlOiJhcHAiLHNlcmlhbE51bWJlcjpvLGplbmlzRGV2aWNlOmd9LGV2ZW50OiJyZWFkZXIifSkpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fc3RhcnRlZCJ9KX0sb25tZXNzYWdlOmM9Pntwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FubmVkIiwuLi5KU09OLnBhcnNlKGMuZGF0YSl9KX0sb25lcnJvcjpjPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9lcnJvciIsZXJyb3I6Y30pfX0pfSxkPSh7dXNlcklkOnN9KT0+e24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOJiYobi5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOiJzdG9wc2NhbiIsdXNlcklkOnMsc291cmNlOiJhcHAifSxldmVudDoicmVhZGVyIn0pKSxwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FuX3N0b3BwZWQifSksY29uc29sZS5pbmZvKCJTY2FuIFByb2Nlc3MgU3RvcHBlZCEiKSl9fSkoKTsK",ke=o=>Uint8Array.from(atob(o),c=>c.charCodeAt(0)),ue=typeof self<"u"&&self.Blob&&new Blob([ke(ie)],{type:"text/javascript;charset=utf-8"});function de(o){let c;try{if(c=ue&&(self.URL||self.webkitURL).createObjectURL(ue),!c)throw"";const m=new Worker(c,{name:o==null?void 0:o.name});return m.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(c)}),m}catch{return new Worker("data:text/javascript;base64,"+ie,{name:o==null?void 0:o.name})}finally{c&&(self.URL||self.webkitURL).revokeObjectURL(c)}}const ve=()=>window.devices??[],Ve=()=>window.device??{RFID:null,QR:null},me=B(ve()),be=B(Ve()),Ie=G("u",()=>{const o=t=>{window.devices=t,m()},c=t=>{window.device=t,be.value=t},m=()=>{me.value=ve()};return{devices:me,device:be,saveDevices:o,setDevice:c,loadDevices:m}}),Ye={class:"flex gap-2 items-center"},Te={class:"flex gap-0.5 items-center leading-4"},We={class:"flex gap-5 items-center"},De=h("span",null,"do not leave this page",-1),ze={key:1,class:"text-xs font-medium leading-[16.39px] tracking-[0.02em]"},Ke=G("_",q({__name:"ButtonScan",props:{label:{},icon:{},type:{default:"RFID"},autoSwitch:{type:Boolean},scanValidation:{},modelValue:{},bulk:{type:Boolean},id:{},disabled:{type:Boolean},powerbank:{type:Boolean},labelOnly:{type:Boolean},outlined:{type:Boolean},severity:{},size:{default:void 0},style:{},class:{},iconPos:{},iconClass:{},tooltip:{},tooltipPos:{},badge:{},badgeClass:{},badgeSeverity:{},loading:{type:Boolean},loadingIcon:{},link:{type:Boolean},raised:{type:Boolean},rounded:{type:Boolean},text:{type:Boolean},plain:{type:Boolean}},emits:["update:modelValue","connect","connected","scan","stop","error","beforeStartScan"],setup(o,{expose:c,emit:m}){const t=o,r=m;ee(()=>{he()});const i=oe(),{devices:Ce,device:w,saveDevices:Ge,setDevice:fe}=Ie(),Z=v(!1),_=v(!1),W=v(!1),D=v(!1),R=v(!1),Q=v(!1),g=v(),pe=v(0),l=v(t.type??"RFID"),H=[],J=N(()=>l.value==="RFID"?"RFID_Scanning":"QR_Scanning"),S=N(()=>l.value==="RFID"?"RFID_Connecting":"QR_Connecting");N(()=>`The scanner could not identify the ${l.value} code. It may be damaged or improperly positioned. Please check the code and try again.`);const Xe=()=>{window.scannerWorker??(window.scannerWorker=new de)},M=()=>{const{serialNumber:n=""}=w.value[l.value]??{};return n},ye=async()=>{try{Xe(),await Ee(),Z.value=!0}catch(n){console.error(n),Z.value=!1}},Ee=async()=>{var n;try{if(!Ue())throw new Error("NOT_SUPPORTED_SYSTEM");if(r("connect"),!Ce.value.length||!w.value[l.value])throw new Error("HARDWARE_NOT_SYNCHRONIZED");i.add({customMessage:!0,message:l.value==="QR"?"Connecting QR Scanner...":"Connecting RFID Scanner...",severity:"info",life:0,group:S.value}),W.value=!0;const a=()=>{r("connected",w.value[l.value]),setTimeout(()=>{A()},0)};window.scannerWorker.onmessage=({data:s})=>{var k;if(s.status==="connection_established")try{const{error:f}=(s==null?void 0:s.data)??{},u=((k=s==null?void 0:s.data)==null?void 0:k.deviceList)??[],V=w.value[t.type],p=u.some(x=>x.serialNumber===(V==null?void 0:V.serialNumber));if(u.length&&p)a();else{if(f==="Driver not connected to server")throw new Error("DRIVER_NOT_FOUND");if(!u.length)throw new Error("DEVICE_NOT_CONNECTED")}i.removeGroup(S.value)}catch(f){ge(f)}else s.status==="connection_reused"?a():s.status==="error_connecting"&&(i.removeGroup(S.value),i.add({customMessage:!0,message:"Scanner connection failed",severity:"error"}))},window.scannerWorker.postMessage({command:"connect",userId:(n=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:n._id})}catch(a){ge(a)}},A=(n=!1,a=!1)=>{var k;Q.value=!1,i.removeGroup(S.value),localStorage.devmode||(window.addEventListener("blur",L),window.addEventListener("beforeunload",L));const s=w.value[l.value];if(s){let f="";t.bulk?f=`bulkscan-${l.value.toLowerCase()}`:f=`scan-${l.value.toLowerCase()}`,window.scannerWorker.onmessage=async({data:u})=>{var V;if(u.status==="scan_started")a||(pe.value++,setTimeout(()=>{i.add({customMessage:!0,message:"scanning",severity:"info",life:0,group:J.value})},0));else if(u.status==="scanned"){const{code:p,error:x,deviceList:Be}=(u==null?void 0:u.data)??{};if(x)return Oe(x,Be);if(p){if(["scan-rfid","scan-qr"].includes(f)){R.value=!!t.scanValidation;const Pe=await((V=t.scanValidation)==null?void 0:V.call(t,l.value,p,M()))??!0;if(R.value=!1,Pe)t.autoSwitch?(Ne(),Je()):z(!0);else{Q.value||A(!1,!0);return}}H.includes(p)||(r("update:modelValue",p),r("scan",p,M()),t.bulk&&H.push(p))}}else u.status==="scan_stopped"?z(!0):u.status==="scan_error"&&Se(u.error)},window.scannerWorker.onerror=Se,window.scannerWorker.postMessage({command:"scan",scanCommand:f,userId:(k=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:k._id,source:"app",jenisDevice:s.jenisDevice,serialNumber:s.serialNumber,newConnection:n})}},ge=n=>{fe({RFID:void 0,QR:void 0}),D.value=!0,g.value=n instanceof Error?n.message:Re(n),W.value=!1,r("error",n),i.removeGroup(S.value)},Oe=(n,a=[])=>{let s="";g.value=void 0,C(!0),n==="Time out"?s="The scanning process has timed out. Please try again.":n==="Driver not connected to server"?g.value="DRIVER_NOT_FOUND":n==="Device disconnected"&&(g.value="DEVICE_DISCONNECTED",Ge(a),fe({RFID:void 0,QR:void 0})),r("error",n),D.value=!!g.value,s&&i.add({customMessage:!0,message:s,error:n,life:6e3,group:J.value})},Se=n=>{C(!0),r("error",n),i.add({customMessage:!0,message:"An unexpected error occurred during scanning. Please try again, and if the issue persists, contact your administrator for assistance.",error:n,life:6e3,group:J.value})},U=()=>{window.Cypress?_e():ye()},_e=()=>{i.add({customMessage:!0,message:"Connecting device...",severity:"info",life:3e3,group:S.value}),setTimeout(async()=>{var n;if(r("connect"),r("connected",{jenisDevice:"Handheld",serialNumber:K(),API:"v2",rfidScan:!0,qrScan:!0,name:"Device Test"}),t.bulk)r("scan",K(),"serialNumber");else{const a=K();R.value=!!t.scanValidation;const s=await((n=t.scanValidation)==null?void 0:n.call(t,l.value,a,M()))??!0;R.value=!1,s&&(r("scan",a,"serialNumber"),z())}},100)},Ne=()=>{i.removeGroup("RFID_Scanning"),i.removeGroup("QR_Scanning")},z=(n=!1)=>{Ne(),W.value=!1,he(),n&&r("stop"),H.splice(0)},C=(n=!1)=>{var a;window.scannerWorker.onmessage=null,window.scannerWorker.postMessage({command:"stopscan",userId:(a=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:a._id}),z(n),Q.value=!0,Z.value=!1},Je=()=>{t.bulk||(w.value[l.value]?(l.value=l.value==="QR"?"RFID":"QR",A()):(z(),D.value=!0,g.value="HARDWARE_NOT_SYNCHRONIZED",W.value=!1))},L=n=>{_.value=!0,C(!0),n.preventDefault()},he=()=>{window.removeEventListener("blur",L),window.removeEventListener("beforeunload",L)},Ue=()=>{const{userAgent:n}=navigator;return n.includes("Windows")},Le=N(()=>{if(!t.labelOnly)return t.icon?t.icon:t.autoSwitch?"qr-scan":l.value==="QR"?"qr":"rfid"}),xe=N(()=>t.label?t.label:t.autoSwitch?"SCAN TAG":l.value==="QR"?"Scan QR":"Scan RFID");return c({onBeforeStartScan:U,startScan:ye,stopScan:C}),(n,a)=>(d(),y(I,null,[b(j,ne(n.$attrs,{class:[{"[&_i]:w-2 [&_i]:h-2":n.type==="QR","[&_i]:w-[11px] [&_i]:h-[7px]":n.type==="RFID"},"!px-1.5"],disabled:t.disabled,icon:Le.value,label:xe.value,outlined:t.outlined,severity:t.severity,size:t.size,onClick:U}),null,16,["class","disabled","icon","label","outlined","severity","size"]),b(le,{visible:D.value,"onUpdate:visible":a[0]||(a[0]=s=>D.value=s),bulk:n.bulk,"error-code":g.value,"search-by":l.value,onScan:U},null,8,["visible","bulk","error-code","search-by"]),Z.value?(d(),Y(O,{key:0,"base-z-index":9983,group:S.value,icon:"info"},null,8,["group"])):T("",!0),Z.value?(d(),Y(O,{key:1,"base-z-index":9997,class:"!absolute !bottom-[80px] !h-max",group:"scan-error-validation"})):T("",!0),Z.value?(d(),Y(O,{key:pe.value,"base-z-index":9984,group:J.value,class:"[&_[data-pc-section=buttoncontainer]]"},{message:te(({message:s})=>[h("div",{class:P(s.detail=="scanning"?"w-full -mr-8 z-10 flex gap-2 justify-between items-center text-general-800 text-xs font-normal":"w-full")},[s.detail==="scanning"?(d(),y(I,{key:0},[h("section",Ye,[b(E,{class:"animate-spin text-base",icon:"loader-4"}),h("span",Te,[l.value==="RFID"?(d(),y(I,{key:0},[b(E,{class:"text-base !w-4 !h-4",icon:"rfid"}),F(" "+X(R.value?"Validating RFID...":"RFID Scanning..."),1)],64)):(d(),y(I,{key:1},[b(E,{class:"text-sm",icon:"qr"}),F(" "+X(R.value?"Validating QR...":"QR Scanning..."),1)],64))])]),h("section",We,[De,b(j,{onClick:a[1]||(a[1]=k=>C(!0)),label:"Stop Scan",severity:"danger"})])],64)):(d(),y("span",ze,X(s.detail),1))],2)]),_:1},8,["group"])):T("",!0),b(ae,{visible:_.value,"onUpdate:visible":a[2]||(a[2]=s=>_.value=s),header:`${l.value} SCAN STOPPED`,onConfirm:a[3]||(a[3]=s=>(_.value=!1,U())),"confirm-label":"Continue",message:"The scan process was interrupted because you want to leave this window.",severity:"danger"},null,8,["visible","header"]),(d(),Y(se,{to:"body"},[W.value?(d(),y("div",{key:0,class:P([n.$preset.dialog.mask({props:{modal:!0}}).class,"w-screen h-screen fixed top-0 left-0","!z-[9982]"]),"data-ts-section":"toast-mask"},null,2)):T("",!0)]))],64))}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/primevue-u6FsQONA.system.js","../assetinfo/AssetInfo-BBgKToRP.system.js","../animation/Animation-6756VN9N.system.js","../icon/Icon-DUylRmY4.system.js"],function(T,R){"use strict";var h,d,p,y,v,f,o,t,u,k,c,g,w,m,S,i;return{setters:[e=>{h=e.defineComponent,d=e.inject,p=e.shallowRef,y=e.ref,v=e.createElementBlock,f=e.openBlock,o=e.mergeProps,t=e.unref,u=e.createVNode,k=e.withModifiers,c=e.createElementVNode,g=e.nextTick},e=>{w=e.f},e=>{m=e.e},e=>{S=e.u},e=>{i=e._}],execute:function(){const e=T("_",h({__name:"ButtonSearch",props:{tableName:{default:"datatable"}},emits:["search","collapsed"],setup(_){const n=d("preset",{}).buttonsearch,{locale:q}=S("ButtonSearch"),s=p(),b=y(),r=p(!1),A=()=>{r.value=!0,I()},I=()=>{g(()=>{b.value&&b.value.$el.focus()})},M=a=>{s.value=a.target.value||void 0};return(a,l)=>{var N,B,j,C,$,x,V,E,P;return r.value?(f(),v("form",o({key:1},(j=t(n))==null?void 0:j.form({context:{showSearchInput:r.value}}),{onSubmit:l[2]||(l[2]=k(()=>{t(m).emit("search-table",{tableName:a.tableName,search:s.value}),a.$emit("search",s.value)},["prevent"]))}),[c("button",o({onClick:l[0]||(l[0]=()=>{s.value=void 0,r.value=!1,a.$emit("collapsed"),t(m).emit("search-table",{tableName:a.tableName,search:void 0}),a.$emit("search",void 0)})},(C=t(n))==null?void 0:C.collapsebutton.root({context:{showSearchInput:r.value}}),{type:"button"}),[u(i,o(($=t(n))==null?void 0:$.collapsebutton.icon,{icon:"arrow-left"}),null,16)],16),u(t(w),o((x=t(n))==null?void 0:x.inputtext,{ref_key:"inputtext",ref:b,"model-value":s.value,placeholder:t(q).searchPlaceholder,onInput:M}),null,16,["model-value","placeholder"]),c("button",o({onClick:l[1]||(l[1]=F=>{s.value=void 0,I()})},(V=t(n))==null?void 0:V.resetbutton.root({query:s.value}),{type:"button"}),[u(i,o((E=t(n))==null?void 0:E.resetbutton.icon,{icon:"close"}),null,16)],16),c("button",o((P=t(n))==null?void 0:P.hiddensubmit,{type:"submit"}),null,16)],16)):(f(),v("button",o({key:0,onClick:A},(N=t(n))==null?void 0:N.buttontrigger.root({context:{showSearchInput:r.value}}),{type:"button"}),[u(i,o((B=t(n))==null?void 0:B.buttontrigger.icon,{icon:"search",info:"Search",severity:"secondary","tooltip-pos":"bottom"}),null,16)],16))}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/vee-validate-Cc_B-qII.system.js","../badge/Badge-CndPv5v9.system.js","../button/Button-Okx1_kOu.system.js","../dialogselecttree/DialogSelectTree-DKxWI9Re.system.js","../fieldwrapper/FieldWrapper-DFjw9hA8.system.js","../icon/Icon-DUylRmY4.system.js","../validatormessage/ValidatorMessage-VVfyqlRF.system.js"],function(W,ae){"use strict";var M,N,A,r,u,b,m,i,D,d,c,C,f,k,$,x,K,E,V,_,j,g,I,O,h,R;return{setters:[l=>{M=l.defineComponent,N=l.onMounted,A=l.reactive,r=l.ref,u=l.computed,b=l.watch,m=l.createElementBlock,i=l.openBlock,D=l.Fragment,d=l.createVNode,c=l.createBlock,C=l.mergeProps,f=l.withCtx,k=l.createCommentVNode,$=l.normalizeStyle,x=l.normalizeClass,K=l.createSlots,E=l.renderSlot,V=l.nextTick},l=>{_=l.u},l=>{j=l._},l=>{g=l._},l=>{I=l._},l=>{O=l._},l=>{h=l._},l=>{R=l._}],execute:function(){const l={key:0,class:"inline-flex gap-1 items-center"},se=W("_",M({__name:"ButtonSelectTree",props:{type:{},value:{},selectedNode:{},fieldDataKey:{},selectionMode:{default:"checkbox"},useValidator:{type:Boolean},fieldName:{default:"selectTree"},mandatory:{type:Boolean,default:!1},validatorMessage:{default:void 0},dialogHeader:{default:void 0},label:{default:void 0},fetchTree:{},params:{},autoSelectAll:{type:Boolean},disableKeys:{},exactDisableKeys:{},disabled:{type:Boolean},exactDisableKey:{},disableNodeAll:{type:Boolean,default:!1},allowEmptySelection:{type:Boolean,default:!0},fieldLabel:{default:void 0},fieldInfo:{default:void 0},invalid:{type:Boolean,default:!1},btnWidth:{},width:{},readonly:{type:Boolean},showDisposableGroups:{type:Boolean},flattenDisposableNode:{type:Boolean},excludedKeys:{},singleEditable:{type:Boolean,default:!0},singleResetable:{type:Boolean},fetchTreeOnButtonRender:{type:Boolean,default:!1}},emits:["update:value","dialogShown","dialogHidden","reset"],setup(P,{emit:Y}){const v=Y,t=P;N(()=>{var e,s;t.useValidator&&(Object.assign(n,_(t.fieldName,a=>Q(a))),t.value&&((s=(e=F.value)==null?void 0:e.treeComponent)==null||s.fetchTreeList(),n.value=t.value))});const n=A({value:t.value}),F=r(),w=r(t.fetchTreeOnButtonRender),B=r(t.fetchTreeOnButtonRender),H=r(0),y=r(!Array.isArray(t.value)&&typeof t.value!="number"&&typeof t.value!="string"?t.value:void 0),S=u({get:()=>y.value,set:e=>{y.value=e,v("update:value",T(e,t.fieldDataKey))}}),z=u(()=>q(n.value??t.value)),J=u(()=>{var a;const s=(t.selectionMode==="checkbox"?((a=z.value)==null?void 0:a.filter(o=>(o==null?void 0:o.toString())!="-1"))??[]:[]).length;return s&&t.selectionMode==="checkbox"?s+(t.type==="group"?" group(s) selected":" category(s) selected"):t.label?t.label:t.type==="group"?"Select Group":"Select Category"}),U=u(()=>t.width?`width: ${t.width}px !important`:void 0),q=e=>{const s=JSON.parse(sessionStorage.getItem(`flatten${t.type}nodes`)??"[]");return e?(Array.isArray(e)?e:[e]).map(a=>{if(typeof a=="number")return a;if(typeof a=="string"){const o=s.find(p=>p._id===a);return o==null?void 0:o.key}return a.key}):[]},T=(e,s)=>{if(Array.isArray(e)&&t.selectionMode==="checkbox")return e.map(a=>s?a==null?void 0:a[s]:a);if(e&&t.selectionMode==="single")return s?e==null?void 0:e[s]:e},Q=async e=>(await V(),(Array.isArray(e)&&!(e!=null&&e.length)||!Array.isArray(e)&&!e)&&t.mandatory?t.validatorMessage?t.validatorMessage:t.type==="group"?"You must pick a group":"You must pick a category":t.invalid&&t.validatorMessage?t.validatorMessage:!0),X=e=>{var s;if(e){const{keys:a,singleNode:o,selectedNodes:p}=e,ee=((s=a[-1])==null?void 0:s.checked)??!1;if(t.selectionMode==="single")S.value=o,n.value=T(S.value,t.fieldDataKey);else{const te=p==null?void 0:p.filter(le=>{var L;return!((L=t.excludedKeys)!=null&&L.includes(Number(le.key)))});n.value=T(te,t.fieldDataKey)??[]}v("update:value",n.value,ee)}},Z=()=>{S.value=void 0,H.value++,v("reset")},G=()=>{w.value=!0,B.value=!1,v("dialogShown")};return b(()=>t.value,e=>{n.value=e}),b(()=>t.selectedNode,e=>{t.selectionMode==="single"&&(y.value=e)},{immediate:!0}),(e,s)=>(i(),m(D,null,[d(O,C(e.$attrs,{info:e.fieldInfo,label:t.fieldLabel,mandatory:t.mandatory,"show-optional-text":e.$attrs["show-optional-text"]!=!1}),{default:f(()=>[y.value?(i(),m("span",l,[d(j,{label:y.value.name,format:"nowrap"},null,8,["label"]),e.singleEditable?(i(),c(g,{key:0,onClick:G,class:"p-0 m-0 !min-w-0 !min-h-0 !h-4 !w-4 focus-visible:ring-0 focus-visible:bg-primary-50",text:""},{default:f(()=>[d(h,{class:"w-full h-full",icon:"edit",severity:"primary"})]),_:1})):k("",!0),e.singleResetable?(i(),c(g,{key:1,onClick:Z,class:"p-0 m-0 !min-w-0 !min-h-0 !h-4 !w-4 focus-visible:ring-0 focus-visible:bg-danger-50",text:""},{default:f(()=>[d(h,{class:"w-full h-full",icon:"close",severity:"danger"})]),_:1})):k("",!0)])):(i(),c(g,{key:1,class:x({"!w-full":!t.width}),disabled:e.disabled,label:J.value,style:$(U.value),onClick:G},null,8,["class","disabled","label","style"])),d(R,{message:n.errorMessage},null,8,["message"])]),_:1},16,["info","label","mandatory","show-optional-text"]),(i(),c(I,{key:H.value+ +B.value,ref_key:"dialogTreeInstance",ref:F,visible:w.value,"onUpdate:visible":s[0]||(s[0]=a=>w.value=a),"allow-empty-selection":e.allowEmptySelection,"auto-select-all":e.autoSelectAll,"disable-keys":e.disableKeys,"disable-node-all":e.disableNodeAll,"exact-disable-key":e.exactDisableKey,"exact-disable-keys":e.exactDisableKeys,"excluded-keys":e.excludedKeys,"fetch-tree":e.fetchTree,"flatten-disposable-node":e.flattenDisposableNode,header:e.dialogHeader,hidden:B.value,keys:z.value,params:e.params,readonly:t.readonly,"selection-mode":t.selectionMode,"show-disposable-groups":t.showDisposableGroups,type:t.type,onHide:s[1]||(s[1]=a=>e.$emit("dialogHidden")),onSelect:X},K({_:2},[e.$slots.treenode?{name:"treenode",fn:f(({node:a})=>[E(e.$slots,"treenode",{node:a})]),key:"0"}:void 0]),1032,["visible","allow-empty-selection","auto-select-all","disable-keys","disable-node-all","exact-disable-key","exact-disable-keys","excluded-keys","fetch-tree","flatten-disposable-node","header","hidden","keys","params","readonly","selection-mode","show-disposable-groups","type"]))],64))}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../badge/Badge-CndPv5v9.system.js","../button/Button-Okx1_kOu.system.js","../dialogconfirm/DialogConfirm-o7_v7F31.system.js","../icon/Icon-DUylRmY4.system.js","../dialogselectuser/DialogSelectUser-BZTSktHZ.system.js"],function(V,R){"use strict";var h,B,u,c,i,m,f,o,r,d,p,b,y,F,v,k;return{setters:[e=>{h=e.defineComponent,B=e.computed,u=e.ref,c=e.createElementBlock,i=e.openBlock,m=e.Fragment,f=e.createBlock,o=e.createVNode,r=e.createElementVNode,d=e.toDisplayString,p=e.withCtx},e=>{b=e._},e=>{y=e._},e=>{F=e._},e=>{v=e._},e=>{k=e._}],execute:function(){const e={key:0,class:"flex gap-1 items-center"},S={class:"text-primary-500 text-xs font-medium"},$=r("p",null,"Are you sure you want to continue?",-1),A=V("_",h({__name:"ButtonSelectUser",props:{fetchFunction:{type:Function},fetchOptionFunction:{type:Function},modelValue:{},list:{},header:{},description:{},useBadge:{type:Boolean},confirmBeforeReselect:{type:Boolean},confirmHeader:{},confirmBody:{}},emits:["update:modelValue","confirm"],setup(D,{emit:N}){const t=D,U=N,a=B(()=>t.modelValue??void 0),l=u(!1),_=u(!1),j=async g=>{if(t.fetchFunction)return await t.fetchFunction(g)},E=async()=>{if(t.fetchOptionFunction)return await t.fetchOptionFunction()},O=()=>{t.confirmBeforeReselect?_.value=!0:l.value=!0},H=()=>{U("confirm"),l.value=!0};return(g,n)=>{var x,C,w;return i(),c(m,null,[a.value?(i(),c("div",e,[t.useBadge?(i(),f(b,{key:0,label:((x=a.value)==null?void 0:x.fullName)??((C=a.value)==null?void 0:C.name),format:"username"},null,8,["label"])):(i(),c(m,{key:1},[o(v,{class:"!text-general-200",icon:"user"}),r("span",S,d(a.value.fullName??((w=a.value)==null?void 0:w.name)),1)],64)),o(y,{onClick:O,class:"p-0 m-0 !min-w-0 !min-h-0 !h-max !w-max",text:""},{default:p(()=>[o(v,{icon:"pencil",severity:"primary"})]),_:1})])):(i(),f(y,{key:1,onClick:n[0]||(n[0]=s=>l.value=!0),label:"Select User"})),o(k,{visible:l.value,"onUpdate:visible":n[1]||(n[1]=s=>l.value=s),description:t.description,"fetch-function":j,"fetch-option-function":E,header:t.header,list:t.list,onSelected:n[2]||(n[2]=s=>g.$emit("update:modelValue",s)),"selection-type":"single"},null,8,["visible","description","header","list"]),o(F,{visible:_.value,"onUpdate:visible":n[3]||(n[3]=s=>_.value=s),header:t.confirmHeader??"-",onConfirm:H,"confirm-label":"Continue",severity:"danger"},{body:p(()=>[r("p",null,d(t.confirmBody),1),$]),_:1},8,["visible","header"])],64)}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../toggleswitch/ToggleSwitch-WHdD3oYL.system.js"],function(s,r){"use strict";var t,n,c,o;return{setters:[e=>{t=e.defineComponent,n=e.createBlock,c=e.openBlock},e=>{o=e._}],execute:function(){const e=s("_",t({__name:"ButtonToggle",setup(_){return(i,u)=>(c(),n(o))}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/vee-validate-Cc_B-qII.system.js","../animation/Animation-6756VN9N.system.js","../badge/Badge-CndPv5v9.system.js","../basecalendar/BaseCalendar-Ce46jOkg.system.js"],function(D,O){"use strict";var f,y,d,u,m,g,M,V,h,B,p,c,T,w,C,x,b;return{setters:[t=>{f=t.defineComponent,y=t.onMounted,d=t.ref,u=t.computed,m=t.watch,g=t.watchEffect,M=t.createBlock,V=t.openBlock,h=t.mergeProps,B=t.unref,p=t.withCtx,c=t.renderSlot,T=t.nextTick},t=>{w=t.u},t=>{C=t.u},t=>{x=t.f},t=>{b=t._}],execute:function(){const t=D("_",f({__name:"Calendar",props:{modelValue:{},dateValue:{},epochTimeMillis:{},valueFormat:{default:"millis"},label:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},overlayClass:{},inputId:{},id:{},mode:{default:"single"},selectionMode:{},hideOnDateTimeSelect:{type:Boolean},hideOnRangeSelection:{type:Boolean,default:!0},view:{default:"date"},showYear:{type:Boolean,default:!0},showButtons:{type:Boolean},useValidator:{type:Boolean},fieldName:{},fieldInfo:{},mandatory:{type:Boolean},showOptionalText:{type:Boolean,default:void 0},invalid:{type:Boolean},validatorMessage:{},customValidation:{},dateFormat:{default:"dd/mm/yy"},hourFormat:{default:"24"},showTime:{type:Boolean},timeSeparator:{default:":"},stepHour:{default:1},stepMinute:{default:1},useTimeFormat:{type:Boolean},onlyWeekdays:{type:Boolean},excludeDates:{},minDate:{},maxDate:{},maxYear:{},maxMonth:{},exactSelection:{type:Boolean}},emits:["update:modelValue","update:epochTimeMillis","monthChange","yearChange","dateSelect"],setup(F,{emit:j}){const e=F,v=j;y(()=>{e.dateValue!=null&&(n.value=s(e.dateValue),o.value=n.value,r.value++),e.epochTimeMillis!=null&&(n.value=s(e.epochTimeMillis),o.value=n.value,r.value++)});const{locale:I}=C("Calendar"),n=d(),r=d(0),{value:o,errorMessage:E}=e.useValidator?w(e.fieldName??"date",a=>L(a)):{value:u({get:()=>e.modelValue,set:a=>{v("update:modelValue",a)}})},A=u(()=>e.invalid||"errorMessage"in o&&!!o.errorMessage),L=async a=>{var l,i;return await T(),typeof e.validatorMessage=="string"&&e.invalid?e.validatorMessage:typeof e.validatorMessage!="string"&&!a&&e.mandatory?((l=e.validatorMessage)==null?void 0:l.empty)??S():!a&&e.mandatory?((i=e.customValidation)==null?void 0:i.empty)??S():!0},S=()=>{var a;return I.emptyInvalidText.replace("{label}",e.label).replace("{formattedLabel}",(a=x(e.label))==null?void 0:a.toLowerCase())},k=(a,l)=>{(a===e.valueFormat&&e.useValidator||!e.useValidator&&a==="date")&&(o.value=l),a==="date"&&e.useValidator&&v("update:modelValue",l),a==="millis"&&v("update:epochTimeMillis",l)},s=a=>Array.isArray(a)?a.map(l=>l==null?null:new Date(l)):new Date(a);return m(()=>e.dateValue,()=>{n.value=s(e.dateValue),e.useValidator&&(o.value=n.value),r.value++},{once:!0}),m(()=>e.epochTimeMillis,()=>{n.value=s(e.epochTimeMillis),e.useValidator&&(o.value=n.value),r.value++}),g(()=>{n.value=e.valueFormat==="date"?o.value:o.value?s(o.value):o.value}),(a,l)=>(V(),M(b,h({key:r.value},e,{"error-message":B(E),invalid:A.value,"model-value":n.value,"selection-mode":a.selectionMode||a.mode,"onUpdate:epochTimeMillis":l[0]||(l[0]=i=>k("millis",i)),"onUpdate:modelValue":l[1]||(l[1]=i=>k("date",i))}),{default:p(({onClick:i})=>[c(a.$slots,"default",{onClick:i})]),"addon-overlay":p(()=>[c(a.$slots,"addon-overlay")]),_:3},16,["error-message","invalid","model-value","selection-mode"]))}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/vee-validate-Cc_B-qII.system.js","../animation/Animation-6756VN9N.system.js","../icon/Icon-DUylRmY4.system.js"],function(F,H){"use strict";var V,v,h,k,B,g,p,b,C,f,u,o,d,S,N,w,M,j,q,E,P,I,L,y;return{setters:[a=>{V=a.defineComponent,v=a.mergeModels,h=a.inject,k=a.useModel,B=a.reactive,g=a.onMounted,p=a.computed,b=a.watch,C=a.createElementBlock,f=a.openBlock,u=a.mergeProps,o=a.unref,d=a.createElementVNode,S=a.renderSlot,N=a.createVNode,w=a.normalizeClass,M=a.createTextVNode,j=a.createBlock,q=a.createCommentVNode,E=a.toDisplayString},a=>{P=a.u},a=>{I=a.c,L=a.e},a=>{y=a._}],execute:function(){const a=["data-p-disabled","data-p-highlight"],O=["id","aria-invalid","aria-label","aria-labelledby","checked","disabled","input-id","name","readonly","required","tabindex","value"],J=F("_",V({__name:"Checkbox",props:v({value:{},modelValue:{},label:{},tooltip:{},tooltipPos:{},name:{},withinTable:{type:Boolean,default:!1},binary:{type:Boolean,default:!0},triState:{type:[Boolean,null]},invalid:{type:Boolean},disabled:{type:Boolean},selectable:{type:Boolean,default:!0},variant:{},readonly:{type:Boolean},useValidator:{type:Boolean},fieldName:{},required:{type:Boolean},tabindex:{},trueValue:{default:!0},falseValue:{default:!1},inputId:{default:"checkbox"},inputClass:{},inputStyle:{},ariaLabelledby:{},ariaLabel:{},pt:{},ptOptions:{},unstyled:{type:Boolean},labelClass:{}},{modelValue:{},modelModifiers:{}}),emits:v(["update:modelValue","change","focus","blur"],["update:modelValue"]),setup(x,{emit:$}){const r=h("preset",{}).checkbox,e=x,m=$,A=k(x,"modelValue"),t=B({value:void 0});g(()=>{e.useValidator&&(Object.assign(t,P(e.fieldName??"checkbox")),e.value!=null&&(t.value=e.value)),e.modelValue!=null&&(t.value=e.modelValue)});const i=p(()=>e.triState?t.value:e.binary?t.value===e.trueValue:I(e.value,e.modelValue)),T=p(()=>e.triState&&A.value===!1),G=l=>{if(!e.disabled&&!e.readonly){let n;e.binary&&!e.triState?n=i.value?e.falseValue:e.trueValue:e.triState?n=t.value==null?!1:t.value===!1?!0:null:Array.isArray(e.modelValue)&&(i.value?n=e.modelValue.filter(c=>!L(c,e.value)):n=e.modelValue?[...e.modelValue,e.value]:[e.value]),A.value=n,t.value=n,m("change",l)}};return b(()=>e.value,()=>{t.value=e.value}),b(()=>e.modelValue,()=>{t.value=e.modelValue}),(l,n)=>{var c,z,D;return f(),C("label",u((c=o(r))==null?void 0:c.root,{class:[{"gap-1":e==null?void 0:e.label},{"pointer-events-none":!(e!=null&&e.selectable)}],"data-p-disabled":l.disabled,"data-p-highlight":t.value,"data-wv-name":"checkbox"}),[d("input",u({id:l.inputId},{...(z=o(r))==null?void 0:z.input,...e},{"aria-invalid":l.invalid||void 0,"aria-label":l.ariaLabel,"aria-labelledby":l.ariaLabelledby,checked:i.value,disabled:l.disabled,"input-id":l.inputId,name:l.name,readonly:l.readonly,required:l.required,style:l.inputStyle,tabindex:l.tabindex,value:t.value,onBlur:n[0]||(n[0]=s=>m("blur",s)),onChange:G,onFocus:n[1]||(n[1]=s=>m("focus",s)),"data-wv-section":"checkbox-input",type:"checkbox"}),null,16,O),d("div",u((D=o(r))==null?void 0:D.box({props:e,context:{checked:i.value,partialChecked:T.value}}),{"data-wv-section":"box"}),[S(l.$slots,"icon",{checked:i.value},()=>{var s;return[N(y,{class:w([...(s=o(r))==null?void 0:s.icon.class,{"text-transparent":!i.value}]),icon:i.value?"check":T.value?"subtract":null},null,8,["class","icon"])]})],16),d("span",u(o(r).label({props:e}),{"data-wv-section":"checkbox-label"}),[M(E(l.label)+" ",1),l.tooltip?(f(),j(y,u({key:0,info:l.tooltip,"tooltip-pos":l.tooltipPos},o(r).tooltipicon,{"data-wv-section":"tooltipicon",icon:"info"}),null,16,["info","tooltip-pos"])):q("",!0)],16)],16,a)}}}))}}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["../../vendor/highlight.js-BAruEf1H.system.js","vue","../button/Button-Okx1_kOu.system.js"],function(J,Y){"use strict";var s,L,_,j,x,M,B,C,v,f,S,T,H,o,a,V,y,r,l,i,N,D,E,P,z,$,F;return{setters:[e=>{s=e.H,L=e.j,_=e.t,j=e.a},e=>{x=e.defineComponent,M=e.mergeModels,B=e.useModel,C=e.inject,v=e.ref,f=e.shallowRef,S=e.computed,T=e.onMounted,H=e.watch,o=e.createElementBlock,a=e.openBlock,V=e.createBlock,y=e.createCommentVNode,r=e.createElementVNode,l=e.mergeProps,i=e.unref,N=e.withDirectives,D=e.vModelText,E=e.Fragment,P=e.renderList,z=e.toDisplayString,$=e.normalizeClass},e=>{F=e._}],execute:function(){function e(b){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}const Q={class:"relative w-full overflow-hidden"},U=["placeholder"],A={class:"relative"},G=["innerHTML"],Z=J("_",x({__name:"CodeSnippet",props:M({code:{},lang:{default:"json"},readonly:{type:Boolean},placeholder:{}},{code:{default:""},codeModifiers:{}}),emits:["update:code"],setup(b){s.registerLanguage("javascript",L),s.registerLanguage("typescript",_),s.registerLanguage("json",j),s.registerLanguage("html",e);const I=b,c=B(b,"code"),p=C("preset",{}).codesnippet,K=v(),m=v(),k=f(0),w=f(!1),u=S(()=>c.value.split(`
|
|
2
|
-
`).map((d,g)=>{const h=s.highlight(d,{language:I.lang}).value;return{line:g+1,code:h}})),O=()=>{var t;(t=navigator.clipboard)==null||t.writeText(c.value),w.value=!0,setTimeout(()=>{w.value=!1},1500)};T(()=>{R()});const R=()=>{if(m.value){const t=m.value.querySelector("[data-wv-section=linenumber]");k.value=t.offsetWidth}};return H(u,()=>{R()}),(t,d)=>{var g,h,W;return a(),o("div",Q,[c.value.length&&t.readonly?(a(),V(F,l({key:0},(g=i(p))==null?void 0:g.copybutton,{icon:w.value?"check":"file-copy",onClick:O,size:"small",text:""}),null,16,["icon"])):y("",!0),r("div",l((h=i(p))==null?void 0:h.body,{style:{"scrollbar-width":"none"}}),[t.readonly?y("",!0):N((a(),o("textarea",l({key:0,ref_key:"textarea",ref:K},(W=i(p))==null?void 0:W.textarea,{"onUpdate:modelValue":d[0]||(d[0]=n=>c.value=n),placeholder:t.placeholder,spellcheck:!1,style:`left: ${k.value}px; width: calc(100% - ${k.value+6}px); scrollbar-width: none;`}),null,16,U)),[[D,c.value]]),r("table",{ref_key:"codesnippet",ref:m,class:"relative"},[r("tbody",A,[(a(!0),o(E,null,P(u.value,({line:n,code:X})=>{var q;return a(),o("tr",{key:n,class:"h-5"},[r("td",l({ref_for:!0},(q=i(p))==null?void 0:q.linenumber,{class:[{"pt-1.5":n===1,"pb-1.5":n===u.value.length}],"data-wv-section":"linenumber"}),z(n),17),r("td",{class:$(["px-1.5",{"pt-1.5":n==1,"pb-1.5":n===u.value.length}])},[r("pre",{innerHTML:X,class:"font-poppins"},null,8,G)],2)])}),128))])],512)],16)])}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/@tiptap/vue-3-BH1pZykd.system.js","../codesnippet/CodeSnippet-DvTtZ28b.system.js"],function(v,k){"use strict";var o,r,c,s,a,p,d,i,u,f,l;return{setters:[e=>{o=e.defineComponent,r=e.ref,c=e.watch,s=e.createBlock,a=e.openBlock,p=e.unref,d=e.withCtx,i=e.createVNode},e=>{u=e.n,f=e.N},e=>{l=e._}],execute:function(){const e=v("_",o({__name:"CodeSnippetAdapter",props:u,setup(C){const n=C,t=r(n.node.attrs.code);return c(t,()=>{n.updateAttributes({code:t.value})}),(y,_)=>(a(),s(p(f),null,{default:d(()=>[i(l,{code:t.value,"onUpdate:code":_[0]||(_[0]=w=>t.value=w),readonly:!n.editor.isEditable,placeholder:"Masukan Code"},null,8,["code","readonly"])]),_:1}))}}))}}});
|