vue-data-ui 3.5.2 → 3.7.0

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 (199) hide show
  1. package/README.md +36 -27
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
  5. package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
  8. package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +5 -0
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +303 -9
  90. package/dist/types/vue-ui-stackline.d.ts +18 -0
  91. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  92. package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
  93. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  94. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  95. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  96. package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
  97. package/dist/vue-data-ui.js +226 -204
  98. package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  99. package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  100. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  101. package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  102. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  103. package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  104. package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  105. package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  106. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  107. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  108. package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  109. package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  110. package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
  111. package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  112. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  113. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  114. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  115. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  116. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  117. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  118. package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  119. package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  120. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  121. package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  122. package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  123. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  124. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  125. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  126. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  127. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  128. package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  129. package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  130. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  131. package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  132. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  133. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  134. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  135. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  136. package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  137. package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  138. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  139. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  140. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  141. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  142. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  143. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  144. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  145. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  146. package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  147. package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
  148. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  149. package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  150. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  151. package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  152. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  153. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  154. package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  155. package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  156. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  157. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  158. package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
  159. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  160. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  161. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  162. package/package.json +5 -5
  163. package/dist/themes-AUNCOb2G.js +0 -53
  164. package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
  165. package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
  166. package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
  167. package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
  168. package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
  169. package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
  170. package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
  171. package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
  172. package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
  173. package/dist/vue-ui-gauge-DAk72bez.js +0 -835
  174. package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
  175. package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
  176. package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
  177. package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
  178. package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
  179. package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
  180. package/dist/vue-ui-radar-BSfxyur3.js +0 -984
  181. package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
  182. package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
  183. package/dist/vue-ui-rings-C96aj57d.js +0 -855
  184. package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
  185. package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
  186. package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
  187. package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
  188. package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
  189. package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
  190. package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
  191. package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
  192. package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
  193. package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
  194. package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
  195. package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
  196. package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
  197. package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
  198. package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
@@ -1,1204 +0,0 @@
1
- import { defineAsyncComponent as P, ref as v, shallowRef as Ue, computed as h, onMounted as Rt, onBeforeUnmount as Bt, toRefs as Yt, watch as K, watchEffect as Ht, createElementBlock as n, openBlock as o, unref as u, normalizeStyle as L, normalizeClass as X, renderSlot as y, createBlock as F, createCommentVNode as d, createElementVNode as S, createVNode as xe, withCtx as f, normalizeProps as $, guardReactiveProps as _, createSlots as We, Fragment as b, renderList as k, toDisplayString as O, Teleport as Et, resolveDynamicComponent as Ut, mergeProps as Wt, createTextVNode as je, nextTick as jt } from "vue";
2
- import { c as Ge, o as Ve, f as qe, g as Gt, t as Vt, e as qt, h as Jt, p as ee, m as Je, a as Y, d as H, X as Qt, S as Zt, U as Kt, M as el, J as tl, R, b as ll, O as te, P as al, Q as sl, G as ol } from "./lib-C_mNZmhD.js";
3
- import { t as Qe, u as nl } from "./useResponsive-DfdjqQps.js";
4
- import { u as rl, a as Ze } from "./useNestedProp-CReNavA0.js";
5
- import { u as il, B as ul } from "./BaseScanner-BgWxam9d.js";
6
- import { u as cl } from "./usePrinter-DTzqpYKF.js";
7
- import { u as vl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as hl } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as yl } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import fl from "./img-BecE5qXd.js";
12
- import xl from "./Title-BzH_LEA3.js";
13
- import { t as pl } from "./themes-AUNCOb2G.js";
14
- import gl from "./Legend-G6GMcdAc.js";
15
- import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const bl = ["id"], kl = ["id"], wl = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], Al = { key: 1 }, Sl = ["id"], $l = ["stop-color"], _l = ["stop-color"], Tl = ["stop-color"], Ll = { key: 2 }, Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = { key: 3 }, Ol = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Il = ["x", "y", "fill", "font-size"], Nl = ["transform", "font-size", "fill", "font-weight"], Pl = { key: 6 }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = { key: 7 }, Xl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Rl = ["transform", "fill", "font-size", "text-anchor"], Bl = ["x", "y", "font-size", "fill", "font-weight"], Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = ["d", "stroke", "stroke-width"], Ul = ["d", "stroke", "stroke-width"], Wl = ["cx", "cy", "fill", "r"], jl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Gl = { key: 1 }, Vl = ["x", "y", "font-size", "fill", "font-weight"], ql = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Jl = { key: 2 }, Ql = ["x", "y", "font-size", "font-weight", "fill"], Zl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Kl = {
17
- key: 4,
18
- class: "vue-data-ui-watermark"
19
- }, ea = ["id"], ta = ["onClick"], la = ["innerHTML"], aa = {
20
- __name: "vue-ui-history-plot",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Array,
30
- default() {
31
- return [];
32
- }
33
- }
34
- },
35
- emits: ["selectLegend", "selectDatapoint"],
36
- setup(Ke, { expose: et, emit: tt }) {
37
- const lt = P(() => import("./Tooltip-oWCO1HKy.js")), at = P(() => import("./BaseIcon-BmMbm4d0.js")), st = P(() => import("./vue-ui-accordion-BmFTVF1a.js")), ot = P(() => import("./DataTable-BT7VF2ua.js")), nt = P(() => import("./PenAndPaper-SZQIAgkg.js")), rt = P(() => import("./UserOptions-CGnQt6Fd.js")), it = P(() => import("./PackageVersion-Y7t79Jtq.js")), ut = P(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_history_plot: ct } = rl(), x = Ke, M = v(null), pe = v(null), ge = v(0), me = v(null), be = v(0), ke = v(0), we = v(0), I = Ue(null), B = Ue(null), Ce = v(null), z = v(Ge()), le = v(!1), ae = v(""), m = v([]), E = v(!1), A = v(null), U = v(!1), Ae = v(null), Se = v(!1), W = v(null), se = v(null), oe = v(null), ne = v(null), G = v(null), re = v(null), V = h({
38
- get: () => !!x.dataset && x.dataset.length,
39
- set: (t) => t
40
- }), $e = tt;
41
- Rt(() => {
42
- Se.value = !0, Te();
43
- });
44
- const _e = h(() => !!e.value.debug);
45
- function Te() {
46
- if (Ve(x.dataset) ? (qe({
47
- componentName: "VueUiHistoryPlot",
48
- type: "dataset",
49
- debug: _e.value
50
- }), ue.value = !0) : x.dataset.forEach((t, a) => {
51
- Gt({
52
- datasetObject: t,
53
- requiredAttributes: ["name", "values"]
54
- }).forEach((l) => {
55
- V.value = !1, qe({
56
- componentName: "VueUiHistoryPlot",
57
- type: "datasetSerieAttribute",
58
- property: l,
59
- index: a,
60
- debug: _e.value
61
- });
62
- });
63
- }), Ve(x.dataset) || (ue.value = e.value.loading), e.value.responsive) {
64
- const t = Qe(() => {
65
- const { width: a, height: l } = nl({
66
- chart: M.value,
67
- title: e.value.style.chart.title.text ? pe.value : null,
68
- noTitle: Ce.value,
69
- legend: e.value.style.chart.legend.show ? me.value : null,
70
- source: Ae.value
71
- });
72
- requestAnimationFrame(() => {
73
- p.value.width = a, p.value.height = l, e.value.responsiveProportionalSizing ? (r.value.plots = R({
74
- relator: Math.min(a, l),
75
- adjuster: 600,
76
- source: e.value.style.chart.plots.radius,
77
- threshold: 3,
78
- fallback: 3
79
- }), r.value.indexLabels = R({
80
- relator: Math.min(a, l),
81
- adjuster: 600,
82
- source: e.value.style.chart.plots.indexLabels.fontSize,
83
- threshold: 6,
84
- fallback: 6
85
- }), r.value.labels = R({
86
- relator: Math.min(a, l),
87
- adjuster: 600,
88
- source: e.value.style.chart.plots.labels.fontSize,
89
- threshold: 6,
90
- fallback: 6
91
- }), r.value.xAxisLabels = R({
92
- relator: Math.min(a, l),
93
- adjuster: 600,
94
- source: e.value.style.chart.axes.x.labels.fontSize,
95
- threshold: 6,
96
- fallback: 6
97
- }), r.value.xAxisName = R({
98
- relator: Math.min(a, l),
99
- adjuster: 600,
100
- source: e.value.style.chart.axes.x.name.fontSize,
101
- threshold: 6,
102
- fallback: 6
103
- }), r.value.yAxisLabels = R({
104
- relator: Math.min(a, l),
105
- adjuster: 600,
106
- source: e.value.style.chart.axes.y.labels.fontSize,
107
- threshold: 6,
108
- fallback: 6
109
- }), r.value.yAxisName = R({
110
- relator: Math.min(a, l),
111
- adjuster: 600,
112
- source: e.value.style.chart.axes.y.name.fontSize,
113
- threshold: 6,
114
- fallback: 6
115
- })) : (r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
116
- });
117
- });
118
- I.value && (B.value && I.value.unobserve(B.value), I.value.disconnect()), I.value = new ResizeObserver(t), B.value = M.value.parentNode, I.value.observe(B.value);
119
- }
120
- }
121
- Bt(() => {
122
- I.value && (B.value && I.value.unobserve(B.value), I.value.disconnect());
123
- });
124
- function ie() {
125
- const t = Ze({
126
- userConfig: x.config,
127
- defaultConfig: ct
128
- });
129
- let a = {};
130
- return t.theme ? a = {
131
- ...Ze({
132
- userConfig: pl.vue_ui_history_plot[t.theme] || x.config,
133
- defaultConfig: t
134
- }),
135
- customPalette: ll[t.theme] || ee
136
- } : a = t, x.config && te(x.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = x.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, x.config && te(x.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = x.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, x.config && te(x.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = x.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, x.config && te(x.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = x.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
137
- }
138
- const e = v(ie()), { loading: N, FINAL_DATASET: vt, manualLoading: ue } = il({
139
- ...Yt(x),
140
- FINAL_CONFIG: e,
141
- prepareConfig: ie,
142
- skeletonDataset: [
143
- {
144
- name: "",
145
- color: "#CACACA",
146
- values: [
147
- { label: "", x: 1, y: 9 },
148
- { label: "", x: 4, y: 1 },
149
- { label: "", x: 7, y: 9 },
150
- { label: "", x: 9, y: 4 }
151
- ]
152
- }
153
- ],
154
- skeletonConfig: Vt({
155
- defaultConfig: e.value,
156
- userConfig: {
157
- userOptions: { show: !1 },
158
- table: { show: !1 },
159
- style: {
160
- chart: {
161
- backgroundColor: "#99999930",
162
- axes: {
163
- x: {
164
- scaleMin: 0,
165
- scaleMax: 10,
166
- labels: { show: !1 },
167
- name: { text: "" }
168
- },
169
- y: {
170
- scaleMin: 0,
171
- scaleMax: 10,
172
- labels: { show: !1 },
173
- name: { text: "" }
174
- }
175
- },
176
- grid: {
177
- xAxis: {
178
- stroke: "#6A6A6A"
179
- },
180
- horizontalLines: {
181
- stroke: "#6A6A6A50"
182
- },
183
- yAxis: {
184
- stroke: "#6A6A6A"
185
- },
186
- verticalLines: {
187
- stroke: "#6A6A6A50"
188
- }
189
- },
190
- legend: {
191
- backgroundColor: "transparent"
192
- },
193
- paths: {
194
- useSerieColor: !1,
195
- stroke: "#6A6A6A"
196
- },
197
- plots: {
198
- stroke: "#6A6A6A",
199
- indexLabels: { show: !1 },
200
- labels: { show: !1 }
201
- }
202
- }
203
- }
204
- }
205
- })
206
- }), { userOptionsVisible: ce, setUserOptionsVisibility: Le, keepUserOptionState: Me } = hl({ config: e.value }), { svgRef: ve } = dl({ config: e.value.style.chart.title });
207
- K(() => x.config, (t) => {
208
- N.value || (e.value = ie()), ce.value = !e.value.userOptions.showOnChartHover, Te(), ge.value += 1, ke.value += 1, be.value += 1, p.value.height = e.value.style.chart.height, p.value.width = e.value.style.chart.width, r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
209
- }, { deep: !0 }), K(() => x.dataset, (t) => {
210
- Array.isArray(t) && t.length > 0 && (ue.value = !1);
211
- }, { deep: !0 });
212
- const { isPrinting: ze, isImaging: Oe, generatePdf: Ie, generateImage: Ne } = cl({
213
- elementId: `history_plot_${z.value}`,
214
- fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
215
- options: e.value.userOptions.print
216
- }), ht = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = h(() => qt(e.value.customPalette)), C = v({
217
- showTable: e.value.table.show,
218
- showTooltip: e.value.style.chart.tooltip.show
219
- });
220
- K(e, () => {
221
- C.value = {
222
- showTable: e.value.table.show,
223
- showTooltip: e.value.style.chart.tooltip.show
224
- };
225
- }, { immediate: !0 });
226
- const p = v({
227
- height: e.value.style.chart.height,
228
- width: e.value.style.chart.width
229
- }), yt = h(() => p.value.width), ft = h(() => p.value.height);
230
- function xt() {
231
- let t = 0;
232
- re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((i, s) => {
233
- const w = s.getComputedTextLength();
234
- return w > i ? w : i;
235
- }, 0));
236
- const a = ne.value ? ne.value.getBoundingClientRect().width : 0;
237
- return t + a + (a ? 24 : 0);
238
- }
239
- const Pe = v(0), pt = Qe((t) => {
240
- Pe.value = t;
241
- });
242
- Ht((t) => {
243
- const a = G.value;
244
- if (!a) return;
245
- const l = new ResizeObserver((i) => {
246
- pt(i[0].contentRect.height);
247
- });
248
- l.observe(a), t(() => l.disconnect());
249
- });
250
- const Fe = h(() => {
251
- let t = 0;
252
- oe.value && (t = oe.value.getBBox().height + r.value.xAxisName / 2);
253
- let a = 0;
254
- return G.value && (a = Pe.value), t + a;
255
- }), c = h(() => {
256
- const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = xt(), i = e.value.style.chart.plots.radius;
257
- return {
258
- left: t + l + e.value.style.chart.axes.y.name.offsetX,
259
- top: a + i,
260
- right: p.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
261
- bottom: p.value.height - e.value.style.chart.padding.bottom - Fe.value - i - e.value.style.chart.axes.x.name.offsetY,
262
- width: p.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
263
- height: p.value.height - a - e.value.style.chart.padding.bottom - Fe.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
264
- };
265
- }), r = v({
266
- plots: e.value.style.chart.plots.radius,
267
- indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
268
- labels: e.value.style.chart.plots.labels.fontSize,
269
- xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
270
- xAxisName: e.value.style.chart.axes.x.name.fontSize,
271
- yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
272
- yAxisName: e.value.style.chart.axes.y.name.fontSize
273
- }), T = h(() => vt.value.map((t, a) => ({
274
- ...t,
275
- color: t.color ? Jt(t.color) : dt.value[a] || ee[a] || ee[a % ee.length],
276
- seriesIndex: a
277
- }))), gt = h(() => Math.max(...T.value.filter((t) => !m.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), mt = h(() => {
278
- const t = Math.min(...T.value.filter((a) => !m.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
279
- return t < 0 ? t : 0;
280
- }), bt = h(() => Math.max(...T.value.filter((t) => !m.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), kt = h(() => {
281
- const t = Math.min(...T.value.filter((a) => !m.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
282
- return t < 0 ? t : 0;
283
- }), g = h(() => {
284
- const t = Je(
285
- e.value.style.chart.axes.x.scaleMin === null ? mt.value : e.value.style.chart.axes.x.scaleMin,
286
- e.value.style.chart.axes.x.scaleMax === null ? gt.value : e.value.style.chart.axes.x.scaleMax,
287
- e.value.style.chart.axes.x.ticks
288
- ), a = Je(
289
- e.value.style.chart.axes.y.scaleMin === null ? kt.value : e.value.style.chart.axes.y.scaleMin,
290
- e.value.style.chart.axes.y.scaleMax === null ? bt.value : e.value.style.chart.axes.y.scaleMax,
291
- e.value.style.chart.axes.y.ticks
292
- );
293
- return {
294
- x: t,
295
- y: a,
296
- tickX: t.ticks.map((l) => ({
297
- x: c.value.left + (l - t.min) / (t.max - t.min) * c.value.width,
298
- y1: c.value.top,
299
- y2: c.value.bottom,
300
- value: l
301
- })),
302
- tickY: a.ticks.map((l) => ({
303
- y: c.value.bottom - (l - a.min) / (a.max - a.min) * c.value.height,
304
- x1: c.value.left,
305
- x2: c.value.right,
306
- value: l
307
- }))
308
- };
309
- });
310
- function wt(t) {
311
- const a = g.value.x.min < 0 ? Math.abs(g.value.x.min) : g.value.x.min > 0 ? -g.value.x.min : 0;
312
- return c.value.left + ((t || 0) + a) / (g.value.x.max + a) * c.value.width;
313
- }
314
- function Ct(t) {
315
- const a = g.value.y.min < 0 ? Math.abs(g.value.y.min) : g.value.y.min > 0 ? -g.value.y.min : 0;
316
- return c.value.bottom - ((t || 0) + a) / (g.value.y.max + a) * c.value.height;
317
- }
318
- const D = h(() => T.value.filter((t) => !m.value.includes(t.seriesIndex)).map((t, a) => {
319
- const l = t.values.map((s, w) => ({
320
- valueX: s.x,
321
- valueY: s.y,
322
- label: s.label,
323
- x: wt(s.x),
324
- y: Ct(s.y),
325
- color: t.color,
326
- seriesName: t.name,
327
- id: Ge()
328
- })), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
329
- return {
330
- ...t,
331
- plots: l,
332
- path: `M${i}`
333
- };
334
- }));
335
- function q(t) {
336
- m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t);
337
- }
338
- function De(t) {
339
- if (!T.value.length)
340
- return e.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null;
341
- const a = T.value.find((l) => l.name === t);
342
- return a || (e.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${t}"`), null);
343
- }
344
- function At(t) {
345
- const a = De(t);
346
- a !== null && m.value.includes(a.seriesIndex) && q(a.seriesIndex);
347
- }
348
- function St(t) {
349
- const a = De(t);
350
- a !== null && (m.value.includes(a.seriesIndex) || q(a.seriesIndex));
351
- }
352
- const he = h(() => T.value.map((t) => ({
353
- ...t,
354
- opacity: m.value.includes(t.seriesIndex) ? 0.5 : 1,
355
- segregate: () => q(t.seriesIndex),
356
- isSegregated: m.value.includes(t.seriesIndex),
357
- shape: "circle"
358
- }))), $t = h(() => ({
359
- cy: "history-plot-div-legend",
360
- backgroundColor: e.value.style.chart.legend.backgroundColor,
361
- color: e.value.style.chart.legend.color,
362
- fontSize: e.value.style.chart.legend.fontSize,
363
- paddingBottom: 12,
364
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
365
- }));
366
- function _t({ datapoint: t, plotIndex: a, seriesIndex: l }) {
367
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), $e("selectDatapoint", t);
368
- }
369
- function Xe(t) {
370
- $e("selectLegend", {
371
- ...t,
372
- isSegregated: !t.isSegregated,
373
- opacity: t.isSegregated ? 1 : 0.5
374
- });
375
- }
376
- function Re(t) {
377
- E.value = t, we.value += 1;
378
- }
379
- const de = v(null);
380
- function Tt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
381
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), le.value = !1, A.value = null;
382
- }
383
- function Lt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
384
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), de.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: T.value }, A.value = t;
385
- const i = e.value.style.chart.tooltip.customFormat;
386
- if (U.value = !1, ol(i))
387
- try {
388
- const s = i({
389
- seriesIndex: l,
390
- datapoint: t,
391
- plotIndex: a,
392
- series: T.value,
393
- config: e.value
394
- });
395
- typeof s == "string" && (ae.value = s, U.value = !0);
396
- } catch {
397
- console.warn("Custom format cannot be applied."), U.value = !1;
398
- }
399
- if (!U.value) {
400
- let s = "";
401
- s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${Y(
402
- e.value.style.chart.axes.x.labels.formatter,
403
- t.valueX,
404
- H({
405
- p: e.value.style.chart.axes.x.labels.prefix,
406
- v: t.valueX,
407
- s: e.value.style.chart.axes.x.labels.suffix,
408
- r: e.value.style.chart.axes.x.labels.rounding
409
- })
410
- )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${Y(
411
- e.value.style.chart.axes.y.labels.formatter,
412
- t.valueY,
413
- H({
414
- p: e.value.style.chart.axes.y.labels.prefix,
415
- v: t.valueY,
416
- s: e.value.style.chart.axes.y.labels.suffix,
417
- r: e.value.style.chart.axes.y.labels.rounding
418
- })
419
- )}</div>`, ae.value = `<div>${s}</div>`;
420
- }
421
- le.value = !0;
422
- }
423
- h(() => ({ head: D.value.map((a) => ({
424
- name: a.name,
425
- color: a.color
426
- })) }));
427
- const J = h(() => {
428
- const t = [
429
- e.value.table.columnNames.series,
430
- e.value.table.columnNames.datapoint,
431
- e.value.table.columnNames.x,
432
- e.value.table.columnNames.y
433
- ], a = D.value.flatMap((i) => i.plots.map((s) => [
434
- {
435
- color: s.color,
436
- name: s.seriesName
437
- },
438
- s.label,
439
- Y(
440
- e.value.style.chart.axes.x.labels.formatter,
441
- s.valueX,
442
- H({
443
- p: e.value.style.chart.axes.x.labels.prefix,
444
- v: s.valueX,
445
- s: e.value.style.chart.axes.x.labels.suffix,
446
- r: e.value.style.chart.axes.x.labels.rounding
447
- })
448
- ),
449
- Y(
450
- e.value.style.chart.axes.y.labels.formatter,
451
- s.valueY,
452
- H({
453
- p: e.value.style.chart.axes.y.labels.prefix,
454
- v: s.valueY,
455
- s: e.value.style.chart.axes.y.labels.suffix,
456
- r: e.value.style.chart.axes.y.labels.rounding
457
- })
458
- )
459
- ])), l = {
460
- th: {
461
- backgroundColor: e.value.table.th.backgroundColor,
462
- color: e.value.table.th.color,
463
- outline: e.value.table.th.outline
464
- },
465
- td: {
466
- backgroundColor: e.value.table.td.backgroundColor,
467
- color: e.value.table.td.color,
468
- outline: e.value.table.td.outline
469
- },
470
- breakpoint: e.value.table.responsiveBreakpoint
471
- };
472
- return {
473
- head: t,
474
- body: a,
475
- config: l,
476
- colNames: t
477
- };
478
- });
479
- function ye(t = null) {
480
- jt(() => {
481
- const a = [
482
- [e.value.table.columnNames.series],
483
- [e.value.table.columnNames.datapoint],
484
- [e.value.table.columnNames.x],
485
- [e.value.table.columnNames.y]
486
- ], l = D.value.flatMap((w) => w.plots.map((Z) => [
487
- [Z.seriesName],
488
- [Z.label],
489
- [Z.valueX],
490
- [Z.valueY]
491
- ])), i = [
492
- [e.value.style.chart.title.text],
493
- [e.value.style.chart.title.subtitle.text],
494
- a
495
- ].concat(l), s = al(i);
496
- t ? t(s) : sl({
497
- csvContent: s,
498
- title: e.value.style.chart.title.text || "vue-ui-history-plot"
499
- });
500
- });
501
- }
502
- const Q = v(!1);
503
- function fe() {
504
- Q.value = !Q.value;
505
- }
506
- function Be() {
507
- C.value.showTable = !C.value.showTable;
508
- }
509
- function Ye() {
510
- C.value.showTooltip = !C.value.showTooltip;
511
- }
512
- function Mt() {
513
- return D.value;
514
- }
515
- async function zt({ scale: t = 2 } = {}) {
516
- if (!M.value) return;
517
- const { width: a, height: l } = M.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: w } = await fl({ domElement: M.value, base64: !0, img: !0, scale: t });
518
- return {
519
- imageUri: s,
520
- base64: w,
521
- title: e.value.style.chart.title.text,
522
- width: a,
523
- height: l,
524
- aspectRatio: i
525
- };
526
- }
527
- const Ot = h(() => g.value.tickX), It = h(() => ({ start: 0, end: g.value.tickX.length }));
528
- yl({
529
- timeLabelsEls: G,
530
- timeLabels: Ot,
531
- slicer: It,
532
- configRef: e,
533
- rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
534
- autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
535
- isAutoSize: !1,
536
- width: yt,
537
- height: ft,
538
- targetClass: ".vue-ui-history-plot-x-axis-scale",
539
- rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
540
- });
541
- const j = h(() => {
542
- const t = e.value.table.useDialog && !e.value.table.show, a = C.value.showTable;
543
- return {
544
- component: t ? ut : st,
545
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
546
- props: t ? {
547
- backgroundColor: e.value.table.th.backgroundColor,
548
- color: e.value.table.th.color,
549
- headerColor: e.value.table.th.color,
550
- headerBg: e.value.table.th.backgroundColor,
551
- isFullscreen: E.value,
552
- fullscreenParent: M.value,
553
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
554
- } : {
555
- hideDetails: !0,
556
- config: {
557
- open: a,
558
- maxHeight: 1e4,
559
- body: {
560
- backgroundColor: e.value.style.chart.backgroundColor,
561
- color: e.value.style.chart.color
562
- },
563
- head: {
564
- backgroundColor: e.value.style.chart.backgroundColor,
565
- color: e.value.style.chart.color
566
- }
567
- }
568
- }
569
- };
570
- });
571
- K(() => C.value.showTable, (t) => {
572
- e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
573
- });
574
- function He() {
575
- C.value.showTable = !1, se.value && se.value.setTableIconState(!1);
576
- }
577
- const Nt = h(() => e.value.style.chart.backgroundColor), Pt = h(() => e.value.style.chart.legend), Ft = h(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: Xt } = vl({
578
- svg: ve,
579
- title: Ft,
580
- legend: Pt,
581
- legendItems: he,
582
- backgroundColor: Nt
583
- });
584
- async function Ee({ isCb: t }) {
585
- if (t) {
586
- const { blob: a, url: l, text: i, dataUrl: s } = await Xt();
587
- e.value.userOptions.callbacks.svg({ blob: a, url: l, text: i, dataUrl: s });
588
- } else
589
- Dt();
590
- }
591
- return et({
592
- getData: Mt,
593
- getImage: zt,
594
- generatePdf: Ie,
595
- generateCsv: ye,
596
- generateImage: Ne,
597
- generateSvg: Ee,
598
- hideSeries: St,
599
- showSeries: At,
600
- toggleTable: Be,
601
- toggleTooltip: Ye,
602
- toggleAnnotator: fe,
603
- toggleFullscreen: Re
604
- }), (t, a) => (o(), n("div", {
605
- id: `history_plot_${z.value}`,
606
- ref_key: "historyPlotChart",
607
- ref: M,
608
- class: X({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": E.value }),
609
- style: L(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
610
- onMouseenter: a[2] || (a[2] = () => u(Le)(!0)),
611
- onMouseleave: a[3] || (a[3] = () => u(Le)(!1))
612
- }, [
613
- y(t.$slots, "userConfig", {}, void 0, !0),
614
- e.value.userOptions.buttons.annotator ? (o(), F(u(nt), {
615
- key: 0,
616
- svgRef: u(ve),
617
- backgroundColor: e.value.style.chart.backgroundColor,
618
- color: e.value.style.chart.color,
619
- active: Q.value,
620
- onClose: fe
621
- }, {
622
- "annotator-action-close": f(() => [
623
- y(t.$slots, "annotator-action-close", {}, void 0, !0)
624
- ]),
625
- "annotator-action-color": f(({ color: l }) => [
626
- y(t.$slots, "annotator-action-color", $(_({ color: l })), void 0, !0)
627
- ]),
628
- "annotator-action-draw": f(({ mode: l }) => [
629
- y(t.$slots, "annotator-action-draw", $(_({ mode: l })), void 0, !0)
630
- ]),
631
- "annotator-action-undo": f(({ disabled: l }) => [
632
- y(t.$slots, "annotator-action-undo", $(_({ disabled: l })), void 0, !0)
633
- ]),
634
- "annotator-action-redo": f(({ disabled: l }) => [
635
- y(t.$slots, "annotator-action-redo", $(_({ disabled: l })), void 0, !0)
636
- ]),
637
- "annotator-action-delete": f(({ disabled: l }) => [
638
- y(t.$slots, "annotator-action-delete", $(_({ disabled: l })), void 0, !0)
639
- ]),
640
- _: 3
641
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
642
- ht.value ? (o(), n("div", {
643
- key: 1,
644
- ref_key: "noTitle",
645
- ref: Ce,
646
- class: "vue-data-ui-no-title-space",
647
- style: "height:36px; width: 100%;background:transparent"
648
- }, null, 512)) : d("", !0),
649
- e.value.style.chart.title.text ? (o(), n("div", {
650
- key: 2,
651
- ref_key: "chartTitle",
652
- ref: pe,
653
- class: "vue-ui-xy-title",
654
- style: L(`font-family:${e.value.style.fontFamily}`)
655
- }, [
656
- (o(), F(xl, {
657
- key: `title_${ge.value}`,
658
- config: {
659
- title: {
660
- cy: "history-plot-div-title",
661
- ...e.value.style.chart.title
662
- },
663
- subtitle: {
664
- cy: "history-plot-div-subtitle",
665
- ...e.value.style.chart.title.subtitle
666
- }
667
- }
668
- }, null, 8, ["config"]))
669
- ], 4)) : d("", !0),
670
- S("div", {
671
- id: `legend-top-${z.value}`
672
- }, null, 8, kl),
673
- e.value.userOptions.show && V.value && (u(Me) || u(ce)) ? (o(), F(u(rt), {
674
- ref_key: "userOptionsRef",
675
- ref: se,
676
- key: `user_option_${we.value}`,
677
- backgroundColor: e.value.style.chart.backgroundColor,
678
- color: e.value.style.chart.color,
679
- isPrinting: u(ze),
680
- isImaging: u(Oe),
681
- uid: z.value,
682
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
683
- hasPdf: e.value.userOptions.buttons.pdf,
684
- hasImg: e.value.userOptions.buttons.img,
685
- hasSvg: e.value.userOptions.buttons.svg,
686
- hasXls: e.value.userOptions.buttons.csv,
687
- hasTable: e.value.userOptions.buttons.table,
688
- hasLabel: !1,
689
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
690
- isFullscreen: E.value,
691
- chartElement: M.value,
692
- position: e.value.userOptions.position,
693
- isTooltip: C.value.showTooltip,
694
- titles: { ...e.value.userOptions.buttonTitles },
695
- hasAnnotator: e.value.userOptions.buttons.annotator,
696
- isAnnotation: Q.value,
697
- callbacks: e.value.userOptions.callbacks,
698
- printScale: e.value.userOptions.print.scale,
699
- tableDialog: e.value.table.useDialog,
700
- onToggleFullscreen: Re,
701
- onGeneratePdf: u(Ie),
702
- onGenerateCsv: ye,
703
- onGenerateImage: u(Ne),
704
- onGenerateSvg: Ee,
705
- onToggleTable: Be,
706
- onToggleTooltip: Ye,
707
- onToggleAnnotator: fe,
708
- style: L({
709
- visibility: u(Me) ? u(ce) ? "visible" : "hidden" : "visible"
710
- })
711
- }, We({ _: 2 }, [
712
- t.$slots.menuIcon ? {
713
- name: "menuIcon",
714
- fn: f(({ isOpen: l, color: i }) => [
715
- y(t.$slots, "menuIcon", $(_({ isOpen: l, color: i })), void 0, !0)
716
- ]),
717
- key: "0"
718
- } : void 0,
719
- t.$slots.optionTooltip ? {
720
- name: "optionTooltip",
721
- fn: f(() => [
722
- y(t.$slots, "optionTooltip", {}, void 0, !0)
723
- ]),
724
- key: "1"
725
- } : void 0,
726
- t.$slots.optionPdf ? {
727
- name: "optionPdf",
728
- fn: f(() => [
729
- y(t.$slots, "optionPdf", {}, void 0, !0)
730
- ]),
731
- key: "2"
732
- } : void 0,
733
- t.$slots.optionCsv ? {
734
- name: "optionCsv",
735
- fn: f(() => [
736
- y(t.$slots, "optionCsv", {}, void 0, !0)
737
- ]),
738
- key: "3"
739
- } : void 0,
740
- t.$slots.optionImg ? {
741
- name: "optionImg",
742
- fn: f(() => [
743
- y(t.$slots, "optionImg", {}, void 0, !0)
744
- ]),
745
- key: "4"
746
- } : void 0,
747
- t.$slots.optionSvg ? {
748
- name: "optionSvg",
749
- fn: f(() => [
750
- y(t.$slots, "optionSvg", {}, void 0, !0)
751
- ]),
752
- key: "5"
753
- } : void 0,
754
- t.$slots.optionTable ? {
755
- name: "optionTable",
756
- fn: f(() => [
757
- y(t.$slots, "optionTable", {}, void 0, !0)
758
- ]),
759
- key: "6"
760
- } : void 0,
761
- t.$slots.optionFullscreen ? {
762
- name: "optionFullscreen",
763
- fn: f(({ toggleFullscreen: l, isFullscreen: i }) => [
764
- y(t.$slots, "optionFullscreen", $(_({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
765
- ]),
766
- key: "7"
767
- } : void 0,
768
- t.$slots.optionAnnotator ? {
769
- name: "optionAnnotator",
770
- fn: f(({ toggleAnnotator: l, isAnnotator: i }) => [
771
- y(t.$slots, "optionAnnotator", $(_({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
772
- ]),
773
- key: "8"
774
- } : void 0
775
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
776
- (o(), n("svg", {
777
- ref_key: "svgRef",
778
- ref: ve,
779
- xmlns: u(Qt),
780
- viewBox: `0 0 ${p.value.width < 0 ? 0.1 : p.value.width} ${p.value.height < 0 ? 0.1 : p.value.height}`,
781
- style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
782
- }, [
783
- xe(u(it)),
784
- t.$slots["chart-background"] ? (o(), n("foreignObject", {
785
- key: 0,
786
- x: c.value.left,
787
- y: c.value.top,
788
- width: c.value.width <= 0 ? 10 : c.value.width,
789
- height: c.value.height <= 0 ? 10 : c.value.height,
790
- style: {
791
- pointerEvents: "none"
792
- }
793
- }, [
794
- y(t.$slots, "chart-background", {}, void 0, !0)
795
- ], 8, Cl)) : d("", !0),
796
- e.value.style.chart.plots.gradient.show ? (o(), n("defs", Al, [
797
- (o(!0), n(b, null, k(D.value, (l, i) => (o(), n("radialGradient", {
798
- id: `gradient_${i}_${z.value}`,
799
- fy: "30%"
800
- }, [
801
- S("stop", {
802
- offset: "10%",
803
- "stop-color": u(Zt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
804
- }, null, 8, $l),
805
- S("stop", {
806
- offset: "90%",
807
- "stop-color": u(Kt)(l.color, 0.1)
808
- }, null, 8, _l),
809
- S("stop", {
810
- offset: "100%",
811
- "stop-color": l.color
812
- }, null, 8, Tl)
813
- ], 8, Sl))), 256))
814
- ])) : d("", !0),
815
- e.value.style.chart.grid.verticalLines.show ? (o(), n("g", Ll, [
816
- (o(!0), n(b, null, k(g.value.tickX, (l) => (o(), n("line", {
817
- x1: l.x,
818
- x2: l.x,
819
- y1: l.y1,
820
- y2: l.y2,
821
- stroke: e.value.style.chart.grid.verticalLines.stroke,
822
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
823
- "stroke-linecap": "round"
824
- }, null, 8, Ml))), 256))
825
- ])) : d("", !0),
826
- e.value.style.chart.axes.y.labels.show ? (o(), n("g", zl, [
827
- (o(!0), n(b, null, k(g.value.tickY, (l) => (o(), n("line", {
828
- stroke: e.value.style.chart.grid.verticalLines.stroke,
829
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
830
- "stroke-linecap": "round",
831
- x1: c.value.left - 5,
832
- x2: c.value.left,
833
- y1: l.y,
834
- y2: l.y
835
- }, null, 8, Ol))), 256))
836
- ])) : d("", !0),
837
- e.value.style.chart.axes.y.labels.show ? (o(), n("g", {
838
- key: 4,
839
- ref_key: "yAxisScales",
840
- ref: re
841
- }, [
842
- (o(!0), n(b, null, k(g.value.tickY, (l) => (o(), n("text", {
843
- x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
844
- y: l.y + r.value.yAxisLabels / 3,
845
- fill: e.value.style.chart.axes.y.labels.color,
846
- "font-size": r.value.yAxisLabels,
847
- "text-anchor": "end"
848
- }, O(u(Y)(
849
- e.value.style.chart.axes.y.labels.formatter,
850
- l.value,
851
- u(H)({
852
- p: e.value.style.chart.axes.y.labels.prefix,
853
- v: l.value,
854
- s: e.value.style.chart.axes.y.labels.suffix,
855
- r: e.value.style.chart.axes.y.labels.rounding
856
- })
857
- )), 9, Il))), 256))
858
- ], 512)) : d("", !0),
859
- e.value.style.chart.axes.y.name.text ? (o(), n("text", {
860
- key: 5,
861
- ref_key: "yAxisLabel",
862
- ref: ne,
863
- transform: `translate(${r.value.yAxisName}, ${p.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
864
- "font-size": r.value.yAxisName,
865
- fill: e.value.style.chart.axes.y.name.color,
866
- "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
867
- "text-anchor": "middle"
868
- }, O(e.value.style.chart.axes.y.name.text), 9, Nl)) : d("", !0),
869
- e.value.style.chart.grid.horizontalLines.show ? (o(), n("g", Pl, [
870
- (o(!0), n(b, null, k(g.value.tickY, (l) => (o(), n("line", {
871
- x1: l.x1,
872
- x2: l.x2,
873
- y1: l.y,
874
- y2: l.y,
875
- stroke: e.value.style.chart.grid.horizontalLines.stroke,
876
- "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
877
- "stroke-linecap": "round"
878
- }, null, 8, Fl))), 256))
879
- ])) : d("", !0),
880
- e.value.style.chart.axes.x.labels.show ? (o(), n("g", Dl, [
881
- (o(!0), n(b, null, k(g.value.tickX, (l) => (o(), n("line", {
882
- stroke: e.value.style.chart.grid.verticalLines.stroke,
883
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
884
- "stroke-linecap": "round",
885
- x1: l.x,
886
- x2: l.x,
887
- y1: c.value.bottom,
888
- y2: c.value.bottom + 5
889
- }, null, 8, Xl))), 256))
890
- ])) : d("", !0),
891
- e.value.style.chart.axes.x.labels.show ? (o(), n("g", {
892
- key: 8,
893
- ref_key: "xAxisScales",
894
- ref: G
895
- }, [
896
- (o(!0), n(b, null, k(g.value.tickX, (l) => (o(), n("text", {
897
- class: "vue-ui-history-plot-x-axis-scale",
898
- transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + r.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
899
- fill: e.value.style.chart.axes.x.labels.color,
900
- "font-size": r.value.xAxisLabels,
901
- "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
902
- }, O(u(Y)(
903
- e.value.style.chart.axes.x.labels.formatter,
904
- l.value,
905
- u(H)({
906
- p: e.value.style.chart.axes.x.labels.prefix,
907
- v: l.value,
908
- s: e.value.style.chart.axes.x.labels.suffix,
909
- r: e.value.style.chart.axes.x.labels.rounding
910
- })
911
- )), 9, Rl))), 256))
912
- ], 512)) : d("", !0),
913
- e.value.style.chart.axes.x.name.text ? (o(), n("text", {
914
- key: 9,
915
- ref_key: "xAxisLabel",
916
- ref: oe,
917
- x: p.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
918
- y: p.value.height,
919
- "font-size": r.value.xAxisName,
920
- fill: e.value.style.chart.axes.x.name.color,
921
- "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
922
- "text-anchor": "middle"
923
- }, O(e.value.style.chart.axes.x.name.text), 9, Bl)) : d("", !0),
924
- e.value.style.chart.grid.xAxis.show ? (o(), n("line", {
925
- key: 10,
926
- x1: c.value.left,
927
- x2: c.value.left + c.value.width,
928
- y1: c.value.bottom,
929
- y2: c.value.bottom,
930
- stroke: e.value.style.chart.grid.xAxis.stroke,
931
- "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
932
- "stroke-linecap": "round"
933
- }, null, 8, Yl)) : d("", !0),
934
- e.value.style.chart.grid.yAxis.show ? (o(), n("line", {
935
- key: 11,
936
- x1: c.value.left,
937
- x2: c.value.left,
938
- y1: c.value.top,
939
- y2: c.value.bottom,
940
- stroke: e.value.style.chart.grid.yAxis.stroke,
941
- "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
942
- "stroke-linecap": "round"
943
- }, null, 8, Hl)) : d("", !0),
944
- (o(!0), n(b, null, k(D.value, (l, i) => (o(), n("g", null, [
945
- e.value.style.chart.paths.show ? (o(), n("g", {
946
- key: 0,
947
- style: L({
948
- opacity: A.value === null ? 1 : 0.3
949
- })
950
- }, [
951
- S("path", {
952
- d: l.path,
953
- stroke: e.value.style.chart.backgroundColor,
954
- "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
955
- fill: "none",
956
- "stroke-linecap": "round",
957
- "stroke-linejoin": "round",
958
- class: X({ animated: e.value.useCssAnimation && !u(N) })
959
- }, null, 10, El),
960
- S("path", {
961
- d: l.path,
962
- stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
963
- "stroke-width": e.value.style.chart.paths.strokeWidth,
964
- fill: "none",
965
- "stroke-linecap": "round",
966
- "stroke-linejoin": "round",
967
- class: X({ animated: e.value.useCssAnimation && !u(N) })
968
- }, null, 10, Ul)
969
- ], 4)) : d("", !0),
970
- (o(!0), n(b, null, k(l.plots, (s) => (o(), n("circle", {
971
- cx: s.x,
972
- cy: s.y,
973
- fill: e.value.style.chart.backgroundColor,
974
- r: r.value.plots,
975
- stroke: "none"
976
- }, null, 8, Wl))), 256)),
977
- (o(!0), n(b, null, k(l.plots, (s) => (o(), n("circle", {
978
- cx: s.x,
979
- cy: s.y,
980
- fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${z.value})` : s.color,
981
- r: r.value.plots,
982
- stroke: e.value.style.chart.plots.stroke,
983
- "stroke-width": e.value.style.chart.plots.strokeWidth,
984
- class: X({ animated: e.value.useCssAnimation && !u(N) }),
985
- style: L({
986
- opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
987
- transition: "opacity 0.2s ease-in-out"
988
- })
989
- }, null, 14, jl))), 256)),
990
- e.value.style.chart.plots.labels.show ? (o(), n("g", Gl, [
991
- (o(!0), n(b, null, k(l.plots, (s) => (o(), n("g", null, [
992
- String(s.label).includes(`
993
- `) ? (o(), n("text", {
994
- key: 1,
995
- x: s.x + e.value.style.chart.plots.labels.offsetX,
996
- y: s.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels,
997
- "font-size": r.value.labels,
998
- fill: e.value.style.chart.plots.labels.color,
999
- "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
1000
- "text-anchor": "middle",
1001
- class: X({ animated: e.value.useCssAnimation && !u(N) }),
1002
- style: L({
1003
- opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
1004
- transition: "opacity 0.2s ease-in-out"
1005
- }),
1006
- innerHTML: u(el)({
1007
- content: String(s.label),
1008
- fontSize: r.value.labels,
1009
- fill: e.value.style.chart.plots.labels.color,
1010
- x: s.x + e.value.style.chart.plots.labels.offsetX,
1011
- y: s.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels
1012
- })
1013
- }, null, 14, ql)) : (o(), n("text", {
1014
- key: 0,
1015
- x: s.x + e.value.style.chart.plots.labels.offsetX,
1016
- y: s.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels,
1017
- "font-size": r.value.labels,
1018
- fill: e.value.style.chart.plots.labels.color,
1019
- "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
1020
- "text-anchor": "middle",
1021
- class: X({ animated: e.value.useCssAnimation && !u(N) }),
1022
- style: L({
1023
- opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
1024
- transition: "opacity 0.2s ease-in-out"
1025
- })
1026
- }, O(s.label), 15, Vl))
1027
- ]))), 256))
1028
- ])) : d("", !0),
1029
- e.value.style.chart.plots.indexLabels.show ? (o(), n("g", Jl, [
1030
- (o(!0), n(b, null, k(l.plots, (s, w) => (o(), n("text", {
1031
- x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
1032
- y: s.y + e.value.style.chart.plots.indexLabels.offsetY + r.value.indexLabels / 3,
1033
- "font-size": r.value.indexLabels,
1034
- "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1035
- fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(tl)(l.color) : e.value.style.chart.plots.indexLabels.color,
1036
- "text-anchor": "middle",
1037
- class: X({ animated: e.value.useCssAnimation && !u(N) }),
1038
- style: L({
1039
- opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
1040
- transition: "opacity 0.2s ease-in-out"
1041
- })
1042
- }, O(e.value.style.chart.plots.indexLabels.startAtZero ? w : w + 1), 15, Ql))), 256))
1043
- ])) : d("", !0)
1044
- ]))), 256)),
1045
- (o(!0), n(b, null, k(D.value, (l) => (o(), n("g", null, [
1046
- (o(!0), n(b, null, k(l.plots, (i, s) => (o(), n("circle", {
1047
- cx: i.x,
1048
- cy: i.y,
1049
- fill: "transparent",
1050
- r: r.value.plots,
1051
- stroke: "none",
1052
- onMouseenter: (w) => Lt({
1053
- datapoint: i,
1054
- plotIndex: s,
1055
- seriesIndex: l.seriesIndex
1056
- }),
1057
- onMouseleave: (w) => Tt({
1058
- datapoint: i,
1059
- plotIndex: s,
1060
- seriesIndex: l.seriesIndex
1061
- }),
1062
- onClick: (w) => _t({
1063
- datapoint: i,
1064
- plotIndex: s,
1065
- seriesIndex: l.seriesIndex
1066
- })
1067
- }, null, 40, Zl))), 256))
1068
- ]))), 256)),
1069
- y(t.$slots, "svg", { svg: p.value }, void 0, !0)
1070
- ], 12, wl)),
1071
- t.$slots.watermark ? (o(), n("div", Kl, [
1072
- y(t.$slots, "watermark", $(_({ isPrinting: u(ze) || u(Oe) })), void 0, !0)
1073
- ])) : d("", !0),
1074
- S("div", {
1075
- id: `legend-bottom-${z.value}`
1076
- }, null, 8, ea),
1077
- Se.value ? (o(), F(Et, {
1078
- key: 5,
1079
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
1080
- }, [
1081
- S("div", {
1082
- ref_key: "chartLegend",
1083
- ref: me
1084
- }, [
1085
- e.value.style.chart.legend.show && V.value ? (o(), F(gl, {
1086
- key: `legend_${be.value}`,
1087
- legendSet: he.value,
1088
- config: $t.value,
1089
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
1090
- q(l.seriesIndex), Xe(l);
1091
- })
1092
- }, {
1093
- item: f(({ legend: l, index: i }) => [
1094
- S("div", {
1095
- onClick: (s) => {
1096
- l.segregate(), Xe(l);
1097
- },
1098
- style: L(`opacity:${m.value.includes(l.seriesIndex) ? 0.5 : 1}`)
1099
- }, O(l.name), 13, ta)
1100
- ]),
1101
- _: 1
1102
- }, 8, ["legendSet", "config"])) : y(t.$slots, "legend", {
1103
- key: 1,
1104
- legend: he.value
1105
- }, void 0, !0)
1106
- ], 512)
1107
- ], 8, ["to"])) : d("", !0),
1108
- t.$slots.source ? (o(), n("div", {
1109
- key: 6,
1110
- ref_key: "source",
1111
- ref: Ae,
1112
- dir: "auto"
1113
- }, [
1114
- y(t.$slots, "source", {}, void 0, !0)
1115
- ], 512)) : d("", !0),
1116
- xe(u(lt), {
1117
- show: C.value.showTooltip && le.value,
1118
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1119
- color: e.value.style.chart.tooltip.color,
1120
- fontSize: e.value.style.chart.tooltip.fontSize,
1121
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1122
- borderColor: e.value.style.chart.tooltip.borderColor,
1123
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1124
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1125
- position: e.value.style.chart.tooltip.position,
1126
- offsetY: e.value.style.chart.tooltip.offsetY,
1127
- parent: M.value,
1128
- content: ae.value,
1129
- isCustom: U.value,
1130
- isFullscreen: E.value,
1131
- smooth: e.value.style.chart.tooltip.smooth,
1132
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1133
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1134
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1135
- }, {
1136
- "tooltip-before": f(() => [
1137
- y(t.$slots, "tooltip-before", $(_({ ...de.value })), void 0, !0)
1138
- ]),
1139
- "tooltip-after": f(() => [
1140
- y(t.$slots, "tooltip-after", $(_({ ...de.value })), void 0, !0)
1141
- ]),
1142
- _: 3
1143
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1144
- V.value && e.value.userOptions.buttons.table ? (o(), F(Ut(j.value.component), Wt({ key: 7 }, j.value.props, {
1145
- ref_key: "tableUnit",
1146
- ref: W,
1147
- onClose: He
1148
- }), We({
1149
- content: f(() => [
1150
- (o(), F(u(ot), {
1151
- key: `table_${ke.value}`,
1152
- colNames: J.value.colNames,
1153
- head: J.value.head,
1154
- body: J.value.body,
1155
- config: J.value.config,
1156
- title: e.value.table.useDialog ? "" : j.value.title,
1157
- withCloseButton: !e.value.table.useDialog,
1158
- onClose: He
1159
- }, {
1160
- th: f(({ th: l }) => [
1161
- S("div", {
1162
- innerHTML: l,
1163
- style: { display: "flex", "align-items": "center" }
1164
- }, null, 8, la)
1165
- ]),
1166
- td: f(({ td: l }) => [
1167
- je(O(l.name || l), 1)
1168
- ]),
1169
- _: 1
1170
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1171
- ]),
1172
- _: 2
1173
- }, [
1174
- e.value.table.useDialog ? {
1175
- name: "title",
1176
- fn: f(() => [
1177
- je(O(j.value.title), 1)
1178
- ]),
1179
- key: "0"
1180
- } : void 0,
1181
- e.value.table.useDialog ? {
1182
- name: "actions",
1183
- fn: f(() => [
1184
- S("button", {
1185
- tabindex: "0",
1186
- class: "vue-ui-user-options-button",
1187
- onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
1188
- }, [
1189
- xe(u(at), {
1190
- name: "excel",
1191
- stroke: j.value.props.color
1192
- }, null, 8, ["stroke"])
1193
- ])
1194
- ]),
1195
- key: "1"
1196
- } : void 0
1197
- ]), 1040)) : d("", !0),
1198
- u(N) ? (o(), F(ul, { key: 8 })) : d("", !0)
1199
- ], 46, bl));
1200
- }
1201
- }, ma = /* @__PURE__ */ ml(aa, [["__scopeId", "data-v-3fe2716c"]]);
1202
- export {
1203
- ma as default
1204
- };