vue-data-ui 3.0.0-next.5 → 3.0.0-next.50

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 (115) hide show
  1. package/dist/{Arrow-6c56sGJ3.js → Arrow-Z9jhaVP0.js} +1 -1
  2. package/dist/{BaseDraggableDialog-y-BEzdTM.js → BaseDraggableDialog-CXFM6lrb.js} +2 -2
  3. package/dist/{BaseIcon-C-MP5EHV.js → BaseIcon-D3lVmh4q.js} +1 -1
  4. package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
  5. package/dist/{ColorPicker-P7R8vBej.js → ColorPicker-CZydWpxG.js} +2 -2
  6. package/dist/{DataTable-DD2pZIgh.js → DataTable-DBPMgoC3.js} +2 -2
  7. package/dist/{Legend-DZZeyx5j.js → Legend-Dj4hW4ih.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-uETwt6yC.js → NonSvgPenAndPaper-JPMlKVW3.js} +3 -3
  9. package/dist/{PackageVersion-D3jqYZS6.js → PackageVersion-_JpUHIQF.js} +1 -1
  10. package/dist/{PenAndPaper-Dy9zUXnw.js → PenAndPaper-CiXy6ifX.js} +3 -3
  11. package/dist/{Shape-CFp_TwS5.js → Shape-BLUp5WPA.js} +43 -37
  12. package/dist/Slicer-QbudvRet.js +602 -0
  13. package/dist/{SparkTooltip-BMV9aNLi.js → SparkTooltip-Nh3_vlzT.js} +7 -7
  14. package/dist/{Title-zqtIOYc5.js → Title-CxOYqn0J.js} +1 -1
  15. package/dist/{Tooltip-Bo30Qf34.js → Tooltip-CzRs24i2.js} +23 -19
  16. package/dist/{UserOptions-Cgrlu96K.js → UserOptions-RZkXTOCa.js} +2 -2
  17. package/dist/{dom-to-png-SVXVB8J4.js → dom-to-png-CV2fR0EQ.js} +1 -1
  18. package/dist/{img-DJTFe-dE.js → img-B7ogJ4e0.js} +1 -1
  19. package/dist/{index-DFSXaw69.js → index-CJ_8wwwn.js} +1594 -1216
  20. package/dist/{pdf-D-ie2h2J.js → pdf-set5F9CM.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +324 -14
  23. package/dist/types/vue-data-ui.d.ts +324 -14
  24. package/dist/useAutoSizeLabelsInsideViewbox-CyuM0n69.js +41 -0
  25. package/dist/{useNestedProp-CV3NndHa.js → useNestedProp-Co3NIfJz.js} +1 -1
  26. package/dist/{usePrinter-DXG9SdJr.js → usePrinter-Djgu-cC0.js} +2 -2
  27. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  28. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  29. package/dist/{vue-data-ui-DhThPvS0.js → vue-data-ui-HYXpyDKV.js} +64 -64
  30. package/dist/vue-data-ui.js +30 -29
  31. package/dist/{vue-ui-3d-bar-C1M9fXQl.js → vue-ui-3d-bar-CT_YtMoO.js} +6 -6
  32. package/dist/{vue-ui-accordion-B-PjY4U8.js → vue-ui-accordion-3yBUN0ar.js} +3 -3
  33. package/dist/vue-ui-age-pyramid-FUsbvtyA.js +834 -0
  34. package/dist/{vue-ui-annotator-DauoYrzs.js → vue-ui-annotator-C4Z-9ldl.js} +2 -2
  35. package/dist/vue-ui-bullet-B1ALDthr.js +571 -0
  36. package/dist/vue-ui-candlestick-BuD3f7_o.js +999 -0
  37. package/dist/{vue-ui-carousel-table-B7i9TvuL.js → vue-ui-carousel-table-Dm_FdAF0.js} +4 -4
  38. package/dist/{vue-ui-chestnut-D9HL_oAu.js → vue-ui-chestnut-WTwQvrY9.js} +5 -5
  39. package/dist/{vue-ui-chord-BaEQ4_bQ.js → vue-ui-chord-CPVmSnYG.js} +8 -8
  40. package/dist/{vue-ui-circle-pack-DumySU9s.js → vue-ui-circle-pack-Bc8bJtl0.js} +26 -26
  41. package/dist/{vue-ui-cursor-D-88A6ue.js → vue-ui-cursor-DfZVsgB6.js} +2 -2
  42. package/dist/{vue-ui-dashboard-Br7MlswR.js → vue-ui-dashboard-BP5AhItc.js} +62 -62
  43. package/dist/{vue-ui-digits-BMb2ZxN9.js → vue-ui-digits-FvXrM2xK.js} +2 -2
  44. package/dist/{vue-ui-donut-NZIGKCYr.js → vue-ui-donut-3JmvHI0A.js} +401 -375
  45. package/dist/vue-ui-donut-evolution-DiBD970y.js +1075 -0
  46. package/dist/{vue-ui-dumbbell-B7jEqxUu.js → vue-ui-dumbbell-BiD393o3.js} +7 -7
  47. package/dist/vue-ui-flow-DbdQR23z.js +841 -0
  48. package/dist/{vue-ui-funnel-BRfQjCk6.js → vue-ui-funnel-DByaDRM7.js} +6 -6
  49. package/dist/{vue-ui-galaxy-u0oNgjDP.js → vue-ui-galaxy-C4Al6xQj.js} +60 -58
  50. package/dist/vue-ui-gauge-DjUtEfNU.js +791 -0
  51. package/dist/{vue-ui-gizmo-6QSDxdTp.js → vue-ui-gizmo-CzrxRz6L.js} +3 -3
  52. package/dist/vue-ui-heatmap-HVYUxTOT.js +1078 -0
  53. package/dist/vue-ui-history-plot-DXSpSL4A.js +1073 -0
  54. package/dist/{vue-ui-kpi-DwOX2xG0.js → vue-ui-kpi-DU8bOzeM.js} +3 -3
  55. package/dist/{vue-ui-mini-loader-CrAhBt4w.js → vue-ui-mini-loader-E4KhKAQz.js} +2 -2
  56. package/dist/{vue-ui-molecule-DVPFCYdv.js → vue-ui-molecule-DrFrNbBj.js} +46 -44
  57. package/dist/{vue-ui-mood-radar-BPCedEDi.js → vue-ui-mood-radar-Cf_2QCYC.js} +7 -7
  58. package/dist/vue-ui-nested-donuts-BnA1KtIt.js +1286 -0
  59. package/dist/vue-ui-onion-B84CPvyH.js +776 -0
  60. package/dist/vue-ui-parallel-coordinate-plot-D4Ct2cvP.js +915 -0
  61. package/dist/{vue-ui-quadrant-CRR0XJzp.js → vue-ui-quadrant-8ksd3FSu.js} +59 -57
  62. package/dist/vue-ui-quick-chart-BY8Kd1LO.js +1761 -0
  63. package/dist/{vue-ui-radar-Fxk4Nq3_.js → vue-ui-radar-BUQaHh0L.js} +12 -10
  64. package/dist/{vue-ui-rating-EwwvsCi3.js → vue-ui-rating-Cn1_Hn2b.js} +2 -2
  65. package/dist/{vue-ui-relation-circle-DB7plTEJ.js → vue-ui-relation-circle-DPKDfjYx.js} +6 -6
  66. package/dist/vue-ui-ridgeline-zvRHpo_N.js +1153 -0
  67. package/dist/vue-ui-rings-Tw1dHWHH.js +728 -0
  68. package/dist/vue-ui-scatter-8LZZMVhD.js +1178 -0
  69. package/dist/{vue-ui-skeleton-1OErZL6t.js → vue-ui-skeleton-DVxUvega.js} +3 -3
  70. package/dist/{vue-ui-smiley-C_8dvJDX.js → vue-ui-smiley-DJTTUjT_.js} +2 -2
  71. package/dist/{vue-ui-spark-trend-Ds3apeYN.js → vue-ui-spark-trend-Dsku4oGR.js} +6 -6
  72. package/dist/{vue-ui-sparkbar-NpyQVY-J.js → vue-ui-sparkbar-Br_fLEOr.js} +3 -3
  73. package/dist/{vue-ui-sparkgauge-BYHhBxke.js → vue-ui-sparkgauge-DSBJsCu3.js} +3 -3
  74. package/dist/{vue-ui-sparkhistogram-DFbQ-g2X.js → vue-ui-sparkhistogram-BX6SXzWN.js} +4 -4
  75. package/dist/vue-ui-sparkline-DgVH0bCY.js +489 -0
  76. package/dist/{vue-ui-sparkstackbar-BxMFKBBt.js → vue-ui-sparkstackbar-D-KbMYmo.js} +55 -53
  77. package/dist/vue-ui-stackbar-DWOm3J6d.js +1370 -0
  78. package/dist/{vue-ui-strip-plot-Crml8nCi.js → vue-ui-strip-plot-Bi4PWqJG.js} +30 -28
  79. package/dist/{vue-ui-table-C3lxyo1m.js → vue-ui-table-Ac5mvoTX.js} +11 -11
  80. package/dist/{vue-ui-table-heatmap-DYgu1wOK.js → vue-ui-table-heatmap-DtN-NEea.js} +5 -5
  81. package/dist/{vue-ui-table-sparkline-B_eROo0E.js → vue-ui-table-sparkline-Dm9VtfGM.js} +4 -4
  82. package/dist/{vue-ui-thermometer-Dn8-68zJ.js → vue-ui-thermometer-CKzsQxea.js} +6 -6
  83. package/dist/{vue-ui-timer-CREgpYVZ.js → vue-ui-timer-CRuQHU_f.js} +5 -5
  84. package/dist/vue-ui-tiremarks-0mS5yMkd.js +406 -0
  85. package/dist/vue-ui-treemap-BkU919fN.js +1035 -0
  86. package/dist/{vue-ui-vertical-bar-BYtbI3Eq.js → vue-ui-vertical-bar-ByPC7JmK.js} +322 -306
  87. package/dist/vue-ui-waffle-GWXnMKeQ.js +910 -0
  88. package/dist/{vue-ui-wheel-CUgfhL9p.js → vue-ui-wheel-PP-IY2XR.js} +6 -6
  89. package/dist/{vue-ui-word-cloud-DBJueUIP.js → vue-ui-word-cloud-Cc5c_8Z1.js} +12 -10
  90. package/dist/{vue-ui-world-DR6IEkat.js → vue-ui-world-B1zbPwk3.js} +11 -9
  91. package/dist/vue-ui-xy-D7Sx_bPF.js +3760 -0
  92. package/dist/{vue-ui-xy-canvas-C2k2SOVa.js → vue-ui-xy-canvas-sA_OEIMw.js} +265 -264
  93. package/package.json +1 -1
  94. package/dist/Slicer-Bba4UfIm.js +0 -577
  95. package/dist/vue-ui-age-pyramid-Bt0KEjza.js +0 -746
  96. package/dist/vue-ui-bullet-CWxvbrat.js +0 -513
  97. package/dist/vue-ui-candlestick-BmYaA6wk.js +0 -873
  98. package/dist/vue-ui-donut-evolution-D38U9QxB.js +0 -903
  99. package/dist/vue-ui-flow-k4KjXCTn.js +0 -765
  100. package/dist/vue-ui-gauge-DUpSrOgm.js +0 -738
  101. package/dist/vue-ui-heatmap-CqqXcJ8F.js +0 -877
  102. package/dist/vue-ui-history-plot-BiC39PhQ.js +0 -924
  103. package/dist/vue-ui-nested-donuts-C2kl6581.js +0 -1177
  104. package/dist/vue-ui-onion-Dk3OUNGJ.js +0 -701
  105. package/dist/vue-ui-parallel-coordinate-plot-B-r0h3BM.js +0 -807
  106. package/dist/vue-ui-quick-chart-CS-Uk49C.js +0 -1612
  107. package/dist/vue-ui-ridgeline-D55xotqc.js +0 -969
  108. package/dist/vue-ui-rings-D6gr6DBO.js +0 -685
  109. package/dist/vue-ui-scatter-hFI2YfFt.js +0 -1045
  110. package/dist/vue-ui-sparkline-CiVlvGOI.js +0 -459
  111. package/dist/vue-ui-stackbar-DHsxlaNI.js +0 -1207
  112. package/dist/vue-ui-tiremarks-DrFKdGSj.js +0 -358
  113. package/dist/vue-ui-treemap-C1m-cAh0.js +0 -965
  114. package/dist/vue-ui-waffle-Cr0JqMuU.js +0 -863
  115. package/dist/vue-ui-xy-BCFKGTws.js +0 -2980
@@ -1,7 +1,7 @@
1
1
  import { ref as w, computed as g, createElementBlock as e, openBlock as o, normalizeStyle as n, normalizeClass as N, createCommentVNode as a, unref as s, createVNode as d, createElementVNode as t, Fragment as k, renderList as h, createStaticVNode as $ } from "vue";
2
- import { u as F, R as B, X as u, s as v, _ as O } from "./index-DFSXaw69.js";
3
- import { u as V } from "./useNestedProp-CV3NndHa.js";
4
- import y from "./PackageVersion-D3jqYZS6.js";
2
+ import { u as F, R as B, X as u, s as v, $ as O } from "./index-CJ_8wwwn.js";
3
+ import { u as V } from "./useNestedProp-Co3NIfJz.js";
4
+ import y from "./PackageVersion-_JpUHIQF.js";
5
5
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const G = ["id"], R = ["xmlns"], T = { transform: "translate(300, 300)" }, U = ["d", "fill", "stroke"], Y = ["xmlns"], D = ["id"], J = ["stop-color"], K = ["stop-color"], l1 = ["stop-color"], t1 = ["stop-color"], e1 = ["fill", "stroke"], o1 = ["fill", "stroke"], s1 = ["fill", "stroke"], r1 = ["fill", "stroke"], i1 = ["fill", "stroke"], n1 = ["xmlns"], a1 = ["stroke"], u1 = ["stroke"], c1 = ["stroke"], d1 = ["fill", "stroke"], y1 = ["fill"], k1 = ["fill", "stroke"], h1 = ["fill"], v1 = ["fill", "stroke"], _1 = ["fill"], x1 = ["fill", "stroke"], p1 = ["fill"], g1 = ["fill", "stroke"], f1 = ["fill"], w1 = ["fill", "stroke"], C1 = ["fill"], m1 = ["xmlns"], b1 = ["stroke"], M1 = ["stroke"], L1 = ["stroke"], A1 = ["stroke"], $1 = ["stroke"], B1 = ["stroke"], P1 = ["stroke"], W1 = ["stroke"], j1 = ["stroke"], z1 = ["xmlns"], Z1 = ["stroke", "fill"], q1 = ["xmlns"], H1 = ["stroke", "fill"], Q1 = ["xmlns"], E1 = ["fill"], S1 = ["fill"], I1 = ["fill"], N1 = ["fill"], F1 = ["xmlns"], O1 = ["stroke"], V1 = ["fill"], X1 = ["stroke", "fill"], G1 = ["stroke", "fill"], R1 = ["fill"], T1 = ["stroke", "fill"], U1 = ["stroke", "fill"], Y1 = ["fill"], D1 = ["stroke", "fill"], J1 = ["stroke", "fill"], K1 = ["fill"], ll = ["stroke", "fill"], tl = ["stroke", "fill"], el = ["fill"], ol = ["stroke", "fill"], sl = ["stroke", "fill"], rl = ["xmlns"], il = ["stroke"], nl = ["stroke"], al = ["stroke", "fill"], ul = ["stroke", "fill"], cl = ["stroke", "fill"], dl = ["stroke", "fill"], yl = ["stroke", "fill"], kl = ["stroke", "fill"], hl = ["stroke", "fill"], vl = ["stroke", "fill"], _l = ["stroke", "fill"], xl = ["stroke", "fill"], pl = ["stroke", "fill"], gl = ["stroke", "fill"], fl = ["stroke", "fill"], wl = ["stroke", "fill"], Cl = ["stroke", "fill"], ml = ["stroke", "fill"], bl = ["stroke", "fill"], Ml = ["stroke", "fill"], Ll = ["stroke", "fill"], Al = ["stroke", "fill"], $l = ["stroke", "fill"], Bl = ["stroke", "fill"], Pl = ["stroke", "fill"], Wl = ["xmlns"], jl = ["stroke"], zl = ["xmlns"], Zl = ["stroke"], ql = ["xmlns"], Hl = ["stroke"], Ql = ["xmlns"], El = ["fill"], Sl = ["fill"], Il = ["fill"], Nl = ["fill"], Fl = ["fill"], Ol = ["fill"], Vl = ["fill"], Xl = ["fill"], Gl = ["fill"], Rl = ["fill"], Tl = ["fill"], Ul = ["fill"], Yl = ["xmlns"], Dl = ["stroke"], Jl = ["stroke"], Kl = ["stroke"], l0 = ["stroke"], t0 = ["stroke"], e0 = ["stroke"], o0 = ["xmlns"], s0 = ["stroke"], r0 = ["stroke"], i0 = ["stroke"], n0 = ["stroke"], a0 = ["stroke"], u0 = ["stroke"], c0 = ["stroke"], d0 = ["stroke"], y0 = ["stroke"], k0 = ["xmlns"], h0 = ["stroke"], v0 = ["xmlns"], _0 = ["stroke"], x0 = ["stroke"], p0 = ["stroke"], g0 = ["stroke"], f0 = ["stroke"], w0 = ["stroke"], C0 = ["stroke"], m0 = ["stroke"], b0 = ["stroke"], M0 = ["xmlns"], L0 = ["x1", "x2", "stroke"], A0 = ["xmlns"], $0 = ["x", "y", "width", "height", "fill"], B0 = ["y", "width", "height", "fill"], P0 = ["xmlns"], W0 = ["fill"], j0 = ["fill"], z0 = ["fill"], Z0 = ["xmlns"], q0 = ["x1", "x2", "y1", "y2", "stroke"], H0 = ["stroke"], Q0 = ["fill"], E0 = ["xmlns"], S0 = ["fill"], I0 = ["fill"], N0 = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], F0 = ["xmlns"], O0 = { key: 0 }, V0 = ["stroke", "stroke-width"], X0 = ["stroke", "stroke-width"], G0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], R0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], T0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], U0 = ["x", "y", "height", "width", "fill"], Y0 = ["xmlns", "viewBox"], D0 = ["x", "y", "stroke", "fill"], J0 = ["xmlns"], K0 = ["d", "stroke"], lt = ["cx", "cy", "r", "fill", "stroke"], tt = ["cx", "cy", "r", "fill", "stroke"], et = ["x", "y", "width", "fill"], ot = ["cx", "cy", "fill"], st = ["cx", "cy", "fill"], rt = ["stroke"], it = ["xmlns"], nt = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ut = ["stroke", "stroke-width"], ct = ["fill"], dt = ["fill"], yt = ["fill"], kt = ["fill"], ht = ["fill"], vt = ["fill"], _t = ["xmlns"], xt = { key: 0 }, pt = ["stroke", "stroke-width"], gt = ["stroke", "stroke-width"], ft = ["stroke", "stroke-width"], wt = { key: 1 }, Ct = ["r", "fill"], mt = ["r", "fill"], bt = ["xmlns"], Mt = { key: 0 }, Lt = ["stroke", "stroke-width"], At = ["stroke", "stroke-width"], $t = ["fill", "rx", "x", "y", "width", "height"], Bt = ["xmlns"], Pt = ["stroke-width", "stroke"], Wt = ["stroke-width", "stroke"], jt = ["stroke-width", "stroke"], zt = ["xmlns"], Zt = ["stroke"], qt = ["stroke"], Ht = ["stroke"], Qt = ["stroke"], Et = ["fill"], St = ["stroke"], It = ["xmlns"], Nt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ot = ["fill", "r"], Vt = ["fill", "r"], Xt = ["fill", "r"], Gt = ["fill", "r"], Rt = ["fill", "r"], Tt = ["fill", "r"], Ut = ["fill", "r"], Yt = ["fill", "r"], Dt = ["fill", "r"], Jt = ["xmlns"], Kt = ["d", "stroke", "stroke-width"], le = ["d", "stroke", "stroke-width"], te = ["d", "stroke", "stroke-width"], ee = ["d", "stroke", "stroke-width"], oe = ["stroke", "stroke-width"], se = ["stroke", "stroke-width"], re = ["stroke", "stroke-width"], ie = ["fill"], ne = ["fill"], ae = ["xmlns"], ue = ["x", "y", "fill"], ce = ["x", "y", "fill"], de = ["x", "y", "fill"], ye = ["xmlns"], ke = ["fill"], he = ["fill"], ve = ["y1", "y2", "stroke", "stroke-width"], _e = ["x1", "x2", "stroke", "stroke-width"], xe = ["xmlns", "stroke"], pe = ["fill"], ge = ["xmlns", "stroke"], fe = ["xmlns", "stroke"], we = ["fill"], Ce = ["xmlns", "stroke"], me = ["xmlns", "stroke"], be = ["fill"], Me = ["xmlns", "stroke"], Le = ["xmlns", "stroke"], Ae = ["fill"], $e = ["xmlns", "stroke"], Be = ["xmlns", "stroke"], Pe = ["fill"], We = ["xmlns", "stroke"], je = ["xmlns"], ze = ["points", "fill", "stroke", "stroke-width"], Ze = ["xmlns"], qe = { key: 0 }, He = ["stroke", "stroke-width"], Qe = ["y", "width", "fill", "rx"], Ee = {
7
7
  __name: "vue-ui-skeleton",
@@ -1,6 +1,6 @@
1
1
  import { useSlots as E, onMounted as G, ref as R, computed as _, watch as T, createElementBlock as s, openBlock as i, normalizeStyle as a, createCommentVNode as d, createElementVNode as l, toDisplayString as c, unref as o, withKeys as z, normalizeClass as M, createTextVNode as S, createStaticVNode as $ } from "vue";
2
- import { u as P, o as q, e as J, i as x, f as b, X as f, w as k } from "./index-DFSXaw69.js";
3
- import { u as Q } from "./useNestedProp-CV3NndHa.js";
2
+ import { u as P, o as q, e as J, i as x, f as b, X as f, x as k } from "./index-CJ_8wwwn.js";
3
+ import { u as Q } from "./useNestedProp-Co3NIfJz.js";
4
4
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const Z = {
6
6
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as M, computed as s, ref as k, watch as D, onMounted as ee, createElementBlock as r, openBlock as o, normalizeStyle as te, createBlock as L, createCommentVNode as i, unref as u, createVNode as ae, createElementVNode as _, renderSlot as O, toDisplayString as G } from "vue";
2
- import { u as le, c as ne, a as oe, a5 as I, o as se, e as ue, v as c, a6 as re, X as ie, s as F, V as U, f as P, i as de } from "./index-DFSXaw69.js";
3
- import { u as q } from "./useNestedProp-CV3NndHa.js";
2
+ import { u as le, c as ne, a as oe, a5 as I, o as se, e as ue, w as c, a6 as re, X as ie, s as F, W as U, f as P, i as de } from "./index-CJ_8wwwn.js";
3
+ import { u as W } from "./useNestedProp-Co3NIfJz.js";
4
4
  import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const he = ["id"], ce = ["xmlns", "viewBox"], ye = ["width", "height"], fe = ["id"], pe = ["stop-color"], ge = ["stop-color"], me = { key: 1 }, ke = ["d", "fill"], _e = ["d", "fill"], be = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], we = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], xe = ["height", "width", "x"], Ce = { style: { width: "100%" } }, Le = ["x", "y", "fill", "font-size", "font-weight"], $e = ["stroke", "cx", "cy", "fill"], Ne = ["x", "y", "font-size", "fill", "font-weight"], Te = {
6
6
  key: 2,
@@ -22,18 +22,18 @@ const he = ["id"], ce = ["xmlns", "viewBox"], ye = ["width", "height"], fe = ["i
22
22
  }
23
23
  }
24
24
  },
25
- setup(W) {
26
- const $ = M(() => import("./BaseIcon-C-MP5EHV.js")), X = M(() => import("./PackageVersion-D3jqYZS6.js")), Z = M(() => import("./vue-ui-skeleton-1OErZL6t.js")), { vue_ui_spark_trend: R } = le(), d = W, H = s(() => !!d.dataset && d.dataset.length), b = k(ne()), e = s({
25
+ setup(q) {
26
+ const $ = M(() => import("./BaseIcon-D3lVmh4q.js")), X = M(() => import("./PackageVersion-_JpUHIQF.js")), Z = M(() => import("./vue-ui-skeleton-DVxUvega.js")), { vue_ui_spark_trend: R } = le(), d = q, H = s(() => !!d.dataset && d.dataset.length), b = k(ne()), e = s({
27
27
  get: () => j(),
28
28
  set: (t) => t
29
29
  });
30
30
  function j() {
31
- const t = q({
31
+ const t = W({
32
32
  userConfig: d.config,
33
33
  defaultConfig: R
34
34
  });
35
35
  return t.theme ? {
36
- ...q({
36
+ ...W({
37
37
  userConfig: oe.vue_ui_spark_trend[t.theme] || d.config,
38
38
  defaultConfig: t
39
39
  })
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as V, useSlots as R, onMounted as z, computed as g, ref as k, watch as L, nextTick as Y, createElementBlock as c, openBlock as u, normalizeStyle as p, unref as o, renderSlot as _, createCommentVNode as v, createBlock as Z, normalizeProps as ee, mergeProps as O, createElementVNode as d, toDisplayString as f, Fragment as T, renderList as te, createVNode as le } from "vue";
2
- import { u as ae, c as oe, t as se, p as x, a as ne, b as ue, o as re, e as E, g as ie, d as ce, s as $, i as b, f as w, X as ve, w as de } from "./index-DFSXaw69.js";
3
- import { u as B } from "./useNestedProp-CV3NndHa.js";
2
+ import { u as ae, c as oe, t as se, p as x, a as ne, b as ue, o as re, e as E, g as ie, d as ce, s as $, i as b, f as w, X as ve, x as de } from "./index-CJ_8wwwn.js";
3
+ import { u as B } from "./useNestedProp-Co3NIfJz.js";
4
4
  const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"], ge = ["stop-color"], he = ["stop-color"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = ["height", "width", "fill", "rx"], we = {
5
5
  key: 2,
6
6
  ref: "source",
@@ -30,7 +30,7 @@ const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"],
30
30
  },
31
31
  emits: ["selectDatapoint"],
32
32
  setup(C, { emit: M }) {
33
- const U = V(() => import("./PackageVersion-D3jqYZS6.js")), j = V(() => import("./vue-ui-skeleton-1OErZL6t.js")), { vue_ui_sparkbar: G } = ae(), a = C, W = R();
33
+ const U = V(() => import("./PackageVersion-_JpUHIQF.js")), j = V(() => import("./vue-ui-skeleton-DVxUvega.js")), { vue_ui_sparkbar: G } = ae(), a = C, W = R();
34
34
  z(() => {
35
35
  W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
36
36
  });
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as A, computed as s, onMounted as N, ref as M, watch as S, createElementBlock as r, openBlock as n, normalizeStyle as y, createCommentVNode as v, createBlock as R, toDisplayString as g, unref as i, createVNode as U, createElementVNode as d, renderSlot as z, normalizeClass as q } from "vue";
2
- import { u as O } from "./useNestedProp-CV3NndHa.js";
3
- import { u as T, o as V, e as j, g as X, c as H, a as Y, P as J, X as K, i as Q, v as m, f as W } from "./index-DFSXaw69.js";
2
+ import { u as O } from "./useNestedProp-Co3NIfJz.js";
3
+ import { u as T, o as V, e as j, g as X, c as H, a as Y, P as J, X as K, i as Q, w as m, f as W } from "./index-CJ_8wwwn.js";
4
4
  import { u as Z } from "./useChartAccessibility-9icAAmYg.js";
5
5
  const ee = ["xmlns", "viewBox"], te = ["width", "height"], ae = ["id"], le = ["stop-color"], oe = ["stop-color"], se = ["d", "stroke", "stroke-linecap"], ue = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ne = ["x", "y", "font-size", "fill", "font-weight"], ie = {
6
6
  key: 4,
@@ -23,7 +23,7 @@ const ee = ["xmlns", "viewBox"], te = ["width", "height"], ae = ["id"], le = ["s
23
23
  }
24
24
  },
25
25
  setup(E) {
26
- const F = A(() => import("./PackageVersion-D3jqYZS6.js")), B = A(() => import("./vue-ui-skeleton-1OErZL6t.js")), { vue_ui_sparkgauge: D } = T(), a = E, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
26
+ const F = A(() => import("./PackageVersion-_JpUHIQF.js")), B = A(() => import("./vue-ui-skeleton-DVxUvega.js")), { vue_ui_sparkgauge: D } = T(), a = E, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
27
27
  N(() => {
28
28
  h();
29
29
  });
@@ -1,8 +1,8 @@
1
1
  import { useCssVars as le, computed as _, defineAsyncComponent as N, onMounted as ae, ref as D, watch as se, createElementBlock as s, openBlock as a, normalizeStyle as $, createCommentVNode as c, createBlock as V, createElementVNode as h, createTextVNode as oe, toDisplayString as p, unref as n, createVNode as ie, renderSlot as I, Fragment as f, renderList as g, normalizeClass as E } from "vue";
2
- import { u as ue, o as re, e as H, g as ne, c as ve, a as de, s as b, i as F, f as O, X as ce, w as z } from "./index-DFSXaw69.js";
3
- import { u as W } from "./useNestedProp-CV3NndHa.js";
2
+ import { u as ue, o as re, e as H, g as ne, c as ve, a as de, s as b, i as F, f as O, X as ce, x as z } from "./index-CJ_8wwwn.js";
3
+ import { u as W } from "./useNestedProp-Co3NIfJz.js";
4
4
  import { u as ye } from "./useChartAccessibility-9icAAmYg.js";
5
- import { _ as he } from "./Shape-CFp_TwS5.js";
5
+ import { _ as he } from "./Shape-BLUp5WPA.js";
6
6
  import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const ge = { key: 0 }, pe = { key: 1 }, be = ["xmlns", "viewBox"], me = ["width", "height"], _e = ["id"], xe = ["stop-color"], ke = ["stop-color"], we = ["id"], $e = ["stop-color"], Ce = ["stop-color"], Le = ["id"], ze = ["stop-color"], Se = ["stop-color"], Ae = { key: 1 }, Me = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ne = { key: 2 }, De = ["x", "y", "font-size", "font-weight", "fill"], Ve = ["x", "y", "font-size", "fill"], Ie = ["x", "y", "font-size", "fill"], Ee = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], He = {
8
8
  key: 2,
@@ -29,7 +29,7 @@ const ge = { key: 0 }, pe = { key: 1 }, be = ["xmlns", "viewBox"], me = ["width"
29
29
  le((l) => ({
30
30
  "2d6ebc7a": J.value
31
31
  }));
32
- const j = N(() => import("./PackageVersion-D3jqYZS6.js")), R = N(() => import("./vue-ui-skeleton-1OErZL6t.js")), { vue_ui_sparkhistogram: X } = ue(), d = B, S = _(() => !!d.dataset && d.dataset.length);
32
+ const j = N(() => import("./PackageVersion-_JpUHIQF.js")), R = N(() => import("./vue-ui-skeleton-DVxUvega.js")), { vue_ui_sparkhistogram: X } = ue(), d = B, S = _(() => !!d.dataset && d.dataset.length);
33
33
  ae(() => {
34
34
  A();
35
35
  });
@@ -0,0 +1,489 @@
1
+ import { defineAsyncComponent as le, computed as h, ref as g, toRefs as $e, watch as ue, shallowRef as oe, onMounted as Ce, onBeforeUnmount as Me, createElementBlock as d, openBlock as r, normalizeStyle as V, renderSlot as M, createCommentVNode as y, createBlock as se, normalizeProps as ne, guardReactiveProps as re, createElementVNode as f, toDisplayString as z, unref as i, createVNode as Ie, Fragment as G, renderList as j, withCtx as Se, createTextVNode as Ve, nextTick as ze } from "vue";
2
+ import { u as We, c as De, v as Pe, a as Re, C as ie, a7 as U, o as ve, e as de, g as Te, x as W, a8 as Ee, a9 as Oe, X as Be, s as D, W as ce, V as Fe, aa as he, i as X, f as Y, ab as Ge } from "./index-CJ_8wwwn.js";
3
+ import { u as ye } from "./useNestedProp-Co3NIfJz.js";
4
+ import { t as je, u as Ue } from "./useResponsive-DfdjqQps.js";
5
+ import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
6
+ import { u as Ye, B as qe } from "./BaseScanner-DIK2NTdp.js";
7
+ import { u as Ze } from "./useTimeLabels-DkzmKfZn.js";
8
+ import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], et = ["id"], tt = ["stop-color"], at = ["stop-color"], lt = ["id"], ut = ["stop-color"], ot = ["stop-color"], st = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = { key: 1 }, vt = ["d", "fill"], dt = ["d", "fill"], ct = ["d", "stroke", "stroke-width"], ht = ["d", "stroke", "stroke-width"], yt = ["x", "y", "width", "height", "fill", "rx"], ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bt = ["x", "y", "font-size", "font-weight", "fill"], mt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], kt = {
10
+ __name: "vue-ui-sparkline",
11
+ props: {
12
+ config: {
13
+ type: Object,
14
+ default() {
15
+ return {};
16
+ }
17
+ },
18
+ dataset: {
19
+ type: Array,
20
+ default() {
21
+ return [];
22
+ }
23
+ },
24
+ showInfo: {
25
+ type: Boolean,
26
+ default: !0
27
+ },
28
+ selectedIndex: {
29
+ type: Number,
30
+ default: void 0
31
+ },
32
+ heightRatio: {
33
+ type: Number,
34
+ default: 1
35
+ },
36
+ forcedPadding: {
37
+ type: Number,
38
+ default: 30
39
+ }
40
+ },
41
+ emits: ["hoverIndex", "selectDatapoint"],
42
+ setup(_, { emit: fe }) {
43
+ const pe = le(() => import("./PackageVersion-_JpUHIQF.js")), ge = le(() => import("./SparkTooltip-Nh3_vlzT.js")), { vue_ui_sparkline: be } = We(), n = _, q = h(() => Array.isArray(n.dataset) && n.dataset.length > 0), p = g(De()), P = g(null), Z = g(null), H = g(null), e = g(E());
44
+ function me(t) {
45
+ return Ge(t).map((a) => ({ period: "-", value: a }));
46
+ }
47
+ const { loading: R, FINAL_DATASET: I, manualLoading: T } = Ye({
48
+ ...$e(n),
49
+ FINAL_CONFIG: e,
50
+ prepareConfig: E,
51
+ callback: () => {
52
+ Promise.resolve().then(async () => {
53
+ await ze(), K();
54
+ });
55
+ },
56
+ skeletonDataset: me(12),
57
+ skeletonConfig: Pe({
58
+ defaultConfig: e.value,
59
+ userConfig: {
60
+ style: {
61
+ backgroundColor: "#99999930",
62
+ scaleMin: 0,
63
+ scaleMax: 89,
64
+ animation: { show: !1 },
65
+ line: { color: "#AAAAAA" },
66
+ bar: { color: "#AAAAAA" },
67
+ area: { color: "#CACACA" },
68
+ zeroLine: { color: "#6A6A6A" },
69
+ dataLabel: { show: !1 },
70
+ tooltip: { show: !1 }
71
+ }
72
+ }
73
+ })
74
+ }), { svgRef: J } = Xe({ config: e.value.style.title });
75
+ function E() {
76
+ const t = ye({
77
+ userConfig: n.config,
78
+ defaultConfig: be
79
+ });
80
+ let a = {};
81
+ return t.theme ? a = {
82
+ ...ye({
83
+ userConfig: Re.vue_ui_sparkline[t.theme] || n.config,
84
+ defaultConfig: t
85
+ })
86
+ } : a = t, n.config && ie(n.config, "style.scaleMin") ? a.style.scaleMin = n.config.style.scaleMin : a.style.scaleMin = null, n.config && ie(n.config, "style.scaleMax") ? a.style.scaleMax = n.config.style.scaleMax : a.style.scaleMax = null, a;
87
+ }
88
+ const k = h(() => U({
89
+ data: I.value,
90
+ threshold: e.value.downsample.threshold
91
+ }));
92
+ ue(() => n.config, (t) => {
93
+ R.value || (e.value = E()), ee(), u.value.chartWidth = e.value.style.chartWidth;
94
+ }, { deep: !0 }), ue(() => n.dataset, (t) => {
95
+ Array.isArray(t) && t.length > 0 && (T.value = !1), x.value = U({
96
+ data: I.value.map((a) => ({
97
+ ...a,
98
+ value: [void 0].includes(a.value) ? null : a.value
99
+ })),
100
+ threshold: e.value.downsample.threshold
101
+ });
102
+ }, { deep: !0 });
103
+ const x = g(ke());
104
+ function ke() {
105
+ return U({
106
+ data: I.value.map((t) => e.value.style.animation.show && I.value.length > 1 ? {
107
+ ...t,
108
+ value: null
109
+ } : {
110
+ ...t,
111
+ value: [void 0].includes(t.value) ? null : t.value
112
+ }),
113
+ threshold: e.value.downsample.threshold
114
+ });
115
+ }
116
+ const b = oe(null), L = oe(null);
117
+ function K() {
118
+ if (e.value.style.animation.show && n.dataset.length > 1 && !R.value) {
119
+ let l = function() {
120
+ a < k.value.length ? (x.value.push(k.value[a]), setTimeout(() => {
121
+ requestAnimationFrame(l);
122
+ }, t)) : x.value = k.value, a += 1;
123
+ };
124
+ x.value = [];
125
+ const t = e.value.style.animation.animationFrames / n.dataset.length;
126
+ let a = 0;
127
+ l();
128
+ }
129
+ }
130
+ Ce(() => {
131
+ ee(), K();
132
+ });
133
+ const Q = h(() => !!e.value.debug);
134
+ function ee() {
135
+ if (ve(n.dataset) ? (de({
136
+ componentName: "VueUiSparkline",
137
+ type: "dataset",
138
+ debug: Q.value
139
+ }), T.value = !0) : n.dataset.forEach((t, a) => {
140
+ Te({
141
+ datasetObject: t,
142
+ requiredAttributes: ["period", "value"]
143
+ }).forEach((l) => {
144
+ de({
145
+ componentName: "VueUiSparkline",
146
+ type: "datasetSerieAttribute",
147
+ property: l,
148
+ index: a,
149
+ debug: Q.value
150
+ });
151
+ });
152
+ }), ve(n.dataset) || (T.value = e.value.loading), e.value.responsive) {
153
+ const t = je(() => {
154
+ const { width: a, height: l } = Ue({
155
+ chart: P.value,
156
+ title: e.value.style.title.show && n.showInfo ? Z.value : null,
157
+ source: H.value
158
+ });
159
+ requestAnimationFrame(() => {
160
+ u.value.width = a, u.value.height = l, u.value.chartWidth = e.value.style.chartWidth / 500 * a, u.value.padding = n.forcedPadding / 500 * a;
161
+ });
162
+ });
163
+ b.value && (L.value && b.value.unobserve(L.value), b.value.disconnect()), b.value = new ResizeObserver(t), L.value = P.value.parentNode, b.value.observe(L.value);
164
+ }
165
+ }
166
+ Me(() => {
167
+ b.value && (L.value && b.value.unobserve(L.value), b.value.disconnect());
168
+ });
169
+ const u = g({
170
+ height: 80 * n.heightRatio,
171
+ width: 500,
172
+ chartWidth: e.value.style.chartWidth,
173
+ padding: n.forcedPadding
174
+ }), O = fe, o = h(() => {
175
+ const { top: t, right: a, bottom: l, left: s } = e.value.style.padding;
176
+ return {
177
+ top: t,
178
+ left: s,
179
+ right: u.value.width - a,
180
+ bottom: u.value.height - l,
181
+ start: n.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? u.value.width - u.value.chartWidth + s : u.value.padding + s,
182
+ width: n.showInfo && e.value.style.dataLabel.show ? u.value.chartWidth - s - a : u.value.width - u.value.padding - s - a,
183
+ height: u.value.height - t - l
184
+ };
185
+ }), B = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...x.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), xe = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...x.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), $ = h(() => {
186
+ const t = B.value >= 0 ? 0 : B.value;
187
+ return Math.abs(t);
188
+ }), te = h(() => xe.value + $.value), A = h(() => o.value.bottom - o.value.height * F($.value));
189
+ function F(t) {
190
+ return isNaN(t / te.value) ? 0 : t / te.value;
191
+ }
192
+ const w = h(() => k.value.length - 1), S = h(() => Ze({
193
+ values: k.value.map((t) => t.period),
194
+ maxDatapoints: k.value.length,
195
+ formatter: e.value.style.dataLabel.datetimeFormatter,
196
+ start: 0,
197
+ end: k.value.length
198
+ })), c = h(() => x.value.map((t, a) => {
199
+ const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, s = o.value.width / (w.value + 1) > u.padding ? u.padding : o.value.width / (w.value + 1);
200
+ return {
201
+ absoluteValue: l,
202
+ period: S.value && S.value[a] && S.value[a].text ? S.value[a].text : t.period,
203
+ plotValue: l + $.value,
204
+ toMax: F(l + $.value),
205
+ x: o.value.start + a * (s > o.value.width / 12 ? o.value.width / 12 : s),
206
+ y: o.value.bottom - o.value.height * F(l + $.value),
207
+ id: `plot_${p.value}_${a}`,
208
+ color: C.value ? e.value.style.bar.color : e.value.style.area.useGradient ? W(e.value.style.line.color, 0.05 * (1 - a / w.value)) : e.value.style.line.color,
209
+ width: s > o.value.width / 12 ? o.value.width / 12 : s
210
+ };
211
+ })), we = h(() => {
212
+ const t = { x: c.value[0].x || 0, y: (u.value.height || 0) - 6 }, a = { x: c.value[c.value.length - 1].x || 0, y: (u.value.height || 0) - 6 }, l = [];
213
+ return c.value.forEach((s) => {
214
+ l.push(`${s.x || 0},${s.y || 0} `);
215
+ }), [t.x, t.y, ...l, a.x, a.y].toString();
216
+ }), v = g(void 0), N = g(void 0);
217
+ function _e(t, a) {
218
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, N.value || (N.value = t), O("hoverIndex", { index: a });
219
+ }
220
+ function Le(t, a) {
221
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), N.value = v.value, v.value = void 0, O("hoverIndex", { index: void 0 });
222
+ }
223
+ const m = h(() => {
224
+ if (q.value) {
225
+ const t = c.value.map((l) => l.absoluteValue), a = t.reduce((l, s) => l + s, 0);
226
+ return {
227
+ latest: c.value[c.value.length - 1].absoluteValue,
228
+ sum: a,
229
+ average: a / c.value.length,
230
+ median: Oe(t),
231
+ trend: Ee(c.value.map(({ x: l, y: s, absoluteValue: Ne }) => ({
232
+ x: l,
233
+ y: s,
234
+ value: Ne
235
+ }))).trend
236
+ };
237
+ } else
238
+ return {
239
+ latest: null,
240
+ sum: null,
241
+ average: null,
242
+ median: null,
243
+ trend: null
244
+ };
245
+ }), ae = h(() => q.value ? e.value.style.dataLabel.valueType === "latest" ? m.value.latest : e.value.style.dataLabel.valueType === "sum" ? m.value.sum : e.value.style.dataLabel.valueType === "average" ? m.value.average : 0 : 0), C = h(() => e.value.type && e.value.type === "bar");
246
+ function Ae(t, a) {
247
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), O("selectDatapoint", { datapoint: t, index: a });
248
+ }
249
+ return (t, a) => (r(), d("div", {
250
+ ref_key: "sparklineChart",
251
+ ref: P,
252
+ class: "vue-ui-sparkline",
253
+ id: p.value,
254
+ style: V(`width:100%;font-family:${e.value.style.fontFamily};`)
255
+ }, [
256
+ M(t.$slots, "before", ne(re({
257
+ selected: v.value,
258
+ latest: m.value.latest,
259
+ sum: m.value.sum,
260
+ average: m.value.average,
261
+ median: m.value.median,
262
+ trend: m.value.trend
263
+ })), void 0, !0),
264
+ e.value.style.title.show && _.showInfo ? (r(), d("div", {
265
+ key: 0,
266
+ ref_key: "chartTitle",
267
+ ref: Z,
268
+ class: "vue-ui-sparkline-title",
269
+ style: V(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
270
+ }, [
271
+ f("span", {
272
+ style: V(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
273
+ }, z(v.value ? v.value.period : e.value.style.title.text), 5)
274
+ ], 4)) : y("", !0),
275
+ (r(), d("svg", {
276
+ ref_key: "svgRef",
277
+ ref: J,
278
+ xmlns: i(Be),
279
+ viewBox: `0 0 ${u.value.width} ${u.value.height}`,
280
+ style: V(`background:${e.value.style.backgroundColor};overflow:visible`),
281
+ onMouseleave: a[0] || (a[0] = (l) => N.value = void 0)
282
+ }, [
283
+ Ie(i(pe)),
284
+ t.$slots["chart-background"] ? (r(), d("foreignObject", {
285
+ key: 0,
286
+ x: 0,
287
+ y: 0,
288
+ width: u.value.width <= 0 ? 10 : u.value.width,
289
+ height: u.value.height <= 0 ? 10 : u.value.height,
290
+ style: {
291
+ pointerEvents: "none"
292
+ }
293
+ }, [
294
+ M(t.$slots, "chart-background", {}, void 0, !0)
295
+ ], 8, Qe)) : y("", !0),
296
+ f("defs", null, [
297
+ f("linearGradient", {
298
+ x1: "0%",
299
+ y1: "0%",
300
+ x2: "100%",
301
+ y2: "0%",
302
+ id: `sparkline_gradient_${p.value}`
303
+ }, [
304
+ f("stop", {
305
+ offset: "0%",
306
+ "stop-color": i(D)(i(W)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
307
+ }, null, 8, tt),
308
+ f("stop", {
309
+ offset: "100%",
310
+ "stop-color": i(D)(e.value.style.area.color, e.value.style.area.opacity)
311
+ }, null, 8, at)
312
+ ], 8, et),
313
+ f("linearGradient", {
314
+ x2: "0%",
315
+ y2: "100%",
316
+ id: `sparkline_bar_gradient_pos_${p.value}`
317
+ }, [
318
+ f("stop", {
319
+ offset: "0%",
320
+ "stop-color": e.value.style.bar.color
321
+ }, null, 8, ut),
322
+ f("stop", {
323
+ offset: "100%",
324
+ "stop-color": i(W)(e.value.style.bar.color, 0.05)
325
+ }, null, 8, ot)
326
+ ], 8, lt),
327
+ f("linearGradient", {
328
+ x2: "0%",
329
+ y2: "100%",
330
+ id: `sparkline_bar_gradient_neg_${p.value}`
331
+ }, [
332
+ f("stop", {
333
+ offset: "0%",
334
+ "stop-color": i(W)(e.value.style.bar.color, 0.05)
335
+ }, null, 8, nt),
336
+ f("stop", {
337
+ offset: "100%",
338
+ "stop-color": e.value.style.bar.color
339
+ }, null, 8, rt)
340
+ ], 8, st)
341
+ ]),
342
+ e.value.style.area.show && !C.value && c.value[0] ? (r(), d("g", it, [
343
+ e.value.style.line.smooth ? (r(), d("path", {
344
+ key: 0,
345
+ d: `M ${c.value[0].x},${o.value.bottom} ${i(ce)(c.value)} L ${c.value.at(-1).x},${o.value.bottom} Z`,
346
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : i(D)(e.value.style.area.color, e.value.style.area.opacity)
347
+ }, null, 8, vt)) : (r(), d("path", {
348
+ key: 1,
349
+ d: `M${we.value}Z`,
350
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : i(D)(e.value.style.area.color, e.value.style.area.opacity)
351
+ }, null, 8, dt))
352
+ ])) : y("", !0),
353
+ e.value.style.line.smooth && !C.value ? (r(), d("path", {
354
+ key: 2,
355
+ d: `M ${i(ce)(c.value)}`,
356
+ stroke: e.value.style.line.color,
357
+ fill: "none",
358
+ "stroke-width": e.value.style.line.strokeWidth,
359
+ "stroke-linecap": "round"
360
+ }, null, 8, ct)) : y("", !0),
361
+ !e.value.style.line.smooth && !C.value ? (r(), d("path", {
362
+ key: 3,
363
+ d: `M ${i(Fe)(c.value)}`,
364
+ stroke: e.value.style.line.color,
365
+ fill: "none",
366
+ "stroke-width": e.value.style.line.strokeWidth,
367
+ "stroke-linecap": "round"
368
+ }, null, 8, ht)) : y("", !0),
369
+ (r(!0), d(G, null, j(c.value, (l, s) => (r(), d("g", null, [
370
+ C.value ? (r(), d("rect", {
371
+ key: 0,
372
+ x: l.x - l.width / 2,
373
+ y: isNaN(l.absoluteValue > 0 ? l.y : A.value) ? 0 : l.absoluteValue > 0 ? l.y : A.value,
374
+ width: l.width,
375
+ height: isNaN(Math.abs(l.y - A.value)) ? 0 : Math.abs(l.y - A.value),
376
+ fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
377
+ rx: e.value.style.bar.borderRadius
378
+ }, null, 8, yt)) : y("", !0),
379
+ e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || _.selectedIndex === s) ? (r(), d("line", {
380
+ key: 1,
381
+ x1: l.x,
382
+ x2: l.x,
383
+ y1: o.value.top - 6,
384
+ y2: o.value.bottom,
385
+ stroke: e.value.style.verticalIndicator.color || l.color,
386
+ "stroke-width": e.value.style.verticalIndicator.strokeWidth,
387
+ "stroke-linecap": "round",
388
+ "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
389
+ }, null, 8, ft)) : y("", !0)
390
+ ]))), 256)),
391
+ B.value < 0 ? (r(), d("line", {
392
+ key: 4,
393
+ x1: o.value.start,
394
+ x2: o.value.start + o.value.width - 16,
395
+ y1: i(he)(A.value, o.value.bottom),
396
+ y2: i(he)(A.value, o.value.bottom),
397
+ stroke: e.value.style.zeroLine.color,
398
+ "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
399
+ "stroke-width": e.value.style.zeroLine.strokeWidth,
400
+ "stroke-linecap": "round"
401
+ }, null, 8, pt)) : y("", !0),
402
+ e.value.style.plot.show ? (r(!0), d(G, { key: 5 }, j(c.value, (l, s) => (r(), d("g", null, [
403
+ v.value && l.id === v.value.id || _.selectedIndex === s || _.dataset.length === 1 ? (r(), d("circle", {
404
+ key: 0,
405
+ cx: l.x,
406
+ cy: l.y,
407
+ r: e.value.style.plot.radius,
408
+ fill: l.color,
409
+ stroke: e.value.style.plot.stroke,
410
+ "stroke-width": e.value.style.plot.strokeWidth
411
+ }, null, 8, gt)) : y("", !0)
412
+ ]))), 256)) : y("", !0),
413
+ _.showInfo && e.value.style.dataLabel.show ? (r(), d("text", {
414
+ key: 6,
415
+ x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : o.value.width + 12 + e.value.style.dataLabel.offsetX,
416
+ y: u.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
417
+ "font-size": e.value.style.dataLabel.fontSize,
418
+ "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
419
+ fill: e.value.style.dataLabel.color
420
+ }, z(v.value ? i(X)(
421
+ e.value.style.dataLabel.formatter,
422
+ v.value.absoluteValue,
423
+ i(Y)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
424
+ { datapoint: v.value }
425
+ ) : i(X)(
426
+ e.value.style.dataLabel.formatter,
427
+ ae.value,
428
+ i(Y)({ p: e.value.style.dataLabel.prefix, v: ae.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
429
+ )), 9, bt)) : y("", !0),
430
+ (r(!0), d(G, null, j(c.value, (l, s) => (r(), d("rect", {
431
+ x: l.x - (o.value.width / (w.value + 1) > u.value.padding ? u.value.padding : o.value.width / (w.value + 1)) / 2,
432
+ y: o.value.top - 6,
433
+ height: o.value.height + 6,
434
+ width: o.value.width / (w.value + 1) > u.value.padding ? u.value.padding : o.value.width / (w.value + 1),
435
+ fill: "transparent",
436
+ onMouseenter: () => _e(l, s),
437
+ onMouseleave: () => Le(l, s),
438
+ onClick: () => Ae(l, s)
439
+ }, null, 40, mt))), 256)),
440
+ M(t.$slots, "svg", { svg: u.value }, void 0, !0)
441
+ ], 44, Ke)),
442
+ v.value && e.value.style.tooltip.show ? (r(), se(i(ge), {
443
+ key: 1,
444
+ x: v.value.x,
445
+ y: v.value.y,
446
+ prevX: N.value.x,
447
+ prevY: N.value.y,
448
+ offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
449
+ svgRef: i(J),
450
+ background: e.value.style.tooltip.backgroundColor,
451
+ color: e.value.style.tooltip.color,
452
+ fontSize: e.value.style.tooltip.fontSize,
453
+ borderWidth: e.value.style.tooltip.borderWidth,
454
+ borderColor: e.value.style.tooltip.borderColor,
455
+ borderRadius: e.value.style.tooltip.borderRadius,
456
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity
457
+ }, {
458
+ default: Se(() => [
459
+ M(t.$slots, "tooltip", ne(re({ ...v.value })), () => [
460
+ Ve(z(v.value.period) + ": " + z(i(X)(
461
+ e.value.style.dataLabel.formatter,
462
+ v.value.absoluteValue,
463
+ i(Y)({
464
+ p: e.value.style.dataLabel.prefix,
465
+ v: v.value.absoluteValue,
466
+ s: e.value.style.dataLabel.suffix,
467
+ r: e.value.style.dataLabel.roundingValue
468
+ }),
469
+ { datapoint: v.value }
470
+ )), 1)
471
+ ], !0)
472
+ ]),
473
+ _: 3
474
+ }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : y("", !0),
475
+ t.$slots.source ? (r(), d("div", {
476
+ key: 2,
477
+ ref_key: "source",
478
+ ref: H,
479
+ dir: "auto"
480
+ }, [
481
+ M(t.$slots, "source", {}, void 0, !0)
482
+ ], 512)) : y("", !0),
483
+ i(R) ? (r(), se(qe, { key: 3 })) : y("", !0)
484
+ ], 12, Je));
485
+ }
486
+ }, Mt = /* @__PURE__ */ He(kt, [["__scopeId", "data-v-251d35ec"]]);
487
+ export {
488
+ Mt as default
489
+ };