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

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 (136) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
  11. package/dist/Slicer-D8a4Wv1q.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
  19. package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +600 -22
  22. package/dist/types/vue-data-ui.d.ts +600 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-DtUATNAU.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
  37. package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
  38. package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
  41. package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
  48. package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
  49. package/dist/vue-ui-flow-B1AOqk14.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
  51. package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
  52. package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
  53. package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
  54. package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
  55. package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
  59. package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
  60. package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
  61. package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
  65. package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
  67. package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
  68. package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
  69. package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
  70. package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
  73. package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
  74. package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
  75. package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
  77. package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
  79. package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
  80. package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
  81. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
  82. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
  84. package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
  86. package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
  87. package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
  89. package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
  90. package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
  91. package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
  93. package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  109. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  110. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  111. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  112. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  113. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  114. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  115. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  116. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  117. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  118. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  119. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  120. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  121. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  122. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  123. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  124. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  125. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  126. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  127. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  128. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  129. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  130. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  131. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  132. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  133. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  134. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  135. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  136. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -1,807 +0,0 @@
1
- import { defineAsyncComponent as N, computed as x, ref as h, watch as ot, shallowRef as Ie, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as W, createBlock as I, createCommentVNode as m, createElementVNode as E, createVNode as _e, createSlots as it, withCtx as w, renderSlot as g, normalizeProps as B, guardReactiveProps as U, Fragment as C, renderList as _, toDisplayString as V, createTextVNode as ut } from "vue";
2
- import { u as rt, c as ae, t as ct, p as G, a as vt, o as dt, e as Ne, g as ht, b as pt, d as yt, D as mt, U as ft, V as gt, W as bt, X as xt, I as kt, x as Pe, E as Y, q as wt, r as Ct, i as Oe, f as Le, y as $t } from "./index-Cg-RjxqH.js";
3
- import { t as At, u as zt } from "./useResponsive-DfdjqQps.js";
4
- import { u as De } from "./useNestedProp-C_G5E08Y.js";
5
- import { u as Tt } from "./usePrinter-BUzmyQf9.js";
6
- import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ft } from "./useChartAccessibility-9icAAmYg.js";
8
- import St from "./Title-B7Xb3YuE.js";
9
- import It from "./Legend-B2hrDh4G.js";
10
- import { _ as _t } from "./Shape-C2qH26wh.js";
11
- import Nt from "./img-D72yZNUg.js";
12
- import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"], Rt = { style: { "pointer-events": "none" } }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x", "y", "fill", "font-size", "font-weight"], Ut = ["x", "y", "fill", "font-size", "font-weight", "innerHTML"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x", "y", "fill", "font-size", "font-weight"], Ht = { key: 0 }, jt = ["x", "y", "font-size", "fill"], Xt = ["width", "x", "y"], Gt = { style: { width: "100%" } }, Yt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], qt = ["d", "stroke", "stroke-width", "onMouseenter"], Jt = ["d", "onMouseenter"], Kt = {
14
- key: 5,
15
- class: "vue-data-ui-watermark"
16
- }, Qt = ["onClick"], Zt = ["innerHTML"], ea = {
17
- __name: "vue-ui-parallel-coordinate-plot",
18
- props: {
19
- config: {
20
- type: Object,
21
- default() {
22
- return {};
23
- }
24
- },
25
- dataset: {
26
- type: Array,
27
- default() {
28
- return [];
29
- }
30
- }
31
- },
32
- emits: ["selectLegend", "selectDatapoint"],
33
- setup(Re, { expose: Ee, emit: Be }) {
34
- const Ue = N(() => import("./vue-ui-accordion-CRomxzaL.js")), Ve = N(() => import("./DataTable-mQ6Wd-rR.js")), We = N(() => import("./PackageVersion-CeEYZfaH.js")), He = N(() => import("./PenAndPaper-DhSxfUrQ.js")), je = N(() => import("./vue-ui-skeleton-CUOhCY4p.js")), Xe = N(() => import("./Tooltip-BidRoM5E.js")), Ge = N(() => import("./UserOptions-0tvMM8PF.js")), { vue_ui_parallel_coordinate_plot: Ye } = rt(), T = Re, P = x({
35
- get() {
36
- return !!T.dataset && T.dataset.length;
37
- },
38
- set(t) {
39
- return t;
40
- }
41
- }), le = h(0), M = h(null), oe = h(null), se = h(null), ne = h(null), ie = h(null), ue = h(0), re = h(0), ce = h(0), q = h(ae()), O = h(!1);
42
- function ve(t) {
43
- O.value = t, le.value += 1;
44
- }
45
- const e = x({
46
- get: () => ye(),
47
- set: (t) => t
48
- }), { userOptionsVisible: J, setUserOptionsVisibility: de, keepUserOptionState: he } = Mt({ config: e.value }), { svgRef: pe } = Ft({ config: e.value.style.chart.title });
49
- function ye() {
50
- const t = De({
51
- userConfig: T.config,
52
- defaultConfig: Ye
53
- });
54
- return t.theme ? {
55
- ...De({
56
- userConfig: vt.vue_ui_parallel_coordinate_plot[t.theme] || T.config,
57
- defaultConfig: t
58
- }),
59
- customPalette: ct[t.theme] || G
60
- } : t;
61
- }
62
- ot(() => T.config, (t) => {
63
- e.value = ye(), J.value = !e.value.userOptions.showOnChartHover, me(), ue.value += 1, ce.value += 1, re.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;
64
- }, { deep: !0 });
65
- const F = Ie(null), L = Ie(null);
66
- st(() => {
67
- me();
68
- });
69
- function me() {
70
- if (dt(T.dataset) ? Ne({
71
- componentName: "VueUiParallelCoordinatePlot",
72
- type: "dataset"
73
- }) : T.dataset.forEach((t, l) => {
74
- ht({
75
- datasetObject: t,
76
- requiredAttributes: ["name", "series"]
77
- }).forEach((a) => {
78
- P.value = !1, Ne({
79
- componentName: "VueUiParallelCoordinatePlot",
80
- type: "datasetSerieAttribute",
81
- property: a,
82
- index: l
83
- });
84
- });
85
- }), e.value.responsive) {
86
- const t = At(() => {
87
- const { width: l, height: a } = zt({
88
- chart: M.value,
89
- title: e.value.style.chart.title.text ? oe.value : null,
90
- legend: e.value.style.chart.legend.show ? se.value : null,
91
- source: ne.value,
92
- noTitle: ie.value
93
- });
94
- requestAnimationFrame(() => {
95
- c.value.width = l, c.value.height = a, e.value.responsiveProportionalSizing ? (c.value.plotSize = Y({
96
- relator: Math.min(l, a),
97
- adjuster: 600,
98
- source: e.value.style.chart.plots.radius,
99
- threshold: 2,
100
- fallback: 2
101
- }), c.value.ticksFontSize = Y({
102
- relator: Math.min(l, a),
103
- adjuster: 600,
104
- source: e.value.style.chart.yAxis.labels.ticks.fontSize,
105
- threshold: 10,
106
- fallback: 10
107
- }), c.value.datapointFontSize = Y({
108
- relator: Math.min(l, a),
109
- adjuster: 600,
110
- source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
111
- threshold: 10,
112
- fallback: 10
113
- }), c.value.axisNameFontSize = Y({
114
- relator: Math.min(l, a),
115
- adjuster: 600,
116
- source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
117
- threshold: 12,
118
- fallback: 12
119
- })) : (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);
120
- });
121
- });
122
- F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect()), F.value = new ResizeObserver(t), L.value = M.value.parentNode, F.value.observe(L.value);
123
- }
124
- }
125
- nt(() => {
126
- F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect());
127
- });
128
- const { isPrinting: fe, isImaging: ge, generatePdf: be, generateImage: xe } = Tt({
129
- elementId: `pcp_${q.value}`,
130
- fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
131
- options: e.value.userOptions.print
132
- }), qe = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = h({
133
- height: e.value.style.chart.height,
134
- width: e.value.style.chart.width,
135
- plotSize: e.value.style.chart.plots.radius,
136
- // ratio 100
137
- ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
138
- // ratio 42.85
139
- datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
140
- axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
141
- }), r = x(() => {
142
- const { top: t, right: l, bottom: a, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
143
- return {
144
- chartHeight: n,
145
- chartWidth: s,
146
- height: n - t - a,
147
- width: s - o - l,
148
- top: t,
149
- left: o,
150
- right: s - l,
151
- bottom: n - a
152
- };
153
- }), Je = x(() => pt(e.value.customPalette)), p = h({
154
- dataLabels: {
155
- show: e.value.style.chart.yAxis.labels.datapoints.show
156
- },
157
- showTable: e.value.table.show,
158
- showTooltip: e.value.style.chart.tooltip.show
159
- }), $ = h([]);
160
- function ke(t) {
161
- $.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
162
- }
163
- const S = x(() => T.dataset.map((t, l) => {
164
- const a = yt(t.color) || Je.value[l] || G[l] || G[l % G.length];
165
- return {
166
- ...t,
167
- series: t.series.map((o) => ({
168
- ...o,
169
- id: ae(),
170
- color: a
171
- })),
172
- seriesIndex: l,
173
- color: a,
174
- id: ae(),
175
- shape: t.shape || "circle"
176
- };
177
- })), Ke = x(() => S.value.map((t) => ({
178
- ...t,
179
- opacity: $.value.includes(t.id) ? 0.5 : 1,
180
- segregate: () => ke(t.id),
181
- isSegregated: $.value.includes(t.id)
182
- }))), Qe = x(() => ({
183
- cy: "pcp-div-legend",
184
- backgroundColor: e.value.style.chart.legend.backgroundColor,
185
- color: e.value.style.chart.legend.color,
186
- fontSize: e.value.style.chart.legend.fontSize,
187
- paddingBottom: 12,
188
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
189
- })), we = x(() => Math.max(
190
- ...S.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
191
- )), k = x(() => r.value.width / we.value), K = x(() => S.value.filter((t) => !$.value.includes(t.id))), b = x(() => {
192
- let t = [];
193
- for (let l = 0; l < we.value; l += 1) {
194
- const a = Math.min(...K.value.flatMap((y) => y.series.map((X) => X.values[l] || 0) || 0)), o = Math.max(...K.value.flatMap((y) => y.series.map((X) => X.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, v = mt(n, s, e.value.style.chart.yAxis.scaleTicks), A = v.ticks.map((y, X) => {
195
- const at = v.min < 0 ? y + Math.abs(v.min) : y - Math.abs(v.min), lt = v.min < 0 ? v.max + Math.abs(v.min) : v.max - Math.abs(v.min);
196
- return {
197
- y: r.value.bottom - r.value.height * (at / lt),
198
- x: r.value.left + k.value * l + k.value / 2,
199
- value: y
200
- };
201
- });
202
- t.push({
203
- scale: v,
204
- ticks: A,
205
- name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
206
- });
207
- }
208
- return t;
209
- }), Q = x(() => K.value.map((t, l) => ({
210
- ...t,
211
- series: t.series.map((a, o) => ({
212
- ...a,
213
- datapoints: a.values.map((n, s) => {
214
- const v = b.value[s].scale.min < 0 ? (n || 0) + Math.abs(b.value[s].scale.min) : (n || 0) - Math.abs(b.value[s].scale.min), A = b.value[s].scale.min < 0 ? b.value[s].scale.max + Math.abs(b.value[s].scale.min) : b.value[s].scale.max - Math.abs(b.value[s].scale.min);
215
- return {
216
- name: a.name,
217
- seriesName: t.name,
218
- axisIndex: s,
219
- datapointIndex: o,
220
- seriesIndex: l,
221
- value: n || 0,
222
- x: r.value.left + k.value * s + k.value / 2,
223
- y: r.value.bottom - r.value.height * (v / A),
224
- comment: a.comments && a.comments[s] || ""
225
- };
226
- })
227
- }))
228
- })).map((t) => ({
229
- ...t,
230
- series: t.series.map((l) => {
231
- const a = ft(l.datapoints), o = gt(l.datapoints), n = bt(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${a}`);
232
- return {
233
- ...l,
234
- smoothPath: o,
235
- straightPath: a,
236
- pathLength: n
237
- };
238
- })
239
- })));
240
- function Ce({ value: t, index: l, datapoint: a }) {
241
- return Oe(
242
- e.value.style.chart.yAxis.labels.formatters[l] || null,
243
- t,
244
- Le({
245
- p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
246
- v: t,
247
- s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
248
- r: e.value.style.chart.yAxis.labels.roundings[l] || 0
249
- }),
250
- { datapoint: a, seriesIndex: l }
251
- );
252
- }
253
- const f = h(null), Z = h(null), D = h(!1), ee = h("");
254
- function H({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
255
- Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series: S.value, scales: b.value }, D.value = !0, f.value = a.id;
256
- let s = "";
257
- const v = e.value.style.chart.tooltip.customFormat;
258
- Pe(v) && $t(() => v({
259
- serie: a,
260
- seriesIndex: a.seriesIndex,
261
- series: S.value,
262
- config: e.value,
263
- scales: b.value
264
- })) ? ee.value = v({
265
- serie: a,
266
- seriesIndex: a.seriesIndex,
267
- series: S.value,
268
- config: e.value,
269
- scales: b.value
270
- }) : (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 + " - " : ""}${a.name}</div>`, b.value.map((A) => A.name).forEach((A, y) => {
271
- s += `
272
- <div class="vue-ui-tooltip-item" style="text-align:left">
273
- <span>${A}: </span>
274
- <span>
275
- ${Oe(
276
- e.value.style.chart.yAxis.labels.formatters[y] || null,
277
- a.datapoints[y].value,
278
- Le({
279
- p: e.value.style.chart.yAxis.labels.prefixes[y] || "",
280
- v: a.datapoints[y].value,
281
- s: e.value.style.chart.yAxis.labels.suffixes[y] || "",
282
- r: e.value.style.chart.yAxis.labels.roundings[y] || ""
283
- }),
284
- { datapoint: a.datapoints[y], seriesIndex: y }
285
- )}
286
- </span>
287
- </div>
288
- `, e.value.style.chart.comments.showInTooltip && a.datapoints[y].comment && (s += `<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[y].comment}</div>`);
289
- }), ee.value = `<div>${s}</div>`);
290
- }
291
- function Ze() {
292
- return S.value;
293
- }
294
- const R = x(() => {
295
- const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((n) => n.name)), l = Q.value.flatMap((n, s) => n.series.map((v) => [n.name].concat([v.name]).concat(v.values))), a = {
296
- th: {
297
- backgroundColor: e.value.table.th.backgroundColor,
298
- color: e.value.table.th.color,
299
- outline: e.value.table.th.outline
300
- },
301
- td: {
302
- backgroundColor: e.value.table.td.backgroundColor,
303
- color: e.value.table.td.color,
304
- outline: e.value.table.td.outline
305
- },
306
- breakpoint: e.value.table.responsiveBreakpoint
307
- }, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((n) => n.name));
308
- return {
309
- body: l,
310
- head: t,
311
- config: a,
312
- colNames: o
313
- };
314
- }), $e = x(() => Q.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
315
- head: R.value.head,
316
- body: R.value.body
317
- });
318
- function Ae(t = null) {
319
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = $e.value.head, o = $e.value.body, n = l.concat([a]).concat(o), s = wt(n);
320
- t ? t(s) : Ct({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
321
- }
322
- const ze = Be;
323
- function et(t) {
324
- ze("selectDatapoint", t);
325
- }
326
- function Te(t) {
327
- ze("selectLegend", {
328
- ...t,
329
- isSegregated: !t.isSegregated,
330
- opacity: t.isSegregated ? 1 : 0.5
331
- });
332
- }
333
- function Me() {
334
- p.value.showTable = !p.value.showTable;
335
- }
336
- function Fe() {
337
- p.value.dataLabels.show = !p.value.dataLabels.show;
338
- }
339
- function Se() {
340
- p.value.showTooltip = !p.value.showTooltip;
341
- }
342
- const j = h(!1);
343
- function te() {
344
- j.value = !j.value;
345
- }
346
- async function tt({ scale: t = 2 } = {}) {
347
- if (!M.value) return;
348
- const { width: l, height: a } = M.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: s } = await Nt({ domElement: M.value, base64: !0, img: !0, scale: t });
349
- return {
350
- imageUri: n,
351
- base64: s,
352
- title: e.value.style.chart.title.text,
353
- width: l,
354
- height: a,
355
- aspectRatio: o
356
- };
357
- }
358
- return Ee({
359
- getData: Ze,
360
- getImage: tt,
361
- generateCsv: Ae,
362
- generatePdf: be,
363
- generateImage: xe,
364
- toggleTable: Me,
365
- toggleLabels: Fe,
366
- toggleTooltip: Se,
367
- toggleAnnotator: te,
368
- toggleFullscreen: ve
369
- }), (t, l) => (i(), u("div", {
370
- ref_key: "pcpChart",
371
- ref: M,
372
- class: W(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
373
- style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
374
- id: `pcp_${q.value}`,
375
- onMouseenter: l[6] || (l[6] = () => d(de)(!0)),
376
- onMouseleave: l[7] || (l[7] = () => d(de)(!1))
377
- }, [
378
- e.value.userOptions.buttons.annotator ? (i(), I(d(He), {
379
- key: 0,
380
- svgRef: d(pe),
381
- backgroundColor: e.value.style.chart.backgroundColor,
382
- color: e.value.style.chart.color,
383
- active: j.value,
384
- onClose: te
385
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
386
- qe.value ? (i(), u("div", {
387
- key: 1,
388
- ref_key: "noTitle",
389
- ref: ie,
390
- class: "vue-data-ui-no-title-space",
391
- style: "height:36px; width: 100%;background:transparent"
392
- }, null, 512)) : m("", !0),
393
- e.value.style.chart.title.text ? (i(), u("div", {
394
- key: 2,
395
- ref_key: "chartTitle",
396
- ref: oe,
397
- style: "width:100%;background:transparent;padding-bottom:24px"
398
- }, [
399
- (i(), I(St, {
400
- key: `title_${ue.value}`,
401
- config: {
402
- title: {
403
- cy: "pcp-div-title",
404
- ...e.value.style.chart.title
405
- },
406
- subtitle: {
407
- cy: "pcp-div-subtitle",
408
- ...e.value.style.chart.title.subtitle
409
- }
410
- }
411
- }, null, 8, ["config"]))
412
- ], 512)) : m("", !0),
413
- e.value.userOptions.show && P.value && (d(he) || d(J)) ? (i(), I(d(Ge), {
414
- ref: "details",
415
- key: `user_options_${le.value}`,
416
- backgroundColor: e.value.style.chart.backgroundColor,
417
- color: e.value.style.chart.color,
418
- isPrinting: d(fe),
419
- isImaging: d(ge),
420
- uid: q.value,
421
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
422
- hasPdf: e.value.userOptions.buttons.pdf,
423
- hasXls: e.value.userOptions.buttons.csv,
424
- hasImg: e.value.userOptions.buttons.img,
425
- hasTable: e.value.userOptions.buttons.table,
426
- hasLabel: e.value.userOptions.buttons.labels,
427
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
428
- isFullscreen: O.value,
429
- isTooltip: p.value.showTooltip,
430
- titles: { ...e.value.userOptions.buttonTitles },
431
- chartElement: M.value,
432
- position: e.value.userOptions.position,
433
- hasAnnotator: e.value.userOptions.buttons.annotator,
434
- isAnnotation: j.value,
435
- callbacks: e.value.userOptions.callbacks,
436
- printScale: e.value.userOptions.print.scale,
437
- onToggleFullscreen: ve,
438
- onGeneratePdf: d(be),
439
- onGenerateCsv: Ae,
440
- onGenerateImage: d(xe),
441
- onToggleTable: Me,
442
- onToggleLabels: Fe,
443
- onToggleTooltip: Se,
444
- onToggleAnnotator: te,
445
- style: z({
446
- visibility: d(he) ? d(J) ? "visible" : "hidden" : "visible"
447
- })
448
- }, it({ _: 2 }, [
449
- t.$slots.menuIcon ? {
450
- name: "menuIcon",
451
- fn: w(({ isOpen: a, color: o }) => [
452
- g(t.$slots, "menuIcon", B(U({ isOpen: a, color: o })), void 0, !0)
453
- ]),
454
- key: "0"
455
- } : void 0,
456
- t.$slots.optionPdf ? {
457
- name: "optionPdf",
458
- fn: w(() => [
459
- g(t.$slots, "optionPdf", {}, void 0, !0)
460
- ]),
461
- key: "1"
462
- } : void 0,
463
- t.$slots.optionCsv ? {
464
- name: "optionCsv",
465
- fn: w(() => [
466
- g(t.$slots, "optionCsv", {}, void 0, !0)
467
- ]),
468
- key: "2"
469
- } : void 0,
470
- t.$slots.optionImg ? {
471
- name: "optionImg",
472
- fn: w(() => [
473
- g(t.$slots, "optionImg", {}, void 0, !0)
474
- ]),
475
- key: "3"
476
- } : void 0,
477
- t.$slots.optionTable ? {
478
- name: "optionTable",
479
- fn: w(() => [
480
- g(t.$slots, "optionTable", {}, void 0, !0)
481
- ]),
482
- key: "4"
483
- } : void 0,
484
- t.$slots.optionLabels ? {
485
- name: "optionLabels",
486
- fn: w(() => [
487
- g(t.$slots, "optionLabels", {}, void 0, !0)
488
- ]),
489
- key: "5"
490
- } : void 0,
491
- t.$slots.optionFullscreen ? {
492
- name: "optionFullscreen",
493
- fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
494
- g(t.$slots, "optionFullscreen", B(U({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
495
- ]),
496
- key: "6"
497
- } : void 0,
498
- t.$slots.optionAnnotator ? {
499
- name: "optionAnnotator",
500
- fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
501
- g(t.$slots, "optionAnnotator", B(U({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
502
- ]),
503
- key: "7"
504
- } : void 0
505
- ]), 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),
506
- P.value ? (i(), u("svg", {
507
- key: 4,
508
- ref_key: "svgRef",
509
- ref: pe,
510
- xmlns: d(xt),
511
- class: W({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
512
- viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
513
- style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
514
- }, [
515
- _e(d(We)),
516
- t.$slots["chart-background"] ? (i(), u("foreignObject", {
517
- key: 0,
518
- x: r.value.left,
519
- y: r.value.top,
520
- width: r.value.width,
521
- height: r.value.height,
522
- style: {
523
- pointerEvents: "none"
524
- }
525
- }, [
526
- g(t.$slots, "chart-background", {}, void 0, !0)
527
- ], 8, Dt)) : m("", !0),
528
- (i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Rt, [
529
- E("line", {
530
- x1: r.value.left + k.value * o + k.value / 2,
531
- x2: r.value.left + k.value * o + k.value / 2,
532
- y1: r.value.top,
533
- y2: r.value.bottom,
534
- stroke: e.value.style.chart.yAxis.stroke,
535
- "stroke-width": e.value.style.chart.yAxis.strokeWidth
536
- }, null, 8, Et),
537
- String(a.name).includes(`
538
- `) ? (i(), u("text", {
539
- key: 1,
540
- x: r.value.left + k.value * o + k.value / 2,
541
- y: r.value.top - 24,
542
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
543
- "font-size": c.value.axisNameFontSize,
544
- "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
545
- "text-anchor": "middle",
546
- innerHTML: d(kt)({
547
- content: String(a.name),
548
- fontSize: c.value.axisNameFontSize,
549
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
550
- x: r.value.left + k.value * o + k.value / 2,
551
- y: r.value.top - 24
552
- })
553
- }, null, 8, Ut)) : (i(), u("text", {
554
- key: 0,
555
- x: r.value.left + k.value * o + k.value / 2,
556
- y: r.value.top - 24,
557
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
558
- "font-size": c.value.axisNameFontSize,
559
- "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
560
- "text-anchor": "middle"
561
- }, V(a.name), 9, Bt)),
562
- e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 2 }, [
563
- (i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
564
- x1: n.x,
565
- x2: n.x - 10,
566
- y1: n.y,
567
- y2: n.y,
568
- stroke: e.value.style.chart.yAxis.stroke,
569
- "stroke-width": e.value.style.chart.yAxis.strokeWidth,
570
- style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
571
- }, null, 12, Vt))), 256)),
572
- (i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
573
- x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
574
- y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
575
- fill: e.value.style.chart.yAxis.labels.ticks.color,
576
- "text-anchor": "end",
577
- "font-size": c.value.ticksFontSize,
578
- "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
579
- style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
580
- }, V(Ce({ value: n.value, index: o, datapoint: n })), 13, Wt))), 256))
581
- ], 64)) : m("", !0)
582
- ]))), 256)),
583
- (i(!0), u(C, null, _(Q.value, (a) => (i(), u("g", null, [
584
- (i(!0), u(C, null, _(a.series, (o, n) => (i(), u("g", null, [
585
- e.value.style.chart.plots.show ? (i(), u("g", Ht, [
586
- (i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(_t, {
587
- plot: { x: s.x, y: s.y },
588
- color: a.color,
589
- shape: a.shape,
590
- radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
591
- stroke: e.value.style.chart.backgroundColor,
592
- strokeWidth: 0.5,
593
- onMouseenter: (v) => H({
594
- shape: a.shape,
595
- serieName: a.name,
596
- serie: o,
597
- relativeIndex: n,
598
- seriesIndex: o.seriesIndex
599
- }),
600
- onMouseleave: l[0] || (l[0] = (v) => {
601
- f.value = null, D.value = !1;
602
- }),
603
- style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
604
- onClick: () => et(s)
605
- }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
606
- p.value.showTooltip ? m("", !0) : (i(), u(C, { key: 0 }, [
607
- f.value && f.value === o.id && o.datapoints.length ? (i(), u("text", {
608
- key: 0,
609
- x: o.datapoints[0].x - c.value.ticksFontSize,
610
- y: o.datapoints[0].y + c.value.ticksFontSize / 3,
611
- "text-anchor": "end",
612
- "font-size": c.value.ticksFontSize,
613
- fill: a.color,
614
- "font-weight": "bold"
615
- }, V(o.name), 9, jt)) : m("", !0)
616
- ], 64)),
617
- e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s) => (i(), u("g", null, [
618
- s.comment ? (i(), u("foreignObject", {
619
- key: 0,
620
- style: { overflow: "visible" },
621
- height: "12",
622
- width: e.value.style.chart.comments.width,
623
- x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
624
- y: s.y + e.value.style.chart.comments.offsetY + 6
625
- }, [
626
- E("div", Gt, [
627
- g(t.$slots, "plot-comment", {
628
- plot: { ...s, color: a.color }
629
- }, void 0, !0)
630
- ])
631
- ], 8, Xt)) : m("", !0)
632
- ]))), 256)) : m("", !0)
633
- ])) : m("", !0),
634
- p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, v) => (i(), u("text", {
635
- x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
636
- y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
637
- fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
638
- "text-anchor": "start",
639
- "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
640
- class: W({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
641
- "font-size": c.value.datapointFontSize,
642
- onMouseenter: (A) => H({
643
- shape: a.shape,
644
- serieName: a.name,
645
- serie: o,
646
- relativeIndex: n,
647
- seriesIndex: o.seriesIndex
648
- }),
649
- onMouseleave: l[1] || (l[1] = (A) => {
650
- f.value = null, D.value = !1;
651
- }),
652
- style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
653
- }, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) : m("", !0),
654
- E("path", {
655
- d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
656
- stroke: a.color,
657
- "stroke-width": e.value.style.chart.lines.strokeWidth,
658
- fill: "none",
659
- class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
660
- onMouseenter: (s) => H({
661
- shape: a.shape,
662
- serieName: a.name,
663
- serie: o,
664
- relativeIndex: n,
665
- seriesIndex: o.seriesIndex
666
- }),
667
- onMouseleave: l[2] || (l[2] = (s) => {
668
- f.value = null, D.value = !1;
669
- }),
670
- style: z(`opacity:${f.value ? f.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}`)
671
- }, null, 46, qt),
672
- p.value.showTooltip ? (i(), u("path", {
673
- key: 2,
674
- d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
675
- stroke: "transparent",
676
- "stroke-width": 12,
677
- fill: "none",
678
- class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
679
- onMouseenter: (s) => H({
680
- shape: a.shape,
681
- serieName: a.name,
682
- serie: o,
683
- relativeIndex: n,
684
- seriesIndex: o.seriesIndex
685
- }),
686
- onMouseleave: l[3] || (l[3] = (s) => {
687
- f.value = null, D.value = !1;
688
- }),
689
- style: { opacity: "0" }
690
- }, null, 42, Jt)) : m("", !0)
691
- ]))), 256))
692
- ]))), 256)),
693
- g(t.$slots, "svg", { svg: r.value }, void 0, !0)
694
- ], 14, Lt)) : m("", !0),
695
- t.$slots.watermark ? (i(), u("div", Kt, [
696
- g(t.$slots, "watermark", B(U({ isPrinting: d(fe) || d(ge) })), void 0, !0)
697
- ])) : m("", !0),
698
- P.value ? m("", !0) : (i(), I(d(je), {
699
- key: 6,
700
- config: {
701
- type: "parallelCoordinatePlot",
702
- style: {
703
- backgroundColor: e.value.style.chart.backgroundColor
704
- }
705
- }
706
- }, null, 8, ["config"])),
707
- E("div", {
708
- ref_key: "chartLegend",
709
- ref: se
710
- }, [
711
- e.value.style.chart.legend.show && P.value ? (i(), I(It, {
712
- key: `legend_${re.value}`,
713
- legendSet: Ke.value,
714
- config: Qe.value,
715
- onClickMarker: l[4] || (l[4] = ({ legend: a }) => {
716
- ke(a.id), Te(a);
717
- })
718
- }, {
719
- item: w(({ legend: a, index: o }) => [
720
- E("div", {
721
- onClick: (n) => {
722
- a.segregate(), Te(a);
723
- },
724
- style: z(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
725
- }, V(a.name), 13, Qt)
726
- ]),
727
- _: 1
728
- }, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
729
- key: 1,
730
- legend: S.value
731
- }, void 0, !0)
732
- ], 512),
733
- t.$slots.source ? (i(), u("div", {
734
- key: 7,
735
- ref_key: "source",
736
- ref: ne,
737
- dir: "auto"
738
- }, [
739
- g(t.$slots, "source", {}, void 0, !0)
740
- ], 512)) : m("", !0),
741
- _e(d(Xe), {
742
- show: p.value.showTooltip && D.value,
743
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
744
- color: e.value.style.chart.tooltip.color,
745
- fontSize: e.value.style.chart.tooltip.fontSize,
746
- borderRadius: e.value.style.chart.tooltip.borderRadius,
747
- borderColor: e.value.style.chart.tooltip.borderColor,
748
- borderWidth: e.value.style.chart.tooltip.borderWidth,
749
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
750
- position: e.value.style.chart.tooltip.position,
751
- offsetY: e.value.style.chart.tooltip.offsetY,
752
- parent: M.value,
753
- content: ee.value,
754
- isFullscreen: O.value,
755
- isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat)
756
- }, {
757
- "tooltip-before": w(() => [
758
- g(t.$slots, "tooltip-before", B(U({ ...Z.value })), void 0, !0)
759
- ]),
760
- "tooltip-after": w(() => [
761
- g(t.$slots, "tooltip-after", B(U({ ...Z.value })), void 0, !0)
762
- ]),
763
- _: 3
764
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
765
- P.value ? (i(), I(d(Ue), {
766
- key: 8,
767
- hideDetails: "",
768
- config: {
769
- open: p.value.showTable,
770
- maxHeight: 1e4,
771
- body: {
772
- backgroundColor: e.value.style.chart.backgroundColor,
773
- color: e.value.style.chart.color
774
- },
775
- head: {
776
- backgroundColor: e.value.style.chart.backgroundColor,
777
- color: e.value.style.chart.color
778
- }
779
- }
780
- }, {
781
- content: w(() => [
782
- (i(), I(d(Ve), {
783
- key: `table_${ce.value}`,
784
- colNames: R.value.colNames,
785
- head: R.value.head,
786
- body: R.value.body,
787
- config: R.value.config,
788
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
789
- onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
790
- }, {
791
- th: w(({ th: a }) => [
792
- E("div", { innerHTML: a }, null, 8, Zt)
793
- ]),
794
- td: w(({ td: a }) => [
795
- ut(V(a), 1)
796
- ]),
797
- _: 1
798
- }, 8, ["colNames", "head", "body", "config", "title"]))
799
- ]),
800
- _: 1
801
- }, 8, ["config"])) : m("", !0)
802
- ], 46, Ot));
803
- }
804
- }, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-0e1743f3"]]);
805
- export {
806
- ha as default
807
- };