vue-data-ui 2.3.88 → 2.3.89

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 (149) hide show
  1. package/dist/{Arrow-kIoRmLea.js → Arrow-6DWnAEHt.js} +1 -1
  2. package/dist/{Arrow-CaBSHqw3.cjs → Arrow-CW5gDSmt.cjs} +1 -1
  3. package/dist/{BaseIcon-B2zEAYL0.cjs → BaseIcon-B_MrASni.cjs} +1 -1
  4. package/dist/{BaseIcon-dAh8thfs.js → BaseIcon-Dj8EbAXm.js} +1 -1
  5. package/dist/{DataTable-BLGE-au6.js → DataTable-BmYcdJ1w.js} +2 -2
  6. package/dist/{DataTable-DEvCstuA.cjs → DataTable-DAwK5x3h.cjs} +1 -1
  7. package/dist/{Legend-BAZwLtW5.js → Legend-BRG8ddDy.js} +1 -1
  8. package/dist/{Legend-D9oHmbQR.cjs → Legend-DhQ-a1RH.cjs} +1 -1
  9. package/dist/{Shape-Bw52scDY.js → Shape-BcL3EDZ5.js} +1 -1
  10. package/dist/{Shape-yv-533z4.cjs → Shape-D7jva0XA.cjs} +1 -1
  11. package/dist/{Slicer-eP9UH3h4.js → Slicer-DI1kgq9D.js} +2 -2
  12. package/dist/{Slicer-CnyR7m1m.cjs → Slicer-DV29nclP.cjs} +1 -1
  13. package/dist/{Title-BOtOowG-.cjs → Title-DYwo_Q5b.cjs} +1 -1
  14. package/dist/{Title-vxOwL9mI.js → Title-fAvrqioZ.js} +1 -1
  15. package/dist/{Tooltip-B25UdCt3.cjs → Tooltip-03RvVGln.cjs} +1 -1
  16. package/dist/{Tooltip-FDQ6j0dy.js → Tooltip-TZYYFvPe.js} +1 -1
  17. package/dist/img-BFCs759q.cjs +1 -0
  18. package/dist/img-DGzWcJ4Y.js +15 -0
  19. package/dist/{index-BzFQHG8B.cjs → index-BKTciLz4.cjs} +1 -1
  20. package/dist/{index-Bkzd7TEp.js → index-Ca4RHJ4t.js} +1 -1
  21. package/dist/pdf-9cRTLjY8.cjs +1 -0
  22. package/dist/{pdf-97UbtKC2.js → pdf-B7oVat64.js} +7 -7
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BU19Uk2G.cjs → useNestedProp-BFnXnY0k.cjs} +1 -1
  25. package/dist/{useNestedProp-BjKkGjnV.js → useNestedProp-vP7uimPz.js} +1 -1
  26. package/dist/{usePrinter-BO99ut-7.js → usePrinter-5fwXghqP.js} +155 -156
  27. package/dist/usePrinter-CxYg-Dw-.cjs +1 -0
  28. package/dist/{vue-data-ui-9X87OiUw.js → vue-data-ui-4VG00HFR.js} +57 -57
  29. package/dist/{vue-data-ui-C4vMufw3.cjs → vue-data-ui-BaLkNH7M.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-BQs0ss6E.js → vue-ui-3d-bar-DPJWcxqV.js} +7 -7
  33. package/dist/{vue-ui-3d-bar-DW_P_GEm.cjs → vue-ui-3d-bar-rOT9iPsm.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-D9rDPTxC.cjs → vue-ui-accordion-SXHdW20_.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-Dq8PnOQI.js → vue-ui-accordion-vYoYjedX.js} +3 -3
  36. package/dist/{vue-ui-age-pyramid-BtQBOmuj.js → vue-ui-age-pyramid-BEC4SHLl.js} +8 -8
  37. package/dist/{vue-ui-age-pyramid-w1cHqmfP.cjs → vue-ui-age-pyramid-HElID9Ax.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-DN8dHbpa.cjs → vue-ui-annotator-B1NZRuJJ.cjs} +1 -1
  39. package/dist/{vue-ui-annotator-yL2aaXSM.js → vue-ui-annotator-DFpv61wn.js} +1 -1
  40. package/dist/{vue-ui-candlestick-DvI-paAZ.js → vue-ui-candlestick-AEKT8X3p.js} +9 -9
  41. package/dist/{vue-ui-candlestick-Bb3gE99L.cjs → vue-ui-candlestick-p1s0Av21.cjs} +1 -1
  42. package/dist/{vue-ui-carousel-table-DrnpUyMB.cjs → vue-ui-carousel-table-DCk2p-1k.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-CFOGiUYF.js → vue-ui-carousel-table-DhzVxOvp.js} +4 -4
  44. package/dist/{vue-ui-chestnut--s6irU0q.cjs → vue-ui-chestnut-oFfB3fBF.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-BsAh9hFC.js → vue-ui-chestnut-qqcIpMGB.js} +6 -6
  46. package/dist/{vue-ui-cursor-C4ReYD2O.js → vue-ui-cursor-CgSghVjL.js} +2 -2
  47. package/dist/{vue-ui-cursor-B-XJpQPg.cjs → vue-ui-cursor-CvJgJk1M.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-B9vNbg0W.js → vue-ui-dashboard-CYzkic0X.js} +3 -3
  49. package/dist/vue-ui-dashboard-CtJdVmtu.cjs +1 -0
  50. package/dist/{vue-ui-digits-BWo3eCH7.js → vue-ui-digits-BO1hSjoq.js} +2 -2
  51. package/dist/{vue-ui-digits-DMXN0q7k.cjs → vue-ui-digits-C0dMG-hR.cjs} +1 -1
  52. package/dist/{vue-ui-donut-Cel6UjXl.js → vue-ui-donut-DP-yxiw3.js} +9 -9
  53. package/dist/{vue-ui-donut-B0iDrljg.cjs → vue-ui-donut-Dnnoj71c.cjs} +1 -1
  54. package/dist/{vue-ui-donut-evolution-daM3GjWu.js → vue-ui-donut-evolution-C-yDyglF.js} +9 -9
  55. package/dist/{vue-ui-donut-evolution-D94iUNlt.cjs → vue-ui-donut-evolution-vBUH5VVx.cjs} +1 -1
  56. package/dist/{vue-ui-dumbbell-AimehlIj.cjs → vue-ui-dumbbell-BUA_uSse.cjs} +1 -1
  57. package/dist/{vue-ui-dumbbell-DY_AhNS1.js → vue-ui-dumbbell-D2SQ4cKV.js} +8 -8
  58. package/dist/{vue-ui-flow-BhnVwgW5.cjs → vue-ui-flow-B-AFlw-n.cjs} +1 -1
  59. package/dist/{vue-ui-flow-DHemHIqr.js → vue-ui-flow-D_E9V2A1.js} +7 -7
  60. package/dist/{vue-ui-galaxy-DlS-pSHI.cjs → vue-ui-galaxy-CbL5nONj.cjs} +1 -1
  61. package/dist/{vue-ui-galaxy-D8uc51fE.js → vue-ui-galaxy-DqE2UiA3.js} +9 -9
  62. package/dist/{vue-ui-gauge-DkgiaTIQ.cjs → vue-ui-gauge-BUV_hQND.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-BDP3AbQP.js → vue-ui-gauge-CFYXDw2p.js} +5 -5
  64. package/dist/{vue-ui-gizmo-d48XB9Y7.cjs → vue-ui-gizmo-B-LxuvDh.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-Bw-drsvJ.js → vue-ui-gizmo-BWztIJ3j.js} +2 -2
  66. package/dist/{vue-ui-heatmap-qXivxpXK.cjs → vue-ui-heatmap-DW5StHKM.cjs} +1 -1
  67. package/dist/{vue-ui-heatmap-D6rhUBIv.js → vue-ui-heatmap-E1MlhSCs.js} +8 -8
  68. package/dist/{vue-ui-kpi-DYtYBfVS.cjs → vue-ui-kpi-BWDPF-9X.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-CaJNQu-7.js → vue-ui-kpi-DeP0XmP7.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-C8WE9mmc.js → vue-ui-mini-loader-Bal12IrX.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-Bd3n8Eh7.cjs → vue-ui-mini-loader-D5e8uW_d.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-DCOIE2Oz.cjs → vue-ui-molecule-DHBId4h4.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BJ78cyz2.js → vue-ui-molecule-DHrHeQgF.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-xc7ZIj7B.cjs → vue-ui-mood-radar-DSXB9l99.cjs} +1 -1
  75. package/dist/{vue-ui-mood-radar-BcKbxhUb.js → vue-ui-mood-radar-dJaJotNf.js} +9 -9
  76. package/dist/{vue-ui-nested-donuts-DmqrKtK-.js → vue-ui-nested-donuts--K9ygdH3.js} +9 -9
  77. package/dist/{vue-ui-nested-donuts-1AnFMRQE.cjs → vue-ui-nested-donuts-CEX2cvop.cjs} +1 -1
  78. package/dist/{vue-ui-onion-B7-Luph_.js → vue-ui-onion-Bm1inM56.js} +9 -9
  79. package/dist/{vue-ui-onion-B-CQQFDn.cjs → vue-ui-onion-Iekdjs8b.cjs} +1 -1
  80. package/dist/{vue-ui-parallel-coordinate-plot-Cl2fIY0h.js → vue-ui-parallel-coordinate-plot-9PSGD-LR.js} +10 -10
  81. package/dist/{vue-ui-parallel-coordinate-plot-Cg7rXYJl.cjs → vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs} +1 -1
  82. package/dist/{vue-ui-quadrant-DzqQM8zj.cjs → vue-ui-quadrant-CgJeo2zZ.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-BMRu5C6_.js → vue-ui-quadrant-iGQbx93I.js} +10 -10
  84. package/dist/{vue-ui-quick-chart-bdjkTZCJ.js → vue-ui-quick-chart-DeEQcx6A.js} +7 -7
  85. package/dist/{vue-ui-quick-chart-D6Y5lQZz.cjs → vue-ui-quick-chart-Du8lDPmh.cjs} +1 -1
  86. package/dist/{vue-ui-radar-CmIznCHB.cjs → vue-ui-radar-BYk9DWnM.cjs} +1 -1
  87. package/dist/{vue-ui-radar-DUBmmYCM.js → vue-ui-radar-DfnhsNQV.js} +10 -10
  88. package/dist/{vue-ui-rating-vn6QGQ1T.js → vue-ui-rating-CCesFD6e.js} +2 -2
  89. package/dist/{vue-ui-rating-D353kmjW.cjs → vue-ui-rating-D0rgVdkT.cjs} +1 -1
  90. package/dist/{vue-ui-relation-circle-Dd_nf_ni.cjs → vue-ui-relation-circle-8eoBav4O.cjs} +1 -1
  91. package/dist/{vue-ui-relation-circle-Enjx6oV8.js → vue-ui-relation-circle-D2GXm_Fk.js} +5 -5
  92. package/dist/{vue-ui-rings-D3n403nM.js → vue-ui-rings-B7_-G3JM.js} +9 -9
  93. package/dist/{vue-ui-rings-BggXdDcB.cjs → vue-ui-rings-CScmcQ1n.cjs} +1 -1
  94. package/dist/{vue-ui-scatter-C5kTB_at.cjs → vue-ui-scatter-BnBI8qdt.cjs} +1 -1
  95. package/dist/{vue-ui-scatter-D8gjIVvT.js → vue-ui-scatter-DdhiNjLc.js} +10 -10
  96. package/dist/{vue-ui-screenshot-BOtri9ZP.cjs → vue-ui-screenshot-BrhjnTwn.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-BOtaOWHH.js → vue-ui-screenshot-Cpy2qbf1.js} +1 -1
  98. package/dist/{vue-ui-skeleton-B1pWkVPT.js → vue-ui-skeleton-D7aLznpP.js} +2 -2
  99. package/dist/{vue-ui-skeleton-B_ed6BaF.cjs → vue-ui-skeleton-pDeQ3NcD.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BHwhptXa.cjs → vue-ui-smiley-Cj0yi7_H.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-Fx2vCfWl.js → vue-ui-smiley-vcpYARLj.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-DYeF_f9D.cjs → vue-ui-spark-trend-BW8k0jDd.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-BbGJLy6v.js → vue-ui-spark-trend-CFJSCQnf.js} +4 -4
  104. package/dist/{vue-ui-sparkbar-waCPID8a.cjs → vue-ui-sparkbar-BbJHfAQj.cjs} +1 -1
  105. package/dist/{vue-ui-sparkbar-D4zOXsmw.js → vue-ui-sparkbar-CgRdDfk6.js} +3 -3
  106. package/dist/{vue-ui-sparkgauge-ByLoId02.cjs → vue-ui-sparkgauge-BESRB8_4.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-CrOeVBM6.js → vue-ui-sparkgauge-CCPMNge0.js} +3 -3
  108. package/dist/{vue-ui-sparkhistogram-Du-8Djku.cjs → vue-ui-sparkhistogram-BYnSfLdb.cjs} +1 -1
  109. package/dist/{vue-ui-sparkhistogram-m8HxSpNJ.js → vue-ui-sparkhistogram-D5z2Wtpk.js} +4 -4
  110. package/dist/{vue-ui-sparkline-Ccq4xp69.cjs → vue-ui-sparkline-D5WUy4p5.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-KMDtu_Z0.js → vue-ui-sparkline-KYN0oKt1.js} +3 -3
  112. package/dist/{vue-ui-sparkstackbar-D3YWcJ_H.js → vue-ui-sparkstackbar-7lurD9-4.js} +80 -77
  113. package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +1 -0
  114. package/dist/{vue-ui-stackbar-DlfuJps0.cjs → vue-ui-stackbar-Ch-fmE9l.cjs} +1 -1
  115. package/dist/{vue-ui-stackbar-D6oKKqGM.js → vue-ui-stackbar-CsVmAvl3.js} +10 -10
  116. package/dist/{vue-ui-strip-plot-BbAVQ73Y.js → vue-ui-strip-plot-B63AgKts.js} +9 -9
  117. package/dist/{vue-ui-strip-plot-CtJyMV8c.cjs → vue-ui-strip-plot-BLRl-tF6.cjs} +1 -1
  118. package/dist/{vue-ui-table-C3fDr-79.js → vue-ui-table-G5O8K-F_.js} +1 -1
  119. package/dist/{vue-ui-table-B1feGzci.cjs → vue-ui-table-hPqdMR-m.cjs} +1 -1
  120. package/dist/{vue-ui-table-heatmap-DTTq642Y.cjs → vue-ui-table-heatmap-BhVuTdSS.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-Bs11u_Bn.js → vue-ui-table-heatmap-t9Ngijvp.js} +4 -4
  122. package/dist/{vue-ui-table-sparkline-BmnqHZCN.js → vue-ui-table-sparkline-BX4en1c-.js} +5 -5
  123. package/dist/{vue-ui-table-sparkline-C9v0ZCRY.cjs → vue-ui-table-sparkline-DtjJrGve.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-DH4J5XrN.cjs → vue-ui-thermometer-B07RI9fZ.cjs} +1 -1
  125. package/dist/{vue-ui-thermometer-BF0EfLSS.js → vue-ui-thermometer-BWGyDQ7_.js} +5 -5
  126. package/dist/{vue-ui-timer-Dex5u9Ug.js → vue-ui-timer-8AlVLAJi.js} +4 -4
  127. package/dist/{vue-ui-timer-BoF6_mg_.cjs → vue-ui-timer-CXrENAVg.cjs} +1 -1
  128. package/dist/{vue-ui-tiremarks-DEhFA_QA.cjs → vue-ui-tiremarks-C43c4_IR.cjs} +1 -1
  129. package/dist/{vue-ui-tiremarks-i2bIrejU.js → vue-ui-tiremarks-DYIHGkBU.js} +5 -5
  130. package/dist/{vue-ui-treemap-BXfhAmfw.cjs → vue-ui-treemap-BN90ISQv.cjs} +1 -1
  131. package/dist/{vue-ui-treemap-CkHKUr9H.js → vue-ui-treemap-mmvdTHiX.js} +9 -9
  132. package/dist/{vue-ui-vertical-bar-Co4Vz7W1.cjs → vue-ui-vertical-bar-BRDO_Rsu.cjs} +1 -1
  133. package/dist/{vue-ui-vertical-bar-Ui-eKo2G.js → vue-ui-vertical-bar-DAKHNRoR.js} +9 -9
  134. package/dist/{vue-ui-waffle-IjZAL-JJ.js → vue-ui-waffle-B-A4NYNd.js} +9 -9
  135. package/dist/{vue-ui-waffle-DJIU32yG.cjs → vue-ui-waffle-BN_yZEtJ.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-WTP6VSQg.cjs → vue-ui-wheel-50_zeiIW.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-CEyocXra.js → vue-ui-wheel-DN9WvA6Z.js} +5 -5
  138. package/dist/{vue-ui-word-cloud-Cg-5NUED.cjs → vue-ui-word-cloud-BVoFIb_q.cjs} +1 -1
  139. package/dist/{vue-ui-word-cloud-CanNB33d.js → vue-ui-word-cloud-BWTyaGAT.js} +7 -7
  140. package/dist/vue-ui-xy-CJHHesUD.cjs +3 -0
  141. package/dist/{vue-ui-xy-Ea4QdEJG.js → vue-ui-xy-Dzp4qCjk.js} +769 -762
  142. package/dist/{vue-ui-xy-canvas-CtYuW5vo.js → vue-ui-xy-canvas-9NPbm7dE.js} +10 -10
  143. package/dist/{vue-ui-xy-canvas-DQCerSdP.cjs → vue-ui-xy-canvas-CAcTkk_r.cjs} +1 -1
  144. package/package.json +1 -1
  145. package/dist/pdf-Cz3729tZ.cjs +0 -1
  146. package/dist/usePrinter-BY2kEF_E.cjs +0 -1
  147. package/dist/vue-ui-dashboard-DRPAfzVQ.cjs +0 -1
  148. package/dist/vue-ui-sparkstackbar-BbG_IuZ6.cjs +0 -1
  149. package/dist/vue-ui-xy-B5Wip8Yp.cjs +0 -3
@@ -1,15 +1,15 @@
1
1
  import { ref as v, computed as b, watch as Y, onMounted as pa, onBeforeUnmount as ba, openBlock as S, createElementBlock as se, normalizeStyle as Z, normalizeClass as ma, createBlock as _, createCommentVNode as G, unref as N, createSlots as xa, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as j, createElementVNode as q, createVNode as La, toDisplayString as Ue, createTextVNode as ka } from "vue";
2
- import { u as Ca, c as wa, t as Sa, a as $a, p as D, b as za, C as fe, i as J, f as K, G as Ta, d as Ze, Z as Ma, o as Ra, e as Ia, x as Ge, y as Oa, q as Pa, r as Fa, s as Q, l as Ea } from "./index-Bkzd7TEp.js";
2
+ import { u as Ca, c as wa, t as Sa, a as $a, p as D, b as za, C as fe, i as J, f as K, G as Ta, d as Ze, Z as Ma, o as Ra, e as Ia, x as Ge, y as Oa, q as Pa, r as Fa, s as Q, l as Ea } from "./index-Ca4RHJ4t.js";
3
3
  import { d as _a, c as Na, a as Ve, t as Da, l as C, r as ye, b as P, p as je, u as Ha } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Wa } from "./Tooltip-FDQ6j0dy.js";
5
- import { L as Ya } from "./Legend-BAZwLtW5.js";
6
- import { _ as Ba } from "./Title-vxOwL9mI.js";
7
- import { S as Xa } from "./Slicer-eP9UH3h4.js";
8
- import { u as Aa, U as Ua } from "./usePrinter-BO99ut-7.js";
9
- import Za from "./vue-ui-accordion-Dq8PnOQI.js";
10
- import { D as Ga } from "./DataTable-BLGE-au6.js";
11
- import Va from "./vue-ui-skeleton-B1pWkVPT.js";
12
- import { u as qe } from "./useNestedProp-BjKkGjnV.js";
4
+ import { _ as Wa } from "./Tooltip-TZYYFvPe.js";
5
+ import { L as Ya } from "./Legend-BRG8ddDy.js";
6
+ import { _ as Ba } from "./Title-fAvrqioZ.js";
7
+ import { S as Xa } from "./Slicer-DI1kgq9D.js";
8
+ import { u as Aa, U as Ua } from "./usePrinter-5fwXghqP.js";
9
+ import Za from "./vue-ui-accordion-vYoYjedX.js";
10
+ import { D as Ga } from "./DataTable-BmYcdJ1w.js";
11
+ import Va from "./vue-ui-skeleton-D7aLznpP.js";
12
+ import { u as qe } from "./useNestedProp-vP7uimPz.js";
13
13
  import { _ as ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const qa = ["id"], Ja = ["onClick"], Ka = {
15
15
  key: 2,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-BzFQHG8B.cjs"),c=require("./useResponsive-B3TrDDIG.cjs"),Ze=require("./Tooltip-B25UdCt3.cjs"),Ge=require("./Legend-D9oHmbQR.cjs"),je=require("./Title-BOtOowG-.cjs"),Je=require("./Slicer-CnyR7m1m.cjs"),ze=require("./usePrinter-BY2kEF_E.cjs"),Ke=require("./vue-ui-accordion-D9rDPTxC.cjs"),Qe=require("./DataTable-DEvCstuA.cjs"),et=require("./vue-ui-skeleton-B_ed6BaF.cjs"),$e=require("./useNestedProp-BU19Uk2G.cjs"),tt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),at=["id"],lt=["onClick"],ot={key:2,class:"vue-data-ui-watermark"},rt=["innerHTML"],ut={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(J,{expose:Te,emit:Me}){const P=J,{vue_ui_xy_canvas:Pe}=n.useConfig(),U=a.ref(n.createUid()),D=a.ref(null),C=a.ref(null),N=a.ref(null),i=a.ref(null),g=a.ref(1),z=a.ref(1),_=a.ref(!1),f=a.ref(null),H=a.ref(""),K=a.ref(null),k=a.ref([]),O=a.ref(1),R=a.ref(!0),w=a.ref(!0),X=a.ref(null),Q=a.ref(0),ee=a.ref(0),A=a.ref(!1),te=a.ref(null),ae=a.ref(null),le=a.ref(null),oe=a.ref(0),re=a.ref(0),ue=a.ref(0),Z=a.computed(()=>!!P.dataset&&P.dataset.length),t=a.computed({get:()=>ne(),set:e=>e});function ne(){const e=$e.useNestedProp({userConfig:P.config,defaultConfig:Pe});return e.theme?{...$e.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||P.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:e}a.watch(()=>P.config,e=>{t.value=ne(),pe(),oe.value+=1,re.value+=1,ue.value+=1},{deep:!0});const se=a.ref(t.value.style.chart.aspectRatio),{isPrinting:ie,isImaging:ve,generatePdf:ce,generateImage:de}=ze.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Re(e){A.value=e,ee.value+=1}const he=a.computed(()=>n.convertCustomPalette(t.value.customPalette)),$=a.computed(()=>I.value?Math.max(...I.value.filter((e,o)=>!k.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),l=a.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:z.value,left:g.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function fe(e,o){return e/o}function Oe({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((L,j)=>{const S=h.min<0?Math.abs(h.min):0,T=fe(L+S,S+h.max);let M,E;e&&(M=Math.abs(h.min),E=fe(L+M,h.max+M));let B=0;return m===null?B=l.value.bottom-l.value.height*(e?E:T):B=l.value.bottom-p-v*(e?E:T),{x:l.value.left+l.value.slot*j+l.value.slot/2,y:B,value:L}})}const b=a.computed(()=>{const e=Math.min(...I.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=Math.max(...I.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:l.value.bottom-l.value.height*((v+d)/(r.max+d)),x:l.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),Ie=a.computed(()=>y.value.map(e=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-BKTciLz4.cjs"),c=require("./useResponsive-B3TrDDIG.cjs"),Ze=require("./Tooltip-03RvVGln.cjs"),Ge=require("./Legend-DhQ-a1RH.cjs"),je=require("./Title-DYwo_Q5b.cjs"),Je=require("./Slicer-DV29nclP.cjs"),ze=require("./usePrinter-CxYg-Dw-.cjs"),Ke=require("./vue-ui-accordion-SXHdW20_.cjs"),Qe=require("./DataTable-DAwK5x3h.cjs"),et=require("./vue-ui-skeleton-pDeQ3NcD.cjs"),$e=require("./useNestedProp-BFnXnY0k.cjs"),tt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),at=["id"],lt=["onClick"],ot={key:2,class:"vue-data-ui-watermark"},rt=["innerHTML"],ut={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(J,{expose:Te,emit:Me}){const P=J,{vue_ui_xy_canvas:Pe}=n.useConfig(),U=a.ref(n.createUid()),D=a.ref(null),C=a.ref(null),N=a.ref(null),i=a.ref(null),g=a.ref(1),z=a.ref(1),_=a.ref(!1),f=a.ref(null),H=a.ref(""),K=a.ref(null),k=a.ref([]),O=a.ref(1),R=a.ref(!0),w=a.ref(!0),X=a.ref(null),Q=a.ref(0),ee=a.ref(0),A=a.ref(!1),te=a.ref(null),ae=a.ref(null),le=a.ref(null),oe=a.ref(0),re=a.ref(0),ue=a.ref(0),Z=a.computed(()=>!!P.dataset&&P.dataset.length),t=a.computed({get:()=>ne(),set:e=>e});function ne(){const e=$e.useNestedProp({userConfig:P.config,defaultConfig:Pe});return e.theme?{...$e.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||P.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:e}a.watch(()=>P.config,e=>{t.value=ne(),pe(),oe.value+=1,re.value+=1,ue.value+=1},{deep:!0});const se=a.ref(t.value.style.chart.aspectRatio),{isPrinting:ie,isImaging:ve,generatePdf:ce,generateImage:de}=ze.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Re(e){A.value=e,ee.value+=1}const he=a.computed(()=>n.convertCustomPalette(t.value.customPalette)),$=a.computed(()=>I.value?Math.max(...I.value.filter((e,o)=>!k.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),l=a.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:z.value,left:g.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function fe(e,o){return e/o}function Oe({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((L,j)=>{const S=h.min<0?Math.abs(h.min):0,T=fe(L+S,S+h.max);let M,E;e&&(M=Math.abs(h.min),E=fe(L+M,h.max+M));let B=0;return m===null?B=l.value.bottom-l.value.height*(e?E:T):B=l.value.bottom-p-v*(e?E:T),{x:l.value.left+l.value.slot*j+l.value.slot/2,y:B,value:L}})}const b=a.computed(()=>{const e=Math.min(...I.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=Math.max(...I.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:l.value.bottom-l.value.height*((v+d)/(r.max+d)),x:l.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),Ie=a.computed(()=>y.value.map(e=>`
2
2
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
3
  <svg viewBox="0 0 10 10" height="12" width="12">
4
4
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.3.88",
4
+ "version": "2.3.89",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- "use strict";const l=require("./html2canvas.esm-BA_v9SIU.cjs"),m=require("./jspdf.es.min-DLYY9DTT.cjs");function u({domElement:f,fileName:c}){if(f){const t={height:851.89,width:595.28},e=new m.E("","pt","a4");let h,d,g,n,a;return l.default(f).then(s=>{h=s.width,d=s.height;let i=d;const o=h/t.width*t.height;let p=0;if(g=t.width,n=582.28/h*d,a=s.toDataURL("image/png",1),i<o)e.addImage(a,"PNG",33,24,g*.9,n*.9,"","FAST");else for(;i>0;)e.addImage(a,"PNG",33,p,g*.9,n*.9,"","FAST"),i-=o,p-=t.height-24,i>0&&e.addPage();e.save(`${c}.pdf`)})}}exports.pdf=u;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),u=require("./BaseIcon-B2zEAYL0.cjs"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=require("./pdf-Cz3729tZ.cjs"),O=require("./html2canvas.esm-BA_v9SIU.cjs"),A={beforeMount(t,s){t.clickOutsideEvent=function(a){t===a.target||t.contains(a.target)||s.value(a)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},w=["title","onClick","onKeypress"],D=["data-open"],q={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:s}){const a=t;function g(){s("generatePdf")}function d(){s("generateCsv")}function k(){s("generateImage")}const f=e.ref(!1);function p(){f.value=!f.value,s("toggleTable")}const v=e.ref(!1),z=e.ref(!0);function C(){c.value=window.innerWidth>600,v.value=!v.value,v.value&&(z.value=!1)}function V(){a.isPrinting||a.isImaging||(v.value=!1)}function N(){v.value&&V()}const b=e.ref(a.isLabelActive);function T(){b.value=!b.value,s("toggleLabels")}const m=e.ref(a.isAnimation);function $(){m.value=!m.value,s("toggleAnimation")}function I(){s("toggleSort")}const y=e.ref(a.isStacked);function M(){y.value=!y.value,s("toggleStack")}const B=e.ref(a.isTooltip);function F(){B.value=!B.value,s("toggleTooltip")}const r=e.ref(!1);function S(n){a.chartElement&&(n==="in"?(r.value=!0,a.chartElement.requestFullscreen(),s("toggleFullscreen",!0)):(r.value=!1,document&&document.exitFullscreen(),s("toggleFullscreen",!1)))}function h(n){document.fullscreenElement?r.value=!0:r.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",h)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",h)});const c=e.ref(window.innerWidth>600),l=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(n,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${r.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${r.value?"12px":"0"}`:`left:${r.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:v.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers(C,["stop"]),onKeypress:e.withKeys(C,["enter"])},[e.createVNode(u.default,{name:v.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],44,w),e.createElementVNode("div",{"data-open":v.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[0]||(o[0]=i=>l.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>l.value.tooltip=!1)},[n.$slots.optionTooltip?e.renderSlot(n.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(u.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(u.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!n.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&l.value.tooltip,"button-info-right-visible":t.position==="right"&&l.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:g,onMouseenter:o[2]||(o[2]=i=>l.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>l.value.pdf=!1)},[n.$slots.optionPdf?e.renderSlot(n.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(u.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(u.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!n.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.pdf,"button-info-left-visible":t.position==="left"&&l.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[4]||(o[4]=i=>l.value.csv=!0),onMouseout:o[5]||(o[5]=i=>l.value.csv=!1)},[n.$slots.optionCsv?e.renderSlot(n.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(u.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!n.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.csv,"button-info-left-visible":t.position==="left"&&l.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:k,onMouseenter:o[6]||(o[6]=i=>l.value.img=!0),onMouseout:o[7]||(o[7]=i=>l.value.img=!1)},[n.$slots.optionImg?e.renderSlot(n.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(u.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(u.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!n.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.img,"button-info-left-visible":t.position==="left"&&l.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:p,onMouseenter:o[8]||(o[8]=i=>l.value.table=!0),onMouseout:o[9]||(o[9]=i=>l.value.table=!1)},[n.$slots.optionTable?e.renderSlot(n.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(u.default,{key:1,name:f.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!n.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.table,"button-info-left-visible":t.position==="left"&&l.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:T,onMouseenter:o[10]||(o[10]=i=>l.value.labels=!0),onMouseout:o[11]||(o[11]=i=>l.value.labels=!1)},[n.$slots.optionLabels?e.renderSlot(n.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(u.default,{key:1,name:b.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!n.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.labels,"button-info-left-visible":t.position==="left"&&l.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[12]||(o[12]=i=>l.value.sort=!0),onMouseout:o[13]||(o[13]=i=>l.value.sort=!1)},[n.$slots.optionSort?e.renderSlot(n.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(u.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!n.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.sort,"button-info-left-visible":t.position==="left"&&l.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[14]||(o[14]=i=>l.value.stack=!0),onMouseout:o[15]||(o[15]=i=>l.value.stack=!1)},[n.$slots.optionStack?e.renderSlot(n.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(u.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(u.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!n.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.stack,"button-info-left-visible":t.position==="left"&&l.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>l.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>l.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>S(r.value?"out":"in"))},[n.$slots.optionFullscreen?e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:S,isFullscreen:r.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[r.value?(e.openBlock(),e.createBlock(u.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!n.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.fullscreen,"button-info-left-visible":t.position==="left"&&l.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>l.value.animation=!0),onMouseout:o[20]||(o[20]=i=>l.value.animation=!1),onClick:$},[n.$slots.optionAnimation?e.renderSlot(n.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:$,isAnimated:m.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.value?(e.openBlock(),e.createBlock(u.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!n.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.animation,"button-info-left-visible":t.position==="left"&&l.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,D)],4)),[[e.unref(A),N]])}},U=P._export_sfc(q,[["__scopeId","data-v-202b6e85"]]);function E({domElement:t,fileName:s,format:a="png"}){if(t)return new Promise((g,d)=>{const k=document.createElement("a");O.default(t,{scale:2}).then(f=>{k.href=f.toDataURL(`image/${a}`),k.download=`${s}.${a}`,k.click(),k&&k.remove(),g()}).catch(f=>{console.error("Error generating image:",f),d(f)})})}function x({elementId:t,fileName:s}){const a=e.ref(!1),g=e.ref(!1),d=e.ref(null);function k(){a.value=!0,clearTimeout(d.value),d.value=setTimeout(()=>{L.pdf({domElement:document.getElementById(t),fileName:s}).finally(()=>{a.value=!1})},100)}function f(){g.value=!0,clearTimeout(d.value),d.value=setTimeout(()=>{E({domElement:document.getElementById(t),fileName:s,format:"png"}).finally(()=>{g.value=!1},100)})}return{generatePdf:k,generateImage:f,isPrinting:a,isImaging:g}}exports.UserOptions=U;exports.saveAsImage=E;exports.usePrinter=x;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),R=require("./pdf-Cz3729tZ.cjs"),q=require("./useNestedProp-BU19Uk2G.cjs"),O=require("./index-BzFQHG8B.cjs"),j=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=b=>(o.pushScopeId("data-v-57895b3a"),b=b(),o.popScopeId(),b),G={key:0,"data-html2canvas-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},U=["disabled"],J=["stroke"],K=o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-57895b3a></path><path d="M18 16v.01" data-v-57895b3a></path><path d="M6 16v.01" data-v-57895b3a></path><path d="M12 5v.01" data-v-57895b3a></path><path d="M12 12v.01" data-v-57895b3a></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-57895b3a></path>',6),Q=[K],Z={key:1},ee=["id"],te=A(()=>o.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),oe=["onMousedown","onTouchstart"],le=["onMousedown","onTouchstart"],ae=["onMousedown","onTouchstart"],ne=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],M=20,se={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(b,{expose:$,emit:B}){const T=b;o.useCssVars(e=>({"417957d3":I.value,"60fae9e7":D.value}));const{vue_ui_dashboard:N}=O.useConfig(),i=o.computed(()=>q.useNestedProp({userConfig:T.config,defaultConfig:N})),z=o.ref(`vue-ui-dashboard-${Math.random()}`),d=o.ref(i.value.locked);function S(){d.value=!d.value}const s=o.ref(T.dataset),h=o.ref(null),u=o.ref(null),v=o.ref({x:0,y:0}),f=o.ref({x:0,y:0}),r=o.ref(null),c=o.ref(!1),p=o.ref(null),y=o.ref(!1);function E(){y.value=!0,R.pdf({domElement:document.getElementById(`vue-ui-dashboard_${z.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{y.value=!1})}function x(e){if(!d.value&&(c.value=!0,p.value=e,u.value===null)){h.value=e,v.value={x:event.clientX,y:event.clientY};const t=s.value[e],a=100-t.width,l=100-t.height;t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left>a&&(t.left=a),t.top>l&&(t.top=l),t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left+t.width>100&&(t.left=100-t.width),t.top+t.height>100&&(t.top=100-t.height)}}function m(e,t){c.value=!0,p.value=e,u.value={index:e,direction:t};const a=s.value[e];f.value={x:event.clientX,y:event.clientY,initialWidth:a.width,initialHeight:a.height}}function C(e,t,a){if(u.value.direction.includes("top")){const l=e.height-a/r.value.offsetHeight*100;l>=M&&(e.top+=a/r.value.offsetHeight*100,e.height=l)}if(u.value.direction.includes("bottom")){const l=e.height+a/r.value.offsetHeight*100;l>=M&&(e.height=l)}if(u.value.direction.includes("left")){const l=e.width-t/r.value.offsetWidth*100;l>=M&&(e.left+=t/r.value.offsetWidth*100,e.width=l)}if(u.value.direction.includes("right")){const l=e.width+t/r.value.offsetWidth*100;l>=M&&(e.width=l)}}function X(e){if(!d.value){if(c.value=!0,h.value!==null){const t=s.value[h.value],a=e.clientX-v.value.x,l=e.clientY-v.value.y,n=t.left+a/r.value.offsetWidth*100,g=t.top+l/r.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.clientX,y:e.clientY}}if(u.value!==null){const t=s.value[u.value.index],a=e.clientX-f.value.x,l=e.clientY-f.value.y;C(t,a,l),f.value={x:e.clientX,y:e.clientY}}}}o.watch(s,e=>{e&&!c.value&&B("change",s.value)},{deep:!0});function Y(){h.value=null,u.value=null,c.value=!1,p.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}function V(e){d.value||(c.value=!0,p.value=e,u.value===null&&(h.value=e,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function k(e,t,a){if(c.value=!0,p.value=e,u.value===null){u.value={index:e,direction:t};const l=s.value[e];f.value={x:a.touches[0].clientX,y:a.touches[0].clientY,initialWidth:l.width,initialHeight:l.height}}}function _(e){if(c.value=!0,e.preventDefault(),u.value!==null){const t=s.value[u.value.index],a=e.touches[0].clientX-f.value.x,l=e.touches[0].clientY-f.value.y;C(t,a,l),f.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function H(e){if(!d.value&&(c.value=!0,e.preventDefault(),h.value!==null)){const t=s.value[h.value],a=e.touches[0].clientX-v.value.x,l=e.touches[0].clientY-v.value.y,n=t.left+a/r.value.offsetWidth*100,g=t.top+l/r.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function w(){c.value=!1,p.value=null,h.value=null,u.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}const I=o.computed(()=>i.value.style.item.borderColor),D=o.computed(()=>i.value.style.resizeHandles.backgroundColor),W=o.computed(()=>i.value.style.board.aspectRatio),L=o.computed(()=>i.value.style.board.backgroundColor),P=o.computed(()=>i.value.style.board.border);function F(){return s.value}return $({generatePdf:E,getItemsPositions:F,toggleLock:S}),(e,t)=>(o.openBlock(),o.createElementBlock("div",null,[i.value.allowPrint?(o.openBlock(),o.createElementBlock("div",G,[o.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:E,disabled:y.value,style:o.normalizeStyle([{"margin-top":"12px"},`color:${i.value.style.board.color}`])},[y.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-dashboard-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:i.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Q,8,J)):(o.openBlock(),o.createElementBlock("span",Z,"PDF"))],12,U)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:r,id:`vue-ui-dashboard_${z.value}`,style:o.normalizeStyle(`border:${P.value}; sbackground:${L.value}; aspect-ratio:${W.value}`)},[o.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:X,onMouseup:Y,onTouchmove:H,onTouchend:w,style:o.normalizeStyle(`background:${i.value.style.board.backgroundColor}`)},[te,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(a,l)=>(o.openBlock(),o.createElementBlock("div",{key:a.id,class:o.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:o.normalizeStyle({width:`${a.width}%`,height:`${a.height}%`,left:`${a.left}%`,top:`${a.top}%`,cursor:"move",boxShadow:p.value===l?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:p.value===l?"1":"0",backgroundColor:i.value.style.item.backgroundColor}),onMousedown:n=>x(l),onTouchstart:n=>V(l)},[d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:n=>m(l,"top-left"),onTouchstart:n=>k(l,"top-left",n),onTouchmove:t[0]||(t[0]=n=>_(n)),onTouchend:w},null,40,le),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:n=>m(l,"top-right"),onTouchstart:n=>k(l,"top-right",n),onTouchmove:t[1]||(t[1]=n=>_(n)),onTouchend:w},null,40,ae),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:n=>m(l,"bottom-left"),onTouchstart:n=>k(l,"bottom-left",n),onTouchmove:t[2]||(t[2]=n=>_(n)),onTouchend:w},null,40,ne),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:n=>m(l,"bottom-right"),onTouchstart:n=>k(l,"bottom-right",n),onTouchmove:t[3]||(t[3]=n=>_(n)),onTouchend:w},null,40,ue)],64)),o.renderSlot(e.$slots,"content",{item:a,index:l,left:a.left,top:a.top,height:a.height,width:a.width},void 0,!0)],46,oe))),128))],36)],12,ee)]))}},ie=j._export_sfc(se,[["__scopeId","data-v-57895b3a"]]);exports.default=ie;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BzFQHG8B.cjs"),B=require("./useNestedProp-BU19Uk2G.cjs"),V=require("./vue-ui-skeleton-B_ed6BaF.cjs"),z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=["xmlns","viewBox"],P=["id"],L=["stop-color"],A=["stop-color"],F=["stop-color"],U={id:"stackPill",clipPathUnits:"objectBoundingBox"},j=["fill"],q={"clip-path":"url(#stackPill)"},T=["height","width","fill"],H=["onClick","x","width","height","fill","stroke"],I=["onClick"],O={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},M=["height","width"],G=["fill"],X={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(S,{emit:E}){const u=S,{vue_ui_sparkstackbar:$}=o.useConfig(),k=e.computed(()=>!!u.dataset&&u.dataset.length),_=e.ref(o.createUid()),t=e.computed({get:()=>b(),set:l=>l});function b(){const l=B.useNestedProp({userConfig:u.config,defaultConfig:$});return l.theme?{...B.useNestedProp({userConfig:o.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>u.config,l=>{t.value=b(),C()},{deep:!0}),e.watch(()=>u.dataset,l=>{d.value=u.dataset.map((n,a)=>({...n,color:n.color?o.convertColorToHex(n.color):v.value[a]||o.palette[a]||o.palette[a%o.palette.length]}))},{deep:!0});const v=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),d=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?o.convertColorToHex(l.color):v.value[n]||o.palette[n]||o.palette[n%o.palette.length]}))),m=e.ref(!0);e.onMounted(()=>{if(C(),t.value.style.animation.show){let h=function(){r+=a/l,r<a?(d.value=d.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?o.convertColorToHex(s.color):v.value[i]||o.palette[i]||o.palette[i%o.palette.length]})),requestAnimationFrame(h)):(m.value=!1,d.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?o.convertColorToHex(s.color):v.value[i]||o.palette[i]||o.palette[i%o.palette.length],id:o.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),a=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;m.value=!0,h()}});function C(){o.objectIsEmpty(u.dataset)?o.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:a,index:n})})})}const p=e.ref({width:500,height:16}),c=e.ref([]),g=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!c.value.includes(n)).reduce((l,n)=>l+n,0)),x=e.computed(()=>d.value.map((l,n)=>({...l,value:l.value||0,proportion:(l.value||0)/g.value,width:(l.value||0)/g.value*p.value.width,proportionLabel:o.dataLabel({v:(l.value||0)/g.value*100,s:"%",r:t.value.style.legend.percentage.rounding})}))),y=e.computed(()=>x.value.filter((l,n)=>!c.value.includes(n)));function N(l){c.value.includes(l)?c.value=c.value.filter(n=>n!==l):c.value.length<d.value.length-1&&c.value.push(l)}const f=e.computed(()=>{let l=0;const n=[];for(let a=0;a<y.value.length;a+=1)n.push({...y.value[a],start:l}),l+=y.value[a].width;return n});function w(l,n){E("selectDatapoint",{datapoint:l,index:n})}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%; background:${t.value.style.backgroundColor}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),width:"100%",viewBox:`0 0 ${p.value.width} ${p.value.height}`},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,L),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(a.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,A),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,F)],8,P))),128)),e.createElementVNode("clipPath",U,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,j)])]),e.createElementVNode("g",q,[e.createElementVNode("rect",{x:0,y:0,height:p.value.height,width:f.value.map(a=>a.width).reduce((a,r)=>a+r,0),fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!m.value})},null,10,T),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,onClick:()=>w(a,r),x:a.start,y:0,width:a.width,height:p.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${_.value})`:a.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!m.value})},null,10,H))),128))])],8,D)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:t.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign==="left"?"flex-start":t.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${t.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":c.value.includes(r)}),onClick:h=>{N(r),w(a,r)}},[e.createElementVNode("div",O,[(e.openBlock(),e.createElementBlock("svg",{height:`${t.value.style.legend.fontSize}px`,width:`${t.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:a.color},null,8,G)],8,M)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(a.name),5),t.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.legend.percentage.bold?"bold":"normal"};color:${t.value.style.legend.percentage.color}`)},e.toDisplayString(c.value.includes(r)?" - ":a.proportionLabel),5)):e.createCommentVNode("",!0),t.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${t.value.style.legend.value.bold?"bold":"normal"};color:${t.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.legend.value.formatter,a.value,e.unref(o.dataLabel)({p:t.value.style.legend.value.prefix,v:a.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:a,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,I))),256))],4)):e.createCommentVNode("",!0)],4))}},J=z._export_sfc(X,[["__scopeId","data-v-fe970768"]]);exports.default=J;
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./pdf-Cz3729tZ.cjs"),p=require("./usePrinter-BY2kEF_E.cjs"),h=require("./index-BzFQHG8B.cjs"),z=require("./DataTable-DEvCstuA.cjs"),V=require("./Title-BOtOowG-.cjs"),G=require("./Tooltip-B25UdCt3.cjs"),M=require("./Shape-yv-533z4.cjs"),P=require("./BaseIcon-B2zEAYL0.cjs"),T=require("./vue-ui-table-sparkline-C9v0ZCRY.cjs"),D=require("./vue-ui-skeleton-B_ed6BaF.cjs"),R=require("./Slicer-CnyR7m1m.cjs"),H=require("./vue-ui-accordion-D9rDPTxC.cjs"),B=require("./useNestedProp-BU19Uk2G.cjs"),t=require("vue"),W=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=h.createUid(),Y={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:z.DataTable,Shape:M._sfc_main,Title:V._sfc_main,Tooltip:G._sfc_main,UserOptions:p.UserOptions,BaseIcon:P.default,TableSparkline:T.default,Skeleton:D.default,Slicer:R.Slicer,Accordion:H.default},data(){this.dataset.forEach((n,u)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:u})});const r=Math.max(...this.dataset.map(n=>n.series.length)),s={start:0,end:r};return{themePalettes:h.themePalettes,themes:h.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:h.opacity,useSafeValues:!0,palette:h.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:h.createUid(),step:0,tableStep:0,titleStep:0,slicer:s,__to__:null,maxX:r,showSparklineTable:!0,segregateStep:0,sliderId:q,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(r,s){this.maxX=Math.max(...this.dataset.map(n=>n.series.length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(r,s){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const r=this.datasetWithIds.filter(a=>!this.segregatedSeries.includes(a.id)),s=Math.max(...r.map(a=>a.series.length)),n=[];for(let a=0;a<s;a+=1)n.push(r.map(e=>e.series[a]||0).reduce((e,g)=>(e||0)+(g||0),0));const u=Math.min(...n);return n.map(a=>a+(u<0?Math.abs(u):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const r=this.lineSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height,autoScaleYLabels:a.autoScaleYLabels})),s=this.barSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height})),n=this.plotSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height})),u=[...r,...s,...n].flatMap(a=>a).length;return[...r,...s,...n].flatMap((a,e)=>({id:a.id,scaleLabel:a.scaleLabel,name:a.name,color:a.color,scale:a.scale,yOffset:a.yOffset,individualHeight:a.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/u*(e+1),yLabels:a.scaleYLabels||a.scale.ticks.map(g=>({y:g>=0?a.zero-a.individualHeight*(g/a.max):a.zero+a.individualHeight*Math.abs(g)/a.max,value:g}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const r=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(r,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(r){return r}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(r=>r.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(s=>({...s,span:s.from===s.to?1:s.to<s.from?0:s.to-s.from+1}));const r=this.FINAL_CONFIG.chart.highlightArea;return[{...r,span:r.from===r.to?1:r.to<r.from?0:r.to-r.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((r,s)=>({...r,id:`uniqueId_${s}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((r,s)=>({...r,series:r.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[s]?this.customPalette[s]:this.palette[s]),id:`uniqueId_${s}`})):this.dataset},relativeDataset(){return this.safeDataset.map((r,s)=>({...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const s=r.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:r.id,name:r.name,color:r.color,values:this.fillArray(this.maxSeries,s)}})},tableSparklineConfig(){return{responsiveBreakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint,roundingValues:this.FINAL_CONFIG.table.rounding,showAverage:!1,showMedian:!1,showTotal:!1,fontFamily:this.FINAL_CONFIG.chart.fontFamily,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((r,s)=>({absoluteIndex:s,...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,s)=>{this.checkAutoScaleError(r);const n=Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),e={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c)))},k=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,x=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*x:g.max,k),b=this.calculateNiceScaleWithExactExtremes(e.valueMin,e.valueMax===e.valueMin?e.valueMax*x:e.valueMax,k),S=m.min>=0?0:Math.abs(m.min),F=0,C=m.max+S,y=b.max+Math.abs(F),f=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,l=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,o=this.drawingArea.bottom-f-l*S/C,i=this.drawingArea.bottom-f-l*F/y,d=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,A=r.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[N]+S)/C:this.ratioToMax(c),v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left+this.slot.bar*s+this.slot.bar*N*d-this.barSlot/2-s*this.barPeriodGap;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(l),x:this.checkNaN(v),y:this.drawingArea.bottom-f-l*O,value:r.absoluteValues[N],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),w=r.absoluteValues.map(c=>b.min>=0?(c-Math.abs(b.min))/(b.max-Math.abs(b.min)):(c+Math.abs(b.min))/(b.max+Math.abs(b.min))),L=r.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left-this.slot.bar/2+this.slot.bar*s+this.slot.bar*N*this.absoluteDataset.filter(v=>v.type==="bar").filter(v=>!this.segregatedSeries.includes(v.id)).length;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(l),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(f)-(this.checkNaN(l)*w[N]||0)),value:r.absoluteValues[N],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),I=m.ticks.map(c=>({y:c>=0?o-l*(c/C):o+l*Math.abs(c)/C,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),_=b.ticks.map(c=>{const N=(c-b.min)/(b.max-b.min);return{y:c>=0?i-l*N:i+l*N,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:f,autoScaleYLabels:_,individualHeight:l,scaleYLabels:r.autoScaling?_:I,individualScale:r.autoScaling?b:m,individualMax:r.autoScaling?y:C,zeroPosition:r.autoScaling?i:o,plots:r.autoScaling?L:A}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(r=>!this.segregatedSeries.includes(r.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="line").map(r=>{this.checkAutoScaleError(r);const s=Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,a={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-s)/(n-s)),valueMin:s,valueMax:n},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||(Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues))},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*k:e.max,g),m=this.calculateNiceScaleWithExactExtremes(a.valueMin,a.valueMax===a.valueMin?a.valueMax*k:a.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+Math.abs(b),C=m.max+Math.abs(S),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,l=this.drawingArea.bottom-y-f*b/F,o=this.drawingArea.bottom-y-f*S/C,i=r.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[N]+Math.abs(b))/F:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-y-f*O),value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),d=r.absoluteValues.map(c=>m.min>=0?(c-Math.abs(m.min))/(m.max-Math.abs(m.min)):(c+Math.abs(m.min))/(m.max+Math.abs(m.min))),A=r.series.map((c,N)=>[void 0,null].includes(r.absoluteValues[N])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:l,value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-y-(f*d[N]||0)),value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}),w=this.createSmoothPath(i),L=this.createSmoothPath(A),I=x.ticks.map(c=>({y:c>=0?l-f*(c/F):l+f*Math.abs(c)/F,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),_=m.ticks.map(c=>{const N=(c-m.min)/(m.max-m.min);return{y:c>=0?o-f*N:o+f*N,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:y,autoScaleYLabels:_,individualHeight:f,scaleYLabels:r.autoScaling?_:I,individualScale:r.autoScaling?m:x,individualMax:r.autoScaling?C:F,zeroPosition:r.autoScaling?o:l,curve:r.autoScaling?L:w,plots:r.autoScaling?A:i,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?A:i,r.autoScaling?o:l):this.createArea(i):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const s=Math.min(...r.absoluteValues.filter(I=>![null,void 0].includes(I))),n=Math.max(...r.absoluteValues.filter(I=>![null,void 0].includes(I)))||1,a={ratios:r.absoluteValues.filter(I=>![null,void 0].includes(I)).map(I=>(I-s)/(n-s)),valueMin:s,valueMax:n},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues)},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*k:e.max,g),m=this.calculateNiceScaleWithExactExtremes(a.valueMin,a.valueMax===a.valueMin?a.valueMax*k:a.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+b,C=m.max+Math.abs(S),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,l=this.drawingArea.bottom-y-f*b/F,o=this.drawingArea.bottom-y-f*S/C,i=r.series.map((I,_)=>{const c=this.mutableConfig.useIndividualScale?(r.absoluteValues[_]+Math.abs(b))/F:this.ratioToMax(I);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-f*c),value:r.absoluteValues[_],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[_]||""}}),d=r.absoluteValues.map(I=>m.min>=0?(I-Math.abs(m.min))/(m.max-Math.abs(m.min)):(I+Math.abs(m.min))/(m.max+Math.abs(m.min))),A=r.series.map((I,_)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-(f*d[_]||0)),value:r.absoluteValues[_],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[_]||""})),w=x.ticks.map(I=>({y:I>=0?l-f*(I/F):l+f*Math.abs(I)/F,value:I,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),L=m.ticks.map(I=>{const _=(I-m.min)/(m.max-m.min);return{y:I>=0?o-f*_:o+f*_,value:I,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:y,autoScaleYLabels:L,individualHeight:f,scaleYLabels:r.autoScaling?L:w,individualScale:r.autoScaling?m:x,individualMax:r.autoScaling?C:F,zeroPosition:r.autoScaling?o:l,plots:r.autoScaling?A:i}})},drawingArea(){const r=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(s=>!this.segregatedSeries.includes(s.id)).length*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+r,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+r)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const r=Math.min(...this.safeDataset.filter(s=>!this.segregatedSeries.includes(s.id)).map(s=>Math.min(...s.series)));return r>0?0:r},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(s=>s.type==="bar").filter(s=>!this.segregatedSeries.includes(s.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),s=[];return this.timeLabels.forEach((n,u)=>{const a=[n];this.relativeDataset.forEach(e=>{a.push(this.canShowValue(e.absoluteValues[u])?Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),s.push(a)}),{head:r,body:s}},dataTable(){const r=this.FINAL_CONFIG.table.showSum;let s=[""].concat(this.relativeDataset.map(e=>e.name));r&&(s=s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));let n=[];for(let e=0;e<this.maxSeries;e+=1){const g=this.relativeDataset.map(k=>k.absoluteValues[e]??0).reduce((k,x)=>k+x,0);n.push([this.timeLabels[e]??"-"].concat(this.relativeDataset.map(k=>this.applyDataLabel(k.type==="line"?this.FINAL_CONFIG.line.labels.formatter:k.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,k.absoluteValues[e]??0,this.dataLabel({p:k.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:k.absoluteValues[e]??0,s:k.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(r?(g??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const u={th:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},td:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},breakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint},a=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(e=>e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:s,body:n,config:u,colNames:a}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(r=>({shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((s,n)=>n===this.selectedSerieIndex),comments:r.comments||[],prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let r="",s=this.selectedSeries.map(a=>a.value).filter(a=>this.isSafeValue(a)&&a!==null).reduce((a,e)=>Math.abs(a)+Math.abs(e),0);const n=this.timeLabels[this.selectedSerieIndex],u=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(u)&&this.functionReturnsString(()=>u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(a=>{if(this.isSafeValue(a.value)){let e="",g="";switch(this.icons[a.type]){case"bar":e=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${a.color}" /></svg>`;break;case"line":!a.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(a.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" />`:a.shape==="triangle"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="square"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="diamond"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="pentagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="hexagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${h.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${a.color}" />${g}</svg>`;break;case"plot":if(!a.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(a.shape)){e=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;break}if(a.shape==="star"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${h.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(a.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}r+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${a.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(a.type==="line"?this.FINAL_CONFIG.line.labels.formatter:a.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,a.value,this.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:a}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${h.dataLabel({v:this.checkNaN(Math.abs(a.value)/s*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&a.comments.length&&a.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(r+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(r=>({y:r>=0?this.zero-this.drawingArea.height*this.ratioToMax(r):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)),value:r,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.prepareChart(),document.addEventListener("mousemove",r=>{this.clientPosition={x:r.clientX,y:r.clientY}})},methods:{abbreviate:h.abbreviate,adaptColorToBackground:h.adaptColorToBackground,applyDataLabel:h.applyDataLabel,assignStackRatios:h.assignStackRatios,calcLinearProgression:h.calcLinearProgression,calculateNiceScaleWithExactExtremes:h.calculateNiceScaleWithExactExtremes,checkNaN:h.checkNaN,closestDecimal:h.closestDecimal,convertColorToHex:h.convertColorToHex,convertConfigColors:h.convertConfigColors,convertCustomPalette:h.convertCustomPalette,createCsvContent:h.createCsvContent,createSmoothPath:h.createSmoothPath,createTSpans:h.createTSpans,dataLabel:h.dataLabel,downloadCsv:h.downloadCsv,error:h.error,functionReturnsString:h.functionReturnsString,hasDeepProperty:h.hasDeepProperty,img:p.saveAsImage,isFunction:h.isFunction,isSafeValue:h.isSafeValue,objectIsEmpty:h.objectIsEmpty,pdf:E.pdf,setOpacity:h.setOpacity,shiftHue:h.shiftHue,translateSize:h.translateSize,treeShake:h.treeShake,useMouse:G.useMouse,useNestedProp:B.useNestedProp,getHighlightAreaPosition(r){const s=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(r.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span;return{x:s<this.drawingArea.left?this.drawingArea.left:s,width:n}},prepareConfig(){const r=h.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const s=this.useNestedProp({userConfig:this.config,defaultConfig:r});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?s.chart.highlightArea=this.config.chart.highlightArea:s.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?s.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:s.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?s.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:s.chart.grid.labels.yAxis.scaleMax=null,s.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[s.theme]||this.config,defaultConfig:s}),customPalette:this.themePalettes[s.theme]||this.palette}:s},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((r,s)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:s})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((s,n)=>{this.isSafeValue(s)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
2
- -----> The serie '${r.name}' contains the value '${s}' at index ${n}.
3
- '${s}' was converted to null to allow the chart to display.`)})}),this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},this.FINAL_CONFIG.responsive){const s=this.$refs.chart.parentNode,{height:n,width:u}=s.getBoundingClientRect();let a=null,e=0;this.FINAL_CONFIG.chart.title.show&&(a=this.$refs.chartTitle,e=a.getBoundingClientRect().height);let g=null,k=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,k=g.getBoundingClientRect().height);let x=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(x=this.$refs.chartLegend,m=x.getBoundingClientRect().height),this.height=n-e-m-k,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(S=>{for(const F of S)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(k=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.height=F.contentBoxSize[0].blockSize-e-m-k-24,this.width=F.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()}).observe(s)}else this.height=this.FINAL_CONFIG.chart.height,this.width=this.FINAL_CONFIG.chart.width,this.viewBox=`0 0 ${this.width} ${this.height}`,this.fontSizes.dataLabels=this.FINAL_CONFIG.chart.grid.labels.fontSize,this.fontSizes.yAxis=this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,this.fontSizes.xAxis=this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,this.fontSizes.plotLabels=this.FINAL_CONFIG.chart.labels.fontSize,this.plotRadii.plot=this.FINAL_CONFIG.plot.radius,this.plotRadii.line=this.FINAL_CONFIG.line.radius},selectMinimapIndex(r){this.selectedMinimapIndex=r},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(r){r.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(r){if(!r[0])return[-10,-10,"",-10,-10];const s={x:r[0].x,y:this.zero},n={x:r.at(-1).x,y:this.zero},u=[];return r.forEach(a=>{u.push(`${a.x},${a.y} `)}),[s.x,s.y,...u,n.x,n.y].toString()},createIndividualArea(r,s){if(!r[0])return[-10,-10,"",-10,-10];const n={x:r[0]?r[0].x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:s},u={x:r.at(-1)?r.at(-1).x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:s},a=[];return r.filter(e=>!!e).forEach(e=>{a.push(`${e.x},${e.y} `)}),[n.x,n.y,...a,u.x,u.y].toString()},createStar:h.createStar,createPolygonPath:h.createPolygonPath,fillArray(r,s){let n=Array(r).fill(0);for(let u=0;u<s.length&&u<r;u+=1)n[u]=s[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(r=>r.series.length))},this.slicerStep+=1},calcRectHeight(r){return r.value>=0?this.checkNaN(this.zero-r.y<=0?1e-5:this.zero-r.y):this.checkNaN(r.y-this.zero<=0?1e-5:r.y-this.zero)},calcIndividualHeight(r){return r.value>=0?this.checkNaN(r.zeroPosition-r.y<=0?1e-5:r.zeroPosition-r.y):this.checkNaN(r.y-r.zeroPosition<=0?1e-5:r.zeroPosition-r.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(r){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?r.x+this.drawingArea.width/this.maxSeries*.05:r.x+this.slot.bar/2},calcRectY(r){return r.value>=0?r.y:this.zero},calcIndividualRectY(r){return r.value>=0?r.y:[null,void 0,NaN,1/0,-1/0].includes(r.zeroPosition)?0:r.zeroPosition},canShowValue(r){return![null,void 0,NaN,1/0,-1/0].includes(r)},findClosestValue(r,s){let n=s[0],u=Math.abs(r-s[0]);for(let a=1;a<s.length;a+=1){const e=Math.abs(r-s[a]);e<u&&s[a]<r&&(n=s[a],u=e)}return n},ratioToMax(r){return r/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(r){this.$emit("selectX",{dataset:this.relativeDataset.map(s=>({name:s.name,value:[null,void 0,NaN].includes(s.absoluteValues[r])?null:s.absoluteValues[r],color:s.color,type:s.type})),index:r,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]})},getData(){return this.absoluteDataset.map(r=>({values:r.absoluteValues,color:r.color,name:r.name,type:r.type}))},segregate(r){if(this.segregatedSeries.includes(r.id))this.segregatedSeries=this.segregatedSeries.filter(s=>s!==r.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(r.id)}this.$emit("selectLegend",this.relativeDataset.map(s=>({name:s.name,values:s.absoluteValues,color:s.color,type:s.type}))),this.segregateStep+=1},toggleTooltipVisibility(r,s=null){this.isTooltip=r,r?this.selectedSerieIndex=s:this.selectedSerieIndex=null},toggleFullscreen(r){this.isFullscreen=r,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},100)},generateCsv(){const r=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],s=["",...this.table.head.map(e=>e.label)],n=this.table.body,u=r.concat([s]).concat(n),a=this.createCsvContent(u);this.downloadCsv({csvContent:a,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.img({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"}).finally(()=>{this.isImaging=!1})},100)}}},X=["id"],U=["viewBox"],Z={key:0},J={class:"vue-ui-xy-grid"},K=["stroke","x1","x2","y1","y2"],Q=["stroke","x1","x2","y1","y2"],j={key:1},$=["x1","x2","y1","y2","stroke"],ee=["x1","x2","y1","y2","stroke"],te=["x1","x2","y1","y2","stroke"],le={key:3},re=["x1","x2","y1","y2","stroke"],ae=["id"],ie=["stop-color"],se=["stop-color"],oe=["stop-color"],ne=["id"],ce=["stop-color"],he=["stop-color"],de=["stop-color"],ue=["id"],me=["stop-color"],ge=["stop-color"],Ne=["id"],fe=["stop-color"],ke=["stop-color"],Ie=["id"],xe=["stop-color"],be=["stop-color"],Fe=["x","y","height","width","fill"],_e=["x","y","width"],ye=["x","y","height","width","fill"],Ce=["x","y","height","width","rx","fill","stroke","stroke-width"],Se=["width","x","y"],Ae={key:0},Le=["id"],we=["fill"],Oe=["x1","x2","y1","y2","stroke","marker-end"],ve=["x","y","font-size","fill"],pe=["stroke","x1","x2","y1","y2"],Ge={key:2},Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ee=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],ze={key:4},Ve=["x1","x2","y1","y2","stroke","stroke-width"],Me=["fill","font-size","transform"],Pe=["x1","x2","y1","y2","stroke"],Te=["x","y","font-size","fill"],De=["x1","x2","y1","y2","stroke"],Re=["x","y","font-size","fill"],He=["width","x","y"],We={style:{width:"100%"}},qe={key:0},Ye=["id"],Xe=["fill"],Ue=["x1","x2","y1","y2","stroke","marker-end"],Ze=["x","y","font-size","fill"],Je=["d","stroke","stroke-width","stroke-dasharray"],Ke={key:1},Qe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],je={key:0},$e=["d","fill"],et=["d","fill"],tt=["d","stroke","stroke-width","stroke-dasharray"],lt={key:2},rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],at=["width","x","y"],it={style:{width:"100%"}},st={key:3},ot=["id"],nt=["fill"],ct=["x1","x2","y1","y2","stroke","marker-end"],ht=["x","y","font-size","fill"],dt={key:5},ut=["x","y","font-size","fill"],mt=["x","y","font-size","fill","font-weight"],gt={key:6},Nt=["x","y","font-size","fill"],ft=["x","y"],kt=["x","y"],It={key:7},xt=["x","y","font-size","fill"],bt=["x","y"],Ft=["x","y"],_t=["x","y","font-size","fill","innerHTML"],yt=["x","y","font-size","fill","innerHTML"],Ct=["x","y","font-size","fill","innerHTML"],St=["x","y","font-size","fill","innerHTML"],At=["x","y","width","height","fill","onMouseenter"],Lt=["font-size","fill","transform"],wt=["x","y","font-size","fill"],Ot={key:9},vt=["text-anchor","font-size","fill","transform"],pt=["x","y","height","width","onMouseenter","onClick"],Gt={key:10},Bt=["x","y"],Et=["cx","cy","r","fill"],zt={key:3,class:"vue-data-ui-watermark"},Vt=["onClick"],Mt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Pt=["fill"],Tt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Dt=["fill"],Rt={key:7,ref:"chartLegend"},Ht={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Wt=["innerHTML"];function qt(r,s,n,u,a,e){const g=t.resolveComponent("Title"),k=t.resolveComponent("UserOptions"),x=t.resolveComponent("Shape"),m=t.resolveComponent("Skeleton"),b=t.resolveComponent("Slicer"),S=t.resolveComponent("Tooltip"),F=t.resolveComponent("BaseIcon"),C=t.resolveComponent("TableSparkline"),y=t.resolveComponent("DataTable"),f=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${a.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${a.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${e.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:t.normalizeStyle(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;${e.FINAL_CONFIG.chart.title.text?"":"padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`)},[e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(g,{key:`title_${a.titleStep}`,config:{title:{cy:"xy-div-title",...e.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...e.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.userOptions.show&&e.isDataset?(t.openBlock(),t.createBlock(k,{ref:"defails",key:`user_options_${a.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:a.isPrinting,isImaging:a.isImaging,uid:a.uniqueId,hasTooltip:e.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&e.FINAL_CONFIG.chart.tooltip.show,hasPdf:e.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:e.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:e.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:e.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:e.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&e.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:a.mutableConfig.isStacked,isFullscreen:a.isFullscreen,chartElement:r.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:a.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip},t.createSlots({_:2},[r.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,r.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,r.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[t.renderSlot(r.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":a.isFullscreen,"vue-data-ui-fulscreen--off":!a.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:a.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",Z,[t.createElementVNode("g",J,[e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.drawingArea.bottom,y2:e.drawingArea.bottom,"stroke-linecap":"round"},null,8,K)):t.createCommentVNode("",!0),a.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("g",null,[l.id===a.selectedScale&&l.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:l.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,ee))),256)):l.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,te))),256)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left+e.xPadding,y1:e.drawingArea.top,y2:e.drawingArea.bottom,"stroke-linecap":"round"},null,8,Q)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,l=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(l.y),y2:e.checkNaN(l.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,$))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",le,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(l,o)=>(t.openBlock(),t.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,x2:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,y1:e.drawingArea.top,y2:e.drawingArea.bottom,"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,re))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(l,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${o}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${a.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,ie),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(l.color,.02)}`},null,8,se),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,oe)],8,ae),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${a.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,ce),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(l.color,.02)}`},null,8,he),t.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,de)],8,ne)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${o}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${o}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,me),t.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ge)],8,ue)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${o}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${o}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,fe),t.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ke)],8,Ne),t.createElementVNode("linearGradient",{id:`areaGradient_${o}_${a.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(l.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,xe),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(l.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,be)],8,Ie)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,l=>(t.openBlock(),t.createElementBlock("g",null,[l.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.span,(o,i)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:l.from+i>=a.slicer.start&&l.from+i<=a.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(l.from+i-a.slicer.start),y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:e.setOpacity(l.color,l.opacity)},null,12,Fe),l.caption.text&&i===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(l.from+i-a.slicer.start)-(l.caption.width==="auto"?0:l.caption.width/2-e.drawingArea.width/e.maxSeries*l.span/2),y:e.drawingArea.top+l.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:l.to>=a.slicer.start&&l.from<a.slicer.end?1:0}),height:"1",width:l.caption.width==="auto"?e.drawingArea.width/e.maxSeries*l.span:l.caption.width},[t.createElementVNode("div",{style:t.normalizeStyle(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold?"bold":"normal"}`)},t.toDisplayString(l.caption.text),5)],12,_e)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${o}`},[t.createElementVNode("rect",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:[a.selectedMinimapIndex,a.selectedSerieIndex,a.selectedRowIndex].includes(o)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,ye)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${o}`,class:t.normalizeClass(`serie_bar_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${o}_${d}`},[e.canShowValue(i.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(i),y:a.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:a.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${o}_${a.uniqueId})`:`url(#rectGradient_neg_${o}_${a.uniqueId})`:l.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?l.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Ce)):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)/2)+e.FINAL_CONFIG.chart.comments.width,x:e.calcRectX(i)-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:e.checkNaN(i.y)+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:l.color}},void 0,!0)],8,Se)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(e.calcLinearProgression(l.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ae,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,we)],8,Le)]),l.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(l.plots).x1,x2:e.calcLinearProgression(l.plots).x2,y1:e.calcLinearProgression(l.plots).y1,y2:e.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,Oe)):t.createCommentVNode("",!0),l.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(l.plots).x2,y:e.calcLinearProgression(l.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:l.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,ve)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!a.mutableConfig.useIndividualScale&&e.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(t.openBlock(),t.createElementBlock("line",{key:1,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(e.zero),y2:e.checkNaN(e.zero),"stroke-linecap":"round"},null,8,pe)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(a.selectedSerieIndex)||a.selectedMinimapIndex!==null)?(t.openBlock(),t.createElementBlock("g",Ge,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.selectedSerieIndex||a.selectedMinimapIndex)+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.selectedSerieIndex||a.selectedMinimapIndex)+e.drawingArea.width/e.maxSeries/2,y1:e.drawingArea.top,y2:e.drawingArea.bottom,stroke:e.FINAL_CONFIG.chart.highlighter.color,"stroke-width":e.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":e.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Be)])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.frame.show?(t.openBlock(),t.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,fill:"transparent",stroke:e.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":e.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":e.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Ee)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",ze,[a.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:l.x+e.xPadding,x2:l.x+e.xPadding,y1:a.mutableConfig.isStacked?e.checkNaN(e.drawingArea.bottom-l.yOffset-l.individualHeight):e.checkNaN(e.drawingArea.top),y2:a.mutableConfig.isStacked?e.checkNaN(e.drawingArea.bottom-l.yOffset):e.checkNaN(e.drawingArea.bottom),stroke:l.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,Ve)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:l.color,"font-size":a.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${l.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${a.mutableConfig.isStacked?e.drawingArea.bottom-l.yOffset-l.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(l.name)+" "+t.toDisplayString(l.scaleLabel?`- ${l.scaleLabel}`:""),9,Me),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("line",{x1:l.x-3+e.xPadding,x2:l.x+e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:l.color,"stroke-width":1,"stroke-linecap":"round"},null,8,Pe))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("text",{x:l.x-5+e.xPadding,y:e.checkNaN(o.y)+a.fontSizes.dataLabels/3,"font-size":a.fontSizes.dataLabels,"text-anchor":"end",fill:l.color},t.toDisplayString(e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,e.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:i})),9,Te))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${o}`},[e.canShowValue(l)&&l.value>=e.niceScale.min&&l.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left-5+e.xPadding,y1:e.checkNaN(l.y),y2:e.checkNaN(l.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,De)):t.createCommentVNode("",!0),l.value>=e.niceScale.min&&l.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(l.y+a.fontSizes.dataLabels/3),"font-size":a.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(l.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,l.value,e.dataLabel({p:l.prefix,v:l.value,s:l.suffix,r:1})):""),9,Re)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${o}`,class:t.normalizeClass(`serie_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${o}_${d}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${a.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?l.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:a.selectedSerieIndex!==null&&a.selectedSerieIndex===d||a.selectedMinimapIndex!==null&&a.selectedMinimapIndex===d?(a.plotRadii.plot||6)*1.5:a.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:l.color,strokeWidth:e.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",We,[t.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:l.color}},void 0,!0)])],8,He)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(e.calcLinearProgression(l.plots).trend)?(t.openBlock(),t.createElementBlock("g",qe,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,Xe)],8,Ye)]),l.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(l.plots).x1,x2:e.calcLinearProgression(l.plots).x2,y1:e.calcLinearProgression(l.plots).y1,y2:e.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Ue)):t.createCommentVNode("",!0),l.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(l.plots).x2,y:e.calcLinearProgression(l.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:l.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,Ze)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[l.smooth&&l.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${l.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Je)):l.plots.length>1?(t.openBlock(),t.createElementBlock("g",Ke,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${o}_${d}`},[i&&d<l.plots.length-1&&l.plots[d+1]&&e.canShowValue(i.value)&&e.canShowValue(l.plots[d+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:i.x,x2:l.plots[d+1].x,y1:i.y,y2:l.plots[d+1].y,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Qe)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[l.useArea&&l.plots.length>1?(t.openBlock(),t.createElementBlock("g",je,[l.smooth?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M ${l.plots[0]?l.plots[0].x:Math.min(...l.plots.filter(i=>!!i).map(i=>i.x))},${a.mutableConfig.isStacked?e.drawingArea.bottom-l.yOffset:e.drawingArea.bottom} ${l.curve} L ${l.plots.at(-1)?l.plots.at(-1).x:e.drawingArea.left+e.slot.line*o+e.slot.line/2},${a.mutableConfig.isStacked?e.drawingArea.bottom-l.yOffset:e.drawingArea.bottom} Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${a.uniqueId})`:e.setOpacity(l.color,e.FINAL_CONFIG.line.area.opacity)},null,8,$e)):(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${l.area}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${a.uniqueId})`:e.setOpacity(l.color,e.FINAL_CONFIG.line.area.opacity)},null,8,et))])):t.createCommentVNode("",!0),l.smooth&&l.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${l.curve}`,stroke:l.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,tt)):l.plots.length>1?(t.openBlock(),t.createElementBlock("g",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${o}_${d}`},[i&&d<l.plots.length-1&&l.plots[d+1]&&e.canShowValue(i.value)&&e.canShowValue(l.plots[d+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:i.x,x2:l.plots[d+1].x,y1:i.y,y2:l.plots[d+1].y,stroke:l.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,rt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_line_${o}_${d}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${a.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?l.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:a.selectedSerieIndex!==null&&a.selectedSerieIndex===d||a.selectedMinimapIndex!==null&&a.selectedMinimapIndex===d?(a.plotRadii.line||6)*1.5:a.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:l.color,strokeWidth:e.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",it,[t.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:l.color}},void 0,!0)])],8,at)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(e.calcLinearProgression(l.plots).trend)?(t.openBlock(),t.createElementBlock("g",st,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,nt)],8,ot)]),l.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(l.plots).x1,x2:e.calcLinearProgression(l.plots).x2,y1:e.calcLinearProgression(l.plots).y1,y2:e.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,ct)):t.createCommentVNode("",!0),l.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(l.plots).x2,y:e.calcLinearProgression(l.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:l.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,ht)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",dt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${o}`,class:t.normalizeClass(`xLabel_bar_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${o}_${d}`},[i&&(!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?i.x+e.slot.line/2:e.calcRectX(i)+e.calcRectWidth()/2-e.barPeriodGap/2,y:e.checkNaN(i.y)+(i.value>0?e.FINAL_CONFIG.bar.labels.offsetY:-e.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,i.value,e.dataLabel({p:l.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:l.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:i,serie:l}):""),9,ut)):t.createCommentVNode("",!0),i&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?i.x+e.slot.line/2:i.x+e.calcRectWidth()*1.1,y:i.y+(i.value>0?e.FINAL_CONFIG.bar.serieName.offsetY:-e.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?l.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:l.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):l.name),9,mt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",gt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}`,class:t.normalizeClass(`xLabel_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[i&&!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,i.value,e.dataLabel({p:l.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:l.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:i,serie:l}):""),9,Nt)):t.createCommentVNode("",!0),i&&d===0&&l.useTag&&l.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,ft)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.useTag&&l.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:i.x-l.name.length*(a.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,kt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.line.labels.show&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",It,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}`,class:t.normalizeClass(`xLabel_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[i&&!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+(i.value>0?e.FINAL_CONFIG.line.labels.offsetY:-e.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,i.value,e.dataLabel({p:l.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:l.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:i,serie:l}):""),9,xt)):t.createCommentVNode("",!0),i&&d===0&&l.useTag&&l.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,bt)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.useTag&&l.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:i.x-l.name.length*(a.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,Ft)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}`,class:t.normalizeClass(`xLabel_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[i&&d===0&&l.showSerieName&&l.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"end",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x-a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,_t)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.showSerieName&&l.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"start",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x+a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,yt)):t.createCommentVNode("",!0)]))),128))],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}`,class:t.normalizeClass(`xLabel_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[i&&d===0&&l.showSerieName&&l.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"end",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x-a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,Ct)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.showSerieName&&l.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"start",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x+a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,St)):t.createCommentVNode("",!0)]))),128))],6))),128)),a.mutableConfig.useIndividualScale&&!a.mutableConfig.isStacked?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:8},t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("rect",{x:l.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:a.selectedScale===l.id?e.setOpacity(l.color,20):"transparent",onMouseenter:o=>a.selectedScale=l.id,onMouseleave:s[0]||(s[0]=o=>a.selectedScale=null)},null,40,At))),256)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!a.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":a.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${a.fontSizes.yAxis+e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Lt)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.width/2,y:e.drawingArea.bottom+a.fontSizes.yAxis+a.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":a.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,wt)):t.createCommentVNode("",!0)]),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",Ot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.timeLabels,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${o}`},[l&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&a.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(t.openBlock(),t.createElementBlock("text",{key:0,"text-anchor":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":a.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+a.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},t.toDisplayString(l||""),9,vt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${o}`},[t.createElementVNode("rect",{"data-cy-trap":"",x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:"transparent",onMouseenter:i=>e.toggleTooltipVisibility(!0,o),onMouseleave:s[1]||(s[1]=i=>e.toggleTooltipVisibility(!1)),onClick:i=>e.selectX(o)},null,40,pt)]))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(a.selectedSerieIndex)?(t.openBlock(),t.createElementBlock("g",Gt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*a.selectedSerieIndex-100+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[t.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:t.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)},t.toDisplayString(e.timeLabels[a.selectedSerieIndex]||a.selectedSerieIndex),5)],8,Bt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*a.selectedSerieIndex+e.drawingArea.width/e.maxSeries/2,cy:e.drawingArea.bottom,r:e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:e.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Et)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"svg",{svg:e.svg},void 0,!0)],14,U)):t.createCommentVNode("",!0),r.$slots.watermark?(t.openBlock(),t.createElementBlock("div",zt,[t.renderSlot(r.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:a.isPrinting||a.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(m,{key:4,config:{type:"line",style:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:e.FINAL_CONFIG.chart.grid.stroke},path:{color:e.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),e.FINAL_CONFIG.chart.zoom.show&&a.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(b,{ref:"chartSlicer",key:`slicer_${a.slicerStep}`,background:e.FINAL_CONFIG.chart.zoom.color,fontSize:e.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:e.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.slicer.end-1],textColor:e.FINAL_CONFIG.chart.color,inputColor:e.FINAL_CONFIG.chart.zoom.color,selectColor:e.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:e.FINAL_CONFIG.chart.backgroundColor,minimap:e.minimap,smoothMinimap:e.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:e.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:a.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,max:a.maxX,min:0,valueStart:a.slicer.start,valueEnd:a.slicer.end,start:a.slicer.start,"onUpdate:start":s[2]||(s[2]=l=>a.slicer.start=l),end:a.slicer.end,"onUpdate:end":s[3]||(s[3]=l=>a.slicer.end=l),onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:l})=>[t.renderSlot(r.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","max","valueStart","valueEnd","start","end","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:6,ref:"chartLegend",class:"vue-ui-xy-legend",style:t.normalizeStyle(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.absoluteDataset,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:i=>e.segregate(l),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(l.id)})},[a.icons[l.type]==="line"?(t.openBlock(),t.createElementBlock("svg",Mt,[t.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:l.color},null,8,Pt),t.createVNode(x,{plot:{x:10,y:9},radius:4,color:l.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(t.openBlock(),t.createElementBlock("svg",Tt,[a.icons[l.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:l.color},null,8,Dt)):(t.openBlock(),t.createBlock(x,{key:1,plot:{x:6,y:6},radius:5,color:l.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle"},null,8,["color","shape"]))])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(l.name),5)],10,Vt))),128))],4)):(t.openBlock(),t.createElementBlock("div",Rt,[t.renderSlot(r.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),t.createVNode(S,{show:a.mutableConfig.showTooltip&&a.isTooltip,backgroundColor:e.FINAL_CONFIG.chart.tooltip.backgroundColor,color:e.FINAL_CONFIG.chart.tooltip.color,fontSize:e.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:e.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:e.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:e.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:e.FINAL_CONFIG.chart.tooltip.position,offsetY:e.FINAL_CONFIG.chart.tooltip.offsetY,parent:r.$refs.chart,content:e.tooltipContent,isCustom:e.FINAL_CONFIG.chart.tooltip.customFormat&&typeof e.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(f,{key:8,hideDetails:"",config:{open:a.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color},head:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color}}},{content:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(`${a.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",Ht,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=l=>a.showSparklineTable=l)},null,512),[[t.vModelCheckbox,a.showSparklineTable]]),t.createElementVNode("div",{onClick:s[5]||(s[5]=l=>a.showSparklineTable=!a.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(F,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),a.showSparklineTable?(t.openBlock(),t.createBlock(C,{key:`sparkline_${a.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(y,{key:`table_${a.tableStep}`,colNames:e.dataTable.colNames,head:e.dataTable.head,body:e.dataTable.body,config:e.dataTable.config,title:`${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text?` : ${e.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:s[6]||(s[6]=l=>a.mutableConfig.showTable=!1)},{th:t.withCtx(({th:l})=>[t.createElementVNode("div",{innerHTML:l},null,8,Wt)]),td:t.withCtx(({td:l})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(l))?l:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:l,s:e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,X)}const Yt=W._export_sfc(Y,[["render",qt],["__scopeId","data-v-72e644a5"]]);exports.default=Yt;