vue-data-ui 3.25.11 → 3.25.13

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