vue-data-ui 3.4.9 → 3.5.1

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 (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -0,0 +1,1051 @@
1
+ import { defineAsyncComponent as D, computed as f, ref as d, toRefs as Ot, watch as ee, shallowRef as Qe, onMounted as Dt, onBeforeUnmount as Rt, watchEffect as Bt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as I, normalizeClass as X, createBlock as _, createCommentVNode as g, createElementVNode as P, createVNode as fe, withCtx as h, renderSlot as p, normalizeProps as T, guardReactiveProps as z, createSlots as Je, Fragment as A, renderList as L, toDisplayString as H, Teleport as Et, resolveDynamicComponent as Ht, mergeProps as Ut, createTextVNode as Ke, nextTick as Wt } from "vue";
2
+ import { c as ye, t as Vt, b as Gt, p as te, o as Ze, f as et, g as jt, e as Xt, h as Yt, m as qt, B as Qt, z as Jt, a9 as Kt, X as Zt, M as ea, G as tt, R as ae, P as ta, Q as aa, a as at, d as lt, H as la } from "./lib-C_mNZmhD.js";
3
+ import { t as ot, u as oa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as sa, a as st } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as na } from "./usePrinter-DTzqpYKF.js";
6
+ import { u as ia, B as ua } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as ra } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as va } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as da } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import { t as ha } from "./themes-AUNCOb2G.js";
12
+ import pa from "./Title-isbiM8i8.js";
13
+ import ma from "./Legend-G6GMcdAc.js";
14
+ import { _ as fa } from "./Shape-CNXKB8O0.js";
15
+ import ya from "./img-BecE5qXd.js";
16
+ import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], Ca = { style: { "pointer-events": "none" } }, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { key: 0 }, za = ["x", "y", "fill", "font-size", "font-weight"], Fa = ["fill", "font-size", "font-weight", "text-anchor", "transform"], Ma = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], Na = { key: 0 }, Sa = ["x", "y", "font-size", "fill"], Ia = ["width", "x", "y"], _a = { style: { width: "100%" } }, Pa = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Oa = ["d", "onMouseenter", "onMouseleave", "onClick"], Da = {
18
+ key: 4,
19
+ class: "vue-data-ui-watermark"
20
+ }, Ra = ["id"], Ba = ["onClick"], Ea = ["innerHTML"], Ha = {
21
+ __name: "vue-ui-parallel-coordinate-plot",
22
+ props: {
23
+ config: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ },
29
+ dataset: {
30
+ type: Array,
31
+ default() {
32
+ return [];
33
+ }
34
+ }
35
+ },
36
+ emits: ["selectLegend", "selectDatapoint"],
37
+ setup(nt, { expose: it, emit: ut }) {
38
+ const rt = D(() => import("./Tooltip-oWCO1HKy.js")), ct = D(() => import("./BaseIcon-BmMbm4d0.js")), vt = D(() => import("./vue-ui-accordion-CqhVCfc2.js")), dt = D(() => import("./DataTable-BT7VF2ua.js")), ht = D(() => import("./PenAndPaper-SZQIAgkg.js")), pt = D(() => import("./UserOptions-CGnQt6Fd.js")), mt = D(() => import("./PackageVersion-DQvyATVa.js")), ft = D(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_parallel_coordinate_plot: yt } = sa(), F = nt, Y = f({
39
+ get() {
40
+ return !!F.dataset && F.dataset.length;
41
+ },
42
+ set(t) {
43
+ return t;
44
+ }
45
+ }), ge = d(0), S = d(null), be = d(null), xe = d(null), ke = d(null), we = d(null), Ce = d(0), Ae = d(0), $e = d(0), Te = d(!1), V = d(null), le = d(null), oe = d(null), R = d(ye()), B = d(!1);
46
+ function ze(t) {
47
+ B.value = t, ge.value += 1;
48
+ }
49
+ const e = d(ue()), { loading: E, FINAL_DATASET: gt, manualLoading: se } = ia({
50
+ ...Ot(F),
51
+ FINAL_CONFIG: e,
52
+ prepareConfig: ue,
53
+ callback: () => {
54
+ Promise.resolve().then(async () => {
55
+ await Wt(), y.value.showTable = e.value.table.show;
56
+ });
57
+ },
58
+ skeletonDataset: [
59
+ {
60
+ name: "",
61
+ shape: "circle",
62
+ color: "transparent",
63
+ series: [
64
+ {
65
+ name: "",
66
+ values: [1, 10, 100, 1e3]
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ name: "",
72
+ shape: "circle",
73
+ color: "#CACACA",
74
+ series: [
75
+ {
76
+ name: "",
77
+ values: [0.2, 3, 50, 800]
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ name: "",
83
+ shape: "circle",
84
+ color: "transparent",
85
+ series: [
86
+ {
87
+ name: "",
88
+ values: [0, 0, 0, 0]
89
+ }
90
+ ]
91
+ }
92
+ ],
93
+ skeletonConfig: Vt({
94
+ defaultConfig: e.value,
95
+ userConfig: {
96
+ useCssAnimation: !1,
97
+ userOptions: { show: !1 },
98
+ table: { show: !1 },
99
+ style: {
100
+ chart: {
101
+ backgroundColor: "#99999930",
102
+ legend: {
103
+ show: !0,
104
+ backgroundColor: "transparent"
105
+ },
106
+ yAxis: {
107
+ stroke: "#6A6A6A",
108
+ labels: {
109
+ showAxisNames: !1,
110
+ axisNames: [],
111
+ ticks: {
112
+ color: "#6A6A6A"
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ })
120
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: Fe, keepUserOptionState: Me } = ca({ config: e.value }), { svgRef: ie } = va({ config: e.value.style.chart.title });
121
+ function ue() {
122
+ const t = st({
123
+ userConfig: F.config,
124
+ defaultConfig: yt
125
+ });
126
+ return t.theme ? {
127
+ ...st({
128
+ userConfig: ha.vue_ui_parallel_coordinate_plot[t.theme] || F.config,
129
+ defaultConfig: t
130
+ }),
131
+ customPalette: Gt[t.theme] || te
132
+ } : t;
133
+ }
134
+ ee(() => F.config, (t) => {
135
+ E.value || (e.value = ue()), ne.value = !e.value.userOptions.showOnChartHover, Se(), Ce.value += 1, $e.value += 1, Ae.value += 1, y.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
136
+ }, { deep: !0 }), ee(() => F.dataset, (t) => {
137
+ Array.isArray(t) && t.length > 0 && (se.value = !1);
138
+ }, { deep: !0 });
139
+ const O = Qe(null), U = Qe(null);
140
+ Dt(() => {
141
+ Te.value = !0, Se();
142
+ });
143
+ const Ne = f(() => !!e.value.debug);
144
+ function Se() {
145
+ if (Ze(F.dataset) ? (et({
146
+ componentName: "VueUiParallelCoordinatePlot",
147
+ type: "dataset",
148
+ debug: Ne.value
149
+ }), se.value = !0) : F.dataset.forEach((t, l) => {
150
+ jt({
151
+ datasetObject: t,
152
+ requiredAttributes: ["name", "series"]
153
+ }).forEach((a) => {
154
+ Y.value = !1, et({
155
+ componentName: "VueUiParallelCoordinatePlot",
156
+ type: "datasetSerieAttribute",
157
+ property: a,
158
+ index: l,
159
+ debug: Ne.value
160
+ });
161
+ });
162
+ }), Ze(F.dataset) || (se.value = e.value.loading), e.value.responsive) {
163
+ const t = ot(() => {
164
+ const { width: l, height: a } = oa({
165
+ chart: S.value,
166
+ title: e.value.style.chart.title.text ? be.value : null,
167
+ legend: e.value.style.chart.legend.show ? xe.value : null,
168
+ source: ke.value,
169
+ noTitle: we.value
170
+ });
171
+ requestAnimationFrame(() => {
172
+ c.value.width = l, c.value.height = a - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = ae({
173
+ relator: Math.min(l, a),
174
+ adjuster: 600,
175
+ source: e.value.style.chart.plots.radius,
176
+ threshold: 2,
177
+ fallback: 2
178
+ }), c.value.ticksFontSize = ae({
179
+ relator: Math.min(l, a),
180
+ adjuster: 600,
181
+ source: e.value.style.chart.yAxis.labels.ticks.fontSize,
182
+ threshold: 10,
183
+ fallback: 10
184
+ }), c.value.datapointFontSize = ae({
185
+ relator: Math.min(l, a),
186
+ adjuster: 600,
187
+ source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
188
+ threshold: 10,
189
+ fallback: 10
190
+ }), c.value.axisNameFontSize = ae({
191
+ relator: Math.min(l, a),
192
+ adjuster: 600,
193
+ source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
194
+ threshold: 12,
195
+ fallback: 12
196
+ })) : (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);
197
+ });
198
+ });
199
+ O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect()), O.value = new ResizeObserver(t), U.value = S.value.parentNode, O.value.observe(U.value);
200
+ }
201
+ }
202
+ Rt(() => {
203
+ O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect());
204
+ });
205
+ const { isPrinting: Ie, isImaging: _e, generatePdf: Pe, generateImage: Le } = na({
206
+ elementId: `pcp_${R.value}`,
207
+ fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
208
+ options: e.value.userOptions.print
209
+ }), bt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
210
+ height: e.value.style.chart.height,
211
+ width: e.value.style.chart.width,
212
+ plotSize: e.value.style.chart.plots.radius,
213
+ // ratio 100
214
+ ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
215
+ // ratio 42.85
216
+ datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
217
+ axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
218
+ }), Oe = f(() => c.value.width), De = f(() => c.value.height), G = d(0), xt = ot((t) => {
219
+ G.value = t;
220
+ }, 100);
221
+ Bt((t) => {
222
+ const l = oe.value;
223
+ if (!l) return;
224
+ const a = new ResizeObserver((s) => {
225
+ xt(s[0].contentRect.height);
226
+ });
227
+ a.observe(l), t(() => a.disconnect());
228
+ });
229
+ const m = f(() => {
230
+ const { top: t, right: l, bottom: a, left: s } = e.value.style.chart.padding, o = De.value, r = Oe.value;
231
+ return {
232
+ chartHeight: Math.max(1e-3, o),
233
+ chartWidth: Math.max(1e-3, r),
234
+ height: Math.max(1e-3, o - t - a - G.value - c.value.datapointFontSize * 2),
235
+ width: Math.max(1e-3, r - s - l),
236
+ top: t + G.value + c.value.datapointFontSize,
237
+ left: s,
238
+ right: r - l,
239
+ bottom: o - a - c.value.datapointFontSize
240
+ };
241
+ }), kt = f(() => Xt(e.value.customPalette)), y = d({
242
+ dataLabels: {
243
+ show: e.value.style.chart.yAxis.labels.datapoints.show
244
+ },
245
+ showTable: e.value.table.show,
246
+ showTooltip: e.value.style.chart.tooltip.show
247
+ });
248
+ ee(e, () => {
249
+ y.value = {
250
+ dataLabels: {
251
+ show: e.value.style.chart.yAxis.labels.datapoints.show
252
+ },
253
+ showTable: e.value.table.show,
254
+ showTooltip: e.value.style.chart.tooltip.show
255
+ };
256
+ }, { immediate: !0 });
257
+ const $ = d([]);
258
+ function q(t) {
259
+ $.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
260
+ }
261
+ const M = f(() => gt.value.map((t, l) => {
262
+ const a = Yt(t.color) || kt.value[l] || te[l] || te[l % te.length];
263
+ return {
264
+ ...t,
265
+ series: t.series.map((s) => ({
266
+ ...s,
267
+ id: ye(),
268
+ color: a
269
+ })),
270
+ seriesIndex: l,
271
+ color: a,
272
+ id: ye(),
273
+ shape: t.shape || "circle"
274
+ };
275
+ }));
276
+ function Re(t) {
277
+ if (!M.value.length)
278
+ return e.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null;
279
+ const l = M.value.find((a) => a.name === t);
280
+ return l || (e.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${t}"`), null);
281
+ }
282
+ function wt(t) {
283
+ const l = Re(t);
284
+ l !== null && $.value.includes(l.id) && q(l.id);
285
+ }
286
+ function Ct(t) {
287
+ const l = Re(t);
288
+ l !== null && ($.value.includes(l.id) || q(l.id));
289
+ }
290
+ const Be = f(() => M.value.map((t) => ({
291
+ ...t,
292
+ opacity: $.value.includes(t.id) ? 0.5 : 1,
293
+ segregate: () => q(t.id),
294
+ isSegregated: $.value.includes(t.id),
295
+ shape: "circle"
296
+ }))), At = f(() => ({
297
+ cy: "pcp-div-legend",
298
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
299
+ color: e.value.style.chart.legend.color,
300
+ fontSize: e.value.style.chart.legend.fontSize,
301
+ paddingBottom: 12,
302
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
303
+ })), Ee = f(() => Math.max(
304
+ ...M.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
305
+ )), C = f(() => m.value.width / Ee.value), re = f(() => M.value.filter((t) => !$.value.includes(t.id))), b = f(() => {
306
+ let t = [];
307
+ for (let l = 0; l < Ee.value; l += 1) {
308
+ const a = Math.min(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), s = Math.max(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), o = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = qt(o, r, e.value.style.chart.yAxis.scaleTicks), N = i.ticks.map((x, k) => {
309
+ const Pt = i.min < 0 ? x + Math.abs(i.min) : x - Math.abs(i.min), Lt = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
310
+ return {
311
+ y: m.value.bottom - m.value.height * (Pt / Lt),
312
+ x: m.value.left + C.value * l + C.value / 2,
313
+ value: x
314
+ };
315
+ });
316
+ t.push({
317
+ scale: i,
318
+ ticks: N,
319
+ name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
320
+ });
321
+ }
322
+ return t;
323
+ }), ce = f(() => re.value.map((t, l) => ({
324
+ ...t,
325
+ series: t.series.map((a, s) => ({
326
+ ...a,
327
+ datapoints: a.values.map((o, r) => {
328
+ const i = b.value[r].scale.min < 0 ? (o || 0) + Math.abs(b.value[r].scale.min) : (o || 0) - Math.abs(b.value[r].scale.min), N = b.value[r].scale.min < 0 ? b.value[r].scale.max + Math.abs(b.value[r].scale.min) : b.value[r].scale.max - Math.abs(b.value[r].scale.min);
329
+ return {
330
+ name: a.name,
331
+ seriesName: t.name,
332
+ axisIndex: r,
333
+ datapointIndex: s,
334
+ seriesIndex: l,
335
+ value: o || 0,
336
+ x: m.value.left + C.value * r + C.value / 2,
337
+ y: m.value.bottom - m.value.height * (i / N),
338
+ comment: a.comments && a.comments[r] || ""
339
+ };
340
+ })
341
+ }))
342
+ })).map((t) => ({
343
+ ...t,
344
+ series: t.series.map((l) => {
345
+ const a = Qt(l.datapoints), s = Jt(l.datapoints), o = Kt(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${a}`);
346
+ return {
347
+ ...l,
348
+ smoothPath: s,
349
+ straightPath: a,
350
+ pathLength: o
351
+ };
352
+ })
353
+ })));
354
+ function He({ value: t, index: l, datapoint: a }) {
355
+ return at(
356
+ e.value.style.chart.yAxis.labels.formatters[l] || null,
357
+ t,
358
+ lt({
359
+ p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
360
+ v: t,
361
+ s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
362
+ r: e.value.style.chart.yAxis.labels.roundings[l] || 0
363
+ }),
364
+ { datapoint: a, seriesIndex: l }
365
+ );
366
+ }
367
+ const w = d(null), ve = d(null), de = d(!1), he = d("");
368
+ function Q({ shape: t, serie: l, S: a }) {
369
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...l, shape: t }, seriesIndex: a }), w.value = null, de.value = null;
370
+ }
371
+ function J({ shape: t, serieName: l, serie: a, relativeIndex: s, seriesIndex: o, S: r }) {
372
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ve.value = { serie: a, relativeIndex: s, seriesIndex: o, series: M.value, scales: b.value }, de.value = !0, w.value = a.id;
373
+ let i = "";
374
+ const N = e.value.style.chart.tooltip.customFormat;
375
+ tt(N) && la(() => N({
376
+ serie: a,
377
+ seriesIndex: a.seriesIndex,
378
+ series: M.value,
379
+ config: e.value,
380
+ scales: b.value
381
+ })) ? he.value = N({
382
+ serie: a,
383
+ seriesIndex: a.seriesIndex,
384
+ series: M.value,
385
+ config: e.value,
386
+ scales: b.value
387
+ }) : (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 + " - " : ""}${a.name}</div>`, b.value.map((x) => x.name).forEach((x, k) => {
388
+ i += `
389
+ <div class="vue-ui-tooltip-item" style="text-align:left">
390
+ <span>${x}: </span>
391
+ <span>
392
+ ${at(
393
+ e.value.style.chart.yAxis.labels.formatters[k] || null,
394
+ a.datapoints[k].value,
395
+ lt({
396
+ p: e.value.style.chart.yAxis.labels.prefixes[k] || "",
397
+ v: a.datapoints[k].value,
398
+ s: e.value.style.chart.yAxis.labels.suffixes[k] || "",
399
+ r: e.value.style.chart.yAxis.labels.roundings[k] || ""
400
+ }),
401
+ { datapoint: a.datapoints[k], seriesIndex: k }
402
+ )}
403
+ </span>
404
+ </div>
405
+ `, e.value.style.chart.comments.showInTooltip && a.datapoints[k].comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[k].comment}</div>`);
406
+ }), he.value = `<div>${i}</div>`);
407
+ }
408
+ function $t() {
409
+ return M.value;
410
+ }
411
+ const W = f(() => {
412
+ const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((o) => o.name)), l = ce.value.flatMap((o, r) => o.series.map((i) => [o.name].concat([i.name]).concat(i.values))), a = {
413
+ th: {
414
+ backgroundColor: e.value.table.th.backgroundColor,
415
+ color: e.value.table.th.color,
416
+ outline: e.value.table.th.outline
417
+ },
418
+ td: {
419
+ backgroundColor: e.value.table.td.backgroundColor,
420
+ color: e.value.table.td.color,
421
+ outline: e.value.table.td.outline
422
+ },
423
+ breakpoint: e.value.table.responsiveBreakpoint
424
+ }, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((o) => o.name));
425
+ return {
426
+ body: l,
427
+ head: t,
428
+ config: a,
429
+ colNames: s
430
+ };
431
+ }), Ue = f(() => ce.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
432
+ head: W.value.head,
433
+ body: W.value.body
434
+ });
435
+ function pe(t = null) {
436
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ue.value.head, s = Ue.value.body, o = l.concat([a]).concat(s), r = ta(o);
437
+ t ? t(r) : aa({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
438
+ }
439
+ const We = ut;
440
+ function K({ serie: t, shape: l, S: a }) {
441
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, shape: l }, seriesIndex: a }), We("selectDatapoint", t);
442
+ }
443
+ function Ve(t) {
444
+ We("selectLegend", {
445
+ ...t,
446
+ isSegregated: !t.isSegregated,
447
+ opacity: t.isSegregated ? 1 : 0.5
448
+ });
449
+ }
450
+ function Ge() {
451
+ y.value.showTable = !y.value.showTable;
452
+ }
453
+ function je() {
454
+ y.value.dataLabels.show = !y.value.dataLabels.show;
455
+ }
456
+ function Xe() {
457
+ y.value.showTooltip = !y.value.showTooltip;
458
+ }
459
+ const Z = d(!1);
460
+ function me() {
461
+ Z.value = !Z.value;
462
+ }
463
+ async function Tt({ scale: t = 2 } = {}) {
464
+ if (!S.value) return;
465
+ const { width: l, height: a } = S.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: r } = await ya({ domElement: S.value, base64: !0, img: !0, scale: t });
466
+ return {
467
+ imageUri: o,
468
+ base64: r,
469
+ title: e.value.style.chart.title.text,
470
+ width: l,
471
+ height: a,
472
+ aspectRatio: s
473
+ };
474
+ }
475
+ const zt = d({ start: 0, end: 1 }), Ft = f(() => b.value.map((t) => t.name));
476
+ da({
477
+ timeLabelsEls: oe,
478
+ timeLabels: Ft,
479
+ slicer: zt,
480
+ configRef: e,
481
+ rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
482
+ autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate", "enable"],
483
+ isAutoSize: !1,
484
+ width: Oe,
485
+ height: De,
486
+ targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
487
+ rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
488
+ });
489
+ const j = f(() => {
490
+ const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
491
+ return {
492
+ component: t ? ft : vt,
493
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
494
+ props: t ? {
495
+ backgroundColor: e.value.table.th.backgroundColor,
496
+ color: e.value.table.th.color,
497
+ headerColor: e.value.table.th.color,
498
+ headerBg: e.value.table.th.backgroundColor,
499
+ isFullscreen: B.value,
500
+ fullscreenParent: S.value,
501
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
502
+ } : {
503
+ hideDetails: !0,
504
+ config: {
505
+ open: l,
506
+ maxHeight: 1e4,
507
+ body: {
508
+ backgroundColor: e.value.style.chart.backgroundColor,
509
+ color: e.value.style.chart.color
510
+ },
511
+ head: {
512
+ backgroundColor: e.value.style.chart.backgroundColor,
513
+ color: e.value.style.chart.color
514
+ }
515
+ }
516
+ }
517
+ };
518
+ });
519
+ ee(() => y.value.showTable, (t) => {
520
+ e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
521
+ });
522
+ function Ye() {
523
+ y.value.showTable = !1, le.value && le.value.setTableIconState(!1);
524
+ }
525
+ const Mt = f(() => e.value.style.chart.backgroundColor), Nt = f(() => e.value.style.chart.legend), St = f(() => e.value.style.chart.title), { exportSvg: It, getSvg: _t } = ra({
526
+ svg: ie,
527
+ title: St,
528
+ legend: Nt,
529
+ legendItems: Be,
530
+ backgroundColor: Mt
531
+ });
532
+ async function qe({ isCb: t }) {
533
+ if (t) {
534
+ const { blob: l, url: a, text: s, dataUrl: o } = await _t();
535
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o });
536
+ } else
537
+ It();
538
+ }
539
+ return it({
540
+ getData: $t,
541
+ getImage: Tt,
542
+ generateCsv: pe,
543
+ generatePdf: Pe,
544
+ generateImage: Le,
545
+ generateSvg: qe,
546
+ hideSeries: Ct,
547
+ showSeries: wt,
548
+ toggleTable: Ge,
549
+ toggleLabels: je,
550
+ toggleTooltip: Xe,
551
+ toggleAnnotator: me,
552
+ toggleFullscreen: ze
553
+ }), (t, l) => (n(), u("div", {
554
+ ref_key: "pcpChart",
555
+ ref: S,
556
+ class: X(`vue-data-ui-component vue-ui-pcp ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
557
+ style: I(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
558
+ id: `pcp_${R.value}`,
559
+ onMouseenter: l[2] || (l[2] = () => v(Fe)(!0)),
560
+ onMouseleave: l[3] || (l[3] = () => v(Fe)(!1))
561
+ }, [
562
+ e.value.userOptions.buttons.annotator ? (n(), _(v(ht), {
563
+ key: 0,
564
+ svgRef: v(ie),
565
+ backgroundColor: e.value.style.chart.backgroundColor,
566
+ color: e.value.style.chart.color,
567
+ active: Z.value,
568
+ onClose: me
569
+ }, {
570
+ "annotator-action-close": h(() => [
571
+ p(t.$slots, "annotator-action-close", {}, void 0, !0)
572
+ ]),
573
+ "annotator-action-color": h(({ color: a }) => [
574
+ p(t.$slots, "annotator-action-color", T(z({ color: a })), void 0, !0)
575
+ ]),
576
+ "annotator-action-draw": h(({ mode: a }) => [
577
+ p(t.$slots, "annotator-action-draw", T(z({ mode: a })), void 0, !0)
578
+ ]),
579
+ "annotator-action-undo": h(({ disabled: a }) => [
580
+ p(t.$slots, "annotator-action-undo", T(z({ disabled: a })), void 0, !0)
581
+ ]),
582
+ "annotator-action-redo": h(({ disabled: a }) => [
583
+ p(t.$slots, "annotator-action-redo", T(z({ disabled: a })), void 0, !0)
584
+ ]),
585
+ "annotator-action-delete": h(({ disabled: a }) => [
586
+ p(t.$slots, "annotator-action-delete", T(z({ disabled: a })), void 0, !0)
587
+ ]),
588
+ _: 3
589
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
590
+ bt.value ? (n(), u("div", {
591
+ key: 1,
592
+ ref_key: "noTitle",
593
+ ref: we,
594
+ class: "vue-data-ui-no-title-space",
595
+ style: "height:36px; width: 100%;background:transparent"
596
+ }, null, 512)) : g("", !0),
597
+ e.value.style.chart.title.text ? (n(), u("div", {
598
+ key: 2,
599
+ ref_key: "chartTitle",
600
+ ref: be,
601
+ style: "width:100%;background:transparent;padding-bottom:24px"
602
+ }, [
603
+ (n(), _(pa, {
604
+ key: `title_${Ce.value}`,
605
+ config: {
606
+ title: {
607
+ cy: "pcp-div-title",
608
+ ...e.value.style.chart.title
609
+ },
610
+ subtitle: {
611
+ cy: "pcp-div-subtitle",
612
+ ...e.value.style.chart.title.subtitle
613
+ }
614
+ }
615
+ }, null, 8, ["config"]))
616
+ ], 512)) : g("", !0),
617
+ P("div", {
618
+ id: `legend-top-${R.value}`
619
+ }, null, 8, xa),
620
+ e.value.userOptions.show && Y.value && (v(Me) || v(ne)) ? (n(), _(v(pt), {
621
+ ref_key: "userOptionsRef",
622
+ ref: le,
623
+ key: `user_options_${ge.value}`,
624
+ backgroundColor: e.value.style.chart.backgroundColor,
625
+ color: e.value.style.chart.color,
626
+ isPrinting: v(Ie),
627
+ isImaging: v(_e),
628
+ uid: R.value,
629
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
630
+ hasPdf: e.value.userOptions.buttons.pdf,
631
+ hasXls: e.value.userOptions.buttons.csv,
632
+ hasImg: e.value.userOptions.buttons.img,
633
+ hasSvg: e.value.userOptions.buttons.svg,
634
+ hasTable: e.value.userOptions.buttons.table,
635
+ hasLabel: e.value.userOptions.buttons.labels,
636
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
637
+ isFullscreen: B.value,
638
+ isTooltip: y.value.showTooltip,
639
+ titles: { ...e.value.userOptions.buttonTitles },
640
+ chartElement: S.value,
641
+ position: e.value.userOptions.position,
642
+ hasAnnotator: e.value.userOptions.buttons.annotator,
643
+ isAnnotation: Z.value,
644
+ callbacks: e.value.userOptions.callbacks,
645
+ printScale: e.value.userOptions.print.scale,
646
+ tableDialog: e.value.table.useDialog,
647
+ onToggleFullscreen: ze,
648
+ onGeneratePdf: v(Pe),
649
+ onGenerateCsv: pe,
650
+ onGenerateImage: v(Le),
651
+ onGenerateSvg: qe,
652
+ onToggleTable: Ge,
653
+ onToggleLabels: je,
654
+ onToggleTooltip: Xe,
655
+ onToggleAnnotator: me,
656
+ style: I({
657
+ visibility: v(Me) ? v(ne) ? "visible" : "hidden" : "visible"
658
+ })
659
+ }, Je({ _: 2 }, [
660
+ t.$slots.menuIcon ? {
661
+ name: "menuIcon",
662
+ fn: h(({ isOpen: a, color: s }) => [
663
+ p(t.$slots, "menuIcon", T(z({ isOpen: a, color: s })), void 0, !0)
664
+ ]),
665
+ key: "0"
666
+ } : void 0,
667
+ t.$slots.optionPdf ? {
668
+ name: "optionPdf",
669
+ fn: h(() => [
670
+ p(t.$slots, "optionPdf", {}, void 0, !0)
671
+ ]),
672
+ key: "1"
673
+ } : void 0,
674
+ t.$slots.optionCsv ? {
675
+ name: "optionCsv",
676
+ fn: h(() => [
677
+ p(t.$slots, "optionCsv", {}, void 0, !0)
678
+ ]),
679
+ key: "2"
680
+ } : void 0,
681
+ t.$slots.optionImg ? {
682
+ name: "optionImg",
683
+ fn: h(() => [
684
+ p(t.$slots, "optionImg", {}, void 0, !0)
685
+ ]),
686
+ key: "3"
687
+ } : void 0,
688
+ t.$slots.optionSvg ? {
689
+ name: "optionSvg",
690
+ fn: h(() => [
691
+ p(t.$slots, "optionSvg", {}, void 0, !0)
692
+ ]),
693
+ key: "4"
694
+ } : void 0,
695
+ t.$slots.optionTable ? {
696
+ name: "optionTable",
697
+ fn: h(() => [
698
+ p(t.$slots, "optionTable", {}, void 0, !0)
699
+ ]),
700
+ key: "5"
701
+ } : void 0,
702
+ t.$slots.optionLabels ? {
703
+ name: "optionLabels",
704
+ fn: h(() => [
705
+ p(t.$slots, "optionLabels", {}, void 0, !0)
706
+ ]),
707
+ key: "6"
708
+ } : void 0,
709
+ t.$slots.optionFullscreen ? {
710
+ name: "optionFullscreen",
711
+ fn: h(({ toggleFullscreen: a, isFullscreen: s }) => [
712
+ p(t.$slots, "optionFullscreen", T(z({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
713
+ ]),
714
+ key: "7"
715
+ } : void 0,
716
+ t.$slots.optionAnnotator ? {
717
+ name: "optionAnnotator",
718
+ fn: h(({ toggleAnnotator: a, isAnnotator: s }) => [
719
+ p(t.$slots, "optionAnnotator", T(z({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
720
+ ]),
721
+ key: "8"
722
+ } : void 0
723
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
724
+ (n(), u("svg", {
725
+ ref_key: "svgRef",
726
+ ref: ie,
727
+ xmlns: v(Zt),
728
+ class: X({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
729
+ viewBox: `0 0 ${m.value.chartWidth <= 0 ? 10 : m.value.chartWidth} ${m.value.chartHeight <= 0 ? 10 : m.value.chartHeight}`,
730
+ style: I(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
731
+ }, [
732
+ fe(v(mt)),
733
+ t.$slots["chart-background"] ? (n(), u("foreignObject", {
734
+ key: 0,
735
+ x: m.value.left,
736
+ y: m.value.top,
737
+ width: m.value.width,
738
+ height: m.value.height,
739
+ style: {
740
+ pointerEvents: "none"
741
+ }
742
+ }, [
743
+ p(t.$slots, "chart-background", {}, void 0, !0)
744
+ ], 8, wa)) : g("", !0),
745
+ (n(!0), u(A, null, L(b.value, (a, s) => (n(), u("g", Ca, [
746
+ P("line", {
747
+ x1: m.value.left + C.value * s + C.value / 2,
748
+ x2: m.value.left + C.value * s + C.value / 2,
749
+ y1: m.value.top,
750
+ y2: m.value.bottom,
751
+ stroke: e.value.style.chart.yAxis.stroke,
752
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth
753
+ }, null, 8, Aa),
754
+ e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
755
+ (n(!0), u(A, null, L(a.ticks, (o) => (n(), u("line", {
756
+ x1: o.x,
757
+ x2: o.x - 10,
758
+ y1: o.y,
759
+ y2: o.y,
760
+ stroke: e.value.style.chart.yAxis.stroke,
761
+ "stroke-width": e.value.style.chart.yAxis.strokeWidth,
762
+ style: I(`opacity:${w.value && !y.value.showTooltip ? 0.2 : 1}`)
763
+ }, null, 12, $a))), 256)),
764
+ v(E) ? g("", !0) : (n(), u("g", Ta, [
765
+ (n(!0), u(A, null, L(a.ticks, (o) => (n(), u("text", {
766
+ x: o.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
767
+ y: o.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
768
+ fill: e.value.style.chart.yAxis.labels.ticks.color,
769
+ "text-anchor": "end",
770
+ "font-size": c.value.ticksFontSize,
771
+ "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
772
+ style: I(`opacity:${w.value && !y.value.showTooltip ? 0.2 : 1}`)
773
+ }, H(He({ value: o.value, index: s, datapoint: o })), 13, za))), 256))
774
+ ]))
775
+ ], 64)) : g("", !0)
776
+ ]))), 256)),
777
+ e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
778
+ key: 1,
779
+ ref_key: "xAxisLabels",
780
+ ref: oe
781
+ }, [
782
+ (n(!0), u(A, null, L(b.value, (a, s) => (n(), u(A, null, [
783
+ String(a.name).includes(`
784
+ `) ? (n(), u("text", {
785
+ key: 1,
786
+ class: "vue-ui-parallel-coordinate-plot-x-label",
787
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
788
+ "font-size": c.value.axisNameFontSize,
789
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
790
+ "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
791
+ transform: `translate(${m.value.left + C.value * s + C.value / 2}, ${G.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
792
+ innerHTML: v(ea)({
793
+ content: String(a.name),
794
+ fontSize: c.value.axisNameFontSize,
795
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
796
+ x: 0,
797
+ y: 0
798
+ })
799
+ }, null, 8, Ma)) : (n(), u("text", {
800
+ key: 0,
801
+ class: "vue-ui-parallel-coordinate-plot-x-label",
802
+ fill: e.value.style.chart.yAxis.labels.axisNamesColor,
803
+ "font-size": c.value.axisNameFontSize,
804
+ "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
805
+ "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
806
+ transform: `translate(${m.value.left + C.value * s + C.value / 2}, ${G.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
807
+ }, H(a.name), 9, Fa))
808
+ ], 64))), 256))
809
+ ], 512)) : g("", !0),
810
+ (n(!0), u(A, null, L(ce.value, (a, s) => (n(), u("g", null, [
811
+ (n(!0), u(A, null, L(a.series, (o, r) => (n(), u("g", null, [
812
+ e.value.style.chart.plots.show ? (n(), u("g", Na, [
813
+ (n(!0), u(A, null, L(o.datapoints, (i, N) => (n(), _(fa, {
814
+ plot: { x: i.x, y: i.y },
815
+ color: a.color,
816
+ shape: a.shape,
817
+ radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
818
+ stroke: e.value.style.chart.backgroundColor,
819
+ strokeWidth: 0.5,
820
+ onMouseenter: (x) => J({
821
+ shape: a.shape,
822
+ serieName: a.name,
823
+ serie: o,
824
+ relativeIndex: r,
825
+ seriesIndex: o.seriesIndex,
826
+ S: s
827
+ }),
828
+ onMouseleave: (x) => Q({ serie: o, shape: a.shape, S: s }),
829
+ style: I(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
830
+ onClick: () => K({ serie: o, shape: a.shape, S: s })
831
+ }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
832
+ y.value.showTooltip ? g("", !0) : (n(), u(A, { key: 0 }, [
833
+ w.value && w.value === o.id && o.datapoints.length ? (n(), u("text", {
834
+ key: 0,
835
+ x: o.datapoints[0].x - c.value.ticksFontSize,
836
+ y: o.datapoints[0].y + c.value.ticksFontSize / 3,
837
+ "text-anchor": "end",
838
+ "font-size": c.value.ticksFontSize,
839
+ fill: a.color,
840
+ "font-weight": "bold"
841
+ }, H(o.name), 9, Sa)) : g("", !0)
842
+ ], 64)),
843
+ e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, L(o.datapoints, (i) => (n(), u("g", null, [
844
+ i.comment ? (n(), u("foreignObject", {
845
+ key: 0,
846
+ style: { overflow: "visible" },
847
+ height: "12",
848
+ width: e.value.style.chart.comments.width,
849
+ x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
850
+ y: i.y + e.value.style.chart.comments.offsetY + 6
851
+ }, [
852
+ P("div", _a, [
853
+ p(t.$slots, "plot-comment", {
854
+ plot: { ...i, color: a.color }
855
+ }, void 0, !0)
856
+ ])
857
+ ], 8, Ia)) : g("", !0)
858
+ ]))), 256)) : g("", !0)
859
+ ])) : g("", !0),
860
+ !v(E) && (y.value.dataLabels.show || w.value && w.value === o.id) ? (n(!0), u(A, { key: 1 }, L(o.datapoints, (i, N) => (n(), u("text", {
861
+ x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
862
+ y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
863
+ fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
864
+ "text-anchor": "start",
865
+ "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
866
+ class: X({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(E) }),
867
+ "font-size": c.value.datapointFontSize,
868
+ onMouseenter: (x) => J({
869
+ shape: a.shape,
870
+ serieName: a.name,
871
+ serie: o,
872
+ relativeIndex: r,
873
+ seriesIndex: o.seriesIndex,
874
+ S: s
875
+ }),
876
+ onMouseleave: (x) => Q({ serie: o, shape: a.shape, S: s }),
877
+ onClick: () => K({ serie: o, shape: a.shape, S: s }),
878
+ style: I(`opacity:${w.value ? w.value === o.id ? 1 : 0.2 : 1}`)
879
+ }, H(He({ value: i.value, index: N, datapoint: i })), 47, Pa))), 256)) : g("", !0),
880
+ P("path", {
881
+ d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
882
+ stroke: a.color,
883
+ "stroke-width": e.value.style.chart.lines.strokeWidth,
884
+ fill: "none",
885
+ class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(E) }),
886
+ onMouseenter: (i) => J({
887
+ shape: a.shape,
888
+ serieName: a.name,
889
+ serie: o,
890
+ relativeIndex: r,
891
+ seriesIndex: o.seriesIndex,
892
+ S: s
893
+ }),
894
+ onMouseleave: (i) => Q({ serie: o, shape: a.shape, S: s }),
895
+ onClick: () => K({ serie: o, shape: a.shape, S: s }),
896
+ style: I(`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}`)
897
+ }, null, 46, La),
898
+ y.value.showTooltip ? (n(), u("path", {
899
+ key: 2,
900
+ d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
901
+ stroke: "transparent",
902
+ "stroke-width": 12,
903
+ fill: "none",
904
+ class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(E) }),
905
+ onMouseenter: (i) => J({
906
+ shape: a.shape,
907
+ serieName: a.name,
908
+ serie: o,
909
+ relativeIndex: r,
910
+ seriesIndex: o.seriesIndex,
911
+ S: s
912
+ }),
913
+ onMouseleave: (i) => Q({ serie: o, shape: a.shape, S: s }),
914
+ onClick: () => K({ serie: o, shape: a.shape, S: s }),
915
+ style: { opacity: "0" }
916
+ }, null, 42, Oa)) : g("", !0)
917
+ ]))), 256))
918
+ ]))), 256)),
919
+ p(t.$slots, "svg", { svg: m.value }, void 0, !0)
920
+ ], 14, ka)),
921
+ t.$slots.watermark ? (n(), u("div", Da, [
922
+ p(t.$slots, "watermark", T(z({ isPrinting: v(Ie) || v(_e) })), void 0, !0)
923
+ ])) : g("", !0),
924
+ P("div", {
925
+ id: `legend-bottom-${R.value}`
926
+ }, null, 8, Ra),
927
+ Te.value ? (n(), _(Et, {
928
+ key: 5,
929
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
930
+ }, [
931
+ P("div", {
932
+ ref_key: "chartLegend",
933
+ ref: xe
934
+ }, [
935
+ e.value.style.chart.legend.show && Y.value ? (n(), _(ma, {
936
+ key: `legend_${Ae.value}`,
937
+ legendSet: Be.value,
938
+ config: At.value,
939
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => {
940
+ q(a.id), Ve(a);
941
+ })
942
+ }, {
943
+ item: h(({ legend: a, index: s }) => [
944
+ P("div", {
945
+ onClick: (o) => {
946
+ a.segregate(), Ve(a);
947
+ },
948
+ style: I(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
949
+ }, H(a.name), 13, Ba)
950
+ ]),
951
+ _: 1
952
+ }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
953
+ key: 1,
954
+ legend: M.value
955
+ }, void 0, !0)
956
+ ], 512)
957
+ ], 8, ["to"])) : g("", !0),
958
+ t.$slots.source ? (n(), u("div", {
959
+ key: 6,
960
+ ref_key: "source",
961
+ ref: ke,
962
+ dir: "auto"
963
+ }, [
964
+ p(t.$slots, "source", {}, void 0, !0)
965
+ ], 512)) : g("", !0),
966
+ fe(v(rt), {
967
+ show: y.value.showTooltip && de.value,
968
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
969
+ color: e.value.style.chart.tooltip.color,
970
+ fontSize: e.value.style.chart.tooltip.fontSize,
971
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
972
+ borderColor: e.value.style.chart.tooltip.borderColor,
973
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
974
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
975
+ position: e.value.style.chart.tooltip.position,
976
+ offsetY: e.value.style.chart.tooltip.offsetY,
977
+ parent: S.value,
978
+ content: he.value,
979
+ isFullscreen: B.value,
980
+ isCustom: v(tt)(e.value.style.chart.tooltip.customFormat),
981
+ smooth: e.value.style.chart.tooltip.smooth,
982
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter,
983
+ smoothForce: e.value.style.chart.tooltip.smoothForce,
984
+ smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
985
+ }, {
986
+ "tooltip-before": h(() => [
987
+ p(t.$slots, "tooltip-before", T(z({ ...ve.value })), void 0, !0)
988
+ ]),
989
+ "tooltip-after": h(() => [
990
+ p(t.$slots, "tooltip-after", T(z({ ...ve.value })), void 0, !0)
991
+ ]),
992
+ _: 3
993
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
994
+ Y.value && e.value.userOptions.buttons.table ? (n(), _(Ht(j.value.component), Ut({ key: 7 }, j.value.props, {
995
+ ref_key: "tableUnit",
996
+ ref: V,
997
+ onClose: Ye
998
+ }), Je({
999
+ content: h(() => [
1000
+ (n(), _(v(dt), {
1001
+ key: `table_${$e.value}`,
1002
+ colNames: W.value.colNames,
1003
+ head: W.value.head,
1004
+ body: W.value.body,
1005
+ config: W.value.config,
1006
+ title: e.value.table.useDialog ? "" : j.value.title,
1007
+ withCloseButton: !e.value.table.useDialog,
1008
+ onClose: Ye
1009
+ }, {
1010
+ th: h(({ th: a }) => [
1011
+ P("div", { innerHTML: a }, null, 8, Ea)
1012
+ ]),
1013
+ td: h(({ td: a }) => [
1014
+ Ke(H(a), 1)
1015
+ ]),
1016
+ _: 1
1017
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1018
+ ]),
1019
+ _: 2
1020
+ }, [
1021
+ e.value.table.useDialog ? {
1022
+ name: "title",
1023
+ fn: h(() => [
1024
+ Ke(H(j.value.title), 1)
1025
+ ]),
1026
+ key: "0"
1027
+ } : void 0,
1028
+ e.value.table.useDialog ? {
1029
+ name: "actions",
1030
+ fn: h(() => [
1031
+ P("button", {
1032
+ tabindex: "0",
1033
+ class: "vue-ui-user-options-button",
1034
+ onClick: l[1] || (l[1] = (a) => pe(e.value.userOptions.callbacks.csv))
1035
+ }, [
1036
+ fe(v(ct), {
1037
+ name: "excel",
1038
+ stroke: j.value.props.color
1039
+ }, null, 8, ["stroke"])
1040
+ ])
1041
+ ]),
1042
+ key: "1"
1043
+ } : void 0
1044
+ ]), 1040)) : g("", !0),
1045
+ v(E) ? (n(), _(ua, { key: 8 })) : g("", !0)
1046
+ ], 46, ba));
1047
+ }
1048
+ }, ol = /* @__PURE__ */ ga(Ha, [["__scopeId", "data-v-9716d648"]]);
1049
+ export {
1050
+ ol as default
1051
+ };