@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,92 +0,0 @@
1
- import { defineComponent as _, inject as g, ref as x, computed as T, createElementBlock as p, openBlock as f, mergeProps as b, unref as h, createVNode as N, createCommentVNode as k, toDisplayString as v } from "vue";
2
- import { e as u } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
3
- import { _ as y } from "../icon/Icon-mDqG7urn.es.js";
4
- const S = () => new Promise((i, e) => {
5
- if (window.XLSX) return i(window.XLSX);
6
- const l = document.createElement("script");
7
- l.src = "https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js", l.onload = () => i(window.XLSX), l.onerror = e, document.body.appendChild(l);
8
- }), E = async (i) => {
9
- const e = await S(), l = e.utils.book_new(), n = e.utils.json_to_sheet([]);
10
- let o = 0;
11
- i.tables.forEach((a) => {
12
- a.tableTitle && (e.utils.sheet_add_aoa(n, [[a.tableTitle]], {
13
- origin: { r: o, c: 0 }
14
- }), o += 1), e.utils.sheet_add_aoa(n, [a.headers], {
15
- origin: { r: o, c: 0 }
16
- }), e.utils.sheet_add_json(n, a.data, {
17
- origin: { r: o + 1, c: 0 },
18
- skipHeader: !0
19
- }), o += a.data.length + 3;
20
- }), i.additionalTexts && (o += 1, i.additionalTexts.forEach((a, t) => {
21
- Array.isArray(a) ? a.forEach((r, s) => {
22
- e.utils.sheet_add_aoa(n, [[r]], {
23
- origin: { r: o + t, c: s }
24
- });
25
- }) : e.utils.sheet_add_aoa(n, [[a]], {
26
- origin: { r: o + t, c: 0 }
27
- });
28
- })), e.utils.book_append_sheet(l, n, "Sheet1");
29
- const m = (/* @__PURE__ */ new Date()).toLocaleDateString("en-gb", {
30
- day: "2-digit",
31
- month: "2-digit",
32
- year: "2-digit"
33
- }).replaceAll("/", "");
34
- e.writeFile(l, `${i.fileName}-${m}.xlsx`);
35
- }, X = {
36
- key: 0,
37
- class: "inherit text-xs"
38
- }, C = /* @__PURE__ */ _({
39
- __name: "ButtonDownload",
40
- props: {
41
- fileName: {},
42
- label: { default: void 0 },
43
- tableName: { default: "datatable" },
44
- multiTableNames: { default: void 0 },
45
- additionalTextBelowTable: { default: void 0 }
46
- },
47
- setup(i) {
48
- const e = i, l = g("preset", {}).buttondownload, n = x({}), o = T(() => Object.entries(n.value).map(([t]) => t)), m = () => {
49
- const { fileName: t, tableName: r, multiTableNames: s } = e;
50
- if (s != null && s.length)
51
- u.on("button-download:multi-tables", a), s.forEach((d) => {
52
- const c = { fileName: t, tableName: d, multiTableNames: s };
53
- u.emit("data-table:download", c);
54
- });
55
- else {
56
- const d = {
57
- fileName: t,
58
- tableName: r,
59
- additionalTexts: e.additionalTextBelowTable
60
- };
61
- u.emit("data-table:download", d);
62
- }
63
- }, a = async ({
64
- table: t
65
- }) => {
66
- var c;
67
- const { tableName: r } = t;
68
- if (o.value.includes(r) || (n.value[r] = t), o.value.length !== ((c = e.multiTableNames) == null ? void 0 : c.length)) return;
69
- u.off("button-download:multi-tables", a);
70
- const s = () => e.fileName.trim().replace(/[^a-zA-Z0-9\s]/g, "-").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/-+$/, ""), d = [];
71
- e.multiTableNames.forEach((w) => {
72
- d.push(n.value[w]);
73
- }), await E({
74
- tables: d,
75
- additionalTexts: e.additionalTextBelowTable,
76
- fileName: s()
77
- });
78
- };
79
- return (t, r) => (f(), p("button", b({ onClick: m }, h(l).root({ props: e }), { type: "button" }), [
80
- N(y, b(h(l).icon, {
81
- icon: "download",
82
- info: "Download",
83
- "tooltip-pos": "bottom"
84
- }), null, 16),
85
- t.label ? (f(), p("span", X, v(t.label), 1)) : k("", !0)
86
- ], 16));
87
- }
88
- });
89
- export {
90
- C as _,
91
- E as e
92
- };
@@ -1 +0,0 @@
1
- System.register(["vue","../assetinfo/AssetInfo-BBgKToRP.system.js","../icon/Icon-DUylRmY4.system.js"],function(_,X){"use strict";var g,N,T,x,f,p,b,h,y,k,v,u,S;return{setters:[t=>{g=t.defineComponent,N=t.inject,T=t.ref,x=t.computed,f=t.createElementBlock,p=t.openBlock,b=t.mergeProps,h=t.unref,y=t.createVNode,k=t.createCommentVNode,v=t.toDisplayString},t=>{u=t.e},t=>{S=t._}],execute:function(){const t=()=>new Promise((i,e)=>{if(window.XLSX)return i(window.XLSX);const s=document.createElement("script");s.src="https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js",s.onload=()=>i(window.XLSX),s.onerror=e,document.body.appendChild(s)}),E=_("e",async i=>{const e=await t(),s=e.utils.book_new(),l=e.utils.json_to_sheet([]);let n=0;i.tables.forEach(o=>{o.tableTitle&&(e.utils.sheet_add_aoa(l,[[o.tableTitle]],{origin:{r:n,c:0}}),n+=1),e.utils.sheet_add_aoa(l,[o.headers],{origin:{r:n,c:0}}),e.utils.sheet_add_json(l,o.data,{origin:{r:n+1,c:0},skipHeader:!0}),n+=o.data.length+3}),i.additionalTexts&&(n+=1,i.additionalTexts.forEach((o,a)=>{Array.isArray(o)?o.forEach((c,r)=>{e.utils.sheet_add_aoa(l,[[c]],{origin:{r:n+a,c:r}})}):e.utils.sheet_add_aoa(l,[[o]],{origin:{r:n+a,c:0}})})),e.utils.book_append_sheet(s,l,"Sheet1");const w=new Date().toLocaleDateString("en-gb",{day:"2-digit",month:"2-digit",year:"2-digit"}).replaceAll("/","");e.writeFile(s,`${i.fileName}-${w}.xlsx`)}),j={key:0,class:"inherit text-xs"},C=_("_",g({__name:"ButtonDownload",props:{fileName:{},label:{default:void 0},tableName:{default:"datatable"},multiTableNames:{default:void 0},additionalTextBelowTable:{default:void 0}},setup(i){const e=i,s=N("preset",{}).buttondownload,l=T({}),n=x(()=>Object.entries(l.value).map(([a])=>a)),w=()=>{const{fileName:a,tableName:c,multiTableNames:r}=e;if(r!=null&&r.length)u.on("button-download:multi-tables",o),r.forEach(d=>{const m={fileName:a,tableName:d,multiTableNames:r};u.emit("data-table:download",m)});else{const d={fileName:a,tableName:c,additionalTexts:e.additionalTextBelowTable};u.emit("data-table:download",d)}},o=async({table:a})=>{var m;const{tableName:c}=a;if(n.value.includes(c)||(l.value[c]=a),n.value.length!==((m=e.multiTableNames)==null?void 0:m.length))return;u.off("button-download:multi-tables",o);const r=()=>e.fileName.trim().replace(/[^a-zA-Z0-9\s]/g,"-").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/-+$/,""),d=[];e.multiTableNames.forEach(B=>{d.push(l.value[B])}),await E({tables:d,additionalTexts:e.additionalTextBelowTable,fileName:r()})};return(a,c)=>(p(),f("button",b({onClick:w},h(s).root({props:e}),{type:"button"}),[y(S,b(h(s).icon,{icon:"download",info:"Download","tooltip-pos":"bottom"}),null,16),a.label?(p(),f("span",j,v(a.label),1)):k("",!0)],16))}}))}}});
@@ -1,28 +0,0 @@
1
- import { defineComponent as u, inject as f, shallowRef as p, createElementBlock as v, openBlock as _, mergeProps as n, unref as i, createVNode as b } from "vue";
2
- import { e as h } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
3
- import { _ as w } from "../icon/Icon-mDqG7urn.es.js";
4
- const k = /* @__PURE__ */ u({
5
- __name: "ButtonFilter",
6
- props: {
7
- tableName: { default: "datatable" }
8
- },
9
- emits: ["showFilter"],
10
- setup(r, { emit: a }) {
11
- const t = f("preset", {}).buttonfilter, { tableName: s } = r, c = a, e = p(!1), m = () => {
12
- e.value = !e.value, c("showFilter", e.value), h.emit("show-filter", { tableName: s, show: e.value });
13
- };
14
- return (F, d) => {
15
- var o, l;
16
- return _(), v("button", n({ onClick: m }, (o = i(t)) == null ? void 0 : o.root({ context: { active: e.value } }), { type: "button" }), [
17
- b(w, n((l = i(t)) == null ? void 0 : l.icon({ context: { active: e.value } }), {
18
- icon: e.value ? "filter-fill" : "filter",
19
- info: "Filter",
20
- "tooltip-pos": "bottom"
21
- }), null, 16, ["icon"])
22
- ], 16);
23
- };
24
- }
25
- });
26
- export {
27
- k as _
28
- };
@@ -1 +0,0 @@
1
- System.register(["vue","../assetinfo/AssetInfo-BBgKToRP.system.js","../icon/Icon-DUylRmY4.system.js"],function(_,g){"use strict";var s,c,i,r,l,n,o,a,f,u;return{setters:[e=>{s=e.defineComponent,c=e.inject,i=e.shallowRef,r=e.createElementBlock,l=e.openBlock,n=e.mergeProps,o=e.unref,a=e.createVNode},e=>{f=e.e},e=>{u=e._}],execute:function(){const e=_("_",s({__name:"ButtonFilter",props:{tableName:{default:"datatable"}},emits:["showFilter"],setup(b,{emit:h}){const m=c("preset",{}).buttonfilter,{tableName:w}=b,B=h,t=i(!1),F=()=>{t.value=!t.value,B("showFilter",t.value),f.emit("show-filter",{tableName:w,show:t.value})};return(k,j)=>{var p,v;return l(),r("button",n({onClick:F},(p=o(m))==null?void 0:p.root({context:{active:t.value}}),{type:"button"}),[a(u,n((v=o(m))==null?void 0:v.icon({context:{active:t.value}}),{icon:t.value?"filter-fill":"filter",info:"Filter","tooltip-pos":"bottom"}),null,16,["icon"])],16)}}}))}}});
@@ -1,83 +0,0 @@
1
- import { h as B, defineComponent as V, inject as k, computed as g, createBlock as b, openBlock as r, unref as a, mergeProps as d, withCtx as C, createElementVNode as n, renderSlot as P, createCommentVNode as y, normalizeProps as u, guardReactiveProps as p, normalizeStyle as S, normalizeClass as w, createElementBlock as z, toDisplayString as E } from "vue";
2
- import { _ as j } from "../icon/Icon-mDqG7urn.es.js";
3
- import { i as A } from "../../vendor/lodash-es-CJerBxJQ.es.js";
4
- const I = (i, s) => {
5
- const { attrs: l, slots: o } = s || {};
6
- return i.label ? B("label", l, o.default()) : o.default();
7
- }, N = ["id", "aria-invalid", "checked", "disabled", "name", "readonly", "tabindex", "value"], D = /* @__PURE__ */ V({
8
- inheritAttrs: !1,
9
- __name: "ButtonRadio",
10
- props: {
11
- label: {},
12
- value: {},
13
- modelValue: {},
14
- name: {},
15
- binary: { type: Boolean, default: !1 },
16
- invalid: { type: Boolean },
17
- disabled: { type: Boolean },
18
- variant: {},
19
- readonly: { type: Boolean },
20
- tabindex: {},
21
- inputId: {},
22
- inputStyle: { type: [Boolean, null, String, Object, Array] },
23
- inputClass: {},
24
- tooltip: {},
25
- tooltipPos: { default: "top" }
26
- },
27
- emits: ["update:modelValue", "change", "focus", "blur"],
28
- setup(i, { emit: s }) {
29
- const l = i, o = s, t = k("preset", {}).buttonradio, m = g(() => l.modelValue != null && (l.binary ? !!l.modelValue : A(l.modelValue, l.value))), f = (e) => {
30
- if (!l.disabled && !l.readonly) {
31
- const c = l.binary ? !m.value : l.value;
32
- o("update:modelValue", c), o("change", e);
33
- }
34
- }, v = (e) => {
35
- o("focus", e);
36
- }, h = (e) => {
37
- o("blur", e);
38
- };
39
- return (e, c) => (r(), b(a(I), d(a(t).label, { label: e.label }), {
40
- default: C(() => [
41
- n("span", u(p(a(t).root({ props: l }))), [
42
- n("input", {
43
- id: e.inputId,
44
- "aria-invalid": e.invalid || void 0,
45
- checked: m.value,
46
- class: w([a(t).input({ props: l }).class, e.inputClass]),
47
- disabled: e.disabled,
48
- name: e.name,
49
- readonly: e.readonly,
50
- style: S(e.inputStyle),
51
- tabindex: e.tabindex,
52
- value: e.value,
53
- onBlur: h,
54
- onChange: f,
55
- onFocus: v,
56
- type: "radio"
57
- }, null, 46, N),
58
- n("span", u(p(a(t).box({ props: l }))), [
59
- n("span", u(p(a(t).icon)), null, 16)
60
- ], 16)
61
- ], 16),
62
- P(e.$slots, "label", {}, () => [
63
- e.label ? (r(), z("span", d({
64
- key: 0,
65
- "data-wv-section": "labeltext"
66
- }, a(t).labeltext), E(e.label), 17)) : y("", !0)
67
- ]),
68
- e.tooltip ? (r(), b(j, d({
69
- key: 0,
70
- info: e.tooltip,
71
- "tooltip-pos": e.tooltipPos
72
- }, a(t).tooltipicon, {
73
- "data-wv-section": "tooltipicon",
74
- icon: "info"
75
- }), null, 16, ["info", "tooltip-pos"])) : y("", !0)
76
- ]),
77
- _: 3
78
- }, 16, ["label"]));
79
- }
80
- });
81
- export {
82
- D as _
83
- };
@@ -1 +0,0 @@
1
- System.register(["vue","../icon/Icon-DUylRmY4.system.js","../../vendor/lodash-es-C3G1Cc1m.system.js"],function(E,D){"use strict";var m,f,v,h,c,s,n,r,B,i,g,u,p,d,k,C,V,S,P,z;return{setters:[e=>{m=e.h,f=e.defineComponent,v=e.inject,h=e.computed,c=e.createBlock,s=e.openBlock,n=e.unref,r=e.mergeProps,B=e.withCtx,i=e.createElementVNode,g=e.renderSlot,u=e.createCommentVNode,p=e.normalizeProps,d=e.guardReactiveProps,k=e.normalizeStyle,C=e.normalizeClass,V=e.createElementBlock,S=e.toDisplayString},e=>{P=e._},e=>{z=e.i}],execute:function(){const e=(b,y)=>{const{attrs:a,slots:l}=y||{};return b.label?m("label",a,l.default()):l.default()},N=["id","aria-invalid","checked","disabled","name","readonly","tabindex","value"],$=E("_",f({inheritAttrs:!1,__name:"ButtonRadio",props:{label:{},value:{},modelValue:{},name:{},binary:{type:Boolean,default:!1},invalid:{type:Boolean},disabled:{type:Boolean},variant:{},readonly:{type:Boolean},tabindex:{},inputId:{},inputStyle:{type:[Boolean,null,String,Object,Array]},inputClass:{},tooltip:{},tooltipPos:{default:"top"}},emits:["update:modelValue","change","focus","blur"],setup(b,{emit:y}){const a=b,l=y,o=v("preset",{}).buttonradio,j=h(()=>a.modelValue!=null&&(a.binary?!!a.modelValue:z(a.modelValue,a.value))),I=t=>{if(!a.disabled&&!a.readonly){const w=a.binary?!j.value:a.value;l("update:modelValue",w),l("change",t)}},R=t=>{l("focus",t)},A=t=>{l("blur",t)};return(t,w)=>(s(),c(n(e),r(n(o).label,{label:t.label}),{default:B(()=>[i("span",p(d(n(o).root({props:a}))),[i("input",{id:t.inputId,"aria-invalid":t.invalid||void 0,checked:j.value,class:C([n(o).input({props:a}).class,t.inputClass]),disabled:t.disabled,name:t.name,readonly:t.readonly,style:k(t.inputStyle),tabindex:t.tabindex,value:t.value,onBlur:A,onChange:I,onFocus:R,type:"radio"},null,46,N),i("span",p(d(n(o).box({props:a}))),[i("span",p(d(n(o).icon)),null,16)],16)],16),g(t.$slots,"label",{},()=>[t.label?(s(),V("span",r({key:0,"data-wv-section":"labeltext"},n(o).labeltext),S(t.label),17)):u("",!0)]),t.tooltip?(s(),c(P,r({key:0,info:t.tooltip,"tooltip-pos":t.tooltipPos},n(o).tooltipicon,{"data-wv-section":"tooltipicon",icon:"info"}),null,16,["info","tooltip-pos"])):u("",!0)]),_:3},16,["label"]))}}))}}});
@@ -1,421 +0,0 @@
1
- import { AxiosError as Ze } from "axios";
2
- import { ref as ce, defineComponent as we, onBeforeUnmount as Re, shallowRef as v, computed as I, createElementBlock as w, openBlock as u, Fragment as C, createVNode as y, createBlock as O, createCommentVNode as E, mergeProps as ke, withCtx as Ve, createElementVNode as W, normalizeClass as ee, createTextVNode as ne, toDisplayString as P, Teleport as Ye } from "vue";
3
- import { u as Ie } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
4
- import { _ as te } from "../button/Button-D-MSv_AS.es.js";
5
- import { _ as We } from "../dialogconfirm/DialogConfirm-BOFb7rJD.es.js";
6
- import { _ as Te } from "../hardwaresync/HardwareSync-DUsVwHx1.es.js";
7
- import { _ as F } from "../icon/Icon-mDqG7urn.es.js";
8
- import { _ as K } from "../toast/Toast-DnALWJkx.es.js";
9
- import { u as De } from "../../vendor/uuid-93tp0umt.es.js";
10
- let _;
11
- const Ge = new Uint8Array(16);
12
- function Xe() {
13
- if (!_ && (_ = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !_))
14
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
15
- return _(Ge);
16
- }
17
- const ze = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), se = {
18
- randomUUID: ze
19
- };
20
- function B(s, l, d) {
21
- if (se.randomUUID && !s)
22
- return se.randomUUID();
23
- s = s || {};
24
- const n = s.random || (s.rng || Xe)();
25
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, De(n);
26
- }
27
- const Ce = (s) => {
28
- if (s instanceof Ze)
29
- return s.response ? "DEVICE_NOT_CONNECTED" : "DRIVER_NOT_FOUND";
30
- if (s instanceof Error && ["NOT_SUPPORTED_SYSTEM", "HARDWARE_NOT_SYNCHRONIZED"].includes(
31
- s.message
32
- ))
33
- return s.message;
34
- }, re = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPW51bGwsdD1udWxsLGE7c2VsZi5vbm1lc3NhZ2U9cz0+e2NvbnN0IGU9cy5kYXRhO3N3aXRjaChlLmNvbW1hbmQpe2Nhc2Uic3luYyI6dShlKTticmVhaztjYXNlImNvbm5lY3QiOmwoZSk7YnJlYWs7Y2FzZSJzY2FuIjptKGUpO2JyZWFrO2Nhc2Uic3RvcHNjYW4iOmQoZSk7YnJlYWt9fTtjb25zdCByPXM9PntsZXQgZT0iZXN0YWJsaXNoZWQiO24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOPyhlPSJyZXVzZWQiLHMub25vcGVuKG4sZSksaShzLnRpbWVvdXQpKTpuPW5ldyBXZWJTb2NrZXQoIndzczovL2Rldi1hcGkudGFnc2FtdXJhaS5jb20vcmZpZC1yZWFkZXItZ28vIiksbi5vbm9wZW49KCk9PntlPSJlc3RhYmxpc2hlZCIsbiYmcy5vbm9wZW4obixlKSxpKHMudGltZW91dCl9LG4ub25tZXNzYWdlPW89PntzLm9ubWVzc2FnZShvKSxpKHMudGltZW91dCl9LG4ub25lcnJvcj1vPT57Y29uc29sZS5lcnJvcigi8J+agCB+IFNjYW5uZXIgV29ya2VyOiBvcGVuQ29ubmVjdGlvbiB+IGVycm9yOiIsbykscy5vbmVycm9yKG8pLG49PW51bGx8fG4uY2xvc2UoKSxuPW51bGwsdCYmY2xlYXJUaW1lb3V0KHQpfX0scD0oKT0+e2Qoe3VzZXJJZDphfSksYT12b2lkIDAsbiYmbi5jbG9zZSgpLG49bnVsbCx0JiZjbGVhclRpbWVvdXQodCksY29uc29sZS5pbmZvKCJTb2NrZXQgY29ubmVjdGlvbiBoYXMgYmVlbiBjbG9zZWQhIil9LGk9KHM9MCk9PntzJiYodCYmY2xlYXJUaW1lb3V0KHQpLHQ9c2V0VGltZW91dChwLHMpKX0sdT0oe3VzZXJJZDpzfSk9PnthPXMscih7b25vcGVuOmU9PntlLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY2VkIiwuLi5KU09OLnBhcnNlKGUuZGF0YSl9KX0sb25lcnJvcjplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY19lcnJvciIsZXJyb3I6ZX0pfX0pfSxsPSh7dXNlcklkOnN9KT0+e2E9cyxyKHtvbm9wZW46KGUsbyk9PntvPT09ImVzdGFibGlzaGVkIj9lLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSk6cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9yZXVzZWQifSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9lc3RhYmxpc2hlZCIsLi4uSlNPTi5wYXJzZShlLmRhdGEpfSl9LG9uZXJyb3I6ZT0+e3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yX2Nvbm5lY3RpbmciLGVycm9yOmV9KX19KX0sbT0oe3NjYW5Db21tYW5kOnMsdXNlcklkOmUsc2VyaWFsTnVtYmVyOm8samVuaXNEZXZpY2U6Z30pPT57YT1lLHIoe29ub3BlbjpjPT57Yy5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOnMsdXNlcklkOmUsc291cmNlOiJhcHAiLHNlcmlhbE51bWJlcjpvLGplbmlzRGV2aWNlOmd9LGV2ZW50OiJyZWFkZXIifSkpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fc3RhcnRlZCJ9KX0sb25tZXNzYWdlOmM9Pntwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FubmVkIiwuLi5KU09OLnBhcnNlKGMuZGF0YSl9KX0sb25lcnJvcjpjPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9lcnJvciIsZXJyb3I6Y30pfX0pfSxkPSh7dXNlcklkOnN9KT0+e24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOJiYobi5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOiJzdG9wc2NhbiIsdXNlcklkOnMsc291cmNlOiJhcHAifSxldmVudDoicmVhZGVyIn0pKSxwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FuX3N0b3BwZWQifSksY29uc29sZS5pbmZvKCJTY2FuIFByb2Nlc3MgU3RvcHBlZCEiKSl9fSkoKTsK", Oe = (s) => Uint8Array.from(atob(s), (l) => l.charCodeAt(0)), oe = typeof self < "u" && self.Blob && new Blob([Oe(re)], { type: "text/javascript;charset=utf-8" });
35
- function Ee(s) {
36
- let l;
37
- try {
38
- if (l = oe && (self.URL || self.webkitURL).createObjectURL(oe), !l) throw "";
39
- const d = new Worker(l, {
40
- name: s == null ? void 0 : s.name
41
- });
42
- return d.addEventListener("error", () => {
43
- (self.URL || self.webkitURL).revokeObjectURL(l);
44
- }), d;
45
- } catch {
46
- return new Worker(
47
- "data:text/javascript;base64," + re,
48
- {
49
- name: s == null ? void 0 : s.name
50
- }
51
- );
52
- } finally {
53
- l && (self.URL || self.webkitURL).revokeObjectURL(l);
54
- }
55
- }
56
- const ie = () => window.devices ?? [], _e = () => window.device ?? { RFID: null, QR: null }, ae = ce(ie()), le = ce(_e()), Je = () => {
57
- const s = (n) => {
58
- window.devices = n, d();
59
- }, l = (n) => {
60
- window.device = n, le.value = n;
61
- }, d = () => {
62
- ae.value = ie();
63
- };
64
- return {
65
- devices: ae,
66
- device: le,
67
- saveDevices: s,
68
- setDevice: l,
69
- loadDevices: d
70
- };
71
- }, Le = { class: "flex gap-2 items-center" }, Ue = { class: "flex gap-0.5 items-center leading-4" }, xe = { class: "flex gap-5 items-center" }, Pe = /* @__PURE__ */ W("span", null, "do not leave this page", -1), Fe = {
72
- key: 1,
73
- class: "text-xs font-medium leading-[16.39px] tracking-[0.02em]"
74
- }, en = /* @__PURE__ */ we({
75
- __name: "ButtonScan",
76
- props: {
77
- label: {},
78
- icon: {},
79
- type: { default: "RFID" },
80
- autoSwitch: { type: Boolean },
81
- scanValidation: {},
82
- modelValue: {},
83
- bulk: { type: Boolean },
84
- id: {},
85
- disabled: { type: Boolean },
86
- powerbank: { type: Boolean },
87
- labelOnly: { type: Boolean },
88
- outlined: { type: Boolean },
89
- severity: {},
90
- size: { default: void 0 },
91
- style: {},
92
- class: {},
93
- iconPos: {},
94
- iconClass: {},
95
- tooltip: {},
96
- tooltipPos: {},
97
- badge: {},
98
- badgeClass: {},
99
- badgeSeverity: {},
100
- loading: { type: Boolean },
101
- loadingIcon: {},
102
- link: { type: Boolean },
103
- raised: { type: Boolean },
104
- rounded: { type: Boolean },
105
- text: { type: Boolean },
106
- plain: { type: Boolean }
107
- },
108
- emits: ["update:modelValue", "connect", "connected", "scan", "stop", "error", "beforeStartScan"],
109
- setup(s, { expose: l, emit: d }) {
110
- const n = s, c = d;
111
- Re(() => {
112
- q();
113
- });
114
- const r = Ie(), { devices: ue, device: g, saveDevices: de, setDevice: Q } = Je(), S = v(!1), T = v(!1), R = v(!1), k = v(!1), N = v(!1), J = v(!1), b = v(), j = v(0), a = v(n.type ?? "RFID"), L = [], D = I(
115
- () => a.value === "RFID" ? "RFID_Scanning" : "QR_Scanning"
116
- ), f = I(
117
- () => a.value === "RFID" ? "RFID_Connecting" : "QR_Connecting"
118
- );
119
- I(() => `The scanner could not identify the ${a.value} code. It may be damaged or improperly positioned. Please check the code and try again.`);
120
- const ve = () => {
121
- window.scannerWorker ?? (window.scannerWorker = new Ee());
122
- }, U = () => {
123
- const { serialNumber: e = "" } = g.value[a.value] ?? {};
124
- return e;
125
- }, H = async () => {
126
- try {
127
- ve(), await me(), S.value = !0;
128
- } catch (e) {
129
- console.error(e), S.value = !1;
130
- }
131
- }, me = async () => {
132
- var e;
133
- try {
134
- if (!ye())
135
- throw new Error("NOT_SUPPORTED_SYSTEM");
136
- if (c("connect"), !ue.value.length || !g.value[a.value])
137
- throw new Error("HARDWARE_NOT_SYNCHRONIZED");
138
- r.add({
139
- customMessage: !0,
140
- message: a.value === "QR" ? "Connecting QR Scanner..." : "Connecting RFID Scanner...",
141
- severity: "info",
142
- life: 0,
143
- group: f.value
144
- }), R.value = !0;
145
- const o = () => {
146
- c("connected", g.value[a.value]), setTimeout(() => {
147
- x();
148
- }, 0);
149
- };
150
- window.scannerWorker.onmessage = ({ data: t }) => {
151
- var h;
152
- if (t.status === "connection_established")
153
- try {
154
- const { error: m } = (t == null ? void 0 : t.data) ?? {}, i = ((h = t == null ? void 0 : t.data) == null ? void 0 : h.deviceList) ?? [], Z = g.value[n.type], p = i.some(
155
- (z) => z.serialNumber === (Z == null ? void 0 : Z.serialNumber)
156
- );
157
- if (i.length && p)
158
- o();
159
- else {
160
- if (m === "Driver not connected to server")
161
- throw new Error("DRIVER_NOT_FOUND");
162
- if (!i.length)
163
- throw new Error("DEVICE_NOT_CONNECTED");
164
- }
165
- r.removeGroup(f.value);
166
- } catch (m) {
167
- M(m);
168
- }
169
- else t.status === "connection_reused" ? o() : t.status === "error_connecting" && (r.removeGroup(f.value), r.add({
170
- customMessage: !0,
171
- message: "Scanner connection failed",
172
- severity: "error"
173
- }));
174
- }, window.scannerWorker.postMessage({
175
- command: "connect",
176
- userId: (e = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : e._id
177
- });
178
- } catch (o) {
179
- M(o);
180
- }
181
- }, x = (e = !1, o = !1) => {
182
- var h;
183
- J.value = !1, r.removeGroup(f.value), localStorage.devmode || (window.addEventListener("blur", X), window.addEventListener("beforeunload", X));
184
- const t = g.value[a.value];
185
- if (t) {
186
- let m = "";
187
- n.bulk ? m = `bulkscan-${a.value.toLowerCase()}` : m = `scan-${a.value.toLowerCase()}`, window.scannerWorker.onmessage = async ({ data: i }) => {
188
- var Z;
189
- if (i.status === "scan_started")
190
- o || (j.value++, setTimeout(() => {
191
- r.add({
192
- customMessage: !0,
193
- message: "scanning",
194
- severity: "info",
195
- life: 0,
196
- group: D.value
197
- });
198
- }, 0));
199
- else if (i.status === "scanned") {
200
- const { code: p, error: z, deviceList: Ne } = (i == null ? void 0 : i.data) ?? {};
201
- if (z) return pe(z, Ne);
202
- if (p) {
203
- if (["scan-rfid", "scan-qr"].includes(m)) {
204
- N.value = !!n.scanValidation;
205
- const he = await ((Z = n.scanValidation) == null ? void 0 : Z.call(
206
- n,
207
- a.value,
208
- p,
209
- U()
210
- )) ?? !0;
211
- if (N.value = !1, he)
212
- n.autoSwitch ? ($(), fe()) : V(!0);
213
- else {
214
- J.value || x(!1, !0);
215
- return;
216
- }
217
- }
218
- L.includes(p) || (c("update:modelValue", p), c("scan", p, U()), n.bulk && L.push(p));
219
- }
220
- } else i.status === "scan_stopped" ? V(!0) : i.status === "scan_error" && A(i.error);
221
- }, window.scannerWorker.onerror = A, window.scannerWorker.postMessage({
222
- command: "scan",
223
- scanCommand: m,
224
- userId: (h = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : h._id,
225
- source: "app",
226
- jenisDevice: t.jenisDevice,
227
- serialNumber: t.serialNumber,
228
- newConnection: e
229
- });
230
- }
231
- }, M = (e) => {
232
- Q({ RFID: void 0, QR: void 0 }), k.value = !0, b.value = e instanceof Error ? e.message : Ce(e), R.value = !1, c("error", e), r.removeGroup(f.value);
233
- }, pe = (e, o = []) => {
234
- let t = "";
235
- b.value = void 0, Y(!0), e === "Time out" ? t = "The scanning process has timed out. Please try again." : e === "Driver not connected to server" ? b.value = "DRIVER_NOT_FOUND" : e === "Device disconnected" && (b.value = "DEVICE_DISCONNECTED", de(o), Q({ RFID: void 0, QR: void 0 })), c("error", e), k.value = !!b.value, t && r.add({
236
- customMessage: !0,
237
- message: t,
238
- error: e,
239
- life: 6e3,
240
- group: D.value
241
- });
242
- }, A = (e) => {
243
- Y(!0), c("error", e), r.add({
244
- customMessage: !0,
245
- message: "An unexpected error occurred during scanning. Please try again, and if the issue persists, contact your administrator for assistance.",
246
- error: e,
247
- life: 6e3,
248
- group: D.value
249
- });
250
- }, G = () => {
251
- window.Cypress ? be() : H();
252
- }, be = () => {
253
- r.add({
254
- customMessage: !0,
255
- message: "Connecting device...",
256
- severity: "info",
257
- life: 3e3,
258
- group: f.value
259
- }), setTimeout(async () => {
260
- var e;
261
- if (c("connect"), c("connected", {
262
- jenisDevice: "Handheld",
263
- serialNumber: B(),
264
- API: "v2",
265
- rfidScan: !0,
266
- qrScan: !0,
267
- name: "Device Test"
268
- }), n.bulk)
269
- c("scan", B(), "serialNumber");
270
- else {
271
- const o = B();
272
- N.value = !!n.scanValidation;
273
- const t = await ((e = n.scanValidation) == null ? void 0 : e.call(
274
- n,
275
- a.value,
276
- o,
277
- U()
278
- )) ?? !0;
279
- N.value = !1, t && (c("scan", o, "serialNumber"), V());
280
- }
281
- }, 100);
282
- }, $ = () => {
283
- r.removeGroup("RFID_Scanning"), r.removeGroup("QR_Scanning");
284
- }, V = (e = !1) => {
285
- $(), R.value = !1, q(), e && c("stop"), L.splice(0);
286
- }, Y = (e = !1) => {
287
- var o;
288
- window.scannerWorker.onmessage = null, window.scannerWorker.postMessage({
289
- command: "stopscan",
290
- userId: (o = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : o._id
291
- }), V(e), J.value = !0, S.value = !1;
292
- }, fe = () => {
293
- n.bulk || (g.value[a.value] ? (a.value = a.value === "QR" ? "RFID" : "QR", x()) : (V(), k.value = !0, b.value = "HARDWARE_NOT_SYNCHRONIZED", R.value = !1));
294
- }, X = (e) => {
295
- T.value = !0, Y(!0), e.preventDefault();
296
- }, q = () => {
297
- window.removeEventListener("blur", X), window.removeEventListener("beforeunload", X);
298
- }, ye = () => {
299
- const { userAgent: e } = navigator;
300
- return e.includes("Windows");
301
- }, ge = I(() => {
302
- if (!n.labelOnly)
303
- return n.icon ? n.icon : n.autoSwitch ? "qr-scan" : a.value === "QR" ? "qr" : "rfid";
304
- }), Se = I(() => n.label ? n.label : n.autoSwitch ? "SCAN TAG" : a.value === "QR" ? "Scan QR" : "Scan RFID");
305
- return l({
306
- onBeforeStartScan: G,
307
- startScan: H,
308
- stopScan: Y
309
- }), (e, o) => (u(), w(C, null, [
310
- y(te, ke(e.$attrs, {
311
- class: [
312
- {
313
- "[&_i]:w-2 [&_i]:h-2": e.type === "QR",
314
- "[&_i]:w-[11px] [&_i]:h-[7px]": e.type === "RFID"
315
- },
316
- "!px-1.5"
317
- ],
318
- disabled: n.disabled,
319
- icon: ge.value,
320
- label: Se.value,
321
- outlined: n.outlined,
322
- severity: n.severity,
323
- size: n.size,
324
- onClick: G
325
- }), null, 16, ["class", "disabled", "icon", "label", "outlined", "severity", "size"]),
326
- y(Te, {
327
- visible: k.value,
328
- "onUpdate:visible": o[0] || (o[0] = (t) => k.value = t),
329
- bulk: e.bulk,
330
- "error-code": b.value,
331
- "search-by": a.value,
332
- onScan: G
333
- }, null, 8, ["visible", "bulk", "error-code", "search-by"]),
334
- S.value ? (u(), O(K, {
335
- key: 0,
336
- "base-z-index": 9983,
337
- group: f.value,
338
- icon: "info"
339
- }, null, 8, ["group"])) : E("", !0),
340
- S.value ? (u(), O(K, {
341
- key: 1,
342
- "base-z-index": 9997,
343
- class: "!absolute !bottom-[80px] !h-max",
344
- group: "scan-error-validation"
345
- })) : E("", !0),
346
- S.value ? (u(), O(K, {
347
- key: j.value,
348
- "base-z-index": 9984,
349
- group: D.value,
350
- class: "[&_[data-pc-section=buttoncontainer]]"
351
- }, {
352
- message: Ve(({ message: t }) => [
353
- W("div", {
354
- class: ee(
355
- t.detail == "scanning" ? "w-full -mr-8 z-10 flex gap-2 justify-between items-center text-general-800 text-xs font-normal" : "w-full"
356
- )
357
- }, [
358
- t.detail === "scanning" ? (u(), w(C, { key: 0 }, [
359
- W("section", Le, [
360
- y(F, {
361
- class: "animate-spin text-base",
362
- icon: "loader-4"
363
- }),
364
- W("span", Ue, [
365
- a.value === "RFID" ? (u(), w(C, { key: 0 }, [
366
- y(F, {
367
- class: "text-base !w-4 !h-4",
368
- icon: "rfid"
369
- }),
370
- ne(" " + P(N.value ? "Validating RFID..." : "RFID Scanning..."), 1)
371
- ], 64)) : (u(), w(C, { key: 1 }, [
372
- y(F, {
373
- class: "text-sm",
374
- icon: "qr"
375
- }),
376
- ne(" " + P(N.value ? "Validating QR..." : "QR Scanning..."), 1)
377
- ], 64))
378
- ])
379
- ]),
380
- W("section", xe, [
381
- Pe,
382
- y(te, {
383
- onClick: o[1] || (o[1] = (h) => Y(!0)),
384
- label: "Stop Scan",
385
- severity: "danger"
386
- })
387
- ])
388
- ], 64)) : (u(), w("span", Fe, P(t.detail), 1))
389
- ], 2)
390
- ]),
391
- _: 1
392
- }, 8, ["group"])) : E("", !0),
393
- y(We, {
394
- visible: T.value,
395
- "onUpdate:visible": o[2] || (o[2] = (t) => T.value = t),
396
- header: `${a.value} SCAN STOPPED`,
397
- onConfirm: o[3] || (o[3] = (t) => (T.value = !1, G())),
398
- "confirm-label": "Continue",
399
- message: "The scan process was interrupted because you want to leave this window.",
400
- severity: "danger"
401
- }, null, 8, ["visible", "header"]),
402
- (u(), O(Ye, { to: "body" }, [
403
- R.value ? (u(), w("div", {
404
- key: 0,
405
- class: ee([
406
- e.$preset.dialog.mask({ props: { modal: !0 } }).class,
407
- "w-screen h-screen fixed top-0 left-0",
408
- "!z-[9982]"
409
- ]),
410
- "data-ts-section": "toast-mask"
411
- }, null, 2)) : E("", !0)
412
- ]))
413
- ], 64));
414
- }
415
- });
416
- export {
417
- Ee as W,
418
- en as _,
419
- Ce as g,
420
- Je as u
421
- };