vue-data-ui 3.22.11 → 3.22.13

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