vue-data-ui 3.0.0-next.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  35. package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-O07lQwRC.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-Hh7nGEjp.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
  107. package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
  108. package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
  109. package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
  110. package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
  111. package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
  112. package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
  113. package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
  114. package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
  115. package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
  116. package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
  117. package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
  118. package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
  119. package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
  120. package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
  121. package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
  122. package/dist/vue-ui-onion-B9thdF_c.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
  124. package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
  125. package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
  126. package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
  127. package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
  128. package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
  129. package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
  130. package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
  131. package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
  132. package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
  134. package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
  136. package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
  137. package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
  138. package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
  139. package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
  140. package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
  141. package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
  142. package/dist/vue-ui-wheel-C6uAotal.js +0 -352
  143. package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
  144. package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
@@ -1,761 +0,0 @@
1
- import { defineAsyncComponent as A, computed as f, ref as v, watch as Qe, shallowRef as Ae, onMounted as Ze, onBeforeUnmount as et, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as Y, normalizeClass as R, createBlock as S, createCommentVNode as c, createVNode as Se, createSlots as tt, withCtx as y, renderSlot as p, normalizeProps as F, guardReactiveProps as I, createElementVNode as x, Fragment as k, renderList as T, toDisplayString as z, mergeProps as lt, createTextVNode as at, nextTick as ot } from "vue";
2
- import { u as st, c as le, t as rt, p as O, a as ut, o as it, e as ae, g as ze, b as nt, d as Oe, v as vt, D as ct, f as j, X as ht, i as oe, I as dt, l as pt, h as ft, x as Pe, E as yt, q as bt, r as mt, y as gt } from "./index-Cfm5-hMQ.js";
3
- import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ne } from "./useNestedProp-Hh7nGEjp.js";
5
- import { u as wt } from "./usePrinter-B1Hgs47c.js";
6
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
8
- import Tt from "./Title-BSlAPr_H.js";
9
- import { _ as _t } from "./Shape-BGr3dQKt.js";
10
- import Lt from "./img-CgMUOQnb.js";
11
- import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], Pt = { key: 1 }, Nt = { key: 0 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = { key: 1 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x", "y", "fill", "font-size"], Rt = ["x", "y", "font-size", "fill"], Et = ["x", "y", "font-size", "fill", "innerHTML"], Vt = ["fill", "font-size", "transform"], Ht = ["fill", "font-size", "x", "y"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Bt = ["cx", "cy", "fill"], Xt = ["cx", "cy", "fill"], Yt = ["id"], jt = ["stop-color"], qt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 0 }, Qt = ["x", "y", "font-size", "fill"], Zt = {
13
- key: 5,
14
- class: "vue-data-ui-watermark"
15
- }, el = ["innerHTML"], tl = {
16
- __name: "vue-ui-strip-plot",
17
- props: {
18
- config: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- },
24
- dataset: {
25
- type: Array,
26
- default() {
27
- return [];
28
- }
29
- }
30
- },
31
- emits: ["selectDatapoint"],
32
- setup(Me, { expose: Fe, emit: Ie }) {
33
- const We = A(() => import("./vue-ui-accordion-CEDGlyKI.js")), De = A(() => import("./DataTable-D36ZRtpU.js")), Ge = A(() => import("./PackageVersion-CGQlqnmq.js")), Re = A(() => import("./PenAndPaper-B5slIHlh.js")), Ee = A(() => import("./vue-ui-skeleton-P-1SRvsT.js")), Ve = A(() => import("./Tooltip-lPcsweXz.js")), He = A(() => import("./UserOptions-Dn5TCQxg.js")), { vue_ui_strip_plot: Ue } = st(), b = Me, Be = Ie, _ = f({
34
- get() {
35
- return !!b.dataset && b.dataset.length;
36
- },
37
- set(t) {
38
- return t;
39
- }
40
- }), q = v(le()), se = v(0), J = v(!1), K = v(""), C = v(null), re = v(null), ue = v(null), ie = v(null), ne = v(!1), ve = v(0), ce = v(0), e = f({
41
- get: () => fe(),
42
- set: (t) => t
43
- }), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = Ct({ config: e.value }), { svgRef: pe } = $t({ config: e.value.style.chart.title });
44
- function fe() {
45
- const t = Ne({
46
- userConfig: b.config,
47
- defaultConfig: Ue
48
- });
49
- return t.theme ? {
50
- ...Ne({
51
- userConfig: ut.vue_ui_strip_plot[t.theme] || b.config,
52
- defaultConfig: t
53
- }),
54
- customPalette: rt[t.theme] || O
55
- } : t;
56
- }
57
- Qe(() => b.config, (t) => {
58
- e.value = fe(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ve.value += 1, ce.value += 1, d.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
59
- }, { deep: !0 });
60
- const $ = Ae(null), P = Ae(null);
61
- Ze(() => {
62
- ye();
63
- });
64
- function ye() {
65
- if (it(b.dataset) ? ae({
66
- componentName: "VueUiStripPlot",
67
- type: "dataset"
68
- }) : b.dataset.forEach((t, o) => {
69
- ze({
70
- datasetObject: t,
71
- requiredAttributes: ["name", "plots"]
72
- }).forEach((l) => {
73
- _.value = !1, ae({
74
- componentName: "VueUiStripPlot",
75
- type: "datasetSerieAttribute",
76
- property: l,
77
- index: o
78
- });
79
- }), t.plots && t.plots.forEach((l, s) => {
80
- ze({
81
- datasetObject: l,
82
- requiredAttributes: ["name", "value"]
83
- }).forEach((i) => {
84
- _.value = !1, ae({
85
- componentName: "VueUiStripPlot",
86
- type: "datasetSerieAttribute",
87
- property: i,
88
- index: `${o},${s}`
89
- });
90
- });
91
- });
92
- }), e.value.responsive) {
93
- const t = kt(() => {
94
- const { width: o, height: l } = xt({
95
- chart: C.value,
96
- title: e.value.style.chart.title.text ? re.value : null,
97
- source: ue.value,
98
- noTitle: ie.value
99
- });
100
- requestAnimationFrame(() => {
101
- E.value = l, N.value.width = o, N.value.height = l, D.value = (o - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = yt({
102
- relator: Math.min(l, o),
103
- adjuster: 600,
104
- source: e.value.style.chart.plots.radius,
105
- threshold: 6,
106
- fallback: 6
107
- }) : G.value = e.value.style.chart.plots.radius;
108
- });
109
- });
110
- $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
111
- }
112
- ne.value = !0, setTimeout(() => {
113
- W.value = !1;
114
- }, Ye.value * 50);
115
- }
116
- et(() => {
117
- $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
118
- });
119
- const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = wt({
120
- elementId: `strip-plot_${q.value}`,
121
- fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
122
- options: e.value.userOptions.print
123
- }), Xe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => nt(e.value.customPalette)), W = v(e.value.useCssAnimation), d = v({
124
- showTable: e.value.table.show,
125
- dataLabels: {
126
- show: e.value.style.chart.labels.bestPlotLabel.show
127
- },
128
- showTooltip: e.value.style.chart.tooltip.show
129
- }), m = v({
130
- top: e.value.style.chart.padding.top,
131
- bottom: e.value.style.chart.padding.bottom,
132
- left: e.value.style.chart.padding.left,
133
- right: e.value.style.chart.padding.right
134
- }), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), N = v({
135
- width: D.value * b.dataset.length + m.value.left + m.value.right,
136
- height: e.value.style.chart.height
137
- }), a = f(() => {
138
- const t = D.value * b.dataset.length + m.value.left + m.value.right;
139
- return {
140
- left: m.value.left,
141
- right: t - m.value.right,
142
- top: m.value.top,
143
- bottom: E.value - m.value.bottom,
144
- width: D.value * b.dataset.length,
145
- height: E.value - m.value.top - m.value.bottom,
146
- stripWidth: D.value,
147
- absoluteHeight: E.value,
148
- absoluteWidth: t
149
- };
150
- }), V = f(() => _.value ? b.dataset.map((t, o) => {
151
- const l = le();
152
- return {
153
- ...t,
154
- id: l,
155
- color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
156
- plots: t.plots.map((s) => ({
157
- ...s,
158
- value: vt(s.value),
159
- parentId: l,
160
- color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
161
- id: le()
162
- })).sort((s, i) => s.value - i.value)
163
- };
164
- }) : null), w = f(() => (V.value || []).map((t, o) => ({
165
- ...t,
166
- plots: t.plots.map((l) => ({
167
- ...l,
168
- x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
169
- }))
170
- }))), Ye = f(() => Math.max(...w.value.map((t) => t.plots.length))), Z = f(() => {
171
- const t = w.value.flatMap((o) => o.plots.map((l) => l.value));
172
- return {
173
- max: Math.max(...t),
174
- min: Math.min(...t)
175
- };
176
- }), L = f(() => ct(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), je = f(() => (w.value || []).map((t, o) => ({
177
- ...t,
178
- plots: t.plots.map((l) => ({
179
- ...l,
180
- y: a.value.bottom - (l.value + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min)) * a.value.height
181
- }))
182
- }))), we = f(() => L.value.ticks.map((t) => ({
183
- y: a.value.bottom - a.value.height * ((t + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min))),
184
- x1: a.value.left,
185
- x2: a.value.right,
186
- value: t
187
- }))), ee = v(null), h = v(null);
188
- function qe({ datapoint: t, seriesIndex: o }) {
189
- ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: V.value }, J.value = !0, h.value = t;
190
- const l = e.value.style.chart.tooltip.customFormat;
191
- if (Pe(l) && gt(() => l({
192
- seriesIndex: o,
193
- datapoint: t,
194
- series: V.value,
195
- config: e.value
196
- })))
197
- K.value = l({
198
- seriesIndex: o,
199
- datapoint: t,
200
- series: V.value,
201
- config: e.value
202
- });
203
- else {
204
- let s = "";
205
- s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${oe(
206
- e.value.style.chart.labels.formatter,
207
- t.value,
208
- j({
209
- p: e.value.style.chart.labels.prefix,
210
- v: t.value,
211
- s: e.value.style.chart.labels.suffix,
212
- r: e.value.style.chart.tooltip.roundingValue
213
- }),
214
- { datapoint: t, seriesIndex: o }
215
- )}</div>`, K.value = `<div>${s}</div>`;
216
- }
217
- }
218
- const H = f(() => {
219
- const t = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => ({
220
- name: `${l.name} - ${s.name}`,
221
- color: s.color
222
- }))), o = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => s.value));
223
- return { head: t, body: o };
224
- });
225
- function Ce(t = null) {
226
- ot(() => {
227
- const o = H.value.head.map((i, g) => [[
228
- i.name
229
- ], [H.value.body[g]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(o), s = bt(l);
230
- t ? t(s) : mt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
231
- });
232
- }
233
- const U = f(() => {
234
- const t = [
235
- e.value.table.columnNames.series,
236
- e.value.table.columnNames.value
237
- ], o = H.value.head.map((i, g) => {
238
- const X = j({
239
- p: e.value.style.chart.labels.prefix,
240
- v: H.value.body[g],
241
- s: e.value.style.chart.labels.suffix,
242
- r: e.value.table.td.roundingValue
243
- });
244
- return [
245
- {
246
- color: i.color,
247
- name: i.name
248
- },
249
- X
250
- ];
251
- }), l = {
252
- th: {
253
- backgroundColor: e.value.table.th.backgroundColor,
254
- color: e.value.table.th.color,
255
- outline: e.value.table.th.outline
256
- },
257
- td: {
258
- backgroundColor: e.value.table.td.backgroundColor,
259
- color: e.value.table.td.color,
260
- outline: e.value.table.td.outline
261
- },
262
- breakpoint: e.value.table.responsiveBreakpoint
263
- };
264
- return {
265
- colNames: [
266
- e.value.table.columnNames.series,
267
- e.value.table.columnNames.value
268
- ],
269
- head: t,
270
- body: o,
271
- config: l
272
- };
273
- }), M = v(!1);
274
- function $e(t) {
275
- M.value = t, se.value += 1;
276
- }
277
- function Je() {
278
- return w.value;
279
- }
280
- function Te() {
281
- d.value.showTable = !d.value.showTable;
282
- }
283
- function _e() {
284
- d.value.dataLabels.show = !d.value.dataLabels.show;
285
- }
286
- function Le() {
287
- d.value.showTooltip = !d.value.showTooltip;
288
- }
289
- const B = v(!1);
290
- function te() {
291
- B.value = !B.value;
292
- }
293
- async function Ke({ scale: t = 2 } = {}) {
294
- if (!C.value) return;
295
- const { width: o, height: l } = C.value.getBoundingClientRect(), s = o / l, { imageUri: i, base64: g } = await Lt({ domElement: C.value, base64: !0, img: !0, scale: t });
296
- return {
297
- imageUri: i,
298
- base64: g,
299
- title: e.value.style.chart.title.text,
300
- width: o,
301
- height: l,
302
- aspectRatio: s
303
- };
304
- }
305
- return Fe({
306
- getData: Je,
307
- getImage: Ke,
308
- generatePdf: ge,
309
- generateCsv: Ce,
310
- generateImage: ke,
311
- toggleTable: Te,
312
- toggleLabels: _e,
313
- toggleTooltip: Le,
314
- toggleAnnotator: te,
315
- toggleFullscreen: $e
316
- }), (t, o) => (r(), u("div", {
317
- ref_key: "stripPlotChart",
318
- ref: C,
319
- class: R(`vue-ui-strip-plot ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
320
- style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
321
- id: `strip-plot_${q.value}`,
322
- onMouseenter: o[2] || (o[2] = () => n(he)(!0)),
323
- onMouseleave: o[3] || (o[3] = () => n(he)(!1))
324
- }, [
325
- e.value.userOptions.buttons.annotator ? (r(), S(n(Re), {
326
- key: 0,
327
- svgRef: n(pe),
328
- backgroundColor: e.value.style.chart.backgroundColor,
329
- color: e.value.style.chart.color,
330
- active: B.value,
331
- onClose: te
332
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
333
- Xe.value ? (r(), u("div", {
334
- key: 1,
335
- ref_key: "noTitle",
336
- ref: ie,
337
- class: "vue-data-ui-no-title-space",
338
- style: "height:36px; width: 100%;background:transparent"
339
- }, null, 512)) : c("", !0),
340
- e.value.style.chart.title.text ? (r(), u("div", {
341
- key: 2,
342
- ref_key: "chartTitle",
343
- ref: re,
344
- style: "width:100%;background:transparent;padding-bottom:24px"
345
- }, [
346
- (r(), S(Tt, {
347
- key: `title_${ve.value}`,
348
- config: {
349
- title: {
350
- cy: "donut-div-title",
351
- ...e.value.style.chart.title
352
- },
353
- subtitle: {
354
- cy: "donut-div-subtitle",
355
- ...e.value.style.chart.title.subtitle
356
- }
357
- }
358
- }, null, 8, ["config"]))
359
- ], 512)) : c("", !0),
360
- e.value.userOptions.show && _.value && (n(de) || n(Q)) ? (r(), S(n(He), {
361
- ref: "details",
362
- key: `user_option_${se.value}`,
363
- backgroundColor: e.value.style.chart.backgroundColor,
364
- color: e.value.style.chart.color,
365
- isPrinting: n(be),
366
- isImaging: n(me),
367
- uid: q.value,
368
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
369
- hasPdf: e.value.userOptions.buttons.pdf,
370
- hasXls: e.value.userOptions.buttons.csv,
371
- hasImg: e.value.userOptions.buttons.img,
372
- hasTable: e.value.userOptions.buttons.table,
373
- hasLabel: e.value.userOptions.buttons.labels,
374
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
375
- isTooltip: d.value.showTooltip,
376
- isFullscreen: M.value,
377
- titles: { ...e.value.userOptions.buttonTitles },
378
- chartElement: C.value,
379
- position: e.value.userOptions.position,
380
- hasAnnotator: e.value.userOptions.buttons.annotator,
381
- isAnnotation: B.value,
382
- callbacks: e.value.userOptions.callbacks,
383
- printScale: e.value.userOptions.print.scale,
384
- onToggleFullscreen: $e,
385
- onGeneratePdf: n(ge),
386
- onGenerateCsv: Ce,
387
- onGenerateImage: n(ke),
388
- onToggleTable: Te,
389
- onToggleLabels: _e,
390
- onToggleTooltip: Le,
391
- onToggleAnnotator: te,
392
- style: Y({
393
- visibility: n(de) ? n(Q) ? "visible" : "hidden" : "visible"
394
- })
395
- }, tt({ _: 2 }, [
396
- t.$slots.menuIcon ? {
397
- name: "menuIcon",
398
- fn: y(({ isOpen: l, color: s }) => [
399
- p(t.$slots, "menuIcon", F(I({ isOpen: l, color: s })), void 0, !0)
400
- ]),
401
- key: "0"
402
- } : void 0,
403
- t.$slots.optionTooltip ? {
404
- name: "optionTooltip",
405
- fn: y(() => [
406
- p(t.$slots, "optionTooltip", {}, void 0, !0)
407
- ]),
408
- key: "1"
409
- } : void 0,
410
- t.$slots.optionPdf ? {
411
- name: "optionPdf",
412
- fn: y(() => [
413
- p(t.$slots, "optionPdf", {}, void 0, !0)
414
- ]),
415
- key: "2"
416
- } : void 0,
417
- t.$slots.optionCsv ? {
418
- name: "optionCsv",
419
- fn: y(() => [
420
- p(t.$slots, "optionCsv", {}, void 0, !0)
421
- ]),
422
- key: "3"
423
- } : void 0,
424
- t.$slots.optionImg ? {
425
- name: "optionImg",
426
- fn: y(() => [
427
- p(t.$slots, "optionImg", {}, void 0, !0)
428
- ]),
429
- key: "4"
430
- } : void 0,
431
- t.$slots.optionTable ? {
432
- name: "optionTable",
433
- fn: y(() => [
434
- p(t.$slots, "optionTable", {}, void 0, !0)
435
- ]),
436
- key: "5"
437
- } : void 0,
438
- t.$slots.optionLabels ? {
439
- name: "optionLabels",
440
- fn: y(() => [
441
- p(t.$slots, "optionLabels", {}, void 0, !0)
442
- ]),
443
- key: "6"
444
- } : void 0,
445
- t.$slots.optionFullscreen ? {
446
- name: "optionFullscreen",
447
- fn: y(({ toggleFullscreen: l, isFullscreen: s }) => [
448
- p(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
449
- ]),
450
- key: "7"
451
- } : void 0,
452
- t.$slots.optionAnnotator ? {
453
- name: "optionAnnotator",
454
- fn: y(({ toggleAnnotator: l, isAnnotator: s }) => [
455
- p(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
456
- ]),
457
- key: "8"
458
- } : void 0
459
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
460
- _.value ? (r(), u("svg", {
461
- key: 4,
462
- ref_key: "svgRef",
463
- ref: pe,
464
- xmlns: n(ht),
465
- class: R({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
466
- viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
467
- style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
468
- }, [
469
- Se(n(Ge)),
470
- t.$slots["chart-background"] ? (r(), u("foreignObject", {
471
- key: 0,
472
- x: a.value.left,
473
- y: a.value.top,
474
- width: Math.max(0.1, a.value.width),
475
- height: Math.max(0.1, a.value.height),
476
- style: {
477
- pointerEvents: "none"
478
- }
479
- }, [
480
- p(t.$slots, "chart-background", {}, void 0, !0)
481
- ], 8, Ot)) : c("", !0),
482
- e.value.style.chart.grid.show ? (r(), u("g", Pt, [
483
- e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", Nt, [
484
- (r(!0), u(k, null, T(we.value, (l) => (r(), u("line", {
485
- x1: l.x1,
486
- x2: l.x2,
487
- y1: l.y,
488
- y2: l.y,
489
- stroke: e.value.style.chart.grid.horizontalGrid.stroke,
490
- "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
491
- "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
492
- "stroke-linecap": "round"
493
- }, null, 8, Mt))), 256))
494
- ])) : c("", !0),
495
- e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Ft, [
496
- (r(!0), u(k, null, T(w.value, (l, s) => (r(), u("line", {
497
- x1: a.value.left + (s + 1) * a.value.stripWidth,
498
- x2: a.value.left + (s + 1) * a.value.stripWidth,
499
- y1: a.value.top,
500
- y2: a.value.bottom,
501
- stroke: e.value.style.chart.grid.verticalGrid.stroke,
502
- "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
503
- "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
504
- "stroke-linecap": "round"
505
- }, null, 8, It))), 256))
506
- ])) : c("", !0),
507
- x("line", {
508
- x1: a.value.left,
509
- x2: a.value.left,
510
- y1: a.value.top,
511
- y2: a.value.bottom,
512
- stroke: e.value.style.chart.grid.stroke,
513
- "stroke-width": e.value.style.chart.grid.strokeWidth,
514
- "stroke-linecap": "round"
515
- }, null, 8, Wt),
516
- x("line", {
517
- x1: a.value.left,
518
- x2: a.value.right,
519
- y1: a.value.bottom,
520
- y2: a.value.bottom,
521
- stroke: e.value.style.chart.grid.stroke,
522
- "stroke-width": e.value.style.chart.grid.strokeWidth,
523
- "stroke-linecap": "round"
524
- }, null, 8, Dt)
525
- ])) : c("", !0),
526
- e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(k, { key: 2 }, T(we.value, (l, s) => (r(), u("text", {
527
- x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
528
- y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
529
- fill: e.value.style.chart.labels.yAxisLabels.color,
530
- "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
531
- "text-anchor": "end"
532
- }, z(n(oe)(
533
- e.value.style.chart.labels.formatter,
534
- l.value,
535
- n(j)({
536
- p: e.value.style.chart.labels.prefix,
537
- v: l.value,
538
- s: e.value.style.chart.labels.suffix,
539
- r: e.value.style.chart.labels.yAxisLabels.rounding
540
- }),
541
- { datapoint: l, seriesIndex: s }
542
- )), 9, Gt))), 256)) : c("", !0),
543
- e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(k, { key: 3 }, T(w.value, (l, s) => (r(), u("g", null, [
544
- String(l.name).includes(`
545
- `) ? (r(), u("text", {
546
- key: 1,
547
- x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
548
- y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
549
- "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
550
- fill: e.value.style.chart.labels.xAxisLabels.color,
551
- "text-anchor": "middle",
552
- innerHTML: n(dt)({
553
- content: String(l.name),
554
- fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
555
- fill: e.value.style.chart.labels.xAxisLabels.color,
556
- x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
557
- y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
558
- })
559
- }, null, 8, Et)) : (r(), u("text", {
560
- key: 0,
561
- x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
562
- y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
563
- "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
564
- fill: e.value.style.chart.labels.xAxisLabels.color,
565
- "text-anchor": "middle"
566
- }, z(l.name), 9, Rt))
567
- ]))), 256)) : c("", !0),
568
- e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
569
- key: 4,
570
- fill: e.value.style.chart.labels.axis.color,
571
- "font-size": e.value.style.chart.labels.axis.fontSize,
572
- transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
573
- "text-anchor": "middle"
574
- }, z(e.value.style.chart.labels.axis.yLabel), 9, Vt)) : c("", !0),
575
- e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
576
- key: 5,
577
- fill: e.value.style.chart.labels.axis.color,
578
- "font-size": e.value.style.chart.labels.axis.fontSize,
579
- x: a.value.left + a.value.width / 2,
580
- y: a.value.absoluteHeight,
581
- "text-anchor": "middle"
582
- }, z(e.value.style.chart.labels.axis.xLabel), 9, Ht)) : c("", !0),
583
- h.value ? (r(), u(k, { key: 6 }, [
584
- x("line", {
585
- x1: a.value.left,
586
- x2: a.value.right,
587
- y1: h.value.y,
588
- y2: h.value.y,
589
- stroke: h.value.color,
590
- "stroke-width": 1,
591
- class: R({ "select-circle": e.value.useCssAnimation })
592
- }, null, 10, Ut),
593
- x("circle", {
594
- cx: a.value.left,
595
- cy: h.value.y,
596
- r: 3,
597
- fill: h.value.color,
598
- class: R({ "select-circle": e.value.useCssAnimation })
599
- }, null, 10, Bt),
600
- x("circle", {
601
- cx: a.value.right,
602
- cy: h.value.y,
603
- r: 3,
604
- fill: h.value.color,
605
- class: R({ "select-circle": e.value.useCssAnimation })
606
- }, null, 10, Xt)
607
- ], 64)) : c("", !0),
608
- x("defs", null, [
609
- (r(!0), u(k, null, T(w.value, (l) => (r(), u("radialGradient", {
610
- id: l.id,
611
- fy: "30%"
612
- }, [
613
- x("stop", {
614
- offset: "10%",
615
- "stop-color": n(pt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
616
- }, null, 8, jt),
617
- x("stop", {
618
- offset: "90%",
619
- "stop-color": n(ft)(l.color, 0.1)
620
- }, null, 8, qt),
621
- x("stop", {
622
- offset: "100%",
623
- "stop-color": l.color
624
- }, null, 8, Jt)
625
- ], 8, Yt))), 256))
626
- ]),
627
- (r(!0), u(k, null, T(je.value, (l, s) => (r(), u(k, null, [
628
- (r(!0), u(k, null, T(l.plots, (i, g) => (r(), S(_t, lt({
629
- plot: { x: i.x, y: ne.value ? i.y : a.value.top },
630
- radius: h.value && h.value.id === i.id ? G.value * 1.5 : G.value,
631
- shape: e.value.style.chart.plots.shape,
632
- stroke: e.value.style.chart.plots.stroke,
633
- strokeWidth: e.value.style.chart.plots.strokeWidth,
634
- color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
635
- onMouseenter: (X) => qe({ datapoint: i, seriesIndex: g }),
636
- onMouseleave: o[0] || (o[0] = (X) => {
637
- J.value = !1, h.value = null;
638
- }),
639
- onClick: (X) => Be("selectDatapoint", i),
640
- style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === i.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${W.value ? `transition-delay:${g * 50}ms` : ""}`,
641
- class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
642
- }, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
643
- d.value.dataLabels.show ? (r(), u("g", Kt, [
644
- (r(!0), u(k, null, T(l.plots, (i, g) => (r(), u(k, null, [
645
- g === l.plots.length - 1 || h.value && h.value.id === i.id && !d.value.showTooltip ? (r(), u("text", {
646
- key: 0,
647
- x: i.x,
648
- y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === i.id && !d.value.showTooltip ? 2 : 1.5),
649
- "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
650
- fill: e.value.style.chart.labels.bestPlotLabel.color,
651
- "text-anchor": "middle",
652
- style: Y(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
653
- }, z(i.name) + " " + z(e.value.style.chart.labels.bestPlotLabel.showValue ? n(oe)(
654
- e.value.style.chart.labels.formatter,
655
- i.value,
656
- n(j)({
657
- p: `(${e.value.style.chart.labels.prefix}`,
658
- v: i.value,
659
- s: `${e.value.style.chart.labels.suffix})`,
660
- r: e.value.style.chart.labels.bestPlotLabel.rounding
661
- }),
662
- { datapoint: i, seriesIndex: g }
663
- ) : ""), 13, Qt)) : c("", !0)
664
- ], 64))), 256))
665
- ])) : c("", !0)
666
- ], 64))), 256)),
667
- p(t.$slots, "svg", { svg: a.value }, void 0, !0)
668
- ], 14, zt)) : c("", !0),
669
- t.$slots.watermark ? (r(), u("div", Zt, [
670
- p(t.$slots, "watermark", F(I({ isPrinting: n(be) || n(me) })), void 0, !0)
671
- ])) : c("", !0),
672
- _.value ? c("", !0) : (r(), S(n(Ee), {
673
- key: 6,
674
- config: {
675
- type: "stripPlot",
676
- style: {
677
- backgroundColor: e.value.style.chart.backgroundColor,
678
- stripPlot: {
679
- color: "#CCCCCC"
680
- }
681
- }
682
- }
683
- }, null, 8, ["config"])),
684
- t.$slots.source ? (r(), u("div", {
685
- key: 7,
686
- ref_key: "source",
687
- ref: ue,
688
- dir: "auto"
689
- }, [
690
- p(t.$slots, "source", {}, void 0, !0)
691
- ], 512)) : c("", !0),
692
- Se(n(Ve), {
693
- show: d.value.showTooltip && J.value,
694
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
695
- color: e.value.style.chart.tooltip.color,
696
- borderRadius: e.value.style.chart.tooltip.borderRadius,
697
- borderColor: e.value.style.chart.tooltip.borderColor,
698
- borderWidth: e.value.style.chart.tooltip.borderWidth,
699
- fontSize: e.value.style.chart.tooltip.fontSize,
700
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
701
- position: e.value.style.chart.tooltip.position,
702
- offsetY: e.value.style.chart.tooltip.offsetY,
703
- parent: C.value,
704
- content: K.value,
705
- isFullscreen: M.value,
706
- isCustom: n(Pe)(e.value.style.chart.tooltip.customFormat)
707
- }, {
708
- "tooltip-before": y(() => [
709
- p(t.$slots, "tooltip-before", F(I({ ...ee.value })), void 0, !0)
710
- ]),
711
- "tooltip-after": y(() => [
712
- p(t.$slots, "tooltip-after", F(I({ ...ee.value })), void 0, !0)
713
- ]),
714
- _: 3
715
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
716
- _.value ? (r(), S(n(We), {
717
- key: 8,
718
- hideDetails: "",
719
- config: {
720
- open: d.value.showTable,
721
- maxHeight: 1e4,
722
- body: {
723
- backgroundColor: e.value.style.chart.backgroundColor,
724
- color: e.value.style.chart.color
725
- },
726
- head: {
727
- backgroundColor: e.value.style.chart.backgroundColor,
728
- color: e.value.style.chart.color
729
- }
730
- }
731
- }, {
732
- content: y(() => [
733
- (r(), S(n(De), {
734
- key: `table_${ce.value}`,
735
- colNames: U.value.colNames,
736
- head: U.value.head,
737
- body: U.value.body,
738
- config: U.value.config,
739
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
740
- onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
741
- }, {
742
- th: y(({ th: l }) => [
743
- x("div", {
744
- innerHTML: l,
745
- style: { display: "flex", "align-items": "center" }
746
- }, null, 8, el)
747
- ]),
748
- td: y(({ td: l }) => [
749
- at(z(l.name || l), 1)
750
- ]),
751
- _: 1
752
- }, 8, ["colNames", "head", "body", "config", "title"]))
753
- ]),
754
- _: 1
755
- }, 8, ["config"])) : c("", !0)
756
- ], 46, St));
757
- }
758
- }, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-678d1447"]]);
759
- export {
760
- dl as default
761
- };