vue-data-ui 2.16.6 → 2.17.1

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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,17 +1,18 @@
1
- import { defineAsyncComponent as L, computed as f, ref as v, watch as Ke, shallowRef as Le, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as Y, normalizeClass as R, createBlock as A, createCommentVNode as c, createVNode as Ae, createSlots as et, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as F, createElementVNode as k, Fragment as g, renderList as $, toDisplayString as S, mergeProps as tt, createTextVNode as lt, nextTick as at } from "vue";
2
- import { u as ot, c as le, t as st, p as z, a as rt, o as ut, e as ae, g as Se, b as it, d as ze, v as nt, D as vt, f as j, X as ct, i as oe, I as ht, l as dt, h as pt, x as Oe, E as ft, q as yt, r as bt, y as mt } from "./index-DvIXJm6t.js";
3
- import { t as gt, u as kt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Pe } from "./useNestedProp-DrYHm61t.js";
5
- import { u as xt } from "./usePrinter-CWnXbGMb.js";
6
- import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
8
- import $t from "./Title-Gi81VwUM.js";
9
- import { _ as Tt } from "./Shape-Bnf512BA.js";
10
- import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], zt = { key: 1 }, Ot = { key: 0 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nt = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "fill", "font-size"], Dt = ["x", "y", "font-size", "fill"], Gt = ["x", "y", "font-size", "fill", "innerHTML"], Rt = ["fill", "font-size", "transform"], Et = ["fill", "font-size", "x", "y"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["cx", "cy", "fill"], Ut = ["cx", "cy", "fill"], Bt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], jt = ["stop-color"], qt = { key: 0 }, Jt = ["x", "y", "font-size", "fill"], Kt = {
1
+ import { defineAsyncComponent as A, computed as f, ref as v, watch as Qe, shallowRef as Ae, onMounted as Ze, onBeforeUnmount as et, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as Y, normalizeClass as R, createBlock as S, createCommentVNode as c, createVNode as Se, createSlots as tt, withCtx as y, renderSlot as p, normalizeProps as F, guardReactiveProps as I, createElementVNode as x, Fragment as k, renderList as T, toDisplayString as z, mergeProps as lt, createTextVNode as at, nextTick as ot } from "vue";
2
+ import { u as st, c as le, t as rt, p as O, a as ut, o as it, e as ae, g as ze, b as nt, d as Oe, v as vt, D as ct, f as j, X as ht, i as oe, I as dt, l as pt, h as ft, x as Pe, E as yt, q as bt, r as mt, y as gt } from "./index-CobsZUkv.js";
3
+ import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ne } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as wt } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Tt from "./Title-DpERl1yr.js";
9
+ import { _ as _t } from "./Shape-C75836Jl.js";
10
+ import Lt from "./img-utitT2Gd.js";
11
+ import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], Pt = { key: 1 }, Nt = { key: 0 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = { key: 1 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x", "y", "fill", "font-size"], Rt = ["x", "y", "font-size", "fill"], Et = ["x", "y", "font-size", "fill", "innerHTML"], Vt = ["fill", "font-size", "transform"], Ht = ["fill", "font-size", "x", "y"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Bt = ["cx", "cy", "fill"], Xt = ["cx", "cy", "fill"], Yt = ["id"], jt = ["stop-color"], qt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 0 }, Qt = ["x", "y", "font-size", "fill"], Zt = {
12
13
  key: 5,
13
14
  class: "vue-data-ui-watermark"
14
- }, Qt = ["innerHTML"], Zt = {
15
+ }, el = ["innerHTML"], tl = {
15
16
  __name: "vue-ui-strip-plot",
16
17
  props: {
17
18
  config: {
@@ -28,77 +29,77 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
28
29
  }
29
30
  },
30
31
  emits: ["selectDatapoint"],
31
- setup(Ne, { expose: Me, emit: Fe }) {
32
- const We = L(() => import("./vue-ui-accordion-D55kCO5G.js")), Ie = L(() => import("./DataTable-CHBLjKtZ.js")), De = L(() => import("./PackageVersion-Bg_9KCU-.js")), Ge = L(() => import("./PenAndPaper-BPTpbnay.js")), Re = L(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ee = L(() => import("./Tooltip-CJxVw7-T.js")), Ve = L(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_strip_plot: He } = ot(), b = Ne, Ue = Fe, T = f({
32
+ setup(Me, { expose: Fe, emit: Ie }) {
33
+ const We = A(() => import("./vue-ui-accordion-UewqY6OI.js")), De = A(() => import("./DataTable-Dt-TIOyY.js")), Ge = A(() => import("./PackageVersion-C-4Ee8BQ.js")), Re = A(() => import("./PenAndPaper-Cde-wJ3N.js")), Ee = A(() => import("./vue-ui-skeleton-8s4xts8z.js")), Ve = A(() => import("./Tooltip-DA0bYKFG.js")), He = A(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_strip_plot: Ue } = st(), b = Me, Be = Ie, _ = f({
33
34
  get() {
34
35
  return !!b.dataset && b.dataset.length;
35
36
  },
36
37
  set(t) {
37
38
  return t;
38
39
  }
39
- }), q = v(le()), se = v(0), J = v(!1), K = v(""), W = v(null), re = v(null), ue = v(null), ie = v(null), ne = v(!1), ve = v(0), ce = v(0), e = f({
40
+ }), q = v(le()), se = v(0), J = v(!1), K = v(""), C = v(null), re = v(null), ue = v(null), ie = v(null), ne = v(!1), ve = v(0), ce = v(0), e = f({
40
41
  get: () => fe(),
41
42
  set: (t) => t
42
- }), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = wt({ config: e.value }), { svgRef: pe } = Ct({ config: e.value.style.chart.title });
43
+ }), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = Ct({ config: e.value }), { svgRef: pe } = $t({ config: e.value.style.chart.title });
43
44
  function fe() {
44
- const t = Pe({
45
+ const t = Ne({
45
46
  userConfig: b.config,
46
- defaultConfig: He
47
+ defaultConfig: Ue
47
48
  });
48
49
  return t.theme ? {
49
- ...Pe({
50
- userConfig: rt.vue_ui_strip_plot[t.theme] || b.config,
50
+ ...Ne({
51
+ userConfig: ut.vue_ui_strip_plot[t.theme] || b.config,
51
52
  defaultConfig: t
52
53
  }),
53
- customPalette: st[t.theme] || z
54
+ customPalette: rt[t.theme] || O
54
55
  } : t;
55
56
  }
56
- Ke(() => b.config, (t) => {
57
+ Qe(() => b.config, (t) => {
57
58
  e.value = fe(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ve.value += 1, ce.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;
58
59
  }, { deep: !0 });
59
- const C = Le(null), O = Le(null);
60
- Qe(() => {
60
+ const $ = Ae(null), P = Ae(null);
61
+ Ze(() => {
61
62
  ye();
62
63
  });
63
64
  function ye() {
64
- if (ut(b.dataset) ? ae({
65
+ if (it(b.dataset) ? ae({
65
66
  componentName: "VueUiStripPlot",
66
67
  type: "dataset"
67
- }) : b.dataset.forEach((t, r) => {
68
- Se({
68
+ }) : b.dataset.forEach((t, o) => {
69
+ ze({
69
70
  datasetObject: t,
70
71
  requiredAttributes: ["name", "plots"]
71
72
  }).forEach((l) => {
72
- T.value = !1, ae({
73
+ _.value = !1, ae({
73
74
  componentName: "VueUiStripPlot",
74
75
  type: "datasetSerieAttribute",
75
76
  property: l,
76
- index: r
77
+ index: o
77
78
  });
78
- }), t.plots && t.plots.forEach((l, o) => {
79
- Se({
79
+ }), t.plots && t.plots.forEach((l, s) => {
80
+ ze({
80
81
  datasetObject: l,
81
82
  requiredAttributes: ["name", "value"]
82
- }).forEach((n) => {
83
- T.value = !1, ae({
83
+ }).forEach((i) => {
84
+ _.value = !1, ae({
84
85
  componentName: "VueUiStripPlot",
85
86
  type: "datasetSerieAttribute",
86
- property: n,
87
- index: `${r},${o}`
87
+ property: i,
88
+ index: `${o},${s}`
88
89
  });
89
90
  });
90
91
  });
91
92
  }), e.value.responsive) {
92
- const t = gt(() => {
93
- const { width: r, height: l } = kt({
94
- chart: W.value,
93
+ const t = kt(() => {
94
+ const { width: o, height: l } = xt({
95
+ chart: C.value,
95
96
  title: e.value.style.chart.title.text ? re.value : null,
96
97
  source: ue.value,
97
98
  noTitle: ie.value
98
99
  });
99
100
  requestAnimationFrame(() => {
100
- E.value = l, P.value.width = r, P.value.height = l, D.value = (r - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = ft({
101
- relator: Math.min(l, r),
101
+ E.value = l, N.value.width = o, N.value.height = l, D.value = (o - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = yt({
102
+ relator: Math.min(l, o),
102
103
  adjuster: 600,
103
104
  source: e.value.style.chart.plots.radius,
104
105
  threshold: 6,
@@ -106,20 +107,20 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
106
107
  }) : G.value = e.value.style.chart.plots.radius;
107
108
  });
108
109
  });
109
- C.value && (O.value && C.value.unobserve(O.value), C.value.disconnect()), C.value = new ResizeObserver(t), O.value = W.value.parentNode, C.value.observe(O.value);
110
+ $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
110
111
  }
111
112
  ne.value = !0, setTimeout(() => {
112
- I.value = !1;
113
- }, Xe.value * 50);
113
+ W.value = !1;
114
+ }, Ye.value * 50);
114
115
  }
115
- Ze(() => {
116
- C.value && (O.value && C.value.unobserve(O.value), C.value.disconnect());
116
+ et(() => {
117
+ $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
117
118
  });
118
- const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = xt({
119
+ const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = wt({
119
120
  elementId: `strip-plot_${q.value}`,
120
121
  fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
121
122
  options: e.value.userOptions.print
122
- }), Be = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => it(e.value.customPalette)), I = v(e.value.useCssAnimation), d = v({
123
+ }), Xe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => nt(e.value.customPalette)), W = v(e.value.useCssAnimation), d = v({
123
124
  showTable: e.value.table.show,
124
125
  dataLabels: {
125
126
  show: e.value.style.chart.labels.bestPlotLabel.show
@@ -130,7 +131,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
130
131
  bottom: e.value.style.chart.padding.bottom,
131
132
  left: e.value.style.chart.padding.left,
132
133
  right: e.value.style.chart.padding.right
133
- }), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), P = v({
134
+ }), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), N = v({
134
135
  width: D.value * b.dataset.length + m.value.left + m.value.right,
135
136
  height: e.value.style.chart.height
136
137
  }), a = f(() => {
@@ -146,62 +147,62 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
146
147
  absoluteHeight: E.value,
147
148
  absoluteWidth: t
148
149
  };
149
- }), V = f(() => T.value ? b.dataset.map((t, r) => {
150
+ }), V = f(() => _.value ? b.dataset.map((t, o) => {
150
151
  const l = le();
151
152
  return {
152
153
  ...t,
153
154
  id: l,
154
- color: t.color ? ze(t.color) : xe.value[r] || z[r] || z[r % z.length],
155
- plots: t.plots.map((o) => ({
156
- ...o,
157
- value: nt(o.value),
155
+ color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
156
+ plots: t.plots.map((s) => ({
157
+ ...s,
158
+ value: vt(s.value),
158
159
  parentId: l,
159
- color: t.color ? ze(t.color) : xe.value[r] || z[r] || z[r % z.length],
160
+ color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
160
161
  id: le()
161
- })).sort((o, n) => o.value - n.value)
162
+ })).sort((s, i) => s.value - i.value)
162
163
  };
163
- }) : null), x = f(() => (V.value || []).map((t, r) => ({
164
+ }) : null), w = f(() => (V.value || []).map((t, o) => ({
164
165
  ...t,
165
166
  plots: t.plots.map((l) => ({
166
167
  ...l,
167
- x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2
168
+ x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
168
169
  }))
169
- }))), Xe = f(() => Math.max(...x.value.map((t) => t.plots.length))), Z = f(() => {
170
- const t = x.value.flatMap((r) => r.plots.map((l) => l.value));
170
+ }))), Ye = f(() => Math.max(...w.value.map((t) => t.plots.length))), Z = f(() => {
171
+ const t = w.value.flatMap((o) => o.plots.map((l) => l.value));
171
172
  return {
172
173
  max: Math.max(...t),
173
174
  min: Math.min(...t)
174
175
  };
175
- }), _ = f(() => vt(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), Ye = f(() => (x.value || []).map((t, r) => ({
176
+ }), L = f(() => ct(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), je = f(() => (w.value || []).map((t, o) => ({
176
177
  ...t,
177
178
  plots: t.plots.map((l) => ({
178
179
  ...l,
179
- y: a.value.bottom - (l.value + Math.abs(_.value.min)) / (_.value.max + Math.abs(_.value.min)) * a.value.height
180
+ y: a.value.bottom - (l.value + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min)) * a.value.height
180
181
  }))
181
- }))), we = f(() => _.value.ticks.map((t) => ({
182
- y: a.value.bottom - a.value.height * ((t + Math.abs(_.value.min)) / (_.value.max + Math.abs(_.value.min))),
182
+ }))), we = f(() => L.value.ticks.map((t) => ({
183
+ y: a.value.bottom - a.value.height * ((t + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min))),
183
184
  x1: a.value.left,
184
185
  x2: a.value.right,
185
186
  value: t
186
187
  }))), ee = v(null), h = v(null);
187
- function je({ datapoint: t, seriesIndex: r }) {
188
- ee.value = { datapoint: t, seriesIndex: r, config: e.value, series: V.value }, J.value = !0, h.value = t;
188
+ function qe({ datapoint: t, seriesIndex: o }) {
189
+ ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: V.value }, J.value = !0, h.value = t;
189
190
  const l = e.value.style.chart.tooltip.customFormat;
190
- if (Oe(l) && mt(() => l({
191
- seriesIndex: r,
191
+ if (Pe(l) && gt(() => l({
192
+ seriesIndex: o,
192
193
  datapoint: t,
193
194
  series: V.value,
194
195
  config: e.value
195
196
  })))
196
197
  K.value = l({
197
- seriesIndex: r,
198
+ seriesIndex: o,
198
199
  datapoint: t,
199
200
  series: V.value,
200
201
  config: e.value
201
202
  });
202
203
  else {
203
- let o = "";
204
- o += `<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>`, o += `<div>${oe(
204
+ let s = "";
205
+ 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>${oe(
205
206
  e.value.style.chart.labels.formatter,
206
207
  t.value,
207
208
  j({
@@ -210,40 +211,40 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
210
211
  s: e.value.style.chart.labels.suffix,
211
212
  r: e.value.style.chart.tooltip.roundingValue
212
213
  }),
213
- { datapoint: t, seriesIndex: r }
214
- )}</div>`, K.value = `<div>${o}</div>`;
214
+ { datapoint: t, seriesIndex: o }
215
+ )}</div>`, K.value = `<div>${s}</div>`;
215
216
  }
216
217
  }
217
218
  const H = f(() => {
218
- const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
219
- name: `${l.name} - ${o.name}`,
220
- color: o.color
221
- }))), r = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
222
- return { head: t, body: r };
219
+ const t = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => ({
220
+ name: `${l.name} - ${s.name}`,
221
+ color: s.color
222
+ }))), o = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => s.value));
223
+ return { head: t, body: o };
223
224
  });
224
225
  function Ce(t = null) {
225
- at(() => {
226
- const r = H.value.head.map((n, w) => [[
227
- n.name
228
- ], [H.value.body[w]]]), 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(r), o = yt(l);
229
- t ? t(o) : bt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
226
+ ot(() => {
227
+ const o = H.value.head.map((i, g) => [[
228
+ i.name
229
+ ], [H.value.body[g]]]), 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(o), s = bt(l);
230
+ t ? t(s) : mt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
230
231
  });
231
232
  }
232
233
  const U = f(() => {
233
234
  const t = [
234
235
  e.value.table.columnNames.series,
235
236
  e.value.table.columnNames.value
236
- ], r = H.value.head.map((n, w) => {
237
+ ], o = H.value.head.map((i, g) => {
237
238
  const X = j({
238
239
  p: e.value.style.chart.labels.prefix,
239
- v: H.value.body[w],
240
+ v: H.value.body[g],
240
241
  s: e.value.style.chart.labels.suffix,
241
242
  r: e.value.table.td.roundingValue
242
243
  });
243
244
  return [
244
245
  {
245
- color: n.color,
246
- name: n.name
246
+ color: i.color,
247
+ name: i.name
247
248
  },
248
249
  X
249
250
  ];
@@ -266,69 +267,83 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
266
267
  e.value.table.columnNames.value
267
268
  ],
268
269
  head: t,
269
- body: r,
270
+ body: o,
270
271
  config: l
271
272
  };
272
- }), N = v(!1);
273
- function qe(t) {
274
- N.value = t, se.value += 1;
273
+ }), M = v(!1);
274
+ function $e(t) {
275
+ M.value = t, se.value += 1;
275
276
  }
276
277
  function Je() {
277
- return x.value;
278
+ return w.value;
278
279
  }
279
- function $e() {
280
+ function Te() {
280
281
  d.value.showTable = !d.value.showTable;
281
282
  }
282
- function Te() {
283
+ function _e() {
283
284
  d.value.dataLabels.show = !d.value.dataLabels.show;
284
285
  }
285
- function _e() {
286
+ function Le() {
286
287
  d.value.showTooltip = !d.value.showTooltip;
287
288
  }
288
289
  const B = v(!1);
289
290
  function te() {
290
291
  B.value = !B.value;
291
292
  }
292
- return Me({
293
+ async function Ke({ scale: t = 2 } = {}) {
294
+ if (!C.value) return;
295
+ const { width: o, height: l } = C.value.getBoundingClientRect(), s = o / l, { imageUri: i, base64: g } = await Lt({ domElement: C.value, base64: !0, img: !0, scale: t });
296
+ return {
297
+ imageUri: i,
298
+ base64: g,
299
+ title: e.value.style.chart.title.text,
300
+ width: o,
301
+ height: l,
302
+ aspectRatio: s
303
+ };
304
+ }
305
+ return Fe({
293
306
  getData: Je,
307
+ getImage: Ke,
294
308
  generatePdf: ge,
295
309
  generateCsv: Ce,
296
310
  generateImage: ke,
297
- toggleTable: $e,
298
- toggleLabels: Te,
299
- toggleTooltip: _e,
300
- toggleAnnotator: te
301
- }), (t, r) => (s(), u("div", {
311
+ toggleTable: Te,
312
+ toggleLabels: _e,
313
+ toggleTooltip: Le,
314
+ toggleAnnotator: te,
315
+ toggleFullscreen: $e
316
+ }), (t, o) => (r(), u("div", {
302
317
  ref_key: "stripPlotChart",
303
- ref: W,
304
- class: R(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
318
+ ref: C,
319
+ class: R(`vue-ui-strip-plot ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
305
320
  style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
306
321
  id: `strip-plot_${q.value}`,
307
- onMouseenter: r[2] || (r[2] = () => i(he)(!0)),
308
- onMouseleave: r[3] || (r[3] = () => i(he)(!1))
322
+ onMouseenter: o[2] || (o[2] = () => n(he)(!0)),
323
+ onMouseleave: o[3] || (o[3] = () => n(he)(!1))
309
324
  }, [
310
- e.value.userOptions.buttons.annotator ? (s(), A(i(Ge), {
325
+ e.value.userOptions.buttons.annotator ? (r(), S(n(Re), {
311
326
  key: 0,
312
- svgRef: i(pe),
327
+ svgRef: n(pe),
313
328
  backgroundColor: e.value.style.chart.backgroundColor,
314
329
  color: e.value.style.chart.color,
315
330
  active: B.value,
316
331
  onClose: te
317
332
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
318
- Be.value ? (s(), u("div", {
333
+ Xe.value ? (r(), u("div", {
319
334
  key: 1,
320
335
  ref_key: "noTitle",
321
336
  ref: ie,
322
337
  class: "vue-data-ui-no-title-space",
323
338
  style: "height:36px; width: 100%;background:transparent"
324
339
  }, null, 512)) : c("", !0),
325
- e.value.style.chart.title.text ? (s(), u("div", {
340
+ e.value.style.chart.title.text ? (r(), u("div", {
326
341
  key: 2,
327
342
  ref_key: "chartTitle",
328
343
  ref: re,
329
344
  style: "width:100%;background:transparent;padding-bottom:24px"
330
345
  }, [
331
- (s(), A($t, {
346
+ (r(), S(Tt, {
332
347
  key: `title_${ve.value}`,
333
348
  config: {
334
349
  title: {
@@ -342,13 +357,13 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
342
357
  }
343
358
  }, null, 8, ["config"]))
344
359
  ], 512)) : c("", !0),
345
- e.value.userOptions.show && T.value && (i(de) || i(Q)) ? (s(), A(i(Ve), {
360
+ e.value.userOptions.show && _.value && (n(de) || n(Q)) ? (r(), S(n(He), {
346
361
  ref: "details",
347
362
  key: `user_option_${se.value}`,
348
363
  backgroundColor: e.value.style.chart.backgroundColor,
349
364
  color: e.value.style.chart.color,
350
- isPrinting: i(be),
351
- isImaging: i(me),
365
+ isPrinting: n(be),
366
+ isImaging: n(me),
352
367
  uid: q.value,
353
368
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
354
369
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -358,30 +373,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
358
373
  hasLabel: e.value.userOptions.buttons.labels,
359
374
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
360
375
  isTooltip: d.value.showTooltip,
361
- isFullscreen: N.value,
376
+ isFullscreen: M.value,
362
377
  titles: { ...e.value.userOptions.buttonTitles },
363
- chartElement: W.value,
378
+ chartElement: C.value,
364
379
  position: e.value.userOptions.position,
365
380
  hasAnnotator: e.value.userOptions.buttons.annotator,
366
381
  isAnnotation: B.value,
367
382
  callbacks: e.value.userOptions.callbacks,
368
383
  printScale: e.value.userOptions.print.scale,
369
- onToggleFullscreen: qe,
370
- onGeneratePdf: i(ge),
384
+ onToggleFullscreen: $e,
385
+ onGeneratePdf: n(ge),
371
386
  onGenerateCsv: Ce,
372
- onGenerateImage: i(ke),
373
- onToggleTable: $e,
374
- onToggleLabels: Te,
375
- onToggleTooltip: _e,
387
+ onGenerateImage: n(ke),
388
+ onToggleTable: Te,
389
+ onToggleLabels: _e,
390
+ onToggleTooltip: Le,
376
391
  onToggleAnnotator: te,
377
392
  style: Y({
378
- visibility: i(de) ? i(Q) ? "visible" : "hidden" : "visible"
393
+ visibility: n(de) ? n(Q) ? "visible" : "hidden" : "visible"
379
394
  })
380
- }, et({ _: 2 }, [
395
+ }, tt({ _: 2 }, [
381
396
  t.$slots.menuIcon ? {
382
397
  name: "menuIcon",
383
- fn: y(({ isOpen: l, color: o }) => [
384
- p(t.$slots, "menuIcon", M(F({ isOpen: l, color: o })), void 0, !0)
398
+ fn: y(({ isOpen: l, color: s }) => [
399
+ p(t.$slots, "menuIcon", F(I({ isOpen: l, color: s })), void 0, !0)
385
400
  ]),
386
401
  key: "0"
387
402
  } : void 0,
@@ -429,30 +444,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
429
444
  } : void 0,
430
445
  t.$slots.optionFullscreen ? {
431
446
  name: "optionFullscreen",
432
- fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
433
- p(t.$slots, "optionFullscreen", M(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
447
+ fn: y(({ toggleFullscreen: l, isFullscreen: s }) => [
448
+ p(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
434
449
  ]),
435
450
  key: "7"
436
451
  } : void 0,
437
452
  t.$slots.optionAnnotator ? {
438
453
  name: "optionAnnotator",
439
- fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
440
- p(t.$slots, "optionAnnotator", M(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
454
+ fn: y(({ toggleAnnotator: l, isAnnotator: s }) => [
455
+ p(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
441
456
  ]),
442
457
  key: "8"
443
458
  } : void 0
444
459
  ]), 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),
445
- T.value ? (s(), u("svg", {
460
+ _.value ? (r(), u("svg", {
446
461
  key: 4,
447
462
  ref_key: "svgRef",
448
463
  ref: pe,
449
- xmlns: i(ct),
450
- class: R({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
451
- viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
464
+ xmlns: n(ht),
465
+ class: R({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
466
+ viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
452
467
  style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
453
468
  }, [
454
- Ae(i(De)),
455
- t.$slots["chart-background"] ? (s(), u("foreignObject", {
469
+ Se(n(Ge)),
470
+ t.$slots["chart-background"] ? (r(), u("foreignObject", {
456
471
  key: 0,
457
472
  x: a.value.left,
458
473
  y: a.value.top,
@@ -463,10 +478,10 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
463
478
  }
464
479
  }, [
465
480
  p(t.$slots, "chart-background", {}, void 0, !0)
466
- ], 8, St)) : c("", !0),
467
- e.value.style.chart.grid.show ? (s(), u("g", zt, [
468
- e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g", Ot, [
469
- (s(!0), u(g, null, $(we.value, (l) => (s(), u("line", {
481
+ ], 8, Ot)) : c("", !0),
482
+ e.value.style.chart.grid.show ? (r(), u("g", Pt, [
483
+ e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", Nt, [
484
+ (r(!0), u(k, null, T(we.value, (l) => (r(), u("line", {
470
485
  x1: l.x1,
471
486
  x2: l.x2,
472
487
  y1: l.y,
@@ -475,21 +490,21 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
475
490
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
476
491
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
477
492
  "stroke-linecap": "round"
478
- }, null, 8, Pt))), 256))
493
+ }, null, 8, Mt))), 256))
479
494
  ])) : c("", !0),
480
- e.value.style.chart.grid.verticalGrid.show ? (s(), u("g", Nt, [
481
- (s(!0), u(g, null, $(x.value, (l, o) => (s(), u("line", {
482
- x1: a.value.left + (o + 1) * a.value.stripWidth,
483
- x2: a.value.left + (o + 1) * a.value.stripWidth,
495
+ e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Ft, [
496
+ (r(!0), u(k, null, T(w.value, (l, s) => (r(), u("line", {
497
+ x1: a.value.left + (s + 1) * a.value.stripWidth,
498
+ x2: a.value.left + (s + 1) * a.value.stripWidth,
484
499
  y1: a.value.top,
485
500
  y2: a.value.bottom,
486
501
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
487
502
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
488
503
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
489
504
  "stroke-linecap": "round"
490
- }, null, 8, Mt))), 256))
505
+ }, null, 8, It))), 256))
491
506
  ])) : c("", !0),
492
- k("line", {
507
+ x("line", {
493
508
  x1: a.value.left,
494
509
  x2: a.value.left,
495
510
  y1: a.value.top,
@@ -497,8 +512,8 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
497
512
  stroke: e.value.style.chart.grid.stroke,
498
513
  "stroke-width": e.value.style.chart.grid.strokeWidth,
499
514
  "stroke-linecap": "round"
500
- }, null, 8, Ft),
501
- k("line", {
515
+ }, null, 8, Wt),
516
+ x("line", {
502
517
  x1: a.value.left,
503
518
  x2: a.value.right,
504
519
  y1: a.value.bottom,
@@ -506,67 +521,67 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
506
521
  stroke: e.value.style.chart.grid.stroke,
507
522
  "stroke-width": e.value.style.chart.grid.strokeWidth,
508
523
  "stroke-linecap": "round"
509
- }, null, 8, Wt)
524
+ }, null, 8, Dt)
510
525
  ])) : c("", !0),
511
- e.value.style.chart.labels.yAxisLabels.show ? (s(!0), u(g, { key: 2 }, $(we.value, (l, o) => (s(), u("text", {
526
+ e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(k, { key: 2 }, T(we.value, (l, s) => (r(), u("text", {
512
527
  x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
513
528
  y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
514
529
  fill: e.value.style.chart.labels.yAxisLabels.color,
515
530
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
516
531
  "text-anchor": "end"
517
- }, S(i(oe)(
532
+ }, z(n(oe)(
518
533
  e.value.style.chart.labels.formatter,
519
534
  l.value,
520
- i(j)({
535
+ n(j)({
521
536
  p: e.value.style.chart.labels.prefix,
522
537
  v: l.value,
523
538
  s: e.value.style.chart.labels.suffix,
524
539
  r: e.value.style.chart.labels.yAxisLabels.rounding
525
540
  }),
526
- { datapoint: l, seriesIndex: o }
527
- )), 9, It))), 256)) : c("", !0),
528
- e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 }, $(x.value, (l, o) => (s(), u("g", null, [
541
+ { datapoint: l, seriesIndex: s }
542
+ )), 9, Gt))), 256)) : c("", !0),
543
+ e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(k, { key: 3 }, T(w.value, (l, s) => (r(), u("g", null, [
529
544
  String(l.name).includes(`
530
- `) ? (s(), u("text", {
545
+ `) ? (r(), u("text", {
531
546
  key: 1,
532
- x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2,
547
+ x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
533
548
  y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
534
549
  "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
535
550
  fill: e.value.style.chart.labels.xAxisLabels.color,
536
551
  "text-anchor": "middle",
537
- innerHTML: i(ht)({
552
+ innerHTML: n(dt)({
538
553
  content: String(l.name),
539
554
  fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
540
555
  fill: e.value.style.chart.labels.xAxisLabels.color,
541
- x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2,
556
+ x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
542
557
  y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
543
558
  })
544
- }, null, 8, Gt)) : (s(), u("text", {
559
+ }, null, 8, Et)) : (r(), u("text", {
545
560
  key: 0,
546
- x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2,
561
+ x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
547
562
  y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
548
563
  "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
549
564
  fill: e.value.style.chart.labels.xAxisLabels.color,
550
565
  "text-anchor": "middle"
551
- }, S(l.name), 9, Dt))
566
+ }, z(l.name), 9, Rt))
552
567
  ]))), 256)) : c("", !0),
553
- e.value.style.chart.labels.axis.yLabel ? (s(), u("text", {
568
+ e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
554
569
  key: 4,
555
570
  fill: e.value.style.chart.labels.axis.color,
556
571
  "font-size": e.value.style.chart.labels.axis.fontSize,
557
572
  transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
558
573
  "text-anchor": "middle"
559
- }, S(e.value.style.chart.labels.axis.yLabel), 9, Rt)) : c("", !0),
560
- e.value.style.chart.labels.axis.xLabel ? (s(), u("text", {
574
+ }, z(e.value.style.chart.labels.axis.yLabel), 9, Vt)) : c("", !0),
575
+ e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
561
576
  key: 5,
562
577
  fill: e.value.style.chart.labels.axis.color,
563
578
  "font-size": e.value.style.chart.labels.axis.fontSize,
564
579
  x: a.value.left + a.value.width / 2,
565
580
  y: a.value.absoluteHeight,
566
581
  "text-anchor": "middle"
567
- }, S(e.value.style.chart.labels.axis.xLabel), 9, Et)) : c("", !0),
568
- h.value ? (s(), u(g, { key: 6 }, [
569
- k("line", {
582
+ }, z(e.value.style.chart.labels.axis.xLabel), 9, Ht)) : c("", !0),
583
+ h.value ? (r(), u(k, { key: 6 }, [
584
+ x("line", {
570
585
  x1: a.value.left,
571
586
  x2: a.value.right,
572
587
  y1: h.value.y,
@@ -574,87 +589,87 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
574
589
  stroke: h.value.color,
575
590
  "stroke-width": 1,
576
591
  class: R({ "select-circle": e.value.useCssAnimation })
577
- }, null, 10, Vt),
578
- k("circle", {
592
+ }, null, 10, Ut),
593
+ x("circle", {
579
594
  cx: a.value.left,
580
595
  cy: h.value.y,
581
596
  r: 3,
582
597
  fill: h.value.color,
583
598
  class: R({ "select-circle": e.value.useCssAnimation })
584
- }, null, 10, Ht),
585
- k("circle", {
599
+ }, null, 10, Bt),
600
+ x("circle", {
586
601
  cx: a.value.right,
587
602
  cy: h.value.y,
588
603
  r: 3,
589
604
  fill: h.value.color,
590
605
  class: R({ "select-circle": e.value.useCssAnimation })
591
- }, null, 10, Ut)
606
+ }, null, 10, Xt)
592
607
  ], 64)) : c("", !0),
593
- k("defs", null, [
594
- (s(!0), u(g, null, $(x.value, (l) => (s(), u("radialGradient", {
608
+ x("defs", null, [
609
+ (r(!0), u(k, null, T(w.value, (l) => (r(), u("radialGradient", {
595
610
  id: l.id,
596
611
  fy: "30%"
597
612
  }, [
598
- k("stop", {
613
+ x("stop", {
599
614
  offset: "10%",
600
- "stop-color": i(dt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
601
- }, null, 8, Xt),
602
- k("stop", {
615
+ "stop-color": n(pt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
616
+ }, null, 8, jt),
617
+ x("stop", {
603
618
  offset: "90%",
604
- "stop-color": i(pt)(l.color, 0.1)
605
- }, null, 8, Yt),
606
- k("stop", {
619
+ "stop-color": n(ft)(l.color, 0.1)
620
+ }, null, 8, qt),
621
+ x("stop", {
607
622
  offset: "100%",
608
623
  "stop-color": l.color
609
- }, null, 8, jt)
610
- ], 8, Bt))), 256))
624
+ }, null, 8, Jt)
625
+ ], 8, Yt))), 256))
611
626
  ]),
612
- (s(!0), u(g, null, $(Ye.value, (l, o) => (s(), u(g, null, [
613
- (s(!0), u(g, null, $(l.plots, (n, w) => (s(), A(Tt, tt({
614
- plot: { x: n.x, y: ne.value ? n.y : a.value.top },
615
- radius: h.value && h.value.id === n.id ? G.value * 1.5 : G.value,
627
+ (r(!0), u(k, null, T(je.value, (l, s) => (r(), u(k, null, [
628
+ (r(!0), u(k, null, T(l.plots, (i, g) => (r(), S(_t, lt({
629
+ plot: { x: i.x, y: ne.value ? i.y : a.value.top },
630
+ radius: h.value && h.value.id === i.id ? G.value * 1.5 : G.value,
616
631
  shape: e.value.style.chart.plots.shape,
617
632
  stroke: e.value.style.chart.plots.stroke,
618
633
  strokeWidth: e.value.style.chart.plots.strokeWidth,
619
634
  color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
620
- onMouseenter: (X) => je({ datapoint: n, seriesIndex: w }),
621
- onMouseleave: r[0] || (r[0] = (X) => {
635
+ onMouseenter: (X) => qe({ datapoint: i, seriesIndex: g }),
636
+ onMouseleave: o[0] || (o[0] = (X) => {
622
637
  J.value = !1, h.value = null;
623
638
  }),
624
- onClick: (X) => Ue("selectDatapoint", n),
625
- style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${I.value ? `transition-delay:${w * 50}ms` : ""}`,
626
- class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && I.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !I.value }
639
+ onClick: (X) => Be("selectDatapoint", i),
640
+ style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === i.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${W.value ? `transition-delay:${g * 50}ms` : ""}`,
641
+ class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
627
642
  }, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
628
- d.value.dataLabels.show ? (s(), u("g", qt, [
629
- (s(!0), u(g, null, $(l.plots, (n, w) => (s(), u(g, null, [
630
- w === l.plots.length - 1 || h.value && h.value.id === n.id && !d.value.showTooltip ? (s(), u("text", {
643
+ d.value.dataLabels.show ? (r(), u("g", Kt, [
644
+ (r(!0), u(k, null, T(l.plots, (i, g) => (r(), u(k, null, [
645
+ g === l.plots.length - 1 || h.value && h.value.id === i.id && !d.value.showTooltip ? (r(), u("text", {
631
646
  key: 0,
632
- x: n.x,
633
- y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === n.id && !d.value.showTooltip ? 2 : 1.5),
647
+ x: i.x,
648
+ y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === i.id && !d.value.showTooltip ? 2 : 1.5),
634
649
  "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
635
650
  fill: e.value.style.chart.labels.bestPlotLabel.color,
636
651
  "text-anchor": "middle",
637
- style: Y(`opacity:${e.value.useCssAnimation && I.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
638
- }, S(n.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? i(oe)(
652
+ style: Y(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
653
+ }, z(i.name) + " " + z(e.value.style.chart.labels.bestPlotLabel.showValue ? n(oe)(
639
654
  e.value.style.chart.labels.formatter,
640
- n.value,
641
- i(j)({
655
+ i.value,
656
+ n(j)({
642
657
  p: `(${e.value.style.chart.labels.prefix}`,
643
- v: n.value,
658
+ v: i.value,
644
659
  s: `${e.value.style.chart.labels.suffix})`,
645
660
  r: e.value.style.chart.labels.bestPlotLabel.rounding
646
661
  }),
647
- { datapoint: n, seriesIndex: w }
648
- ) : ""), 13, Jt)) : c("", !0)
662
+ { datapoint: i, seriesIndex: g }
663
+ ) : ""), 13, Qt)) : c("", !0)
649
664
  ], 64))), 256))
650
665
  ])) : c("", !0)
651
666
  ], 64))), 256)),
652
667
  p(t.$slots, "svg", { svg: a.value }, void 0, !0)
653
- ], 14, At)) : c("", !0),
654
- t.$slots.watermark ? (s(), u("div", Kt, [
655
- p(t.$slots, "watermark", M(F({ isPrinting: i(be) || i(me) })), void 0, !0)
668
+ ], 14, zt)) : c("", !0),
669
+ t.$slots.watermark ? (r(), u("div", Zt, [
670
+ p(t.$slots, "watermark", F(I({ isPrinting: n(be) || n(me) })), void 0, !0)
656
671
  ])) : c("", !0),
657
- T.value ? c("", !0) : (s(), A(i(Re), {
672
+ _.value ? c("", !0) : (r(), S(n(Ee), {
658
673
  key: 6,
659
674
  config: {
660
675
  type: "stripPlot",
@@ -666,7 +681,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
666
681
  }
667
682
  }
668
683
  }, null, 8, ["config"])),
669
- t.$slots.source ? (s(), u("div", {
684
+ t.$slots.source ? (r(), u("div", {
670
685
  key: 7,
671
686
  ref_key: "source",
672
687
  ref: ue,
@@ -674,7 +689,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
674
689
  }, [
675
690
  p(t.$slots, "source", {}, void 0, !0)
676
691
  ], 512)) : c("", !0),
677
- Ae(i(Ee), {
692
+ Se(n(Ve), {
678
693
  show: d.value.showTooltip && J.value,
679
694
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
680
695
  color: e.value.style.chart.tooltip.color,
@@ -685,20 +700,20 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
685
700
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
686
701
  position: e.value.style.chart.tooltip.position,
687
702
  offsetY: e.value.style.chart.tooltip.offsetY,
688
- parent: W.value,
703
+ parent: C.value,
689
704
  content: K.value,
690
- isFullscreen: N.value,
691
- isCustom: i(Oe)(e.value.style.chart.tooltip.customFormat)
705
+ isFullscreen: M.value,
706
+ isCustom: n(Pe)(e.value.style.chart.tooltip.customFormat)
692
707
  }, {
693
708
  "tooltip-before": y(() => [
694
- p(t.$slots, "tooltip-before", M(F({ ...ee.value })), void 0, !0)
709
+ p(t.$slots, "tooltip-before", F(I({ ...ee.value })), void 0, !0)
695
710
  ]),
696
711
  "tooltip-after": y(() => [
697
- p(t.$slots, "tooltip-after", M(F({ ...ee.value })), void 0, !0)
712
+ p(t.$slots, "tooltip-after", F(I({ ...ee.value })), void 0, !0)
698
713
  ]),
699
714
  _: 3
700
715
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
701
- T.value ? (s(), A(i(We), {
716
+ _.value ? (r(), S(n(We), {
702
717
  key: 8,
703
718
  hideDetails: "",
704
719
  config: {
@@ -715,32 +730,32 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
715
730
  }
716
731
  }, {
717
732
  content: y(() => [
718
- (s(), A(i(Ie), {
733
+ (r(), S(n(De), {
719
734
  key: `table_${ce.value}`,
720
735
  colNames: U.value.colNames,
721
736
  head: U.value.head,
722
737
  body: U.value.body,
723
738
  config: U.value.config,
724
739
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
725
- onClose: r[1] || (r[1] = (l) => d.value.showTable = !1)
740
+ onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
726
741
  }, {
727
742
  th: y(({ th: l }) => [
728
- k("div", {
743
+ x("div", {
729
744
  innerHTML: l,
730
745
  style: { display: "flex", "align-items": "center" }
731
- }, null, 8, Qt)
746
+ }, null, 8, el)
732
747
  ]),
733
748
  td: y(({ td: l }) => [
734
- lt(S(l.name || l), 1)
749
+ at(z(l.name || l), 1)
735
750
  ]),
736
751
  _: 1
737
752
  }, 8, ["colNames", "head", "body", "config", "title"]))
738
753
  ]),
739
754
  _: 1
740
755
  }, 8, ["config"])) : c("", !0)
741
- ], 46, Lt));
756
+ ], 46, St));
742
757
  }
743
- }, vl = /* @__PURE__ */ _t(Zt, [["__scopeId", "data-v-724cad50"]]);
758
+ }, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-70b7a65c"]]);
744
759
  export {
745
- vl as default
760
+ dl as default
746
761
  };