vue-data-ui 3.22.0 → 3.22.2

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 (199) hide show
  1. package/dist/{Arrow-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
  3. package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
  4. package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
  5. package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
  6. package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
  7. package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
  8. package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
  10. package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
  11. package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
  12. package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
  13. package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
  14. package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
  15. package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
  16. package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
  17. package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
  18. package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
  89. package/dist/exposedLib-CffbQxjN.js +19 -0
  90. package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
  91. package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
  92. package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
  93. package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
  94. package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
  95. package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
  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 +7 -10
  101. package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
  102. package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
  103. package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
  104. package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
  105. package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
  106. package/dist/utils.js +3 -3
  107. package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
  108. package/dist/vue-data-ui.js +72 -72
  109. package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
  110. package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
  111. package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
  112. package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
  113. package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
  114. package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
  115. package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
  116. package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
  117. package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
  118. package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
  120. package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
  121. package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
  122. package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
  123. package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
  124. package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
  125. package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
  126. package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
  127. package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
  128. package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
  129. package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
  130. package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
  131. package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
  132. package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
  133. package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
  134. package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
  135. package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
  136. package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
  137. package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
  139. package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
  140. package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
  141. package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
  142. package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
  143. package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
  144. package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
  145. package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
  146. package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
  147. package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
  148. package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
  149. package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
  150. package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
  151. package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
  152. package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
  153. package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
  154. package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
  155. package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
  156. package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
  157. package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
  158. package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
  159. package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
  160. package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
  161. package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
  162. package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
  163. package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
  164. package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
  165. package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
  166. package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
  167. package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
  168. package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
  169. package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
  170. package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
  171. package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
  172. package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
  173. package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
  174. package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
  175. package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
  176. package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
  177. package/package.json +2 -2
  178. package/dist/exposedLib-BJbE_A8E.js +0 -19
  179. package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
  181. package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
  182. package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
  183. package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
  184. package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
  185. package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
  186. package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
  187. package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
  188. package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
  189. package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
  190. package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
  191. package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
  192. package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
  193. package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
  194. package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
  195. package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
  196. package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
  197. package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
  198. package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
  199. package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
@@ -1,1554 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, Bt as n, G as r, H as i, Ht as a, J as ee, Ot as o, S as te, St as ne, Tt as re, Vt as s, W as ie, X as ae, ct as oe, h as se, ht as ce, i as c, r as le, t as ue, x as de, y as fe, zt as pe } from "./lib-AJRHFE5U.js";
3
- import { t as me } from "./useConfig-Br1uzq_L.js";
4
- import { t as he } from "./usePrinter-6n2MzVyV.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-DtcXIg7n.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-C_RNNswI.js";
11
- import { n as Ce } from "./Title-DH6G8_cZ.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-CUYal8mC.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-CAStwHdx.js";
20
- import { t as Me } from "./vue_ui_history_plot-CuN63VEc.js";
21
- import { Fragment as l, Teleport as Ne, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Le, nextTick as Re, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as ze, onMounted as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as We, watchEffect as Ge, withCtx as E } from "vue";
22
- //#region src/components/vue-ui-history-plot.vue
23
- var Ke = /* @__PURE__ */ e({ default: () => Nt }), 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 = { key: 2 }, at = [
33
- "x1",
34
- "x2",
35
- "y1",
36
- "y2",
37
- "stroke",
38
- "stroke-width"
39
- ], ot = { key: 3 }, st = [
40
- "stroke",
41
- "stroke-width",
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2"
46
- ], ct = [
47
- "x",
48
- "y",
49
- "fill",
50
- "font-size"
51
- ], lt = [
52
- "transform",
53
- "font-size",
54
- "fill",
55
- "font-weight"
56
- ], ut = { key: 6 }, dt = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], ft = { key: 7 }, pt = [
64
- "stroke",
65
- "stroke-width",
66
- "x1",
67
- "x2",
68
- "y1",
69
- "y2"
70
- ], mt = [
71
- "transform",
72
- "fill",
73
- "font-size",
74
- "text-anchor"
75
- ], ht = [
76
- "x",
77
- "y",
78
- "font-size",
79
- "fill",
80
- "font-weight"
81
- ], gt = [
82
- "x1",
83
- "x2",
84
- "y1",
85
- "y2",
86
- "stroke",
87
- "stroke-width"
88
- ], _t = [
89
- "x1",
90
- "x2",
91
- "y1",
92
- "y2",
93
- "stroke",
94
- "stroke-width"
95
- ], vt = [
96
- "d",
97
- "stroke",
98
- "stroke-width"
99
- ], yt = [
100
- "d",
101
- "stroke",
102
- "stroke-width"
103
- ], bt = [
104
- "cx",
105
- "cy",
106
- "fill",
107
- "r"
108
- ], xt = [
109
- "cx",
110
- "cy",
111
- "fill",
112
- "r",
113
- "stroke",
114
- "stroke-width"
115
- ], St = { key: 1 }, Ct = [
116
- "x",
117
- "y",
118
- "font-size",
119
- "fill",
120
- "font-weight"
121
- ], wt = [
122
- "x",
123
- "y",
124
- "font-size",
125
- "fill",
126
- "font-weight",
127
- "innerHTML"
128
- ], Tt = { key: 2 }, Et = [
129
- "x",
130
- "y",
131
- "font-size",
132
- "font-weight",
133
- "fill"
134
- ], Dt = [
135
- "cx",
136
- "cy",
137
- "r",
138
- "onMouseenter",
139
- "onMouseleave",
140
- "onClick"
141
- ], Ot = {
142
- key: 0,
143
- style: {
144
- position: "absolute",
145
- top: "100%",
146
- left: "0",
147
- width: "100%"
148
- },
149
- "data-dom-to-png-ignore": "",
150
- "aria-hidden": "true"
151
- }, kt = {
152
- key: 5,
153
- class: "vue-data-ui-watermark"
154
- }, At = ["id"], jt = ["onClick"], Mt = ["innerHTML"], Nt = /*#__PURE__*/ we({
155
- __name: "vue-ui-history-plot",
156
- props: {
157
- config: {
158
- type: Object,
159
- default() {
160
- return {};
161
- }
162
- },
163
- dataset: {
164
- type: Array,
165
- default() {
166
- return [];
167
- }
168
- }
169
- },
170
- emits: [
171
- "selectLegend",
172
- "selectDatapoint",
173
- "copyAlt"
174
- ],
175
- setup(e, { expose: we, emit: Ke }) {
176
- let Nt = h(() => import("./Tooltip-979Ytd8R.js")), Pt = h(() => import("./BaseIcon-CWXbczu_.js").then((e) => e.n)), Ft = h(() => import("./vue-ui-accordion-HvsT8_RM.js").then((e) => e.n)), It = h(() => import("./DataTable-G9aclxhk.js")), Lt = h(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), Rt = h(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), zt = h(() => import("./PackageVersion-DxBQctV8.js").then((e) => e.t)), Bt = h(() => import("./BaseDraggableDialog-O8jn9Lvi.js").then((e) => e.n)), { vue_ui_history_plot: Vt } = me(), { isThemeValid: Ht, warnInvalidTheme: Ut } = be(), D = e, O = x(null), Wt = x(null), Gt = x(0), Kt = x(null), qt = x(0), Jt = x(0), Yt = x(0), k = He(null), A = He(null), Xt = x(null), j = x(i()), Zt = x(!1), Qt = x(""), M = x([]), N = x(!1), P = x(null), F = x(!1), $t = x(null), en = x(!1), I = x(null), tn = x(null), nn = x(!1), rn = x(!1), an = x(null), on = x(null), sn = x(null), cn = x(null), L = x(null), R = x(null), ln = x({
177
- x: 0,
178
- y: 0
179
- }), un = x("pointer"), dn = x(!1), fn = u({
180
- get: () => !!D.dataset && D.dataset.length,
181
- set: (e) => e
182
- }), pn = Ke;
183
- Be(() => {
184
- en.value = !0, hn();
185
- });
186
- let mn = u(() => !!z.value.debug);
187
- function hn() {
188
- if (re(D.dataset) ? (ae({
189
- componentName: "VueUiHistoryPlot",
190
- type: "dataset",
191
- debug: mn.value
192
- }), yn.value = !0) : D.dataset.forEach((e, t) => {
193
- oe({
194
- datasetObject: e,
195
- requiredAttributes: ["name", "values"]
196
- }).forEach((e) => {
197
- fn.value = !1, ae({
198
- componentName: "VueUiHistoryPlot",
199
- type: "datasetSerieAttribute",
200
- property: e,
201
- index: t,
202
- debug: mn.value
203
- });
204
- });
205
- }), re(D.dataset) || (yn.value = z.value.loading), z.value.responsive) {
206
- let e = Te(() => {
207
- let { width: e, height: t } = Ee({
208
- chart: O.value,
209
- title: z.value.style.chart.title.text ? Wt.value : null,
210
- noTitle: Xt.value,
211
- legend: z.value.style.chart.legend.show ? Kt.value : null,
212
- source: $t.value
213
- });
214
- requestAnimationFrame(() => {
215
- W.value.width = e, W.value.height = t, z.value.responsiveProportionalSizing ? (K.value.plots = s({
216
- relator: Math.min(e, t),
217
- adjuster: 600,
218
- source: z.value.style.chart.plots.radius,
219
- threshold: 3,
220
- fallback: 3
221
- }), K.value.indexLabels = s({
222
- relator: Math.min(e, t),
223
- adjuster: 600,
224
- source: z.value.style.chart.plots.indexLabels.fontSize,
225
- threshold: 6,
226
- fallback: 6
227
- }), K.value.labels = s({
228
- relator: Math.min(e, t),
229
- adjuster: 600,
230
- source: z.value.style.chart.plots.labels.fontSize,
231
- threshold: 6,
232
- fallback: 6
233
- }), K.value.xAxisLabels = s({
234
- relator: Math.min(e, t),
235
- adjuster: 600,
236
- source: z.value.style.chart.axes.x.labels.fontSize,
237
- threshold: 6,
238
- fallback: 6
239
- }), K.value.xAxisName = s({
240
- relator: Math.min(e, t),
241
- adjuster: 600,
242
- source: z.value.style.chart.axes.x.name.fontSize,
243
- threshold: 6,
244
- fallback: 6
245
- }), K.value.yAxisLabels = s({
246
- relator: Math.min(e, t),
247
- adjuster: 600,
248
- source: z.value.style.chart.axes.y.labels.fontSize,
249
- threshold: 6,
250
- fallback: 6
251
- }), K.value.yAxisName = s({
252
- relator: Math.min(e, t),
253
- adjuster: 600,
254
- source: z.value.style.chart.axes.y.name.fontSize,
255
- threshold: 6,
256
- fallback: 6
257
- })) : (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);
258
- });
259
- });
260
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = O.value.parentNode, k.value.observe(A.value);
261
- }
262
- }
263
- ze(() => {
264
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
265
- });
266
- function gn() {
267
- let e = ye({
268
- userConfig: D.config,
269
- defaultConfig: Vt
270
- }), t = {}, r = e.theme;
271
- if (r) if (!Ht.value(e)) Ut(e), t = e;
272
- else {
273
- let i = ye({
274
- userConfig: Me[r] || D.config,
275
- defaultConfig: e
276
- });
277
- t = {
278
- ...ye({
279
- userConfig: D.config,
280
- defaultConfig: i
281
- }),
282
- customPalette: e.customPalette.length ? e.customPalette : n[r] || o
283
- };
284
- }
285
- else t = e;
286
- return t;
287
- }
288
- let z = x(gn()), B = u(() => z.value.userOptions.useCursorPointer), _n = u(() => a({
289
- defaultConfig: {
290
- userOptions: { show: !1 },
291
- table: { show: !1 },
292
- style: { chart: {
293
- backgroundColor: "#99999930",
294
- axes: {
295
- x: {
296
- scaleMin: 0,
297
- scaleMax: 10,
298
- labels: { show: !1 },
299
- name: { text: "" }
300
- },
301
- y: {
302
- scaleMin: 0,
303
- scaleMax: 10,
304
- labels: { show: !1 },
305
- name: { text: "" }
306
- }
307
- },
308
- grid: {
309
- xAxis: { stroke: "#6A6A6A" },
310
- horizontalLines: { stroke: "#6A6A6A50" },
311
- yAxis: { stroke: "#6A6A6A" },
312
- verticalLines: { stroke: "#6A6A6A50" }
313
- },
314
- legend: { backgroundColor: "transparent" },
315
- paths: {
316
- useSerieColor: !1,
317
- stroke: "#6A6A6A"
318
- },
319
- plots: {
320
- stroke: "#6A6A6A",
321
- indexLabels: { show: !1 },
322
- labels: { show: !1 }
323
- }
324
- } }
325
- },
326
- userConfig: z.value.skeletonConfig ?? {}
327
- })), { loading: V, FINAL_DATASET: vn, manualLoading: yn } = ge({
328
- ...Ue(D),
329
- FINAL_CONFIG: z,
330
- prepareConfig: gn,
331
- skeletonDataset: D.config?.skeletonDataset ?? [{
332
- name: "",
333
- color: "#CACACA",
334
- values: [
335
- {
336
- label: "",
337
- x: 1,
338
- y: 9
339
- },
340
- {
341
- label: "",
342
- x: 4,
343
- y: 1
344
- },
345
- {
346
- label: "",
347
- x: 7,
348
- y: 9
349
- },
350
- {
351
- label: "",
352
- x: 9,
353
- y: 4
354
- }
355
- ]
356
- }],
357
- skeletonConfig: a({
358
- defaultConfig: z.value,
359
- userConfig: _n.value
360
- })
361
- }), { userOptionsVisible: bn, setUserOptionsVisibility: xn, keepUserOptionState: Sn } = ke({ config: z.value }), { svgRef: H } = Ae({ config: z.value.style.chart.title });
362
- We(() => D.config, (e) => {
363
- V.value || (z.value = gn()), bn.value = !z.value.userOptions.showOnChartHover, hn(), Gt.value += 1, Jt.value += 1, qt.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;
364
- }, { deep: !0 }), We(() => D.dataset, (e) => {
365
- Array.isArray(e) && e.length > 0 && (yn.value = !1);
366
- }, { deep: !0 });
367
- let { isPrinting: Cn, isImaging: wn, generatePdf: Tn, generateImage: En } = he({
368
- elementId: `history_plot_${j.value}`,
369
- fileName: z.value.style.chart.title.text || "vue-ui-history-plot",
370
- options: z.value.userOptions.print
371
- }), Dn = u(() => z.value.userOptions.show && !z.value.style.chart.title.text), On = u(() => de(z.value.customPalette)), U = x({
372
- showTable: z.value.table.show,
373
- showTooltip: z.value.style.chart.tooltip.show
374
- });
375
- We(z, () => {
376
- U.value = {
377
- showTable: z.value.table.show,
378
- showTooltip: z.value.style.chart.tooltip.show
379
- };
380
- }, { immediate: !0 });
381
- let W = x({
382
- height: z.value.style.chart.height,
383
- width: z.value.style.chart.width
384
- }), kn = u(() => W.value.width), An = u(() => W.value.height);
385
- function jn() {
386
- let e = 0;
387
- cn.value && (e = Array.from(cn.value.querySelectorAll("text")).reduce((e, t) => {
388
- let n = t.getComputedTextLength();
389
- return n > e ? n : e;
390
- }, 0));
391
- let t = on.value ? on.value.getBoundingClientRect().width : 0;
392
- return e + t + (t ? 24 : 0);
393
- }
394
- let Mn = x(0), Nn = Te((e) => {
395
- Mn.value = e;
396
- });
397
- Ge((e) => {
398
- let t = sn.value;
399
- if (!t) return;
400
- let n = new ResizeObserver((e) => {
401
- Nn(e[0].contentRect.height);
402
- });
403
- n.observe(t), e(() => n.disconnect());
404
- });
405
- let Pn = u(() => {
406
- let e = 0;
407
- an.value && (e = an.value.getBBox().height + K.value.xAxisName / 2);
408
- let t = 0;
409
- return sn.value && (t = Mn.value), e + t;
410
- }), G = u(() => {
411
- let e = z.value.style.chart.padding.left, t = z.value.style.chart.padding.top, n = jn(), r = z.value.style.chart.plots.radius;
412
- return {
413
- left: e + n + z.value.style.chart.axes.y.name.offsetX,
414
- top: t + r,
415
- right: W.value.width - z.value.style.chart.padding.right - r - z.value.style.chart.axes.y.name.offsetX,
416
- bottom: W.value.height - z.value.style.chart.padding.bottom - Pn.value - r - z.value.style.chart.axes.x.name.offsetY,
417
- width: W.value.width - e - z.value.style.chart.padding.right - n - r - z.value.style.chart.axes.y.name.offsetX,
418
- height: W.value.height - t - z.value.style.chart.padding.bottom - Pn.value - r * 2 - z.value.style.chart.axes.x.name.offsetY
419
- };
420
- }), K = x({
421
- plots: z.value.style.chart.plots.radius,
422
- indexLabels: z.value.style.chart.plots.indexLabels.fontSize,
423
- labels: z.value.style.chart.plots.labels.fontSize,
424
- xAxisLabels: z.value.style.chart.axes.x.labels.fontSize,
425
- xAxisName: z.value.style.chart.axes.x.name.fontSize,
426
- yAxisLabels: z.value.style.chart.axes.y.labels.fontSize,
427
- yAxisName: z.value.style.chart.axes.y.name.fontSize
428
- }), q = u(() => vn.value.map((e, t) => ({
429
- ...e,
430
- color: e.color ? fe(e.color) : On.value[t] || o[t] || o[t % o.length],
431
- seriesIndex: t
432
- }))), Fn = u(() => Math.max(...q.value.filter((e) => !M.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), In = u(() => {
433
- let e = Math.min(...q.value.filter((e) => !M.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
434
- return e < 0 ? e : 0;
435
- }), Ln = u(() => Math.max(...q.value.filter((e) => !M.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Rn = u(() => {
436
- let e = Math.min(...q.value.filter((e) => !M.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
437
- return e < 0 ? e : 0;
438
- }), J = u(() => {
439
- let e = se(z.value.style.chart.axes.x.scaleMin ?? In.value, z.value.style.chart.axes.x.scaleMax ?? Fn.value, z.value.style.chart.axes.x.ticks), t = se(z.value.style.chart.axes.y.scaleMin ?? Rn.value, z.value.style.chart.axes.y.scaleMax ?? Ln.value, z.value.style.chart.axes.y.ticks);
440
- return {
441
- x: e,
442
- y: t,
443
- tickX: e.ticks.map((t) => ({
444
- x: G.value.left + (t - e.min) / (e.max - e.min) * G.value.width,
445
- y1: G.value.top,
446
- y2: G.value.bottom,
447
- value: t
448
- })),
449
- tickY: t.ticks.map((e) => ({
450
- y: G.value.bottom - (e - t.min) / (t.max - t.min) * G.value.height,
451
- x1: G.value.left,
452
- x2: G.value.right,
453
- value: e
454
- }))
455
- };
456
- });
457
- function zn(e) {
458
- let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
459
- return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
460
- }
461
- function Bn(e) {
462
- let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
463
- return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
464
- }
465
- let Y = u(() => q.value.filter((e) => !M.value.includes(e.seriesIndex)).map((e, t) => {
466
- let n = e.values.map((t, n) => ({
467
- valueX: t.x,
468
- valueY: t.y,
469
- label: t.label,
470
- x: zn(t.x),
471
- y: Bn(t.y),
472
- color: e.color,
473
- seriesName: e.name,
474
- id: i()
475
- })), r = n.map((e) => `${e.x},${e.y} `).join("").trim();
476
- return {
477
- ...e,
478
- plots: n,
479
- path: `M${r}`
480
- };
481
- }));
482
- function Vn() {
483
- M.value.length ? M.value = [] : X.value.forEach((e) => {
484
- M.value.push(e.seriesIndex);
485
- }), pn("selectLegend", Y.value);
486
- }
487
- function Hn(e) {
488
- M.value.includes(e) ? M.value = M.value.filter((t) => t !== e) : M.value.push(e), pn("selectLegend", Y.value);
489
- }
490
- function Un(e) {
491
- return q.value.length ? q.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
492
- }
493
- function Wn(e) {
494
- let t = Un(e);
495
- t !== null && M.value.includes(t.seriesIndex) && Hn(t.seriesIndex);
496
- }
497
- function Gn(e) {
498
- let t = Un(e);
499
- t !== null && (M.value.includes(t.seriesIndex) || Hn(t.seriesIndex));
500
- }
501
- let X = u(() => q.value.map((e) => ({
502
- ...e,
503
- opacity: M.value.includes(e.seriesIndex) ? .5 : 1,
504
- segregate: () => Hn(e.seriesIndex),
505
- isSegregated: M.value.includes(e.seriesIndex),
506
- shape: "circle"
507
- }))), Kn = u(() => ({
508
- cy: "history-plot-div-legend",
509
- backgroundColor: z.value.style.chart.legend.backgroundColor,
510
- color: z.value.style.chart.legend.color,
511
- fontSize: z.value.style.chart.legend.fontSize,
512
- paddingBottom: 12,
513
- fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
514
- }));
515
- function qn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
516
- z.value.events.datapointClick && z.value.events.datapointClick({
517
- datapoint: {
518
- ...e,
519
- plotIndex: t,
520
- seriesIndex: n
521
- },
522
- seriesIndex: n
523
- }), pn("selectDatapoint", e);
524
- }
525
- function Jn(e) {
526
- N.value = e, Yt.value += 1;
527
- }
528
- let Yn = x(null);
529
- function Xn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
530
- z.value.events.datapointLeave && z.value.events.datapointLeave({
531
- datapoint: {
532
- ...e,
533
- plotIndex: t,
534
- seriesIndex: n
535
- },
536
- seriesIndex: n
537
- }), !(un.value === "keyboard" && L.value === n && R.value === t) && (Zt.value = !1, P.value = null);
538
- }
539
- function Zn(e, t) {
540
- if (!H.value) return;
541
- let n = Y.value.find((t) => t.seriesIndex === e);
542
- if (!n) return;
543
- let r = n.plots[t];
544
- if (!r) return;
545
- let i = pe(r.x, r.y, H.value);
546
- i && (ln.value = i);
547
- }
548
- function Qn({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: i = "pointer" }) {
549
- z.value.events.datapointEnter && z.value.events.datapointEnter({
550
- datapoint: {
551
- ...e,
552
- plotIndex: t,
553
- seriesIndex: n
554
- },
555
- seriesIndex: n
556
- }), L.value = n, R.value = t, un.value = i, Yn.value = {
557
- datapoint: e,
558
- seriesIndex: n,
559
- plotIndex: t,
560
- config: z.value,
561
- series: q.value
562
- }, P.value = e;
563
- let a = z.value.style.chart.tooltip.customFormat;
564
- if (F.value = !1, ce(a)) try {
565
- let r = a({
566
- seriesIndex: n,
567
- datapoint: e,
568
- plotIndex: t,
569
- series: q.value,
570
- config: z.value
571
- });
572
- typeof r == "string" && (Qt.value = r, F.value = !0);
573
- } catch {
574
- console.warn("Custom format cannot be applied."), F.value = !1;
575
- }
576
- if (!F.value) {
577
- let t = "";
578
- 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="${e.color}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${z.value.style.chart.axes.x.name.text || "x"}: ${c(z.value.style.chart.axes.x.labels.formatter, e.valueX, r({
579
- p: z.value.style.chart.axes.x.labels.prefix,
580
- v: e.valueX,
581
- s: z.value.style.chart.axes.x.labels.suffix,
582
- r: z.value.style.chart.axes.x.labels.rounding
583
- }))}</div>`, t += `<div>${z.value.style.chart.axes.y.name.text || "y"}: ${c(z.value.style.chart.axes.y.labels.formatter, e.valueY, r({
584
- p: z.value.style.chart.axes.y.labels.prefix,
585
- v: e.valueY,
586
- s: z.value.style.chart.axes.y.labels.suffix,
587
- r: z.value.style.chart.axes.y.labels.rounding
588
- }))}</div>`, Qt.value = `<div>${t}</div>`;
589
- }
590
- Zt.value = !0, i === "keyboard" && Re(() => {
591
- Zn(n, t);
592
- });
593
- }
594
- u(() => ({ head: Y.value.map((e) => ({
595
- name: e.name,
596
- color: e.color
597
- })) }));
598
- let Z = u(() => {
599
- let e = [
600
- z.value.table.columnNames.series,
601
- z.value.table.columnNames.datapoint,
602
- z.value.table.columnNames.x,
603
- z.value.table.columnNames.y
604
- ];
605
- return {
606
- head: e,
607
- body: Y.value.flatMap((e) => e.plots.map((e) => [
608
- {
609
- color: e.color,
610
- name: e.seriesName
611
- },
612
- e.label,
613
- c(z.value.style.chart.axes.x.labels.formatter, e.valueX, r({
614
- p: z.value.style.chart.axes.x.labels.prefix,
615
- v: e.valueX,
616
- s: z.value.style.chart.axes.x.labels.suffix,
617
- r: z.value.style.chart.axes.x.labels.rounding
618
- })),
619
- c(z.value.style.chart.axes.y.labels.formatter, e.valueY, r({
620
- p: z.value.style.chart.axes.y.labels.prefix,
621
- v: e.valueY,
622
- s: z.value.style.chart.axes.y.labels.suffix,
623
- r: z.value.style.chart.axes.y.labels.rounding
624
- }))
625
- ])),
626
- config: {
627
- th: {
628
- backgroundColor: z.value.table.th.backgroundColor,
629
- color: z.value.table.th.color,
630
- outline: z.value.table.th.outline
631
- },
632
- td: {
633
- backgroundColor: z.value.table.td.backgroundColor,
634
- color: z.value.table.td.color,
635
- outline: z.value.table.td.outline
636
- },
637
- breakpoint: z.value.table.responsiveBreakpoint
638
- },
639
- colNames: e
640
- };
641
- });
642
- function $n(e = null) {
643
- Re(() => {
644
- let t = [
645
- [z.value.table.columnNames.series],
646
- [z.value.table.columnNames.datapoint],
647
- [z.value.table.columnNames.x],
648
- [z.value.table.columnNames.y]
649
- ], n = Y.value.flatMap((e) => e.plots.map((e) => [
650
- [e.seriesName],
651
- [e.label],
652
- [e.valueX],
653
- [e.valueY]
654
- ])), r = te([
655
- [z.value.style.chart.title.text],
656
- [z.value.style.chart.title.subtitle.text],
657
- t
658
- ].concat(n));
659
- e ? e(r) : ee({
660
- csvContent: r,
661
- title: z.value.style.chart.title.text || "vue-ui-history-plot"
662
- });
663
- });
664
- }
665
- let Q = x(!1);
666
- function er() {
667
- Q.value = !Q.value;
668
- }
669
- function tr() {
670
- U.value.showTable = !U.value.showTable;
671
- }
672
- function nr() {
673
- U.value.showTooltip = !U.value.showTooltip;
674
- }
675
- function rr() {
676
- return Y.value;
677
- }
678
- async function ir({ scale: e = 2 } = {}) {
679
- if (!O.value) return;
680
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
681
- domElement: O.value,
682
- base64: !0,
683
- img: !0,
684
- scale: e
685
- });
686
- return {
687
- imageUri: i,
688
- base64: a,
689
- title: z.value.style.chart.title.text,
690
- width: t,
691
- height: n,
692
- aspectRatio: r
693
- };
694
- }
695
- xe({
696
- timeLabelsEls: sn,
697
- timeLabels: u(() => J.value.tickX),
698
- slicer: u(() => ({
699
- start: 0,
700
- end: J.value.tickX.length
701
- })),
702
- configRef: z,
703
- rotationPath: [
704
- "style",
705
- "chart",
706
- "axes",
707
- "x",
708
- "labels",
709
- "rotation"
710
- ],
711
- autoRotatePath: [
712
- "style",
713
- "chart",
714
- "axes",
715
- "x",
716
- "labels",
717
- "autoRotate",
718
- "enable"
719
- ],
720
- isAutoSize: !1,
721
- width: kn,
722
- height: An,
723
- targetClass: ".vue-ui-history-plot-x-axis-scale",
724
- rotation: z.value.style.chart.axes.x.labels.autoRotate.angle
725
- });
726
- let $ = u(() => {
727
- let e = z.value.table.useDialog && !z.value.table.show, t = U.value.showTable;
728
- return {
729
- component: e ? Bt : Ft,
730
- title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
731
- props: e ? {
732
- backgroundColor: z.value.table.th.backgroundColor,
733
- color: z.value.table.th.color,
734
- headerColor: z.value.table.th.color,
735
- headerBg: z.value.table.th.backgroundColor,
736
- isFullscreen: N.value,
737
- fullscreenParent: O.value,
738
- forcedWidth: Math.min(800, window.innerWidth * .8)
739
- } : {
740
- hideDetails: !0,
741
- config: {
742
- open: t,
743
- maxHeight: 1e4,
744
- body: {
745
- backgroundColor: z.value.style.chart.backgroundColor,
746
- color: z.value.style.chart.color
747
- },
748
- head: {
749
- backgroundColor: z.value.style.chart.backgroundColor,
750
- color: z.value.style.chart.color
751
- }
752
- }
753
- }
754
- };
755
- });
756
- We(() => U.value.showTable, (e) => {
757
- z.value.table.show || (e && z.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
758
- });
759
- function ar() {
760
- U.value.showTable = !1, tn.value && tn.value.setTableIconState(!1);
761
- }
762
- let or = u(() => z.value.style.chart.backgroundColor), sr = u(() => z.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = ve({
763
- svg: H,
764
- title: u(() => z.value.style.chart.title),
765
- legend: sr,
766
- legendItems: X,
767
- backgroundColor: or
768
- });
769
- async function ur({ isCb: e }) {
770
- rn.value = !0, await Re();
771
- try {
772
- if (e) {
773
- let { blob: e, url: t, text: n, dataUrl: r } = await lr();
774
- await Promise.resolve(z.value.userOptions.callbacks.svg({
775
- blob: e,
776
- url: t,
777
- text: n,
778
- dataUrl: r
779
- }));
780
- } else await Promise.resolve(cr());
781
- } finally {
782
- rn.value = !1;
783
- }
784
- }
785
- function dr(e) {
786
- if (e?.stage === "start") {
787
- nn.value = !0;
788
- return;
789
- }
790
- if (e?.stage === "end") {
791
- nn.value = !1;
792
- return;
793
- }
794
- En();
795
- }
796
- async function fr() {
797
- if (pn("copyAlt", {
798
- config: z.value,
799
- dataset: Y.value
800
- }), !z.value.userOptions.callbacks.altCopy) {
801
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
802
- return;
803
- }
804
- await Promise.resolve(z.value.userOptions.callbacks.altCopy({
805
- config: z.value,
806
- dataset: Y.value
807
- }));
808
- }
809
- let pr = u(() => ({
810
- head: Z.value.head,
811
- body: Z.value.body.map((e) => [
812
- e[0]?.name || "",
813
- e[1],
814
- e[2],
815
- e[3]
816
- ]),
817
- caption: z.value.a11y.translations.tableCaption,
818
- notice: z.value.a11y.translations.tableAvailable
819
- }));
820
- function mr(e) {
821
- return Y.value.findIndex((t) => t.seriesIndex === e);
822
- }
823
- function hr() {
824
- if (L.value !== null && R.value !== null) {
825
- let e = Y.value.find((e) => e.seriesIndex === L.value)?.plots?.[R.value];
826
- e && Xn({
827
- datapoint: e,
828
- plotIndex: R.value,
829
- seriesIndex: L.value
830
- });
831
- }
832
- L.value = null, R.value = null, un.value = "pointer", Zt.value = !1, P.value = null;
833
- }
834
- function gr() {
835
- L.value = null, R.value = null, dn.value = !0;
836
- }
837
- function _r() {
838
- hr(), dn.value = !1;
839
- }
840
- function vr(e, t) {
841
- if (!e?.plots?.length) return null;
842
- let n = e.plots.length;
843
- return (t % n + n) % n;
844
- }
845
- function yr({ seriesIndex: e, plotIndex: t, direction: n }) {
846
- if (!Y.value.length) return null;
847
- let r = mr(e);
848
- if (r === -1) return null;
849
- if (n === "up" || n === "down") {
850
- let e = Y.value[r];
851
- if (!e?.plots?.length) return null;
852
- let i = vr(e, t + (n === "up" ? -1 : 1));
853
- return {
854
- seriesIndex: e.seriesIndex,
855
- plotIndex: i
856
- };
857
- }
858
- if (n === "left" || n === "right") {
859
- let e = ((r + (n === "left" ? -1 : 1)) % Y.value.length + Y.value.length) % Y.value.length, i = Y.value[e];
860
- if (!i?.plots?.length) return null;
861
- let a = Math.min(t, i.plots.length - 1);
862
- return {
863
- seriesIndex: i.seriesIndex,
864
- plotIndex: a
865
- };
866
- }
867
- return null;
868
- }
869
- function br(e) {
870
- if (!H.value || Q.value || document.activeElement !== H.value || !Y.value.length) return;
871
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
872
- if (!t && !n && !r && !i && !a && !ee) return;
873
- if (e.preventDefault(), e.stopPropagation(), ee) {
874
- hr();
875
- return;
876
- }
877
- if (a) {
878
- if (L.value === null || R.value === null) return;
879
- let e = Y.value.find((e) => e.seriesIndex === L.value)?.plots?.[R.value];
880
- if (!e) return;
881
- qn({
882
- datapoint: e,
883
- plotIndex: R.value,
884
- seriesIndex: L.value
885
- });
886
- return;
887
- }
888
- let o = null;
889
- if (L.value === null || R.value === null) {
890
- let e = Y.value[0];
891
- if (!e?.plots?.length) return;
892
- o = {
893
- seriesIndex: e.seriesIndex,
894
- plotIndex: 0
895
- };
896
- } else r ? o = yr({
897
- seriesIndex: L.value,
898
- plotIndex: R.value,
899
- direction: "up"
900
- }) : i ? o = yr({
901
- seriesIndex: L.value,
902
- plotIndex: R.value,
903
- direction: "down"
904
- }) : t ? o = yr({
905
- seriesIndex: L.value,
906
- plotIndex: R.value,
907
- direction: "left"
908
- }) : n && (o = yr({
909
- seriesIndex: L.value,
910
- plotIndex: R.value,
911
- direction: "right"
912
- }));
913
- if (!o) return;
914
- let te = Y.value.find((e) => e.seriesIndex === o.seriesIndex)?.plots?.[o.plotIndex];
915
- te && Qn({
916
- datapoint: te,
917
- plotIndex: o.plotIndex,
918
- seriesIndex: o.seriesIndex,
919
- triggerMode: "keyboard"
920
- });
921
- }
922
- return we({
923
- getData: rr,
924
- getImage: ir,
925
- generatePdf: Tn,
926
- generateCsv: $n,
927
- generateImage: En,
928
- generateSvg: ur,
929
- hideSeries: Gn,
930
- showSeries: Wn,
931
- toggleTable: tr,
932
- toggleTooltip: nr,
933
- toggleAnnotator: er,
934
- toggleFullscreen: Jn,
935
- copyAlt: fr
936
- }), (e, n) => (b(), p("div", {
937
- id: `history_plot_${j.value}`,
938
- ref_key: "historyPlotChart",
939
- ref: O,
940
- class: _({
941
- "vue-data-ui-component": !0,
942
- "vue-ui-history-plot": !0,
943
- "vue-data-ui-wrapper-fullscreen": N.value
944
- }),
945
- style: y(`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%" : ""}`),
946
- onMouseenter: n[2] ||= () => T(xn)(!0),
947
- onMouseleave: n[3] ||= () => T(xn)(!1)
948
- }, [
949
- m("div", {
950
- id: `chart-instructions-${j.value}`,
951
- class: "sr-only"
952
- }, [m("p", null, w(z.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
953
- pr.value.body.length ? (b(), d(Oe, {
954
- key: 0,
955
- uid: j.value,
956
- head: pr.value.head,
957
- body: pr.value.body,
958
- caption: pr.value.caption,
959
- notice: pr.value.notice
960
- }, null, 8, [
961
- "uid",
962
- "head",
963
- "body",
964
- "caption",
965
- "notice"
966
- ])) : f("", !0),
967
- C(e.$slots, "userConfig", {}, void 0, !0),
968
- z.value.userOptions.buttons.annotator ? (b(), d(T(Lt), {
969
- key: 1,
970
- svgRef: T(H),
971
- backgroundColor: z.value.style.chart.backgroundColor,
972
- color: z.value.style.chart.color,
973
- active: Q.value,
974
- isCursorPointer: B.value,
975
- onClose: er
976
- }, {
977
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
978
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
979
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
980
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
981
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
982
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
983
- _: 3
984
- }, 8, [
985
- "svgRef",
986
- "backgroundColor",
987
- "color",
988
- "active",
989
- "isCursorPointer"
990
- ])) : f("", !0),
991
- Dn.value ? (b(), p("div", {
992
- key: 2,
993
- ref_key: "noTitle",
994
- ref: Xt,
995
- class: "vue-data-ui-no-title-space",
996
- style: "height:36px; width: 100%;background:transparent"
997
- }, null, 512)) : f("", !0),
998
- z.value.style.chart.title.text ? (b(), p("div", {
999
- key: 3,
1000
- ref_key: "chartTitle",
1001
- ref: Wt,
1002
- class: "vue-ui-xy-title",
1003
- style: y(`font-family:${z.value.style.fontFamily}`)
1004
- }, [(b(), d(Ce, {
1005
- key: `title_${Gt.value}`,
1006
- config: {
1007
- title: {
1008
- cy: "history-plot-div-title",
1009
- ...z.value.style.chart.title
1010
- },
1011
- subtitle: {
1012
- cy: "history-plot-div-subtitle",
1013
- ...z.value.style.chart.title.subtitle
1014
- }
1015
- }
1016
- }, null, 8, ["config"]))], 4)) : f("", !0),
1017
- m("div", { id: `legend-top-${j.value}` }, null, 8, Ye),
1018
- z.value.userOptions.show && fn.value && (T(Sn) || T(bn)) ? (b(), d(T(Rt), {
1019
- ref_key: "userOptionsRef",
1020
- ref: tn,
1021
- key: `user_option_${Yt.value}`,
1022
- backgroundColor: z.value.style.chart.backgroundColor,
1023
- color: z.value.style.chart.color,
1024
- isPrinting: T(Cn),
1025
- isImaging: T(wn),
1026
- uid: j.value,
1027
- hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1028
- hasPdf: z.value.userOptions.buttons.pdf,
1029
- hasImg: z.value.userOptions.buttons.img,
1030
- hasSvg: z.value.userOptions.buttons.svg,
1031
- hasXls: z.value.userOptions.buttons.csv,
1032
- hasTable: z.value.userOptions.buttons.table,
1033
- hasLabel: !1,
1034
- hasFullscreen: z.value.userOptions.buttons.fullscreen,
1035
- hasAltCopy: z.value.userOptions.buttons.altCopy,
1036
- isFullscreen: N.value,
1037
- chartElement: O.value,
1038
- position: z.value.userOptions.position,
1039
- isTooltip: U.value.showTooltip,
1040
- titles: { ...z.value.userOptions.buttonTitles },
1041
- hasAnnotator: z.value.userOptions.buttons.annotator,
1042
- isAnnotation: Q.value,
1043
- callbacks: z.value.userOptions.callbacks,
1044
- printScale: z.value.userOptions.print.scale,
1045
- tableDialog: z.value.table.useDialog,
1046
- isCursorPointer: B.value,
1047
- onToggleFullscreen: Jn,
1048
- onGeneratePdf: T(Tn),
1049
- onGenerateCsv: $n,
1050
- onGenerateImage: dr,
1051
- onGenerateSvg: ur,
1052
- onToggleTable: tr,
1053
- onToggleTooltip: nr,
1054
- onToggleAnnotator: er,
1055
- onCopyAlt: fr,
1056
- style: y({ visibility: T(Sn) ? T(bn) ? "visible" : "hidden" : "visible" })
1057
- }, Pe({ _: 2 }, [
1058
- e.$slots.menuIcon ? {
1059
- name: "menuIcon",
1060
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
1061
- isOpen: t,
1062
- color: n
1063
- })), void 0, !0)]),
1064
- key: "0"
1065
- } : void 0,
1066
- e.$slots.optionTooltip ? {
1067
- name: "optionTooltip",
1068
- fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1069
- key: "1"
1070
- } : void 0,
1071
- e.$slots.optionPdf ? {
1072
- name: "optionPdf",
1073
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1074
- key: "2"
1075
- } : void 0,
1076
- e.$slots.optionCsv ? {
1077
- name: "optionCsv",
1078
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1079
- key: "3"
1080
- } : void 0,
1081
- e.$slots.optionImg ? {
1082
- name: "optionImg",
1083
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1084
- key: "4"
1085
- } : void 0,
1086
- e.$slots.optionSvg ? {
1087
- name: "optionSvg",
1088
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1089
- key: "5"
1090
- } : void 0,
1091
- e.$slots.optionTable ? {
1092
- name: "optionTable",
1093
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1094
- key: "6"
1095
- } : void 0,
1096
- e.$slots.optionFullscreen ? {
1097
- name: "optionFullscreen",
1098
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
1099
- toggleFullscreen: t,
1100
- isFullscreen: n
1101
- })), void 0, !0)]),
1102
- key: "7"
1103
- } : void 0,
1104
- e.$slots.optionAnnotator ? {
1105
- name: "optionAnnotator",
1106
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
1107
- toggleAnnotator: t,
1108
- isAnnotator: n
1109
- })), void 0, !0)]),
1110
- key: "8"
1111
- } : void 0,
1112
- e.$slots.optionAltCopy ? {
1113
- name: "optionAltCopy",
1114
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
1115
- key: "9"
1116
- } : void 0,
1117
- e.$slots["custom-menu-before"] ? {
1118
- name: "custom-menu-before",
1119
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1120
- key: "10"
1121
- } : void 0,
1122
- e.$slots["custom-menu-after"] ? {
1123
- name: "custom-menu-after",
1124
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1125
- key: "11"
1126
- } : void 0
1127
- ]), 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("."))) : f("", !0),
1128
- m("div", Xe, [(b(), p("svg", {
1129
- ref_key: "svgRef",
1130
- ref: H,
1131
- xmlns: T(ue),
1132
- viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
1133
- style: y(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1134
- "aria-describedby": `chart-instructions-${j.value}`,
1135
- tabindex: "0",
1136
- onFocus: gr,
1137
- onBlur: _r,
1138
- onKeydown: br
1139
- }, [
1140
- Ie(T(zt)),
1141
- e.$slots["chart-background"] ? (b(), p("foreignObject", {
1142
- key: 0,
1143
- x: G.value.left,
1144
- y: G.value.top,
1145
- width: G.value.width <= 0 ? 10 : G.value.width,
1146
- height: G.value.height <= 0 ? 10 : G.value.height,
1147
- style: { pointerEvents: "none" }
1148
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : f("", !0),
1149
- z.value.style.chart.plots.gradient.show ? (b(), p("defs", $e, [(b(!0), p(l, null, S(Y.value, (e, t) => (b(), p("radialGradient", {
1150
- id: `gradient_${t}_${j.value}`,
1151
- fy: "30%"
1152
- }, [
1153
- m("stop", {
1154
- offset: "10%",
1155
- "stop-color": T(ne)(e.color, z.value.style.chart.plots.gradient.intensity / 100)
1156
- }, null, 8, tt),
1157
- m("stop", {
1158
- offset: "90%",
1159
- "stop-color": T(ie)(e.color, .1)
1160
- }, null, 8, nt),
1161
- m("stop", {
1162
- offset: "100%",
1163
- "stop-color": e.color
1164
- }, null, 8, rt)
1165
- ], 8, et))), 256))])) : f("", !0),
1166
- z.value.style.chart.grid.verticalLines.show ? (b(), p("g", it, [(b(!0), p(l, null, S(J.value.tickX, (e) => (b(), p("line", {
1167
- x1: e.x,
1168
- x2: e.x,
1169
- y1: e.y1,
1170
- y2: e.y2,
1171
- stroke: z.value.style.chart.grid.verticalLines.stroke,
1172
- "stroke-width": z.value.style.chart.grid.verticalLines.strokeWidth,
1173
- "stroke-linecap": "round"
1174
- }, null, 8, at))), 256))])) : f("", !0),
1175
- z.value.style.chart.axes.y.labels.show ? (b(), p("g", ot, [(b(!0), p(l, null, S(J.value.tickY, (e) => (b(), p("line", {
1176
- stroke: z.value.style.chart.grid.verticalLines.stroke,
1177
- "stroke-width": z.value.style.chart.grid.verticalLines.strokeWidth,
1178
- "stroke-linecap": "round",
1179
- x1: G.value.left - 5,
1180
- x2: G.value.left,
1181
- y1: e.y,
1182
- y2: e.y
1183
- }, null, 8, st))), 256))])) : f("", !0),
1184
- z.value.style.chart.axes.y.labels.show ? (b(), p("g", {
1185
- key: 4,
1186
- ref_key: "yAxisScales",
1187
- ref: cn
1188
- }, [(b(!0), p(l, null, S(J.value.tickY, (e) => (b(), p("text", {
1189
- x: G.value.left + z.value.style.chart.axes.y.labels.offsetX - 4 - z.value.style.chart.plots.radius,
1190
- y: e.y + K.value.yAxisLabels / 3,
1191
- fill: z.value.style.chart.axes.y.labels.color,
1192
- "font-size": K.value.yAxisLabels,
1193
- "text-anchor": "end"
1194
- }, w(T(c)(z.value.style.chart.axes.y.labels.formatter, e.value, T(r)({
1195
- p: z.value.style.chart.axes.y.labels.prefix,
1196
- v: e.value,
1197
- s: z.value.style.chart.axes.y.labels.suffix,
1198
- r: z.value.style.chart.axes.y.labels.rounding
1199
- }))), 9, ct))), 256))], 512)) : f("", !0),
1200
- z.value.style.chart.axes.y.name.text ? (b(), p("text", {
1201
- key: 5,
1202
- ref_key: "yAxisLabel",
1203
- ref: on,
1204
- transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + z.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1205
- "font-size": K.value.yAxisName,
1206
- fill: z.value.style.chart.axes.y.name.color,
1207
- "font-weight": z.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1208
- "text-anchor": "middle"
1209
- }, w(z.value.style.chart.axes.y.name.text), 9, lt)) : f("", !0),
1210
- z.value.style.chart.grid.horizontalLines.show ? (b(), p("g", ut, [(b(!0), p(l, null, S(J.value.tickY, (e) => (b(), p("line", {
1211
- x1: e.x1,
1212
- x2: e.x2,
1213
- y1: e.y,
1214
- y2: e.y,
1215
- stroke: z.value.style.chart.grid.horizontalLines.stroke,
1216
- "stroke-width": z.value.style.chart.grid.horizontalLines.strokeWidth,
1217
- "stroke-linecap": "round"
1218
- }, null, 8, dt))), 256))])) : f("", !0),
1219
- z.value.style.chart.axes.x.labels.show ? (b(), p("g", ft, [(b(!0), p(l, null, S(J.value.tickX, (e) => (b(), p("line", {
1220
- stroke: z.value.style.chart.grid.verticalLines.stroke,
1221
- "stroke-width": z.value.style.chart.grid.verticalLines.strokeWidth,
1222
- "stroke-linecap": "round",
1223
- x1: e.x,
1224
- x2: e.x,
1225
- y1: G.value.bottom,
1226
- y2: G.value.bottom + 5
1227
- }, null, 8, pt))), 256))])) : f("", !0),
1228
- z.value.style.chart.axes.x.labels.show ? (b(), p("g", {
1229
- key: 8,
1230
- ref_key: "xAxisScales",
1231
- ref: sn
1232
- }, [(b(!0), p(l, null, S(J.value.tickX, (e) => (b(), p("text", {
1233
- class: "vue-ui-history-plot-x-axis-scale",
1234
- 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})`,
1235
- fill: z.value.style.chart.axes.x.labels.color,
1236
- "font-size": K.value.xAxisLabels,
1237
- "text-anchor": z.value.style.chart.axes.x.labels.rotation > 0 ? "start" : z.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1238
- }, w(T(c)(z.value.style.chart.axes.x.labels.formatter, e.value, T(r)({
1239
- p: z.value.style.chart.axes.x.labels.prefix,
1240
- v: e.value,
1241
- s: z.value.style.chart.axes.x.labels.suffix,
1242
- r: z.value.style.chart.axes.x.labels.rounding
1243
- }))), 9, mt))), 256))], 512)) : f("", !0),
1244
- z.value.style.chart.axes.x.name.text ? (b(), p("text", {
1245
- key: 9,
1246
- ref_key: "xAxisLabel",
1247
- ref: an,
1248
- x: W.value.width / 2 + z.value.style.chart.axes.x.name.offsetX,
1249
- y: W.value.height,
1250
- "font-size": K.value.xAxisName,
1251
- fill: z.value.style.chart.axes.x.name.color,
1252
- "font-weight": z.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1253
- "text-anchor": "middle"
1254
- }, w(z.value.style.chart.axes.x.name.text), 9, ht)) : f("", !0),
1255
- z.value.style.chart.grid.xAxis.show ? (b(), p("line", {
1256
- key: 10,
1257
- x1: G.value.left,
1258
- x2: G.value.left + G.value.width,
1259
- y1: G.value.bottom,
1260
- y2: G.value.bottom,
1261
- stroke: z.value.style.chart.grid.xAxis.stroke,
1262
- "stroke-width": z.value.style.chart.grid.xAxis.strokeWidth,
1263
- "stroke-linecap": "round"
1264
- }, null, 8, gt)) : f("", !0),
1265
- z.value.style.chart.grid.yAxis.show ? (b(), p("line", {
1266
- key: 11,
1267
- x1: G.value.left,
1268
- x2: G.value.left,
1269
- y1: G.value.top,
1270
- y2: G.value.bottom,
1271
- stroke: z.value.style.chart.grid.yAxis.stroke,
1272
- "stroke-width": z.value.style.chart.grid.yAxis.strokeWidth,
1273
- "stroke-linecap": "round"
1274
- }, null, 8, _t)) : f("", !0),
1275
- (b(!0), p(l, null, S(Y.value, (e, n) => (b(), p("g", null, [
1276
- z.value.style.chart.paths.show ? (b(), p("g", {
1277
- key: 0,
1278
- style: y({ opacity: P.value === null ? 1 : .3 })
1279
- }, [m("path", {
1280
- d: e.path,
1281
- stroke: z.value.style.chart.backgroundColor,
1282
- "stroke-width": z.value.style.chart.paths.strokeWidth + 4,
1283
- fill: "none",
1284
- "stroke-linecap": "round",
1285
- "stroke-linejoin": "round",
1286
- class: _({ animated: z.value.useCssAnimation && !T(V) })
1287
- }, null, 10, vt), m("path", {
1288
- d: e.path,
1289
- stroke: z.value.style.chart.paths.useSerieColor ? e.color : z.value.style.chart.paths.stroke,
1290
- "stroke-width": z.value.style.chart.paths.strokeWidth,
1291
- fill: "none",
1292
- "stroke-linecap": "round",
1293
- "stroke-linejoin": "round",
1294
- class: _({ animated: z.value.useCssAnimation && !T(V) })
1295
- }, null, 10, yt)], 4)) : f("", !0),
1296
- (b(!0), p(l, null, S(e.plots, (e) => (b(), p("circle", {
1297
- cx: e.x,
1298
- cy: e.y,
1299
- fill: z.value.style.chart.backgroundColor,
1300
- r: K.value.plots,
1301
- stroke: "none"
1302
- }, null, 8, bt))), 256)),
1303
- (b(!0), p(l, null, S(e.plots, (e) => (b(), p("circle", {
1304
- cx: e.x,
1305
- cy: e.y,
1306
- fill: z.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${j.value})` : e.color,
1307
- r: K.value.plots,
1308
- stroke: z.value.style.chart.plots.stroke,
1309
- "stroke-width": z.value.style.chart.plots.strokeWidth,
1310
- class: _({ animated: z.value.useCssAnimation && !T(V) }),
1311
- style: y({
1312
- opacity: P.value === null || P.value.id === e.id ? 1 : .3,
1313
- transition: "opacity 0.2s ease-in-out"
1314
- })
1315
- }, null, 14, xt))), 256)),
1316
- z.value.style.chart.plots.labels.show ? (b(), p("g", St, [(b(!0), p(l, null, S(e.plots, (e) => (b(), p("g", null, [String(e.label).includes("\n") ? (b(), p("text", {
1317
- key: 1,
1318
- x: e.x + z.value.style.chart.plots.labels.offsetX,
1319
- y: e.y + z.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
1320
- "font-size": K.value.labels,
1321
- fill: z.value.style.chart.plots.labels.color,
1322
- "font-weight": z.value.style.chart.plots.labels.bold ? "bold" : "normal",
1323
- "text-anchor": "middle",
1324
- class: _({ animated: z.value.useCssAnimation && !T(V) }),
1325
- style: y({
1326
- opacity: P.value === null || P.value.id === e.id ? 1 : .3,
1327
- transition: "opacity 0.2s ease-in-out"
1328
- }),
1329
- innerHTML: T(t)({
1330
- content: String(e.label),
1331
- fontSize: K.value.labels,
1332
- fill: z.value.style.chart.plots.labels.color,
1333
- x: e.x + z.value.style.chart.plots.labels.offsetX,
1334
- y: e.y + z.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
1335
- })
1336
- }, null, 14, wt)) : (b(), p("text", {
1337
- key: 0,
1338
- x: e.x + z.value.style.chart.plots.labels.offsetX,
1339
- y: e.y + z.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
1340
- "font-size": K.value.labels,
1341
- fill: z.value.style.chart.plots.labels.color,
1342
- "font-weight": z.value.style.chart.plots.labels.bold ? "bold" : "normal",
1343
- "text-anchor": "middle",
1344
- class: _({ animated: z.value.useCssAnimation && !T(V) }),
1345
- style: y({
1346
- opacity: P.value === null || P.value.id === e.id ? 1 : .3,
1347
- transition: "opacity 0.2s ease-in-out"
1348
- })
1349
- }, w(e.label), 15, Ct))]))), 256))])) : f("", !0),
1350
- z.value.style.chart.plots.indexLabels.show ? (b(), p("g", Tt, [(b(!0), p(l, null, S(e.plots, (t, n) => (b(), p("text", {
1351
- x: t.x + z.value.style.chart.plots.indexLabels.offsetX,
1352
- y: t.y + z.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
1353
- "font-size": K.value.indexLabels,
1354
- "font-weight": z.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1355
- fill: z.value.style.chart.plots.indexLabels.adaptColorToBackground ? T(le)(e.color) : z.value.style.chart.plots.indexLabels.color,
1356
- "text-anchor": "middle",
1357
- class: _({ animated: z.value.useCssAnimation && !T(V) }),
1358
- style: y({
1359
- opacity: P.value === null || P.value.id === t.id ? 1 : .3,
1360
- transition: "opacity 0.2s ease-in-out"
1361
- })
1362
- }, w(z.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Et))), 256))])) : f("", !0)
1363
- ]))), 256)),
1364
- (b(!0), p(l, null, S(Y.value, (e) => (b(), p("g", null, [(b(!0), p(l, null, S(e.plots, (t, n) => (b(), p("circle", {
1365
- cx: t.x,
1366
- cy: t.y,
1367
- fill: "transparent",
1368
- r: K.value.plots,
1369
- stroke: "none",
1370
- onMouseenter: (r) => Qn({
1371
- datapoint: t,
1372
- plotIndex: n,
1373
- seriesIndex: e.seriesIndex,
1374
- triggerMode: "pointer"
1375
- }),
1376
- onMouseleave: (r) => Xn({
1377
- datapoint: t,
1378
- plotIndex: n,
1379
- seriesIndex: e.seriesIndex
1380
- }),
1381
- onClick: (r) => qn({
1382
- datapoint: t,
1383
- plotIndex: n,
1384
- seriesIndex: e.seriesIndex
1385
- })
1386
- }, null, 40, Dt))), 256))]))), 256)),
1387
- C(e.$slots, "svg", { svg: {
1388
- ...W.value,
1389
- drawingArea: G.value,
1390
- isPrintingImg: T(Cn) || T(wn) || nn.value,
1391
- isPrintingSvg: rn.value
1392
- } }, void 0, !0)
1393
- ], 44, Ze)), e.$slots.hint ? (b(), p("div", Ot, [C(e.$slots, "hint", v(g({
1394
- hint: z.value.a11y.translations.keyboardNavigation,
1395
- isVisible: dn.value
1396
- })), void 0, !0)])) : f("", !0)]),
1397
- e.$slots.watermark ? (b(), p("div", kt, [C(e.$slots, "watermark", v(g({ isPrinting: T(Cn) || T(wn) || nn.value || rn.value })), void 0, !0)])) : f("", !0),
1398
- m("div", { id: `legend-bottom-${j.value}` }, null, 8, At),
1399
- en.value && (z.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Ne, {
1400
- key: 6,
1401
- to: z.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1402
- }, [m("div", {
1403
- ref_key: "chartLegend",
1404
- ref: Kt
1405
- }, [C(e.$slots, "legend", { legend: X.value }, () => [z.value.style.chart.legend.show && fn.value ? (b(), d(je, {
1406
- key: `legend_${qt.value}`,
1407
- legendSet: X.value,
1408
- config: Kn.value,
1409
- isCursorPointer: B.value,
1410
- onClickMarker: n[0] ||= ({ legend: e }) => {
1411
- Hn(e.seriesIndex);
1412
- }
1413
- }, {
1414
- item: E(({ legend: e, index: t }) => [m("div", {
1415
- onClick: (t) => e.segregate(),
1416
- style: y(`opacity:${M.value.includes(e.seriesIndex) ? .5 : 1}`)
1417
- }, w(e.name), 13, jt)]),
1418
- legendToggle: E(() => [X.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !T(V) ? (b(), d(De, {
1419
- key: 0,
1420
- backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
1421
- color: z.value.style.chart.legend.selectAllToggle.color,
1422
- fontSize: z.value.style.chart.legend.fontSize,
1423
- checked: M.value.length > 0,
1424
- isCursorPointer: B.value,
1425
- onToggle: Vn
1426
- }, null, 8, [
1427
- "backgroundColor",
1428
- "color",
1429
- "fontSize",
1430
- "checked",
1431
- "isCursorPointer"
1432
- ])) : f("", !0)]),
1433
- _: 1
1434
- }, 8, [
1435
- "legendSet",
1436
- "config",
1437
- "isCursorPointer"
1438
- ])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
1439
- e.$slots.source ? (b(), p("div", {
1440
- key: 7,
1441
- ref_key: "source",
1442
- ref: $t,
1443
- dir: "auto"
1444
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1445
- Ie(T(Nt), {
1446
- teleportTo: z.value.style.chart.tooltip.teleportTo,
1447
- show: U.value.showTooltip && Zt.value,
1448
- backgroundColor: z.value.style.chart.tooltip.backgroundColor,
1449
- color: z.value.style.chart.tooltip.color,
1450
- fontSize: z.value.style.chart.tooltip.fontSize,
1451
- borderRadius: z.value.style.chart.tooltip.borderRadius,
1452
- borderColor: z.value.style.chart.tooltip.borderColor,
1453
- borderWidth: z.value.style.chart.tooltip.borderWidth,
1454
- backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
1455
- position: z.value.style.chart.tooltip.position,
1456
- offsetX: z.value.style.chart.tooltip.offsetX,
1457
- offsetY: z.value.style.chart.tooltip.offsetY,
1458
- parent: O.value,
1459
- content: Qt.value,
1460
- isCustom: F.value,
1461
- isFullscreen: N.value,
1462
- smooth: z.value.style.chart.tooltip.smooth,
1463
- backdropFilter: z.value.style.chart.tooltip.backdropFilter,
1464
- smoothForce: z.value.style.chart.tooltip.smoothForce,
1465
- smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
1466
- isA11yMode: un.value === "keyboard",
1467
- a11yPosition: ln.value
1468
- }, {
1469
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...Yn.value })), void 0, !0)]),
1470
- tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...Yn.value })), void 0, !0)]),
1471
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...Yn.value })), void 0, !0)]),
1472
- _: 3
1473
- }, 8, [
1474
- "teleportTo",
1475
- "show",
1476
- "backgroundColor",
1477
- "color",
1478
- "fontSize",
1479
- "borderRadius",
1480
- "borderColor",
1481
- "borderWidth",
1482
- "backgroundOpacity",
1483
- "position",
1484
- "offsetX",
1485
- "offsetY",
1486
- "parent",
1487
- "content",
1488
- "isCustom",
1489
- "isFullscreen",
1490
- "smooth",
1491
- "backdropFilter",
1492
- "smoothForce",
1493
- "smoothSnapThreshold",
1494
- "isA11yMode",
1495
- "a11yPosition"
1496
- ]),
1497
- fn.value && z.value.userOptions.buttons.table ? (b(), d(Ve($.value.component), Le({ key: 8 }, $.value.props, {
1498
- ref_key: "tableUnit",
1499
- ref: I,
1500
- onClose: ar
1501
- }), Pe({
1502
- content: E(() => [(b(), d(T(It), {
1503
- key: `table_${Jt.value}`,
1504
- colNames: Z.value.colNames,
1505
- head: Z.value.head,
1506
- body: Z.value.body,
1507
- config: Z.value.config,
1508
- title: z.value.table.useDialog ? "" : $.value.title,
1509
- withCloseButton: !z.value.table.useDialog,
1510
- isCursorPointer: B.value,
1511
- onClose: ar
1512
- }, {
1513
- th: E(({ th: e }) => [m("div", {
1514
- innerHTML: e,
1515
- style: {
1516
- display: "flex",
1517
- "align-items": "center"
1518
- }
1519
- }, null, 8, Mt)]),
1520
- td: E(({ td: e }) => [Fe(w(e.name || e), 1)]),
1521
- _: 1
1522
- }, 8, [
1523
- "colNames",
1524
- "head",
1525
- "body",
1526
- "config",
1527
- "title",
1528
- "withCloseButton",
1529
- "isCursorPointer"
1530
- ]))]),
1531
- _: 2
1532
- }, [z.value.table.useDialog ? {
1533
- name: "title",
1534
- fn: E(() => [Fe(w($.value.title), 1)]),
1535
- key: "0"
1536
- } : void 0, z.value.table.useDialog ? {
1537
- name: "actions",
1538
- fn: E(() => [m("button", {
1539
- tabindex: "0",
1540
- class: "vue-ui-user-options-button",
1541
- onClick: n[1] ||= (e) => $n(z.value.userOptions.callbacks.csv),
1542
- style: y({ cursor: B.value ? "pointer" : "default" })
1543
- }, [Ie(T(Pt), {
1544
- name: "fileCsv",
1545
- stroke: $.value.props.color
1546
- }, null, 8, ["stroke"])], 4)]),
1547
- key: "1"
1548
- } : void 0]), 1040)) : f("", !0),
1549
- C(e.$slots, "skeleton", {}, () => [T(V) ? (b(), d(_e, { key: 0 })) : f("", !0)], !0)
1550
- ], 46, qe));
1551
- }
1552
- }, [["__scopeId", "data-v-4e9a3690"]]);
1553
- //#endregion
1554
- export { Ke as n, Nt as t };