vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4

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 (92) hide show
  1. package/README.md +21 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +60 -1
  23. package/dist/types/vue-data-ui.d.ts +60 -1
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-BjSUS-jY.js +0 -243
  92. package/dist/img-DWfzRJdv.js +0 -19
@@ -1,17 +1,17 @@
1
- import { defineAsyncComponent as N, ref as h, shallowRef as _e, computed as f, onMounted as et, onBeforeUnmount as tt, watch as lt, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as M, normalizeClass as F, renderSlot as x, createBlock as O, createCommentVNode as v, createElementVNode as S, createVNode as $e, createSlots as at, withCtx as m, normalizeProps as X, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as z, createTextVNode as st, nextTick as ot } from "vue";
2
- import { u as rt, c as Me, o as nt, e as Ae, g as ut, b as it, d as ct, p as G, D as Te, i as Y, f as j, X as vt, l as ht, h as dt, G as yt, F as P, t as ft, a as xt, C as V, q as pt, r as mt, x as gt } from "./index-CbcpITE_.js";
3
- import { u as Se } from "./useNestedProp-y56W8I7J.js";
4
- import { u as bt } from "./usePrinter-u-gQiRNz.js";
5
- import { t as kt, u as wt } from "./useResponsive-JZ9xq-JV.js";
6
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as _t } from "./useChartAccessibility-9icAAmYg.js";
8
- import $t from "./Legend-ZW-PFcHg.js";
9
- import Mt from "./Title-Dx8ctnVy.js";
10
- import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"], Lt = { key: 1 }, Nt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["stop-color"], Ft = { key: 2 }, Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = { key: 3 }, Yt = ["x", "y", "fill", "font-size"], jt = ["transform", "font-size", "fill", "font-weight"], Rt = { key: 5 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = { key: 6 }, Et = ["transform", "fill", "font-size", "text-anchor"], Ht = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Zt = ["cx", "cy", "fill", "r"], Jt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Kt = { key: 1 }, Qt = ["x", "y", "font-size", "fill", "font-weight"], el = { key: 2 }, tl = ["x", "y", "font-size", "font-weight", "fill"], ll = ["cx", "cy", "r", "onMouseenter", "onClick"], al = {
1
+ import { defineAsyncComponent as N, ref as h, shallowRef as $e, computed as f, onMounted as tt, onBeforeUnmount as lt, watch as at, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as $, normalizeClass as F, renderSlot as x, createBlock as O, createCommentVNode as v, createElementVNode as T, createVNode as Me, createSlots as st, withCtx as m, normalizeProps as X, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as S, createTextVNode as ot, nextTick as rt } from "vue";
2
+ import { u as nt, c as Ae, o as ut, e as Te, g as it, b as ct, d as vt, p as V, D as Se, i as Y, f as j, X as ht, l as yt, h as dt, G as ft, F as P, t as xt, a as pt, C as q, q as mt, r as gt, x as bt } from "./index-BzQ0j5xI.js";
3
+ import { u as ze } from "./useNestedProp-DqpZEE3h.js";
4
+ import { u as kt } from "./usePrinter-CpG5jh_z.js";
5
+ import { t as wt, u as Ct } from "./useResponsive-JZ9xq-JV.js";
6
+ import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Mt from "./Legend-YPYnzTBz.js";
9
+ import At from "./Title-CJcZXNtK.js";
10
+ import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"], Nt = { key: 1 }, Ot = ["id"], Pt = ["stop-color"], It = ["stop-color"], Ft = ["stop-color"], Xt = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = { key: 3 }, jt = ["x", "y", "fill", "font-size"], Rt = ["transform", "font-size", "fill", "font-weight"], Bt = { key: 5 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 6 }, Ht = ["transform", "fill", "font-size", "text-anchor"], Ut = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke", "stroke-width"], Jt = ["cx", "cy", "fill", "r"], Kt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Qt = { key: 1 }, el = ["x", "y", "font-size", "fill", "font-weight"], tl = { key: 2 }, ll = ["x", "y", "font-size", "font-weight", "fill"], al = ["cx", "cy", "r", "onMouseenter", "onClick"], sl = {
12
12
  key: 5,
13
13
  class: "vue-data-ui-watermark"
14
- }, sl = ["onClick"], ol = ["innerHTML"], rl = {
14
+ }, ol = ["onClick"], rl = ["innerHTML"], nl = {
15
15
  __name: "vue-ui-history-plot",
16
16
  props: {
17
17
  config: {
@@ -28,22 +28,22 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
28
28
  }
29
29
  },
30
30
  emits: ["selectLegend", "selectDatapoint"],
31
- setup(ze, { expose: Le, emit: Ne }) {
32
- const Oe = N(() => import("./vue-ui-accordion-BkA7rtwr.js")), Pe = N(() => import("./DataTable-CsoAI95B.js")), Ie = N(() => import("./PackageVersion-DCAZ9Z7V.js")), Fe = N(() => import("./PenAndPaper-B9RP4oFj.js")), Xe = N(() => import("./vue-ui-skeleton-miKWlCAi.js")), De = N(() => import("./Tooltip-COHlzpZI.js")), Ye = N(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_history_plot: je } = rt(), d = ze, R = h(null), ee = h(null), te = h(0), le = h(null), ae = h(0), se = h(0), oe = h(0), A = _e(null), I = _e(null), re = h(null), B = h(Me()), q = h(!1), Z = h(""), g = h([]), E = h(!1), $ = h(null), W = h(!1), ne = h(null), w = f({
33
- get: () => !!d.dataset && d.dataset.length,
31
+ setup(Le, { expose: Ne, emit: Oe }) {
32
+ const Pe = N(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ie = N(() => import("./DataTable-CmbjnjRg.js")), Fe = N(() => import("./PackageVersion-OcbP0WH2.js")), Xe = N(() => import("./PenAndPaper-BgPXmpGI.js")), De = N(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ye = N(() => import("./Tooltip-dXp8FaUj.js")), je = N(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_history_plot: Re } = nt(), y = Le, R = h(null), te = h(null), le = h(0), ae = h(null), se = h(0), oe = h(0), re = h(0), M = $e(null), I = $e(null), ne = h(null), B = h(Ae()), Z = h(!1), J = h(""), g = h([]), E = h(!1), _ = h(null), W = h(!1), ue = h(null), w = f({
33
+ get: () => !!y.dataset && y.dataset.length,
34
34
  set: (t) => t
35
- }), ue = Ne;
36
- et(ie);
37
- function ie() {
38
- if (nt(d.dataset) ? Ae({
35
+ }), ie = Oe;
36
+ tt(ce);
37
+ function ce() {
38
+ if (ut(y.dataset) ? Te({
39
39
  componentName: "VueUiHistoryPlot",
40
40
  type: "dataset"
41
- }) : d.dataset.forEach((t, a) => {
42
- ut({
41
+ }) : y.dataset.forEach((t, a) => {
42
+ it({
43
43
  datasetObject: t,
44
44
  requiredAttributes: ["name", "values"]
45
45
  }).forEach((l) => {
46
- w.value = !1, Ae({
46
+ w.value = !1, Te({
47
47
  componentName: "VueUiHistoryPlot",
48
48
  type: "datasetSerieAttribute",
49
49
  property: l,
@@ -51,16 +51,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
51
51
  });
52
52
  });
53
53
  }), e.value.responsive) {
54
- const t = kt(() => {
55
- const { width: a, height: l } = wt({
54
+ const t = wt(() => {
55
+ const { width: a, height: l } = Ct({
56
56
  chart: R.value,
57
- title: e.value.style.chart.title.text ? ee.value : null,
58
- noTitle: re.value,
59
- legend: e.value.style.chart.legend.show ? le.value : null,
60
- source: ne.value
57
+ title: e.value.style.chart.title.text ? te.value : null,
58
+ noTitle: ne.value,
59
+ legend: e.value.style.chart.legend.show ? ae.value : null,
60
+ source: ue.value
61
61
  });
62
62
  requestAnimationFrame(() => {
63
- y.value.width = a, y.value.height = l, e.value.responsiveProportionalSizing && (u.value.plots = P({
63
+ d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing && (u.value.plots = P({
64
64
  relator: Math.min(a, l),
65
65
  adjuster: 600,
66
66
  source: e.value.style.chart.plots.radius,
@@ -105,41 +105,41 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
105
105
  }));
106
106
  });
107
107
  });
108
- A.value && (I.value && A.value.unobserve(I.value), A.value.disconnect()), A.value = new ResizeObserver(t), I.value = R.value.parentNode, A.value.observe(I.value);
108
+ M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect()), M.value = new ResizeObserver(t), I.value = R.value.parentNode, M.value.observe(I.value);
109
109
  }
110
110
  }
111
- tt(() => {
112
- A.value && (I.value && A.value.unobserve(I.value), A.value.disconnect());
111
+ lt(() => {
112
+ M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect());
113
113
  });
114
- function ce() {
115
- const t = Se({
116
- userConfig: d.config,
117
- defaultConfig: je
114
+ function ve() {
115
+ const t = ze({
116
+ userConfig: y.config,
117
+ defaultConfig: Re
118
118
  });
119
119
  let a = {};
120
120
  return t.theme ? a = {
121
- ...Se({
122
- userConfig: xt.vue_ui_history_plot[t.theme] || d.config,
121
+ ...ze({
122
+ userConfig: pt.vue_ui_history_plot[t.theme] || y.config,
123
123
  defaultConfig: t
124
124
  }),
125
- customPalette: ft[t.theme] || G
126
- } : a = t, d.config && V(d.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = d.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, d.config && V(d.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = d.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, d.config && V(d.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = d.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, d.config && V(d.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = d.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
125
+ customPalette: xt[t.theme] || V
126
+ } : a = t, y.config && q(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && q(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && q(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && q(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
127
127
  }
128
128
  const e = f({
129
- get: () => ce(),
129
+ get: () => ve(),
130
130
  set: (t) => t
131
- }), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: he } = Ct({ config: e.value }), { svgRef: de } = _t({ config: e.value.style.chart.title });
132
- lt(() => d.config, (t) => {
133
- e.value = ce(), J.value = !e.value.userOptions.showOnChartHover, ie(), te.value += 1, se.value += 1, ae.value += 1, y.value.height = e.value.style.chart.height, y.value.width = e.value.style.chart.width, u.value.plots = e.value.style.chart.plots.radius, u.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, u.value.labels = e.value.style.chart.plots.labels.fontSize, u.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, u.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, u.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, u.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
131
+ }), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: de } = $t({ config: e.value.style.chart.title });
132
+ at(() => y.config, (t) => {
133
+ e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), le.value += 1, oe.value += 1, se.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width, u.value.plots = e.value.style.chart.plots.radius, u.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, u.value.labels = e.value.style.chart.plots.labels.fontSize, u.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, u.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, u.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, u.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
134
134
  }, { deep: !0 });
135
- const { isPrinting: ye, isImaging: fe, generatePdf: xe, generateImage: pe } = bt({
135
+ const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } = kt({
136
136
  elementId: `history_plot_${B.value}`,
137
137
  fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
138
138
  options: e.value.userOptions.print
139
- }), Re = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Be = f(() => it(e.value.customPalette)), C = h({
139
+ }), Be = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), We = f(() => ct(e.value.customPalette)), C = h({
140
140
  showTable: e.value.table.show,
141
141
  showTooltip: e.value.style.chart.tooltip.show
142
- }), y = h({
142
+ }), d = h({
143
143
  height: e.value.style.chart.height,
144
144
  width: e.value.style.chart.width
145
145
  }), n = f(() => {
@@ -147,10 +147,10 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
147
147
  return {
148
148
  left: t,
149
149
  top: a,
150
- right: y.value.width - e.value.style.chart.padding.right,
151
- bottom: y.value.height - e.value.style.chart.padding.bottom,
152
- width: y.value.width - t - e.value.style.chart.padding.right,
153
- height: y.value.height - a - e.value.style.chart.padding.bottom
150
+ right: d.value.width - e.value.style.chart.padding.right,
151
+ bottom: d.value.height - e.value.style.chart.padding.bottom,
152
+ width: d.value.width - t - e.value.style.chart.padding.right,
153
+ height: d.value.height - a - e.value.style.chart.padding.bottom
154
154
  };
155
155
  }), u = h({
156
156
  plots: e.value.style.chart.plots.radius,
@@ -160,26 +160,26 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
160
160
  xAxisName: e.value.style.chart.axes.x.name.fontSize,
161
161
  yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
162
162
  yAxisName: e.value.style.chart.axes.y.name.fontSize
163
- }), T = f(() => w.value ? d.dataset.map((t, a) => ({
163
+ }), A = f(() => w.value ? y.dataset.map((t, a) => ({
164
164
  ...t,
165
- color: t.color ? ct(t.color) : Be.value[a] || G[a] || G[a % G.length],
165
+ color: t.color ? vt(t.color) : We.value[a] || V[a] || V[a % V.length],
166
166
  seriesIndex: a
167
- })) : []), We = f(() => w.value ? Math.max(...T.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Ee = f(() => {
167
+ })) : []), Ee = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), He = f(() => {
168
168
  if (!w.value) return 1;
169
- const t = Math.min(...T.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
169
+ const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
170
170
  return t < 0 ? t : 0;
171
- }), He = f(() => w.value ? Math.max(...T.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ue = f(() => {
171
+ }), Ue = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ge = f(() => {
172
172
  if (!w.value) return 1;
173
- const t = Math.min(...T.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
173
+ const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
174
174
  return t < 0 ? t : 0;
175
175
  }), p = f(() => {
176
- const t = Te(
177
- e.value.style.chart.axes.x.scaleMin === null ? Ee.value : e.value.style.chart.axes.x.scaleMin,
178
- e.value.style.chart.axes.x.scaleMax === null ? We.value : e.value.style.chart.axes.x.scaleMax,
176
+ const t = Se(
177
+ e.value.style.chart.axes.x.scaleMin === null ? He.value : e.value.style.chart.axes.x.scaleMin,
178
+ e.value.style.chart.axes.x.scaleMax === null ? Ee.value : e.value.style.chart.axes.x.scaleMax,
179
179
  e.value.style.chart.axes.x.ticks
180
- ), a = Te(
181
- e.value.style.chart.axes.y.scaleMin === null ? Ue.value : e.value.style.chart.axes.y.scaleMin,
182
- e.value.style.chart.axes.y.scaleMax === null ? He.value : e.value.style.chart.axes.y.scaleMax,
180
+ ), a = Se(
181
+ e.value.style.chart.axes.y.scaleMin === null ? Ge.value : e.value.style.chart.axes.y.scaleMin,
182
+ e.value.style.chart.axes.y.scaleMax === null ? Ue.value : e.value.style.chart.axes.y.scaleMax,
183
183
  e.value.style.chart.axes.y.ticks
184
184
  );
185
185
  return {
@@ -199,24 +199,24 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
199
199
  }))
200
200
  };
201
201
  });
202
- function Ge(t) {
202
+ function Ve(t) {
203
203
  const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
204
204
  return n.value.left + ((t || 0) + a) / (p.value.x.max + a) * n.value.width;
205
205
  }
206
- function Ve(t) {
206
+ function qe(t) {
207
207
  const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
208
208
  return n.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * n.value.height;
209
209
  }
210
- const L = f(() => T.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
211
- const l = t.values.map((o, _) => ({
210
+ const z = f(() => A.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
211
+ const l = t.values.map((o, L) => ({
212
212
  valueX: o.x,
213
213
  valueY: o.y,
214
214
  label: o.label,
215
- x: Ge(o.x),
216
- y: Ve(o.y),
215
+ x: Ve(o.x),
216
+ y: qe(o.y),
217
217
  color: t.color,
218
218
  seriesName: t.name,
219
- id: Me()
219
+ id: Ae()
220
220
  })), c = l.map((o) => `${o.x},${o.y} `).join("").trim();
221
221
  return {
222
222
  ...t,
@@ -224,16 +224,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
224
224
  path: `M${c}`
225
225
  };
226
226
  }));
227
- function me(t) {
227
+ function ge(t) {
228
228
  g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
229
229
  }
230
- const ge = f(() => T.value.map((t) => ({
230
+ const be = f(() => A.value.map((t) => ({
231
231
  ...t,
232
232
  opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
233
- segregate: () => me(t.seriesIndex),
233
+ segregate: () => ge(t.seriesIndex),
234
234
  isSegregated: g.value.includes(t.seriesIndex),
235
235
  shape: "circle"
236
- }))), qe = f(() => ({
236
+ }))), Ze = f(() => ({
237
237
  cy: "history-plot-div-legend",
238
238
  backgroundColor: e.value.style.chart.legend.backgroundColor,
239
239
  color: e.value.style.chart.legend.color,
@@ -241,33 +241,33 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
241
241
  paddingBottom: 12,
242
242
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
243
243
  }));
244
- function Ze(t) {
245
- ue("selectDatapoint", t);
244
+ function Je(t) {
245
+ ie("selectDatapoint", t);
246
246
  }
247
- function be(t) {
248
- ue("selectLegend", {
247
+ function ke(t) {
248
+ ie("selectLegend", {
249
249
  ...t,
250
250
  isSegregated: !t.isSegregated,
251
251
  opacity: t.isSegregated ? 1 : 0.5
252
252
  });
253
253
  }
254
- function Je(t) {
255
- E.value = t, oe.value += 1;
254
+ function Ke(t) {
255
+ E.value = t, re.value += 1;
256
256
  }
257
- const K = h(null);
258
- function Ke({ datapoint: t, plotIndex: a, seriesIndex: l }) {
259
- K.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: T.value }, $.value = t;
257
+ const Q = h(null);
258
+ function Qe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
259
+ Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: A.value }, _.value = t;
260
260
  const c = e.value.style.chart.tooltip.customFormat;
261
- if (W.value = !1, gt(c))
261
+ if (W.value = !1, bt(c))
262
262
  try {
263
263
  const o = c({
264
264
  seriesIndex: l,
265
265
  datapoint: t,
266
266
  plotIndex: a,
267
- series: T.value,
267
+ series: A.value,
268
268
  config: e.value
269
269
  });
270
- typeof o == "string" && (Z.value = o, W.value = !0);
270
+ typeof o == "string" && (J.value = o, W.value = !0);
271
271
  } catch {
272
272
  console.warn("Custom format cannot be applied."), W.value = !1;
273
273
  }
@@ -291,11 +291,11 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
291
291
  s: e.value.style.chart.axes.y.labels.suffix,
292
292
  r: e.value.style.chart.axes.y.labels.rounding
293
293
  })
294
- )}</div>`, Z.value = `<div>${o}</div>`;
294
+ )}</div>`, J.value = `<div>${o}</div>`;
295
295
  }
296
- q.value = !0;
296
+ Z.value = !0;
297
297
  }
298
- f(() => ({ head: L.value.map((a) => ({
298
+ f(() => ({ head: z.value.map((a) => ({
299
299
  name: a.name,
300
300
  color: a.color
301
301
  })) }));
@@ -305,7 +305,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
305
305
  e.value.table.columnNames.datapoint,
306
306
  e.value.table.columnNames.x,
307
307
  e.value.table.columnNames.y
308
- ], a = L.value.flatMap((c) => c.plots.map((o) => [
308
+ ], a = z.value.flatMap((c) => c.plots.map((o) => [
309
309
  {
310
310
  color: o.color,
311
311
  name: o.seriesName
@@ -351,84 +351,84 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
351
351
  colNames: t
352
352
  };
353
353
  });
354
- function ke() {
355
- ot(() => {
356
- const t = [
354
+ function we(t = null) {
355
+ rt(() => {
356
+ const a = [
357
357
  [e.value.table.columnNames.series],
358
358
  [e.value.table.columnNames.datapoint],
359
359
  [e.value.table.columnNames.x],
360
360
  [e.value.table.columnNames.y]
361
- ], a = L.value.flatMap((o) => o.plots.map((_) => [
362
- [_.seriesName],
363
- [_.label],
364
- [_.valueX],
365
- [_.valueY]
366
- ])), l = [
361
+ ], l = z.value.flatMap((L) => L.plots.map((G) => [
362
+ [G.seriesName],
363
+ [G.label],
364
+ [G.valueX],
365
+ [G.valueY]
366
+ ])), c = [
367
367
  [e.value.style.chart.title.text],
368
368
  [e.value.style.chart.title.subtitle.text],
369
- t
370
- ].concat(a), c = pt(l);
371
- mt({
372
- csvContent: c,
369
+ a
370
+ ].concat(l), o = mt(c);
371
+ t ? t(o) : gt({
372
+ csvContent: o,
373
373
  title: e.value.style.chart.title.text || "vue-ui-history-plot"
374
374
  });
375
375
  });
376
376
  }
377
377
  const U = h(!1);
378
- function Q() {
378
+ function ee() {
379
379
  U.value = !U.value;
380
380
  }
381
- function we() {
381
+ function Ce() {
382
382
  C.value.showTable = !C.value.showTable;
383
383
  }
384
- function Ce() {
384
+ function _e() {
385
385
  C.value.showTooltip = !C.value.showTooltip;
386
386
  }
387
- function Qe() {
388
- return L.value;
387
+ function et() {
388
+ return z.value;
389
389
  }
390
- return Le({
391
- getData: Qe,
392
- generatePdf: xe,
393
- generateCsv: ke,
394
- generateImage: pe,
395
- toggleTable: we,
396
- toggleTooltip: Ce,
397
- toggleAnnotator: Q
390
+ return Ne({
391
+ getData: et,
392
+ generatePdf: pe,
393
+ generateCsv: we,
394
+ generateImage: me,
395
+ toggleTable: Ce,
396
+ toggleTooltip: _e,
397
+ toggleAnnotator: ee
398
398
  }), (t, a) => (s(), r("div", {
399
399
  id: `history_plot_${B.value}`,
400
400
  ref_key: "historyPlotChart",
401
401
  ref: R,
402
402
  class: F({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": E.value }),
403
- style: M(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
404
- onMouseenter: a[3] || (a[3] = () => i(ve)(!0)),
405
- onMouseleave: a[4] || (a[4] = () => i(ve)(!1))
403
+ style: $(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
404
+ onMouseenter: a[3] || (a[3] = () => i(he)(!0)),
405
+ onMouseleave: a[4] || (a[4] = () => i(he)(!1))
406
406
  }, [
407
407
  x(t.$slots, "userConfig", {}, void 0, !0),
408
- e.value.userOptions.buttons.annotator ? (s(), O(i(Fe), {
408
+ e.value.userOptions.buttons.annotator ? (s(), O(i(Xe), {
409
409
  key: 0,
410
410
  svgRef: i(de),
411
411
  backgroundColor: e.value.style.chart.backgroundColor,
412
412
  color: e.value.style.chart.color,
413
413
  active: U.value,
414
- onClose: Q
414
+ onClose: ee
415
415
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
416
- Re.value ? (s(), r("div", {
416
+ Be.value ? (s(), r("div", {
417
417
  key: 1,
418
418
  ref_key: "noTitle",
419
- ref: re,
419
+ ref: ne,
420
420
  class: "vue-data-ui-no-title-space",
421
421
  style: "height:36px; width: 100%;background:transparent"
422
422
  }, null, 512)) : v("", !0),
423
423
  e.value.style.chart.title.text ? (s(), r("div", {
424
424
  key: 2,
425
425
  ref_key: "chartTitle",
426
- ref: ee,
426
+ ref: te,
427
427
  class: "vue-ui-xy-title",
428
- style: M(`font-family:${e.value.style.fontFamily}`)
428
+ style: $(`font-family:${e.value.style.fontFamily}`)
429
429
  }, [
430
- (s(), O(Mt, {
431
- key: `title_${te.value}`,
430
+ (s(), O(At, {
431
+ key: `title_${le.value}`,
432
432
  config: {
433
433
  title: {
434
434
  cy: "history-plot-div-title",
@@ -441,13 +441,13 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
441
441
  }
442
442
  }, null, 8, ["config"]))
443
443
  ], 4)) : v("", !0),
444
- e.value.userOptions.show && w.value && (i(he) || i(J)) ? (s(), O(i(Ye), {
444
+ e.value.userOptions.show && w.value && (i(ye) || i(K)) ? (s(), O(i(je), {
445
445
  ref: "details",
446
- key: `user_option_${oe.value}`,
446
+ key: `user_option_${re.value}`,
447
447
  backgroundColor: e.value.style.chart.backgroundColor,
448
448
  color: e.value.style.chart.color,
449
- isPrinting: i(ye),
450
- isImaging: i(fe),
449
+ isPrinting: i(fe),
450
+ isImaging: i(xe),
451
451
  uid: B.value,
452
452
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
453
453
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -463,17 +463,18 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
463
463
  titles: { ...e.value.userOptions.buttonTitles },
464
464
  hasAnnotator: e.value.userOptions.buttons.annotator,
465
465
  isAnnotation: U.value,
466
- onToggleFullscreen: Je,
467
- onGeneratePdf: i(xe),
468
- onGenerateCsv: ke,
469
- onGenerateImage: i(pe),
470
- onToggleTable: we,
471
- onToggleTooltip: Ce,
472
- onToggleAnnotator: Q,
473
- style: M({
474
- visibility: i(he) ? i(J) ? "visible" : "hidden" : "visible"
466
+ callbacks: e.value.userOptions.callbacks,
467
+ onToggleFullscreen: Ke,
468
+ onGeneratePdf: i(pe),
469
+ onGenerateCsv: we,
470
+ onGenerateImage: i(me),
471
+ onToggleTable: Ce,
472
+ onToggleTooltip: _e,
473
+ onToggleAnnotator: ee,
474
+ style: $({
475
+ visibility: i(ye) ? i(K) ? "visible" : "hidden" : "visible"
475
476
  })
476
- }, at({ _: 2 }, [
477
+ }, st({ _: 2 }, [
477
478
  t.$slots.menuIcon ? {
478
479
  name: "menuIcon",
479
480
  fn: m(({ isOpen: l, color: c }) => [
@@ -530,16 +531,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
530
531
  ]),
531
532
  key: "7"
532
533
  } : void 0
533
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
534
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
534
535
  w.value ? (s(), r("svg", {
535
536
  key: 4,
536
537
  ref_key: "svgRef",
537
538
  ref: de,
538
- xmlns: i(vt),
539
- viewBox: `0 0 ${y.value.width < 0 ? 0.1 : y.value.width} ${y.value.height < 0 ? 0.1 : y.value.height}`,
540
- style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
539
+ xmlns: i(ht),
540
+ viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
541
+ style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
541
542
  }, [
542
- $e(i(Ie)),
543
+ Me(i(Fe)),
543
544
  t.$slots["chart-background"] ? (s(), r("foreignObject", {
544
545
  key: 0,
545
546
  x: n.value.left,
@@ -551,27 +552,27 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
551
552
  }
552
553
  }, [
553
554
  x(t.$slots, "chart-background", {}, void 0, !0)
554
- ], 8, zt)) : v("", !0),
555
- e.value.style.chart.plots.gradient.show ? (s(), r("defs", Lt, [
556
- (s(!0), r(b, null, k(L.value, (l, c) => (s(), r("radialGradient", {
555
+ ], 8, Lt)) : v("", !0),
556
+ e.value.style.chart.plots.gradient.show ? (s(), r("defs", Nt, [
557
+ (s(!0), r(b, null, k(z.value, (l, c) => (s(), r("radialGradient", {
557
558
  id: `gradient_${c}_${B.value}`,
558
559
  fy: "30%"
559
560
  }, [
560
- S("stop", {
561
+ T("stop", {
561
562
  offset: "10%",
562
- "stop-color": i(ht)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
563
- }, null, 8, Ot),
564
- S("stop", {
563
+ "stop-color": i(yt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
564
+ }, null, 8, Pt),
565
+ T("stop", {
565
566
  offset: "90%",
566
567
  "stop-color": i(dt)(l.color, 0.1)
567
- }, null, 8, Pt),
568
- S("stop", {
568
+ }, null, 8, It),
569
+ T("stop", {
569
570
  offset: "100%",
570
571
  "stop-color": l.color
571
- }, null, 8, It)
572
- ], 8, Nt))), 256))
572
+ }, null, 8, Ft)
573
+ ], 8, Ot))), 256))
573
574
  ])) : v("", !0),
574
- e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Ft, [
575
+ e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Xt, [
575
576
  (s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("line", {
576
577
  x1: l.x,
577
578
  x2: l.x,
@@ -580,16 +581,16 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
580
581
  stroke: e.value.style.chart.grid.verticalLines.stroke,
581
582
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
582
583
  "stroke-linecap": "round"
583
- }, null, 8, Xt))), 256))
584
+ }, null, 8, Dt))), 256))
584
585
  ])) : v("", !0),
585
- e.value.style.chart.axes.y.labels.show ? (s(), r("g", Dt, [
586
+ e.value.style.chart.axes.y.labels.show ? (s(), r("g", Yt, [
586
587
  (s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("text", {
587
588
  x: n.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
588
589
  y: l.y + u.value.yAxisLabels / 3,
589
590
  fill: e.value.style.chart.axes.y.labels.color,
590
591
  "font-size": u.value.yAxisLabels,
591
592
  "text-anchor": "end"
592
- }, z(i(Y)(
593
+ }, S(i(Y)(
593
594
  e.value.style.chart.axes.y.labels.formatter,
594
595
  l.value,
595
596
  i(j)({
@@ -598,17 +599,17 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
598
599
  s: e.value.style.chart.axes.y.labels.suffix,
599
600
  r: e.value.style.chart.axes.y.labels.rounding
600
601
  })
601
- )), 9, Yt))), 256))
602
+ )), 9, jt))), 256))
602
603
  ])) : v("", !0),
603
604
  e.value.style.chart.axes.y.name.text ? (s(), r("text", {
604
605
  key: 4,
605
- transform: `translate(${e.value.style.chart.axes.y.name.offsetX + u.value.yAxisName}, ${y.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
606
+ transform: `translate(${e.value.style.chart.axes.y.name.offsetX + u.value.yAxisName}, ${d.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
606
607
  "font-size": u.value.yAxisName,
607
608
  fill: e.value.style.chart.axes.y.name.color,
608
609
  "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
609
610
  "text-anchor": "middle"
610
- }, z(e.value.style.chart.axes.y.name.text), 9, jt)) : v("", !0),
611
- e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", Rt, [
611
+ }, S(e.value.style.chart.axes.y.name.text), 9, Rt)) : v("", !0),
612
+ e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", Bt, [
612
613
  (s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("line", {
613
614
  x1: l.x1,
614
615
  x2: l.x2,
@@ -617,15 +618,15 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
617
618
  stroke: e.value.style.chart.grid.horizontalLines.stroke,
618
619
  "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
619
620
  "stroke-linecap": "round"
620
- }, null, 8, Bt))), 256))
621
+ }, null, 8, Wt))), 256))
621
622
  ])) : v("", !0),
622
- e.value.style.chart.axes.x.labels.show ? (s(), r("g", Wt, [
623
+ e.value.style.chart.axes.x.labels.show ? (s(), r("g", Et, [
623
624
  (s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("text", {
624
625
  transform: `translate(${l.x}, ${n.value.bottom + e.value.style.chart.axes.x.labels.offsetY + u.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
625
626
  fill: e.value.style.chart.axes.x.labels.color,
626
627
  "font-size": u.value.xAxisLabels,
627
628
  "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
628
- }, z(i(Y)(
629
+ }, S(i(Y)(
629
630
  e.value.style.chart.axes.x.labels.formatter,
630
631
  l.value,
631
632
  i(j)({
@@ -634,17 +635,17 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
634
635
  s: e.value.style.chart.axes.x.labels.suffix,
635
636
  r: e.value.style.chart.axes.x.labels.rounding
636
637
  })
637
- )), 9, Et))), 256))
638
+ )), 9, Ht))), 256))
638
639
  ])) : v("", !0),
639
640
  e.value.style.chart.axes.x.name.text ? (s(), r("text", {
640
641
  key: 7,
641
- x: y.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
642
- y: y.value.height + e.value.style.chart.axes.x.name.offsetY,
642
+ x: d.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
643
+ y: d.value.height + e.value.style.chart.axes.x.name.offsetY,
643
644
  "font-size": u.value.xAxisName,
644
645
  fill: e.value.style.chart.axes.x.name.color,
645
646
  "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
646
647
  "text-anchor": "middle"
647
- }, z(e.value.style.chart.axes.x.name.text), 9, Ht)) : v("", !0),
648
+ }, S(e.value.style.chart.axes.x.name.text), 9, Ut)) : v("", !0),
648
649
  e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
649
650
  key: 8,
650
651
  x1: n.value.left,
@@ -654,7 +655,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
654
655
  stroke: e.value.style.chart.grid.xAxis.stroke,
655
656
  "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
656
657
  "stroke-linecap": "round"
657
- }, null, 8, Ut)) : v("", !0),
658
+ }, null, 8, Gt)) : v("", !0),
658
659
  e.value.style.chart.grid.yAxis.show ? (s(), r("line", {
659
660
  key: 9,
660
661
  x1: n.value.left,
@@ -664,15 +665,15 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
664
665
  stroke: e.value.style.chart.grid.yAxis.stroke,
665
666
  "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
666
667
  "stroke-linecap": "round"
667
- }, null, 8, Gt)) : v("", !0),
668
- (s(!0), r(b, null, k(L.value, (l, c) => (s(), r("g", null, [
668
+ }, null, 8, Vt)) : v("", !0),
669
+ (s(!0), r(b, null, k(z.value, (l, c) => (s(), r("g", null, [
669
670
  e.value.style.chart.paths.show ? (s(), r("g", {
670
671
  key: 0,
671
- style: M({
672
- opacity: $.value === null ? 1 : 0.3
672
+ style: $({
673
+ opacity: _.value === null ? 1 : 0.3
673
674
  })
674
675
  }, [
675
- S("path", {
676
+ T("path", {
676
677
  d: l.path,
677
678
  stroke: e.value.style.chart.backgroundColor,
678
679
  "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
@@ -680,8 +681,8 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
680
681
  "stroke-linecap": "round",
681
682
  "stroke-linejoin": "round",
682
683
  class: F({ animated: e.value.useCssAnimation })
683
- }, null, 10, Vt),
684
- S("path", {
684
+ }, null, 10, qt),
685
+ T("path", {
685
686
  d: l.path,
686
687
  stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
687
688
  "stroke-width": e.value.style.chart.paths.strokeWidth,
@@ -689,7 +690,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
689
690
  "stroke-linecap": "round",
690
691
  "stroke-linejoin": "round",
691
692
  class: F({ animated: e.value.useCssAnimation })
692
- }, null, 10, qt)
693
+ }, null, 10, Zt)
693
694
  ], 4)) : v("", !0),
694
695
  (s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
695
696
  cx: o.x,
@@ -697,7 +698,7 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
697
698
  fill: e.value.style.chart.backgroundColor,
698
699
  r: u.value.plots,
699
700
  stroke: "none"
700
- }, null, 8, Zt))), 256)),
701
+ }, null, 8, Jt))), 256)),
701
702
  (s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
702
703
  cx: o.x,
703
704
  cy: o.y,
@@ -706,12 +707,12 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
706
707
  stroke: e.value.style.chart.plots.stroke,
707
708
  "stroke-width": e.value.style.chart.plots.strokeWidth,
708
709
  class: F({ animated: e.value.useCssAnimation }),
709
- style: M({
710
- opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
710
+ style: $({
711
+ opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
711
712
  transition: "opacity 0.2s ease-in-out"
712
713
  })
713
- }, null, 14, Jt))), 256)),
714
- e.value.style.chart.plots.labels.show ? (s(), r("g", Kt, [
714
+ }, null, 14, Kt))), 256)),
715
+ e.value.style.chart.plots.labels.show ? (s(), r("g", Qt, [
715
716
  (s(!0), r(b, null, k(l.plots, (o) => (s(), r("text", {
716
717
  x: o.x + e.value.style.chart.plots.labels.offsetX,
717
718
  y: o.y + e.value.style.chart.plots.labels.offsetY + u.value.plots + u.value.labels,
@@ -720,52 +721,52 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
720
721
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
721
722
  "text-anchor": "middle",
722
723
  class: F({ animated: e.value.useCssAnimation }),
723
- style: M({
724
- opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
724
+ style: $({
725
+ opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
725
726
  transition: "opacity 0.2s ease-in-out"
726
727
  })
727
- }, z(o.label), 15, Qt))), 256))
728
+ }, S(o.label), 15, el))), 256))
728
729
  ])) : v("", !0),
729
- e.value.style.chart.plots.indexLabels.show ? (s(), r("g", el, [
730
- (s(!0), r(b, null, k(l.plots, (o, _) => (s(), r("text", {
730
+ e.value.style.chart.plots.indexLabels.show ? (s(), r("g", tl, [
731
+ (s(!0), r(b, null, k(l.plots, (o, L) => (s(), r("text", {
731
732
  x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
732
733
  y: o.y + e.value.style.chart.plots.indexLabels.offsetY + u.value.indexLabels / 3,
733
734
  "font-size": u.value.indexLabels,
734
735
  "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
735
- fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(yt)(l.color) : e.value.style.chart.plots.indexLabels.color,
736
+ fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(ft)(l.color) : e.value.style.chart.plots.indexLabels.color,
736
737
  "text-anchor": "middle",
737
738
  class: F({ animated: e.value.useCssAnimation }),
738
- style: M({
739
- opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
739
+ style: $({
740
+ opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
740
741
  transition: "opacity 0.2s ease-in-out"
741
742
  })
742
- }, z(e.value.style.chart.plots.indexLabels.startAtZero ? _ : _ + 1), 15, tl))), 256))
743
+ }, S(e.value.style.chart.plots.indexLabels.startAtZero ? L : L + 1), 15, ll))), 256))
743
744
  ])) : v("", !0)
744
745
  ]))), 256)),
745
- (s(!0), r(b, null, k(L.value, (l) => (s(), r("g", null, [
746
+ (s(!0), r(b, null, k(z.value, (l) => (s(), r("g", null, [
746
747
  (s(!0), r(b, null, k(l.plots, (c, o) => (s(), r("circle", {
747
748
  cx: c.x,
748
749
  cy: c.y,
749
750
  fill: "transparent",
750
751
  r: u.value.plots,
751
752
  stroke: "none",
752
- onMouseenter: (_) => Ke({
753
+ onMouseenter: (L) => Qe({
753
754
  datapoint: c,
754
755
  plotIndex: o,
755
756
  seriesIndex: l.seriesIndex
756
757
  }),
757
- onMouseleave: a[0] || (a[0] = (_) => {
758
- q.value = !1, $.value = null;
758
+ onMouseleave: a[0] || (a[0] = (L) => {
759
+ Z.value = !1, _.value = null;
759
760
  }),
760
- onClick: () => Ze(c)
761
- }, null, 40, ll))), 256))
761
+ onClick: () => Je(c)
762
+ }, null, 40, al))), 256))
762
763
  ]))), 256)),
763
- x(t.$slots, "svg", { svg: y.value }, void 0, !0)
764
- ], 12, St)) : v("", !0),
765
- t.$slots.watermark ? (s(), r("div", al, [
766
- x(t.$slots, "watermark", X(D({ isPrinting: i(ye) || i(fe) })), void 0, !0)
764
+ x(t.$slots, "svg", { svg: d.value }, void 0, !0)
765
+ ], 12, zt)) : v("", !0),
766
+ t.$slots.watermark ? (s(), r("div", sl, [
767
+ x(t.$slots, "watermark", X(D({ isPrinting: i(fe) || i(xe) })), void 0, !0)
767
768
  ])) : v("", !0),
768
- w.value ? v("", !0) : (s(), O(i(Xe), {
769
+ w.value ? v("", !0) : (s(), O(i(De), {
769
770
  key: 6,
770
771
  config: {
771
772
  type: "historyPlot",
@@ -777,42 +778,42 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
777
778
  }
778
779
  }
779
780
  }, null, 8, ["config"])),
780
- S("div", {
781
+ T("div", {
781
782
  ref_key: "chartLegend",
782
- ref: le
783
+ ref: ae
783
784
  }, [
784
- e.value.style.chart.legend.show && w.value ? (s(), O($t, {
785
- key: `legend_${ae.value}`,
786
- legendSet: ge.value,
787
- config: qe.value,
785
+ e.value.style.chart.legend.show && w.value ? (s(), O(Mt, {
786
+ key: `legend_${se.value}`,
787
+ legendSet: be.value,
788
+ config: Ze.value,
788
789
  onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
789
- me(l.seriesIndex), be(l);
790
+ ge(l.seriesIndex), ke(l);
790
791
  })
791
792
  }, {
792
793
  item: m(({ legend: l, index: c }) => [
793
- S("div", {
794
+ T("div", {
794
795
  onClick: (o) => {
795
- l.segregate(), be(l);
796
+ l.segregate(), ke(l);
796
797
  },
797
- style: M(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
798
- }, z(l.name), 13, sl)
798
+ style: $(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
799
+ }, S(l.name), 13, ol)
799
800
  ]),
800
801
  _: 1
801
802
  }, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
802
803
  key: 1,
803
- legend: ge.value
804
+ legend: be.value
804
805
  }, void 0, !0)
805
806
  ], 512),
806
807
  t.$slots.source ? (s(), r("div", {
807
808
  key: 7,
808
809
  ref_key: "source",
809
- ref: ne,
810
+ ref: ue,
810
811
  dir: "auto"
811
812
  }, [
812
813
  x(t.$slots, "source", {}, void 0, !0)
813
814
  ], 512)) : v("", !0),
814
- $e(i(De), {
815
- show: C.value.showTooltip && q.value,
815
+ Me(i(Ye), {
816
+ show: C.value.showTooltip && Z.value,
816
817
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
817
818
  color: e.value.style.chart.tooltip.color,
818
819
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -823,19 +824,19 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
823
824
  position: e.value.style.chart.tooltip.position,
824
825
  offsetY: e.value.style.chart.tooltip.offsetY,
825
826
  parent: R.value,
826
- content: Z.value,
827
+ content: J.value,
827
828
  isCustom: W.value,
828
829
  isFullscreen: E.value
829
830
  }, {
830
831
  "tooltip-before": m(() => [
831
- x(t.$slots, "tooltip-before", X(D({ ...K.value })), void 0, !0)
832
+ x(t.$slots, "tooltip-before", X(D({ ...Q.value })), void 0, !0)
832
833
  ]),
833
834
  "tooltip-after": m(() => [
834
- x(t.$slots, "tooltip-after", X(D({ ...K.value })), void 0, !0)
835
+ x(t.$slots, "tooltip-after", X(D({ ...Q.value })), void 0, !0)
835
836
  ]),
836
837
  _: 3
837
838
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
838
- w.value ? (s(), O(i(Oe), {
839
+ w.value ? (s(), O(i(Pe), {
839
840
  key: 8,
840
841
  hideDetails: "",
841
842
  config: {
@@ -852,8 +853,8 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
852
853
  }
853
854
  }, {
854
855
  content: m(() => [
855
- (s(), O(i(Pe), {
856
- key: `table_${se.value}`,
856
+ (s(), O(i(Ie), {
857
+ key: `table_${oe.value}`,
857
858
  colNames: H.value.colNames,
858
859
  head: H.value.head,
859
860
  body: H.value.body,
@@ -862,22 +863,22 @@ const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"]
862
863
  onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
863
864
  }, {
864
865
  th: m(({ th: l }) => [
865
- S("div", {
866
+ T("div", {
866
867
  innerHTML: l,
867
868
  style: { display: "flex", "align-items": "center" }
868
- }, null, 8, ol)
869
+ }, null, 8, rl)
869
870
  ]),
870
871
  td: m(({ td: l }) => [
871
- st(z(l.name || l), 1)
872
+ ot(S(l.name || l), 1)
872
873
  ]),
873
874
  _: 1
874
875
  }, 8, ["colNames", "head", "body", "config", "title"]))
875
876
  ]),
876
877
  _: 1
877
878
  }, 8, ["config"])) : v("", !0)
878
- ], 46, Tt));
879
+ ], 46, St));
879
880
  }
880
- }, pl = /* @__PURE__ */ At(rl, [["__scopeId", "data-v-ddbf7b9c"]]);
881
+ }, ml = /* @__PURE__ */ Tt(nl, [["__scopeId", "data-v-c53613f6"]]);
881
882
  export {
882
- pl as default
883
+ ml as default
883
884
  };