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

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 (376) hide show
  1. package/components/buttoncopy/ButtonCopy.vue.d.ts +4 -6
  2. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
  3. package/components/index.d.ts +61 -162
  4. package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
  5. package/event-bus/index.d.ts +3 -0
  6. package/loading-page-BrQattYE.js +1 -0
  7. package/loading-page-CoC9UhfC.js +4 -0
  8. package/loading-page-DbLuqCHa.js +1 -0
  9. package/loading-page-f8D03l3G.js +4 -0
  10. package/loading-plane-CgfbWppy.js +1 -0
  11. package/loading-plane-CoXtqoc9.js +4 -0
  12. package/loading-table-Bdr9ZhtP.js +1 -0
  13. package/loading-table-ByUoWqUo.js +4 -0
  14. package/loading-table-BygEMzFM.js +4 -0
  15. package/loading-table-BzrSQlA0.js +1 -0
  16. package/loading-table-D9bw9OcI.js +4 -0
  17. package/loading-table-chOgXi94.js +1 -0
  18. package/no-data-CTKux8RI.js +4 -0
  19. package/no-data-Cgze_Rvp.js +1 -0
  20. package/{assets/lottie/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
  21. package/no-data-Dep79CBh.js +1 -0
  22. package/no-data-g0dJCy2p.js +4 -0
  23. package/no-data-y1X5WtcQ.js +1 -0
  24. package/package.json +3 -3
  25. package/stats.html +1 -1
  26. package/style.css +1 -1
  27. package/utils/index.d.ts +1 -1
  28. package/wangsvue-fats.js +52090 -144
  29. package/wangsvue-fats.system.js +312 -1
  30. package/ButtonCopy-C6DSmsOR.es.js +0 -4
  31. package/ButtonCopy-CeBlNyVx.system.js +0 -1
  32. package/ButtonSync-BLyCwwnU.system.js +0 -1
  33. package/ButtonSync-DtUhn-Q-.es.js +0 -4
  34. package/ButtonToggle-B9Fa75pf.es.js +0 -4
  35. package/ButtonToggle-CSxzlLR2.system.js +0 -1
  36. package/ButtonViewLog-B1oa4oFN.es.js +0 -4
  37. package/ButtonViewLog-_J6r7Oz8.system.js +0 -1
  38. package/Card-B19WgA6Y.es.js +0 -4
  39. package/Card-umUgd-nP.system.js +0 -1
  40. package/InputEmail-BZ5Y0wSk.system.js +0 -1
  41. package/InputEmail-DR_E1DsL.es.js +0 -4
  42. package/InputURL-DL6a94kM.system.js +0 -1
  43. package/InputURL-PVF5EUUY.es.js +0 -4
  44. package/Loading-Cq7rP88c.system.js +0 -1
  45. package/Loading-DUHTVct4.es.js +0 -4
  46. package/UserWithIcon-Ddn_GlNu.system.js +0 -1
  47. package/UserWithIcon-hWXf-A2U.es.js +0 -4
  48. package/assets/lottie/loading-page-B9ooQcfF.system.js +0 -1
  49. package/assets/lottie/loading-page-CQ0mKER2.es.js +0 -15
  50. package/assets/lottie/loading-table-B4T3FYiI.system.js +0 -1
  51. package/assets/lottie/loading-table-BnpbX8Ew.es.js +0 -15
  52. package/assets/lottie/no-data-CMWnya_k.system.js +0 -1
  53. package/async-components/index-C8nb7p3T.es.js +0 -70
  54. package/async-components/index-DvjqHrYE.system.js +0 -1
  55. package/components/animation/Animation-CCEnvZ_Z.es.js +0 -48
  56. package/components/animation/Animation-CJb4YIwm.system.js +0 -1
  57. package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +0 -127
  58. package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +0 -1
  59. package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +0 -1
  60. package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +0 -201
  61. package/components/badge/Badge-DXAyz4Z8.es.js +0 -99
  62. package/components/badge/Badge-wSExdsOP.system.js +0 -1
  63. package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +0 -1
  64. package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +0 -68
  65. package/components/basetree/BaseTree-CmBp0uwr.system.js +0 -1
  66. package/components/basetree/BaseTree-RsvvntBp.es.js +0 -167
  67. package/components/basetree/TreeNode-CUL5_2Rj.es.js +0 -499
  68. package/components/basetree/TreeNode-D-YgXird.system.js +0 -1
  69. package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +0 -1
  70. package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +0 -46
  71. package/components/button/Button-CgkhMnxo.es.js +0 -124
  72. package/components/button/Button-D892iaxz.system.js +0 -1
  73. package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +0 -1
  74. package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +0 -189
  75. package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +0 -31
  76. package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +0 -1
  77. package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +0 -61
  78. package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +0 -1
  79. package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +0 -1
  80. package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +0 -28
  81. package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +0 -83
  82. package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +0 -1
  83. package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +0 -1
  84. package/components/buttonscan/ButtonScan-mVHAdACL.es.js +0 -387
  85. package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +0 -1
  86. package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +0 -25
  87. package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +0 -1
  88. package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +0 -70
  89. package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +0 -218
  90. package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +0 -1
  91. package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +0 -1
  92. package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +0 -101
  93. package/components/buttonsync/ButtonSync-Brk16H8C.es.js +0 -29
  94. package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +0 -1
  95. package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +0 -11
  96. package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +0 -1
  97. package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +0 -21
  98. package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +0 -1
  99. package/components/calendar/BaseCalendar-5EI1UTbl.es.js +0 -867
  100. package/components/calendar/BaseCalendar-C02-gmOQ.system.js +0 -1
  101. package/components/calendar/Calendar-B2z-lfi9.es.js +0 -112
  102. package/components/calendar/Calendar-CWw4R5mN.system.js +0 -1
  103. package/components/card/Card-BccG14LV.es.js +0 -47
  104. package/components/card/Card-BjI-Xi0S.system.js +0 -1
  105. package/components/checkbox/Checkbox-DBU7Ji2C.es.js +0 -135
  106. package/components/checkbox/Checkbox-FZg_wq3C.system.js +0 -1
  107. package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +0 -127
  108. package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +0 -2
  109. package/components/customcolumn/ColumnList-fdR5JfHj.es.js +0 -159
  110. package/components/customcolumn/ColumnList-yaNVEQFA.system.js +0 -1
  111. package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +0 -139
  112. package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +0 -1
  113. package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +0 -1
  114. package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +0 -16
  115. package/components/datatable/DataTable-BH7Fk88O.es.js +0 -992
  116. package/components/datatable/DataTable-Cko2S6sM.system.js +0 -1
  117. package/components/datatable/MultiRow-B2vMSb7W.es.js +0 -52
  118. package/components/datatable/MultiRow-Sef5icam.system.js +0 -1
  119. package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +0 -37
  120. package/components/datatable/store/dataTable.store-C9376aEJ.system.js +0 -1
  121. package/components/dialog/Dialog-BCcbXSya.es.js +0 -121
  122. package/components/dialog/Dialog-Dv7Jzg4E.system.js +0 -1
  123. package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +0 -1
  124. package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +0 -139
  125. package/components/dialogform/DialogForm-DGl_NOEr.system.js +0 -1
  126. package/components/dialogform/DialogForm-tAbix3iC.es.js +0 -222
  127. package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +0 -268
  128. package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +0 -1
  129. package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +0 -121
  130. package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +0 -1
  131. package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +0 -1
  132. package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +0 -44
  133. package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +0 -71
  134. package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +0 -1
  135. package/components/dropdown/Dropdown-BNzT2uLU.system.js +0 -1
  136. package/components/dropdown/Dropdown-Dk4urj-W.es.js +0 -258
  137. package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +0 -26
  138. package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +0 -1
  139. package/components/editor/Editor-RB5MqBs1.es.js +0 -887
  140. package/components/editor/Editor-upU4Z9FH.system.js +0 -1
  141. package/components/editor/EditorButton-CC6U1a_u.system.js +0 -1
  142. package/components/editor/EditorButton-Cfew79JD.es.js +0 -28
  143. package/components/editor/MentionList-BjWKefLh.system.js +0 -1
  144. package/components/editor/MentionList-CdX0_-TK.es.js +0 -58
  145. package/components/editor/MentionSection-5I-FSwew.es.js +0 -52
  146. package/components/editor/MentionSection-CiuaeX4J.system.js +0 -3
  147. package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +0 -40
  148. package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +0 -1
  149. package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +0 -1
  150. package/components/editor/mentionSectionExtension-rbWufuMT.es.js +0 -46
  151. package/components/editor/suggestion-BcYK0KeI.system.js +0 -1
  152. package/components/editor/suggestion-mkkpQFP-.es.js +0 -41
  153. package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +0 -1
  154. package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +0 -35
  155. package/components/fileupload/FileUpload-0EHKlInu.es.js +0 -175
  156. package/components/fileupload/FileUpload-dXrsIAeC.system.js +0 -1
  157. package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +0 -234
  158. package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +0 -1
  159. package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +0 -1
  160. package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +0 -56
  161. package/components/form/Form-By85t_oI.system.js +0 -1
  162. package/components/form/Form-DhWBpdkq.es.js +0 -181
  163. package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +0 -238
  164. package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +0 -1
  165. package/components/hardwaresync/store/device.store-DEKXH36R.system.js +0 -1
  166. package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +0 -20
  167. package/components/icon/Icon-C4kXVcEX.es.js +0 -82
  168. package/components/icon/Icon-D1a666FC.system.js +0 -1
  169. package/components/image/Image-Bf5EaBWP.es.js +0 -170
  170. package/components/image/Image-Cxi0E9gK.system.js +0 -1
  171. package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +0 -1
  172. package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +0 -52
  173. package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +0 -1
  174. package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +0 -509
  175. package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +0 -46
  176. package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +0 -1
  177. package/components/index-BMti6lK3.es.js +0 -64
  178. package/components/index-DBzSxIov.system.js +0 -1
  179. package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +0 -94
  180. package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +0 -1
  181. package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +0 -1
  182. package/components/inputbadge/InputBadge-BngtjqHQ.es.js +0 -186
  183. package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +0 -1211
  184. package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +0 -1
  185. package/components/inputemail/InputEmail-8E04RVeq.system.js +0 -1
  186. package/components/inputemail/InputEmail-BFeY1l9Z.es.js +0 -49
  187. package/components/inputgroup/InputGroup-CTHxHL8n.system.js +0 -1
  188. package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +0 -56
  189. package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +0 -1
  190. package/components/inputnumber/InputNumber-CQd01PQ5.es.js +0 -232
  191. package/components/inputpassword/InputPassword-D3jaUFfR.system.js +0 -1
  192. package/components/inputpassword/InputPassword-DGWsHAB4.es.js +0 -121
  193. package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +0 -1
  194. package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +0 -162
  195. package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +0 -15
  196. package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +0 -1
  197. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +0 -423
  198. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +0 -1
  199. package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +0 -134
  200. package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +0 -1
  201. package/components/inputsearch/InputSearch-CHJP-N57.es.js +0 -53
  202. package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +0 -1
  203. package/components/inputtext/InputText-BEDxrRqK.es.js +0 -242
  204. package/components/inputtext/InputText-BOgH8xpA.system.js +0 -1
  205. package/components/inputurl/InputURL-CNrOkrAC.es.js +0 -61
  206. package/components/inputurl/InputURL-D4QWV9G7.system.js +0 -1
  207. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
  208. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
  209. package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +0 -102
  210. package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +0 -1
  211. package/components/loading/Loading-DIfTUHr7.es.js +0 -24
  212. package/components/loading/Loading-Vb4HctBJ.system.js +0 -1
  213. package/components/menu/Menu-BtzGGhbp.es.js +0 -73
  214. package/components/menu/Menu-CPm5vua_.system.js +0 -1
  215. package/components/menuitem/MenuItem-8yxkFTug.system.js +0 -1
  216. package/components/menuitem/MenuItem-uLVAqgBS.es.js +0 -65
  217. package/components/multiselect/MultiSelect-BoPpQ31j.es.js +0 -189
  218. package/components/multiselect/MultiSelect-D5NEDtGe.system.js +0 -1
  219. package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +0 -1
  220. package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +0 -49
  221. package/components/tabmenu/TabMenu-BBk8EW-C.system.js +0 -1
  222. package/components/tabmenu/TabMenu-ByKBaVsd.es.js +0 -108
  223. package/components/tagtype/TagType-CAXomDiD.es.js +0 -49
  224. package/components/tagtype/TagType-i4RK2JbL.system.js +0 -1
  225. package/components/textarea/Textarea-CnAlgPq5.es.js +0 -108
  226. package/components/textarea/Textarea-qirKOw5z.system.js +0 -1
  227. package/components/timeline/Timeline-CF2qJo4E.es.js +0 -120
  228. package/components/timeline/Timeline-DKfKWZFI.system.js +0 -1
  229. package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +0 -108
  230. package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +0 -1
  231. package/components/toast/Toast-C3D50rGo.system.js +0 -1
  232. package/components/toast/Toast-DRUJCz4I.es.js +0 -74
  233. package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +0 -90
  234. package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +0 -1
  235. package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +0 -223
  236. package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +0 -1
  237. package/components/tree/Tree-93NvdElH.es.js +0 -267
  238. package/components/tree/Tree-BTTVTAEH.system.js +0 -1
  239. package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +0 -1
  240. package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +0 -10
  241. package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +0 -1
  242. package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +0 -56
  243. package/components/username/UserName-A1N6Q7bS.system.js +0 -1
  244. package/components/username/UserName-D5C0qdbu.es.js +0 -132
  245. package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +0 -18
  246. package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +0 -1
  247. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
  248. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
  249. package/config/config.esm-BZepf1kR.system.js +0 -1
  250. package/config/config.esm-Drl0fECZ.es.js +0 -212
  251. package/config/defaultProps-B3syHUKt.system.js +0 -1
  252. package/config/defaultProps-BC_lvAG9.es.js +0 -136
  253. package/config/locale-DK6d2rJ3.system.js +0 -1
  254. package/config/locale-pQnRpNZ6.es.js +0 -85
  255. package/event-bus/index-CykcrsqY.system.js +0 -1
  256. package/event-bus/index-PQwO5T6B.es.js +0 -6
  257. package/event-bus/mitt-BjeF6e5j.es.js +0 -53
  258. package/event-bus/mitt-X_X8W9w9.system.js +0 -1
  259. package/plugins/WangsVue-Dl5OiLXF.es.js +0 -332
  260. package/plugins/WangsVue-Dugc3GRS.system.js +0 -1
  261. package/plugins/i18n-BVujDShu.system.js +0 -1
  262. package/plugins/i18n-CIoi8go0.es.js +0 -89
  263. package/utils/addAttachment.util-CPzZEHNG.system.js +0 -1
  264. package/utils/addAttachment.util-D9sYCBjS.es.js +0 -10
  265. package/utils/computeAutoPlacement-Ac2MkS5B.es.js +0 -33
  266. package/utils/computeAutoPlacement-DCaci6j-.system.js +0 -1
  267. package/utils/computeOffsets-Cx9i84Mn.system.js +0 -1
  268. package/utils/computeOffsets-DXWJPq7f.es.js +0 -56
  269. package/utils/date.util-DbjB32co.es.js +0 -198
  270. package/utils/date.util-rX9kq_yC.system.js +0 -1
  271. package/utils/detectOverflow-BrAC_sJF.system.js +0 -1
  272. package/utils/detectOverflow-CETbaen7.es.js +0 -88
  273. package/utils/exportToExcel.util-Bf-PpzHW.system.js +0 -1
  274. package/utils/exportToExcel.util-jz7aU08m.es.js +0 -32
  275. package/utils/genPlaceholder.util-0UuDQpbx.es.js +0 -37
  276. package/utils/genPlaceholder.util-CxMG7LbT.system.js +0 -1
  277. package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +0 -9
  278. package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +0 -1
  279. package/utils/object.util-6veM2gu5.es.js +0 -51
  280. package/utils/object.util-uApor4uP.system.js +0 -1
  281. package/utils/orderModifiers-qXBm1wkD.system.js +0 -1
  282. package/utils/orderModifiers-rOag5Cyh.es.js +0 -31
  283. package/utils/role.util-BdUNoOqf.es.js +0 -67
  284. package/utils/role.util-Co8OMWnc.system.js +0 -1
  285. package/utils/textFormatter.util-BjenkyWf.system.js +0 -1
  286. package/utils/textFormatter.util-CYul3RpH.es.js +0 -21
  287. package/utils/toast.util-C7p3h9XQ.es.js +0 -52
  288. package/utils/toast.util-DPtauJUV.system.js +0 -1
  289. package/utils/utils.esm-iwnsFuDg.system.js +0 -23
  290. package/utils/utils.esm-s_-kLKXf.es.js +0 -1080
  291. package/utils/xlsx.util-FKEpiU2t.system.js +0 -1
  292. package/utils/xlsx.util-LU1upHR3.es.js +0 -8
  293. package/vendor/@popperjs/core-DFLwc7xU.system.js +0 -1
  294. package/vendor/@popperjs/core-DJHUrK4e.es.js +0 -748
  295. package/vendor/@tiptap/core-D4rHEGhs.system.js +0 -80
  296. package/vendor/@tiptap/core-DSbPv8xh.es.js +0 -2868
  297. package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +0 -71
  298. package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +0 -1
  299. package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +0 -1
  300. package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +0 -128
  301. package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +0 -53
  302. package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +0 -1
  303. package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +0 -51
  304. package/vendor/@tiptap/extension-code-SOANT0O3.system.js +0 -1
  305. package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +0 -99
  306. package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +0 -1
  307. package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +0 -54
  308. package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +0 -1
  309. package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +0 -1
  310. package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +0 -35
  311. package/vendor/@tiptap/extension-image-BNa6azmK.system.js +0 -1
  312. package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +0 -64
  313. package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +0 -70
  314. package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +0 -1
  315. package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +0 -262
  316. package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +0 -1
  317. package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +0 -1
  318. package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +0 -33
  319. package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +0 -130
  320. package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +0 -1
  321. package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +0 -71
  322. package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +0 -1
  323. package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +0 -52
  324. package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +0 -1
  325. package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +0 -40
  326. package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +0 -1
  327. package/vendor/@tiptap/suggestion-B3Grok9m.system.js +0 -1
  328. package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +0 -131
  329. package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +0 -436
  330. package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +0 -1
  331. package/vendor/highlight.js-ClnJXT0q.system.js +0 -2
  332. package/vendor/highlight.js-Czlvg6fB.es.js +0 -2493
  333. package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
  334. package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
  335. package/vendor/lodash-B6nNLFd3.es.js +0 -127
  336. package/vendor/lodash-BuO1dYnQ.system.js +0 -1
  337. package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
  338. package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
  339. package/vendor/orderedmap-B3SOk52B.es.js +0 -103
  340. package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
  341. package/vendor/primevue-C5Z_k4WB.system.js +0 -171
  342. package/vendor/primevue-DkBtKf1Y.es.js +0 -12649
  343. package/vendor/prosemirror-commands-CUjo-x4s.es.js +0 -383
  344. package/vendor/prosemirror-commands-Dn6KNBP0.system.js +0 -2
  345. package/vendor/prosemirror-history-BPOe4I2H.es.js +0 -248
  346. package/vendor/prosemirror-history-BTrzvpc-.system.js +0 -1
  347. package/vendor/prosemirror-keymap-BvIUhswp.es.js +0 -60
  348. package/vendor/prosemirror-keymap-WRY9zVpK.system.js +0 -1
  349. package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
  350. package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
  351. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
  352. package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +0 -1
  353. package/vendor/prosemirror-state-BW6XGB3U.es.js +0 -820
  354. package/vendor/prosemirror-state-COJ-aZZ4.system.js +0 -1
  355. package/vendor/prosemirror-transform-BXNgAhmF.system.js +0 -2
  356. package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
  357. package/vendor/prosemirror-view-C9ZQp8VZ.es.js +0 -3742
  358. package/vendor/prosemirror-view-DOxSTbB-.system.js +0 -5
  359. package/vendor/rope-sequence-4t46C6az.system.js +0 -1
  360. package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
  361. package/vendor/simplebar-core-CtWK1-xd.system.js +0 -1
  362. package/vendor/simplebar-core-ofTx4QqK.es.js +0 -333
  363. package/vendor/simplebar-vue-BHVrvuf1.system.js +0 -1
  364. package/vendor/simplebar-vue-dpCx-K7E.es.js +0 -176
  365. package/vendor/tippy.js-6wuFov1j.system.js +0 -1
  366. package/vendor/tippy.js-i1ic-msv.es.js +0 -721
  367. package/vendor/uuid-93tp0umt.es.js +0 -9
  368. package/vendor/uuid-Cymn6orr.system.js +0 -1
  369. package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
  370. package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
  371. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
  372. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
  373. package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
  374. package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
  375. /package/{assets/lottie/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
  376. /package/{assets/lottie/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
@@ -1,820 +0,0 @@
1
- import { N as x, b as m, F as B, M as J } from "./prosemirror-model-D2n-Dx_L.es.js";
2
- import { T as P, R as K, b as $ } from "./prosemirror-transform-DvAmofec.es.js";
3
- const M = /* @__PURE__ */ Object.create(null);
4
- class l {
5
- /**
6
- Initialize a selection with the head and anchor and ranges. If no
7
- ranges are given, constructs a single range across `$anchor` and
8
- `$head`.
9
- */
10
- constructor(e, t, r) {
11
- this.$anchor = e, this.$head = t, this.ranges = r || [new q(e.min(t), e.max(t))];
12
- }
13
- /**
14
- The selection's anchor, as an unresolved position.
15
- */
16
- get anchor() {
17
- return this.$anchor.pos;
18
- }
19
- /**
20
- The selection's head.
21
- */
22
- get head() {
23
- return this.$head.pos;
24
- }
25
- /**
26
- The lower bound of the selection's main range.
27
- */
28
- get from() {
29
- return this.$from.pos;
30
- }
31
- /**
32
- The upper bound of the selection's main range.
33
- */
34
- get to() {
35
- return this.$to.pos;
36
- }
37
- /**
38
- The resolved lower bound of the selection's main range.
39
- */
40
- get $from() {
41
- return this.ranges[0].$from;
42
- }
43
- /**
44
- The resolved upper bound of the selection's main range.
45
- */
46
- get $to() {
47
- return this.ranges[0].$to;
48
- }
49
- /**
50
- Indicates whether the selection contains any content.
51
- */
52
- get empty() {
53
- let e = this.ranges;
54
- for (let t = 0; t < e.length; t++)
55
- if (e[t].$from.pos != e[t].$to.pos)
56
- return !1;
57
- return !0;
58
- }
59
- /**
60
- Get the content of this selection as a slice.
61
- */
62
- content() {
63
- return this.$from.doc.slice(this.from, this.to, !0);
64
- }
65
- /**
66
- Replace the selection with a slice or, if no slice is given,
67
- delete the selection. Will append to the given transaction.
68
- */
69
- replace(e, t = m.empty) {
70
- let r = t.content.lastChild, n = null;
71
- for (let a = 0; a < t.openEnd; a++)
72
- n = r, r = r.lastChild;
73
- let s = e.steps.length, o = this.ranges;
74
- for (let a = 0; a < o.length; a++) {
75
- let { $from: c, $to: u } = o[a], h = e.mapping.slice(s);
76
- e.replaceRange(h.map(c.pos), h.map(u.pos), a ? m.empty : t), a == 0 && I(e, s, (r ? r.isInline : n && n.isTextblock) ? -1 : 1);
77
- }
78
- }
79
- /**
80
- Replace the selection with the given node, appending the changes
81
- to the given transaction.
82
- */
83
- replaceWith(e, t) {
84
- let r = e.steps.length, n = this.ranges;
85
- for (let s = 0; s < n.length; s++) {
86
- let { $from: o, $to: a } = n[s], c = e.mapping.slice(r), u = c.map(o.pos), h = c.map(a.pos);
87
- s ? e.deleteRange(u, h) : (e.replaceRangeWith(u, h, t), I(e, r, t.isInline ? -1 : 1));
88
- }
89
- }
90
- /**
91
- Find a valid cursor or leaf node selection starting at the given
92
- position and searching back if `dir` is negative, and forward if
93
- positive. When `textOnly` is true, only consider cursor
94
- selections. Will return null when no valid selection position is
95
- found.
96
- */
97
- static findFrom(e, t, r = !1) {
98
- let n = e.parent.inlineContent ? new f(e) : g(e.node(0), e.parent, e.pos, e.index(), t, r);
99
- if (n)
100
- return n;
101
- for (let s = e.depth - 1; s >= 0; s--) {
102
- let o = t < 0 ? g(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : g(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
103
- if (o)
104
- return o;
105
- }
106
- return null;
107
- }
108
- /**
109
- Find a valid cursor or leaf node selection near the given
110
- position. Searches forward first by default, but if `bias` is
111
- negative, it will search backwards first.
112
- */
113
- static near(e, t = 1) {
114
- return this.findFrom(e, t) || this.findFrom(e, -t) || new d(e.node(0));
115
- }
116
- /**
117
- Find the cursor or leaf node selection closest to the start of
118
- the given document. Will return an
119
- [`AllSelection`](https://prosemirror.net/docs/ref/#state.AllSelection) if no valid position
120
- exists.
121
- */
122
- static atStart(e) {
123
- return g(e, e, 0, 0, 1) || new d(e);
124
- }
125
- /**
126
- Find the cursor or leaf node selection closest to the end of the
127
- given document.
128
- */
129
- static atEnd(e) {
130
- return g(e, e, e.content.size, e.childCount, -1) || new d(e);
131
- }
132
- /**
133
- Deserialize the JSON representation of a selection. Must be
134
- implemented for custom classes (as a static class method).
135
- */
136
- static fromJSON(e, t) {
137
- if (!t || !t.type)
138
- throw new RangeError("Invalid input for Selection.fromJSON");
139
- let r = M[t.type];
140
- if (!r)
141
- throw new RangeError(`No selection type ${t.type} defined`);
142
- return r.fromJSON(e, t);
143
- }
144
- /**
145
- To be able to deserialize selections from JSON, custom selection
146
- classes must register themselves with an ID string, so that they
147
- can be disambiguated. Try to pick something that's unlikely to
148
- clash with classes from other modules.
149
- */
150
- static jsonID(e, t) {
151
- if (e in M)
152
- throw new RangeError("Duplicate use of selection JSON ID " + e);
153
- return M[e] = t, t.prototype.jsonID = e, t;
154
- }
155
- /**
156
- Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
157
- which is a value that can be mapped without having access to a
158
- current document, and later resolved to a real selection for a
159
- given document again. (This is used mostly by the history to
160
- track and restore old selections.) The default implementation of
161
- this method just converts the selection to a text selection and
162
- returns the bookmark for that.
163
- */
164
- getBookmark() {
165
- return f.between(this.$anchor, this.$head).getBookmark();
166
- }
167
- }
168
- l.prototype.visible = !0;
169
- class q {
170
- /**
171
- Create a range.
172
- */
173
- constructor(e, t) {
174
- this.$from = e, this.$to = t;
175
- }
176
- }
177
- let R = !1;
178
- function T(i) {
179
- !R && !i.parent.inlineContent && (R = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + i.parent.type.name + ")"));
180
- }
181
- class f extends l {
182
- /**
183
- Construct a text selection between the given points.
184
- */
185
- constructor(e, t = e) {
186
- T(e), T(t), super(e, t);
187
- }
188
- /**
189
- Returns a resolved position if this is a cursor selection (an
190
- empty text selection), and null otherwise.
191
- */
192
- get $cursor() {
193
- return this.$anchor.pos == this.$head.pos ? this.$head : null;
194
- }
195
- map(e, t) {
196
- let r = e.resolve(t.map(this.head));
197
- if (!r.parent.inlineContent)
198
- return l.near(r);
199
- let n = e.resolve(t.map(this.anchor));
200
- return new f(n.parent.inlineContent ? n : r, r);
201
- }
202
- replace(e, t = m.empty) {
203
- if (super.replace(e, t), t == m.empty) {
204
- let r = this.$from.marksAcross(this.$to);
205
- r && e.ensureMarks(r);
206
- }
207
- }
208
- eq(e) {
209
- return e instanceof f && e.anchor == this.anchor && e.head == this.head;
210
- }
211
- getBookmark() {
212
- return new k(this.anchor, this.head);
213
- }
214
- toJSON() {
215
- return { type: "text", anchor: this.anchor, head: this.head };
216
- }
217
- /**
218
- @internal
219
- */
220
- static fromJSON(e, t) {
221
- if (typeof t.anchor != "number" || typeof t.head != "number")
222
- throw new RangeError("Invalid input for TextSelection.fromJSON");
223
- return new f(e.resolve(t.anchor), e.resolve(t.head));
224
- }
225
- /**
226
- Create a text selection from non-resolved positions.
227
- */
228
- static create(e, t, r = t) {
229
- let n = e.resolve(t);
230
- return new this(n, r == t ? n : e.resolve(r));
231
- }
232
- /**
233
- Return a text selection that spans the given positions or, if
234
- they aren't text positions, find a text selection near them.
235
- `bias` determines whether the method searches forward (default)
236
- or backwards (negative number) first. Will fall back to calling
237
- [`Selection.near`](https://prosemirror.net/docs/ref/#state.Selection^near) when the document
238
- doesn't contain a valid text position.
239
- */
240
- static between(e, t, r) {
241
- let n = e.pos - t.pos;
242
- if ((!r || n) && (r = n >= 0 ? 1 : -1), !t.parent.inlineContent) {
243
- let s = l.findFrom(t, r, !0) || l.findFrom(t, -r, !0);
244
- if (s)
245
- t = s.$head;
246
- else
247
- return l.near(t, r);
248
- }
249
- return e.parent.inlineContent || (n == 0 ? e = t : (e = (l.findFrom(e, -r, !0) || l.findFrom(e, r, !0)).$anchor, e.pos < t.pos != n < 0 && (e = t))), new f(e, t);
250
- }
251
- }
252
- l.jsonID("text", f);
253
- class k {
254
- constructor(e, t) {
255
- this.anchor = e, this.head = t;
256
- }
257
- map(e) {
258
- return new k(e.map(this.anchor), e.map(this.head));
259
- }
260
- resolve(e) {
261
- return f.between(e.resolve(this.anchor), e.resolve(this.head));
262
- }
263
- }
264
- class p extends l {
265
- /**
266
- Create a node selection. Does not verify the validity of its
267
- argument.
268
- */
269
- constructor(e) {
270
- let t = e.nodeAfter, r = e.node(0).resolve(e.pos + t.nodeSize);
271
- super(e, r), this.node = t;
272
- }
273
- map(e, t) {
274
- let { deleted: r, pos: n } = t.mapResult(this.anchor), s = e.resolve(n);
275
- return r ? l.near(s) : new p(s);
276
- }
277
- content() {
278
- return new m(B.from(this.node), 0, 0);
279
- }
280
- eq(e) {
281
- return e instanceof p && e.anchor == this.anchor;
282
- }
283
- toJSON() {
284
- return { type: "node", anchor: this.anchor };
285
- }
286
- getBookmark() {
287
- return new N(this.anchor);
288
- }
289
- /**
290
- @internal
291
- */
292
- static fromJSON(e, t) {
293
- if (typeof t.anchor != "number")
294
- throw new RangeError("Invalid input for NodeSelection.fromJSON");
295
- return new p(e.resolve(t.anchor));
296
- }
297
- /**
298
- Create a node selection from non-resolved positions.
299
- */
300
- static create(e, t) {
301
- return new p(e.resolve(t));
302
- }
303
- /**
304
- Determines whether the given node may be selected as a node
305
- selection.
306
- */
307
- static isSelectable(e) {
308
- return !e.isText && e.type.spec.selectable !== !1;
309
- }
310
- }
311
- p.prototype.visible = !1;
312
- l.jsonID("node", p);
313
- class N {
314
- constructor(e) {
315
- this.anchor = e;
316
- }
317
- map(e) {
318
- let { deleted: t, pos: r } = e.mapResult(this.anchor);
319
- return t ? new k(r, r) : new N(r);
320
- }
321
- resolve(e) {
322
- let t = e.resolve(this.anchor), r = t.nodeAfter;
323
- return r && p.isSelectable(r) ? new p(t) : l.near(t);
324
- }
325
- }
326
- class d extends l {
327
- /**
328
- Create an all-selection over the given document.
329
- */
330
- constructor(e) {
331
- super(e.resolve(0), e.resolve(e.content.size));
332
- }
333
- replace(e, t = m.empty) {
334
- if (t == m.empty) {
335
- e.delete(0, e.doc.content.size);
336
- let r = l.atStart(e.doc);
337
- r.eq(e.selection) || e.setSelection(r);
338
- } else
339
- super.replace(e, t);
340
- }
341
- toJSON() {
342
- return { type: "all" };
343
- }
344
- /**
345
- @internal
346
- */
347
- static fromJSON(e) {
348
- return new d(e);
349
- }
350
- map(e) {
351
- return new d(e);
352
- }
353
- eq(e) {
354
- return e instanceof d;
355
- }
356
- getBookmark() {
357
- return z;
358
- }
359
- }
360
- l.jsonID("all", d);
361
- const z = {
362
- map() {
363
- return this;
364
- },
365
- resolve(i) {
366
- return new d(i);
367
- }
368
- };
369
- function g(i, e, t, r, n, s = !1) {
370
- if (e.inlineContent)
371
- return f.create(i, t);
372
- for (let o = r - (n > 0 ? 0 : 1); n > 0 ? o < e.childCount : o >= 0; o += n) {
373
- let a = e.child(o);
374
- if (a.isAtom) {
375
- if (!s && p.isSelectable(a))
376
- return p.create(i, t - (n < 0 ? a.nodeSize : 0));
377
- } else {
378
- let c = g(i, a, t + n, n < 0 ? a.childCount : 0, n, s);
379
- if (c)
380
- return c;
381
- }
382
- t += a.nodeSize * n;
383
- }
384
- return null;
385
- }
386
- function I(i, e, t) {
387
- let r = i.steps.length - 1;
388
- if (r < e)
389
- return;
390
- let n = i.steps[r];
391
- if (!(n instanceof K || n instanceof $))
392
- return;
393
- let s = i.mapping.maps[r], o;
394
- s.forEach((a, c, u, h) => {
395
- o == null && (o = h);
396
- }), i.setSelection(l.near(i.doc.resolve(o), t));
397
- }
398
- const b = 1, E = 2, F = 4;
399
- class W extends P {
400
- /**
401
- @internal
402
- */
403
- constructor(e) {
404
- super(e.doc), this.curSelectionFor = 0, this.updated = 0, this.meta = /* @__PURE__ */ Object.create(null), this.time = Date.now(), this.curSelection = e.selection, this.storedMarks = e.storedMarks;
405
- }
406
- /**
407
- The transaction's current selection. This defaults to the editor
408
- selection [mapped](https://prosemirror.net/docs/ref/#state.Selection.map) through the steps in the
409
- transaction, but can be overwritten with
410
- [`setSelection`](https://prosemirror.net/docs/ref/#state.Transaction.setSelection).
411
- */
412
- get selection() {
413
- return this.curSelectionFor < this.steps.length && (this.curSelection = this.curSelection.map(this.doc, this.mapping.slice(this.curSelectionFor)), this.curSelectionFor = this.steps.length), this.curSelection;
414
- }
415
- /**
416
- Update the transaction's current selection. Will determine the
417
- selection that the editor gets when the transaction is applied.
418
- */
419
- setSelection(e) {
420
- if (e.$from.doc != this.doc)
421
- throw new RangeError("Selection passed to setSelection must point at the current document");
422
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | b) & -3, this.storedMarks = null, this;
423
- }
424
- /**
425
- Whether the selection was explicitly updated by this transaction.
426
- */
427
- get selectionSet() {
428
- return (this.updated & b) > 0;
429
- }
430
- /**
431
- Set the current stored marks.
432
- */
433
- setStoredMarks(e) {
434
- return this.storedMarks = e, this.updated |= E, this;
435
- }
436
- /**
437
- Make sure the current stored marks or, if that is null, the marks
438
- at the selection, match the given set of marks. Does nothing if
439
- this is already the case.
440
- */
441
- ensureMarks(e) {
442
- return J.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
443
- }
444
- /**
445
- Add a mark to the set of stored marks.
446
- */
447
- addStoredMark(e) {
448
- return this.ensureMarks(e.addToSet(this.storedMarks || this.selection.$head.marks()));
449
- }
450
- /**
451
- Remove a mark or mark type from the set of stored marks.
452
- */
453
- removeStoredMark(e) {
454
- return this.ensureMarks(e.removeFromSet(this.storedMarks || this.selection.$head.marks()));
455
- }
456
- /**
457
- Whether the stored marks were explicitly set for this transaction.
458
- */
459
- get storedMarksSet() {
460
- return (this.updated & E) > 0;
461
- }
462
- /**
463
- @internal
464
- */
465
- addStep(e, t) {
466
- super.addStep(e, t), this.updated = this.updated & -3, this.storedMarks = null;
467
- }
468
- /**
469
- Update the timestamp for the transaction.
470
- */
471
- setTime(e) {
472
- return this.time = e, this;
473
- }
474
- /**
475
- Replace the current selection with the given slice.
476
- */
477
- replaceSelection(e) {
478
- return this.selection.replace(this, e), this;
479
- }
480
- /**
481
- Replace the selection with the given node. When `inheritMarks` is
482
- true and the content is inline, it inherits the marks from the
483
- place where it is inserted.
484
- */
485
- replaceSelectionWith(e, t = !0) {
486
- let r = this.selection;
487
- return t && (e = e.mark(this.storedMarks || (r.empty ? r.$from.marks() : r.$from.marksAcross(r.$to) || J.none))), r.replaceWith(this, e), this;
488
- }
489
- /**
490
- Delete the selection.
491
- */
492
- deleteSelection() {
493
- return this.selection.replace(this), this;
494
- }
495
- /**
496
- Replace the given range, or the selection if no range is given,
497
- with a text node containing the given string.
498
- */
499
- insertText(e, t, r) {
500
- let n = this.doc.type.schema;
501
- if (t == null)
502
- return e ? this.replaceSelectionWith(n.text(e), !0) : this.deleteSelection();
503
- {
504
- if (r == null && (r = t), r = r ?? t, !e)
505
- return this.deleteRange(t, r);
506
- let s = this.storedMarks;
507
- if (!s) {
508
- let o = this.doc.resolve(t);
509
- s = r == t ? o.marks() : o.marksAcross(this.doc.resolve(r));
510
- }
511
- return this.replaceRangeWith(t, r, n.text(e, s)), this.selection.empty || this.setSelection(l.near(this.selection.$to)), this;
512
- }
513
- }
514
- /**
515
- Store a metadata property in this transaction, keyed either by
516
- name or by plugin.
517
- */
518
- setMeta(e, t) {
519
- return this.meta[typeof e == "string" ? e : e.key] = t, this;
520
- }
521
- /**
522
- Retrieve a metadata property for a given name or plugin.
523
- */
524
- getMeta(e) {
525
- return this.meta[typeof e == "string" ? e : e.key];
526
- }
527
- /**
528
- Returns true if this transaction doesn't contain any metadata,
529
- and can thus safely be extended.
530
- */
531
- get isGeneric() {
532
- for (let e in this.meta)
533
- return !1;
534
- return !0;
535
- }
536
- /**
537
- Indicate that the editor should scroll the selection into view
538
- when updated to the state produced by this transaction.
539
- */
540
- scrollIntoView() {
541
- return this.updated |= F, this;
542
- }
543
- /**
544
- True when this transaction has had `scrollIntoView` called on it.
545
- */
546
- get scrolledIntoView() {
547
- return (this.updated & F) > 0;
548
- }
549
- }
550
- function D(i, e) {
551
- return !e || !i ? i : i.bind(e);
552
- }
553
- class S {
554
- constructor(e, t, r) {
555
- this.name = e, this.init = D(t.init, r), this.apply = D(t.apply, r);
556
- }
557
- }
558
- const L = [
559
- new S("doc", {
560
- init(i) {
561
- return i.doc || i.schema.topNodeType.createAndFill();
562
- },
563
- apply(i) {
564
- return i.doc;
565
- }
566
- }),
567
- new S("selection", {
568
- init(i, e) {
569
- return i.selection || l.atStart(e.doc);
570
- },
571
- apply(i) {
572
- return i.selection;
573
- }
574
- }),
575
- new S("storedMarks", {
576
- init(i) {
577
- return i.storedMarks || null;
578
- },
579
- apply(i, e, t, r) {
580
- return r.selection.$cursor ? i.storedMarks : null;
581
- }
582
- }),
583
- new S("scrollToSelection", {
584
- init() {
585
- return 0;
586
- },
587
- apply(i, e) {
588
- return i.scrolledIntoView ? e + 1 : e;
589
- }
590
- })
591
- ];
592
- class O {
593
- constructor(e, t) {
594
- this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = L.slice(), t && t.forEach((r) => {
595
- if (this.pluginsByKey[r.key])
596
- throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
597
- this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new S(r.key, r.spec.state, r));
598
- });
599
- }
600
- }
601
- class w {
602
- /**
603
- @internal
604
- */
605
- constructor(e) {
606
- this.config = e;
607
- }
608
- /**
609
- The schema of the state's document.
610
- */
611
- get schema() {
612
- return this.config.schema;
613
- }
614
- /**
615
- The plugins that are active in this state.
616
- */
617
- get plugins() {
618
- return this.config.plugins;
619
- }
620
- /**
621
- Apply the given transaction to produce a new state.
622
- */
623
- apply(e) {
624
- return this.applyTransaction(e).state;
625
- }
626
- /**
627
- @internal
628
- */
629
- filterTransaction(e, t = -1) {
630
- for (let r = 0; r < this.config.plugins.length; r++)
631
- if (r != t) {
632
- let n = this.config.plugins[r];
633
- if (n.spec.filterTransaction && !n.spec.filterTransaction.call(n, e, this))
634
- return !1;
635
- }
636
- return !0;
637
- }
638
- /**
639
- Verbose variant of [`apply`](https://prosemirror.net/docs/ref/#state.EditorState.apply) that
640
- returns the precise transactions that were applied (which might
641
- be influenced by the [transaction
642
- hooks](https://prosemirror.net/docs/ref/#state.PluginSpec.filterTransaction) of
643
- plugins) along with the new state.
644
- */
645
- applyTransaction(e) {
646
- if (!this.filterTransaction(e))
647
- return { state: this, transactions: [] };
648
- let t = [e], r = this.applyInner(e), n = null;
649
- for (; ; ) {
650
- let s = !1;
651
- for (let o = 0; o < this.config.plugins.length; o++) {
652
- let a = this.config.plugins[o];
653
- if (a.spec.appendTransaction) {
654
- let c = n ? n[o].n : 0, u = n ? n[o].state : this, h = c < t.length && a.spec.appendTransaction.call(a, c ? t.slice(c) : t, u, r);
655
- if (h && r.filterTransaction(h, o)) {
656
- if (h.setMeta("appendedTransaction", e), !n) {
657
- n = [];
658
- for (let y = 0; y < this.config.plugins.length; y++)
659
- n.push(y < o ? { state: r, n: t.length } : { state: this, n: 0 });
660
- }
661
- t.push(h), r = r.applyInner(h), s = !0;
662
- }
663
- n && (n[o] = { state: r, n: t.length });
664
- }
665
- }
666
- if (!s)
667
- return { state: r, transactions: t };
668
- }
669
- }
670
- /**
671
- @internal
672
- */
673
- applyInner(e) {
674
- if (!e.before.eq(this.doc))
675
- throw new RangeError("Applying a mismatched transaction");
676
- let t = new w(this.config), r = this.config.fields;
677
- for (let n = 0; n < r.length; n++) {
678
- let s = r[n];
679
- t[s.name] = s.apply(e, this[s.name], this, t);
680
- }
681
- return t;
682
- }
683
- /**
684
- Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
685
- */
686
- get tr() {
687
- return new W(this);
688
- }
689
- /**
690
- Create a new state.
691
- */
692
- static create(e) {
693
- let t = new O(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new w(t);
694
- for (let n = 0; n < t.fields.length; n++)
695
- r[t.fields[n].name] = t.fields[n].init(e, r);
696
- return r;
697
- }
698
- /**
699
- Create a new state based on this one, but with an adjusted set
700
- of active plugins. State fields that exist in both sets of
701
- plugins are kept unchanged. Those that no longer exist are
702
- dropped, and those that are new are initialized using their
703
- [`init`](https://prosemirror.net/docs/ref/#state.StateField.init) method, passing in the new
704
- configuration object..
705
- */
706
- reconfigure(e) {
707
- let t = new O(this.schema, e.plugins), r = t.fields, n = new w(t);
708
- for (let s = 0; s < r.length; s++) {
709
- let o = r[s].name;
710
- n[o] = this.hasOwnProperty(o) ? this[o] : r[s].init(e, n);
711
- }
712
- return n;
713
- }
714
- /**
715
- Serialize this state to JSON. If you want to serialize the state
716
- of plugins, pass an object mapping property names to use in the
717
- resulting JSON object to plugin objects. The argument may also be
718
- a string or number, in which case it is ignored, to support the
719
- way `JSON.stringify` calls `toString` methods.
720
- */
721
- toJSON(e) {
722
- let t = { doc: this.doc.toJSON(), selection: this.selection.toJSON() };
723
- if (this.storedMarks && (t.storedMarks = this.storedMarks.map((r) => r.toJSON())), e && typeof e == "object")
724
- for (let r in e) {
725
- if (r == "doc" || r == "selection")
726
- throw new RangeError("The JSON fields `doc` and `selection` are reserved");
727
- let n = e[r], s = n.spec.state;
728
- s && s.toJSON && (t[r] = s.toJSON.call(n, this[n.key]));
729
- }
730
- return t;
731
- }
732
- /**
733
- Deserialize a JSON representation of a state. `config` should
734
- have at least a `schema` field, and should contain array of
735
- plugins to initialize the state with. `pluginFields` can be used
736
- to deserialize the state of plugins, by associating plugin
737
- instances with the property names they use in the JSON object.
738
- */
739
- static fromJSON(e, t, r) {
740
- if (!t)
741
- throw new RangeError("Invalid input for EditorState.fromJSON");
742
- if (!e.schema)
743
- throw new RangeError("Required config field 'schema' missing");
744
- let n = new O(e.schema, e.plugins), s = new w(n);
745
- return n.fields.forEach((o) => {
746
- if (o.name == "doc")
747
- s.doc = x.fromJSON(e.schema, t.doc);
748
- else if (o.name == "selection")
749
- s.selection = l.fromJSON(s.doc, t.selection);
750
- else if (o.name == "storedMarks")
751
- t.storedMarks && (s.storedMarks = t.storedMarks.map(e.schema.markFromJSON));
752
- else {
753
- if (r)
754
- for (let a in r) {
755
- let c = r[a], u = c.spec.state;
756
- if (c.key == o.name && u && u.fromJSON && Object.prototype.hasOwnProperty.call(t, a)) {
757
- s[o.name] = u.fromJSON.call(c, e, t[a], s);
758
- return;
759
- }
760
- }
761
- s[o.name] = o.init(e, s);
762
- }
763
- }), s;
764
- }
765
- }
766
- function A(i, e, t) {
767
- for (let r in i) {
768
- let n = i[r];
769
- n instanceof Function ? n = n.bind(e) : r == "handleDOMEvents" && (n = A(n, e, {})), t[r] = n;
770
- }
771
- return t;
772
- }
773
- class G {
774
- /**
775
- Create a plugin.
776
- */
777
- constructor(e) {
778
- this.spec = e, this.props = {}, e.props && A(e.props, this, this.props), this.key = e.key ? e.key.key : C("plugin");
779
- }
780
- /**
781
- Extract the plugin's state field from an editor state.
782
- */
783
- getState(e) {
784
- return e[this.key];
785
- }
786
- }
787
- const v = /* @__PURE__ */ Object.create(null);
788
- function C(i) {
789
- return i in v ? i + "$" + ++v[i] : (v[i] = 0, i + "$");
790
- }
791
- class H {
792
- /**
793
- Create a plugin key.
794
- */
795
- constructor(e = "key") {
796
- this.key = C(e);
797
- }
798
- /**
799
- Get the active plugin with this key, if any, from an editor
800
- state.
801
- */
802
- get(e) {
803
- return e.config.pluginsByKey[this.key];
804
- }
805
- /**
806
- Get the plugin's state from an editor state.
807
- */
808
- getState(e) {
809
- return e[this.key];
810
- }
811
- }
812
- export {
813
- d as A,
814
- w as E,
815
- p as N,
816
- G as P,
817
- l as S,
818
- f as T,
819
- H as a
820
- };