vue-data-ui 3.0.0-next.9 → 3.0.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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.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-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
  15. package/dist/Slicer-t6e1t2iM.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.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-CN_Jh8Hr.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-CjnS13nF.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
  41. package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
  42. package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
  45. package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
  46. package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
  53. package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
  55. package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
  56. package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
  57. package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
  58. package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
  59. package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
  62. package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
  63. package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
  65. package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
  68. package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
  69. package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
  71. package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
  72. package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
  73. package/dist/vue-ui-rings-BH81WmMS.js +728 -0
  74. package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
  77. package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
  78. package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
  79. package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
  81. package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
  83. package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
  84. package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
  88. package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
  90. package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
  91. package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
  93. package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
  94. package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
  95. package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
  97. package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,916 @@
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, ab 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-Dzc2Gi60.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-DBRh8ZvS.js";
6
+ import { u as Ye } from "./useNestedProp-CjnS13nF.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-Vb4QHAHI.js";
11
+ import { _ as qt } from "./Shape-Adi9i_-f.js";
12
+ import Jt from "./Title-xTWR-Vil.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-BH3CiANh.js")), Ze = I(() => import("./vue-ui-accordion-CPk8wAuj.js")), et = I(() => import("./DataTable-ClgCsiJA.js")), tt = I(() => import("./UserOptions-CKKPgDLV.js")), lt = I(() => import("./PenAndPaper-D3WRn-G2.js")), at = I(() => import("./PackageVersion-CD5VH_Al.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", "enable"],
451
+ isAutoSize: !1,
452
+ width: _,
453
+ height: w,
454
+ targetClass: ".vue-ui-strip-plot-category-name",
455
+ rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
456
+ }), Je({
457
+ getData: ft,
458
+ getImage: yt,
459
+ generatePdf: Se,
460
+ generateCsv: Ie,
461
+ generateImage: Oe,
462
+ toggleTable: Fe,
463
+ toggleLabels: De,
464
+ toggleTooltip: Re,
465
+ toggleAnnotator: ve,
466
+ toggleFullscreen: Me
467
+ }), (t, a) => (r(), n("div", {
468
+ ref_key: "stripPlotChart",
469
+ ref: A,
470
+ class: W(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
471
+ style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
472
+ id: `strip-plot_${q.value}`,
473
+ onMouseenter: a[1] || (a[1] = () => i(Ae)(!0)),
474
+ onMouseleave: a[2] || (a[2] = () => i(Ae)(!1))
475
+ }, [
476
+ e.value.userOptions.buttons.annotator ? (r(), T(i(lt), {
477
+ key: 0,
478
+ svgRef: i(Ce),
479
+ backgroundColor: e.value.style.chart.backgroundColor,
480
+ color: e.value.style.chart.color,
481
+ active: U.value,
482
+ onClose: ve
483
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
484
+ rt.value ? (r(), n("div", {
485
+ key: 1,
486
+ ref_key: "noTitle",
487
+ ref: me,
488
+ class: "vue-data-ui-no-title-space",
489
+ style: "height:36px; width: 100%;background:transparent"
490
+ }, null, 512)) : c("", !0),
491
+ e.value.style.chart.title.text ? (r(), n("div", {
492
+ key: 2,
493
+ ref_key: "chartTitle",
494
+ ref: ye,
495
+ style: "width:100%;background:transparent;padding-bottom:24px"
496
+ }, [
497
+ (r(), T(Jt, {
498
+ key: `title_${xe.value}`,
499
+ config: {
500
+ title: {
501
+ cy: "donut-div-title",
502
+ ...e.value.style.chart.title
503
+ },
504
+ subtitle: {
505
+ cy: "donut-div-subtitle",
506
+ ...e.value.style.chart.title.subtitle
507
+ }
508
+ }
509
+ }, null, 8, ["config"]))
510
+ ], 512)) : c("", !0),
511
+ e.value.userOptions.show && E.value && (i(Le) || i(ae)) ? (r(), T(i(tt), {
512
+ ref: "details",
513
+ key: `user_option_${fe.value}`,
514
+ backgroundColor: e.value.style.chart.backgroundColor,
515
+ color: e.value.style.chart.color,
516
+ isPrinting: i($e),
517
+ isImaging: i(Te),
518
+ uid: q.value,
519
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
520
+ hasPdf: e.value.userOptions.buttons.pdf,
521
+ hasXls: e.value.userOptions.buttons.csv,
522
+ hasImg: e.value.userOptions.buttons.img,
523
+ hasTable: e.value.userOptions.buttons.table,
524
+ hasLabel: e.value.userOptions.buttons.labels,
525
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
526
+ isTooltip: d.value.showTooltip,
527
+ isFullscreen: N.value,
528
+ titles: { ...e.value.userOptions.buttonTitles },
529
+ chartElement: A.value,
530
+ position: e.value.userOptions.position,
531
+ hasAnnotator: e.value.userOptions.buttons.annotator,
532
+ isAnnotation: U.value,
533
+ callbacks: e.value.userOptions.callbacks,
534
+ printScale: e.value.userOptions.print.scale,
535
+ onToggleFullscreen: Me,
536
+ onGeneratePdf: i(Se),
537
+ onGenerateCsv: Ie,
538
+ onGenerateImage: i(Oe),
539
+ onToggleTable: Fe,
540
+ onToggleLabels: De,
541
+ onToggleTooltip: Re,
542
+ onToggleAnnotator: ve,
543
+ style: j({
544
+ visibility: i(Le) ? i(ae) ? "visible" : "hidden" : "visible"
545
+ })
546
+ }, kt({ _: 2 }, [
547
+ t.$slots.menuIcon ? {
548
+ name: "menuIcon",
549
+ fn: b(({ isOpen: l, color: s }) => [
550
+ y(t.$slots, "menuIcon", M(F({ isOpen: l, color: s })), void 0, !0)
551
+ ]),
552
+ key: "0"
553
+ } : void 0,
554
+ t.$slots.optionTooltip ? {
555
+ name: "optionTooltip",
556
+ fn: b(() => [
557
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
558
+ ]),
559
+ key: "1"
560
+ } : void 0,
561
+ t.$slots.optionPdf ? {
562
+ name: "optionPdf",
563
+ fn: b(() => [
564
+ y(t.$slots, "optionPdf", {}, void 0, !0)
565
+ ]),
566
+ key: "2"
567
+ } : void 0,
568
+ t.$slots.optionCsv ? {
569
+ name: "optionCsv",
570
+ fn: b(() => [
571
+ y(t.$slots, "optionCsv", {}, void 0, !0)
572
+ ]),
573
+ key: "3"
574
+ } : void 0,
575
+ t.$slots.optionImg ? {
576
+ name: "optionImg",
577
+ fn: b(() => [
578
+ y(t.$slots, "optionImg", {}, void 0, !0)
579
+ ]),
580
+ key: "4"
581
+ } : void 0,
582
+ t.$slots.optionTable ? {
583
+ name: "optionTable",
584
+ fn: b(() => [
585
+ y(t.$slots, "optionTable", {}, void 0, !0)
586
+ ]),
587
+ key: "5"
588
+ } : void 0,
589
+ t.$slots.optionLabels ? {
590
+ name: "optionLabels",
591
+ fn: b(() => [
592
+ y(t.$slots, "optionLabels", {}, void 0, !0)
593
+ ]),
594
+ key: "6"
595
+ } : void 0,
596
+ t.$slots.optionFullscreen ? {
597
+ name: "optionFullscreen",
598
+ fn: b(({ toggleFullscreen: l, isFullscreen: s }) => [
599
+ y(t.$slots, "optionFullscreen", M(F({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
600
+ ]),
601
+ key: "7"
602
+ } : void 0,
603
+ t.$slots.optionAnnotator ? {
604
+ name: "optionAnnotator",
605
+ fn: b(({ toggleAnnotator: l, isAnnotator: s }) => [
606
+ y(t.$slots, "optionAnnotator", M(F({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
607
+ ]),
608
+ key: "8"
609
+ } : void 0
610
+ ]), 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),
611
+ (r(), n("svg", {
612
+ ref_key: "svgRef",
613
+ ref: Ce,
614
+ xmlns: i(Pt),
615
+ class: W({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
616
+ viewBox: `0 0 ${_.value} ${w.value}`,
617
+ style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
618
+ }, [
619
+ Be(i(at)),
620
+ t.$slots["chart-background"] ? (r(), n("foreignObject", {
621
+ key: 0,
622
+ x: o.value.left,
623
+ y: o.value.top,
624
+ width: Math.max(0.1, o.value.width),
625
+ height: Math.max(0.1, o.value.height),
626
+ style: {
627
+ pointerEvents: "none"
628
+ }
629
+ }, [
630
+ y(t.$slots, "chart-background", {}, void 0, !0)
631
+ ], 8, el)) : c("", !0),
632
+ e.value.style.chart.grid.show ? (r(), n("g", tl, [
633
+ e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g", ll, [
634
+ (r(!0), n(m, null, C(Ne.value, (l) => (r(), n("line", {
635
+ x1: l.x1,
636
+ x2: l.x2,
637
+ y1: l.y,
638
+ y2: l.y,
639
+ stroke: e.value.style.chart.grid.horizontalGrid.stroke,
640
+ "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
641
+ "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
642
+ "stroke-linecap": "round"
643
+ }, null, 8, al))), 256))
644
+ ])) : c("", !0),
645
+ e.value.style.chart.grid.verticalGrid.show ? (r(), n("g", ol, [
646
+ (r(!0), n(m, null, C(x.value, (l, s) => (r(), n("line", {
647
+ x1: o.value.left + (s + 1) * o.value.stripWidth,
648
+ x2: o.value.left + (s + 1) * o.value.stripWidth,
649
+ y1: o.value.top,
650
+ y2: o.value.bottom,
651
+ stroke: e.value.style.chart.grid.verticalGrid.stroke,
652
+ "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
653
+ "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
654
+ "stroke-linecap": "round"
655
+ }, null, 8, sl))), 256))
656
+ ])) : c("", !0),
657
+ k("line", {
658
+ x1: o.value.left,
659
+ x2: o.value.left,
660
+ y1: o.value.top,
661
+ y2: o.value.bottom,
662
+ stroke: e.value.style.chart.grid.stroke,
663
+ "stroke-width": e.value.style.chart.grid.strokeWidth,
664
+ "stroke-linecap": "round"
665
+ }, null, 8, rl),
666
+ k("line", {
667
+ x1: o.value.left,
668
+ x2: o.value.right,
669
+ y1: o.value.bottom,
670
+ y2: o.value.bottom,
671
+ stroke: e.value.style.chart.grid.stroke,
672
+ "stroke-width": e.value.style.chart.grid.strokeWidth,
673
+ "stroke-linecap": "round"
674
+ }, null, 8, ul)
675
+ ])) : c("", !0),
676
+ e.value.style.chart.labels.yAxisLabels.show ? (r(), n("g", {
677
+ key: 2,
678
+ ref_key: "scaleLabels",
679
+ ref: ee
680
+ }, [
681
+ (r(!0), n(m, null, C(Ne.value, (l, s) => (r(), n("text", {
682
+ x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
683
+ y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
684
+ fill: e.value.style.chart.labels.yAxisLabels.color,
685
+ "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
686
+ "text-anchor": "end"
687
+ }, S(i(pe)(
688
+ e.value.style.chart.labels.formatter,
689
+ l.value,
690
+ i(Y)({
691
+ p: e.value.style.chart.labels.prefix,
692
+ v: l.value,
693
+ s: e.value.style.chart.labels.suffix,
694
+ r: e.value.style.chart.labels.yAxisLabels.rounding
695
+ }),
696
+ { datapoint: l, seriesIndex: s }
697
+ )), 9, nl))), 256))
698
+ ], 512)) : c("", !0),
699
+ e.value.style.chart.labels.xAxisLabels.show ? (r(), n("g", {
700
+ key: 3,
701
+ ref_key: "timeLabelsEls",
702
+ ref: G
703
+ }, [
704
+ (r(!0), n(m, null, C(We.value, (l, s) => (r(), n("g", null, [
705
+ String(l).includes(`
706
+ `) ? (r(), n("text", {
707
+ key: 1,
708
+ class: "vue-ui-strip-plot-category-name",
709
+ 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})`,
710
+ "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
711
+ fill: e.value.style.chart.labels.xAxisLabels.color,
712
+ "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
713
+ innerHTML: i(Nt)({
714
+ content: i(It)(String(l)),
715
+ fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
716
+ fill: e.value.style.chart.labels.xAxisLabels.color,
717
+ x: 0,
718
+ y: 0
719
+ })
720
+ }, null, 8, vl)) : (r(), n("text", {
721
+ key: 0,
722
+ class: "vue-ui-strip-plot-category-name",
723
+ 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})`,
724
+ "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
725
+ fill: e.value.style.chart.labels.xAxisLabels.color,
726
+ "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
727
+ }, S(String(l)), 9, il))
728
+ ]))), 256))
729
+ ], 512)) : c("", !0),
730
+ e.value.style.chart.labels.axis.yLabel ? (r(), n("text", {
731
+ key: 4,
732
+ ref_key: "yAxisLabel",
733
+ ref: Z,
734
+ fill: e.value.style.chart.labels.axis.color,
735
+ "font-size": e.value.style.chart.labels.axis.fontSize,
736
+ transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
737
+ "text-anchor": "middle"
738
+ }, S(e.value.style.chart.labels.axis.yLabel), 9, cl)) : c("", !0),
739
+ e.value.style.chart.labels.axis.xLabel ? (r(), n("text", {
740
+ key: 5,
741
+ ref_key: "xAxisLabel",
742
+ ref: Q,
743
+ fill: e.value.style.chart.labels.axis.color,
744
+ "font-size": e.value.style.chart.labels.axis.fontSize,
745
+ x: o.value.left + o.value.width / 2,
746
+ y: w.value - e.value.style.chart.labels.axis.fontSize / 3,
747
+ "text-anchor": "middle"
748
+ }, S(e.value.style.chart.labels.axis.xLabel), 9, hl)) : c("", !0),
749
+ h.value ? (r(), n(m, { key: 6 }, [
750
+ k("line", {
751
+ x1: o.value.left,
752
+ x2: o.value.right,
753
+ y1: h.value.y,
754
+ y2: h.value.y,
755
+ stroke: h.value.color,
756
+ "stroke-width": 1,
757
+ class: W({ "select-circle": e.value.useCssAnimation })
758
+ }, null, 10, dl),
759
+ k("circle", {
760
+ cx: o.value.left,
761
+ cy: h.value.y,
762
+ r: 3,
763
+ fill: h.value.color,
764
+ class: W({ "select-circle": e.value.useCssAnimation })
765
+ }, null, 10, pl),
766
+ k("circle", {
767
+ cx: o.value.right,
768
+ cy: h.value.y,
769
+ r: 3,
770
+ fill: h.value.color,
771
+ class: W({ "select-circle": e.value.useCssAnimation })
772
+ }, null, 10, fl)
773
+ ], 64)) : c("", !0),
774
+ k("defs", null, [
775
+ (r(!0), n(m, null, C(x.value, (l) => (r(), n("radialGradient", {
776
+ id: l.id,
777
+ fy: "30%"
778
+ }, [
779
+ k("stop", {
780
+ offset: "10%",
781
+ "stop-color": i(Mt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
782
+ }, null, 8, bl),
783
+ k("stop", {
784
+ offset: "90%",
785
+ "stop-color": i(Ft)(l.color, 0.1)
786
+ }, null, 8, ml),
787
+ k("stop", {
788
+ offset: "100%",
789
+ "stop-color": l.color
790
+ }, null, 8, gl)
791
+ ], 8, yl))), 256))
792
+ ]),
793
+ (r(!0), n(m, null, C(ct.value, (l, s) => (r(), n(m, null, [
794
+ (r(!0), n(m, null, C(l.plots, (u, f) => (r(), T(qt, wt({ ref_for: !0 }, t.$attrs, {
795
+ plot: { x: u.x, y: ge.value ? u.y : o.value.top },
796
+ radius: h.value && h.value.id === u.id ? re.value * 1.5 : re.value,
797
+ shape: e.value.style.chart.plots.shape,
798
+ stroke: e.value.style.chart.plots.stroke,
799
+ strokeWidth: e.value.style.chart.plots.strokeWidth,
800
+ color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
801
+ 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` : ""}`,
802
+ class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && D.value && !i(te), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !D.value },
803
+ onMouseenter: (X) => pt({ datapoint: u, seriesIndex: f }),
804
+ onMouseleave: (X) => ht({ datapoint: u, seriesIndex: f }),
805
+ onClick: (X) => dt({ datapoint: u, seriesIndex: f })
806
+ }), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
807
+ d.value.dataLabels.show ? (r(), n("g", xl, [
808
+ (r(!0), n(m, null, C(l.plots, (u, f) => (r(), n(m, null, [
809
+ f === l.plots.length - 1 || h.value && h.value.id === u.id && !d.value.showTooltip ? (r(), n("text", {
810
+ key: 0,
811
+ x: u.x,
812
+ 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),
813
+ "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
814
+ fill: e.value.style.chart.labels.bestPlotLabel.color,
815
+ "text-anchor": "middle",
816
+ style: j(`opacity:${e.value.useCssAnimation && D.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
817
+ }, S(u.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? i(pe)(
818
+ e.value.style.chart.labels.formatter,
819
+ u.value,
820
+ i(Y)({
821
+ p: `(${e.value.style.chart.labels.prefix}`,
822
+ v: u.value,
823
+ s: `${e.value.style.chart.labels.suffix})`,
824
+ r: e.value.style.chart.labels.bestPlotLabel.rounding
825
+ }),
826
+ { datapoint: u, seriesIndex: f }
827
+ ) : ""), 13, kl)) : c("", !0)
828
+ ], 64))), 256))
829
+ ])) : c("", !0)
830
+ ], 64))), 256)),
831
+ y(t.$slots, "svg", { svg: o.value }, void 0, !0)
832
+ ], 14, Zt)),
833
+ t.$slots.watermark ? (r(), n("div", wl, [
834
+ y(t.$slots, "watermark", M(F({ isPrinting: i($e) || i(Te) })), void 0, !0)
835
+ ])) : c("", !0),
836
+ t.$slots.source ? (r(), n("div", {
837
+ key: 5,
838
+ ref_key: "source",
839
+ ref: be,
840
+ dir: "auto"
841
+ }, [
842
+ y(t.$slots, "source", {}, void 0, !0)
843
+ ], 512)) : c("", !0),
844
+ Be(i(Qe), {
845
+ show: d.value.showTooltip && J.value,
846
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
847
+ color: e.value.style.chart.tooltip.color,
848
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
849
+ borderColor: e.value.style.chart.tooltip.borderColor,
850
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
851
+ fontSize: e.value.style.chart.tooltip.fontSize,
852
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
853
+ position: e.value.style.chart.tooltip.position,
854
+ offsetY: e.value.style.chart.tooltip.offsetY,
855
+ parent: A.value,
856
+ content: K.value,
857
+ isFullscreen: N.value,
858
+ isCustom: i(Xe)(e.value.style.chart.tooltip.customFormat),
859
+ smooth: e.value.style.chart.tooltip.smooth,
860
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
861
+ }, {
862
+ "tooltip-before": b(() => [
863
+ y(t.$slots, "tooltip-before", M(F({ ...ie.value })), void 0, !0)
864
+ ]),
865
+ "tooltip-after": b(() => [
866
+ y(t.$slots, "tooltip-after", M(F({ ...ie.value })), void 0, !0)
867
+ ]),
868
+ _: 3
869
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
870
+ E.value ? (r(), T(i(Ze), {
871
+ key: 6,
872
+ hideDetails: "",
873
+ config: {
874
+ open: d.value.showTable,
875
+ maxHeight: 1e4,
876
+ body: {
877
+ backgroundColor: e.value.style.chart.backgroundColor,
878
+ color: e.value.style.chart.color
879
+ },
880
+ head: {
881
+ backgroundColor: e.value.style.chart.backgroundColor,
882
+ color: e.value.style.chart.color
883
+ }
884
+ }
885
+ }, {
886
+ content: b(() => [
887
+ (r(), T(i(et), {
888
+ key: `table_${ke.value}`,
889
+ colNames: V.value.colNames,
890
+ head: V.value.head,
891
+ body: V.value.body,
892
+ config: V.value.config,
893
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
894
+ onClose: a[0] || (a[0] = (l) => d.value.showTable = !1)
895
+ }, {
896
+ th: b(({ th: l }) => [
897
+ k("div", {
898
+ innerHTML: l,
899
+ style: { display: "flex", "align-items": "center" }
900
+ }, null, 8, Al)
901
+ ]),
902
+ td: b(({ td: l }) => [
903
+ At(S(l.name || l), 1)
904
+ ]),
905
+ _: 1
906
+ }, 8, ["colNames", "head", "body", "config", "title"]))
907
+ ]),
908
+ _: 1
909
+ }, 8, ["config"])) : c("", !0),
910
+ i(te) ? (r(), T(Ht, { key: 7 })) : c("", !0)
911
+ ], 46, Qt));
912
+ }
913
+ }, Rl = /* @__PURE__ */ Kt(Ll, [["__scopeId", "data-v-1a2bfe64"]]);
914
+ export {
915
+ Rl as default
916
+ };