vue-data-ui 2.3.89 → 2.3.91

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 (182) hide show
  1. package/dist/{Arrow-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
  2. package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
  3. package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
  4. package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
  5. package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
  6. package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
  7. package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
  8. package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
  9. package/dist/PackageVersion-D9PU8glB.js +10 -0
  10. package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
  11. package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
  12. package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
  13. package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
  14. package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
  15. package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
  16. package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
  17. package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
  18. package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
  19. package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
  20. package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
  23. package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
  24. package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
  25. package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
  26. package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
  27. package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
  32. package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
  35. package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
  36. package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
  38. package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
  39. package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
  43. package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
  44. package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
  45. package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
  48. package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
  50. package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
  51. package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
  52. package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
  54. package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
  55. package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
  56. package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
  57. package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
  58. package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
  60. package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
  61. package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
  63. package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
  64. package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
  66. package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
  71. package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
  73. package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
  75. package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
  76. package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
  77. package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
  78. package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
  80. package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
  81. package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
  82. package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
  84. package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
  85. package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
  86. package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
  87. package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
  88. package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
  90. package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
  91. package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
  92. package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
  93. package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
  94. package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
  96. package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
  97. package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
  98. package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
  100. package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
  102. package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
  103. package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
  104. package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
  105. package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
  107. package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
  108. package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
  109. package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
  110. package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
  111. package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
  113. package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
  114. package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
  115. package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
  116. package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
  117. package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
  122. package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
  124. package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
  125. package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
  126. package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
  128. package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
  129. package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
  130. package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
  131. package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
  132. package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
  133. package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
  134. package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
  135. package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
  136. package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
  137. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
  138. package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
  139. package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
  140. package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
  145. package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
  146. package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
  147. package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
  148. package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
  149. package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
  150. package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
  151. package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
  152. package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
  153. package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
  154. package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
  155. package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
  158. package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
  160. package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
  162. package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
  164. package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
  165. package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
  166. package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
  170. package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
  171. package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
  172. package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
  173. package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
  174. package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
  175. package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
  176. package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
  177. package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
  178. package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
  179. package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
  180. package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
  181. package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
  182. package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-B_MrASni.cjs"),g=require("./useNestedProp-BFnXnY0k.cjs"),u=require("./index-BKTciLz4.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-JWGtHqTA.cjs"),g=require("./useNestedProp-m8IH8hWW.cjs"),u=require("./index-BhH89oF0.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, openBlock as u, createElementBlock as v, createElementVNode as n, normalizeClass as $, normalizeStyle as p, renderSlot as c, normalizeProps as i, mergeProps as O, createBlock as D, createCommentVNode as N, guardReactiveProps as m } from "vue";
2
- import w from "./BaseIcon-Dj8EbAXm.js";
3
- import { u as x } from "./useNestedProp-vP7uimPz.js";
4
- import { u as B, c as I } from "./index-Ca4RHJ4t.js";
2
+ import w from "./BaseIcon-DfaCNBgc.js";
3
+ import { u as x } from "./useNestedProp-BrIRtQj1.js";
4
+ import { u as B, c as I } from "./index-mBy4elhB.js";
5
5
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const F = ["id"], P = {
7
7
  key: 0,
@@ -1,18 +1,19 @@
1
- import { computed as b, ref as v, watch as pe, onMounted as be, openBlock as i, createElementBlock as r, normalizeClass as oe, normalizeStyle as se, createBlock as I, createCommentVNode as h, unref as d, createSlots as xe, withCtx as g, renderSlot as p, normalizeProps as N, guardReactiveProps as R, createElementVNode as n, Fragment as L, renderList as O, toDisplayString as w, createVNode as me, createTextVNode as ie, nextTick as we } from "vue";
2
- import { u as ke, c as _e, t as Ce, o as $e, e as Te, v as y, X as Le, s as E, w as ue, i as k, f as _, x as Ae, y as Se, q as ze, r as Ie } from "./index-Ca4RHJ4t.js";
1
+ import { computed as b, ref as v, watch as be, onMounted as xe, openBlock as i, createElementBlock as r, normalizeClass as oe, normalizeStyle as se, createBlock as I, createCommentVNode as h, unref as d, createSlots as me, withCtx as g, renderSlot as p, normalizeProps as N, guardReactiveProps as R, createVNode as ie, createElementVNode as n, Fragment as L, renderList as O, toDisplayString as w, createTextVNode as ue, nextTick as we } from "vue";
2
+ import { u as _e, c as ke, t as Ce, o as $e, e as Te, v as y, X as Le, s as E, w as re, i as _, f as k, x as Ae, y as Se, q as ze, r as Ie } from "./index-mBy4elhB.js";
3
3
  import { t as Oe, u as Fe } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Me } from "./Title-fAvrqioZ.js";
5
- import { u as Pe, U as Ne } from "./usePrinter-5fwXghqP.js";
6
- import { _ as Re } from "./Tooltip-TZYYFvPe.js";
7
- import { D as De } from "./DataTable-BmYcdJ1w.js";
8
- import Ge from "./vue-ui-skeleton-D7aLznpP.js";
9
- import Be from "./vue-ui-accordion-vYoYjedX.js";
10
- import { u as re } from "./useNestedProp-vP7uimPz.js";
11
- import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"], Ye = ["stop-color"], je = ["id"], He = ["stop-color"], qe = ["stop-color"], Je = ["x", "y", "width", "height", "fill", "rx"], Ke = ["x", "y", "width", "height", "fill", "rx"], Qe = ["x", "y", "width", "height", "fill", "rx"], Ze = ["x", "y", "width", "height", "fill", "rx"], et = { key: 0 }, tt = ["x", "y", "fill", "font-size", "font-weight"], lt = ["x", "y", "fill", "font-size", "font-weight"], at = { key: 1 }, ot = ["x", "y", "font-size", "fill", "font-weight"], st = { key: 2 }, it = { key: 0 }, ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dt = ["x", "y", "font-size", "fill", "font-weight"], vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yt = ["x", "y", "font-size", "fill", "font-weight"], ht = ["x", "y", "font-size", "fill", "font-weight"], ft = ["x", "y", "width", "height", "fill", "onMouseover"], ct = {
4
+ import { _ as Me } from "./Title-CECK1w9L.js";
5
+ import { u as Pe, U as Ne } from "./usePrinter-Ck-yukK2.js";
6
+ import { _ as Re } from "./Tooltip-Ci3AprCm.js";
7
+ import { D as De } from "./DataTable-BKc3r3k3.js";
8
+ import Ge from "./vue-ui-skeleton-DDhwPZd_.js";
9
+ import Be from "./vue-ui-accordion-dyF20BlD.js";
10
+ import { u as ne } from "./useNestedProp-BrIRtQj1.js";
11
+ import { _ as Ee } from "./PackageVersion-D9PU8glB.js";
12
+ import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"], je = ["stop-color"], He = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ke = ["x", "y", "width", "height", "fill", "rx"], Qe = ["x", "y", "width", "height", "fill", "rx"], Ze = ["x", "y", "width", "height", "fill", "rx"], et = ["x", "y", "width", "height", "fill", "rx"], tt = { key: 0 }, lt = ["x", "y", "fill", "font-size", "font-weight"], at = ["x", "y", "fill", "font-size", "font-weight"], ot = { key: 1 }, st = ["x", "y", "font-size", "fill", "font-weight"], it = { key: 2 }, ut = { key: 0 }, rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vt = ["x", "y", "font-size", "fill", "font-weight"], yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ht = ["x", "y", "font-size", "fill", "font-weight"], ft = ["x", "y", "font-size", "fill", "font-weight"], ct = ["x", "y", "width", "height", "fill", "onMouseover"], gt = {
13
14
  key: 3,
14
15
  class: "vue-data-ui-watermark"
15
- }, gt = {
16
+ }, pt = {
16
17
  __name: "vue-ui-age-pyramid",
17
18
  props: {
18
19
  config: {
@@ -28,28 +29,28 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
28
29
  }
29
30
  }
30
31
  },
31
- setup(W, { expose: ne }) {
32
- const f = W, { vue_ui_age_pyramid: de } = ke(), F = b(() => !!f.dataset && f.dataset.length), x = v(_e()), ve = v(null), D = v(!1), G = v(""), M = v(null), X = v(0), A = v(null), U = v(null), V = v(0), Y = v(0), e = b({
32
+ setup(W, { expose: de }) {
33
+ const f = W, { vue_ui_age_pyramid: ve } = _e(), F = b(() => !!f.dataset && f.dataset.length), x = v(ke()), ye = v(null), D = v(!1), G = v(""), M = v(null), X = v(0), A = v(null), U = v(null), V = v(0), Y = v(0), e = b({
33
34
  get: () => j(),
34
35
  set: (t) => t
35
36
  });
36
37
  function j() {
37
- const t = re({
38
+ const t = ne({
38
39
  userConfig: f.config,
39
- defaultConfig: de
40
+ defaultConfig: ve
40
41
  });
41
42
  return t.theme ? {
42
- ...re({
43
+ ...ne({
43
44
  userConfig: Ce.vue_ui_age_pyramid[t.theme] || f.config,
44
45
  defaultConfig: t
45
46
  })
46
47
  } : t;
47
48
  }
48
- pe(() => f.config, (t) => {
49
+ be(() => f.config, (t) => {
49
50
  e.value = j(), q(), V.value += 1, Y.value += 1;
50
51
  }, { deep: !0 });
51
52
  const H = v(null);
52
- be(() => {
53
+ xe(() => {
53
54
  q();
54
55
  });
55
56
  function q() {
@@ -95,8 +96,8 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
95
96
  left: s + t / 2 + e.value.style.layout.centerSlit.width
96
97
  }
97
98
  };
98
- }), ye = b(() => f.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), C = b(() => {
99
- const t = he(S.value / 5), s = [], l = [];
99
+ }), he = b(() => f.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), C = b(() => {
100
+ const t = fe(S.value / 5), s = [], l = [];
100
101
  for (let a = 0; a <= 5; a += 1) {
101
102
  const u = t * a, ae = t * (a - 5);
102
103
  s.push({
@@ -112,13 +113,13 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
112
113
  left: l
113
114
  };
114
115
  });
115
- function he(t) {
116
+ function fe(t) {
116
117
  if (t === 0) return 0;
117
118
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
118
119
  let a;
119
120
  return t < 0, a = Math.round(t / l) * l, a;
120
121
  }
121
- const S = b(() => Math.max(...f.dataset.flatMap((t) => t.slice(-2).map((s) => y(s))))), $ = b(() => f.dataset.length), fe = b(() => f.dataset.map((t) => ({
122
+ const S = b(() => Math.max(...f.dataset.flatMap((t) => t.slice(-2).map((s) => y(s))))), $ = b(() => f.dataset.length), ce = b(() => f.dataset.map((t) => ({
122
123
  segment: t[0],
123
124
  age: t[1],
124
125
  left: {
@@ -129,7 +130,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
129
130
  value: t[3],
130
131
  proportionToMax: t[3] / S.value
131
132
  }
132
- }))), T = b(() => fe.value.map((t, s) => {
133
+ }))), T = b(() => ce.value.map((t, s) => {
133
134
  const l = o.value.top + o.value.height / $.value * s, a = o.value.height / $.value - e.value.style.layout.bars.gap;
134
135
  return {
135
136
  segment: t.segment,
@@ -152,7 +153,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
152
153
  }
153
154
  };
154
155
  })), B = v(null);
155
- function ce(t, s) {
156
+ function ge(t, s) {
156
157
  M.value = t, B.value = {
157
158
  datapoint: s,
158
159
  seriesIndex: t,
@@ -185,25 +186,25 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
185
186
  else {
186
187
  let a = "";
187
188
  const u = T.value[t];
188
- a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${k(
189
+ a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${_(
189
190
  e.value.style.layout.dataLabels.yAxis.formatter,
190
191
  y(u.age),
191
- _({ v: y(u.age) }),
192
+ k({ v: y(u.age) }),
192
193
  { datapoint: s, seriesIndex: t }
193
- )}</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_${x.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${k(
194
+ )}</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_${x.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${_(
194
195
  e.value.style.layout.dataLabels.xAxis.formatter,
195
196
  y(u.left.value),
196
- _({ v: y(u.left.value) }),
197
+ k({ v: y(u.left.value) }),
197
198
  { datapoint: s, seriesIndex: t }
198
- )}</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_${x.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${k(
199
+ )}</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_${x.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${_(
199
200
  e.value.style.layout.dataLabels.xAxis.formatter,
200
201
  y(u.right.value),
201
- _({ v: y(u.right.value) }),
202
+ k({ v: y(u.right.value) }),
202
203
  { datapoint: s, seriesIndex: t }
203
- )}</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>${k(
204
+ )}</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>${_(
204
205
  e.value.style.layout.dataLabels.xAxis.formatter,
205
206
  y(u.right.value) + y(u.left.value),
206
- _({ v: y(u.right.value) + y(u.left.value) }),
207
+ k({ v: y(u.right.value) + y(u.left.value) }),
207
208
  { datapoint: s, seriesIndex: t }
208
209
  )}</b></div></div>`, a += "</div>", G.value = `<div>${a}</div>`;
209
210
  }
@@ -249,7 +250,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
249
250
  };
250
251
  return { head: t, body: s, config: l, colNames: t };
251
252
  }), z = v(!1);
252
- function ge(t) {
253
+ function pe(t) {
253
254
  z.value = t, X.value += 1;
254
255
  }
255
256
  function te() {
@@ -258,7 +259,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
258
259
  function le() {
259
260
  m.value.showTooltip = !m.value.showTooltip;
260
261
  }
261
- return ne({
262
+ return de({
262
263
  generatePdf: Q,
263
264
  generateCsv: ee,
264
265
  generateImage: Z,
@@ -293,7 +294,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
293
294
  ], 512)) : h("", !0),
294
295
  e.value.userOptions.show && F.value ? (i(), I(Ne, {
295
296
  ref_key: "details",
296
- ref: ve,
297
+ ref: ye,
297
298
  key: `user_options_${X.value}`,
298
299
  backgroundColor: e.value.style.backgroundColor,
299
300
  color: e.value.style.color,
@@ -311,13 +312,13 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
311
312
  titles: { ...e.value.userOptions.buttonTitles },
312
313
  chartElement: A.value,
313
314
  position: e.value.userOptions.position,
314
- onToggleFullscreen: ge,
315
+ onToggleFullscreen: pe,
315
316
  onGeneratePdf: d(Q),
316
317
  onGenerateCsv: ee,
317
318
  onGenerateImage: d(Z),
318
319
  onToggleTable: te,
319
320
  onToggleTooltip: le
320
- }, xe({ _: 2 }, [
321
+ }, me({ _: 2 }, [
321
322
  t.$slots.optionTooltip ? {
322
323
  name: "optionTooltip",
323
324
  fn: g(() => [
@@ -368,6 +369,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
368
369
  viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
369
370
  style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
370
371
  }, [
372
+ ie(Ee),
371
373
  n("defs", null, [
372
374
  n("linearGradient", {
373
375
  id: `age_pyramid_left_${x.value}`,
@@ -379,12 +381,12 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
379
381
  n("stop", {
380
382
  offset: "0%",
381
383
  "stop-color": e.value.style.layout.bars.left.color
382
- }, null, 8, Ve),
384
+ }, null, 8, Ye),
383
385
  n("stop", {
384
386
  offset: "100%",
385
- "stop-color": d(E)(d(ue)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
386
- }, null, 8, Ye)
387
- ], 8, Ue),
387
+ "stop-color": d(E)(d(re)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
388
+ }, null, 8, je)
389
+ ], 8, Ve),
388
390
  n("linearGradient", {
389
391
  id: `age_pyramid_right_${x.value}`,
390
392
  x1: "0%",
@@ -394,13 +396,13 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
394
396
  }, [
395
397
  n("stop", {
396
398
  offset: "0%",
397
- "stop-color": d(E)(d(ue)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
398
- }, null, 8, He),
399
+ "stop-color": d(E)(d(re)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
400
+ }, null, 8, qe),
399
401
  n("stop", {
400
402
  offset: "100%",
401
403
  "stop-color": e.value.style.layout.bars.right.color
402
- }, null, 8, qe)
403
- ], 8, je)
404
+ }, null, 8, Je)
405
+ ], 8, He)
404
406
  ]),
405
407
  (i(!0), r(L, null, O(T.value, (l, a) => (i(), r("g", null, [
406
408
  n("rect", {
@@ -410,7 +412,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
410
412
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
411
413
  fill: e.value.style.layout.bars.gradient.underlayer,
412
414
  rx: e.value.style.layout.bars.borderRadius
413
- }, null, 8, Je),
415
+ }, null, 8, Ke),
414
416
  n("rect", {
415
417
  x: l.left.x,
416
418
  y: l.left.y,
@@ -418,7 +420,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
418
420
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
419
421
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : l.left.color,
420
422
  rx: e.value.style.layout.bars.borderRadius
421
- }, null, 8, Ke),
423
+ }, null, 8, Qe),
422
424
  n("rect", {
423
425
  x: l.right.x,
424
426
  y: l.right.y,
@@ -426,7 +428,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
426
428
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
427
429
  fill: e.value.style.layout.bars.gradient.underlayer,
428
430
  rx: e.value.style.layout.bars.borderRadius
429
- }, null, 8, Qe),
431
+ }, null, 8, Ze),
430
432
  n("rect", {
431
433
  x: l.right.x,
432
434
  y: l.right.y,
@@ -434,10 +436,10 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
434
436
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
435
437
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : l.right.color,
436
438
  rx: e.value.style.layout.bars.borderRadius
437
- }, null, 8, Ze)
439
+ }, null, 8, et)
438
440
  ]))), 256)),
439
441
  n("g", null, [
440
- e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", et, [
442
+ e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", tt, [
441
443
  n("text", {
442
444
  x: o.value.left,
443
445
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -445,7 +447,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
445
447
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
446
448
  "text-anchor": "start",
447
449
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
448
- }, w(e.value.translations.female), 9, tt),
450
+ }, w(e.value.translations.female), 9, lt),
449
451
  n("text", {
450
452
  x: o.value.right,
451
453
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -453,10 +455,10 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
453
455
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
454
456
  "text-anchor": "end",
455
457
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
456
- }, w(e.value.translations.male), 9, lt)
458
+ }, w(e.value.translations.male), 9, at)
457
459
  ])) : h("", !0),
458
- e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", at, [
459
- (i(!0), r(L, null, O(ye.value, (l, a) => (i(), r(L, null, [
460
+ e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", ot, [
461
+ (i(!0), r(L, null, O(he.value, (l, a) => (i(), r(L, null, [
460
462
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
461
463
  key: 0,
462
464
  x: o.value.centerX,
@@ -465,16 +467,16 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
465
467
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
466
468
  fill: e.value.style.layout.dataLabels.yAxis.color,
467
469
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
468
- }, w(d(k)(
470
+ }, w(d(_)(
469
471
  e.value.style.layout.dataLabels.yAxis.formatter,
470
472
  l,
471
- d(_)({ v: l }),
473
+ d(k)({ v: l }),
472
474
  { datapoint: l, seriesIndex: a }
473
- )), 9, ot)) : h("", !0)
475
+ )), 9, st)) : h("", !0)
474
476
  ], 64))), 256))
475
477
  ])) : h("", !0),
476
- e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", st, [
477
- e.value.style.layout.grid.show ? (i(), r("g", it, [
478
+ e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", it, [
479
+ e.value.style.layout.grid.show ? (i(), r("g", ut, [
478
480
  n("line", {
479
481
  x1: C.value.right[0].x,
480
482
  x2: C.value.right.at(-1).x,
@@ -483,7 +485,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
483
485
  stroke: e.value.style.layout.grid.stroke,
484
486
  "stroke-width": e.value.style.layout.grid.strokeWidth,
485
487
  "stroke-linecap": "round"
486
- }, null, 8, ut),
488
+ }, null, 8, rt),
487
489
  n("line", {
488
490
  x1: C.value.left[0].x,
489
491
  x2: C.value.left.at(-1).x,
@@ -492,7 +494,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
492
494
  stroke: e.value.style.layout.grid.stroke,
493
495
  "stroke-width": e.value.style.layout.grid.strokeWidth,
494
496
  "stroke-linecap": "round"
495
- }, null, 8, rt)
497
+ }, null, 8, nt)
496
498
  ])) : h("", !0),
497
499
  (i(!0), r(L, null, O(C.value.right, (l, a) => (i(), r("g", null, [
498
500
  e.value.style.layout.grid.show ? (i(), r("line", {
@@ -504,7 +506,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
504
506
  stroke: e.value.style.layout.grid.stroke,
505
507
  "stroke-width": e.value.style.layout.grid.strokeWidth,
506
508
  "stroke-linecap": "round"
507
- }, null, 8, nt)) : h("", !0),
509
+ }, null, 8, dt)) : h("", !0),
508
510
  n("text", {
509
511
  x: l.x,
510
512
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -512,14 +514,14 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
512
514
  fill: e.value.style.layout.dataLabels.xAxis.color,
513
515
  "text-anchor": "middle",
514
516
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
515
- }, w(d(k)(
517
+ }, w(d(_)(
516
518
  e.value.style.layout.dataLabels.xAxis.formatter,
517
519
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
518
- d(_)({
520
+ d(k)({
519
521
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
520
522
  }),
521
523
  { datapoint: l, seriesIndex: a }
522
- )), 9, dt)
524
+ )), 9, vt)
523
525
  ]))), 256)),
524
526
  (i(!0), r(L, null, O(C.value.left, (l, a) => (i(), r("g", null, [
525
527
  e.value.style.layout.grid.show ? (i(), r("line", {
@@ -531,7 +533,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
531
533
  stroke: e.value.style.layout.grid.stroke,
532
534
  "stroke-width": e.value.style.layout.grid.strokeWidth,
533
535
  "stroke-linecap": "round"
534
- }, null, 8, vt)) : h("", !0),
536
+ }, null, 8, yt)) : h("", !0),
535
537
  n("text", {
536
538
  x: l.x,
537
539
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -539,14 +541,14 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
539
541
  fill: e.value.style.layout.dataLabels.xAxis.color,
540
542
  "text-anchor": "middle",
541
543
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
542
- }, w(d(k)(
544
+ }, w(d(_)(
543
545
  e.value.style.layout.dataLabels.xAxis.formatter,
544
546
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
545
- d(_)({
547
+ d(k)({
546
548
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
547
549
  }),
548
550
  { datapoint: l, seriesIndex: a }
549
- )), 9, yt)
551
+ )), 9, ht)
550
552
  ]))), 256)),
551
553
  n("text", {
552
554
  x: o.value.right,
@@ -555,7 +557,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
555
557
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
556
558
  fill: e.value.style.layout.dataLabels.xAxis.color,
557
559
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
558
- }, w(e.value.style.layout.dataLabels.xAxis.translation), 9, ht)
560
+ }, w(e.value.style.layout.dataLabels.xAxis.translation), 9, ft)
559
561
  ])) : h("", !0)
560
562
  ]),
561
563
  (i(!0), r(L, null, O(W.dataset, (l, a) => (i(), r("g", null, [
@@ -565,15 +567,15 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
565
567
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
566
568
  height: o.value.height / $.value <= 0 ? 1e-4 : o.value.height / $.value,
567
569
  fill: M.value !== null && M.value === a ? d(E)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
568
- onMouseover: (u) => ce(a, l),
570
+ onMouseover: (u) => ge(a, l),
569
571
  onMouseleave: s[0] || (s[0] = (u) => {
570
572
  M.value = null, D.value = !1;
571
573
  })
572
- }, null, 40, ft)
574
+ }, null, 40, ct)
573
575
  ]))), 256)),
574
576
  p(t.$slots, "svg", { svg: c.value }, void 0, !0)
575
- ], 14, Xe)) : h("", !0),
576
- t.$slots.watermark ? (i(), r("div", ct, [
577
+ ], 14, Ue)) : h("", !0),
578
+ t.$slots.watermark ? (i(), r("div", gt, [
577
579
  p(t.$slots, "watermark", N(R({ isPrinting: d(J) || d(K) })), void 0, !0)
578
580
  ])) : h("", !0),
579
581
  F.value ? h("", !0) : (i(), I(Ge, {
@@ -589,7 +591,7 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
589
591
  }
590
592
  }, null, 8, ["config"])),
591
593
  p(t.$slots, "legend", { legend: T.value }, void 0, !0),
592
- me(Re, {
594
+ ie(Re, {
593
595
  show: m.value.showTooltip && D.value,
594
596
  backgroundColor: e.value.style.tooltip.backgroundColor,
595
597
  color: e.value.style.tooltip.color,
@@ -639,19 +641,19 @@ const We = ["id"], Xe = ["xmlns", "viewBox"], Ue = ["id"], Ve = ["stop-color"],
639
641
  onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
640
642
  }, {
641
643
  th: g(({ th: l }) => [
642
- ie(w(l), 1)
644
+ ue(w(l), 1)
643
645
  ]),
644
646
  td: g(({ td: l }) => [
645
- ie(w(l), 1)
647
+ ue(w(l), 1)
646
648
  ]),
647
649
  _: 1
648
650
  }, 8, ["colNames", "head", "body", "config", "title"]))
649
651
  ]),
650
652
  _: 1
651
653
  }, 8, ["config"])) : h("", !0)
652
- ], 14, We));
654
+ ], 14, Xe));
653
655
  }
654
- }, At = /* @__PURE__ */ Ee(gt, [["__scopeId", "data-v-d312cd66"]]);
656
+ }, zt = /* @__PURE__ */ We(pt, [["__scopeId", "data-v-c8be6835"]]);
655
657
  export {
656
- At as default
658
+ zt as default
657
659
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BhH89oF0.cjs"),R=require("./useResponsive-B3TrDDIG.cjs"),Q=require("./Title-Bg_BK11V.cjs"),q=require("./usePrinter-B8jr_V3b.cjs"),Z=require("./Tooltip-lM1Jzkza.cjs"),ee=require("./DataTable-CnkdsvIo.cjs"),te=require("./vue-ui-skeleton-Cf89QIhl.cjs"),le=require("./vue-ui-accordion-Bzq1iTL2.cjs"),G=require("./useNestedProp-m8IH8hWW.cjs"),ae=require("./PackageVersion-LdLhc8hQ.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),se=["id"],ie=["xmlns","viewBox"],re=["id"],ue=["stop-color"],ne=["stop-color"],de=["id"],ce=["stop-color"],ve=["stop-color"],ye=["x","y","width","height","fill","rx"],he=["x","y","width","height","fill","rx"],fe=["x","y","width","height","fill","rx"],ge=["x","y","width","height","fill","rx"],pe={key:0},be=["x","y","fill","font-size","font-weight"],xe=["x","y","fill","font-size","font-weight"],me={key:1},ke=["x","y","font-size","fill","font-weight"],we={key:2},Ce={key:0},_e=["x1","x2","y1","y2","stroke","stroke-width"],Ne=["x1","x2","y1","y2","stroke","stroke-width"],Le=["x1","x2","y1","y2","stroke","stroke-width"],Se=["x","y","font-size","fill","font-weight"],Te=["x1","x2","y1","y2","stroke","stroke-width"],Be=["x","y","font-size","fill","font-weight"],$e=["x","y","font-size","fill","font-weight"],Ae=["x","y","width","height","fill","onMouseover"],Ee={key:3,class:"vue-data-ui-watermark"},ze={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(N,{expose:U}){const n=N,{vue_ui_age_pyramid:W}=s.useConfig(),x=e.computed(()=>!!n.dataset&&n.dataset.length),c=e.ref(s.createUid()),H=e.ref(null),w=e.ref(!1),C=e.ref(""),m=e.ref(null),L=e.ref(0),g=e.ref(null),S=e.ref(null),T=e.ref(0),B=e.ref(0),t=e.computed({get:()=>$(),set:l=>l});function $(){const l=G.useNestedProp({userConfig:n.config,defaultConfig:W});return l.theme?{...G.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||n.config,defaultConfig:l})}:l}e.watch(()=>n.config,l=>{t.value=$(),E(),T.value+=1,B.value+=1},{deep:!0});const A=e.ref(null);e.onMounted(()=>{E()});function E(){if(s.objectIsEmpty(n.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=R.throttle(()=>{const{width:r,height:a}=R.useResponsive({chart:g.value,title:t.value.style.title.text?S.value:null});d.value.width=r,d.value.height=a});A.value=new ResizeObserver(l),A.value.observe(g.value.parentNode)}}const{isPrinting:z,isImaging:V,generatePdf:P,generateImage:I}=q.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),i=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,r=t.value.style.layout.padding.left,a=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:r,right:a,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:r+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:r+l/2+t.value.style.layout.centerSlit.width}}}),X=e.computed(()=>n.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=e.computed(()=>{const l=j(p.value/5),r=[],a=[];for(let o=0;o<=5;o+=1){const u=l*o,M=l*(o-5);r.push({value:u,x:i.value.left+i.value.width/2+t.value.style.layout.centerSlit.width+u/p.value*i.value.leftChart.width}),a.push({value:Math.abs(M),x:i.value.left+i.value.width/2+M/p.value*i.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:r,left:a}});function j(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const p=e.computed(()=>Math.max(...n.dataset.flatMap(l=>l.slice(-2).map(r=>s.checkNaN(r))))),h=e.computed(()=>n.dataset.length),Y=e.computed(()=>n.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=e.computed(()=>Y.value.map((l,r)=>{const a=i.value.top+i.value.height/h.value*r,o=i.value.height/h.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:t.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*i.value.leftChart.width),height:o},right:{...l.right,y:a,color:t.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*i.value.rightChart.width),height:o}}})),_=e.ref(null);function J(l,r){m.value=l,_.value={datapoint:r,seriesIndex:l,series:f.value,config:t.value};const a=t.value.style.tooltip.customFormat;if(s.isFunction(a)&&s.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:t.value})))C.value=a({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:t.value});else{let o="";const u=f.value[l];o+=`<div><b>${u.segment}</b></div>`,o+=`<div>${t.value.translations.age}: ${s.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(u.age),s.dataLabel({v:s.checkNaN(u.age)}),{datapoint:r,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value),s.dataLabel({v:s.checkNaN(u.right.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value)+s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.right.value)+s.checkNaN(u.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+="</div>",C.value=`<div>${o}</div>`}w.value=!0}function F(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=n.dataset.map(u=>[u[0],u[1],u[2],u[3],u[2]+u[3]]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),o=s.createCsvContent(a);s.downloadCsv({csvContent:o,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=n.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:r,config:a,colNames:l}}),b=e.ref(!1);function K(l){b.value=l,L.value+=1}function O(){v.value.showTable=!v.value.showTable}function D(){v.value.showTooltip=!v.value.showTooltip}return U({generatePdf:P,generateCsv:F,generateImage:I,toggleTable:O,toggleTooltip:D}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:S,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Q._sfc_main,{key:`title_${T.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(q.UserOptions,{ref_key:"details",ref:H,key:`user_options_${L.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(V),isPrinting:e.unref(z),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:K,onGeneratePdf:e.unref(P),onGenerateCsv:F,onGenerateImage:e.unref(I),onToggleTable:O,onToggleTooltip:D},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ae._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,ue),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ne)],8,re),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ce),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,ve)],8,de)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:e.unref(s.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,ye),e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:a.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,he),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,fe),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:a.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,ge)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",pe,[e.createElementVNode("text",{x:i.value.left,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,be),e.createElementVNode("text",{x:i.value.right,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,xe)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/h.value*o+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,a,e.unref(s.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,ke)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",we,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ce,[e.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,_e),e.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ne)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.right,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Le)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,Se)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.left,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Te)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,Be)]))),256)),e.createElementVNode("text",{x:i.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,$e)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.dataset,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/h.value*o-t.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:m.value!==null&&m.value===o?e.unref(s.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:u=>J(o,a),onMouseleave:r[0]||(r[0]=u=>{m.value=null,w.value=!1})},null,40,Ae)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,ie)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ee,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(z)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(te.default,{key:4,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),e.createVNode(Z._sfc_main,{show:v.value.showTooltip&&w.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:g.value,content:C.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(e.openBlock(),e.createBlock(le.default,{key:5,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ee.DataTable,{key:`table_${B.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,se))}},Ve=oe._export_sfc(ze,[["__scopeId","data-v-c8be6835"]]);exports.default=Ve;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-BKTciLz4.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-BhH89oF0.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
2
2
  <defs>
3
3
  <marker
4
4
  id="${e.id}"
@@ -1,6 +1,6 @@
1
1
  import p from "./html2canvas.esm-d2sM-0Wm.js";
2
2
  import { E as _ } from "./jspdf.es.min-C660YX78.js";
3
- import { z as v, u as w, A, B as M } from "./index-Ca4RHJ4t.js";
3
+ import { z as v, u as w, A, B as M } from "./index-mBy4elhB.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 = {