vue-data-ui 2.7.6 → 2.7.7-beta.1

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 (167) hide show
  1. package/README.md +16 -1
  2. package/dist/{Arrow-DMoDyTYq.cjs → Arrow-DNVEx-Zr.cjs} +1 -1
  3. package/dist/{Arrow-BPxXpODN.js → Arrow-DkOOYKe9.js} +1 -1
  4. package/dist/{BaseIcon-BRjEohPB.js → BaseIcon-C__rjetC.js} +4 -3
  5. package/dist/{BaseIcon-Csib-bFs.cjs → BaseIcon-CbhcLp24.cjs} +1 -1
  6. package/dist/{ColorPicker--FQTMlj_.cjs → ColorPicker-CIY0Z_UD.cjs} +1 -1
  7. package/dist/{ColorPicker-DKHOITuH.js → ColorPicker-DTVUeznS.js} +3 -3
  8. package/dist/{DataTable-DXHBxZCy.js → DataTable-CvE8A7lW.js} +2 -2
  9. package/dist/{DataTable-Bg1jcIr-.cjs → DataTable-Srxz0Y0x.cjs} +1 -1
  10. package/dist/{Legend-UfmoJ4KO.cjs → Legend-5VwmJp5w.cjs} +1 -1
  11. package/dist/{Legend-DMevrWiD.js → Legend-BrOAwbzN.js} +2 -2
  12. package/dist/{PackageVersion-C7x2IWLM.js → PackageVersion-C55ZpB3q.js} +3 -3
  13. package/dist/PackageVersion-QEru8Bxc.cjs +1 -0
  14. package/dist/{PenAndPaper-Cvmkcq22.cjs → PenAndPaper-DQhErcF0.cjs} +1 -1
  15. package/dist/{PenAndPaper-8UX21OWr.js → PenAndPaper-tc2Py5gw.js} +3 -3
  16. package/dist/{Shape-fqF-okzT.cjs → Shape-COKvEH4J.cjs} +1 -1
  17. package/dist/{Shape-CTmzdRqd.js → Shape-CfuXq6kt.js} +1 -1
  18. package/dist/{Slicer-BXhvESja.js → Slicer-CWyKjGUL.js} +2 -2
  19. package/dist/{Slicer-DmdYZrGS.cjs → Slicer-zkjlcmHG.cjs} +1 -1
  20. package/dist/{Title-DUa01RoU.cjs → Title-BB8aHnbB.cjs} +1 -1
  21. package/dist/{Title-L3SvCQfU.js → Title-C-QYtKvr.js} +1 -1
  22. package/dist/{Tooltip-DxTkpBZU.cjs → Tooltip-CI0vrVlU.cjs} +1 -1
  23. package/dist/{Tooltip-DzsG-nM2.js → Tooltip-Dak_maLr.js} +1 -1
  24. package/dist/documentation/installation.md +6 -0
  25. package/dist/{dom-to-png-pcDdsfUp.js → dom-to-png-BBk5N1AI.js} +1 -1
  26. package/dist/{dom-to-png-_Yw7_Zl2.cjs → dom-to-png-LZPHfRF7.cjs} +1 -1
  27. package/dist/{img-D4mtuxkz.cjs → img-BCbj3kP9.cjs} +1 -1
  28. package/dist/{img-C_46LUlu.js → img-CLjczIIq.js} +1 -1
  29. package/dist/{index-CFNGWoG-.js → index-BtffB6f5.js} +446 -369
  30. package/dist/index-DNKrSwVK.cjs +9 -0
  31. package/dist/{pdf-BTE2gw1u.js → pdf-DMdwVwxc.js} +1 -1
  32. package/dist/{pdf-C4WYgi8l.cjs → pdf-lMdHAV2m.cjs} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +89 -5
  35. package/dist/types/vue-data-ui.d.ts +89 -5
  36. package/dist/{useNestedProp-BVcjidN0.cjs → useNestedProp-DESqvXKi.cjs} +1 -1
  37. package/dist/{useNestedProp-DHVUTEIl.js → useNestedProp-eOdEEdyY.js} +1 -1
  38. package/dist/{usePrinter-uMLnqx4N.cjs → usePrinter-DLcPCqJy.cjs} +1 -1
  39. package/dist/{usePrinter-DlDdG5QU.js → usePrinter-Dhz_aG6t.js} +3 -3
  40. package/dist/vue-data-ui-CrRd-WxF.cjs +9 -0
  41. package/dist/{vue-data-ui-DWxtv62P.js → vue-data-ui-DTU82wur.js} +73 -71
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +18 -17
  44. package/dist/{vue-ui-3d-bar-D82lrIe4.cjs → vue-ui-3d-bar-C98d9aJy.cjs} +1 -1
  45. package/dist/{vue-ui-3d-bar-DjK5p4-V.js → vue-ui-3d-bar-DSmVwNOh.js} +9 -9
  46. package/dist/{vue-ui-accordion-BVInR1D8.js → vue-ui-accordion-CA2uJ118.js} +3 -3
  47. package/dist/{vue-ui-accordion-BL55ml0w.cjs → vue-ui-accordion-DnrO6tPy.cjs} +1 -1
  48. package/dist/{vue-ui-age-pyramid-CN9pUGnI.js → vue-ui-age-pyramid-Bhqy5vZJ.js} +10 -10
  49. package/dist/{vue-ui-age-pyramid-D5EOO0iJ.cjs → vue-ui-age-pyramid-D1oGWjLn.cjs} +1 -1
  50. package/dist/{vue-ui-annotator-CAkIFmY8.js → vue-ui-annotator-5eG_26Eo.js} +2 -2
  51. package/dist/{vue-ui-annotator-CCXZE86s.cjs → vue-ui-annotator-BvL1lTz-.cjs} +1 -1
  52. package/dist/{vue-ui-bullet-DAtNfo12.js → vue-ui-bullet--DgRp1IJ.js} +8 -8
  53. package/dist/{vue-ui-bullet-DbVipNyo.cjs → vue-ui-bullet-B1yUYwaT.cjs} +1 -1
  54. package/dist/{vue-ui-candlestick-DZ8Zu1G0.cjs → vue-ui-candlestick-DsYphssX.cjs} +1 -1
  55. package/dist/{vue-ui-candlestick-C4o7KNEQ.js → vue-ui-candlestick-f6JqiV1Z.js} +11 -11
  56. package/dist/{vue-ui-carousel-table-C2fTCZSu.cjs → vue-ui-carousel-table-BgOHki0T.cjs} +1 -1
  57. package/dist/{vue-ui-carousel-table-GVqoqsHj.js → vue-ui-carousel-table-CT28AJMr.js} +4 -4
  58. package/dist/{vue-ui-chestnut-E6-YshUN.cjs → vue-ui-chestnut-Bp8dZHZ1.cjs} +1 -1
  59. package/dist/{vue-ui-chestnut-DkcYjcFC.js → vue-ui-chestnut-NxmZKOsn.js} +8 -8
  60. package/dist/{vue-ui-circle-pack-Cydk-l4Z.cjs → vue-ui-circle-pack-CMz4yUzv.cjs} +1 -1
  61. package/dist/{vue-ui-circle-pack-bYWkKSmF.js → vue-ui-circle-pack-Cbkl80if.js} +9 -9
  62. package/dist/{vue-ui-cursor-BV90fevc.cjs → vue-ui-cursor-DnCPKLTZ.cjs} +1 -1
  63. package/dist/{vue-ui-cursor-DJqRywjF.js → vue-ui-cursor-MdbpFdwd.js} +2 -2
  64. package/dist/{vue-ui-dashboard-Awb0TFLb.cjs → vue-ui-dashboard-BFHAdmcB.cjs} +1 -1
  65. package/dist/{vue-ui-dashboard-CBNKG2IX.js → vue-ui-dashboard-By4ZN5IA.js} +3 -3
  66. package/dist/{vue-ui-digits-Bdyd5itD.cjs → vue-ui-digits-C3nSWe9e.cjs} +1 -1
  67. package/dist/{vue-ui-digits--BlLcrsp.js → vue-ui-digits-CCM_sXeZ.js} +2 -2
  68. package/dist/{vue-ui-donut-DhyuQfTc.cjs → vue-ui-donut-CjAI9z4V.cjs} +1 -1
  69. package/dist/{vue-ui-donut-BFaZnu4E.js → vue-ui-donut-Co5B8pzR.js} +12 -12
  70. package/dist/{vue-ui-donut-evolution-u_DgynBq.js → vue-ui-donut-evolution-Bm50SLeH.js} +11 -11
  71. package/dist/{vue-ui-donut-evolution-BlTz3cM6.cjs → vue-ui-donut-evolution-C-ISOlGN.cjs} +1 -1
  72. package/dist/{vue-ui-dumbbell-BPY5ecEW.cjs → vue-ui-dumbbell-BRvlJ6bN.cjs} +1 -1
  73. package/dist/{vue-ui-dumbbell-FTQMksov.js → vue-ui-dumbbell-DDG8v1ZE.js} +10 -10
  74. package/dist/{vue-ui-flow-CiOLP4Bc.cjs → vue-ui-flow-BOj17lVn.cjs} +1 -1
  75. package/dist/{vue-ui-flow-CZZbTaKg.js → vue-ui-flow-DDk__iJZ.js} +9 -9
  76. package/dist/{vue-ui-funnel-CeKd8ZiW.cjs → vue-ui-funnel-BxgKhPPp.cjs} +1 -1
  77. package/dist/{vue-ui-funnel-C7emWYtP.js → vue-ui-funnel-DUBgKr43.js} +9 -9
  78. package/dist/{vue-ui-galaxy-C0LvpwYA.cjs → vue-ui-galaxy-DV0h1ynO.cjs} +1 -1
  79. package/dist/{vue-ui-galaxy-CbQn6Tai.js → vue-ui-galaxy-YRyN8zq0.js} +11 -11
  80. package/dist/{vue-ui-gauge-B5t9OOfc.js → vue-ui-gauge-Bb-T1QFz.js} +7 -7
  81. package/dist/{vue-ui-gauge-BlIKJvVf.cjs → vue-ui-gauge-BjVpYpfu.cjs} +1 -1
  82. package/dist/{vue-ui-gizmo--2ZtBKsI.cjs → vue-ui-gizmo-CP8yQPP6.cjs} +1 -1
  83. package/dist/{vue-ui-gizmo-REPSaOFz.js → vue-ui-gizmo-tdf1jvt-.js} +3 -3
  84. package/dist/{vue-ui-heatmap-4GiW6lpZ.cjs → vue-ui-heatmap-DXvXtFlk.cjs} +1 -1
  85. package/dist/{vue-ui-heatmap-MgVipAHX.js → vue-ui-heatmap-bdaNrVis.js} +10 -10
  86. package/dist/{vue-ui-history-plot-Be7z_N9m.js → vue-ui-history-plot-BJRHiDoG.js} +11 -11
  87. package/dist/{vue-ui-history-plot-BPBubZyO.cjs → vue-ui-history-plot-BaeULnyN.cjs} +1 -1
  88. package/dist/{vue-ui-kpi-liKRIunp.cjs → vue-ui-kpi-CxFBYH85.cjs} +1 -1
  89. package/dist/{vue-ui-kpi-CIMqIIHx.js → vue-ui-kpi-DHfFPlx3.js} +3 -3
  90. package/dist/{vue-ui-mini-loader-BLlakDY7.cjs → vue-ui-mini-loader-B8eUwPL9.cjs} +1 -1
  91. package/dist/{vue-ui-mini-loader-BzA198rf.js → vue-ui-mini-loader-CSdAlp1g.js} +2 -2
  92. package/dist/{vue-ui-molecule-BjxKkqRH.js → vue-ui-molecule-Dm4xuFpu.js} +11 -11
  93. package/dist/{vue-ui-molecule-BVJoEq_L.cjs → vue-ui-molecule-Kehy9Bya.cjs} +1 -1
  94. package/dist/{vue-ui-mood-radar-DmnVvP9o.js → vue-ui-mood-radar-CllOVgcb.js} +11 -11
  95. package/dist/{vue-ui-mood-radar-W0giMhIf.cjs → vue-ui-mood-radar-DZLtyblm.cjs} +1 -1
  96. package/dist/{vue-ui-nested-donuts-Bjg4j4if.js → vue-ui-nested-donuts-D80D52G4.js} +11 -11
  97. package/dist/{vue-ui-nested-donuts-qdTmCQvc.cjs → vue-ui-nested-donuts-IbIX3FB_.cjs} +1 -1
  98. package/dist/{vue-ui-onion-D64W0CBD.js → vue-ui-onion-Cruehn-5.js} +11 -11
  99. package/dist/{vue-ui-onion-6SSfocfE.cjs → vue-ui-onion-CugYIl5u.cjs} +1 -1
  100. package/dist/{vue-ui-parallel-coordinate-plot-BjYktxod.cjs → vue-ui-parallel-coordinate-plot-DvjoyhOx.cjs} +1 -1
  101. package/dist/{vue-ui-parallel-coordinate-plot-CkZXOICk.js → vue-ui-parallel-coordinate-plot-hxPODzjv.js} +12 -12
  102. package/dist/{vue-ui-quadrant-DjLnWBnh.cjs → vue-ui-quadrant-5yZa1Vki.cjs} +1 -1
  103. package/dist/{vue-ui-quadrant-D-jEAMCQ.js → vue-ui-quadrant-W5zWROLP.js} +12 -12
  104. package/dist/{vue-ui-quick-chart-yNuTyEgo.js → vue-ui-quick-chart-BIvCRj3l.js} +9 -9
  105. package/dist/{vue-ui-quick-chart-BcOY7AIN.cjs → vue-ui-quick-chart-CvOCVrLO.cjs} +1 -1
  106. package/dist/{vue-ui-radar-CZlEONeD.js → vue-ui-radar-BZ2yEG0a.js} +12 -12
  107. package/dist/{vue-ui-radar-DpHLHWci.cjs → vue-ui-radar-k25hXHVk.cjs} +1 -1
  108. package/dist/{vue-ui-rating-C1gRL1R3.js → vue-ui-rating-CH76xA89.js} +2 -2
  109. package/dist/{vue-ui-rating-Cs3NEmEg.cjs → vue-ui-rating-WnTVZBgV.cjs} +1 -1
  110. package/dist/{vue-ui-relation-circle-CB-YW73a.cjs → vue-ui-relation-circle-BoQO2eJY.cjs} +1 -1
  111. package/dist/{vue-ui-relation-circle-C_FsWiuH.js → vue-ui-relation-circle-DyexupWL.js} +7 -7
  112. package/dist/{vue-ui-rings-syJFoH6E.js → vue-ui-rings-BqrQ1YMm.js} +12 -12
  113. package/dist/{vue-ui-rings-CIYZbHzK.cjs → vue-ui-rings-CHjVs3jq.cjs} +1 -1
  114. package/dist/{vue-ui-scatter-Y-bJ5R0J.js → vue-ui-scatter-BqzP6vRL.js} +12 -12
  115. package/dist/{vue-ui-scatter-1jT9ddo6.cjs → vue-ui-scatter-emJOKUQg.cjs} +1 -1
  116. package/dist/{vue-ui-skeleton-ByGfybu8.cjs → vue-ui-skeleton-CTZbmUyf.cjs} +1 -1
  117. package/dist/{vue-ui-skeleton-Dexat5oZ.js → vue-ui-skeleton-TyCPyS80.js} +3 -3
  118. package/dist/{vue-ui-smiley-DPP-2K8T.js → vue-ui-smiley-CSxoNIwG.js} +2 -2
  119. package/dist/{vue-ui-smiley-Cp1Yo8gM.cjs → vue-ui-smiley-DqTQd-RC.cjs} +1 -1
  120. package/dist/{vue-ui-spark-trend-DXo1Lafk.cjs → vue-ui-spark-trend-CpKxQGRW.cjs} +1 -1
  121. package/dist/{vue-ui-spark-trend-DkM426ut.js → vue-ui-spark-trend-IHK3iXea.js} +5 -5
  122. package/dist/{vue-ui-sparkbar-D7-pjVIk.cjs → vue-ui-sparkbar-Bw-Wy_9s.cjs} +1 -1
  123. package/dist/{vue-ui-sparkbar-F5OoZgjl.js → vue-ui-sparkbar-CO0q6AKS.js} +4 -4
  124. package/dist/{vue-ui-sparkgauge-LNWcvJQm.js → vue-ui-sparkgauge-B5ymGVz4.js} +4 -4
  125. package/dist/{vue-ui-sparkgauge-BV03AxIl.cjs → vue-ui-sparkgauge-DCIQ0QRj.cjs} +1 -1
  126. package/dist/{vue-ui-sparkhistogram-Dp4JmEjl.js → vue-ui-sparkhistogram-4FpkGb0W.js} +5 -5
  127. package/dist/{vue-ui-sparkhistogram-CPLjuhd0.cjs → vue-ui-sparkhistogram-BwPFtsYQ.cjs} +1 -1
  128. package/dist/{vue-ui-sparkline-CUJeIh8E.js → vue-ui-sparkline-BCRdpTgv.js} +4 -4
  129. package/dist/{vue-ui-sparkline-CzaaWz1O.cjs → vue-ui-sparkline-Dle5Fb2g.cjs} +1 -1
  130. package/dist/{vue-ui-sparkstackbar-Byy98s7i.cjs → vue-ui-sparkstackbar-BSEnyvb3.cjs} +1 -1
  131. package/dist/{vue-ui-sparkstackbar-BTmAuDED.js → vue-ui-sparkstackbar-w-7ObMk0.js} +5 -5
  132. package/dist/{vue-ui-stackbar-HfGn8Itj.js → vue-ui-stackbar-Di-bsOm4.js} +13 -13
  133. package/dist/{vue-ui-stackbar-CApy6xE-.cjs → vue-ui-stackbar-wEwp7pKI.cjs} +1 -1
  134. package/dist/{vue-ui-strip-plot-Db5fY9l0.js → vue-ui-strip-plot-BHUFfgP9.js} +11 -11
  135. package/dist/{vue-ui-strip-plot-D8bN2jOd.cjs → vue-ui-strip-plot-BomqVg6Y.cjs} +1 -1
  136. package/dist/{vue-ui-table-BiEEXfmz.js → vue-ui-table-D7uzGZn5.js} +1 -1
  137. package/dist/{vue-ui-table-3Pr_BJOn.cjs → vue-ui-table-aDD_B2uC.cjs} +1 -1
  138. package/dist/{vue-ui-table-heatmap-Dzmilz_6.cjs → vue-ui-table-heatmap-Cj-X6a7n.cjs} +1 -1
  139. package/dist/{vue-ui-table-heatmap-tT43AVN1.js → vue-ui-table-heatmap-U06OkER9.js} +4 -4
  140. package/dist/{vue-ui-table-sparkline-r9JbPWm1.cjs → vue-ui-table-sparkline-DtIy-qeG.cjs} +1 -1
  141. package/dist/{vue-ui-table-sparkline-CuG3P8Se.js → vue-ui-table-sparkline-Dyk9n_bH.js} +5 -5
  142. package/dist/{vue-ui-thermometer-BypApwQR.js → vue-ui-thermometer-Bu7m5EyZ.js} +7 -7
  143. package/dist/{vue-ui-thermometer-BWakJYXX.cjs → vue-ui-thermometer-DGN5pNim.cjs} +1 -1
  144. package/dist/{vue-ui-timer-BY89-D5q.cjs → vue-ui-timer-DpK6saZx.cjs} +1 -1
  145. package/dist/{vue-ui-timer-QTTOX3XU.js → vue-ui-timer-olsYON6y.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-DhubQXE9.js → vue-ui-tiremarks--pK7w8S4.js} +7 -7
  147. package/dist/{vue-ui-tiremarks-C6_AVUY8.cjs → vue-ui-tiremarks-B1HoCPJZ.cjs} +1 -1
  148. package/dist/{vue-ui-treemap-ByFdbyS7.cjs → vue-ui-treemap-BTm2oVox.cjs} +1 -1
  149. package/dist/{vue-ui-treemap-HL5rG7hw.js → vue-ui-treemap-CS6Zf5bv.js} +12 -12
  150. package/dist/{vue-ui-vertical-bar-__GfqF0O.js → vue-ui-vertical-bar-5DGuafeo.js} +12 -12
  151. package/dist/{vue-ui-vertical-bar-BP4MwH-K.cjs → vue-ui-vertical-bar-DEvGd_PN.cjs} +1 -1
  152. package/dist/{vue-ui-waffle-D9gfi78g.cjs → vue-ui-waffle-D-mL9b1t.cjs} +1 -1
  153. package/dist/{vue-ui-waffle-DF34x9Wg.js → vue-ui-waffle-DUjwvJRv.js} +12 -12
  154. package/dist/{vue-ui-wheel-DSofgaQ1.js → vue-ui-wheel-B4kKh-8p.js} +7 -7
  155. package/dist/{vue-ui-wheel-B41qdqzo.cjs → vue-ui-wheel-CdzY60QA.cjs} +1 -1
  156. package/dist/{vue-ui-word-cloud-fFYlm6K2.js → vue-ui-word-cloud-DlpIj9Ou.js} +10 -10
  157. package/dist/{vue-ui-word-cloud-CXCBnEZ8.cjs → vue-ui-word-cloud-R-8k_HC0.cjs} +1 -1
  158. package/dist/vue-ui-world-CKqEsBwF.js +899 -0
  159. package/dist/vue-ui-world-CLF3bltP.cjs +19 -0
  160. package/dist/{vue-ui-xy-BXfgH7v9.cjs → vue-ui-xy-B_PSmsA8.cjs} +2 -2
  161. package/dist/{vue-ui-xy-canvas-DggddiWo.cjs → vue-ui-xy-canvas--SNvmJzY.cjs} +1 -1
  162. package/dist/{vue-ui-xy-canvas-DHn7SPRK.js → vue-ui-xy-canvas-BYBv5wtT.js} +12 -12
  163. package/dist/{vue-ui-xy-CxNv4m9O.js → vue-ui-xy-vRnooIRn.js} +16 -16
  164. package/package.json +1 -1
  165. package/dist/PackageVersion-DgyGLNuh.cjs +0 -1
  166. package/dist/index-Be2lbQel.cjs +0 -9
  167. package/dist/vue-data-ui-hYMPv0Dd.cjs +0 -9
@@ -1,5 +1,5 @@
1
- import { toRefs as tt, defineAsyncComponent as e, computed as s, ref as o, onMounted as et, watch as M, shallowReactive as ot, createElementBlock as it, createBlock as m, openBlock as c, normalizeStyle as at, createElementVNode as nt, createTextVNode as rt, createCommentVNode as $, toDisplayString as lt, resolveDynamicComponent as ut, mergeProps as st, toHandlers as ct, createSlots as gt, renderList as pt, withCtx as mt, renderSlot as dt, normalizeProps as Vt, guardReactiveProps as Ut } from "vue";
2
- import W from "./BaseIcon-BRjEohPB.js";
1
+ import { toRefs as tt, defineAsyncComponent as e, computed as s, ref as o, onMounted as et, watch as G, shallowReactive as ot, createElementBlock as it, createBlock as m, openBlock as c, normalizeStyle as at, createElementVNode as nt, createTextVNode as rt, createCommentVNode as M, toDisplayString as lt, resolveDynamicComponent as ut, mergeProps as st, toHandlers as ct, createSlots as gt, renderList as pt, withCtx as mt, renderSlot as dt, normalizeProps as Vt, guardReactiveProps as Ut } from "vue";
2
+ import $ from "./BaseIcon-C__rjetC.js";
3
3
  const ft = { style: { width: "36px" } }, ht = {
4
4
  __name: "vue-data-ui",
5
5
  props: {
@@ -34,65 +34,66 @@ const ft = { style: { width: "36px" } }, ht = {
34
34
  ],
35
35
  setup(X, { expose: Q, emit: j }) {
36
36
  const n = X, { component: vt, dataset: z, config: K } = tt(n), g = {
37
- VueUi3dBar: e(() => import("./vue-ui-3d-bar-DjK5p4-V.js")),
38
- VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-CN9pUGnI.js")),
39
- VueUiAnnotator: e(() => import("./vue-ui-annotator-CAkIFmY8.js")),
40
- VueUiCandlestick: e(() => import("./vue-ui-candlestick-C4o7KNEQ.js")),
41
- VueUiChestnut: e(() => import("./vue-ui-chestnut-DkcYjcFC.js")),
42
- VueUiDashboard: e(() => import("./vue-ui-dashboard-CBNKG2IX.js")),
43
- VueUiDigits: e(() => import("./vue-ui-digits--BlLcrsp.js")),
44
- VueUiDonut: e(() => import("./vue-ui-donut-BFaZnu4E.js")),
45
- VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-u_DgynBq.js")),
46
- VueUiGalaxy: e(() => import("./vue-ui-galaxy-CbQn6Tai.js")),
47
- VueUiGauge: e(() => import("./vue-ui-gauge-B5t9OOfc.js")),
48
- VueUiHeatmap: e(() => import("./vue-ui-heatmap-MgVipAHX.js")),
49
- VueUiKpi: e(() => import("./vue-ui-kpi-CIMqIIHx.js")),
50
- VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-BzA198rf.js")),
51
- VueUiMolecule: e(() => import("./vue-ui-molecule-BjxKkqRH.js")),
52
- VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-DmnVvP9o.js")),
53
- VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-Bjg4j4if.js")),
54
- VueUiOnion: e(() => import("./vue-ui-onion-D64W0CBD.js")),
55
- VueUiQuadrant: e(() => import("./vue-ui-quadrant-D-jEAMCQ.js")),
56
- VueUiRadar: e(() => import("./vue-ui-radar-CZlEONeD.js")),
57
- VueUiRating: e(() => import("./vue-ui-rating-C1gRL1R3.js")),
58
- VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-C_FsWiuH.js")),
59
- VueUiRings: e(() => import("./vue-ui-rings-syJFoH6E.js")),
60
- VueUiScatter: e(() => import("./vue-ui-scatter-Y-bJ5R0J.js")),
61
- VueUiSkeleton: e(() => import("./vue-ui-skeleton-Dexat5oZ.js")),
62
- VueUiSmiley: e(() => import("./vue-ui-smiley-DPP-2K8T.js")),
63
- VueUiSparkbar: e(() => import("./vue-ui-sparkbar-F5OoZgjl.js")),
64
- VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-LNWcvJQm.js")),
65
- VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-Dp4JmEjl.js")),
66
- VueUiSparkline: e(() => import("./vue-ui-sparkline-CUJeIh8E.js")),
67
- VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-BTmAuDED.js")),
68
- VueUiTable: e(() => import("./vue-ui-table-BiEEXfmz.js")),
69
- VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-CuG3P8Se.js")),
70
- VueUiThermometer: e(() => import("./vue-ui-thermometer-BypApwQR.js")),
71
- VueUiTiremarks: e(() => import("./vue-ui-tiremarks-DhubQXE9.js")),
72
- VueUiTreemap: e(() => import("./vue-ui-treemap-HL5rG7hw.js")),
73
- VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-__GfqF0O.js")),
74
- VueUiWaffle: e(() => import("./vue-ui-waffle-DF34x9Wg.js")),
75
- VueUiWheel: e(() => import("./vue-ui-wheel-DSofgaQ1.js")),
76
- VueUiXy: e(() => import("./vue-ui-xy-CxNv4m9O.js")),
77
- VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-tT43AVN1.js")),
78
- VueUiAccordion: e(() => import("./vue-ui-accordion-BVInR1D8.js")),
79
- VueUiQuickChart: e(() => import("./vue-ui-quick-chart-yNuTyEgo.js")),
80
- VueUiCursor: e(() => import("./vue-ui-cursor-DJqRywjF.js")),
81
- VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-DkM426ut.js")),
82
- VueUiStripPlot: e(() => import("./vue-ui-strip-plot-Db5fY9l0.js")),
83
- VueUiDumbbell: e(() => import("./vue-ui-dumbbell-FTQMksov.js")),
84
- VueUiWordCloud: e(() => import("./vue-ui-word-cloud-fFYlm6K2.js")),
85
- VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-DHn7SPRK.js")),
86
- VueUiFlow: e(() => import("./vue-ui-flow-CZZbTaKg.js")),
87
- VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-CkZXOICk.js")),
88
- VueUiTimer: e(() => import("./vue-ui-timer-QTTOX3XU.js")),
89
- VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-GVqoqsHj.js")),
90
- VueUiGizmo: e(() => import("./vue-ui-gizmo-REPSaOFz.js")),
91
- VueUiStackbar: e(() => import("./vue-ui-stackbar-HfGn8Itj.js")),
92
- VueUiBullet: e(() => import("./vue-ui-bullet-DAtNfo12.js")),
93
- VueUiFunnel: e(() => import("./vue-ui-funnel-C7emWYtP.js")),
94
- VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-Be7z_N9m.js")),
95
- VueUiCirclePack: e(() => import("./vue-ui-circle-pack-bYWkKSmF.js"))
37
+ VueUi3dBar: e(() => import("./vue-ui-3d-bar-DSmVwNOh.js")),
38
+ VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-Bhqy5vZJ.js")),
39
+ VueUiAnnotator: e(() => import("./vue-ui-annotator-5eG_26Eo.js")),
40
+ VueUiCandlestick: e(() => import("./vue-ui-candlestick-f6JqiV1Z.js")),
41
+ VueUiChestnut: e(() => import("./vue-ui-chestnut-NxmZKOsn.js")),
42
+ VueUiDashboard: e(() => import("./vue-ui-dashboard-By4ZN5IA.js")),
43
+ VueUiDigits: e(() => import("./vue-ui-digits-CCM_sXeZ.js")),
44
+ VueUiDonut: e(() => import("./vue-ui-donut-Co5B8pzR.js")),
45
+ VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-Bm50SLeH.js")),
46
+ VueUiGalaxy: e(() => import("./vue-ui-galaxy-YRyN8zq0.js")),
47
+ VueUiGauge: e(() => import("./vue-ui-gauge-Bb-T1QFz.js")),
48
+ VueUiHeatmap: e(() => import("./vue-ui-heatmap-bdaNrVis.js")),
49
+ VueUiKpi: e(() => import("./vue-ui-kpi-DHfFPlx3.js")),
50
+ VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-CSdAlp1g.js")),
51
+ VueUiMolecule: e(() => import("./vue-ui-molecule-Dm4xuFpu.js")),
52
+ VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-CllOVgcb.js")),
53
+ VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-D80D52G4.js")),
54
+ VueUiOnion: e(() => import("./vue-ui-onion-Cruehn-5.js")),
55
+ VueUiQuadrant: e(() => import("./vue-ui-quadrant-W5zWROLP.js")),
56
+ VueUiRadar: e(() => import("./vue-ui-radar-BZ2yEG0a.js")),
57
+ VueUiRating: e(() => import("./vue-ui-rating-CH76xA89.js")),
58
+ VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-DyexupWL.js")),
59
+ VueUiRings: e(() => import("./vue-ui-rings-BqrQ1YMm.js")),
60
+ VueUiScatter: e(() => import("./vue-ui-scatter-BqzP6vRL.js")),
61
+ VueUiSkeleton: e(() => import("./vue-ui-skeleton-TyCPyS80.js")),
62
+ VueUiSmiley: e(() => import("./vue-ui-smiley-CSxoNIwG.js")),
63
+ VueUiSparkbar: e(() => import("./vue-ui-sparkbar-CO0q6AKS.js")),
64
+ VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-B5ymGVz4.js")),
65
+ VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-4FpkGb0W.js")),
66
+ VueUiSparkline: e(() => import("./vue-ui-sparkline-BCRdpTgv.js")),
67
+ VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-w-7ObMk0.js")),
68
+ VueUiTable: e(() => import("./vue-ui-table-D7uzGZn5.js")),
69
+ VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-Dyk9n_bH.js")),
70
+ VueUiThermometer: e(() => import("./vue-ui-thermometer-Bu7m5EyZ.js")),
71
+ VueUiTiremarks: e(() => import("./vue-ui-tiremarks--pK7w8S4.js")),
72
+ VueUiTreemap: e(() => import("./vue-ui-treemap-CS6Zf5bv.js")),
73
+ VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-5DGuafeo.js")),
74
+ VueUiWaffle: e(() => import("./vue-ui-waffle-DUjwvJRv.js")),
75
+ VueUiWheel: e(() => import("./vue-ui-wheel-B4kKh-8p.js")),
76
+ VueUiXy: e(() => import("./vue-ui-xy-vRnooIRn.js")),
77
+ VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-U06OkER9.js")),
78
+ VueUiAccordion: e(() => import("./vue-ui-accordion-CA2uJ118.js")),
79
+ VueUiQuickChart: e(() => import("./vue-ui-quick-chart-BIvCRj3l.js")),
80
+ VueUiCursor: e(() => import("./vue-ui-cursor-MdbpFdwd.js")),
81
+ VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-IHK3iXea.js")),
82
+ VueUiStripPlot: e(() => import("./vue-ui-strip-plot-BHUFfgP9.js")),
83
+ VueUiDumbbell: e(() => import("./vue-ui-dumbbell-DDG8v1ZE.js")),
84
+ VueUiWordCloud: e(() => import("./vue-ui-word-cloud-DlpIj9Ou.js")),
85
+ VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-BYBv5wtT.js")),
86
+ VueUiFlow: e(() => import("./vue-ui-flow-DDk__iJZ.js")),
87
+ VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-hxPODzjv.js")),
88
+ VueUiTimer: e(() => import("./vue-ui-timer-olsYON6y.js")),
89
+ VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-CT28AJMr.js")),
90
+ VueUiGizmo: e(() => import("./vue-ui-gizmo-tdf1jvt-.js")),
91
+ VueUiStackbar: e(() => import("./vue-ui-stackbar-Di-bsOm4.js")),
92
+ VueUiBullet: e(() => import("./vue-ui-bullet--DgRp1IJ.js")),
93
+ VueUiFunnel: e(() => import("./vue-ui-funnel-DUBgKr43.js")),
94
+ VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-BJRHiDoG.js")),
95
+ VueUiCirclePack: e(() => import("./vue-ui-circle-pack-Cbkl80if.js")),
96
+ VueUiWorld: e(() => import("./vue-ui-world-CKqEsBwF.js"))
96
97
  }, q = {
97
98
  VueUi3dBar: ["config", "dataset"],
98
99
  VueUiAgePyramid: ["config", "dataset"],
@@ -152,11 +153,12 @@ const ft = { style: { width: "36px" } }, ht = {
152
153
  VueUiBullet: ["config", "dataset"],
153
154
  VueUiFunnel: ["config", "dataset"],
154
155
  VueUiHistoryPlot: ["config", "dataset"],
155
- VueUiCirclePack: ["config", "dataset"]
156
+ VueUiCirclePack: ["config", "dataset"],
157
+ VueUiWorld: ["config", "dataset"]
156
158
  }, Y = j, d = s(() => !g[n.component]), J = s(() => g[n.component] || null), i = o(null), Z = s(() => {
157
159
  const t = q[n.component] || [], a = {};
158
160
  return t.includes("config") && (a.config = K.value), t.includes("dataset") && (a.dataset = z.value), a;
159
- }), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), k = o(() => null), S = o(() => null), h = o(() => null), y = o(() => null), b = o(() => null), C = o(() => null), A = o(() => null), T = o(() => null), P = o(() => null), D = o(() => null), x = o(() => null), I = o(() => null), F = o(() => null), H = o(() => null), L = o(() => null), N = o(() => null), B = o(() => null), E = o(() => null), _ = o(() => null), O = o(() => null), G = o(() => null);
161
+ }), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), k = o(() => null), S = o(() => null), h = o(() => null), y = o(() => null), b = o(() => null), C = o(() => null), A = o(() => null), T = o(() => null), P = o(() => null), D = o(() => null), x = o(() => null), I = o(() => null), F = o(() => null), H = o(() => null), L = o(() => null), N = o(() => null), B = o(() => null), E = o(() => null), _ = o(() => null), O = o(() => null), W = o(() => null);
160
162
  et(() => {
161
163
  d.value && console.error(`
162
164
 
@@ -167,8 +169,8 @@ Available components:
167
169
 
168
170
  ${Object.keys(g).map((t) => `. ${t}
169
171
  `).join("")}`);
170
- }), M(i, async (t) => {
171
- t && (t.generatePdf && (V.value = t.generatePdf), t.generateImage && (f.value = t.generateImage), t.generateCsv && (U.value = t.generateCsv), t.getItemsPositions && (v.value = t.getItemsPositions), t.toggleReadonly && (k.value = t.toggleReadonly), t.shoot && (S.value = t.shoot), t.close && (h.value = t.close), t.restoreOrder && (y.value = t.restoreOrder), t.recalculateHeight && (b.value = t.recalculateHeight), t.toggleLock && (C.value = t.toggleLock), t.toggleTable && (A.value = t.toggleTable), t.toggleLabels && (T.value = t.toggleLabels), t.toggleSort && (P.value = t.toggleSort), t.toggleStack && (D.value = t.toggleStack), t.toggleTooltip && (x.value = t.toggleTooltip), t.start && (I.value = t.start), t.pause && (F.value = t.pause), t.reset && (H.value = t.reset), t.restart && (L.value = t.restart), t.lap && (N.value = t.lap), t.toggleAnimation && (B.value = t.toggleAnimation), t.pauseAnimation && (E.value = t.pauseAnimation), t.resumeAnimation && (_.value = t.resumeAnimation), t.toggleAnnotator && (O.value = t.toggleAnnotator), t.selectNode && (G.value = t.selectNode));
172
+ }), G(i, async (t) => {
173
+ t && (t.generatePdf && (V.value = t.generatePdf), t.generateImage && (f.value = t.generateImage), t.generateCsv && (U.value = t.generateCsv), t.getItemsPositions && (v.value = t.getItemsPositions), t.toggleReadonly && (k.value = t.toggleReadonly), t.shoot && (S.value = t.shoot), t.close && (h.value = t.close), t.restoreOrder && (y.value = t.restoreOrder), t.recalculateHeight && (b.value = t.recalculateHeight), t.toggleLock && (C.value = t.toggleLock), t.toggleTable && (A.value = t.toggleTable), t.toggleLabels && (T.value = t.toggleLabels), t.toggleSort && (P.value = t.toggleSort), t.toggleStack && (D.value = t.toggleStack), t.toggleTooltip && (x.value = t.toggleTooltip), t.start && (I.value = t.start), t.pause && (F.value = t.pause), t.reset && (H.value = t.reset), t.restart && (L.value = t.restart), t.lap && (N.value = t.lap), t.toggleAnimation && (B.value = t.toggleAnimation), t.pauseAnimation && (E.value = t.pauseAnimation), t.resumeAnimation && (_.value = t.resumeAnimation), t.toggleAnnotator && (O.value = t.toggleAnnotator), t.selectNode && (W.value = t.selectNode));
172
174
  });
173
175
  const R = () => {
174
176
  const t = [
@@ -203,7 +205,7 @@ ${Object.keys(g).map((t) => `. ${t}
203
205
  a[p] = (...u) => Y(p, ...u);
204
206
  }), a;
205
207
  }, r = ot([]);
206
- M([r, i], () => {
208
+ G([r, i], () => {
207
209
  if (i.value)
208
210
  for (; r.length; ) {
209
211
  const [t, ...a] = r.shift();
@@ -235,7 +237,7 @@ ${Object.keys(g).map((t) => `. ${t}
235
237
  resumeAnimation: _,
236
238
  toggleAnimation: B,
237
239
  toggleAnnotator: O,
238
- selectNode: G
240
+ selectNode: W
239
241
  });
240
242
  const l = s(() => {
241
243
  let t = `The provided component ${n.component} does not exist.`;
@@ -258,16 +260,16 @@ ${Object.keys(g).map((t) => `. ${t}
258
260
  })
259
261
  }, [
260
262
  nt("div", ft, [
261
- l.value.status === "unknown" ? (c(), m(W, {
263
+ l.value.status === "unknown" ? (c(), m($, {
262
264
  key: 0,
263
265
  name: "moodFlat",
264
266
  stroke: "#FF0000"
265
- })) : $("", !0),
266
- l.value.status === "notSupported" ? (c(), m(W, {
267
+ })) : M("", !0),
268
+ l.value.status === "notSupported" ? (c(), m($, {
267
269
  key: 1,
268
270
  name: "circleExclamation",
269
271
  stroke: "#FF9000"
270
- })) : $("", !0)
272
+ })) : M("", !0)
271
273
  ]),
272
274
  rt(" " + lt(l.value.message), 1)
273
275
  ], 4)) : (c(), m(ut(J.value), st({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-Be2lbQel.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiBullet=e.VueUiBullet;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCirclePack=e.VueUiCirclePack;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiFunnel=e.VueUiFunnel;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiHistoryPlot=e.VueUiHistoryPlot;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiPattern=e.VueUiPattern;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.abbreviate=e.abbreviate;exports.createSmoothPath=e.createSmoothPath;exports.createStraightPath=e.createStraightPath;exports.createTSpans=e.createTSpans;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.darkenColor=e.darkenColor;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;exports.lightenColor=e.lightenColor;exports.shiftColorHue=e.shiftColorHue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-DNKrSwVK.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiBullet=e.VueUiBullet;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCirclePack=e.VueUiCirclePack;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiFunnel=e.VueUiFunnel;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiHistoryPlot=e.VueUiHistoryPlot;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiPattern=e.VueUiPattern;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiWorld=e.VueUiWorld;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.abbreviate=e.abbreviate;exports.createSmoothPath=e.createSmoothPath;exports.createStraightPath=e.createStraightPath;exports.createTSpans=e.createTSpans;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.darkenColor=e.darkenColor;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;exports.lightenColor=e.lightenColor;exports.shiftColorHue=e.shiftColorHue;
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { ak as s, al as u, am as V, an as U, ao as r, ap as t, be as o, aq as l, bb as b, ar as n, bi as d, as as m, at as c, au as S, av as k, aw as C, ax as g, ay as p, bf as T, az as h, aA as P, bc as D, aB as f, bg as y, aC as H, aD as R, aE as A, aF as W, aG as v, aH as x, aI as B, aJ as F, bh as G, aK as M, aL as w, aM as L, aN as Q, aO as X, aP as z, aQ as E, aR as I, aS as K, aT as N, aU as O, aV as j, aW as q, aX as J, aY as Y, bd as Z, aZ as _, a_ as $, a$ as aa, b0 as ea, b1 as ia, b2 as sa, b3 as ua, b4 as Va, b5 as Ua, b6 as ra, b7 as ta, b8 as oa, b9 as la, ba, L as na, T as da, S as ma, af as ca, a6 as Sa, bj as ka, bk as Ca, bl as ga, bm as pa, bn as Ta, bo as ha } from "./index-CFNGWoG-.js";
2
+ import { ak as s, al as u, am as V, an as U, ao as r, ap as t, be as o, aq as l, bb as b, ar as n, bi as d, as as m, at as c, au as S, av as k, aw as p, ax as C, ay as g, bf as T, az as h, aA as P, bc as D, aB as f, bg as y, aC as H, aD as R, aE as W, aF as A, aG as v, aH as x, aI as B, aJ as F, bh as G, aK as M, aL as w, aM as L, aN as Q, aO as X, aP as z, aQ as E, aR as I, aS as K, aT as N, aU as O, aV as j, aW as q, aX as J, aY as Y, bd as Z, aZ as _, a_ as $, a$ as aa, b0 as ea, b1 as ia, b2 as sa, b3 as ua, b4 as Va, b5 as Ua, b6 as ra, b7 as ta, b8 as oa, bj as la, b9 as ba, ba as na, L as da, T as ma, S as ca, af as Sa, a6 as ka, bk as pa, bl as Ca, bm as ga, bn as Ta, bo as ha, bp as Pa } from "./index-BtffB6f5.js";
3
3
  export {
4
4
  s as Arrow,
5
5
  u as VueDataUi,
@@ -16,9 +16,9 @@ export {
16
16
  c as VueUiDashboard,
17
17
  S as VueUiDigits,
18
18
  k as VueUiDonut,
19
- C as VueUiDonutEvolution,
20
- g as VueUiDumbbell,
21
- p as VueUiFlow,
19
+ p as VueUiDonutEvolution,
20
+ C as VueUiDumbbell,
21
+ g as VueUiFlow,
22
22
  T as VueUiFunnel,
23
23
  h as VueUiGalaxy,
24
24
  P as VueUiGauge,
@@ -27,8 +27,8 @@ export {
27
27
  y as VueUiHistoryPlot,
28
28
  H as VueUiIcon,
29
29
  R as VueUiKpi,
30
- A as VueUiMiniLoader,
31
- W as VueUiMolecule,
30
+ W as VueUiMiniLoader,
31
+ A as VueUiMolecule,
32
32
  v as VueUiMoodRadar,
33
33
  x as VueUiNestedDonuts,
34
34
  B as VueUiOnion,
@@ -62,17 +62,18 @@ export {
62
62
  ra as VueUiWaffle,
63
63
  ta as VueUiWheel,
64
64
  oa as VueUiWordCloud,
65
- la as VueUiXy,
66
- ba as VueUiXyCanvas,
67
- na as abbreviate,
68
- da as createSmoothPath,
69
- ma as createStraightPath,
70
- ca as createTSpans,
71
- Sa as createWordCloudDatasetFromPlainText,
72
- ka as darkenColor,
65
+ la as VueUiWorld,
66
+ ba as VueUiXy,
67
+ na as VueUiXyCanvas,
68
+ da as abbreviate,
69
+ ma as createSmoothPath,
70
+ ca as createStraightPath,
71
+ Sa as createTSpans,
72
+ ka as createWordCloudDatasetFromPlainText,
73
+ pa as darkenColor,
73
74
  Ca as getPalette,
74
75
  ga as getThemeConfig,
75
- pa as getVueDataUiConfig,
76
- Ta as lightenColor,
77
- ha as shiftColorHue
76
+ Ta as getVueDataUiConfig,
77
+ ha as lightenColor,
78
+ Pa as shiftColorHue
78
79
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Be2lbQel.cjs"),me=require("./Title-DUa01RoU.cjs"),oe=require("./usePrinter-uMLnqx4N.cjs"),ye=require("./vue-ui-skeleton-ByGfybu8.cjs"),ge=require("./DataTable-Bg1jcIr-.cjs"),$e=require("./vue-ui-accordion-BL55ml0w.cjs"),ne=require("./useNestedProp-BVcjidN0.cjs"),_e=require("./PackageVersion-DgyGLNuh.cjs"),be=require("./PenAndPaper-Cvmkcq22.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],we={key:1,style:"width:100%;background:transparent"},Ne=["xmlns","viewBox"],Ve=["width","height"],Fe=["id"],Me=["stop-color"],Se=["stop-color"],Pe=["id"],Oe=["stop-color"],Le=["stop-color"],De=["id"],Te=["stop-color"],ze=["stop-color"],je=["id"],Ae=["stop-color"],Ie=["stop-color"],We=["stop-color"],Ge={key:1},He=["id"],qe=["stop-color"],Ue=["stop-color"],Re=["id"],Xe=["stop-color"],Ze=["stop-color"],Ye=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],et=["x","y","font-size","font-weight","fill"],tt=["x","y"],lt=["d","stroke"],ot=["d","stroke"],nt={key:4},rt={key:0},at=["stroke-dasharray","d","stroke","stroke-width"],st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct={key:1},dt=["d","stroke","stroke-width","fill"],ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt={key:2},ft=["d","fill","onMouseenter","onClick"],kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","onMouseenter","onClick"],gt=["d"],$t=["d","stroke"],_t=["onClick"],bt=["stroke","d"],Bt=["cx","cy","fill","stroke"],xt=["x","y","width","height"],Ct={key:1},Et=["d","stroke"],wt=["d","fill","stroke"],Nt=["id"],Vt=["stop-color"],Ft=["stop-color"],Mt=["cx","cy","fill"],St=["cx","cy","fill"],Pt={key:0},Ot=["text-anchor","x","y","fill","font-size"],Lt=["text-anchor","x","y","fill","font-size"],Dt={key:2},Tt=["d","fill","stroke"],zt={key:5},jt={key:0},At=["stroke-dasharray","d","stroke","stroke-width"],It=["stroke-dasharray","d","stroke","stroke-width"],Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["d","stroke","stroke-width","fill"],qt=["d","stroke","stroke-width","fill"],Ut={key:1},Rt=["onClick"],Xt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["id"],Kt=["stop-color"],Qt=["stop-color"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["onMouseenter","onClick","d","fill"],nl=["onMouseenter","onClick","d"],rl=["onMouseenter","onClick","d","fill"],al=["onClick"],sl=["stroke","d"],ul=["cx","cy","fill","stroke"],il=["x","y","width","height"],cl={key:1},dl=["d","stroke"],hl=["d","fill","stroke"],vl=["id"],pl=["stop-color"],fl=["stop-color"],kl=["cx","cy","fill"],ml=["cx","cy","fill"],yl={key:0},gl=["text-anchor","x","y","fill","font-size"],$l=["text-anchor","x","y","fill","font-size"],_l={key:2},bl=["d","fill","stroke"],Bl={key:4,class:"vue-data-ui-watermark"},xl={key:6,ref:"source",dir:"auto"},Cl=["innerHTML"],El={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(re,{expose:ae,emit:se}){const{vue_ui_3d_bar:ue}=s.useConfig(),f=re,F=se,M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ie=e.ref(null),z=e.ref(null),x=e.ref(!1),j=e.ref(0),A=e.ref(0),l=e.computed({get:()=>H(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:I,keepUserOptionState:W}=Be.useUserOptionState({config:l.value}),{svgRef:G}=xe.useChartAccessibility({config:l.value.style.chart.title});function H(){const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ue});return a.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=H(),O.value=!l.value.userOptions.showOnChartHover,Z(),j.value+=1,A.value+=1,N.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:U,generatePdf:R,generateImage:X}=oe.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar",options:l.value.userOptions.print}),ce=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),N=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:de(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),b=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Z();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Z(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function de(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,T=i-d-v-o*r/2,pe=T>n.value.height/2?"top":"bottom",Q=64,fe=!!t;let ee=null,te=null;return fe&&(t=t.map((le,ke)=>({...le,value:le.value||0,color:s.lightenHexColor(c,ke/t.length)})),ee=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,pe==="top"?T-Q:T+Q,28,28,1.99999,2,1,360,105.25,14),te=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:ee,miniDonut:te,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DNKrSwVK.cjs"),me=require("./Title-BB8aHnbB.cjs"),oe=require("./usePrinter-DLcPCqJy.cjs"),ye=require("./vue-ui-skeleton-CTZbmUyf.cjs"),ge=require("./DataTable-Srxz0Y0x.cjs"),$e=require("./vue-ui-accordion-DnrO6tPy.cjs"),ne=require("./useNestedProp-DESqvXKi.cjs"),_e=require("./PackageVersion-QEru8Bxc.cjs"),be=require("./PenAndPaper-DQhErcF0.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],we={key:1,style:"width:100%;background:transparent"},Ne=["xmlns","viewBox"],Ve=["width","height"],Fe=["id"],Me=["stop-color"],Se=["stop-color"],Pe=["id"],Oe=["stop-color"],Le=["stop-color"],De=["id"],Te=["stop-color"],ze=["stop-color"],je=["id"],Ae=["stop-color"],Ie=["stop-color"],We=["stop-color"],Ge={key:1},He=["id"],qe=["stop-color"],Ue=["stop-color"],Re=["id"],Xe=["stop-color"],Ze=["stop-color"],Ye=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],et=["x","y","font-size","font-weight","fill"],tt=["x","y"],lt=["d","stroke"],ot=["d","stroke"],nt={key:4},rt={key:0},at=["stroke-dasharray","d","stroke","stroke-width"],st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct={key:1},dt=["d","stroke","stroke-width","fill"],ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt={key:2},ft=["d","fill","onMouseenter","onClick"],kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","onMouseenter","onClick"],gt=["d"],$t=["d","stroke"],_t=["onClick"],bt=["stroke","d"],Bt=["cx","cy","fill","stroke"],xt=["x","y","width","height"],Ct={key:1},Et=["d","stroke"],wt=["d","fill","stroke"],Nt=["id"],Vt=["stop-color"],Ft=["stop-color"],Mt=["cx","cy","fill"],St=["cx","cy","fill"],Pt={key:0},Ot=["text-anchor","x","y","fill","font-size"],Lt=["text-anchor","x","y","fill","font-size"],Dt={key:2},Tt=["d","fill","stroke"],zt={key:5},jt={key:0},At=["stroke-dasharray","d","stroke","stroke-width"],It=["stroke-dasharray","d","stroke","stroke-width"],Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["d","stroke","stroke-width","fill"],qt=["d","stroke","stroke-width","fill"],Ut={key:1},Rt=["onClick"],Xt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["id"],Kt=["stop-color"],Qt=["stop-color"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["onMouseenter","onClick","d","fill"],nl=["onMouseenter","onClick","d"],rl=["onMouseenter","onClick","d","fill"],al=["onClick"],sl=["stroke","d"],ul=["cx","cy","fill","stroke"],il=["x","y","width","height"],cl={key:1},dl=["d","stroke"],hl=["d","fill","stroke"],vl=["id"],pl=["stop-color"],fl=["stop-color"],kl=["cx","cy","fill"],ml=["cx","cy","fill"],yl={key:0},gl=["text-anchor","x","y","fill","font-size"],$l=["text-anchor","x","y","fill","font-size"],_l={key:2},bl=["d","fill","stroke"],Bl={key:4,class:"vue-data-ui-watermark"},xl={key:6,ref:"source",dir:"auto"},Cl=["innerHTML"],El={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(re,{expose:ae,emit:se}){const{vue_ui_3d_bar:ue}=s.useConfig(),f=re,F=se,M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ie=e.ref(null),z=e.ref(null),x=e.ref(!1),j=e.ref(0),A=e.ref(0),l=e.computed({get:()=>H(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:I,keepUserOptionState:W}=Be.useUserOptionState({config:l.value}),{svgRef:G}=xe.useChartAccessibility({config:l.value.style.chart.title});function H(){const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ue});return a.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=H(),O.value=!l.value.userOptions.showOnChartHover,Z(),j.value+=1,A.value+=1,N.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:U,generatePdf:R,generateImage:X}=oe.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar",options:l.value.userOptions.print}),ce=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),N=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:de(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),b=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Z();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Z(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function de(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,T=i-d-v-o*r/2,pe=T>n.value.height/2?"top":"bottom",Q=64,fe=!!t;let ee=null,te=null;return fe&&(t=t.map((le,ke)=>({...le,value:le.value||0,color:s.lightenHexColor(c,ke/t.length)})),ee=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,pe==="top"?T-Q:T+Q,28,28,1.99999,2,1,360,105.25,14),te=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:ee,miniDonut:te,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
2
2
  ${h},${i-d-o*r-v}
3
3
  C ${h},${i-d-o*r+v/2}
4
4
  ${u-y},${i-d-o*r+v/2}
@@ -1,13 +1,13 @@
1
1
  import { computed as T, ref as j, watch as He, onMounted as Re, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as O, normalizeClass as Me, createBlock as G, createCommentVNode as y, createSlots as Ze, withCtx as S, renderSlot as P, normalizeProps as Y, guardReactiveProps as J, createVNode as qe, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as B, mergeProps as Pe, createTextVNode as Xe, nextTick as Ye } from "vue";
2
- import { u as Je, c as je, t as Ke, p as K, a as Qe, b as et, d as tt, o as lt, e as Q, g as re, l as U, m as Te, f as D, X as ot, s as g, h as ee, i as te, j as Se, k as le, n as I, q as st, r as at } from "./index-CFNGWoG-.js";
3
- import { _ as nt } from "./Title-L3SvCQfU.js";
4
- import { u as rt, U as ut } from "./usePrinter-DlDdG5QU.js";
5
- import it from "./vue-ui-skeleton-Dexat5oZ.js";
6
- import { D as dt } from "./DataTable-DXHBxZCy.js";
7
- import ct from "./vue-ui-accordion-BVInR1D8.js";
8
- import { u as De } from "./useNestedProp-DHVUTEIl.js";
9
- import { _ as ht } from "./PackageVersion-C7x2IWLM.js";
10
- import { _ as vt } from "./PenAndPaper-8UX21OWr.js";
2
+ import { u as Je, c as je, t as Ke, p as K, a as Qe, b as et, d as tt, o as lt, e as Q, g as re, l as U, m as Te, f as D, X as ot, s as g, h as ee, i as te, j as Se, k as le, n as I, q as st, r as at } from "./index-BtffB6f5.js";
3
+ import { _ as nt } from "./Title-C-QYtKvr.js";
4
+ import { u as rt, U as ut } from "./usePrinter-Dhz_aG6t.js";
5
+ import it from "./vue-ui-skeleton-TyCPyS80.js";
6
+ import { D as dt } from "./DataTable-CvE8A7lW.js";
7
+ import ct from "./vue-ui-accordion-CA2uJ118.js";
8
+ import { u as De } from "./useNestedProp-eOdEEdyY.js";
9
+ import { _ as ht } from "./PackageVersion-C55ZpB3q.js";
10
+ import { _ as vt } from "./PenAndPaper-tc2Py5gw.js";
11
11
  import { u as ft } from "./useUserOptionState-BIvW1Kz7.js";
12
12
  import { u as pt } from "./useChartAccessibility-BWojgys7.js";
13
13
  import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, createElementBlock as v, openBlock as u, createElementVNode as n, normalizeClass as $, normalizeStyle as p, createCommentVNode as O, renderSlot as c, createBlock as D, normalizeProps as i, mergeProps as N, guardReactiveProps as m } from "vue";
2
- import w from "./BaseIcon-BRjEohPB.js";
3
- import { u as x } from "./useNestedProp-DHVUTEIl.js";
4
- import { u as B, c as I } from "./index-CFNGWoG-.js";
2
+ import w from "./BaseIcon-C__rjetC.js";
3
+ import { u as x } from "./useNestedProp-eOdEEdyY.js";
4
+ import { u as B, c as I } from "./index-BtffB6f5.js";
5
5
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const F = ["id"], P = {
7
7
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-Csib-bFs.cjs"),g=require("./useNestedProp-BVcjidN0.cjs"),u=require("./index-Be2lbQel.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){e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:c}=u.useConfig(),d=l,o=e.computed(()=>g.useNestedProp({userConfig:d.config,defaultConfig:c})),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-CbhcLp24.cjs"),g=require("./useNestedProp-DESqvXKi.cjs"),u=require("./index-DNKrSwVK.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){e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:c}=u.useConfig(),d=l,o=e.computed(()=>g.useNestedProp({userConfig:d.config,defaultConfig:c})),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,15 +1,15 @@
1
1
  import { computed as b, ref as v, watch as Ae, onMounted as Le, createElementBlock as r, openBlock as i, unref as u, normalizeStyle as W, normalizeClass as he, createBlock as L, createCommentVNode as y, renderSlot as h, createVNode as fe, createSlots as Se, withCtx as c, normalizeProps as S, guardReactiveProps as z, createElementVNode as d, Fragment as O, renderList as M, toDisplayString as w, createTextVNode as ce, nextTick as ze } from "vue";
2
- import { u as Oe, c as Ie, a as Fe, o as Me, e as Pe, v as f, X as Ne, s as X, w as ge, i as k, f as _, q as Re, r as De, x as Ge, y as Ue } from "./index-CFNGWoG-.js";
2
+ import { u as Oe, c as Ie, a as Fe, o as Me, e as Pe, v as f, X as Ne, s as X, w as ge, i as k, f as _, q as Re, r as De, x as Ge, y as Ue } from "./index-BtffB6f5.js";
3
3
  import { t as Be, u as Ee } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Ve } from "./Title-L3SvCQfU.js";
5
- import { u as We, U as Xe } from "./usePrinter-DlDdG5QU.js";
6
- import { _ as je } from "./Tooltip-DzsG-nM2.js";
7
- import { D as He } from "./DataTable-DXHBxZCy.js";
8
- import Ye from "./vue-ui-skeleton-Dexat5oZ.js";
9
- import qe from "./vue-ui-accordion-BVInR1D8.js";
10
- import { u as pe } from "./useNestedProp-DHVUTEIl.js";
11
- import { _ as Je } from "./PackageVersion-C7x2IWLM.js";
12
- import { _ as Ke } from "./PenAndPaper-8UX21OWr.js";
4
+ import { _ as Ve } from "./Title-C-QYtKvr.js";
5
+ import { u as We, U as Xe } from "./usePrinter-Dhz_aG6t.js";
6
+ import { _ as je } from "./Tooltip-Dak_maLr.js";
7
+ import { D as He } from "./DataTable-CvE8A7lW.js";
8
+ import Ye from "./vue-ui-skeleton-TyCPyS80.js";
9
+ import qe from "./vue-ui-accordion-CA2uJ118.js";
10
+ import { u as pe } from "./useNestedProp-eOdEEdyY.js";
11
+ import { _ as Je } from "./PackageVersion-C55ZpB3q.js";
12
+ import { _ as Ke } from "./PenAndPaper-tc2Py5gw.js";
13
13
  import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { u as Ze } from "./useChartAccessibility-BWojgys7.js";
15
15
  import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Be2lbQel.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),ie=require("./Title-DUa01RoU.cjs"),J=require("./usePrinter-uMLnqx4N.cjs"),ne=require("./Tooltip-DxTkpBZU.cjs"),ue=require("./DataTable-Bg1jcIr-.cjs"),de=require("./vue-ui-skeleton-ByGfybu8.cjs"),ce=require("./vue-ui-accordion-BL55ml0w.cjs"),K=require("./useNestedProp-BVcjidN0.cjs"),ve=require("./PackageVersion-DgyGLNuh.cjs"),ye=require("./PenAndPaper-Cvmkcq22.cjs"),he=require("./useUserOptionState-BgepsfED.cjs"),fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],be=["xmlns","viewBox"],me=["x","y","width","height"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["id"],_e=["stop-color"],Ne=["stop-color"],Se=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Te=["x","y","width","height","fill","rx"],Be=["x","y","width","height","fill","rx"],Ae={key:0},$e=["x","y","fill","font-size","font-weight"],Ee=["x","y","fill","font-size","font-weight"],Ve={key:1},ze=["x","y","font-size","fill","font-weight"],Oe={key:2},Pe={key:0},Ie=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x1","x2","y1","y2","stroke","stroke-width"],qe=["x","y","font-size","fill","font-weight"],Ue=["x","y","font-size","fill","font-weight"],Ge=["x","y","width","height","fill","onMouseover"],He={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:Q}){const{vue_ui_age_pyramid:Z}=r.useConfig(),u=T,m=e.computed(()=>!!u.dataset&&u.dataset.length),v=e.ref(r.createUid()),ee=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),B=e.ref(0),g=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:N,setUserOptionsVisibility:O,keepUserOptionState:P}=he.useUserOptionState({config:t.value}),{svgRef:I}=fe.useChartAccessibility({config:t.value.style.title});function F(){const l=K.useNestedProp({userConfig:u.config,defaultConfig:Z});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),N.value=!t.value.userOptions.showOnChartHover,D(),V.value+=1,z.value+=1,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const R=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=Y.throttle(()=>{const{width:i,height:o}=Y.useResponsive({chart:g.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});requestAnimationFrame(()=>{d.value.width=i,d.value.height=o})});R.value=new ResizeObserver(l),R.value.observe(g.value.parentNode)}}const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=J.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid",options:t.value.userOptions.print}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),c=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}),s=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:o,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),le=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=e.computed(()=>{const l=oe(b.value/5),i=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*s.value.leftChart.width}),o.push({value:Math.abs(X),x:s.value.left+s.value.width/2+X/b.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:o}});function oe(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),h=e.computed(()=>u.dataset.length),ae=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),f=e.computed(()=>ae.value.map((l,i)=>{const o=s.value.top+s.value.height/h.value*i,a=s.value.height/h.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:t.value.style.layout.bars.left.color,x:s.value.leftChart.right-l.left.proportionToMax*s.value.leftChart.width,width:r.checkNaN(l.left.proportionToMax*s.value.leftChart.width),height:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:a}}})),S=e.ref(null);function se(l,i){x.value=l,S.value={datapoint:i,seriesIndex:l,series:f.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value})))_.value=o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value});else{let a="";const n=f.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(n.age),r.dataLabel({v:r.checkNaN(n.age)}),{datapoint:i,seriesIndex:l})}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value),r.dataLabel({v:r.checkNaN(n.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value)+r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.right.value)+r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+="</div>",_.value=`<div>${a}</div>`}C.value=!0}function H(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:i,config:o,colNames:l}}),p=e.ref(!1);function re(l){p.value=l,B.value+=1}function W(){c.value.showTable=!c.value.showTable}function j(){c.value.showTooltip=!c.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return Q({generatePdf:U,generateCsv:H,generateImage:G,toggleTable:W,toggleTooltip:j,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:i[2]||(i[2]=()=>e.unref(O)(!0)),onMouseleave:i[3]||(i[3]=()=>e.unref(O)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye._sfc_main,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(P)||e.unref(N))?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:ee,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:v.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:p.value,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:H,onGenerateImage:e.unref(G),onToggleTable:W,onToggleTooltip:j,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(P)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:a})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:a})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.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(ve._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,me)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.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,ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.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,we)],8,xe),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.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,_e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,Ne)],8,Ce)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(r.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Se),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Te),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Be)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ae,[e.createElementVNode("text",{x:s.value.left,y:s.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,$e),e.createElementVNode("text",{x:s.value.right,y:s.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,Ee)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.centerX,y:s.value.top+s.value.height/h.value*a+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,o,e.unref(r.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,ze)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Oe,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Pe,[e.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Ie),e.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Fe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Re)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:s.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(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Me)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:s.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(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,qe)]))),256)),e.createElementVNode("text",{x:s.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,Ue)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/h.value*a-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/h.value<=0?1e-4:s.value.height/h.value,fill:x.value!==null&&x.value===a?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>se(a,o),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ge)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de.default,{key:6,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),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ne._sfc_main,{show:c.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:g.value,content:_.value,isFullscreen:p.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({...S.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...S.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(ce.default,{key:8,hideDetails:"",config:{open:c.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(ue.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ge))}},je=pe._export_sfc(We,[["__scopeId","data-v-beb1c78c"]]);exports.default=je;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DNKrSwVK.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),ie=require("./Title-BB8aHnbB.cjs"),J=require("./usePrinter-DLcPCqJy.cjs"),ne=require("./Tooltip-CI0vrVlU.cjs"),ue=require("./DataTable-Srxz0Y0x.cjs"),de=require("./vue-ui-skeleton-CTZbmUyf.cjs"),ce=require("./vue-ui-accordion-DnrO6tPy.cjs"),K=require("./useNestedProp-DESqvXKi.cjs"),ve=require("./PackageVersion-QEru8Bxc.cjs"),ye=require("./PenAndPaper-DQhErcF0.cjs"),he=require("./useUserOptionState-BgepsfED.cjs"),fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],be=["xmlns","viewBox"],me=["x","y","width","height"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["id"],_e=["stop-color"],Ne=["stop-color"],Se=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Te=["x","y","width","height","fill","rx"],Be=["x","y","width","height","fill","rx"],Ae={key:0},$e=["x","y","fill","font-size","font-weight"],Ee=["x","y","fill","font-size","font-weight"],Ve={key:1},ze=["x","y","font-size","fill","font-weight"],Oe={key:2},Pe={key:0},Ie=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x1","x2","y1","y2","stroke","stroke-width"],qe=["x","y","font-size","fill","font-weight"],Ue=["x","y","font-size","fill","font-weight"],Ge=["x","y","width","height","fill","onMouseover"],He={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:Q}){const{vue_ui_age_pyramid:Z}=r.useConfig(),u=T,m=e.computed(()=>!!u.dataset&&u.dataset.length),v=e.ref(r.createUid()),ee=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),B=e.ref(0),g=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:N,setUserOptionsVisibility:O,keepUserOptionState:P}=he.useUserOptionState({config:t.value}),{svgRef:I}=fe.useChartAccessibility({config:t.value.style.title});function F(){const l=K.useNestedProp({userConfig:u.config,defaultConfig:Z});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),N.value=!t.value.userOptions.showOnChartHover,D(),V.value+=1,z.value+=1,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const R=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=Y.throttle(()=>{const{width:i,height:o}=Y.useResponsive({chart:g.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});requestAnimationFrame(()=>{d.value.width=i,d.value.height=o})});R.value=new ResizeObserver(l),R.value.observe(g.value.parentNode)}}const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=J.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid",options:t.value.userOptions.print}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),c=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}),s=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:o,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),le=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=e.computed(()=>{const l=oe(b.value/5),i=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*s.value.leftChart.width}),o.push({value:Math.abs(X),x:s.value.left+s.value.width/2+X/b.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:o}});function oe(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),h=e.computed(()=>u.dataset.length),ae=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),f=e.computed(()=>ae.value.map((l,i)=>{const o=s.value.top+s.value.height/h.value*i,a=s.value.height/h.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:t.value.style.layout.bars.left.color,x:s.value.leftChart.right-l.left.proportionToMax*s.value.leftChart.width,width:r.checkNaN(l.left.proportionToMax*s.value.leftChart.width),height:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:a}}})),S=e.ref(null);function se(l,i){x.value=l,S.value={datapoint:i,seriesIndex:l,series:f.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value})))_.value=o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value});else{let a="";const n=f.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(n.age),r.dataLabel({v:r.checkNaN(n.age)}),{datapoint:i,seriesIndex:l})}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value),r.dataLabel({v:r.checkNaN(n.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value)+r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.right.value)+r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+="</div>",_.value=`<div>${a}</div>`}C.value=!0}function H(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:i,config:o,colNames:l}}),p=e.ref(!1);function re(l){p.value=l,B.value+=1}function W(){c.value.showTable=!c.value.showTable}function j(){c.value.showTooltip=!c.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return Q({generatePdf:U,generateCsv:H,generateImage:G,toggleTable:W,toggleTooltip:j,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:i[2]||(i[2]=()=>e.unref(O)(!0)),onMouseleave:i[3]||(i[3]=()=>e.unref(O)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye._sfc_main,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(P)||e.unref(N))?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:ee,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:v.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:p.value,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:H,onGenerateImage:e.unref(G),onToggleTable:W,onToggleTooltip:j,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(P)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:a})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:a})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.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(ve._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,me)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.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,ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.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,we)],8,xe),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.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,_e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,Ne)],8,Ce)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(r.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Se),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Te),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Be)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ae,[e.createElementVNode("text",{x:s.value.left,y:s.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,$e),e.createElementVNode("text",{x:s.value.right,y:s.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,Ee)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.centerX,y:s.value.top+s.value.height/h.value*a+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,o,e.unref(r.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,ze)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Oe,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Pe,[e.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Ie),e.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Fe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Re)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:s.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(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.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,Me)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:s.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(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,qe)]))),256)),e.createElementVNode("text",{x:s.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,Ue)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/h.value*a-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/h.value<=0?1e-4:s.value.height/h.value,fill:x.value!==null&&x.value===a?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>se(a,o),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ge)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de.default,{key:6,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),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ne._sfc_main,{show:c.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:g.value,content:_.value,isFullscreen:p.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({...S.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...S.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(ce.default,{key:8,hideDetails:"",config:{open:c.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(ue.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ge))}},je=pe._export_sfc(We,[["__scopeId","data-v-beb1c78c"]]);exports.default=je;
@@ -1,5 +1,5 @@
1
- import { z as k, A as p, u as v, B as w } from "./index-CFNGWoG-.js";
2
- import { d as A } from "./dom-to-png-pcDdsfUp.js";
1
+ import { z as k, A as p, u as v, B as w } from "./index-BtffB6f5.js";
2
+ import { d as A } from "./dom-to-png-BBk5N1AI.js";
3
3
  import { E as M } from "./jspdf.es.min-t_OLULUR.js";
4
4
  import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
5
5
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-Be2lbQel.cjs"),N=require("./dom-to-png-_Yw7_Zl2.cjs"),I=require("./jspdf.es.min-C518mmma.cjs"),i=require("vue"),b=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 o=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(o)},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 o=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-DNKrSwVK.cjs"),N=require("./dom-to-png-LZPHfRF7.cjs"),I=require("./jspdf.es.min-C518mmma.cjs"),i=require("vue"),b=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 o=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(o)},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 o=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
2
2
  <defs>
3
3
  <marker
4
4
  id="${e.id}"