vue-data-ui 3.4.9 → 3.5.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 (114) hide show
  1. package/README.md +88 -37
  2. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy-canvas.js +1 -1
  56. package/dist/components/vue-ui-xy.js +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
  59. package/dist/vue-data-ui.js +54 -54
  60. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
  61. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
  62. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
  63. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
  64. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
  65. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
  66. package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
  67. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
  68. package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
  69. package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
  70. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
  71. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
  72. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
  73. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
  74. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
  75. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
  76. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
  77. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
  78. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
  79. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
  82. package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
  83. package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
  84. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
  85. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
  86. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
  87. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
  89. package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
  90. package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
  91. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
  96. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
  97. package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
  98. package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
  99. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
  100. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
  101. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
  102. package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
  103. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
  104. package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
  105. package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
  106. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
  107. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
  108. package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
  109. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
  110. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
  111. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
  112. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
  113. package/package.json +1 -1
  114. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
@@ -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
2
  import { k as B, X as c, s as v, j as F } from "./lib-C_mNZmhD.js";
3
3
  import { u as O, a as V } from "./useNestedProp-BjZe1Y85.js";
4
- import y from "./PackageVersion-CTUqGqWV.js";
4
+ import y from "./PackageVersion-Cyx_s25h.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"], c1 = ["stroke"], u1 = ["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"], cl = ["stroke", "fill"], ul = ["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"], c0 = ["stroke"], u0 = ["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"], ct = ["stroke", "stroke-width"], ut = ["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"], ce = ["x", "y", "fill"], ue = ["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",
@@ -23,7 +23,7 @@ const Me = ["id"], Ie = ["xmlns", "viewBox"], je = ["width", "height"], Ee = ["i
23
23
  }
24
24
  },
25
25
  setup(ae) {
26
- const ne = ce(() => import("./PackageVersion-CTUqGqWV.js")), { vue_ui_spark_trend: ue } = Ae(), m = ae, F = f(null), W = f(null), H = f(null), $ = f(null), C = f(null), A = f(!1), y = f(null), L = f(ke()), e = f(j()), { loading: _, FINAL_DATASET: M, manualLoading: I } = Te({
26
+ const ne = ce(() => import("./PackageVersion-Cyx_s25h.js")), { vue_ui_spark_trend: ue } = Ae(), m = ae, F = f(null), W = f(null), H = f(null), $ = f(null), C = f(null), A = f(!1), y = f(null), L = f(ke()), e = f(j()), { loading: _, FINAL_DATASET: M, manualLoading: I } = Te({
27
27
  ...he(m),
28
28
  FINAL_CONFIG: e,
29
29
  prepareConfig: j,
@@ -32,7 +32,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
32
32
  },
33
33
  emits: ["selectDatapoint"],
34
34
  setup(O, { emit: j }) {
35
- const U = Z(() => import("./PackageVersion-CTUqGqWV.js")), { vue_ui_sparkbar: R } = ge(), f = O, W = ee();
35
+ const U = Z(() => import("./PackageVersion-Cyx_s25h.js")), { vue_ui_sparkbar: R } = ge(), f = O, W = ee();
36
36
  F(() => {
37
37
  W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
38
38
  });
@@ -25,7 +25,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
25
25
  }
26
26
  },
27
27
  setup(D) {
28
- const O = T(() => import("./PackageVersion-CTUqGqWV.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
28
+ const O = T(() => import("./PackageVersion-Cyx_s25h.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
29
29
  ...U(c),
30
30
  FINAL_CONFIG: e,
31
31
  prepareConfig: p,
@@ -29,7 +29,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
29
29
  pe((l) => ({
30
30
  v693dff61: ve.value
31
31
  }));
32
- const te = me(() => import("./PackageVersion-CTUqGqWV.js")), { vue_ui_sparkhistogram: le } = Se(), b = Z, _ = y(ke()), W = y(null), V = y(null), M = y(null), C = y(null), w = y(null), e = y(T()), { loading: H, FINAL_DATASET: A } = Me({
32
+ const te = me(() => import("./PackageVersion-Cyx_s25h.js")), { vue_ui_sparkhistogram: le } = Se(), b = Z, _ = y(ke()), W = y(null), V = y(null), M = y(null), C = y(null), w = y(null), e = y(T()), { loading: H, FINAL_DATASET: A } = Me({
33
33
  ...be(b),
34
34
  FINAL_CONFIG: e,
35
35
  prepareConfig: T,
@@ -41,7 +41,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
41
41
  },
42
42
  emits: ["hoverIndex", "selectDatapoint"],
43
43
  setup($, { emit: Ae }) {
44
- const $e = he(() => import("./PackageVersion-CTUqGqWV.js")), Ne = he(() => import("./SparkTooltip-BEewz-_Q.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(O());
44
+ const $e = he(() => import("./PackageVersion-Cyx_s25h.js")), Ne = he(() => import("./SparkTooltip-BEewz-_Q.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(O());
45
45
  function Ce(t) {
46
46
  return Ke(t).map((a) => ({ period: "-", value: a }));
47
47
  }
@@ -0,0 +1,441 @@
1
+ import { defineAsyncComponent as K, useSlots as we, onMounted as Q, ref as v, toRefs as Ce, watch as Z, computed as S, createElementBlock as r, openBlock as s, normalizeStyle as f, createCommentVNode as h, createVNode as ee, createBlock as $e, createElementVNode as d, toDisplayString as A, unref as c, Fragment as k, renderList as I, normalizeClass as L, withCtx as te, renderSlot as R, normalizeProps as le, guardReactiveProps as oe } from "vue";
2
+ import { c as ae, t as Se, b as Fe, p as i, h as D, e as Ae, o as Ie, f as se, g as De, d as j, X as Te, s as re, i as ne, a as ue, G as Pe } from "./lib-C_mNZmhD.js";
3
+ import { u as ze, a as ie } from "./useNestedProp-BjZe1Y85.js";
4
+ import { u as Be } from "./useChartAccessibility-9icAAmYg.js";
5
+ import { t as Le } from "./themes-AUNCOb2G.js";
6
+ import { u as Ne, B as Ve } from "./BaseScanner-BgWxam9d.js";
7
+ import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Ue = ["xmlns", "viewBox"], Me = ["id"], Oe = ["stop-color"], Re = ["stop-color"], je = ["stop-color"], Ge = {
9
+ id: "stackPill",
10
+ clipPathUnits: "objectBoundingBox"
11
+ }, We = ["fill"], Ye = {
12
+ key: 0,
13
+ "clip-path": "url(#stackPill)"
14
+ }, qe = ["x", "width", "height", "fill"], He = ["x", "width", "height", "fill", "stroke"], Xe = ["x", "width", "height", "onClick", "onMouseenter", "onMouseleave"], Je = ["width", "height", "rx"], Ke = ["onClick"], Qe = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Ze = ["height", "width"], et = ["id"], tt = ["stop-color"], lt = ["stop-color"], ot = ["fill"], at = {
15
+ key: 2,
16
+ ref: "source",
17
+ dir: "auto"
18
+ }, st = {
19
+ __name: "vue-ui-sparkstackbar",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectDatapoint"],
35
+ setup(ce, { expose: de, emit: ve }) {
36
+ const pe = K(() => import("./PackageVersion-Cyx_s25h.js")), fe = K(() => import("./Tooltip-oWCO1HKy.js")), { vue_ui_sparkstackbar: ge } = ze(), _ = ce, he = we();
37
+ Q(() => {
38
+ he["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
39
+ });
40
+ const G = v(null), T = v(ae()), N = v(!1), V = v(""), e = v(E()), { loading: x, FINAL_DATASET: m } = Ne({
41
+ ...Ce(_),
42
+ FINAL_CONFIG: e,
43
+ prepareConfig: E,
44
+ skeletonDataset: [
45
+ { name: "_", value: 8, color: "#808080" },
46
+ { name: "_", value: 5, color: "#ADADAD" },
47
+ { name: "_", value: 3, color: "#DBDBDB" }
48
+ ],
49
+ skeletonConfig: Se({
50
+ defaultConfig: e.value,
51
+ userConfig: {
52
+ style: {
53
+ backgroundColor: "#99999930",
54
+ animation: { show: !1 },
55
+ bar: { gradient: { inderlayerColor: "#6A6A6A" } },
56
+ title: {
57
+ backgroundColor: "transparent"
58
+ }
59
+ }
60
+ }
61
+ })
62
+ }), { svgRef: ye } = Be({ config: e.value.style.title });
63
+ function E() {
64
+ const t = ie({
65
+ userConfig: _.config,
66
+ defaultConfig: ge
67
+ });
68
+ return t.theme ? {
69
+ ...ie({
70
+ userConfig: Le.vue_ui_sparkstackbar[t.theme] || _.config,
71
+ defaultConfig: t
72
+ }),
73
+ customPalette: Fe[t.theme] || i
74
+ } : t;
75
+ }
76
+ Z(() => _.config, (t) => {
77
+ e.value = E(), q();
78
+ }, { deep: !0 }), Z(() => m.value, (t) => {
79
+ b.value = m.value.map((o, l) => ({
80
+ ...o,
81
+ color: o.color ? D(o.color) : F.value[l] || i[l] || i[l % i.length]
82
+ })), W();
83
+ }, { deep: !0 });
84
+ const F = S(() => Ae(e.value.customPalette)), b = v(m.value.map((t, o) => ({
85
+ ...t,
86
+ value: e.value.style.animation.show ? 0 : t.value || 0,
87
+ color: t.color ? D(t.color) : F.value[o] || i[o] || i[o % i.length]
88
+ }))), w = v(!0);
89
+ function W() {
90
+ if (!e.value.style.animation.show) return;
91
+ const t = e.value.style.animation.animationFrames, o = m.value.map((n) => n.value || 0), l = o.map((n) => n / t), a = o.reduce((n, u) => n + u, 0);
92
+ let y = 0;
93
+ w.value = !0, b.value = m.value.map((n, u) => ({
94
+ ...n,
95
+ value: 0,
96
+ color: n.color ? D(n.color) : F.value[u] || i[u] || i[u % i.length]
97
+ }));
98
+ function B() {
99
+ y += a / t, y < a ? (b.value = b.value.map((n, u) => ({
100
+ ...n,
101
+ value: Math.min(n.value + l[u], o[u]),
102
+ color: n.color ? D(n.color) : F.value[u] || i[u] || i[u % i.length]
103
+ })), requestAnimationFrame(B)) : (w.value = !1, b.value = m.value.map((n, u) => ({
104
+ ...n,
105
+ value: o[u],
106
+ color: n.color ? D(n.color) : F.value[u] || i[u] || i[u % i.length],
107
+ id: ae()
108
+ })));
109
+ }
110
+ B();
111
+ }
112
+ Q(() => {
113
+ q();
114
+ });
115
+ const Y = S(() => e.value.debug);
116
+ function q() {
117
+ Ie(_.dataset) ? se({
118
+ componentName: "VueUiSparkStackbar",
119
+ type: "dataset",
120
+ debug: Y.value
121
+ }) : _.dataset.forEach((t, o) => {
122
+ De({
123
+ datasetObject: t,
124
+ requiredAttributes: ["name", "value"]
125
+ }).forEach((l) => {
126
+ se({
127
+ componentName: "VueUiSparkStackbar",
128
+ type: "datasetSerieAttribute",
129
+ property: l,
130
+ index: o,
131
+ debug: Y.value
132
+ });
133
+ });
134
+ }), W();
135
+ }
136
+ const g = v({
137
+ width: 500,
138
+ height: 16
139
+ }), p = v([]), H = S(() => m.value.map((t) => t.value || 0).filter((t, o) => !p.value.includes(o)).reduce((t, o) => t + o, 0)), C = S(() => b.value.map((t, o) => {
140
+ const l = t.value || 0, a = l / H.value, y = isNaN(a) ? 0 : a, B = y * g.value.width;
141
+ return {
142
+ ...t,
143
+ value: l,
144
+ proportion: y,
145
+ width: B,
146
+ seriesIndex: o,
147
+ proportionLabel: j({
148
+ v: y * 100,
149
+ s: "%",
150
+ r: e.value.style.legend.percentage.rounding
151
+ })
152
+ };
153
+ })), U = S(() => C.value.filter((t, o) => !p.value.includes(o)));
154
+ function M(t) {
155
+ p.value.includes(t) ? p.value = p.value.filter((o) => o !== t) : p.value.length < b.value.length - 1 && p.value.push(t);
156
+ }
157
+ function X(t) {
158
+ if (!C.value.length)
159
+ return e.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null;
160
+ const o = C.value.find((l) => l.name === t);
161
+ return o || (e.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${t}"`), null);
162
+ }
163
+ function me(t) {
164
+ const o = X(t);
165
+ o !== null && p.value.includes(o.id) && M(o.seriesIndex);
166
+ }
167
+ function be(t) {
168
+ const o = X(t);
169
+ o !== null && (p.value.includes(o.id) || M(o.seriesIndex));
170
+ }
171
+ const P = S(() => {
172
+ let t = 0;
173
+ const o = [];
174
+ for (let l = 0; l < U.value.length; l += 1)
175
+ o.push({
176
+ ...U.value[l],
177
+ start: t
178
+ }), t += U.value[l].width;
179
+ return o;
180
+ }), ke = ve;
181
+ function J(t, o, l = !1) {
182
+ ke("selectDatapoint", { datapoint: t, index: o }), e.value.events.datapointClick && !l && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex });
183
+ }
184
+ const O = v(null), z = v(!1), $ = v(null);
185
+ function _e({ datapoint: t, seriesIndex: o }) {
186
+ N.value = !1, $.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex });
187
+ }
188
+ function xe({ datapoint: t, seriesIndex: o }) {
189
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.seriesIndex }), !e.value.style.tooltip.show)
190
+ return;
191
+ O.value = { datapoint: t, seriesIndex: o, config: e.value, series: C.value }, N.value = !0, $.value = o;
192
+ const l = e.value.style.tooltip.customFormat;
193
+ if (Pe(l))
194
+ try {
195
+ const a = l({
196
+ seriesIndex: t.seriesIndex,
197
+ datapoint: t,
198
+ series: C.value,
199
+ config: e.value
200
+ });
201
+ typeof a == "string" && (V.value = a, z.value = !0);
202
+ } catch {
203
+ console.warn("Custom format cannot be applied."), z.value = !1;
204
+ }
205
+ if (!z.value) {
206
+ let a = "";
207
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${t.proportionLabel}</b>`, a += `<span>(${ue(
208
+ e.value.style.legend.value.formatter,
209
+ t.value,
210
+ j({
211
+ p: e.value.style.legend.value.prefix,
212
+ v: t.value,
213
+ s: e.value.style.legend.value.suffix,
214
+ r: e.value.style.legend.value.rounding
215
+ }),
216
+ {
217
+ datapoint: t,
218
+ seriesIndex: o
219
+ }
220
+ )})</span>`, V.value = `<div>${a}</div>`;
221
+ }
222
+ }
223
+ return de({
224
+ hideSeries: be,
225
+ showSeries: me
226
+ }), (t, o) => (s(), r("div", {
227
+ class: "vue-data-ui-component vue-ui-spark-stackbar",
228
+ ref_key: "sparkstackbarChart",
229
+ ref: G,
230
+ style: f(`width:100%; background:${e.value.style.backgroundColor}`)
231
+ }, [
232
+ e.value.style.title.text ? (s(), r("div", {
233
+ key: 0,
234
+ style: f(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
235
+ }, [
236
+ d("div", {
237
+ class: "atom-title",
238
+ style: f(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
239
+ }, A(e.value.style.title.text), 5),
240
+ e.value.style.title.subtitle.text ? (s(), r("div", {
241
+ key: 0,
242
+ class: "atom-subtitle",
243
+ style: f(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
244
+ }, A(e.value.style.title.subtitle.text), 5)) : h("", !0)
245
+ ], 4)) : h("", !0),
246
+ (s(), r("svg", {
247
+ ref_key: "svgRef",
248
+ ref: ye,
249
+ xmlns: c(Te),
250
+ width: "100%",
251
+ viewBox: `0 0 ${g.value.width} ${g.value.height}`
252
+ }, [
253
+ ee(c(pe)),
254
+ d("defs", null, [
255
+ (s(!0), r(k, null, I(P.value, (l, a) => (s(), r("linearGradient", {
256
+ key: `stack_gradient_${a}`,
257
+ gradientTransform: "rotate(90)",
258
+ id: `stack_gradient_${a}_${T.value}`
259
+ }, [
260
+ d("stop", {
261
+ offset: "0%",
262
+ "stop-color": l.color
263
+ }, null, 8, Oe),
264
+ d("stop", {
265
+ offset: "50%",
266
+ "stop-color": c(re)(c(ne)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
267
+ }, null, 8, Re),
268
+ d("stop", {
269
+ offset: "100%",
270
+ "stop-color": l.color
271
+ }, null, 8, je)
272
+ ], 8, Me))), 128)),
273
+ d("clipPath", Ge, [
274
+ d("rect", {
275
+ x: "0.005",
276
+ y: "-2",
277
+ width: "0.99",
278
+ height: "5",
279
+ rx: "3",
280
+ ry: "3",
281
+ fill: e.value.style.backgroundColor
282
+ }, null, 8, We)
283
+ ])
284
+ ]),
285
+ H.value > 0 ? (s(), r("g", Ye, [
286
+ (s(!0), r(k, null, I(P.value, (l, a) => (s(), r("rect", {
287
+ key: `stack_underlayer_${a}`,
288
+ x: l.start,
289
+ y: 0,
290
+ width: l.width,
291
+ height: g.value.height,
292
+ fill: e.value.style.bar.gradient.underlayerColor,
293
+ class: L({ animated: !w.value && !c(x) }),
294
+ style: f({
295
+ opacity: $.value !== null && e.value.style.tooltip.show ? $.value === a ? 1 : 0.5 : 1
296
+ })
297
+ }, null, 14, qe))), 128)),
298
+ (s(!0), r(k, null, I(P.value, (l, a) => (s(), r("rect", {
299
+ key: `stack_${a}`,
300
+ x: l.start,
301
+ y: 0,
302
+ width: l.width,
303
+ height: g.value.height,
304
+ fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${a}_${T.value})` : l.color,
305
+ stroke: e.value.style.backgroundColor,
306
+ "stroke-linecap": "round",
307
+ class: L({ animated: !w.value && !c(x) }),
308
+ style: f({
309
+ opacity: $.value !== null && e.value.style.tooltip.show ? $.value === a ? 1 : 0.5 : 1
310
+ })
311
+ }, null, 14, He))), 128)),
312
+ (s(!0), r(k, null, I(P.value, (l, a) => (s(), r("rect", {
313
+ key: `stack_trap_${a}`,
314
+ x: l.start,
315
+ y: 0,
316
+ width: l.width,
317
+ height: g.value.height,
318
+ fill: "transparent",
319
+ stroke: "none",
320
+ class: L({ animated: !w.value && !c(x) }),
321
+ onClick: () => J(l, a),
322
+ onMouseenter: () => xe({ datapoint: l, seriesIndex: a }),
323
+ onMouseleave: (y) => _e({ datapoint: l, seriesIndex: a })
324
+ }, null, 42, Xe))), 128))
325
+ ])) : (s(), r("rect", {
326
+ key: 1,
327
+ x: 2,
328
+ y: 1,
329
+ width: g.value.width - 4,
330
+ height: g.value.height - 2,
331
+ stroke: "#CCCCCC",
332
+ "stroke-width": "2",
333
+ fill: "transparent",
334
+ rx: (g.value.height - 4) / 2
335
+ }, null, 8, Je))
336
+ ], 8, Ue)),
337
+ e.value.style.legend.show ? (s(), r("div", {
338
+ key: 1,
339
+ style: f(`background:transparent;margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
340
+ class: "vue-ui-sparkstackbar-legend"
341
+ }, [
342
+ (s(!0), r(k, null, I(C.value, (l, a) => (s(), r("div", {
343
+ style: f(`font-size:${e.value.style.legend.fontSize}px;`),
344
+ class: L({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": p.value.includes(a) }),
345
+ onClick: (y) => {
346
+ M(a), J(l, a, !0);
347
+ }
348
+ }, [
349
+ d("div", Qe, [
350
+ (s(), r("svg", {
351
+ height: `${e.value.style.legend.fontSize}px`,
352
+ width: `${e.value.style.legend.fontSize}px`,
353
+ viewBox: "0 0 10 10"
354
+ }, [
355
+ d("defs", null, [
356
+ d("radialGradient", {
357
+ id: `legend_grad_${a}-${T.value}`
358
+ }, [
359
+ d("stop", {
360
+ offset: "0%",
361
+ "stop-color": c(x) ? "#FFFFFF" : c(re)(c(ne)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
362
+ }, null, 8, tt),
363
+ d("stop", {
364
+ offset: "100%",
365
+ "stop-color": l.color
366
+ }, null, 8, lt)
367
+ ], 8, et)
368
+ ]),
369
+ d("circle", {
370
+ cx: 5,
371
+ cy: 5,
372
+ r: 5,
373
+ fill: e.value.style.bar.gradient.show ? `url(#legend_grad_${a}-${T.value})` : l.color
374
+ }, null, 8, ot)
375
+ ], 8, Ze)),
376
+ c(x) ? h("", !0) : (s(), r(k, { key: 0 }, [
377
+ d("span", {
378
+ style: f(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
379
+ }, A(l.name), 5),
380
+ w.value ? h("", !0) : (s(), r(k, { key: 0 }, [
381
+ e.value.style.legend.percentage.show ? (s(), r("span", {
382
+ key: 0,
383
+ style: f(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
384
+ }, A(p.value.includes(a) ? " - " : l.proportionLabel), 5)) : h("", !0),
385
+ e.value.style.legend.value.show ? (s(), r("span", {
386
+ key: 1,
387
+ style: f(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
388
+ }, " (" + A(c(ue)(
389
+ e.value.style.legend.value.formatter,
390
+ l.value,
391
+ c(j)({
392
+ p: e.value.style.legend.value.prefix,
393
+ v: l.value,
394
+ s: e.value.style.legend.value.suffix,
395
+ r: e.value.style.legend.value.rounding
396
+ }),
397
+ { datapoint: l, seriesIndex: a }
398
+ )) + ") ", 5)) : h("", !0)
399
+ ], 64))
400
+ ], 64))
401
+ ])
402
+ ], 14, Ke))), 256))
403
+ ], 4)) : h("", !0),
404
+ ee(c(fe), {
405
+ show: N.value && e.value.style.tooltip.show,
406
+ parent: G.value,
407
+ backgroundColor: e.value.style.tooltip.backgroundColor,
408
+ color: e.value.style.tooltip.color,
409
+ fontSize: e.value.style.tooltip.fontSize,
410
+ borderRadius: e.value.style.tooltip.borderRadius,
411
+ borderColor: e.value.style.tooltip.borderColor,
412
+ borderWidth: e.value.style.tooltip.borderWidth,
413
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
414
+ position: e.value.style.tooltip.position,
415
+ content: V.value,
416
+ isCustom: z.value,
417
+ offsetY: -124 + e.value.style.tooltip.offsetY,
418
+ blockShiftY: !0,
419
+ smooth: e.value.style.tooltip.smooth,
420
+ backdropFilter: e.value.style.tooltip.backdropFilter,
421
+ smoothForce: e.value.style.tooltip.smoothForce,
422
+ smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
423
+ }, {
424
+ "tooltip-before": te(() => [
425
+ R(t.$slots, "tooltip-before", le(oe({ ...O.value })), void 0, !0)
426
+ ]),
427
+ "tooltip-after": te(() => [
428
+ R(t.$slots, "tooltip-after", le(oe({ ...O.value })), void 0, !0)
429
+ ]),
430
+ _: 3
431
+ }, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
432
+ t.$slots.source ? (s(), r("div", at, [
433
+ R(t.$slots, "source", {}, void 0, !0)
434
+ ], 512)) : h("", !0),
435
+ c(x) ? (s(), $e(Ve, { key: 3 })) : h("", !0)
436
+ ], 4));
437
+ }
438
+ }, pt = /* @__PURE__ */ Ee(st, [["__scopeId", "data-v-ffa64d8d"]]);
439
+ export {
440
+ pt as default
441
+ };