vue-data-ui 3.22.2 → 3.22.4

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 (203) hide show
  1. package/dist/{Arrow-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
  11. package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
  93. package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
  94. package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +69 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
  111. package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
  113. package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
  115. package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
  116. package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
  118. package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
  119. package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
  121. package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
  122. package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
  123. package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
  124. package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
  125. package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
  126. package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
  129. package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
  130. package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
  131. package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
  132. package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
  133. package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
  134. package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
  135. package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
  136. package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
  137. package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
  138. package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
  143. package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
  145. package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
  147. package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
  148. package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
  150. package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
  151. package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
  152. package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
  153. package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
  154. package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
  159. package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
  161. package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
  162. package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
  163. package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
  164. package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
  167. package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
  168. package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
  170. package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
  171. package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
  172. package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
  174. package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
  175. package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
  176. package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
  177. package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend-BVDhEEsC.js +0 -115
  181. package/dist/Slicer-ClR833cP.js +0 -1144
  182. package/dist/exposedLib-CffbQxjN.js +0 -19
  183. package/dist/img-BCAOkqfM.js +0 -74
  184. package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
  185. package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
  186. package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
  187. package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
  188. package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
  189. package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
  190. package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
  191. package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
  192. package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
  194. package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
  195. package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
  196. package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
  197. package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
  199. package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
  200. package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
  201. package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
  202. package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
  203. package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
@@ -1,777 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Ct as t, Et as n, G as r, H as i, Ht as a, J as ee, S as te, X as ne, ct as re, i as o, r as ie, t as ae, y as oe } from "./lib-CXicicWN.js";
3
- import { t as se } from "./useConfig-Bf_EBbe3.js";
4
- import { t as ce } from "./usePrinter-Dng0UK-G.js";
5
- import { t as le } from "./useSvgExport-SVIsDot8.js";
6
- import { t as ue } from "./useNestedProp-APyFoLCQ.js";
7
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as fe } from "./img-BCAOkqfM.js";
9
- import { n as pe } from "./Title-CVYf1f8m.js";
10
- import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { c as he } from "./canvas-lib-BOP_HS11.js";
12
- import { t as ge } from "./useResponsive-BfnK0KxU.js";
13
- import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as ye } from "./vue_ui_funnel-_Og4EEkO.js";
16
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as be, createTextVNode as xe, createVNode as Se, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as Ce, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as we, onMounted as Te, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ee, shallowRef as De, toDisplayString as C, unref as w, useCssVars as Oe, watch as ke, withCtx as T } from "vue";
17
- //#region src/components/vue-ui-funnel.vue
18
- var Ae = /* @__PURE__ */ e({ default: () => qe }), je = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Pe = ["id"], Fe = ["stop-color"], Ie = ["stop-color"], Le = ["stop-color"], Re = ["stroke", "stroke-width"], ze = ["stroke", "stroke-width"], Be = [
19
- "x",
20
- "y",
21
- "font-size",
22
- "fill",
23
- "font-weight"
24
- ], Ve = ["points", "fill"], He = [
25
- "stroke",
26
- "stroke-width",
27
- "rx"
28
- ], Ue = [
29
- "x",
30
- "y",
31
- "font-size",
32
- "fill",
33
- "font-weight"
34
- ], We = [
35
- "x",
36
- "y",
37
- "font-size",
38
- "fill",
39
- "font-weight"
40
- ], Ge = {
41
- key: 5,
42
- class: "vue-data-ui-watermark"
43
- }, Ke = ["innerHTML"], qe = /*#__PURE__*/ me({
44
- __name: "vue-ui-funnel",
45
- props: {
46
- config: {
47
- type: Object,
48
- default() {
49
- return {};
50
- }
51
- },
52
- dataset: {
53
- type: Array,
54
- default() {
55
- return [];
56
- }
57
- }
58
- },
59
- emits: ["copyAlt"],
60
- setup(e, { expose: me, emit: Ae }) {
61
- Oe((e) => ({ v5d52ff0c: Et.value }));
62
- let qe = p(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), Je = p(() => import("./vue-ui-skeleton-DJ5KAbfV.js").then((e) => e.n)), Ye = p(() => import("./vue-ui-accordion-Di_givzQ.js").then((e) => e.n)), Xe = p(() => import("./DataTable-DJZgdnIn.js")), Ze = p(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Qe = p(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), $e = p(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), et = p(() => import("./BaseDraggableDialog-a9xCKjW-.js").then((e) => e.n)), { vue_ui_funnel: tt } = se(), { isThemeValid: nt, warnInvalidTheme: rt } = de(), E = e, it = Ae, D = b(null), O = b(i()), at = b(0), ot = b(0), st = b(0), ct = b(null), lt = b(null), ut = b(null), k = De(null), A = De(null), j = b(!1), M = b(null), N = b(null), P = b(!1), F = b(!1), I = c(() => !!E.dataset && E.dataset.length);
63
- Te(dt);
64
- function dt() {
65
- if (n(E.dataset) ? ne({
66
- componentName: "VueUiFunnel",
67
- type: "dataset"
68
- }) : E.dataset.forEach((e, t) => {
69
- re({
70
- datasetObject: e,
71
- requiredAttributes: ["name", "value"]
72
- }).forEach((e) => {
73
- I.value = !1, ne({
74
- componentName: "VueUiFunnel",
75
- type: "datasetSerieAttribute",
76
- property: e,
77
- index: t
78
- });
79
- });
80
- }), L.value.responsive) {
81
- let e = he(() => {
82
- let { width: e, height: t } = ge({
83
- chart: D.value,
84
- title: L.value.style.chart.title.text ? ut.value : null,
85
- source: lt.value,
86
- noTitle: ct.value
87
- });
88
- requestAnimationFrame(() => {
89
- H.value.height = t, H.value.width = e, W.value = xt(), L.value.responsiveProportionalSizing ? (V.value.circles = a({
90
- relator: Math.min(e, t),
91
- adjuster: 600,
92
- source: L.value.style.chart.circles.dataLabels.fontSize,
93
- threshold: 10,
94
- fallback: 10
95
- }), V.value.names = a({
96
- relator: Math.min(e, t),
97
- adjuster: 600,
98
- source: L.value.style.chart.bars.dataLabels.name.fontSize,
99
- threshold: 10,
100
- fallback: 10
101
- }), V.value.values = a({
102
- relator: Math.min(e, t),
103
- adjuster: 600,
104
- source: L.value.style.chart.bars.dataLabels.value.fontSize,
105
- threshold: 10,
106
- fallback: 10
107
- })) : (V.value.circles = L.value.style.chart.circles.dataLabels.fontSize, V.value.names = L.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = L.value.style.chart.bars.dataLabels.value.fontSize);
108
- });
109
- });
110
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = D.value.parentNode, k.value.observe(A.value);
111
- }
112
- }
113
- we(() => {
114
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
115
- });
116
- function ft() {
117
- let e = ue({
118
- userConfig: E.config,
119
- defaultConfig: tt
120
- }), t = e.theme;
121
- if (!t) return e;
122
- if (!nt.value(e)) return rt(e), e;
123
- let n = ue({
124
- userConfig: ye[t] || E.config,
125
- defaultConfig: e
126
- });
127
- return ue({
128
- userConfig: E.config,
129
- defaultConfig: n
130
- });
131
- }
132
- let L = c({
133
- get: () => ft(),
134
- set: (e) => e
135
- }), pt = c(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: R, setUserOptionsVisibility: mt, keepUserOptionState: ht } = _e({ config: L.value }), { svgRef: z } = ve({ config: L.value.style.chart.title });
136
- ke(() => E.config, (e) => {
137
- L.value = ft(), R.value = !L.value.userOptions.showOnChartHover, dt(), ot.value += 1, st.value += 1, V.value.circles = L.value.style.chart.circles.dataLabels.fontSize, V.value.names = L.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = L.value.style.chart.bars.dataLabels.value.fontSize, B.value.showTable = L.value.table.show;
138
- }, { deep: !0 });
139
- let { isPrinting: gt, isImaging: _t, generatePdf: vt, generateImage: yt } = ce({
140
- elementId: `funnel_${O.value}`,
141
- fileName: L.value.style.chart.title.text || "vue-ui-funnel",
142
- options: L.value.userOptions.print
143
- }), bt = c(() => L.value.userOptions.show && !L.value.style.chart.title.text), B = b({ showTable: L.value.table.show }), V = b({
144
- circles: L.value.style.chart.circles.dataLabels.fontSize,
145
- names: L.value.style.chart.bars.dataLabels.name.fontSize,
146
- values: L.value.style.chart.bars.dataLabels.value.fontSize
147
- }), H = c({
148
- get: () => ({
149
- height: L.value.style.chart.height,
150
- width: L.value.style.chart.width
151
- }),
152
- set: (e) => e
153
- }), U = c(() => I.value ? E.dataset.map((e, n) => ({
154
- ...e,
155
- color: e.color ? oe(e.color) : t(L.value.style.chart.bars.defaultColor, n / E.dataset.length)
156
- })) : []);
157
- setTimeout(() => {
158
- j.value = !0;
159
- }, U.value.length * 150);
160
- function xt() {
161
- let e = L.value.style.chart.padding.left, t = L.value.style.chart.padding.top;
162
- return {
163
- left: e,
164
- top: t,
165
- right: H.value.width - L.value.style.chart.padding.right,
166
- bottom: H.value.height - L.value.style.chart.padding.bottom,
167
- width: H.value.width - e - L.value.style.chart.padding.right,
168
- height: H.value.height - t - L.value.style.chart.padding.bottom
169
- };
170
- }
171
- let W = b(xt()), G = c(() => W.value.height / E.dataset.length), K = c(() => G.value * L.value.style.chart.bars.gapRatio), St = c(() => W.value.width * L.value.style.chart.barCircleSpacingRatio), q = c(() => U.value.map((e, t) => {
172
- let n = G.value - K.value, r = W.value.top + K.value / 2 * t + (G.value - K.value / 2) * t + K.value / 2, i = e.value / U.value[0].value, a = (W.value.width - n - St.value) * (e.value / U.value[0].value);
173
- return {
174
- ...e,
175
- cx: W.value.left + n / 2,
176
- cy: r + n / 2,
177
- datapointIndex: t,
178
- fill: e.color,
179
- height: Math.max(n, 0),
180
- proportion: i,
181
- r: Math.max(n / 2, 0),
182
- width: Math.max(a, 0),
183
- x: W.value.left + n + St.value,
184
- y: r
185
- };
186
- })), Ct = c(() => {
187
- let e = q.value.map((e) => `${e.x + e.width},${e.y + (G.value - K.value) / 2}`);
188
- return `${q.value[0].x},${q.value[0].y + (G.value - K.value) / 2} ${e.toString()} ${q.value.at(-1).x},${q.value.at(-1).y + (G.value - K.value) / 2}`;
189
- }), wt = c(() => ({
190
- x1: q.value[0].cx,
191
- y1: q.value[0].cy,
192
- x2: q.value.at(-1).cx,
193
- y2: q.value.at(-1).cy
194
- })), J = b(!1);
195
- function Tt(e) {
196
- J.value = e, at.value += 1;
197
- }
198
- let Et = c(() => `${U.value.length * 150}ms`), Y = b(!1);
199
- function Dt() {
200
- Y.value = !Y.value;
201
- }
202
- function Ot() {
203
- B.value.showTable = !B.value.showTable;
204
- }
205
- let X = c(() => ({
206
- head: U.value.map((e) => ({
207
- name: e.name,
208
- color: e.color
209
- })),
210
- body: U.value.map((e) => e.value)
211
- })), Z = c(() => {
212
- let e = [
213
- L.value.table.columnNames.series,
214
- L.value.table.columnNames.value,
215
- L.value.table.columnNames.percentage
216
- ], t = X.value.head.map((e, t) => {
217
- let n = o(L.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], r({
218
- p: L.value.style.chart.bars.dataLabels.value.prefix,
219
- v: X.value.body[t],
220
- s: L.value.style.chart.bars.dataLabels.value.suffix,
221
- r: L.value.table.td.roundingValue
222
- }), { datapoint: q.value[t] }), i = o(L.value.style.chart.circles.dataLabels.formatter, q.value[t].proportion * 100, r({
223
- v: q.value[t].proportion * 100,
224
- s: "%",
225
- r: L.value.table.td.roundingPercentage
226
- }), { datapoint: q.value[t] });
227
- return [
228
- {
229
- color: e.color,
230
- name: e.name
231
- },
232
- n,
233
- i
234
- ];
235
- }), n = {
236
- th: {
237
- backgroundColor: L.value.table.th.backgroundColor,
238
- color: L.value.table.th.color,
239
- outline: L.value.table.th.outline
240
- },
241
- td: {
242
- backgroundColor: L.value.table.td.backgroundColor,
243
- color: L.value.table.td.color,
244
- outline: L.value.table.td.outline
245
- },
246
- breakpoint: L.value.table.responsiveBreakpoint
247
- };
248
- return {
249
- colNames: [
250
- L.value.table.columnNames.series,
251
- L.value.table.columnNames.value,
252
- L.value.table.columnNames.percentage
253
- ],
254
- head: e,
255
- body: t,
256
- config: n
257
- };
258
- });
259
- function Q(e = null) {
260
- Ce(() => {
261
- let t = X.value.head.map((e, t) => [
262
- [e.name],
263
- [X.value.body[t]],
264
- [q.value[t].proportion * 100]
265
- ]), n = te([
266
- [L.value.style.chart.title.text],
267
- [L.value.style.chart.title.subtitle.text],
268
- [
269
- [L.value.table.columnNames.series],
270
- [L.value.table.columnNames.value],
271
- ["%"]
272
- ]
273
- ].concat(t));
274
- e ? e(n) : ee({
275
- csvContent: n,
276
- title: L.value.style.chart.title.text || "vue-ui-funnel"
277
- });
278
- });
279
- }
280
- function kt() {
281
- return U.value;
282
- }
283
- async function At({ scale: e = 2 } = {}) {
284
- if (!D.value) return;
285
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
286
- domElement: D.value,
287
- base64: !0,
288
- img: !0,
289
- scale: e
290
- });
291
- return {
292
- imageUri: i,
293
- base64: a,
294
- title: L.value.style.chart.title.text,
295
- width: t,
296
- height: n,
297
- aspectRatio: r
298
- };
299
- }
300
- let $ = c(() => {
301
- let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
302
- return {
303
- component: e ? et : Ye,
304
- title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
305
- props: e ? {
306
- backgroundColor: L.value.table.th.backgroundColor,
307
- color: L.value.table.th.color,
308
- headerColor: L.value.table.th.color,
309
- headerBg: L.value.table.th.backgroundColor,
310
- isFullscreen: J.value,
311
- fullscreenParent: D.value,
312
- forcedWidth: Math.min(800, window.innerWidth * .8)
313
- } : {
314
- hideDetails: !0,
315
- config: {
316
- open: t,
317
- maxHeight: 1e4,
318
- body: {
319
- backgroundColor: L.value.style.chart.backgroundColor,
320
- color: L.value.style.chart.color
321
- },
322
- head: {
323
- backgroundColor: L.value.style.chart.backgroundColor,
324
- color: L.value.style.chart.color
325
- }
326
- }
327
- }
328
- };
329
- });
330
- ke(() => B.value.showTable, (e) => {
331
- L.value.table.show || (e && L.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
332
- });
333
- function jt() {
334
- B.value.showTable = !1, N.value && N.value.setTableIconState(!1);
335
- }
336
- let Mt = c(() => L.value.style.chart.backgroundColor), { exportSvg: Nt, getSvg: Pt } = le({
337
- svg: z,
338
- title: c(() => L.value.style.chart.title),
339
- backgroundColor: Mt
340
- });
341
- async function Ft({ isCb: e }) {
342
- F.value = !0, await Ce();
343
- try {
344
- if (e) {
345
- let { blob: e, url: t, text: n, dataUrl: r } = await Pt();
346
- await Promise.resolve(L.value.userOptions.callbacks.svg({
347
- blob: e,
348
- url: t,
349
- text: n,
350
- dataUrl: r
351
- }));
352
- } else await Promise.resolve(Nt());
353
- } finally {
354
- F.value = !1;
355
- }
356
- }
357
- function It(e) {
358
- if (e?.stage === "start") {
359
- P.value = !0;
360
- return;
361
- }
362
- if (e?.stage === "end") {
363
- P.value = !1;
364
- return;
365
- }
366
- yt();
367
- }
368
- async function Lt() {
369
- if (it("copyAlt", {
370
- config: L.value,
371
- dataset: U.value
372
- }), !L.value.userOptions.callbacks.altCopy) {
373
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
374
- return;
375
- }
376
- await Promise.resolve(L.value.userOptions.callbacks.altCopy({
377
- config: L.value,
378
- dataset: U.value
379
- }));
380
- }
381
- return me({
382
- getData: kt,
383
- getImage: At,
384
- generatePdf: vt,
385
- generateCsv: Q,
386
- generateImage: yt,
387
- generateSvg: Ft,
388
- toggleTable: Ot,
389
- toggleAnnotator: Dt,
390
- toggleFullscreen: Tt,
391
- copyAlt: Lt
392
- }), (e, t) => (y(), d("div", {
393
- ref_key: "funnelChart",
394
- ref: D,
395
- class: g(`vue-data-ui-component vue-ui-funnel ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
396
- style: v(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
397
- id: `funnel_${O.value}`,
398
- onMouseenter: t[1] ||= () => w(mt)(!0),
399
- onMouseleave: t[2] ||= () => w(mt)(!1)
400
- }, [
401
- L.value.userOptions.buttons.annotator ? (y(), l(w(Qe), {
402
- key: 0,
403
- svgRef: w(z),
404
- backgroundColor: L.value.style.chart.backgroundColor,
405
- color: L.value.style.chart.color,
406
- active: Y.value,
407
- isCursorPointer: pt.value,
408
- onClose: Dt
409
- }, {
410
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
411
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(m({ color: t })), void 0, !0)]),
412
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(m({ mode: t })), void 0, !0)]),
413
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(m({ disabled: t })), void 0, !0)]),
414
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(m({ disabled: t })), void 0, !0)]),
415
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(m({ disabled: t })), void 0, !0)]),
416
- _: 3
417
- }, 8, [
418
- "svgRef",
419
- "backgroundColor",
420
- "color",
421
- "active",
422
- "isCursorPointer"
423
- ])) : u("", !0),
424
- bt.value ? (y(), d("div", {
425
- key: 1,
426
- ref_key: "noTitle",
427
- ref: ct,
428
- class: "vue-data-ui-no-title-space",
429
- style: "height:36px; width: 100%;background:transparent"
430
- }, null, 512)) : u("", !0),
431
- L.value.style.chart.title.text ? (y(), d("div", {
432
- key: 2,
433
- ref_key: "chartTitle",
434
- ref: ut,
435
- style: "width:100%;background:transparent;padding-bottom:24px"
436
- }, [(y(), l(pe, {
437
- key: `title_${ot.value}`,
438
- config: {
439
- title: {
440
- cy: "funnel-div-title",
441
- ...L.value.style.chart.title
442
- },
443
- subtitle: {
444
- cy: "funnel-div-subtitle",
445
- ...L.value.style.chart.title.subtitle
446
- }
447
- }
448
- }, null, 8, ["config"]))], 512)) : u("", !0),
449
- L.value.userOptions.show && I.value && (w(ht) || w(R)) ? (y(), l(w(Ze), {
450
- ref_key: "userOptionsRef",
451
- ref: N,
452
- key: `user_option_${at.value}`,
453
- backgroundColor: L.value.style.chart.backgroundColor,
454
- color: L.value.style.chart.color,
455
- isPrinting: w(gt),
456
- isImaging: w(_t),
457
- uid: O.value,
458
- hasTooltip: !1,
459
- hasPdf: L.value.userOptions.buttons.pdf,
460
- hasImg: L.value.userOptions.buttons.img,
461
- hasSvg: L.value.userOptions.buttons.svg,
462
- hasXls: L.value.userOptions.buttons.csv,
463
- hasTable: L.value.userOptions.buttons.table,
464
- hasLabel: !1,
465
- hasFullscreen: L.value.userOptions.buttons.fullscreen,
466
- hasAltCopy: L.value.userOptions.buttons.altCopy,
467
- isFullscreen: J.value,
468
- chartElement: D.value,
469
- position: L.value.userOptions.position,
470
- titles: { ...L.value.userOptions.buttonTitles },
471
- hasAnnotator: L.value.userOptions.buttons.annotator,
472
- isAnnotation: Y.value,
473
- callbacks: L.value.userOptions.callbacks,
474
- printScale: L.value.userOptions.print.scale,
475
- tableDialog: L.value.table.useDialog,
476
- isCursorPointer: pt.value,
477
- onToggleAnnotator: Dt,
478
- onToggleFullscreen: Tt,
479
- onGeneratePdf: w(vt),
480
- onGenerateImage: It,
481
- onGenerateSvg: Ft,
482
- onToggleTable: Ot,
483
- onGenerateCsv: Q,
484
- onCopyAlt: Lt,
485
- style: v({ visibility: w(ht) ? w(R) ? "visible" : "hidden" : "visible" })
486
- }, be({ _: 2 }, [
487
- e.$slots.menuIcon ? {
488
- name: "menuIcon",
489
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(m({
490
- isOpen: t,
491
- color: n
492
- })), void 0, !0)]),
493
- key: "0"
494
- } : void 0,
495
- e.$slots.optionPdf ? {
496
- name: "optionPdf",
497
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
498
- key: "1"
499
- } : void 0,
500
- e.$slots.optionCsv ? {
501
- name: "optionCsv",
502
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
503
- key: "2"
504
- } : void 0,
505
- e.$slots.optionImg ? {
506
- name: "optionImg",
507
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
508
- key: "3"
509
- } : void 0,
510
- e.$slots.optionSvg ? {
511
- name: "optionSvg",
512
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
513
- key: "4"
514
- } : void 0,
515
- e.$slots.optionTable ? {
516
- name: "optionTable",
517
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
518
- key: "5"
519
- } : void 0,
520
- e.$slots.optionFullscreen ? {
521
- name: "optionFullscreen",
522
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(m({
523
- toggleFullscreen: t,
524
- isFullscreen: n
525
- })), void 0, !0)]),
526
- key: "6"
527
- } : void 0,
528
- e.$slots.optionAnnotator ? {
529
- name: "optionAnnotator",
530
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(m({
531
- toggleAnnotator: t,
532
- isAnnotator: n
533
- })), void 0, !0)]),
534
- key: "7"
535
- } : void 0,
536
- e.$slots.optionAltCopy ? {
537
- name: "optionAltCopy",
538
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(m({ altCopy: t })), void 0, !0)]),
539
- key: "8"
540
- } : void 0,
541
- e.$slots["custom-menu-before"] ? {
542
- name: "custom-menu-before",
543
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
544
- key: "9"
545
- } : void 0,
546
- e.$slots["custom-menu-after"] ? {
547
- name: "custom-menu-after",
548
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
549
- key: "10"
550
- } : void 0
551
- ]), 1032, [
552
- "backgroundColor",
553
- "color",
554
- "isPrinting",
555
- "isImaging",
556
- "uid",
557
- "hasPdf",
558
- "hasImg",
559
- "hasSvg",
560
- "hasXls",
561
- "hasTable",
562
- "hasFullscreen",
563
- "hasAltCopy",
564
- "isFullscreen",
565
- "chartElement",
566
- "position",
567
- "titles",
568
- "hasAnnotator",
569
- "isAnnotation",
570
- "callbacks",
571
- "printScale",
572
- "tableDialog",
573
- "isCursorPointer",
574
- "onGeneratePdf",
575
- "style"
576
- ])) : u("", !0),
577
- I.value ? (y(), d("svg", {
578
- key: 4,
579
- ref_key: "svgRef",
580
- ref: z,
581
- xmlns: w(ae),
582
- class: g({
583
- "vue-data-ui-fullscreen--on": J.value,
584
- "vue-data-ui-fulscreen--off": !J.value
585
- }),
586
- viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
587
- style: v(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color}`)
588
- }, [
589
- Se(w($e)),
590
- e.$slots["chart-background"] ? (y(), d("foreignObject", {
591
- key: 0,
592
- x: 0,
593
- y: 0,
594
- width: H.value.width <= 0 ? 10 : H.value.width,
595
- height: H.value.height <= 0 ? 10 : H.value.height,
596
- style: { pointerEvents: "none" }
597
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ne)) : u("", !0),
598
- f("defs", null, [f("linearGradient", {
599
- id: `funnel_area_${O.value}`,
600
- x1: "0%",
601
- x2: "100%",
602
- y1: "0%",
603
- y2: "0%"
604
- }, [
605
- f("stop", {
606
- offset: "0%",
607
- "stop-color": L.value.style.chart.backgroundColor,
608
- "stop-opacity": 0
609
- }, null, 8, Fe),
610
- f("stop", {
611
- offset: "20%",
612
- "stop-color": L.value.style.chart.area.color
613
- }, null, 8, Ie),
614
- f("stop", {
615
- offset: "100%",
616
- "stop-color": L.value.style.chart.area.color
617
- }, null, 8, Le)
618
- ], 8, Pe)]),
619
- L.value.style.chart.circleLinks.show ? (y(), d("line", h({ key: 1 }, wt.value, {
620
- stroke: L.value.style.chart.circleLinks.color,
621
- "stroke-width": 12 * L.value.style.chart.circleLinks.widthRatio,
622
- "stroke-linecap": "round",
623
- class: { animated: L.value.useCssAnimation },
624
- style: {
625
- strokeDasharray: L.value.useCssAnimation ? W.value.height : 0,
626
- strokeDashoffset: L.value.useCssAnimation ? W.value.height : 0
627
- }
628
- }), null, 16, Re)) : u("", !0),
629
- (y(!0), d(s, null, x(q.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (y(), d("circle", h({ ref_for: !0 }, {
630
- cx: e,
631
- cy: t,
632
- r: n,
633
- fill: r
634
- }, {
635
- stroke: L.value.style.chart.circles.stroke,
636
- "stroke-width": L.value.style.chart.circles.strokeWidth,
637
- class: { animated: L.value.useCssAnimation && !j.value },
638
- style: { animationDelay: `${150 * i}ms` }
639
- }), null, 16, ze))), 256)),
640
- (y(!0), d(s, null, x(q.value, (e, t) => (y(), d("text", {
641
- x: e.cx,
642
- y: e.cy + V.value.circles / 3 + L.value.style.chart.circles.dataLabels.offsetY,
643
- "text-anchor": "middle",
644
- "font-size": V.value.circles,
645
- fill: L.value.style.chart.circles.dataLabels.adaptColorToBackground ? w(ie)(e.color) : L.value.style.chart.circles.dataLabels.color,
646
- "font-weight": L.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
647
- class: g({ animated: L.value.useCssAnimation && !j.value }),
648
- style: v({ animationDelay: `${150 * t}ms` })
649
- }, C(w(o)(L.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, w(r)({
650
- v: e.proportion * 100,
651
- s: "%",
652
- r: L.value.style.chart.circles.dataLabels.rounding
653
- }), { datapoint: e })), 15, Be))), 256)),
654
- L.value.style.chart.area.show ? (y(), d("polygon", {
655
- key: 2,
656
- points: Ct.value,
657
- fill: `url(#funnel_area_${O.value})`,
658
- class: g({ animated: L.value.useCssAnimation && !j.value }),
659
- style: v({ transition: L.value.useCssAnimation ? `all ${150 * U.value.length}ms ease-in` : "none" })
660
- }, null, 14, Ve)) : u("", !0),
661
- (y(!0), d(s, null, x(q.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (y(), d("rect", h({ ref_for: !0 }, {
662
- x: e,
663
- y: t,
664
- height: n,
665
- width: r,
666
- fill: i
667
- }, {
668
- stroke: L.value.style.chart.bars.stroke,
669
- "stroke-width": L.value.style.chart.bars.strokeWidth,
670
- rx: L.value.style.chart.bars.borderRadius,
671
- class: { animated: L.value.useCssAnimation && !j.value },
672
- style: { animationDelay: `${150 * a}ms` }
673
- }), null, 16, He))), 256)),
674
- (y(!0), d(s, null, x(q.value, (e, t) => (y(), d("g", null, [f("text", {
675
- x: e.x + e.width + L.value.style.chart.bars.dataLabels.name.offsetX + 12,
676
- y: e.cy - V.value.names / 2 + L.value.style.chart.bars.dataLabels.name.offsetY,
677
- "text-anchor": "start",
678
- "font-size": V.value.names,
679
- fill: L.value.style.chart.bars.dataLabels.name.color,
680
- "font-weight": L.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
681
- class: g({ animated: L.value.useCssAnimation && !j.value }),
682
- style: v({ animationDelay: `${150 * t}ms` })
683
- }, C(e.name), 15, Ue), f("text", {
684
- x: e.x + e.width + L.value.style.chart.bars.dataLabels.value.offsetX + 12,
685
- y: e.cy + V.value.values + L.value.style.chart.bars.dataLabels.value.offsetY,
686
- "text-anchor": "start",
687
- "font-size": V.value.values,
688
- fill: L.value.style.chart.bars.dataLabels.value.color,
689
- "font-weight": L.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
690
- class: g({ animated: L.value.useCssAnimation && !j.value }),
691
- style: v({ animationDelay: `${150 * t}ms` })
692
- }, C(w(o)(L.value.style.chart.bars.dataLabels.value.formatter, e.value, w(r)({
693
- p: L.value.style.chart.bars.dataLabels.value.prefix,
694
- v: e.value,
695
- s: L.value.style.chart.bars.dataLabels.value.suffix,
696
- r: L.value.style.chart.bars.dataLabels.value.rounding
697
- }), { datapoint: e })), 15, We)]))), 256)),
698
- S(e.$slots, "svg", { svg: {
699
- ...H.value,
700
- isPrintingImg: w(gt) || w(_t) || P.value,
701
- isPrintingSvg: F.value
702
- } }, void 0, !0)
703
- ], 14, Me)) : u("", !0),
704
- e.$slots.watermark ? (y(), d("div", Ge, [S(e.$slots, "watermark", _(m({ isPrinting: w(gt) || w(_t) || P.value || F.value })), void 0, !0)])) : u("", !0),
705
- I.value ? u("", !0) : (y(), l(w(Je), {
706
- key: 6,
707
- config: {
708
- type: "verticalBar",
709
- style: {
710
- backgroundColor: L.value.style.chart.backgroundColor,
711
- verticalBar: {
712
- axis: { color: "#CCCCCC" },
713
- color: "#CCCCCC"
714
- }
715
- }
716
- }
717
- }, null, 8, ["config"])),
718
- e.$slots.source ? (y(), d("div", {
719
- key: 7,
720
- ref_key: "source",
721
- ref: lt,
722
- dir: "auto"
723
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
724
- I.value && L.value.userOptions.buttons.table ? (y(), l(Ee($.value.component), h({ key: 8 }, $.value.props, {
725
- ref_key: "tableUnit",
726
- ref: M,
727
- onClose: jt
728
- }), be({
729
- content: T(() => [(y(), l(w(Xe), {
730
- key: `table_${st.value}`,
731
- colNames: Z.value.colNames,
732
- head: Z.value.head,
733
- body: Z.value.body,
734
- config: Z.value.config,
735
- title: L.value.table.useDialog ? "" : $.value.title,
736
- withCloseButton: !L.value.table.useDialog,
737
- onClose: jt
738
- }, {
739
- th: T(({ th: e }) => [f("div", {
740
- innerHTML: e,
741
- style: {
742
- display: "flex",
743
- "align-items": "center"
744
- }
745
- }, null, 8, Ke)]),
746
- td: T(({ td: e }) => [xe(C(e.name ? e.name : e), 1)]),
747
- _: 1
748
- }, 8, [
749
- "colNames",
750
- "head",
751
- "body",
752
- "config",
753
- "title",
754
- "withCloseButton"
755
- ]))]),
756
- _: 2
757
- }, [L.value.table.useDialog ? {
758
- name: "title",
759
- fn: T(() => [xe(C($.value.title), 1)]),
760
- key: "0"
761
- } : void 0, L.value.table.useDialog ? {
762
- name: "actions",
763
- fn: T(() => [f("button", {
764
- tabindex: "0",
765
- class: "vue-ui-user-options-button",
766
- onClick: t[0] ||= (e) => Q(L.value.userOptions.callbacks.csv)
767
- }, [Se(w(qe), {
768
- name: "fileCsv",
769
- stroke: $.value.props.color
770
- }, null, 8, ["stroke"])])]),
771
- key: "1"
772
- } : void 0]), 1040)) : u("", !0)
773
- ], 46, je));
774
- }
775
- }, [["__scopeId", "data-v-a4ff61af"]]);
776
- //#endregion
777
- export { Ae as n, qe as t };