vue-data-ui 3.25.3 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
  95. package/dist/{package-NccReU84.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-CHj9aLwI.js → render-common-zoPh9a78.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-MvDwnq7k.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
  179. package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
  180. package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
  181. package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
  182. package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
  183. package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
  184. package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
  186. package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
  187. package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
  188. package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
  190. package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
  191. package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
  192. package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
  193. package/dist/vue-ui-table-DMJWplCT.js +0 -1352
  194. package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
@@ -1,1696 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, At as n, D as r, G as i, It as a, Jt as o, Nt as s, S as c, St as ee, T as te, Vt as ne, X as l, Xt as re, Y as ie, Yt as u, _ as ae, i as d, mt as oe, nt as se, q as ce, qt as le, r as ue, t as de, w as fe, xt as pe } from "./lib-C7t_vY8w.js";
3
- import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
- import { t as ge } from "./useConfig-CyCVHo81.js";
5
- import { t as _e } from "./usePrinter-VVTuFI6H.js";
6
- import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as be } from "./useNestedProp-BfTgFMXF.js";
8
- import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Se } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Ce } from "./useTransitions-g_zBREk2.js";
11
- import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as Te } from "./img-IjqD_xWl.js";
13
- import { n as Ee } from "./Title-DIf1lG-_.js";
14
- import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
16
- import { t as Ae } from "./DefGrad-DVBqDjhO.js";
17
- import { t as je } from "./BaseLegendToggle-BF-thEu0.js";
18
- import { t as Me } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Fe } from "./Legend-DmitJZi5.js";
22
- import { t as Ie } from "./vue_ui_history_plot-CuN63VEc.js";
23
- import { Fragment as f, Teleport as Le, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Ve, nextTick as He, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Ue, onMounted as We, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as D, toRefs as qe, unref as O, watch as Je, watchEffect as Ye, withCtx as k } from "vue";
24
- //#region src/components/vue-ui-history-plot.vue
25
- var Xe = /* @__PURE__ */ e({ default: () => Ft }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
26
- "xmlns",
27
- "viewBox",
28
- "aria-describedby"
29
- ], nt = [
30
- "x",
31
- "y",
32
- "width",
33
- "height"
34
- ], rt = { key: 1 }, it = [
35
- "id",
36
- "x1",
37
- "y1",
38
- "x2",
39
- "y2"
40
- ], at = ["stop-color", "offset"], ot = { key: 2 }, st = [
41
- "x1",
42
- "x2",
43
- "y1",
44
- "y2",
45
- "stroke",
46
- "stroke-width"
47
- ], ct = { key: 3 }, lt = [
48
- "stroke",
49
- "stroke-width",
50
- "x1",
51
- "x2",
52
- "y1",
53
- "y2"
54
- ], ut = [
55
- "x",
56
- "y",
57
- "fill",
58
- "font-size"
59
- ], dt = [
60
- "transform",
61
- "font-size",
62
- "fill",
63
- "font-weight"
64
- ], ft = { key: 6 }, pt = [
65
- "x1",
66
- "x2",
67
- "y1",
68
- "y2",
69
- "stroke",
70
- "stroke-width"
71
- ], mt = { key: 7 }, ht = [
72
- "stroke",
73
- "stroke-width",
74
- "x1",
75
- "x2",
76
- "y1",
77
- "y2"
78
- ], gt = [
79
- "transform",
80
- "fill",
81
- "font-size",
82
- "text-anchor"
83
- ], _t = [
84
- "x",
85
- "y",
86
- "font-size",
87
- "fill",
88
- "font-weight"
89
- ], vt = [
90
- "x1",
91
- "x2",
92
- "y1",
93
- "y2",
94
- "stroke",
95
- "stroke-width"
96
- ], yt = [
97
- "x1",
98
- "x2",
99
- "y1",
100
- "y2",
101
- "stroke",
102
- "stroke-width"
103
- ], bt = [
104
- "d",
105
- "stroke",
106
- "stroke-width"
107
- ], xt = [
108
- "d",
109
- "stroke",
110
- "stroke-width"
111
- ], St = [
112
- "cx",
113
- "cy",
114
- "fill",
115
- "r"
116
- ], Ct = [
117
- "cx",
118
- "cy",
119
- "fill",
120
- "r",
121
- "stroke",
122
- "stroke-width"
123
- ], wt = { key: 1 }, Tt = [
124
- "transform",
125
- "font-size",
126
- "fill",
127
- "font-weight"
128
- ], Et = [
129
- "transform",
130
- "font-size",
131
- "fill",
132
- "font-weight",
133
- "innerHTML"
134
- ], Dt = { key: 2 }, Ot = [
135
- "transform",
136
- "font-size",
137
- "font-weight",
138
- "fill"
139
- ], kt = [
140
- "cx",
141
- "cy",
142
- "r",
143
- "onMouseenter",
144
- "onMouseleave",
145
- "onClick"
146
- ], At = {
147
- key: 0,
148
- style: {
149
- position: "absolute",
150
- top: "100%",
151
- left: "0",
152
- width: "100%"
153
- },
154
- "data-dom-to-png-ignore": "",
155
- "aria-hidden": "true"
156
- }, jt = {
157
- key: 5,
158
- class: "vue-data-ui-watermark"
159
- }, Mt = ["id"], Nt = ["onClick"], Pt = { style: {
160
- display: "flex",
161
- "align-items": "center"
162
- } }, Ft = /*#__PURE__*/ De({
163
- __name: "vue-ui-history-plot",
164
- props: {
165
- config: {
166
- type: Object,
167
- default() {
168
- return {};
169
- }
170
- },
171
- dataset: {
172
- type: Array,
173
- default() {
174
- return [];
175
- }
176
- }
177
- },
178
- emits: [
179
- "selectLegend",
180
- "selectDatapoint",
181
- "copyAlt"
182
- ],
183
- setup(e, { expose: De, emit: Xe }) {
184
- let Ft = v(() => import("./Tooltip-C3jBTIhR.js")), It = v(() => import("./BaseIcon-CVrQHhw1.js").then((e) => e.n)), Lt = v(() => import("./vue-ui-accordion-DuARUUdY.js").then((e) => e.n)), Rt = v(() => import("./DataTable-BBpTEQY5.js")), zt = v(() => import("./PenAndPaper-DzM1vUXR.js").then((e) => e.t)), Bt = v(() => import("./UserOptions-m0uxKoiy.js").then((e) => e.n)), Vt = v(() => import("./PackageVersion-hRJtldYi.js").then((e) => e.t)), Ht = v(() => import("./BaseDraggableDialog-BCQY4Tir.js").then((e) => e.n)), { vue_ui_history_plot: Ut } = ge(), { isThemeValid: Wt, warnInvalidTheme: Gt } = xe(), A = e, j = w(null), Kt = w(null), qt = w(0), Jt = w(null), Yt = w(0), Xt = w(0), Zt = w(0), M = Ke(null), N = Ke(null), Qt = w(null), P = w(ce()), $t = w(!1), en = w(""), F = w([]), tn = w(!1), I = w(null), nn = w(!1), rn = w(null), an = w(!1), on = w(null), sn = w(null), cn = w(null), ln = w(null), un = w(null), dn = w(null), L = w(null), R = w(null), fn = w({
185
- x: 0,
186
- y: 0
187
- }), pn = w("pointer"), mn = w(!1), hn = p({
188
- get: () => !!A.dataset && A.dataset.length,
189
- set: (e) => e
190
- }), gn = Xe;
191
- We(() => {
192
- an.value = !0, vn();
193
- });
194
- let _n = p(() => z.value.debug);
195
- function vn() {
196
- if (s(A.dataset) ? (se({
197
- componentName: "VueUiHistoryPlot",
198
- type: "dataset",
199
- debug: _n.value
200
- }), Cn.value = !0) : A.dataset.forEach((e, t) => {
201
- oe({
202
- datasetObject: e,
203
- requiredAttributes: ["name", "values"]
204
- }).forEach((e) => {
205
- hn.value = !1, se({
206
- componentName: "VueUiHistoryPlot",
207
- type: "datasetSerieAttribute",
208
- property: e,
209
- index: t,
210
- debug: _n.value
211
- });
212
- });
213
- }), s(A.dataset) || (Cn.value = z.value.loading), z.value.responsive) {
214
- let e = Oe(() => {
215
- let { width: e, height: t } = ke({
216
- chart: j.value,
217
- title: z.value.style.chart.title.text ? Kt.value : null,
218
- noTitle: Qt.value,
219
- legend: z.value.style.chart.legend.show ? Jt.value : null,
220
- source: rn.value
221
- });
222
- requestAnimationFrame(() => {
223
- W.value.width = e, W.value.height = t, z.value.responsiveProportionalSizing ? (K.value.plots = u({
224
- relator: Math.min(e, t),
225
- adjuster: 600,
226
- source: z.value.style.chart.plots.radius,
227
- threshold: 3,
228
- fallback: 3
229
- }), K.value.indexLabels = u({
230
- relator: Math.min(e, t),
231
- adjuster: 600,
232
- source: z.value.style.chart.plots.indexLabels.fontSize,
233
- threshold: 6,
234
- fallback: 6
235
- }), K.value.labels = u({
236
- relator: Math.min(e, t),
237
- adjuster: 600,
238
- source: z.value.style.chart.plots.labels.fontSize,
239
- threshold: 6,
240
- fallback: 6
241
- }), K.value.xAxisLabels = u({
242
- relator: Math.min(e, t),
243
- adjuster: 600,
244
- source: z.value.style.chart.axes.x.labels.fontSize,
245
- threshold: 6,
246
- fallback: 6
247
- }), K.value.xAxisName = u({
248
- relator: Math.min(e, t),
249
- adjuster: 600,
250
- source: z.value.style.chart.axes.x.name.fontSize,
251
- threshold: 6,
252
- fallback: 6
253
- }), K.value.yAxisLabels = u({
254
- relator: Math.min(e, t),
255
- adjuster: 600,
256
- source: z.value.style.chart.axes.y.labels.fontSize,
257
- threshold: 6,
258
- fallback: 6
259
- }), K.value.yAxisName = u({
260
- relator: Math.min(e, t),
261
- adjuster: 600,
262
- source: z.value.style.chart.axes.y.name.fontSize,
263
- threshold: 6,
264
- fallback: 6
265
- })) : (K.value.plots = z.value.style.chart.plots.radius, K.value.indexLabels = z.value.style.chart.plots.indexLabels.fontSize, K.value.labels = z.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = z.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = z.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = z.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = z.value.style.chart.axes.y.name.fontSize);
266
- });
267
- });
268
- M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = j.value.parentNode, M.value.observe(N.value);
269
- }
270
- }
271
- Ue(() => {
272
- M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
273
- });
274
- function yn() {
275
- let e = be({
276
- userConfig: A.config,
277
- defaultConfig: Ut
278
- }), t = {}, n = e.theme;
279
- if (n) {
280
- if (!Wt.value(e)) Gt(e), t = e;
281
- else {
282
- let r = be({
283
- userConfig: Ie[n] || A.config,
284
- defaultConfig: e
285
- });
286
- t = {
287
- ...be({
288
- userConfig: A.config,
289
- defaultConfig: r
290
- }),
291
- customPalette: e.customPalette.length ? e.customPalette : o[n] || a
292
- };
293
- }
294
- } else t = e;
295
- return t;
296
- }
297
- let z = w(yn());
298
- me({
299
- config: () => z.value,
300
- dataset: () => A.dataset,
301
- component: "VueUiHistoryPlot",
302
- rules: [he.emptyArray, {
303
- test: (e) => e.length > 6,
304
- message: [
305
- "👀 The number of series is > 6. Consider:",
306
- "",
307
- "▶️ Using filters to let users choose a maximum number of series to display."
308
- ]
309
- }]
310
- });
311
- let { transitionEnabled: B } = Ce({
312
- config: () => z.value.transitions,
313
- dataset: () => A.dataset
314
- }), V = p(() => z.value.userOptions.useCursorPointer), bn = p(() => re({
315
- defaultConfig: {
316
- userOptions: { show: !1 },
317
- table: { show: !1 },
318
- style: { chart: {
319
- backgroundColor: "#99999930",
320
- axes: {
321
- x: {
322
- scaleMin: 0,
323
- scaleMax: 10,
324
- labels: { show: !1 },
325
- name: { text: "" }
326
- },
327
- y: {
328
- scaleMin: 0,
329
- scaleMax: 10,
330
- labels: { show: !1 },
331
- name: { text: "" }
332
- }
333
- },
334
- grid: {
335
- xAxis: { stroke: "#6A6A6A" },
336
- horizontalLines: { stroke: "#6A6A6A50" },
337
- yAxis: { stroke: "#6A6A6A" },
338
- verticalLines: { stroke: "#6A6A6A50" }
339
- },
340
- legend: { backgroundColor: "transparent" },
341
- paths: {
342
- useSerieColor: !1,
343
- stroke: "#6A6A6A"
344
- },
345
- plots: {
346
- stroke: "#6A6A6A",
347
- indexLabels: { show: !1 },
348
- labels: { show: !1 }
349
- }
350
- } }
351
- },
352
- userConfig: z.value.skeletonConfig ?? {}
353
- })), { loading: xn, FINAL_DATASET: Sn, manualLoading: Cn } = ve({
354
- ...qe(A),
355
- FINAL_CONFIG: z,
356
- prepareConfig: yn,
357
- skeletonDataset: A.config?.skeletonDataset ?? [{
358
- name: "",
359
- color: "#CACACA",
360
- values: [
361
- {
362
- label: "",
363
- x: 1,
364
- y: 9
365
- },
366
- {
367
- label: "",
368
- x: 4,
369
- y: 1
370
- },
371
- {
372
- label: "",
373
- x: 7,
374
- y: 9
375
- },
376
- {
377
- label: "",
378
- x: 9,
379
- y: 4
380
- }
381
- ]
382
- }],
383
- skeletonConfig: re({
384
- defaultConfig: z.value,
385
- userConfig: bn.value
386
- })
387
- }), { userOptionsVisible: wn, setUserOptionsVisibility: Tn, keepUserOptionState: En } = Ne({ config: z.value }), { svgRef: H } = Pe({ config: z.value.style.chart.title });
388
- Je(() => A.config, (e) => {
389
- xn.value || (z.value = yn()), wn.value = !z.value.userOptions.showOnChartHover, vn(), qt.value += 1, Xt.value += 1, Yt.value += 1, W.value.height = z.value.style.chart.height, W.value.width = z.value.style.chart.width, K.value.plots = z.value.style.chart.plots.radius, K.value.indexLabels = z.value.style.chart.plots.indexLabels.fontSize, K.value.labels = z.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = z.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = z.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = z.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = z.value.style.chart.axes.y.name.fontSize, U.value.showTable = z.value.table.show, U.value.showTooltip = z.value.style.chart.tooltip.show;
390
- }, { deep: !0 }), Je(() => A.dataset, (e) => {
391
- Array.isArray(e) && e.length > 0 && (Cn.value = !1);
392
- }, { deep: !0 });
393
- let { isPrinting: Dn, isImaging: On, generatePdf: kn, generateImage: An } = _e({
394
- elementId: `history_plot_${P.value}`,
395
- fileName: z.value.style.chart.title.text || "vue-ui-history-plot",
396
- options: z.value.userOptions.print
397
- }), jn = p(() => z.value.userOptions.show && !z.value.style.chart.title.text), Mn = p(() => fe(z.value.customPalette)), U = w({
398
- showTable: z.value.table.show,
399
- showTooltip: z.value.style.chart.tooltip.show
400
- });
401
- Je(z, () => {
402
- U.value = {
403
- showTable: z.value.table.show,
404
- showTooltip: z.value.style.chart.tooltip.show
405
- };
406
- }, { immediate: !0 });
407
- let W = w({
408
- height: z.value.style.chart.height,
409
- width: z.value.style.chart.width
410
- }), Nn = p(() => W.value.width), Pn = p(() => W.value.height);
411
- function Fn() {
412
- let e = 0;
413
- dn.value && (e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
414
- let n = t.getComputedTextLength();
415
- return n > e ? n : e;
416
- }, 0));
417
- let t = ln.value ? ln.value.getBoundingClientRect().width : 0;
418
- return e + t + (t ? 24 : 0);
419
- }
420
- let In = w(0), Ln = Oe((e) => {
421
- In.value = e;
422
- });
423
- Ye((e) => {
424
- let t = un.value;
425
- if (!t) return;
426
- let n = new ResizeObserver((e) => {
427
- Ln(e[0].contentRect.height);
428
- });
429
- n.observe(t), e(() => n.disconnect());
430
- });
431
- let Rn = p(() => {
432
- let e = 0;
433
- cn.value && (e = cn.value.getBBox().height + K.value.xAxisName / 2);
434
- let t = 0;
435
- return un.value && (t = In.value), e + t;
436
- }), G = p(() => {
437
- let e = z.value.style.chart.padding.left, t = z.value.style.chart.padding.top, n = Fn(), r = z.value.style.chart.plots.radius;
438
- return {
439
- left: e + n + z.value.style.chart.axes.y.name.offsetX,
440
- top: t + r,
441
- right: W.value.width - z.value.style.chart.padding.right - r - z.value.style.chart.axes.y.name.offsetX,
442
- bottom: W.value.height - z.value.style.chart.padding.bottom - Rn.value - r - z.value.style.chart.axes.x.name.offsetY,
443
- width: W.value.width - e - z.value.style.chart.padding.right - n - r - z.value.style.chart.axes.y.name.offsetX,
444
- height: W.value.height - t - z.value.style.chart.padding.bottom - Rn.value - r * 2 - z.value.style.chart.axes.x.name.offsetY
445
- };
446
- }), K = w({
447
- plots: z.value.style.chart.plots.radius,
448
- indexLabels: z.value.style.chart.plots.indexLabels.fontSize,
449
- labels: z.value.style.chart.plots.labels.fontSize,
450
- xAxisLabels: z.value.style.chart.axes.x.labels.fontSize,
451
- xAxisName: z.value.style.chart.axes.x.name.fontSize,
452
- yAxisLabels: z.value.style.chart.axes.y.labels.fontSize,
453
- yAxisName: z.value.style.chart.axes.y.name.fontSize
454
- }), q = p(() => Sn.value.map((e, t) => {
455
- let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => c(e)) : void 0;
456
- return {
457
- ...e,
458
- color: e.color ? c(e.color) : Mn.value[t] || a[t] || a[t % a.length],
459
- temperatureColors: n,
460
- temperatureAngle: zn(e.temperatureAngle),
461
- temperatureIndependant: e.temperatureIndependant === !0,
462
- usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
463
- seriesIndex: t
464
- };
465
- }));
466
- function zn(e = 0) {
467
- let t = Number(e);
468
- return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
469
- }
470
- let Bn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Vn = p(() => {
471
- let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
472
- return e < 0 ? e : 0;
473
- }), Hn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Un = p(() => {
474
- let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
475
- return e < 0 ? e : 0;
476
- }), J = p(() => {
477
- let e = ae(z.value.style.chart.axes.x.scaleMin ?? Vn.value, z.value.style.chart.axes.x.scaleMax ?? Bn.value, z.value.style.chart.axes.x.ticks), t = ae(z.value.style.chart.axes.y.scaleMin ?? Un.value, z.value.style.chart.axes.y.scaleMax ?? Hn.value, z.value.style.chart.axes.y.ticks);
478
- return {
479
- x: e,
480
- y: t,
481
- tickX: e.ticks.map((t) => ({
482
- x: G.value.left + (t - e.min) / (e.max - e.min) * G.value.width,
483
- y1: G.value.top,
484
- y2: G.value.bottom,
485
- value: t
486
- })),
487
- tickY: t.ticks.map((e) => ({
488
- y: G.value.bottom - (e - t.min) / (t.max - t.min) * G.value.height,
489
- x1: G.value.left,
490
- x2: G.value.right,
491
- value: e
492
- }))
493
- };
494
- });
495
- function Wn(e) {
496
- let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
497
- return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
498
- }
499
- function Gn(e) {
500
- let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
501
- return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
502
- }
503
- let Y = p(() => q.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, t) => {
504
- let n = e.values.map((t, n) => ({
505
- valueX: t.x,
506
- valueY: t.y,
507
- label: t.label,
508
- x: Wn(t.x),
509
- y: Gn(t.y),
510
- color: e.color,
511
- seriesName: e.name,
512
- id: ce()
513
- })), r = e.smooth ? te(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
514
- return {
515
- ...e,
516
- gradientIndex: t,
517
- plots: n,
518
- path: `M${r}`
519
- };
520
- })), Kn = p(() => {
521
- if (I.value === null || L.value === null) return Y.value;
522
- let e = Y.value.findIndex((e) => e.seriesIndex === L.value);
523
- if (e === -1) return Y.value;
524
- let t = Y.value[e];
525
- return [
526
- ...Y.value.slice(0, e),
527
- ...Y.value.slice(e + 1),
528
- t
529
- ];
530
- }), qn = p(() => Y.value.some((e) => Jn(e)));
531
- function Jn(e) {
532
- return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
533
- }
534
- function Yn(e) {
535
- return Jn(e) && e.usePlotTemperatureColors;
536
- }
537
- function Xn(e) {
538
- let t = Array.isArray(e?.plots) ? e.plots : [];
539
- if (!t.length) return {
540
- minX: 0,
541
- maxX: 0,
542
- minY: 0,
543
- maxY: 0,
544
- width: 0,
545
- height: 0
546
- };
547
- let n = t.map((e) => e.x), r = t.map((e) => e.y), i = Math.min(...n), a = Math.max(...n), o = Math.min(...r), s = Math.max(...r);
548
- return {
549
- minX: i,
550
- maxX: a,
551
- minY: o,
552
- maxY: s,
553
- width: a - i,
554
- height: s - o
555
- };
556
- }
557
- function Zn() {
558
- let e = G.value;
559
- return {
560
- minX: e.left,
561
- maxX: e.right,
562
- minY: e.top,
563
- maxY: e.bottom,
564
- width: e.width,
565
- height: e.height
566
- };
567
- }
568
- function Qn(e) {
569
- return e?.temperatureIndependant ? Xn(e) : Zn();
570
- }
571
- function X(e) {
572
- let t = zn(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = Qn(e), a = i.minX + i.width / 2, o = i.minY + i.height / 2, s = (Math.abs(n) * i.width + Math.abs(r) * i.height) / 2 || 1;
573
- return {
574
- x1: a - n * s,
575
- y1: o - r * s,
576
- x2: a + n * s,
577
- y2: o + r * s
578
- };
579
- }
580
- function $n(e, t) {
581
- let { x1: n, y1: r, x2: i, y2: a } = X(e), o = i - n, s = a - r, c = o * o + s * s;
582
- if (!c) return 0;
583
- let ee = ((t.x - n) * o + (t.y - r) * s) / c;
584
- return Math.min(1, Math.max(0, ee));
585
- }
586
- function Z(e, t) {
587
- return pe({
588
- colors: e.temperatureColors,
589
- ratio: $n(e, t)
590
- });
591
- }
592
- function er(e, t) {
593
- return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
594
- }
595
- function tr(e, t, n) {
596
- return Yn(e) ? z.value.style.chart.plots.gradient.show ? `url(#${er(e, t)})` : Z(e, t) : z.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
597
- }
598
- function nr(e, t) {
599
- return Yn(e) ? Z(e, t) : e.color;
600
- }
601
- function rr(e, t) {
602
- return z.value.style.chart.plots.indexLabels.adaptColorToBackground ? ue(nr(e, t)) : z.value.style.chart.plots.indexLabels.color;
603
- }
604
- function ir(e, t) {
605
- let n = Y.value.find((t) => t.seriesIndex === e);
606
- return n && Yn(n) ? Z(n, t) : t.color;
607
- }
608
- function ar(e) {
609
- return Jn(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : z.value.style.chart.paths.useSerieColor ? e.color : z.value.style.chart.paths.stroke;
610
- }
611
- function or(e) {
612
- return I.value === null || L.value === e ? 1 : Math.min(1, z.value.style.chart.plots.unselectedOpacity);
613
- }
614
- p(() => I.value !== null && L.value !== null);
615
- let sr = w(!1);
616
- function cr() {
617
- F.value.length ? F.value = [] : pr.value.forEach((e) => {
618
- F.value.push(e.seriesIndex);
619
- }), gn("selectLegend", Y.value);
620
- }
621
- function lr(e) {
622
- F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), gn("selectLegend", Y.value);
623
- }
624
- function ur(e) {
625
- return q.value.length ? q.value.find((t) => t.name === e) || (_n.value && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (_n.value && console.warn("VueUiHistoryPlot - There are no series to show."), null);
626
- }
627
- function dr(e) {
628
- let t = ur(e);
629
- t !== null && F.value.includes(t.seriesIndex) && lr(t.seriesIndex);
630
- }
631
- function fr(e) {
632
- let t = ur(e);
633
- t !== null && (F.value.includes(t.seriesIndex) || lr(t.seriesIndex));
634
- }
635
- let pr = p(() => q.value.map((e) => {
636
- let t = Jn(e) ? e.temperatureColors : null;
637
- return {
638
- ...e,
639
- gradientColors: t,
640
- opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
641
- segregate: () => lr(e.seriesIndex),
642
- isSegregated: F.value.includes(e.seriesIndex),
643
- shape: t ? "gradient" : "circle"
644
- };
645
- })), mr = p(() => ({
646
- cy: "history-plot-div-legend",
647
- backgroundColor: z.value.style.chart.legend.backgroundColor,
648
- color: z.value.style.chart.legend.color,
649
- fontSize: z.value.style.chart.legend.fontSize,
650
- paddingBottom: 12,
651
- fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
652
- }));
653
- function hr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
654
- z.value.events.datapointClick && z.value.events.datapointClick({
655
- datapoint: {
656
- ...e,
657
- plotIndex: t,
658
- seriesIndex: n
659
- },
660
- seriesIndex: n
661
- }), gn("selectDatapoint", e);
662
- }
663
- function gr(e) {
664
- tn.value = e, Zt.value += 1;
665
- }
666
- let _r = w(null);
667
- function vr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
668
- z.value.events.datapointLeave && z.value.events.datapointLeave({
669
- datapoint: {
670
- ...e,
671
- plotIndex: t,
672
- seriesIndex: n
673
- },
674
- seriesIndex: n
675
- }), (pn.value !== "keyboard" || L.value !== n || R.value !== t) && ($t.value = !1, I.value = null);
676
- }
677
- function yr(e, t) {
678
- if (!H.value) return;
679
- let n = Y.value.find((t) => t.seriesIndex === e);
680
- if (!n) return;
681
- let r = n.plots[t];
682
- if (!r) return;
683
- let i = le(r.x, r.y, H.value);
684
- i && (fn.value = i);
685
- }
686
- function br({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
687
- z.value.events.datapointEnter && z.value.events.datapointEnter({
688
- datapoint: {
689
- ...e,
690
- plotIndex: t,
691
- seriesIndex: n
692
- },
693
- seriesIndex: n
694
- }), L.value = n, R.value = t, pn.value = r, sr.value = !0;
695
- let i = ir(n, e), a = {
696
- ...e,
697
- color: i
698
- };
699
- _r.value = {
700
- datapoint: a,
701
- color: i,
702
- seriesIndex: n,
703
- plotIndex: t,
704
- config: z.value,
705
- series: q.value
706
- }, I.value = e;
707
- let o = z.value.style.chart.tooltip.customFormat;
708
- if (nn.value = !1, ee(o)) try {
709
- let e = o({
710
- seriesIndex: n,
711
- datapoint: a,
712
- color: i,
713
- plotIndex: t,
714
- series: q.value,
715
- config: z.value
716
- });
717
- typeof e == "string" && (en.value = e, nn.value = !0);
718
- } catch {
719
- console.warn("Custom format cannot be applied."), nn.value = !1;
720
- }
721
- if (!nn.value) {
722
- let t = "";
723
- t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${z.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${z.value.style.chart.axes.x.name.text || "x"}: ${d(z.value.style.chart.axes.x.labels.formatter, e.valueX, l({
724
- p: z.value.style.chart.axes.x.labels.prefix,
725
- v: e.valueX,
726
- s: z.value.style.chart.axes.x.labels.suffix,
727
- r: z.value.style.chart.axes.x.labels.rounding
728
- }))}</div>`, t += `<div>${z.value.style.chart.axes.y.name.text || "y"}: ${d(z.value.style.chart.axes.y.labels.formatter, e.valueY, l({
729
- p: z.value.style.chart.axes.y.labels.prefix,
730
- v: e.valueY,
731
- s: z.value.style.chart.axes.y.labels.suffix,
732
- r: z.value.style.chart.axes.y.labels.rounding
733
- }))}</div>`, en.value = `<div>${t}</div>`;
734
- }
735
- $t.value = !0, r === "keyboard" && He(() => {
736
- yr(n, t);
737
- });
738
- }
739
- p(() => ({ head: Y.value.map((e) => ({
740
- name: e.name,
741
- color: e.color
742
- })) }));
743
- let Q = p(() => {
744
- let e = [
745
- z.value.table.columnNames.series,
746
- z.value.table.columnNames.datapoint,
747
- z.value.table.columnNames.x,
748
- z.value.table.columnNames.y
749
- ];
750
- return {
751
- head: e,
752
- body: Y.value.flatMap((e) => e.plots.map((e) => [
753
- {
754
- color: e.color,
755
- name: e.seriesName
756
- },
757
- e.label,
758
- d(z.value.style.chart.axes.x.labels.formatter, e.valueX, l({
759
- p: z.value.style.chart.axes.x.labels.prefix,
760
- v: e.valueX,
761
- s: z.value.style.chart.axes.x.labels.suffix,
762
- r: z.value.style.chart.axes.x.labels.rounding
763
- })),
764
- d(z.value.style.chart.axes.y.labels.formatter, e.valueY, l({
765
- p: z.value.style.chart.axes.y.labels.prefix,
766
- v: e.valueY,
767
- s: z.value.style.chart.axes.y.labels.suffix,
768
- r: z.value.style.chart.axes.y.labels.rounding
769
- }))
770
- ])),
771
- config: {
772
- th: {
773
- backgroundColor: z.value.table.th.backgroundColor,
774
- color: z.value.table.th.color,
775
- outline: z.value.table.th.outline
776
- },
777
- td: {
778
- backgroundColor: z.value.table.td.backgroundColor,
779
- color: z.value.table.td.color,
780
- outline: z.value.table.td.outline
781
- },
782
- breakpoint: z.value.table.responsiveBreakpoint
783
- },
784
- colNames: e
785
- };
786
- });
787
- function xr(e = null) {
788
- He(() => {
789
- let n = [
790
- [z.value.table.columnNames.series],
791
- [z.value.table.columnNames.datapoint],
792
- [z.value.table.columnNames.x],
793
- [z.value.table.columnNames.y]
794
- ], i = Y.value.flatMap((e) => e.plots.map((e) => [
795
- [e.seriesName],
796
- [e.label],
797
- [e.valueX],
798
- [e.valueY]
799
- ])), a = [
800
- [z.value.style.chart.title.text],
801
- [z.value.style.chart.title.subtitle.text],
802
- n
803
- ].concat(i), o = r(a);
804
- e ? e(o) : t({
805
- csvContent: o,
806
- title: z.value.style.chart.title.text || "vue-ui-history-plot"
807
- });
808
- });
809
- }
810
- let Sr = w(!1);
811
- function Cr() {
812
- Sr.value = !Sr.value;
813
- }
814
- function wr() {
815
- U.value.showTable = !U.value.showTable;
816
- }
817
- function Tr() {
818
- U.value.showTooltip = !U.value.showTooltip;
819
- }
820
- function Er() {
821
- return Y.value;
822
- }
823
- async function Dr({ scale: e = 2 } = {}) {
824
- if (!j.value) return;
825
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Te({
826
- domElement: j.value,
827
- base64: !0,
828
- img: !0,
829
- scale: e
830
- });
831
- return {
832
- imageUri: i,
833
- base64: a,
834
- title: z.value.style.chart.title.text,
835
- width: t,
836
- height: n,
837
- aspectRatio: r
838
- };
839
- }
840
- let Or = p(() => J.value.tickX), kr = p(() => ({
841
- start: 0,
842
- end: J.value.tickX.length
843
- }));
844
- we({
845
- timeLabelsEls: un,
846
- timeLabels: Or,
847
- slicer: kr,
848
- configRef: z,
849
- rotationPath: [
850
- "style",
851
- "chart",
852
- "axes",
853
- "x",
854
- "labels",
855
- "rotation"
856
- ],
857
- autoRotatePath: [
858
- "style",
859
- "chart",
860
- "axes",
861
- "x",
862
- "labels",
863
- "autoRotate",
864
- "enable"
865
- ],
866
- isAutoSize: !1,
867
- width: Nn,
868
- height: Pn,
869
- targetClass: ".vue-ui-history-plot-x-axis-scale",
870
- rotation: z.value.style.chart.axes.x.labels.autoRotate.angle
871
- });
872
- let Ar = p(() => {
873
- let e = z.value.table.useDialog && !z.value.table.show, t = U.value.showTable;
874
- return {
875
- component: e ? Ht : Lt,
876
- title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
877
- props: e ? {
878
- backgroundColor: z.value.table.th.backgroundColor,
879
- color: z.value.table.th.color,
880
- headerColor: z.value.table.th.color,
881
- headerBg: z.value.table.th.backgroundColor,
882
- isFullscreen: tn.value,
883
- fullscreenParent: j.value,
884
- forcedWidth: Math.min(800, window.innerWidth * .8)
885
- } : {
886
- hideDetails: !0,
887
- config: {
888
- open: t,
889
- maxHeight: 1e4,
890
- body: {
891
- backgroundColor: z.value.style.chart.backgroundColor,
892
- color: z.value.style.chart.color
893
- },
894
- head: {
895
- backgroundColor: z.value.style.chart.backgroundColor,
896
- color: z.value.style.chart.color
897
- }
898
- }
899
- }
900
- };
901
- });
902
- Je(() => U.value.showTable, (e) => {
903
- z.value.table.show || (e && z.value.table.useDialog && on.value ? on.value.open() : "close" in on.value && on.value.close());
904
- });
905
- function jr() {
906
- U.value.showTable = !1, sn.value && sn.value.setTableIconState(!1);
907
- }
908
- let Mr = p(() => z.value.style.chart.backgroundColor), Nr = p(() => z.value.style.chart.legend), Pr = p(() => z.value.style.chart.title), { isCallbackImaging: Fr, isCallbackSvg: Ir, generateSvg: Lr, onGenerateImage: Rr } = Se({
909
- svg: H,
910
- title: Pr,
911
- legend: Nr,
912
- legendItems: pr,
913
- backgroundColor: Mr,
914
- getSvgCallback: () => z.value.userOptions.callbacks.svg,
915
- generateImage: An
916
- });
917
- async function zr() {
918
- if (gn("copyAlt", {
919
- config: z.value,
920
- dataset: Y.value
921
- }), !z.value.userOptions.callbacks.altCopy) {
922
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
923
- return;
924
- }
925
- await Promise.resolve(z.value.userOptions.callbacks.altCopy({
926
- config: z.value,
927
- dataset: Y.value
928
- }));
929
- }
930
- let $ = p(() => ({
931
- head: Q.value.head,
932
- body: Q.value.body.map((e) => [
933
- e[0]?.name || "",
934
- e[1],
935
- e[2],
936
- e[3]
937
- ]),
938
- caption: z.value.a11y.translations.tableCaption,
939
- notice: z.value.a11y.translations.tableAvailable
940
- }));
941
- function Br(e) {
942
- return Y.value.findIndex((t) => t.seriesIndex === e);
943
- }
944
- function Vr() {
945
- if (L.value !== null && R.value !== null) {
946
- let e = Y.value.find((e) => e.seriesIndex === L.value)?.plots?.[R.value];
947
- e && vr({
948
- datapoint: e,
949
- plotIndex: R.value,
950
- seriesIndex: L.value
951
- });
952
- }
953
- L.value = null, R.value = null, pn.value = "pointer", $t.value = !1, I.value = null;
954
- }
955
- function Hr() {
956
- L.value = null, R.value = null, mn.value = !0;
957
- }
958
- function Ur() {
959
- Vr(), mn.value = !1;
960
- }
961
- function Wr(e, t) {
962
- if (!e?.plots?.length) return null;
963
- let n = e.plots.length;
964
- return (t % n + n) % n;
965
- }
966
- function Gr({ seriesIndex: e, plotIndex: t, direction: n }) {
967
- if (!Y.value.length) return null;
968
- let r = Br(e);
969
- if (r === -1) return null;
970
- if (n === "up" || n === "down") {
971
- let e = Y.value[r];
972
- if (!e?.plots?.length) return null;
973
- let i = Wr(e, t + (n === "up" ? -1 : 1));
974
- return {
975
- seriesIndex: e.seriesIndex,
976
- plotIndex: i
977
- };
978
- }
979
- if (n === "left" || n === "right") {
980
- let e = ((r + (n === "left" ? -1 : 1)) % Y.value.length + Y.value.length) % Y.value.length, i = Y.value[e];
981
- if (!i?.plots?.length) return null;
982
- let a = Math.min(t, i.plots.length - 1);
983
- return {
984
- seriesIndex: i.seriesIndex,
985
- plotIndex: a
986
- };
987
- }
988
- return null;
989
- }
990
- function Kr(e) {
991
- if (!H.value || Sr.value || document.activeElement !== H.value || !Y.value.length) return;
992
- 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";
993
- if (!t && !n && !r && !i && !a && !o) return;
994
- if (e.preventDefault(), e.stopPropagation(), o) {
995
- Vr();
996
- return;
997
- }
998
- if (a) {
999
- if (L.value === null || R.value === null) return;
1000
- let e = Y.value.find((e) => e.seriesIndex === L.value)?.plots?.[R.value];
1001
- if (!e) return;
1002
- hr({
1003
- datapoint: e,
1004
- plotIndex: R.value,
1005
- seriesIndex: L.value
1006
- });
1007
- return;
1008
- }
1009
- let s = null;
1010
- if (L.value === null || R.value === null) {
1011
- let e = Y.value[0];
1012
- if (!e?.plots?.length) return;
1013
- s = {
1014
- seriesIndex: e.seriesIndex,
1015
- plotIndex: 0
1016
- };
1017
- } else r ? s = Gr({
1018
- seriesIndex: L.value,
1019
- plotIndex: R.value,
1020
- direction: "up"
1021
- }) : i ? s = Gr({
1022
- seriesIndex: L.value,
1023
- plotIndex: R.value,
1024
- direction: "down"
1025
- }) : t ? s = Gr({
1026
- seriesIndex: L.value,
1027
- plotIndex: R.value,
1028
- direction: "left"
1029
- }) : n && (s = Gr({
1030
- seriesIndex: L.value,
1031
- plotIndex: R.value,
1032
- direction: "right"
1033
- }));
1034
- if (!s) return;
1035
- let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1036
- c && br({
1037
- datapoint: c,
1038
- plotIndex: s.plotIndex,
1039
- seriesIndex: s.seriesIndex,
1040
- triggerMode: "keyboard"
1041
- });
1042
- }
1043
- return De({
1044
- getData: Er,
1045
- getImage: Dr,
1046
- generatePdf: kn,
1047
- generateCsv: xr,
1048
- generateImage: An,
1049
- generateSvg: Lr,
1050
- hideSeries: fr,
1051
- showSeries: dr,
1052
- toggleTable: wr,
1053
- toggleTooltip: Tr,
1054
- toggleAnnotator: Cr,
1055
- toggleFullscreen: gr,
1056
- copyAlt: zr
1057
- }), (e, t) => (C(), g("div", {
1058
- id: `history_plot_${P.value}`,
1059
- ref_key: "historyPlotChart",
1060
- ref: j,
1061
- class: b({
1062
- "vue-data-ui-component": !0,
1063
- "vue-ui-history-plot": !0,
1064
- "vue-data-ui-wrapper-fullscreen": tn.value
1065
- }),
1066
- style: S(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
1067
- onMouseenter: t[2] ||= () => O(Tn)(!0),
1068
- onMouseleave: t[3] ||= () => O(Tn)(!1)
1069
- }, [
1070
- _("div", {
1071
- id: `chart-instructions-${P.value}`,
1072
- class: "sr-only"
1073
- }, [_("p", null, D(z.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1074
- $.value.body.length ? (C(), m(Me, {
1075
- key: 0,
1076
- uid: P.value,
1077
- head: $.value.head,
1078
- body: $.value.body,
1079
- caption: $.value.caption,
1080
- notice: $.value.notice
1081
- }, null, 8, [
1082
- "uid",
1083
- "head",
1084
- "body",
1085
- "caption",
1086
- "notice"
1087
- ])) : h("", !0),
1088
- E(e.$slots, "userConfig", {}, void 0, !0),
1089
- z.value.userOptions.buttons.annotator ? (C(), m(O(zt), {
1090
- key: 1,
1091
- svgRef: O(H),
1092
- backgroundColor: z.value.style.chart.backgroundColor,
1093
- color: z.value.style.chart.color,
1094
- active: Sr.value,
1095
- isCursorPointer: V.value,
1096
- onClose: Cr
1097
- }, {
1098
- "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1099
- "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1100
- "annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1101
- "annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1102
- "annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1103
- "annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1104
- _: 3
1105
- }, 8, [
1106
- "svgRef",
1107
- "backgroundColor",
1108
- "color",
1109
- "active",
1110
- "isCursorPointer"
1111
- ])) : h("", !0),
1112
- jn.value ? (C(), g("div", {
1113
- key: 2,
1114
- ref_key: "noTitle",
1115
- ref: Qt,
1116
- class: "vue-data-ui-no-title-space",
1117
- style: "height:36px; width: 100%;background:transparent"
1118
- }, null, 512)) : h("", !0),
1119
- z.value.style.chart.title.text ? (C(), g("div", {
1120
- key: 3,
1121
- ref_key: "chartTitle",
1122
- ref: Kt,
1123
- class: "vue-ui-xy-title",
1124
- style: S(`font-family:${z.value.style.fontFamily}`)
1125
- }, [(C(), m(Ee, {
1126
- key: `title_${qt.value}`,
1127
- config: {
1128
- title: {
1129
- cy: "history-plot-div-title",
1130
- ...z.value.style.chart.title
1131
- },
1132
- subtitle: {
1133
- cy: "history-plot-div-subtitle",
1134
- ...z.value.style.chart.title.subtitle
1135
- }
1136
- }
1137
- }, null, 8, ["config"]))], 4)) : h("", !0),
1138
- _("div", { id: `legend-top-${P.value}` }, null, 8, $e),
1139
- z.value.userOptions.show && hn.value && (O(En) || O(wn)) ? (C(), m(O(Bt), {
1140
- ref_key: "userOptionsRef",
1141
- ref: sn,
1142
- key: `user_option_${Zt.value}`,
1143
- backgroundColor: z.value.style.chart.backgroundColor,
1144
- color: z.value.style.chart.color,
1145
- isPrinting: O(Dn),
1146
- isImaging: O(On),
1147
- uid: P.value,
1148
- hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1149
- hasPdf: z.value.userOptions.buttons.pdf,
1150
- hasImg: z.value.userOptions.buttons.img,
1151
- hasSvg: z.value.userOptions.buttons.svg,
1152
- hasXls: z.value.userOptions.buttons.csv,
1153
- hasTable: z.value.userOptions.buttons.table,
1154
- hasLabel: !1,
1155
- hasFullscreen: z.value.userOptions.buttons.fullscreen,
1156
- hasAltCopy: z.value.userOptions.buttons.altCopy,
1157
- isFullscreen: tn.value,
1158
- chartElement: j.value,
1159
- position: z.value.userOptions.position,
1160
- isTooltip: U.value.showTooltip,
1161
- titles: { ...z.value.userOptions.buttonTitles },
1162
- hasAnnotator: z.value.userOptions.buttons.annotator,
1163
- isAnnotation: Sr.value,
1164
- callbacks: z.value.userOptions.callbacks,
1165
- printScale: z.value.userOptions.print.scale,
1166
- tableDialog: z.value.table.useDialog,
1167
- isCursorPointer: V.value,
1168
- onToggleFullscreen: gr,
1169
- onGeneratePdf: O(kn),
1170
- onGenerateCsv: xr,
1171
- onGenerateImage: O(Rr),
1172
- onGenerateSvg: O(Lr),
1173
- onToggleTable: wr,
1174
- onToggleTooltip: Tr,
1175
- onToggleAnnotator: Cr,
1176
- onCopyAlt: zr,
1177
- style: S({ visibility: O(En) ? O(wn) ? "visible" : "hidden" : "visible" })
1178
- }, Re({ _: 2 }, [
1179
- e.$slots.menuIcon ? {
1180
- name: "menuIcon",
1181
- fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
1182
- isOpen: t,
1183
- color: n
1184
- })), void 0, !0)]),
1185
- key: "0"
1186
- } : void 0,
1187
- e.$slots.optionTooltip ? {
1188
- name: "optionTooltip",
1189
- fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
1190
- key: "1"
1191
- } : void 0,
1192
- e.$slots.optionPdf ? {
1193
- name: "optionPdf",
1194
- fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1195
- key: "2"
1196
- } : void 0,
1197
- e.$slots.optionCsv ? {
1198
- name: "optionCsv",
1199
- fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
1200
- key: "3"
1201
- } : void 0,
1202
- e.$slots.optionImg ? {
1203
- name: "optionImg",
1204
- fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1205
- key: "4"
1206
- } : void 0,
1207
- e.$slots.optionSvg ? {
1208
- name: "optionSvg",
1209
- fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1210
- key: "5"
1211
- } : void 0,
1212
- e.$slots.optionTable ? {
1213
- name: "optionTable",
1214
- fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
1215
- key: "6"
1216
- } : void 0,
1217
- e.$slots.optionFullscreen ? {
1218
- name: "optionFullscreen",
1219
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1220
- toggleFullscreen: t,
1221
- isFullscreen: n
1222
- })), void 0, !0)]),
1223
- key: "7"
1224
- } : void 0,
1225
- e.$slots.optionAnnotator ? {
1226
- name: "optionAnnotator",
1227
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1228
- toggleAnnotator: t,
1229
- isAnnotator: n
1230
- })), void 0, !0)]),
1231
- key: "8"
1232
- } : void 0,
1233
- e.$slots.optionAltCopy ? {
1234
- name: "optionAltCopy",
1235
- fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1236
- key: "9"
1237
- } : void 0,
1238
- e.$slots["custom-menu-before"] ? {
1239
- name: "custom-menu-before",
1240
- fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1241
- key: "10"
1242
- } : void 0,
1243
- e.$slots["custom-menu-after"] ? {
1244
- name: "custom-menu-after",
1245
- fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1246
- key: "11"
1247
- } : void 0
1248
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : h("", !0),
1249
- _("div", et, [(C(), g("svg", {
1250
- ref_key: "svgRef",
1251
- ref: H,
1252
- xmlns: O(de),
1253
- viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
1254
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1255
- "aria-describedby": `chart-instructions-${P.value}`,
1256
- tabindex: "0",
1257
- onFocus: Hr,
1258
- onBlur: Ur,
1259
- onKeydown: Kr
1260
- }, [
1261
- Be(O(Vt)),
1262
- e.$slots["chart-background"] ? (C(), g("foreignObject", {
1263
- key: 0,
1264
- x: G.value.left,
1265
- y: G.value.top,
1266
- width: G.value.width <= 0 ? 10 : G.value.width,
1267
- height: G.value.height <= 0 ? 10 : G.value.height,
1268
- style: { pointerEvents: "none" }
1269
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : h("", !0),
1270
- z.value.style.chart.plots.gradient.show || qn.value ? (C(), g("defs", rt, [z.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(Y.value, (e, t) => (C(), m(Ae, {
1271
- t: "radial",
1272
- key: `gradient_${t}_${P.value}`,
1273
- id: `gradient_${t}_${P.value}`,
1274
- fy: "30%",
1275
- stops: [
1276
- [
1277
- "10%",
1278
- O(n)(e.color, z.value.style.chart.plots.gradient.intensity / 100),
1279
- 1
1280
- ],
1281
- [
1282
- "90%",
1283
- O(ie)(e.color, .1),
1284
- 1
1285
- ],
1286
- [
1287
- "100%",
1288
- e.color,
1289
- 1
1290
- ]
1291
- ]
1292
- }, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(Y.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [z.value.style.chart.plots.gradient.show && Yn(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), m(Ae, {
1293
- t: "radial",
1294
- key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
1295
- id: er(e, t),
1296
- fy: "30%",
1297
- stops: [
1298
- [
1299
- "10%",
1300
- O(n)(Z(e, t), z.value.style.chart.plots.gradient.intensity / 100),
1301
- 1
1302
- ],
1303
- [
1304
- "90%",
1305
- O(ie)(Z(e, t), .1),
1306
- 1
1307
- ],
1308
- [
1309
- "100%",
1310
- Z(e, t),
1311
- 1
1312
- ]
1313
- ]
1314
- }, null, 8, ["id", "stops"]))), 128)) : h("", !0), Jn(e) ? (C(), g("linearGradient", {
1315
- key: 1,
1316
- id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
1317
- gradientUnits: "userSpaceOnUse",
1318
- x1: X(e).x1,
1319
- y1: X(e).y1,
1320
- x2: X(e).x2,
1321
- y2: X(e).y2
1322
- }, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
1323
- key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
1324
- "stop-color": t,
1325
- offset: e.temperatureColors.length === 1 ? "0%" : O(ne)(n, e.temperatureColors.length)
1326
- }, null, 8, at))), 128))], 8, it)) : h("", !0)], 64))), 128))])) : h("", !0),
1327
- z.value.style.chart.grid.verticalLines.show ? (C(), g("g", ot, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
1328
- x1: e.x,
1329
- x2: e.x,
1330
- y1: e.y1,
1331
- y2: e.y2,
1332
- stroke: z.value.style.chart.grid.verticalLines.stroke,
1333
- "stroke-width": z.value.style.chart.grid.verticalLines.strokeWidth,
1334
- "stroke-linecap": "round"
1335
- }, null, 8, st))), 256))])) : h("", !0),
1336
- z.value.style.chart.axes.y.labels.show ? (C(), g("g", ct, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
1337
- stroke: z.value.style.chart.grid.verticalLines.stroke,
1338
- "stroke-width": z.value.style.chart.grid.verticalLines.strokeWidth,
1339
- "stroke-linecap": "round",
1340
- x1: G.value.left - 5,
1341
- x2: G.value.left,
1342
- y1: e.y,
1343
- y2: e.y
1344
- }, null, 8, lt))), 256))])) : h("", !0),
1345
- z.value.style.chart.axes.y.labels.show ? (C(), g("g", {
1346
- key: 4,
1347
- ref_key: "yAxisScales",
1348
- ref: dn
1349
- }, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("text", {
1350
- x: G.value.left + z.value.style.chart.axes.y.labels.offsetX - 4 - z.value.style.chart.plots.radius,
1351
- y: e.y + K.value.yAxisLabels / 3,
1352
- fill: z.value.style.chart.axes.y.labels.color,
1353
- "font-size": K.value.yAxisLabels,
1354
- "text-anchor": "end"
1355
- }, D(O(d)(z.value.style.chart.axes.y.labels.formatter, e.value, O(l)({
1356
- p: z.value.style.chart.axes.y.labels.prefix,
1357
- v: e.value,
1358
- s: z.value.style.chart.axes.y.labels.suffix,
1359
- r: z.value.style.chart.axes.y.labels.rounding
1360
- }))), 9, ut))), 256))], 512)) : h("", !0),
1361
- z.value.style.chart.axes.y.name.text ? (C(), g("text", {
1362
- key: 5,
1363
- ref_key: "yAxisLabel",
1364
- ref: ln,
1365
- transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + z.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1366
- "font-size": K.value.yAxisName,
1367
- fill: z.value.style.chart.axes.y.name.color,
1368
- "font-weight": z.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1369
- "text-anchor": "middle"
1370
- }, D(z.value.style.chart.axes.y.name.text), 9, dt)) : h("", !0),
1371
- z.value.style.chart.grid.horizontalLines.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
1372
- x1: e.x1,
1373
- x2: e.x2,
1374
- y1: e.y,
1375
- y2: e.y,
1376
- stroke: z.value.style.chart.grid.horizontalLines.stroke,
1377
- "stroke-width": z.value.style.chart.grid.horizontalLines.strokeWidth,
1378
- "stroke-linecap": "round"
1379
- }, null, 8, pt))), 256))])) : h("", !0),
1380
- z.value.style.chart.axes.x.labels.show ? (C(), g("g", mt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
1381
- stroke: z.value.style.chart.grid.verticalLines.stroke,
1382
- "stroke-width": z.value.style.chart.grid.verticalLines.strokeWidth,
1383
- "stroke-linecap": "round",
1384
- x1: e.x,
1385
- x2: e.x,
1386
- y1: G.value.bottom,
1387
- y2: G.value.bottom + 5
1388
- }, null, 8, ht))), 256))])) : h("", !0),
1389
- z.value.style.chart.axes.x.labels.show ? (C(), g("g", {
1390
- key: 8,
1391
- ref_key: "xAxisScales",
1392
- ref: un
1393
- }, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
1394
- class: "vue-ui-history-plot-x-axis-scale",
1395
- transform: `translate(${e.x}, ${G.value.bottom + z.value.style.chart.axes.x.labels.offsetY + K.value.xAxisLabels + z.value.style.chart.plots.radius}), rotate(${z.value.style.chart.axes.x.labels.rotation})`,
1396
- fill: z.value.style.chart.axes.x.labels.color,
1397
- "font-size": K.value.xAxisLabels,
1398
- "text-anchor": z.value.style.chart.axes.x.labels.rotation > 0 ? "start" : z.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1399
- }, D(O(d)(z.value.style.chart.axes.x.labels.formatter, e.value, O(l)({
1400
- p: z.value.style.chart.axes.x.labels.prefix,
1401
- v: e.value,
1402
- s: z.value.style.chart.axes.x.labels.suffix,
1403
- r: z.value.style.chart.axes.x.labels.rounding
1404
- }))), 9, gt))), 256))], 512)) : h("", !0),
1405
- z.value.style.chart.axes.x.name.text ? (C(), g("text", {
1406
- key: 9,
1407
- ref_key: "xAxisLabel",
1408
- ref: cn,
1409
- x: W.value.width / 2 + z.value.style.chart.axes.x.name.offsetX,
1410
- y: W.value.height,
1411
- "font-size": K.value.xAxisName,
1412
- fill: z.value.style.chart.axes.x.name.color,
1413
- "font-weight": z.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1414
- "text-anchor": "middle"
1415
- }, D(z.value.style.chart.axes.x.name.text), 9, _t)) : h("", !0),
1416
- z.value.style.chart.grid.xAxis.show ? (C(), g("line", {
1417
- key: 10,
1418
- x1: G.value.left,
1419
- x2: G.value.left + G.value.width,
1420
- y1: G.value.bottom,
1421
- y2: G.value.bottom,
1422
- stroke: z.value.style.chart.grid.xAxis.stroke,
1423
- "stroke-width": z.value.style.chart.grid.xAxis.strokeWidth,
1424
- "stroke-linecap": "round"
1425
- }, null, 8, vt)) : h("", !0),
1426
- z.value.style.chart.grid.yAxis.show ? (C(), g("line", {
1427
- key: 11,
1428
- x1: G.value.left,
1429
- x2: G.value.left,
1430
- y1: G.value.top,
1431
- y2: G.value.bottom,
1432
- stroke: z.value.style.chart.grid.yAxis.stroke,
1433
- "stroke-width": z.value.style.chart.grid.yAxis.strokeWidth,
1434
- "stroke-linecap": "round"
1435
- }, null, 8, yt)) : h("", !0),
1436
- (C(!0), g(f, null, T(Kn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
1437
- z.value.style.chart.paths.show ? (C(), g("g", {
1438
- key: 0,
1439
- style: S({ opacity: or(e.seriesIndex) })
1440
- }, [_("path", {
1441
- class: b({ "vue-data-ui-transition": O(B) }),
1442
- d: e.path,
1443
- stroke: z.value.style.chart.backgroundColor,
1444
- "stroke-width": z.value.style.chart.paths.strokeWidth + 4,
1445
- fill: "none",
1446
- "stroke-linecap": "round",
1447
- "stroke-linejoin": "round"
1448
- }, null, 10, bt), _("path", {
1449
- class: b({ "vue-data-ui-transition": O(B) }),
1450
- d: e.path,
1451
- stroke: ar(e),
1452
- "stroke-width": z.value.style.chart.paths.strokeWidth,
1453
- fill: "none",
1454
- "stroke-linecap": "round",
1455
- "stroke-linejoin": "round"
1456
- }, null, 10, xt)], 4)) : h("", !0),
1457
- (C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
1458
- cx: e.x,
1459
- cy: e.y,
1460
- fill: z.value.style.chart.backgroundColor,
1461
- r: K.value.plots,
1462
- stroke: "none",
1463
- class: b({ "vue-data-ui-transition": O(B) })
1464
- }, null, 10, St))), 256)),
1465
- (C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
1466
- cx: t.x,
1467
- cy: t.y,
1468
- fill: tr(e, t, e.gradientIndex),
1469
- r: K.value.plots,
1470
- stroke: z.value.style.chart.plots.stroke,
1471
- "stroke-width": z.value.style.chart.plots.strokeWidth,
1472
- class: b({ "vue-data-ui-transition": O(B) }),
1473
- style: S({ opacity: or(e.seriesIndex) })
1474
- }, null, 14, Ct))), 256)),
1475
- z.value.style.chart.plots.labels.show ? (C(), g("g", wt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("g", { key: `plab_${n}` }, [String(t.label).includes("\n") ? (C(), g("text", {
1476
- key: 1,
1477
- class: b({ "vue-data-ui-transition": O(B) }),
1478
- transform: `translate(${t.x + z.value.style.chart.plots.labels.offsetX}, ${t.y + z.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels})`,
1479
- "font-size": K.value.labels,
1480
- fill: z.value.style.chart.plots.labels.color,
1481
- "font-weight": z.value.style.chart.plots.labels.bold ? "bold" : "normal",
1482
- "text-anchor": "middle",
1483
- style: S({ opacity: or(e.seriesIndex) }),
1484
- innerHTML: O(i)({
1485
- content: String(t.label),
1486
- fontSize: K.value.labels,
1487
- fill: z.value.style.chart.plots.labels.color,
1488
- x: 0,
1489
- y: 0
1490
- })
1491
- }, null, 14, Et)) : (C(), g("text", {
1492
- key: 0,
1493
- class: b({ "vue-data-ui-transition": O(B) }),
1494
- transform: `translate(${t.x + z.value.style.chart.plots.labels.offsetX}, ${t.y + z.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels})`,
1495
- "font-size": K.value.labels,
1496
- fill: z.value.style.chart.plots.labels.color,
1497
- "font-weight": z.value.style.chart.plots.labels.bold ? "bold" : "normal",
1498
- "text-anchor": "middle",
1499
- style: S({ opacity: or(e.seriesIndex) })
1500
- }, D(t.label), 15, Tt))]))), 128))])) : h("", !0),
1501
- z.value.style.chart.plots.indexLabels.show ? (C(), g("g", Dt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
1502
- key: `lab_${n}`,
1503
- class: b({ "vue-data-ui-transition": O(B) }),
1504
- transform: `translate(${t.x + z.value.style.chart.plots.indexLabels.offsetX}, ${t.y + z.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3})`,
1505
- "font-size": K.value.indexLabels,
1506
- "font-weight": z.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1507
- fill: rr(e, t),
1508
- "text-anchor": "middle",
1509
- style: S({ opacity: or(e.seriesIndex) })
1510
- }, D(z.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Ot))), 128))])) : h("", !0)
1511
- ]))), 128)),
1512
- (C(!0), g(f, null, T(Kn.value, (e) => (C(), g("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${P.value}` }, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("circle", {
1513
- cx: t.x,
1514
- cy: t.y,
1515
- fill: "transparent",
1516
- r: K.value.plots,
1517
- stroke: "none",
1518
- onMouseenter: (r) => br({
1519
- datapoint: t,
1520
- plotIndex: n,
1521
- seriesIndex: e.seriesIndex,
1522
- triggerMode: "pointer"
1523
- }),
1524
- onMouseleave: (r) => vr({
1525
- datapoint: t,
1526
- plotIndex: n,
1527
- seriesIndex: e.seriesIndex
1528
- }),
1529
- onClick: (r) => hr({
1530
- datapoint: t,
1531
- plotIndex: n,
1532
- seriesIndex: e.seriesIndex
1533
- })
1534
- }, null, 40, kt))), 256))]))), 128)),
1535
- E(e.$slots, "svg", { svg: {
1536
- ...W.value,
1537
- drawingArea: G.value,
1538
- isPrintingImg: O(Dn) || O(On) || O(Fr),
1539
- isPrintingSvg: O(Ir)
1540
- } }, void 0, !0)
1541
- ], 44, tt)), e.$slots.hint ? (C(), g("div", At, [E(e.$slots, "hint", x(y({
1542
- hint: z.value.a11y.translations.keyboardNavigation,
1543
- isVisible: mn.value
1544
- })), void 0, !0)])) : h("", !0)]),
1545
- e.$slots.watermark ? (C(), g("div", jt, [E(e.$slots, "watermark", x(y({ isPrinting: O(Dn) || O(On) || O(Fr) || O(Ir) })), void 0, !0)])) : h("", !0),
1546
- _("div", { id: `legend-bottom-${P.value}` }, null, 8, Mt),
1547
- an.value && (z.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Le, {
1548
- key: 6,
1549
- to: z.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1550
- }, [_("div", {
1551
- ref_key: "chartLegend",
1552
- ref: Jt
1553
- }, [E(e.$slots, "legend", { legend: pr.value }, () => [z.value.style.chart.legend.show && hn.value ? (C(), m(Fe, {
1554
- key: `legend_${Yt.value}`,
1555
- legendSet: pr.value,
1556
- config: mr.value,
1557
- isCursorPointer: V.value,
1558
- onClickMarker: t[0] ||= ({ legend: e }) => {
1559
- lr(e.seriesIndex);
1560
- }
1561
- }, {
1562
- item: k(({ legend: e, index: t }) => [_("div", {
1563
- onClick: (t) => e.segregate(),
1564
- style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
1565
- }, D(e.name), 13, Nt)]),
1566
- legendToggle: k(() => [pr.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !O(xn) ? (C(), m(je, {
1567
- key: 0,
1568
- backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
1569
- color: z.value.style.chart.legend.selectAllToggle.color,
1570
- fontSize: z.value.style.chart.legend.fontSize,
1571
- checked: F.value.length > 0,
1572
- isCursorPointer: V.value,
1573
- onToggle: cr
1574
- }, null, 8, [
1575
- "backgroundColor",
1576
- "color",
1577
- "fontSize",
1578
- "checked",
1579
- "isCursorPointer"
1580
- ])) : h("", !0)]),
1581
- _: 1
1582
- }, 8, [
1583
- "legendSet",
1584
- "config",
1585
- "isCursorPointer"
1586
- ])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
1587
- e.$slots.source ? (C(), g("div", {
1588
- key: 7,
1589
- ref_key: "source",
1590
- ref: rn,
1591
- dir: "auto"
1592
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1593
- Be(O(Ft), {
1594
- teleportTo: z.value.style.chart.tooltip.teleportTo,
1595
- show: U.value.showTooltip && $t.value,
1596
- backgroundColor: z.value.style.chart.tooltip.backgroundColor,
1597
- color: z.value.style.chart.tooltip.color,
1598
- fontSize: z.value.style.chart.tooltip.fontSize,
1599
- borderRadius: z.value.style.chart.tooltip.borderRadius,
1600
- borderColor: z.value.style.chart.tooltip.borderColor,
1601
- borderWidth: z.value.style.chart.tooltip.borderWidth,
1602
- backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
1603
- position: z.value.style.chart.tooltip.position,
1604
- offsetX: z.value.style.chart.tooltip.offsetX,
1605
- offsetY: z.value.style.chart.tooltip.offsetY,
1606
- parent: j.value,
1607
- content: en.value,
1608
- isCustom: nn.value,
1609
- isFullscreen: tn.value,
1610
- smooth: z.value.style.chart.tooltip.smooth,
1611
- backdropFilter: z.value.style.chart.tooltip.backdropFilter,
1612
- smoothForce: z.value.style.chart.tooltip.smoothForce,
1613
- smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
1614
- isA11yMode: pn.value === "keyboard",
1615
- a11yPosition: fn.value
1616
- }, {
1617
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ..._r.value })), void 0, !0)]),
1618
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ..._r.value })), void 0, !0)]),
1619
- "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ..._r.value })), void 0, !0)]),
1620
- _: 3
1621
- }, 8, [
1622
- "teleportTo",
1623
- "show",
1624
- "backgroundColor",
1625
- "color",
1626
- "fontSize",
1627
- "borderRadius",
1628
- "borderColor",
1629
- "borderWidth",
1630
- "backgroundOpacity",
1631
- "position",
1632
- "offsetX",
1633
- "offsetY",
1634
- "parent",
1635
- "content",
1636
- "isCustom",
1637
- "isFullscreen",
1638
- "smooth",
1639
- "backdropFilter",
1640
- "smoothForce",
1641
- "smoothSnapThreshold",
1642
- "isA11yMode",
1643
- "a11yPosition"
1644
- ]),
1645
- hn.value && z.value.userOptions.buttons.table ? (C(), m(Ge(Ar.value.component), Ve({ key: 8 }, Ar.value.props, {
1646
- ref_key: "tableUnit",
1647
- ref: on,
1648
- onClose: jr
1649
- }), Re({
1650
- content: k(() => [(C(), m(O(Rt), {
1651
- key: `table_${Xt.value}`,
1652
- colNames: Q.value.colNames,
1653
- head: Q.value.head,
1654
- body: Q.value.body,
1655
- config: Q.value.config,
1656
- title: z.value.table.useDialog ? "" : Ar.value.title,
1657
- withCloseButton: !z.value.table.useDialog,
1658
- isCursorPointer: V.value,
1659
- onClose: jr
1660
- }, {
1661
- th: k(({ th: e }) => [_("div", Pt, D(e), 1)]),
1662
- td: k(({ td: e }) => [ze(D(e.name || e), 1)]),
1663
- _: 1
1664
- }, 8, [
1665
- "colNames",
1666
- "head",
1667
- "body",
1668
- "config",
1669
- "title",
1670
- "withCloseButton",
1671
- "isCursorPointer"
1672
- ]))]),
1673
- _: 2
1674
- }, [z.value.table.useDialog ? {
1675
- name: "title",
1676
- fn: k(() => [ze(D(Ar.value.title), 1)]),
1677
- key: "0"
1678
- } : void 0, z.value.table.useDialog ? {
1679
- name: "actions",
1680
- fn: k(() => [_("button", {
1681
- tabindex: "0",
1682
- class: "vue-ui-user-options-button",
1683
- onClick: t[1] ||= (e) => xr(z.value.userOptions.callbacks.csv),
1684
- style: S({ cursor: V.value ? "pointer" : "default" })
1685
- }, [Be(O(It), {
1686
- name: "fileCsv",
1687
- stroke: Ar.value.props.color
1688
- }, null, 8, ["stroke"])], 4)]),
1689
- key: "1"
1690
- } : void 0]), 1040)) : h("", !0),
1691
- E(e.$slots, "skeleton", {}, () => [O(xn) ? (C(), m(ye, { key: 0 })) : h("", !0)], !0)
1692
- ], 46, Ze));
1693
- }
1694
- }, [["__scopeId", "data-v-8b2b805f"]]);
1695
- //#endregion
1696
- export { Xe as n, Ft as t };