vue-data-ui 2.16.6 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,16 +1,17 @@
1
- import { useCssVars as Ie, computed as d, defineAsyncComponent as S, ref as h, shallowRef as ye, onMounted as De, onBeforeUnmount as Re, watch as Me, createElementBlock as u, openBlock as o, unref as s, normalizeStyle as L, normalizeClass as O, createBlock as z, createCommentVNode as f, createSlots as Ve, withCtx as g, renderSlot as b, normalizeProps as B, guardReactiveProps as E, createVNode as Be, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ee, nextTick as Ue } from "vue";
2
- import { u as Ge, c as je, o as He, e as ge, g as Xe, d as qe, l as Ye, i as H, f as X, X as We, F as Je, E as K, a as Ke, q as Qe, r as Ze } from "./index-DvIXJm6t.js";
3
- import { u as pe } from "./useNestedProp-DrYHm61t.js";
4
- import { u as et } from "./usePrinter-CWnXbGMb.js";
5
- import { t as tt, u as at } from "./useResponsive-DfdjqQps.js";
6
- import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as st } from "./useChartAccessibility-9icAAmYg.js";
8
- import ot from "./Title-Gi81VwUM.js";
9
- import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], dt = ["stop-color"], ht = ["stop-color"], ft = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], mt = ["x", "y", "font-size", "fill", "font-weight"], yt = ["points", "fill"], gt = ["stroke", "stroke-width", "rx"], pt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x", "y", "font-size", "fill", "font-weight"], Ct = {
1
+ import { useCssVars as De, computed as d, defineAsyncComponent as O, ref as h, shallowRef as ge, onMounted as Re, onBeforeUnmount as Me, watch as Be, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as _, normalizeClass as z, createBlock as N, createCommentVNode as b, createSlots as Ee, withCtx as g, renderSlot as m, normalizeProps as E, guardReactiveProps as V, createVNode as Ve, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ue, nextTick as Ge } from "vue";
2
+ import { u as je, c as He, o as Xe, e as pe, g as qe, d as Ye, l as We, i as H, f as X, X as Je, F as Ke, E as K, a as Qe, q as Ze, r as et } from "./index-CobsZUkv.js";
3
+ import { u as ke } from "./useNestedProp-BwL5wmVa.js";
4
+ import { u as tt } from "./usePrinter-DPh6U_Qk.js";
5
+ import { t as at, u as lt } from "./useResponsive-DfdjqQps.js";
6
+ import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
8
+ import nt from "./Title-DpERl1yr.js";
9
+ import rt from "./img-utitT2Gd.js";
10
+ import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const it = ["id"], ct = ["xmlns", "viewBox"], vt = ["width", "height"], dt = ["id"], ht = ["stop-color"], ft = ["stop-color"], bt = ["stop-color"], mt = ["stroke", "stroke-width"], yt = ["stroke", "stroke-width"], gt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["points", "fill"], kt = ["stroke", "stroke-width", "rx"], Ct = ["x", "y", "font-size", "fill", "font-weight"], wt = ["x", "y", "font-size", "fill", "font-weight"], $t = {
11
12
  key: 5,
12
13
  class: "vue-data-ui-watermark"
13
- }, wt = ["innerHTML"], $t = {
14
+ }, xt = ["innerHTML"], Lt = {
14
15
  __name: "vue-ui-funnel",
15
16
  props: {
16
17
  config: {
@@ -26,22 +27,22 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
26
27
  }
27
28
  }
28
29
  },
29
- setup(ke, { expose: Ce }) {
30
- Ie((t) => ({
31
- a313bc42: Pe.value
30
+ setup(Ce, { expose: we }) {
31
+ De((t) => ({
32
+ "5b02cfb2": Pe.value
32
33
  }));
33
- const we = S(() => import("./vue-ui-accordion-D55kCO5G.js")), $e = S(() => import("./DataTable-CHBLjKtZ.js")), xe = S(() => import("./PackageVersion-Bg_9KCU-.js")), Le = S(() => import("./PenAndPaper-BPTpbnay.js")), _e = S(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ae = S(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_funnel: Te } = Ge(), m = ke, R = h(null), N = h(je()), Q = h(0), Z = h(0), ee = h(0), te = h(null), ae = h(null), le = h(null), C = ye(null), _ = ye(null), $ = h(!1), A = d(() => !!m.dataset && m.dataset.length);
34
- De(se);
34
+ const $e = O(() => import("./vue-ui-accordion-UewqY6OI.js")), xe = O(() => import("./DataTable-Dt-TIOyY.js")), Le = O(() => import("./PackageVersion-C-4Ee8BQ.js")), _e = O(() => import("./PenAndPaper-Cde-wJ3N.js")), Ae = O(() => import("./vue-ui-skeleton-8s4xts8z.js")), Te = O(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_funnel: Se } = je(), y = Ce, $ = h(null), P = h(He()), Q = h(0), Z = h(0), ee = h(0), te = h(null), ae = h(null), le = h(null), C = ge(null), A = ge(null), x = h(!1), T = d(() => !!y.dataset && y.dataset.length);
35
+ Re(se);
35
36
  function se() {
36
- if (He(m.dataset) ? ge({
37
+ if (Xe(y.dataset) ? pe({
37
38
  componentName: "VueUiFunnel",
38
39
  type: "dataset"
39
- }) : m.dataset.forEach((t, l) => {
40
- Xe({
40
+ }) : y.dataset.forEach((t, l) => {
41
+ qe({
41
42
  datasetObject: t,
42
43
  requiredAttributes: ["name", "value"]
43
44
  }).forEach((a) => {
44
- A.value = !1, ge({
45
+ T.value = !1, pe({
45
46
  componentName: "VueUiFunnel",
46
47
  type: "datasetSerieAttribute",
47
48
  property: a,
@@ -49,49 +50,49 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
49
50
  });
50
51
  });
51
52
  }), e.value.responsive) {
52
- const t = tt(() => {
53
- const { width: l, height: a } = at({
54
- chart: R.value,
53
+ const t = at(() => {
54
+ const { width: l, height: a } = lt({
55
+ chart: $.value,
55
56
  title: e.value.style.chart.title.text ? le.value : null,
56
57
  source: ae.value,
57
58
  noTitle: te.value
58
59
  });
59
60
  requestAnimationFrame(() => {
60
- c.value.height = a, c.value.width = l, k.value = he(), e.value.responsiveProportionalSizing ? (i.value.circles = K({
61
+ v.value.height = a, v.value.width = l, k.value = he(), e.value.responsiveProportionalSizing ? (c.value.circles = K({
61
62
  relator: Math.min(l, a),
62
63
  adjuster: 600,
63
64
  source: e.value.style.chart.circles.dataLabels.fontSize,
64
65
  threshold: 10,
65
66
  fallback: 10
66
- }), i.value.names = K({
67
+ }), c.value.names = K({
67
68
  relator: Math.min(l, a),
68
69
  adjuster: 600,
69
70
  source: e.value.style.chart.bars.dataLabels.name.fontSize,
70
71
  threshold: 10,
71
72
  fallback: 10
72
- }), i.value.values = K({
73
+ }), c.value.values = K({
73
74
  relator: Math.min(l, a),
74
75
  adjuster: 600,
75
76
  source: e.value.style.chart.bars.dataLabels.value.fontSize,
76
77
  threshold: 10,
77
78
  fallback: 10
78
- })) : (i.value.circles = e.value.style.chart.circles.dataLabels.fontSize, i.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, i.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
79
+ })) : (c.value.circles = e.value.style.chart.circles.dataLabels.fontSize, c.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, c.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
79
80
  });
80
81
  });
81
- C.value && (_.value && C.value.unobserve(_.value), C.value.disconnect()), C.value = new ResizeObserver(t), _.value = R.value.parentNode, C.value.observe(_.value);
82
+ C.value && (A.value && C.value.unobserve(A.value), C.value.disconnect()), C.value = new ResizeObserver(t), A.value = $.value.parentNode, C.value.observe(A.value);
82
83
  }
83
84
  }
84
- Re(() => {
85
- C.value && (_.value && C.value.unobserve(_.value), C.value.disconnect());
85
+ Me(() => {
86
+ C.value && (A.value && C.value.unobserve(A.value), C.value.disconnect());
86
87
  });
87
88
  function oe() {
88
- const t = pe({
89
- userConfig: m.config,
90
- defaultConfig: Te
89
+ const t = ke({
90
+ userConfig: y.config,
91
+ defaultConfig: Se
91
92
  });
92
93
  return t.theme ? {
93
- ...pe({
94
- userConfig: Ke.vue_ui_funnel[t.theme] || m.config,
94
+ ...ke({
95
+ userConfig: Qe.vue_ui_funnel[t.theme] || y.config,
95
96
  defaultConfig: t
96
97
  })
97
98
  } : t;
@@ -99,113 +100,113 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
99
100
  const e = d({
100
101
  get: () => oe(),
101
102
  set: (t) => t
102
- }), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = lt({ config: e.value }), { svgRef: ue } = st({ config: e.value.style.chart.title });
103
- Me(() => m.config, (t) => {
104
- e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, i.value.circles = e.value.style.chart.circles.dataLabels.fontSize, i.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, i.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, P.value.showTable = e.value.table.show;
103
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = st({ config: e.value }), { svgRef: ue } = ot({ config: e.value.style.chart.title });
104
+ Be(() => y.config, (t) => {
105
+ e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, c.value.circles = e.value.style.chart.circles.dataLabels.fontSize, c.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, c.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, I.value.showTable = e.value.table.show;
105
106
  }, { deep: !0 });
106
- const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = et({
107
- elementId: `funnel_${N.value}`,
107
+ const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = tt({
108
+ elementId: `funnel_${P.value}`,
108
109
  fileName: e.value.style.chart.title.text || "vue-ui-funnel",
109
110
  options: e.value.userOptions.print
110
- }), Se = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = h({
111
+ }), Oe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), I = h({
111
112
  showTable: e.value.table.show
112
- }), i = h({
113
+ }), c = h({
113
114
  circles: e.value.style.chart.circles.dataLabels.fontSize,
114
115
  names: e.value.style.chart.bars.dataLabels.name.fontSize,
115
116
  values: e.value.style.chart.bars.dataLabels.value.fontSize
116
- }), c = d({
117
+ }), v = d({
117
118
  get: () => ({
118
119
  height: e.value.style.chart.height,
119
120
  width: e.value.style.chart.width
120
121
  }),
121
122
  set: (t) => t
122
- }), p = d(() => A.value ? m.dataset.map((t, l) => ({
123
+ }), p = d(() => T.value ? y.dataset.map((t, l) => ({
123
124
  ...t,
124
- color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l / m.dataset.length)
125
+ color: t.color ? Ye(t.color) : We(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
125
126
  })) : []);
126
127
  setTimeout(() => {
127
- $.value = !0;
128
+ x.value = !0;
128
129
  }, p.value.length * 150);
129
130
  function he() {
130
131
  const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
131
132
  return {
132
133
  left: t,
133
134
  top: l,
134
- right: c.value.width - e.value.style.chart.padding.right,
135
- bottom: c.value.height - e.value.style.chart.padding.bottom,
136
- width: c.value.width - t - e.value.style.chart.padding.right,
137
- height: c.value.height - l - e.value.style.chart.padding.bottom
135
+ right: v.value.width - e.value.style.chart.padding.right,
136
+ bottom: v.value.height - e.value.style.chart.padding.bottom,
137
+ width: v.value.width - t - e.value.style.chart.padding.right,
138
+ height: v.value.height - l - e.value.style.chart.padding.bottom
138
139
  };
139
140
  }
140
- const k = h(he()), T = d(() => k.value.height / m.dataset.length), x = d(() => T.value * e.value.style.chart.bars.gapRatio), fe = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
141
- const a = T.value - x.value, n = k.value.top + x.value / 2 * l + (T.value - x.value / 2) * l + x.value / 2, y = t.value / p.value[0].value, v = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
141
+ const k = h(he()), S = d(() => k.value.height / y.dataset.length), L = d(() => S.value * e.value.style.chart.bars.gapRatio), fe = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
142
+ const a = S.value - L.value, o = k.value.top + L.value / 2 * l + (S.value - L.value / 2) * l + L.value / 2, f = t.value / p.value[0].value, u = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
142
143
  return {
143
144
  ...t,
144
145
  cx: k.value.left + a / 2,
145
- cy: n + a / 2,
146
+ cy: o + a / 2,
146
147
  datapointIndex: l,
147
148
  fill: t.color,
148
149
  height: Math.max(a, 0),
149
- proportion: y,
150
+ proportion: f,
150
151
  r: Math.max(a / 2, 0),
151
- width: Math.max(v, 0),
152
+ width: Math.max(u, 0),
152
153
  x: k.value.left + a + fe.value,
153
- y: n
154
+ y: o
154
155
  };
155
- })), Oe = d(() => {
156
- const t = r.value.map((l) => `${l.x + l.width},${l.y + (T.value - x.value) / 2}`);
157
- return `${r.value[0].x},${r.value[0].y + (T.value - x.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (T.value - x.value) / 2}`;
158
- }), ze = d(() => ({
156
+ })), ze = d(() => {
157
+ const t = r.value.map((l) => `${l.x + l.width},${l.y + (S.value - L.value) / 2}`);
158
+ return `${r.value[0].x},${r.value[0].y + (S.value - L.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (S.value - L.value) / 2}`;
159
+ }), Ne = d(() => ({
159
160
  x1: r.value[0].cx,
160
161
  y1: r.value[0].cy,
161
162
  x2: r.value.at(-1).cx,
162
163
  y2: r.value.at(-1).cy
163
164
  })), F = h(!1);
164
- function Ne(t) {
165
+ function be(t) {
165
166
  F.value = t, Q.value += 1;
166
167
  }
167
168
  const Pe = d(() => `${p.value.length * 150}ms`), M = h(!1);
168
169
  function Y() {
169
170
  M.value = !M.value;
170
171
  }
171
- function be() {
172
- P.value.showTable = !P.value.showTable;
172
+ function me() {
173
+ I.value.showTable = !I.value.showTable;
173
174
  }
174
- const I = d(() => {
175
+ const D = d(() => {
175
176
  const t = p.value.map((a) => ({
176
177
  name: a.name,
177
178
  color: a.color
178
179
  })), l = p.value.map((a) => a.value);
179
180
  return { head: t, body: l };
180
- }), V = d(() => {
181
+ }), B = d(() => {
181
182
  const t = [
182
183
  e.value.table.columnNames.series,
183
184
  e.value.table.columnNames.value,
184
185
  e.value.table.columnNames.percentage
185
- ], l = I.value.head.map((y, v) => {
186
- const D = H(
186
+ ], l = D.value.head.map((f, u) => {
187
+ const R = H(
187
188
  e.value.style.chart.bars.dataLabels.value.formatter,
188
- I.value.body[v],
189
+ D.value.body[u],
189
190
  X({
190
191
  p: e.value.style.chart.bars.dataLabels.value.prefix,
191
- v: I.value.body[v],
192
+ v: D.value.body[u],
192
193
  s: e.value.style.chart.bars.dataLabels.value.suffix,
193
194
  r: e.value.table.td.roundingValue
194
195
  }),
195
- { datapoint: r.value[v] }
196
+ { datapoint: r.value[u] }
196
197
  ), W = H(
197
198
  e.value.style.chart.circles.dataLabels.formatter,
198
- r.value[v].proportion * 100,
199
+ r.value[u].proportion * 100,
199
200
  X({
200
- v: r.value[v].proportion * 100,
201
+ v: r.value[u].proportion * 100,
201
202
  s: "%",
202
203
  r: e.value.table.td.roundingPercentage
203
204
  }),
204
- { datapoint: r.value[v] }
205
+ { datapoint: r.value[u] }
205
206
  );
206
207
  return [
207
- { color: y.color, name: y.name },
208
- D,
208
+ { color: f.color, name: f.name },
209
+ R,
209
210
  W
210
211
  ];
211
212
  }), a = {
@@ -232,55 +233,69 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
232
233
  config: a
233
234
  };
234
235
  });
235
- function me(t = null) {
236
- Ue(() => {
237
- const l = I.value.head.map((y, v) => [[
238
- y.name
239
- ], [I.value.body[v]], [r.value[v].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), n = Qe(a);
240
- t ? t(n) : Ze({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-funnel" });
236
+ function ye(t = null) {
237
+ Ge(() => {
238
+ const l = D.value.head.map((f, u) => [[
239
+ f.name
240
+ ], [D.value.body[u]], [r.value[u].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 = Ze(a);
241
+ t ? t(o) : et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
241
242
  });
242
243
  }
243
- function Fe() {
244
+ function Ie() {
244
245
  return p.value;
245
246
  }
246
- return Ce({
247
- getData: Fe,
247
+ async function Fe({ scale: t = 2 } = {}) {
248
+ if (!$.value) return;
249
+ const { width: l, height: a } = $.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: u } = await rt({ domElement: $.value, base64: !0, img: !0, scale: t });
250
+ return {
251
+ imageUri: f,
252
+ base64: u,
253
+ title: e.value.style.chart.title.text,
254
+ width: l,
255
+ height: a,
256
+ aspectRatio: o
257
+ };
258
+ }
259
+ return we({
260
+ getData: Ie,
261
+ getImage: Fe,
248
262
  generatePdf: ve,
249
- generateCsv: me,
263
+ generateCsv: ye,
250
264
  generateImage: de,
251
- toggleTable: be,
252
- toggleAnnotator: Y
253
- }), (t, l) => (o(), u("div", {
265
+ toggleTable: me,
266
+ toggleAnnotator: Y,
267
+ toggleFullscreen: be
268
+ }), (t, l) => (n(), i("div", {
254
269
  ref_key: "funnelChart",
255
- ref: R,
256
- class: O(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
257
- style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
258
- id: `funnel_${N.value}`,
270
+ ref: $,
271
+ class: z(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
272
+ style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
273
+ id: `funnel_${P.value}`,
259
274
  onMouseenter: l[1] || (l[1] = () => s(ne)(!0)),
260
275
  onMouseleave: l[2] || (l[2] = () => s(ne)(!1))
261
276
  }, [
262
- e.value.userOptions.buttons.annotator ? (o(), z(s(Le), {
277
+ e.value.userOptions.buttons.annotator ? (n(), N(s(_e), {
263
278
  key: 0,
264
279
  svgRef: s(ue),
265
280
  backgroundColor: e.value.style.chart.backgroundColor,
266
281
  color: e.value.style.chart.color,
267
282
  active: M.value,
268
283
  onClose: Y
269
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
270
- Se.value ? (o(), u("div", {
284
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
285
+ Oe.value ? (n(), i("div", {
271
286
  key: 1,
272
287
  ref_key: "noTitle",
273
288
  ref: te,
274
289
  class: "vue-data-ui-no-title-space",
275
290
  style: "height:36px; width: 100%;background:transparent"
276
- }, null, 512)) : f("", !0),
277
- e.value.style.chart.title.text ? (o(), u("div", {
291
+ }, null, 512)) : b("", !0),
292
+ e.value.style.chart.title.text ? (n(), i("div", {
278
293
  key: 2,
279
294
  ref_key: "chartTitle",
280
295
  ref: le,
281
296
  style: "width:100%;background:transparent;padding-bottom:24px"
282
297
  }, [
283
- (o(), z(ot, {
298
+ (n(), N(nt, {
284
299
  key: `title_${Z.value}`,
285
300
  config: {
286
301
  title: {
@@ -293,15 +308,15 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
293
308
  }
294
309
  }
295
310
  }, null, 8, ["config"]))
296
- ], 512)) : f("", !0),
297
- e.value.userOptions.show && A.value && (s(re) || s(q)) ? (o(), z(s(Ae), {
311
+ ], 512)) : b("", !0),
312
+ e.value.userOptions.show && T.value && (s(re) || s(q)) ? (n(), N(s(Te), {
298
313
  ref: "details",
299
314
  key: `user_option_${Q.value}`,
300
315
  backgroundColor: e.value.style.chart.backgroundColor,
301
316
  color: e.value.style.chart.color,
302
317
  isPrinting: s(ie),
303
318
  isImaging: s(ce),
304
- uid: N.value,
319
+ uid: P.value,
305
320
  hasTooltip: !1,
306
321
  hasPdf: e.value.userOptions.buttons.pdf,
307
322
  hasImg: e.value.userOptions.buttons.img,
@@ -310,7 +325,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
310
325
  hasLabel: !1,
311
326
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
312
327
  isFullscreen: F.value,
313
- chartElement: R.value,
328
+ chartElement: $.value,
314
329
  position: e.value.userOptions.position,
315
330
  titles: { ...e.value.userOptions.buttonTitles },
316
331
  hasAnnotator: e.value.userOptions.buttons.annotator,
@@ -318,90 +333,90 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
318
333
  callbacks: e.value.userOptions.callbacks,
319
334
  printScale: e.value.userOptions.print.scale,
320
335
  onToggleAnnotator: Y,
321
- onToggleFullscreen: Ne,
336
+ onToggleFullscreen: be,
322
337
  onGeneratePdf: s(ve),
323
338
  onGenerateImage: s(de),
324
- onToggleTable: be,
325
- onGenerateCsv: me,
326
- style: L({
339
+ onToggleTable: me,
340
+ onGenerateCsv: ye,
341
+ style: _({
327
342
  visibility: s(re) ? s(q) ? "visible" : "hidden" : "visible"
328
343
  })
329
- }, Ve({ _: 2 }, [
344
+ }, Ee({ _: 2 }, [
330
345
  t.$slots.menuIcon ? {
331
346
  name: "menuIcon",
332
- fn: g(({ isOpen: a, color: n }) => [
333
- b(t.$slots, "menuIcon", B(E({ isOpen: a, color: n })), void 0, !0)
347
+ fn: g(({ isOpen: a, color: o }) => [
348
+ m(t.$slots, "menuIcon", E(V({ isOpen: a, color: o })), void 0, !0)
334
349
  ]),
335
350
  key: "0"
336
351
  } : void 0,
337
352
  t.$slots.optionPdf ? {
338
353
  name: "optionPdf",
339
354
  fn: g(() => [
340
- b(t.$slots, "optionPdf", {}, void 0, !0)
355
+ m(t.$slots, "optionPdf", {}, void 0, !0)
341
356
  ]),
342
357
  key: "1"
343
358
  } : void 0,
344
359
  t.$slots.optionCsv ? {
345
360
  name: "optionCsv",
346
361
  fn: g(() => [
347
- b(t.$slots, "optionCsv", {}, void 0, !0)
362
+ m(t.$slots, "optionCsv", {}, void 0, !0)
348
363
  ]),
349
364
  key: "2"
350
365
  } : void 0,
351
366
  t.$slots.optionImg ? {
352
367
  name: "optionImg",
353
368
  fn: g(() => [
354
- b(t.$slots, "optionImg", {}, void 0, !0)
369
+ m(t.$slots, "optionImg", {}, void 0, !0)
355
370
  ]),
356
371
  key: "3"
357
372
  } : void 0,
358
373
  t.$slots.optionTable ? {
359
374
  name: "optionTable",
360
375
  fn: g(() => [
361
- b(t.$slots, "optionTable", {}, void 0, !0)
376
+ m(t.$slots, "optionTable", {}, void 0, !0)
362
377
  ]),
363
378
  key: "4"
364
379
  } : void 0,
365
380
  t.$slots.optionFullscreen ? {
366
381
  name: "optionFullscreen",
367
- fn: g(({ toggleFullscreen: a, isFullscreen: n }) => [
368
- b(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
382
+ fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
383
+ m(t.$slots, "optionFullscreen", E(V({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
369
384
  ]),
370
385
  key: "5"
371
386
  } : void 0,
372
387
  t.$slots.optionAnnotator ? {
373
388
  name: "optionAnnotator",
374
- fn: g(({ toggleAnnotator: a, isAnnotator: n }) => [
375
- b(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: n })), void 0, !0)
389
+ fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
390
+ m(t.$slots, "optionAnnotator", E(V({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
376
391
  ]),
377
392
  key: "6"
378
393
  } : void 0
379
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
380
- A.value ? (o(), u("svg", {
394
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
395
+ T.value ? (n(), i("svg", {
381
396
  key: 4,
382
397
  ref_key: "svgRef",
383
398
  ref: ue,
384
- xmlns: s(We),
385
- class: O({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
386
- viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
387
- style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
399
+ xmlns: s(Je),
400
+ class: z({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
401
+ viewBox: `0 0 ${v.value.width <= 0 ? 10 : v.value.width} ${v.value.height <= 0 ? 10 : v.value.height}`,
402
+ style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
388
403
  }, [
389
- Be(s(xe)),
390
- t.$slots["chart-background"] ? (o(), u("foreignObject", {
404
+ Ve(s(Le)),
405
+ t.$slots["chart-background"] ? (n(), i("foreignObject", {
391
406
  key: 0,
392
407
  x: 0,
393
408
  y: 0,
394
- width: c.value.width <= 0 ? 10 : c.value.width,
395
- height: c.value.height <= 0 ? 10 : c.value.height,
409
+ width: v.value.width <= 0 ? 10 : v.value.width,
410
+ height: v.value.height <= 0 ? 10 : v.value.height,
396
411
  style: {
397
412
  pointerEvents: "none"
398
413
  }
399
414
  }, [
400
- b(t.$slots, "chart-background", {}, void 0, !0)
401
- ], 8, it)) : f("", !0),
415
+ m(t.$slots, "chart-background", {}, void 0, !0)
416
+ ], 8, vt)) : b("", !0),
402
417
  w("defs", null, [
403
418
  w("linearGradient", {
404
- id: `funnel_area_${N.value}`,
419
+ id: `funnel_area_${P.value}`,
405
420
  x1: "0%",
406
421
  x2: "100%",
407
422
  y1: "0%",
@@ -411,18 +426,18 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
411
426
  offset: "0%",
412
427
  "stop-color": e.value.style.chart.backgroundColor,
413
428
  "stop-opacity": 0
414
- }, null, 8, vt),
429
+ }, null, 8, ht),
415
430
  w("stop", {
416
431
  offset: "20%",
417
432
  "stop-color": e.value.style.chart.area.color
418
- }, null, 8, dt),
433
+ }, null, 8, ft),
419
434
  w("stop", {
420
435
  offset: "100%",
421
436
  "stop-color": e.value.style.chart.area.color
422
- }, null, 8, ht)
423
- ], 8, ct)
437
+ }, null, 8, bt)
438
+ ], 8, dt)
424
439
  ]),
425
- e.value.style.chart.circleLinks.show ? (o(), u("line", J({ key: 1 }, ze.value, {
440
+ e.value.style.chart.circleLinks.show ? (n(), i("line", J({ key: 1 }, Ne.value, {
426
441
  stroke: e.value.style.chart.circleLinks.color,
427
442
  "stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
428
443
  "stroke-linecap": "round",
@@ -433,29 +448,29 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
433
448
  strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
434
449
  strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
435
450
  }
436
- }), null, 16, ft)) : f("", !0),
437
- (o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r: y, fill: v }, D) => (o(), u("circle", J({ ref_for: !0 }, { cx: a, cy: n, r: y, fill: v }, {
451
+ }), null, 16, mt)) : b("", !0),
452
+ (n(!0), i(U, null, G(r.value, ({ cx: a, cy: o, r: f, fill: u }, R) => (n(), i("circle", J({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: u }, {
438
453
  stroke: e.value.style.chart.circles.stroke,
439
454
  "stroke-width": e.value.style.chart.circles.strokeWidth,
440
455
  class: {
441
- animated: e.value.useCssAnimation && !$.value
456
+ animated: e.value.useCssAnimation && !x.value
442
457
  },
443
458
  style: {
444
- animationDelay: `${150 * D}ms`
459
+ animationDelay: `${150 * R}ms`
445
460
  }
446
- }), null, 16, bt))), 256)),
447
- (o(!0), u(U, null, G(r.value, (a, n) => (o(), u("text", {
461
+ }), null, 16, yt))), 256)),
462
+ (n(!0), i(U, null, G(r.value, (a, o) => (n(), i("text", {
448
463
  x: a.cx,
449
- y: a.cy + i.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
464
+ y: a.cy + c.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
450
465
  "text-anchor": "middle",
451
- "font-size": i.value.circles,
452
- fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Je)(a.color) : e.value.style.chart.circles.dataLabels.color,
466
+ "font-size": c.value.circles,
467
+ fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Ke)(a.color) : e.value.style.chart.circles.dataLabels.color,
453
468
  "font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
454
- class: O({
455
- animated: e.value.useCssAnimation && !$.value
469
+ class: z({
470
+ animated: e.value.useCssAnimation && !x.value
456
471
  }),
457
- style: L({
458
- animationDelay: `${150 * n}ms`
472
+ style: _({
473
+ animationDelay: `${150 * o}ms`
459
474
  })
460
475
  }, j(s(H)(
461
476
  e.value.style.chart.circles.dataLabels.formatter,
@@ -466,56 +481,56 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
466
481
  r: e.value.style.chart.circles.dataLabels.rounding
467
482
  }),
468
483
  { datapoint: a }
469
- )), 15, mt))), 256)),
470
- e.value.style.chart.area.show ? (o(), u("polygon", {
484
+ )), 15, gt))), 256)),
485
+ e.value.style.chart.area.show ? (n(), i("polygon", {
471
486
  key: 2,
472
- points: Oe.value,
473
- fill: `url(#funnel_area_${N.value})`,
474
- class: O({
475
- animated: e.value.useCssAnimation && !$.value
487
+ points: ze.value,
488
+ fill: `url(#funnel_area_${P.value})`,
489
+ class: z({
490
+ animated: e.value.useCssAnimation && !x.value
476
491
  }),
477
- style: L({
492
+ style: _({
478
493
  transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
479
494
  })
480
- }, null, 14, yt)) : f("", !0),
481
- (o(!0), u(U, null, G(r.value, ({ x: a, y: n, height: y, width: v, fill: D }, W) => (o(), u("rect", J({ ref_for: !0 }, { x: a, y: n, height: y, width: v, fill: D }, {
495
+ }, null, 14, pt)) : b("", !0),
496
+ (n(!0), i(U, null, G(r.value, ({ x: a, y: o, height: f, width: u, fill: R }, W) => (n(), i("rect", J({ ref_for: !0 }, { x: a, y: o, height: f, width: u, fill: R }, {
482
497
  stroke: e.value.style.chart.bars.stroke,
483
498
  "stroke-width": e.value.style.chart.bars.strokeWidth,
484
499
  rx: e.value.style.chart.bars.borderRadius,
485
500
  class: {
486
- animated: e.value.useCssAnimation && !$.value
501
+ animated: e.value.useCssAnimation && !x.value
487
502
  },
488
503
  style: {
489
504
  animationDelay: `${150 * W}ms`
490
505
  }
491
- }), null, 16, gt))), 256)),
492
- (o(!0), u(U, null, G(r.value, (a, n) => (o(), u("g", null, [
506
+ }), null, 16, kt))), 256)),
507
+ (n(!0), i(U, null, G(r.value, (a, o) => (n(), i("g", null, [
493
508
  w("text", {
494
509
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
495
- y: a.cy - i.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
510
+ y: a.cy - c.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
496
511
  "text-anchor": "start",
497
- "font-size": i.value.names,
512
+ "font-size": c.value.names,
498
513
  fill: e.value.style.chart.bars.dataLabels.name.color,
499
514
  "font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
500
- class: O({
501
- animated: e.value.useCssAnimation && !$.value
515
+ class: z({
516
+ animated: e.value.useCssAnimation && !x.value
502
517
  }),
503
- style: L({
504
- animationDelay: `${150 * n}ms`
518
+ style: _({
519
+ animationDelay: `${150 * o}ms`
505
520
  })
506
- }, j(a.name), 15, pt),
521
+ }, j(a.name), 15, Ct),
507
522
  w("text", {
508
523
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
509
- y: a.cy + i.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
524
+ y: a.cy + c.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
510
525
  "text-anchor": "start",
511
- "font-size": i.value.values,
526
+ "font-size": c.value.values,
512
527
  fill: e.value.style.chart.bars.dataLabels.value.color,
513
528
  "font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
514
- class: O({
515
- animated: e.value.useCssAnimation && !$.value
529
+ class: z({
530
+ animated: e.value.useCssAnimation && !x.value
516
531
  }),
517
- style: L({
518
- animationDelay: `${150 * n}ms`
532
+ style: _({
533
+ animationDelay: `${150 * o}ms`
519
534
  })
520
535
  }, j(s(H)(
521
536
  e.value.style.chart.bars.dataLabels.value.formatter,
@@ -527,14 +542,14 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
527
542
  r: e.value.style.chart.bars.dataLabels.value.rounding
528
543
  }),
529
544
  { datapoint: a }
530
- )), 15, kt)
545
+ )), 15, wt)
531
546
  ]))), 256)),
532
- b(t.$slots, "svg", { svg: c.value }, void 0, !0)
533
- ], 14, ut)) : f("", !0),
534
- t.$slots.watermark ? (o(), u("div", Ct, [
535
- b(t.$slots, "watermark", B(E({ isPrinting: s(ie) || s(ce) })), void 0, !0)
536
- ])) : f("", !0),
537
- A.value ? f("", !0) : (o(), z(s(_e), {
547
+ m(t.$slots, "svg", { svg: v.value }, void 0, !0)
548
+ ], 14, ct)) : b("", !0),
549
+ t.$slots.watermark ? (n(), i("div", $t, [
550
+ m(t.$slots, "watermark", E(V({ isPrinting: s(ie) || s(ce) })), void 0, !0)
551
+ ])) : b("", !0),
552
+ T.value ? b("", !0) : (n(), N(s(Ae), {
538
553
  key: 6,
539
554
  config: {
540
555
  type: "verticalBar",
@@ -549,19 +564,19 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
549
564
  }
550
565
  }
551
566
  }, null, 8, ["config"])),
552
- t.$slots.source ? (o(), u("div", {
567
+ t.$slots.source ? (n(), i("div", {
553
568
  key: 7,
554
569
  ref_key: "source",
555
570
  ref: ae,
556
571
  dir: "auto"
557
572
  }, [
558
- b(t.$slots, "source", {}, void 0, !0)
559
- ], 512)) : f("", !0),
560
- A.value ? (o(), z(s(we), {
573
+ m(t.$slots, "source", {}, void 0, !0)
574
+ ], 512)) : b("", !0),
575
+ T.value ? (n(), N(s($e), {
561
576
  key: 8,
562
577
  hideDetails: "",
563
578
  config: {
564
- open: P.value.showTable,
579
+ open: I.value.showTable,
565
580
  maxHeight: 1e4,
566
581
  body: {
567
582
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -574,32 +589,32 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
574
589
  }
575
590
  }, {
576
591
  content: g(() => [
577
- (o(), z(s($e), {
592
+ (n(), N(s(xe), {
578
593
  key: `table_${ee.value}`,
579
- colNames: V.value.colNames,
580
- head: V.value.head,
581
- body: V.value.body,
582
- config: V.value.config,
594
+ colNames: B.value.colNames,
595
+ head: B.value.head,
596
+ body: B.value.body,
597
+ config: B.value.config,
583
598
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
584
- onClose: l[0] || (l[0] = (a) => P.value.showTable = !1)
599
+ onClose: l[0] || (l[0] = (a) => I.value.showTable = !1)
585
600
  }, {
586
601
  th: g(({ th: a }) => [
587
602
  w("div", {
588
603
  innerHTML: a,
589
604
  style: { display: "flex", "align-items": "center" }
590
- }, null, 8, wt)
605
+ }, null, 8, xt)
591
606
  ]),
592
607
  td: g(({ td: a }) => [
593
- Ee(j(a.name ? a.name : a), 1)
608
+ Ue(j(a.name ? a.name : a), 1)
594
609
  ]),
595
610
  _: 1
596
611
  }, 8, ["colNames", "head", "body", "config", "title"]))
597
612
  ]),
598
613
  _: 1
599
- }, 8, ["config"])) : f("", !0)
600
- ], 46, rt));
614
+ }, 8, ["config"])) : b("", !0)
615
+ ], 46, it));
601
616
  }
602
- }, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-6a133114"]]);
617
+ }, Dt = /* @__PURE__ */ ut(Lt, [["__scopeId", "data-v-029174d3"]]);
603
618
  export {
604
- Pt as default
619
+ Dt as default
605
620
  };