vue-data-ui 3.25.4 → 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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -1,1965 +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-CyCVHo81.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-D4zsdacF.js").then((e) => e.n)), rn = g(() => import("./DataTable-COIO9gi4.js")), an = g(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), on = g(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), sn = g(() => import("./PackageVersion-5SWftabm.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
- onClose: Tr
1190
- }, {
1191
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1192
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
1193
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
1194
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
1195
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
1196
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
1197
- _: 3
1198
- }, 8, [
1199
- "svgRef",
1200
- "backgroundColor",
1201
- "color",
1202
- "active",
1203
- "isCursorPointer"
1204
- ])) : p("", !0),
1205
- Wn.value ? (x(), m("div", {
1206
- key: 2,
1207
- ref_key: "noTitle",
1208
- ref: bn,
1209
- class: "vue-data-ui-no-title-space",
1210
- style: "height:36px; width: 100%;background:transparent"
1211
- }, null, 512)) : p("", !0),
1212
- N.value.style.chart.title.text ? (x(), m("div", {
1213
- key: 3,
1214
- ref_key: "chartTitle",
1215
- ref: _n,
1216
- style: "width:100%;background:transparent;padding-bottom:12px"
1217
- }, [(x(), f(Se, {
1218
- key: `table_${xn.value}`,
1219
- config: {
1220
- title: {
1221
- cy: "quadrant-title",
1222
- ...N.value.style.chart.title
1223
- },
1224
- subtitle: {
1225
- cy: "quadrant-subtitle",
1226
- ...N.value.style.chart.title.subtitle
1227
- }
1228
- }
1229
- }, null, 8, ["config"]))], 512)) : p("", !0),
1230
- h("div", { id: `legend-top-${k.value}` }, null, 8, Ye),
1231
- N.value.userOptions.show && fn.value && (E(In) || E(Pn)) ? (x(), f(E(on), {
1232
- ref_key: "userOptionsRef",
1233
- ref: En,
1234
- key: `user_options_${gn.value}`,
1235
- backgroundColor: N.value.style.chart.backgroundColor,
1236
- color: N.value.style.chart.color,
1237
- isImaging: E(Vn),
1238
- isPrinting: E(Bn),
1239
- uid: k.value,
1240
- hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
1241
- hasPdf: N.value.userOptions.buttons.pdf,
1242
- hasImg: N.value.userOptions.buttons.img,
1243
- hasSvg: N.value.userOptions.buttons.svg,
1244
- hasXls: N.value.userOptions.buttons.csv,
1245
- hasTable: N.value.userOptions.buttons.table,
1246
- hasLabel: N.value.userOptions.buttons.labels,
1247
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
1248
- hasAltCopy: N.value.userOptions.buttons.altCopy,
1249
- isFullscreen: Q.value,
1250
- isTooltip: R.value.showTooltip,
1251
- titles: { ...N.value.userOptions.buttonTitles },
1252
- chartElement: j.value,
1253
- position: N.value.userOptions.position,
1254
- hasAnnotator: N.value.userOptions.buttons.annotator,
1255
- isAnnotation: wr.value,
1256
- callbacks: N.value.userOptions.callbacks,
1257
- printScale: N.value.userOptions.print.scale,
1258
- tableDialog: N.value.table.useDialog,
1259
- isCursorPointer: P.value,
1260
- onToggleFullscreen: br,
1261
- onGeneratePdf: E(Hn),
1262
- onGenerateCsv: yr,
1263
- onGenerateImage: E(Fr),
1264
- onGenerateSvg: E(Pr),
1265
- onToggleTable: xr,
1266
- onToggleLabels: Sr,
1267
- onToggleTooltip: Cr,
1268
- onToggleAnnotator: Tr,
1269
- onCopyAlt: Ir,
1270
- style: b({ visibility: E(In) ? E(Pn) ? "visible" : "hidden" : "visible" })
1271
- }, Fe({ _: 2 }, [
1272
- e.$slots.menuIcon ? {
1273
- name: "menuIcon",
1274
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
1275
- isOpen: t,
1276
- color: n
1277
- })), void 0, !0)]),
1278
- key: "0"
1279
- } : void 0,
1280
- e.$slots.optionTooltip ? {
1281
- name: "optionTooltip",
1282
- fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1283
- key: "1"
1284
- } : void 0,
1285
- e.$slots.optionPdf ? {
1286
- name: "optionPdf",
1287
- fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1288
- key: "2"
1289
- } : void 0,
1290
- e.$slots.optionCsv ? {
1291
- name: "optionCsv",
1292
- fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
1293
- key: "3"
1294
- } : void 0,
1295
- e.$slots.optionImg ? {
1296
- name: "optionImg",
1297
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1298
- key: "4"
1299
- } : void 0,
1300
- e.$slots.optionSvg ? {
1301
- name: "optionSvg",
1302
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1303
- key: "5"
1304
- } : void 0,
1305
- e.$slots.optionTable ? {
1306
- name: "optionTable",
1307
- fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
1308
- key: "6"
1309
- } : void 0,
1310
- e.$slots.optionLabels ? {
1311
- name: "optionLabels",
1312
- fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
1313
- key: "7"
1314
- } : void 0,
1315
- e.$slots.optionFullscreen ? {
1316
- name: "optionFullscreen",
1317
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
1318
- toggleFullscreen: t,
1319
- isFullscreen: n
1320
- })), void 0, !0)]),
1321
- key: "8"
1322
- } : void 0,
1323
- e.$slots.optionAnnotator ? {
1324
- name: "optionAnnotator",
1325
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1326
- toggleAnnotator: t,
1327
- isAnnotator: n
1328
- })), void 0, !0)]),
1329
- key: "9"
1330
- } : void 0,
1331
- e.$slots.optionAltCopy ? {
1332
- name: "optionAltCopy",
1333
- fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1334
- key: "10"
1335
- } : void 0,
1336
- e.$slots["custom-menu-before"] ? {
1337
- name: "custom-menu-before",
1338
- fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1339
- key: "11"
1340
- } : void 0,
1341
- e.$slots["custom-menu-after"] ? {
1342
- name: "custom-menu-after",
1343
- fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1344
- key: "12"
1345
- } : void 0
1346
- ]), 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),
1347
- h("div", Xe, [(x(), m("svg", {
1348
- ref_key: "svgRef",
1349
- ref: F,
1350
- xmlns: E(le),
1351
- "aria-describedby": `chart-instructions-${k.value}`,
1352
- class: v({
1353
- "vue-data-ui-fullscreen--on": Q.value,
1354
- "vue-data-ui-fulscreen--off": !Q.value
1355
- }),
1356
- viewBox: `${V.value.startX} ${V.value.startY} ${V.value.width} ${V.value.height}`,
1357
- style: b(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
1358
- id: `svg_${k.value}`,
1359
- tabindex: "0",
1360
- onFocus: Lr,
1361
- onBlur: Rr,
1362
- onKeydown: zr
1363
- }, [
1364
- Le(E(sn)),
1365
- e.$slots["chart-background"] ? (x(), m("foreignObject", {
1366
- key: 0,
1367
- x: V.value.startX,
1368
- y: V.value.startY,
1369
- width: V.value.width,
1370
- height: V.value.height,
1371
- style: { pointerEvents: "none" }
1372
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : p("", !0),
1373
- h("defs", null, [(x(!0), m(u, null, C(J.value, (e, t) => (x(), f(De, {
1374
- t: "radial",
1375
- cx: "50%",
1376
- cy: "50%",
1377
- r: "50%",
1378
- fx: "50%",
1379
- fy: "50%",
1380
- id: `quadrant_gradient_${k.value}_${t}`,
1381
- key: `quadrant_gradient_${k.value}_${t}`,
1382
- stops: [[
1383
- "0%",
1384
- E(s)(E(ne)(e.color, .05), N.value.style.chart.layout.areas.opacity),
1385
- 1
1386
- ], [
1387
- "100%",
1388
- E(s)(e.color, N.value.style.chart.layout.areas.opacity),
1389
- 1
1390
- ]]
1391
- }, null, 8, ["id", "stops"]))), 128))]),
1392
- N.value.style.chart.layout.grid.graduations.show ? (x(), m("g", $e, [(x(!0), m(u, null, C(Yn.value, (e) => (x(), m("rect", {
1393
- fill: N.value.style.chart.layout.grid.graduations.fill ? E(s)(N.value.style.chart.layout.grid.graduations.color, e.opacity) : "none",
1394
- x: e.x,
1395
- y: e.y,
1396
- height: e.height <= 0 ? .001 : e.height,
1397
- width: e.width <= 0 ? .001 : e.width,
1398
- "stroke-width": N.value.style.chart.layout.grid.graduations.strokeWidth,
1399
- stroke: N.value.style.chart.layout.grid.graduations.stroke,
1400
- rx: N.value.style.chart.layout.grid.graduations.roundingForce
1401
- }, null, 8, et))), 256))])) : p("", !0),
1402
- h("line", {
1403
- x1: B.value.left,
1404
- y1: B.value.centerY,
1405
- x2: B.value.right,
1406
- y2: B.value.centerY,
1407
- stroke: N.value.style.chart.layout.grid.stroke,
1408
- "stroke-width": N.value.style.chart.layout.grid.strokeWidth
1409
- }, null, 8, tt),
1410
- h("line", {
1411
- x1: B.value.centerX,
1412
- y1: B.value.top,
1413
- x2: B.value.centerX,
1414
- y2: B.value.bottom,
1415
- stroke: N.value.style.chart.layout.grid.stroke,
1416
- "stroke-width": N.value.style.chart.layout.grid.strokeWidth
1417
- }, null, 8, nt),
1418
- N.value.style.chart.layout.grid.showArrows ? (x(), m("g", rt, [
1419
- h("polygon", {
1420
- points: `${B.value.right - 8},${B.value.centerY - 6} ${B.value.right},${B.value.centerY} ${B.value.right - 8},${B.value.centerY + 6}`,
1421
- fill: N.value.style.chart.layout.grid.stroke,
1422
- stroke: "none"
1423
- }, null, 8, it),
1424
- h("polygon", {
1425
- points: `${B.value.left + 8},${B.value.centerY - 6} ${B.value.left},${B.value.centerY} ${B.value.left + 8},${B.value.centerY + 6}`,
1426
- fill: N.value.style.chart.layout.grid.stroke,
1427
- stroke: "none"
1428
- }, null, 8, at),
1429
- h("polygon", {
1430
- points: `${B.value.centerX - 6},${B.value.top + 8} ${B.value.centerX},${B.value.top} ${B.value.centerX + 6},${B.value.top + 8}`,
1431
- fill: N.value.style.chart.layout.grid.stroke,
1432
- stroke: "none"
1433
- }, null, 8, ot),
1434
- h("polygon", {
1435
- points: `${B.value.centerX - 6},${B.value.bottom - 8} ${B.value.centerX},${B.value.bottom} ${B.value.centerX + 6},${B.value.bottom - 8}`,
1436
- fill: N.value.style.chart.layout.grid.stroke,
1437
- stroke: "none"
1438
- }, null, 8, st)
1439
- ])) : p("", !0),
1440
- N.value.style.chart.layout.labels.quadrantLabels.show && !A.value ? (x(), m("g", ct, [
1441
- N.value.style.chart.layout.labels.quadrantLabels.tl.text ? (x(), m("text", {
1442
- key: 0,
1443
- x: 0,
1444
- y: B.value.top - B.value.padding / 2,
1445
- "text-anchor": "start",
1446
- fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color,
1447
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
1448
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
1449
- onClick: t[0] ||= (e) => _r("tl")
1450
- }, T(N.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, lt)) : p("", !0),
1451
- N.value.style.chart.layout.labels.quadrantLabels.tr.text ? (x(), m("text", {
1452
- key: 1,
1453
- x: B.value.width,
1454
- y: B.value.top - B.value.padding / 2,
1455
- "text-anchor": "end",
1456
- fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color,
1457
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
1458
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
1459
- onClick: t[1] ||= (e) => _r("tr")
1460
- }, T(N.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, ut)) : p("", !0),
1461
- N.value.style.chart.layout.labels.quadrantLabels.br.text ? (x(), m("text", {
1462
- key: 2,
1463
- x: B.value.width,
1464
- y: B.value.bottom + B.value.padding * .7,
1465
- "text-anchor": "end",
1466
- fill: N.value.style.chart.layout.labels.quadrantLabels.br.color,
1467
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
1468
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
1469
- onClick: t[2] ||= (e) => _r("br")
1470
- }, T(N.value.style.chart.layout.labels.quadrantLabels.br.text), 13, dt)) : p("", !0),
1471
- N.value.style.chart.layout.labels.quadrantLabels.bl.text ? (x(), m("text", {
1472
- key: 3,
1473
- x: 0,
1474
- y: B.value.bottom + B.value.padding * .7,
1475
- "text-anchor": "start",
1476
- fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color,
1477
- "font-size": N.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
1478
- style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
1479
- onClick: t[3] ||= (e) => _r("bl")
1480
- }, T(N.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, ft)) : p("", !0)
1481
- ])) : p("", !0),
1482
- N.value.style.chart.layout.labels.axisLabels.show ? (x(), m("g", pt, [
1483
- N.value.style.chart.layout.grid.yAxis.show ? (x(), m("text", {
1484
- key: 0,
1485
- x: B.value.centerX,
1486
- y: B.value.top - B.value.padding / 6,
1487
- "text-anchor": "middle",
1488
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1489
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1490
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.y.formatter, K.value.y.max, E(c)({
1491
- v: K.value.y.max,
1492
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1493
- }))), 9, mt)) : p("", !0),
1494
- h("text", {
1495
- x: B.value.centerX,
1496
- y: B.value.top - B.value.padding / 2,
1497
- "text-anchor": "middle",
1498
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1499
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1500
- }, T(N.value.style.chart.layout.grid.yAxis.name), 9, ht),
1501
- N.value.style.chart.layout.grid.yAxis.show ? (x(), m("text", {
1502
- key: 1,
1503
- x: B.value.centerX,
1504
- y: B.value.bottom + B.value.padding * .35,
1505
- "text-anchor": "middle",
1506
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1507
- fill: N.value.style.chart.layout.labels.axisLabels.color.negative
1508
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.y.formatter, K.value.y.min, E(c)({
1509
- v: K.value.y.min,
1510
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1511
- }))), 9, gt)) : p("", !0),
1512
- N.value.style.chart.layout.grid.xAxis.show ? (x(), m("text", {
1513
- key: 2,
1514
- id: `xLabelMin_${k.value}`,
1515
- "text-anchor": "middle",
1516
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1517
- transform: `translate(${B.value.padding - N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(-90)`,
1518
- fill: N.value.style.chart.layout.labels.axisLabels.color.negative
1519
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.x.formatter, K.value.x.min, E(c)({
1520
- v: K.value.x.min,
1521
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1522
- }))), 9, _t)) : p("", !0),
1523
- N.value.style.chart.layout.grid.xAxis.show ? (x(), m("text", {
1524
- key: 3,
1525
- id: `xLabelMax_${k.value}`,
1526
- "text-anchor": "middle",
1527
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1528
- transform: `translate(${B.value.width - B.value.padding + N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(90)`,
1529
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1530
- }, T(E(l)(N.value.style.chart.layout.labels.plotLabels.x.formatter, K.value.x.max, E(c)({
1531
- v: K.value.x.max,
1532
- r: N.value.style.chart.layout.labels.plotLabels.rounding
1533
- }))), 9, vt)) : p("", !0),
1534
- h("text", {
1535
- id: `xLabelMaxName_${k.value}`,
1536
- "text-anchor": "middle",
1537
- "font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
1538
- transform: `translate(${B.value.width - N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(90)`,
1539
- fill: N.value.style.chart.layout.labels.axisLabels.color.positive
1540
- }, T(N.value.style.chart.layout.grid.xAxis.name), 9, yt)
1541
- ])) : p("", !0),
1542
- 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", {
1543
- key: 0,
1544
- "data-cy-quadrant-area": "",
1545
- 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),
1546
- points: E(de)(e)
1547
- }, null, 8, xt)) : p("", !0)]))), 256))])) : p("", !0),
1548
- h("g", null, [
1549
- h("rect", {
1550
- onClick: t[4] ||= (e) => G("TL"),
1551
- x: B.value.left,
1552
- y: B.value.top,
1553
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1554
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1555
- fill: "transparent",
1556
- class: v({
1557
- "vue-data-ui-zoom-plus": !A.value && W.value,
1558
- "vue-data-ui-zoom-minus": A.value && W.value
1559
- })
1560
- }, null, 10, St),
1561
- h("rect", {
1562
- onClick: t[5] ||= (e) => G("TR"),
1563
- x: B.value.centerX,
1564
- y: B.value.top,
1565
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1566
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1567
- fill: "transparent",
1568
- class: v({
1569
- "vue-data-ui-zoom-plus": !A.value && W.value,
1570
- "vue-data-ui-zoom-minus": A.value && W.value
1571
- })
1572
- }, null, 10, Ct),
1573
- h("rect", {
1574
- onClick: t[6] ||= (e) => G("BR"),
1575
- x: B.value.centerX,
1576
- y: B.value.centerY,
1577
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1578
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1579
- fill: "transparent",
1580
- class: v({
1581
- "vue-data-ui-zoom-plus": !A.value && W.value,
1582
- "vue-data-ui-zoom-minus": A.value && W.value
1583
- })
1584
- }, null, 10, wt),
1585
- h("rect", {
1586
- onClick: t[7] ||= (e) => G("BL"),
1587
- x: B.value.left,
1588
- y: B.value.centerY,
1589
- width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
1590
- height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
1591
- fill: "transparent",
1592
- class: v({
1593
- "vue-data-ui-zoom-plus": !A.value && W.value,
1594
- "vue-data-ui-zoom-minus": A.value && W.value
1595
- })
1596
- }, null, 10, Tt)
1597
- ]),
1598
- 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", {
1599
- style: { overflow: "visible" },
1600
- height: "10",
1601
- width: "100",
1602
- x: n.x - 50,
1603
- y: n.y - N.value.style.chart.layout.labels.plotLabels.fontSize,
1604
- onMouseover: (r) => mr(e, n, t),
1605
- onMouseleave: (e) => hr(n, t),
1606
- onClick: (r) => gr(e, n, t)
1607
- }, [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", {
1608
- x: r.x - 1,
1609
- y: r.y - 1,
1610
- width: "2",
1611
- height: "2",
1612
- style: {
1613
- overflow: "visible",
1614
- "pointer-events": "none"
1615
- },
1616
- onMouseenter: (e) => mr(t, r, n),
1617
- onMouseleave: (e) => hr(r, n),
1618
- onClick: (e) => gr(t, r, n)
1619
- }, [w(e.$slots, "datapoint", Re({ ref_for: !0 }, { datapoint: {
1620
- ...r,
1621
- onEnter: () => mr(t, r, n),
1622
- onLeave: () => hr(r, n),
1623
- onClick: () => gr(t, r, n),
1624
- isSelected: X.value && r.uid === X.value
1625
- } }), void 0, !0)], 40, Et)), h("circle", {
1626
- "data-a11y-plot-id": r.uid,
1627
- cx: r.x,
1628
- cy: r.y,
1629
- r: Math.max(N.value.style.chart.layout.plots.radius / (A.value ? 1.5 : 1), 10),
1630
- fill: "transparent",
1631
- style: { "pointer-events": "none" }
1632
- }, 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: {
1633
- ...r,
1634
- onEnter: () => mr(t, r, n),
1635
- onLeave: () => hr(r, n),
1636
- onClick: () => gr(t, r, n),
1637
- isSelected: X.value && r.uid === X.value
1638
- } }), void 0, !0)]))), 128)) : (x(!0), m(u, { key: 2 }, C(t.series, (e, r) => (x(), m("g", { key: e.uid }, [Le(Ce, {
1639
- color: t.color,
1640
- isSelected: X.value && e.uid === X.value,
1641
- plot: e,
1642
- radius: N.value.style.chart.layout.plots.radius / (A.value ? 1.5 : 1),
1643
- shape: t.shape,
1644
- stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
1645
- strokeWidth: N.value.style.chart.layout.plots.outlineWidth,
1646
- onMouseenter: (r) => mr(t, e, n, "pointer"),
1647
- onMouseleave: (t) => hr(e, n),
1648
- onClick: (r) => gr(t, e, n)
1649
- }, null, 8, [
1650
- "color",
1651
- "isSelected",
1652
- "plot",
1653
- "radius",
1654
- "shape",
1655
- "stroke",
1656
- "strokeWidth",
1657
- "onMouseenter",
1658
- "onMouseleave",
1659
- "onClick"
1660
- ]), h("circle", {
1661
- "data-dom-to-png-ignore": "",
1662
- "data-a11y-plot-id": e.uid,
1663
- cx: e.x,
1664
- cy: e.y,
1665
- r: Math.max(N.value.style.chart.layout.plots.radius / (A.value ? 1.5 : 1), 10),
1666
- fill: "transparent",
1667
- style: { "pointer-events": "none" }
1668
- }, 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", {
1669
- key: 1,
1670
- x: e.x,
1671
- y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius,
1672
- "text-anchor": "middle",
1673
- "font-size": N.value.style.chart.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1674
- fill: N.value.style.chart.layout.labels.plotLabels.color,
1675
- innerHTML: E(a)({
1676
- content: String(e.name),
1677
- fontSize: N.value.style.chart.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1678
- fill: N.value.style.chart.layout.labels.plotLabels.color,
1679
- x: e.x,
1680
- y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius
1681
- })
1682
- }, null, 8, jt)) : (x(), m("text", {
1683
- key: 0,
1684
- x: e.x,
1685
- y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius,
1686
- "text-anchor": "middle",
1687
- "font-size": N.value.style.chart.layout.labels.plotLabels.fontSize / (A.value ? 1.5 : 1),
1688
- fill: N.value.style.chart.layout.labels.plotLabels.color
1689
- }, T(e.name), 9, At))]))), 256))]))), 256))])) : p("", !0)], 64)),
1690
- A.value ? (x(), m("g", Pt, [
1691
- H.value === "TL" ? (x(), m("polygon", {
1692
- key: 0,
1693
- 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}`,
1694
- fill: N.value.style.chart.backgroundColor,
1695
- style: { opacity: "1" }
1696
- }, null, 8, Ft)) : p("", !0),
1697
- H.value === "TR" ? (x(), m("polygon", {
1698
- key: 1,
1699
- 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}`,
1700
- fill: N.value.style.chart.backgroundColor,
1701
- style: { opacity: "1" }
1702
- }, null, 8, It)) : p("", !0),
1703
- H.value === "BR" ? (x(), m("polygon", {
1704
- key: 2,
1705
- 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}`,
1706
- fill: N.value.style.chart.backgroundColor,
1707
- style: { opacity: "1" }
1708
- }, null, 8, Lt)) : p("", !0),
1709
- H.value === "BL" ? (x(), m("polygon", {
1710
- key: 3,
1711
- 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}`,
1712
- fill: N.value.style.chart.backgroundColor,
1713
- style: { opacity: "1" }
1714
- }, null, 8, Rt)) : p("", !0)
1715
- ])) : p("", !0),
1716
- H.value && !qn.value ? (x(), m("g", zt, [h("text", {
1717
- x: U.value.x,
1718
- y: U.value.y - U.value.fontSize / 1.5,
1719
- "font-size": U.value.fontSize / 1.5,
1720
- fill: U.value.fill,
1721
- "text-anchor": "middle",
1722
- "font-weight": U.value.bold ? "bold" : "normal"
1723
- }, T(U.value.text), 9, Bt)])) : p("", !0),
1724
- A.value && H.value ? (x(), m("g", Vt, [
1725
- h("rect", {
1726
- x: Z.value[H.value].tl.x,
1727
- y: Z.value[H.value].tl.y,
1728
- height: "20",
1729
- width: "20",
1730
- fill: Z.value[H.value].tl.fill,
1731
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "TL" ? 1 : .2}`),
1732
- onClick: t[8] ||= (e) => G("TL"),
1733
- class: v({
1734
- "vue-ui-quadrant-mini-map-cell": !0,
1735
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "TL"
1736
- })
1737
- }, null, 14, Ht),
1738
- h("rect", {
1739
- x: Z.value[H.value].tr.x,
1740
- y: Z.value[H.value].tr.y,
1741
- height: "20",
1742
- width: "20",
1743
- fill: Z.value[H.value].tr.fill,
1744
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "TR" ? 1 : .2}`),
1745
- onClick: t[9] ||= (e) => G("TR"),
1746
- class: v({
1747
- "vue-ui-quadrant-mini-map-cell": !0,
1748
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "TR"
1749
- })
1750
- }, null, 14, Ut),
1751
- h("rect", {
1752
- x: Z.value[H.value].br.x,
1753
- y: Z.value[H.value].br.y,
1754
- height: "20",
1755
- width: "20",
1756
- fill: Z.value[H.value].br.fill,
1757
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "BR" ? 1 : .2}`),
1758
- onClick: t[10] ||= (e) => G("BR"),
1759
- class: v({
1760
- "vue-ui-quadrant-mini-map-cell": !0,
1761
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "BR"
1762
- })
1763
- }, null, 14, Wt),
1764
- h("rect", {
1765
- x: Z.value[H.value].bl.x,
1766
- y: Z.value[H.value].bl.y,
1767
- height: "20",
1768
- width: "20",
1769
- fill: Z.value[H.value].bl.fill,
1770
- style: b(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "BL" ? 1 : .2}`),
1771
- onClick: t[11] ||= (e) => G("BL"),
1772
- class: v({
1773
- "vue-ui-quadrant-mini-map-cell": !0,
1774
- "vue-ui-quadrant-mini-map-cell-selectable": H.value !== "BL"
1775
- })
1776
- }, null, 14, Gt),
1777
- h("path", {
1778
- class: "vue-ui-quadrant-minimap-crosshairs",
1779
- stroke: N.value.style.chart.backgroundColor,
1780
- "stroke-width": 1,
1781
- d: Z.value[H.value].crosshairs.horizontal
1782
- }, null, 8, Kt),
1783
- h("path", {
1784
- class: "vue-ui-quadrant-minimap-crosshairs",
1785
- stroke: N.value.style.chart.backgroundColor,
1786
- "stroke-width": 1,
1787
- d: Z.value[H.value].crosshairs.vertical
1788
- }, null, 8, qt)
1789
- ])) : p("", !0),
1790
- w(e.$slots, "svg", { svg: {
1791
- ...B.value,
1792
- isPrintingImg: E(Bn) || E(Vn) || E(Mr),
1793
- isPrintingSvg: E(Nr)
1794
- } }, void 0, !0)
1795
- ], 46, Ze)), e.$slots.hint ? (x(), m("div", Jt, [w(e.$slots, "hint", y(_({
1796
- hint: N.value.a11y.translations.keyboardNavigation,
1797
- isVisible: An.value
1798
- })), void 0, !0)])) : p("", !0)]),
1799
- 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),
1800
- h("div", { id: `legend-bottom-${k.value}` }, null, 8, Xt),
1801
- wn.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Pe, {
1802
- key: 6,
1803
- to: N.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1804
- }, [h("div", {
1805
- ref_key: "chartLegend",
1806
- ref: vn
1807
- }, [w(e.$slots, "legend", { legend: Y.value }, () => [N.value.style.chart.legend.show ? (x(), f(Me, {
1808
- key: `legend_${Cn.value}`,
1809
- legendSet: Y.value,
1810
- config: cr.value,
1811
- isCursorPointer: P.value,
1812
- onClickMarker: t[12] ||= ({ legend: e }) => ir(e.id)
1813
- }, {
1814
- item: D(({ legend: e }) => [E(Mn) ? p("", !0) : (x(), m("div", {
1815
- key: 0,
1816
- onClick: (t) => ir(e.id),
1817
- style: b(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
1818
- }, T(e.name), 13, Zt))]),
1819
- legendToggle: D(() => [Y.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !E(Mn) ? (x(), f(Oe, {
1820
- key: 0,
1821
- backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1822
- color: N.value.style.chart.legend.selectAllToggle.color,
1823
- fontSize: N.value.style.chart.legend.fontSize,
1824
- checked: q.value.length > 0,
1825
- isCursorPointer: P.value,
1826
- onToggle: rr
1827
- }, null, 8, [
1828
- "backgroundColor",
1829
- "color",
1830
- "fontSize",
1831
- "checked",
1832
- "isCursorPointer"
1833
- ])) : p("", !0)]),
1834
- _: 1
1835
- }, 8, [
1836
- "legendSet",
1837
- "config",
1838
- "isCursorPointer"
1839
- ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1840
- e.$slots.source ? (x(), m("div", {
1841
- key: 7,
1842
- ref_key: "source",
1843
- ref: yn,
1844
- dir: "auto"
1845
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1846
- Le(E(en), {
1847
- teleportTo: N.value.style.chart.tooltip.teleportTo,
1848
- show: R.value.showTooltip && mn.value,
1849
- backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1850
- color: N.value.style.chart.tooltip.color,
1851
- borderRadius: N.value.style.chart.tooltip.borderRadius,
1852
- borderColor: N.value.style.chart.tooltip.borderColor,
1853
- borderWidth: N.value.style.chart.tooltip.borderWidth,
1854
- fontSize: N.value.style.chart.tooltip.fontSize,
1855
- backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1856
- position: N.value.style.chart.tooltip.position,
1857
- offsetX: N.value.style.chart.tooltip.offsetX,
1858
- offsetY: N.value.style.chart.tooltip.offsetY,
1859
- parent: j.value,
1860
- content: hn.value,
1861
- isFullscreen: Q.value,
1862
- isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1863
- smooth: N.value.style.chart.tooltip.smooth,
1864
- backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1865
- smoothForce: N.value.style.chart.tooltip.smoothForce,
1866
- smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1867
- isA11yMode: kn.value === "keyboard",
1868
- a11yPosition: On.value
1869
- }, {
1870
- "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...dr.value })), void 0, !0)]),
1871
- tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...dr.value })), void 0, !0)]),
1872
- "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...dr.value })), void 0, !0)]),
1873
- default: D(() => [N.value.style.chart.tooltip.showShape ? (x(), m("svg", Qt, [Le(Ce, {
1874
- plot: {
1875
- x: 10,
1876
- y: 10
1877
- },
1878
- shape: ur.value.shape,
1879
- color: ur.value.color,
1880
- radius: 8,
1881
- stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
1882
- "stroke-width": N.value.style.chart.layout.plots.outlineWidth
1883
- }, null, 8, [
1884
- "shape",
1885
- "color",
1886
- "stroke",
1887
- "stroke-width"
1888
- ])])) : p("", !0)]),
1889
- _: 3
1890
- }, 8, [
1891
- "teleportTo",
1892
- "show",
1893
- "backgroundColor",
1894
- "color",
1895
- "borderRadius",
1896
- "borderColor",
1897
- "borderWidth",
1898
- "fontSize",
1899
- "backgroundOpacity",
1900
- "position",
1901
- "offsetX",
1902
- "offsetY",
1903
- "parent",
1904
- "content",
1905
- "isFullscreen",
1906
- "isCustom",
1907
- "smooth",
1908
- "backdropFilter",
1909
- "smoothForce",
1910
- "smoothSnapThreshold",
1911
- "isA11yMode",
1912
- "a11yPosition"
1913
- ]),
1914
- fn.value && N.value.userOptions.buttons.table ? (x(), f(He(Dr.value.component), Re({ key: 8 }, Dr.value.props, {
1915
- ref_key: "tableUnit",
1916
- ref: Tn,
1917
- onClose: Or
1918
- }), Fe({
1919
- content: D(() => [(x(), f(E(rn), {
1920
- key: `table_${Sn.value}`,
1921
- colNames: nr.value.colNames,
1922
- head: nr.value.head,
1923
- body: nr.value.body,
1924
- config: nr.value.config,
1925
- title: N.value.table.useDialog ? "" : Dr.value.title,
1926
- withCloseButton: !N.value.table.useDialog,
1927
- isCursorPointer: P.value,
1928
- onClose: Or
1929
- }, {
1930
- th: D(({ th: e }) => [Ie(T(e), 1)]),
1931
- td: D(({ td: e }) => [h("div", { innerHTML: e.name || e }, null, 8, $t)]),
1932
- _: 1
1933
- }, 8, [
1934
- "colNames",
1935
- "head",
1936
- "body",
1937
- "config",
1938
- "title",
1939
- "withCloseButton",
1940
- "isCursorPointer"
1941
- ]))]),
1942
- _: 2
1943
- }, [N.value.table.useDialog ? {
1944
- name: "title",
1945
- fn: D(() => [Ie(T(Dr.value.title), 1)]),
1946
- key: "0"
1947
- } : void 0, N.value.table.useDialog ? {
1948
- name: "actions",
1949
- fn: D(() => [h("button", {
1950
- tabindex: "0",
1951
- class: "vue-ui-user-options-button",
1952
- onClick: t[13] ||= (e) => yr(N.value.userOptions.callbacks.csv),
1953
- style: b({ cursor: P.value ? "pointer" : "default" })
1954
- }, [Le(E(tn), {
1955
- name: "fileCsv",
1956
- stroke: Dr.value.props.color
1957
- }, null, 8, ["stroke"])], 4)]),
1958
- key: "1"
1959
- } : void 0]), 1040)) : p("", !0),
1960
- w(e.$slots, "skeleton", {}, () => [E(Mn) ? (x(), f(_e, { key: 0 })) : p("", !0)], !0)
1961
- ], 46, qe));
1962
- }
1963
- }, [["__scopeId", "data-v-19c0755a"]]);
1964
- //#endregion
1965
- export { Ke as n, en as t };