@fewangsit/wangsvue-fats 1.0.0-alpha.42 → 1.0.0-alpha.44

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.
Files changed (284) hide show
  1. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
  2. package/components/index.d.ts +1 -0
  3. package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
  4. package/event-bus/index.d.ts +3 -0
  5. package/loading-page-BrQattYE.js +1 -0
  6. package/loading-page-CoC9UhfC.js +4 -0
  7. package/loading-page-DbLuqCHa.js +1 -0
  8. package/loading-page-f8D03l3G.js +4 -0
  9. package/loading-plane-CgfbWppy.js +1 -0
  10. package/loading-plane-CoXtqoc9.js +4 -0
  11. package/loading-table-Bdr9ZhtP.js +1 -0
  12. package/loading-table-ByUoWqUo.js +4 -0
  13. package/loading-table-BygEMzFM.js +4 -0
  14. package/loading-table-BzrSQlA0.js +1 -0
  15. package/loading-table-D9bw9OcI.js +4 -0
  16. package/loading-table-chOgXi94.js +1 -0
  17. package/no-data-CTKux8RI.js +4 -0
  18. package/no-data-Cgze_Rvp.js +1 -0
  19. package/{assets/lottiejs/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
  20. package/no-data-Dep79CBh.js +1 -0
  21. package/no-data-g0dJCy2p.js +4 -0
  22. package/no-data-y1X5WtcQ.js +1 -0
  23. package/package.json +3 -3
  24. package/stats.html +1 -1
  25. package/style.css +1 -1
  26. package/wangsvue-fats.js +51885 -346
  27. package/wangsvue-fats.system.js +312 -1
  28. package/assets/lottiejs/loading-page-B9ooQcfF.system.js +0 -1
  29. package/assets/lottiejs/loading-page-CQ0mKER2.es.js +0 -15
  30. package/assets/lottiejs/loading-table-B4T3FYiI.system.js +0 -1
  31. package/assets/lottiejs/loading-table-BnpbX8Ew.es.js +0 -15
  32. package/assets/lottiejs/no-data-CMWnya_k.system.js +0 -1
  33. package/components/animation/Animation-6756VN9N.system.js +0 -1
  34. package/components/animation/Animation-COWVilAA.es.js +0 -428
  35. package/components/approverinfo/ApproverInfo-BdqBpNjY.system.js +0 -1
  36. package/components/approverinfo/ApproverInfo-C3_ibV8c.es.js +0 -321
  37. package/components/assetinfo/AssetInfo-BBgKToRP.system.js +0 -1
  38. package/components/assetinfo/AssetInfo-CmwgOU74.es.js +0 -298
  39. package/components/backgroundimagecropper/BackgroundImageCropper-DFHtaSyE.system.js +0 -1
  40. package/components/backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js +0 -57
  41. package/components/badge/Badge-CndPv5v9.system.js +0 -1
  42. package/components/badge/Badge-DA-XiE1C.es.js +0 -115
  43. package/components/badgegroup/BadgeGroup-Bj0EjoML.es.js +0 -68
  44. package/components/badgegroup/BadgeGroup-Y-HhiHk8.system.js +0 -1
  45. package/components/basecalendar/BaseCalendar-47ahYXrt.es.js +0 -867
  46. package/components/basecalendar/BaseCalendar-Ce46jOkg.system.js +0 -1
  47. package/components/basetree/BaseTree-DDu1qI7t.system.js +0 -1
  48. package/components/basetree/BaseTree-DLSA5FMh.es.js +0 -167
  49. package/components/breadcrumb/Breadcrumb-B5bAijry.system.js +0 -1
  50. package/components/breadcrumb/Breadcrumb-BWSmLPqn.es.js +0 -46
  51. package/components/button/Button-D-MSv_AS.es.js +0 -120
  52. package/components/button/Button-Okx1_kOu.system.js +0 -1
  53. package/components/buttonbulkaction/ButtonBulkAction-B4RcdWmb.es.js +0 -185
  54. package/components/buttonbulkaction/ButtonBulkAction-DLmvicRL.system.js +0 -1
  55. package/components/buttoncopy/ButtonCopy-BZgQAFOM.es.js +0 -31
  56. package/components/buttoncopy/ButtonCopy-CKi1bBpz.system.js +0 -1
  57. package/components/buttondownload/ButtonDownload-Bw9T3mbW.es.js +0 -92
  58. package/components/buttondownload/ButtonDownload-CpA0ryUT.system.js +0 -1
  59. package/components/buttonfilter/ButtonFilter-BIE-jM2i.es.js +0 -28
  60. package/components/buttonfilter/ButtonFilter-C4WRvUrj.system.js +0 -1
  61. package/components/buttonradio/ButtonRadio-5VUY8o5h.es.js +0 -83
  62. package/components/buttonradio/ButtonRadio-B2wWrgB5.system.js +0 -1
  63. package/components/buttonscan/ButtonScan-BCScT2cx.es.js +0 -421
  64. package/components/buttonscan/ButtonScan-TbyhlW5M.system.js +0 -1
  65. package/components/buttonsearch/ButtonSearch-Clbafqts.es.js +0 -70
  66. package/components/buttonsearch/ButtonSearch-e57pD5r3.system.js +0 -1
  67. package/components/buttonselecttree/ButtonSelectTree-B-_Iw5sB.es.js +0 -218
  68. package/components/buttonselecttree/ButtonSelectTree-Cbq1oeVK.system.js +0 -1
  69. package/components/buttonselectuser/ButtonSelectUser-Ar7Y8tVR.es.js +0 -101
  70. package/components/buttonselectuser/ButtonSelectUser-Cfe6m75Z.system.js +0 -1
  71. package/components/buttonsync/ButtonSync-Bc1GZXT6.es.js +0 -29
  72. package/components/buttonsync/ButtonSync-ClllEdAy.system.js +0 -1
  73. package/components/buttontoggle/ButtonToggle-DIy3M8Pz.es.js +0 -11
  74. package/components/buttontoggle/ButtonToggle-VNp0lbcW.system.js +0 -1
  75. package/components/buttonviewlog/ButtonViewLog-Ct8QwEey.system.js +0 -1
  76. package/components/buttonviewlog/ButtonViewLog-h9uVv5A5.es.js +0 -21
  77. package/components/calendar/Calendar-7yBKZsvj.system.js +0 -1
  78. package/components/calendar/Calendar-Df6CnW-l.es.js +0 -112
  79. package/components/card/Card-BUKU2FcT.system.js +0 -1
  80. package/components/card/Card-CwnxKNdM.es.js +0 -47
  81. package/components/checkbox/Checkbox-CCtItmVW.system.js +0 -1
  82. package/components/checkbox/Checkbox-DdsR222S.es.js +0 -135
  83. package/components/codesnippet/CodeSnippet-Bpps-Iyc.es.js +0 -127
  84. package/components/codesnippet/CodeSnippet-DvTtZ28b.system.js +0 -2
  85. package/components/codesnippetadapter/CodeSnippetAdapter-BtSqWBl1.system.js +0 -1
  86. package/components/codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js +0 -26
  87. package/components/columnlist/ColumnList-Bh3LZlOa.system.js +0 -1
  88. package/components/columnlist/ColumnList-Bp7soiys.es.js +0 -204
  89. package/components/customcolumn/CustomColumn-CVhAbTGn.system.js +0 -1
  90. package/components/customcolumn/CustomColumn-Dblxjw_0.es.js +0 -138
  91. package/components/datatable/DataTable--mHUKNUr.system.js +0 -1
  92. package/components/datatable/DataTable-J1j-OKsW.es.js +0 -983
  93. package/components/dialog/Dialog-Dy93f91f.es.js +0 -121
  94. package/components/dialog/Dialog-WEl66uTI.system.js +0 -1
  95. package/components/dialogconfirm/DialogConfirm-BOFb7rJD.es.js +0 -139
  96. package/components/dialogconfirm/DialogConfirm-o7_v7F31.system.js +0 -1
  97. package/components/dialogform/DialogForm-C15nC1wH.es.js +0 -223
  98. package/components/dialogform/DialogForm-CdpY1_-F.system.js +0 -1
  99. package/components/dialogselecttree/DialogSelectTree-BA8xEqco.es.js +0 -268
  100. package/components/dialogselecttree/DialogSelectTree-DKxWI9Re.system.js +0 -1
  101. package/components/dialogselectuser/DialogSelectUser-BZTSktHZ.system.js +0 -1
  102. package/components/dialogselectuser/DialogSelectUser-Bu5TDAPt.es.js +0 -186
  103. package/components/dialogselectuserfilter/DialogSelectUserFilter-DEl4zFaX.system.js +0 -1
  104. package/components/dialogselectuserfilter/DialogSelectUserFilter-Dz5OxAU-.es.js +0 -40
  105. package/components/dropdown/Dropdown-D4S52rW5.es.js +0 -252
  106. package/components/dropdown/Dropdown-DuvNYyq0.system.js +0 -1
  107. package/components/editor/Editor-DQ7Xdy30.es.js +0 -1036
  108. package/components/editor/Editor-IfYw2Tps.system.js +0 -1
  109. package/components/editorbutton/EditorButton-DDgS2vga.es.js +0 -28
  110. package/components/editorbutton/EditorButton-DmVrr4Bk.system.js +0 -1
  111. package/components/fieldwrapper/FieldWrapper-C6HJ2HnC.es.js +0 -34
  112. package/components/fieldwrapper/FieldWrapper-DFjw9hA8.system.js +0 -1
  113. package/components/fileupload/FileUpload-B6PAucnD.es.js +0 -175
  114. package/components/fileupload/FileUpload-iVAJXujV.system.js +0 -1
  115. package/components/filtercontainer/FilterContainer-CuMaq5Sv.es.js +0 -284
  116. package/components/filtercontainer/FilterContainer-DUeVLHgZ.system.js +0 -1
  117. package/components/form/Form-D-e0VI8V.system.js +0 -1
  118. package/components/form/Form-eSj-nb1y.es.js +0 -181
  119. package/components/hardwaresync/HardwareSync--HomfQuH.system.js +0 -1
  120. package/components/hardwaresync/HardwareSync-DUsVwHx1.es.js +0 -236
  121. package/components/icon/Icon-DUylRmY4.system.js +0 -1
  122. package/components/icon/Icon-mDqG7urn.es.js +0 -82
  123. package/components/image/Image-BZ31CL-y.es.js +0 -169
  124. package/components/image/Image-DX6uB7Ns.system.js +0 -1
  125. package/components/imagecompressor/ImageCompressor-BLeJDvN3.system.js +0 -1
  126. package/components/imagecompressor/ImageCompressor-DaW0ak9c.es.js +0 -501
  127. package/components/imageinputinfo/ImageInputInfo-C5F14hbF.system.js +0 -1
  128. package/components/imageinputinfo/ImageInputInfo-oTtVBxzO.es.js +0 -46
  129. package/components/inlinemessage/InlineMessage-19w6FOcP.system.js +0 -1
  130. package/components/inlinemessage/InlineMessage-CBZT3jWS.es.js +0 -94
  131. package/components/inputbadge/InputBadge-CsdT7M7-.es.js +0 -186
  132. package/components/inputbadge/InputBadge-dgANMV70.system.js +0 -1
  133. package/components/inputcurrency/InputCurrency-B96npK8W.es.js +0 -1208
  134. package/components/inputcurrency/InputCurrency-ChqGX5L8.system.js +0 -1
  135. package/components/inputemail/InputEmail-BMzumenA.es.js +0 -49
  136. package/components/inputemail/InputEmail-CYILS9bp.system.js +0 -1
  137. package/components/inputgroup/InputGroup-G9TEI4vX.system.js +0 -1
  138. package/components/inputgroup/InputGroup-eNDRlJ5R.es.js +0 -56
  139. package/components/inputnumber/InputNumber-Bzk_YzWM.es.js +0 -232
  140. package/components/inputnumber/InputNumber-CRyg8Xw_.system.js +0 -1
  141. package/components/inputpassword/InputPassword-BMHMWLgU.es.js +0 -121
  142. package/components/inputpassword/InputPassword-BjB6FsoL.system.js +0 -1
  143. package/components/inputphonenumber/InputPhoneNumber-CVM2oK5q.es.js +0 -591
  144. package/components/inputphonenumber/InputPhoneNumber-DIbd3upL.system.js +0 -1
  145. package/components/inputrangenumber/InputRangeNumber-B1aAoKVj.es.js +0 -134
  146. package/components/inputrangenumber/InputRangeNumber-C28xgFBY.system.js +0 -1
  147. package/components/inputsearch/InputSearch--KHwTBTm.system.js +0 -1
  148. package/components/inputsearch/InputSearch-cPq3vqhy.es.js +0 -53
  149. package/components/inputtext/InputText-93zDNfC3.system.js +0 -1
  150. package/components/inputtext/InputText-_xEnXysf.es.js +0 -241
  151. package/components/inputurl/InputURL-aqx1PVKL.es.js +0 -61
  152. package/components/inputurl/InputURL-kWIiKGEG.system.js +0 -1
  153. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
  154. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
  155. package/components/litedropdown/LiteDropdown-3KsCx4wX.system.js +0 -1
  156. package/components/litedropdown/LiteDropdown-DcSzP11l.es.js +0 -102
  157. package/components/loading/Loading-D8M801C9.es.js +0 -24
  158. package/components/loading/Loading-Diwog8dc.system.js +0 -1
  159. package/components/mentionlist/MentionList--7AymnhE.es.js +0 -58
  160. package/components/mentionlist/MentionList-600dsWhX.system.js +0 -1
  161. package/components/mentionsection/MentionSection-C1gWOzH2.system.js +0 -3
  162. package/components/mentionsection/MentionSection-C_c4qbpq.es.js +0 -52
  163. package/components/menu/Menu-BmTMFwBD.es.js +0 -73
  164. package/components/menu/Menu-OR25pAK3.system.js +0 -1
  165. package/components/menuitem/MenuItem-LoZMc0T9.es.js +0 -65
  166. package/components/menuitem/MenuItem-imQ-hYTP.system.js +0 -1
  167. package/components/multirow/MultiRow-ClSMxrEx.es.js +0 -52
  168. package/components/multirow/MultiRow-DKu6uIsI.system.js +0 -1
  169. package/components/multiselect/MultiSelect-DGhS1EyX.es.js +0 -189
  170. package/components/multiselect/MultiSelect-DKFYq47E.system.js +0 -1
  171. package/components/overlaypanel/OverlayPanel-C_WCcNPw.system.js +0 -1
  172. package/components/overlaypanel/OverlayPanel-DXNek7Yb.es.js +0 -49
  173. package/components/tabmenu/TabMenu-CAQqu-ff.system.js +0 -1
  174. package/components/tabmenu/TabMenu-iMeZa8gy.es.js +0 -108
  175. package/components/tagtype/TagType-CX7BVRrE.es.js +0 -49
  176. package/components/tagtype/TagType-IMYg8AJf.system.js +0 -1
  177. package/components/textarea/Textarea-ClnQ2qmf.es.js +0 -108
  178. package/components/textarea/Textarea-DlkzVURV.system.js +0 -1
  179. package/components/timeline/Timeline-BMRdV_mH.es.js +0 -120
  180. package/components/timeline/Timeline-D7SYc3QX.system.js +0 -1
  181. package/components/timelinecontentbytype/TimelineContentByType-BmWsZID0.system.js +0 -1
  182. package/components/timelinecontentbytype/TimelineContentByType-ehFLzTA1.es.js +0 -111
  183. package/components/toast/Toast-DnALWJkx.es.js +0 -74
  184. package/components/toast/Toast-Pc_DOZ5-.system.js +0 -1
  185. package/components/toggleswitch/ToggleSwitch-WHdD3oYL.system.js +0 -1
  186. package/components/toggleswitch/ToggleSwitch-wRjnHRIw.es.js +0 -90
  187. package/components/transactionroles/TransactionRoles-B_67h5wb.es.js +0 -223
  188. package/components/transactionroles/TransactionRoles-DSXBVwPM.system.js +0 -1
  189. package/components/tree/Tree-BoVGYw5N.system.js +0 -1
  190. package/components/tree/Tree-DnaIZZ8S.es.js +0 -268
  191. package/components/treenode/TreeNode-D5aepDIU.system.js +0 -1
  192. package/components/treenode/TreeNode-KJOUvlTH.es.js +0 -499
  193. package/components/treesearchinput/TreeSearchInput-B1PmhE7k.es.js +0 -56
  194. package/components/treesearchinput/TreeSearchInput-C-hXPV61.system.js +0 -1
  195. package/components/username/UserName-CCyPAYG6.system.js +0 -1
  196. package/components/username/UserName-CWs83BX6.es.js +0 -130
  197. package/components/userwithicon/UserWithIcon-CFjQcbAS.system.js +0 -1
  198. package/components/userwithicon/UserWithIcon-Dn3aNKdq.es.js +0 -18
  199. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
  200. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
  201. package/vendor/@popperjs/core-BDAJHTVh.es.js +0 -905
  202. package/vendor/@popperjs/core-DpNOCyB0.system.js +0 -1
  203. package/vendor/@tiptap/core-BLz8iRA3.es.js +0 -2868
  204. package/vendor/@tiptap/core-bnIgGWIt.system.js +0 -80
  205. package/vendor/@tiptap/extension-bold-BnsTNqIJ.es.js +0 -71
  206. package/vendor/@tiptap/extension-bold-C_KVm_D0.system.js +0 -1
  207. package/vendor/@tiptap/extension-bubble-menu-D421L1EU.system.js +0 -1
  208. package/vendor/@tiptap/extension-bubble-menu-D9Vgq7yO.es.js +0 -128
  209. package/vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js +0 -53
  210. package/vendor/@tiptap/extension-bullet-list-kXXFF-_p.system.js +0 -1
  211. package/vendor/@tiptap/extension-code-CfQ7g1i2.es.js +0 -51
  212. package/vendor/@tiptap/extension-code-Q8P1EHjz.system.js +0 -1
  213. package/vendor/@tiptap/extension-floating-menu-8rFSweor.system.js +0 -1
  214. package/vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js +0 -99
  215. package/vendor/@tiptap/extension-heading-BE64-Rg_.system.js +0 -1
  216. package/vendor/@tiptap/extension-heading-ZTlCgdtc.es.js +0 -54
  217. package/vendor/@tiptap/extension-history-GLkLmX-Y.system.js +0 -1
  218. package/vendor/@tiptap/extension-history-eJIThEn-.es.js +0 -35
  219. package/vendor/@tiptap/extension-image-B8NPUVFM.es.js +0 -64
  220. package/vendor/@tiptap/extension-image-rKrdkZpJ.system.js +0 -1
  221. package/vendor/@tiptap/extension-italic-C_CyJubw.es.js +0 -70
  222. package/vendor/@tiptap/extension-italic-Dg0Nosoc.system.js +0 -1
  223. package/vendor/@tiptap/extension-link-Cd8bTMBz.system.js +0 -1
  224. package/vendor/@tiptap/extension-link-D4PFdLvA.es.js +0 -262
  225. package/vendor/@tiptap/extension-list-item-7pIJ7t09.es.js +0 -33
  226. package/vendor/@tiptap/extension-list-item-Mnhfw2gP.system.js +0 -1
  227. package/vendor/@tiptap/extension-mention-DVF3rX_z.system.js +0 -1
  228. package/vendor/@tiptap/extension-mention-Dkg-tbrz.es.js +0 -130
  229. package/vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js +0 -71
  230. package/vendor/@tiptap/extension-ordered-list-Hl0QU8Zt.system.js +0 -1
  231. package/vendor/@tiptap/extension-placeholder-BeLl2T-f.system.js +0 -1
  232. package/vendor/@tiptap/extension-placeholder-V0iTxU19.es.js +0 -52
  233. package/vendor/@tiptap/extension-underline-BdcAQ4JH.system.js +0 -1
  234. package/vendor/@tiptap/extension-underline-DsGbvz80.es.js +0 -40
  235. package/vendor/@tiptap/suggestion-BpZSO8Lm.system.js +0 -1
  236. package/vendor/@tiptap/suggestion-C4sBhJAD.es.js +0 -131
  237. package/vendor/@tiptap/vue-3-BH1pZykd.system.js +0 -1
  238. package/vendor/@tiptap/vue-3-DceiR7pK.es.js +0 -436
  239. package/vendor/highlight.js-BAruEf1H.system.js +0 -2
  240. package/vendor/highlight.js-DHowhWoU.es.js +0 -2493
  241. package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
  242. package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
  243. package/vendor/lodash-DbIT-6qv.es.js +0 -127
  244. package/vendor/lodash-DbvKLWSv.system.js +0 -1
  245. package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
  246. package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
  247. package/vendor/orderedmap-B3SOk52B.es.js +0 -103
  248. package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
  249. package/vendor/primevue-CadmDhWp.es.js +0 -13928
  250. package/vendor/primevue-u6FsQONA.system.js +0 -193
  251. package/vendor/prosemirror-commands-DLmzIpoS.es.js +0 -383
  252. package/vendor/prosemirror-commands-DgY3QRzI.system.js +0 -2
  253. package/vendor/prosemirror-history-BMpJFORS.es.js +0 -248
  254. package/vendor/prosemirror-history-BrK-FTBv.system.js +0 -1
  255. package/vendor/prosemirror-keymap-COb3Dq2o.system.js +0 -1
  256. package/vendor/prosemirror-keymap-DF8LLxca.es.js +0 -60
  257. package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
  258. package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
  259. package/vendor/prosemirror-schema-list-BPpAP8wR.system.js +0 -1
  260. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
  261. package/vendor/prosemirror-state-CwkYUmNs.es.js +0 -820
  262. package/vendor/prosemirror-state-DzPLD-6l.system.js +0 -1
  263. package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
  264. package/vendor/prosemirror-transform-VaXuT0NM.system.js +0 -2
  265. package/vendor/prosemirror-view-JTdpiWMD.system.js +0 -5
  266. package/vendor/prosemirror-view-ta7l3rKk.es.js +0 -3742
  267. package/vendor/rope-sequence-4t46C6az.system.js +0 -1
  268. package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
  269. package/vendor/simplebar-core-71xT5g0m.system.js +0 -1
  270. package/vendor/simplebar-core-Db65-Ath.es.js +0 -333
  271. package/vendor/simplebar-vue-BFEeFUIv.system.js +0 -1
  272. package/vendor/simplebar-vue-DAxqu0eM.es.js +0 -176
  273. package/vendor/tippy.js-CuKTz0UR.system.js +0 -1
  274. package/vendor/tippy.js-DNnwm2RY.es.js +0 -721
  275. package/vendor/uuid-93tp0umt.es.js +0 -9
  276. package/vendor/uuid-Cymn6orr.system.js +0 -1
  277. package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
  278. package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
  279. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
  280. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
  281. package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
  282. package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
  283. /package/{assets/lottiejs/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
  284. /package/{assets/lottiejs/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
@@ -1,321 +0,0 @@
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
- };
@@ -1 +0,0 @@
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)])])])}}}))}}});
@@ -1,298 +0,0 @@
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
- };
@@ -1 +0,0 @@
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"]]))}}});