@fewangsit/wangsvue-fats 1.0.0-alpha.41 → 1.0.0-alpha.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/lottiejs/loading-page-B9ooQcfF.system.js +1 -0
- package/assets/lottiejs/loading-page-CQ0mKER2.es.js +15 -0
- package/assets/lottiejs/loading-table-B4T3FYiI.system.js +1 -0
- package/assets/lottiejs/loading-table-BnpbX8Ew.es.js +15 -0
- package/assets/lottiejs/no-data-CMWnya_k.system.js +1 -0
- package/{no-data-DLHO1L_u.js → assets/lottiejs/no-data-DOy8kIGF.es.js} +13 -2
- package/components/animation/Animation-6756VN9N.system.js +1 -0
- package/components/animation/Animation-COWVilAA.es.js +428 -0
- package/components/approverinfo/ApproverInfo-BdqBpNjY.system.js +1 -0
- package/components/approverinfo/ApproverInfo-C3_ibV8c.es.js +321 -0
- package/components/assetinfo/AssetInfo-BBgKToRP.system.js +1 -0
- package/components/assetinfo/AssetInfo-CmwgOU74.es.js +298 -0
- package/components/backgroundimagecropper/BackgroundImageCropper-DFHtaSyE.system.js +1 -0
- package/components/backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js +57 -0
- package/components/badge/Badge-CndPv5v9.system.js +1 -0
- package/components/badge/Badge-DA-XiE1C.es.js +115 -0
- package/components/badgegroup/BadgeGroup-Bj0EjoML.es.js +68 -0
- package/components/badgegroup/BadgeGroup-Y-HhiHk8.system.js +1 -0
- package/components/basecalendar/BaseCalendar-47ahYXrt.es.js +867 -0
- package/components/basecalendar/BaseCalendar-Ce46jOkg.system.js +1 -0
- package/components/basetree/BaseTree-DDu1qI7t.system.js +1 -0
- package/components/basetree/BaseTree-DLSA5FMh.es.js +167 -0
- package/components/breadcrumb/Breadcrumb-B5bAijry.system.js +1 -0
- package/components/breadcrumb/Breadcrumb-BWSmLPqn.es.js +46 -0
- package/components/button/Button-D-MSv_AS.es.js +120 -0
- package/components/button/Button-Okx1_kOu.system.js +1 -0
- package/components/buttonbulkaction/ButtonBulkAction-B4RcdWmb.es.js +185 -0
- package/components/buttonbulkaction/ButtonBulkAction-DLmvicRL.system.js +1 -0
- package/components/buttoncopy/ButtonCopy-BZgQAFOM.es.js +31 -0
- package/components/buttoncopy/ButtonCopy-CKi1bBpz.system.js +1 -0
- package/components/buttondownload/ButtonDownload-Bw9T3mbW.es.js +92 -0
- package/components/buttondownload/ButtonDownload-CpA0ryUT.system.js +1 -0
- package/components/buttonfilter/ButtonFilter-BIE-jM2i.es.js +28 -0
- package/components/buttonfilter/ButtonFilter-C4WRvUrj.system.js +1 -0
- package/components/buttonradio/ButtonRadio-5VUY8o5h.es.js +83 -0
- package/components/buttonradio/ButtonRadio-B2wWrgB5.system.js +1 -0
- package/components/buttonscan/ButtonScan-BCScT2cx.es.js +421 -0
- package/components/buttonscan/ButtonScan-TbyhlW5M.system.js +1 -0
- package/components/buttonsearch/ButtonSearch-Clbafqts.es.js +70 -0
- package/components/buttonsearch/ButtonSearch-e57pD5r3.system.js +1 -0
- package/components/buttonselecttree/ButtonSelectTree-B-_Iw5sB.es.js +218 -0
- package/components/buttonselecttree/ButtonSelectTree-Cbq1oeVK.system.js +1 -0
- package/components/buttonselectuser/ButtonSelectUser-Ar7Y8tVR.es.js +101 -0
- package/components/buttonselectuser/ButtonSelectUser-Cfe6m75Z.system.js +1 -0
- package/components/buttonsync/ButtonSync-Bc1GZXT6.es.js +29 -0
- package/components/buttonsync/ButtonSync-ClllEdAy.system.js +1 -0
- package/components/buttontoggle/ButtonToggle-DIy3M8Pz.es.js +11 -0
- package/components/buttontoggle/ButtonToggle-VNp0lbcW.system.js +1 -0
- package/components/buttonviewlog/ButtonViewLog-Ct8QwEey.system.js +1 -0
- package/components/buttonviewlog/ButtonViewLog-h9uVv5A5.es.js +21 -0
- package/components/calendar/Calendar-7yBKZsvj.system.js +1 -0
- package/components/calendar/Calendar-Df6CnW-l.es.js +112 -0
- package/components/card/Card-BUKU2FcT.system.js +1 -0
- package/components/card/Card-CwnxKNdM.es.js +47 -0
- package/components/checkbox/Checkbox-CCtItmVW.system.js +1 -0
- package/components/checkbox/Checkbox-DdsR222S.es.js +135 -0
- package/components/codesnippet/CodeSnippet-Bpps-Iyc.es.js +127 -0
- package/components/codesnippet/CodeSnippet-DvTtZ28b.system.js +2 -0
- package/components/codesnippetadapter/CodeSnippetAdapter-BtSqWBl1.system.js +1 -0
- package/components/codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js +26 -0
- package/components/columnlist/ColumnList-Bh3LZlOa.system.js +1 -0
- package/components/columnlist/ColumnList-Bp7soiys.es.js +204 -0
- package/components/customcolumn/CustomColumn-CVhAbTGn.system.js +1 -0
- package/components/customcolumn/CustomColumn-Dblxjw_0.es.js +138 -0
- package/components/datatable/DataTable--mHUKNUr.system.js +1 -0
- package/components/datatable/DataTable-J1j-OKsW.es.js +983 -0
- package/components/dialog/Dialog-Dy93f91f.es.js +121 -0
- package/components/dialog/Dialog-WEl66uTI.system.js +1 -0
- package/components/dialogconfirm/DialogConfirm-BOFb7rJD.es.js +139 -0
- package/components/dialogconfirm/DialogConfirm-o7_v7F31.system.js +1 -0
- package/components/dialogform/DialogForm-C15nC1wH.es.js +223 -0
- package/components/dialogform/DialogForm-CdpY1_-F.system.js +1 -0
- package/components/dialogselecttree/DialogSelectTree-BA8xEqco.es.js +268 -0
- package/components/dialogselecttree/DialogSelectTree-DKxWI9Re.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUser-BZTSktHZ.system.js +1 -0
- package/components/dialogselectuser/DialogSelectUser-Bu5TDAPt.es.js +186 -0
- package/components/dialogselectuserfilter/DialogSelectUserFilter-DEl4zFaX.system.js +1 -0
- package/components/dialogselectuserfilter/DialogSelectUserFilter-Dz5OxAU-.es.js +40 -0
- package/components/dropdown/Dropdown-D4S52rW5.es.js +252 -0
- package/components/dropdown/Dropdown-DuvNYyq0.system.js +1 -0
- package/components/editor/Editor-DQ7Xdy30.es.js +1036 -0
- package/components/editor/Editor-IfYw2Tps.system.js +1 -0
- package/components/editorbutton/EditorButton-DDgS2vga.es.js +28 -0
- package/components/editorbutton/EditorButton-DmVrr4Bk.system.js +1 -0
- package/components/fieldwrapper/FieldWrapper-C6HJ2HnC.es.js +34 -0
- package/components/fieldwrapper/FieldWrapper-DFjw9hA8.system.js +1 -0
- package/components/fileupload/FileUpload-B6PAucnD.es.js +175 -0
- package/components/fileupload/FileUpload-iVAJXujV.system.js +1 -0
- package/components/filtercontainer/FilterContainer-CuMaq5Sv.es.js +284 -0
- package/components/filtercontainer/FilterContainer-DUeVLHgZ.system.js +1 -0
- package/components/form/Form-D-e0VI8V.system.js +1 -0
- package/components/form/Form-eSj-nb1y.es.js +181 -0
- package/components/hardwaresync/HardwareSync--HomfQuH.system.js +1 -0
- package/components/hardwaresync/HardwareSync-DUsVwHx1.es.js +236 -0
- package/components/icon/Icon-DUylRmY4.system.js +1 -0
- package/components/icon/Icon-mDqG7urn.es.js +82 -0
- package/components/image/Image-BZ31CL-y.es.js +169 -0
- package/components/image/Image-DX6uB7Ns.system.js +1 -0
- package/components/imagecompressor/ImageCompressor-BLeJDvN3.system.js +1 -0
- package/components/imagecompressor/ImageCompressor-DaW0ak9c.es.js +501 -0
- package/components/imageinputinfo/ImageInputInfo-C5F14hbF.system.js +1 -0
- package/components/imageinputinfo/ImageInputInfo-oTtVBxzO.es.js +46 -0
- package/components/inlinemessage/InlineMessage-19w6FOcP.system.js +1 -0
- package/components/inlinemessage/InlineMessage-CBZT3jWS.es.js +94 -0
- package/components/inputbadge/InputBadge-CsdT7M7-.es.js +186 -0
- package/components/inputbadge/InputBadge-dgANMV70.system.js +1 -0
- package/components/inputcurrency/InputCurrency-B96npK8W.es.js +1208 -0
- package/components/inputcurrency/InputCurrency-ChqGX5L8.system.js +1 -0
- package/components/inputemail/InputEmail-BMzumenA.es.js +49 -0
- package/components/inputemail/InputEmail-CYILS9bp.system.js +1 -0
- package/components/inputgroup/InputGroup-G9TEI4vX.system.js +1 -0
- package/components/inputgroup/InputGroup-eNDRlJ5R.es.js +56 -0
- package/components/inputnumber/InputNumber-Bzk_YzWM.es.js +232 -0
- package/components/inputnumber/InputNumber-CRyg8Xw_.system.js +1 -0
- package/components/inputpassword/InputPassword-BMHMWLgU.es.js +121 -0
- package/components/inputpassword/InputPassword-BjB6FsoL.system.js +1 -0
- package/components/inputphonenumber/InputPhoneNumber-CVM2oK5q.es.js +591 -0
- package/components/inputphonenumber/InputPhoneNumber-DIbd3upL.system.js +1 -0
- package/components/inputrangenumber/InputRangeNumber-B1aAoKVj.es.js +134 -0
- package/components/inputrangenumber/InputRangeNumber-C28xgFBY.system.js +1 -0
- package/components/inputsearch/InputSearch--KHwTBTm.system.js +1 -0
- package/components/inputsearch/InputSearch-cPq3vqhy.es.js +53 -0
- package/components/inputtext/InputText-93zDNfC3.system.js +1 -0
- package/components/inputtext/InputText-_xEnXysf.es.js +241 -0
- package/components/inputurl/InputURL-aqx1PVKL.es.js +61 -0
- package/components/inputurl/InputURL-kWIiKGEG.system.js +1 -0
- package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +27 -0
- package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +1 -0
- package/components/litedropdown/LiteDropdown-3KsCx4wX.system.js +1 -0
- package/components/litedropdown/LiteDropdown-DcSzP11l.es.js +102 -0
- package/components/loading/Loading-D8M801C9.es.js +24 -0
- package/components/loading/Loading-Diwog8dc.system.js +1 -0
- package/components/mentionlist/MentionList--7AymnhE.es.js +58 -0
- package/components/mentionlist/MentionList-600dsWhX.system.js +1 -0
- package/components/mentionsection/MentionSection-C1gWOzH2.system.js +3 -0
- package/components/mentionsection/MentionSection-C_c4qbpq.es.js +52 -0
- package/components/menu/Menu-BmTMFwBD.es.js +73 -0
- package/components/menu/Menu-OR25pAK3.system.js +1 -0
- package/components/menuitem/MenuItem-LoZMc0T9.es.js +65 -0
- package/components/menuitem/MenuItem-imQ-hYTP.system.js +1 -0
- package/components/multirow/MultiRow-ClSMxrEx.es.js +52 -0
- package/components/multirow/MultiRow-DKu6uIsI.system.js +1 -0
- package/components/multiselect/MultiSelect-DGhS1EyX.es.js +189 -0
- package/components/multiselect/MultiSelect-DKFYq47E.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-C_WCcNPw.system.js +1 -0
- package/components/overlaypanel/OverlayPanel-DXNek7Yb.es.js +49 -0
- package/components/tabmenu/TabMenu-CAQqu-ff.system.js +1 -0
- package/components/tabmenu/TabMenu-iMeZa8gy.es.js +108 -0
- package/components/tagtype/TagType-CX7BVRrE.es.js +49 -0
- package/components/tagtype/TagType-IMYg8AJf.system.js +1 -0
- package/components/textarea/Textarea-ClnQ2qmf.es.js +108 -0
- package/components/textarea/Textarea-DlkzVURV.system.js +1 -0
- package/components/timeline/Timeline-BMRdV_mH.es.js +120 -0
- package/components/timeline/Timeline-D7SYc3QX.system.js +1 -0
- package/components/timelinecontentbytype/TimelineContentByType-BmWsZID0.system.js +1 -0
- package/components/timelinecontentbytype/TimelineContentByType-ehFLzTA1.es.js +111 -0
- package/components/toast/Toast-DnALWJkx.es.js +74 -0
- package/components/toast/Toast-Pc_DOZ5-.system.js +1 -0
- package/components/toggleswitch/ToggleSwitch-WHdD3oYL.system.js +1 -0
- package/components/toggleswitch/ToggleSwitch-wRjnHRIw.es.js +90 -0
- package/components/transactionroles/TransactionRoles-B_67h5wb.es.js +223 -0
- package/components/transactionroles/TransactionRoles-DSXBVwPM.system.js +1 -0
- package/components/tree/Tree-BoVGYw5N.system.js +1 -0
- package/components/tree/Tree-DnaIZZ8S.es.js +268 -0
- package/components/treenode/TreeNode-D5aepDIU.system.js +1 -0
- package/components/treenode/TreeNode-KJOUvlTH.es.js +499 -0
- package/components/treesearchinput/TreeSearchInput-B1PmhE7k.es.js +56 -0
- package/components/treesearchinput/TreeSearchInput-C-hXPV61.system.js +1 -0
- package/components/username/UserName-CCyPAYG6.system.js +1 -0
- package/components/username/UserName-CWs83BX6.es.js +130 -0
- package/components/userwithicon/UserWithIcon-CFjQcbAS.system.js +1 -0
- package/components/userwithicon/UserWithIcon-Dn3aNKdq.es.js +18 -0
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +19 -0
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +1 -0
- package/package.json +1 -1
- package/stats.html +1 -1
- package/style.css +1 -1
- package/vendor/@popperjs/core-BDAJHTVh.es.js +905 -0
- package/vendor/@popperjs/core-DpNOCyB0.system.js +1 -0
- package/vendor/@tiptap/core-BLz8iRA3.es.js +2868 -0
- package/vendor/@tiptap/core-bnIgGWIt.system.js +80 -0
- package/vendor/@tiptap/extension-bold-BnsTNqIJ.es.js +71 -0
- package/vendor/@tiptap/extension-bold-C_KVm_D0.system.js +1 -0
- package/vendor/@tiptap/extension-bubble-menu-D421L1EU.system.js +1 -0
- package/vendor/@tiptap/extension-bubble-menu-D9Vgq7yO.es.js +128 -0
- package/vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js +53 -0
- package/vendor/@tiptap/extension-bullet-list-kXXFF-_p.system.js +1 -0
- package/vendor/@tiptap/extension-code-CfQ7g1i2.es.js +51 -0
- package/vendor/@tiptap/extension-code-Q8P1EHjz.system.js +1 -0
- package/vendor/@tiptap/extension-floating-menu-8rFSweor.system.js +1 -0
- package/vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js +99 -0
- package/vendor/@tiptap/extension-heading-BE64-Rg_.system.js +1 -0
- package/vendor/@tiptap/extension-heading-ZTlCgdtc.es.js +54 -0
- package/vendor/@tiptap/extension-history-GLkLmX-Y.system.js +1 -0
- package/vendor/@tiptap/extension-history-eJIThEn-.es.js +35 -0
- package/vendor/@tiptap/extension-image-B8NPUVFM.es.js +64 -0
- package/vendor/@tiptap/extension-image-rKrdkZpJ.system.js +1 -0
- package/vendor/@tiptap/extension-italic-C_CyJubw.es.js +70 -0
- package/vendor/@tiptap/extension-italic-Dg0Nosoc.system.js +1 -0
- package/vendor/@tiptap/extension-link-Cd8bTMBz.system.js +1 -0
- package/vendor/@tiptap/extension-link-D4PFdLvA.es.js +262 -0
- package/vendor/@tiptap/extension-list-item-7pIJ7t09.es.js +33 -0
- package/vendor/@tiptap/extension-list-item-Mnhfw2gP.system.js +1 -0
- package/vendor/@tiptap/extension-mention-DVF3rX_z.system.js +1 -0
- package/vendor/@tiptap/extension-mention-Dkg-tbrz.es.js +130 -0
- package/vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js +71 -0
- package/vendor/@tiptap/extension-ordered-list-Hl0QU8Zt.system.js +1 -0
- package/vendor/@tiptap/extension-placeholder-BeLl2T-f.system.js +1 -0
- package/vendor/@tiptap/extension-placeholder-V0iTxU19.es.js +52 -0
- package/vendor/@tiptap/extension-underline-BdcAQ4JH.system.js +1 -0
- package/vendor/@tiptap/extension-underline-DsGbvz80.es.js +40 -0
- package/vendor/@tiptap/suggestion-BpZSO8Lm.system.js +1 -0
- package/vendor/@tiptap/suggestion-C4sBhJAD.es.js +131 -0
- package/vendor/@tiptap/vue-3-BH1pZykd.system.js +1 -0
- package/vendor/@tiptap/vue-3-DceiR7pK.es.js +436 -0
- package/vendor/highlight.js-BAruEf1H.system.js +2 -0
- package/vendor/highlight.js-DHowhWoU.es.js +2493 -0
- package/vendor/linkifyjs-BxsOjwQz.es.js +705 -0
- package/vendor/linkifyjs-CMLfIa6I.system.js +5 -0
- package/vendor/lodash-DbIT-6qv.es.js +127 -0
- package/vendor/lodash-DbvKLWSv.system.js +1 -0
- package/vendor/lodash-es-C3G1Cc1m.system.js +1 -0
- package/vendor/lodash-es-CJerBxJQ.es.js +766 -0
- package/vendor/orderedmap-B3SOk52B.es.js +103 -0
- package/vendor/orderedmap-Dwr31MF0.system.js +1 -0
- package/vendor/primevue-CadmDhWp.es.js +13928 -0
- package/vendor/primevue-u6FsQONA.system.js +193 -0
- package/vendor/prosemirror-commands-DLmzIpoS.es.js +383 -0
- package/vendor/prosemirror-commands-DgY3QRzI.system.js +2 -0
- package/vendor/prosemirror-history-BMpJFORS.es.js +248 -0
- package/vendor/prosemirror-history-BrK-FTBv.system.js +1 -0
- package/vendor/prosemirror-keymap-COb3Dq2o.system.js +1 -0
- package/vendor/prosemirror-keymap-DF8LLxca.es.js +60 -0
- package/vendor/prosemirror-model-D2n-Dx_L.es.js +2736 -0
- package/vendor/prosemirror-model-DTWK5xnv.system.js +4 -0
- package/vendor/prosemirror-schema-list-BPpAP8wR.system.js +1 -0
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +87 -0
- package/vendor/prosemirror-state-CwkYUmNs.es.js +820 -0
- package/vendor/prosemirror-state-DzPLD-6l.system.js +1 -0
- package/vendor/prosemirror-transform-DvAmofec.es.js +1507 -0
- package/vendor/prosemirror-transform-VaXuT0NM.system.js +2 -0
- package/vendor/prosemirror-view-JTdpiWMD.system.js +5 -0
- package/vendor/prosemirror-view-ta7l3rKk.es.js +3742 -0
- package/vendor/rope-sequence-4t46C6az.system.js +1 -0
- package/vendor/rope-sequence-sEGCUMi8.es.js +100 -0
- package/vendor/simplebar-core-71xT5g0m.system.js +1 -0
- package/vendor/simplebar-core-Db65-Ath.es.js +333 -0
- package/vendor/simplebar-vue-BFEeFUIv.system.js +1 -0
- package/vendor/simplebar-vue-DAxqu0eM.es.js +176 -0
- package/vendor/tippy.js-CuKTz0UR.system.js +1 -0
- package/vendor/tippy.js-DNnwm2RY.es.js +721 -0
- package/vendor/uuid-93tp0umt.es.js +9 -0
- package/vendor/uuid-Cymn6orr.system.js +1 -0
- package/vendor/vee-validate-Cc_B-qII.system.js +5 -0
- package/vendor/vee-validate-RE5RuswC.es.js +1309 -0
- package/vendor/vue-advanced-cropper-CshlvNaD.es.js +1380 -0
- package/vendor/vue-advanced-cropper-NG93jHnU.system.js +20 -0
- package/vendor/w3c-keyname-BSD-PgAi.system.js +1 -0
- package/vendor/w3c-keyname-CLxH8j-f.es.js +92 -0
- package/wangsvue-fats.js +542 -0
- package/wangsvue-fats.system.js +1 -313
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-D9bw9OcI.js +0 -4
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-g0dJCy2p.js +0 -4
- package/no-data-y1X5WtcQ.js +0 -1
- package/wangsvue-fats.es.js +0 -51894
- /package/{loading-page-CgfbWppy.js → assets/lottiejs/loading-plane-CgfbWppy.system.js} +0 -0
- /package/{loading-page-CoXtqoc9.js → assets/lottiejs/loading-plane-CoXtqoc9.es.js} +0 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { defineComponent as C, shallowRef as j, computed as I, createElementBlock as d, openBlock as r, Fragment as f, createElementVNode as m, createVNode as w, toDisplayString as g, withCtx as N, renderList as x, createBlock as M, createCommentVNode as D } from "vue";
|
|
2
|
+
import { _ as H } from "../badge/Badge-DA-XiE1C.es.js";
|
|
3
|
+
import { _ as z } from "../dialog/Dialog-Dy93f91f.es.js";
|
|
4
|
+
import { _ as F } from "../icon/Icon-mDqG7urn.es.js";
|
|
5
|
+
const B = () => {
|
|
6
|
+
const { consoleSettings: y, generalSetting: c } = JSON.parse(
|
|
7
|
+
localStorage.getItem("user") ?? "{}"
|
|
8
|
+
), { dateFormat: o, timeFormat: u, timezone: n } = y ?? c ?? {};
|
|
9
|
+
let l = {};
|
|
10
|
+
return !o || !u || !n ? {} : (typeof o == "string" ? l = {
|
|
11
|
+
dateFormat: o,
|
|
12
|
+
timeFormat: u,
|
|
13
|
+
timezone: n
|
|
14
|
+
} : l = {
|
|
15
|
+
formatPreset: {
|
|
16
|
+
...o,
|
|
17
|
+
weekday: o != null && o.weekday ? o.weekday : void 0,
|
|
18
|
+
hour: "2-digit",
|
|
19
|
+
minute: "2-digit",
|
|
20
|
+
second: "2-digit",
|
|
21
|
+
hour12: u,
|
|
22
|
+
timezone: n
|
|
23
|
+
}
|
|
24
|
+
}, l);
|
|
25
|
+
}, $ = (y, c = {
|
|
26
|
+
locale: "en-gb",
|
|
27
|
+
dateFormat: "dd/mm/yy",
|
|
28
|
+
timeFormat: "HH:mm",
|
|
29
|
+
showDate: !0
|
|
30
|
+
}, o = !0) => {
|
|
31
|
+
const { showDate: u = !0 } = c;
|
|
32
|
+
let {
|
|
33
|
+
locale: n = "en-gb",
|
|
34
|
+
dateFormat: l = "dd/mm/yy",
|
|
35
|
+
timezone: s,
|
|
36
|
+
timeFormat: t,
|
|
37
|
+
showTime: i
|
|
38
|
+
} = c;
|
|
39
|
+
const a = o ? B() : {};
|
|
40
|
+
if (a && (n = a.locale ?? n, l = a.dateFormat ?? l, t = a.timeFormat ?? t, s = a.timezone ?? s, i = i ?? !1), a.formatPreset) {
|
|
41
|
+
const {
|
|
42
|
+
locale: p,
|
|
43
|
+
timezone: b,
|
|
44
|
+
hour: k,
|
|
45
|
+
minute: _,
|
|
46
|
+
second: v,
|
|
47
|
+
hour12: S,
|
|
48
|
+
...L
|
|
49
|
+
} = a.formatPreset, P = i ? { hour: k, minute: _, second: v, hour12: S } : {};
|
|
50
|
+
return y.toLocaleString(p, {
|
|
51
|
+
...b ? { timeZone: b } : {},
|
|
52
|
+
...L,
|
|
53
|
+
...P
|
|
54
|
+
}).replace(/\b(am|pm)\b/g, (A) => A.toUpperCase());
|
|
55
|
+
}
|
|
56
|
+
let e = {
|
|
57
|
+
...s ? { timeZone: s } : {}
|
|
58
|
+
};
|
|
59
|
+
if (u)
|
|
60
|
+
switch (l) {
|
|
61
|
+
case "d/m/yy":
|
|
62
|
+
case "_2/_1/06":
|
|
63
|
+
e = {
|
|
64
|
+
year: "2-digit",
|
|
65
|
+
month: "numeric",
|
|
66
|
+
day: "numeric"
|
|
67
|
+
}, n = "id-id";
|
|
68
|
+
break;
|
|
69
|
+
case "m/d/yy":
|
|
70
|
+
case "_1/_2/06":
|
|
71
|
+
e = {
|
|
72
|
+
year: "2-digit",
|
|
73
|
+
month: "numeric",
|
|
74
|
+
day: "numeric"
|
|
75
|
+
}, n = "en-us";
|
|
76
|
+
break;
|
|
77
|
+
case "d/mm/yy":
|
|
78
|
+
e = {
|
|
79
|
+
year: "2-digit",
|
|
80
|
+
month: "2-digit",
|
|
81
|
+
day: "numeric"
|
|
82
|
+
};
|
|
83
|
+
break;
|
|
84
|
+
case "dd/mm/yyyy":
|
|
85
|
+
e = {
|
|
86
|
+
year: "numeric",
|
|
87
|
+
month: "2-digit",
|
|
88
|
+
day: "2-digit"
|
|
89
|
+
};
|
|
90
|
+
break;
|
|
91
|
+
case "dd M yy":
|
|
92
|
+
case "02 Jan 06":
|
|
93
|
+
e = {
|
|
94
|
+
year: "2-digit",
|
|
95
|
+
month: "short",
|
|
96
|
+
day: "2-digit"
|
|
97
|
+
};
|
|
98
|
+
break;
|
|
99
|
+
case "dd M yyyy":
|
|
100
|
+
e = {
|
|
101
|
+
year: "numeric",
|
|
102
|
+
month: "short",
|
|
103
|
+
day: "2-digit"
|
|
104
|
+
};
|
|
105
|
+
break;
|
|
106
|
+
case "dd MM yy":
|
|
107
|
+
e = {
|
|
108
|
+
year: "2-digit",
|
|
109
|
+
month: "long",
|
|
110
|
+
day: "2-digit"
|
|
111
|
+
};
|
|
112
|
+
break;
|
|
113
|
+
case "dd MM yyyy":
|
|
114
|
+
e = {
|
|
115
|
+
year: "numeric",
|
|
116
|
+
month: "long",
|
|
117
|
+
day: "2-digit"
|
|
118
|
+
};
|
|
119
|
+
break;
|
|
120
|
+
case "D dd M yy":
|
|
121
|
+
case "D, dd M yy":
|
|
122
|
+
case "Mon, 02 Jan 06":
|
|
123
|
+
e = {
|
|
124
|
+
weekday: "short",
|
|
125
|
+
year: "2-digit",
|
|
126
|
+
month: "short",
|
|
127
|
+
day: "2-digit"
|
|
128
|
+
};
|
|
129
|
+
break;
|
|
130
|
+
case "D dd M yyyy":
|
|
131
|
+
case "D, dd M yyyy":
|
|
132
|
+
case "Mon, 02 Jan 2006":
|
|
133
|
+
e = {
|
|
134
|
+
weekday: "short",
|
|
135
|
+
year: "numeric",
|
|
136
|
+
month: "short",
|
|
137
|
+
day: "2-digit"
|
|
138
|
+
};
|
|
139
|
+
break;
|
|
140
|
+
case "DD dd MM yy":
|
|
141
|
+
case "DD, dd MM yy":
|
|
142
|
+
e = {
|
|
143
|
+
weekday: "long",
|
|
144
|
+
year: "2-digit",
|
|
145
|
+
month: "long",
|
|
146
|
+
day: "2-digit"
|
|
147
|
+
};
|
|
148
|
+
break;
|
|
149
|
+
case "DD dd MM yyyy":
|
|
150
|
+
case "DD, dd MM yyyy":
|
|
151
|
+
e = {
|
|
152
|
+
weekday: "long",
|
|
153
|
+
year: "numeric",
|
|
154
|
+
month: "long",
|
|
155
|
+
day: "2-digit"
|
|
156
|
+
};
|
|
157
|
+
break;
|
|
158
|
+
case "02/01/06":
|
|
159
|
+
default:
|
|
160
|
+
e = {
|
|
161
|
+
year: "2-digit",
|
|
162
|
+
month: "2-digit",
|
|
163
|
+
day: "2-digit"
|
|
164
|
+
};
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
if (i && !t && (t = "HH:mm"), i || t && i != !1)
|
|
168
|
+
switch (t) {
|
|
169
|
+
case "HH:mm":
|
|
170
|
+
case "HH:mm a":
|
|
171
|
+
case "15:04":
|
|
172
|
+
case "03:04 PM":
|
|
173
|
+
e = {
|
|
174
|
+
...e,
|
|
175
|
+
hour: "2-digit",
|
|
176
|
+
minute: "2-digit",
|
|
177
|
+
hour12: t.includes("a") || t.includes("PM")
|
|
178
|
+
};
|
|
179
|
+
break;
|
|
180
|
+
case "HH:mm:ss":
|
|
181
|
+
case "HH:mm:ss a":
|
|
182
|
+
case "15:04:05":
|
|
183
|
+
case "03:04:05 PM":
|
|
184
|
+
e = {
|
|
185
|
+
...e,
|
|
186
|
+
hour: "2-digit",
|
|
187
|
+
minute: "2-digit",
|
|
188
|
+
second: "2-digit",
|
|
189
|
+
hour12: t.includes("a") || t.includes("PM")
|
|
190
|
+
};
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
const h = l.includes(",") ? y.toLocaleString(n, e) : y.toLocaleString(n, e).replace(",", "");
|
|
194
|
+
return console.log("🚀 ~ formatted:", h), h.replace(/\b(am|pm)\b/g, (p) => p.toUpperCase());
|
|
195
|
+
}, se = (y) => (
|
|
196
|
+
// Use Sweden locale, which uses ISO 8601 format: https://stackoverflow.com/a/58633651/27534858
|
|
197
|
+
new Date(y).toLocaleString("sv")
|
|
198
|
+
), J = {
|
|
199
|
+
class: "flex justify-end gap-1 items-center pb-1 flex-wrap whitespace-nowrap",
|
|
200
|
+
"data-wv-name": "approver-info"
|
|
201
|
+
}, T = /* @__PURE__ */ m("span", null, "Approver:", -1), U = { class: "text-primary-500" }, V = { class: "text-general-800" }, E = { key: 1 }, O = { class: "flex flex-col gap-3 justify-between" }, Z = { class: "flex justify-between" }, G = { class: "text-general-800 text-xs font-medium" }, R = { class: "flex justify-between items-center" }, q = { class: "text-primary-500 font-medium text-xs" }, K = {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "text-general-800 font-normal text-xs"
|
|
204
|
+
}, Q = {
|
|
205
|
+
key: 1,
|
|
206
|
+
class: "flex gap-1 justify-end items-center"
|
|
207
|
+
}, W = { class: "text-general-800 font-normal text-xs" }, oe = /* @__PURE__ */ C({
|
|
208
|
+
__name: "ApproverInfo",
|
|
209
|
+
props: {
|
|
210
|
+
approvals: {},
|
|
211
|
+
showShortInfo: { type: Boolean, default: !0 },
|
|
212
|
+
label: {},
|
|
213
|
+
btnLabel: {},
|
|
214
|
+
useFormatDate: { type: Boolean, default: !0 }
|
|
215
|
+
},
|
|
216
|
+
setup(y) {
|
|
217
|
+
const c = y, o = j(!1), u = I(() => {
|
|
218
|
+
var i, a, e, h, p, b, k;
|
|
219
|
+
let s, t;
|
|
220
|
+
return (i = c.approvals) == null || i.forEach((_) => {
|
|
221
|
+
t = _.approvers.findIndex((v) => !!v.actionAt), s = t === -1 ? 0 : _.level - 1, t = t === -1 ? 0 : t;
|
|
222
|
+
}), {
|
|
223
|
+
name: (h = (e = (a = c.approvals) == null ? void 0 : a[s]) == null ? void 0 : e.approvers[t]) == null ? void 0 : h.fullName,
|
|
224
|
+
date: (k = (b = (p = c.approvals) == null ? void 0 : p[s]) == null ? void 0 : b.approvers[t]) == null ? void 0 : k.actionAt
|
|
225
|
+
};
|
|
226
|
+
}), n = (s) => {
|
|
227
|
+
let t;
|
|
228
|
+
switch (s) {
|
|
229
|
+
case "menyetujui":
|
|
230
|
+
t = "success";
|
|
231
|
+
break;
|
|
232
|
+
case "menolak":
|
|
233
|
+
t = "danger";
|
|
234
|
+
break;
|
|
235
|
+
default:
|
|
236
|
+
t = "warning";
|
|
237
|
+
}
|
|
238
|
+
return t;
|
|
239
|
+
}, l = (s) => c.useFormatDate ? s ? $(new Date(s), {
|
|
240
|
+
locale: "id-ID",
|
|
241
|
+
dateFormat: "dd M yyyy",
|
|
242
|
+
timeFormat: "HH:mm:ss"
|
|
243
|
+
}) : "-" : s;
|
|
244
|
+
return (s, t) => {
|
|
245
|
+
var i;
|
|
246
|
+
return r(), d(f, null, [
|
|
247
|
+
m("div", J, [
|
|
248
|
+
s.showShortInfo ? (r(), d(f, { key: 0 }, [
|
|
249
|
+
T,
|
|
250
|
+
(i = s.approvals) != null && i.length ? (r(), d(f, { key: 0 }, [
|
|
251
|
+
w(F, {
|
|
252
|
+
class: "!text-general-200 !text-base",
|
|
253
|
+
icon: "user"
|
|
254
|
+
}),
|
|
255
|
+
m("span", U, g(u.value.name), 1),
|
|
256
|
+
m("span", V, g(l(u.value.date)), 1),
|
|
257
|
+
m("span", {
|
|
258
|
+
onClick: t[0] || (t[0] = (a) => o.value = !0),
|
|
259
|
+
class: "text-primary-500 hover:cursor-pointer"
|
|
260
|
+
}, g(c.btnLabel ?? "more"), 1)
|
|
261
|
+
], 64)) : (r(), d("span", E, "-"))
|
|
262
|
+
], 64)) : (r(), d("span", {
|
|
263
|
+
key: 1,
|
|
264
|
+
onClick: t[1] || (t[1] = (a) => o.value = !0),
|
|
265
|
+
class: "text-primary-500 hover:cursor-pointer"
|
|
266
|
+
}, g(s.label ?? "Lihat Approval"), 1))
|
|
267
|
+
]),
|
|
268
|
+
w(z, {
|
|
269
|
+
visible: o.value,
|
|
270
|
+
"onUpdate:visible": t[2] || (t[2] = (a) => o.value = a),
|
|
271
|
+
class: "min-w-[400px]",
|
|
272
|
+
header: "List Approver",
|
|
273
|
+
modal: ""
|
|
274
|
+
}, {
|
|
275
|
+
default: N(() => [
|
|
276
|
+
m("div", O, [
|
|
277
|
+
(r(!0), d(f, null, x(s.approvals, (a) => (r(), d(f, {
|
|
278
|
+
key: a._id
|
|
279
|
+
}, [
|
|
280
|
+
m("div", Z, [
|
|
281
|
+
m("span", G, " Level " + g(a.level) + " (" + g(a.type.toLowerCase()) + ") ", 1),
|
|
282
|
+
a.status !== "menunggu approval" ? (r(), M(H, {
|
|
283
|
+
key: 0,
|
|
284
|
+
label: "selesai",
|
|
285
|
+
severity: "success"
|
|
286
|
+
})) : D("", !0)
|
|
287
|
+
]),
|
|
288
|
+
(r(!0), d(f, null, x(a.approvers, (e) => (r(), d("div", {
|
|
289
|
+
key: e._id,
|
|
290
|
+
class: "flex justify-between"
|
|
291
|
+
}, [
|
|
292
|
+
m("div", R, [
|
|
293
|
+
w(F, {
|
|
294
|
+
class: "!text-general-200 !text-base",
|
|
295
|
+
icon: "user"
|
|
296
|
+
}),
|
|
297
|
+
m("span", q, g(e.fullName), 1)
|
|
298
|
+
]),
|
|
299
|
+
a.status !== "menunggu approval" && !e.action ? (r(), d("span", K, " Tidak terlibat ")) : (r(), d("div", Q, [
|
|
300
|
+
m("span", W, g(e.actionAt ? l(e.actionAt) : "Menunggu approval..."), 1),
|
|
301
|
+
e.action ? (r(), M(H, {
|
|
302
|
+
key: 0,
|
|
303
|
+
label: e.action,
|
|
304
|
+
severity: n(e.action)
|
|
305
|
+
}, null, 8, ["label", "severity"])) : D("", !0)
|
|
306
|
+
]))
|
|
307
|
+
]))), 128))
|
|
308
|
+
], 64))), 128))
|
|
309
|
+
])
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}, 8, ["visible"])
|
|
313
|
+
], 64);
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
export {
|
|
318
|
+
oe as _,
|
|
319
|
+
se as a,
|
|
320
|
+
$ as f
|
|
321
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","@tagsamurai/fats-api-services","../../vendor/lodash-es-C3G1Cc1m.system.js","../badge/Badge-CndPv5v9.system.js","../image/Image-DX6uB7Ns.system.js","../tagtype/TagType-IMYg8AJf.system.js"],function(v,Re){"use strict";var $,C,G,P,L,_,O,y,h,w,o,k,N,E,T,W,q,B,z,F;return{setters:[t=>{$=t.inject,C=t.shallowRef,G=t.ref,P=t.defineComponent,L=t.onMounted,_=t.computed,O=t.watch,y=t.createElementBlock,h=t.openBlock,w=t.createVNode,o=t.createElementVNode,k=t.createCommentVNode,N=t.toDisplayString,E=t.unref,T=t.normalizeClass},t=>{W=t.AssetServices},t=>{q=t.u},t=>{B=t._},t=>{z=t._},t=>{F=t._}],execute:function(){v("m",t);function t(s){var a;s=s||((a=window.eventBus)==null?void 0:a.all)||new Map;const i={all:s,on(c,d){const r=s==null?void 0:s.get(c);r?r.push(d):s==null||s.set(c,[d])},off(c,d){const r=s==null?void 0:s.get(c);r&&(d?r.splice(r.indexOf(d)>>>0,1):s==null||s.set(c,[]))},emit(c,d){let r=s==null?void 0:s.get(c);r&&r.slice().map(e=>{e(d)}),r=s==null?void 0:s.get("*"),r&&r.slice().map(e=>{e(c,d)})}};return window.eventBus??(window.eventBus=i),window.eventBus}const J=v("e",t()),Ve=v("c",()=>J);var de=v("P",Symbol());function le(){var s=$(de);if(!s)throw new Error("No PrimeVue Toast provided!");return s}const ue=v("u",({icons:s,template:i}={})=>{const a=le();return{add:c=>{var l,u,g;const{message:d,customMessage:r,error:e,severity:S,life:R,group:I="default-toast",...V}=c;let A="";e instanceof Error&&e&&e.isAxiosError&&(A=e.code==="ERR_NETWORK"?(i==null?void 0:i.additionalMessage)??"":"");const f=e?"error":S??"success",j=((g=(u=(l=i==null?void 0:i.severity)==null?void 0:l[f])==null?void 0:u.replace("{message}",d))==null?void 0:g.replace("{additionalMessage}",A))||d,n=V.icon??(s==null?void 0:s[f]);a.add({severity:f,detail:r?d:j,life:R??3e3,group:I}),J.emit("toast:add",{messageId:q(),...c,severity:f,group:I,icon:n})},removeGroup:c=>{a.removeGroup(c)},removeAllGroups:()=>{a.removeAllGroups()}}}),ge=v("b",{template:{severity:{success:"{message}",error:"{message} {additionalMessage}",info:"{message} {additionalMessage}"},additionalMessage:" Please check your connection and try again."}}),ve=v("d",()=>ue(ge)),K=C(!1),U=G(),fe=v("a",()=>({loading:K,message:U,setLoading:(i,a)=>{K.value=i,U.value=a,document.body.classList[i?"add":"remove"]("loading")}})),me=s=>{let i;switch(s){case"Available":i="success";break;case"Damaged":case"Missing":case"Reported Missing":case"Reported Damaged":case"TAG Reported":case"Not Paired Yet":i="danger";break;case"Unassigned":case"Reported Disposal":case"On Disposal Process":i="dark";break;case"On Transfer":i="warning";break;default:i="primary"}return i},pe={class:"flex justify-between gap-[18px] dark:text-general-100"},_e={class:"w-full flex flex-col gap-[6px]"},ye={class:"flex justify-between"},he={class:""},we={class:"text-[16px] font-bold leading-[19.12px]"},be={class:"flex items-center gap-[6px]"},xe={class:"text-general-400 leading-[16.39px]"},ke=o("div",{class:"w-[6px] h-[6px] rounded-full bg-general-100"},null,-1),Te=["href"],Be={class:"flex flex-col gap-1"},Me={key:0,class:"flex gap-3"},De=o("span",null,":",-1),Ne={key:1,class:"flex gap-3"},Se=o("span",null,":",-1),Ie={key:2,class:"flex gap-3"},Ae=o("span",null,":",-1),Ce={key:3,class:"flex gap-3"},Ee=o("span",null,":",-1),je=v("_",P({__name:"AssetInfo",props:{id:{},fields:{},transactionDetail:{}},setup(s,{expose:i}){const a=s;L(async()=>{a.transactionDetail?e.value=a.transactionDetail:await j()});const c=ve(),{setLoading:d}=fe(),r=JSON.parse(localStorage.getItem("user")??"{}"),e=C(),S=_(()=>{var n;return(n=a.fields)==null?void 0:n.includes("status")}),R=_(()=>{const{setDefault:n,firstImageMedium:l,firstImageBig:u,secondImageBig:g,secondImageMedium:m,assetImageMedium:b,assetImageBig:x}=e.value??{},p=n==="firstImage";return a.transactionDetail?{thumbnail:b,preview:x}:{thumbnail:p?l:m,preview:p?u:g}}),I=_(()=>{var n,l,u,g,m,b,x,p,M,D;return a.transactionDetail?(u=(l=(n=e.value)==null?void 0:n.assetName)==null?void 0:l.aliasCode)!=null&&u.length?`(${(m=(g=e.value)==null?void 0:g.assetName)==null?void 0:m.aliasCode})`:"":(p=(x=(b=e.value)==null?void 0:b.name)==null?void 0:x.aliasCode)!=null&&p.length?`(${(D=(M=e.value)==null?void 0:M.name)==null?void 0:D.aliasCode})`:""}),V=_(()=>{var n,l;return((n=e.value)==null?void 0:n.assetTagType)??((l=e.value)==null?void 0:l.tagType)}),A=_(()=>{var n,l;return((n=e.value)==null?void 0:n.assetName)??((l=e.value)==null?void 0:l.name)}),f=_(()=>[{"w-[69px]":!S.value,"w-[76px]":S.value}]),j=async()=>{try{d(!0);const{data:n}=await W.getAssetDetail(a.id);n&&(e.value=n.data)}catch(n){c.add({error:n,message:"Error, failed to load asset details."})}finally{d(!1)}};return O(()=>a.transactionDetail,n=>{e.value=n},{deep:!0}),i({asset:e}),(n,l)=>{var u,g,m,b,x,p,M,D,Y,H,Q,X,Z,ee,se,te,ae,ne,ie,oe,re,ce;return h(),y("div",pe,[w(z,{src:R.value.preview},null,8,["src"]),o("div",_e,[o("div",ye,[o("div",he,[o("div",we,N(((u=A.value)==null?void 0:u.nameWithSequence)??"-"),1),o("div",be,[o("span",xe,N(((g=e.value)==null?void 0:g.assetId)??"-")+" "+N(I.value),1),ke,w(F,{type:V.value},null,8,["type"])])]),E(r).userType!=="Basic"?(h(),y("a",{key:0,href:`/assets/detail/${((m=e.value)==null?void 0:m.asset)??((b=e.value)==null?void 0:b._id)}`,class:"text-primary-500",target:"_blank"}," Asset Detail > ",8,Te)):k("",!0)]),o("div",Be,[!a.fields||(x=a.fields)!=null&&x.includes("brand")?(h(),y("div",Me,[o("span",{class:T(f.value)}," Brand ",2),De,w(B,{label:((M=(p=e.value)==null?void 0:p.assetBrand)==null?void 0:M.name)??((Y=(D=e.value)==null?void 0:D.brand)==null?void 0:Y.name)??"-",severity:"dark"},null,8,["label"])])):k("",!0),!a.fields||(H=a.fields)!=null&&H.includes("model")?(h(),y("div",Ne,[o("span",{class:T(f.value)}," Model/Type ",2),Se,w(B,{label:((X=(Q=e.value)==null?void 0:Q.assetModel)==null?void 0:X.name)??((ee=(Z=e.value)==null?void 0:Z.model)==null?void 0:ee.name)??"-",severity:"dark"},null,8,["label"])])):k("",!0),!a.fields||(se=a.fields)!=null&&se.includes("group")?(h(),y("div",Ie,[o("span",{class:T(f.value)}," Group ",2),Ae,w(B,{label:((ae=(te=e.value)==null?void 0:te.assetGroup)==null?void 0:ae.name)??((ie=(ne=e.value)==null?void 0:ne.group)==null?void 0:ie.name)??"-"},null,8,["label"])])):k("",!0),(oe=a.fields)!=null&&oe.includes("status")?(h(),y("div",Ce,[o("span",{class:T(f.value)}," Asset Status ",2),Ee,w(B,{label:((re=e.value)==null?void 0:re.status)??"-",severity:E(me)((ce=e.value)==null?void 0:ce.status),format:"nowrap"},null,8,["label","severity"])])):k("",!0)])])])}}}))}}});
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { inject as X, shallowRef as H, ref as Z, defineComponent as ee, onMounted as se, computed as _, watch as ae, createElementBlock as h, openBlock as y, createVNode as x, createElementVNode as i, createCommentVNode as k, toDisplayString as E, unref as K, normalizeClass as B } from "vue";
|
|
2
|
+
import { AssetServices as te } from "@tagsamurai/fats-api-services";
|
|
3
|
+
import { u as oe } from "../../vendor/lodash-es-CJerBxJQ.es.js";
|
|
4
|
+
import { _ as I } from "../badge/Badge-DA-XiE1C.es.js";
|
|
5
|
+
import { _ as ne } from "../image/Image-BZ31CL-y.es.js";
|
|
6
|
+
import { _ as ie } from "../tagtype/TagType-CX7BVRrE.es.js";
|
|
7
|
+
function re(s) {
|
|
8
|
+
var a;
|
|
9
|
+
s = s || ((a = window.eventBus) == null ? void 0 : a.all) || /* @__PURE__ */ new Map();
|
|
10
|
+
const o = {
|
|
11
|
+
/**
|
|
12
|
+
* A Map of event names to registered handler functions.
|
|
13
|
+
*/
|
|
14
|
+
all: s,
|
|
15
|
+
/**
|
|
16
|
+
* Register an event handler for the given type.
|
|
17
|
+
* @param {string|symbol} type Type of event to listen for, or `'*'` for all events
|
|
18
|
+
* @param {Function} handler Function to call in response to given event
|
|
19
|
+
* @memberOf mitt
|
|
20
|
+
*/
|
|
21
|
+
on(r, c) {
|
|
22
|
+
const n = s == null ? void 0 : s.get(r);
|
|
23
|
+
n ? n.push(c) : s == null || s.set(r, [c]);
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* Remove an event handler for the given type.
|
|
27
|
+
* If `handler` is omitted, all handlers of the given type are removed.
|
|
28
|
+
* @param {string|symbol} type Type of event to unregister `handler` from (`'*'` to remove a wildcard handler)
|
|
29
|
+
* @param {Function} [handler] Handler function to remove
|
|
30
|
+
* @memberOf mitt
|
|
31
|
+
*/
|
|
32
|
+
off(r, c) {
|
|
33
|
+
const n = s == null ? void 0 : s.get(r);
|
|
34
|
+
n && (c ? n.splice(n.indexOf(c) >>> 0, 1) : s == null || s.set(r, []));
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Invoke all handlers for the given type.
|
|
38
|
+
* If present, `'*'` handlers are invoked after type-matched handlers.
|
|
39
|
+
*
|
|
40
|
+
* Note: Manually firing '*' handlers is not supported.
|
|
41
|
+
*
|
|
42
|
+
* @param {string|symbol} type The event type to invoke
|
|
43
|
+
* @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
|
|
44
|
+
* @memberOf mitt
|
|
45
|
+
*/
|
|
46
|
+
emit(r, c) {
|
|
47
|
+
let n = s == null ? void 0 : s.get(r);
|
|
48
|
+
n && n.slice().map((e) => {
|
|
49
|
+
e(c);
|
|
50
|
+
}), n = s == null ? void 0 : s.get("*"), n && n.slice().map((e) => {
|
|
51
|
+
e(r, c);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return window.eventBus ?? (window.eventBus = o), window.eventBus;
|
|
56
|
+
}
|
|
57
|
+
const Q = re(), Le = () => Q;
|
|
58
|
+
var ce = Symbol();
|
|
59
|
+
function de() {
|
|
60
|
+
var s = X(ce);
|
|
61
|
+
if (!s)
|
|
62
|
+
throw new Error("No PrimeVue Toast provided!");
|
|
63
|
+
return s;
|
|
64
|
+
}
|
|
65
|
+
const le = ({ icons: s, template: o } = {}) => {
|
|
66
|
+
const a = de();
|
|
67
|
+
return {
|
|
68
|
+
add: (r) => {
|
|
69
|
+
var d, l, u;
|
|
70
|
+
const {
|
|
71
|
+
message: c,
|
|
72
|
+
customMessage: n,
|
|
73
|
+
error: e,
|
|
74
|
+
severity: T,
|
|
75
|
+
life: N,
|
|
76
|
+
group: M = "default-toast",
|
|
77
|
+
...S
|
|
78
|
+
} = r;
|
|
79
|
+
let D = "";
|
|
80
|
+
e instanceof Error && e && e.isAxiosError && (D = e.code === "ERR_NETWORK" ? (o == null ? void 0 : o.additionalMessage) ?? "" : "");
|
|
81
|
+
const m = e ? "error" : T ?? "success", A = ((u = (l = (d = o == null ? void 0 : o.severity) == null ? void 0 : d[m]) == null ? void 0 : l.replace("{message}", c)) == null ? void 0 : u.replace("{additionalMessage}", D)) || c, t = S.icon ?? (s == null ? void 0 : s[m]);
|
|
82
|
+
a.add({
|
|
83
|
+
severity: m,
|
|
84
|
+
detail: n ? c : A,
|
|
85
|
+
life: N ?? 3e3,
|
|
86
|
+
group: M
|
|
87
|
+
}), Q.emit("toast:add", {
|
|
88
|
+
messageId: oe(),
|
|
89
|
+
...r,
|
|
90
|
+
severity: m,
|
|
91
|
+
group: M,
|
|
92
|
+
icon: t
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
removeGroup: (r) => {
|
|
96
|
+
a.removeGroup(r);
|
|
97
|
+
},
|
|
98
|
+
removeAllGroups: () => {
|
|
99
|
+
a.removeAllGroups();
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}, ue = {
|
|
103
|
+
template: {
|
|
104
|
+
severity: {
|
|
105
|
+
success: "{message}",
|
|
106
|
+
error: "{message} {additionalMessage}",
|
|
107
|
+
info: "{message} {additionalMessage}"
|
|
108
|
+
},
|
|
109
|
+
additionalMessage: " Please check your connection and try again."
|
|
110
|
+
}
|
|
111
|
+
}, me = () => le(ue), U = H(!1), Y = Z(), fe = () => ({
|
|
112
|
+
loading: U,
|
|
113
|
+
message: Y,
|
|
114
|
+
setLoading: (o, a) => {
|
|
115
|
+
U.value = o, Y.value = a, document.body.classList[o ? "add" : "remove"]("loading");
|
|
116
|
+
}
|
|
117
|
+
}), ve = (s) => {
|
|
118
|
+
let o;
|
|
119
|
+
switch (s) {
|
|
120
|
+
case "Available":
|
|
121
|
+
o = "success";
|
|
122
|
+
break;
|
|
123
|
+
case "Damaged":
|
|
124
|
+
case "Missing":
|
|
125
|
+
case "Reported Missing":
|
|
126
|
+
case "Reported Damaged":
|
|
127
|
+
case "TAG Reported":
|
|
128
|
+
case "Not Paired Yet":
|
|
129
|
+
o = "danger";
|
|
130
|
+
break;
|
|
131
|
+
case "Unassigned":
|
|
132
|
+
case "Reported Disposal":
|
|
133
|
+
case "On Disposal Process":
|
|
134
|
+
o = "dark";
|
|
135
|
+
break;
|
|
136
|
+
case "On Transfer":
|
|
137
|
+
o = "warning";
|
|
138
|
+
break;
|
|
139
|
+
default:
|
|
140
|
+
o = "primary";
|
|
141
|
+
}
|
|
142
|
+
return o;
|
|
143
|
+
}, ge = { class: "flex justify-between gap-[18px] dark:text-general-100" }, pe = { class: "w-full flex flex-col gap-[6px]" }, _e = { class: "flex justify-between" }, he = { class: "" }, ye = { class: "text-[16px] font-bold leading-[19.12px]" }, xe = { class: "flex items-center gap-[6px]" }, be = { class: "text-general-400 leading-[16.39px]" }, we = /* @__PURE__ */ i("div", { class: "w-[6px] h-[6px] rounded-full bg-general-100" }, null, -1), ke = ["href"], Te = { class: "flex flex-col gap-1" }, Me = {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: "flex gap-3"
|
|
146
|
+
}, De = /* @__PURE__ */ i("span", null, ":", -1), Be = {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "flex gap-3"
|
|
149
|
+
}, Ie = /* @__PURE__ */ i("span", null, ":", -1), Ne = {
|
|
150
|
+
key: 2,
|
|
151
|
+
class: "flex gap-3"
|
|
152
|
+
}, Se = /* @__PURE__ */ i("span", null, ":", -1), Ae = {
|
|
153
|
+
key: 3,
|
|
154
|
+
class: "flex gap-3"
|
|
155
|
+
}, Ee = /* @__PURE__ */ i("span", null, ":", -1), Oe = /* @__PURE__ */ ee({
|
|
156
|
+
__name: "AssetInfo",
|
|
157
|
+
props: {
|
|
158
|
+
id: {},
|
|
159
|
+
fields: {},
|
|
160
|
+
transactionDetail: {}
|
|
161
|
+
},
|
|
162
|
+
setup(s, { expose: o }) {
|
|
163
|
+
const a = s;
|
|
164
|
+
se(async () => {
|
|
165
|
+
a.transactionDetail ? e.value = a.transactionDetail : await A();
|
|
166
|
+
});
|
|
167
|
+
const r = me(), { setLoading: c } = fe(), n = JSON.parse(localStorage.getItem("user") ?? "{}"), e = H(), T = _(() => {
|
|
168
|
+
var t;
|
|
169
|
+
return (t = a.fields) == null ? void 0 : t.includes("status");
|
|
170
|
+
}), N = _(() => {
|
|
171
|
+
const {
|
|
172
|
+
setDefault: t,
|
|
173
|
+
firstImageMedium: d,
|
|
174
|
+
firstImageBig: l,
|
|
175
|
+
secondImageBig: u,
|
|
176
|
+
secondImageMedium: f,
|
|
177
|
+
assetImageMedium: g,
|
|
178
|
+
assetImageBig: p
|
|
179
|
+
} = e.value ?? {}, v = t === "firstImage";
|
|
180
|
+
return a.transactionDetail ? {
|
|
181
|
+
thumbnail: g,
|
|
182
|
+
preview: p
|
|
183
|
+
} : {
|
|
184
|
+
thumbnail: v ? d : f,
|
|
185
|
+
preview: v ? l : u
|
|
186
|
+
};
|
|
187
|
+
}), M = _(() => {
|
|
188
|
+
var t, d, l, u, f, g, p, v, b, w;
|
|
189
|
+
return a.transactionDetail ? (l = (d = (t = e.value) == null ? void 0 : t.assetName) == null ? void 0 : d.aliasCode) != null && l.length ? `(${(f = (u = e.value) == null ? void 0 : u.assetName) == null ? void 0 : f.aliasCode})` : "" : (v = (p = (g = e.value) == null ? void 0 : g.name) == null ? void 0 : p.aliasCode) != null && v.length ? `(${(w = (b = e.value) == null ? void 0 : b.name) == null ? void 0 : w.aliasCode})` : "";
|
|
190
|
+
}), S = _(() => {
|
|
191
|
+
var t, d;
|
|
192
|
+
return ((t = e.value) == null ? void 0 : t.assetTagType) ?? ((d = e.value) == null ? void 0 : d.tagType);
|
|
193
|
+
}), D = _(() => {
|
|
194
|
+
var t, d;
|
|
195
|
+
return ((t = e.value) == null ? void 0 : t.assetName) ?? ((d = e.value) == null ? void 0 : d.name);
|
|
196
|
+
}), m = _(() => [
|
|
197
|
+
{
|
|
198
|
+
"w-[69px]": !T.value,
|
|
199
|
+
"w-[76px]": T.value
|
|
200
|
+
}
|
|
201
|
+
]), A = async () => {
|
|
202
|
+
try {
|
|
203
|
+
c(!0);
|
|
204
|
+
const { data: t } = await te.getAssetDetail(a.id);
|
|
205
|
+
t && (e.value = t.data);
|
|
206
|
+
} catch (t) {
|
|
207
|
+
r.add({ error: t, message: "Error, failed to load asset details." });
|
|
208
|
+
} finally {
|
|
209
|
+
c(!1);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
return ae(
|
|
213
|
+
() => a.transactionDetail,
|
|
214
|
+
(t) => {
|
|
215
|
+
e.value = t;
|
|
216
|
+
},
|
|
217
|
+
{ deep: !0 }
|
|
218
|
+
), o({ asset: e }), (t, d) => {
|
|
219
|
+
var l, u, f, g, p, v, b, w, C, R, $, G, P, V, L, O, j, W, q, F, z, J;
|
|
220
|
+
return y(), h("div", ge, [
|
|
221
|
+
x(ne, {
|
|
222
|
+
src: N.value.preview
|
|
223
|
+
}, null, 8, ["src"]),
|
|
224
|
+
i("div", pe, [
|
|
225
|
+
i("div", _e, [
|
|
226
|
+
i("div", he, [
|
|
227
|
+
i("div", ye, E(((l = D.value) == null ? void 0 : l.nameWithSequence) ?? "-"), 1),
|
|
228
|
+
i("div", xe, [
|
|
229
|
+
i("span", be, E(((u = e.value) == null ? void 0 : u.assetId) ?? "-") + " " + E(M.value), 1),
|
|
230
|
+
we,
|
|
231
|
+
x(ie, { type: S.value }, null, 8, ["type"])
|
|
232
|
+
])
|
|
233
|
+
]),
|
|
234
|
+
K(n).userType !== "Basic" ? (y(), h("a", {
|
|
235
|
+
key: 0,
|
|
236
|
+
href: `/assets/detail/${((f = e.value) == null ? void 0 : f.asset) ?? ((g = e.value) == null ? void 0 : g._id)}`,
|
|
237
|
+
class: "text-primary-500",
|
|
238
|
+
target: "_blank"
|
|
239
|
+
}, " Asset Detail > ", 8, ke)) : k("", !0)
|
|
240
|
+
]),
|
|
241
|
+
i("div", Te, [
|
|
242
|
+
!a.fields || (p = a.fields) != null && p.includes("brand") ? (y(), h("div", Me, [
|
|
243
|
+
i("span", {
|
|
244
|
+
class: B(m.value)
|
|
245
|
+
}, " Brand ", 2),
|
|
246
|
+
De,
|
|
247
|
+
x(I, {
|
|
248
|
+
label: ((b = (v = e.value) == null ? void 0 : v.assetBrand) == null ? void 0 : b.name) ?? ((C = (w = e.value) == null ? void 0 : w.brand) == null ? void 0 : C.name) ?? "-",
|
|
249
|
+
severity: "dark"
|
|
250
|
+
}, null, 8, ["label"])
|
|
251
|
+
])) : k("", !0),
|
|
252
|
+
!a.fields || (R = a.fields) != null && R.includes("model") ? (y(), h("div", Be, [
|
|
253
|
+
i("span", {
|
|
254
|
+
class: B(m.value)
|
|
255
|
+
}, " Model/Type ", 2),
|
|
256
|
+
Ie,
|
|
257
|
+
x(I, {
|
|
258
|
+
label: ((G = ($ = e.value) == null ? void 0 : $.assetModel) == null ? void 0 : G.name) ?? ((V = (P = e.value) == null ? void 0 : P.model) == null ? void 0 : V.name) ?? "-",
|
|
259
|
+
severity: "dark"
|
|
260
|
+
}, null, 8, ["label"])
|
|
261
|
+
])) : k("", !0),
|
|
262
|
+
!a.fields || (L = a.fields) != null && L.includes("group") ? (y(), h("div", Ne, [
|
|
263
|
+
i("span", {
|
|
264
|
+
class: B(m.value)
|
|
265
|
+
}, " Group ", 2),
|
|
266
|
+
Se,
|
|
267
|
+
x(I, {
|
|
268
|
+
label: ((j = (O = e.value) == null ? void 0 : O.assetGroup) == null ? void 0 : j.name) ?? ((q = (W = e.value) == null ? void 0 : W.group) == null ? void 0 : q.name) ?? "-"
|
|
269
|
+
}, null, 8, ["label"])
|
|
270
|
+
])) : k("", !0),
|
|
271
|
+
(F = a.fields) != null && F.includes("status") ? (y(), h("div", Ae, [
|
|
272
|
+
i("span", {
|
|
273
|
+
class: B(m.value)
|
|
274
|
+
}, " Asset Status ", 2),
|
|
275
|
+
Ee,
|
|
276
|
+
x(I, {
|
|
277
|
+
label: ((z = e.value) == null ? void 0 : z.status) ?? "-",
|
|
278
|
+
severity: K(ve)((J = e.value) == null ? void 0 : J.status),
|
|
279
|
+
format: "nowrap"
|
|
280
|
+
}, null, 8, ["label", "severity"])
|
|
281
|
+
])) : k("", !0)
|
|
282
|
+
])
|
|
283
|
+
])
|
|
284
|
+
]);
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
export {
|
|
289
|
+
ce as P,
|
|
290
|
+
Oe as _,
|
|
291
|
+
fe as a,
|
|
292
|
+
ue as b,
|
|
293
|
+
Le as c,
|
|
294
|
+
me as d,
|
|
295
|
+
Q as e,
|
|
296
|
+
re as m,
|
|
297
|
+
le as u
|
|
298
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["vue","../../vendor/vue-advanced-cropper-NG93jHnU.system.js","../animation/Animation-6756VN9N.system.js"],function(u,R){"use strict";var f,p,v,m,h,c,g,z,w,y,C,d,_;return{setters:[e=>{f=e.defineComponent,p=e.shallowRef,v=e.ref,m=e.createBlock,h=e.openBlock,c=e.unref,g=e.withCtx,z=e.renderSlot,w=e.createElementVNode,y=e.normalizeClass,C=e.toDisplayString},e=>{d=e.o},e=>{_=e.u}],execute:function(){const e=u("_",(a,r)=>{const i=a.__vccOpts||a;for(const[t,n]of r)i[t]=n;return i}),S=u("B",e(f({__name:"BackgroundImageCropper",props:{touchMove:{},mouseMove:{},touchResize:{},wheelResize:{}},emits:["move","resize"],setup(a){const r=a,{locale:i}=_("ImageCompressor"),t=p(!1),n=v(),B=(o,s)=>{if(o.type==="touchstart"||o.type==="touchmove"){if(o.touches.length===1&&!s)return t.value=!0,n.value="touch",k(),!1;t.value=!1}else if(o.type==="wheel"){if(!s&&!o.ctrlKey)return t.value=!0,n.value="wheel",k(),!1;t.value=!1}o.preventDefault(),o.stopPropagation()},k=()=>{setTimeout(()=>{t.value=!1},1e3)};return(o,s)=>(h(),m(c(d),{"events-filter":B,"mouse-move":r.mouseMove,"touch-move":r.touchMove,"touch-resize":r.touchResize,"wheel-resize":r.wheelResize,onMove:s[0]||(s[0]=l=>o.$emit("move",l)),onResize:s[1]||(s[1]=l=>o.$emit("resize",l))},{default:g(()=>[z(o.$slots,"default",{},void 0,!0),w("div",{class:y([{"cropper-event-notification--visible":t.value},"cropper-event-notification"])},C(n.value==="wheel"?c(i).cropperCtrlScrollInfo:c(i).cropperTwoFingerInfo),3)]),_:3},8,["mouse-move","touch-move","touch-resize","wheel-resize"]))}}),[["__scopeId","data-v-9031c32d"]]))}}});
|