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

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 (137) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
  11. package/dist/Slicer-DYuvPkEM.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
  19. package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +610 -22
  22. package/dist/types/vue-data-ui.d.ts +610 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-D-8c0o4p.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.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-BIXXEsFZ.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
  37. package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
  38. package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
  41. package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
  48. package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
  49. package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
  51. package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
  52. package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
  53. package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
  54. package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
  55. package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
  59. package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
  60. package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
  61. package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
  65. package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
  67. package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
  68. package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
  69. package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
  70. package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
  73. package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
  74. package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
  75. package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
  77. package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
  79. package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
  80. package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
  81. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
  82. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
  84. package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
  86. package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
  87. package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
  89. package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
  90. package/dist/vue-ui-wheel-De1spwLh.js +379 -0
  91. package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
  93. package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.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-galaxy-Cn6vHbaw.js +0 -617
  109. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  110. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  111. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  112. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  113. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  114. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  115. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  116. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  117. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  118. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  119. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  120. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  121. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  122. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  123. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  124. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  125. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  126. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  127. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  128. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  129. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  130. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  131. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  132. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  133. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  134. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  135. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  136. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  137. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,915 @@
1
+ import { defineAsyncComponent as I, computed as p, ref as v, toRefs as mt, watch as ce, shallowRef as Ee, onMounted as gt, onBeforeUnmount as Ge, watchEffect as xt, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as j, normalizeClass as W, createBlock as T, createCommentVNode as c, createVNode as Be, createSlots as kt, withCtx as b, renderSlot as y, normalizeProps as M, guardReactiveProps as F, createElementVNode as k, Fragment as m, renderList as C, toDisplayString as S, mergeProps as wt, createTextVNode as At, nextTick as Lt } from "vue";
2
+ import { u as Ct, c as he, t as _t, a as $t, p as O, b as Tt, o as He, f as de, g as Ve, d as St, e as Ue, h as Ot, D as zt, i as Y, X as Pt, k as pe, I as Nt, ac as It, l as Mt, j as Ft, y as Xe, E as Dt, v as Rt, w as Wt, z as Et } from "./index-DKpp7RIH.js";
3
+ import { t as je, u as Gt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Bt, B as Ht } from "./useLoading-D7YHNtLX.js";
5
+ import { u as Vt } from "./usePrinter-NUeckmCX.js";
6
+ import { u as Ye } from "./useNestedProp-D-8c0o4p.js";
7
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as jt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import Yt from "./img-DD_2wgY3.js";
11
+ import { _ as qt } from "./Shape-CWIa2nta.js";
12
+ import Jt from "./Title-VLWyIYrj.js";
13
+ import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"], tl = { key: 1 }, ll = { key: 0 }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = { key: 1 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "fill", "font-size"], il = ["transform", "font-size", "fill", "text-anchor"], vl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], cl = ["fill", "font-size", "transform"], hl = ["fill", "font-size", "x", "y"], dl = ["x1", "x2", "y1", "y2", "stroke"], pl = ["cx", "cy", "fill"], fl = ["cx", "cy", "fill"], yl = ["id"], bl = ["stop-color"], ml = ["stop-color"], gl = ["stop-color"], xl = { key: 0 }, kl = ["x", "y", "font-size", "fill"], wl = {
15
+ key: 4,
16
+ class: "vue-data-ui-watermark"
17
+ }, Al = ["innerHTML"], Ll = {
18
+ __name: "vue-ui-strip-plot",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectDatapoint"],
34
+ setup(qe, { expose: Je, emit: Ke }) {
35
+ const Qe = I(() => import("./Tooltip-BS5naLS2.js")), Ze = I(() => import("./vue-ui-accordion-Cpovz3RE.js")), et = I(() => import("./DataTable-B3yakHEM.js")), tt = I(() => import("./UserOptions-BV_xM-sB.js")), lt = I(() => import("./PenAndPaper-JoUN7Ink.js")), at = I(() => import("./PackageVersion-6s4eI8W7.js")), { vue_ui_strip_plot: ot } = Ct(), g = qe, st = Ke, E = p({
36
+ get() {
37
+ return !!g.dataset && g.dataset.length;
38
+ },
39
+ set(t) {
40
+ return t;
41
+ }
42
+ }), q = v(he()), fe = v(0), J = v(!1), K = v(""), A = v(null), ye = v(null), be = v(null), me = v(null), ge = v(!1), xe = v(0), ke = v(0), Q = v(null), Z = v(null), G = v(null), ee = v(null), e = v(oe()), { loading: te, FINAL_DATASET: we, manualLoading: le } = Bt({
43
+ ...mt(g),
44
+ FINAL_CONFIG: e,
45
+ prepareConfig: oe,
46
+ skeletonDataset: [
47
+ {
48
+ name: "_",
49
+ color: "#DBDBDB",
50
+ plots: [
51
+ { name: "_", value: 1 },
52
+ { name: "_", value: 2 },
53
+ { name: "_", value: 3 }
54
+ ]
55
+ },
56
+ {
57
+ name: "_",
58
+ color: "#C4C4C4",
59
+ plots: [
60
+ { name: "_", value: 3 },
61
+ { name: "_", value: 5 },
62
+ { name: "_", value: 8 }
63
+ ]
64
+ },
65
+ {
66
+ name: "_",
67
+ color: "#ADADAD",
68
+ plots: [
69
+ { name: "_", value: 8 },
70
+ { name: "_", value: 13 },
71
+ { name: "_", value: 21 }
72
+ ]
73
+ },
74
+ {
75
+ name: "_",
76
+ color: "#969696",
77
+ plots: [
78
+ { name: "_", value: 21 },
79
+ { name: "_", value: 34 },
80
+ { name: "_", value: 55 }
81
+ ]
82
+ },
83
+ {
84
+ name: "_",
85
+ color: "#808080",
86
+ plots: [
87
+ { name: "_", value: 55 },
88
+ { name: "_", value: 89 },
89
+ { name: "_", value: 144 }
90
+ ]
91
+ }
92
+ ],
93
+ skeletonConfig: _t({
94
+ defaultConfig: e.value,
95
+ userConfig: {
96
+ userOptions: { show: !1 },
97
+ table: { show: !1 },
98
+ style: {
99
+ chart: {
100
+ backgroundColor: "#99999930",
101
+ padding: {
102
+ top: 24,
103
+ left: 24,
104
+ right: 24,
105
+ bottom: 24
106
+ },
107
+ grid: {
108
+ stroke: "#6A6A6A",
109
+ horizontalGrid: {
110
+ stroke: "#6A6A6A"
111
+ },
112
+ verticalGrid: {
113
+ stroke: "#6A6A6A"
114
+ }
115
+ },
116
+ plots: {
117
+ stroke: "#6A6A6A"
118
+ },
119
+ labels: {
120
+ bestPlotLabel: { show: !1 },
121
+ axis: {
122
+ xLabel: "",
123
+ yLabel: ""
124
+ },
125
+ xAxisLabels: { show: !1 },
126
+ yAxisLabels: { show: !1 }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ })
132
+ }), { userOptionsVisible: ae, setUserOptionsVisibility: Ae, keepUserOptionState: Le } = Ut({ config: e.value }), { svgRef: Ce } = Xt({ config: e.value.style.chart.title });
133
+ function oe() {
134
+ const t = Ye({
135
+ userConfig: g.config,
136
+ defaultConfig: ot
137
+ });
138
+ return t.theme ? {
139
+ ...Ye({
140
+ userConfig: Tt.vue_ui_strip_plot[t.theme] || g.config,
141
+ defaultConfig: t
142
+ }),
143
+ customPalette: $t[t.theme] || O
144
+ } : t;
145
+ }
146
+ ce(() => g.config, async (t) => {
147
+ te.value || (e.value = oe()), ae.value = !e.value.userOptions.showOnChartHover, _e(), xe.value += 1, ke.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, _.value = e.value.style.chart.width, w.value = e.value.style.chart.height, R.value = e.value.style.chart.plots.radius;
148
+ }, { deep: !0 }), ce(() => g.dataset, (t) => {
149
+ Array.isArray(t) && t.length > 0 && (le.value = !1);
150
+ }, { deep: !0 });
151
+ const L = Ee(null), z = Ee(null);
152
+ gt(() => {
153
+ _e();
154
+ });
155
+ const se = p(() => !!e.value.debug);
156
+ function _e() {
157
+ if (He(g.dataset) ? (de({
158
+ componentName: "VueUiStripPlot",
159
+ type: "dataset",
160
+ debug: se.value
161
+ }), le.value = !0) : g.dataset.forEach((t, a) => {
162
+ Ve({
163
+ datasetObject: t,
164
+ requiredAttributes: ["name", "plots"]
165
+ }).forEach((l) => {
166
+ E.value = !1, de({
167
+ componentName: "VueUiStripPlot",
168
+ type: "datasetSerieAttribute",
169
+ property: l,
170
+ index: a,
171
+ debug: se.value
172
+ });
173
+ }), t.plots && t.plots.forEach((l, s) => {
174
+ Ve({
175
+ datasetObject: l,
176
+ requiredAttributes: ["name", "value"]
177
+ }).forEach((u) => {
178
+ E.value = !1, de({
179
+ componentName: "VueUiStripPlot",
180
+ type: "datasetSerieAttribute",
181
+ property: u,
182
+ index: `${a},${s}`,
183
+ debug: se.value
184
+ });
185
+ });
186
+ });
187
+ }), He(g.dataset) || (le.value = e.value.loading), e.value.responsive) {
188
+ const t = je(() => {
189
+ const { width: a, height: l } = Gt({
190
+ chart: A.value,
191
+ title: e.value.style.chart.title.text ? ye.value : null,
192
+ source: be.value,
193
+ noTitle: me.value
194
+ });
195
+ requestAnimationFrame(() => {
196
+ ut.value = l, _.value = Math.max(0.1, a), w.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? R.value = Dt({
197
+ relator: Math.min(l, a),
198
+ adjuster: 600,
199
+ source: e.value.style.chart.plots.radius,
200
+ threshold: 6,
201
+ fallback: 6
202
+ }) : R.value = e.value.style.chart.plots.radius;
203
+ });
204
+ });
205
+ L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect()), L.value = new ResizeObserver(t), z.value = A.value.parentNode, L.value.observe(z.value);
206
+ }
207
+ ge.value = !0, setTimeout(() => {
208
+ D.value = !1;
209
+ }, vt.value * 50);
210
+ }
211
+ Ge(() => {
212
+ L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect());
213
+ });
214
+ const { isPrinting: $e, isImaging: Te, generatePdf: Se, generateImage: Oe } = Vt({
215
+ elementId: `strip-plot_${q.value}`,
216
+ fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
217
+ options: e.value.userOptions.print
218
+ }), rt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = p(() => St(e.value.customPalette)), D = v(e.value.useCssAnimation), P = v({
219
+ top: e.value.style.chart.padding.top,
220
+ bottom: e.value.style.chart.padding.bottom,
221
+ left: e.value.style.chart.padding.left,
222
+ right: e.value.style.chart.padding.right
223
+ }), _ = v(e.value.style.chart.width), w = v(e.value.style.chart.height), ut = v(e.value.style.chart.height), R = v(e.value.style.chart.plots.radius), d = v({
224
+ showTable: e.value.table.show,
225
+ dataLabels: {
226
+ show: e.value.style.chart.labels.bestPlotLabel.show
227
+ },
228
+ showTooltip: e.value.style.chart.tooltip.show
229
+ });
230
+ ce(e, () => {
231
+ d.value = {
232
+ showTable: e.value.table.show,
233
+ dataLabels: {
234
+ show: e.value.style.chart.labels.bestPlotLabel.show
235
+ },
236
+ showTooltip: e.value.style.chart.tooltip.show
237
+ }, _.value = e.value.style.chart.width, w.value = e.value.style.chart.height, R.value = e.value.style.chart.plots.radius;
238
+ }, { immediate: !0 });
239
+ const re = p(() => Math.min(R.value, o.value.stripWidth / 2 * 0.9));
240
+ function nt() {
241
+ let t = 0;
242
+ ee.value && (t = Array.from(ee.value.querySelectorAll("text")).reduce((s, u) => {
243
+ const f = u.getComputedTextLength();
244
+ return f > s ? f : s;
245
+ }, 0));
246
+ const a = Z.value ? Z.value.getBoundingClientRect().width : 0;
247
+ return t + a + (a ? 24 : 0);
248
+ }
249
+ const ue = v(0), it = je((t) => {
250
+ ue.value = t;
251
+ }, 100);
252
+ xt((t) => {
253
+ const a = G.value;
254
+ if (!a) return;
255
+ const l = new ResizeObserver((s) => {
256
+ it(s[0].contentRect.height);
257
+ });
258
+ l.observe(a), t(() => l.disconnect());
259
+ }), Ge(() => {
260
+ ue.value = 0;
261
+ });
262
+ const Pe = p(() => {
263
+ let t = 0;
264
+ Q.value && (t = Q.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
265
+ let a = 0;
266
+ return G.value && (a = ue.value + 12), t + a;
267
+ }), o = p(() => {
268
+ const t = nt(), a = _.value - t - e.value.style.chart.padding.left - e.value.style.chart.padding.right - e.value.style.chart.labels.axis.yLabelOffsetX - 5;
269
+ return {
270
+ left: P.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5,
271
+ right: _.value - P.value.right,
272
+ top: P.value.top,
273
+ bottom: w.value - P.value.bottom - Pe.value,
274
+ width: a,
275
+ height: w.value - P.value.top - P.value.bottom - Pe.value,
276
+ stripWidth: a / we.value.length,
277
+ absoluteHeight: w.value
278
+ };
279
+ }), B = p(() => we.value.map((t, a) => {
280
+ const l = he();
281
+ return {
282
+ ...t,
283
+ id: l,
284
+ color: t.color ? Ue(t.color) : ze.value[a] || O[a] || O[a % O.length],
285
+ plots: t.plots.map((s, u) => ({
286
+ ...s,
287
+ value: Ot(s.value),
288
+ parentId: l,
289
+ parentName: t.name,
290
+ parentIndex: a,
291
+ plotIndex: u,
292
+ color: t.color ? Ue(t.color) : ze.value[a] || O[a] || O[a % O.length],
293
+ id: he()
294
+ })).sort((s, u) => s.value - u.value)
295
+ };
296
+ })), x = p(() => (B.value || []).map((t, a) => ({
297
+ ...t,
298
+ plots: t.plots.map((l) => ({
299
+ ...l,
300
+ x: o.value.left + (a + 1) * o.value.stripWidth - o.value.stripWidth / 2
301
+ }))
302
+ }))), vt = p(() => Math.max(...x.value.map((t) => t.plots.length))), ne = p(() => {
303
+ const t = x.value.flatMap((a) => a.plots.map((l) => l.value));
304
+ return {
305
+ max: Math.max(...t),
306
+ min: Math.min(...t)
307
+ };
308
+ }), $ = p(() => zt(ne.value.min < 0 ? ne.value.min : 0, ne.value.max, e.value.style.chart.grid.scaleSteps)), ct = p(() => (x.value || []).map((t, a) => ({
309
+ ...t,
310
+ plots: t.plots.map((l) => ({
311
+ ...l,
312
+ y: o.value.bottom - (l.value + Math.abs($.value.min)) / ($.value.max + Math.abs($.value.min)) * o.value.height
313
+ }))
314
+ }))), Ne = p(() => $.value.ticks.map((t) => ({
315
+ y: o.value.bottom - o.value.height * ((t + Math.abs($.value.min)) / ($.value.max + Math.abs($.value.min))),
316
+ x1: o.value.left,
317
+ x2: o.value.right,
318
+ value: t
319
+ }))), ie = v(null), h = v(null);
320
+ function ht({ datapoint: t, seriesIndex: a }) {
321
+ J.value = !1, h.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
322
+ }
323
+ function dt({ datapoint: t, seriesIndex: a }) {
324
+ st("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
325
+ }
326
+ function pt({ datapoint: t, seriesIndex: a }) {
327
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ie.value = { datapoint: t, seriesIndex: a, config: e.value, series: B.value }, J.value = !0, h.value = t;
328
+ const l = e.value.style.chart.tooltip.customFormat;
329
+ if (Xe(l) && Et(() => l({
330
+ seriesIndex: a,
331
+ datapoint: t,
332
+ series: B.value,
333
+ config: e.value
334
+ })))
335
+ K.value = l({
336
+ seriesIndex: a,
337
+ datapoint: t,
338
+ series: B.value,
339
+ config: e.value
340
+ });
341
+ else {
342
+ let s = "";
343
+ 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>${pe(
344
+ e.value.style.chart.labels.formatter,
345
+ t.value,
346
+ Y({
347
+ p: e.value.style.chart.labels.prefix,
348
+ v: t.value,
349
+ s: e.value.style.chart.labels.suffix,
350
+ r: e.value.style.chart.tooltip.roundingValue
351
+ }),
352
+ { datapoint: t, seriesIndex: a }
353
+ )}</div>`, K.value = `<div>${s}</div>`;
354
+ }
355
+ }
356
+ const H = p(() => {
357
+ const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => ({
358
+ name: `${l.name} - ${s.name}`,
359
+ color: s.color
360
+ }))), a = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => s.value));
361
+ return { head: t, body: a };
362
+ });
363
+ function Ie(t = null) {
364
+ Lt(() => {
365
+ const a = H.value.head.map((u, f) => [[
366
+ u.name
367
+ ], [H.value.body[f]]]), 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(a), s = Rt(l);
368
+ t ? t(s) : Wt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
369
+ });
370
+ }
371
+ const V = p(() => {
372
+ const t = [
373
+ e.value.table.columnNames.series,
374
+ e.value.table.columnNames.value
375
+ ], a = H.value.head.map((u, f) => {
376
+ const X = Y({
377
+ p: e.value.style.chart.labels.prefix,
378
+ v: H.value.body[f],
379
+ s: e.value.style.chart.labels.suffix,
380
+ r: e.value.table.td.roundingValue
381
+ });
382
+ return [
383
+ {
384
+ color: u.color,
385
+ name: u.name
386
+ },
387
+ X
388
+ ];
389
+ }), l = {
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
+ };
402
+ return {
403
+ colNames: [
404
+ e.value.table.columnNames.series,
405
+ e.value.table.columnNames.value
406
+ ],
407
+ head: t,
408
+ body: a,
409
+ config: l
410
+ };
411
+ }), N = v(!1);
412
+ function Me(t) {
413
+ N.value = t, fe.value += 1;
414
+ }
415
+ function ft() {
416
+ return x.value;
417
+ }
418
+ function Fe() {
419
+ d.value.showTable = !d.value.showTable;
420
+ }
421
+ function De() {
422
+ d.value.dataLabels.show = !d.value.dataLabels.show;
423
+ }
424
+ function Re() {
425
+ d.value.showTooltip = !d.value.showTooltip;
426
+ }
427
+ const U = v(!1);
428
+ function ve() {
429
+ U.value = !U.value;
430
+ }
431
+ async function yt({ scale: t = 2 } = {}) {
432
+ if (!A.value) return;
433
+ const { width: a, height: l } = A.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: f } = await Yt({ domElement: A.value, base64: !0, img: !0, scale: t });
434
+ return {
435
+ imageUri: u,
436
+ base64: f,
437
+ title: e.value.style.chart.title.text,
438
+ width: a,
439
+ height: l,
440
+ aspectRatio: s
441
+ };
442
+ }
443
+ const We = p(() => x.value.map((t) => t.name)), bt = v({ start: 0, end: x.value.length });
444
+ return jt({
445
+ timeLabelsEls: G,
446
+ timeLabels: We,
447
+ slicer: bt,
448
+ configRef: e,
449
+ rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
450
+ autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate"],
451
+ isAutoSize: !1,
452
+ width: _,
453
+ height: w,
454
+ targetClass: ".vue-ui-strip-plot-category-name"
455
+ }), Je({
456
+ getData: ft,
457
+ getImage: yt,
458
+ generatePdf: Se,
459
+ generateCsv: Ie,
460
+ generateImage: Oe,
461
+ toggleTable: Fe,
462
+ toggleLabels: De,
463
+ toggleTooltip: Re,
464
+ toggleAnnotator: ve,
465
+ toggleFullscreen: Me
466
+ }), (t, a) => (r(), n("div", {
467
+ ref_key: "stripPlotChart",
468
+ ref: A,
469
+ class: W(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
470
+ style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
471
+ id: `strip-plot_${q.value}`,
472
+ onMouseenter: a[1] || (a[1] = () => i(Ae)(!0)),
473
+ onMouseleave: a[2] || (a[2] = () => i(Ae)(!1))
474
+ }, [
475
+ e.value.userOptions.buttons.annotator ? (r(), T(i(lt), {
476
+ key: 0,
477
+ svgRef: i(Ce),
478
+ backgroundColor: e.value.style.chart.backgroundColor,
479
+ color: e.value.style.chart.color,
480
+ active: U.value,
481
+ onClose: ve
482
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
483
+ rt.value ? (r(), n("div", {
484
+ key: 1,
485
+ ref_key: "noTitle",
486
+ ref: me,
487
+ class: "vue-data-ui-no-title-space",
488
+ style: "height:36px; width: 100%;background:transparent"
489
+ }, null, 512)) : c("", !0),
490
+ e.value.style.chart.title.text ? (r(), n("div", {
491
+ key: 2,
492
+ ref_key: "chartTitle",
493
+ ref: ye,
494
+ style: "width:100%;background:transparent;padding-bottom:24px"
495
+ }, [
496
+ (r(), T(Jt, {
497
+ key: `title_${xe.value}`,
498
+ config: {
499
+ title: {
500
+ cy: "donut-div-title",
501
+ ...e.value.style.chart.title
502
+ },
503
+ subtitle: {
504
+ cy: "donut-div-subtitle",
505
+ ...e.value.style.chart.title.subtitle
506
+ }
507
+ }
508
+ }, null, 8, ["config"]))
509
+ ], 512)) : c("", !0),
510
+ e.value.userOptions.show && E.value && (i(Le) || i(ae)) ? (r(), T(i(tt), {
511
+ ref: "details",
512
+ key: `user_option_${fe.value}`,
513
+ backgroundColor: e.value.style.chart.backgroundColor,
514
+ color: e.value.style.chart.color,
515
+ isPrinting: i($e),
516
+ isImaging: i(Te),
517
+ uid: q.value,
518
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
519
+ hasPdf: e.value.userOptions.buttons.pdf,
520
+ hasXls: e.value.userOptions.buttons.csv,
521
+ hasImg: e.value.userOptions.buttons.img,
522
+ hasTable: e.value.userOptions.buttons.table,
523
+ hasLabel: e.value.userOptions.buttons.labels,
524
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
525
+ isTooltip: d.value.showTooltip,
526
+ isFullscreen: N.value,
527
+ titles: { ...e.value.userOptions.buttonTitles },
528
+ chartElement: A.value,
529
+ position: e.value.userOptions.position,
530
+ hasAnnotator: e.value.userOptions.buttons.annotator,
531
+ isAnnotation: U.value,
532
+ callbacks: e.value.userOptions.callbacks,
533
+ printScale: e.value.userOptions.print.scale,
534
+ onToggleFullscreen: Me,
535
+ onGeneratePdf: i(Se),
536
+ onGenerateCsv: Ie,
537
+ onGenerateImage: i(Oe),
538
+ onToggleTable: Fe,
539
+ onToggleLabels: De,
540
+ onToggleTooltip: Re,
541
+ onToggleAnnotator: ve,
542
+ style: j({
543
+ visibility: i(Le) ? i(ae) ? "visible" : "hidden" : "visible"
544
+ })
545
+ }, kt({ _: 2 }, [
546
+ t.$slots.menuIcon ? {
547
+ name: "menuIcon",
548
+ fn: b(({ isOpen: l, color: s }) => [
549
+ y(t.$slots, "menuIcon", M(F({ isOpen: l, color: s })), void 0, !0)
550
+ ]),
551
+ key: "0"
552
+ } : void 0,
553
+ t.$slots.optionTooltip ? {
554
+ name: "optionTooltip",
555
+ fn: b(() => [
556
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
557
+ ]),
558
+ key: "1"
559
+ } : void 0,
560
+ t.$slots.optionPdf ? {
561
+ name: "optionPdf",
562
+ fn: b(() => [
563
+ y(t.$slots, "optionPdf", {}, void 0, !0)
564
+ ]),
565
+ key: "2"
566
+ } : void 0,
567
+ t.$slots.optionCsv ? {
568
+ name: "optionCsv",
569
+ fn: b(() => [
570
+ y(t.$slots, "optionCsv", {}, void 0, !0)
571
+ ]),
572
+ key: "3"
573
+ } : void 0,
574
+ t.$slots.optionImg ? {
575
+ name: "optionImg",
576
+ fn: b(() => [
577
+ y(t.$slots, "optionImg", {}, void 0, !0)
578
+ ]),
579
+ key: "4"
580
+ } : void 0,
581
+ t.$slots.optionTable ? {
582
+ name: "optionTable",
583
+ fn: b(() => [
584
+ y(t.$slots, "optionTable", {}, void 0, !0)
585
+ ]),
586
+ key: "5"
587
+ } : void 0,
588
+ t.$slots.optionLabels ? {
589
+ name: "optionLabels",
590
+ fn: b(() => [
591
+ y(t.$slots, "optionLabels", {}, void 0, !0)
592
+ ]),
593
+ key: "6"
594
+ } : void 0,
595
+ t.$slots.optionFullscreen ? {
596
+ name: "optionFullscreen",
597
+ fn: b(({ toggleFullscreen: l, isFullscreen: s }) => [
598
+ y(t.$slots, "optionFullscreen", M(F({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
599
+ ]),
600
+ key: "7"
601
+ } : void 0,
602
+ t.$slots.optionAnnotator ? {
603
+ name: "optionAnnotator",
604
+ fn: b(({ toggleAnnotator: l, isAnnotator: s }) => [
605
+ y(t.$slots, "optionAnnotator", M(F({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
606
+ ]),
607
+ key: "8"
608
+ } : void 0
609
+ ]), 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),
610
+ (r(), n("svg", {
611
+ ref_key: "svgRef",
612
+ ref: Ce,
613
+ xmlns: i(Pt),
614
+ class: W({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
615
+ viewBox: `0 0 ${_.value} ${w.value}`,
616
+ style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
617
+ }, [
618
+ Be(i(at)),
619
+ t.$slots["chart-background"] ? (r(), n("foreignObject", {
620
+ key: 0,
621
+ x: o.value.left,
622
+ y: o.value.top,
623
+ width: Math.max(0.1, o.value.width),
624
+ height: Math.max(0.1, o.value.height),
625
+ style: {
626
+ pointerEvents: "none"
627
+ }
628
+ }, [
629
+ y(t.$slots, "chart-background", {}, void 0, !0)
630
+ ], 8, el)) : c("", !0),
631
+ e.value.style.chart.grid.show ? (r(), n("g", tl, [
632
+ e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g", ll, [
633
+ (r(!0), n(m, null, C(Ne.value, (l) => (r(), n("line", {
634
+ x1: l.x1,
635
+ x2: l.x2,
636
+ y1: l.y,
637
+ y2: l.y,
638
+ stroke: e.value.style.chart.grid.horizontalGrid.stroke,
639
+ "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
640
+ "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
641
+ "stroke-linecap": "round"
642
+ }, null, 8, al))), 256))
643
+ ])) : c("", !0),
644
+ e.value.style.chart.grid.verticalGrid.show ? (r(), n("g", ol, [
645
+ (r(!0), n(m, null, C(x.value, (l, s) => (r(), n("line", {
646
+ x1: o.value.left + (s + 1) * o.value.stripWidth,
647
+ x2: o.value.left + (s + 1) * o.value.stripWidth,
648
+ y1: o.value.top,
649
+ y2: o.value.bottom,
650
+ stroke: e.value.style.chart.grid.verticalGrid.stroke,
651
+ "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
652
+ "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
653
+ "stroke-linecap": "round"
654
+ }, null, 8, sl))), 256))
655
+ ])) : c("", !0),
656
+ k("line", {
657
+ x1: o.value.left,
658
+ x2: o.value.left,
659
+ y1: o.value.top,
660
+ y2: o.value.bottom,
661
+ stroke: e.value.style.chart.grid.stroke,
662
+ "stroke-width": e.value.style.chart.grid.strokeWidth,
663
+ "stroke-linecap": "round"
664
+ }, null, 8, rl),
665
+ k("line", {
666
+ x1: o.value.left,
667
+ x2: o.value.right,
668
+ y1: o.value.bottom,
669
+ y2: o.value.bottom,
670
+ stroke: e.value.style.chart.grid.stroke,
671
+ "stroke-width": e.value.style.chart.grid.strokeWidth,
672
+ "stroke-linecap": "round"
673
+ }, null, 8, ul)
674
+ ])) : c("", !0),
675
+ e.value.style.chart.labels.yAxisLabels.show ? (r(), n("g", {
676
+ key: 2,
677
+ ref_key: "scaleLabels",
678
+ ref: ee
679
+ }, [
680
+ (r(!0), n(m, null, C(Ne.value, (l, s) => (r(), n("text", {
681
+ x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
682
+ y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
683
+ fill: e.value.style.chart.labels.yAxisLabels.color,
684
+ "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
685
+ "text-anchor": "end"
686
+ }, S(i(pe)(
687
+ e.value.style.chart.labels.formatter,
688
+ l.value,
689
+ i(Y)({
690
+ p: e.value.style.chart.labels.prefix,
691
+ v: l.value,
692
+ s: e.value.style.chart.labels.suffix,
693
+ r: e.value.style.chart.labels.yAxisLabels.rounding
694
+ }),
695
+ { datapoint: l, seriesIndex: s }
696
+ )), 9, nl))), 256))
697
+ ], 512)) : c("", !0),
698
+ e.value.style.chart.labels.xAxisLabels.show ? (r(), n("g", {
699
+ key: 3,
700
+ ref_key: "timeLabelsEls",
701
+ ref: G
702
+ }, [
703
+ (r(!0), n(m, null, C(We.value, (l, s) => (r(), n("g", null, [
704
+ String(l).includes(`
705
+ `) ? (r(), n("text", {
706
+ key: 1,
707
+ class: "vue-ui-strip-plot-category-name",
708
+ transform: `translate(${o.value.left + (s + 1) * o.value.stripWidth - o.value.stripWidth / 2}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
709
+ "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
710
+ fill: e.value.style.chart.labels.xAxisLabels.color,
711
+ "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
712
+ innerHTML: i(Nt)({
713
+ content: i(It)(String(l)),
714
+ fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
715
+ fill: e.value.style.chart.labels.xAxisLabels.color,
716
+ x: 0,
717
+ y: 0
718
+ })
719
+ }, null, 8, vl)) : (r(), n("text", {
720
+ key: 0,
721
+ class: "vue-ui-strip-plot-category-name",
722
+ transform: `translate(${o.value.left + (s + 1) * o.value.stripWidth - o.value.stripWidth / 2}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
723
+ "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
724
+ fill: e.value.style.chart.labels.xAxisLabels.color,
725
+ "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
726
+ }, S(String(l)), 9, il))
727
+ ]))), 256))
728
+ ], 512)) : c("", !0),
729
+ e.value.style.chart.labels.axis.yLabel ? (r(), n("text", {
730
+ key: 4,
731
+ ref_key: "yAxisLabel",
732
+ ref: Z,
733
+ fill: e.value.style.chart.labels.axis.color,
734
+ "font-size": e.value.style.chart.labels.axis.fontSize,
735
+ transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
736
+ "text-anchor": "middle"
737
+ }, S(e.value.style.chart.labels.axis.yLabel), 9, cl)) : c("", !0),
738
+ e.value.style.chart.labels.axis.xLabel ? (r(), n("text", {
739
+ key: 5,
740
+ ref_key: "xAxisLabel",
741
+ ref: Q,
742
+ fill: e.value.style.chart.labels.axis.color,
743
+ "font-size": e.value.style.chart.labels.axis.fontSize,
744
+ x: o.value.left + o.value.width / 2,
745
+ y: w.value - e.value.style.chart.labels.axis.fontSize / 3,
746
+ "text-anchor": "middle"
747
+ }, S(e.value.style.chart.labels.axis.xLabel), 9, hl)) : c("", !0),
748
+ h.value ? (r(), n(m, { key: 6 }, [
749
+ k("line", {
750
+ x1: o.value.left,
751
+ x2: o.value.right,
752
+ y1: h.value.y,
753
+ y2: h.value.y,
754
+ stroke: h.value.color,
755
+ "stroke-width": 1,
756
+ class: W({ "select-circle": e.value.useCssAnimation })
757
+ }, null, 10, dl),
758
+ k("circle", {
759
+ cx: o.value.left,
760
+ cy: h.value.y,
761
+ r: 3,
762
+ fill: h.value.color,
763
+ class: W({ "select-circle": e.value.useCssAnimation })
764
+ }, null, 10, pl),
765
+ k("circle", {
766
+ cx: o.value.right,
767
+ cy: h.value.y,
768
+ r: 3,
769
+ fill: h.value.color,
770
+ class: W({ "select-circle": e.value.useCssAnimation })
771
+ }, null, 10, fl)
772
+ ], 64)) : c("", !0),
773
+ k("defs", null, [
774
+ (r(!0), n(m, null, C(x.value, (l) => (r(), n("radialGradient", {
775
+ id: l.id,
776
+ fy: "30%"
777
+ }, [
778
+ k("stop", {
779
+ offset: "10%",
780
+ "stop-color": i(Mt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
781
+ }, null, 8, bl),
782
+ k("stop", {
783
+ offset: "90%",
784
+ "stop-color": i(Ft)(l.color, 0.1)
785
+ }, null, 8, ml),
786
+ k("stop", {
787
+ offset: "100%",
788
+ "stop-color": l.color
789
+ }, null, 8, gl)
790
+ ], 8, yl))), 256))
791
+ ]),
792
+ (r(!0), n(m, null, C(ct.value, (l, s) => (r(), n(m, null, [
793
+ (r(!0), n(m, null, C(l.plots, (u, f) => (r(), T(qt, wt({ ref_for: !0 }, t.$attrs, {
794
+ plot: { x: u.x, y: ge.value ? u.y : o.value.top },
795
+ radius: h.value && h.value.id === u.id ? re.value * 1.5 : re.value,
796
+ shape: e.value.style.chart.plots.shape,
797
+ stroke: e.value.style.chart.plots.stroke,
798
+ strokeWidth: e.value.style.chart.plots.strokeWidth,
799
+ color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
800
+ style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${D.value ? `transition-delay:${f * 50}ms` : ""}`,
801
+ class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && D.value && !i(te), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !D.value },
802
+ onMouseenter: (X) => pt({ datapoint: u, seriesIndex: f }),
803
+ onMouseleave: (X) => ht({ datapoint: u, seriesIndex: f }),
804
+ onClick: (X) => dt({ datapoint: u, seriesIndex: f })
805
+ }), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
806
+ d.value.dataLabels.show ? (r(), n("g", xl, [
807
+ (r(!0), n(m, null, C(l.plots, (u, f) => (r(), n(m, null, [
808
+ f === l.plots.length - 1 || h.value && h.value.id === u.id && !d.value.showTooltip ? (r(), n("text", {
809
+ key: 0,
810
+ x: u.x,
811
+ y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - re.value * (h.value && h.value.id === u.id && !d.value.showTooltip ? 2 : 1.5),
812
+ "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
813
+ fill: e.value.style.chart.labels.bestPlotLabel.color,
814
+ "text-anchor": "middle",
815
+ style: j(`opacity:${e.value.useCssAnimation && D.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
816
+ }, S(u.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? i(pe)(
817
+ e.value.style.chart.labels.formatter,
818
+ u.value,
819
+ i(Y)({
820
+ p: `(${e.value.style.chart.labels.prefix}`,
821
+ v: u.value,
822
+ s: `${e.value.style.chart.labels.suffix})`,
823
+ r: e.value.style.chart.labels.bestPlotLabel.rounding
824
+ }),
825
+ { datapoint: u, seriesIndex: f }
826
+ ) : ""), 13, kl)) : c("", !0)
827
+ ], 64))), 256))
828
+ ])) : c("", !0)
829
+ ], 64))), 256)),
830
+ y(t.$slots, "svg", { svg: o.value }, void 0, !0)
831
+ ], 14, Zt)),
832
+ t.$slots.watermark ? (r(), n("div", wl, [
833
+ y(t.$slots, "watermark", M(F({ isPrinting: i($e) || i(Te) })), void 0, !0)
834
+ ])) : c("", !0),
835
+ t.$slots.source ? (r(), n("div", {
836
+ key: 5,
837
+ ref_key: "source",
838
+ ref: be,
839
+ dir: "auto"
840
+ }, [
841
+ y(t.$slots, "source", {}, void 0, !0)
842
+ ], 512)) : c("", !0),
843
+ Be(i(Qe), {
844
+ show: d.value.showTooltip && J.value,
845
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
846
+ color: e.value.style.chart.tooltip.color,
847
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
848
+ borderColor: e.value.style.chart.tooltip.borderColor,
849
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
850
+ fontSize: e.value.style.chart.tooltip.fontSize,
851
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
852
+ position: e.value.style.chart.tooltip.position,
853
+ offsetY: e.value.style.chart.tooltip.offsetY,
854
+ parent: A.value,
855
+ content: K.value,
856
+ isFullscreen: N.value,
857
+ isCustom: i(Xe)(e.value.style.chart.tooltip.customFormat),
858
+ smooth: e.value.style.chart.tooltip.smooth,
859
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
860
+ }, {
861
+ "tooltip-before": b(() => [
862
+ y(t.$slots, "tooltip-before", M(F({ ...ie.value })), void 0, !0)
863
+ ]),
864
+ "tooltip-after": b(() => [
865
+ y(t.$slots, "tooltip-after", M(F({ ...ie.value })), void 0, !0)
866
+ ]),
867
+ _: 3
868
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
869
+ E.value ? (r(), T(i(Ze), {
870
+ key: 6,
871
+ hideDetails: "",
872
+ config: {
873
+ open: d.value.showTable,
874
+ maxHeight: 1e4,
875
+ body: {
876
+ backgroundColor: e.value.style.chart.backgroundColor,
877
+ color: e.value.style.chart.color
878
+ },
879
+ head: {
880
+ backgroundColor: e.value.style.chart.backgroundColor,
881
+ color: e.value.style.chart.color
882
+ }
883
+ }
884
+ }, {
885
+ content: b(() => [
886
+ (r(), T(i(et), {
887
+ key: `table_${ke.value}`,
888
+ colNames: V.value.colNames,
889
+ head: V.value.head,
890
+ body: V.value.body,
891
+ config: V.value.config,
892
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
893
+ onClose: a[0] || (a[0] = (l) => d.value.showTable = !1)
894
+ }, {
895
+ th: b(({ th: l }) => [
896
+ k("div", {
897
+ innerHTML: l,
898
+ style: { display: "flex", "align-items": "center" }
899
+ }, null, 8, Al)
900
+ ]),
901
+ td: b(({ td: l }) => [
902
+ At(S(l.name || l), 1)
903
+ ]),
904
+ _: 1
905
+ }, 8, ["colNames", "head", "body", "config", "title"]))
906
+ ]),
907
+ _: 1
908
+ }, 8, ["config"])) : c("", !0),
909
+ i(te) ? (r(), T(Ht, { key: 7 })) : c("", !0)
910
+ ], 46, Qt));
911
+ }
912
+ }, Rl = /* @__PURE__ */ Kt(Ll, [["__scopeId", "data-v-09271525"]]);
913
+ export {
914
+ Rl as default
915
+ };