vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,5 +1,5 @@
1
- import { z as p, A as v, u as w, B as A } from "./index-CZNLCg7T.js";
2
- import { d as M } from "./dom-to-png-g3Q8kjna.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 Fe } from "./index-CZNLCg7T.js";
3
- import { u as te } from "./useNestedProp-BcPDA6Xr.js";
4
- import { u as Ie } from "./usePrinter-ButWuZVm.js";
5
- import { u as Se } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
- import Me from "./Legend-DoxQwq_u.js";
8
- import Te from "./Title-BQLtfM0P.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-DCreTQN4.js")), re = L(() => import("./PenAndPaper-BS60tkQN.js")), oe = L(() => import("./vue-ui-skeleton-D9B8DY_k.js")), ne = L(() => import("./UserOptions-DMGkAAIO.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 F = 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: Fe.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: I, setUserOptionsVisibility: E, keepUserOptionState: V } = Se({ config: e.value }), { svgRef: D } = He({ config: e.value.style.chart.title });
115
- Q(() => u.config, (t) => {
116
- e.value = W(), I.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
- }), S = 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 ? S.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(S.value.min, S.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,58 +206,65 @@ 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,
212
213
  fontSize: e.value.style.chart.legend.fontSize,
213
214
  paddingBottom: 6,
214
215
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
215
- })), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Ie({
216
- elementId: `bullet_${F.value}`,
216
+ })), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Fe({
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_${F.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(I)) ? (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: F.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,24 +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
- onToggleFullscreen: me,
304
+ printScale: e.value.userOptions.print.scale,
305
+ onToggleFullscreen: Q,
297
306
  onGeneratePdf: o(J),
298
307
  onGenerateImage: o(K),
299
- onToggleAnnotator: H,
300
- style: M({
301
- visibility: o(V) ? o(I) ? "visible" : "hidden" : "visible"
308
+ onToggleAnnotator: M,
309
+ style: T({
310
+ visibility: o(V) ? o(F) ? "visible" : "hidden" : "visible"
302
311
  })
303
- }, we({ _: 2 }, [
312
+ }, xe({ _: 2 }, [
304
313
  t.$slots.menuIcon ? {
305
314
  name: "menuIcon",
306
315
  fn: p(({ isOpen: a, color: d }) => [
307
- 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)
308
317
  ]),
309
318
  key: "0"
310
319
  } : void 0,
@@ -325,28 +334,28 @@ segments: [
325
334
  t.$slots.optionFullscreen ? {
326
335
  name: "optionFullscreen",
327
336
  fn: p(({ toggleFullscreen: a, isFullscreen: d }) => [
328
- 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)
329
338
  ]),
330
339
  key: "3"
331
340
  } : void 0,
332
341
  t.$slots.optionAnnotator ? {
333
342
  name: "optionAnnotator",
334
343
  fn: p(({ toggleAnnotator: a, isAnnotator: d }) => [
335
- 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)
336
345
  ]),
337
346
  key: "4"
338
347
  } : void 0
339
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
348
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
340
349
  y.value ? (r(), n("svg", {
341
350
  key: 4,
342
351
  ref_key: "svgRef",
343
352
  ref: D,
344
- xmlns: o(Pe),
345
- 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 }),
346
355
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
347
- 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}`)
348
357
  }, [
349
- xe(o(se)),
358
+ _e(o(re)),
350
359
  t.$slots["chart-background"] ? (r(), n("foreignObject", {
351
360
  key: 0,
352
361
  x: 0,
@@ -358,9 +367,9 @@ segments: [
358
367
  }
359
368
  }, [
360
369
  m(t.$slots, "chart-background", {}, void 0, !0)
361
- ], 8, We)) : i("", !0),
362
- b.value ? (r(), n("g", Ee, [
363
- (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", {
364
373
  x: a.x,
365
374
  y: a.y,
366
375
  height: a.height,
@@ -368,7 +377,7 @@ segments: [
368
377
  fill: a.color,
369
378
  "stroke-width": 1,
370
379
  stroke: e.value.style.chart.backgroundColor
371
- }, null, 8, Ve))), 256)),
380
+ }, null, 8, je))), 256)),
372
381
  e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
373
382
  key: 0,
374
383
  x: h.value.target.x,
@@ -379,7 +388,7 @@ segments: [
379
388
  fill: e.value.style.chart.target.color,
380
389
  stroke: e.value.style.chart.target.stroke,
381
390
  "stroke-width": e.value.style.chart.target.strokeWidth
382
- }, null, 8, De)),
391
+ }, null, 8, Ge)),
383
392
  x("rect", {
384
393
  x: l.value.left,
385
394
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
@@ -388,7 +397,7 @@ segments: [
388
397
  fill: e.value.style.chart.valueBar.color,
389
398
  stroke: e.value.style.chart.valueBar.stroke,
390
399
  "stroke-width": e.value.style.chart.valueBar.strokeWidth
391
- }, null, 8, je),
400
+ }, null, 8, qe),
392
401
  e.value.style.chart.valueBar.label.show ? (r(), n("text", {
393
402
  key: 1,
394
403
  x: l.value.left + h.value.value.width,
@@ -397,16 +406,16 @@ segments: [
397
406
  "font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
398
407
  fill: e.value.style.chart.valueBar.label.color,
399
408
  "text-anchor": "middle"
400
- }, A(o(B)(
409
+ }, B(o(P)(
401
410
  e.value.style.chart.segments.dataLabels.formatter,
402
411
  c.value,
403
- o(P)({
412
+ o(S)({
404
413
  p: e.value.style.chart.segments.dataLabels.prefix,
405
414
  v: c.value,
406
415
  s: e.value.style.chart.segments.dataLabels.suffix,
407
416
  r: e.value.style.chart.segments.dataLabels.rounding
408
417
  })
409
- )), 9, Ge)) : i("", !0),
418
+ )), 9, Xe)) : i("", !0),
410
419
  e.value.style.chart.target.onTop ? (r(), n("rect", {
411
420
  key: 2,
412
421
  x: h.value.target.x,
@@ -417,28 +426,28 @@ segments: [
417
426
  fill: e.value.style.chart.target.color,
418
427
  stroke: e.value.style.chart.target.stroke,
419
428
  "stroke-width": e.value.style.chart.target.strokeWidth
420
- }, null, 8, qe)) : i("", !0),
421
- e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Xe, [
422
- (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", {
423
432
  x: a.x,
424
433
  y: a.y,
425
434
  "text-anchor": "middle",
426
435
  fill: e.value.style.chart.segments.dataLabels.color,
427
436
  "font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
428
437
  "font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
429
- }, A(o(B)(
438
+ }, B(o(P)(
430
439
  e.value.style.chart.segments.dataLabels.formatter,
431
440
  a.value,
432
- o(P)({
441
+ o(S)({
433
442
  p: e.value.style.chart.segments.dataLabels.prefix,
434
443
  v: a.value,
435
444
  s: e.value.style.chart.segments.dataLabels.suffix,
436
445
  r: e.value.style.chart.segments.dataLabels.rounding
437
446
  })
438
- )), 9, Ye))), 256))
447
+ )), 9, Ke))), 256))
439
448
  ])) : i("", !0),
440
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", Je, [
441
- (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", {
442
451
  x1: a.x,
443
452
  x2: a.x,
444
453
  y1: l.value.bottom,
@@ -446,15 +455,15 @@ segments: [
446
455
  stroke: e.value.style.chart.segments.ticks.stroke,
447
456
  "stroke-width": 1,
448
457
  "stroke-linecap": "round"
449
- }, null, 8, Ke))), 256))
458
+ }, null, 8, Ze))), 256))
450
459
  ])) : i("", !0)
451
460
  ])) : i("", !0),
452
461
  m(t.$slots, "svg", { svg: l.value }, void 0, !0)
453
- ], 14, Re)) : i("", !0),
454
- t.$slots.watermark ? (r(), n("div", Qe, [
455
- 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)
456
465
  ])) : i("", !0),
457
- y.value ? i("", !0) : (r(), w(o(oe), {
466
+ y.value ? i("", !0) : (r(), w(o(ne), {
458
467
  key: 6,
459
468
  config: {
460
469
  type: "bullet",
@@ -468,30 +477,30 @@ segments: [
468
477
  }, null, 8, ["config"])),
469
478
  x("div", {
470
479
  ref_key: "chartLegend",
471
- ref: ce
480
+ ref: he
472
481
  }, [
473
- e.value.style.chart.legend.show ? (r(), w(Me, {
482
+ e.value.style.chart.legend.show ? (r(), w(Te, {
474
483
  key: 0,
475
484
  clickable: !1,
476
485
  legendSet: q.value,
477
- config: ge.value
486
+ config: fe.value
478
487
  }, {
479
488
  item: p(({ legend: a }) => [
480
- x("div", Ze, [
481
- x("span", et, A(a.name) + ":", 1),
482
- 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)
483
492
  ])
484
493
  ]),
485
494
  _: 1
486
495
  }, 8, ["legendSet", "config"])) : i("", !0),
487
496
  m(t.$slots, "legend", { legend: q.value }, void 0, !0)
488
497
  ], 512),
489
- t.$slots.source ? (r(), n("div", tt, [
498
+ t.$slots.source ? (r(), n("div", lt, [
490
499
  m(t.$slots, "source", {}, void 0, !0)
491
500
  ], 512)) : i("", !0)
492
- ], 46, Ue));
501
+ ], 46, Re));
493
502
  }
494
- }, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-6c6b173a"]]);
503
+ }, ft = /* @__PURE__ */ ze(st, [["__scopeId", "data-v-c9289b67"]]);
495
504
  export {
496
- vt as default
505
+ ft as default
497
506
  };