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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
  2. package/components/index.d.ts +1 -0
  3. package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
  4. package/event-bus/index.d.ts +3 -0
  5. package/loading-page-BrQattYE.js +1 -0
  6. package/loading-page-CoC9UhfC.js +4 -0
  7. package/loading-page-DbLuqCHa.js +1 -0
  8. package/loading-page-f8D03l3G.js +4 -0
  9. package/loading-plane-CgfbWppy.js +1 -0
  10. package/loading-plane-CoXtqoc9.js +4 -0
  11. package/loading-table-Bdr9ZhtP.js +1 -0
  12. package/loading-table-ByUoWqUo.js +4 -0
  13. package/loading-table-BygEMzFM.js +4 -0
  14. package/loading-table-BzrSQlA0.js +1 -0
  15. package/loading-table-D9bw9OcI.js +4 -0
  16. package/loading-table-chOgXi94.js +1 -0
  17. package/no-data-CTKux8RI.js +4 -0
  18. package/no-data-Cgze_Rvp.js +1 -0
  19. package/{assets/lottiejs/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
  20. package/no-data-Dep79CBh.js +1 -0
  21. package/no-data-g0dJCy2p.js +4 -0
  22. package/no-data-y1X5WtcQ.js +1 -0
  23. package/package.json +3 -3
  24. package/stats.html +1 -1
  25. package/style.css +1 -1
  26. package/wangsvue-fats.js +51885 -346
  27. package/wangsvue-fats.system.js +312 -1
  28. package/assets/lottiejs/loading-page-B9ooQcfF.system.js +0 -1
  29. package/assets/lottiejs/loading-page-CQ0mKER2.es.js +0 -15
  30. package/assets/lottiejs/loading-table-B4T3FYiI.system.js +0 -1
  31. package/assets/lottiejs/loading-table-BnpbX8Ew.es.js +0 -15
  32. package/assets/lottiejs/no-data-CMWnya_k.system.js +0 -1
  33. package/components/animation/Animation-6756VN9N.system.js +0 -1
  34. package/components/animation/Animation-COWVilAA.es.js +0 -428
  35. package/components/approverinfo/ApproverInfo-BdqBpNjY.system.js +0 -1
  36. package/components/approverinfo/ApproverInfo-C3_ibV8c.es.js +0 -321
  37. package/components/assetinfo/AssetInfo-BBgKToRP.system.js +0 -1
  38. package/components/assetinfo/AssetInfo-CmwgOU74.es.js +0 -298
  39. package/components/backgroundimagecropper/BackgroundImageCropper-DFHtaSyE.system.js +0 -1
  40. package/components/backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js +0 -57
  41. package/components/badge/Badge-CndPv5v9.system.js +0 -1
  42. package/components/badge/Badge-DA-XiE1C.es.js +0 -115
  43. package/components/badgegroup/BadgeGroup-Bj0EjoML.es.js +0 -68
  44. package/components/badgegroup/BadgeGroup-Y-HhiHk8.system.js +0 -1
  45. package/components/basecalendar/BaseCalendar-47ahYXrt.es.js +0 -867
  46. package/components/basecalendar/BaseCalendar-Ce46jOkg.system.js +0 -1
  47. package/components/basetree/BaseTree-DDu1qI7t.system.js +0 -1
  48. package/components/basetree/BaseTree-DLSA5FMh.es.js +0 -167
  49. package/components/breadcrumb/Breadcrumb-B5bAijry.system.js +0 -1
  50. package/components/breadcrumb/Breadcrumb-BWSmLPqn.es.js +0 -46
  51. package/components/button/Button-D-MSv_AS.es.js +0 -120
  52. package/components/button/Button-Okx1_kOu.system.js +0 -1
  53. package/components/buttonbulkaction/ButtonBulkAction-B4RcdWmb.es.js +0 -185
  54. package/components/buttonbulkaction/ButtonBulkAction-DLmvicRL.system.js +0 -1
  55. package/components/buttoncopy/ButtonCopy-BZgQAFOM.es.js +0 -31
  56. package/components/buttoncopy/ButtonCopy-CKi1bBpz.system.js +0 -1
  57. package/components/buttondownload/ButtonDownload-Bw9T3mbW.es.js +0 -92
  58. package/components/buttondownload/ButtonDownload-CpA0ryUT.system.js +0 -1
  59. package/components/buttonfilter/ButtonFilter-BIE-jM2i.es.js +0 -28
  60. package/components/buttonfilter/ButtonFilter-C4WRvUrj.system.js +0 -1
  61. package/components/buttonradio/ButtonRadio-5VUY8o5h.es.js +0 -83
  62. package/components/buttonradio/ButtonRadio-B2wWrgB5.system.js +0 -1
  63. package/components/buttonscan/ButtonScan-BCScT2cx.es.js +0 -421
  64. package/components/buttonscan/ButtonScan-TbyhlW5M.system.js +0 -1
  65. package/components/buttonsearch/ButtonSearch-Clbafqts.es.js +0 -70
  66. package/components/buttonsearch/ButtonSearch-e57pD5r3.system.js +0 -1
  67. package/components/buttonselecttree/ButtonSelectTree-B-_Iw5sB.es.js +0 -218
  68. package/components/buttonselecttree/ButtonSelectTree-Cbq1oeVK.system.js +0 -1
  69. package/components/buttonselectuser/ButtonSelectUser-Ar7Y8tVR.es.js +0 -101
  70. package/components/buttonselectuser/ButtonSelectUser-Cfe6m75Z.system.js +0 -1
  71. package/components/buttonsync/ButtonSync-Bc1GZXT6.es.js +0 -29
  72. package/components/buttonsync/ButtonSync-ClllEdAy.system.js +0 -1
  73. package/components/buttontoggle/ButtonToggle-DIy3M8Pz.es.js +0 -11
  74. package/components/buttontoggle/ButtonToggle-VNp0lbcW.system.js +0 -1
  75. package/components/buttonviewlog/ButtonViewLog-Ct8QwEey.system.js +0 -1
  76. package/components/buttonviewlog/ButtonViewLog-h9uVv5A5.es.js +0 -21
  77. package/components/calendar/Calendar-7yBKZsvj.system.js +0 -1
  78. package/components/calendar/Calendar-Df6CnW-l.es.js +0 -112
  79. package/components/card/Card-BUKU2FcT.system.js +0 -1
  80. package/components/card/Card-CwnxKNdM.es.js +0 -47
  81. package/components/checkbox/Checkbox-CCtItmVW.system.js +0 -1
  82. package/components/checkbox/Checkbox-DdsR222S.es.js +0 -135
  83. package/components/codesnippet/CodeSnippet-Bpps-Iyc.es.js +0 -127
  84. package/components/codesnippet/CodeSnippet-DvTtZ28b.system.js +0 -2
  85. package/components/codesnippetadapter/CodeSnippetAdapter-BtSqWBl1.system.js +0 -1
  86. package/components/codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js +0 -26
  87. package/components/columnlist/ColumnList-Bh3LZlOa.system.js +0 -1
  88. package/components/columnlist/ColumnList-Bp7soiys.es.js +0 -204
  89. package/components/customcolumn/CustomColumn-CVhAbTGn.system.js +0 -1
  90. package/components/customcolumn/CustomColumn-Dblxjw_0.es.js +0 -138
  91. package/components/datatable/DataTable--mHUKNUr.system.js +0 -1
  92. package/components/datatable/DataTable-J1j-OKsW.es.js +0 -983
  93. package/components/dialog/Dialog-Dy93f91f.es.js +0 -121
  94. package/components/dialog/Dialog-WEl66uTI.system.js +0 -1
  95. package/components/dialogconfirm/DialogConfirm-BOFb7rJD.es.js +0 -139
  96. package/components/dialogconfirm/DialogConfirm-o7_v7F31.system.js +0 -1
  97. package/components/dialogform/DialogForm-C15nC1wH.es.js +0 -223
  98. package/components/dialogform/DialogForm-CdpY1_-F.system.js +0 -1
  99. package/components/dialogselecttree/DialogSelectTree-BA8xEqco.es.js +0 -268
  100. package/components/dialogselecttree/DialogSelectTree-DKxWI9Re.system.js +0 -1
  101. package/components/dialogselectuser/DialogSelectUser-BZTSktHZ.system.js +0 -1
  102. package/components/dialogselectuser/DialogSelectUser-Bu5TDAPt.es.js +0 -186
  103. package/components/dialogselectuserfilter/DialogSelectUserFilter-DEl4zFaX.system.js +0 -1
  104. package/components/dialogselectuserfilter/DialogSelectUserFilter-Dz5OxAU-.es.js +0 -40
  105. package/components/dropdown/Dropdown-D4S52rW5.es.js +0 -252
  106. package/components/dropdown/Dropdown-DuvNYyq0.system.js +0 -1
  107. package/components/editor/Editor-DQ7Xdy30.es.js +0 -1036
  108. package/components/editor/Editor-IfYw2Tps.system.js +0 -1
  109. package/components/editorbutton/EditorButton-DDgS2vga.es.js +0 -28
  110. package/components/editorbutton/EditorButton-DmVrr4Bk.system.js +0 -1
  111. package/components/fieldwrapper/FieldWrapper-C6HJ2HnC.es.js +0 -34
  112. package/components/fieldwrapper/FieldWrapper-DFjw9hA8.system.js +0 -1
  113. package/components/fileupload/FileUpload-B6PAucnD.es.js +0 -175
  114. package/components/fileupload/FileUpload-iVAJXujV.system.js +0 -1
  115. package/components/filtercontainer/FilterContainer-CuMaq5Sv.es.js +0 -284
  116. package/components/filtercontainer/FilterContainer-DUeVLHgZ.system.js +0 -1
  117. package/components/form/Form-D-e0VI8V.system.js +0 -1
  118. package/components/form/Form-eSj-nb1y.es.js +0 -181
  119. package/components/hardwaresync/HardwareSync--HomfQuH.system.js +0 -1
  120. package/components/hardwaresync/HardwareSync-DUsVwHx1.es.js +0 -236
  121. package/components/icon/Icon-DUylRmY4.system.js +0 -1
  122. package/components/icon/Icon-mDqG7urn.es.js +0 -82
  123. package/components/image/Image-BZ31CL-y.es.js +0 -169
  124. package/components/image/Image-DX6uB7Ns.system.js +0 -1
  125. package/components/imagecompressor/ImageCompressor-BLeJDvN3.system.js +0 -1
  126. package/components/imagecompressor/ImageCompressor-DaW0ak9c.es.js +0 -501
  127. package/components/imageinputinfo/ImageInputInfo-C5F14hbF.system.js +0 -1
  128. package/components/imageinputinfo/ImageInputInfo-oTtVBxzO.es.js +0 -46
  129. package/components/inlinemessage/InlineMessage-19w6FOcP.system.js +0 -1
  130. package/components/inlinemessage/InlineMessage-CBZT3jWS.es.js +0 -94
  131. package/components/inputbadge/InputBadge-CsdT7M7-.es.js +0 -186
  132. package/components/inputbadge/InputBadge-dgANMV70.system.js +0 -1
  133. package/components/inputcurrency/InputCurrency-B96npK8W.es.js +0 -1208
  134. package/components/inputcurrency/InputCurrency-ChqGX5L8.system.js +0 -1
  135. package/components/inputemail/InputEmail-BMzumenA.es.js +0 -49
  136. package/components/inputemail/InputEmail-CYILS9bp.system.js +0 -1
  137. package/components/inputgroup/InputGroup-G9TEI4vX.system.js +0 -1
  138. package/components/inputgroup/InputGroup-eNDRlJ5R.es.js +0 -56
  139. package/components/inputnumber/InputNumber-Bzk_YzWM.es.js +0 -232
  140. package/components/inputnumber/InputNumber-CRyg8Xw_.system.js +0 -1
  141. package/components/inputpassword/InputPassword-BMHMWLgU.es.js +0 -121
  142. package/components/inputpassword/InputPassword-BjB6FsoL.system.js +0 -1
  143. package/components/inputphonenumber/InputPhoneNumber-CVM2oK5q.es.js +0 -591
  144. package/components/inputphonenumber/InputPhoneNumber-DIbd3upL.system.js +0 -1
  145. package/components/inputrangenumber/InputRangeNumber-B1aAoKVj.es.js +0 -134
  146. package/components/inputrangenumber/InputRangeNumber-C28xgFBY.system.js +0 -1
  147. package/components/inputsearch/InputSearch--KHwTBTm.system.js +0 -1
  148. package/components/inputsearch/InputSearch-cPq3vqhy.es.js +0 -53
  149. package/components/inputtext/InputText-93zDNfC3.system.js +0 -1
  150. package/components/inputtext/InputText-_xEnXysf.es.js +0 -241
  151. package/components/inputurl/InputURL-aqx1PVKL.es.js +0 -61
  152. package/components/inputurl/InputURL-kWIiKGEG.system.js +0 -1
  153. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
  154. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
  155. package/components/litedropdown/LiteDropdown-3KsCx4wX.system.js +0 -1
  156. package/components/litedropdown/LiteDropdown-DcSzP11l.es.js +0 -102
  157. package/components/loading/Loading-D8M801C9.es.js +0 -24
  158. package/components/loading/Loading-Diwog8dc.system.js +0 -1
  159. package/components/mentionlist/MentionList--7AymnhE.es.js +0 -58
  160. package/components/mentionlist/MentionList-600dsWhX.system.js +0 -1
  161. package/components/mentionsection/MentionSection-C1gWOzH2.system.js +0 -3
  162. package/components/mentionsection/MentionSection-C_c4qbpq.es.js +0 -52
  163. package/components/menu/Menu-BmTMFwBD.es.js +0 -73
  164. package/components/menu/Menu-OR25pAK3.system.js +0 -1
  165. package/components/menuitem/MenuItem-LoZMc0T9.es.js +0 -65
  166. package/components/menuitem/MenuItem-imQ-hYTP.system.js +0 -1
  167. package/components/multirow/MultiRow-ClSMxrEx.es.js +0 -52
  168. package/components/multirow/MultiRow-DKu6uIsI.system.js +0 -1
  169. package/components/multiselect/MultiSelect-DGhS1EyX.es.js +0 -189
  170. package/components/multiselect/MultiSelect-DKFYq47E.system.js +0 -1
  171. package/components/overlaypanel/OverlayPanel-C_WCcNPw.system.js +0 -1
  172. package/components/overlaypanel/OverlayPanel-DXNek7Yb.es.js +0 -49
  173. package/components/tabmenu/TabMenu-CAQqu-ff.system.js +0 -1
  174. package/components/tabmenu/TabMenu-iMeZa8gy.es.js +0 -108
  175. package/components/tagtype/TagType-CX7BVRrE.es.js +0 -49
  176. package/components/tagtype/TagType-IMYg8AJf.system.js +0 -1
  177. package/components/textarea/Textarea-ClnQ2qmf.es.js +0 -108
  178. package/components/textarea/Textarea-DlkzVURV.system.js +0 -1
  179. package/components/timeline/Timeline-BMRdV_mH.es.js +0 -120
  180. package/components/timeline/Timeline-D7SYc3QX.system.js +0 -1
  181. package/components/timelinecontentbytype/TimelineContentByType-BmWsZID0.system.js +0 -1
  182. package/components/timelinecontentbytype/TimelineContentByType-ehFLzTA1.es.js +0 -111
  183. package/components/toast/Toast-DnALWJkx.es.js +0 -74
  184. package/components/toast/Toast-Pc_DOZ5-.system.js +0 -1
  185. package/components/toggleswitch/ToggleSwitch-WHdD3oYL.system.js +0 -1
  186. package/components/toggleswitch/ToggleSwitch-wRjnHRIw.es.js +0 -90
  187. package/components/transactionroles/TransactionRoles-B_67h5wb.es.js +0 -223
  188. package/components/transactionroles/TransactionRoles-DSXBVwPM.system.js +0 -1
  189. package/components/tree/Tree-BoVGYw5N.system.js +0 -1
  190. package/components/tree/Tree-DnaIZZ8S.es.js +0 -268
  191. package/components/treenode/TreeNode-D5aepDIU.system.js +0 -1
  192. package/components/treenode/TreeNode-KJOUvlTH.es.js +0 -499
  193. package/components/treesearchinput/TreeSearchInput-B1PmhE7k.es.js +0 -56
  194. package/components/treesearchinput/TreeSearchInput-C-hXPV61.system.js +0 -1
  195. package/components/username/UserName-CCyPAYG6.system.js +0 -1
  196. package/components/username/UserName-CWs83BX6.es.js +0 -130
  197. package/components/userwithicon/UserWithIcon-CFjQcbAS.system.js +0 -1
  198. package/components/userwithicon/UserWithIcon-Dn3aNKdq.es.js +0 -18
  199. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
  200. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
  201. package/vendor/@popperjs/core-BDAJHTVh.es.js +0 -905
  202. package/vendor/@popperjs/core-DpNOCyB0.system.js +0 -1
  203. package/vendor/@tiptap/core-BLz8iRA3.es.js +0 -2868
  204. package/vendor/@tiptap/core-bnIgGWIt.system.js +0 -80
  205. package/vendor/@tiptap/extension-bold-BnsTNqIJ.es.js +0 -71
  206. package/vendor/@tiptap/extension-bold-C_KVm_D0.system.js +0 -1
  207. package/vendor/@tiptap/extension-bubble-menu-D421L1EU.system.js +0 -1
  208. package/vendor/@tiptap/extension-bubble-menu-D9Vgq7yO.es.js +0 -128
  209. package/vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js +0 -53
  210. package/vendor/@tiptap/extension-bullet-list-kXXFF-_p.system.js +0 -1
  211. package/vendor/@tiptap/extension-code-CfQ7g1i2.es.js +0 -51
  212. package/vendor/@tiptap/extension-code-Q8P1EHjz.system.js +0 -1
  213. package/vendor/@tiptap/extension-floating-menu-8rFSweor.system.js +0 -1
  214. package/vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js +0 -99
  215. package/vendor/@tiptap/extension-heading-BE64-Rg_.system.js +0 -1
  216. package/vendor/@tiptap/extension-heading-ZTlCgdtc.es.js +0 -54
  217. package/vendor/@tiptap/extension-history-GLkLmX-Y.system.js +0 -1
  218. package/vendor/@tiptap/extension-history-eJIThEn-.es.js +0 -35
  219. package/vendor/@tiptap/extension-image-B8NPUVFM.es.js +0 -64
  220. package/vendor/@tiptap/extension-image-rKrdkZpJ.system.js +0 -1
  221. package/vendor/@tiptap/extension-italic-C_CyJubw.es.js +0 -70
  222. package/vendor/@tiptap/extension-italic-Dg0Nosoc.system.js +0 -1
  223. package/vendor/@tiptap/extension-link-Cd8bTMBz.system.js +0 -1
  224. package/vendor/@tiptap/extension-link-D4PFdLvA.es.js +0 -262
  225. package/vendor/@tiptap/extension-list-item-7pIJ7t09.es.js +0 -33
  226. package/vendor/@tiptap/extension-list-item-Mnhfw2gP.system.js +0 -1
  227. package/vendor/@tiptap/extension-mention-DVF3rX_z.system.js +0 -1
  228. package/vendor/@tiptap/extension-mention-Dkg-tbrz.es.js +0 -130
  229. package/vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js +0 -71
  230. package/vendor/@tiptap/extension-ordered-list-Hl0QU8Zt.system.js +0 -1
  231. package/vendor/@tiptap/extension-placeholder-BeLl2T-f.system.js +0 -1
  232. package/vendor/@tiptap/extension-placeholder-V0iTxU19.es.js +0 -52
  233. package/vendor/@tiptap/extension-underline-BdcAQ4JH.system.js +0 -1
  234. package/vendor/@tiptap/extension-underline-DsGbvz80.es.js +0 -40
  235. package/vendor/@tiptap/suggestion-BpZSO8Lm.system.js +0 -1
  236. package/vendor/@tiptap/suggestion-C4sBhJAD.es.js +0 -131
  237. package/vendor/@tiptap/vue-3-BH1pZykd.system.js +0 -1
  238. package/vendor/@tiptap/vue-3-DceiR7pK.es.js +0 -436
  239. package/vendor/highlight.js-BAruEf1H.system.js +0 -2
  240. package/vendor/highlight.js-DHowhWoU.es.js +0 -2493
  241. package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
  242. package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
  243. package/vendor/lodash-DbIT-6qv.es.js +0 -127
  244. package/vendor/lodash-DbvKLWSv.system.js +0 -1
  245. package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
  246. package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
  247. package/vendor/orderedmap-B3SOk52B.es.js +0 -103
  248. package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
  249. package/vendor/primevue-CadmDhWp.es.js +0 -13928
  250. package/vendor/primevue-u6FsQONA.system.js +0 -193
  251. package/vendor/prosemirror-commands-DLmzIpoS.es.js +0 -383
  252. package/vendor/prosemirror-commands-DgY3QRzI.system.js +0 -2
  253. package/vendor/prosemirror-history-BMpJFORS.es.js +0 -248
  254. package/vendor/prosemirror-history-BrK-FTBv.system.js +0 -1
  255. package/vendor/prosemirror-keymap-COb3Dq2o.system.js +0 -1
  256. package/vendor/prosemirror-keymap-DF8LLxca.es.js +0 -60
  257. package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
  258. package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
  259. package/vendor/prosemirror-schema-list-BPpAP8wR.system.js +0 -1
  260. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
  261. package/vendor/prosemirror-state-CwkYUmNs.es.js +0 -820
  262. package/vendor/prosemirror-state-DzPLD-6l.system.js +0 -1
  263. package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
  264. package/vendor/prosemirror-transform-VaXuT0NM.system.js +0 -2
  265. package/vendor/prosemirror-view-JTdpiWMD.system.js +0 -5
  266. package/vendor/prosemirror-view-ta7l3rKk.es.js +0 -3742
  267. package/vendor/rope-sequence-4t46C6az.system.js +0 -1
  268. package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
  269. package/vendor/simplebar-core-71xT5g0m.system.js +0 -1
  270. package/vendor/simplebar-core-Db65-Ath.es.js +0 -333
  271. package/vendor/simplebar-vue-BFEeFUIv.system.js +0 -1
  272. package/vendor/simplebar-vue-DAxqu0eM.es.js +0 -176
  273. package/vendor/tippy.js-CuKTz0UR.system.js +0 -1
  274. package/vendor/tippy.js-DNnwm2RY.es.js +0 -721
  275. package/vendor/uuid-93tp0umt.es.js +0 -9
  276. package/vendor/uuid-Cymn6orr.system.js +0 -1
  277. package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
  278. package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
  279. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
  280. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
  281. package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
  282. package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
  283. /package/{assets/lottiejs/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
  284. /package/{assets/lottiejs/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
@@ -1,1036 +0,0 @@
1
- import { defineComponent as De, mergeModels as xe, inject as je, useModel as _e, onMounted as ze, reactive as We, shallowRef as C, ref as D, computed as ae, watch as ye, resolveDirective as Ke, createElementBlock as j, openBlock as h, Fragment as oe, createVNode as u, withCtx as b, createElementVNode as c, normalizeClass as k, createCommentVNode as z, createBlock as W, renderList as Ce, mergeProps as Ge, unref as s, createTextVNode as qe, toDisplayString as ke, withDirectives as Je, nextTick as Xe } from "vue";
2
- import "../assetinfo/AssetInfo-CmwgOU74.es.js";
3
- import { h as Ze } from "../../vendor/primevue-CadmDhWp.es.js";
4
- import { u as Qe } from "../../vendor/vee-validate-RE5RuswC.es.js";
5
- import { B as Ye } from "../../vendor/@tiptap/extension-bold-BnsTNqIJ.es.js";
6
- import { B as et } from "../../vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js";
7
- import { C as tt } from "../../vendor/@tiptap/extension-code-CfQ7g1i2.es.js";
8
- import { N as K, m as ie } from "../../vendor/@tiptap/core-BLz8iRA3.es.js";
9
- import { F as at } from "../../vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js";
10
- import { H as ot } from "../../vendor/@tiptap/extension-heading-ZTlCgdtc.es.js";
11
- import { H as nt } from "../../vendor/@tiptap/extension-history-eJIThEn-.es.js";
12
- import { I as lt } from "../../vendor/@tiptap/extension-image-B8NPUVFM.es.js";
13
- import { I as it } from "../../vendor/@tiptap/extension-italic-C_CyJubw.es.js";
14
- import { L as rt } from "../../vendor/@tiptap/extension-link-D4PFdLvA.es.js";
15
- import { L as st } from "../../vendor/@tiptap/extension-list-item-7pIJ7t09.es.js";
16
- import { M as ct } from "../../vendor/@tiptap/extension-mention-Dkg-tbrz.es.js";
17
- import { O as dt } from "../../vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js";
18
- import { P as ut } from "../../vendor/@tiptap/extension-placeholder-V0iTxU19.es.js";
19
- import { U as mt } from "../../vendor/@tiptap/extension-underline-DsGbvz80.es.js";
20
- import { V as Ae, a as pt, u as ft, E as vt, F as ne } from "../../vendor/@tiptap/vue-3-DceiR7pK.es.js";
21
- import { _ as gt } from "../codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js";
22
- import { _ as ht } from "../mentionsection/MentionSection-C_c4qbpq.es.js";
23
- import { t as bt } from "../../vendor/tippy.js-DNnwm2RY.es.js";
24
- import { _ as xt } from "../mentionlist/MentionList--7AymnhE.es.js";
25
- import { _ as le } from "../button/Button-D-MSv_AS.es.js";
26
- import { _ as _t } from "../dialog/Dialog-Dy93f91f.es.js";
27
- import { _ as yt } from "../fieldwrapper/FieldWrapper-C6HJ2HnC.es.js";
28
- import { _ as Ct } from "../form/Form-eSj-nb1y.es.js";
29
- import { _ as kt } from "../icon/Icon-mDqG7urn.es.js";
30
- import { _ as wt } from "../inputtext/InputText-_xEnXysf.es.js";
31
- import { _ as we } from "../inputurl/InputURL-aqx1PVKL.es.js";
32
- import { _ as St } from "../overlaypanel/OverlayPanel-DXNek7Yb.es.js";
33
- import { _ as At } from "../validatormessage/ValidatorMessage-BtKfBXzO.es.js";
34
- import { _ as B } from "../editorbutton/EditorButton-DDgS2vga.es.js";
35
- const Se = [
36
- "#57291F",
37
- "#C0413B",
38
- "#D77B5F",
39
- "#FF9200",
40
- "#C87505",
41
- "#F18E3F",
42
- "#C14C32",
43
- "#80003A",
44
- "#506432",
45
- "#B30019",
46
- "#EC410B",
47
- "#8CB5B5",
48
- "#6C3400",
49
- "#FFA400",
50
- "#41222A",
51
- "#FFB27B",
52
- "#BC7576"
53
- ], Mt = () => {
54
- const n = Math.floor(Math.random() * Se.length);
55
- return Se[n];
56
- }, $a = (n, f, d, N) => {
57
- const l = d ?? Mt(), p = document.createElement("canvas");
58
- p.style.background = l, p.width = f, p.height = f;
59
- const g = p.getContext("2d");
60
- if (g) {
61
- const H = "Poppins", G = "600", J = "#fff";
62
- g.font = `${G} 48px/48px ${H}`, g.textAlign = "center", g.textBaseline = "middle";
63
- const w = p.width / 2, E = (p.height + 8) / 2;
64
- g.fillStyle = l, g.fillRect(0, 0, p.width, p.height), g.fillStyle = J, g.fillText(n, w, E);
65
- }
66
- return p;
67
- }, Lt = K.create({
68
- name: "doc",
69
- topNode: !0,
70
- content: "block+"
71
- }), It = K.create({
72
- name: "paragraph",
73
- priority: 1e3,
74
- addOptions() {
75
- return {
76
- HTMLAttributes: {}
77
- };
78
- },
79
- group: "block",
80
- content: "inline*",
81
- parseHTML() {
82
- return [
83
- { tag: "p" }
84
- ];
85
- },
86
- renderHTML({ HTMLAttributes: n }) {
87
- return ["p", ie(this.options.HTMLAttributes, n), 0];
88
- },
89
- addCommands() {
90
- return {
91
- setParagraph: () => ({ commands: n }) => n.setNode(this.name)
92
- };
93
- },
94
- addKeyboardShortcuts() {
95
- return {
96
- "Mod-Alt-0": () => this.editor.commands.setParagraph()
97
- };
98
- }
99
- }), Tt = K.create({
100
- name: "text",
101
- group: "inline"
102
- }), Bt = K.create({
103
- name: "codeSnippet",
104
- group: "block",
105
- atom: !0,
106
- addAttributes() {
107
- return {
108
- code: {
109
- default: ""
110
- }
111
- };
112
- },
113
- parseHTML() {
114
- return [
115
- {
116
- tag: "codeSnippet"
117
- }
118
- ];
119
- },
120
- renderHTML({ HTMLAttributes: n }) {
121
- return ["codeSnippet", ie(n)];
122
- },
123
- addNodeView() {
124
- return Ae(gt);
125
- },
126
- addCommands() {
127
- return {
128
- insertCodeSnippet: () => ({ commands: n }) => n.insertContent({
129
- type: "codeSnippet",
130
- attrs: { code: "" }
131
- }),
132
- deleteCodeSnippet: () => ({ commands: n }) => n.deleteSelection()
133
- };
134
- }
135
- }), Ht = K.create({
136
- name: "mentionSection",
137
- group: "block",
138
- atom: !0,
139
- addAttributes() {
140
- return {
141
- title: {
142
- default: ""
143
- },
144
- bodyText: {
145
- default: ""
146
- }
147
- };
148
- },
149
- parseHTML() {
150
- return [
151
- {
152
- tag: "mentionSection"
153
- }
154
- ];
155
- },
156
- renderHTML({ HTMLAttributes: n }) {
157
- return ["mentionSection", ie(n)];
158
- },
159
- addNodeView() {
160
- return Ae(ht);
161
- },
162
- addCommands() {
163
- return {
164
- insertMentionSection: (n) => ({ commands: f }) => f.insertContent({
165
- type: "mentionSection",
166
- attrs: {
167
- title: n,
168
- bodyText: null
169
- }
170
- }),
171
- deleteMentionSection: () => ({ commands: n }) => n.deleteSelection()
172
- };
173
- }
174
- }), Ft = () => ({
175
- render: () => {
176
- let n, f;
177
- return {
178
- onStart(d) {
179
- n = new pt(xt, {
180
- props: {
181
- items: d.items,
182
- command: d.command
183
- },
184
- editor: d.editor
185
- }), d.clientRect && (f = bt("body", {
186
- getReferenceClientRect: d.clientRect,
187
- appendTo: () => document.body,
188
- content: n.element,
189
- showOnCreate: !0,
190
- interactive: !0,
191
- trigger: "manual",
192
- placement: "bottom-start"
193
- }));
194
- },
195
- onUpdate(d) {
196
- n.updateProps(d), d.clientRect && f[0].setProps({
197
- getReferenceClientRect: d.clientRect
198
- });
199
- },
200
- onKeyDown(d) {
201
- return d.event.key === "Escape" ? (f[0].hide(), !0) : n.ref.onKeyDown(d.event);
202
- },
203
- onExit() {
204
- f[0].destroy(), n.destroy();
205
- }
206
- };
207
- }
208
- }), Pt = 1 * 1024 * 1024, Vt = 10 * 1024 * 1024, $t = (n) => n.startsWith("image/") ? "image" : n.includes("mp4") ? "mp4" : n === "video/x-matroska" ? "mkv" : n === "text/plain" ? "txt" : n === "text/csv" ? "csv" : n === "text/html" ? "html" : n === "application/json" ? "json" : n === "application/pdf" ? "pdf" : n === "application/vnd.ms-excel" || n === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "xls" : n === "application/msword" || n === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "doc" : n.startsWith("application/x-url") ? "link" : n.includes("application/x-zip-compressed") || n.includes("application/x-compressed") ? "compressed" : "unknown", Nt = (n, f = 1) => {
209
- var N;
210
- if (f *= Pt, !((N = n.type) != null && N.length))
211
- return !1;
212
- const d = $t(n.type);
213
- return n.size <= (d === "mp4" || d === "mkv" ? Vt : f);
214
- }, Et = ["title", "onClick"], Rt = { class: "!text-[9px] !leading-3 !h-max !font-normal" }, Ot = {
215
- class: /* @__PURE__ */ k([
216
- "flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
217
- "[&_.separator::after]:content-['|']",
218
- "[&_.separator::after]:text-xl",
219
- "[&_.separator::after]:font-thin",
220
- "[&_.separator]:h-6"
221
- ])
222
- }, Ut = {
223
- class: /* @__PURE__ */ k([
224
- "flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
225
- "[&_.separator::after]:content-['|']",
226
- "[&_.separator::after]:text-xl",
227
- "[&_.separator::after]:font-thin",
228
- "[&_.separator]:h-6"
229
- ])
230
- }, Dt = /* @__PURE__ */ c("span", { class: "separator" }, null, -1), jt = /* @__PURE__ */ c("span", { class: "separator" }, null, -1), zt = /* @__PURE__ */ c("span", { class: "separator" }, null, -1), Wt = { class: "flex flex-col gap-4" }, Kt = { class: "flex gap-2" }, Gt = { class: "flex-1" }, qt = { class: "flex items-end" }, Jt = /* @__PURE__ */ c("p", null, "Baru Saja Ditambahkan", -1), Xt = { class: "flex flex-wrap justify-center gap-2" }, Zt = ["src"], Qt = { class: "flex flex-col justify-center w-28 h-28 items-center" }, Yt = { class: "relative py-[7px] px-3" }, ea = /* @__PURE__ */ c("p", null, "Cari Gambar", -1), ta = {
231
- class: /* @__PURE__ */ k([
232
- "flex gap-2 bg-white border-[0.5px] px-2 py-1 rounded-sm",
233
- "[&_.separator::after]:content-['|']",
234
- "[&_.separator::after]:text-xl",
235
- "[&_.separator::after]:font-thin",
236
- "[&_.separator]:h-6"
237
- ])
238
- }, Na = /* @__PURE__ */ De({
239
- __name: "Editor",
240
- props: /* @__PURE__ */ xe({
241
- modelValue: {},
242
- initialValue: {},
243
- placeholder: { default: "Tulis" },
244
- editorState: { default: "editable" },
245
- borderLess: { type: Boolean, default: !1 },
246
- label: {},
247
- useValidator: { type: Boolean },
248
- fieldName: {},
249
- labelClass: {},
250
- fieldInfo: {},
251
- validatorMessageClass: {},
252
- validatorMessage: {},
253
- mandatory: { type: Boolean },
254
- invalid: { type: Boolean },
255
- showOptionalText: { type: Boolean, default: void 0 },
256
- isImageUploadBase64: { type: Boolean, default: !1 },
257
- fetchMentionSuggestionFunction: {},
258
- mentionedList: {},
259
- editorWrapperClass: {},
260
- toolbarWrapperClass: {},
261
- contentWrapperClass: {}
262
- }, {
263
- modelValue: {},
264
- modelModifiers: {},
265
- mentionedList: {},
266
- mentionedListModifiers: {}
267
- }),
268
- emits: /* @__PURE__ */ xe(["update:modelValue", "postImageLocal", "deleteImageLocal", "blur", "focus", "update:mentionedList"], ["update:modelValue", "update:mentionedList"]),
269
- setup(n, { expose: f, emit: d }) {
270
- const N = je("preset", {}).menu, l = n, p = d;
271
- _e(n, "modelValue");
272
- const g = _e(n, "mentionedList");
273
- ze(() => {
274
- l.useValidator && (Object.assign(
275
- x,
276
- Qe(
277
- () => l.fieldName ?? "editorInput",
278
- (e) => Xe(() => $e(e))
279
- )
280
- ), l.initialValue != null && (x.value = l.initialValue), l.modelValue != null && (x.value = l.modelValue)), Re();
281
- });
282
- const H = C(!1), G = D(), q = D(), J = D(), w = D([]), E = C(!1), F = C(), R = C(), X = C(), x = We({
283
- value: l.modelValue
284
- }), S = C(!1), O = D([]), Y = C(), Me = ae(
285
- () => {
286
- var e;
287
- return l.placeholder ?? "Tulis " + (l.label ? (e = l.label) == null ? void 0 : e.toLowerCase() : "");
288
- }
289
- ), a = ft({
290
- content: l.initialValue ?? l.modelValue,
291
- onBlur: (e) => p("blur", e),
292
- onFocus: (e) => p("focus", e),
293
- onUpdate: () => {
294
- var e, t;
295
- p("update:modelValue", ((e = a.value) == null ? void 0 : e.getJSON()) ?? {}), x.value = ((t = a.value) == null ? void 0 : t.getJSON()) ?? {};
296
- },
297
- onPaste: async (e) => {
298
- let t = [];
299
- const { items: i } = e.clipboardData, o = (r) => new Promise((m) => {
300
- if (r.kind === "file") {
301
- const v = r.getAsFile();
302
- v && t.push(v), m();
303
- } else
304
- m();
305
- });
306
- await Promise.all(Array.from(i).map(o));
307
- try {
308
- if (t.length) {
309
- const r = t.filter((m) => m.type.startsWith("image/")).filter((m) => Nt(m, 10));
310
- await se(r);
311
- }
312
- } catch (r) {
313
- console.error("Error pasting images:", r);
314
- } finally {
315
- t = [];
316
- }
317
- },
318
- onSelectionUpdate(e) {
319
- var i;
320
- const t = e.editor.getAttributes(
321
- "image"
322
- );
323
- (i = a.value) == null || i.state.doc.descendants((o) => {
324
- o.type.name === "mention" && O.value.push(o.attrs.id);
325
- }), O.value = Array.from(
326
- new Set(O.value)
327
- ), t.title === "localImage" ? R.value = t : R.value = void 0;
328
- },
329
- editable: l.editorState === "editable",
330
- extensions: [
331
- ut.configure({
332
- emptyEditorClass: "is-editor-empty !text-general-200 !font-light",
333
- placeholder: Me.value,
334
- includeChildren: !1
335
- }),
336
- Lt.extend({
337
- addKeyboardShortcuts() {
338
- return {
339
- "Mod-\\": () => (this.editor.commands.clearNodes(), this.editor.commands.unsetAllMarks())
340
- };
341
- }
342
- }),
343
- // Blocks
344
- ot,
345
- It,
346
- Tt,
347
- lt.extend({
348
- addKeyboardShortcuts() {
349
- const e = () => {
350
- const { node: t } = this.editor.state.selection;
351
- return t && t.type.name === "image" && t.attrs.title === "localImage" ? (ce(), !0) : !1;
352
- };
353
- return {
354
- Insert: () => re(),
355
- Backspace: e,
356
- Delete: e
357
- };
358
- }
359
- }).configure({
360
- HTMLAttributes: {
361
- class: "w-fit max-h-[300px] object-contain"
362
- }
363
- }),
364
- Bt.extend({
365
- addKeyboardShortcuts() {
366
- return {
367
- "Mod-alt-c": de
368
- };
369
- }
370
- }),
371
- Ht,
372
- dt.configure({
373
- HTMLAttributes: {
374
- class: "list-decimal px-3 py-1"
375
- }
376
- }),
377
- et.configure({
378
- HTMLAttributes: {
379
- class: "list-disc px-3 py-1"
380
- }
381
- }),
382
- st,
383
- // Marks
384
- Ye,
385
- it,
386
- mt,
387
- tt,
388
- rt.extend({
389
- addKeyboardShortcuts() {
390
- return {
391
- "Mod-k": () => ee()
392
- };
393
- }
394
- }).configure({
395
- openOnClick: !1
396
- }),
397
- nt,
398
- ct.configure({
399
- HTMLAttributes: {
400
- class: "bg-primary-200 text-primary-800 rounded-[50px] px-1"
401
- },
402
- suggestion: {
403
- items({ query: e }) {
404
- return ((X == null ? void 0 : X.value) ?? []).filter((t) => t == null ? void 0 : t.fullName.toLowerCase().includes(e.toLowerCase())).map((t) => ({
405
- id: t == null ? void 0 : t._id,
406
- label: t == null ? void 0 : t.fullName,
407
- nickName: t.nickName,
408
- profilePicture: t.profilePicture
409
- }));
410
- },
411
- ...Ft()
412
- }
413
- }),
414
- at
415
- ]
416
- }), Le = ae(() => {
417
- var L, y, I, T, P, V, $, U, Q, me, pe, fe, ve, ge, he, be;
418
- if (!a.value) return [];
419
- const {
420
- toggleBold: e,
421
- focus: t,
422
- toggleItalic: i,
423
- toggleUnderline: o,
424
- toggleBulletList: r,
425
- toggleCode: m,
426
- toggleOrderedList: v,
427
- unsetAllMarks: A,
428
- clearNodes: M
429
- } = a.value.commands, _ = (L = a.value) == null ? void 0 : L.isActive("code");
430
- return [
431
- {
432
- label: "Aa",
433
- iconPos: "right",
434
- icon: "arrow-down",
435
- class: "!gap-0 !w-[50px] !p-0 !m-0 [&_span]:leading-[22px]",
436
- onClick: (y = G.value) == null ? void 0 : y.toggle
437
- },
438
- {
439
- icon: "bold",
440
- tooltipText: "Bold | Ctrl + B",
441
- active: (I = a.value) == null ? void 0 : I.isActive("bold"),
442
- disabled: _,
443
- onClick: () => {
444
- t(), e();
445
- }
446
- },
447
- {
448
- icon: "italic",
449
- tooltipText: "Italic | Ctrl + I",
450
- active: (T = a.value) == null ? void 0 : T.isActive("italic"),
451
- disabled: _,
452
- onClick: () => {
453
- t(), i();
454
- }
455
- },
456
- {
457
- icon: "underline",
458
- class: "mr-3",
459
- active: (P = a.value) == null ? void 0 : P.isActive("underline"),
460
- tooltipText: "Underline | Ctrl + U",
461
- disabled: _,
462
- onClick: () => {
463
- t(), o();
464
- }
465
- },
466
- {
467
- icon: "list-unordered",
468
- tooltipText: "Bullet List | Ctrl + 7",
469
- active: (V = a.value) == null ? void 0 : V.isActive("bullet-list"),
470
- onClick: () => {
471
- t(), r();
472
- }
473
- },
474
- {
475
- icon: "list-ordered",
476
- tooltipText: "Numbered List | Ctrl + 8",
477
- active: ($ = a.value) == null ? void 0 : $.isActive("ordered-list"),
478
- class: "mr-3",
479
- onClick: () => {
480
- t(), v();
481
- }
482
- },
483
- {
484
- icon: "link-m",
485
- tooltipText: "Link | Ctrl + K",
486
- disabled: ((U = a.value) == null ? void 0 : U.isActive("link")) || H.value,
487
- onClick: ee
488
- },
489
- {
490
- icon: "image-add",
491
- active: (Q = a.value) == null ? void 0 : Q.isActive("image"),
492
- tooltipText: "Image | Insert",
493
- onClick: () => re()
494
- },
495
- {
496
- icon: "code-line",
497
- active: (me = a.value) == null ? void 0 : me.isActive("code"),
498
- tooltipText: "Inline Code | Ctrl + E",
499
- onClick: () => {
500
- t(), m();
501
- }
502
- },
503
- {
504
- icon: "code-box-line",
505
- active: (pe = a.value) == null ? void 0 : pe.isActive("codeSnippet"),
506
- tooltipText: "Code Block | Ctrl + Alt + C",
507
- onClick: () => {
508
- de();
509
- }
510
- },
511
- {
512
- icon: "format-clear",
513
- tooltipText: "Clear Formatting Ctrl + \\",
514
- disabled: !((fe = a.value) != null && fe.isActive("bold")) && !((ve = a.value) != null && ve.isActive("underline")) && !((ge = a.value) != null && ge.isActive("italic")) && !((he = a.value) != null && he.isActive("code")) && !((be = a.value) != null && be.isActive("heading")),
515
- onClick: () => {
516
- t(), M(), A();
517
- }
518
- }
519
- ];
520
- }), Ie = C([
521
- {
522
- label: "Paragraf",
523
- class: "p",
524
- shortCut: "Ctrl+Alt+P",
525
- command: () => {
526
- var e, t;
527
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setParagraph();
528
- }
529
- },
530
- {
531
- label: "Heading 1",
532
- class: "heading-1",
533
- shortCut: "Ctrl+Alt+1",
534
- command: () => {
535
- var e, t;
536
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 1 });
537
- }
538
- },
539
- {
540
- label: "Heading 2",
541
- class: "heading-2",
542
- shortCut: "Ctrl+Alt+2",
543
- command: () => {
544
- var e, t;
545
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 2 });
546
- }
547
- },
548
- {
549
- class: "heading-3",
550
- label: "Heading 3",
551
- shortCut: "Ctrl+Alt+3",
552
- command: () => {
553
- var e, t;
554
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 3 });
555
- }
556
- },
557
- {
558
- label: "Heading 4",
559
- class: "heading-4",
560
- shortCut: "Ctrl+Alt+4",
561
- command: () => {
562
- var e, t;
563
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 4 });
564
- }
565
- },
566
- {
567
- label: "Heading 5",
568
- class: "heading-5",
569
- shortCut: "Ctrl+Alt+5",
570
- command: () => {
571
- var e, t;
572
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 5 });
573
- }
574
- },
575
- {
576
- label: "Heading 6",
577
- class: "heading-6",
578
- shortCut: "Ctrl+Alt+6",
579
- command: () => {
580
- var e, t;
581
- (e = a.value) == null || e.commands.focus(), (t = a.value) == null || t.commands.setHeading({ level: 6 });
582
- }
583
- }
584
- ]), Z = ae(() => {
585
- var e;
586
- return (e = a.value) == null ? void 0 : e.getAttributes("link");
587
- }), Te = () => {
588
- var i;
589
- const { href: e } = Z.value, t = (i = a.value) == null ? void 0 : i.view.dom.querySelector(`[href="${e}"]`);
590
- return Pe() || t && (t == null ? void 0 : t.textContent) !== e && t.textContent || void 0;
591
- }, Be = () => {
592
- var e;
593
- window.open((e = Z.value) == null ? void 0 : e.href, "_blank");
594
- }, He = () => {
595
- var e;
596
- window.navigator.clipboard.writeText((e = Z.value) == null ? void 0 : e.href);
597
- }, Fe = () => {
598
- var e;
599
- if (a.value) {
600
- const { unsetLink: t, focus: i } = ((e = a.value) == null ? void 0 : e.commands) ?? {};
601
- i(), t();
602
- }
603
- }, Pe = () => {
604
- if (a.value) {
605
- const { state: e } = a.value, { from: t, to: i } = e.selection;
606
- return e == null ? void 0 : e.doc.textBetween(t, i, " ");
607
- }
608
- }, re = () => (E.value = !0, !1), se = async (e) => {
609
- if (l.isImageUploadBase64) {
610
- const t = await Ee(e[0]);
611
- te(t);
612
- } else
613
- p("postImageLocal", {
614
- image: e[0],
615
- setImageCb: te
616
- });
617
- }, Ve = (e) => {
618
- const { files: t } = e.target;
619
- se(t);
620
- }, $e = (e = {}) => {
621
- if (typeof l.validatorMessage == "string" && l.invalid)
622
- return l.validatorMessage;
623
- if (typeof l.validatorMessage != "string") {
624
- const { empty: t } = l.validatorMessage ?? {};
625
- if (e.content === void 0 && l.mandatory && t)
626
- return t ?? !0;
627
- }
628
- return !0;
629
- }, ee = (e) => {
630
- var o, r, m, v;
631
- const t = e ?? {
632
- currentTarget: (r = (o = J.value) == null ? void 0 : o.querySelector(".ic-link-m")) == null ? void 0 : r.closest("button")
633
- }, { dom: i } = ((m = a.value) == null ? void 0 : m.view) ?? {};
634
- return (v = q.value) == null || v.toggle(t, i), !0;
635
- }, Ne = ({ formValues: e }) => {
636
- var A, M;
637
- if (!a.value) return !1;
638
- const { setLink: t, insertContent: i, focus: o } = a.value.commands, { url: r, text: m } = e, { state: v } = a.value;
639
- return o(), t({
640
- href: r,
641
- target: "_blank",
642
- rel: "nofollow"
643
- }), (A = a.value) != null && A.isActive("link") ? a.value.chain().focus().command(({ tr: _, state: L }) => {
644
- const { $from: y, $to: I } = L.selection, T = v.schema.marks.link;
645
- let P = y.start(), V = I.end();
646
- return v.doc.nodesBetween(y.pos, I.pos, ($, U) => {
647
- $.isText && $.marks.some((Q) => Q.type === T) && (P = Math.min(P, U), V = Math.max(V, U + $.nodeSize));
648
- }), _.insertText(m || r, P, V), !0;
649
- }).run() : v.selection.empty && i(m || r), (M = q.value) == null || M.hide(), H.value = !1, !0;
650
- }, te = (e) => {
651
- var t, i, o, r;
652
- (t = a.value) == null || t.commands.focus(), e && (l.isImageUploadBase64 ? (i = a.value) == null || i.commands.setImage({
653
- src: e,
654
- title: "localImageBase64"
655
- }) : (o = a.value) == null || o.commands.setImage({ src: e, title: "localImage" }), w.value = Array.from(
656
- /* @__PURE__ */ new Set([...w.value, e])
657
- )), F.value && ((r = a.value) == null || r.commands.setImage({ src: F.value }), w.value = Array.from(
658
- /* @__PURE__ */ new Set([...w.value, F.value])
659
- )), F.value = void 0, ue();
660
- }, ce = () => {
661
- var e;
662
- R.value && R.value.title === "localImage" && p("deleteImageLocal", R.value), (e = a.value) == null || e.commands.deleteSelection();
663
- }, Ee = (e) => new Promise((t, i) => {
664
- const o = new FileReader();
665
- o.readAsDataURL(e), o.onload = () => {
666
- t(o.result);
667
- }, o.onerror = (r) => {
668
- i(r);
669
- };
670
- }), Re = async () => {
671
- if (l.fetchMentionSuggestionFunction) {
672
- S.value = !S.value;
673
- try {
674
- const { data: e } = await l.fetchMentionSuggestionFunction() ?? {};
675
- X.value = e, S.value = !S.value;
676
- } catch (e) {
677
- console.error(e);
678
- }
679
- }
680
- }, de = () => {
681
- var i, o;
682
- const { insertCodeSnippet: e, deleteCodeSnippet: t } = (i = a.value) == null ? void 0 : i.commands;
683
- return (o = a.value) != null && o.isActive("codeSnippet") ? t() : e(), !1;
684
- }, ue = () => {
685
- a.value.commands.createParagraphNear();
686
- }, Oe = (e) => {
687
- var t;
688
- try {
689
- const { insertMentionSection: i } = (t = a.value) == null ? void 0 : t.commands;
690
- i(e), Y.value !== e && Y.value !== void 0 && Ue(), Y.value = e;
691
- } catch (i) {
692
- console.error(i);
693
- }
694
- }, Ue = () => {
695
- S.value = !0, setTimeout(() => {
696
- S.value = !1;
697
- }, 100);
698
- };
699
- return f({
700
- mentionSectionTrigger: Oe
701
- }), ye(
702
- () => l.invalid,
703
- () => {
704
- var e;
705
- (e = x.validate) == null || e.call(x);
706
- }
707
- ), ye(O, () => {
708
- g.value = O.value;
709
- }), (e, t) => {
710
- const i = Ke("focus");
711
- return h(), j(oe, null, [
712
- u(yt, {
713
- info: e.fieldInfo,
714
- label: l.label,
715
- "label-class": l.labelClass,
716
- mandatory: l.mandatory,
717
- "show-optional-text": l.showOptionalText
718
- }, {
719
- default: b(() => [
720
- c("div", {
721
- ref_key: "root",
722
- ref: J,
723
- class: k([
724
- "rounded-b text-grayscale-900 w-full",
725
- "[&:has(:focus)]:border-general-200 border-general-100",
726
- `${e.borderLess || e.editorState === "readonly" ? "border-none" : "border-[0.5px]"}`,
727
- // Inline Code
728
- "[&_code]:bg-primary-100",
729
- "[&_code]:rounded-md",
730
- "[&_code]:p-[0.25em_0.3em]",
731
- "[&_code]:text-[0.85rem]",
732
- "[&_code]:!font-source-code-pro",
733
- `${l.editorWrapperClass}`
734
- ]),
735
- "data-wv-name": "editor"
736
- }, [
737
- l.editorState === "editable" ? (h(), j("div", {
738
- key: 0,
739
- class: k([
740
- "border-b-[0.5px] border-inherit px-3 py-1 flex gap-1 bg-general-50",
741
- `${l.toolbarWrapperClass}`
742
- ]),
743
- "data-wv-section": "toolbar"
744
- }, [
745
- (h(!0), j(oe, null, Ce(Le.value, (o) => (h(), W(B, Ge({ ref_for: !0 }, o, {
746
- key: o.icon,
747
- class: [{ "!bg-primary-50 ": o.active }, o.class]
748
- }), null, 16, ["class"]))), 128))
749
- ], 2)) : z("", !0),
750
- S.value ? z("", !0) : (h(), W(s(vt), {
751
- key: 1,
752
- class: k([
753
- `${l.editorState === "editable" ? "px-3 py-2" : ""} [&_*]:outline-none`,
754
- "[&_.is-editor-empty:first-child::before]:text-general-200",
755
- "[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
756
- "[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
757
- "[&_.is-editor-empty:first-child::before]:font-normal",
758
- "[&_.is-editor-empty:first-child::before]:pointer-events-none",
759
- "[&_.is-editor-empty:first-child::before]:float-left",
760
- "[&_.is-editor-empty:first-child::before]:h-0",
761
- // Anchor
762
- "[&_a]:hover:underline transition-transform duration-75",
763
- "[&_a]:text-link",
764
- "[&_a]:cursor-pointer",
765
- // Bold
766
- "[&_b]:font-bold",
767
- "[&_strong]:font-bold",
768
- // Image
769
- "[&_img.ProseMirror-selectednode]:!outline-[0.5px]",
770
- "[&_img.ProseMirror-selectednode]:!outline-link",
771
- "[&_img.ProseMirror-selectednode]:!outline-offset-1",
772
- "[&_img.ProseMirror-selectednode]:!rounded-sm",
773
- "[&_img]:my-2",
774
- // Inline Code
775
- "[&_*:has(code)]:my-[0.25rem]",
776
- `${l.contentWrapperClass}`
777
- ]),
778
- editor: s(a),
779
- spellcheck: "false"
780
- }, null, 8, ["class", "editor"])),
781
- u(s(Ze), {
782
- ref_key: "headingMenu",
783
- ref: G,
784
- model: Ie.value,
785
- popup: ""
786
- }, {
787
- item: b(({ item: o }) => {
788
- var r, m, v, A, M, _, L, y;
789
- return [
790
- c("a", {
791
- class: k([
792
- ...(r = s(N)) == null ? void 0 : r.action.class,
793
- o.class,
794
- "flex items-center !justify-between h-[30px]",
795
- {
796
- "bg-primary-50": ((m = s(a)) == null ? void 0 : m.isActive("heading", { level: 1 })) && o.label === "Heading 1" || ((v = s(a)) == null ? void 0 : v.isActive("heading", { level: 2 })) && o.label === "Heading 2" || ((A = s(a)) == null ? void 0 : A.isActive("heading", { level: 3 })) && o.label === "Heading 3" || ((M = s(a)) == null ? void 0 : M.isActive("heading", { level: 4 })) && o.label === "Heading 4" || ((_ = s(a)) == null ? void 0 : _.isActive("heading", { level: 5 })) && o.label === "Heading 5" || ((L = s(a)) == null ? void 0 : L.isActive("heading", { level: 6 })) && o.label === "Heading 6" || ((y = s(a)) == null ? void 0 : y.isActive("paragraph")) && o.label === "Paragraf"
797
- }
798
- ]),
799
- title: o.label,
800
- onClick: (I) => {
801
- var T;
802
- return (T = o.command) == null ? void 0 : T.call(o, { item: o, originalEvent: I });
803
- }
804
- }, [
805
- qe(ke(o.label) + " ", 1),
806
- c("code", Rt, ke(o.shortCut), 1)
807
- ], 10, Et)
808
- ];
809
- }),
810
- _: 1
811
- }, 8, ["model"]),
812
- s(a) && l.editorState === "editable" ? (h(), W(s(ne), {
813
- key: 2,
814
- editor: s(a),
815
- "should-show": () => {
816
- var o, r;
817
- return ((o = s(a)) == null ? void 0 : o.isActive("codeSnippet")) || ((r = s(a)) == null ? void 0 : r.isActive("mentionSection"));
818
- },
819
- "tippy-options": { placement: "top", zIndex: 9 },
820
- class: "-mt-1.5 shadow-panel",
821
- "plugin-key": "editLinkToolbar"
822
- }, {
823
- default: b(() => [
824
- c("div", Ot, [
825
- u(B, {
826
- onClick: ue,
827
- icon: "close",
828
- severity: "secondary",
829
- text: "",
830
- "tooltip-text": "Buat text baru dibawah"
831
- })
832
- ])
833
- ]),
834
- _: 1
835
- }, 8, ["editor", "should-show"])) : z("", !0),
836
- s(a) && !H.value && l.editorState === "editable" ? (h(), W(s(ne), {
837
- key: 3,
838
- editor: s(a),
839
- "should-show": () => {
840
- var o;
841
- return (o = s(a)) == null ? void 0 : o.isActive("link");
842
- },
843
- "tippy-options": { placement: "bottom", zIndex: 9 },
844
- class: "-mt-1.5 shadow-panel",
845
- "plugin-key": "editLinkToolbar"
846
- }, {
847
- default: b(() => [
848
- c("div", Ut, [
849
- u(B, {
850
- onClick: ee,
851
- class: "!w-max",
852
- label: "Edit Tautan",
853
- severity: "secondary",
854
- text: ""
855
- }),
856
- Dt,
857
- u(B, {
858
- onClick: Be,
859
- icon: "external-link",
860
- severity: "secondary",
861
- text: "",
862
- "tooltip-text": "Buka di tab baru"
863
- }),
864
- jt,
865
- u(B, {
866
- onClick: Fe,
867
- icon: "link-unlink-m",
868
- severity: "secondary",
869
- text: "",
870
- "tooltip-text": "Lepas tautan"
871
- }),
872
- zt,
873
- u(B, {
874
- onClick: He,
875
- icon: "file-copy",
876
- severity: "secondary",
877
- text: "",
878
- "tooltip-text": "Salin tautan"
879
- })
880
- ])
881
- ]),
882
- _: 1
883
- }, 8, ["editor", "should-show"])) : z("", !0),
884
- u(_t, {
885
- visible: E.value,
886
- "onUpdate:visible": t[2] || (t[2] = (o) => E.value = o),
887
- class: "w-[400px]",
888
- header: "Pilih Gambar"
889
- }, {
890
- default: b(() => [
891
- c("div", Wt, [
892
- c("div", Kt, [
893
- c("div", Gt, [
894
- u(we, {
895
- "model-value": F.value,
896
- "onUpdate:modelValue": t[0] || (t[0] = (o) => F.value = o),
897
- class: "w-[269px]",
898
- label: "URL Gambar"
899
- }, null, 8, ["model-value"])
900
- ]),
901
- c("div", qt, [
902
- u(le, {
903
- onClick: t[1] || (t[1] = (o) => te()),
904
- label: "Simpan",
905
- severity: "secondary"
906
- })
907
- ])
908
- ]),
909
- c("div", null, [
910
- Jt,
911
- c("div", Xt, [
912
- (h(!0), j(oe, null, Ce(w.value, (o, r) => (h(), j("img", {
913
- key: r,
914
- src: o,
915
- alt: "preview",
916
- class: "w-28 h-28 object-scale-down rounded-lg"
917
- }, null, 8, Zt))), 128)),
918
- c("div", Qt, [
919
- u(kt, {
920
- class: "!w-[70px] !h-[70px]",
921
- icon: "upload-2",
922
- severity: "primary"
923
- }),
924
- u(le, { severity: "secondary" }, {
925
- default: b(() => [
926
- c("div", Yt, [
927
- ea,
928
- c("input", {
929
- onChange: Ve,
930
- class: "opacity-0 absolute top-0 bottom-0 left-0 right-0",
931
- type: "file"
932
- }, null, 32)
933
- ])
934
- ]),
935
- _: 1
936
- })
937
- ])
938
- ])
939
- ])
940
- ])
941
- ]),
942
- _: 1
943
- }, 8, ["visible"]),
944
- s(a) && l.editorState === "editable" ? (h(), W(s(ne), {
945
- key: 4,
946
- editor: s(a),
947
- "should-show": () => {
948
- var o;
949
- return !!((o = s(a)) != null && o.isActive("image"));
950
- },
951
- "tippy-options": { placement: "top", zIndex: 9 },
952
- class: "-mt-1.5 shadow-panel",
953
- "plugin-key": "editImageToolbar"
954
- }, {
955
- default: b(() => [
956
- c("div", ta, [
957
- u(B, {
958
- onClick: ce,
959
- icon: "delete-bin",
960
- severity: "secondary",
961
- text: "",
962
- "tooltip-text": "Unset Image"
963
- })
964
- ])
965
- ]),
966
- _: 1
967
- }, 8, ["editor", "should-show"])) : z("", !0)
968
- ], 2),
969
- u(At, {
970
- class: k(e.validatorMessageClass),
971
- message: x.errorMessage
972
- }, null, 8, ["class", "message"])
973
- ]),
974
- _: 1
975
- }, 8, ["info", "label", "label-class", "mandatory", "show-optional-text"]),
976
- u(St, {
977
- ref_key: "editLinkOverlay",
978
- ref: q,
979
- pt: {
980
- content: {
981
- class: ""
982
- }
983
- },
984
- onHide: t[3] || (t[3] = (o) => H.value = !1),
985
- "append-to": "self",
986
- class: "w-[342px] bg-white p-4"
987
- }, {
988
- default: b(() => [
989
- u(Ct, {
990
- onSubmit: Ne,
991
- class: "!gap-0",
992
- "hide-stay-checkbox": ""
993
- }, {
994
- fields: b(() => {
995
- var o, r;
996
- return [
997
- Je(u(we, {
998
- "validator-message": { empty: "Masukan tautan yang valid" },
999
- value: (o = Z.value) == null ? void 0 : o.href,
1000
- "field-name": "url",
1001
- label: "Tempel Tautan",
1002
- mandatory: "",
1003
- placeholder: "Tempel tautan baru",
1004
- "use-validator": ""
1005
- }, null, 8, ["value"]), [
1006
- [i]
1007
- ]),
1008
- u(wt, {
1009
- value: Te(),
1010
- "field-name": "text",
1011
- label: "Teks Tampilan",
1012
- placeholder: "Teks untuk ditampilkan",
1013
- "use-validator": ""
1014
- }, null, 8, ["value"]),
1015
- u(le, {
1016
- label: (r = s(a)) != null && r.isActive("link") ? "Simpan" : "Tambahkan",
1017
- class: "w-max ml-auto",
1018
- severity: "secondary",
1019
- type: "submit"
1020
- }, null, 8, ["label"])
1021
- ];
1022
- }),
1023
- _: 1
1024
- })
1025
- ]),
1026
- _: 1
1027
- }, 512)
1028
- ], 64);
1029
- };
1030
- }
1031
- });
1032
- export {
1033
- Na as _,
1034
- Mt as a,
1035
- $a as g
1036
- };