vue-data-ui 3.25.8 → 3.25.9

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 (145) hide show
  1. package/dist/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
  2. package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-KBMdaOXg.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-bump.js +1 -1
  7. package/dist/components/vue-ui-candlestick.js +1 -1
  8. package/dist/components/vue-ui-carousel-table.js +1 -1
  9. package/dist/components/vue-ui-chestnut.js +1 -1
  10. package/dist/components/vue-ui-chord.js +1 -1
  11. package/dist/components/vue-ui-circle-pack.js +1 -1
  12. package/dist/components/vue-ui-cursor.js +1 -1
  13. package/dist/components/vue-ui-dag.js +1 -1
  14. package/dist/components/vue-ui-dashboard.js +1 -1
  15. package/dist/components/vue-ui-digits.js +1 -1
  16. package/dist/components/vue-ui-donut-evolution.js +1 -1
  17. package/dist/components/vue-ui-donut.js +1 -1
  18. package/dist/components/vue-ui-dumbbell.js +1 -1
  19. package/dist/components/vue-ui-flow.js +1 -1
  20. package/dist/components/vue-ui-funnel.js +1 -1
  21. package/dist/components/vue-ui-galaxy.js +1 -1
  22. package/dist/components/vue-ui-gauge.js +1 -1
  23. package/dist/components/vue-ui-geo.js +1 -1
  24. package/dist/components/vue-ui-gizmo.js +1 -1
  25. package/dist/components/vue-ui-heatmap.js +1 -1
  26. package/dist/components/vue-ui-hill.js +1 -1
  27. package/dist/components/vue-ui-history-plot.js +1 -1
  28. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  29. package/dist/components/vue-ui-kpi.js +1 -1
  30. package/dist/components/vue-ui-molecule.js +1 -1
  31. package/dist/components/vue-ui-mood-radar.js +1 -1
  32. package/dist/components/vue-ui-nested-donuts.js +1 -1
  33. package/dist/components/vue-ui-onion.js +1 -1
  34. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  35. package/dist/components/vue-ui-quadrant.js +1 -1
  36. package/dist/components/vue-ui-quick-chart.js +1 -1
  37. package/dist/components/vue-ui-radar.js +1 -1
  38. package/dist/components/vue-ui-relation-circle.js +1 -1
  39. package/dist/components/vue-ui-ridgeline.js +1 -1
  40. package/dist/components/vue-ui-rings.js +1 -1
  41. package/dist/components/vue-ui-scatter.js +1 -1
  42. package/dist/components/vue-ui-skeleton.js +1 -1
  43. package/dist/components/vue-ui-spark-trend.js +1 -1
  44. package/dist/components/vue-ui-sparkbar.js +1 -1
  45. package/dist/components/vue-ui-sparkgauge.js +1 -1
  46. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  47. package/dist/components/vue-ui-sparkline.js +1 -1
  48. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  49. package/dist/components/vue-ui-stackbar.js +1 -1
  50. package/dist/components/vue-ui-stackline.js +1 -1
  51. package/dist/components/vue-ui-strip-plot.js +1 -1
  52. package/dist/components/vue-ui-table-sparkline.js +1 -1
  53. package/dist/components/vue-ui-table.js +1 -1
  54. package/dist/components/vue-ui-thermometer.js +1 -1
  55. package/dist/components/vue-ui-timer.js +1 -1
  56. package/dist/components/vue-ui-tiremarks.js +1 -1
  57. package/dist/components/vue-ui-treemap.js +1 -1
  58. package/dist/components/vue-ui-vertical-bar.js +1 -1
  59. package/dist/components/vue-ui-waffle.js +1 -1
  60. package/dist/components/vue-ui-wheel.js +1 -1
  61. package/dist/components/vue-ui-word-cloud.js +1 -1
  62. package/dist/components/vue-ui-world.js +1 -1
  63. package/dist/components/vue-ui-xy-canvas.js +1 -1
  64. package/dist/components/vue-ui-xy.js +1 -1
  65. package/dist/{package-C4XeEHJx.js → package-BL27Ev_h.js} +1 -1
  66. package/dist/{render-common-CQUp12xB.js → render-common-By8J0AE-.js} +1 -1
  67. package/dist/ssr/vue-ui-donut.js +1 -1
  68. package/dist/ssr/vue-ui-xy.js +1 -1
  69. package/dist/ssr.js +2 -2
  70. package/dist/style.css +1 -1
  71. package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-CBWuUAXT.js} +62 -62
  72. package/dist/vue-data-ui.js +62 -62
  73. package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-BSbq90H3.js} +2 -2
  74. package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
  75. package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-B2Y3Wqh9.js} +2 -2
  76. package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DXvvjG4I.js} +2 -2
  77. package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
  78. package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-D-ZkPRta.js} +1 -1
  79. package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-CyW3IoYC.js} +2 -2
  80. package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DS0jni9A.js} +2 -2
  81. package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
  82. package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-qOONOtcv.js} +1 -1
  83. package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-CmeFsKhR.js} +2 -2
  84. package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-C7Z5BTN4.js} +58 -58
  85. package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-Bf68x6fb.js} +1 -1
  86. package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CkBPJW_T.js} +836 -824
  87. package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-DzDSYgVp.js} +1 -1
  88. package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-CDJumo0t.js} +2 -2
  89. package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-Cr__26dN.js} +2 -2
  90. package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
  91. package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-BlC7KxS6.js} +1 -1
  92. package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
  93. package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-BHsaent1.js} +2 -2
  94. package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-CE3Cr0or.js} +407 -395
  95. package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-DqFUBEai.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DXqj9ial.js} +405 -393
  97. package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-B3fPAfhL.js} +1 -1
  98. package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
  99. package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
  100. package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-Mf318HvK.js} +1 -1
  101. package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-CaLReo4h.js} +346 -334
  102. package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-jkE2ENX5.js} +2 -2
  103. package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
  104. package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
  105. package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
  106. package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
  107. package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
  108. package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-O3AjGrc-.js} +330 -318
  109. package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRnH2ikm.js} +2 -2
  110. package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-Blejn8LY.js} +2 -2
  111. package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-C1U38Bp0.js} +321 -309
  112. package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
  113. package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-BPr3u7IL.js} +1 -1
  114. package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend-B7w4Mg8O.js} +2 -2
  115. package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-lVDnYEYA.js} +2 -2
  116. package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-BryoGCoc.js} +2 -2
  117. package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-BdNoLb9L.js} +2 -2
  118. package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-CNFD5K6z.js} +2 -2
  119. package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
  120. package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
  121. package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
  122. package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
  123. package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-BzF75YjN.js} +2 -2
  124. package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-B9ICTtoE.js} +1 -1
  125. package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-Am7llqdI.js} +2 -2
  126. package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-D6EvkM31.js} +1 -1
  127. package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DiQJu8Em.js} +2 -2
  128. package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-wUZpijpr.js} +309 -297
  129. package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
  130. package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DnyCE0CK.js} +2 -2
  131. package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
  132. package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-QNGY2WPz.js} +474 -462
  133. package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BD-ighya.js} +1 -1
  134. package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
  135. package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
  136. package/package.json +1 -1
  137. package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
  138. package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
  139. package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
  140. package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
  141. package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
  142. package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
  143. package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
  144. package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
  145. package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
@@ -1,1740 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, G as i, Lt as a, Pt as o, S as s, X as c, Xt as ee, Y as l, Yt as te, Zt as ne, _ as re, b as ie, en as ae, ht as oe, i as se, jt as ce, lt as le, nt as ue, q as de, t as fe, v as pe, w as me, x as he } from "./lib-Dql7cqyA.js";
3
- import { n as ge, t as _e } from "./useHints-Dq_w2E8B.js";
4
- import { t as ve } from "./useConfig-D32D002m.js";
5
- import { t as ye } from "./usePrinter-DISD7q5m.js";
6
- import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as Se } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as we } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Te } from "./useTransitions-g_zBREk2.js";
11
- import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as De } from "./img-DhGApYG0.js";
13
- import { n as Oe } from "./Title-CPHi-evi.js";
14
- import { t as ke } from "./Shape-CIqU-p2F.js";
15
- import { t as Ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as je, t as Me } from "./useResponsive-ZtArZtUf.js";
17
- import { t as Ne } from "./DefGrad-DVBqDjhO.js";
18
- import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Le } from "./vue_ui_strip_plot-BaHbnnwN.js";
22
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as We, onMounted as Ge, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as w, toRefs as Je, unref as T, watch as Ye, watchEffect as Xe, withCtx as E } from "vue";
23
- //#region src/components/vue-ui-strip-plot.vue
24
- var Ze = /* @__PURE__ */ e({ default: () => kt }), Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
25
- "xmlns",
26
- "viewBox",
27
- "aria-describedby"
28
- ], nt = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], rt = { key: 1 }, it = { key: 0 }, at = [
34
- "x1",
35
- "x2",
36
- "y1",
37
- "y2",
38
- "stroke",
39
- "stroke-width",
40
- "stroke-dasharray"
41
- ], ot = { key: 1 }, st = [
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2",
46
- "stroke",
47
- "stroke-width",
48
- "stroke-dasharray"
49
- ], ct = [
50
- "x1",
51
- "x2",
52
- "y1",
53
- "y2",
54
- "stroke",
55
- "stroke-width"
56
- ], lt = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], ut = [
64
- "transform",
65
- "fill",
66
- "font-size"
67
- ], dt = [
68
- "transform",
69
- "font-size",
70
- "fill",
71
- "text-anchor"
72
- ], ft = [
73
- "transform",
74
- "font-size",
75
- "fill",
76
- "text-anchor",
77
- "innerHTML"
78
- ], pt = [
79
- "fill",
80
- "font-size",
81
- "transform"
82
- ], mt = [
83
- "fill",
84
- "font-size",
85
- "x",
86
- "y"
87
- ], ht = [
88
- "x1",
89
- "x2",
90
- "y1",
91
- "y2",
92
- "stroke"
93
- ], gt = [
94
- "cx",
95
- "cy",
96
- "fill"
97
- ], _t = [
98
- "cx",
99
- "cy",
100
- "fill"
101
- ], vt = [
102
- "d",
103
- "fill",
104
- "stroke",
105
- "fill-opacity",
106
- "stroke-opacity",
107
- "stroke-width",
108
- "onMouseenter"
109
- ], yt = [
110
- "x1",
111
- "x2",
112
- "y1",
113
- "y2",
114
- "stroke",
115
- "stroke-opacity",
116
- "stroke-width"
117
- ], bt = ["onMouseenter"], xt = [
118
- "x1",
119
- "x2",
120
- "y1",
121
- "y2",
122
- "stroke",
123
- "stroke-width"
124
- ], St = [
125
- "x",
126
- "y",
127
- "width",
128
- "height",
129
- "fill",
130
- "stroke",
131
- "stroke-width",
132
- "rx"
133
- ], Ct = [
134
- "cx",
135
- "cy",
136
- "r",
137
- "fill",
138
- "stroke"
139
- ], wt = { key: 1 }, Tt = [
140
- "x",
141
- "y",
142
- "font-size",
143
- "fill"
144
- ], Et = {
145
- key: 0,
146
- style: {
147
- position: "absolute",
148
- top: "100%",
149
- left: "0",
150
- width: "100%"
151
- },
152
- "data-dom-to-png-ignore": "",
153
- "aria-hidden": "true"
154
- }, Dt = {
155
- key: 5,
156
- class: "vue-data-ui-watermark"
157
- }, Ot = { style: {
158
- display: "flex",
159
- "align-items": "center"
160
- } }, kt = /*#__PURE__*/ Ae({
161
- __name: "vue-ui-strip-plot",
162
- props: {
163
- config: {
164
- type: Object,
165
- default() {
166
- return {};
167
- }
168
- },
169
- dataset: {
170
- type: Array,
171
- default() {
172
- return [];
173
- }
174
- }
175
- },
176
- emits: ["selectDatapoint", "copyAlt"],
177
- setup(e, { expose: Ae, emit: Ze }) {
178
- let kt = g(() => import("./Tooltip-hhrkQ3Lk.js")), At = g(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), jt = g(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Mt = g(() => import("./DataTable-oiM9uWrQ.js")), Nt = g(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Pt = g(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ft = g(() => import("./PackageVersion-ekRvV3aF.js").then((e) => e.t)), It = g(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), Lt = [
179
- "classic",
180
- "scatter",
181
- "violin"
182
- ], { vue_ui_strip_plot: Rt } = ve(), { isThemeValid: zt, warnInvalidTheme: Bt } = Ce(), D = e, Vt = Ze, Ht = d({
183
- get() {
184
- return !!D.dataset && D.dataset.length;
185
- },
186
- set(e) {
187
- return e;
188
- }
189
- }), Ut = x(de()), Wt = x(0), Gt = x(!1), Kt = x(""), O = x(null), qt = x(null), Jt = x(null), Yt = x(null), Xt = x(!1), Zt = x(0), Qt = x(0), $t = x(null), en = x(null), tn = x(null), nn = x(null), rn = x(null), an = x(null), k = x(null), on = x(null), A = x("pointer"), sn = x({
190
- x: 0,
191
- y: 0
192
- }), cn = x(!1), j = x(vn()), M = d(() => j.value.userOptions), N = d(() => j.value.style.chart.tooltip), P = d(() => j.value.style.chart.labels), F = d(() => j.value.style.chart.violin), I = d(() => j.value.style.chart.grid), L = d(() => j.value.style.chart);
193
- ge({
194
- config: () => j.value,
195
- dataset: () => D.dataset,
196
- component: "VueUiStripPlot",
197
- rules: [_e.emptyArray, {
198
- test: (e) => e.length > 12,
199
- message: [
200
- "👀 The number of series is > 12. Consider:",
201
- "",
202
- "▶️ Using filters to let users choose a maximum number of series to display.",
203
- "",
204
- "▶️ Using multiple instances of the chart to display related series."
205
- ]
206
- }]
207
- });
208
- let { transitionEnabled: ln } = Te({
209
- config: () => j.value.transitions,
210
- dataset: () => D.dataset
211
- }), un = d(() => yn(j.value.type)), R = d(() => j.value.userOptions.useCursorPointer), dn = d(() => ne({
212
- defaultConfig: {
213
- userOptions: { show: !1 },
214
- table: { show: !1 },
215
- style: { chart: {
216
- backgroundColor: "#99999930",
217
- padding: {
218
- top: 24,
219
- left: 24,
220
- right: 24,
221
- bottom: 24
222
- },
223
- grid: {
224
- stroke: "#6A6A6A",
225
- horizontalGrid: { stroke: "#6A6A6A" },
226
- verticalGrid: { stroke: "#6A6A6A" }
227
- },
228
- plots: { stroke: "#6A6A6A" },
229
- labels: {
230
- bestPlotLabel: { show: !1 },
231
- axis: {
232
- xLabel: "",
233
- yLabel: ""
234
- },
235
- xAxisLabels: { show: !1 },
236
- yAxisLabels: { show: !1 }
237
- }
238
- } }
239
- },
240
- userConfig: j.value.skeletonConfig ?? {}
241
- })), { loading: fn, FINAL_DATASET: pn, manualLoading: mn } = be({
242
- ...Je(D),
243
- FINAL_CONFIG: j,
244
- prepareConfig: vn,
245
- skeletonDataset: D.config?.skeletonDataset ?? [
246
- {
247
- name: "_",
248
- color: "#DBDBDB",
249
- plots: [
250
- {
251
- name: "_",
252
- value: 1
253
- },
254
- {
255
- name: "_",
256
- value: 2
257
- },
258
- {
259
- name: "_",
260
- value: 3
261
- }
262
- ]
263
- },
264
- {
265
- name: "_",
266
- color: "#C4C4C4",
267
- plots: [
268
- {
269
- name: "_",
270
- value: 3
271
- },
272
- {
273
- name: "_",
274
- value: 5
275
- },
276
- {
277
- name: "_",
278
- value: 8
279
- }
280
- ]
281
- },
282
- {
283
- name: "_",
284
- color: "#ADADAD",
285
- plots: [
286
- {
287
- name: "_",
288
- value: 8
289
- },
290
- {
291
- name: "_",
292
- value: 13
293
- },
294
- {
295
- name: "_",
296
- value: 21
297
- }
298
- ]
299
- },
300
- {
301
- name: "_",
302
- color: "#969696",
303
- plots: [
304
- {
305
- name: "_",
306
- value: 21
307
- },
308
- {
309
- name: "_",
310
- value: 34
311
- },
312
- {
313
- name: "_",
314
- value: 55
315
- }
316
- ]
317
- },
318
- {
319
- name: "_",
320
- color: "#808080",
321
- plots: [
322
- {
323
- name: "_",
324
- value: 55
325
- },
326
- {
327
- name: "_",
328
- value: 89
329
- },
330
- {
331
- name: "_",
332
- value: 144
333
- }
334
- ]
335
- }
336
- ],
337
- skeletonConfig: ne({
338
- defaultConfig: j.value,
339
- userConfig: dn.value
340
- })
341
- }), { userOptionsVisible: hn, setUserOptionsVisibility: gn, keepUserOptionState: _n } = Fe({ config: j.value }), { svgRef: z } = Ie({ config: L.value.title });
342
- function vn() {
343
- let e = Se({
344
- userConfig: D.config,
345
- defaultConfig: Rt
346
- }), t = e.theme;
347
- if (!t) return e;
348
- if (!zt.value(e)) return Bt(e), e;
349
- let n = Se({
350
- userConfig: Le[t] || D.config,
351
- defaultConfig: e
352
- }), r = Se({
353
- userConfig: D.config,
354
- defaultConfig: n
355
- });
356
- return {
357
- ...r,
358
- customPalette: r.customPalette.length ? r.customPalette : te[t] || a
359
- };
360
- }
361
- function yn(e) {
362
- return Lt.includes(e) ? e : "classic";
363
- }
364
- Ye(() => D.config, async (e) => {
365
- fn.value || (j.value = vn()), hn.value = !j.value.userOptions.showOnChartHover, Sn(), Zt.value += 1, Qt.value += 1, U.value.dataLabels.show = P.value.bestPlotLabel.show, U.value.showTable = j.value.table.show, U.value.showTooltip = N.value.show, V.value = L.value.width, H.value = L.value.height, Mn.value = L.value.plots.radius;
366
- }, { deep: !0 }), Ye(() => D.dataset, (e) => {
367
- Array.isArray(e) && e.length > 0 && (mn.value = !1);
368
- }, { deep: !0 });
369
- let B = qe(null), bn = qe(null);
370
- Ge(() => {
371
- Sn();
372
- });
373
- let xn = d(() => j.value.debug);
374
- function Sn() {
375
- if (o(D.dataset) ? (ue({
376
- componentName: "VueUiStripPlot",
377
- type: "dataset",
378
- debug: xn.value
379
- }), mn.value = !0) : D.dataset.forEach((e, t) => {
380
- oe({
381
- datasetObject: e,
382
- requiredAttributes: ["name", "plots"]
383
- }).forEach((e) => {
384
- Ht.value = !1, ue({
385
- componentName: "VueUiStripPlot",
386
- type: "datasetSerieAttribute",
387
- property: e,
388
- index: t,
389
- debug: xn.value
390
- });
391
- }), e.plots && e.plots.forEach((e, n) => {
392
- oe({
393
- datasetObject: e,
394
- requiredAttributes: ["name", "value"]
395
- }).forEach((e) => {
396
- Ht.value = !1, ue({
397
- componentName: "VueUiStripPlot",
398
- type: "datasetSerieAttribute",
399
- property: e,
400
- index: `${t},${n}`,
401
- debug: xn.value
402
- });
403
- });
404
- });
405
- }), o(D.dataset) || (mn.value = j.value.loading), j.value.responsive) {
406
- let e = je(() => {
407
- let { width: e, height: t } = Me({
408
- chart: O.value,
409
- title: L.value.title.text ? qt.value : null,
410
- source: Jt.value,
411
- noTitle: Yt.value
412
- });
413
- requestAnimationFrame(() => {
414
- jn.value = t, V.value = Math.max(.1, e), H.value = Math.max(.1, t - 12), j.value.responsiveProportionalSizing ? Mn.value = ee({
415
- relator: Math.min(t, e),
416
- adjuster: 600,
417
- source: L.value.plots.radius,
418
- threshold: 6,
419
- fallback: 6
420
- }) : Mn.value = L.value.plots.radius;
421
- });
422
- });
423
- B.value && (bn.value && B.value.unobserve(bn.value), B.value.disconnect()), B.value = new ResizeObserver(e), bn.value = O.value.parentNode, B.value.observe(bn.value);
424
- }
425
- Xt.value = !0, setTimeout(() => {
426
- kn.value = !1;
427
- }, Bn.value * 50);
428
- }
429
- We(() => {
430
- B.value && (bn.value && B.value.unobserve(bn.value), B.value.disconnect());
431
- });
432
- let { isPrinting: Cn, isImaging: wn, generatePdf: Tn, generateImage: En } = ye({
433
- elementId: `strip-plot_${Ut.value}`,
434
- fileName: L.value.title.text || "vue-ui-strip-plot",
435
- options: j.value.userOptions.print
436
- }), Dn = d(() => j.value.userOptions.show && !L.value.title.text), On = d(() => me(j.value.customPalette)), kn = x(j.value.useCssAnimation), An = x({
437
- top: L.value.padding.top,
438
- bottom: L.value.padding.bottom,
439
- left: L.value.padding.left,
440
- right: L.value.padding.right
441
- }), V = x(L.value.width), H = x(L.value.height), jn = x(L.value.height), Mn = x(L.value.plots.radius), U = x({
442
- showTable: j.value.table.show,
443
- dataLabels: { show: P.value.bestPlotLabel.show },
444
- showTooltip: N.value.show
445
- });
446
- Ye(j, () => {
447
- U.value = {
448
- showTable: j.value.table.show,
449
- dataLabels: { show: P.value.bestPlotLabel.show },
450
- showTooltip: N.value.show
451
- }, V.value = L.value.width, H.value = L.value.height, Mn.value = L.value.plots.radius;
452
- }, { immediate: !0 });
453
- let W = d(() => Math.min(Mn.value, K.value.stripWidth / 2 * .9));
454
- function G(e) {
455
- return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
456
- }
457
- function Nn() {
458
- return Math.max(0, (K.value.stripWidth / 2 - W.value * 1.8) * .86) * Math.min(1, F.value.widthRatio);
459
- }
460
- function Pn() {
461
- let e = 0;
462
- an.value && (e = Array.from(an.value.querySelectorAll("text")).reduce((e, t) => {
463
- let n = t.getComputedTextLength();
464
- return n > e ? n : e;
465
- }, 0));
466
- let t = nn.value ? nn.value.getBoundingClientRect().width : 0;
467
- return e + t + (t ? 24 : 0);
468
- }
469
- let Fn = x(0), In = je((e) => {
470
- Fn.value = e;
471
- }, 100);
472
- Xe((e) => {
473
- let t = rn.value;
474
- if (!t) return;
475
- let n = new ResizeObserver((e) => {
476
- In(e[0].contentRect.height);
477
- });
478
- n.observe(t), e(() => n.disconnect());
479
- }), We(() => {
480
- Fn.value = 0;
481
- });
482
- let Ln = d(() => {
483
- let e = 0;
484
- tn.value && (e = tn.value.getBBox().height + P.value.axis.fontSize / 3 + 12 + P.value.axis.xLabelOffsetY);
485
- let t = 0;
486
- return rn.value && (t = Fn.value + 12), e + t;
487
- }), K = d(() => {
488
- let e = Pn(), t = An.value.left + e + P.value.axis.yLabelOffsetX + 5, n = V.value - An.value.right, r = Math.max(0, n - t), i = An.value.top + L.value.plots.radius + P.value.bestPlotLabel.fontSize, a = H.value - An.value.bottom - Ln.value, o = Math.max(0, a - i), s = Array.isArray(pn.value) ? pn.value.length : 0;
489
- return {
490
- left: t,
491
- right: n,
492
- top: i,
493
- bottom: a,
494
- width: r,
495
- height: o,
496
- stripWidth: s > 0 ? r / s : 0,
497
- absoluteHeight: H.value
498
- };
499
- });
500
- function Rn(e) {
501
- return K.value.left + (e + 1) * K.value.stripWidth - K.value.stripWidth / 2;
502
- }
503
- let zn = d(() => pn.value.map((e, t) => {
504
- let n = de();
505
- return {
506
- ...e,
507
- id: n,
508
- color: e.color ? s(e.color) : On.value[t] || a[t] || a[t % a.length],
509
- plots: e.plots.map((r, i) => ({
510
- ...r,
511
- value: ie(r.value),
512
- parentId: n,
513
- parentName: e.name,
514
- parentIndex: t,
515
- plotIndex: i,
516
- color: e.color ? s(e.color) : On.value[t] || a[t] || a[t % a.length],
517
- id: de()
518
- })).sort((e, t) => e.value - t.value)
519
- };
520
- })), q = d(() => (zn.value || []).map((e, t) => ({
521
- ...e,
522
- plots: e.plots.map((e) => ({
523
- ...e,
524
- x: Rn(t)
525
- }))
526
- }))), Bn = d(() => Math.max(...q.value.map((e) => e.plots.length))), Vn = d(() => {
527
- let e = q.value.flatMap((e) => e.plots.map((e) => e.value));
528
- return {
529
- max: Math.max(...e),
530
- min: Math.min(...e)
531
- };
532
- }), Hn = d(() => {
533
- let e = I.value.scaleMin, t = I.value.scaleMax, n = Math.max(2, I.value.scaleSteps), r = Vn.value.min < 0 ? Vn.value.min : 0, i = Vn.value.max;
534
- if (e === null && t === null) return re(r, i, n);
535
- if (e !== null && t !== null) return pe(e, t, n);
536
- let a = re(e === null ? r : e, t === null ? i : t, n);
537
- return pe(e === null ? a.min : e, t === null ? a.max : t, n);
538
- });
539
- function J(e) {
540
- let t = Hn.value.max - Hn.value.min;
541
- return t ? K.value.bottom - (e - Hn.value.min) / t * K.value.height : K.value.bottom;
542
- }
543
- let Y = d(() => (q.value || []).map((e, t) => {
544
- let n = e.plots.map((e) => ({
545
- ...e,
546
- y: J(e.value)
547
- })), r = un.value === "classic" ? n.map(() => 0) : qn(n);
548
- return {
549
- ...e,
550
- plots: n.map((e, t) => ({
551
- ...e,
552
- x: e.x + r[t]
553
- }))
554
- };
555
- })), X = d(() => un.value === "violin" && !!F.value?.boxPlot?.show);
556
- function Un(e, t) {
557
- if (!e.length) return 0;
558
- if (e.length === 1) return e[0];
559
- let n = (e.length - 1) * t, r = Math.floor(n), i = n - r, a = e[r + 1];
560
- return a === void 0 ? e[r] : e[r] + i * (a - e[r]);
561
- }
562
- let Wn = d(() => X.value ? Y.value.map((e, t) => {
563
- let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r = Un(n, .25), i = Un(n, .5), a = Un(n, .75), o = a - r, s = r - o * 1.5, c = a + o * 1.5, ee = n.find((e) => e >= s), l = n.slice().reverse().find((e) => e <= c), te = Rn(t), ne = Math.max(W.value * 2.8, Math.min(Nn() * .32, K.value.stripWidth * .12)) * Math.min(1.5, F.value.boxPlot.widthRatio);
564
- return {
565
- id: e.id,
566
- boxPlotColor: F.value.boxPlot.useSerieColor ? e.color : F.value.boxPlot.color,
567
- color: e.color,
568
- name: e.name,
569
- count: n.length,
570
- lowerAdjacent: ee ?? n[0],
571
- q1: r,
572
- median: i,
573
- q3: a,
574
- upperAdjacent: l ?? n[n.length - 1],
575
- iqr: o,
576
- lowerFence: s,
577
- upperFence: c,
578
- centerX: te,
579
- boxLeft: te - ne / 2,
580
- boxWidth: ne,
581
- q1Y: J(r),
582
- medianY: J(i),
583
- q3Y: J(a),
584
- lowerY: J(ee ?? n[0]),
585
- upperY: J(l ?? n[n.length - 1])
586
- };
587
- }) : []), Gn = d(() => [
588
- j.value.table.columnNames.series,
589
- F.value.tooltipLabels.lowerAdjacent,
590
- F.value.tooltipLabels.q1,
591
- F.value.tooltipLabels.median,
592
- F.value.tooltipLabels.q3,
593
- F.value.tooltipLabels.upperAdjacent,
594
- F.value.tooltipLabels.iqr,
595
- F.value.tooltipLabels.count
596
- ]);
597
- function Kn(e) {
598
- return c({
599
- p: P.value.prefix,
600
- v: e,
601
- s: P.value.suffix,
602
- r: j.value.table.td.roundingValue
603
- });
604
- }
605
- function qn(e) {
606
- let t = un.value === "violin" ? Math.max(0, Nn() - W.value * 1.15) : Math.max(0, K.value.stripWidth / 2 - W.value * 1.5);
607
- if (!e.length || !t) return e.map(() => 0);
608
- let n = e.map(() => 0), r = W.value * 2.1, i = Math.min(t, r), a = [0];
609
- for (let e = i; e <= t + i / 2; e += i) a.push(-Math.min(e, t)), a.push(Math.min(e, t));
610
- let o = [];
611
- return e.forEach((e, t) => {
612
- let i = a.find((t) => o.every((n) => {
613
- let i = t - n.offset, a = e.y - n.y;
614
- return Math.hypot(i, a) >= r;
615
- })) ?? 0;
616
- n[t] = i, o.push({
617
- y: e.y,
618
- offset: i
619
- });
620
- }), n;
621
- }
622
- let Jn = d(() => un.value === "violin" ? Y.value.map((e, t) => ({
623
- id: e.id,
624
- color: F.value.useSerieColor ? e.color : F.value.stroke,
625
- fill: F.value.useSerieColor ? e.color : F.value.fill,
626
- path: Yn(e.plots, t),
627
- connectors: Xn(e.plots, t)
628
- })) : []);
629
- function Yn(e, t) {
630
- let n = Nn();
631
- if (!e.length || !K.value.height || !n) return "";
632
- let r = Rn(t), i = e.map((e) => e.y), a = Z(i), o = Qn({
633
- yValues: i,
634
- bandwidth: a
635
- });
636
- return o.length > 1 ? o.map((e) => er({
637
- yValues: e,
638
- centerX: r,
639
- maxWidth: Zn({
640
- clusterLength: e.length,
641
- totalLength: i.length,
642
- maxWidth: n
643
- }),
644
- bandwidth: Z(e)
645
- })).join(" ") : er({
646
- yValues: i,
647
- centerX: r,
648
- maxWidth: n,
649
- bandwidth: a
650
- });
651
- }
652
- function Xn(e, t) {
653
- if (!e.length) return [];
654
- let n = Rn(t), r = e.map((e) => e.y), i = Qn({
655
- yValues: r,
656
- bandwidth: Z(r)
657
- });
658
- return i.length < 2 ? [] : i.slice(1).map((e, t) => {
659
- let r = i[t], a = Z(r), o = Z(e), s = he(Math.max(...r) + a * 2.35, K.value.top, K.value.bottom), c = he(Math.min(...e) - o * 2.35, K.value.top, K.value.bottom);
660
- return {
661
- x: G(n),
662
- y1: G(s),
663
- y2: G(c)
664
- };
665
- });
666
- }
667
- function Zn({ clusterLength: e, totalLength: t, maxWidth: n }) {
668
- let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
669
- return Math.max(W.value * 2.2, n * he(r * i, .18, 1));
670
- }
671
- function Z(e) {
672
- let t = e.reduce((e, t) => e + t, 0) / Math.max(1, e.length), n = e.reduce((e, n) => e + (n - t) ** 2, 0) / Math.max(1, e.length), r = Math.sqrt(n), i = e.length < 2 ? Math.max(W.value * 2.6, K.value.height / 48) : W.value * 2.1;
673
- return he(1.06 * r * e.length ** -.2, i, K.value.height / 5);
674
- }
675
- function Qn({ yValues: e, bandwidth: t }) {
676
- if (e.length < 2) return [e];
677
- let n = [...e].sort((e, t) => e - t), r = Math.max(t * 1.45, W.value * 5), i = [], a = [n[0]];
678
- for (let e = 1; e < n.length; e += 1) Math.abs(n[e] - n[e - 1]) > r ? (i.push(a), a = [n[e]]) : a.push(n[e]);
679
- return i.push(a), $n(i);
680
- }
681
- function $n(e) {
682
- return e.reduce((e, t) => {
683
- let n = e[e.length - 1];
684
- if (!n) return e.push(t), e;
685
- let r = Z(n), i = Z(t);
686
- return Math.max(...n) + r * 2.35 >= Math.min(...t) - i * 2.35 ? n.push(...t) : e.push(t), e;
687
- }, []);
688
- }
689
- function er({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
690
- let i = he(Math.min(...e) - r * 2.35, K.value.top, K.value.bottom), a = he(Math.max(...e) + r * 2.35, K.value.top, K.value.bottom), o = Math.max(48, Math.min(120, Math.round((a - i) / Math.max(1, r / 4)))), s = Array.from({ length: o }, (t, n) => {
691
- let s = i + (a - i) * n / Math.max(1, o - 1);
692
- return {
693
- y: s,
694
- density: e.reduce((e, t) => {
695
- let n = (s - t) / r;
696
- return e + Math.exp(-.5 * n * n);
697
- }, 0)
698
- };
699
- }), c = Math.max(...s.map((e) => e.density));
700
- if (!c) return "";
701
- let ee = s.map((e, t) => {
702
- let r = t === 0 || t === s.length - 1 ? 0 : e.density / c * n;
703
- return {
704
- y: G(e.y),
705
- width: G(r)
706
- };
707
- }), l = ee.map((e) => ({
708
- x: G(t - e.width),
709
- y: e.y
710
- })), te = ee.slice(0, -1).reverse().map((e) => ({
711
- x: G(t + e.width),
712
- y: e.y
713
- }));
714
- return `${tr([...l, ...te])} Z`;
715
- }
716
- function tr(e) {
717
- if (!e.length) return "";
718
- if (e.length === 1) return `M ${e[0].x} ${e[0].y}`;
719
- let t = `M ${e[0].x} ${e[0].y}`;
720
- for (let n = 1; n < e.length - 1; n += 1) {
721
- let r = e[n], i = e[n + 1], a = G((r.x + i.x) / 2), o = G((r.y + i.y) / 2);
722
- t += ` Q ${r.x} ${r.y} ${a} ${o}`;
723
- }
724
- let n = e[e.length - 1];
725
- return `${t} L ${n.x} ${n.y}`;
726
- }
727
- let nr = d(() => Hn.value.ticks.map((e) => ({
728
- y: J(e),
729
- x1: K.value.left,
730
- x2: K.value.right,
731
- value: e
732
- }))), rr = x(null), Q = x(null);
733
- function ir({ datapoint: e, seriesIndex: t }) {
734
- A.value !== "keyboard" && (Gt.value = !1, Q.value = null, j.value.events.datapointLeave && j.value.events.datapointLeave({
735
- datapoint: e,
736
- seriesIndex: t
737
- }));
738
- }
739
- function ar({ datapoint: e, seriesIndex: t }) {
740
- Vt("selectDatapoint", e), j.value.events.datapointClick && j.value.events.datapointClick({
741
- datapoint: e,
742
- seriesIndex: t
743
- });
744
- }
745
- function or(e, t = {}) {
746
- return se(P.value.formatter, e, c({
747
- p: P.value.prefix,
748
- v: e,
749
- s: P.value.suffix,
750
- r: N.value.roundingValue
751
- }), t);
752
- }
753
- function sr({ datapoint: e, seriesIndex: t, triggerMode: r = "pointer" }) {
754
- j.value.events.datapointEnter && j.value.events.datapointEnter({
755
- datapoint: e,
756
- seriesIndex: t
757
- }), A.value = r, rr.value = {
758
- datapoint: e,
759
- seriesIndex: t,
760
- config: j.value,
761
- series: zn.value
762
- }, Gt.value = !0, Q.value = e;
763
- let i = N.value.customFormat;
764
- if (n(i) && le(() => i({
765
- seriesIndex: t,
766
- datapoint: e,
767
- series: zn.value,
768
- config: j.value
769
- }))) Kt.value = i({
770
- seriesIndex: t,
771
- datapoint: e,
772
- series: zn.value,
773
- config: j.value
774
- });
775
- else {
776
- let n = "";
777
- n += `<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="${L.value.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${or(e.value, {
778
- datapoint: e,
779
- seriesIndex: t
780
- })}</div>`, Kt.value = `<div>${n}</div>`;
781
- }
782
- }
783
- function cr() {
784
- A.value !== "keyboard" && (Gt.value = !1, Q.value = null);
785
- }
786
- function lr({ boxPlot: e, seriesIndex: t, triggerMode: r = "pointer" }) {
787
- A.value = r, Q.value = null, Gt.value = !0, rr.value = {
788
- boxPlot: e,
789
- seriesIndex: t,
790
- config: j.value,
791
- series: zn.value
792
- };
793
- let i = N.value.customFormat;
794
- if (n(i)) try {
795
- let n = {
796
- boxPlot: e,
797
- seriesIndex: t,
798
- series: zn.value,
799
- config: j.value
800
- };
801
- if (le(() => i(n))) {
802
- Kt.value = i(n);
803
- return;
804
- }
805
- } catch {}
806
- let a = [
807
- [F.value.tooltipLabels.upperAdjacent, e.upperAdjacent],
808
- [F.value.tooltipLabels.q3, e.q3],
809
- [F.value.tooltipLabels.median, e.median],
810
- [F.value.tooltipLabels.q1, e.q1],
811
- [F.value.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
812
- [F.value.tooltipLabels.iqr, e.iqr]
813
- ], o = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, s = a.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${or(r, {
814
- boxPlot: e,
815
- seriesIndex: t
816
- })}</b></div>`).join("");
817
- Kt.value = `<div style="min-width:160px;"><div style="display:flex;flex-direction:row;gap:6px;align-items:center;margin-bottom:6px;">${o}${e.name}</div>` + s + `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;margin-top:6px;"><span>${F.value.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
818
- }
819
- let ur = d(() => ({
820
- head: q.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
821
- name: `${e.name} - ${t.name}`,
822
- color: t.color
823
- }))),
824
- body: q.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
825
- }));
826
- function dr(e = null) {
827
- He(() => {
828
- let n = [], i = [j.value.table.columnNames.series, j.value.table.columnNames.value];
829
- X.value ? (i = Gn.value, n = Wn.value.map((e) => [
830
- [e.name],
831
- [e.lowerAdjacent],
832
- [e.q1],
833
- [e.median],
834
- [e.q3],
835
- [e.upperAdjacent],
836
- [e.iqr],
837
- [e.count]
838
- ])) : n = ur.value.head.map((e, t) => [[e.name], [ur.value.body[t]]]);
839
- let a = [
840
- [L.value.title.text],
841
- [L.value.title.subtitle.text],
842
- i.map((e) => [e])
843
- ].concat(n), o = r(a);
844
- e ? e(o) : t({
845
- csvContent: o,
846
- title: L.value.title.text || "vue-ui-strip-plot"
847
- });
848
- });
849
- }
850
- let fr = d(() => {
851
- if (X.value) {
852
- let e = Gn.value;
853
- return {
854
- colNames: e,
855
- head: e,
856
- body: Wn.value.map((e) => [
857
- {
858
- color: e.color,
859
- name: e.name
860
- },
861
- Kn(e.lowerAdjacent),
862
- Kn(e.q1),
863
- Kn(e.median),
864
- Kn(e.q3),
865
- Kn(e.upperAdjacent),
866
- Kn(e.iqr),
867
- e.count
868
- ]),
869
- config: {
870
- th: {
871
- backgroundColor: j.value.table.th.backgroundColor,
872
- color: j.value.table.th.color,
873
- outline: j.value.table.th.outline
874
- },
875
- td: {
876
- backgroundColor: j.value.table.td.backgroundColor,
877
- color: j.value.table.td.color,
878
- outline: j.value.table.td.outline
879
- },
880
- breakpoint: j.value.table.responsiveBreakpoint
881
- }
882
- };
883
- }
884
- let e = [j.value.table.columnNames.series, j.value.table.columnNames.value], t = ur.value.head.map((e, t) => {
885
- let n = c({
886
- p: P.value.prefix,
887
- v: ur.value.body[t],
888
- s: P.value.suffix,
889
- r: j.value.table.td.roundingValue
890
- });
891
- return [{
892
- color: e.color,
893
- name: e.name
894
- }, n];
895
- }), n = {
896
- th: {
897
- backgroundColor: j.value.table.th.backgroundColor,
898
- color: j.value.table.th.color,
899
- outline: j.value.table.th.outline
900
- },
901
- td: {
902
- backgroundColor: j.value.table.td.backgroundColor,
903
- color: j.value.table.td.color,
904
- outline: j.value.table.td.outline
905
- },
906
- breakpoint: j.value.table.responsiveBreakpoint
907
- };
908
- return {
909
- colNames: [j.value.table.columnNames.series, j.value.table.columnNames.value],
910
- head: e,
911
- body: t,
912
- config: n
913
- };
914
- }), $ = x(!1);
915
- function pr(e) {
916
- $.value = e, Wt.value += 1;
917
- }
918
- function mr() {
919
- return q.value;
920
- }
921
- function hr() {
922
- U.value.showTable = !U.value.showTable;
923
- }
924
- function gr() {
925
- U.value.dataLabels.show = !U.value.dataLabels.show;
926
- }
927
- function _r() {
928
- U.value.showTooltip = !U.value.showTooltip;
929
- }
930
- let vr = x(!1);
931
- function yr() {
932
- vr.value = !vr.value;
933
- }
934
- async function br({ scale: e = 2 } = {}) {
935
- if (!O.value) return;
936
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await De({
937
- domElement: O.value,
938
- base64: !0,
939
- img: !0,
940
- scale: e
941
- });
942
- return {
943
- imageUri: i,
944
- base64: a,
945
- title: L.value.title.text,
946
- width: t,
947
- height: n,
948
- aspectRatio: r
949
- };
950
- }
951
- let xr = d(() => q.value.map((e) => e.name)), Sr = x({
952
- start: 0,
953
- end: q.value.length
954
- });
955
- Ee({
956
- timeLabelsEls: rn,
957
- timeLabels: xr,
958
- slicer: Sr,
959
- configRef: j,
960
- rotationPath: [
961
- "style",
962
- "chart",
963
- "labels",
964
- "xAxisLabels",
965
- "rotation"
966
- ],
967
- autoRotatePath: [
968
- "style",
969
- "chart",
970
- "labels",
971
- "xAxisLabels",
972
- "autoRotate",
973
- "enable"
974
- ],
975
- isAutoSize: !1,
976
- width: V,
977
- height: H,
978
- targetClass: ".vue-ui-strip-plot-category-name",
979
- rotation: P.value.xAxisLabels.autoRotate.angle
980
- });
981
- let Cr = d(() => {
982
- let e = j.value.table.useDialog && !j.value.table.show, t = U.value.showTable;
983
- return {
984
- component: e ? It : jt,
985
- title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
986
- props: e ? {
987
- backgroundColor: j.value.table.th.backgroundColor,
988
- color: j.value.table.th.color,
989
- headerColor: j.value.table.th.color,
990
- headerBg: j.value.table.th.backgroundColor,
991
- isFullscreen: $.value,
992
- fullscreenParent: O.value,
993
- forcedWidth: Math.min(800, window.innerWidth * .8),
994
- isCursorPointer: R.value
995
- } : {
996
- hideDetails: !0,
997
- config: {
998
- open: t,
999
- maxHeight: 1e4,
1000
- body: {
1001
- backgroundColor: L.value.backgroundColor,
1002
- color: L.value.color
1003
- },
1004
- head: {
1005
- backgroundColor: L.value.backgroundColor,
1006
- color: L.value.color
1007
- }
1008
- }
1009
- }
1010
- };
1011
- });
1012
- Ye(() => U.value.showTable, (e) => {
1013
- j.value.table.show || (e && j.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
1014
- });
1015
- function wr() {
1016
- U.value.showTable = !1, en.value && en.value.setTableIconState(!1);
1017
- }
1018
- let Tr = d(() => L.value.backgroundColor), Er = d(() => L.value.title), { isCallbackImaging: Dr, isCallbackSvg: Or, generateSvg: kr, onGenerateImage: Ar } = we({
1019
- svg: z,
1020
- title: Er,
1021
- legend: null,
1022
- legendItems: null,
1023
- backgroundColor: Tr,
1024
- getSvgCallback: () => j.value.userOptions.callbacks.svg,
1025
- generateImage: En
1026
- });
1027
- async function jr() {
1028
- if (Vt("copyAlt", {
1029
- config: j.value,
1030
- dataset: Y.value
1031
- }), !j.value.userOptions.callbacks.altCopy) {
1032
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1033
- return;
1034
- }
1035
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
1036
- config: j.value,
1037
- dataset: Y.value
1038
- }));
1039
- }
1040
- function Mr() {
1041
- return Y.value.length;
1042
- }
1043
- function Nr(e) {
1044
- return Y.value[e]?.plots ?? [];
1045
- }
1046
- function Pr(e = k.value, t = on.value) {
1047
- return !Number.isInteger(e) || !Number.isInteger(t) ? null : Nr(e)[t] ?? null;
1048
- }
1049
- function Fr() {
1050
- k.value = null, on.value = null, A.value = "pointer", Gt.value = !1, Q.value = null;
1051
- }
1052
- function Ir(e) {
1053
- if (!e || !z.value) return;
1054
- let t = z.value.getBoundingClientRect();
1055
- sn.value = {
1056
- x: t.left + e.x / V.value * t.width,
1057
- y: t.top + e.y / H.value * t.height
1058
- };
1059
- }
1060
- function Lr(e, t) {
1061
- let n = Pr(e, t);
1062
- n && (k.value = e, on.value = t, A.value = "keyboard", Ir(n), sr({
1063
- datapoint: n,
1064
- seriesIndex: e,
1065
- triggerMode: "keyboard"
1066
- }));
1067
- }
1068
- function Rr() {
1069
- cn.value = !0, k.value = null, on.value = null;
1070
- }
1071
- function zr() {
1072
- cn.value = !1, Fr();
1073
- }
1074
- function Br(e) {
1075
- if (!z.value || vr.value || document.activeElement !== z.value || !Mr()) return;
1076
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1077
- if (!t && !n && !r && !i && !a && !o) return;
1078
- if (e.preventDefault(), e.stopPropagation(), o) {
1079
- Fr();
1080
- return;
1081
- }
1082
- let s = k.value, c = on.value;
1083
- if (s === null || c === null) s = 0, c = 0;
1084
- else if (t || n) {
1085
- let e = Mr();
1086
- s = n ? (s + 1) % e : (s - 1 + e) % e;
1087
- let t = Nr(s);
1088
- if (!t.length) return;
1089
- c = Math.min(c, t.length - 1);
1090
- } else if (r || i) {
1091
- let e = Nr(s);
1092
- if (!e.length) return;
1093
- c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
1094
- }
1095
- if (a) {
1096
- let e = Pr();
1097
- if (!e) return;
1098
- ar({
1099
- datapoint: e,
1100
- seriesIndex: k.value
1101
- });
1102
- return;
1103
- }
1104
- Lr(s, c);
1105
- }
1106
- let Vr = d(() => ({
1107
- headers: fr.value?.colNames ?? [],
1108
- rows: fr.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
1109
- }));
1110
- return Ae({
1111
- getData: mr,
1112
- getImage: br,
1113
- generatePdf: Tn,
1114
- generateCsv: dr,
1115
- generateImage: En,
1116
- generateSvg: kr,
1117
- toggleTable: hr,
1118
- toggleLabels: gr,
1119
- toggleTooltip: _r,
1120
- toggleAnnotator: yr,
1121
- toggleFullscreen: pr,
1122
- copyAlt: jr
1123
- }), (e, t) => (b(), m("div", {
1124
- ref_key: "stripPlotChart",
1125
- ref: O,
1126
- class: Ue(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1127
- style: y(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor};${j.value.responsive ? "height:100%" : ""}`),
1128
- id: `strip-plot_${Ut.value}`,
1129
- onMouseenter: t[2] ||= () => T(gn)(!0),
1130
- onMouseleave: t[3] ||= () => T(gn)(!1)
1131
- }, [
1132
- h("div", {
1133
- id: `chart-instructions-${Ut.value}`,
1134
- class: "sr-only"
1135
- }, [h("p", null, w(j.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
1136
- Vr.value?.rows?.length ? (b(), f(Pe, {
1137
- key: 0,
1138
- uid: Ut.value,
1139
- head: Vr.value.headers,
1140
- body: Vr.value.rows,
1141
- notice: j.value.a11y.translations.tableAvailable,
1142
- caption: j.value.a11y.translations.tableCaption
1143
- }, null, 8, [
1144
- "uid",
1145
- "head",
1146
- "body",
1147
- "notice",
1148
- "caption"
1149
- ])) : p("", !0),
1150
- M.value.buttons.annotator ? (b(), f(T(Pt), {
1151
- key: 1,
1152
- svgRef: T(z),
1153
- backgroundColor: L.value.backgroundColor,
1154
- color: L.value.color,
1155
- active: vr.value,
1156
- isCursorPointer: R.value,
1157
- palette: M.value.annotatorPalette,
1158
- onClose: yr
1159
- }, {
1160
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1161
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
1162
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
1163
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
1164
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
1165
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
1166
- _: 3
1167
- }, 8, [
1168
- "svgRef",
1169
- "backgroundColor",
1170
- "color",
1171
- "active",
1172
- "isCursorPointer",
1173
- "palette"
1174
- ])) : p("", !0),
1175
- Dn.value ? (b(), m("div", {
1176
- key: 2,
1177
- ref_key: "noTitle",
1178
- ref: Yt,
1179
- class: "vue-data-ui-no-title-space",
1180
- style: "height:36px; width: 100%;background:transparent"
1181
- }, null, 512)) : p("", !0),
1182
- L.value.title.text ? (b(), m("div", {
1183
- key: 3,
1184
- ref_key: "chartTitle",
1185
- ref: qt,
1186
- style: "width:100%;background:transparent;padding-bottom:24px"
1187
- }, [(b(), f(Oe, {
1188
- key: `title_${Zt.value}`,
1189
- config: {
1190
- title: {
1191
- cy: "donut-div-title",
1192
- ...L.value.title
1193
- },
1194
- subtitle: {
1195
- cy: "donut-div-subtitle",
1196
- ...L.value.title.subtitle
1197
- }
1198
- }
1199
- }, null, 8, ["config"]))], 512)) : p("", !0),
1200
- M.value.show && Ht.value && (T(_n) || T(hn)) ? (b(), f(T(Nt), {
1201
- ref_key: "userOptionsRef",
1202
- ref: en,
1203
- key: `user_option_${Wt.value}`,
1204
- backgroundColor: L.value.backgroundColor,
1205
- color: L.value.color,
1206
- isPrinting: T(Cn),
1207
- isImaging: T(wn),
1208
- uid: Ut.value,
1209
- hasTooltip: M.value.buttons.tooltip && N.value.show,
1210
- hasPdf: M.value.buttons.pdf,
1211
- hasXls: M.value.buttons.csv,
1212
- hasImg: M.value.buttons.img,
1213
- hasSvg: M.value.buttons.svg,
1214
- hasTable: M.value.buttons.table,
1215
- hasLabel: M.value.buttons.labels && j.value.type !== "violin",
1216
- hasFullscreen: M.value.buttons.fullscreen,
1217
- hasAltCopy: M.value.buttons.altCopy,
1218
- isTooltip: U.value.showTooltip,
1219
- isFullscreen: $.value,
1220
- titles: { ...M.value.buttonTitles },
1221
- chartElement: O.value,
1222
- position: M.value.position,
1223
- hasAnnotator: M.value.buttons.annotator,
1224
- isAnnotation: vr.value,
1225
- callbacks: M.value.callbacks,
1226
- printScale: M.value.print.scale,
1227
- tableDialog: j.value.table.useDialog,
1228
- isCursorPointer: R.value,
1229
- onToggleFullscreen: pr,
1230
- onGeneratePdf: T(Tn),
1231
- onGenerateCsv: dr,
1232
- onGenerateImage: T(Ar),
1233
- onGenerateSvg: T(kr),
1234
- onToggleTable: hr,
1235
- onToggleLabels: gr,
1236
- onToggleTooltip: _r,
1237
- onToggleAnnotator: yr,
1238
- onCopyAlt: jr,
1239
- style: y({ visibility: T(_n) ? T(hn) ? "visible" : "hidden" : "visible" })
1240
- }, Re({ _: 2 }, [
1241
- e.$slots.menuIcon ? {
1242
- name: "menuIcon",
1243
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
1244
- isOpen: t,
1245
- color: n
1246
- })), void 0, !0)]),
1247
- key: "0"
1248
- } : void 0,
1249
- e.$slots.optionTooltip ? {
1250
- name: "optionTooltip",
1251
- fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1252
- key: "1"
1253
- } : void 0,
1254
- e.$slots.optionPdf ? {
1255
- name: "optionPdf",
1256
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1257
- key: "2"
1258
- } : void 0,
1259
- e.$slots.optionCsv ? {
1260
- name: "optionCsv",
1261
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1262
- key: "3"
1263
- } : void 0,
1264
- e.$slots.optionImg ? {
1265
- name: "optionImg",
1266
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1267
- key: "4"
1268
- } : void 0,
1269
- e.$slots.optionSvg ? {
1270
- name: "optionSvg",
1271
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1272
- key: "5"
1273
- } : void 0,
1274
- e.$slots.optionTable ? {
1275
- name: "optionTable",
1276
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1277
- key: "6"
1278
- } : void 0,
1279
- e.$slots.optionLabels ? {
1280
- name: "optionLabels",
1281
- fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
1282
- key: "7"
1283
- } : void 0,
1284
- e.$slots.optionFullscreen ? {
1285
- name: "optionFullscreen",
1286
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
1287
- toggleFullscreen: t,
1288
- isFullscreen: n
1289
- })), void 0, !0)]),
1290
- key: "8"
1291
- } : void 0,
1292
- e.$slots.optionAnnotator ? {
1293
- name: "optionAnnotator",
1294
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
1295
- toggleAnnotator: t,
1296
- isAnnotator: n
1297
- })), void 0, !0)]),
1298
- key: "9"
1299
- } : void 0,
1300
- e.$slots.optionAltCopy ? {
1301
- name: "optionAltCopy",
1302
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
1303
- key: "10"
1304
- } : void 0,
1305
- e.$slots["custom-menu-before"] ? {
1306
- name: "custom-menu-before",
1307
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1308
- key: "11"
1309
- } : void 0,
1310
- e.$slots["custom-menu-after"] ? {
1311
- name: "custom-menu-after",
1312
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1313
- key: "12"
1314
- } : void 0
1315
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
1316
- h("div", et, [(b(), m("svg", {
1317
- ref_key: "svgRef",
1318
- ref: z,
1319
- xmlns: T(fe),
1320
- class: Ue({
1321
- "vue-data-ui-fullscreen--on": $.value,
1322
- "vue-data-ui-fulscreen--off": !$.value,
1323
- "vue-data-ui-no-transition": !T(ln)
1324
- }),
1325
- viewBox: `0 0 ${V.value} ${H.value}`,
1326
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${L.value.color};`),
1327
- "aria-describedby": `chart-instructions-${Ut.value}`,
1328
- tabindex: "0",
1329
- onFocus: Rr,
1330
- onBlur: zr,
1331
- onKeydown: Br
1332
- }, [
1333
- Be(T(Ft)),
1334
- e.$slots["chart-background"] ? (b(), m("foreignObject", {
1335
- key: 0,
1336
- x: K.value.left,
1337
- y: K.value.top,
1338
- width: Math.max(.1, K.value.width),
1339
- height: Math.max(.1, K.value.height),
1340
- style: { pointerEvents: "none" }
1341
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : p("", !0),
1342
- I.value.show ? (b(), m("g", rt, [
1343
- I.value.horizontalGrid.show ? (b(), m("g", it, [(b(!0), m(u, null, S(nr.value, (e) => (b(), m("line", {
1344
- x1: e.x1,
1345
- x2: e.x2,
1346
- y1: e.y,
1347
- y2: e.y,
1348
- stroke: I.value.horizontalGrid.stroke,
1349
- "stroke-width": I.value.horizontalGrid.strokeWidth,
1350
- "stroke-dasharray": I.value.horizontalGrid.strokeDasharray,
1351
- "stroke-linecap": "round"
1352
- }, null, 8, at))), 256))])) : p("", !0),
1353
- I.value.verticalGrid.show ? (b(), m("g", ot, [(b(!0), m(u, null, S(q.value, (e, t) => (b(), m("line", {
1354
- x1: K.value.left + (t + 1) * K.value.stripWidth,
1355
- x2: K.value.left + (t + 1) * K.value.stripWidth,
1356
- y1: K.value.top,
1357
- y2: K.value.bottom,
1358
- stroke: I.value.verticalGrid.stroke,
1359
- "stroke-width": I.value.verticalGrid.strokeWidth,
1360
- "stroke-dasharray": I.value.verticalGrid.strokeDasharray,
1361
- "stroke-linecap": "round"
1362
- }, null, 8, st))), 256))])) : p("", !0),
1363
- h("line", {
1364
- x1: K.value.left,
1365
- x2: K.value.left,
1366
- y1: K.value.top,
1367
- y2: K.value.bottom,
1368
- stroke: I.value.stroke,
1369
- "stroke-width": I.value.strokeWidth,
1370
- "stroke-linecap": "round"
1371
- }, null, 8, ct),
1372
- h("line", {
1373
- x1: K.value.left,
1374
- x2: K.value.right,
1375
- y1: K.value.bottom,
1376
- y2: K.value.bottom,
1377
- stroke: I.value.stroke,
1378
- "stroke-width": I.value.strokeWidth,
1379
- "stroke-linecap": "round"
1380
- }, null, 8, lt)
1381
- ])) : p("", !0),
1382
- P.value.yAxisLabels.show ? (b(), m("g", {
1383
- key: 2,
1384
- ref_key: "scaleLabels",
1385
- ref: an
1386
- }, [(b(!0), m(u, null, S(nr.value, (e, t) => (b(), m("text", {
1387
- class: Ue({ "vue-data-ui-transition": T(ln) }),
1388
- key: `sl_${t}`,
1389
- transform: `translate(${e.x1 + P.value.yAxisLabels.offsetX - 5}, ${e.y + P.value.yAxisLabels.fontSize / 3})`,
1390
- fill: P.value.yAxisLabels.color,
1391
- "font-size": P.value.yAxisLabels.fontSize,
1392
- "text-anchor": "end"
1393
- }, w(T(se)(P.value.formatter, e.value, T(c)({
1394
- p: P.value.prefix,
1395
- v: e.value,
1396
- s: P.value.suffix,
1397
- r: P.value.yAxisLabels.rounding
1398
- }), {
1399
- datapoint: e,
1400
- seriesIndex: t
1401
- })), 11, ut))), 128))], 512)) : p("", !0),
1402
- P.value.xAxisLabels.show ? (b(), m("g", {
1403
- key: 3,
1404
- ref_key: "timeLabelsEls",
1405
- ref: rn
1406
- }, [(b(!0), m(u, null, S(xr.value, (e, t) => (b(), m("g", null, [String(e).includes("\n") ? (b(), m("text", {
1407
- key: 1,
1408
- class: "vue-ui-strip-plot-category-name",
1409
- transform: `translate(${K.value.left + (t + 1) * K.value.stripWidth - K.value.stripWidth / 2}, ${K.value.bottom + P.value.xAxisLabels.fontSize * 2 + P.value.xAxisLabels.offsetY}), rotate(${P.value.xAxisLabels.rotation})`,
1410
- "font-size": P.value.xAxisLabels.fontSize,
1411
- fill: P.value.xAxisLabels.color,
1412
- "text-anchor": P.value.xAxisLabels.rotation > 0 ? "start" : P.value.xAxisLabels.rotation < 0 ? "end" : "middle",
1413
- innerHTML: T(i)({
1414
- content: T(ae)(String(e)),
1415
- fontSize: P.value.xAxisLabels.fontSize,
1416
- fill: P.value.xAxisLabels.color,
1417
- x: 0,
1418
- y: 0
1419
- })
1420
- }, null, 8, ft)) : (b(), m("text", {
1421
- key: 0,
1422
- class: "vue-ui-strip-plot-category-name",
1423
- transform: `translate(${K.value.left + (t + 1) * K.value.stripWidth - K.value.stripWidth / 2}, ${K.value.bottom + P.value.xAxisLabels.fontSize * 2 + P.value.xAxisLabels.offsetY}), rotate(${P.value.xAxisLabels.rotation})`,
1424
- "font-size": P.value.xAxisLabels.fontSize,
1425
- fill: P.value.xAxisLabels.color,
1426
- "text-anchor": P.value.xAxisLabels.rotation > 0 ? "start" : P.value.xAxisLabels.rotation < 0 ? "end" : "middle"
1427
- }, w(String(e)), 9, dt))]))), 256))], 512)) : p("", !0),
1428
- P.value.axis.yLabel ? (b(), m("text", {
1429
- key: 4,
1430
- ref_key: "yAxisLabel",
1431
- ref: nn,
1432
- fill: P.value.axis.color,
1433
- "font-size": P.value.axis.fontSize,
1434
- transform: `translate(${P.value.axis.fontSize}, ${K.value.top + K.value.height / 2}) rotate(-90)`,
1435
- "text-anchor": "middle"
1436
- }, w(P.value.axis.yLabel), 9, pt)) : p("", !0),
1437
- P.value.axis.xLabel ? (b(), m("text", {
1438
- key: 5,
1439
- ref_key: "xAxisLabel",
1440
- ref: tn,
1441
- fill: P.value.axis.color,
1442
- "font-size": P.value.axis.fontSize,
1443
- x: K.value.left + K.value.width / 2,
1444
- y: H.value - P.value.axis.fontSize / 3,
1445
- "text-anchor": "middle"
1446
- }, w(P.value.axis.xLabel), 9, mt)) : p("", !0),
1447
- Q.value ? (b(), m(u, { key: 6 }, [
1448
- h("line", {
1449
- x1: K.value.left,
1450
- x2: K.value.right,
1451
- y1: Q.value.y,
1452
- y2: Q.value.y,
1453
- stroke: Q.value.color,
1454
- "stroke-width": 1,
1455
- class: Ue({ "select-circle": j.value.useCssAnimation })
1456
- }, null, 10, ht),
1457
- h("circle", {
1458
- cx: K.value.left,
1459
- cy: Q.value.y,
1460
- r: 3,
1461
- fill: Q.value.color,
1462
- class: Ue({ "select-circle": j.value.useCssAnimation })
1463
- }, null, 10, gt),
1464
- h("circle", {
1465
- cx: K.value.right,
1466
- cy: Q.value.y,
1467
- r: 3,
1468
- fill: Q.value.color,
1469
- class: Ue({ "select-circle": j.value.useCssAnimation })
1470
- }, null, 10, _t)
1471
- ], 64)) : p("", !0),
1472
- h("defs", null, [(b(!0), m(u, null, S(q.value, (e) => (b(), f(Ne, {
1473
- t: "radial",
1474
- id: e.id,
1475
- key: `r_${e.id}`,
1476
- fy: "30%",
1477
- stops: [
1478
- [
1479
- "10%",
1480
- T(ce)(e.color, L.value.plots.gradient.intensity / 100),
1481
- 1
1482
- ],
1483
- [
1484
- "90%",
1485
- T(l)(e.color, .1),
1486
- 1
1487
- ],
1488
- [
1489
- "100%",
1490
- e.color,
1491
- 1
1492
- ]
1493
- ]
1494
- }, null, 8, ["id", "stops"]))), 128))]),
1495
- (b(!0), m(u, null, S(Jn.value, (e, n) => (b(), m(u, { key: e.id }, [e.path ? (b(), m("path", {
1496
- key: 0,
1497
- d: e.path,
1498
- fill: e.fill,
1499
- stroke: e.color,
1500
- "fill-opacity": F.value.opacity,
1501
- "stroke-opacity": F.value.strokeOpacity,
1502
- "stroke-width": F.value.strokeWidth,
1503
- style: y({
1504
- pointerEvents: X.value ? "auto" : "none",
1505
- cursor: X.value && R.value ? "pointer" : "default"
1506
- }),
1507
- onMouseenter: (e) => X.value && Wn.value[n] && lr({
1508
- boxPlot: Wn.value[n],
1509
- seriesIndex: n,
1510
- triggerMode: "pointer"
1511
- }),
1512
- onMouseleave: t[0] ||= (e) => X.value && cr()
1513
- }, null, 44, vt)) : p("", !0), (b(!0), m(u, null, S(e.connectors, (t, n) => (b(), m("line", {
1514
- key: `violin_connector_${e.id}_${n}`,
1515
- x1: t.x,
1516
- x2: t.x,
1517
- y1: t.y1,
1518
- y2: t.y2,
1519
- stroke: e.color,
1520
- "stroke-opacity": F.value.strokeOpacity,
1521
- "stroke-width": F.value.strokeWidth,
1522
- "stroke-linecap": "round",
1523
- style: { "pointer-events": "none" }
1524
- }, null, 8, yt))), 128))], 64))), 128)),
1525
- (b(!0), m(u, null, S(Wn.value, (e, t) => (b(), m("g", {
1526
- key: `boxplot_${e.id}`,
1527
- style: y({ cursor: R.value ? "pointer" : "default" }),
1528
- onMouseenter: (n) => lr({
1529
- boxPlot: e,
1530
- seriesIndex: t,
1531
- triggerMode: "pointer"
1532
- }),
1533
- onMouseleave: cr
1534
- }, [
1535
- h("line", {
1536
- x1: e.centerX,
1537
- x2: e.centerX,
1538
- y1: e.upperY,
1539
- y2: e.lowerY,
1540
- stroke: T(l)(e.boxPlotColor, .2),
1541
- "stroke-width": Math.max(1, F.value.strokeWidth),
1542
- "stroke-linecap": "round"
1543
- }, null, 8, xt),
1544
- h("rect", {
1545
- x: e.boxLeft,
1546
- y: Math.min(e.q1Y, e.q3Y),
1547
- width: e.boxWidth,
1548
- height: Math.max(1, Math.abs(e.q3Y - e.q1Y)),
1549
- fill: e.boxPlotColor,
1550
- stroke: T(l)(e.boxPlotColor, .2),
1551
- "stroke-width": Math.max(1, F.value.strokeWidth),
1552
- rx: e.boxWidth / 20
1553
- }, null, 8, St),
1554
- h("circle", {
1555
- cx: e.boxLeft + e.boxWidth / 2,
1556
- cy: e.medianY,
1557
- r: e.boxWidth / 3 * Math.min(1, F.value.boxPlot.medianCircleRadiusRatio),
1558
- fill: F.value.boxPlot.medianCircleFill,
1559
- stroke: T(l)(e.boxPlotColor, .2)
1560
- }, null, 8, Ct)
1561
- ], 44, bt))), 128)),
1562
- (b(!0), m(u, null, S(Y.value, (t, n) => (b(), m(u, null, [X.value ? p("", !0) : (b(!0), m(u, { key: 0 }, S(t.plots, (n, r) => (b(), f(ke, Ve({ ref_for: !0 }, e.$attrs, {
1563
- plot: {
1564
- x: n.x,
1565
- y: Xt.value ? n.y : K.value.top
1566
- },
1567
- radius: Q.value && Q.value.id === n.id ? W.value * 1.5 : W.value,
1568
- shape: L.value.plots.shape,
1569
- stroke: L.value.plots.stroke,
1570
- strokeWidth: L.value.plots.strokeWidth,
1571
- color: L.value.plots.gradient.show ? `url(#${t.id})` : t.color,
1572
- style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : L.value.plots.opacity};${kn.value ? `transition-delay:${r * 50}ms` : ""}`,
1573
- class: {
1574
- "vue-ui-strip-plot-animated": j.value.useCssAnimation && kn.value && !T(fn),
1575
- "vue-ui-strip-plot-select-circle": j.value.useCssAnimation && !kn.value
1576
- },
1577
- onMouseenter: (e) => sr({
1578
- datapoint: n,
1579
- seriesIndex: r,
1580
- triggerMode: "pointer"
1581
- }),
1582
- onMouseleave: (e) => ir({
1583
- datapoint: n,
1584
- seriesIndex: r
1585
- }),
1586
- onClick: (e) => ar({
1587
- datapoint: n,
1588
- seriesIndex: r
1589
- })
1590
- }), null, 16, [
1591
- "plot",
1592
- "radius",
1593
- "shape",
1594
- "stroke",
1595
- "strokeWidth",
1596
- "color",
1597
- "style",
1598
- "class",
1599
- "onMouseenter",
1600
- "onMouseleave",
1601
- "onClick"
1602
- ]))), 256)), U.value.dataLabels.show && !X.value ? (b(), m("g", wt, [(b(!0), m(u, null, S(t.plots, (e, n) => (b(), m(u, null, [n === t.plots.length - 1 || Q.value && Q.value.id === e.id && !U.value.showTooltip ? (b(), m("text", {
1603
- key: 0,
1604
- x: e.x,
1605
- y: e.y + P.value.bestPlotLabel.offsetY - W.value * (Q.value && Q.value.id === e.id && !U.value.showTooltip ? 2 : 1.5),
1606
- "font-size": P.value.bestPlotLabel.fontSize,
1607
- fill: P.value.bestPlotLabel.color,
1608
- "text-anchor": "middle",
1609
- style: y(`opacity:${j.value.useCssAnimation ? +!kn.value : 1};transition:opacity 0.2s ease-in;`)
1610
- }, w(e.name) + " " + w(P.value.bestPlotLabel.showValue ? T(se)(P.value.formatter, e.value, T(c)({
1611
- p: `(${P.value.prefix}`,
1612
- v: e.value,
1613
- s: `${P.value.suffix})`,
1614
- r: L.value.labels.bestPlotLabel.rounding
1615
- }), {
1616
- datapoint: e,
1617
- seriesIndex: n
1618
- }) : ""), 13, Tt)) : p("", !0)], 64))), 256))])) : p("", !0)], 64))), 256)),
1619
- C(e.$slots, "svg", { svg: {
1620
- ...K.value,
1621
- isPrintingImg: T(Cn) || T(wn) || T(Dr),
1622
- isPrintingSvg: T(Or),
1623
- boxPlotSummaries: Wn.value,
1624
- series: q.value
1625
- } }, void 0, !0)
1626
- ], 46, tt)), e.$slots.hint ? (b(), m("div", Et, [C(e.$slots, "hint", v(_({
1627
- hint: j.value.a11y.translations.keyboardNavigation,
1628
- isVisible: cn.value
1629
- })), void 0, !0)])) : p("", !0)]),
1630
- e.$slots.watermark ? (b(), m("div", Dt, [C(e.$slots, "watermark", v(_({ isPrinting: T(Cn) || T(wn) || T(Dr) || T(Or) })), void 0, !0)])) : p("", !0),
1631
- e.$slots.source ? (b(), m("div", {
1632
- key: 6,
1633
- ref_key: "source",
1634
- ref: Jt,
1635
- dir: "auto"
1636
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1637
- Be(T(kt), {
1638
- teleportTo: N.value.teleportTo,
1639
- show: U.value.showTooltip && Gt.value,
1640
- backgroundColor: N.value.backgroundColor,
1641
- color: N.value.color,
1642
- borderRadius: N.value.borderRadius,
1643
- borderColor: N.value.borderColor,
1644
- borderWidth: N.value.borderWidth,
1645
- fontSize: N.value.fontSize,
1646
- backgroundOpacity: N.value.backgroundOpacity,
1647
- position: N.value.position,
1648
- offsetX: N.value.offsetX,
1649
- offsetY: N.value.offsetY,
1650
- parent: O.value,
1651
- content: Kt.value,
1652
- isFullscreen: $.value,
1653
- isCustom: T(n)(N.value.customFormat),
1654
- smooth: N.value.smooth,
1655
- backdropFilter: N.value.backdropFilter,
1656
- smoothForce: N.value.smoothForce,
1657
- smoothSnapThreshold: N.value.smoothSnapThreshold,
1658
- isA11yMode: A.value === "keyboard",
1659
- a11yPosition: sn.value
1660
- }, {
1661
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...rr.value })), void 0, !0)]),
1662
- tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...rr.value })), void 0, !0)]),
1663
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(_({ ...rr.value })), void 0, !0)]),
1664
- _: 3
1665
- }, 8, [
1666
- "teleportTo",
1667
- "show",
1668
- "backgroundColor",
1669
- "color",
1670
- "borderRadius",
1671
- "borderColor",
1672
- "borderWidth",
1673
- "fontSize",
1674
- "backgroundOpacity",
1675
- "position",
1676
- "offsetX",
1677
- "offsetY",
1678
- "parent",
1679
- "content",
1680
- "isFullscreen",
1681
- "isCustom",
1682
- "smooth",
1683
- "backdropFilter",
1684
- "smoothForce",
1685
- "smoothSnapThreshold",
1686
- "isA11yMode",
1687
- "a11yPosition"
1688
- ]),
1689
- Ht.value && M.value.buttons.table ? (b(), f(Ke(Cr.value.component), Ve({ key: 7 }, Cr.value.props, {
1690
- ref_key: "tableUnit",
1691
- ref: $t,
1692
- onClose: wr
1693
- }), Re({
1694
- content: E(() => [(b(), f(T(Mt), {
1695
- key: `table_${Qt.value}`,
1696
- colNames: fr.value.colNames,
1697
- head: fr.value.head,
1698
- body: fr.value.body,
1699
- config: fr.value.config,
1700
- title: j.value.table.useDialog ? "" : Cr.value.title,
1701
- withCloseButton: !j.value.table.useDialog,
1702
- isCursorPointer: R.value,
1703
- onClose: wr
1704
- }, {
1705
- th: E(({ th: e }) => [h("div", Ot, w(e), 1)]),
1706
- td: E(({ td: e }) => [ze(w(e.name || e), 1)]),
1707
- _: 1
1708
- }, 8, [
1709
- "colNames",
1710
- "head",
1711
- "body",
1712
- "config",
1713
- "title",
1714
- "withCloseButton",
1715
- "isCursorPointer"
1716
- ]))]),
1717
- _: 2
1718
- }, [j.value.table.useDialog ? {
1719
- name: "title",
1720
- fn: E(() => [ze(w(Cr.value.title), 1)]),
1721
- key: "0"
1722
- } : void 0, j.value.table.useDialog ? {
1723
- name: "actions",
1724
- fn: E(() => [h("button", {
1725
- tabindex: "0",
1726
- class: "vue-ui-user-options-button",
1727
- onClick: t[1] ||= (e) => dr(M.value.callbacks.csv),
1728
- style: y({ cursor: R.value ? "pointer" : "default" })
1729
- }, [Be(T(At), {
1730
- name: "fileCsv",
1731
- stroke: Cr.value.props.color
1732
- }, null, 8, ["stroke"])], 4)]),
1733
- key: "1"
1734
- } : void 0]), 1040)) : p("", !0),
1735
- C(e.$slots, "skeleton", {}, () => [T(fn) ? (b(), f(xe, { key: 0 })) : p("", !0)], !0)
1736
- ], 46, Qe));
1737
- }
1738
- }, [["__scopeId", "data-v-572c075e"]]);
1739
- //#endregion
1740
- export { Ze as n, kt as t };