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