vue-data-ui 3.0.0-next.61 → 3.0.0-next.62

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 (91) hide show
  1. package/dist/{Arrow-CTQyTL3_.js → Arrow-vPQ5umgl.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BmcSbNWl.js → BaseDraggableDialog-rmweWafM.js} +2 -2
  3. package/dist/{BaseIcon-E-K7hXbm.js → BaseIcon-BdOuqa-n.js} +1 -1
  4. package/dist/{ColorPicker-BZSE2TU-.js → ColorPicker-BJYD-Akc.js} +2 -2
  5. package/dist/{DataTable-B5DjuhMR.js → DataTable-DKhkUltp.js} +2 -2
  6. package/dist/{Legend-zE2FGq08.js → Legend-DJVidRKZ.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DI_RgDTc.js → NonSvgPenAndPaper-BO1MTyPj.js} +3 -3
  8. package/dist/{PackageVersion-Bdp5L-7L.js → PackageVersion-CvXTVTaQ.js} +1 -1
  9. package/dist/{PenAndPaper-AGK10PP8.js → PenAndPaper-B_AMsItI.js} +3 -3
  10. package/dist/{Shape-WLqGGUwB.js → Shape-CVE1tn78.js} +1 -1
  11. package/dist/{Slicer-BztBbYcP.js → Slicer-Bu8DjZuX.js} +2 -2
  12. package/dist/{SparkTooltip-DJJKq5GE.js → SparkTooltip-CZVDoHxg.js} +1 -1
  13. package/dist/{Title-C6NLfPnz.js → Title-Cr_usVXc.js} +1 -1
  14. package/dist/{Tooltip-p-yn5Kd2.js → Tooltip-7jDTalyv.js} +1 -1
  15. package/dist/{UserOptions-DWW9T1IK.js → UserOptions-UTvI0Q98.js} +2 -2
  16. package/dist/{dom-to-png-4P9Z65Z4.js → dom-to-png-ONrUYTRb.js} +1 -1
  17. package/dist/{img-fg88maiR.js → img-iMtnfYdI.js} +1 -1
  18. package/dist/{index-BRenDuve.js → index-CwGyyfTA.js} +5 -1
  19. package/dist/{pdf-BuhR1JTC.js → pdf-DiMYy8s9.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +2 -0
  22. package/dist/types/vue-data-ui.d.ts +2 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-BkBqjBrr.js → useAutoSizeLabelsInsideViewbox-CqI-y0RH.js} +1 -1
  24. package/dist/{useNestedProp-iKx-oGDH.js → useNestedProp-Dd5rDkqs.js} +1 -1
  25. package/dist/{usePrinter-Co_j432s.js → usePrinter-Ctvv8qBg.js} +2 -2
  26. package/dist/{vue-data-ui-CUDfDclz.js → vue-data-ui-DwvF4C9M.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DWL8tnZS.js → vue-ui-3d-bar-zgyRNuSO.js} +6 -6
  29. package/dist/{vue-ui-accordion-CYDiGhBw.js → vue-ui-accordion-5YUMPNG1.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-d31eHPpI.js → vue-ui-age-pyramid-DW6p9iWS.js} +6 -6
  31. package/dist/{vue-ui-annotator-dkOqfvKt.js → vue-ui-annotator-C2CMEveI.js} +2 -2
  32. package/dist/{vue-ui-bullet-D4tBc3eh.js → vue-ui-bullet-I1UZAw0O.js} +7 -7
  33. package/dist/{vue-ui-candlestick-GoQ4LBVC.js → vue-ui-candlestick-N2rX18KX.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-Bp3MJfzX.js → vue-ui-carousel-table-CXe6ghc3.js} +4 -4
  35. package/dist/{vue-ui-chestnut-D3fzDYcV.js → vue-ui-chestnut-Dkeqv0lM.js} +5 -5
  36. package/dist/{vue-ui-chord-CntRIJ55.js → vue-ui-chord-Dp_n9sP9.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-BMuynHUs.js → vue-ui-circle-pack-DrPM1UXc.js} +6 -6
  38. package/dist/{vue-ui-cursor-KR7TU5mQ.js → vue-ui-cursor-BcS6aiX1.js} +2 -2
  39. package/dist/{vue-ui-dashboard-C6OQIu4w.js → vue-ui-dashboard-BcyCNmVV.js} +62 -62
  40. package/dist/{vue-ui-digits-6KV8lh1Q.js → vue-ui-digits-BvNRrVgl.js} +2 -2
  41. package/dist/{vue-ui-donut-Dg0b9Sag.js → vue-ui-donut-Rvu6m-aE.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-BqDGpZwn.js → vue-ui-donut-evolution-D2ZcgYhJ.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-BvTH-vpa.js → vue-ui-dumbbell-CvYVCA6I.js} +7 -7
  44. package/dist/{vue-ui-flow-DY0brMkH.js → vue-ui-flow-_6zAZMI6.js} +7 -7
  45. package/dist/{vue-ui-funnel-Z2nxFAoy.js → vue-ui-funnel-CIEJVq4d.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Dho2szS3.js → vue-ui-galaxy-DcZ04iAF.js} +5 -5
  47. package/dist/{vue-ui-gauge-0FV4JwS3.js → vue-ui-gauge-C5j1wKcj.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CxuU2BQY.js → vue-ui-gizmo-BD9EY4bZ.js} +3 -3
  49. package/dist/{vue-ui-heatmap-FFmRSZ9u.js → vue-ui-heatmap-DDZ8g5dM.js} +7 -7
  50. package/dist/{vue-ui-history-plot-CUH155Yu.js → vue-ui-history-plot-C7ZRZHzl.js} +7 -7
  51. package/dist/{vue-ui-kpi-Dmpm_ZZb.js → vue-ui-kpi-DZ5FITOL.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DPsQQimr.js → vue-ui-mini-loader-BaQpwyu-.js} +2 -2
  53. package/dist/{vue-ui-molecule-BNSTyoBk.js → vue-ui-molecule-B8Ob6p-h.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Db-qlLKm.js → vue-ui-mood-radar-BrTY3gyR.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-BMECUS7j.js → vue-ui-nested-donuts-yN_txLmU.js} +9 -9
  56. package/dist/{vue-ui-onion-CARHtDjI.js → vue-ui-onion-C613Zf1i.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-C7pL6x10.js → vue-ui-parallel-coordinate-plot-B-aXg4S4.js} +8 -8
  58. package/dist/{vue-ui-quadrant-BdtVr-y2.js → vue-ui-quadrant-C2AeZvmZ.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-D7uobNWx.js → vue-ui-quick-chart-CkE6ybPo.js} +6 -6
  60. package/dist/{vue-ui-radar-VoD-Lot7.js → vue-ui-radar-BbiqR92L.js} +7 -7
  61. package/dist/{vue-ui-rating-DZ89nAiD.js → vue-ui-rating-CbRUCAxl.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-B2z8YXgB.js → vue-ui-relation-circle-vWsjRm3W.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-DfFSJ747.js → vue-ui-ridgeline-CaiytuOs.js} +8 -8
  64. package/dist/{vue-ui-rings-Dyt5QafW.js → vue-ui-rings-AFUuMvpu.js} +8 -8
  65. package/dist/{vue-ui-scatter-BFFRDlp-.js → vue-ui-scatter-Dcb9tLMu.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DU2RLC8J.js → vue-ui-skeleton-B1SFKW_l.js} +3 -3
  67. package/dist/{vue-ui-smiley-Bud0unLv.js → vue-ui-smiley-Ba-ctrns.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BD6UWRMn.js → vue-ui-spark-trend-BshA2mRL.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-I4wpToMO.js → vue-ui-sparkbar-D8-HNaN_.js} +3 -3
  70. package/dist/vue-ui-sparkgauge-Dfnr6Bjc.js +232 -0
  71. package/dist/{vue-ui-sparkhistogram-DBJcd-6V.js → vue-ui-sparkhistogram-BMtpx_0l.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B64MPZBB.js → vue-ui-sparkline-BA_5ICer.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CtdHM2gY.js → vue-ui-sparkstackbar-BQkH5ltm.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Bee1NxIb.js → vue-ui-stackbar-C7iPaQOn.js} +9 -9
  75. package/dist/{vue-ui-strip-plot-CmC5Byn1.js → vue-ui-strip-plot-CnfeJeRi.js} +7 -7
  76. package/dist/{vue-ui-table-DyScQo_p.js → vue-ui-table-Dz6RLYoS.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DLtEbgnG.js → vue-ui-table-heatmap-Cbgogx6N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CSOSu5lF.js → vue-ui-table-sparkline-CLEfp8d2.js} +4 -4
  79. package/dist/{vue-ui-thermometer-DvWCyvgp.js → vue-ui-thermometer-CzNFOqrV.js} +7 -7
  80. package/dist/{vue-ui-timer-DIe7TbGV.js → vue-ui-timer-CI7VUX-B.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DFAFKdig.js → vue-ui-tiremarks-C0QDwzEt.js} +6 -6
  82. package/dist/{vue-ui-treemap-Car9RQI6.js → vue-ui-treemap-D-5MOqu3.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-I05hhnAv.js → vue-ui-vertical-bar-sZjQranC.js} +9 -9
  84. package/dist/{vue-ui-waffle-DyY-UYli.js → vue-ui-waffle-6zNYC1rh.js} +8 -8
  85. package/dist/{vue-ui-wheel-Bb4GPN1q.js → vue-ui-wheel-kx79XCaH.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-8Xl-ixz8.js → vue-ui-word-cloud-DI8bEQrN.js} +6 -6
  87. package/dist/{vue-ui-world-DpgHCDon.js → vue-ui-world-Ba2tdGRe.js} +6 -6
  88. package/dist/{vue-ui-xy-B5GeHpC1.js → vue-ui-xy-TM3uzoN-.js} +9 -9
  89. package/dist/{vue-ui-xy-canvas-CJpbS5qD.js → vue-ui-xy-canvas-DFqIhqzJ.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/vue-ui-sparkgauge-Dih6jl_u.js +0 -201
@@ -1,16 +1,16 @@
1
1
  import { useCssVars as Ja, computed as y, ref as p, onMounted as Lt, onBeforeUnmount as nt, watch as sl, nextTick as Zl, onUpdated as Ka, createElementBlock as s, openBlock as u, createElementVNode as m, createCommentVNode as h, renderSlot as K, normalizeStyle as $, createVNode as Ul, withDirectives as Bt, unref as v, Fragment as f, renderList as L, normalizeClass as Re, vModelText as ba, toDisplayString as ae, defineAsyncComponent as yl, useSlots as Qa, getCurrentInstance as ja, toRefs as eo, watchEffect as lo, createBlock as Ke, createSlots as to, withCtx as pe, normalizeProps as vl, guardReactiveProps as kl, mergeProps as kt, vModelCheckbox as ao, createTextVNode as oo } from "vue";
2
- import { c as _t, V as Mt, U as At, X as uo, F as je, u as io, f as Vt, t as so, a5 as ul, d as no, D as st, ad as Nl, e as ro, p as co, ae as wt, aa as Y, af as vo, h as V, ag as pa, ah as ya, ai as ho, aj as ka, ak as wa, k as we, y as fo, z as go, _ as Sa, R as il, i as De, x as Rl, s as Qe, a8 as ee, L as mo, al as St, I as xo, am as wl, C as Xe, a as bo, b as po, o as $a, v as yo, w as ko, E as Gl } from "./index-BRenDuve.js";
2
+ import { c as _t, V as Mt, U as At, X as uo, F as je, u as io, f as Vt, t as so, a5 as ul, d as no, D as st, ad as Nl, e as ro, p as co, ae as wt, aa as Y, af as vo, h as V, ag as pa, ah as ya, ai as ho, aj as ka, ak as wa, k as we, y as fo, z as go, _ as Sa, R as il, i as De, x as Rl, s as Qe, a8 as ee, L as mo, al as St, I as xo, am as wl, C as Xe, a as bo, b as po, o as $a, v as yo, w as ko, E as Gl } from "./index-CwGyyfTA.js";
3
3
  import { t as Ft, u as wo } from "./useResponsive-DfdjqQps.js";
4
- import { u as So } from "./usePrinter-Co_j432s.js";
4
+ import { u as So } from "./usePrinter-Ctvv8qBg.js";
5
5
  import { u as $o, B as _o } from "./useLoading-Bt5Doa8m.js";
6
- import { u as Et } from "./useNestedProp-iKx-oGDH.js";
6
+ import { u as Et } from "./useNestedProp-Dd5rDkqs.js";
7
7
  import { u as _a } from "./useTimeLabels-DkzmKfZn.js";
8
8
  import { u as Lo } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import Mo from "./img-fg88maiR.js";
10
- import Ao from "./Title-C6NLfPnz.js";
11
- import { S as Co } from "./Slicer-BztBbYcP.js";
12
- import { _ as $t } from "./Shape-WLqGGUwB.js";
13
- import zo from "./BaseIcon-E-K7hXbm.js";
9
+ import Mo from "./img-iMtnfYdI.js";
10
+ import Ao from "./Title-Cr_usVXc.js";
11
+ import { S as Co } from "./Slicer-Bu8DjZuX.js";
12
+ import { _ as $t } from "./Shape-CVE1tn78.js";
13
+ import zo from "./BaseIcon-BdOuqa-n.js";
14
14
  import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const To = {
16
16
  class: "vue-data-ui-slicer-labels",
@@ -709,7 +709,7 @@ const To = {
709
709
  },
710
710
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
711
711
  setup(C, { expose: Ct, emit: zt }) {
712
- const d = C, Pe = yl(() => import("./DataTable-B5DjuhMR.js")), ie = yl(() => import("./Tooltip-p-yn5Kd2.js")), re = yl(() => import("./UserOptions-DWW9T1IK.js")), Sl = yl(() => import("./BaseIcon-E-K7hXbm.js")), ql = yl(() => import("./vue-ui-table-sparkline-CSOSu5lF.js")), Pl = yl(() => import("./vue-ui-accordion-CYDiGhBw.js")), $l = yl(() => import("./PackageVersion-Bdp5L-7L.js")), _l = yl(() => import("./PenAndPaper-AGK10PP8.js")), dl = zt, Jl = Qa(), Kl = ja(), { vue_ui_xy: Ql } = io(), fe = p(null), ye = p(null), ze = p(null), el = p(null), Ll = p(null), Ml = p(null), Tt = p(null), He = p(null), Hl = p(null), nl = p(null), Al = p(null), D = p(null), ll = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Vl = p("0 0 1000 600"), Cl = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), hl = p(!1), rl = p(!1), El = p(!1), Te = p(null), oe = p([]), Q = p(_t()), rt = p(0), ct = p(0), jl = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Bl = p(!0), Fl = p(!0), Se = p(null), Be = p({}), Wl = p(null), S = p(null), vt = y(() => ({
712
+ const d = C, Pe = yl(() => import("./DataTable-DKhkUltp.js")), ie = yl(() => import("./Tooltip-7jDTalyv.js")), re = yl(() => import("./UserOptions-UTvI0Q98.js")), Sl = yl(() => import("./BaseIcon-BdOuqa-n.js")), ql = yl(() => import("./vue-ui-table-sparkline-CLEfp8d2.js")), Pl = yl(() => import("./vue-ui-accordion-5YUMPNG1.js")), $l = yl(() => import("./PackageVersion-CvXTVTaQ.js")), _l = yl(() => import("./PenAndPaper-B_AMsItI.js")), dl = zt, Jl = Qa(), Kl = ja(), { vue_ui_xy: Ql } = io(), fe = p(null), ye = p(null), ze = p(null), el = p(null), Ll = p(null), Ml = p(null), Tt = p(null), He = p(null), Hl = p(null), nl = p(null), Al = p(null), D = p(null), ll = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Vl = p("0 0 1000 600"), Cl = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), hl = p(!1), rl = p(!1), El = p(!1), Te = p(null), oe = p([]), Q = p(_t()), rt = p(0), ct = p(0), jl = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Bl = p(!0), Fl = p(!0), Se = p(null), Be = p({}), Wl = p(null), S = p(null), vt = y(() => ({
713
713
  height: se.value,
714
714
  width: ne.value
715
715
  })), fl = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, b = p({
@@ -1,15 +1,15 @@
1
1
  import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
- import { u as Ka, c as Qa, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a5 as tl, G as ol, af as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-BRenDuve.js";
2
+ import { u as Ka, c as Qa, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a5 as tl, G as ol, af as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-CwGyyfTA.js";
3
3
  import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha } from "./useNestedProp-iKx-oGDH.js";
5
- import { u as gl } from "./usePrinter-Co_j432s.js";
4
+ import { u as ha } from "./useNestedProp-Dd5rDkqs.js";
5
+ import { u as gl } from "./usePrinter-Ctvv8qBg.js";
6
6
  import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
- import bl from "./Legend-zE2FGq08.js";
9
- import xl from "./Title-C6NLfPnz.js";
10
- import { S as Ll } from "./Slicer-BztBbYcP.js";
8
+ import bl from "./Legend-DJVidRKZ.js";
9
+ import xl from "./Title-Cr_usVXc.js";
10
+ import { S as Ll } from "./Slicer-Bu8DjZuX.js";
11
11
  import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-fg88maiR.js";
12
+ import Cl from "./img-iMtnfYdI.js";
13
13
  import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Sl = ["id"], zl = ["onClick"], $l = {
15
15
  key: 2,
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
32
32
  },
33
33
  emits: ["selectLegend"],
34
34
  setup(Me, { expose: ya, emit: fa }) {
35
- const ga = K(() => import("./vue-ui-accordion-CYDiGhBw.js")), pa = K(() => import("./DataTable-B5DjuhMR.js")), ma = K(() => import("./NonSvgPenAndPaper-DI_RgDTc.js")), ba = K(() => import("./vue-ui-skeleton-DU2RLC8J.js")), xa = K(() => import("./Tooltip-p-yn5Kd2.js")), La = K(() => import("./UserOptions-DWW9T1IK.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
35
+ const ga = K(() => import("./vue-ui-accordion-5YUMPNG1.js")), pa = K(() => import("./DataTable-DKhkUltp.js")), ma = K(() => import("./NonSvgPenAndPaper-BO1MTyPj.js")), ba = K(() => import("./vue-ui-skeleton-B1SFKW_l.js")), xa = K(() => import("./Tooltip-7jDTalyv.js")), La = K(() => import("./UserOptions-UTvI0Q98.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
36
  ua(() => {
37
37
  wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
38
38
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.0.0-next.61",
4
+ "version": "3.0.0-next.62",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,201 +0,0 @@
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-iKx-oGDH.js";
3
- import { u as T, o as V, f as j, g as X, c as H, b as Y, P as J, X as K, k as Q, h as m, i as W } from "./index-BRenDuve.js";
4
- import { u as Z } from "./useChartAccessibility-9icAAmYg.js";
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
- key: 4,
7
- ref: "source",
8
- dir: "auto"
9
- }, fe = {
10
- __name: "vue-ui-sparkgauge",
11
- props: {
12
- config: {
13
- type: Object,
14
- default() {
15
- return {};
16
- }
17
- },
18
- dataset: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- }
24
- },
25
- setup(E) {
26
- const F = A(() => import("./PackageVersion-Bdp5L-7L.js")), B = A(() => import("./vue-ui-skeleton-DU2RLC8J.js")), { vue_ui_sparkgauge: D } = T(), a = E, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
27
- N(() => {
28
- h();
29
- });
30
- function h() {
31
- V(a.dataset) ? j({
32
- componentName: "VueUiSparkgauge",
33
- type: "dataset"
34
- }) : X({
35
- datasetObject: a.dataset,
36
- requiredAttributes: ["value", "min", "max"]
37
- }).forEach((t) => {
38
- j({
39
- componentName: "VueUiSparkgauge",
40
- type: "datasetAttribute",
41
- property: t
42
- });
43
- });
44
- }
45
- const k = M(H()), e = s({
46
- get: () => b(),
47
- set: (t) => t
48
- }), { svgRef: G } = Z({ config: { text: a.dataset.title } });
49
- function b() {
50
- const t = O({
51
- userConfig: a.config,
52
- defaultConfig: D
53
- });
54
- return t.theme ? {
55
- ...O({
56
- userConfig: Y.vue_ui_sparkgauge[t.theme] || a.config,
57
- defaultConfig: t
58
- })
59
- } : t;
60
- }
61
- S(() => a.config, (t) => {
62
- e.value = b(), h();
63
- }, { deep: !0 });
64
- const u = s(() => ({
65
- height: e.value.style.height,
66
- width: 128,
67
- base: e.value.style.basePosition
68
- })), o = s(() => {
69
- const t = a.dataset.min ?? 0, c = a.dataset.max ?? 0, P = c - t;
70
- return {
71
- min: t,
72
- max: c,
73
- diff: P
74
- };
75
- }), l = M(e.value.style.animation.show ? o.value.min : a.dataset.value);
76
- S(() => a.dataset.value, () => {
77
- C(a.dataset.value || 0);
78
- });
79
- const _ = s(() => l.value > o.value.max ? o.value.max : l.value < o.value.min ? o.value.min : l.value), x = s(() => o.value.diff / e.value.style.animation.speedMs);
80
- N(() => {
81
- C(a.dataset.value || 0);
82
- });
83
- function C(t) {
84
- function c() {
85
- l.value < t ? l.value = Math.min(l.value + x.value, t) : l.value > t && (l.value = Math.max(l.value - x.value, t)), l.value !== t && requestAnimationFrame(c);
86
- }
87
- c();
88
- }
89
- const f = s(() => a.dataset.title ?? ""), $ = s(() => l.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => J(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, l.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), I = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
90
- return (t, c) => (n(), r("div", {
91
- class: "vue-ui-sparkgauge",
92
- style: y(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
93
- }, [
94
- e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (n(), r("div", {
95
- key: 0,
96
- class: "vue-data-ui-sparkgauge-label",
97
- style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
98
- }, g(f.value), 5)) : v("", !0),
99
- p.value ? (n(), r("svg", {
100
- key: 1,
101
- ref_key: "svgRef",
102
- ref: G,
103
- xmlns: i(K),
104
- viewBox: `0 0 ${u.value.width} ${u.value.height}`,
105
- style: "overflow: visible; background:transparent; width:100%;"
106
- }, [
107
- U(i(F)),
108
- t.$slots["chart-background"] ? (n(), r("foreignObject", {
109
- key: 0,
110
- x: 0,
111
- y: 0,
112
- width: u.value.width,
113
- height: u.value.height,
114
- style: {
115
- pointerEvents: "none"
116
- }
117
- }, [
118
- z(t.$slots, "chart-background")
119
- ], 8, te)) : v("", !0),
120
- d("defs", null, [
121
- d("linearGradient", {
122
- id: `gradient_${k.value}`,
123
- x1: "-10%",
124
- y1: "100%",
125
- x2: "110%",
126
- y2: "100%"
127
- }, [
128
- d("stop", {
129
- offset: "0%",
130
- "stop-color": e.value.style.colors.min
131
- }, null, 8, le),
132
- d("stop", {
133
- offset: "100%",
134
- "stop-color": e.value.style.colors.max
135
- }, null, 8, oe)
136
- ], 8, ae)
137
- ]),
138
- d("path", {
139
- d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
140
- stroke: e.value.style.gutter.color,
141
- "stroke-width": 8,
142
- "stroke-linecap": e.value.style.gutter.strokeLinecap,
143
- fill: "none"
144
- }, null, 8, se),
145
- $.value !== 0 ? (n(), r("path", {
146
- key: 1,
147
- d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
148
- stroke: e.value.style.colors.showGradient ? `url(#gradient_${k.value})` : I.value,
149
- "stroke-width": 8,
150
- "stroke-linecap": e.value.style.track.strokeLinecap,
151
- fill: "none",
152
- "stroke-dasharray": 169.5,
153
- "stroke-dashoffset": 169.5 - 169.5 * $.value,
154
- class: q({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
155
- style: y(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
156
- }, null, 14, ue)) : v("", !0),
157
- d("text", {
158
- "text-anchor": "middle",
159
- x: u.value.width / 2,
160
- y: u.value.base + 6 + e.value.style.dataLabel.offsetY,
161
- "font-size": e.value.style.dataLabel.fontSize,
162
- fill: L.value,
163
- "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
164
- }, g(i(Q)(
165
- e.value.style.dataLabel.formatter,
166
- i(m)(l.value),
167
- i(W)({
168
- p: e.value.style.dataLabel.prefix,
169
- v: i(m)(l.value),
170
- s: e.value.style.dataLabel.suffix,
171
- r: e.value.style.dataLabel.rounding
172
- }),
173
- { datapoint: i(m)(l.value), color: L.value }
174
- )), 9, ne)
175
- ], 8, ee)) : v("", !0),
176
- p.value ? v("", !0) : (n(), R(i(B), {
177
- key: 2,
178
- config: {
179
- type: "gauge",
180
- style: {
181
- backgroundColor: e.value.style.background,
182
- gauge: {
183
- color: "#CCCCCC"
184
- }
185
- }
186
- }
187
- }, null, 8, ["config"])),
188
- e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (n(), r("div", {
189
- key: 3,
190
- class: "vue-data-ui-sparkgauge-label",
191
- style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
192
- }, g(f.value), 5)) : v("", !0),
193
- t.$slots.source ? (n(), r("div", ie, [
194
- z(t.$slots, "source")
195
- ], 512)) : v("", !0)
196
- ], 4));
197
- }
198
- };
199
- export {
200
- fe as default
201
- };