vue-data-ui 3.0.0-next.7 → 3.0.0-next.71

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 (137) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
  11. package/dist/Slicer-DYuvPkEM.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
  19. package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +610 -22
  22. package/dist/types/vue-data-ui.d.ts +610 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-D-8c0o4p.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
  37. package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
  38. package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
  41. package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
  48. package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
  49. package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
  51. package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
  52. package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
  53. package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
  54. package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
  55. package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
  59. package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
  60. package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
  61. package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
  65. package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
  67. package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
  68. package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
  69. package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
  70. package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
  73. package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
  74. package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
  75. package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
  77. package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
  79. package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
  80. package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
  81. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
  82. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
  84. package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
  86. package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
  87. package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
  89. package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
  90. package/dist/vue-ui-wheel-De1spwLh.js +379 -0
  91. package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
  93. package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
  109. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  110. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  111. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  112. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  113. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  114. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  115. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  116. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  117. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  118. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  119. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  120. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  121. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  122. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  123. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  124. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  125. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  126. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  127. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  128. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  129. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  130. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  131. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  132. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  133. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  134. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  135. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  136. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  137. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,1073 @@
1
+ import { defineAsyncComponent as X, ref as v, shallowRef as Fe, computed as d, onMounted as kt, onBeforeUnmount as wt, toRefs as At, watch as ie, watchEffect as Ct, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as _, normalizeClass as O, renderSlot as p, createBlock as I, createCommentVNode as h, createElementVNode as M, createVNode as Xe, createSlots as _t, withCtx as m, normalizeProps as R, guardReactiveProps as Y, Fragment as g, renderList as b, toDisplayString as z, createTextVNode as Lt, nextTick as $t } from "vue";
2
+ import { u as St, c as Re, o as Ye, f as De, g as Tt, t as Mt, d as zt, e as Nt, p as Z, D as Be, k as D, i as B, X as Ot, l as It, j as Pt, I as Ft, F as Xt, E as P, a as Rt, b as Yt, C as J, v as Dt, w as Bt, y as Et } from "./index-DKpp7RIH.js";
3
+ import { t as Ee, u as Ht } from "./useResponsive-DfdjqQps.js";
4
+ import { u as jt, B as Wt } from "./useLoading-D7YHNtLX.js";
5
+ import { u as Ut } from "./usePrinter-NUeckmCX.js";
6
+ import { u as He } from "./useNestedProp-D-8c0o4p.js";
7
+ import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as qt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import Zt from "./Legend-DiGLrlzP.js";
11
+ import Jt from "./Title-VLWyIYrj.js";
12
+ import Kt from "./img-DD_2wgY3.js";
13
+ import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"], al = { key: 1 }, sl = ["id"], ol = ["stop-color"], rl = ["stop-color"], nl = ["stop-color"], il = { key: 2 }, ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = { key: 3 }, vl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], hl = ["x", "y", "fill", "font-size"], yl = ["transform", "font-size", "fill", "font-weight"], dl = { key: 6 }, fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xl = { key: 7 }, pl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], ml = ["transform", "fill", "font-size", "text-anchor"], gl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["d", "stroke", "stroke-width"], Al = ["d", "stroke", "stroke-width"], Cl = ["cx", "cy", "fill", "r"], _l = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Ll = { key: 1 }, $l = ["x", "y", "font-size", "fill", "font-weight"], Sl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Tl = { key: 2 }, Ml = ["x", "y", "font-size", "font-weight", "fill"], zl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Nl = {
15
+ key: 4,
16
+ class: "vue-data-ui-watermark"
17
+ }, Ol = ["onClick"], Il = ["innerHTML"], Pl = {
18
+ __name: "vue-ui-history-plot",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectLegend", "selectDatapoint"],
34
+ setup(je, { expose: We, emit: Ue }) {
35
+ const Ge = X(() => import("./vue-ui-accordion-Cpovz3RE.js")), Ve = X(() => import("./DataTable-B3yakHEM.js")), qe = X(() => import("./PackageVersion-6s4eI8W7.js")), Ze = X(() => import("./PenAndPaper-JoUN7Ink.js")), Je = X(() => import("./Tooltip-BS5naLS2.js")), Ke = X(() => import("./UserOptions-BV_xM-sB.js")), { vue_ui_history_plot: Qe } = St(), y = je, L = v(null), ue = v(null), ce = v(0), ve = v(null), he = v(0), ye = v(0), de = v(0), $ = Fe(null), F = Fe(null), fe = v(null), E = v(Re()), K = v(!1), Q = v(""), w = v([]), j = v(!1), A = v(null), H = v(!1), xe = v(null), ee = v(null), te = v(null), W = v(null), le = v(null), U = d({
36
+ get: () => !!y.dataset && y.dataset.length,
37
+ set: (t) => t
38
+ }), pe = Ue;
39
+ kt(ge);
40
+ const me = d(() => !!e.value.debug);
41
+ function ge() {
42
+ if (Ye(y.dataset) ? (De({
43
+ componentName: "VueUiHistoryPlot",
44
+ type: "dataset",
45
+ debug: me.value
46
+ }), se.value = !0) : y.dataset.forEach((t, a) => {
47
+ Tt({
48
+ datasetObject: t,
49
+ requiredAttributes: ["name", "values"]
50
+ }).forEach((l) => {
51
+ U.value = !1, De({
52
+ componentName: "VueUiHistoryPlot",
53
+ type: "datasetSerieAttribute",
54
+ property: l,
55
+ index: a,
56
+ debug: me.value
57
+ });
58
+ });
59
+ }), Ye(y.dataset) || (se.value = e.value.loading), e.value.responsive) {
60
+ const t = Ee(() => {
61
+ const { width: a, height: l } = Ht({
62
+ chart: L.value,
63
+ title: e.value.style.chart.title.text ? ue.value : null,
64
+ noTitle: fe.value,
65
+ legend: e.value.style.chart.legend.show ? ve.value : null,
66
+ source: xe.value
67
+ });
68
+ requestAnimationFrame(() => {
69
+ f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = P({
70
+ relator: Math.min(a, l),
71
+ adjuster: 600,
72
+ source: e.value.style.chart.plots.radius,
73
+ threshold: 3,
74
+ fallback: 3
75
+ }), n.value.indexLabels = P({
76
+ relator: Math.min(a, l),
77
+ adjuster: 600,
78
+ source: e.value.style.chart.plots.indexLabels.fontSize,
79
+ threshold: 6,
80
+ fallback: 6
81
+ }), n.value.labels = P({
82
+ relator: Math.min(a, l),
83
+ adjuster: 600,
84
+ source: e.value.style.chart.plots.labels.fontSize,
85
+ threshold: 6,
86
+ fallback: 6
87
+ }), n.value.xAxisLabels = P({
88
+ relator: Math.min(a, l),
89
+ adjuster: 600,
90
+ source: e.value.style.chart.axes.x.labels.fontSize,
91
+ threshold: 6,
92
+ fallback: 6
93
+ }), n.value.xAxisName = P({
94
+ relator: Math.min(a, l),
95
+ adjuster: 600,
96
+ source: e.value.style.chart.axes.x.name.fontSize,
97
+ threshold: 6,
98
+ fallback: 6
99
+ }), n.value.yAxisLabels = P({
100
+ relator: Math.min(a, l),
101
+ adjuster: 600,
102
+ source: e.value.style.chart.axes.y.labels.fontSize,
103
+ threshold: 6,
104
+ fallback: 6
105
+ }), n.value.yAxisName = P({
106
+ relator: Math.min(a, l),
107
+ adjuster: 600,
108
+ source: e.value.style.chart.axes.y.name.fontSize,
109
+ threshold: 6,
110
+ fallback: 6
111
+ })) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
112
+ });
113
+ });
114
+ $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect()), $.value = new ResizeObserver(t), F.value = L.value.parentNode, $.value.observe(F.value);
115
+ }
116
+ }
117
+ wt(() => {
118
+ $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect());
119
+ });
120
+ function ae() {
121
+ const t = He({
122
+ userConfig: y.config,
123
+ defaultConfig: Qe
124
+ });
125
+ let a = {};
126
+ return t.theme ? a = {
127
+ ...He({
128
+ userConfig: Yt.vue_ui_history_plot[t.theme] || y.config,
129
+ defaultConfig: t
130
+ }),
131
+ customPalette: Rt[t.theme] || Z
132
+ } : a = t, y.config && J(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && J(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && J(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && J(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
133
+ }
134
+ const e = v(ae()), { loading: S, FINAL_DATASET: et, manualLoading: se } = jt({
135
+ ...At(y),
136
+ FINAL_CONFIG: e,
137
+ prepareConfig: ae,
138
+ skeletonDataset: [
139
+ {
140
+ name: "",
141
+ color: "#CACACA",
142
+ values: [
143
+ { label: "", x: 1, y: 9 },
144
+ { label: "", x: 4, y: 1 },
145
+ { label: "", x: 7, y: 9 },
146
+ { label: "", x: 9, y: 4 }
147
+ ]
148
+ }
149
+ ],
150
+ skeletonConfig: Mt({
151
+ defaultConfig: e.value,
152
+ userConfig: {
153
+ userOptions: { show: !1 },
154
+ table: { show: !1 },
155
+ style: {
156
+ chart: {
157
+ backgroundColor: "#99999930",
158
+ axes: {
159
+ x: {
160
+ scaleMin: 0,
161
+ scaleMax: 10,
162
+ labels: { show: !1 },
163
+ name: { text: "" }
164
+ },
165
+ y: {
166
+ scaleMin: 0,
167
+ scaleMax: 10,
168
+ labels: { show: !1 },
169
+ name: { text: "" }
170
+ }
171
+ },
172
+ grid: {
173
+ xAxis: {
174
+ stroke: "#6A6A6A"
175
+ },
176
+ horizontalLines: {
177
+ stroke: "#6A6A6A50"
178
+ },
179
+ yAxis: {
180
+ stroke: "#6A6A6A"
181
+ },
182
+ verticalLines: {
183
+ stroke: "#6A6A6A50"
184
+ }
185
+ },
186
+ legend: {
187
+ backgroundColor: "transparent"
188
+ },
189
+ paths: {
190
+ useSerieColor: !1,
191
+ stroke: "#6A6A6A"
192
+ },
193
+ plots: {
194
+ stroke: "#6A6A6A",
195
+ indexLabels: { show: !1 },
196
+ labels: { show: !1 }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ })
202
+ }), { userOptionsVisible: oe, setUserOptionsVisibility: be, keepUserOptionState: ke } = Gt({ config: e.value }), { svgRef: we } = Vt({ config: e.value.style.chart.title });
203
+ ie(() => y.config, (t) => {
204
+ S.value || (e.value = ae()), oe.value = !e.value.userOptions.showOnChartHover, ge(), ce.value += 1, ye.value += 1, he.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.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;
205
+ }, { deep: !0 }), ie(() => y.dataset, (t) => {
206
+ Array.isArray(t) && t.length > 0 && (se.value = !1);
207
+ }, { deep: !0 });
208
+ const { isPrinting: Ae, isImaging: Ce, generatePdf: _e, generateImage: Le } = Ut({
209
+ elementId: `history_plot_${E.value}`,
210
+ fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
211
+ options: e.value.userOptions.print
212
+ }), tt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), lt = d(() => zt(e.value.customPalette)), C = v({
213
+ showTable: e.value.table.show,
214
+ showTooltip: e.value.style.chart.tooltip.show
215
+ });
216
+ ie(e, () => {
217
+ C.value = {
218
+ showTable: e.value.table.show,
219
+ showTooltip: e.value.style.chart.tooltip.show
220
+ };
221
+ }, { immediate: !0 });
222
+ const f = v({
223
+ height: e.value.style.chart.height,
224
+ width: e.value.style.chart.width
225
+ }), at = d(() => f.value.width), st = d(() => f.value.height);
226
+ function ot() {
227
+ let t = 0;
228
+ le.value && (t = Array.from(le.value.querySelectorAll("text")).reduce((i, s) => {
229
+ const k = s.getComputedTextLength();
230
+ return k > i ? k : i;
231
+ }, 0));
232
+ const a = te.value ? te.value.getBoundingClientRect().width : 0;
233
+ return t + a + (a ? 24 : 0);
234
+ }
235
+ const $e = v(0), rt = Ee((t) => {
236
+ $e.value = t;
237
+ });
238
+ Ct((t) => {
239
+ const a = W.value;
240
+ if (!a) return;
241
+ const l = new ResizeObserver((i) => {
242
+ rt(i[0].contentRect.height);
243
+ });
244
+ l.observe(a), t(() => l.disconnect());
245
+ });
246
+ const Se = d(() => {
247
+ let t = 0;
248
+ ee.value && (t = ee.value.getBBox().height + n.value.xAxisName / 2);
249
+ let a = 0;
250
+ return W.value && (a = $e.value), t + a;
251
+ }), c = d(() => {
252
+ const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = ot(), i = e.value.style.chart.plots.radius;
253
+ return {
254
+ left: t + l + e.value.style.chart.axes.y.name.offsetX,
255
+ top: a + i,
256
+ right: f.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
257
+ bottom: f.value.height - e.value.style.chart.padding.bottom - Se.value - i - e.value.style.chart.axes.x.name.offsetY,
258
+ width: f.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
259
+ height: f.value.height - a - e.value.style.chart.padding.bottom - Se.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
260
+ };
261
+ }), n = v({
262
+ plots: e.value.style.chart.plots.radius,
263
+ indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
264
+ labels: e.value.style.chart.plots.labels.fontSize,
265
+ xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
266
+ xAxisName: e.value.style.chart.axes.x.name.fontSize,
267
+ yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
268
+ yAxisName: e.value.style.chart.axes.y.name.fontSize
269
+ }), T = d(() => et.value.map((t, a) => ({
270
+ ...t,
271
+ color: t.color ? Nt(t.color) : lt.value[a] || Z[a] || Z[a % Z.length],
272
+ seriesIndex: a
273
+ }))), nt = d(() => Math.max(...T.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), it = d(() => {
274
+ const t = Math.min(...T.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
275
+ return t < 0 ? t : 0;
276
+ }), ut = d(() => Math.max(...T.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), ct = d(() => {
277
+ const t = Math.min(...T.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
278
+ return t < 0 ? t : 0;
279
+ }), x = d(() => {
280
+ const t = Be(
281
+ e.value.style.chart.axes.x.scaleMin === null ? it.value : e.value.style.chart.axes.x.scaleMin,
282
+ e.value.style.chart.axes.x.scaleMax === null ? nt.value : e.value.style.chart.axes.x.scaleMax,
283
+ e.value.style.chart.axes.x.ticks
284
+ ), a = Be(
285
+ e.value.style.chart.axes.y.scaleMin === null ? ct.value : e.value.style.chart.axes.y.scaleMin,
286
+ e.value.style.chart.axes.y.scaleMax === null ? ut.value : e.value.style.chart.axes.y.scaleMax,
287
+ e.value.style.chart.axes.y.ticks
288
+ );
289
+ return {
290
+ x: t,
291
+ y: a,
292
+ tickX: t.ticks.map((l) => ({
293
+ x: c.value.left + (l - t.min) / (t.max - t.min) * c.value.width,
294
+ y1: c.value.top,
295
+ y2: c.value.bottom,
296
+ value: l
297
+ })),
298
+ tickY: a.ticks.map((l) => ({
299
+ y: c.value.bottom - (l - a.min) / (a.max - a.min) * c.value.height,
300
+ x1: c.value.left,
301
+ x2: c.value.right,
302
+ value: l
303
+ }))
304
+ };
305
+ });
306
+ function vt(t) {
307
+ const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
308
+ return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
309
+ }
310
+ function ht(t) {
311
+ const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
312
+ return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
313
+ }
314
+ const N = d(() => T.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
315
+ const l = t.values.map((s, k) => ({
316
+ valueX: s.x,
317
+ valueY: s.y,
318
+ label: s.label,
319
+ x: vt(s.x),
320
+ y: ht(s.y),
321
+ color: t.color,
322
+ seriesName: t.name,
323
+ id: Re()
324
+ })), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
325
+ return {
326
+ ...t,
327
+ plots: l,
328
+ path: `M${i}`
329
+ };
330
+ }));
331
+ function Te(t) {
332
+ w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t);
333
+ }
334
+ const Me = d(() => T.value.map((t) => ({
335
+ ...t,
336
+ opacity: w.value.includes(t.seriesIndex) ? 0.5 : 1,
337
+ segregate: () => Te(t.seriesIndex),
338
+ isSegregated: w.value.includes(t.seriesIndex),
339
+ shape: "circle"
340
+ }))), yt = d(() => ({
341
+ cy: "history-plot-div-legend",
342
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
343
+ color: e.value.style.chart.legend.color,
344
+ fontSize: e.value.style.chart.legend.fontSize,
345
+ paddingBottom: 12,
346
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
347
+ }));
348
+ function dt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
349
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), pe("selectDatapoint", t);
350
+ }
351
+ function ze(t) {
352
+ pe("selectLegend", {
353
+ ...t,
354
+ isSegregated: !t.isSegregated,
355
+ opacity: t.isSegregated ? 1 : 0.5
356
+ });
357
+ }
358
+ function Ne(t) {
359
+ j.value = t, de.value += 1;
360
+ }
361
+ const re = v(null);
362
+ function ft({ datapoint: t, plotIndex: a, seriesIndex: l }) {
363
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), K.value = !1, A.value = null;
364
+ }
365
+ function xt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
366
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), re.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: T.value }, A.value = t;
367
+ const i = e.value.style.chart.tooltip.customFormat;
368
+ if (H.value = !1, Et(i))
369
+ try {
370
+ const s = i({
371
+ seriesIndex: l,
372
+ datapoint: t,
373
+ plotIndex: a,
374
+ series: T.value,
375
+ config: e.value
376
+ });
377
+ typeof s == "string" && (Q.value = s, H.value = !0);
378
+ } catch {
379
+ console.warn("Custom format cannot be applied."), H.value = !1;
380
+ }
381
+ if (!H.value) {
382
+ let s = "";
383
+ 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"}: ${D(
384
+ e.value.style.chart.axes.x.labels.formatter,
385
+ t.valueX,
386
+ B({
387
+ p: e.value.style.chart.axes.x.labels.prefix,
388
+ v: t.valueX,
389
+ s: e.value.style.chart.axes.x.labels.suffix,
390
+ r: e.value.style.chart.axes.x.labels.rounding
391
+ })
392
+ )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${D(
393
+ e.value.style.chart.axes.y.labels.formatter,
394
+ t.valueY,
395
+ B({
396
+ p: e.value.style.chart.axes.y.labels.prefix,
397
+ v: t.valueY,
398
+ s: e.value.style.chart.axes.y.labels.suffix,
399
+ r: e.value.style.chart.axes.y.labels.rounding
400
+ })
401
+ )}</div>`, Q.value = `<div>${s}</div>`;
402
+ }
403
+ K.value = !0;
404
+ }
405
+ d(() => ({ head: N.value.map((a) => ({
406
+ name: a.name,
407
+ color: a.color
408
+ })) }));
409
+ const G = d(() => {
410
+ const t = [
411
+ e.value.table.columnNames.series,
412
+ e.value.table.columnNames.datapoint,
413
+ e.value.table.columnNames.x,
414
+ e.value.table.columnNames.y
415
+ ], a = N.value.flatMap((i) => i.plots.map((s) => [
416
+ {
417
+ color: s.color,
418
+ name: s.seriesName
419
+ },
420
+ s.label,
421
+ D(
422
+ e.value.style.chart.axes.x.labels.formatter,
423
+ s.valueX,
424
+ B({
425
+ p: e.value.style.chart.axes.x.labels.prefix,
426
+ v: s.valueX,
427
+ s: e.value.style.chart.axes.x.labels.suffix,
428
+ r: e.value.style.chart.axes.x.labels.rounding
429
+ })
430
+ ),
431
+ D(
432
+ e.value.style.chart.axes.y.labels.formatter,
433
+ s.valueY,
434
+ B({
435
+ p: e.value.style.chart.axes.y.labels.prefix,
436
+ v: s.valueY,
437
+ s: e.value.style.chart.axes.y.labels.suffix,
438
+ r: e.value.style.chart.axes.y.labels.rounding
439
+ })
440
+ )
441
+ ])), l = {
442
+ th: {
443
+ backgroundColor: e.value.table.th.backgroundColor,
444
+ color: e.value.table.th.color,
445
+ outline: e.value.table.th.outline
446
+ },
447
+ td: {
448
+ backgroundColor: e.value.table.td.backgroundColor,
449
+ color: e.value.table.td.color,
450
+ outline: e.value.table.td.outline
451
+ },
452
+ breakpoint: e.value.table.responsiveBreakpoint
453
+ };
454
+ return {
455
+ head: t,
456
+ body: a,
457
+ config: l,
458
+ colNames: t
459
+ };
460
+ });
461
+ function Oe(t = null) {
462
+ $t(() => {
463
+ const a = [
464
+ [e.value.table.columnNames.series],
465
+ [e.value.table.columnNames.datapoint],
466
+ [e.value.table.columnNames.x],
467
+ [e.value.table.columnNames.y]
468
+ ], l = N.value.flatMap((k) => k.plots.map((q) => [
469
+ [q.seriesName],
470
+ [q.label],
471
+ [q.valueX],
472
+ [q.valueY]
473
+ ])), i = [
474
+ [e.value.style.chart.title.text],
475
+ [e.value.style.chart.title.subtitle.text],
476
+ a
477
+ ].concat(l), s = Dt(i);
478
+ t ? t(s) : Bt({
479
+ csvContent: s,
480
+ title: e.value.style.chart.title.text || "vue-ui-history-plot"
481
+ });
482
+ });
483
+ }
484
+ const V = v(!1);
485
+ function ne() {
486
+ V.value = !V.value;
487
+ }
488
+ function Ie() {
489
+ C.value.showTable = !C.value.showTable;
490
+ }
491
+ function Pe() {
492
+ C.value.showTooltip = !C.value.showTooltip;
493
+ }
494
+ function pt() {
495
+ return N.value;
496
+ }
497
+ async function mt({ scale: t = 2 } = {}) {
498
+ if (!L.value) return;
499
+ const { width: a, height: l } = L.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await Kt({ domElement: L.value, base64: !0, img: !0, scale: t });
500
+ return {
501
+ imageUri: s,
502
+ base64: k,
503
+ title: e.value.style.chart.title.text,
504
+ width: a,
505
+ height: l,
506
+ aspectRatio: i
507
+ };
508
+ }
509
+ const gt = d(() => x.value.tickX), bt = d(() => ({ start: 0, end: x.value.tickX.length }));
510
+ return qt({
511
+ timeLabelsEls: W,
512
+ timeLabels: gt,
513
+ slicer: bt,
514
+ configRef: e,
515
+ rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
516
+ autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate"],
517
+ isAutoSize: !1,
518
+ width: at,
519
+ height: st,
520
+ targetClass: ".vue-ui-history-plot-x-axis-scale"
521
+ }), We({
522
+ getData: pt,
523
+ getImage: mt,
524
+ generatePdf: _e,
525
+ generateCsv: Oe,
526
+ generateImage: Le,
527
+ toggleTable: Ie,
528
+ toggleTooltip: Pe,
529
+ toggleAnnotator: ne,
530
+ toggleFullscreen: Ne
531
+ }), (t, a) => (o(), r("div", {
532
+ id: `history_plot_${E.value}`,
533
+ ref_key: "historyPlotChart",
534
+ ref: L,
535
+ class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": j.value }),
536
+ style: _(`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%" : ""}`),
537
+ onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
538
+ onMouseleave: a[3] || (a[3] = () => u(be)(!1))
539
+ }, [
540
+ p(t.$slots, "userConfig", {}, void 0, !0),
541
+ e.value.userOptions.buttons.annotator ? (o(), I(u(Ze), {
542
+ key: 0,
543
+ svgRef: u(we),
544
+ backgroundColor: e.value.style.chart.backgroundColor,
545
+ color: e.value.style.chart.color,
546
+ active: V.value,
547
+ onClose: ne
548
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
549
+ tt.value ? (o(), r("div", {
550
+ key: 1,
551
+ ref_key: "noTitle",
552
+ ref: fe,
553
+ class: "vue-data-ui-no-title-space",
554
+ style: "height:36px; width: 100%;background:transparent"
555
+ }, null, 512)) : h("", !0),
556
+ e.value.style.chart.title.text ? (o(), r("div", {
557
+ key: 2,
558
+ ref_key: "chartTitle",
559
+ ref: ue,
560
+ class: "vue-ui-xy-title",
561
+ style: _(`font-family:${e.value.style.fontFamily}`)
562
+ }, [
563
+ (o(), I(Jt, {
564
+ key: `title_${ce.value}`,
565
+ config: {
566
+ title: {
567
+ cy: "history-plot-div-title",
568
+ ...e.value.style.chart.title
569
+ },
570
+ subtitle: {
571
+ cy: "history-plot-div-subtitle",
572
+ ...e.value.style.chart.title.subtitle
573
+ }
574
+ }
575
+ }, null, 8, ["config"]))
576
+ ], 4)) : h("", !0),
577
+ e.value.userOptions.show && U.value && (u(ke) || u(oe)) ? (o(), I(u(Ke), {
578
+ ref: "details",
579
+ key: `user_option_${de.value}`,
580
+ backgroundColor: e.value.style.chart.backgroundColor,
581
+ color: e.value.style.chart.color,
582
+ isPrinting: u(Ae),
583
+ isImaging: u(Ce),
584
+ uid: E.value,
585
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
586
+ hasPdf: e.value.userOptions.buttons.pdf,
587
+ hasImg: e.value.userOptions.buttons.img,
588
+ hasXls: e.value.userOptions.buttons.csv,
589
+ hasTable: e.value.userOptions.buttons.table,
590
+ hasLabel: !1,
591
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
592
+ isFullscreen: j.value,
593
+ chartElement: L.value,
594
+ position: e.value.userOptions.position,
595
+ isTooltip: C.value.showTooltip,
596
+ titles: { ...e.value.userOptions.buttonTitles },
597
+ hasAnnotator: e.value.userOptions.buttons.annotator,
598
+ isAnnotation: V.value,
599
+ callbacks: e.value.userOptions.callbacks,
600
+ printScale: e.value.userOptions.print.scale,
601
+ onToggleFullscreen: Ne,
602
+ onGeneratePdf: u(_e),
603
+ onGenerateCsv: Oe,
604
+ onGenerateImage: u(Le),
605
+ onToggleTable: Ie,
606
+ onToggleTooltip: Pe,
607
+ onToggleAnnotator: ne,
608
+ style: _({
609
+ visibility: u(ke) ? u(oe) ? "visible" : "hidden" : "visible"
610
+ })
611
+ }, _t({ _: 2 }, [
612
+ t.$slots.menuIcon ? {
613
+ name: "menuIcon",
614
+ fn: m(({ isOpen: l, color: i }) => [
615
+ p(t.$slots, "menuIcon", R(Y({ isOpen: l, color: i })), void 0, !0)
616
+ ]),
617
+ key: "0"
618
+ } : void 0,
619
+ t.$slots.optionTooltip ? {
620
+ name: "optionTooltip",
621
+ fn: m(() => [
622
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
623
+ ]),
624
+ key: "1"
625
+ } : void 0,
626
+ t.$slots.optionPdf ? {
627
+ name: "optionPdf",
628
+ fn: m(() => [
629
+ p(t.$slots, "optionPdf", {}, void 0, !0)
630
+ ]),
631
+ key: "2"
632
+ } : void 0,
633
+ t.$slots.optionCsv ? {
634
+ name: "optionCsv",
635
+ fn: m(() => [
636
+ p(t.$slots, "optionCsv", {}, void 0, !0)
637
+ ]),
638
+ key: "3"
639
+ } : void 0,
640
+ t.$slots.optionImg ? {
641
+ name: "optionImg",
642
+ fn: m(() => [
643
+ p(t.$slots, "optionImg", {}, void 0, !0)
644
+ ]),
645
+ key: "4"
646
+ } : void 0,
647
+ t.$slots.optionTable ? {
648
+ name: "optionTable",
649
+ fn: m(() => [
650
+ p(t.$slots, "optionTable", {}, void 0, !0)
651
+ ]),
652
+ key: "5"
653
+ } : void 0,
654
+ t.$slots.optionFullscreen ? {
655
+ name: "optionFullscreen",
656
+ fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
657
+ p(t.$slots, "optionFullscreen", R(Y({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
658
+ ]),
659
+ key: "6"
660
+ } : void 0,
661
+ t.$slots.optionAnnotator ? {
662
+ name: "optionAnnotator",
663
+ fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
664
+ p(t.$slots, "optionAnnotator", R(Y({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
665
+ ]),
666
+ key: "7"
667
+ } : void 0
668
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
669
+ (o(), r("svg", {
670
+ ref_key: "svgRef",
671
+ ref: we,
672
+ xmlns: u(Ot),
673
+ viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
674
+ style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
675
+ }, [
676
+ Xe(u(qe)),
677
+ t.$slots["chart-background"] ? (o(), r("foreignObject", {
678
+ key: 0,
679
+ x: c.value.left,
680
+ y: c.value.top,
681
+ width: c.value.width <= 0 ? 10 : c.value.width,
682
+ height: c.value.height <= 0 ? 10 : c.value.height,
683
+ style: {
684
+ pointerEvents: "none"
685
+ }
686
+ }, [
687
+ p(t.$slots, "chart-background", {}, void 0, !0)
688
+ ], 8, ll)) : h("", !0),
689
+ e.value.style.chart.plots.gradient.show ? (o(), r("defs", al, [
690
+ (o(!0), r(g, null, b(N.value, (l, i) => (o(), r("radialGradient", {
691
+ id: `gradient_${i}_${E.value}`,
692
+ fy: "30%"
693
+ }, [
694
+ M("stop", {
695
+ offset: "10%",
696
+ "stop-color": u(It)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
697
+ }, null, 8, ol),
698
+ M("stop", {
699
+ offset: "90%",
700
+ "stop-color": u(Pt)(l.color, 0.1)
701
+ }, null, 8, rl),
702
+ M("stop", {
703
+ offset: "100%",
704
+ "stop-color": l.color
705
+ }, null, 8, nl)
706
+ ], 8, sl))), 256))
707
+ ])) : h("", !0),
708
+ e.value.style.chart.grid.verticalLines.show ? (o(), r("g", il, [
709
+ (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
710
+ x1: l.x,
711
+ x2: l.x,
712
+ y1: l.y1,
713
+ y2: l.y2,
714
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
715
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
716
+ "stroke-linecap": "round"
717
+ }, null, 8, ul))), 256))
718
+ ])) : h("", !0),
719
+ e.value.style.chart.axes.y.labels.show ? (o(), r("g", cl, [
720
+ (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
721
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
722
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
723
+ "stroke-linecap": "round",
724
+ x1: c.value.left - 5,
725
+ x2: c.value.left,
726
+ y1: l.y,
727
+ y2: l.y
728
+ }, null, 8, vl))), 256))
729
+ ])) : h("", !0),
730
+ e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
731
+ key: 4,
732
+ ref_key: "yAxisScales",
733
+ ref: le
734
+ }, [
735
+ (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("text", {
736
+ x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
737
+ y: l.y + n.value.yAxisLabels / 3,
738
+ fill: e.value.style.chart.axes.y.labels.color,
739
+ "font-size": n.value.yAxisLabels,
740
+ "text-anchor": "end"
741
+ }, z(u(D)(
742
+ e.value.style.chart.axes.y.labels.formatter,
743
+ l.value,
744
+ u(B)({
745
+ p: e.value.style.chart.axes.y.labels.prefix,
746
+ v: l.value,
747
+ s: e.value.style.chart.axes.y.labels.suffix,
748
+ r: e.value.style.chart.axes.y.labels.rounding
749
+ })
750
+ )), 9, hl))), 256))
751
+ ], 512)) : h("", !0),
752
+ e.value.style.chart.axes.y.name.text ? (o(), r("text", {
753
+ key: 5,
754
+ ref_key: "yAxisLabel",
755
+ ref: te,
756
+ transform: `translate(${n.value.yAxisName}, ${f.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
757
+ "font-size": n.value.yAxisName,
758
+ fill: e.value.style.chart.axes.y.name.color,
759
+ "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
760
+ "text-anchor": "middle"
761
+ }, z(e.value.style.chart.axes.y.name.text), 9, yl)) : h("", !0),
762
+ e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", dl, [
763
+ (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
764
+ x1: l.x1,
765
+ x2: l.x2,
766
+ y1: l.y,
767
+ y2: l.y,
768
+ stroke: e.value.style.chart.grid.horizontalLines.stroke,
769
+ "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
770
+ "stroke-linecap": "round"
771
+ }, null, 8, fl))), 256))
772
+ ])) : h("", !0),
773
+ e.value.style.chart.axes.x.labels.show ? (o(), r("g", xl, [
774
+ (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
775
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
776
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
777
+ "stroke-linecap": "round",
778
+ x1: l.x,
779
+ x2: l.x,
780
+ y1: c.value.bottom,
781
+ y2: c.value.bottom + 5
782
+ }, null, 8, pl))), 256))
783
+ ])) : h("", !0),
784
+ e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
785
+ key: 8,
786
+ ref_key: "xAxisScales",
787
+ ref: W
788
+ }, [
789
+ (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("text", {
790
+ class: "vue-ui-history-plot-x-axis-scale",
791
+ transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
792
+ fill: e.value.style.chart.axes.x.labels.color,
793
+ "font-size": n.value.xAxisLabels,
794
+ "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
795
+ }, z(u(D)(
796
+ e.value.style.chart.axes.x.labels.formatter,
797
+ l.value,
798
+ u(B)({
799
+ p: e.value.style.chart.axes.x.labels.prefix,
800
+ v: l.value,
801
+ s: e.value.style.chart.axes.x.labels.suffix,
802
+ r: e.value.style.chart.axes.x.labels.rounding
803
+ })
804
+ )), 9, ml))), 256))
805
+ ], 512)) : h("", !0),
806
+ e.value.style.chart.axes.x.name.text ? (o(), r("text", {
807
+ key: 9,
808
+ ref_key: "xAxisLabel",
809
+ ref: ee,
810
+ x: f.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
811
+ y: f.value.height,
812
+ "font-size": n.value.xAxisName,
813
+ fill: e.value.style.chart.axes.x.name.color,
814
+ "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
815
+ "text-anchor": "middle"
816
+ }, z(e.value.style.chart.axes.x.name.text), 9, gl)) : h("", !0),
817
+ e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
818
+ key: 10,
819
+ x1: c.value.left,
820
+ x2: c.value.left + c.value.width,
821
+ y1: c.value.bottom,
822
+ y2: c.value.bottom,
823
+ stroke: e.value.style.chart.grid.xAxis.stroke,
824
+ "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
825
+ "stroke-linecap": "round"
826
+ }, null, 8, bl)) : h("", !0),
827
+ e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
828
+ key: 11,
829
+ x1: c.value.left,
830
+ x2: c.value.left,
831
+ y1: c.value.top,
832
+ y2: c.value.bottom,
833
+ stroke: e.value.style.chart.grid.yAxis.stroke,
834
+ "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
835
+ "stroke-linecap": "round"
836
+ }, null, 8, kl)) : h("", !0),
837
+ (o(!0), r(g, null, b(N.value, (l, i) => (o(), r("g", null, [
838
+ e.value.style.chart.paths.show ? (o(), r("g", {
839
+ key: 0,
840
+ style: _({
841
+ opacity: A.value === null ? 1 : 0.3
842
+ })
843
+ }, [
844
+ M("path", {
845
+ d: l.path,
846
+ stroke: e.value.style.chart.backgroundColor,
847
+ "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
848
+ fill: "none",
849
+ "stroke-linecap": "round",
850
+ "stroke-linejoin": "round",
851
+ class: O({ animated: e.value.useCssAnimation && !u(S) })
852
+ }, null, 10, wl),
853
+ M("path", {
854
+ d: l.path,
855
+ stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
856
+ "stroke-width": e.value.style.chart.paths.strokeWidth,
857
+ fill: "none",
858
+ "stroke-linecap": "round",
859
+ "stroke-linejoin": "round",
860
+ class: O({ animated: e.value.useCssAnimation && !u(S) })
861
+ }, null, 10, Al)
862
+ ], 4)) : h("", !0),
863
+ (o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
864
+ cx: s.x,
865
+ cy: s.y,
866
+ fill: e.value.style.chart.backgroundColor,
867
+ r: n.value.plots,
868
+ stroke: "none"
869
+ }, null, 8, Cl))), 256)),
870
+ (o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
871
+ cx: s.x,
872
+ cy: s.y,
873
+ fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${E.value})` : s.color,
874
+ r: n.value.plots,
875
+ stroke: e.value.style.chart.plots.stroke,
876
+ "stroke-width": e.value.style.chart.plots.strokeWidth,
877
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
878
+ style: _({
879
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
880
+ transition: "opacity 0.2s ease-in-out"
881
+ })
882
+ }, null, 14, _l))), 256)),
883
+ e.value.style.chart.plots.labels.show ? (o(), r("g", Ll, [
884
+ (o(!0), r(g, null, b(l.plots, (s) => (o(), r("g", null, [
885
+ String(s.label).includes(`
886
+ `) ? (o(), r("text", {
887
+ key: 1,
888
+ x: s.x + e.value.style.chart.plots.labels.offsetX,
889
+ y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
890
+ "font-size": n.value.labels,
891
+ fill: e.value.style.chart.plots.labels.color,
892
+ "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
893
+ "text-anchor": "middle",
894
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
895
+ style: _({
896
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
897
+ transition: "opacity 0.2s ease-in-out"
898
+ }),
899
+ innerHTML: u(Ft)({
900
+ content: String(s.label),
901
+ fontSize: n.value.labels,
902
+ fill: e.value.style.chart.plots.labels.color,
903
+ x: s.x + e.value.style.chart.plots.labels.offsetX,
904
+ y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
905
+ })
906
+ }, null, 14, Sl)) : (o(), r("text", {
907
+ key: 0,
908
+ x: s.x + e.value.style.chart.plots.labels.offsetX,
909
+ y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
910
+ "font-size": n.value.labels,
911
+ fill: e.value.style.chart.plots.labels.color,
912
+ "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
913
+ "text-anchor": "middle",
914
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
915
+ style: _({
916
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
917
+ transition: "opacity 0.2s ease-in-out"
918
+ })
919
+ }, z(s.label), 15, $l))
920
+ ]))), 256))
921
+ ])) : h("", !0),
922
+ e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Tl, [
923
+ (o(!0), r(g, null, b(l.plots, (s, k) => (o(), r("text", {
924
+ x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
925
+ y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
926
+ "font-size": n.value.indexLabels,
927
+ "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
928
+ fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Xt)(l.color) : e.value.style.chart.plots.indexLabels.color,
929
+ "text-anchor": "middle",
930
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
931
+ style: _({
932
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
933
+ transition: "opacity 0.2s ease-in-out"
934
+ })
935
+ }, z(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Ml))), 256))
936
+ ])) : h("", !0)
937
+ ]))), 256)),
938
+ (o(!0), r(g, null, b(N.value, (l) => (o(), r("g", null, [
939
+ (o(!0), r(g, null, b(l.plots, (i, s) => (o(), r("circle", {
940
+ cx: i.x,
941
+ cy: i.y,
942
+ fill: "transparent",
943
+ r: n.value.plots,
944
+ stroke: "none",
945
+ onMouseenter: (k) => xt({
946
+ datapoint: i,
947
+ plotIndex: s,
948
+ seriesIndex: l.seriesIndex
949
+ }),
950
+ onMouseleave: (k) => ft({
951
+ datapoint: i,
952
+ plotIndex: s,
953
+ seriesIndex: l.seriesIndex
954
+ }),
955
+ onClick: (k) => dt({
956
+ datapoint: i,
957
+ plotIndex: s,
958
+ seriesIndex: l.seriesIndex
959
+ })
960
+ }, null, 40, zl))), 256))
961
+ ]))), 256)),
962
+ p(t.$slots, "svg", { svg: f.value }, void 0, !0)
963
+ ], 12, tl)),
964
+ t.$slots.watermark ? (o(), r("div", Nl, [
965
+ p(t.$slots, "watermark", R(Y({ isPrinting: u(Ae) || u(Ce) })), void 0, !0)
966
+ ])) : h("", !0),
967
+ M("div", {
968
+ ref_key: "chartLegend",
969
+ ref: ve
970
+ }, [
971
+ e.value.style.chart.legend.show && U.value ? (o(), I(Zt, {
972
+ key: `legend_${he.value}`,
973
+ legendSet: Me.value,
974
+ config: yt.value,
975
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
976
+ Te(l.seriesIndex), ze(l);
977
+ })
978
+ }, {
979
+ item: m(({ legend: l, index: i }) => [
980
+ M("div", {
981
+ onClick: (s) => {
982
+ l.segregate(), ze(l);
983
+ },
984
+ style: _(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
985
+ }, z(l.name), 13, Ol)
986
+ ]),
987
+ _: 1
988
+ }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
989
+ key: 1,
990
+ legend: Me.value
991
+ }, void 0, !0)
992
+ ], 512),
993
+ t.$slots.source ? (o(), r("div", {
994
+ key: 5,
995
+ ref_key: "source",
996
+ ref: xe,
997
+ dir: "auto"
998
+ }, [
999
+ p(t.$slots, "source", {}, void 0, !0)
1000
+ ], 512)) : h("", !0),
1001
+ Xe(u(Je), {
1002
+ show: C.value.showTooltip && K.value,
1003
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1004
+ color: e.value.style.chart.tooltip.color,
1005
+ fontSize: e.value.style.chart.tooltip.fontSize,
1006
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1007
+ borderColor: e.value.style.chart.tooltip.borderColor,
1008
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1009
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1010
+ position: e.value.style.chart.tooltip.position,
1011
+ offsetY: e.value.style.chart.tooltip.offsetY,
1012
+ parent: L.value,
1013
+ content: Q.value,
1014
+ isCustom: H.value,
1015
+ isFullscreen: j.value,
1016
+ smooth: e.value.style.chart.tooltip.smooth,
1017
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
1018
+ }, {
1019
+ "tooltip-before": m(() => [
1020
+ p(t.$slots, "tooltip-before", R(Y({ ...re.value })), void 0, !0)
1021
+ ]),
1022
+ "tooltip-after": m(() => [
1023
+ p(t.$slots, "tooltip-after", R(Y({ ...re.value })), void 0, !0)
1024
+ ]),
1025
+ _: 3
1026
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
1027
+ U.value ? (o(), I(u(Ge), {
1028
+ key: 6,
1029
+ hideDetails: "",
1030
+ config: {
1031
+ open: C.value.showTable,
1032
+ maxHeight: 1e4,
1033
+ body: {
1034
+ backgroundColor: e.value.style.chart.backgroundColor,
1035
+ color: e.value.style.chart.color
1036
+ },
1037
+ head: {
1038
+ backgroundColor: e.value.style.chart.backgroundColor,
1039
+ color: e.value.style.chart.color
1040
+ }
1041
+ }
1042
+ }, {
1043
+ content: m(() => [
1044
+ (o(), I(u(Ve), {
1045
+ key: `table_${ye.value}`,
1046
+ colNames: G.value.colNames,
1047
+ head: G.value.head,
1048
+ body: G.value.body,
1049
+ config: G.value.config,
1050
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1051
+ onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
1052
+ }, {
1053
+ th: m(({ th: l }) => [
1054
+ M("div", {
1055
+ innerHTML: l,
1056
+ style: { display: "flex", "align-items": "center" }
1057
+ }, null, 8, Il)
1058
+ ]),
1059
+ td: m(({ td: l }) => [
1060
+ Lt(z(l.name || l), 1)
1061
+ ]),
1062
+ _: 1
1063
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1064
+ ]),
1065
+ _: 1
1066
+ }, 8, ["config"])) : h("", !0),
1067
+ u(S) ? (o(), I(Wt, { key: 7 })) : h("", !0)
1068
+ ], 46, el));
1069
+ }
1070
+ }, ql = /* @__PURE__ */ Qt(Pl, [["__scopeId", "data-v-1948ccf7"]]);
1071
+ export {
1072
+ ql as default
1073
+ };