vue-data-ui 3.26.5 → 3.27.1-beta.0

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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17969 -17813
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -120
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-BQbcOtfC.js +0 -116
  350. package/dist/BaseDraggableDialog-BCFCiP_6.js +0 -272
  351. package/dist/BaseIcon-CIK6Sqo3.js +0 -484
  352. package/dist/BaseLegendToggle-Doa5rYP2.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-BGQM8B5F.js +0 -111
  355. package/dist/ColorPicker-Cb7qpvFt.js +0 -257
  356. package/dist/DataTable-B6LDCXBz.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-CwdgCb7Q.js +0 -187
  359. package/dist/Legend-D9FGXIbQ.js +0 -156
  360. package/dist/NonSvgPenAndPaper-9T4MSwXC.js +0 -577
  361. package/dist/PackageVersion-CslTvFsC.js +0 -12
  362. package/dist/PenAndPaper-C1EcBgJW.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-BZgQLgu5.js +0 -143
  367. package/dist/SlicerPreview-DyYv_G-_.js +0 -1730
  368. package/dist/SparkTooltip-D4cRlyuq.js +0 -93
  369. package/dist/Title-Bd98RysU.js +0 -87
  370. package/dist/Tooltip-DmQeI5WE.js +0 -312
  371. package/dist/UserOptions-B_yBcZ1-.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-B_RJohlM.js +0 -237
  374. package/dist/exposedLib-C-JlvWAt.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-KURaWjZI.js +0 -129
  377. package/dist/labelUtils-DShv2Mbg.js +0 -19
  378. package/dist/lib-TWIH5fGr.js +0 -2152
  379. package/dist/package-DbTqd5lc.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-CLl24Afl.js +0 -90
  382. package/dist/render-common-CKv-jztN.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-DObkR9Aa.js +0 -8008
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-BxOdWM0c.js +0 -12
  391. package/dist/useObjectBindings-CPmyIJxB.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-8Y1Rju0Y.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-C3G5Zdl5.js +0 -191
  406. package/dist/vue-ui-3d-bar-Cl6-fBV8.js +0 -1831
  407. package/dist/vue-ui-accordion-AyyZDab3.js +0 -81
  408. package/dist/vue-ui-age-pyramid-DOtWAL8s.js +0 -1305
  409. package/dist/vue-ui-annotator-BCVjlojM.js +0 -3325
  410. package/dist/vue-ui-bullet-B_1Ctjvq.js +0 -702
  411. package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
  412. package/dist/vue-ui-candlestick-KvhjbAxt.js +0 -2144
  413. package/dist/vue-ui-carousel-table-ArMiO0cG.js +0 -467
  414. package/dist/vue-ui-chestnut-DSM0U27X.js +0 -2016
  415. package/dist/vue-ui-chord-64akfaem.js +0 -1347
  416. package/dist/vue-ui-circle-pack-CaR_aNEh.js +0 -1647
  417. package/dist/vue-ui-cursor-DCgqYZiz.js +0 -283
  418. package/dist/vue-ui-dag-8uKK0Rlp.js +0 -2931
  419. package/dist/vue-ui-dashboard-DeccYtSY.js +0 -522
  420. package/dist/vue-ui-digits-BvK7bVuJ.js +0 -217
  421. package/dist/vue-ui-donut-8joMj08Z.js +0 -974
  422. package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
  423. package/dist/vue-ui-donut-evolution-DgITf95R.js +0 -1869
  424. package/dist/vue-ui-dumbbell-U2L4ZYhB.js +0 -1533
  425. package/dist/vue-ui-flow-DD20fJu_.js +0 -1229
  426. package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
  427. package/dist/vue-ui-galaxy-VZFZnHPv.js +0 -1097
  428. package/dist/vue-ui-gauge-Copa7G58.js +0 -934
  429. package/dist/vue-ui-geo-DeDQ6ubl.js +0 -1495
  430. package/dist/vue-ui-gizmo-D5oUKIsP.js +0 -238
  431. package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
  432. package/dist/vue-ui-hill-DONFacXR.js +0 -1747
  433. package/dist/vue-ui-history-plot-BMy_y9S6.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
  435. package/dist/vue-ui-kpi-Bol0OWs3.js +0 -104
  436. package/dist/vue-ui-label-cwjXaEDQ.js +0 -1451
  437. package/dist/vue-ui-mini-loader-kdpasmXb.js +0 -133
  438. package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
  439. package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-ZmGGEvRk.js +0 -1515
  441. package/dist/vue-ui-onion-D6IKPpL-.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CueHa1Pm.js +0 -1979
  446. package/dist/vue-ui-quick-chart-C8ZxX1Zw.js +0 -2775
  447. package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
  448. package/dist/vue-ui-rating-V_OnJN9Y.js +0 -359
  449. package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
  450. package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
  451. package/dist/vue-ui-rings-Bf9IKwDr.js +0 -1264
  452. package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
  453. package/dist/vue-ui-skeleton-dyXWT6JX.js +0 -2567
  454. package/dist/vue-ui-smiley-w6nH1I0E.js +0 -376
  455. package/dist/vue-ui-spark-trend-Bso9bwmY.js +0 -457
  456. package/dist/vue-ui-sparkbar-CL06Yt56.js +0 -401
  457. package/dist/vue-ui-sparkgauge-BHDM5Hbr.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
  459. package/dist/vue-ui-sparkline-znaswFQj.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-BOzVoWoa.js +0 -750
  461. package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
  462. package/dist/vue-ui-stackline-qcLrNL09.js +0 -2829
  463. package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
  464. package/dist/vue-ui-table-D295mJIf.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CXeMKqKz.js +0 -363
  466. package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
  467. package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
  468. package/dist/vue-ui-timer-BULpjYiI.js +0 -451
  469. package/dist/vue-ui-tiremarks-B7bTeU8h.js +0 -540
  470. package/dist/vue-ui-treemap-DkqDz9W4.js +0 -1745
  471. package/dist/vue-ui-waffle-Cn7WBzqh.js +0 -1633
  472. package/dist/vue-ui-wheel-Cy7kBvEx.js +0 -873
  473. package/dist/vue-ui-word-cloud-tRqc2ZMR.js +0 -1723
  474. package/dist/vue-ui-world-B755-zji.js +0 -3021
  475. package/dist/vue-ui-xy-BiHIJ7rK.js +0 -1387
  476. package/dist/vue-ui-xy-DWYTZz_v.js +0 -5777
  477. package/dist/vue-ui-xy-canvas-DGuMC_Rf.js +0 -2151
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-DdjDL6aq.js +0 -491
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1495 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Et as t, Qt as n, S as r, X as i, et as a, t as o, tn as s } from "./lib-TWIH5fGr.js";
3
- import { n as c } from "./useHints-Dq_w2E8B.js";
4
- import { t as l } from "./useConfig-DObkR9Aa.js";
5
- import { t as u } from "./usePrinter-8Y1Rju0Y.js";
6
- import { n as d, t as f } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as p } from "./useNestedProp-BxOdWM0c.js";
8
- import { t as ee } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as te } from "./useChartExport-iwOqiIWX.js";
10
- import { t as ne } from "./img-KURaWjZI.js";
11
- import { n as re } from "./Title-Bd98RysU.js";
12
- import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as ae, t as oe } from "./useResponsive-ZtArZtUf.js";
14
- import { t as se } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as ce } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as le } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as ue } from "./usePanZoom-CYU3B4T3.js";
18
- import { t as de } from "./BaseZoomControls-BGQM8B5F.js";
19
- import { t as fe } from "./geoProjections-BYthUA8l.js";
20
- import { t as pe } from "./vue_ui_geo-B8TODs-G.js";
21
- import { Fragment as me, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as he, createVNode as ge, defineAsyncComponent as _e, guardReactiveProps as y, mergeProps as ve, nextTick as ye, normalizeClass as be, normalizeProps as b, normalizeStyle as xe, onBeforeUnmount as Se, onMounted as Ce, openBlock as x, ref as S, renderList as we, renderSlot as C, toDisplayString as Te, toRefs as Ee, unref as w, watch as De, withCtx as T } from "vue";
22
- //#region src/components/vue-ui-geo.vue
23
- var Oe = /* @__PURE__ */ e({ default: () => He }), ke = ["id"], Ae = ["id"], je = { style: { position: "relative" } }, Me = [
24
- "xmlns",
25
- "viewBox",
26
- "aria-describedby",
27
- "id"
28
- ], Ne = ["transform"], Pe = [
29
- "d",
30
- "fill",
31
- "stroke",
32
- "stroke-width",
33
- "onMouseenter",
34
- "onMouseleave",
35
- "onClick"
36
- ], Fe = [
37
- "d",
38
- "stroke",
39
- "stroke-width",
40
- "onMouseenter",
41
- "onMouseleave",
42
- "onClick"
43
- ], Ie = [
44
- "cx",
45
- "cy",
46
- "r",
47
- "fill",
48
- "stroke",
49
- "stroke-width",
50
- "onMouseenter"
51
- ], Le = [
52
- "cx",
53
- "cy",
54
- "r",
55
- "fill",
56
- "stroke",
57
- "stroke-width",
58
- "onMouseenter",
59
- "onMouseleave",
60
- "onClick"
61
- ], Re = [
62
- "x",
63
- "y",
64
- "fill",
65
- "font-size"
66
- ], ze = {
67
- key: 0,
68
- style: {
69
- position: "absolute",
70
- top: "100%",
71
- left: "0",
72
- width: "100%"
73
- },
74
- "data-dom-to-png-ignore": "",
75
- "aria-hidden": "true"
76
- }, Be = {
77
- key: 6,
78
- class: "vue-data-ui-watermark"
79
- }, Ve = 1.5, He = /*#__PURE__*/ ie({
80
- __name: "vue-ui-geo",
81
- props: {
82
- config: {
83
- type: Object,
84
- default() {
85
- return {};
86
- }
87
- },
88
- dataset: {
89
- type: [Array, Object],
90
- default() {
91
- return [];
92
- }
93
- }
94
- },
95
- emits: ["copyAlt"],
96
- setup(e, { expose: ie, emit: Oe }) {
97
- let He = _e(() => import("./Tooltip-DmQeI5WE.js")), Ue = _e(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), We = _e(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), Ge = _e(() => import("./PackageVersion-CslTvFsC.js").then((e) => e.t)), E = e, Ke = Oe, { vue_ui_geo: qe } = l(), { isThemeValid: Je, warnInvalidTheme: Ye } = ee(), D = S(i()), Xe = S(0), Ze = S(0), O = S(null), k = S(!1), Qe = S(null), $e = S(null), et = S(null), tt = S(null), A = S(null), j = S(null), nt = S(null), rt = S(null), M = S(null), it = S({
98
- x: 0,
99
- y: 0
100
- }), N = S("pointer"), at = S(!1), P = S(!1);
101
- function ot(e) {
102
- P.value = e, Xe.value += 1;
103
- }
104
- function st() {
105
- let e = p({
106
- userConfig: E.config,
107
- defaultConfig: qe
108
- }), t = e.theme;
109
- if (!t) return e;
110
- if (!Je.value(e)) return Ye(e), e;
111
- let n = p({
112
- userConfig: pe[t] || E.config,
113
- defaultConfig: e
114
- });
115
- return p({
116
- userConfig: E.config,
117
- defaultConfig: n
118
- });
119
- }
120
- let F = S(st()), ct = m(() => F.value.style.chart.points.labels), I = m(() => F.value.style.chart.points), L = m(() => F.value.style.chart);
121
- c({
122
- config: () => F.value,
123
- dataset: () => E.dataset,
124
- component: "VueUiGeo",
125
- rules: [{
126
- test: (e) => e.length > 100,
127
- message: [
128
- "👀 The number of data points > 100, which can make the chart hard to read. Consider:",
129
- "",
130
- "▶️ Using filters to reduce the number of data points displayed at the same time, and offer users some level of control."
131
- ]
132
- }]
133
- });
134
- let lt = m(() => F.value.userOptions.useCursorPointer), { userOptionsVisible: ut, keepUserOptionState: dt } = ce({ config: F.value }), { svgRef: R } = le({ config: L.value.title }), ft = m(() => s({
135
- defaultConfig: {
136
- map: { geoJson: {
137
- type: "FeatureCollection",
138
- features: [
139
- {
140
- type: "Feature",
141
- properties: { name: "Island A" },
142
- geometry: {
143
- type: "Polygon",
144
- coordinates: [[
145
- [-6, 2],
146
- [-4, 2],
147
- [-4, 4],
148
- [-6, 4],
149
- [-6, 2]
150
- ]]
151
- }
152
- },
153
- {
154
- type: "Feature",
155
- properties: { name: "Island B" },
156
- geometry: {
157
- type: "Polygon",
158
- coordinates: [[
159
- [-2, -1],
160
- [1, -1],
161
- [1, 2],
162
- [-2, 2],
163
- [-2, -1]
164
- ]]
165
- }
166
- },
167
- {
168
- type: "Feature",
169
- properties: { name: "Island C" },
170
- geometry: {
171
- type: "Polygon",
172
- coordinates: [[
173
- [3, -3],
174
- [5, -3],
175
- [5, -1],
176
- [3, -1],
177
- [3, -3]
178
- ]]
179
- }
180
- },
181
- {
182
- type: "Feature",
183
- properties: { name: "Island D" },
184
- geometry: {
185
- type: "Polygon",
186
- coordinates: [[
187
- [4, 3],
188
- [7, 3],
189
- [7, 5],
190
- [4, 5],
191
- [4, 3]
192
- ]]
193
- }
194
- }
195
- ]
196
- } },
197
- userOptions: { show: !1 },
198
- style: { chart: {
199
- backgroundColor: "#99999930",
200
- territory: {
201
- fill: "#99999950",
202
- stroke: "#8A8A8A",
203
- strokeWidth: .5
204
- }
205
- } }
206
- },
207
- userConfig: F.value.skeletonConfig ?? {}
208
- })), { loading: pt, FINAL_DATASET: mt } = d({
209
- ...Ee(E),
210
- FINAL_CONFIG: F,
211
- prepareConfig: st,
212
- allowEmptyDataset: !0,
213
- skeletonDataset: E.config?.skeletonDataset ?? [],
214
- skeletonConfig: s({
215
- defaultConfig: F.value,
216
- userConfig: ft.value
217
- })
218
- }), { isPrinting: ht, isImaging: gt, generatePdf: _t, generateImage: vt } = u({
219
- elementId: `vue-ui-geo_${D.value}`,
220
- fileName: L.value.title.text || "vue-ui-geo",
221
- options: F.value.userOptions.print
222
- }), yt = m(() => L.value.controls.show ? L.value.controls.position === "top" ? nt.value?.$el ?? null : L.value.controls.position === "bottom" ? rt.value?.$el ?? null : null : null);
223
- function bt() {
224
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect(), A.value = null, j.value = null);
225
- }
226
- let z = m(() => !!F.value.responsive && !P.value);
227
- De(() => P.value, async (e) => {
228
- if (e) {
229
- bt(), H.value = Number(L.value.dimensions.width) || H.value, U.value = Number(L.value.dimensions.height) || U.value, await ye(), k.value = !1, requestAnimationFrame(() => {
230
- k.value || on();
231
- });
232
- return;
233
- }
234
- F.value.responsive && (await ye(), xt());
235
- });
236
- function xt() {
237
- if (bt(), !z.value) return;
238
- let e = ae(() => {
239
- if (!O.value) return;
240
- let { width: e, height: t } = oe({
241
- chart: O.value,
242
- noTitle: St.value ? et.value : null,
243
- title: L.value.title.text ? $e.value : null,
244
- legend: yt.value,
245
- source: tt.value
246
- });
247
- requestAnimationFrame(() => {
248
- H.value = Math.max(.1, Number(e) || .1), U.value = Math.max(.1, Number(t) || .1) - 24;
249
- });
250
- });
251
- A.value = new ResizeObserver(e), j.value = O.value ? O.value.parentNode : null, j.value && A.value.observe(j.value), e();
252
- }
253
- let St = m(() => F.value.userOptions.show && !L.value.title.text), B = S({ showTooltip: L.value.tooltip.show }), V = S(L.value.zoom.active);
254
- function Ct(e) {
255
- let t = a(e);
256
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
257
- }
258
- let wt = Ct(E.config);
259
- De(() => E.config, (e, t) => {
260
- let n = Ct(e), r = n !== wt;
261
- wt = n;
262
- let i = st();
263
- if (!r) {
264
- F.value.style.chart.tooltip = i.style.chart.tooltip, B.value.showTooltip = F.value.style.chart.tooltip.show;
265
- return;
266
- }
267
- F.value = i, B.value.showTooltip = L.value.tooltip.show, V.value = L.value.zoom.active, H.value = L.value.dimensions.width, U.value = L.value.dimensions.height, xt(), Ze.value += 1, Xe.value += 1;
268
- }, { deep: !0 });
269
- let { projections: Tt } = fe, Et = m(() => F.value?.projection || "equirectangular"), Dt = m(() => {
270
- let e = Tt?.[Et.value];
271
- return typeof e == "function" ? e : Tt.equirectangular;
272
- }), Ot = m(() => F.value.map.geoJson ?? null), kt = {
273
- aitoff: {
274
- width: 1e3,
275
- height: 500
276
- },
277
- azimuthalEquidistant: {
278
- width: 1e3,
279
- height: 1e3
280
- },
281
- bonne: {
282
- width: 1e3,
283
- height: 1e3
284
- },
285
- equirectangular: {
286
- width: 1e3,
287
- height: 700
288
- },
289
- gallPeters: {
290
- width: 1e3,
291
- height: 800
292
- },
293
- globe: {
294
- width: 1e3,
295
- height: 1e3
296
- },
297
- hammer: {
298
- width: 1e3,
299
- height: 500
300
- },
301
- mercator: {
302
- width: 1e3,
303
- height: 750
304
- },
305
- mollweide: {
306
- width: 1e3,
307
- height: 600
308
- },
309
- robinson: {
310
- width: 1e3,
311
- height: 600
312
- },
313
- sinusoidal: {
314
- width: 1e3,
315
- height: 500
316
- },
317
- vanDerGrinten: {
318
- width: 1e3,
319
- height: 1e3
320
- },
321
- winkelTripel: {
322
- width: 1e3,
323
- height: 1e3
324
- }
325
- }, H = S(L.value.dimensions.width), U = S(L.value.dimensions.height), At = m(() => {
326
- let e = kt[Et.value] || kt.equirectangular;
327
- return {
328
- width: e.width,
329
- height: e.height
330
- };
331
- }), W = m(() => {
332
- let e = At.value, t = H.value, n = U.value, r = Number.isFinite(t) && t > 0, i = Number.isFinite(n) && n > 0;
333
- return r && i ? {
334
- width: t,
335
- height: n
336
- } : r && !i ? {
337
- width: t,
338
- height: t * (e.height / e.width)
339
- } : !r && i ? {
340
- width: n * (e.width / e.height),
341
- height: n
342
- } : {
343
- width: e.width,
344
- height: e.height
345
- };
346
- }), jt = m(() => {
347
- let e = F.value?.map?.center, t = [0, 0];
348
- if (!Array.isArray(e) || e.length !== 2) return t;
349
- let n = Number(e[0]), r = Number(e[1]);
350
- return !Number.isFinite(n) || !Number.isFinite(r) ? t : [n, r];
351
- });
352
- function G([e, t]) {
353
- return Dt.value([e, t], At.value.width, At.value.height, jt.value);
354
- }
355
- function Mt(e, t = {}) {
356
- let { defaultName: n = "", namePropertyCandidates: r = [
357
- "name",
358
- "nom",
359
- "admin",
360
- "NAME",
361
- "label",
362
- "title",
363
- "description",
364
- "DESCRIPTION",
365
- "NAME_1",
366
- "NAME_2",
367
- "NAME_3",
368
- "NAME_EN",
369
- "name:en",
370
- "name_en",
371
- "localname",
372
- "local_name"
373
- ], includeNullGeometries: i = !1 } = t, a = {
374
- type: "FeatureCollection",
375
- features: []
376
- };
377
- function o(e) {
378
- return typeof e == "object" && !!e && !Array.isArray(e);
379
- }
380
- function s(e) {
381
- return !o(e) || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? Array.isArray(e.geometries) : Object.hasOwn(e, "coordinates");
382
- }
383
- function c(e) {
384
- if (!o(e)) return "";
385
- for (let t of r) {
386
- let n = e[t];
387
- if (typeof n == "string" && n.trim()) return n.trim();
388
- }
389
- return "";
390
- }
391
- function l({ geometry: e, properties: t, fallbackName: r, featureIndex: i }) {
392
- let a = o(t) ? { ...t } : {}, s = c(a), l = n ? `${n} ${i + 1}` : "", u = s || (typeof r == "string" ? r.trim() : "") || l;
393
- return !a.name && u && (a.name = u), {
394
- type: "Feature",
395
- geometry: e,
396
- properties: a
397
- };
398
- }
399
- function u(e, t, n, r, a) {
400
- let c = Array.isArray(e?.geometries) ? e.geometries : [], d = r;
401
- for (let e = 0; e < c.length; e += 1) {
402
- let r = c[e];
403
- if (r) {
404
- if (o(r) && r.type === "GeometryCollection") {
405
- d = u(r, t, n, d, a);
406
- continue;
407
- }
408
- if (s(r)) {
409
- if (r.coordinates == null && r.type !== "GeometryCollection") {
410
- i && (a.push(l({
411
- geometry: null,
412
- properties: t,
413
- fallbackName: n,
414
- featureIndex: d
415
- })), d += 1);
416
- continue;
417
- }
418
- a.push(l({
419
- geometry: r,
420
- properties: t,
421
- fallbackName: n,
422
- featureIndex: d
423
- })), d += 1;
424
- }
425
- }
426
- }
427
- return d;
428
- }
429
- function d(e, t, n = 0) {
430
- let r = n;
431
- if (e == null) return r;
432
- if (Array.isArray(e)) {
433
- for (let n of e) r = d(n, t, r);
434
- return r;
435
- }
436
- if (!o(e) || typeof e.type != "string") return r;
437
- if (e.type === "FeatureCollection") {
438
- let n = Array.isArray(e.features) ? e.features : [];
439
- for (let e of n) r = d(e, t, r);
440
- return r;
441
- }
442
- if (e.type === "Feature") {
443
- let n = o(e.properties) ? e.properties : {}, a = c(n), d = e.geometry ?? null;
444
- return d == null ? (i && (t.push(l({
445
- geometry: null,
446
- properties: n,
447
- fallbackName: a,
448
- featureIndex: r
449
- })), r += 1), r) : o(d) && d.type === "GeometryCollection" ? u(d, n, a, r, t) : (s(d) && (t.push(l({
450
- geometry: d,
451
- properties: n,
452
- fallbackName: a,
453
- featureIndex: r
454
- })), r += 1), r);
455
- }
456
- return e.type === "GeometryCollection" ? u(e, {}, "", r, t) : (s(e) && (t.push(l({
457
- geometry: e,
458
- properties: {},
459
- fallbackName: "",
460
- featureIndex: r
461
- })), r += 1), r);
462
- }
463
- let f = [];
464
- return d(e, f, 0), {
465
- ...a,
466
- features: f
467
- };
468
- }
469
- function Nt(e) {
470
- let t = Array.isArray(e?.features) ? e.features : [];
471
- function n(e) {
472
- if (!e || typeof e != "object") return "";
473
- let t = [
474
- e.name,
475
- e.nom,
476
- e.admin,
477
- e.NAME,
478
- e.label,
479
- e.title,
480
- e.description,
481
- e.DESCRIPTION,
482
- e.NAME_1,
483
- e.NAME_2,
484
- e.NAME_3,
485
- e.NAME_EN,
486
- e["name:en"],
487
- e.name_en,
488
- e.localname,
489
- e.local_name
490
- ];
491
- for (let e of t) if (typeof e == "string" && e.trim()) return e.trim();
492
- for (let t of Object.values(e)) if (typeof t == "string" && t.trim()) return t.trim();
493
- return "";
494
- }
495
- return t.filter((e) => e && e.type === "Feature" && e.geometry).map((e, t) => {
496
- let r = e.properties || {}, i = n(r);
497
- return {
498
- feature: e,
499
- geometry: e.geometry,
500
- properties: r,
501
- name: i,
502
- uid: `map-feature-${D.value}-${t}`,
503
- index: t
504
- };
505
- });
506
- }
507
- let Pt = m(() => Mt(Ot.value, {
508
- defaultName: "",
509
- includeNullGeometries: !1
510
- })), Ft = m(() => Nt(Pt.value));
511
- function It(e) {
512
- if (!e || typeof e.type != "string") return "";
513
- if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) => It(e)).filter(Boolean).join(" ");
514
- let t = (e) => {
515
- if (!Array.isArray(e) || e.length < 2) return null;
516
- let t = Number(e[0]), n = Number(e[1]);
517
- if (!Number.isFinite(t) || !Number.isFinite(n)) return null;
518
- let r = G([t, n]);
519
- if (!Array.isArray(r) || r.length < 2) return null;
520
- let i = Number(r[0]), a = Number(r[1]);
521
- return !Number.isFinite(i) || !Number.isFinite(a) ? null : [i, a];
522
- }, n = (e) => {
523
- let n = (e || []).map(t).filter(Boolean);
524
- return n.length < 2 ? "" : "M" + n.map(([e, t]) => `${e},${t}`).join("L");
525
- }, r = (e) => (e || []).map((e) => {
526
- let t = n(e);
527
- return t ? t + "Z" : "";
528
- }).filter(Boolean).join(" ");
529
- return e.type === "Polygon" ? r(e.coordinates) : e.type === "MultiPolygon" ? (e.coordinates || []).map(r).filter(Boolean).join(" ") : e.type === "LineString" ? n(e.coordinates) : e.type === "MultiLineString" ? (e.coordinates || []).map(n).filter(Boolean).join(" ") : "";
530
- }
531
- function Lt(e) {
532
- return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Lt(e)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" && Array.isArray(e.coordinates) ? e.coordinates : [] : [];
533
- }
534
- function Rt(e) {
535
- return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => Rt(e)) : e.type === "Point" || e.type === "MultiPoint";
536
- }
537
- let zt = m(() => Ft.value.filter((e) => {
538
- let t = e.geometry;
539
- return t ? t.type === "GeometryCollection" ? (Array.isArray(t.geometries) ? t.geometries : []).some((e) => e?.type === "Polygon" || e?.type === "MultiPolygon") : t.type === "Polygon" || t.type === "MultiPolygon" : !1;
540
- })), Bt = m(() => Ft.value.filter((e) => {
541
- let t = e.geometry;
542
- return t ? t.type === "GeometryCollection" ? (Array.isArray(t.geometries) ? t.geometries : []).some((e) => e?.type === "LineString" || e?.type === "MultiLineString") : t.type === "LineString" || t.type === "MultiLineString" : !1;
543
- })), Vt = m(() => Ft.value.filter((e) => {
544
- let t = e.geometry;
545
- return t ? Rt(t) : !1;
546
- })), Ht = m(() => zt.value.map((e) => {
547
- let t = It(e.geometry);
548
- return t ? {
549
- ...e,
550
- path: t
551
- } : null;
552
- }).filter(Boolean)), Ut = m(() => Bt.value.map((e) => {
553
- let t = It(e.geometry);
554
- return t ? {
555
- ...e,
556
- path: t
557
- } : null;
558
- }).filter(Boolean)), Wt = m(() => {
559
- let e = [];
560
- function t(e = {}) {
561
- let t = e?.style && typeof e.style == "object" ? e.style : {}, n = e.radius ?? e.r ?? t.radius ?? t.r, i = e.color ?? e.fill ?? t.color ?? t.fill, a = e.stroke ?? t.stroke, o = e.strokeWidth ?? e.stroke_width ?? t.strokeWidth ?? t.stroke_width;
562
- return {
563
- radius: Number.isFinite(Number(n)) ? Number(n) : Number(I.value.radius),
564
- fill: i != null && String(i).trim() ? r(String(i).trim()) : I.value.fill,
565
- stroke: a != null && String(a).trim() ? r(String(a).trim()) : I.value.stroke,
566
- strokeWidth: Number.isFinite(Number(o)) ? Number(o) : Number(I.value.strokeWidth)
567
- };
568
- }
569
- for (let n of Vt.value) {
570
- let r = Lt(n.geometry);
571
- for (let i = 0; i < r.length; i += 1) {
572
- let a = r[i];
573
- if (!Array.isArray(a) || a.length < 2) continue;
574
- let o = Number(a[0]), s = Number(a[1]);
575
- if (!Number.isFinite(o) || !Number.isFinite(s)) continue;
576
- let c = G([o, s]), l = c?.[0], u = c?.[1];
577
- if (!Number.isFinite(l) || !Number.isFinite(u)) continue;
578
- let d = t(n?.feature?.properties && typeof n.feature.properties == "object" ? n.feature.properties : {});
579
- e.push({
580
- uid: `${n.uid}-geojson-point-${i}`,
581
- name: n.name || "",
582
- x: l,
583
- y: u,
584
- ...d,
585
- originalFeature: n.feature,
586
- featureIndex: n.index,
587
- pointIndex: i
588
- });
589
- }
590
- }
591
- return e;
592
- });
593
- function Gt(e) {
594
- if (!e || typeof e.type != "string") return [];
595
- let t = [], n = (e) => {
596
- if (!Array.isArray(e) || e.length < 2) return;
597
- let n = Number(e[0]), r = Number(e[1]);
598
- if (!Number.isFinite(n) || !Number.isFinite(r)) return;
599
- let i = G([n, r]), a = i?.[0], o = i?.[1];
600
- Number.isFinite(a) && Number.isFinite(o) && t.push([a, o]);
601
- }, r = (e) => {
602
- if (Array.isArray(e)) {
603
- if (e.length >= 2 && typeof e[0] == "number" && typeof e[1] == "number") {
604
- n(e);
605
- return;
606
- }
607
- for (let t of e) r(t);
608
- }
609
- };
610
- if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
611
- for (let n of e.geometries) t.push(...Gt(n));
612
- return t;
613
- }
614
- return e.type === "Point" ? (n(e.coordinates), t) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(n), t) : (r(e.coordinates), t);
615
- }
616
- function Kt(e) {
617
- let t = [];
618
- for (let n of e) t.push(...Gt(n.geometry));
619
- if (!t.length) return null;
620
- let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
621
- for (let [e, o] of t) e < n && (n = e), o < r && (r = o), e > i && (i = e), o > a && (a = o);
622
- let o = i - n, s = a - r;
623
- return !(o > 0) || !(s > 0) ? null : {
624
- minX: n,
625
- minY: r,
626
- maxX: i,
627
- maxY: a,
628
- width: o,
629
- height: s
630
- };
631
- }
632
- let qt = m(() => Kt(Ft.value));
633
- function Jt({ bounds: e, targetWidth: t, targetHeight: n, padding: r }) {
634
- if (!e || !(e.width > 0) || !(e.height > 0)) return {
635
- scale: 1,
636
- translateX: 0,
637
- translateY: 0,
638
- transform: ""
639
- };
640
- let i = Number.isFinite(Number(r)) ? Number(r) : 0, a = Math.max(1, t - i * 2), o = Math.max(1, n - i * 2), s = a / e.width, c = o / e.height, l = Math.min(s, c), u = e.width * l, d = e.height * l, f = i + (a - u) / 2, p = i + (o - d) / 2, ee = f - e.minX * l, te = p - e.minY * l;
641
- return {
642
- scale: l,
643
- translateX: ee,
644
- translateY: te,
645
- transform: `translate(${ee} ${te}) scale(${l})`
646
- };
647
- }
648
- let Yt = m(() => {
649
- let e = qt.value;
650
- if (!e) return {
651
- scale: 1,
652
- translateX: 0,
653
- translateY: 0,
654
- transform: ""
655
- };
656
- let t = F.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
657
- return Jt({
658
- bounds: e,
659
- targetWidth: W.value.width,
660
- targetHeight: W.value.height,
661
- padding: n
662
- });
663
- }), Xt = m(() => `0 0 ${W.value.width} ${W.value.height}`), { viewBox: Zt, resetZoom: Qt, setInitialViewBox: $t, scale: en, zoomByFactor: tn } = ue(R, {
664
- x: 0,
665
- y: 0,
666
- width: W.value.width,
667
- height: W.value.height
668
- }, 1, V);
669
- function nn() {
670
- V.value = !V.value;
671
- }
672
- function rn(e) {
673
- let t = Yt.value, n = Number(t?.scale) || 1, r = Number(t?.translateX) || 0, i = Number(t?.translateY) || 0;
674
- return {
675
- x: e.x * n + r,
676
- y: e.y * n + i
677
- };
678
- }
679
- function an() {
680
- let e = F.value?.map?.center, t = Number(e?.[0]), n = Number(e?.[1]), r = Array.isArray(e) && e.length === 2 && Number.isFinite(t) && Number.isFinite(n) && (t !== 0 || n !== 0), i = W.value.width, a = W.value.height;
681
- if (!r) return {
682
- x: 0,
683
- y: 0,
684
- width: i,
685
- height: a
686
- };
687
- let o = G([t, n]), s = o?.[0], c = o?.[1];
688
- if (!Number.isFinite(s) || !Number.isFinite(c)) return {
689
- x: 0,
690
- y: 0,
691
- width: i,
692
- height: a
693
- };
694
- let l = rn({
695
- x: s,
696
- y: c
697
- });
698
- return {
699
- x: l.x - i / 2,
700
- y: l.y - a / 2,
701
- width: i,
702
- height: a
703
- };
704
- }
705
- function on() {
706
- let e = an();
707
- $t(e, { overwriteCurrentIfNotZoomed: !0 }), k.value = !0;
708
- }
709
- let sn = m(() => {
710
- let e = Zt.value;
711
- return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : Xt.value;
712
- });
713
- function cn() {
714
- tn(Ve, !0);
715
- }
716
- function ln() {
717
- tn(1 / Ve, !0);
718
- }
719
- async function un() {
720
- let e = an();
721
- $t(e, { overwriteCurrentIfNotZoomed: !0 }), Qt(!0);
722
- }
723
- De(() => [
724
- F.value.projection,
725
- F.value.map.center?.[0],
726
- F.value.map.center?.[1],
727
- F.value.map.fitPadding,
728
- Ot.value
729
- ], async () => {
730
- k.value = !1, await ye(), requestAnimationFrame(() => {
731
- k.value || on();
732
- });
733
- }, { deep: !1 }), De(() => [
734
- H.value,
735
- U.value,
736
- z.value
737
- ], async () => {
738
- z.value && (await ye(), $t({
739
- x: 0,
740
- y: 0,
741
- width: W.value.width,
742
- height: W.value.height
743
- }, { overwriteCurrentIfNotZoomed: !0 }), k.value = !1, requestAnimationFrame(() => {
744
- k.value || on();
745
- }));
746
- }, { flush: "post" });
747
- function dn(e) {
748
- return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((e) => e?.type === "Feature" && e.geometry?.type === "Point").map((e, t) => {
749
- let n = e.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, i = e.geometry.coordinates;
750
- return {
751
- uid: `map-point-${D.value}-${t}`,
752
- name: r,
753
- coordinates: i,
754
- color: n.color ?? null,
755
- radius: n.radius ?? null,
756
- hoverRadiusRatio: I.value.hoverRadiusRatio,
757
- description: n.description ?? null,
758
- original: e,
759
- index: t
760
- };
761
- }) : Array.isArray(e) ? e.map((e, t) => {
762
- let n = null, r = `Point ${t + 1}`, i = null, a = null, o = null;
763
- Array.isArray(e) && e.length >= 2 ? n = [Number(e[0]), Number(e[1])] : e && typeof e == "object" && (Array.isArray(e.coordinates) && e.coordinates.length >= 2 ? n = [Number(e.coordinates[0]), Number(e.coordinates[1])] : Number.isFinite(Number(e.lon)) && Number.isFinite(Number(e.lat)) && (n = [Number(e.lon), Number(e.lat)]), typeof e.name == "string" && e.name.trim() && (r = e.name), e.description != null && (i = e.description), e.color != null && (a = e.color), e.radius != null && (o = e.radius));
764
- let s = n ? n[0] : NaN, c = n ? n[1] : NaN;
765
- return !Number.isFinite(s) || !Number.isFinite(c) ? null : {
766
- uid: `map-point-${D.value}-${t}`,
767
- name: r,
768
- coordinates: [s, c],
769
- color: a,
770
- radius: o,
771
- hoverRadiusRatio: I.value.hoverRadiusRatio,
772
- description: i,
773
- original: e,
774
- index: t
775
- };
776
- }).filter(Boolean) : typeof e == "object" ? Object.entries(e).map(([e, t], n) => {
777
- if (!t || typeof t != "object") return null;
778
- let r = Array.isArray(t.coordinates) ? t.coordinates : null;
779
- if (!r || r.length < 2) return null;
780
- let i = Number(r[0]), a = Number(r[1]);
781
- return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
782
- uid: `map-point-${D.value}-${n}-${e}`,
783
- name: t.name || e,
784
- coordinates: [i, a],
785
- color: t.color ?? null,
786
- radius: t.radius ?? null,
787
- hoverRadiusRatio: I.value.hoverRadiusRatio,
788
- description: t.description ?? null,
789
- original: t,
790
- index: n
791
- };
792
- }).filter(Boolean) : [] : [];
793
- }
794
- let fn = m(() => dn(mt.value)), pn = m(() => fn.value.map((e) => {
795
- let t = G(e.coordinates), n = t?.[0], i = t?.[1];
796
- return !Number.isFinite(n) || !Number.isFinite(i) ? null : {
797
- ...e,
798
- x: n,
799
- y: i,
800
- fill: e.color ? r(e.color) : I.value.fill,
801
- radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : I.value.radius
802
- };
803
- }).filter(Boolean)), K = m(() => pn.value.map((e, t) => ({
804
- ...e,
805
- keyboardIndex: t
806
- })));
807
- function mn(e) {
808
- let t = rn(e), r = n(t.x, t.y, R.value);
809
- r && (it.value = {
810
- x: r.x,
811
- y: r.y
812
- });
813
- }
814
- let hn = S(!1), gn = S(""), q = S(!1), J = S(null), Y = S(null);
815
- function _n(e) {
816
- gn.value = e, hn.value = !0;
817
- }
818
- function X() {
819
- hn.value = !1, gn.value = "";
820
- }
821
- function vn(e) {
822
- return String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#039;");
823
- }
824
- function yn(e) {
825
- Qe.value = {
826
- datapoint: e,
827
- seriesIndex: e.index,
828
- series: fn.value,
829
- config: F.value
830
- }, q.value = !1;
831
- let n = L.value.tooltip.customFormat;
832
- if (t(n)) try {
833
- let e = n(Qe.value);
834
- if (typeof e == "string") return q.value = !0, e;
835
- } catch {
836
- console.warn("Custom format cannot be applied."), q.value = !1;
837
- }
838
- return `<div><div style="font-weight:600">${vn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${vn(e.description)}</div>`}</div>`;
839
- }
840
- function bn(e) {
841
- q.value = !1;
842
- let n = L.value.tooltip.customFormat;
843
- if (t(n)) try {
844
- let t = n({
845
- datapoint: e,
846
- config: F.value
847
- });
848
- if (typeof t == "string") return q.value = !0, t;
849
- } catch {
850
- console.warn("Custom format cannot be applied."), q.value = !1;
851
- }
852
- let r = typeof e?.name == "string" ? e.name.trim() : "";
853
- return r ? `<div><div style="font-weight:600">${vn(r)}</div></div>` : (q.value = !1, "");
854
- }
855
- function xn(e) {
856
- if (F.value.events.territoryEnter && F.value.events.territoryEnter({
857
- datapoint: e,
858
- seriesIndex: e.index
859
- }), !(typeof e?.name == "string" && e.name.trim()) && !L.value.territory.hover.enabledWhenEmpty) {
860
- Y.value = null, X();
861
- return;
862
- }
863
- Y.value = e.uid, _n(bn(e));
864
- }
865
- function Sn(e) {
866
- Y.value = null, X(), F.value.events.territoryLeave && F.value.events.territoryLeave({
867
- datapoint: e,
868
- seriesIndex: e.index
869
- });
870
- }
871
- function Cn(e) {
872
- F.value.events.territoryClick && F.value.events.territoryClick({
873
- datapoint: e,
874
- seriesIndex: e.index
875
- });
876
- }
877
- function wn(e, t = null, n = "pointer") {
878
- N.value = n, J.value = e.uid, Number.isInteger(t) && (M.value = t), n === "keyboard" && mn(e), _n(yn(e)), F.value.events.datapointEnter && F.value.events.datapointEnter({
879
- datapoint: e,
880
- seriesIndex: e.index
881
- });
882
- }
883
- function Tn(e, t = "pointer") {
884
- (t !== "pointer" || N.value !== "keyboard") && (J.value = null, X(), t !== "pointer" && (M.value = null, N.value = "pointer"), F.value.events.datapointLeave && F.value.events.datapointLeave({
885
- datapoint: e,
886
- seriesIndex: e.index
887
- }));
888
- }
889
- let En = m(() => !!F.value.events.datapointClick && typeof F.value.events.datapointClick == "function");
890
- function Dn(e) {
891
- En.value && F.value.events.datapointClick({
892
- datapoint: e,
893
- seriesIndex: e.index
894
- });
895
- }
896
- let Z = m(() => L.value.territory);
897
- function On(e) {
898
- let t = typeof e?.name == "string" ? e.name.trim() : "";
899
- if (!t) {
900
- Y.value = null, X();
901
- return;
902
- }
903
- let n = {
904
- name: t,
905
- uid: e.uid,
906
- index: e.featureIndex,
907
- properties: {}
908
- };
909
- Y.value = e.uid, _n(bn(n));
910
- }
911
- function kn() {
912
- Y.value = null, X();
913
- }
914
- let Q = S(!1);
915
- function An() {
916
- Q.value = !Q.value;
917
- }
918
- De(() => Q.value, (e) => {
919
- V.value = !e;
920
- });
921
- function jn() {
922
- B.value.showTooltip = !B.value.showTooltip;
923
- }
924
- let Mn = m(() => L.value.backgroundColor), Nn = m(() => L.value.title), { isCallbackImaging: Pn, isCallbackSvg: Fn, generateSvg: In, onGenerateImage: Ln } = te({
925
- svg: R,
926
- title: Nn,
927
- legend: null,
928
- legendItems: null,
929
- backgroundColor: Mn,
930
- getSvgCallback: () => F.value.userOptions.callbacks.svg,
931
- generateImage: vt
932
- });
933
- async function Rn({ scale: e = 2 } = {}) {
934
- if (!O.value) return;
935
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ne({
936
- domElement: O.value,
937
- base64: !0,
938
- img: !0,
939
- scale: e
940
- });
941
- return {
942
- imageUri: i,
943
- base64: a,
944
- title: L.value.title.text,
945
- width: t,
946
- height: n,
947
- aspectRatio: r
948
- };
949
- }
950
- let $ = S(!1), zn = null;
951
- function Bn() {
952
- V.value && ($.value = !0);
953
- }
954
- function Vn() {
955
- $.value = !1;
956
- }
957
- function Hn() {
958
- V.value && ($.value = !0, zn && clearTimeout(zn), zn = setTimeout(() => {
959
- $.value = !1, zn = null;
960
- }, 140));
961
- }
962
- Se(() => {
963
- zn && clearTimeout(zn);
964
- });
965
- async function Un([e, t], { animated: n = !0 } = {}) {
966
- let r = Number(e), i = Number(t);
967
- if (!Number.isFinite(r) || !Number.isFinite(i)) return;
968
- let a = G([r, i]), o = a?.[0], s = a?.[1];
969
- if (!Number.isFinite(o) || !Number.isFinite(s)) return;
970
- let c = rn({
971
- x: o,
972
- y: s
973
- }), l = Zt.value ? { ...Zt.value } : {
974
- x: 0,
975
- y: 0,
976
- width: W.value.width,
977
- height: W.value.height
978
- }, u = {
979
- x: c.x - l.width / 2,
980
- y: c.y - l.height / 2,
981
- width: l.width,
982
- height: l.height
983
- };
984
- if (!n) {
985
- Zt.value = u;
986
- return;
987
- }
988
- let d = { ...l }, f = { ...u }, p = null, ee = (e) => {
989
- p ??= e;
990
- let t = Math.min((e - p) / 250, 1);
991
- Zt.value = {
992
- x: d.x + (f.x - d.x) * t,
993
- y: d.y + (f.y - d.y) * t,
994
- width: d.width + (f.width - d.width) * t,
995
- height: d.height + (f.height - d.height) * t
996
- }, t < 1 && requestAnimationFrame(ee);
997
- };
998
- requestAnimationFrame(ee);
999
- }
1000
- Ce(async () => {
1001
- xt(), await ye(), requestAnimationFrame(() => {
1002
- k.value || (on(), (F.value.map.center?.[0] || F.value.map.center?.[1]) && Un(F.value.map.center, { animated: !1 }));
1003
- });
1004
- }), Se(() => {
1005
- bt();
1006
- });
1007
- async function Wn() {
1008
- if (Ke("copyAlt", {
1009
- config: F.value,
1010
- dataset: mt.value
1011
- }), !F.value.userOptions.callbacks.altCopy) {
1012
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1013
- return;
1014
- }
1015
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
1016
- config: F.value,
1017
- dataset: mt.value
1018
- }));
1019
- }
1020
- function Gn(e, t) {
1021
- let n = K.value;
1022
- if (!n.length) return null;
1023
- let r = n[e];
1024
- if (!r) return null;
1025
- let i = null, a = Infinity;
1026
- for (let o = 0; o < n.length; o += 1) {
1027
- if (o === e) continue;
1028
- let s = n[o], c = s.x - r.x, l = s.y - r.y, u = !1, d = 0, f = 0;
1029
- if (t === "right" && c > 0 && (u = !0, d = c, f = Math.abs(l)), t === "left" && c < 0 && (u = !0, d = Math.abs(c), f = Math.abs(l)), t === "down" && l > 0 && (u = !0, d = l, f = Math.abs(c)), t === "up" && l < 0 && (u = !0, d = Math.abs(l), f = Math.abs(c)), !u) continue;
1030
- let p = d * d + f * f * 4;
1031
- p < a && (a = p, i = o);
1032
- }
1033
- return i;
1034
- }
1035
- function Kn(e) {
1036
- let t = K.value;
1037
- return t.length ? e === "right" ? t.reduce((e, t, n, r) => t.x < r[e].x ? n : e, 0) : e === "left" ? t.reduce((e, t, n, r) => t.x > r[e].x ? n : e, 0) : e === "down" ? t.reduce((e, t, n, r) => t.y < r[e].y ? n : e, 0) : e === "up" ? t.reduce((e, t, n, r) => t.y > r[e].y ? n : e, 0) : 0 : null;
1038
- }
1039
- function qn() {
1040
- at.value = !0;
1041
- }
1042
- function Jn() {
1043
- let e = M.value == null ? null : K.value[M.value];
1044
- e ? Tn(e, "keyboard") : (M.value = null, N.value = "pointer", X(), J.value = null), at.value = !1;
1045
- }
1046
- function Yn(e) {
1047
- if (!R.value || Q.value || document.activeElement !== R.value || !K.value.length) return;
1048
- let t = e.key === "ArrowRight", n = e.key === "ArrowLeft", r = e.key === "ArrowDown", i = e.key === "ArrowUp", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1049
- if (!t && !n && !r && !i && !a && !o) return;
1050
- if (e.preventDefault(), e.stopPropagation(), o) {
1051
- let e = M.value == null ? null : K.value[M.value];
1052
- e ? Tn(e, "keyboard") : (M.value = null, N.value = "pointer", X(), J.value = null);
1053
- return;
1054
- }
1055
- if (a) {
1056
- let e = M.value == null ? null : K.value[M.value];
1057
- if (!e) return;
1058
- Dn(e);
1059
- return;
1060
- }
1061
- let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
1062
- if (M.value == null ? c = Kn(s) : (c = Gn(M.value, s), c ??= Kn(s)), c == null) return;
1063
- let l = K.value[c];
1064
- l && wn(l, c, "keyboard");
1065
- }
1066
- let Xn = m(() => ({
1067
- headers: [
1068
- "Name",
1069
- "Latitude",
1070
- "Longitude",
1071
- "Description"
1072
- ],
1073
- rows: fn.value.map((e) => {
1074
- let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
1075
- return [
1076
- e.name ?? "",
1077
- Number.isFinite(t) ? String(t) : "",
1078
- Number.isFinite(n) ? String(n) : "",
1079
- e.description ?? ""
1080
- ];
1081
- })
1082
- }));
1083
- return ie({
1084
- getImage: Rn,
1085
- generatePdf: _t,
1086
- generateImage: vt,
1087
- generateSvg: In,
1088
- toggleTooltip: jn,
1089
- toggleAnnotator: An,
1090
- toggleFullscreen: ot,
1091
- zoomIn: cn,
1092
- zoomOut: ln,
1093
- resetZoom: Qt,
1094
- focusLocation: Un,
1095
- copyAlt: Wn
1096
- }), (e, t) => (x(), _("div", {
1097
- class: be(`vue-data-ui-component vue-ui-geo ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value ? "vue-ui-geo-responsive" : ""} ${$.value ? "vue-ui-geo-interacting" : ""}`),
1098
- ref_key: "geoChart",
1099
- ref: O,
1100
- id: `map_${D.value}`,
1101
- dir: "auto",
1102
- style: xe({
1103
- fontFamily: F.value.style.fontFamily,
1104
- width: "100%",
1105
- backgroundColor: L.value.backgroundColor,
1106
- height: z.value ? `${U.value}px` : void 0
1107
- })
1108
- }, [
1109
- v("div", {
1110
- id: `chart-instructions-${D.value}`,
1111
- class: "sr-only"
1112
- }, [v("p", null, Te(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ae),
1113
- Xn.value?.rows?.length ? (x(), h(se, {
1114
- key: 0,
1115
- uid: D.value,
1116
- head: Xn.value.headers,
1117
- body: Xn.value.rows,
1118
- notice: F.value.a11y.translations.tableAvailable,
1119
- caption: F.value.a11y.translations.tableCaption
1120
- }, null, 8, [
1121
- "uid",
1122
- "head",
1123
- "body",
1124
- "notice",
1125
- "caption"
1126
- ])) : g("", !0),
1127
- St.value ? (x(), _("div", {
1128
- key: 1,
1129
- ref_key: "noTitle",
1130
- ref: et,
1131
- class: "vue-data-ui-no-title-space",
1132
- style: "height:36px; width: 100%;background:transparent"
1133
- }, null, 512)) : g("", !0),
1134
- L.value.title.text ? (x(), _("div", {
1135
- key: 2,
1136
- ref_key: "chartTitle",
1137
- ref: $e,
1138
- style: "width:100%;background:transparent;padding-bottom:12px"
1139
- }, [(x(), h(re, {
1140
- key: `title_${Ze.value}`,
1141
- config: {
1142
- title: {
1143
- cy: "geo-title",
1144
- ...L.value.title
1145
- },
1146
- subtitle: {
1147
- cy: "geo-subtitle",
1148
- ...L.value.title.subtitle
1149
- }
1150
- }
1151
- }, null, 8, ["config"]))], 512)) : g("", !0),
1152
- F.value.userOptions.buttons.annotator ? (x(), h(w(We), {
1153
- key: 3,
1154
- svgRef: w(R),
1155
- backgroundColor: L.value.backgroundColor,
1156
- color: L.value.color,
1157
- active: Q.value,
1158
- isCursorPointer: lt.value,
1159
- palette: F.value.userOptions.annotatorPalette,
1160
- onClose: An
1161
- }, {
1162
- "annotator-action-close": T(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1163
- "annotator-action-color": T(({ color: t }) => [C(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
1164
- "annotator-action-draw": T(({ mode: t }) => [C(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
1165
- "annotator-action-undo": T(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
1166
- "annotator-action-redo": T(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
1167
- "annotator-action-delete": T(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
1168
- _: 3
1169
- }, 8, [
1170
- "svgRef",
1171
- "backgroundColor",
1172
- "color",
1173
- "active",
1174
- "isCursorPointer",
1175
- "palette"
1176
- ])) : g("", !0),
1177
- F.value.userOptions.show && (w(dt) || w(ut)) ? (x(), h(w(Ue), {
1178
- ref: "userOptionsRef",
1179
- key: `user_options_${Xe.value}`,
1180
- backgroundColor: L.value.backgroundColor,
1181
- color: L.value.color,
1182
- isPrinting: w(ht),
1183
- isImaging: w(gt),
1184
- uid: D.value,
1185
- hasXls: !1,
1186
- hasTable: !1,
1187
- hasTooltip: F.value.userOptions.buttons.tooltip && L.value.tooltip.show,
1188
- hasPdf: F.value.userOptions.buttons.pdf,
1189
- hasImg: F.value.userOptions.buttons.img,
1190
- hasSvg: F.value.userOptions.buttons.svg,
1191
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
1192
- hasAltCopy: F.value.userOptions.buttons.altCopy,
1193
- hasAnnotator: F.value.userOptions.buttons.annotator,
1194
- hasZoom: F.value.userOptions.buttons.zoom,
1195
- isZoom: V.value,
1196
- isFullscreen: P.value,
1197
- isTooltip: B.value.showTooltip,
1198
- titles: { ...F.value.userOptions.buttonTitles },
1199
- chartElement: O.value,
1200
- position: F.value.userOptions.position,
1201
- isAnnotation: Q.value,
1202
- callbacks: F.value.userOptions.callbacks,
1203
- printScale: F.value.userOptions.print.scale,
1204
- isCursorPointer: lt.value,
1205
- onToggleFullscreen: ot,
1206
- onGeneratePdf: w(_t),
1207
- onGenerateImage: w(Ln),
1208
- onGenerateSvg: w(In),
1209
- onToggleTooltip: jn,
1210
- onToggleAnnotator: An,
1211
- onToggleZoom: nn,
1212
- onCopyAlt: Wn,
1213
- style: xe({ visibility: w(dt) ? w(ut) ? "visible" : "hidden" : "visible" })
1214
- }, he({ _: 2 }, [
1215
- e.$slots.menuIcon ? {
1216
- name: "menuIcon",
1217
- fn: T(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", b(y({
1218
- isOpen: t,
1219
- color: n
1220
- })), void 0, !0)]),
1221
- key: "0"
1222
- } : void 0,
1223
- e.$slots.optionTooltip ? {
1224
- name: "optionTooltip",
1225
- fn: T(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1226
- key: "1"
1227
- } : void 0,
1228
- e.$slots.optionPdf ? {
1229
- name: "optionPdf",
1230
- fn: T(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1231
- key: "2"
1232
- } : void 0,
1233
- e.$slots.optionImg ? {
1234
- name: "optionImg",
1235
- fn: T(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1236
- key: "3"
1237
- } : void 0,
1238
- e.$slots.optionSvg ? {
1239
- name: "optionSvg",
1240
- fn: T(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1241
- key: "4"
1242
- } : void 0,
1243
- e.$slots.optionFullscreen ? {
1244
- name: "optionFullscreen",
1245
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", b(y({
1246
- toggleFullscreen: t,
1247
- isFullscreen: n
1248
- })), void 0, !0)]),
1249
- key: "5"
1250
- } : void 0,
1251
- e.$slots.optionAnnotator ? {
1252
- name: "optionAnnotator",
1253
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", b(y({
1254
- toggleAnnotator: t,
1255
- isAnnotator: n
1256
- })), void 0, !0)]),
1257
- key: "6"
1258
- } : void 0,
1259
- e.$slots.optionZoom ? {
1260
- name: "optionZoom",
1261
- fn: T(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", b(y({
1262
- toggleZoom: t,
1263
- isZoomLocked: n
1264
- })), void 0, !0)]),
1265
- key: "7"
1266
- } : void 0,
1267
- e.$slots.optionAltCopy ? {
1268
- name: "optionAltCopy",
1269
- fn: T(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
1270
- key: "8"
1271
- } : void 0,
1272
- e.$slots["custom-menu-before"] ? {
1273
- name: "custom-menu-before",
1274
- fn: T(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1275
- key: "9"
1276
- } : void 0,
1277
- e.$slots["custom-menu-after"] ? {
1278
- name: "custom-menu-after",
1279
- fn: T(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1280
- key: "10"
1281
- } : void 0
1282
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasFullscreen.hasAltCopy.hasAnnotator.hasZoom.isZoom.isFullscreen.isTooltip.titles.chartElement.position.isAnnotation.callbacks.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
1283
- L.value.controls.position === "top" && L.value.controls.show && !w(pt) ? (x(), h(de, {
1284
- key: 5,
1285
- ref_key: "zoomControlsTop",
1286
- ref: nt,
1287
- config: F.value,
1288
- scale: w(en),
1289
- isFullscreen: P.value,
1290
- isCursorPointer: lt.value,
1291
- onZoomIn: cn,
1292
- onZoomOut: ln,
1293
- onResetZoom: un
1294
- }, null, 8, [
1295
- "config",
1296
- "scale",
1297
- "isFullscreen",
1298
- "isCursorPointer"
1299
- ])) : g("", !0),
1300
- v("div", je, [(x(), _("svg", {
1301
- ref_key: "svgRef",
1302
- ref: R,
1303
- xmlns: w(o),
1304
- viewBox: sn.value,
1305
- preserveAspectRatio: "xMidYMid meet",
1306
- "aria-describedby": `map-keyboard-instructions-${D.value}`,
1307
- tabindex: "0",
1308
- style: xe({
1309
- display: "block",
1310
- width: "100%",
1311
- height: z.value ? `${U.value}px` : "auto",
1312
- background: L.value.backgroundColor,
1313
- touchAction: V.value ? "none" : "auto",
1314
- cursor: V.value ? $.value ? "grabbing" : "grab" : "default"
1315
- }),
1316
- id: `vue-ui-geo_${D.value}`,
1317
- onPointerdown: Bn,
1318
- onPointerup: Vn,
1319
- onPointercancel: Vn,
1320
- onPointerleave: Vn,
1321
- onWheel: Hn,
1322
- onFocus: qn,
1323
- onBlur: Jn,
1324
- onKeydown: Yn
1325
- }, [ge(w(Ge)), v("g", {
1326
- transform: Yt.value.transform,
1327
- style: xe({ pointerEvents: $.value ? "none" : "auto" })
1328
- }, [
1329
- v("g", null, [(x(!0), _(me, null, we(Ht.value, (e) => (x(), _("path", {
1330
- class: "vue-ui-geo-territory",
1331
- key: e.uid,
1332
- d: e.path,
1333
- fill: Y.value === e.uid ? Z.value.hover.fill : Z.value.fill,
1334
- stroke: Y.value === e.uid ? Z.value.hover.stroke : Z.value.stroke,
1335
- "stroke-width": Y.value === e.uid ? Z.value.hover.strokeWidth : Z.value.strokeWidth,
1336
- "vector-effect": "non-scaling-stroke",
1337
- onMouseenter: (t) => xn(e),
1338
- onMouseleave: (t) => Sn(e),
1339
- onClick: (t) => Cn(e)
1340
- }, null, 40, Pe))), 128))]),
1341
- v("g", null, [(x(!0), _(me, null, we(Ut.value, (e) => (x(), _("path", {
1342
- class: "vue-ui-geo-territory",
1343
- key: e.uid,
1344
- d: e.path,
1345
- fill: "none",
1346
- stroke: Y.value === e.uid ? Z.value.hover.stroke : Z.value.stroke,
1347
- "stroke-width": Y.value === e.uid ? Z.value.hover.strokeWidth : Z.value.strokeWidth,
1348
- "vector-effect": "non-scaling-stroke",
1349
- onMouseenter: (t) => xn(e),
1350
- onMouseleave: (t) => Sn(e),
1351
- onClick: (t) => Cn(e)
1352
- }, null, 40, Fe))), 128))]),
1353
- v("g", null, [(x(!0), _(me, null, we(Wt.value, (e) => (x(), _("circle", {
1354
- key: e.uid,
1355
- cx: e.x,
1356
- cy: e.y,
1357
- r: e.radius,
1358
- fill: e.fill,
1359
- stroke: e.stroke,
1360
- "stroke-width": e.strokeWidth,
1361
- "vector-effect": "non-scaling-stroke",
1362
- onMouseenter: (t) => On(e),
1363
- onMouseleave: kn
1364
- }, null, 40, Ie))), 128))]),
1365
- (x(!0), _(me, null, we(pn.value, (t, n) => (x(), _("g", { key: t.uid }, [C(e.$slots, "datapoint", ve({ ref_for: !0 }, {
1366
- point: t,
1367
- onPointEnter: wn,
1368
- onPointLeave: Tn,
1369
- onPointClick: Dn,
1370
- highlighted: J.value === t.uid
1371
- }), () => [v("circle", {
1372
- class: be({
1373
- "vue-ui-geo-point": !0,
1374
- "vue-ui-geo-point-with-event": En.value && lt.value
1375
- }),
1376
- cx: t.x,
1377
- cy: t.y,
1378
- r: J.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
1379
- fill: t.fill,
1380
- stroke: I.value.stroke,
1381
- "stroke-width": I.value.strokeWidth,
1382
- "vector-effect": "non-scaling-stroke",
1383
- onMouseenter: (e) => wn(t, n),
1384
- onMouseleave: (e) => Tn(t),
1385
- onClick: (e) => Dn(t)
1386
- }, null, 42, Le)], !0), ct.value.show ? (x(), _("text", {
1387
- key: 0,
1388
- class: "vue-ui-geo-point-label",
1389
- x: t.x,
1390
- y: t.y + (J.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) + ct.value.offsetY + 1 * ct.value.fontSizeRatio,
1391
- "text-anchor": "middle",
1392
- fill: ct.value.color,
1393
- "font-size": 1 * ct.value.fontSizeRatio
1394
- }, Te(t.name), 9, Re)) : g("", !0)]))), 128)),
1395
- C(e.$slots, "svg", { svg: {
1396
- drawingArea: sn.value,
1397
- x: qt.value?.minX ?? 0,
1398
- y: qt.value?.minY ?? 0,
1399
- width: qt.value?.width ?? 0,
1400
- height: qt.value?.height ?? 0,
1401
- isPrintingImg: w(ht) || w(gt) || w(Pn),
1402
- isPrintingSvg: w(Fn),
1403
- data: {
1404
- areaPaths: Ht.value,
1405
- linePaths: Ut.value,
1406
- geoJsonPoints: Wt.value,
1407
- projectedPoints: pn.value
1408
- }
1409
- } }, void 0, !0)
1410
- ], 12, Ne)], 44, Me)), e.$slots.hint ? (x(), _("div", ze, [C(e.$slots, "hint", b(y({
1411
- hint: F.value.a11y.translations.keyboardNavigation,
1412
- isVisible: at.value
1413
- })), void 0, !0)])) : g("", !0)]),
1414
- e.$slots.watermark ? (x(), _("div", Be, [C(e.$slots, "watermark", b(y({ isPrinting: w(ht) || w(gt) || w(Pn) || w(Fn) })), void 0, !0)])) : g("", !0),
1415
- L.value.controls.position === "bottom" && L.value.controls.show && !w(pt) ? (x(), h(de, {
1416
- key: 7,
1417
- ref_key: "zoomControlsBottom",
1418
- ref: rt,
1419
- config: F.value,
1420
- scale: w(en),
1421
- isFullscreen: P.value,
1422
- isCursorPointer: lt.value,
1423
- onZoomIn: cn,
1424
- onZoomOut: ln,
1425
- onResetZoom: un
1426
- }, null, 8, [
1427
- "config",
1428
- "scale",
1429
- "isFullscreen",
1430
- "isCursorPointer"
1431
- ])) : g("", !0),
1432
- ge(w(He), {
1433
- teleportTo: L.value.tooltip.teleportTo,
1434
- show: B.value.showTooltip && hn.value,
1435
- backgroundColor: L.value.tooltip.backgroundColor,
1436
- color: L.value.tooltip.color,
1437
- fontSize: L.value.tooltip.fontSize,
1438
- borderRadius: L.value.tooltip.borderRadius,
1439
- borderColor: L.value.tooltip.borderColor,
1440
- borderWidth: L.value.tooltip.borderWidth,
1441
- backgroundOpacity: L.value.tooltip.backgroundOpacity,
1442
- position: L.value.tooltip.position,
1443
- offsetX: L.value.tooltip.offsetX,
1444
- offsetY: L.value.tooltip.offsetY,
1445
- parent: O.value,
1446
- content: gn.value,
1447
- isCustom: q.value,
1448
- isFullscreen: P.value,
1449
- smooth: L.value.tooltip.smooth,
1450
- backdropFilter: L.value.tooltip.backdropFilter,
1451
- smoothForce: L.value.tooltip.smoothForce,
1452
- smoothSnapThreshold: L.value.tooltip.smoothSnapThreshold,
1453
- isA11yMode: N.value === "keyboard",
1454
- a11yPosition: it.value
1455
- }, {
1456
- "tooltip-before": T(() => [C(e.$slots, "tooltip-before", b(y({ ...Qe.value })), void 0, !0)]),
1457
- tooltip: T(() => [C(e.$slots, "tooltip", b(y({ ...Qe.value })), void 0, !0)]),
1458
- "tooltip-after": T(() => [C(e.$slots, "tooltip-after", b(y({ ...Qe.value })), void 0, !0)]),
1459
- _: 3
1460
- }, 8, [
1461
- "teleportTo",
1462
- "show",
1463
- "backgroundColor",
1464
- "color",
1465
- "fontSize",
1466
- "borderRadius",
1467
- "borderColor",
1468
- "borderWidth",
1469
- "backgroundOpacity",
1470
- "position",
1471
- "offsetX",
1472
- "offsetY",
1473
- "parent",
1474
- "content",
1475
- "isCustom",
1476
- "isFullscreen",
1477
- "smooth",
1478
- "backdropFilter",
1479
- "smoothForce",
1480
- "smoothSnapThreshold",
1481
- "isA11yMode",
1482
- "a11yPosition"
1483
- ]),
1484
- e.$slots.source ? (x(), _("div", {
1485
- key: 8,
1486
- ref_key: "source",
1487
- ref: tt,
1488
- dir: "auto"
1489
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1490
- C(e.$slots, "skeleton", {}, () => [w(pt) ? (x(), h(f, { key: 0 })) : g("", !0)], !0)
1491
- ], 14, ke));
1492
- }
1493
- }, [["__scopeId", "data-v-52492c2b"]]);
1494
- //#endregion
1495
- export { Oe as n, He as t };