vue-data-ui 2.9.7-beta.5 → 2.9.7-beta.6

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 (163) hide show
  1. package/dist/{Arrow-s_wPFqJx.js → Arrow-BJfgAboK.js} +1 -1
  2. package/dist/{Arrow-Dr7CAOqZ.cjs → Arrow-BokTtZyX.cjs} +1 -1
  3. package/dist/{BaseIcon-BmFMQj6j.cjs → BaseIcon-ChxKARAc.cjs} +1 -1
  4. package/dist/{BaseIcon-Nq8DLsxB.js → BaseIcon-Df6k3R7V.js} +1 -1
  5. package/dist/{ColorPicker-CGhz79T0.js → ColorPicker-CoSmaz5P.js} +3 -3
  6. package/dist/{ColorPicker-sC9FB0BP.cjs → ColorPicker-CuY3a_F1.cjs} +1 -1
  7. package/dist/{DataTable-DBqEL6IT.cjs → DataTable-B7qMeQX0.cjs} +1 -1
  8. package/dist/{DataTable-CaoJlp1o.js → DataTable-DyhJmQRN.js} +2 -2
  9. package/dist/{Legend-CMTevdSS.js → Legend-B5oI_cRY.js} +2 -2
  10. package/dist/{Legend-DPvSASqp.cjs → Legend-C753kXho.cjs} +1 -1
  11. package/dist/{PackageVersion-s7IKraJ7.js → PackageVersion-C3s0AH1l.js} +1 -1
  12. package/dist/{PackageVersion-DjLyiG-P.cjs → PackageVersion-DBjAtmSF.cjs} +1 -1
  13. package/dist/{PenAndPaper-UCIFBRLO.js → PenAndPaper-BgoQn5KK.js} +3 -3
  14. package/dist/{PenAndPaper-E8prMho-.cjs → PenAndPaper-CXC_RivJ.cjs} +1 -1
  15. package/dist/{Shape-DApsVE3-.js → Shape-B5ykqxtP.js} +1 -1
  16. package/dist/{Shape-ByQ4NP8x.cjs → Shape-WLIaitFl.cjs} +1 -1
  17. package/dist/{Slicer-BEz7n0a9.js → Slicer-BqiO7JUs.js} +2 -2
  18. package/dist/{Slicer-DQ0mvSk_.cjs → Slicer-D7Py6ZHX.cjs} +1 -1
  19. package/dist/{Title-BAvZqX49.js → Title-BNWbW-oL.js} +1 -1
  20. package/dist/{Title-DAqeAwOE.cjs → Title-D0u0OcTP.cjs} +1 -1
  21. package/dist/{Tooltip-L5-AhMk0.js → Tooltip-DfaOgqkq.js} +1 -1
  22. package/dist/{Tooltip-QM-sq3Ul.cjs → Tooltip-gSde9JZO.cjs} +1 -1
  23. package/dist/{dom-to-png-LXFX5WIG.js → dom-to-png-CX1aeKWI.js} +1 -1
  24. package/dist/{dom-to-png-Bx_gosCz.cjs → dom-to-png-XjBy2PWi.cjs} +1 -1
  25. package/dist/{img-DfxnBRd7.js → img-BjPuxMHG.js} +1 -1
  26. package/dist/{img-DB-f_Sql.cjs → img-Dt5Jj8yX.cjs} +1 -1
  27. package/dist/{index-CBP1isAR.js → index-BzVLEcOm.js} +1 -1
  28. package/dist/{index-BsmmqoCF.cjs → index-CYkRuhRu.cjs} +1 -1
  29. package/dist/{pdf-C0qjwXyh.js → pdf-7t3r0VpJ.js} +1 -1
  30. package/dist/{pdf-OVz2s4KQ.cjs → pdf-DHgoaKwO.cjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/{useNestedProp-Du7IsYD9.js → useNestedProp-3cWH5OUc.js} +1 -1
  33. package/dist/{useNestedProp-DYi3ZveI.cjs → useNestedProp-CMB0Z7DT.cjs} +1 -1
  34. package/dist/{usePrinter-CKWFanLo.js → usePrinter-CVdbcc0h.js} +3 -3
  35. package/dist/{usePrinter-BuOWaMgB.cjs → usePrinter-DDZhgj7o.cjs} +1 -1
  36. package/dist/{vue-data-ui-DCG9PhuN.js → vue-data-ui-CS3kgIYa.js} +62 -62
  37. package/dist/{vue-data-ui-3TmZQteB.cjs → vue-data-ui-CeUzn3EG.cjs} +1 -1
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +1 -1
  40. package/dist/{vue-ui-3d-bar-apnaE4XN.js → vue-ui-3d-bar-DPDHS8s4.js} +9 -9
  41. package/dist/{vue-ui-3d-bar-D-iQl-ws.cjs → vue-ui-3d-bar-sJfAciNm.cjs} +1 -1
  42. package/dist/{vue-ui-accordion-BIM67ZeK.js → vue-ui-accordion-DmfJhkBj.js} +3 -3
  43. package/dist/{vue-ui-accordion-DTGUNv8U.cjs → vue-ui-accordion-G8_S6sZw.cjs} +1 -1
  44. package/dist/{vue-ui-age-pyramid-Cy24L42m.js → vue-ui-age-pyramid-DaEQcqYC.js} +10 -10
  45. package/dist/{vue-ui-age-pyramid-Cfkvx7l9.cjs → vue-ui-age-pyramid-ab5R44_y.cjs} +1 -1
  46. package/dist/{vue-ui-annotator-DjuVYleI.cjs → vue-ui-annotator-CVseb2lJ.cjs} +1 -1
  47. package/dist/{vue-ui-annotator-VmbRnOih.js → vue-ui-annotator-DdcJXczr.js} +2 -2
  48. package/dist/{vue-ui-bullet-BQ83qtWh.cjs → vue-ui-bullet-CcC6ZPwU.cjs} +1 -1
  49. package/dist/{vue-ui-bullet-CDAo7gWv.js → vue-ui-bullet-DtV223Xc.js} +8 -8
  50. package/dist/{vue-ui-candlestick-YX6KvaWS.cjs → vue-ui-candlestick-CsyM2-Yt.cjs} +1 -1
  51. package/dist/{vue-ui-candlestick-4aqCjINd.js → vue-ui-candlestick-D8u61ftF.js} +11 -11
  52. package/dist/{vue-ui-carousel-table-C-_FbRDn.js → vue-ui-carousel-table-CLEu6CSz.js} +4 -4
  53. package/dist/{vue-ui-carousel-table-CuDQWa7G.cjs → vue-ui-carousel-table-Cw7Gc6vm.cjs} +1 -1
  54. package/dist/{vue-ui-chestnut-X6LS6ScY.js → vue-ui-chestnut-6wpz9WcK.js} +8 -8
  55. package/dist/{vue-ui-chestnut-BYPtEovg.cjs → vue-ui-chestnut-B1MeUb2U.cjs} +1 -1
  56. package/dist/{vue-ui-circle-pack-BeAtRXbB.cjs → vue-ui-circle-pack-CzNOV_n5.cjs} +1 -1
  57. package/dist/{vue-ui-circle-pack-B1_5dO3g.js → vue-ui-circle-pack-DIT1y2gN.js} +9 -9
  58. package/dist/{vue-ui-cursor-BWPtERPT.js → vue-ui-cursor-CmmZ5QG-.js} +2 -2
  59. package/dist/{vue-ui-cursor-BgGvzmEf.cjs → vue-ui-cursor-Dg67Zz5v.cjs} +1 -1
  60. package/dist/{vue-ui-dashboard-D5cnUFWk.js → vue-ui-dashboard-BnouQH3m.js} +62 -62
  61. package/dist/{vue-ui-dashboard-CAWAT26c.cjs → vue-ui-dashboard-Db9zhfpb.cjs} +1 -1
  62. package/dist/{vue-ui-digits-DkfsXKCg.cjs → vue-ui-digits-CRcVesLK.cjs} +1 -1
  63. package/dist/{vue-ui-digits-CE7Od9yi.js → vue-ui-digits-zsFKuQS2.js} +2 -2
  64. package/dist/{vue-ui-donut-DpSkxt-q.cjs → vue-ui-donut-C7HzB1Yi.cjs} +1 -1
  65. package/dist/{vue-ui-donut-CL-Ugkr7.js → vue-ui-donut-D5-z-YlX.js} +12 -12
  66. package/dist/{vue-ui-donut-evolution-kC51VvI9.cjs → vue-ui-donut-evolution-7igdDkXv.cjs} +1 -1
  67. package/dist/{vue-ui-donut-evolution-CI-0MGVw.js → vue-ui-donut-evolution-BNrEWAaU.js} +11 -11
  68. package/dist/{vue-ui-dumbbell-BQXYqSKc.cjs → vue-ui-dumbbell-BAEzT6OW.cjs} +1 -1
  69. package/dist/{vue-ui-dumbbell-CXrOqs2c.js → vue-ui-dumbbell-UpOmEphj.js} +10 -10
  70. package/dist/{vue-ui-flow-DJro3vjP.js → vue-ui-flow-B5sRMhP1.js} +9 -9
  71. package/dist/{vue-ui-flow-C59FdZtG.cjs → vue-ui-flow-CU4zSTKR.cjs} +1 -1
  72. package/dist/{vue-ui-funnel-zPg56GCn.cjs → vue-ui-funnel-B27Z3-kV.cjs} +1 -1
  73. package/dist/{vue-ui-funnel-Dm3_TN8K.js → vue-ui-funnel-CWHTmN_f.js} +9 -9
  74. package/dist/{vue-ui-galaxy-CS2Mf8Ov.cjs → vue-ui-galaxy-CgOoFYBh.cjs} +1 -1
  75. package/dist/{vue-ui-galaxy-DOIOAoxF.js → vue-ui-galaxy-DJEa-xRP.js} +11 -11
  76. package/dist/{vue-ui-gauge-DiPKEWB4.cjs → vue-ui-gauge-D-Y-lv_9.cjs} +1 -1
  77. package/dist/{vue-ui-gauge-D8hdbwD7.js → vue-ui-gauge-DcbbZL-J.js} +7 -7
  78. package/dist/{vue-ui-gizmo-chvkzm7k.cjs → vue-ui-gizmo-BOkS2Qq6.cjs} +1 -1
  79. package/dist/{vue-ui-gizmo-CCdea7A2.js → vue-ui-gizmo-DYAQ8HNv.js} +3 -3
  80. package/dist/{vue-ui-heatmap-CluVUBra.js → vue-ui-heatmap-BXNZdcJZ.js} +10 -10
  81. package/dist/{vue-ui-heatmap-DEBUIK8U.cjs → vue-ui-heatmap-BpKXnoPc.cjs} +1 -1
  82. package/dist/{vue-ui-history-plot-5T3LNhQn.cjs → vue-ui-history-plot-6VrL6Udc.cjs} +1 -1
  83. package/dist/{vue-ui-history-plot-BckOx8Vk.js → vue-ui-history-plot-ONpwNR68.js} +11 -11
  84. package/dist/{vue-ui-kpi-B2X1xhaJ.js → vue-ui-kpi-DK5hsI_X.js} +3 -3
  85. package/dist/{vue-ui-kpi-DjGm2yh1.cjs → vue-ui-kpi-DLV1gKjt.cjs} +1 -1
  86. package/dist/{vue-ui-mini-loader-hzHrjRlD.cjs → vue-ui-mini-loader-BmMG5Q6f.cjs} +1 -1
  87. package/dist/{vue-ui-mini-loader-BJKTWdXg.js → vue-ui-mini-loader-DmE7Y5dX.js} +2 -2
  88. package/dist/{vue-ui-molecule-g10MJ-nt.cjs → vue-ui-molecule-DLJEiLkd.cjs} +1 -1
  89. package/dist/{vue-ui-molecule-V7lB2OMt.js → vue-ui-molecule-FmJdgX_M.js} +11 -11
  90. package/dist/{vue-ui-mood-radar-v9PM3J-G.cjs → vue-ui-mood-radar-BABRov4v.cjs} +1 -1
  91. package/dist/{vue-ui-mood-radar-2zJseFN0.js → vue-ui-mood-radar-DOXO686o.js} +11 -11
  92. package/dist/{vue-ui-nested-donuts-BwUujGPt.js → vue-ui-nested-donuts-B3rHinAm.js} +11 -11
  93. package/dist/{vue-ui-nested-donuts-C9gEe_6T.cjs → vue-ui-nested-donuts-B6fSPYZI.cjs} +1 -1
  94. package/dist/{vue-ui-onion-1oxYMjac.js → vue-ui-onion--r0AzJdc.js} +11 -11
  95. package/dist/{vue-ui-onion-_Rs5AXWM.cjs → vue-ui-onion-DYd-GFc-.cjs} +1 -1
  96. package/dist/{vue-ui-parallel-coordinate-plot-BrnYGdiY.js → vue-ui-parallel-coordinate-plot-BZX0X41E.js} +12 -12
  97. package/dist/{vue-ui-parallel-coordinate-plot-BO9UHLH2.cjs → vue-ui-parallel-coordinate-plot-C93s_m7g.cjs} +1 -1
  98. package/dist/{vue-ui-quadrant-D0qzjogK.js → vue-ui-quadrant-6PQ9egm3.js} +12 -12
  99. package/dist/{vue-ui-quadrant-CwAfIdpG.cjs → vue-ui-quadrant-B37wOh3c.cjs} +1 -1
  100. package/dist/{vue-ui-quick-chart-DwAMGksL.cjs → vue-ui-quick-chart-DAAZ6QnC.cjs} +1 -1
  101. package/dist/{vue-ui-quick-chart-Dg4akarh.js → vue-ui-quick-chart-xDup68U_.js} +9 -9
  102. package/dist/{vue-ui-radar-Z4yv-LlT.js → vue-ui-radar-6BgJWqJ_.js} +12 -12
  103. package/dist/{vue-ui-radar-DmV_aB9U.cjs → vue-ui-radar-B97jjaRv.cjs} +1 -1
  104. package/dist/{vue-ui-rating-BDatA7DF.cjs → vue-ui-rating-DEqzuvhu.cjs} +1 -1
  105. package/dist/{vue-ui-rating-RyIv9ufH.js → vue-ui-rating-XXmzL_KZ.js} +2 -2
  106. package/dist/{vue-ui-relation-circle-BQIEpNpL.js → vue-ui-relation-circle-BFbwlDxK.js} +7 -7
  107. package/dist/{vue-ui-relation-circle-EK-spe4f.cjs → vue-ui-relation-circle-CtJmdwHJ.cjs} +1 -1
  108. package/dist/vue-ui-ridgeline-DTIhZShO.cjs +1 -0
  109. package/dist/{vue-ui-ridgeline-BpXR96mc.js → vue-ui-ridgeline-ZMZpCTQS.js} +356 -342
  110. package/dist/{vue-ui-rings-DR3sMhFa.js → vue-ui-rings-Botpn1eT.js} +12 -12
  111. package/dist/{vue-ui-rings-C1SBs7eV.cjs → vue-ui-rings-D8HIJLj-.cjs} +1 -1
  112. package/dist/{vue-ui-scatter-DrlzUpVV.js → vue-ui-scatter-BH4jh__r.js} +12 -12
  113. package/dist/{vue-ui-scatter-Dj0h64ne.cjs → vue-ui-scatter-D0OsOcWK.cjs} +1 -1
  114. package/dist/{vue-ui-skeleton-4ejtHcys.cjs → vue-ui-skeleton-BW07kqbt.cjs} +1 -1
  115. package/dist/{vue-ui-skeleton-C27xsSyg.js → vue-ui-skeleton-DPsvbAIH.js} +3 -3
  116. package/dist/{vue-ui-smiley-B7ql3XCo.cjs → vue-ui-smiley-BHxrluQf.cjs} +1 -1
  117. package/dist/{vue-ui-smiley-C7S2yOhR.js → vue-ui-smiley-CNj5Yw5q.js} +2 -2
  118. package/dist/{vue-ui-spark-trend-DuDYLeLL.js → vue-ui-spark-trend-B343hdZH.js} +5 -5
  119. package/dist/{vue-ui-spark-trend-BIfM0Usw.cjs → vue-ui-spark-trend-BsiB6fKu.cjs} +1 -1
  120. package/dist/{vue-ui-sparkbar-Cov9Xm0L.js → vue-ui-sparkbar-4mnl2vle.js} +4 -4
  121. package/dist/{vue-ui-sparkbar-4ZyV7t5s.cjs → vue-ui-sparkbar-DIxkMvKK.cjs} +1 -1
  122. package/dist/{vue-ui-sparkgauge-BtY0Dpny.js → vue-ui-sparkgauge-DK7HSZ0M.js} +4 -4
  123. package/dist/{vue-ui-sparkgauge-BSzmtl_K.cjs → vue-ui-sparkgauge-DN1T6b0Y.cjs} +1 -1
  124. package/dist/{vue-ui-sparkhistogram-BxvnY7JU.js → vue-ui-sparkhistogram-BkclO99R.js} +5 -5
  125. package/dist/{vue-ui-sparkhistogram-BHlPjWe6.cjs → vue-ui-sparkhistogram-CHN5noII.cjs} +1 -1
  126. package/dist/{vue-ui-sparkline-k_JV8N3e.cjs → vue-ui-sparkline-DFB4FnJK.cjs} +1 -1
  127. package/dist/{vue-ui-sparkline-0i1N-NtY.js → vue-ui-sparkline-MIZcualm.js} +4 -4
  128. package/dist/{vue-ui-sparkstackbar-CwpbO4qg.js → vue-ui-sparkstackbar-9jGnRmfS.js} +5 -5
  129. package/dist/{vue-ui-sparkstackbar-DDhHG7ry.cjs → vue-ui-sparkstackbar-D95CXA9f.cjs} +1 -1
  130. package/dist/{vue-ui-stackbar-B066G08Q.cjs → vue-ui-stackbar-Ckrts7fe.cjs} +1 -1
  131. package/dist/{vue-ui-stackbar-DDK5eC9M.js → vue-ui-stackbar-DlOsNqr3.js} +13 -13
  132. package/dist/{vue-ui-strip-plot-CYTvrybe.js → vue-ui-strip-plot-B7hNb4Ag.js} +11 -11
  133. package/dist/{vue-ui-strip-plot-CW2cLF-S.cjs → vue-ui-strip-plot-Bh4WBOdv.cjs} +1 -1
  134. package/dist/{vue-ui-table-DdjbrZpA.js → vue-ui-table-BxBgKoLx.js} +3 -3
  135. package/dist/{vue-ui-table-heatmap-D-Ac4zly.js → vue-ui-table-heatmap-DBQdtXbu.js} +4 -4
  136. package/dist/{vue-ui-table-heatmap-BNqMnDv4.cjs → vue-ui-table-heatmap-DqyRysJN.cjs} +1 -1
  137. package/dist/{vue-ui-table-DXvurbTJ.cjs → vue-ui-table-ijDEX4Oy.cjs} +1 -1
  138. package/dist/{vue-ui-table-sparkline-iHgkuKdX.js → vue-ui-table-sparkline-0sgK9SRs.js} +5 -5
  139. package/dist/{vue-ui-table-sparkline-jAPtk7oN.cjs → vue-ui-table-sparkline-Ct7Xui4n.cjs} +1 -1
  140. package/dist/{vue-ui-thermometer-CQ8A8LlJ.cjs → vue-ui-thermometer-BneSPes-.cjs} +1 -1
  141. package/dist/{vue-ui-thermometer-C7EnNNxt.js → vue-ui-thermometer-DrSkBoxy.js} +7 -7
  142. package/dist/{vue-ui-timer-Dbw7YMt3.js → vue-ui-timer-BFzjIksI.js} +5 -5
  143. package/dist/{vue-ui-timer-C0Y9IRkk.cjs → vue-ui-timer-Tfn4reCy.cjs} +1 -1
  144. package/dist/{vue-ui-tiremarks-CXc-hmOo.cjs → vue-ui-tiremarks-BgxCa-8o.cjs} +1 -1
  145. package/dist/{vue-ui-tiremarks-ItbpL7yt.js → vue-ui-tiremarks-BoMPm17-.js} +7 -7
  146. package/dist/{vue-ui-treemap-KVO8AMzu.cjs → vue-ui-treemap-B9Tqo4k3.cjs} +1 -1
  147. package/dist/{vue-ui-treemap-DMJejGkG.js → vue-ui-treemap-DKcsi3wt.js} +12 -12
  148. package/dist/{vue-ui-vertical-bar-pQ2Ctm4q.cjs → vue-ui-vertical-bar-BK0h4Y36.cjs} +1 -1
  149. package/dist/{vue-ui-vertical-bar-Cgb8D5WU.js → vue-ui-vertical-bar-Hge8kogc.js} +12 -12
  150. package/dist/{vue-ui-waffle-CYp0jg9U.cjs → vue-ui-waffle-B10hUgxC.cjs} +1 -1
  151. package/dist/{vue-ui-waffle-BEQkzOA1.js → vue-ui-waffle-D1PD_ZcO.js} +12 -12
  152. package/dist/{vue-ui-wheel-ChEOmy3V.cjs → vue-ui-wheel-BeduAIqJ.cjs} +1 -1
  153. package/dist/{vue-ui-wheel-Bz27GPAO.js → vue-ui-wheel-Dw2xf5gR.js} +7 -7
  154. package/dist/{vue-ui-word-cloud-BXvhlBb0.js → vue-ui-word-cloud-DVwJpNx2.js} +10 -10
  155. package/dist/{vue-ui-word-cloud-CKFXxBRB.cjs → vue-ui-word-cloud-i6b4GKkh.cjs} +1 -1
  156. package/dist/{vue-ui-world-l4yCyt5l.cjs → vue-ui-world-BxihLm8S.cjs} +1 -1
  157. package/dist/{vue-ui-world-3E_v_9Xp.js → vue-ui-world-C-FoA0J8.js} +11 -11
  158. package/dist/{vue-ui-xy-BorQlLL5.cjs → vue-ui-xy-BZS50gnA.cjs} +2 -2
  159. package/dist/{vue-ui-xy-canvas-BACNLz4I.cjs → vue-ui-xy-canvas-C93Csgr4.cjs} +1 -1
  160. package/dist/{vue-ui-xy-canvas-qIlz6JHM.js → vue-ui-xy-canvas-CaL5PqYB.js} +12 -12
  161. package/dist/{vue-ui-xy-vSBPUHGJ.js → vue-ui-xy-rH3lcHPs.js} +16 -16
  162. package/package.json +1 -1
  163. package/dist/vue-ui-ridgeline-DROLcK3y.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index-BsmmqoCF.cjs"),x=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-QM-sq3Ul.cjs"),dt=require("./Legend-DPvSASqp.cjs"),ht=require("./Title-DAqeAwOE.cjs"),ft=require("./Slicer-DQ0mvSk_.cjs"),Ue=require("./usePrinter-BuOWaMgB.cjs"),yt=require("./vue-ui-accordion-DTGUNv8U.cjs"),pt=require("./DataTable-DBqEL6IT.cjs"),gt=require("./vue-ui-skeleton-4ejtHcys.cjs"),qe=require("./useNestedProp-DYi3ZveI.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./BaseIcon-BmFMQj6j.cjs"),xt=require("./ColorPicker-sC9FB0BP.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Ct=["disabled"],Lt=["data-mode","xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],zt=["x","y","fill","font-size"],$t=["x","dy"],Tt=["d","stroke","stroke-width"],Et={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(z,{emit:Ee}){const U=z,Be=Ee,L=t.ref([]),V=t.ref([]),K=t.ref("0 0 0 0"),D=t.ref(U.color),y=t.ref(1),m=t.ref("draw"),w=t.ref(null),q=t.ref(!1),h=t.ref(null),Y=t.ref({x:0,y:0}),X=t.ref([""]),E=t.ref({row:0,col:0}),P=t.ref(16);let W=1;function G(){return W++}function ne(i){var a;const r=R.value;if(!r)return{x:0,y:0};const o=r.createSVGPoint();let u=i.clientX,v=i.clientY;i.touches&&i.touches.length&&(u=i.touches[0].clientX,v=i.touches[0].clientY),o.x=u,o.y=v;const f=(a=r.getScreenCTM())==null?void 0:a.inverse();return f?o.matrixTransform(f):{x:0,y:0}}function re(i){if(!w.value||m.value!=="text"||q.value)return;const{x:r,y:o}=ne(i);Y.value={x:r,y:o},X.value=[""],E.value={row:0,col:0};const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("x",r),u.setAttribute("y",o),u.setAttribute("fill",D.value),u.setAttribute("font-size",P.value),u.setAttribute("font-family","sans-serif"),u.setAttribute("class","vue-data-ui-doodle"),u.setAttribute("dominant-baseline","hanging"),u.setAttribute("pointer-events","all");const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttribute("x",r),v.setAttribute("dy","0"),v.textContent="",u.appendChild(v),u.style.pointerEvents="none",u.style.userSelect="none",w.value.appendChild(u),h.value=u,q.value=!0,window.addEventListener("keydown",ue),window.addEventListener("mousedown",ie,!0),J(),se()}function ue(i){if(!q.value)return;let{row:r,col:o}=E.value,u=X.value.slice(),v=!1;if(i.key==="Enter"){const f=u[r],a=f.slice(0,o),T=f.slice(o);u.splice(r,1,a,T),r+=1,o=0,v=!0,i.preventDefault()}else if(i.key==="Backspace"){if(o>0)u[r]=u[r].slice(0,o-1)+u[r].slice(o),o-=1,v=!0;else if(r>0){const f=u[r-1].length;u[r-1]+=u[r],u.splice(r,1),r-=1,o=f,v=!0}i.preventDefault()}else if(i.key==="Delete")o<u[r].length?(u[r]=u[r].slice(0,o)+u[r].slice(o+1),v=!0):r<u.length-1&&(u[r]+=u[r+1],u.splice(r+1,1),v=!0),i.preventDefault();else if(i.key==="ArrowLeft")o>0?o-=1:r>0&&(r-=1,o=u[r].length),v=!0,i.preventDefault();else if(i.key==="ArrowRight")o<u[r].length?o+=1:r<u.length-1&&(r+=1,o=0),v=!0,i.preventDefault();else if(i.key==="ArrowUp")r>0&&(r-=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key==="ArrowDown")r<u.length-1&&(r+=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key.length===1&&!i.ctrlKey&&!i.metaKey&&!i.altKey)u[r]=u[r].slice(0,o)+i.key+u[r].slice(o),o+=1,v=!0,i.preventDefault();else if(i.key==="Escape"){ce(!0);return}else i.key==="Tab"&&i.preventDefault();v&&(X.value=u,E.value={row:r,col:o},J(),se())}function J(){const i=h.value,{x:r,y:o}=Y.value;for(;i.firstChild;)i.removeChild(i.firstChild);X.value.forEach((u,v)=>{const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttribute("x",r),f.setAttribute("dy",v===0?"0":`${P.value*1.2}`),f.textContent=u.length?u:"​",i.appendChild(f)})}function se(){const i=w.value.querySelector(".vue-data-ui-svg-caret");i&&w.value.removeChild(i);const r=h.value;if(!r)return;const{x:o,y:u}=Y.value,{row:v,col:f}=E.value,a=P.value,T=r.childNodes[v];if(!T)return;let B=T.textContent.slice(0,f);B.endsWith(" ")&&(B+=" ");const p=document.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("x",o),p.setAttribute("y",u),p.setAttribute("font-size",a),p.setAttribute("font-family","sans-serif"),p.textContent=B||"",w.value.appendChild(p);const M=p.getBBox();w.value.removeChild(p);let $=u+v*a*1.2,g=o+M.width;const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("x",g),c.setAttribute("y",$),c.setAttribute("width",1),c.setAttribute("height",a),c.setAttribute("fill",D.value),c.setAttribute("class","vue-data-ui-svg-caret"),w.value.appendChild(c)}function ie(i){if(h.value&&!h.value.contains(i.target)){const r=h.value.children;r.length===1&&(r[0].textContent===""||r[0].textContent==="​")&&h.value.remove(),ce(!1)}}function ce(i=!1){var u;window.removeEventListener("keydown",ue),window.removeEventListener("mousedown",ie,!0);const r=(u=w.value)==null?void 0:u.querySelector(".vue-data-ui-svg-caret");r&&w.value.removeChild(r);const o=X.value.every(v=>!v||v==="​");i||o||L.value.push({id:G(),type:"text",x:Y.value.x,y:Y.value.y,color:D.value,fontSize:P.value,lines:X.value.map(v=>v)}),h.value&&w.value&&w.value.contains(h.value)&&w.value.removeChild(h.value),q.value=!1,h.value=null,X.value=[""],E.value={row:0,col:0}}const H=t.computed(()=>d.lightenHexColor(U.color,.6));function ee({width:i,height:r}){K.value=`0 0 ${i} ${r}`}const _=t.ref(null);t.onMounted(()=>{t.nextTick(()=>{if(U.parent){_.value=new ResizeObserver(o=>{for(const u of o){const{width:v,height:f}=u.contentRect;ee({width:v,height:f})}}),_.value.observe(U.parent);const{width:i,height:r}=U.parent.getBoundingClientRect();ee({width:i,height:r})}}),w.value=R.value.querySelector("g")}),t.onBeforeUnmount(()=>{_.value&&_.value.disconnect()}),t.watch(()=>U.parent,i=>{if(!i)return;const{width:r,height:o}=U.parent.getBoundingClientRect();ee({width:r,height:o})},{immediate:!0}),t.watch(m,i=>{var r,o;i==="text"?(r=R.value)==null||r.addEventListener("mousedown",re):(o=R.value)==null||o.removeEventListener("mousedown",re)});const Z=t.ref(!1),N=t.ref(""),R=t.ref(null);function me(i){if(m.value!=="draw"||!R.value)return;Z.value=!0;const{x:r,y:o}=F(i);N.value=`M ${r} ${o}`}function be(i){if(!Z.value||!R.value)return;const{x:r,y:o}=F(i);N.value+=` ${r} ${o}`}function l(i){const r=i.trim().split(/\s+/);if(r.length<4)return i;const o=r.slice(1).map(Number);if(o.length%2!==0)return i;const u=ve(o),v=[`M ${u[0]} ${u[1]}`];for(let T=2;T<u.length-2;T+=2){const B=u[T-2],p=u[T-1],M=u[T],$=u[T+1],g=(B+M)/2,c=(p+$)/2;v.push(`Q ${B} ${p} ${g} ${c}`)}const f=u[u.length-2],a=u[u.length-1];return v.push(`L ${f} ${a}`),v.join(" ")}function ve(i,r=1){const o=[...i];for(let u=2;u<i.length-2;u+=2){const v=i[u],f=i[u+1],a=i[u-2],T=i[u-1],B=i[u+2],p=i[u+3];o[u]=v+r*((a+B)/2-v),o[u+1]=f+r*((T+p)/2-f)}return o}function xe(i){const r=i.trim().split(/\s+/);let o="",u="",v=null,f=null;for(let a=0;a<r.length;a+=1){const T=r[a];if(isNaN(T)){if(u=T,u==="M"||u==="L")v=parseFloat(r[++a]),f=parseFloat(r[++a]),o+=`${u}${v} ${f}`;else if(u==="Q"){const B=parseFloat(r[++a]),p=parseFloat(r[++a]),M=parseFloat(r[++a]),$=parseFloat(r[++a]);B===v&&p===f?o+=`t${M-v} ${$-f}`:o+=`q${B-v} ${p-f} ${M-v} ${$-f}`,v=M,f=$}}else{const B=parseFloat(T),p=parseFloat(r[++a]);if(u==="L"){const M=B-v,$=p-f;M===0?o+=`v${$}`:$===0?o+=`h${M}`:o+=`l${M} ${$}`,v=B,f=p}else if(u==="Q"){const M=B,$=p,g=parseFloat(r[++a]),c=parseFloat(r[++a]);M===v&&$===f?o+=`t${g-v} ${c-f}`:o+=`q${M-v} ${$-f} ${g-v} ${c-f}`,v=g,f=c}}}return o}function ae(){Z.value&&(L.value.push({id:G(),strokeWidth:y.value,path:xe(l(N.value)),color:D.value}),V.value=[],N.value=""),Z.value=!1}function F(i){if(!R.value)return{x:0,y:0};const r=R.value.getBoundingClientRect();let o,u;return i.touches&&i.touches.length?(o=i.touches[0].clientX,u=i.touches[0].clientY):(o=i.clientX,u=i.clientY),{x:o-r.left,y:u-r.top}}function ke(){if(L.value.length>0){const i=L.value.pop();V.value.push(i)}}function Ce(){if(V.value.length>0){const i=V.value.pop();L.value.push(i)}}function Le(){L.value=[],V.value=[]}const de=t.ref(null);return(i,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.active?(t.openBlock(),t.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:t.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:z.active}),style:t.normalizeStyle({backgroundColor:z.backgroundColor})},[t.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:r[0]||(r[0]=o=>Be("close"))},[t.createVNode(ge.default,{name:"close",stroke:z.color},null,8,["stroke"])],4),t.createElementVNode("button",kt,[t.createVNode(xt.ColorPicker,{value:D.value,"onUpdate:value":r[1]||(r[1]=o=>D.value=o),backgroundColor:z.backgroundColor,buttonBorderColor:H.value},null,8,["value","backgroundColor","buttonBorderColor"])]),t.createElementVNode("button",{class:t.normalizeClass(["vue-ui-pen-and-paper-action",{"vue-ui-pen-and-paper-action-active":m.value==="text"}]),onClick:r[2]||(r[2]=o=>m.value=m.value==="text"?"draw":"text"),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`})},[t.createVNode(ge.default,{name:m.value==="draw"?"annotator":"text",stroke:z.color},null,8,["name","stroke"]),t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",bottom:"-20px",color:H.value,width:"100%",textAlign:"center",fontSize:"12px"})},t.toDisplayString(t.unref(d.dataLabel)({v:m.value==="draw"?y.value:P.value,s:"px",r:1})),5)],6),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length}),disabled:!L.value.length,style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`,marginTop:"20px"}),onClick:ke},[t.createVNode(ge.default,{name:"restart",stroke:z.color},null,8,["stroke"])],14,Ct),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!V.value.length}),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Ce},[t.createVNode(ge.default,{name:"restart",stroke:z.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),t.createElementVNode("button",{class:t.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length},"vue-ui-pen-and-paper-action"]),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Le},[t.createVNode(ge.default,{name:"trash",stroke:z.color},null,8,["stroke"])],6),m.value==="draw"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":r[3]||(r[3]=o=>y.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,y.value]]):t.createCommentVNode("",!0),m.value==="text"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:3,max:48,step:.1,"onUpdate:modelValue":r[4]||(r[4]=o=>P.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,P.value]]):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{"data-mode":m.value,ref_key:"svgElement",ref:R,xmlns:t.unref(d.XMLNS),viewBox:K.value,class:t.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!z.active}),onMousedown:me,onMousemove:be,onMouseup:ae,onMouseleave:ae,onTouchstart:t.withModifiers(me,["prevent"]),onTouchmove:t.withModifiers(be,["prevent"]),onTouchend:ae},[t.createElementVNode("g",{ref_key:"G",ref:w},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[o.path&&o.path.replace("M","").split(" ").length===2?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.path.replace("M","").split(" ")[0],cy:o.path.replace("M","").split(" ")[1],r:o.strokeWidth/2,fill:o.color},null,8,wt)):o.path?(t.openBlock(),t.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:o.path,stroke:o.color,"stroke-width":o.strokeWidth,fill:"none"},null,8,St)):o.type==="text"?(t.openBlock(),t.createElementBlock("text",{key:2,x:o.x,y:o.y,fill:o.color,"font-size":o.fontSize,"font-family":"sans-serif","dominant-baseline":"hanging",class:"vue-ui-pen-and-paper-text"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.lines,(u,v)=>(t.openBlock(),t.createElementBlock("tspan",{key:v,x:o.x,dy:v===0?"0":o.fontSize*1.2},t.toDisplayString(u.length?u:"​"),9,$t))),128))],8,zt)):t.createCommentVNode("",!0)],64))),128))],512),Z.value?(t.openBlock(),t.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:l(N.value),stroke:D.value,"stroke-width":y.value*1.1,fill:"none"},null,8,Tt)):t.createCommentVNode("",!0)],42,Lt))],64))}},Bt=We._export_sfc(Et,[["__scopeId","data-v-14478ba4"]]),Mt=["id"],Nt=["onClick"],Pt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],At={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(z,{expose:Ee,emit:U}){const{vue_ui_xy_canvas:Be}=d.useConfig(),L=z,V=t.ref(d.createUid()),K=t.ref(null),D=t.ref(null),y=t.ref(null),m=t.ref(1),w=t.ref(1),q=t.ref(!1),h=t.ref(null),Y=t.ref(""),X=t.ref(null),E=t.ref([]),P=t.ref(1),W=t.ref(!0),G=t.ref(!0),ne=t.ref(null),re=t.ref(0),ue=t.ref(0),J=t.ref(!1),se=t.ref(null),ie=t.ref(null),ce=t.ref(null),H=t.ref(null),ee=t.ref(0),_=t.ref(0),Z=t.ref(0),N=t.ref(null),R=t.computed(()=>!!L.dataset&&L.dataset.length),me=U,be=t.useSlots();t.onMounted(()=>{be["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const l=t.computed({get:()=>ke(),set:e=>e}),{userOptionsVisible:ve,setUserOptionsVisibility:xe,keepUserOptionState:ae}=mt.useUserOptionState({config:l.value}),{svgRef:F}=bt.useChartAccessibility({config:l.value.style.chart.title});function ke(){const e=qe.useNestedProp({userConfig:L.config,defaultConfig:Be});let n={};return e.theme?n={...qe.useNestedProp({userConfig:d.themes.vue_ui_xy_canvas[e.theme]||L.config,defaultConfig:e}),customPalette:d.themePalettes[e.theme]||d.palette}:n=e,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.min")?n.style.chart.scale.min=L.config.style.chart.scale.min:n.style.chart.scale.min=null,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.max")?n.style.chart.scale.max=L.config.style.chart.scale.max:n.style.chart.scale.max=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.startIndex")?n.style.chart.zoom.startIndex=L.config.style.chart.zoom.startIndex:n.style.chart.zoom.startIndex=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.endIndex")?n.style.chart.zoom.endIndex=L.config.style.chart.zoom.endIndex:n.style.chart.zoom.endIndex=null,n}t.watch(()=>L.config,e=>{l.value=ke(),ve.value=!l.value.userOptions.showOnChartHover,Me(),ee.value+=1,_.value+=1,Z.value+=1,o.value.showTable=l.value.table.show,o.value.showDataLabels=l.value.style.chart.dataLabels.show,o.value.stacked=l.value.style.chart.stacked,o.value.showTooltip=l.value.style.chart.tooltip.show},{deep:!0}),t.watch(()=>L.dataset,()=>{Me(),ee.value+=1,_.value+=1,Z.value+=1},{deep:!0});const Ce=t.ref(l.value.style.chart.aspectRatio),{isPrinting:Le,isImaging:de,generatePdf:i,generateImage:r}=Ue.usePrinter({elementId:`xy_canvas_${V.value}`,fileName:l.value.style.chart.title.text||"vue-ui-xy-canvas",options:l.value.userOptions.print}),o=t.ref({showTable:l.value.table.show,showDataLabels:l.value.style.chart.dataLabels.show,stacked:l.value.style.chart.stacked,showTooltip:l.value.style.chart.tooltip.show});function u(e){J.value=e,ue.value+=1}const v=t.computed(()=>d.convertCustomPalette(l.value.customPalette)),f=t.computed(()=>$.value?Math.max(...$.value.filter((e,n)=>!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=t.computed(()=>{const e=m.value-m.value*(l.value.style.chart.paddingProportions.left+l.value.style.chart.paddingProportions.right);return{canvasWidth:m.value,canvasHeight:w.value,left:m.value*l.value.style.chart.paddingProportions.left,top:w.value*l.value.style.chart.paddingProportions.top,right:m.value-m.value*l.value.style.chart.paddingProportions.right,bottom:w.value-w.value*l.value.style.chart.paddingProportions.bottom,width:e,height:w.value-w.value*(l.value.style.chart.paddingProportions.top+l.value.style.chart.paddingProportions.bottom),slot:e/(c.value.end-c.value.start)}});function T(e,n){return e/n}function B({hasAutoScale:e,series:n,min:s,max:b,scale:C,yOffset:A,individualHeight:k,stackIndex:S=null}){return n.map((te,O)=>{const Q=C.min<0?Math.abs(C.min):0,le=T(te+Q,Q+C.max);let ye,pe;e&&(ye=C.min,pe=T(te-ye,C.max-ye));let j=0;return S===null?j=a.value.bottom-a.value.height*(e?pe:le):j=a.value.bottom-A-k*(e?pe:le),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:j,value:te}})}const p=t.computed(()=>{const e=l.value.style.chart.scale.min!==null?l.value.style.chart.scale.min:Math.min(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),n=l.value.style.chart.scale.max!==null?l.value.style.chart.scale.max:Math.max(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),s=d.calculateNiceScale(e<0?e:0,n===e?e+1<0?0:e+1:n<0?0:n,l.value.style.chart.scale.ticks),b=s.min<0?Math.abs(s.min):0,C=a.value.bottom-a.value.height*(b/(s.max+b)),A=s.ticks.map(k=>({y:a.value.bottom-a.value.height*((k+b)/(s.max+b)),x:a.value.left-8,value:k}));return{absoluteMin:b,max:n,min:e,scale:s,yLabels:A,zero:C}}),M=t.computed(()=>g.value.map(e=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index-CYkRuhRu.cjs"),x=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-gSde9JZO.cjs"),dt=require("./Legend-C753kXho.cjs"),ht=require("./Title-D0u0OcTP.cjs"),ft=require("./Slicer-D7Py6ZHX.cjs"),Ue=require("./usePrinter-DDZhgj7o.cjs"),yt=require("./vue-ui-accordion-G8_S6sZw.cjs"),pt=require("./DataTable-B7qMeQX0.cjs"),gt=require("./vue-ui-skeleton-BW07kqbt.cjs"),qe=require("./useNestedProp-CMB0Z7DT.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./BaseIcon-ChxKARAc.cjs"),xt=require("./ColorPicker-CuY3a_F1.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Ct=["disabled"],Lt=["data-mode","xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],zt=["x","y","fill","font-size"],$t=["x","dy"],Tt=["d","stroke","stroke-width"],Et={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(z,{emit:Ee}){const U=z,Be=Ee,L=t.ref([]),V=t.ref([]),K=t.ref("0 0 0 0"),D=t.ref(U.color),y=t.ref(1),m=t.ref("draw"),w=t.ref(null),q=t.ref(!1),h=t.ref(null),Y=t.ref({x:0,y:0}),X=t.ref([""]),E=t.ref({row:0,col:0}),P=t.ref(16);let W=1;function G(){return W++}function ne(i){var a;const r=R.value;if(!r)return{x:0,y:0};const o=r.createSVGPoint();let u=i.clientX,v=i.clientY;i.touches&&i.touches.length&&(u=i.touches[0].clientX,v=i.touches[0].clientY),o.x=u,o.y=v;const f=(a=r.getScreenCTM())==null?void 0:a.inverse();return f?o.matrixTransform(f):{x:0,y:0}}function re(i){if(!w.value||m.value!=="text"||q.value)return;const{x:r,y:o}=ne(i);Y.value={x:r,y:o},X.value=[""],E.value={row:0,col:0};const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("x",r),u.setAttribute("y",o),u.setAttribute("fill",D.value),u.setAttribute("font-size",P.value),u.setAttribute("font-family","sans-serif"),u.setAttribute("class","vue-data-ui-doodle"),u.setAttribute("dominant-baseline","hanging"),u.setAttribute("pointer-events","all");const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttribute("x",r),v.setAttribute("dy","0"),v.textContent="",u.appendChild(v),u.style.pointerEvents="none",u.style.userSelect="none",w.value.appendChild(u),h.value=u,q.value=!0,window.addEventListener("keydown",ue),window.addEventListener("mousedown",ie,!0),J(),se()}function ue(i){if(!q.value)return;let{row:r,col:o}=E.value,u=X.value.slice(),v=!1;if(i.key==="Enter"){const f=u[r],a=f.slice(0,o),T=f.slice(o);u.splice(r,1,a,T),r+=1,o=0,v=!0,i.preventDefault()}else if(i.key==="Backspace"){if(o>0)u[r]=u[r].slice(0,o-1)+u[r].slice(o),o-=1,v=!0;else if(r>0){const f=u[r-1].length;u[r-1]+=u[r],u.splice(r,1),r-=1,o=f,v=!0}i.preventDefault()}else if(i.key==="Delete")o<u[r].length?(u[r]=u[r].slice(0,o)+u[r].slice(o+1),v=!0):r<u.length-1&&(u[r]+=u[r+1],u.splice(r+1,1),v=!0),i.preventDefault();else if(i.key==="ArrowLeft")o>0?o-=1:r>0&&(r-=1,o=u[r].length),v=!0,i.preventDefault();else if(i.key==="ArrowRight")o<u[r].length?o+=1:r<u.length-1&&(r+=1,o=0),v=!0,i.preventDefault();else if(i.key==="ArrowUp")r>0&&(r-=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key==="ArrowDown")r<u.length-1&&(r+=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key.length===1&&!i.ctrlKey&&!i.metaKey&&!i.altKey)u[r]=u[r].slice(0,o)+i.key+u[r].slice(o),o+=1,v=!0,i.preventDefault();else if(i.key==="Escape"){ce(!0);return}else i.key==="Tab"&&i.preventDefault();v&&(X.value=u,E.value={row:r,col:o},J(),se())}function J(){const i=h.value,{x:r,y:o}=Y.value;for(;i.firstChild;)i.removeChild(i.firstChild);X.value.forEach((u,v)=>{const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttribute("x",r),f.setAttribute("dy",v===0?"0":`${P.value*1.2}`),f.textContent=u.length?u:"​",i.appendChild(f)})}function se(){const i=w.value.querySelector(".vue-data-ui-svg-caret");i&&w.value.removeChild(i);const r=h.value;if(!r)return;const{x:o,y:u}=Y.value,{row:v,col:f}=E.value,a=P.value,T=r.childNodes[v];if(!T)return;let B=T.textContent.slice(0,f);B.endsWith(" ")&&(B+=" ");const p=document.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("x",o),p.setAttribute("y",u),p.setAttribute("font-size",a),p.setAttribute("font-family","sans-serif"),p.textContent=B||"",w.value.appendChild(p);const M=p.getBBox();w.value.removeChild(p);let $=u+v*a*1.2,g=o+M.width;const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("x",g),c.setAttribute("y",$),c.setAttribute("width",1),c.setAttribute("height",a),c.setAttribute("fill",D.value),c.setAttribute("class","vue-data-ui-svg-caret"),w.value.appendChild(c)}function ie(i){if(h.value&&!h.value.contains(i.target)){const r=h.value.children;r.length===1&&(r[0].textContent===""||r[0].textContent==="​")&&h.value.remove(),ce(!1)}}function ce(i=!1){var u;window.removeEventListener("keydown",ue),window.removeEventListener("mousedown",ie,!0);const r=(u=w.value)==null?void 0:u.querySelector(".vue-data-ui-svg-caret");r&&w.value.removeChild(r);const o=X.value.every(v=>!v||v==="​");i||o||L.value.push({id:G(),type:"text",x:Y.value.x,y:Y.value.y,color:D.value,fontSize:P.value,lines:X.value.map(v=>v)}),h.value&&w.value&&w.value.contains(h.value)&&w.value.removeChild(h.value),q.value=!1,h.value=null,X.value=[""],E.value={row:0,col:0}}const H=t.computed(()=>d.lightenHexColor(U.color,.6));function ee({width:i,height:r}){K.value=`0 0 ${i} ${r}`}const _=t.ref(null);t.onMounted(()=>{t.nextTick(()=>{if(U.parent){_.value=new ResizeObserver(o=>{for(const u of o){const{width:v,height:f}=u.contentRect;ee({width:v,height:f})}}),_.value.observe(U.parent);const{width:i,height:r}=U.parent.getBoundingClientRect();ee({width:i,height:r})}}),w.value=R.value.querySelector("g")}),t.onBeforeUnmount(()=>{_.value&&_.value.disconnect()}),t.watch(()=>U.parent,i=>{if(!i)return;const{width:r,height:o}=U.parent.getBoundingClientRect();ee({width:r,height:o})},{immediate:!0}),t.watch(m,i=>{var r,o;i==="text"?(r=R.value)==null||r.addEventListener("mousedown",re):(o=R.value)==null||o.removeEventListener("mousedown",re)});const Z=t.ref(!1),N=t.ref(""),R=t.ref(null);function me(i){if(m.value!=="draw"||!R.value)return;Z.value=!0;const{x:r,y:o}=F(i);N.value=`M ${r} ${o}`}function be(i){if(!Z.value||!R.value)return;const{x:r,y:o}=F(i);N.value+=` ${r} ${o}`}function l(i){const r=i.trim().split(/\s+/);if(r.length<4)return i;const o=r.slice(1).map(Number);if(o.length%2!==0)return i;const u=ve(o),v=[`M ${u[0]} ${u[1]}`];for(let T=2;T<u.length-2;T+=2){const B=u[T-2],p=u[T-1],M=u[T],$=u[T+1],g=(B+M)/2,c=(p+$)/2;v.push(`Q ${B} ${p} ${g} ${c}`)}const f=u[u.length-2],a=u[u.length-1];return v.push(`L ${f} ${a}`),v.join(" ")}function ve(i,r=1){const o=[...i];for(let u=2;u<i.length-2;u+=2){const v=i[u],f=i[u+1],a=i[u-2],T=i[u-1],B=i[u+2],p=i[u+3];o[u]=v+r*((a+B)/2-v),o[u+1]=f+r*((T+p)/2-f)}return o}function xe(i){const r=i.trim().split(/\s+/);let o="",u="",v=null,f=null;for(let a=0;a<r.length;a+=1){const T=r[a];if(isNaN(T)){if(u=T,u==="M"||u==="L")v=parseFloat(r[++a]),f=parseFloat(r[++a]),o+=`${u}${v} ${f}`;else if(u==="Q"){const B=parseFloat(r[++a]),p=parseFloat(r[++a]),M=parseFloat(r[++a]),$=parseFloat(r[++a]);B===v&&p===f?o+=`t${M-v} ${$-f}`:o+=`q${B-v} ${p-f} ${M-v} ${$-f}`,v=M,f=$}}else{const B=parseFloat(T),p=parseFloat(r[++a]);if(u==="L"){const M=B-v,$=p-f;M===0?o+=`v${$}`:$===0?o+=`h${M}`:o+=`l${M} ${$}`,v=B,f=p}else if(u==="Q"){const M=B,$=p,g=parseFloat(r[++a]),c=parseFloat(r[++a]);M===v&&$===f?o+=`t${g-v} ${c-f}`:o+=`q${M-v} ${$-f} ${g-v} ${c-f}`,v=g,f=c}}}return o}function ae(){Z.value&&(L.value.push({id:G(),strokeWidth:y.value,path:xe(l(N.value)),color:D.value}),V.value=[],N.value=""),Z.value=!1}function F(i){if(!R.value)return{x:0,y:0};const r=R.value.getBoundingClientRect();let o,u;return i.touches&&i.touches.length?(o=i.touches[0].clientX,u=i.touches[0].clientY):(o=i.clientX,u=i.clientY),{x:o-r.left,y:u-r.top}}function ke(){if(L.value.length>0){const i=L.value.pop();V.value.push(i)}}function Ce(){if(V.value.length>0){const i=V.value.pop();L.value.push(i)}}function Le(){L.value=[],V.value=[]}const de=t.ref(null);return(i,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.active?(t.openBlock(),t.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:t.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:z.active}),style:t.normalizeStyle({backgroundColor:z.backgroundColor})},[t.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:r[0]||(r[0]=o=>Be("close"))},[t.createVNode(ge.default,{name:"close",stroke:z.color},null,8,["stroke"])],4),t.createElementVNode("button",kt,[t.createVNode(xt.ColorPicker,{value:D.value,"onUpdate:value":r[1]||(r[1]=o=>D.value=o),backgroundColor:z.backgroundColor,buttonBorderColor:H.value},null,8,["value","backgroundColor","buttonBorderColor"])]),t.createElementVNode("button",{class:t.normalizeClass(["vue-ui-pen-and-paper-action",{"vue-ui-pen-and-paper-action-active":m.value==="text"}]),onClick:r[2]||(r[2]=o=>m.value=m.value==="text"?"draw":"text"),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`})},[t.createVNode(ge.default,{name:m.value==="draw"?"annotator":"text",stroke:z.color},null,8,["name","stroke"]),t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",bottom:"-20px",color:H.value,width:"100%",textAlign:"center",fontSize:"12px"})},t.toDisplayString(t.unref(d.dataLabel)({v:m.value==="draw"?y.value:P.value,s:"px",r:1})),5)],6),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length}),disabled:!L.value.length,style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`,marginTop:"20px"}),onClick:ke},[t.createVNode(ge.default,{name:"restart",stroke:z.color},null,8,["stroke"])],14,Ct),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!V.value.length}),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Ce},[t.createVNode(ge.default,{name:"restart",stroke:z.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),t.createElementVNode("button",{class:t.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length},"vue-ui-pen-and-paper-action"]),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Le},[t.createVNode(ge.default,{name:"trash",stroke:z.color},null,8,["stroke"])],6),m.value==="draw"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":r[3]||(r[3]=o=>y.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,y.value]]):t.createCommentVNode("",!0),m.value==="text"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:3,max:48,step:.1,"onUpdate:modelValue":r[4]||(r[4]=o=>P.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,P.value]]):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{"data-mode":m.value,ref_key:"svgElement",ref:R,xmlns:t.unref(d.XMLNS),viewBox:K.value,class:t.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!z.active}),onMousedown:me,onMousemove:be,onMouseup:ae,onMouseleave:ae,onTouchstart:t.withModifiers(me,["prevent"]),onTouchmove:t.withModifiers(be,["prevent"]),onTouchend:ae},[t.createElementVNode("g",{ref_key:"G",ref:w},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[o.path&&o.path.replace("M","").split(" ").length===2?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.path.replace("M","").split(" ")[0],cy:o.path.replace("M","").split(" ")[1],r:o.strokeWidth/2,fill:o.color},null,8,wt)):o.path?(t.openBlock(),t.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:o.path,stroke:o.color,"stroke-width":o.strokeWidth,fill:"none"},null,8,St)):o.type==="text"?(t.openBlock(),t.createElementBlock("text",{key:2,x:o.x,y:o.y,fill:o.color,"font-size":o.fontSize,"font-family":"sans-serif","dominant-baseline":"hanging",class:"vue-ui-pen-and-paper-text"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.lines,(u,v)=>(t.openBlock(),t.createElementBlock("tspan",{key:v,x:o.x,dy:v===0?"0":o.fontSize*1.2},t.toDisplayString(u.length?u:"​"),9,$t))),128))],8,zt)):t.createCommentVNode("",!0)],64))),128))],512),Z.value?(t.openBlock(),t.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:l(N.value),stroke:D.value,"stroke-width":y.value*1.1,fill:"none"},null,8,Tt)):t.createCommentVNode("",!0)],42,Lt))],64))}},Bt=We._export_sfc(Et,[["__scopeId","data-v-14478ba4"]]),Mt=["id"],Nt=["onClick"],Pt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],At={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(z,{expose:Ee,emit:U}){const{vue_ui_xy_canvas:Be}=d.useConfig(),L=z,V=t.ref(d.createUid()),K=t.ref(null),D=t.ref(null),y=t.ref(null),m=t.ref(1),w=t.ref(1),q=t.ref(!1),h=t.ref(null),Y=t.ref(""),X=t.ref(null),E=t.ref([]),P=t.ref(1),W=t.ref(!0),G=t.ref(!0),ne=t.ref(null),re=t.ref(0),ue=t.ref(0),J=t.ref(!1),se=t.ref(null),ie=t.ref(null),ce=t.ref(null),H=t.ref(null),ee=t.ref(0),_=t.ref(0),Z=t.ref(0),N=t.ref(null),R=t.computed(()=>!!L.dataset&&L.dataset.length),me=U,be=t.useSlots();t.onMounted(()=>{be["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const l=t.computed({get:()=>ke(),set:e=>e}),{userOptionsVisible:ve,setUserOptionsVisibility:xe,keepUserOptionState:ae}=mt.useUserOptionState({config:l.value}),{svgRef:F}=bt.useChartAccessibility({config:l.value.style.chart.title});function ke(){const e=qe.useNestedProp({userConfig:L.config,defaultConfig:Be});let n={};return e.theme?n={...qe.useNestedProp({userConfig:d.themes.vue_ui_xy_canvas[e.theme]||L.config,defaultConfig:e}),customPalette:d.themePalettes[e.theme]||d.palette}:n=e,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.min")?n.style.chart.scale.min=L.config.style.chart.scale.min:n.style.chart.scale.min=null,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.max")?n.style.chart.scale.max=L.config.style.chart.scale.max:n.style.chart.scale.max=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.startIndex")?n.style.chart.zoom.startIndex=L.config.style.chart.zoom.startIndex:n.style.chart.zoom.startIndex=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.endIndex")?n.style.chart.zoom.endIndex=L.config.style.chart.zoom.endIndex:n.style.chart.zoom.endIndex=null,n}t.watch(()=>L.config,e=>{l.value=ke(),ve.value=!l.value.userOptions.showOnChartHover,Me(),ee.value+=1,_.value+=1,Z.value+=1,o.value.showTable=l.value.table.show,o.value.showDataLabels=l.value.style.chart.dataLabels.show,o.value.stacked=l.value.style.chart.stacked,o.value.showTooltip=l.value.style.chart.tooltip.show},{deep:!0}),t.watch(()=>L.dataset,()=>{Me(),ee.value+=1,_.value+=1,Z.value+=1},{deep:!0});const Ce=t.ref(l.value.style.chart.aspectRatio),{isPrinting:Le,isImaging:de,generatePdf:i,generateImage:r}=Ue.usePrinter({elementId:`xy_canvas_${V.value}`,fileName:l.value.style.chart.title.text||"vue-ui-xy-canvas",options:l.value.userOptions.print}),o=t.ref({showTable:l.value.table.show,showDataLabels:l.value.style.chart.dataLabels.show,stacked:l.value.style.chart.stacked,showTooltip:l.value.style.chart.tooltip.show});function u(e){J.value=e,ue.value+=1}const v=t.computed(()=>d.convertCustomPalette(l.value.customPalette)),f=t.computed(()=>$.value?Math.max(...$.value.filter((e,n)=>!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=t.computed(()=>{const e=m.value-m.value*(l.value.style.chart.paddingProportions.left+l.value.style.chart.paddingProportions.right);return{canvasWidth:m.value,canvasHeight:w.value,left:m.value*l.value.style.chart.paddingProportions.left,top:w.value*l.value.style.chart.paddingProportions.top,right:m.value-m.value*l.value.style.chart.paddingProportions.right,bottom:w.value-w.value*l.value.style.chart.paddingProportions.bottom,width:e,height:w.value-w.value*(l.value.style.chart.paddingProportions.top+l.value.style.chart.paddingProportions.bottom),slot:e/(c.value.end-c.value.start)}});function T(e,n){return e/n}function B({hasAutoScale:e,series:n,min:s,max:b,scale:C,yOffset:A,individualHeight:k,stackIndex:S=null}){return n.map((te,O)=>{const Q=C.min<0?Math.abs(C.min):0,le=T(te+Q,Q+C.max);let ye,pe;e&&(ye=C.min,pe=T(te-ye,C.max-ye));let j=0;return S===null?j=a.value.bottom-a.value.height*(e?pe:le):j=a.value.bottom-A-k*(e?pe:le),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:j,value:te}})}const p=t.computed(()=>{const e=l.value.style.chart.scale.min!==null?l.value.style.chart.scale.min:Math.min(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),n=l.value.style.chart.scale.max!==null?l.value.style.chart.scale.max:Math.max(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),s=d.calculateNiceScale(e<0?e:0,n===e?e+1<0?0:e+1:n<0?0:n,l.value.style.chart.scale.ticks),b=s.min<0?Math.abs(s.min):0,C=a.value.bottom-a.value.height*(b/(s.max+b)),A=s.ticks.map(k=>({y:a.value.bottom-a.value.height*((k+b)/(s.max+b)),x:a.value.left-8,value:k}));return{absoluteMin:b,max:n,min:e,scale:s,yLabels:A,zero:C}}),M=t.computed(()=>g.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}"/>
@@ -1,19 +1,19 @@
1
1
  import { ref as c, computed as R, onMounted as ot, nextTick as Oe, onBeforeUnmount as $t, watch as _, createElementBlock as M, openBlock as w, Fragment as je, createCommentVNode as Z, normalizeStyle as N, normalizeClass as ve, createElementVNode as W, withDirectives as gt, createVNode as me, toDisplayString as Qe, unref as D, vModelText as pt, withModifiers as mt, renderList as bt, useSlots as Gt, createBlock as ie, createSlots as Zt, withCtx as A, renderSlot as P, normalizeProps as ye, guardReactiveProps as ge, createTextVNode as qt } from "vue";
2
- import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, H as ll, ah as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-CBP1isAR.js";
2
+ import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, H as ll, ah as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-BzVLEcOm.js";
3
3
  import { d as il, t as vl, u as cl, c as dl, a as Lt, l as F, r as at, b as ne, p as wt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as hl } from "./Tooltip-L5-AhMk0.js";
5
- import { L as fl } from "./Legend-CMTevdSS.js";
6
- import { _ as yl } from "./Title-BAvZqX49.js";
7
- import { S as gl } from "./Slicer-BEz7n0a9.js";
8
- import { u as pl, U as ml } from "./usePrinter-CKWFanLo.js";
9
- import bl from "./vue-ui-accordion-BIM67ZeK.js";
10
- import { D as xl } from "./DataTable-CaoJlp1o.js";
11
- import kl from "./vue-ui-skeleton-C27xsSyg.js";
12
- import { u as Ct } from "./useNestedProp-Du7IsYD9.js";
4
+ import { _ as hl } from "./Tooltip-DfaOgqkq.js";
5
+ import { L as fl } from "./Legend-B5oI_cRY.js";
6
+ import { _ as yl } from "./Title-BNWbW-oL.js";
7
+ import { S as gl } from "./Slicer-BqiO7JUs.js";
8
+ import { u as pl, U as ml } from "./usePrinter-CVdbcc0h.js";
9
+ import bl from "./vue-ui-accordion-DmfJhkBj.js";
10
+ import { D as xl } from "./DataTable-DyhJmQRN.js";
11
+ import kl from "./vue-ui-skeleton-DPsvbAIH.js";
12
+ import { u as Ct } from "./useNestedProp-3cWH5OUc.js";
13
13
  import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { u as wl } from "./useChartAccessibility-BWojgys7.js";
15
- import De from "./BaseIcon-Nq8DLsxB.js";
16
- import { C as Cl } from "./ColorPicker-CGhz79T0.js";
15
+ import De from "./BaseIcon-Df6k3R7V.js";
16
+ import { C as Cl } from "./ColorPicker-CoSmaz5P.js";
17
17
  import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const $l = {
19
19
  class: /* @__PURE__ */ ve({
@@ -1,17 +1,17 @@
1
- import { P as H, W as U, a6 as te, a7 as J, a8 as le, a9 as ae, aa as re, ab as ie, ac as se, c as Z, A as ne, F as ce, w as oe, s as he, o as ue, $ as de, ad as ge, x as fe, C as Ie, y as Ne, a5 as me, e as xe, r as be, f as K, ae as Fe, R as _e, S as ye, q as Ae, b as Le, z as Ce, d as Se, af as ke, v as we, ag as Oe, a3 as Ge, ah as ve, i as pe, G as ze, J as Me, u as Te, p as Pe, B as Ve, a as Re, t as He } from "./index-CBP1isAR.js";
2
- import { D as De } from "./DataTable-CaoJlp1o.js";
3
- import { _ as We } from "./Title-BAvZqX49.js";
4
- import { u as Be, _ as Ee } from "./Tooltip-L5-AhMk0.js";
5
- import { U as Ye } from "./usePrinter-CKWFanLo.js";
6
- import { _ as qe } from "./Shape-DApsVE3-.js";
7
- import Xe from "./BaseIcon-Nq8DLsxB.js";
8
- import Ue from "./vue-ui-table-sparkline-iHgkuKdX.js";
9
- import Ze from "./vue-ui-skeleton-C27xsSyg.js";
10
- import { S as Je } from "./Slicer-BEz7n0a9.js";
11
- import Ke from "./vue-ui-accordion-BIM67ZeK.js";
12
- import { u as Q } from "./useNestedProp-Du7IsYD9.js";
13
- import { _ as Qe } from "./PackageVersion-s7IKraJ7.js";
14
- import { _ as je } from "./PenAndPaper-UCIFBRLO.js";
1
+ import { P as H, W as U, a6 as te, a7 as J, a8 as le, a9 as ae, aa as re, ab as ie, ac as se, c as Z, A as ne, F as ce, w as oe, s as he, o as ue, $ as de, ad as ge, x as fe, C as Ie, y as Ne, a5 as me, e as xe, r as be, f as K, ae as Fe, R as _e, S as ye, q as Ae, b as Le, z as Ce, d as Se, af as ke, v as we, ag as Oe, a3 as Ge, ah as ve, i as pe, G as ze, J as Me, u as Te, p as Pe, B as Ve, a as Re, t as He } from "./index-BzVLEcOm.js";
2
+ import { D as De } from "./DataTable-DyhJmQRN.js";
3
+ import { _ as We } from "./Title-BNWbW-oL.js";
4
+ import { u as Be, _ as Ee } from "./Tooltip-DfaOgqkq.js";
5
+ import { U as Ye } from "./usePrinter-CVdbcc0h.js";
6
+ import { _ as qe } from "./Shape-B5ykqxtP.js";
7
+ import Xe from "./BaseIcon-Df6k3R7V.js";
8
+ import Ue from "./vue-ui-table-sparkline-0sgK9SRs.js";
9
+ import Ze from "./vue-ui-skeleton-DPsvbAIH.js";
10
+ import { S as Je } from "./Slicer-BqiO7JUs.js";
11
+ import Ke from "./vue-ui-accordion-DmfJhkBj.js";
12
+ import { u as Q } from "./useNestedProp-3cWH5OUc.js";
13
+ import { _ as Qe } from "./PackageVersion-C3s0AH1l.js";
14
+ import { _ as je } from "./PenAndPaper-BgoQn5KK.js";
15
15
  import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as b, normalizeClass as B, createBlock as W, createCommentVNode as d, createVNode as X, createSlots as $e, withCtx as V, renderSlot as S, normalizeProps as E, guardReactiveProps as Y, createElementVNode as f, createTextVNode as j, Fragment as u, renderList as I, toDisplayString as T, mergeProps as $, withDirectives as et, vModelCheckbox as tt } from "vue";
16
16
  import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const at = Z(), rt = {
@@ -1115,7 +1115,7 @@ const at = Z(), rt = {
1115
1115
  async generatePdf() {
1116
1116
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1117
1117
  try {
1118
- const { default: t } = await import("./pdf-C0qjwXyh.js");
1118
+ const { default: t } = await import("./pdf-7t3r0VpJ.js");
1119
1119
  await t({
1120
1120
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1121
1121
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1138,7 +1138,7 @@ const at = Z(), rt = {
1138
1138
  async generateImage() {
1139
1139
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1140
1140
  try {
1141
- const { default: t } = await import("./img-DfxnBRd7.js");
1141
+ const { default: t } = await import("./img-BjPuxMHG.js");
1142
1142
  await t({
1143
1143
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1144
1144
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.9.7-beta.5",
4
+ "version": "2.9.7-beta.6",
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BsmmqoCF.cjs"),Ye=require("./useUserOptionState-BgepsfED.cjs"),Ge=require("./useChartAccessibility-Cm7nkzTG.cjs"),Be=require("./usePrinter-BuOWaMgB.cjs"),Ee=require("./useResponsive-DQmBAoBf.cjs"),Se=require("./useNestedProp-DYi3ZveI.cjs"),je=require("./vue-ui-accordion-DTGUNv8U.cjs"),Je=require("./BaseIcon-BmFMQj6j.cjs"),$e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ke=require("./DataTable-DBqEL6IT.cjs"),Qe=require("./Legend-DPvSASqp.cjs"),Ze=require("./PenAndPaper-E8prMho-.cjs"),et=require("./Shape-ByQ4NP8x.cjs"),tt=require("./vue-ui-skeleton-4ejtHcys.cjs"),lt=require("./Title-DAqeAwOE.cjs"),ot=require("./vue-ui-xy-BorQlLL5.cjs"),at=["xmlns"],rt={class:"modal-title"},nt={class:"modal-body"},st={__name:"BaseDraggableDialog",props:{backgroundColor:{type:String},color:{type:String},headerBg:{type:String},headerColor:{type:String}},emits:["close"],setup($,{expose:K,emit:Q}){e.useCssVars(i=>({19616867:$.color}));const Z=$,p=Q,b=e.ref(!1),_=e.ref(!1),a=e.reactive({left:window.innerWidth/2-200,top:window.innerHeight/2-120,width:400,height:400,dragging:!1,resizing:!1,dragOffsetX:0,dragOffsetY:0,pointerStartX:0,pointerStartY:0,resizeStartW:0,resizeStartH:0});function Y(){b.value=!0,e.nextTick(()=>{_.value||(a.left=Math.max(0,window.innerWidth/2-a.width/2),a.top=Math.max(0,window.innerHeight/2-a.height/2),_.value=!0)})}function O(){b.value=!1,p("close")}K({open:Y,close:O});const V=e.computed(()=>({position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${a.height}px`,padding:0,border:"none",background:Z.backgroundColor,boxShadow:"0 4px 24px rgba(0,0,0,0.15)",zIndex:9999,overflow:"visible",borderRadius:"2px"}));function C(i){return i.touches&&i.touches.length?{x:i.touches[0].clientX,y:i.touches[0].clientY}:{x:i.clientX,y:i.clientY}}function D(i){var v;(v=i.preventDefault)==null||v.call(i),a.dragging=!0;const d=C(i);a.dragOffsetX=d.x-a.left,a.dragOffsetY=d.y-a.top,document.addEventListener("mousemove",A),document.addEventListener("mouseup",N),document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",N)}function A(i){var t;if(!a.dragging)return;(t=i.preventDefault)==null||t.call(i);const d=C(i);let v=d.x-a.dragOffsetX,w=d.y-a.dragOffsetY;v=Math.max(0,Math.min(v,window.innerWidth-a.width)),w=Math.max(0,Math.min(w,window.innerHeight-a.height)),a.left=v,a.top=w}function N(){a.dragging=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",N),document.removeEventListener("touchmove",A),document.removeEventListener("touchend",N)}function F(i){var v;(v=i.preventDefault)==null||v.call(i),a.resizing=!0;const d=C(i);a.pointerStartX=d.x,a.pointerStartY=d.y,a.resizeStartW=a.width,a.resizeStartH=a.height,document.addEventListener("mousemove",f),document.addEventListener("mouseup",E),document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",E)}function f(i){var t;if(!a.resizing)return;(t=i.preventDefault)==null||t.call(i);const d=C(i);let v=d.x-a.pointerStartX,w=d.y-a.pointerStartY;a.width=Math.max(240,a.resizeStartW+v),a.height=Math.max(400,a.resizeStartH+w)}function E(){a.resizing=!1,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",f),document.removeEventListener("touchend",E)}function G(i){var v;(v=i.preventDefault)==null||v.call(i),a.resizing=!0;const d=C(i);a.pointerStartX=d.x,a.pointerStartY=d.y,a.resizeStartW=a.width,a.resizeStartH=a.height,a.resizeStartLeft=a.left,a.resizeStartTop=a.top,document.addEventListener("mousemove",z),document.addEventListener("mouseup",h),document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",h)}function z(i){var X;if(!a.resizing)return;(X=i.preventDefault)==null||X.call(i);const d=C(i);let v=d.x-a.pointerStartX,w=Math.min(Math.max(0,a.resizeStartLeft+v),a.resizeStartLeft+a.resizeStartW-240),t=a.resizeStartW-(w-a.resizeStartLeft),y=d.y-a.pointerStartY,I=Math.max(400,a.resizeStartH+y);a.left=w,a.width=t,a.height=I}function h(){a.resizing=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",h)}return e.onUnmounted(()=>{N(),E(),h()}),(i,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[b.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal vue-ui-draggable-dialog",style:e.normalizeStyle(V.value),onClick:d[0]||(d[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"modal-header",style:e.normalizeStyle({backgroundColor:$.headerBg,color:$.headerColor})},[e.createElementVNode("span",{class:"drag-handle",onMousedown:e.withModifiers(D,["stop","prevent"]),onTouchstart:e.withModifiers(D,["stop","prevent"])},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(u.XMLNS),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},d[1]||(d[1]=[e.createElementVNode("path",{d:"M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1)]),8,at))],32),e.createElementVNode("span",rt,[e.renderSlot(i.$slots,"title",{},void 0,!0)]),e.createElementVNode("button",{class:"close",onClick:O},[e.createVNode(Je.default,{name:"close",stroke:$.headerColor},null,8,["stroke"])])],4),e.createElementVNode("div",nt,[e.renderSlot(i.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",{class:"resize-handle",onMousedown:e.withModifiers(F,["stop","prevent"]),onTouchstart:e.withModifiers(F,["stop","prevent"])},null,32),e.createElementVNode("div",{class:"resize-handle resize-handle-left",onMousedown:e.withModifiers(G,["stop","prevent"]),onTouchstart:e.withModifiers(G,["stop","prevent"])},null,32)],4)):e.createCommentVNode("",!0)]))}},it=$e._export_sfc(st,[["__scopeId","data-v-f854cee8"]]),ut=["id"],ct=["xmlns","viewBox"],dt=["id"],ht=["stop-color"],vt=["stop-color"],mt=["stop-color"],ft=["stop-color"],pt=["id"],gt=["stop-color"],yt=["stop-color"],kt=["stop-color"],xt=["stop-color"],bt={key:0},wt=["fill","d"],Ct=["fill","stroke","stroke-width","d"],Bt=["stroke","stroke-dasharray","stroke-width","d"],Et=["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],St=["cx","cy","stroke","stroke-width","r","fill"],$t=["x","y","font-size","font-weight","fill","text-decoration","onMouseenter","onClick"],At={key:0},Nt=["font-size","fill","font-weight","transform","text-anchor"],zt=["x","y","width","height","onMouseenter","onClick"],Lt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Mt=["cx","cy","stroke","stroke-width","r","fill"],_t=["x","y","text-anchor","font-size","fill"],Vt={key:5,class:"vue-data-ui-watermark"},Tt=["onClick"],Pt=["innerHTML"],Ot={__name:"vue-ui-ridgeline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint","selectX"],setup($,{expose:K,emit:Q}){const{vue_ui_ridgeline:Z}=u.useConfig(),p=$,b=e.computed({get(){return!!p.dataset&&p.dataset.length},set(o){return o}}),_=Q,a=e.ref(null),Y=e.ref(null),O=e.ref(null),V=e.ref(null),C=e.ref(null),D=e.ref(null),A=e.ref(0),N=e.ref(0),F=e.ref(0),f=e.ref(u.createUid()),E=e.ref(0),G=e.ref(0),z=e.ref(512),h=e.ref(null),i=e.ref(null),d=e.ref(null),v=e.ref(0);function w(){const o=Se.useNestedProp({userConfig:p.config,defaultConfig:Z});return o.theme?{...Se.useNestedProp({userConfig:u.themes.vue_ui_ridgeline[o.theme]||p.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}const t=e.computed({get:()=>w(),set:o=>o}),y=e.ref(Math.min(t.value.style.chart.areas.height,t.value.style.chart.areas.rowHeight)),{userOptionsVisible:I,setUserOptionsVisibility:X,keepUserOptionState:ne}=Ye.useUserOptionState({config:t.value}),{svgRef:ee}=Ge.useChartAccessibility({config:t.value.style.chart.title});e.onMounted(te),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()});function te(){if(u.objectIsEmpty(p.dataset)?u.error({componentName:"VueUiRidgeline",type:"dataset"}):p.dataset.forEach((o,s)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","datapoints"]}).forEach(l=>{b.value=!1,u.error({componentName:"VueUiRidgeline",type:"datasetSerieAttribute",property:l,index:s})}),o.datapoints.length&&o.datapoints.forEach((l,n)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(r=>{b.value=!1,u.error({componentName:"VueUiRidgeline",type:"datasetSerieAttribute",property:`datapoint.${r}`,index:`${s}-${n}`})})})}),G.value=p.dataset.length,y.value=Math.min(t.value.style.chart.areas.height,t.value.style.chart.areas.rowHeight),t.value.responsive){const o=Ee.throttle(()=>{const{width:s,height:l}=Ee.useResponsive({chart:a.value,title:t.value.style.chart.title.text?Y.value:null,legend:t.value.style.chart.legend.show?O.value:null,source:C.value,noTitle:D.value,padding:t.value.style.chart.padding});requestAnimationFrame(()=>{z.value=s,y.value=l/p.dataset.length,v.value=l})});V.value=new ResizeObserver(o),V.value.observe(a.value.parentNode)}}const{isPrinting:se,isImaging:ie,generatePdf:ue,generateImage:ce}=Be.usePrinter({elementId:`vue-ui-ridgeline_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-ridgeline",options:t.value.userOptions.print}),Ae=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Ne=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=e.ref({showTable:t.value.table.show});e.watch(()=>p.config,o=>{t.value=w(),I.value=!t.value.userOptions.showOnChartHover,te(),A.value+=1,F.value+=1,y.value=Math.min(t.value.style.chart.areas.height,t.value.style.chart.areas.rowHeight),H.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>p.dataset,te,{deep:!0});const le=e.computed(()=>t.value.style.chart.areas.height/t.value.style.chart.areas.rowHeight);function de(o){S.value.includes(o)?S.value=S.value.filter(s=>s!==o):S.value.push(o),_("selectLegend",P.value)}const B=e.computed(()=>b.value?p.dataset.map((o,s)=>({...o,labelLen:Me(o.name,t.value.style.chart.yAxis.labels.fontSize),uid:u.createUid(),datapoints:o.datapoints.map((l,n)=>{const r=l.color?u.convertColorToHex(l.color):Ne.value[n]||u.palette[n]||u.palette[n%u.palette.length],c=u.slugify(l.name);return{...l,color:r,id:c}})})):[]),he=e.computed(()=>t.value.style.chart.padding.top+y.value*p.dataset.length+y.value*le.value),k=e.computed(()=>({fullHeight:m.value.padding.top+m.value.padding.bottom+m.value.height,top:m.value.padding.top,left:m.value.padding.left,right:m.value.width-m.value.padding.right,bottom:m.value.padding.top+m.value.height,width:m.value.width-(m.value.padding.left+m.value.padding.right)})),m=e.computed(()=>{const o=t.value.style.chart.padding;return{width:z.value,height:he.value,padding:o}}),T=e.computed(()=>{const o=Math.max(...B.value.map(c=>c.labelLen)),s=Math.max(...B.value.flatMap(c=>c.datapoints.map(x=>x.values.length))),l=m.value.padding.left+o+16+t.value.style.chart.yAxis.labels.offsetX,n=(k.value.width-l)/s,r=[];for(let c=0;c<s;c+=1)r.push({selectorX:l+n*c,x:l+n*c-n/2,y:k.value.top,label:t.value.style.chart.xAxis.labels.values[c]||"",index:c,width:n,height:he.value});return r});function ze(o){_("selectX",B.value.map(s=>s.datapoints.map(l=>({dp:l,selected:l.values[o.index]}))))}function Le(o,s){return o.length*s/2+s}function ve(o,s,l){const n=Le(s,l);return o+n>k.value.right}function Me(o,s,l="sans-serif"){const r=document.createElement("canvas").getContext("2d"),c=typeof s=="number"?`${s}px`:s;return r.font=`${c} ${l}`,r.measureText(o).width}const P=e.computed(()=>{y.value;const o=Math.max(...B.value.map(g=>g.labelLen)),s=Math.max(...B.value.flatMap(g=>g.datapoints.map(L=>L.values.length))),l=Math.max(...B.value.flatMap(g=>g.datapoints.flatMap(L=>L.values))),n=Math.min(...B.value.flatMap(g=>g.datapoints.flatMap(L=>L.values))),r=m.value.padding.left+o+16+t.value.style.chart.yAxis.labels.offsetX,c=(k.value.width-r)/s,x=Math.abs(Math.min(n,0)),ke=l+x;function xe(g){return isNaN(g/ke)?0:g/ke}return B.value.map((g,L)=>{const be=k.value.top+y.value*L,M=k.value.top+be+y.value*le.value*(1-xe(x));return{...g,label:{x:r-t.value.style.chart.yAxis.labels.fontSize,y:M},datapoints:g.datapoints.map(q=>{const W=q.values.map((U,He)=>{const Re=isNaN(U)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(U)?0:U||0,qe=r+c*He,We=k.value.top+be+y.value*le.value*(1-xe(Re+x)),Ue=U===Math.max(...q.values);return{x:qe,y:We,value:U,isMaxPoint:Ue,zero:M}}),we=`${u.createSmoothAreaSegments(W,M,!1,!1)}`,Ce=`M ${r},${M} ${u.createStraightPath(W)} ${W.at(-1).x},${M}`,Ie=`M ${r},${M} ${W.at(-1).x},${M}`,Xe=u.getPathLengthFromCoordinates(t.value.style.chart.areas.smooth?we:Ce);return{...q,uid:u.createUid(),plots:W,smoothPath:we,straightPath:Ce,zeroPath:Ie,pathLength:Xe}}).filter(q=>!S.value.includes(q.id))}})}),S=e.ref([]);function _e(o){const s=new Map;return o.forEach(l=>{l.datapoints.forEach((n,r)=>{const c=u.slugify(n.name);s.has(c)||s.set(c,{id:c,name:n.name,color:n.color,shape:"circle",segregate:()=>de(c),isSegregated:S.value.includes(c),opacity:S.value.includes(c)?.5:1})})}),Array.from(s.values())}const oe=e.computed(()=>_e(B.value)),Ve=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),R=e.ref(!1);function Te(o){R.value=o,E.value+=1}const me=e.ref({}),fe=e.ref([]);function Pe(o){_("selectDatapoint",o),t.value.style.chart.dialog.show&&(fe.value=o.datapoints.map(s=>({name:s.name,color:s.color,type:"line",useArea:!0,smooth:t.value.style.chart.areas.smooth,series:s.values})),i.value=o,me.value=u.deepEmptyObjectToNull({...t.value.style.chart.dialog.xyChart,responsive:!0,chart:{...t.value.style.chart.dialog.xyChart.chart,grid:{...t.value.style.chart.dialog.xyChart.chart.grid,labels:{...t.value.style.chart.dialog.xyChart.chart.grid.labels,xAxisLabels:{...t.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,values:t.value.style.chart.xAxis.labels.values}}},tooltip:{...t.value.style.chart.dialog.xyChart.chart.tooltip,showTimeLabel:t.value.style.chart.xAxis.labels.values.length>0}}}),d.value&&d.value.open())}const ae=e.ref(null);function Oe(o){ae.value=o}function De(){ae.value=null}const j=e.ref(!1);function re(){j.value=!j.value}function pe(){H.value.showTable=!H.value.showTable}const ge=e.computed(()=>({body:P.value.flatMap(l=>l.datapoints.flatMap(n=>({...n,rowName:`${l.name}: ${n.name}`}))).map(l=>[{name:l.rowName,color:l.color},...l.values])})),J=e.computed(()=>{const o=[t.value.table.columnNames.series,...t.value.style.chart.xAxis.labels.values],s={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,...t.value.style.chart.xAxis.labels.values],head:o,body:ge.value.body,config:s}});function ye(){e.nextTick(()=>{const o=[[t.value.table.columnNames.series,...t.value.style.chart.xAxis.labels.values.map(n=>[n])],...ge.value.body.map((n,r)=>[n[0].name,...n.slice(1)])],s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text]].concat(o),l=u.createCsvContent(s);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-ridgeline"})})}function Fe(){return P.value}return K({getData:Fe,generateImage:ce,generatePdf:ue,generateCsv:ye,toggleAnnotator:re,toggleTable:pe}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ridgelineChart",ref:a,class:e.normalizeClass(`vue-ui-ridgeline ${R.value?"vue-data-ui-wrapper-fullscreen":""}`),id:`vue-ui-ridgeline_${f.value}`,style:e.normalizeStyle({fontFamily:t.value.style.fontFamily,width:"100%",textAlign:"center",background:t.value.style.chart.backgroundColor,height:t.value.responsive?"100%":void 0}),onMouseenter:s[4]||(s[4]=()=>e.unref(X)(!0)),onMouseleave:s[5]||(s[5]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(ee)?(e.openBlock(),e.createBlock(Ze._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:j.value,svgRef:e.unref(ee),onClose:re},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Ae.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:D,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Y,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(lt._sfc_main,{key:`title_${A.value}`,config:{title:{cy:"ridgeline-div-title",...t.value.style.chart.title},subtitle:{cy:"ridgeline-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(ne)||e.unref(I))?(e.openBlock(),e.createBlock(Be.UserOptions,{ref:"details",key:`user_option_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(se),isImaging:e.unref(ie),uid:f.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:R.value,chartElement:a.value,position:t.value.userOptions.position,isTooltip:!1,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:j.value,style:e.normalizeStyle({visibility:e.unref(ne)?e.unref(I)?"visible":"hidden":"visible"}),onToggleFullscreen:Te,onGeneratePdf:e.unref(ue),onGenerateCsv:ye,onGenerateImage:e.unref(ce),onToggleTable:pe,onToggleAnnotator:re},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","style","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ee,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":R.value,"vue-data-ui-fulscreen--off":!R.value}),viewBox:`0 0 ${m.value.width<=0?10:m.value.width} ${k.value.fullHeight<=0?10:k.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color};${t.value.responsive?`height: ${v.value}px; width: 100%;`:""}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(l,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`gradient-${l.id}-${f.value}`,x1:"50%",y1:"0%",x2:"50%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color,"stop-opacity":"1"},null,8,ht),e.createElementVNode("stop",{offset:"30%","stop-color":l.color,"stop-opacity":"0.7"},null,8,vt),e.createElementVNode("stop",{offset:"70%","stop-color":l.color,"stop-opacity":"0.3"},null,8,mt),e.createElementVNode("stop",{offset:"100%","stop-color":l.color,"stop-opacity":"0.1"},null,8,ft)],8,dt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(l,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.datapoints,(r,c)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`grad${r.id}`,id:`gradient-single-${f.value}-${r.uid}`,x1:"50%",y1:"0%",x2:"50%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":r.color,"stop-opacity":"1"},null,8,gt),e.createElementVNode("stop",{offset:"30%","stop-color":r.color,"stop-opacity":"0.7"},null,8,yt),e.createElementVNode("stop",{offset:"70%","stop-color":r.color,"stop-opacity":"0.3"},null,8,kt),e.createElementVNode("stop",{offset:"100%","stop-color":r.color,"stop-opacity":"0.1"},null,8,xt)],8,pt))),128))],64))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",{key:`ds-${n}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.datapoints,(r,c)=>(e.openBlock(),e.createElementBlock("g",{key:r.id},[o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",bt,[e.createElementVNode("defs",null,[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{datapointIndex:n,seriesIndex:c,patternId:`pattern_${f.value}_${r.uid}`}),void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("path",{fill:o.$slots.pattern?`url(#pattern_${f.value}_${r.uid})`:t.value.style.chart.backgroundColor,stroke:"none","stroke-linecap":"round",d:t.value.style.chart.areas.smooth?r.smoothPath:r.straightPath,style:e.normalizeStyle({opacity:t.value.style.chart.areas.opacity})},null,12,wt),e.createElementVNode("path",{fill:t.value.style.chart.areas.useGradient?t.value.style.chart.areas.useCommonColor?`url(#gradient-${r.id}-${f.value})`:`url(#gradient-single-${f.value}-${r.uid})`:r.color,stroke:t.value.style.chart.areas.stroke.useSerieColor?r.color:t.value.style.chart.areas.stroke.color,"stroke-width":t.value.style.chart.areas.strokeWidth,d:t.value.style.chart.areas.smooth?r.smoothPath:r.straightPath,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-ui-ridgeline-animate":t.value.useCssAnimation}),style:e.normalizeStyle({strokeDasharray:r.pathLength,strokeDashoffset:t.value.useCssAnimation?r.pathLength:0})},null,14,Ct),e.createElementVNode("path",{stroke:t.value.style.chart.zeroLine.useSerieColor?r.color:t.value.style.chart.zeroLine.stroke,"stroke-dasharray":t.value.style.chart.zeroLine.strokeDasharray,"stroke-width":t.value.style.chart.zeroLine.strokeWidth,d:r.zeroPath,"stroke-linecap":"round"},null,8,Bt),t.value.style.chart.areas.maxPoint.show&&r.plots.length>1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.plots,x=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x.isMaxPoint?(e.openBlock(),e.createElementBlock("line",{key:0,x1:x.x,y1:x.y,x2:x.x,y2:x.zero,stroke:t.value.style.chart.areas.maxPoint.adaptStrokeToBackground?e.unref(u.adaptColorToBackground)(r.color):t.value.style.chart.areas.maxPoint.stroke,"stroke-width":t.value.style.chart.areas.maxPoint.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.chart.areas.maxPoint.strokeDasharray},null,8,Et)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0),r.plots.length===1?(e.openBlock(),e.createElementBlock("circle",{key:2,cx:r.plots[0].x,cy:r.plots[0].y,stroke:t.value.style.chart.selector.dot.stroke,"stroke-width":t.value.style.chart.selector.dot.strokeWidth,r:t.value.style.chart.selector.dot.radius,fill:t.value.style.chart.selector.dot.useDatapointColor?r.color:t.value.style.chart.selector.dot.fill,style:{pointerEvents:"none"}},null,8,St)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("text",{x:l.label.x,y:l.label.y,"text-anchor":"end","font-size":t.value.style.chart.yAxis.labels.fontSize,"font-weight":t.value.style.chart.yAxis.labels.bold?"bold":"normal",fill:t.value.style.chart.yAxis.labels.color,style:e.normalizeStyle({cursor:t.value.style.chart.dialog.show?"pointer":"default"}),"text-decoration":t.value.style.chart.dialog.show&&(ae.value===n||i.value&&l.uid===i.value.uid)?"underline":"",onMouseenter:r=>Oe(n),onMouseleave:De,onClick:r=>Pe(l)},e.toDisplayString(l.name),45,$t)]))),128)),t.value.style.chart.xAxis.labels.values.length?(e.openBlock(),e.createElementBlock("g",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,n)=>e.renderSlot(o.$slots,"time-label",e.mergeProps({ref_for:!0},{show:l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&!t.value.style.chart.xAxis.labels.showOnlyAtModulo||l&&t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&(n===0||n===T.value.length-1)||l&&h.value&&h.value.index===n||l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&t.value.style.chart.xAxis.labels.showOnlyAtModulo&&n%Math.floor(T.value.length/t.value.style.chart.xAxis.labels.modulo)===0,fontSize:t.value.style.chart.xAxis.labels.fontSize,content:l.label,textAnchor:t.value.style.chart.xAxis.labels.rotation>0?"start":t.value.style.chart.xAxis.labels.rotation<0?"end":"middle",fill:t.value.style.chart.xAxis.labels.color,transform:`translate(${l.selectorX}, ${k.value.top+l.height+t.value.style.chart.xAxis.labels.offsetY}), rotate(${t.value.style.chart.xAxis.labels.rotation})`,x:l.selectorX,y:k.value.top+l.height+t.value.style.chart.xAxis.labels.offsetY}),()=>[l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&!t.value.style.chart.xAxis.labels.showOnlyAtModulo||l&&t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&(n===0||n===T.value.length-1)||l&&h.value&&h.value.index===n||l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&t.value.style.chart.xAxis.labels.showOnlyAtModulo&&n%Math.floor(T.value.length/t.value.style.chart.xAxis.labels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":t.value.style.chart.xAxis.labels.fontSize,fill:t.value.style.chart.xAxis.labels.color,"font-weight":t.value.style.chart.xAxis.labels.bold?"bold":"normal",transform:`translate(${l.selectorX}, ${k.value.top+l.height+t.value.style.chart.xAxis.labels.offsetY}), rotate(${t.value.style.chart.xAxis.labels.rotation})`,"text-anchor":t.value.style.chart.xAxis.labels.rotation>0?"start":t.value.style.chart.xAxis.labels.rotation<0?"end":"middle",style:e.normalizeStyle({opacity:h.value?h.value.index===n?1:.2:1})},e.toDisplayString(l.label),13,Nt)):e.createCommentVNode("",!0)],!0)),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,width:l.width<0?.1:l.width,height:l.height<0?.1:l.height,fill:"transparent",onMouseenter:r=>h.value=l,onMouseleave:s[0]||(s[0]=r=>h.value=null),onClick:()=>ze(l)},null,40,zt))),256)),t.value.style.chart.selector.show&&h.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:h.value.selectorX,x2:h.value.selectorX,y1:h.value.y,y2:h.value.y+h.value.height-y.value/2,stroke:t.value.style.chart.selector.stroke,"stroke-width":t.value.style.chart.selector.strokeWidth,"stroke-dasharray":t.value.style.chart.selector.strokeDasharray,"stroke-linecap":"round",style:{pointerEvents:"none"}},null,8,Lt)):e.createCommentVNode("",!0),h.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(P.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.datapoints,n=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.plots,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[h.value&&h.value.index===c?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:r.x,cy:r.y,stroke:t.value.style.chart.selector.dot.stroke,"stroke-width":t.value.style.chart.selector.dot.strokeWidth,r:t.value.style.chart.selector.dot.radius,fill:t.value.style.chart.selector.dot.useDatapointColor?n.color:t.value.style.chart.selector.dot.fill,style:{pointerEvents:"none"}},null,8,Mt)):e.createCommentVNode("",!0),h.value&&h.value.index===c?(e.openBlock(),e.createElementBlock("text",{key:1,x:ve(r.x,e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,r.value,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:r.value,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.style.chart.selector.labels.rounding})),t.value.style.chart.selector.labels.fontSize)?r.x-t.value.style.chart.selector.labels.fontSize/2:r.x+t.value.style.chart.selector.labels.fontSize/2,y:r.y+t.value.style.chart.selector.labels.fontSize/3,"text-anchor":ve(r.x,e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,r.value,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:r.value,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.style.chart.selector.labels.rounding})),t.value.style.chart.selector.labels.fontSize)?"end":"start","font-size":t.value.style.chart.selector.labels.fontSize,fill:t.value.style.chart.selector.labels.color,style:{pointerEvents:"none"}},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,r.value,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:r.value,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.style.chart.selector.labels.rounding}))),9,_t)):e.createCommentVNode("",!0)],64))),256))],64))),256))],64))),256)):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"svg",{svg:m.value},void 0,!0)],14,ct)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Vt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(se)||e.unref(ie)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(tt.default,{key:6,config:{type:"ridgeline",style:{backgroundColor:t.value.style.chart.backgroundColor,ridgeline:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Qe.Legend,{key:`legend_${F.value}`,legendSet:oe.value,config:Ve.value,onClickMarker:s[1]||(s[1]=({legend:l})=>de(l.id))},e.createSlots({item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${S.value.includes(l.id)?.5:1}`),onClick:n=>l.segregate()},e.toDisplayString(l.name),13,Tt)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:n})=>[e.createVNode(et._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${f.value}_${n})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:oe.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:C,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(je.default,{key:8,hideDetails:"",config:{open:H.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ke.DataTable,{key:`table_${N.value}`,colNames:J.value.colNames,head:J.value.head,body:J.value.body,config:J.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` :${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[2]||(s[2]=l=>H.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l},null,8,Pt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,l,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:l,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.table.td.roundingValue}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0),t.value.style.chart.dialog.show?(e.openBlock(),e.createBlock(it,{key:9,ref_key:"dialog",ref:d,onClose:s[3]||(s[3]=l=>i.value=null),backgroundColor:t.value.style.chart.dialog.backgroundColor,color:t.value.style.chart.dialog.color,headerBg:t.value.style.chart.dialog.header.backgroundColor,headerColor:t.value.style.chart.dialog.header.color},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.name),1)]),default:e.withCtx(()=>[i.value?(e.openBlock(),e.createBlock(ot.default,{key:0,config:me.value,dataset:fe.value},null,8,["config","dataset"])):e.createCommentVNode("",!0)]),_:1},8,["backgroundColor","color","headerBg","headerColor"])):e.createCommentVNode("",!0)],46,ut))}},Dt=$e._export_sfc(Ot,[["__scopeId","data-v-9c6e4dd0"]]);exports.default=Dt;