vue-data-ui 2.4.0 → 2.4.2

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 (202) hide show
  1. package/README.md +56 -54
  2. package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
  3. package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
  4. package/dist/BaseIcon-BGExhz6v.cjs +1 -0
  5. package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
  6. package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
  7. package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
  8. package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
  9. package/dist/Legend-YZ7Hz3o1.cjs +1 -0
  10. package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
  11. package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
  12. package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
  13. package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
  14. package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
  15. package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
  16. package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
  17. package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
  18. package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
  19. package/dist/Title-Co5jI5ed.cjs +1 -0
  20. package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
  21. package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
  22. package/dist/documentation/installation.md +10 -9
  23. package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
  24. package/dist/index-FfZRtJ6A.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +101 -20
  27. package/dist/types/vue-data-ui.d.ts +101 -20
  28. package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
  29. package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
  30. package/dist/usePrinter-BCAFeO_J.cjs +1 -0
  31. package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
  32. package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
  33. package/dist/vue-data-ui-W7nnqn0v.js +261 -0
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +52 -51
  36. package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
  37. package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
  38. package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
  39. package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
  40. package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
  41. package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
  42. package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
  43. package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
  44. package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
  45. package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
  46. package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
  48. package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
  50. package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
  51. package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
  52. package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
  53. package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
  55. package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
  56. package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
  57. package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
  58. package/dist/vue-ui-donut-CplNylps.cjs +1 -0
  59. package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
  61. package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
  62. package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
  63. package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
  64. package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
  65. package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
  66. package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
  68. package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
  69. package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
  72. package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
  73. package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
  74. package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
  75. package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
  78. package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
  79. package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
  80. package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
  82. package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
  83. package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
  84. package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
  85. package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
  86. package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
  87. package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
  88. package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
  89. package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
  91. package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
  92. package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
  93. package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
  94. package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
  96. package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
  97. package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
  98. package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
  99. package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
  100. package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
  101. package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
  102. package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
  104. package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
  106. package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
  109. package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
  110. package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
  111. package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
  116. package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
  117. package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
  120. package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
  121. package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
  122. package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
  123. package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
  124. package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
  125. package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
  127. package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
  129. package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
  130. package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
  131. package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
  132. package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
  133. package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
  134. package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
  135. package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
  136. package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
  137. package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
  138. package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
  139. package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
  140. package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
  141. package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
  142. package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
  143. package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
  145. package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
  146. package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
  147. package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
  148. package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
  149. package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
  150. package/package.json +1 -1
  151. package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
  152. package/dist/Legend-CHQgjBuK.cjs +0 -1
  153. package/dist/Title-BHmTg9iK.cjs +0 -1
  154. package/dist/index-Dfhvf8hT.cjs +0 -9
  155. package/dist/usePrinter-BQQasUin.cjs +0 -1
  156. package/dist/vue-data-ui-BdSFeW_X.js +0 -256
  157. package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
  158. package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
  159. package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
  160. package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
  161. package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
  162. package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
  163. package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
  164. package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
  165. package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
  166. package/dist/vue-ui-flow-DreN8go4.js +0 -484
  167. package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
  168. package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
  169. package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
  170. package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
  171. package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
  172. package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
  173. package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
  175. package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
  177. package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
  179. package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
  181. package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
  182. package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
  183. package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
  184. package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
  185. package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
  186. package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
  188. package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
  189. package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
  191. package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
  192. package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
  193. package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
  194. package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
  195. package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
  196. package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
  197. package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
  198. package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
  199. package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
  200. package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
  201. package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
  202. package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
@@ -1,19 +1,20 @@
1
- import { computed as b, ref as v, watch as be, onMounted as xe, openBlock as i, createElementBlock as r, normalizeClass as oe, normalizeStyle as se, createBlock as I, createCommentVNode as h, unref as d, createSlots as me, withCtx as g, renderSlot as p, normalizeProps as N, guardReactiveProps as R, createVNode as ie, createElementVNode as n, Fragment as L, renderList as O, toDisplayString as w, createTextVNode as ue, nextTick as we } from "vue";
2
- import { u as _e, c as ke, t as Ce, o as $e, e as Te, v as y, X as Le, s as E, w as re, i as _, f as k, x as Ae, y as Se, q as ze, r as Ie } from "./index-B0CpCD8z.js";
3
- import { t as Oe, u as Fe } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Me } from "./Title-DlVZnHjs.js";
5
- import { u as Pe, U as Ne } from "./usePrinter-Dr30K4cu.js";
6
- import { _ as Re } from "./Tooltip-CveCRFgK.js";
7
- import { D as De } from "./DataTable-DAgyf9zN.js";
8
- import Ge from "./vue-ui-skeleton-DEv_1TFa.js";
9
- import Be from "./vue-ui-accordion-CmENcGVW.js";
10
- import { u as ne } from "./useNestedProp-DGWP4D-K.js";
11
- import { _ as Ee } from "./PackageVersion-wB6dCDZw.js";
12
- import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"], je = ["stop-color"], He = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ke = ["x", "y", "width", "height", "fill", "rx"], Qe = ["x", "y", "width", "height", "fill", "rx"], Ze = ["x", "y", "width", "height", "fill", "rx"], et = ["x", "y", "width", "height", "fill", "rx"], tt = { key: 0 }, lt = ["x", "y", "fill", "font-size", "font-weight"], at = ["x", "y", "fill", "font-size", "font-weight"], ot = { key: 1 }, st = ["x", "y", "font-size", "fill", "font-weight"], it = { key: 2 }, ut = { key: 0 }, rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vt = ["x", "y", "font-size", "fill", "font-weight"], yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ht = ["x", "y", "font-size", "fill", "font-weight"], ft = ["x", "y", "font-size", "fill", "font-weight"], ct = ["x", "y", "width", "height", "fill", "onMouseover"], gt = {
14
- key: 3,
1
+ import { computed as b, ref as v, watch as me, onMounted as we, openBlock as i, createElementBlock as r, normalizeClass as ie, normalizeStyle as ue, createBlock as L, createCommentVNode as y, unref as d, createSlots as ke, withCtx as g, renderSlot as p, normalizeProps as O, guardReactiveProps as P, createVNode as re, createElementVNode as n, Fragment as S, renderList as F, toDisplayString as w, createTextVNode as ne, nextTick as _e } from "vue";
2
+ import { u as Ce, c as $e, t as Ae, o as Te, e as Le, v as h, X as Se, s as X, w as de, i as k, f as _, x as ze, y as Ie, q as Oe, r as Pe } from "./index-DnVHQ2xI.js";
3
+ import { t as Fe, u as Me } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as Ne } from "./Title-5VmBwT4i.js";
5
+ import { u as Re, U as De } from "./usePrinter-BEeNAqS5.js";
6
+ import { _ as Ge } from "./Tooltip-Cj4EF7v1.js";
7
+ import { D as Be } from "./DataTable-DTk7C4Pr.js";
8
+ import Ee from "./vue-ui-skeleton-aZmkNzAe.js";
9
+ import We from "./vue-ui-accordion-DspS4q3f.js";
10
+ import { u as ve } from "./useNestedProp-Cox0K0Y5.js";
11
+ import { _ as Xe } from "./PackageVersion-CvCRsT5_.js";
12
+ import { P as Ue } from "./PenAndPaper-Jb0pLt3G.js";
13
+ import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Ye = ["id"], je = ["xmlns", "viewBox"], He = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ke = ["id"], Qe = ["stop-color"], Ze = ["stop-color"], et = ["x", "y", "width", "height", "fill", "rx"], tt = ["x", "y", "width", "height", "fill", "rx"], lt = ["x", "y", "width", "height", "fill", "rx"], at = ["x", "y", "width", "height", "fill", "rx"], ot = { key: 0 }, st = ["x", "y", "fill", "font-size", "font-weight"], it = ["x", "y", "fill", "font-size", "font-weight"], ut = { key: 1 }, rt = ["x", "y", "font-size", "fill", "font-weight"], nt = { key: 2 }, dt = { key: 0 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ft = ["x", "y", "font-size", "fill", "font-weight"], ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "width", "height", "fill", "onMouseover"], xt = {
15
+ key: 4,
15
16
  class: "vue-data-ui-watermark"
16
- }, pt = {
17
+ }, mt = {
17
18
  __name: "vue-ui-age-pyramid",
18
19
  props: {
19
20
  config: {
@@ -29,46 +30,46 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
29
30
  }
30
31
  }
31
32
  },
32
- setup(W, { expose: de }) {
33
- const f = W, { vue_ui_age_pyramid: ve } = _e(), F = b(() => !!f.dataset && f.dataset.length), x = v(ke()), ye = v(null), D = v(!1), G = v(""), M = v(null), X = v(0), A = v(null), U = v(null), V = v(0), Y = v(0), e = b({
34
- get: () => j(),
33
+ setup(U, { expose: ye }) {
34
+ const f = U, { vue_ui_age_pyramid: he } = Ce(), M = b(() => !!f.dataset && f.dataset.length), x = v($e()), fe = v(null), G = v(!1), B = v(""), N = v(null), V = v(0), C = v(null), Y = v(null), j = v(0), H = v(0), e = b({
35
+ get: () => q(),
35
36
  set: (t) => t
36
37
  });
37
- function j() {
38
- const t = ne({
38
+ function q() {
39
+ const t = ve({
39
40
  userConfig: f.config,
40
- defaultConfig: ve
41
+ defaultConfig: he
41
42
  });
42
43
  return t.theme ? {
43
- ...ne({
44
- userConfig: Ce.vue_ui_age_pyramid[t.theme] || f.config,
44
+ ...ve({
45
+ userConfig: Ae.vue_ui_age_pyramid[t.theme] || f.config,
45
46
  defaultConfig: t
46
47
  })
47
48
  } : t;
48
49
  }
49
- be(() => f.config, (t) => {
50
- e.value = j(), q(), V.value += 1, Y.value += 1;
50
+ me(() => f.config, (t) => {
51
+ e.value = q(), K(), j.value += 1, H.value += 1;
51
52
  }, { deep: !0 });
52
- const H = v(null);
53
- xe(() => {
54
- q();
53
+ const J = v(null);
54
+ we(() => {
55
+ K();
55
56
  });
56
- function q() {
57
- if ($e(f.dataset) && Te({
57
+ function K() {
58
+ if (Te(f.dataset) && Le({
58
59
  componentName: "VueUiAgePyramid",
59
60
  type: "dataset"
60
61
  }), e.value.responsive) {
61
- const t = Oe(() => {
62
- const { width: s, height: l } = Fe({
63
- chart: A.value,
64
- title: e.value.style.title.text ? U.value : null
62
+ const t = Fe(() => {
63
+ const { width: s, height: l } = Me({
64
+ chart: C.value,
65
+ title: e.value.style.title.text ? Y.value : null
65
66
  });
66
67
  c.value.width = s, c.value.height = l;
67
68
  });
68
- H.value = new ResizeObserver(t), H.value.observe(A.value.parentNode);
69
+ J.value = new ResizeObserver(t), J.value.observe(C.value.parentNode);
69
70
  }
70
71
  }
71
- const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = Pe({
72
+ const { isPrinting: Q, isImaging: Z, generatePdf: ee, generateImage: te } = Re({
72
73
  elementId: `vue-ui-age-pyramid_${x.value}`,
73
74
  fileName: e.value.style.title.text || "vue-ui-age-pyramid"
74
75
  }), m = v({
@@ -96,16 +97,16 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
96
97
  left: s + t / 2 + e.value.style.layout.centerSlit.width
97
98
  }
98
99
  };
99
- }), he = b(() => f.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), C = b(() => {
100
- const t = fe(S.value / 5), s = [], l = [];
100
+ }), ce = b(() => f.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), $ = b(() => {
101
+ const t = ge(z.value / 5), s = [], l = [];
101
102
  for (let a = 0; a <= 5; a += 1) {
102
- const u = t * a, ae = t * (a - 5);
103
+ const u = t * a, se = t * (a - 5);
103
104
  s.push({
104
105
  value: u,
105
- x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u / S.value * o.value.leftChart.width
106
+ x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u / z.value * o.value.leftChart.width
106
107
  }), l.push({
107
- value: Math.abs(ae),
108
- x: o.value.left + o.value.width / 2 + ae / S.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
108
+ value: Math.abs(se),
109
+ x: o.value.left + o.value.width / 2 + se / z.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
109
110
  });
110
111
  }
111
112
  return {
@@ -113,25 +114,25 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
113
114
  left: l
114
115
  };
115
116
  });
116
- function fe(t) {
117
+ function ge(t) {
117
118
  if (t === 0) return 0;
118
119
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
119
120
  let a;
120
121
  return t < 0, a = Math.round(t / l) * l, a;
121
122
  }
122
- const S = b(() => Math.max(...f.dataset.flatMap((t) => t.slice(-2).map((s) => y(s))))), $ = b(() => f.dataset.length), ce = b(() => f.dataset.map((t) => ({
123
+ const z = b(() => Math.max(...f.dataset.flatMap((t) => t.slice(-2).map((s) => h(s))))), A = b(() => f.dataset.length), pe = b(() => f.dataset.map((t) => ({
123
124
  segment: t[0],
124
125
  age: t[1],
125
126
  left: {
126
127
  value: t[2],
127
- proportionToMax: t[2] / S.value
128
+ proportionToMax: t[2] / z.value
128
129
  },
129
130
  right: {
130
131
  value: t[3],
131
- proportionToMax: t[3] / S.value
132
+ proportionToMax: t[3] / z.value
132
133
  }
133
- }))), T = b(() => ce.value.map((t, s) => {
134
- const l = o.value.top + o.value.height / $.value * s, a = o.value.height / $.value - e.value.style.layout.bars.gap;
134
+ }))), T = b(() => pe.value.map((t, s) => {
135
+ const l = o.value.top + o.value.height / A.value * s, a = o.value.height / A.value - e.value.style.layout.bars.gap;
135
136
  return {
136
137
  segment: t.segment,
137
138
  age: t.age,
@@ -140,7 +141,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
140
141
  y: l,
141
142
  color: e.value.style.layout.bars.left.color,
142
143
  x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
143
- width: y(t.left.proportionToMax * o.value.leftChart.width),
144
+ width: h(t.left.proportionToMax * o.value.leftChart.width),
144
145
  height: a
145
146
  },
146
147
  right: {
@@ -148,20 +149,20 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
148
149
  y: l,
149
150
  color: e.value.style.layout.bars.right.color,
150
151
  x: o.value.rightChart.left,
151
- width: y(t.right.proportionToMax * o.value.rightChart.width),
152
+ width: h(t.right.proportionToMax * o.value.rightChart.width),
152
153
  height: a
153
154
  }
154
155
  };
155
- })), B = v(null);
156
- function ge(t, s) {
157
- M.value = t, B.value = {
156
+ })), E = v(null);
157
+ function be(t, s) {
158
+ N.value = t, E.value = {
158
159
  datapoint: s,
159
160
  seriesIndex: t,
160
161
  series: T.value,
161
162
  config: e.value
162
163
  };
163
164
  const l = e.value.style.tooltip.customFormat;
164
- if (Ae(l) && Se(() => l({
165
+ if (ze(l) && Ie(() => l({
165
166
  seriesIndex: t,
166
167
  datapoint: {
167
168
  segment: s[0],
@@ -172,7 +173,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
172
173
  series: T.value,
173
174
  config: e.value
174
175
  })))
175
- G.value = l({
176
+ B.value = l({
176
177
  seriesIndex: t,
177
178
  datapoint: {
178
179
  segment: s[0],
@@ -186,43 +187,43 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
186
187
  else {
187
188
  let a = "";
188
189
  const u = T.value[t];
189
- a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${_(
190
+ a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${k(
190
191
  e.value.style.layout.dataLabels.yAxis.formatter,
191
- y(u.age),
192
- k({ v: y(u.age) }),
192
+ h(u.age),
193
+ _({ v: h(u.age) }),
193
194
  { datapoint: s, seriesIndex: t }
194
- )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${_(
195
+ )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${k(
195
196
  e.value.style.layout.dataLabels.xAxis.formatter,
196
- y(u.left.value),
197
- k({ v: y(u.left.value) }),
197
+ h(u.left.value),
198
+ _({ v: h(u.left.value) }),
198
199
  { datapoint: s, seriesIndex: t }
199
- )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${_(
200
+ )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${k(
200
201
  e.value.style.layout.dataLabels.xAxis.formatter,
201
- y(u.right.value),
202
- k({ v: y(u.right.value) }),
202
+ h(u.right.value),
203
+ _({ v: h(u.right.value) }),
203
204
  { datapoint: s, seriesIndex: t }
204
- )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${_(
205
+ )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${k(
205
206
  e.value.style.layout.dataLabels.xAxis.formatter,
206
- y(u.right.value) + y(u.left.value),
207
- k({ v: y(u.right.value) + y(u.left.value) }),
207
+ h(u.right.value) + h(u.left.value),
208
+ _({ v: h(u.right.value) + h(u.left.value) }),
208
209
  { datapoint: s, seriesIndex: t }
209
- )}</b></div></div>`, a += "</div>", G.value = `<div>${a}</div>`;
210
+ )}</b></div></div>`, a += "</div>", B.value = `<div>${a}</div>`;
210
211
  }
211
- D.value = !0;
212
+ G.value = !0;
212
213
  }
213
- function ee() {
214
- we(() => {
214
+ function le() {
215
+ _e(() => {
215
216
  const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s = f.dataset.map((u) => [
216
217
  u[0],
217
218
  u[1],
218
219
  u[2],
219
220
  u[3],
220
221
  u[2] + u[3]
221
- ]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = ze(l);
222
- Ie({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
222
+ ]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Oe(l);
223
+ Pe({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
223
224
  });
224
225
  }
225
- const P = b(() => {
226
+ const R = b(() => {
226
227
  const t = [
227
228
  e.value.translations.year,
228
229
  e.value.translations.age,
@@ -249,37 +250,50 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
249
250
  breakpoint: e.value.table.responsiveBreakpoint
250
251
  };
251
252
  return { head: t, body: s, config: l, colNames: t };
252
- }), z = v(!1);
253
- function pe(t) {
254
- z.value = t, X.value += 1;
253
+ }), I = v(!1);
254
+ function xe(t) {
255
+ I.value = t, V.value += 1;
255
256
  }
256
- function te() {
257
+ function ae() {
257
258
  m.value.showTable = !m.value.showTable;
258
259
  }
259
- function le() {
260
+ function oe() {
260
261
  m.value.showTooltip = !m.value.showTooltip;
261
262
  }
262
- return de({
263
- generatePdf: Q,
264
- generateCsv: ee,
265
- generateImage: Z,
266
- toggleTable: te,
267
- toggleTooltip: le
263
+ const D = v(!1);
264
+ function W() {
265
+ D.value = !D.value;
266
+ }
267
+ return ye({
268
+ generatePdf: ee,
269
+ generateCsv: le,
270
+ generateImage: te,
271
+ toggleTable: ae,
272
+ toggleTooltip: oe,
273
+ toggleAnnotator: W
268
274
  }), (t, s) => (i(), r("div", {
269
- class: oe(`vue-ui-age-pyramid ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
275
+ class: ie(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
270
276
  ref_key: "agePyramid",
271
- ref: A,
277
+ ref: C,
272
278
  id: `vue-ui-age-pyramid_${x.value}`,
273
- style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
279
+ style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
274
280
  }, [
275
- e.value.style.title.text ? (i(), r("div", {
281
+ e.value.userOptions.buttons.annotator ? (i(), L(Ue, {
276
282
  key: 0,
283
+ parent: C.value,
284
+ backgroundColor: e.value.style.backgroundColor,
285
+ color: e.value.style.color,
286
+ active: D.value,
287
+ onClose: W
288
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
289
+ e.value.style.title.text ? (i(), r("div", {
290
+ key: 1,
277
291
  ref_key: "chartTitle",
278
- ref: U,
292
+ ref: Y,
279
293
  style: "width:100%;background:transparent"
280
294
  }, [
281
- (i(), I(Me, {
282
- key: `title_${V.value}`,
295
+ (i(), L(Ne, {
296
+ key: `title_${j.value}`,
283
297
  config: {
284
298
  title: {
285
299
  cy: "pyramid-div-title",
@@ -291,15 +305,15 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
291
305
  }
292
306
  }
293
307
  }, null, 8, ["config"]))
294
- ], 512)) : h("", !0),
295
- e.value.userOptions.show && F.value ? (i(), I(Ne, {
308
+ ], 512)) : y("", !0),
309
+ e.value.userOptions.show && M.value ? (i(), L(De, {
296
310
  ref_key: "details",
297
- ref: ye,
298
- key: `user_options_${X.value}`,
311
+ ref: fe,
312
+ key: `user_options_${V.value}`,
299
313
  backgroundColor: e.value.style.backgroundColor,
300
314
  color: e.value.style.color,
301
- isImaging: d(K),
302
- isPrinting: d(J),
315
+ isImaging: d(Z),
316
+ isPrinting: d(Q),
303
317
  uid: x.value,
304
318
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
305
319
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -307,18 +321,21 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
307
321
  hasImg: e.value.userOptions.buttons.img,
308
322
  hasTable: e.value.userOptions.buttons.table,
309
323
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
310
- isFullscreen: z.value,
324
+ isFullscreen: I.value,
311
325
  isTooltip: m.value.showTooltip,
312
326
  titles: { ...e.value.userOptions.buttonTitles },
313
- chartElement: A.value,
327
+ chartElement: C.value,
314
328
  position: e.value.userOptions.position,
315
- onToggleFullscreen: pe,
316
- onGeneratePdf: d(Q),
317
- onGenerateCsv: ee,
318
- onGenerateImage: d(Z),
319
- onToggleTable: te,
320
- onToggleTooltip: le
321
- }, me({ _: 2 }, [
329
+ hasAnnotator: e.value.userOptions.buttons.annotator,
330
+ isAnnotation: D.value,
331
+ onToggleFullscreen: xe,
332
+ onGeneratePdf: d(ee),
333
+ onGenerateCsv: le,
334
+ onGenerateImage: d(te),
335
+ onToggleTable: ae,
336
+ onToggleTooltip: oe,
337
+ onToggleAnnotator: W
338
+ }, ke({ _: 2 }, [
322
339
  t.$slots.optionTooltip ? {
323
340
  name: "optionTooltip",
324
341
  fn: g(() => [
@@ -357,19 +374,26 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
357
374
  t.$slots.optionFullscreen ? {
358
375
  name: "optionFullscreen",
359
376
  fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
360
- p(t.$slots, "optionFullscreen", N(R({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
377
+ p(t.$slots, "optionFullscreen", O(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
361
378
  ]),
362
379
  key: "5"
380
+ } : void 0,
381
+ t.$slots.optionAnnotator ? {
382
+ name: "optionAnnotator",
383
+ fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
384
+ p(t.$slots, "optionAnnotator", O(P({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
385
+ ]),
386
+ key: "6"
363
387
  } : void 0
364
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
365
- F.value ? (i(), r("svg", {
366
- key: 2,
367
- xmlns: d(Le),
368
- class: oe({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
388
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
389
+ M.value ? (i(), r("svg", {
390
+ key: 3,
391
+ xmlns: d(Se),
392
+ class: ie({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
369
393
  viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
370
- style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
394
+ style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
371
395
  }, [
372
- ie(Ee),
396
+ re(Xe),
373
397
  n("defs", null, [
374
398
  n("linearGradient", {
375
399
  id: `age_pyramid_left_${x.value}`,
@@ -381,12 +405,12 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
381
405
  n("stop", {
382
406
  offset: "0%",
383
407
  "stop-color": e.value.style.layout.bars.left.color
384
- }, null, 8, Ye),
408
+ }, null, 8, qe),
385
409
  n("stop", {
386
410
  offset: "100%",
387
- "stop-color": d(E)(d(re)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
388
- }, null, 8, je)
389
- ], 8, Ve),
411
+ "stop-color": d(X)(d(de)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
412
+ }, null, 8, Je)
413
+ ], 8, He),
390
414
  n("linearGradient", {
391
415
  id: `age_pyramid_right_${x.value}`,
392
416
  x1: "0%",
@@ -396,23 +420,23 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
396
420
  }, [
397
421
  n("stop", {
398
422
  offset: "0%",
399
- "stop-color": d(E)(d(re)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
400
- }, null, 8, qe),
423
+ "stop-color": d(X)(d(de)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
424
+ }, null, 8, Qe),
401
425
  n("stop", {
402
426
  offset: "100%",
403
427
  "stop-color": e.value.style.layout.bars.right.color
404
- }, null, 8, Je)
405
- ], 8, He)
428
+ }, null, 8, Ze)
429
+ ], 8, Ke)
406
430
  ]),
407
- (i(!0), r(L, null, O(T.value, (l, a) => (i(), r("g", null, [
431
+ (i(!0), r(S, null, F(T.value, (l, a) => (i(), r("g", null, [
408
432
  n("rect", {
409
433
  x: l.left.x,
410
434
  y: l.left.y,
411
- width: d(y)(l.left.width <= 0 ? 1e-4 : l.left.width),
435
+ width: d(h)(l.left.width <= 0 ? 1e-4 : l.left.width),
412
436
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
413
437
  fill: e.value.style.layout.bars.gradient.underlayer,
414
438
  rx: e.value.style.layout.bars.borderRadius
415
- }, null, 8, Ke),
439
+ }, null, 8, et),
416
440
  n("rect", {
417
441
  x: l.left.x,
418
442
  y: l.left.y,
@@ -420,7 +444,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
420
444
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
421
445
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : l.left.color,
422
446
  rx: e.value.style.layout.bars.borderRadius
423
- }, null, 8, Qe),
447
+ }, null, 8, tt),
424
448
  n("rect", {
425
449
  x: l.right.x,
426
450
  y: l.right.y,
@@ -428,7 +452,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
428
452
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
429
453
  fill: e.value.style.layout.bars.gradient.underlayer,
430
454
  rx: e.value.style.layout.bars.borderRadius
431
- }, null, 8, Ze),
455
+ }, null, 8, lt),
432
456
  n("rect", {
433
457
  x: l.right.x,
434
458
  y: l.right.y,
@@ -436,10 +460,10 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
436
460
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
437
461
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : l.right.color,
438
462
  rx: e.value.style.layout.bars.borderRadius
439
- }, null, 8, et)
463
+ }, null, 8, at)
440
464
  ]))), 256)),
441
465
  n("g", null, [
442
- e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", tt, [
466
+ e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", ot, [
443
467
  n("text", {
444
468
  x: o.value.left,
445
469
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -447,7 +471,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
447
471
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
448
472
  "text-anchor": "start",
449
473
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
450
- }, w(e.value.translations.female), 9, lt),
474
+ }, w(e.value.translations.female), 9, st),
451
475
  n("text", {
452
476
  x: o.value.right,
453
477
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -455,48 +479,48 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
455
479
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
456
480
  "text-anchor": "end",
457
481
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
458
- }, w(e.value.translations.male), 9, at)
459
- ])) : h("", !0),
460
- e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", ot, [
461
- (i(!0), r(L, null, O(he.value, (l, a) => (i(), r(L, null, [
482
+ }, w(e.value.translations.male), 9, it)
483
+ ])) : y("", !0),
484
+ e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", ut, [
485
+ (i(!0), r(S, null, F(ce.value, (l, a) => (i(), r(S, null, [
462
486
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
463
487
  key: 0,
464
488
  x: o.value.centerX,
465
- y: o.value.top + o.value.height / $.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
489
+ y: o.value.top + o.value.height / A.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
466
490
  "text-anchor": "middle",
467
491
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
468
492
  fill: e.value.style.layout.dataLabels.yAxis.color,
469
493
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
470
- }, w(d(_)(
494
+ }, w(d(k)(
471
495
  e.value.style.layout.dataLabels.yAxis.formatter,
472
496
  l,
473
- d(k)({ v: l }),
497
+ d(_)({ v: l }),
474
498
  { datapoint: l, seriesIndex: a }
475
- )), 9, st)) : h("", !0)
499
+ )), 9, rt)) : y("", !0)
476
500
  ], 64))), 256))
477
- ])) : h("", !0),
478
- e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", it, [
479
- e.value.style.layout.grid.show ? (i(), r("g", ut, [
501
+ ])) : y("", !0),
502
+ e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", nt, [
503
+ e.value.style.layout.grid.show ? (i(), r("g", dt, [
480
504
  n("line", {
481
- x1: C.value.right[0].x,
482
- x2: C.value.right.at(-1).x,
505
+ x1: $.value.right[0].x,
506
+ x2: $.value.right.at(-1).x,
483
507
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
484
508
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
485
509
  stroke: e.value.style.layout.grid.stroke,
486
510
  "stroke-width": e.value.style.layout.grid.strokeWidth,
487
511
  "stroke-linecap": "round"
488
- }, null, 8, rt),
512
+ }, null, 8, vt),
489
513
  n("line", {
490
- x1: C.value.left[0].x,
491
- x2: C.value.left.at(-1).x,
514
+ x1: $.value.left[0].x,
515
+ x2: $.value.left.at(-1).x,
492
516
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
493
517
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
494
518
  stroke: e.value.style.layout.grid.stroke,
495
519
  "stroke-width": e.value.style.layout.grid.strokeWidth,
496
520
  "stroke-linecap": "round"
497
- }, null, 8, nt)
498
- ])) : h("", !0),
499
- (i(!0), r(L, null, O(C.value.right, (l, a) => (i(), r("g", null, [
521
+ }, null, 8, yt)
522
+ ])) : y("", !0),
523
+ (i(!0), r(S, null, F($.value.right, (l, a) => (i(), r("g", null, [
500
524
  e.value.style.layout.grid.show ? (i(), r("line", {
501
525
  key: 0,
502
526
  x1: l.x,
@@ -506,7 +530,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
506
530
  stroke: e.value.style.layout.grid.stroke,
507
531
  "stroke-width": e.value.style.layout.grid.strokeWidth,
508
532
  "stroke-linecap": "round"
509
- }, null, 8, dt)) : h("", !0),
533
+ }, null, 8, ht)) : y("", !0),
510
534
  n("text", {
511
535
  x: l.x,
512
536
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -514,16 +538,16 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
514
538
  fill: e.value.style.layout.dataLabels.xAxis.color,
515
539
  "text-anchor": "middle",
516
540
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
517
- }, w(d(_)(
541
+ }, w(d(k)(
518
542
  e.value.style.layout.dataLabels.xAxis.formatter,
519
543
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
520
- d(k)({
544
+ d(_)({
521
545
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
522
546
  }),
523
547
  { datapoint: l, seriesIndex: a }
524
- )), 9, vt)
548
+ )), 9, ft)
525
549
  ]))), 256)),
526
- (i(!0), r(L, null, O(C.value.left, (l, a) => (i(), r("g", null, [
550
+ (i(!0), r(S, null, F($.value.left, (l, a) => (i(), r("g", null, [
527
551
  e.value.style.layout.grid.show ? (i(), r("line", {
528
552
  key: 0,
529
553
  x1: l.x,
@@ -533,7 +557,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
533
557
  stroke: e.value.style.layout.grid.stroke,
534
558
  "stroke-width": e.value.style.layout.grid.strokeWidth,
535
559
  "stroke-linecap": "round"
536
- }, null, 8, yt)) : h("", !0),
560
+ }, null, 8, ct)) : y("", !0),
537
561
  n("text", {
538
562
  x: l.x,
539
563
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -541,14 +565,14 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
541
565
  fill: e.value.style.layout.dataLabels.xAxis.color,
542
566
  "text-anchor": "middle",
543
567
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
544
- }, w(d(_)(
568
+ }, w(d(k)(
545
569
  e.value.style.layout.dataLabels.xAxis.formatter,
546
570
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
547
- d(k)({
571
+ d(_)({
548
572
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
549
573
  }),
550
574
  { datapoint: l, seriesIndex: a }
551
- )), 9, ht)
575
+ )), 9, gt)
552
576
  ]))), 256)),
553
577
  n("text", {
554
578
  x: o.value.right,
@@ -557,29 +581,29 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
557
581
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
558
582
  fill: e.value.style.layout.dataLabels.xAxis.color,
559
583
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
560
- }, w(e.value.style.layout.dataLabels.xAxis.translation), 9, ft)
561
- ])) : h("", !0)
584
+ }, w(e.value.style.layout.dataLabels.xAxis.translation), 9, pt)
585
+ ])) : y("", !0)
562
586
  ]),
563
- (i(!0), r(L, null, O(W.dataset, (l, a) => (i(), r("g", null, [
587
+ (i(!0), r(S, null, F(U.dataset, (l, a) => (i(), r("g", null, [
564
588
  n("rect", {
565
589
  x: o.value.left,
566
- y: o.value.top + o.value.height / $.value * a - e.value.style.layout.bars.gap / 2,
590
+ y: o.value.top + o.value.height / A.value * a - e.value.style.layout.bars.gap / 2,
567
591
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
568
- height: o.value.height / $.value <= 0 ? 1e-4 : o.value.height / $.value,
569
- fill: M.value !== null && M.value === a ? d(E)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
570
- onMouseover: (u) => ge(a, l),
592
+ height: o.value.height / A.value <= 0 ? 1e-4 : o.value.height / A.value,
593
+ fill: N.value !== null && N.value === a ? d(X)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
594
+ onMouseover: (u) => be(a, l),
571
595
  onMouseleave: s[0] || (s[0] = (u) => {
572
- M.value = null, D.value = !1;
596
+ N.value = null, G.value = !1;
573
597
  })
574
- }, null, 40, ct)
598
+ }, null, 40, bt)
575
599
  ]))), 256)),
576
600
  p(t.$slots, "svg", { svg: c.value }, void 0, !0)
577
- ], 14, Ue)) : h("", !0),
578
- t.$slots.watermark ? (i(), r("div", gt, [
579
- p(t.$slots, "watermark", N(R({ isPrinting: d(J) || d(K) })), void 0, !0)
580
- ])) : h("", !0),
581
- F.value ? h("", !0) : (i(), I(Ge, {
582
- key: 4,
601
+ ], 14, je)) : y("", !0),
602
+ t.$slots.watermark ? (i(), r("div", xt, [
603
+ p(t.$slots, "watermark", O(P({ isPrinting: d(Q) || d(Z) })), void 0, !0)
604
+ ])) : y("", !0),
605
+ M.value ? y("", !0) : (i(), L(Ee, {
606
+ key: 5,
583
607
  config: {
584
608
  type: "pyramid",
585
609
  style: {
@@ -591,8 +615,8 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
591
615
  }
592
616
  }, null, 8, ["config"])),
593
617
  p(t.$slots, "legend", { legend: T.value }, void 0, !0),
594
- ie(Re, {
595
- show: m.value.showTooltip && D.value,
618
+ re(Ge, {
619
+ show: m.value.showTooltip && G.value,
596
620
  backgroundColor: e.value.style.tooltip.backgroundColor,
597
621
  color: e.value.style.tooltip.color,
598
622
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -602,20 +626,20 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
602
626
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
603
627
  position: e.value.style.tooltip.position,
604
628
  offsetY: e.value.style.tooltip.offsetY,
605
- parent: A.value,
606
- content: G.value,
629
+ parent: C.value,
630
+ content: B.value,
607
631
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
608
632
  }, {
609
633
  "tooltip-before": g(() => [
610
- p(t.$slots, "tooltip-before", N(R({ ...B.value })), void 0, !0)
634
+ p(t.$slots, "tooltip-before", O(P({ ...E.value })), void 0, !0)
611
635
  ]),
612
636
  "tooltip-after": g(() => [
613
- p(t.$slots, "tooltip-after", N(R({ ...B.value })), void 0, !0)
637
+ p(t.$slots, "tooltip-after", O(P({ ...E.value })), void 0, !0)
614
638
  ]),
615
639
  _: 3
616
640
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
617
- F.value ? (i(), I(Be, {
618
- key: 5,
641
+ M.value ? (i(), L(We, {
642
+ key: 6,
619
643
  hideDetails: "",
620
644
  config: {
621
645
  open: m.value.showTable,
@@ -631,29 +655,29 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
631
655
  }
632
656
  }, {
633
657
  content: g(() => [
634
- (i(), I(De, {
635
- key: `table_${Y.value}`,
636
- colNames: P.value.colNames,
637
- head: P.value.head,
638
- body: P.value.body,
639
- config: P.value.config,
658
+ (i(), L(Be, {
659
+ key: `table_${H.value}`,
660
+ colNames: R.value.colNames,
661
+ head: R.value.head,
662
+ body: R.value.body,
663
+ config: R.value.config,
640
664
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
641
665
  onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
642
666
  }, {
643
667
  th: g(({ th: l }) => [
644
- ue(w(l), 1)
668
+ ne(w(l), 1)
645
669
  ]),
646
670
  td: g(({ td: l }) => [
647
- ue(w(l), 1)
671
+ ne(w(l), 1)
648
672
  ]),
649
673
  _: 1
650
674
  }, 8, ["colNames", "head", "body", "config", "title"]))
651
675
  ]),
652
676
  _: 1
653
- }, 8, ["config"])) : h("", !0)
654
- ], 14, Xe));
677
+ }, 8, ["config"])) : y("", !0)
678
+ ], 14, Ye));
655
679
  }
656
- }, zt = /* @__PURE__ */ We(pt, [["__scopeId", "data-v-c8be6835"]]);
680
+ }, Ft = /* @__PURE__ */ Ve(mt, [["__scopeId", "data-v-c501abdc"]]);
657
681
  export {
658
- zt as default
682
+ Ft as default
659
683
  };