vue-data-ui 2.3.2 → 2.3.4

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 (148) hide show
  1. package/dist/Arrow-B6gJebT9.js +101 -0
  2. package/dist/Arrow-C5yj6zwY.cjs +1 -0
  3. package/dist/BaseIcon-7_g11dRj.js +174 -0
  4. package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
  5. package/dist/DataTable-CwaOlAsy.js +127 -0
  6. package/dist/DataTable-Rm9II-m2.cjs +1 -0
  7. package/dist/Legend-CxvJTjEm.js +62 -0
  8. package/dist/Legend-D59FIuMs.cjs +1 -0
  9. package/dist/Shape-CVItL3vh.cjs +1 -0
  10. package/dist/Shape-CjLV0scA.js +107 -0
  11. package/dist/Slicer-Bxg5niHl.js +156 -0
  12. package/dist/Slicer-Cdss5Rus.cjs +1 -0
  13. package/dist/Title-2iks1ziC.js +46 -0
  14. package/dist/Title-Bb-A5OSV.cjs +1 -0
  15. package/dist/Tooltip-C3phqKuU.js +94 -0
  16. package/dist/Tooltip-C_UE6y-E.cjs +1 -0
  17. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  18. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  19. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  20. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  21. package/dist/index-p5gfZSvB.cjs +4 -0
  22. package/dist/index-uOtklCCx.js +10268 -0
  23. package/dist/{index.es-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
  24. package/dist/{index.es-w_iDpZ-o.cjs → index.es-uyeSCnWE.cjs} +1 -1
  25. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  26. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  27. package/dist/pdf-97UbtKC2.js +44 -0
  28. package/dist/pdf-Cz3729tZ.cjs +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/useNestedProp-2kIU-7On.cjs +1 -0
  31. package/dist/useNestedProp-BgWkUab_.js +13 -0
  32. package/dist/usePrinter-B6xQCyL-.js +464 -0
  33. package/dist/usePrinter-fZlsJid8.cjs +1 -0
  34. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  35. package/dist/useResponsive-NZB-WLRF.js +187 -0
  36. package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
  37. package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +62 -61
  40. package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
  41. package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
  42. package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
  43. package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
  44. package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
  45. package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
  46. package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
  47. package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
  48. package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
  49. package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
  50. package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
  51. package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
  52. package/dist/vue-ui-cursor-C96IChA3.js +229 -0
  53. package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
  54. package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
  55. package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
  56. package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
  57. package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
  58. package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
  59. package/dist/vue-ui-donut-B9iXisHK.js +743 -0
  60. package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
  61. package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
  62. package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
  63. package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
  64. package/dist/vue-ui-flow-BTivYoGd.js +454 -0
  65. package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
  66. package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
  67. package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
  68. package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
  69. package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
  70. package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
  71. package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
  72. package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
  73. package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
  74. package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
  75. package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
  76. package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
  77. package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
  78. package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
  80. package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
  81. package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
  82. package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
  83. package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
  84. package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
  85. package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
  86. package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
  87. package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
  88. package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
  89. package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
  90. package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
  91. package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
  92. package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
  93. package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
  94. package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
  95. package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
  96. package/dist/vue-ui-rings-CsUngX_F.js +510 -0
  97. package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
  98. package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
  99. package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
  100. package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
  101. package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
  102. package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
  103. package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
  104. package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
  105. package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
  106. package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
  107. package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
  108. package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
  109. package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
  110. package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
  111. package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
  112. package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
  113. package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
  114. package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
  115. package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
  116. package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
  117. package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
  118. package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
  119. package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
  120. package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
  121. package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
  122. package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
  124. package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
  125. package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
  126. package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
  127. package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
  128. package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
  129. package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
  130. package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
  131. package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
  132. package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
  133. package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
  134. package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
  135. package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
  136. package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
  137. package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
  138. package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
  139. package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
  140. package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
  141. package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
  142. package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
  143. package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
  144. package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
  145. package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
  146. package/package.json +1 -1
  147. package/dist/index-C6KVJkgd.cjs +0 -843
  148. package/dist/index-bDBuMYfe.js +0 -57303
@@ -0,0 +1,651 @@
1
+ import { computed as y, ref as f, onMounted as Ie, onBeforeUnmount as Ne, openBlock as u, createElementBlock as r, normalizeClass as E, normalizeStyle as _, createVNode as q, createCommentVNode as g, createBlock as D, unref as N, createSlots as Pe, withCtx as b, renderSlot as x, normalizeProps as K, guardReactiveProps as J, Fragment as C, renderList as T, createElementVNode as A, toDisplayString as P, createTextVNode as Le } from "vue";
2
+ import { u as Se, c as Q, t as Oe, a as De, p as j, o as We, e as pe, g as Be, b as Ee, d as je, z as Re, K as Ue, L as Ve, M as Ge, X as He, v as me, f as ye, w as Xe, n as Ye, q as qe, B as R } from "./index-uOtklCCx.js";
3
+ import { t as Ke, u as Je } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as Qe } from "./Title-2iks1ziC.js";
5
+ import { L as Ze } from "./Legend-CxvJTjEm.js";
6
+ import { _ as et } from "./Tooltip-C3phqKuU.js";
7
+ import { _ as tt } from "./Shape-CjLV0scA.js";
8
+ import { u as at, U as lt } from "./usePrinter-B6xQCyL-.js";
9
+ import { D as ot } from "./DataTable-CwaOlAsy.js";
10
+ import st from "./vue-ui-accordion-HJPf7My0.js";
11
+ import nt from "./vue-ui-skeleton-BM9rwmxY.js";
12
+ import { u as fe } from "./useNestedProp-BgWkUab_.js";
13
+ import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events": "none" } }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dt = ["x", "y", "fill", "font-size", "font-weight"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pt = ["x", "y", "fill", "font-size", "font-weight"], mt = { key: 0 }, yt = ["x", "y", "font-size", "fill"], ft = ["width", "x", "y"], gt = { style: { width: "100%" } }, bt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], xt = ["d", "stroke", "stroke-width", "onMouseenter"], kt = ["onClick"], Ct = ["innerHTML"], wt = {
15
+ __name: "vue-ui-parallel-coordinate-plot",
16
+ props: {
17
+ config: {
18
+ type: Object,
19
+ default() {
20
+ return {};
21
+ }
22
+ },
23
+ dataset: {
24
+ type: Array,
25
+ default() {
26
+ return [];
27
+ }
28
+ }
29
+ },
30
+ emits: ["selectLegend", "selectDatapoint"],
31
+ setup(ge, { expose: be, emit: Z }) {
32
+ const M = ge, { vue_ui_parallel_coordinate_plot: xe } = Se(), F = y({
33
+ get() {
34
+ return !!M.dataset && M.dataset.length;
35
+ },
36
+ set(a) {
37
+ return a;
38
+ }
39
+ }), ee = f(0), L = f(null), te = f(null), ae = f(null), U = f(Q()), S = f(!1);
40
+ function ke(a) {
41
+ S.value = a, ee.value += 1;
42
+ }
43
+ const e = y(() => {
44
+ const a = fe({
45
+ userConfig: M.config,
46
+ defaultConfig: xe
47
+ });
48
+ return a.theme ? {
49
+ ...fe({
50
+ userConfig: Oe.vue_ui_parallel_coordinate_plot[a.theme] || M.config,
51
+ defaultConfig: a
52
+ }),
53
+ customPalette: De[a.theme] || j
54
+ } : a;
55
+ }), W = f(null);
56
+ Ie(() => {
57
+ if (We(M.dataset) ? pe({
58
+ componentName: "VueUiParallelCoordinatePlot",
59
+ type: "dataset"
60
+ }) : M.dataset.forEach((a, l) => {
61
+ Be({
62
+ datasetObject: a,
63
+ requiredAttributes: ["name", "series"]
64
+ }).forEach((t) => {
65
+ F.value = !1, pe({
66
+ componentName: "VueUiParallelCoordinatePlot",
67
+ type: "datasetSerieAttribute",
68
+ property: t,
69
+ index: l
70
+ });
71
+ });
72
+ }), e.value.responsive) {
73
+ const a = Ke(() => {
74
+ const { width: l, height: t } = Je({
75
+ chart: L.value,
76
+ title: e.value.style.chart.title.text ? te.value : null,
77
+ legend: e.value.style.chart.legend.show ? ae.value : null
78
+ });
79
+ c.value.width = l, c.value.height = t, c.value.plotSize = R({
80
+ relator: Math.min(l, t),
81
+ adjuster: 600,
82
+ source: e.value.style.chart.plots.radius,
83
+ threshold: 2,
84
+ fallback: 2
85
+ }), c.value.ticksFontSize = R({
86
+ relator: Math.min(l, t),
87
+ adjuster: 600,
88
+ source: e.value.style.chart.yAxis.labels.ticks.fontSize,
89
+ threshold: 10,
90
+ fallback: 10
91
+ }), c.value.datapointFontSize = R({
92
+ relator: Math.min(l, t),
93
+ adjuster: 600,
94
+ source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
95
+ threshold: 10,
96
+ fallback: 10
97
+ }), c.value.axisNameFontSize = R({
98
+ relator: Math.min(l, t),
99
+ adjuster: 600,
100
+ source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
101
+ threshold: 12,
102
+ fallback: 12
103
+ });
104
+ });
105
+ W.value = new ResizeObserver(a), W.value.observe(L.value.parentNode);
106
+ }
107
+ }), Ne(() => {
108
+ W.value && W.value.disconnect();
109
+ });
110
+ const { isPrinting: Ce, isImaging: we, generatePdf: le, generateImage: oe } = at({
111
+ elementId: `pcp_${U.value}`,
112
+ fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
113
+ }), c = f({
114
+ height: e.value.style.chart.height,
115
+ width: e.value.style.chart.width,
116
+ plotSize: e.value.style.chart.plots.radius,
117
+ // ratio 100
118
+ ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
119
+ // ratio 42.85
120
+ datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
121
+ axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
122
+ }), v = y(() => {
123
+ const { top: a, right: l, bottom: t, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
124
+ return {
125
+ chartHeight: n,
126
+ chartWidth: s,
127
+ height: n - a - t,
128
+ width: s - o - l,
129
+ top: a,
130
+ left: o,
131
+ right: s - l,
132
+ bottom: n - t
133
+ };
134
+ }), $e = y(() => Ee(e.value.customPalette)), p = f({
135
+ dataLabels: {
136
+ show: e.value.style.chart.yAxis.labels.datapoints.show
137
+ },
138
+ showTable: e.value.table.show,
139
+ showTooltip: e.value.style.chart.tooltip.show
140
+ }), w = f([]);
141
+ function se(a) {
142
+ w.value.includes(a) ? w.value = w.value.filter((l) => l !== a) : w.value.push(a);
143
+ }
144
+ const z = y(() => M.dataset.map((a, l) => {
145
+ const t = je(a.color) || $e.value[l] || j[l] || j[l % j.length];
146
+ return {
147
+ ...a,
148
+ series: a.series.map((o) => ({
149
+ ...o,
150
+ id: Q(),
151
+ color: t
152
+ })),
153
+ seriesIndex: l,
154
+ color: t,
155
+ id: Q(),
156
+ shape: a.shape || "circle"
157
+ };
158
+ })), _e = y(() => z.value.map((a) => ({
159
+ ...a,
160
+ opacity: w.value.includes(a.id) ? 0.5 : 1,
161
+ segregate: () => se(a.id),
162
+ isSegregated: w.value.includes(a.id)
163
+ }))), ze = y(() => ({
164
+ cy: "pcp-div-legend",
165
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
166
+ color: e.value.style.chart.legend.color,
167
+ fontSize: e.value.style.chart.legend.fontSize,
168
+ paddingBottom: 12,
169
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
170
+ })), ne = y(() => Math.max(
171
+ ...z.value.filter((a) => !w.value.includes(a.id)).map((a) => Math.max(...a.series.flatMap((l) => l.values.length)))
172
+ )), k = y(() => v.value.width / ne.value), V = y(() => z.value.filter((a) => !w.value.includes(a.id))), h = y(() => {
173
+ let a = [];
174
+ for (let l = 0; l < ne.value; l += 1) {
175
+ const t = Math.min(...V.value.flatMap((m) => m.series.map((B) => B.values[l] || 0) || 0)), o = Math.max(...V.value.flatMap((m) => m.series.map((B) => B.values[l] || 0) || 0)), n = o === t ? t / 4 : t, s = o === t ? o * 2 : o, i = Re(n, s, e.value.style.chart.yAxis.scaleTicks), $ = i.ticks.map((m, B) => {
176
+ const Ae = i.min < 0 ? m + Math.abs(i.min) : m - Math.abs(i.min), Fe = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
177
+ return {
178
+ y: v.value.bottom - v.value.height * (Ae / Fe),
179
+ x: v.value.left + k.value * l + k.value / 2,
180
+ value: m
181
+ };
182
+ });
183
+ a.push({
184
+ scale: i,
185
+ ticks: $,
186
+ name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
187
+ });
188
+ }
189
+ return a;
190
+ }), G = y(() => V.value.map((a, l) => ({
191
+ ...a,
192
+ series: a.series.map((t, o) => ({
193
+ ...t,
194
+ datapoints: t.values.map((n, s) => {
195
+ const i = h.value[s].scale.min < 0 ? (n || 0) + Math.abs(h.value[s].scale.min) : (n || 0) - Math.abs(h.value[s].scale.min), $ = h.value[s].scale.min < 0 ? h.value[s].scale.max + Math.abs(h.value[s].scale.min) : h.value[s].scale.max - Math.abs(h.value[s].scale.min);
196
+ return {
197
+ name: t.name,
198
+ seriesName: a.name,
199
+ axisIndex: s,
200
+ datapointIndex: o,
201
+ seriesIndex: l,
202
+ value: n || 0,
203
+ x: v.value.left + k.value * s + k.value / 2,
204
+ y: v.value.bottom - v.value.height * (i / $),
205
+ comment: t.comments && t.comments[s] || ""
206
+ };
207
+ })
208
+ }))
209
+ })).map((a) => ({
210
+ ...a,
211
+ series: a.series.map((l) => {
212
+ const t = Ue(l.datapoints), o = Ve(l.datapoints, 0.12), n = Ge(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${t}`);
213
+ return {
214
+ ...l,
215
+ smoothPath: o,
216
+ straightPath: t,
217
+ pathLength: n
218
+ };
219
+ })
220
+ })));
221
+ function ue({ value: a, index: l }) {
222
+ return ye({
223
+ p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
224
+ v: a,
225
+ s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
226
+ r: e.value.style.chart.yAxis.labels.roundings[l] || 0
227
+ });
228
+ }
229
+ const d = f(null), H = f(null), O = f(!1), X = f("");
230
+ function Y({ shape: a, serieName: l, serie: t, relativeIndex: o, seriesIndex: n }) {
231
+ H.value = { serie: t, relativeIndex: o, seriesIndex: n, series: z.value, scales: h.value }, O.value = !0, d.value = t.id;
232
+ let s = "";
233
+ const i = e.value.style.chart.tooltip.customFormat;
234
+ me(i) && Xe(() => i({
235
+ serie: t,
236
+ seriesIndex: t.seriesIndex,
237
+ series: z.value,
238
+ config: e.value,
239
+ scales: h.value
240
+ })) ? X.value = i({
241
+ serie: t,
242
+ seriesIndex: t.seriesIndex,
243
+ series: z.value,
244
+ config: e.value,
245
+ scales: h.value
246
+ }) : (s += `<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>`, h.value.map(($) => $.name).forEach(($, m) => {
247
+ s += `
248
+ <div class="vue-ui-tooltip-item" style="text-align:left">
249
+ <span>${$}: </span>
250
+ <span>
251
+ ${ye({
252
+ p: e.value.style.chart.yAxis.labels.prefixes[m] || "",
253
+ v: t.datapoints[m].value,
254
+ s: e.value.style.chart.yAxis.labels.suffixes[m] || "",
255
+ r: e.value.style.chart.yAxis.labels.roundings[m] || ""
256
+ })}
257
+ </span>
258
+ </div>
259
+ `, e.value.style.chart.comments.showInTooltip && t.datapoints[m].comment && (s += `<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[m].comment}</div>`);
260
+ }), X.value = `<div>${s}</div>`);
261
+ }
262
+ function Te() {
263
+ return z.value;
264
+ }
265
+ const I = y(() => {
266
+ const a = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(h.value.map((n) => n.name)), l = G.value.flatMap((n, s) => n.series.map((i) => [n.name].concat([i.name]).concat(i.values))), t = {
267
+ th: {
268
+ backgroundColor: e.value.table.th.backgroundColor,
269
+ color: e.value.table.th.color,
270
+ outline: e.value.table.th.outline
271
+ },
272
+ td: {
273
+ backgroundColor: e.value.table.td.backgroundColor,
274
+ color: e.value.table.td.color,
275
+ outline: e.value.table.td.outline
276
+ },
277
+ breakpoint: e.value.table.responsiveBreakpoint
278
+ }, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(h.value.map((n) => n.name));
279
+ return {
280
+ body: l,
281
+ head: a,
282
+ config: t,
283
+ colNames: o
284
+ };
285
+ }), ie = y(() => G.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
286
+ head: I.value.head,
287
+ body: I.value.body
288
+ });
289
+ function re() {
290
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ie.value.head, t = ie.value.body, o = a.concat([l]).concat(t), n = Ye(o);
291
+ qe({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
292
+ }
293
+ function Me(a) {
294
+ Z("selectDatapoint", a);
295
+ }
296
+ function ce(a) {
297
+ Z("selectLegend", {
298
+ ...a,
299
+ isSegregated: !a.isSegregated,
300
+ opacity: a.isSegregated ? 1 : 0.5
301
+ });
302
+ }
303
+ function ve() {
304
+ p.value.showTable = !p.value.showTable;
305
+ }
306
+ function de() {
307
+ p.value.dataLabels.show = !p.value.dataLabels.show;
308
+ }
309
+ function he() {
310
+ p.value.showTooltip = !p.value.showTooltip;
311
+ }
312
+ return be({
313
+ getData: Te,
314
+ generateCsv: re,
315
+ generatePdf: le,
316
+ generateImage: oe,
317
+ toggleTable: ve,
318
+ toggleLabels: de,
319
+ toggleTooltip: he
320
+ }), (a, l) => (u(), r("div", {
321
+ ref_key: "pcpChart",
322
+ ref: L,
323
+ class: E(`vue-ui-pcp ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
324
+ style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
325
+ id: `pcp_${U.value}`
326
+ }, [
327
+ e.value.style.chart.title.text ? (u(), r("div", {
328
+ key: 0,
329
+ ref_key: "chartTitle",
330
+ ref: te,
331
+ style: _(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
332
+ }, [
333
+ q(Qe, {
334
+ config: {
335
+ title: {
336
+ cy: "pcp-div-title",
337
+ ...e.value.style.chart.title
338
+ },
339
+ subtitle: {
340
+ cy: "pcp-div-subtitle",
341
+ ...e.value.style.chart.title.subtitle
342
+ }
343
+ }
344
+ }, null, 8, ["config"])
345
+ ], 4)) : g("", !0),
346
+ e.value.userOptions.show && F.value ? (u(), D(lt, {
347
+ ref: "details",
348
+ key: `user_options_${ee.value}`,
349
+ backgroundColor: e.value.style.chart.backgroundColor,
350
+ color: e.value.style.chart.color,
351
+ isPrinting: N(Ce),
352
+ isImaging: N(we),
353
+ uid: U.value,
354
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
355
+ hasPdf: e.value.userOptions.buttons.pdf,
356
+ hasXls: e.value.userOptions.buttons.csv,
357
+ hasImg: e.value.userOptions.buttons.img,
358
+ hasTable: e.value.userOptions.buttons.table,
359
+ hasLabel: e.value.userOptions.buttons.labels,
360
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
361
+ isFullscreen: S.value,
362
+ isTooltip: p.value.showTooltip,
363
+ titles: { ...e.value.userOptions.buttonTitles },
364
+ chartElement: L.value,
365
+ onToggleFullscreen: ke,
366
+ onGeneratePdf: N(le),
367
+ onGenerateCsv: re,
368
+ onGenerateImage: N(oe),
369
+ onToggleTable: ve,
370
+ onToggleLabels: de,
371
+ onToggleTooltip: he
372
+ }, Pe({ _: 2 }, [
373
+ a.$slots.optionPdf ? {
374
+ name: "optionPdf",
375
+ fn: b(() => [
376
+ x(a.$slots, "optionPdf", {}, void 0, !0)
377
+ ]),
378
+ key: "0"
379
+ } : void 0,
380
+ a.$slots.optionCsv ? {
381
+ name: "optionCsv",
382
+ fn: b(() => [
383
+ x(a.$slots, "optionCsv", {}, void 0, !0)
384
+ ]),
385
+ key: "1"
386
+ } : void 0,
387
+ a.$slots.optionImg ? {
388
+ name: "optionImg",
389
+ fn: b(() => [
390
+ x(a.$slots, "optionImg", {}, void 0, !0)
391
+ ]),
392
+ key: "2"
393
+ } : void 0,
394
+ a.$slots.optionTable ? {
395
+ name: "optionTable",
396
+ fn: b(() => [
397
+ x(a.$slots, "optionTable", {}, void 0, !0)
398
+ ]),
399
+ key: "3"
400
+ } : void 0,
401
+ a.$slots.optionLabels ? {
402
+ name: "optionLabels",
403
+ fn: b(() => [
404
+ x(a.$slots, "optionLabels", {}, void 0, !0)
405
+ ]),
406
+ key: "4"
407
+ } : void 0,
408
+ a.$slots.optionFullscreen ? {
409
+ name: "optionFullscreen",
410
+ fn: b(({ toggleFullscreen: t, isFullscreen: o }) => [
411
+ x(a.$slots, "optionFullscreen", K(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
412
+ ]),
413
+ key: "5"
414
+ } : void 0
415
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
416
+ F.value ? (u(), r("svg", {
417
+ key: 2,
418
+ xmlns: N(He),
419
+ class: E({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
420
+ viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
421
+ style: _(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
422
+ }, [
423
+ (u(!0), r(C, null, T(h.value, (t, o) => (u(), r("g", ct, [
424
+ A("line", {
425
+ x1: v.value.left + k.value * o + k.value / 2,
426
+ x2: v.value.left + k.value * o + k.value / 2,
427
+ y1: v.value.top,
428
+ y2: v.value.bottom,
429
+ stroke: e.value.style.chart.yAxis.stroke,
430
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth
431
+ }, null, 8, vt),
432
+ A("text", {
433
+ x: v.value.left + k.value * o + k.value / 2,
434
+ y: v.value.top - 24,
435
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
436
+ "font-size": c.value.axisNameFontSize,
437
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
438
+ "text-anchor": "middle"
439
+ }, P(t.name), 9, dt),
440
+ e.value.style.chart.yAxis.labels.ticks.show ? (u(), r(C, { key: 0 }, [
441
+ (u(!0), r(C, null, T(t.ticks, (n) => (u(), r("line", {
442
+ x1: n.x,
443
+ x2: n.x - 10,
444
+ y1: n.y,
445
+ y2: n.y,
446
+ stroke: e.value.style.chart.yAxis.stroke,
447
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth,
448
+ style: _(`opacity:${d.value && !p.value.showTooltip ? 0.2 : 1}`)
449
+ }, null, 12, ht))), 256)),
450
+ (u(!0), r(C, null, T(t.ticks, (n) => (u(), r("text", {
451
+ x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
452
+ y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
453
+ fill: e.value.style.chart.yAxis.labels.ticks.color,
454
+ "text-anchor": "end",
455
+ "font-size": c.value.ticksFontSize,
456
+ "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
457
+ style: _(`opacity:${d.value && !p.value.showTooltip ? 0.2 : 1}`)
458
+ }, P(ue({ value: n.value, index: o })), 13, pt))), 256))
459
+ ], 64)) : g("", !0)
460
+ ]))), 256)),
461
+ (u(!0), r(C, null, T(G.value, (t) => (u(), r("g", null, [
462
+ (u(!0), r(C, null, T(t.series, (o, n) => (u(), r("g", null, [
463
+ e.value.style.chart.plots.show ? (u(), r("g", mt, [
464
+ (u(!0), r(C, null, T(o.datapoints, (s) => (u(), D(tt, {
465
+ plot: { x: s.x, y: s.y },
466
+ color: t.color,
467
+ shape: t.shape,
468
+ radius: t.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
469
+ stroke: e.value.style.chart.backgroundColor,
470
+ strokeWidth: 0.5,
471
+ onMouseenter: (i) => Y({
472
+ shape: t.shape,
473
+ serieName: t.name,
474
+ serie: o,
475
+ relativeIndex: n,
476
+ seriesIndex: o.seriesIndex
477
+ }),
478
+ onMouseleave: l[0] || (l[0] = (i) => {
479
+ d.value = null, O.value = !1;
480
+ }),
481
+ style: _(`opacity:${d.value ? d.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
482
+ onClick: () => Me(s)
483
+ }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
484
+ p.value.showTooltip ? g("", !0) : (u(), r(C, { key: 0 }, [
485
+ d.value && d.value === o.id && o.datapoints.length ? (u(), r("text", {
486
+ key: 0,
487
+ x: o.datapoints[0].x - c.value.ticksFontSize,
488
+ y: o.datapoints[0].y + c.value.ticksFontSize / 3,
489
+ "text-anchor": "end",
490
+ "font-size": c.value.ticksFontSize,
491
+ fill: t.color,
492
+ "font-weight": "bold"
493
+ }, P(o.name), 9, yt)) : g("", !0)
494
+ ], 64)),
495
+ e.value.style.chart.comments.show ? (u(!0), r(C, { key: 1 }, T(o.datapoints, (s) => (u(), r("g", null, [
496
+ s.comment ? (u(), r("foreignObject", {
497
+ key: 0,
498
+ style: { overflow: "visible" },
499
+ height: "12",
500
+ width: e.value.style.chart.comments.width,
501
+ x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
502
+ y: s.y + e.value.style.chart.comments.offsetY + 6
503
+ }, [
504
+ A("div", gt, [
505
+ x(a.$slots, "plot-comment", {
506
+ plot: { ...s, color: t.color }
507
+ }, void 0, !0)
508
+ ])
509
+ ], 8, ft)) : g("", !0)
510
+ ]))), 256)) : g("", !0)
511
+ ])) : g("", !0),
512
+ p.value.dataLabels.show || d.value && d.value === o.id ? (u(!0), r(C, { key: 1 }, T(o.datapoints, (s, i) => (u(), r("text", {
513
+ x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
514
+ y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
515
+ fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : e.value.style.chart.yAxis.labels.datapoints.color,
516
+ "text-anchor": "start",
517
+ "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
518
+ class: E({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
519
+ "font-size": c.value.datapointFontSize,
520
+ onMouseenter: ($) => Y({
521
+ shape: t.shape,
522
+ serieName: t.name,
523
+ serie: o,
524
+ relativeIndex: n,
525
+ seriesIndex: o.seriesIndex
526
+ }),
527
+ onMouseleave: l[1] || (l[1] = ($) => {
528
+ d.value = null, O.value = !1;
529
+ }),
530
+ style: _(`opacity:${d.value ? d.value === o.id ? 1 : 0.2 : 1}`)
531
+ }, P(ue({ value: s.value, index: i })), 45, bt))), 256)) : g("", !0),
532
+ A("path", {
533
+ d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
534
+ stroke: t.color,
535
+ "stroke-width": e.value.style.chart.lines.strokeWidth,
536
+ fill: "none",
537
+ class: E({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
538
+ onMouseenter: (s) => Y({
539
+ shape: t.shape,
540
+ serieName: t.name,
541
+ serie: o,
542
+ relativeIndex: n,
543
+ seriesIndex: o.seriesIndex
544
+ }),
545
+ onMouseleave: l[2] || (l[2] = (s) => {
546
+ d.value = null, O.value = !1;
547
+ }),
548
+ style: _(`opacity:${d.value ? d.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}`)
549
+ }, null, 46, xt)
550
+ ]))), 256))
551
+ ]))), 256)),
552
+ x(a.$slots, "svg", { svg: v.value }, void 0, !0)
553
+ ], 14, rt)) : g("", !0),
554
+ F.value ? g("", !0) : (u(), D(nt, {
555
+ key: 3,
556
+ config: {
557
+ type: "parallelCoordinatePlot",
558
+ style: {
559
+ backgroundColor: e.value.style.chart.backgroundColor
560
+ }
561
+ }
562
+ }, null, 8, ["config"])),
563
+ A("div", {
564
+ ref_key: "chartLegend",
565
+ ref: ae
566
+ }, [
567
+ e.value.style.chart.legend.show && F.value ? (u(), D(Ze, {
568
+ key: 0,
569
+ legendSet: _e.value,
570
+ config: ze.value,
571
+ onClickMarker: l[3] || (l[3] = ({ legend: t }) => {
572
+ se(t.id), ce(t);
573
+ })
574
+ }, {
575
+ item: b(({ legend: t, index: o }) => [
576
+ A("div", {
577
+ onClick: (n) => {
578
+ t.segregate(), ce(t);
579
+ },
580
+ style: _(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
581
+ }, P(t.name), 13, kt)
582
+ ]),
583
+ _: 1
584
+ }, 8, ["legendSet", "config"])) : x(a.$slots, "legend", {
585
+ key: 1,
586
+ legend: z.value
587
+ }, void 0, !0)
588
+ ], 512),
589
+ q(et, {
590
+ show: p.value.showTooltip && O.value,
591
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
592
+ color: e.value.style.chart.tooltip.color,
593
+ fontSize: e.value.style.chart.tooltip.fontSize,
594
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
595
+ borderColor: e.value.style.chart.tooltip.borderColor,
596
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
597
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
598
+ parent: L.value,
599
+ content: X.value,
600
+ isCustom: N(me)(e.value.style.chart.tooltip.customFormat)
601
+ }, {
602
+ "tooltip-before": b(() => [
603
+ x(a.$slots, "tooltip-before", K(J({ ...H.value })), void 0, !0)
604
+ ]),
605
+ "tooltip-after": b(() => [
606
+ x(a.$slots, "tooltip-after", K(J({ ...H.value })), void 0, !0)
607
+ ]),
608
+ _: 3
609
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "parent", "content", "isCustom"]),
610
+ F.value ? (u(), D(st, {
611
+ key: 4,
612
+ hideDetails: "",
613
+ config: {
614
+ open: p.value.showTable,
615
+ maxHeight: 1e4,
616
+ body: {
617
+ backgroundColor: e.value.style.chart.backgroundColor,
618
+ color: e.value.style.chart.color
619
+ },
620
+ head: {
621
+ backgroundColor: e.value.style.chart.backgroundColor,
622
+ color: e.value.style.chart.color
623
+ }
624
+ }
625
+ }, {
626
+ content: b(() => [
627
+ q(ot, {
628
+ colNames: I.value.colNames,
629
+ head: I.value.head,
630
+ body: I.value.body,
631
+ config: I.value.config,
632
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
633
+ onClose: l[4] || (l[4] = (t) => p.value.showTable = !1)
634
+ }, {
635
+ th: b(({ th: t }) => [
636
+ A("div", { innerHTML: t }, null, 8, Ct)
637
+ ]),
638
+ td: b(({ td: t }) => [
639
+ Le(P(t), 1)
640
+ ]),
641
+ _: 1
642
+ }, 8, ["colNames", "head", "body", "config", "title"])
643
+ ]),
644
+ _: 1
645
+ }, 8, ["config"])) : g("", !0)
646
+ ], 14, it));
647
+ }
648
+ }, Dt = /* @__PURE__ */ ut(wt, [["__scopeId", "data-v-89b826a8"]]);
649
+ export {
650
+ Dt as default
651
+ };