vue-data-ui 2.12.5 → 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 (112) hide show
  1. package/README.md +56 -1
  2. package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
  3. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  4. package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
  5. package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
  6. package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
  7. package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
  8. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  9. package/dist/PackageVersion-CLY-udAA.js +10 -0
  10. package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
  11. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  12. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  13. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  14. package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
  15. package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
  16. package/dist/SparkTooltip-CwThutH2.js +68 -0
  17. package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
  18. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  19. package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
  20. package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
  21. package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
  22. package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
  23. package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +96 -2
  26. package/dist/types/vue-data-ui.d.ts +96 -2
  27. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  28. package/dist/useMouse-AicQS8Vf.js +13 -0
  29. package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
  30. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  31. package/dist/usePrinter-CRCbl1WG.js +53 -0
  32. package/dist/vClickOutside-C6WiFswA.js +13 -0
  33. package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
  34. package/dist/vue-data-ui.js +42 -40
  35. package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  36. package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  37. package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  38. package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  39. package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  40. package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  41. package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  42. package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  43. package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
  44. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  45. package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  46. package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  47. package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  48. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  49. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  50. package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  51. package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  52. package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  53. package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  54. package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  55. package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  56. package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  57. package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  58. package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  59. package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  60. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  61. package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  62. package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  63. package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
  64. package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  65. package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  66. package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  67. package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  68. package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
  69. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  70. package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  71. package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
  72. package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  73. package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  74. package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  75. package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  76. package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  77. package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  78. package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  79. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  80. package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  81. package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  82. package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  83. package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
  84. package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  85. package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  86. package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  87. package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  88. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  89. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  90. package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  91. package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  92. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  93. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  94. package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
  95. package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
  96. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  97. package/package.json +6 -6
  98. package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
  99. package/dist/PackageVersion-Cw2caN1c.js +0 -10
  100. package/dist/Tooltip-LKe8L-Mg.js +0 -158
  101. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  102. package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
  103. package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
  104. package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
  105. package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
  106. package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
  107. package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
  108. package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
  109. package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
  110. package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
  111. package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
  112. package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
@@ -1,5 +1,5 @@
1
- import { z as p, A as v, u as w, B as A } from "./index-vjCxtaM0.js";
2
- import { d as M } from "./dom-to-png-CS4NRYd_.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-vjCxtaM0.js";
3
- import { u as ee } from "./useNestedProp-Du1hnYFA.js";
4
- import { _ as Oe } from "./Title-xO1jFsSw.js";
5
- import { L as Be } from "./Legend-0UY0Mmli.js";
6
- import { u as Ae, U as Fe } from "./usePrinter-CcgJXHIK.js";
7
- import { _ as Ie } from "./PackageVersion-Cw2caN1c.js";
8
- import { _ as Se } from "./PenAndPaper-DLsvRwoD.js";
9
- import Pe from "./vue-ui-skeleton-DfOIDTJM.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
  };