vue-data-ui 3.0.2 → 3.0.3

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 (90) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
  90. package/package.json +1 -1
@@ -1,28 +1,28 @@
1
- import { defineAsyncComponent as W, ref as c, computed as f, onMounted as Se, toRefs as Ie, watch as ie, onBeforeUnmount as Pe, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as D, normalizeClass as ce, createBlock as C, createCommentVNode as i, createElementVNode as I, createSlots as Fe, withCtx as w, renderSlot as m, normalizeProps as P, guardReactiveProps as F, createVNode as He, Fragment as V, renderList as G, toDisplayString as H } from "vue";
2
- import { u as Me, c as Te, t as Re, l as ze, D as Ne, e as Ue, k as M, i as T, X as Ee, o as he, f as ve, g as We, b as De } from "./index-B9Ct1B_p.js";
3
- import { u as de } from "./useNestedProp-C0gKxLur.js";
4
- import { u as Ve } from "./usePrinter-DcZXg1hH.js";
5
- import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as je } from "./useChartAccessibility-9icAAmYg.js";
7
- import qe from "./Legend-CQsASoei.js";
8
- import Xe from "./Title-CntvKJss.js";
9
- import Ye from "./img-Cv4nScI0.js";
10
- import { t as Je, u as Ke } from "./useResponsive-DfdjqQps.js";
11
- import { u as Qe, B as Ze } from "./useLoading-D7YHNtLX.js";
12
- import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const tt = ["id"], at = {
1
+ import { defineAsyncComponent as W, ref as c, computed as f, onMounted as Ie, toRefs as Pe, watch as ce, onBeforeUnmount as Fe, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as D, normalizeClass as ve, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Te, withCtx as A, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as He, Fragment as V, renderList as G, toDisplayString as H, Teleport as Me } from "vue";
2
+ import { u as Re, c as ze, t as Ne, l as Ue, D as Ee, e as We, k as M, i as R, X as De, o as he, f as de, g as Ve, b as Ge } from "./index-DrRiscPm.js";
3
+ import { u as ge } from "./useNestedProp-BXhArS-K.js";
4
+ import { u as je } from "./usePrinter-CZk2ISUm.js";
5
+ import { u as qe } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
7
+ import Ye from "./Legend-CevCqVZ5.js";
8
+ import Je from "./Title-CINHji0n.js";
9
+ import Ke from "./img-CBdOMFyn.js";
10
+ import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
11
+ import { u as et, B as tt } from "./useLoading-D7YHNtLX.js";
12
+ import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const lt = ["id"], st = {
14
14
  key: 1,
15
15
  ref: "noTitle",
16
16
  class: "vue-data-ui-no-title-space",
17
17
  style: "height:36px; width: 100%;background:transparent"
18
- }, lt = ["xmlns", "viewBox"], st = ["width", "height"], rt = { key: 1 }, ot = ["x", "y", "height", "width", "fill", "stroke"], nt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ut = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], it = ["x", "y", "font-size", "font-weight", "fill"], ct = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ht = { key: 3 }, vt = ["x", "y", "fill", "font-size", "font-weight"], dt = { key: 4 }, gt = ["x1", "x2", "y1", "y2", "stroke"], ft = {
18
+ }, rt = ["id"], ot = ["xmlns", "viewBox"], nt = ["width", "height"], ut = { key: 1 }, it = ["x", "y", "height", "width", "fill", "stroke"], ct = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], ht = ["x", "y", "font-size", "font-weight", "fill"], dt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], gt = { key: 3 }, ft = ["x", "y", "fill", "font-size", "font-weight"], mt = { key: 4 }, yt = ["x1", "x2", "y1", "y2", "stroke"], pt = {
19
19
  key: 4,
20
20
  class: "vue-data-ui-watermark"
21
- }, mt = {
21
+ }, bt = ["id"], kt = {
22
22
  key: 0,
23
23
  class: "vue-ui-bullet-legend-item",
24
24
  dir: "auto"
25
- }, yt = { style: { "margin-right": "2px" } }, pt = {
25
+ }, wt = { style: { "margin-right": "2px" } }, xt = {
26
26
  __name: "vue-ui-bullet",
27
27
  props: {
28
28
  config: {
@@ -38,11 +38,11 @@ const tt = ["id"], at = {
38
38
  }
39
39
  }
40
40
  },
41
- setup(ge, { expose: fe }) {
42
- const me = W(() => import("./PackageVersion-DZGrOKw5.js")), ye = W(() => import("./PenAndPaper-CdXspg5R.js")), pe = W(() => import("./UserOptions-DQyIO0ts.js")), { vue_ui_bullet: be } = Me(), L = ge, y = c(null), j = c(null), q = c(0), X = c(null), Y = c(null), ke = c(0), x = c(null), O = c(null), p = f({
43
- get: () => u.value.hasOwnProperty("value"),
41
+ setup(fe, { expose: me }) {
42
+ const ye = W(() => import("./PackageVersion-n4qokxnx.js")), pe = W(() => import("./PenAndPaper-C_R9vJkU.js")), be = W(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_bullet: ke } = Re(), O = fe, y = c(null), j = c(null), q = c(0), X = c(null), Y = c(null), we = c(0), C = c(null), B = c(null), J = c(!1), b = f({
43
+ get: () => i.value.hasOwnProperty("value"),
44
44
  set: (t) => t
45
- }), A = f(() => u.value.segments ? Array.isArray(u.value.segments) ? u.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
45
+ }), L = f(() => i.value.segments ? Array.isArray(i.value.segments) ? i.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
46
46
 
47
47
  segments: [
48
48
  {
@@ -53,7 +53,7 @@ segments: [
53
53
  },
54
54
  {...}
55
55
  ]
56
- `), p.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
56
+ `), b.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
57
57
 
58
58
  segments: [
59
59
  {
@@ -64,7 +64,7 @@ segments: [
64
64
  },
65
65
  {...}
66
66
  ]
67
- `), p.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
67
+ `), b.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
68
68
 
69
69
  segments: [
70
70
  {
@@ -75,57 +75,59 @@ segments: [
75
75
  },
76
76
  {...}
77
77
  ]
78
- `), p.value = !1, !1)), J = f(() => !!e.value.debug);
79
- function K() {
80
- if (he(u.value) ? (ve({
78
+ `), b.value = !1, !1)), K = f(() => !!e.value.debug);
79
+ function Q() {
80
+ if (he(i.value) ? (de({
81
81
  componentName: "VueUiBullet",
82
82
  type: "dataset",
83
- debug: J.value
84
- }), B.value = !0) : A.value ? u.value.segments.forEach((t, s) => {
85
- We({
83
+ debug: K.value
84
+ }), S.value = !0) : L.value ? i.value.segments.forEach((t, s) => {
85
+ Ve({
86
86
  datasetObject: t,
87
87
  requiredAttributes: ["name", "from", "to"]
88
88
  }).forEach((a) => {
89
- p.value = !1, ve({
89
+ b.value = !1, de({
90
90
  componentName: "VueUiBullet segment",
91
91
  type: "datasetSerieAttribute",
92
92
  property: a,
93
93
  index: s,
94
- debug: J.value
94
+ debug: K.value
95
95
  });
96
96
  });
97
- }) : (p.value = !1, B.value = !0), he(u.value) || (B.value = e.value.loading), e.value.responsive) {
98
- const t = Je(() => {
99
- const { width: s, height: a } = Ke({
97
+ }) : (b.value = !1, S.value = !0), he(i.value) || (S.value = e.value.loading), e.value.responsive) {
98
+ const t = Qe(() => {
99
+ const { width: s, height: a } = Ze({
100
100
  chart: y.value,
101
101
  title: e.value.style.chart.title.text ? j.value : null,
102
102
  legend: e.value.style.chart.legend.show ? X.value : null,
103
103
  source: Y.value
104
104
  });
105
105
  requestAnimationFrame(() => {
106
- $.value.width = s, $.value.height = a - 12;
106
+ I.value.width = s, I.value.height = a - 12;
107
107
  });
108
108
  });
109
- x.value && (O.value && x.value.unobserve(O.value), x.value.disconnect()), x.value = new ResizeObserver(t), O.value = y.value.parentNode, x.value.observe(O.value);
109
+ C.value && (B.value && C.value.unobserve(B.value), C.value.disconnect()), C.value = new ResizeObserver(t), B.value = y.value.parentNode, C.value.observe(B.value);
110
110
  }
111
- e.value.style.chart.animation.show && !b.value && ae(u.value.value || 0);
111
+ e.value.style.chart.animation.show && !k.value && le(i.value.value || 0);
112
112
  }
113
- Se(K);
114
- const R = c(Te());
113
+ Ie(() => {
114
+ J.value = !0, Q();
115
+ });
116
+ const p = c(ze());
115
117
  function z() {
116
- const t = de({
117
- userConfig: L.config,
118
- defaultConfig: be
118
+ const t = ge({
119
+ userConfig: O.config,
120
+ defaultConfig: ke
119
121
  });
120
122
  return t.theme ? {
121
- ...de({
122
- userConfig: De.vue_ui_bullet[t.theme] || L.config,
123
+ ...ge({
124
+ userConfig: Ge.vue_ui_bullet[t.theme] || O.config,
123
125
  defaultConfig: t
124
126
  })
125
127
  } : t;
126
128
  }
127
- const e = c(z()), { loading: b, FINAL_DATASET: u, manualLoading: B } = Qe({
128
- ...Ie(L),
129
+ const e = c(z()), { loading: k, FINAL_DATASET: i, manualLoading: S } = et({
130
+ ...Pe(O),
129
131
  FINAL_CONFIG: e,
130
132
  prepareConfig: z,
131
133
  skeletonDataset: {
@@ -152,7 +154,7 @@ segments: [
152
154
  }
153
155
  ]
154
156
  },
155
- skeletonConfig: Re({
157
+ skeletonConfig: Ne({
156
158
  defaultConfig: e.value,
157
159
  userConfig: {
158
160
  userOptions: { show: !1 },
@@ -172,83 +174,83 @@ segments: [
172
174
  }
173
175
  }
174
176
  })
175
- }), { userOptionsVisible: N, setUserOptionsVisibility: Q, keepUserOptionState: Z } = Ge({ config: e.value }), { svgRef: ee } = je({ config: e.value.style.chart.title });
176
- ie(() => L.config, (t) => {
177
- b.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, K(), q.value += 1;
177
+ }), { userOptionsVisible: N, setUserOptionsVisibility: Z, keepUserOptionState: ee } = qe({ config: e.value }), { svgRef: te } = Xe({ config: e.value.style.chart.title });
178
+ ce(() => O.config, (t) => {
179
+ k.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, Q(), q.value += 1;
178
180
  }, { deep: !0 });
179
- const $ = c({
181
+ const I = c({
180
182
  width: e.value.style.chart.width,
181
183
  height: e.value.style.chart.height
182
- }), we = f(() => $.value.width), xe = f(() => $.value.height), l = f(() => {
183
- const t = xe.value, s = we.value, a = e.value.style.chart.padding.left, g = s - e.value.style.chart.padding.right, k = e.value.style.chart.padding.top, h = t - e.value.style.chart.padding.bottom;
184
+ }), xe = f(() => I.value.width), _e = f(() => I.value.height), l = f(() => {
185
+ const t = _e.value, s = xe.value, a = e.value.style.chart.padding.left, g = s - e.value.style.chart.padding.right, w = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
184
186
  return {
185
187
  height: Math.max(1e-3, t),
186
188
  width: Math.max(1e-3, s),
187
189
  left: a,
188
190
  right: g,
189
- top: k,
190
- bottom: h,
191
+ top: w,
192
+ bottom: v,
191
193
  chartWidth: Math.max(1e-3, g - a),
192
- chartHeight: Math.max(1e-3, h - k)
194
+ chartHeight: Math.max(1e-3, v - w)
193
195
  };
194
196
  }), Ae = f(() => {
195
- if (!A.value) return [];
197
+ if (!L.value) return [];
196
198
  const t = [];
197
- for (let s = 0; s < u.value.segments.length; s += 1)
198
- t.push(ze(e.value.style.chart.segments.baseColor, s / u.value.segments.length));
199
+ for (let s = 0; s < i.value.segments.length; s += 1)
200
+ t.push(Ue(e.value.style.chart.segments.baseColor, s / i.value.segments.length));
199
201
  return t;
200
- }), U = f(() => A.value ? {
201
- min: Math.min(...u.value.segments.map((t) => t.from)),
202
- max: Math.max(...u.value.segments.map((t) => t.to))
203
- } : { min: 0, max: 1 }), v = c(_e());
204
- ie(() => u.value, (t) => {
205
- t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !b.value ? ae(t.value || 0) : v.value = t.value || 0;
202
+ }), U = f(() => L.value ? {
203
+ min: Math.min(...i.value.segments.map((t) => t.from)),
204
+ max: Math.max(...i.value.segments.map((t) => t.to))
205
+ } : { min: 0, max: 1 }), h = c(Ce());
206
+ ce(() => i.value, (t) => {
207
+ t.hasOwnProperty("value") && (S.value = !1), e.value.style.chart.animation.show && !k.value ? le(t.value || 0) : h.value = t.value || 0;
206
208
  }, { deep: !0 });
207
- function _e() {
208
- return e.value.style.chart.animation.show && !b.value ? U.value.min : u.value.value || 0;
209
+ function Ce() {
210
+ return e.value.style.chart.animation.show && !k.value ? U.value.min : i.value.value || 0;
209
211
  }
210
- const te = c(null);
211
- function ae(t) {
212
- const s = Math.abs(t - v.value) / e.value.style.chart.animation.animationFrames;
212
+ const ae = c(null);
213
+ function le(t) {
214
+ const s = Math.abs(t - h.value) / e.value.style.chart.animation.animationFrames;
213
215
  function a() {
214
- v.value < t ? v.value = Math.min(v.value + s, t) : v.value > t && (v.value = Math.max(v.value - s, t)), v.value !== t && (te.value = requestAnimationFrame(a));
216
+ h.value < t ? h.value = Math.min(h.value + s, t) : h.value > t && (h.value = Math.max(h.value - s, t)), h.value !== t && (ae.value = requestAnimationFrame(a));
215
217
  }
216
218
  a();
217
219
  }
218
- Pe(() => {
219
- cancelAnimationFrame(te.value);
220
+ Fe(() => {
221
+ cancelAnimationFrame(ae.value);
220
222
  });
221
223
  const d = f(() => {
222
- if (!A.value)
224
+ if (!L.value)
223
225
  return [];
224
- const t = Ne(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
225
- x: l.value.left + (u.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
226
+ const t = Ee(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
227
+ x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
226
228
  }, g = {
227
- width: (v.value + s) / (t.max + s) * l.value.chartWidth
228
- }, k = t.ticks.map((h) => ({
229
- value: h,
229
+ width: (h.value + s) / (t.max + s) * l.value.chartWidth
230
+ }, w = t.ticks.map((v) => ({
231
+ value: v,
230
232
  y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
231
- x: l.value.left + (h + s) / (t.max + s) * l.value.chartWidth
233
+ x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
232
234
  }));
233
235
  return {
234
236
  scale: t,
235
237
  target: a,
236
238
  value: g,
237
- ticks: k,
238
- chunks: u.value.segments.map((h, $e) => ({
239
- ...h,
240
- color: h.color ? Ue(h.color) : Ae.value[$e],
241
- x: l.value.left + l.value.chartWidth * ((h.from + s) / (t.max + s)),
239
+ ticks: w,
240
+ chunks: i.value.segments.map((v, Se) => ({
241
+ ...v,
242
+ color: v.color ? We(v.color) : Ae.value[Se],
243
+ x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
242
244
  y: l.value.top,
243
245
  height: l.value.chartHeight,
244
- width: l.value.chartWidth * (Math.abs(h.to - h.from) / (t.max + s))
246
+ width: l.value.chartWidth * (Math.abs(v.to - v.from) / (t.max + s))
245
247
  }))
246
248
  };
247
- }), le = f(() => !d.value || !d.value.chunks || !d.value.chunks.length ? [] : d.value.chunks.map((t) => {
249
+ }), se = f(() => !d.value || !d.value.chunks || !d.value.chunks.length ? [] : d.value.chunks.map((t) => {
248
250
  const s = M(
249
251
  e.value.style.chart.segments.dataLabels.formatter,
250
252
  t.from,
251
- T({
253
+ R({
252
254
  p: e.value.style.chart.segments.dataLabels.prefix,
253
255
  v: t.from,
254
256
  s: e.value.style.chart.segments.dataLabels.suffix,
@@ -257,7 +259,7 @@ segments: [
257
259
  ), a = M(
258
260
  e.value.style.chart.segments.dataLabels.formatter,
259
261
  t.to,
260
- T({
262
+ R({
261
263
  p: e.value.style.chart.segments.dataLabels.prefix,
262
264
  v: t.to,
263
265
  s: e.value.style.chart.segments.dataLabels.suffix,
@@ -269,72 +271,72 @@ segments: [
269
271
  shape: "square",
270
272
  value: `${s} - ${a}`
271
273
  };
272
- })), Ce = f(() => ({
274
+ })), Le = f(() => ({
273
275
  cy: "bullet-div-legend",
274
276
  backgroundColor: "transparent",
275
277
  color: e.value.style.chart.legend.color,
276
278
  fontSize: e.value.style.chart.legend.fontSize,
277
279
  paddingBottom: 6,
278
280
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
279
- })), { isPrinting: se, isImaging: re, generatePdf: oe, generateImage: ne } = Ve({
280
- elementId: `bullet_${R.value}`,
281
+ })), { isPrinting: re, isImaging: oe, generatePdf: ne, generateImage: ue } = je({
282
+ elementId: `bullet_${p.value}`,
281
283
  fileName: e.value.style.chart.title.text || "vue-ui-bullet",
282
284
  options: e.value.userOptions.print
283
- }), Le = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), _ = c(!1);
284
- function ue(t) {
285
- _.value = t, ke.value += 1;
285
+ }), $e = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = c(!1);
286
+ function ie(t) {
287
+ $.value = t, we.value += 1;
286
288
  }
287
289
  function Oe() {
288
290
  return d.value;
289
291
  }
290
- const S = c(!1);
292
+ const P = c(!1);
291
293
  function E() {
292
- S.value = !S.value;
294
+ P.value = !P.value;
293
295
  }
294
296
  async function Be({ scale: t = 2 } = {}) {
295
297
  if (!y.value) return;
296
- const { width: s, height: a } = y.value.getBoundingClientRect(), g = s / a, { imageUri: k, base64: h } = await Ye({ domElement: y.value, base64: !0, img: !0, scale: t });
298
+ const { width: s, height: a } = y.value.getBoundingClientRect(), g = s / a, { imageUri: w, base64: v } = await Ke({ domElement: y.value, base64: !0, img: !0, scale: t });
297
299
  return {
298
- imageUri: k,
299
- base64: h,
300
+ imageUri: w,
301
+ base64: v,
300
302
  title: e.value.style.chart.title.text,
301
303
  width: s,
302
304
  height: a,
303
305
  aspectRatio: g
304
306
  };
305
307
  }
306
- return fe({
308
+ return me({
307
309
  getData: Oe,
308
310
  getImage: Be,
309
- generatePdf: oe,
310
- generateImage: ne,
311
+ generatePdf: ne,
312
+ generateImage: ue,
311
313
  toggleAnnotator: E,
312
- toggleFullscreen: ue
314
+ toggleFullscreen: ie
313
315
  }), (t, s) => (r(), n("div", {
314
316
  ref_key: "bulletChart",
315
317
  ref: y,
316
- class: ce(`vue-ui-bullet ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
318
+ class: ve(`vue-ui-bullet ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
317
319
  style: D(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
318
- id: `bullet_${R.value}`,
319
- onMouseenter: s[0] || (s[0] = () => o(Q)(!0)),
320
- onMouseleave: s[1] || (s[1] = () => o(Q)(!1))
320
+ id: `bullet_${p.value}`,
321
+ onMouseenter: s[0] || (s[0] = () => o(Z)(!0)),
322
+ onMouseleave: s[1] || (s[1] = () => o(Z)(!1))
321
323
  }, [
322
- e.value.userOptions.buttons.annotator ? (r(), C(o(ye), {
324
+ e.value.userOptions.buttons.annotator ? (r(), x(o(pe), {
323
325
  key: 0,
324
- svgRef: o(ee),
326
+ svgRef: o(te),
325
327
  backgroundColor: e.value.style.chart.backgroundColor,
326
328
  color: e.value.style.chart.color,
327
- active: S.value,
329
+ active: P.value,
328
330
  onClose: E
329
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
330
- Le.value ? (r(), n("div", at, null, 512)) : i("", !0),
331
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
332
+ $e.value ? (r(), n("div", st, null, 512)) : u("", !0),
331
333
  e.value.style.chart.title.text ? (r(), n("div", {
332
334
  key: 2,
333
335
  ref_key: "chartTitle",
334
336
  ref: j,
335
337
  style: "width:100%;background:transparent;"
336
338
  }, [
337
- (r(), C(Xe, {
339
+ (r(), x(Je, {
338
340
  lineHeight: "1.3rem",
339
341
  key: `title_${q.value}`,
340
342
  config: {
@@ -348,15 +350,18 @@ segments: [
348
350
  }
349
351
  }
350
352
  }, null, 8, ["config"]))
351
- ], 512)) : i("", !0),
352
- e.value.userOptions.show && p.value && (o(Z) || o(N)) ? (r(), C(o(pe), {
353
+ ], 512)) : u("", !0),
354
+ _("div", {
355
+ id: `legend-top-${p.value}`
356
+ }, null, 8, rt),
357
+ e.value.userOptions.show && b.value && (o(ee) || o(N)) ? (r(), x(o(be), {
353
358
  key: 3,
354
359
  ref: "details",
355
360
  backgroundColor: e.value.style.chart.backgroundColor,
356
361
  color: e.value.style.chart.color,
357
- isPrinting: o(se),
358
- isImaging: o(re),
359
- uid: R.value,
362
+ isPrinting: o(re),
363
+ isImaging: o(oe),
364
+ uid: p.value,
360
365
  hasTooltip: !1,
361
366
  hasPdf: e.value.userOptions.buttons.pdf,
362
367
  hasImg: e.value.userOptions.buttons.img,
@@ -364,67 +369,67 @@ segments: [
364
369
  hasTable: !1,
365
370
  hasLabel: !1,
366
371
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
367
- isFullscreen: _.value,
372
+ isFullscreen: $.value,
368
373
  chartElement: y.value,
369
374
  position: e.value.userOptions.position,
370
375
  titles: { ...e.value.userOptions.buttonTitles },
371
376
  hasAnnotator: e.value.userOptions.buttons.annotator,
372
- isAnnotation: S.value,
377
+ isAnnotation: P.value,
373
378
  callbacks: e.value.userOptions.callbacks,
374
379
  printScale: e.value.userOptions.print.scale,
375
- onToggleFullscreen: ue,
376
- onGeneratePdf: o(oe),
377
- onGenerateImage: o(ne),
380
+ onToggleFullscreen: ie,
381
+ onGeneratePdf: o(ne),
382
+ onGenerateImage: o(ue),
378
383
  onToggleAnnotator: E,
379
384
  style: D({
380
- visibility: o(Z) ? o(N) ? "visible" : "hidden" : "visible"
385
+ visibility: o(ee) ? o(N) ? "visible" : "hidden" : "visible"
381
386
  })
382
- }, Fe({ _: 2 }, [
387
+ }, Te({ _: 2 }, [
383
388
  t.$slots.menuIcon ? {
384
389
  name: "menuIcon",
385
- fn: w(({ isOpen: a, color: g }) => [
386
- m(t.$slots, "menuIcon", P(F({ isOpen: a, color: g })), void 0, !0)
390
+ fn: A(({ isOpen: a, color: g }) => [
391
+ m(t.$slots, "menuIcon", F(T({ isOpen: a, color: g })), void 0, !0)
387
392
  ]),
388
393
  key: "0"
389
394
  } : void 0,
390
395
  t.$slots.optionPdf ? {
391
396
  name: "optionPdf",
392
- fn: w(() => [
397
+ fn: A(() => [
393
398
  m(t.$slots, "optionPdf", {}, void 0, !0)
394
399
  ]),
395
400
  key: "1"
396
401
  } : void 0,
397
402
  t.$slots.optionImg ? {
398
403
  name: "optionImg",
399
- fn: w(() => [
404
+ fn: A(() => [
400
405
  m(t.$slots, "optionImg", {}, void 0, !0)
401
406
  ]),
402
407
  key: "2"
403
408
  } : void 0,
404
409
  t.$slots.optionFullscreen ? {
405
410
  name: "optionFullscreen",
406
- fn: w(({ toggleFullscreen: a, isFullscreen: g }) => [
407
- m(t.$slots, "optionFullscreen", P(F({ toggleFullscreen: a, isFullscreen: g })), void 0, !0)
411
+ fn: A(({ toggleFullscreen: a, isFullscreen: g }) => [
412
+ m(t.$slots, "optionFullscreen", F(T({ toggleFullscreen: a, isFullscreen: g })), void 0, !0)
408
413
  ]),
409
414
  key: "3"
410
415
  } : void 0,
411
416
  t.$slots.optionAnnotator ? {
412
417
  name: "optionAnnotator",
413
- fn: w(({ toggleAnnotator: a, isAnnotator: g }) => [
414
- m(t.$slots, "optionAnnotator", P(F({ toggleAnnotator: a, isAnnotator: g })), void 0, !0)
418
+ fn: A(({ toggleAnnotator: a, isAnnotator: g }) => [
419
+ m(t.$slots, "optionAnnotator", F(T({ toggleAnnotator: a, isAnnotator: g })), void 0, !0)
415
420
  ]),
416
421
  key: "4"
417
422
  } : void 0
418
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
423
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
419
424
  (r(), n("svg", {
420
425
  ref_key: "svgRef",
421
- ref: ee,
422
- xmlns: o(Ee),
423
- class: ce({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value, "vue-ui-bullet-svg": !0 }),
426
+ ref: te,
427
+ xmlns: o(De),
428
+ class: ve({ "vue-data-ui-fullscreen--on": $.value, "vue-data-ui-fulscreen--off": !$.value, "vue-ui-bullet-svg": !0 }),
424
429
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
425
430
  style: D(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
426
431
  }, [
427
- He(o(me)),
432
+ He(o(ye)),
428
433
  t.$slots["chart-background"] ? (r(), n("foreignObject", {
429
434
  key: 0,
430
435
  x: 0,
@@ -436,8 +441,8 @@ segments: [
436
441
  }
437
442
  }, [
438
443
  m(t.$slots, "chart-background", {}, void 0, !0)
439
- ], 8, st)) : i("", !0),
440
- A.value ? (r(), n("g", rt, [
444
+ ], 8, nt)) : u("", !0),
445
+ L.value ? (r(), n("g", ut, [
441
446
  (r(!0), n(V, null, G(d.value.chunks, (a) => (r(), n("rect", {
442
447
  x: a.x,
443
448
  y: a.y,
@@ -447,7 +452,7 @@ segments: [
447
452
  "stroke-width": 1,
448
453
  stroke: e.value.style.chart.backgroundColor,
449
454
  style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
450
- }, null, 8, ot))), 256)),
455
+ }, null, 8, it))), 256)),
451
456
  !e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (r(), n("rect", {
452
457
  key: 0,
453
458
  x: d.value.target.x,
@@ -458,8 +463,8 @@ segments: [
458
463
  fill: e.value.style.chart.target.color,
459
464
  stroke: e.value.style.chart.target.stroke,
460
465
  "stroke-width": e.value.style.chart.target.strokeWidth
461
- }, null, 8, nt)) : i("", !0),
462
- I("rect", {
466
+ }, null, 8, ct)) : u("", !0),
467
+ _("rect", {
463
468
  x: l.value.left,
464
469
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
465
470
  height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
@@ -467,7 +472,7 @@ segments: [
467
472
  fill: e.value.style.chart.valueBar.color,
468
473
  stroke: e.value.style.chart.valueBar.stroke,
469
474
  "stroke-width": e.value.style.chart.valueBar.strokeWidth
470
- }, null, 8, ut),
475
+ }, null, 8, vt),
471
476
  e.value.style.chart.valueBar.label.show ? (r(), n("text", {
472
477
  key: 1,
473
478
  x: l.value.left + d.value.value.width,
@@ -478,14 +483,14 @@ segments: [
478
483
  "text-anchor": "middle"
479
484
  }, H(o(M)(
480
485
  e.value.style.chart.segments.dataLabels.formatter,
481
- v.value,
482
- o(T)({
486
+ h.value,
487
+ o(R)({
483
488
  p: e.value.style.chart.segments.dataLabels.prefix,
484
- v: v.value,
489
+ v: h.value,
485
490
  s: e.value.style.chart.segments.dataLabels.suffix,
486
491
  r: e.value.style.chart.segments.dataLabels.rounding
487
492
  })
488
- )), 9, it)) : i("", !0),
493
+ )), 9, ht)) : u("", !0),
489
494
  e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (r(), n("rect", {
490
495
  key: 2,
491
496
  x: d.value.target.x,
@@ -497,8 +502,8 @@ segments: [
497
502
  stroke: e.value.style.chart.target.stroke,
498
503
  "stroke-width": e.value.style.chart.target.strokeWidth,
499
504
  style: { transition: "x 0.3s ease-in-out" }
500
- }, null, 8, ct)) : i("", !0),
501
- e.value.style.chart.segments.dataLabels.show ? (r(), n("g", ht, [
505
+ }, null, 8, dt)) : u("", !0),
506
+ e.value.style.chart.segments.dataLabels.show ? (r(), n("g", gt, [
502
507
  (r(!0), n(V, null, G(d.value.ticks, (a) => (r(), n("text", {
503
508
  x: a.x,
504
509
  y: a.y,
@@ -509,15 +514,15 @@ segments: [
509
514
  }, H(o(M)(
510
515
  e.value.style.chart.segments.dataLabels.formatter,
511
516
  a.value,
512
- o(T)({
517
+ o(R)({
513
518
  p: e.value.style.chart.segments.dataLabels.prefix,
514
519
  v: a.value,
515
520
  s: e.value.style.chart.segments.dataLabels.suffix,
516
521
  r: e.value.style.chart.segments.dataLabels.rounding
517
522
  })
518
- )), 9, vt))), 256))
519
- ])) : i("", !0),
520
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", dt, [
523
+ )), 9, ft))), 256))
524
+ ])) : u("", !0),
525
+ e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", mt, [
521
526
  (r(!0), n(V, null, G(d.value.ticks, (a) => (r(), n("line", {
522
527
  x1: a.x,
523
528
  x2: a.x,
@@ -526,46 +531,54 @@ segments: [
526
531
  stroke: e.value.style.chart.segments.ticks.stroke,
527
532
  "stroke-width": 1,
528
533
  "stroke-linecap": "round"
529
- }, null, 8, gt))), 256))
530
- ])) : i("", !0)
531
- ])) : i("", !0),
534
+ }, null, 8, yt))), 256))
535
+ ])) : u("", !0)
536
+ ])) : u("", !0),
532
537
  m(t.$slots, "svg", { svg: l.value }, void 0, !0)
533
- ], 14, lt)),
534
- t.$slots.watermark ? (r(), n("div", ft, [
535
- m(t.$slots, "watermark", P(F({ isPrinting: o(se) || o(re) })), void 0, !0)
536
- ])) : i("", !0),
537
- I("div", {
538
- ref_key: "chartLegend",
539
- ref: X
538
+ ], 14, ot)),
539
+ t.$slots.watermark ? (r(), n("div", pt, [
540
+ m(t.$slots, "watermark", F(T({ isPrinting: o(re) || o(oe) })), void 0, !0)
541
+ ])) : u("", !0),
542
+ _("div", {
543
+ id: `legend-bottom-${p.value}`
544
+ }, null, 8, bt),
545
+ J.value ? (r(), x(Me, {
546
+ key: 5,
547
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
540
548
  }, [
541
- e.value.style.chart.legend.show ? (r(), C(qe, {
542
- key: 0,
543
- clickable: !1,
544
- legendSet: le.value,
545
- config: Ce.value
546
- }, {
547
- item: w(({ legend: a }) => [
548
- o(b) ? i("", !0) : (r(), n("div", mt, [
549
- I("span", yt, H(a.name) + ":", 1),
550
- I("span", null, H(a.value), 1)
551
- ]))
552
- ]),
553
- _: 1
554
- }, 8, ["legendSet", "config"])) : i("", !0),
555
- m(t.$slots, "legend", { legend: le.value }, void 0, !0)
556
- ], 512),
549
+ _("div", {
550
+ ref_key: "chartLegend",
551
+ ref: X
552
+ }, [
553
+ e.value.style.chart.legend.show ? (r(), x(Ye, {
554
+ key: 0,
555
+ clickable: !1,
556
+ legendSet: se.value,
557
+ config: Le.value
558
+ }, {
559
+ item: A(({ legend: a }) => [
560
+ o(k) ? u("", !0) : (r(), n("div", kt, [
561
+ _("span", wt, H(a.name) + ":", 1),
562
+ _("span", null, H(a.value), 1)
563
+ ]))
564
+ ]),
565
+ _: 1
566
+ }, 8, ["legendSet", "config"])) : u("", !0),
567
+ m(t.$slots, "legend", { legend: se.value }, void 0, !0)
568
+ ], 512)
569
+ ], 8, ["to"])) : u("", !0),
557
570
  t.$slots.source ? (r(), n("div", {
558
- key: 5,
571
+ key: 6,
559
572
  ref_key: "source",
560
573
  ref: Y,
561
574
  dir: "auto"
562
575
  }, [
563
576
  m(t.$slots, "source", {}, void 0, !0)
564
- ], 512)) : i("", !0),
565
- o(b) ? (r(), C(Ze, { key: 6 })) : i("", !0)
566
- ], 46, tt));
577
+ ], 512)) : u("", !0),
578
+ o(k) ? (r(), x(tt, { key: 7 })) : u("", !0)
579
+ ], 46, lt));
567
580
  }
568
- }, It = /* @__PURE__ */ et(pt, [["__scopeId", "data-v-d5ec7fd2"]]);
581
+ }, Ht = /* @__PURE__ */ at(xt, [["__scopeId", "data-v-cf97848f"]]);
569
582
  export {
570
- It as default
583
+ Ht as default
571
584
  };