vue-data-ui 3.0.22 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as R, ref as v, shallowRef as Xe, computed as d, onMounted as wt, onBeforeUnmount as At, toRefs as Ct, watch as ie, watchEffect as _t, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as _, normalizeClass as P, renderSlot as p, createBlock as N, createCommentVNode as h, createElementVNode as L, createVNode as Re, createSlots as Lt, withCtx as m, normalizeProps as Y, guardReactiveProps as D, Fragment as g, renderList as b, toDisplayString as O, Teleport as $t, createTextVNode as St, nextTick as Tt } from "vue";
2
- import { u as Mt, c as Ye, o as De, f as Be, g as zt, t as Nt, d as Ot, e as It, p as Z, D as Ee, k as B, i as E, X as Pt, l as Ft, j as Xt, I as Rt, F as Yt, E as F, a as Dt, b as Bt, C as J, v as Et, w as Ht, y as jt } from "./index-BHb_mcWF.js";
3
- import { t as He, u as Wt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ut, B as Gt } from "./useLoading-D7YHNtLX.js";
5
- import { u as Vt } from "./usePrinter-B7rhbRrT.js";
6
- import { u as je } from "./useNestedProp-aC9S6EFJ.js";
7
- import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as Jt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import Kt from "./Legend-DkU3at-b.js";
11
- import Qt from "./Title-BL-IjQmj.js";
12
- import el from "./img-DsVqerdt.js";
13
- import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "width", "height"], rl = { key: 1 }, nl = ["id"], il = ["stop-color"], ul = ["stop-color"], cl = ["stop-color"], vl = { key: 2 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = { key: 3 }, dl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], fl = ["x", "y", "fill", "font-size"], xl = ["transform", "font-size", "fill", "font-weight"], pl = { key: 6 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = { key: 7 }, bl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], kl = ["transform", "fill", "font-size", "text-anchor"], wl = ["x", "y", "font-size", "fill", "font-weight"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["d", "stroke", "stroke-width"], Ll = ["d", "stroke", "stroke-width"], $l = ["cx", "cy", "fill", "r"], Sl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Tl = { key: 1 }, Ml = ["x", "y", "font-size", "fill", "font-weight"], zl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Nl = { key: 2 }, Ol = ["x", "y", "font-size", "font-weight", "fill"], Il = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Pl = {
1
+ import { defineAsyncComponent as O, ref as v, shallowRef as Re, computed as y, onMounted as St, onBeforeUnmount as Tt, toRefs as Mt, watch as K, watchEffect as zt, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as $, normalizeClass as F, renderSlot as p, createBlock as I, createCommentVNode as h, createElementVNode as _, createVNode as he, createSlots as Ye, withCtx as m, normalizeProps as B, guardReactiveProps as R, Fragment as b, renderList as g, toDisplayString as T, Teleport as Nt, resolveDynamicComponent as Ot, mergeProps as It, createTextVNode as Ee, nextTick as Pt } from "vue";
2
+ import { u as Ft, c as He, o as We, f as je, g as Dt, t as Xt, d as Bt, e as Rt, p as Q, D as Ue, k as Y, i as E, X as Yt, l as Et, j as Ht, I as Wt, F as jt, E as D, a as Ut, b as Gt, C as ee, v as Vt, w as qt, y as Zt } from "./index-CDQbCd41.js";
3
+ import { t as Ge, u as Jt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Kt, B as Qt } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as el } from "./usePrinter-Bnl1YeUU.js";
6
+ import { u as Ve } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as al } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import sl from "./img-JOqdlnUs.js";
11
+ import ol from "./Title-Dq2_Z9kR.js";
12
+ import rl from "./Legend-2-dC7DVb.js";
13
+ import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "width", "height"], hl = { key: 1 }, dl = ["id"], yl = ["stop-color"], fl = ["stop-color"], xl = ["stop-color"], pl = { key: 2 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = { key: 3 }, gl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], kl = ["x", "y", "fill", "font-size"], wl = ["transform", "font-size", "fill", "font-weight"], Cl = { key: 6 }, Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = { key: 7 }, $l = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Ll = ["transform", "fill", "font-size", "text-anchor"], Sl = ["x", "y", "font-size", "fill", "font-weight"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["d", "stroke", "stroke-width"], Nl = ["d", "stroke", "stroke-width"], Ol = ["cx", "cy", "fill", "r"], Il = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Pl = { key: 1 }, Fl = ["x", "y", "font-size", "fill", "font-weight"], Dl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Xl = { key: 2 }, Bl = ["x", "y", "font-size", "font-weight", "fill"], Rl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Yl = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Fl = ["id"], Xl = ["onClick"], Rl = ["innerHTML"], Yl = {
17
+ }, El = ["id"], Hl = ["onClick"], Wl = ["innerHTML"], jl = {
18
18
  __name: "vue-ui-history-plot",
19
19
  props: {
20
20
  config: {
@@ -31,80 +31,80 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend", "selectDatapoint"],
34
- setup(We, { expose: Ue, emit: Ge }) {
35
- const Ve = R(() => import("./vue-ui-accordion-DsnF0JuK.js")), qe = R(() => import("./DataTable-Y5T9UxMO.js")), Ze = R(() => import("./PackageVersion-CE7HSich.js")), Je = R(() => import("./PenAndPaper-BMHsOtT8.js")), Ke = R(() => import("./Tooltip-CCnDaboi.js")), Qe = R(() => import("./UserOptions-BWMV0_Ze.js")), { vue_ui_history_plot: et } = Mt(), y = We, S = v(null), ue = v(null), ce = v(0), ve = v(null), he = v(0), ye = v(0), de = v(0), T = Xe(null), X = Xe(null), fe = v(null), $ = v(Ye()), K = v(!1), Q = v(""), w = v([]), j = v(!1), A = v(null), H = v(!1), xe = v(null), pe = v(!1), ee = v(null), te = v(null), W = v(null), le = v(null), U = d({
36
- get: () => !!y.dataset && y.dataset.length,
34
+ setup(qe, { expose: Ze, emit: Je }) {
35
+ const Ke = O(() => import("./Tooltip-Y219DXZO.js")), Qe = O(() => import("./BaseIcon-DHtro8us.js")), et = O(() => import("./vue-ui-accordion-Bf_LHFFX.js")), tt = O(() => import("./DataTable-DJjA2_wf.js")), lt = O(() => import("./PenAndPaper-B7QEDgx4.js")), at = O(() => import("./UserOptions-BuGfCdAY.js")), st = O(() => import("./PackageVersion-DU12WH3O.js")), ot = O(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_history_plot: rt } = Ft(), d = qe, L = v(null), de = v(null), ye = v(0), fe = v(null), xe = v(0), pe = v(0), me = v(0), M = Re(null), X = Re(null), be = v(null), S = v(He()), te = v(!1), le = v(""), C = v([]), H = v(!1), A = v(null), W = v(!1), ge = v(null), ke = v(!1), j = v(null), ae = v(null), se = v(null), G = v(null), oe = v(null), V = y({
36
+ get: () => !!d.dataset && d.dataset.length,
37
37
  set: (t) => t
38
- }), me = Ge;
39
- wt(() => {
40
- pe.value = !0, be();
38
+ }), we = Je;
39
+ St(() => {
40
+ ke.value = !0, Ae();
41
41
  });
42
- const ge = d(() => !!e.value.debug);
43
- function be() {
44
- if (De(y.dataset) ? (Be({
42
+ const Ce = y(() => !!e.value.debug);
43
+ function Ae() {
44
+ if (We(d.dataset) ? (je({
45
45
  componentName: "VueUiHistoryPlot",
46
46
  type: "dataset",
47
- debug: ge.value
48
- }), se.value = !0) : y.dataset.forEach((t, a) => {
49
- zt({
47
+ debug: Ce.value
48
+ }), ne.value = !0) : d.dataset.forEach((t, a) => {
49
+ Dt({
50
50
  datasetObject: t,
51
51
  requiredAttributes: ["name", "values"]
52
52
  }).forEach((l) => {
53
- U.value = !1, Be({
53
+ V.value = !1, je({
54
54
  componentName: "VueUiHistoryPlot",
55
55
  type: "datasetSerieAttribute",
56
56
  property: l,
57
57
  index: a,
58
- debug: ge.value
58
+ debug: Ce.value
59
59
  });
60
60
  });
61
- }), De(y.dataset) || (se.value = e.value.loading), e.value.responsive) {
62
- const t = He(() => {
63
- const { width: a, height: l } = Wt({
64
- chart: S.value,
65
- title: e.value.style.chart.title.text ? ue.value : null,
66
- noTitle: fe.value,
67
- legend: e.value.style.chart.legend.show ? ve.value : null,
68
- source: xe.value
61
+ }), We(d.dataset) || (ne.value = e.value.loading), e.value.responsive) {
62
+ const t = Ge(() => {
63
+ const { width: a, height: l } = Jt({
64
+ chart: L.value,
65
+ title: e.value.style.chart.title.text ? de.value : null,
66
+ noTitle: be.value,
67
+ legend: e.value.style.chart.legend.show ? fe.value : null,
68
+ source: ge.value
69
69
  });
70
70
  requestAnimationFrame(() => {
71
- f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
71
+ f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = D({
72
72
  relator: Math.min(a, l),
73
73
  adjuster: 600,
74
74
  source: e.value.style.chart.plots.radius,
75
75
  threshold: 3,
76
76
  fallback: 3
77
- }), n.value.indexLabels = F({
77
+ }), n.value.indexLabels = D({
78
78
  relator: Math.min(a, l),
79
79
  adjuster: 600,
80
80
  source: e.value.style.chart.plots.indexLabels.fontSize,
81
81
  threshold: 6,
82
82
  fallback: 6
83
- }), n.value.labels = F({
83
+ }), n.value.labels = D({
84
84
  relator: Math.min(a, l),
85
85
  adjuster: 600,
86
86
  source: e.value.style.chart.plots.labels.fontSize,
87
87
  threshold: 6,
88
88
  fallback: 6
89
- }), n.value.xAxisLabels = F({
89
+ }), n.value.xAxisLabels = D({
90
90
  relator: Math.min(a, l),
91
91
  adjuster: 600,
92
92
  source: e.value.style.chart.axes.x.labels.fontSize,
93
93
  threshold: 6,
94
94
  fallback: 6
95
- }), n.value.xAxisName = F({
95
+ }), n.value.xAxisName = D({
96
96
  relator: Math.min(a, l),
97
97
  adjuster: 600,
98
98
  source: e.value.style.chart.axes.x.name.fontSize,
99
99
  threshold: 6,
100
100
  fallback: 6
101
- }), n.value.yAxisLabels = F({
101
+ }), n.value.yAxisLabels = D({
102
102
  relator: Math.min(a, l),
103
103
  adjuster: 600,
104
104
  source: e.value.style.chart.axes.y.labels.fontSize,
105
105
  threshold: 6,
106
106
  fallback: 6
107
- }), n.value.yAxisName = F({
107
+ }), n.value.yAxisName = D({
108
108
  relator: Math.min(a, l),
109
109
  adjuster: 600,
110
110
  source: e.value.style.chart.axes.y.name.fontSize,
@@ -113,30 +113,30 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
113
113
  })) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
114
114
  });
115
115
  });
116
- T.value && (X.value && T.value.unobserve(X.value), T.value.disconnect()), T.value = new ResizeObserver(t), X.value = S.value.parentNode, T.value.observe(X.value);
116
+ M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value = L.value.parentNode, M.value.observe(X.value);
117
117
  }
118
118
  }
119
- At(() => {
120
- T.value && (X.value && T.value.unobserve(X.value), T.value.disconnect());
119
+ Tt(() => {
120
+ M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect());
121
121
  });
122
- function ae() {
123
- const t = je({
124
- userConfig: y.config,
125
- defaultConfig: et
122
+ function re() {
123
+ const t = Ve({
124
+ userConfig: d.config,
125
+ defaultConfig: rt
126
126
  });
127
127
  let a = {};
128
128
  return t.theme ? a = {
129
- ...je({
130
- userConfig: Bt.vue_ui_history_plot[t.theme] || y.config,
129
+ ...Ve({
130
+ userConfig: Gt.vue_ui_history_plot[t.theme] || d.config,
131
131
  defaultConfig: t
132
132
  }),
133
- customPalette: Dt[t.theme] || Z
134
- } : a = t, y.config && J(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 && J(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 && J(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 && J(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;
133
+ customPalette: Ut[t.theme] || Q
134
+ } : a = t, d.config && ee(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 && ee(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 && ee(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 && ee(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;
135
135
  }
136
- const e = v(ae()), { loading: M, FINAL_DATASET: tt, manualLoading: se } = Ut({
137
- ...Ct(y),
136
+ const e = v(re()), { loading: z, FINAL_DATASET: nt, manualLoading: ne } = Kt({
137
+ ...Mt(d),
138
138
  FINAL_CONFIG: e,
139
- prepareConfig: ae,
139
+ prepareConfig: re,
140
140
  skeletonDataset: [
141
141
  {
142
142
  name: "",
@@ -149,7 +149,7 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
149
149
  ]
150
150
  }
151
151
  ],
152
- skeletonConfig: Nt({
152
+ skeletonConfig: Xt({
153
153
  defaultConfig: e.value,
154
154
  userConfig: {
155
155
  userOptions: { show: !1 },
@@ -201,22 +201,22 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
201
201
  }
202
202
  }
203
203
  })
204
- }), { userOptionsVisible: oe, setUserOptionsVisibility: ke, keepUserOptionState: we } = qt({ config: e.value }), { svgRef: Ae } = Zt({ config: e.value.style.chart.title });
205
- ie(() => y.config, (t) => {
206
- M.value || (e.value = ae()), oe.value = !e.value.userOptions.showOnChartHover, be(), ce.value += 1, ye.value += 1, he.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.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;
207
- }, { deep: !0 }), ie(() => y.dataset, (t) => {
208
- Array.isArray(t) && t.length > 0 && (se.value = !1);
204
+ }), { userOptionsVisible: ie, setUserOptionsVisibility: _e, keepUserOptionState: $e } = tl({ config: e.value }), { svgRef: Le } = ll({ config: e.value.style.chart.title });
205
+ K(() => d.config, (t) => {
206
+ z.value || (e.value = re()), ie.value = !e.value.userOptions.showOnChartHover, Ae(), ye.value += 1, pe.value += 1, xe.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
207
+ }, { deep: !0 }), K(() => d.dataset, (t) => {
208
+ Array.isArray(t) && t.length > 0 && (ne.value = !1);
209
209
  }, { deep: !0 });
210
- const { isPrinting: Ce, isImaging: _e, generatePdf: Le, generateImage: $e } = Vt({
211
- elementId: `history_plot_${$.value}`,
210
+ const { isPrinting: Se, isImaging: Te, generatePdf: Me, generateImage: ze } = el({
211
+ elementId: `history_plot_${S.value}`,
212
212
  fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
213
213
  options: e.value.userOptions.print
214
- }), lt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = d(() => Ot(e.value.customPalette)), C = v({
214
+ }), it = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ut = y(() => Bt(e.value.customPalette)), k = v({
215
215
  showTable: e.value.table.show,
216
216
  showTooltip: e.value.style.chart.tooltip.show
217
217
  });
218
- ie(e, () => {
219
- C.value = {
218
+ K(e, () => {
219
+ k.value = {
220
220
  showTable: e.value.table.show,
221
221
  showTooltip: e.value.style.chart.tooltip.show
222
222
  };
@@ -224,41 +224,41 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
224
224
  const f = v({
225
225
  height: e.value.style.chart.height,
226
226
  width: e.value.style.chart.width
227
- }), st = d(() => f.value.width), ot = d(() => f.value.height);
228
- function rt() {
227
+ }), ct = y(() => f.value.width), vt = y(() => f.value.height);
228
+ function ht() {
229
229
  let t = 0;
230
- le.value && (t = Array.from(le.value.querySelectorAll("text")).reduce((i, s) => {
231
- const k = s.getComputedTextLength();
232
- return k > i ? k : i;
230
+ oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((i, s) => {
231
+ const w = s.getComputedTextLength();
232
+ return w > i ? w : i;
233
233
  }, 0));
234
- const a = te.value ? te.value.getBoundingClientRect().width : 0;
234
+ const a = se.value ? se.value.getBoundingClientRect().width : 0;
235
235
  return t + a + (a ? 24 : 0);
236
236
  }
237
- const Se = v(0), nt = He((t) => {
238
- Se.value = t;
237
+ const Ne = v(0), dt = Ge((t) => {
238
+ Ne.value = t;
239
239
  });
240
- _t((t) => {
241
- const a = W.value;
240
+ zt((t) => {
241
+ const a = G.value;
242
242
  if (!a) return;
243
243
  const l = new ResizeObserver((i) => {
244
- nt(i[0].contentRect.height);
244
+ dt(i[0].contentRect.height);
245
245
  });
246
246
  l.observe(a), t(() => l.disconnect());
247
247
  });
248
- const Te = d(() => {
248
+ const Oe = y(() => {
249
249
  let t = 0;
250
- ee.value && (t = ee.value.getBBox().height + n.value.xAxisName / 2);
250
+ ae.value && (t = ae.value.getBBox().height + n.value.xAxisName / 2);
251
251
  let a = 0;
252
- return W.value && (a = Se.value), t + a;
253
- }), c = d(() => {
254
- const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = rt(), i = e.value.style.chart.plots.radius;
252
+ return G.value && (a = Ne.value), t + a;
253
+ }), c = y(() => {
254
+ const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = ht(), i = e.value.style.chart.plots.radius;
255
255
  return {
256
256
  left: t + l + e.value.style.chart.axes.y.name.offsetX,
257
257
  top: a + i,
258
258
  right: f.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
259
- bottom: f.value.height - e.value.style.chart.padding.bottom - Te.value - i - e.value.style.chart.axes.x.name.offsetY,
259
+ bottom: f.value.height - e.value.style.chart.padding.bottom - Oe.value - i - e.value.style.chart.axes.x.name.offsetY,
260
260
  width: f.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
261
- height: f.value.height - a - e.value.style.chart.padding.bottom - Te.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
261
+ height: f.value.height - a - e.value.style.chart.padding.bottom - Oe.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
262
262
  };
263
263
  }), n = v({
264
264
  plots: e.value.style.chart.plots.radius,
@@ -268,24 +268,24 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
268
268
  xAxisName: e.value.style.chart.axes.x.name.fontSize,
269
269
  yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
270
270
  yAxisName: e.value.style.chart.axes.y.name.fontSize
271
- }), z = d(() => tt.value.map((t, a) => ({
271
+ }), N = y(() => nt.value.map((t, a) => ({
272
272
  ...t,
273
- color: t.color ? It(t.color) : at.value[a] || Z[a] || Z[a % Z.length],
273
+ color: t.color ? Rt(t.color) : ut.value[a] || Q[a] || Q[a % Q.length],
274
274
  seriesIndex: a
275
- }))), it = d(() => Math.max(...z.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), ut = d(() => {
276
- const t = Math.min(...z.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
275
+ }))), yt = y(() => Math.max(...N.value.filter((t) => !C.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), ft = y(() => {
276
+ const t = Math.min(...N.value.filter((a) => !C.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
277
277
  return t < 0 ? t : 0;
278
- }), ct = d(() => Math.max(...z.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), vt = d(() => {
279
- const t = Math.min(...z.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
278
+ }), xt = y(() => Math.max(...N.value.filter((t) => !C.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), pt = y(() => {
279
+ const t = Math.min(...N.value.filter((a) => !C.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
280
280
  return t < 0 ? t : 0;
281
- }), x = d(() => {
282
- const t = Ee(
283
- e.value.style.chart.axes.x.scaleMin === null ? ut.value : e.value.style.chart.axes.x.scaleMin,
284
- e.value.style.chart.axes.x.scaleMax === null ? it.value : e.value.style.chart.axes.x.scaleMax,
281
+ }), x = y(() => {
282
+ const t = Ue(
283
+ e.value.style.chart.axes.x.scaleMin === null ? ft.value : e.value.style.chart.axes.x.scaleMin,
284
+ e.value.style.chart.axes.x.scaleMax === null ? yt.value : e.value.style.chart.axes.x.scaleMax,
285
285
  e.value.style.chart.axes.x.ticks
286
- ), a = Ee(
287
- e.value.style.chart.axes.y.scaleMin === null ? vt.value : e.value.style.chart.axes.y.scaleMin,
288
- e.value.style.chart.axes.y.scaleMax === null ? ct.value : e.value.style.chart.axes.y.scaleMax,
286
+ ), a = Ue(
287
+ e.value.style.chart.axes.y.scaleMin === null ? pt.value : e.value.style.chart.axes.y.scaleMin,
288
+ e.value.style.chart.axes.y.scaleMax === null ? xt.value : e.value.style.chart.axes.y.scaleMax,
289
289
  e.value.style.chart.axes.y.ticks
290
290
  );
291
291
  return {
@@ -305,24 +305,24 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
305
305
  }))
306
306
  };
307
307
  });
308
- function ht(t) {
308
+ function mt(t) {
309
309
  const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
310
310
  return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
311
311
  }
312
- function yt(t) {
312
+ function bt(t) {
313
313
  const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
314
314
  return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
315
315
  }
316
- const I = d(() => z.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
317
- const l = t.values.map((s, k) => ({
316
+ const P = y(() => N.value.filter((t) => !C.value.includes(t.seriesIndex)).map((t, a) => {
317
+ const l = t.values.map((s, w) => ({
318
318
  valueX: s.x,
319
319
  valueY: s.y,
320
320
  label: s.label,
321
- x: ht(s.x),
322
- y: yt(s.y),
321
+ x: mt(s.x),
322
+ y: bt(s.y),
323
323
  color: t.color,
324
324
  seriesName: t.name,
325
- id: Ye()
325
+ id: He()
326
326
  })), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
327
327
  return {
328
328
  ...t,
@@ -330,16 +330,16 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
330
330
  path: `M${i}`
331
331
  };
332
332
  }));
333
- function Me(t) {
334
- w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t);
333
+ function Ie(t) {
334
+ C.value.includes(t) ? C.value = C.value.filter((a) => a !== t) : C.value.push(t);
335
335
  }
336
- const ze = d(() => z.value.map((t) => ({
336
+ const Pe = y(() => N.value.map((t) => ({
337
337
  ...t,
338
- opacity: w.value.includes(t.seriesIndex) ? 0.5 : 1,
339
- segregate: () => Me(t.seriesIndex),
340
- isSegregated: w.value.includes(t.seriesIndex),
338
+ opacity: C.value.includes(t.seriesIndex) ? 0.5 : 1,
339
+ segregate: () => Ie(t.seriesIndex),
340
+ isSegregated: C.value.includes(t.seriesIndex),
341
341
  shape: "circle"
342
- }))), dt = d(() => ({
342
+ }))), gt = y(() => ({
343
343
  cy: "history-plot-div-legend",
344
344
  backgroundColor: e.value.style.chart.legend.backgroundColor,
345
345
  color: e.value.style.chart.legend.color,
@@ -347,42 +347,42 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
347
347
  paddingBottom: 12,
348
348
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
349
349
  }));
350
- function ft({ datapoint: t, plotIndex: a, seriesIndex: l }) {
351
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), me("selectDatapoint", t);
350
+ function kt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
351
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), we("selectDatapoint", t);
352
352
  }
353
- function Ne(t) {
354
- me("selectLegend", {
353
+ function Fe(t) {
354
+ we("selectLegend", {
355
355
  ...t,
356
356
  isSegregated: !t.isSegregated,
357
357
  opacity: t.isSegregated ? 1 : 0.5
358
358
  });
359
359
  }
360
- function Oe(t) {
361
- j.value = t, de.value += 1;
360
+ function De(t) {
361
+ H.value = t, me.value += 1;
362
362
  }
363
- const re = v(null);
364
- function xt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
365
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), K.value = !1, A.value = null;
363
+ const ue = v(null);
364
+ function wt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
365
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), te.value = !1, A.value = null;
366
366
  }
367
- function pt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
368
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), re.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: z.value }, A.value = t;
367
+ function Ct({ datapoint: t, plotIndex: a, seriesIndex: l }) {
368
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), ue.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: N.value }, A.value = t;
369
369
  const i = e.value.style.chart.tooltip.customFormat;
370
- if (H.value = !1, jt(i))
370
+ if (W.value = !1, Zt(i))
371
371
  try {
372
372
  const s = i({
373
373
  seriesIndex: l,
374
374
  datapoint: t,
375
375
  plotIndex: a,
376
- series: z.value,
376
+ series: N.value,
377
377
  config: e.value
378
378
  });
379
- typeof s == "string" && (Q.value = s, H.value = !0);
379
+ typeof s == "string" && (le.value = s, W.value = !0);
380
380
  } catch {
381
- console.warn("Custom format cannot be applied."), H.value = !1;
381
+ console.warn("Custom format cannot be applied."), W.value = !1;
382
382
  }
383
- if (!H.value) {
383
+ if (!W.value) {
384
384
  let s = "";
385
- s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${B(
385
+ s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${Y(
386
386
  e.value.style.chart.axes.x.labels.formatter,
387
387
  t.valueX,
388
388
  E({
@@ -391,7 +391,7 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
391
391
  s: e.value.style.chart.axes.x.labels.suffix,
392
392
  r: e.value.style.chart.axes.x.labels.rounding
393
393
  })
394
- )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${B(
394
+ )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${Y(
395
395
  e.value.style.chart.axes.y.labels.formatter,
396
396
  t.valueY,
397
397
  E({
@@ -400,27 +400,27 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
400
400
  s: e.value.style.chart.axes.y.labels.suffix,
401
401
  r: e.value.style.chart.axes.y.labels.rounding
402
402
  })
403
- )}</div>`, Q.value = `<div>${s}</div>`;
403
+ )}</div>`, le.value = `<div>${s}</div>`;
404
404
  }
405
- K.value = !0;
405
+ te.value = !0;
406
406
  }
407
- d(() => ({ head: I.value.map((a) => ({
407
+ y(() => ({ head: P.value.map((a) => ({
408
408
  name: a.name,
409
409
  color: a.color
410
410
  })) }));
411
- const G = d(() => {
411
+ const q = y(() => {
412
412
  const t = [
413
413
  e.value.table.columnNames.series,
414
414
  e.value.table.columnNames.datapoint,
415
415
  e.value.table.columnNames.x,
416
416
  e.value.table.columnNames.y
417
- ], a = I.value.flatMap((i) => i.plots.map((s) => [
417
+ ], a = P.value.flatMap((i) => i.plots.map((s) => [
418
418
  {
419
419
  color: s.color,
420
420
  name: s.seriesName
421
421
  },
422
422
  s.label,
423
- B(
423
+ Y(
424
424
  e.value.style.chart.axes.x.labels.formatter,
425
425
  s.valueX,
426
426
  E({
@@ -430,7 +430,7 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
430
430
  r: e.value.style.chart.axes.x.labels.rounding
431
431
  })
432
432
  ),
433
- B(
433
+ Y(
434
434
  e.value.style.chart.axes.y.labels.formatter,
435
435
  s.valueY,
436
436
  E({
@@ -460,111 +460,144 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
460
460
  colNames: t
461
461
  };
462
462
  });
463
- function Ie(t = null) {
464
- Tt(() => {
463
+ function ce(t = null) {
464
+ Pt(() => {
465
465
  const a = [
466
466
  [e.value.table.columnNames.series],
467
467
  [e.value.table.columnNames.datapoint],
468
468
  [e.value.table.columnNames.x],
469
469
  [e.value.table.columnNames.y]
470
- ], l = I.value.flatMap((k) => k.plots.map((q) => [
471
- [q.seriesName],
472
- [q.label],
473
- [q.valueX],
474
- [q.valueY]
470
+ ], l = P.value.flatMap((w) => w.plots.map((J) => [
471
+ [J.seriesName],
472
+ [J.label],
473
+ [J.valueX],
474
+ [J.valueY]
475
475
  ])), i = [
476
476
  [e.value.style.chart.title.text],
477
477
  [e.value.style.chart.title.subtitle.text],
478
478
  a
479
- ].concat(l), s = Et(i);
480
- t ? t(s) : Ht({
479
+ ].concat(l), s = Vt(i);
480
+ t ? t(s) : qt({
481
481
  csvContent: s,
482
482
  title: e.value.style.chart.title.text || "vue-ui-history-plot"
483
483
  });
484
484
  });
485
485
  }
486
- const V = v(!1);
487
- function ne() {
488
- V.value = !V.value;
486
+ const Z = v(!1);
487
+ function ve() {
488
+ Z.value = !Z.value;
489
489
  }
490
- function Pe() {
491
- C.value.showTable = !C.value.showTable;
490
+ function Xe() {
491
+ k.value.showTable = !k.value.showTable;
492
492
  }
493
- function Fe() {
494
- C.value.showTooltip = !C.value.showTooltip;
493
+ function Be() {
494
+ k.value.showTooltip = !k.value.showTooltip;
495
495
  }
496
- function mt() {
497
- return I.value;
496
+ function At() {
497
+ return P.value;
498
498
  }
499
- async function gt({ scale: t = 2 } = {}) {
500
- if (!S.value) return;
501
- const { width: a, height: l } = S.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await el({ domElement: S.value, base64: !0, img: !0, scale: t });
499
+ async function _t({ scale: t = 2 } = {}) {
500
+ if (!L.value) return;
501
+ const { width: a, height: l } = L.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: w } = await sl({ domElement: L.value, base64: !0, img: !0, scale: t });
502
502
  return {
503
503
  imageUri: s,
504
- base64: k,
504
+ base64: w,
505
505
  title: e.value.style.chart.title.text,
506
506
  width: a,
507
507
  height: l,
508
508
  aspectRatio: i
509
509
  };
510
510
  }
511
- const bt = d(() => x.value.tickX), kt = d(() => ({ start: 0, end: x.value.tickX.length }));
512
- return Jt({
513
- timeLabelsEls: W,
514
- timeLabels: bt,
515
- slicer: kt,
511
+ const $t = y(() => x.value.tickX), Lt = y(() => ({ start: 0, end: x.value.tickX.length }));
512
+ al({
513
+ timeLabelsEls: G,
514
+ timeLabels: $t,
515
+ slicer: Lt,
516
516
  configRef: e,
517
517
  rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
518
518
  autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
519
519
  isAutoSize: !1,
520
- width: st,
521
- height: ot,
520
+ width: ct,
521
+ height: vt,
522
522
  targetClass: ".vue-ui-history-plot-x-axis-scale",
523
523
  rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
524
- }), Ue({
525
- getData: mt,
526
- getImage: gt,
527
- generatePdf: Le,
528
- generateCsv: Ie,
529
- generateImage: $e,
530
- toggleTable: Pe,
531
- toggleTooltip: Fe,
532
- toggleAnnotator: ne,
533
- toggleFullscreen: Oe
524
+ });
525
+ const U = y(() => {
526
+ const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
527
+ return {
528
+ component: t ? ot : et,
529
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
530
+ props: t ? {
531
+ backgroundColor: e.value.table.th.backgroundColor,
532
+ color: e.value.table.th.color,
533
+ headerColor: e.value.table.th.color,
534
+ headerBg: e.value.table.th.backgroundColor,
535
+ isFullscreen: H.value,
536
+ fullscreenParent: L.value,
537
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
538
+ } : {
539
+ hideDetails: !0,
540
+ config: {
541
+ open: a,
542
+ maxHeight: 1e4,
543
+ body: {
544
+ backgroundColor: e.value.style.chart.backgroundColor,
545
+ color: e.value.style.chart.color
546
+ },
547
+ head: {
548
+ backgroundColor: e.value.style.chart.backgroundColor,
549
+ color: e.value.style.chart.color
550
+ }
551
+ }
552
+ }
553
+ };
554
+ });
555
+ return K(() => k.value.showTable, (t) => {
556
+ e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
557
+ }), Ze({
558
+ getData: At,
559
+ getImage: _t,
560
+ generatePdf: Me,
561
+ generateCsv: ce,
562
+ generateImage: ze,
563
+ toggleTable: Xe,
564
+ toggleTooltip: Be,
565
+ toggleAnnotator: ve,
566
+ toggleFullscreen: De
534
567
  }), (t, a) => (o(), r("div", {
535
- id: `history_plot_${$.value}`,
568
+ id: `history_plot_${S.value}`,
536
569
  ref_key: "historyPlotChart",
537
- ref: S,
538
- class: P({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": j.value }),
539
- 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%" : ""}`),
540
- onMouseenter: a[2] || (a[2] = () => u(ke)(!0)),
541
- onMouseleave: a[3] || (a[3] = () => u(ke)(!1))
570
+ ref: L,
571
+ class: F({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
572
+ 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%" : ""}`),
573
+ onMouseenter: a[4] || (a[4] = () => u(_e)(!0)),
574
+ onMouseleave: a[5] || (a[5] = () => u(_e)(!1))
542
575
  }, [
543
576
  p(t.$slots, "userConfig", {}, void 0, !0),
544
- e.value.userOptions.buttons.annotator ? (o(), N(u(Je), {
577
+ e.value.userOptions.buttons.annotator ? (o(), I(u(lt), {
545
578
  key: 0,
546
- svgRef: u(Ae),
579
+ svgRef: u(Le),
547
580
  backgroundColor: e.value.style.chart.backgroundColor,
548
581
  color: e.value.style.chart.color,
549
- active: V.value,
550
- onClose: ne
582
+ active: Z.value,
583
+ onClose: ve
551
584
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
552
- lt.value ? (o(), r("div", {
585
+ it.value ? (o(), r("div", {
553
586
  key: 1,
554
587
  ref_key: "noTitle",
555
- ref: fe,
588
+ ref: be,
556
589
  class: "vue-data-ui-no-title-space",
557
590
  style: "height:36px; width: 100%;background:transparent"
558
591
  }, null, 512)) : h("", !0),
559
592
  e.value.style.chart.title.text ? (o(), r("div", {
560
593
  key: 2,
561
594
  ref_key: "chartTitle",
562
- ref: ue,
595
+ ref: de,
563
596
  class: "vue-ui-xy-title",
564
- style: _(`font-family:${e.value.style.fontFamily}`)
597
+ style: $(`font-family:${e.value.style.fontFamily}`)
565
598
  }, [
566
- (o(), N(Qt, {
567
- key: `title_${ce.value}`,
599
+ (o(), I(ol, {
600
+ key: `title_${ye.value}`,
568
601
  config: {
569
602
  title: {
570
603
  cy: "history-plot-div-title",
@@ -577,17 +610,17 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
577
610
  }
578
611
  }, null, 8, ["config"]))
579
612
  ], 4)) : h("", !0),
580
- L("div", {
581
- id: `legend-top-${$.value}`
582
- }, null, 8, al),
583
- e.value.userOptions.show && U.value && (u(we) || u(oe)) ? (o(), N(u(Qe), {
613
+ _("div", {
614
+ id: `legend-top-${S.value}`
615
+ }, null, 8, ul),
616
+ e.value.userOptions.show && V.value && (u($e) || u(ie)) ? (o(), I(u(at), {
584
617
  ref: "details",
585
- key: `user_option_${de.value}`,
618
+ key: `user_option_${me.value}`,
586
619
  backgroundColor: e.value.style.chart.backgroundColor,
587
620
  color: e.value.style.chart.color,
588
- isPrinting: u(Ce),
589
- isImaging: u(_e),
590
- uid: $.value,
621
+ isPrinting: u(Se),
622
+ isImaging: u(Te),
623
+ uid: S.value,
591
624
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
592
625
  hasPdf: e.value.userOptions.buttons.pdf,
593
626
  hasImg: e.value.userOptions.buttons.img,
@@ -595,30 +628,30 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
595
628
  hasTable: e.value.userOptions.buttons.table,
596
629
  hasLabel: !1,
597
630
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
598
- isFullscreen: j.value,
599
- chartElement: S.value,
631
+ isFullscreen: H.value,
632
+ chartElement: L.value,
600
633
  position: e.value.userOptions.position,
601
- isTooltip: C.value.showTooltip,
634
+ isTooltip: k.value.showTooltip,
602
635
  titles: { ...e.value.userOptions.buttonTitles },
603
636
  hasAnnotator: e.value.userOptions.buttons.annotator,
604
- isAnnotation: V.value,
637
+ isAnnotation: Z.value,
605
638
  callbacks: e.value.userOptions.callbacks,
606
639
  printScale: e.value.userOptions.print.scale,
607
- onToggleFullscreen: Oe,
608
- onGeneratePdf: u(Le),
609
- onGenerateCsv: Ie,
610
- onGenerateImage: u($e),
611
- onToggleTable: Pe,
612
- onToggleTooltip: Fe,
613
- onToggleAnnotator: ne,
614
- style: _({
615
- visibility: u(we) ? u(oe) ? "visible" : "hidden" : "visible"
640
+ onToggleFullscreen: De,
641
+ onGeneratePdf: u(Me),
642
+ onGenerateCsv: ce,
643
+ onGenerateImage: u(ze),
644
+ onToggleTable: Xe,
645
+ onToggleTooltip: Be,
646
+ onToggleAnnotator: ve,
647
+ style: $({
648
+ visibility: u($e) ? u(ie) ? "visible" : "hidden" : "visible"
616
649
  })
617
- }, Lt({ _: 2 }, [
650
+ }, Ye({ _: 2 }, [
618
651
  t.$slots.menuIcon ? {
619
652
  name: "menuIcon",
620
653
  fn: m(({ isOpen: l, color: i }) => [
621
- p(t.$slots, "menuIcon", Y(D({ isOpen: l, color: i })), void 0, !0)
654
+ p(t.$slots, "menuIcon", B(R({ isOpen: l, color: i })), void 0, !0)
622
655
  ]),
623
656
  key: "0"
624
657
  } : void 0,
@@ -660,26 +693,26 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
660
693
  t.$slots.optionFullscreen ? {
661
694
  name: "optionFullscreen",
662
695
  fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
663
- p(t.$slots, "optionFullscreen", Y(D({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
696
+ p(t.$slots, "optionFullscreen", B(R({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
664
697
  ]),
665
698
  key: "6"
666
699
  } : void 0,
667
700
  t.$slots.optionAnnotator ? {
668
701
  name: "optionAnnotator",
669
702
  fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
670
- p(t.$slots, "optionAnnotator", Y(D({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
703
+ p(t.$slots, "optionAnnotator", B(R({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
671
704
  ]),
672
705
  key: "7"
673
706
  } : void 0
674
707
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
675
708
  (o(), r("svg", {
676
709
  ref_key: "svgRef",
677
- ref: Ae,
678
- xmlns: u(Pt),
710
+ ref: Le,
711
+ xmlns: u(Yt),
679
712
  viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
680
- style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
713
+ style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
681
714
  }, [
682
- Re(u(Ze)),
715
+ he(u(st)),
683
716
  t.$slots["chart-background"] ? (o(), r("foreignObject", {
684
717
  key: 0,
685
718
  x: c.value.left,
@@ -691,28 +724,28 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
691
724
  }
692
725
  }, [
693
726
  p(t.$slots, "chart-background", {}, void 0, !0)
694
- ], 8, ol)) : h("", !0),
695
- e.value.style.chart.plots.gradient.show ? (o(), r("defs", rl, [
696
- (o(!0), r(g, null, b(I.value, (l, i) => (o(), r("radialGradient", {
697
- id: `gradient_${i}_${$.value}`,
727
+ ], 8, vl)) : h("", !0),
728
+ e.value.style.chart.plots.gradient.show ? (o(), r("defs", hl, [
729
+ (o(!0), r(b, null, g(P.value, (l, i) => (o(), r("radialGradient", {
730
+ id: `gradient_${i}_${S.value}`,
698
731
  fy: "30%"
699
732
  }, [
700
- L("stop", {
733
+ _("stop", {
701
734
  offset: "10%",
702
- "stop-color": u(Ft)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
703
- }, null, 8, il),
704
- L("stop", {
735
+ "stop-color": u(Et)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
736
+ }, null, 8, yl),
737
+ _("stop", {
705
738
  offset: "90%",
706
- "stop-color": u(Xt)(l.color, 0.1)
707
- }, null, 8, ul),
708
- L("stop", {
739
+ "stop-color": u(Ht)(l.color, 0.1)
740
+ }, null, 8, fl),
741
+ _("stop", {
709
742
  offset: "100%",
710
743
  "stop-color": l.color
711
- }, null, 8, cl)
712
- ], 8, nl))), 256))
744
+ }, null, 8, xl)
745
+ ], 8, dl))), 256))
713
746
  ])) : h("", !0),
714
- e.value.style.chart.grid.verticalLines.show ? (o(), r("g", vl, [
715
- (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
747
+ e.value.style.chart.grid.verticalLines.show ? (o(), r("g", pl, [
748
+ (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("line", {
716
749
  x1: l.x,
717
750
  x2: l.x,
718
751
  y1: l.y1,
@@ -720,10 +753,10 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
720
753
  stroke: e.value.style.chart.grid.verticalLines.stroke,
721
754
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
722
755
  "stroke-linecap": "round"
723
- }, null, 8, hl))), 256))
756
+ }, null, 8, ml))), 256))
724
757
  ])) : h("", !0),
725
- e.value.style.chart.axes.y.labels.show ? (o(), r("g", yl, [
726
- (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
758
+ e.value.style.chart.axes.y.labels.show ? (o(), r("g", bl, [
759
+ (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("line", {
727
760
  stroke: e.value.style.chart.grid.verticalLines.stroke,
728
761
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
729
762
  "stroke-linecap": "round",
@@ -731,20 +764,20 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
731
764
  x2: c.value.left,
732
765
  y1: l.y,
733
766
  y2: l.y
734
- }, null, 8, dl))), 256))
767
+ }, null, 8, gl))), 256))
735
768
  ])) : h("", !0),
736
769
  e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
737
770
  key: 4,
738
771
  ref_key: "yAxisScales",
739
- ref: le
772
+ ref: oe
740
773
  }, [
741
- (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("text", {
774
+ (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("text", {
742
775
  x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
743
776
  y: l.y + n.value.yAxisLabels / 3,
744
777
  fill: e.value.style.chart.axes.y.labels.color,
745
778
  "font-size": n.value.yAxisLabels,
746
779
  "text-anchor": "end"
747
- }, O(u(B)(
780
+ }, T(u(Y)(
748
781
  e.value.style.chart.axes.y.labels.formatter,
749
782
  l.value,
750
783
  u(E)({
@@ -753,20 +786,20 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
753
786
  s: e.value.style.chart.axes.y.labels.suffix,
754
787
  r: e.value.style.chart.axes.y.labels.rounding
755
788
  })
756
- )), 9, fl))), 256))
789
+ )), 9, kl))), 256))
757
790
  ], 512)) : h("", !0),
758
791
  e.value.style.chart.axes.y.name.text ? (o(), r("text", {
759
792
  key: 5,
760
793
  ref_key: "yAxisLabel",
761
- ref: te,
794
+ ref: se,
762
795
  transform: `translate(${n.value.yAxisName}, ${f.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
763
796
  "font-size": n.value.yAxisName,
764
797
  fill: e.value.style.chart.axes.y.name.color,
765
798
  "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
766
799
  "text-anchor": "middle"
767
- }, O(e.value.style.chart.axes.y.name.text), 9, xl)) : h("", !0),
768
- e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", pl, [
769
- (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
800
+ }, T(e.value.style.chart.axes.y.name.text), 9, wl)) : h("", !0),
801
+ e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", Cl, [
802
+ (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("line", {
770
803
  x1: l.x1,
771
804
  x2: l.x2,
772
805
  y1: l.y,
@@ -774,10 +807,10 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
774
807
  stroke: e.value.style.chart.grid.horizontalLines.stroke,
775
808
  "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
776
809
  "stroke-linecap": "round"
777
- }, null, 8, ml))), 256))
810
+ }, null, 8, Al))), 256))
778
811
  ])) : h("", !0),
779
- e.value.style.chart.axes.x.labels.show ? (o(), r("g", gl, [
780
- (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
812
+ e.value.style.chart.axes.x.labels.show ? (o(), r("g", _l, [
813
+ (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("line", {
781
814
  stroke: e.value.style.chart.grid.verticalLines.stroke,
782
815
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
783
816
  "stroke-linecap": "round",
@@ -785,20 +818,20 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
785
818
  x2: l.x,
786
819
  y1: c.value.bottom,
787
820
  y2: c.value.bottom + 5
788
- }, null, 8, bl))), 256))
821
+ }, null, 8, $l))), 256))
789
822
  ])) : h("", !0),
790
823
  e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
791
824
  key: 8,
792
825
  ref_key: "xAxisScales",
793
- ref: W
826
+ ref: G
794
827
  }, [
795
- (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("text", {
828
+ (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("text", {
796
829
  class: "vue-ui-history-plot-x-axis-scale",
797
830
  transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
798
831
  fill: e.value.style.chart.axes.x.labels.color,
799
832
  "font-size": n.value.xAxisLabels,
800
833
  "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
801
- }, O(u(B)(
834
+ }, T(u(Y)(
802
835
  e.value.style.chart.axes.x.labels.formatter,
803
836
  l.value,
804
837
  u(E)({
@@ -807,19 +840,19 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
807
840
  s: e.value.style.chart.axes.x.labels.suffix,
808
841
  r: e.value.style.chart.axes.x.labels.rounding
809
842
  })
810
- )), 9, kl))), 256))
843
+ )), 9, Ll))), 256))
811
844
  ], 512)) : h("", !0),
812
845
  e.value.style.chart.axes.x.name.text ? (o(), r("text", {
813
846
  key: 9,
814
847
  ref_key: "xAxisLabel",
815
- ref: ee,
848
+ ref: ae,
816
849
  x: f.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
817
850
  y: f.value.height,
818
851
  "font-size": n.value.xAxisName,
819
852
  fill: e.value.style.chart.axes.x.name.color,
820
853
  "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
821
854
  "text-anchor": "middle"
822
- }, O(e.value.style.chart.axes.x.name.text), 9, wl)) : h("", !0),
855
+ }, T(e.value.style.chart.axes.x.name.text), 9, Sl)) : h("", !0),
823
856
  e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
824
857
  key: 10,
825
858
  x1: c.value.left,
@@ -829,7 +862,7 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
829
862
  stroke: e.value.style.chart.grid.xAxis.stroke,
830
863
  "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
831
864
  "stroke-linecap": "round"
832
- }, null, 8, Al)) : h("", !0),
865
+ }, null, 8, Tl)) : h("", !0),
833
866
  e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
834
867
  key: 11,
835
868
  x1: c.value.left,
@@ -839,55 +872,55 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
839
872
  stroke: e.value.style.chart.grid.yAxis.stroke,
840
873
  "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
841
874
  "stroke-linecap": "round"
842
- }, null, 8, Cl)) : h("", !0),
843
- (o(!0), r(g, null, b(I.value, (l, i) => (o(), r("g", null, [
875
+ }, null, 8, Ml)) : h("", !0),
876
+ (o(!0), r(b, null, g(P.value, (l, i) => (o(), r("g", null, [
844
877
  e.value.style.chart.paths.show ? (o(), r("g", {
845
878
  key: 0,
846
- style: _({
879
+ style: $({
847
880
  opacity: A.value === null ? 1 : 0.3
848
881
  })
849
882
  }, [
850
- L("path", {
883
+ _("path", {
851
884
  d: l.path,
852
885
  stroke: e.value.style.chart.backgroundColor,
853
886
  "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
854
887
  fill: "none",
855
888
  "stroke-linecap": "round",
856
889
  "stroke-linejoin": "round",
857
- class: P({ animated: e.value.useCssAnimation && !u(M) })
858
- }, null, 10, _l),
859
- L("path", {
890
+ class: F({ animated: e.value.useCssAnimation && !u(z) })
891
+ }, null, 10, zl),
892
+ _("path", {
860
893
  d: l.path,
861
894
  stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
862
895
  "stroke-width": e.value.style.chart.paths.strokeWidth,
863
896
  fill: "none",
864
897
  "stroke-linecap": "round",
865
898
  "stroke-linejoin": "round",
866
- class: P({ animated: e.value.useCssAnimation && !u(M) })
867
- }, null, 10, Ll)
899
+ class: F({ animated: e.value.useCssAnimation && !u(z) })
900
+ }, null, 10, Nl)
868
901
  ], 4)) : h("", !0),
869
- (o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
902
+ (o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
870
903
  cx: s.x,
871
904
  cy: s.y,
872
905
  fill: e.value.style.chart.backgroundColor,
873
906
  r: n.value.plots,
874
907
  stroke: "none"
875
- }, null, 8, $l))), 256)),
876
- (o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
908
+ }, null, 8, Ol))), 256)),
909
+ (o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
877
910
  cx: s.x,
878
911
  cy: s.y,
879
- fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${$.value})` : s.color,
912
+ fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${S.value})` : s.color,
880
913
  r: n.value.plots,
881
914
  stroke: e.value.style.chart.plots.stroke,
882
915
  "stroke-width": e.value.style.chart.plots.strokeWidth,
883
- class: P({ animated: e.value.useCssAnimation && !u(M) }),
884
- style: _({
916
+ class: F({ animated: e.value.useCssAnimation && !u(z) }),
917
+ style: $({
885
918
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
886
919
  transition: "opacity 0.2s ease-in-out"
887
920
  })
888
- }, null, 14, Sl))), 256)),
889
- e.value.style.chart.plots.labels.show ? (o(), r("g", Tl, [
890
- (o(!0), r(g, null, b(l.plots, (s) => (o(), r("g", null, [
921
+ }, null, 14, Il))), 256)),
922
+ e.value.style.chart.plots.labels.show ? (o(), r("g", Pl, [
923
+ (o(!0), r(b, null, g(l.plots, (s) => (o(), r("g", null, [
891
924
  String(s.label).includes(`
892
925
  `) ? (o(), r("text", {
893
926
  key: 1,
@@ -897,19 +930,19 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
897
930
  fill: e.value.style.chart.plots.labels.color,
898
931
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
899
932
  "text-anchor": "middle",
900
- class: P({ animated: e.value.useCssAnimation && !u(M) }),
901
- style: _({
933
+ class: F({ animated: e.value.useCssAnimation && !u(z) }),
934
+ style: $({
902
935
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
903
936
  transition: "opacity 0.2s ease-in-out"
904
937
  }),
905
- innerHTML: u(Rt)({
938
+ innerHTML: u(Wt)({
906
939
  content: String(s.label),
907
940
  fontSize: n.value.labels,
908
941
  fill: e.value.style.chart.plots.labels.color,
909
942
  x: s.x + e.value.style.chart.plots.labels.offsetX,
910
943
  y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
911
944
  })
912
- }, null, 14, zl)) : (o(), r("text", {
945
+ }, null, 14, Dl)) : (o(), r("text", {
913
946
  key: 0,
914
947
  x: s.x + e.value.style.chart.plots.labels.offsetX,
915
948
  y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
@@ -917,103 +950,103 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
917
950
  fill: e.value.style.chart.plots.labels.color,
918
951
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
919
952
  "text-anchor": "middle",
920
- class: P({ animated: e.value.useCssAnimation && !u(M) }),
921
- style: _({
953
+ class: F({ animated: e.value.useCssAnimation && !u(z) }),
954
+ style: $({
922
955
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
923
956
  transition: "opacity 0.2s ease-in-out"
924
957
  })
925
- }, O(s.label), 15, Ml))
958
+ }, T(s.label), 15, Fl))
926
959
  ]))), 256))
927
960
  ])) : h("", !0),
928
- e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Nl, [
929
- (o(!0), r(g, null, b(l.plots, (s, k) => (o(), r("text", {
961
+ e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Xl, [
962
+ (o(!0), r(b, null, g(l.plots, (s, w) => (o(), r("text", {
930
963
  x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
931
964
  y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
932
965
  "font-size": n.value.indexLabels,
933
966
  "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
934
- fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Yt)(l.color) : e.value.style.chart.plots.indexLabels.color,
967
+ fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(jt)(l.color) : e.value.style.chart.plots.indexLabels.color,
935
968
  "text-anchor": "middle",
936
- class: P({ animated: e.value.useCssAnimation && !u(M) }),
937
- style: _({
969
+ class: F({ animated: e.value.useCssAnimation && !u(z) }),
970
+ style: $({
938
971
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
939
972
  transition: "opacity 0.2s ease-in-out"
940
973
  })
941
- }, O(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Ol))), 256))
974
+ }, T(e.value.style.chart.plots.indexLabels.startAtZero ? w : w + 1), 15, Bl))), 256))
942
975
  ])) : h("", !0)
943
976
  ]))), 256)),
944
- (o(!0), r(g, null, b(I.value, (l) => (o(), r("g", null, [
945
- (o(!0), r(g, null, b(l.plots, (i, s) => (o(), r("circle", {
977
+ (o(!0), r(b, null, g(P.value, (l) => (o(), r("g", null, [
978
+ (o(!0), r(b, null, g(l.plots, (i, s) => (o(), r("circle", {
946
979
  cx: i.x,
947
980
  cy: i.y,
948
981
  fill: "transparent",
949
982
  r: n.value.plots,
950
983
  stroke: "none",
951
- onMouseenter: (k) => pt({
984
+ onMouseenter: (w) => Ct({
952
985
  datapoint: i,
953
986
  plotIndex: s,
954
987
  seriesIndex: l.seriesIndex
955
988
  }),
956
- onMouseleave: (k) => xt({
989
+ onMouseleave: (w) => wt({
957
990
  datapoint: i,
958
991
  plotIndex: s,
959
992
  seriesIndex: l.seriesIndex
960
993
  }),
961
- onClick: (k) => ft({
994
+ onClick: (w) => kt({
962
995
  datapoint: i,
963
996
  plotIndex: s,
964
997
  seriesIndex: l.seriesIndex
965
998
  })
966
- }, null, 40, Il))), 256))
999
+ }, null, 40, Rl))), 256))
967
1000
  ]))), 256)),
968
1001
  p(t.$slots, "svg", { svg: f.value }, void 0, !0)
969
- ], 12, sl)),
970
- t.$slots.watermark ? (o(), r("div", Pl, [
971
- p(t.$slots, "watermark", Y(D({ isPrinting: u(Ce) || u(_e) })), void 0, !0)
1002
+ ], 12, cl)),
1003
+ t.$slots.watermark ? (o(), r("div", Yl, [
1004
+ p(t.$slots, "watermark", B(R({ isPrinting: u(Se) || u(Te) })), void 0, !0)
972
1005
  ])) : h("", !0),
973
- L("div", {
974
- id: `legend-bottom-${$.value}`
975
- }, null, 8, Fl),
976
- pe.value ? (o(), N($t, {
1006
+ _("div", {
1007
+ id: `legend-bottom-${S.value}`
1008
+ }, null, 8, El),
1009
+ ke.value ? (o(), I(Nt, {
977
1010
  key: 5,
978
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
1011
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${S.value}` : `#legend-bottom-${S.value}`
979
1012
  }, [
980
- L("div", {
1013
+ _("div", {
981
1014
  ref_key: "chartLegend",
982
- ref: ve
1015
+ ref: fe
983
1016
  }, [
984
- e.value.style.chart.legend.show && U.value ? (o(), N(Kt, {
985
- key: `legend_${he.value}`,
986
- legendSet: ze.value,
987
- config: dt.value,
1017
+ e.value.style.chart.legend.show && V.value ? (o(), I(rl, {
1018
+ key: `legend_${xe.value}`,
1019
+ legendSet: Pe.value,
1020
+ config: gt.value,
988
1021
  onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
989
- Me(l.seriesIndex), Ne(l);
1022
+ Ie(l.seriesIndex), Fe(l);
990
1023
  })
991
1024
  }, {
992
1025
  item: m(({ legend: l, index: i }) => [
993
- L("div", {
1026
+ _("div", {
994
1027
  onClick: (s) => {
995
- l.segregate(), Ne(l);
1028
+ l.segregate(), Fe(l);
996
1029
  },
997
- style: _(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
998
- }, O(l.name), 13, Xl)
1030
+ style: $(`opacity:${C.value.includes(l.seriesIndex) ? 0.5 : 1}`)
1031
+ }, T(l.name), 13, Hl)
999
1032
  ]),
1000
1033
  _: 1
1001
1034
  }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
1002
1035
  key: 1,
1003
- legend: ze.value
1036
+ legend: Pe.value
1004
1037
  }, void 0, !0)
1005
1038
  ], 512)
1006
1039
  ], 8, ["to"])) : h("", !0),
1007
1040
  t.$slots.source ? (o(), r("div", {
1008
1041
  key: 6,
1009
1042
  ref_key: "source",
1010
- ref: xe,
1043
+ ref: ge,
1011
1044
  dir: "auto"
1012
1045
  }, [
1013
1046
  p(t.$slots, "source", {}, void 0, !0)
1014
1047
  ], 512)) : h("", !0),
1015
- Re(u(Ke), {
1016
- show: C.value.showTooltip && K.value,
1048
+ he(u(Ke), {
1049
+ show: k.value.showTooltip && te.value,
1017
1050
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1018
1051
  color: e.value.style.chart.tooltip.color,
1019
1052
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1023,65 +1056,79 @@ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1023
1056
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1024
1057
  position: e.value.style.chart.tooltip.position,
1025
1058
  offsetY: e.value.style.chart.tooltip.offsetY,
1026
- parent: S.value,
1027
- content: Q.value,
1028
- isCustom: H.value,
1029
- isFullscreen: j.value,
1059
+ parent: L.value,
1060
+ content: le.value,
1061
+ isCustom: W.value,
1062
+ isFullscreen: H.value,
1030
1063
  smooth: e.value.style.chart.tooltip.smooth,
1031
1064
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1032
1065
  }, {
1033
1066
  "tooltip-before": m(() => [
1034
- p(t.$slots, "tooltip-before", Y(D({ ...re.value })), void 0, !0)
1067
+ p(t.$slots, "tooltip-before", B(R({ ...ue.value })), void 0, !0)
1035
1068
  ]),
1036
1069
  "tooltip-after": m(() => [
1037
- p(t.$slots, "tooltip-after", Y(D({ ...re.value })), void 0, !0)
1070
+ p(t.$slots, "tooltip-after", B(R({ ...ue.value })), void 0, !0)
1038
1071
  ]),
1039
1072
  _: 3
1040
1073
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
1041
- U.value ? (o(), N(u(Ve), {
1042
- key: 7,
1043
- hideDetails: "",
1044
- config: {
1045
- open: C.value.showTable,
1046
- maxHeight: 1e4,
1047
- body: {
1048
- backgroundColor: e.value.style.chart.backgroundColor,
1049
- color: e.value.style.chart.color
1050
- },
1051
- head: {
1052
- backgroundColor: e.value.style.chart.backgroundColor,
1053
- color: e.value.style.chart.color
1054
- }
1055
- }
1056
- }, {
1074
+ V.value ? (o(), I(Ot(U.value.component), It({ key: 7 }, U.value.props, {
1075
+ ref_key: "tableUnit",
1076
+ ref: j,
1077
+ onClose: a[3] || (a[3] = (l) => k.value.showTable = !1)
1078
+ }), Ye({
1057
1079
  content: m(() => [
1058
- (o(), N(u(qe), {
1059
- key: `table_${ye.value}`,
1060
- colNames: G.value.colNames,
1061
- head: G.value.head,
1062
- body: G.value.body,
1063
- config: G.value.config,
1064
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1065
- onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
1080
+ (o(), I(u(tt), {
1081
+ key: `table_${pe.value}`,
1082
+ colNames: q.value.colNames,
1083
+ head: q.value.head,
1084
+ body: q.value.body,
1085
+ config: q.value.config,
1086
+ title: e.value.table.useDialog ? "" : U.value.title,
1087
+ withCloseButton: !e.value.table.useDialog,
1088
+ onClose: a[2] || (a[2] = (l) => k.value.showTable = !1)
1066
1089
  }, {
1067
1090
  th: m(({ th: l }) => [
1068
- L("div", {
1091
+ _("div", {
1069
1092
  innerHTML: l,
1070
1093
  style: { display: "flex", "align-items": "center" }
1071
- }, null, 8, Rl)
1094
+ }, null, 8, Wl)
1072
1095
  ]),
1073
1096
  td: m(({ td: l }) => [
1074
- St(O(l.name || l), 1)
1097
+ Ee(T(l.name || l), 1)
1075
1098
  ]),
1076
1099
  _: 1
1077
- }, 8, ["colNames", "head", "body", "config", "title"]))
1100
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1078
1101
  ]),
1079
- _: 1
1080
- }, 8, ["config"])) : h("", !0),
1081
- u(M) ? (o(), N(Gt, { key: 8 })) : h("", !0)
1082
- ], 46, ll));
1102
+ _: 2
1103
+ }, [
1104
+ e.value.table.useDialog ? {
1105
+ name: "title",
1106
+ fn: m(() => [
1107
+ Ee(T(U.value.title), 1)
1108
+ ]),
1109
+ key: "0"
1110
+ } : void 0,
1111
+ e.value.table.useDialog ? {
1112
+ name: "actions",
1113
+ fn: m(() => [
1114
+ _("button", {
1115
+ tabindex: "0",
1116
+ class: "vue-ui-user-options-button",
1117
+ onClick: a[1] || (a[1] = (l) => ce(e.value.userOptions.callbacks.csv))
1118
+ }, [
1119
+ he(u(Qe), {
1120
+ name: "excel",
1121
+ stroke: U.value.props.color
1122
+ }, null, 8, ["stroke"])
1123
+ ])
1124
+ ]),
1125
+ key: "1"
1126
+ } : void 0
1127
+ ]), 1040)) : h("", !0),
1128
+ u(z) ? (o(), I(Qt, { key: 8 })) : h("", !0)
1129
+ ], 46, il));
1083
1130
  }
1084
- }, Ql = /* @__PURE__ */ tl(Yl, [["__scopeId", "data-v-88bdea2f"]]);
1131
+ }, oa = /* @__PURE__ */ nl(jl, [["__scopeId", "data-v-d76a8a07"]]);
1085
1132
  export {
1086
- Ql as default
1133
+ oa as default
1087
1134
  };