@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,1647 +0,0 @@
1
- import { c as createPopper, a as applyStyles } from './vendor-popperjs-core-Cr2byIky.js';
2
-
3
- /**!
4
- * tippy.js v6.3.7
5
- * (c) 2017-2021 atomiks
6
- * MIT License
7
- */
8
- var BOX_CLASS = "tippy-box";
9
- var CONTENT_CLASS = "tippy-content";
10
- var BACKDROP_CLASS = "tippy-backdrop";
11
- var ARROW_CLASS = "tippy-arrow";
12
- var SVG_ARROW_CLASS = "tippy-svg-arrow";
13
- var TOUCH_OPTIONS = {
14
- passive: true,
15
- capture: true
16
- };
17
- var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {
18
- return document.body;
19
- };
20
-
21
- function hasOwnProperty(obj, key) {
22
- return {}.hasOwnProperty.call(obj, key);
23
- }
24
- function getValueAtIndexOrReturn(value, index, defaultValue) {
25
- if (Array.isArray(value)) {
26
- var v = value[index];
27
- return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
28
- }
29
-
30
- return value;
31
- }
32
- function isType(value, type) {
33
- var str = {}.toString.call(value);
34
- return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
35
- }
36
- function invokeWithArgsOrReturn(value, args) {
37
- return typeof value === 'function' ? value.apply(void 0, args) : value;
38
- }
39
- function debounce(fn, ms) {
40
- // Avoid wrapping in `setTimeout` if ms is 0 anyway
41
- if (ms === 0) {
42
- return fn;
43
- }
44
-
45
- var timeout;
46
- return function (arg) {
47
- clearTimeout(timeout);
48
- timeout = setTimeout(function () {
49
- fn(arg);
50
- }, ms);
51
- };
52
- }
53
- function removeProperties(obj, keys) {
54
- var clone = Object.assign({}, obj);
55
- keys.forEach(function (key) {
56
- delete clone[key];
57
- });
58
- return clone;
59
- }
60
- function splitBySpaces(value) {
61
- return value.split(/\s+/).filter(Boolean);
62
- }
63
- function normalizeToArray(value) {
64
- return [].concat(value);
65
- }
66
- function pushIfUnique(arr, value) {
67
- if (arr.indexOf(value) === -1) {
68
- arr.push(value);
69
- }
70
- }
71
- function unique(arr) {
72
- return arr.filter(function (item, index) {
73
- return arr.indexOf(item) === index;
74
- });
75
- }
76
- function getBasePlacement(placement) {
77
- return placement.split('-')[0];
78
- }
79
- function arrayFrom(value) {
80
- return [].slice.call(value);
81
- }
82
- function removeUndefinedProps(obj) {
83
- return Object.keys(obj).reduce(function (acc, key) {
84
- if (obj[key] !== undefined) {
85
- acc[key] = obj[key];
86
- }
87
-
88
- return acc;
89
- }, {});
90
- }
91
-
92
- function div() {
93
- return document.createElement('div');
94
- }
95
- function isElement(value) {
96
- return ['Element', 'Fragment'].some(function (type) {
97
- return isType(value, type);
98
- });
99
- }
100
- function isNodeList(value) {
101
- return isType(value, 'NodeList');
102
- }
103
- function isMouseEvent(value) {
104
- return isType(value, 'MouseEvent');
105
- }
106
- function isReferenceElement(value) {
107
- return !!(value && value._tippy && value._tippy.reference === value);
108
- }
109
- function getArrayOfElements(value) {
110
- if (isElement(value)) {
111
- return [value];
112
- }
113
-
114
- if (isNodeList(value)) {
115
- return arrayFrom(value);
116
- }
117
-
118
- if (Array.isArray(value)) {
119
- return value;
120
- }
121
-
122
- return arrayFrom(document.querySelectorAll(value));
123
- }
124
- function setTransitionDuration(els, value) {
125
- els.forEach(function (el) {
126
- if (el) {
127
- el.style.transitionDuration = value + "ms";
128
- }
129
- });
130
- }
131
- function setVisibilityState(els, state) {
132
- els.forEach(function (el) {
133
- if (el) {
134
- el.setAttribute('data-state', state);
135
- }
136
- });
137
- }
138
- function getOwnerDocument(elementOrElements) {
139
- var _element$ownerDocumen;
140
-
141
- var _normalizeToArray = normalizeToArray(elementOrElements),
142
- element = _normalizeToArray[0]; // Elements created via a <template> have an ownerDocument with no reference to the body
143
-
144
-
145
- return element != null && (_element$ownerDocumen = element.ownerDocument) != null && _element$ownerDocumen.body ? element.ownerDocument : document;
146
- }
147
- function isCursorOutsideInteractiveBorder(popperTreeData, event) {
148
- var clientX = event.clientX,
149
- clientY = event.clientY;
150
- return popperTreeData.every(function (_ref) {
151
- var popperRect = _ref.popperRect,
152
- popperState = _ref.popperState,
153
- props = _ref.props;
154
- var interactiveBorder = props.interactiveBorder;
155
- var basePlacement = getBasePlacement(popperState.placement);
156
- var offsetData = popperState.modifiersData.offset;
157
-
158
- if (!offsetData) {
159
- return true;
160
- }
161
-
162
- var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
163
- var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
164
- var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
165
- var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
166
- var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
167
- var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
168
- var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
169
- var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
170
- return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
171
- });
172
- }
173
- function updateTransitionEndListener(box, action, listener) {
174
- var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
175
- // `webkitTransitionEnd`...
176
-
177
- ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
178
- box[method](event, listener);
179
- });
180
- }
181
- /**
182
- * Compared to xxx.contains, this function works for dom structures with shadow
183
- * dom
184
- */
185
-
186
- function actualContains(parent, child) {
187
- var target = child;
188
-
189
- while (target) {
190
- var _target$getRootNode;
191
-
192
- if (parent.contains(target)) {
193
- return true;
194
- }
195
-
196
- target = target.getRootNode == null ? void 0 : (_target$getRootNode = target.getRootNode()) == null ? void 0 : _target$getRootNode.host;
197
- }
198
-
199
- return false;
200
- }
201
-
202
- var currentInput = {
203
- isTouch: false
204
- };
205
- var lastMouseMoveTime = 0;
206
- /**
207
- * When a `touchstart` event is fired, it's assumed the user is using touch
208
- * input. We'll bind a `mousemove` event listener to listen for mouse input in
209
- * the future. This way, the `isTouch` property is fully dynamic and will handle
210
- * hybrid devices that use a mix of touch + mouse input.
211
- */
212
-
213
- function onDocumentTouchStart() {
214
- if (currentInput.isTouch) {
215
- return;
216
- }
217
-
218
- currentInput.isTouch = true;
219
-
220
- if (window.performance) {
221
- document.addEventListener('mousemove', onDocumentMouseMove);
222
- }
223
- }
224
- /**
225
- * When two `mousemove` event are fired consecutively within 20ms, it's assumed
226
- * the user is using mouse input again. `mousemove` can fire on touch devices as
227
- * well, but very rarely that quickly.
228
- */
229
-
230
- function onDocumentMouseMove() {
231
- var now = performance.now();
232
-
233
- if (now - lastMouseMoveTime < 20) {
234
- currentInput.isTouch = false;
235
- document.removeEventListener('mousemove', onDocumentMouseMove);
236
- }
237
-
238
- lastMouseMoveTime = now;
239
- }
240
- /**
241
- * When an element is in focus and has a tippy, leaving the tab/window and
242
- * returning causes it to show again. For mouse users this is unexpected, but
243
- * for keyboard use it makes sense.
244
- * TODO: find a better technique to solve this problem
245
- */
246
-
247
- function onWindowBlur() {
248
- var activeElement = document.activeElement;
249
-
250
- if (isReferenceElement(activeElement)) {
251
- var instance = activeElement._tippy;
252
-
253
- if (activeElement.blur && !instance.state.isVisible) {
254
- activeElement.blur();
255
- }
256
- }
257
- }
258
- function bindGlobalEventListeners() {
259
- document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
260
- window.addEventListener('blur', onWindowBlur);
261
- }
262
-
263
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
264
- var isIE11 = isBrowser ? // @ts-ignore
265
- !!window.msCrypto : false;
266
-
267
- function createMemoryLeakWarning(method) {
268
- var txt = method === 'destroy' ? 'n already-' : ' ';
269
- return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
270
- }
271
- function clean(value) {
272
- var spacesAndTabs = /[ \t]{2,}/g;
273
- var lineStartWithSpaces = /^[ \t]*/gm;
274
- return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
275
- }
276
-
277
- function getDevMessage(message) {
278
- return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
279
- }
280
-
281
- function getFormattedMessage(message) {
282
- return [getDevMessage(message), // title
283
- 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
284
- 'line-height: 1.5', // footer
285
- 'color: #a6a095;'];
286
- } // Assume warnings and errors never have the same message
287
-
288
- var visitedMessages;
289
-
290
- if (process.env.NODE_ENV !== "production") {
291
- resetVisitedMessages();
292
- }
293
-
294
- function resetVisitedMessages() {
295
- visitedMessages = new Set();
296
- }
297
- function warnWhen(condition, message) {
298
- if (condition && !visitedMessages.has(message)) {
299
- var _console;
300
-
301
- visitedMessages.add(message);
302
-
303
- (_console = console).warn.apply(_console, getFormattedMessage(message));
304
- }
305
- }
306
- function errorWhen(condition, message) {
307
- if (condition && !visitedMessages.has(message)) {
308
- var _console2;
309
-
310
- visitedMessages.add(message);
311
-
312
- (_console2 = console).error.apply(_console2, getFormattedMessage(message));
313
- }
314
- }
315
- function validateTargets(targets) {
316
- var didPassFalsyValue = !targets;
317
- var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
318
- errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
319
- errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
320
- }
321
-
322
- var pluginProps = {
323
- animateFill: false,
324
- followCursor: false,
325
- inlinePositioning: false,
326
- sticky: false
327
- };
328
- var renderProps = {
329
- allowHTML: false,
330
- animation: 'fade',
331
- arrow: true,
332
- content: '',
333
- inertia: false,
334
- maxWidth: 350,
335
- role: 'tooltip',
336
- theme: '',
337
- zIndex: 9999
338
- };
339
- var defaultProps = Object.assign({
340
- appendTo: TIPPY_DEFAULT_APPEND_TO,
341
- aria: {
342
- content: 'auto',
343
- expanded: 'auto'
344
- },
345
- delay: 0,
346
- duration: [300, 250],
347
- getReferenceClientRect: null,
348
- hideOnClick: true,
349
- ignoreAttributes: false,
350
- interactive: false,
351
- interactiveBorder: 2,
352
- interactiveDebounce: 0,
353
- moveTransition: '',
354
- offset: [0, 10],
355
- onAfterUpdate: function onAfterUpdate() {},
356
- onBeforeUpdate: function onBeforeUpdate() {},
357
- onCreate: function onCreate() {},
358
- onDestroy: function onDestroy() {},
359
- onHidden: function onHidden() {},
360
- onHide: function onHide() {},
361
- onMount: function onMount() {},
362
- onShow: function onShow() {},
363
- onShown: function onShown() {},
364
- onTrigger: function onTrigger() {},
365
- onUntrigger: function onUntrigger() {},
366
- onClickOutside: function onClickOutside() {},
367
- placement: 'top',
368
- plugins: [],
369
- popperOptions: {},
370
- render: null,
371
- showOnCreate: false,
372
- touch: true,
373
- trigger: 'mouseenter focus',
374
- triggerTarget: null
375
- }, pluginProps, renderProps);
376
- var defaultKeys = Object.keys(defaultProps);
377
- var setDefaultProps = function setDefaultProps(partialProps) {
378
- /* istanbul ignore else */
379
- if (process.env.NODE_ENV !== "production") {
380
- validateProps(partialProps, []);
381
- }
382
-
383
- var keys = Object.keys(partialProps);
384
- keys.forEach(function (key) {
385
- defaultProps[key] = partialProps[key];
386
- });
387
- };
388
- function getExtendedPassedProps(passedProps) {
389
- var plugins = passedProps.plugins || [];
390
- var pluginProps = plugins.reduce(function (acc, plugin) {
391
- var name = plugin.name,
392
- defaultValue = plugin.defaultValue;
393
-
394
- if (name) {
395
- var _name;
396
-
397
- acc[name] = passedProps[name] !== undefined ? passedProps[name] : (_name = defaultProps[name]) != null ? _name : defaultValue;
398
- }
399
-
400
- return acc;
401
- }, {});
402
- return Object.assign({}, passedProps, pluginProps);
403
- }
404
- function getDataAttributeProps(reference, plugins) {
405
- var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps, {
406
- plugins: plugins
407
- }))) : defaultKeys;
408
- var props = propKeys.reduce(function (acc, key) {
409
- var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
410
-
411
- if (!valueAsString) {
412
- return acc;
413
- }
414
-
415
- if (key === 'content') {
416
- acc[key] = valueAsString;
417
- } else {
418
- try {
419
- acc[key] = JSON.parse(valueAsString);
420
- } catch (e) {
421
- acc[key] = valueAsString;
422
- }
423
- }
424
-
425
- return acc;
426
- }, {});
427
- return props;
428
- }
429
- function evaluateProps(reference, props) {
430
- var out = Object.assign({}, props, {
431
- content: invokeWithArgsOrReturn(props.content, [reference])
432
- }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
433
- out.aria = Object.assign({}, defaultProps.aria, out.aria);
434
- out.aria = {
435
- expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
436
- content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
437
- };
438
- return out;
439
- }
440
- function validateProps(partialProps, plugins) {
441
- if (partialProps === void 0) {
442
- partialProps = {};
443
- }
444
-
445
- if (plugins === void 0) {
446
- plugins = [];
447
- }
448
-
449
- var keys = Object.keys(partialProps);
450
- keys.forEach(function (prop) {
451
- var nonPluginProps = removeProperties(defaultProps, Object.keys(pluginProps));
452
- var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
453
-
454
- if (didPassUnknownProp) {
455
- didPassUnknownProp = plugins.filter(function (plugin) {
456
- return plugin.name === prop;
457
- }).length === 0;
458
- }
459
-
460
- warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
461
- });
462
- }
463
-
464
- var innerHTML = function innerHTML() {
465
- return 'innerHTML';
466
- };
467
-
468
- function dangerouslySetInnerHTML(element, html) {
469
- element[innerHTML()] = html;
470
- }
471
-
472
- function createArrowElement(value) {
473
- var arrow = div();
474
-
475
- if (value === true) {
476
- arrow.className = ARROW_CLASS;
477
- } else {
478
- arrow.className = SVG_ARROW_CLASS;
479
-
480
- if (isElement(value)) {
481
- arrow.appendChild(value);
482
- } else {
483
- dangerouslySetInnerHTML(arrow, value);
484
- }
485
- }
486
-
487
- return arrow;
488
- }
489
-
490
- function setContent(content, props) {
491
- if (isElement(props.content)) {
492
- dangerouslySetInnerHTML(content, '');
493
- content.appendChild(props.content);
494
- } else if (typeof props.content !== 'function') {
495
- if (props.allowHTML) {
496
- dangerouslySetInnerHTML(content, props.content);
497
- } else {
498
- content.textContent = props.content;
499
- }
500
- }
501
- }
502
- function getChildren(popper) {
503
- var box = popper.firstElementChild;
504
- var boxChildren = arrayFrom(box.children);
505
- return {
506
- box: box,
507
- content: boxChildren.find(function (node) {
508
- return node.classList.contains(CONTENT_CLASS);
509
- }),
510
- arrow: boxChildren.find(function (node) {
511
- return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
512
- }),
513
- backdrop: boxChildren.find(function (node) {
514
- return node.classList.contains(BACKDROP_CLASS);
515
- })
516
- };
517
- }
518
- function render(instance) {
519
- var popper = div();
520
- var box = div();
521
- box.className = BOX_CLASS;
522
- box.setAttribute('data-state', 'hidden');
523
- box.setAttribute('tabindex', '-1');
524
- var content = div();
525
- content.className = CONTENT_CLASS;
526
- content.setAttribute('data-state', 'hidden');
527
- setContent(content, instance.props);
528
- popper.appendChild(box);
529
- box.appendChild(content);
530
- onUpdate(instance.props, instance.props);
531
-
532
- function onUpdate(prevProps, nextProps) {
533
- var _getChildren = getChildren(popper),
534
- box = _getChildren.box,
535
- content = _getChildren.content,
536
- arrow = _getChildren.arrow;
537
-
538
- if (nextProps.theme) {
539
- box.setAttribute('data-theme', nextProps.theme);
540
- } else {
541
- box.removeAttribute('data-theme');
542
- }
543
-
544
- if (typeof nextProps.animation === 'string') {
545
- box.setAttribute('data-animation', nextProps.animation);
546
- } else {
547
- box.removeAttribute('data-animation');
548
- }
549
-
550
- if (nextProps.inertia) {
551
- box.setAttribute('data-inertia', '');
552
- } else {
553
- box.removeAttribute('data-inertia');
554
- }
555
-
556
- box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
557
-
558
- if (nextProps.role) {
559
- box.setAttribute('role', nextProps.role);
560
- } else {
561
- box.removeAttribute('role');
562
- }
563
-
564
- if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) {
565
- setContent(content, instance.props);
566
- }
567
-
568
- if (nextProps.arrow) {
569
- if (!arrow) {
570
- box.appendChild(createArrowElement(nextProps.arrow));
571
- } else if (prevProps.arrow !== nextProps.arrow) {
572
- box.removeChild(arrow);
573
- box.appendChild(createArrowElement(nextProps.arrow));
574
- }
575
- } else if (arrow) {
576
- box.removeChild(arrow);
577
- }
578
- }
579
-
580
- return {
581
- popper: popper,
582
- onUpdate: onUpdate
583
- };
584
- } // Runtime check to identify if the render function is the default one; this
585
- // way we can apply default CSS transitions logic and it can be tree-shaken away
586
-
587
- render.$$tippy = true;
588
-
589
- var idCounter = 1;
590
- var mouseMoveListeners = []; // Used by `hideAll()`
591
-
592
- var mountedInstances = [];
593
- function createTippy(reference, passedProps) {
594
- var props = evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
595
- // 🔒 Private members
596
- // ===========================================================================
597
-
598
- var showTimeout;
599
- var hideTimeout;
600
- var scheduleHideAnimationFrame;
601
- var isVisibleFromClick = false;
602
- var didHideDueToDocumentMouseDown = false;
603
- var didTouchMove = false;
604
- var ignoreOnFirstUpdate = false;
605
- var lastTriggerEvent;
606
- var currentTransitionEndListener;
607
- var onFirstUpdate;
608
- var listeners = [];
609
- var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
610
- var currentTarget; // ===========================================================================
611
- // 🔑 Public members
612
- // ===========================================================================
613
-
614
- var id = idCounter++;
615
- var popperInstance = null;
616
- var plugins = unique(props.plugins);
617
- var state = {
618
- // Is the instance currently enabled?
619
- isEnabled: true,
620
- // Is the tippy currently showing and not transitioning out?
621
- isVisible: false,
622
- // Has the instance been destroyed?
623
- isDestroyed: false,
624
- // Is the tippy currently mounted to the DOM?
625
- isMounted: false,
626
- // Has the tippy finished transitioning in?
627
- isShown: false
628
- };
629
- var instance = {
630
- // properties
631
- id: id,
632
- reference: reference,
633
- popper: div(),
634
- popperInstance: popperInstance,
635
- props: props,
636
- state: state,
637
- plugins: plugins,
638
- // methods
639
- clearDelayTimeouts: clearDelayTimeouts,
640
- setProps: setProps,
641
- setContent: setContent,
642
- show: show,
643
- hide: hide,
644
- hideWithInteractivity: hideWithInteractivity,
645
- enable: enable,
646
- disable: disable,
647
- unmount: unmount,
648
- destroy: destroy
649
- }; // TODO: Investigate why this early return causes a TDZ error in the tests —
650
- // it doesn't seem to happen in the browser
651
-
652
- /* istanbul ignore if */
653
-
654
- if (!props.render) {
655
- if (process.env.NODE_ENV !== "production") {
656
- errorWhen(true, 'render() function has not been supplied.');
657
- }
658
-
659
- return instance;
660
- } // ===========================================================================
661
- // Initial mutations
662
- // ===========================================================================
663
-
664
-
665
- var _props$render = props.render(instance),
666
- popper = _props$render.popper,
667
- onUpdate = _props$render.onUpdate;
668
-
669
- popper.setAttribute('data-tippy-root', '');
670
- popper.id = "tippy-" + instance.id;
671
- instance.popper = popper;
672
- reference._tippy = instance;
673
- popper._tippy = instance;
674
- var pluginsHooks = plugins.map(function (plugin) {
675
- return plugin.fn(instance);
676
- });
677
- var hasAriaExpanded = reference.hasAttribute('aria-expanded');
678
- addListeners();
679
- handleAriaExpandedAttribute();
680
- handleStyles();
681
- invokeHook('onCreate', [instance]);
682
-
683
- if (props.showOnCreate) {
684
- scheduleShow();
685
- } // Prevent a tippy with a delay from hiding if the cursor left then returned
686
- // before it started hiding
687
-
688
-
689
- popper.addEventListener('mouseenter', function () {
690
- if (instance.props.interactive && instance.state.isVisible) {
691
- instance.clearDelayTimeouts();
692
- }
693
- });
694
- popper.addEventListener('mouseleave', function () {
695
- if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
696
- getDocument().addEventListener('mousemove', debouncedOnMouseMove);
697
- }
698
- });
699
- return instance; // ===========================================================================
700
- // 🔒 Private methods
701
- // ===========================================================================
702
-
703
- function getNormalizedTouchSettings() {
704
- var touch = instance.props.touch;
705
- return Array.isArray(touch) ? touch : [touch, 0];
706
- }
707
-
708
- function getIsCustomTouchBehavior() {
709
- return getNormalizedTouchSettings()[0] === 'hold';
710
- }
711
-
712
- function getIsDefaultRenderFn() {
713
- var _instance$props$rende;
714
-
715
- // @ts-ignore
716
- return !!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy);
717
- }
718
-
719
- function getCurrentTarget() {
720
- return currentTarget || reference;
721
- }
722
-
723
- function getDocument() {
724
- var parent = getCurrentTarget().parentNode;
725
- return parent ? getOwnerDocument(parent) : document;
726
- }
727
-
728
- function getDefaultTemplateChildren() {
729
- return getChildren(popper);
730
- }
731
-
732
- function getDelay(isShow) {
733
- // For touch or keyboard input, force `0` delay for UX reasons
734
- // Also if the instance is mounted but not visible (transitioning out),
735
- // ignore delay
736
- if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
737
- return 0;
738
- }
739
-
740
- return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
741
- }
742
-
743
- function handleStyles(fromHide) {
744
- if (fromHide === void 0) {
745
- fromHide = false;
746
- }
747
-
748
- popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
749
- popper.style.zIndex = "" + instance.props.zIndex;
750
- }
751
-
752
- function invokeHook(hook, args, shouldInvokePropsHook) {
753
- if (shouldInvokePropsHook === void 0) {
754
- shouldInvokePropsHook = true;
755
- }
756
-
757
- pluginsHooks.forEach(function (pluginHooks) {
758
- if (pluginHooks[hook]) {
759
- pluginHooks[hook].apply(pluginHooks, args);
760
- }
761
- });
762
-
763
- if (shouldInvokePropsHook) {
764
- var _instance$props;
765
-
766
- (_instance$props = instance.props)[hook].apply(_instance$props, args);
767
- }
768
- }
769
-
770
- function handleAriaContentAttribute() {
771
- var aria = instance.props.aria;
772
-
773
- if (!aria.content) {
774
- return;
775
- }
776
-
777
- var attr = "aria-" + aria.content;
778
- var id = popper.id;
779
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
780
- nodes.forEach(function (node) {
781
- var currentValue = node.getAttribute(attr);
782
-
783
- if (instance.state.isVisible) {
784
- node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
785
- } else {
786
- var nextValue = currentValue && currentValue.replace(id, '').trim();
787
-
788
- if (nextValue) {
789
- node.setAttribute(attr, nextValue);
790
- } else {
791
- node.removeAttribute(attr);
792
- }
793
- }
794
- });
795
- }
796
-
797
- function handleAriaExpandedAttribute() {
798
- if (hasAriaExpanded || !instance.props.aria.expanded) {
799
- return;
800
- }
801
-
802
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
803
- nodes.forEach(function (node) {
804
- if (instance.props.interactive) {
805
- node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
806
- } else {
807
- node.removeAttribute('aria-expanded');
808
- }
809
- });
810
- }
811
-
812
- function cleanupInteractiveMouseListeners() {
813
- getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
814
- mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
815
- return listener !== debouncedOnMouseMove;
816
- });
817
- }
818
-
819
- function onDocumentPress(event) {
820
- // Moved finger to scroll instead of an intentional tap outside
821
- if (currentInput.isTouch) {
822
- if (didTouchMove || event.type === 'mousedown') {
823
- return;
824
- }
825
- }
826
-
827
- var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
828
-
829
- if (instance.props.interactive && actualContains(popper, actualTarget)) {
830
- return;
831
- } // Clicked on the event listeners target
832
-
833
-
834
- if (normalizeToArray(instance.props.triggerTarget || reference).some(function (el) {
835
- return actualContains(el, actualTarget);
836
- })) {
837
- if (currentInput.isTouch) {
838
- return;
839
- }
840
-
841
- if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
842
- return;
843
- }
844
- } else {
845
- invokeHook('onClickOutside', [instance, event]);
846
- }
847
-
848
- if (instance.props.hideOnClick === true) {
849
- instance.clearDelayTimeouts();
850
- instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
851
- // currentTarget. This lets a tippy with `focus` trigger know that it
852
- // should not show
853
-
854
- didHideDueToDocumentMouseDown = true;
855
- setTimeout(function () {
856
- didHideDueToDocumentMouseDown = false;
857
- }); // The listener gets added in `scheduleShow()`, but this may be hiding it
858
- // before it shows, and hide()'s early bail-out behavior can prevent it
859
- // from being cleaned up
860
-
861
- if (!instance.state.isMounted) {
862
- removeDocumentPress();
863
- }
864
- }
865
- }
866
-
867
- function onTouchMove() {
868
- didTouchMove = true;
869
- }
870
-
871
- function onTouchStart() {
872
- didTouchMove = false;
873
- }
874
-
875
- function addDocumentPress() {
876
- var doc = getDocument();
877
- doc.addEventListener('mousedown', onDocumentPress, true);
878
- doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
879
- doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
880
- doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
881
- }
882
-
883
- function removeDocumentPress() {
884
- var doc = getDocument();
885
- doc.removeEventListener('mousedown', onDocumentPress, true);
886
- doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
887
- doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
888
- doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
889
- }
890
-
891
- function onTransitionedOut(duration, callback) {
892
- onTransitionEnd(duration, function () {
893
- if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
894
- callback();
895
- }
896
- });
897
- }
898
-
899
- function onTransitionedIn(duration, callback) {
900
- onTransitionEnd(duration, callback);
901
- }
902
-
903
- function onTransitionEnd(duration, callback) {
904
- var box = getDefaultTemplateChildren().box;
905
-
906
- function listener(event) {
907
- if (event.target === box) {
908
- updateTransitionEndListener(box, 'remove', listener);
909
- callback();
910
- }
911
- } // Make callback synchronous if duration is 0
912
- // `transitionend` won't fire otherwise
913
-
914
-
915
- if (duration === 0) {
916
- return callback();
917
- }
918
-
919
- updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
920
- updateTransitionEndListener(box, 'add', listener);
921
- currentTransitionEndListener = listener;
922
- }
923
-
924
- function on(eventType, handler, options) {
925
- if (options === void 0) {
926
- options = false;
927
- }
928
-
929
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
930
- nodes.forEach(function (node) {
931
- node.addEventListener(eventType, handler, options);
932
- listeners.push({
933
- node: node,
934
- eventType: eventType,
935
- handler: handler,
936
- options: options
937
- });
938
- });
939
- }
940
-
941
- function addListeners() {
942
- if (getIsCustomTouchBehavior()) {
943
- on('touchstart', onTrigger, {
944
- passive: true
945
- });
946
- on('touchend', onMouseLeave, {
947
- passive: true
948
- });
949
- }
950
-
951
- splitBySpaces(instance.props.trigger).forEach(function (eventType) {
952
- if (eventType === 'manual') {
953
- return;
954
- }
955
-
956
- on(eventType, onTrigger);
957
-
958
- switch (eventType) {
959
- case 'mouseenter':
960
- on('mouseleave', onMouseLeave);
961
- break;
962
-
963
- case 'focus':
964
- on(isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
965
- break;
966
-
967
- case 'focusin':
968
- on('focusout', onBlurOrFocusOut);
969
- break;
970
- }
971
- });
972
- }
973
-
974
- function removeListeners() {
975
- listeners.forEach(function (_ref) {
976
- var node = _ref.node,
977
- eventType = _ref.eventType,
978
- handler = _ref.handler,
979
- options = _ref.options;
980
- node.removeEventListener(eventType, handler, options);
981
- });
982
- listeners = [];
983
- }
984
-
985
- function onTrigger(event) {
986
- var _lastTriggerEvent;
987
-
988
- var shouldScheduleClickHide = false;
989
-
990
- if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
991
- return;
992
- }
993
-
994
- var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
995
- lastTriggerEvent = event;
996
- currentTarget = event.currentTarget;
997
- handleAriaExpandedAttribute();
998
-
999
- if (!instance.state.isVisible && isMouseEvent(event)) {
1000
- // If scrolling, `mouseenter` events can be fired if the cursor lands
1001
- // over a new target, but `mousemove` events don't get fired. This
1002
- // causes interactive tooltips to get stuck open until the cursor is
1003
- // moved
1004
- mouseMoveListeners.forEach(function (listener) {
1005
- return listener(event);
1006
- });
1007
- } // Toggle show/hide when clicking click-triggered tooltips
1008
-
1009
-
1010
- if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
1011
- shouldScheduleClickHide = true;
1012
- } else {
1013
- scheduleShow(event);
1014
- }
1015
-
1016
- if (event.type === 'click') {
1017
- isVisibleFromClick = !shouldScheduleClickHide;
1018
- }
1019
-
1020
- if (shouldScheduleClickHide && !wasFocused) {
1021
- scheduleHide(event);
1022
- }
1023
- }
1024
-
1025
- function onMouseMove(event) {
1026
- var target = event.target;
1027
- var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
1028
-
1029
- if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
1030
- return;
1031
- }
1032
-
1033
- var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
1034
- var _instance$popperInsta;
1035
-
1036
- var instance = popper._tippy;
1037
- var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
1038
-
1039
- if (state) {
1040
- return {
1041
- popperRect: popper.getBoundingClientRect(),
1042
- popperState: state,
1043
- props: props
1044
- };
1045
- }
1046
-
1047
- return null;
1048
- }).filter(Boolean);
1049
-
1050
- if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
1051
- cleanupInteractiveMouseListeners();
1052
- scheduleHide(event);
1053
- }
1054
- }
1055
-
1056
- function onMouseLeave(event) {
1057
- var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
1058
-
1059
- if (shouldBail) {
1060
- return;
1061
- }
1062
-
1063
- if (instance.props.interactive) {
1064
- instance.hideWithInteractivity(event);
1065
- return;
1066
- }
1067
-
1068
- scheduleHide(event);
1069
- }
1070
-
1071
- function onBlurOrFocusOut(event) {
1072
- if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
1073
- return;
1074
- } // If focus was moved to within the popper
1075
-
1076
-
1077
- if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
1078
- return;
1079
- }
1080
-
1081
- scheduleHide(event);
1082
- }
1083
-
1084
- function isEventListenerStopped(event) {
1085
- return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
1086
- }
1087
-
1088
- function createPopperInstance() {
1089
- destroyPopperInstance();
1090
- var _instance$props2 = instance.props,
1091
- popperOptions = _instance$props2.popperOptions,
1092
- placement = _instance$props2.placement,
1093
- offset = _instance$props2.offset,
1094
- getReferenceClientRect = _instance$props2.getReferenceClientRect,
1095
- moveTransition = _instance$props2.moveTransition;
1096
- var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
1097
- var computedReference = getReferenceClientRect ? {
1098
- getBoundingClientRect: getReferenceClientRect,
1099
- contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
1100
- } : reference;
1101
- var tippyModifier = {
1102
- name: '$$tippy',
1103
- enabled: true,
1104
- phase: 'beforeWrite',
1105
- requires: ['computeStyles'],
1106
- fn: function fn(_ref2) {
1107
- var state = _ref2.state;
1108
-
1109
- if (getIsDefaultRenderFn()) {
1110
- var _getDefaultTemplateCh = getDefaultTemplateChildren(),
1111
- box = _getDefaultTemplateCh.box;
1112
-
1113
- ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
1114
- if (attr === 'placement') {
1115
- box.setAttribute('data-placement', state.placement);
1116
- } else {
1117
- if (state.attributes.popper["data-popper-" + attr]) {
1118
- box.setAttribute("data-" + attr, '');
1119
- } else {
1120
- box.removeAttribute("data-" + attr);
1121
- }
1122
- }
1123
- });
1124
- state.attributes.popper = {};
1125
- }
1126
- }
1127
- };
1128
- var modifiers = [{
1129
- name: 'offset',
1130
- options: {
1131
- offset: offset
1132
- }
1133
- }, {
1134
- name: 'preventOverflow',
1135
- options: {
1136
- padding: {
1137
- top: 2,
1138
- bottom: 2,
1139
- left: 5,
1140
- right: 5
1141
- }
1142
- }
1143
- }, {
1144
- name: 'flip',
1145
- options: {
1146
- padding: 5
1147
- }
1148
- }, {
1149
- name: 'computeStyles',
1150
- options: {
1151
- adaptive: !moveTransition
1152
- }
1153
- }, tippyModifier];
1154
-
1155
- if (getIsDefaultRenderFn() && arrow) {
1156
- modifiers.push({
1157
- name: 'arrow',
1158
- options: {
1159
- element: arrow,
1160
- padding: 3
1161
- }
1162
- });
1163
- }
1164
-
1165
- modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
1166
- instance.popperInstance = createPopper(computedReference, popper, Object.assign({}, popperOptions, {
1167
- placement: placement,
1168
- onFirstUpdate: onFirstUpdate,
1169
- modifiers: modifiers
1170
- }));
1171
- }
1172
-
1173
- function destroyPopperInstance() {
1174
- if (instance.popperInstance) {
1175
- instance.popperInstance.destroy();
1176
- instance.popperInstance = null;
1177
- }
1178
- }
1179
-
1180
- function mount() {
1181
- var appendTo = instance.props.appendTo;
1182
- var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
1183
- // it's directly after the reference element so the elements inside the
1184
- // tippy can be tabbed to
1185
- // If there are clipping issues, the user can specify a different appendTo
1186
- // and ensure focus management is handled correctly manually
1187
-
1188
- var node = getCurrentTarget();
1189
-
1190
- if (instance.props.interactive && appendTo === TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') {
1191
- parentNode = node.parentNode;
1192
- } else {
1193
- parentNode = invokeWithArgsOrReturn(appendTo, [node]);
1194
- } // The popper element needs to exist on the DOM before its position can be
1195
- // updated as Popper needs to read its dimensions
1196
-
1197
-
1198
- if (!parentNode.contains(popper)) {
1199
- parentNode.appendChild(popper);
1200
- }
1201
-
1202
- instance.state.isMounted = true;
1203
- createPopperInstance();
1204
- /* istanbul ignore else */
1205
-
1206
- if (process.env.NODE_ENV !== "production") {
1207
- // Accessibility check
1208
- warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));
1209
- }
1210
- }
1211
-
1212
- function getNestedPopperTree() {
1213
- return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
1214
- }
1215
-
1216
- function scheduleShow(event) {
1217
- instance.clearDelayTimeouts();
1218
-
1219
- if (event) {
1220
- invokeHook('onTrigger', [instance, event]);
1221
- }
1222
-
1223
- addDocumentPress();
1224
- var delay = getDelay(true);
1225
-
1226
- var _getNormalizedTouchSe = getNormalizedTouchSettings(),
1227
- touchValue = _getNormalizedTouchSe[0],
1228
- touchDelay = _getNormalizedTouchSe[1];
1229
-
1230
- if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
1231
- delay = touchDelay;
1232
- }
1233
-
1234
- if (delay) {
1235
- showTimeout = setTimeout(function () {
1236
- instance.show();
1237
- }, delay);
1238
- } else {
1239
- instance.show();
1240
- }
1241
- }
1242
-
1243
- function scheduleHide(event) {
1244
- instance.clearDelayTimeouts();
1245
- invokeHook('onUntrigger', [instance, event]);
1246
-
1247
- if (!instance.state.isVisible) {
1248
- removeDocumentPress();
1249
- return;
1250
- } // For interactive tippies, scheduleHide is added to a document.body handler
1251
- // from onMouseLeave so must intercept scheduled hides from mousemove/leave
1252
- // events when trigger contains mouseenter and click, and the tip is
1253
- // currently shown as a result of a click.
1254
-
1255
-
1256
- if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
1257
- return;
1258
- }
1259
-
1260
- var delay = getDelay(false);
1261
-
1262
- if (delay) {
1263
- hideTimeout = setTimeout(function () {
1264
- if (instance.state.isVisible) {
1265
- instance.hide();
1266
- }
1267
- }, delay);
1268
- } else {
1269
- // Fixes a `transitionend` problem when it fires 1 frame too
1270
- // late sometimes, we don't want hide() to be called.
1271
- scheduleHideAnimationFrame = requestAnimationFrame(function () {
1272
- instance.hide();
1273
- });
1274
- }
1275
- } // ===========================================================================
1276
- // 🔑 Public methods
1277
- // ===========================================================================
1278
-
1279
-
1280
- function enable() {
1281
- instance.state.isEnabled = true;
1282
- }
1283
-
1284
- function disable() {
1285
- // Disabling the instance should also hide it
1286
- // https://github.com/atomiks/tippy.js-react/issues/106
1287
- instance.hide();
1288
- instance.state.isEnabled = false;
1289
- }
1290
-
1291
- function clearDelayTimeouts() {
1292
- clearTimeout(showTimeout);
1293
- clearTimeout(hideTimeout);
1294
- cancelAnimationFrame(scheduleHideAnimationFrame);
1295
- }
1296
-
1297
- function setProps(partialProps) {
1298
- /* istanbul ignore else */
1299
- if (process.env.NODE_ENV !== "production") {
1300
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
1301
- }
1302
-
1303
- if (instance.state.isDestroyed) {
1304
- return;
1305
- }
1306
-
1307
- invokeHook('onBeforeUpdate', [instance, partialProps]);
1308
- removeListeners();
1309
- var prevProps = instance.props;
1310
- var nextProps = evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
1311
- ignoreAttributes: true
1312
- }));
1313
- instance.props = nextProps;
1314
- addListeners();
1315
-
1316
- if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
1317
- cleanupInteractiveMouseListeners();
1318
- debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
1319
- } // Ensure stale aria-expanded attributes are removed
1320
-
1321
-
1322
- if (prevProps.triggerTarget && !nextProps.triggerTarget) {
1323
- normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
1324
- node.removeAttribute('aria-expanded');
1325
- });
1326
- } else if (nextProps.triggerTarget) {
1327
- reference.removeAttribute('aria-expanded');
1328
- }
1329
-
1330
- handleAriaExpandedAttribute();
1331
- handleStyles();
1332
-
1333
- if (onUpdate) {
1334
- onUpdate(prevProps, nextProps);
1335
- }
1336
-
1337
- if (instance.popperInstance) {
1338
- createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
1339
- // and the nested ones get re-rendered first.
1340
- // https://github.com/atomiks/tippyjs-react/issues/177
1341
- // TODO: find a cleaner / more efficient solution(!)
1342
-
1343
- getNestedPopperTree().forEach(function (nestedPopper) {
1344
- // React (and other UI libs likely) requires a rAF wrapper as it flushes
1345
- // its work in one
1346
- requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
1347
- });
1348
- }
1349
-
1350
- invokeHook('onAfterUpdate', [instance, partialProps]);
1351
- }
1352
-
1353
- function setContent(content) {
1354
- instance.setProps({
1355
- content: content
1356
- });
1357
- }
1358
-
1359
- function show() {
1360
- /* istanbul ignore else */
1361
- if (process.env.NODE_ENV !== "production") {
1362
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
1363
- } // Early bail-out
1364
-
1365
-
1366
- var isAlreadyVisible = instance.state.isVisible;
1367
- var isDestroyed = instance.state.isDestroyed;
1368
- var isDisabled = !instance.state.isEnabled;
1369
- var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
1370
- var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
1371
-
1372
- if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
1373
- return;
1374
- } // Normalize `disabled` behavior across browsers.
1375
- // Firefox allows events on disabled elements, but Chrome doesn't.
1376
- // Using a wrapper element (i.e. <span>) is recommended.
1377
-
1378
-
1379
- if (getCurrentTarget().hasAttribute('disabled')) {
1380
- return;
1381
- }
1382
-
1383
- invokeHook('onShow', [instance], false);
1384
-
1385
- if (instance.props.onShow(instance) === false) {
1386
- return;
1387
- }
1388
-
1389
- instance.state.isVisible = true;
1390
-
1391
- if (getIsDefaultRenderFn()) {
1392
- popper.style.visibility = 'visible';
1393
- }
1394
-
1395
- handleStyles();
1396
- addDocumentPress();
1397
-
1398
- if (!instance.state.isMounted) {
1399
- popper.style.transition = 'none';
1400
- } // If flipping to the opposite side after hiding at least once, the
1401
- // animation will use the wrong placement without resetting the duration
1402
-
1403
-
1404
- if (getIsDefaultRenderFn()) {
1405
- var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
1406
- box = _getDefaultTemplateCh2.box,
1407
- content = _getDefaultTemplateCh2.content;
1408
-
1409
- setTransitionDuration([box, content], 0);
1410
- }
1411
-
1412
- onFirstUpdate = function onFirstUpdate() {
1413
- var _instance$popperInsta2;
1414
-
1415
- if (!instance.state.isVisible || ignoreOnFirstUpdate) {
1416
- return;
1417
- }
1418
-
1419
- ignoreOnFirstUpdate = true; // reflow
1420
- popper.style.transition = instance.props.moveTransition;
1421
-
1422
- if (getIsDefaultRenderFn() && instance.props.animation) {
1423
- var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
1424
- _box = _getDefaultTemplateCh3.box,
1425
- _content = _getDefaultTemplateCh3.content;
1426
-
1427
- setTransitionDuration([_box, _content], duration);
1428
- setVisibilityState([_box, _content], 'visible');
1429
- }
1430
-
1431
- handleAriaContentAttribute();
1432
- handleAriaExpandedAttribute();
1433
- pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
1434
- // popper has been positioned for the first time
1435
-
1436
- (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
1437
- invokeHook('onMount', [instance]);
1438
-
1439
- if (instance.props.animation && getIsDefaultRenderFn()) {
1440
- onTransitionedIn(duration, function () {
1441
- instance.state.isShown = true;
1442
- invokeHook('onShown', [instance]);
1443
- });
1444
- }
1445
- };
1446
-
1447
- mount();
1448
- }
1449
-
1450
- function hide() {
1451
- /* istanbul ignore else */
1452
- if (process.env.NODE_ENV !== "production") {
1453
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
1454
- } // Early bail-out
1455
-
1456
-
1457
- var isAlreadyHidden = !instance.state.isVisible;
1458
- var isDestroyed = instance.state.isDestroyed;
1459
- var isDisabled = !instance.state.isEnabled;
1460
- var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
1461
-
1462
- if (isAlreadyHidden || isDestroyed || isDisabled) {
1463
- return;
1464
- }
1465
-
1466
- invokeHook('onHide', [instance], false);
1467
-
1468
- if (instance.props.onHide(instance) === false) {
1469
- return;
1470
- }
1471
-
1472
- instance.state.isVisible = false;
1473
- instance.state.isShown = false;
1474
- ignoreOnFirstUpdate = false;
1475
- isVisibleFromClick = false;
1476
-
1477
- if (getIsDefaultRenderFn()) {
1478
- popper.style.visibility = 'hidden';
1479
- }
1480
-
1481
- cleanupInteractiveMouseListeners();
1482
- removeDocumentPress();
1483
- handleStyles(true);
1484
-
1485
- if (getIsDefaultRenderFn()) {
1486
- var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
1487
- box = _getDefaultTemplateCh4.box,
1488
- content = _getDefaultTemplateCh4.content;
1489
-
1490
- if (instance.props.animation) {
1491
- setTransitionDuration([box, content], duration);
1492
- setVisibilityState([box, content], 'hidden');
1493
- }
1494
- }
1495
-
1496
- handleAriaContentAttribute();
1497
- handleAriaExpandedAttribute();
1498
-
1499
- if (instance.props.animation) {
1500
- if (getIsDefaultRenderFn()) {
1501
- onTransitionedOut(duration, instance.unmount);
1502
- }
1503
- } else {
1504
- instance.unmount();
1505
- }
1506
- }
1507
-
1508
- function hideWithInteractivity(event) {
1509
- /* istanbul ignore else */
1510
- if (process.env.NODE_ENV !== "production") {
1511
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
1512
- }
1513
-
1514
- getDocument().addEventListener('mousemove', debouncedOnMouseMove);
1515
- pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
1516
- debouncedOnMouseMove(event);
1517
- }
1518
-
1519
- function unmount() {
1520
- /* istanbul ignore else */
1521
- if (process.env.NODE_ENV !== "production") {
1522
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
1523
- }
1524
-
1525
- if (instance.state.isVisible) {
1526
- instance.hide();
1527
- }
1528
-
1529
- if (!instance.state.isMounted) {
1530
- return;
1531
- }
1532
-
1533
- destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
1534
- // tree by default. This seems mainly for interactive tippies, but we should
1535
- // find a workaround if possible
1536
-
1537
- getNestedPopperTree().forEach(function (nestedPopper) {
1538
- nestedPopper._tippy.unmount();
1539
- });
1540
-
1541
- if (popper.parentNode) {
1542
- popper.parentNode.removeChild(popper);
1543
- }
1544
-
1545
- mountedInstances = mountedInstances.filter(function (i) {
1546
- return i !== instance;
1547
- });
1548
- instance.state.isMounted = false;
1549
- invokeHook('onHidden', [instance]);
1550
- }
1551
-
1552
- function destroy() {
1553
- /* istanbul ignore else */
1554
- if (process.env.NODE_ENV !== "production") {
1555
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
1556
- }
1557
-
1558
- if (instance.state.isDestroyed) {
1559
- return;
1560
- }
1561
-
1562
- instance.clearDelayTimeouts();
1563
- instance.unmount();
1564
- removeListeners();
1565
- delete reference._tippy;
1566
- instance.state.isDestroyed = true;
1567
- invokeHook('onDestroy', [instance]);
1568
- }
1569
- }
1570
-
1571
- function tippy(targets, optionalProps) {
1572
- if (optionalProps === void 0) {
1573
- optionalProps = {};
1574
- }
1575
-
1576
- var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
1577
- /* istanbul ignore else */
1578
-
1579
- if (process.env.NODE_ENV !== "production") {
1580
- validateTargets(targets);
1581
- validateProps(optionalProps, plugins);
1582
- }
1583
-
1584
- bindGlobalEventListeners();
1585
- var passedProps = Object.assign({}, optionalProps, {
1586
- plugins: plugins
1587
- });
1588
- var elements = getArrayOfElements(targets);
1589
- /* istanbul ignore else */
1590
-
1591
- if (process.env.NODE_ENV !== "production") {
1592
- var isSingleContentElement = isElement(passedProps.content);
1593
- var isMoreThanOneReferenceElement = elements.length > 1;
1594
- warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ['tippy() was passed an Element as the `content` prop, but more than', 'one tippy instance was created by this invocation. This means the', 'content element will only be appended to the last tippy instance.', '\n\n', 'Instead, pass the .innerHTML of the element, or use a function that', 'returns a cloned version of the element instead.', '\n\n', '1) content: element.innerHTML\n', '2) content: () => element.cloneNode(true)'].join(' '));
1595
- }
1596
-
1597
- var instances = elements.reduce(function (acc, reference) {
1598
- var instance = reference && createTippy(reference, passedProps);
1599
-
1600
- if (instance) {
1601
- acc.push(instance);
1602
- }
1603
-
1604
- return acc;
1605
- }, []);
1606
- return isElement(targets) ? instances[0] : instances;
1607
- }
1608
-
1609
- tippy.defaultProps = defaultProps;
1610
- tippy.setDefaultProps = setDefaultProps;
1611
- tippy.currentInput = currentInput;
1612
-
1613
- // every time the popper is destroyed (i.e. a new target), removing the styles
1614
- // and causing transitions to break for singletons when the console is open, but
1615
- // most notably for non-transform styles being used, `gpuAcceleration: false`.
1616
-
1617
- Object.assign({}, applyStyles, {
1618
- effect: function effect(_ref) {
1619
- var state = _ref.state;
1620
- var initialStyles = {
1621
- popper: {
1622
- position: state.options.strategy,
1623
- left: '0',
1624
- top: '0',
1625
- margin: '0'
1626
- },
1627
- arrow: {
1628
- position: 'absolute'
1629
- },
1630
- reference: {}
1631
- };
1632
- Object.assign(state.elements.popper.style, initialStyles.popper);
1633
- state.styles = initialStyles;
1634
-
1635
- if (state.elements.arrow) {
1636
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
1637
- } // intentionally return no cleanup function
1638
- // return () => { ... }
1639
-
1640
- }
1641
- });
1642
-
1643
- tippy.setDefaultProps({
1644
- render: render
1645
- });
1646
-
1647
- export { tippy as t };