vue-data-ui 3.25.5 → 3.25.6

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,1967 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Ct as n, D as r, Dt as i, G as a, Lt as o, Pt as ee, S as te, Ut as s, Wt as ne, X as c, Yt as re, Zt as ie, i as l, lt as ae, nt as oe, q as se, r as ce, t as le, w as ue, yt as de } from "./lib-Dql7cqyA.js";
3
+ import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as me } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as he } from "./usePrinter-DISD7q5m.js";
6
+ import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ve } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as be } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as xe } from "./img-DhGApYG0.js";
11
+ import { n as Se } from "./Title-CPHi-evi.js";
12
+ import { t as Ce } from "./Shape-CIqU-p2F.js";
13
+ import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as De } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as Oe } from "./BaseLegendToggle-CXQrLjd-.js";
17
+ import { t as ke } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as je } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Me } from "./Legend-X4kF4PvW.js";
21
+ import { t as Ne } from "./vue_ui_quadrant-CDSTKTJz.js";
22
+ import { Fragment as u, Teleport as Pe, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Re, nextTick as ze, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Be, onMounted as Ve, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as T, toRefs as We, unref as E, watch as Ge, withCtx as D } from "vue";
23
+ //#region src/components/vue-ui-quadrant.vue
24
+ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
25
+ "xmlns",
26
+ "aria-describedby",
27
+ "viewBox",
28
+ "id"
29
+ ], Qe = [
30
+ "x",
31
+ "y",
32
+ "width",
33
+ "height"
34
+ ], $e = { key: 1 }, et = [
35
+ "fill",
36
+ "x",
37
+ "y",
38
+ "height",
39
+ "width",
40
+ "stroke-width",
41
+ "stroke",
42
+ "rx"
43
+ ], tt = [
44
+ "x1",
45
+ "y1",
46
+ "x2",
47
+ "y2",
48
+ "stroke",
49
+ "stroke-width"
50
+ ], nt = [
51
+ "x1",
52
+ "y1",
53
+ "x2",
54
+ "y2",
55
+ "stroke",
56
+ "stroke-width"
57
+ ], rt = { key: 2 }, it = ["points", "fill"], at = ["points", "fill"], ot = ["points", "fill"], st = ["points", "fill"], ct = { key: 3 }, lt = [
58
+ "y",
59
+ "fill",
60
+ "font-size"
61
+ ], ut = [
62
+ "x",
63
+ "y",
64
+ "fill",
65
+ "font-size"
66
+ ], dt = [
67
+ "x",
68
+ "y",
69
+ "fill",
70
+ "font-size"
71
+ ], ft = [
72
+ "y",
73
+ "fill",
74
+ "font-size"
75
+ ], pt = { key: 4 }, mt = [
76
+ "x",
77
+ "y",
78
+ "font-size",
79
+ "fill"
80
+ ], ht = [
81
+ "x",
82
+ "y",
83
+ "font-size",
84
+ "fill"
85
+ ], gt = [
86
+ "x",
87
+ "y",
88
+ "font-size",
89
+ "fill"
90
+ ], _t = [
91
+ "id",
92
+ "font-size",
93
+ "transform",
94
+ "fill"
95
+ ], vt = [
96
+ "id",
97
+ "font-size",
98
+ "transform",
99
+ "fill"
100
+ ], yt = [
101
+ "id",
102
+ "font-size",
103
+ "transform",
104
+ "fill"
105
+ ], bt = { key: 5 }, xt = ["fill", "points"], St = [
106
+ "x",
107
+ "y",
108
+ "width",
109
+ "height"
110
+ ], Ct = [
111
+ "x",
112
+ "y",
113
+ "width",
114
+ "height"
115
+ ], wt = [
116
+ "x",
117
+ "y",
118
+ "width",
119
+ "height"
120
+ ], Tt = [
121
+ "x",
122
+ "y",
123
+ "width",
124
+ "height"
125
+ ], Et = [
126
+ "x",
127
+ "y",
128
+ "onMouseenter",
129
+ "onMouseleave",
130
+ "onClick"
131
+ ], Dt = [
132
+ "data-a11y-plot-id",
133
+ "cx",
134
+ "cy",
135
+ "r"
136
+ ], Ot = [
137
+ "data-a11y-plot-id",
138
+ "cx",
139
+ "cy",
140
+ "r"
141
+ ], kt = {
142
+ key: 0,
143
+ style: { "pointer-events": "none" }
144
+ }, At = [
145
+ "x",
146
+ "y",
147
+ "font-size",
148
+ "fill"
149
+ ], jt = [
150
+ "x",
151
+ "y",
152
+ "font-size",
153
+ "fill",
154
+ "innerHTML"
155
+ ], Mt = { key: 0 }, Nt = [
156
+ "x",
157
+ "y",
158
+ "onMouseover",
159
+ "onMouseleave",
160
+ "onClick"
161
+ ], Pt = {
162
+ key: 8,
163
+ class: "vue-ui-dna"
164
+ }, Ft = ["points", "fill"], It = ["points", "fill"], Lt = ["points", "fill"], Rt = ["points", "fill"], zt = { key: 9 }, Bt = [
165
+ "x",
166
+ "y",
167
+ "font-size",
168
+ "fill",
169
+ "font-weight"
170
+ ], Vt = { key: 10 }, Ht = [
171
+ "x",
172
+ "y",
173
+ "fill"
174
+ ], Ut = [
175
+ "x",
176
+ "y",
177
+ "fill"
178
+ ], Wt = [
179
+ "x",
180
+ "y",
181
+ "fill"
182
+ ], Gt = [
183
+ "x",
184
+ "y",
185
+ "fill"
186
+ ], Kt = ["stroke", "d"], qt = ["stroke", "d"], Jt = {
187
+ key: 0,
188
+ style: {
189
+ position: "absolute",
190
+ top: "100%",
191
+ left: "0",
192
+ width: "100%"
193
+ },
194
+ "data-dom-to-png-ignore": "",
195
+ "aria-hidden": "true"
196
+ }, Yt = {
197
+ key: 5,
198
+ class: "vue-data-ui-watermark"
199
+ }, Xt = ["id"], Zt = ["onClick"], Qt = {
200
+ key: 0,
201
+ height: "14",
202
+ width: "14",
203
+ viewBox: "0 0 20 20"
204
+ }, $t = ["innerHTML"], en = /*#__PURE__*/ we({
205
+ __name: "vue-ui-quadrant",
206
+ props: {
207
+ config: {
208
+ type: Object,
209
+ default() {
210
+ return {};
211
+ }
212
+ },
213
+ dataset: {
214
+ type: Array,
215
+ default() {
216
+ return [];
217
+ }
218
+ }
219
+ },
220
+ emits: [
221
+ "selectPlot",
222
+ "selectSide",
223
+ "selectLegend",
224
+ "copyAlt"
225
+ ],
226
+ setup(e, { expose: we, emit: Ke }) {
227
+ let en = g(() => import("./Tooltip-hhrkQ3Lk.js")), tn = g(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), nn = g(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), rn = g(() => import("./DataTable-oiM9uWrQ.js")), an = g(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), on = g(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), sn = g(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), cn = g(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_quadrant: ln } = me(), { isThemeValid: un, warnInvalidTheme: dn } = ye(), O = e, fn = d(() => !!O.dataset && O.dataset.length), k = S(se()), pn = Ke, mn = S(!1), hn = S(""), gn = S(0), A = S(!1), j = S(null), _n = S(null), vn = S(null), yn = S(null), bn = S(null), xn = S(0), Sn = S(0), Cn = S(0), wn = S(!1), Tn = S(null), En = S(null), Dn = S(null), On = S(null), kn = S({
228
+ x: 0,
229
+ y: 0
230
+ }), An = S("pointer"), jn = S(!1), M = S(Rn()), N = d(() => M.value.userOptions), P = d(() => M.value.style.chart.layout.grid), F = d(() => M.value.style.chart.layout.labels), I = d(() => M.value.style.chart.tooltip), L = d(() => M.value.style.chart);
231
+ fe({
232
+ config: () => M.value,
233
+ dataset: () => O.dataset,
234
+ component: "VueUiQuadrant",
235
+ rules: [pe.emptyArray, pe.noHint]
236
+ });
237
+ let R = d(() => M.value.userOptions.useCursorPointer), Mn = d(() => ({
238
+ defaultConfig: {
239
+ userOptions: { show: !1 },
240
+ table: { show: !1 },
241
+ style: { chart: {
242
+ backgroundColor: "#99999930",
243
+ layout: {
244
+ grid: {
245
+ stroke: "#6A6A6A",
246
+ graduations: {
247
+ stroke: "#6A6A6A",
248
+ color: "#6A6A6A90"
249
+ },
250
+ xAxis: { auto: !0 },
251
+ yAxis: { auto: !0 }
252
+ },
253
+ labels: {
254
+ quadrantLabels: { show: !1 },
255
+ plotLabels: { show: !1 },
256
+ axisLabels: { show: !1 }
257
+ },
258
+ plots: { outlineColor: "#6A6A6A" }
259
+ },
260
+ legend: { backgroundColor: "transparent" }
261
+ } }
262
+ },
263
+ userConfig: M.value.skeletonConfig ?? {}
264
+ })), { loading: Nn, FINAL_DATASET: Pn } = ge({
265
+ ...We(O),
266
+ FINAL_CONFIG: M,
267
+ prepareConfig: Rn,
268
+ callback: () => {
269
+ Promise.resolve().then(async () => {
270
+ await ze(), V.value.showTable = M.value.table.show;
271
+ });
272
+ },
273
+ skeletonDataset: O.config?.skeletonDataset ?? [{
274
+ name: "_",
275
+ shape: "circle",
276
+ color: "#CACACA",
277
+ series: [
278
+ {
279
+ name: "_",
280
+ x: -6,
281
+ y: -4
282
+ },
283
+ {
284
+ name: "_",
285
+ x: -5,
286
+ y: -2
287
+ },
288
+ {
289
+ name: "_",
290
+ x: -4,
291
+ y: -1
292
+ },
293
+ {
294
+ name: "_",
295
+ x: -3,
296
+ y: -.5
297
+ },
298
+ {
299
+ name: "_",
300
+ x: -2,
301
+ y: -.25
302
+ },
303
+ {
304
+ name: "_",
305
+ x: -1,
306
+ y: -.135
307
+ },
308
+ {
309
+ name: "_",
310
+ x: 0,
311
+ y: 0
312
+ },
313
+ {
314
+ name: "_",
315
+ x: 1,
316
+ y: .135
317
+ },
318
+ {
319
+ name: "_",
320
+ x: 2,
321
+ y: .25
322
+ },
323
+ {
324
+ name: "_",
325
+ x: 3,
326
+ y: .5
327
+ },
328
+ {
329
+ name: "_",
330
+ x: 4,
331
+ y: 1
332
+ },
333
+ {
334
+ name: "_",
335
+ x: 5,
336
+ y: 2
337
+ },
338
+ {
339
+ name: "_",
340
+ x: 6,
341
+ y: 4
342
+ }
343
+ ]
344
+ }],
345
+ skeletonConfig: ie({
346
+ defaultConfig: M.value,
347
+ userConfig: Mn.value
348
+ })
349
+ }), { userOptionsVisible: Fn, setUserOptionsVisibility: In, keepUserOptionState: Ln } = Ae({ config: M.value }), { svgRef: z } = je({ config: L.value.title });
350
+ function Rn() {
351
+ let e = ve({
352
+ userConfig: O.config,
353
+ defaultConfig: ln
354
+ }), t = e.theme;
355
+ if (!t) return e;
356
+ if (!un.value(e)) return dn(e), e;
357
+ let n = ve({
358
+ userConfig: Ne[t] || O.config,
359
+ defaultConfig: e
360
+ }), r = ve({
361
+ userConfig: O.config,
362
+ defaultConfig: n
363
+ });
364
+ return {
365
+ ...r,
366
+ customPalette: r.customPalette.length ? r.customPalette : re[t] || o
367
+ };
368
+ }
369
+ Ge(() => O.config, (e) => {
370
+ M.value = Rn(), Fn.value = !M.value.userOptions.showOnChartHover, Vn(), xn.value += 1, Sn.value += 1, Cn.value += 1, V.value.plotLabels.show = F.value.plotLabels.show, V.value.showTable = M.value.table.show, V.value.showTooltip = I.value.show;
371
+ }, { deep: !0 });
372
+ let B = Ue(null), zn = Ue(null), Bn = d(() => M.value.debug);
373
+ function Vn() {
374
+ if (ee(O.dataset) ? oe({
375
+ componentName: "VueUiQuadrant",
376
+ type: "dataset",
377
+ debug: Bn.value
378
+ }) : Bn.value && O.dataset.forEach((e, t) => {
379
+ [null, void 0].includes(e.name) && oe({
380
+ componentName: "VueUiQuadrant",
381
+ type: "datasetSerieAttribute",
382
+ property: "name",
383
+ index: t
384
+ }), [null, void 0].includes(e.series) ? oe({
385
+ componentName: "VueUiQuadrant",
386
+ type: "datasetSerieAttribute",
387
+ property: "series",
388
+ index: t
389
+ }) : e.series.forEach((e, t) => {
390
+ [null, void 0].includes(e.name) && oe({
391
+ componentName: "VueUiQuadrant",
392
+ type: "datasetSerieAttribute",
393
+ property: "name",
394
+ key: "series",
395
+ index: t
396
+ });
397
+ });
398
+ }), M.value.responsive) {
399
+ let e = Te(() => {
400
+ let { width: e, height: t } = Ee({
401
+ chart: j.value,
402
+ title: L.value.title.text ? _n.value : null,
403
+ legend: L.value.legend.show ? vn.value : null,
404
+ source: yn.value,
405
+ noTitle: bn.value
406
+ });
407
+ H.value = 48, requestAnimationFrame(() => {
408
+ U.value.height = t, U.value.usableHeight = t - H.value * 2, U.value.width = e, U.value.usableWidth = e - H.value * 2, U.value.top = H.value, U.value.left = H.value, U.value.right = e - H.value, U.value.bottom = t - H.value, U.value.centerX = e / 2, U.value.centerY = t - t / 2, U.value.padding = H.value;
409
+ });
410
+ });
411
+ B.value && (zn.value && B.value.unobserve(zn.value), B.value.disconnect()), B.value = new ResizeObserver(e), zn.value = j.value.parentNode, B.value.observe(zn.value);
412
+ }
413
+ }
414
+ Ve(() => {
415
+ wn.value = !0, Vn();
416
+ }), Be(() => {
417
+ B.value && (zn.value && B.value.unobserve(zn.value), B.value.disconnect());
418
+ });
419
+ let { isPrinting: Hn, isImaging: Un, generatePdf: Wn, generateImage: Gn } = he({
420
+ elementId: `vue-ui-quadrant_${k.value}`,
421
+ fileName: L.value.title.text || "vue-ui-quadrant",
422
+ options: M.value.userOptions.print
423
+ }), Kn = d(() => M.value.userOptions.show && !L.value.title.text), qn = d(() => ue(M.value.customPalette)), V = S({
424
+ plotLabels: { show: F.value.plotLabels.show },
425
+ showTable: M.value.table.show,
426
+ showTooltip: I.value.show
427
+ }), H = S(48), U = S({
428
+ height: L.value.height,
429
+ usableHeight: L.value.height - H.value * 2,
430
+ width: L.value.width,
431
+ usableWidth: L.value.width - H.value * 2,
432
+ top: H.value,
433
+ left: H.value,
434
+ right: L.value.width - H.value,
435
+ bottom: L.value.height - H.value,
436
+ centerX: L.value.width / 2,
437
+ centerY: L.value.height - L.value.height / 2,
438
+ padding: H.value
439
+ }), W = S({
440
+ ...JSON.parse(JSON.stringify(U.value)),
441
+ startX: 0,
442
+ startY: 0
443
+ });
444
+ Ge(() => U.value, (e) => {
445
+ e && (W.value = {
446
+ ...JSON.parse(JSON.stringify(U.value)),
447
+ startX: 0,
448
+ startY: 0
449
+ });
450
+ }, { deep: !0 });
451
+ let G = S(null), Jn = d(() => {
452
+ switch (G.value) {
453
+ case "TL": return {
454
+ x: W.value.startX + W.value.width / 2,
455
+ y: W.value.height,
456
+ text: F.value.quadrantLabels.tl.text || "Top Left",
457
+ fontSize: F.value.quadrantLabels.tl.fontSize,
458
+ fill: F.value.quadrantLabels.tl.color,
459
+ bold: F.value.quadrantLabels.tl.bold
460
+ };
461
+ case "TR": return {
462
+ x: W.value.startX + W.value.width / 2,
463
+ y: W.value.height,
464
+ text: F.value.quadrantLabels.tr.text || "Top Right",
465
+ fontSize: F.value.quadrantLabels.tr.fontSize,
466
+ fill: F.value.quadrantLabels.tr.color,
467
+ bold: F.value.quadrantLabels.tr.bold
468
+ };
469
+ case "BR": return {
470
+ x: W.value.startX + W.value.width / 2,
471
+ y: W.value.height * 1.678,
472
+ text: F.value.quadrantLabels.br.text || "Bottom Right",
473
+ fontSize: F.value.quadrantLabels.br.fontSize,
474
+ fill: F.value.quadrantLabels.br.color,
475
+ bold: F.value.quadrantLabels.br.bold
476
+ };
477
+ case "BL": return {
478
+ x: W.value.startX + W.value.width / 2,
479
+ y: W.value.height * 1.678,
480
+ text: F.value.quadrantLabels.bl.text || "Bottom Left",
481
+ fontSize: F.value.quadrantLabels.bl.fontSize,
482
+ fill: F.value.quadrantLabels.bl.color,
483
+ bold: F.value.quadrantLabels.bl.bold
484
+ };
485
+ default: return {
486
+ x: 0,
487
+ y: 0,
488
+ text: "",
489
+ fontSize: 0,
490
+ fill: "none",
491
+ bold: !1
492
+ };
493
+ }
494
+ }), Yn = S(null), Xn = S(!1);
495
+ function Zn({ targetX: e, targetY: t, targetW: n, targetH: r, side: i }) {
496
+ G.value && xr(i);
497
+ let a = {
498
+ x: e - W.value.startX,
499
+ y: t - W.value.startY,
500
+ w: n - W.value.width,
501
+ h: r - W.value.height
502
+ }, o = M.value.zoomAnimationFrames, ee = 0;
503
+ function te() {
504
+ Xn.value = !0, W.value.startX += a.x / o, W.value.startY += a.y / o, W.value.width += a.w / o, W.value.height += a.h / o, ee += 1, ee < o ? Yn.value = requestAnimationFrame(te) : Xn.value = !1;
505
+ }
506
+ te();
507
+ }
508
+ let K = d(() => M.value.zoomEnabled);
509
+ function q(e) {
510
+ if (K.value && !Xn.value) {
511
+ if (A.value && G.value === e) Zn({
512
+ targetX: 0,
513
+ targetY: 0,
514
+ targetW: U.value.width,
515
+ targetH: U.value.height
516
+ }), G.value = null, A.value = !1;
517
+ else {
518
+ switch (G.value = e, e) {
519
+ case "TL":
520
+ Zn({
521
+ targetX: 0,
522
+ targetY: 0,
523
+ targetW: U.value.width / 2 + U.value.left,
524
+ targetH: U.value.height / 2 + U.value.top,
525
+ side: "tl"
526
+ });
527
+ break;
528
+ case "TR":
529
+ Zn({
530
+ targetX: U.value.width / 2 - U.value.left,
531
+ targetY: 0,
532
+ targetW: U.value.width / 2 + U.value.left,
533
+ targetH: U.value.height / 2 + U.value.top,
534
+ side: "tr"
535
+ });
536
+ break;
537
+ case "BR":
538
+ Zn({
539
+ targetX: U.value.width / 2 - U.value.left,
540
+ targetY: U.value.height / 2 - U.value.top,
541
+ targetW: U.value.width / 2 + U.value.left,
542
+ targetH: U.value.height / 2 + U.value.top,
543
+ side: "br"
544
+ });
545
+ break;
546
+ case "BL":
547
+ Zn({
548
+ targetX: 0,
549
+ targetY: U.value.height / 2 - U.value.top,
550
+ targetW: U.value.width / 2 + U.value.left,
551
+ targetH: U.value.height / 2 + U.value.top,
552
+ side: "bl"
553
+ });
554
+ break;
555
+ default: W.value.startX = 0, W.value.startY = 0, W.value.width = U.value.width, W.value.height = U.value.height;
556
+ }
557
+ A.value = !0;
558
+ }
559
+ }
560
+ }
561
+ let Qn = d(() => {
562
+ let e = P.value.graduations.steps, t = U.value.usableWidth / (e * 2), n = U.value.top, r = [];
563
+ for (let i = 0; i < e; i += 1) r.push({
564
+ x: U.value.padding + t * i,
565
+ y: n + U.value.usableHeight * (i / e / 2),
566
+ height: U.value.usableHeight * (1 - i / e),
567
+ width: U.value.usableWidth * (1 - i / e),
568
+ opacity: Math.round((i + 1) / e * 20)
569
+ });
570
+ return r;
571
+ }), J = d(() => {
572
+ let e = P.value.xAxis.max, t = P.value.xAxis.min, n = P.value.yAxis.max, r = P.value.yAxis.min;
573
+ return P.value.xAxis.auto && (e = Math.max(...$n.value.flatMap((e) => e.series.map((e) => e.x))), t = Math.min(...$n.value.flatMap((e) => e.series.map((e) => e.x)))), P.value.yAxis.auto && (n = Math.max(...$n.value.flatMap((e) => e.series.map((e) => e.y))), r = Math.min(...$n.value.flatMap((e) => e.series.map((e) => e.y)))), {
574
+ x: {
575
+ max: e,
576
+ min: t
577
+ },
578
+ y: {
579
+ max: n,
580
+ min: r
581
+ }
582
+ };
583
+ }), Y = S([]), $n = d(() => Pn.value.map((e, t) => ({
584
+ ...e,
585
+ series: i({
586
+ data: e.series,
587
+ threshold: M.value.downsample.threshold
588
+ }),
589
+ id: `cat_${t}_${k.value}`,
590
+ color: te(e.color) || qn.value[t] || o[t]
591
+ }))), er = d(() => $n.value.filter((e) => !Y.value.includes(e.id))), tr = d(() => $n.value.map((e, t) => ({
592
+ ...e,
593
+ shape: e.shape || "circle",
594
+ series: e.series.map((t) => ({
595
+ ...t,
596
+ x: nr(t.x),
597
+ y: rr(t.y),
598
+ xValue: t.x,
599
+ yValue: t.y,
600
+ quadrantSide: pr({
601
+ x: t.x,
602
+ y: t.y
603
+ }),
604
+ categoryName: e.name,
605
+ category: e,
606
+ shape: e.shape,
607
+ color: e.color
608
+ }))
609
+ }))), X = d(() => (Bn.value && Pn.value.forEach((e, t) => {
610
+ e.series.forEach((e, t) => {
611
+ [null, void 0].includes(e.x) && oe({
612
+ componentName: "VueUiQuadrant",
613
+ type: "datasetSerieAttribute",
614
+ property: "x",
615
+ key: "series",
616
+ index: t
617
+ }), [null, void 0].includes(e.y) && oe({
618
+ componentName: "VueUiQuadrant",
619
+ type: "datasetSerieAttribute",
620
+ property: "y",
621
+ key: "series",
622
+ index: t
623
+ });
624
+ });
625
+ }), er.value.map((e, t) => ({
626
+ ...e,
627
+ shape: e.shape || "circle",
628
+ color: e.color || qn.value[t] || o[t],
629
+ series: e.series.map((t) => ({
630
+ ...t,
631
+ category: e,
632
+ x: nr(t.x),
633
+ y: rr(t.y),
634
+ xValue: t.x,
635
+ yValue: t.y,
636
+ quadrantSide: pr({
637
+ x: t.x,
638
+ y: t.y
639
+ }),
640
+ categoryName: e.name,
641
+ shape: e.shape,
642
+ color: e.color,
643
+ uid: se()
644
+ }))
645
+ }))));
646
+ function nr(e) {
647
+ if (e >= 0) {
648
+ let t = e / J.value.x.max;
649
+ return U.value.centerX + U.value.usableWidth / 2 * t;
650
+ }
651
+ {
652
+ let t = Math.abs(e) / Math.abs(J.value.x.min);
653
+ return U.value.centerX - U.value.usableWidth / 2 * t;
654
+ }
655
+ }
656
+ function rr(e) {
657
+ if (e >= 0) {
658
+ let t = e / J.value.y.max;
659
+ return U.value.centerY + (1 - U.value.usableHeight / 2 * t);
660
+ }
661
+ {
662
+ let t = Math.abs(e) / Math.abs(J.value.y.min);
663
+ return U.value.centerY - (1 - U.value.usableHeight / 2 * t);
664
+ }
665
+ }
666
+ let ir = d(() => {
667
+ let e = X.value.flatMap((e) => e.series.map((t) => ({
668
+ x: t.xValue,
669
+ y: t.yValue,
670
+ name: t.name,
671
+ category: t.categoryName,
672
+ quadrantSide: t.quadrantSide,
673
+ sideName: F.value.quadrantLabels[t.quadrantSide].text,
674
+ color: e.color,
675
+ shape: e.shape
676
+ }))), t = P.value.xAxis.name || "x", n = P.value.yAxis.name || "y";
677
+ return {
678
+ head: [
679
+ M.value.translations.category,
680
+ M.value.translations.item,
681
+ t,
682
+ n,
683
+ M.value.translations.side
684
+ ],
685
+ body: e.map((e) => [
686
+ e.category,
687
+ e.name,
688
+ e.x,
689
+ e.y,
690
+ e.sideName || e.quadrantSide
691
+ ]),
692
+ itsShapes: e.map((e) => ({
693
+ shape: e.shape,
694
+ color: e.color
695
+ })),
696
+ tableData: e
697
+ };
698
+ }), ar = d(() => {
699
+ let e = ir.value.head, t = ir.value.tableData.map((e) => [
700
+ {
701
+ shape: e.shape,
702
+ color: e.color,
703
+ name: e.category
704
+ },
705
+ e.name,
706
+ l(F.value.plotLabels.x.formatter, e.x, c({
707
+ v: e.x,
708
+ r: F.value.plotLabels.rounding
709
+ })),
710
+ l(F.value.plotLabels.y.formatter, e.y, c({
711
+ v: e.y,
712
+ r: F.value.plotLabels.rounding
713
+ })),
714
+ e.sideName || e.quadrantSide
715
+ ]);
716
+ return {
717
+ head: e,
718
+ body: t,
719
+ a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name ?? "" : e)),
720
+ config: {
721
+ th: {
722
+ backgroundColor: M.value.table.th.backgroundColor,
723
+ color: M.value.table.th.color,
724
+ outline: M.value.table.th.outline
725
+ },
726
+ td: {
727
+ backgroundColor: M.value.table.td.backgroundColor,
728
+ color: M.value.table.td.color,
729
+ outline: M.value.table.td.outline
730
+ },
731
+ breakpoint: M.value.table.responsiveBreakpoint
732
+ },
733
+ colNames: e
734
+ };
735
+ });
736
+ function or() {
737
+ Y.value.length ? Y.value = [] : cr.value.forEach((e) => {
738
+ Y.value.push(e.id);
739
+ }), pn("selectLegend", Sr());
740
+ }
741
+ function sr(e) {
742
+ Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), pn("selectLegend", Sr());
743
+ }
744
+ let cr = d(() => tr.value.map((e) => ({
745
+ name: e.name,
746
+ shape: e.shape,
747
+ color: e.color,
748
+ id: e.id,
749
+ opacity: Y.value.includes(e.id) ? .5 : 1,
750
+ segregate: () => sr(e.id),
751
+ isSegregated: Y.value.includes(e.id)
752
+ })));
753
+ function lr(e) {
754
+ return cr.value.length ? cr.value.find((t) => t.name === e) || (Bn.value && console.warn(`VueUiQuadrant - Series name not found "${e}"`), null) : (Bn.value && console.warn("VueUiQuadrant - There are no series to show."), null);
755
+ }
756
+ function ur(e) {
757
+ let t = lr(e);
758
+ t !== null && Y.value.includes(t.id) && sr(t.id);
759
+ }
760
+ function dr(e) {
761
+ let t = lr(e);
762
+ t !== null && (Y.value.includes(t.id) || sr(t.id));
763
+ }
764
+ let fr = d(() => ({
765
+ cy: "quadrant-div-legend",
766
+ backgroundColor: L.value.legend.backgroundColor,
767
+ color: L.value.legend.color,
768
+ fontSize: L.value.legend.fontSize,
769
+ paddingBottom: 12,
770
+ fontWeight: L.value.legend.bold ? "bold" : ""
771
+ }));
772
+ function pr(e) {
773
+ switch (!0) {
774
+ case e.x >= 0 && e.y >= 0: return "tr";
775
+ case e.x >= 0 && e.y < 0: return "br";
776
+ case e.x < 0 && e.y < 0: return "bl";
777
+ case e.x < 0 && e.y >= 0: return "tl";
778
+ default: return "";
779
+ }
780
+ }
781
+ let Z = S(null), mr = S(null), hr = S(null);
782
+ function gr() {
783
+ Z.value = null, mr.value = null, Dn.value = null, On.value = null, mn.value = !1;
784
+ }
785
+ function _r(e) {
786
+ if (!z.value || !e) return;
787
+ let t = `[data-a11y-plot-id="${e}"]`, n = z.value.querySelector(t);
788
+ if (!n) return;
789
+ let r = n.getBoundingClientRect();
790
+ kn.value = {
791
+ x: r.left + r.width / 2,
792
+ y: r.top + r.height / 2
793
+ };
794
+ }
795
+ function vr(e, t, r, i = "pointer", a = null) {
796
+ M.value.events.datapointEnter && M.value.events.datapointEnter({
797
+ datapoint: t,
798
+ seriesIndex: r
799
+ }), Z.value = t.uid, mr.value = {
800
+ color: e.color,
801
+ shape: e.shape
802
+ }, An.value = i, Dn.value = a, On.value = t.uid, hr.value = {
803
+ datapoint: t,
804
+ seriesIndex: r,
805
+ series: X.value,
806
+ config: M.value
807
+ };
808
+ let o = I.value.customFormat;
809
+ if (n(o) && ae(() => o({
810
+ seriesIndex: r,
811
+ datapoint: t,
812
+ series: X.value,
813
+ config: M.value
814
+ }))) hn.value = o({
815
+ seriesIndex: r,
816
+ datapoint: t,
817
+ series: X.value,
818
+ config: M.value
819
+ });
820
+ else {
821
+ let n = "";
822
+ t.quadrantSide && (n += `<div style="color:${F.value.quadrantLabels[t.quadrantSide].color};font-weight:${F.value.quadrantLabels[t.quadrantSide].bold ? "bold" : "400"}">${F.value.quadrantLabels[t.quadrantSide].text}</div>`), n += `<div>${e.name}</div>`, n += `<div style="padding-bottom:6px;border-bottom:1px solid ${I.value.borderColor};margin-bottom:3px">${t.name}</div>`, n += `<div>${P.value.xAxis.name ? P.value.xAxis.name : "x"}: <b>${l(F.value.plotLabels.x.formatter, t.xValue, c({
823
+ v: t.xValue,
824
+ r: I.value.roundingValue
825
+ }), {
826
+ datapoint: t,
827
+ category: e,
828
+ categoryIndex: r
829
+ })}</b></div>`, n += `<div>${P.value.yAxis.name ? P.value.yAxis.name : "y"}: <b>${l(F.value.plotLabels.y.formatter, t.yValue, c({
830
+ v: t.yValue,
831
+ r: I.value.roundingValue
832
+ }), {
833
+ datapoint: t,
834
+ category: e,
835
+ categoryIndex: r
836
+ })}</b></div>`, hn.value = `<div style="text-align:left;font-size:${I.value.fontSize}px">${n}</div>`;
837
+ }
838
+ i === "keyboard" && ze(() => {
839
+ _r(t.uid);
840
+ }), mn.value = !0;
841
+ }
842
+ function yr(e, t) {
843
+ M.value.events.datapointLeave && M.value.events.datapointLeave({
844
+ datapoint: e,
845
+ seriesIndex: t
846
+ }), (On.value !== e.uid || An.value !== "keyboard") && (mn.value = !1, Z.value = null, mr.value = null);
847
+ }
848
+ function br(e, t, n) {
849
+ M.value.events.datapointClick && M.value.events.datapointClick({
850
+ datapoint: t,
851
+ seriesIndex: n
852
+ });
853
+ let r = {
854
+ category: e.name,
855
+ shape: e.shape,
856
+ itemName: t.name,
857
+ x: t.xValue,
858
+ y: t.yValue,
859
+ quadrantSide: t.quadrantSide,
860
+ sideName: F.value.quadrantLabels[t.quadrantSide].text
861
+ };
862
+ pn("selectPlot", r);
863
+ }
864
+ function xr(e) {
865
+ if (!e) return;
866
+ let t = X.value.flatMap((t) => t.series.filter((t) => t.quadrantSide === e).map((e) => ({
867
+ category: e.categoryName,
868
+ itemName: e.name,
869
+ x: e.xValue,
870
+ y: e.yValue
871
+ }))), n = {
872
+ quadrantSide: e,
873
+ sideName: F.value.quadrantLabels[e].text,
874
+ items: [...t]
875
+ };
876
+ pn("selectSide", n);
877
+ }
878
+ let Q = d(() => ({
879
+ TL: {
880
+ tl: {
881
+ x: U.value.left + U.value.usableWidth / 4 - 20,
882
+ y: 0,
883
+ fill: F.value.quadrantLabels.tl.color
884
+ },
885
+ tr: {
886
+ x: U.value.left + U.value.usableWidth / 4,
887
+ y: 0,
888
+ fill: F.value.quadrantLabels.tr.color
889
+ },
890
+ br: {
891
+ x: U.value.left + U.value.usableWidth / 4,
892
+ y: 20,
893
+ fill: F.value.quadrantLabels.br.color
894
+ },
895
+ bl: {
896
+ x: U.value.left + U.value.usableWidth / 4 - 20,
897
+ y: 20,
898
+ fill: F.value.quadrantLabels.bl.color
899
+ },
900
+ crosshairs: {
901
+ horizontal: `M ${U.value.left + U.value.usableWidth / 4 - 20},20 ${U.value.left + U.value.usableWidth / 4 + 20},20`,
902
+ vertical: `M ${U.value.left + U.value.usableWidth / 4},0 ${U.value.left + U.value.usableWidth / 4},40`
903
+ }
904
+ },
905
+ TR: {
906
+ tl: {
907
+ x: U.value.centerX + U.value.usableWidth / 4 - 20,
908
+ y: 0,
909
+ fill: F.value.quadrantLabels.tl.color
910
+ },
911
+ tr: {
912
+ x: U.value.centerX + U.value.usableWidth / 4,
913
+ y: 0,
914
+ fill: F.value.quadrantLabels.tr.color
915
+ },
916
+ br: {
917
+ x: U.value.centerX + U.value.usableWidth / 4,
918
+ y: 20,
919
+ fill: F.value.quadrantLabels.br.color
920
+ },
921
+ bl: {
922
+ x: U.value.centerX + U.value.usableWidth / 4 - 20,
923
+ y: 20,
924
+ fill: F.value.quadrantLabels.bl.color
925
+ },
926
+ crosshairs: {
927
+ horizontal: `M ${U.value.centerX + U.value.usableWidth / 4 - 20},20 ${U.value.centerX + U.value.usableWidth / 4 + 20},20`,
928
+ vertical: `M ${U.value.centerX + U.value.usableWidth / 4},0 ${U.value.centerX + U.value.usableWidth / 4},40`
929
+ }
930
+ },
931
+ BR: {
932
+ tl: {
933
+ x: U.value.centerX + U.value.usableWidth / 4 - 20,
934
+ y: U.value.centerY - 48,
935
+ fill: F.value.quadrantLabels.tl.color
936
+ },
937
+ tr: {
938
+ x: U.value.centerX + U.value.usableWidth / 4,
939
+ y: U.value.centerY - 48,
940
+ fill: F.value.quadrantLabels.tr.color
941
+ },
942
+ br: {
943
+ x: U.value.centerX + U.value.usableWidth / 4,
944
+ y: U.value.centerY - 28,
945
+ fill: F.value.quadrantLabels.br.color
946
+ },
947
+ bl: {
948
+ x: U.value.centerX + U.value.usableWidth / 4 - 20,
949
+ y: U.value.centerY - 28,
950
+ fill: F.value.quadrantLabels.bl.color
951
+ },
952
+ crosshairs: {
953
+ horizontal: `M ${U.value.centerX + U.value.usableWidth / 4 - 20},${U.value.centerY - 28} ${U.value.centerX + U.value.usableWidth / 4 + 20},${U.value.centerY - 28}`,
954
+ vertical: `M ${U.value.centerX + U.value.usableWidth / 4},${U.value.centerY - 48} ${U.value.centerX + U.value.usableWidth / 4},${U.value.centerY - 8}`
955
+ }
956
+ },
957
+ BL: {
958
+ tl: {
959
+ x: U.value.left + U.value.usableWidth / 4 - 20,
960
+ y: U.value.centerY - 48,
961
+ fill: F.value.quadrantLabels.tl.color
962
+ },
963
+ tr: {
964
+ x: U.value.left + U.value.usableWidth / 4,
965
+ y: U.value.centerY - 48,
966
+ fill: F.value.quadrantLabels.tr.color
967
+ },
968
+ br: {
969
+ x: U.value.left + U.value.usableWidth / 4,
970
+ y: U.value.centerY - 28,
971
+ fill: F.value.quadrantLabels.br.color
972
+ },
973
+ bl: {
974
+ x: U.value.left + U.value.usableWidth / 4 - 20,
975
+ y: U.value.centerY - 28,
976
+ fill: F.value.quadrantLabels.bl.color
977
+ },
978
+ crosshairs: {
979
+ horizontal: `M ${U.value.left + U.value.usableWidth / 4 - 20},${U.value.centerY - 28} ${U.value.left + U.value.usableWidth / 4 + 20},${U.value.centerY - 28}`,
980
+ vertical: `M ${U.value.left + U.value.usableWidth / 4},${U.value.centerY - 48} ${U.value.left + U.value.usableWidth / 4},${U.value.centerY - 8}`
981
+ }
982
+ }
983
+ }));
984
+ function Sr() {
985
+ return X.value.map((e) => ({
986
+ color: e.color,
987
+ name: e.name,
988
+ shape: e.shape,
989
+ series: e.series.map((e) => ({
990
+ name: e.name,
991
+ x: e.xValue,
992
+ y: e.yValue,
993
+ quadrantSide: e.quadrantSide,
994
+ sideName: F.value.quadrantLabels[e.quadrantSide].text
995
+ }))
996
+ }));
997
+ }
998
+ function Cr(e = null) {
999
+ ze(() => {
1000
+ let n = [
1001
+ [L.value.title.text],
1002
+ [L.value.title.subtitle.text],
1003
+ [""]
1004
+ ], i = ir.value.head, a = ir.value.body, o = n.concat([i]).concat(a), ee = r(o);
1005
+ e ? e(ee) : t({
1006
+ csvContent: ee,
1007
+ title: L.value.title.text || "vue-ui-quadrant"
1008
+ });
1009
+ });
1010
+ }
1011
+ let wr = S(!1);
1012
+ function Tr(e) {
1013
+ wr.value = e, gn.value += 1;
1014
+ }
1015
+ function Er() {
1016
+ V.value.showTable = !V.value.showTable;
1017
+ }
1018
+ function Dr() {
1019
+ V.value.plotLabels.show = !V.value.plotLabels.show;
1020
+ }
1021
+ function Or() {
1022
+ V.value.showTooltip = !V.value.showTooltip;
1023
+ }
1024
+ let kr = S(!1);
1025
+ function Ar() {
1026
+ kr.value = !kr.value;
1027
+ }
1028
+ async function jr({ scale: e = 2 } = {}) {
1029
+ if (!j.value) return;
1030
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
1031
+ domElement: j.value,
1032
+ base64: !0,
1033
+ img: !0,
1034
+ scale: e
1035
+ });
1036
+ return {
1037
+ imageUri: i,
1038
+ base64: a,
1039
+ title: L.value.title.text,
1040
+ width: t,
1041
+ height: n,
1042
+ aspectRatio: r
1043
+ };
1044
+ }
1045
+ let Mr = d(() => {
1046
+ let e = M.value.table.useDialog && !M.value.table.show, t = V.value.showTable;
1047
+ return {
1048
+ component: e ? cn : nn,
1049
+ title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
1050
+ props: e ? {
1051
+ backgroundColor: M.value.table.th.backgroundColor,
1052
+ color: M.value.table.th.color,
1053
+ headerColor: M.value.table.th.color,
1054
+ headerBg: M.value.table.th.backgroundColor,
1055
+ isFullscreen: wr.value,
1056
+ fullscreenParent: j.value,
1057
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1058
+ isCursorPointer: R.value
1059
+ } : {
1060
+ hideDetails: !0,
1061
+ config: {
1062
+ open: t,
1063
+ maxHeight: 1e4,
1064
+ body: {
1065
+ backgroundColor: L.value.backgroundColor,
1066
+ color: L.value.color
1067
+ },
1068
+ head: {
1069
+ backgroundColor: L.value.backgroundColor,
1070
+ color: L.value.color
1071
+ }
1072
+ }
1073
+ }
1074
+ };
1075
+ });
1076
+ Ge(() => V.value.showTable, (e) => {
1077
+ M.value.table.show || (e && M.value.table.useDialog && Tn.value ? Tn.value.open() : "close" in Tn.value && Tn.value.close());
1078
+ });
1079
+ function Nr() {
1080
+ V.value.showTable = !1, En.value && En.value.setTableIconState(!1);
1081
+ }
1082
+ let Pr = d(() => L.value.backgroundColor), Fr = d(() => L.value.legend), Ir = d(() => L.value.title), { isCallbackImaging: Lr, isCallbackSvg: Rr, generateSvg: zr, onGenerateImage: Br } = be({
1083
+ svg: z,
1084
+ title: Ir,
1085
+ legend: Fr,
1086
+ legendItems: cr,
1087
+ backgroundColor: Pr,
1088
+ getSvgCallback: () => M.value.userOptions.callbacks.svg,
1089
+ generateImage: Gn
1090
+ });
1091
+ async function Vr() {
1092
+ if (pn("copyAlt", {
1093
+ config: M.value,
1094
+ dataset: er.value
1095
+ }), !M.value.userOptions.callbacks.altCopy) {
1096
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1097
+ return;
1098
+ }
1099
+ await Promise.resolve(M.value.userOptions.callbacks.altCopy({
1100
+ config: M.value,
1101
+ dataset: er.value
1102
+ }));
1103
+ }
1104
+ function Hr() {
1105
+ Dn.value = null, On.value = null, jn.value = !0;
1106
+ }
1107
+ function Ur() {
1108
+ gr(), jn.value = !1;
1109
+ }
1110
+ function Wr(e) {
1111
+ if (!z.value || kr.value || document.activeElement !== z.value || !$.value.length) return;
1112
+ let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1113
+ if (!t && !n && !r && !i) return;
1114
+ if (e.preventDefault(), e.stopPropagation(), i) {
1115
+ gr();
1116
+ return;
1117
+ }
1118
+ if (r) {
1119
+ if (Dn.value === null) return;
1120
+ let e = $.value[Dn.value];
1121
+ if (!e) return;
1122
+ br(e.category, e.plot, e.categoryIndex);
1123
+ return;
1124
+ }
1125
+ let a = Dn.value, o = Z.value ? $.value.findIndex((e) => e.plot.uid === Z.value) : null, ee = a !== null && a >= 0 && a < $.value.length, te = o !== null && o >= 0 && o < $.value.length;
1126
+ ee ? (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0)) : te ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
1127
+ let s = $.value[a];
1128
+ s && vr(s.category, s.plot, s.categoryIndex, "keyboard", a);
1129
+ }
1130
+ let Gr = d(() => ({
1131
+ headers: ar.value?.colNames ?? [],
1132
+ rows: ar.value?.a11yBody ?? []
1133
+ })), $ = d(() => X.value.flatMap((e, t) => e.series.map((n) => ({
1134
+ category: e,
1135
+ plot: n,
1136
+ categoryIndex: t
1137
+ }))));
1138
+ return we({
1139
+ getData: Sr,
1140
+ getImage: jr,
1141
+ generatePdf: Wn,
1142
+ generateCsv: Cr,
1143
+ generateImage: Gn,
1144
+ generateSvg: zr,
1145
+ hideSeries: dr,
1146
+ showSeries: ur,
1147
+ toggleTable: Er,
1148
+ toggleLabels: Dr,
1149
+ toggleTooltip: Or,
1150
+ toggleAnnotator: Ar,
1151
+ toggleFullscreen: Tr,
1152
+ copyAlt: Vr
1153
+ }), (e, t) => (x(), m("div", {
1154
+ class: v(`vue-data-ui-component vue-ui-quadrant ${wr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1155
+ ref_key: "quadrantChart",
1156
+ ref: j,
1157
+ id: `vue-ui-quadrant_${k.value}`,
1158
+ style: b(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
1159
+ onMouseenter: t[14] ||= () => E(In)(!0),
1160
+ onMouseleave: t[15] ||= () => {
1161
+ E(In)(!1), jn.value || gr();
1162
+ }
1163
+ }, [
1164
+ h("div", {
1165
+ id: `chart-instructions-${k.value}`,
1166
+ class: "sr-only"
1167
+ }, [h("p", null, T(M.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1168
+ Gr.value?.rows?.length ? (x(), f(ke, {
1169
+ key: 0,
1170
+ uid: k.value,
1171
+ head: Gr.value.headers,
1172
+ body: Gr.value.rows,
1173
+ notice: M.value.a11y.translations.tableAvailable,
1174
+ caption: M.value.a11y.translations.tableCaption
1175
+ }, null, 8, [
1176
+ "uid",
1177
+ "head",
1178
+ "body",
1179
+ "notice",
1180
+ "caption"
1181
+ ])) : p("", !0),
1182
+ N.value.buttons.annotator ? (x(), f(E(an), {
1183
+ key: 1,
1184
+ svgRef: E(z),
1185
+ backgroundColor: L.value.backgroundColor,
1186
+ color: L.value.color,
1187
+ active: kr.value,
1188
+ isCursorPointer: R.value,
1189
+ palette: N.value.annotatorPalette,
1190
+ onClose: Ar
1191
+ }, {
1192
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1193
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
1194
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
1195
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
1196
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
1197
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
1198
+ _: 3
1199
+ }, 8, [
1200
+ "svgRef",
1201
+ "backgroundColor",
1202
+ "color",
1203
+ "active",
1204
+ "isCursorPointer",
1205
+ "palette"
1206
+ ])) : p("", !0),
1207
+ Kn.value ? (x(), m("div", {
1208
+ key: 2,
1209
+ ref_key: "noTitle",
1210
+ ref: bn,
1211
+ class: "vue-data-ui-no-title-space",
1212
+ style: "height:36px; width: 100%;background:transparent"
1213
+ }, null, 512)) : p("", !0),
1214
+ L.value.title.text ? (x(), m("div", {
1215
+ key: 3,
1216
+ ref_key: "chartTitle",
1217
+ ref: _n,
1218
+ style: "width:100%;background:transparent;padding-bottom:12px"
1219
+ }, [(x(), f(Se, {
1220
+ key: `table_${xn.value}`,
1221
+ config: {
1222
+ title: {
1223
+ cy: "quadrant-title",
1224
+ ...L.value.title
1225
+ },
1226
+ subtitle: {
1227
+ cy: "quadrant-subtitle",
1228
+ ...L.value.title.subtitle
1229
+ }
1230
+ }
1231
+ }, null, 8, ["config"]))], 512)) : p("", !0),
1232
+ h("div", { id: `legend-top-${k.value}` }, null, 8, Ye),
1233
+ N.value.show && fn.value && (E(Ln) || E(Fn)) ? (x(), f(E(on), {
1234
+ ref_key: "userOptionsRef",
1235
+ ref: En,
1236
+ key: `user_options_${gn.value}`,
1237
+ backgroundColor: L.value.backgroundColor,
1238
+ color: L.value.color,
1239
+ isImaging: E(Un),
1240
+ isPrinting: E(Hn),
1241
+ uid: k.value,
1242
+ hasTooltip: N.value.buttons.tooltip && I.value.show,
1243
+ hasPdf: N.value.buttons.pdf,
1244
+ hasImg: N.value.buttons.img,
1245
+ hasSvg: N.value.buttons.svg,
1246
+ hasXls: N.value.buttons.csv,
1247
+ hasTable: N.value.buttons.table,
1248
+ hasLabel: N.value.buttons.labels,
1249
+ hasFullscreen: N.value.buttons.fullscreen,
1250
+ hasAltCopy: N.value.buttons.altCopy,
1251
+ isFullscreen: wr.value,
1252
+ isTooltip: V.value.showTooltip,
1253
+ titles: { ...N.value.buttonTitles },
1254
+ chartElement: j.value,
1255
+ position: N.value.position,
1256
+ hasAnnotator: N.value.buttons.annotator,
1257
+ isAnnotation: kr.value,
1258
+ callbacks: N.value.callbacks,
1259
+ printScale: N.value.print.scale,
1260
+ tableDialog: M.value.table.useDialog,
1261
+ isCursorPointer: R.value,
1262
+ onToggleFullscreen: Tr,
1263
+ onGeneratePdf: E(Wn),
1264
+ onGenerateCsv: Cr,
1265
+ onGenerateImage: E(Br),
1266
+ onGenerateSvg: E(zr),
1267
+ onToggleTable: Er,
1268
+ onToggleLabels: Dr,
1269
+ onToggleTooltip: Or,
1270
+ onToggleAnnotator: Ar,
1271
+ onCopyAlt: Vr,
1272
+ style: b({ visibility: E(Ln) ? E(Fn) ? "visible" : "hidden" : "visible" })
1273
+ }, Fe({ _: 2 }, [
1274
+ e.$slots.menuIcon ? {
1275
+ name: "menuIcon",
1276
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
1277
+ isOpen: t,
1278
+ color: n
1279
+ })), void 0, !0)]),
1280
+ key: "0"
1281
+ } : void 0,
1282
+ e.$slots.optionTooltip ? {
1283
+ name: "optionTooltip",
1284
+ fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1285
+ key: "1"
1286
+ } : void 0,
1287
+ e.$slots.optionPdf ? {
1288
+ name: "optionPdf",
1289
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1290
+ key: "2"
1291
+ } : void 0,
1292
+ e.$slots.optionCsv ? {
1293
+ name: "optionCsv",
1294
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
1295
+ key: "3"
1296
+ } : void 0,
1297
+ e.$slots.optionImg ? {
1298
+ name: "optionImg",
1299
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1300
+ key: "4"
1301
+ } : void 0,
1302
+ e.$slots.optionSvg ? {
1303
+ name: "optionSvg",
1304
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1305
+ key: "5"
1306
+ } : void 0,
1307
+ e.$slots.optionTable ? {
1308
+ name: "optionTable",
1309
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
1310
+ key: "6"
1311
+ } : void 0,
1312
+ e.$slots.optionLabels ? {
1313
+ name: "optionLabels",
1314
+ fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
1315
+ key: "7"
1316
+ } : void 0,
1317
+ e.$slots.optionFullscreen ? {
1318
+ name: "optionFullscreen",
1319
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
1320
+ toggleFullscreen: t,
1321
+ isFullscreen: n
1322
+ })), void 0, !0)]),
1323
+ key: "8"
1324
+ } : void 0,
1325
+ e.$slots.optionAnnotator ? {
1326
+ name: "optionAnnotator",
1327
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1328
+ toggleAnnotator: t,
1329
+ isAnnotator: n
1330
+ })), void 0, !0)]),
1331
+ key: "9"
1332
+ } : void 0,
1333
+ e.$slots.optionAltCopy ? {
1334
+ name: "optionAltCopy",
1335
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1336
+ key: "10"
1337
+ } : void 0,
1338
+ e.$slots["custom-menu-before"] ? {
1339
+ name: "custom-menu-before",
1340
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1341
+ key: "11"
1342
+ } : void 0,
1343
+ e.$slots["custom-menu-after"] ? {
1344
+ name: "custom-menu-after",
1345
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1346
+ key: "12"
1347
+ } : void 0
1348
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
1349
+ h("div", Xe, [(x(), m("svg", {
1350
+ ref_key: "svgRef",
1351
+ ref: z,
1352
+ xmlns: E(le),
1353
+ "aria-describedby": `chart-instructions-${k.value}`,
1354
+ class: v({
1355
+ "vue-data-ui-fullscreen--on": wr.value,
1356
+ "vue-data-ui-fulscreen--off": !wr.value
1357
+ }),
1358
+ viewBox: `${W.value.startX} ${W.value.startY} ${W.value.width} ${W.value.height}`,
1359
+ style: b(`max-width:100%;overflow:hidden;background:transparent;color:${L.value.color}`),
1360
+ id: `svg_${k.value}`,
1361
+ tabindex: "0",
1362
+ onFocus: Hr,
1363
+ onBlur: Ur,
1364
+ onKeydown: Wr
1365
+ }, [
1366
+ Le(E(sn)),
1367
+ e.$slots["chart-background"] ? (x(), m("foreignObject", {
1368
+ key: 0,
1369
+ x: W.value.startX,
1370
+ y: W.value.startY,
1371
+ width: W.value.width,
1372
+ height: W.value.height,
1373
+ style: { pointerEvents: "none" }
1374
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : p("", !0),
1375
+ h("defs", null, [(x(!0), m(u, null, C(X.value, (e, t) => (x(), f(De, {
1376
+ t: "radial",
1377
+ cx: "50%",
1378
+ cy: "50%",
1379
+ r: "50%",
1380
+ fx: "50%",
1381
+ fy: "50%",
1382
+ id: `quadrant_gradient_${k.value}_${t}`,
1383
+ key: `quadrant_gradient_${k.value}_${t}`,
1384
+ stops: [[
1385
+ "0%",
1386
+ E(s)(E(ne)(e.color, .05), L.value.layout.areas.opacity),
1387
+ 1
1388
+ ], [
1389
+ "100%",
1390
+ E(s)(e.color, L.value.layout.areas.opacity),
1391
+ 1
1392
+ ]]
1393
+ }, null, 8, ["id", "stops"]))), 128))]),
1394
+ P.value.graduations.show ? (x(), m("g", $e, [(x(!0), m(u, null, C(Qn.value, (e) => (x(), m("rect", {
1395
+ fill: P.value.graduations.fill ? E(s)(P.value.graduations.color, e.opacity) : "none",
1396
+ x: e.x,
1397
+ y: e.y,
1398
+ height: e.height <= 0 ? .001 : e.height,
1399
+ width: e.width <= 0 ? .001 : e.width,
1400
+ "stroke-width": P.value.graduations.strokeWidth,
1401
+ stroke: P.value.graduations.stroke,
1402
+ rx: P.value.graduations.roundingForce
1403
+ }, null, 8, et))), 256))])) : p("", !0),
1404
+ h("line", {
1405
+ x1: U.value.left,
1406
+ y1: U.value.centerY,
1407
+ x2: U.value.right,
1408
+ y2: U.value.centerY,
1409
+ stroke: P.value.stroke,
1410
+ "stroke-width": P.value.strokeWidth
1411
+ }, null, 8, tt),
1412
+ h("line", {
1413
+ x1: U.value.centerX,
1414
+ y1: U.value.top,
1415
+ x2: U.value.centerX,
1416
+ y2: U.value.bottom,
1417
+ stroke: P.value.stroke,
1418
+ "stroke-width": P.value.strokeWidth
1419
+ }, null, 8, nt),
1420
+ P.value.showArrows ? (x(), m("g", rt, [
1421
+ h("polygon", {
1422
+ points: `${U.value.right - 8},${U.value.centerY - 6} ${U.value.right},${U.value.centerY} ${U.value.right - 8},${U.value.centerY + 6}`,
1423
+ fill: P.value.stroke,
1424
+ stroke: "none"
1425
+ }, null, 8, it),
1426
+ h("polygon", {
1427
+ points: `${U.value.left + 8},${U.value.centerY - 6} ${U.value.left},${U.value.centerY} ${U.value.left + 8},${U.value.centerY + 6}`,
1428
+ fill: P.value.stroke,
1429
+ stroke: "none"
1430
+ }, null, 8, at),
1431
+ h("polygon", {
1432
+ points: `${U.value.centerX - 6},${U.value.top + 8} ${U.value.centerX},${U.value.top} ${U.value.centerX + 6},${U.value.top + 8}`,
1433
+ fill: P.value.stroke,
1434
+ stroke: "none"
1435
+ }, null, 8, ot),
1436
+ h("polygon", {
1437
+ points: `${U.value.centerX - 6},${U.value.bottom - 8} ${U.value.centerX},${U.value.bottom} ${U.value.centerX + 6},${U.value.bottom - 8}`,
1438
+ fill: P.value.stroke,
1439
+ stroke: "none"
1440
+ }, null, 8, st)
1441
+ ])) : p("", !0),
1442
+ F.value.quadrantLabels.show && !A.value ? (x(), m("g", ct, [
1443
+ F.value.quadrantLabels.tl.text ? (x(), m("text", {
1444
+ key: 0,
1445
+ x: 0,
1446
+ y: U.value.top - U.value.padding / 2,
1447
+ "text-anchor": "start",
1448
+ fill: F.value.quadrantLabels.tl.color,
1449
+ "font-size": F.value.quadrantLabels.tl.fontSize,
1450
+ style: b(`font-weight:${F.value.quadrantLabels.tl.bold ? "bold" : ""}`),
1451
+ onClick: t[0] ||= (e) => xr("tl")
1452
+ }, T(F.value.quadrantLabels.tl.text), 13, lt)) : p("", !0),
1453
+ F.value.quadrantLabels.tr.text ? (x(), m("text", {
1454
+ key: 1,
1455
+ x: U.value.width,
1456
+ y: U.value.top - U.value.padding / 2,
1457
+ "text-anchor": "end",
1458
+ fill: F.value.quadrantLabels.tr.color,
1459
+ "font-size": F.value.quadrantLabels.tr.fontSize,
1460
+ style: b(`font-weight:${F.value.quadrantLabels.tr.bold ? "bold" : ""}`),
1461
+ onClick: t[1] ||= (e) => xr("tr")
1462
+ }, T(F.value.quadrantLabels.tr.text), 13, ut)) : p("", !0),
1463
+ F.value.quadrantLabels.br.text ? (x(), m("text", {
1464
+ key: 2,
1465
+ x: U.value.width,
1466
+ y: U.value.bottom + U.value.padding * .7,
1467
+ "text-anchor": "end",
1468
+ fill: F.value.quadrantLabels.br.color,
1469
+ "font-size": F.value.quadrantLabels.br.fontSize,
1470
+ style: b(`font-weight:${F.value.quadrantLabels.br.bold ? "bold" : ""}`),
1471
+ onClick: t[2] ||= (e) => xr("br")
1472
+ }, T(F.value.quadrantLabels.br.text), 13, dt)) : p("", !0),
1473
+ F.value.quadrantLabels.bl.text ? (x(), m("text", {
1474
+ key: 3,
1475
+ x: 0,
1476
+ y: U.value.bottom + U.value.padding * .7,
1477
+ "text-anchor": "start",
1478
+ fill: F.value.quadrantLabels.bl.color,
1479
+ "font-size": F.value.quadrantLabels.bl.fontSize,
1480
+ style: b(`font-weight:${F.value.quadrantLabels.bl.bold ? "bold" : ""}`),
1481
+ onClick: t[3] ||= (e) => xr("bl")
1482
+ }, T(F.value.quadrantLabels.bl.text), 13, ft)) : p("", !0)
1483
+ ])) : p("", !0),
1484
+ F.value.axisLabels.show ? (x(), m("g", pt, [
1485
+ P.value.yAxis.show ? (x(), m("text", {
1486
+ key: 0,
1487
+ x: U.value.centerX,
1488
+ y: U.value.top - U.value.padding / 6,
1489
+ "text-anchor": "middle",
1490
+ "font-size": F.value.axisLabels.fontSize,
1491
+ fill: F.value.axisLabels.color.positive
1492
+ }, T(E(l)(F.value.plotLabels.y.formatter, J.value.y.max, E(c)({
1493
+ v: J.value.y.max,
1494
+ r: F.value.plotLabels.rounding
1495
+ }))), 9, mt)) : p("", !0),
1496
+ h("text", {
1497
+ x: U.value.centerX,
1498
+ y: U.value.top - U.value.padding / 2,
1499
+ "text-anchor": "middle",
1500
+ "font-size": F.value.axisLabels.fontSize,
1501
+ fill: F.value.axisLabels.color.positive
1502
+ }, T(P.value.yAxis.name), 9, ht),
1503
+ P.value.yAxis.show ? (x(), m("text", {
1504
+ key: 1,
1505
+ x: U.value.centerX,
1506
+ y: U.value.bottom + U.value.padding * .35,
1507
+ "text-anchor": "middle",
1508
+ "font-size": F.value.axisLabels.fontSize,
1509
+ fill: F.value.axisLabels.color.negative
1510
+ }, T(E(l)(F.value.plotLabels.y.formatter, J.value.y.min, E(c)({
1511
+ v: J.value.y.min,
1512
+ r: F.value.plotLabels.rounding
1513
+ }))), 9, gt)) : p("", !0),
1514
+ P.value.xAxis.show ? (x(), m("text", {
1515
+ key: 2,
1516
+ id: `xLabelMin_${k.value}`,
1517
+ "text-anchor": "middle",
1518
+ "font-size": F.value.axisLabels.fontSize,
1519
+ transform: `translate(${U.value.padding - F.value.axisLabels.fontSize}, ${U.value.height / 2}), rotate(-90)`,
1520
+ fill: F.value.axisLabels.color.negative
1521
+ }, T(E(l)(F.value.plotLabels.x.formatter, J.value.x.min, E(c)({
1522
+ v: J.value.x.min,
1523
+ r: F.value.plotLabels.rounding
1524
+ }))), 9, _t)) : p("", !0),
1525
+ P.value.xAxis.show ? (x(), m("text", {
1526
+ key: 3,
1527
+ id: `xLabelMax_${k.value}`,
1528
+ "text-anchor": "middle",
1529
+ "font-size": F.value.axisLabels.fontSize,
1530
+ transform: `translate(${U.value.width - U.value.padding + F.value.axisLabels.fontSize}, ${U.value.height / 2}), rotate(90)`,
1531
+ fill: F.value.axisLabels.color.positive
1532
+ }, T(E(l)(F.value.plotLabels.x.formatter, J.value.x.max, E(c)({
1533
+ v: J.value.x.max,
1534
+ r: F.value.plotLabels.rounding
1535
+ }))), 9, vt)) : p("", !0),
1536
+ h("text", {
1537
+ id: `xLabelMaxName_${k.value}`,
1538
+ "text-anchor": "middle",
1539
+ "font-size": F.value.axisLabels.fontSize,
1540
+ transform: `translate(${U.value.width - F.value.axisLabels.fontSize}, ${U.value.height / 2}), rotate(90)`,
1541
+ fill: F.value.axisLabels.color.positive
1542
+ }, T(P.value.xAxis.name), 9, yt)
1543
+ ])) : p("", !0),
1544
+ L.value.layout.areas.show ? (x(), m("g", bt, [(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", null, [e.series.length > 2 ? (x(), m("polygon", {
1545
+ key: 0,
1546
+ "data-cy-quadrant-area": "",
1547
+ fill: L.value.layout.areas.useGradient ? `url(#quadrant_gradient_${k.value}_${t})` : E(s)(e.color, L.value.layout.areas.opacity),
1548
+ points: E(de)(e)
1549
+ }, null, 8, xt)) : p("", !0)]))), 256))])) : p("", !0),
1550
+ h("g", null, [
1551
+ h("rect", {
1552
+ onClick: t[4] ||= (e) => q("TL"),
1553
+ x: U.value.left,
1554
+ y: U.value.top,
1555
+ width: U.value.usableWidth / 2 <= 0 ? .001 : U.value.usableWidth / 2,
1556
+ height: U.value.usableHeight / 2 <= 0 ? .001 : U.value.usableHeight / 2,
1557
+ fill: "transparent",
1558
+ class: v({
1559
+ "vue-data-ui-zoom-plus": !A.value && K.value,
1560
+ "vue-data-ui-zoom-minus": A.value && K.value
1561
+ })
1562
+ }, null, 10, St),
1563
+ h("rect", {
1564
+ onClick: t[5] ||= (e) => q("TR"),
1565
+ x: U.value.centerX,
1566
+ y: U.value.top,
1567
+ width: U.value.usableWidth / 2 <= 0 ? .001 : U.value.usableWidth / 2,
1568
+ height: U.value.usableHeight / 2 <= 0 ? .001 : U.value.usableHeight / 2,
1569
+ fill: "transparent",
1570
+ class: v({
1571
+ "vue-data-ui-zoom-plus": !A.value && K.value,
1572
+ "vue-data-ui-zoom-minus": A.value && K.value
1573
+ })
1574
+ }, null, 10, Ct),
1575
+ h("rect", {
1576
+ onClick: t[6] ||= (e) => q("BR"),
1577
+ x: U.value.centerX,
1578
+ y: U.value.centerY,
1579
+ width: U.value.usableWidth / 2 <= 0 ? .001 : U.value.usableWidth / 2,
1580
+ height: U.value.usableHeight / 2 <= 0 ? .001 : U.value.usableHeight / 2,
1581
+ fill: "transparent",
1582
+ class: v({
1583
+ "vue-data-ui-zoom-plus": !A.value && K.value,
1584
+ "vue-data-ui-zoom-minus": A.value && K.value
1585
+ })
1586
+ }, null, 10, wt),
1587
+ h("rect", {
1588
+ onClick: t[7] ||= (e) => q("BL"),
1589
+ x: U.value.left,
1590
+ y: U.value.centerY,
1591
+ width: U.value.usableWidth / 2 <= 0 ? .001 : U.value.usableWidth / 2,
1592
+ height: U.value.usableHeight / 2 <= 0 ? .001 : U.value.usableHeight / 2,
1593
+ fill: "transparent",
1594
+ class: v({
1595
+ "vue-data-ui-zoom-plus": !A.value && K.value,
1596
+ "vue-data-ui-zoom-minus": A.value && K.value
1597
+ })
1598
+ }, null, 10, Tt)
1599
+ ]),
1600
+ F.value.plotLabels.showAsTag ? (x(), m(u, { key: 7 }, [V.value.plotLabels.show ? (x(), m("g", Mt, [(x(!0), m(u, null, C(X.value, (e, t) => (x(), m(u, null, [(x(!0), m(u, null, C(e.series, (n) => (x(), m("foreignObject", {
1601
+ style: { overflow: "visible" },
1602
+ height: "10",
1603
+ width: "100",
1604
+ x: n.x - 50,
1605
+ y: n.y - F.value.plotLabels.fontSize,
1606
+ onMouseover: (r) => vr(e, n, t),
1607
+ onMouseleave: (e) => yr(n, t),
1608
+ onClick: (r) => br(e, n, t)
1609
+ }, [h("div", { style: b(`color:${E(ce)(e.color)};margin: 0 auto; font-size:${F.value.plotLabels.fontSize}px; text-align:center;background:${e.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`) }, T(n.name), 5)], 40, Nt))), 256))], 64))), 256))])) : p("", !0)], 64)) : (x(), m(u, { key: 6 }, [(x(!0), m(u, null, C(X.value, (t, n) => (x(), m("g", null, [e.$slots.datapoint && !E(Nn) ? (x(!0), m(u, { key: 0 }, C(t.series, (r) => (x(), m("g", { key: r.uid }, [(x(), m("foreignObject", {
1610
+ x: r.x - 1,
1611
+ y: r.y - 1,
1612
+ width: "2",
1613
+ height: "2",
1614
+ style: {
1615
+ overflow: "visible",
1616
+ "pointer-events": "none"
1617
+ },
1618
+ onMouseenter: (e) => vr(t, r, n),
1619
+ onMouseleave: (e) => yr(r, n),
1620
+ onClick: (e) => br(t, r, n)
1621
+ }, [w(e.$slots, "datapoint", Re({ ref_for: !0 }, { datapoint: {
1622
+ ...r,
1623
+ onEnter: () => vr(t, r, n),
1624
+ onLeave: () => yr(r, n),
1625
+ onClick: () => br(t, r, n),
1626
+ isSelected: Z.value && r.uid === Z.value
1627
+ } }), void 0, !0)], 40, Et)), h("circle", {
1628
+ "data-a11y-plot-id": r.uid,
1629
+ cx: r.x,
1630
+ cy: r.y,
1631
+ r: Math.max(L.value.layout.plots.radius / (A.value ? 1.5 : 1), 10),
1632
+ fill: "transparent",
1633
+ style: { "pointer-events": "none" }
1634
+ }, null, 8, Dt)]))), 128)) : e.$slots.datapointSvg && !E(Nn) ? (x(!0), m(u, { key: 1 }, C(t.series, (r) => (x(), m("g", { key: r.uid }, [w(e.$slots, "datapointSvg", Re({ ref_for: !0 }, { datapoint: {
1635
+ ...r,
1636
+ onEnter: () => vr(t, r, n),
1637
+ onLeave: () => yr(r, n),
1638
+ onClick: () => br(t, r, n),
1639
+ isSelected: Z.value && r.uid === Z.value
1640
+ } }), void 0, !0)]))), 128)) : (x(!0), m(u, { key: 2 }, C(t.series, (e, r) => (x(), m("g", { key: e.uid }, [Le(Ce, {
1641
+ color: t.color,
1642
+ isSelected: Z.value && e.uid === Z.value,
1643
+ plot: e,
1644
+ radius: L.value.layout.plots.radius / (A.value ? 1.5 : 1),
1645
+ shape: t.shape,
1646
+ stroke: L.value.layout.plots.outline ? L.value.layout.plots.outlineColor : "none",
1647
+ strokeWidth: L.value.layout.plots.outlineWidth,
1648
+ onMouseenter: (r) => vr(t, e, n, "pointer"),
1649
+ onMouseleave: (t) => yr(e, n),
1650
+ onClick: (r) => br(t, e, n)
1651
+ }, null, 8, [
1652
+ "color",
1653
+ "isSelected",
1654
+ "plot",
1655
+ "radius",
1656
+ "shape",
1657
+ "stroke",
1658
+ "strokeWidth",
1659
+ "onMouseenter",
1660
+ "onMouseleave",
1661
+ "onClick"
1662
+ ]), h("circle", {
1663
+ "data-dom-to-png-ignore": "",
1664
+ "data-a11y-plot-id": e.uid,
1665
+ cx: e.x,
1666
+ cy: e.y,
1667
+ r: Math.max(L.value.layout.plots.radius / (A.value ? 1.5 : 1), 10),
1668
+ fill: "transparent",
1669
+ style: { "pointer-events": "none" }
1670
+ }, null, 8, Ot)]))), 128))]))), 256)), V.value.plotLabels.show ? (x(), m("g", kt, [(x(!0), m(u, null, C(X.value, (e) => (x(), m("g", null, [(x(!0), m(u, null, C(e.series, (e) => (x(), m("g", null, [String(e.name).includes("\n") ? (x(), m("text", {
1671
+ key: 1,
1672
+ x: e.x,
1673
+ y: e.y + F.value.plotLabels.offsetY + L.value.layout.plots.radius,
1674
+ "text-anchor": "middle",
1675
+ "font-size": F.value.plotLabels.fontSize / (A.value ? 1.5 : 1),
1676
+ fill: F.value.plotLabels.color,
1677
+ innerHTML: E(a)({
1678
+ content: String(e.name),
1679
+ fontSize: L.value.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1680
+ fill: L.value.layout.labels.plotLabels.color,
1681
+ x: e.x,
1682
+ y: e.y + L.value.layout.labels.plotLabels.offsetY + L.value.layout.plots.radius
1683
+ })
1684
+ }, null, 8, jt)) : (x(), m("text", {
1685
+ key: 0,
1686
+ x: e.x,
1687
+ y: e.y + F.value.plotLabels.offsetY + L.value.layout.plots.radius,
1688
+ "text-anchor": "middle",
1689
+ "font-size": F.value.plotLabels.fontSize / (A.value ? 1.5 : 1),
1690
+ fill: F.value.plotLabels.color
1691
+ }, T(e.name), 9, At))]))), 256))]))), 256))])) : p("", !0)], 64)),
1692
+ A.value ? (x(), m("g", Pt, [
1693
+ G.value === "TL" ? (x(), m("polygon", {
1694
+ key: 0,
1695
+ points: `${U.value.left - 1},${U.value.centerY} ${U.value.centerX},${U.value.centerY} ${U.value.centerX},${U.value.top - 1} ${U.value.right},${U.value.top - 1} ${U.value.right},${U.value.bottom} ${U.value.left - 1},${U.value.bottom} ${U.value.left - 1},${U.value.centerY}`,
1696
+ fill: L.value.backgroundColor,
1697
+ style: { opacity: "1" }
1698
+ }, null, 8, Ft)) : p("", !0),
1699
+ G.value === "TR" ? (x(), m("polygon", {
1700
+ key: 1,
1701
+ points: `${U.value.left},${U.value.top - 1} ${U.value.centerX},${U.value.top - 1} ${U.value.centerX},${U.value.centerY} ${U.value.right + 1},${U.value.centerY} ${U.value.right + 1},${U.value.bottom} ${U.value.left},${U.value.bottom} ${U.value.left},${U.value.top - 1}`,
1702
+ fill: L.value.backgroundColor,
1703
+ style: { opacity: "1" }
1704
+ }, null, 8, It)) : p("", !0),
1705
+ G.value === "BR" ? (x(), m("polygon", {
1706
+ key: 2,
1707
+ points: `${U.value.left},${U.value.top} ${U.value.right + 1},${U.value.top} ${U.value.right + 1},${U.value.centerY} ${U.value.centerX},${U.value.centerY} ${U.value.centerX},${U.value.bottom + 1} ${U.value.left},${U.value.bottom + 1} ${U.value.left},${U.value.top}`,
1708
+ fill: L.value.backgroundColor,
1709
+ style: { opacity: "1" }
1710
+ }, null, 8, Lt)) : p("", !0),
1711
+ G.value === "BL" ? (x(), m("polygon", {
1712
+ key: 3,
1713
+ points: `${U.value.left - 1},${U.value.top} ${U.value.right},${U.value.top} ${U.value.right},${U.value.bottom + 1} ${U.value.centerX},${U.value.bottom + 1} ${U.value.centerX},${U.value.centerY} ${U.value.left - 1},${U.value.centerY} ${U.value.left - 1},${U.value.top}`,
1714
+ fill: L.value.backgroundColor,
1715
+ style: { opacity: "1" }
1716
+ }, null, 8, Rt)) : p("", !0)
1717
+ ])) : p("", !0),
1718
+ G.value && !Xn.value ? (x(), m("g", zt, [h("text", {
1719
+ x: Jn.value.x,
1720
+ y: Jn.value.y - Jn.value.fontSize / 1.5,
1721
+ "font-size": Jn.value.fontSize / 1.5,
1722
+ fill: Jn.value.fill,
1723
+ "text-anchor": "middle",
1724
+ "font-weight": Jn.value.bold ? "bold" : "normal"
1725
+ }, T(Jn.value.text), 9, Bt)])) : p("", !0),
1726
+ A.value && G.value ? (x(), m("g", Vt, [
1727
+ h("rect", {
1728
+ x: Q.value[G.value].tl.x,
1729
+ y: Q.value[G.value].tl.y,
1730
+ height: "20",
1731
+ width: "20",
1732
+ fill: Q.value[G.value].tl.fill,
1733
+ style: b(`cursor: ${R.value ? "pointer" : "default"}; opacity: ${G.value === "TL" ? 1 : .2}`),
1734
+ onClick: t[8] ||= (e) => q("TL"),
1735
+ class: v({
1736
+ "vue-ui-quadrant-mini-map-cell": !0,
1737
+ "vue-ui-quadrant-mini-map-cell-selectable": G.value !== "TL"
1738
+ })
1739
+ }, null, 14, Ht),
1740
+ h("rect", {
1741
+ x: Q.value[G.value].tr.x,
1742
+ y: Q.value[G.value].tr.y,
1743
+ height: "20",
1744
+ width: "20",
1745
+ fill: Q.value[G.value].tr.fill,
1746
+ style: b(`cursor: ${R.value ? "pointer" : "default"}; opacity: ${G.value === "TR" ? 1 : .2}`),
1747
+ onClick: t[9] ||= (e) => q("TR"),
1748
+ class: v({
1749
+ "vue-ui-quadrant-mini-map-cell": !0,
1750
+ "vue-ui-quadrant-mini-map-cell-selectable": G.value !== "TR"
1751
+ })
1752
+ }, null, 14, Ut),
1753
+ h("rect", {
1754
+ x: Q.value[G.value].br.x,
1755
+ y: Q.value[G.value].br.y,
1756
+ height: "20",
1757
+ width: "20",
1758
+ fill: Q.value[G.value].br.fill,
1759
+ style: b(`cursor: ${R.value ? "pointer" : "default"}; opacity: ${G.value === "BR" ? 1 : .2}`),
1760
+ onClick: t[10] ||= (e) => q("BR"),
1761
+ class: v({
1762
+ "vue-ui-quadrant-mini-map-cell": !0,
1763
+ "vue-ui-quadrant-mini-map-cell-selectable": G.value !== "BR"
1764
+ })
1765
+ }, null, 14, Wt),
1766
+ h("rect", {
1767
+ x: Q.value[G.value].bl.x,
1768
+ y: Q.value[G.value].bl.y,
1769
+ height: "20",
1770
+ width: "20",
1771
+ fill: Q.value[G.value].bl.fill,
1772
+ style: b(`cursor: ${R.value ? "pointer" : "default"}; opacity: ${G.value === "BL" ? 1 : .2}`),
1773
+ onClick: t[11] ||= (e) => q("BL"),
1774
+ class: v({
1775
+ "vue-ui-quadrant-mini-map-cell": !0,
1776
+ "vue-ui-quadrant-mini-map-cell-selectable": G.value !== "BL"
1777
+ })
1778
+ }, null, 14, Gt),
1779
+ h("path", {
1780
+ class: "vue-ui-quadrant-minimap-crosshairs",
1781
+ stroke: L.value.backgroundColor,
1782
+ "stroke-width": 1,
1783
+ d: Q.value[G.value].crosshairs.horizontal
1784
+ }, null, 8, Kt),
1785
+ h("path", {
1786
+ class: "vue-ui-quadrant-minimap-crosshairs",
1787
+ stroke: L.value.backgroundColor,
1788
+ "stroke-width": 1,
1789
+ d: Q.value[G.value].crosshairs.vertical
1790
+ }, null, 8, qt)
1791
+ ])) : p("", !0),
1792
+ w(e.$slots, "svg", { svg: {
1793
+ ...U.value,
1794
+ isPrintingImg: E(Hn) || E(Un) || E(Lr),
1795
+ isPrintingSvg: E(Rr)
1796
+ } }, void 0, !0)
1797
+ ], 46, Ze)), e.$slots.hint ? (x(), m("div", Jt, [w(e.$slots, "hint", y(_({
1798
+ hint: M.value.a11y.translations.keyboardNavigation,
1799
+ isVisible: jn.value
1800
+ })), void 0, !0)])) : p("", !0)]),
1801
+ e.$slots.watermark ? (x(), m("div", Yt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Hn) || E(Un) || E(Lr) || E(Rr) })), void 0, !0)])) : p("", !0),
1802
+ h("div", { id: `legend-bottom-${k.value}` }, null, 8, Xt),
1803
+ wn.value && (L.value.legend.show || e.$slots.legend) ? (x(), f(Pe, {
1804
+ key: 6,
1805
+ to: L.value.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1806
+ }, [h("div", {
1807
+ ref_key: "chartLegend",
1808
+ ref: vn
1809
+ }, [w(e.$slots, "legend", { legend: cr.value }, () => [L.value.legend.show ? (x(), f(Me, {
1810
+ key: `legend_${Cn.value}`,
1811
+ legendSet: cr.value,
1812
+ config: fr.value,
1813
+ isCursorPointer: R.value,
1814
+ onClickMarker: t[12] ||= ({ legend: e }) => sr(e.id)
1815
+ }, {
1816
+ item: D(({ legend: e }) => [E(Nn) ? p("", !0) : (x(), m("div", {
1817
+ key: 0,
1818
+ onClick: (t) => sr(e.id),
1819
+ style: b(`opacity:${Y.value.includes(e.id) ? .5 : 1}`)
1820
+ }, T(e.name), 13, Zt))]),
1821
+ legendToggle: D(() => [cr.value.length > 2 && L.value.legend.selectAllToggle.show && !E(Nn) ? (x(), f(Oe, {
1822
+ key: 0,
1823
+ backgroundColor: L.value.legend.selectAllToggle.backgroundColor,
1824
+ color: L.value.legend.selectAllToggle.color,
1825
+ fontSize: L.value.legend.fontSize,
1826
+ checked: Y.value.length > 0,
1827
+ isCursorPointer: R.value,
1828
+ onToggle: or
1829
+ }, null, 8, [
1830
+ "backgroundColor",
1831
+ "color",
1832
+ "fontSize",
1833
+ "checked",
1834
+ "isCursorPointer"
1835
+ ])) : p("", !0)]),
1836
+ _: 1
1837
+ }, 8, [
1838
+ "legendSet",
1839
+ "config",
1840
+ "isCursorPointer"
1841
+ ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1842
+ e.$slots.source ? (x(), m("div", {
1843
+ key: 7,
1844
+ ref_key: "source",
1845
+ ref: yn,
1846
+ dir: "auto"
1847
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1848
+ Le(E(en), {
1849
+ teleportTo: I.value.teleportTo,
1850
+ show: V.value.showTooltip && mn.value,
1851
+ backgroundColor: I.value.backgroundColor,
1852
+ color: I.value.color,
1853
+ borderRadius: I.value.borderRadius,
1854
+ borderColor: I.value.borderColor,
1855
+ borderWidth: I.value.borderWidth,
1856
+ fontSize: I.value.fontSize,
1857
+ backgroundOpacity: I.value.backgroundOpacity,
1858
+ position: I.value.position,
1859
+ offsetX: I.value.offsetX,
1860
+ offsetY: I.value.offsetY,
1861
+ parent: j.value,
1862
+ content: hn.value,
1863
+ isFullscreen: wr.value,
1864
+ isCustom: I.value.customFormat && typeof I.value.customFormat == "function",
1865
+ smooth: I.value.smooth,
1866
+ backdropFilter: I.value.backdropFilter,
1867
+ smoothForce: I.value.smoothForce,
1868
+ smoothSnapThreshold: I.value.smoothSnapThreshold,
1869
+ isA11yMode: An.value === "keyboard",
1870
+ a11yPosition: kn.value
1871
+ }, {
1872
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...hr.value })), void 0, !0)]),
1873
+ tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...hr.value })), void 0, !0)]),
1874
+ "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...hr.value })), void 0, !0)]),
1875
+ default: D(() => [I.value.showShape ? (x(), m("svg", Qt, [Le(Ce, {
1876
+ plot: {
1877
+ x: 10,
1878
+ y: 10
1879
+ },
1880
+ shape: mr.value.shape,
1881
+ color: mr.value.color,
1882
+ radius: 8,
1883
+ stroke: L.value.layout.plots.outline ? L.value.layout.plots.outlineColor : "none",
1884
+ "stroke-width": L.value.layout.plots.outlineWidth
1885
+ }, null, 8, [
1886
+ "shape",
1887
+ "color",
1888
+ "stroke",
1889
+ "stroke-width"
1890
+ ])])) : p("", !0)]),
1891
+ _: 3
1892
+ }, 8, [
1893
+ "teleportTo",
1894
+ "show",
1895
+ "backgroundColor",
1896
+ "color",
1897
+ "borderRadius",
1898
+ "borderColor",
1899
+ "borderWidth",
1900
+ "fontSize",
1901
+ "backgroundOpacity",
1902
+ "position",
1903
+ "offsetX",
1904
+ "offsetY",
1905
+ "parent",
1906
+ "content",
1907
+ "isFullscreen",
1908
+ "isCustom",
1909
+ "smooth",
1910
+ "backdropFilter",
1911
+ "smoothForce",
1912
+ "smoothSnapThreshold",
1913
+ "isA11yMode",
1914
+ "a11yPosition"
1915
+ ]),
1916
+ fn.value && N.value.buttons.table ? (x(), f(He(Mr.value.component), Re({ key: 8 }, Mr.value.props, {
1917
+ ref_key: "tableUnit",
1918
+ ref: Tn,
1919
+ onClose: Nr
1920
+ }), Fe({
1921
+ content: D(() => [(x(), f(E(rn), {
1922
+ key: `table_${Sn.value}`,
1923
+ colNames: ar.value.colNames,
1924
+ head: ar.value.head,
1925
+ body: ar.value.body,
1926
+ config: ar.value.config,
1927
+ title: M.value.table.useDialog ? "" : Mr.value.title,
1928
+ withCloseButton: !M.value.table.useDialog,
1929
+ isCursorPointer: R.value,
1930
+ onClose: Nr
1931
+ }, {
1932
+ th: D(({ th: e }) => [Ie(T(e), 1)]),
1933
+ td: D(({ td: e }) => [h("div", { innerHTML: e.name || e }, null, 8, $t)]),
1934
+ _: 1
1935
+ }, 8, [
1936
+ "colNames",
1937
+ "head",
1938
+ "body",
1939
+ "config",
1940
+ "title",
1941
+ "withCloseButton",
1942
+ "isCursorPointer"
1943
+ ]))]),
1944
+ _: 2
1945
+ }, [M.value.table.useDialog ? {
1946
+ name: "title",
1947
+ fn: D(() => [Ie(T(Mr.value.title), 1)]),
1948
+ key: "0"
1949
+ } : void 0, M.value.table.useDialog ? {
1950
+ name: "actions",
1951
+ fn: D(() => [h("button", {
1952
+ tabindex: "0",
1953
+ class: "vue-ui-user-options-button",
1954
+ onClick: t[13] ||= (e) => Cr(N.value.callbacks.csv),
1955
+ style: b({ cursor: R.value ? "pointer" : "default" })
1956
+ }, [Le(E(tn), {
1957
+ name: "fileCsv",
1958
+ stroke: Mr.value.props.color
1959
+ }, null, 8, ["stroke"])], 4)]),
1960
+ key: "1"
1961
+ } : void 0]), 1040)) : p("", !0),
1962
+ w(e.$slots, "skeleton", {}, () => [E(Nn) ? (x(), f(_e, { key: 0 })) : p("", !0)], !0)
1963
+ ], 46, qe));
1964
+ }
1965
+ }, [["__scopeId", "data-v-8d721f64"]]);
1966
+ //#endregion
1967
+ export { Ke as n, en as t };