vue-data-ui 2.16.6 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.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-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,5 +1,5 @@
1
- import { z as p, A as v, u as w, B as A } from "./index-DvIXJm6t.js";
2
- import { d as M } from "./dom-to-png-CRHNL8VU.js";
1
+ import { z as p, A as v, u as w, B as A } from "./index-pPGk-uhD.js";
2
+ import { d as M } from "./dom-to-png-2AA0wHlX.js";
3
3
  import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
4
4
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const m = {
@@ -1,28 +1,29 @@
1
- import { defineAsyncComponent as L, ref as g, computed as f, onMounted as be, watch as Q, onBeforeUnmount as ke, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as M, normalizeClass as Z, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as we, withCtx as p, renderSlot as m, normalizeProps as $, guardReactiveProps as O, createVNode as xe, Fragment as T, renderList as N, toDisplayString as A } from "vue";
2
- import { u as _e, o as Ce, e as ee, g as Le, c as $e, l as Oe, D as Ae, d as Be, i as B, f as P, X as Pe, a as Se } from "./index-DvIXJm6t.js";
3
- import { u as te } from "./useNestedProp-DrYHm61t.js";
4
- import { u as Fe } from "./usePrinter-CWnXbGMb.js";
5
- import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
- import Me from "./Legend-nBXoxXJH.js";
8
- import Te from "./Title-Gi81VwUM.js";
9
- import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const Ue = ["id"], ze = {
1
+ import { defineAsyncComponent as $, ref as g, computed as f, onMounted as ke, watch as Z, onBeforeUnmount as we, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as T, normalizeClass as ee, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as xe, withCtx as p, renderSlot as m, normalizeProps as O, guardReactiveProps as A, createVNode as _e, Fragment as U, renderList as N, toDisplayString as B } from "vue";
2
+ import { u as Ce, o as Le, e as te, g as $e, c as Oe, l as Ae, D as Be, d as Pe, i as P, f as S, X as Se, a as Ie } from "./index-pPGk-uhD.js";
3
+ import { u as ae } from "./useNestedProp-DjACxgdZ.js";
4
+ import { u as Fe } from "./usePrinter-DDHcrl0A.js";
5
+ import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as Me } from "./useChartAccessibility-9icAAmYg.js";
7
+ import Te from "./Legend-Bxlv67uY.js";
8
+ import Ue from "./Title-B-2bV0SW.js";
9
+ import Ne from "./img-Y_hYz-ZC.js";
10
+ import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Re = ["id"], Ee = {
11
12
  key: 1,
12
13
  ref: "noTitle",
13
14
  class: "vue-data-ui-no-title-space",
14
15
  style: "height:36px; width: 100%;background:transparent"
15
- }, Re = ["xmlns", "viewBox"], We = ["width", "height"], Ee = { key: 1 }, Ve = ["x", "y", "height", "width", "fill", "stroke"], De = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], je = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ge = ["x", "y", "font-size", "font-weight", "fill"], qe = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Xe = { key: 3 }, Ye = ["x", "y", "fill", "font-size", "font-weight"], Je = { key: 4 }, Ke = ["x1", "x2", "y1", "y2", "stroke"], Qe = {
16
+ }, We = ["xmlns", "viewBox"], Ve = ["width", "height"], De = { key: 1 }, je = ["x", "y", "height", "width", "fill", "stroke"], Ge = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], qe = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Xe = ["x", "y", "font-size", "font-weight", "fill"], Ye = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Je = { key: 3 }, Ke = ["x", "y", "fill", "font-size", "font-weight"], Qe = { key: 4 }, Ze = ["x1", "x2", "y1", "y2", "stroke"], et = {
16
17
  key: 5,
17
18
  class: "vue-data-ui-watermark"
18
- }, Ze = {
19
+ }, tt = {
19
20
  class: "vue-ui-bullet-legend-item",
20
21
  dir: "auto"
21
- }, et = { style: { "margin-right": "2px" } }, tt = {
22
+ }, at = { style: { "margin-right": "2px" } }, lt = {
22
23
  key: 7,
23
24
  ref: "source",
24
25
  dir: "auto"
25
- }, at = {
26
+ }, st = {
26
27
  __name: "vue-ui-bullet",
27
28
  props: {
28
29
  config: {
@@ -38,8 +39,8 @@ const Ue = ["id"], ze = {
38
39
  }
39
40
  }
40
41
  },
41
- setup(ae, { expose: le }) {
42
- const se = L(() => import("./PackageVersion-Bg_9KCU-.js")), re = L(() => import("./PenAndPaper-BPTpbnay.js")), oe = L(() => import("./vue-ui-skeleton-BAOt2neL.js")), ne = L(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_bullet: ue } = _e(), u = ae, U = g(null), ie = g(null), z = g(0), ce = g(null), he = g(0), y = f({
42
+ setup(le, { expose: se }) {
43
+ const re = $(() => import("./PackageVersion-5TR4ocqp.js")), oe = $(() => import("./PenAndPaper-D6AqipIO.js")), ne = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ue = $(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_bullet: ie } = Ce(), u = le, _ = g(null), ce = g(null), z = g(0), he = g(null), ve = g(0), y = f({
43
44
  get: () => u.dataset.hasOwnProperty("value"),
44
45
  set: (t) => t
45
46
  }), b = f(() => u.dataset.segments ? Array.isArray(u.dataset.segments) ? u.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
@@ -76,17 +77,17 @@ segments: [
76
77
  {...}
77
78
  ]
78
79
  `), y.value = !1, !1));
79
- be(R);
80
+ ke(R);
80
81
  function R() {
81
- Ce(u.dataset) ? ee({
82
+ Le(u.dataset) ? te({
82
83
  componentName: "VueUiBullet",
83
84
  type: "dataset"
84
85
  }) : b.value ? u.dataset.segments.forEach((t, s) => {
85
- Le({
86
+ $e({
86
87
  datasetObject: t,
87
88
  requiredAttributes: ["name", "from", "to"]
88
89
  }).forEach((a) => {
89
- y.value = !1, ee({
90
+ y.value = !1, te({
90
91
  componentName: "VueUiBullet segment",
91
92
  type: "datasetSerieAttribute",
92
93
  property: a,
@@ -95,53 +96,53 @@ segments: [
95
96
  });
96
97
  }) : y.value = !1, e.value.style.chart.animation.show && G(u.dataset.value || 0);
97
98
  }
98
- const S = g($e());
99
- function W() {
100
- const t = te({
99
+ const I = g(Oe());
100
+ function E() {
101
+ const t = ae({
101
102
  userConfig: u.config,
102
- defaultConfig: ue
103
+ defaultConfig: ie
103
104
  });
104
105
  return t.theme ? {
105
- ...te({
106
- userConfig: Se.vue_ui_bullet[t.theme] || u.config,
106
+ ...ae({
107
+ userConfig: Ie.vue_ui_bullet[t.theme] || u.config,
107
108
  defaultConfig: t
108
109
  })
109
110
  } : t;
110
111
  }
111
112
  const e = f({
112
- get: () => W(),
113
+ get: () => E(),
113
114
  set: (t) => t
114
- }), { userOptionsVisible: F, setUserOptionsVisibility: E, keepUserOptionState: V } = Ie({ config: e.value }), { svgRef: D } = He({ config: e.value.style.chart.title });
115
- Q(() => u.config, (t) => {
116
- e.value = W(), F.value = !e.value.userOptions.showOnChartHover, R(), z.value += 1;
115
+ }), { userOptionsVisible: F, setUserOptionsVisibility: W, keepUserOptionState: V } = He({ config: e.value }), { svgRef: D } = Me({ config: e.value.style.chart.title });
116
+ Z(() => u.config, (t) => {
117
+ e.value = E(), F.value = !e.value.userOptions.showOnChartHover, R(), z.value += 1;
117
118
  }, { deep: !0 });
118
119
  const l = f(() => {
119
- const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
120
+ const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, L = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
120
121
  return {
121
122
  height: t,
122
123
  width: s,
123
124
  left: a,
124
125
  right: d,
125
- top: C,
126
+ top: L,
126
127
  bottom: v,
127
128
  chartWidth: d - a,
128
- chartHeight: v - C
129
+ chartHeight: v - L
129
130
  };
130
- }), ve = f(() => {
131
+ }), de = f(() => {
131
132
  if (!b.value) return [];
132
133
  const t = [];
133
134
  for (let s = 0; s < u.dataset.segments.length; s += 1)
134
- t.push(Oe(e.value.style.chart.segments.baseColor, s / u.dataset.segments.length));
135
+ t.push(Ae(e.value.style.chart.segments.baseColor, s / u.dataset.segments.length));
135
136
  return t;
136
- }), I = f(() => b.value ? {
137
+ }), H = f(() => b.value ? {
137
138
  min: Math.min(...u.dataset.segments.map((t) => t.from)),
138
139
  max: Math.max(...u.dataset.segments.map((t) => t.to))
139
- } : { min: 0, max: 1 }), c = g(de());
140
- Q(() => u.dataset, (t) => {
140
+ } : { min: 0, max: 1 }), c = g(ge());
141
+ Z(() => u.dataset, (t) => {
141
142
  e.value.style.chart.animation.show ? G(t.value || 0) : c.value = t.value || 0;
142
143
  }, { deep: !0 });
143
- function de() {
144
- return e.value.style.chart.animation.show ? I.value.min : u.dataset.value || 0;
144
+ function ge() {
145
+ return e.value.style.chart.animation.show ? H.value.min : u.dataset.value || 0;
145
146
  }
146
147
  const j = g(null);
147
148
  function G(t) {
@@ -151,17 +152,17 @@ segments: [
151
152
  }
152
153
  a();
153
154
  }
154
- ke(() => {
155
+ we(() => {
155
156
  cancelAnimationFrame(j.value);
156
157
  });
157
158
  const h = f(() => {
158
159
  if (!b.value)
159
160
  return [];
160
- const t = Ae(I.value.min, I.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
161
+ const t = Be(H.value.min, H.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
161
162
  x: l.value.left + (u.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
162
163
  }, d = {
163
164
  width: (c.value + s) / (t.max + s) * l.value.chartWidth
164
- }, C = t.ticks.map((v) => ({
165
+ }, L = t.ticks.map((v) => ({
165
166
  value: v,
166
167
  y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
167
168
  x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
@@ -170,10 +171,10 @@ segments: [
170
171
  scale: t,
171
172
  target: a,
172
173
  value: d,
173
- ticks: C,
174
- chunks: u.dataset.segments.map((v, pe) => ({
174
+ ticks: L,
175
+ chunks: u.dataset.segments.map((v, be) => ({
175
176
  ...v,
176
- color: v.color ? Be(v.color) : ve.value[pe],
177
+ color: v.color ? Pe(v.color) : de.value[be],
177
178
  x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
178
179
  y: l.value.top,
179
180
  height: l.value.chartHeight,
@@ -181,19 +182,19 @@ segments: [
181
182
  }))
182
183
  };
183
184
  }), q = f(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
184
- const s = B(
185
+ const s = P(
185
186
  e.value.style.chart.segments.dataLabels.formatter,
186
187
  t.from,
187
- P({
188
+ S({
188
189
  p: e.value.style.chart.segments.dataLabels.prefix,
189
190
  v: t.from,
190
191
  s: e.value.style.chart.segments.dataLabels.suffix,
191
192
  r: e.value.style.chart.segments.dataLabels.rounding
192
193
  })
193
- ), a = B(
194
+ ), a = P(
194
195
  e.value.style.chart.segments.dataLabels.formatter,
195
196
  t.to,
196
- P({
197
+ S({
197
198
  p: e.value.style.chart.segments.dataLabels.prefix,
198
199
  v: t.to,
199
200
  s: e.value.style.chart.segments.dataLabels.suffix,
@@ -205,7 +206,7 @@ segments: [
205
206
  shape: "square",
206
207
  value: `${s} - ${a}`
207
208
  };
208
- })), ge = f(() => ({
209
+ })), fe = f(() => ({
209
210
  cy: "bullet-div-legend",
210
211
  backgroundColor: "transparent",
211
212
  color: e.value.style.chart.legend.color,
@@ -213,50 +214,57 @@ segments: [
213
214
  paddingBottom: 6,
214
215
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
215
216
  })), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Fe({
216
- elementId: `bullet_${S.value}`,
217
+ elementId: `bullet_${I.value}`,
217
218
  fileName: e.value.style.chart.title.text || "vue-ui-bullet",
218
219
  options: e.value.userOptions.print
219
- }), fe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
220
- function me(t) {
221
- k.value = t, he.value += 1;
220
+ }), me = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
221
+ function Q(t) {
222
+ k.value = t, ve.value += 1;
222
223
  }
223
224
  function ye() {
224
225
  return h.value;
225
226
  }
226
- const _ = g(!1);
227
- function H() {
228
- _.value = !_.value;
227
+ const C = g(!1);
228
+ function M() {
229
+ C.value = !C.value;
229
230
  }
230
- return le({
231
+ async function pe({ scale: t = 2 } = {}) {
232
+ if (!_.value) return;
233
+ const { imageUri: s, base64: a } = await Ne({ domElement: _.value, base64: !0, img: !0, scale: t });
234
+ return { imageUri: s, base64: a };
235
+ }
236
+ return se({
231
237
  getData: ye,
238
+ getImage: pe,
232
239
  generatePdf: J,
233
240
  generateImage: K,
234
- toggleAnnotator: H
241
+ toggleAnnotator: M,
242
+ toggleFullscreen: Q
235
243
  }), (t, s) => (r(), n("div", {
236
244
  ref_key: "bulletChart",
237
- ref: U,
238
- class: Z(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
239
- style: M(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
240
- id: `bullet_${S.value}`,
241
- onMouseenter: s[0] || (s[0] = () => o(E)(!0)),
242
- onMouseleave: s[1] || (s[1] = () => o(E)(!1))
245
+ ref: _,
246
+ class: ee(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
247
+ style: T(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
248
+ id: `bullet_${I.value}`,
249
+ onMouseenter: s[0] || (s[0] = () => o(W)(!0)),
250
+ onMouseleave: s[1] || (s[1] = () => o(W)(!1))
243
251
  }, [
244
- e.value.userOptions.buttons.annotator ? (r(), w(o(re), {
252
+ e.value.userOptions.buttons.annotator ? (r(), w(o(oe), {
245
253
  key: 0,
246
254
  svgRef: o(D),
247
255
  backgroundColor: e.value.style.chart.backgroundColor,
248
256
  color: e.value.style.chart.color,
249
- active: _.value,
250
- onClose: H
257
+ active: C.value,
258
+ onClose: M
251
259
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
252
- fe.value ? (r(), n("div", ze, null, 512)) : i("", !0),
260
+ me.value ? (r(), n("div", Ee, null, 512)) : i("", !0),
253
261
  e.value.style.chart.title.text ? (r(), n("div", {
254
262
  key: 2,
255
263
  ref_key: "chartTitle",
256
- ref: ie,
264
+ ref: ce,
257
265
  style: "width:100%;background:transparent;"
258
266
  }, [
259
- (r(), w(Te, {
267
+ (r(), w(Ue, {
260
268
  lineHeight: "1.3rem",
261
269
  key: `title_${z.value}`,
262
270
  config: {
@@ -271,14 +279,14 @@ segments: [
271
279
  }
272
280
  }, null, 8, ["config"]))
273
281
  ], 512)) : i("", !0),
274
- e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), w(o(ne), {
282
+ e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), w(o(ue), {
275
283
  key: 3,
276
284
  ref: "details",
277
285
  backgroundColor: e.value.style.chart.backgroundColor,
278
286
  color: e.value.style.chart.color,
279
287
  isPrinting: o(X),
280
288
  isImaging: o(Y),
281
- uid: S.value,
289
+ uid: I.value,
282
290
  hasTooltip: !1,
283
291
  hasPdf: e.value.userOptions.buttons.pdf,
284
292
  hasImg: e.value.userOptions.buttons.img,
@@ -287,25 +295,25 @@ segments: [
287
295
  hasLabel: !1,
288
296
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
289
297
  isFullscreen: k.value,
290
- chartElement: U.value,
298
+ chartElement: _.value,
291
299
  position: e.value.userOptions.position,
292
300
  titles: { ...e.value.userOptions.buttonTitles },
293
301
  hasAnnotator: e.value.userOptions.buttons.annotator,
294
- isAnnotation: _.value,
302
+ isAnnotation: C.value,
295
303
  callbacks: e.value.userOptions.callbacks,
296
304
  printScale: e.value.userOptions.print.scale,
297
- onToggleFullscreen: me,
305
+ onToggleFullscreen: Q,
298
306
  onGeneratePdf: o(J),
299
307
  onGenerateImage: o(K),
300
- onToggleAnnotator: H,
301
- style: M({
308
+ onToggleAnnotator: M,
309
+ style: T({
302
310
  visibility: o(V) ? o(F) ? "visible" : "hidden" : "visible"
303
311
  })
304
- }, we({ _: 2 }, [
312
+ }, xe({ _: 2 }, [
305
313
  t.$slots.menuIcon ? {
306
314
  name: "menuIcon",
307
315
  fn: p(({ isOpen: a, color: d }) => [
308
- m(t.$slots, "menuIcon", $(O({ isOpen: a, color: d })), void 0, !0)
316
+ m(t.$slots, "menuIcon", O(A({ isOpen: a, color: d })), void 0, !0)
309
317
  ]),
310
318
  key: "0"
311
319
  } : void 0,
@@ -326,14 +334,14 @@ segments: [
326
334
  t.$slots.optionFullscreen ? {
327
335
  name: "optionFullscreen",
328
336
  fn: p(({ toggleFullscreen: a, isFullscreen: d }) => [
329
- m(t.$slots, "optionFullscreen", $(O({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
337
+ m(t.$slots, "optionFullscreen", O(A({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
330
338
  ]),
331
339
  key: "3"
332
340
  } : void 0,
333
341
  t.$slots.optionAnnotator ? {
334
342
  name: "optionAnnotator",
335
343
  fn: p(({ toggleAnnotator: a, isAnnotator: d }) => [
336
- m(t.$slots, "optionAnnotator", $(O({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
344
+ m(t.$slots, "optionAnnotator", O(A({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
337
345
  ]),
338
346
  key: "4"
339
347
  } : void 0
@@ -342,12 +350,12 @@ segments: [
342
350
  key: 4,
343
351
  ref_key: "svgRef",
344
352
  ref: D,
345
- xmlns: o(Pe),
346
- class: Z({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value, "vue-ui-bullet-svg": !0 }),
353
+ xmlns: o(Se),
354
+ class: ee({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value, "vue-ui-bullet-svg": !0 }),
347
355
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
348
- style: M(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
356
+ style: T(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
349
357
  }, [
350
- xe(o(se)),
358
+ _e(o(re)),
351
359
  t.$slots["chart-background"] ? (r(), n("foreignObject", {
352
360
  key: 0,
353
361
  x: 0,
@@ -359,9 +367,9 @@ segments: [
359
367
  }
360
368
  }, [
361
369
  m(t.$slots, "chart-background", {}, void 0, !0)
362
- ], 8, We)) : i("", !0),
363
- b.value ? (r(), n("g", Ee, [
364
- (r(!0), n(T, null, N(h.value.chunks, (a) => (r(), n("rect", {
370
+ ], 8, Ve)) : i("", !0),
371
+ b.value ? (r(), n("g", De, [
372
+ (r(!0), n(U, null, N(h.value.chunks, (a) => (r(), n("rect", {
365
373
  x: a.x,
366
374
  y: a.y,
367
375
  height: a.height,
@@ -369,7 +377,7 @@ segments: [
369
377
  fill: a.color,
370
378
  "stroke-width": 1,
371
379
  stroke: e.value.style.chart.backgroundColor
372
- }, null, 8, Ve))), 256)),
380
+ }, null, 8, je))), 256)),
373
381
  e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
374
382
  key: 0,
375
383
  x: h.value.target.x,
@@ -380,7 +388,7 @@ segments: [
380
388
  fill: e.value.style.chart.target.color,
381
389
  stroke: e.value.style.chart.target.stroke,
382
390
  "stroke-width": e.value.style.chart.target.strokeWidth
383
- }, null, 8, De)),
391
+ }, null, 8, Ge)),
384
392
  x("rect", {
385
393
  x: l.value.left,
386
394
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
@@ -389,7 +397,7 @@ segments: [
389
397
  fill: e.value.style.chart.valueBar.color,
390
398
  stroke: e.value.style.chart.valueBar.stroke,
391
399
  "stroke-width": e.value.style.chart.valueBar.strokeWidth
392
- }, null, 8, je),
400
+ }, null, 8, qe),
393
401
  e.value.style.chart.valueBar.label.show ? (r(), n("text", {
394
402
  key: 1,
395
403
  x: l.value.left + h.value.value.width,
@@ -398,16 +406,16 @@ segments: [
398
406
  "font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
399
407
  fill: e.value.style.chart.valueBar.label.color,
400
408
  "text-anchor": "middle"
401
- }, A(o(B)(
409
+ }, B(o(P)(
402
410
  e.value.style.chart.segments.dataLabels.formatter,
403
411
  c.value,
404
- o(P)({
412
+ o(S)({
405
413
  p: e.value.style.chart.segments.dataLabels.prefix,
406
414
  v: c.value,
407
415
  s: e.value.style.chart.segments.dataLabels.suffix,
408
416
  r: e.value.style.chart.segments.dataLabels.rounding
409
417
  })
410
- )), 9, Ge)) : i("", !0),
418
+ )), 9, Xe)) : i("", !0),
411
419
  e.value.style.chart.target.onTop ? (r(), n("rect", {
412
420
  key: 2,
413
421
  x: h.value.target.x,
@@ -418,28 +426,28 @@ segments: [
418
426
  fill: e.value.style.chart.target.color,
419
427
  stroke: e.value.style.chart.target.stroke,
420
428
  "stroke-width": e.value.style.chart.target.strokeWidth
421
- }, null, 8, qe)) : i("", !0),
422
- e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Xe, [
423
- (r(!0), n(T, null, N(h.value.ticks, (a) => (r(), n("text", {
429
+ }, null, 8, Ye)) : i("", !0),
430
+ e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Je, [
431
+ (r(!0), n(U, null, N(h.value.ticks, (a) => (r(), n("text", {
424
432
  x: a.x,
425
433
  y: a.y,
426
434
  "text-anchor": "middle",
427
435
  fill: e.value.style.chart.segments.dataLabels.color,
428
436
  "font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
429
437
  "font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
430
- }, A(o(B)(
438
+ }, B(o(P)(
431
439
  e.value.style.chart.segments.dataLabels.formatter,
432
440
  a.value,
433
- o(P)({
441
+ o(S)({
434
442
  p: e.value.style.chart.segments.dataLabels.prefix,
435
443
  v: a.value,
436
444
  s: e.value.style.chart.segments.dataLabels.suffix,
437
445
  r: e.value.style.chart.segments.dataLabels.rounding
438
446
  })
439
- )), 9, Ye))), 256))
447
+ )), 9, Ke))), 256))
440
448
  ])) : i("", !0),
441
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", Je, [
442
- (r(!0), n(T, null, N(h.value.ticks, (a) => (r(), n("line", {
449
+ e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", Qe, [
450
+ (r(!0), n(U, null, N(h.value.ticks, (a) => (r(), n("line", {
443
451
  x1: a.x,
444
452
  x2: a.x,
445
453
  y1: l.value.bottom,
@@ -447,15 +455,15 @@ segments: [
447
455
  stroke: e.value.style.chart.segments.ticks.stroke,
448
456
  "stroke-width": 1,
449
457
  "stroke-linecap": "round"
450
- }, null, 8, Ke))), 256))
458
+ }, null, 8, Ze))), 256))
451
459
  ])) : i("", !0)
452
460
  ])) : i("", !0),
453
461
  m(t.$slots, "svg", { svg: l.value }, void 0, !0)
454
- ], 14, Re)) : i("", !0),
455
- t.$slots.watermark ? (r(), n("div", Qe, [
456
- m(t.$slots, "watermark", $(O({ isPrinting: o(X) || o(Y) })), void 0, !0)
462
+ ], 14, We)) : i("", !0),
463
+ t.$slots.watermark ? (r(), n("div", et, [
464
+ m(t.$slots, "watermark", O(A({ isPrinting: o(X) || o(Y) })), void 0, !0)
457
465
  ])) : i("", !0),
458
- y.value ? i("", !0) : (r(), w(o(oe), {
466
+ y.value ? i("", !0) : (r(), w(o(ne), {
459
467
  key: 6,
460
468
  config: {
461
469
  type: "bullet",
@@ -469,30 +477,30 @@ segments: [
469
477
  }, null, 8, ["config"])),
470
478
  x("div", {
471
479
  ref_key: "chartLegend",
472
- ref: ce
480
+ ref: he
473
481
  }, [
474
- e.value.style.chart.legend.show ? (r(), w(Me, {
482
+ e.value.style.chart.legend.show ? (r(), w(Te, {
475
483
  key: 0,
476
484
  clickable: !1,
477
485
  legendSet: q.value,
478
- config: ge.value
486
+ config: fe.value
479
487
  }, {
480
488
  item: p(({ legend: a }) => [
481
- x("div", Ze, [
482
- x("span", et, A(a.name) + ":", 1),
483
- x("span", null, A(a.value), 1)
489
+ x("div", tt, [
490
+ x("span", at, B(a.name) + ":", 1),
491
+ x("span", null, B(a.value), 1)
484
492
  ])
485
493
  ]),
486
494
  _: 1
487
495
  }, 8, ["legendSet", "config"])) : i("", !0),
488
496
  m(t.$slots, "legend", { legend: q.value }, void 0, !0)
489
497
  ], 512),
490
- t.$slots.source ? (r(), n("div", tt, [
498
+ t.$slots.source ? (r(), n("div", lt, [
491
499
  m(t.$slots, "source", {}, void 0, !0)
492
500
  ], 512)) : i("", !0)
493
- ], 46, Ue));
501
+ ], 46, Re));
494
502
  }
495
- }, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-fb99af28"]]);
503
+ }, ft = /* @__PURE__ */ ze(st, [["__scopeId", "data-v-c9289b67"]]);
496
504
  export {
497
- vt as default
505
+ ft as default
498
506
  };