vue-data-ui 3.22.4 → 3.22.6

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