vue-data-ui 2.3.4 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +19 -15
  2. package/dist/{Arrow-C5yj6zwY.cjs → Arrow-BSOdhAJO.cjs} +1 -1
  3. package/dist/{Arrow-B6gJebT9.js → Arrow-BjDVSrfA.js} +1 -1
  4. package/dist/{BaseIcon-JtWoVorZ.cjs → BaseIcon-BoKtpbrI.cjs} +1 -1
  5. package/dist/{BaseIcon-7_g11dRj.js → BaseIcon-vmmfWlyR.js} +1 -1
  6. package/dist/{DataTable-CwaOlAsy.js → DataTable-CaB7GIwQ.js} +2 -2
  7. package/dist/{DataTable-Rm9II-m2.cjs → DataTable-ssrNbONo.cjs} +1 -1
  8. package/dist/{Legend-CxvJTjEm.js → Legend-DHpoRTAE.js} +1 -1
  9. package/dist/{Legend-D59FIuMs.cjs → Legend-Dl5IYoxK.cjs} +1 -1
  10. package/dist/{Shape-CjLV0scA.js → Shape-CQT4S7N-.js} +1 -1
  11. package/dist/{Shape-CVItL3vh.cjs → Shape-CaF4pvOn.cjs} +1 -1
  12. package/dist/{Slicer-Bxg5niHl.js → Slicer-Bdb1BlrC.js} +1 -1
  13. package/dist/{Slicer-Cdss5Rus.cjs → Slicer-QC8nTm24.cjs} +1 -1
  14. package/dist/{Title-2iks1ziC.js → Title-BNPZwnkp.js} +1 -1
  15. package/dist/{Title-Bb-A5OSV.cjs → Title-Cj_xubjI.cjs} +1 -1
  16. package/dist/{Tooltip-C_UE6y-E.cjs → Tooltip-CdJ5hegk.cjs} +1 -1
  17. package/dist/{Tooltip-C3phqKuU.js → Tooltip-ZnJAz6dl.js} +1 -1
  18. package/dist/documentation/installation.md +14 -13
  19. package/dist/{index-uOtklCCx.js → index-BMCvLyab.js} +555 -454
  20. package/dist/index-BkomIE9L.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +105 -5
  23. package/dist/types/vue-data-ui.d.ts +105 -5
  24. package/dist/{useNestedProp-2kIU-7On.cjs → useNestedProp-BMxXyPbW.cjs} +1 -1
  25. package/dist/{useNestedProp-BgWkUab_.js → useNestedProp-CkP8xhG_.js} +1 -1
  26. package/dist/usePrinter-BuuBz5JR.js +513 -0
  27. package/dist/usePrinter-r6uHYEcR.cjs +1 -0
  28. package/dist/vue-data-ui-Bc5U1cOP.cjs +9 -0
  29. package/dist/vue-data-ui-DxeO0iaC.js +254 -0
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +55 -54
  32. package/dist/{vue-ui-3d-bar-BKMPFDi2.js → vue-ui-3d-bar-32wM0tiX.js} +7 -7
  33. package/dist/{vue-ui-3d-bar-CKa4UXq4.cjs → vue-ui-3d-bar-CgB0fLQT.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-HJPf7My0.js → vue-ui-accordion-CLlVxx3Q.js} +3 -3
  35. package/dist/{vue-ui-accordion-C_pwrAJl.cjs → vue-ui-accordion-SXsobrUt.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-DB_CL-gu.js → vue-ui-age-pyramid-D_CY99xF.js} +8 -8
  37. package/dist/{vue-ui-age-pyramid-CE1xnA-8.cjs → vue-ui-age-pyramid-DqiwcOIr.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-DQsAL-nZ.js → vue-ui-annotator-DvP-IxDm.js} +1 -1
  39. package/dist/{vue-ui-annotator-BAMZcPlH.cjs → vue-ui-annotator-mntqd3q_.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-DCl8fpNu.js → vue-ui-candlestick-C-5u3i-1.js} +9 -9
  41. package/dist/{vue-ui-candlestick-Duv6oG79.cjs → vue-ui-candlestick-C_TvUQvH.cjs} +1 -1
  42. package/dist/vue-ui-carousel-table-BCePqkuz.cjs +1 -0
  43. package/dist/vue-ui-carousel-table-CAqhsLVx.js +304 -0
  44. package/dist/{vue-ui-chestnut-mIZ4-ZEM.cjs → vue-ui-chestnut-DhWlw2MD.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-BYHA6MT4.js → vue-ui-chestnut-DylSfYMB.js} +6 -6
  46. package/dist/{vue-ui-cursor-De7dy4Mo.cjs → vue-ui-cursor-B04HJQVl.cjs} +1 -1
  47. package/dist/{vue-ui-cursor-C96IChA3.js → vue-ui-cursor-DTYEMgbU.js} +2 -2
  48. package/dist/{vue-ui-dashboard-B2Yz41yO.js → vue-ui-dashboard-Bd0-cmSZ.js} +2 -2
  49. package/dist/{vue-ui-dashboard-BMGwKr0K.cjs → vue-ui-dashboard-DFIYwP1s.cjs} +1 -1
  50. package/dist/{vue-ui-digits-BnxLp7zQ.js → vue-ui-digits-CW5qNMIk.js} +2 -2
  51. package/dist/{vue-ui-digits-DSWyL-5K.cjs → vue-ui-digits-Ced5mBJZ.cjs} +1 -1
  52. package/dist/{vue-ui-donut-1kei9ws5.cjs → vue-ui-donut-DIhhgvWp.cjs} +1 -1
  53. package/dist/{vue-ui-donut-B9iXisHK.js → vue-ui-donut-EeVmrVJs.js} +9 -9
  54. package/dist/{vue-ui-donut-evolution-B7Sun8sw.js → vue-ui-donut-evolution-BN08Y2hy.js} +9 -9
  55. package/dist/{vue-ui-donut-evolution-yv17DnGy.cjs → vue-ui-donut-evolution-Ct6KAzs-.cjs} +1 -1
  56. package/dist/{vue-ui-dumbbell-DIsDnD1d.js → vue-ui-dumbbell-BMlxS1Nq.js} +8 -8
  57. package/dist/{vue-ui-dumbbell-BJEf_JEq.cjs → vue-ui-dumbbell-pextarqH.cjs} +1 -1
  58. package/dist/{vue-ui-flow-DOxJa8di.cjs → vue-ui-flow-BXVsbmyb.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BTivYoGd.js → vue-ui-flow-CHmkgfyb.js} +7 -7
  60. package/dist/{vue-ui-galaxy-CHGOwCwM.cjs → vue-ui-galaxy-D4xyd-J1.cjs} +1 -1
  61. package/dist/{vue-ui-galaxy-BEmywfFB.js → vue-ui-galaxy-kiVOZOBz.js} +9 -9
  62. package/dist/{vue-ui-gauge-o4rDOqF3.js → vue-ui-gauge-BcO-z97J.js} +4 -4
  63. package/dist/{vue-ui-gauge-QAfMl-8t.cjs → vue-ui-gauge-DPFBsbFj.cjs} +1 -1
  64. package/dist/{vue-ui-heatmap-BS4EzedX.cjs → vue-ui-heatmap-DBOKYaJz.cjs} +1 -1
  65. package/dist/{vue-ui-heatmap-DwqQqEsk.js → vue-ui-heatmap-DD-Bzddj.js} +8 -8
  66. package/dist/{vue-ui-kpi-F4qkJ_U-.cjs → vue-ui-kpi-BEgf5yDv.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-h8elYTcA.js → vue-ui-kpi-BS0o7zb9.js} +2 -2
  68. package/dist/{vue-ui-mini-loader-C_8B2Pm6.cjs → vue-ui-mini-loader-Bm5EJxtG.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-Cgoi9rhH.js → vue-ui-mini-loader-DJEvG6ju.js} +2 -2
  70. package/dist/{vue-ui-molecule-Bmv76SWz.js → vue-ui-molecule-DdwnFEBJ.js} +9 -9
  71. package/dist/{vue-ui-molecule-C5CY_YYc.cjs → vue-ui-molecule-DzUqcaxd.cjs} +1 -1
  72. package/dist/{vue-ui-mood-radar-DeMouUIe.js → vue-ui-mood-radar-B9Gczs_Z.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-BN0dzlfp.cjs → vue-ui-mood-radar-DbB7m4Ku.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts-ZyFoV-Zn.cjs → vue-ui-nested-donuts-BSINf8hd.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-wOUkSVyZ.js → vue-ui-nested-donuts-CVQ1CaXo.js} +9 -9
  76. package/dist/{vue-ui-onion-VmTUo7TR.cjs → vue-ui-onion-D3-6Tv4u.cjs} +1 -1
  77. package/dist/{vue-ui-onion-DCOKG2wG.js → vue-ui-onion-Ut75t7hB.js} +9 -9
  78. package/dist/{vue-ui-parallel-coordinate-plot-BGtO2P4a.js → vue-ui-parallel-coordinate-plot-Bjo09ZTX.js} +10 -10
  79. package/dist/{vue-ui-parallel-coordinate-plot-BziXRF8E.cjs → vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs} +1 -1
  80. package/dist/{vue-ui-quadrant-DawUUrur.cjs → vue-ui-quadrant-CzCvejGn.cjs} +1 -1
  81. package/dist/{vue-ui-quadrant--JOTjPZh.js → vue-ui-quadrant-Du9PKvlO.js} +10 -10
  82. package/dist/{vue-ui-quick-chart-jFlFtiNV.cjs → vue-ui-quick-chart-BsxsPbjz.cjs} +1 -1
  83. package/dist/{vue-ui-quick-chart-LXKfaJgS.js → vue-ui-quick-chart-u0cPmD3q.js} +6 -6
  84. package/dist/{vue-ui-radar-CWNIqvcA.js → vue-ui-radar-CBrpuE5r.js} +10 -10
  85. package/dist/{vue-ui-radar-VGH-lhaT.cjs → vue-ui-radar-DIpCrj1h.cjs} +1 -1
  86. package/dist/{vue-ui-rating-BNrIoJHN.js → vue-ui-rating-CaeGGlCw.js} +2 -2
  87. package/dist/{vue-ui-rating-Dtu6pwGx.cjs → vue-ui-rating-D8fJC8Yt.cjs} +1 -1
  88. package/dist/{vue-ui-relation-circle-B3NKudOy.js → vue-ui-relation-circle-5DNf880s.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-Dwpx9o18.cjs → vue-ui-relation-circle-Ky3nPk6S.cjs} +1 -1
  90. package/dist/{vue-ui-rings-D9_OG--0.cjs → vue-ui-rings-CffZ4T2S.cjs} +1 -1
  91. package/dist/{vue-ui-rings-CsUngX_F.js → vue-ui-rings-IE3IdNRF.js} +9 -9
  92. package/dist/{vue-ui-scatter-DgxTz4Jx.js → vue-ui-scatter-C4GCZm0V.js} +10 -10
  93. package/dist/{vue-ui-scatter-DUsuh7bd.cjs → vue-ui-scatter-TsX5dW9l.cjs} +1 -1
  94. package/dist/{vue-ui-screenshot-51H_VrYY.js → vue-ui-screenshot-Bl3oooKI.js} +1 -1
  95. package/dist/{vue-ui-screenshot-C2Dz7CAe.cjs → vue-ui-screenshot-Bzpg6yof.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-BM9rwmxY.js → vue-ui-skeleton-BisWX1sO.js} +2 -2
  97. package/dist/{vue-ui-skeleton-sjfOtCZr.cjs → vue-ui-skeleton-JmGp11-u.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-DNnBtHht.cjs → vue-ui-smiley-BhSrt9f-.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-H5rSN-1B.js → vue-ui-smiley-Sth2pqG1.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-R4JJvfry.cjs → vue-ui-spark-trend-C8NSz4l8.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-CLXZDYlk.js → vue-ui-spark-trend-DAqO0TW2.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-C0k4ah-7.js → vue-ui-sparkbar-B0zX7NU7.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-CEUDIw0A.cjs → vue-ui-sparkbar-hL1Q6ObK.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-BHj00A07.js → vue-ui-sparkgauge-CWR8zJnU.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-CaEw6nmI.cjs → vue-ui-sparkgauge-tbVqaLCK.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-B6GuavEu.cjs → vue-ui-sparkhistogram-Dv-lml4g.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-DbMLYKqE.js → vue-ui-sparkhistogram-DxqCtDpw.js} +4 -4
  108. package/dist/{vue-ui-sparkline-CJydanLS.cjs → vue-ui-sparkline-B6pvaBY_.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-CYova9x3.js → vue-ui-sparkline-BpL1jn7F.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-N5rVBM2h.js → vue-ui-sparkstackbar-BzbuBNIV.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-Df__yM5b.cjs → vue-ui-sparkstackbar-CQ2TEi4p.cjs} +1 -1
  112. package/dist/{vue-ui-strip-plot-b5lhB35d.cjs → vue-ui-strip-plot-DCC6F4VM.cjs} +1 -1
  113. package/dist/{vue-ui-strip-plot-DJJ1vEWz.js → vue-ui-strip-plot-DCcbD6UE.js} +9 -9
  114. package/dist/{vue-ui-table-xSvwJIa7.js → vue-ui-table-CFqIWfxl.js} +1 -1
  115. package/dist/{vue-ui-table-NHhOVDbs.cjs → vue-ui-table-CseaFWgX.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-DlL2nCqz.cjs → vue-ui-table-heatmap-Bwut-V1D.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-Cro2etCY.js → vue-ui-table-heatmap-Bz8KYDxr.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-Bw2Gc_ur.cjs → vue-ui-table-sparkline-CJBU3y8-.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-DppMitqF.js → vue-ui-table-sparkline-z29ND2lq.js} +5 -5
  120. package/dist/{vue-ui-thermometer-M2kdp1x5.js → vue-ui-thermometer-BNAITzJa.js} +5 -5
  121. package/dist/{vue-ui-thermometer-Q_3PX2V3.cjs → vue-ui-thermometer-DM2IKhqN.cjs} +1 -1
  122. package/dist/{vue-ui-timer-BtSDeIRp.cjs → vue-ui-timer-DLfXuW8T.cjs} +1 -1
  123. package/dist/{vue-ui-timer-CAaQ-QD6.js → vue-ui-timer-DV6lQVHU.js} +4 -4
  124. package/dist/{vue-ui-tiremarks-CbGOSEvD.cjs → vue-ui-tiremarks-B1bd1jPf.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-JFv4JLP0.js → vue-ui-tiremarks-WyQPg7yo.js} +5 -5
  126. package/dist/{vue-ui-treemap-BqDX-bPf.cjs → vue-ui-treemap-BZGmoDHb.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-DCnv-xYr.js → vue-ui-treemap-DKmBhzV-.js} +9 -9
  128. package/dist/{vue-ui-vertical-bar-CJB_KXyr.cjs → vue-ui-vertical-bar-Bi-0rRN3.cjs} +1 -1
  129. package/dist/{vue-ui-vertical-bar-CEbApJZl.js → vue-ui-vertical-bar-C-ySfrhJ.js} +9 -9
  130. package/dist/{vue-ui-waffle-CTS6C7gu.js → vue-ui-waffle-CGRWu-da.js} +9 -9
  131. package/dist/{vue-ui-waffle-IMEbGe-b.cjs → vue-ui-waffle-VLYkR-YZ.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-CuOmEWMQ.cjs → vue-ui-wheel-D2q5vy5V.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-_zyCdFiI.js → vue-ui-wheel-Pj9OPk9f.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-RDlXBEAN.js → vue-ui-word-cloud-8Vr-jo1p.js} +6 -6
  135. package/dist/{vue-ui-word-cloud-Y7Yk7uUJ.cjs → vue-ui-word-cloud-Ba4BjatU.cjs} +1 -1
  136. package/dist/{vue-ui-xy-BZJQBKnU.cjs → vue-ui-xy-C4QW5Lfl.cjs} +1 -1
  137. package/dist/{vue-ui-xy-canvas-D_dnbyFS.cjs → vue-ui-xy-canvas-Be-Da_0x.cjs} +1 -1
  138. package/dist/{vue-ui-xy-canvas-Dbcw8-9Q.js → vue-ui-xy-canvas-DnLWrf0e.js} +10 -10
  139. package/dist/{vue-ui-xy-DsvN9EIQ.js → vue-ui-xy-qToggEfh.js} +12 -12
  140. package/package.json +1 -1
  141. package/dist/index-p5gfZSvB.cjs +0 -4
  142. package/dist/usePrinter-B6xQCyL-.js +0 -464
  143. package/dist/usePrinter-fZlsJid8.cjs +0 -1
  144. package/dist/vue-data-ui-Be0rgmbA.cjs +0 -9
  145. package/dist/vue-data-ui-Ccy6rBZN.js +0 -246
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-p5gfZSvB.cjs"),F=require("./useResponsive-B3TrDDIG.cjs"),j=require("./Title-Bb-A5OSV.cjs"),P=require("./usePrinter-fZlsJid8.cjs"),Y=require("./Tooltip-C_UE6y-E.cjs"),J=require("./DataTable-Rm9II-m2.cjs"),K=require("./vue-ui-skeleton-sjfOtCZr.cjs"),Q=require("./vue-ui-accordion-C_pwrAJl.cjs"),I=require("./useNestedProp-2kIU-7On.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te=["xmlns","viewBox"],le=["id"],oe=["stop-color"],ae=["stop-color"],ie=["id"],re=["stop-color"],se=["stop-color"],ue=["x","y","width","height","fill","rx"],ne=["x","y","width","height","fill","rx"],de=["x","y","width","height","fill","rx"],ve=["x","y","width","height","fill","rx"],ce={key:0},ye=["x","y","fill","font-size","font-weight"],he=["x","y","fill","font-size","font-weight"],fe={key:1},ge=["x","y","font-size","fill","font-weight"],pe={key:2},be={key:0},me=["x1","x2","y1","y2","stroke","stroke-width"],xe=["x1","x2","y1","y2","stroke","stroke-width"],ke=["x1","x2","y1","y2","stroke","stroke-width"],we=["x","y","font-size","fill","font-weight"],Ce=["x1","x2","y1","y2","stroke","stroke-width"],_e=["x","y","font-size","fill","font-weight"],Se=["x","y","font-size","fill","font-weight"],Te=["x","y","width","height","fill","onMouseover"],$e={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(S,{expose:M}){const d=S,{vue_ui_age_pyramid:O}=u.useConfig(),m=t.computed(()=>!!d.dataset&&d.dataset.length),v=t.ref(u.createUid()),R=t.ref(null),w=t.ref(!1),C=t.ref(""),x=t.ref(null),T=t.ref(0),g=t.ref(null),$=t.ref(null),e=t.computed(()=>{const l=I.useNestedProp({userConfig:d.config,defaultConfig:O});return l.theme?{...I.useNestedProp({userConfig:u.themes.vue_ui_age_pyramid[l.theme]||d.config,defaultConfig:l})}:l}),L=t.ref(null);t.onMounted(()=>{if(u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiAgePyramid",type:"dataset"}),e.value.responsive){const l=F.throttle(()=>{const{width:r,height:o}=F.useResponsive({chart:g.value,title:e.value.style.title.text?$.value:null});n.value.width=r,n.value.height=o});L.value=new ResizeObserver(l),L.value.observe(g.value.parentNode)}});const{isPrinting:D,isImaging:q,generatePdf:N,generateImage:B}=P.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:e.value.style.title.text||"vue-ui-age-pyramid"}),c=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),n=t.ref({height:e.value.style.height,width:e.value.style.width}),i=t.computed(()=>{const l=n.value.width-e.value.style.layout.padding.right-e.value.style.layout.padding.left,r=e.value.style.layout.padding.left,o=n.value.width-e.value.style.layout.padding.right;return{top:e.value.style.layout.padding.top,left:r,right:o,bottom:n.value.height-e.value.style.layout.padding.bottom,width:l,height:n.value.height-e.value.style.layout.padding.top-e.value.style.layout.padding.bottom,centerX:e.value.style.layout.padding.left+l/2,leftChart:{width:l/2-e.value.style.layout.centerSlit.width,right:r+l/2-e.value.style.layout.centerSlit.width},rightChart:{width:l/2-e.value.style.layout.centerSlit.width,left:r+l/2+e.value.style.layout.centerSlit.width}}}),G=t.computed(()=>d.dataset.map(l=>e.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=t.computed(()=>{const l=U(p.value/5),r=[],o=[];for(let a=0;a<=5;a+=1){const s=l*a,A=l*(a-5);r.push({value:s,x:i.value.left+i.value.width/2+e.value.style.layout.centerSlit.width+s/p.value*i.value.leftChart.width}),o.push({value:Math.abs(A),x:i.value.left+i.value.width/2+A/p.value*i.value.leftChart.width-e.value.style.layout.centerSlit.width})}return{right:r,left:o}});function U(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 p=t.computed(()=>Math.max(...d.dataset.flatMap(l=>l.slice(-2)))),h=t.computed(()=>d.dataset.length),W=t.computed(()=>d.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/p.value},right:{value:l[3],proportionToMax:l[3]/p.value}}))),f=t.computed(()=>W.value.map((l,r)=>{const o=i.value.top+i.value.height/h.value*r,a=i.value.height/h.value-e.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:e.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:l.left.proportionToMax*i.value.leftChart.width,height:a},right:{...l.right,y:o,color:e.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:l.right.proportionToMax*i.value.rightChart.width,height:a}}})),_=t.ref(null);function H(l,r){x.value=l,_.value={datapoint:r,seriesIndex:l,series:f.value,config:e.value};const o=e.value.style.tooltip.customFormat;if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value})))C.value=o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value});else{let a="";const s=f.value[l];a+=`<div><b>${s.segment}</b></div>`,a+=`<div>${e.value.translations.age}: ${s.age}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${s.left.value.toLocaleString()}</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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${s.right.value.toLocaleString()}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${(s.left.value+s.right.value).toLocaleString()}</b></div></div>`,a+="</div>",C.value=`<div>${a}</div>`}w.value=!0}function E(){t.nextTick(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(s=>[s[0],s[1],s[2],s[3],s[2]+s[3]]),o=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),a=u.createCsvContent(o);u.downloadCsv({csvContent:a,title:e.value.style.title.text||"vue-ui-heatmap"})})}const k=t.computed(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint};return{head:l,body:r,config:o,colNames:l}}),b=t.ref(!1);function X(l){b.value=l,T.value+=1}function z(){c.value.showTable=!c.value.showTable}function V(){c.value.showTooltip=!c.value.showTooltip}return M({generatePdf:N,generateCsv:E,generateImage:B,toggleTable:z,toggleTooltip:V}),(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.value}`,style:t.normalizeStyle(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive?"height:100%":""}`)},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:$,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(j._sfc_main,{config:{title:{cy:"pyramid-div-title",...e.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&m.value?(t.openBlock(),t.createBlock(P.UserOptions,{ref_key:"details",ref:R,key:`user_options_${T.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(q),isPrinting:t.unref(D),uid:v.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasXls:e.value.userOptions.buttons.csv,hasImg:e.value.userOptions.buttons.img,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:c.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:t.unref(N),onGenerateCsv:E,onGenerateImage:t.unref(B),onToggleTable:z,onToggleTooltip:V},t.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(u.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.bars.left.color},null,8,oe),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(u.shiftHue)(e.value.style.layout.bars.left.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(u.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,ae)],8,le),t.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${t.unref(u.shiftHue)(e.value.style.layout.bars.right.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(u.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,re),t.createElementVNode("stop",{offset:"100%","stop-color":e.value.style.layout.bars.right.color},null,8,se)],8,ie)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(o,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.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:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,ue),t.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:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:e.value.style.layout.bars.borderRadius},null,8,ne),t.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:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,de),t.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:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:e.value.style.layout.bars.borderRadius},null,8,ve)]))),256)),t.createElementVNode("g",null,[e.value.style.layout.dataLabels.sideTitles.show?(t.openBlock(),t.createElementBlock("g",ce,[t.createElementVNode("text",{x:i.value.left,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.left.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.female),9,ye),t.createElementVNode("text",{x:i.value.right,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.right.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.male),9,he)])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.yAxis.show?(t.openBlock(),t.createElementBlock("g",fe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[a%e.value.style.layout.dataLabels.yAxis.showEvery===0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/h.value*a+e.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":e.value.style.layout.dataLabels.yAxis.fontSize,fill:e.value.style.layout.dataLabels.yAxis.color,"font-weight":e.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},t.toDisplayString(o),9,ge)):t.createCommentVNode("",!0)],64))),256))])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.xAxis.show?(t.openBlock(),t.createElementBlock("g",pe,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",be,[t.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,me),t.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xe)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.right,o=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ke)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:o.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(Number((o.value/e.value.style.layout.dataLabels.xAxis.scale).toFixed(0)).toLocaleString()),9,we)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.left,o=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ce)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:o.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(Number((o.value/e.value.style.layout.dataLabels.xAxis.scale).toFixed(0)).toLocaleString()),9,_e)]))),256)),t.createElementVNode("text",{x:i.value.right,y:n.value.height,"text-anchor":"end","font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.dataLabels.xAxis.translation),9,Se)])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.dataset,(o,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/h.value*a-e.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/h.value<=0?1e-4:i.value.height/h.value,fill:x.value!==null&&x.value===a?`${e.value.style.highlighter.color}${t.unref(u.opacity)[e.value.style.highlighter.opacity]}`:"transparent",onMouseover:s=>H(a,o),onMouseleave:r[0]||(r[0]=s=>{x.value=null,w.value=!1})},null,40,Te)]))),256)),t.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,te)):t.createCommentVNode("",!0),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(K.default,{key:3,config:{type:"pyramid",style:{backgroundColor:e.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),t.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),t.createVNode(Y._sfc_main,{show:c.value.showTooltip&&w.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,parent:g.value,content:C.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),m.value?(t.openBlock(),t.createBlock(Q.default,{key:4,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(J.DataTable,{colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=o=>c.value.showTable=!1)},{th:t.withCtx(({th:o})=>[t.createTextVNode(t.toDisplayString(o),1)]),td:t.withCtx(({td:o})=>[t.createTextVNode(t.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ee))}},Le=Z._export_sfc($e,[["__scopeId","data-v-44b2f1f2"]]);exports.default=Le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-BkomIE9L.cjs"),F=require("./useResponsive-B3TrDDIG.cjs"),j=require("./Title-Cj_xubjI.cjs"),P=require("./usePrinter-r6uHYEcR.cjs"),Y=require("./Tooltip-CdJ5hegk.cjs"),J=require("./DataTable-ssrNbONo.cjs"),K=require("./vue-ui-skeleton-JmGp11-u.cjs"),Q=require("./vue-ui-accordion-SXsobrUt.cjs"),I=require("./useNestedProp-BMxXyPbW.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te=["xmlns","viewBox"],le=["id"],oe=["stop-color"],ae=["stop-color"],ie=["id"],re=["stop-color"],se=["stop-color"],ue=["x","y","width","height","fill","rx"],ne=["x","y","width","height","fill","rx"],de=["x","y","width","height","fill","rx"],ve=["x","y","width","height","fill","rx"],ce={key:0},ye=["x","y","fill","font-size","font-weight"],he=["x","y","fill","font-size","font-weight"],fe={key:1},ge=["x","y","font-size","fill","font-weight"],pe={key:2},be={key:0},me=["x1","x2","y1","y2","stroke","stroke-width"],xe=["x1","x2","y1","y2","stroke","stroke-width"],ke=["x1","x2","y1","y2","stroke","stroke-width"],we=["x","y","font-size","fill","font-weight"],Ce=["x1","x2","y1","y2","stroke","stroke-width"],_e=["x","y","font-size","fill","font-weight"],Se=["x","y","font-size","fill","font-weight"],Te=["x","y","width","height","fill","onMouseover"],$e={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(S,{expose:M}){const d=S,{vue_ui_age_pyramid:O}=u.useConfig(),m=t.computed(()=>!!d.dataset&&d.dataset.length),v=t.ref(u.createUid()),R=t.ref(null),w=t.ref(!1),C=t.ref(""),x=t.ref(null),T=t.ref(0),g=t.ref(null),$=t.ref(null),e=t.computed(()=>{const l=I.useNestedProp({userConfig:d.config,defaultConfig:O});return l.theme?{...I.useNestedProp({userConfig:u.themes.vue_ui_age_pyramid[l.theme]||d.config,defaultConfig:l})}:l}),L=t.ref(null);t.onMounted(()=>{if(u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiAgePyramid",type:"dataset"}),e.value.responsive){const l=F.throttle(()=>{const{width:r,height:o}=F.useResponsive({chart:g.value,title:e.value.style.title.text?$.value:null});n.value.width=r,n.value.height=o});L.value=new ResizeObserver(l),L.value.observe(g.value.parentNode)}});const{isPrinting:D,isImaging:q,generatePdf:N,generateImage:B}=P.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:e.value.style.title.text||"vue-ui-age-pyramid"}),c=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),n=t.ref({height:e.value.style.height,width:e.value.style.width}),i=t.computed(()=>{const l=n.value.width-e.value.style.layout.padding.right-e.value.style.layout.padding.left,r=e.value.style.layout.padding.left,o=n.value.width-e.value.style.layout.padding.right;return{top:e.value.style.layout.padding.top,left:r,right:o,bottom:n.value.height-e.value.style.layout.padding.bottom,width:l,height:n.value.height-e.value.style.layout.padding.top-e.value.style.layout.padding.bottom,centerX:e.value.style.layout.padding.left+l/2,leftChart:{width:l/2-e.value.style.layout.centerSlit.width,right:r+l/2-e.value.style.layout.centerSlit.width},rightChart:{width:l/2-e.value.style.layout.centerSlit.width,left:r+l/2+e.value.style.layout.centerSlit.width}}}),G=t.computed(()=>d.dataset.map(l=>e.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=t.computed(()=>{const l=U(p.value/5),r=[],o=[];for(let a=0;a<=5;a+=1){const s=l*a,A=l*(a-5);r.push({value:s,x:i.value.left+i.value.width/2+e.value.style.layout.centerSlit.width+s/p.value*i.value.leftChart.width}),o.push({value:Math.abs(A),x:i.value.left+i.value.width/2+A/p.value*i.value.leftChart.width-e.value.style.layout.centerSlit.width})}return{right:r,left:o}});function U(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 p=t.computed(()=>Math.max(...d.dataset.flatMap(l=>l.slice(-2)))),h=t.computed(()=>d.dataset.length),W=t.computed(()=>d.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/p.value},right:{value:l[3],proportionToMax:l[3]/p.value}}))),f=t.computed(()=>W.value.map((l,r)=>{const o=i.value.top+i.value.height/h.value*r,a=i.value.height/h.value-e.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:e.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:l.left.proportionToMax*i.value.leftChart.width,height:a},right:{...l.right,y:o,color:e.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:l.right.proportionToMax*i.value.rightChart.width,height:a}}})),_=t.ref(null);function H(l,r){x.value=l,_.value={datapoint:r,seriesIndex:l,series:f.value,config:e.value};const o=e.value.style.tooltip.customFormat;if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value})))C.value=o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value});else{let a="";const s=f.value[l];a+=`<div><b>${s.segment}</b></div>`,a+=`<div>${e.value.translations.age}: ${s.age}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${s.left.value.toLocaleString()}</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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${s.right.value.toLocaleString()}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${(s.left.value+s.right.value).toLocaleString()}</b></div></div>`,a+="</div>",C.value=`<div>${a}</div>`}w.value=!0}function E(){t.nextTick(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(s=>[s[0],s[1],s[2],s[3],s[2]+s[3]]),o=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),a=u.createCsvContent(o);u.downloadCsv({csvContent:a,title:e.value.style.title.text||"vue-ui-heatmap"})})}const k=t.computed(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint};return{head:l,body:r,config:o,colNames:l}}),b=t.ref(!1);function X(l){b.value=l,T.value+=1}function z(){c.value.showTable=!c.value.showTable}function V(){c.value.showTooltip=!c.value.showTooltip}return M({generatePdf:N,generateCsv:E,generateImage:B,toggleTable:z,toggleTooltip:V}),(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.value}`,style:t.normalizeStyle(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive?"height:100%":""}`)},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:$,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(j._sfc_main,{config:{title:{cy:"pyramid-div-title",...e.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&m.value?(t.openBlock(),t.createBlock(P.UserOptions,{ref_key:"details",ref:R,key:`user_options_${T.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(q),isPrinting:t.unref(D),uid:v.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasXls:e.value.userOptions.buttons.csv,hasImg:e.value.userOptions.buttons.img,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:c.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:t.unref(N),onGenerateCsv:E,onGenerateImage:t.unref(B),onToggleTable:z,onToggleTooltip:V},t.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(u.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.bars.left.color},null,8,oe),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(u.shiftHue)(e.value.style.layout.bars.left.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(u.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,ae)],8,le),t.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${t.unref(u.shiftHue)(e.value.style.layout.bars.right.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(u.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,re),t.createElementVNode("stop",{offset:"100%","stop-color":e.value.style.layout.bars.right.color},null,8,se)],8,ie)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(o,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.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:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,ue),t.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:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:e.value.style.layout.bars.borderRadius},null,8,ne),t.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:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,de),t.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:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:e.value.style.layout.bars.borderRadius},null,8,ve)]))),256)),t.createElementVNode("g",null,[e.value.style.layout.dataLabels.sideTitles.show?(t.openBlock(),t.createElementBlock("g",ce,[t.createElementVNode("text",{x:i.value.left,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.left.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.female),9,ye),t.createElementVNode("text",{x:i.value.right,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.right.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.male),9,he)])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.yAxis.show?(t.openBlock(),t.createElementBlock("g",fe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[a%e.value.style.layout.dataLabels.yAxis.showEvery===0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/h.value*a+e.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":e.value.style.layout.dataLabels.yAxis.fontSize,fill:e.value.style.layout.dataLabels.yAxis.color,"font-weight":e.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},t.toDisplayString(o),9,ge)):t.createCommentVNode("",!0)],64))),256))])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.xAxis.show?(t.openBlock(),t.createElementBlock("g",pe,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",be,[t.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,me),t.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xe)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.right,o=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ke)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:o.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(Number((o.value/e.value.style.layout.dataLabels.xAxis.scale).toFixed(0)).toLocaleString()),9,we)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.left,o=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ce)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:o.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(Number((o.value/e.value.style.layout.dataLabels.xAxis.scale).toFixed(0)).toLocaleString()),9,_e)]))),256)),t.createElementVNode("text",{x:i.value.right,y:n.value.height,"text-anchor":"end","font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.dataLabels.xAxis.translation),9,Se)])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.dataset,(o,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/h.value*a-e.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/h.value<=0?1e-4:i.value.height/h.value,fill:x.value!==null&&x.value===a?`${e.value.style.highlighter.color}${t.unref(u.opacity)[e.value.style.highlighter.opacity]}`:"transparent",onMouseover:s=>H(a,o),onMouseleave:r[0]||(r[0]=s=>{x.value=null,w.value=!1})},null,40,Te)]))),256)),t.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,te)):t.createCommentVNode("",!0),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(K.default,{key:3,config:{type:"pyramid",style:{backgroundColor:e.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),t.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),t.createVNode(Y._sfc_main,{show:c.value.showTooltip&&w.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,parent:g.value,content:C.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),m.value?(t.openBlock(),t.createBlock(Q.default,{key:4,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(J.DataTable,{colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=o=>c.value.showTable=!1)},{th:t.withCtx(({th:o})=>[t.createTextVNode(t.toDisplayString(o),1)]),td:t.withCtx(({td:o})=>[t.createTextVNode(t.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ee))}},Le=Z._export_sfc($e,[["__scopeId","data-v-44b2f1f2"]]);exports.default=Le;
@@ -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 { r as v, u as w, x as A, y as M } from "./index-uOtklCCx.js";
3
+ import { r as v, u as w, x as A, y as M } from "./index-BMCvLyab.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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./html2canvas.esm-BA_v9SIU.cjs"),b=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-p5gfZSvB.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={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 I=require("./html2canvas.esm-BA_v9SIU.cjs"),b=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-BkomIE9L.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={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,14 +1,14 @@
1
1
  import { computed as h, ref as v, onMounted as Ae, onBeforeUnmount as Fe, openBlock as u, createElementBlock as s, normalizeClass as ve, normalizeStyle as H, createVNode as q, createCommentVNode as y, createBlock as O, unref as x, createSlots as Le, withCtx as f, renderSlot as m, normalizeProps as P, guardReactiveProps as M, createElementVNode as n, Fragment as N, renderList as S, toDisplayString as F, createTextVNode as Re, nextTick as Ve } from "vue";
2
- import { u as Ie, c as Be, t as Oe, o as Pe, e as C, z as Me, X as Ue, s as U, A as Ee, r as We, v as De, w as Ge, n as Xe, q as je, B as ye } from "./index-uOtklCCx.js";
2
+ import { u as Ie, c as Be, t as Oe, o as Pe, e as C, z as Me, X as Ue, s as U, A as Ee, r as We, v as De, w as Ge, n as Xe, q as je, B as ye } from "./index-BMCvLyab.js";
3
3
  import { t as He, u as qe } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Ye } from "./Title-2iks1ziC.js";
5
- import { u as Je, U as Ke } from "./usePrinter-B6xQCyL-.js";
6
- import { _ as Qe } from "./Tooltip-C3phqKuU.js";
7
- import { D as Ze } from "./DataTable-CwaOlAsy.js";
8
- import et from "./vue-ui-skeleton-BM9rwmxY.js";
9
- import { S as tt } from "./Slicer-Bxg5niHl.js";
10
- import lt from "./vue-ui-accordion-HJPf7My0.js";
11
- import { u as ce } from "./useNestedProp-BgWkUab_.js";
4
+ import { _ as Ye } from "./Title-BNPZwnkp.js";
5
+ import { u as Je, U as Ke } from "./usePrinter-BuuBz5JR.js";
6
+ import { _ as Qe } from "./Tooltip-ZnJAz6dl.js";
7
+ import { D as Ze } from "./DataTable-CaB7GIwQ.js";
8
+ import et from "./vue-ui-skeleton-BisWX1sO.js";
9
+ import { S as tt } from "./Slicer-Bdb1BlrC.js";
10
+ import lt from "./vue-ui-accordion-CLlVxx3Q.js";
11
+ import { u as ce } from "./useNestedProp-CkP8xhG_.js";
12
12
  import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const at = ["id"], ut = ["xmlns", "viewBox"], st = { key: 0 }, it = ["id"], nt = ["stop-color"], rt = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ct = ["stop-color"], ht = ["stop-color"], pt = { key: 0 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bt = { key: 1 }, xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x", "y", "font-size", "fill", "font-weight"], kt = { key: 2 }, wt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = { key: 0 }, Ct = ["cx", "cy", "r", "fill"], Nt = ["cx", "cy", "r", "fill"], St = { key: 1 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x", "y", "height", "width", "fill", "rx"], Ft = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Lt = ["x", "y", "height", "width", "fill", "onMouseover"], Rt = ["innerHTML"], Vt = {
14
14
  __name: "vue-ui-candlestick",
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-p5gfZSvB.cjs"),X=require("./useResponsive-B3TrDDIG.cjs"),ye=require("./Title-Bb-A5OSV.cjs"),Y=require("./usePrinter-fZlsJid8.cjs"),he=require("./Tooltip-C_UE6y-E.cjs"),pe=require("./DataTable-Rm9II-m2.cjs"),ge=require("./vue-ui-skeleton-sjfOtCZr.cjs"),fe=require("./Slicer-Cdss5Rus.cjs"),me=require("./vue-ui-accordion-C_pwrAJl.cjs"),J=require("./useNestedProp-2kIU-7On.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],be=["xmlns","viewBox"],we={key:0},Ce=["id"],$e=["stop-color"],Ne=["stop-color"],_e=["stop-color"],Be=["id"],Se=["stop-color"],Ve=["stop-color"],Ee=["stop-color"],ze={key:0},Te=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Ae={key:1},Le=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x","y","font-size","fill","font-weight"],Pe={key:2},Ie=["transform","text-anchor","font-size","fill","font-weight"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Me={key:0},Ue=["cx","cy","r","fill"],De=["cx","cy","r","fill"],qe={key:1},We=["x1","x2","y1","y2","stroke","stroke-width"],Ge=["x1","x2","y1","y2","stroke","stroke-width"],He=["x","y","height","width","fill","rx"],je=["x","y","height","width","fill","rx","stroke","stroke-width"],Xe=["x","y","height","width","fill","onMouseover"],Ye=["innerHTML"],Je={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(g,{expose:K}){const h=g,{vue_ui_candlestick:Q}=i.useConfig(),m=t.computed(()=>!!h.dataset&&h.dataset.length),y=t.ref(i.createUid()),Z=t.ref(null),_=t.ref(!1),B=t.ref(""),S=t.ref(void 0),T=t.ref(0),F=t.ref(0),x=t.ref(null),A=t.ref(null),L=t.ref(null),R=t.ref(null),e=t.computed(()=>{const o=J.useNestedProp({userConfig:h.config,defaultConfig:Q});return o.theme?{...J.useNestedProp({userConfig:i.themes.vue_ui_candlestick[o.theme]||h.config,defaultConfig:o})}:o}),r=t.ref({height:e.value.style.height,width:e.value.style.width,xAxisFontSize:e.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:e.value.style.layout.grid.yAxis.dataLabels.fontSize}),b=t.ref(null);t.onMounted(()=>{if(i.objectIsEmpty(h.dataset)&&i.error({componentName:"VueUiCandlestick",type:"dataset"}),e.value.responsive){const o=X.throttle(()=>{const{width:u,height:l}=X.useResponsive({chart:x.value,title:e.value.style.title.text?A.value:null,slicer:R.value,legend:L.value});r.value.width=u,r.value.height=l,r.value.xAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),r.value.yAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});b.value=new ResizeObserver(o),b.value.observe(x.value.parentNode)}}),t.onBeforeUnmount(()=>{b.value&&b.value.disconnect()});const{isPrinting:ee,isImaging:te,generatePdf:P,generateImage:I}=Y.usePrinter({elementId:`vue-ui-candlestick_${y.value}`,fileName:e.value.style.title.text||"vue-ui-candlestick"}),p=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),s=t.computed(()=>{const{top:o,right:u,bottom:l,left:a}=e.value.style.layout.padding;return{top:o,right:r.value.width-u,left:a,bottom:r.value.height-l,width:r.value.width-a-u,height:r.value.height-o-l}}),V=t.computed(()=>h.dataset.length),d=t.ref({start:0,end:V.value}),O=t.computed(()=>h.dataset.slice(d.value.start,d.value.end)),E=t.computed(()=>(h.dataset.forEach((o,u)=>{[null,void 0].includes(o[0])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:u}),[null,void 0].includes(o[1])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:u}),[null,void 0].includes(o[2])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:u}),[null,void 0].includes(o[3])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:u}),[null,void 0].includes(o[4])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:u}),[null,void 0].includes(o[5])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:u})}),O.value.map(o=>({period:o[0],open:o[1],high:o[2],low:o[3],last:o[4],volume:o[5]})))),n=t.computed(()=>s.value.width/O.value.length),M=t.computed(()=>({max:Math.max(...E.value.map(o=>o.high)),min:0})),f=t.computed(()=>i.calculateNiceScale(M.value.min,M.value.max,e.value.style.layout.grid.yAxis.dataLabels.steps));function w(o,u){return{...o,x:s.value.left+u*n.value+n.value/2,y:s.value.top+(1-o/f.value.max)*s.value.height,value:o}}const c=t.computed(()=>E.value.map((o,u)=>{const l=w(o.open,u),a=w(o.high,u),v=w(o.low,u),$=w(o.last,u),N=o.last>o.open;return{period:o.period,open:l,high:a,low:v,last:$,volume:o.volume,isBullish:N}}));function le(o){return o/f.value.max}const oe=t.computed(()=>f.value.ticks.map(o=>({y:s.value.bottom-s.value.height*le(o),value:o}))),ae=t.computed(()=>E.value.map(o=>o.period)),z=t.ref(null);function ue(o,u){S.value=o,z.value={datapoint:u,seriesIndex:o,series:c.value,config:e.value};const l=e.value.style.tooltip.customFormat;if(i.isFunction(l)&&i.functionReturnsString(()=>l({seriesIndex:o,datapoint:u,series:c.value,config:e.value})))B.value=l({seriesIndex:o,datapoint:u,series:c.value,config:e.value});else if(e.value.style.tooltip.show){let a="";const{period:v,open:$,high:N,low:W,last:G,volume:H,isBullish:j}=c.value[o],{period:Qe,open:ne,high:re,low:de,last:ce,volume:ve}=e.value.translations;a+=`<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="${e.value.style.layout.candle.borderRadius*3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-BkomIE9L.cjs"),X=require("./useResponsive-B3TrDDIG.cjs"),ye=require("./Title-Cj_xubjI.cjs"),Y=require("./usePrinter-r6uHYEcR.cjs"),he=require("./Tooltip-CdJ5hegk.cjs"),pe=require("./DataTable-ssrNbONo.cjs"),ge=require("./vue-ui-skeleton-JmGp11-u.cjs"),fe=require("./Slicer-QC8nTm24.cjs"),me=require("./vue-ui-accordion-SXsobrUt.cjs"),J=require("./useNestedProp-BMxXyPbW.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],be=["xmlns","viewBox"],we={key:0},Ce=["id"],$e=["stop-color"],Ne=["stop-color"],_e=["stop-color"],Be=["id"],Se=["stop-color"],Ve=["stop-color"],Ee=["stop-color"],ze={key:0},Te=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Ae={key:1},Le=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x","y","font-size","fill","font-weight"],Pe={key:2},Ie=["transform","text-anchor","font-size","fill","font-weight"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Me={key:0},Ue=["cx","cy","r","fill"],De=["cx","cy","r","fill"],qe={key:1},We=["x1","x2","y1","y2","stroke","stroke-width"],Ge=["x1","x2","y1","y2","stroke","stroke-width"],He=["x","y","height","width","fill","rx"],je=["x","y","height","width","fill","rx","stroke","stroke-width"],Xe=["x","y","height","width","fill","onMouseover"],Ye=["innerHTML"],Je={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(g,{expose:K}){const h=g,{vue_ui_candlestick:Q}=i.useConfig(),m=t.computed(()=>!!h.dataset&&h.dataset.length),y=t.ref(i.createUid()),Z=t.ref(null),_=t.ref(!1),B=t.ref(""),S=t.ref(void 0),T=t.ref(0),F=t.ref(0),x=t.ref(null),A=t.ref(null),L=t.ref(null),R=t.ref(null),e=t.computed(()=>{const o=J.useNestedProp({userConfig:h.config,defaultConfig:Q});return o.theme?{...J.useNestedProp({userConfig:i.themes.vue_ui_candlestick[o.theme]||h.config,defaultConfig:o})}:o}),r=t.ref({height:e.value.style.height,width:e.value.style.width,xAxisFontSize:e.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:e.value.style.layout.grid.yAxis.dataLabels.fontSize}),b=t.ref(null);t.onMounted(()=>{if(i.objectIsEmpty(h.dataset)&&i.error({componentName:"VueUiCandlestick",type:"dataset"}),e.value.responsive){const o=X.throttle(()=>{const{width:u,height:l}=X.useResponsive({chart:x.value,title:e.value.style.title.text?A.value:null,slicer:R.value,legend:L.value});r.value.width=u,r.value.height=l,r.value.xAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),r.value.yAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});b.value=new ResizeObserver(o),b.value.observe(x.value.parentNode)}}),t.onBeforeUnmount(()=>{b.value&&b.value.disconnect()});const{isPrinting:ee,isImaging:te,generatePdf:P,generateImage:I}=Y.usePrinter({elementId:`vue-ui-candlestick_${y.value}`,fileName:e.value.style.title.text||"vue-ui-candlestick"}),p=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),s=t.computed(()=>{const{top:o,right:u,bottom:l,left:a}=e.value.style.layout.padding;return{top:o,right:r.value.width-u,left:a,bottom:r.value.height-l,width:r.value.width-a-u,height:r.value.height-o-l}}),V=t.computed(()=>h.dataset.length),d=t.ref({start:0,end:V.value}),O=t.computed(()=>h.dataset.slice(d.value.start,d.value.end)),E=t.computed(()=>(h.dataset.forEach((o,u)=>{[null,void 0].includes(o[0])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:u}),[null,void 0].includes(o[1])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:u}),[null,void 0].includes(o[2])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:u}),[null,void 0].includes(o[3])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:u}),[null,void 0].includes(o[4])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:u}),[null,void 0].includes(o[5])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:u})}),O.value.map(o=>({period:o[0],open:o[1],high:o[2],low:o[3],last:o[4],volume:o[5]})))),n=t.computed(()=>s.value.width/O.value.length),M=t.computed(()=>({max:Math.max(...E.value.map(o=>o.high)),min:0})),f=t.computed(()=>i.calculateNiceScale(M.value.min,M.value.max,e.value.style.layout.grid.yAxis.dataLabels.steps));function w(o,u){return{...o,x:s.value.left+u*n.value+n.value/2,y:s.value.top+(1-o/f.value.max)*s.value.height,value:o}}const c=t.computed(()=>E.value.map((o,u)=>{const l=w(o.open,u),a=w(o.high,u),v=w(o.low,u),$=w(o.last,u),N=o.last>o.open;return{period:o.period,open:l,high:a,low:v,last:$,volume:o.volume,isBullish:N}}));function le(o){return o/f.value.max}const oe=t.computed(()=>f.value.ticks.map(o=>({y:s.value.bottom-s.value.height*le(o),value:o}))),ae=t.computed(()=>E.value.map(o=>o.period)),z=t.ref(null);function ue(o,u){S.value=o,z.value={datapoint:u,seriesIndex:o,series:c.value,config:e.value};const l=e.value.style.tooltip.customFormat;if(i.isFunction(l)&&i.functionReturnsString(()=>l({seriesIndex:o,datapoint:u,series:c.value,config:e.value})))B.value=l({seriesIndex:o,datapoint:u,series:c.value,config:e.value});else if(e.value.style.tooltip.show){let a="";const{period:v,open:$,high:N,low:W,last:G,volume:H,isBullish:j}=c.value[o],{period:Qe,open:ne,high:re,low:de,last:ce,volume:ve}=e.value.translations;a+=`<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="${e.value.style.layout.candle.borderRadius*3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
2
2
  fill="${e.value.style.layout.candle.gradient.show?j?`url(#bullish_gradient_${y.value})`:`url(#bearish_gradient_${y.value})`:j?e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.colors.bearish}"/></svg>${v}</div>`,a+=`${ve} : <b>${isNaN(H)?"-":Number(H.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`,a+=`<div>${ne}: <b>${e.value.style.tooltip.prefix} ${isNaN($.value)?"-":Number($.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${re}: <b>${e.value.style.tooltip.prefix} ${isNaN(N.value)?"-":Number(N.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${de}: <b>${e.value.style.tooltip.prefix} ${isNaN(W.value)?"-":Number(W.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${ce}: <b>${e.value.style.tooltip.prefix} ${isNaN(G.value)?"-":Number(G.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+="</div>",B.value=`<div style="text-align:right">${a}</div>`}_.value=!0}function ie(){d.value={start:0,end:V.value},F.value+=1}function U(){t.nextTick(()=>{const o=[e.value.translations.period,e.value.translations.open,e.value.translations.high,e.value.translations.low,e.value.translations.last,e.value.translations.volume],u=c.value.map(v=>[v.period,v.open.value,v.high.value,v.low.value,v.last.value,v.volume]),l=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([o]).concat(u),a=i.createCsvContent(l);i.downloadCsv({csvContent:a,title:e.value.style.title.text||"vue-ui-candlestick"})})}const C=t.computed(()=>{const o=c.value.map(a=>[`<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="${e.value.style.layout.candle.borderRadius*3}" fill="${e.value.style.layout.candle.gradient.show?a.isBullish?`url(#bullish_gradient_${y.value}`:`url(#bearish_gradient_${y.value})`:a.isBullish?e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,`${e.value.table.td.prefix} ${isNaN(a.open.value)?"-":Number(a.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.high.value)?"-":Number(a.high.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.low.value)?"-":Number(a.low.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.last.value)?"-":Number(a.last.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${isNaN(a.volume)?"-":a.volume.toLocaleString()}`]),u={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint},l=[e.value.translations.period,e.value.translations.open,e.value.translations.high,e.value.translations.low,e.value.translations.last,e.value.translations.volume];return{head:l,body:o,config:u,colNames:l}}),k=t.ref(!1);function se(o){k.value=o,T.value+=1}function D(){p.value.showTable=!p.value.showTable}function q(){p.value.showTooltip=!p.value.showTooltip}return K({generatePdf:P,generateCsv:U,generateImage:I,toggleTable:D,toggleTooltip:q}),(o,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"candlestickChart",ref:x,class:t.normalizeClass(`vue-ui-candlestick ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${e.value.useCssAnimation?"":"vue-ui-dna"}`),style:t.normalizeStyle(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor}; ${e.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${y.value}`},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(ye._sfc_main,{config:{title:{cy:"candlestick-div-title",...e.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&m.value?(t.openBlock(),t.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${T.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(te),isPrinting:t.unref(ee),uid:y.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasImg:e.value.userOptions.buttons.img,hasXls:e.value.userOptions.buttons.csv,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:k.value,isTooltip:p.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:se,onGeneratePdf:t.unref(P),onGenerateCsv:U,onGenerateImage:t.unref(I),onToggleTable:D,onToggleTooltip:q},t.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[t.renderSlot(o.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(i.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[c.value.length>0?(t.openBlock(),t.createElementBlock("g",we,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`bearish_gradient_${y.value}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.candle.colors.bearish},null,8,$e),t.createElementVNode("stop",{offset:"50%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,Ne),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bearish,.05)}66`},null,8,_e)],8,Ce),t.createElementVNode("linearGradient",{id:`bullish_gradient_${y.value}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.candle.colors.bullish},null,8,Se),t.createElementVNode("stop",{offset:"50%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,Ve),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Ee)],8,Be)]),e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",ze,[t.createElementVNode("line",{x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Te),t.createElementVNode("line",{x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Fe)])):t.createCommentVNode("",!0),e.value.style.layout.grid.yAxis.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(oe.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[l.value>=f.value.min&&l.value<=f.value.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:s.value.left,x2:s.value.left-5,y1:l.y,y2:l.y,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Le)):t.createCommentVNode("",!0),l.value>=f.value.min&&l.value<=f.value.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.value.left-8+e.value.style.layout.grid.yAxis.dataLabels.offsetX,y:l.y+r.value.yAxisFontSize/3,"font-size":r.value.yAxisFontSize,"text-anchor":"end",fill:e.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":e.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+t.toDisplayString(t.unref(i.canShowValue)(l.value)?l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+t.toDisplayString(e.value.style.layout.grid.yAxis.dataLabels.suffix),9,Re)):t.createCommentVNode("",!0)]))),256))])):t.createCommentVNode("",!0),e.value.style.layout.grid.xAxis.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Pe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ae.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("text",{transform:`translate(${s.value.left+n.value*a+n.value/2}, ${s.value.bottom+r.value.xAxisFontSize*2+e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":e.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":e.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":r.value.xAxisFontSize,fill:e.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":e.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},t.toDisplayString(l),9,Ie)]))),256))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:l.open.x,x2:l.open.x,y1:l.high.y,y2:l.low.y,stroke:e.value.style.layout.wick.stroke,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,Oe),e.value.style.layout.wick.extremity.shape==="circle"?(t.openBlock(),t.createElementBlock("g",Me,[t.createElementVNode("circle",{cx:l.high.x,cy:l.high.y,r:e.value.style.layout.wick.extremity.size==="auto"?n.value/20:e.value.style.layout.wick.extremity.size,fill:e.value.style.layout.wick.extremity.color},null,8,Ue),t.createElementVNode("circle",{cx:l.low.x,cy:l.low.y,r:e.value.style.layout.wick.extremity.size==="auto"?n.value/20:e.value.style.layout.wick.extremity.size,fill:e.value.style.layout.wick.extremity.color},null,8,De)])):t.createCommentVNode("",!0),e.value.style.layout.wick.extremity.shape==="line"?(t.openBlock(),t.createElementBlock("g",qe,[t.createElementVNode("line",{x1:l.high.x-(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,x2:l.high.x+(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,y1:l.high.y,y2:l.high.y,stroke:e.value.style.layout.wick.extremity.color,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,We),t.createElementVNode("line",{x1:l.low.x-(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,x2:l.low.x+(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,y1:l.low.y,y2:l.low.y,stroke:e.value.style.layout.wick.extremity.color,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,Ge)])):t.createCommentVNode("",!0)]))),256))]),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:l.open.x-n.value/2+n.value*(1-e.value.style.layout.candle.widthRatio)/2,y:l.isBullish?l.last.y:l.open.y,height:Math.abs(l.last.y-l.open.y)<=0?1e-4:Math.abs(l.last.y-l.open.y),width:n.value*e.value.style.layout.candle.widthRatio<=0?1e-4:n.value*e.value.style.layout.candle.widthRatio,fill:e.value.style.layout.candle.gradient.underlayer,rx:e.value.style.layout.candle.borderRadius,stroke:"none"},null,8,He))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:l.open.x-n.value/2+n.value*(1-e.value.style.layout.candle.widthRatio)/2,y:l.isBullish?l.last.y:l.open.y,height:Math.abs(l.last.y-l.open.y)<=0?1e-4:Math.abs(l.last.y-l.open.y),width:n.value*e.value.style.layout.candle.widthRatio<=0?1e-4:n.value*e.value.style.layout.candle.widthRatio,fill:l.isBullish?e.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${y.value})`:e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${y.value})`:e.value.style.layout.candle.colors.bearish,rx:e.value.style.layout.candle.borderRadius,stroke:e.value.style.layout.candle.stroke,"stroke-width":e.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,je))),256))]),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:s.value.left+a*n.value,y:s.value.top,height:s.value.height<=0?1e-4:s.value.height,width:n.value<=0?1e-4:n.value,fill:S.value===a?`${e.value.style.layout.selector.color}${t.unref(i.opacity)[e.value.style.layout.selector.opacity]}`:"transparent",onMouseover:v=>ue(a,l),onMouseleave:u[0]||(u[0]=v=>{S.value=void 0,_.value=!1})},null,40,Xe))),256))])])):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"svg",{svg:r.value},void 0,!0)],14,be)):t.createCommentVNode("",!0),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ge.default,{key:3,config:{type:"candlesticks",style:{backgroundColor:e.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),e.value.style.zoom.show&&m.value?(t.openBlock(),t.createElementBlock("div",{key:4,ref_key:"chartSlicer",ref:R},[(t.openBlock(),t.createBlock(fe.Slicer,{key:`slicer_${F.value}`,background:e.value.style.zoom.color,borderColor:e.value.style.backgroundColor,fontSize:e.value.style.zoom.fontSize,useResetSlot:e.value.style.zoom.useResetSlot,labelLeft:g.dataset[d.value.start]?g.dataset[d.value.start][0]:g.dataset[0][0],labelRight:g.dataset[d.value.end-1]?g.dataset[d.value.end-1][0]:g.dataset.at(-1)[0],textColor:e.value.style.color,inputColor:e.value.style.zoom.color,selectColor:e.value.style.zoom.highlightColor,max:V.value,min:0,valueStart:d.value.start,valueEnd:d.value.end,start:d.value.start,"onUpdate:start":u[1]||(u[1]=l=>d.value.start=l),end:d.value.end,"onUpdate:end":u[2]||(u[2]=l=>d.value.end=l),onReset:ie},{"reset-action":t.withCtx(({reset:l})=>[t.renderSlot(o.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"]))],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"chartLegend",ref:L},[t.renderSlot(o.$slots,"legend",{legend:c.value},void 0,!0)],512),t.createVNode(he._sfc_main,{show:p.value.showTooltip&&_.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,parent:x.value,content:B.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(o.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...z.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(o.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...z.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),m.value?(t.openBlock(),t.createBlock(me.default,{key:5,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(pe.DataTable,{colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:u[3]||(u[3]=l=>p.value.showTable=!1)},{th:t.withCtx(({th:l})=>[t.createTextVNode(t.toDisplayString(l),1)]),td:t.withCtx(({td:l})=>[t.createElementVNode("div",{innerHTML:l},null,8,Ye)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ke))}},Ke=xe._export_sfc(Je,[["__scopeId","data-v-0ed64fca"]]);exports.default=Ke;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BkomIE9L.cjs"),_=require("./useNestedProp-BMxXyPbW.cjs"),L=require("./usePrinter-r6uHYEcR.cjs"),J=require("./vue-ui-skeleton-JmGp11-u.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=["id"],W=["height"],Y={key:0},Z=["data-cell","height"],ee={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(s,{expose:q}){const o=s;e.useCssVars(a=>({"964550cc":a.tdo}));const{vue_ui_carousel_table:H}=l.useConfig(),w=e.ref(l.createUid()),A=e.ref(!1),p=e.ref(!!o.dataset);e.onMounted(()=>{l.objectIsEmpty(o.dataset)?l.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!o.dataset.head||l.objectIsEmpty(o.dataset.head))&&(l.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),p.value=!1),(!o.dataset.body||l.objectIsEmpty(o.dataset.body))&&(l.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),p.value=!1))});const t=e.computed(()=>_.useNestedProp({userConfig:o.config,defaultConfig:H})),{isPrinting:z,isImaging:S,generatePdf:U,generateImage:I}=L.usePrinter({elementId:`carousel-table_${w.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),u=e.ref({showAnimation:t.value.animation.use}),g=e.ref(null),P=e.ref(null),f=e.ref(null),h=e.ref(null),y=e.ref(0),B=e.ref(0),d=e.ref(!1),F=e.computed(()=>o.dataset.body?t.value.tbody.tr.visible<=o.dataset.body.length?t.value.tbody.tr.visible:o.dataset.body.length:0),M=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*F.value+y.value+B.value),G=e.computed(()=>!o.dataset||!o.dataset.body||!o.dataset.head?0:(o.dataset.body.length*(d.value?o.dataset.head.length:1)-F.value)*(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)),k=e.ref(0),m=e.ref(null),b=e.ref(0),c=e.ref(!1),T=e.ref(0);e.onMounted(()=>{f.value&&(y.value=f.value.getBoundingClientRect().height),h.value&&(B.value=h.value.getBoundingClientRect().height),u.value.showAnimation&&E()});function D(a){A.value=a,T.value+=1}function E(){!m.value&&!c.value&&(m.value=requestAnimationFrame(N))}function N(a){if(c.value)return;b.value||(b.value=a),a-b.value>=t.value.animation.speedMs&&(k.value+=t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size,k.value>G.value&&(k.value=0),g.value.scrollTo({top:k.value,behavior:"smooth"}),b.value=a),m.value=requestAnimationFrame(N)}function C(){c.value=!0,cancelAnimationFrame(m.value),m.value=null}function x(){!c.value||!u.value.showAnimation||(c.value=!1,b.value=0,E())}function j(){t.value.animation.pauseOnHover&&C()}e.watch(()=>t.value.animation.use,a=>{a?(u.value.showAnimation=!0,x()):(u.value.showAnimation=!1,C())});const X=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const a=new ResizeObserver(i=>{i.forEach(n=>{d.value=n.contentRect.width<X.value}),y.value=f.value?f.value.getBoundingClientRect().height:0,B.value=h.value?h.value.getBoundingClientRect().height:0});g.value&&a.observe(g.value)});function O(){U()}function R(){u.value.showAnimation=!u.value.showAnimation,u.value.showAnimation?x():C()}function V(){e.nextTick(()=>{const a=o.dataset.head.map((r,v)=>[[o.dataset.body[v]]]),i=[[t.value.caption.text],[o.dataset.head.map(r=>[r])]].concat(a),n=l.createCsvContent(i);l.downloadCsv({csvContent:n,title:t.value.caption.text||"vue-ui-carousel-table"})})}return q({pauseAnimation:C,resumeAnimation:x,toggleAnimation:R,generateCsv:V,generatePdf:O,generateImage:I}),(a,i)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:P},[e.createElementVNode("div",{ref_key:"tableContainer",ref:g,id:`carousel-table_${w.value}`,style:e.normalizeStyle({height:e.unref(z)||e.unref(S)?"auto":`${M.value}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":d.value,"is-playing":!c.value}),onMouseenter:i[0]||(i[0]=n=>j()),onMouseleave:i[1]||(i[1]=n=>x())},[p.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse"})},[e.createElementVNode("caption",{ref_key:"caption",ref:f,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:d.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!a.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(a.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${y.value}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:h,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:d.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataset.head,(n,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${r}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(a.$slots.th?"":n)+" ",1),e.renderSlot(a.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:n,colIndex:r})),void 0,!0)],4))),128))],12,W)],4),s.dataset.body&&s.dataset.head?(e.openBlock(),e.createElementBlock("tbody",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataset.body,(n,r)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,(v,$)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":d.value&&s.dataset.head[$].length>50?s.dataset.head[$].slice(0,50)+"...":s.dataset.head[$]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:t.value.tbody.tr.td.style.backgroundColor+e.unref(l.opacity)[r%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100],paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(a.$slots.td?"":d.value&&typeof v=="string"?v.slice(0,30)+"...":v)+" ",1),e.renderSlot(a.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:v,rowIndex:r,colIndex:$})),void 0,!0)],12,Z))),256))],4))),256))])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,Q),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(L.UserOptions,{ref:"details",key:`user_option_${T.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(z),isImaging:e.unref(S),uid:w.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!u.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:A.value,chartElement:P.value,titles:{...t.value.userOptions.buttonTitles},zIndex:3,noOffset:"",onGeneratePdf:O,onGenerateCsv:V,onGenerateImage:e.unref(I),onToggleAnimation:R,onToggleFullscreen:D},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","titles","onGenerateImage"])):e.createCommentVNode("",!0)],512))}},te=K._export_sfc(ee,[["__scopeId","data-v-8529d087"]]);exports.default=te;
@@ -0,0 +1,304 @@
1
+ import { useCssVars as de, ref as o, onMounted as N, computed as k, watch as ve, openBlock as l, createElementBlock as u, createElementVNode as O, normalizeStyle as v, unref as g, normalizeClass as pe, createTextVNode as S, toDisplayString as U, renderSlot as p, Fragment as E, renderList as H, normalizeProps as L, guardReactiveProps as V, createCommentVNode as P, createBlock as te, createSlots as ce, withCtx as x, nextTick as he } from "vue";
2
+ import { u as be, c as ge, o as G, e as M, r as fe, n as me, q as ye } from "./index-BMCvLyab.js";
3
+ import { u as Ce } from "./useNestedProp-CkP8xhG_.js";
4
+ import { u as $e, U as ke } from "./usePrinter-BuuBz5JR.js";
5
+ import xe from "./vue-ui-skeleton-BisWX1sO.js";
6
+ import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"], ze = {
8
+ __name: "vue-ui-carousel-table",
9
+ props: {
10
+ config: {
11
+ type: Object,
12
+ default() {
13
+ return {};
14
+ }
15
+ },
16
+ dataset: {
17
+ type: Object,
18
+ default() {
19
+ return {};
20
+ }
21
+ }
22
+ },
23
+ setup(r, { expose: ae }) {
24
+ const a = r;
25
+ de((t) => ({
26
+ "964550cc": t.tdo
27
+ }));
28
+ const { vue_ui_carousel_table: oe } = be(), R = o(ge()), q = o(!1), f = o(!!a.dataset);
29
+ N(() => {
30
+ G(a.dataset) ? M({
31
+ componentName: "VueUiCarouselTable",
32
+ type: "dataset"
33
+ }) : ((!a.dataset.head || G(a.dataset.head)) && (M({
34
+ componentName: "VueUiCarouselTable",
35
+ type: "datasetAttribute",
36
+ property: "head"
37
+ }), f.value = !1), (!a.dataset.body || G(a.dataset.body)) && (M({
38
+ componentName: "VueUiCarouselTable",
39
+ type: "datasetAttribute",
40
+ property: "body"
41
+ }), f.value = !1));
42
+ });
43
+ const e = k(() => Ce({
44
+ userConfig: a.config,
45
+ defaultConfig: oe
46
+ })), { isPrinting: D, isImaging: X, generatePdf: ne, generateImage: _ } = $e({
47
+ elementId: `carousel-table_${R.value}`,
48
+ fileName: e.value.caption.text || "vue-ui-carousel-table"
49
+ }), d = o({
50
+ showAnimation: e.value.animation.use
51
+ }), w = o(null), j = o(null), m = o(null), y = o(null), A = o(0), B = o(0), c = o(!1), J = k(() => a.dataset.body ? e.value.tbody.tr.visible <= a.dataset.body.length ? e.value.tbody.tr.visible : a.dataset.body.length : 0), le = k(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * J.value + A.value + B.value), ie = k(() => !a.dataset || !a.dataset.body || !a.dataset.head ? 0 : (a.dataset.body.length * (c.value ? a.dataset.head.length : 1) - J.value) * (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2)), I = o(0), C = o(null), $ = o(0), b = o(!1), K = o(0);
52
+ N(() => {
53
+ m.value && (A.value = m.value.getBoundingClientRect().height), y.value && (B.value = y.value.getBoundingClientRect().height), d.value.showAnimation && Q();
54
+ });
55
+ function se(t) {
56
+ q.value = t, K.value += 1;
57
+ }
58
+ function Q() {
59
+ !C.value && !b.value && (C.value = requestAnimationFrame(W));
60
+ }
61
+ function W(t) {
62
+ if (b.value) return;
63
+ $.value || ($.value = t), t - $.value >= e.value.animation.speedMs && (I.value += e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size, I.value > ie.value && (I.value = 0), w.value.scrollTo({
64
+ top: I.value,
65
+ behavior: "smooth"
66
+ }), $.value = t), C.value = requestAnimationFrame(W);
67
+ }
68
+ function F() {
69
+ b.value = !0, cancelAnimationFrame(C.value), C.value = null;
70
+ }
71
+ function T() {
72
+ !b.value || !d.value.showAnimation || (b.value = !1, $.value = 0, Q());
73
+ }
74
+ function ue() {
75
+ e.value.animation.pauseOnHover && F();
76
+ }
77
+ ve(
78
+ () => e.value.animation.use,
79
+ (t) => {
80
+ t ? (d.value.showAnimation = !0, T()) : (d.value.showAnimation = !1, F());
81
+ }
82
+ );
83
+ const re = k(() => e.value.responsiveBreakpoint);
84
+ N(() => {
85
+ const t = new ResizeObserver((s) => {
86
+ s.forEach((n) => {
87
+ c.value = n.contentRect.width < re.value;
88
+ }), A.value = m.value ? m.value.getBoundingClientRect().height : 0, B.value = y.value ? y.value.getBoundingClientRect().height : 0;
89
+ });
90
+ w.value && t.observe(w.value);
91
+ });
92
+ function Y() {
93
+ ne();
94
+ }
95
+ function Z() {
96
+ d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ? T() : F();
97
+ }
98
+ function ee() {
99
+ he(() => {
100
+ const t = a.dataset.head.map((i, h) => [
101
+ [a.dataset.body[h]]
102
+ ]), s = [
103
+ [e.value.caption.text],
104
+ [a.dataset.head.map((i) => [i])]
105
+ ].concat(t), n = me(s);
106
+ ye({
107
+ csvContent: n,
108
+ title: e.value.caption.text || "vue-ui-carousel-table"
109
+ });
110
+ });
111
+ }
112
+ return ae({
113
+ pauseAnimation: F,
114
+ resumeAnimation: T,
115
+ toggleAnimation: Z,
116
+ generateCsv: ee,
117
+ generatePdf: Y,
118
+ generateImage: _
119
+ }), (t, s) => (l(), u("div", {
120
+ style: { position: "relative", overflow: "visible" },
121
+ ref_key: "chartContainer",
122
+ ref: j
123
+ }, [
124
+ O("div", {
125
+ ref_key: "tableContainer",
126
+ ref: w,
127
+ id: `carousel-table_${R.value}`,
128
+ style: v({
129
+ height: g(D) || g(X) ? "auto" : `${le.value}px`,
130
+ containerType: "inline-size",
131
+ position: "relative",
132
+ overflow: "auto",
133
+ fontFamily: e.value.fontFamily
134
+ }),
135
+ class: pe({ "vue-ui-responsive": c.value, "is-playing": !b.value }),
136
+ onMouseenter: s[0] || (s[0] = (n) => ue()),
137
+ onMouseleave: s[1] || (s[1] = (n) => T())
138
+ }, [
139
+ f.value ? (l(), u("table", {
140
+ key: 0,
141
+ class: "vue-data-ui-carousel-table",
142
+ style: v({
143
+ ...e.value.style,
144
+ border: `${e.value.border.size}px solid ${e.value.border.color}`,
145
+ width: "100%",
146
+ borderCollapse: "collapse"
147
+ })
148
+ }, [
149
+ O("caption", {
150
+ ref_key: "caption",
151
+ ref: m,
152
+ class: "vue-data-ui-carousel-table-caption",
153
+ style: v({
154
+ ...e.value.caption.style,
155
+ fontFamily: "inherit",
156
+ position: "sticky",
157
+ top: 0,
158
+ zIndex: 2,
159
+ paddingTop: e.value.caption.padding.top + "px",
160
+ paddingRight: e.value.caption.padding.right + "px",
161
+ paddingBottom: e.value.caption.padding.bottom + "px",
162
+ paddingLeft: e.value.caption.padding.left + "px",
163
+ boxShadow: c.value ? e.value.thead.tr.style.boxShadow : "none",
164
+ minHeight: "36px"
165
+ })
166
+ }, [
167
+ S(U(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
168
+ p(t.$slots, "caption", {}, void 0, !0)
169
+ ], 4),
170
+ O("thead", {
171
+ style: v({ ...e.value.thead.style, position: "sticky", top: `${A.value}px`, zIndex: 1 })
172
+ }, [
173
+ O("tr", {
174
+ ref_key: "tableRow",
175
+ ref: y,
176
+ role: "row",
177
+ style: v({
178
+ ...e.value.thead.tr.style,
179
+ border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
180
+ boxShadow: c.value ? "none" : e.value.thead.tr.style.boxShadow
181
+ }),
182
+ height: `${e.value.thead.tr.height}px`
183
+ }, [
184
+ (l(!0), u(E, null, H(r.dataset.head, (n, i) => (l(), u("th", {
185
+ role: "cell",
186
+ key: `th_${i}`,
187
+ style: v({
188
+ ...e.value.thead.tr.th.style,
189
+ border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
190
+ paddingTop: e.value.thead.tr.th.padding.top + "px",
191
+ paddingRight: e.value.thead.tr.th.padding.right + "px",
192
+ paddingBottom: e.value.thead.tr.th.padding.bottom + "px",
193
+ paddingLeft: e.value.thead.tr.th.padding.left + "px"
194
+ })
195
+ }, [
196
+ S(U(t.$slots.th ? "" : n) + " ", 1),
197
+ p(t.$slots, "th", L(V({ th: n, colIndex: i })), void 0, !0)
198
+ ], 4))), 128))
199
+ ], 12, Ie)
200
+ ], 4),
201
+ r.dataset.body && r.dataset.head ? (l(), u("tbody", Fe, [
202
+ (l(!0), u(E, null, H(r.dataset.body, (n, i) => (l(), u("tr", {
203
+ style: v({
204
+ ...e.value.tbody.tr.style,
205
+ border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`
206
+ })
207
+ }, [
208
+ (l(!0), u(E, null, H(n, (h, z) => (l(), u("td", {
209
+ role: "cell",
210
+ "data-cell": c.value && r.dataset.head[z].length > 50 ? r.dataset.head[z].slice(0, 50) + "..." : r.dataset.head[z] || "",
211
+ style: v({
212
+ ...e.value.tbody.tr.td.style,
213
+ border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
214
+ backgroundColor: e.value.tbody.tr.td.style.backgroundColor + g(fe)[i % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
215
+ paddingTop: e.value.tbody.tr.td.padding.top + "px",
216
+ paddingRight: e.value.tbody.tr.td.padding.right + "px",
217
+ paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
218
+ paddingLeft: e.value.tbody.tr.td.padding.left + "px"
219
+ }),
220
+ height: `${e.value.tbody.tr.height}px`
221
+ }, [
222
+ S(U(t.$slots.td ? "" : c.value && typeof h == "string" ? h.slice(0, 30) + "..." : h) + " ", 1),
223
+ p(t.$slots, "td", L(V({ td: h, rowIndex: i, colIndex: z })), void 0, !0)
224
+ ], 12, Te))), 256))
225
+ ], 4))), 256))
226
+ ])) : P("", !0)
227
+ ], 4)) : P("", !0)
228
+ ], 46, Ae),
229
+ f.value ? P("", !0) : (l(), te(xe, {
230
+ key: 0,
231
+ config: {
232
+ type: "table"
233
+ }
234
+ })),
235
+ e.value.userOptions.show && f.value ? (l(), te(ke, {
236
+ ref: "details",
237
+ key: `user_option_${K.value}`,
238
+ backgroundColor: e.value.style.backgroundColor,
239
+ color: e.value.style.color,
240
+ isPrinting: g(D),
241
+ isImaging: g(X),
242
+ uid: R.value,
243
+ hasTooltip: !1,
244
+ hasPdf: e.value.userOptions.buttons.pdf,
245
+ hasImg: e.value.userOptions.buttons.img,
246
+ hasXls: e.value.userOptions.buttons.csv,
247
+ hasTable: !1,
248
+ hasLabel: !1,
249
+ hasAnimation: e.value.userOptions.buttons.animation,
250
+ isAnimation: !d.value.showAnimation,
251
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
252
+ isFullscreen: q.value,
253
+ chartElement: j.value,
254
+ titles: { ...e.value.userOptions.buttonTitles },
255
+ zIndex: 3,
256
+ noOffset: "",
257
+ onGeneratePdf: Y,
258
+ onGenerateCsv: ee,
259
+ onGenerateImage: g(_),
260
+ onToggleAnimation: Z,
261
+ onToggleFullscreen: se
262
+ }, ce({ _: 2 }, [
263
+ t.$slots.optionPdf ? {
264
+ name: "optionPdf",
265
+ fn: x(() => [
266
+ p(t.$slots, "optionPdf", {}, void 0, !0)
267
+ ]),
268
+ key: "0"
269
+ } : void 0,
270
+ t.$slots.optionCsv ? {
271
+ name: "optionCsv",
272
+ fn: x(() => [
273
+ p(t.$slots, "optionCsv", {}, void 0, !0)
274
+ ]),
275
+ key: "1"
276
+ } : void 0,
277
+ t.$slots.optionImg ? {
278
+ name: "optionImg",
279
+ fn: x(() => [
280
+ p(t.$slots, "optionImg", {}, void 0, !0)
281
+ ]),
282
+ key: "2"
283
+ } : void 0,
284
+ t.$slots.optionAnimation ? {
285
+ name: "optionAnimation",
286
+ fn: x(() => [
287
+ p(t.$slots, "optionAnimation", {}, void 0, !0)
288
+ ]),
289
+ key: "3"
290
+ } : void 0,
291
+ t.$slots.optionFullscreen ? {
292
+ name: "optionFullscreen",
293
+ fn: x(({ toggleFullscreen: n, isFullscreen: i }) => [
294
+ p(t.$slots, "optionFullscreen", L(V({ toggleFullscreen: n, isFullscreen: i })), void 0, !0)
295
+ ]),
296
+ key: "4"
297
+ } : void 0
298
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "titles", "onGenerateImage"])) : P("", !0)
299
+ ], 512));
300
+ }
301
+ }, Ue = /* @__PURE__ */ we(ze, [["__scopeId", "data-v-8529d087"]]);
302
+ export {
303
+ Ue as default
304
+ };