vue-data-ui 3.5.2 → 3.7.0

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 (199) hide show
  1. package/README.md +36 -27
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
  5. package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
  8. package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +5 -0
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +303 -9
  90. package/dist/types/vue-ui-stackline.d.ts +18 -0
  91. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  92. package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
  93. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  94. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  95. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  96. package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
  97. package/dist/vue-data-ui.js +226 -204
  98. package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  99. package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  100. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  101. package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  102. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  103. package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  104. package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  105. package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  106. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  107. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  108. package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  109. package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  110. package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
  111. package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  112. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  113. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  114. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  115. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  116. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  117. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  118. package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  119. package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  120. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  121. package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  122. package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  123. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  124. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  125. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  126. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  127. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  128. package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  129. package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  130. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  131. package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  132. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  133. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  134. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  135. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  136. package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  137. package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  138. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  139. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  140. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  141. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  142. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  143. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  144. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  145. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  146. package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  147. package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
  148. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  149. package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  150. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  151. package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  152. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  153. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  154. package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  155. package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  156. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  157. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  158. package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
  159. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  160. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  161. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  162. package/package.json +5 -5
  163. package/dist/themes-AUNCOb2G.js +0 -53
  164. package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
  165. package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
  166. package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
  167. package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
  168. package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
  169. package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
  170. package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
  171. package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
  172. package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
  173. package/dist/vue-ui-gauge-DAk72bez.js +0 -835
  174. package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
  175. package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
  176. package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
  177. package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
  178. package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
  179. package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
  180. package/dist/vue-ui-radar-BSfxyur3.js +0 -984
  181. package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
  182. package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
  183. package/dist/vue-ui-rings-C96aj57d.js +0 -855
  184. package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
  185. package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
  186. package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
  187. package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
  188. package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
  189. package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
  190. package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
  191. package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
  192. package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
  193. package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
  194. package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
  195. package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
  196. package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
  197. package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
  198. package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
@@ -0,0 +1,743 @@
1
+ import { useCssVars as rt, computed as v, defineAsyncComponent as F, ref as f, shallowRef as $e, onMounted as nt, onBeforeUnmount as ut, watch as Le, createElementBlock as d, openBlock as r, unref as s, normalizeStyle as x, normalizeClass as z, createBlock as N, createCommentVNode as m, withCtx as n, renderSlot as i, normalizeProps as k, guardReactiveProps as A, createSlots as Fe, createVNode as De, createElementVNode as w, mergeProps as H, Fragment as X, renderList as W, toDisplayString as V, resolveDynamicComponent as it, createTextVNode as _e, nextTick as ct } from "vue";
2
+ import { c as vt, o as dt, g as xe, k as ft, l as ht, n as bt, a as Y, d as q, X as gt, w as mt, Y as ae, u as pt, q as yt } from "./lib-C5BH09_g.js";
3
+ import { t as Ct, u as kt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as At, a as le } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as wt } from "./usePrinter-DCJzEiS8.js";
6
+ import { u as $t } from "./useSvgExport-DrjCWun4.js";
7
+ import { u as Lt } from "./useThemeCheck-DGJ31Vi5.js";
8
+ import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
10
+ import _t from "./img-DUzJeMlr.js";
11
+ import xt from "./Title-DfFUb9hd.js";
12
+ import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Se = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", area: { color: "#3A3A3A" }, bars: { stroke: "#1A1A1A", dataLabels: { name: { color: "#CCCCCC" }, value: { color: "#CCCCCC" } } }, circles: { stroke: "#1A1A1A" }, circleLinks: { color: "#3A3A3A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Te = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", area: { color: "#D32F2F20" }, bars: { defaultColor: "#E64A19", stroke: "#FFF8E1", dataLabels: { name: { color: "#424242" }, value: { color: "#424242" } } }, circles: { stroke: "#FFF8E1" }, circleLinks: { color: "#D32F2F40" }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, Oe = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", area: { color: "#D32F2F20" }, bars: { defaultColor: "#E64A19", stroke: "#1E1E1E", dataLabels: { name: { color: "#BDBDBD" }, value: { color: "#BDBDBD" } } }, circles: { stroke: "#1E1E1E" }, circleLinks: { color: "#D32F2F60" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, Be = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", area: { color: "#66CC6620" }, bars: { defaultColor: "#66CC66", stroke: "#1A1A1A", dataLabels: { name: { color: "#99AA99" }, value: { color: "#99AA99" } } }, circles: { stroke: "#1A1A1A" }, circleLinks: { color: "#66CC6620" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, Ee = { table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", area: { color: "#8F837A20" }, bars: { defaultColor: "#8F837A", stroke: "#fbfafa", dataLabels: { name: { color: "#8A9892" }, value: { color: "#8A9892" } } }, circles: { stroke: "#fbfafa" }, circleLinks: { color: "#8F837A20" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, ze = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", area: { color: "#8A989230" }, bars: { defaultColor: "#61747E", stroke: "#50606C", dataLabels: { name: { color: "#50606C" }, value: { color: "#50606C" } } }, circles: { stroke: "#50606C" }, circleLinks: { color: "#8A989230" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, Ne = {
14
+ default: {},
15
+ dark: Se,
16
+ celebration: Te,
17
+ celebrationNight: Oe,
18
+ hack: Be,
19
+ zen: Ee,
20
+ concrete: ze
21
+ }, na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
+ __proto__: null,
23
+ celebration: Te,
24
+ celebrationNight: Oe,
25
+ concrete: ze,
26
+ dark: Se,
27
+ default: Ne,
28
+ hack: Be,
29
+ zen: Ee
30
+ }, Symbol.toStringTag, { value: "Module" })), Tt = ["id"], Ot = ["xmlns", "viewBox"], Bt = ["width", "height"], Et = ["id"], zt = ["stop-color"], Nt = ["stop-color"], Pt = ["stop-color"], It = ["stroke", "stroke-width"], Rt = ["stroke", "stroke-width"], Mt = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["points", "fill"], Vt = ["stroke", "stroke-width", "rx"], jt = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["x", "y", "font-size", "fill", "font-weight"], Ht = {
31
+ key: 5,
32
+ class: "vue-data-ui-watermark"
33
+ }, Xt = ["innerHTML"], Wt = {
34
+ __name: "vue-ui-funnel",
35
+ props: {
36
+ config: {
37
+ type: Object,
38
+ default() {
39
+ return {};
40
+ }
41
+ },
42
+ dataset: {
43
+ type: Array,
44
+ default() {
45
+ return [];
46
+ }
47
+ }
48
+ },
49
+ setup(Pe, { expose: Ie }) {
50
+ rt((t) => ({
51
+ v1175b36b: Ze.value
52
+ }));
53
+ const Re = F(() => import("./BaseIcon-CofSxalQ.js")), Me = F(() => import("./vue-ui-skeleton-CzzdmraB.js")), Ue = F(() => import("./vue-ui-accordion-DSdZUn2C.js")), Ve = F(() => import("./DataTable-CHaOCmsE.js")), je = F(() => import("./UserOptions-B3I-s3Lw.js")), Ge = F(() => import("./PenAndPaper-HCZQTkqi.js")), He = F(() => import("./PackageVersion-Bq_mtsqr.js")), Xe = F(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_funnel: We } = At(), { isThemeValid: Ye, warnInvalidTheme: qe } = Lt(), p = Pe, $ = f(null), P = f(vt()), oe = f(0), se = f(0), re = f(0), ne = f(null), ue = f(null), ie = f(null), L = $e(null), S = $e(null), D = f(!1), I = f(null), J = f(null), T = v(() => !!p.dataset && p.dataset.length);
54
+ nt(ce);
55
+ function ce() {
56
+ if (dt(p.dataset) ? xe({
57
+ componentName: "VueUiFunnel",
58
+ type: "dataset"
59
+ }) : p.dataset.forEach((t, l) => {
60
+ ft({
61
+ datasetObject: t,
62
+ requiredAttributes: ["name", "value"]
63
+ }).forEach((a) => {
64
+ T.value = !1, xe({
65
+ componentName: "VueUiFunnel",
66
+ type: "datasetSerieAttribute",
67
+ property: a,
68
+ index: l
69
+ });
70
+ });
71
+ }), e.value.responsive) {
72
+ const t = Ct(() => {
73
+ const { width: l, height: a } = kt({
74
+ chart: $.value,
75
+ title: e.value.style.chart.title.text ? ie.value : null,
76
+ source: ue.value,
77
+ noTitle: ne.value
78
+ });
79
+ requestAnimationFrame(() => {
80
+ b.value.height = a, b.value.width = l, C.value = pe(), e.value.responsiveProportionalSizing ? (h.value.circles = ae({
81
+ relator: Math.min(l, a),
82
+ adjuster: 600,
83
+ source: e.value.style.chart.circles.dataLabels.fontSize,
84
+ threshold: 10,
85
+ fallback: 10
86
+ }), h.value.names = ae({
87
+ relator: Math.min(l, a),
88
+ adjuster: 600,
89
+ source: e.value.style.chart.bars.dataLabels.name.fontSize,
90
+ threshold: 10,
91
+ fallback: 10
92
+ }), h.value.values = ae({
93
+ relator: Math.min(l, a),
94
+ adjuster: 600,
95
+ source: e.value.style.chart.bars.dataLabels.value.fontSize,
96
+ threshold: 10,
97
+ fallback: 10
98
+ })) : (h.value.circles = e.value.style.chart.circles.dataLabels.fontSize, h.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, h.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
99
+ });
100
+ });
101
+ L.value && (S.value && L.value.unobserve(S.value), L.value.disconnect()), L.value = new ResizeObserver(t), S.value = $.value.parentNode, L.value.observe(S.value);
102
+ }
103
+ }
104
+ ut(() => {
105
+ L.value && (S.value && L.value.unobserve(S.value), L.value.disconnect());
106
+ });
107
+ function ve() {
108
+ const t = le({
109
+ userConfig: p.config,
110
+ defaultConfig: We
111
+ }), l = t.theme;
112
+ if (!l) return t;
113
+ if (!Ye.value(t))
114
+ return qe(t), t;
115
+ const a = le({
116
+ userConfig: Ne[l] || p.config,
117
+ defaultConfig: t
118
+ });
119
+ return le({
120
+ userConfig: p.config,
121
+ defaultConfig: a
122
+ });
123
+ }
124
+ const e = v({
125
+ get: () => ve(),
126
+ set: (t) => t
127
+ }), { userOptionsVisible: K, setUserOptionsVisibility: de, keepUserOptionState: fe } = Ft({ config: e.value }), { svgRef: Q } = Dt({ config: e.value.style.chart.title });
128
+ Le(() => p.config, (t) => {
129
+ e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), se.value += 1, re.value += 1, h.value.circles = e.value.style.chart.circles.dataLabels.fontSize, h.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, h.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, O.value.showTable = e.value.table.show;
130
+ }, { deep: !0 });
131
+ const { isPrinting: he, isImaging: be, generatePdf: ge, generateImage: me } = wt({
132
+ elementId: `funnel_${P.value}`,
133
+ fileName: e.value.style.chart.title.text || "vue-ui-funnel",
134
+ options: e.value.userOptions.print
135
+ }), Je = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = f({
136
+ showTable: e.value.table.show
137
+ }), h = f({
138
+ circles: e.value.style.chart.circles.dataLabels.fontSize,
139
+ names: e.value.style.chart.bars.dataLabels.name.fontSize,
140
+ values: e.value.style.chart.bars.dataLabels.value.fontSize
141
+ }), b = v({
142
+ get: () => ({
143
+ height: e.value.style.chart.height,
144
+ width: e.value.style.chart.width
145
+ }),
146
+ set: (t) => t
147
+ }), y = v(() => T.value ? p.dataset.map((t, l) => ({
148
+ ...t,
149
+ color: t.color ? ht(t.color) : bt(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
150
+ })) : []);
151
+ setTimeout(() => {
152
+ D.value = !0;
153
+ }, y.value.length * 150);
154
+ function pe() {
155
+ const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
156
+ return {
157
+ left: t,
158
+ top: l,
159
+ right: b.value.width - e.value.style.chart.padding.right,
160
+ bottom: b.value.height - e.value.style.chart.padding.bottom,
161
+ width: b.value.width - t - e.value.style.chart.padding.right,
162
+ height: b.value.height - l - e.value.style.chart.padding.bottom
163
+ };
164
+ }
165
+ const C = f(pe()), B = v(() => C.value.height / p.dataset.length), _ = v(() => B.value * e.value.style.chart.bars.gapRatio), ye = v(() => C.value.width * e.value.style.chart.barCircleSpacingRatio), u = v(() => y.value.map((t, l) => {
166
+ const a = B.value - _.value, o = C.value.top + _.value / 2 * l + (B.value - _.value / 2) * l + _.value / 2, g = t.value / y.value[0].value, c = (C.value.width - a - ye.value) * (t.value / y.value[0].value);
167
+ return {
168
+ ...t,
169
+ cx: C.value.left + a / 2,
170
+ cy: o + a / 2,
171
+ datapointIndex: l,
172
+ fill: t.color,
173
+ height: Math.max(a, 0),
174
+ proportion: g,
175
+ r: Math.max(a / 2, 0),
176
+ width: Math.max(c, 0),
177
+ x: C.value.left + a + ye.value,
178
+ y: o
179
+ };
180
+ })), Ke = v(() => {
181
+ const t = u.value.map((l) => `${l.x + l.width},${l.y + (B.value - _.value) / 2}`);
182
+ return `${u.value[0].x},${u.value[0].y + (B.value - _.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (B.value - _.value) / 2}`;
183
+ }), Qe = v(() => ({
184
+ x1: u.value[0].cx,
185
+ y1: u.value[0].cy,
186
+ x2: u.value.at(-1).cx,
187
+ y2: u.value.at(-1).cy
188
+ })), E = f(!1);
189
+ function Ce(t) {
190
+ E.value = t, oe.value += 1;
191
+ }
192
+ const Ze = v(() => `${y.value.length * 150}ms`), j = f(!1);
193
+ function Z() {
194
+ j.value = !j.value;
195
+ }
196
+ function ke() {
197
+ O.value.showTable = !O.value.showTable;
198
+ }
199
+ const R = v(() => {
200
+ const t = y.value.map((a) => ({
201
+ name: a.name,
202
+ color: a.color
203
+ })), l = y.value.map((a) => a.value);
204
+ return { head: t, body: l };
205
+ }), G = v(() => {
206
+ const t = [
207
+ e.value.table.columnNames.series,
208
+ e.value.table.columnNames.value,
209
+ e.value.table.columnNames.percentage
210
+ ], l = R.value.head.map((g, c) => {
211
+ const U = Y(
212
+ e.value.style.chart.bars.dataLabels.value.formatter,
213
+ R.value.body[c],
214
+ q({
215
+ p: e.value.style.chart.bars.dataLabels.value.prefix,
216
+ v: R.value.body[c],
217
+ s: e.value.style.chart.bars.dataLabels.value.suffix,
218
+ r: e.value.table.td.roundingValue
219
+ }),
220
+ { datapoint: u.value[c] }
221
+ ), te = Y(
222
+ e.value.style.chart.circles.dataLabels.formatter,
223
+ u.value[c].proportion * 100,
224
+ q({
225
+ v: u.value[c].proportion * 100,
226
+ s: "%",
227
+ r: e.value.table.td.roundingPercentage
228
+ }),
229
+ { datapoint: u.value[c] }
230
+ );
231
+ return [
232
+ { color: g.color, name: g.name },
233
+ U,
234
+ te
235
+ ];
236
+ }), a = {
237
+ th: {
238
+ backgroundColor: e.value.table.th.backgroundColor,
239
+ color: e.value.table.th.color,
240
+ outline: e.value.table.th.outline
241
+ },
242
+ td: {
243
+ backgroundColor: e.value.table.td.backgroundColor,
244
+ color: e.value.table.td.color,
245
+ outline: e.value.table.td.outline
246
+ },
247
+ breakpoint: e.value.table.responsiveBreakpoint
248
+ };
249
+ return {
250
+ colNames: [
251
+ e.value.table.columnNames.series,
252
+ e.value.table.columnNames.value,
253
+ e.value.table.columnNames.percentage
254
+ ],
255
+ head: t,
256
+ body: l,
257
+ config: a
258
+ };
259
+ });
260
+ function ee(t = null) {
261
+ ct(() => {
262
+ const l = R.value.head.map((g, c) => [[
263
+ g.name
264
+ ], [R.value.body[c]], [u.value[c].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = pt(a);
265
+ t ? t(o) : yt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
266
+ });
267
+ }
268
+ function et() {
269
+ return y.value;
270
+ }
271
+ async function tt({ scale: t = 2 } = {}) {
272
+ if (!$.value) return;
273
+ const { width: l, height: a } = $.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: c } = await _t({ domElement: $.value, base64: !0, img: !0, scale: t });
274
+ return {
275
+ imageUri: g,
276
+ base64: c,
277
+ title: e.value.style.chart.title.text,
278
+ width: l,
279
+ height: a,
280
+ aspectRatio: o
281
+ };
282
+ }
283
+ const M = v(() => {
284
+ const t = e.value.table.useDialog && !e.value.table.show, l = O.value.showTable;
285
+ return {
286
+ component: t ? Xe : Ue,
287
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
288
+ props: t ? {
289
+ backgroundColor: e.value.table.th.backgroundColor,
290
+ color: e.value.table.th.color,
291
+ headerColor: e.value.table.th.color,
292
+ headerBg: e.value.table.th.backgroundColor,
293
+ isFullscreen: E.value,
294
+ fullscreenParent: $.value,
295
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
296
+ } : {
297
+ hideDetails: !0,
298
+ config: {
299
+ open: l,
300
+ maxHeight: 1e4,
301
+ body: {
302
+ backgroundColor: e.value.style.chart.backgroundColor,
303
+ color: e.value.style.chart.color
304
+ },
305
+ head: {
306
+ backgroundColor: e.value.style.chart.backgroundColor,
307
+ color: e.value.style.chart.color
308
+ }
309
+ }
310
+ }
311
+ };
312
+ });
313
+ Le(() => O.value.showTable, (t) => {
314
+ e.value.table.show || (t && e.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
315
+ });
316
+ function Ae() {
317
+ O.value.showTable = !1, J.value && J.value.setTableIconState(!1);
318
+ }
319
+ const at = v(() => e.value.style.chart.backgroundColor), lt = v(() => e.value.style.chart.title), { exportSvg: ot, getSvg: st } = $t({
320
+ svg: Q,
321
+ title: lt,
322
+ backgroundColor: at
323
+ });
324
+ async function we({ isCb: t }) {
325
+ if (t) {
326
+ const { blob: l, url: a, text: o, dataUrl: g } = await st();
327
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: g });
328
+ } else
329
+ ot();
330
+ }
331
+ return Ie({
332
+ getData: et,
333
+ getImage: tt,
334
+ generatePdf: ge,
335
+ generateCsv: ee,
336
+ generateImage: me,
337
+ generateSvg: we,
338
+ toggleTable: ke,
339
+ toggleAnnotator: Z,
340
+ toggleFullscreen: Ce
341
+ }), (t, l) => (r(), d("div", {
342
+ ref_key: "funnelChart",
343
+ ref: $,
344
+ class: z(`vue-data-ui-component vue-ui-funnel ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
345
+ style: x(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
346
+ id: `funnel_${P.value}`,
347
+ onMouseenter: l[1] || (l[1] = () => s(de)(!0)),
348
+ onMouseleave: l[2] || (l[2] = () => s(de)(!1))
349
+ }, [
350
+ e.value.userOptions.buttons.annotator ? (r(), N(s(Ge), {
351
+ key: 0,
352
+ svgRef: s(Q),
353
+ backgroundColor: e.value.style.chart.backgroundColor,
354
+ color: e.value.style.chart.color,
355
+ active: j.value,
356
+ onClose: Z
357
+ }, {
358
+ "annotator-action-close": n(() => [
359
+ i(t.$slots, "annotator-action-close", {}, void 0, !0)
360
+ ]),
361
+ "annotator-action-color": n(({ color: a }) => [
362
+ i(t.$slots, "annotator-action-color", k(A({ color: a })), void 0, !0)
363
+ ]),
364
+ "annotator-action-draw": n(({ mode: a }) => [
365
+ i(t.$slots, "annotator-action-draw", k(A({ mode: a })), void 0, !0)
366
+ ]),
367
+ "annotator-action-undo": n(({ disabled: a }) => [
368
+ i(t.$slots, "annotator-action-undo", k(A({ disabled: a })), void 0, !0)
369
+ ]),
370
+ "annotator-action-redo": n(({ disabled: a }) => [
371
+ i(t.$slots, "annotator-action-redo", k(A({ disabled: a })), void 0, !0)
372
+ ]),
373
+ "annotator-action-delete": n(({ disabled: a }) => [
374
+ i(t.$slots, "annotator-action-delete", k(A({ disabled: a })), void 0, !0)
375
+ ]),
376
+ _: 3
377
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
378
+ Je.value ? (r(), d("div", {
379
+ key: 1,
380
+ ref_key: "noTitle",
381
+ ref: ne,
382
+ class: "vue-data-ui-no-title-space",
383
+ style: "height:36px; width: 100%;background:transparent"
384
+ }, null, 512)) : m("", !0),
385
+ e.value.style.chart.title.text ? (r(), d("div", {
386
+ key: 2,
387
+ ref_key: "chartTitle",
388
+ ref: ie,
389
+ style: "width:100%;background:transparent;padding-bottom:24px"
390
+ }, [
391
+ (r(), N(xt, {
392
+ key: `title_${se.value}`,
393
+ config: {
394
+ title: {
395
+ cy: "funnel-div-title",
396
+ ...e.value.style.chart.title
397
+ },
398
+ subtitle: {
399
+ cy: "funnel-div-subtitle",
400
+ ...e.value.style.chart.title.subtitle
401
+ }
402
+ }
403
+ }, null, 8, ["config"]))
404
+ ], 512)) : m("", !0),
405
+ e.value.userOptions.show && T.value && (s(fe) || s(K)) ? (r(), N(s(je), {
406
+ ref_key: "userOptionsRef",
407
+ ref: J,
408
+ key: `user_option_${oe.value}`,
409
+ backgroundColor: e.value.style.chart.backgroundColor,
410
+ color: e.value.style.chart.color,
411
+ isPrinting: s(he),
412
+ isImaging: s(be),
413
+ uid: P.value,
414
+ hasTooltip: !1,
415
+ hasPdf: e.value.userOptions.buttons.pdf,
416
+ hasImg: e.value.userOptions.buttons.img,
417
+ hasSvg: e.value.userOptions.buttons.svg,
418
+ hasXls: e.value.userOptions.buttons.csv,
419
+ hasTable: e.value.userOptions.buttons.table,
420
+ hasLabel: !1,
421
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
422
+ isFullscreen: E.value,
423
+ chartElement: $.value,
424
+ position: e.value.userOptions.position,
425
+ titles: { ...e.value.userOptions.buttonTitles },
426
+ hasAnnotator: e.value.userOptions.buttons.annotator,
427
+ isAnnotation: j.value,
428
+ callbacks: e.value.userOptions.callbacks,
429
+ printScale: e.value.userOptions.print.scale,
430
+ tableDialog: e.value.table.useDialog,
431
+ onToggleAnnotator: Z,
432
+ onToggleFullscreen: Ce,
433
+ onGeneratePdf: s(ge),
434
+ onGenerateImage: s(me),
435
+ onGenerateSvg: we,
436
+ onToggleTable: ke,
437
+ onGenerateCsv: ee,
438
+ style: x({
439
+ visibility: s(fe) ? s(K) ? "visible" : "hidden" : "visible"
440
+ })
441
+ }, Fe({ _: 2 }, [
442
+ t.$slots.menuIcon ? {
443
+ name: "menuIcon",
444
+ fn: n(({ isOpen: a, color: o }) => [
445
+ i(t.$slots, "menuIcon", k(A({ isOpen: a, color: o })), void 0, !0)
446
+ ]),
447
+ key: "0"
448
+ } : void 0,
449
+ t.$slots.optionPdf ? {
450
+ name: "optionPdf",
451
+ fn: n(() => [
452
+ i(t.$slots, "optionPdf", {}, void 0, !0)
453
+ ]),
454
+ key: "1"
455
+ } : void 0,
456
+ t.$slots.optionCsv ? {
457
+ name: "optionCsv",
458
+ fn: n(() => [
459
+ i(t.$slots, "optionCsv", {}, void 0, !0)
460
+ ]),
461
+ key: "2"
462
+ } : void 0,
463
+ t.$slots.optionImg ? {
464
+ name: "optionImg",
465
+ fn: n(() => [
466
+ i(t.$slots, "optionImg", {}, void 0, !0)
467
+ ]),
468
+ key: "3"
469
+ } : void 0,
470
+ t.$slots.optionSvg ? {
471
+ name: "optionSvg",
472
+ fn: n(() => [
473
+ i(t.$slots, "optionSvg", {}, void 0, !0)
474
+ ]),
475
+ key: "4"
476
+ } : void 0,
477
+ t.$slots.optionTable ? {
478
+ name: "optionTable",
479
+ fn: n(() => [
480
+ i(t.$slots, "optionTable", {}, void 0, !0)
481
+ ]),
482
+ key: "5"
483
+ } : void 0,
484
+ t.$slots.optionFullscreen ? {
485
+ name: "optionFullscreen",
486
+ fn: n(({ toggleFullscreen: a, isFullscreen: o }) => [
487
+ i(t.$slots, "optionFullscreen", k(A({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
488
+ ]),
489
+ key: "6"
490
+ } : void 0,
491
+ t.$slots.optionAnnotator ? {
492
+ name: "optionAnnotator",
493
+ fn: n(({ toggleAnnotator: a, isAnnotator: o }) => [
494
+ i(t.$slots, "optionAnnotator", k(A({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
495
+ ]),
496
+ key: "7"
497
+ } : void 0
498
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
499
+ T.value ? (r(), d("svg", {
500
+ key: 4,
501
+ ref_key: "svgRef",
502
+ ref: Q,
503
+ xmlns: s(gt),
504
+ class: z({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
505
+ viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
506
+ style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
507
+ }, [
508
+ De(s(He)),
509
+ t.$slots["chart-background"] ? (r(), d("foreignObject", {
510
+ key: 0,
511
+ x: 0,
512
+ y: 0,
513
+ width: b.value.width <= 0 ? 10 : b.value.width,
514
+ height: b.value.height <= 0 ? 10 : b.value.height,
515
+ style: {
516
+ pointerEvents: "none"
517
+ }
518
+ }, [
519
+ i(t.$slots, "chart-background", {}, void 0, !0)
520
+ ], 8, Bt)) : m("", !0),
521
+ w("defs", null, [
522
+ w("linearGradient", {
523
+ id: `funnel_area_${P.value}`,
524
+ x1: "0%",
525
+ x2: "100%",
526
+ y1: "0%",
527
+ y2: "0%"
528
+ }, [
529
+ w("stop", {
530
+ offset: "0%",
531
+ "stop-color": e.value.style.chart.backgroundColor,
532
+ "stop-opacity": 0
533
+ }, null, 8, zt),
534
+ w("stop", {
535
+ offset: "20%",
536
+ "stop-color": e.value.style.chart.area.color
537
+ }, null, 8, Nt),
538
+ w("stop", {
539
+ offset: "100%",
540
+ "stop-color": e.value.style.chart.area.color
541
+ }, null, 8, Pt)
542
+ ], 8, Et)
543
+ ]),
544
+ e.value.style.chart.circleLinks.show ? (r(), d("line", H({ key: 1 }, Qe.value, {
545
+ stroke: e.value.style.chart.circleLinks.color,
546
+ "stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
547
+ "stroke-linecap": "round",
548
+ class: {
549
+ animated: e.value.useCssAnimation
550
+ },
551
+ style: {
552
+ strokeDasharray: e.value.useCssAnimation ? C.value.height : 0,
553
+ strokeDashoffset: e.value.useCssAnimation ? C.value.height : 0
554
+ }
555
+ }), null, 16, It)) : m("", !0),
556
+ (r(!0), d(X, null, W(u.value, ({ cx: a, cy: o, r: g, fill: c }, U) => (r(), d("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: g, fill: c }, {
557
+ stroke: e.value.style.chart.circles.stroke,
558
+ "stroke-width": e.value.style.chart.circles.strokeWidth,
559
+ class: {
560
+ animated: e.value.useCssAnimation && !D.value
561
+ },
562
+ style: {
563
+ animationDelay: `${150 * U}ms`
564
+ }
565
+ }), null, 16, Rt))), 256)),
566
+ (r(!0), d(X, null, W(u.value, (a, o) => (r(), d("text", {
567
+ x: a.cx,
568
+ y: a.cy + h.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
569
+ "text-anchor": "middle",
570
+ "font-size": h.value.circles,
571
+ fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(mt)(a.color) : e.value.style.chart.circles.dataLabels.color,
572
+ "font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
573
+ class: z({
574
+ animated: e.value.useCssAnimation && !D.value
575
+ }),
576
+ style: x({
577
+ animationDelay: `${150 * o}ms`
578
+ })
579
+ }, V(s(Y)(
580
+ e.value.style.chart.circles.dataLabels.formatter,
581
+ a.proportion * 100,
582
+ s(q)({
583
+ v: a.proportion * 100,
584
+ s: "%",
585
+ r: e.value.style.chart.circles.dataLabels.rounding
586
+ }),
587
+ { datapoint: a }
588
+ )), 15, Mt))), 256)),
589
+ e.value.style.chart.area.show ? (r(), d("polygon", {
590
+ key: 2,
591
+ points: Ke.value,
592
+ fill: `url(#funnel_area_${P.value})`,
593
+ class: z({
594
+ animated: e.value.useCssAnimation && !D.value
595
+ }),
596
+ style: x({
597
+ transition: e.value.useCssAnimation ? `all ${150 * y.value.length}ms ease-in` : "none"
598
+ })
599
+ }, null, 14, Ut)) : m("", !0),
600
+ (r(!0), d(X, null, W(u.value, ({ x: a, y: o, height: g, width: c, fill: U }, te) => (r(), d("rect", H({ ref_for: !0 }, { x: a, y: o, height: g, width: c, fill: U }, {
601
+ stroke: e.value.style.chart.bars.stroke,
602
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
603
+ rx: e.value.style.chart.bars.borderRadius,
604
+ class: {
605
+ animated: e.value.useCssAnimation && !D.value
606
+ },
607
+ style: {
608
+ animationDelay: `${150 * te}ms`
609
+ }
610
+ }), null, 16, Vt))), 256)),
611
+ (r(!0), d(X, null, W(u.value, (a, o) => (r(), d("g", null, [
612
+ w("text", {
613
+ x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
614
+ y: a.cy - h.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
615
+ "text-anchor": "start",
616
+ "font-size": h.value.names,
617
+ fill: e.value.style.chart.bars.dataLabels.name.color,
618
+ "font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
619
+ class: z({
620
+ animated: e.value.useCssAnimation && !D.value
621
+ }),
622
+ style: x({
623
+ animationDelay: `${150 * o}ms`
624
+ })
625
+ }, V(a.name), 15, jt),
626
+ w("text", {
627
+ x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
628
+ y: a.cy + h.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
629
+ "text-anchor": "start",
630
+ "font-size": h.value.values,
631
+ fill: e.value.style.chart.bars.dataLabels.value.color,
632
+ "font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
633
+ class: z({
634
+ animated: e.value.useCssAnimation && !D.value
635
+ }),
636
+ style: x({
637
+ animationDelay: `${150 * o}ms`
638
+ })
639
+ }, V(s(Y)(
640
+ e.value.style.chart.bars.dataLabels.value.formatter,
641
+ a.value,
642
+ s(q)({
643
+ p: e.value.style.chart.bars.dataLabels.value.prefix,
644
+ v: a.value,
645
+ s: e.value.style.chart.bars.dataLabels.value.suffix,
646
+ r: e.value.style.chart.bars.dataLabels.value.rounding
647
+ }),
648
+ { datapoint: a }
649
+ )), 15, Gt)
650
+ ]))), 256)),
651
+ i(t.$slots, "svg", { svg: b.value }, void 0, !0)
652
+ ], 14, Ot)) : m("", !0),
653
+ t.$slots.watermark ? (r(), d("div", Ht, [
654
+ i(t.$slots, "watermark", k(A({ isPrinting: s(he) || s(be) })), void 0, !0)
655
+ ])) : m("", !0),
656
+ T.value ? m("", !0) : (r(), N(s(Me), {
657
+ key: 6,
658
+ config: {
659
+ type: "verticalBar",
660
+ style: {
661
+ backgroundColor: e.value.style.chart.backgroundColor,
662
+ verticalBar: {
663
+ axis: {
664
+ color: "#CCCCCC"
665
+ },
666
+ color: "#CCCCCC"
667
+ }
668
+ }
669
+ }
670
+ }, null, 8, ["config"])),
671
+ t.$slots.source ? (r(), d("div", {
672
+ key: 7,
673
+ ref_key: "source",
674
+ ref: ue,
675
+ dir: "auto"
676
+ }, [
677
+ i(t.$slots, "source", {}, void 0, !0)
678
+ ], 512)) : m("", !0),
679
+ T.value && e.value.userOptions.buttons.table ? (r(), N(it(M.value.component), H({ key: 8 }, M.value.props, {
680
+ ref_key: "tableUnit",
681
+ ref: I,
682
+ onClose: Ae
683
+ }), Fe({
684
+ content: n(() => [
685
+ (r(), N(s(Ve), {
686
+ key: `table_${re.value}`,
687
+ colNames: G.value.colNames,
688
+ head: G.value.head,
689
+ body: G.value.body,
690
+ config: G.value.config,
691
+ title: e.value.table.useDialog ? "" : M.value.title,
692
+ withCloseButton: !e.value.table.useDialog,
693
+ onClose: Ae
694
+ }, {
695
+ th: n(({ th: a }) => [
696
+ w("div", {
697
+ innerHTML: a,
698
+ style: { display: "flex", "align-items": "center" }
699
+ }, null, 8, Xt)
700
+ ]),
701
+ td: n(({ td: a }) => [
702
+ _e(V(a.name ? a.name : a), 1)
703
+ ]),
704
+ _: 1
705
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
706
+ ]),
707
+ _: 2
708
+ }, [
709
+ e.value.table.useDialog ? {
710
+ name: "title",
711
+ fn: n(() => [
712
+ _e(V(M.value.title), 1)
713
+ ]),
714
+ key: "0"
715
+ } : void 0,
716
+ e.value.table.useDialog ? {
717
+ name: "actions",
718
+ fn: n(() => [
719
+ w("button", {
720
+ tabindex: "0",
721
+ class: "vue-ui-user-options-button",
722
+ onClick: l[0] || (l[0] = (a) => ee(e.value.userOptions.callbacks.csv))
723
+ }, [
724
+ De(s(Re), {
725
+ name: "excel",
726
+ stroke: M.value.props.color
727
+ }, null, 8, ["stroke"])
728
+ ])
729
+ ]),
730
+ key: "1"
731
+ } : void 0
732
+ ]), 1040)) : m("", !0)
733
+ ], 46, Tt));
734
+ }
735
+ }, Yt = /* @__PURE__ */ St(Wt, [["__scopeId", "data-v-fb155766"]]), ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
736
+ __proto__: null,
737
+ default: Yt
738
+ }, Symbol.toStringTag, { value: "Module" }));
739
+ export {
740
+ na as a,
741
+ ua as b,
742
+ Yt as v
743
+ };