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,915 @@
1
+ import { defineAsyncComponent as D, computed as y, ref as d, toRefs as bt, watch as re, shallowRef as Be, onMounted as gt, onBeforeUnmount as xt, watchEffect as kt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as M, normalizeClass as V, createBlock as L, createCommentVNode as m, createElementVNode as E, createVNode as We, createSlots as wt, withCtx as w, renderSlot as b, normalizeProps as H, guardReactiveProps as B, Fragment as A, renderList as N, toDisplayString as W, createTextVNode as Ct } from "vue";
2
+ import { u as At, c as ce, t as $t, a as Tt, p as J, b as zt, o as Ue, f as Ve, g as Mt, d as Nt, e as Ft, D as _t, U as It, V as Lt, W as Pt, X as Ot, I as St, y as je, E as K, v as Rt, w as Dt, k as Ge, i as Xe, z as Et } from "./index-DKpp7RIH.js";
3
+ import { t as Ye, u as Ht } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Bt } from "./usePrinter-NUeckmCX.js";
5
+ import { u as Wt, B as Ut } from "./useLoading-D7YHNtLX.js";
6
+ import { u as qe } from "./useNestedProp-D-8c0o4p.js";
7
+ import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Gt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import Xt from "./Title-VLWyIYrj.js";
11
+ import Yt from "./Legend-DiGLrlzP.js";
12
+ import { _ as qt } from "./Shape-CWIa2nta.js";
13
+ import Jt from "./img-DD_2wgY3.js";
14
+ import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"], ta = { style: { "pointer-events": "none" } }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = { key: 0 }, sa = ["x", "y", "fill", "font-size", "font-weight"], na = ["fill", "font-size", "font-weight", "text-anchor", "transform"], ia = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], ua = { key: 0 }, ra = ["x", "y", "font-size", "fill"], ca = ["width", "x", "y"], va = { style: { width: "100%" } }, da = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], ha = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], pa = ["d", "onMouseenter", "onMouseleave", "onClick"], ma = {
16
+ key: 4,
17
+ class: "vue-data-ui-watermark"
18
+ }, ya = ["onClick"], fa = ["innerHTML"], ba = {
19
+ __name: "vue-ui-parallel-coordinate-plot",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectLegend", "selectDatapoint"],
35
+ setup(Je, { expose: Ke, emit: Qe }) {
36
+ const Ze = D(() => import("./vue-ui-accordion-Cpovz3RE.js")), et = D(() => import("./DataTable-B3yakHEM.js")), tt = D(() => import("./PackageVersion-6s4eI8W7.js")), at = D(() => import("./PenAndPaper-JoUN7Ink.js")), lt = D(() => import("./Tooltip-BS5naLS2.js")), ot = D(() => import("./UserOptions-BV_xM-sB.js")), { vue_ui_parallel_coordinate_plot: st } = At(), $ = Je, j = y({
37
+ get() {
38
+ return !!$.dataset && $.dataset.length;
39
+ },
40
+ set(a) {
41
+ return a;
42
+ }
43
+ }), ve = d(0), F = d(null), de = d(null), he = d(null), pe = d(null), me = d(null), ye = d(0), fe = d(0), be = d(0), Q = d(null), Z = d(ce()), O = d(!1);
44
+ function ge(a) {
45
+ O.value = a, ve.value += 1;
46
+ }
47
+ const e = d(ae()), { loading: P, FINAL_DATASET: nt, manualLoading: ee } = Wt({
48
+ ...bt($),
49
+ FINAL_CONFIG: e,
50
+ prepareConfig: ae,
51
+ skeletonDataset: [
52
+ {
53
+ name: "",
54
+ shape: "circle",
55
+ color: "transparent",
56
+ series: [
57
+ {
58
+ name: "",
59
+ values: [1, 10, 100, 1e3]
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ name: "",
65
+ shape: "circle",
66
+ color: "#CACACA",
67
+ series: [
68
+ {
69
+ name: "",
70
+ values: [0.2, 3, 50, 800]
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ name: "",
76
+ shape: "circle",
77
+ color: "transparent",
78
+ series: [
79
+ {
80
+ name: "",
81
+ values: [0, 0, 0, 0]
82
+ }
83
+ ]
84
+ }
85
+ ],
86
+ skeletonConfig: $t({
87
+ defaultConfig: e.value,
88
+ userConfig: {
89
+ useCssAnimation: !1,
90
+ userOptions: { show: !1 },
91
+ table: { show: !1 },
92
+ style: {
93
+ chart: {
94
+ backgroundColor: "#99999930",
95
+ legend: {
96
+ show: !0,
97
+ backgroundColor: "transparent"
98
+ },
99
+ yAxis: {
100
+ stroke: "#6A6A6A",
101
+ labels: {
102
+ showAxisNames: !1,
103
+ axisNames: [],
104
+ ticks: {
105
+ color: "#6A6A6A"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ })
113
+ }), { userOptionsVisible: te, setUserOptionsVisibility: xe, keepUserOptionState: ke } = Vt({ config: e.value }), { svgRef: we } = jt({ config: e.value.style.chart.title });
114
+ function ae() {
115
+ const a = qe({
116
+ userConfig: $.config,
117
+ defaultConfig: st
118
+ });
119
+ return a.theme ? {
120
+ ...qe({
121
+ userConfig: zt.vue_ui_parallel_coordinate_plot[a.theme] || $.config,
122
+ defaultConfig: a
123
+ }),
124
+ customPalette: Tt[a.theme] || J
125
+ } : a;
126
+ }
127
+ re(() => $.config, (a) => {
128
+ P.value || (e.value = ae()), te.value = !e.value.userOptions.showOnChartHover, Ae(), ye.value += 1, be.value += 1, fe.value += 1, p.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
129
+ }, { deep: !0 }), re(() => $.dataset, (a) => {
130
+ Array.isArray(a) && a.length > 0 && (ee.value = !1);
131
+ }, { deep: !0 });
132
+ const _ = Be(null), S = Be(null);
133
+ gt(() => {
134
+ Ae();
135
+ });
136
+ const Ce = y(() => !!e.value.debug);
137
+ function Ae() {
138
+ if (Ue($.dataset) ? (Ve({
139
+ componentName: "VueUiParallelCoordinatePlot",
140
+ type: "dataset",
141
+ debug: Ce.value
142
+ }), ee.value = !0) : $.dataset.forEach((a, o) => {
143
+ Mt({
144
+ datasetObject: a,
145
+ requiredAttributes: ["name", "series"]
146
+ }).forEach((t) => {
147
+ j.value = !1, Ve({
148
+ componentName: "VueUiParallelCoordinatePlot",
149
+ type: "datasetSerieAttribute",
150
+ property: t,
151
+ index: o,
152
+ debug: Ce.value
153
+ });
154
+ });
155
+ }), Ue($.dataset) || (ee.value = e.value.loading), e.value.responsive) {
156
+ const a = Ye(() => {
157
+ const { width: o, height: t } = Ht({
158
+ chart: F.value,
159
+ title: e.value.style.chart.title.text ? de.value : null,
160
+ legend: e.value.style.chart.legend.show ? he.value : null,
161
+ source: pe.value,
162
+ noTitle: me.value
163
+ });
164
+ requestAnimationFrame(() => {
165
+ c.value.width = o, c.value.height = t - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = K({
166
+ relator: Math.min(o, t),
167
+ adjuster: 600,
168
+ source: e.value.style.chart.plots.radius,
169
+ threshold: 2,
170
+ fallback: 2
171
+ }), c.value.ticksFontSize = K({
172
+ relator: Math.min(o, t),
173
+ adjuster: 600,
174
+ source: e.value.style.chart.yAxis.labels.ticks.fontSize,
175
+ threshold: 10,
176
+ fallback: 10
177
+ }), c.value.datapointFontSize = K({
178
+ relator: Math.min(o, t),
179
+ adjuster: 600,
180
+ source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
181
+ threshold: 10,
182
+ fallback: 10
183
+ }), c.value.axisNameFontSize = K({
184
+ relator: Math.min(o, t),
185
+ adjuster: 600,
186
+ source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
187
+ threshold: 12,
188
+ fallback: 12
189
+ })) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
190
+ });
191
+ });
192
+ _.value && (S.value && _.value.unobserve(S.value), _.value.disconnect()), _.value = new ResizeObserver(a), S.value = F.value.parentNode, _.value.observe(S.value);
193
+ }
194
+ }
195
+ xt(() => {
196
+ _.value && (S.value && _.value.unobserve(S.value), _.value.disconnect());
197
+ });
198
+ const { isPrinting: $e, isImaging: Te, generatePdf: ze, generateImage: Me } = Bt({
199
+ elementId: `pcp_${Z.value}`,
200
+ fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
201
+ options: e.value.userOptions.print
202
+ }), it = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
203
+ height: e.value.style.chart.height,
204
+ width: e.value.style.chart.width,
205
+ plotSize: e.value.style.chart.plots.radius,
206
+ // ratio 100
207
+ ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
208
+ // ratio 42.85
209
+ datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
210
+ axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
211
+ }), Ne = y(() => c.value.width), Fe = y(() => c.value.height), U = d(0), ut = Ye((a) => {
212
+ U.value = a;
213
+ }, 100);
214
+ kt((a) => {
215
+ const o = Q.value;
216
+ if (!o) return;
217
+ const t = new ResizeObserver((s) => {
218
+ ut(s[0].contentRect.height);
219
+ });
220
+ t.observe(o), a(() => t.disconnect());
221
+ });
222
+ const h = y(() => {
223
+ const { top: a, right: o, bottom: t, left: s } = e.value.style.chart.padding, l = Fe.value, r = Ne.value;
224
+ return {
225
+ chartHeight: Math.max(1e-3, l),
226
+ chartWidth: Math.max(1e-3, r),
227
+ height: Math.max(1e-3, l - a - t - U.value - c.value.datapointFontSize * 2),
228
+ width: Math.max(1e-3, r - s - o),
229
+ top: a + U.value + c.value.datapointFontSize,
230
+ left: s,
231
+ right: r - o,
232
+ bottom: l - t - c.value.datapointFontSize
233
+ };
234
+ }), rt = y(() => Nt(e.value.customPalette)), p = d({
235
+ dataLabels: {
236
+ show: e.value.style.chart.yAxis.labels.datapoints.show
237
+ },
238
+ showTable: e.value.table.show,
239
+ showTooltip: e.value.style.chart.tooltip.show
240
+ });
241
+ re(e, () => {
242
+ p.value = {
243
+ dataLabels: {
244
+ show: e.value.style.chart.yAxis.labels.datapoints.show
245
+ },
246
+ showTable: e.value.table.show,
247
+ showTooltip: e.value.style.chart.tooltip.show
248
+ };
249
+ }, { immediate: !0 });
250
+ const z = d([]);
251
+ function _e(a) {
252
+ z.value.includes(a) ? z.value = z.value.filter((o) => o !== a) : z.value.push(a);
253
+ }
254
+ const I = y(() => nt.value.map((a, o) => {
255
+ const t = Ft(a.color) || rt.value[o] || J[o] || J[o % J.length];
256
+ return {
257
+ ...a,
258
+ series: a.series.map((s) => ({
259
+ ...s,
260
+ id: ce(),
261
+ color: t
262
+ })),
263
+ seriesIndex: o,
264
+ color: t,
265
+ id: ce(),
266
+ shape: a.shape || "circle"
267
+ };
268
+ })), ct = y(() => I.value.map((a) => ({
269
+ ...a,
270
+ opacity: z.value.includes(a.id) ? 0.5 : 1,
271
+ segregate: () => _e(a.id),
272
+ isSegregated: z.value.includes(a.id)
273
+ }))), vt = y(() => ({
274
+ cy: "pcp-div-legend",
275
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
276
+ color: e.value.style.chart.legend.color,
277
+ fontSize: e.value.style.chart.legend.fontSize,
278
+ paddingBottom: 12,
279
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
280
+ })), Ie = y(() => Math.max(
281
+ ...I.value.filter((a) => !z.value.includes(a.id)).map((a) => Math.max(...a.series.flatMap((o) => o.values.length)))
282
+ )), C = y(() => h.value.width / Ie.value), le = y(() => I.value.filter((a) => !z.value.includes(a.id))), f = y(() => {
283
+ let a = [];
284
+ for (let o = 0; o < Ie.value; o += 1) {
285
+ const t = Math.min(...le.value.flatMap((g) => g.series.map((x) => x.values[o] || 0) || 0)), s = Math.max(...le.value.flatMap((g) => g.series.map((x) => x.values[o] || 0) || 0)), l = s === t ? t / 4 : t, r = s === t ? s * 2 : s, i = _t(l, r, e.value.style.chart.yAxis.scaleTicks), T = i.ticks.map((g, x) => {
286
+ const yt = i.min < 0 ? g + Math.abs(i.min) : g - Math.abs(i.min), ft = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
287
+ return {
288
+ y: h.value.bottom - h.value.height * (yt / ft),
289
+ x: h.value.left + C.value * o + C.value / 2,
290
+ value: g
291
+ };
292
+ });
293
+ a.push({
294
+ scale: i,
295
+ ticks: T,
296
+ name: e.value.style.chart.yAxis.labels.axisNames[o] || `Y-${o + 1}`
297
+ });
298
+ }
299
+ return a;
300
+ }), oe = y(() => le.value.map((a, o) => ({
301
+ ...a,
302
+ series: a.series.map((t, s) => ({
303
+ ...t,
304
+ datapoints: t.values.map((l, r) => {
305
+ const i = f.value[r].scale.min < 0 ? (l || 0) + Math.abs(f.value[r].scale.min) : (l || 0) - Math.abs(f.value[r].scale.min), T = f.value[r].scale.min < 0 ? f.value[r].scale.max + Math.abs(f.value[r].scale.min) : f.value[r].scale.max - Math.abs(f.value[r].scale.min);
306
+ return {
307
+ name: t.name,
308
+ seriesName: a.name,
309
+ axisIndex: r,
310
+ datapointIndex: s,
311
+ seriesIndex: o,
312
+ value: l || 0,
313
+ x: h.value.left + C.value * r + C.value / 2,
314
+ y: h.value.bottom - h.value.height * (i / T),
315
+ comment: t.comments && t.comments[r] || ""
316
+ };
317
+ })
318
+ }))
319
+ })).map((a) => ({
320
+ ...a,
321
+ series: a.series.map((o) => {
322
+ const t = It(o.datapoints), s = Lt(o.datapoints), l = Pt(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${t}`);
323
+ return {
324
+ ...o,
325
+ smoothPath: s,
326
+ straightPath: t,
327
+ pathLength: l
328
+ };
329
+ })
330
+ })));
331
+ function Le({ value: a, index: o, datapoint: t }) {
332
+ return Ge(
333
+ e.value.style.chart.yAxis.labels.formatters[o] || null,
334
+ a,
335
+ Xe({
336
+ p: e.value.style.chart.yAxis.labels.prefixes[o] || "",
337
+ v: a,
338
+ s: e.value.style.chart.yAxis.labels.suffixes[o] || "",
339
+ r: e.value.style.chart.yAxis.labels.roundings[o] || 0
340
+ }),
341
+ { datapoint: t, seriesIndex: o }
342
+ );
343
+ }
344
+ const k = d(null), se = d(null), ne = d(!1), ie = d("");
345
+ function G({ shape: a, serie: o, S: t }) {
346
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...o, shape: a }, seriesIndex: t }), k.value = null, ne.value = null;
347
+ }
348
+ function X({ shape: a, serieName: o, serie: t, relativeIndex: s, seriesIndex: l, S: r }) {
349
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, shape: a }, seriesIndex: r }), se.value = { serie: t, relativeIndex: s, seriesIndex: l, series: I.value, scales: f.value }, ne.value = !0, k.value = t.id;
350
+ let i = "";
351
+ const T = e.value.style.chart.tooltip.customFormat;
352
+ je(T) && Et(() => T({
353
+ serie: t,
354
+ seriesIndex: t.seriesIndex,
355
+ series: I.value,
356
+ config: e.value,
357
+ scales: f.value
358
+ })) ? ie.value = T({
359
+ serie: t,
360
+ seriesIndex: t.seriesIndex,
361
+ series: I.value,
362
+ config: e.value,
363
+ scales: f.value
364
+ }) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o ? o + " - " : ""}${t.name}</div>`, f.value.map((g) => g.name).forEach((g, x) => {
365
+ i += `
366
+ <div class="vue-ui-tooltip-item" style="text-align:left">
367
+ <span>${g}: </span>
368
+ <span>
369
+ ${Ge(
370
+ e.value.style.chart.yAxis.labels.formatters[x] || null,
371
+ t.datapoints[x].value,
372
+ Xe({
373
+ p: e.value.style.chart.yAxis.labels.prefixes[x] || "",
374
+ v: t.datapoints[x].value,
375
+ s: e.value.style.chart.yAxis.labels.suffixes[x] || "",
376
+ r: e.value.style.chart.yAxis.labels.roundings[x] || ""
377
+ }),
378
+ { datapoint: t.datapoints[x], seriesIndex: x }
379
+ )}
380
+ </span>
381
+ </div>
382
+ `, e.value.style.chart.comments.showInTooltip && t.datapoints[x].comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.datapoints[x].comment}</div>`);
383
+ }), ie.value = `<div>${i}</div>`);
384
+ }
385
+ function dt() {
386
+ return I.value;
387
+ }
388
+ const R = y(() => {
389
+ const a = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name)), o = oe.value.flatMap((l, r) => l.series.map((i) => [l.name].concat([i.name]).concat(i.values))), t = {
390
+ th: {
391
+ backgroundColor: e.value.table.th.backgroundColor,
392
+ color: e.value.table.th.color,
393
+ outline: e.value.table.th.outline
394
+ },
395
+ td: {
396
+ backgroundColor: e.value.table.td.backgroundColor,
397
+ color: e.value.table.td.color,
398
+ outline: e.value.table.td.outline
399
+ },
400
+ breakpoint: e.value.table.responsiveBreakpoint
401
+ }, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name));
402
+ return {
403
+ body: o,
404
+ head: a,
405
+ config: t,
406
+ colNames: s
407
+ };
408
+ }), Pe = y(() => oe.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
409
+ head: R.value.head,
410
+ body: R.value.body
411
+ });
412
+ function Oe(a = null) {
413
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = Pe.value.head, s = Pe.value.body, l = o.concat([t]).concat(s), r = Rt(l);
414
+ a ? a(r) : Dt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
415
+ }
416
+ const Se = Qe;
417
+ function Y({ serie: a, shape: o, S: t }) {
418
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...a, shape: o }, seriesIndex: t }), Se("selectDatapoint", a);
419
+ }
420
+ function Re(a) {
421
+ Se("selectLegend", {
422
+ ...a,
423
+ isSegregated: !a.isSegregated,
424
+ opacity: a.isSegregated ? 1 : 0.5
425
+ });
426
+ }
427
+ function De() {
428
+ p.value.showTable = !p.value.showTable;
429
+ }
430
+ function Ee() {
431
+ p.value.dataLabels.show = !p.value.dataLabels.show;
432
+ }
433
+ function He() {
434
+ p.value.showTooltip = !p.value.showTooltip;
435
+ }
436
+ const q = d(!1);
437
+ function ue() {
438
+ q.value = !q.value;
439
+ }
440
+ async function ht({ scale: a = 2 } = {}) {
441
+ if (!F.value) return;
442
+ const { width: o, height: t } = F.value.getBoundingClientRect(), s = o / t, { imageUri: l, base64: r } = await Jt({ domElement: F.value, base64: !0, img: !0, scale: a });
443
+ return {
444
+ imageUri: l,
445
+ base64: r,
446
+ title: e.value.style.chart.title.text,
447
+ width: o,
448
+ height: t,
449
+ aspectRatio: s
450
+ };
451
+ }
452
+ const pt = d({ start: 0, end: 1 }), mt = y(() => f.value.map((a) => a.name));
453
+ return Gt({
454
+ timeLabelsEls: Q,
455
+ timeLabels: mt,
456
+ slicer: pt,
457
+ configRef: e,
458
+ rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
459
+ autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate"],
460
+ isAutoSize: !1,
461
+ width: Ne,
462
+ height: Fe,
463
+ targetClass: ".vue-ui-parallel-coordinate-plot-x-label"
464
+ }), Ke({
465
+ getData: dt,
466
+ getImage: ht,
467
+ generateCsv: Oe,
468
+ generatePdf: ze,
469
+ generateImage: Me,
470
+ toggleTable: De,
471
+ toggleLabels: Ee,
472
+ toggleTooltip: He,
473
+ toggleAnnotator: ue,
474
+ toggleFullscreen: ge
475
+ }), (a, o) => (n(), u("div", {
476
+ ref_key: "pcpChart",
477
+ ref: F,
478
+ class: V(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
479
+ style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
480
+ id: `pcp_${Z.value}`,
481
+ onMouseenter: o[2] || (o[2] = () => v(xe)(!0)),
482
+ onMouseleave: o[3] || (o[3] = () => v(xe)(!1))
483
+ }, [
484
+ e.value.userOptions.buttons.annotator ? (n(), L(v(at), {
485
+ key: 0,
486
+ svgRef: v(we),
487
+ backgroundColor: e.value.style.chart.backgroundColor,
488
+ color: e.value.style.chart.color,
489
+ active: q.value,
490
+ onClose: ue
491
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
492
+ it.value ? (n(), u("div", {
493
+ key: 1,
494
+ ref_key: "noTitle",
495
+ ref: me,
496
+ class: "vue-data-ui-no-title-space",
497
+ style: "height:36px; width: 100%;background:transparent"
498
+ }, null, 512)) : m("", !0),
499
+ e.value.style.chart.title.text ? (n(), u("div", {
500
+ key: 2,
501
+ ref_key: "chartTitle",
502
+ ref: de,
503
+ style: "width:100%;background:transparent;padding-bottom:24px"
504
+ }, [
505
+ (n(), L(Xt, {
506
+ key: `title_${ye.value}`,
507
+ config: {
508
+ title: {
509
+ cy: "pcp-div-title",
510
+ ...e.value.style.chart.title
511
+ },
512
+ subtitle: {
513
+ cy: "pcp-div-subtitle",
514
+ ...e.value.style.chart.title.subtitle
515
+ }
516
+ }
517
+ }, null, 8, ["config"]))
518
+ ], 512)) : m("", !0),
519
+ e.value.userOptions.show && j.value && (v(ke) || v(te)) ? (n(), L(v(ot), {
520
+ ref: "details",
521
+ key: `user_options_${ve.value}`,
522
+ backgroundColor: e.value.style.chart.backgroundColor,
523
+ color: e.value.style.chart.color,
524
+ isPrinting: v($e),
525
+ isImaging: v(Te),
526
+ uid: Z.value,
527
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
528
+ hasPdf: e.value.userOptions.buttons.pdf,
529
+ hasXls: e.value.userOptions.buttons.csv,
530
+ hasImg: e.value.userOptions.buttons.img,
531
+ hasTable: e.value.userOptions.buttons.table,
532
+ hasLabel: e.value.userOptions.buttons.labels,
533
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
534
+ isFullscreen: O.value,
535
+ isTooltip: p.value.showTooltip,
536
+ titles: { ...e.value.userOptions.buttonTitles },
537
+ chartElement: F.value,
538
+ position: e.value.userOptions.position,
539
+ hasAnnotator: e.value.userOptions.buttons.annotator,
540
+ isAnnotation: q.value,
541
+ callbacks: e.value.userOptions.callbacks,
542
+ printScale: e.value.userOptions.print.scale,
543
+ onToggleFullscreen: ge,
544
+ onGeneratePdf: v(ze),
545
+ onGenerateCsv: Oe,
546
+ onGenerateImage: v(Me),
547
+ onToggleTable: De,
548
+ onToggleLabels: Ee,
549
+ onToggleTooltip: He,
550
+ onToggleAnnotator: ue,
551
+ style: M({
552
+ visibility: v(ke) ? v(te) ? "visible" : "hidden" : "visible"
553
+ })
554
+ }, wt({ _: 2 }, [
555
+ a.$slots.menuIcon ? {
556
+ name: "menuIcon",
557
+ fn: w(({ isOpen: t, color: s }) => [
558
+ b(a.$slots, "menuIcon", H(B({ isOpen: t, color: s })), void 0, !0)
559
+ ]),
560
+ key: "0"
561
+ } : void 0,
562
+ a.$slots.optionPdf ? {
563
+ name: "optionPdf",
564
+ fn: w(() => [
565
+ b(a.$slots, "optionPdf", {}, void 0, !0)
566
+ ]),
567
+ key: "1"
568
+ } : void 0,
569
+ a.$slots.optionCsv ? {
570
+ name: "optionCsv",
571
+ fn: w(() => [
572
+ b(a.$slots, "optionCsv", {}, void 0, !0)
573
+ ]),
574
+ key: "2"
575
+ } : void 0,
576
+ a.$slots.optionImg ? {
577
+ name: "optionImg",
578
+ fn: w(() => [
579
+ b(a.$slots, "optionImg", {}, void 0, !0)
580
+ ]),
581
+ key: "3"
582
+ } : void 0,
583
+ a.$slots.optionTable ? {
584
+ name: "optionTable",
585
+ fn: w(() => [
586
+ b(a.$slots, "optionTable", {}, void 0, !0)
587
+ ]),
588
+ key: "4"
589
+ } : void 0,
590
+ a.$slots.optionLabels ? {
591
+ name: "optionLabels",
592
+ fn: w(() => [
593
+ b(a.$slots, "optionLabels", {}, void 0, !0)
594
+ ]),
595
+ key: "5"
596
+ } : void 0,
597
+ a.$slots.optionFullscreen ? {
598
+ name: "optionFullscreen",
599
+ fn: w(({ toggleFullscreen: t, isFullscreen: s }) => [
600
+ b(a.$slots, "optionFullscreen", H(B({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
601
+ ]),
602
+ key: "6"
603
+ } : void 0,
604
+ a.$slots.optionAnnotator ? {
605
+ name: "optionAnnotator",
606
+ fn: w(({ toggleAnnotator: t, isAnnotator: s }) => [
607
+ b(a.$slots, "optionAnnotator", H(B({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
608
+ ]),
609
+ key: "7"
610
+ } : void 0
611
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
612
+ (n(), u("svg", {
613
+ ref_key: "svgRef",
614
+ ref: we,
615
+ xmlns: v(Ot),
616
+ class: V({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
617
+ viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
618
+ style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
619
+ }, [
620
+ We(v(tt)),
621
+ a.$slots["chart-background"] ? (n(), u("foreignObject", {
622
+ key: 0,
623
+ x: h.value.left,
624
+ y: h.value.top,
625
+ width: h.value.width,
626
+ height: h.value.height,
627
+ style: {
628
+ pointerEvents: "none"
629
+ }
630
+ }, [
631
+ b(a.$slots, "chart-background", {}, void 0, !0)
632
+ ], 8, ea)) : m("", !0),
633
+ (n(!0), u(A, null, N(f.value, (t, s) => (n(), u("g", ta, [
634
+ E("line", {
635
+ x1: h.value.left + C.value * s + C.value / 2,
636
+ x2: h.value.left + C.value * s + C.value / 2,
637
+ y1: h.value.top,
638
+ y2: h.value.bottom,
639
+ stroke: e.value.style.chart.yAxis.stroke,
640
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth
641
+ }, null, 8, aa),
642
+ e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
643
+ (n(!0), u(A, null, N(t.ticks, (l) => (n(), u("line", {
644
+ x1: l.x,
645
+ x2: l.x - 10,
646
+ y1: l.y,
647
+ y2: l.y,
648
+ stroke: e.value.style.chart.yAxis.stroke,
649
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth,
650
+ style: M(`opacity:${k.value && !p.value.showTooltip ? 0.2 : 1}`)
651
+ }, null, 12, la))), 256)),
652
+ v(P) ? m("", !0) : (n(), u("g", oa, [
653
+ (n(!0), u(A, null, N(t.ticks, (l) => (n(), u("text", {
654
+ x: l.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
655
+ y: l.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
656
+ fill: e.value.style.chart.yAxis.labels.ticks.color,
657
+ "text-anchor": "end",
658
+ "font-size": c.value.ticksFontSize,
659
+ "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
660
+ style: M(`opacity:${k.value && !p.value.showTooltip ? 0.2 : 1}`)
661
+ }, W(Le({ value: l.value, index: s, datapoint: l })), 13, sa))), 256))
662
+ ]))
663
+ ], 64)) : m("", !0)
664
+ ]))), 256)),
665
+ e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
666
+ key: 1,
667
+ ref_key: "xAxisLabels",
668
+ ref: Q
669
+ }, [
670
+ (n(!0), u(A, null, N(f.value, (t, s) => (n(), u(A, null, [
671
+ String(t.name).includes(`
672
+ `) ? (n(), u("text", {
673
+ key: 1,
674
+ class: "vue-ui-parallel-coordinate-plot-x-label",
675
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
676
+ "font-size": c.value.axisNameFontSize,
677
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
678
+ "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
679
+ transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${U.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
680
+ innerHTML: v(St)({
681
+ content: String(t.name),
682
+ fontSize: c.value.axisNameFontSize,
683
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
684
+ x: 0,
685
+ y: 0
686
+ })
687
+ }, null, 8, ia)) : (n(), u("text", {
688
+ key: 0,
689
+ class: "vue-ui-parallel-coordinate-plot-x-label",
690
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
691
+ "font-size": c.value.axisNameFontSize,
692
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
693
+ "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
694
+ transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${U.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
695
+ }, W(t.name), 9, na))
696
+ ], 64))), 256))
697
+ ], 512)) : m("", !0),
698
+ (n(!0), u(A, null, N(oe.value, (t, s) => (n(), u("g", null, [
699
+ (n(!0), u(A, null, N(t.series, (l, r) => (n(), u("g", null, [
700
+ e.value.style.chart.plots.show ? (n(), u("g", ua, [
701
+ (n(!0), u(A, null, N(l.datapoints, (i, T) => (n(), L(qt, {
702
+ plot: { x: i.x, y: i.y },
703
+ color: t.color,
704
+ shape: t.shape,
705
+ radius: t.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
706
+ stroke: e.value.style.chart.backgroundColor,
707
+ strokeWidth: 0.5,
708
+ onMouseenter: (g) => X({
709
+ shape: t.shape,
710
+ serieName: t.name,
711
+ serie: l,
712
+ relativeIndex: r,
713
+ seriesIndex: l.seriesIndex,
714
+ S: s
715
+ }),
716
+ onMouseleave: (g) => G({ serie: l, shape: t.shape, S: s }),
717
+ style: M(`opacity:${k.value ? k.value === l.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
718
+ onClick: () => Y({ serie: l, shape: t.shape, S: s })
719
+ }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
720
+ p.value.showTooltip ? m("", !0) : (n(), u(A, { key: 0 }, [
721
+ k.value && k.value === l.id && l.datapoints.length ? (n(), u("text", {
722
+ key: 0,
723
+ x: l.datapoints[0].x - c.value.ticksFontSize,
724
+ y: l.datapoints[0].y + c.value.ticksFontSize / 3,
725
+ "text-anchor": "end",
726
+ "font-size": c.value.ticksFontSize,
727
+ fill: t.color,
728
+ "font-weight": "bold"
729
+ }, W(l.name), 9, ra)) : m("", !0)
730
+ ], 64)),
731
+ e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, N(l.datapoints, (i) => (n(), u("g", null, [
732
+ i.comment ? (n(), u("foreignObject", {
733
+ key: 0,
734
+ style: { overflow: "visible" },
735
+ height: "12",
736
+ width: e.value.style.chart.comments.width,
737
+ x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
738
+ y: i.y + e.value.style.chart.comments.offsetY + 6
739
+ }, [
740
+ E("div", va, [
741
+ b(a.$slots, "plot-comment", {
742
+ plot: { ...i, color: t.color }
743
+ }, void 0, !0)
744
+ ])
745
+ ], 8, ca)) : m("", !0)
746
+ ]))), 256)) : m("", !0)
747
+ ])) : m("", !0),
748
+ !v(P) && (p.value.dataLabels.show || k.value && k.value === l.id) ? (n(!0), u(A, { key: 1 }, N(l.datapoints, (i, T) => (n(), u("text", {
749
+ x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
750
+ y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
751
+ fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : e.value.style.chart.yAxis.labels.datapoints.color,
752
+ "text-anchor": "start",
753
+ "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
754
+ class: V({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(P) }),
755
+ "font-size": c.value.datapointFontSize,
756
+ onMouseenter: (g) => X({
757
+ shape: t.shape,
758
+ serieName: t.name,
759
+ serie: l,
760
+ relativeIndex: r,
761
+ seriesIndex: l.seriesIndex,
762
+ S: s
763
+ }),
764
+ onMouseleave: (g) => G({ serie: l, shape: t.shape, S: s }),
765
+ onClick: () => Y({ serie: l, shape: t.shape, S: s }),
766
+ style: M(`opacity:${k.value ? k.value === l.id ? 1 : 0.2 : 1}`)
767
+ }, W(Le({ value: i.value, index: T, datapoint: i })), 47, da))), 256)) : m("", !0),
768
+ E("path", {
769
+ d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
770
+ stroke: t.color,
771
+ "stroke-width": e.value.style.chart.lines.strokeWidth,
772
+ fill: "none",
773
+ class: V({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(P) }),
774
+ onMouseenter: (i) => X({
775
+ shape: t.shape,
776
+ serieName: t.name,
777
+ serie: l,
778
+ relativeIndex: r,
779
+ seriesIndex: l.seriesIndex,
780
+ S: s
781
+ }),
782
+ onMouseleave: (i) => G({ serie: l, shape: t.shape, S: s }),
783
+ onClick: () => Y({ serie: l, shape: t.shape, S: s }),
784
+ style: M(`opacity:${k.value ? k.value === l.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${l.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? l.pathLength : 0}`)
785
+ }, null, 46, ha),
786
+ p.value.showTooltip ? (n(), u("path", {
787
+ key: 2,
788
+ d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
789
+ stroke: "transparent",
790
+ "stroke-width": 12,
791
+ fill: "none",
792
+ class: V({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(P) }),
793
+ onMouseenter: (i) => X({
794
+ shape: t.shape,
795
+ serieName: t.name,
796
+ serie: l,
797
+ relativeIndex: r,
798
+ seriesIndex: l.seriesIndex,
799
+ S: s
800
+ }),
801
+ onMouseleave: (i) => G({ serie: l, shape: t.shape, S: s }),
802
+ onClick: () => Y({ serie: l, shape: t.shape, S: s }),
803
+ style: { opacity: "0" }
804
+ }, null, 42, pa)) : m("", !0)
805
+ ]))), 256))
806
+ ]))), 256)),
807
+ b(a.$slots, "svg", { svg: h.value }, void 0, !0)
808
+ ], 14, Zt)),
809
+ a.$slots.watermark ? (n(), u("div", ma, [
810
+ b(a.$slots, "watermark", H(B({ isPrinting: v($e) || v(Te) })), void 0, !0)
811
+ ])) : m("", !0),
812
+ E("div", {
813
+ ref_key: "chartLegend",
814
+ ref: he
815
+ }, [
816
+ e.value.style.chart.legend.show && j.value ? (n(), L(Yt, {
817
+ key: `legend_${fe.value}`,
818
+ legendSet: ct.value,
819
+ config: vt.value,
820
+ onClickMarker: o[0] || (o[0] = ({ legend: t }) => {
821
+ _e(t.id), Re(t);
822
+ })
823
+ }, {
824
+ item: w(({ legend: t, index: s }) => [
825
+ E("div", {
826
+ onClick: (l) => {
827
+ t.segregate(), Re(t);
828
+ },
829
+ style: M(`opacity:${z.value.includes(t.id) ? 0.5 : 1}`)
830
+ }, W(t.name), 13, ya)
831
+ ]),
832
+ _: 1
833
+ }, 8, ["legendSet", "config"])) : b(a.$slots, "legend", {
834
+ key: 1,
835
+ legend: I.value
836
+ }, void 0, !0)
837
+ ], 512),
838
+ a.$slots.source ? (n(), u("div", {
839
+ key: 5,
840
+ ref_key: "source",
841
+ ref: pe,
842
+ dir: "auto"
843
+ }, [
844
+ b(a.$slots, "source", {}, void 0, !0)
845
+ ], 512)) : m("", !0),
846
+ We(v(lt), {
847
+ show: p.value.showTooltip && ne.value,
848
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
849
+ color: e.value.style.chart.tooltip.color,
850
+ fontSize: e.value.style.chart.tooltip.fontSize,
851
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
852
+ borderColor: e.value.style.chart.tooltip.borderColor,
853
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
854
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
855
+ position: e.value.style.chart.tooltip.position,
856
+ offsetY: e.value.style.chart.tooltip.offsetY,
857
+ parent: F.value,
858
+ content: ie.value,
859
+ isFullscreen: O.value,
860
+ isCustom: v(je)(e.value.style.chart.tooltip.customFormat),
861
+ smooth: e.value.style.chart.tooltip.smooth,
862
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
863
+ }, {
864
+ "tooltip-before": w(() => [
865
+ b(a.$slots, "tooltip-before", H(B({ ...se.value })), void 0, !0)
866
+ ]),
867
+ "tooltip-after": w(() => [
868
+ b(a.$slots, "tooltip-after", H(B({ ...se.value })), void 0, !0)
869
+ ]),
870
+ _: 3
871
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
872
+ j.value ? (n(), L(v(Ze), {
873
+ key: 6,
874
+ hideDetails: "",
875
+ config: {
876
+ open: p.value.showTable,
877
+ maxHeight: 1e4,
878
+ body: {
879
+ backgroundColor: e.value.style.chart.backgroundColor,
880
+ color: e.value.style.chart.color
881
+ },
882
+ head: {
883
+ backgroundColor: e.value.style.chart.backgroundColor,
884
+ color: e.value.style.chart.color
885
+ }
886
+ }
887
+ }, {
888
+ content: w(() => [
889
+ (n(), L(v(et), {
890
+ key: `table_${be.value}`,
891
+ colNames: R.value.colNames,
892
+ head: R.value.head,
893
+ body: R.value.body,
894
+ config: R.value.config,
895
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
896
+ onClose: o[1] || (o[1] = (t) => p.value.showTable = !1)
897
+ }, {
898
+ th: w(({ th: t }) => [
899
+ E("div", { innerHTML: t }, null, 8, fa)
900
+ ]),
901
+ td: w(({ td: t }) => [
902
+ Ct(W(t), 1)
903
+ ]),
904
+ _: 1
905
+ }, 8, ["colNames", "head", "body", "config", "title"]))
906
+ ]),
907
+ _: 1
908
+ }, 8, ["config"])) : m("", !0),
909
+ v(P) ? (n(), L(Ut, { key: 7 })) : m("", !0)
910
+ ], 46, Qt));
911
+ }
912
+ }, La = /* @__PURE__ */ Kt(ba, [["__scopeId", "data-v-5a66b484"]]);
913
+ export {
914
+ La as default
915
+ };