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
@@ -1,1967 +0,0 @@
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-C_mX5pOZ.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-__JnV08B.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-t83PDe9k.js").then((e) => e.n)), nn = g(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), rn = g(() => import("./DataTable-COIO9gi4.js")), an = g(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), on = g(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), sn = g(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), cn = g(() => import("./BaseDraggableDialog-BM_R41j8.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), M = S(null), Dn = S(null), On = S({
228
- x: 0,
229
- y: 0
230
- }), kn = S("pointer"), An = S(!1), N = S(Ln());
231
- fe({
232
- config: () => N.value,
233
- dataset: () => O.dataset,
234
- component: "VueUiQuadrant",
235
- rules: [pe.emptyArray, pe.noHint]
236
- });
237
- let P = d(() => N.value.userOptions.useCursorPointer), jn = 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: N.value.skeletonConfig ?? {}
264
- })), { loading: Mn, FINAL_DATASET: Nn } = ge({
265
- ...We(O),
266
- FINAL_CONFIG: N,
267
- prepareConfig: Ln,
268
- callback: () => {
269
- Promise.resolve().then(async () => {
270
- await ze(), R.value.showTable = N.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: N.value,
347
- userConfig: jn.value
348
- })
349
- }), { userOptionsVisible: Pn, setUserOptionsVisibility: Fn, keepUserOptionState: In } = Ae({ config: N.value }), { svgRef: F } = je({ config: N.value.style.chart.title });
350
- function Ln() {
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
- N.value = Ln(), Pn.value = !N.value.userOptions.showOnChartHover, zn(), xn.value += 1, Sn.value += 1, Cn.value += 1, R.value.plotLabels.show = N.value.style.chart.layout.labels.plotLabels.show, R.value.showTable = N.value.table.show, R.value.showTooltip = N.value.style.chart.tooltip.show;
371
- }, { deep: !0 });
372
- let I = Ue(null), L = Ue(null), Rn = d(() => N.value.debug);
373
- function zn() {
374
- if (ee(O.dataset) ? oe({
375
- componentName: "VueUiQuadrant",
376
- type: "dataset",
377
- debug: Rn.value
378
- }) : Rn.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
- }), N.value.responsive) {
399
- let e = Te(() => {
400
- let { width: e, height: t } = Ee({
401
- chart: j.value,
402
- title: N.value.style.chart.title.text ? _n.value : null,
403
- legend: N.value.style.chart.legend.show ? vn.value : null,
404
- source: yn.value,
405
- noTitle: bn.value
406
- });
407
- z.value = 48, requestAnimationFrame(() => {
408
- B.value.height = t, B.value.usableHeight = t - z.value * 2, B.value.width = e, B.value.usableWidth = e - z.value * 2, B.value.top = z.value, B.value.left = z.value, B.value.right = e - z.value, B.value.bottom = t - z.value, B.value.centerX = e / 2, B.value.centerY = t - t / 2, B.value.padding = z.value;
409
- });
410
- });
411
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = j.value.parentNode, I.value.observe(L.value);
412
- }
413
- }
414
- Ve(() => {
415
- wn.value = !0, zn();
416
- }), Be(() => {
417
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
418
- });
419
- let { isPrinting: Bn, isImaging: Vn, generatePdf: Hn, generateImage: Un } = he({
420
- elementId: `vue-ui-quadrant_${k.value}`,
421
- fileName: N.value.style.chart.title.text || "vue-ui-quadrant",
422
- options: N.value.userOptions.print
423
- }), Wn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Gn = d(() => ue(N.value.customPalette)), R = S({
424
- plotLabels: { show: N.value.style.chart.layout.labels.plotLabels.show },
425
- showTable: N.value.table.show,
426
- showTooltip: N.value.style.chart.tooltip.show
427
- }), z = S(48), B = S({
428
- height: N.value.style.chart.height,
429
- usableHeight: N.value.style.chart.height - z.value * 2,
430
- width: N.value.style.chart.width,
431
- usableWidth: N.value.style.chart.width - z.value * 2,
432
- top: z.value,
433
- left: z.value,
434
- right: N.value.style.chart.width - z.value,
435
- bottom: N.value.style.chart.height - z.value,
436
- centerX: N.value.style.chart.width / 2,
437
- centerY: N.value.style.chart.height - N.value.style.chart.height / 2,
438
- padding: z.value
439
- }), V = S({
440
- ...JSON.parse(JSON.stringify(B.value)),
441
- startX: 0,
442
- startY: 0
443
- });
444
- Ge(() => B.value, (e) => {
445
- e && (V.value = {
446
- ...JSON.parse(JSON.stringify(B.value)),
447
- startX: 0,
448
- startY: 0
449
- });
450
- }, { deep: !0 });
451
- let H = S(null), U = d(() => {
452
- switch (H.value) {
453
- case "TL": return {
454
- x: V.value.startX + V.value.width / 2,
455
- y: V.value.height,
456
- text: N.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
457
- fontSize: N.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
458
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color,
459
- bold: N.value.style.chart.layout.labels.quadrantLabels.tl.bold
460
- };
461
- case "TR": return {
462
- x: V.value.startX + V.value.width / 2,
463
- y: V.value.height,
464
- text: N.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
465
- fontSize: N.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
466
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color,
467
- bold: N.value.style.chart.layout.labels.quadrantLabels.tr.bold
468
- };
469
- case "BR": return {
470
- x: V.value.startX + V.value.width / 2,
471
- y: V.value.height * 1.678,
472
- text: N.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
473
- fontSize: N.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
474
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color,
475
- bold: N.value.style.chart.layout.labels.quadrantLabels.br.bold
476
- };
477
- case "BL": return {
478
- x: V.value.startX + V.value.width / 2,
479
- y: V.value.height * 1.678,
480
- text: N.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
481
- fontSize: N.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
482
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color,
483
- bold: N.value.style.chart.layout.labels.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
- }), Kn = S(null), qn = S(!1);
495
- function Jn({ targetX: e, targetY: t, targetW: n, targetH: r, side: i }) {
496
- H.value && _r(i);
497
- let a = {
498
- x: e - V.value.startX,
499
- y: t - V.value.startY,
500
- w: n - V.value.width,
501
- h: r - V.value.height
502
- }, o = N.value.zoomAnimationFrames, ee = 0;
503
- function te() {
504
- qn.value = !0, V.value.startX += a.x / o, V.value.startY += a.y / o, V.value.width += a.w / o, V.value.height += a.h / o, ee += 1, ee < o ? Kn.value = requestAnimationFrame(te) : qn.value = !1;
505
- }
506
- te();
507
- }
508
- let W = d(() => N.value.zoomEnabled);
509
- function G(e) {
510
- if (W.value && !qn.value) {
511
- if (A.value && H.value === e) Jn({
512
- targetX: 0,
513
- targetY: 0,
514
- targetW: B.value.width,
515
- targetH: B.value.height
516
- }), H.value = null, A.value = !1;
517
- else {
518
- switch (H.value = e, e) {
519
- case "TL":
520
- Jn({
521
- targetX: 0,
522
- targetY: 0,
523
- targetW: B.value.width / 2 + B.value.left,
524
- targetH: B.value.height / 2 + B.value.top,
525
- side: "tl"
526
- });
527
- break;
528
- case "TR":
529
- Jn({
530
- targetX: B.value.width / 2 - B.value.left,
531
- targetY: 0,
532
- targetW: B.value.width / 2 + B.value.left,
533
- targetH: B.value.height / 2 + B.value.top,
534
- side: "tr"
535
- });
536
- break;
537
- case "BR":
538
- Jn({
539
- targetX: B.value.width / 2 - B.value.left,
540
- targetY: B.value.height / 2 - B.value.top,
541
- targetW: B.value.width / 2 + B.value.left,
542
- targetH: B.value.height / 2 + B.value.top,
543
- side: "br"
544
- });
545
- break;
546
- case "BL":
547
- Jn({
548
- targetX: 0,
549
- targetY: B.value.height / 2 - B.value.top,
550
- targetW: B.value.width / 2 + B.value.left,
551
- targetH: B.value.height / 2 + B.value.top,
552
- side: "bl"
553
- });
554
- break;
555
- default: V.value.startX = 0, V.value.startY = 0, V.value.width = B.value.width, V.value.height = B.value.height;
556
- }
557
- A.value = !0;
558
- }
559
- }
560
- }
561
- let Yn = d(() => {
562
- let e = N.value.style.chart.layout.grid.graduations.steps, t = B.value.usableWidth / (e * 2), n = B.value.top, r = [];
563
- for (let i = 0; i < e; i += 1) r.push({
564
- x: B.value.padding + t * i,
565
- y: n + B.value.usableHeight * (i / e / 2),
566
- height: B.value.usableHeight * (1 - i / e),
567
- width: B.value.usableWidth * (1 - i / e),
568
- opacity: Math.round((i + 1) / e * 20)
569
- });
570
- return r;
571
- }), K = d(() => {
572
- let e = N.value.style.chart.layout.grid.xAxis.max, t = N.value.style.chart.layout.grid.xAxis.min, n = N.value.style.chart.layout.grid.yAxis.max, r = N.value.style.chart.layout.grid.yAxis.min;
573
- return N.value.style.chart.layout.grid.xAxis.auto && (e = Math.max(...Xn.value.flatMap((e) => e.series.map((e) => e.x))), t = Math.min(...Xn.value.flatMap((e) => e.series.map((e) => e.x)))), N.value.style.chart.layout.grid.yAxis.auto && (n = Math.max(...Xn.value.flatMap((e) => e.series.map((e) => e.y))), r = Math.min(...Xn.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
- }), q = S([]), Xn = d(() => Nn.value.map((e, t) => ({
584
- ...e,
585
- series: i({
586
- data: e.series,
587
- threshold: N.value.downsample.threshold
588
- }),
589
- id: `cat_${t}_${k.value}`,
590
- color: te(e.color) || Gn.value[t] || o[t]
591
- }))), Zn = d(() => Xn.value.filter((e) => !q.value.includes(e.id))), Qn = d(() => Xn.value.map((e, t) => ({
592
- ...e,
593
- shape: e.shape || "circle",
594
- series: e.series.map((t) => ({
595
- ...t,
596
- x: $n(t.x),
597
- y: er(t.y),
598
- xValue: t.x,
599
- yValue: t.y,
600
- quadrantSide: lr({
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
- }))), J = d(() => (Rn.value && Nn.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
- }), Zn.value.map((e, t) => ({
626
- ...e,
627
- shape: e.shape || "circle",
628
- color: e.color || Gn.value[t] || o[t],
629
- series: e.series.map((t) => ({
630
- ...t,
631
- category: e,
632
- x: $n(t.x),
633
- y: er(t.y),
634
- xValue: t.x,
635
- yValue: t.y,
636
- quadrantSide: lr({
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 $n(e) {
647
- if (e >= 0) {
648
- let t = e / K.value.x.max;
649
- return B.value.centerX + B.value.usableWidth / 2 * t;
650
- }
651
- {
652
- let t = Math.abs(e) / Math.abs(K.value.x.min);
653
- return B.value.centerX - B.value.usableWidth / 2 * t;
654
- }
655
- }
656
- function er(e) {
657
- if (e >= 0) {
658
- let t = e / K.value.y.max;
659
- return B.value.centerY + (1 - B.value.usableHeight / 2 * t);
660
- }
661
- {
662
- let t = Math.abs(e) / Math.abs(K.value.y.min);
663
- return B.value.centerY - (1 - B.value.usableHeight / 2 * t);
664
- }
665
- }
666
- let tr = d(() => {
667
- let e = J.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: N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].text,
674
- color: e.color,
675
- shape: e.shape
676
- }))), t = N.value.style.chart.layout.grid.xAxis.name || "x", n = N.value.style.chart.layout.grid.yAxis.name || "y";
677
- return {
678
- head: [
679
- N.value.translations.category,
680
- N.value.translations.item,
681
- t,
682
- n,
683
- N.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
- }), nr = d(() => {
699
- let e = tr.value.head, t = tr.value.tableData.map((e) => [
700
- {
701
- shape: e.shape,
702
- color: e.color,
703
- name: e.category
704
- },
705
- e.name,
706
- l(N.value.style.chart.layout.labels.plotLabels.x.formatter, e.x, c({
707
- v: e.x,
708
- r: N.value.style.chart.layout.labels.plotLabels.rounding
709
- })),
710
- l(N.value.style.chart.layout.labels.plotLabels.y.formatter, e.y, c({
711
- v: e.y,
712
- r: N.value.style.chart.layout.labels.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: N.value.table.th.backgroundColor,
723
- color: N.value.table.th.color,
724
- outline: N.value.table.th.outline
725
- },
726
- td: {
727
- backgroundColor: N.value.table.td.backgroundColor,
728
- color: N.value.table.td.color,
729
- outline: N.value.table.td.outline
730
- },
731
- breakpoint: N.value.table.responsiveBreakpoint
732
- },
733
- colNames: e
734
- };
735
- });
736
- function rr() {
737
- q.value.length ? q.value = [] : Y.value.forEach((e) => {
738
- q.value.push(e.id);
739
- }), pn("selectLegend", vr());
740
- }
741
- function ir(e) {
742
- q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.push(e), pn("selectLegend", vr());
743
- }
744
- let Y = d(() => Qn.value.map((e) => ({
745
- name: e.name,
746
- shape: e.shape,
747
- color: e.color,
748
- id: e.id,
749
- opacity: q.value.includes(e.id) ? .5 : 1,
750
- segregate: () => ir(e.id),
751
- isSegregated: q.value.includes(e.id)
752
- })));
753
- function ar(e) {
754
- return Y.value.length ? Y.value.find((t) => t.name === e) || (Rn.value && console.warn(`VueUiQuadrant - Series name not found "${e}"`), null) : (Rn.value && console.warn("VueUiQuadrant - There are no series to show."), null);
755
- }
756
- function or(e) {
757
- let t = ar(e);
758
- t !== null && q.value.includes(t.id) && ir(t.id);
759
- }
760
- function sr(e) {
761
- let t = ar(e);
762
- t !== null && (q.value.includes(t.id) || ir(t.id));
763
- }
764
- let cr = d(() => ({
765
- cy: "quadrant-div-legend",
766
- backgroundColor: N.value.style.chart.legend.backgroundColor,
767
- color: N.value.style.chart.legend.color,
768
- fontSize: N.value.style.chart.legend.fontSize,
769
- paddingBottom: 12,
770
- fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
771
- }));
772
- function lr(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 X = S(null), ur = S(null), dr = S(null);
782
- function fr() {
783
- X.value = null, ur.value = null, M.value = null, Dn.value = null, mn.value = !1;
784
- }
785
- function pr(e) {
786
- if (!F.value || !e) return;
787
- let t = `[data-a11y-plot-id="${e}"]`, n = F.value.querySelector(t);
788
- if (!n) return;
789
- let r = n.getBoundingClientRect();
790
- On.value = {
791
- x: r.left + r.width / 2,
792
- y: r.top + r.height / 2
793
- };
794
- }
795
- function mr(e, t, r, i = "pointer", a = null) {
796
- N.value.events.datapointEnter && N.value.events.datapointEnter({
797
- datapoint: t,
798
- seriesIndex: r
799
- }), X.value = t.uid, ur.value = {
800
- color: e.color,
801
- shape: e.shape
802
- }, kn.value = i, M.value = a, Dn.value = t.uid, dr.value = {
803
- datapoint: t,
804
- seriesIndex: r,
805
- series: J.value,
806
- config: N.value
807
- };
808
- let o = N.value.style.chart.tooltip.customFormat;
809
- if (n(o) && ae(() => o({
810
- seriesIndex: r,
811
- datapoint: t,
812
- series: J.value,
813
- config: N.value
814
- }))) hn.value = o({
815
- seriesIndex: r,
816
- datapoint: t,
817
- series: J.value,
818
- config: N.value
819
- });
820
- else {
821
- let n = "";
822
- t.quadrantSide && (n += `<div style="color:${N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].color};font-weight:${N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].bold ? "bold" : "400"}">${N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].text}</div>`), n += `<div>${e.name}</div>`, n += `<div style="padding-bottom:6px;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};margin-bottom:3px">${t.name}</div>`, n += `<div>${N.value.style.chart.layout.grid.xAxis.name ? N.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${l(N.value.style.chart.layout.labels.plotLabels.x.formatter, t.xValue, c({
823
- v: t.xValue,
824
- r: N.value.style.chart.tooltip.roundingValue
825
- }), {
826
- datapoint: t,
827
- category: e,
828
- categoryIndex: r
829
- })}</b></div>`, n += `<div>${N.value.style.chart.layout.grid.yAxis.name ? N.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${l(N.value.style.chart.layout.labels.plotLabels.y.formatter, t.yValue, c({
830
- v: t.yValue,
831
- r: N.value.style.chart.tooltip.roundingValue
832
- }), {
833
- datapoint: t,
834
- category: e,
835
- categoryIndex: r
836
- })}</b></div>`, hn.value = `<div style="text-align:left;font-size:${N.value.style.chart.tooltip.fontSize}px">${n}</div>`;
837
- }
838
- i === "keyboard" && ze(() => {
839
- pr(t.uid);
840
- }), mn.value = !0;
841
- }
842
- function hr(e, t) {
843
- N.value.events.datapointLeave && N.value.events.datapointLeave({
844
- datapoint: e,
845
- seriesIndex: t
846
- }), (Dn.value !== e.uid || kn.value !== "keyboard") && (mn.value = !1, X.value = null, ur.value = null);
847
- }
848
- function gr(e, t, n) {
849
- N.value.events.datapointClick && N.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: N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].text
861
- };
862
- pn("selectPlot", r);
863
- }
864
- function _r(e) {
865
- if (!e) return;
866
- let t = J.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: N.value.style.chart.layout.labels.quadrantLabels[e].text,
874
- items: [...t]
875
- };
876
- pn("selectSide", n);
877
- }
878
- let Z = d(() => ({
879
- TL: {
880
- tl: {
881
- x: B.value.left + B.value.usableWidth / 4 - 20,
882
- y: 0,
883
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
884
- },
885
- tr: {
886
- x: B.value.left + B.value.usableWidth / 4,
887
- y: 0,
888
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
889
- },
890
- br: {
891
- x: B.value.left + B.value.usableWidth / 4,
892
- y: 20,
893
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
894
- },
895
- bl: {
896
- x: B.value.left + B.value.usableWidth / 4 - 20,
897
- y: 20,
898
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
899
- },
900
- crosshairs: {
901
- horizontal: `M ${B.value.left + B.value.usableWidth / 4 - 20},20 ${B.value.left + B.value.usableWidth / 4 + 20},20`,
902
- vertical: `M ${B.value.left + B.value.usableWidth / 4},0 ${B.value.left + B.value.usableWidth / 4},40`
903
- }
904
- },
905
- TR: {
906
- tl: {
907
- x: B.value.centerX + B.value.usableWidth / 4 - 20,
908
- y: 0,
909
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
910
- },
911
- tr: {
912
- x: B.value.centerX + B.value.usableWidth / 4,
913
- y: 0,
914
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
915
- },
916
- br: {
917
- x: B.value.centerX + B.value.usableWidth / 4,
918
- y: 20,
919
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
920
- },
921
- bl: {
922
- x: B.value.centerX + B.value.usableWidth / 4 - 20,
923
- y: 20,
924
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
925
- },
926
- crosshairs: {
927
- horizontal: `M ${B.value.centerX + B.value.usableWidth / 4 - 20},20 ${B.value.centerX + B.value.usableWidth / 4 + 20},20`,
928
- vertical: `M ${B.value.centerX + B.value.usableWidth / 4},0 ${B.value.centerX + B.value.usableWidth / 4},40`
929
- }
930
- },
931
- BR: {
932
- tl: {
933
- x: B.value.centerX + B.value.usableWidth / 4 - 20,
934
- y: B.value.centerY - 48,
935
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
936
- },
937
- tr: {
938
- x: B.value.centerX + B.value.usableWidth / 4,
939
- y: B.value.centerY - 48,
940
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
941
- },
942
- br: {
943
- x: B.value.centerX + B.value.usableWidth / 4,
944
- y: B.value.centerY - 28,
945
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
946
- },
947
- bl: {
948
- x: B.value.centerX + B.value.usableWidth / 4 - 20,
949
- y: B.value.centerY - 28,
950
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
951
- },
952
- crosshairs: {
953
- horizontal: `M ${B.value.centerX + B.value.usableWidth / 4 - 20},${B.value.centerY - 28} ${B.value.centerX + B.value.usableWidth / 4 + 20},${B.value.centerY - 28}`,
954
- vertical: `M ${B.value.centerX + B.value.usableWidth / 4},${B.value.centerY - 48} ${B.value.centerX + B.value.usableWidth / 4},${B.value.centerY - 8}`
955
- }
956
- },
957
- BL: {
958
- tl: {
959
- x: B.value.left + B.value.usableWidth / 4 - 20,
960
- y: B.value.centerY - 48,
961
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
962
- },
963
- tr: {
964
- x: B.value.left + B.value.usableWidth / 4,
965
- y: B.value.centerY - 48,
966
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
967
- },
968
- br: {
969
- x: B.value.left + B.value.usableWidth / 4,
970
- y: B.value.centerY - 28,
971
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
972
- },
973
- bl: {
974
- x: B.value.left + B.value.usableWidth / 4 - 20,
975
- y: B.value.centerY - 28,
976
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
977
- },
978
- crosshairs: {
979
- horizontal: `M ${B.value.left + B.value.usableWidth / 4 - 20},${B.value.centerY - 28} ${B.value.left + B.value.usableWidth / 4 + 20},${B.value.centerY - 28}`,
980
- vertical: `M ${B.value.left + B.value.usableWidth / 4},${B.value.centerY - 48} ${B.value.left + B.value.usableWidth / 4},${B.value.centerY - 8}`
981
- }
982
- }
983
- }));
984
- function vr() {
985
- return J.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: N.value.style.chart.layout.labels.quadrantLabels[e.quadrantSide].text
995
- }))
996
- }));
997
- }
998
- function yr(e = null) {
999
- ze(() => {
1000
- let n = [
1001
- [N.value.style.chart.title.text],
1002
- [N.value.style.chart.title.subtitle.text],
1003
- [""]
1004
- ], i = tr.value.head, a = tr.value.body, o = n.concat([i]).concat(a), ee = r(o);
1005
- e ? e(ee) : t({
1006
- csvContent: ee,
1007
- title: N.value.style.chart.title.text || "vue-ui-quadrant"
1008
- });
1009
- });
1010
- }
1011
- let Q = S(!1);
1012
- function br(e) {
1013
- Q.value = e, gn.value += 1;
1014
- }
1015
- function xr() {
1016
- R.value.showTable = !R.value.showTable;
1017
- }
1018
- function Sr() {
1019
- R.value.plotLabels.show = !R.value.plotLabels.show;
1020
- }
1021
- function Cr() {
1022
- R.value.showTooltip = !R.value.showTooltip;
1023
- }
1024
- let wr = S(!1);
1025
- function Tr() {
1026
- wr.value = !wr.value;
1027
- }
1028
- async function Er({ 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: N.value.style.chart.title.text,
1040
- width: t,
1041
- height: n,
1042
- aspectRatio: r
1043
- };
1044
- }
1045
- let Dr = d(() => {
1046
- let e = N.value.table.useDialog && !N.value.table.show, t = R.value.showTable;
1047
- return {
1048
- component: e ? cn : nn,
1049
- title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
1050
- props: e ? {
1051
- backgroundColor: N.value.table.th.backgroundColor,
1052
- color: N.value.table.th.color,
1053
- headerColor: N.value.table.th.color,
1054
- headerBg: N.value.table.th.backgroundColor,
1055
- isFullscreen: Q.value,
1056
- fullscreenParent: j.value,
1057
- forcedWidth: Math.min(800, window.innerWidth * .8),
1058
- isCursorPointer: P.value
1059
- } : {
1060
- hideDetails: !0,
1061
- config: {
1062
- open: t,
1063
- maxHeight: 1e4,
1064
- body: {
1065
- backgroundColor: N.value.style.chart.backgroundColor,
1066
- color: N.value.style.chart.color
1067
- },
1068
- head: {
1069
- backgroundColor: N.value.style.chart.backgroundColor,
1070
- color: N.value.style.chart.color
1071
- }
1072
- }
1073
- }
1074
- };
1075
- });
1076
- Ge(() => R.value.showTable, (e) => {
1077
- N.value.table.show || (e && N.value.table.useDialog && Tn.value ? Tn.value.open() : "close" in Tn.value && Tn.value.close());
1078
- });
1079
- function Or() {
1080
- R.value.showTable = !1, En.value && En.value.setTableIconState(!1);
1081
- }
1082
- let kr = d(() => N.value.style.chart.backgroundColor), Ar = d(() => N.value.style.chart.legend), jr = d(() => N.value.style.chart.title), { isCallbackImaging: Mr, isCallbackSvg: Nr, generateSvg: Pr, onGenerateImage: Fr } = be({
1083
- svg: F,
1084
- title: jr,
1085
- legend: Ar,
1086
- legendItems: Y,
1087
- backgroundColor: kr,
1088
- getSvgCallback: () => N.value.userOptions.callbacks.svg,
1089
- generateImage: Un
1090
- });
1091
- async function Ir() {
1092
- if (pn("copyAlt", {
1093
- config: N.value,
1094
- dataset: Zn.value
1095
- }), !N.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(N.value.userOptions.callbacks.altCopy({
1100
- config: N.value,
1101
- dataset: Zn.value
1102
- }));
1103
- }
1104
- function Lr() {
1105
- M.value = null, Dn.value = null, An.value = !0;
1106
- }
1107
- function Rr() {
1108
- fr(), An.value = !1;
1109
- }
1110
- function zr(e) {
1111
- if (!F.value || wr.value || document.activeElement !== F.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
- fr();
1116
- return;
1117
- }
1118
- if (r) {
1119
- if (M.value === null) return;
1120
- let e = $.value[M.value];
1121
- if (!e) return;
1122
- gr(e.category, e.plot, e.categoryIndex);
1123
- return;
1124
- }
1125
- let a = M.value, o = X.value ? $.value.findIndex((e) => e.plot.uid === X.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 && mr(s.category, s.plot, s.categoryIndex, "keyboard", a);
1129
- }
1130
- let Br = d(() => ({
1131
- headers: nr.value?.colNames ?? [],
1132
- rows: nr.value?.a11yBody ?? []
1133
- })), $ = d(() => J.value.flatMap((e, t) => e.series.map((n) => ({
1134
- category: e,
1135
- plot: n,
1136
- categoryIndex: t
1137
- }))));
1138
- return we({
1139
- getData: vr,
1140
- getImage: Er,
1141
- generatePdf: Hn,
1142
- generateCsv: yr,
1143
- generateImage: Un,
1144
- generateSvg: Pr,
1145
- hideSeries: sr,
1146
- showSeries: or,
1147
- toggleTable: xr,
1148
- toggleLabels: Sr,
1149
- toggleTooltip: Cr,
1150
- toggleAnnotator: Tr,
1151
- toggleFullscreen: br,
1152
- copyAlt: Ir
1153
- }), (e, t) => (x(), m("div", {
1154
- class: v(`vue-data-ui-component vue-ui-quadrant ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1155
- ref_key: "quadrantChart",
1156
- ref: j,
1157
- id: `vue-ui-quadrant_${k.value}`,
1158
- style: b(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
1159
- onMouseenter: t[14] ||= () => E(Fn)(!0),
1160
- onMouseleave: t[15] ||= () => {
1161
- E(Fn)(!1), An.value || fr();
1162
- }
1163
- }, [
1164
- h("div", {
1165
- id: `chart-instructions-${k.value}`,
1166
- class: "sr-only"
1167
- }, [h("p", null, T(N.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1168
- Br.value?.rows?.length ? (x(), f(ke, {
1169
- key: 0,
1170
- uid: k.value,
1171
- head: Br.value.headers,
1172
- body: Br.value.rows,
1173
- notice: N.value.a11y.translations.tableAvailable,
1174
- caption: N.value.a11y.translations.tableCaption
1175
- }, null, 8, [
1176
- "uid",
1177
- "head",
1178
- "body",
1179
- "notice",
1180
- "caption"
1181
- ])) : p("", !0),
1182
- N.value.userOptions.buttons.annotator ? (x(), f(E(an), {
1183
- key: 1,
1184
- svgRef: E(F),
1185
- backgroundColor: N.value.style.chart.backgroundColor,
1186
- color: N.value.style.chart.color,
1187
- active: wr.value,
1188
- isCursorPointer: P.value,
1189
- palette: N.value.userOptions.annotatorPalette,
1190
- onClose: Tr
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
- Wn.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
- N.value.style.chart.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
- ...N.value.style.chart.title
1225
- },
1226
- subtitle: {
1227
- cy: "quadrant-subtitle",
1228
- ...N.value.style.chart.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.userOptions.show && fn.value && (E(In) || E(Pn)) ? (x(), f(E(on), {
1234
- ref_key: "userOptionsRef",
1235
- ref: En,
1236
- key: `user_options_${gn.value}`,
1237
- backgroundColor: N.value.style.chart.backgroundColor,
1238
- color: N.value.style.chart.color,
1239
- isImaging: E(Vn),
1240
- isPrinting: E(Bn),
1241
- uid: k.value,
1242
- hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
1243
- hasPdf: N.value.userOptions.buttons.pdf,
1244
- hasImg: N.value.userOptions.buttons.img,
1245
- hasSvg: N.value.userOptions.buttons.svg,
1246
- hasXls: N.value.userOptions.buttons.csv,
1247
- hasTable: N.value.userOptions.buttons.table,
1248
- hasLabel: N.value.userOptions.buttons.labels,
1249
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
1250
- hasAltCopy: N.value.userOptions.buttons.altCopy,
1251
- isFullscreen: Q.value,
1252
- isTooltip: R.value.showTooltip,
1253
- titles: { ...N.value.userOptions.buttonTitles },
1254
- chartElement: j.value,
1255
- position: N.value.userOptions.position,
1256
- hasAnnotator: N.value.userOptions.buttons.annotator,
1257
- isAnnotation: wr.value,
1258
- callbacks: N.value.userOptions.callbacks,
1259
- printScale: N.value.userOptions.print.scale,
1260
- tableDialog: N.value.table.useDialog,
1261
- isCursorPointer: P.value,
1262
- onToggleFullscreen: br,
1263
- onGeneratePdf: E(Hn),
1264
- onGenerateCsv: yr,
1265
- onGenerateImage: E(Fr),
1266
- onGenerateSvg: E(Pr),
1267
- onToggleTable: xr,
1268
- onToggleLabels: Sr,
1269
- onToggleTooltip: Cr,
1270
- onToggleAnnotator: Tr,
1271
- onCopyAlt: Ir,
1272
- style: b({ visibility: E(In) ? E(Pn) ? "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: F,
1352
- xmlns: E(le),
1353
- "aria-describedby": `chart-instructions-${k.value}`,
1354
- class: v({
1355
- "vue-data-ui-fullscreen--on": Q.value,
1356
- "vue-data-ui-fulscreen--off": !Q.value
1357
- }),
1358
- viewBox: `${V.value.startX} ${V.value.startY} ${V.value.width} ${V.value.height}`,
1359
- style: b(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
1360
- id: `svg_${k.value}`,
1361
- tabindex: "0",
1362
- onFocus: Lr,
1363
- onBlur: Rr,
1364
- onKeydown: zr
1365
- }, [
1366
- Le(E(sn)),
1367
- e.$slots["chart-background"] ? (x(), m("foreignObject", {
1368
- key: 0,
1369
- x: V.value.startX,
1370
- y: V.value.startY,
1371
- width: V.value.width,
1372
- height: V.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(J.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), N.value.style.chart.layout.areas.opacity),
1387
- 1
1388
- ], [
1389
- "100%",
1390
- E(s)(e.color, N.value.style.chart.layout.areas.opacity),
1391
- 1
1392
- ]]
1393
- }, null, 8, ["id", "stops"]))), 128))]),
1394
- N.value.style.chart.layout.grid.graduations.show ? (x(), m("g", $e, [(x(!0), m(u, null, C(Yn.value, (e) => (x(), m("rect", {
1395
- fill: N.value.style.chart.layout.grid.graduations.fill ? E(s)(N.value.style.chart.layout.grid.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": N.value.style.chart.layout.grid.graduations.strokeWidth,
1401
- stroke: N.value.style.chart.layout.grid.graduations.stroke,
1402
- rx: N.value.style.chart.layout.grid.graduations.roundingForce
1403
- }, null, 8, et))), 256))])) : p("", !0),
1404
- h("line", {
1405
- x1: B.value.left,
1406
- y1: B.value.centerY,
1407
- x2: B.value.right,
1408
- y2: B.value.centerY,
1409
- stroke: N.value.style.chart.layout.grid.stroke,
1410
- "stroke-width": N.value.style.chart.layout.grid.strokeWidth
1411
- }, null, 8, tt),
1412
- h("line", {
1413
- x1: B.value.centerX,
1414
- y1: B.value.top,
1415
- x2: B.value.centerX,
1416
- y2: B.value.bottom,
1417
- stroke: N.value.style.chart.layout.grid.stroke,
1418
- "stroke-width": N.value.style.chart.layout.grid.strokeWidth
1419
- }, null, 8, nt),
1420
- N.value.style.chart.layout.grid.showArrows ? (x(), m("g", rt, [
1421
- h("polygon", {
1422
- points: `${B.value.right - 8},${B.value.centerY - 6} ${B.value.right},${B.value.centerY} ${B.value.right - 8},${B.value.centerY + 6}`,
1423
- fill: N.value.style.chart.layout.grid.stroke,
1424
- stroke: "none"
1425
- }, null, 8, it),
1426
- h("polygon", {
1427
- points: `${B.value.left + 8},${B.value.centerY - 6} ${B.value.left},${B.value.centerY} ${B.value.left + 8},${B.value.centerY + 6}`,
1428
- fill: N.value.style.chart.layout.grid.stroke,
1429
- stroke: "none"
1430
- }, null, 8, at),
1431
- h("polygon", {
1432
- points: `${B.value.centerX - 6},${B.value.top + 8} ${B.value.centerX},${B.value.top} ${B.value.centerX + 6},${B.value.top + 8}`,
1433
- fill: N.value.style.chart.layout.grid.stroke,
1434
- stroke: "none"
1435
- }, null, 8, ot),
1436
- h("polygon", {
1437
- points: `${B.value.centerX - 6},${B.value.bottom - 8} ${B.value.centerX},${B.value.bottom} ${B.value.centerX + 6},${B.value.bottom - 8}`,
1438
- fill: N.value.style.chart.layout.grid.stroke,
1439
- stroke: "none"
1440
- }, null, 8, st)
1441
- ])) : p("", !0),
1442
- N.value.style.chart.layout.labels.quadrantLabels.show && !A.value ? (x(), m("g", ct, [
1443
- N.value.style.chart.layout.labels.quadrantLabels.tl.text ? (x(), m("text", {
1444
- key: 0,
1445
- x: 0,
1446
- y: B.value.top - B.value.padding / 2,
1447
- "text-anchor": "start",
1448
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color,
1449
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
1450
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
1451
- onClick: t[0] ||= (e) => _r("tl")
1452
- }, T(N.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, lt)) : p("", !0),
1453
- N.value.style.chart.layout.labels.quadrantLabels.tr.text ? (x(), m("text", {
1454
- key: 1,
1455
- x: B.value.width,
1456
- y: B.value.top - B.value.padding / 2,
1457
- "text-anchor": "end",
1458
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color,
1459
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
1460
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
1461
- onClick: t[1] ||= (e) => _r("tr")
1462
- }, T(N.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, ut)) : p("", !0),
1463
- N.value.style.chart.layout.labels.quadrantLabels.br.text ? (x(), m("text", {
1464
- key: 2,
1465
- x: B.value.width,
1466
- y: B.value.bottom + B.value.padding * .7,
1467
- "text-anchor": "end",
1468
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color,
1469
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
1470
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
1471
- onClick: t[2] ||= (e) => _r("br")
1472
- }, T(N.value.style.chart.layout.labels.quadrantLabels.br.text), 13, dt)) : p("", !0),
1473
- N.value.style.chart.layout.labels.quadrantLabels.bl.text ? (x(), m("text", {
1474
- key: 3,
1475
- x: 0,
1476
- y: B.value.bottom + B.value.padding * .7,
1477
- "text-anchor": "start",
1478
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color,
1479
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
1480
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
1481
- onClick: t[3] ||= (e) => _r("bl")
1482
- }, T(N.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, ft)) : p("", !0)
1483
- ])) : p("", !0),
1484
- N.value.style.chart.layout.labels.axisLabels.show ? (x(), m("g", pt, [
1485
- N.value.style.chart.layout.grid.yAxis.show ? (x(), m("text", {
1486
- key: 0,
1487
- x: B.value.centerX,
1488
- y: B.value.top - B.value.padding / 6,
1489
- "text-anchor": "middle",
1490
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1491
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1492
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.y.formatter, K.value.y.max, E(c)({
1493
- v: K.value.y.max,
1494
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1495
- }))), 9, mt)) : p("", !0),
1496
- h("text", {
1497
- x: B.value.centerX,
1498
- y: B.value.top - B.value.padding / 2,
1499
- "text-anchor": "middle",
1500
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1501
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1502
- }, T(N.value.style.chart.layout.grid.yAxis.name), 9, ht),
1503
- N.value.style.chart.layout.grid.yAxis.show ? (x(), m("text", {
1504
- key: 1,
1505
- x: B.value.centerX,
1506
- y: B.value.bottom + B.value.padding * .35,
1507
- "text-anchor": "middle",
1508
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1509
- fill: N.value.style.chart.layout.labels.axisLabels.color.negative
1510
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.y.formatter, K.value.y.min, E(c)({
1511
- v: K.value.y.min,
1512
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1513
- }))), 9, gt)) : p("", !0),
1514
- N.value.style.chart.layout.grid.xAxis.show ? (x(), m("text", {
1515
- key: 2,
1516
- id: `xLabelMin_${k.value}`,
1517
- "text-anchor": "middle",
1518
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1519
- transform: `translate(${B.value.padding - N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(-90)`,
1520
- fill: N.value.style.chart.layout.labels.axisLabels.color.negative
1521
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.x.formatter, K.value.x.min, E(c)({
1522
- v: K.value.x.min,
1523
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1524
- }))), 9, _t)) : p("", !0),
1525
- N.value.style.chart.layout.grid.xAxis.show ? (x(), m("text", {
1526
- key: 3,
1527
- id: `xLabelMax_${k.value}`,
1528
- "text-anchor": "middle",
1529
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1530
- transform: `translate(${B.value.width - B.value.padding + N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(90)`,
1531
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1532
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.x.formatter, K.value.x.max, E(c)({
1533
- v: K.value.x.max,
1534
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1535
- }))), 9, vt)) : p("", !0),
1536
- h("text", {
1537
- id: `xLabelMaxName_${k.value}`,
1538
- "text-anchor": "middle",
1539
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1540
- transform: `translate(${B.value.width - N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(90)`,
1541
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1542
- }, T(N.value.style.chart.layout.grid.xAxis.name), 9, yt)
1543
- ])) : p("", !0),
1544
- N.value.style.chart.layout.areas.show ? (x(), m("g", bt, [(x(!0), m(u, null, C(J.value, (e, t) => (x(), m("g", null, [e.series.length > 2 ? (x(), m("polygon", {
1545
- key: 0,
1546
- "data-cy-quadrant-area": "",
1547
- fill: N.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${k.value}_${t})` : E(s)(e.color, N.value.style.chart.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) => G("TL"),
1553
- x: B.value.left,
1554
- y: B.value.top,
1555
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1556
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1557
- fill: "transparent",
1558
- class: v({
1559
- "vue-data-ui-zoom-plus": !A.value && W.value,
1560
- "vue-data-ui-zoom-minus": A.value && W.value
1561
- })
1562
- }, null, 10, St),
1563
- h("rect", {
1564
- onClick: t[5] ||= (e) => G("TR"),
1565
- x: B.value.centerX,
1566
- y: B.value.top,
1567
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1568
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1569
- fill: "transparent",
1570
- class: v({
1571
- "vue-data-ui-zoom-plus": !A.value && W.value,
1572
- "vue-data-ui-zoom-minus": A.value && W.value
1573
- })
1574
- }, null, 10, Ct),
1575
- h("rect", {
1576
- onClick: t[6] ||= (e) => G("BR"),
1577
- x: B.value.centerX,
1578
- y: B.value.centerY,
1579
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1580
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1581
- fill: "transparent",
1582
- class: v({
1583
- "vue-data-ui-zoom-plus": !A.value && W.value,
1584
- "vue-data-ui-zoom-minus": A.value && W.value
1585
- })
1586
- }, null, 10, wt),
1587
- h("rect", {
1588
- onClick: t[7] ||= (e) => G("BL"),
1589
- x: B.value.left,
1590
- y: B.value.centerY,
1591
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1592
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1593
- fill: "transparent",
1594
- class: v({
1595
- "vue-data-ui-zoom-plus": !A.value && W.value,
1596
- "vue-data-ui-zoom-minus": A.value && W.value
1597
- })
1598
- }, null, 10, Tt)
1599
- ]),
1600
- N.value.style.chart.layout.labels.plotLabels.showAsTag ? (x(), m(u, { key: 7 }, [R.value.plotLabels.show ? (x(), m("g", Mt, [(x(!0), m(u, null, C(J.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 - N.value.style.chart.layout.labels.plotLabels.fontSize,
1606
- onMouseover: (r) => mr(e, n, t),
1607
- onMouseleave: (e) => hr(n, t),
1608
- onClick: (r) => gr(e, n, t)
1609
- }, [h("div", { style: b(`color:${E(ce)(e.color)};margin: 0 auto; font-size:${N.value.style.chart.layout.labels.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(J.value, (t, n) => (x(), m("g", null, [e.$slots.datapoint && !E(Mn) ? (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) => mr(t, r, n),
1619
- onMouseleave: (e) => hr(r, n),
1620
- onClick: (e) => gr(t, r, n)
1621
- }, [w(e.$slots, "datapoint", Re({ ref_for: !0 }, { datapoint: {
1622
- ...r,
1623
- onEnter: () => mr(t, r, n),
1624
- onLeave: () => hr(r, n),
1625
- onClick: () => gr(t, r, n),
1626
- isSelected: X.value && r.uid === X.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(N.value.style.chart.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(Mn) ? (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: () => mr(t, r, n),
1637
- onLeave: () => hr(r, n),
1638
- onClick: () => gr(t, r, n),
1639
- isSelected: X.value && r.uid === X.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: X.value && e.uid === X.value,
1643
- plot: e,
1644
- radius: N.value.style.chart.layout.plots.radius / (A.value ? 1.5 : 1),
1645
- shape: t.shape,
1646
- stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
1647
- strokeWidth: N.value.style.chart.layout.plots.outlineWidth,
1648
- onMouseenter: (r) => mr(t, e, n, "pointer"),
1649
- onMouseleave: (t) => hr(e, n),
1650
- onClick: (r) => gr(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(N.value.style.chart.layout.plots.radius / (A.value ? 1.5 : 1), 10),
1668
- fill: "transparent",
1669
- style: { "pointer-events": "none" }
1670
- }, null, 8, Ot)]))), 128))]))), 256)), R.value.plotLabels.show ? (x(), m("g", kt, [(x(!0), m(u, null, C(J.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 + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius,
1674
- "text-anchor": "middle",
1675
- "font-size": N.value.style.chart.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1676
- fill: N.value.style.chart.layout.labels.plotLabels.color,
1677
- innerHTML: E(a)({
1678
- content: String(e.name),
1679
- fontSize: N.value.style.chart.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1680
- fill: N.value.style.chart.layout.labels.plotLabels.color,
1681
- x: e.x,
1682
- y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius
1683
- })
1684
- }, null, 8, jt)) : (x(), m("text", {
1685
- key: 0,
1686
- x: e.x,
1687
- y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius,
1688
- "text-anchor": "middle",
1689
- "font-size": N.value.style.chart.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1690
- fill: N.value.style.chart.layout.labels.plotLabels.color
1691
- }, T(e.name), 9, At))]))), 256))]))), 256))])) : p("", !0)], 64)),
1692
- A.value ? (x(), m("g", Pt, [
1693
- H.value === "TL" ? (x(), m("polygon", {
1694
- key: 0,
1695
- points: `${B.value.left - 1},${B.value.centerY} ${B.value.centerX},${B.value.centerY} ${B.value.centerX},${B.value.top - 1} ${B.value.right},${B.value.top - 1} ${B.value.right},${B.value.bottom} ${B.value.left - 1},${B.value.bottom} ${B.value.left - 1},${B.value.centerY}`,
1696
- fill: N.value.style.chart.backgroundColor,
1697
- style: { opacity: "1" }
1698
- }, null, 8, Ft)) : p("", !0),
1699
- H.value === "TR" ? (x(), m("polygon", {
1700
- key: 1,
1701
- points: `${B.value.left},${B.value.top - 1} ${B.value.centerX},${B.value.top - 1} ${B.value.centerX},${B.value.centerY} ${B.value.right + 1},${B.value.centerY} ${B.value.right + 1},${B.value.bottom} ${B.value.left},${B.value.bottom} ${B.value.left},${B.value.top - 1}`,
1702
- fill: N.value.style.chart.backgroundColor,
1703
- style: { opacity: "1" }
1704
- }, null, 8, It)) : p("", !0),
1705
- H.value === "BR" ? (x(), m("polygon", {
1706
- key: 2,
1707
- points: `${B.value.left},${B.value.top} ${B.value.right + 1},${B.value.top} ${B.value.right + 1},${B.value.centerY} ${B.value.centerX},${B.value.centerY} ${B.value.centerX},${B.value.bottom + 1} ${B.value.left},${B.value.bottom + 1} ${B.value.left},${B.value.top}`,
1708
- fill: N.value.style.chart.backgroundColor,
1709
- style: { opacity: "1" }
1710
- }, null, 8, Lt)) : p("", !0),
1711
- H.value === "BL" ? (x(), m("polygon", {
1712
- key: 3,
1713
- points: `${B.value.left - 1},${B.value.top} ${B.value.right},${B.value.top} ${B.value.right},${B.value.bottom + 1} ${B.value.centerX},${B.value.bottom + 1} ${B.value.centerX},${B.value.centerY} ${B.value.left - 1},${B.value.centerY} ${B.value.left - 1},${B.value.top}`,
1714
- fill: N.value.style.chart.backgroundColor,
1715
- style: { opacity: "1" }
1716
- }, null, 8, Rt)) : p("", !0)
1717
- ])) : p("", !0),
1718
- H.value && !qn.value ? (x(), m("g", zt, [h("text", {
1719
- x: U.value.x,
1720
- y: U.value.y - U.value.fontSize / 1.5,
1721
- "font-size": U.value.fontSize / 1.5,
1722
- fill: U.value.fill,
1723
- "text-anchor": "middle",
1724
- "font-weight": U.value.bold ? "bold" : "normal"
1725
- }, T(U.value.text), 9, Bt)])) : p("", !0),
1726
- A.value && H.value ? (x(), m("g", Vt, [
1727
- h("rect", {
1728
- x: Z.value[H.value].tl.x,
1729
- y: Z.value[H.value].tl.y,
1730
- height: "20",
1731
- width: "20",
1732
- fill: Z.value[H.value].tl.fill,
1733
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "TL" ? 1 : .2}`),
1734
- onClick: t[8] ||= (e) => G("TL"),
1735
- class: v({
1736
- "vue-ui-quadrant-mini-map-cell": !0,
1737
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "TL"
1738
- })
1739
- }, null, 14, Ht),
1740
- h("rect", {
1741
- x: Z.value[H.value].tr.x,
1742
- y: Z.value[H.value].tr.y,
1743
- height: "20",
1744
- width: "20",
1745
- fill: Z.value[H.value].tr.fill,
1746
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "TR" ? 1 : .2}`),
1747
- onClick: t[9] ||= (e) => G("TR"),
1748
- class: v({
1749
- "vue-ui-quadrant-mini-map-cell": !0,
1750
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "TR"
1751
- })
1752
- }, null, 14, Ut),
1753
- h("rect", {
1754
- x: Z.value[H.value].br.x,
1755
- y: Z.value[H.value].br.y,
1756
- height: "20",
1757
- width: "20",
1758
- fill: Z.value[H.value].br.fill,
1759
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "BR" ? 1 : .2}`),
1760
- onClick: t[10] ||= (e) => G("BR"),
1761
- class: v({
1762
- "vue-ui-quadrant-mini-map-cell": !0,
1763
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "BR"
1764
- })
1765
- }, null, 14, Wt),
1766
- h("rect", {
1767
- x: Z.value[H.value].bl.x,
1768
- y: Z.value[H.value].bl.y,
1769
- height: "20",
1770
- width: "20",
1771
- fill: Z.value[H.value].bl.fill,
1772
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "BL" ? 1 : .2}`),
1773
- onClick: t[11] ||= (e) => G("BL"),
1774
- class: v({
1775
- "vue-ui-quadrant-mini-map-cell": !0,
1776
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "BL"
1777
- })
1778
- }, null, 14, Gt),
1779
- h("path", {
1780
- class: "vue-ui-quadrant-minimap-crosshairs",
1781
- stroke: N.value.style.chart.backgroundColor,
1782
- "stroke-width": 1,
1783
- d: Z.value[H.value].crosshairs.horizontal
1784
- }, null, 8, Kt),
1785
- h("path", {
1786
- class: "vue-ui-quadrant-minimap-crosshairs",
1787
- stroke: N.value.style.chart.backgroundColor,
1788
- "stroke-width": 1,
1789
- d: Z.value[H.value].crosshairs.vertical
1790
- }, null, 8, qt)
1791
- ])) : p("", !0),
1792
- w(e.$slots, "svg", { svg: {
1793
- ...B.value,
1794
- isPrintingImg: E(Bn) || E(Vn) || E(Mr),
1795
- isPrintingSvg: E(Nr)
1796
- } }, void 0, !0)
1797
- ], 46, Ze)), e.$slots.hint ? (x(), m("div", Jt, [w(e.$slots, "hint", y(_({
1798
- hint: N.value.a11y.translations.keyboardNavigation,
1799
- isVisible: An.value
1800
- })), void 0, !0)])) : p("", !0)]),
1801
- e.$slots.watermark ? (x(), m("div", Yt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Bn) || E(Vn) || E(Mr) || E(Nr) })), void 0, !0)])) : p("", !0),
1802
- h("div", { id: `legend-bottom-${k.value}` }, null, 8, Xt),
1803
- wn.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Pe, {
1804
- key: 6,
1805
- to: N.value.style.chart.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: Y.value }, () => [N.value.style.chart.legend.show ? (x(), f(Me, {
1810
- key: `legend_${Cn.value}`,
1811
- legendSet: Y.value,
1812
- config: cr.value,
1813
- isCursorPointer: P.value,
1814
- onClickMarker: t[12] ||= ({ legend: e }) => ir(e.id)
1815
- }, {
1816
- item: D(({ legend: e }) => [E(Mn) ? p("", !0) : (x(), m("div", {
1817
- key: 0,
1818
- onClick: (t) => ir(e.id),
1819
- style: b(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
1820
- }, T(e.name), 13, Zt))]),
1821
- legendToggle: D(() => [Y.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !E(Mn) ? (x(), f(Oe, {
1822
- key: 0,
1823
- backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1824
- color: N.value.style.chart.legend.selectAllToggle.color,
1825
- fontSize: N.value.style.chart.legend.fontSize,
1826
- checked: q.value.length > 0,
1827
- isCursorPointer: P.value,
1828
- onToggle: rr
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: N.value.style.chart.tooltip.teleportTo,
1850
- show: R.value.showTooltip && mn.value,
1851
- backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1852
- color: N.value.style.chart.tooltip.color,
1853
- borderRadius: N.value.style.chart.tooltip.borderRadius,
1854
- borderColor: N.value.style.chart.tooltip.borderColor,
1855
- borderWidth: N.value.style.chart.tooltip.borderWidth,
1856
- fontSize: N.value.style.chart.tooltip.fontSize,
1857
- backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1858
- position: N.value.style.chart.tooltip.position,
1859
- offsetX: N.value.style.chart.tooltip.offsetX,
1860
- offsetY: N.value.style.chart.tooltip.offsetY,
1861
- parent: j.value,
1862
- content: hn.value,
1863
- isFullscreen: Q.value,
1864
- isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1865
- smooth: N.value.style.chart.tooltip.smooth,
1866
- backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1867
- smoothForce: N.value.style.chart.tooltip.smoothForce,
1868
- smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1869
- isA11yMode: kn.value === "keyboard",
1870
- a11yPosition: On.value
1871
- }, {
1872
- "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...dr.value })), void 0, !0)]),
1873
- tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...dr.value })), void 0, !0)]),
1874
- "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...dr.value })), void 0, !0)]),
1875
- default: D(() => [N.value.style.chart.tooltip.showShape ? (x(), m("svg", Qt, [Le(Ce, {
1876
- plot: {
1877
- x: 10,
1878
- y: 10
1879
- },
1880
- shape: ur.value.shape,
1881
- color: ur.value.color,
1882
- radius: 8,
1883
- stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
1884
- "stroke-width": N.value.style.chart.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.userOptions.buttons.table ? (x(), f(He(Dr.value.component), Re({ key: 8 }, Dr.value.props, {
1917
- ref_key: "tableUnit",
1918
- ref: Tn,
1919
- onClose: Or
1920
- }), Fe({
1921
- content: D(() => [(x(), f(E(rn), {
1922
- key: `table_${Sn.value}`,
1923
- colNames: nr.value.colNames,
1924
- head: nr.value.head,
1925
- body: nr.value.body,
1926
- config: nr.value.config,
1927
- title: N.value.table.useDialog ? "" : Dr.value.title,
1928
- withCloseButton: !N.value.table.useDialog,
1929
- isCursorPointer: P.value,
1930
- onClose: Or
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
- }, [N.value.table.useDialog ? {
1946
- name: "title",
1947
- fn: D(() => [Ie(T(Dr.value.title), 1)]),
1948
- key: "0"
1949
- } : void 0, N.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) => yr(N.value.userOptions.callbacks.csv),
1955
- style: b({ cursor: P.value ? "pointer" : "default" })
1956
- }, [Le(E(tn), {
1957
- name: "fileCsv",
1958
- stroke: Dr.value.props.color
1959
- }, null, 8, ["stroke"])], 4)]),
1960
- key: "1"
1961
- } : void 0]), 1040)) : p("", !0),
1962
- w(e.$slots, "skeleton", {}, () => [E(Mn) ? (x(), f(_e, { key: 0 })) : p("", !0)], !0)
1963
- ], 46, qe));
1964
- }
1965
- }, [["__scopeId", "data-v-295a1f9e"]]);
1966
- //#endregion
1967
- export { Ke as n, en as t };