@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,887 @@
1
+ import { defineComponent as Ee, mergeModels as ve, inject as Oe, useModel as fe, onMounted as De, reactive as je, shallowRef as h, ref as V, computed as J, watch as ge, resolveDirective as Re, createElementBlock as $, openBlock as m, Fragment as Q, createVNode as d, withCtx as p, createElementVNode as r, normalizeClass as b, createCommentVNode as U, createBlock as E, renderList as he, mergeProps as We, unref as s, createTextVNode as ze, toDisplayString as be, withDirectives as Ke, nextTick as Ge } from "vue";
2
+ import "../../event-bus/index-PQwO5T6B.es.js";
3
+ import { _ as L } from "./EditorButton-Cfew79JD.es.js";
4
+ import { h as qe } from "../../vendor/primevue-DkBtKf1Y.es.js";
5
+ import { u as Je } from "../../vendor/vee-validate-RE5RuswC.es.js";
6
+ import { B as Qe } from "../../vendor/@tiptap/extension-bold-CvAjR8FR.es.js";
7
+ import { B as Xe } from "../../vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js";
8
+ import { C as Ye } from "../../vendor/@tiptap/extension-code-BtAtPCQQ.es.js";
9
+ import { N as Z, m as Ze } from "../../vendor/@tiptap/core-DSbPv8xh.es.js";
10
+ import { F as et } from "../../vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js";
11
+ import { H as tt } from "../../vendor/@tiptap/extension-heading-B6PMnqvS.es.js";
12
+ import { H as at } from "../../vendor/@tiptap/extension-history-DdPDTH0G.es.js";
13
+ import { I as ot } from "../../vendor/@tiptap/extension-image-DCo2JDZp.es.js";
14
+ import { I as lt } from "../../vendor/@tiptap/extension-italic-D09oL4ps.es.js";
15
+ import { L as st } from "../../vendor/@tiptap/extension-link-CV6Fodq9.es.js";
16
+ import { L as it } from "../../vendor/@tiptap/extension-list-item-D8wSpPxS.es.js";
17
+ import { M as nt } from "../../vendor/@tiptap/extension-mention-cFXQdAs7.es.js";
18
+ import { O as rt } from "../../vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js";
19
+ import { P as dt } from "../../vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js";
20
+ import { U as ct } from "../../vendor/@tiptap/extension-underline-DklFOEoR.es.js";
21
+ import { u as ut, E as mt, F as X } from "../../vendor/@tiptap/vue-3-BOfcUn5G.es.js";
22
+ import { c as ye, B as Y, F as pt, d as vt } from "../../async-components/index-C8nb7p3T.es.js";
23
+ import { C as ft } from "./codeSnippetExtension-C-ADHg2S.es.js";
24
+ import { M as gt } from "./mentionSectionExtension-rbWufuMT.es.js";
25
+ import { s as ht } from "./suggestion-mkkpQFP-.es.js";
26
+ import { v as bt } from "../../utils/addAttachment.util-D9sYCBjS.es.js";
27
+ import yt from "../dialog/Dialog-BCcbXSya.es.js";
28
+ import xt from "../fieldwrapper/FieldWrapper-DmOogUM5.es.js";
29
+ import _t from "../icon/Icon-C4kXVcEX.es.js";
30
+ import kt from "../overlaypanel/OverlayPanel-bQbjuUgG.es.js";
31
+ import { _ as Ct } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
32
+ const wt = Z.create({
33
+ name: "doc",
34
+ topNode: !0,
35
+ content: "block+"
36
+ }), At = Z.create({
37
+ name: "paragraph",
38
+ priority: 1e3,
39
+ addOptions() {
40
+ return {
41
+ HTMLAttributes: {}
42
+ };
43
+ },
44
+ group: "block",
45
+ content: "inline*",
46
+ parseHTML() {
47
+ return [
48
+ { tag: "p" }
49
+ ];
50
+ },
51
+ renderHTML({ HTMLAttributes: y }) {
52
+ return ["p", Ze(this.options.HTMLAttributes, y), 0];
53
+ },
54
+ addCommands() {
55
+ return {
56
+ setParagraph: () => ({ commands: y }) => y.setNode(this.name)
57
+ };
58
+ },
59
+ addKeyboardShortcuts() {
60
+ return {
61
+ "Mod-Alt-0": () => this.editor.commands.setParagraph()
62
+ };
63
+ }
64
+ }), Lt = Z.create({
65
+ name: "text",
66
+ group: "inline"
67
+ }), Mt = ["title", "onClick"], It = { class: "!text-[9px] !leading-3 !h-max !font-normal" }, Tt = {
68
+ class: /* @__PURE__ */ b([
69
+ "flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
70
+ "[&_.separator::after]:content-['|']",
71
+ "[&_.separator::after]:text-xl",
72
+ "[&_.separator::after]:font-thin",
73
+ "[&_.separator]:h-6"
74
+ ])
75
+ }, St = {
76
+ class: /* @__PURE__ */ b([
77
+ "flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
78
+ "[&_.separator::after]:content-['|']",
79
+ "[&_.separator::after]:text-xl",
80
+ "[&_.separator::after]:font-thin",
81
+ "[&_.separator]:h-6"
82
+ ])
83
+ }, Bt = /* @__PURE__ */ r("span", { class: "separator" }, null, -1), Ht = /* @__PURE__ */ r("span", { class: "separator" }, null, -1), Pt = /* @__PURE__ */ r("span", { class: "separator" }, null, -1), Ft = { class: "flex flex-col gap-4" }, Nt = { class: "flex gap-2" }, Vt = { class: "flex-1" }, $t = { class: "flex items-end" }, Ut = /* @__PURE__ */ r("p", null, "Baru Saja Ditambahkan", -1), Et = { class: "flex flex-wrap justify-center gap-2" }, Ot = ["src"], Dt = { class: "flex flex-col justify-center w-28 h-28 items-center" }, jt = { class: "relative py-[7px] px-3" }, Rt = /* @__PURE__ */ r("p", null, "Cari Gambar", -1), Wt = {
84
+ class: /* @__PURE__ */ b([
85
+ "flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
86
+ "[&_.separator::after]:content-['|']",
87
+ "[&_.separator::after]:text-xl",
88
+ "[&_.separator::after]:font-thin",
89
+ "[&_.separator]:h-6"
90
+ ])
91
+ }, ka = /* @__PURE__ */ Ee({
92
+ __name: "Editor",
93
+ props: /* @__PURE__ */ ve({
94
+ modelValue: {},
95
+ initialValue: {},
96
+ placeholder: { default: "Tulis" },
97
+ editorState: { default: "editable" },
98
+ borderLess: { type: Boolean, default: !1 },
99
+ label: {},
100
+ useValidator: { type: Boolean },
101
+ fieldName: {},
102
+ labelClass: {},
103
+ fieldInfo: {},
104
+ validatorMessageClass: {},
105
+ validatorMessage: {},
106
+ mandatory: { type: Boolean },
107
+ invalid: { type: Boolean },
108
+ showOptionalText: { type: Boolean, default: void 0 },
109
+ isImageUploadBase64: { type: Boolean, default: !1 },
110
+ fetchMentionSuggestionFunction: {},
111
+ mentionedList: {},
112
+ editorWrapperClass: {},
113
+ toolbarWrapperClass: {},
114
+ contentWrapperClass: {}
115
+ }, {
116
+ modelValue: {},
117
+ modelModifiers: {},
118
+ mentionedList: {},
119
+ mentionedListModifiers: {}
120
+ }),
121
+ emits: /* @__PURE__ */ ve(["update:modelValue", "postImageLocal", "deleteImageLocal", "blur", "focus", "update:mentionedList"], ["update:modelValue", "update:mentionedList"]),
122
+ setup(y, { expose: xe, emit: _e }) {
123
+ const ke = Oe("preset", {}).menu, l = y, B = _e;
124
+ fe(y, "modelValue");
125
+ const Ce = fe(y, "mentionedList");
126
+ De(() => {
127
+ l.useValidator && (Object.assign(
128
+ v,
129
+ Je(
130
+ () => l.fieldName ?? "editorInput",
131
+ (e) => Ge(() => Pe(e))
132
+ )
133
+ ), l.initialValue != null && (v.value = l.initialValue), l.modelValue != null && (v.value = l.modelValue)), Ve();
134
+ });
135
+ const O = h(!1), ee = V(), W = V(), te = V(), H = V([]), z = h(!1), M = h(), P = h(), D = h(), v = je({
136
+ value: l.modelValue
137
+ }), x = h(!1), F = V([]), K = h(), we = J(
138
+ () => {
139
+ var e;
140
+ return l.placeholder ?? "Tulis " + (l.label ? (e = l.label) == null ? void 0 : e.toLowerCase() : "");
141
+ }
142
+ ), a = ut({
143
+ content: l.initialValue ?? l.modelValue,
144
+ onBlur: (e) => B("blur", e),
145
+ onFocus: (e) => B("focus", e),
146
+ onUpdate: () => {
147
+ var e, t;
148
+ B("update:modelValue", ((e = a.value) == null ? void 0 : e.getJSON()) ?? {}), v.value = ((t = a.value) == null ? void 0 : t.getJSON()) ?? {};
149
+ },
150
+ onPaste: async (e) => {
151
+ let t = [];
152
+ const { items: i } = e.clipboardData, o = (n) => new Promise((c) => {
153
+ if (n.kind === "file") {
154
+ const u = n.getAsFile();
155
+ u && t.push(u), c();
156
+ } else
157
+ c();
158
+ });
159
+ await Promise.all(Array.from(i).map(o));
160
+ try {
161
+ if (t.length) {
162
+ const n = t.filter((c) => c.type.startsWith("image/")).filter((c) => bt(c, 10));
163
+ await oe(n);
164
+ }
165
+ } catch (n) {
166
+ console.error("Error pasting images:", n);
167
+ } finally {
168
+ t = [];
169
+ }
170
+ },
171
+ onSelectionUpdate(e) {
172
+ var i;
173
+ const t = e.editor.getAttributes(
174
+ "image"
175
+ );
176
+ (i = a.value) == null || i.state.doc.descendants((o) => {
177
+ o.type.name === "mention" && F.value.push(o.attrs.id);
178
+ }), F.value = Array.from(
179
+ new Set(F.value)
180
+ ), t.title === "localImage" ? P.value = t : P.value = void 0;
181
+ },
182
+ editable: l.editorState === "editable",
183
+ extensions: [
184
+ dt.configure({
185
+ emptyEditorClass: "is-editor-empty !text-general-200 !font-light",
186
+ placeholder: we.value,
187
+ includeChildren: !1
188
+ }),
189
+ wt.extend({
190
+ addKeyboardShortcuts() {
191
+ return {
192
+ "Mod-\\": () => (this.editor.commands.clearNodes(), this.editor.commands.unsetAllMarks())
193
+ };
194
+ }
195
+ }),
196
+ // Blocks
197
+ tt,
198
+ At,
199
+ Lt,
200
+ ot.extend({
201
+ addKeyboardShortcuts() {
202
+ const e = () => {
203
+ const { node: t } = this.editor.state.selection;
204
+ return t && t.type.name === "image" && t.attrs.title === "localImage" ? (le(), !0) : !1;
205
+ };
206
+ return {
207
+ Insert: () => ae(),
208
+ Backspace: e,
209
+ Delete: e
210
+ };
211
+ }
212
+ }).configure({
213
+ HTMLAttributes: {
214
+ class: "w-fit max-h-[300px] object-contain"
215
+ }
216
+ }),
217
+ ft.extend({
218
+ addKeyboardShortcuts() {
219
+ return {
220
+ "Mod-alt-c": se
221
+ };
222
+ }
223
+ }),
224
+ gt,
225
+ rt.configure({
226
+ HTMLAttributes: {
227
+ class: "list-decimal px-3 py-1"
228
+ }
229
+ }),
230
+ Xe.configure({
231
+ HTMLAttributes: {
232
+ class: "list-disc px-3 py-1"
233
+ }
234
+ }),
235
+ it,
236
+ // Marks
237
+ Qe,
238
+ lt,
239
+ ct,
240
+ Ye,
241
+ st.extend({
242
+ addKeyboardShortcuts() {
243
+ return {
244
+ "Mod-k": () => G()
245
+ };
246
+ }
247
+ }).configure({
248
+ openOnClick: !1
249
+ }),
250
+ at,
251
+ nt.configure({
252
+ HTMLAttributes: {
253
+ class: "bg-primary-200 text-primary-800 rounded-[50px] px-1"
254
+ },
255
+ suggestion: {
256
+ items({ query: e }) {
257
+ return ((D == null ? void 0 : D.value) ?? []).filter((t) => t == null ? void 0 : t.fullName.toLowerCase().includes(e.toLowerCase())).map((t) => ({
258
+ id: t == null ? void 0 : t._id,
259
+ label: t == null ? void 0 : t.fullName,
260
+ nickName: t.nickName,
261
+ profilePicture: t.profilePicture
262
+ }));
263
+ },
264
+ ...ht()
265
+ }
266
+ }),
267
+ et
268
+ ]
269
+ }), Ae = J(() => {
270
+ var C, g, w, A, I, T, S, N, R, ne, re, de, ce, ue, me, pe;
271
+ if (!a.value) return [];
272
+ const {
273
+ toggleBold: e,
274
+ focus: t,
275
+ toggleItalic: i,
276
+ toggleUnderline: o,
277
+ toggleBulletList: n,
278
+ toggleCode: c,
279
+ toggleOrderedList: u,
280
+ unsetAllMarks: _,
281
+ clearNodes: k
282
+ } = a.value.commands, f = (C = a.value) == null ? void 0 : C.isActive("code");
283
+ return [
284
+ {
285
+ label: "Aa",
286
+ iconPos: "right",
287
+ icon: "arrow-down",
288
+ class: "!gap-0 !w-[50px] !p-0 !m-0 [&_span]:leading-[22px]",
289
+ onClick: (g = ee.value) == null ? void 0 : g.toggle
290
+ },
291
+ {
292
+ icon: "bold",
293
+ tooltipText: "Bold | Ctrl + B",
294
+ active: (w = a.value) == null ? void 0 : w.isActive("bold"),
295
+ disabled: f,
296
+ onClick: () => {
297
+ t(), e();
298
+ }
299
+ },
300
+ {
301
+ icon: "italic",
302
+ tooltipText: "Italic | Ctrl + I",
303
+ active: (A = a.value) == null ? void 0 : A.isActive("italic"),
304
+ disabled: f,
305
+ onClick: () => {
306
+ t(), i();
307
+ }
308
+ },
309
+ {
310
+ icon: "underline",
311
+ class: "mr-3",
312
+ active: (I = a.value) == null ? void 0 : I.isActive("underline"),
313
+ tooltipText: "Underline | Ctrl + U",
314
+ disabled: f,
315
+ onClick: () => {
316
+ t(), o();
317
+ }
318
+ },
319
+ {
320
+ icon: "list-unordered",
321
+ tooltipText: "Bullet List | Ctrl + 7",
322
+ active: (T = a.value) == null ? void 0 : T.isActive("bullet-list"),
323
+ onClick: () => {
324
+ t(), n();
325
+ }
326
+ },
327
+ {
328
+ icon: "list-ordered",
329
+ tooltipText: "Numbered List | Ctrl + 8",
330
+ active: (S = a.value) == null ? void 0 : S.isActive("ordered-list"),
331
+ class: "mr-3",
332
+ onClick: () => {
333
+ t(), u();
334
+ }
335
+ },
336
+ {
337
+ icon: "link-m",
338
+ tooltipText: "Link | Ctrl + K",
339
+ disabled: ((N = a.value) == null ? void 0 : N.isActive("link")) || O.value,
340
+ onClick: G
341
+ },
342
+ {
343
+ icon: "image-add",
344
+ active: (R = a.value) == null ? void 0 : R.isActive("image"),
345
+ tooltipText: "Image | Insert",
346
+ onClick: () => ae()
347
+ },
348
+ {
349
+ icon: "code-line",
350
+ active: (ne = a.value) == null ? void 0 : ne.isActive("code"),
351
+ tooltipText: "Inline Code | Ctrl + E",
352
+ onClick: () => {
353
+ t(), c();
354
+ }
355
+ },
356
+ {
357
+ icon: "code-box-line",
358
+ active: (re = a.value) == null ? void 0 : re.isActive("codeSnippet"),
359
+ tooltipText: "Code Block | Ctrl + Alt + C",
360
+ onClick: () => {
361
+ se();
362
+ }
363
+ },
364
+ {
365
+ icon: "format-clear",
366
+ tooltipText: "Clear Formatting Ctrl + \\",
367
+ disabled: !((de = a.value) != null && de.isActive("bold")) && !((ce = a.value) != null && ce.isActive("underline")) && !((ue = a.value) != null && ue.isActive("italic")) && !((me = a.value) != null && me.isActive("code")) && !((pe = a.value) != null && pe.isActive("heading")),
368
+ onClick: () => {
369
+ t(), k(), _();
370
+ }
371
+ }
372
+ ];
373
+ }), Le = h([
374
+ {
375
+ label: "Paragraf",
376
+ class: "p",
377
+ shortCut: "Ctrl+Alt+P",
378
+ command: () => {
379
+ var e, t;
380
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setParagraph();
381
+ }
382
+ },
383
+ {
384
+ label: "Heading 1",
385
+ class: "heading-1",
386
+ shortCut: "Ctrl+Alt+1",
387
+ command: () => {
388
+ var e, t;
389
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 1 });
390
+ }
391
+ },
392
+ {
393
+ label: "Heading 2",
394
+ class: "heading-2",
395
+ shortCut: "Ctrl+Alt+2",
396
+ command: () => {
397
+ var e, t;
398
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 2 });
399
+ }
400
+ },
401
+ {
402
+ class: "heading-3",
403
+ label: "Heading 3",
404
+ shortCut: "Ctrl+Alt+3",
405
+ command: () => {
406
+ var e, t;
407
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 3 });
408
+ }
409
+ },
410
+ {
411
+ label: "Heading 4",
412
+ class: "heading-4",
413
+ shortCut: "Ctrl+Alt+4",
414
+ command: () => {
415
+ var e, t;
416
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 4 });
417
+ }
418
+ },
419
+ {
420
+ label: "Heading 5",
421
+ class: "heading-5",
422
+ shortCut: "Ctrl+Alt+5",
423
+ command: () => {
424
+ var e, t;
425
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 5 });
426
+ }
427
+ },
428
+ {
429
+ label: "Heading 6",
430
+ class: "heading-6",
431
+ shortCut: "Ctrl+Alt+6",
432
+ command: () => {
433
+ var e, t;
434
+ (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 6 });
435
+ }
436
+ }
437
+ ]), j = J(() => {
438
+ var e;
439
+ return (e = a.value) == null ? void 0 : e.getAttributes("link");
440
+ }), Me = () => {
441
+ var i;
442
+ const { href: e } = j.value, t = (i = a.value) == null ? void 0 : i.view.dom.querySelector(`[href="${e}"]`);
443
+ return Be() || t && (t == null ? void 0 : t.textContent) !== e && t.textContent || void 0;
444
+ }, Ie = () => {
445
+ var e;
446
+ window.open((e = j.value) == null ? void 0 : e.href, "_blank");
447
+ }, Te = () => {
448
+ var e;
449
+ window.navigator.clipboard.writeText((e = j.value) == null ? void 0 : e.href);
450
+ }, Se = () => {
451
+ var e;
452
+ if (a.value) {
453
+ const { unsetLink: t, focus: i } = ((e = a.value) == null ? void 0 : e.commands) ?? {};
454
+ i(), t();
455
+ }
456
+ }, Be = () => {
457
+ if (a.value) {
458
+ const { state: e } = a.value, { from: t, to: i } = e.selection;
459
+ return e == null ? void 0 : e.doc.textBetween(t, i, " ");
460
+ }
461
+ }, ae = () => (z.value = !0, !1), oe = async (e) => {
462
+ if (l.isImageUploadBase64) {
463
+ const t = await Ne(e[0]);
464
+ q(t);
465
+ } else
466
+ B("postImageLocal", {
467
+ image: e[0],
468
+ setImageCb: q
469
+ });
470
+ }, He = (e) => {
471
+ const { files: t } = e.target;
472
+ oe(t);
473
+ }, Pe = (e = {}) => {
474
+ if (typeof l.validatorMessage == "string" && l.invalid)
475
+ return l.validatorMessage;
476
+ if (typeof l.validatorMessage != "string") {
477
+ const { empty: t } = l.validatorMessage ?? {};
478
+ if (e.content === void 0 && l.mandatory && t)
479
+ return t ?? !0;
480
+ }
481
+ return !0;
482
+ }, G = (e) => {
483
+ var o, n, c, u;
484
+ const t = e ?? {
485
+ currentTarget: (n = (o = te.value) == null ? void 0 : o.querySelector(".ic-link-m")) == null ? void 0 : n.closest("button")
486
+ }, { dom: i } = ((c = a.value) == null ? void 0 : c.view) ?? {};
487
+ return (u = W.value) == null || u.toggle(t, i), !0;
488
+ }, Fe = ({ formValues: e }) => {
489
+ var _, k;
490
+ if (!a.value) return !1;
491
+ const { setLink: t, insertContent: i, focus: o } = a.value.commands, { url: n, text: c } = e, { state: u } = a.value;
492
+ return o(), t({
493
+ href: n,
494
+ target: "_blank",
495
+ rel: "nofollow"
496
+ }), (_ = a.value) != null && _.isActive("link") ? a.value.chain().focus().command(({ tr: f, state: C }) => {
497
+ const { $from: g, $to: w } = C.selection, A = u.schema.marks.link;
498
+ let I = g.start(), T = w.end();
499
+ return u.doc.nodesBetween(g.pos, w.pos, (S, N) => {
500
+ S.isText && S.marks.some((R) => R.type === A) && (I = Math.min(I, N), T = Math.max(T, N + S.nodeSize));
501
+ }), f.insertText(c || n, I, T), !0;
502
+ }).run() : u.selection.empty && i(c || n), (k = W.value) == null || k.hide(), O.value = !1, !0;
503
+ }, q = (e) => {
504
+ var t, i, o, n;
505
+ (t = a.value) == null || t.commands.focus(), e && (l.isImageUploadBase64 ? (i = a.value) == null || i.commands.setImage({
506
+ src: e,
507
+ title: "localImageBase64"
508
+ }) : (o = a.value) == null || o.commands.setImage({ src: e, title: "localImage" }), H.value = Array.from(
509
+ /* @__PURE__ */ new Set([...H.value, e])
510
+ )), M.value && ((n = a.value) == null || n.commands.setImage({ src: M.value }), H.value = Array.from(
511
+ /* @__PURE__ */ new Set([...H.value, M.value])
512
+ )), M.value = void 0, ie();
513
+ }, le = () => {
514
+ var e;
515
+ P.value && P.value.title === "localImage" && B("deleteImageLocal", P.value), (e = a.value) == null || e.commands.deleteSelection();
516
+ }, Ne = (e) => new Promise((t, i) => {
517
+ const o = new FileReader();
518
+ o.readAsDataURL(e), o.onload = () => {
519
+ t(o.result);
520
+ }, o.onerror = (n) => {
521
+ i(n);
522
+ };
523
+ }), Ve = async () => {
524
+ if (l.fetchMentionSuggestionFunction) {
525
+ x.value = !x.value;
526
+ try {
527
+ const { data: e } = await l.fetchMentionSuggestionFunction() ?? {};
528
+ D.value = e, x.value = !x.value;
529
+ } catch (e) {
530
+ console.error(e);
531
+ }
532
+ }
533
+ }, se = () => {
534
+ var i, o;
535
+ const { insertCodeSnippet: e, deleteCodeSnippet: t } = (i = a.value) == null ? void 0 : i.commands;
536
+ return (o = a.value) != null && o.isActive("codeSnippet") ? t() : e(), !1;
537
+ }, ie = () => {
538
+ a.value.commands.createParagraphNear();
539
+ }, $e = (e) => {
540
+ var t;
541
+ try {
542
+ const { insertMentionSection: i } = (t = a.value) == null ? void 0 : t.commands;
543
+ i(e), K.value !== e && K.value !== void 0 && Ue(), K.value = e;
544
+ } catch (i) {
545
+ console.error(i);
546
+ }
547
+ }, Ue = () => {
548
+ x.value = !0, setTimeout(() => {
549
+ x.value = !1;
550
+ }, 100);
551
+ };
552
+ return xe({
553
+ mentionSectionTrigger: $e
554
+ }), ge(
555
+ () => l.invalid,
556
+ () => {
557
+ var e;
558
+ (e = v.validate) == null || e.call(v);
559
+ }
560
+ ), ge(F, () => {
561
+ Ce.value = F.value;
562
+ }), (e, t) => {
563
+ const i = Re("focus");
564
+ return m(), $(Q, null, [
565
+ d(xt, {
566
+ info: e.fieldInfo,
567
+ label: l.label,
568
+ "label-class": l.labelClass,
569
+ mandatory: l.mandatory,
570
+ "show-optional-text": l.showOptionalText
571
+ }, {
572
+ default: p(() => [
573
+ r("div", {
574
+ ref_key: "root",
575
+ ref: te,
576
+ class: b([
577
+ "rounded-b text-grayscale-900 w-full",
578
+ "[&:has(:focus)]:border-general-200 border-general-100",
579
+ `${e.borderLess || e.editorState === "readonly" ? "border-none" : "border-[0.5px]"}`,
580
+ // Inline Code
581
+ "[&_code]:bg-primary-100",
582
+ "[&_code]:rounded-md",
583
+ "[&_code]:p-[0.25em_0.3em]",
584
+ "[&_code]:text-[0.85rem]",
585
+ "[&_code]:!font-source-code-pro",
586
+ `${l.editorWrapperClass}`
587
+ ]),
588
+ "data-wv-name": "editor"
589
+ }, [
590
+ l.editorState === "editable" ? (m(), $("div", {
591
+ key: 0,
592
+ class: b([
593
+ "border-b-[0.5px] border-inherit px-3 py-1 flex gap-1 bg-general-50",
594
+ `${l.toolbarWrapperClass}`
595
+ ]),
596
+ "data-wv-section": "toolbar"
597
+ }, [
598
+ (m(!0), $(Q, null, he(Ae.value, (o) => (m(), E(L, We({ ref_for: !0 }, o, {
599
+ key: o.icon,
600
+ class: [{ "!bg-primary-50 ": o.active }, o.class]
601
+ }), null, 16, ["class"]))), 128))
602
+ ], 2)) : U("", !0),
603
+ x.value ? U("", !0) : (m(), E(s(mt), {
604
+ key: 1,
605
+ class: b([
606
+ `${l.editorState === "editable" ? "px-3 py-2" : ""} [&_*]:outline-none`,
607
+ "[&_.is-editor-empty:first-child::before]:text-general-200",
608
+ "[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
609
+ "[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
610
+ "[&_.is-editor-empty:first-child::before]:font-normal",
611
+ "[&_.is-editor-empty:first-child::before]:pointer-events-none",
612
+ "[&_.is-editor-empty:first-child::before]:float-left",
613
+ "[&_.is-editor-empty:first-child::before]:h-0",
614
+ // Anchor
615
+ "[&_a]:hover:underline transition-transform duration-75",
616
+ "[&_a]:text-link",
617
+ "[&_a]:cursor-pointer",
618
+ // Bold
619
+ "[&_b]:font-bold",
620
+ "[&_strong]:font-bold",
621
+ // Image
622
+ "[&_img.ProseMirror-selectednode]:!outline-[0.5px]",
623
+ "[&_img.ProseMirror-selectednode]:!outline-link",
624
+ "[&_img.ProseMirror-selectednode]:!outline-offset-1",
625
+ "[&_img.ProseMirror-selectednode]:!rounded-sm",
626
+ "[&_img]:my-2",
627
+ // Inline Code
628
+ "[&_*:has(code)]:my-[0.25rem]",
629
+ `${l.contentWrapperClass}`
630
+ ]),
631
+ editor: s(a),
632
+ spellcheck: "false"
633
+ }, null, 8, ["class", "editor"])),
634
+ d(s(qe), {
635
+ ref_key: "headingMenu",
636
+ ref: ee,
637
+ model: Le.value,
638
+ popup: ""
639
+ }, {
640
+ item: p(({ item: o }) => {
641
+ var n, c, u, _, k, f, C, g;
642
+ return [
643
+ r("a", {
644
+ class: b([
645
+ ...(n = s(ke)) == null ? void 0 : n.action.class,
646
+ o.class,
647
+ "flex items-center !justify-between h-[30px]",
648
+ {
649
+ "bg-primary-50": ((c = s(a)) == null ? void 0 : c.isActive("heading", { level: 1 })) && o.label === "Heading 1" || ((u = s(a)) == null ? void 0 : u.isActive("heading", { level: 2 })) && o.label === "Heading 2" || ((_ = s(a)) == null ? void 0 : _.isActive("heading", { level: 3 })) && o.label === "Heading 3" || ((k = s(a)) == null ? void 0 : k.isActive("heading", { level: 4 })) && o.label === "Heading 4" || ((f = s(a)) == null ? void 0 : f.isActive("heading", { level: 5 })) && o.label === "Heading 5" || ((C = s(a)) == null ? void 0 : C.isActive("heading", { level: 6 })) && o.label === "Heading 6" || ((g = s(a)) == null ? void 0 : g.isActive("paragraph")) && o.label === "Paragraf"
650
+ }
651
+ ]),
652
+ title: o.label,
653
+ onClick: (w) => {
654
+ var A;
655
+ return (A = o.command) == null ? void 0 : A.call(o, { item: o, originalEvent: w });
656
+ }
657
+ }, [
658
+ ze(be(o.label) + " ", 1),
659
+ r("code", It, be(o.shortCut), 1)
660
+ ], 10, Mt)
661
+ ];
662
+ }),
663
+ _: 1
664
+ }, 8, ["model"]),
665
+ s(a) && l.editorState === "editable" ? (m(), E(s(X), {
666
+ key: 2,
667
+ editor: s(a),
668
+ "should-show": () => {
669
+ var o, n;
670
+ return ((o = s(a)) == null ? void 0 : o.isActive("codeSnippet")) || ((n = s(a)) == null ? void 0 : n.isActive("mentionSection"));
671
+ },
672
+ "tippy-options": { placement: "top", zIndex: 9 },
673
+ class: "-mt-1.5 shadow-panel",
674
+ "plugin-key": "editLinkToolbar"
675
+ }, {
676
+ default: p(() => [
677
+ r("div", Tt, [
678
+ d(L, {
679
+ onClick: ie,
680
+ icon: "close",
681
+ severity: "secondary",
682
+ text: "",
683
+ "tooltip-text": "Buat text baru dibawah"
684
+ })
685
+ ])
686
+ ]),
687
+ _: 1
688
+ }, 8, ["editor", "should-show"])) : U("", !0),
689
+ s(a) && !O.value && l.editorState === "editable" ? (m(), E(s(X), {
690
+ key: 3,
691
+ editor: s(a),
692
+ "should-show": () => {
693
+ var o;
694
+ return (o = s(a)) == null ? void 0 : o.isActive("link");
695
+ },
696
+ "tippy-options": { placement: "bottom", zIndex: 9 },
697
+ class: "-mt-1.5 shadow-panel",
698
+ "plugin-key": "editLinkToolbar"
699
+ }, {
700
+ default: p(() => [
701
+ r("div", St, [
702
+ d(L, {
703
+ onClick: G,
704
+ class: "!w-max",
705
+ label: "Edit Tautan",
706
+ severity: "secondary",
707
+ text: ""
708
+ }),
709
+ Bt,
710
+ d(L, {
711
+ onClick: Ie,
712
+ icon: "external-link",
713
+ severity: "secondary",
714
+ text: "",
715
+ "tooltip-text": "Buka di tab baru"
716
+ }),
717
+ Ht,
718
+ d(L, {
719
+ onClick: Se,
720
+ icon: "link-unlink-m",
721
+ severity: "secondary",
722
+ text: "",
723
+ "tooltip-text": "Lepas tautan"
724
+ }),
725
+ Pt,
726
+ d(L, {
727
+ onClick: Te,
728
+ icon: "file-copy",
729
+ severity: "secondary",
730
+ text: "",
731
+ "tooltip-text": "Salin tautan"
732
+ })
733
+ ])
734
+ ]),
735
+ _: 1
736
+ }, 8, ["editor", "should-show"])) : U("", !0),
737
+ d(yt, {
738
+ visible: z.value,
739
+ "onUpdate:visible": t[2] || (t[2] = (o) => z.value = o),
740
+ class: "w-[400px]",
741
+ header: "Pilih Gambar"
742
+ }, {
743
+ default: p(() => [
744
+ r("div", Ft, [
745
+ r("div", Nt, [
746
+ r("div", Vt, [
747
+ d(s(ye), {
748
+ "model-value": M.value,
749
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => M.value = o),
750
+ class: "w-[269px]",
751
+ label: "URL Gambar"
752
+ }, null, 8, ["model-value"])
753
+ ]),
754
+ r("div", $t, [
755
+ d(s(Y), {
756
+ onClick: t[1] || (t[1] = (o) => q()),
757
+ label: "Simpan",
758
+ severity: "secondary"
759
+ })
760
+ ])
761
+ ]),
762
+ r("div", null, [
763
+ Ut,
764
+ r("div", Et, [
765
+ (m(!0), $(Q, null, he(H.value, (o, n) => (m(), $("img", {
766
+ key: n,
767
+ src: o,
768
+ alt: "preview",
769
+ class: "w-28 h-28 object-scale-down rounded-lg"
770
+ }, null, 8, Ot))), 128)),
771
+ r("div", Dt, [
772
+ d(_t, {
773
+ class: "!w-[70px] !h-[70px]",
774
+ icon: "upload-2",
775
+ severity: "primary"
776
+ }),
777
+ d(s(Y), { severity: "secondary" }, {
778
+ default: p(() => [
779
+ r("div", jt, [
780
+ Rt,
781
+ r("input", {
782
+ onChange: He,
783
+ class: "opacity-0 absolute top-0 bottom-0 left-0 right-0",
784
+ type: "file"
785
+ }, null, 32)
786
+ ])
787
+ ]),
788
+ _: 1
789
+ })
790
+ ])
791
+ ])
792
+ ])
793
+ ])
794
+ ]),
795
+ _: 1
796
+ }, 8, ["visible"]),
797
+ s(a) && l.editorState === "editable" ? (m(), E(s(X), {
798
+ key: 4,
799
+ editor: s(a),
800
+ "should-show": () => {
801
+ var o;
802
+ return !!((o = s(a)) != null && o.isActive("image"));
803
+ },
804
+ "tippy-options": { placement: "top", zIndex: 9 },
805
+ class: "-mt-1.5 shadow-panel",
806
+ "plugin-key": "editImageToolbar"
807
+ }, {
808
+ default: p(() => [
809
+ r("div", Wt, [
810
+ d(L, {
811
+ onClick: le,
812
+ icon: "delete-bin",
813
+ severity: "secondary",
814
+ text: "",
815
+ "tooltip-text": "Unset Image"
816
+ })
817
+ ])
818
+ ]),
819
+ _: 1
820
+ }, 8, ["editor", "should-show"])) : U("", !0)
821
+ ], 2),
822
+ d(Ct, {
823
+ class: b(e.validatorMessageClass),
824
+ message: v.errorMessage
825
+ }, null, 8, ["class", "message"])
826
+ ]),
827
+ _: 1
828
+ }, 8, ["info", "label", "label-class", "mandatory", "show-optional-text"]),
829
+ d(kt, {
830
+ ref_key: "editLinkOverlay",
831
+ ref: W,
832
+ pt: {
833
+ content: {
834
+ class: ""
835
+ }
836
+ },
837
+ onHide: t[3] || (t[3] = (o) => O.value = !1),
838
+ "append-to": "self",
839
+ class: "w-[342px] bg-white p-4"
840
+ }, {
841
+ default: p(() => [
842
+ d(s(pt), {
843
+ onSubmit: Fe,
844
+ class: "!gap-0",
845
+ "hide-stay-checkbox": ""
846
+ }, {
847
+ fields: p(() => {
848
+ var o, n;
849
+ return [
850
+ Ke(d(s(ye), {
851
+ "validator-message": { empty: "Masukan tautan yang valid" },
852
+ value: (o = j.value) == null ? void 0 : o.href,
853
+ "field-name": "url",
854
+ label: "Tempel Tautan",
855
+ mandatory: "",
856
+ placeholder: "Tempel tautan baru",
857
+ "use-validator": ""
858
+ }, null, 8, ["value"]), [
859
+ [i]
860
+ ]),
861
+ d(s(vt), {
862
+ value: Me(),
863
+ "field-name": "text",
864
+ label: "Teks Tampilan",
865
+ placeholder: "Teks untuk ditampilkan",
866
+ "use-validator": ""
867
+ }, null, 8, ["value"]),
868
+ d(s(Y), {
869
+ label: (n = s(a)) != null && n.isActive("link") ? "Simpan" : "Tambahkan",
870
+ class: "w-max ml-auto",
871
+ severity: "secondary",
872
+ type: "submit"
873
+ }, null, 8, ["label"])
874
+ ];
875
+ }),
876
+ _: 1
877
+ })
878
+ ]),
879
+ _: 1
880
+ }, 512)
881
+ ], 64);
882
+ };
883
+ }
884
+ });
885
+ export {
886
+ ka as default
887
+ };