vue-data-ui 3.22.8 → 3.22.10

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