@vc-shell/framework 1.1.45 → 1.1.47

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 (362) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/core/plugins/modularity/loader.ts +137 -78
  3. package/dist/assets/042c75b764bc78a7.svg +1 -0
  4. package/dist/assets/0ba156439a339f2a.svg +1 -0
  5. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  6. package/dist/assets/0f590f8a94577092.svg +1 -0
  7. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/157b8721e0600ea8.svg +1 -0
  11. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  12. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  13. package/dist/assets/1de63eb118636cce.svg +1 -0
  14. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  15. package/dist/assets/204eaf512fde2023.svg +1 -0
  16. package/dist/assets/2088983edf42e153.svg +1 -0
  17. package/dist/assets/208f810a9321a327.svg +1 -0
  18. package/dist/assets/21220a9d10e6c558.svg +1 -0
  19. package/dist/assets/220db345a102045d.woff2 +0 -0
  20. package/dist/assets/225da11d23968333.svg +1 -0
  21. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  22. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  23. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  24. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  25. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  26. package/dist/assets/2857c513073467da.svg +1 -0
  27. package/dist/assets/2b3be7889467d98f.woff +0 -0
  28. package/dist/assets/2d4e6190eec72737.svg +1 -0
  29. package/dist/assets/2eba973185078bc8.woff +0 -0
  30. package/dist/assets/327511cd4a7ba7f9.woff +0 -0
  31. package/dist/assets/334d3f6bc766c516.woff +0 -0
  32. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  33. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  34. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  35. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  36. package/dist/assets/41275bcb979cb650.svg +1 -0
  37. package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
  38. package/dist/assets/434f7982590e462f.woff +0 -0
  39. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  40. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  41. package/dist/assets/4e43c74354534fb3.svg +1 -0
  42. package/dist/assets/4fe75f5117100705.svg +1 -0
  43. package/dist/assets/52610491f372cb0c.woff2 +0 -0
  44. package/dist/assets/52e261a005074e1b.woff +0 -0
  45. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  46. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  47. package/dist/assets/5b3661be8be679d0.woff2 +0 -0
  48. package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
  49. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  50. package/dist/assets/617c4736236e199e.woff +0 -0
  51. package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
  52. package/dist/assets/67230f05dc94a265.svg +1 -0
  53. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  54. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  55. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  56. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  57. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  58. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  59. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  60. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  61. package/dist/assets/7d970675c69fca1d.woff +0 -0
  62. package/dist/assets/7eda727273fd98d3.svg +1 -0
  63. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  64. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  65. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  66. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  67. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  68. package/dist/assets/910b0d99b9e26568.svg +1 -0
  69. package/dist/assets/91eee1aa81f72683.woff +0 -0
  70. package/dist/assets/92508f8707159b51.svg +1 -0
  71. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  72. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  73. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  74. package/dist/assets/9d37314695c0b68d.woff +0 -0
  75. package/dist/assets/a18404194e3f9047.svg +1 -0
  76. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  77. package/dist/assets/a47034e65dbcc3d7.woff +0 -0
  78. package/dist/assets/a617e11804bbacb7.woff +0 -0
  79. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  80. package/dist/assets/abf88f301a0730f4.svg +1 -0
  81. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  82. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  83. package/dist/assets/b27767411c8427be.woff +0 -0
  84. package/dist/assets/b291dc35a17511f7.woff +0 -0
  85. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  86. package/dist/assets/b372390551ca2fa1.svg +1 -0
  87. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  88. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  89. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  90. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  91. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  92. package/dist/assets/bfbe205759295eca.woff2 +0 -0
  93. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  94. package/dist/assets/cb32840ce330103f.woff +0 -0
  95. package/dist/assets/d084bda16abe8a56.svg +1 -0
  96. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  97. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  98. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  99. package/dist/assets/d5a5b8630120073d.svg +1 -0
  100. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  101. package/dist/assets/d80b05788e407de7.woff2 +0 -0
  102. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  103. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  104. package/dist/assets/e38acaa1757232e0.svg +1 -0
  105. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  106. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  107. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  108. package/dist/assets/e72bb11356af94c7.svg +1 -0
  109. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  110. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  111. package/dist/assets/f09d89268e4c0317.svg +1 -0
  112. package/dist/assets/f276d55184e05a07.woff +0 -0
  113. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  114. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  115. package/dist/assets/fcb1c1ffb5640194.woff +0 -0
  116. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  117. package/dist/assets/fed13b0d59903483.svg +1 -0
  118. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  119. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  120. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  121. package/dist/framework.js +16549 -25875
  122. package/dist/index.css +1 -1
  123. package/dist/index.d.ts +5 -8
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  127. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  128. package/dist/vendor-boolbase-Bgn9I6iN.js +21 -0
  129. package/dist/vendor-cheerio-CleDsuQZ.js +1053 -0
  130. package/dist/vendor-cheerio-select-CVkYl3Z-.js +191 -0
  131. package/dist/vendor-css-select-CtIzVIiG.js +622 -0
  132. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  133. package/dist/vendor-cypress-signalr-mock-CdKwIhWw.js +769 -0
  134. package/dist/vendor-date-fns-CdFbeoHV.js +2989 -0
  135. package/dist/vendor-dom-serializer-CugO0RdN.js +213 -0
  136. package/dist/vendor-dom7-wvIUV9pT.js +529 -0
  137. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  138. package/dist/vendor-domhandler-CL40eeX9.js +311 -0
  139. package/dist/vendor-dompurify-eYFoHPwR.js +528 -0
  140. package/dist/vendor-domutils-D3Y2YQFR.js +386 -0
  141. package/dist/vendor-entities-v26HW8wW.js +363 -0
  142. package/dist/vendor-floating-ui-core-C9uEvi1M.js +349 -0
  143. package/dist/vendor-floating-ui-dom-CZkYGmv4.js +393 -0
  144. package/dist/vendor-floating-ui-utils-Bx3BTd6_.js +259 -0
  145. package/dist/vendor-floating-ui-vue-CLOiVYP7.js +107 -0
  146. package/dist/vendor-headlessui-vue-Dg0Llidi.js +961 -0
  147. package/dist/vendor-htmlparser2-CXL_uhMI.js +735 -0
  148. package/dist/vendor-iconify-vue-D4fihzvl.js +1205 -0
  149. package/dist/vendor-intlify-core-base-Bvt2vJFV.js +1129 -0
  150. package/dist/vendor-intlify-message-compiler-1VxNzq21.js +945 -0
  151. package/dist/vendor-intlify-shared-D7kiPMOG.js +130 -0
  152. package/dist/vendor-iso-639-1-dVGfSUIM.js +781 -0
  153. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  154. package/dist/vendor-linkifyjs-DTu7SY_Y.js +705 -0
  155. package/dist/vendor-lodash-es-CrYlgAi8.js +4816 -0
  156. package/dist/vendor-markdown-it-4AJoRTAg.js +2263 -0
  157. package/dist/vendor-markdown-it-task-lists-Byg1-ms9.js +69 -0
  158. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  159. package/dist/vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js +1105 -0
  160. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js +261 -0
  161. package/dist/vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js +1809 -0
  162. package/dist/vendor-microsoft-applicationinsights-common-CDVnJ6MR.js +1921 -0
  163. package/dist/vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js +4127 -0
  164. package/dist/vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js +1399 -0
  165. package/dist/vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js +572 -0
  166. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +43 -0
  167. package/dist/vendor-microsoft-applicationinsights-web-BRuQAzjU.js +487 -0
  168. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +147 -0
  169. package/dist/vendor-microsoft-signalr-qIrag5xx.js +1761 -0
  170. package/dist/vendor-moment-CwOqp704.js +2589 -0
  171. package/dist/vendor-nevware21-ts-async-FAyg3c9V.js +260 -0
  172. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +853 -0
  173. package/dist/vendor-nth-check-BE7AeBMg.js +45 -0
  174. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  175. package/dist/vendor-parse5-DqztJOGh.js +5747 -0
  176. package/dist/vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js +143 -0
  177. package/dist/vendor-popperjs-core-LGjf7Wza.js +905 -0
  178. package/dist/vendor-prettier-D8C9GG-0.js +4858 -0
  179. package/dist/vendor-prosemirror-commands-BqYcdumy.js +344 -0
  180. package/dist/vendor-prosemirror-dropcursor-zknUsW5x.js +86 -0
  181. package/dist/vendor-prosemirror-gapcursor-DjOZhP78.js +200 -0
  182. package/dist/vendor-prosemirror-history-l8l3CFac.js +248 -0
  183. package/dist/vendor-prosemirror-keymap-C17r08p-.js +62 -0
  184. package/dist/vendor-prosemirror-markdown-WJEDhc-w.js +650 -0
  185. package/dist/vendor-prosemirror-model-BN5TnJD_.js +2736 -0
  186. package/dist/vendor-prosemirror-schema-list-CR0gi7aY.js +87 -0
  187. package/dist/vendor-prosemirror-state-B0bFP8WI.js +821 -0
  188. package/dist/vendor-prosemirror-tables-B1txTKlC.js +1711 -0
  189. package/dist/vendor-prosemirror-transform-Bo7kNPme.js +1507 -0
  190. package/dist/vendor-prosemirror-view--C7TZvmQ.js +3746 -0
  191. package/dist/vendor-punycode-js-CNI-zL6U.js +133 -0
  192. package/dist/vendor-rope-sequence-sEGCUMi8.js +100 -0
  193. package/dist/vendor-semver-BoKYtkQw.js +1021 -0
  194. package/dist/vendor-ssr-window-D4k3p53c.js +133 -0
  195. package/dist/vendor-swiper-CMVLTGu0.js +2825 -0
  196. package/dist/vendor-tippy-js-BGdgwGX-.js +812 -0
  197. package/dist/vendor-tiptap-core-BRY37Sb2.js +2806 -0
  198. package/dist/vendor-tiptap-extension-blockquote-CPd5qv-9.js +43 -0
  199. package/dist/vendor-tiptap-extension-bold-B0GwBNks.js +71 -0
  200. package/dist/vendor-tiptap-extension-bubble-menu-B0sZZld7.js +128 -0
  201. package/dist/vendor-tiptap-extension-bullet-list-CQm4ReOu.js +53 -0
  202. package/dist/vendor-tiptap-extension-code-C8cy6bRj.js +51 -0
  203. package/dist/vendor-tiptap-extension-code-block-BqTchNEf.js +133 -0
  204. package/dist/vendor-tiptap-extension-document-Dka1Uu0g.js +9 -0
  205. package/dist/vendor-tiptap-extension-dropcursor-CFSh-BuE.js +20 -0
  206. package/dist/vendor-tiptap-extension-floating-menu-H8PB4zeI.js +99 -0
  207. package/dist/vendor-tiptap-extension-gapcursor-CzwfD_IT.js +24 -0
  208. package/dist/vendor-tiptap-extension-hard-break-Rm6aVcrK.js +55 -0
  209. package/dist/vendor-tiptap-extension-heading-CavI6u1v.js +54 -0
  210. package/dist/vendor-tiptap-extension-history-WEN1_74D.js +35 -0
  211. package/dist/vendor-tiptap-extension-horizontal-rule-DZkUEL6s.js +58 -0
  212. package/dist/vendor-tiptap-extension-image-B67_mxGM.js +64 -0
  213. package/dist/vendor-tiptap-extension-italic-BshxBFou.js +70 -0
  214. package/dist/vendor-tiptap-extension-link-CJAQIgui.js +262 -0
  215. package/dist/vendor-tiptap-extension-list-item-DF-iMpqO.js +33 -0
  216. package/dist/vendor-tiptap-extension-ordered-list-CN8MF-kN.js +71 -0
  217. package/dist/vendor-tiptap-extension-paragraph-DI577lM5.js +33 -0
  218. package/dist/vendor-tiptap-extension-placeholder-DwAtlfAF.js +52 -0
  219. package/dist/vendor-tiptap-extension-strike-CIty09KN.js +61 -0
  220. package/dist/vendor-tiptap-extension-table-C5nv-GUb.js +213 -0
  221. package/dist/vendor-tiptap-extension-table-cell-DXbBhJW3.js +40 -0
  222. package/dist/vendor-tiptap-extension-table-header-rtggsYXA.js +40 -0
  223. package/dist/vendor-tiptap-extension-table-row-67khjMDt.js +22 -0
  224. package/dist/vendor-tiptap-extension-text-D1OHb_a1.js +8 -0
  225. package/dist/vendor-tiptap-extension-underline-IqWixw3m.js +40 -0
  226. package/dist/vendor-tiptap-markdown-DVxB1hbO.js +825 -0
  227. package/dist/vendor-tiptap-starter-kit-CPH9gu2X.js +29 -0
  228. package/dist/vendor-tiptap-vue-3-CkBe4_xM.js +225 -0
  229. package/dist/vendor-truncate-html-Bx1HJzRq.js +145 -0
  230. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  231. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  232. package/dist/vendor-vee-validate-rules-DDeNM2Gc.js +314 -0
  233. package/dist/vendor-vue-currency-input-DxWnS-HB.js +315 -0
  234. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  235. package/dist/vendor-vue-i18n-DPtOLen3.js +1359 -0
  236. package/dist/vendor-vue3-application-insights-dAGGfA_M.js +69 -0
  237. package/dist/vendor-vue3-touch-events-8Pa3HHlV.js +169 -0
  238. package/dist/vendor-vuepic-vue-datepicker-DglsiNYa.js +4997 -0
  239. package/dist/vendor-vueuse-components-DtK_mxpP.js +219 -0
  240. package/dist/vendor-vueuse-core-cB-c7DzH.js +5129 -0
  241. package/dist/vendor-vueuse-shared-Dg7PMM0z.js +1169 -0
  242. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  243. package/dist/vendor-whatwg-fetch-l0sNRNKZ.js +1 -0
  244. package/package.json +5 -4
  245. package/ui/components/atoms/vc-icon/vc-icon.vue +10 -23
  246. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -1
  247. package/dist/vendor-boolbase-Cp9L0GAZ.js +0 -25
  248. package/dist/vendor-cheerio-HN9zIPZn.js +0 -3135
  249. package/dist/vendor-cheerio-select-5Ry0HvBq.js +0 -306
  250. package/dist/vendor-css-select-DRIZ9kfZ.js +0 -966
  251. package/dist/vendor-css-what-DuPJ1HEF.js +0 -448
  252. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +0 -778
  253. package/dist/vendor-date-fns-515YWkk-.js +0 -6724
  254. package/dist/vendor-dom-serializer-nQMsqjYW.js +0 -286
  255. package/dist/vendor-dom7-CJLPMwy5.js +0 -941
  256. package/dist/vendor-domelementtype-CjSzQey5.js +0 -53
  257. package/dist/vendor-domhandler-9z8cS16a.js +0 -484
  258. package/dist/vendor-dompurify-CRFzu7ib.js +0 -1336
  259. package/dist/vendor-domutils-Bc-Opz-v.js +0 -981
  260. package/dist/vendor-entities-Bfsx4xOQ.js +0 -636
  261. package/dist/vendor-floating-ui-core-wV8u8QP4.js +0 -511
  262. package/dist/vendor-floating-ui-dom-DDnRPs17.js +0 -706
  263. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +0 -296
  264. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +0 -167
  265. package/dist/vendor-fontsource-plus-jakarta-sans.css +0 -1
  266. package/dist/vendor-headlessui-vue-CY9FRgTb.js +0 -83
  267. package/dist/vendor-htmlparser2-B1dhFPOs.js +0 -1426
  268. package/dist/vendor-iconify-vue-DfRGgyNu.js +0 -1840
  269. package/dist/vendor-intlify-core-base-BuknsFQe.js +0 -1876
  270. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +0 -1508
  271. package/dist/vendor-intlify-shared-Cz4YRMuC.js +0 -241
  272. package/dist/vendor-iso-639-1-BJCk9DvE.js +0 -819
  273. package/dist/vendor-linkify-it-CKUf4vsc.js +0 -830
  274. package/dist/vendor-linkifyjs-BfyGgbCh.js +0 -1756
  275. package/dist/vendor-lodash-es-BySUOlwf.js +0 -18333
  276. package/dist/vendor-markdown-it-D-apazHa.js +0 -6000
  277. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +0 -131
  278. package/dist/vendor-mdurl-BNh2CCgT.js +0 -537
  279. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +0 -1275
  280. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +0 -591
  281. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +0 -2153
  282. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +0 -2470
  283. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +0 -6589
  284. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +0 -1510
  285. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +0 -761
  286. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +0 -70
  287. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +0 -667
  288. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +0 -520
  289. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +0 -3339
  290. package/dist/vendor-moment-Mki5YqAR.js +0 -5679
  291. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +0 -395
  292. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +0 -1160
  293. package/dist/vendor-nth-check-Bx8TxtJt.js +0 -157
  294. package/dist/vendor-orderedmap-dGG6uMFJ.js +0 -137
  295. package/dist/vendor-parse5-Bt2NhSzR.js +0 -8432
  296. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +0 -216
  297. package/dist/vendor-popperjs-core-Cr2byIky.js +0 -1790
  298. package/dist/vendor-prettier-B4PaeWRQ.js +0 -98
  299. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +0 -561
  300. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +0 -146
  301. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +0 -236
  302. package/dist/vendor-prosemirror-history-BDaJkvNx.js +0 -414
  303. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +0 -128
  304. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +0 -866
  305. package/dist/vendor-prosemirror-model-BZu3WVcD.js +0 -3463
  306. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +0 -158
  307. package/dist/vendor-prosemirror-state-BvL9Pxph.js +0 -1003
  308. package/dist/vendor-prosemirror-tables-17qAnviK.js +0 -2159
  309. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +0 -2156
  310. package/dist/vendor-prosemirror-view-CU2WTHT7.js +0 -5811
  311. package/dist/vendor-punycode-js-iAs5RxMf.js +0 -441
  312. package/dist/vendor-rope-sequence-BdXDKoGt.js +0 -207
  313. package/dist/vendor-semver-CVLMK-S4.js +0 -2702
  314. package/dist/vendor-ssr-window-s6OpKa3O.js +0 -150
  315. package/dist/vendor-swiper-CdiyNHVt.js +0 -5679
  316. package/dist/vendor-tippy-js-DWFe2TfK.js +0 -1647
  317. package/dist/vendor-tiptap-core-NfwGfaQk.js +0 -4910
  318. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +0 -57
  319. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +0 -97
  320. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +0 -218
  321. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +0 -73
  322. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +0 -221
  323. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +0 -75
  324. package/dist/vendor-tiptap-extension-document-DssuotYs.js +0 -13
  325. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +0 -26
  326. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +0 -165
  327. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +0 -30
  328. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +0 -68
  329. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +0 -77
  330. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +0 -48
  331. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +0 -92
  332. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +0 -76
  333. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +0 -96
  334. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +0 -414
  335. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +0 -37
  336. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +0 -97
  337. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +0 -39
  338. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +0 -66
  339. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +0 -79
  340. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +0 -47
  341. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +0 -47
  342. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +0 -26
  343. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +0 -354
  344. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +0 -12
  345. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +0 -50
  346. package/dist/vendor-tiptap-markdown-7-PCADTU.js +0 -1017
  347. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +0 -88
  348. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +0 -268
  349. package/dist/vendor-truncate-html-3qQY0Djo.js +0 -196
  350. package/dist/vendor-uc-micro-jjt6LQ65.js +0 -23
  351. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +0 -154
  352. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +0 -536
  353. package/dist/vendor-vue-currency-input-DGAkEFBO.js +0 -545
  354. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +0 -169
  355. package/dist/vendor-vue-i18n-Co752uk3.js +0 -1897
  356. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +0 -119
  357. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +0 -416
  358. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +0 -5019
  359. package/dist/vendor-vueuse-components-l1bL12mE.js +0 -339
  360. package/dist/vendor-vueuse-core-DGcJOmwG.js +0 -7743
  361. package/dist/vendor-vueuse-shared-_mOXsFuM.js +0 -1568
  362. package/dist/vendor-w3c-keyname-BOm2dtJm.js +0 -121
@@ -1,545 +0,0 @@
1
- import { ref, getCurrentInstance, version, computed, watch } from 'vue';
2
-
3
- /**
4
- * Vue Currency Input 3.2.1
5
- * (c) 2018-2025 Matthias Stiller
6
- * @license MIT
7
- */
8
-
9
- var CurrencyDisplay;
10
- (function (CurrencyDisplay) {
11
- CurrencyDisplay["symbol"] = "symbol";
12
- CurrencyDisplay["narrowSymbol"] = "narrowSymbol";
13
- CurrencyDisplay["code"] = "code";
14
- CurrencyDisplay["name"] = "name";
15
- CurrencyDisplay["hidden"] = "hidden";
16
- })(CurrencyDisplay || (CurrencyDisplay = {}));
17
- var ValueScaling;
18
- (function (ValueScaling) {
19
- ValueScaling["precision"] = "precision";
20
- ValueScaling["thousands"] = "thousands";
21
- ValueScaling["tenThousands"] = "tenThousands";
22
- ValueScaling["millions"] = "millions";
23
- ValueScaling["billions"] = "billions";
24
- })(ValueScaling || (ValueScaling = {}));
25
-
26
- const escapeRegExp = (str) => {
27
- return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
28
- };
29
- const removeLeadingZeros = (str) => {
30
- return str.replace(/^0+(0$|[^0])/, '$1');
31
- };
32
- const count = (str, search) => {
33
- return (str.match(new RegExp(escapeRegExp(search), 'g')) || []).length;
34
- };
35
- const substringBefore = (str, search) => {
36
- return str.substring(0, str.indexOf(search));
37
- };
38
-
39
- const DECIMAL_SEPARATORS = [
40
- ',',
41
- '.',
42
- '٫',
43
- '。'
44
- ];
45
- const INTEGER_PATTERN = '(0|[1-9]\\d*)';
46
- class CurrencyFormat {
47
- constructor(options) {
48
- var _a, _b, _c, _d, _e, _f;
49
- const { currency, currencyDisplay, locale, precision, accountingSign, useGrouping } = options;
50
- this.locale = locale;
51
- this.options = {
52
- currency,
53
- useGrouping,
54
- style: 'currency',
55
- currencySign: accountingSign ? 'accounting' : undefined,
56
- currencyDisplay: currencyDisplay !== CurrencyDisplay.hidden ? currencyDisplay : undefined
57
- };
58
- const numberFormat = new Intl.NumberFormat(locale, this.options);
59
- const formatParts = numberFormat.formatToParts(123456);
60
- this.currency = (_a = formatParts.find(({ type }) => type === 'currency')) === null || _a === void 0 ? void 0 : _a.value;
61
- this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((i) => i.toLocaleString(locale));
62
- this.decimalSymbol = (_b = formatParts.find(({ type }) => type === 'decimal')) === null || _b === void 0 ? void 0 : _b.value;
63
- this.groupingSymbol = (_c = formatParts.find(({ type }) => type === 'group')) === null || _c === void 0 ? void 0 : _c.value;
64
- this.minusSign = (_d = numberFormat.formatToParts(-1).find(({ type }) => type === 'minusSign')) === null || _d === void 0 ? void 0 : _d.value;
65
- if (this.decimalSymbol === undefined) {
66
- this.minimumFractionDigits = this.maximumFractionDigits = 0;
67
- }
68
- else if (typeof precision === 'number') {
69
- this.minimumFractionDigits = this.maximumFractionDigits = precision;
70
- }
71
- else {
72
- this.minimumFractionDigits = (_e = precision === null || precision === void 0 ? void 0 : precision.min) !== null && _e !== void 0 ? _e : numberFormat.resolvedOptions().minimumFractionDigits;
73
- this.maximumFractionDigits = (_f = precision === null || precision === void 0 ? void 0 : precision.max) !== null && _f !== void 0 ? _f : numberFormat.resolvedOptions().maximumFractionDigits;
74
- }
75
- const getPrefix = (str) => {
76
- return substringBefore(str, this.digits[1]);
77
- };
78
- const getSuffix = (str) => {
79
- return str.substring(str.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
80
- };
81
- this.prefix = getPrefix(numberFormat.format(1));
82
- this.suffix = getSuffix(numberFormat.format(1));
83
- this.negativePrefix = getPrefix(numberFormat.format(-1));
84
- this.negativeSuffix = getSuffix(numberFormat.format(-1));
85
- }
86
- parse(str) {
87
- if (str) {
88
- const negative = this.isNegative(str);
89
- str = this.normalizeDigits(str);
90
- str = this.stripCurrency(str, negative);
91
- str = this.stripSignLiterals(str);
92
- const fraction = this.decimalSymbol ? `(?:${escapeRegExp(this.decimalSymbol)}(\\d*))?` : '';
93
- const match = this.stripGroupingSeparator(str).match(new RegExp(`^${INTEGER_PATTERN}${fraction}$`));
94
- if (match && this.isValidIntegerFormat(this.decimalSymbol ? str.split(this.decimalSymbol)[0] : str, Number(match[1]))) {
95
- return Number(`${negative ? '-' : ''}${this.onlyDigits(match[1])}.${this.onlyDigits(match[2] || '')}`);
96
- }
97
- }
98
- return null;
99
- }
100
- isValidIntegerFormat(formattedNumber, integerNumber) {
101
- const options = { ...this.options, minimumFractionDigits: 0 };
102
- return [
103
- this.stripCurrency(this.normalizeDigits(integerNumber.toLocaleString(this.locale, { ...options, useGrouping: true })), false),
104
- this.stripCurrency(this.normalizeDigits(integerNumber.toLocaleString(this.locale, { ...options, useGrouping: false })), false)
105
- ].includes(formattedNumber);
106
- }
107
- format(value, options = {
108
- minimumFractionDigits: this.minimumFractionDigits,
109
- maximumFractionDigits: this.maximumFractionDigits
110
- }) {
111
- return value != null ? value.toLocaleString(this.locale, { ...this.options, ...options }) : '';
112
- }
113
- toFraction(str) {
114
- return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(str.substring(1)).substring(0, this.maximumFractionDigits)}`;
115
- }
116
- isFractionIncomplete(str) {
117
- return !!this.normalizeDigits(this.stripGroupingSeparator(str)).match(new RegExp(`^${INTEGER_PATTERN}${escapeRegExp(this.decimalSymbol)}$`));
118
- }
119
- isNegative(str) {
120
- return (str.startsWith(this.negativePrefix) ||
121
- (this.minusSign === undefined && (str.startsWith('(') || str.startsWith('-'))) ||
122
- (this.minusSign !== undefined && str.replace('-', this.minusSign).startsWith(this.minusSign)));
123
- }
124
- insertCurrency(str, negative) {
125
- return `${negative ? this.negativePrefix : this.prefix}${str}${negative ? this.negativeSuffix : this.suffix}`;
126
- }
127
- stripGroupingSeparator(str) {
128
- return this.groupingSymbol !== undefined ? str.replace(new RegExp(escapeRegExp(this.groupingSymbol), 'g'), '') : str;
129
- }
130
- stripSignLiterals(str) {
131
- if (this.minusSign !== undefined) {
132
- return str.replace('-', this.minusSign).replace(this.minusSign, '');
133
- }
134
- else {
135
- return str.replace(/[-()]/g, '');
136
- }
137
- }
138
- stripCurrency(str, negative) {
139
- return str.replace(negative ? this.negativePrefix : this.prefix, '').replace(negative ? this.negativeSuffix : this.suffix, '');
140
- }
141
- normalizeDecimalSeparator(str, from) {
142
- DECIMAL_SEPARATORS.forEach((s) => {
143
- str = str.substring(0, from) + str.substring(from).replace(s, this.decimalSymbol);
144
- });
145
- return str;
146
- }
147
- normalizeDigits(str) {
148
- if (this.digits[0] !== '0') {
149
- this.digits.forEach((digit, index) => {
150
- str = str.replace(new RegExp(digit, 'g'), String(index));
151
- });
152
- }
153
- return str;
154
- }
155
- onlyDigits(str) {
156
- return this.normalizeDigits(str).replace(/\D+/g, '');
157
- }
158
- onlyLocaleDigits(str) {
159
- return str.replace(new RegExp(`[^${this.digits.join('')}]*`, 'g'), '');
160
- }
161
- }
162
-
163
- class AbstractInputMask {
164
- constructor(currencyFormat) {
165
- this.currencyFormat = currencyFormat;
166
- }
167
- }
168
- class DefaultInputMask extends AbstractInputMask {
169
- conformToMask(str, previousConformedValue = '') {
170
- const negative = this.currencyFormat.isNegative(str);
171
- const isEmptyNegativeValue = (str) => str === '' &&
172
- negative &&
173
- !(this.currencyFormat.minusSign === undefined
174
- ? previousConformedValue === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix
175
- : previousConformedValue === this.currencyFormat.negativePrefix);
176
- const checkIncompleteValue = (str) => {
177
- if (isEmptyNegativeValue(str)) {
178
- return '';
179
- }
180
- else if (this.currencyFormat.maximumFractionDigits > 0) {
181
- if (this.currencyFormat.isFractionIncomplete(str)) {
182
- return str;
183
- }
184
- else if (str.startsWith(this.currencyFormat.decimalSymbol)) {
185
- return this.currencyFormat.toFraction(str);
186
- }
187
- }
188
- return null;
189
- };
190
- let value = str;
191
- value = this.currencyFormat.stripCurrency(value, negative);
192
- value = this.currencyFormat.stripSignLiterals(value);
193
- const incompleteValue = checkIncompleteValue(value);
194
- if (incompleteValue != null) {
195
- return this.currencyFormat.insertCurrency(incompleteValue, negative);
196
- }
197
- const [integer, ...fraction] = value.split(this.currencyFormat.decimalSymbol);
198
- const integerDigits = removeLeadingZeros(this.currencyFormat.onlyDigits(integer));
199
- const fractionDigits = this.currencyFormat.onlyDigits(fraction.join('')).substring(0, this.currencyFormat.maximumFractionDigits);
200
- const invalidFraction = fraction.length > 0 && fractionDigits.length === 0;
201
- const invalidNegativeValue = integerDigits === '' &&
202
- negative &&
203
- (this.currencyFormat.minusSign === undefined
204
- ? previousConformedValue === str.slice(0, -2) + this.currencyFormat.negativeSuffix
205
- : previousConformedValue === str.slice(0, -1));
206
- if (invalidFraction || invalidNegativeValue || isEmptyNegativeValue(integerDigits)) {
207
- return previousConformedValue;
208
- }
209
- else if (integerDigits.match(/\d+/)) {
210
- return {
211
- numberValue: Number(`${negative ? '-' : ''}${integerDigits}.${fractionDigits}`),
212
- fractionDigits
213
- };
214
- }
215
- else {
216
- return '';
217
- }
218
- }
219
- }
220
- class AutoDecimalDigitsInputMask extends AbstractInputMask {
221
- conformToMask(str, previousConformedValue = '') {
222
- if (str === '' ||
223
- (this.currencyFormat.parse(previousConformedValue) === 0 &&
224
- this.currencyFormat.stripCurrency(previousConformedValue, true).slice(0, -1) === this.currencyFormat.stripCurrency(str, true))) {
225
- return '';
226
- }
227
- const negative = this.currencyFormat.isNegative(str);
228
- const numberValue = this.currencyFormat.stripSignLiterals(str) === ''
229
- ? -0
230
- : Number(`${negative ? '-' : ''}${removeLeadingZeros(this.currencyFormat.onlyDigits(str))}`) / Math.pow(10, this.currencyFormat.maximumFractionDigits);
231
- return {
232
- numberValue,
233
- fractionDigits: numberValue.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)
234
- };
235
- }
236
- }
237
-
238
- const DEFAULT_OPTIONS = {
239
- locale: undefined,
240
- currency: undefined,
241
- currencyDisplay: undefined,
242
- hideGroupingSeparatorOnFocus: true,
243
- hideCurrencySymbolOnFocus: true,
244
- hideNegligibleDecimalDigitsOnFocus: true,
245
- precision: undefined,
246
- autoDecimalDigits: false,
247
- valueRange: undefined,
248
- useGrouping: undefined,
249
- valueScaling: undefined
250
- };
251
- class CurrencyInput {
252
- constructor(args) {
253
- this.el = args.el;
254
- this.onInput = args.onInput;
255
- this.onChange = args.onChange;
256
- this.addEventListener();
257
- this.init(args.options);
258
- }
259
- setOptions(options) {
260
- this.init(options);
261
- this.format(this.currencyFormat.format(this.validateValueRange(this.numberValue)));
262
- this.onChange(this.getValue());
263
- }
264
- getValue() {
265
- const numberValue = this.valueScaling && this.numberValue != null ? this.toInteger(this.numberValue, this.valueScaling) : this.numberValue;
266
- return { number: numberValue, formatted: this.formattedValue };
267
- }
268
- setValue(value) {
269
- const newValue = this.valueScaling !== undefined && value != null ? this.toFloat(value, this.valueScaling) : value;
270
- if (newValue !== this.numberValue) {
271
- this.format(this.currencyFormat.format(this.validateValueRange(newValue)));
272
- this.onChange(this.getValue());
273
- }
274
- }
275
- init(options) {
276
- this.options = {
277
- ...DEFAULT_OPTIONS,
278
- ...options
279
- };
280
- if (this.options.autoDecimalDigits) {
281
- this.options.hideNegligibleDecimalDigitsOnFocus = false;
282
- }
283
- if (!this.el.getAttribute('inputmode')) {
284
- this.el.setAttribute('inputmode', this.options.autoDecimalDigits ? 'numeric' : 'decimal');
285
- }
286
- this.currencyFormat = new CurrencyFormat(this.options);
287
- this.numberMask = this.options.autoDecimalDigits ? new AutoDecimalDigitsInputMask(this.currencyFormat) : new DefaultInputMask(this.currencyFormat);
288
- const valueScalingOptions = {
289
- [ValueScaling.precision]: this.currencyFormat.maximumFractionDigits,
290
- [ValueScaling.thousands]: 3,
291
- [ValueScaling.tenThousands]: 4,
292
- [ValueScaling.millions]: 6,
293
- [ValueScaling.billions]: 9
294
- };
295
- this.valueScaling = this.options.valueScaling ? valueScalingOptions[this.options.valueScaling] : undefined;
296
- this.valueScalingFractionDigits =
297
- this.valueScaling !== undefined && this.options.valueScaling !== ValueScaling.precision
298
- ? this.valueScaling + this.currencyFormat.maximumFractionDigits
299
- : this.currencyFormat.maximumFractionDigits;
300
- this.minValue = this.getMinValue();
301
- this.maxValue = this.getMaxValue();
302
- }
303
- getMinValue() {
304
- var _a, _b;
305
- let min = this.toFloat(-Number.MAX_SAFE_INTEGER);
306
- if (((_a = this.options.valueRange) === null || _a === void 0 ? void 0 : _a.min) !== undefined) {
307
- min = Math.max((_b = this.options.valueRange) === null || _b === void 0 ? void 0 : _b.min, this.toFloat(-Number.MAX_SAFE_INTEGER));
308
- }
309
- return min;
310
- }
311
- getMaxValue() {
312
- var _a, _b;
313
- let max = this.toFloat(Number.MAX_SAFE_INTEGER);
314
- if (((_a = this.options.valueRange) === null || _a === void 0 ? void 0 : _a.max) !== undefined) {
315
- max = Math.min((_b = this.options.valueRange) === null || _b === void 0 ? void 0 : _b.max, this.toFloat(Number.MAX_SAFE_INTEGER));
316
- }
317
- return max;
318
- }
319
- toFloat(value, maxFractionDigits) {
320
- return value / Math.pow(10, maxFractionDigits !== null && maxFractionDigits !== void 0 ? maxFractionDigits : this.valueScalingFractionDigits);
321
- }
322
- toInteger(value, maxFractionDigits) {
323
- return Number(value
324
- .toFixed(maxFractionDigits !== null && maxFractionDigits !== void 0 ? maxFractionDigits : this.valueScalingFractionDigits)
325
- .split('.')
326
- .join(''));
327
- }
328
- validateValueRange(value) {
329
- return value != null ? Math.min(Math.max(value, this.minValue), this.maxValue) : value;
330
- }
331
- format(value, hideNegligibleDecimalDigits = false) {
332
- if (value != null) {
333
- if (this.decimalSymbolInsertedAt !== undefined) {
334
- value = this.currencyFormat.normalizeDecimalSeparator(value, this.decimalSymbolInsertedAt);
335
- this.decimalSymbolInsertedAt = undefined;
336
- }
337
- const conformedValue = this.numberMask.conformToMask(value, this.formattedValue);
338
- let formattedValue;
339
- if (typeof conformedValue === 'object') {
340
- const { numberValue, fractionDigits } = conformedValue;
341
- let { maximumFractionDigits, minimumFractionDigits } = this.currencyFormat;
342
- if (this.focus) {
343
- minimumFractionDigits = hideNegligibleDecimalDigits
344
- ? fractionDigits.replace(/0+$/, '').length
345
- : Math.min(maximumFractionDigits, fractionDigits.length);
346
- }
347
- else if (Number.isInteger(numberValue) && !this.options.autoDecimalDigits && (this.options.precision === undefined || minimumFractionDigits === 0)) {
348
- minimumFractionDigits = maximumFractionDigits = 0;
349
- }
350
- formattedValue =
351
- this.toInteger(Math.abs(numberValue)) > Number.MAX_SAFE_INTEGER
352
- ? this.formattedValue
353
- : this.currencyFormat.format(numberValue, {
354
- useGrouping: this.options.useGrouping !== false && !(this.focus && this.options.hideGroupingSeparatorOnFocus),
355
- minimumFractionDigits,
356
- maximumFractionDigits
357
- });
358
- }
359
- else {
360
- formattedValue = conformedValue;
361
- }
362
- if (this.maxValue <= 0 && !this.currencyFormat.isNegative(formattedValue) && this.currencyFormat.parse(formattedValue) !== 0) {
363
- formattedValue = formattedValue.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix);
364
- }
365
- if (this.minValue >= 0) {
366
- formattedValue = formattedValue.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix);
367
- }
368
- if (this.options.currencyDisplay === CurrencyDisplay.hidden || (this.focus && this.options.hideCurrencySymbolOnFocus)) {
369
- formattedValue = formattedValue
370
- .replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== undefined ? this.currencyFormat.minusSign : '(')
371
- .replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== undefined ? '' : ')')
372
- .replace(this.currencyFormat.prefix, '')
373
- .replace(this.currencyFormat.suffix, '');
374
- }
375
- this.el.value = formattedValue;
376
- this.numberValue = this.currencyFormat.parse(formattedValue);
377
- }
378
- else {
379
- this.el.value = '';
380
- this.numberValue = null;
381
- }
382
- this.formattedValue = this.el.value;
383
- this.onInput(this.getValue());
384
- }
385
- addEventListener() {
386
- this.el.addEventListener('input', (e) => {
387
- const { value, selectionStart } = this.el;
388
- const inputEvent = e;
389
- if (selectionStart && inputEvent.data && DECIMAL_SEPARATORS.includes(inputEvent.data)) {
390
- this.decimalSymbolInsertedAt = selectionStart - 1;
391
- }
392
- this.format(value);
393
- if (this.focus && selectionStart != null) {
394
- const getCaretPositionAfterFormat = () => {
395
- const { prefix, suffix, decimalSymbol, maximumFractionDigits, groupingSymbol } = this.currencyFormat;
396
- let caretPositionFromLeft = value.length - selectionStart;
397
- const newValueLength = this.formattedValue.length;
398
- if (this.currencyFormat.minusSign === undefined && (value.startsWith('(') || value.startsWith('-')) && !value.endsWith(')')) {
399
- return newValueLength - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(selectionStart).length : 1;
400
- }
401
- if (this.formattedValue.substring(selectionStart, 1) === groupingSymbol &&
402
- count(this.formattedValue, groupingSymbol) === count(value, groupingSymbol) + 1) {
403
- return newValueLength - caretPositionFromLeft - 1;
404
- }
405
- if (newValueLength < caretPositionFromLeft) {
406
- return selectionStart;
407
- }
408
- if (decimalSymbol !== undefined && value.indexOf(decimalSymbol) !== -1) {
409
- const decimalSymbolPosition = value.indexOf(decimalSymbol) + 1;
410
- if (Math.abs(newValueLength - value.length) > 1 && selectionStart <= decimalSymbolPosition) {
411
- return this.formattedValue.indexOf(decimalSymbol) + 1;
412
- }
413
- else {
414
- if (!this.options.autoDecimalDigits && selectionStart > decimalSymbolPosition) {
415
- if (this.currencyFormat.onlyDigits(value.substring(decimalSymbolPosition)).length - 1 === maximumFractionDigits) {
416
- caretPositionFromLeft -= 1;
417
- }
418
- }
419
- }
420
- }
421
- return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === CurrencyDisplay.hidden
422
- ? newValueLength - caretPositionFromLeft
423
- : Math.max(newValueLength - Math.max(caretPositionFromLeft, suffix.length), prefix.length);
424
- };
425
- this.setCaretPosition(getCaretPositionAfterFormat());
426
- }
427
- });
428
- this.el.addEventListener('focus', () => {
429
- this.focus = true;
430
- this.numberValueOnFocus = this.numberValue;
431
- setTimeout(() => {
432
- const { value, selectionStart, selectionEnd } = this.el;
433
- this.format(value, this.options.hideNegligibleDecimalDigitsOnFocus);
434
- if (selectionStart != null && selectionEnd != null && Math.abs(selectionStart - selectionEnd) > 0) {
435
- this.setCaretPosition(0, this.el.value.length);
436
- }
437
- else if (selectionStart != null) {
438
- const caretPositionOnFocus = this.getCaretPositionOnFocus(value, selectionStart);
439
- this.setCaretPosition(caretPositionOnFocus);
440
- }
441
- });
442
- });
443
- this.el.addEventListener('blur', () => {
444
- this.focus = false;
445
- this.format(this.currencyFormat.format(this.validateValueRange(this.numberValue)));
446
- if (this.numberValueOnFocus !== this.numberValue) {
447
- this.onChange(this.getValue());
448
- }
449
- });
450
- }
451
- getCaretPositionOnFocus(value, selectionStart) {
452
- if (this.numberValue == null) {
453
- return selectionStart;
454
- }
455
- const { prefix, negativePrefix, suffix, negativeSuffix, groupingSymbol, currency } = this.currencyFormat;
456
- const isNegative = this.numberValue < 0;
457
- const currentPrefix = isNegative ? negativePrefix : prefix;
458
- const prefixLength = currentPrefix.length;
459
- if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === CurrencyDisplay.hidden) {
460
- if (isNegative) {
461
- if (selectionStart <= 1) {
462
- return 1;
463
- }
464
- else if (value.endsWith(')') && selectionStart > value.indexOf(')')) {
465
- return this.formattedValue.length - 1;
466
- }
467
- }
468
- }
469
- else {
470
- const suffixLength = isNegative ? negativeSuffix.length : suffix.length;
471
- if (selectionStart >= value.length - suffixLength) {
472
- return this.formattedValue.length - suffixLength;
473
- }
474
- else if (selectionStart < prefixLength) {
475
- return prefixLength;
476
- }
477
- }
478
- let result = selectionStart;
479
- if (this.options.hideCurrencySymbolOnFocus &&
480
- this.options.currencyDisplay !== CurrencyDisplay.hidden &&
481
- selectionStart >= prefixLength &&
482
- currency !== undefined &&
483
- currentPrefix.includes(currency)) {
484
- result -= prefixLength;
485
- if (isNegative) {
486
- result += 1;
487
- }
488
- }
489
- if (this.options.hideGroupingSeparatorOnFocus && groupingSymbol !== undefined) {
490
- result -= count(value.substring(0, selectionStart), groupingSymbol);
491
- }
492
- return result;
493
- }
494
- setCaretPosition(start, end = start) {
495
- this.el.setSelectionRange(start, end);
496
- }
497
- }
498
-
499
- const findInput = (el) => ((el === null || el === void 0 ? void 0 : el.matches('input')) ? el : el === null || el === void 0 ? void 0 : el.querySelector('input'));
500
- function useCurrencyInput(options, autoEmit) {
501
- var _a, _b, _c;
502
- let currencyInput;
503
- const inputRef = ref(null);
504
- const formattedValue = ref(null);
505
- const numberValue = ref(null);
506
- const vm = getCurrentInstance();
507
- (vm === null || vm === void 0 ? void 0 : vm.emit) || ((_b = (_a = vm === null || vm === void 0 ? void 0 : vm.proxy) === null || _a === void 0 ? void 0 : _a.$emit) === null || _b === void 0 ? void 0 : _b.bind(vm === null || vm === void 0 ? void 0 : vm.proxy));
508
- const props = ((vm === null || vm === void 0 ? void 0 : vm.props) || ((_c = vm === null || vm === void 0 ? void 0 : vm.proxy) === null || _c === void 0 ? void 0 : _c.$props));
509
- const isVue3 = version.startsWith('3');
510
- const modelValue = computed(() => props === null || props === void 0 ? void 0 : props[isVue3 ? 'modelValue' : 'value']);
511
- watch(inputRef, (value) => {
512
- var _a;
513
- if (value) {
514
- const el = findInput((_a = value === null || value === void 0 ? void 0 : value.$el) !== null && _a !== void 0 ? _a : value);
515
- if (el) {
516
- currencyInput = new CurrencyInput({
517
- el,
518
- options,
519
- onInput: (value) => {
520
- numberValue.value = value.number;
521
- formattedValue.value = value.formatted;
522
- },
523
- onChange: (value) => {
524
- }
525
- });
526
- currencyInput.setValue(modelValue.value);
527
- }
528
- else {
529
- console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
530
- }
531
- }
532
- else {
533
- currencyInput = null;
534
- }
535
- });
536
- return {
537
- inputRef,
538
- numberValue,
539
- formattedValue,
540
- setValue: (value) => currencyInput === null || currencyInput === void 0 ? void 0 : currencyInput.setValue(value),
541
- setOptions: (options) => currencyInput === null || currencyInput === void 0 ? void 0 : currencyInput.setOptions(options)
542
- };
543
- }
544
-
545
- export { CurrencyDisplay as C, useCurrencyInput as u };