vue-data-ui 2.4.27 → 2.4.28

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 (157) hide show
  1. package/README.md +10 -4
  2. package/dist/{Arrow-S0bKj06d.cjs → Arrow-0dIb6Jq7.cjs} +1 -1
  3. package/dist/{Arrow-DqxPKITt.js → Arrow-BNbwapxO.js} +1 -1
  4. package/dist/{BaseIcon-DdR74ekM.js → BaseIcon-B2vcsAEz.js} +4 -3
  5. package/dist/{BaseIcon-BEvRHM2R.cjs → BaseIcon-CSdun2De.cjs} +1 -1
  6. package/dist/{DataTable-CKYq5S0j.cjs → DataTable-W54GZy5H.cjs} +1 -1
  7. package/dist/{DataTable-DY9Joecu.js → DataTable-gCisz4py.js} +2 -2
  8. package/dist/{Legend-CSG4maaN.js → Legend-CjX5JjbY.js} +1 -1
  9. package/dist/{Legend-EHKRwZ5N.cjs → Legend-tN_pcrMt.cjs} +1 -1
  10. package/dist/{PackageVersion-CRyyH_HB.js → PackageVersion-B3zZMf_E.js} +1 -1
  11. package/dist/{PackageVersion-C_Y8uWJM.cjs → PackageVersion-Cx8faIns.cjs} +1 -1
  12. package/dist/{PenAndPaper-BF7qtcRe.js → PenAndPaper-BQ5u-Bj0.js} +3 -3
  13. package/dist/{PenAndPaper-CotnLxGh.cjs → PenAndPaper-qWrl9T2y.cjs} +1 -1
  14. package/dist/{Shape-DKxW8u2N.cjs → Shape-BslXHo8P.cjs} +1 -1
  15. package/dist/{Shape-B-_UZQAs.js → Shape-C2_5omvw.js} +1 -1
  16. package/dist/{Slicer-BeNAVIli.cjs → Slicer-CCF0wwaF.cjs} +1 -1
  17. package/dist/{Slicer-CKVHmNoC.js → Slicer-DLdL9UVM.js} +2 -2
  18. package/dist/{Title-C8WRomob.cjs → Title-DNJNGw-j.cjs} +1 -1
  19. package/dist/{Title-CfjKQsLl.js → Title-DfZARCN2.js} +1 -1
  20. package/dist/{Tooltip-0vzas_4d.cjs → Tooltip-BKT7lkVI.cjs} +1 -1
  21. package/dist/{Tooltip-B3hfjJYk.js → Tooltip-CvDe0uXm.js} +1 -1
  22. package/dist/documentation/installation.md +2 -0
  23. package/dist/index-BLLlwxO0.cjs +9 -0
  24. package/dist/{index-DtCryprM.js → index-CFiXy4nY.js} +734 -355
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +182 -9
  27. package/dist/types/vue-data-ui.d.ts +182 -9
  28. package/dist/{useNestedProp-tT95LfDr.js → useNestedProp-3d6JiXbm.js} +1 -1
  29. package/dist/{useNestedProp-DMaPxyYb.cjs → useNestedProp-Bjrt5Glr.cjs} +1 -1
  30. package/dist/{usePrinter-D4_doq3d.js → usePrinter-DaGf53v6.js} +1 -1
  31. package/dist/{usePrinter-Bd-68vBM.cjs → usePrinter-DpmXq4r_.cjs} +1 -1
  32. package/dist/vue-data-ui-CYJ-cGZ7.cjs +9 -0
  33. package/dist/{vue-data-ui-BHbGLvb2.js → vue-data-ui-DOz89zuL.js} +72 -70
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +39 -38
  36. package/dist/{vue-ui-3d-bar-wE79cKJb.cjs → vue-ui-3d-bar-CjgJT9th.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-BUZbm9kJ.js → vue-ui-3d-bar-Cjp42NQN.js} +9 -9
  38. package/dist/{vue-ui-accordion-DAf1jeI5.cjs → vue-ui-accordion-BtwaJlG6.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-C3p9yjUl.js → vue-ui-accordion-DORcK2IX.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-DtG_nStX.cjs → vue-ui-age-pyramid-CG5Hv1RE.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-BSRlLxEA.js → vue-ui-age-pyramid-Twv6fSmC.js} +10 -10
  42. package/dist/{vue-ui-annotator-DCBMlGAw.js → vue-ui-annotator-CAfU9AmU.js} +1 -1
  43. package/dist/{vue-ui-annotator-g2vIoGtS.cjs → vue-ui-annotator-Cu76-g8g.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-B95xQ8WK.js → vue-ui-bullet-CAP2CFQ2.js} +8 -8
  45. package/dist/{vue-ui-bullet-C5jEVTbE.cjs → vue-ui-bullet-D5QztIGw.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-BWM5iWqv.js → vue-ui-candlestick-BmIlcq5g.js} +11 -11
  47. package/dist/{vue-ui-candlestick-eqL2uYci.cjs → vue-ui-candlestick-D0SHq8xs.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-CyDUz_Gq.js → vue-ui-carousel-table-BfA0p_BQ.js} +4 -4
  49. package/dist/{vue-ui-carousel-table-y7VQhC4I.cjs → vue-ui-carousel-table-DTXjhQwk.cjs} +1 -1
  50. package/dist/{vue-ui-chestnut-DhqYkzID.js → vue-ui-chestnut-BmO2I_Bi.js} +8 -8
  51. package/dist/{vue-ui-chestnut-CVf4jIy8.cjs → vue-ui-chestnut-CXC7BN2X.cjs} +1 -1
  52. package/dist/{vue-ui-cursor-BZnAcEqs.js → vue-ui-cursor-CNuSnW81.js} +2 -2
  53. package/dist/{vue-ui-cursor-oziVE5oM.cjs → vue-ui-cursor-DwCDu9oO.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-D1f7-Glw.cjs → vue-ui-dashboard-CiGCEwlS.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-TqWW5RI5.js → vue-ui-dashboard-DgvdTtRt.js} +2 -2
  56. package/dist/{vue-ui-digits-DASTO7R_.js → vue-ui-digits-BITW4NUc.js} +2 -2
  57. package/dist/{vue-ui-digits-DQynEn2d.cjs → vue-ui-digits-DBW9vyIQ.cjs} +1 -1
  58. package/dist/{vue-ui-donut-DzyBoMNU.js → vue-ui-donut-DNh7PW9t.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-Da4D9v3R.js → vue-ui-donut-evolution-CZ5XSOIe.js} +11 -11
  60. package/dist/{vue-ui-donut-evolution-NbhQnprN.cjs → vue-ui-donut-evolution-DjNcAvzg.cjs} +1 -1
  61. package/dist/{vue-ui-donut-BR8Mg-n2.cjs → vue-ui-donut-puOFwfTi.cjs} +1 -1
  62. package/dist/{vue-ui-dumbbell-CTvRHWls.js → vue-ui-dumbbell-B6N4Vtyv.js} +10 -10
  63. package/dist/{vue-ui-dumbbell-DcJN9Ioz.cjs → vue-ui-dumbbell-BewjHirJ.cjs} +1 -1
  64. package/dist/{vue-ui-flow-aww0Tcl3.js → vue-ui-flow-Cew9Ezr2.js} +9 -9
  65. package/dist/{vue-ui-flow-9oyLtjZU.cjs → vue-ui-flow-DOOTZoZ3.cjs} +1 -1
  66. package/dist/{vue-ui-funnel-CqAc4qrq.js → vue-ui-funnel-D7_EP9pg.js} +8 -8
  67. package/dist/{vue-ui-funnel-B9Y1bLEB.cjs → vue-ui-funnel-OgT9lJwU.cjs} +1 -1
  68. package/dist/{vue-ui-galaxy-C5BIxb4j.js → vue-ui-galaxy-C2ZLbj4y.js} +11 -11
  69. package/dist/{vue-ui-galaxy-CuSb6qU7.cjs → vue-ui-galaxy-CXWjQf2D.cjs} +1 -1
  70. package/dist/{vue-ui-gauge-DmJY5Dfj.cjs → vue-ui-gauge-C29ZR7K9.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-Lbp4fSO6.js → vue-ui-gauge-ojDC8NQq.js} +7 -7
  72. package/dist/{vue-ui-gizmo-B2eu5Cgm.cjs → vue-ui-gizmo-4H4brRak.cjs} +1 -1
  73. package/dist/{vue-ui-gizmo-BhGFYCMO.js → vue-ui-gizmo-DSxqF4UQ.js} +3 -3
  74. package/dist/{vue-ui-heatmap-Cg8NbY9c.cjs → vue-ui-heatmap-CKGr-yZ-.cjs} +1 -1
  75. package/dist/{vue-ui-heatmap-pCtD1kfU.js → vue-ui-heatmap-DIX4q92p.js} +10 -10
  76. package/dist/vue-ui-history-plot-D1LCN49m.cjs +1 -0
  77. package/dist/vue-ui-history-plot-DxDQKN_n.js +852 -0
  78. package/dist/{vue-ui-kpi-f_UBt1sc.cjs → vue-ui-kpi-B801Z9Mu.cjs} +1 -1
  79. package/dist/{vue-ui-kpi-D8JYWPV_.js → vue-ui-kpi-CReMIy_Q.js} +3 -3
  80. package/dist/{vue-ui-mini-loader-WEjnMYYV.js → vue-ui-mini-loader-0iVPh6xI.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-mPxJfkT2.cjs → vue-ui-mini-loader-qLFnCdde.cjs} +1 -1
  82. package/dist/{vue-ui-molecule-3ZmmBGb2.js → vue-ui-molecule-CUitG78e.js} +11 -11
  83. package/dist/{vue-ui-molecule-OJyvyLfY.cjs → vue-ui-molecule-DruPveKE.cjs} +1 -1
  84. package/dist/{vue-ui-mood-radar-BNtsGg0D.js → vue-ui-mood-radar-BH2dtsW-.js} +11 -11
  85. package/dist/{vue-ui-mood-radar-C_WpF4wB.cjs → vue-ui-mood-radar-BythFKLg.cjs} +1 -1
  86. package/dist/{vue-ui-nested-donuts-jtOuJhbR.js → vue-ui-nested-donuts-DghK1QXS.js} +11 -11
  87. package/dist/{vue-ui-nested-donuts-B2jLubqd.cjs → vue-ui-nested-donuts-TzvvrR4G.cjs} +1 -1
  88. package/dist/{vue-ui-onion-DgzhhXA7.js → vue-ui-onion-D_nb00Z4.js} +11 -11
  89. package/dist/{vue-ui-onion-BFSYk82P.cjs → vue-ui-onion-F5UZYJdl.cjs} +1 -1
  90. package/dist/{vue-ui-parallel-coordinate-plot-C5AKz42e.js → vue-ui-parallel-coordinate-plot-BUkipMCR.js} +12 -12
  91. package/dist/{vue-ui-parallel-coordinate-plot-BFlAjzs3.cjs → vue-ui-parallel-coordinate-plot-p7BP1Ltj.cjs} +1 -1
  92. package/dist/{vue-ui-quadrant-BiApJsNE.cjs → vue-ui-quadrant-CcSOeR05.cjs} +1 -1
  93. package/dist/{vue-ui-quadrant-CqBNV30b.js → vue-ui-quadrant-uWMV9qOM.js} +12 -12
  94. package/dist/{vue-ui-quick-chart-DBbzmkAK.js → vue-ui-quick-chart-CmpHjNkq.js} +9 -9
  95. package/dist/{vue-ui-quick-chart-DsGbmmwr.cjs → vue-ui-quick-chart-DjlhRR3a.cjs} +1 -1
  96. package/dist/{vue-ui-radar-C2biHwNz.js → vue-ui-radar-CCQA3zwl.js} +12 -12
  97. package/dist/{vue-ui-radar-C4xga7lb.cjs → vue-ui-radar-Cwzxmt98.cjs} +1 -1
  98. package/dist/{vue-ui-rating-AF6PTMiG.cjs → vue-ui-rating-BV2S6hfA.cjs} +1 -1
  99. package/dist/{vue-ui-rating-F4DM4bFb.js → vue-ui-rating-CTipvzGg.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-B7ORrYO6.js → vue-ui-relation-circle-DB9viPCp.js} +7 -7
  101. package/dist/{vue-ui-relation-circle-CMxzMy2N.cjs → vue-ui-relation-circle-psK2FS34.cjs} +1 -1
  102. package/dist/{vue-ui-rings-Doq5O6yQ.js → vue-ui-rings-BkixUtjR.js} +11 -11
  103. package/dist/{vue-ui-rings-CgCIB6BD.cjs → vue-ui-rings-C3A5ybIQ.cjs} +1 -1
  104. package/dist/{vue-ui-scatter-DNS48w0P.js → vue-ui-scatter-BYwfdQo6.js} +12 -12
  105. package/dist/{vue-ui-scatter-Bw4_ui3D.cjs → vue-ui-scatter-HLM4oJjp.cjs} +1 -1
  106. package/dist/{vue-ui-screenshot-D_WCQPUk.js → vue-ui-screenshot-B75HYxGr.js} +1 -1
  107. package/dist/{vue-ui-screenshot-DuSWlrxS.cjs → vue-ui-screenshot-ChrgrH-d.cjs} +1 -1
  108. package/dist/vue-ui-skeleton-CchU2_i9.cjs +41 -0
  109. package/dist/{vue-ui-skeleton-Bw0j7S0v.js → vue-ui-skeleton-Dj3LsSHJ.js} +425 -302
  110. package/dist/{vue-ui-smiley-B-ETDTJ2.js → vue-ui-smiley-BJtXVaLr.js} +2 -2
  111. package/dist/{vue-ui-smiley-BlB4Chmp.cjs → vue-ui-smiley-KgNpjgZq.cjs} +1 -1
  112. package/dist/{vue-ui-spark-trend-kJnXlgAD.js → vue-ui-spark-trend-BOTACQYD.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-DuRx94ei.cjs → vue-ui-spark-trend-CjbGzz0O.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-DwGySfoF.js → vue-ui-sparkbar-DaSRb5Zx.js} +4 -4
  115. package/dist/{vue-ui-sparkbar-BVPRp_3-.cjs → vue-ui-sparkbar-aTZBQ0_K.cjs} +1 -1
  116. package/dist/{vue-ui-sparkgauge-CS92Bz1t.js → vue-ui-sparkgauge-bYKCyDr4.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-CWufhmcn.cjs → vue-ui-sparkgauge-z-QDyogC.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-BSL1pxc1.cjs → vue-ui-sparkhistogram-Bi4hTOrp.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-BEDVWIsL.js → vue-ui-sparkhistogram-ntiCLO0c.js} +5 -5
  120. package/dist/{vue-ui-sparkline-xQ2ASk9Q.cjs → vue-ui-sparkline-CftoCs-2.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-BWHDD9ZL.js → vue-ui-sparkline-RfiNbiSF.js} +4 -4
  122. package/dist/{vue-ui-sparkstackbar-UaXwlx2p.js → vue-ui-sparkstackbar-C58MiKn1.js} +5 -5
  123. package/dist/{vue-ui-sparkstackbar-DczF0DoH.cjs → vue-ui-sparkstackbar-CUtOdArY.cjs} +1 -1
  124. package/dist/{vue-ui-stackbar-EBbZeb4L.js → vue-ui-stackbar-BCQcJPVi.js} +12 -12
  125. package/dist/{vue-ui-stackbar-DJiE_c3H.cjs → vue-ui-stackbar-RDsR0eb7.cjs} +1 -1
  126. package/dist/{vue-ui-strip-plot-CUqnskSY.cjs → vue-ui-strip-plot-Bwa1VHOF.cjs} +1 -1
  127. package/dist/{vue-ui-strip-plot-C5wIUe2j.js → vue-ui-strip-plot-CHnmAzf2.js} +11 -11
  128. package/dist/{vue-ui-table-BsXhzqil.cjs → vue-ui-table-BUBmWwoM.cjs} +1 -1
  129. package/dist/{vue-ui-table-CopdN0r5.js → vue-ui-table-DIq9_CR2.js} +1 -1
  130. package/dist/{vue-ui-table-heatmap-tA_0lJjn.js → vue-ui-table-heatmap-7cV60m5v.js} +4 -4
  131. package/dist/{vue-ui-table-heatmap-BGi-lAnz.cjs → vue-ui-table-heatmap-Dpj4icul.cjs} +1 -1
  132. package/dist/{vue-ui-table-sparkline-9HdhBdnp.js → vue-ui-table-sparkline-DL5U9f1q.js} +5 -5
  133. package/dist/{vue-ui-table-sparkline-BHyPQXZ0.cjs → vue-ui-table-sparkline-DqaPQvbW.cjs} +1 -1
  134. package/dist/{vue-ui-thermometer-BsR1qCbw.js → vue-ui-thermometer-B5YD4_IU.js} +7 -7
  135. package/dist/{vue-ui-thermometer-DJ3auHYk.cjs → vue-ui-thermometer-gYUxn5Gw.cjs} +1 -1
  136. package/dist/{vue-ui-timer-DxXbrlZA.cjs → vue-ui-timer-5S4xc1pV.cjs} +1 -1
  137. package/dist/{vue-ui-timer-Bx5uXdY4.js → vue-ui-timer-uoJwsXAJ.js} +5 -5
  138. package/dist/{vue-ui-tiremarks-m7OGuMw6.js → vue-ui-tiremarks-BoDu-FF4.js} +7 -7
  139. package/dist/{vue-ui-tiremarks-BIfgN7ZG.cjs → vue-ui-tiremarks-DcQC2y7y.cjs} +1 -1
  140. package/dist/{vue-ui-treemap-6bRwR5CK.cjs → vue-ui-treemap-CTRfSzcK.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-Bf7wnDl1.js → vue-ui-treemap-DikOtBDn.js} +11 -11
  142. package/dist/{vue-ui-vertical-bar-BhiiTzOI.cjs → vue-ui-vertical-bar-BkfPw2Aw.cjs} +1 -1
  143. package/dist/{vue-ui-vertical-bar-DI3gBfva.js → vue-ui-vertical-bar-DUYPYCzB.js} +11 -11
  144. package/dist/{vue-ui-waffle-CXVfDfFQ.cjs → vue-ui-waffle-B4SzHyh9.cjs} +1 -1
  145. package/dist/{vue-ui-waffle-DIeMOgnB.js → vue-ui-waffle-BAhSD-p7.js} +11 -11
  146. package/dist/{vue-ui-wheel-DqlLxmCx.cjs → vue-ui-wheel-B33Bwfo4.cjs} +1 -1
  147. package/dist/{vue-ui-wheel-BsDuXp0I.js → vue-ui-wheel-BDiifbe4.js} +7 -7
  148. package/dist/{vue-ui-word-cloud-COixZsVG.js → vue-ui-word-cloud-BmbB0sAA.js} +10 -10
  149. package/dist/{vue-ui-word-cloud-CwX4PJRH.cjs → vue-ui-word-cloud-CE-mdCqu.cjs} +1 -1
  150. package/dist/{vue-ui-xy-zDZjZ9y0.js → vue-ui-xy-B9m2QHhU.js} +14 -14
  151. package/dist/{vue-ui-xy-CI0yZAIl.cjs → vue-ui-xy-C65gGblV.cjs} +1 -1
  152. package/dist/{vue-ui-xy-canvas-BdIsNYh_.js → vue-ui-xy-canvas-Bi10imsb.js} +11 -11
  153. package/dist/{vue-ui-xy-canvas-ZLeAE6Ij.cjs → vue-ui-xy-canvas-DCRImNW6.cjs} +1 -1
  154. package/package.json +1 -1
  155. package/dist/index-Dgjlvd_3.cjs +0 -9
  156. package/dist/vue-data-ui-Cd8mwZKF.cjs +0 -9
  157. package/dist/vue-ui-skeleton-Ng7RKLmM.cjs +0 -41
@@ -0,0 +1,852 @@
1
+ import { ref as c, computed as d, onMounted as Ye, onBeforeUnmount as je, watch as Be, openBlock as s, createElementBlock as r, normalizeClass as I, normalizeStyle as A, renderSlot as x, createBlock as S, createCommentVNode as v, unref as p, createSlots as We, withCtx as m, normalizeProps as Y, guardReactiveProps as j, createVNode as me, Fragment as b, renderList as k, createElementVNode as T, toDisplayString as L, createTextVNode as Ee, nextTick as He } from "vue";
2
+ import { u as Ge, c as ge, o as Ue, e as be, g as Re, b as Ve, d as qe, p as H, C as ke, i as O, f as F, X as Ze, l as Je, h as Ke, F as Qe, t as et, a as tt, M as G, x as lt, q as at, r as st, E as N } from "./index-CFiXy4nY.js";
3
+ import { u as we } from "./useNestedProp-3d6JiXbm.js";
4
+ import { u as ot, U as rt } from "./usePrinter-DaGf53v6.js";
5
+ import { _ as nt } from "./PackageVersion-B3zZMf_E.js";
6
+ import { L as ut } from "./Legend-CjX5JjbY.js";
7
+ import { _ as it } from "./Title-DfZARCN2.js";
8
+ import { _ as ct } from "./Tooltip-CvDe0uXm.js";
9
+ import { D as vt } from "./DataTable-gCisz4py.js";
10
+ import ht from "./vue-ui-accordion-DORcK2IX.js";
11
+ import { P as yt } from "./PenAndPaper-BQ5u-Bj0.js";
12
+ import dt from "./vue-ui-skeleton-Dj3LsSHJ.js";
13
+ import { t as ft, u as xt } from "./useResponsive-CoxXLe23.js";
14
+ import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const mt = ["id"], gt = ["xmlns", "viewBox"], bt = { key: 0 }, kt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], _t = ["stop-color"], $t = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = { key: 2 }, Tt = ["x", "y", "fill", "font-size"], Lt = ["transform", "font-size", "fill", "font-weight"], zt = { key: 4 }, St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nt = { key: 5 }, Pt = ["transform", "fill", "font-size", "text-anchor"], It = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["d", "stroke", "stroke-width"], Dt = ["d", "stroke", "stroke-width"], Yt = ["cx", "cy", "fill", "r"], jt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Bt = { key: 1 }, Wt = ["x", "y", "font-size", "fill", "font-weight"], Et = { key: 2 }, Ht = ["x", "y", "font-size", "font-weight", "fill"], Gt = ["cx", "cy", "r", "onMouseenter", "onClick"], Ut = {
16
+ key: 5,
17
+ class: "vue-data-ui-watermark"
18
+ }, Rt = ["onClick"], Vt = ["innerHTML"], qt = {
19
+ __name: "vue-ui-history-plot",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectLegend", "selectDatapoint"],
35
+ setup(Ce, { expose: _e, emit: J }) {
36
+ const h = Ce, { vue_ui_history_plot: $e } = Ge(), P = c(null), K = c(null), Q = c(0), ee = c(null), te = c(0), le = c(0), ae = c(0), B = c(null), se = c(null), X = c(ge()), U = c(!1), R = c(""), g = c([]), V = c(!1), _ = c(null), D = c(!1), oe = c(null), w = d({
37
+ get: () => !!h.dataset && h.dataset.length,
38
+ set: (t) => t
39
+ });
40
+ Ye(re), je(() => {
41
+ B.value && B.value.disconnect();
42
+ });
43
+ function re() {
44
+ if (Ue(h.dataset) ? be({
45
+ componentName: "VueUiHistoryPlot",
46
+ type: "dataset"
47
+ }) : h.dataset.forEach((t, a) => {
48
+ Re({
49
+ datasetObject: t,
50
+ requiredAttributes: ["name", "values"]
51
+ }).forEach((l) => {
52
+ w.value = !1, be({
53
+ componentName: "VueUiHistoryPlot",
54
+ type: "datasetSerieAttribute",
55
+ property: l,
56
+ index: a
57
+ });
58
+ });
59
+ }), e.value.responsive) {
60
+ const t = ft(() => {
61
+ const { width: a, height: l } = xt({
62
+ chart: P.value,
63
+ title: e.value.style.chart.title.text ? K.value : null,
64
+ noTitle: se.value,
65
+ legend: e.value.style.chart.legend.show ? ee.value : null,
66
+ source: oe.value
67
+ });
68
+ y.value.width = a, y.value.height = l, n.value.plots = N({
69
+ relator: Math.min(a, l),
70
+ adjuster: 600,
71
+ source: e.value.style.chart.plots.radius,
72
+ threshold: 3,
73
+ fallback: 3
74
+ }), n.value.indexLabels = N({
75
+ relator: Math.min(a, l),
76
+ adjuster: 600,
77
+ source: e.value.style.chart.plots.indexLabels.fontSize,
78
+ threshold: 6,
79
+ fallback: 6
80
+ }), n.value.labels = N({
81
+ relator: Math.min(a, l),
82
+ adjuster: 600,
83
+ source: e.value.style.chart.plots.labels.fontSize,
84
+ threshold: 6,
85
+ fallback: 6
86
+ }), n.value.xAxisLabels = N({
87
+ relator: Math.min(a, l),
88
+ adjuster: 600,
89
+ source: e.value.style.chart.axes.x.labels.fontSize,
90
+ threshold: 6,
91
+ fallback: 6
92
+ }), n.value.xAxisName = N({
93
+ relator: Math.min(a, l),
94
+ adjuster: 600,
95
+ source: e.value.style.chart.axes.x.name.fontSize,
96
+ threshold: 6,
97
+ fallback: 6
98
+ }), n.value.yAxisLabels = N({
99
+ relator: Math.min(a, l),
100
+ adjuster: 600,
101
+ source: e.value.style.chart.axes.y.labels.fontSize,
102
+ threshold: 6,
103
+ fallback: 6
104
+ }), n.value.yAxisName = N({
105
+ relator: Math.min(a, l),
106
+ adjuster: 600,
107
+ source: e.value.style.chart.axes.y.name.fontSize,
108
+ threshold: 6,
109
+ fallback: 6
110
+ });
111
+ });
112
+ B.value = new ResizeObserver(t), B.value.observe(P.value.parentNode);
113
+ }
114
+ }
115
+ function ne() {
116
+ const t = we({
117
+ userConfig: h.config,
118
+ defaultConfig: $e
119
+ });
120
+ let a = {};
121
+ return t.theme ? a = {
122
+ ...we({
123
+ userConfig: et.vue_ui_history_plot[t.theme] || h.config,
124
+ defaultConfig: t
125
+ }),
126
+ customPalette: tt[t.theme] || H
127
+ } : a = t, h.config && G(h.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = h.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, h.config && G(h.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = h.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, h.config && G(h.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = h.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, h.config && G(h.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = h.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
128
+ }
129
+ const e = d({
130
+ get: () => ne(),
131
+ set: (t) => t
132
+ });
133
+ Be(() => h.config, (t) => {
134
+ e.value = ne(), re(), Q.value += 1, le.value += 1, te.value += 1, y.value.height = e.value.style.chart.height, y.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize;
135
+ }, { deep: !0 });
136
+ const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: ve } = ot({
137
+ elementId: `history_plot_${X.value}`,
138
+ fileName: e.value.style.chart.title.text || "vue-ui-history-plot"
139
+ }), Me = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ae = d(() => Ve(e.value.customPalette)), $ = c({
140
+ showTable: e.value.table.show,
141
+ showTooltip: e.value.style.chart.tooltip.show
142
+ }), y = c({
143
+ height: e.value.style.chart.height,
144
+ width: e.value.style.chart.width
145
+ }), u = d(() => {
146
+ const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top;
147
+ return {
148
+ left: t,
149
+ top: a,
150
+ right: y.value.width - e.value.style.chart.padding.right,
151
+ bottom: y.value.height - e.value.style.chart.padding.bottom,
152
+ width: y.value.width - t - e.value.style.chart.padding.right,
153
+ height: y.value.height - a - e.value.style.chart.padding.bottom
154
+ };
155
+ }), n = c({
156
+ plots: e.value.style.chart.plots.radius,
157
+ indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
158
+ labels: e.value.style.chart.plots.labels.fontSize,
159
+ xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
160
+ xAxisName: e.value.style.chart.axes.x.name.fontSize,
161
+ yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
162
+ yAxisName: e.value.style.chart.axes.y.name.fontSize
163
+ }), M = d(() => w.value ? h.dataset.map((t, a) => ({
164
+ ...t,
165
+ color: t.color ? qe(t.color) : Ae.value[a] || H[a] || H[a % H.length],
166
+ seriesIndex: a
167
+ })) : []), Te = d(() => w.value ? Math.max(...M.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Le = d(() => {
168
+ if (!w.value) return 1;
169
+ const t = Math.min(...M.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
170
+ return t < 0 ? t : 0;
171
+ }), ze = d(() => w.value ? Math.max(...M.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Se = d(() => {
172
+ if (!w.value) return 1;
173
+ const t = Math.min(...M.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
174
+ return t < 0 ? t : 0;
175
+ }), f = d(() => {
176
+ const t = ke(
177
+ e.value.style.chart.axes.x.scaleMin === null ? Le.value : e.value.style.chart.axes.x.scaleMin,
178
+ e.value.style.chart.axes.x.scaleMax === null ? Te.value : e.value.style.chart.axes.x.scaleMax,
179
+ e.value.style.chart.axes.x.ticks
180
+ ), a = ke(
181
+ e.value.style.chart.axes.y.scaleMin === null ? Se.value : e.value.style.chart.axes.y.scaleMin,
182
+ e.value.style.chart.axes.y.scaleMax === null ? ze.value : e.value.style.chart.axes.y.scaleMax,
183
+ e.value.style.chart.axes.y.ticks
184
+ );
185
+ return {
186
+ x: t,
187
+ y: a,
188
+ tickX: t.ticks.map((l) => ({
189
+ x: u.value.left + (l - t.min) / (t.max - t.min) * u.value.width,
190
+ y1: u.value.top,
191
+ y2: u.value.bottom,
192
+ value: l
193
+ })),
194
+ tickY: a.ticks.map((l) => ({
195
+ y: u.value.bottom - (l - a.min) / (a.max - a.min) * u.value.height,
196
+ x1: u.value.left,
197
+ x2: u.value.right,
198
+ value: l
199
+ }))
200
+ };
201
+ });
202
+ function Ne(t) {
203
+ const a = f.value.x.min < 0 ? Math.abs(f.value.x.min) : f.value.x.min > 0 ? -f.value.x.min : 0;
204
+ return u.value.left + ((t || 0) + a) / (f.value.x.max + a) * u.value.width;
205
+ }
206
+ function Pe(t) {
207
+ const a = f.value.y.min < 0 ? Math.abs(f.value.y.min) : f.value.y.min > 0 ? -f.value.y.min : 0;
208
+ return u.value.bottom - ((t || 0) + a) / (f.value.y.max + a) * u.value.height;
209
+ }
210
+ const z = d(() => M.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
211
+ const l = t.values.map((o, C) => ({
212
+ valueX: o.x,
213
+ valueY: o.y,
214
+ label: o.label,
215
+ x: Ne(o.x),
216
+ y: Pe(o.y),
217
+ color: t.color,
218
+ seriesName: t.name,
219
+ id: ge()
220
+ })), i = l.map((o) => `${o.x},${o.y} `).join("").trim();
221
+ return {
222
+ ...t,
223
+ plots: l,
224
+ path: `M${i}`
225
+ };
226
+ }));
227
+ function he(t) {
228
+ g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
229
+ }
230
+ const ye = d(() => M.value.map((t) => ({
231
+ ...t,
232
+ opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
233
+ segregate: () => he(t.seriesIndex),
234
+ isSegregated: g.value.includes(t.seriesIndex),
235
+ shape: "circle"
236
+ }))), Ie = d(() => ({
237
+ cy: "history-plot-div-legend",
238
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
239
+ color: e.value.style.chart.legend.color,
240
+ fontSize: e.value.style.chart.legend.fontSize,
241
+ paddingBottom: 12,
242
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
243
+ }));
244
+ function Oe(t) {
245
+ J("selectDatapoint", t);
246
+ }
247
+ function de(t) {
248
+ J("selectLegend", {
249
+ ...t,
250
+ isSegregated: !t.isSegregated,
251
+ opacity: t.isSegregated ? 1 : 0.5
252
+ });
253
+ }
254
+ function Fe(t) {
255
+ V.value = t, ae.value += 1;
256
+ }
257
+ const q = c(null);
258
+ function Xe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
259
+ q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: M.value }, _.value = t;
260
+ const i = e.value.style.chart.tooltip.customFormat;
261
+ if (D.value = !1, lt(i))
262
+ try {
263
+ const o = i({
264
+ seriesIndex: l,
265
+ datapoint: t,
266
+ plotIndex: a,
267
+ series: M.value,
268
+ config: e.value
269
+ });
270
+ typeof o == "string" && (R.value = o, D.value = !0);
271
+ } catch {
272
+ console.warn("Custom format cannot be applied."), D.value = !1;
273
+ }
274
+ if (!D.value) {
275
+ let o = "";
276
+ o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.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="${t.color}"/></svg><span>${t.seriesName}</span></div>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${O(
277
+ e.value.style.chart.axes.x.labels.formatter,
278
+ t.valueX,
279
+ F({
280
+ p: e.value.style.chart.axes.x.labels.prefix,
281
+ v: t.valueX,
282
+ s: e.value.style.chart.axes.x.labels.suffix,
283
+ r: e.value.style.chart.axes.x.labels.rounding
284
+ })
285
+ )}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${O(
286
+ e.value.style.chart.axes.y.labels.formatter,
287
+ t.valueY,
288
+ F({
289
+ p: e.value.style.chart.axes.y.labels.prefix,
290
+ v: t.valueY,
291
+ s: e.value.style.chart.axes.y.labels.suffix,
292
+ r: e.value.style.chart.axes.y.labels.rounding
293
+ })
294
+ )}</div>`, R.value = `<div>${o}</div>`;
295
+ }
296
+ U.value = !0;
297
+ }
298
+ d(() => ({ head: z.value.map((a) => ({
299
+ name: a.name,
300
+ color: a.color
301
+ })) }));
302
+ const W = d(() => {
303
+ const t = [
304
+ e.value.table.columnNames.series,
305
+ e.value.table.columnNames.datapoint,
306
+ e.value.table.columnNames.x,
307
+ e.value.table.columnNames.y
308
+ ], a = z.value.flatMap((i) => i.plots.map((o) => [
309
+ {
310
+ color: o.color,
311
+ name: o.seriesName
312
+ },
313
+ o.label,
314
+ O(
315
+ e.value.style.chart.axes.x.labels.formatter,
316
+ o.valueX,
317
+ F({
318
+ p: e.value.style.chart.axes.x.labels.prefix,
319
+ v: o.valueX,
320
+ s: e.value.style.chart.axes.x.labels.suffix,
321
+ r: e.value.style.chart.axes.x.labels.rounding
322
+ })
323
+ ),
324
+ O(
325
+ e.value.style.chart.axes.y.labels.formatter,
326
+ o.valueY,
327
+ F({
328
+ p: e.value.style.chart.axes.y.labels.prefix,
329
+ v: o.valueY,
330
+ s: e.value.style.chart.axes.y.labels.suffix,
331
+ r: e.value.style.chart.axes.y.labels.rounding
332
+ })
333
+ )
334
+ ])), l = {
335
+ th: {
336
+ backgroundColor: e.value.table.th.backgroundColor,
337
+ color: e.value.table.th.color,
338
+ outline: e.value.table.th.outline
339
+ },
340
+ td: {
341
+ backgroundColor: e.value.table.td.backgroundColor,
342
+ color: e.value.table.td.color,
343
+ outline: e.value.table.td.outline
344
+ },
345
+ breakpoint: e.value.table.responsiveBreakpoint
346
+ };
347
+ return {
348
+ head: t,
349
+ body: a,
350
+ config: l,
351
+ colNames: t
352
+ };
353
+ });
354
+ function fe() {
355
+ He(() => {
356
+ const t = [
357
+ [e.value.table.columnNames.series],
358
+ [e.value.table.columnNames.datapoint],
359
+ [e.value.table.columnNames.x],
360
+ [e.value.table.columnNames.y]
361
+ ], a = z.value.flatMap((o) => o.plots.map((C) => [
362
+ [C.seriesName],
363
+ [C.label],
364
+ [C.valueX],
365
+ [C.valueY]
366
+ ])), l = [
367
+ [e.value.style.chart.title.text],
368
+ [e.value.style.chart.title.subtitle.text],
369
+ t
370
+ ].concat(a), i = at(l);
371
+ st({
372
+ csvContent: i,
373
+ title: e.value.style.chart.title.text || "vue-ui-history-plot"
374
+ });
375
+ });
376
+ }
377
+ const E = c(!1);
378
+ function Z() {
379
+ E.value = !E.value;
380
+ }
381
+ function xe() {
382
+ $.value.showTable = !$.value.showTable;
383
+ }
384
+ function pe() {
385
+ $.value.showTooltip = !$.value.showTooltip;
386
+ }
387
+ function De() {
388
+ return z.value;
389
+ }
390
+ return _e({
391
+ getData: De,
392
+ generatePdf: ce,
393
+ generateCsv: fe,
394
+ generateImage: ve,
395
+ toggleTable: xe,
396
+ toggleTooltip: pe,
397
+ toggleAnnotator: Z
398
+ }), (t, a) => (s(), r("div", {
399
+ id: `history_plot_${X.value}`,
400
+ ref_key: "historyPlotChart",
401
+ ref: P,
402
+ class: I({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": V.value }),
403
+ style: A(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
404
+ }, [
405
+ x(t.$slots, "userConfig", {}, void 0, !0),
406
+ e.value.userOptions.buttons.annotator ? (s(), S(yt, {
407
+ key: 0,
408
+ parent: P.value,
409
+ backgroundColor: e.value.style.chart.backgroundColor,
410
+ color: e.value.style.chart.color,
411
+ active: E.value,
412
+ onClose: Z
413
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
414
+ Me.value ? (s(), r("div", {
415
+ key: 1,
416
+ ref_key: "noTitle",
417
+ ref: se,
418
+ class: "vue-data-ui-no-title-space",
419
+ style: "height:36px; width: 100%;background:transparent"
420
+ }, null, 512)) : v("", !0),
421
+ e.value.style.chart.title.text ? (s(), r("div", {
422
+ key: 2,
423
+ ref_key: "chartTitle",
424
+ ref: K,
425
+ class: "vue-ui-xy-title",
426
+ style: A(`font-family:${e.value.style.fontFamily}`)
427
+ }, [
428
+ (s(), S(it, {
429
+ key: `title_${Q.value}`,
430
+ config: {
431
+ title: {
432
+ cy: "history-plot-div-title",
433
+ ...e.value.style.chart.title
434
+ },
435
+ subtitle: {
436
+ cy: "history-plot-div-subtitle",
437
+ ...e.value.style.chart.title.subtitle
438
+ }
439
+ }
440
+ }, null, 8, ["config"]))
441
+ ], 4)) : v("", !0),
442
+ e.value.userOptions.show && w.value ? (s(), S(rt, {
443
+ ref: "details",
444
+ key: `user_option_${ae.value}`,
445
+ backgroundColor: e.value.style.chart.backgroundColor,
446
+ color: e.value.style.chart.color,
447
+ isPrinting: p(ue),
448
+ isImaging: p(ie),
449
+ uid: X.value,
450
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
451
+ hasPdf: e.value.userOptions.buttons.pdf,
452
+ hasImg: e.value.userOptions.buttons.img,
453
+ hasXls: e.value.userOptions.buttons.csv,
454
+ hasTable: e.value.userOptions.buttons.table,
455
+ hasLabel: !1,
456
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
457
+ isFullscreen: V.value,
458
+ chartElement: P.value,
459
+ position: e.value.userOptions.position,
460
+ isTooltip: $.value.showTooltip,
461
+ titles: { ...e.value.userOptions.buttonTitles },
462
+ hasAnnotator: e.value.userOptions.buttons.annotator,
463
+ isAnnotation: E.value,
464
+ onToggleFullscreen: Fe,
465
+ onGeneratePdf: p(ce),
466
+ onGenerateCsv: fe,
467
+ onGenerateImage: p(ve),
468
+ onToggleTable: xe,
469
+ onToggleTooltip: pe,
470
+ onToggleAnnotator: Z
471
+ }, We({ _: 2 }, [
472
+ t.$slots.optionTooltip ? {
473
+ name: "optionTooltip",
474
+ fn: m(() => [
475
+ x(t.$slots, "optionTooltip", {}, void 0, !0)
476
+ ]),
477
+ key: "0"
478
+ } : void 0,
479
+ t.$slots.optionPdf ? {
480
+ name: "optionPdf",
481
+ fn: m(() => [
482
+ x(t.$slots, "optionPdf", {}, void 0, !0)
483
+ ]),
484
+ key: "1"
485
+ } : void 0,
486
+ t.$slots.optionCsv ? {
487
+ name: "optionCsv",
488
+ fn: m(() => [
489
+ x(t.$slots, "optionCsv", {}, void 0, !0)
490
+ ]),
491
+ key: "2"
492
+ } : void 0,
493
+ t.$slots.optionImg ? {
494
+ name: "optionImg",
495
+ fn: m(() => [
496
+ x(t.$slots, "optionImg", {}, void 0, !0)
497
+ ]),
498
+ key: "3"
499
+ } : void 0,
500
+ t.$slots.optionTable ? {
501
+ name: "optionTable",
502
+ fn: m(() => [
503
+ x(t.$slots, "optionTable", {}, void 0, !0)
504
+ ]),
505
+ key: "4"
506
+ } : void 0,
507
+ t.$slots.optionFullscreen ? {
508
+ name: "optionFullscreen",
509
+ fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
510
+ x(t.$slots, "optionFullscreen", Y(j({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
511
+ ]),
512
+ key: "5"
513
+ } : void 0,
514
+ t.$slots.optionAnnotator ? {
515
+ name: "optionAnnotator",
516
+ fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
517
+ x(t.$slots, "optionAnnotator", Y(j({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
518
+ ]),
519
+ key: "6"
520
+ } : void 0
521
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
522
+ w.value ? (s(), r("svg", {
523
+ key: 4,
524
+ xmlns: p(Ze),
525
+ viewBox: `0 0 ${y.value.width < 0 ? 0.1 : y.value.width} ${y.value.height < 0 ? 0.1 : y.value.height}`,
526
+ style: A(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
527
+ }, [
528
+ me(nt),
529
+ e.value.style.chart.plots.gradient.show ? (s(), r("defs", bt, [
530
+ (s(!0), r(b, null, k(z.value, (l, i) => (s(), r("radialGradient", {
531
+ id: `gradient_${i}_${X.value}`,
532
+ fy: "30%"
533
+ }, [
534
+ T("stop", {
535
+ offset: "10%",
536
+ "stop-color": p(Je)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
537
+ }, null, 8, wt),
538
+ T("stop", {
539
+ offset: "90%",
540
+ "stop-color": p(Ke)(l.color, 0.1)
541
+ }, null, 8, Ct),
542
+ T("stop", {
543
+ offset: "100%",
544
+ "stop-color": l.color
545
+ }, null, 8, _t)
546
+ ], 8, kt))), 256))
547
+ ])) : v("", !0),
548
+ e.value.style.chart.grid.verticalLines.show ? (s(), r("g", $t, [
549
+ (s(!0), r(b, null, k(f.value.tickX, (l) => (s(), r("line", {
550
+ x1: l.x,
551
+ x2: l.x,
552
+ y1: l.y1,
553
+ y2: l.y2,
554
+ stroke: e.value.style.chart.grid.verticalLines.stroke,
555
+ "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
556
+ "stroke-linecap": "round"
557
+ }, null, 8, Mt))), 256))
558
+ ])) : v("", !0),
559
+ e.value.style.chart.axes.y.labels.show ? (s(), r("g", At, [
560
+ (s(!0), r(b, null, k(f.value.tickY, (l) => (s(), r("text", {
561
+ x: u.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
562
+ y: l.y + n.value.yAxisLabels / 3,
563
+ fill: e.value.style.chart.axes.y.labels.color,
564
+ "font-size": n.value.yAxisLabels,
565
+ "text-anchor": "end"
566
+ }, L(p(O)(
567
+ e.value.style.chart.axes.y.labels.formatter,
568
+ l.value,
569
+ p(F)({
570
+ p: e.value.style.chart.axes.y.labels.prefix,
571
+ v: l.value,
572
+ s: e.value.style.chart.axes.y.labels.suffix,
573
+ r: e.value.style.chart.axes.y.labels.rounding
574
+ })
575
+ )), 9, Tt))), 256))
576
+ ])) : v("", !0),
577
+ e.value.style.chart.axes.y.name.text ? (s(), r("text", {
578
+ key: 3,
579
+ transform: `translate(${e.value.style.chart.axes.y.name.offsetX + n.value.yAxisName}, ${y.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
580
+ "font-size": n.value.yAxisName,
581
+ fill: e.value.style.chart.axes.y.name.color,
582
+ "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
583
+ "text-anchor": "middle"
584
+ }, L(e.value.style.chart.axes.y.name.text), 9, Lt)) : v("", !0),
585
+ e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", zt, [
586
+ (s(!0), r(b, null, k(f.value.tickY, (l) => (s(), r("line", {
587
+ x1: l.x1,
588
+ x2: l.x2,
589
+ y1: l.y,
590
+ y2: l.y,
591
+ stroke: e.value.style.chart.grid.horizontalLines.stroke,
592
+ "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
593
+ "stroke-linecap": "round"
594
+ }, null, 8, St))), 256))
595
+ ])) : v("", !0),
596
+ e.value.style.chart.axes.x.labels.show ? (s(), r("g", Nt, [
597
+ (s(!0), r(b, null, k(f.value.tickX, (l) => (s(), r("text", {
598
+ transform: `translate(${l.x}, ${u.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
599
+ fill: e.value.style.chart.axes.x.labels.color,
600
+ "font-size": n.value.xAxisLabels,
601
+ "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
602
+ }, L(p(O)(
603
+ e.value.style.chart.axes.x.labels.formatter,
604
+ l.value,
605
+ p(F)({
606
+ p: e.value.style.chart.axes.x.labels.prefix,
607
+ v: l.value,
608
+ s: e.value.style.chart.axes.x.labels.suffix,
609
+ r: e.value.style.chart.axes.x.labels.rounding
610
+ })
611
+ )), 9, Pt))), 256))
612
+ ])) : v("", !0),
613
+ e.value.style.chart.axes.x.name.text ? (s(), r("text", {
614
+ key: 6,
615
+ x: y.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
616
+ y: y.value.height + e.value.style.chart.axes.x.name.offsetY,
617
+ "font-size": n.value.xAxisName,
618
+ fill: e.value.style.chart.axes.x.name.color,
619
+ "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
620
+ "text-anchor": "middle"
621
+ }, L(e.value.style.chart.axes.x.name.text), 9, It)) : v("", !0),
622
+ e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
623
+ key: 7,
624
+ x1: u.value.left,
625
+ x2: u.value.left + u.value.width,
626
+ y1: u.value.bottom,
627
+ y2: u.value.bottom,
628
+ stroke: e.value.style.chart.grid.xAxis.stroke,
629
+ "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
630
+ "stroke-linecap": "round"
631
+ }, null, 8, Ot)) : v("", !0),
632
+ e.value.style.chart.grid.yAxis.show ? (s(), r("line", {
633
+ key: 8,
634
+ x1: u.value.left,
635
+ x2: u.value.left,
636
+ y1: u.value.top,
637
+ y2: u.value.bottom,
638
+ stroke: e.value.style.chart.grid.yAxis.stroke,
639
+ "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
640
+ "stroke-linecap": "round"
641
+ }, null, 8, Ft)) : v("", !0),
642
+ (s(!0), r(b, null, k(z.value, (l, i) => (s(), r("g", null, [
643
+ e.value.style.chart.paths.show ? (s(), r("g", {
644
+ key: 0,
645
+ style: A({
646
+ opacity: _.value === null ? 1 : 0.3
647
+ })
648
+ }, [
649
+ T("path", {
650
+ d: l.path,
651
+ stroke: e.value.style.chart.backgroundColor,
652
+ "stroke-width": e.value.style.chart.paths.strokeWidth * 2,
653
+ fill: "none",
654
+ class: I({ animated: e.value.useCssAnimation })
655
+ }, null, 10, Xt),
656
+ T("path", {
657
+ d: l.path,
658
+ stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
659
+ "stroke-width": e.value.style.chart.paths.strokeWidth,
660
+ fill: "none",
661
+ class: I({ animated: e.value.useCssAnimation })
662
+ }, null, 10, Dt)
663
+ ], 4)) : v("", !0),
664
+ (s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
665
+ cx: o.x,
666
+ cy: o.y,
667
+ fill: e.value.style.chart.backgroundColor,
668
+ r: n.value.plots,
669
+ stroke: "none"
670
+ }, null, 8, Yt))), 256)),
671
+ (s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
672
+ cx: o.x,
673
+ cy: o.y,
674
+ fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${X.value})` : o.color,
675
+ r: n.value.plots,
676
+ stroke: e.value.style.chart.plots.stroke,
677
+ "stroke-width": e.value.style.chart.plots.strokeWidth,
678
+ class: I({ animated: e.value.useCssAnimation }),
679
+ style: A({
680
+ opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
681
+ transition: "opacity 0.2s ease-in-out"
682
+ })
683
+ }, null, 14, jt))), 256)),
684
+ e.value.style.chart.plots.labels.show ? (s(), r("g", Bt, [
685
+ (s(!0), r(b, null, k(l.plots, (o) => (s(), r("text", {
686
+ x: o.x + e.value.style.chart.plots.labels.offsetX,
687
+ y: o.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
688
+ "font-size": n.value.labels,
689
+ fill: e.value.style.chart.plots.labels.color,
690
+ "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
691
+ "text-anchor": "middle",
692
+ class: I({ animated: e.value.useCssAnimation }),
693
+ style: A({
694
+ opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
695
+ transition: "opacity 0.2s ease-in-out"
696
+ })
697
+ }, L(o.label), 15, Wt))), 256))
698
+ ])) : v("", !0),
699
+ e.value.style.chart.plots.indexLabels.show ? (s(), r("g", Et, [
700
+ (s(!0), r(b, null, k(l.plots, (o, C) => (s(), r("text", {
701
+ x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
702
+ y: o.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
703
+ "font-size": n.value.indexLabels,
704
+ "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
705
+ fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? p(Qe)(l.color) : e.value.style.chart.plots.indexLabels.color,
706
+ "text-anchor": "middle",
707
+ class: I({ animated: e.value.useCssAnimation }),
708
+ style: A({
709
+ opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
710
+ transition: "opacity 0.2s ease-in-out"
711
+ })
712
+ }, L(e.value.style.chart.plots.indexLabels.startAtZero ? C : C + 1), 15, Ht))), 256))
713
+ ])) : v("", !0)
714
+ ]))), 256)),
715
+ (s(!0), r(b, null, k(z.value, (l) => (s(), r("g", null, [
716
+ (s(!0), r(b, null, k(l.plots, (i, o) => (s(), r("circle", {
717
+ cx: i.x,
718
+ cy: i.y,
719
+ fill: "transparent",
720
+ r: n.value.plots,
721
+ stroke: "none",
722
+ onMouseenter: (C) => Xe({
723
+ datapoint: i,
724
+ plotIndex: o,
725
+ seriesIndex: l.seriesIndex
726
+ }),
727
+ onMouseleave: a[0] || (a[0] = (C) => {
728
+ U.value = !1, _.value = null;
729
+ }),
730
+ onClick: () => Oe(i)
731
+ }, null, 40, Gt))), 256))
732
+ ]))), 256)),
733
+ x(t.$slots, "svg", { svg: y.value }, void 0, !0)
734
+ ], 12, gt)) : v("", !0),
735
+ t.$slots.watermark ? (s(), r("div", Ut, [
736
+ x(t.$slots, "watermark", Y(j({ isPrinting: p(ue) || p(ie) })), void 0, !0)
737
+ ])) : v("", !0),
738
+ w.value ? v("", !0) : (s(), S(dt, {
739
+ key: 6,
740
+ config: {
741
+ type: "historyPlot",
742
+ style: {
743
+ backgroundColor: e.value.style.chart.backgroundColor,
744
+ historyPlot: {
745
+ color: "#CCCCCC"
746
+ }
747
+ }
748
+ }
749
+ }, null, 8, ["config"])),
750
+ T("div", {
751
+ ref_key: "chartLegend",
752
+ ref: ee
753
+ }, [
754
+ e.value.style.chart.legend.show && w.value ? (s(), S(ut, {
755
+ key: `legend_${te.value}`,
756
+ legendSet: ye.value,
757
+ config: Ie.value,
758
+ onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
759
+ he(l.seriesIndex), de(l);
760
+ })
761
+ }, {
762
+ item: m(({ legend: l, index: i }) => [
763
+ T("div", {
764
+ onClick: (o) => {
765
+ l.segregate(), de(l);
766
+ },
767
+ style: A(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
768
+ }, L(l.name), 13, Rt)
769
+ ]),
770
+ _: 1
771
+ }, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
772
+ key: 1,
773
+ legend: ye.value
774
+ }, void 0, !0)
775
+ ], 512),
776
+ t.$slots.source ? (s(), r("div", {
777
+ key: 7,
778
+ ref_key: "source",
779
+ ref: oe,
780
+ dir: "auto"
781
+ }, [
782
+ x(t.$slots, "source", {}, void 0, !0)
783
+ ], 512)) : v("", !0),
784
+ me(ct, {
785
+ show: $.value.showTooltip && U.value,
786
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
787
+ color: e.value.style.chart.tooltip.color,
788
+ fontSize: e.value.style.chart.tooltip.fontSize,
789
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
790
+ borderColor: e.value.style.chart.tooltip.borderColor,
791
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
792
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
793
+ position: e.value.style.chart.tooltip.position,
794
+ offsetY: e.value.style.chart.tooltip.offsetY,
795
+ parent: P.value,
796
+ content: R.value,
797
+ isCustom: D.value
798
+ }, {
799
+ "tooltip-before": m(() => [
800
+ x(t.$slots, "tooltip-before", Y(j({ ...q.value })), void 0, !0)
801
+ ]),
802
+ "tooltip-after": m(() => [
803
+ x(t.$slots, "tooltip-after", Y(j({ ...q.value })), void 0, !0)
804
+ ]),
805
+ _: 3
806
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
807
+ w.value ? (s(), S(ht, {
808
+ key: 8,
809
+ hideDetails: "",
810
+ config: {
811
+ open: $.value.showTable,
812
+ maxHeight: 1e4,
813
+ body: {
814
+ backgroundColor: e.value.style.chart.backgroundColor,
815
+ color: e.value.style.chart.color
816
+ },
817
+ head: {
818
+ backgroundColor: e.value.style.chart.backgroundColor,
819
+ color: e.value.style.chart.color
820
+ }
821
+ }
822
+ }, {
823
+ content: m(() => [
824
+ (s(), S(vt, {
825
+ key: `table_${le.value}`,
826
+ colNames: W.value.colNames,
827
+ head: W.value.head,
828
+ body: W.value.body,
829
+ config: W.value.config,
830
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
831
+ onClose: a[2] || (a[2] = (l) => $.value.showTable = !1)
832
+ }, {
833
+ th: m(({ th: l }) => [
834
+ T("div", {
835
+ innerHTML: l,
836
+ style: { display: "flex", "align-items": "center" }
837
+ }, null, 8, Vt)
838
+ ]),
839
+ td: m(({ td: l }) => [
840
+ Ee(L(l.name || l), 1)
841
+ ]),
842
+ _: 1
843
+ }, 8, ["colNames", "head", "body", "config", "title"]))
844
+ ]),
845
+ _: 1
846
+ }, 8, ["config"])) : v("", !0)
847
+ ], 14, mt));
848
+ }
849
+ }, cl = /* @__PURE__ */ pt(qt, [["__scopeId", "data-v-fe69915a"]]);
850
+ export {
851
+ cl as default
852
+ };