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,22 +1,17 @@
1
- import { computed as g, ref as d, watch as fe, onMounted as be, onBeforeUnmount as Ie, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as F, normalizeClass as ge, createBlock as L, createCommentVNode as v, createElementVNode as i, createSlots as Ge, withCtx as _, renderSlot as m, normalizeProps as V, guardReactiveProps as E, createVNode as Me, Fragment as C, renderList as $, toDisplayString as A, createTextVNode as me, nextTick as De } from "vue";
2
- import { u as Fe, c as pe, a as Ve, o as Ee, e as _e, g as Re, v as ke, D as He, f as z, X as xe, i as B, l as we, h as Ce, q as We, r as Ue } from "./index-BFzQMJda.js";
3
- import { t as Be, u as je } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as qe } from "./Title-CzaCeCOm.js";
5
- import { u as Ye, U as Ze } from "./usePrinter-C5bLp34h.js";
6
- import { D as Je } from "./DataTable-Rajdtaf6.js";
7
- import Ke from "./vue-ui-skeleton-B_YI7Yuc.js";
8
- import { L as Qe } from "./Legend-BxtDQCIv.js";
9
- import et from "./vue-ui-accordion-BUz4JIIX.js";
10
- import { u as $e } from "./useNestedProp-v7KPpwuP.js";
11
- import { _ as tt } from "./PackageVersion-BjrblLPQ.js";
12
- import { _ as lt } from "./PenAndPaper-BkP3J-Ft.js";
13
- import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
14
- import { u as st } from "./useChartAccessibility-BWojgys7.js";
15
- import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], it = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill"], gt = { key: 4 }, mt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["id"], _t = ["stop-color"], kt = ["stop-color"], xt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["stop-color"], At = ["id"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Ot = { key: 0 }, Pt = ["d", "fill"], It = { key: 1 }, Gt = ["x", "y", "height", "width", "fill"], Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ft = { key: 5 }, Vt = ["x", "y", "fill", "font-size"], Et = { key: 6 }, Rt = ["x", "y", "fill", "font-size"], Ht = {
1
+ import { defineAsyncComponent as T, computed as g, ref as d, watch as ge, shallowRef as pe, onMounted as me, onBeforeUnmount as We, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as E, normalizeClass as ke, createBlock as A, createCommentVNode as v, createElementVNode as i, createSlots as Ue, withCtx as k, renderSlot as p, normalizeProps as R, guardReactiveProps as H, createVNode as Be, Fragment as $, renderList as L, toDisplayString as z, createTextVNode as _e, nextTick as je } from "vue";
2
+ import { u as qe, c as xe, a as Ye, o as Ze, e as we, g as Je, v as Ce, D as Ke, f as S, X as $e, i as q, l as Le, h as Ae, q as Qe, r as et } from "./index-BiHmNd1-.js";
3
+ import { t as tt, u as lt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as ze } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as at } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
8
+ import rt from "./Legend-DFunFf8i.js";
9
+ import nt from "./Title-B5qqUI3M.js";
10
+ import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"], vt = { key: 1 }, ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 2 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gt = { key: 3 }, pt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill"], kt = { key: 4 }, _t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["id"], At = ["stop-color"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Pt = ["id"], Ot = ["stop-color"], Mt = ["stop-color"], It = { key: 0 }, Gt = ["d", "fill"], Dt = { key: 1 }, Ft = ["x", "y", "height", "width", "fill"], Vt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rt = { key: 5 }, Ht = ["x", "y", "fill", "font-size"], Wt = { key: 6 }, Ut = ["x", "y", "fill", "font-size"], Bt = {
17
12
  key: 5,
18
13
  class: "vue-data-ui-watermark"
19
- }, Wt = ["xmlns", "height", "width"], Ut = ["fill"], Bt = ["innerHTML"], jt = {
14
+ }, jt = ["xmlns", "height", "width"], qt = ["fill"], Yt = ["innerHTML"], Zt = {
20
15
  __name: "vue-ui-dumbbell",
21
16
  props: {
22
17
  config: {
@@ -33,144 +28,144 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
33
28
  }
34
29
  },
35
30
  emits: ["selectDatapoint"],
36
- setup(Le, { expose: Ae, emit: qt }) {
37
- const { vue_ui_dumbbell: ze } = Fe(), b = Le, S = g({
31
+ setup(Se, { expose: Xe, emit: Jt }) {
32
+ const Ne = T(() => import("./vue-ui-accordion-CmCs2yR2.js")), Te = T(() => import("./DataTable-Cv9CIz-a.js")), Pe = T(() => import("./PackageVersion-CLY-udAA.js")), Oe = T(() => import("./PenAndPaper-B9na2mbr.js")), Me = T(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ie = T(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_dumbbell: Ge } = qe(), b = Se, X = g({
38
33
  get() {
39
34
  return !!b.dataset && b.dataset.length;
40
35
  },
41
36
  set(l) {
42
37
  return l;
43
38
  }
44
- }), y = d(pe()), j = d(0), O = d(null), q = d(null), Y = d(null), Z = d(null), J = d(null), K = d(0), Q = d(0), ee = d(0), e = g({
45
- get: () => se(),
39
+ }), y = d(xe()), Y = d(0), I = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = g({
40
+ get: () => re(),
46
41
  set: (l) => l
47
- }), { userOptionsVisible: R, setUserOptionsVisibility: te, keepUserOptionState: le } = at({ config: e.value }), { svgRef: ae } = st({ config: e.value.style.chart.title });
48
- function se() {
49
- const l = $e({
42
+ }), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = st({ config: e.value }), { svgRef: oe } = ot({ config: e.value.style.chart.title });
43
+ function re() {
44
+ const l = ze({
50
45
  userConfig: b.config,
51
- defaultConfig: ze
46
+ defaultConfig: Ge
52
47
  });
53
48
  return l.theme ? {
54
- ...$e({
55
- userConfig: Ve.vue_ui_dumbbell[l.theme] || b.config,
49
+ ...ze({
50
+ userConfig: Ye.vue_ui_dumbbell[l.theme] || b.config,
56
51
  defaultConfig: l
57
52
  })
58
53
  } : l;
59
54
  }
60
- fe(() => b.config, (l) => {
61
- e.value = se(), R.value = !e.value.userOptions.showOnChartHover, oe(), K.value += 1, Q.value += 1, ee.value += 1, h.value = e.value.style.chart.rowHeight, N.value = e.value.style.chart.width, X.value.showTable = e.value.table.show;
62
- }, { deep: !0 }), fe(() => b.dataset, (l) => {
63
- de();
55
+ ge(() => b.config, (l) => {
56
+ e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, O.value = e.value.style.chart.width, P.value.showTable = e.value.table.show;
57
+ }, { deep: !0 }), ge(() => b.dataset, (l) => {
58
+ he();
64
59
  }, { deep: !0 });
65
- const P = d(null);
66
- be(() => {
67
- oe();
60
+ const _ = pe(null), N = pe(null);
61
+ me(() => {
62
+ ne();
68
63
  });
69
- function oe() {
70
- if (Ee(b.dataset) ? _e({
64
+ function ne() {
65
+ if (Ze(b.dataset) ? we({
71
66
  componentName: "VueUiDumbbell",
72
67
  type: "dataset"
73
- }) : b.dataset.forEach((l, n) => {
74
- Re({
68
+ }) : b.dataset.forEach((l, u) => {
69
+ Je({
75
70
  datasetObject: l,
76
71
  requiredAttributes: ["name", "start", "end"]
77
72
  }).forEach((t) => {
78
- S.value = !1, _e({
73
+ X.value = !1, we({
79
74
  componentName: "VueUiDumbbell",
80
75
  type: "datasetSerieAttribute",
81
76
  property: t,
82
- index: n
77
+ index: u
83
78
  });
84
79
  });
85
80
  }), e.value.responsive) {
86
- const l = Be(() => {
87
- const { width: n, height: t } = je({
88
- chart: O.value,
89
- title: e.value.style.chart.title.text ? q.value : null,
90
- legend: e.value.style.chart.legend.show ? Y.value : null,
91
- source: Z.value,
92
- noTitle: J.value
81
+ const l = tt(() => {
82
+ const { width: u, height: t } = lt({
83
+ chart: I.value,
84
+ title: e.value.style.chart.title.text ? Z.value : null,
85
+ legend: e.value.style.chart.legend.show ? J.value : null,
86
+ source: K.value,
87
+ noTitle: Q.value
93
88
  });
94
89
  requestAnimationFrame(() => {
95
- N.value = n, h.value = t / b.dataset.length, f.value = I();
90
+ O.value = u, h.value = t / b.dataset.length, f.value = G();
96
91
  });
97
92
  });
98
- P.value = new ResizeObserver(l), P.value.observe(O.value.parentNode);
93
+ _.value && (N.value && _.value.unobserve(N.value), _.value.disconnect()), _.value = new ResizeObserver(l), N.value = I.value.parentNode, _.value.observe(N.value);
99
94
  }
100
95
  }
101
- Ie(() => {
102
- P.value && P.value.disconnect();
96
+ We(() => {
97
+ _.value && (N.value && _.value.unobserve(N.value), _.value.disconnect());
103
98
  });
104
- const { isPrinting: re, isImaging: ne, generatePdf: ue, generateImage: ie } = Ye({
99
+ const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = at({
105
100
  elementId: `dumbbell_${y.value}`,
106
101
  fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
107
102
  options: e.value.userOptions.print
108
- }), Se = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), X = d({
103
+ }), De = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
109
104
  showTable: e.value.table.show
110
- }), k = g(() => b.dataset.map((l, n) => ({
105
+ }), x = g(() => b.dataset.map((l, u) => ({
111
106
  ...l,
112
- start: ke(l.start),
113
- end: ke(l.end),
114
- id: pe()
115
- }))), H = g(() => ({
116
- max: Math.max(...k.value.flatMap((l) => [l.start, l.end])),
117
- min: Math.min(...k.value.flatMap((l) => [l.start, l.end]))
118
- })), c = g(() => He(H.value.min < 0 ? H.value.min : 0, H.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), N = d(e.value.style.chart.width), s = g(() => {
119
- const l = h.value, n = e.value.style.chart.padding.left + e.value.style.chart.padding.right + N.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * b.dataset.length, a = c.value.ticks.length * (N.value / c.value.ticks.length);
107
+ start: Ce(l.start),
108
+ end: Ce(l.end),
109
+ id: xe()
110
+ }))), U = g(() => ({
111
+ max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
112
+ min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
113
+ })), c = g(() => Ke(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), O = d(e.value.style.chart.width), s = g(() => {
114
+ const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + O.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * b.dataset.length, a = c.value.ticks.length * (O.value / c.value.ticks.length);
120
115
  return {
121
116
  left: e.value.style.chart.padding.left,
122
- right: n - e.value.style.chart.padding.right,
117
+ right: u - e.value.style.chart.padding.right,
123
118
  top: e.value.style.chart.padding.top,
124
119
  bottom: t - e.value.style.chart.padding.bottom,
125
- width: N.value,
120
+ width: O.value,
126
121
  height: l * b.dataset.length,
127
122
  rowHeight: l,
128
123
  absoluteHeight: t,
129
- absoluteWidth: n,
124
+ absoluteWidth: u,
130
125
  widthPlotReference: a
131
126
  };
132
127
  });
133
- function I() {
134
- return k.value.map((l, n) => {
135
- const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, p = t + (a - t) / 2;
128
+ function G() {
129
+ return x.value.map((l, u) => {
130
+ const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, m = t + (a - t) / 2;
136
131
  return {
137
132
  ...l,
138
133
  startX: t,
139
134
  endX: a,
140
- centerX: p,
141
- y: s.value.top + n * h.value + h.value / 2,
135
+ centerX: m,
136
+ y: s.value.top + u * h.value + h.value / 2,
142
137
  endVal: l.start
143
138
  };
144
139
  });
145
140
  }
146
- const f = d([]), ce = d(null), Xe = g(() => k.value.map((l) => l.end).reduce((l, n) => l + n, 0));
147
- be(() => {
148
- de();
141
+ const f = d([]), ve = d(null), Fe = g(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
142
+ me(() => {
143
+ he();
149
144
  });
150
- function de() {
151
- f.value = I();
145
+ function he() {
146
+ f.value = G();
152
147
  let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
153
- function n() {
154
- const t = k.value.map((a) => a.end - a.start);
155
- l >= Xe.value ? (cancelAnimationFrame(ce.value), f.value = I()) : (f.value = f.value.map((a, p) => {
156
- a.endVal += t[p] * (e.value.animationSpeed / 100);
157
- const w = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, D = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, U = w + (D - w) / 2;
148
+ function u() {
149
+ const t = x.value.map((a) => a.end - a.start);
150
+ l >= Fe.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, m) => {
151
+ a.endVal += t[m] * (e.value.animationSpeed / 100);
152
+ const C = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, V = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = C + (V - C) / 2;
158
153
  return {
159
154
  ...a,
160
- startX: w,
161
- endX: D,
162
- centerX: U,
163
- y: s.value.top + p * h.value + h.value / 2,
155
+ startX: C,
156
+ endX: V,
157
+ centerX: j,
158
+ y: s.value.top + m * h.value + h.value / 2,
164
159
  endVal: a.endVal
165
160
  };
166
- }), l = f.value.map((a) => a.endVal).reduce((a, p) => a + p, 0), ce.value = requestAnimationFrame(n));
161
+ }), l = f.value.map((a) => a.endVal).reduce((a, m) => a + m, 0), ve.value = requestAnimationFrame(u));
167
162
  }
168
- e.value.useAnimation ? n() : f.value = I();
163
+ e.value.useAnimation ? u() : f.value = G();
169
164
  }
170
- const ve = g(() => [
165
+ const ye = g(() => [
171
166
  { name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor },
172
167
  { name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor }
173
- ]), Ne = g(() => ({
168
+ ]), Ve = g(() => ({
174
169
  cy: "donut-div-legend",
175
170
  backgroundColor: e.value.style.chart.legend.backgroundColor,
176
171
  color: e.value.style.chart.legend.color,
@@ -178,41 +173,41 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
178
173
  paddingBottom: 12,
179
174
  paddingTop: 12,
180
175
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
181
- })), x = g(() => {
176
+ })), w = g(() => {
182
177
  const l = f.value.map((t) => ({
183
178
  name: t.name
184
- })), n = f.value.map((t) => ({
179
+ })), u = f.value.map((t) => ({
185
180
  start: t.start,
186
181
  end: t.end
187
182
  }));
188
- return { head: l, body: n };
189
- }), G = g(() => {
183
+ return { head: l, body: u };
184
+ }), D = g(() => {
190
185
  const l = [
191
186
  e.value.table.columnNames.series,
192
187
  e.value.table.columnNames.start,
193
188
  e.value.table.columnNames.end,
194
189
  e.value.table.columnNames.progression
195
- ], n = x.value.head.map((p, w) => {
196
- const D = z({
190
+ ], u = w.value.head.map((m, C) => {
191
+ const V = S({
197
192
  p: e.value.style.chart.labels.prefix,
198
- v: x.value.body[w].start,
193
+ v: w.value.body[C].start,
199
194
  s: e.value.style.chart.labels.suffix,
200
195
  r: e.value.table.td.roundingValue
201
- }), U = z({
196
+ }), j = S({
202
197
  p: e.value.style.chart.labels.prefix,
203
- v: x.value.body[w].end,
198
+ v: w.value.body[C].end,
204
199
  s: e.value.style.chart.labels.suffix,
205
200
  r: e.value.table.td.roundingValue
206
- }), Pe = z({
207
- v: 100 * (x.value.body[w].end / x.value.body[w].start - 1),
201
+ }), He = S({
202
+ v: 100 * (w.value.body[C].end / w.value.body[C].start - 1),
208
203
  s: "%",
209
204
  r: e.value.table.td.roundingPercentage
210
205
  });
211
206
  return [
212
- { name: p.name },
213
- D,
214
- U,
215
- Pe
207
+ { name: m.name },
208
+ V,
209
+ j,
210
+ He
216
211
  ];
217
212
  }), t = {
218
213
  th: {
@@ -235,71 +230,71 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
235
230
  e.value.table.columnNames.progression
236
231
  ],
237
232
  head: l,
238
- body: n,
233
+ body: u,
239
234
  config: t
240
235
  };
241
236
  });
242
- function he() {
243
- De(() => {
244
- const l = x.value.head.map((a, p) => [[
237
+ function fe() {
238
+ je(() => {
239
+ const l = w.value.head.map((a, m) => [[
245
240
  a.name
246
- ], [x.value.body[p].start], [x.value.body[p].end]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = We(n);
247
- Ue({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
241
+ ], [w.value.body[m].start], [w.value.body[m].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = Qe(u);
242
+ et({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
248
243
  });
249
244
  }
250
- const T = d(!1);
251
- function Te(l) {
252
- T.value = l, j.value += 1;
245
+ const M = d(!1);
246
+ function Ee(l) {
247
+ M.value = l, Y.value += 1;
253
248
  }
254
- function Oe() {
249
+ function Re() {
255
250
  return f.value;
256
251
  }
257
- function ye() {
258
- X.value.showTable = !X.value.showTable;
252
+ function be() {
253
+ P.value.showTable = !P.value.showTable;
259
254
  }
260
- const M = d(!1);
261
- function W() {
262
- M.value = !M.value;
255
+ const F = d(!1);
256
+ function B() {
257
+ F.value = !F.value;
263
258
  }
264
- return Ae({
265
- getData: Oe,
266
- generatePdf: ue,
267
- generateCsv: he,
268
- generateImage: ie,
269
- toggleTable: ye,
270
- toggleAnnotator: W
271
- }), (l, n) => (o(), r("div", {
259
+ return Xe({
260
+ getData: Re,
261
+ generatePdf: ce,
262
+ generateCsv: fe,
263
+ generateImage: de,
264
+ toggleTable: be,
265
+ toggleAnnotator: B
266
+ }), (l, u) => (o(), r("div", {
272
267
  ref_key: "dumbbellChart",
273
- ref: O,
274
- class: ge(`vue-ui-dumbbell ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
275
- style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
268
+ ref: I,
269
+ class: ke(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
270
+ style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
276
271
  id: `dumbbell_${y.value}`,
277
- onMouseenter: n[1] || (n[1] = () => u(te)(!0)),
278
- onMouseleave: n[2] || (n[2] = () => u(te)(!1))
272
+ onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
273
+ onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
279
274
  }, [
280
- e.value.userOptions.buttons.annotator ? (o(), L(lt, {
275
+ e.value.userOptions.buttons.annotator ? (o(), A(n(Oe), {
281
276
  key: 0,
282
- svgRef: u(ae),
277
+ svgRef: n(oe),
283
278
  backgroundColor: e.value.style.chart.backgroundColor,
284
279
  color: e.value.style.chart.color,
285
- active: M.value,
286
- onClose: W
280
+ active: F.value,
281
+ onClose: B
287
282
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
288
- Se.value ? (o(), r("div", {
283
+ De.value ? (o(), r("div", {
289
284
  key: 1,
290
285
  ref_key: "noTitle",
291
- ref: J,
286
+ ref: Q,
292
287
  class: "vue-data-ui-no-title-space",
293
288
  style: "height:36px; width: 100%;background:transparent"
294
289
  }, null, 512)) : v("", !0),
295
290
  e.value.style.chart.title.text ? (o(), r("div", {
296
291
  key: 2,
297
292
  ref_key: "chartTitle",
298
- ref: q,
293
+ ref: Z,
299
294
  style: "width:100%;background:transparent;padding-bottom:24px"
300
295
  }, [
301
- (o(), L(qe, {
302
- key: `title_${K.value}`,
296
+ (o(), A(nt, {
297
+ key: `title_${ee.value}`,
303
298
  config: {
304
299
  title: {
305
300
  cy: "donut-div-title",
@@ -312,109 +307,109 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
312
307
  }
313
308
  }, null, 8, ["config"]))
314
309
  ], 512)) : v("", !0),
315
- e.value.userOptions.show && S.value && (u(le) || u(R)) ? (o(), L(Ze, {
310
+ e.value.userOptions.show && X.value && (n(se) || n(W)) ? (o(), A(n(Ie), {
316
311
  ref: "details",
317
- key: `user_option_${j.value}`,
312
+ key: `user_option_${Y.value}`,
318
313
  backgroundColor: e.value.style.chart.backgroundColor,
319
314
  color: e.value.style.chart.color,
320
- isPrinting: u(re),
321
- isImaging: u(ne),
315
+ isPrinting: n(ue),
316
+ isImaging: n(ie),
322
317
  uid: y.value,
323
318
  hasPdf: e.value.userOptions.buttons.pdf,
324
319
  hasXls: e.value.userOptions.buttons.csv,
325
320
  hasImg: e.value.userOptions.buttons.img,
326
321
  hasTable: e.value.userOptions.buttons.table,
327
322
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
328
- isFullscreen: T.value,
323
+ isFullscreen: M.value,
329
324
  titles: { ...e.value.userOptions.buttonTitles },
330
- chartElement: O.value,
325
+ chartElement: I.value,
331
326
  position: e.value.userOptions.position,
332
327
  hasAnnotator: e.value.userOptions.buttons.annotator,
333
- isAnnotation: M.value,
334
- onToggleFullscreen: Te,
335
- onGeneratePdf: u(ue),
336
- onGenerateCsv: he,
337
- onGenerateImage: u(ie),
338
- onToggleTable: ye,
339
- onToggleAnnotator: W,
340
- style: F({
341
- visibility: u(le) ? u(R) ? "visible" : "hidden" : "visible"
328
+ isAnnotation: F.value,
329
+ onToggleFullscreen: Ee,
330
+ onGeneratePdf: n(ce),
331
+ onGenerateCsv: fe,
332
+ onGenerateImage: n(de),
333
+ onToggleTable: be,
334
+ onToggleAnnotator: B,
335
+ style: E({
336
+ visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
342
337
  })
343
- }, Ge({ _: 2 }, [
338
+ }, Ue({ _: 2 }, [
344
339
  l.$slots.menuIcon ? {
345
340
  name: "menuIcon",
346
- fn: _(({ isOpen: t, color: a }) => [
347
- m(l.$slots, "menuIcon", V(E({ isOpen: t, color: a })), void 0, !0)
341
+ fn: k(({ isOpen: t, color: a }) => [
342
+ p(l.$slots, "menuIcon", R(H({ isOpen: t, color: a })), void 0, !0)
348
343
  ]),
349
344
  key: "0"
350
345
  } : void 0,
351
346
  l.$slots.optionPdf ? {
352
347
  name: "optionPdf",
353
- fn: _(() => [
354
- m(l.$slots, "optionPdf", {}, void 0, !0)
348
+ fn: k(() => [
349
+ p(l.$slots, "optionPdf", {}, void 0, !0)
355
350
  ]),
356
351
  key: "1"
357
352
  } : void 0,
358
353
  l.$slots.optionCsv ? {
359
354
  name: "optionCsv",
360
- fn: _(() => [
361
- m(l.$slots, "optionCsv", {}, void 0, !0)
355
+ fn: k(() => [
356
+ p(l.$slots, "optionCsv", {}, void 0, !0)
362
357
  ]),
363
358
  key: "2"
364
359
  } : void 0,
365
360
  l.$slots.optionImg ? {
366
361
  name: "optionImg",
367
- fn: _(() => [
368
- m(l.$slots, "optionImg", {}, void 0, !0)
362
+ fn: k(() => [
363
+ p(l.$slots, "optionImg", {}, void 0, !0)
369
364
  ]),
370
365
  key: "3"
371
366
  } : void 0,
372
367
  l.$slots.optionTable ? {
373
368
  name: "optionTable",
374
- fn: _(() => [
375
- m(l.$slots, "optionTable", {}, void 0, !0)
369
+ fn: k(() => [
370
+ p(l.$slots, "optionTable", {}, void 0, !0)
376
371
  ]),
377
372
  key: "4"
378
373
  } : void 0,
379
374
  l.$slots.optionFullscreen ? {
380
375
  name: "optionFullscreen",
381
- fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
382
- m(l.$slots, "optionFullscreen", V(E({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
376
+ fn: k(({ toggleFullscreen: t, isFullscreen: a }) => [
377
+ p(l.$slots, "optionFullscreen", R(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
383
378
  ]),
384
379
  key: "5"
385
380
  } : void 0,
386
381
  l.$slots.optionAnnotator ? {
387
382
  name: "optionAnnotator",
388
- fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
389
- m(l.$slots, "optionAnnotator", V(E({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
383
+ fn: k(({ toggleAnnotator: t, isAnnotator: a }) => [
384
+ p(l.$slots, "optionAnnotator", R(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
390
385
  ]),
391
386
  key: "6"
392
387
  } : void 0
393
388
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
394
- S.value ? (o(), r("svg", {
389
+ X.value ? (o(), r("svg", {
395
390
  key: 4,
396
391
  ref_key: "svgRef",
397
- ref: ae,
398
- xmlns: u(xe),
399
- class: ge({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
392
+ ref: oe,
393
+ xmlns: n($e),
394
+ class: ke({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
400
395
  viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
401
- style: F(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
396
+ style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
402
397
  }, [
403
- Me(tt),
398
+ Be(n(Pe)),
404
399
  l.$slots["chart-background"] ? (o(), r("foreignObject", {
405
400
  key: 0,
406
401
  x: s.value.left,
407
402
  y: s.value.top,
408
- width: s.value.width,
409
- height: s.value.height,
403
+ width: Math.max(0.1, s.value.width),
404
+ height: Math.max(0.1, s.value.height),
410
405
  style: {
411
406
  pointerEvents: "none"
412
407
  }
413
408
  }, [
414
- m(l.$slots, "chart-background", {}, void 0, !0)
415
- ], 8, ut)) : v("", !0),
416
- e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", it, [
417
- (o(!0), r(C, null, $(c.value.ticks, (t, a) => (o(), r("line", {
409
+ p(l.$slots, "chart-background", {}, void 0, !0)
410
+ ], 8, dt)) : v("", !0),
411
+ e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", vt, [
412
+ (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
418
413
  x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
419
414
  x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
420
415
  y1: s.value.top,
@@ -422,10 +417,10 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
422
417
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
423
418
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
424
419
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
425
- }, null, 8, ct))), 256))
420
+ }, null, 8, ht))), 256))
426
421
  ])) : v("", !0),
427
- e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", dt, [
428
- (o(!0), r(C, null, $(k.value, (t, a) => (o(), r("line", {
422
+ e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", yt, [
423
+ (o(!0), r($, null, L(x.value, (t, a) => (o(), r("line", {
429
424
  x1: s.value.left,
430
425
  x2: s.value.right,
431
426
  y1: s.value.top + a * h.value,
@@ -433,7 +428,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
433
428
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
434
429
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
435
430
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
436
- }, null, 8, vt))), 256)),
431
+ }, null, 8, ft))), 256)),
437
432
  i("line", {
438
433
  x1: s.value.left,
439
434
  x2: s.value.right,
@@ -442,48 +437,48 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
442
437
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
443
438
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
444
439
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
445
- }, null, 8, ht)
440
+ }, null, 8, bt)
446
441
  ])) : v("", !0),
447
- e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", yt, [
448
- (o(!0), r(C, null, $(k.value, (t, a) => (o(), r("text", {
442
+ e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", gt, [
443
+ (o(!0), r($, null, L(x.value, (t, a) => (o(), r("text", {
449
444
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
450
445
  y: s.value.top + a * h.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? h.value / 3 : h.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
451
446
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
452
447
  fill: e.value.style.chart.labels.yAxisLabels.color,
453
448
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
454
449
  "text-anchor": "end"
455
- }, A(t.name), 9, ft))), 256)),
456
- e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(C, { key: 0 }, $(k.value, (t, a) => (o(), r("text", {
450
+ }, z(t.name), 9, pt))), 256)),
451
+ e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
457
452
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
458
453
  y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
459
454
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
460
455
  fill: e.value.style.chart.labels.yAxisLabels.color,
461
456
  "text-anchor": "end"
462
- }, A(u(z)({
457
+ }, z(n(S)({
463
458
  v: 100 * (t.end / t.start - 1),
464
459
  s: "%",
465
460
  r: e.value.style.chart.labels.yAxisLabels.rounding
466
- })), 9, bt))), 256)) : v("", !0)
461
+ })), 9, mt))), 256)) : v("", !0)
467
462
  ])) : v("", !0),
468
- e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", gt, [
469
- (o(!0), r(C, null, $(c.value.ticks, (t, a) => (o(), r("text", {
463
+ e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", kt, [
464
+ (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
470
465
  x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
471
466
  y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
472
467
  "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
473
468
  fill: e.value.style.chart.labels.xAxisLabels.color,
474
469
  "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
475
470
  "text-anchor": "middle"
476
- }, A(u(B)(
471
+ }, z(n(q)(
477
472
  e.value.style.chart.labels.formatter,
478
473
  t,
479
- u(z)({
474
+ n(S)({
480
475
  p: e.value.style.chart.labels.prefix,
481
476
  v: t,
482
477
  s: e.value.style.chart.labels.suffix,
483
478
  r: e.value.style.chart.labels.xAxisLabels.rounding
484
479
  }),
485
480
  { datapoint: t, seriesIndex: a }
486
- )), 9, mt))), 256))
481
+ )), 9, _t))), 256))
487
482
  ])) : v("", !0),
488
483
  i("defs", null, [
489
484
  i("radialGradient", {
@@ -492,36 +487,36 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
492
487
  }, [
493
488
  i("stop", {
494
489
  offset: "10%",
495
- "stop-color": u(we)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
496
- }, null, 8, _t),
490
+ "stop-color": n(Le)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
491
+ }, null, 8, wt),
497
492
  i("stop", {
498
493
  offset: "90%",
499
- "stop-color": u(Ce)(e.value.style.chart.plots.startColor, 0.1)
500
- }, null, 8, kt),
494
+ "stop-color": n(Ae)(e.value.style.chart.plots.startColor, 0.1)
495
+ }, null, 8, Ct),
501
496
  i("stop", {
502
497
  offset: "100%",
503
498
  "stop-color": e.value.style.chart.plots.startColor
504
- }, null, 8, xt)
505
- ], 8, pt),
499
+ }, null, 8, $t)
500
+ ], 8, xt),
506
501
  i("radialGradient", {
507
502
  id: `end_grad_${y.value}`,
508
503
  fy: "30%"
509
504
  }, [
510
505
  i("stop", {
511
506
  offset: "10%",
512
- "stop-color": u(we)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
513
- }, null, 8, Ct),
507
+ "stop-color": n(Le)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
508
+ }, null, 8, At),
514
509
  i("stop", {
515
510
  offset: "90%",
516
- "stop-color": u(Ce)(e.value.style.chart.plots.endColor, 0.1)
517
- }, null, 8, $t),
511
+ "stop-color": n(Ae)(e.value.style.chart.plots.endColor, 0.1)
512
+ }, null, 8, zt),
518
513
  i("stop", {
519
514
  offset: "100%",
520
515
  "stop-color": e.value.style.chart.plots.endColor
521
- }, null, 8, Lt)
522
- ], 8, wt)
516
+ }, null, 8, St)
517
+ ], 8, Lt)
523
518
  ]),
524
- (o(!0), r(C, null, $(f.value, (t, a) => (o(), r("g", null, [
519
+ (o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
525
520
  i("defs", null, [
526
521
  i("linearGradient", {
527
522
  id: `grad_positive_${y.value}`,
@@ -533,12 +528,12 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
533
528
  i("stop", {
534
529
  offset: "0%",
535
530
  "stop-color": e.value.style.chart.plots.startColor
536
- }, null, 8, zt),
531
+ }, null, 8, Nt),
537
532
  i("stop", {
538
533
  offset: "100%",
539
534
  "stop-color": e.value.style.chart.plots.endColor
540
- }, null, 8, St)
541
- ], 8, At),
535
+ }, null, 8, Tt)
536
+ ], 8, Xt),
542
537
  i("linearGradient", {
543
538
  id: `grad_negative_${y.value}`,
544
539
  x1: "0%",
@@ -549,14 +544,14 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
549
544
  i("stop", {
550
545
  offset: "0%",
551
546
  "stop-color": e.value.style.chart.plots.endColor
552
- }, null, 8, Nt),
547
+ }, null, 8, Ot),
553
548
  i("stop", {
554
549
  offset: "100%",
555
550
  "stop-color": e.value.style.chart.plots.startColor
556
- }, null, 8, Tt)
557
- ], 8, Xt)
551
+ }, null, 8, Mt)
552
+ ], 8, Pt)
558
553
  ]),
559
- e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Ot, [
554
+ e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", It, [
560
555
  i("path", {
561
556
  d: `M
562
557
  ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
@@ -568,15 +563,15 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
568
563
  Z
569
564
  `,
570
565
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
571
- }, null, 8, Pt)
572
- ])) : (o(), r("g", It, [
566
+ }, null, 8, Gt)
567
+ ])) : (o(), r("g", Dt, [
573
568
  i("rect", {
574
569
  x: t.endX > t.startX ? t.startX : t.endX,
575
570
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
576
571
  height: e.value.style.chart.plots.link.strokeWidth,
577
572
  width: Math.abs(t.endX - t.startX),
578
573
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
579
- }, null, 8, Gt)
574
+ }, null, 8, Ft)
580
575
  ])),
581
576
  i("circle", {
582
577
  cx: t.startX,
@@ -585,7 +580,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
585
580
  fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
586
581
  stroke: e.value.style.chart.plots.stroke,
587
582
  "stroke-width": e.value.style.chart.plots.strokeWidth
588
- }, null, 8, Mt),
583
+ }, null, 8, Vt),
589
584
  i("circle", {
590
585
  cx: t.endX,
591
586
  cy: t.y,
@@ -593,52 +588,52 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
593
588
  fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
594
589
  stroke: e.value.style.chart.plots.stroke,
595
590
  "stroke-width": e.value.style.chart.plots.strokeWidth
596
- }, null, 8, Dt)
591
+ }, null, 8, Et)
597
592
  ]))), 256)),
598
- e.value.style.chart.labels.startLabels.show ? (o(), r("g", Ft, [
599
- (o(!0), r(C, null, $(f.value, (t, a) => (o(), r("text", {
593
+ e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
594
+ (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
600
595
  x: t.startX,
601
596
  y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
602
597
  fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
603
598
  "font-size": e.value.style.chart.labels.startLabels.fontSize,
604
599
  "text-anchor": "middle"
605
- }, A(u(B)(
600
+ }, z(n(q)(
606
601
  e.value.style.chart.labels.formatter,
607
602
  t.start,
608
- u(z)({
603
+ n(S)({
609
604
  p: e.value.style.chart.labels.prefix,
610
605
  v: t.start,
611
606
  s: e.value.style.chart.labels.suffix,
612
607
  r: e.value.style.chart.labels.startLabels.rounding
613
608
  }),
614
609
  { datapoint: t, seriesIndex: a }
615
- )), 9, Vt))), 256))
610
+ )), 9, Ht))), 256))
616
611
  ])) : v("", !0),
617
- e.value.style.chart.labels.endLabels.show ? (o(), r("g", Et, [
618
- (o(!0), r(C, null, $(f.value, (t, a) => (o(), r("text", {
612
+ e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
613
+ (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
619
614
  x: t.endX,
620
615
  y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
621
616
  fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
622
617
  "font-size": e.value.style.chart.labels.endLabels.fontSize,
623
618
  "text-anchor": "middle"
624
- }, A(u(B)(
619
+ }, z(n(q)(
625
620
  e.value.style.chart.labels.formatter,
626
621
  t.end,
627
- u(z)({
622
+ n(S)({
628
623
  p: e.value.style.chart.labels.prefix,
629
624
  v: t.end,
630
625
  s: e.value.style.chart.labels.suffix,
631
626
  r: e.value.style.chart.labels.endLabels.rounding
632
627
  }),
633
628
  { datapoint: t, seriesIndex: a }
634
- )), 9, Rt))), 256))
629
+ )), 9, Ut))), 256))
635
630
  ])) : v("", !0),
636
- m(l.$slots, "svg", { svg: s.value }, void 0, !0)
637
- ], 14, nt)) : v("", !0),
638
- l.$slots.watermark ? (o(), r("div", Ht, [
639
- m(l.$slots, "watermark", V(E({ isPrinting: u(re) || u(ne) })), void 0, !0)
631
+ p(l.$slots, "svg", { svg: s.value }, void 0, !0)
632
+ ], 14, ct)) : v("", !0),
633
+ l.$slots.watermark ? (o(), r("div", Bt, [
634
+ p(l.$slots, "watermark", R(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
640
635
  ])) : v("", !0),
641
- S.value ? v("", !0) : (o(), L(Ke, {
636
+ X.value ? v("", !0) : (o(), A(n(Me), {
642
637
  key: 6,
643
638
  config: {
644
639
  type: "dumbbell",
@@ -652,19 +647,19 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
652
647
  }, null, 8, ["config"])),
653
648
  i("div", {
654
649
  ref_key: "chartLegend",
655
- ref: Y
650
+ ref: J
656
651
  }, [
657
- e.value.style.chart.legend.show && S.value ? (o(), L(Qe, {
658
- key: `legend_${ee.value}`,
659
- legendSet: ve.value,
660
- config: Ne.value
652
+ e.value.style.chart.legend.show && X.value ? (o(), A(rt, {
653
+ key: `legend_${le.value}`,
654
+ legendSet: ye.value,
655
+ config: Ve.value
661
656
  }, {
662
- item: _(({ legend: t }) => [
657
+ item: k(({ legend: t }) => [
663
658
  i("div", {
664
- style: F(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
659
+ style: E(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
665
660
  }, [
666
661
  (o(), r("svg", {
667
- xmlns: u(xe),
662
+ xmlns: n($e),
668
663
  viewBox: "0 0 20 20",
669
664
  height: e.value.style.chart.legend.fontSize,
670
665
  width: e.value.style.chart.legend.fontSize
@@ -674,30 +669,30 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
674
669
  cy: 10,
675
670
  r: 9,
676
671
  fill: t.color
677
- }, null, 8, Ut)
678
- ], 8, Wt)),
679
- me(" " + A(t.name), 1)
672
+ }, null, 8, qt)
673
+ ], 8, jt)),
674
+ _e(" " + z(t.name), 1)
680
675
  ], 4)
681
676
  ]),
682
677
  _: 1
683
- }, 8, ["legendSet", "config"])) : m(l.$slots, "legend", {
678
+ }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
684
679
  key: 1,
685
- legend: ve.value
680
+ legend: ye.value
686
681
  }, void 0, !0)
687
682
  ], 512),
688
683
  l.$slots.source ? (o(), r("div", {
689
684
  key: 7,
690
685
  ref_key: "source",
691
- ref: Z,
686
+ ref: K,
692
687
  dir: "auto"
693
688
  }, [
694
- m(l.$slots, "source", {}, void 0, !0)
689
+ p(l.$slots, "source", {}, void 0, !0)
695
690
  ], 512)) : v("", !0),
696
- S.value ? (o(), L(et, {
691
+ X.value ? (o(), A(n(Ne), {
697
692
  key: 8,
698
693
  hideDetails: "",
699
694
  config: {
700
- open: X.value.showTable,
695
+ open: P.value.showTable,
701
696
  maxHeight: 1e4,
702
697
  body: {
703
698
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -709,33 +704,33 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
709
704
  }
710
705
  }
711
706
  }, {
712
- content: _(() => [
713
- (o(), L(Je, {
714
- key: `table_${Q.value}`,
715
- colNames: G.value.colNames,
716
- head: G.value.head,
717
- body: G.value.body,
718
- config: G.value.config,
707
+ content: k(() => [
708
+ (o(), A(n(Te), {
709
+ key: `table_${te.value}`,
710
+ colNames: D.value.colNames,
711
+ head: D.value.head,
712
+ body: D.value.body,
713
+ config: D.value.config,
719
714
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
720
- onClose: n[0] || (n[0] = (t) => X.value.showTable = !1)
715
+ onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
721
716
  }, {
722
- th: _(({ th: t }) => [
717
+ th: k(({ th: t }) => [
723
718
  i("div", {
724
719
  innerHTML: t,
725
720
  style: { display: "flex", "align-items": "center" }
726
- }, null, 8, Bt)
721
+ }, null, 8, Yt)
727
722
  ]),
728
- td: _(({ td: t }) => [
729
- me(A(t.name || t), 1)
723
+ td: k(({ td: t }) => [
724
+ _e(z(t.name || t), 1)
730
725
  ]),
731
726
  _: 1
732
727
  }, 8, ["colNames", "head", "body", "config", "title"]))
733
728
  ]),
734
729
  _: 1
735
730
  }, 8, ["config"])) : v("", !0)
736
- ], 46, rt));
731
+ ], 46, it));
737
732
  }
738
- }, cl = /* @__PURE__ */ ot(jt, [["__scopeId", "data-v-39357753"]]);
733
+ }, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-42691b72"]]);
739
734
  export {
740
- cl as default
735
+ ul as default
741
736
  };