vue-data-ui 3.0.23 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-nO6ydJO2.js +0 -133
  93. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  94. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  95. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  96. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  97. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  98. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  99. package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -0,0 +1,979 @@
1
+ import { defineAsyncComponent as O, computed as y, ref as d, toRefs as $t, watch as Z, shallowRef as je, onMounted as Tt, onBeforeUnmount as zt, watchEffect as Mt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as N, normalizeClass as X, createBlock as F, createCommentVNode as m, createElementVNode as _, createVNode as he, createSlots as Ge, withCtx as b, renderSlot as g, normalizeProps as W, guardReactiveProps as U, Fragment as A, renderList as I, toDisplayString as B, Teleport as Nt, resolveDynamicComponent as Ft, mergeProps as _t, createTextVNode as Xe, nextTick as It } from "vue";
2
+ import { u as Lt, c as pe, t as Pt, a as Ot, p as ee, b as St, o as Ye, f as qe, g as Dt, d as Rt, e as Bt, D as Et, U as Ht, V as Wt, W as Ut, X as Vt, I as jt, y as Je, E as te, v as Gt, w as Xt, k as Ke, i as Qe, z as Yt } from "./index-CDQbCd41.js";
3
+ import { t as Ze, u as qt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Jt } from "./usePrinter-Bnl1YeUU.js";
5
+ import { u as Kt, B as Qt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as et } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ea } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as ta } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import aa from "./Title-Dq2_Z9kR.js";
11
+ import la from "./Legend-2-dC7DVb.js";
12
+ import { _ as oa } from "./Shape-Dj2Hl33H.js";
13
+ import sa from "./img-JOqdlnUs.js";
14
+ import { _ as na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"], va = { style: { "pointer-events": "none" } }, da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = { key: 0 }, ma = ["x", "y", "fill", "font-size", "font-weight"], ya = ["fill", "font-size", "font-weight", "text-anchor", "transform"], fa = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], ba = { key: 0 }, ga = ["x", "y", "font-size", "fill"], xa = ["width", "x", "y"], ka = { style: { width: "100%" } }, wa = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], Ca = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Aa = ["d", "onMouseenter", "onMouseleave", "onClick"], $a = {
16
+ key: 4,
17
+ class: "vue-data-ui-watermark"
18
+ }, Ta = ["id"], za = ["onClick"], Ma = ["innerHTML"], Na = {
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(tt, { expose: at, emit: lt }) {
36
+ const ot = O(() => import("./Tooltip-Y219DXZO.js")), st = O(() => import("./BaseIcon-DHtro8us.js")), nt = O(() => import("./vue-ui-accordion-Bf_LHFFX.js")), it = O(() => import("./DataTable-DJjA2_wf.js")), ut = O(() => import("./PenAndPaper-B7QEDgx4.js")), rt = O(() => import("./UserOptions-BuGfCdAY.js")), ct = O(() => import("./PackageVersion-DU12WH3O.js")), vt = O(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_parallel_coordinate_plot: dt } = Lt(), $ = tt, Y = y({
37
+ get() {
38
+ return !!$.dataset && $.dataset.length;
39
+ },
40
+ set(a) {
41
+ return a;
42
+ }
43
+ }), me = d(0), z = d(null), ye = d(null), fe = d(null), be = d(null), ge = d(null), xe = d(0), ke = d(0), we = d(0), Ce = d(!1), V = d(null), ae = d(null), S = d(pe()), D = d(!1);
44
+ function Ae(a) {
45
+ D.value = a, me.value += 1;
46
+ }
47
+ const e = d(se()), { loading: R, FINAL_DATASET: ht, manualLoading: le } = Kt({
48
+ ...$t($),
49
+ FINAL_CONFIG: e,
50
+ prepareConfig: se,
51
+ callback: () => {
52
+ Promise.resolve().then(async () => {
53
+ await It(), p.value.showTable = e.value.table.show;
54
+ });
55
+ },
56
+ skeletonDataset: [
57
+ {
58
+ name: "",
59
+ shape: "circle",
60
+ color: "transparent",
61
+ series: [
62
+ {
63
+ name: "",
64
+ values: [1, 10, 100, 1e3]
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ name: "",
70
+ shape: "circle",
71
+ color: "#CACACA",
72
+ series: [
73
+ {
74
+ name: "",
75
+ values: [0.2, 3, 50, 800]
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ name: "",
81
+ shape: "circle",
82
+ color: "transparent",
83
+ series: [
84
+ {
85
+ name: "",
86
+ values: [0, 0, 0, 0]
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ skeletonConfig: Pt({
92
+ defaultConfig: e.value,
93
+ userConfig: {
94
+ useCssAnimation: !1,
95
+ userOptions: { show: !1 },
96
+ table: { show: !1 },
97
+ style: {
98
+ chart: {
99
+ backgroundColor: "#99999930",
100
+ legend: {
101
+ show: !0,
102
+ backgroundColor: "transparent"
103
+ },
104
+ yAxis: {
105
+ stroke: "#6A6A6A",
106
+ labels: {
107
+ showAxisNames: !1,
108
+ axisNames: [],
109
+ ticks: {
110
+ color: "#6A6A6A"
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ })
118
+ }), { userOptionsVisible: oe, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: ze } = ea({ config: e.value.style.chart.title });
119
+ function se() {
120
+ const a = et({
121
+ userConfig: $.config,
122
+ defaultConfig: dt
123
+ });
124
+ return a.theme ? {
125
+ ...et({
126
+ userConfig: St.vue_ui_parallel_coordinate_plot[a.theme] || $.config,
127
+ defaultConfig: a
128
+ }),
129
+ customPalette: Ot[a.theme] || ee
130
+ } : a;
131
+ }
132
+ Z(() => $.config, (a) => {
133
+ R.value || (e.value = se()), oe.value = !e.value.userOptions.showOnChartHover, Ne(), xe.value += 1, we.value += 1, ke.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;
134
+ }, { deep: !0 }), Z(() => $.dataset, (a) => {
135
+ Array.isArray(a) && a.length > 0 && (le.value = !1);
136
+ }, { deep: !0 });
137
+ const L = je(null), E = je(null);
138
+ Tt(() => {
139
+ Ce.value = !0, Ne();
140
+ });
141
+ const Me = y(() => !!e.value.debug);
142
+ function Ne() {
143
+ if (Ye($.dataset) ? (qe({
144
+ componentName: "VueUiParallelCoordinatePlot",
145
+ type: "dataset",
146
+ debug: Me.value
147
+ }), le.value = !0) : $.dataset.forEach((a, l) => {
148
+ Dt({
149
+ datasetObject: a,
150
+ requiredAttributes: ["name", "series"]
151
+ }).forEach((t) => {
152
+ Y.value = !1, qe({
153
+ componentName: "VueUiParallelCoordinatePlot",
154
+ type: "datasetSerieAttribute",
155
+ property: t,
156
+ index: l,
157
+ debug: Me.value
158
+ });
159
+ });
160
+ }), Ye($.dataset) || (le.value = e.value.loading), e.value.responsive) {
161
+ const a = Ze(() => {
162
+ const { width: l, height: t } = qt({
163
+ chart: z.value,
164
+ title: e.value.style.chart.title.text ? ye.value : null,
165
+ legend: e.value.style.chart.legend.show ? fe.value : null,
166
+ source: be.value,
167
+ noTitle: ge.value
168
+ });
169
+ requestAnimationFrame(() => {
170
+ c.value.width = l, c.value.height = t - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = te({
171
+ relator: Math.min(l, t),
172
+ adjuster: 600,
173
+ source: e.value.style.chart.plots.radius,
174
+ threshold: 2,
175
+ fallback: 2
176
+ }), c.value.ticksFontSize = te({
177
+ relator: Math.min(l, t),
178
+ adjuster: 600,
179
+ source: e.value.style.chart.yAxis.labels.ticks.fontSize,
180
+ threshold: 10,
181
+ fallback: 10
182
+ }), c.value.datapointFontSize = te({
183
+ relator: Math.min(l, t),
184
+ adjuster: 600,
185
+ source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
186
+ threshold: 10,
187
+ fallback: 10
188
+ }), c.value.axisNameFontSize = te({
189
+ relator: Math.min(l, t),
190
+ adjuster: 600,
191
+ source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
192
+ threshold: 12,
193
+ fallback: 12
194
+ })) : (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);
195
+ });
196
+ });
197
+ L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(a), E.value = z.value.parentNode, L.value.observe(E.value);
198
+ }
199
+ }
200
+ zt(() => {
201
+ L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
202
+ });
203
+ const { isPrinting: Fe, isImaging: _e, generatePdf: Ie, generateImage: Le } = Jt({
204
+ elementId: `pcp_${S.value}`,
205
+ fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
206
+ options: e.value.userOptions.print
207
+ }), pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
208
+ height: e.value.style.chart.height,
209
+ width: e.value.style.chart.width,
210
+ plotSize: e.value.style.chart.plots.radius,
211
+ // ratio 100
212
+ ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
213
+ // ratio 42.85
214
+ datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
215
+ axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
216
+ }), Pe = y(() => c.value.width), Oe = y(() => c.value.height), j = d(0), mt = Ze((a) => {
217
+ j.value = a;
218
+ }, 100);
219
+ Mt((a) => {
220
+ const l = ae.value;
221
+ if (!l) return;
222
+ const t = new ResizeObserver((s) => {
223
+ mt(s[0].contentRect.height);
224
+ });
225
+ t.observe(l), a(() => t.disconnect());
226
+ });
227
+ const h = y(() => {
228
+ const { top: a, right: l, bottom: t, left: s } = e.value.style.chart.padding, o = Oe.value, r = Pe.value;
229
+ return {
230
+ chartHeight: Math.max(1e-3, o),
231
+ chartWidth: Math.max(1e-3, r),
232
+ height: Math.max(1e-3, o - a - t - j.value - c.value.datapointFontSize * 2),
233
+ width: Math.max(1e-3, r - s - l),
234
+ top: a + j.value + c.value.datapointFontSize,
235
+ left: s,
236
+ right: r - l,
237
+ bottom: o - t - c.value.datapointFontSize
238
+ };
239
+ }), yt = y(() => Rt(e.value.customPalette)), p = d({
240
+ dataLabels: {
241
+ show: e.value.style.chart.yAxis.labels.datapoints.show
242
+ },
243
+ showTable: e.value.table.show,
244
+ showTooltip: e.value.style.chart.tooltip.show
245
+ });
246
+ Z(e, () => {
247
+ p.value = {
248
+ dataLabels: {
249
+ show: e.value.style.chart.yAxis.labels.datapoints.show
250
+ },
251
+ showTable: e.value.table.show,
252
+ showTooltip: e.value.style.chart.tooltip.show
253
+ };
254
+ }, { immediate: !0 });
255
+ const M = d([]);
256
+ function Se(a) {
257
+ M.value.includes(a) ? M.value = M.value.filter((l) => l !== a) : M.value.push(a);
258
+ }
259
+ const P = y(() => ht.value.map((a, l) => {
260
+ const t = Bt(a.color) || yt.value[l] || ee[l] || ee[l % ee.length];
261
+ return {
262
+ ...a,
263
+ series: a.series.map((s) => ({
264
+ ...s,
265
+ id: pe(),
266
+ color: t
267
+ })),
268
+ seriesIndex: l,
269
+ color: t,
270
+ id: pe(),
271
+ shape: a.shape || "circle"
272
+ };
273
+ })), ft = y(() => P.value.map((a) => ({
274
+ ...a,
275
+ opacity: M.value.includes(a.id) ? 0.5 : 1,
276
+ segregate: () => Se(a.id),
277
+ isSegregated: M.value.includes(a.id)
278
+ }))), bt = y(() => ({
279
+ cy: "pcp-div-legend",
280
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
281
+ color: e.value.style.chart.legend.color,
282
+ fontSize: e.value.style.chart.legend.fontSize,
283
+ paddingBottom: 12,
284
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
285
+ })), De = y(() => Math.max(
286
+ ...P.value.filter((a) => !M.value.includes(a.id)).map((a) => Math.max(...a.series.flatMap((l) => l.values.length)))
287
+ )), C = y(() => h.value.width / De.value), ne = y(() => P.value.filter((a) => !M.value.includes(a.id))), f = y(() => {
288
+ let a = [];
289
+ for (let l = 0; l < De.value; l += 1) {
290
+ const t = Math.min(...ne.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), s = Math.max(...ne.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), o = s === t ? t / 4 : t, r = s === t ? s * 2 : s, i = Et(o, r, e.value.style.chart.yAxis.scaleTicks), T = i.ticks.map((x, k) => {
291
+ const Ct = i.min < 0 ? x + Math.abs(i.min) : x - Math.abs(i.min), At = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
292
+ return {
293
+ y: h.value.bottom - h.value.height * (Ct / At),
294
+ x: h.value.left + C.value * l + C.value / 2,
295
+ value: x
296
+ };
297
+ });
298
+ a.push({
299
+ scale: i,
300
+ ticks: T,
301
+ name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
302
+ });
303
+ }
304
+ return a;
305
+ }), ie = y(() => ne.value.map((a, l) => ({
306
+ ...a,
307
+ series: a.series.map((t, s) => ({
308
+ ...t,
309
+ datapoints: t.values.map((o, r) => {
310
+ const i = f.value[r].scale.min < 0 ? (o || 0) + Math.abs(f.value[r].scale.min) : (o || 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);
311
+ return {
312
+ name: t.name,
313
+ seriesName: a.name,
314
+ axisIndex: r,
315
+ datapointIndex: s,
316
+ seriesIndex: l,
317
+ value: o || 0,
318
+ x: h.value.left + C.value * r + C.value / 2,
319
+ y: h.value.bottom - h.value.height * (i / T),
320
+ comment: t.comments && t.comments[r] || ""
321
+ };
322
+ })
323
+ }))
324
+ })).map((a) => ({
325
+ ...a,
326
+ series: a.series.map((l) => {
327
+ const t = Ht(l.datapoints), s = Wt(l.datapoints), o = Ut(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${t}`);
328
+ return {
329
+ ...l,
330
+ smoothPath: s,
331
+ straightPath: t,
332
+ pathLength: o
333
+ };
334
+ })
335
+ })));
336
+ function Re({ value: a, index: l, datapoint: t }) {
337
+ return Ke(
338
+ e.value.style.chart.yAxis.labels.formatters[l] || null,
339
+ a,
340
+ Qe({
341
+ p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
342
+ v: a,
343
+ s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
344
+ r: e.value.style.chart.yAxis.labels.roundings[l] || 0
345
+ }),
346
+ { datapoint: t, seriesIndex: l }
347
+ );
348
+ }
349
+ const w = d(null), ue = d(null), re = d(!1), ce = d("");
350
+ function q({ shape: a, serie: l, S: t }) {
351
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...l, shape: a }, seriesIndex: t }), w.value = null, re.value = null;
352
+ }
353
+ function J({ shape: a, serieName: l, serie: t, relativeIndex: s, seriesIndex: o, S: r }) {
354
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, shape: a }, seriesIndex: r }), ue.value = { serie: t, relativeIndex: s, seriesIndex: o, series: P.value, scales: f.value }, re.value = !0, w.value = t.id;
355
+ let i = "";
356
+ const T = e.value.style.chart.tooltip.customFormat;
357
+ Je(T) && Yt(() => T({
358
+ serie: t,
359
+ seriesIndex: t.seriesIndex,
360
+ series: P.value,
361
+ config: e.value,
362
+ scales: f.value
363
+ })) ? ce.value = T({
364
+ serie: t,
365
+ seriesIndex: t.seriesIndex,
366
+ series: P.value,
367
+ config: e.value,
368
+ scales: f.value
369
+ }) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${t.name}</div>`, f.value.map((x) => x.name).forEach((x, k) => {
370
+ i += `
371
+ <div class="vue-ui-tooltip-item" style="text-align:left">
372
+ <span>${x}: </span>
373
+ <span>
374
+ ${Ke(
375
+ e.value.style.chart.yAxis.labels.formatters[k] || null,
376
+ t.datapoints[k].value,
377
+ Qe({
378
+ p: e.value.style.chart.yAxis.labels.prefixes[k] || "",
379
+ v: t.datapoints[k].value,
380
+ s: e.value.style.chart.yAxis.labels.suffixes[k] || "",
381
+ r: e.value.style.chart.yAxis.labels.roundings[k] || ""
382
+ }),
383
+ { datapoint: t.datapoints[k], seriesIndex: k }
384
+ )}
385
+ </span>
386
+ </div>
387
+ `, e.value.style.chart.comments.showInTooltip && t.datapoints[k].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[k].comment}</div>`);
388
+ }), ce.value = `<div>${i}</div>`);
389
+ }
390
+ function gt() {
391
+ return P.value;
392
+ }
393
+ const H = y(() => {
394
+ const a = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((o) => o.name)), l = ie.value.flatMap((o, r) => o.series.map((i) => [o.name].concat([i.name]).concat(i.values))), t = {
395
+ th: {
396
+ backgroundColor: e.value.table.th.backgroundColor,
397
+ color: e.value.table.th.color,
398
+ outline: e.value.table.th.outline
399
+ },
400
+ td: {
401
+ backgroundColor: e.value.table.td.backgroundColor,
402
+ color: e.value.table.td.color,
403
+ outline: e.value.table.td.outline
404
+ },
405
+ breakpoint: e.value.table.responsiveBreakpoint
406
+ }, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((o) => o.name));
407
+ return {
408
+ body: l,
409
+ head: a,
410
+ config: t,
411
+ colNames: s
412
+ };
413
+ }), Be = y(() => ie.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
414
+ head: H.value.head,
415
+ body: H.value.body
416
+ });
417
+ function ve(a = null) {
418
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = Be.value.head, s = Be.value.body, o = l.concat([t]).concat(s), r = Gt(o);
419
+ a ? a(r) : Xt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
420
+ }
421
+ const Ee = lt;
422
+ function K({ serie: a, shape: l, S: t }) {
423
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...a, shape: l }, seriesIndex: t }), Ee("selectDatapoint", a);
424
+ }
425
+ function He(a) {
426
+ Ee("selectLegend", {
427
+ ...a,
428
+ isSegregated: !a.isSegregated,
429
+ opacity: a.isSegregated ? 1 : 0.5
430
+ });
431
+ }
432
+ function We() {
433
+ p.value.showTable = !p.value.showTable;
434
+ }
435
+ function Ue() {
436
+ p.value.dataLabels.show = !p.value.dataLabels.show;
437
+ }
438
+ function Ve() {
439
+ p.value.showTooltip = !p.value.showTooltip;
440
+ }
441
+ const Q = d(!1);
442
+ function de() {
443
+ Q.value = !Q.value;
444
+ }
445
+ async function xt({ scale: a = 2 } = {}) {
446
+ if (!z.value) return;
447
+ const { width: l, height: t } = z.value.getBoundingClientRect(), s = l / t, { imageUri: o, base64: r } = await sa({ domElement: z.value, base64: !0, img: !0, scale: a });
448
+ return {
449
+ imageUri: o,
450
+ base64: r,
451
+ title: e.value.style.chart.title.text,
452
+ width: l,
453
+ height: t,
454
+ aspectRatio: s
455
+ };
456
+ }
457
+ const kt = d({ start: 0, end: 1 }), wt = y(() => f.value.map((a) => a.name));
458
+ ta({
459
+ timeLabelsEls: ae,
460
+ timeLabels: wt,
461
+ slicer: kt,
462
+ configRef: e,
463
+ rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
464
+ autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate", "enable"],
465
+ isAutoSize: !1,
466
+ width: Pe,
467
+ height: Oe,
468
+ targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
469
+ rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
470
+ });
471
+ const G = y(() => {
472
+ const a = e.value.table.useDialog && !e.value.table.show, l = p.value.showTable;
473
+ return {
474
+ component: a ? vt : nt,
475
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
476
+ props: a ? {
477
+ backgroundColor: e.value.table.th.backgroundColor,
478
+ color: e.value.table.th.color,
479
+ headerColor: e.value.table.th.color,
480
+ headerBg: e.value.table.th.backgroundColor,
481
+ isFullscreen: D.value,
482
+ fullscreenParent: z.value,
483
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
484
+ } : {
485
+ hideDetails: !0,
486
+ config: {
487
+ open: l,
488
+ maxHeight: 1e4,
489
+ body: {
490
+ backgroundColor: e.value.style.chart.backgroundColor,
491
+ color: e.value.style.chart.color
492
+ },
493
+ head: {
494
+ backgroundColor: e.value.style.chart.backgroundColor,
495
+ color: e.value.style.chart.color
496
+ }
497
+ }
498
+ }
499
+ };
500
+ });
501
+ return Z(() => p.value.showTable, (a) => {
502
+ e.value.table.show || (a && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
503
+ }), at({
504
+ getData: gt,
505
+ getImage: xt,
506
+ generateCsv: ve,
507
+ generatePdf: Ie,
508
+ generateImage: Le,
509
+ toggleTable: We,
510
+ toggleLabels: Ue,
511
+ toggleTooltip: Ve,
512
+ toggleAnnotator: de,
513
+ toggleFullscreen: Ae
514
+ }), (a, l) => (n(), u("div", {
515
+ ref_key: "pcpChart",
516
+ ref: z,
517
+ class: X(`vue-ui-pcp ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
518
+ style: N(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
519
+ id: `pcp_${S.value}`,
520
+ onMouseenter: l[4] || (l[4] = () => v($e)(!0)),
521
+ onMouseleave: l[5] || (l[5] = () => v($e)(!1))
522
+ }, [
523
+ e.value.userOptions.buttons.annotator ? (n(), F(v(ut), {
524
+ key: 0,
525
+ svgRef: v(ze),
526
+ backgroundColor: e.value.style.chart.backgroundColor,
527
+ color: e.value.style.chart.color,
528
+ active: Q.value,
529
+ onClose: de
530
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
531
+ pt.value ? (n(), u("div", {
532
+ key: 1,
533
+ ref_key: "noTitle",
534
+ ref: ge,
535
+ class: "vue-data-ui-no-title-space",
536
+ style: "height:36px; width: 100%;background:transparent"
537
+ }, null, 512)) : m("", !0),
538
+ e.value.style.chart.title.text ? (n(), u("div", {
539
+ key: 2,
540
+ ref_key: "chartTitle",
541
+ ref: ye,
542
+ style: "width:100%;background:transparent;padding-bottom:24px"
543
+ }, [
544
+ (n(), F(aa, {
545
+ key: `title_${xe.value}`,
546
+ config: {
547
+ title: {
548
+ cy: "pcp-div-title",
549
+ ...e.value.style.chart.title
550
+ },
551
+ subtitle: {
552
+ cy: "pcp-div-subtitle",
553
+ ...e.value.style.chart.title.subtitle
554
+ }
555
+ }
556
+ }, null, 8, ["config"]))
557
+ ], 512)) : m("", !0),
558
+ _("div", {
559
+ id: `legend-top-${S.value}`
560
+ }, null, 8, ua),
561
+ e.value.userOptions.show && Y.value && (v(Te) || v(oe)) ? (n(), F(v(rt), {
562
+ ref: "details",
563
+ key: `user_options_${me.value}`,
564
+ backgroundColor: e.value.style.chart.backgroundColor,
565
+ color: e.value.style.chart.color,
566
+ isPrinting: v(Fe),
567
+ isImaging: v(_e),
568
+ uid: S.value,
569
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
570
+ hasPdf: e.value.userOptions.buttons.pdf,
571
+ hasXls: e.value.userOptions.buttons.csv,
572
+ hasImg: e.value.userOptions.buttons.img,
573
+ hasTable: e.value.userOptions.buttons.table,
574
+ hasLabel: e.value.userOptions.buttons.labels,
575
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
576
+ isFullscreen: D.value,
577
+ isTooltip: p.value.showTooltip,
578
+ titles: { ...e.value.userOptions.buttonTitles },
579
+ chartElement: z.value,
580
+ position: e.value.userOptions.position,
581
+ hasAnnotator: e.value.userOptions.buttons.annotator,
582
+ isAnnotation: Q.value,
583
+ callbacks: e.value.userOptions.callbacks,
584
+ printScale: e.value.userOptions.print.scale,
585
+ onToggleFullscreen: Ae,
586
+ onGeneratePdf: v(Ie),
587
+ onGenerateCsv: ve,
588
+ onGenerateImage: v(Le),
589
+ onToggleTable: We,
590
+ onToggleLabels: Ue,
591
+ onToggleTooltip: Ve,
592
+ onToggleAnnotator: de,
593
+ style: N({
594
+ visibility: v(Te) ? v(oe) ? "visible" : "hidden" : "visible"
595
+ })
596
+ }, Ge({ _: 2 }, [
597
+ a.$slots.menuIcon ? {
598
+ name: "menuIcon",
599
+ fn: b(({ isOpen: t, color: s }) => [
600
+ g(a.$slots, "menuIcon", W(U({ isOpen: t, color: s })), void 0, !0)
601
+ ]),
602
+ key: "0"
603
+ } : void 0,
604
+ a.$slots.optionPdf ? {
605
+ name: "optionPdf",
606
+ fn: b(() => [
607
+ g(a.$slots, "optionPdf", {}, void 0, !0)
608
+ ]),
609
+ key: "1"
610
+ } : void 0,
611
+ a.$slots.optionCsv ? {
612
+ name: "optionCsv",
613
+ fn: b(() => [
614
+ g(a.$slots, "optionCsv", {}, void 0, !0)
615
+ ]),
616
+ key: "2"
617
+ } : void 0,
618
+ a.$slots.optionImg ? {
619
+ name: "optionImg",
620
+ fn: b(() => [
621
+ g(a.$slots, "optionImg", {}, void 0, !0)
622
+ ]),
623
+ key: "3"
624
+ } : void 0,
625
+ a.$slots.optionTable ? {
626
+ name: "optionTable",
627
+ fn: b(() => [
628
+ g(a.$slots, "optionTable", {}, void 0, !0)
629
+ ]),
630
+ key: "4"
631
+ } : void 0,
632
+ a.$slots.optionLabels ? {
633
+ name: "optionLabels",
634
+ fn: b(() => [
635
+ g(a.$slots, "optionLabels", {}, void 0, !0)
636
+ ]),
637
+ key: "5"
638
+ } : void 0,
639
+ a.$slots.optionFullscreen ? {
640
+ name: "optionFullscreen",
641
+ fn: b(({ toggleFullscreen: t, isFullscreen: s }) => [
642
+ g(a.$slots, "optionFullscreen", W(U({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
643
+ ]),
644
+ key: "6"
645
+ } : void 0,
646
+ a.$slots.optionAnnotator ? {
647
+ name: "optionAnnotator",
648
+ fn: b(({ toggleAnnotator: t, isAnnotator: s }) => [
649
+ g(a.$slots, "optionAnnotator", W(U({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
650
+ ]),
651
+ key: "7"
652
+ } : void 0
653
+ ]), 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),
654
+ (n(), u("svg", {
655
+ ref_key: "svgRef",
656
+ ref: ze,
657
+ xmlns: v(Vt),
658
+ class: X({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
659
+ viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
660
+ style: N(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
661
+ }, [
662
+ he(v(ct)),
663
+ a.$slots["chart-background"] ? (n(), u("foreignObject", {
664
+ key: 0,
665
+ x: h.value.left,
666
+ y: h.value.top,
667
+ width: h.value.width,
668
+ height: h.value.height,
669
+ style: {
670
+ pointerEvents: "none"
671
+ }
672
+ }, [
673
+ g(a.$slots, "chart-background", {}, void 0, !0)
674
+ ], 8, ca)) : m("", !0),
675
+ (n(!0), u(A, null, I(f.value, (t, s) => (n(), u("g", va, [
676
+ _("line", {
677
+ x1: h.value.left + C.value * s + C.value / 2,
678
+ x2: h.value.left + C.value * s + C.value / 2,
679
+ y1: h.value.top,
680
+ y2: h.value.bottom,
681
+ stroke: e.value.style.chart.yAxis.stroke,
682
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth
683
+ }, null, 8, da),
684
+ e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
685
+ (n(!0), u(A, null, I(t.ticks, (o) => (n(), u("line", {
686
+ x1: o.x,
687
+ x2: o.x - 10,
688
+ y1: o.y,
689
+ y2: o.y,
690
+ stroke: e.value.style.chart.yAxis.stroke,
691
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth,
692
+ style: N(`opacity:${w.value && !p.value.showTooltip ? 0.2 : 1}`)
693
+ }, null, 12, ha))), 256)),
694
+ v(R) ? m("", !0) : (n(), u("g", pa, [
695
+ (n(!0), u(A, null, I(t.ticks, (o) => (n(), u("text", {
696
+ x: o.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
697
+ y: o.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
698
+ fill: e.value.style.chart.yAxis.labels.ticks.color,
699
+ "text-anchor": "end",
700
+ "font-size": c.value.ticksFontSize,
701
+ "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
702
+ style: N(`opacity:${w.value && !p.value.showTooltip ? 0.2 : 1}`)
703
+ }, B(Re({ value: o.value, index: s, datapoint: o })), 13, ma))), 256))
704
+ ]))
705
+ ], 64)) : m("", !0)
706
+ ]))), 256)),
707
+ e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
708
+ key: 1,
709
+ ref_key: "xAxisLabels",
710
+ ref: ae
711
+ }, [
712
+ (n(!0), u(A, null, I(f.value, (t, s) => (n(), u(A, null, [
713
+ String(t.name).includes(`
714
+ `) ? (n(), u("text", {
715
+ key: 1,
716
+ class: "vue-ui-parallel-coordinate-plot-x-label",
717
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
718
+ "font-size": c.value.axisNameFontSize,
719
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
720
+ "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
721
+ transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${j.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
722
+ innerHTML: v(jt)({
723
+ content: String(t.name),
724
+ fontSize: c.value.axisNameFontSize,
725
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
726
+ x: 0,
727
+ y: 0
728
+ })
729
+ }, null, 8, fa)) : (n(), u("text", {
730
+ key: 0,
731
+ class: "vue-ui-parallel-coordinate-plot-x-label",
732
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
733
+ "font-size": c.value.axisNameFontSize,
734
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
735
+ "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
736
+ transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${j.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
737
+ }, B(t.name), 9, ya))
738
+ ], 64))), 256))
739
+ ], 512)) : m("", !0),
740
+ (n(!0), u(A, null, I(ie.value, (t, s) => (n(), u("g", null, [
741
+ (n(!0), u(A, null, I(t.series, (o, r) => (n(), u("g", null, [
742
+ e.value.style.chart.plots.show ? (n(), u("g", ba, [
743
+ (n(!0), u(A, null, I(o.datapoints, (i, T) => (n(), F(oa, {
744
+ plot: { x: i.x, y: i.y },
745
+ color: t.color,
746
+ shape: t.shape,
747
+ radius: t.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
748
+ stroke: e.value.style.chart.backgroundColor,
749
+ strokeWidth: 0.5,
750
+ onMouseenter: (x) => J({
751
+ shape: t.shape,
752
+ serieName: t.name,
753
+ serie: o,
754
+ relativeIndex: r,
755
+ seriesIndex: o.seriesIndex,
756
+ S: s
757
+ }),
758
+ onMouseleave: (x) => q({ serie: o, shape: t.shape, S: s }),
759
+ style: N(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
760
+ onClick: () => K({ serie: o, shape: t.shape, S: s })
761
+ }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
762
+ p.value.showTooltip ? m("", !0) : (n(), u(A, { key: 0 }, [
763
+ w.value && w.value === o.id && o.datapoints.length ? (n(), u("text", {
764
+ key: 0,
765
+ x: o.datapoints[0].x - c.value.ticksFontSize,
766
+ y: o.datapoints[0].y + c.value.ticksFontSize / 3,
767
+ "text-anchor": "end",
768
+ "font-size": c.value.ticksFontSize,
769
+ fill: t.color,
770
+ "font-weight": "bold"
771
+ }, B(o.name), 9, ga)) : m("", !0)
772
+ ], 64)),
773
+ e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, I(o.datapoints, (i) => (n(), u("g", null, [
774
+ i.comment ? (n(), u("foreignObject", {
775
+ key: 0,
776
+ style: { overflow: "visible" },
777
+ height: "12",
778
+ width: e.value.style.chart.comments.width,
779
+ x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
780
+ y: i.y + e.value.style.chart.comments.offsetY + 6
781
+ }, [
782
+ _("div", ka, [
783
+ g(a.$slots, "plot-comment", {
784
+ plot: { ...i, color: t.color }
785
+ }, void 0, !0)
786
+ ])
787
+ ], 8, xa)) : m("", !0)
788
+ ]))), 256)) : m("", !0)
789
+ ])) : m("", !0),
790
+ !v(R) && (p.value.dataLabels.show || w.value && w.value === o.id) ? (n(!0), u(A, { key: 1 }, I(o.datapoints, (i, T) => (n(), u("text", {
791
+ x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
792
+ y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
793
+ fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : e.value.style.chart.yAxis.labels.datapoints.color,
794
+ "text-anchor": "start",
795
+ "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
796
+ class: X({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(R) }),
797
+ "font-size": c.value.datapointFontSize,
798
+ onMouseenter: (x) => J({
799
+ shape: t.shape,
800
+ serieName: t.name,
801
+ serie: o,
802
+ relativeIndex: r,
803
+ seriesIndex: o.seriesIndex,
804
+ S: s
805
+ }),
806
+ onMouseleave: (x) => q({ serie: o, shape: t.shape, S: s }),
807
+ onClick: () => K({ serie: o, shape: t.shape, S: s }),
808
+ style: N(`opacity:${w.value ? w.value === o.id ? 1 : 0.2 : 1}`)
809
+ }, B(Re({ value: i.value, index: T, datapoint: i })), 47, wa))), 256)) : m("", !0),
810
+ _("path", {
811
+ d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
812
+ stroke: t.color,
813
+ "stroke-width": e.value.style.chart.lines.strokeWidth,
814
+ fill: "none",
815
+ class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(R) }),
816
+ onMouseenter: (i) => J({
817
+ shape: t.shape,
818
+ serieName: t.name,
819
+ serie: o,
820
+ relativeIndex: r,
821
+ seriesIndex: o.seriesIndex,
822
+ S: s
823
+ }),
824
+ onMouseleave: (i) => q({ serie: o, shape: t.shape, S: s }),
825
+ onClick: () => K({ serie: o, shape: t.shape, S: s }),
826
+ style: N(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
827
+ }, null, 46, Ca),
828
+ p.value.showTooltip ? (n(), u("path", {
829
+ key: 2,
830
+ d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
831
+ stroke: "transparent",
832
+ "stroke-width": 12,
833
+ fill: "none",
834
+ class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(R) }),
835
+ onMouseenter: (i) => J({
836
+ shape: t.shape,
837
+ serieName: t.name,
838
+ serie: o,
839
+ relativeIndex: r,
840
+ seriesIndex: o.seriesIndex,
841
+ S: s
842
+ }),
843
+ onMouseleave: (i) => q({ serie: o, shape: t.shape, S: s }),
844
+ onClick: () => K({ serie: o, shape: t.shape, S: s }),
845
+ style: { opacity: "0" }
846
+ }, null, 42, Aa)) : m("", !0)
847
+ ]))), 256))
848
+ ]))), 256)),
849
+ g(a.$slots, "svg", { svg: h.value }, void 0, !0)
850
+ ], 14, ra)),
851
+ a.$slots.watermark ? (n(), u("div", $a, [
852
+ g(a.$slots, "watermark", W(U({ isPrinting: v(Fe) || v(_e) })), void 0, !0)
853
+ ])) : m("", !0),
854
+ _("div", {
855
+ id: `legend-bottom-${S.value}`
856
+ }, null, 8, Ta),
857
+ Ce.value ? (n(), F(Nt, {
858
+ key: 5,
859
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${S.value}` : `#legend-bottom-${S.value}`
860
+ }, [
861
+ _("div", {
862
+ ref_key: "chartLegend",
863
+ ref: fe
864
+ }, [
865
+ e.value.style.chart.legend.show && Y.value ? (n(), F(la, {
866
+ key: `legend_${ke.value}`,
867
+ legendSet: ft.value,
868
+ config: bt.value,
869
+ onClickMarker: l[0] || (l[0] = ({ legend: t }) => {
870
+ Se(t.id), He(t);
871
+ })
872
+ }, {
873
+ item: b(({ legend: t, index: s }) => [
874
+ _("div", {
875
+ onClick: (o) => {
876
+ t.segregate(), He(t);
877
+ },
878
+ style: N(`opacity:${M.value.includes(t.id) ? 0.5 : 1}`)
879
+ }, B(t.name), 13, za)
880
+ ]),
881
+ _: 1
882
+ }, 8, ["legendSet", "config"])) : g(a.$slots, "legend", {
883
+ key: 1,
884
+ legend: P.value
885
+ }, void 0, !0)
886
+ ], 512)
887
+ ], 8, ["to"])) : m("", !0),
888
+ a.$slots.source ? (n(), u("div", {
889
+ key: 6,
890
+ ref_key: "source",
891
+ ref: be,
892
+ dir: "auto"
893
+ }, [
894
+ g(a.$slots, "source", {}, void 0, !0)
895
+ ], 512)) : m("", !0),
896
+ he(v(ot), {
897
+ show: p.value.showTooltip && re.value,
898
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
899
+ color: e.value.style.chart.tooltip.color,
900
+ fontSize: e.value.style.chart.tooltip.fontSize,
901
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
902
+ borderColor: e.value.style.chart.tooltip.borderColor,
903
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
904
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
905
+ position: e.value.style.chart.tooltip.position,
906
+ offsetY: e.value.style.chart.tooltip.offsetY,
907
+ parent: z.value,
908
+ content: ce.value,
909
+ isFullscreen: D.value,
910
+ isCustom: v(Je)(e.value.style.chart.tooltip.customFormat),
911
+ smooth: e.value.style.chart.tooltip.smooth,
912
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
913
+ }, {
914
+ "tooltip-before": b(() => [
915
+ g(a.$slots, "tooltip-before", W(U({ ...ue.value })), void 0, !0)
916
+ ]),
917
+ "tooltip-after": b(() => [
918
+ g(a.$slots, "tooltip-after", W(U({ ...ue.value })), void 0, !0)
919
+ ]),
920
+ _: 3
921
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
922
+ Y.value ? (n(), F(Ft(G.value.component), _t({ key: 7 }, G.value.props, {
923
+ ref_key: "tableUnit",
924
+ ref: V,
925
+ onClose: l[3] || (l[3] = (t) => p.value.showTable = !1)
926
+ }), Ge({
927
+ content: b(() => [
928
+ (n(), F(v(it), {
929
+ key: `table_${we.value}`,
930
+ colNames: H.value.colNames,
931
+ head: H.value.head,
932
+ body: H.value.body,
933
+ config: H.value.config,
934
+ title: e.value.table.useDialog ? "" : G.value.title,
935
+ withCloseButton: !e.value.table.useDialog,
936
+ onClose: l[2] || (l[2] = (t) => p.value.showTable = !1)
937
+ }, {
938
+ th: b(({ th: t }) => [
939
+ _("div", { innerHTML: t }, null, 8, Ma)
940
+ ]),
941
+ td: b(({ td: t }) => [
942
+ Xe(B(t), 1)
943
+ ]),
944
+ _: 1
945
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
946
+ ]),
947
+ _: 2
948
+ }, [
949
+ e.value.table.useDialog ? {
950
+ name: "title",
951
+ fn: b(() => [
952
+ Xe(B(G.value.title), 1)
953
+ ]),
954
+ key: "0"
955
+ } : void 0,
956
+ e.value.table.useDialog ? {
957
+ name: "actions",
958
+ fn: b(() => [
959
+ _("button", {
960
+ tabindex: "0",
961
+ class: "vue-ui-user-options-button",
962
+ onClick: l[1] || (l[1] = (t) => ve(e.value.userOptions.callbacks.csv))
963
+ }, [
964
+ he(v(st), {
965
+ name: "excel",
966
+ stroke: G.value.props.color
967
+ }, null, 8, ["stroke"])
968
+ ])
969
+ ]),
970
+ key: "1"
971
+ } : void 0
972
+ ]), 1040)) : m("", !0),
973
+ v(R) ? (n(), F(Qt, { key: 8 })) : m("", !0)
974
+ ], 46, ia));
975
+ }
976
+ }, Va = /* @__PURE__ */ na(Na, [["__scopeId", "data-v-84b4d1f2"]]);
977
+ export {
978
+ Va as default
979
+ };