vue-data-ui 2.4.55 → 2.4.57

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 (156) hide show
  1. package/dist/{Arrow-Lu-rJXGl.cjs → Arrow-BhwhLRcU.cjs} +1 -1
  2. package/dist/{Arrow-D9oPJhO0.js → Arrow-DelnKkT1.js} +1 -1
  3. package/dist/{BaseIcon-mHeKnX4-.js → BaseIcon-9gdEHMWK.js} +1 -1
  4. package/dist/{BaseIcon-DxRKjbz1.cjs → BaseIcon-DujPvdJ_.cjs} +1 -1
  5. package/dist/{DataTable-rMMvio1U.cjs → DataTable-BUflha5V.cjs} +1 -1
  6. package/dist/{DataTable-D8MTezlM.js → DataTable-DgbrnD__.js} +2 -2
  7. package/dist/{Legend-wr5XLSfL.js → Legend-HooNAKB_.js} +1 -1
  8. package/dist/{Legend-Ba34oTdO.cjs → Legend-V3K-4ipN.cjs} +1 -1
  9. package/dist/{PackageVersion-xnKIqody.js → PackageVersion-S3SzpuwC.js} +1 -1
  10. package/dist/{PackageVersion-BJi2ywG9.cjs → PackageVersion-dQYEsTLp.cjs} +1 -1
  11. package/dist/{PenAndPaper-CX6N7FR7.cjs → PenAndPaper-1h87IVla.cjs} +1 -1
  12. package/dist/{PenAndPaper-iek0aH4r.js → PenAndPaper-v846FwcH.js} +3 -3
  13. package/dist/{Shape-B_lWjwmP.js → Shape-D7aacHaz.js} +1 -1
  14. package/dist/{Shape-9v-w5i6N.cjs → Shape-DV5sH0dX.cjs} +1 -1
  15. package/dist/{Slicer--m1nOwbO.cjs → Slicer-BRxR5OYL.cjs} +1 -1
  16. package/dist/{Slicer-Bwg4WzZf.js → Slicer-BXCORSCz.js} +2 -2
  17. package/dist/{Title-BWhYDGb-.cjs → Title-B-EsW0Q2.cjs} +1 -1
  18. package/dist/{Title-BecmraNn.js → Title-DLjHHdyq.js} +1 -1
  19. package/dist/{Tooltip-cPxZzSgr.cjs → Tooltip-B7gYRLGN.cjs} +1 -1
  20. package/dist/{Tooltip-BZYApG0d.js → Tooltip-BDaa-67h.js} +1 -1
  21. package/dist/{index-Dhlyke5j.js → index-CI-N9klv.js} +5 -1
  22. package/dist/index-o6tXRhOr.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +3 -0
  25. package/dist/types/vue-data-ui.d.ts +3 -0
  26. package/dist/{useNestedProp-C9KmUVBy.cjs → useNestedProp-D-zaZbSR.cjs} +1 -1
  27. package/dist/{useNestedProp-D9eTQKze.js → useNestedProp-D1eJ0dvv.js} +1 -1
  28. package/dist/{usePrinter-BnBk8gnl.js → usePrinter-CXc8xCKk.js} +1 -1
  29. package/dist/{usePrinter-DpEuGyLP.cjs → usePrinter-H2UFIe6n.cjs} +1 -1
  30. package/dist/{vue-data-ui-CGGZHtx3.cjs → vue-data-ui-CvfX2D1d.cjs} +1 -1
  31. package/dist/{vue-data-ui-aSR5-7gp.js → vue-data-ui-DuXblXhF.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-D9pXx9fJ.js → vue-ui-3d-bar-fvTVGk8O.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-Dm2wnS6e.cjs → vue-ui-3d-bar-zKUnnMOY.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-CGpOsWNN.js → vue-ui-accordion-CYLks1fW.js} +3 -3
  37. package/dist/{vue-ui-accordion-mtZIFAv9.cjs → vue-ui-accordion-paZXh-GD.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BcMERmA5.cjs → vue-ui-age-pyramid-Bg8Bexac.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-dbX4WaaY.js → vue-ui-age-pyramid-Ch3nY1Dx.js} +10 -10
  40. package/dist/{vue-ui-annotator-CY-rCEDB.cjs → vue-ui-annotator-BXbLcJ1L.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DfRkh1D_.js → vue-ui-annotator-DGupSF-o.js} +1 -1
  42. package/dist/{vue-ui-bullet-CUoiQcb5.js → vue-ui-bullet-BSRXabBe.js} +8 -8
  43. package/dist/{vue-ui-bullet-jsXAmYsX.cjs → vue-ui-bullet-DqM9h81O.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-BD58hsql.cjs → vue-ui-candlestick-C0PkovyK.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-BLIICgdz.js → vue-ui-candlestick-Dww4XHwQ.js} +11 -11
  46. package/dist/vue-ui-carousel-table-BZs-sxxu.js +396 -0
  47. package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +1 -0
  48. package/dist/{vue-ui-chestnut-vivMozHy.cjs → vue-ui-chestnut-Be4Lagdr.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-DIPBJ5D2.js → vue-ui-chestnut-CnupXXAM.js} +8 -8
  50. package/dist/{vue-ui-cursor-CzLtzn7N.js → vue-ui-cursor-oqfOA98Q.js} +2 -2
  51. package/dist/{vue-ui-cursor-Cgv_2p2T.cjs → vue-ui-cursor-smlBNiGG.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-DqZVcLlQ.js → vue-ui-dashboard-BNu7yNYm.js} +2 -2
  53. package/dist/{vue-ui-dashboard-CtlrjFxl.cjs → vue-ui-dashboard-Dw_90R29.cjs} +1 -1
  54. package/dist/{vue-ui-digits-e1HQVXb9.cjs → vue-ui-digits-_8FbgFrI.cjs} +1 -1
  55. package/dist/{vue-ui-digits-CGFznMkY.js → vue-ui-digits-qztPrOEN.js} +2 -2
  56. package/dist/{vue-ui-donut-z2eOcEI5.cjs → vue-ui-donut-B7orj3vV.cjs} +1 -1
  57. package/dist/{vue-ui-donut-DmLq2iWK.js → vue-ui-donut-CK9dINFS.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-4odFZbUM.cjs → vue-ui-donut-evolution-BmTzjKlH.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-DpollzkH.js → vue-ui-donut-evolution-DpDpYw3f.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-i7E-B6zN.cjs → vue-ui-dumbbell-5yfcA-Of.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-DLr4Lh3u.js → vue-ui-dumbbell-Dx1I89N9.js} +10 -10
  62. package/dist/{vue-ui-flow-BuYhmRed.cjs → vue-ui-flow-Bar7LG9t.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CosxAYPJ.js → vue-ui-flow-DJNqydD1.js} +9 -9
  64. package/dist/{vue-ui-funnel-BNPISgC0.cjs → vue-ui-funnel-lxHehCUr.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-C_2YAtFj.js → vue-ui-funnel-mP8ftcS5.js} +8 -8
  66. package/dist/{vue-ui-galaxy-D1cWyHG9.js → vue-ui-galaxy-3cOLS6lh.js} +11 -11
  67. package/dist/{vue-ui-galaxy-DMOx2Le7.cjs → vue-ui-galaxy-B8zbGikp.cjs} +1 -1
  68. package/dist/{vue-ui-gauge-Dw7QvZei.cjs → vue-ui-gauge-Bz1nzveF.cjs} +1 -1
  69. package/dist/{vue-ui-gauge-Dnq0t_eH.js → vue-ui-gauge-CN_zo833.js} +7 -7
  70. package/dist/{vue-ui-gizmo-DcT9tTS-.cjs → vue-ui-gizmo-C9XQ-7Sj.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-vHQVGdpR.js → vue-ui-gizmo-akkNcCWf.js} +3 -3
  72. package/dist/{vue-ui-heatmap-CtxQI5Mq.js → vue-ui-heatmap-B3ClLioV.js} +10 -10
  73. package/dist/{vue-ui-heatmap-D-r7qdj0.cjs → vue-ui-heatmap-BW6dmp8j.cjs} +1 -1
  74. package/dist/{vue-ui-history-plot-BjcPvcaK.js → vue-ui-history-plot-C-EqVFW-.js} +11 -11
  75. package/dist/{vue-ui-history-plot-B8pP20QN.cjs → vue-ui-history-plot-Mp0zDeR-.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BjuKXuQM.js → vue-ui-kpi-C-axCKZx.js} +3 -3
  77. package/dist/{vue-ui-kpi-BPwU5pay.cjs → vue-ui-kpi-D8hh3p8f.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-DE2NXywp.cjs → vue-ui-mini-loader-Cal5W_q6.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DZYw7bD6.js → vue-ui-mini-loader-CsZ1zxJz.js} +2 -2
  80. package/dist/{vue-ui-molecule-A3yHt8cl.js → vue-ui-molecule-BvNh7REY.js} +11 -11
  81. package/dist/{vue-ui-molecule-B8I4iuBQ.cjs → vue-ui-molecule-RkdIX-iW.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-Dh1qbcXz.js → vue-ui-mood-radar-C7v4dBNw.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-BKtVVOZz.cjs → vue-ui-mood-radar-DLpDoq0G.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-B5ixdGsx.cjs → vue-ui-nested-donuts-BO249_PV.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-DPuIU4IX.js → vue-ui-nested-donuts-C08kpvMd.js} +11 -11
  86. package/dist/{vue-ui-onion-BTMaTU2a.cjs → vue-ui-onion-BjNQgHPX.cjs} +1 -1
  87. package/dist/{vue-ui-onion-BgcJBzxI.js → vue-ui-onion-CTLBemDj.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-Cye2V8MQ.cjs → vue-ui-parallel-coordinate-plot-CoeVi-98.cjs} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-Ksh3Tuvx.js → vue-ui-parallel-coordinate-plot-H1FdP6AE.js} +12 -12
  90. package/dist/{vue-ui-quadrant-DOet5Q47.cjs → vue-ui-quadrant-D701bdNz.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-DGBXeeOe.js → vue-ui-quadrant-Dd-LDy4T.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-DQcck_x6.js → vue-ui-quick-chart-BeNivWrg.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-DhCA-7B5.cjs → vue-ui-quick-chart-CRNEkxoM.cjs} +1 -1
  94. package/dist/{vue-ui-radar-qk20LKHr.cjs → vue-ui-radar-3W9NRklj.cjs} +1 -1
  95. package/dist/{vue-ui-radar-CI5egNer.js → vue-ui-radar-D9U_vOad.js} +12 -12
  96. package/dist/{vue-ui-rating-Ch2PSMeW.js → vue-ui-rating-B7AlAqCY.js} +2 -2
  97. package/dist/{vue-ui-rating-CYhvKLSi.cjs → vue-ui-rating-DeuaL_cU.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-t-WDgqtA.cjs → vue-ui-relation-circle-B8JtK-JM.cjs} +1 -1
  99. package/dist/{vue-ui-relation-circle-G6KC4zs0.js → vue-ui-relation-circle-CT23BNcW.js} +7 -7
  100. package/dist/{vue-ui-rings-NIIfGve4.js → vue-ui-rings-BZ7FYYxr.js} +11 -11
  101. package/dist/{vue-ui-rings-DxpkXXwJ.cjs → vue-ui-rings-CZCTLghE.cjs} +1 -1
  102. package/dist/{vue-ui-scatter-BqxcKjb2.js → vue-ui-scatter-DMr8OrC3.js} +12 -12
  103. package/dist/{vue-ui-scatter-DynxMn7l.cjs → vue-ui-scatter-DlA0xU5U.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-BUP9G_uK.cjs → vue-ui-screenshot-BFV1qEsF.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-DreZMmrO.js → vue-ui-screenshot-DHiX35pR.js} +1 -1
  106. package/dist/{vue-ui-skeleton-D_lU-hWK.cjs → vue-ui-skeleton-BIWgLDDf.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-DQqwDUqP.js → vue-ui-skeleton-owIhXtQF.js} +3 -3
  108. package/dist/{vue-ui-smiley-AGwF1X7u.cjs → vue-ui-smiley-BISneB7t.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-CdmO39JE.js → vue-ui-smiley-CCOQ6zjo.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-BUx5YwEZ.js → vue-ui-spark-trend-B56DI3Mc.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-DD1s6Thz.cjs → vue-ui-spark-trend-lMzod-5S.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-KZd6YQwQ.js → vue-ui-sparkbar-CMkozDkx.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-mlrF_QEO.cjs → vue-ui-sparkbar-DcdDLl8l.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-B4J8ZYzs.cjs → vue-ui-sparkgauge-BhwNRzrD.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-Db-d9x9r.js → vue-ui-sparkgauge-De06LRPj.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-B61JDza9.js → vue-ui-sparkhistogram-CBDd7jIn.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-DzJ5NNi9.cjs → vue-ui-sparkhistogram-D00ahrgs.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-P6ubVgp0.js → vue-ui-sparkline-BJejWvTN.js} +4 -4
  119. package/dist/{vue-ui-sparkline-S6HehQ0a.cjs → vue-ui-sparkline-CY92qVz0.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-BDBqoeJQ.cjs → vue-ui-sparkstackbar-BjKL_6dq.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DKtOqh-Y.js → vue-ui-sparkstackbar-DlnmPom2.js} +5 -5
  122. package/dist/{vue-ui-stackbar-WShCS9A1.js → vue-ui-stackbar-19XdLQXB.js} +306 -291
  123. package/dist/vue-ui-stackbar-T4VBFpDo.cjs +6 -0
  124. package/dist/{vue-ui-strip-plot-Bq3u8k2l.js → vue-ui-strip-plot-Bly8GoNP.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-DH4LQTfB.cjs → vue-ui-strip-plot-CtjbMamo.cjs} +1 -1
  126. package/dist/{vue-ui-table-sJN2rS51.js → vue-ui-table-BUF6Pyfp.js} +1 -1
  127. package/dist/{vue-ui-table-aV4pHrWD.cjs → vue-ui-table-BisPh85-.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DsdyE14x.js → vue-ui-table-heatmap-By-MmFiq.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-CruECEYA.cjs → vue-ui-table-heatmap-CPn-jC0n.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CcsNg6th.cjs → vue-ui-table-sparkline-CIDuWZZs.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BlUe2QFV.js → vue-ui-table-sparkline-DG70UNkU.js} +5 -5
  132. package/dist/{vue-ui-thermometer-ButIh820.cjs → vue-ui-thermometer-CMvk1D7J.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-80aa72_6.js → vue-ui-thermometer-Vr2IP_p0.js} +7 -7
  134. package/dist/{vue-ui-timer-CuUSpISM.js → vue-ui-timer-CD7gFOjN.js} +5 -5
  135. package/dist/{vue-ui-timer-Dk4I7cRn.cjs → vue-ui-timer-CUHgN89f.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-CQ98xHZ5.js → vue-ui-tiremarks-44pO3jx1.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-BsYfeNCN.cjs → vue-ui-tiremarks-w_gxHFeB.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-CHXb8mBG.cjs → vue-ui-treemap-CFhTEaxa.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-s1nZAhAS.js → vue-ui-treemap-CyOUM3-P.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-iZWowEik.cjs → vue-ui-vertical-bar-C51RKLB8.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-Dd306Z10.js → vue-ui-vertical-bar-wngOp0Zc.js} +11 -11
  142. package/dist/{vue-ui-waffle-BJgSuNVY.cjs → vue-ui-waffle-CXZc4t27.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-CQfOCZjf.js → vue-ui-waffle-CuN7i0ci.js} +11 -11
  144. package/dist/{vue-ui-wheel-DB-4Rn84.js → vue-ui-wheel-B_gLugLx.js} +7 -7
  145. package/dist/{vue-ui-wheel-s8UTbo9G.cjs → vue-ui-wheel-u9Vc7ZTZ.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-C-l2Z3Dd.js → vue-ui-word-cloud-DKHGS0my.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-DvfOJe4M.cjs → vue-ui-word-cloud-tSXyXvd6.cjs} +1 -1
  148. package/dist/{vue-ui-xy-P_VLOaMg.js → vue-ui-xy-BK9R8MrJ.js} +14 -14
  149. package/dist/{vue-ui-xy-D1Nkk2Gp.cjs → vue-ui-xy-bX3g4COC.cjs} +1 -1
  150. package/dist/{vue-ui-xy-canvas-BwNEs-cY.js → vue-ui-xy-canvas-DaT4HoWD.js} +11 -11
  151. package/dist/{vue-ui-xy-canvas-CIKl9AXf.cjs → vue-ui-xy-canvas-gDaRsnBI.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-DGcOW0vL.cjs +0 -9
  154. package/dist/vue-ui-carousel-table-CCmB_BJ7.cjs +0 -1
  155. package/dist/vue-ui-carousel-table-NUliqwxA.js +0 -379
  156. package/dist/vue-ui-stackbar-DCCcEgQZ.cjs +0 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DGcOW0vL.cjs"),j=require("./useResponsive-BJ7DTGpm.cjs"),re=require("./Title-BWhYDGb-.cjs"),Y=require("./usePrinter-DpEuGyLP.cjs"),ie=require("./Tooltip-cPxZzSgr.cjs"),ne=require("./DataTable-rMMvio1U.cjs"),ue=require("./vue-ui-skeleton-D_lU-hWK.cjs"),de=require("./vue-ui-accordion-mtZIFAv9.cjs"),J=require("./useNestedProp-C9KmUVBy.cjs"),ce=require("./PackageVersion-BJi2ywG9.cjs"),ve=require("./PenAndPaper-CX6N7FR7.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),he=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=["id"],pe=["xmlns","viewBox"],ge=["id"],be=["stop-color"],me=["stop-color"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["x","y","width","height","fill","rx"],_e=["x","y","width","height","fill","rx"],Ne=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Se={key:0},Te=["x","y","fill","font-size","font-weight"],Be=["x","y","fill","font-size","font-weight"],Ae={key:1},$e=["x","y","font-size","fill","font-weight"],Ee={key:2},Ve={key:0},ze=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","font-size","fill","font-weight"],Ie=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x","y","font-size","fill","font-weight"],Re=["x","y","width","height","fill","onMouseover"],qe={key:5,class:"vue-data-ui-watermark"},Ue={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:K}){const u=T,{vue_ui_age_pyramid:Q}=s.useConfig(),m=e.computed(()=>!!u.dataset&&u.dataset.length),c=e.ref(s.createUid()),Z=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),B=e.ref(0),y=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:N,setUserOptionsVisibility:P,keepUserOptionState:O}=ye.useUserOptionState({config:t.value});function F(){const l=J.useNestedProp({userConfig:u.config,defaultConfig:Q});return l.theme?{...J.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),N.value=!t.value.showOnChartHover,D(),V.value+=1,z.value+=1},{deep:!0});const I=e.ref(null);e.onMounted(()=>{D()});function D(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=j.throttle(()=>{const{width:r,height:o}=j.useResponsive({chart:y.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});d.value.width=r,d.value.height=o});I.value=new ResizeObserver(l),I.value.observe(y.value.parentNode)}}const{isPrinting:M,isImaging:R,generatePdf:q,generateImage:U}=Y.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),i=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,r=t.value.style.layout.padding.left,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:r,right:o,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:r+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:r+l/2+t.value.style.layout.centerSlit.width}}}),te=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=le(b.value/5),r=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);r.push({value:n,x:i.value.left+i.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*i.value.leftChart.width}),o.push({value:Math.abs(X),x:i.value.left+i.value.width/2+X/b.value*i.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:r,left:o}});function le(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(r=>s.checkNaN(r))))),f=e.computed(()=>u.dataset.length),oe=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),p=e.computed(()=>oe.value.map((l,r)=>{const o=i.value.top+i.value.height/f.value*r,a=i.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:t.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*i.value.leftChart.width),height:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*i.value.rightChart.width),height:a}}})),L=e.ref(null);function ae(l,r){x.value=l,L.value={datapoint:r,seriesIndex:l,series:p.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(s.isFunction(o)&&s.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:p.value,config:t.value})))_.value=o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:p.value,config:t.value});else{let a="";const n=p.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<div>${t.value.translations.age}: ${s.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(n.age),s.dataLabel({v:s.checkNaN(n.age)}),{datapoint:r,seriesIndex:l})}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.left.value),s.dataLabel({v:s.checkNaN(n.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.right.value),s.dataLabel({v:s.checkNaN(n.right.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.right.value)+s.checkNaN(n.left.value),s.dataLabel({v:s.checkNaN(n.right.value)+s.checkNaN(n.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+="</div>",_.value=`<div>${a}</div>`}C.value=!0}function G(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),a=s.createCsvContent(o);s.downloadCsv({csvContent:a,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=u.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={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{head:l,body:r,config:o,colNames:l}}),g=e.ref(!1);function se(l){g.value=l,B.value+=1}function H(){v.value.showTable=!v.value.showTable}function W(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function S(){w.value=!w.value}return K({generatePdf:q,generateCsv:G,generateImage:U,toggleTable:H,toggleTooltip:W,toggleAnnotator:S}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:r[2]||(r[2]=()=>e.unref(P)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(P)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ve.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:S},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(re._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(O)||e.unref(N))?(e.openBlock(),e.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(R),isPrinting:e.unref(M),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:se,onGeneratePdf:e.unref(q),onGenerateCsv:G,onGenerateImage:e.unref(U),onToggleTable:H,onToggleTooltip:W,onToggleAnnotator:S,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ce._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,me)],8,ge),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,we)],8,xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(s.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Ce),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,_e),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Ne),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Se,[e.createElementVNode("text",{x:i.value.left,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,Te),e.createElementVNode("text",{x:i.value.right,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Be)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/f.value*a+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,o,e.unref(s.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,$e)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Ee,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ve,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ze),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Pe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,Fe)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ie)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),e.createElementVNode("text",{x:i.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Me)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/f.value*a-t.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/f.value<=0?1e-4:i.value.height/f.value,fill:x.value!==null&&x.value===a?e.unref(s.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>ae(a,o),onMouseleave:r[0]||(r[0]=n=>{x.value=null,C.value=!1})},null,40,Re)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,pe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ie._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isFullscreen:g.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(de.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ne.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=o=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,fe))}},Ge=he._export_sfc(Ue,[["__scopeId","data-v-0b42a758"]]);exports.default=Ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-o6tXRhOr.cjs"),j=require("./useResponsive-BJ7DTGpm.cjs"),re=require("./Title-B-EsW0Q2.cjs"),Y=require("./usePrinter-H2UFIe6n.cjs"),ie=require("./Tooltip-B7gYRLGN.cjs"),ne=require("./DataTable-BUflha5V.cjs"),ue=require("./vue-ui-skeleton-BIWgLDDf.cjs"),de=require("./vue-ui-accordion-paZXh-GD.cjs"),J=require("./useNestedProp-D-zaZbSR.cjs"),ce=require("./PackageVersion-dQYEsTLp.cjs"),ve=require("./PenAndPaper-1h87IVla.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),he=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=["id"],pe=["xmlns","viewBox"],ge=["id"],be=["stop-color"],me=["stop-color"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["x","y","width","height","fill","rx"],_e=["x","y","width","height","fill","rx"],Ne=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Se={key:0},Te=["x","y","fill","font-size","font-weight"],Be=["x","y","fill","font-size","font-weight"],Ae={key:1},$e=["x","y","font-size","fill","font-weight"],Ee={key:2},Ve={key:0},ze=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","font-size","fill","font-weight"],Ie=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x","y","font-size","fill","font-weight"],Re=["x","y","width","height","fill","onMouseover"],qe={key:5,class:"vue-data-ui-watermark"},Ue={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:K}){const u=T,{vue_ui_age_pyramid:Q}=s.useConfig(),m=e.computed(()=>!!u.dataset&&u.dataset.length),c=e.ref(s.createUid()),Z=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),B=e.ref(0),y=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:N,setUserOptionsVisibility:P,keepUserOptionState:O}=ye.useUserOptionState({config:t.value});function F(){const l=J.useNestedProp({userConfig:u.config,defaultConfig:Q});return l.theme?{...J.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),N.value=!t.value.showOnChartHover,D(),V.value+=1,z.value+=1},{deep:!0});const I=e.ref(null);e.onMounted(()=>{D()});function D(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=j.throttle(()=>{const{width:r,height:o}=j.useResponsive({chart:y.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});d.value.width=r,d.value.height=o});I.value=new ResizeObserver(l),I.value.observe(y.value.parentNode)}}const{isPrinting:M,isImaging:R,generatePdf:q,generateImage:U}=Y.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),i=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,r=t.value.style.layout.padding.left,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:r,right:o,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:r+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:r+l/2+t.value.style.layout.centerSlit.width}}}),te=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=le(b.value/5),r=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);r.push({value:n,x:i.value.left+i.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*i.value.leftChart.width}),o.push({value:Math.abs(X),x:i.value.left+i.value.width/2+X/b.value*i.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:r,left:o}});function le(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(r=>s.checkNaN(r))))),f=e.computed(()=>u.dataset.length),oe=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),p=e.computed(()=>oe.value.map((l,r)=>{const o=i.value.top+i.value.height/f.value*r,a=i.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:t.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*i.value.leftChart.width),height:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*i.value.rightChart.width),height:a}}})),L=e.ref(null);function ae(l,r){x.value=l,L.value={datapoint:r,seriesIndex:l,series:p.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(s.isFunction(o)&&s.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:p.value,config:t.value})))_.value=o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:p.value,config:t.value});else{let a="";const n=p.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<div>${t.value.translations.age}: ${s.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(n.age),s.dataLabel({v:s.checkNaN(n.age)}),{datapoint:r,seriesIndex:l})}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.left.value),s.dataLabel({v:s.checkNaN(n.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.right.value),s.dataLabel({v:s.checkNaN(n.right.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.right.value)+s.checkNaN(n.left.value),s.dataLabel({v:s.checkNaN(n.right.value)+s.checkNaN(n.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+="</div>",_.value=`<div>${a}</div>`}C.value=!0}function G(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),a=s.createCsvContent(o);s.downloadCsv({csvContent:a,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=u.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={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{head:l,body:r,config:o,colNames:l}}),g=e.ref(!1);function se(l){g.value=l,B.value+=1}function H(){v.value.showTable=!v.value.showTable}function W(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function S(){w.value=!w.value}return K({generatePdf:q,generateCsv:G,generateImage:U,toggleTable:H,toggleTooltip:W,toggleAnnotator:S}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:r[2]||(r[2]=()=>e.unref(P)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(P)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ve.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:S},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(re._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(O)||e.unref(N))?(e.openBlock(),e.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(R),isPrinting:e.unref(M),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:se,onGeneratePdf:e.unref(q),onGenerateCsv:G,onGenerateImage:e.unref(U),onToggleTable:H,onToggleTooltip:W,onToggleAnnotator:S,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ce._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,me)],8,ge),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,we)],8,xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(s.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Ce),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,_e),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Ne),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Se,[e.createElementVNode("text",{x:i.value.left,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,Te),e.createElementVNode("text",{x:i.value.right,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Be)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/f.value*a+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,o,e.unref(s.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,$e)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Ee,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ve,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ze),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Pe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,Fe)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ie)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),e.createElementVNode("text",{x:i.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Me)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/f.value*a-t.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/f.value<=0?1e-4:i.value.height/f.value,fill:x.value!==null&&x.value===a?e.unref(s.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>ae(a,o),onMouseleave:r[0]||(r[0]=n=>{x.value=null,C.value=!1})},null,40,Re)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,pe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ie._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isFullscreen:g.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(de.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ne.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=o=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,fe))}},Ge=he._export_sfc(Ue,[["__scopeId","data-v-0b42a758"]]);exports.default=Ge;
@@ -1,15 +1,15 @@
1
1
  import { computed as b, ref as v, watch as Te, onMounted as Ae, openBlock as i, createElementBlock as n, normalizeClass as ye, normalizeStyle as W, unref as u, createBlock as S, createCommentVNode as y, createSlots as Le, withCtx as p, renderSlot as f, normalizeProps as I, guardReactiveProps as F, createVNode as he, createElementVNode as d, Fragment as z, renderList as P, toDisplayString as w, createTextVNode as fe, nextTick as Se } from "vue";
2
- import { u as ze, c as Oe, t as Ie, o as Fe, e as Pe, v as h, X as Me, s as X, w as ce, i as k, f as _, x as Ne, y as Re, q as De, r as Ge } from "./index-Dhlyke5j.js";
2
+ import { u as ze, c as Oe, t as Ie, o as Fe, e as Pe, v as h, X as Me, s as X, w as ce, i as k, f as _, x as Ne, y as Re, q as De, r as Ge } from "./index-CI-N9klv.js";
3
3
  import { t as Ue, u as Be } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Ve } from "./Title-BecmraNn.js";
5
- import { u as Ee, U as We } from "./usePrinter-BnBk8gnl.js";
6
- import { _ as Xe } from "./Tooltip-BZYApG0d.js";
7
- import { D as He } from "./DataTable-D8MTezlM.js";
8
- import Ye from "./vue-ui-skeleton-DQqwDUqP.js";
9
- import je from "./vue-ui-accordion-CGpOsWNN.js";
10
- import { u as ge } from "./useNestedProp-D9eTQKze.js";
11
- import { _ as qe } from "./PackageVersion-xnKIqody.js";
12
- import { P as Je } from "./PenAndPaper-iek0aH4r.js";
4
+ import { _ as Ve } from "./Title-DLjHHdyq.js";
5
+ import { u as Ee, U as We } from "./usePrinter-CXc8xCKk.js";
6
+ import { _ as Xe } from "./Tooltip-BDaa-67h.js";
7
+ import { D as He } from "./DataTable-DgbrnD__.js";
8
+ import Ye from "./vue-ui-skeleton-owIhXtQF.js";
9
+ import je from "./vue-ui-accordion-CYLks1fW.js";
10
+ import { u as ge } from "./useNestedProp-D1eJ0dvv.js";
11
+ import { _ as qe } from "./PackageVersion-S3SzpuwC.js";
12
+ import { P as Je } from "./PenAndPaper-v846FwcH.js";
13
13
  import { u as Ke } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"], at = ["stop-color"], ot = ["id"], st = ["stop-color"], it = ["stop-color"], ut = ["x", "y", "width", "height", "fill", "rx"], rt = ["x", "y", "width", "height", "fill", "rx"], nt = ["x", "y", "width", "height", "fill", "rx"], dt = ["x", "y", "width", "height", "fill", "rx"], vt = { key: 0 }, yt = ["x", "y", "fill", "font-size", "font-weight"], ht = ["x", "y", "fill", "font-size", "font-weight"], ft = { key: 1 }, ct = ["x", "y", "font-size", "fill", "font-weight"], gt = { key: 2 }, pt = { key: 0 }, bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = ["x", "y", "width", "height", "fill", "onMouseover"], Tt = {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-DGcOW0vL.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-o6tXRhOr.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
2
2
  <defs>
3
3
  <marker
4
4
  id="${e.id}"
@@ -1,6 +1,6 @@
1
1
  import p from "./html2canvas.esm-d2sM-0Wm.js";
2
2
  import { E as _ } from "./jspdf.es.min-C660YX78.js";
3
- import { z as v, u as w, A, B as M } from "./index-Dhlyke5j.js";
3
+ import { z as v, u as w, A, B as M } from "./index-CI-N9klv.js";
4
4
  import { openBlock as d, createElementBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, normalizeClass as y, createCommentVNode as a, withDirectives as f, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G, createStaticVNode as N, pushScopeId as m, popScopeId as T } from "vue";
5
5
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const D = {
@@ -1,12 +1,12 @@
1
1
  import { ref as d, computed as g, onMounted as de, watch as J, onBeforeUnmount as ge, openBlock as r, createElementBlock as n, normalizeClass as K, normalizeStyle as I, unref as u, createBlock as k, createCommentVNode as i, createSlots as fe, withCtx as w, renderSlot as y, normalizeProps as H, guardReactiveProps as M, createVNode as me, Fragment as T, renderList as U, createElementVNode as x, toDisplayString as L } from "vue";
2
- import { u as ye, o as pe, e as Q, g as be, c as ke, l as we, D as xe, d as _e, i as $, f as B, X as Ce, t as Le } from "./index-Dhlyke5j.js";
3
- import { u as Z } from "./useNestedProp-D9eTQKze.js";
4
- import { _ as $e } from "./Title-BecmraNn.js";
5
- import { L as Be } from "./Legend-wr5XLSfL.js";
6
- import { u as Ae, U as Oe } from "./usePrinter-BnBk8gnl.js";
7
- import { _ as Pe } from "./PackageVersion-xnKIqody.js";
8
- import { P as Fe } from "./PenAndPaper-iek0aH4r.js";
9
- import Se from "./vue-ui-skeleton-DQqwDUqP.js";
2
+ import { u as ye, o as pe, e as Q, g as be, c as ke, l as we, D as xe, d as _e, i as $, f as B, X as Ce, t as Le } from "./index-CI-N9klv.js";
3
+ import { u as Z } from "./useNestedProp-D1eJ0dvv.js";
4
+ import { _ as $e } from "./Title-DLjHHdyq.js";
5
+ import { L as Be } from "./Legend-HooNAKB_.js";
6
+ import { u as Ae, U as Oe } from "./usePrinter-CXc8xCKk.js";
7
+ import { _ as Pe } from "./PackageVersion-S3SzpuwC.js";
8
+ import { P as Fe } from "./PenAndPaper-v846FwcH.js";
9
+ import Se from "./vue-ui-skeleton-owIhXtQF.js";
10
10
  import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Me = ["id"], Te = {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DGcOW0vL.cjs"),A=require("./useNestedProp-C9KmUVBy.cjs"),Y=require("./Title-BWhYDGb-.cjs"),J=require("./Legend-Ba34oTdO.cjs"),F=require("./usePrinter-DpEuGyLP.cjs"),K=require("./PackageVersion-BJi2ywG9.cjs"),Q=require("./PenAndPaper-CX6N7FR7.cjs"),Z=require("./vue-ui-skeleton-D_lU-hWK.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},re=["xmlns","viewBox"],oe={key:0},se=["x","y","height","width","fill","stroke"],ne=["x","y","height","width","rx","fill","stroke","stroke-width"],ue=["x","y","height","width","fill","stroke","stroke-width"],ie=["x","y","font-size","font-weight","fill"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de={key:3},he=["x","y","fill","font-size","font-weight"],ve={key:4},me=["x1","x2","y1","y2","stroke"],ge={key:5,class:"vue-data-ui-watermark"},fe={class:"vue-ui-bullet-legend-item",dir:"auto"},ye={style:{"margin-right":"2px"}},pe={key:7,ref:"source",dir:"auto"},ke={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:I}){const n=z,{vue_ui_bullet:H}=s.useConfig(),y=e.ref(null),T=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-o6tXRhOr.cjs"),A=require("./useNestedProp-D-zaZbSR.cjs"),Y=require("./Title-B-EsW0Q2.cjs"),J=require("./Legend-V3K-4ipN.cjs"),F=require("./usePrinter-H2UFIe6n.cjs"),K=require("./PackageVersion-dQYEsTLp.cjs"),Q=require("./PenAndPaper-1h87IVla.cjs"),Z=require("./vue-ui-skeleton-BIWgLDDf.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},re=["xmlns","viewBox"],oe={key:0},se=["x","y","height","width","fill","stroke"],ne=["x","y","height","width","rx","fill","stroke","stroke-width"],ue=["x","y","height","width","fill","stroke","stroke-width"],ie=["x","y","font-size","font-weight","fill"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de={key:3},he=["x","y","fill","font-size","font-weight"],ve={key:4},me=["x1","x2","y1","y2","stroke"],ge={key:5,class:"vue-data-ui-watermark"},fe={class:"vue-ui-bullet-legend-item",dir:"auto"},ye={style:{"margin-right":"2px"}},pe={key:7,ref:"source",dir:"auto"},ke={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:I}){const n=z,{vue_ui_bullet:H}=s.useConfig(),y=e.ref(null),T=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
2
2
 
3
3
  segments: [
4
4
  {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DGcOW0vL.cjs"),ie=require("./useResponsive-BJ7DTGpm.cjs"),_e=require("./Title-BWhYDGb-.cjs"),de=require("./usePrinter-DpEuGyLP.cjs"),ze=require("./Tooltip-cPxZzSgr.cjs"),Ve=require("./DataTable-rMMvio1U.cjs"),Ee=require("./vue-ui-skeleton-D_lU-hWK.cjs"),Te=require("./Slicer--m1nOwbO.cjs"),Ae=require("./vue-ui-accordion-mtZIFAv9.cjs"),ce=require("./useNestedProp-C9KmUVBy.cjs"),Fe=require("./PackageVersion-BJi2ywG9.cjs"),Ie=require("./PenAndPaper-CX6N7FR7.cjs"),Pe=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=["id"],Oe=["xmlns","viewBox"],Ue={key:0},Me=["id"],De=["stop-color"],qe=["stop-color"],We=["stop-color"],Ge=["id"],He=["stop-color"],je=["stop-color"],Xe=["stop-color"],Ye={key:0},Je=["x1","x2","y1","y2","stroke","stroke-width"],Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe={key:1},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x","y","font-size","fill","font-weight"],tt={key:2},lt=["transform","text-anchor","font-size","fill","font-weight"],ot=["x1","x2","y1","y2","stroke","stroke-width"],at={key:0},nt=["cx","cy","r","fill"],ut=["cx","cy","r","fill"],st={key:1},rt=["x1","x2","y1","y2","stroke","stroke-width"],it=["x1","x2","y1","y2","stroke","stroke-width"],dt=["x","y","height","width","fill","rx"],ct=["x","y","height","width","fill","rx","stroke","stroke-width"],vt=["x","y","height","width","fill","onMouseover"],yt={key:5,class:"vue-data-ui-watermark"},pt=["innerHTML"],ht={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(f,{expose:ve}){const d=f,{vue_ui_candlestick:ye}=u.useConfig(),b=e.computed(()=>!!d.dataset&&d.dataset.length),p=e.ref(u.createUid()),pe=e.ref(null),V=e.ref(!1),E=e.ref(""),T=e.ref(void 0),L=e.ref(0),g=e.ref(null),R=e.ref(null),O=e.ref(null),U=e.ref(null),M=e.ref(null),D=e.ref(null),C=e.ref(0),q=e.ref(0),W=e.ref(0),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:G,keepUserOptionState:H}=Pe.useUserOptionState({config:t.value});function j(){const l=ce.useNestedProp({userConfig:d.config,defaultConfig:ye});let a={};return l.theme?a={...ce.useNestedProp({userConfig:u.themes.vue_ui_candlestick[l.theme]||d.config,defaultConfig:l})}:a=l,d.config&&u.hasDeepProperty(d.config,"style.zoom.startIndex")?a.style.zoom.startIndex=d.config.style.zoom.startIndex:a.style.zoom.startIndex=null,d.config&&u.hasDeepProperty(d.config,"style.zoom.endIndex")?a.style.zoom.endIndex=d.config.style.zoom.endIndex:a.style.zoom.endIndex=null,a}e.watch(()=>d.config,l=>{t.value=j(),A.value=!t.value.showOnChartHover,X(),C.value+=1,W.value+=1,q.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{c.value.start=0,c.value.end=l.length,C.value+=1},{deep:!0});const i=e.ref({height:t.value.style.height,width:t.value.style.width,xAxisFontSize:t.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:t.value.style.layout.grid.yAxis.dataLabels.fontSize}),N=e.ref(null);e.onMounted(()=>{X()});function X(){if(u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiCandlestick",type:"dataset"}),t.value.responsive){const l=ie.throttle(()=>{const{width:a,height:o}=ie.useResponsive({chart:g.value,title:t.value.style.title.text?R.value:null,slicer:U.value,legend:O.value,source:M.value,noTitle:D.value});i.value.width=a,i.value.height=o,i.value.xAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),i.value.yAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});N.value=new ResizeObserver(l),N.value.observe(g.value.parentNode)}te()}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=de.usePrinter({elementId:`vue-ui-candlestick_${p.value}`,fileName:t.value.style.title.text||"vue-ui-candlestick"}),he=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),s=e.computed(()=>{const{top:l,right:a,bottom:o,left:n}=t.value.style.layout.padding;return{top:l,right:i.value.width-a,left:n,bottom:i.value.height-o,width:i.value.width-n-a,height:i.value.height-l-o}}),w=e.computed(()=>d.dataset.length),c=e.ref({start:0,end:w.value}),Z=e.computed(()=>d.dataset.slice(c.value.start,c.value.end)),F=e.computed(()=>(d.dataset.forEach((l,a)=>{[null,void 0].includes(l[0])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:a}),[null,void 0].includes(l[1])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:a}),[null,void 0].includes(l[2])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:a}),[null,void 0].includes(l[3])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:a}),[null,void 0].includes(l[4])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:a}),[null,void 0].includes(l[5])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:a})}),Z.value.map(l=>({period:l[0],open:l[1],high:l[2],low:l[3],last:l[4],volume:l[5]})))),r=e.computed(()=>s.value.width/Z.value.length),ee=e.computed(()=>({max:Math.max(...F.value.map(l=>l.high)),min:0})),m=e.computed(()=>u.calculateNiceScale(ee.value.min,ee.value.max,t.value.style.layout.grid.yAxis.dataLabels.steps));function $(l,a){return{...l,x:u.checkNaN(s.value.left+a*r.value+r.value/2),y:u.checkNaN(s.value.top+(1-l/m.value.max)*s.value.height),value:u.checkNaN(l)}}const v=e.computed(()=>F.value.map((l,a)=>{const o=$(l.open,a),n=$(l.high,a),y=$(l.low,a),_=$(l.last,a),z=l.last>l.open;return{period:l.period,open:o,high:n,low:y,last:_,volume:l.volume,isBullish:z}}));function fe(l){return u.checkNaN(l/m.value.max)}const me=e.computed(()=>m.value.ticks.map(l=>({y:s.value.bottom-s.value.height*fe(l),value:u.checkNaN(l)}))),ge=e.computed(()=>F.value.map(l=>l.period)),I=e.ref(null);function ke(l,a){T.value=l,I.value={datapoint:a,seriesIndex:l,series:v.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:v.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:v.value,config:t.value});else if(t.value.style.tooltip.show){let n="";const{period:y,open:_,high:z,low:ne,last:ue,volume:se,isBullish:re}=v.value[l],{period:mt,open:Ce,high:Ne,low:$e,last:Se,volume:Be}=t.value.translations;n+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${t.value.style.layout.candle.borderRadius*3}" stroke="${t.value.style.layout.candle.stroke}" stroke-width="${t.value.style.layout.candle.strokeWidth}"
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-o6tXRhOr.cjs"),ie=require("./useResponsive-BJ7DTGpm.cjs"),_e=require("./Title-B-EsW0Q2.cjs"),de=require("./usePrinter-H2UFIe6n.cjs"),ze=require("./Tooltip-B7gYRLGN.cjs"),Ve=require("./DataTable-BUflha5V.cjs"),Ee=require("./vue-ui-skeleton-BIWgLDDf.cjs"),Te=require("./Slicer-BRxR5OYL.cjs"),Ae=require("./vue-ui-accordion-paZXh-GD.cjs"),ce=require("./useNestedProp-D-zaZbSR.cjs"),Fe=require("./PackageVersion-dQYEsTLp.cjs"),Ie=require("./PenAndPaper-1h87IVla.cjs"),Pe=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=["id"],Oe=["xmlns","viewBox"],Ue={key:0},Me=["id"],De=["stop-color"],qe=["stop-color"],We=["stop-color"],Ge=["id"],He=["stop-color"],je=["stop-color"],Xe=["stop-color"],Ye={key:0},Je=["x1","x2","y1","y2","stroke","stroke-width"],Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe={key:1},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x","y","font-size","fill","font-weight"],tt={key:2},lt=["transform","text-anchor","font-size","fill","font-weight"],ot=["x1","x2","y1","y2","stroke","stroke-width"],at={key:0},nt=["cx","cy","r","fill"],ut=["cx","cy","r","fill"],st={key:1},rt=["x1","x2","y1","y2","stroke","stroke-width"],it=["x1","x2","y1","y2","stroke","stroke-width"],dt=["x","y","height","width","fill","rx"],ct=["x","y","height","width","fill","rx","stroke","stroke-width"],vt=["x","y","height","width","fill","onMouseover"],yt={key:5,class:"vue-data-ui-watermark"},pt=["innerHTML"],ht={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(f,{expose:ve}){const d=f,{vue_ui_candlestick:ye}=u.useConfig(),b=e.computed(()=>!!d.dataset&&d.dataset.length),p=e.ref(u.createUid()),pe=e.ref(null),V=e.ref(!1),E=e.ref(""),T=e.ref(void 0),L=e.ref(0),g=e.ref(null),R=e.ref(null),O=e.ref(null),U=e.ref(null),M=e.ref(null),D=e.ref(null),C=e.ref(0),q=e.ref(0),W=e.ref(0),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:G,keepUserOptionState:H}=Pe.useUserOptionState({config:t.value});function j(){const l=ce.useNestedProp({userConfig:d.config,defaultConfig:ye});let a={};return l.theme?a={...ce.useNestedProp({userConfig:u.themes.vue_ui_candlestick[l.theme]||d.config,defaultConfig:l})}:a=l,d.config&&u.hasDeepProperty(d.config,"style.zoom.startIndex")?a.style.zoom.startIndex=d.config.style.zoom.startIndex:a.style.zoom.startIndex=null,d.config&&u.hasDeepProperty(d.config,"style.zoom.endIndex")?a.style.zoom.endIndex=d.config.style.zoom.endIndex:a.style.zoom.endIndex=null,a}e.watch(()=>d.config,l=>{t.value=j(),A.value=!t.value.showOnChartHover,X(),C.value+=1,W.value+=1,q.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{c.value.start=0,c.value.end=l.length,C.value+=1},{deep:!0});const i=e.ref({height:t.value.style.height,width:t.value.style.width,xAxisFontSize:t.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:t.value.style.layout.grid.yAxis.dataLabels.fontSize}),N=e.ref(null);e.onMounted(()=>{X()});function X(){if(u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiCandlestick",type:"dataset"}),t.value.responsive){const l=ie.throttle(()=>{const{width:a,height:o}=ie.useResponsive({chart:g.value,title:t.value.style.title.text?R.value:null,slicer:U.value,legend:O.value,source:M.value,noTitle:D.value});i.value.width=a,i.value.height=o,i.value.xAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),i.value.yAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});N.value=new ResizeObserver(l),N.value.observe(g.value.parentNode)}te()}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=de.usePrinter({elementId:`vue-ui-candlestick_${p.value}`,fileName:t.value.style.title.text||"vue-ui-candlestick"}),he=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),s=e.computed(()=>{const{top:l,right:a,bottom:o,left:n}=t.value.style.layout.padding;return{top:l,right:i.value.width-a,left:n,bottom:i.value.height-o,width:i.value.width-n-a,height:i.value.height-l-o}}),w=e.computed(()=>d.dataset.length),c=e.ref({start:0,end:w.value}),Z=e.computed(()=>d.dataset.slice(c.value.start,c.value.end)),F=e.computed(()=>(d.dataset.forEach((l,a)=>{[null,void 0].includes(l[0])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:a}),[null,void 0].includes(l[1])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:a}),[null,void 0].includes(l[2])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:a}),[null,void 0].includes(l[3])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:a}),[null,void 0].includes(l[4])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:a}),[null,void 0].includes(l[5])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:a})}),Z.value.map(l=>({period:l[0],open:l[1],high:l[2],low:l[3],last:l[4],volume:l[5]})))),r=e.computed(()=>s.value.width/Z.value.length),ee=e.computed(()=>({max:Math.max(...F.value.map(l=>l.high)),min:0})),m=e.computed(()=>u.calculateNiceScale(ee.value.min,ee.value.max,t.value.style.layout.grid.yAxis.dataLabels.steps));function $(l,a){return{...l,x:u.checkNaN(s.value.left+a*r.value+r.value/2),y:u.checkNaN(s.value.top+(1-l/m.value.max)*s.value.height),value:u.checkNaN(l)}}const v=e.computed(()=>F.value.map((l,a)=>{const o=$(l.open,a),n=$(l.high,a),y=$(l.low,a),_=$(l.last,a),z=l.last>l.open;return{period:l.period,open:o,high:n,low:y,last:_,volume:l.volume,isBullish:z}}));function fe(l){return u.checkNaN(l/m.value.max)}const me=e.computed(()=>m.value.ticks.map(l=>({y:s.value.bottom-s.value.height*fe(l),value:u.checkNaN(l)}))),ge=e.computed(()=>F.value.map(l=>l.period)),I=e.ref(null);function ke(l,a){T.value=l,I.value={datapoint:a,seriesIndex:l,series:v.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:v.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:v.value,config:t.value});else if(t.value.style.tooltip.show){let n="";const{period:y,open:_,high:z,low:ne,last:ue,volume:se,isBullish:re}=v.value[l],{period:mt,open:Ce,high:Ne,low:$e,last:Se,volume:Be}=t.value.translations;n+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${t.value.style.layout.candle.borderRadius*3}" stroke="${t.value.style.layout.candle.stroke}" stroke-width="${t.value.style.layout.candle.strokeWidth}"
2
2
  fill="${t.value.style.layout.candle.gradient.show?re?`url(#bullish_gradient_${p.value})`:`url(#bearish_gradient_${p.value})`:re?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg>${y}</div>`,n+=`${Be} : <b>${isNaN(se)?"-":Number(se.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()}</b>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,n+=`<div>${Ce}: <b>${t.value.style.tooltip.prefix} ${isNaN(_.value)?"-":Number(_.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Ne}: <b>${t.value.style.tooltip.prefix} ${isNaN(z.value)?"-":Number(z.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${$e}: <b>${t.value.style.tooltip.prefix} ${isNaN(ne.value)?"-":Number(ne.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Se}: <b>${t.value.style.tooltip.prefix} ${isNaN(ue.value)?"-":Number(ue.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+="</div>",E.value=`<div style="text-align:right">${n}</div>`}V.value=!0}function xe(){te()}const k=e.ref(null);async function te(){(t.value.style.zoom.startIndex!==null||t.value.style.zoom.endIndex!==null)&&k.value?(t.value.style.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),k.value&&k.value.setStartValue(t.value.style.zoom.startIndex)),t.value.style.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),k.value&&k.value.setEndValue(be(t.value.style.zoom.endIndex+1)))):(c.value={start:0,end:w.value},C.value+=1)}function be(l){const a=w.value;return l>a?a:l<0||t.value.style.zoom.startIndex!==null&&l<t.value.style.zoom.startIndex?t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex+1:1:l}function le(){e.nextTick(()=>{const l=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume],a=v.value.map(y=>[y.period,y.open.value,y.high.value,y.low.value,y.last.value,y.volume]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(a),n=u.createCsvContent(o);u.downloadCsv({csvContent:n,title:t.value.style.title.text||"vue-ui-candlestick"})})}const S=e.computed(()=>{const l=v.value.map(n=>[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${t.value.style.layout.candle.borderRadius*3}" fill="${t.value.style.layout.candle.gradient.show?n.isBullish?`url(#bullish_gradient_${p.value}`:`url(#bearish_gradient_${p.value})`:n.isBullish?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg> ${n.period}`,`${t.value.table.td.prefix} ${isNaN(n.open.value)?"-":Number(n.open.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.high.value)?"-":Number(n.high.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.low.value)?"-":Number(n.low.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.last.value)?"-":Number(n.last.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${isNaN(n.volume)?"-":n.volume.toLocaleString()}`]),a={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},o=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume];return{head:o,body:l,config:a,colNames:o}}),x=e.ref(!1);function we(l){x.value=l,L.value+=1}function oe(){h.value.showTable=!h.value.showTable}function ae(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function P(){B.value=!B.value}return ve({generatePdf:K,generateCsv:le,generateImage:Q,toggleTable:oe,toggleTooltip:ae,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"candlestickChart",ref:g,class:e.normalizeClass(`vue-ui-candlestick ${x.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`position:relative;font-family:${t.value.style.fontFamily}; text-align:center;background:${t.value.style.backgroundColor}; ${t.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${p.value}`,onMouseenter:a[4]||(a[4]=()=>e.unref(G)(!0)),onMouseleave:a[5]||(a[5]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:B.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),he.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.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:R,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(_e._sfc_main,{key:`title_${W.value}`,config:{title:{cy:"candlestick-div-title",...t.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(H)||e.unref(A))?(e.openBlock(),e.createBlock(de.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${L.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(J),isPrinting:e.unref(Y),uid:p.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:we,onGeneratePdf:e.unref(K),onGenerateCsv:le,onGenerateImage:e.unref(Q),onToggleTable:oe,onToggleTooltip:ae,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${i.value.height<=0?10:i.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Fe._sfc_main),v.value.length>0?(e.openBlock(),e.createElementBlock("g",Ue,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`bearish_gradient_${p.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bearish},null,8,De),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bearish,.05)}66`},null,8,We)],8,Me),e.createElementVNode("linearGradient",{id:`bullish_gradient_${p.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bullish},null,8,He),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Xe)],8,Ge)]),t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ye,[e.createElementVNode("line",{x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Je),e.createElementVNode("line",{x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ke)])):e.createCommentVNode("",!0),t.value.style.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value.left,x2:s.value.left-5,y1:o.y,y2:o.y,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ze)):e.createCommentVNode("",!0),o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.value.left-8+t.value.style.layout.grid.yAxis.dataLabels.offsetX,y:o.y+i.value.yAxisFontSize/3,"font-size":i.value.yAxisFontSize,"text-anchor":"end",fill:t.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+e.toDisplayString(e.unref(u.canShowValue)(o.value)?o.value.toFixed(t.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.suffix),9,et)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.value.style.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ge.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{transform:`translate(${s.value.left+r.value*n+r.value/2}, ${s.value.bottom+i.value.xAxisFontSize*2+t.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${t.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":t.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":i.value.xAxisFontSize,fill:t.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(o),9,lt)]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:o.open.x,x2:o.open.x,y1:o.high.y,y2:o.low.y,stroke:t.value.style.layout.wick.stroke,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,ot),t.value.style.layout.wick.extremity.shape==="circle"?(e.openBlock(),e.createElementBlock("g",at,[e.createElementVNode("circle",{cx:o.high.x,cy:o.high.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,nt),e.createElementVNode("circle",{cx:o.low.x,cy:o.low.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,ut)])):e.createCommentVNode("",!0),t.value.style.layout.wick.extremity.shape==="line"?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("line",{x1:o.high.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.high.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.high.y,y2:o.high.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,rt),e.createElementVNode("line",{x1:o.low.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.low.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.low.y,y2:o.low.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,it)])):e.createCommentVNode("",!0)]))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:t.value.style.layout.candle.gradient.underlayer,rx:t.value.style.layout.candle.borderRadius,stroke:"none"},null,8,dt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:o.isBullish?t.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${p.value})`:t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${p.value})`:t.value.style.layout.candle.colors.bearish,rx:t.value.style.layout.candle.borderRadius,stroke:t.value.style.layout.candle.stroke,"stroke-width":t.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ct))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value.left+n*r.value,y:s.value.top,height:s.value.height<=0?1e-4:s.value.height,width:r.value<=0?1e-4:r.value,fill:T.value===n?e.unref(u.setOpacity)(t.value.style.layout.selector.color,t.value.style.layout.selector.opacity):"transparent",onMouseover:y=>ke(n,o),onMouseleave:a[0]||(a[0]=y=>{T.value=void 0,V.value=!1})},null,40,vt))),256))])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:i.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",yt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ee.default,{key:6,config:{type:"candlesticks",style:{backgroundColor:t.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.zoom.show&&b.value?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"chartSlicer",ref:U},[(e.openBlock(),e.createBlock(Te.Slicer,{ref_key:"slicerComponent",ref:k,key:`slicer_${C.value}`,background:t.value.style.zoom.color,borderColor:t.value.style.backgroundColor,fontSize:t.value.style.zoom.fontSize,useResetSlot:t.value.style.zoom.useResetSlot,labelLeft:f.dataset[c.value.start]?f.dataset[c.value.start][0]:f.dataset[0][0],labelRight:f.dataset[c.value.end-1]?f.dataset[c.value.end-1][0]:f.dataset.at(-1)[0],textColor:t.value.style.color,inputColor:t.value.style.zoom.color,selectColor:t.value.style.zoom.highlightColor,max:w.value,min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":a[1]||(a[1]=o=>c.value.start=o),end:c.value.end,"onUpdate:end":a[2]||(a[2]=o=>c.value.end=o),refreshStartPoint:t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex:0,refreshEndPoint:t.value.style.zoom.endIndex!==null?t.value.style.zoom.endIndex+1:w.value,onReset:xe},{"reset-action":e.withCtx(({reset:o})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:o})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint"]))],512)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[e.renderSlot(l.$slots,"legend",{legend:v.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:M,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:h.value.showTooltip&&V.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:g.value,content:E.value,isFullscreen:x.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(Ae.default,{key:9,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ve.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:a[3]||(a[3]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createElementVNode("div",{innerHTML:o},null,8,pt)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Re))}},ft=Le._export_sfc(ht,[["__scopeId","data-v-bcb8c8b2"]]);exports.default=ft;
@@ -1,16 +1,16 @@
1
1
  import { computed as f, ref as n, watch as Se, onMounted as qe, onBeforeUnmount as Je, nextTick as V, openBlock as s, createElementBlock as u, normalizeClass as Ne, normalizeStyle as ee, unref as v, createBlock as _, createCommentVNode as y, createSlots as Ke, withCtx as m, renderSlot as g, normalizeProps as T, guardReactiveProps as I, createVNode as Ae, createElementVNode as r, Fragment as F, renderList as L, toDisplayString as P, createTextVNode as Qe } from "vue";
2
- import { u as Ze, c as et, t as tt, C as Te, o as lt, e as z, D as ot, v as U, X as at, w as j, E as st, s as ut, x as it, y as nt, q as rt, r as dt, F as Ie } from "./index-Dhlyke5j.js";
2
+ import { u as Ze, c as et, t as tt, C as Te, o as lt, e as z, D as ot, v as U, X as at, w as j, E as st, s as ut, x as it, y as nt, q as rt, r as dt, F as Ie } from "./index-CI-N9klv.js";
3
3
  import { t as vt, u as yt } from "./useResponsive-CoxXLe23.js";
4
- import { _ as ct } from "./Title-BecmraNn.js";
5
- import { u as ht, U as pt } from "./usePrinter-BnBk8gnl.js";
6
- import { _ as ft } from "./Tooltip-BZYApG0d.js";
7
- import { D as gt } from "./DataTable-D8MTezlM.js";
8
- import mt from "./vue-ui-skeleton-DQqwDUqP.js";
9
- import { S as xt } from "./Slicer-Bwg4WzZf.js";
10
- import bt from "./vue-ui-accordion-CGpOsWNN.js";
11
- import { u as Fe } from "./useNestedProp-D9eTQKze.js";
12
- import { _ as kt } from "./PackageVersion-xnKIqody.js";
13
- import { P as wt } from "./PenAndPaper-iek0aH4r.js";
4
+ import { _ as ct } from "./Title-DLjHHdyq.js";
5
+ import { u as ht, U as pt } from "./usePrinter-CXc8xCKk.js";
6
+ import { _ as ft } from "./Tooltip-BDaa-67h.js";
7
+ import { D as gt } from "./DataTable-DgbrnD__.js";
8
+ import mt from "./vue-ui-skeleton-owIhXtQF.js";
9
+ import { S as xt } from "./Slicer-BXCORSCz.js";
10
+ import bt from "./vue-ui-accordion-CYLks1fW.js";
11
+ import { u as Fe } from "./useNestedProp-D1eJ0dvv.js";
12
+ import { _ as kt } from "./PackageVersion-S3SzpuwC.js";
13
+ import { P as wt } from "./PenAndPaper-v846FwcH.js";
14
14
  import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const _t = ["id"], zt = ["xmlns", "viewBox"], St = { key: 0 }, Nt = ["id"], At = ["stop-color"], Tt = ["stop-color"], It = ["stop-color"], Ft = ["id"], Lt = ["stop-color"], Ot = ["stop-color"], Rt = ["stop-color"], Vt = { key: 0 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["x", "y", "font-size", "fill", "font-weight"], Dt = { key: 2 }, Wt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = { key: 0 }, jt = ["cx", "cy", "r", "fill"], Ht = ["cx", "cy", "r", "fill"], Yt = { key: 1 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x", "y", "height", "width", "fill", "rx"], Qt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Zt = ["x", "y", "height", "width", "fill", "onMouseover"], el = {