@fewangsit/wangsvue-fats 1.0.0-alpha.41 → 1.0.0-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/ButtonCopy-C6DSmsOR.es.js +4 -0
  2. package/ButtonCopy-CeBlNyVx.system.js +1 -0
  3. package/ButtonSync-BLyCwwnU.system.js +1 -0
  4. package/ButtonSync-DtUhn-Q-.es.js +4 -0
  5. package/ButtonToggle-B9Fa75pf.es.js +4 -0
  6. package/ButtonToggle-CSxzlLR2.system.js +1 -0
  7. package/ButtonViewLog-B1oa4oFN.es.js +4 -0
  8. package/ButtonViewLog-_J6r7Oz8.system.js +1 -0
  9. package/Card-B19WgA6Y.es.js +4 -0
  10. package/Card-umUgd-nP.system.js +1 -0
  11. package/InputEmail-BZ5Y0wSk.system.js +1 -0
  12. package/InputEmail-DR_E1DsL.es.js +4 -0
  13. package/InputURL-DL6a94kM.system.js +1 -0
  14. package/InputURL-PVF5EUUY.es.js +4 -0
  15. package/Loading-Cq7rP88c.system.js +1 -0
  16. package/Loading-DUHTVct4.es.js +4 -0
  17. package/UserWithIcon-Ddn_GlNu.system.js +1 -0
  18. package/UserWithIcon-hWXf-A2U.es.js +4 -0
  19. package/assets/lottie/loading-page-B9ooQcfF.system.js +1 -0
  20. package/assets/lottie/loading-page-CQ0mKER2.es.js +15 -0
  21. package/assets/lottie/loading-table-B4T3FYiI.system.js +1 -0
  22. package/assets/lottie/loading-table-BnpbX8Ew.es.js +15 -0
  23. package/assets/lottie/no-data-CMWnya_k.system.js +1 -0
  24. package/{no-data-DLHO1L_u.js → assets/lottie/no-data-DOy8kIGF.es.js} +13 -2
  25. package/async-components/index-C8nb7p3T.es.js +70 -0
  26. package/async-components/index-DvjqHrYE.system.js +1 -0
  27. package/components/animation/Animation-CCEnvZ_Z.es.js +48 -0
  28. package/components/animation/Animation-CJb4YIwm.system.js +1 -0
  29. package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +127 -0
  30. package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +1 -0
  31. package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +1 -0
  32. package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +201 -0
  33. package/components/badge/Badge-DXAyz4Z8.es.js +99 -0
  34. package/components/badge/Badge-wSExdsOP.system.js +1 -0
  35. package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +1 -0
  36. package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +68 -0
  37. package/components/basetree/BaseTree-CmBp0uwr.system.js +1 -0
  38. package/components/basetree/BaseTree-RsvvntBp.es.js +167 -0
  39. package/components/basetree/TreeNode-CUL5_2Rj.es.js +499 -0
  40. package/components/basetree/TreeNode-D-YgXird.system.js +1 -0
  41. package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +1 -0
  42. package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +46 -0
  43. package/components/button/Button-CgkhMnxo.es.js +124 -0
  44. package/components/button/Button-D892iaxz.system.js +1 -0
  45. package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +1 -0
  46. package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +189 -0
  47. package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +31 -0
  48. package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +1 -0
  49. package/components/buttoncopy/ButtonCopy.vue.d.ts +6 -4
  50. package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +61 -0
  51. package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +1 -0
  52. package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +1 -0
  53. package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +28 -0
  54. package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +83 -0
  55. package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +1 -0
  56. package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +1 -0
  57. package/components/buttonscan/ButtonScan-mVHAdACL.es.js +387 -0
  58. package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +1 -0
  59. package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +25 -0
  60. package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +1 -0
  61. package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +70 -0
  62. package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +218 -0
  63. package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +1 -0
  64. package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +1 -0
  65. package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +101 -0
  66. package/components/buttonsync/ButtonSync-Brk16H8C.es.js +29 -0
  67. package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +1 -0
  68. package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +11 -0
  69. package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +1 -0
  70. package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +21 -0
  71. package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +1 -0
  72. package/components/calendar/BaseCalendar-5EI1UTbl.es.js +867 -0
  73. package/components/calendar/BaseCalendar-C02-gmOQ.system.js +1 -0
  74. package/components/calendar/Calendar-B2z-lfi9.es.js +112 -0
  75. package/components/calendar/Calendar-CWw4R5mN.system.js +1 -0
  76. package/components/card/Card-BccG14LV.es.js +47 -0
  77. package/components/card/Card-BjI-Xi0S.system.js +1 -0
  78. package/components/checkbox/Checkbox-DBU7Ji2C.es.js +135 -0
  79. package/components/checkbox/Checkbox-FZg_wq3C.system.js +1 -0
  80. package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +127 -0
  81. package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +2 -0
  82. package/components/customcolumn/ColumnList-fdR5JfHj.es.js +159 -0
  83. package/components/customcolumn/ColumnList-yaNVEQFA.system.js +1 -0
  84. package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +139 -0
  85. package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +1 -0
  86. package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +1 -0
  87. package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +16 -0
  88. package/components/datatable/DataTable-BH7Fk88O.es.js +992 -0
  89. package/components/datatable/DataTable-Cko2S6sM.system.js +1 -0
  90. package/components/datatable/MultiRow-B2vMSb7W.es.js +52 -0
  91. package/components/datatable/MultiRow-Sef5icam.system.js +1 -0
  92. package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +37 -0
  93. package/components/datatable/store/dataTable.store-C9376aEJ.system.js +1 -0
  94. package/components/dialog/Dialog-BCcbXSya.es.js +121 -0
  95. package/components/dialog/Dialog-Dv7Jzg4E.system.js +1 -0
  96. package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +1 -0
  97. package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +139 -0
  98. package/components/dialogform/DialogForm-DGl_NOEr.system.js +1 -0
  99. package/components/dialogform/DialogForm-tAbix3iC.es.js +222 -0
  100. package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +268 -0
  101. package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +1 -0
  102. package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +121 -0
  103. package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +1 -0
  104. package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +1 -0
  105. package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +44 -0
  106. package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +71 -0
  107. package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +1 -0
  108. package/components/dropdown/Dropdown-BNzT2uLU.system.js +1 -0
  109. package/components/dropdown/Dropdown-Dk4urj-W.es.js +258 -0
  110. package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +26 -0
  111. package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +1 -0
  112. package/components/editor/Editor-RB5MqBs1.es.js +887 -0
  113. package/components/editor/Editor-upU4Z9FH.system.js +1 -0
  114. package/components/editor/EditorButton-CC6U1a_u.system.js +1 -0
  115. package/components/editor/EditorButton-Cfew79JD.es.js +28 -0
  116. package/components/editor/MentionList-BjWKefLh.system.js +1 -0
  117. package/components/editor/MentionList-CdX0_-TK.es.js +58 -0
  118. package/components/editor/MentionSection-5I-FSwew.es.js +52 -0
  119. package/components/editor/MentionSection-CiuaeX4J.system.js +3 -0
  120. package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +40 -0
  121. package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +1 -0
  122. package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +1 -0
  123. package/components/editor/mentionSectionExtension-rbWufuMT.es.js +46 -0
  124. package/components/editor/suggestion-BcYK0KeI.system.js +1 -0
  125. package/components/editor/suggestion-mkkpQFP-.es.js +41 -0
  126. package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +1 -0
  127. package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +35 -0
  128. package/components/fileupload/FileUpload-0EHKlInu.es.js +175 -0
  129. package/components/fileupload/FileUpload-dXrsIAeC.system.js +1 -0
  130. package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +234 -0
  131. package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +1 -0
  132. package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +1 -0
  133. package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +56 -0
  134. package/components/form/Form-By85t_oI.system.js +1 -0
  135. package/components/form/Form-DhWBpdkq.es.js +181 -0
  136. package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +238 -0
  137. package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +1 -0
  138. package/components/hardwaresync/store/device.store-DEKXH36R.system.js +1 -0
  139. package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +20 -0
  140. package/components/icon/Icon-C4kXVcEX.es.js +82 -0
  141. package/components/icon/Icon-D1a666FC.system.js +1 -0
  142. package/components/image/Image-Bf5EaBWP.es.js +170 -0
  143. package/components/image/Image-Cxi0E9gK.system.js +1 -0
  144. package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +1 -0
  145. package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +52 -0
  146. package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +1 -0
  147. package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +509 -0
  148. package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +46 -0
  149. package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +1 -0
  150. package/components/index-BMti6lK3.es.js +64 -0
  151. package/components/index-DBzSxIov.system.js +1 -0
  152. package/components/index.d.ts +162 -60
  153. package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +94 -0
  154. package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +1 -0
  155. package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +1 -0
  156. package/components/inputbadge/InputBadge-BngtjqHQ.es.js +186 -0
  157. package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +1211 -0
  158. package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +1 -0
  159. package/components/inputemail/InputEmail-8E04RVeq.system.js +1 -0
  160. package/components/inputemail/InputEmail-BFeY1l9Z.es.js +49 -0
  161. package/components/inputgroup/InputGroup-CTHxHL8n.system.js +1 -0
  162. package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +56 -0
  163. package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +1 -0
  164. package/components/inputnumber/InputNumber-CQd01PQ5.es.js +232 -0
  165. package/components/inputpassword/InputPassword-D3jaUFfR.system.js +1 -0
  166. package/components/inputpassword/InputPassword-DGWsHAB4.es.js +121 -0
  167. package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +1 -0
  168. package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +162 -0
  169. package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +15 -0
  170. package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +1 -0
  171. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +423 -0
  172. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +1 -0
  173. package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +134 -0
  174. package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +1 -0
  175. package/components/inputsearch/InputSearch-CHJP-N57.es.js +53 -0
  176. package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +1 -0
  177. package/components/inputtext/InputText-BEDxrRqK.es.js +242 -0
  178. package/components/inputtext/InputText-BOgH8xpA.system.js +1 -0
  179. package/components/inputurl/InputURL-CNrOkrAC.es.js +61 -0
  180. package/components/inputurl/InputURL-D4QWV9G7.system.js +1 -0
  181. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +27 -0
  182. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +1 -0
  183. package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +102 -0
  184. package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +1 -0
  185. package/components/loading/Loading-DIfTUHr7.es.js +24 -0
  186. package/components/loading/Loading-Vb4HctBJ.system.js +1 -0
  187. package/components/menu/Menu-BtzGGhbp.es.js +73 -0
  188. package/components/menu/Menu-CPm5vua_.system.js +1 -0
  189. package/components/menuitem/MenuItem-8yxkFTug.system.js +1 -0
  190. package/components/menuitem/MenuItem-uLVAqgBS.es.js +65 -0
  191. package/components/multiselect/MultiSelect-BoPpQ31j.es.js +189 -0
  192. package/components/multiselect/MultiSelect-D5NEDtGe.system.js +1 -0
  193. package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +1 -0
  194. package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +49 -0
  195. package/components/tabmenu/TabMenu-BBk8EW-C.system.js +1 -0
  196. package/components/tabmenu/TabMenu-ByKBaVsd.es.js +108 -0
  197. package/components/tagtype/TagType-CAXomDiD.es.js +49 -0
  198. package/components/tagtype/TagType-i4RK2JbL.system.js +1 -0
  199. package/components/textarea/Textarea-CnAlgPq5.es.js +108 -0
  200. package/components/textarea/Textarea-qirKOw5z.system.js +1 -0
  201. package/components/timeline/Timeline-CF2qJo4E.es.js +120 -0
  202. package/components/timeline/Timeline-DKfKWZFI.system.js +1 -0
  203. package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +108 -0
  204. package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +1 -0
  205. package/components/toast/Toast-C3D50rGo.system.js +1 -0
  206. package/components/toast/Toast-DRUJCz4I.es.js +74 -0
  207. package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +90 -0
  208. package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +1 -0
  209. package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +223 -0
  210. package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +1 -0
  211. package/components/tree/Tree-93NvdElH.es.js +267 -0
  212. package/components/tree/Tree-BTTVTAEH.system.js +1 -0
  213. package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +1 -0
  214. package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +10 -0
  215. package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +1 -0
  216. package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +56 -0
  217. package/components/username/UserName-A1N6Q7bS.system.js +1 -0
  218. package/components/username/UserName-D5C0qdbu.es.js +132 -0
  219. package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +18 -0
  220. package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +1 -0
  221. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +19 -0
  222. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +1 -0
  223. package/config/config.esm-BZepf1kR.system.js +1 -0
  224. package/config/config.esm-Drl0fECZ.es.js +212 -0
  225. package/config/defaultProps-B3syHUKt.system.js +1 -0
  226. package/config/defaultProps-BC_lvAG9.es.js +136 -0
  227. package/config/locale-DK6d2rJ3.system.js +1 -0
  228. package/config/locale-pQnRpNZ6.es.js +85 -0
  229. package/event-bus/index-CykcrsqY.system.js +1 -0
  230. package/event-bus/index-PQwO5T6B.es.js +6 -0
  231. package/event-bus/mitt-BjeF6e5j.es.js +53 -0
  232. package/event-bus/mitt-X_X8W9w9.system.js +1 -0
  233. package/package.json +1 -1
  234. package/plugins/WangsVue-Dl5OiLXF.es.js +332 -0
  235. package/plugins/WangsVue-Dugc3GRS.system.js +1 -0
  236. package/plugins/i18n-BVujDShu.system.js +1 -0
  237. package/plugins/i18n-CIoi8go0.es.js +89 -0
  238. package/stats.html +1 -1
  239. package/style.css +1 -1
  240. package/utils/addAttachment.util-CPzZEHNG.system.js +1 -0
  241. package/utils/addAttachment.util-D9sYCBjS.es.js +10 -0
  242. package/utils/computeAutoPlacement-Ac2MkS5B.es.js +33 -0
  243. package/utils/computeAutoPlacement-DCaci6j-.system.js +1 -0
  244. package/utils/computeOffsets-Cx9i84Mn.system.js +1 -0
  245. package/utils/computeOffsets-DXWJPq7f.es.js +56 -0
  246. package/utils/date.util-DbjB32co.es.js +198 -0
  247. package/utils/date.util-rX9kq_yC.system.js +1 -0
  248. package/utils/detectOverflow-BrAC_sJF.system.js +1 -0
  249. package/utils/detectOverflow-CETbaen7.es.js +88 -0
  250. package/utils/exportToExcel.util-Bf-PpzHW.system.js +1 -0
  251. package/utils/exportToExcel.util-jz7aU08m.es.js +32 -0
  252. package/utils/genPlaceholder.util-0UuDQpbx.es.js +37 -0
  253. package/utils/genPlaceholder.util-CxMG7LbT.system.js +1 -0
  254. package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +9 -0
  255. package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +1 -0
  256. package/utils/object.util-6veM2gu5.es.js +51 -0
  257. package/utils/object.util-uApor4uP.system.js +1 -0
  258. package/utils/orderModifiers-qXBm1wkD.system.js +1 -0
  259. package/utils/orderModifiers-rOag5Cyh.es.js +31 -0
  260. package/utils/role.util-BdUNoOqf.es.js +67 -0
  261. package/utils/role.util-Co8OMWnc.system.js +1 -0
  262. package/utils/textFormatter.util-BjenkyWf.system.js +1 -0
  263. package/utils/textFormatter.util-CYul3RpH.es.js +21 -0
  264. package/utils/toast.util-C7p3h9XQ.es.js +52 -0
  265. package/utils/toast.util-DPtauJUV.system.js +1 -0
  266. package/utils/utils.esm-iwnsFuDg.system.js +23 -0
  267. package/utils/utils.esm-s_-kLKXf.es.js +1080 -0
  268. package/utils/xlsx.util-FKEpiU2t.system.js +1 -0
  269. package/utils/xlsx.util-LU1upHR3.es.js +8 -0
  270. package/vendor/@popperjs/core-DFLwc7xU.system.js +1 -0
  271. package/vendor/@popperjs/core-DJHUrK4e.es.js +748 -0
  272. package/vendor/@tiptap/core-D4rHEGhs.system.js +80 -0
  273. package/vendor/@tiptap/core-DSbPv8xh.es.js +2868 -0
  274. package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +71 -0
  275. package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +1 -0
  276. package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +1 -0
  277. package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +128 -0
  278. package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +53 -0
  279. package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +1 -0
  280. package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +51 -0
  281. package/vendor/@tiptap/extension-code-SOANT0O3.system.js +1 -0
  282. package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +99 -0
  283. package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +1 -0
  284. package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +54 -0
  285. package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +1 -0
  286. package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +1 -0
  287. package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +35 -0
  288. package/vendor/@tiptap/extension-image-BNa6azmK.system.js +1 -0
  289. package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +64 -0
  290. package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +70 -0
  291. package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +1 -0
  292. package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +262 -0
  293. package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +1 -0
  294. package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +1 -0
  295. package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +33 -0
  296. package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +130 -0
  297. package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +1 -0
  298. package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +71 -0
  299. package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +1 -0
  300. package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +52 -0
  301. package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +1 -0
  302. package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +40 -0
  303. package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +1 -0
  304. package/vendor/@tiptap/suggestion-B3Grok9m.system.js +1 -0
  305. package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +131 -0
  306. package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +436 -0
  307. package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +1 -0
  308. package/vendor/highlight.js-ClnJXT0q.system.js +2 -0
  309. package/vendor/highlight.js-Czlvg6fB.es.js +2493 -0
  310. package/vendor/linkifyjs-BxsOjwQz.es.js +705 -0
  311. package/vendor/linkifyjs-CMLfIa6I.system.js +5 -0
  312. package/vendor/lodash-B6nNLFd3.es.js +127 -0
  313. package/vendor/lodash-BuO1dYnQ.system.js +1 -0
  314. package/vendor/lodash-es-C3G1Cc1m.system.js +1 -0
  315. package/vendor/lodash-es-CJerBxJQ.es.js +766 -0
  316. package/vendor/orderedmap-B3SOk52B.es.js +103 -0
  317. package/vendor/orderedmap-Dwr31MF0.system.js +1 -0
  318. package/vendor/primevue-C5Z_k4WB.system.js +171 -0
  319. package/vendor/primevue-DkBtKf1Y.es.js +12649 -0
  320. package/vendor/prosemirror-commands-CUjo-x4s.es.js +383 -0
  321. package/vendor/prosemirror-commands-Dn6KNBP0.system.js +2 -0
  322. package/vendor/prosemirror-history-BPOe4I2H.es.js +248 -0
  323. package/vendor/prosemirror-history-BTrzvpc-.system.js +1 -0
  324. package/vendor/prosemirror-keymap-BvIUhswp.es.js +60 -0
  325. package/vendor/prosemirror-keymap-WRY9zVpK.system.js +1 -0
  326. package/vendor/prosemirror-model-D2n-Dx_L.es.js +2736 -0
  327. package/vendor/prosemirror-model-DTWK5xnv.system.js +4 -0
  328. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +87 -0
  329. package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +1 -0
  330. package/vendor/prosemirror-state-BW6XGB3U.es.js +820 -0
  331. package/vendor/prosemirror-state-COJ-aZZ4.system.js +1 -0
  332. package/vendor/prosemirror-transform-BXNgAhmF.system.js +2 -0
  333. package/vendor/prosemirror-transform-DvAmofec.es.js +1507 -0
  334. package/vendor/prosemirror-view-C9ZQp8VZ.es.js +3742 -0
  335. package/vendor/prosemirror-view-DOxSTbB-.system.js +5 -0
  336. package/vendor/rope-sequence-4t46C6az.system.js +1 -0
  337. package/vendor/rope-sequence-sEGCUMi8.es.js +100 -0
  338. package/vendor/simplebar-core-CtWK1-xd.system.js +1 -0
  339. package/vendor/simplebar-core-ofTx4QqK.es.js +333 -0
  340. package/vendor/simplebar-vue-BHVrvuf1.system.js +1 -0
  341. package/vendor/simplebar-vue-dpCx-K7E.es.js +176 -0
  342. package/vendor/tippy.js-6wuFov1j.system.js +1 -0
  343. package/vendor/tippy.js-i1ic-msv.es.js +721 -0
  344. package/vendor/uuid-93tp0umt.es.js +9 -0
  345. package/vendor/uuid-Cymn6orr.system.js +1 -0
  346. package/vendor/vee-validate-Cc_B-qII.system.js +5 -0
  347. package/vendor/vee-validate-RE5RuswC.es.js +1309 -0
  348. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +1380 -0
  349. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +20 -0
  350. package/vendor/w3c-keyname-BSD-PgAi.system.js +1 -0
  351. package/vendor/w3c-keyname-CLxH8j-f.es.js +92 -0
  352. package/wangsvue-fats.js +156 -0
  353. package/wangsvue-fats.system.js +1 -313
  354. package/loading-page-BrQattYE.js +0 -1
  355. package/loading-page-CoC9UhfC.js +0 -4
  356. package/loading-page-DbLuqCHa.js +0 -1
  357. package/loading-page-f8D03l3G.js +0 -4
  358. package/loading-plane-CgfbWppy.js +0 -1
  359. package/loading-plane-CoXtqoc9.js +0 -4
  360. package/loading-table-Bdr9ZhtP.js +0 -1
  361. package/loading-table-ByUoWqUo.js +0 -4
  362. package/loading-table-BygEMzFM.js +0 -4
  363. package/loading-table-BzrSQlA0.js +0 -1
  364. package/loading-table-D9bw9OcI.js +0 -4
  365. package/loading-table-chOgXi94.js +0 -1
  366. package/no-data-CTKux8RI.js +0 -4
  367. package/no-data-Cgze_Rvp.js +0 -1
  368. package/no-data-Dep79CBh.js +0 -1
  369. package/no-data-g0dJCy2p.js +0 -4
  370. package/no-data-y1X5WtcQ.js +0 -1
  371. package/wangsvue-fats.es.js +0 -51894
  372. /package/{loading-page-CgfbWppy.js → assets/lottie/loading-plane-CgfbWppy.system.js} +0 -0
  373. /package/{loading-page-CoXtqoc9.js → assets/lottie/loading-plane-CoXtqoc9.es.js} +0 -0
@@ -0,0 +1,234 @@
1
+ import { defineComponent as O, ref as g, shallowRef as F, onMounted as j, onBeforeUnmount as q, watch as G, withDirectives as J, createElementBlock as _, openBlock as s, mergeProps as i, withModifiers as Q, unref as n, createElementVNode as z, Fragment as B, renderList as H, createBlock as m, renderSlot as X, createVNode as $, vShow as Y, withCtx as Z } from "vue";
2
+ import ee from "../buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js";
3
+ import { a as te } from "../../vendor/vee-validate-RE5RuswC.es.js";
4
+ import { e as ae, f as oe, g as le, h as ne } from "../../async-components/index-C8nb7p3T.es.js";
5
+ import { e as v } from "../../event-bus/index-PQwO5T6B.es.js";
6
+ import { u as re } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
7
+ import { s as se, g as ie } from "../../utils/object.util-6veM2gu5.es.js";
8
+ import { a as ce, b as ue } from "./helpers/applyFilter.helper-DpVdjYBr.es.js";
9
+ import { _ as x } from "../button/Button-CgkhMnxo.es.js";
10
+ const me = {
11
+ class: "flex items-end justify-end gap-2",
12
+ "data-wv-section": "filteractionbuttons"
13
+ }, pe = /* @__PURE__ */ O({
14
+ inheritAttrs: !1,
15
+ __name: "FilterContainer",
16
+ props: {
17
+ tableName: { default: "datatable" },
18
+ fieldsPerRow: { default: 4 },
19
+ fields: {},
20
+ static: { type: Boolean }
21
+ },
22
+ emits: ["apply"],
23
+ setup(N, { emit: p }) {
24
+ const o = N, r = p, { locale: d } = re("FilterContainer"), { resetForm: R, handleSubmit: T, setValues: A } = te(), f = g({}), y = g({}), h = F(), b = g(null), k = F(!1), S = F(0);
25
+ j(() => {
26
+ P(), v.on("show-filter", M), v.on("data-table:updated", C), K();
27
+ }), q(() => {
28
+ v.off("show-filter", M), v.off("data-table:updated", C);
29
+ });
30
+ const M = (t) => {
31
+ t.tableName === o.tableName && (k.value = t.show);
32
+ }, C = (t) => {
33
+ t.tableName === o.tableName && (h.value = t.data);
34
+ }, E = async (t, a, e = {}) => {
35
+ if (o.static && !t)
36
+ y.value[a] = D(a);
37
+ else
38
+ try {
39
+ f.value[a] = !0;
40
+ const l = { [a]: !0, ...e }, u = await (t == null ? void 0 : t(l));
41
+ u && (y.value[a] = u);
42
+ } catch (l) {
43
+ console.error(l);
44
+ } finally {
45
+ f.value[a] = !1;
46
+ }
47
+ }, D = (t) => {
48
+ const a = /* @__PURE__ */ new Set();
49
+ if (h.value)
50
+ for (let e = 0; e < h.value.length; e++) {
51
+ const l = ie(h.value[e], t);
52
+ a.add(l);
53
+ }
54
+ return Array.from(a).map((e) => ({ label: e, value: e }));
55
+ }, P = () => {
56
+ if (b.value) {
57
+ const { children: t } = b.value, a = b.value.childElementCount, e = a % o.fieldsPerRow;
58
+ let [l, u] = [1, 1];
59
+ for (const V in Array.from({ length: a })) {
60
+ const U = Number(V) === a - 1;
61
+ t[V].setAttribute(
62
+ "style",
63
+ `grid-area: ${l}/${U && e ? o.fieldsPerRow : u}`
64
+ ), ++u > o.fieldsPerRow && (u = 1, l++);
65
+ }
66
+ }
67
+ }, L = () => {
68
+ R(), S.value++;
69
+ }, w = T((t) => {
70
+ o.static ? ce(t, o.tableName, o.fields, r) : ue(t, o.tableName, r);
71
+ }), W = (t, a) => {
72
+ var e;
73
+ switch (t.type) {
74
+ case "rangenumber":
75
+ return t.field ? `${t.field}.matchMode` : `${(e = t.fields) == null ? void 0 : e[a]}.matchMode`;
76
+ case "multiselect":
77
+ case "dropdown":
78
+ case "calendar":
79
+ case "category":
80
+ case "group":
81
+ return `${t.field}.matchMode`;
82
+ }
83
+ }, I = (t) => (() => {
84
+ switch (t.type) {
85
+ case "rangenumber":
86
+ return "BETWEEN";
87
+ case "multiselect":
88
+ case "category":
89
+ case "group":
90
+ return "IN";
91
+ case "dropdown":
92
+ return "EQUALS";
93
+ case "calendar":
94
+ return "DATE_BETWEEN";
95
+ }
96
+ })(), K = () => {
97
+ if (o.static) {
98
+ const t = {};
99
+ o.fields.forEach((a) => {
100
+ se(
101
+ t,
102
+ W(a),
103
+ I(a)
104
+ );
105
+ }), A(t);
106
+ }
107
+ }, c = (t, a) => {
108
+ switch (t.type) {
109
+ case "rangenumber":
110
+ return t.field ? o.static ? `${t.field}.value.${a}` : `${t.field}` : o.static ? `${t.fields[a]}.value` : t.fields[a];
111
+ case "multiselect":
112
+ case "dropdown":
113
+ case "calendar":
114
+ case "category":
115
+ case "group":
116
+ return o.static ? `${t.field}.value` : `${t.field}`;
117
+ }
118
+ };
119
+ return G(() => o.fields, P), (t, a) => J((s(), _("form", i({
120
+ ref_key: "container",
121
+ ref: b
122
+ }, t.$preset.filtercontainer.root, {
123
+ style: `grid-template-columns: repeat(${t.fieldsPerRow}, 1fr)`,
124
+ onSubmit: a[0] || (a[0] = Q(
125
+ //@ts-ignore
126
+ (...e) => n(w) && n(w)(...e),
127
+ ["prevent"]
128
+ )),
129
+ "data-wv-name": "filtercontainer"
130
+ }), [
131
+ (s(!0), _(B, null, H(t.fields, (e) => (s(), _(B, {
132
+ key: JSON.stringify(e) + S.value
133
+ }, [
134
+ e.type == "rangenumber" ? (s(), m(n(ae), i({
135
+ key: 0,
136
+ ref_for: !0
137
+ }, e, {
138
+ mandatory: !1,
139
+ "max-field-name": c(e, 1),
140
+ "min-field-name": c(e, 0),
141
+ "show-optional-text": !1,
142
+ "use-validator": ""
143
+ }), null, 16, ["max-field-name", "min-field-name"])) : e.type == "multiselect" ? (s(), m(n(oe), i({
144
+ key: 1,
145
+ ref_for: !0
146
+ }, e, {
147
+ "field-name": c(e),
148
+ loading: f.value[e.optionField ?? e.field],
149
+ mandatory: !1,
150
+ options: y.value[e.optionField ?? e.field],
151
+ "show-optional-text": !1,
152
+ onShow: (l) => E(
153
+ e.fetchOptionFn,
154
+ e.optionField ?? e.field,
155
+ e.params
156
+ ),
157
+ "option-label": "label",
158
+ "option-value": "value",
159
+ "use-validator": ""
160
+ }), null, 16, ["field-name", "loading", "options", "onShow"])) : e.type == "dropdown" ? (s(), m(n(le), i({
161
+ key: 2,
162
+ ref_for: !0
163
+ }, e, {
164
+ "field-name": c(e),
165
+ loading: f.value[e.field],
166
+ mandatory: !1,
167
+ options: y.value[e.optionField ?? e.field],
168
+ "show-optional-text": !1,
169
+ onShow: (l) => E(
170
+ e.fetchOptionFn,
171
+ e.optionField ?? e.field,
172
+ e.params
173
+ ),
174
+ "option-label": "label",
175
+ "option-value": "value",
176
+ "use-validator": ""
177
+ }), null, 16, ["field-name", "loading", "options", "onShow"])) : e.type === "calendar" ? (s(), m(n(ne), i({
178
+ key: 3,
179
+ ref_for: !0
180
+ }, e, {
181
+ "field-name": c(e),
182
+ mandatory: !1,
183
+ "show-optional-text": !1,
184
+ "selection-mode": "range",
185
+ "use-validator": ""
186
+ }), null, 16, ["field-name"])) : X(t.$slots, "field", {
187
+ key: 4,
188
+ field: e,
189
+ fieldName: c(e)
190
+ })
191
+ ], 64))), 128)),
192
+ z("div", me, [
193
+ $(x, {
194
+ label: n(d).clearFieldText,
195
+ onClick: L,
196
+ "data-wv-section": "clearbutton",
197
+ text: ""
198
+ }, null, 8, ["label"]),
199
+ $(x, {
200
+ label: n(d).applyText,
201
+ onClick: n(w),
202
+ "data-wv-section": "applybutton",
203
+ severity: "success"
204
+ }, null, 8, ["label", "onClick"])
205
+ ])
206
+ ], 16)), [
207
+ [Y, k.value]
208
+ ]);
209
+ }
210
+ }), _e = /* @__PURE__ */ O({
211
+ __name: "FilterContainer",
212
+ setup(N) {
213
+ return (p, o) => (s(), m(pe, i({
214
+ fields: p.$attrs.fields
215
+ }, p.$attrs), {
216
+ field: Z(({ field: r, fieldName: d }) => [
217
+ $(ee, i(r, {
218
+ "field-data-key": r.fieldDataKey ?? "key",
219
+ "field-label": r.label,
220
+ "field-name": d,
221
+ label: r.buttonLabel,
222
+ mandatory: !1,
223
+ params: r.params,
224
+ "show-optional-text": !1,
225
+ "use-validator": ""
226
+ }), null, 16, ["field-data-key", "field-label", "field-name", "label", "params"])
227
+ ]),
228
+ _: 1
229
+ }, 16, ["fields"]));
230
+ }
231
+ });
232
+ export {
233
+ _e as _
234
+ };
@@ -0,0 +1 @@
1
+ System.register(["vue","../buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js","../../vendor/vee-validate-Cc_B-qII.system.js","../../async-components/index-DvjqHrYE.system.js","../../event-bus/index-CykcrsqY.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../../utils/object.util-uApor4uP.system.js","./helpers/applyFilter.helper-Ci22FrPF.system.js","../button/Button-D892iaxz.system.js"],function(ne,me){"use strict";var N,m,y,B,C,E,V,h,l,i,P,o,j,k,x,u,R,v,T,D,O,A,L,W,U,q,f,I,K,G,J,Q,S;return{setters:[t=>{N=t.defineComponent,m=t.ref,y=t.shallowRef,B=t.onMounted,C=t.onBeforeUnmount,E=t.watch,V=t.withDirectives,h=t.createElementBlock,l=t.openBlock,i=t.mergeProps,P=t.withModifiers,o=t.unref,j=t.createElementVNode,k=t.Fragment,x=t.renderList,u=t.createBlock,R=t.renderSlot,v=t.createVNode,T=t.vShow,D=t.withCtx},t=>{O=t.default},t=>{A=t.a},t=>{L=t.e,W=t.f,U=t.g,q=t.h},t=>{f=t.e},t=>{I=t.u},t=>{K=t.s,G=t.g},t=>{J=t.a,Q=t.b},t=>{S=t._}],execute:function(){const t={class:"flex items-end justify-end gap-2","data-wv-section":"filteractionbuttons"},se=N({inheritAttrs:!1,__name:"FilterContainer",props:{tableName:{default:"datatable"},fieldsPerRow:{default:4},fields:{},static:{type:Boolean}},emits:["apply"],setup(Z,{emit:b}){const s=Z,c=b,{locale:w}=I("FilterContainer"),{resetForm:oe,handleSubmit:re,setValues:le}=A(),g=m({}),F=m({}),$=y(),_=m(null),z=y(!1),H=y(0);B(()=>{te(),f.on("show-filter",X),f.on("data-table:updated",Y),de()}),C(()=>{f.off("show-filter",X),f.off("data-table:updated",Y)});const X=a=>{a.tableName===s.tableName&&(z.value=a.show)},Y=a=>{a.tableName===s.tableName&&($.value=a.data)},ee=async(a,n,e={})=>{if(s.static&&!a)F.value[n]=ie(n);else try{g.value[n]=!0;const r={[n]:!0,...e},d=await(a==null?void 0:a(r));d&&(F.value[n]=d)}catch(r){console.error(r)}finally{g.value[n]=!1}},ie=a=>{const n=new Set;if($.value)for(let e=0;e<$.value.length;e++){const r=G($.value[e],a);n.add(r)}return Array.from(n).map(e=>({label:e,value:e}))},te=()=>{if(_.value){const{children:a}=_.value,n=_.value.childElementCount,e=n%s.fieldsPerRow;let[r,d]=[1,1];for(const ae in Array.from({length:n})){const fe=Number(ae)===n-1;a[ae].setAttribute("style",`grid-area: ${r}/${fe&&e?s.fieldsPerRow:d}`),++d>s.fieldsPerRow&&(d=1,r++)}}},ce=()=>{oe(),H.value++},M=re(a=>{s.static?J(a,s.tableName,s.fields,c):Q(a,s.tableName,c)}),ue=(a,n)=>{var e;switch(a.type){case"rangenumber":return a.field?`${a.field}.matchMode`:`${(e=a.fields)==null?void 0:e[n]}.matchMode`;case"multiselect":case"dropdown":case"calendar":case"category":case"group":return`${a.field}.matchMode`}},pe=a=>(()=>{switch(a.type){case"rangenumber":return"BETWEEN";case"multiselect":case"category":case"group":return"IN";case"dropdown":return"EQUALS";case"calendar":return"DATE_BETWEEN"}})(),de=()=>{if(s.static){const a={};s.fields.forEach(n=>{K(a,ue(n),pe(n))}),le(a)}},p=(a,n)=>{switch(a.type){case"rangenumber":return a.field?s.static?`${a.field}.value.${n}`:`${a.field}`:s.static?`${a.fields[n]}.value`:a.fields[n];case"multiselect":case"dropdown":case"calendar":case"category":case"group":return s.static?`${a.field}.value`:`${a.field}`}};return E(()=>s.fields,te),(a,n)=>V((l(),h("form",i({ref_key:"container",ref:_},a.$preset.filtercontainer.root,{style:`grid-template-columns: repeat(${a.fieldsPerRow}, 1fr)`,onSubmit:n[0]||(n[0]=P((...e)=>o(M)&&o(M)(...e),["prevent"])),"data-wv-name":"filtercontainer"}),[(l(!0),h(k,null,x(a.fields,e=>(l(),h(k,{key:JSON.stringify(e)+H.value},[e.type=="rangenumber"?(l(),u(o(L),i({key:0,ref_for:!0},e,{mandatory:!1,"max-field-name":p(e,1),"min-field-name":p(e,0),"show-optional-text":!1,"use-validator":""}),null,16,["max-field-name","min-field-name"])):e.type=="multiselect"?(l(),u(o(W),i({key:1,ref_for:!0},e,{"field-name":p(e),loading:g.value[e.optionField??e.field],mandatory:!1,options:F.value[e.optionField??e.field],"show-optional-text":!1,onShow:r=>ee(e.fetchOptionFn,e.optionField??e.field,e.params),"option-label":"label","option-value":"value","use-validator":""}),null,16,["field-name","loading","options","onShow"])):e.type=="dropdown"?(l(),u(o(U),i({key:2,ref_for:!0},e,{"field-name":p(e),loading:g.value[e.field],mandatory:!1,options:F.value[e.optionField??e.field],"show-optional-text":!1,onShow:r=>ee(e.fetchOptionFn,e.optionField??e.field,e.params),"option-label":"label","option-value":"value","use-validator":""}),null,16,["field-name","loading","options","onShow"])):e.type==="calendar"?(l(),u(o(q),i({key:3,ref_for:!0},e,{"field-name":p(e),mandatory:!1,"show-optional-text":!1,"selection-mode":"range","use-validator":""}),null,16,["field-name"])):R(a.$slots,"field",{key:4,field:e,fieldName:p(e)})],64))),128)),j("div",t,[v(S,{label:o(w).clearFieldText,onClick:ce,"data-wv-section":"clearbutton",text:""},null,8,["label"]),v(S,{label:o(w).applyText,onClick:o(M),"data-wv-section":"applybutton",severity:"success"},null,8,["label","onClick"])])],16)),[[T,z.value]])}}),ye=ne("_",N({__name:"FilterContainer",setup(Z){return(b,s)=>(l(),u(se,i({fields:b.$attrs.fields},b.$attrs),{field:D(({field:c,fieldName:w})=>[v(O,i(c,{"field-data-key":c.fieldDataKey??"key","field-label":c.label,"field-name":w,label:c.buttonLabel,mandatory:!1,params:c.params,"show-optional-text":!1,"use-validator":""}),null,16,["field-data-key","field-label","field-name","label","params"])]),_:1},16,["fields"]))}}))}}});
@@ -0,0 +1 @@
1
+ System.register(["../../../event-bus/index-CykcrsqY.system.js","../../../utils/object.util-uApor4uP.system.js"],function(u,d){"use strict";var n,p;return{setters:[o=>{n=o.e},o=>{p=o.g}],execute:function(){const o=e=>{if(Array.isArray(e)){const[i,l]=e;return[new Date(i).setHours(0,0,0),new Date(l??i).setHours(23,59,59)]}},h=u("b",(e,i,l)=>{const y=Object.keys(e),a={};n.emit("multi-select:hide-overlay"),y.forEach(t=>{var f;const r=Array.isArray(e[t]),A=typeof e[t]=="string",s=r?(f=e[t])==null?void 0:f.filter(g=>g!=null):e[t];if((s!=null&&!r||r&&s.length)&&!A){if(Array.isArray(s)&&s.every(c=>typeof c=="number"&&c>9466848e5&&!isNaN(new Date(c).getTime()))){a[t]=JSON.stringify(o(s));return}a[t]=s!=null&&s.length?JSON.stringify(e[t]):JSON.stringify(s)}else a[t]=e[t]}),n.emit("data-table:apply-filter",{tableName:i,filter:a}),n.emit("data-table:clear-selected-data",{tableName:i}),l==null||l("apply",a)}),m=u("a",(e,i,l,y)=>{const a={};n.emit("multi-select:hide-overlay"),l.forEach(t=>{if("field"in t){const r=p(e,t.field);"value"in r&&r.value!=null&&(a[t.field]=r,"matchMode"in r&&r.matchMode=="DATE_BETWEEN"&&(a[t.field].value=o(r.value)),Array.isArray(r.value)&&!r.value.filter(Boolean).length&&delete a[t.field])}}),n.emit("data-table:apply-filter",{tableName:i,filter:a}),n.emit("data-table:clear-selected-data",{tableName:i}),y==null||y("apply",a)})}}});
@@ -0,0 +1,56 @@
1
+ import { e as n } from "../../../event-bus/index-PQwO5T6B.es.js";
2
+ import { g } from "../../../utils/object.util-6veM2gu5.es.js";
3
+ const f = (e) => {
4
+ if (Array.isArray(e)) {
5
+ const [s, l] = e;
6
+ return [
7
+ new Date(s).setHours(0, 0, 0),
8
+ new Date(l ?? s).setHours(23, 59, 59)
9
+ ];
10
+ }
11
+ }, d = (e, s, l) => {
12
+ const o = Object.keys(e), a = {};
13
+ n.emit("multi-select:hide-overlay"), o.forEach((t) => {
14
+ var c;
15
+ const r = Array.isArray(e[t]), A = typeof e[t] == "string", i = r ? (c = e[t]) == null ? void 0 : c.filter((p) => p != null) : e[t];
16
+ if ((i != null && !r || r && i.length) && !A) {
17
+ if (Array.isArray(i) && i.every(
18
+ (y) => typeof y == "number" && y > 9466848e5 && // Greater than 2000-01-01 00:00:00 UTC (milliseconds)
19
+ !isNaN(new Date(y).getTime())
20
+ // Converts to a valid date
21
+ )) {
22
+ a[t] = JSON.stringify(
23
+ // Adjust the end range time to 23.59.59 and the start to 00.00.00 to fix filtering issue when user only select a date
24
+ f(i)
25
+ );
26
+ return;
27
+ }
28
+ a[t] = i != null && i.length ? JSON.stringify(e[t]) : JSON.stringify(i);
29
+ } else
30
+ a[t] = e[t];
31
+ }), n.emit("data-table:apply-filter", {
32
+ tableName: s,
33
+ filter: a
34
+ }), n.emit("data-table:clear-selected-data", {
35
+ tableName: s
36
+ }), l == null || l("apply", a);
37
+ }, m = (e, s, l, o) => {
38
+ const a = {};
39
+ n.emit("multi-select:hide-overlay"), l.forEach((t) => {
40
+ if ("field" in t) {
41
+ const r = g(e, t.field);
42
+ "value" in r && r.value != null && (a[t.field] = r, "matchMode" in r && r.matchMode == "DATE_BETWEEN" && (a[t.field].value = f(
43
+ r.value
44
+ )), Array.isArray(r.value) && !r.value.filter(Boolean).length && delete a[t.field]);
45
+ }
46
+ }), n.emit("data-table:apply-filter", {
47
+ tableName: s,
48
+ filter: a
49
+ }), n.emit("data-table:clear-selected-data", {
50
+ tableName: s
51
+ }), o == null || o("apply", a);
52
+ };
53
+ export {
54
+ m as a,
55
+ d as b
56
+ };
@@ -0,0 +1 @@
1
+ System.register(["vue","../../vendor/vee-validate-Cc_B-qII.system.js","../../async-components/index-DvjqHrYE.system.js","../button/Button-D892iaxz.system.js","../validatormessage/ValidatorMessage-VVfyqlRF.system.js"],function(ce,ge){"use strict";var E,M,b,T,i,N,B,r,s,l,R,m,u,A,V,C,W,O,H,p,z,D,y,q;return{setters:[e=>{E=e.defineComponent,M=e.onMounted,b=e.ref,T=e.inject,i=e.shallowRef,N=e.provide,B=e.createElementBlock,r=e.openBlock,s=e.mergeProps,l=e.unref,R=e.withModifiers,m=e.createElementVNode,u=e.createCommentVNode,A=e.renderSlot,V=e.normalizeProps,C=e.createVNode,W=e.withDirectives,O=e.vShow,H=e.guardReactiveProps,p=e.createBlock},e=>{z=e.a},e=>{D=e.C},e=>{y=e._},e=>{q=e._}],execute:function(){const e=ce("default",E({__name:"Form",props:{buttonsTemplate:{},disableSubmit:{type:Boolean},cancelBtnLabel:{default:"Batal"},clearBtnLabel:{default:"Bersihkan Field"},columnPerRow:{},hideFooter:{type:Boolean},hideStayCheckbox:{type:Boolean},invalid:{type:Boolean},resetAfterSubmit:{type:Boolean,default:!0},saveBtnLabel:{default:"Simpan"},submitBtnLabel:{default:"Simpan"},stayCheckboxLabel:{default:"Tetap di halaman ini"},validatorMessage:{default:"Please input all required field!"},validateOnSave:{type:Boolean,default:!1},cancelBtnSeverity:{default:"secondary"},saveBtnSeverity:{default:"success"},submitBtnSeverity:{default:"success"}},emits:["cancel","clear","save","submit"],setup(fe,{expose:ve,emit:de}){const o=fe,g=de;M(()=>{if($.value){const t=o.columnPerRow??1;$.value.style.gridTemplateColumns=`repeat(${t}, minmax(0, 1fr))`,x()}});const n=T("preset",{}).form,{handleSubmit:be,values:w,resetForm:I,errors:me,resetField:pe,setValues:ye,setFieldValue:ke,setErrors:Se}=z(),k=i(!1),K=b(),c=i(!1),U=i(!1),F=i(0),L=b(),v=i(!1),P=i(!1),$=b(null),j=b(null);N("isSubmitting",v);const x=()=>{var t;if(L.value){const a=(t=L.value)==null?void 0:t.offsetHeight;j.value&&(j.value.style.height=`calc(100% + ${a+20}px)`)}},G=()=>{v.value=!0,U.value||(c.value=!0)},J=()=>{v.value=!0,P.value=!0,o.validateOnSave?(U.value||(c.value=!0),h()):Be()},h=be(t=>{if(!o.invalid){const a=X(t),f={stayAfterSubmit:k.value,formValues:a};P.value?g("save",f):g("submit",f),c.value=!1,P.value=!1,o.resetAfterSubmit&&(F.value+=1,I())}v.value=!1},()=>{v.value=!1}),Be=()=>{const t=X(w),a={stayAfterSubmit:k.value,formValues:t};g("save",a),v.value=!1},Q=()=>{I(),F.value++,g("clear"),c.value=!1},X=t=>{const a=t,f=Object.keys(a);for(const d of f)typeof a[d]=="string"&&(a[d]=a[d].trim());return a};return ve({stayAfterSubmit:k,submit:h,onSubmitClicked:G,onSaveClicked:J,showValidator:c,formElement:K,clearField:Q,resetField:pe,errors:me,setOuterFieldsWrapperHeight:x,setValues:ye,setFieldValue:ke,setErrors:Se,values:w}),(t,a)=>{var f,d,Y,Z,_,ee,te,ae,le,se,ne,oe,re,ie,ue;return r(),B("form",s({ref_key:"formElement",ref:K},(f=l(n))==null?void 0:f.root({props:o}),{onInput:a[2]||(a[2]=S=>c.value=!1),onSubmit:a[3]||(a[3]=R((...S)=>l(h)&&l(h)(...S),["prevent"]))}),[m("div",{ref_key:"outerFieldsWrapper",ref:j},[m("div",s({ref_key:"fieldsWrapper",ref:$},(d=l(n))==null?void 0:d["fields-wrapper"]),[A(t.$slots,"fields",{key:F.value,formValues:l(w)})],16)],512),t.hideFooter?u("",!0):(r(),B("div",s({key:0,ref_key:"footer",ref:L},(Y=l(n))==null?void 0:Y.footer),[t.hideStayCheckbox?u("",!0):(r(),B("div",V(s({key:0},(Z=l(n))==null?void 0:Z.staycheckbox)),[C(l(D),{modelValue:k.value,"onUpdate:modelValue":a[0]||(a[0]=S=>k.value=S),label:t.stayCheckboxLabel},null,8,["modelValue","label"])],16)),m("div",s({id:"footer-actions-wrapper"},(_=l(n))==null?void 0:_["action-buttons"]),[W(C(q,s((ee=l(n))==null?void 0:ee["validator-message"],{message:t.validatorMessage}),null,16,["message"]),[[O,c.value||o.invalid]]),m("div",V(H((te=l(n))==null?void 0:te["button-wrapper"])),[(ae=o.buttonsTemplate)!=null&&ae.includes("cancel")?(r(),p(y,s({key:0},(le=l(n))==null?void 0:le["cancel-button"],{label:t.cancelBtnLabel,severity:t.cancelBtnSeverity,onClick:a[1]||(a[1]=S=>t.$emit("cancel")),"data-test":"cancel-button",text:"",type:"button"}),null,16,["label","severity"])):u("",!0),(se=o.buttonsTemplate)!=null&&se.includes("clear")?(r(),p(y,s({key:1},(ne=l(n))==null?void 0:ne["clear-button"],{label:t.clearBtnLabel,onClick:Q,text:"",type:"button"}),null,16,["label"])):u("",!0),(oe=o.buttonsTemplate)!=null&&oe.includes("save")?(r(),p(y,s({key:2},(re=l(n))==null?void 0:re["save-button"],{label:t.saveBtnLabel,severity:t.saveBtnSeverity,onClick:J,outlined:"",type:"button"}),null,16,["label","severity"])):u("",!0),(ie=o.buttonsTemplate)!=null&&ie.includes("submit")?(r(),p(y,s({key:3},(ue=l(n))==null?void 0:ue["submit-button"],{disabled:t.disableSubmit,label:t.submitBtnLabel,severity:t.submitBtnSeverity,onClick:G,type:"submit"}),null,16,["disabled","label","severity"])):u("",!0)],16)],16)],16))],16)}}}))}}});
@@ -0,0 +1,181 @@
1
+ import { defineComponent as ne, onMounted as ie, ref as y, inject as ue, shallowRef as d, provide as fe, createElementBlock as L, openBlock as i, mergeProps as o, unref as l, withModifiers as de, createElementVNode as k, createCommentVNode as m, renderSlot as me, normalizeProps as X, createVNode as Y, withDirectives as ve, vShow as ce, guardReactiveProps as be, createBlock as S } from "vue";
2
+ import { a as pe } from "../../vendor/vee-validate-RE5RuswC.es.js";
3
+ import { C as ye } from "../../async-components/index-C8nb7p3T.es.js";
4
+ import { _ as B } from "../button/Button-CgkhMnxo.es.js";
5
+ import { _ as ke } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
6
+ const ge = /* @__PURE__ */ ne({
7
+ __name: "Form",
8
+ props: {
9
+ buttonsTemplate: {},
10
+ disableSubmit: { type: Boolean },
11
+ cancelBtnLabel: { default: "Batal" },
12
+ clearBtnLabel: { default: "Bersihkan Field" },
13
+ columnPerRow: {},
14
+ hideFooter: { type: Boolean },
15
+ hideStayCheckbox: { type: Boolean },
16
+ invalid: { type: Boolean },
17
+ resetAfterSubmit: { type: Boolean, default: !0 },
18
+ saveBtnLabel: { default: "Simpan" },
19
+ submitBtnLabel: { default: "Simpan" },
20
+ stayCheckboxLabel: { default: "Tetap di halaman ini" },
21
+ validatorMessage: { default: "Please input all required field!" },
22
+ validateOnSave: { type: Boolean, default: !1 },
23
+ cancelBtnSeverity: { default: "secondary" },
24
+ saveBtnSeverity: { default: "success" },
25
+ submitBtnSeverity: { default: "success" }
26
+ },
27
+ emits: ["cancel", "clear", "save", "submit"],
28
+ setup(Z, { expose: x, emit: _ }) {
29
+ const s = Z, b = _;
30
+ ie(() => {
31
+ if (F.value) {
32
+ const e = s.columnPerRow ?? 1;
33
+ F.value.style.gridTemplateColumns = `repeat(${e}, minmax(0, 1fr))`, A();
34
+ }
35
+ });
36
+ const a = ue("preset", {}).form, {
37
+ handleSubmit: ee,
38
+ values: C,
39
+ resetForm: $,
40
+ errors: te,
41
+ resetField: le,
42
+ setValues: ae,
43
+ setFieldValue: se,
44
+ setErrors: oe
45
+ } = pe(), v = d(!1), P = y(), r = d(!1), T = d(!1), h = d(0), V = y(), u = d(!1), g = d(!1), F = y(null), w = y(null);
46
+ fe("isSubmitting", u);
47
+ const A = () => {
48
+ var e;
49
+ if (V.value) {
50
+ const t = (e = V.value) == null ? void 0 : e.offsetHeight;
51
+ w.value && (w.value.style.height = `calc(100% + ${t + 20}px)`);
52
+ }
53
+ }, E = () => {
54
+ u.value = !0, T.value || (r.value = !0);
55
+ }, W = () => {
56
+ u.value = !0, g.value = !0, s.validateOnSave ? (T.value || (r.value = !0), p()) : re();
57
+ }, p = ee(
58
+ (e) => {
59
+ if (!s.invalid) {
60
+ const t = O(e), n = {
61
+ stayAfterSubmit: v.value,
62
+ formValues: t
63
+ };
64
+ g.value ? b("save", n) : b("submit", n), r.value = !1, g.value = !1, s.resetAfterSubmit && (h.value += 1, $());
65
+ }
66
+ u.value = !1;
67
+ },
68
+ () => {
69
+ u.value = !1;
70
+ }
71
+ ), re = () => {
72
+ const e = O(C), t = {
73
+ stayAfterSubmit: v.value,
74
+ formValues: e
75
+ };
76
+ b("save", t), u.value = !1;
77
+ }, M = () => {
78
+ $(), h.value++, b("clear"), r.value = !1;
79
+ }, O = (e) => {
80
+ const t = e, n = Object.keys(t);
81
+ for (const f of n)
82
+ typeof t[f] == "string" && (t[f] = t[f].trim());
83
+ return t;
84
+ };
85
+ return x({
86
+ stayAfterSubmit: v,
87
+ submit: p,
88
+ onSubmitClicked: E,
89
+ onSaveClicked: W,
90
+ showValidator: r,
91
+ formElement: P,
92
+ clearField: M,
93
+ resetField: le,
94
+ errors: te,
95
+ setOuterFieldsWrapperHeight: A,
96
+ setValues: ae,
97
+ setFieldValue: se,
98
+ setErrors: oe,
99
+ values: C
100
+ }), (e, t) => {
101
+ var n, f, R, H, N, j, q, z, D, I, K, U, G, J, Q;
102
+ return i(), L("form", o({
103
+ ref_key: "formElement",
104
+ ref: P
105
+ }, (n = l(a)) == null ? void 0 : n.root({ props: s }), {
106
+ onInput: t[2] || (t[2] = (c) => r.value = !1),
107
+ onSubmit: t[3] || (t[3] = de(
108
+ //@ts-ignore
109
+ (...c) => l(p) && l(p)(...c),
110
+ ["prevent"]
111
+ ))
112
+ }), [
113
+ k("div", {
114
+ ref_key: "outerFieldsWrapper",
115
+ ref: w
116
+ }, [
117
+ k("div", o({
118
+ ref_key: "fieldsWrapper",
119
+ ref: F
120
+ }, (f = l(a)) == null ? void 0 : f["fields-wrapper"]), [
121
+ me(e.$slots, "fields", {
122
+ key: h.value,
123
+ formValues: l(C)
124
+ })
125
+ ], 16)
126
+ ], 512),
127
+ e.hideFooter ? m("", !0) : (i(), L("div", o({
128
+ key: 0,
129
+ ref_key: "footer",
130
+ ref: V
131
+ }, (R = l(a)) == null ? void 0 : R.footer), [
132
+ e.hideStayCheckbox ? m("", !0) : (i(), L("div", X(o({ key: 0 }, (H = l(a)) == null ? void 0 : H.staycheckbox)), [
133
+ Y(l(ye), {
134
+ modelValue: v.value,
135
+ "onUpdate:modelValue": t[0] || (t[0] = (c) => v.value = c),
136
+ label: e.stayCheckboxLabel
137
+ }, null, 8, ["modelValue", "label"])
138
+ ], 16)),
139
+ k("div", o({ id: "footer-actions-wrapper" }, (N = l(a)) == null ? void 0 : N["action-buttons"]), [
140
+ ve(Y(ke, o((j = l(a)) == null ? void 0 : j["validator-message"], { message: e.validatorMessage }), null, 16, ["message"]), [
141
+ [ce, r.value || s.invalid]
142
+ ]),
143
+ k("div", X(be((q = l(a)) == null ? void 0 : q["button-wrapper"])), [
144
+ (z = s.buttonsTemplate) != null && z.includes("cancel") ? (i(), S(B, o({ key: 0 }, (D = l(a)) == null ? void 0 : D["cancel-button"], {
145
+ label: e.cancelBtnLabel,
146
+ severity: e.cancelBtnSeverity,
147
+ onClick: t[1] || (t[1] = (c) => e.$emit("cancel")),
148
+ "data-test": "cancel-button",
149
+ text: "",
150
+ type: "button"
151
+ }), null, 16, ["label", "severity"])) : m("", !0),
152
+ (I = s.buttonsTemplate) != null && I.includes("clear") ? (i(), S(B, o({ key: 1 }, (K = l(a)) == null ? void 0 : K["clear-button"], {
153
+ label: e.clearBtnLabel,
154
+ onClick: M,
155
+ text: "",
156
+ type: "button"
157
+ }), null, 16, ["label"])) : m("", !0),
158
+ (U = s.buttonsTemplate) != null && U.includes("save") ? (i(), S(B, o({ key: 2 }, (G = l(a)) == null ? void 0 : G["save-button"], {
159
+ label: e.saveBtnLabel,
160
+ severity: e.saveBtnSeverity,
161
+ onClick: W,
162
+ outlined: "",
163
+ type: "button"
164
+ }), null, 16, ["label", "severity"])) : m("", !0),
165
+ (J = s.buttonsTemplate) != null && J.includes("submit") ? (i(), S(B, o({ key: 3 }, (Q = l(a)) == null ? void 0 : Q["submit-button"], {
166
+ disabled: e.disableSubmit,
167
+ label: e.submitBtnLabel,
168
+ severity: e.submitBtnSeverity,
169
+ onClick: E,
170
+ type: "submit"
171
+ }), null, 16, ["disabled", "label", "severity"])) : m("", !0)
172
+ ], 16)
173
+ ], 16)
174
+ ], 16))
175
+ ], 16);
176
+ };
177
+ }
178
+ });
179
+ export {
180
+ ge as default
181
+ };