vue-data-ui 3.0.0-next.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.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-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.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-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  35. package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-O07lQwRC.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-Hh7nGEjp.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
  107. package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
  108. package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
  109. package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
  110. package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
  111. package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
  112. package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
  113. package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
  114. package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
  115. package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
  116. package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
  117. package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
  118. package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
  119. package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
  120. package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
  121. package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
  122. package/dist/vue-ui-onion-B9thdF_c.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
  124. package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
  125. package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
  126. package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
  127. package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
  128. package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
  129. package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
  130. package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
  131. package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
  132. package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
  134. package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
  136. package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
  137. package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
  138. package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
  139. package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
  140. package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
  141. package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
  142. package/dist/vue-ui-wheel-C6uAotal.js +0 -352
  143. package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
  144. package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
@@ -1,924 +0,0 @@
1
- import { defineAsyncComponent as O, ref as h, shallowRef as Se, computed as f, onMounted as lt, onBeforeUnmount as at, watch as st, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as $, normalizeClass as I, renderSlot as x, createBlock as P, createCommentVNode as v, createElementVNode as T, createVNode as Ae, createSlots as ot, withCtx as m, normalizeProps as Y, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as L, createTextVNode as rt, nextTick as nt } from "vue";
2
- import { u as it, c as Me, o as ut, e as ze, g as ct, b as vt, d as ht, p as G, D as Te, i as j, f as R, X as yt, l as dt, h as ft, I as xt, F as pt, E as F, t as mt, a as gt, C as q, q as bt, r as kt, x as wt } from "./index-Cfm5-hMQ.js";
3
- import { u as Le } from "./useNestedProp-Hh7nGEjp.js";
4
- import { u as Ct } from "./usePrinter-B1Hgs47c.js";
5
- import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
6
- import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as At } from "./useChartAccessibility-9icAAmYg.js";
8
- import Mt from "./Legend-DInM-hku.js";
9
- import zt from "./Title-BSlAPr_H.js";
10
- import Tt from "./img-CgMUOQnb.js";
11
- import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"], Pt = { key: 1 }, Ft = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], Dt = ["stop-color"], jt = { key: 2 }, Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = { key: 3 }, Et = ["x", "y", "fill", "font-size"], Ht = ["transform", "font-size", "fill", "font-weight"], Ut = { key: 5 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = { key: 6 }, Gt = ["transform", "fill", "font-size", "text-anchor"], qt = ["x", "y", "font-size", "fill", "font-weight"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["d", "stroke", "stroke-width"], Qt = ["d", "stroke", "stroke-width"], el = ["cx", "cy", "fill", "r"], tl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], ll = { key: 1 }, al = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], ol = { key: 2 }, rl = ["x", "y", "font-size", "font-weight", "fill"], nl = ["cx", "cy", "r", "onMouseenter", "onClick"], il = {
13
- key: 5,
14
- class: "vue-data-ui-watermark"
15
- }, ul = ["onClick"], cl = ["innerHTML"], vl = {
16
- __name: "vue-ui-history-plot",
17
- props: {
18
- config: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- },
24
- dataset: {
25
- type: Array,
26
- default() {
27
- return [];
28
- }
29
- }
30
- },
31
- emits: ["selectLegend", "selectDatapoint"],
32
- setup(Ne, { expose: Oe, emit: Ie }) {
33
- const Pe = O(() => import("./vue-ui-accordion-CEDGlyKI.js")), Fe = O(() => import("./DataTable-D36ZRtpU.js")), Xe = O(() => import("./PackageVersion-CGQlqnmq.js")), Ye = O(() => import("./PenAndPaper-B5slIHlh.js")), De = O(() => import("./vue-ui-skeleton-P-1SRvsT.js")), je = O(() => import("./Tooltip-lPcsweXz.js")), Re = O(() => import("./UserOptions-Dn5TCQxg.js")), { vue_ui_history_plot: Be } = it(), y = Ne, A = h(null), te = h(null), le = h(0), ae = h(null), se = h(0), oe = h(0), re = h(0), M = Se(null), X = Se(null), ne = h(null), B = h(Me()), Z = h(!1), J = h(""), g = h([]), H = h(!1), w = h(null), E = h(!1), ie = h(null), C = f({
34
- get: () => !!y.dataset && y.dataset.length,
35
- set: (t) => t
36
- }), ue = Ie;
37
- lt(ce);
38
- function ce() {
39
- if (ut(y.dataset) ? ze({
40
- componentName: "VueUiHistoryPlot",
41
- type: "dataset"
42
- }) : y.dataset.forEach((t, a) => {
43
- ct({
44
- datasetObject: t,
45
- requiredAttributes: ["name", "values"]
46
- }).forEach((l) => {
47
- C.value = !1, ze({
48
- componentName: "VueUiHistoryPlot",
49
- type: "datasetSerieAttribute",
50
- property: l,
51
- index: a
52
- });
53
- });
54
- }), e.value.responsive) {
55
- const t = _t(() => {
56
- const { width: a, height: l } = $t({
57
- chart: A.value,
58
- title: e.value.style.chart.title.text ? te.value : null,
59
- noTitle: ne.value,
60
- legend: e.value.style.chart.legend.show ? ae.value : null,
61
- source: ie.value
62
- });
63
- requestAnimationFrame(() => {
64
- d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
65
- relator: Math.min(a, l),
66
- adjuster: 600,
67
- source: e.value.style.chart.plots.radius,
68
- threshold: 3,
69
- fallback: 3
70
- }), n.value.indexLabels = F({
71
- relator: Math.min(a, l),
72
- adjuster: 600,
73
- source: e.value.style.chart.plots.indexLabels.fontSize,
74
- threshold: 6,
75
- fallback: 6
76
- }), n.value.labels = F({
77
- relator: Math.min(a, l),
78
- adjuster: 600,
79
- source: e.value.style.chart.plots.labels.fontSize,
80
- threshold: 6,
81
- fallback: 6
82
- }), n.value.xAxisLabels = F({
83
- relator: Math.min(a, l),
84
- adjuster: 600,
85
- source: e.value.style.chart.axes.x.labels.fontSize,
86
- threshold: 6,
87
- fallback: 6
88
- }), n.value.xAxisName = F({
89
- relator: Math.min(a, l),
90
- adjuster: 600,
91
- source: e.value.style.chart.axes.x.name.fontSize,
92
- threshold: 6,
93
- fallback: 6
94
- }), n.value.yAxisLabels = F({
95
- relator: Math.min(a, l),
96
- adjuster: 600,
97
- source: e.value.style.chart.axes.y.labels.fontSize,
98
- threshold: 6,
99
- fallback: 6
100
- }), n.value.yAxisName = F({
101
- relator: Math.min(a, l),
102
- adjuster: 600,
103
- source: e.value.style.chart.axes.y.name.fontSize,
104
- threshold: 6,
105
- fallback: 6
106
- })) : (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);
107
- });
108
- });
109
- M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value = A.value.parentNode, M.value.observe(X.value);
110
- }
111
- }
112
- at(() => {
113
- M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect());
114
- });
115
- function ve() {
116
- const t = Le({
117
- userConfig: y.config,
118
- defaultConfig: Be
119
- });
120
- let a = {};
121
- return t.theme ? a = {
122
- ...Le({
123
- userConfig: gt.vue_ui_history_plot[t.theme] || y.config,
124
- defaultConfig: t
125
- }),
126
- customPalette: mt[t.theme] || G
127
- } : a = t, y.config && q(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 && q(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 && q(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 && q(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;
128
- }
129
- const e = f({
130
- get: () => ve(),
131
- set: (t) => t
132
- }), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: ye } = St({ config: e.value }), { svgRef: de } = At({ config: e.value.style.chart.title });
133
- st(() => y.config, (t) => {
134
- e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), le.value += 1, oe.value += 1, se.value += 1, d.value.height = e.value.style.chart.height, d.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, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
135
- }, { deep: !0 });
136
- const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } = Ct({
137
- elementId: `history_plot_${B.value}`,
138
- fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
139
- options: e.value.userOptions.print
140
- }), Ee = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), He = f(() => vt(e.value.customPalette)), _ = h({
141
- showTable: e.value.table.show,
142
- showTooltip: e.value.style.chart.tooltip.show
143
- }), d = h({
144
- height: e.value.style.chart.height,
145
- width: e.value.style.chart.width
146
- }), i = f(() => {
147
- const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top;
148
- return {
149
- left: t,
150
- top: a,
151
- right: d.value.width - e.value.style.chart.padding.right,
152
- bottom: d.value.height - e.value.style.chart.padding.bottom,
153
- width: d.value.width - t - e.value.style.chart.padding.right,
154
- height: d.value.height - a - e.value.style.chart.padding.bottom
155
- };
156
- }), n = h({
157
- plots: e.value.style.chart.plots.radius,
158
- indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
159
- labels: e.value.style.chart.plots.labels.fontSize,
160
- xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
161
- xAxisName: e.value.style.chart.axes.x.name.fontSize,
162
- yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
163
- yAxisName: e.value.style.chart.axes.y.name.fontSize
164
- }), z = f(() => C.value ? y.dataset.map((t, a) => ({
165
- ...t,
166
- color: t.color ? ht(t.color) : He.value[a] || G[a] || G[a % G.length],
167
- seriesIndex: a
168
- })) : []), Ue = f(() => C.value ? Math.max(...z.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), We = f(() => {
169
- if (!C.value) return 1;
170
- const t = Math.min(...z.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
171
- return t < 0 ? t : 0;
172
- }), Ve = f(() => C.value ? Math.max(...z.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ge = f(() => {
173
- if (!C.value) return 1;
174
- const t = Math.min(...z.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
175
- return t < 0 ? t : 0;
176
- }), p = f(() => {
177
- const t = Te(
178
- e.value.style.chart.axes.x.scaleMin === null ? We.value : e.value.style.chart.axes.x.scaleMin,
179
- e.value.style.chart.axes.x.scaleMax === null ? Ue.value : e.value.style.chart.axes.x.scaleMax,
180
- e.value.style.chart.axes.x.ticks
181
- ), a = Te(
182
- e.value.style.chart.axes.y.scaleMin === null ? Ge.value : e.value.style.chart.axes.y.scaleMin,
183
- e.value.style.chart.axes.y.scaleMax === null ? Ve.value : e.value.style.chart.axes.y.scaleMax,
184
- e.value.style.chart.axes.y.ticks
185
- );
186
- return {
187
- x: t,
188
- y: a,
189
- tickX: t.ticks.map((l) => ({
190
- x: i.value.left + (l - t.min) / (t.max - t.min) * i.value.width,
191
- y1: i.value.top,
192
- y2: i.value.bottom,
193
- value: l
194
- })),
195
- tickY: a.ticks.map((l) => ({
196
- y: i.value.bottom - (l - a.min) / (a.max - a.min) * i.value.height,
197
- x1: i.value.left,
198
- x2: i.value.right,
199
- value: l
200
- }))
201
- };
202
- });
203
- function qe(t) {
204
- const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
205
- return i.value.left + ((t || 0) + a) / (p.value.x.max + a) * i.value.width;
206
- }
207
- function Ze(t) {
208
- const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
209
- return i.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * i.value.height;
210
- }
211
- const N = f(() => z.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
212
- const l = t.values.map((s, S) => ({
213
- valueX: s.x,
214
- valueY: s.y,
215
- label: s.label,
216
- x: qe(s.x),
217
- y: Ze(s.y),
218
- color: t.color,
219
- seriesName: t.name,
220
- id: Me()
221
- })), c = l.map((s) => `${s.x},${s.y} `).join("").trim();
222
- return {
223
- ...t,
224
- plots: l,
225
- path: `M${c}`
226
- };
227
- }));
228
- function ge(t) {
229
- g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
230
- }
231
- const be = f(() => z.value.map((t) => ({
232
- ...t,
233
- opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
234
- segregate: () => ge(t.seriesIndex),
235
- isSegregated: g.value.includes(t.seriesIndex),
236
- shape: "circle"
237
- }))), Je = f(() => ({
238
- cy: "history-plot-div-legend",
239
- backgroundColor: e.value.style.chart.legend.backgroundColor,
240
- color: e.value.style.chart.legend.color,
241
- fontSize: e.value.style.chart.legend.fontSize,
242
- paddingBottom: 12,
243
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
244
- }));
245
- function Ke(t) {
246
- ue("selectDatapoint", t);
247
- }
248
- function ke(t) {
249
- ue("selectLegend", {
250
- ...t,
251
- isSegregated: !t.isSegregated,
252
- opacity: t.isSegregated ? 1 : 0.5
253
- });
254
- }
255
- function we(t) {
256
- H.value = t, re.value += 1;
257
- }
258
- const Q = h(null);
259
- function Qe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
260
- Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: z.value }, w.value = t;
261
- const c = e.value.style.chart.tooltip.customFormat;
262
- if (E.value = !1, wt(c))
263
- try {
264
- const s = c({
265
- seriesIndex: l,
266
- datapoint: t,
267
- plotIndex: a,
268
- series: z.value,
269
- config: e.value
270
- });
271
- typeof s == "string" && (J.value = s, E.value = !0);
272
- } catch {
273
- console.warn("Custom format cannot be applied."), E.value = !1;
274
- }
275
- if (!E.value) {
276
- let s = "";
277
- 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"}: ${j(
278
- e.value.style.chart.axes.x.labels.formatter,
279
- t.valueX,
280
- R({
281
- p: e.value.style.chart.axes.x.labels.prefix,
282
- v: t.valueX,
283
- s: e.value.style.chart.axes.x.labels.suffix,
284
- r: e.value.style.chart.axes.x.labels.rounding
285
- })
286
- )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${j(
287
- e.value.style.chart.axes.y.labels.formatter,
288
- t.valueY,
289
- R({
290
- p: e.value.style.chart.axes.y.labels.prefix,
291
- v: t.valueY,
292
- s: e.value.style.chart.axes.y.labels.suffix,
293
- r: e.value.style.chart.axes.y.labels.rounding
294
- })
295
- )}</div>`, J.value = `<div>${s}</div>`;
296
- }
297
- Z.value = !0;
298
- }
299
- f(() => ({ head: N.value.map((a) => ({
300
- name: a.name,
301
- color: a.color
302
- })) }));
303
- const U = f(() => {
304
- const t = [
305
- e.value.table.columnNames.series,
306
- e.value.table.columnNames.datapoint,
307
- e.value.table.columnNames.x,
308
- e.value.table.columnNames.y
309
- ], a = N.value.flatMap((c) => c.plots.map((s) => [
310
- {
311
- color: s.color,
312
- name: s.seriesName
313
- },
314
- s.label,
315
- j(
316
- e.value.style.chart.axes.x.labels.formatter,
317
- s.valueX,
318
- R({
319
- p: e.value.style.chart.axes.x.labels.prefix,
320
- v: s.valueX,
321
- s: e.value.style.chart.axes.x.labels.suffix,
322
- r: e.value.style.chart.axes.x.labels.rounding
323
- })
324
- ),
325
- j(
326
- e.value.style.chart.axes.y.labels.formatter,
327
- s.valueY,
328
- R({
329
- p: e.value.style.chart.axes.y.labels.prefix,
330
- v: s.valueY,
331
- s: e.value.style.chart.axes.y.labels.suffix,
332
- r: e.value.style.chart.axes.y.labels.rounding
333
- })
334
- )
335
- ])), l = {
336
- th: {
337
- backgroundColor: e.value.table.th.backgroundColor,
338
- color: e.value.table.th.color,
339
- outline: e.value.table.th.outline
340
- },
341
- td: {
342
- backgroundColor: e.value.table.td.backgroundColor,
343
- color: e.value.table.td.color,
344
- outline: e.value.table.td.outline
345
- },
346
- breakpoint: e.value.table.responsiveBreakpoint
347
- };
348
- return {
349
- head: t,
350
- body: a,
351
- config: l,
352
- colNames: t
353
- };
354
- });
355
- function Ce(t = null) {
356
- nt(() => {
357
- const a = [
358
- [e.value.table.columnNames.series],
359
- [e.value.table.columnNames.datapoint],
360
- [e.value.table.columnNames.x],
361
- [e.value.table.columnNames.y]
362
- ], l = N.value.flatMap((S) => S.plots.map((V) => [
363
- [V.seriesName],
364
- [V.label],
365
- [V.valueX],
366
- [V.valueY]
367
- ])), c = [
368
- [e.value.style.chart.title.text],
369
- [e.value.style.chart.title.subtitle.text],
370
- a
371
- ].concat(l), s = bt(c);
372
- t ? t(s) : kt({
373
- csvContent: s,
374
- title: e.value.style.chart.title.text || "vue-ui-history-plot"
375
- });
376
- });
377
- }
378
- const W = h(!1);
379
- function ee() {
380
- W.value = !W.value;
381
- }
382
- function _e() {
383
- _.value.showTable = !_.value.showTable;
384
- }
385
- function $e() {
386
- _.value.showTooltip = !_.value.showTooltip;
387
- }
388
- function et() {
389
- return N.value;
390
- }
391
- async function tt({ scale: t = 2 } = {}) {
392
- if (!A.value) return;
393
- const { width: a, height: l } = A.value.getBoundingClientRect(), c = a / l, { imageUri: s, base64: S } = await Tt({ domElement: A.value, base64: !0, img: !0, scale: t });
394
- return {
395
- imageUri: s,
396
- base64: S,
397
- title: e.value.style.chart.title.text,
398
- width: a,
399
- height: l,
400
- aspectRatio: c
401
- };
402
- }
403
- return Oe({
404
- getData: et,
405
- getImage: tt,
406
- generatePdf: pe,
407
- generateCsv: Ce,
408
- generateImage: me,
409
- toggleTable: _e,
410
- toggleTooltip: $e,
411
- toggleAnnotator: ee,
412
- toggleFullscreen: we
413
- }), (t, a) => (o(), r("div", {
414
- id: `history_plot_${B.value}`,
415
- ref_key: "historyPlotChart",
416
- ref: A,
417
- class: I({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
418
- 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%" : ""}`),
419
- onMouseenter: a[3] || (a[3] = () => u(he)(!0)),
420
- onMouseleave: a[4] || (a[4] = () => u(he)(!1))
421
- }, [
422
- x(t.$slots, "userConfig", {}, void 0, !0),
423
- e.value.userOptions.buttons.annotator ? (o(), P(u(Ye), {
424
- key: 0,
425
- svgRef: u(de),
426
- backgroundColor: e.value.style.chart.backgroundColor,
427
- color: e.value.style.chart.color,
428
- active: W.value,
429
- onClose: ee
430
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
431
- Ee.value ? (o(), r("div", {
432
- key: 1,
433
- ref_key: "noTitle",
434
- ref: ne,
435
- class: "vue-data-ui-no-title-space",
436
- style: "height:36px; width: 100%;background:transparent"
437
- }, null, 512)) : v("", !0),
438
- e.value.style.chart.title.text ? (o(), r("div", {
439
- key: 2,
440
- ref_key: "chartTitle",
441
- ref: te,
442
- class: "vue-ui-xy-title",
443
- style: $(`font-family:${e.value.style.fontFamily}`)
444
- }, [
445
- (o(), P(zt, {
446
- key: `title_${le.value}`,
447
- config: {
448
- title: {
449
- cy: "history-plot-div-title",
450
- ...e.value.style.chart.title
451
- },
452
- subtitle: {
453
- cy: "history-plot-div-subtitle",
454
- ...e.value.style.chart.title.subtitle
455
- }
456
- }
457
- }, null, 8, ["config"]))
458
- ], 4)) : v("", !0),
459
- e.value.userOptions.show && C.value && (u(ye) || u(K)) ? (o(), P(u(Re), {
460
- ref: "details",
461
- key: `user_option_${re.value}`,
462
- backgroundColor: e.value.style.chart.backgroundColor,
463
- color: e.value.style.chart.color,
464
- isPrinting: u(fe),
465
- isImaging: u(xe),
466
- uid: B.value,
467
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
468
- hasPdf: e.value.userOptions.buttons.pdf,
469
- hasImg: e.value.userOptions.buttons.img,
470
- hasXls: e.value.userOptions.buttons.csv,
471
- hasTable: e.value.userOptions.buttons.table,
472
- hasLabel: !1,
473
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
474
- isFullscreen: H.value,
475
- chartElement: A.value,
476
- position: e.value.userOptions.position,
477
- isTooltip: _.value.showTooltip,
478
- titles: { ...e.value.userOptions.buttonTitles },
479
- hasAnnotator: e.value.userOptions.buttons.annotator,
480
- isAnnotation: W.value,
481
- callbacks: e.value.userOptions.callbacks,
482
- printScale: e.value.userOptions.print.scale,
483
- onToggleFullscreen: we,
484
- onGeneratePdf: u(pe),
485
- onGenerateCsv: Ce,
486
- onGenerateImage: u(me),
487
- onToggleTable: _e,
488
- onToggleTooltip: $e,
489
- onToggleAnnotator: ee,
490
- style: $({
491
- visibility: u(ye) ? u(K) ? "visible" : "hidden" : "visible"
492
- })
493
- }, ot({ _: 2 }, [
494
- t.$slots.menuIcon ? {
495
- name: "menuIcon",
496
- fn: m(({ isOpen: l, color: c }) => [
497
- x(t.$slots, "menuIcon", Y(D({ isOpen: l, color: c })), void 0, !0)
498
- ]),
499
- key: "0"
500
- } : void 0,
501
- t.$slots.optionTooltip ? {
502
- name: "optionTooltip",
503
- fn: m(() => [
504
- x(t.$slots, "optionTooltip", {}, void 0, !0)
505
- ]),
506
- key: "1"
507
- } : void 0,
508
- t.$slots.optionPdf ? {
509
- name: "optionPdf",
510
- fn: m(() => [
511
- x(t.$slots, "optionPdf", {}, void 0, !0)
512
- ]),
513
- key: "2"
514
- } : void 0,
515
- t.$slots.optionCsv ? {
516
- name: "optionCsv",
517
- fn: m(() => [
518
- x(t.$slots, "optionCsv", {}, void 0, !0)
519
- ]),
520
- key: "3"
521
- } : void 0,
522
- t.$slots.optionImg ? {
523
- name: "optionImg",
524
- fn: m(() => [
525
- x(t.$slots, "optionImg", {}, void 0, !0)
526
- ]),
527
- key: "4"
528
- } : void 0,
529
- t.$slots.optionTable ? {
530
- name: "optionTable",
531
- fn: m(() => [
532
- x(t.$slots, "optionTable", {}, void 0, !0)
533
- ]),
534
- key: "5"
535
- } : void 0,
536
- t.$slots.optionFullscreen ? {
537
- name: "optionFullscreen",
538
- fn: m(({ toggleFullscreen: l, isFullscreen: c }) => [
539
- x(t.$slots, "optionFullscreen", Y(D({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
540
- ]),
541
- key: "6"
542
- } : void 0,
543
- t.$slots.optionAnnotator ? {
544
- name: "optionAnnotator",
545
- fn: m(({ toggleAnnotator: l, isAnnotator: c }) => [
546
- x(t.$slots, "optionAnnotator", Y(D({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
547
- ]),
548
- key: "7"
549
- } : void 0
550
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
551
- C.value ? (o(), r("svg", {
552
- key: 4,
553
- ref_key: "svgRef",
554
- ref: de,
555
- xmlns: u(yt),
556
- viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
557
- style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
558
- }, [
559
- Ae(u(Xe)),
560
- t.$slots["chart-background"] ? (o(), r("foreignObject", {
561
- key: 0,
562
- x: i.value.left,
563
- y: i.value.top,
564
- width: i.value.width <= 0 ? 10 : i.value.width,
565
- height: i.value.height <= 0 ? 10 : i.value.height,
566
- style: {
567
- pointerEvents: "none"
568
- }
569
- }, [
570
- x(t.$slots, "chart-background", {}, void 0, !0)
571
- ], 8, It)) : v("", !0),
572
- e.value.style.chart.plots.gradient.show ? (o(), r("defs", Pt, [
573
- (o(!0), r(b, null, k(N.value, (l, c) => (o(), r("radialGradient", {
574
- id: `gradient_${c}_${B.value}`,
575
- fy: "30%"
576
- }, [
577
- T("stop", {
578
- offset: "10%",
579
- "stop-color": u(dt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
580
- }, null, 8, Xt),
581
- T("stop", {
582
- offset: "90%",
583
- "stop-color": u(ft)(l.color, 0.1)
584
- }, null, 8, Yt),
585
- T("stop", {
586
- offset: "100%",
587
- "stop-color": l.color
588
- }, null, 8, Dt)
589
- ], 8, Ft))), 256))
590
- ])) : v("", !0),
591
- e.value.style.chart.grid.verticalLines.show ? (o(), r("g", jt, [
592
- (o(!0), r(b, null, k(p.value.tickX, (l) => (o(), r("line", {
593
- x1: l.x,
594
- x2: l.x,
595
- y1: l.y1,
596
- y2: l.y2,
597
- stroke: e.value.style.chart.grid.verticalLines.stroke,
598
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
599
- "stroke-linecap": "round"
600
- }, null, 8, Rt))), 256))
601
- ])) : v("", !0),
602
- e.value.style.chart.axes.y.labels.show ? (o(), r("g", Bt, [
603
- (o(!0), r(b, null, k(p.value.tickY, (l) => (o(), r("text", {
604
- x: i.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
605
- y: l.y + n.value.yAxisLabels / 3,
606
- fill: e.value.style.chart.axes.y.labels.color,
607
- "font-size": n.value.yAxisLabels,
608
- "text-anchor": "end"
609
- }, L(u(j)(
610
- e.value.style.chart.axes.y.labels.formatter,
611
- l.value,
612
- u(R)({
613
- p: e.value.style.chart.axes.y.labels.prefix,
614
- v: l.value,
615
- s: e.value.style.chart.axes.y.labels.suffix,
616
- r: e.value.style.chart.axes.y.labels.rounding
617
- })
618
- )), 9, Et))), 256))
619
- ])) : v("", !0),
620
- e.value.style.chart.axes.y.name.text ? (o(), r("text", {
621
- key: 4,
622
- transform: `translate(${e.value.style.chart.axes.y.name.offsetX + n.value.yAxisName}, ${d.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
623
- "font-size": n.value.yAxisName,
624
- fill: e.value.style.chart.axes.y.name.color,
625
- "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
626
- "text-anchor": "middle"
627
- }, L(e.value.style.chart.axes.y.name.text), 9, Ht)) : v("", !0),
628
- e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", Ut, [
629
- (o(!0), r(b, null, k(p.value.tickY, (l) => (o(), r("line", {
630
- x1: l.x1,
631
- x2: l.x2,
632
- y1: l.y,
633
- y2: l.y,
634
- stroke: e.value.style.chart.grid.horizontalLines.stroke,
635
- "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
636
- "stroke-linecap": "round"
637
- }, null, 8, Wt))), 256))
638
- ])) : v("", !0),
639
- e.value.style.chart.axes.x.labels.show ? (o(), r("g", Vt, [
640
- (o(!0), r(b, null, k(p.value.tickX, (l) => (o(), r("text", {
641
- transform: `translate(${l.x}, ${i.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
642
- fill: e.value.style.chart.axes.x.labels.color,
643
- "font-size": n.value.xAxisLabels,
644
- "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
645
- }, L(u(j)(
646
- e.value.style.chart.axes.x.labels.formatter,
647
- l.value,
648
- u(R)({
649
- p: e.value.style.chart.axes.x.labels.prefix,
650
- v: l.value,
651
- s: e.value.style.chart.axes.x.labels.suffix,
652
- r: e.value.style.chart.axes.x.labels.rounding
653
- })
654
- )), 9, Gt))), 256))
655
- ])) : v("", !0),
656
- e.value.style.chart.axes.x.name.text ? (o(), r("text", {
657
- key: 7,
658
- x: d.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
659
- y: d.value.height + e.value.style.chart.axes.x.name.offsetY,
660
- "font-size": n.value.xAxisName,
661
- fill: e.value.style.chart.axes.x.name.color,
662
- "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
663
- "text-anchor": "middle"
664
- }, L(e.value.style.chart.axes.x.name.text), 9, qt)) : v("", !0),
665
- e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
666
- key: 8,
667
- x1: i.value.left,
668
- x2: i.value.left + i.value.width,
669
- y1: i.value.bottom,
670
- y2: i.value.bottom,
671
- stroke: e.value.style.chart.grid.xAxis.stroke,
672
- "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
673
- "stroke-linecap": "round"
674
- }, null, 8, Zt)) : v("", !0),
675
- e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
676
- key: 9,
677
- x1: i.value.left,
678
- x2: i.value.left,
679
- y1: i.value.top,
680
- y2: i.value.bottom,
681
- stroke: e.value.style.chart.grid.yAxis.stroke,
682
- "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
683
- "stroke-linecap": "round"
684
- }, null, 8, Jt)) : v("", !0),
685
- (o(!0), r(b, null, k(N.value, (l, c) => (o(), r("g", null, [
686
- e.value.style.chart.paths.show ? (o(), r("g", {
687
- key: 0,
688
- style: $({
689
- opacity: w.value === null ? 1 : 0.3
690
- })
691
- }, [
692
- T("path", {
693
- d: l.path,
694
- stroke: e.value.style.chart.backgroundColor,
695
- "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
696
- fill: "none",
697
- "stroke-linecap": "round",
698
- "stroke-linejoin": "round",
699
- class: I({ animated: e.value.useCssAnimation })
700
- }, null, 10, Kt),
701
- T("path", {
702
- d: l.path,
703
- stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
704
- "stroke-width": e.value.style.chart.paths.strokeWidth,
705
- fill: "none",
706
- "stroke-linecap": "round",
707
- "stroke-linejoin": "round",
708
- class: I({ animated: e.value.useCssAnimation })
709
- }, null, 10, Qt)
710
- ], 4)) : v("", !0),
711
- (o(!0), r(b, null, k(l.plots, (s) => (o(), r("circle", {
712
- cx: s.x,
713
- cy: s.y,
714
- fill: e.value.style.chart.backgroundColor,
715
- r: n.value.plots,
716
- stroke: "none"
717
- }, null, 8, el))), 256)),
718
- (o(!0), r(b, null, k(l.plots, (s) => (o(), r("circle", {
719
- cx: s.x,
720
- cy: s.y,
721
- fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${B.value})` : s.color,
722
- r: n.value.plots,
723
- stroke: e.value.style.chart.plots.stroke,
724
- "stroke-width": e.value.style.chart.plots.strokeWidth,
725
- class: I({ animated: e.value.useCssAnimation }),
726
- style: $({
727
- opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
728
- transition: "opacity 0.2s ease-in-out"
729
- })
730
- }, null, 14, tl))), 256)),
731
- e.value.style.chart.plots.labels.show ? (o(), r("g", ll, [
732
- (o(!0), r(b, null, k(l.plots, (s) => (o(), r("g", null, [
733
- String(s.label).includes(`
734
- `) ? (o(), r("text", {
735
- key: 1,
736
- x: s.x + e.value.style.chart.plots.labels.offsetX,
737
- y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
738
- "font-size": n.value.labels,
739
- fill: e.value.style.chart.plots.labels.color,
740
- "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
741
- "text-anchor": "middle",
742
- class: I({ animated: e.value.useCssAnimation }),
743
- style: $({
744
- opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
745
- transition: "opacity 0.2s ease-in-out"
746
- }),
747
- innerHTML: u(xt)({
748
- content: String(s.label),
749
- fontSize: n.value.labels,
750
- fill: e.value.style.chart.plots.labels.color,
751
- x: s.x + e.value.style.chart.plots.labels.offsetX,
752
- y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
753
- })
754
- }, null, 14, sl)) : (o(), r("text", {
755
- key: 0,
756
- x: s.x + e.value.style.chart.plots.labels.offsetX,
757
- y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
758
- "font-size": n.value.labels,
759
- fill: e.value.style.chart.plots.labels.color,
760
- "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
761
- "text-anchor": "middle",
762
- class: I({ animated: e.value.useCssAnimation }),
763
- style: $({
764
- opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
765
- transition: "opacity 0.2s ease-in-out"
766
- })
767
- }, L(s.label), 15, al))
768
- ]))), 256))
769
- ])) : v("", !0),
770
- e.value.style.chart.plots.indexLabels.show ? (o(), r("g", ol, [
771
- (o(!0), r(b, null, k(l.plots, (s, S) => (o(), r("text", {
772
- x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
773
- y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
774
- "font-size": n.value.indexLabels,
775
- "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
776
- fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(pt)(l.color) : e.value.style.chart.plots.indexLabels.color,
777
- "text-anchor": "middle",
778
- class: I({ animated: e.value.useCssAnimation }),
779
- style: $({
780
- opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
781
- transition: "opacity 0.2s ease-in-out"
782
- })
783
- }, L(e.value.style.chart.plots.indexLabels.startAtZero ? S : S + 1), 15, rl))), 256))
784
- ])) : v("", !0)
785
- ]))), 256)),
786
- (o(!0), r(b, null, k(N.value, (l) => (o(), r("g", null, [
787
- (o(!0), r(b, null, k(l.plots, (c, s) => (o(), r("circle", {
788
- cx: c.x,
789
- cy: c.y,
790
- fill: "transparent",
791
- r: n.value.plots,
792
- stroke: "none",
793
- onMouseenter: (S) => Qe({
794
- datapoint: c,
795
- plotIndex: s,
796
- seriesIndex: l.seriesIndex
797
- }),
798
- onMouseleave: a[0] || (a[0] = (S) => {
799
- Z.value = !1, w.value = null;
800
- }),
801
- onClick: () => Ke(c)
802
- }, null, 40, nl))), 256))
803
- ]))), 256)),
804
- x(t.$slots, "svg", { svg: d.value }, void 0, !0)
805
- ], 12, Ot)) : v("", !0),
806
- t.$slots.watermark ? (o(), r("div", il, [
807
- x(t.$slots, "watermark", Y(D({ isPrinting: u(fe) || u(xe) })), void 0, !0)
808
- ])) : v("", !0),
809
- C.value ? v("", !0) : (o(), P(u(De), {
810
- key: 6,
811
- config: {
812
- type: "historyPlot",
813
- style: {
814
- backgroundColor: e.value.style.chart.backgroundColor,
815
- historyPlot: {
816
- color: "#CCCCCC"
817
- }
818
- }
819
- }
820
- }, null, 8, ["config"])),
821
- T("div", {
822
- ref_key: "chartLegend",
823
- ref: ae
824
- }, [
825
- e.value.style.chart.legend.show && C.value ? (o(), P(Mt, {
826
- key: `legend_${se.value}`,
827
- legendSet: be.value,
828
- config: Je.value,
829
- onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
830
- ge(l.seriesIndex), ke(l);
831
- })
832
- }, {
833
- item: m(({ legend: l, index: c }) => [
834
- T("div", {
835
- onClick: (s) => {
836
- l.segregate(), ke(l);
837
- },
838
- style: $(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
839
- }, L(l.name), 13, ul)
840
- ]),
841
- _: 1
842
- }, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
843
- key: 1,
844
- legend: be.value
845
- }, void 0, !0)
846
- ], 512),
847
- t.$slots.source ? (o(), r("div", {
848
- key: 7,
849
- ref_key: "source",
850
- ref: ie,
851
- dir: "auto"
852
- }, [
853
- x(t.$slots, "source", {}, void 0, !0)
854
- ], 512)) : v("", !0),
855
- Ae(u(je), {
856
- show: _.value.showTooltip && Z.value,
857
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
858
- color: e.value.style.chart.tooltip.color,
859
- fontSize: e.value.style.chart.tooltip.fontSize,
860
- borderRadius: e.value.style.chart.tooltip.borderRadius,
861
- borderColor: e.value.style.chart.tooltip.borderColor,
862
- borderWidth: e.value.style.chart.tooltip.borderWidth,
863
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
864
- position: e.value.style.chart.tooltip.position,
865
- offsetY: e.value.style.chart.tooltip.offsetY,
866
- parent: A.value,
867
- content: J.value,
868
- isCustom: E.value,
869
- isFullscreen: H.value
870
- }, {
871
- "tooltip-before": m(() => [
872
- x(t.$slots, "tooltip-before", Y(D({ ...Q.value })), void 0, !0)
873
- ]),
874
- "tooltip-after": m(() => [
875
- x(t.$slots, "tooltip-after", Y(D({ ...Q.value })), void 0, !0)
876
- ]),
877
- _: 3
878
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
879
- C.value ? (o(), P(u(Pe), {
880
- key: 8,
881
- hideDetails: "",
882
- config: {
883
- open: _.value.showTable,
884
- maxHeight: 1e4,
885
- body: {
886
- backgroundColor: e.value.style.chart.backgroundColor,
887
- color: e.value.style.chart.color
888
- },
889
- head: {
890
- backgroundColor: e.value.style.chart.backgroundColor,
891
- color: e.value.style.chart.color
892
- }
893
- }
894
- }, {
895
- content: m(() => [
896
- (o(), P(u(Fe), {
897
- key: `table_${oe.value}`,
898
- colNames: U.value.colNames,
899
- head: U.value.head,
900
- body: U.value.body,
901
- config: U.value.config,
902
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
903
- onClose: a[2] || (a[2] = (l) => _.value.showTable = !1)
904
- }, {
905
- th: m(({ th: l }) => [
906
- T("div", {
907
- innerHTML: l,
908
- style: { display: "flex", "align-items": "center" }
909
- }, null, 8, cl)
910
- ]),
911
- td: m(({ td: l }) => [
912
- rt(L(l.name || l), 1)
913
- ]),
914
- _: 1
915
- }, 8, ["colNames", "head", "body", "config", "title"]))
916
- ]),
917
- _: 1
918
- }, 8, ["config"])) : v("", !0)
919
- ], 46, Nt));
920
- }
921
- }, Cl = /* @__PURE__ */ Lt(vl, [["__scopeId", "data-v-dcfeda78"]]);
922
- export {
923
- Cl as default
924
- };