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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
  11. package/dist/Slicer-DYuvPkEM.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
  19. package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +610 -22
  22. package/dist/types/vue-data-ui.d.ts +610 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-D-8c0o4p.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
  37. package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
  38. package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
  41. package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
  48. package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
  49. package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
  51. package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
  52. package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
  53. package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
  54. package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
  55. package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
  59. package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
  60. package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
  61. package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
  65. package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
  67. package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
  68. package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
  69. package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
  70. package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
  73. package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
  74. package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
  75. package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
  77. package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
  79. package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
  80. package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
  81. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
  82. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
  84. package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
  86. package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
  87. package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
  89. package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
  90. package/dist/vue-ui-wheel-De1spwLh.js +379 -0
  91. package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
  93. package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
  109. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  110. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  111. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  112. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  113. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  114. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  115. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  116. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  117. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  118. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  119. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  120. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  121. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  122. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  123. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  124. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  125. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  126. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  127. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  128. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  129. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  130. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  131. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  132. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  133. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  134. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  135. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  136. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  137. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,1153 @@
1
+ import { defineAsyncComponent as N, computed as d, ref as u, shallowRef as Je, toRefs as jt, onBeforeUnmount as Qe, watch as Z, nextTick as ke, watchEffect as qt, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as w, normalizeClass as ee, createBlock as _, createCommentVNode as v, renderSlot as m, createElementVNode as y, createSlots as Ze, withCtx as p, normalizeProps as te, guardReactiveProps as ae, createVNode as et, Fragment as g, renderList as k, mergeProps as tt, toDisplayString as B, createTextVNode as at } from "vue";
2
+ import { u as Kt, c as Ae, t as Jt, d as Qt, e as Zt, p as le, ap as lt, ai as ea, U as st, V as ta, W as aa, X as la, F as sa, I as oa, k as se, i as oe, a as ra, b as na, f as Ce, g as ot, o as ia, v as ua, w as ca, K as va } from "./index-DKpp7RIH.js";
3
+ import { t as rt, u as ha } from "./useResponsive-DfdjqQps.js";
4
+ import { u as da, B as ya } from "./useLoading-D7YHNtLX.js";
5
+ import { u as fa } from "./usePrinter-NUeckmCX.js";
6
+ import { u as nt } from "./useNestedProp-D-8c0o4p.js";
7
+ import { u as ga } from "./useTimeLabels-DkzmKfZn.js";
8
+ import { u as ma } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as pa } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as ba } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import xa from "./Legend-DiGLrlzP.js";
12
+ import ka from "./Title-VLWyIYrj.js";
13
+ import { _ as Aa } from "./Shape-CWIa2nta.js";
14
+ import Ca from "./img-DD_2wgY3.js";
15
+ import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const $a = ["id"], _a = ["xmlns", "viewBox"], Ta = ["id"], Pa = ["stop-color"], Sa = ["stop-color"], Ma = ["stop-color"], La = ["stop-color"], Oa = ["id"], za = ["stop-color"], Ia = ["stop-color"], Na = ["stop-color"], Fa = ["stop-color"], Da = { key: 0 }, Ra = ["fill", "d"], Ea = ["stroke", "stroke-width", "d"], Ha = ["fill", "d"], Xa = ["stroke", "stroke-dasharray", "stroke-width", "d"], Ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ua = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Ga = { key: 0 }, Wa = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ya = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], ja = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], qa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ka = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ja = ["x", "y", "text-anchor", "font-size", "fill"], Qa = {
17
+ key: 4,
18
+ class: "vue-data-ui-watermark"
19
+ }, Za = ["onClick"], el = ["innerHTML"], tl = {
20
+ __name: "vue-ui-ridgeline",
21
+ props: {
22
+ config: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ dataset: {
29
+ type: Array,
30
+ default() {
31
+ return [];
32
+ }
33
+ }
34
+ },
35
+ emits: ["selectLegend", "selectDatapoint", "selectX"],
36
+ setup(it, { expose: ut, emit: ct }) {
37
+ const vt = N(() => import("./vue-ui-accordion-Cpovz3RE.js")), ht = N(() => import("./BaseDraggableDialog-kg-eVvXZ.js")), dt = N(() => import("./DataTable-B3yakHEM.js")), yt = N(() => import("./PackageVersion-6s4eI8W7.js")), ft = N(() => import("./PenAndPaper-JoUN7Ink.js")), gt = N(() => import("./UserOptions-BV_xM-sB.js")), mt = N(() => import("./vue-ui-xy-D4jaRKe3.js")), { vue_ui_ridgeline: pt } = Kt(), F = it, V = d({
38
+ get() {
39
+ return Array.isArray(O.value) && O.value.length > 0;
40
+ },
41
+ set(a) {
42
+ return a;
43
+ }
44
+ }), re = ct, T = u(null), we = u(null), $e = u(null), P = Je(null), L = Je(null), _e = u(null), Te = u(null), ne = u(0), bt = u(0), ie = u(0), A = u(Ae()), Pe = u(0), xt = u(0), Se = u(512), h = u(null), D = u(null), ue = u(null), Me = u(0), ce = u(null);
45
+ function ve() {
46
+ const a = nt({
47
+ userConfig: F.config,
48
+ defaultConfig: pt
49
+ });
50
+ return a.theme ? {
51
+ ...nt({
52
+ userConfig: na.vue_ui_ridgeline[a.theme] || F.config,
53
+ defaultConfig: a
54
+ }),
55
+ customPalette: ra[a.theme] || le
56
+ } : a;
57
+ }
58
+ const e = u(ve()), { loading: U, FINAL_DATASET: O, manualLoading: he } = da({
59
+ ...jt(F),
60
+ FINAL_CONFIG: e,
61
+ prepareConfig: ve,
62
+ skeletonDataset: [
63
+ {
64
+ name: "_",
65
+ datapoints: [
66
+ {
67
+ name: "__",
68
+ color: "#999999",
69
+ values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
70
+ },
71
+ {
72
+ name: "_",
73
+ color: "#CACACA",
74
+ values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ name: "_",
80
+ datapoints: [
81
+ {
82
+ name: "_",
83
+ color: "#999999",
84
+ values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
85
+ },
86
+ {
87
+ name: "_",
88
+ color: "#CACACA",
89
+ values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ name: "_",
95
+ datapoints: [
96
+ {
97
+ name: "_",
98
+ color: "#999999",
99
+ values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
100
+ },
101
+ {
102
+ name: "_",
103
+ color: "#CACACA",
104
+ values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ name: "_",
110
+ datapoints: [
111
+ {
112
+ name: "_",
113
+ color: "#999999",
114
+ values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
115
+ },
116
+ {
117
+ name: "_",
118
+ color: "#CACACA",
119
+ values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ name: "_",
125
+ datapoints: [
126
+ {
127
+ name: "_",
128
+ color: "#999999",
129
+ values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
130
+ },
131
+ {
132
+ name: "_",
133
+ color: "#CACACA",
134
+ values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ name: "_",
140
+ datapoints: [
141
+ {
142
+ name: "_",
143
+ color: "#999999",
144
+ values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
145
+ },
146
+ {
147
+ name: "_",
148
+ color: "#CACACA",
149
+ values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
150
+ }
151
+ ]
152
+ }
153
+ ],
154
+ skeletonConfig: Jt({
155
+ defaultConfig: e.value,
156
+ userConfig: {
157
+ userOptions: { show: !1 },
158
+ table: { show: !1 },
159
+ style: {
160
+ chart: {
161
+ backgroundColor: "#99999930",
162
+ areas: {
163
+ maxPoint: {
164
+ show: !1
165
+ },
166
+ opacity: 0.9,
167
+ stroke: {
168
+ useSerieColor: !0
169
+ }
170
+ },
171
+ legend: {
172
+ backgroundColor: "transparent"
173
+ },
174
+ padding: {
175
+ right: -24,
176
+ left: 0
177
+ },
178
+ xAxis: {
179
+ labels: {
180
+ values: []
181
+ }
182
+ },
183
+ yAxis: {
184
+ labels: {
185
+ fontSize: 0
186
+ }
187
+ },
188
+ zeroLine: { show: !1 }
189
+ }
190
+ }
191
+ }
192
+ })
193
+ }), C = u(Math.min(
194
+ e.value.style.chart.areas.height,
195
+ e.value.style.chart.areas.rowHeight
196
+ )), {
197
+ userOptionsVisible: K,
198
+ setUserOptionsVisibility: Le,
199
+ keepUserOptionState: Oe
200
+ } = ma({ config: e.value }), { svgRef: de } = pa({ config: e.value.style.chart.title }), ye = d(() => !!e.value.debug);
201
+ function ze() {
202
+ const a = O.value || [];
203
+ if (!Array.isArray(a) || a.length === 0) {
204
+ Ce({ componentName: "VueUiRidgeline", type: "dataset", debug: ye.value }), he.value = !0;
205
+ return;
206
+ }
207
+ if (a.forEach((s, t) => {
208
+ ot({
209
+ datasetObject: s,
210
+ requiredAttributes: ["name", "datapoints"]
211
+ }).forEach((o) => {
212
+ V.value = !1, Ce({
213
+ componentName: "VueUiRidgeline",
214
+ type: "datasetSerieAttribute",
215
+ property: o,
216
+ index: t,
217
+ debug: ye.value
218
+ });
219
+ }), Array.isArray(s.datapoints) && s.datapoints.length && s.datapoints.forEach((o, l) => {
220
+ ot({
221
+ datasetObject: o,
222
+ requiredAttributes: ["name", "values"]
223
+ }).forEach((c) => {
224
+ V.value = !1, Ce({
225
+ componentName: "VueUiRidgeline",
226
+ type: "datasetSerieAttribute",
227
+ property: `datapoint.${c}`,
228
+ index: `${t}-${l}`,
229
+ debug: ye.value
230
+ });
231
+ });
232
+ });
233
+ }), xt.value = a.length, C.value = Math.min(
234
+ e.value.style.chart.areas.height,
235
+ e.value.style.chart.areas.rowHeight
236
+ ), ia(F.dataset) || (he.value = e.value.loading), e.value.responsive) {
237
+ const s = rt(() => {
238
+ const { width: t, height: o } = ha({
239
+ chart: T.value,
240
+ title: e.value.style.chart.title.text ? we.value : null,
241
+ legend: e.value.style.chart.legend.show ? $e.value : null,
242
+ source: _e.value,
243
+ noTitle: Te.value,
244
+ padding: e.value.style.chart.padding
245
+ });
246
+ requestAnimationFrame(() => {
247
+ Se.value = t, C.value = a.length ? o / a.length : 0, Me.value = o - 12;
248
+ });
249
+ });
250
+ P.value && (L.value && P.value.unobserve(L.value), P.value.disconnect()), P.value = new ResizeObserver(s), L.value = T.value?.parentNode || null, L.value && P.value.observe(L.value);
251
+ }
252
+ }
253
+ Qe(() => {
254
+ P.value && (L.value && P.value.unobserve(L.value), P.value.disconnect());
255
+ });
256
+ const { isPrinting: Ie, isImaging: Ne, generatePdf: Fe, generateImage: De } = fa({
257
+ elementId: `vue-ui-ridgeline_${A.value}`,
258
+ fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
259
+ options: e.value.userOptions.print
260
+ }), kt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), At = d(() => Qt(e.value.customPalette)), R = u({
261
+ showTable: e.value.table.show
262
+ });
263
+ Z(
264
+ () => O.value,
265
+ async (a) => {
266
+ Array.isArray(a) && a.length && (K.value = !e.value.userOptions.showOnChartHover, await ke(), ze(), ne.value += 1, ie.value += 1, R.value.showTable = e.value.table.show);
267
+ },
268
+ { deep: !0, immediate: !0 }
269
+ ), Z(() => F.dataset, (a) => {
270
+ Array.isArray(a) && a.length > 0 && (he.value = !1);
271
+ }, { deep: !0 }), Z(
272
+ () => U.value,
273
+ async (a) => {
274
+ a || (await ke(), ze());
275
+ },
276
+ { immediate: !0 }
277
+ ), Z(
278
+ () => F.config,
279
+ () => {
280
+ e.value = ve(O.value || null), K.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), R.value.showTable = e.value.table.show, ne.value += 1, ie.value += 1;
281
+ },
282
+ { deep: !0 }
283
+ );
284
+ const fe = d(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
285
+ function Re(a) {
286
+ M.value.includes(a) ? M.value = M.value.filter((s) => s !== a) : M.value.push(a), re("selectLegend", H.value);
287
+ }
288
+ const S = d(() => V.value ? (O.value || []).map((a) => ({
289
+ ...a,
290
+ labelLen: Mt(a.name, e.value.style.chart.yAxis.labels.fontSize),
291
+ uid: Ae(),
292
+ datapoints: a.datapoints.map((s, t) => {
293
+ const o = s.color ? Zt(s.color) : At.value[t] || le[t] || le[t % le.length], l = lt(s.name);
294
+ return { ...s, color: o, id: l };
295
+ })
296
+ })) : []), Ee = d(() => e.value.style.chart.padding.top + C.value * (O.value || []).length + C.value * fe.value + e.value.style.chart.padding.bottom), f = d(() => {
297
+ const a = e.value.style.chart.padding;
298
+ return {
299
+ width: Se.value,
300
+ height: Ee.value,
301
+ padding: a
302
+ };
303
+ }), Ct = d(() => f.value.width), wt = d(() => f.value.height), ge = u(0), $t = rt((a) => {
304
+ ge.value = a;
305
+ }, 100);
306
+ qt((a) => {
307
+ const s = ce.value;
308
+ if (!s) return;
309
+ const t = new ResizeObserver((o) => {
310
+ $t(o[0].contentRect.height);
311
+ });
312
+ t.observe(s), a(() => t.disconnect());
313
+ }), Qe(() => {
314
+ ge.value = 0;
315
+ });
316
+ const b = d(() => ({
317
+ fullHeight: f.value.height + ge.value,
318
+ top: f.value.padding.top,
319
+ left: f.value.padding.left,
320
+ right: f.value.width - f.value.padding.right,
321
+ bottom: f.value.height - e.value.style.chart.padding.bottom,
322
+ width: f.value.width - (f.value.padding.left + f.value.padding.right)
323
+ })), G = d(() => Math.max(...S.value.flatMap((a) => a.datapoints.map((s) => s.values.length)))), W = d(() => ga({
324
+ values: e.value.style.chart.xAxis.labels.values,
325
+ maxDatapoints: G.value,
326
+ formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
327
+ start: 0,
328
+ end: e.value.style.chart.xAxis.labels.values.length
329
+ })), E = d(() => {
330
+ const a = Math.max(...S.value.map((l) => l.labelLen)), s = f.value.padding.left + a + 16 + e.value.style.chart.yAxis.labels.offsetX, t = (b.value.width - s) / G.value, o = [];
331
+ for (let l = 0; l < G.value; l += 1)
332
+ o.push({
333
+ selectorX: s + t * l,
334
+ x: s + t * l - t / 2,
335
+ y: b.value.top,
336
+ label: e.value.style.chart.xAxis.labels.values[l] ? W.value[l].text : "",
337
+ index: l,
338
+ width: t,
339
+ height: Ee.value
340
+ });
341
+ return o;
342
+ });
343
+ function me(a) {
344
+ return S.value.map((s) => s.datapoints.map((t) => ({
345
+ dp: t,
346
+ selected: t.values[a.index]
347
+ })));
348
+ }
349
+ function _t(a) {
350
+ h.value = a;
351
+ const s = me(a);
352
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: s, seriesIndex: a.index });
353
+ }
354
+ function Tt(a) {
355
+ h.value = null;
356
+ const s = me(a);
357
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: s, seriesIndex: a.index });
358
+ }
359
+ function Pt(a) {
360
+ const s = me(a);
361
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: s, seriesIndex: a.index }), re("selectX", s);
362
+ }
363
+ function St(a, s) {
364
+ return a.length * s / 2 + s;
365
+ }
366
+ function He(a, s, t) {
367
+ const o = St(s, t);
368
+ return a + o > b.value.right;
369
+ }
370
+ function Mt(a, s, t = "sans-serif") {
371
+ const l = document.createElement("canvas").getContext("2d"), c = typeof s == "number" ? `${s}px` : s;
372
+ return l.font = `${c} ${t}`, l.measureText(a).width;
373
+ }
374
+ const H = d(() => {
375
+ C.value;
376
+ const a = Math.max(...S.value.map((x) => x.labelLen)), s = Math.max(...S.value.flatMap((x) => x.datapoints.flatMap((Y) => Y.values))), t = Math.min(...S.value.flatMap((x) => x.datapoints.flatMap((Y) => Y.values))), o = f.value.padding.left + a + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (b.value.width - o) / G.value, c = Math.abs(Math.min(t, 0)), $ = s + c;
377
+ function Ye(x) {
378
+ return isNaN(x / $) ? 0 : x / $;
379
+ }
380
+ return S.value.map((x, Y) => {
381
+ const je = b.value.top + C.value * Y, z = b.value.top + je + C.value * fe.value * (1 - Ye(c));
382
+ return {
383
+ ...x,
384
+ label: {
385
+ x: o - e.value.style.chart.yAxis.labels.fontSize,
386
+ y: z
387
+ },
388
+ datapoints: x.datapoints.map((j) => {
389
+ const I = j.values.map((q, Vt) => {
390
+ const Ut = isNaN(q) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(q) ? 0 : q || 0, Gt = o + l * Vt, Wt = b.value.top + je + C.value * fe.value * (1 - Ye(Ut + c)), Yt = q === Math.max(...j.values);
391
+ return {
392
+ x: Gt,
393
+ y: Wt,
394
+ value: q,
395
+ isMaxPoint: Yt,
396
+ zero: z
397
+ };
398
+ }), Et = `${ea(I, z, !1, !1)}`, Ht = `M ${o},${z} ${st(I)} ${I.at(-1).x},${z}`, Xt = `M ${o},${z} ${I.at(-1).x},${z}`, qe = `M ${ta(I)}`, Ke = `M ${st(I)}`, Bt = aa(
399
+ e.value.style.chart.areas.smooth ? qe : Ke
400
+ );
401
+ return {
402
+ ...j,
403
+ uid: Ae(),
404
+ plots: I,
405
+ smoothPath: Et,
406
+ straightPath: Ht,
407
+ zeroPath: Xt,
408
+ pathLength: Bt,
409
+ smoothPathRidge: qe,
410
+ straightPathRidge: Ke
411
+ };
412
+ }).filter((j) => !M.value.includes(j.id))
413
+ };
414
+ });
415
+ }), M = u([]);
416
+ function Lt(a) {
417
+ const s = /* @__PURE__ */ new Map();
418
+ return a.forEach((t) => {
419
+ t.datapoints.forEach((o, l) => {
420
+ const c = lt(o.name);
421
+ s.has(c) || s.set(c, {
422
+ id: c,
423
+ name: o.name,
424
+ color: o.color,
425
+ shape: "circle",
426
+ segregate: () => Re(c),
427
+ isSegregated: M.value.includes(c),
428
+ opacity: M.value.includes(c) ? 0.5 : 1
429
+ });
430
+ });
431
+ }), Array.from(s.values());
432
+ }
433
+ const pe = d(() => Lt(S.value)), Ot = d(() => ({
434
+ cy: "donut-div-legend",
435
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
436
+ color: e.value.style.chart.legend.color,
437
+ fontSize: e.value.style.chart.legend.fontSize,
438
+ paddingBottom: 12,
439
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
440
+ })), X = u(!1);
441
+ function Xe(a) {
442
+ X.value = a, Pe.value += 1;
443
+ }
444
+ const Be = u({}), Ve = u([]);
445
+ function zt(a) {
446
+ re("selectDatapoint", a), e.value.style.chart.dialog.show && (Ve.value = a.datapoints.map((s) => ({
447
+ name: s.name,
448
+ color: s.color,
449
+ type: "line",
450
+ useArea: !0,
451
+ smooth: e.value.style.chart.areas.smooth,
452
+ series: s.values
453
+ })), D.value = a, Be.value = va({
454
+ ...e.value.style.chart.dialog.xyChart,
455
+ responsive: !0,
456
+ // Overriding
457
+ chart: {
458
+ ...e.value.style.chart.dialog.xyChart.chart,
459
+ grid: {
460
+ ...e.value.style.chart.dialog.xyChart.chart.grid,
461
+ labels: {
462
+ ...e.value.style.chart.dialog.xyChart.chart.grid.labels,
463
+ xAxisLabels: {
464
+ ...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
465
+ values: e.value.style.chart.xAxis.labels.values,
466
+ // Overriding
467
+ autoRotate: !0,
468
+ // overriding
469
+ datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
470
+ // Overriding
471
+ }
472
+ }
473
+ },
474
+ tooltip: {
475
+ ...e.value.style.chart.dialog.xyChart.chart.tooltip,
476
+ showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
477
+ // Overriding
478
+ }
479
+ }
480
+ }), ue.value && ue.value.open());
481
+ }
482
+ const be = u(null);
483
+ function It(a) {
484
+ be.value = a;
485
+ }
486
+ function Nt() {
487
+ be.value = null;
488
+ }
489
+ const J = u(!1);
490
+ function xe() {
491
+ J.value = !J.value;
492
+ }
493
+ function Ue() {
494
+ R.value.showTable = !R.value.showTable;
495
+ }
496
+ const Ge = d(() => ({ body: H.value.flatMap((t) => t.datapoints.flatMap((o) => ({
497
+ ...o,
498
+ rowName: `${t.name}: ${o.name}`
499
+ }))).map((t) => [
500
+ {
501
+ name: t.rowName,
502
+ color: t.color
503
+ },
504
+ ...t.values
505
+ ]) })), Q = d(() => {
506
+ const a = [
507
+ e.value.table.columnNames.series,
508
+ ...W.value.map((o) => o.text)
509
+ ], s = {
510
+ th: {
511
+ backgroundColor: e.value.table.th.backgroundColor,
512
+ color: e.value.table.th.color,
513
+ outline: e.value.table.th.outline
514
+ },
515
+ td: {
516
+ backgroundColor: e.value.table.td.backgroundColor,
517
+ color: e.value.table.td.color,
518
+ outline: e.value.table.td.outline
519
+ },
520
+ breakpoint: e.value.table.responsiveBreakpoint
521
+ };
522
+ return {
523
+ colNames: [
524
+ e.value.table.columnNames.series,
525
+ ...W.value.map((o) => o.text)
526
+ ],
527
+ head: a,
528
+ body: Ge.value.body,
529
+ config: s
530
+ };
531
+ });
532
+ function We(a = null) {
533
+ ke(() => {
534
+ const s = [
535
+ [e.value.table.columnNames.series, ...W.map((l) => [l.text])],
536
+ ...Ge.value.body.map((l, c) => [l[0].name, ...l.slice(1)])
537
+ ], t = [
538
+ [e.value.style.chart.title.text],
539
+ [e.value.style.chart.title.subtitle.text]
540
+ ].concat(s), o = ua(t);
541
+ a ? a(o) : ca({
542
+ csvContent: o,
543
+ title: e.value.style.chart.title.text || "vue-ui-ridgeline"
544
+ });
545
+ });
546
+ }
547
+ function Ft() {
548
+ return H.value;
549
+ }
550
+ async function Dt({ scale: a = 2 } = {}) {
551
+ if (!T.value) return;
552
+ const { width: s, height: t } = T.value.getBoundingClientRect(), o = s / t, { imageUri: l, base64: c } = await Ca({ domElement: T.value, base64: !0, img: !0, scale: a });
553
+ return {
554
+ imageUri: l,
555
+ base64: c,
556
+ title: e.value.style.chart.title.text,
557
+ width: s,
558
+ height: t,
559
+ aspectRatio: o
560
+ };
561
+ }
562
+ const Rt = d(() => ({ min: 0, max: G.value }));
563
+ return ba({
564
+ timeLabelsEls: ce,
565
+ timeLabels: W,
566
+ slicer: Rt,
567
+ configRef: e,
568
+ rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
569
+ autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate"],
570
+ isAutoSize: !1,
571
+ width: Ct,
572
+ height: wt,
573
+ targetClass: ".vue-ui-ridgeline-x-axis-label"
574
+ }), ut({
575
+ getData: Ft,
576
+ getImage: Dt,
577
+ generateImage: De,
578
+ generatePdf: Fe,
579
+ generateCsv: We,
580
+ toggleAnnotator: xe,
581
+ toggleTable: Ue,
582
+ toggleFullscreen: Xe
583
+ }), (a, s) => (r(), n("div", {
584
+ ref_key: "ridgelineChart",
585
+ ref: T,
586
+ class: ee(`vue-ui-ridgeline ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
587
+ id: `vue-ui-ridgeline_${A.value}`,
588
+ style: w({
589
+ fontFamily: e.value.style.fontFamily,
590
+ width: "100%",
591
+ textAlign: "center",
592
+ background: e.value.style.chart.backgroundColor,
593
+ height: e.value.responsive ? "100%" : void 0
594
+ }),
595
+ onMouseenter: s[3] || (s[3] = () => i(Le)(!0)),
596
+ onMouseleave: s[4] || (s[4] = () => i(Le)(!1))
597
+ }, [
598
+ e.value.userOptions.buttons.annotator && i(de) ? (r(), _(i(ft), {
599
+ key: 0,
600
+ color: e.value.style.chart.color,
601
+ backgroundColor: e.value.style.chart.backgroundColor,
602
+ active: J.value,
603
+ svgRef: i(de),
604
+ onClose: xe
605
+ }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
606
+ m(a.$slots, "userConfig", {}, void 0, !0),
607
+ kt.value ? (r(), n("div", {
608
+ key: 1,
609
+ ref_key: "noTitle",
610
+ ref: Te,
611
+ class: "vue-data-ui-no-title-space",
612
+ style: "height:36px; width: 100%;background:transparent"
613
+ }, null, 512)) : v("", !0),
614
+ e.value.style.chart.title.text ? (r(), n("div", {
615
+ key: 2,
616
+ ref_key: "chartTitle",
617
+ ref: we,
618
+ style: "width:100%;background:transparent;padding-bottom:24px"
619
+ }, [
620
+ (r(), _(ka, {
621
+ key: `title_${ne.value}`,
622
+ config: {
623
+ title: {
624
+ cy: "ridgeline-div-title",
625
+ ...e.value.style.chart.title
626
+ },
627
+ subtitle: {
628
+ cy: "ridgeline-div-subtitle",
629
+ ...e.value.style.chart.title.subtitle
630
+ }
631
+ }
632
+ }, null, 8, ["config"]))
633
+ ], 512)) : v("", !0),
634
+ e.value.userOptions.show && V.value && (i(Oe) || i(K)) ? (r(), _(i(gt), {
635
+ ref: "details",
636
+ key: `user_option_${Pe.value}`,
637
+ backgroundColor: e.value.style.chart.backgroundColor,
638
+ color: e.value.style.chart.color,
639
+ isPrinting: i(Ie),
640
+ isImaging: i(Ne),
641
+ uid: A.value,
642
+ hasTooltip: !1,
643
+ callbacks: e.value.userOptions.callbacks,
644
+ hasPdf: e.value.userOptions.buttons.pdf,
645
+ hasImg: e.value.userOptions.buttons.img,
646
+ hasXls: e.value.userOptions.buttons.csv,
647
+ hasTable: e.value.userOptions.buttons.table,
648
+ hasLabel: !1,
649
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
650
+ isFullscreen: X.value,
651
+ printScale: e.value.userOptions.print.scale,
652
+ chartElement: T.value,
653
+ position: e.value.userOptions.position,
654
+ isTooltip: !1,
655
+ titles: { ...e.value.userOptions.buttonTitles },
656
+ hasAnnotator: e.value.userOptions.buttons.annotator,
657
+ isAnnotation: J.value,
658
+ style: w({
659
+ visibility: i(Oe) ? i(K) ? "visible" : "hidden" : "visible"
660
+ }),
661
+ onToggleFullscreen: Xe,
662
+ onGeneratePdf: i(Fe),
663
+ onGenerateCsv: We,
664
+ onGenerateImage: i(De),
665
+ onToggleTable: Ue,
666
+ onToggleAnnotator: xe
667
+ }, Ze({ _: 2 }, [
668
+ a.$slots.menuIcon ? {
669
+ name: "menuIcon",
670
+ fn: p(({ isOpen: t, color: o }) => [
671
+ m(a.$slots, "menuIcon", te(ae({ isOpen: t, color: o })), void 0, !0)
672
+ ]),
673
+ key: "0"
674
+ } : void 0,
675
+ a.$slots.optionTooltip ? {
676
+ name: "optionTooltip",
677
+ fn: p(() => [
678
+ m(a.$slots, "optionTooltip", {}, void 0, !0)
679
+ ]),
680
+ key: "1"
681
+ } : void 0,
682
+ a.$slots.optionPdf ? {
683
+ name: "optionPdf",
684
+ fn: p(() => [
685
+ m(a.$slots, "optionPdf", {}, void 0, !0)
686
+ ]),
687
+ key: "2"
688
+ } : void 0,
689
+ a.$slots.optionCsv ? {
690
+ name: "optionCsv",
691
+ fn: p(() => [
692
+ m(a.$slots, "optionCsv", {}, void 0, !0)
693
+ ]),
694
+ key: "3"
695
+ } : void 0,
696
+ a.$slots.optionImg ? {
697
+ name: "optionImg",
698
+ fn: p(() => [
699
+ m(a.$slots, "optionImg", {}, void 0, !0)
700
+ ]),
701
+ key: "4"
702
+ } : void 0,
703
+ a.$slots.optionTable ? {
704
+ name: "optionTable",
705
+ fn: p(() => [
706
+ m(a.$slots, "optionTable", {}, void 0, !0)
707
+ ]),
708
+ key: "5"
709
+ } : void 0,
710
+ a.$slots.optionFullscreen ? {
711
+ name: "optionFullscreen",
712
+ fn: p(({ toggleFullscreen: t, isFullscreen: o }) => [
713
+ m(a.$slots, "optionFullscreen", te(ae({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
714
+ ]),
715
+ key: "6"
716
+ } : void 0,
717
+ a.$slots.optionAnnotator ? {
718
+ name: "optionAnnotator",
719
+ fn: p(({ toggleAnnotator: t, isAnnotator: o }) => [
720
+ m(a.$slots, "optionAnnotator", te(ae({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
721
+ ]),
722
+ key: "7"
723
+ } : void 0
724
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
725
+ (r(), n("svg", {
726
+ ref_key: "svgRef",
727
+ ref: de,
728
+ xmlns: i(la),
729
+ class: ee({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
730
+ viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
731
+ style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Me.value}px; width: 100%;` : ""}`)
732
+ }, [
733
+ et(i(yt)),
734
+ y("defs", null, [
735
+ (r(!0), n(g, null, k(pe.value, (t, o) => (r(), n("linearGradient", {
736
+ id: `gradient-${t.id}-${A.value}`,
737
+ x1: "50%",
738
+ y1: "0%",
739
+ x2: "50%",
740
+ y2: "100%"
741
+ }, [
742
+ y("stop", {
743
+ offset: "0%",
744
+ "stop-color": t.color,
745
+ "stop-opacity": "1"
746
+ }, null, 8, Pa),
747
+ y("stop", {
748
+ offset: "30%",
749
+ "stop-color": t.color,
750
+ "stop-opacity": "0.7"
751
+ }, null, 8, Sa),
752
+ y("stop", {
753
+ offset: "70%",
754
+ "stop-color": t.color,
755
+ "stop-opacity": "0.3"
756
+ }, null, 8, Ma),
757
+ y("stop", {
758
+ offset: "100%",
759
+ "stop-color": t.color,
760
+ "stop-opacity": "0.1"
761
+ }, null, 8, La)
762
+ ], 8, Ta))), 256)),
763
+ (r(!0), n(g, null, k(H.value, (t, o) => (r(), n(g, null, [
764
+ (r(!0), n(g, null, k(t.datapoints, (l, c) => (r(), n("linearGradient", {
765
+ key: `grad${l.id}`,
766
+ id: `gradient-single-${A.value}-${l.uid}`,
767
+ x1: "50%",
768
+ y1: "0%",
769
+ x2: "50%",
770
+ y2: "100%"
771
+ }, [
772
+ y("stop", {
773
+ offset: "0%",
774
+ "stop-color": l.color,
775
+ "stop-opacity": "1"
776
+ }, null, 8, za),
777
+ y("stop", {
778
+ offset: "30%",
779
+ "stop-color": l.color,
780
+ "stop-opacity": "0.7"
781
+ }, null, 8, Ia),
782
+ y("stop", {
783
+ offset: "70%",
784
+ "stop-color": l.color,
785
+ "stop-opacity": "0.3"
786
+ }, null, 8, Na),
787
+ y("stop", {
788
+ offset: "100%",
789
+ "stop-color": l.color,
790
+ "stop-opacity": "0.1"
791
+ }, null, 8, Fa)
792
+ ], 8, Oa))), 128))
793
+ ], 64))), 256))
794
+ ]),
795
+ (r(!0), n(g, null, k(H.value, (t, o) => (r(), n("g", {
796
+ key: `ds-${o}`
797
+ }, [
798
+ (r(!0), n(g, null, k(t.datapoints, (l, c) => (r(), n("g", {
799
+ key: l.id
800
+ }, [
801
+ a.$slots.pattern ? (r(), n("g", Da, [
802
+ y("defs", null, [
803
+ m(a.$slots, "pattern", tt({ ref_for: !0 }, { datapointIndex: o, seriesIndex: c, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
804
+ ])
805
+ ])) : v("", !0),
806
+ y("path", {
807
+ fill: a.$slots.pattern ? `url(#pattern_${A.value}_${l.uid})` : e.value.style.chart.backgroundColor,
808
+ stroke: "none",
809
+ "stroke-linecap": "round",
810
+ d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
811
+ style: w({
812
+ opacity: e.value.style.chart.areas.opacity
813
+ })
814
+ }, null, 12, Ra),
815
+ y("path", {
816
+ fill: "none",
817
+ stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
818
+ "stroke-width": e.value.style.chart.areas.strokeWidth,
819
+ d: e.value.style.chart.areas.smooth ? l.smoothPathRidge : l.straightPathRidge,
820
+ "stroke-linecap": "round",
821
+ "stroke-linejoin": "round",
822
+ class: ee({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(U) }),
823
+ style: w({
824
+ strokeDasharray: l.pathLength,
825
+ strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
826
+ })
827
+ }, null, 14, Ea),
828
+ y("path", {
829
+ fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${l.id}-${A.value})` : `url(#gradient-single-${A.value}-${l.uid})` : l.color,
830
+ stroke: "none",
831
+ d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
832
+ "stroke-linecap": "round",
833
+ "stroke-linejoin": "round",
834
+ class: ee({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(U) }),
835
+ style: w({
836
+ strokeDasharray: l.pathLength,
837
+ strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
838
+ })
839
+ }, null, 14, Ha),
840
+ e.value.style.chart.zeroLine.show ? (r(), n("path", {
841
+ key: 1,
842
+ stroke: e.value.style.chart.zeroLine.useSerieColor ? l.color : e.value.style.chart.zeroLine.stroke,
843
+ "stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
844
+ "stroke-width": e.value.style.chart.zeroLine.strokeWidth,
845
+ d: l.zeroPath,
846
+ "stroke-linecap": "round"
847
+ }, null, 8, Xa)) : v("", !0),
848
+ e.value.style.chart.areas.maxPoint.show && l.plots.length > 1 ? (r(!0), n(g, { key: 2 }, k(l.plots, ($) => (r(), n(g, null, [
849
+ $.isMaxPoint ? (r(), n("line", {
850
+ key: 0,
851
+ x1: $.x,
852
+ y1: $.y,
853
+ x2: $.x,
854
+ y2: $.zero,
855
+ stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? i(sa)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
856
+ "stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
857
+ "stroke-linecap": "round",
858
+ "stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
859
+ }, null, 8, Ba)) : v("", !0)
860
+ ], 64))), 256)) : v("", !0),
861
+ l.plots.length === 1 ? (r(), n("circle", {
862
+ key: 3,
863
+ cx: l.plots[0].x,
864
+ cy: l.plots[0].y,
865
+ stroke: e.value.style.chart.selector.dot.stroke,
866
+ "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
867
+ r: e.value.style.chart.selector.dot.radius,
868
+ fill: e.value.style.chart.selector.dot.useDatapointColor ? l.color : e.value.style.chart.selector.dot.fill,
869
+ style: {
870
+ pointerEvents: "none"
871
+ }
872
+ }, null, 8, Va)) : v("", !0)
873
+ ]))), 128)),
874
+ y("text", {
875
+ x: t.label.x,
876
+ y: t.label.y,
877
+ "text-anchor": "end",
878
+ "font-size": e.value.style.chart.yAxis.labels.fontSize,
879
+ "font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
880
+ fill: e.value.style.chart.yAxis.labels.color,
881
+ style: w({
882
+ cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
883
+ }),
884
+ "text-decoration": e.value.style.chart.dialog.show && (be.value === o || D.value && t.uid === D.value.uid) ? "underline" : "",
885
+ onMouseenter: (l) => It(o),
886
+ onMouseleave: Nt,
887
+ onClick: (l) => zt(t)
888
+ }, B(t.name), 45, Ua)
889
+ ]))), 128)),
890
+ e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", {
891
+ key: 0,
892
+ ref_key: "timeLabelsEls",
893
+ ref: ce
894
+ }, [
895
+ (r(!0), n(g, null, k(E.value, (t, o) => m(a.$slots, "time-label", tt({ ref_for: !0 }, {
896
+ show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === E.value.length - 1) || t && h.value && h.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(E.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
897
+ fontSize: e.value.style.chart.xAxis.labels.fontSize,
898
+ content: t.label,
899
+ textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
900
+ fill: e.value.style.chart.xAxis.labels.color,
901
+ transform: `translate(${t.selectorX}, ${b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
902
+ x: t.selectorX,
903
+ y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
904
+ }), () => [
905
+ t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === E.value.length - 1) || t && h.value && h.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(E.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), n("g", Ga, [
906
+ String(t.label).includes(`
907
+ `) ? (r(), n("text", {
908
+ key: 1,
909
+ class: "vue-ui-ridgeline-x-axis-label",
910
+ "font-size": e.value.style.chart.xAxis.labels.fontSize,
911
+ fill: e.value.style.chart.xAxis.labels.color,
912
+ "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
913
+ transform: `translate(${t.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
914
+ "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
915
+ style: w({
916
+ opacity: h.value ? h.value.index === o ? 1 : 0.2 : 1
917
+ }),
918
+ innerHTML: i(oa)({
919
+ content: String(t.label),
920
+ fontSize: e.value.style.chart.xAxis.labels.fontSize,
921
+ fill: e.value.style.chart.xAxis.labels.color,
922
+ x: 0,
923
+ y: 0
924
+ })
925
+ }, null, 12, Ya)) : (r(), n("text", {
926
+ key: 0,
927
+ class: "vue-ui-ridgeline-x-axis-label",
928
+ "font-size": e.value.style.chart.xAxis.labels.fontSize,
929
+ fill: e.value.style.chart.xAxis.labels.color,
930
+ "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
931
+ transform: `translate(${t.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
932
+ "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
933
+ style: w({
934
+ opacity: h.value ? h.value.index === o ? 1 : 0.2 : 1
935
+ })
936
+ }, B(t.label), 13, Wa))
937
+ ])) : v("", !0)
938
+ ], !0)), 256))
939
+ ], 512)) : v("", !0),
940
+ y("g", null, [
941
+ (r(!0), n(g, null, k(E.value, (t, o) => (r(), n("rect", {
942
+ x: t.x,
943
+ y: t.y,
944
+ width: t.width < 0 ? 0.1 : t.width,
945
+ height: t.height < 0 ? 0.1 : t.height,
946
+ fill: "transparent",
947
+ onMouseenter: (l) => _t(t),
948
+ onMouseleave: (l) => Tt(t),
949
+ onClick: () => Pt(t)
950
+ }, null, 40, ja))), 256)),
951
+ e.value.style.chart.selector.show && h.value ? (r(), n("line", {
952
+ key: 0,
953
+ x1: h.value.selectorX,
954
+ x2: h.value.selectorX,
955
+ y1: h.value.y,
956
+ y2: h.value.y + h.value.height - C.value / 2,
957
+ stroke: e.value.style.chart.selector.stroke,
958
+ "stroke-width": e.value.style.chart.selector.strokeWidth,
959
+ "stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
960
+ "stroke-linecap": "round",
961
+ style: { pointerEvents: "none" }
962
+ }, null, 8, qa)) : v("", !0),
963
+ h.value ? (r(!0), n(g, { key: 1 }, k(H.value, (t) => (r(), n(g, null, [
964
+ (r(!0), n(g, null, k(t.datapoints, (o) => (r(), n(g, null, [
965
+ (r(!0), n(g, null, k(o.plots, (l, c) => (r(), n(g, null, [
966
+ h.value && h.value.index === c ? (r(), n("circle", {
967
+ key: 0,
968
+ cx: l.x,
969
+ cy: l.y,
970
+ stroke: e.value.style.chart.selector.dot.stroke,
971
+ "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
972
+ r: e.value.style.chart.selector.dot.radius,
973
+ fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
974
+ style: {
975
+ pointerEvents: "none"
976
+ }
977
+ }, null, 8, Ka)) : v("", !0),
978
+ h.value && h.value.index === c ? (r(), n("text", {
979
+ key: 1,
980
+ x: He(
981
+ l.x,
982
+ i(se)(
983
+ e.value.style.chart.selector.labels.formatter,
984
+ l.value,
985
+ i(oe)({
986
+ p: e.value.style.chart.xAxis.labels.prefix,
987
+ v: l.value,
988
+ s: e.value.style.chart.xAxis.labels.suffix,
989
+ r: e.value.style.chart.selector.labels.rounding
990
+ })
991
+ ),
992
+ e.value.style.chart.selector.labels.fontSize
993
+ ) ? l.x - e.value.style.chart.selector.labels.fontSize / 2 : l.x + e.value.style.chart.selector.labels.fontSize / 2,
994
+ y: l.y + e.value.style.chart.selector.labels.fontSize / 3,
995
+ "text-anchor": He(
996
+ l.x,
997
+ i(se)(
998
+ e.value.style.chart.selector.labels.formatter,
999
+ l.value,
1000
+ i(oe)({
1001
+ p: e.value.style.chart.xAxis.labels.prefix,
1002
+ v: l.value,
1003
+ s: e.value.style.chart.xAxis.labels.suffix,
1004
+ r: e.value.style.chart.selector.labels.rounding
1005
+ })
1006
+ ),
1007
+ e.value.style.chart.selector.labels.fontSize
1008
+ ) ? "end" : "start",
1009
+ "font-size": e.value.style.chart.selector.labels.fontSize,
1010
+ fill: e.value.style.chart.selector.labels.color,
1011
+ style: {
1012
+ pointerEvents: "none"
1013
+ }
1014
+ }, B(i(se)(
1015
+ e.value.style.chart.selector.labels.formatter,
1016
+ l.value,
1017
+ i(oe)({
1018
+ p: e.value.style.chart.xAxis.labels.prefix,
1019
+ v: l.value,
1020
+ s: e.value.style.chart.xAxis.labels.suffix,
1021
+ r: e.value.style.chart.selector.labels.rounding
1022
+ })
1023
+ )), 9, Ja)) : v("", !0)
1024
+ ], 64))), 256))
1025
+ ], 64))), 256))
1026
+ ], 64))), 256)) : v("", !0)
1027
+ ]),
1028
+ m(a.$slots, "svg", { svg: f.value }, void 0, !0)
1029
+ ], 14, _a)),
1030
+ a.$slots.watermark ? (r(), n("div", Qa, [
1031
+ m(a.$slots, "watermark", te(ae({ isPrinting: i(Ie) || i(Ne) })), void 0, !0)
1032
+ ])) : v("", !0),
1033
+ y("div", {
1034
+ ref_key: "chartLegend",
1035
+ ref: $e
1036
+ }, [
1037
+ e.value.style.chart.legend.show ? (r(), _(xa, {
1038
+ key: `legend_${ie.value}`,
1039
+ legendSet: pe.value,
1040
+ config: Ot.value,
1041
+ onClickMarker: s[0] || (s[0] = ({ legend: t }) => Re(t.id))
1042
+ }, Ze({
1043
+ item: p(({ legend: t }) => [
1044
+ i(U) ? v("", !0) : (r(), n("div", {
1045
+ key: 0,
1046
+ style: w(`opacity:${M.value.includes(t.id) ? 0.5 : 1}`),
1047
+ onClick: (o) => t.segregate()
1048
+ }, B(t.name), 13, Za))
1049
+ ]),
1050
+ _: 2
1051
+ }, [
1052
+ a.$slots.pattern ? {
1053
+ name: "legend-pattern",
1054
+ fn: p(({ legend: t, index: o }) => [
1055
+ et(Aa, {
1056
+ shape: t.shape,
1057
+ radius: 30,
1058
+ stroke: "none",
1059
+ plot: { x: 30, y: 30 },
1060
+ fill: `url(#pattern_${A.value}_${o})`
1061
+ }, null, 8, ["shape", "fill"])
1062
+ ]),
1063
+ key: "0"
1064
+ } : void 0
1065
+ ]), 1032, ["legendSet", "config"])) : v("", !0),
1066
+ m(a.$slots, "legend", { legend: pe.value }, void 0, !0)
1067
+ ], 512),
1068
+ a.$slots.source ? (r(), n("div", {
1069
+ key: 5,
1070
+ ref_key: "source",
1071
+ ref: _e,
1072
+ dir: "auto"
1073
+ }, [
1074
+ m(a.$slots, "source", {}, void 0, !0)
1075
+ ], 512)) : v("", !0),
1076
+ V.value ? (r(), _(i(vt), {
1077
+ key: 6,
1078
+ hideDetails: "",
1079
+ config: {
1080
+ open: R.value.showTable,
1081
+ maxHeight: 1e4,
1082
+ body: {
1083
+ backgroundColor: e.value.style.chart.backgroundColor,
1084
+ color: e.value.style.chart.color
1085
+ },
1086
+ head: {
1087
+ backgroundColor: e.value.style.chart.backgroundColor,
1088
+ color: e.value.style.chart.color
1089
+ }
1090
+ }
1091
+ }, {
1092
+ content: p(() => [
1093
+ (r(), _(i(dt), {
1094
+ key: `table_${bt.value}`,
1095
+ colNames: Q.value.colNames,
1096
+ head: Q.value.head,
1097
+ body: Q.value.body,
1098
+ config: Q.value.config,
1099
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` :${e.value.style.chart.title.subtitle.text}` : ""}`,
1100
+ onClose: s[1] || (s[1] = (t) => R.value.showTable = !1)
1101
+ }, {
1102
+ th: p(({ th: t }) => [
1103
+ y("div", { innerHTML: t }, null, 8, el)
1104
+ ]),
1105
+ td: p(({ td: t }) => [
1106
+ at(B(t.name ? t.name : i(se)(
1107
+ e.value.style.chart.selector.labels.formatter,
1108
+ t,
1109
+ i(oe)({
1110
+ p: e.value.style.chart.xAxis.labels.prefix,
1111
+ v: t,
1112
+ s: e.value.style.chart.xAxis.labels.suffix,
1113
+ r: e.value.table.td.roundingValue
1114
+ })
1115
+ )), 1)
1116
+ ]),
1117
+ _: 1
1118
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1119
+ ]),
1120
+ _: 1
1121
+ }, 8, ["config"])) : v("", !0),
1122
+ e.value.style.chart.dialog.show ? (r(), _(i(ht), {
1123
+ key: 7,
1124
+ ref_key: "dialog",
1125
+ ref: ue,
1126
+ onClose: s[2] || (s[2] = (t) => D.value = null),
1127
+ backgroundColor: e.value.style.chart.dialog.backgroundColor,
1128
+ color: e.value.style.chart.dialog.color,
1129
+ headerBg: e.value.style.chart.dialog.header.backgroundColor,
1130
+ headerColor: e.value.style.chart.dialog.header.color,
1131
+ isFullscreen: X.value,
1132
+ fullscreenParent: T.value,
1133
+ withPadding: ""
1134
+ }, {
1135
+ title: p(() => [
1136
+ at(B(D.value.name), 1)
1137
+ ]),
1138
+ default: p(() => [
1139
+ D.value ? (r(), _(i(mt), {
1140
+ key: 0,
1141
+ config: Be.value,
1142
+ dataset: Ve.value
1143
+ }, null, 8, ["config", "dataset"])) : v("", !0)
1144
+ ]),
1145
+ _: 1
1146
+ }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1147
+ i(U) ? (r(), _(ya, { key: 8 })) : v("", !0)
1148
+ ], 46, $a));
1149
+ }
1150
+ }, ml = /* @__PURE__ */ wa(tl, [["__scopeId", "data-v-0fbe0026"]]);
1151
+ export {
1152
+ ml as default
1153
+ };