vue-data-ui 3.22.3 → 3.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/{Arrow-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
  11. package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.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-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
  93. package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
  94. package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.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 +59 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
  111. package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
  113. package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
  115. package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
  116. package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
  118. package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
  119. package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
  121. package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
  122. package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
  123. package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
  124. package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
  125. package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
  126. package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
  129. package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
  130. package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
  131. package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
  132. package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
  133. package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
  134. package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
  135. package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
  136. package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
  137. package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
  138. package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
  143. package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
  145. package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
  147. package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
  148. package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
  150. package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
  151. package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
  152. package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
  153. package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
  154. package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
  159. package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
  161. package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
  162. package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
  163. package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
  164. package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
  167. package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
  168. package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
  170. package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
  171. package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
  172. package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
  174. package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
  175. package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
  176. package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
  177. package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend--t7Mbp9Z.js +0 -115
  181. package/dist/Slicer-CpBaahpI.js +0 -1144
  182. package/dist/exposedLib-BkRxoSB9.js +0 -19
  183. package/dist/img-CyjhDDaM.js +0 -74
  184. package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
  185. package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
  186. package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
  187. package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
  188. package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
  189. package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
  190. package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
  191. package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
  192. package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
  194. package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
  195. package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
  196. package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
  197. package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
  199. package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
  200. package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
  201. package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
  202. package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
@@ -1,1554 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, Bt as n, Ct as r, Et as i, G as a, H as ee, Ht as o, J as te, S as ne, Ut as re, Vt as ie, W as ae, X as oe, ct as se, gt as ce, h as le, i as s, kt as ue, r as de, t as fe, x as pe, y as me } from "./lib-NmjQazSn.js";
3
- import { t as he } from "./useConfig-Bf_EBbe3.js";
4
- import { t as ge } from "./usePrinter-DRYgV-XS.js";
5
- import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ye } from "./useSvgExport-SVIsDot8.js";
7
- import { t as be } from "./useNestedProp-C9viY7oU.js";
8
- import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
- import { t as Ce } from "./img-CyjhDDaM.js";
11
- import { n as we } from "./Title-Cxgd_JyY.js";
12
- import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as Ee } from "./canvas-lib-BOP_HS11.js";
14
- import { t as De } from "./useResponsive-BfnK0KxU.js";
15
- import { t as Oe } from "./BaseLegendToggle-qL0O9ooF.js";
16
- import { t as ke } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as je } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Me } from "./Legend--t7Mbp9Z.js";
20
- import { t as Ne } from "./vue_ui_history_plot-CuN63VEc.js";
21
- import { Fragment as c, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Be, onMounted as Ve, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as C, toRefs as We, unref as w, watch as Ge, watchEffect as Ke, withCtx as T } from "vue";
22
- //#region src/components/vue-ui-history-plot.vue
23
- var qe = /* @__PURE__ */ e({ default: () => Pt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
24
- "xmlns",
25
- "viewBox",
26
- "aria-describedby"
27
- ], $e = [
28
- "x",
29
- "y",
30
- "width",
31
- "height"
32
- ], et = { key: 1 }, tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = { key: 2 }, ot = [
33
- "x1",
34
- "x2",
35
- "y1",
36
- "y2",
37
- "stroke",
38
- "stroke-width"
39
- ], st = { key: 3 }, ct = [
40
- "stroke",
41
- "stroke-width",
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2"
46
- ], lt = [
47
- "x",
48
- "y",
49
- "fill",
50
- "font-size"
51
- ], ut = [
52
- "transform",
53
- "font-size",
54
- "fill",
55
- "font-weight"
56
- ], dt = { key: 6 }, ft = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], pt = { key: 7 }, mt = [
64
- "stroke",
65
- "stroke-width",
66
- "x1",
67
- "x2",
68
- "y1",
69
- "y2"
70
- ], ht = [
71
- "transform",
72
- "fill",
73
- "font-size",
74
- "text-anchor"
75
- ], gt = [
76
- "x",
77
- "y",
78
- "font-size",
79
- "fill",
80
- "font-weight"
81
- ], _t = [
82
- "x1",
83
- "x2",
84
- "y1",
85
- "y2",
86
- "stroke",
87
- "stroke-width"
88
- ], vt = [
89
- "x1",
90
- "x2",
91
- "y1",
92
- "y2",
93
- "stroke",
94
- "stroke-width"
95
- ], yt = [
96
- "d",
97
- "stroke",
98
- "stroke-width"
99
- ], bt = [
100
- "d",
101
- "stroke",
102
- "stroke-width"
103
- ], xt = [
104
- "cx",
105
- "cy",
106
- "fill",
107
- "r"
108
- ], St = [
109
- "cx",
110
- "cy",
111
- "fill",
112
- "r",
113
- "stroke",
114
- "stroke-width"
115
- ], Ct = { key: 1 }, wt = [
116
- "x",
117
- "y",
118
- "font-size",
119
- "fill",
120
- "font-weight"
121
- ], Tt = [
122
- "x",
123
- "y",
124
- "font-size",
125
- "fill",
126
- "font-weight",
127
- "innerHTML"
128
- ], Et = { key: 2 }, Dt = [
129
- "x",
130
- "y",
131
- "font-size",
132
- "font-weight",
133
- "fill"
134
- ], Ot = [
135
- "cx",
136
- "cy",
137
- "r",
138
- "onMouseenter",
139
- "onMouseleave",
140
- "onClick"
141
- ], kt = {
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
- }, At = {
152
- key: 5,
153
- class: "vue-data-ui-watermark"
154
- }, jt = ["id"], Mt = ["onClick"], Nt = ["innerHTML"], Pt = /*#__PURE__*/ Te({
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: Te, emit: qe }) {
176
- let Pt = m(() => import("./Tooltip-BqdN_ZBE.js")), Ft = m(() => import("./BaseIcon-CX_ChMz-.js").then((e) => e.n)), It = m(() => import("./vue-ui-accordion-vYLqcJJd.js").then((e) => e.n)), Lt = m(() => import("./DataTable-KEMekOVu.js")), Rt = m(() => import("./PenAndPaper-DkZYRnrW.js").then((e) => e.t)), zt = m(() => import("./UserOptions-WIxTs7Xf.js").then((e) => e.n)), Bt = m(() => import("./PackageVersion-D-_GVhxY.js").then((e) => e.t)), Vt = m(() => import("./BaseDraggableDialog-DLuXvUbs.js").then((e) => e.n)), { vue_ui_history_plot: Ht } = he(), { isThemeValid: Ut, warnInvalidTheme: Wt } = xe(), E = e, D = b(null), Gt = b(null), Kt = b(0), qt = b(null), Jt = b(0), Yt = b(0), Xt = b(0), O = Ue(null), k = Ue(null), Zt = b(null), A = b(ee()), Qt = b(!1), $t = b(""), j = b([]), M = b(!1), N = b(null), P = b(!1), en = b(null), tn = b(!1), F = b(null), nn = b(null), rn = b(!1), an = b(!1), on = b(null), sn = b(null), cn = b(null), ln = b(null), I = b(null), L = b(null), un = b({
177
- x: 0,
178
- y: 0
179
- }), dn = b("pointer"), fn = b(!1), pn = l({
180
- get: () => !!E.dataset && E.dataset.length,
181
- set: (e) => e
182
- }), mn = qe;
183
- Ve(() => {
184
- tn.value = !0, gn();
185
- });
186
- let hn = l(() => !!R.value.debug);
187
- function gn() {
188
- if (i(E.dataset) ? (oe({
189
- componentName: "VueUiHistoryPlot",
190
- type: "dataset",
191
- debug: hn.value
192
- }), bn.value = !0) : E.dataset.forEach((e, t) => {
193
- se({
194
- datasetObject: e,
195
- requiredAttributes: ["name", "values"]
196
- }).forEach((e) => {
197
- pn.value = !1, oe({
198
- componentName: "VueUiHistoryPlot",
199
- type: "datasetSerieAttribute",
200
- property: e,
201
- index: t,
202
- debug: hn.value
203
- });
204
- });
205
- }), i(E.dataset) || (bn.value = R.value.loading), R.value.responsive) {
206
- let e = Ee(() => {
207
- let { width: e, height: t } = De({
208
- chart: D.value,
209
- title: R.value.style.chart.title.text ? Gt.value : null,
210
- noTitle: Zt.value,
211
- legend: R.value.style.chart.legend.show ? qt.value : null,
212
- source: en.value
213
- });
214
- requestAnimationFrame(() => {
215
- U.value.width = e, U.value.height = t, R.value.responsiveProportionalSizing ? (G.value.plots = o({
216
- relator: Math.min(e, t),
217
- adjuster: 600,
218
- source: R.value.style.chart.plots.radius,
219
- threshold: 3,
220
- fallback: 3
221
- }), G.value.indexLabels = o({
222
- relator: Math.min(e, t),
223
- adjuster: 600,
224
- source: R.value.style.chart.plots.indexLabels.fontSize,
225
- threshold: 6,
226
- fallback: 6
227
- }), G.value.labels = o({
228
- relator: Math.min(e, t),
229
- adjuster: 600,
230
- source: R.value.style.chart.plots.labels.fontSize,
231
- threshold: 6,
232
- fallback: 6
233
- }), G.value.xAxisLabels = o({
234
- relator: Math.min(e, t),
235
- adjuster: 600,
236
- source: R.value.style.chart.axes.x.labels.fontSize,
237
- threshold: 6,
238
- fallback: 6
239
- }), G.value.xAxisName = o({
240
- relator: Math.min(e, t),
241
- adjuster: 600,
242
- source: R.value.style.chart.axes.x.name.fontSize,
243
- threshold: 6,
244
- fallback: 6
245
- }), G.value.yAxisLabels = o({
246
- relator: Math.min(e, t),
247
- adjuster: 600,
248
- source: R.value.style.chart.axes.y.labels.fontSize,
249
- threshold: 6,
250
- fallback: 6
251
- }), G.value.yAxisName = o({
252
- relator: Math.min(e, t),
253
- adjuster: 600,
254
- source: R.value.style.chart.axes.y.name.fontSize,
255
- threshold: 6,
256
- fallback: 6
257
- })) : (G.value.plots = R.value.style.chart.plots.radius, G.value.indexLabels = R.value.style.chart.plots.indexLabels.fontSize, G.value.labels = R.value.style.chart.plots.labels.fontSize, G.value.xAxisLabels = R.value.style.chart.axes.x.labels.fontSize, G.value.xAxisName = R.value.style.chart.axes.x.name.fontSize, G.value.yAxisLabels = R.value.style.chart.axes.y.labels.fontSize, G.value.yAxisName = R.value.style.chart.axes.y.name.fontSize);
258
- });
259
- });
260
- O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value.parentNode, O.value.observe(k.value);
261
- }
262
- }
263
- Be(() => {
264
- O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect());
265
- });
266
- function _n() {
267
- let e = be({
268
- userConfig: E.config,
269
- defaultConfig: Ht
270
- }), t = {}, n = e.theme;
271
- if (n) if (!Ut.value(e)) Wt(e), t = e;
272
- else {
273
- let r = be({
274
- userConfig: Ne[n] || E.config,
275
- defaultConfig: e
276
- });
277
- t = {
278
- ...be({
279
- userConfig: E.config,
280
- defaultConfig: r
281
- }),
282
- customPalette: e.customPalette.length ? e.customPalette : ie[n] || ue
283
- };
284
- }
285
- else t = e;
286
- return t;
287
- }
288
- let R = b(_n()), z = l(() => R.value.userOptions.useCursorPointer), vn = l(() => re({
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: R.value.skeletonConfig ?? {}
327
- })), { loading: B, FINAL_DATASET: yn, manualLoading: bn } = _e({
328
- ...We(E),
329
- FINAL_CONFIG: R,
330
- prepareConfig: _n,
331
- skeletonDataset: E.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: re({
358
- defaultConfig: R.value,
359
- userConfig: vn.value
360
- })
361
- }), { userOptionsVisible: xn, setUserOptionsVisibility: Sn, keepUserOptionState: Cn } = Ae({ config: R.value }), { svgRef: V } = je({ config: R.value.style.chart.title });
362
- Ge(() => E.config, (e) => {
363
- B.value || (R.value = _n()), xn.value = !R.value.userOptions.showOnChartHover, gn(), Kt.value += 1, Yt.value += 1, Jt.value += 1, U.value.height = R.value.style.chart.height, U.value.width = R.value.style.chart.width, G.value.plots = R.value.style.chart.plots.radius, G.value.indexLabels = R.value.style.chart.plots.indexLabels.fontSize, G.value.labels = R.value.style.chart.plots.labels.fontSize, G.value.xAxisLabels = R.value.style.chart.axes.x.labels.fontSize, G.value.xAxisName = R.value.style.chart.axes.x.name.fontSize, G.value.yAxisLabels = R.value.style.chart.axes.y.labels.fontSize, G.value.yAxisName = R.value.style.chart.axes.y.name.fontSize, H.value.showTable = R.value.table.show, H.value.showTooltip = R.value.style.chart.tooltip.show;
364
- }, { deep: !0 }), Ge(() => E.dataset, (e) => {
365
- Array.isArray(e) && e.length > 0 && (bn.value = !1);
366
- }, { deep: !0 });
367
- let { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = ge({
368
- elementId: `history_plot_${A.value}`,
369
- fileName: R.value.style.chart.title.text || "vue-ui-history-plot",
370
- options: R.value.userOptions.print
371
- }), On = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), kn = l(() => pe(R.value.customPalette)), H = b({
372
- showTable: R.value.table.show,
373
- showTooltip: R.value.style.chart.tooltip.show
374
- });
375
- Ge(R, () => {
376
- H.value = {
377
- showTable: R.value.table.show,
378
- showTooltip: R.value.style.chart.tooltip.show
379
- };
380
- }, { immediate: !0 });
381
- let U = b({
382
- height: R.value.style.chart.height,
383
- width: R.value.style.chart.width
384
- }), An = l(() => U.value.width), jn = l(() => U.value.height);
385
- function Mn() {
386
- let e = 0;
387
- ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
388
- let n = t.getComputedTextLength();
389
- return n > e ? n : e;
390
- }, 0));
391
- let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
392
- return e + t + (t ? 24 : 0);
393
- }
394
- let Nn = b(0), Pn = Ee((e) => {
395
- Nn.value = e;
396
- });
397
- Ke((e) => {
398
- let t = cn.value;
399
- if (!t) return;
400
- let n = new ResizeObserver((e) => {
401
- Pn(e[0].contentRect.height);
402
- });
403
- n.observe(t), e(() => n.disconnect());
404
- });
405
- let Fn = l(() => {
406
- let e = 0;
407
- on.value && (e = on.value.getBBox().height + G.value.xAxisName / 2);
408
- let t = 0;
409
- return cn.value && (t = Nn.value), e + t;
410
- }), W = l(() => {
411
- let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top, n = Mn(), r = R.value.style.chart.plots.radius;
412
- return {
413
- left: e + n + R.value.style.chart.axes.y.name.offsetX,
414
- top: t + r,
415
- right: U.value.width - R.value.style.chart.padding.right - r - R.value.style.chart.axes.y.name.offsetX,
416
- bottom: U.value.height - R.value.style.chart.padding.bottom - Fn.value - r - R.value.style.chart.axes.x.name.offsetY,
417
- width: U.value.width - e - R.value.style.chart.padding.right - n - r - R.value.style.chart.axes.y.name.offsetX,
418
- height: U.value.height - t - R.value.style.chart.padding.bottom - Fn.value - r * 2 - R.value.style.chart.axes.x.name.offsetY
419
- };
420
- }), G = b({
421
- plots: R.value.style.chart.plots.radius,
422
- indexLabels: R.value.style.chart.plots.indexLabels.fontSize,
423
- labels: R.value.style.chart.plots.labels.fontSize,
424
- xAxisLabels: R.value.style.chart.axes.x.labels.fontSize,
425
- xAxisName: R.value.style.chart.axes.x.name.fontSize,
426
- yAxisLabels: R.value.style.chart.axes.y.labels.fontSize,
427
- yAxisName: R.value.style.chart.axes.y.name.fontSize
428
- }), K = l(() => yn.value.map((e, t) => ({
429
- ...e,
430
- color: e.color ? me(e.color) : kn.value[t] || ue[t] || ue[t % ue.length],
431
- seriesIndex: t
432
- }))), In = l(() => Math.max(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Ln = l(() => {
433
- let e = Math.min(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
434
- return e < 0 ? e : 0;
435
- }), Rn = l(() => Math.max(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), zn = l(() => {
436
- let e = Math.min(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
437
- return e < 0 ? e : 0;
438
- }), q = l(() => {
439
- let e = le(R.value.style.chart.axes.x.scaleMin ?? Ln.value, R.value.style.chart.axes.x.scaleMax ?? In.value, R.value.style.chart.axes.x.ticks), t = le(R.value.style.chart.axes.y.scaleMin ?? zn.value, R.value.style.chart.axes.y.scaleMax ?? Rn.value, R.value.style.chart.axes.y.ticks);
440
- return {
441
- x: e,
442
- y: t,
443
- tickX: e.ticks.map((t) => ({
444
- x: W.value.left + (t - e.min) / (e.max - e.min) * W.value.width,
445
- y1: W.value.top,
446
- y2: W.value.bottom,
447
- value: t
448
- })),
449
- tickY: t.ticks.map((e) => ({
450
- y: W.value.bottom - (e - t.min) / (t.max - t.min) * W.value.height,
451
- x1: W.value.left,
452
- x2: W.value.right,
453
- value: e
454
- }))
455
- };
456
- });
457
- function Bn(e) {
458
- let t = q.value.x.min < 0 ? Math.abs(q.value.x.min) : q.value.x.min > 0 ? -q.value.x.min : 0;
459
- return W.value.left + ((e || 0) + t) / (q.value.x.max + t) * W.value.width;
460
- }
461
- function Vn(e) {
462
- let t = q.value.y.min < 0 ? Math.abs(q.value.y.min) : q.value.y.min > 0 ? -q.value.y.min : 0;
463
- return W.value.bottom - ((e || 0) + t) / (q.value.y.max + t) * W.value.height;
464
- }
465
- let J = l(() => K.value.filter((e) => !j.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: Bn(t.x),
471
- y: Vn(t.y),
472
- color: e.color,
473
- seriesName: e.name,
474
- id: ee()
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 Hn() {
483
- j.value.length ? j.value = [] : Y.value.forEach((e) => {
484
- j.value.push(e.seriesIndex);
485
- }), mn("selectLegend", J.value);
486
- }
487
- function Un(e) {
488
- j.value.includes(e) ? j.value = j.value.filter((t) => t !== e) : j.value.push(e), mn("selectLegend", J.value);
489
- }
490
- function Wn(e) {
491
- return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
492
- }
493
- function Gn(e) {
494
- let t = Wn(e);
495
- t !== null && j.value.includes(t.seriesIndex) && Un(t.seriesIndex);
496
- }
497
- function Kn(e) {
498
- let t = Wn(e);
499
- t !== null && (j.value.includes(t.seriesIndex) || Un(t.seriesIndex));
500
- }
501
- let Y = l(() => K.value.map((e) => ({
502
- ...e,
503
- opacity: j.value.includes(e.seriesIndex) ? .5 : 1,
504
- segregate: () => Un(e.seriesIndex),
505
- isSegregated: j.value.includes(e.seriesIndex),
506
- shape: "circle"
507
- }))), qn = l(() => ({
508
- cy: "history-plot-div-legend",
509
- backgroundColor: R.value.style.chart.legend.backgroundColor,
510
- color: R.value.style.chart.legend.color,
511
- fontSize: R.value.style.chart.legend.fontSize,
512
- paddingBottom: 12,
513
- fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
514
- }));
515
- function Jn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
516
- R.value.events.datapointClick && R.value.events.datapointClick({
517
- datapoint: {
518
- ...e,
519
- plotIndex: t,
520
- seriesIndex: n
521
- },
522
- seriesIndex: n
523
- }), mn("selectDatapoint", e);
524
- }
525
- function Yn(e) {
526
- M.value = e, Xt.value += 1;
527
- }
528
- let Xn = b(null);
529
- function Zn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
530
- R.value.events.datapointLeave && R.value.events.datapointLeave({
531
- datapoint: {
532
- ...e,
533
- plotIndex: t,
534
- seriesIndex: n
535
- },
536
- seriesIndex: n
537
- }), !(dn.value === "keyboard" && I.value === n && L.value === t) && (Qt.value = !1, N.value = null);
538
- }
539
- function Qn(e, t) {
540
- if (!V.value) return;
541
- let r = J.value.find((t) => t.seriesIndex === e);
542
- if (!r) return;
543
- let i = r.plots[t];
544
- if (!i) return;
545
- let a = n(i.x, i.y, V.value);
546
- a && (un.value = a);
547
- }
548
- function $n({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
549
- R.value.events.datapointEnter && R.value.events.datapointEnter({
550
- datapoint: {
551
- ...e,
552
- plotIndex: t,
553
- seriesIndex: n
554
- },
555
- seriesIndex: n
556
- }), I.value = n, L.value = t, dn.value = r, Xn.value = {
557
- datapoint: e,
558
- seriesIndex: n,
559
- plotIndex: t,
560
- config: R.value,
561
- series: K.value
562
- }, N.value = e;
563
- let i = R.value.style.chart.tooltip.customFormat;
564
- if (P.value = !1, ce(i)) try {
565
- let r = i({
566
- seriesIndex: n,
567
- datapoint: e,
568
- plotIndex: t,
569
- series: K.value,
570
- config: R.value
571
- });
572
- typeof r == "string" && ($t.value = r, P.value = !0);
573
- } catch {
574
- console.warn("Custom format cannot be applied."), P.value = !1;
575
- }
576
- if (!P.value) {
577
- let t = "";
578
- t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${R.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>${R.value.style.chart.axes.x.name.text || "x"}: ${s(R.value.style.chart.axes.x.labels.formatter, e.valueX, a({
579
- p: R.value.style.chart.axes.x.labels.prefix,
580
- v: e.valueX,
581
- s: R.value.style.chart.axes.x.labels.suffix,
582
- r: R.value.style.chart.axes.x.labels.rounding
583
- }))}</div>`, t += `<div>${R.value.style.chart.axes.y.name.text || "y"}: ${s(R.value.style.chart.axes.y.labels.formatter, e.valueY, a({
584
- p: R.value.style.chart.axes.y.labels.prefix,
585
- v: e.valueY,
586
- s: R.value.style.chart.axes.y.labels.suffix,
587
- r: R.value.style.chart.axes.y.labels.rounding
588
- }))}</div>`, $t.value = `<div>${t}</div>`;
589
- }
590
- Qt.value = !0, r === "keyboard" && ze(() => {
591
- Qn(n, t);
592
- });
593
- }
594
- l(() => ({ head: J.value.map((e) => ({
595
- name: e.name,
596
- color: e.color
597
- })) }));
598
- let X = l(() => {
599
- let e = [
600
- R.value.table.columnNames.series,
601
- R.value.table.columnNames.datapoint,
602
- R.value.table.columnNames.x,
603
- R.value.table.columnNames.y
604
- ];
605
- return {
606
- head: e,
607
- body: J.value.flatMap((e) => e.plots.map((e) => [
608
- {
609
- color: e.color,
610
- name: e.seriesName
611
- },
612
- e.label,
613
- s(R.value.style.chart.axes.x.labels.formatter, e.valueX, a({
614
- p: R.value.style.chart.axes.x.labels.prefix,
615
- v: e.valueX,
616
- s: R.value.style.chart.axes.x.labels.suffix,
617
- r: R.value.style.chart.axes.x.labels.rounding
618
- })),
619
- s(R.value.style.chart.axes.y.labels.formatter, e.valueY, a({
620
- p: R.value.style.chart.axes.y.labels.prefix,
621
- v: e.valueY,
622
- s: R.value.style.chart.axes.y.labels.suffix,
623
- r: R.value.style.chart.axes.y.labels.rounding
624
- }))
625
- ])),
626
- config: {
627
- th: {
628
- backgroundColor: R.value.table.th.backgroundColor,
629
- color: R.value.table.th.color,
630
- outline: R.value.table.th.outline
631
- },
632
- td: {
633
- backgroundColor: R.value.table.td.backgroundColor,
634
- color: R.value.table.td.color,
635
- outline: R.value.table.td.outline
636
- },
637
- breakpoint: R.value.table.responsiveBreakpoint
638
- },
639
- colNames: e
640
- };
641
- });
642
- function er(e = null) {
643
- ze(() => {
644
- let t = [
645
- [R.value.table.columnNames.series],
646
- [R.value.table.columnNames.datapoint],
647
- [R.value.table.columnNames.x],
648
- [R.value.table.columnNames.y]
649
- ], n = J.value.flatMap((e) => e.plots.map((e) => [
650
- [e.seriesName],
651
- [e.label],
652
- [e.valueX],
653
- [e.valueY]
654
- ])), r = ne([
655
- [R.value.style.chart.title.text],
656
- [R.value.style.chart.title.subtitle.text],
657
- t
658
- ].concat(n));
659
- e ? e(r) : te({
660
- csvContent: r,
661
- title: R.value.style.chart.title.text || "vue-ui-history-plot"
662
- });
663
- });
664
- }
665
- let Z = b(!1);
666
- function tr() {
667
- Z.value = !Z.value;
668
- }
669
- function nr() {
670
- H.value.showTable = !H.value.showTable;
671
- }
672
- function rr() {
673
- H.value.showTooltip = !H.value.showTooltip;
674
- }
675
- function ir() {
676
- return J.value;
677
- }
678
- async function ar({ scale: e = 2 } = {}) {
679
- if (!D.value) return;
680
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
681
- domElement: D.value,
682
- base64: !0,
683
- img: !0,
684
- scale: e
685
- });
686
- return {
687
- imageUri: i,
688
- base64: a,
689
- title: R.value.style.chart.title.text,
690
- width: t,
691
- height: n,
692
- aspectRatio: r
693
- };
694
- }
695
- Se({
696
- timeLabelsEls: cn,
697
- timeLabels: l(() => q.value.tickX),
698
- slicer: l(() => ({
699
- start: 0,
700
- end: q.value.tickX.length
701
- })),
702
- configRef: R,
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: An,
722
- height: jn,
723
- targetClass: ".vue-ui-history-plot-x-axis-scale",
724
- rotation: R.value.style.chart.axes.x.labels.autoRotate.angle
725
- });
726
- let Q = l(() => {
727
- let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
728
- return {
729
- component: e ? Vt : It,
730
- title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
731
- props: e ? {
732
- backgroundColor: R.value.table.th.backgroundColor,
733
- color: R.value.table.th.color,
734
- headerColor: R.value.table.th.color,
735
- headerBg: R.value.table.th.backgroundColor,
736
- isFullscreen: M.value,
737
- fullscreenParent: D.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: R.value.style.chart.backgroundColor,
746
- color: R.value.style.chart.color
747
- },
748
- head: {
749
- backgroundColor: R.value.style.chart.backgroundColor,
750
- color: R.value.style.chart.color
751
- }
752
- }
753
- }
754
- };
755
- });
756
- Ge(() => H.value.showTable, (e) => {
757
- R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
758
- });
759
- function or() {
760
- H.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
761
- }
762
- let sr = l(() => R.value.style.chart.backgroundColor), cr = l(() => R.value.style.chart.legend), { exportSvg: lr, getSvg: ur } = ye({
763
- svg: V,
764
- title: l(() => R.value.style.chart.title),
765
- legend: cr,
766
- legendItems: Y,
767
- backgroundColor: sr
768
- });
769
- async function dr({ isCb: e }) {
770
- an.value = !0, await ze();
771
- try {
772
- if (e) {
773
- let { blob: e, url: t, text: n, dataUrl: r } = await ur();
774
- await Promise.resolve(R.value.userOptions.callbacks.svg({
775
- blob: e,
776
- url: t,
777
- text: n,
778
- dataUrl: r
779
- }));
780
- } else await Promise.resolve(lr());
781
- } finally {
782
- an.value = !1;
783
- }
784
- }
785
- function fr(e) {
786
- if (e?.stage === "start") {
787
- rn.value = !0;
788
- return;
789
- }
790
- if (e?.stage === "end") {
791
- rn.value = !1;
792
- return;
793
- }
794
- Dn();
795
- }
796
- async function pr() {
797
- if (mn("copyAlt", {
798
- config: R.value,
799
- dataset: J.value
800
- }), !R.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(R.value.userOptions.callbacks.altCopy({
805
- config: R.value,
806
- dataset: J.value
807
- }));
808
- }
809
- let $ = l(() => ({
810
- head: X.value.head,
811
- body: X.value.body.map((e) => [
812
- e[0]?.name || "",
813
- e[1],
814
- e[2],
815
- e[3]
816
- ]),
817
- caption: R.value.a11y.translations.tableCaption,
818
- notice: R.value.a11y.translations.tableAvailable
819
- }));
820
- function mr(e) {
821
- return J.value.findIndex((t) => t.seriesIndex === e);
822
- }
823
- function hr() {
824
- if (I.value !== null && L.value !== null) {
825
- let e = J.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
826
- e && Zn({
827
- datapoint: e,
828
- plotIndex: L.value,
829
- seriesIndex: I.value
830
- });
831
- }
832
- I.value = null, L.value = null, dn.value = "pointer", Qt.value = !1, N.value = null;
833
- }
834
- function gr() {
835
- I.value = null, L.value = null, fn.value = !0;
836
- }
837
- function _r() {
838
- hr(), fn.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 (!J.value.length) return null;
847
- let r = mr(e);
848
- if (r === -1) return null;
849
- if (n === "up" || n === "down") {
850
- let e = J.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)) % J.value.length + J.value.length) % J.value.length, i = J.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 (!V.value || Z.value || document.activeElement !== V.value || !J.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 (I.value === null || L.value === null) return;
879
- let e = J.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
880
- if (!e) return;
881
- Jn({
882
- datapoint: e,
883
- plotIndex: L.value,
884
- seriesIndex: I.value
885
- });
886
- return;
887
- }
888
- let o = null;
889
- if (I.value === null || L.value === null) {
890
- let e = J.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: I.value,
898
- plotIndex: L.value,
899
- direction: "up"
900
- }) : i ? o = yr({
901
- seriesIndex: I.value,
902
- plotIndex: L.value,
903
- direction: "down"
904
- }) : t ? o = yr({
905
- seriesIndex: I.value,
906
- plotIndex: L.value,
907
- direction: "left"
908
- }) : n && (o = yr({
909
- seriesIndex: I.value,
910
- plotIndex: L.value,
911
- direction: "right"
912
- }));
913
- if (!o) return;
914
- let te = J.value.find((e) => e.seriesIndex === o.seriesIndex)?.plots?.[o.plotIndex];
915
- te && $n({
916
- datapoint: te,
917
- plotIndex: o.plotIndex,
918
- seriesIndex: o.seriesIndex,
919
- triggerMode: "keyboard"
920
- });
921
- }
922
- return Te({
923
- getData: ir,
924
- getImage: ar,
925
- generatePdf: En,
926
- generateCsv: er,
927
- generateImage: Dn,
928
- generateSvg: dr,
929
- hideSeries: Kn,
930
- showSeries: Gn,
931
- toggleTable: nr,
932
- toggleTooltip: rr,
933
- toggleAnnotator: tr,
934
- toggleFullscreen: Yn,
935
- copyAlt: pr
936
- }), (e, n) => (y(), f("div", {
937
- id: `history_plot_${A.value}`,
938
- ref_key: "historyPlotChart",
939
- ref: D,
940
- class: g({
941
- "vue-data-ui-component": !0,
942
- "vue-ui-history-plot": !0,
943
- "vue-data-ui-wrapper-fullscreen": M.value
944
- }),
945
- style: v(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
946
- onMouseenter: n[2] ||= () => w(Sn)(!0),
947
- onMouseleave: n[3] ||= () => w(Sn)(!1)
948
- }, [
949
- p("div", {
950
- id: `chart-instructions-${A.value}`,
951
- class: "sr-only"
952
- }, [p("p", null, C(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
953
- $.value.body.length ? (y(), u(ke, {
954
- key: 0,
955
- uid: A.value,
956
- head: $.value.head,
957
- body: $.value.body,
958
- caption: $.value.caption,
959
- notice: $.value.notice
960
- }, null, 8, [
961
- "uid",
962
- "head",
963
- "body",
964
- "caption",
965
- "notice"
966
- ])) : d("", !0),
967
- S(e.$slots, "userConfig", {}, void 0, !0),
968
- R.value.userOptions.buttons.annotator ? (y(), u(w(Rt), {
969
- key: 1,
970
- svgRef: w(V),
971
- backgroundColor: R.value.style.chart.backgroundColor,
972
- color: R.value.style.chart.color,
973
- active: Z.value,
974
- isCursorPointer: z.value,
975
- onClose: tr
976
- }, {
977
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
978
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
979
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
980
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
981
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
982
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
983
- _: 3
984
- }, 8, [
985
- "svgRef",
986
- "backgroundColor",
987
- "color",
988
- "active",
989
- "isCursorPointer"
990
- ])) : d("", !0),
991
- On.value ? (y(), f("div", {
992
- key: 2,
993
- ref_key: "noTitle",
994
- ref: Zt,
995
- class: "vue-data-ui-no-title-space",
996
- style: "height:36px; width: 100%;background:transparent"
997
- }, null, 512)) : d("", !0),
998
- R.value.style.chart.title.text ? (y(), f("div", {
999
- key: 3,
1000
- ref_key: "chartTitle",
1001
- ref: Gt,
1002
- class: "vue-ui-xy-title",
1003
- style: v(`font-family:${R.value.style.fontFamily}`)
1004
- }, [(y(), u(we, {
1005
- key: `title_${Kt.value}`,
1006
- config: {
1007
- title: {
1008
- cy: "history-plot-div-title",
1009
- ...R.value.style.chart.title
1010
- },
1011
- subtitle: {
1012
- cy: "history-plot-div-subtitle",
1013
- ...R.value.style.chart.title.subtitle
1014
- }
1015
- }
1016
- }, null, 8, ["config"]))], 4)) : d("", !0),
1017
- p("div", { id: `legend-top-${A.value}` }, null, 8, Xe),
1018
- R.value.userOptions.show && pn.value && (w(Cn) || w(xn)) ? (y(), u(w(zt), {
1019
- ref_key: "userOptionsRef",
1020
- ref: nn,
1021
- key: `user_option_${Xt.value}`,
1022
- backgroundColor: R.value.style.chart.backgroundColor,
1023
- color: R.value.style.chart.color,
1024
- isPrinting: w(wn),
1025
- isImaging: w(Tn),
1026
- uid: A.value,
1027
- hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
1028
- hasPdf: R.value.userOptions.buttons.pdf,
1029
- hasImg: R.value.userOptions.buttons.img,
1030
- hasSvg: R.value.userOptions.buttons.svg,
1031
- hasXls: R.value.userOptions.buttons.csv,
1032
- hasTable: R.value.userOptions.buttons.table,
1033
- hasLabel: !1,
1034
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
1035
- hasAltCopy: R.value.userOptions.buttons.altCopy,
1036
- isFullscreen: M.value,
1037
- chartElement: D.value,
1038
- position: R.value.userOptions.position,
1039
- isTooltip: H.value.showTooltip,
1040
- titles: { ...R.value.userOptions.buttonTitles },
1041
- hasAnnotator: R.value.userOptions.buttons.annotator,
1042
- isAnnotation: Z.value,
1043
- callbacks: R.value.userOptions.callbacks,
1044
- printScale: R.value.userOptions.print.scale,
1045
- tableDialog: R.value.table.useDialog,
1046
- isCursorPointer: z.value,
1047
- onToggleFullscreen: Yn,
1048
- onGeneratePdf: w(En),
1049
- onGenerateCsv: er,
1050
- onGenerateImage: fr,
1051
- onGenerateSvg: dr,
1052
- onToggleTable: nr,
1053
- onToggleTooltip: rr,
1054
- onToggleAnnotator: tr,
1055
- onCopyAlt: pr,
1056
- style: v({ visibility: w(Cn) ? w(xn) ? "visible" : "hidden" : "visible" })
1057
- }, Fe({ _: 2 }, [
1058
- e.$slots.menuIcon ? {
1059
- name: "menuIcon",
1060
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
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: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
1069
- key: "1"
1070
- } : void 0,
1071
- e.$slots.optionPdf ? {
1072
- name: "optionPdf",
1073
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
1074
- key: "2"
1075
- } : void 0,
1076
- e.$slots.optionCsv ? {
1077
- name: "optionCsv",
1078
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
1079
- key: "3"
1080
- } : void 0,
1081
- e.$slots.optionImg ? {
1082
- name: "optionImg",
1083
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
1084
- key: "4"
1085
- } : void 0,
1086
- e.$slots.optionSvg ? {
1087
- name: "optionSvg",
1088
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
1089
- key: "5"
1090
- } : void 0,
1091
- e.$slots.optionTable ? {
1092
- name: "optionTable",
1093
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
1094
- key: "6"
1095
- } : void 0,
1096
- e.$slots.optionFullscreen ? {
1097
- name: "optionFullscreen",
1098
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
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: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
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: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
1115
- key: "9"
1116
- } : void 0,
1117
- e.$slots["custom-menu-before"] ? {
1118
- name: "custom-menu-before",
1119
- fn: T(() => [S(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: T(() => [S(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("."))) : d("", !0),
1128
- p("div", Ze, [(y(), f("svg", {
1129
- ref_key: "svgRef",
1130
- ref: V,
1131
- xmlns: w(fe),
1132
- viewBox: `0 0 ${U.value.width < 0 ? .1 : U.value.width} ${U.value.height < 0 ? .1 : U.value.height}`,
1133
- style: v(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
1134
- "aria-describedby": `chart-instructions-${A.value}`,
1135
- tabindex: "0",
1136
- onFocus: gr,
1137
- onBlur: _r,
1138
- onKeydown: br
1139
- }, [
1140
- Le(w(Bt)),
1141
- e.$slots["chart-background"] ? (y(), f("foreignObject", {
1142
- key: 0,
1143
- x: W.value.left,
1144
- y: W.value.top,
1145
- width: W.value.width <= 0 ? 10 : W.value.width,
1146
- height: W.value.height <= 0 ? 10 : W.value.height,
1147
- style: { pointerEvents: "none" }
1148
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : d("", !0),
1149
- R.value.style.chart.plots.gradient.show ? (y(), f("defs", et, [(y(!0), f(c, null, x(J.value, (e, t) => (y(), f("radialGradient", {
1150
- id: `gradient_${t}_${A.value}`,
1151
- fy: "30%"
1152
- }, [
1153
- p("stop", {
1154
- offset: "10%",
1155
- "stop-color": w(r)(e.color, R.value.style.chart.plots.gradient.intensity / 100)
1156
- }, null, 8, nt),
1157
- p("stop", {
1158
- offset: "90%",
1159
- "stop-color": w(ae)(e.color, .1)
1160
- }, null, 8, rt),
1161
- p("stop", {
1162
- offset: "100%",
1163
- "stop-color": e.color
1164
- }, null, 8, it)
1165
- ], 8, tt))), 256))])) : d("", !0),
1166
- R.value.style.chart.grid.verticalLines.show ? (y(), f("g", at, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("line", {
1167
- x1: e.x,
1168
- x2: e.x,
1169
- y1: e.y1,
1170
- y2: e.y2,
1171
- stroke: R.value.style.chart.grid.verticalLines.stroke,
1172
- "stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
1173
- "stroke-linecap": "round"
1174
- }, null, 8, ot))), 256))])) : d("", !0),
1175
- R.value.style.chart.axes.y.labels.show ? (y(), f("g", st, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("line", {
1176
- stroke: R.value.style.chart.grid.verticalLines.stroke,
1177
- "stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
1178
- "stroke-linecap": "round",
1179
- x1: W.value.left - 5,
1180
- x2: W.value.left,
1181
- y1: e.y,
1182
- y2: e.y
1183
- }, null, 8, ct))), 256))])) : d("", !0),
1184
- R.value.style.chart.axes.y.labels.show ? (y(), f("g", {
1185
- key: 4,
1186
- ref_key: "yAxisScales",
1187
- ref: ln
1188
- }, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("text", {
1189
- x: W.value.left + R.value.style.chart.axes.y.labels.offsetX - 4 - R.value.style.chart.plots.radius,
1190
- y: e.y + G.value.yAxisLabels / 3,
1191
- fill: R.value.style.chart.axes.y.labels.color,
1192
- "font-size": G.value.yAxisLabels,
1193
- "text-anchor": "end"
1194
- }, C(w(s)(R.value.style.chart.axes.y.labels.formatter, e.value, w(a)({
1195
- p: R.value.style.chart.axes.y.labels.prefix,
1196
- v: e.value,
1197
- s: R.value.style.chart.axes.y.labels.suffix,
1198
- r: R.value.style.chart.axes.y.labels.rounding
1199
- }))), 9, lt))), 256))], 512)) : d("", !0),
1200
- R.value.style.chart.axes.y.name.text ? (y(), f("text", {
1201
- key: 5,
1202
- ref_key: "yAxisLabel",
1203
- ref: sn,
1204
- transform: `translate(${G.value.yAxisName}, ${U.value.height / 2 + R.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1205
- "font-size": G.value.yAxisName,
1206
- fill: R.value.style.chart.axes.y.name.color,
1207
- "font-weight": R.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1208
- "text-anchor": "middle"
1209
- }, C(R.value.style.chart.axes.y.name.text), 9, ut)) : d("", !0),
1210
- R.value.style.chart.grid.horizontalLines.show ? (y(), f("g", dt, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("line", {
1211
- x1: e.x1,
1212
- x2: e.x2,
1213
- y1: e.y,
1214
- y2: e.y,
1215
- stroke: R.value.style.chart.grid.horizontalLines.stroke,
1216
- "stroke-width": R.value.style.chart.grid.horizontalLines.strokeWidth,
1217
- "stroke-linecap": "round"
1218
- }, null, 8, ft))), 256))])) : d("", !0),
1219
- R.value.style.chart.axes.x.labels.show ? (y(), f("g", pt, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("line", {
1220
- stroke: R.value.style.chart.grid.verticalLines.stroke,
1221
- "stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
1222
- "stroke-linecap": "round",
1223
- x1: e.x,
1224
- x2: e.x,
1225
- y1: W.value.bottom,
1226
- y2: W.value.bottom + 5
1227
- }, null, 8, mt))), 256))])) : d("", !0),
1228
- R.value.style.chart.axes.x.labels.show ? (y(), f("g", {
1229
- key: 8,
1230
- ref_key: "xAxisScales",
1231
- ref: cn
1232
- }, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("text", {
1233
- class: "vue-ui-history-plot-x-axis-scale",
1234
- transform: `translate(${e.x}, ${W.value.bottom + R.value.style.chart.axes.x.labels.offsetY + G.value.xAxisLabels + R.value.style.chart.plots.radius}), rotate(${R.value.style.chart.axes.x.labels.rotation})`,
1235
- fill: R.value.style.chart.axes.x.labels.color,
1236
- "font-size": G.value.xAxisLabels,
1237
- "text-anchor": R.value.style.chart.axes.x.labels.rotation > 0 ? "start" : R.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1238
- }, C(w(s)(R.value.style.chart.axes.x.labels.formatter, e.value, w(a)({
1239
- p: R.value.style.chart.axes.x.labels.prefix,
1240
- v: e.value,
1241
- s: R.value.style.chart.axes.x.labels.suffix,
1242
- r: R.value.style.chart.axes.x.labels.rounding
1243
- }))), 9, ht))), 256))], 512)) : d("", !0),
1244
- R.value.style.chart.axes.x.name.text ? (y(), f("text", {
1245
- key: 9,
1246
- ref_key: "xAxisLabel",
1247
- ref: on,
1248
- x: U.value.width / 2 + R.value.style.chart.axes.x.name.offsetX,
1249
- y: U.value.height,
1250
- "font-size": G.value.xAxisName,
1251
- fill: R.value.style.chart.axes.x.name.color,
1252
- "font-weight": R.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1253
- "text-anchor": "middle"
1254
- }, C(R.value.style.chart.axes.x.name.text), 9, gt)) : d("", !0),
1255
- R.value.style.chart.grid.xAxis.show ? (y(), f("line", {
1256
- key: 10,
1257
- x1: W.value.left,
1258
- x2: W.value.left + W.value.width,
1259
- y1: W.value.bottom,
1260
- y2: W.value.bottom,
1261
- stroke: R.value.style.chart.grid.xAxis.stroke,
1262
- "stroke-width": R.value.style.chart.grid.xAxis.strokeWidth,
1263
- "stroke-linecap": "round"
1264
- }, null, 8, _t)) : d("", !0),
1265
- R.value.style.chart.grid.yAxis.show ? (y(), f("line", {
1266
- key: 11,
1267
- x1: W.value.left,
1268
- x2: W.value.left,
1269
- y1: W.value.top,
1270
- y2: W.value.bottom,
1271
- stroke: R.value.style.chart.grid.yAxis.stroke,
1272
- "stroke-width": R.value.style.chart.grid.yAxis.strokeWidth,
1273
- "stroke-linecap": "round"
1274
- }, null, 8, vt)) : d("", !0),
1275
- (y(!0), f(c, null, x(J.value, (e, n) => (y(), f("g", null, [
1276
- R.value.style.chart.paths.show ? (y(), f("g", {
1277
- key: 0,
1278
- style: v({ opacity: N.value === null ? 1 : .3 })
1279
- }, [p("path", {
1280
- d: e.path,
1281
- stroke: R.value.style.chart.backgroundColor,
1282
- "stroke-width": R.value.style.chart.paths.strokeWidth + 4,
1283
- fill: "none",
1284
- "stroke-linecap": "round",
1285
- "stroke-linejoin": "round",
1286
- class: g({ animated: R.value.useCssAnimation && !w(B) })
1287
- }, null, 10, yt), p("path", {
1288
- d: e.path,
1289
- stroke: R.value.style.chart.paths.useSerieColor ? e.color : R.value.style.chart.paths.stroke,
1290
- "stroke-width": R.value.style.chart.paths.strokeWidth,
1291
- fill: "none",
1292
- "stroke-linecap": "round",
1293
- "stroke-linejoin": "round",
1294
- class: g({ animated: R.value.useCssAnimation && !w(B) })
1295
- }, null, 10, bt)], 4)) : d("", !0),
1296
- (y(!0), f(c, null, x(e.plots, (e) => (y(), f("circle", {
1297
- cx: e.x,
1298
- cy: e.y,
1299
- fill: R.value.style.chart.backgroundColor,
1300
- r: G.value.plots,
1301
- stroke: "none"
1302
- }, null, 8, xt))), 256)),
1303
- (y(!0), f(c, null, x(e.plots, (e) => (y(), f("circle", {
1304
- cx: e.x,
1305
- cy: e.y,
1306
- fill: R.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${A.value})` : e.color,
1307
- r: G.value.plots,
1308
- stroke: R.value.style.chart.plots.stroke,
1309
- "stroke-width": R.value.style.chart.plots.strokeWidth,
1310
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1311
- style: v({
1312
- opacity: N.value === null || N.value.id === e.id ? 1 : .3,
1313
- transition: "opacity 0.2s ease-in-out"
1314
- })
1315
- }, null, 14, St))), 256)),
1316
- R.value.style.chart.plots.labels.show ? (y(), f("g", Ct, [(y(!0), f(c, null, x(e.plots, (e) => (y(), f("g", null, [String(e.label).includes("\n") ? (y(), f("text", {
1317
- key: 1,
1318
- x: e.x + R.value.style.chart.plots.labels.offsetX,
1319
- y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels,
1320
- "font-size": G.value.labels,
1321
- fill: R.value.style.chart.plots.labels.color,
1322
- "font-weight": R.value.style.chart.plots.labels.bold ? "bold" : "normal",
1323
- "text-anchor": "middle",
1324
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1325
- style: v({
1326
- opacity: N.value === null || N.value.id === e.id ? 1 : .3,
1327
- transition: "opacity 0.2s ease-in-out"
1328
- }),
1329
- innerHTML: w(t)({
1330
- content: String(e.label),
1331
- fontSize: G.value.labels,
1332
- fill: R.value.style.chart.plots.labels.color,
1333
- x: e.x + R.value.style.chart.plots.labels.offsetX,
1334
- y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels
1335
- })
1336
- }, null, 14, Tt)) : (y(), f("text", {
1337
- key: 0,
1338
- x: e.x + R.value.style.chart.plots.labels.offsetX,
1339
- y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels,
1340
- "font-size": G.value.labels,
1341
- fill: R.value.style.chart.plots.labels.color,
1342
- "font-weight": R.value.style.chart.plots.labels.bold ? "bold" : "normal",
1343
- "text-anchor": "middle",
1344
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1345
- style: v({
1346
- opacity: N.value === null || N.value.id === e.id ? 1 : .3,
1347
- transition: "opacity 0.2s ease-in-out"
1348
- })
1349
- }, C(e.label), 15, wt))]))), 256))])) : d("", !0),
1350
- R.value.style.chart.plots.indexLabels.show ? (y(), f("g", Et, [(y(!0), f(c, null, x(e.plots, (t, n) => (y(), f("text", {
1351
- x: t.x + R.value.style.chart.plots.indexLabels.offsetX,
1352
- y: t.y + R.value.style.chart.plots.indexLabels.offsetY + G.value.indexLabels / 3,
1353
- "font-size": G.value.indexLabels,
1354
- "font-weight": R.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1355
- fill: R.value.style.chart.plots.indexLabels.adaptColorToBackground ? w(de)(e.color) : R.value.style.chart.plots.indexLabels.color,
1356
- "text-anchor": "middle",
1357
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1358
- style: v({
1359
- opacity: N.value === null || N.value.id === t.id ? 1 : .3,
1360
- transition: "opacity 0.2s ease-in-out"
1361
- })
1362
- }, C(R.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Dt))), 256))])) : d("", !0)
1363
- ]))), 256)),
1364
- (y(!0), f(c, null, x(J.value, (e) => (y(), f("g", null, [(y(!0), f(c, null, x(e.plots, (t, n) => (y(), f("circle", {
1365
- cx: t.x,
1366
- cy: t.y,
1367
- fill: "transparent",
1368
- r: G.value.plots,
1369
- stroke: "none",
1370
- onMouseenter: (r) => $n({
1371
- datapoint: t,
1372
- plotIndex: n,
1373
- seriesIndex: e.seriesIndex,
1374
- triggerMode: "pointer"
1375
- }),
1376
- onMouseleave: (r) => Zn({
1377
- datapoint: t,
1378
- plotIndex: n,
1379
- seriesIndex: e.seriesIndex
1380
- }),
1381
- onClick: (r) => Jn({
1382
- datapoint: t,
1383
- plotIndex: n,
1384
- seriesIndex: e.seriesIndex
1385
- })
1386
- }, null, 40, Ot))), 256))]))), 256)),
1387
- S(e.$slots, "svg", { svg: {
1388
- ...U.value,
1389
- drawingArea: W.value,
1390
- isPrintingImg: w(wn) || w(Tn) || rn.value,
1391
- isPrintingSvg: an.value
1392
- } }, void 0, !0)
1393
- ], 44, Qe)), e.$slots.hint ? (y(), f("div", kt, [S(e.$slots, "hint", _(h({
1394
- hint: R.value.a11y.translations.keyboardNavigation,
1395
- isVisible: fn.value
1396
- })), void 0, !0)])) : d("", !0)]),
1397
- e.$slots.watermark ? (y(), f("div", At, [S(e.$slots, "watermark", _(h({ isPrinting: w(wn) || w(Tn) || rn.value || an.value })), void 0, !0)])) : d("", !0),
1398
- p("div", { id: `legend-bottom-${A.value}` }, null, 8, jt),
1399
- tn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Pe, {
1400
- key: 6,
1401
- to: R.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1402
- }, [p("div", {
1403
- ref_key: "chartLegend",
1404
- ref: qt
1405
- }, [S(e.$slots, "legend", { legend: Y.value }, () => [R.value.style.chart.legend.show && pn.value ? (y(), u(Me, {
1406
- key: `legend_${Jt.value}`,
1407
- legendSet: Y.value,
1408
- config: qn.value,
1409
- isCursorPointer: z.value,
1410
- onClickMarker: n[0] ||= ({ legend: e }) => {
1411
- Un(e.seriesIndex);
1412
- }
1413
- }, {
1414
- item: T(({ legend: e, index: t }) => [p("div", {
1415
- onClick: (t) => e.segregate(),
1416
- style: v(`opacity:${j.value.includes(e.seriesIndex) ? .5 : 1}`)
1417
- }, C(e.name), 13, Mt)]),
1418
- legendToggle: T(() => [Y.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !w(B) ? (y(), u(Oe, {
1419
- key: 0,
1420
- backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
1421
- color: R.value.style.chart.legend.selectAllToggle.color,
1422
- fontSize: R.value.style.chart.legend.fontSize,
1423
- checked: j.value.length > 0,
1424
- isCursorPointer: z.value,
1425
- onToggle: Hn
1426
- }, null, 8, [
1427
- "backgroundColor",
1428
- "color",
1429
- "fontSize",
1430
- "checked",
1431
- "isCursorPointer"
1432
- ])) : d("", !0)]),
1433
- _: 1
1434
- }, 8, [
1435
- "legendSet",
1436
- "config",
1437
- "isCursorPointer"
1438
- ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1439
- e.$slots.source ? (y(), f("div", {
1440
- key: 7,
1441
- ref_key: "source",
1442
- ref: en,
1443
- dir: "auto"
1444
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1445
- Le(w(Pt), {
1446
- teleportTo: R.value.style.chart.tooltip.teleportTo,
1447
- show: H.value.showTooltip && Qt.value,
1448
- backgroundColor: R.value.style.chart.tooltip.backgroundColor,
1449
- color: R.value.style.chart.tooltip.color,
1450
- fontSize: R.value.style.chart.tooltip.fontSize,
1451
- borderRadius: R.value.style.chart.tooltip.borderRadius,
1452
- borderColor: R.value.style.chart.tooltip.borderColor,
1453
- borderWidth: R.value.style.chart.tooltip.borderWidth,
1454
- backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
1455
- position: R.value.style.chart.tooltip.position,
1456
- offsetX: R.value.style.chart.tooltip.offsetX,
1457
- offsetY: R.value.style.chart.tooltip.offsetY,
1458
- parent: D.value,
1459
- content: $t.value,
1460
- isCustom: P.value,
1461
- isFullscreen: M.value,
1462
- smooth: R.value.style.chart.tooltip.smooth,
1463
- backdropFilter: R.value.style.chart.tooltip.backdropFilter,
1464
- smoothForce: R.value.style.chart.tooltip.smoothForce,
1465
- smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
1466
- isA11yMode: dn.value === "keyboard",
1467
- a11yPosition: un.value
1468
- }, {
1469
- "tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...Xn.value })), void 0, !0)]),
1470
- tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...Xn.value })), void 0, !0)]),
1471
- "tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...Xn.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
- pn.value && R.value.userOptions.buttons.table ? (y(), u(He(Q.value.component), Re({ key: 8 }, Q.value.props, {
1498
- ref_key: "tableUnit",
1499
- ref: F,
1500
- onClose: or
1501
- }), Fe({
1502
- content: T(() => [(y(), u(w(Lt), {
1503
- key: `table_${Yt.value}`,
1504
- colNames: X.value.colNames,
1505
- head: X.value.head,
1506
- body: X.value.body,
1507
- config: X.value.config,
1508
- title: R.value.table.useDialog ? "" : Q.value.title,
1509
- withCloseButton: !R.value.table.useDialog,
1510
- isCursorPointer: z.value,
1511
- onClose: or
1512
- }, {
1513
- th: T(({ th: e }) => [p("div", {
1514
- innerHTML: e,
1515
- style: {
1516
- display: "flex",
1517
- "align-items": "center"
1518
- }
1519
- }, null, 8, Nt)]),
1520
- td: T(({ td: e }) => [Ie(C(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
- }, [R.value.table.useDialog ? {
1533
- name: "title",
1534
- fn: T(() => [Ie(C(Q.value.title), 1)]),
1535
- key: "0"
1536
- } : void 0, R.value.table.useDialog ? {
1537
- name: "actions",
1538
- fn: T(() => [p("button", {
1539
- tabindex: "0",
1540
- class: "vue-ui-user-options-button",
1541
- onClick: n[1] ||= (e) => er(R.value.userOptions.callbacks.csv),
1542
- style: v({ cursor: z.value ? "pointer" : "default" })
1543
- }, [Le(w(Ft), {
1544
- name: "fileCsv",
1545
- stroke: Q.value.props.color
1546
- }, null, 8, ["stroke"])], 4)]),
1547
- key: "1"
1548
- } : void 0]), 1040)) : d("", !0),
1549
- S(e.$slots, "skeleton", {}, () => [w(B) ? (y(), u(ve, { key: 0 })) : d("", !0)], !0)
1550
- ], 46, Je));
1551
- }
1552
- }, [["__scopeId", "data-v-4e9a3690"]]);
1553
- //#endregion
1554
- export { qe as n, Pt as t };