vue-data-ui 3.0.23 → 3.1.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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-nO6ydJO2.js +0 -133
  93. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  94. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  95. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  96. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  97. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  98. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  99. package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as I, computed as p, ref as v, toRefs as mt, watch as ce, shallowRef as Ee, onMounted as gt, onBeforeUnmount as Ge, watchEffect as xt, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as j, normalizeClass as W, createBlock as T, createCommentVNode as c, createVNode as Be, createSlots as kt, withCtx as b, renderSlot as y, normalizeProps as M, guardReactiveProps as F, createElementVNode as k, Fragment as m, renderList as C, toDisplayString as S, mergeProps as wt, createTextVNode as At, nextTick as Lt } from "vue";
2
- import { u as Ct, c as he, t as _t, a as $t, p as O, b as Tt, o as He, f as de, g as Ve, d as St, e as Ue, h as Ot, D as zt, i as Y, X as Pt, k as pe, I as Nt, ab as It, l as Mt, j as Ft, y as Xe, E as Dt, v as Rt, w as Wt, z as Et } from "./index-BEuUtONc.js";
3
- import { t as je, u as Gt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Bt, B as Ht } from "./useLoading-D7YHNtLX.js";
5
- import { u as Vt } from "./usePrinter-DiB0_UNt.js";
6
- import { u as Ye } from "./useNestedProp-DhLFhguL.js";
7
- import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as jt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import Yt from "./img-z5p1gGfY.js";
11
- import { _ as qt } from "./Shape-CYVs2kYz.js";
12
- import Jt from "./Title-D_e0SFWS.js";
13
- import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"], tl = { key: 1 }, ll = { key: 0 }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = { key: 1 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "fill", "font-size"], il = ["transform", "font-size", "fill", "text-anchor"], vl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], cl = ["fill", "font-size", "transform"], hl = ["fill", "font-size", "x", "y"], dl = ["x1", "x2", "y1", "y2", "stroke"], pl = ["cx", "cy", "fill"], fl = ["cx", "cy", "fill"], yl = ["id"], bl = ["stop-color"], ml = ["stop-color"], gl = ["stop-color"], xl = { key: 0 }, kl = ["x", "y", "font-size", "fill"], wl = {
1
+ import { defineAsyncComponent as L, computed as p, ref as v, toRefs as Lt, watch as q, shallowRef as He, onMounted as _t, onBeforeUnmount as Ue, watchEffect as $t, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as J, normalizeClass as E, createBlock as z, createCommentVNode as h, createVNode as fe, createSlots as Ve, withCtx as b, renderSlot as y, normalizeProps as I, guardReactiveProps as M, createElementVNode as m, Fragment as g, renderList as _, toDisplayString as $, mergeProps as Xe, resolveDynamicComponent as Tt, createTextVNode as je, nextTick as St } from "vue";
2
+ import { u as Ot, c as be, t as zt, a as Pt, p as P, b as Dt, o as Ye, f as ye, g as qe, d as Nt, e as Je, h as It, D as Mt, i as K, X as Ft, k as me, I as Rt, ab as Wt, l as Bt, j as Et, y as Ke, E as Gt, v as Ht, w as Ut, z as Vt } from "./index-CDQbCd41.js";
3
+ import { t as Qe, u as Xt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as jt, B as Yt } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as qt } from "./usePrinter-Bnl1YeUU.js";
6
+ import { u as Ze } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as Jt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Qt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import Zt from "./img-JOqdlnUs.js";
11
+ import { _ as el } from "./Shape-Dj2Hl33H.js";
12
+ import tl from "./Title-Dq2_Z9kR.js";
13
+ import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["x", "y", "width", "height"], rl = { key: 1 }, ul = { key: 0 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = { key: 1 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["x", "y", "fill", "font-size"], pl = ["transform", "font-size", "fill", "text-anchor"], fl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], bl = ["fill", "font-size", "transform"], yl = ["fill", "font-size", "x", "y"], ml = ["x1", "x2", "y1", "y2", "stroke"], gl = ["cx", "cy", "fill"], xl = ["cx", "cy", "fill"], kl = ["id"], wl = ["stop-color"], Cl = ["stop-color"], Al = ["stop-color"], Ll = { key: 0 }, _l = ["x", "y", "font-size", "fill"], $l = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Al = ["innerHTML"], Ll = {
17
+ }, Tl = ["innerHTML"], Sl = {
18
18
  __name: "vue-ui-strip-plot",
19
19
  props: {
20
20
  config: {
@@ -31,18 +31,18 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint"],
34
- setup(qe, { expose: Je, emit: Ke }) {
35
- const Qe = I(() => import("./Tooltip-DjVoFYj1.js")), Ze = I(() => import("./vue-ui-accordion-B4YfUjZ5.js")), et = I(() => import("./DataTable-nO6ydJO2.js")), tt = I(() => import("./UserOptions-z0NWZ7aQ.js")), lt = I(() => import("./PenAndPaper-zym5uEeN.js")), at = I(() => import("./PackageVersion-B6M-3jRt.js")), { vue_ui_strip_plot: ot } = Ct(), g = qe, st = Ke, E = p({
34
+ setup(et, { expose: tt, emit: lt }) {
35
+ const at = L(() => import("./Tooltip-Y219DXZO.js")), ot = L(() => import("./BaseIcon-DHtro8us.js")), st = L(() => import("./vue-ui-accordion-Bf_LHFFX.js")), rt = L(() => import("./DataTable-DJjA2_wf.js")), ut = L(() => import("./UserOptions-BuGfCdAY.js")), nt = L(() => import("./PenAndPaper-B7QEDgx4.js")), it = L(() => import("./PackageVersion-DU12WH3O.js")), vt = L(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_strip_plot: ct } = Ot(), x = et, ht = lt, G = p({
36
36
  get() {
37
- return !!g.dataset && g.dataset.length;
37
+ return !!x.dataset && x.dataset.length;
38
38
  },
39
39
  set(t) {
40
40
  return t;
41
41
  }
42
- }), q = v(he()), fe = v(0), J = v(!1), K = v(""), A = v(null), ye = v(null), be = v(null), me = v(null), ge = v(!1), xe = v(0), ke = v(0), Q = v(null), Z = v(null), G = v(null), ee = v(null), e = v(oe()), { loading: te, FINAL_DATASET: we, manualLoading: le } = Bt({
43
- ...mt(g),
42
+ }), Q = v(be()), ge = v(0), Z = v(!1), ee = v(""), w = v(null), xe = v(null), ke = v(null), we = v(null), Ce = v(!1), Ae = v(0), Le = v(0), F = v(null), te = v(null), le = v(null), H = v(null), ae = v(null), e = v(ue()), { loading: oe, FINAL_DATASET: _e, manualLoading: se } = jt({
43
+ ...Lt(x),
44
44
  FINAL_CONFIG: e,
45
- prepareConfig: oe,
45
+ prepareConfig: ue,
46
46
  skeletonDataset: [
47
47
  {
48
48
  name: "_",
@@ -90,7 +90,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
90
90
  ]
91
91
  }
92
92
  ],
93
- skeletonConfig: _t({
93
+ skeletonConfig: zt({
94
94
  defaultConfig: e.value,
95
95
  userConfig: {
96
96
  userOptions: { show: !1 },
@@ -129,253 +129,253 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
129
129
  }
130
130
  }
131
131
  })
132
- }), { userOptionsVisible: ae, setUserOptionsVisibility: Ae, keepUserOptionState: Le } = Ut({ config: e.value }), { svgRef: Ce } = Xt({ config: e.value.style.chart.title });
133
- function oe() {
134
- const t = Ye({
135
- userConfig: g.config,
136
- defaultConfig: ot
132
+ }), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Jt({ config: e.value }), { svgRef: Se } = Kt({ config: e.value.style.chart.title });
133
+ function ue() {
134
+ const t = Ze({
135
+ userConfig: x.config,
136
+ defaultConfig: ct
137
137
  });
138
138
  return t.theme ? {
139
- ...Ye({
140
- userConfig: Tt.vue_ui_strip_plot[t.theme] || g.config,
139
+ ...Ze({
140
+ userConfig: Dt.vue_ui_strip_plot[t.theme] || x.config,
141
141
  defaultConfig: t
142
142
  }),
143
- customPalette: $t[t.theme] || O
143
+ customPalette: Pt[t.theme] || P
144
144
  } : t;
145
145
  }
146
- ce(() => g.config, async (t) => {
147
- te.value || (e.value = oe()), ae.value = !e.value.userOptions.showOnChartHover, _e(), xe.value += 1, ke.value += 1, d.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show, _.value = e.value.style.chart.width, w.value = e.value.style.chart.height, R.value = e.value.style.chart.plots.radius;
148
- }, { deep: !0 }), ce(() => g.dataset, (t) => {
149
- Array.isArray(t) && t.length > 0 && (le.value = !1);
146
+ q(() => x.config, async (t) => {
147
+ oe.value || (e.value = ue()), re.value = !e.value.userOptions.showOnChartHover, Oe(), Ae.value += 1, Le.value += 1, c.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, c.value.showTable = e.value.table.show, c.value.showTooltip = e.value.style.chart.tooltip.show, T.value = e.value.style.chart.width, C.value = e.value.style.chart.height, W.value = e.value.style.chart.plots.radius;
148
+ }, { deep: !0 }), q(() => x.dataset, (t) => {
149
+ Array.isArray(t) && t.length > 0 && (se.value = !1);
150
150
  }, { deep: !0 });
151
- const L = Ee(null), z = Ee(null);
152
- gt(() => {
153
- _e();
151
+ const A = He(null), D = He(null);
152
+ _t(() => {
153
+ Oe();
154
154
  });
155
- const se = p(() => !!e.value.debug);
156
- function _e() {
157
- if (He(g.dataset) ? (de({
155
+ const ne = p(() => !!e.value.debug);
156
+ function Oe() {
157
+ if (Ye(x.dataset) ? (ye({
158
158
  componentName: "VueUiStripPlot",
159
159
  type: "dataset",
160
- debug: se.value
161
- }), le.value = !0) : g.dataset.forEach((t, a) => {
162
- Ve({
160
+ debug: ne.value
161
+ }), se.value = !0) : x.dataset.forEach((t, a) => {
162
+ qe({
163
163
  datasetObject: t,
164
164
  requiredAttributes: ["name", "plots"]
165
165
  }).forEach((l) => {
166
- E.value = !1, de({
166
+ G.value = !1, ye({
167
167
  componentName: "VueUiStripPlot",
168
168
  type: "datasetSerieAttribute",
169
169
  property: l,
170
170
  index: a,
171
- debug: se.value
171
+ debug: ne.value
172
172
  });
173
173
  }), t.plots && t.plots.forEach((l, s) => {
174
- Ve({
174
+ qe({
175
175
  datasetObject: l,
176
176
  requiredAttributes: ["name", "value"]
177
177
  }).forEach((u) => {
178
- E.value = !1, de({
178
+ G.value = !1, ye({
179
179
  componentName: "VueUiStripPlot",
180
180
  type: "datasetSerieAttribute",
181
181
  property: u,
182
182
  index: `${a},${s}`,
183
- debug: se.value
183
+ debug: ne.value
184
184
  });
185
185
  });
186
186
  });
187
- }), He(g.dataset) || (le.value = e.value.loading), e.value.responsive) {
188
- const t = je(() => {
189
- const { width: a, height: l } = Gt({
190
- chart: A.value,
191
- title: e.value.style.chart.title.text ? ye.value : null,
192
- source: be.value,
193
- noTitle: me.value
187
+ }), Ye(x.dataset) || (se.value = e.value.loading), e.value.responsive) {
188
+ const t = Qe(() => {
189
+ const { width: a, height: l } = Xt({
190
+ chart: w.value,
191
+ title: e.value.style.chart.title.text ? xe.value : null,
192
+ source: ke.value,
193
+ noTitle: we.value
194
194
  });
195
195
  requestAnimationFrame(() => {
196
- ut.value = l, _.value = Math.max(0.1, a), w.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? R.value = Dt({
196
+ pt.value = l, T.value = Math.max(0.1, a), C.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? W.value = Gt({
197
197
  relator: Math.min(l, a),
198
198
  adjuster: 600,
199
199
  source: e.value.style.chart.plots.radius,
200
200
  threshold: 6,
201
201
  fallback: 6
202
- }) : R.value = e.value.style.chart.plots.radius;
202
+ }) : W.value = e.value.style.chart.plots.radius;
203
203
  });
204
204
  });
205
- L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect()), L.value = new ResizeObserver(t), z.value = A.value.parentNode, L.value.observe(z.value);
205
+ A.value && (D.value && A.value.unobserve(D.value), A.value.disconnect()), A.value = new ResizeObserver(t), D.value = w.value.parentNode, A.value.observe(D.value);
206
206
  }
207
- ge.value = !0, setTimeout(() => {
208
- D.value = !1;
209
- }, vt.value * 50);
207
+ Ce.value = !0, setTimeout(() => {
208
+ R.value = !1;
209
+ }, yt.value * 50);
210
210
  }
211
- Ge(() => {
212
- L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect());
211
+ Ue(() => {
212
+ A.value && (D.value && A.value.unobserve(D.value), A.value.disconnect());
213
213
  });
214
- const { isPrinting: $e, isImaging: Te, generatePdf: Se, generateImage: Oe } = Vt({
215
- elementId: `strip-plot_${q.value}`,
214
+ const { isPrinting: ze, isImaging: Pe, generatePdf: De, generateImage: Ne } = qt({
215
+ elementId: `strip-plot_${Q.value}`,
216
216
  fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
217
217
  options: e.value.userOptions.print
218
- }), rt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = p(() => St(e.value.customPalette)), D = v(e.value.useCssAnimation), P = v({
218
+ }), dt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = p(() => Nt(e.value.customPalette)), R = v(e.value.useCssAnimation), N = v({
219
219
  top: e.value.style.chart.padding.top,
220
220
  bottom: e.value.style.chart.padding.bottom,
221
221
  left: e.value.style.chart.padding.left,
222
222
  right: e.value.style.chart.padding.right
223
- }), _ = v(e.value.style.chart.width), w = v(e.value.style.chart.height), ut = v(e.value.style.chart.height), R = v(e.value.style.chart.plots.radius), d = v({
223
+ }), T = v(e.value.style.chart.width), C = v(e.value.style.chart.height), pt = v(e.value.style.chart.height), W = v(e.value.style.chart.plots.radius), c = v({
224
224
  showTable: e.value.table.show,
225
225
  dataLabels: {
226
226
  show: e.value.style.chart.labels.bestPlotLabel.show
227
227
  },
228
228
  showTooltip: e.value.style.chart.tooltip.show
229
229
  });
230
- ce(e, () => {
231
- d.value = {
230
+ q(e, () => {
231
+ c.value = {
232
232
  showTable: e.value.table.show,
233
233
  dataLabels: {
234
234
  show: e.value.style.chart.labels.bestPlotLabel.show
235
235
  },
236
236
  showTooltip: e.value.style.chart.tooltip.show
237
- }, _.value = e.value.style.chart.width, w.value = e.value.style.chart.height, R.value = e.value.style.chart.plots.radius;
237
+ }, T.value = e.value.style.chart.width, C.value = e.value.style.chart.height, W.value = e.value.style.chart.plots.radius;
238
238
  }, { immediate: !0 });
239
- const re = p(() => Math.min(R.value, o.value.stripWidth / 2 * 0.9));
240
- function nt() {
239
+ const ie = p(() => Math.min(W.value, o.value.stripWidth / 2 * 0.9));
240
+ function ft() {
241
241
  let t = 0;
242
- ee.value && (t = Array.from(ee.value.querySelectorAll("text")).reduce((s, u) => {
242
+ ae.value && (t = Array.from(ae.value.querySelectorAll("text")).reduce((s, u) => {
243
243
  const f = u.getComputedTextLength();
244
244
  return f > s ? f : s;
245
245
  }, 0));
246
- const a = Z.value ? Z.value.getBoundingClientRect().width : 0;
246
+ const a = le.value ? le.value.getBoundingClientRect().width : 0;
247
247
  return t + a + (a ? 24 : 0);
248
248
  }
249
- const ue = v(0), it = je((t) => {
250
- ue.value = t;
249
+ const ve = v(0), bt = Qe((t) => {
250
+ ve.value = t;
251
251
  }, 100);
252
- xt((t) => {
253
- const a = G.value;
252
+ $t((t) => {
253
+ const a = H.value;
254
254
  if (!a) return;
255
255
  const l = new ResizeObserver((s) => {
256
- it(s[0].contentRect.height);
256
+ bt(s[0].contentRect.height);
257
257
  });
258
258
  l.observe(a), t(() => l.disconnect());
259
- }), Ge(() => {
260
- ue.value = 0;
259
+ }), Ue(() => {
260
+ ve.value = 0;
261
261
  });
262
- const Pe = p(() => {
262
+ const Me = p(() => {
263
263
  let t = 0;
264
- Q.value && (t = Q.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
264
+ te.value && (t = te.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
265
265
  let a = 0;
266
- return G.value && (a = ue.value + 12), t + a;
266
+ return H.value && (a = ve.value + 12), t + a;
267
267
  }), o = p(() => {
268
- const t = nt(), a = _.value - t - e.value.style.chart.padding.left - e.value.style.chart.padding.right - e.value.style.chart.labels.axis.yLabelOffsetX - 5;
268
+ const t = ft(), a = T.value - t - e.value.style.chart.padding.left - e.value.style.chart.padding.right - e.value.style.chart.labels.axis.yLabelOffsetX - 5;
269
269
  return {
270
- left: P.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5,
271
- right: _.value - P.value.right,
272
- top: P.value.top,
273
- bottom: w.value - P.value.bottom - Pe.value,
270
+ left: N.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5,
271
+ right: T.value - N.value.right,
272
+ top: N.value.top,
273
+ bottom: C.value - N.value.bottom - Me.value,
274
274
  width: a,
275
- height: w.value - P.value.top - P.value.bottom - Pe.value,
276
- stripWidth: a / we.value.length,
277
- absoluteHeight: w.value
275
+ height: C.value - N.value.top - N.value.bottom - Me.value,
276
+ stripWidth: a / _e.value.length,
277
+ absoluteHeight: C.value
278
278
  };
279
- }), B = p(() => we.value.map((t, a) => {
280
- const l = he();
279
+ }), U = p(() => _e.value.map((t, a) => {
280
+ const l = be();
281
281
  return {
282
282
  ...t,
283
283
  id: l,
284
- color: t.color ? Ue(t.color) : ze.value[a] || O[a] || O[a % O.length],
284
+ color: t.color ? Je(t.color) : Ie.value[a] || P[a] || P[a % P.length],
285
285
  plots: t.plots.map((s, u) => ({
286
286
  ...s,
287
- value: Ot(s.value),
287
+ value: It(s.value),
288
288
  parentId: l,
289
289
  parentName: t.name,
290
290
  parentIndex: a,
291
291
  plotIndex: u,
292
- color: t.color ? Ue(t.color) : ze.value[a] || O[a] || O[a % O.length],
293
- id: he()
292
+ color: t.color ? Je(t.color) : Ie.value[a] || P[a] || P[a % P.length],
293
+ id: be()
294
294
  })).sort((s, u) => s.value - u.value)
295
295
  };
296
- })), x = p(() => (B.value || []).map((t, a) => ({
296
+ })), k = p(() => (U.value || []).map((t, a) => ({
297
297
  ...t,
298
298
  plots: t.plots.map((l) => ({
299
299
  ...l,
300
300
  x: o.value.left + (a + 1) * o.value.stripWidth - o.value.stripWidth / 2
301
301
  }))
302
- }))), vt = p(() => Math.max(...x.value.map((t) => t.plots.length))), ne = p(() => {
303
- const t = x.value.flatMap((a) => a.plots.map((l) => l.value));
302
+ }))), yt = p(() => Math.max(...k.value.map((t) => t.plots.length))), ce = p(() => {
303
+ const t = k.value.flatMap((a) => a.plots.map((l) => l.value));
304
304
  return {
305
305
  max: Math.max(...t),
306
306
  min: Math.min(...t)
307
307
  };
308
- }), $ = p(() => zt(ne.value.min < 0 ? ne.value.min : 0, ne.value.max, e.value.style.chart.grid.scaleSteps)), ct = p(() => (x.value || []).map((t, a) => ({
308
+ }), S = p(() => Mt(ce.value.min < 0 ? ce.value.min : 0, ce.value.max, e.value.style.chart.grid.scaleSteps)), mt = p(() => (k.value || []).map((t, a) => ({
309
309
  ...t,
310
310
  plots: t.plots.map((l) => ({
311
311
  ...l,
312
- y: o.value.bottom - (l.value + Math.abs($.value.min)) / ($.value.max + Math.abs($.value.min)) * o.value.height
312
+ y: o.value.bottom - (l.value + Math.abs(S.value.min)) / (S.value.max + Math.abs(S.value.min)) * o.value.height
313
313
  }))
314
- }))), Ne = p(() => $.value.ticks.map((t) => ({
315
- y: o.value.bottom - o.value.height * ((t + Math.abs($.value.min)) / ($.value.max + Math.abs($.value.min))),
314
+ }))), Fe = p(() => S.value.ticks.map((t) => ({
315
+ y: o.value.bottom - o.value.height * ((t + Math.abs(S.value.min)) / (S.value.max + Math.abs(S.value.min))),
316
316
  x1: o.value.left,
317
317
  x2: o.value.right,
318
318
  value: t
319
- }))), ie = v(null), h = v(null);
320
- function ht({ datapoint: t, seriesIndex: a }) {
321
- J.value = !1, h.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
319
+ }))), he = v(null), d = v(null);
320
+ function gt({ datapoint: t, seriesIndex: a }) {
321
+ Z.value = !1, d.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
322
322
  }
323
- function dt({ datapoint: t, seriesIndex: a }) {
324
- st("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
323
+ function xt({ datapoint: t, seriesIndex: a }) {
324
+ ht("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
325
325
  }
326
- function pt({ datapoint: t, seriesIndex: a }) {
327
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ie.value = { datapoint: t, seriesIndex: a, config: e.value, series: B.value }, J.value = !0, h.value = t;
326
+ function kt({ datapoint: t, seriesIndex: a }) {
327
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), he.value = { datapoint: t, seriesIndex: a, config: e.value, series: U.value }, Z.value = !0, d.value = t;
328
328
  const l = e.value.style.chart.tooltip.customFormat;
329
- if (Xe(l) && Et(() => l({
329
+ if (Ke(l) && Vt(() => l({
330
330
  seriesIndex: a,
331
331
  datapoint: t,
332
- series: B.value,
332
+ series: U.value,
333
333
  config: e.value
334
334
  })))
335
- K.value = l({
335
+ ee.value = l({
336
336
  seriesIndex: a,
337
337
  datapoint: t,
338
- series: B.value,
338
+ series: U.value,
339
339
  config: e.value
340
340
  });
341
341
  else {
342
342
  let s = "";
343
- s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${pe(
343
+ s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${me(
344
344
  e.value.style.chart.labels.formatter,
345
345
  t.value,
346
- Y({
346
+ K({
347
347
  p: e.value.style.chart.labels.prefix,
348
348
  v: t.value,
349
349
  s: e.value.style.chart.labels.suffix,
350
350
  r: e.value.style.chart.tooltip.roundingValue
351
351
  }),
352
352
  { datapoint: t, seriesIndex: a }
353
- )}</div>`, K.value = `<div>${s}</div>`;
353
+ )}</div>`, ee.value = `<div>${s}</div>`;
354
354
  }
355
355
  }
356
- const H = p(() => {
357
- const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => ({
356
+ const V = p(() => {
357
+ const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => ({
358
358
  name: `${l.name} - ${s.name}`,
359
359
  color: s.color
360
- }))), a = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => s.value));
360
+ }))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => s.value));
361
361
  return { head: t, body: a };
362
362
  });
363
- function Ie(t = null) {
364
- Lt(() => {
365
- const a = H.value.head.map((u, f) => [[
363
+ function de(t = null) {
364
+ St(() => {
365
+ const a = V.value.head.map((u, f) => [[
366
366
  u.name
367
- ], [H.value.body[f]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), s = Rt(l);
368
- t ? t(s) : Wt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
367
+ ], [V.value.body[f]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), s = Ht(l);
368
+ t ? t(s) : Ut({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
369
369
  });
370
370
  }
371
- const V = p(() => {
371
+ const X = p(() => {
372
372
  const t = [
373
373
  e.value.table.columnNames.series,
374
374
  e.value.table.columnNames.value
375
- ], a = H.value.head.map((u, f) => {
376
- const X = Y({
375
+ ], a = V.value.head.map((u, f) => {
376
+ const Y = K({
377
377
  p: e.value.style.chart.labels.prefix,
378
- v: H.value.body[f],
378
+ v: V.value.body[f],
379
379
  s: e.value.style.chart.labels.suffix,
380
380
  r: e.value.table.td.roundingValue
381
381
  });
@@ -384,7 +384,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
384
384
  color: u.color,
385
385
  name: u.name
386
386
  },
387
- X
387
+ Y
388
388
  ];
389
389
  }), l = {
390
390
  th: {
@@ -408,29 +408,29 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
408
408
  body: a,
409
409
  config: l
410
410
  };
411
- }), N = v(!1);
412
- function Me(t) {
413
- N.value = t, fe.value += 1;
411
+ }), O = v(!1);
412
+ function Re(t) {
413
+ O.value = t, ge.value += 1;
414
414
  }
415
- function ft() {
416
- return x.value;
415
+ function wt() {
416
+ return k.value;
417
417
  }
418
- function Fe() {
419
- d.value.showTable = !d.value.showTable;
418
+ function We() {
419
+ c.value.showTable = !c.value.showTable;
420
420
  }
421
- function De() {
422
- d.value.dataLabels.show = !d.value.dataLabels.show;
421
+ function Be() {
422
+ c.value.dataLabels.show = !c.value.dataLabels.show;
423
423
  }
424
- function Re() {
425
- d.value.showTooltip = !d.value.showTooltip;
424
+ function Ee() {
425
+ c.value.showTooltip = !c.value.showTooltip;
426
426
  }
427
- const U = v(!1);
428
- function ve() {
429
- U.value = !U.value;
427
+ const j = v(!1);
428
+ function pe() {
429
+ j.value = !j.value;
430
430
  }
431
- async function yt({ scale: t = 2 } = {}) {
432
- if (!A.value) return;
433
- const { width: a, height: l } = A.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: f } = await Yt({ domElement: A.value, base64: !0, img: !0, scale: t });
431
+ async function Ct({ scale: t = 2 } = {}) {
432
+ if (!w.value) return;
433
+ const { width: a, height: l } = w.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: f } = await Zt({ domElement: w.value, base64: !0, img: !0, scale: t });
434
434
  return {
435
435
  imageUri: u,
436
436
  base64: f,
@@ -440,62 +440,95 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
440
440
  aspectRatio: s
441
441
  };
442
442
  }
443
- const We = p(() => x.value.map((t) => t.name)), bt = v({ start: 0, end: x.value.length });
444
- return jt({
445
- timeLabelsEls: G,
446
- timeLabels: We,
447
- slicer: bt,
443
+ const Ge = p(() => k.value.map((t) => t.name)), At = v({ start: 0, end: k.value.length });
444
+ Qt({
445
+ timeLabelsEls: H,
446
+ timeLabels: Ge,
447
+ slicer: At,
448
448
  configRef: e,
449
449
  rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
450
450
  autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
451
451
  isAutoSize: !1,
452
- width: _,
453
- height: w,
452
+ width: T,
453
+ height: C,
454
454
  targetClass: ".vue-ui-strip-plot-category-name",
455
455
  rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
456
- }), Je({
457
- getData: ft,
458
- getImage: yt,
459
- generatePdf: Se,
460
- generateCsv: Ie,
461
- generateImage: Oe,
462
- toggleTable: Fe,
463
- toggleLabels: De,
464
- toggleTooltip: Re,
465
- toggleAnnotator: ve,
466
- toggleFullscreen: Me
456
+ });
457
+ const B = p(() => {
458
+ const t = e.value.table.useDialog && !e.value.table.show, a = c.value.showTable;
459
+ return {
460
+ component: t ? vt : st,
461
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
462
+ props: t ? {
463
+ backgroundColor: e.value.table.th.backgroundColor,
464
+ color: e.value.table.th.color,
465
+ headerColor: e.value.table.th.color,
466
+ headerBg: e.value.table.th.backgroundColor,
467
+ isFullscreen: O.value,
468
+ fullscreenParent: w.value,
469
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
470
+ } : {
471
+ hideDetails: !0,
472
+ config: {
473
+ open: a,
474
+ maxHeight: 1e4,
475
+ body: {
476
+ backgroundColor: e.value.style.chart.backgroundColor,
477
+ color: e.value.style.chart.color
478
+ },
479
+ head: {
480
+ backgroundColor: e.value.style.chart.backgroundColor,
481
+ color: e.value.style.chart.color
482
+ }
483
+ }
484
+ }
485
+ };
486
+ });
487
+ return q(() => c.value.showTable, (t) => {
488
+ e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
489
+ }), tt({
490
+ getData: wt,
491
+ getImage: Ct,
492
+ generatePdf: De,
493
+ generateCsv: de,
494
+ generateImage: Ne,
495
+ toggleTable: We,
496
+ toggleLabels: Be,
497
+ toggleTooltip: Ee,
498
+ toggleAnnotator: pe,
499
+ toggleFullscreen: Re
467
500
  }), (t, a) => (r(), n("div", {
468
501
  ref_key: "stripPlotChart",
469
- ref: A,
470
- class: W(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
471
- style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
472
- id: `strip-plot_${q.value}`,
473
- onMouseenter: a[1] || (a[1] = () => i(Ae)(!0)),
474
- onMouseleave: a[2] || (a[2] = () => i(Ae)(!1))
502
+ ref: w,
503
+ class: E(`vue-ui-strip-plot ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
504
+ style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
505
+ id: `strip-plot_${Q.value}`,
506
+ onMouseenter: a[3] || (a[3] = () => i($e)(!0)),
507
+ onMouseleave: a[4] || (a[4] = () => i($e)(!1))
475
508
  }, [
476
- e.value.userOptions.buttons.annotator ? (r(), T(i(lt), {
509
+ e.value.userOptions.buttons.annotator ? (r(), z(i(nt), {
477
510
  key: 0,
478
- svgRef: i(Ce),
511
+ svgRef: i(Se),
479
512
  backgroundColor: e.value.style.chart.backgroundColor,
480
513
  color: e.value.style.chart.color,
481
- active: U.value,
482
- onClose: ve
483
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
484
- rt.value ? (r(), n("div", {
514
+ active: j.value,
515
+ onClose: pe
516
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
517
+ dt.value ? (r(), n("div", {
485
518
  key: 1,
486
519
  ref_key: "noTitle",
487
- ref: me,
520
+ ref: we,
488
521
  class: "vue-data-ui-no-title-space",
489
522
  style: "height:36px; width: 100%;background:transparent"
490
- }, null, 512)) : c("", !0),
523
+ }, null, 512)) : h("", !0),
491
524
  e.value.style.chart.title.text ? (r(), n("div", {
492
525
  key: 2,
493
526
  ref_key: "chartTitle",
494
- ref: ye,
527
+ ref: xe,
495
528
  style: "width:100%;background:transparent;padding-bottom:24px"
496
529
  }, [
497
- (r(), T(Jt, {
498
- key: `title_${xe.value}`,
530
+ (r(), z(tl, {
531
+ key: `title_${Ae.value}`,
499
532
  config: {
500
533
  title: {
501
534
  cy: "donut-div-title",
@@ -507,15 +540,15 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
507
540
  }
508
541
  }
509
542
  }, null, 8, ["config"]))
510
- ], 512)) : c("", !0),
511
- e.value.userOptions.show && E.value && (i(Le) || i(ae)) ? (r(), T(i(tt), {
543
+ ], 512)) : h("", !0),
544
+ e.value.userOptions.show && G.value && (i(Te) || i(re)) ? (r(), z(i(ut), {
512
545
  ref: "details",
513
- key: `user_option_${fe.value}`,
546
+ key: `user_option_${ge.value}`,
514
547
  backgroundColor: e.value.style.chart.backgroundColor,
515
548
  color: e.value.style.chart.color,
516
- isPrinting: i($e),
517
- isImaging: i(Te),
518
- uid: q.value,
549
+ isPrinting: i(ze),
550
+ isImaging: i(Pe),
551
+ uid: Q.value,
519
552
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
520
553
  hasPdf: e.value.userOptions.buttons.pdf,
521
554
  hasXls: e.value.userOptions.buttons.csv,
@@ -523,31 +556,31 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
523
556
  hasTable: e.value.userOptions.buttons.table,
524
557
  hasLabel: e.value.userOptions.buttons.labels,
525
558
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
526
- isTooltip: d.value.showTooltip,
527
- isFullscreen: N.value,
559
+ isTooltip: c.value.showTooltip,
560
+ isFullscreen: O.value,
528
561
  titles: { ...e.value.userOptions.buttonTitles },
529
- chartElement: A.value,
562
+ chartElement: w.value,
530
563
  position: e.value.userOptions.position,
531
564
  hasAnnotator: e.value.userOptions.buttons.annotator,
532
- isAnnotation: U.value,
565
+ isAnnotation: j.value,
533
566
  callbacks: e.value.userOptions.callbacks,
534
567
  printScale: e.value.userOptions.print.scale,
535
- onToggleFullscreen: Me,
536
- onGeneratePdf: i(Se),
537
- onGenerateCsv: Ie,
538
- onGenerateImage: i(Oe),
539
- onToggleTable: Fe,
540
- onToggleLabels: De,
541
- onToggleTooltip: Re,
542
- onToggleAnnotator: ve,
543
- style: j({
544
- visibility: i(Le) ? i(ae) ? "visible" : "hidden" : "visible"
568
+ onToggleFullscreen: Re,
569
+ onGeneratePdf: i(De),
570
+ onGenerateCsv: de,
571
+ onGenerateImage: i(Ne),
572
+ onToggleTable: We,
573
+ onToggleLabels: Be,
574
+ onToggleTooltip: Ee,
575
+ onToggleAnnotator: pe,
576
+ style: J({
577
+ visibility: i(Te) ? i(re) ? "visible" : "hidden" : "visible"
545
578
  })
546
- }, kt({ _: 2 }, [
579
+ }, Ve({ _: 2 }, [
547
580
  t.$slots.menuIcon ? {
548
581
  name: "menuIcon",
549
582
  fn: b(({ isOpen: l, color: s }) => [
550
- y(t.$slots, "menuIcon", M(F({ isOpen: l, color: s })), void 0, !0)
583
+ y(t.$slots, "menuIcon", I(M({ isOpen: l, color: s })), void 0, !0)
551
584
  ]),
552
585
  key: "0"
553
586
  } : void 0,
@@ -596,27 +629,27 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
596
629
  t.$slots.optionFullscreen ? {
597
630
  name: "optionFullscreen",
598
631
  fn: b(({ toggleFullscreen: l, isFullscreen: s }) => [
599
- y(t.$slots, "optionFullscreen", M(F({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
632
+ y(t.$slots, "optionFullscreen", I(M({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
600
633
  ]),
601
634
  key: "7"
602
635
  } : void 0,
603
636
  t.$slots.optionAnnotator ? {
604
637
  name: "optionAnnotator",
605
638
  fn: b(({ toggleAnnotator: l, isAnnotator: s }) => [
606
- y(t.$slots, "optionAnnotator", M(F({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
639
+ y(t.$slots, "optionAnnotator", I(M({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
607
640
  ]),
608
641
  key: "8"
609
642
  } : void 0
610
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
643
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
611
644
  (r(), n("svg", {
612
645
  ref_key: "svgRef",
613
- ref: Ce,
614
- xmlns: i(Pt),
615
- class: W({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
616
- viewBox: `0 0 ${_.value} ${w.value}`,
617
- style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
646
+ ref: Se,
647
+ xmlns: i(Ft),
648
+ class: E({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
649
+ viewBox: `0 0 ${T.value} ${C.value}`,
650
+ style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
618
651
  }, [
619
- Be(i(at)),
652
+ fe(i(it)),
620
653
  t.$slots["chart-background"] ? (r(), n("foreignObject", {
621
654
  key: 0,
622
655
  x: o.value.left,
@@ -628,10 +661,10 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
628
661
  }
629
662
  }, [
630
663
  y(t.$slots, "chart-background", {}, void 0, !0)
631
- ], 8, el)) : c("", !0),
632
- e.value.style.chart.grid.show ? (r(), n("g", tl, [
633
- e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g", ll, [
634
- (r(!0), n(m, null, C(Ne.value, (l) => (r(), n("line", {
664
+ ], 8, sl)) : h("", !0),
665
+ e.value.style.chart.grid.show ? (r(), n("g", rl, [
666
+ e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g", ul, [
667
+ (r(!0), n(g, null, _(Fe.value, (l) => (r(), n("line", {
635
668
  x1: l.x1,
636
669
  x2: l.x2,
637
670
  y1: l.y,
@@ -640,10 +673,10 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
640
673
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
641
674
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
642
675
  "stroke-linecap": "round"
643
- }, null, 8, al))), 256))
644
- ])) : c("", !0),
645
- e.value.style.chart.grid.verticalGrid.show ? (r(), n("g", ol, [
646
- (r(!0), n(m, null, C(x.value, (l, s) => (r(), n("line", {
676
+ }, null, 8, nl))), 256))
677
+ ])) : h("", !0),
678
+ e.value.style.chart.grid.verticalGrid.show ? (r(), n("g", il, [
679
+ (r(!0), n(g, null, _(k.value, (l, s) => (r(), n("line", {
647
680
  x1: o.value.left + (s + 1) * o.value.stripWidth,
648
681
  x2: o.value.left + (s + 1) * o.value.stripWidth,
649
682
  y1: o.value.top,
@@ -652,9 +685,9 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
652
685
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
653
686
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
654
687
  "stroke-linecap": "round"
655
- }, null, 8, sl))), 256))
656
- ])) : c("", !0),
657
- k("line", {
688
+ }, null, 8, vl))), 256))
689
+ ])) : h("", !0),
690
+ m("line", {
658
691
  x1: o.value.left,
659
692
  x2: o.value.left,
660
693
  y1: o.value.top,
@@ -662,8 +695,8 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
662
695
  stroke: e.value.style.chart.grid.stroke,
663
696
  "stroke-width": e.value.style.chart.grid.strokeWidth,
664
697
  "stroke-linecap": "round"
665
- }, null, 8, rl),
666
- k("line", {
698
+ }, null, 8, cl),
699
+ m("line", {
667
700
  x1: o.value.left,
668
701
  x2: o.value.right,
669
702
  y1: o.value.bottom,
@@ -671,37 +704,37 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
671
704
  stroke: e.value.style.chart.grid.stroke,
672
705
  "stroke-width": e.value.style.chart.grid.strokeWidth,
673
706
  "stroke-linecap": "round"
674
- }, null, 8, ul)
675
- ])) : c("", !0),
707
+ }, null, 8, hl)
708
+ ])) : h("", !0),
676
709
  e.value.style.chart.labels.yAxisLabels.show ? (r(), n("g", {
677
710
  key: 2,
678
711
  ref_key: "scaleLabels",
679
- ref: ee
712
+ ref: ae
680
713
  }, [
681
- (r(!0), n(m, null, C(Ne.value, (l, s) => (r(), n("text", {
714
+ (r(!0), n(g, null, _(Fe.value, (l, s) => (r(), n("text", {
682
715
  x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
683
716
  y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
684
717
  fill: e.value.style.chart.labels.yAxisLabels.color,
685
718
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
686
719
  "text-anchor": "end"
687
- }, S(i(pe)(
720
+ }, $(i(me)(
688
721
  e.value.style.chart.labels.formatter,
689
722
  l.value,
690
- i(Y)({
723
+ i(K)({
691
724
  p: e.value.style.chart.labels.prefix,
692
725
  v: l.value,
693
726
  s: e.value.style.chart.labels.suffix,
694
727
  r: e.value.style.chart.labels.yAxisLabels.rounding
695
728
  }),
696
729
  { datapoint: l, seriesIndex: s }
697
- )), 9, nl))), 256))
698
- ], 512)) : c("", !0),
730
+ )), 9, dl))), 256))
731
+ ], 512)) : h("", !0),
699
732
  e.value.style.chart.labels.xAxisLabels.show ? (r(), n("g", {
700
733
  key: 3,
701
734
  ref_key: "timeLabelsEls",
702
- ref: G
735
+ ref: H
703
736
  }, [
704
- (r(!0), n(m, null, C(We.value, (l, s) => (r(), n("g", null, [
737
+ (r(!0), n(g, null, _(Ge.value, (l, s) => (r(), n("g", null, [
705
738
  String(l).includes(`
706
739
  `) ? (r(), n("text", {
707
740
  key: 1,
@@ -710,139 +743,139 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
710
743
  "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
711
744
  fill: e.value.style.chart.labels.xAxisLabels.color,
712
745
  "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
713
- innerHTML: i(Nt)({
714
- content: i(It)(String(l)),
746
+ innerHTML: i(Rt)({
747
+ content: i(Wt)(String(l)),
715
748
  fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
716
749
  fill: e.value.style.chart.labels.xAxisLabels.color,
717
750
  x: 0,
718
751
  y: 0
719
752
  })
720
- }, null, 8, vl)) : (r(), n("text", {
753
+ }, null, 8, fl)) : (r(), n("text", {
721
754
  key: 0,
722
755
  class: "vue-ui-strip-plot-category-name",
723
756
  transform: `translate(${o.value.left + (s + 1) * o.value.stripWidth - o.value.stripWidth / 2}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
724
757
  "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
725
758
  fill: e.value.style.chart.labels.xAxisLabels.color,
726
759
  "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
727
- }, S(String(l)), 9, il))
760
+ }, $(String(l)), 9, pl))
728
761
  ]))), 256))
729
- ], 512)) : c("", !0),
762
+ ], 512)) : h("", !0),
730
763
  e.value.style.chart.labels.axis.yLabel ? (r(), n("text", {
731
764
  key: 4,
732
765
  ref_key: "yAxisLabel",
733
- ref: Z,
766
+ ref: le,
734
767
  fill: e.value.style.chart.labels.axis.color,
735
768
  "font-size": e.value.style.chart.labels.axis.fontSize,
736
769
  transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
737
770
  "text-anchor": "middle"
738
- }, S(e.value.style.chart.labels.axis.yLabel), 9, cl)) : c("", !0),
771
+ }, $(e.value.style.chart.labels.axis.yLabel), 9, bl)) : h("", !0),
739
772
  e.value.style.chart.labels.axis.xLabel ? (r(), n("text", {
740
773
  key: 5,
741
774
  ref_key: "xAxisLabel",
742
- ref: Q,
775
+ ref: te,
743
776
  fill: e.value.style.chart.labels.axis.color,
744
777
  "font-size": e.value.style.chart.labels.axis.fontSize,
745
778
  x: o.value.left + o.value.width / 2,
746
- y: w.value - e.value.style.chart.labels.axis.fontSize / 3,
779
+ y: C.value - e.value.style.chart.labels.axis.fontSize / 3,
747
780
  "text-anchor": "middle"
748
- }, S(e.value.style.chart.labels.axis.xLabel), 9, hl)) : c("", !0),
749
- h.value ? (r(), n(m, { key: 6 }, [
750
- k("line", {
781
+ }, $(e.value.style.chart.labels.axis.xLabel), 9, yl)) : h("", !0),
782
+ d.value ? (r(), n(g, { key: 6 }, [
783
+ m("line", {
751
784
  x1: o.value.left,
752
785
  x2: o.value.right,
753
- y1: h.value.y,
754
- y2: h.value.y,
755
- stroke: h.value.color,
786
+ y1: d.value.y,
787
+ y2: d.value.y,
788
+ stroke: d.value.color,
756
789
  "stroke-width": 1,
757
- class: W({ "select-circle": e.value.useCssAnimation })
758
- }, null, 10, dl),
759
- k("circle", {
790
+ class: E({ "select-circle": e.value.useCssAnimation })
791
+ }, null, 10, ml),
792
+ m("circle", {
760
793
  cx: o.value.left,
761
- cy: h.value.y,
794
+ cy: d.value.y,
762
795
  r: 3,
763
- fill: h.value.color,
764
- class: W({ "select-circle": e.value.useCssAnimation })
765
- }, null, 10, pl),
766
- k("circle", {
796
+ fill: d.value.color,
797
+ class: E({ "select-circle": e.value.useCssAnimation })
798
+ }, null, 10, gl),
799
+ m("circle", {
767
800
  cx: o.value.right,
768
- cy: h.value.y,
801
+ cy: d.value.y,
769
802
  r: 3,
770
- fill: h.value.color,
771
- class: W({ "select-circle": e.value.useCssAnimation })
772
- }, null, 10, fl)
773
- ], 64)) : c("", !0),
774
- k("defs", null, [
775
- (r(!0), n(m, null, C(x.value, (l) => (r(), n("radialGradient", {
803
+ fill: d.value.color,
804
+ class: E({ "select-circle": e.value.useCssAnimation })
805
+ }, null, 10, xl)
806
+ ], 64)) : h("", !0),
807
+ m("defs", null, [
808
+ (r(!0), n(g, null, _(k.value, (l) => (r(), n("radialGradient", {
776
809
  id: l.id,
777
810
  fy: "30%"
778
811
  }, [
779
- k("stop", {
812
+ m("stop", {
780
813
  offset: "10%",
781
- "stop-color": i(Mt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
782
- }, null, 8, bl),
783
- k("stop", {
814
+ "stop-color": i(Bt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
815
+ }, null, 8, wl),
816
+ m("stop", {
784
817
  offset: "90%",
785
- "stop-color": i(Ft)(l.color, 0.1)
786
- }, null, 8, ml),
787
- k("stop", {
818
+ "stop-color": i(Et)(l.color, 0.1)
819
+ }, null, 8, Cl),
820
+ m("stop", {
788
821
  offset: "100%",
789
822
  "stop-color": l.color
790
- }, null, 8, gl)
791
- ], 8, yl))), 256))
823
+ }, null, 8, Al)
824
+ ], 8, kl))), 256))
792
825
  ]),
793
- (r(!0), n(m, null, C(ct.value, (l, s) => (r(), n(m, null, [
794
- (r(!0), n(m, null, C(l.plots, (u, f) => (r(), T(qt, wt({ ref_for: !0 }, t.$attrs, {
795
- plot: { x: u.x, y: ge.value ? u.y : o.value.top },
796
- radius: h.value && h.value.id === u.id ? re.value * 1.5 : re.value,
826
+ (r(!0), n(g, null, _(mt.value, (l, s) => (r(), n(g, null, [
827
+ (r(!0), n(g, null, _(l.plots, (u, f) => (r(), z(el, Xe({ ref_for: !0 }, t.$attrs, {
828
+ plot: { x: u.x, y: Ce.value ? u.y : o.value.top },
829
+ radius: d.value && d.value.id === u.id ? ie.value * 1.5 : ie.value,
797
830
  shape: e.value.style.chart.plots.shape,
798
831
  stroke: e.value.style.chart.plots.stroke,
799
832
  strokeWidth: e.value.style.chart.plots.strokeWidth,
800
833
  color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
801
- style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${D.value ? `transition-delay:${f * 50}ms` : ""}`,
802
- class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && D.value && !i(te), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !D.value },
803
- onMouseenter: (X) => pt({ datapoint: u, seriesIndex: f }),
804
- onMouseleave: (X) => ht({ datapoint: u, seriesIndex: f }),
805
- onClick: (X) => dt({ datapoint: u, seriesIndex: f })
834
+ style: `transition: all 0.2s ease-in-out; opacity:${d.value ? d.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${R.value ? `transition-delay:${f * 50}ms` : ""}`,
835
+ class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && R.value && !i(oe), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !R.value },
836
+ onMouseenter: (Y) => kt({ datapoint: u, seriesIndex: f }),
837
+ onMouseleave: (Y) => gt({ datapoint: u, seriesIndex: f }),
838
+ onClick: (Y) => xt({ datapoint: u, seriesIndex: f })
806
839
  }), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
807
- d.value.dataLabels.show ? (r(), n("g", xl, [
808
- (r(!0), n(m, null, C(l.plots, (u, f) => (r(), n(m, null, [
809
- f === l.plots.length - 1 || h.value && h.value.id === u.id && !d.value.showTooltip ? (r(), n("text", {
840
+ c.value.dataLabels.show ? (r(), n("g", Ll, [
841
+ (r(!0), n(g, null, _(l.plots, (u, f) => (r(), n(g, null, [
842
+ f === l.plots.length - 1 || d.value && d.value.id === u.id && !c.value.showTooltip ? (r(), n("text", {
810
843
  key: 0,
811
844
  x: u.x,
812
- y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - re.value * (h.value && h.value.id === u.id && !d.value.showTooltip ? 2 : 1.5),
845
+ y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - ie.value * (d.value && d.value.id === u.id && !c.value.showTooltip ? 2 : 1.5),
813
846
  "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
814
847
  fill: e.value.style.chart.labels.bestPlotLabel.color,
815
848
  "text-anchor": "middle",
816
- style: j(`opacity:${e.value.useCssAnimation && D.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
817
- }, S(u.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? i(pe)(
849
+ style: J(`opacity:${e.value.useCssAnimation && R.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
850
+ }, $(u.name) + " " + $(e.value.style.chart.labels.bestPlotLabel.showValue ? i(me)(
818
851
  e.value.style.chart.labels.formatter,
819
852
  u.value,
820
- i(Y)({
853
+ i(K)({
821
854
  p: `(${e.value.style.chart.labels.prefix}`,
822
855
  v: u.value,
823
856
  s: `${e.value.style.chart.labels.suffix})`,
824
857
  r: e.value.style.chart.labels.bestPlotLabel.rounding
825
858
  }),
826
859
  { datapoint: u, seriesIndex: f }
827
- ) : ""), 13, kl)) : c("", !0)
860
+ ) : ""), 13, _l)) : h("", !0)
828
861
  ], 64))), 256))
829
- ])) : c("", !0)
862
+ ])) : h("", !0)
830
863
  ], 64))), 256)),
831
864
  y(t.$slots, "svg", { svg: o.value }, void 0, !0)
832
- ], 14, Zt)),
833
- t.$slots.watermark ? (r(), n("div", wl, [
834
- y(t.$slots, "watermark", M(F({ isPrinting: i($e) || i(Te) })), void 0, !0)
835
- ])) : c("", !0),
865
+ ], 14, ol)),
866
+ t.$slots.watermark ? (r(), n("div", $l, [
867
+ y(t.$slots, "watermark", I(M({ isPrinting: i(ze) || i(Pe) })), void 0, !0)
868
+ ])) : h("", !0),
836
869
  t.$slots.source ? (r(), n("div", {
837
870
  key: 5,
838
871
  ref_key: "source",
839
- ref: be,
872
+ ref: ke,
840
873
  dir: "auto"
841
874
  }, [
842
875
  y(t.$slots, "source", {}, void 0, !0)
843
- ], 512)) : c("", !0),
844
- Be(i(Qe), {
845
- show: d.value.showTooltip && J.value,
876
+ ], 512)) : h("", !0),
877
+ fe(i(at), {
878
+ show: c.value.showTooltip && Z.value,
846
879
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
847
880
  color: e.value.style.chart.tooltip.color,
848
881
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -852,65 +885,79 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
852
885
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
853
886
  position: e.value.style.chart.tooltip.position,
854
887
  offsetY: e.value.style.chart.tooltip.offsetY,
855
- parent: A.value,
856
- content: K.value,
857
- isFullscreen: N.value,
858
- isCustom: i(Xe)(e.value.style.chart.tooltip.customFormat),
888
+ parent: w.value,
889
+ content: ee.value,
890
+ isFullscreen: O.value,
891
+ isCustom: i(Ke)(e.value.style.chart.tooltip.customFormat),
859
892
  smooth: e.value.style.chart.tooltip.smooth,
860
893
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
861
894
  }, {
862
895
  "tooltip-before": b(() => [
863
- y(t.$slots, "tooltip-before", M(F({ ...ie.value })), void 0, !0)
896
+ y(t.$slots, "tooltip-before", I(M({ ...he.value })), void 0, !0)
864
897
  ]),
865
898
  "tooltip-after": b(() => [
866
- y(t.$slots, "tooltip-after", M(F({ ...ie.value })), void 0, !0)
899
+ y(t.$slots, "tooltip-after", I(M({ ...he.value })), void 0, !0)
867
900
  ]),
868
901
  _: 3
869
902
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
870
- E.value ? (r(), T(i(Ze), {
871
- key: 6,
872
- hideDetails: "",
873
- config: {
874
- open: d.value.showTable,
875
- maxHeight: 1e4,
876
- body: {
877
- backgroundColor: e.value.style.chart.backgroundColor,
878
- color: e.value.style.chart.color
879
- },
880
- head: {
881
- backgroundColor: e.value.style.chart.backgroundColor,
882
- color: e.value.style.chart.color
883
- }
884
- }
885
- }, {
903
+ G.value ? (r(), z(Tt(B.value.component), Xe({ key: 6 }, B.value.props, {
904
+ ref_key: "tableUnit",
905
+ ref: F,
906
+ onClose: a[2] || (a[2] = (l) => c.value.showTable = !1)
907
+ }), Ve({
886
908
  content: b(() => [
887
- (r(), T(i(et), {
888
- key: `table_${ke.value}`,
889
- colNames: V.value.colNames,
890
- head: V.value.head,
891
- body: V.value.body,
892
- config: V.value.config,
893
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
894
- onClose: a[0] || (a[0] = (l) => d.value.showTable = !1)
909
+ (r(), z(i(rt), {
910
+ key: `table_${Le.value}`,
911
+ colNames: X.value.colNames,
912
+ head: X.value.head,
913
+ body: X.value.body,
914
+ config: X.value.config,
915
+ title: e.value.table.useDialog ? "" : B.value.title,
916
+ withCloseButton: !e.value.table.useDialog,
917
+ onClose: a[1] || (a[1] = (l) => c.value.showTable = !1)
895
918
  }, {
896
919
  th: b(({ th: l }) => [
897
- k("div", {
920
+ m("div", {
898
921
  innerHTML: l,
899
922
  style: { display: "flex", "align-items": "center" }
900
- }, null, 8, Al)
923
+ }, null, 8, Tl)
901
924
  ]),
902
925
  td: b(({ td: l }) => [
903
- At(S(l.name || l), 1)
926
+ je($(l.name || l), 1)
904
927
  ]),
905
928
  _: 1
906
- }, 8, ["colNames", "head", "body", "config", "title"]))
929
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
907
930
  ]),
908
- _: 1
909
- }, 8, ["config"])) : c("", !0),
910
- i(te) ? (r(), T(Ht, { key: 7 })) : c("", !0)
911
- ], 46, Qt));
931
+ _: 2
932
+ }, [
933
+ e.value.table.useDialog ? {
934
+ name: "title",
935
+ fn: b(() => [
936
+ je($(B.value.title), 1)
937
+ ]),
938
+ key: "0"
939
+ } : void 0,
940
+ e.value.table.useDialog ? {
941
+ name: "actions",
942
+ fn: b(() => [
943
+ m("button", {
944
+ tabindex: "0",
945
+ class: "vue-ui-user-options-button",
946
+ onClick: a[0] || (a[0] = (l) => de(e.value.userOptions.callbacks.csv))
947
+ }, [
948
+ fe(i(ot), {
949
+ name: "excel",
950
+ stroke: B.value.props.color
951
+ }, null, 8, ["stroke"])
952
+ ])
953
+ ]),
954
+ key: "1"
955
+ } : void 0
956
+ ]), 1040)) : h("", !0),
957
+ i(oe) ? (r(), z(Yt, { key: 7 })) : h("", !0)
958
+ ], 46, al));
912
959
  }
913
- }, Rl = /* @__PURE__ */ Kt(Ll, [["__scopeId", "data-v-1a2bfe64"]]);
960
+ }, Hl = /* @__PURE__ */ ll(Sl, [["__scopeId", "data-v-86b9afd3"]]);
914
961
  export {
915
- Rl as default
962
+ Hl as default
916
963
  };