vue-data-ui 3.0.0-next.9 → 3.0.1

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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
  15. package/dist/Slicer-t6e1t2iM.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-CjnS13nF.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
  41. package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
  42. package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
  45. package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
  46. package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
  53. package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
  55. package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
  56. package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
  57. package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
  58. package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
  59. package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
  62. package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
  63. package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
  65. package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
  68. package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
  69. package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
  71. package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
  72. package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
  73. package/dist/vue-ui-rings-BH81WmMS.js +728 -0
  74. package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
  77. package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
  78. package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
  79. package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
  81. package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
  83. package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
  84. package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
  88. package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
  90. package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
  91. package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
  93. package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
  94. package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
  95. package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
  97. package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,1074 @@
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 b, renderList as g, 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-Dzc2Gi60.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-DBRh8ZvS.js";
6
+ import { u as He } from "./useNestedProp-CjnS13nF.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-CMvJ6X5j.js";
11
+ import Jt from "./Title-xTWR-Vil.js";
12
+ import Kt from "./img-Vb4QHAHI.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"], bl = ["x", "y", "font-size", "fill", "font-weight"], gl = ["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-CPk8wAuj.js")), Ve = X(() => import("./DataTable-ClgCsiJA.js")), qe = X(() => import("./PackageVersion-CD5VH_Al.js")), Ze = X(() => import("./PenAndPaper-D3WRn-G2.js")), Je = X(() => import("./Tooltip-BH3CiANh.js")), Ke = X(() => import("./UserOptions-CKKPgDLV.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(be);
40
+ const me = d(() => !!e.value.debug);
41
+ function be() {
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: ge, 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, be(), 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 bt = d(() => x.value.tickX), gt = d(() => ({ start: 0, end: x.value.tickX.length }));
510
+ return qt({
511
+ timeLabelsEls: W,
512
+ timeLabels: bt,
513
+ slicer: gt,
514
+ configRef: e,
515
+ rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
516
+ autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
517
+ isAutoSize: !1,
518
+ width: at,
519
+ height: st,
520
+ targetClass: ".vue-ui-history-plot-x-axis-scale",
521
+ rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
522
+ }), We({
523
+ getData: pt,
524
+ getImage: mt,
525
+ generatePdf: _e,
526
+ generateCsv: Oe,
527
+ generateImage: Le,
528
+ toggleTable: Ie,
529
+ toggleTooltip: Pe,
530
+ toggleAnnotator: ne,
531
+ toggleFullscreen: Ne
532
+ }), (t, a) => (o(), r("div", {
533
+ id: `history_plot_${E.value}`,
534
+ ref_key: "historyPlotChart",
535
+ ref: L,
536
+ class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": j.value }),
537
+ 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%" : ""}`),
538
+ onMouseenter: a[2] || (a[2] = () => u(ge)(!0)),
539
+ onMouseleave: a[3] || (a[3] = () => u(ge)(!1))
540
+ }, [
541
+ p(t.$slots, "userConfig", {}, void 0, !0),
542
+ e.value.userOptions.buttons.annotator ? (o(), I(u(Ze), {
543
+ key: 0,
544
+ svgRef: u(we),
545
+ backgroundColor: e.value.style.chart.backgroundColor,
546
+ color: e.value.style.chart.color,
547
+ active: V.value,
548
+ onClose: ne
549
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
550
+ tt.value ? (o(), r("div", {
551
+ key: 1,
552
+ ref_key: "noTitle",
553
+ ref: fe,
554
+ class: "vue-data-ui-no-title-space",
555
+ style: "height:36px; width: 100%;background:transparent"
556
+ }, null, 512)) : h("", !0),
557
+ e.value.style.chart.title.text ? (o(), r("div", {
558
+ key: 2,
559
+ ref_key: "chartTitle",
560
+ ref: ue,
561
+ class: "vue-ui-xy-title",
562
+ style: _(`font-family:${e.value.style.fontFamily}`)
563
+ }, [
564
+ (o(), I(Jt, {
565
+ key: `title_${ce.value}`,
566
+ config: {
567
+ title: {
568
+ cy: "history-plot-div-title",
569
+ ...e.value.style.chart.title
570
+ },
571
+ subtitle: {
572
+ cy: "history-plot-div-subtitle",
573
+ ...e.value.style.chart.title.subtitle
574
+ }
575
+ }
576
+ }, null, 8, ["config"]))
577
+ ], 4)) : h("", !0),
578
+ e.value.userOptions.show && U.value && (u(ke) || u(oe)) ? (o(), I(u(Ke), {
579
+ ref: "details",
580
+ key: `user_option_${de.value}`,
581
+ backgroundColor: e.value.style.chart.backgroundColor,
582
+ color: e.value.style.chart.color,
583
+ isPrinting: u(Ae),
584
+ isImaging: u(Ce),
585
+ uid: E.value,
586
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
587
+ hasPdf: e.value.userOptions.buttons.pdf,
588
+ hasImg: e.value.userOptions.buttons.img,
589
+ hasXls: e.value.userOptions.buttons.csv,
590
+ hasTable: e.value.userOptions.buttons.table,
591
+ hasLabel: !1,
592
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
593
+ isFullscreen: j.value,
594
+ chartElement: L.value,
595
+ position: e.value.userOptions.position,
596
+ isTooltip: C.value.showTooltip,
597
+ titles: { ...e.value.userOptions.buttonTitles },
598
+ hasAnnotator: e.value.userOptions.buttons.annotator,
599
+ isAnnotation: V.value,
600
+ callbacks: e.value.userOptions.callbacks,
601
+ printScale: e.value.userOptions.print.scale,
602
+ onToggleFullscreen: Ne,
603
+ onGeneratePdf: u(_e),
604
+ onGenerateCsv: Oe,
605
+ onGenerateImage: u(Le),
606
+ onToggleTable: Ie,
607
+ onToggleTooltip: Pe,
608
+ onToggleAnnotator: ne,
609
+ style: _({
610
+ visibility: u(ke) ? u(oe) ? "visible" : "hidden" : "visible"
611
+ })
612
+ }, _t({ _: 2 }, [
613
+ t.$slots.menuIcon ? {
614
+ name: "menuIcon",
615
+ fn: m(({ isOpen: l, color: i }) => [
616
+ p(t.$slots, "menuIcon", R(Y({ isOpen: l, color: i })), void 0, !0)
617
+ ]),
618
+ key: "0"
619
+ } : void 0,
620
+ t.$slots.optionTooltip ? {
621
+ name: "optionTooltip",
622
+ fn: m(() => [
623
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
624
+ ]),
625
+ key: "1"
626
+ } : void 0,
627
+ t.$slots.optionPdf ? {
628
+ name: "optionPdf",
629
+ fn: m(() => [
630
+ p(t.$slots, "optionPdf", {}, void 0, !0)
631
+ ]),
632
+ key: "2"
633
+ } : void 0,
634
+ t.$slots.optionCsv ? {
635
+ name: "optionCsv",
636
+ fn: m(() => [
637
+ p(t.$slots, "optionCsv", {}, void 0, !0)
638
+ ]),
639
+ key: "3"
640
+ } : void 0,
641
+ t.$slots.optionImg ? {
642
+ name: "optionImg",
643
+ fn: m(() => [
644
+ p(t.$slots, "optionImg", {}, void 0, !0)
645
+ ]),
646
+ key: "4"
647
+ } : void 0,
648
+ t.$slots.optionTable ? {
649
+ name: "optionTable",
650
+ fn: m(() => [
651
+ p(t.$slots, "optionTable", {}, void 0, !0)
652
+ ]),
653
+ key: "5"
654
+ } : void 0,
655
+ t.$slots.optionFullscreen ? {
656
+ name: "optionFullscreen",
657
+ fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
658
+ p(t.$slots, "optionFullscreen", R(Y({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
659
+ ]),
660
+ key: "6"
661
+ } : void 0,
662
+ t.$slots.optionAnnotator ? {
663
+ name: "optionAnnotator",
664
+ fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
665
+ p(t.$slots, "optionAnnotator", R(Y({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
666
+ ]),
667
+ key: "7"
668
+ } : void 0
669
+ ]), 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),
670
+ (o(), r("svg", {
671
+ ref_key: "svgRef",
672
+ ref: we,
673
+ xmlns: u(Ot),
674
+ viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
675
+ style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
676
+ }, [
677
+ Xe(u(qe)),
678
+ t.$slots["chart-background"] ? (o(), r("foreignObject", {
679
+ key: 0,
680
+ x: c.value.left,
681
+ y: c.value.top,
682
+ width: c.value.width <= 0 ? 10 : c.value.width,
683
+ height: c.value.height <= 0 ? 10 : c.value.height,
684
+ style: {
685
+ pointerEvents: "none"
686
+ }
687
+ }, [
688
+ p(t.$slots, "chart-background", {}, void 0, !0)
689
+ ], 8, ll)) : h("", !0),
690
+ e.value.style.chart.plots.gradient.show ? (o(), r("defs", al, [
691
+ (o(!0), r(b, null, g(N.value, (l, i) => (o(), r("radialGradient", {
692
+ id: `gradient_${i}_${E.value}`,
693
+ fy: "30%"
694
+ }, [
695
+ M("stop", {
696
+ offset: "10%",
697
+ "stop-color": u(It)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
698
+ }, null, 8, ol),
699
+ M("stop", {
700
+ offset: "90%",
701
+ "stop-color": u(Pt)(l.color, 0.1)
702
+ }, null, 8, rl),
703
+ M("stop", {
704
+ offset: "100%",
705
+ "stop-color": l.color
706
+ }, null, 8, nl)
707
+ ], 8, sl))), 256))
708
+ ])) : h("", !0),
709
+ e.value.style.chart.grid.verticalLines.show ? (o(), r("g", il, [
710
+ (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("line", {
711
+ x1: l.x,
712
+ x2: l.x,
713
+ y1: l.y1,
714
+ y2: l.y2,
715
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
716
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
717
+ "stroke-linecap": "round"
718
+ }, null, 8, ul))), 256))
719
+ ])) : h("", !0),
720
+ e.value.style.chart.axes.y.labels.show ? (o(), r("g", cl, [
721
+ (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("line", {
722
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
723
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
724
+ "stroke-linecap": "round",
725
+ x1: c.value.left - 5,
726
+ x2: c.value.left,
727
+ y1: l.y,
728
+ y2: l.y
729
+ }, null, 8, vl))), 256))
730
+ ])) : h("", !0),
731
+ e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
732
+ key: 4,
733
+ ref_key: "yAxisScales",
734
+ ref: le
735
+ }, [
736
+ (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("text", {
737
+ x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
738
+ y: l.y + n.value.yAxisLabels / 3,
739
+ fill: e.value.style.chart.axes.y.labels.color,
740
+ "font-size": n.value.yAxisLabels,
741
+ "text-anchor": "end"
742
+ }, z(u(D)(
743
+ e.value.style.chart.axes.y.labels.formatter,
744
+ l.value,
745
+ u(B)({
746
+ p: e.value.style.chart.axes.y.labels.prefix,
747
+ v: l.value,
748
+ s: e.value.style.chart.axes.y.labels.suffix,
749
+ r: e.value.style.chart.axes.y.labels.rounding
750
+ })
751
+ )), 9, hl))), 256))
752
+ ], 512)) : h("", !0),
753
+ e.value.style.chart.axes.y.name.text ? (o(), r("text", {
754
+ key: 5,
755
+ ref_key: "yAxisLabel",
756
+ ref: te,
757
+ transform: `translate(${n.value.yAxisName}, ${f.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
758
+ "font-size": n.value.yAxisName,
759
+ fill: e.value.style.chart.axes.y.name.color,
760
+ "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
761
+ "text-anchor": "middle"
762
+ }, z(e.value.style.chart.axes.y.name.text), 9, yl)) : h("", !0),
763
+ e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", dl, [
764
+ (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("line", {
765
+ x1: l.x1,
766
+ x2: l.x2,
767
+ y1: l.y,
768
+ y2: l.y,
769
+ stroke: e.value.style.chart.grid.horizontalLines.stroke,
770
+ "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
771
+ "stroke-linecap": "round"
772
+ }, null, 8, fl))), 256))
773
+ ])) : h("", !0),
774
+ e.value.style.chart.axes.x.labels.show ? (o(), r("g", xl, [
775
+ (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("line", {
776
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
777
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
778
+ "stroke-linecap": "round",
779
+ x1: l.x,
780
+ x2: l.x,
781
+ y1: c.value.bottom,
782
+ y2: c.value.bottom + 5
783
+ }, null, 8, pl))), 256))
784
+ ])) : h("", !0),
785
+ e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
786
+ key: 8,
787
+ ref_key: "xAxisScales",
788
+ ref: W
789
+ }, [
790
+ (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("text", {
791
+ class: "vue-ui-history-plot-x-axis-scale",
792
+ 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})`,
793
+ fill: e.value.style.chart.axes.x.labels.color,
794
+ "font-size": n.value.xAxisLabels,
795
+ "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
796
+ }, z(u(D)(
797
+ e.value.style.chart.axes.x.labels.formatter,
798
+ l.value,
799
+ u(B)({
800
+ p: e.value.style.chart.axes.x.labels.prefix,
801
+ v: l.value,
802
+ s: e.value.style.chart.axes.x.labels.suffix,
803
+ r: e.value.style.chart.axes.x.labels.rounding
804
+ })
805
+ )), 9, ml))), 256))
806
+ ], 512)) : h("", !0),
807
+ e.value.style.chart.axes.x.name.text ? (o(), r("text", {
808
+ key: 9,
809
+ ref_key: "xAxisLabel",
810
+ ref: ee,
811
+ x: f.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
812
+ y: f.value.height,
813
+ "font-size": n.value.xAxisName,
814
+ fill: e.value.style.chart.axes.x.name.color,
815
+ "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
816
+ "text-anchor": "middle"
817
+ }, z(e.value.style.chart.axes.x.name.text), 9, bl)) : h("", !0),
818
+ e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
819
+ key: 10,
820
+ x1: c.value.left,
821
+ x2: c.value.left + c.value.width,
822
+ y1: c.value.bottom,
823
+ y2: c.value.bottom,
824
+ stroke: e.value.style.chart.grid.xAxis.stroke,
825
+ "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
826
+ "stroke-linecap": "round"
827
+ }, null, 8, gl)) : h("", !0),
828
+ e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
829
+ key: 11,
830
+ x1: c.value.left,
831
+ x2: c.value.left,
832
+ y1: c.value.top,
833
+ y2: c.value.bottom,
834
+ stroke: e.value.style.chart.grid.yAxis.stroke,
835
+ "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
836
+ "stroke-linecap": "round"
837
+ }, null, 8, kl)) : h("", !0),
838
+ (o(!0), r(b, null, g(N.value, (l, i) => (o(), r("g", null, [
839
+ e.value.style.chart.paths.show ? (o(), r("g", {
840
+ key: 0,
841
+ style: _({
842
+ opacity: A.value === null ? 1 : 0.3
843
+ })
844
+ }, [
845
+ M("path", {
846
+ d: l.path,
847
+ stroke: e.value.style.chart.backgroundColor,
848
+ "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
849
+ fill: "none",
850
+ "stroke-linecap": "round",
851
+ "stroke-linejoin": "round",
852
+ class: O({ animated: e.value.useCssAnimation && !u(S) })
853
+ }, null, 10, wl),
854
+ M("path", {
855
+ d: l.path,
856
+ stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
857
+ "stroke-width": e.value.style.chart.paths.strokeWidth,
858
+ fill: "none",
859
+ "stroke-linecap": "round",
860
+ "stroke-linejoin": "round",
861
+ class: O({ animated: e.value.useCssAnimation && !u(S) })
862
+ }, null, 10, Al)
863
+ ], 4)) : h("", !0),
864
+ (o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
865
+ cx: s.x,
866
+ cy: s.y,
867
+ fill: e.value.style.chart.backgroundColor,
868
+ r: n.value.plots,
869
+ stroke: "none"
870
+ }, null, 8, Cl))), 256)),
871
+ (o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
872
+ cx: s.x,
873
+ cy: s.y,
874
+ fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${E.value})` : s.color,
875
+ r: n.value.plots,
876
+ stroke: e.value.style.chart.plots.stroke,
877
+ "stroke-width": e.value.style.chart.plots.strokeWidth,
878
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
879
+ style: _({
880
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
881
+ transition: "opacity 0.2s ease-in-out"
882
+ })
883
+ }, null, 14, _l))), 256)),
884
+ e.value.style.chart.plots.labels.show ? (o(), r("g", Ll, [
885
+ (o(!0), r(b, null, g(l.plots, (s) => (o(), r("g", null, [
886
+ String(s.label).includes(`
887
+ `) ? (o(), r("text", {
888
+ key: 1,
889
+ x: s.x + e.value.style.chart.plots.labels.offsetX,
890
+ y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
891
+ "font-size": n.value.labels,
892
+ fill: e.value.style.chart.plots.labels.color,
893
+ "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
894
+ "text-anchor": "middle",
895
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
896
+ style: _({
897
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
898
+ transition: "opacity 0.2s ease-in-out"
899
+ }),
900
+ innerHTML: u(Ft)({
901
+ content: String(s.label),
902
+ fontSize: n.value.labels,
903
+ fill: e.value.style.chart.plots.labels.color,
904
+ x: s.x + e.value.style.chart.plots.labels.offsetX,
905
+ y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
906
+ })
907
+ }, null, 14, Sl)) : (o(), r("text", {
908
+ key: 0,
909
+ x: s.x + e.value.style.chart.plots.labels.offsetX,
910
+ y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
911
+ "font-size": n.value.labels,
912
+ fill: e.value.style.chart.plots.labels.color,
913
+ "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
914
+ "text-anchor": "middle",
915
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
916
+ style: _({
917
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
918
+ transition: "opacity 0.2s ease-in-out"
919
+ })
920
+ }, z(s.label), 15, $l))
921
+ ]))), 256))
922
+ ])) : h("", !0),
923
+ e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Tl, [
924
+ (o(!0), r(b, null, g(l.plots, (s, k) => (o(), r("text", {
925
+ x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
926
+ y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
927
+ "font-size": n.value.indexLabels,
928
+ "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
929
+ fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Xt)(l.color) : e.value.style.chart.plots.indexLabels.color,
930
+ "text-anchor": "middle",
931
+ class: O({ animated: e.value.useCssAnimation && !u(S) }),
932
+ style: _({
933
+ opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
934
+ transition: "opacity 0.2s ease-in-out"
935
+ })
936
+ }, z(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Ml))), 256))
937
+ ])) : h("", !0)
938
+ ]))), 256)),
939
+ (o(!0), r(b, null, g(N.value, (l) => (o(), r("g", null, [
940
+ (o(!0), r(b, null, g(l.plots, (i, s) => (o(), r("circle", {
941
+ cx: i.x,
942
+ cy: i.y,
943
+ fill: "transparent",
944
+ r: n.value.plots,
945
+ stroke: "none",
946
+ onMouseenter: (k) => xt({
947
+ datapoint: i,
948
+ plotIndex: s,
949
+ seriesIndex: l.seriesIndex
950
+ }),
951
+ onMouseleave: (k) => ft({
952
+ datapoint: i,
953
+ plotIndex: s,
954
+ seriesIndex: l.seriesIndex
955
+ }),
956
+ onClick: (k) => dt({
957
+ datapoint: i,
958
+ plotIndex: s,
959
+ seriesIndex: l.seriesIndex
960
+ })
961
+ }, null, 40, zl))), 256))
962
+ ]))), 256)),
963
+ p(t.$slots, "svg", { svg: f.value }, void 0, !0)
964
+ ], 12, tl)),
965
+ t.$slots.watermark ? (o(), r("div", Nl, [
966
+ p(t.$slots, "watermark", R(Y({ isPrinting: u(Ae) || u(Ce) })), void 0, !0)
967
+ ])) : h("", !0),
968
+ M("div", {
969
+ ref_key: "chartLegend",
970
+ ref: ve
971
+ }, [
972
+ e.value.style.chart.legend.show && U.value ? (o(), I(Zt, {
973
+ key: `legend_${he.value}`,
974
+ legendSet: Me.value,
975
+ config: yt.value,
976
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
977
+ Te(l.seriesIndex), ze(l);
978
+ })
979
+ }, {
980
+ item: m(({ legend: l, index: i }) => [
981
+ M("div", {
982
+ onClick: (s) => {
983
+ l.segregate(), ze(l);
984
+ },
985
+ style: _(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
986
+ }, z(l.name), 13, Ol)
987
+ ]),
988
+ _: 1
989
+ }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
990
+ key: 1,
991
+ legend: Me.value
992
+ }, void 0, !0)
993
+ ], 512),
994
+ t.$slots.source ? (o(), r("div", {
995
+ key: 5,
996
+ ref_key: "source",
997
+ ref: xe,
998
+ dir: "auto"
999
+ }, [
1000
+ p(t.$slots, "source", {}, void 0, !0)
1001
+ ], 512)) : h("", !0),
1002
+ Xe(u(Je), {
1003
+ show: C.value.showTooltip && K.value,
1004
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1005
+ color: e.value.style.chart.tooltip.color,
1006
+ fontSize: e.value.style.chart.tooltip.fontSize,
1007
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1008
+ borderColor: e.value.style.chart.tooltip.borderColor,
1009
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1010
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1011
+ position: e.value.style.chart.tooltip.position,
1012
+ offsetY: e.value.style.chart.tooltip.offsetY,
1013
+ parent: L.value,
1014
+ content: Q.value,
1015
+ isCustom: H.value,
1016
+ isFullscreen: j.value,
1017
+ smooth: e.value.style.chart.tooltip.smooth,
1018
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
1019
+ }, {
1020
+ "tooltip-before": m(() => [
1021
+ p(t.$slots, "tooltip-before", R(Y({ ...re.value })), void 0, !0)
1022
+ ]),
1023
+ "tooltip-after": m(() => [
1024
+ p(t.$slots, "tooltip-after", R(Y({ ...re.value })), void 0, !0)
1025
+ ]),
1026
+ _: 3
1027
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
1028
+ U.value ? (o(), I(u(Ge), {
1029
+ key: 6,
1030
+ hideDetails: "",
1031
+ config: {
1032
+ open: C.value.showTable,
1033
+ maxHeight: 1e4,
1034
+ body: {
1035
+ backgroundColor: e.value.style.chart.backgroundColor,
1036
+ color: e.value.style.chart.color
1037
+ },
1038
+ head: {
1039
+ backgroundColor: e.value.style.chart.backgroundColor,
1040
+ color: e.value.style.chart.color
1041
+ }
1042
+ }
1043
+ }, {
1044
+ content: m(() => [
1045
+ (o(), I(u(Ve), {
1046
+ key: `table_${ye.value}`,
1047
+ colNames: G.value.colNames,
1048
+ head: G.value.head,
1049
+ body: G.value.body,
1050
+ config: G.value.config,
1051
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1052
+ onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
1053
+ }, {
1054
+ th: m(({ th: l }) => [
1055
+ M("div", {
1056
+ innerHTML: l,
1057
+ style: { display: "flex", "align-items": "center" }
1058
+ }, null, 8, Il)
1059
+ ]),
1060
+ td: m(({ td: l }) => [
1061
+ Lt(z(l.name || l), 1)
1062
+ ]),
1063
+ _: 1
1064
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1065
+ ]),
1066
+ _: 1
1067
+ }, 8, ["config"])) : h("", !0),
1068
+ u(S) ? (o(), I(Wt, { key: 7 })) : h("", !0)
1069
+ ], 46, el));
1070
+ }
1071
+ }, ql = /* @__PURE__ */ Qt(Pl, [["__scopeId", "data-v-69f5b31c"]]);
1072
+ export {
1073
+ ql as default
1074
+ };