vue-data-ui 3.20.3 → 3.20.4

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 (322) hide show
  1. package/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-BYcZLGDG.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-DuLO91Bk.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
  207. package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
  208. package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
  209. package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
  210. package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
  211. package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
  212. package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
  213. package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
  214. package/dist/vue-ui-dag-D2U673ns.js +2909 -0
  215. package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
  216. package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
  217. package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
  219. package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
  220. package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
  221. package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
  222. package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
  223. package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
  224. package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
  225. package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
  226. package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
  227. package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
  229. package/dist/vue-ui-kpi-BggezxVU.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
  232. package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
  234. package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-BrPLv-sz.js +1978 -0
  239. package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
  240. package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
  243. package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
  244. package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
  245. package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
  246. package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
  249. package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
  250. package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
  252. package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
  254. package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
  255. package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
  256. package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
  257. package/dist/vue-ui-table-DysBVxy5.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
  260. package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
  261. package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
  262. package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
  263. package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
  264. package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
  265. package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
  266. package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
  267. package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
  268. package/dist/vue-ui-xy-BzhW8pHi.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,1516 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, H as n, Lt as r, pt as i, t as a, y as o } from "./lib-DUeYQsS0.js";
3
+ import { t as s } from "./useConfig-DAyQk86L.js";
4
+ import { t as c } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as l, t as u } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as d } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as f } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as p } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ee } from "./img-1cKsci8e.js";
10
+ import { n as te } from "./Title-NWp4qB4K.js";
11
+ import { t as ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as re } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as ie } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as ae } from "./A11yDataTable-BCbtxMU6.js";
15
+ import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as se } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as ce } from "./usePanZoom-CYU3B4T3.js";
18
+ import { t as le } from "./BaseZoomControls-CG7hI_1P.js";
19
+ import { t as ue } from "./geoProjections-Czak6Jn1.js";
20
+ import { t as de } from "./vue_ui_geo-B8TODs-G.js";
21
+ import { Fragment as fe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as pe, createVNode as me, defineAsyncComponent as he, guardReactiveProps as y, mergeProps as ge, nextTick as b, normalizeClass as _e, normalizeProps as x, normalizeStyle as ve, onBeforeUnmount as ye, onMounted as be, openBlock as S, ref as C, renderList as xe, renderSlot as w, toDisplayString as Se, toRefs as Ce, unref as T, watch as we, withCtx as E } from "vue";
22
+ //#region src/components/vue-ui-geo.vue
23
+ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe = { style: { position: "relative" } }, ke = [
24
+ "xmlns",
25
+ "viewBox",
26
+ "aria-describedby",
27
+ "id"
28
+ ], Ae = ["transform"], je = [
29
+ "d",
30
+ "fill",
31
+ "stroke",
32
+ "stroke-width",
33
+ "onMouseenter",
34
+ "onMouseleave",
35
+ "onClick"
36
+ ], Me = [
37
+ "d",
38
+ "stroke",
39
+ "stroke-width",
40
+ "onMouseenter",
41
+ "onMouseleave",
42
+ "onClick"
43
+ ], Ne = [
44
+ "cx",
45
+ "cy",
46
+ "r",
47
+ "fill",
48
+ "stroke",
49
+ "stroke-width",
50
+ "onMouseenter"
51
+ ], Pe = [
52
+ "cx",
53
+ "cy",
54
+ "r",
55
+ "fill",
56
+ "stroke",
57
+ "stroke-width",
58
+ "onMouseenter",
59
+ "onMouseleave",
60
+ "onClick"
61
+ ], Fe = [
62
+ "x",
63
+ "y",
64
+ "fill",
65
+ "font-size"
66
+ ], Ie = {
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
+ }, Le = {
77
+ key: 6,
78
+ class: "vue-data-ui-watermark"
79
+ }, Re = 1.5, ze = /* @__PURE__ */ ne({
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: ne, emit: Te }) {
97
+ let ze = he(() => import("./Tooltip-BENq327o.js")), Be = he(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Ve = he(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), He = he(() => import("./PackageVersion-BYcZLGDG.js").then((e) => e.t)), D = e, Ue = Te, { vue_ui_geo: We } = s(), { isThemeValid: Ge, warnInvalidTheme: Ke } = p(), O = C(n()), qe = C(0), Je = C(0), Ye = C(!1), Xe = C(!1), k = C(null), A = C(!1), j = C(null), Ze = C(null), Qe = C(null), $e = C(null), M = C(null), N = C(null), et = C(null), tt = C(null), P = C(null), nt = C({
98
+ x: 0,
99
+ y: 0
100
+ }), F = C("pointer"), rt = C(!1), I = C(!1);
101
+ function it(e) {
102
+ I.value = e, qe.value += 1;
103
+ }
104
+ function at() {
105
+ let e = f({
106
+ userConfig: D.config,
107
+ defaultConfig: We
108
+ }), t = e.theme;
109
+ if (!t) return e;
110
+ if (!Ge.value(e)) return Ke(e), e;
111
+ let n = f({
112
+ userConfig: de[t] || D.config,
113
+ defaultConfig: e
114
+ });
115
+ return f({
116
+ userConfig: D.config,
117
+ defaultConfig: n
118
+ });
119
+ }
120
+ let L = C(at()), ot = m(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: st, keepUserOptionState: ct } = oe({ config: L.value }), { svgRef: R } = se({ config: L.value.style.chart.title }), lt = m(() => t({
121
+ defaultConfig: {
122
+ map: { geoJson: {
123
+ type: "FeatureCollection",
124
+ features: [
125
+ {
126
+ type: "Feature",
127
+ properties: { name: "Island A" },
128
+ geometry: {
129
+ type: "Polygon",
130
+ coordinates: [[
131
+ [-6, 2],
132
+ [-4, 2],
133
+ [-4, 4],
134
+ [-6, 4],
135
+ [-6, 2]
136
+ ]]
137
+ }
138
+ },
139
+ {
140
+ type: "Feature",
141
+ properties: { name: "Island B" },
142
+ geometry: {
143
+ type: "Polygon",
144
+ coordinates: [[
145
+ [-2, -1],
146
+ [1, -1],
147
+ [1, 2],
148
+ [-2, 2],
149
+ [-2, -1]
150
+ ]]
151
+ }
152
+ },
153
+ {
154
+ type: "Feature",
155
+ properties: { name: "Island C" },
156
+ geometry: {
157
+ type: "Polygon",
158
+ coordinates: [[
159
+ [3, -3],
160
+ [5, -3],
161
+ [5, -1],
162
+ [3, -1],
163
+ [3, -3]
164
+ ]]
165
+ }
166
+ },
167
+ {
168
+ type: "Feature",
169
+ properties: { name: "Island D" },
170
+ geometry: {
171
+ type: "Polygon",
172
+ coordinates: [[
173
+ [4, 3],
174
+ [7, 3],
175
+ [7, 5],
176
+ [4, 5],
177
+ [4, 3]
178
+ ]]
179
+ }
180
+ }
181
+ ]
182
+ } },
183
+ userOptions: { show: !1 },
184
+ style: { chart: {
185
+ backgroundColor: "#99999930",
186
+ territory: {
187
+ fill: "#99999950",
188
+ stroke: "#8A8A8A",
189
+ strokeWidth: .5
190
+ }
191
+ } }
192
+ },
193
+ userConfig: L.value.skeletonConfig ?? {}
194
+ })), { loading: ut, FINAL_DATASET: dt } = l({
195
+ ...Ce(D),
196
+ FINAL_CONFIG: L,
197
+ prepareConfig: at,
198
+ allowEmptyDataset: !0,
199
+ skeletonDataset: D.config?.skeletonDataset ?? [],
200
+ skeletonConfig: t({
201
+ defaultConfig: L.value,
202
+ userConfig: lt.value
203
+ })
204
+ }), { isPrinting: ft, isImaging: pt, generatePdf: mt, generateImage: ht } = c({
205
+ elementId: `vue-ui-geo_${O.value}`,
206
+ fileName: L.value.style.chart.title.text || "vue-ui-geo",
207
+ options: L.value.userOptions.print
208
+ }), gt = m(() => L.value.style.chart.controls.show ? L.value.style.chart.controls.position === "top" ? et.value?.$el ?? null : L.value.style.chart.controls.position === "bottom" ? tt.value?.$el ?? null : null : null);
209
+ function _t() {
210
+ M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect(), M.value = null, N.value = null);
211
+ }
212
+ let z = m(() => !!L.value.responsive && !I.value);
213
+ we(() => I.value, async (e) => {
214
+ if (e) {
215
+ _t(), V.value = Number(L.value.style.chart.dimensions.width) || V.value, H.value = Number(L.value.style.chart.dimensions.height) || H.value, await b(), A.value = !1, requestAnimationFrame(() => {
216
+ A.value || tn();
217
+ });
218
+ return;
219
+ }
220
+ L.value.responsive && (await b(), vt());
221
+ });
222
+ function vt() {
223
+ if (_t(), !z.value) return;
224
+ let e = re(() => {
225
+ if (!k.value) return;
226
+ let { width: e, height: t } = ie({
227
+ chart: k.value,
228
+ noTitle: yt.value ? Qe.value : null,
229
+ title: L.value.style.chart.title.text ? Ze.value : null,
230
+ legend: gt.value,
231
+ source: $e.value
232
+ });
233
+ requestAnimationFrame(() => {
234
+ V.value = Math.max(.1, Number(e) || .1), H.value = Math.max(.1, Number(t) || .1) - 24;
235
+ });
236
+ });
237
+ M.value = new ResizeObserver(e), N.value = k.value ? k.value.parentNode : null, N.value && M.value.observe(N.value), e();
238
+ }
239
+ let yt = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), bt = C({ showTooltip: L.value.style.chart.tooltip.show }), B = C(L.value.style.chart.zoom.active);
240
+ we(() => D.config, () => {
241
+ L.value = at(), bt.value.showTooltip = L.value.style.chart.tooltip.show, B.value = L.value.style.chart.zoom.active, V.value = L.value.style.chart.dimensions.width, H.value = L.value.style.chart.dimensions.height, vt(), Je.value += 1, qe.value += 1;
242
+ }, { deep: !0 });
243
+ let { projections: xt } = ue, St = m(() => L.value?.projection || "equirectangular"), Ct = m(() => {
244
+ let e = xt?.[St.value];
245
+ return typeof e == "function" ? e : xt.equirectangular;
246
+ }), wt = m(() => L.value.map.geoJson ?? null), Tt = {
247
+ aitoff: {
248
+ width: 1e3,
249
+ height: 500
250
+ },
251
+ azimuthalEquidistant: {
252
+ width: 1e3,
253
+ height: 1e3
254
+ },
255
+ bonne: {
256
+ width: 1e3,
257
+ height: 1e3
258
+ },
259
+ equirectangular: {
260
+ width: 1e3,
261
+ height: 700
262
+ },
263
+ gallPeters: {
264
+ width: 1e3,
265
+ height: 800
266
+ },
267
+ globe: {
268
+ width: 1e3,
269
+ height: 1e3
270
+ },
271
+ hammer: {
272
+ width: 1e3,
273
+ height: 500
274
+ },
275
+ mercator: {
276
+ width: 1e3,
277
+ height: 750
278
+ },
279
+ mollweide: {
280
+ width: 1e3,
281
+ height: 600
282
+ },
283
+ robinson: {
284
+ width: 1e3,
285
+ height: 600
286
+ },
287
+ sinusoidal: {
288
+ width: 1e3,
289
+ height: 500
290
+ },
291
+ vanDerGrinten: {
292
+ width: 1e3,
293
+ height: 1e3
294
+ },
295
+ winkelTripel: {
296
+ width: 1e3,
297
+ height: 1e3
298
+ }
299
+ }, V = C(L.value.style.chart.dimensions.width), H = C(L.value.style.chart.dimensions.height), Et = m(() => {
300
+ let e = Tt[St.value] || Tt.equirectangular;
301
+ return {
302
+ width: e.width,
303
+ height: e.height
304
+ };
305
+ }), U = m(() => {
306
+ let e = Et.value, t = V.value, n = H.value, r = Number.isFinite(t) && t > 0, i = Number.isFinite(n) && n > 0;
307
+ return r && i ? {
308
+ width: t,
309
+ height: n
310
+ } : r && !i ? {
311
+ width: t,
312
+ height: t * (e.height / e.width)
313
+ } : !r && i ? {
314
+ width: n * (e.width / e.height),
315
+ height: n
316
+ } : {
317
+ width: e.width,
318
+ height: e.height
319
+ };
320
+ }), Dt = m(() => {
321
+ let e = L.value?.map?.center, t = [0, 0];
322
+ if (!Array.isArray(e) || e.length !== 2) return t;
323
+ let n = Number(e[0]), r = Number(e[1]);
324
+ return !Number.isFinite(n) || !Number.isFinite(r) ? t : [n, r];
325
+ });
326
+ function W([e, t]) {
327
+ return Ct.value([e, t], Et.value.width, Et.value.height, Dt.value);
328
+ }
329
+ function Ot(e, t = {}) {
330
+ let { defaultName: n = "", namePropertyCandidates: r = [
331
+ "name",
332
+ "nom",
333
+ "admin",
334
+ "NAME",
335
+ "label",
336
+ "title",
337
+ "description",
338
+ "DESCRIPTION",
339
+ "NAME_1",
340
+ "NAME_2",
341
+ "NAME_3",
342
+ "NAME_EN",
343
+ "name:en",
344
+ "name_en",
345
+ "localname",
346
+ "local_name"
347
+ ], includeNullGeometries: i = !1 } = t, a = {
348
+ type: "FeatureCollection",
349
+ features: []
350
+ };
351
+ function o(e) {
352
+ return typeof e == "object" && !!e && !Array.isArray(e);
353
+ }
354
+ function s(e) {
355
+ return !o(e) || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? Array.isArray(e.geometries) : Object.hasOwn(e, "coordinates");
356
+ }
357
+ function c(e) {
358
+ if (!o(e)) return "";
359
+ for (let t of r) {
360
+ let n = e[t];
361
+ if (typeof n == "string" && n.trim()) return n.trim();
362
+ }
363
+ return "";
364
+ }
365
+ function l({ geometry: e, properties: t, fallbackName: r, featureIndex: i }) {
366
+ let a = o(t) ? { ...t } : {}, s = c(a), l = n ? `${n} ${i + 1}` : "", u = s || (typeof r == "string" ? r.trim() : "") || l;
367
+ return !a.name && u && (a.name = u), {
368
+ type: "Feature",
369
+ geometry: e,
370
+ properties: a
371
+ };
372
+ }
373
+ function u(e, t, n, r, a) {
374
+ let c = Array.isArray(e?.geometries) ? e.geometries : [], d = r;
375
+ for (let e = 0; e < c.length; e += 1) {
376
+ let r = c[e];
377
+ if (r) {
378
+ if (o(r) && r.type === "GeometryCollection") {
379
+ d = u(r, t, n, d, a);
380
+ continue;
381
+ }
382
+ if (s(r)) {
383
+ if (r.coordinates == null && r.type !== "GeometryCollection") {
384
+ i && (a.push(l({
385
+ geometry: null,
386
+ properties: t,
387
+ fallbackName: n,
388
+ featureIndex: d
389
+ })), d += 1);
390
+ continue;
391
+ }
392
+ a.push(l({
393
+ geometry: r,
394
+ properties: t,
395
+ fallbackName: n,
396
+ featureIndex: d
397
+ })), d += 1;
398
+ }
399
+ }
400
+ }
401
+ return d;
402
+ }
403
+ function d(e, t, n = 0) {
404
+ let r = n;
405
+ if (e == null) return r;
406
+ if (Array.isArray(e)) {
407
+ for (let n of e) r = d(n, t, r);
408
+ return r;
409
+ }
410
+ if (!o(e) || typeof e.type != "string") return r;
411
+ if (e.type === "FeatureCollection") {
412
+ let n = Array.isArray(e.features) ? e.features : [];
413
+ for (let e of n) r = d(e, t, r);
414
+ return r;
415
+ }
416
+ if (e.type === "Feature") {
417
+ let n = o(e.properties) ? e.properties : {}, a = c(n), d = e.geometry ?? null;
418
+ return d == null ? (i && (t.push(l({
419
+ geometry: null,
420
+ properties: n,
421
+ fallbackName: a,
422
+ featureIndex: r
423
+ })), r += 1), r) : o(d) && d.type === "GeometryCollection" ? u(d, n, a, r, t) : (s(d) && (t.push(l({
424
+ geometry: d,
425
+ properties: n,
426
+ fallbackName: a,
427
+ featureIndex: r
428
+ })), r += 1), r);
429
+ }
430
+ return e.type === "GeometryCollection" ? u(e, {}, "", r, t) : (s(e) && (t.push(l({
431
+ geometry: e,
432
+ properties: {},
433
+ fallbackName: "",
434
+ featureIndex: r
435
+ })), r += 1), r);
436
+ }
437
+ let f = [];
438
+ return d(e, f, 0), {
439
+ ...a,
440
+ features: f
441
+ };
442
+ }
443
+ function kt(e) {
444
+ let t = Array.isArray(e?.features) ? e.features : [];
445
+ function n(e) {
446
+ if (!e || typeof e != "object") return "";
447
+ let t = [
448
+ e.name,
449
+ e.nom,
450
+ e.admin,
451
+ e.NAME,
452
+ e.label,
453
+ e.title,
454
+ e.description,
455
+ e.DESCRIPTION,
456
+ e.NAME_1,
457
+ e.NAME_2,
458
+ e.NAME_3,
459
+ e.NAME_EN,
460
+ e["name:en"],
461
+ e.name_en,
462
+ e.localname,
463
+ e.local_name
464
+ ];
465
+ for (let e of t) if (typeof e == "string" && e.trim()) return e.trim();
466
+ for (let t of Object.values(e)) if (typeof t == "string" && t.trim()) return t.trim();
467
+ return "";
468
+ }
469
+ return t.filter((e) => e && e.type === "Feature" && e.geometry).map((e, t) => {
470
+ let r = e.properties || {}, i = n(r);
471
+ return {
472
+ feature: e,
473
+ geometry: e.geometry,
474
+ properties: r,
475
+ name: i,
476
+ uid: `map-feature-${O.value}-${t}`,
477
+ index: t
478
+ };
479
+ });
480
+ }
481
+ let At = m(() => Ot(wt.value, {
482
+ defaultName: "",
483
+ includeNullGeometries: !1
484
+ })), jt = m(() => kt(At.value));
485
+ function Mt(e) {
486
+ if (!e || typeof e.type != "string") return "";
487
+ if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) => Mt(e)).filter(Boolean).join(" ");
488
+ let t = (e) => {
489
+ if (!Array.isArray(e) || e.length < 2) return null;
490
+ let t = Number(e[0]), n = Number(e[1]);
491
+ if (!Number.isFinite(t) || !Number.isFinite(n)) return null;
492
+ let r = W([t, n]);
493
+ if (!Array.isArray(r) || r.length < 2) return null;
494
+ let i = Number(r[0]), a = Number(r[1]);
495
+ return !Number.isFinite(i) || !Number.isFinite(a) ? null : [i, a];
496
+ }, n = (e) => {
497
+ let n = (e || []).map(t).filter(Boolean);
498
+ return n.length < 2 ? "" : "M" + n.map(([e, t]) => `${e},${t}`).join("L");
499
+ }, r = (e) => (e || []).map((e) => {
500
+ let t = n(e);
501
+ return t ? t + "Z" : "";
502
+ }).filter(Boolean).join(" ");
503
+ 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(" ") : "";
504
+ }
505
+ function Nt(e) {
506
+ return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Nt(e)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" && Array.isArray(e.coordinates) ? e.coordinates : [] : [];
507
+ }
508
+ function Pt(e) {
509
+ return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => Pt(e)) : e.type === "Point" || e.type === "MultiPoint";
510
+ }
511
+ let Ft = m(() => jt.value.filter((e) => {
512
+ let t = e.geometry;
513
+ 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;
514
+ })), It = m(() => jt.value.filter((e) => {
515
+ let t = e.geometry;
516
+ 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;
517
+ })), Lt = m(() => jt.value.filter((e) => {
518
+ let t = e.geometry;
519
+ return t ? Pt(t) : !1;
520
+ })), Rt = m(() => Ft.value.map((e) => {
521
+ let t = Mt(e.geometry);
522
+ return t ? {
523
+ ...e,
524
+ path: t
525
+ } : null;
526
+ }).filter(Boolean)), zt = m(() => It.value.map((e) => {
527
+ let t = Mt(e.geometry);
528
+ return t ? {
529
+ ...e,
530
+ path: t
531
+ } : null;
532
+ }).filter(Boolean)), Bt = m(() => {
533
+ let e = [];
534
+ function t(e = {}) {
535
+ let t = e?.style && typeof e.style == "object" ? e.style : {}, n = e.radius ?? e.r ?? t.radius ?? t.r, r = e.color ?? e.fill ?? t.color ?? t.fill, i = e.stroke ?? t.stroke, a = e.strokeWidth ?? e.stroke_width ?? t.strokeWidth ?? t.stroke_width;
536
+ return {
537
+ radius: Number.isFinite(Number(n)) ? Number(n) : Number(L.value.style.chart.points.radius),
538
+ fill: r != null && String(r).trim() ? o(String(r).trim()) : L.value.style.chart.points.fill,
539
+ stroke: i != null && String(i).trim() ? o(String(i).trim()) : L.value.style.chart.points.stroke,
540
+ strokeWidth: Number.isFinite(Number(a)) ? Number(a) : Number(L.value.style.chart.points.strokeWidth)
541
+ };
542
+ }
543
+ for (let n of Lt.value) {
544
+ let r = Nt(n.geometry);
545
+ for (let i = 0; i < r.length; i += 1) {
546
+ let a = r[i];
547
+ if (!Array.isArray(a) || a.length < 2) continue;
548
+ let o = Number(a[0]), s = Number(a[1]);
549
+ if (!Number.isFinite(o) || !Number.isFinite(s)) continue;
550
+ let c = W([o, s]), l = c?.[0], u = c?.[1];
551
+ if (!Number.isFinite(l) || !Number.isFinite(u)) continue;
552
+ let d = t(n?.feature?.properties && typeof n.feature.properties == "object" ? n.feature.properties : {});
553
+ e.push({
554
+ uid: `${n.uid}-geojson-point-${i}`,
555
+ name: n.name || "",
556
+ x: l,
557
+ y: u,
558
+ ...d,
559
+ originalFeature: n.feature,
560
+ featureIndex: n.index,
561
+ pointIndex: i
562
+ });
563
+ }
564
+ }
565
+ return e;
566
+ });
567
+ function Vt(e) {
568
+ if (!e || typeof e.type != "string") return [];
569
+ let t = [], n = (e) => {
570
+ if (!Array.isArray(e) || e.length < 2) return;
571
+ let n = Number(e[0]), r = Number(e[1]);
572
+ if (!Number.isFinite(n) || !Number.isFinite(r)) return;
573
+ let i = W([n, r]), a = i?.[0], o = i?.[1];
574
+ !Number.isFinite(a) || !Number.isFinite(o) || t.push([a, o]);
575
+ }, r = (e) => {
576
+ if (Array.isArray(e)) {
577
+ if (e.length >= 2 && typeof e[0] == "number" && typeof e[1] == "number") {
578
+ n(e);
579
+ return;
580
+ }
581
+ for (let t of e) r(t);
582
+ }
583
+ };
584
+ if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
585
+ for (let n of e.geometries) t.push(...Vt(n));
586
+ return t;
587
+ }
588
+ return e.type === "Point" ? (n(e.coordinates), t) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(n), t) : (r(e.coordinates), t);
589
+ }
590
+ function Ht(e) {
591
+ let t = [];
592
+ for (let n of e) t.push(...Vt(n.geometry));
593
+ if (!t.length) return null;
594
+ let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
595
+ for (let [e, o] of t) e < n && (n = e), o < r && (r = o), e > i && (i = e), o > a && (a = o);
596
+ let o = i - n, s = a - r;
597
+ return !(o > 0) || !(s > 0) ? null : {
598
+ minX: n,
599
+ minY: r,
600
+ maxX: i,
601
+ maxY: a,
602
+ width: o,
603
+ height: s
604
+ };
605
+ }
606
+ let Ut = m(() => Ht(jt.value));
607
+ function Wt({ bounds: e, targetWidth: t, targetHeight: n, padding: r }) {
608
+ if (!e || !(e.width > 0) || !(e.height > 0)) return {
609
+ scale: 1,
610
+ translateX: 0,
611
+ translateY: 0,
612
+ transform: ""
613
+ };
614
+ 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;
615
+ return {
616
+ scale: l,
617
+ translateX: ee,
618
+ translateY: te,
619
+ transform: `translate(${ee} ${te}) scale(${l})`
620
+ };
621
+ }
622
+ let Gt = m(() => {
623
+ let e = Ut.value;
624
+ if (!e) return {
625
+ scale: 1,
626
+ translateX: 0,
627
+ translateY: 0,
628
+ transform: ""
629
+ };
630
+ let t = L.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
631
+ return Wt({
632
+ bounds: e,
633
+ targetWidth: U.value.width,
634
+ targetHeight: U.value.height,
635
+ padding: n
636
+ });
637
+ }), Kt = m(() => `0 0 ${U.value.width} ${U.value.height}`), { viewBox: qt, resetZoom: Jt, setInitialViewBox: Yt, scale: Xt, zoomByFactor: Zt } = ce(R, {
638
+ x: 0,
639
+ y: 0,
640
+ width: U.value.width,
641
+ height: U.value.height
642
+ }, 1, B);
643
+ function Qt() {
644
+ B.value = !B.value;
645
+ }
646
+ function $t(e) {
647
+ let t = Gt.value, n = Number(t?.scale) || 1, r = Number(t?.translateX) || 0, i = Number(t?.translateY) || 0;
648
+ return {
649
+ x: e.x * n + r,
650
+ y: e.y * n + i
651
+ };
652
+ }
653
+ function en() {
654
+ let e = L.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 = U.value.width, a = U.value.height;
655
+ if (!r) return {
656
+ x: 0,
657
+ y: 0,
658
+ width: i,
659
+ height: a
660
+ };
661
+ let o = W([t, n]), s = o?.[0], c = o?.[1];
662
+ if (!Number.isFinite(s) || !Number.isFinite(c)) return {
663
+ x: 0,
664
+ y: 0,
665
+ width: i,
666
+ height: a
667
+ };
668
+ let l = $t({
669
+ x: s,
670
+ y: c
671
+ });
672
+ return {
673
+ x: l.x - i / 2,
674
+ y: l.y - a / 2,
675
+ width: i,
676
+ height: a
677
+ };
678
+ }
679
+ function tn() {
680
+ Yt(en(), { overwriteCurrentIfNotZoomed: !0 }), A.value = !0;
681
+ }
682
+ let nn = m(() => {
683
+ let e = qt.value;
684
+ return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : Kt.value;
685
+ });
686
+ function rn() {
687
+ Zt(Re, !0);
688
+ }
689
+ function an() {
690
+ Zt(1 / Re, !0);
691
+ }
692
+ async function on() {
693
+ Yt(en(), { overwriteCurrentIfNotZoomed: !0 }), Jt(!0);
694
+ }
695
+ we(() => [
696
+ L.value.projection,
697
+ L.value.map.center?.[0],
698
+ L.value.map.center?.[1],
699
+ L.value.map.fitPadding,
700
+ wt.value
701
+ ], async () => {
702
+ A.value = !1, await b(), requestAnimationFrame(() => {
703
+ A.value || tn();
704
+ });
705
+ }, { deep: !1 }), we(() => [
706
+ V.value,
707
+ H.value,
708
+ z.value
709
+ ], async () => {
710
+ z.value && (await b(), Yt({
711
+ x: 0,
712
+ y: 0,
713
+ width: U.value.width,
714
+ height: U.value.height
715
+ }, { overwriteCurrentIfNotZoomed: !0 }), A.value = !1, requestAnimationFrame(() => {
716
+ A.value || tn();
717
+ }));
718
+ }, { flush: "post" });
719
+ function sn(e) {
720
+ return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((e) => e?.type === "Feature" && e.geometry?.type === "Point").map((e, t) => {
721
+ let n = e.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, i = e.geometry.coordinates;
722
+ return {
723
+ uid: `map-point-${O.value}-${t}`,
724
+ name: r,
725
+ coordinates: i,
726
+ color: n.color ?? null,
727
+ radius: n.radius ?? null,
728
+ hoverRadiusRatio: L.value.style.chart.points.hoverRadiusRatio,
729
+ description: n.description ?? null,
730
+ original: e,
731
+ index: t
732
+ };
733
+ }) : Array.isArray(e) ? e.map((e, t) => {
734
+ let n = null, r = `Point ${t + 1}`, i = null, a = null, o = null;
735
+ 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));
736
+ let s = n ? n[0] : NaN, c = n ? n[1] : NaN;
737
+ return !Number.isFinite(s) || !Number.isFinite(c) ? null : {
738
+ uid: `map-point-${O.value}-${t}`,
739
+ name: r,
740
+ coordinates: [s, c],
741
+ color: a,
742
+ radius: o,
743
+ hoverRadiusRatio: L.value.style.chart.points.hoverRadiusRatio,
744
+ description: i,
745
+ original: e,
746
+ index: t
747
+ };
748
+ }).filter(Boolean) : typeof e == "object" ? Object.entries(e).map(([e, t], n) => {
749
+ if (!t || typeof t != "object") return null;
750
+ let r = Array.isArray(t.coordinates) ? t.coordinates : null;
751
+ if (!r || r.length < 2) return null;
752
+ let i = Number(r[0]), a = Number(r[1]);
753
+ return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
754
+ uid: `map-point-${O.value}-${n}-${e}`,
755
+ name: t.name || e,
756
+ coordinates: [i, a],
757
+ color: t.color ?? null,
758
+ radius: t.radius ?? null,
759
+ hoverRadiusRatio: L.value.style.chart.points.hoverRadiusRatio,
760
+ description: t.description ?? null,
761
+ original: t,
762
+ index: n
763
+ };
764
+ }).filter(Boolean) : [] : [];
765
+ }
766
+ let cn = m(() => sn(dt.value)), ln = m(() => cn.value.map((e) => {
767
+ let t = W(e.coordinates), n = t?.[0], r = t?.[1];
768
+ return !Number.isFinite(n) || !Number.isFinite(r) ? null : {
769
+ ...e,
770
+ x: n,
771
+ y: r,
772
+ fill: e.color ? o(e.color) : L.value.style.chart.points.fill,
773
+ radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : L.value.style.chart.points.radius
774
+ };
775
+ }).filter(Boolean)), G = m(() => ln.value.map((e, t) => ({
776
+ ...e,
777
+ keyboardIndex: t
778
+ })));
779
+ function un(e) {
780
+ let t = $t(e), n = r(t.x, t.y, R.value);
781
+ n && (nt.value = {
782
+ x: n.x,
783
+ y: n.y
784
+ });
785
+ }
786
+ let dn = C(!1), fn = C(""), K = C(!1), q = C(null), J = C(null);
787
+ function pn(e) {
788
+ fn.value = e, dn.value = !0;
789
+ }
790
+ function Y() {
791
+ dn.value = !1, fn.value = "";
792
+ }
793
+ function mn(e) {
794
+ return String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#039;");
795
+ }
796
+ function hn(e) {
797
+ j.value = {
798
+ datapoint: e,
799
+ seriesIndex: e.index,
800
+ series: cn.value,
801
+ config: L.value
802
+ }, K.value = !1;
803
+ let t = L.value.style.chart.tooltip.customFormat;
804
+ if (i(t)) try {
805
+ let e = t(j.value);
806
+ if (typeof e == "string") return K.value = !0, e;
807
+ } catch {
808
+ console.warn("Custom format cannot be applied."), K.value = !1;
809
+ }
810
+ return `<div><div style="font-weight:600">${mn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${mn(e.description)}</div>`}</div>`;
811
+ }
812
+ function gn(e) {
813
+ K.value = !1;
814
+ let t = L.value.style.chart.tooltip.customFormat;
815
+ if (i(t)) try {
816
+ let n = t({
817
+ datapoint: e,
818
+ config: L.value
819
+ });
820
+ if (typeof n == "string") return K.value = !0, n;
821
+ } catch {
822
+ console.warn("Custom format cannot be applied."), K.value = !1;
823
+ }
824
+ let n = typeof e?.name == "string" ? e.name.trim() : "";
825
+ return n ? `<div><div style="font-weight:600">${mn(n)}</div></div>` : (K.value = !1, "");
826
+ }
827
+ function _n(e) {
828
+ if (L.value.events.territoryEnter && L.value.events.territoryEnter({
829
+ datapoint: e,
830
+ seriesIndex: e.index
831
+ }), !(typeof e?.name == "string" && e.name.trim()) && !L.value.style.chart.territory.hover.enabledWhenEmpty) {
832
+ J.value = null, Y();
833
+ return;
834
+ }
835
+ J.value = e.uid, pn(gn(e));
836
+ }
837
+ function vn(e) {
838
+ J.value = null, Y(), L.value.events.territoryLeave && L.value.events.territoryLeave({
839
+ datapoint: e,
840
+ seriesIndex: e.index
841
+ });
842
+ }
843
+ function yn(e) {
844
+ L.value.events.territoryClick && L.value.events.territoryClick({
845
+ datapoint: e,
846
+ seriesIndex: e.index
847
+ });
848
+ }
849
+ function bn(e, t = null, n = "pointer") {
850
+ F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" && un(e), pn(hn(e)), L.value.events.datapointEnter && L.value.events.datapointEnter({
851
+ datapoint: e,
852
+ seriesIndex: e.index
853
+ });
854
+ }
855
+ function xn(e, t = "pointer") {
856
+ t === "pointer" && F.value === "keyboard" || (q.value = null, Y(), t !== "pointer" && (P.value = null, F.value = "pointer"), L.value.events.datapointLeave && L.value.events.datapointLeave({
857
+ datapoint: e,
858
+ seriesIndex: e.index
859
+ }));
860
+ }
861
+ let Sn = m(() => !!L.value.events.datapointClick && typeof L.value.events.datapointClick == "function");
862
+ function Cn(e) {
863
+ Sn.value && L.value.events.datapointClick({
864
+ datapoint: e,
865
+ seriesIndex: e.index
866
+ });
867
+ }
868
+ let X = m(() => L.value.style.chart.territory), wn = m(() => L.value.style.chart.points);
869
+ function Tn(e) {
870
+ let t = typeof e?.name == "string" ? e.name.trim() : "";
871
+ if (!t) {
872
+ J.value = null, Y();
873
+ return;
874
+ }
875
+ let n = {
876
+ name: t,
877
+ uid: e.uid,
878
+ index: e.featureIndex,
879
+ properties: {}
880
+ };
881
+ J.value = e.uid, pn(gn(n));
882
+ }
883
+ function En() {
884
+ J.value = null, Y();
885
+ }
886
+ let Z = C(!1);
887
+ function Dn() {
888
+ Z.value = !Z.value;
889
+ }
890
+ we(() => Z.value, (e) => {
891
+ B.value = !e;
892
+ });
893
+ function On() {
894
+ bt.value.showTooltip = !bt.value.showTooltip;
895
+ }
896
+ let kn = m(() => L.value.style.chart.backgroundColor), { exportSvg: An, getSvg: jn } = d({
897
+ svg: R,
898
+ title: m(() => L.value.style.chart.title),
899
+ legend: void 0,
900
+ legendItems: void 0,
901
+ backgroundColor: kn
902
+ });
903
+ async function Mn({ isCb: e }) {
904
+ Xe.value = !0, await b();
905
+ try {
906
+ if (e) {
907
+ let { blob: e, url: t, text: n, dataUrl: r } = await jn();
908
+ await Promise.resolve(L.value.userOptions.callbacks.svg({
909
+ blob: e,
910
+ url: t,
911
+ text: n,
912
+ dataUrl: r
913
+ }));
914
+ } else await Promise.resolve(An());
915
+ } finally {
916
+ Xe.value = !1;
917
+ }
918
+ }
919
+ function Nn(e) {
920
+ if (e?.stage === "start") {
921
+ Ye.value = !0;
922
+ return;
923
+ }
924
+ if (e?.stage === "end") {
925
+ Ye.value = !1;
926
+ return;
927
+ }
928
+ ht();
929
+ }
930
+ async function Pn({ scale: e = 2 } = {}) {
931
+ if (!k.value) return;
932
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ee({
933
+ domElement: k.value,
934
+ base64: !0,
935
+ img: !0,
936
+ scale: e
937
+ });
938
+ return {
939
+ imageUri: i,
940
+ base64: a,
941
+ title: L.value.style.chart.title.text,
942
+ width: t,
943
+ height: n,
944
+ aspectRatio: r
945
+ };
946
+ }
947
+ let Q = C(!1), $ = null;
948
+ function Fn() {
949
+ B.value && (Q.value = !0);
950
+ }
951
+ function In() {
952
+ Q.value = !1;
953
+ }
954
+ function Ln() {
955
+ B.value && (Q.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
956
+ Q.value = !1, $ = null;
957
+ }, 140));
958
+ }
959
+ ye(() => {
960
+ $ && clearTimeout($);
961
+ });
962
+ async function Rn([e, t], { animated: n = !0 } = {}) {
963
+ let r = Number(e), i = Number(t);
964
+ if (!Number.isFinite(r) || !Number.isFinite(i)) return;
965
+ let a = W([r, i]), o = a?.[0], s = a?.[1];
966
+ if (!Number.isFinite(o) || !Number.isFinite(s)) return;
967
+ let c = $t({
968
+ x: o,
969
+ y: s
970
+ }), l = qt.value ? { ...qt.value } : {
971
+ x: 0,
972
+ y: 0,
973
+ width: U.value.width,
974
+ height: U.value.height
975
+ }, u = {
976
+ x: c.x - l.width / 2,
977
+ y: c.y - l.height / 2,
978
+ width: l.width,
979
+ height: l.height
980
+ };
981
+ if (!n) {
982
+ qt.value = u;
983
+ return;
984
+ }
985
+ let d = { ...l }, f = { ...u }, p = null, ee = (e) => {
986
+ p ??= e;
987
+ let t = Math.min((e - p) / 250, 1);
988
+ qt.value = {
989
+ x: d.x + (f.x - d.x) * t,
990
+ y: d.y + (f.y - d.y) * t,
991
+ width: d.width + (f.width - d.width) * t,
992
+ height: d.height + (f.height - d.height) * t
993
+ }, t < 1 && requestAnimationFrame(ee);
994
+ };
995
+ requestAnimationFrame(ee);
996
+ }
997
+ be(async () => {
998
+ vt(), await b(), requestAnimationFrame(() => {
999
+ A.value || (tn(), (L.value.map.center?.[0] || L.value.map.center?.[1]) && Rn(L.value.map.center, { animated: !1 }));
1000
+ });
1001
+ }), ye(() => {
1002
+ _t();
1003
+ });
1004
+ async function zn() {
1005
+ if (Ue("copyAlt", {
1006
+ config: L.value,
1007
+ dataset: dt.value
1008
+ }), !L.value.userOptions.callbacks.altCopy) {
1009
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1010
+ return;
1011
+ }
1012
+ await Promise.resolve(L.value.userOptions.callbacks.altCopy({
1013
+ config: L.value,
1014
+ dataset: dt.value
1015
+ }));
1016
+ }
1017
+ function Bn(e, t) {
1018
+ let n = G.value;
1019
+ if (!n.length) return null;
1020
+ let r = n[e];
1021
+ if (!r) return null;
1022
+ let i = null, a = Infinity;
1023
+ for (let o = 0; o < n.length; o += 1) {
1024
+ if (o === e) continue;
1025
+ let s = n[o], c = s.x - r.x, l = s.y - r.y, u = !1, d = 0, f = 0;
1026
+ 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;
1027
+ let p = d * d + f * f * 4;
1028
+ p < a && (a = p, i = o);
1029
+ }
1030
+ return i;
1031
+ }
1032
+ function Vn(e) {
1033
+ let t = G.value;
1034
+ 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;
1035
+ }
1036
+ function Hn() {
1037
+ rt.value = !0;
1038
+ }
1039
+ function Un() {
1040
+ let e = P.value == null ? null : G.value[P.value];
1041
+ e ? xn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null), rt.value = !1;
1042
+ }
1043
+ function Wn(e) {
1044
+ if (!R.value || Z.value || document.activeElement !== R.value || !G.value.length) return;
1045
+ 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";
1046
+ if (!t && !n && !r && !i && !a && !o) return;
1047
+ if (e.preventDefault(), e.stopPropagation(), o) {
1048
+ let e = P.value == null ? null : G.value[P.value];
1049
+ e ? xn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null);
1050
+ return;
1051
+ }
1052
+ if (a) {
1053
+ let e = P.value == null ? null : G.value[P.value];
1054
+ if (!e) return;
1055
+ Cn(e);
1056
+ return;
1057
+ }
1058
+ let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
1059
+ if (P.value == null ? c = Vn(s) : (c = Bn(P.value, s), c ??= Vn(s)), c == null) return;
1060
+ let l = G.value[c];
1061
+ l && bn(l, c, "keyboard");
1062
+ }
1063
+ let Gn = m(() => ({
1064
+ headers: [
1065
+ "Name",
1066
+ "Latitude",
1067
+ "Longitude",
1068
+ "Description"
1069
+ ],
1070
+ rows: cn.value.map((e) => {
1071
+ let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
1072
+ return [
1073
+ e.name ?? "",
1074
+ Number.isFinite(t) ? String(t) : "",
1075
+ Number.isFinite(n) ? String(n) : "",
1076
+ e.description ?? ""
1077
+ ];
1078
+ })
1079
+ }));
1080
+ return ne({
1081
+ getImage: Pn,
1082
+ generatePdf: mt,
1083
+ generateImage: ht,
1084
+ generateSvg: Mn,
1085
+ toggleTooltip: On,
1086
+ toggleAnnotator: Dn,
1087
+ toggleFullscreen: it,
1088
+ zoomIn: rn,
1089
+ zoomOut: an,
1090
+ resetZoom: Jt,
1091
+ focusLocation: Rn,
1092
+ copyAlt: zn
1093
+ }), (e, t) => (S(), _("div", {
1094
+ class: _e(`vue-data-ui-component vue-ui-geo ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value ? "vue-ui-geo-responsive" : ""} ${Q.value ? "vue-ui-geo-interacting" : ""}`),
1095
+ ref_key: "geoChart",
1096
+ ref: k,
1097
+ id: `map_${O.value}`,
1098
+ dir: "auto",
1099
+ style: ve({
1100
+ fontFamily: L.value.style.fontFamily,
1101
+ width: "100%",
1102
+ backgroundColor: L.value.style.chart.backgroundColor,
1103
+ height: z.value ? `${H.value}px` : void 0
1104
+ })
1105
+ }, [
1106
+ v("div", {
1107
+ id: `chart-instructions-${O.value}`,
1108
+ class: "sr-only"
1109
+ }, [v("p", null, Se(L.value.a11y.translations.keyboardNavigation), 1)], 8, De),
1110
+ Gn.value?.rows?.length ? (S(), h(ae, {
1111
+ key: 0,
1112
+ uid: O.value,
1113
+ head: Gn.value.headers,
1114
+ body: Gn.value.rows,
1115
+ notice: L.value.a11y.translations.tableAvailable,
1116
+ caption: L.value.a11y.translations.tableCaption
1117
+ }, null, 8, [
1118
+ "uid",
1119
+ "head",
1120
+ "body",
1121
+ "notice",
1122
+ "caption"
1123
+ ])) : g("", !0),
1124
+ yt.value ? (S(), _("div", {
1125
+ key: 1,
1126
+ ref_key: "noTitle",
1127
+ ref: Qe,
1128
+ class: "vue-data-ui-no-title-space",
1129
+ style: "height:36px; width: 100%;background:transparent"
1130
+ }, null, 512)) : g("", !0),
1131
+ L.value.style.chart.title.text ? (S(), _("div", {
1132
+ key: 2,
1133
+ ref_key: "chartTitle",
1134
+ ref: Ze,
1135
+ style: "width:100%;background:transparent;padding-bottom:12px"
1136
+ }, [(S(), h(te, {
1137
+ key: `title_${Je.value}`,
1138
+ config: {
1139
+ title: {
1140
+ cy: "geo-title",
1141
+ ...L.value.style.chart.title
1142
+ },
1143
+ subtitle: {
1144
+ cy: "geo-subtitle",
1145
+ ...L.value.style.chart.title.subtitle
1146
+ }
1147
+ }
1148
+ }, null, 8, ["config"]))], 512)) : g("", !0),
1149
+ L.value.userOptions.buttons.annotator ? (S(), h(T(Ve), {
1150
+ key: 3,
1151
+ svgRef: T(R),
1152
+ backgroundColor: L.value.style.chart.backgroundColor,
1153
+ color: L.value.style.chart.color,
1154
+ active: Z.value,
1155
+ isCursorPointer: ot.value,
1156
+ onClose: Dn
1157
+ }, {
1158
+ "annotator-action-close": E(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1159
+ "annotator-action-color": E(({ color: t }) => [w(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1160
+ "annotator-action-draw": E(({ mode: t }) => [w(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1161
+ "annotator-action-undo": E(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1162
+ "annotator-action-redo": E(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1163
+ "annotator-action-delete": E(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1164
+ _: 3
1165
+ }, 8, [
1166
+ "svgRef",
1167
+ "backgroundColor",
1168
+ "color",
1169
+ "active",
1170
+ "isCursorPointer"
1171
+ ])) : g("", !0),
1172
+ L.value.userOptions.show && (T(ct) || T(st)) ? (S(), h(T(Be), {
1173
+ ref: "userOptionsRef",
1174
+ key: `user_options_${qe.value}`,
1175
+ backgroundColor: L.value.style.chart.backgroundColor,
1176
+ color: L.value.style.chart.color,
1177
+ isPrinting: T(ft),
1178
+ isImaging: T(pt),
1179
+ uid: O.value,
1180
+ hasXls: !1,
1181
+ hasTable: !1,
1182
+ hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
1183
+ hasPdf: L.value.userOptions.buttons.pdf,
1184
+ hasImg: L.value.userOptions.buttons.img,
1185
+ hasSvg: L.value.userOptions.buttons.svg,
1186
+ hasFullscreen: L.value.userOptions.buttons.fullscreen,
1187
+ hasAltCopy: L.value.userOptions.buttons.altCopy,
1188
+ hasAnnotator: L.value.userOptions.buttons.annotator,
1189
+ hasZoom: L.value.userOptions.buttons.zoom,
1190
+ isZoom: B.value,
1191
+ isFullscreen: I.value,
1192
+ isTooltip: bt.value.showTooltip,
1193
+ titles: { ...L.value.userOptions.buttonTitles },
1194
+ chartElement: k.value,
1195
+ position: L.value.userOptions.position,
1196
+ isAnnotation: Z.value,
1197
+ callbacks: L.value.userOptions.callbacks,
1198
+ printScale: L.value.userOptions.print.scale,
1199
+ isCursorPointer: ot.value,
1200
+ onToggleFullscreen: it,
1201
+ onGeneratePdf: T(mt),
1202
+ onGenerateImage: Nn,
1203
+ onGenerateSvg: Mn,
1204
+ onToggleTooltip: On,
1205
+ onToggleAnnotator: Dn,
1206
+ onToggleZoom: Qt,
1207
+ onCopyAlt: zn,
1208
+ style: ve({ visibility: T(ct) ? T(st) ? "visible" : "hidden" : "visible" })
1209
+ }, pe({ _: 2 }, [
1210
+ e.$slots.menuIcon ? {
1211
+ name: "menuIcon",
1212
+ fn: E(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", x(y({
1213
+ isOpen: t,
1214
+ color: n
1215
+ })), void 0, !0)]),
1216
+ key: "0"
1217
+ } : void 0,
1218
+ e.$slots.optionTooltip ? {
1219
+ name: "optionTooltip",
1220
+ fn: E(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1221
+ key: "1"
1222
+ } : void 0,
1223
+ e.$slots.optionPdf ? {
1224
+ name: "optionPdf",
1225
+ fn: E(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1226
+ key: "2"
1227
+ } : void 0,
1228
+ e.$slots.optionImg ? {
1229
+ name: "optionImg",
1230
+ fn: E(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1231
+ key: "3"
1232
+ } : void 0,
1233
+ e.$slots.optionSvg ? {
1234
+ name: "optionSvg",
1235
+ fn: E(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1236
+ key: "4"
1237
+ } : void 0,
1238
+ e.$slots.optionFullscreen ? {
1239
+ name: "optionFullscreen",
1240
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", x(y({
1241
+ toggleFullscreen: t,
1242
+ isFullscreen: n
1243
+ })), void 0, !0)]),
1244
+ key: "5"
1245
+ } : void 0,
1246
+ e.$slots.optionAnnotator ? {
1247
+ name: "optionAnnotator",
1248
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", x(y({
1249
+ toggleAnnotator: t,
1250
+ isAnnotator: n
1251
+ })), void 0, !0)]),
1252
+ key: "6"
1253
+ } : void 0,
1254
+ e.$slots.optionZoom ? {
1255
+ name: "optionZoom",
1256
+ fn: E(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", x(y({
1257
+ toggleZoom: t,
1258
+ isZoomLocked: n
1259
+ })), void 0, !0)]),
1260
+ key: "7"
1261
+ } : void 0,
1262
+ e.$slots.optionAltCopy ? {
1263
+ name: "optionAltCopy",
1264
+ fn: E(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1265
+ key: "8"
1266
+ } : void 0,
1267
+ e.$slots["custom-menu-before"] ? {
1268
+ name: "custom-menu-before",
1269
+ fn: E(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1270
+ key: "9"
1271
+ } : void 0,
1272
+ e.$slots["custom-menu-after"] ? {
1273
+ name: "custom-menu-after",
1274
+ fn: E(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1275
+ key: "10"
1276
+ } : void 0
1277
+ ]), 1032, [
1278
+ "backgroundColor",
1279
+ "color",
1280
+ "isPrinting",
1281
+ "isImaging",
1282
+ "uid",
1283
+ "hasTooltip",
1284
+ "hasPdf",
1285
+ "hasImg",
1286
+ "hasSvg",
1287
+ "hasFullscreen",
1288
+ "hasAltCopy",
1289
+ "hasAnnotator",
1290
+ "hasZoom",
1291
+ "isZoom",
1292
+ "isFullscreen",
1293
+ "isTooltip",
1294
+ "titles",
1295
+ "chartElement",
1296
+ "position",
1297
+ "isAnnotation",
1298
+ "callbacks",
1299
+ "printScale",
1300
+ "isCursorPointer",
1301
+ "onGeneratePdf",
1302
+ "style"
1303
+ ])) : g("", !0),
1304
+ L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !T(ut) ? (S(), h(le, {
1305
+ key: 5,
1306
+ ref_key: "zoomControlsTop",
1307
+ ref: et,
1308
+ config: L.value,
1309
+ scale: T(Xt),
1310
+ isFullscreen: I.value,
1311
+ isCursorPointer: ot.value,
1312
+ onZoomIn: rn,
1313
+ onZoomOut: an,
1314
+ onResetZoom: on
1315
+ }, null, 8, [
1316
+ "config",
1317
+ "scale",
1318
+ "isFullscreen",
1319
+ "isCursorPointer"
1320
+ ])) : g("", !0),
1321
+ v("div", Oe, [(S(), _("svg", {
1322
+ ref_key: "svgRef",
1323
+ ref: R,
1324
+ xmlns: T(a),
1325
+ viewBox: nn.value,
1326
+ preserveAspectRatio: "xMidYMid meet",
1327
+ "aria-describedby": `map-keyboard-instructions-${O.value}`,
1328
+ tabindex: "0",
1329
+ style: ve({
1330
+ display: "block",
1331
+ width: "100%",
1332
+ height: z.value ? `${H.value}px` : "auto",
1333
+ background: L.value.style.chart.backgroundColor,
1334
+ touchAction: B.value ? "none" : "auto",
1335
+ cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
1336
+ }),
1337
+ id: `vue-ui-geo_${O.value}`,
1338
+ onPointerdown: Fn,
1339
+ onPointerup: In,
1340
+ onPointercancel: In,
1341
+ onPointerleave: In,
1342
+ onWheel: Ln,
1343
+ onFocus: Hn,
1344
+ onBlur: Un,
1345
+ onKeydown: Wn
1346
+ }, [me(T(He)), v("g", {
1347
+ transform: Gt.value.transform,
1348
+ style: ve({ pointerEvents: Q.value ? "none" : "auto" })
1349
+ }, [
1350
+ v("g", null, [(S(!0), _(fe, null, xe(Rt.value, (e) => (S(), _("path", {
1351
+ class: "vue-ui-geo-territory",
1352
+ key: e.uid,
1353
+ d: e.path,
1354
+ fill: J.value === e.uid ? X.value.hover.fill : X.value.fill,
1355
+ stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
1356
+ "stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
1357
+ "vector-effect": "non-scaling-stroke",
1358
+ onMouseenter: (t) => _n(e),
1359
+ onMouseleave: (t) => vn(e),
1360
+ onClick: (t) => yn(e)
1361
+ }, null, 40, je))), 128))]),
1362
+ v("g", null, [(S(!0), _(fe, null, xe(zt.value, (e) => (S(), _("path", {
1363
+ class: "vue-ui-geo-territory",
1364
+ key: e.uid,
1365
+ d: e.path,
1366
+ fill: "none",
1367
+ stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
1368
+ "stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
1369
+ "vector-effect": "non-scaling-stroke",
1370
+ onMouseenter: (t) => _n(e),
1371
+ onMouseleave: (t) => vn(e),
1372
+ onClick: (t) => yn(e)
1373
+ }, null, 40, Me))), 128))]),
1374
+ v("g", null, [(S(!0), _(fe, null, xe(Bt.value, (e) => (S(), _("circle", {
1375
+ key: e.uid,
1376
+ cx: e.x,
1377
+ cy: e.y,
1378
+ r: e.radius,
1379
+ fill: e.fill,
1380
+ stroke: e.stroke,
1381
+ "stroke-width": e.strokeWidth,
1382
+ "vector-effect": "non-scaling-stroke",
1383
+ onMouseenter: (t) => Tn(e),
1384
+ onMouseleave: En
1385
+ }, null, 40, Ne))), 128))]),
1386
+ (S(!0), _(fe, null, xe(ln.value, (t, n) => (S(), _("g", { key: t.uid }, [w(e.$slots, "datapoint", ge({ ref_for: !0 }, {
1387
+ point: t,
1388
+ onPointEnter: bn,
1389
+ onPointLeave: xn,
1390
+ onPointClick: Cn,
1391
+ highlighted: q.value === t.uid
1392
+ }), () => [v("circle", {
1393
+ class: _e({
1394
+ "vue-ui-geo-point": !0,
1395
+ "vue-ui-geo-point-with-event": Sn.value && ot.value
1396
+ }),
1397
+ cx: t.x,
1398
+ cy: t.y,
1399
+ r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
1400
+ fill: t.fill,
1401
+ stroke: wn.value.stroke,
1402
+ "stroke-width": wn.value.strokeWidth,
1403
+ "vector-effect": "non-scaling-stroke",
1404
+ onMouseenter: (e) => bn(t, n),
1405
+ onMouseleave: (e) => xn(t),
1406
+ onClick: (e) => Cn(t)
1407
+ }, null, 42, Pe)], !0), L.value.style.chart.points.labels.show ? (S(), _("text", {
1408
+ key: 0,
1409
+ class: "vue-ui-geo-point-label",
1410
+ x: t.x,
1411
+ y: t.y + (q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) + L.value.style.chart.points.labels.offsetY + 1 * L.value.style.chart.points.labels.fontSizeRatio,
1412
+ "text-anchor": "middle",
1413
+ fill: L.value.style.chart.points.labels.color,
1414
+ "font-size": 1 * L.value.style.chart.points.labels.fontSizeRatio
1415
+ }, Se(t.name), 9, Fe)) : g("", !0)]))), 128)),
1416
+ w(e.$slots, "svg", { svg: {
1417
+ drawingArea: nn.value,
1418
+ x: Ut.value?.minX ?? 0,
1419
+ y: Ut.value?.minY ?? 0,
1420
+ width: Ut.value?.width ?? 0,
1421
+ height: Ut.value?.height ?? 0,
1422
+ isPrintingImg: T(ft) || T(pt) || Ye.value,
1423
+ isPrintingSvg: Xe.value,
1424
+ data: {
1425
+ areaPaths: Rt.value,
1426
+ linePaths: zt.value,
1427
+ geoJsonPoints: Bt.value,
1428
+ projectedPoints: ln.value
1429
+ }
1430
+ } }, void 0, !0)
1431
+ ], 12, Ae)], 44, ke)), e.$slots.hint ? (S(), _("div", Ie, [w(e.$slots, "hint", x(y({
1432
+ hint: L.value.a11y.translations.keyboardNavigation,
1433
+ isVisible: rt.value
1434
+ })), void 0, !0)])) : g("", !0)]),
1435
+ e.$slots.watermark ? (S(), _("div", Le, [w(e.$slots, "watermark", x(y({ isPrinting: T(ft) || T(pt) || Ye.value || Xe.value })), void 0, !0)])) : g("", !0),
1436
+ L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !T(ut) ? (S(), h(le, {
1437
+ key: 7,
1438
+ ref_key: "zoomControlsBottom",
1439
+ ref: tt,
1440
+ config: L.value,
1441
+ scale: T(Xt),
1442
+ isFullscreen: I.value,
1443
+ isCursorPointer: ot.value,
1444
+ onZoomIn: rn,
1445
+ onZoomOut: an,
1446
+ onResetZoom: on
1447
+ }, null, 8, [
1448
+ "config",
1449
+ "scale",
1450
+ "isFullscreen",
1451
+ "isCursorPointer"
1452
+ ])) : g("", !0),
1453
+ me(T(ze), {
1454
+ teleportTo: L.value.style.chart.tooltip.teleportTo,
1455
+ show: bt.value.showTooltip && dn.value,
1456
+ backgroundColor: L.value.style.chart.tooltip.backgroundColor,
1457
+ color: L.value.style.chart.tooltip.color,
1458
+ fontSize: L.value.style.chart.tooltip.fontSize,
1459
+ borderRadius: L.value.style.chart.tooltip.borderRadius,
1460
+ borderColor: L.value.style.chart.tooltip.borderColor,
1461
+ borderWidth: L.value.style.chart.tooltip.borderWidth,
1462
+ backgroundOpacity: L.value.style.chart.tooltip.backgroundOpacity,
1463
+ position: L.value.style.chart.tooltip.position,
1464
+ offsetX: L.value.style.chart.tooltip.offsetX,
1465
+ offsetY: L.value.style.chart.tooltip.offsetY,
1466
+ parent: k.value,
1467
+ content: fn.value,
1468
+ isCustom: K.value,
1469
+ isFullscreen: I.value,
1470
+ smooth: L.value.style.chart.tooltip.smooth,
1471
+ backdropFilter: L.value.style.chart.tooltip.backdropFilter,
1472
+ smoothForce: L.value.style.chart.tooltip.smoothForce,
1473
+ smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
1474
+ isA11yMode: F.value === "keyboard",
1475
+ a11yPosition: nt.value
1476
+ }, {
1477
+ "tooltip-before": E(() => [w(e.$slots, "tooltip-before", x(y({ ...j.value })), void 0, !0)]),
1478
+ tooltip: E(() => [w(e.$slots, "tooltip", x(y({ ...j.value })), void 0, !0)]),
1479
+ "tooltip-after": E(() => [w(e.$slots, "tooltip-after", x(y({ ...j.value })), void 0, !0)]),
1480
+ _: 3
1481
+ }, 8, [
1482
+ "teleportTo",
1483
+ "show",
1484
+ "backgroundColor",
1485
+ "color",
1486
+ "fontSize",
1487
+ "borderRadius",
1488
+ "borderColor",
1489
+ "borderWidth",
1490
+ "backgroundOpacity",
1491
+ "position",
1492
+ "offsetX",
1493
+ "offsetY",
1494
+ "parent",
1495
+ "content",
1496
+ "isCustom",
1497
+ "isFullscreen",
1498
+ "smooth",
1499
+ "backdropFilter",
1500
+ "smoothForce",
1501
+ "smoothSnapThreshold",
1502
+ "isA11yMode",
1503
+ "a11yPosition"
1504
+ ]),
1505
+ e.$slots.source ? (S(), _("div", {
1506
+ key: 8,
1507
+ ref_key: "source",
1508
+ ref: $e,
1509
+ dir: "auto"
1510
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1511
+ w(e.$slots, "skeleton", {}, () => [T(ut) ? (S(), h(u, { key: 0 })) : g("", !0)], !0)
1512
+ ], 14, Ee));
1513
+ }
1514
+ }, [["__scopeId", "data-v-53beeded"]]);
1515
+ //#endregion
1516
+ export { Te as n, ze as t };