vue-data-ui 2.4.21 → 2.4.22

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 (147) hide show
  1. package/dist/{Arrow-BuVX2WoN.js → Arrow-BW_I0Vmx.js} +1 -1
  2. package/dist/{Arrow-DDe-g8rw.cjs → Arrow-D2zjDsxe.cjs} +1 -1
  3. package/dist/{BaseIcon-BdKOa64A.cjs → BaseIcon-BCC16NCl.cjs} +1 -1
  4. package/dist/{BaseIcon-BRSPQaGQ.js → BaseIcon-BbbAnrZI.js} +1 -1
  5. package/dist/{DataTable-BpVz3DBX.js → DataTable-Ce4R8v-3.js} +2 -2
  6. package/dist/{DataTable-H-KTkjfv.cjs → DataTable-DeevzR8O.cjs} +1 -1
  7. package/dist/{Legend-G5Zc4QaZ.cjs → Legend-BksImVUi.cjs} +1 -1
  8. package/dist/{Legend-hnLfwhmm.js → Legend-C6q2bLVV.js} +1 -1
  9. package/dist/{PackageVersion-BbQFSVXm.cjs → PackageVersion-AftniVVo.cjs} +1 -1
  10. package/dist/{PackageVersion-wqab02xF.js → PackageVersion-g2UOsY7H.js} +1 -1
  11. package/dist/{PenAndPaper-C_laA5mt.js → PenAndPaper-DRFeGfqV.js} +3 -3
  12. package/dist/{PenAndPaper-BX8pR5oV.cjs → PenAndPaper-j5noaKJZ.cjs} +1 -1
  13. package/dist/{Shape-QdnXSUyn.js → Shape-CBu7ails.js} +1 -1
  14. package/dist/{Shape-CJbFv4bs.cjs → Shape-Cf2Cj3g6.cjs} +1 -1
  15. package/dist/{Slicer-DV1kBscZ.js → Slicer-C0bRksfh.js} +2 -2
  16. package/dist/{Slicer-C1blYfez.cjs → Slicer-IneBjcpY.cjs} +1 -1
  17. package/dist/{Title-DBozX6nP.js → Title-B2orjUIW.js} +1 -1
  18. package/dist/{Title-BRqTk-nT.cjs → Title-BxrsVY3-.cjs} +1 -1
  19. package/dist/{Tooltip-DvGSIp31.cjs → Tooltip-BXc56Oxr.cjs} +1 -1
  20. package/dist/{Tooltip-Com_T8vc.js → Tooltip-CXjc5vb3.js} +1 -1
  21. package/dist/{index-CsQwCVqU.cjs → index-3oZdQf6G.cjs} +1 -1
  22. package/dist/{index-hV0hU1iE.js → index-D020Kb3z.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-CRAUOmT5.js → useNestedProp-CZkNAGQh.js} +1 -1
  25. package/dist/{useNestedProp-DSYpaLxP.cjs → useNestedProp-vPTP0Wem.cjs} +1 -1
  26. package/dist/{usePrinter-O2fMMTMe.cjs → usePrinter-BKzxQK4e.cjs} +1 -1
  27. package/dist/{usePrinter-y3d31M4g.js → usePrinter-CN0J0NFL.js} +1 -1
  28. package/dist/{vue-data-ui-qBad3a6z.cjs → vue-data-ui-CWDZLUkp.cjs} +1 -1
  29. package/dist/{vue-data-ui-bEKZH8jG.js → vue-data-ui-e2cclW_4.js} +58 -58
  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-CkqKnqQt.cjs → vue-ui-3d-bar-DCeFCwb0.cjs} +1 -1
  33. package/dist/{vue-ui-3d-bar-f7YaBbrh.js → vue-ui-3d-bar-DggyGAlC.js} +9 -9
  34. package/dist/{vue-ui-accordion-m-s-7akB.js → vue-ui-accordion-B0fEWLwn.js} +3 -3
  35. package/dist/{vue-ui-accordion-CaktYQoo.cjs → vue-ui-accordion-QoJofzqF.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-EKKYQu3N.cjs → vue-ui-age-pyramid-CXtRGpVa.cjs} +1 -1
  37. package/dist/{vue-ui-age-pyramid-DkfNZR86.js → vue-ui-age-pyramid-DGDvfcvP.js} +10 -10
  38. package/dist/{vue-ui-annotator-DrVu5Pu0.js → vue-ui-annotator-BETCQ-pV.js} +1 -1
  39. package/dist/{vue-ui-annotator-v07J6oQG.cjs → vue-ui-annotator-BEZ0D_12.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-CYDMehDZ.js → vue-ui-bullet-BK3d_nhc.js} +8 -8
  41. package/dist/{vue-ui-bullet-CdG92x7A.cjs → vue-ui-bullet-qAGQkwN4.cjs} +1 -1
  42. package/dist/{vue-ui-candlestick-Bw1O3QmK.js → vue-ui-candlestick-DQR8cYLr.js} +11 -11
  43. package/dist/{vue-ui-candlestick-D9yN-yRo.cjs → vue-ui-candlestick-DwfFHSRG.cjs} +1 -1
  44. package/dist/{vue-ui-carousel-table-kcQa0FHw.js → vue-ui-carousel-table-B6TSxUwp.js} +4 -4
  45. package/dist/{vue-ui-carousel-table-Cg6hAEVv.cjs → vue-ui-carousel-table-BrIXFgJp.cjs} +1 -1
  46. package/dist/{vue-ui-chestnut-Qu8c3_vB.cjs → vue-ui-chestnut-CWtw_edx.cjs} +1 -1
  47. package/dist/{vue-ui-chestnut-DE1AMXeX.js → vue-ui-chestnut-CpINqXRz.js} +8 -8
  48. package/dist/{vue-ui-cursor-DG8oufeh.cjs → vue-ui-cursor-DvX6FbhZ.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-DbfjKtpf.js → vue-ui-cursor-yI58QC1O.js} +2 -2
  50. package/dist/{vue-ui-dashboard-BbwgfxLx.cjs → vue-ui-dashboard-BCic2CfN.cjs} +1 -1
  51. package/dist/{vue-ui-dashboard-CAkCNUBh.js → vue-ui-dashboard-Bb7vJ0Nx.js} +2 -2
  52. package/dist/{vue-ui-digits-DgQkxULm.cjs → vue-ui-digits-C4dI1v6b.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BaXAiH4u.js → vue-ui-digits-D4uy7_hL.js} +2 -2
  54. package/dist/{vue-ui-donut-7GM_Wd1Y.js → vue-ui-donut-CRiEc5mP.js} +11 -11
  55. package/dist/{vue-ui-donut-BHzCOBu6.cjs → vue-ui-donut-ClvjMOxC.cjs} +1 -1
  56. package/dist/{vue-ui-donut-evolution-C-TkUOr6.cjs → vue-ui-donut-evolution-DFkGtmhv.cjs} +1 -1
  57. package/dist/{vue-ui-donut-evolution-DbU4RlP6.js → vue-ui-donut-evolution-DgrQVEh2.js} +11 -11
  58. package/dist/{vue-ui-dumbbell-DacMeiTU.cjs → vue-ui-dumbbell-BdkARfxX.cjs} +1 -1
  59. package/dist/{vue-ui-dumbbell-BacTx3zB.js → vue-ui-dumbbell-QCB4jZm4.js} +10 -10
  60. package/dist/{vue-ui-flow-D2G0YWL9.js → vue-ui-flow-CRnCk5Is.js} +9 -9
  61. package/dist/{vue-ui-flow-BUAvjG7i.cjs → vue-ui-flow-CYfdTIad.cjs} +1 -1
  62. package/dist/{vue-ui-galaxy-CxfV3BIw.cjs → vue-ui-galaxy-Cn9t3BG5.cjs} +1 -1
  63. package/dist/{vue-ui-galaxy-D6RFyIbQ.js → vue-ui-galaxy-WhRsA1Is.js} +11 -11
  64. package/dist/{vue-ui-gauge-DNJXnyLw.js → vue-ui-gauge-DwmCZiTj.js} +7 -7
  65. package/dist/{vue-ui-gauge-CJ5TKJpb.cjs → vue-ui-gauge-jYskVFUy.cjs} +1 -1
  66. package/dist/{vue-ui-gizmo-BBA51j_0.cjs → vue-ui-gizmo-C2P2qQYU.cjs} +1 -1
  67. package/dist/{vue-ui-gizmo-Db7-gRmB.js → vue-ui-gizmo-DpEZm4Uk.js} +3 -3
  68. package/dist/{vue-ui-heatmap-KQj8Jbpt.cjs → vue-ui-heatmap-D7TGNxC-.cjs} +1 -1
  69. package/dist/{vue-ui-heatmap-Ba6RMSTk.js → vue-ui-heatmap-u3SOjwts.js} +10 -10
  70. package/dist/{vue-ui-kpi-1srKxA1L.cjs → vue-ui-kpi-CCr0pHjp.cjs} +1 -1
  71. package/dist/{vue-ui-kpi-C8wyHy1H.js → vue-ui-kpi-Cdz5RM6j.js} +3 -3
  72. package/dist/{vue-ui-mini-loader-DutVmCuC.js → vue-ui-mini-loader-B2Xh0j5H.js} +2 -2
  73. package/dist/{vue-ui-mini-loader-BgKTecng.cjs → vue-ui-mini-loader-BuCeYPNP.cjs} +1 -1
  74. package/dist/{vue-ui-molecule-BOkIojio.js → vue-ui-molecule-GPDqR2rp.js} +11 -11
  75. package/dist/{vue-ui-molecule-CSezTn3m.cjs → vue-ui-molecule-z1A47zG1.cjs} +1 -1
  76. package/dist/{vue-ui-mood-radar-C8U8PHaq.js → vue-ui-mood-radar-DdQC5bH5.js} +11 -11
  77. package/dist/{vue-ui-mood-radar-CNTDrRs6.cjs → vue-ui-mood-radar-YZfCADah.cjs} +1 -1
  78. package/dist/{vue-ui-nested-donuts-DRWWnsdR.cjs → vue-ui-nested-donuts-CDSRcEX0.cjs} +1 -1
  79. package/dist/{vue-ui-nested-donuts-Bv2D1uFd.js → vue-ui-nested-donuts-Cf_KfoeP.js} +11 -11
  80. package/dist/{vue-ui-onion-CsnwbXED.cjs → vue-ui-onion-CmGZo3Sf.cjs} +1 -1
  81. package/dist/{vue-ui-onion-CT9YjU8v.js → vue-ui-onion-Lw3ohFAX.js} +11 -11
  82. package/dist/{vue-ui-parallel-coordinate-plot-C8KCRAX1.cjs → vue-ui-parallel-coordinate-plot-AHpf7ejC.cjs} +1 -1
  83. package/dist/{vue-ui-parallel-coordinate-plot-in5qpfXf.js → vue-ui-parallel-coordinate-plot-BsT0r0hr.js} +12 -12
  84. package/dist/{vue-ui-quadrant-Bw-0aW4F.cjs → vue-ui-quadrant-BPUIyB4-.cjs} +1 -1
  85. package/dist/{vue-ui-quadrant-C_9VNAXg.js → vue-ui-quadrant-BTmoe6UT.js} +12 -12
  86. package/dist/{vue-ui-quick-chart-C0YqMjyE.cjs → vue-ui-quick-chart-BYyXa06h.cjs} +1 -1
  87. package/dist/{vue-ui-quick-chart-BDBlm9uu.js → vue-ui-quick-chart-CRtE0pcc.js} +9 -9
  88. package/dist/{vue-ui-radar-C2QM_ee9.js → vue-ui-radar-BpkjOSOI.js} +12 -12
  89. package/dist/{vue-ui-radar-DXKMbeyW.cjs → vue-ui-radar-krdMX_hl.cjs} +1 -1
  90. package/dist/{vue-ui-rating-CsOknvaV.cjs → vue-ui-rating-9kj9GE7P.cjs} +1 -1
  91. package/dist/{vue-ui-rating-DVpgv2AY.js → vue-ui-rating-D1RlkwK9.js} +2 -2
  92. package/dist/{vue-ui-relation-circle-OXfdAyky.js → vue-ui-relation-circle-B7WGb08k.js} +7 -7
  93. package/dist/{vue-ui-relation-circle-ZA-M7aSc.cjs → vue-ui-relation-circle-Kv3G0P5k.cjs} +1 -1
  94. package/dist/{vue-ui-rings-qLQ-gl21.js → vue-ui-rings-DjXcLsY1.js} +11 -11
  95. package/dist/{vue-ui-rings-rftqDu-q.cjs → vue-ui-rings-DsZPnoqm.cjs} +1 -1
  96. package/dist/{vue-ui-scatter-Cv2IcrVH.cjs → vue-ui-scatter-D3ntjnfT.cjs} +1 -1
  97. package/dist/{vue-ui-scatter-4LbMvEAD.js → vue-ui-scatter-DEkTyyG8.js} +12 -12
  98. package/dist/{vue-ui-screenshot-BgjnQNxG.cjs → vue-ui-screenshot-BEbUxjNl.cjs} +1 -1
  99. package/dist/{vue-ui-screenshot-BV6ZYQRk.js → vue-ui-screenshot-kiJVXAGt.js} +1 -1
  100. package/dist/{vue-ui-skeleton-DsRTbz6d.cjs → vue-ui-skeleton-CI8sxaqr.cjs} +1 -1
  101. package/dist/{vue-ui-skeleton-BY8Jg9a_.js → vue-ui-skeleton-E1-7diF5.js} +3 -3
  102. package/dist/{vue-ui-smiley-BQ_3uicm.js → vue-ui-smiley-Cjbqlfre.js} +2 -2
  103. package/dist/{vue-ui-smiley-DB3y8CIb.cjs → vue-ui-smiley-CmkUQtfb.cjs} +1 -1
  104. package/dist/{vue-ui-spark-trend-Cgn7ONtS.cjs → vue-ui-spark-trend-C60Ypeev.cjs} +1 -1
  105. package/dist/{vue-ui-spark-trend-BhCJfY_p.js → vue-ui-spark-trend-DfpFe1UQ.js} +5 -5
  106. package/dist/{vue-ui-sparkbar-DxXt-GHr.js → vue-ui-sparkbar-B5oV2RUs.js} +4 -4
  107. package/dist/{vue-ui-sparkbar-D4GIhUXT.cjs → vue-ui-sparkbar-BAa71eZp.cjs} +1 -1
  108. package/dist/{vue-ui-sparkgauge-BbltbIrq.cjs → vue-ui-sparkgauge-UejPQm4b.cjs} +1 -1
  109. package/dist/{vue-ui-sparkgauge-BCPkJveV.js → vue-ui-sparkgauge-xlERw-g0.js} +4 -4
  110. package/dist/{vue-ui-sparkhistogram-DzX6lkk8.cjs → vue-ui-sparkhistogram-DC4jzkI0.cjs} +1 -1
  111. package/dist/{vue-ui-sparkhistogram-BKcr2mFc.js → vue-ui-sparkhistogram-nzFRlmgx.js} +5 -5
  112. package/dist/{vue-ui-sparkline-C-svTmFU.cjs → vue-ui-sparkline-BT4hxfBE.cjs} +1 -1
  113. package/dist/{vue-ui-sparkline-DYHUFUOp.js → vue-ui-sparkline-Duu0VrnG.js} +4 -4
  114. package/dist/{vue-ui-sparkstackbar-CL0uL_Te.cjs → vue-ui-sparkstackbar-K_vPau1u.cjs} +1 -1
  115. package/dist/{vue-ui-sparkstackbar-Btag2osm.js → vue-ui-sparkstackbar-tyoFIhva.js} +5 -5
  116. package/dist/{vue-ui-stackbar-CML7v_yU.cjs → vue-ui-stackbar-DRlvF164.cjs} +1 -1
  117. package/dist/{vue-ui-stackbar-C2mRU7ya.js → vue-ui-stackbar-e8BUjttp.js} +12 -12
  118. package/dist/{vue-ui-strip-plot-Vn5sEcME.cjs → vue-ui-strip-plot-8MOhIicL.cjs} +1 -1
  119. package/dist/{vue-ui-strip-plot-BIXF3VxN.js → vue-ui-strip-plot-Ef8oKjNV.js} +11 -11
  120. package/dist/{vue-ui-table-CyuRalnp.js → vue-ui-table-BOV6jtcL.js} +1 -1
  121. package/dist/{vue-ui-table-BbVpmm0B.cjs → vue-ui-table-DfevkNnK.cjs} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DrQXQd41.cjs → vue-ui-table-heatmap-BMyRP1ol.cjs} +1 -1
  123. package/dist/{vue-ui-table-heatmap-DlGeS3l9.js → vue-ui-table-heatmap-CL-MybKI.js} +4 -4
  124. package/dist/{vue-ui-table-sparkline-DauDTktD.cjs → vue-ui-table-sparkline-CsqcT3ff.cjs} +1 -1
  125. package/dist/{vue-ui-table-sparkline-Yg2I33yZ.js → vue-ui-table-sparkline-DXvxiDJJ.js} +5 -5
  126. package/dist/{vue-ui-thermometer-Bglz0dOQ.cjs → vue-ui-thermometer-DyYqfAOW.cjs} +1 -1
  127. package/dist/{vue-ui-thermometer-DXwbqNrn.js → vue-ui-thermometer-WKzTNOOX.js} +7 -7
  128. package/dist/{vue-ui-timer-Brr7buaM.js → vue-ui-timer-CFDkyaxV.js} +5 -5
  129. package/dist/{vue-ui-timer-CpSEl8UD.cjs → vue-ui-timer-DQQGe1jt.cjs} +1 -1
  130. package/dist/{vue-ui-tiremarks-zdGmZNjo.cjs → vue-ui-tiremarks-C8iAWe-u.cjs} +1 -1
  131. package/dist/{vue-ui-tiremarks-DJowPFwY.js → vue-ui-tiremarks-aiUC8-YL.js} +7 -7
  132. package/dist/{vue-ui-treemap-a7NSP656.cjs → vue-ui-treemap-BORZ3g1I.cjs} +1 -1
  133. package/dist/{vue-ui-treemap-Bn5JU5BI.js → vue-ui-treemap-Bw-bWkza.js} +11 -11
  134. package/dist/{vue-ui-vertical-bar-CZxN7L9z.js → vue-ui-vertical-bar--mYbTcpi.js} +11 -11
  135. package/dist/{vue-ui-vertical-bar-BYG1vGlT.cjs → vue-ui-vertical-bar-B3ypOHUB.cjs} +1 -1
  136. package/dist/{vue-ui-waffle-CzUpKfkZ.js → vue-ui-waffle-Bj-tJs4n.js} +11 -11
  137. package/dist/{vue-ui-waffle-BbDBOivH.cjs → vue-ui-waffle-_84Hvek7.cjs} +1 -1
  138. package/dist/{vue-ui-wheel-CCje_ZSc.js → vue-ui-wheel-BywwqvY2.js} +7 -7
  139. package/dist/{vue-ui-wheel-lN3uYCr4.cjs → vue-ui-wheel-C-v9TgG1.cjs} +1 -1
  140. package/dist/{vue-ui-word-cloud-BjvG3n7x.cjs → vue-ui-word-cloud-CaQ4jLed.cjs} +1 -1
  141. package/dist/{vue-ui-word-cloud-D_5y92zN.js → vue-ui-word-cloud-CwExwCYc.js} +10 -10
  142. package/dist/{vue-ui-xy-Drm1aAb-.js → vue-ui-xy-CAYxRDzC.js} +14 -14
  143. package/dist/{vue-ui-xy-B-WlwJXZ.cjs → vue-ui-xy-CT3-xPpa.cjs} +1 -1
  144. package/dist/{vue-ui-xy-canvas-jieVsnBN.js → vue-ui-xy-canvas-BOElCo0f.js} +133 -131
  145. package/dist/vue-ui-xy-canvas-CdrfnVuI.cjs +9 -0
  146. package/package.json +1 -1
  147. package/dist/vue-ui-xy-canvas-BHrq_CYD.cjs +0 -9
@@ -1,16 +1,16 @@
1
- import { ref as v, computed as m, watch as Y, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as P, createCommentVNode as A, unref as _, createSlots as Ca, withCtx as b, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
2
- import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-hV0hU1iE.js";
3
- import { d as Ha, c as Wa, a as Je, t as Ya, l as w, r as pe, b as F, p as Ke, u as Ba } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Xa } from "./Tooltip-Com_T8vc.js";
5
- import { L as Ua } from "./Legend-hnLfwhmm.js";
6
- import { _ as Za } from "./Title-DBozX6nP.js";
7
- import { S as Ga } from "./Slicer-DV1kBscZ.js";
8
- import { u as Va, U as ja } from "./usePrinter-y3d31M4g.js";
9
- import qa from "./vue-ui-accordion-m-s-7akB.js";
10
- import { D as Ja } from "./DataTable-BpVz3DBX.js";
11
- import Ka from "./vue-ui-skeleton-BY8Jg9a_.js";
12
- import { u as Qe } from "./useNestedProp-CRAUOmT5.js";
13
- import { P as Qa } from "./PenAndPaper-C_laA5mt.js";
1
+ import { ref as v, computed as m, watch as A, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as F, createCommentVNode as _, unref as D, createSlots as Ca, withCtx as b, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
2
+ import { u as $a, c as za, t as Ta, a as Ma, p as H, b as Ra, C as xe, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-D020Kb3z.js";
3
+ import { d as Ha, c as Wa, a as Je, t as Ya, l as w, r as Le, b as E, p as Ke, u as Ba } from "./useResponsive-CoxXLe23.js";
4
+ import { _ as Xa } from "./Tooltip-CXjc5vb3.js";
5
+ import { L as Ua } from "./Legend-C6q2bLVV.js";
6
+ import { _ as Za } from "./Title-B2orjUIW.js";
7
+ import { S as Ga } from "./Slicer-C0bRksfh.js";
8
+ import { u as Va, U as ja } from "./usePrinter-CN0J0NFL.js";
9
+ import qa from "./vue-ui-accordion-B0fEWLwn.js";
10
+ import { D as Ja } from "./DataTable-Ce4R8v-3.js";
11
+ import Ka from "./vue-ui-skeleton-E1-7diF5.js";
12
+ import { u as Qe } from "./useNestedProp-CZkNAGQh.js";
13
+ import { P as Qa } from "./PenAndPaper-DRFeGfqV.js";
14
14
  import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const at = ["id"], tt = ["onClick"], lt = {
16
16
  key: 2,
@@ -32,28 +32,30 @@ const at = ["id"], tt = ["onClick"], lt = {
32
32
  }
33
33
  },
34
34
  emits: ["selectLegend"],
35
- setup(be, { expose: ea, emit: aa }) {
36
- const E = be, { vue_ui_xy_canvas: ta } = $a(), ie = v(za()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), M = v(1), te = v(!1), d = v(null), le = v(""), me = v(null), S = v([]), H = v(1), N = v(!0), z = v(!0), ve = v(null), xe = v(0), Le = v(0), ce = v(!1), ke = v(null), Ce = v(null), we = v(null), Se = v(null), $e = v(0), ze = v(0), Te = v(0), de = m(() => !!E.dataset && E.dataset.length), a = m({
37
- get: () => Me(),
35
+ setup(ke, { expose: ea, emit: aa }) {
36
+ const M = ke, { vue_ui_xy_canvas: ta } = $a(), ie = v(za()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), R = v(1), te = v(!1), d = v(null), le = v(""), Ce = v(null), S = v([]), W = v(1), N = v(!0), z = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Te = v(null), Me = v(null), de = v(0), he = v(0), fe = v(0), ye = m(() => !!M.dataset && M.dataset.length), a = m({
37
+ get: () => Re(),
38
38
  set: (e) => e
39
39
  });
40
- function Me() {
40
+ function Re() {
41
41
  const e = Qe({
42
- userConfig: E.config,
42
+ userConfig: M.config,
43
43
  defaultConfig: ta
44
44
  });
45
45
  return e.theme ? {
46
46
  ...Qe({
47
- userConfig: Ta.vue_ui_xy_canvas[e.theme] || E.config,
47
+ userConfig: Ta.vue_ui_xy_canvas[e.theme] || M.config,
48
48
  defaultConfig: e
49
49
  }),
50
- customPalette: Ma[e.theme] || D
50
+ customPalette: Ma[e.theme] || H
51
51
  } : e;
52
52
  }
53
- Y(() => E.config, (e) => {
54
- a.value = Me(), De(), $e.value += 1, ze.value += 1, Te.value += 1;
53
+ A(() => M.config, (e) => {
54
+ a.value = Re(), pe(), de.value += 1, he.value += 1, fe.value += 1;
55
+ }, { deep: !0 }), A(() => M.dataset, () => {
56
+ pe(), de.value += 1, he.value += 1, fe.value += 1;
55
57
  }, { deep: !0 });
56
- const Re = v(a.value.style.chart.aspectRatio), { isPrinting: Ie, isImaging: Oe, generatePdf: Pe, generateImage: Fe } = Va({
58
+ const Ie = v(a.value.style.chart.aspectRatio), { isPrinting: Oe, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = Va({
57
59
  elementId: `xy_canvas_${ie.value}`,
58
60
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
59
61
  }), u = v({
@@ -63,40 +65,40 @@ const at = ["id"], tt = ["onClick"], lt = {
63
65
  showTooltip: a.value.style.chart.tooltip.show
64
66
  });
65
67
  function la(e) {
66
- ce.value = e, Le.value += 1;
68
+ ce.value = e, Se.value += 1;
67
69
  }
68
- const Ee = m(() => Ra(a.value.customPalette)), R = m(() => W.value ? Math.max(...W.value.filter((e, l) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = m(() => {
70
+ const Ne = m(() => Ra(a.value.customPalette)), I = m(() => Y.value ? Math.max(...Y.value.filter((e, l) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = m(() => {
69
71
  const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
70
72
  return {
71
73
  canvasWidth: f.value,
72
- canvasHeight: M.value,
74
+ canvasHeight: R.value,
73
75
  left: f.value * a.value.style.chart.paddingProportions.left,
74
- top: M.value * a.value.style.chart.paddingProportions.top,
76
+ top: R.value * a.value.style.chart.paddingProportions.top,
75
77
  right: f.value - f.value * a.value.style.chart.paddingProportions.right,
76
- bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
78
+ bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
77
79
  width: e,
78
- height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
80
+ height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
79
81
  slot: e / (r.value.end - r.value.start)
80
82
  };
81
83
  });
82
- function Ne(e, l) {
84
+ function Ae(e, l) {
83
85
  return e / l;
84
86
  }
85
87
  function oa({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
86
- return l.map((k, ye) => {
87
- const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ne(k + T, T + c.max);
88
- let O, G;
89
- e && (O = Math.abs(c.min), G = Ne(k + O, c.max + O));
88
+ return l.map((k, me) => {
89
+ const T = c.min < 0 ? Math.abs(c.min) : 0, O = Ae(k + T, T + c.max);
90
+ let P, G;
91
+ e && (P = Math.abs(c.min), G = Ae(k + P, c.max + P));
90
92
  let V = 0;
91
- return g === null ? V = t.value.bottom - t.value.height * (e ? G : I) : V = t.value.bottom - y - n * (e ? G : I), {
92
- x: t.value.left + t.value.slot * ye + t.value.slot / 2,
93
+ return g === null ? V = t.value.bottom - t.value.height * (e ? G : O) : V = t.value.bottom - y - n * (e ? G : O), {
94
+ x: t.value.left + t.value.slot * me + t.value.slot / 2,
93
95
  y: V,
94
96
  value: k
95
97
  };
96
98
  });
97
99
  }
98
100
  const p = m(() => {
99
- const e = Math.min(...W.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = Math.max(...W.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = ge(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
101
+ const e = Math.min(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = Math.max(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = xe(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
100
102
  y: t.value.bottom - t.value.height * ((n + i) / (o.max + i)),
101
103
  x: t.value.left - 8,
102
104
  value: n
@@ -127,19 +129,19 @@ const at = ["id"], tt = ["onClick"], lt = {
127
129
  { datapoint: e, seriesIndex: d.value }
128
130
  )}</span>
129
131
  </div>
130
- `)), W = m(() => E.dataset.map((e, l) => ({
132
+ `)), Y = m(() => M.dataset.map((e, l) => ({
131
133
  ...e,
132
134
  series: Ia({
133
135
  data: Oa(e.series),
134
136
  threshold: a.value.downsample.threshold
135
137
  }),
136
138
  absoluteIndex: l,
137
- color: je(e.color || Ee.value[l] || D[l] || D[l % D.length])
139
+ color: je(e.color || Ne.value[l] || H[l] || H[l % H.length])
138
140
  })));
139
- Y(R, (e) => {
140
- e && Ae();
141
+ A(I, (e) => {
142
+ e && _e();
141
143
  });
142
- const h = m(() => Pa(W.value.filter((e, l) => !S.value.includes(e.absoluteIndex))).map((e, l) => ({
144
+ const h = m(() => Pa(Y.value.filter((e, l) => !S.value.includes(e.absoluteIndex))).map((e, l) => ({
143
145
  ...e,
144
146
  series: e.series.slice(r.value.start, r.value.end)
145
147
  })).map((e, l) => {
@@ -151,10 +153,10 @@ const at = ["id"], tt = ["onClick"], lt = {
151
153
  valueMax: i
152
154
  }, n = e.scaleSteps || a.value.style.chart.scale.ticks;
153
155
  let g;
154
- e.autoScaling ? g = ge(y.valueMin, y.valueMax, n) : g = ge(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
155
- const k = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, ye = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? t.value.height * e.stackRatio - ye : t.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
156
- let O;
157
- e.autoScaling && u.value.stacked && i <= 0 ? O = t.value.bottom - k - T : O = t.value.bottom - k - T * (I / (g.max + I));
156
+ e.autoScaling ? g = xe(y.valueMin, y.valueMax, n) : g = xe(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
157
+ const k = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, me = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? t.value.height * e.stackRatio - me : t.value.height, O = g.min < 0 ? Math.abs(g.min) : 0;
158
+ let P;
159
+ e.autoScaling && u.value.stacked && i <= 0 ? P = t.value.bottom - k - T : P = t.value.bottom - k - T * (O / (g.max + O));
158
160
  const G = g.ticks.map((j, ma) => ({
159
161
  y: t.value.bottom - k - T * (ma / (g.ticks.length - 1)),
160
162
  x: t.value.left - 8,
@@ -175,28 +177,28 @@ const at = ["id"], tt = ["onClick"], lt = {
175
177
  min: o,
176
178
  max: i,
177
179
  localScale: g,
178
- localZero: O,
179
- localMin: I,
180
+ localZero: P,
181
+ localMin: O,
180
182
  localYLabels: G,
181
183
  yOffset: k,
182
184
  individualHeight: T
183
185
  };
184
186
  })), r = v({
185
187
  start: 0,
186
- end: R.value
188
+ end: I.value
187
189
  });
188
- function Ae() {
190
+ function _e() {
189
191
  r.value = {
190
192
  start: 0,
191
- end: R.value
192
- }, xe.value += 1;
193
+ end: I.value
194
+ }, we.value += 1;
193
195
  }
194
196
  const ua = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), L = m(() => h.value.filter((e) => e.type === "bar"));
195
197
  function sa() {
196
198
  if (!$.value)
197
199
  return;
198
200
  const e = Z.value.offsetWidth, l = Z.value.offsetHeight;
199
- $.value.width = e * H.value * 2, $.value.height = l * H.value * 2, f.value = e * H.value * 2, M.value = l * H.value * 2, s.value.scale(H.value, H.value), he();
201
+ $.value.width = e * W.value * 2, $.value.height = l * W.value * 2, f.value = e * W.value * 2, R.value = l * W.value * 2, s.value.scale(W.value, W.value), ge();
200
202
  }
201
203
  function na() {
202
204
  if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
@@ -220,7 +222,7 @@ const at = ["id"], tt = ["onClick"], lt = {
220
222
  );
221
223
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
222
224
  e.localYLabels.forEach((l, o) => {
223
- o < e.localYLabels.length - 1 && pe(
225
+ o < e.localYLabels.length - 1 && Le(
224
226
  s.value,
225
227
  [
226
228
  { x: t.value.left, y: l.y },
@@ -279,7 +281,7 @@ const at = ["id"], tt = ["onClick"], lt = {
279
281
  color: e.color
280
282
  }
281
283
  ), e.localYLabels.forEach((l, o) => {
282
- F(
284
+ E(
283
285
  s.value,
284
286
  Q(
285
287
  a.value.style.chart.dataLabels.formatter,
@@ -302,7 +304,7 @@ const at = ["id"], tt = ["onClick"], lt = {
302
304
  );
303
305
  });
304
306
  }), h.value.forEach((e) => {
305
- F(
307
+ E(
306
308
  s.value,
307
309
  e.name,
308
310
  f.value / 35,
@@ -329,7 +331,7 @@ const at = ["id"], tt = ["onClick"], lt = {
329
331
  }
330
332
  );
331
333
  a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, l) => {
332
- l < p.value.yLabels.length - 1 && pe(
334
+ l < p.value.yLabels.length - 1 && Le(
333
335
  s.value,
334
336
  [
335
337
  { x: t.value.left, y: e.y },
@@ -384,7 +386,7 @@ const at = ["id"], tt = ["onClick"], lt = {
384
386
  lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
385
387
  }
386
388
  ), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, l) => {
387
- F(
389
+ E(
388
390
  s.value,
389
391
  Q(
390
392
  a.value.style.chart.dataLabels.formatter,
@@ -407,7 +409,7 @@ const at = ["id"], tt = ["onClick"], lt = {
407
409
  );
408
410
  });
409
411
  }
410
- a.value.style.chart.grid.y.axisName && F(
412
+ a.value.style.chart.grid.y.axisName && E(
411
413
  s.value,
412
414
  a.value.style.chart.grid.y.axisName,
413
415
  f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
@@ -418,11 +420,11 @@ const at = ["id"], tt = ["onClick"], lt = {
418
420
  align: "center",
419
421
  rotation: 90
420
422
  }
421
- ), a.value.style.chart.grid.x.axisName && F(
423
+ ), a.value.style.chart.grid.x.axisName && E(
422
424
  s.value,
423
425
  a.value.style.chart.grid.x.axisName,
424
426
  f.value / 2,
425
- M.value,
427
+ R.value,
426
428
  {
427
429
  font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
428
430
  color: a.value.style.chart.color,
@@ -447,7 +449,7 @@ const at = ["id"], tt = ["onClick"], lt = {
447
449
  }
448
450
  function va(e) {
449
451
  for (let l = 0; l < e.coordinatesLine.length; l += 1)
450
- F(
452
+ E(
451
453
  s.value,
452
454
  Q(
453
455
  a.value.style.chart.dataLabels.formatter,
@@ -473,7 +475,7 @@ const at = ["id"], tt = ["onClick"], lt = {
473
475
  }
474
476
  function ca() {
475
477
  for (let e = r.value.start; e < r.value.end; e += 1)
476
- (r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + r.value.start)) && F(
478
+ (r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + r.value.start)) && E(
477
479
  s.value,
478
480
  a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
479
481
  t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
@@ -486,7 +488,7 @@ const at = ["id"], tt = ["onClick"], lt = {
486
488
  }
487
489
  );
488
490
  }
489
- function _e() {
491
+ function De() {
490
492
  w(
491
493
  s.value,
492
494
  [
@@ -504,7 +506,7 @@ const at = ["id"], tt = ["onClick"], lt = {
504
506
  function da() {
505
507
  L.value.forEach((e, l) => {
506
508
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
507
- pe(
509
+ Le(
508
510
  s.value,
509
511
  [
510
512
  {
@@ -542,7 +544,7 @@ const at = ["id"], tt = ["onClick"], lt = {
542
544
  ]
543
545
  }
544
546
  }
545
- ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && F(
547
+ ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && E(
546
548
  s.value,
547
549
  Q(
548
550
  a.value.style.chart.dataLabels.formatter,
@@ -602,10 +604,10 @@ const at = ["id"], tt = ["onClick"], lt = {
602
604
  );
603
605
  });
604
606
  }
605
- function he() {
606
- na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && _e(), da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), ua.value.forEach((e) => {
607
+ function ge() {
608
+ na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && De(), da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), ua.value.forEach((e) => {
607
609
  (e.type === "line" || !e.type) && ha(e), z.value && (ia(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && va(e));
608
- }), ve.value = Wa($.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && _e(), z.value && d.value !== null && h.value.forEach((e) => {
610
+ }), ve.value = Wa($.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && De(), z.value && d.value !== null && h.value.forEach((e) => {
609
611
  if (e.type === "line" || !e.type || e.type === "plot") {
610
612
  if (!e.coordinatesLine[d.value]) return;
611
613
  e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Je(
@@ -626,7 +628,7 @@ const at = ["id"], tt = ["onClick"], lt = {
626
628
  }
627
629
  const oe = Ha(() => {
628
630
  z.value = !0, sa();
629
- }, R.value > 200 ? 10 : 1, !z.value);
631
+ }, I.value > 200 ? 10 : 1, !z.value);
630
632
  function ya(e) {
631
633
  const { left: l } = $.value.getBoundingClientRect(), o = e.clientX - l;
632
634
  if (o * 2 < t.value.left || o * 2 > t.value.right) {
@@ -661,15 +663,15 @@ const at = ["id"], tt = ["onClick"], lt = {
661
663
  config: a.value
662
664
  }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value]}</div>`), c += ra.value.join(""), le.value = c), z.value = !1;
663
665
  }
664
- Y(() => d.value, (e) => {
666
+ A(() => d.value, (e) => {
665
667
  oe();
666
- }), Y(() => r.value, (e) => {
667
- N.value = !0, he();
668
+ }), A(() => r.value, (e) => {
669
+ N.value = !0, ge();
668
670
  }, {
669
671
  deep: !0
670
- }), Y(() => u.value.showDataLabels, (e) => {
671
- N.value = !0, he();
672
- }), Y(() => u.value.stacked, (e) => {
672
+ }), A(() => u.value.showDataLabels, (e) => {
673
+ N.value = !0, ge();
674
+ }), A(() => u.value.stacked, (e) => {
673
675
  N.value = !0, z.value = !0, oe();
674
676
  });
675
677
  function ga() {
@@ -677,22 +679,22 @@ const at = ["id"], tt = ["onClick"], lt = {
677
679
  }
678
680
  const re = v(null), ue = v(null);
679
681
  xa(() => {
680
- De();
682
+ pe();
681
683
  });
682
- function De() {
683
- if (Fa(E.dataset) ? Ea({
684
+ function pe() {
685
+ if (Fa(M.dataset) ? Ea({
684
686
  componentName: "VueUiXyCanvas",
685
687
  type: "dataset"
686
688
  }) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
687
689
  const e = Ya(() => {
688
690
  const { width: l, height: o } = Ba({
689
691
  chart: U.value,
690
- title: a.value.style.chart.title.text ? ke.value : null,
691
- legend: a.value.style.chart.legend.show ? Ce.value : null,
692
- slicer: a.value.style.chart.zoom.show && R.value > 1 ? we.value : null,
693
- source: Se.value
692
+ title: a.value.style.chart.title.text ? $e.value : null,
693
+ legend: a.value.style.chart.legend.show ? ze.value : null,
694
+ slicer: a.value.style.chart.zoom.show && I.value > 1 ? Te.value : null,
695
+ source: Me.value
694
696
  });
695
- Re.value = `${l} / ${o}`;
697
+ Ie.value = `${l} / ${o}`;
696
698
  });
697
699
  re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
698
700
  }
@@ -707,10 +709,10 @@ const at = ["id"], tt = ["onClick"], lt = {
707
709
  function He(e) {
708
710
  aa("selectLegend", h.value.find((l) => l.absoluteIndex === e)), S.value.includes(e) ? S.value = S.value.filter((l) => l !== e) : S.value.push(e), N.value = !0, oe();
709
711
  }
710
- const We = m(() => W.value.map((e, l) => ({
712
+ const We = m(() => Y.value.map((e, l) => ({
711
713
  ...e,
712
714
  name: e.name,
713
- color: je(e.color) || Ee.value[l] || D[l] || D[l % D.length],
715
+ color: je(e.color) || Ne.value[l] || H[l] || H[l % H.length],
714
716
  shape: e.shape || "circle",
715
717
  prefix: e.prefix || "",
716
718
  suffix: e.suffix || "",
@@ -730,7 +732,7 @@ const at = ["id"], tt = ["onClick"], lt = {
730
732
  })), se = m(() => {
731
733
  const e = [""].concat(h.value.map((c) => c.name)).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>');
732
734
  let l = [];
733
- for (let c = 0; c < R.value; c += 1) {
735
+ for (let c = 0; c < I.value; c += 1) {
734
736
  const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
735
737
  l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((y ?? 0).toFixed(a.value.table.rounding)));
736
738
  }
@@ -783,19 +785,19 @@ const at = ["id"], tt = ["onClick"], lt = {
783
785
  u.value.showTooltip = !u.value.showTooltip;
784
786
  }
785
787
  const ne = v(!1);
786
- function fe() {
788
+ function be() {
787
789
  ne.value = !ne.value;
788
790
  }
789
791
  return ea({
790
792
  getData: ba,
791
793
  generateCsv: Be,
792
- generatePdf: Pe,
793
- generateImage: Fe,
794
+ generatePdf: Fe,
795
+ generateImage: Ee,
794
796
  toggleTable: Xe,
795
797
  toggleLabels: Ue,
796
798
  toggleStack: Ze,
797
799
  toggleTooltip: Ge,
798
- toggleAnnotator: fe
800
+ toggleAnnotator: be
799
801
  }), (e, l) => (C(), q("div", {
800
802
  style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
801
803
  ref_key: "xy",
@@ -806,11 +808,11 @@ const at = ["id"], tt = ["onClick"], lt = {
806
808
  a.value.style.chart.title.text ? (C(), q("div", {
807
809
  key: 0,
808
810
  ref_key: "chartTitle",
809
- ref: ke,
811
+ ref: $e,
810
812
  style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
811
813
  }, [
812
- (C(), P(Za, {
813
- key: `title_${$e.value}`,
814
+ (C(), F(Za, {
815
+ key: `title_${de.value}`,
814
816
  config: {
815
817
  title: {
816
818
  cy: "xy-canvas-title",
@@ -822,21 +824,21 @@ const at = ["id"], tt = ["onClick"], lt = {
822
824
  }
823
825
  }
824
826
  }, null, 8, ["config"]))
825
- ], 4)) : A("", !0),
826
- a.value.userOptions.show && de.value ? (C(), P(ja, {
827
+ ], 4)) : _("", !0),
828
+ a.value.userOptions.show && ye.value ? (C(), F(ja, {
827
829
  ref: "details",
828
- key: `user_option_${Le.value}`,
830
+ key: `user_option_${Se.value}`,
829
831
  backgroundColor: a.value.style.chart.backgroundColor,
830
832
  color: a.value.style.chart.color,
831
- isPrinting: _(Ie),
832
- isImaging: _(Oe),
833
+ isPrinting: D(Oe),
834
+ isImaging: D(Pe),
833
835
  uid: ie.value,
834
836
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
835
837
  hasPdf: a.value.userOptions.buttons.pdf,
836
838
  hasImg: a.value.userOptions.buttons.img,
837
839
  hasXls: a.value.userOptions.buttons.csv,
838
840
  hasLabel: a.value.userOptions.buttons.labels,
839
- hasStack: be.dataset.length > 1 && a.value.userOptions.buttons.stack,
841
+ hasStack: ke.dataset.length > 1 && a.value.userOptions.buttons.stack,
840
842
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
841
843
  hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
842
844
  isFullscreen: ce.value,
@@ -848,14 +850,14 @@ const at = ["id"], tt = ["onClick"], lt = {
848
850
  hasAnnotator: a.value.userOptions.buttons.annotator,
849
851
  isAnnotation: ne.value,
850
852
  onToggleFullscreen: la,
851
- onGeneratePdf: _(Pe),
853
+ onGeneratePdf: D(Fe),
852
854
  onGenerateCsv: Be,
853
- onGenerateImage: _(Fe),
855
+ onGenerateImage: D(Ee),
854
856
  onToggleTable: Xe,
855
857
  onToggleLabels: Ue,
856
858
  onToggleStack: Ze,
857
859
  onToggleTooltip: Ge,
858
- onToggleAnnotator: fe
860
+ onToggleAnnotator: be
859
861
  }, Ca({ _: 2 }, [
860
862
  e.$slots.optionTooltip ? {
861
863
  name: "optionTooltip",
@@ -920,21 +922,21 @@ const at = ["id"], tt = ["onClick"], lt = {
920
922
  ]),
921
923
  key: "8"
922
924
  } : void 0
923
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : A("", !0),
925
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
924
926
  K("div", {
925
927
  class: "vue-ui-xy-canvas",
926
- style: J(`position: relative; aspect-ratio: ${Re.value}`),
928
+ style: J(`position: relative; aspect-ratio: ${Ie.value}`),
927
929
  ref_key: "container",
928
930
  ref: Z
929
931
  }, [
930
- de.value ? (C(), q("canvas", {
932
+ ye.value ? (C(), q("canvas", {
931
933
  key: 0,
932
934
  ref_key: "canvas",
933
935
  ref: $,
934
936
  style: { width: "100%", height: "100%" },
935
937
  onMousemove: l[0] || (l[0] = (o) => ya(o)),
936
938
  onMouseleave: ga
937
- }, null, 544)) : (C(), P(Ka, {
939
+ }, null, 544)) : (C(), F(Ka, {
938
940
  key: 1,
939
941
  config: {
940
942
  type: "line",
@@ -965,25 +967,25 @@ const at = ["id"], tt = ["onClick"], lt = {
965
967
  parent: $.value,
966
968
  content: le.value,
967
969
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
968
- isCustom: _(qe)(a.value.style.chart.tooltip.customFormat)
970
+ isCustom: D(qe)(a.value.style.chart.tooltip.customFormat)
969
971
  }, {
970
972
  "tooltip-before": b(() => [
971
- x(e.$slots, "tooltip-before", B(X({ ...me.value })), void 0, !0)
973
+ x(e.$slots, "tooltip-before", B(X({ ...Ce.value })), void 0, !0)
972
974
  ]),
973
975
  "tooltip-after": b(() => [
974
- x(e.$slots, "tooltip-after", B(X({ ...me.value })), void 0, !0)
976
+ x(e.$slots, "tooltip-after", B(X({ ...Ce.value })), void 0, !0)
975
977
  ]),
976
978
  _: 3
977
979
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
978
980
  ], 4),
979
981
  K("div", {
980
982
  ref_key: "chartSlicer",
981
- ref: we,
983
+ ref: Te,
982
984
  style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
983
985
  "data-html2canvas-ignore": ""
984
986
  }, [
985
- a.value.style.chart.zoom.show && R.value > 1 ? (C(), P(Ga, {
986
- key: `slicer_${xe.value}`,
987
+ a.value.style.chart.zoom.show && I.value > 1 ? (C(), F(Ga, {
988
+ key: `slicer_${we.value}`,
987
989
  background: a.value.style.chart.zoom.color,
988
990
  borderColor: a.value.style.chart.backgroundColor,
989
991
  fontSize: a.value.style.chart.zoom.fontSize,
@@ -993,7 +995,7 @@ const at = ["id"], tt = ["onClick"], lt = {
993
995
  textColor: a.value.style.chart.color,
994
996
  inputColor: a.value.style.chart.zoom.color,
995
997
  selectColor: a.value.style.chart.zoom.highlightColor,
996
- max: R.value,
998
+ max: I.value,
997
999
  min: 0,
998
1000
  valueStart: r.value.start,
999
1001
  valueEnd: r.value.end,
@@ -1001,22 +1003,22 @@ const at = ["id"], tt = ["onClick"], lt = {
1001
1003
  "onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
1002
1004
  end: r.value.end,
1003
1005
  "onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
1004
- onReset: Ae
1006
+ onReset: _e
1005
1007
  }, {
1006
1008
  "reset-action": b(({ reset: o }) => [
1007
1009
  x(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
1008
1010
  ]),
1009
1011
  _: 3
1010
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : A("", !0)
1012
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
1011
1013
  ], 4),
1012
1014
  K("div", {
1013
1015
  ref_key: "chartLegend",
1014
- ref: Ce
1016
+ ref: ze
1015
1017
  }, [
1016
- a.value.style.chart.legend.show && de.value ? (C(), P(Ua, {
1018
+ a.value.style.chart.legend.show && ye.value ? (C(), F(Ua, {
1017
1019
  legendSet: We.value,
1018
1020
  config: pa.value,
1019
- key: `legend_${Te.value}`,
1021
+ key: `legend_${fe.value}`,
1020
1022
  onClickMarker: l[3] || (l[3] = ({ i: o }) => He(o))
1021
1023
  }, {
1022
1024
  item: b(({ legend: o, index: i }) => [
@@ -1032,17 +1034,17 @@ const at = ["id"], tt = ["onClick"], lt = {
1032
1034
  }, void 0, !0)
1033
1035
  ], 512),
1034
1036
  e.$slots.watermark ? (C(), q("div", lt, [
1035
- x(e.$slots, "watermark", B(X({ isPrinting: _(Ie) || _(Oe) })), void 0, !0)
1036
- ])) : A("", !0),
1037
+ x(e.$slots, "watermark", B(X({ isPrinting: D(Oe) || D(Pe) })), void 0, !0)
1038
+ ])) : _("", !0),
1037
1039
  e.$slots.source ? (C(), q("div", {
1038
1040
  key: 3,
1039
1041
  ref_key: "source",
1040
- ref: Se,
1042
+ ref: Me,
1041
1043
  dir: "auto"
1042
1044
  }, [
1043
1045
  x(e.$slots, "source", {}, void 0, !0)
1044
- ], 512)) : A("", !0),
1045
- r.value.end - r.value.start < 200 ? (C(), P(qa, {
1046
+ ], 512)) : _("", !0),
1047
+ r.value.end - r.value.start < 200 ? (C(), F(qa, {
1046
1048
  key: 4,
1047
1049
  hideDetails: "",
1048
1050
  config: {
@@ -1059,8 +1061,8 @@ const at = ["id"], tt = ["onClick"], lt = {
1059
1061
  }
1060
1062
  }, {
1061
1063
  content: b(() => [
1062
- (C(), P(Ja, {
1063
- key: `table_${ze.value}`,
1064
+ (C(), F(Ja, {
1065
+ key: `table_${he.value}`,
1064
1066
  colNames: se.value.colNames,
1065
1067
  head: se.value.head,
1066
1068
  body: se.value.body,
@@ -1078,18 +1080,18 @@ const at = ["id"], tt = ["onClick"], lt = {
1078
1080
  }, 8, ["colNames", "head", "body", "config", "title"]))
1079
1081
  ]),
1080
1082
  _: 1
1081
- }, 8, ["config"])) : A("", !0),
1082
- a.value.userOptions.buttons.annotator && h.value.length ? (C(), P(Qa, {
1083
+ }, 8, ["config"])) : _("", !0),
1084
+ a.value.userOptions.buttons.annotator && h.value.length ? (C(), F(Qa, {
1083
1085
  key: 5,
1084
1086
  parent: U.value,
1085
1087
  backgroundColor: a.value.style.chart.backgroundColor,
1086
1088
  color: a.value.style.chart.color,
1087
1089
  active: ne.value,
1088
- onClose: fe
1089
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : A("", !0)
1090
+ onClose: be
1091
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
1090
1092
  ], 14, at));
1091
1093
  }
1092
- }, xt = /* @__PURE__ */ et(rt, [["__scopeId", "data-v-433caf88"]]);
1094
+ }, xt = /* @__PURE__ */ et(rt, [["__scopeId", "data-v-0c8b7e3c"]]);
1093
1095
  export {
1094
1096
  xt as default
1095
1097
  };