vue-data-ui 3.19.9 → 3.20.1

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/package.json +120 -120
  2. package/dist/A11yDataTable-q2-8fSlJ.js +0 -45
  3. package/dist/Arrow-Cj6W6Xbi.js +0 -116
  4. package/dist/BaseDraggableDialog-DUUu2E2Q.js +0 -272
  5. package/dist/BaseIcon-DM1x8hQF.js +0 -502
  6. package/dist/BaseLegendToggle-CJTwLGXL.js +0 -56
  7. package/dist/BaseScanner-C7dmAref.js +0 -27
  8. package/dist/BaseZoomControls-BkajQ8q9.js +0 -111
  9. package/dist/ColorPicker-DTQeqKUV.js +0 -255
  10. package/dist/DataTable-DmE8Oo4i.js +0 -150
  11. package/dist/Legend-Gg5Q4Clb.js +0 -114
  12. package/dist/NonSvgPenAndPaper-tvWXeCsd.js +0 -577
  13. package/dist/PackageVersion-Dl9W5zJD.js +0 -11
  14. package/dist/PenAndPaper-DNgm6y3l.js +0 -461
  15. package/dist/RecursiveCircles-DPpLel6f.js +0 -117
  16. package/dist/RecursiveLabels-DBMJf_to.js +0 -56
  17. package/dist/RecursiveLinks-D06dBL4a.js +0 -78
  18. package/dist/Shape-DEGOZ6GG.js +0 -141
  19. package/dist/Slicer-CPWGgGSp.js +0 -1144
  20. package/dist/SlicerPreview-BU3ZeHjR.js +0 -1555
  21. package/dist/SparkTooltip-c2DL7gqD.js +0 -93
  22. package/dist/Title-__gWq2g6.js +0 -87
  23. package/dist/Tooltip-CuWEYGr3.js +0 -312
  24. package/dist/UserOptions-D7zR0tnR.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +0 -8
  26. package/dist/canvas-lib-DTaADQOK.js +0 -79
  27. package/dist/components/arrow.js +0 -2
  28. package/dist/components/vue-ui-3d-bar.js +0 -2
  29. package/dist/components/vue-ui-accordion.js +0 -2
  30. package/dist/components/vue-ui-age-pyramid.js +0 -2
  31. package/dist/components/vue-ui-annotator.js +0 -2
  32. package/dist/components/vue-ui-bullet.js +0 -2
  33. package/dist/components/vue-ui-bump.js +0 -2
  34. package/dist/components/vue-ui-candlestick.js +0 -2
  35. package/dist/components/vue-ui-carousel-table.js +0 -2
  36. package/dist/components/vue-ui-chestnut.js +0 -2
  37. package/dist/components/vue-ui-chord.js +0 -2
  38. package/dist/components/vue-ui-circle-pack.js +0 -2
  39. package/dist/components/vue-ui-cursor.js +0 -2
  40. package/dist/components/vue-ui-dag.js +0 -2
  41. package/dist/components/vue-ui-dashboard.js +0 -2
  42. package/dist/components/vue-ui-digits.js +0 -2
  43. package/dist/components/vue-ui-donut-evolution.js +0 -2
  44. package/dist/components/vue-ui-donut.js +0 -2
  45. package/dist/components/vue-ui-dumbbell.js +0 -2
  46. package/dist/components/vue-ui-flow.js +0 -2
  47. package/dist/components/vue-ui-funnel.js +0 -2
  48. package/dist/components/vue-ui-galaxy.js +0 -2
  49. package/dist/components/vue-ui-gauge.js +0 -2
  50. package/dist/components/vue-ui-geo.js +0 -2
  51. package/dist/components/vue-ui-gizmo.js +0 -2
  52. package/dist/components/vue-ui-heatmap.js +0 -2
  53. package/dist/components/vue-ui-history-plot.js +0 -2
  54. package/dist/components/vue-ui-horizontal-bar.js +0 -2
  55. package/dist/components/vue-ui-icon.js +0 -2
  56. package/dist/components/vue-ui-kpi.js +0 -2
  57. package/dist/components/vue-ui-mini-loader.js +0 -2
  58. package/dist/components/vue-ui-molecule.js +0 -2
  59. package/dist/components/vue-ui-mood-radar.js +0 -2
  60. package/dist/components/vue-ui-nested-donuts.js +0 -2
  61. package/dist/components/vue-ui-onion.js +0 -2
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
  63. package/dist/components/vue-ui-pattern-seed.js +0 -2
  64. package/dist/components/vue-ui-pattern.js +0 -2
  65. package/dist/components/vue-ui-quadrant.js +0 -2
  66. package/dist/components/vue-ui-quick-chart.js +0 -2
  67. package/dist/components/vue-ui-radar.js +0 -2
  68. package/dist/components/vue-ui-rating.js +0 -2
  69. package/dist/components/vue-ui-relation-circle.js +0 -2
  70. package/dist/components/vue-ui-ridgeline.js +0 -2
  71. package/dist/components/vue-ui-rings.js +0 -2
  72. package/dist/components/vue-ui-scatter.js +0 -2
  73. package/dist/components/vue-ui-skeleton.js +0 -2
  74. package/dist/components/vue-ui-smiley.js +0 -2
  75. package/dist/components/vue-ui-spark-trend.js +0 -2
  76. package/dist/components/vue-ui-sparkbar.js +0 -2
  77. package/dist/components/vue-ui-sparkgauge.js +0 -2
  78. package/dist/components/vue-ui-sparkhistogram.js +0 -2
  79. package/dist/components/vue-ui-sparkline.js +0 -2
  80. package/dist/components/vue-ui-sparkstackbar.js +0 -2
  81. package/dist/components/vue-ui-stackbar.js +0 -2
  82. package/dist/components/vue-ui-stackline.js +0 -2
  83. package/dist/components/vue-ui-strip-plot.js +0 -2
  84. package/dist/components/vue-ui-table-heatmap.js +0 -2
  85. package/dist/components/vue-ui-table-sparkline.js +0 -2
  86. package/dist/components/vue-ui-table.js +0 -2
  87. package/dist/components/vue-ui-thermometer.js +0 -2
  88. package/dist/components/vue-ui-timer.js +0 -2
  89. package/dist/components/vue-ui-tiremarks.js +0 -2
  90. package/dist/components/vue-ui-treemap.js +0 -2
  91. package/dist/components/vue-ui-vertical-bar.js +0 -2
  92. package/dist/components/vue-ui-waffle.js +0 -2
  93. package/dist/components/vue-ui-wheel.js +0 -2
  94. package/dist/components/vue-ui-word-cloud.js +0 -2
  95. package/dist/components/vue-ui-world.js +0 -2
  96. package/dist/components/vue-ui-xy-canvas.js +0 -2
  97. package/dist/components/vue-ui-xy.js +0 -2
  98. package/dist/dom-to-png-9WSt6hXe.js +0 -237
  99. package/dist/exposedLib-CwWU4zv-.js +0 -19
  100. package/dist/geoProjections-CQIkC70z.js +0 -146
  101. package/dist/img-BjOr008R.js +0 -74
  102. package/dist/labelUtils-Cr97N8E1.js +0 -19
  103. package/dist/lib-BkiwukKO.js +0 -1879
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-B7BWu5bV.js +0 -258
  106. package/dist/pdf-DSXSFUnK.js +0 -90
  107. package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
  108. package/dist/style.css +0 -2
  109. package/dist/types/arrow.d.ts +0 -4
  110. package/dist/types/utils.d.ts +0 -551
  111. package/dist/types/vue-data-ui.d.ts +0 -15826
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -78
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -95
  115. package/dist/types/vue-ui-annotator.d.ts +0 -12
  116. package/dist/types/vue-ui-bullet.d.ts +0 -72
  117. package/dist/types/vue-ui-bump.d.ts +0 -77
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -93
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -46
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -79
  121. package/dist/types/vue-ui-chord.d.ts +0 -91
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -111
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -106
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -53
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -81
  128. package/dist/types/vue-ui-donut.d.ts +0 -106
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -79
  130. package/dist/types/vue-ui-flow.d.ts +0 -93
  131. package/dist/types/vue-ui-funnel.d.ts +0 -66
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -97
  133. package/dist/types/vue-ui-gauge.d.ts +0 -76
  134. package/dist/types/vue-ui-geo.d.ts +0 -81
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -86
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -97
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -99
  139. package/dist/types/vue-ui-icon.d.ts +0 -15
  140. package/dist/types/vue-ui-kpi.d.ts +0 -25
  141. package/dist/types/vue-ui-mini-loader.d.ts +0 -15
  142. package/dist/types/vue-ui-molecule.d.ts +0 -97
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -79
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -94
  145. package/dist/types/vue-ui-onion.d.ts +0 -91
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -108
  147. package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
  148. package/dist/types/vue-ui-pattern.d.ts +0 -15
  149. package/dist/types/vue-ui-quadrant.d.ts +0 -102
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -89
  151. package/dist/types/vue-ui-radar.d.ts +0 -101
  152. package/dist/types/vue-ui-rating.d.ts +0 -31
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -79
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -85
  155. package/dist/types/vue-ui-rings.d.ts +0 -83
  156. package/dist/types/vue-ui-scatter.d.ts +0 -82
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -12
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -36
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -33
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -44
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -45
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -97
  166. package/dist/types/vue-ui-stackline.d.ts +0 -93
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -81
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -40
  170. package/dist/types/vue-ui-table.d.ts +0 -25
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -57
  172. package/dist/types/vue-ui-timer.d.ts +0 -36
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -57
  174. package/dist/types/vue-ui-treemap.d.ts +0 -87
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -86
  177. package/dist/types/vue-ui-wheel.d.ts +0 -57
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -84
  179. package/dist/types/vue-ui-world.d.ts +0 -81
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -84
  181. package/dist/types/vue-ui-xy.d.ts +0 -125
  182. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +0 -50
  183. package/dist/useChartAccessibility-Do37qcw2.js +0 -12
  184. package/dist/useConfig-ByaaSKhz.js +0 -7471
  185. package/dist/useFitSvgText-C-MEdAfe.js +0 -63
  186. package/dist/useNestedProp-Ck4hsrpu.js +0 -10
  187. package/dist/useObjectBindings-BR1sGimd.js +0 -189
  188. package/dist/usePanZoom-B-4M_gmY.js +0 -157
  189. package/dist/usePrefersMotion-BywLbIko.js +0 -15
  190. package/dist/usePrinter-X0yWOynH.js +0 -49
  191. package/dist/useResponsive-CrAInupd.js +0 -19
  192. package/dist/useStableElementSize-0I1IpHPl.js +0 -77
  193. package/dist/useSvgExport-Dtu973wa.js +0 -755
  194. package/dist/useTableResponsive-DrM1xqII.js +0 -24
  195. package/dist/useThemeCheck-rFK9Zlb_.js +0 -24
  196. package/dist/useTimeLabelCollider-Dm55Emzg.js +0 -57
  197. package/dist/useTimeLabels-C0x7zUXP.js +0 -272
  198. package/dist/useUserOptionState-CjPJPTg2.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-CbX_bC9A.js +0 -13
  201. package/dist/vue-data-ui-nsosW-n5.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-CTvvvgBE.js +0 -1757
  204. package/dist/vue-ui-accordion-BX9WL-QF.js +0 -81
  205. package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
  206. package/dist/vue-ui-annotator-Be3VpH8Z.js +0 -2899
  207. package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
  208. package/dist/vue-ui-bump-LQuPTOlm.js +0 -1249
  209. package/dist/vue-ui-candlestick-BeO06tlH.js +0 -1826
  210. package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
  211. package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
  212. package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
  213. package/dist/vue-ui-circle-pack-DyTYvEg3.js +0 -1608
  214. package/dist/vue-ui-cursor-C5_wkWul.js +0 -283
  215. package/dist/vue-ui-dag-mH0baWM3.js +0 -2909
  216. package/dist/vue-ui-dashboard-F7pEuJDh.js +0 -513
  217. package/dist/vue-ui-digits-BYBtwXy_.js +0 -209
  218. package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-C46h0gLy.js +0 -1510
  220. package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
  221. package/dist/vue-ui-flow-BYYyk5KL.js +0 -1235
  222. package/dist/vue-ui-funnel-BfY509t-.js +0 -777
  223. package/dist/vue-ui-galaxy-D061gTYS.js +0 -1077
  224. package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
  225. package/dist/vue-ui-geo-BwOMFUVr.js +0 -1516
  226. package/dist/vue-ui-gizmo-CQsP8Nd3.js +0 -225
  227. package/dist/vue-ui-heatmap-DOsulVoP.js +0 -1568
  228. package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
  229. package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
  230. package/dist/vue-ui-kpi-CE-JFZ1o.js +0 -96
  231. package/dist/vue-ui-mini-loader-DDJUya9e.js +0 -125
  232. package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
  233. package/dist/vue-ui-mood-radar-B29gVcTN.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
  235. package/dist/vue-ui-onion-MN-PjNJq.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C9zU7MP5.js +0 -1421
  237. package/dist/vue-ui-pattern-Bj-IPFr2.js +0 -154
  238. package/dist/vue-ui-pattern-seed-abRweCDE.js +0 -61
  239. package/dist/vue-ui-quadrant-h-QFG9O4.js +0 -1978
  240. package/dist/vue-ui-quick-chart-PAVz4c9z.js +0 -2469
  241. package/dist/vue-ui-radar-D2pVd53z.js +0 -1229
  242. package/dist/vue-ui-rating-D_QR_A3V.js +0 -343
  243. package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
  244. package/dist/vue-ui-ridgeline-DamvqiyJ.js +0 -1622
  245. package/dist/vue-ui-rings-DkHS5dwd.js +0 -1246
  246. package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
  247. package/dist/vue-ui-skeleton-zhkS1cmh.js +0 -2556
  248. package/dist/vue-ui-smiley-rFdGxZK6.js +0 -356
  249. package/dist/vue-ui-spark-trend-fQ10-UvM.js +0 -438
  250. package/dist/vue-ui-sparkbar-D5toou8V.js +0 -393
  251. package/dist/vue-ui-sparkgauge-DRZcIPYf.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-YizEqFdN.js +0 -560
  253. package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
  255. package/dist/vue-ui-stackbar-BFLCEsRk.js +0 -2267
  256. package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
  257. package/dist/vue-ui-strip-plot-ByaDLFSL.js +0 -1340
  258. package/dist/vue-ui-table-DuA_CfGn.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-BFKyJTr1.js +0 -344
  260. package/dist/vue-ui-table-sparkline-Dfei_QrJ.js +0 -707
  261. package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
  262. package/dist/vue-ui-timer-9LNNDl4q.js +0 -439
  263. package/dist/vue-ui-tiremarks-kF0Baqia.js +0 -552
  264. package/dist/vue-ui-treemap-BexKMBhz.js +0 -1587
  265. package/dist/vue-ui-waffle-Dq50j_uw.js +0 -1362
  266. package/dist/vue-ui-wheel-BETHlWsO.js +0 -885
  267. package/dist/vue-ui-word-cloud-D1AQtzmT.js +0 -1656
  268. package/dist/vue-ui-world-CcgbuSp_.js +0 -14264
  269. package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
  270. package/dist/vue-ui-xy-canvas-4ABYnasj.js +0 -1786
  271. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BON8QI6X.js +0 -301
  273. package/dist/vue_ui_bullet-CE5sFT7u.js +0 -186
  274. package/dist/vue_ui_bump-frnXaXul.js +0 -201
  275. package/dist/vue_ui_candlestick-sY6UtOop.js +0 -374
  276. package/dist/vue_ui_chestnut-BiUZFv40.js +0 -305
  277. package/dist/vue_ui_chord-DpyR_b9A.js +0 -275
  278. package/dist/vue_ui_circle_pack-FjH0ZQeb.js +0 -172
  279. package/dist/vue_ui_dag-Ci_MOnvd.js +0 -258
  280. package/dist/vue_ui_donut-Cx2_BGcQ.js +0 -358
  281. package/dist/vue_ui_donut_evolution-CAJefrHs.js +0 -717
  282. package/dist/vue_ui_dumbbell-CClzAZTN.js +0 -304
  283. package/dist/vue_ui_flow-CCHO1Lo9.js +0 -238
  284. package/dist/vue_ui_funnel-h8q2mRpC.js +0 -234
  285. package/dist/vue_ui_galaxy-70vtkEBw.js +0 -265
  286. package/dist/vue_ui_gauge-C17CgfzN.js +0 -178
  287. package/dist/vue_ui_geo-C0UbQ0Lc.js +0 -248
  288. package/dist/vue_ui_heatmap-BqPP3J4M.js +0 -319
  289. package/dist/vue_ui_history_plot-C5nytDHh.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +0 -341
  291. package/dist/vue_ui_molecule-Dka4JBOp.js +0 -231
  292. package/dist/vue_ui_mood_radar-Dg4ijm53.js +0 -281
  293. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +0 -273
  294. package/dist/vue_ui_onion-DTV9cup-.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +0 -278
  296. package/dist/vue_ui_quadrant-3kjYvxpj.js +0 -428
  297. package/dist/vue_ui_quick_chart--VaYQuM4.js +0 -139
  298. package/dist/vue_ui_radar-Dxx9GJmj.js +0 -306
  299. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +0 -98
  300. package/dist/vue_ui_ridgeline-CAtYca4b.js +0 -767
  301. package/dist/vue_ui_rings-DXC1VeX5.js +0 -320
  302. package/dist/vue_ui_scatter-D2S2j0ap.js +0 -479
  303. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +0 -82
  304. package/dist/vue_ui_sparkbar-BR6hbuDE.js +0 -64
  305. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +0 -123
  307. package/dist/vue_ui_sparkline-wgk7yO7E.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +0 -175
  309. package/dist/vue_ui_stackbar-BW_C3MXw.js +0 -412
  310. package/dist/vue_ui_stackline-DXxzibUd.js +0 -460
  311. package/dist/vue_ui_strip_plot-8ZelqC5b.js +0 -301
  312. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +0 -80
  313. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +0 -124
  314. package/dist/vue_ui_thermometer-CuN7Gpez.js +0 -123
  315. package/dist/vue_ui_tiremarks-A6UHC0c3.js +0 -122
  316. package/dist/vue_ui_treemap-BQp06q-g.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +0 -247
  318. package/dist/vue_ui_waffle-C_Ev4l7B.js +0 -292
  319. package/dist/vue_ui_wheel-DdkTPXJU.js +0 -133
  320. package/dist/vue_ui_word_cloud-B1PbsYPc.js +0 -254
  321. package/dist/vue_ui_xy-BYPqfYyx.js +0 -482
  322. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +0 -408
@@ -1,1516 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { H as t, It as n, pt as r, t as i, y as a, zt as o } from "./lib-BkiwukKO.js";
3
- import { t as s } from "./useConfig-ByaaSKhz.js";
4
- import { t as c } from "./usePrinter-X0yWOynH.js";
5
- import { n as l, t as u } from "./BaseScanner-C7dmAref.js";
6
- import { t as d } from "./useSvgExport-Dtu973wa.js";
7
- import { t as f } from "./useNestedProp-Ck4hsrpu.js";
8
- import { t as p } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as ee } from "./img-BjOr008R.js";
10
- import { n as te } from "./Title-__gWq2g6.js";
11
- import { t as ne } from "./_plugin-vue_export-helper-Dq1MygBL.js";
12
- import { c as re } from "./canvas-lib-DTaADQOK.js";
13
- import { t as ie } from "./useResponsive-CrAInupd.js";
14
- import { t as ae } from "./A11yDataTable-q2-8fSlJ.js";
15
- import { t as oe } from "./useUserOptionState-CjPJPTg2.js";
16
- import { t as se } from "./useChartAccessibility-Do37qcw2.js";
17
- import { t as ce } from "./usePanZoom-B-4M_gmY.js";
18
- import { t as le } from "./BaseZoomControls-BkajQ8q9.js";
19
- import { t as ue } from "./geoProjections-CQIkC70z.js";
20
- import { t as de } from "./vue_ui_geo-C0UbQ0Lc.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-CuWEYGr3.js")), Be = he(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Ve = he(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), He = he(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), D = e, Ue = Te, { vue_ui_geo: We } = s(), { isThemeValid: Ge, warnInvalidTheme: Ke } = p(), O = C(t()), 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(() => o({
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: o({
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, o = 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() ? a(String(r).trim()) : L.value.style.chart.points.fill,
539
- stroke: i != null && String(i).trim() ? a(String(i).trim()) : L.value.style.chart.points.stroke,
540
- strokeWidth: Number.isFinite(Number(o)) ? Number(o) : 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 ? a(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), r = n(t.x, t.y, R.value);
781
- r && (nt.value = {
782
- x: r.x,
783
- y: r.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 (r(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 (r(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(i),
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 };