vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,5 +1,5 @@
1
- import { z as p, A as v, u as w, B as A } from "./index-BFzQMJda.js";
2
- import { d as M } from "./dom-to-png-Bm0D0yPL.js";
1
+ import { z as p, A as v, u as w, B as A } from "./index-BiHmNd1-.js";
2
+ import { d as M } from "./dom-to-png-DDlooC9r.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,31 +1,28 @@
1
- import { ref as g, computed as f, onMounted as ge, watch as K, onBeforeUnmount as fe, createElementBlock as o, openBlock as r, unref as u, normalizeStyle as H, normalizeClass as Q, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as me, withCtx as p, renderSlot as m, normalizeProps as L, guardReactiveProps as $, createVNode as ye, Fragment as M, renderList as T, toDisplayString as O } from "vue";
2
- import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as B, f as A, X as Le, a as $e } from "./index-BFzQMJda.js";
3
- import { u as ee } from "./useNestedProp-v7KPpwuP.js";
4
- import { _ as Oe } from "./Title-CzaCeCOm.js";
5
- import { L as Be } from "./Legend-BxtDQCIv.js";
6
- import { u as Ae, U as Fe } from "./usePrinter-C5bLp34h.js";
7
- import { _ as Ie } from "./PackageVersion-BjrblLPQ.js";
8
- import { _ as Se } from "./PenAndPaper-BkP3J-Ft.js";
9
- import Pe from "./vue-ui-skeleton-B_YI7Yuc.js";
10
- import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Me } from "./useChartAccessibility-BWojgys7.js";
12
- import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Ue = ["id"], Ne = {
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-BiHmNd1-.js";
3
+ import { u as te } from "./useNestedProp-tRqS0ZAM.js";
4
+ import { u as Ie } from "./usePrinter-CRCbl1WG.js";
5
+ import { u as Se } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
+ import Me from "./Legend-DFunFf8i.js";
8
+ import Te from "./Title-B5qqUI3M.js";
9
+ import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Ue = ["id"], ze = {
14
11
  key: 1,
15
12
  ref: "noTitle",
16
13
  class: "vue-data-ui-no-title-space",
17
14
  style: "height:36px; width: 100%;background:transparent"
18
- }, ze = ["xmlns", "viewBox"], Re = ["width", "height"], We = { key: 1 }, Ee = ["x", "y", "height", "width", "fill", "stroke"], De = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ve = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], je = ["x", "y", "font-size", "font-weight", "fill"], Ge = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], qe = { key: 3 }, Xe = ["x", "y", "fill", "font-size", "font-weight"], Ye = { key: 4 }, Je = ["x1", "x2", "y1", "y2", "stroke"], Ke = {
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 = {
19
16
  key: 5,
20
17
  class: "vue-data-ui-watermark"
21
- }, Qe = {
18
+ }, Ze = {
22
19
  class: "vue-ui-bullet-legend-item",
23
20
  dir: "auto"
24
- }, Ze = { style: { "margin-right": "2px" } }, et = {
21
+ }, et = { style: { "margin-right": "2px" } }, tt = {
25
22
  key: 7,
26
23
  ref: "source",
27
24
  dir: "auto"
28
- }, tt = {
25
+ }, at = {
29
26
  __name: "vue-ui-bullet",
30
27
  props: {
31
28
  config: {
@@ -41,11 +38,11 @@ const Ue = ["id"], Ne = {
41
38
  }
42
39
  }
43
40
  },
44
- setup(te, { expose: ae }) {
45
- const { vue_ui_bullet: le } = pe(), n = te, U = g(null), se = g(null), N = g(0), re = g(null), oe = g(0), y = f({
46
- get: () => n.dataset.hasOwnProperty("value"),
41
+ setup(ae, { expose: le }) {
42
+ const se = L(() => import("./PackageVersion-CLY-udAA.js")), re = L(() => import("./PenAndPaper-B9na2mbr.js")), oe = L(() => import("./vue-ui-skeleton-CbYQYRvD.js")), ne = L(() => import("./UserOptions-Ddy6CuLC.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({
43
+ get: () => u.dataset.hasOwnProperty("value"),
47
44
  set: (t) => t
48
- }), b = f(() => n.dataset.segments ? Array.isArray(n.dataset.segments) ? n.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
45
+ }), 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:
49
46
 
50
47
  segments: [
51
48
  {
@@ -79,44 +76,44 @@ segments: [
79
76
  {...}
80
77
  ]
81
78
  `), y.value = !1, !1));
82
- ge(z);
83
- function z() {
84
- be(n.dataset) ? Z({
79
+ be(R);
80
+ function R() {
81
+ Ce(u.dataset) ? ee({
85
82
  componentName: "VueUiBullet",
86
83
  type: "dataset"
87
- }) : b.value ? n.dataset.segments.forEach((t, s) => {
88
- ke({
84
+ }) : b.value ? u.dataset.segments.forEach((t, s) => {
85
+ Le({
89
86
  datasetObject: t,
90
87
  requiredAttributes: ["name", "from", "to"]
91
88
  }).forEach((a) => {
92
- y.value = !1, Z({
89
+ y.value = !1, ee({
93
90
  componentName: "VueUiBullet segment",
94
91
  type: "datasetSerieAttribute",
95
92
  property: a,
96
93
  index: s
97
94
  });
98
95
  });
99
- }) : y.value = !1, e.value.style.chart.animation.show && j(n.dataset.value || 0);
96
+ }) : y.value = !1, e.value.style.chart.animation.show && G(u.dataset.value || 0);
100
97
  }
101
- const F = g(we());
102
- function R() {
103
- const t = ee({
104
- userConfig: n.config,
105
- defaultConfig: le
98
+ const F = g($e());
99
+ function W() {
100
+ const t = te({
101
+ userConfig: u.config,
102
+ defaultConfig: ue
106
103
  });
107
104
  return t.theme ? {
108
- ...ee({
109
- userConfig: $e.vue_ui_bullet[t.theme] || n.config,
105
+ ...te({
106
+ userConfig: Fe.vue_ui_bullet[t.theme] || u.config,
110
107
  defaultConfig: t
111
108
  })
112
109
  } : t;
113
110
  }
114
111
  const e = f({
115
- get: () => R(),
112
+ get: () => W(),
116
113
  set: (t) => t
117
- }), { userOptionsVisible: I, setUserOptionsVisibility: W, keepUserOptionState: E } = He({ config: e.value }), { svgRef: D } = Me({ config: e.value.style.chart.title });
118
- K(() => n.config, (t) => {
119
- e.value = R(), I.value = !e.value.userOptions.showOnChartHover, z(), N.value += 1;
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;
120
117
  }, { deep: !0 });
121
118
  const l = f(() => {
122
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;
@@ -130,38 +127,38 @@ segments: [
130
127
  chartWidth: d - a,
131
128
  chartHeight: v - C
132
129
  };
133
- }), ne = f(() => {
130
+ }), ve = f(() => {
134
131
  if (!b.value) return [];
135
132
  const t = [];
136
- for (let s = 0; s < n.dataset.segments.length; s += 1)
137
- t.push(xe(e.value.style.chart.segments.baseColor, s / n.dataset.segments.length));
133
+ 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));
138
135
  return t;
139
136
  }), S = f(() => b.value ? {
140
- min: Math.min(...n.dataset.segments.map((t) => t.from)),
141
- max: Math.max(...n.dataset.segments.map((t) => t.to))
142
- } : { min: 0, max: 1 }), c = g(ue());
143
- K(() => n.dataset, (t) => {
144
- e.value.style.chart.animation.show ? j(t.value || 0) : c.value = t.value || 0;
137
+ min: Math.min(...u.dataset.segments.map((t) => t.from)),
138
+ max: Math.max(...u.dataset.segments.map((t) => t.to))
139
+ } : { min: 0, max: 1 }), c = g(de());
140
+ Q(() => u.dataset, (t) => {
141
+ e.value.style.chart.animation.show ? G(t.value || 0) : c.value = t.value || 0;
145
142
  }, { deep: !0 });
146
- function ue() {
147
- return e.value.style.chart.animation.show ? S.value.min : n.dataset.value || 0;
143
+ function de() {
144
+ return e.value.style.chart.animation.show ? S.value.min : u.dataset.value || 0;
148
145
  }
149
- const V = g(null);
150
- function j(t) {
146
+ const j = g(null);
147
+ function G(t) {
151
148
  const s = Math.abs(t - c.value) / e.value.style.chart.animation.animationFrames;
152
149
  function a() {
153
- c.value < t ? c.value = Math.min(c.value + s, t) : c.value > t && (c.value = Math.max(c.value - s, t)), c.value !== t && (V.value = requestAnimationFrame(a));
150
+ c.value < t ? c.value = Math.min(c.value + s, t) : c.value > t && (c.value = Math.max(c.value - s, t)), c.value !== t && (j.value = requestAnimationFrame(a));
154
151
  }
155
152
  a();
156
153
  }
157
- fe(() => {
158
- cancelAnimationFrame(V.value);
154
+ ke(() => {
155
+ cancelAnimationFrame(j.value);
159
156
  });
160
157
  const h = f(() => {
161
158
  if (!b.value)
162
159
  return [];
163
- const t = _e(S.value.min, S.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
164
- x: l.value.left + (n.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
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
+ x: l.value.left + (u.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
165
162
  }, d = {
166
163
  width: (c.value + s) / (t.max + s) * l.value.chartWidth
167
164
  }, C = t.ticks.map((v) => ({
@@ -174,20 +171,20 @@ segments: [
174
171
  target: a,
175
172
  value: d,
176
173
  ticks: C,
177
- chunks: n.dataset.segments.map((v, de) => ({
174
+ chunks: u.dataset.segments.map((v, pe) => ({
178
175
  ...v,
179
- color: v.color ? Ce(v.color) : ne.value[de],
176
+ color: v.color ? Be(v.color) : ve.value[pe],
180
177
  x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
181
178
  y: l.value.top,
182
179
  height: l.value.chartHeight,
183
180
  width: l.value.chartWidth * (Math.abs(v.to - v.from) / (t.max + s))
184
181
  }))
185
182
  };
186
- }), G = f(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
183
+ }), q = f(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
187
184
  const s = B(
188
185
  e.value.style.chart.segments.dataLabels.formatter,
189
186
  t.from,
190
- A({
187
+ P({
191
188
  p: e.value.style.chart.segments.dataLabels.prefix,
192
189
  v: t.from,
193
190
  s: e.value.style.chart.segments.dataLabels.suffix,
@@ -196,7 +193,7 @@ segments: [
196
193
  ), a = B(
197
194
  e.value.style.chart.segments.dataLabels.formatter,
198
195
  t.to,
199
- A({
196
+ P({
200
197
  p: e.value.style.chart.segments.dataLabels.prefix,
201
198
  v: t.to,
202
199
  s: e.value.style.chart.segments.dataLabels.suffix,
@@ -208,60 +205,60 @@ segments: [
208
205
  shape: "square",
209
206
  value: `${s} - ${a}`
210
207
  };
211
- })), ie = f(() => ({
208
+ })), ge = f(() => ({
212
209
  cy: "bullet-div-legend",
213
210
  backgroundColor: "transparent",
214
211
  color: e.value.style.chart.legend.color,
215
212
  fontSize: e.value.style.chart.legend.fontSize,
216
213
  paddingBottom: 6,
217
214
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
218
- })), { isPrinting: q, isImaging: X, generatePdf: Y, generateImage: J } = Ae({
215
+ })), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Ie({
219
216
  elementId: `bullet_${F.value}`,
220
217
  fileName: e.value.style.chart.title.text || "vue-ui-bullet",
221
218
  options: e.value.userOptions.print
222
- }), ce = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
223
- function he(t) {
224
- k.value = t, oe.value += 1;
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;
225
222
  }
226
- function ve() {
223
+ function ye() {
227
224
  return h.value;
228
225
  }
229
226
  const _ = g(!1);
230
- function P() {
227
+ function H() {
231
228
  _.value = !_.value;
232
229
  }
233
- return ae({
234
- getData: ve,
235
- generatePdf: Y,
236
- generateImage: J,
237
- toggleAnnotator: P
238
- }), (t, s) => (r(), o("div", {
230
+ return le({
231
+ getData: ye,
232
+ generatePdf: J,
233
+ generateImage: K,
234
+ toggleAnnotator: H
235
+ }), (t, s) => (r(), n("div", {
239
236
  ref_key: "bulletChart",
240
237
  ref: U,
241
- class: Q(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
242
- style: H(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
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}`),
243
240
  id: `bullet_${F.value}`,
244
- onMouseenter: s[0] || (s[0] = () => u(W)(!0)),
245
- onMouseleave: s[1] || (s[1] = () => u(W)(!1))
241
+ onMouseenter: s[0] || (s[0] = () => o(E)(!0)),
242
+ onMouseleave: s[1] || (s[1] = () => o(E)(!1))
246
243
  }, [
247
- e.value.userOptions.buttons.annotator ? (r(), w(Se, {
244
+ e.value.userOptions.buttons.annotator ? (r(), w(o(re), {
248
245
  key: 0,
249
- svgRef: u(D),
246
+ svgRef: o(D),
250
247
  backgroundColor: e.value.style.chart.backgroundColor,
251
248
  color: e.value.style.chart.color,
252
249
  active: _.value,
253
- onClose: P
250
+ onClose: H
254
251
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
255
- ce.value ? (r(), o("div", Ne, null, 512)) : i("", !0),
256
- e.value.style.chart.title.text ? (r(), o("div", {
252
+ fe.value ? (r(), n("div", ze, null, 512)) : i("", !0),
253
+ e.value.style.chart.title.text ? (r(), n("div", {
257
254
  key: 2,
258
255
  ref_key: "chartTitle",
259
- ref: se,
256
+ ref: ie,
260
257
  style: "width:100%;background:transparent;"
261
258
  }, [
262
- (r(), w(Oe, {
259
+ (r(), w(Te, {
263
260
  lineHeight: "1.3rem",
264
- key: `title_${N.value}`,
261
+ key: `title_${z.value}`,
265
262
  config: {
266
263
  title: {
267
264
  cy: "bullet-div-title",
@@ -274,13 +271,13 @@ segments: [
274
271
  }
275
272
  }, null, 8, ["config"]))
276
273
  ], 512)) : i("", !0),
277
- e.value.userOptions.show && y.value && (u(E) || u(I)) ? (r(), w(Fe, {
274
+ e.value.userOptions.show && y.value && (o(V) || o(I)) ? (r(), w(o(ne), {
278
275
  key: 3,
279
276
  ref: "details",
280
277
  backgroundColor: e.value.style.chart.backgroundColor,
281
278
  color: e.value.style.chart.color,
282
- isPrinting: u(q),
283
- isImaging: u(X),
279
+ isPrinting: o(X),
280
+ isImaging: o(Y),
284
281
  uid: F.value,
285
282
  hasTooltip: !1,
286
283
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -295,18 +292,18 @@ segments: [
295
292
  titles: { ...e.value.userOptions.buttonTitles },
296
293
  hasAnnotator: e.value.userOptions.buttons.annotator,
297
294
  isAnnotation: _.value,
298
- onToggleFullscreen: he,
299
- onGeneratePdf: u(Y),
300
- onGenerateImage: u(J),
301
- onToggleAnnotator: P,
302
- style: H({
303
- visibility: u(E) ? u(I) ? "visible" : "hidden" : "visible"
295
+ onToggleFullscreen: me,
296
+ onGeneratePdf: o(J),
297
+ onGenerateImage: o(K),
298
+ onToggleAnnotator: H,
299
+ style: M({
300
+ visibility: o(V) ? o(I) ? "visible" : "hidden" : "visible"
304
301
  })
305
- }, me({ _: 2 }, [
302
+ }, we({ _: 2 }, [
306
303
  t.$slots.menuIcon ? {
307
304
  name: "menuIcon",
308
305
  fn: p(({ isOpen: a, color: d }) => [
309
- m(t.$slots, "menuIcon", L($({ isOpen: a, color: d })), void 0, !0)
306
+ m(t.$slots, "menuIcon", $(O({ isOpen: a, color: d })), void 0, !0)
310
307
  ]),
311
308
  key: "0"
312
309
  } : void 0,
@@ -327,29 +324,29 @@ segments: [
327
324
  t.$slots.optionFullscreen ? {
328
325
  name: "optionFullscreen",
329
326
  fn: p(({ toggleFullscreen: a, isFullscreen: d }) => [
330
- m(t.$slots, "optionFullscreen", L($({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
327
+ m(t.$slots, "optionFullscreen", $(O({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
331
328
  ]),
332
329
  key: "3"
333
330
  } : void 0,
334
331
  t.$slots.optionAnnotator ? {
335
332
  name: "optionAnnotator",
336
333
  fn: p(({ toggleAnnotator: a, isAnnotator: d }) => [
337
- m(t.$slots, "optionAnnotator", L($({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
334
+ m(t.$slots, "optionAnnotator", $(O({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
338
335
  ]),
339
336
  key: "4"
340
337
  } : void 0
341
338
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
342
- y.value ? (r(), o("svg", {
339
+ y.value ? (r(), n("svg", {
343
340
  key: 4,
344
341
  ref_key: "svgRef",
345
342
  ref: D,
346
- xmlns: u(Le),
347
- class: Q({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value, "vue-ui-bullet-svg": !0 }),
343
+ xmlns: o(Pe),
344
+ class: Z({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value, "vue-ui-bullet-svg": !0 }),
348
345
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
349
- style: H(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
346
+ style: M(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
350
347
  }, [
351
- ye(Ie),
352
- t.$slots["chart-background"] ? (r(), o("foreignObject", {
348
+ xe(o(se)),
349
+ t.$slots["chart-background"] ? (r(), n("foreignObject", {
353
350
  key: 0,
354
351
  x: 0,
355
352
  y: 0,
@@ -360,9 +357,9 @@ segments: [
360
357
  }
361
358
  }, [
362
359
  m(t.$slots, "chart-background", {}, void 0, !0)
363
- ], 8, Re)) : i("", !0),
364
- b.value ? (r(), o("g", We, [
365
- (r(!0), o(M, null, T(h.value.chunks, (a) => (r(), o("rect", {
360
+ ], 8, We)) : i("", !0),
361
+ b.value ? (r(), n("g", Ee, [
362
+ (r(!0), n(T, null, N(h.value.chunks, (a) => (r(), n("rect", {
366
363
  x: a.x,
367
364
  y: a.y,
368
365
  height: a.height,
@@ -370,8 +367,8 @@ segments: [
370
367
  fill: a.color,
371
368
  "stroke-width": 1,
372
369
  stroke: e.value.style.chart.backgroundColor
373
- }, null, 8, Ee))), 256)),
374
- e.value.style.chart.target.onTop ? i("", !0) : (r(), o("rect", {
370
+ }, null, 8, Ve))), 256)),
371
+ e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
375
372
  key: 0,
376
373
  x: h.value.target.x,
377
374
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
@@ -390,8 +387,8 @@ segments: [
390
387
  fill: e.value.style.chart.valueBar.color,
391
388
  stroke: e.value.style.chart.valueBar.stroke,
392
389
  "stroke-width": e.value.style.chart.valueBar.strokeWidth
393
- }, null, 8, Ve),
394
- e.value.style.chart.valueBar.label.show ? (r(), o("text", {
390
+ }, null, 8, je),
391
+ e.value.style.chart.valueBar.label.show ? (r(), n("text", {
395
392
  key: 1,
396
393
  x: l.value.left + h.value.value.width,
397
394
  y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
@@ -399,17 +396,17 @@ segments: [
399
396
  "font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
400
397
  fill: e.value.style.chart.valueBar.label.color,
401
398
  "text-anchor": "middle"
402
- }, O(u(B)(
399
+ }, A(o(B)(
403
400
  e.value.style.chart.segments.dataLabels.formatter,
404
401
  c.value,
405
- u(A)({
402
+ o(P)({
406
403
  p: e.value.style.chart.segments.dataLabels.prefix,
407
404
  v: c.value,
408
405
  s: e.value.style.chart.segments.dataLabels.suffix,
409
406
  r: e.value.style.chart.segments.dataLabels.rounding
410
407
  })
411
- )), 9, je)) : i("", !0),
412
- e.value.style.chart.target.onTop ? (r(), o("rect", {
408
+ )), 9, Ge)) : i("", !0),
409
+ e.value.style.chart.target.onTop ? (r(), n("rect", {
413
410
  key: 2,
414
411
  x: h.value.target.x,
415
412
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
@@ -419,28 +416,28 @@ segments: [
419
416
  fill: e.value.style.chart.target.color,
420
417
  stroke: e.value.style.chart.target.stroke,
421
418
  "stroke-width": e.value.style.chart.target.strokeWidth
422
- }, null, 8, Ge)) : i("", !0),
423
- e.value.style.chart.segments.dataLabels.show ? (r(), o("g", qe, [
424
- (r(!0), o(M, null, T(h.value.ticks, (a) => (r(), o("text", {
419
+ }, null, 8, qe)) : i("", !0),
420
+ e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Xe, [
421
+ (r(!0), n(T, null, N(h.value.ticks, (a) => (r(), n("text", {
425
422
  x: a.x,
426
423
  y: a.y,
427
424
  "text-anchor": "middle",
428
425
  fill: e.value.style.chart.segments.dataLabels.color,
429
426
  "font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
430
427
  "font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
431
- }, O(u(B)(
428
+ }, A(o(B)(
432
429
  e.value.style.chart.segments.dataLabels.formatter,
433
430
  a.value,
434
- u(A)({
431
+ o(P)({
435
432
  p: e.value.style.chart.segments.dataLabels.prefix,
436
433
  v: a.value,
437
434
  s: e.value.style.chart.segments.dataLabels.suffix,
438
435
  r: e.value.style.chart.segments.dataLabels.rounding
439
436
  })
440
- )), 9, Xe))), 256))
437
+ )), 9, Ye))), 256))
441
438
  ])) : i("", !0),
442
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), o("g", Ye, [
443
- (r(!0), o(M, null, T(h.value.ticks, (a) => (r(), o("line", {
439
+ e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", Je, [
440
+ (r(!0), n(T, null, N(h.value.ticks, (a) => (r(), n("line", {
444
441
  x1: a.x,
445
442
  x2: a.x,
446
443
  y1: l.value.bottom,
@@ -448,15 +445,15 @@ segments: [
448
445
  stroke: e.value.style.chart.segments.ticks.stroke,
449
446
  "stroke-width": 1,
450
447
  "stroke-linecap": "round"
451
- }, null, 8, Je))), 256))
448
+ }, null, 8, Ke))), 256))
452
449
  ])) : i("", !0)
453
450
  ])) : i("", !0),
454
451
  m(t.$slots, "svg", { svg: l.value }, void 0, !0)
455
- ], 14, ze)) : i("", !0),
456
- t.$slots.watermark ? (r(), o("div", Ke, [
457
- m(t.$slots, "watermark", L($({ isPrinting: u(q) || u(X) })), void 0, !0)
452
+ ], 14, Re)) : i("", !0),
453
+ t.$slots.watermark ? (r(), n("div", Qe, [
454
+ m(t.$slots, "watermark", $(O({ isPrinting: o(X) || o(Y) })), void 0, !0)
458
455
  ])) : i("", !0),
459
- y.value ? i("", !0) : (r(), w(Pe, {
456
+ y.value ? i("", !0) : (r(), w(o(oe), {
460
457
  key: 6,
461
458
  config: {
462
459
  type: "bullet",
@@ -470,30 +467,30 @@ segments: [
470
467
  }, null, 8, ["config"])),
471
468
  x("div", {
472
469
  ref_key: "chartLegend",
473
- ref: re
470
+ ref: ce
474
471
  }, [
475
- e.value.style.chart.legend.show ? (r(), w(Be, {
472
+ e.value.style.chart.legend.show ? (r(), w(Me, {
476
473
  key: 0,
477
474
  clickable: !1,
478
- legendSet: G.value,
479
- config: ie.value
475
+ legendSet: q.value,
476
+ config: ge.value
480
477
  }, {
481
478
  item: p(({ legend: a }) => [
482
- x("div", Qe, [
483
- x("span", Ze, O(a.name) + ":", 1),
484
- x("span", null, O(a.value), 1)
479
+ x("div", Ze, [
480
+ x("span", et, A(a.name) + ":", 1),
481
+ x("span", null, A(a.value), 1)
485
482
  ])
486
483
  ]),
487
484
  _: 1
488
485
  }, 8, ["legendSet", "config"])) : i("", !0),
489
- m(t.$slots, "legend", { legend: G.value }, void 0, !0)
486
+ m(t.$slots, "legend", { legend: q.value }, void 0, !0)
490
487
  ], 512),
491
- t.$slots.source ? (r(), o("div", et, [
488
+ t.$slots.source ? (r(), n("div", tt, [
492
489
  m(t.$slots, "source", {}, void 0, !0)
493
490
  ], 512)) : i("", !0)
494
491
  ], 46, Ue));
495
492
  }
496
- }, gt = /* @__PURE__ */ Te(tt, [["__scopeId", "data-v-e444b500"]]);
493
+ }, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-d6160365"]]);
497
494
  export {
498
- gt as default
495
+ vt as default
499
496
  };