vue-data-ui 3.22.9 → 3.22.11

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