@vc-shell/framework 1.1.46 → 1.1.48
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.
- package/CHANGELOG.md +8 -0
- package/core/plugins/modularity/loader.ts +126 -97
- package/dist/assets/042c75b764bc78a7.svg +1 -0
- package/dist/assets/0ba156439a339f2a.svg +1 -0
- package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
- package/dist/assets/0f590f8a94577092.svg +1 -0
- package/dist/assets/0fc5820f8be53a1b.svg +1 -0
- package/dist/assets/10768e2cc79fc60b.svg +1 -0
- package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
- package/dist/assets/157b8721e0600ea8.svg +1 -0
- package/dist/assets/15e91cdd649cde9a.svg +1 -0
- package/dist/assets/1a3e84b2457f709a.woff +0 -0
- package/dist/assets/1de63eb118636cce.svg +1 -0
- package/dist/assets/1ea01de36eb5491b.svg +1 -0
- package/dist/assets/204eaf512fde2023.svg +1 -0
- package/dist/assets/2088983edf42e153.svg +1 -0
- package/dist/assets/208f810a9321a327.svg +1 -0
- package/dist/assets/21220a9d10e6c558.svg +1 -0
- package/dist/assets/220db345a102045d.woff2 +0 -0
- package/dist/assets/225da11d23968333.svg +1 -0
- package/dist/assets/226f862dd81bdc13.woff2 +0 -0
- package/dist/assets/23a2d53395ddb14f.woff +0 -0
- package/dist/assets/259e6ad461a52ad7.svg +1 -0
- package/dist/assets/261e6dec4d53b9ac.woff +0 -0
- package/dist/assets/262f46a0b6d94bb6.svg +1 -0
- package/dist/assets/2857c513073467da.svg +1 -0
- package/dist/assets/2b3be7889467d98f.woff +0 -0
- package/dist/assets/2d4e6190eec72737.svg +1 -0
- package/dist/assets/2eba973185078bc8.woff +0 -0
- package/dist/assets/327511cd4a7ba7f9.woff +0 -0
- package/dist/assets/334d3f6bc766c516.woff +0 -0
- package/dist/assets/34ff7dd0c2285956.svg +1 -0
- package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
- package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
- package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
- package/dist/assets/41275bcb979cb650.svg +1 -0
- package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
- package/dist/assets/434f7982590e462f.woff +0 -0
- package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
- package/dist/assets/4d7a77b0e5373992.svg +1 -0
- package/dist/assets/4e43c74354534fb3.svg +1 -0
- package/dist/assets/4fe75f5117100705.svg +1 -0
- package/dist/assets/52610491f372cb0c.woff2 +0 -0
- package/dist/assets/52e261a005074e1b.woff +0 -0
- package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
- package/dist/assets/572bb1bb4156a9c1.svg +1 -0
- package/dist/assets/5b3661be8be679d0.woff2 +0 -0
- package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
- package/dist/assets/6075995d7e74da46.woff2 +0 -0
- package/dist/assets/617c4736236e199e.woff +0 -0
- package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
- package/dist/assets/67230f05dc94a265.svg +1 -0
- package/dist/assets/6798e4dd4add9b48.svg +1 -0
- package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
- package/dist/assets/6a3e73faf406cf33.svg +1 -0
- package/dist/assets/72de3a63bc0b70dd.svg +1 -0
- package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
- package/dist/assets/74ed5f8a78e71106.svg +1 -0
- package/dist/assets/7ce0c166fd6a1204.woff +0 -0
- package/dist/assets/7d55399c2a7bc985.svg +1 -0
- package/dist/assets/7d970675c69fca1d.woff +0 -0
- package/dist/assets/7eda727273fd98d3.svg +1 -0
- package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
- package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
- package/dist/assets/861e6b7192b3b6c7.woff +0 -0
- package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
- package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
- package/dist/assets/910b0d99b9e26568.svg +1 -0
- package/dist/assets/91eee1aa81f72683.woff +0 -0
- package/dist/assets/92508f8707159b51.svg +1 -0
- package/dist/assets/9392bf1d591e1abb.svg +1 -0
- package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
- package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
- package/dist/assets/9d37314695c0b68d.woff +0 -0
- package/dist/assets/a18404194e3f9047.svg +1 -0
- package/dist/assets/a2017fe7f0a26510.svg +1 -0
- package/dist/assets/a47034e65dbcc3d7.woff +0 -0
- package/dist/assets/a617e11804bbacb7.woff +0 -0
- package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
- package/dist/assets/abf88f301a0730f4.svg +1 -0
- package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
- package/dist/assets/b1a596e31ad1185a.svg +1 -0
- package/dist/assets/b27767411c8427be.woff +0 -0
- package/dist/assets/b291dc35a17511f7.woff +0 -0
- package/dist/assets/b325adcae33bbe7a.svg +1 -0
- package/dist/assets/b372390551ca2fa1.svg +1 -0
- package/dist/assets/b5bb1e8fc975decd.svg +1 -0
- package/dist/assets/b645a4a2181b9dc1.svg +1 -0
- package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
- package/dist/assets/b94421fadd23b0f2.svg +1 -0
- package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
- package/dist/assets/bfbe205759295eca.woff2 +0 -0
- package/dist/assets/ca791c5ca5848a03.svg +1 -0
- package/dist/assets/cb32840ce330103f.woff +0 -0
- package/dist/assets/d084bda16abe8a56.svg +1 -0
- package/dist/assets/d32b129cae2fffd6.svg +1 -0
- package/dist/assets/d35a4c7113315758.woff2 +0 -0
- package/dist/assets/d3f792f54ae4c307.svg +1 -0
- package/dist/assets/d5a5b8630120073d.svg +1 -0
- package/dist/assets/d5f9664ebbfb104b.svg +1 -0
- package/dist/assets/d80b05788e407de7.woff2 +0 -0
- package/dist/assets/d84247b59449dd88.woff2 +0 -0
- package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
- package/dist/assets/e38acaa1757232e0.svg +1 -0
- package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
- package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
- package/dist/assets/e61a1889bac955f4.woff2 +0 -0
- package/dist/assets/e72bb11356af94c7.svg +1 -0
- package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
- package/dist/assets/ebec912a42ad49ff.woff +0 -0
- package/dist/assets/f09d89268e4c0317.svg +1 -0
- package/dist/assets/f276d55184e05a07.woff +0 -0
- package/dist/assets/f5722262b6e7214e.woff2 +0 -0
- package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
- package/dist/assets/fcb1c1ffb5640194.woff +0 -0
- package/dist/assets/fe141d99763f5d2b.woff +0 -0
- package/dist/assets/fed13b0d59903483.svg +1 -0
- package/dist/assets/fed757d2c2344ead.woff2 +0 -0
- package/dist/assets/ffc438f20e79ce73.woff +0 -0
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/framework.js +16544 -25878
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
- package/dist/vendor-boolbase-Bgn9I6iN.js +21 -0
- package/dist/vendor-cheerio-CleDsuQZ.js +1053 -0
- package/dist/vendor-cheerio-select-CVkYl3Z-.js +191 -0
- package/dist/vendor-css-select-CtIzVIiG.js +622 -0
- package/dist/vendor-css-what-CZZaquJM.js +267 -0
- package/dist/vendor-cypress-signalr-mock-CdKwIhWw.js +769 -0
- package/dist/vendor-date-fns-CdFbeoHV.js +2989 -0
- package/dist/vendor-dom-serializer-CugO0RdN.js +213 -0
- package/dist/vendor-dom7-wvIUV9pT.js +529 -0
- package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
- package/dist/vendor-domhandler-CL40eeX9.js +311 -0
- package/dist/vendor-dompurify-eYFoHPwR.js +528 -0
- package/dist/vendor-domutils-D3Y2YQFR.js +386 -0
- package/dist/vendor-entities-v26HW8wW.js +363 -0
- package/dist/vendor-floating-ui-core-C9uEvi1M.js +349 -0
- package/dist/vendor-floating-ui-dom-CZkYGmv4.js +393 -0
- package/dist/vendor-floating-ui-utils-Bx3BTd6_.js +259 -0
- package/dist/vendor-floating-ui-vue-CLOiVYP7.js +107 -0
- package/dist/vendor-headlessui-vue-Dg0Llidi.js +961 -0
- package/dist/vendor-htmlparser2-CXL_uhMI.js +735 -0
- package/dist/vendor-iconify-vue-D4fihzvl.js +1205 -0
- package/dist/vendor-intlify-core-base-Bvt2vJFV.js +1129 -0
- package/dist/vendor-intlify-message-compiler-1VxNzq21.js +945 -0
- package/dist/vendor-intlify-shared-D7kiPMOG.js +130 -0
- package/dist/vendor-iso-639-1-dVGfSUIM.js +781 -0
- package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
- package/dist/vendor-linkifyjs-DTu7SY_Y.js +705 -0
- package/dist/vendor-lodash-es-CrYlgAi8.js +4816 -0
- package/dist/vendor-markdown-it-4AJoRTAg.js +2263 -0
- package/dist/vendor-markdown-it-task-lists-Byg1-ms9.js +69 -0
- package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
- package/dist/vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js +1105 -0
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js +261 -0
- package/dist/vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js +1809 -0
- package/dist/vendor-microsoft-applicationinsights-common-CDVnJ6MR.js +1921 -0
- package/dist/vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js +4127 -0
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js +1399 -0
- package/dist/vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js +572 -0
- package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +43 -0
- package/dist/vendor-microsoft-applicationinsights-web-BRuQAzjU.js +487 -0
- package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +147 -0
- package/dist/vendor-microsoft-signalr-qIrag5xx.js +1761 -0
- package/dist/vendor-moment-CwOqp704.js +2589 -0
- package/dist/vendor-nevware21-ts-async-FAyg3c9V.js +260 -0
- package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +853 -0
- package/dist/vendor-nth-check-BE7AeBMg.js +45 -0
- package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
- package/dist/vendor-parse5-DqztJOGh.js +5747 -0
- package/dist/vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js +143 -0
- package/dist/vendor-popperjs-core-LGjf7Wza.js +905 -0
- package/dist/vendor-prettier-D8C9GG-0.js +4858 -0
- package/dist/vendor-prosemirror-commands-BqYcdumy.js +344 -0
- package/dist/vendor-prosemirror-dropcursor-zknUsW5x.js +86 -0
- package/dist/vendor-prosemirror-gapcursor-DjOZhP78.js +200 -0
- package/dist/vendor-prosemirror-history-l8l3CFac.js +248 -0
- package/dist/vendor-prosemirror-keymap-C17r08p-.js +62 -0
- package/dist/vendor-prosemirror-markdown-WJEDhc-w.js +650 -0
- package/dist/vendor-prosemirror-model-BN5TnJD_.js +2736 -0
- package/dist/vendor-prosemirror-schema-list-CR0gi7aY.js +87 -0
- package/dist/vendor-prosemirror-state-B0bFP8WI.js +821 -0
- package/dist/vendor-prosemirror-tables-B1txTKlC.js +1711 -0
- package/dist/vendor-prosemirror-transform-Bo7kNPme.js +1507 -0
- package/dist/vendor-prosemirror-view--C7TZvmQ.js +3746 -0
- package/dist/vendor-punycode-js-CNI-zL6U.js +133 -0
- package/dist/vendor-rope-sequence-sEGCUMi8.js +100 -0
- package/dist/vendor-semver-BoKYtkQw.js +1021 -0
- package/dist/vendor-ssr-window-D4k3p53c.js +133 -0
- package/dist/vendor-swiper-CMVLTGu0.js +2825 -0
- package/dist/vendor-tippy-js-BGdgwGX-.js +812 -0
- package/dist/vendor-tiptap-core-BRY37Sb2.js +2806 -0
- package/dist/vendor-tiptap-extension-blockquote-CPd5qv-9.js +43 -0
- package/dist/vendor-tiptap-extension-bold-B0GwBNks.js +71 -0
- package/dist/vendor-tiptap-extension-bubble-menu-B0sZZld7.js +128 -0
- package/dist/vendor-tiptap-extension-bullet-list-CQm4ReOu.js +53 -0
- package/dist/vendor-tiptap-extension-code-C8cy6bRj.js +51 -0
- package/dist/vendor-tiptap-extension-code-block-BqTchNEf.js +133 -0
- package/dist/vendor-tiptap-extension-document-Dka1Uu0g.js +9 -0
- package/dist/vendor-tiptap-extension-dropcursor-CFSh-BuE.js +20 -0
- package/dist/vendor-tiptap-extension-floating-menu-H8PB4zeI.js +99 -0
- package/dist/vendor-tiptap-extension-gapcursor-CzwfD_IT.js +24 -0
- package/dist/vendor-tiptap-extension-hard-break-Rm6aVcrK.js +55 -0
- package/dist/vendor-tiptap-extension-heading-CavI6u1v.js +54 -0
- package/dist/vendor-tiptap-extension-history-WEN1_74D.js +35 -0
- package/dist/vendor-tiptap-extension-horizontal-rule-DZkUEL6s.js +58 -0
- package/dist/vendor-tiptap-extension-image-B67_mxGM.js +64 -0
- package/dist/vendor-tiptap-extension-italic-BshxBFou.js +70 -0
- package/dist/vendor-tiptap-extension-link-CJAQIgui.js +262 -0
- package/dist/vendor-tiptap-extension-list-item-DF-iMpqO.js +33 -0
- package/dist/vendor-tiptap-extension-ordered-list-CN8MF-kN.js +71 -0
- package/dist/vendor-tiptap-extension-paragraph-DI577lM5.js +33 -0
- package/dist/vendor-tiptap-extension-placeholder-DwAtlfAF.js +52 -0
- package/dist/vendor-tiptap-extension-strike-CIty09KN.js +61 -0
- package/dist/vendor-tiptap-extension-table-C5nv-GUb.js +213 -0
- package/dist/vendor-tiptap-extension-table-cell-DXbBhJW3.js +40 -0
- package/dist/vendor-tiptap-extension-table-header-rtggsYXA.js +40 -0
- package/dist/vendor-tiptap-extension-table-row-67khjMDt.js +22 -0
- package/dist/vendor-tiptap-extension-text-D1OHb_a1.js +8 -0
- package/dist/vendor-tiptap-extension-underline-IqWixw3m.js +40 -0
- package/dist/vendor-tiptap-markdown-DVxB1hbO.js +825 -0
- package/dist/vendor-tiptap-starter-kit-CPH9gu2X.js +29 -0
- package/dist/vendor-tiptap-vue-3-CkBe4_xM.js +225 -0
- package/dist/vendor-truncate-html-Bx1HJzRq.js +145 -0
- package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
- package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
- package/dist/vendor-vee-validate-rules-DDeNM2Gc.js +314 -0
- package/dist/vendor-vue-currency-input-DxWnS-HB.js +315 -0
- package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
- package/dist/vendor-vue-i18n-DPtOLen3.js +1359 -0
- package/dist/vendor-vue3-application-insights-dAGGfA_M.js +69 -0
- package/dist/vendor-vue3-touch-events-8Pa3HHlV.js +169 -0
- package/dist/vendor-vuepic-vue-datepicker-DglsiNYa.js +4997 -0
- package/dist/vendor-vueuse-components-DtK_mxpP.js +219 -0
- package/dist/vendor-vueuse-core-cB-c7DzH.js +5129 -0
- package/dist/vendor-vueuse-shared-Dg7PMM0z.js +1169 -0
- package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
- package/dist/vendor-whatwg-fetch-l0sNRNKZ.js +1 -0
- package/package.json +5 -4
- package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -1
- package/dist/vendor-boolbase-Cp9L0GAZ.js +0 -25
- package/dist/vendor-cheerio-HN9zIPZn.js +0 -3135
- package/dist/vendor-cheerio-select-5Ry0HvBq.js +0 -306
- package/dist/vendor-css-select-DRIZ9kfZ.js +0 -966
- package/dist/vendor-css-what-DuPJ1HEF.js +0 -448
- package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +0 -778
- package/dist/vendor-date-fns-515YWkk-.js +0 -6724
- package/dist/vendor-dom-serializer-nQMsqjYW.js +0 -286
- package/dist/vendor-dom7-CJLPMwy5.js +0 -941
- package/dist/vendor-domelementtype-CjSzQey5.js +0 -53
- package/dist/vendor-domhandler-9z8cS16a.js +0 -484
- package/dist/vendor-dompurify-CRFzu7ib.js +0 -1336
- package/dist/vendor-domutils-Bc-Opz-v.js +0 -981
- package/dist/vendor-entities-Bfsx4xOQ.js +0 -636
- package/dist/vendor-floating-ui-core-wV8u8QP4.js +0 -511
- package/dist/vendor-floating-ui-dom-DDnRPs17.js +0 -706
- package/dist/vendor-floating-ui-utils-OMIFy1QU.js +0 -296
- package/dist/vendor-floating-ui-vue-D-tCDAMm.js +0 -167
- package/dist/vendor-fontsource-plus-jakarta-sans.css +0 -1
- package/dist/vendor-headlessui-vue-CY9FRgTb.js +0 -83
- package/dist/vendor-htmlparser2-B1dhFPOs.js +0 -1426
- package/dist/vendor-iconify-vue-DfRGgyNu.js +0 -1840
- package/dist/vendor-intlify-core-base-BuknsFQe.js +0 -1876
- package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +0 -1508
- package/dist/vendor-intlify-shared-Cz4YRMuC.js +0 -241
- package/dist/vendor-iso-639-1-BJCk9DvE.js +0 -819
- package/dist/vendor-linkify-it-CKUf4vsc.js +0 -830
- package/dist/vendor-linkifyjs-BfyGgbCh.js +0 -1756
- package/dist/vendor-lodash-es-BySUOlwf.js +0 -18333
- package/dist/vendor-markdown-it-D-apazHa.js +0 -6000
- package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +0 -131
- package/dist/vendor-mdurl-BNh2CCgT.js +0 -537
- package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +0 -1275
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +0 -591
- package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +0 -2153
- package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +0 -2470
- package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +0 -6589
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +0 -1510
- package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +0 -761
- package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +0 -70
- package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +0 -667
- package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +0 -520
- package/dist/vendor-microsoft-signalr-dUnlRsGm.js +0 -3339
- package/dist/vendor-moment-Mki5YqAR.js +0 -5679
- package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +0 -395
- package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +0 -1160
- package/dist/vendor-nth-check-Bx8TxtJt.js +0 -157
- package/dist/vendor-orderedmap-dGG6uMFJ.js +0 -137
- package/dist/vendor-parse5-Bt2NhSzR.js +0 -8432
- package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +0 -216
- package/dist/vendor-popperjs-core-Cr2byIky.js +0 -1790
- package/dist/vendor-prettier-B4PaeWRQ.js +0 -98
- package/dist/vendor-prosemirror-commands-BH9lWGpW.js +0 -561
- package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +0 -146
- package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +0 -236
- package/dist/vendor-prosemirror-history-BDaJkvNx.js +0 -414
- package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +0 -128
- package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +0 -866
- package/dist/vendor-prosemirror-model-BZu3WVcD.js +0 -3463
- package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +0 -158
- package/dist/vendor-prosemirror-state-BvL9Pxph.js +0 -1003
- package/dist/vendor-prosemirror-tables-17qAnviK.js +0 -2159
- package/dist/vendor-prosemirror-transform-CE9VV3qg.js +0 -2156
- package/dist/vendor-prosemirror-view-CU2WTHT7.js +0 -5811
- package/dist/vendor-punycode-js-iAs5RxMf.js +0 -441
- package/dist/vendor-rope-sequence-BdXDKoGt.js +0 -207
- package/dist/vendor-semver-CVLMK-S4.js +0 -2702
- package/dist/vendor-ssr-window-s6OpKa3O.js +0 -150
- package/dist/vendor-swiper-CdiyNHVt.js +0 -5679
- package/dist/vendor-tippy-js-DWFe2TfK.js +0 -1647
- package/dist/vendor-tiptap-core-NfwGfaQk.js +0 -4910
- package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +0 -57
- package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +0 -97
- package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +0 -218
- package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +0 -73
- package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +0 -221
- package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +0 -75
- package/dist/vendor-tiptap-extension-document-DssuotYs.js +0 -13
- package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +0 -26
- package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +0 -165
- package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +0 -30
- package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +0 -68
- package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +0 -77
- package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +0 -48
- package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +0 -92
- package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +0 -76
- package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +0 -96
- package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +0 -414
- package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +0 -37
- package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +0 -97
- package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +0 -39
- package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +0 -66
- package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +0 -79
- package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +0 -47
- package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +0 -47
- package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +0 -26
- package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +0 -354
- package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +0 -12
- package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +0 -50
- package/dist/vendor-tiptap-markdown-7-PCADTU.js +0 -1017
- package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +0 -88
- package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +0 -268
- package/dist/vendor-truncate-html-3qQY0Djo.js +0 -196
- package/dist/vendor-uc-micro-jjt6LQ65.js +0 -23
- package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +0 -154
- package/dist/vendor-vee-validate-rules-DzV3VY3N.js +0 -536
- package/dist/vendor-vue-currency-input-DGAkEFBO.js +0 -545
- package/dist/vendor-vue-devtools-api-DXYR8qBG.js +0 -169
- package/dist/vendor-vue-i18n-Co752uk3.js +0 -1897
- package/dist/vendor-vue3-application-insights-CYWFCr_J.js +0 -119
- package/dist/vendor-vue3-touch-events-BJEAiSa3.js +0 -416
- package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +0 -5019
- package/dist/vendor-vueuse-components-l1bL12mE.js +0 -339
- package/dist/vendor-vueuse-core-DGcJOmwG.js +0 -7743
- package/dist/vendor-vueuse-shared-_mOXsFuM.js +0 -1568
- package/dist/vendor-w3c-keyname-BOm2dtJm.js +0 -121
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vee-validate v4.15.1
|
|
3
|
+
* (c) 2025 Abdelrahman Awad
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
const a = {
|
|
7
|
+
en: /^[A-Z]*$/i,
|
|
8
|
+
cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,
|
|
9
|
+
da: /^[A-ZÆØÅ]*$/i,
|
|
10
|
+
de: /^[A-ZÄÖÜß]*$/i,
|
|
11
|
+
es: /^[A-ZÁÉÍÑÓÚÜ]*$/i,
|
|
12
|
+
fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,
|
|
13
|
+
it: /^[A-Z\xC0-\xFF]*$/i,
|
|
14
|
+
lt: /^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,
|
|
15
|
+
nl: /^[A-ZÉËÏÓÖÜ]*$/i,
|
|
16
|
+
hu: /^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,
|
|
17
|
+
pl: /^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,
|
|
18
|
+
pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,
|
|
19
|
+
ru: /^[А-ЯЁ]*$/i,
|
|
20
|
+
kz: /^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i,
|
|
21
|
+
sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,
|
|
22
|
+
sr: /^[A-ZČĆŽŠĐ]*$/i,
|
|
23
|
+
sv: /^[A-ZÅÄÖ]*$/i,
|
|
24
|
+
tr: /^[A-ZÇĞİıÖŞÜ]*$/i,
|
|
25
|
+
uk: /^[А-ЩЬЮЯЄІЇҐ]*$/i,
|
|
26
|
+
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,
|
|
27
|
+
az: /^[A-ZÇƏĞİıÖŞÜ]*$/i,
|
|
28
|
+
ug: /^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i
|
|
29
|
+
}, c = {
|
|
30
|
+
en: /^[A-Z\s]*$/i,
|
|
31
|
+
cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,
|
|
32
|
+
da: /^[A-ZÆØÅ\s]*$/i,
|
|
33
|
+
de: /^[A-ZÄÖÜß\s]*$/i,
|
|
34
|
+
es: /^[A-ZÁÉÍÑÓÚÜ\s]*$/i,
|
|
35
|
+
fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,
|
|
36
|
+
it: /^[A-Z\xC0-\xFF\s]*$/i,
|
|
37
|
+
lt: /^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,
|
|
38
|
+
nl: /^[A-ZÉËÏÓÖÜ\s]*$/i,
|
|
39
|
+
hu: /^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,
|
|
40
|
+
pl: /^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,
|
|
41
|
+
pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,
|
|
42
|
+
ru: /^[А-ЯЁ\s]*$/i,
|
|
43
|
+
kz: /^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA\s]*$/i,
|
|
44
|
+
sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,
|
|
45
|
+
sr: /^[A-ZČĆŽŠĐ\s]*$/i,
|
|
46
|
+
sv: /^[A-ZÅÄÖ\s]*$/i,
|
|
47
|
+
tr: /^[A-ZÇĞİıÖŞÜ\s]*$/i,
|
|
48
|
+
uk: /^[А-ЩЬЮЯЄІЇҐ\s]*$/i,
|
|
49
|
+
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/,
|
|
50
|
+
az: /^[A-ZÇƏĞİıÖŞÜ\s]*$/i,
|
|
51
|
+
ug: /^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ\s]*$/i
|
|
52
|
+
}, $ = {
|
|
53
|
+
en: /^[0-9A-Z]*$/i,
|
|
54
|
+
cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,
|
|
55
|
+
da: /^[0-9A-ZÆØÅ]$/i,
|
|
56
|
+
de: /^[0-9A-ZÄÖÜß]*$/i,
|
|
57
|
+
es: /^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,
|
|
58
|
+
fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,
|
|
59
|
+
it: /^[0-9A-Z\xC0-\xFF]*$/i,
|
|
60
|
+
lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,
|
|
61
|
+
hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,
|
|
62
|
+
nl: /^[0-9A-ZÉËÏÓÖÜ]*$/i,
|
|
63
|
+
pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,
|
|
64
|
+
pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,
|
|
65
|
+
ru: /^[0-9А-ЯЁ]*$/i,
|
|
66
|
+
kz: /^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i,
|
|
67
|
+
sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,
|
|
68
|
+
sr: /^[0-9A-ZČĆŽŠĐ]*$/i,
|
|
69
|
+
sv: /^[0-9A-ZÅÄÖ]*$/i,
|
|
70
|
+
tr: /^[0-9A-ZÇĞİıÖŞÜ]*$/i,
|
|
71
|
+
uk: /^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,
|
|
72
|
+
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,
|
|
73
|
+
az: /^[0-9A-ZÇƏĞİıÖŞÜ]*$/i,
|
|
74
|
+
ug: /^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i
|
|
75
|
+
}, g = {
|
|
76
|
+
en: /^[0-9A-Z_-]*$/i,
|
|
77
|
+
cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,
|
|
78
|
+
da: /^[0-9A-ZÆØÅ_-]*$/i,
|
|
79
|
+
de: /^[0-9A-ZÄÖÜß_-]*$/i,
|
|
80
|
+
es: /^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,
|
|
81
|
+
fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,
|
|
82
|
+
it: /^[0-9A-Z\xC0-\xFF_-]*$/i,
|
|
83
|
+
lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,
|
|
84
|
+
nl: /^[0-9A-ZÉËÏÓÖÜ_-]*$/i,
|
|
85
|
+
hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,
|
|
86
|
+
pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,
|
|
87
|
+
pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,
|
|
88
|
+
ru: /^[0-9А-ЯЁ_-]*$/i,
|
|
89
|
+
kz: /^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA_-]*$/i,
|
|
90
|
+
sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,
|
|
91
|
+
sr: /^[0-9A-ZČĆŽŠĐ_-]*$/i,
|
|
92
|
+
sv: /^[0-9A-ZÅÄÖ_-]*$/i,
|
|
93
|
+
tr: /^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,
|
|
94
|
+
uk: /^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,
|
|
95
|
+
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,
|
|
96
|
+
az: /^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i,
|
|
97
|
+
ug: /^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ_-]*$/i
|
|
98
|
+
}, y = (r) => {
|
|
99
|
+
if (r)
|
|
100
|
+
return Array.isArray(r) ? r[0] : r.locale;
|
|
101
|
+
};
|
|
102
|
+
function u(r, e) {
|
|
103
|
+
return Array.isArray(r) ? r[0] : r[e];
|
|
104
|
+
}
|
|
105
|
+
function s(r) {
|
|
106
|
+
return !!(r == null || r === "" || Array.isArray(r) && r.length === 0);
|
|
107
|
+
}
|
|
108
|
+
const d = (r, e) => {
|
|
109
|
+
if (s(r))
|
|
110
|
+
return !0;
|
|
111
|
+
const t = y(e);
|
|
112
|
+
if (Array.isArray(r))
|
|
113
|
+
return r.every((i) => d(i, { locale: t }));
|
|
114
|
+
const n = String(r);
|
|
115
|
+
return t ? (a[t] || a.en).test(n) : Object.keys(a).some((i) => a[i].test(n));
|
|
116
|
+
}, m = (r, e) => {
|
|
117
|
+
if (s(r))
|
|
118
|
+
return !0;
|
|
119
|
+
const t = y(e);
|
|
120
|
+
if (Array.isArray(r))
|
|
121
|
+
return r.every((i) => m(i, { locale: t }));
|
|
122
|
+
const n = String(r);
|
|
123
|
+
return t ? (g[t] || g.en).test(n) : Object.keys(g).some((i) => g[i].test(n));
|
|
124
|
+
}, l = (r, e) => {
|
|
125
|
+
if (s(r))
|
|
126
|
+
return !0;
|
|
127
|
+
const t = y(e);
|
|
128
|
+
if (Array.isArray(r))
|
|
129
|
+
return r.every((i) => l(i, { locale: t }));
|
|
130
|
+
const n = String(r);
|
|
131
|
+
return t ? ($[t] || $.en).test(n) : Object.keys($).some((i) => $[i].test(n));
|
|
132
|
+
}, p = (r, e) => {
|
|
133
|
+
if (s(r))
|
|
134
|
+
return !0;
|
|
135
|
+
const t = y(e);
|
|
136
|
+
if (Array.isArray(r))
|
|
137
|
+
return r.every((i) => p(i, { locale: t }));
|
|
138
|
+
const n = String(r);
|
|
139
|
+
return t ? (c[t] || c.en).test(n) : Object.keys(c).some((i) => c[i].test(n));
|
|
140
|
+
};
|
|
141
|
+
function k(r) {
|
|
142
|
+
return Array.isArray(r) ? { min: r[0], max: r[1] } : r;
|
|
143
|
+
}
|
|
144
|
+
const _ = (r, e) => {
|
|
145
|
+
if (s(r))
|
|
146
|
+
return !0;
|
|
147
|
+
const { min: t, max: n } = k(e);
|
|
148
|
+
if (Array.isArray(r))
|
|
149
|
+
return r.every((o) => _(o, { min: t, max: n }));
|
|
150
|
+
const i = Number(r);
|
|
151
|
+
return Number(t) <= i && Number(n) >= i;
|
|
152
|
+
}, z = (r, e) => {
|
|
153
|
+
const t = u(e, "target");
|
|
154
|
+
return String(r) === String(t);
|
|
155
|
+
}, V = (r, e) => {
|
|
156
|
+
if (s(r))
|
|
157
|
+
return !0;
|
|
158
|
+
const t = u(e, "length");
|
|
159
|
+
if (Array.isArray(r))
|
|
160
|
+
return r.every((i) => V(i, { length: t }));
|
|
161
|
+
const n = String(r);
|
|
162
|
+
return /^[0-9]*$/.test(n) && n.length === Number(t);
|
|
163
|
+
}, R = (r, e, t) => {
|
|
164
|
+
const n = window.URL || window.webkitURL;
|
|
165
|
+
return new Promise((i) => {
|
|
166
|
+
const o = new Image();
|
|
167
|
+
o.onerror = () => i(!1), o.onload = () => i(o.width === e && o.height === t), o.src = n.createObjectURL(r);
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
function j(r) {
|
|
171
|
+
return r ? Array.isArray(r) ? { width: Number(r[0]), height: Number(r[1]) } : {
|
|
172
|
+
width: Number(r.width),
|
|
173
|
+
height: Number(r.height)
|
|
174
|
+
} : { width: 0, height: 0 };
|
|
175
|
+
}
|
|
176
|
+
const D = (r, e) => {
|
|
177
|
+
if (s(r))
|
|
178
|
+
return !0;
|
|
179
|
+
const { width: t, height: n } = j(e), i = [], o = Array.isArray(r) ? r : [r];
|
|
180
|
+
for (let A = 0; A < o.length; A++) {
|
|
181
|
+
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(o[A].name))
|
|
182
|
+
return Promise.resolve(!1);
|
|
183
|
+
i.push(o[A]);
|
|
184
|
+
}
|
|
185
|
+
return Promise.all(i.map((A) => R(A, t, n))).then((A) => A.every((E) => E));
|
|
186
|
+
}, Z = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, O = (r) => s(r) ? !0 : Array.isArray(r) ? r.every((e) => Z.test(String(e))) : Z.test(String(r)), B = (r, e) => {
|
|
187
|
+
if (s(r))
|
|
188
|
+
return !0;
|
|
189
|
+
const t = new RegExp(`\\.(${e.join("|")})$`, "i");
|
|
190
|
+
return Array.isArray(r) ? r.every((n) => t.test(n.name)) : t.test(r.name);
|
|
191
|
+
}, F = (r) => {
|
|
192
|
+
if (s(r))
|
|
193
|
+
return !0;
|
|
194
|
+
const e = /\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;
|
|
195
|
+
return Array.isArray(r) ? r.every((t) => e.test(t.name)) : e.test(r.name);
|
|
196
|
+
}, L = (r) => s(r) ? !0 : Array.isArray(r) ? r.every((e) => /^-?[0-9]+$/.test(String(e))) : /^-?[0-9]+$/.test(String(r)), P = (r, e) => {
|
|
197
|
+
const t = u(e, "other");
|
|
198
|
+
return r === t;
|
|
199
|
+
}, U = (r, e) => {
|
|
200
|
+
const t = u(e, "other");
|
|
201
|
+
return r !== t;
|
|
202
|
+
}, C = (r, e) => {
|
|
203
|
+
if (s(r))
|
|
204
|
+
return !0;
|
|
205
|
+
const t = u(e, "length");
|
|
206
|
+
return typeof r == "number" && (r = String(r)), r.length || (r = Array.from(r)), r.length === Number(t);
|
|
207
|
+
}, b = (r, e) => {
|
|
208
|
+
if (s(r))
|
|
209
|
+
return !0;
|
|
210
|
+
const t = u(e, "length");
|
|
211
|
+
return Array.isArray(r) ? r.every((n) => b(n, { length: t })) : [...String(r)].length <= Number(t);
|
|
212
|
+
}, x = (r, e) => {
|
|
213
|
+
if (s(r))
|
|
214
|
+
return !0;
|
|
215
|
+
const t = u(e, "max");
|
|
216
|
+
return Array.isArray(r) ? r.length > 0 && r.every((n) => x(n, { max: t })) : Number(r) <= Number(t);
|
|
217
|
+
}, h = /\+(.+)?/;
|
|
218
|
+
function I(r) {
|
|
219
|
+
let e = r;
|
|
220
|
+
return h.test(r) && (e = r.replace(h, "(\\+$1)?")), new RegExp(e.replace("*", ".+"), "i");
|
|
221
|
+
}
|
|
222
|
+
const q = (r, e) => {
|
|
223
|
+
if (s(r))
|
|
224
|
+
return !0;
|
|
225
|
+
e || (e = []);
|
|
226
|
+
const t = e.map(I);
|
|
227
|
+
return Array.isArray(r) ? r.every((n) => t.some((i) => i.test(n.type))) : t.some((n) => n.test(r.type));
|
|
228
|
+
}, S = (r, e) => {
|
|
229
|
+
if (s(r))
|
|
230
|
+
return !0;
|
|
231
|
+
const t = u(e, "length");
|
|
232
|
+
return Array.isArray(r) ? r.every((n) => S(n, { length: t })) : [...String(r)].length >= Number(t);
|
|
233
|
+
}, N = (r, e) => {
|
|
234
|
+
if (s(r))
|
|
235
|
+
return !0;
|
|
236
|
+
const t = u(e, "min");
|
|
237
|
+
return Array.isArray(r) ? r.length > 0 && r.every((n) => N(n, { min: t })) : Number(r) >= Number(t);
|
|
238
|
+
}, f = (r, e) => s(r) ? !0 : Array.isArray(r) ? r.every((t) => f(t, e)) : Array.from(e).some((t) => t == r), M = (r, e) => s(r) ? !0 : !f(r, e), G = /^[٠١٢٣٤٥٦٧٨٩]+$/, H = /^[0-9]+$/, J = (r) => {
|
|
239
|
+
if (s(r))
|
|
240
|
+
return !0;
|
|
241
|
+
const e = (t) => {
|
|
242
|
+
const n = String(t);
|
|
243
|
+
return H.test(n) || G.test(n);
|
|
244
|
+
};
|
|
245
|
+
return Array.isArray(r) ? r.every(e) : e(r);
|
|
246
|
+
}, w = (r, e) => {
|
|
247
|
+
if (s(r))
|
|
248
|
+
return !0;
|
|
249
|
+
let t = u(e, "regex");
|
|
250
|
+
return typeof t == "string" && (t = new RegExp(t)), Array.isArray(r) ? r.every((n) => w(n, { regex: t })) : t.test(String(r));
|
|
251
|
+
};
|
|
252
|
+
function K(r) {
|
|
253
|
+
return r == null;
|
|
254
|
+
}
|
|
255
|
+
function Q(r) {
|
|
256
|
+
return Array.isArray(r) && r.length === 0;
|
|
257
|
+
}
|
|
258
|
+
const T = (r) => K(r) || Q(r) || r === !1 ? !1 : !!String(r).trim().length, W = (r, e) => {
|
|
259
|
+
if (s(r))
|
|
260
|
+
return !0;
|
|
261
|
+
let t = u(e, "size");
|
|
262
|
+
if (t = Number(t), isNaN(t))
|
|
263
|
+
return !1;
|
|
264
|
+
const n = t * 1024;
|
|
265
|
+
if (!Array.isArray(r))
|
|
266
|
+
return r.size <= n;
|
|
267
|
+
for (let i = 0; i < r.length; i++)
|
|
268
|
+
if (r[i].size > n)
|
|
269
|
+
return !1;
|
|
270
|
+
return !0;
|
|
271
|
+
}, X = (r, e) => {
|
|
272
|
+
var t;
|
|
273
|
+
if (s(r))
|
|
274
|
+
return !0;
|
|
275
|
+
let n = u(e, "pattern");
|
|
276
|
+
typeof n == "string" && (n = new RegExp(n));
|
|
277
|
+
try {
|
|
278
|
+
new URL(r);
|
|
279
|
+
} catch {
|
|
280
|
+
return !1;
|
|
281
|
+
}
|
|
282
|
+
return (t = n?.test(r)) !== null && t !== void 0 ? t : !0;
|
|
283
|
+
}, Y = {
|
|
284
|
+
alpha_dash: m,
|
|
285
|
+
alpha_num: l,
|
|
286
|
+
alpha_spaces: p,
|
|
287
|
+
alpha: d,
|
|
288
|
+
between: _,
|
|
289
|
+
confirmed: z,
|
|
290
|
+
digits: V,
|
|
291
|
+
dimensions: D,
|
|
292
|
+
email: O,
|
|
293
|
+
ext: B,
|
|
294
|
+
image: F,
|
|
295
|
+
integer: L,
|
|
296
|
+
is_not: U,
|
|
297
|
+
is: P,
|
|
298
|
+
length: C,
|
|
299
|
+
max_value: x,
|
|
300
|
+
max: b,
|
|
301
|
+
mimes: q,
|
|
302
|
+
min_value: N,
|
|
303
|
+
min: S,
|
|
304
|
+
not_one_of: M,
|
|
305
|
+
numeric: J,
|
|
306
|
+
one_of: f,
|
|
307
|
+
regex: w,
|
|
308
|
+
required: T,
|
|
309
|
+
size: W,
|
|
310
|
+
url: X
|
|
311
|
+
};
|
|
312
|
+
export {
|
|
313
|
+
Y as a
|
|
314
|
+
};
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { ref as S, getCurrentInstance as O, version as M, computed as $, watch as P } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* Vue Currency Input 3.2.1
|
|
4
|
+
* (c) 2018-2025 Matthias Stiller
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
var y;
|
|
8
|
+
(function(s) {
|
|
9
|
+
s.symbol = "symbol", s.narrowSymbol = "narrowSymbol", s.code = "code", s.name = "name", s.hidden = "hidden";
|
|
10
|
+
})(y || (y = {}));
|
|
11
|
+
var p;
|
|
12
|
+
(function(s) {
|
|
13
|
+
s.precision = "precision", s.thousands = "thousands", s.tenThousands = "tenThousands", s.millions = "millions", s.billions = "billions";
|
|
14
|
+
})(p || (p = {}));
|
|
15
|
+
const b = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = (s) => s.replace(/^0+(0$|[^0])/, "$1"), x = (s, i) => (s.match(new RegExp(b(i), "g")) || []).length, R = (s, i) => s.substring(0, s.indexOf(i)), I = [
|
|
16
|
+
",",
|
|
17
|
+
".",
|
|
18
|
+
"٫",
|
|
19
|
+
"。"
|
|
20
|
+
], V = "(0|[1-9]\\d*)";
|
|
21
|
+
class _ {
|
|
22
|
+
constructor(i) {
|
|
23
|
+
var t, e, n, a, u, d;
|
|
24
|
+
const { currency: h, currencyDisplay: r, locale: m, precision: o, accountingSign: g, useGrouping: l } = i;
|
|
25
|
+
this.locale = m, this.options = {
|
|
26
|
+
currency: h,
|
|
27
|
+
useGrouping: l,
|
|
28
|
+
style: "currency",
|
|
29
|
+
currencySign: g ? "accounting" : void 0,
|
|
30
|
+
currencyDisplay: r !== y.hidden ? r : void 0
|
|
31
|
+
};
|
|
32
|
+
const c = new Intl.NumberFormat(m, this.options), F = c.formatToParts(123456);
|
|
33
|
+
this.currency = (t = F.find(({ type: f }) => f === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((f) => f.toLocaleString(m)), this.decimalSymbol = (e = F.find(({ type: f }) => f === "decimal")) === null || e === void 0 ? void 0 : e.value, this.groupingSymbol = (n = F.find(({ type: f }) => f === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (a = c.formatToParts(-1).find(({ type: f }) => f === "minusSign")) === null || a === void 0 ? void 0 : a.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof o == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = o : (this.minimumFractionDigits = (u = o?.min) !== null && u !== void 0 ? u : c.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (d = o?.max) !== null && d !== void 0 ? d : c.resolvedOptions().maximumFractionDigits);
|
|
34
|
+
const v = (f) => R(f, this.digits[1]), D = (f) => f.substring(f.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
35
|
+
this.prefix = v(c.format(1)), this.suffix = D(c.format(1)), this.negativePrefix = v(c.format(-1)), this.negativeSuffix = D(c.format(-1));
|
|
36
|
+
}
|
|
37
|
+
parse(i) {
|
|
38
|
+
if (i) {
|
|
39
|
+
const t = this.isNegative(i);
|
|
40
|
+
i = this.normalizeDigits(i), i = this.stripCurrency(i, t), i = this.stripSignLiterals(i);
|
|
41
|
+
const e = this.decimalSymbol ? `(?:${b(this.decimalSymbol)}(\\d*))?` : "", n = this.stripGroupingSeparator(i).match(new RegExp(`^${V}${e}$`));
|
|
42
|
+
if (n && this.isValidIntegerFormat(this.decimalSymbol ? i.split(this.decimalSymbol)[0] : i, Number(n[1])))
|
|
43
|
+
return +`${t ? "-" : ""}${this.onlyDigits(n[1])}.${this.onlyDigits(n[2] || "")}`;
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
isValidIntegerFormat(i, t) {
|
|
48
|
+
const e = { ...this.options, minimumFractionDigits: 0 };
|
|
49
|
+
return [
|
|
50
|
+
this.stripCurrency(this.normalizeDigits(t.toLocaleString(this.locale, { ...e, useGrouping: !0 })), !1),
|
|
51
|
+
this.stripCurrency(this.normalizeDigits(t.toLocaleString(this.locale, { ...e, useGrouping: !1 })), !1)
|
|
52
|
+
].includes(i);
|
|
53
|
+
}
|
|
54
|
+
format(i, t = {
|
|
55
|
+
minimumFractionDigits: this.minimumFractionDigits,
|
|
56
|
+
maximumFractionDigits: this.maximumFractionDigits
|
|
57
|
+
}) {
|
|
58
|
+
return i != null ? i.toLocaleString(this.locale, { ...this.options, ...t }) : "";
|
|
59
|
+
}
|
|
60
|
+
toFraction(i) {
|
|
61
|
+
return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(i.substring(1)).substring(0, this.maximumFractionDigits)}`;
|
|
62
|
+
}
|
|
63
|
+
isFractionIncomplete(i) {
|
|
64
|
+
return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${V}${b(this.decimalSymbol)}$`));
|
|
65
|
+
}
|
|
66
|
+
isNegative(i) {
|
|
67
|
+
return i.startsWith(this.negativePrefix) || this.minusSign === void 0 && (i.startsWith("(") || i.startsWith("-")) || this.minusSign !== void 0 && i.replace("-", this.minusSign).startsWith(this.minusSign);
|
|
68
|
+
}
|
|
69
|
+
insertCurrency(i, t) {
|
|
70
|
+
return `${t ? this.negativePrefix : this.prefix}${i}${t ? this.negativeSuffix : this.suffix}`;
|
|
71
|
+
}
|
|
72
|
+
stripGroupingSeparator(i) {
|
|
73
|
+
return this.groupingSymbol !== void 0 ? i.replace(new RegExp(b(this.groupingSymbol), "g"), "") : i;
|
|
74
|
+
}
|
|
75
|
+
stripSignLiterals(i) {
|
|
76
|
+
return this.minusSign !== void 0 ? i.replace("-", this.minusSign).replace(this.minusSign, "") : i.replace(/[-()]/g, "");
|
|
77
|
+
}
|
|
78
|
+
stripCurrency(i, t) {
|
|
79
|
+
return i.replace(t ? this.negativePrefix : this.prefix, "").replace(t ? this.negativeSuffix : this.suffix, "");
|
|
80
|
+
}
|
|
81
|
+
normalizeDecimalSeparator(i, t) {
|
|
82
|
+
return I.forEach((e) => {
|
|
83
|
+
i = i.substring(0, t) + i.substring(t).replace(e, this.decimalSymbol);
|
|
84
|
+
}), i;
|
|
85
|
+
}
|
|
86
|
+
normalizeDigits(i) {
|
|
87
|
+
return this.digits[0] !== "0" && this.digits.forEach((t, e) => {
|
|
88
|
+
i = i.replace(new RegExp(t, "g"), String(e));
|
|
89
|
+
}), i;
|
|
90
|
+
}
|
|
91
|
+
onlyDigits(i) {
|
|
92
|
+
return this.normalizeDigits(i).replace(/\D+/g, "");
|
|
93
|
+
}
|
|
94
|
+
onlyLocaleDigits(i) {
|
|
95
|
+
return i.replace(new RegExp(`[^${this.digits.join("")}]*`, "g"), "");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
class N {
|
|
99
|
+
constructor(i) {
|
|
100
|
+
this.currencyFormat = i;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
class C extends N {
|
|
104
|
+
conformToMask(i, t = "") {
|
|
105
|
+
const e = this.currencyFormat.isNegative(i), n = (c) => c === "" && e && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), a = (c) => {
|
|
106
|
+
if (n(c))
|
|
107
|
+
return "";
|
|
108
|
+
if (this.currencyFormat.maximumFractionDigits > 0) {
|
|
109
|
+
if (this.currencyFormat.isFractionIncomplete(c))
|
|
110
|
+
return c;
|
|
111
|
+
if (c.startsWith(this.currencyFormat.decimalSymbol))
|
|
112
|
+
return this.currencyFormat.toFraction(c);
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
115
|
+
};
|
|
116
|
+
let u = i;
|
|
117
|
+
u = this.currencyFormat.stripCurrency(u, e), u = this.currencyFormat.stripSignLiterals(u);
|
|
118
|
+
const d = a(u);
|
|
119
|
+
if (d != null)
|
|
120
|
+
return this.currencyFormat.insertCurrency(d, e);
|
|
121
|
+
const [h, ...r] = u.split(this.currencyFormat.decimalSymbol), m = E(this.currencyFormat.onlyDigits(h)), o = this.currencyFormat.onlyDigits(r.join("")).substring(0, this.currencyFormat.maximumFractionDigits), g = r.length > 0 && o.length === 0, l = m === "" && e && (this.currencyFormat.minusSign === void 0 ? t === i.slice(0, -2) + this.currencyFormat.negativeSuffix : t === i.slice(0, -1));
|
|
122
|
+
return g || l || n(m) ? t : m.match(/\d+/) ? {
|
|
123
|
+
numberValue: +`${e ? "-" : ""}${m}.${o}`,
|
|
124
|
+
fractionDigits: o
|
|
125
|
+
} : "";
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
class A extends N {
|
|
129
|
+
conformToMask(i, t = "") {
|
|
130
|
+
if (i === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(i, !0))
|
|
131
|
+
return "";
|
|
132
|
+
const e = this.currencyFormat.isNegative(i), n = this.currencyFormat.stripSignLiterals(i) === "" ? -0 : +`${e ? "-" : ""}${E(this.currencyFormat.onlyDigits(i))}` / Math.pow(10, this.currencyFormat.maximumFractionDigits);
|
|
133
|
+
return {
|
|
134
|
+
numberValue: n,
|
|
135
|
+
fractionDigits: n.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const L = {
|
|
140
|
+
locale: void 0,
|
|
141
|
+
currency: void 0,
|
|
142
|
+
currencyDisplay: void 0,
|
|
143
|
+
hideGroupingSeparatorOnFocus: !0,
|
|
144
|
+
hideCurrencySymbolOnFocus: !0,
|
|
145
|
+
hideNegligibleDecimalDigitsOnFocus: !0,
|
|
146
|
+
precision: void 0,
|
|
147
|
+
autoDecimalDigits: !1,
|
|
148
|
+
valueRange: void 0,
|
|
149
|
+
useGrouping: void 0,
|
|
150
|
+
valueScaling: void 0
|
|
151
|
+
};
|
|
152
|
+
class T {
|
|
153
|
+
constructor(i) {
|
|
154
|
+
this.el = i.el, this.onInput = i.onInput, this.onChange = i.onChange, this.addEventListener(), this.init(i.options);
|
|
155
|
+
}
|
|
156
|
+
setOptions(i) {
|
|
157
|
+
this.init(i), this.format(this.currencyFormat.format(this.validateValueRange(this.numberValue))), this.onChange(this.getValue());
|
|
158
|
+
}
|
|
159
|
+
getValue() {
|
|
160
|
+
return { number: this.valueScaling && this.numberValue != null ? this.toInteger(this.numberValue, this.valueScaling) : this.numberValue, formatted: this.formattedValue };
|
|
161
|
+
}
|
|
162
|
+
setValue(i) {
|
|
163
|
+
const t = this.valueScaling !== void 0 && i != null ? this.toFloat(i, this.valueScaling) : i;
|
|
164
|
+
t !== this.numberValue && (this.format(this.currencyFormat.format(this.validateValueRange(t))), this.onChange(this.getValue()));
|
|
165
|
+
}
|
|
166
|
+
init(i) {
|
|
167
|
+
this.options = {
|
|
168
|
+
...L,
|
|
169
|
+
...i
|
|
170
|
+
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new _(this.options), this.numberMask = this.options.autoDecimalDigits ? new A(this.currencyFormat) : new C(this.currencyFormat);
|
|
171
|
+
const t = {
|
|
172
|
+
[p.precision]: this.currencyFormat.maximumFractionDigits,
|
|
173
|
+
[p.thousands]: 3,
|
|
174
|
+
[p.tenThousands]: 4,
|
|
175
|
+
[p.millions]: 6,
|
|
176
|
+
[p.billions]: 9
|
|
177
|
+
};
|
|
178
|
+
this.valueScaling = this.options.valueScaling ? t[this.options.valueScaling] : void 0, this.valueScalingFractionDigits = this.valueScaling !== void 0 && this.options.valueScaling !== p.precision ? this.valueScaling + this.currencyFormat.maximumFractionDigits : this.currencyFormat.maximumFractionDigits, this.minValue = this.getMinValue(), this.maxValue = this.getMaxValue();
|
|
179
|
+
}
|
|
180
|
+
getMinValue() {
|
|
181
|
+
var i, t;
|
|
182
|
+
let e = this.toFloat(-Number.MAX_SAFE_INTEGER);
|
|
183
|
+
return ((i = this.options.valueRange) === null || i === void 0 ? void 0 : i.min) !== void 0 && (e = Math.max((t = this.options.valueRange) === null || t === void 0 ? void 0 : t.min, this.toFloat(-Number.MAX_SAFE_INTEGER))), e;
|
|
184
|
+
}
|
|
185
|
+
getMaxValue() {
|
|
186
|
+
var i, t;
|
|
187
|
+
let e = this.toFloat(Number.MAX_SAFE_INTEGER);
|
|
188
|
+
return ((i = this.options.valueRange) === null || i === void 0 ? void 0 : i.max) !== void 0 && (e = Math.min((t = this.options.valueRange) === null || t === void 0 ? void 0 : t.max, this.toFloat(Number.MAX_SAFE_INTEGER))), e;
|
|
189
|
+
}
|
|
190
|
+
toFloat(i, t) {
|
|
191
|
+
return i / Math.pow(10, t ?? this.valueScalingFractionDigits);
|
|
192
|
+
}
|
|
193
|
+
toInteger(i, t) {
|
|
194
|
+
return Number(i.toFixed(t ?? this.valueScalingFractionDigits).split(".").join(""));
|
|
195
|
+
}
|
|
196
|
+
validateValueRange(i) {
|
|
197
|
+
return i != null ? Math.min(Math.max(i, this.minValue), this.maxValue) : i;
|
|
198
|
+
}
|
|
199
|
+
format(i, t = !1) {
|
|
200
|
+
if (i != null) {
|
|
201
|
+
this.decimalSymbolInsertedAt !== void 0 && (i = this.currencyFormat.normalizeDecimalSeparator(i, this.decimalSymbolInsertedAt), this.decimalSymbolInsertedAt = void 0);
|
|
202
|
+
const e = this.numberMask.conformToMask(i, this.formattedValue);
|
|
203
|
+
let n;
|
|
204
|
+
if (typeof e == "object") {
|
|
205
|
+
const { numberValue: a, fractionDigits: u } = e;
|
|
206
|
+
let { maximumFractionDigits: d, minimumFractionDigits: h } = this.currencyFormat;
|
|
207
|
+
this.focus ? h = t ? u.replace(/0+$/, "").length : Math.min(d, u.length) : Number.isInteger(a) && !this.options.autoDecimalDigits && (this.options.precision === void 0 || h === 0) && (h = d = 0), n = this.toInteger(Math.abs(a)) > Number.MAX_SAFE_INTEGER ? this.formattedValue : this.currencyFormat.format(a, {
|
|
208
|
+
useGrouping: this.options.useGrouping !== !1 && !(this.focus && this.options.hideGroupingSeparatorOnFocus),
|
|
209
|
+
minimumFractionDigits: h,
|
|
210
|
+
maximumFractionDigits: d
|
|
211
|
+
});
|
|
212
|
+
} else
|
|
213
|
+
n = e;
|
|
214
|
+
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay === y.hidden || this.focus && this.options.hideCurrencySymbolOnFocus) && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== void 0 ? this.currencyFormat.minusSign : "(").replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== void 0 ? "" : ")").replace(this.currencyFormat.prefix, "").replace(this.currencyFormat.suffix, "")), this.el.value = n, this.numberValue = this.currencyFormat.parse(n);
|
|
215
|
+
} else
|
|
216
|
+
this.el.value = "", this.numberValue = null;
|
|
217
|
+
this.formattedValue = this.el.value, this.onInput(this.getValue());
|
|
218
|
+
}
|
|
219
|
+
addEventListener() {
|
|
220
|
+
this.el.addEventListener("input", (i) => {
|
|
221
|
+
const { value: t, selectionStart: e } = this.el, n = i;
|
|
222
|
+
if (e && n.data && I.includes(n.data) && (this.decimalSymbolInsertedAt = e - 1), this.format(t), this.focus && e != null) {
|
|
223
|
+
const a = () => {
|
|
224
|
+
const { prefix: u, suffix: d, decimalSymbol: h, maximumFractionDigits: r, groupingSymbol: m } = this.currencyFormat;
|
|
225
|
+
let o = t.length - e;
|
|
226
|
+
const g = this.formattedValue.length;
|
|
227
|
+
if (this.currencyFormat.minusSign === void 0 && (t.startsWith("(") || t.startsWith("-")) && !t.endsWith(")"))
|
|
228
|
+
return g - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(e).length : 1;
|
|
229
|
+
if (this.formattedValue.substring(e, 1) === m && x(this.formattedValue, m) === x(t, m) + 1)
|
|
230
|
+
return g - o - 1;
|
|
231
|
+
if (g < o)
|
|
232
|
+
return e;
|
|
233
|
+
if (h !== void 0 && t.indexOf(h) !== -1) {
|
|
234
|
+
const l = t.indexOf(h) + 1;
|
|
235
|
+
if (Math.abs(g - t.length) > 1 && e <= l)
|
|
236
|
+
return this.formattedValue.indexOf(h) + 1;
|
|
237
|
+
!this.options.autoDecimalDigits && e > l && this.currencyFormat.onlyDigits(t.substring(l)).length - 1 === r && (o -= 1);
|
|
238
|
+
}
|
|
239
|
+
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === y.hidden ? g - o : Math.max(g - Math.max(o, d.length), u.length);
|
|
240
|
+
};
|
|
241
|
+
this.setCaretPosition(a());
|
|
242
|
+
}
|
|
243
|
+
}), this.el.addEventListener("focus", () => {
|
|
244
|
+
this.focus = !0, this.numberValueOnFocus = this.numberValue, setTimeout(() => {
|
|
245
|
+
const { value: i, selectionStart: t, selectionEnd: e } = this.el;
|
|
246
|
+
if (this.format(i, this.options.hideNegligibleDecimalDigitsOnFocus), t != null && e != null && Math.abs(t - e) > 0)
|
|
247
|
+
this.setCaretPosition(0, this.el.value.length);
|
|
248
|
+
else if (t != null) {
|
|
249
|
+
const n = this.getCaretPositionOnFocus(i, t);
|
|
250
|
+
this.setCaretPosition(n);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}), this.el.addEventListener("blur", () => {
|
|
254
|
+
this.focus = !1, this.format(this.currencyFormat.format(this.validateValueRange(this.numberValue))), this.numberValueOnFocus !== this.numberValue && this.onChange(this.getValue());
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
getCaretPositionOnFocus(i, t) {
|
|
258
|
+
if (this.numberValue == null)
|
|
259
|
+
return t;
|
|
260
|
+
const { prefix: e, negativePrefix: n, suffix: a, negativeSuffix: u, groupingSymbol: d, currency: h } = this.currencyFormat, r = this.numberValue < 0, m = r ? n : e, o = m.length;
|
|
261
|
+
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === y.hidden) {
|
|
262
|
+
if (r) {
|
|
263
|
+
if (t <= 1)
|
|
264
|
+
return 1;
|
|
265
|
+
if (i.endsWith(")") && t > i.indexOf(")"))
|
|
266
|
+
return this.formattedValue.length - 1;
|
|
267
|
+
}
|
|
268
|
+
} else {
|
|
269
|
+
const l = r ? u.length : a.length;
|
|
270
|
+
if (t >= i.length - l)
|
|
271
|
+
return this.formattedValue.length - l;
|
|
272
|
+
if (t < o)
|
|
273
|
+
return o;
|
|
274
|
+
}
|
|
275
|
+
let g = t;
|
|
276
|
+
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !== y.hidden && t >= o && h !== void 0 && m.includes(h) && (g -= o, r && (g += 1)), this.options.hideGroupingSeparatorOnFocus && d !== void 0 && (g -= x(i.substring(0, t), d)), g;
|
|
277
|
+
}
|
|
278
|
+
setCaretPosition(i, t = i) {
|
|
279
|
+
this.el.setSelectionRange(i, t);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const w = (s) => s?.matches("input") ? s : s?.querySelector("input");
|
|
283
|
+
function k(s, i) {
|
|
284
|
+
var t, e, n;
|
|
285
|
+
let a;
|
|
286
|
+
const u = S(null), d = S(null), h = S(null), r = O();
|
|
287
|
+
r?.emit || ((e = (t = r?.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || e === void 0 || e.bind(r?.proxy));
|
|
288
|
+
const m = r?.props || ((n = r?.proxy) === null || n === void 0 ? void 0 : n.$props), o = M.startsWith("3"), g = $(() => m?.[o ? "modelValue" : "value"]);
|
|
289
|
+
return P(u, (l) => {
|
|
290
|
+
var c;
|
|
291
|
+
if (l) {
|
|
292
|
+
const F = w((c = l?.$el) !== null && c !== void 0 ? c : l);
|
|
293
|
+
F ? (a = new T({
|
|
294
|
+
el: F,
|
|
295
|
+
options: s,
|
|
296
|
+
onInput: (v) => {
|
|
297
|
+
h.value = v.number, d.value = v.formatted;
|
|
298
|
+
},
|
|
299
|
+
onChange: (v) => {
|
|
300
|
+
}
|
|
301
|
+
}), a.setValue(g.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
|
|
302
|
+
} else
|
|
303
|
+
a = null;
|
|
304
|
+
}), {
|
|
305
|
+
inputRef: u,
|
|
306
|
+
numberValue: h,
|
|
307
|
+
formattedValue: d,
|
|
308
|
+
setValue: (l) => a?.setValue(l),
|
|
309
|
+
setOptions: (l) => a?.setOptions(l)
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
export {
|
|
313
|
+
y as C,
|
|
314
|
+
k as u
|
|
315
|
+
};
|