@fewangsit/wangsvue-fats 1.0.0-alpha.43 → 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 (375) hide show
  1. package/components/buttoncopy/ButtonCopy.vue.d.ts +4 -6
  2. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
  3. package/components/index.d.ts +61 -162
  4. package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
  5. package/event-bus/index.d.ts +3 -0
  6. package/loading-page-BrQattYE.js +1 -0
  7. package/loading-page-CoC9UhfC.js +4 -0
  8. package/loading-page-DbLuqCHa.js +1 -0
  9. package/loading-page-f8D03l3G.js +4 -0
  10. package/loading-plane-CgfbWppy.js +1 -0
  11. package/loading-plane-CoXtqoc9.js +4 -0
  12. package/loading-table-Bdr9ZhtP.js +1 -0
  13. package/loading-table-ByUoWqUo.js +4 -0
  14. package/loading-table-BygEMzFM.js +4 -0
  15. package/loading-table-BzrSQlA0.js +1 -0
  16. package/loading-table-D9bw9OcI.js +4 -0
  17. package/loading-table-chOgXi94.js +1 -0
  18. package/no-data-CTKux8RI.js +4 -0
  19. package/no-data-Cgze_Rvp.js +1 -0
  20. package/{assets/lottie/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
  21. package/no-data-Dep79CBh.js +1 -0
  22. package/no-data-g0dJCy2p.js +4 -0
  23. package/no-data-y1X5WtcQ.js +1 -0
  24. package/package.json +3 -3
  25. package/stats.html +1 -1
  26. package/style.css +1 -1
  27. package/wangsvue-fats.js +52069 -144
  28. package/wangsvue-fats.system.js +312 -1
  29. package/ButtonCopy-C6DSmsOR.es.js +0 -4
  30. package/ButtonCopy-CeBlNyVx.system.js +0 -1
  31. package/ButtonSync-BLyCwwnU.system.js +0 -1
  32. package/ButtonSync-DtUhn-Q-.es.js +0 -4
  33. package/ButtonToggle-B9Fa75pf.es.js +0 -4
  34. package/ButtonToggle-CSxzlLR2.system.js +0 -1
  35. package/ButtonViewLog-B1oa4oFN.es.js +0 -4
  36. package/ButtonViewLog-_J6r7Oz8.system.js +0 -1
  37. package/Card-B19WgA6Y.es.js +0 -4
  38. package/Card-umUgd-nP.system.js +0 -1
  39. package/InputEmail-BZ5Y0wSk.system.js +0 -1
  40. package/InputEmail-DR_E1DsL.es.js +0 -4
  41. package/InputURL-DL6a94kM.system.js +0 -1
  42. package/InputURL-PVF5EUUY.es.js +0 -4
  43. package/Loading-Cq7rP88c.system.js +0 -1
  44. package/Loading-DUHTVct4.es.js +0 -4
  45. package/UserWithIcon-Ddn_GlNu.system.js +0 -1
  46. package/UserWithIcon-hWXf-A2U.es.js +0 -4
  47. package/assets/lottie/loading-page-B9ooQcfF.system.js +0 -1
  48. package/assets/lottie/loading-page-CQ0mKER2.es.js +0 -15
  49. package/assets/lottie/loading-table-B4T3FYiI.system.js +0 -1
  50. package/assets/lottie/loading-table-BnpbX8Ew.es.js +0 -15
  51. package/assets/lottie/no-data-CMWnya_k.system.js +0 -1
  52. package/async-components/index-C8nb7p3T.es.js +0 -70
  53. package/async-components/index-DvjqHrYE.system.js +0 -1
  54. package/components/animation/Animation-CCEnvZ_Z.es.js +0 -48
  55. package/components/animation/Animation-CJb4YIwm.system.js +0 -1
  56. package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +0 -127
  57. package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +0 -1
  58. package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +0 -1
  59. package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +0 -201
  60. package/components/badge/Badge-DXAyz4Z8.es.js +0 -99
  61. package/components/badge/Badge-wSExdsOP.system.js +0 -1
  62. package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +0 -1
  63. package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +0 -68
  64. package/components/basetree/BaseTree-CmBp0uwr.system.js +0 -1
  65. package/components/basetree/BaseTree-RsvvntBp.es.js +0 -167
  66. package/components/basetree/TreeNode-CUL5_2Rj.es.js +0 -499
  67. package/components/basetree/TreeNode-D-YgXird.system.js +0 -1
  68. package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +0 -1
  69. package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +0 -46
  70. package/components/button/Button-CgkhMnxo.es.js +0 -124
  71. package/components/button/Button-D892iaxz.system.js +0 -1
  72. package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +0 -1
  73. package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +0 -189
  74. package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +0 -31
  75. package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +0 -1
  76. package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +0 -61
  77. package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +0 -1
  78. package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +0 -1
  79. package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +0 -28
  80. package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +0 -83
  81. package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +0 -1
  82. package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +0 -1
  83. package/components/buttonscan/ButtonScan-mVHAdACL.es.js +0 -387
  84. package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +0 -1
  85. package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +0 -25
  86. package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +0 -1
  87. package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +0 -70
  88. package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +0 -218
  89. package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +0 -1
  90. package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +0 -1
  91. package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +0 -101
  92. package/components/buttonsync/ButtonSync-Brk16H8C.es.js +0 -29
  93. package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +0 -1
  94. package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +0 -11
  95. package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +0 -1
  96. package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +0 -21
  97. package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +0 -1
  98. package/components/calendar/BaseCalendar-5EI1UTbl.es.js +0 -867
  99. package/components/calendar/BaseCalendar-C02-gmOQ.system.js +0 -1
  100. package/components/calendar/Calendar-B2z-lfi9.es.js +0 -112
  101. package/components/calendar/Calendar-CWw4R5mN.system.js +0 -1
  102. package/components/card/Card-BccG14LV.es.js +0 -47
  103. package/components/card/Card-BjI-Xi0S.system.js +0 -1
  104. package/components/checkbox/Checkbox-DBU7Ji2C.es.js +0 -135
  105. package/components/checkbox/Checkbox-FZg_wq3C.system.js +0 -1
  106. package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +0 -127
  107. package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +0 -2
  108. package/components/customcolumn/ColumnList-fdR5JfHj.es.js +0 -159
  109. package/components/customcolumn/ColumnList-yaNVEQFA.system.js +0 -1
  110. package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +0 -139
  111. package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +0 -1
  112. package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +0 -1
  113. package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +0 -16
  114. package/components/datatable/DataTable-BH7Fk88O.es.js +0 -992
  115. package/components/datatable/DataTable-Cko2S6sM.system.js +0 -1
  116. package/components/datatable/MultiRow-B2vMSb7W.es.js +0 -52
  117. package/components/datatable/MultiRow-Sef5icam.system.js +0 -1
  118. package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +0 -37
  119. package/components/datatable/store/dataTable.store-C9376aEJ.system.js +0 -1
  120. package/components/dialog/Dialog-BCcbXSya.es.js +0 -121
  121. package/components/dialog/Dialog-Dv7Jzg4E.system.js +0 -1
  122. package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +0 -1
  123. package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +0 -139
  124. package/components/dialogform/DialogForm-DGl_NOEr.system.js +0 -1
  125. package/components/dialogform/DialogForm-tAbix3iC.es.js +0 -222
  126. package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +0 -268
  127. package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +0 -1
  128. package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +0 -121
  129. package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +0 -1
  130. package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +0 -1
  131. package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +0 -44
  132. package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +0 -71
  133. package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +0 -1
  134. package/components/dropdown/Dropdown-BNzT2uLU.system.js +0 -1
  135. package/components/dropdown/Dropdown-Dk4urj-W.es.js +0 -258
  136. package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +0 -26
  137. package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +0 -1
  138. package/components/editor/Editor-RB5MqBs1.es.js +0 -887
  139. package/components/editor/Editor-upU4Z9FH.system.js +0 -1
  140. package/components/editor/EditorButton-CC6U1a_u.system.js +0 -1
  141. package/components/editor/EditorButton-Cfew79JD.es.js +0 -28
  142. package/components/editor/MentionList-BjWKefLh.system.js +0 -1
  143. package/components/editor/MentionList-CdX0_-TK.es.js +0 -58
  144. package/components/editor/MentionSection-5I-FSwew.es.js +0 -52
  145. package/components/editor/MentionSection-CiuaeX4J.system.js +0 -3
  146. package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +0 -40
  147. package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +0 -1
  148. package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +0 -1
  149. package/components/editor/mentionSectionExtension-rbWufuMT.es.js +0 -46
  150. package/components/editor/suggestion-BcYK0KeI.system.js +0 -1
  151. package/components/editor/suggestion-mkkpQFP-.es.js +0 -41
  152. package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +0 -1
  153. package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +0 -35
  154. package/components/fileupload/FileUpload-0EHKlInu.es.js +0 -175
  155. package/components/fileupload/FileUpload-dXrsIAeC.system.js +0 -1
  156. package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +0 -234
  157. package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +0 -1
  158. package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +0 -1
  159. package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +0 -56
  160. package/components/form/Form-By85t_oI.system.js +0 -1
  161. package/components/form/Form-DhWBpdkq.es.js +0 -181
  162. package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +0 -238
  163. package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +0 -1
  164. package/components/hardwaresync/store/device.store-DEKXH36R.system.js +0 -1
  165. package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +0 -20
  166. package/components/icon/Icon-C4kXVcEX.es.js +0 -82
  167. package/components/icon/Icon-D1a666FC.system.js +0 -1
  168. package/components/image/Image-Bf5EaBWP.es.js +0 -170
  169. package/components/image/Image-Cxi0E9gK.system.js +0 -1
  170. package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +0 -1
  171. package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +0 -52
  172. package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +0 -1
  173. package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +0 -509
  174. package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +0 -46
  175. package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +0 -1
  176. package/components/index-BMti6lK3.es.js +0 -64
  177. package/components/index-DBzSxIov.system.js +0 -1
  178. package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +0 -94
  179. package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +0 -1
  180. package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +0 -1
  181. package/components/inputbadge/InputBadge-BngtjqHQ.es.js +0 -186
  182. package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +0 -1211
  183. package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +0 -1
  184. package/components/inputemail/InputEmail-8E04RVeq.system.js +0 -1
  185. package/components/inputemail/InputEmail-BFeY1l9Z.es.js +0 -49
  186. package/components/inputgroup/InputGroup-CTHxHL8n.system.js +0 -1
  187. package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +0 -56
  188. package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +0 -1
  189. package/components/inputnumber/InputNumber-CQd01PQ5.es.js +0 -232
  190. package/components/inputpassword/InputPassword-D3jaUFfR.system.js +0 -1
  191. package/components/inputpassword/InputPassword-DGWsHAB4.es.js +0 -121
  192. package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +0 -1
  193. package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +0 -162
  194. package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +0 -15
  195. package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +0 -1
  196. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +0 -423
  197. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +0 -1
  198. package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +0 -134
  199. package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +0 -1
  200. package/components/inputsearch/InputSearch-CHJP-N57.es.js +0 -53
  201. package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +0 -1
  202. package/components/inputtext/InputText-BEDxrRqK.es.js +0 -242
  203. package/components/inputtext/InputText-BOgH8xpA.system.js +0 -1
  204. package/components/inputurl/InputURL-CNrOkrAC.es.js +0 -61
  205. package/components/inputurl/InputURL-D4QWV9G7.system.js +0 -1
  206. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
  207. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
  208. package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +0 -102
  209. package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +0 -1
  210. package/components/loading/Loading-DIfTUHr7.es.js +0 -24
  211. package/components/loading/Loading-Vb4HctBJ.system.js +0 -1
  212. package/components/menu/Menu-BtzGGhbp.es.js +0 -73
  213. package/components/menu/Menu-CPm5vua_.system.js +0 -1
  214. package/components/menuitem/MenuItem-8yxkFTug.system.js +0 -1
  215. package/components/menuitem/MenuItem-uLVAqgBS.es.js +0 -65
  216. package/components/multiselect/MultiSelect-BoPpQ31j.es.js +0 -189
  217. package/components/multiselect/MultiSelect-D5NEDtGe.system.js +0 -1
  218. package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +0 -1
  219. package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +0 -49
  220. package/components/tabmenu/TabMenu-BBk8EW-C.system.js +0 -1
  221. package/components/tabmenu/TabMenu-ByKBaVsd.es.js +0 -108
  222. package/components/tagtype/TagType-CAXomDiD.es.js +0 -49
  223. package/components/tagtype/TagType-i4RK2JbL.system.js +0 -1
  224. package/components/textarea/Textarea-CnAlgPq5.es.js +0 -108
  225. package/components/textarea/Textarea-qirKOw5z.system.js +0 -1
  226. package/components/timeline/Timeline-CF2qJo4E.es.js +0 -120
  227. package/components/timeline/Timeline-DKfKWZFI.system.js +0 -1
  228. package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +0 -108
  229. package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +0 -1
  230. package/components/toast/Toast-C3D50rGo.system.js +0 -1
  231. package/components/toast/Toast-DRUJCz4I.es.js +0 -74
  232. package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +0 -90
  233. package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +0 -1
  234. package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +0 -223
  235. package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +0 -1
  236. package/components/tree/Tree-93NvdElH.es.js +0 -267
  237. package/components/tree/Tree-BTTVTAEH.system.js +0 -1
  238. package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +0 -1
  239. package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +0 -10
  240. package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +0 -1
  241. package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +0 -56
  242. package/components/username/UserName-A1N6Q7bS.system.js +0 -1
  243. package/components/username/UserName-D5C0qdbu.es.js +0 -132
  244. package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +0 -18
  245. package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +0 -1
  246. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
  247. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
  248. package/config/config.esm-BZepf1kR.system.js +0 -1
  249. package/config/config.esm-Drl0fECZ.es.js +0 -212
  250. package/config/defaultProps-B3syHUKt.system.js +0 -1
  251. package/config/defaultProps-BC_lvAG9.es.js +0 -136
  252. package/config/locale-DK6d2rJ3.system.js +0 -1
  253. package/config/locale-pQnRpNZ6.es.js +0 -85
  254. package/event-bus/index-CykcrsqY.system.js +0 -1
  255. package/event-bus/index-PQwO5T6B.es.js +0 -6
  256. package/event-bus/mitt-BjeF6e5j.es.js +0 -53
  257. package/event-bus/mitt-X_X8W9w9.system.js +0 -1
  258. package/plugins/WangsVue-Dl5OiLXF.es.js +0 -332
  259. package/plugins/WangsVue-Dugc3GRS.system.js +0 -1
  260. package/plugins/i18n-BVujDShu.system.js +0 -1
  261. package/plugins/i18n-CIoi8go0.es.js +0 -89
  262. package/utils/addAttachment.util-CPzZEHNG.system.js +0 -1
  263. package/utils/addAttachment.util-D9sYCBjS.es.js +0 -10
  264. package/utils/computeAutoPlacement-Ac2MkS5B.es.js +0 -33
  265. package/utils/computeAutoPlacement-DCaci6j-.system.js +0 -1
  266. package/utils/computeOffsets-Cx9i84Mn.system.js +0 -1
  267. package/utils/computeOffsets-DXWJPq7f.es.js +0 -56
  268. package/utils/date.util-DbjB32co.es.js +0 -198
  269. package/utils/date.util-rX9kq_yC.system.js +0 -1
  270. package/utils/detectOverflow-BrAC_sJF.system.js +0 -1
  271. package/utils/detectOverflow-CETbaen7.es.js +0 -88
  272. package/utils/exportToExcel.util-Bf-PpzHW.system.js +0 -1
  273. package/utils/exportToExcel.util-jz7aU08m.es.js +0 -32
  274. package/utils/genPlaceholder.util-0UuDQpbx.es.js +0 -37
  275. package/utils/genPlaceholder.util-CxMG7LbT.system.js +0 -1
  276. package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +0 -9
  277. package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +0 -1
  278. package/utils/object.util-6veM2gu5.es.js +0 -51
  279. package/utils/object.util-uApor4uP.system.js +0 -1
  280. package/utils/orderModifiers-qXBm1wkD.system.js +0 -1
  281. package/utils/orderModifiers-rOag5Cyh.es.js +0 -31
  282. package/utils/role.util-BdUNoOqf.es.js +0 -67
  283. package/utils/role.util-Co8OMWnc.system.js +0 -1
  284. package/utils/textFormatter.util-BjenkyWf.system.js +0 -1
  285. package/utils/textFormatter.util-CYul3RpH.es.js +0 -21
  286. package/utils/toast.util-C7p3h9XQ.es.js +0 -52
  287. package/utils/toast.util-DPtauJUV.system.js +0 -1
  288. package/utils/utils.esm-iwnsFuDg.system.js +0 -23
  289. package/utils/utils.esm-s_-kLKXf.es.js +0 -1080
  290. package/utils/xlsx.util-FKEpiU2t.system.js +0 -1
  291. package/utils/xlsx.util-LU1upHR3.es.js +0 -8
  292. package/vendor/@popperjs/core-DFLwc7xU.system.js +0 -1
  293. package/vendor/@popperjs/core-DJHUrK4e.es.js +0 -748
  294. package/vendor/@tiptap/core-D4rHEGhs.system.js +0 -80
  295. package/vendor/@tiptap/core-DSbPv8xh.es.js +0 -2868
  296. package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +0 -71
  297. package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +0 -1
  298. package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +0 -1
  299. package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +0 -128
  300. package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +0 -53
  301. package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +0 -1
  302. package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +0 -51
  303. package/vendor/@tiptap/extension-code-SOANT0O3.system.js +0 -1
  304. package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +0 -99
  305. package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +0 -1
  306. package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +0 -54
  307. package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +0 -1
  308. package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +0 -1
  309. package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +0 -35
  310. package/vendor/@tiptap/extension-image-BNa6azmK.system.js +0 -1
  311. package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +0 -64
  312. package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +0 -70
  313. package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +0 -1
  314. package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +0 -262
  315. package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +0 -1
  316. package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +0 -1
  317. package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +0 -33
  318. package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +0 -130
  319. package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +0 -1
  320. package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +0 -71
  321. package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +0 -1
  322. package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +0 -52
  323. package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +0 -1
  324. package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +0 -40
  325. package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +0 -1
  326. package/vendor/@tiptap/suggestion-B3Grok9m.system.js +0 -1
  327. package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +0 -131
  328. package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +0 -436
  329. package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +0 -1
  330. package/vendor/highlight.js-ClnJXT0q.system.js +0 -2
  331. package/vendor/highlight.js-Czlvg6fB.es.js +0 -2493
  332. package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
  333. package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
  334. package/vendor/lodash-B6nNLFd3.es.js +0 -127
  335. package/vendor/lodash-BuO1dYnQ.system.js +0 -1
  336. package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
  337. package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
  338. package/vendor/orderedmap-B3SOk52B.es.js +0 -103
  339. package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
  340. package/vendor/primevue-C5Z_k4WB.system.js +0 -171
  341. package/vendor/primevue-DkBtKf1Y.es.js +0 -12649
  342. package/vendor/prosemirror-commands-CUjo-x4s.es.js +0 -383
  343. package/vendor/prosemirror-commands-Dn6KNBP0.system.js +0 -2
  344. package/vendor/prosemirror-history-BPOe4I2H.es.js +0 -248
  345. package/vendor/prosemirror-history-BTrzvpc-.system.js +0 -1
  346. package/vendor/prosemirror-keymap-BvIUhswp.es.js +0 -60
  347. package/vendor/prosemirror-keymap-WRY9zVpK.system.js +0 -1
  348. package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
  349. package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
  350. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
  351. package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +0 -1
  352. package/vendor/prosemirror-state-BW6XGB3U.es.js +0 -820
  353. package/vendor/prosemirror-state-COJ-aZZ4.system.js +0 -1
  354. package/vendor/prosemirror-transform-BXNgAhmF.system.js +0 -2
  355. package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
  356. package/vendor/prosemirror-view-C9ZQp8VZ.es.js +0 -3742
  357. package/vendor/prosemirror-view-DOxSTbB-.system.js +0 -5
  358. package/vendor/rope-sequence-4t46C6az.system.js +0 -1
  359. package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
  360. package/vendor/simplebar-core-CtWK1-xd.system.js +0 -1
  361. package/vendor/simplebar-core-ofTx4QqK.es.js +0 -333
  362. package/vendor/simplebar-vue-BHVrvuf1.system.js +0 -1
  363. package/vendor/simplebar-vue-dpCx-K7E.es.js +0 -176
  364. package/vendor/tippy.js-6wuFov1j.system.js +0 -1
  365. package/vendor/tippy.js-i1ic-msv.es.js +0 -721
  366. package/vendor/uuid-93tp0umt.es.js +0 -9
  367. package/vendor/uuid-Cymn6orr.system.js +0 -1
  368. package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
  369. package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
  370. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
  371. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
  372. package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
  373. package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
  374. /package/{assets/lottie/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
  375. /package/{assets/lottie/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
@@ -1 +0,0 @@
1
- System.register(["axios","vue","../../utils/toast.util-DPtauJUV.system.js","./workers/scanner.worker-8_0GG6W3.system.js","../hardwaresync/store/device.store-DEKXH36R.system.js","../button/Button-D892iaxz.system.js","../dialogconfirm/DialogConfirm-BU-LRZCo.system.js","../hardwaresync/HardwareSync-DcgVc0cL.system.js","../icon/Icon-D1a666FC.system.js","../toast/Toast-C3D50rGo.system.js","../../vendor/uuid-Cymn6orr.system.js"],function(q,We){"use strict";var Y,J,Z,d,S,m,u,E,v,N,k,K,X,w,P,Q,B,ee,ne,te,se,M,ae,oe,O,V,re;return{setters:[e=>{Y=e.AxiosError},e=>{J=e.defineComponent,Z=e.onBeforeUnmount,d=e.shallowRef,S=e.computed,m=e.createElementBlock,u=e.openBlock,E=e.Fragment,v=e.createVNode,N=e.createBlock,k=e.createCommentVNode,K=e.mergeProps,X=e.withCtx,w=e.createElementVNode,P=e.normalizeClass,Q=e.createTextVNode,B=e.toDisplayString,ee=e.Teleport},e=>{ne=e.u},e=>{te=e.W},e=>{se=e.u},e=>{M=e._},e=>{ae=e.default},e=>{oe=e._},e=>{O=e.default},e=>{V=e.default},e=>{re=e.u}],execute:function(){let e;const ye=new Uint8Array(16);function Se(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(ye)}const ie={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $(r,le,ce){if(ie.randomUUID&&!r)return ie.randomUUID();r=r||{};const t=r.random||(r.rng||Se)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,re(t)}const we=q("g",r=>{if(r instanceof Y)return r.response?"DEVICE_NOT_CONNECTED":"DRIVER_NOT_FOUND";if(r instanceof Error&&["NOT_SUPPORTED_SYSTEM","HARDWARE_NOT_SYNCHRONIZED"].includes(r.message))return r.message}),be={class:"flex gap-2 items-center"},_e={class:"flex gap-0.5 items-center leading-4"},De={class:"flex gap-5 items-center"},Re=w("span",null,"do not leave this page",-1),he={key:1,class:"text-xs font-medium leading-[16.39px] tracking-[0.02em]"};q("B",Object.freeze(Object.defineProperty({__proto__:null,default:J({__name:"ButtonScan",props:{label:{},icon:{},type:{default:"RFID"},autoSwitch:{type:Boolean},scanValidation:{},modelValue:{},bulk:{type:Boolean},id:{},disabled:{type:Boolean},powerbank:{type:Boolean},labelOnly:{type:Boolean},outlined:{type:Boolean},severity:{},size:{default:void 0},style:{},class:{},iconPos:{},iconClass:{},tooltip:{},tooltipPos:{},badge:{},badgeClass:{},badgeSeverity:{},loading:{type:Boolean},loadingIcon:{},link:{type:Boolean},raised:{type:Boolean},rounded:{type:Boolean},text:{type:Boolean},plain:{type:Boolean}},emits:["update:modelValue","connect","connected","scan","stop","error","beforeStartScan"],setup(r,{expose:le,emit:ce}){const t=r,i=ce;Z(()=>{ge()});const l=ne(),{devices:Ee,device:b,saveDevices:Ne,setDevice:ue}=se(),_=d(!1),U=d(!1),C=d(!1),I=d(!1),D=d(!1),z=d(!1),g=d(),de=d(0),o=d(t.type??"RFID"),L=[],F=S(()=>o.value==="RFID"?"RFID_Scanning":"QR_Scanning"),y=S(()=>o.value==="RFID"?"RFID_Connecting":"QR_Connecting");S(()=>`The scanner could not identify the ${o.value} code. It may be damaged or improperly positioned. Please check the code and try again.`);const ke=()=>{window.scannerWorker??(window.scannerWorker=new te)},G=()=>{const{serialNumber:n=""}=b.value[o.value]??{};return n},ve=async()=>{try{ke(),await Ce(),_.value=!0}catch(n){console.error(n),_.value=!1}},Ce=async()=>{var n;try{if(!Be())throw new Error("NOT_SUPPORTED_SYSTEM");if(i("connect"),!Ee.value.length||!b.value[o.value])throw new Error("HARDWARE_NOT_SYNCHRONIZED");l.add({customMessage:!0,message:o.value==="QR"?"Connecting QR Scanner...":"Connecting RFID Scanner...",severity:"info",life:0,group:y.value}),C.value=!0;const a=()=>{i("connected",b.value[o.value]),setTimeout(()=>{H()},0)};window.scannerWorker.onmessage=({data:s})=>{var R;if(s.status==="connection_established")try{const{error:f}=(s==null?void 0:s.data)??{},c=((R=s==null?void 0:s.data)==null?void 0:R.deviceList)??[],h=b.value[t.type],p=c.some(A=>A.serialNumber===(h==null?void 0:h.serialNumber));if(c.length&&p)a();else{if(f==="Driver not connected to server")throw new Error("DRIVER_NOT_FOUND");if(!c.length)throw new Error("DEVICE_NOT_CONNECTED")}l.removeGroup(y.value)}catch(f){fe(f)}else s.status==="connection_reused"?a():s.status==="error_connecting"&&(l.removeGroup(y.value),l.add({customMessage:!0,message:"Scanner connection failed",severity:"error"}))},window.scannerWorker.postMessage({command:"connect",userId:(n=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:n._id})}catch(a){fe(a)}},H=(n=!1,a=!1)=>{var R;z.value=!1,l.removeGroup(y.value),localStorage.devmode||(window.addEventListener("blur",j),window.addEventListener("beforeunload",j));const s=b.value[o.value];if(s){let f="";t.bulk?f=`bulkscan-${o.value.toLowerCase()}`:f=`scan-${o.value.toLowerCase()}`,window.scannerWorker.onmessage=async({data:c})=>{var h;if(c.status==="scan_started")a||(de.value++,setTimeout(()=>{l.add({customMessage:!0,message:"scanning",severity:"info",life:0,group:F.value})},0));else if(c.status==="scanned"){const{code:p,error:A,deviceList:Ue}=(c==null?void 0:c.data)??{};if(A)return Ie(A,Ue);if(p){if(["scan-rfid","scan-qr"].includes(f)){D.value=!!t.scanValidation;const Fe=await((h=t.scanValidation)==null?void 0:h.call(t,o.value,p,G()))??!0;if(D.value=!1,Fe)t.autoSwitch?(me(),xe()):T(!0);else{z.value||H(!1,!0);return}}L.includes(p)||(i("update:modelValue",p),i("scan",p,G()),t.bulk&&L.push(p))}}else c.status==="scan_stopped"?T(!0):c.status==="scan_error"&&pe(c.error)},window.scannerWorker.onerror=pe,window.scannerWorker.postMessage({command:"scan",scanCommand:f,userId:(R=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:R._id,source:"app",jenisDevice:s.jenisDevice,serialNumber:s.serialNumber,newConnection:n})}},fe=n=>{ue({RFID:void 0,QR:void 0}),I.value=!0,g.value=n instanceof Error?n.message:we(n),C.value=!1,i("error",n),l.removeGroup(y.value)},Ie=(n,a=[])=>{let s="";g.value=void 0,x(!0),n==="Time out"?s="The scanning process has timed out. Please try again.":n==="Driver not connected to server"?g.value="DRIVER_NOT_FOUND":n==="Device disconnected"&&(g.value="DEVICE_DISCONNECTED",Ne(a),ue({RFID:void 0,QR:void 0})),i("error",n),I.value=!!g.value,s&&l.add({customMessage:!0,message:s,error:n,life:6e3,group:F.value})},pe=n=>{x(!0),i("error",n),l.add({customMessage:!0,message:"An unexpected error occurred during scanning. Please try again, and if the issue persists, contact your administrator for assistance.",error:n,life:6e3,group:F.value})},W=()=>{window.Cypress?Te():ve()},Te=()=>{l.add({customMessage:!0,message:"Connecting device...",severity:"info",life:3e3,group:y.value}),setTimeout(async()=>{var n;if(i("connect"),i("connected",{jenisDevice:"Handheld",serialNumber:$(),API:"v2",rfidScan:!0,qrScan:!0,name:"Device Test"}),t.bulk)i("scan",$(),"serialNumber");else{const a=$();D.value=!!t.scanValidation;const s=await((n=t.scanValidation)==null?void 0:n.call(t,o.value,a,G()))??!0;D.value=!1,s&&(i("scan",a,"serialNumber"),T())}},100)},me=()=>{l.removeGroup("RFID_Scanning"),l.removeGroup("QR_Scanning")},T=(n=!1)=>{me(),C.value=!1,ge(),n&&i("stop"),L.splice(0)},x=(n=!1)=>{var a;window.scannerWorker.onmessage=null,window.scannerWorker.postMessage({command:"stopscan",userId:(a=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:a._id}),T(n),z.value=!0,_.value=!1},xe=()=>{t.bulk||(b.value[o.value]?(o.value=o.value==="QR"?"RFID":"QR",H()):(T(),I.value=!0,g.value="HARDWARE_NOT_SYNCHRONIZED",C.value=!1))},j=n=>{U.value=!0,x(!0),n.preventDefault()},ge=()=>{window.removeEventListener("blur",j),window.removeEventListener("beforeunload",j)},Be=()=>{const{userAgent:n}=navigator;return n.includes("Windows")},Oe=S(()=>{if(!t.labelOnly)return t.icon?t.icon:t.autoSwitch?"qr-scan":o.value==="QR"?"qr":"rfid"}),Ve=S(()=>t.label?t.label:t.autoSwitch?"SCAN TAG":o.value==="QR"?"Scan QR":"Scan RFID");return le({onBeforeStartScan:W,startScan:ve,stopScan:x}),(n,a)=>(u(),m(E,null,[v(M,K(n.$attrs,{class:[{"[&_i]:w-2 [&_i]:h-2":n.type==="QR","[&_i]:w-[11px] [&_i]:h-[7px]":n.type==="RFID"},"!px-1.5"],disabled:t.disabled,icon:Oe.value,label:Ve.value,outlined:t.outlined,severity:t.severity,size:t.size,onClick:W}),null,16,["class","disabled","icon","label","outlined","severity","size"]),v(oe,{visible:I.value,"onUpdate:visible":a[0]||(a[0]=s=>I.value=s),bulk:n.bulk,"error-code":g.value,"search-by":o.value,onScan:W},null,8,["visible","bulk","error-code","search-by"]),_.value?(u(),N(V,{key:0,"base-z-index":9983,group:y.value,icon:"info"},null,8,["group"])):k("",!0),_.value?(u(),N(V,{key:1,"base-z-index":9997,class:"!absolute !bottom-[80px] !h-max",group:"scan-error-validation"})):k("",!0),_.value?(u(),N(V,{key:de.value,"base-z-index":9984,group:F.value,class:"[&_[data-pc-section=buttoncontainer]]"},{message:X(({message:s})=>[w("div",{class:P(s.detail=="scanning"?"w-full -mr-8 z-10 flex gap-2 justify-between items-center text-general-800 text-xs font-normal":"w-full")},[s.detail==="scanning"?(u(),m(E,{key:0},[w("section",be,[v(O,{class:"animate-spin text-base",icon:"loader-4"}),w("span",_e,[o.value==="RFID"?(u(),m(E,{key:0},[v(O,{class:"text-base !w-4 !h-4",icon:"rfid"}),Q(" "+B(D.value?"Validating RFID...":"RFID Scanning..."),1)],64)):(u(),m(E,{key:1},[v(O,{class:"text-sm",icon:"qr"}),Q(" "+B(D.value?"Validating QR...":"QR Scanning..."),1)],64))])]),w("section",De,[Re,v(M,{onClick:a[1]||(a[1]=R=>x(!0)),label:"Stop Scan",severity:"danger"})])],64)):(u(),m("span",he,B(s.detail),1))],2)]),_:1},8,["group"])):k("",!0),v(ae,{visible:U.value,"onUpdate:visible":a[2]||(a[2]=s=>U.value=s),header:`${o.value} SCAN STOPPED`,onConfirm:a[3]||(a[3]=s=>(U.value=!1,W())),"confirm-label":"Continue",message:"The scan process was interrupted because you want to leave this window.",severity:"danger"},null,8,["visible","header"]),(u(),N(ee,{to:"body"},[C.value?(u(),m("div",{key:0,class:P([n.$preset.dialog.mask({props:{modal:!0}}).class,"w-screen h-screen fixed top-0 left-0","!z-[9982]"]),"data-ts-section":"toast-mask"},null,2)):k("",!0)]))],64))}})},Symbol.toStringTag,{value:"Module"})))}}});
@@ -1,387 +0,0 @@
1
- import { AxiosError as ge } from "axios";
2
- import { defineComponent as ye, onBeforeUnmount as Se, shallowRef as u, computed as N, createElementBlock as _, openBlock as c, Fragment as B, createVNode as p, createBlock as V, createCommentVNode as F, mergeProps as be, withCtx as we, createElementVNode as I, normalizeClass as ee, createTextVNode as ne, toDisplayString as M, Teleport as _e } from "vue";
3
- import { u as De } from "../../utils/toast.util-C7p3h9XQ.es.js";
4
- import { W as Re } from "./workers/scanner.worker-D3a72Zyk.es.js";
5
- import { u as he } from "../hardwaresync/store/device.store-DpVE6Nhl.es.js";
6
- import { _ as te } from "../button/Button-CgkhMnxo.es.js";
7
- import Ee from "../dialogconfirm/DialogConfirm-ByIWXisz.es.js";
8
- import { _ as Ne } from "../hardwaresync/HardwareSync-BckCfIeF.es.js";
9
- import $ from "../icon/Icon-C4kXVcEX.es.js";
10
- import z from "../toast/Toast-DRUJCz4I.es.js";
11
- import { u as Ie } from "../../vendor/uuid-93tp0umt.es.js";
12
- let U;
13
- const ke = new Uint8Array(16);
14
- function Ce() {
15
- if (!U && (U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
16
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
17
- return U(ke);
18
- }
19
- const Te = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), oe = {
20
- randomUUID: Te
21
- };
22
- function L(a, G, j) {
23
- if (oe.randomUUID && !a)
24
- return oe.randomUUID();
25
- a = a || {};
26
- const n = a.random || (a.rng || Ce)();
27
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Ie(n);
28
- }
29
- const xe = (a) => {
30
- if (a instanceof ge)
31
- return a.response ? "DEVICE_NOT_CONNECTED" : "DRIVER_NOT_FOUND";
32
- if (a instanceof Error && ["NOT_SUPPORTED_SYSTEM", "HARDWARE_NOT_SYNCHRONIZED"].includes(
33
- a.message
34
- ))
35
- return a.message;
36
- }, Oe = { class: "flex gap-2 items-center" }, Be = { class: "flex gap-0.5 items-center leading-4" }, Ve = { class: "flex gap-5 items-center" }, Fe = /* @__PURE__ */ I("span", null, "do not leave this page", -1), Ue = {
37
- key: 1,
38
- class: "text-xs font-medium leading-[16.39px] tracking-[0.02em]"
39
- }, We = /* @__PURE__ */ ye({
40
- __name: "ButtonScan",
41
- props: {
42
- label: {},
43
- icon: {},
44
- type: { default: "RFID" },
45
- autoSwitch: { type: Boolean },
46
- scanValidation: {},
47
- modelValue: {},
48
- bulk: { type: Boolean },
49
- id: {},
50
- disabled: { type: Boolean },
51
- powerbank: { type: Boolean },
52
- labelOnly: { type: Boolean },
53
- outlined: { type: Boolean },
54
- severity: {},
55
- size: { default: void 0 },
56
- style: {},
57
- class: {},
58
- iconPos: {},
59
- iconClass: {},
60
- tooltip: {},
61
- tooltipPos: {},
62
- badge: {},
63
- badgeClass: {},
64
- badgeSeverity: {},
65
- loading: { type: Boolean },
66
- loadingIcon: {},
67
- link: { type: Boolean },
68
- raised: { type: Boolean },
69
- rounded: { type: Boolean },
70
- text: { type: Boolean },
71
- plain: { type: Boolean }
72
- },
73
- emits: ["update:modelValue", "connect", "connected", "scan", "stop", "error", "beforeStartScan"],
74
- setup(a, { expose: G, emit: j }) {
75
- const n = a, r = j;
76
- Se(() => {
77
- X();
78
- });
79
- const i = De(), { devices: se, device: g, saveDevices: ae, setDevice: H } = he(), y = u(!1), k = u(!1), D = u(!1), R = u(!1), S = u(!1), W = u(!1), f = u(), q = u(0), s = u(n.type ?? "RFID"), Q = [], C = N(
80
- () => s.value === "RFID" ? "RFID_Scanning" : "QR_Scanning"
81
- ), m = N(
82
- () => s.value === "RFID" ? "RFID_Connecting" : "QR_Connecting"
83
- );
84
- N(() => `The scanner could not identify the ${s.value} code. It may be damaged or improperly positioned. Please check the code and try again.`);
85
- const re = () => {
86
- window.scannerWorker ?? (window.scannerWorker = new Re());
87
- }, A = () => {
88
- const { serialNumber: e = "" } = g.value[s.value] ?? {};
89
- return e;
90
- }, Y = async () => {
91
- try {
92
- re(), await ie(), y.value = !0;
93
- } catch (e) {
94
- console.error(e), y.value = !1;
95
- }
96
- }, ie = async () => {
97
- var e;
98
- try {
99
- if (!de())
100
- throw new Error("NOT_SUPPORTED_SYSTEM");
101
- if (r("connect"), !se.value.length || !g.value[s.value])
102
- throw new Error("HARDWARE_NOT_SYNCHRONIZED");
103
- i.add({
104
- customMessage: !0,
105
- message: s.value === "QR" ? "Connecting QR Scanner..." : "Connecting RFID Scanner...",
106
- severity: "info",
107
- life: 0,
108
- group: m.value
109
- }), D.value = !0;
110
- const o = () => {
111
- r("connected", g.value[s.value]), setTimeout(() => {
112
- P();
113
- }, 0);
114
- };
115
- window.scannerWorker.onmessage = ({ data: t }) => {
116
- var b;
117
- if (t.status === "connection_established")
118
- try {
119
- const { error: d } = (t == null ? void 0 : t.data) ?? {}, l = ((b = t == null ? void 0 : t.data) == null ? void 0 : b.deviceList) ?? [], w = g.value[n.type], v = l.some(
120
- (O) => O.serialNumber === (w == null ? void 0 : w.serialNumber)
121
- );
122
- if (l.length && v)
123
- o();
124
- else {
125
- if (d === "Driver not connected to server")
126
- throw new Error("DRIVER_NOT_FOUND");
127
- if (!l.length)
128
- throw new Error("DEVICE_NOT_CONNECTED");
129
- }
130
- i.removeGroup(m.value);
131
- } catch (d) {
132
- J(d);
133
- }
134
- else t.status === "connection_reused" ? o() : t.status === "error_connecting" && (i.removeGroup(m.value), i.add({
135
- customMessage: !0,
136
- message: "Scanner connection failed",
137
- severity: "error"
138
- }));
139
- }, window.scannerWorker.postMessage({
140
- command: "connect",
141
- userId: (e = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : e._id
142
- });
143
- } catch (o) {
144
- J(o);
145
- }
146
- }, P = (e = !1, o = !1) => {
147
- var b;
148
- W.value = !1, i.removeGroup(m.value), localStorage.devmode || (window.addEventListener("blur", x), window.addEventListener("beforeunload", x));
149
- const t = g.value[s.value];
150
- if (t) {
151
- let d = "";
152
- n.bulk ? d = `bulkscan-${s.value.toLowerCase()}` : d = `scan-${s.value.toLowerCase()}`, window.scannerWorker.onmessage = async ({ data: l }) => {
153
- var w;
154
- if (l.status === "scan_started")
155
- o || (q.value++, setTimeout(() => {
156
- i.add({
157
- customMessage: !0,
158
- message: "scanning",
159
- severity: "info",
160
- life: 0,
161
- group: C.value
162
- });
163
- }, 0));
164
- else if (l.status === "scanned") {
165
- const { code: v, error: O, deviceList: me } = (l == null ? void 0 : l.data) ?? {};
166
- if (O) return le(O, me);
167
- if (v) {
168
- if (["scan-rfid", "scan-qr"].includes(d)) {
169
- S.value = !!n.scanValidation;
170
- const pe = await ((w = n.scanValidation) == null ? void 0 : w.call(
171
- n,
172
- s.value,
173
- v,
174
- A()
175
- )) ?? !0;
176
- if (S.value = !1, pe)
177
- n.autoSwitch ? (K(), ue()) : h(!0);
178
- else {
179
- W.value || P(!1, !0);
180
- return;
181
- }
182
- }
183
- Q.includes(v) || (r("update:modelValue", v), r("scan", v, A()), n.bulk && Q.push(v));
184
- }
185
- } else l.status === "scan_stopped" ? h(!0) : l.status === "scan_error" && Z(l.error);
186
- }, window.scannerWorker.onerror = Z, window.scannerWorker.postMessage({
187
- command: "scan",
188
- scanCommand: d,
189
- userId: (b = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : b._id,
190
- source: "app",
191
- jenisDevice: t.jenisDevice,
192
- serialNumber: t.serialNumber,
193
- newConnection: e
194
- });
195
- }
196
- }, J = (e) => {
197
- H({ RFID: void 0, QR: void 0 }), R.value = !0, f.value = e instanceof Error ? e.message : xe(e), D.value = !1, r("error", e), i.removeGroup(m.value);
198
- }, le = (e, o = []) => {
199
- let t = "";
200
- f.value = void 0, E(!0), e === "Time out" ? t = "The scanning process has timed out. Please try again." : e === "Driver not connected to server" ? f.value = "DRIVER_NOT_FOUND" : e === "Device disconnected" && (f.value = "DEVICE_DISCONNECTED", ae(o), H({ RFID: void 0, QR: void 0 })), r("error", e), R.value = !!f.value, t && i.add({
201
- customMessage: !0,
202
- message: t,
203
- error: e,
204
- life: 6e3,
205
- group: C.value
206
- });
207
- }, Z = (e) => {
208
- E(!0), r("error", e), i.add({
209
- customMessage: !0,
210
- message: "An unexpected error occurred during scanning. Please try again, and if the issue persists, contact your administrator for assistance.",
211
- error: e,
212
- life: 6e3,
213
- group: C.value
214
- });
215
- }, T = () => {
216
- window.Cypress ? ce() : Y();
217
- }, ce = () => {
218
- i.add({
219
- customMessage: !0,
220
- message: "Connecting device...",
221
- severity: "info",
222
- life: 3e3,
223
- group: m.value
224
- }), setTimeout(async () => {
225
- var e;
226
- if (r("connect"), r("connected", {
227
- jenisDevice: "Handheld",
228
- serialNumber: L(),
229
- API: "v2",
230
- rfidScan: !0,
231
- qrScan: !0,
232
- name: "Device Test"
233
- }), n.bulk)
234
- r("scan", L(), "serialNumber");
235
- else {
236
- const o = L();
237
- S.value = !!n.scanValidation;
238
- const t = await ((e = n.scanValidation) == null ? void 0 : e.call(
239
- n,
240
- s.value,
241
- o,
242
- A()
243
- )) ?? !0;
244
- S.value = !1, t && (r("scan", o, "serialNumber"), h());
245
- }
246
- }, 100);
247
- }, K = () => {
248
- i.removeGroup("RFID_Scanning"), i.removeGroup("QR_Scanning");
249
- }, h = (e = !1) => {
250
- K(), D.value = !1, X(), e && r("stop"), Q.splice(0);
251
- }, E = (e = !1) => {
252
- var o;
253
- window.scannerWorker.onmessage = null, window.scannerWorker.postMessage({
254
- command: "stopscan",
255
- userId: (o = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : o._id
256
- }), h(e), W.value = !0, y.value = !1;
257
- }, ue = () => {
258
- n.bulk || (g.value[s.value] ? (s.value = s.value === "QR" ? "RFID" : "QR", P()) : (h(), R.value = !0, f.value = "HARDWARE_NOT_SYNCHRONIZED", D.value = !1));
259
- }, x = (e) => {
260
- k.value = !0, E(!0), e.preventDefault();
261
- }, X = () => {
262
- window.removeEventListener("blur", x), window.removeEventListener("beforeunload", x);
263
- }, de = () => {
264
- const { userAgent: e } = navigator;
265
- return e.includes("Windows");
266
- }, ve = N(() => {
267
- if (!n.labelOnly)
268
- return n.icon ? n.icon : n.autoSwitch ? "qr-scan" : s.value === "QR" ? "qr" : "rfid";
269
- }), fe = N(() => n.label ? n.label : n.autoSwitch ? "SCAN TAG" : s.value === "QR" ? "Scan QR" : "Scan RFID");
270
- return G({
271
- onBeforeStartScan: T,
272
- startScan: Y,
273
- stopScan: E
274
- }), (e, o) => (c(), _(B, null, [
275
- p(te, be(e.$attrs, {
276
- class: [
277
- {
278
- "[&_i]:w-2 [&_i]:h-2": e.type === "QR",
279
- "[&_i]:w-[11px] [&_i]:h-[7px]": e.type === "RFID"
280
- },
281
- "!px-1.5"
282
- ],
283
- disabled: n.disabled,
284
- icon: ve.value,
285
- label: fe.value,
286
- outlined: n.outlined,
287
- severity: n.severity,
288
- size: n.size,
289
- onClick: T
290
- }), null, 16, ["class", "disabled", "icon", "label", "outlined", "severity", "size"]),
291
- p(Ne, {
292
- visible: R.value,
293
- "onUpdate:visible": o[0] || (o[0] = (t) => R.value = t),
294
- bulk: e.bulk,
295
- "error-code": f.value,
296
- "search-by": s.value,
297
- onScan: T
298
- }, null, 8, ["visible", "bulk", "error-code", "search-by"]),
299
- y.value ? (c(), V(z, {
300
- key: 0,
301
- "base-z-index": 9983,
302
- group: m.value,
303
- icon: "info"
304
- }, null, 8, ["group"])) : F("", !0),
305
- y.value ? (c(), V(z, {
306
- key: 1,
307
- "base-z-index": 9997,
308
- class: "!absolute !bottom-[80px] !h-max",
309
- group: "scan-error-validation"
310
- })) : F("", !0),
311
- y.value ? (c(), V(z, {
312
- key: q.value,
313
- "base-z-index": 9984,
314
- group: C.value,
315
- class: "[&_[data-pc-section=buttoncontainer]]"
316
- }, {
317
- message: we(({ message: t }) => [
318
- I("div", {
319
- class: ee(
320
- 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"
321
- )
322
- }, [
323
- t.detail === "scanning" ? (c(), _(B, { key: 0 }, [
324
- I("section", Oe, [
325
- p($, {
326
- class: "animate-spin text-base",
327
- icon: "loader-4"
328
- }),
329
- I("span", Be, [
330
- s.value === "RFID" ? (c(), _(B, { key: 0 }, [
331
- p($, {
332
- class: "text-base !w-4 !h-4",
333
- icon: "rfid"
334
- }),
335
- ne(" " + M(S.value ? "Validating RFID..." : "RFID Scanning..."), 1)
336
- ], 64)) : (c(), _(B, { key: 1 }, [
337
- p($, {
338
- class: "text-sm",
339
- icon: "qr"
340
- }),
341
- ne(" " + M(S.value ? "Validating QR..." : "QR Scanning..."), 1)
342
- ], 64))
343
- ])
344
- ]),
345
- I("section", Ve, [
346
- Fe,
347
- p(te, {
348
- onClick: o[1] || (o[1] = (b) => E(!0)),
349
- label: "Stop Scan",
350
- severity: "danger"
351
- })
352
- ])
353
- ], 64)) : (c(), _("span", Ue, M(t.detail), 1))
354
- ], 2)
355
- ]),
356
- _: 1
357
- }, 8, ["group"])) : F("", !0),
358
- p(Ee, {
359
- visible: k.value,
360
- "onUpdate:visible": o[2] || (o[2] = (t) => k.value = t),
361
- header: `${s.value} SCAN STOPPED`,
362
- onConfirm: o[3] || (o[3] = (t) => (k.value = !1, T())),
363
- "confirm-label": "Continue",
364
- message: "The scan process was interrupted because you want to leave this window.",
365
- severity: "danger"
366
- }, null, 8, ["visible", "header"]),
367
- (c(), V(_e, { to: "body" }, [
368
- D.value ? (c(), _("div", {
369
- key: 0,
370
- class: ee([
371
- e.$preset.dialog.mask({ props: { modal: !0 } }).class,
372
- "w-screen h-screen fixed top-0 left-0",
373
- "!z-[9982]"
374
- ]),
375
- "data-ts-section": "toast-mask"
376
- }, null, 2)) : F("", !0)
377
- ]))
378
- ], 64));
379
- }
380
- }), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
- __proto__: null,
382
- default: We
383
- }, Symbol.toStringTag, { value: "Module" }));
384
- export {
385
- Ye as B,
386
- xe as g
387
- };
@@ -1 +0,0 @@
1
- System.register([],function(d,i){"use strict";return{execute:function(){d("W",Y);const Z="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPW51bGwsdD1udWxsLGE7c2VsZi5vbm1lc3NhZ2U9cz0+e2NvbnN0IGU9cy5kYXRhO3N3aXRjaChlLmNvbW1hbmQpe2Nhc2Uic3luYyI6dShlKTticmVhaztjYXNlImNvbm5lY3QiOmwoZSk7YnJlYWs7Y2FzZSJzY2FuIjptKGUpO2JyZWFrO2Nhc2Uic3RvcHNjYW4iOmQoZSk7YnJlYWt9fTtjb25zdCByPXM9PntsZXQgZT0iZXN0YWJsaXNoZWQiO24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOPyhlPSJyZXVzZWQiLHMub25vcGVuKG4sZSksaShzLnRpbWVvdXQpKTpuPW5ldyBXZWJTb2NrZXQoIndzczovL2Rldi1hcGkudGFnc2FtdXJhaS5jb20vcmZpZC1yZWFkZXItZ28vIiksbi5vbm9wZW49KCk9PntlPSJlc3RhYmxpc2hlZCIsbiYmcy5vbm9wZW4obixlKSxpKHMudGltZW91dCl9LG4ub25tZXNzYWdlPW89PntzLm9ubWVzc2FnZShvKSxpKHMudGltZW91dCl9LG4ub25lcnJvcj1vPT57Y29uc29sZS5lcnJvcigi8J+agCB+IFNjYW5uZXIgV29ya2VyOiBvcGVuQ29ubmVjdGlvbiB+IGVycm9yOiIsbykscy5vbmVycm9yKG8pLG49PW51bGx8fG4uY2xvc2UoKSxuPW51bGwsdCYmY2xlYXJUaW1lb3V0KHQpfX0scD0oKT0+e2Qoe3VzZXJJZDphfSksYT12b2lkIDAsbiYmbi5jbG9zZSgpLG49bnVsbCx0JiZjbGVhclRpbWVvdXQodCksY29uc29sZS5pbmZvKCJTb2NrZXQgY29ubmVjdGlvbiBoYXMgYmVlbiBjbG9zZWQhIil9LGk9KHM9MCk9PntzJiYodCYmY2xlYXJUaW1lb3V0KHQpLHQ9c2V0VGltZW91dChwLHMpKX0sdT0oe3VzZXJJZDpzfSk9PnthPXMscih7b25vcGVuOmU9PntlLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY2VkIiwuLi5KU09OLnBhcnNlKGUuZGF0YSl9KX0sb25lcnJvcjplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY19lcnJvciIsZXJyb3I6ZX0pfX0pfSxsPSh7dXNlcklkOnN9KT0+e2E9cyxyKHtvbm9wZW46KGUsbyk9PntvPT09ImVzdGFibGlzaGVkIj9lLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSk6cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9yZXVzZWQifSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9lc3RhYmxpc2hlZCIsLi4uSlNPTi5wYXJzZShlLmRhdGEpfSl9LG9uZXJyb3I6ZT0+e3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yX2Nvbm5lY3RpbmciLGVycm9yOmV9KX19KX0sbT0oe3NjYW5Db21tYW5kOnMsdXNlcklkOmUsc2VyaWFsTnVtYmVyOm8samVuaXNEZXZpY2U6Z30pPT57YT1lLHIoe29ub3BlbjpjPT57Yy5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOnMsdXNlcklkOmUsc291cmNlOiJhcHAiLHNlcmlhbE51bWJlcjpvLGplbmlzRGV2aWNlOmd9LGV2ZW50OiJyZWFkZXIifSkpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fc3RhcnRlZCJ9KX0sb25tZXNzYWdlOmM9Pntwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FubmVkIiwuLi5KU09OLnBhcnNlKGMuZGF0YSl9KX0sb25lcnJvcjpjPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9lcnJvciIsZXJyb3I6Y30pfX0pfSxkPSh7dXNlcklkOnN9KT0+e24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOJiYobi5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOiJzdG9wc2NhbiIsdXNlcklkOnMsc291cmNlOiJhcHAifSxldmVudDoicmVhZGVyIn0pKSxwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FuX3N0b3BwZWQifSksY29uc29sZS5pbmZvKCJTY2FuIFByb2Nlc3MgU3RvcHBlZCEiKSl9fSkoKTsK",m=l=>Uint8Array.from(atob(l),c=>c.charCodeAt(0)),e=typeof self<"u"&&self.Blob&&new Blob([m(Z)],{type:"text/javascript;charset=utf-8"});function Y(l){let c;try{if(c=e&&(self.URL||self.webkitURL).createObjectURL(e),!c)throw"";const b=new Worker(c,{name:l==null?void 0:l.name});return b.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(c)}),b}catch{return new Worker("data:text/javascript;base64,"+Z,{name:l==null?void 0:l.name})}finally{c&&(self.URL||self.webkitURL).revokeObjectURL(c)}}}}});
@@ -1,25 +0,0 @@
1
- const d = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPW51bGwsdD1udWxsLGE7c2VsZi5vbm1lc3NhZ2U9cz0+e2NvbnN0IGU9cy5kYXRhO3N3aXRjaChlLmNvbW1hbmQpe2Nhc2Uic3luYyI6dShlKTticmVhaztjYXNlImNvbm5lY3QiOmwoZSk7YnJlYWs7Y2FzZSJzY2FuIjptKGUpO2JyZWFrO2Nhc2Uic3RvcHNjYW4iOmQoZSk7YnJlYWt9fTtjb25zdCByPXM9PntsZXQgZT0iZXN0YWJsaXNoZWQiO24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOPyhlPSJyZXVzZWQiLHMub25vcGVuKG4sZSksaShzLnRpbWVvdXQpKTpuPW5ldyBXZWJTb2NrZXQoIndzczovL2Rldi1hcGkudGFnc2FtdXJhaS5jb20vcmZpZC1yZWFkZXItZ28vIiksbi5vbm9wZW49KCk9PntlPSJlc3RhYmxpc2hlZCIsbiYmcy5vbm9wZW4obixlKSxpKHMudGltZW91dCl9LG4ub25tZXNzYWdlPW89PntzLm9ubWVzc2FnZShvKSxpKHMudGltZW91dCl9LG4ub25lcnJvcj1vPT57Y29uc29sZS5lcnJvcigi8J+agCB+IFNjYW5uZXIgV29ya2VyOiBvcGVuQ29ubmVjdGlvbiB+IGVycm9yOiIsbykscy5vbmVycm9yKG8pLG49PW51bGx8fG4uY2xvc2UoKSxuPW51bGwsdCYmY2xlYXJUaW1lb3V0KHQpfX0scD0oKT0+e2Qoe3VzZXJJZDphfSksYT12b2lkIDAsbiYmbi5jbG9zZSgpLG49bnVsbCx0JiZjbGVhclRpbWVvdXQodCksY29uc29sZS5pbmZvKCJTb2NrZXQgY29ubmVjdGlvbiBoYXMgYmVlbiBjbG9zZWQhIil9LGk9KHM9MCk9PntzJiYodCYmY2xlYXJUaW1lb3V0KHQpLHQ9c2V0VGltZW91dChwLHMpKX0sdT0oe3VzZXJJZDpzfSk9PnthPXMscih7b25vcGVuOmU9PntlLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY2VkIiwuLi5KU09OLnBhcnNlKGUuZGF0YSl9KX0sb25lcnJvcjplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic3luY19lcnJvciIsZXJyb3I6ZX0pfX0pfSxsPSh7dXNlcklkOnN9KT0+e2E9cyxyKHtvbm9wZW46KGUsbyk9PntvPT09ImVzdGFibGlzaGVkIj9lLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6ImNvbm5lY3QiLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSk6cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9yZXVzZWQifSl9LG9ubWVzc2FnZTplPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoiY29ubmVjdGlvbl9lc3RhYmxpc2hlZCIsLi4uSlNPTi5wYXJzZShlLmRhdGEpfSl9LG9uZXJyb3I6ZT0+e3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yX2Nvbm5lY3RpbmciLGVycm9yOmV9KX19KX0sbT0oe3NjYW5Db21tYW5kOnMsdXNlcklkOmUsc2VyaWFsTnVtYmVyOm8samVuaXNEZXZpY2U6Z30pPT57YT1lLHIoe29ub3BlbjpjPT57Yy5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOnMsdXNlcklkOmUsc291cmNlOiJhcHAiLHNlcmlhbE51bWJlcjpvLGplbmlzRGV2aWNlOmd9LGV2ZW50OiJyZWFkZXIifSkpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fc3RhcnRlZCJ9KX0sb25tZXNzYWdlOmM9Pntwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FubmVkIiwuLi5KU09OLnBhcnNlKGMuZGF0YSl9KX0sb25lcnJvcjpjPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9lcnJvciIsZXJyb3I6Y30pfX0pfSxkPSh7dXNlcklkOnN9KT0+e24mJm4ucmVhZHlTdGF0ZT09PVdlYlNvY2tldC5PUEVOJiYobi5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOiJzdG9wc2NhbiIsdXNlcklkOnMsc291cmNlOiJhcHAifSxldmVudDoicmVhZGVyIn0pKSxwb3N0TWVzc2FnZSh7c3RhdHVzOiJzY2FuX3N0b3BwZWQifSksY29uc29sZS5pbmZvKCJTY2FuIFByb2Nlc3MgU3RvcHBlZCEiKSl9fSkoKTsK", Y = (l) => Uint8Array.from(atob(l), (c) => c.charCodeAt(0)), Z = typeof self < "u" && self.Blob && new Blob([Y(d)], { type: "text/javascript;charset=utf-8" });
2
- function e(l) {
3
- let c;
4
- try {
5
- if (c = Z && (self.URL || self.webkitURL).createObjectURL(Z), !c) throw "";
6
- const b = new Worker(c, {
7
- name: l == null ? void 0 : l.name
8
- });
9
- return b.addEventListener("error", () => {
10
- (self.URL || self.webkitURL).revokeObjectURL(c);
11
- }), b;
12
- } catch {
13
- return new Worker(
14
- "data:text/javascript;base64," + d,
15
- {
16
- name: l == null ? void 0 : l.name
17
- }
18
- );
19
- } finally {
20
- c && (self.URL || self.webkitURL).revokeObjectURL(c);
21
- }
22
- }
23
- export {
24
- e as W
25
- };
@@ -1 +0,0 @@
1
- System.register(["vue","../../vendor/primevue-C5Z_k4WB.system.js","../../event-bus/index-CykcrsqY.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../icon/Icon-D1a666FC.system.js"],function(T,W){"use strict";var h,d,p,y,v,f,o,t,l,g,c,k,w,b,S,i;return{setters:[e=>{h=e.defineComponent,d=e.inject,p=e.shallowRef,y=e.ref,v=e.createElementBlock,f=e.openBlock,o=e.mergeProps,t=e.unref,l=e.createVNode,g=e.withModifiers,c=e.createElementVNode,k=e.nextTick},e=>{w=e.c},e=>{b=e.e},e=>{S=e.u},e=>{i=e.default}],execute:function(){const e=T("default",h({__name:"ButtonSearch",props:{tableName:{default:"datatable"}},emits:["search","collapsed"],setup(F){const n=d("preset",{}).buttonsearch,{locale:q}=S("ButtonSearch"),s=p(),m=y(),a=p(!1),M=()=>{a.value=!0,N()},N=()=>{k(()=>{m.value&&m.value.$el.focus()})},R=r=>{s.value=r.target.value||void 0};return(r,u)=>{var I,x,B,j,C,V,$,E,P;return a.value?(f(),v("form",o({key:1},(B=t(n))==null?void 0:B.form({context:{showSearchInput:a.value}}),{onSubmit:u[2]||(u[2]=g(()=>{t(b).emit("search-table",{tableName:r.tableName,search:s.value}),r.$emit("search",s.value)},["prevent"]))}),[c("button",o({onClick:u[0]||(u[0]=()=>{s.value=void 0,a.value=!1,r.$emit("collapsed"),t(b).emit("search-table",{tableName:r.tableName,search:void 0}),r.$emit("search",void 0)})},(j=t(n))==null?void 0:j.collapsebutton.root({context:{showSearchInput:a.value}}),{type:"button"}),[l(i,o((C=t(n))==null?void 0:C.collapsebutton.icon,{icon:"arrow-left"}),null,16)],16),l(t(w),o((V=t(n))==null?void 0:V.inputtext,{ref_key:"inputtext",ref:m,"model-value":s.value,placeholder:t(q).searchPlaceholder,onInput:R}),null,16,["model-value","placeholder"]),c("button",o({onClick:u[1]||(u[1]=Z=>{s.value=void 0,N()})},($=t(n))==null?void 0:$.resetbutton.root({query:s.value}),{type:"button"}),[l(i,o((E=t(n))==null?void 0:E.resetbutton.icon,{icon:"close"}),null,16)],16),c("button",o((P=t(n))==null?void 0:P.hiddensubmit,{type:"submit"}),null,16)],16)):(f(),v("button",o({key:0,onClick:M},(I=t(n))==null?void 0:I.buttontrigger.root({context:{showSearchInput:a.value}}),{type:"button"}),[l(i,o((x=t(n))==null?void 0:x.buttontrigger.icon,{icon:"search",info:"Search",severity:"secondary","tooltip-pos":"bottom"}),null,16)],16))}}}))}}});
@@ -1,70 +0,0 @@
1
- import { defineComponent as x, inject as P, shallowRef as g, ref as V, createElementBlock as w, openBlock as I, mergeProps as o, unref as e, createVNode as u, withModifiers as q, createElementVNode as c, nextTick as E } from "vue";
2
- import { c as T } from "../../vendor/primevue-DkBtKf1Y.es.js";
3
- import { e as N } from "../../event-bus/index-PQwO5T6B.es.js";
4
- import { u as j } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
5
- import i from "../icon/Icon-C4kXVcEX.es.js";
6
- const G = /* @__PURE__ */ x({
7
- __name: "ButtonSearch",
8
- props: {
9
- tableName: { default: "datatable" }
10
- },
11
- emits: ["search", "collapsed"],
12
- setup(F) {
13
- const t = P("preset", {}).buttonsearch, { locale: $ } = j("ButtonSearch"), n = g(), s = V(), r = g(!1), B = () => {
14
- r.value = !0, p();
15
- }, p = () => {
16
- E(() => {
17
- s.value && s.value.$el.focus();
18
- });
19
- }, C = (a) => {
20
- n.value = a.target.value || void 0;
21
- };
22
- return (a, l) => {
23
- var m, v, b, f, h, d, y, k, S;
24
- return r.value ? (I(), w("form", o({ key: 1 }, (b = e(t)) == null ? void 0 : b.form({ context: { showSearchInput: r.value } }), {
25
- onSubmit: l[2] || (l[2] = q(
26
- () => {
27
- e(N).emit("search-table", { tableName: a.tableName, search: n.value }), a.$emit("search", n.value);
28
- },
29
- ["prevent"]
30
- ))
31
- }), [
32
- c("button", o({
33
- onClick: l[0] || (l[0] = () => {
34
- n.value = void 0, r.value = !1, a.$emit("collapsed"), e(N).emit("search-table", { tableName: a.tableName, search: void 0 }), a.$emit("search", void 0);
35
- })
36
- }, (f = e(t)) == null ? void 0 : f.collapsebutton.root({ context: { showSearchInput: r.value } }), { type: "button" }), [
37
- u(i, o((h = e(t)) == null ? void 0 : h.collapsebutton.icon, { icon: "arrow-left" }), null, 16)
38
- ], 16),
39
- u(e(T), o((d = e(t)) == null ? void 0 : d.inputtext, {
40
- ref_key: "inputtext",
41
- ref: s,
42
- "model-value": n.value,
43
- placeholder: e($).searchPlaceholder,
44
- onInput: C
45
- }), null, 16, ["model-value", "placeholder"]),
46
- c("button", o({
47
- onClick: l[1] || (l[1] = (M) => {
48
- n.value = void 0, p();
49
- })
50
- }, (y = e(t)) == null ? void 0 : y.resetbutton.root({ query: n.value }), { type: "button" }), [
51
- u(i, o((k = e(t)) == null ? void 0 : k.resetbutton.icon, { icon: "close" }), null, 16)
52
- ], 16),
53
- c("button", o((S = e(t)) == null ? void 0 : S.hiddensubmit, { type: "submit" }), null, 16)
54
- ], 16)) : (I(), w("button", o({
55
- key: 0,
56
- onClick: B
57
- }, (m = e(t)) == null ? void 0 : m.buttontrigger.root({ context: { showSearchInput: r.value } }), { type: "button" }), [
58
- u(i, o((v = e(t)) == null ? void 0 : v.buttontrigger.icon, {
59
- icon: "search",
60
- info: "Search",
61
- severity: "secondary",
62
- "tooltip-pos": "bottom"
63
- }), null, 16)
64
- ], 16));
65
- };
66
- }
67
- });
68
- export {
69
- G as default
70
- };