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

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 (93) hide show
  1. package/dist/{Arrow-vPQ5umgl.js → Arrow-BGKdsLII.js} +1 -1
  2. package/dist/{BaseDraggableDialog-rmweWafM.js → BaseDraggableDialog-gVVf8X_B.js} +2 -2
  3. package/dist/{BaseIcon-BdOuqa-n.js → BaseIcon-DNo7kjXj.js} +1 -1
  4. package/dist/{ColorPicker-BJYD-Akc.js → ColorPicker-vBh0CR5P.js} +2 -2
  5. package/dist/{DataTable-DKhkUltp.js → DataTable-DS3KWyd9.js} +2 -2
  6. package/dist/{Legend-DJVidRKZ.js → Legend-B6SFVKMo.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BO1MTyPj.js → NonSvgPenAndPaper-BS2khXRd.js} +3 -3
  8. package/dist/{PackageVersion-CvXTVTaQ.js → PackageVersion-DSFdazAW.js} +1 -1
  9. package/dist/{PenAndPaper-B_AMsItI.js → PenAndPaper-CB61YgV9.js} +3 -3
  10. package/dist/{Shape-CVE1tn78.js → Shape-4rbQQ_12.js} +1 -1
  11. package/dist/{Slicer-Bu8DjZuX.js → Slicer-BYPUhbns.js} +2 -2
  12. package/dist/{SparkTooltip-CZVDoHxg.js → SparkTooltip-CcYxnK-3.js} +1 -1
  13. package/dist/{Title-Cr_usVXc.js → Title-5i51sn5z.js} +1 -1
  14. package/dist/{Tooltip-7jDTalyv.js → Tooltip-Ccrc8V99.js} +1 -1
  15. package/dist/{UserOptions-UTvI0Q98.js → UserOptions-B3sujtRb.js} +2 -2
  16. package/dist/{dom-to-png-ONrUYTRb.js → dom-to-png-CBszweF6.js} +1 -1
  17. package/dist/{img-iMtnfYdI.js → img-DGl0_Nzz.js} +1 -1
  18. package/dist/{index-CwGyyfTA.js → index-jlnByA4k.js} +9 -1
  19. package/dist/{pdf-DiMYy8s9.js → pdf-BHzrjI_S.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +5 -0
  22. package/dist/types/vue-data-ui.d.ts +5 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CqI-y0RH.js → useAutoSizeLabelsInsideViewbox-Btmy72IJ.js} +1 -1
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/{useNestedProp-Dd5rDkqs.js → useNestedProp-69PJWTUX.js} +1 -1
  26. package/dist/{usePrinter-Ctvv8qBg.js → usePrinter-CJSwPpxV.js} +2 -2
  27. package/dist/{vue-data-ui-DwvF4C9M.js → vue-data-ui-5hHAwcR8.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/{vue-ui-3d-bar-zgyRNuSO.js → vue-ui-3d-bar-jcGPVz03.js} +6 -6
  30. package/dist/{vue-ui-accordion-5YUMPNG1.js → vue-ui-accordion-CtOEIleg.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-DW6p9iWS.js → vue-ui-age-pyramid-s246qBP8.js} +6 -6
  32. package/dist/{vue-ui-annotator-C2CMEveI.js → vue-ui-annotator-Bi3ndTdh.js} +2 -2
  33. package/dist/{vue-ui-bullet-I1UZAw0O.js → vue-ui-bullet-Ly8acZ65.js} +7 -7
  34. package/dist/{vue-ui-candlestick-N2rX18KX.js → vue-ui-candlestick-Dwy-2H2Q.js} +7 -7
  35. package/dist/{vue-ui-carousel-table-CXe6ghc3.js → vue-ui-carousel-table-ynesSu18.js} +4 -4
  36. package/dist/{vue-ui-chestnut-Dkeqv0lM.js → vue-ui-chestnut-DpXc1djY.js} +5 -5
  37. package/dist/{vue-ui-chord-Dp_n9sP9.js → vue-ui-chord-DXnK1f_K.js} +8 -8
  38. package/dist/{vue-ui-circle-pack-DrPM1UXc.js → vue-ui-circle-pack-BOt9llcy.js} +6 -6
  39. package/dist/{vue-ui-cursor-BcS6aiX1.js → vue-ui-cursor-DnJIyien.js} +2 -2
  40. package/dist/{vue-ui-dashboard-BcyCNmVV.js → vue-ui-dashboard-Cbz4dOIJ.js} +62 -62
  41. package/dist/{vue-ui-digits-BvNRrVgl.js → vue-ui-digits-CaiStt5K.js} +2 -2
  42. package/dist/{vue-ui-donut-Rvu6m-aE.js → vue-ui-donut-DzsorCa2.js} +8 -8
  43. package/dist/{vue-ui-donut-evolution-D2ZcgYhJ.js → vue-ui-donut-evolution-Cn-2v5OQ.js} +8 -8
  44. package/dist/{vue-ui-dumbbell-CvYVCA6I.js → vue-ui-dumbbell-LG-iNxUc.js} +7 -7
  45. package/dist/{vue-ui-flow-_6zAZMI6.js → vue-ui-flow-D4Mvh3N4.js} +7 -7
  46. package/dist/{vue-ui-funnel-CIEJVq4d.js → vue-ui-funnel-B9bd8Qdo.js} +6 -6
  47. package/dist/{vue-ui-galaxy-DcZ04iAF.js → vue-ui-galaxy-CFGFpWFJ.js} +5 -5
  48. package/dist/{vue-ui-gauge-C5j1wKcj.js → vue-ui-gauge-BoM3ea8S.js} +7 -7
  49. package/dist/{vue-ui-gizmo-BD9EY4bZ.js → vue-ui-gizmo-Bz1WJOzC.js} +3 -3
  50. package/dist/{vue-ui-heatmap-DDZ8g5dM.js → vue-ui-heatmap-DTlVM_Rg.js} +7 -7
  51. package/dist/{vue-ui-history-plot-C7ZRZHzl.js → vue-ui-history-plot-z-ycrjqs.js} +7 -7
  52. package/dist/{vue-ui-kpi-DZ5FITOL.js → vue-ui-kpi-CWGMNCQT.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BaQpwyu-.js → vue-ui-mini-loader-D-YAgXQh.js} +2 -2
  54. package/dist/{vue-ui-molecule-B8Ob6p-h.js → vue-ui-molecule-C8RnofGI.js} +5 -5
  55. package/dist/{vue-ui-mood-radar-BrTY3gyR.js → vue-ui-mood-radar-CTTAiDCG.js} +7 -7
  56. package/dist/{vue-ui-nested-donuts-yN_txLmU.js → vue-ui-nested-donuts-BJ_MVOPC.js} +9 -9
  57. package/dist/{vue-ui-onion-C613Zf1i.js → vue-ui-onion-CHGIIpnQ.js} +8 -8
  58. package/dist/{vue-ui-parallel-coordinate-plot-B-aXg4S4.js → vue-ui-parallel-coordinate-plot-BZtohM97.js} +8 -8
  59. package/dist/{vue-ui-quadrant-C2AeZvmZ.js → vue-ui-quadrant-D3Voh1B3.js} +8 -8
  60. package/dist/{vue-ui-quick-chart-CkE6ybPo.js → vue-ui-quick-chart-BWf2yNU3.js} +6 -6
  61. package/dist/{vue-ui-radar-BbiqR92L.js → vue-ui-radar-DG2V_zsj.js} +7 -7
  62. package/dist/{vue-ui-rating-CbRUCAxl.js → vue-ui-rating-BX3DRGia.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-vWsjRm3W.js → vue-ui-relation-circle-XCU4OM_5.js} +6 -6
  64. package/dist/{vue-ui-ridgeline-CaiytuOs.js → vue-ui-ridgeline-b1zJ9JMy.js} +8 -8
  65. package/dist/{vue-ui-rings-AFUuMvpu.js → vue-ui-rings-DOyQUS4a.js} +8 -8
  66. package/dist/{vue-ui-scatter-Dcb9tLMu.js → vue-ui-scatter-D9LdWCZd.js} +8 -8
  67. package/dist/{vue-ui-skeleton-B1SFKW_l.js → vue-ui-skeleton-Cv6EVbCt.js} +3 -3
  68. package/dist/{vue-ui-smiley-Ba-ctrns.js → vue-ui-smiley-C2mnVQu-.js} +2 -2
  69. package/dist/vue-ui-spark-trend-gbAr_BYc.js +315 -0
  70. package/dist/{vue-ui-sparkbar-D8-HNaN_.js → vue-ui-sparkbar-BPU9JtvX.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-Dfnr6Bjc.js → vue-ui-sparkgauge-B1smUA41.js} +3 -3
  72. package/dist/vue-ui-sparkhistogram-CZTxCQgR.js +380 -0
  73. package/dist/{vue-ui-sparkline-BA_5ICer.js → vue-ui-sparkline-jChhbwmi.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BQkH5ltm.js → vue-ui-sparkstackbar-Dt7wTy19.js} +3 -3
  75. package/dist/{vue-ui-stackbar-C7iPaQOn.js → vue-ui-stackbar-CGgA6-n6.js} +9 -9
  76. package/dist/{vue-ui-strip-plot-CnfeJeRi.js → vue-ui-strip-plot-BtCiUFRZ.js} +7 -7
  77. package/dist/{vue-ui-table-Dz6RLYoS.js → vue-ui-table-DzWPHCpf.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-Cbgogx6N.js → vue-ui-table-heatmap-_FhnVCOZ.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CLEfp8d2.js → vue-ui-table-sparkline-CYsSg1z9.js} +4 -4
  80. package/dist/{vue-ui-thermometer-CzNFOqrV.js → vue-ui-thermometer-dSqhossO.js} +7 -7
  81. package/dist/{vue-ui-timer-CI7VUX-B.js → vue-ui-timer-DyIsQAqp.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-C0QDwzEt.js → vue-ui-tiremarks-BEqXVq_9.js} +6 -6
  83. package/dist/{vue-ui-treemap-D-5MOqu3.js → vue-ui-treemap-khKWfnVU.js} +8 -8
  84. package/dist/{vue-ui-vertical-bar-sZjQranC.js → vue-ui-vertical-bar-CXZGkJh7.js} +9 -9
  85. package/dist/{vue-ui-waffle-6zNYC1rh.js → vue-ui-waffle-DrHd1WXy.js} +8 -8
  86. package/dist/{vue-ui-wheel-kx79XCaH.js → vue-ui-wheel-OqQd6Weo.js} +6 -6
  87. package/dist/{vue-ui-word-cloud-DI8bEQrN.js → vue-ui-word-cloud-CG4W1l66.js} +6 -6
  88. package/dist/{vue-ui-world-Ba2tdGRe.js → vue-ui-world-BBrwRZF-.js} +6 -6
  89. package/dist/{vue-ui-xy-TM3uzoN-.js → vue-ui-xy-CqeSePUr.js} +9 -9
  90. package/dist/{vue-ui-xy-canvas-DFqIhqzJ.js → vue-ui-xy-canvas-BZhZZQae.js} +8 -8
  91. package/package.json +1 -1
  92. package/dist/vue-ui-spark-trend-BshA2mRL.js +0 -291
  93. package/dist/vue-ui-sparkhistogram-BMtpx_0l.js +0 -444
@@ -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-CwGyyfTA.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-jlnByA4k.js";
3
3
  import { t as Ft, u as wo } from "./useResponsive-DfdjqQps.js";
4
- import { u as So } from "./usePrinter-Ctvv8qBg.js";
4
+ import { u as So } from "./usePrinter-CJSwPpxV.js";
5
5
  import { u as $o, B as _o } from "./useLoading-Bt5Doa8m.js";
6
- import { u as Et } from "./useNestedProp-Dd5rDkqs.js";
6
+ import { u as Et } from "./useNestedProp-69PJWTUX.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-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";
9
+ import Mo from "./img-DGl0_Nzz.js";
10
+ import Ao from "./Title-5i51sn5z.js";
11
+ import { S as Co } from "./Slicer-BYPUhbns.js";
12
+ import { _ as $t } from "./Shape-4rbQQ_12.js";
13
+ import zo from "./BaseIcon-DNo7kjXj.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-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(() => ({
712
+ const d = C, Pe = yl(() => import("./DataTable-DS3KWyd9.js")), ie = yl(() => import("./Tooltip-Ccrc8V99.js")), re = yl(() => import("./UserOptions-B3sujtRb.js")), Sl = yl(() => import("./BaseIcon-DNo7kjXj.js")), ql = yl(() => import("./vue-ui-table-sparkline-CYsSg1z9.js")), Pl = yl(() => import("./vue-ui-accordion-CtOEIleg.js")), $l = yl(() => import("./PackageVersion-DSFdazAW.js")), _l = yl(() => import("./PenAndPaper-CB61YgV9.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-CwGyyfTA.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-jlnByA4k.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-Dd5rDkqs.js";
5
- import { u as gl } from "./usePrinter-Ctvv8qBg.js";
4
+ import { u as ha } from "./useNestedProp-69PJWTUX.js";
5
+ import { u as gl } from "./usePrinter-CJSwPpxV.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-DJVidRKZ.js";
9
- import xl from "./Title-Cr_usVXc.js";
10
- import { S as Ll } from "./Slicer-Bu8DjZuX.js";
8
+ import bl from "./Legend-B6SFVKMo.js";
9
+ import xl from "./Title-5i51sn5z.js";
10
+ import { S as Ll } from "./Slicer-BYPUhbns.js";
11
11
  import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-iMtnfYdI.js";
12
+ import Cl from "./img-DGl0_Nzz.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-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();
35
+ const ga = K(() => import("./vue-ui-accordion-CtOEIleg.js")), pa = K(() => import("./DataTable-DS3KWyd9.js")), ma = K(() => import("./NonSvgPenAndPaper-BS2khXRd.js")), ba = K(() => import("./vue-ui-skeleton-Cv6EVbCt.js")), xa = K(() => import("./Tooltip-Ccrc8V99.js")), La = K(() => import("./UserOptions-B3sujtRb.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.62",
4
+ "version": "3.0.0-next.63",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,291 +0,0 @@
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, b as oe, a5 as I, o as se, f as ue, h as c, a6 as re, X as ie, s as F, V as U, i as P, k as de } from "./index-CwGyyfTA.js";
3
- import { u as q } from "./useNestedProp-Dd5rDkqs.js";
4
- import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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
- key: 2,
7
- ref: "source",
8
- dir: "auto"
9
- }, ze = {
10
- __name: "vue-ui-spark-trend",
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
- },
25
- setup(W) {
26
- const $ = M(() => import("./BaseIcon-BdOuqa-n.js")), X = M(() => import("./PackageVersion-CvXTVTaQ.js")), Z = M(() => import("./vue-ui-skeleton-B1SFKW_l.js")), { vue_ui_spark_trend: R } = le(), d = W, H = s(() => !!d.dataset && d.dataset.length), b = k(ne()), e = s({
27
- get: () => j(),
28
- set: (t) => t
29
- });
30
- function j() {
31
- const t = q({
32
- userConfig: d.config,
33
- defaultConfig: R
34
- });
35
- return t.theme ? {
36
- ...q({
37
- userConfig: oe.vue_ui_spark_trend[t.theme] || d.config,
38
- defaultConfig: t
39
- })
40
- } : t;
41
- }
42
- const f = s(() => I({
43
- data: d.dataset,
44
- threshold: e.value.downsample.threshold
45
- }));
46
- D(() => d.config, (t) => {
47
- e.value = j(), A();
48
- }, { deep: !0 }), D(() => d.dataset, (t) => {
49
- g.value = I({
50
- data: d.dataset,
51
- threshold: e.value.downsample.threshold
52
- }).map((n) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(n) ? null : n);
53
- }, { deep: !0 });
54
- function N(t) {
55
- return t.map((n) => c(n));
56
- }
57
- const g = k(I({
58
- data: d.dataset,
59
- threshold: e.value.downsample.threshold
60
- }).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), m = k(!1), T = k(null);
61
- ee(() => {
62
- A();
63
- let n = 1e3 / e.value.style.animation.animationFrames, h = performance.now();
64
- if (e.value.style.animation.show && e.value.style.animation.animationFrames && d.dataset.length > 1) {
65
- let S = function() {
66
- m.value = !0;
67
- let B = performance.now(), E = B - h;
68
- E > n ? (h = B - E % n, p < f.value.length ? (g.value.push(f.value[p]), p += 1, T.value = requestAnimationFrame(S)) : (cancelAnimationFrame(T.value), g.value = N(f.value), m.value = !1)) : T.value = requestAnimationFrame(S);
69
- };
70
- g.value = [];
71
- let p = 0;
72
- S();
73
- }
74
- });
75
- function A() {
76
- se(d.dataset) && ue({
77
- componentName: "VueUiSparkTrend",
78
- type: "dataset"
79
- });
80
- }
81
- const l = k({
82
- height: 80,
83
- width: 300
84
- }), y = s(() => ({
85
- top: e.value.style.padding.top,
86
- left: e.value.style.padding.left,
87
- right: l.value.width - e.value.style.padding.right,
88
- bottom: l.value.height - e.value.style.padding.bottom,
89
- height: l.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
90
- width: l.value.width - (e.value.style.padding.left + e.value.style.padding.right)
91
- })), z = s(() => {
92
- const t = N(f.value);
93
- return {
94
- max: Math.max(...t.map((n) => c(n))),
95
- min: Math.min(...t.map((n) => c(n)))
96
- };
97
- }), w = s(() => {
98
- const t = z.value.min >= 0 ? 0 : z.value.min;
99
- return Math.abs(t);
100
- }), J = s(() => z.value.max + w.value);
101
- function V(t) {
102
- return t / J.value;
103
- }
104
- const K = s(() => f.value.length), a = s(() => g.value.map((t, n) => {
105
- const h = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
106
- return {
107
- value: c(t),
108
- absoluteValue: c(h),
109
- plotValue: c(h + w.value),
110
- toMax: V(h + w.value),
111
- x: y.value.left + c(n * (y.value.width / (K.value - 1))) - e.value.style.padding.right,
112
- y: y.value.bottom - c(y.value.height * V(h + w.value))
113
- };
114
- })), x = s(() => {
115
- const t = N(f.value);
116
- return e.value.style.trendLabel.trendType === "global" ? re(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
117
- }), C = s(() => m.value || x.value === 0 ? "neutral" : x.value > 0 ? "positive" : "negative"), v = s(() => e.value.style.arrow.colors[C.value]), Q = s(() => {
118
- const t = { x: a.value[0].x, y: l.value.height - 6 }, n = { x: a.value[a.value.length - 1].x, y: l.value.height - 6 }, h = [];
119
- return a.value.forEach((p) => {
120
- h.push(`${p.x},${p.y} `);
121
- }), [t.x, t.y, ...h, n.x, n.y].toString();
122
- }), Y = s(() => {
123
- let t = [];
124
- return a.value.forEach((n) => {
125
- t.push(`${n.x},${n.y} `);
126
- }), `M ${t.toString()}`;
127
- });
128
- return (t, n) => (o(), r("div", {
129
- class: "vue-ui-spark-trend",
130
- id: b.value,
131
- style: te(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
132
- }, [
133
- H.value ? (o(), r("svg", {
134
- key: 1,
135
- xmlns: u(ie),
136
- viewBox: `0 0 ${l.value.width} ${l.value.height}`,
137
- style: "width:100%;background:transparent;overflow:visible"
138
- }, [
139
- ae(u(X)),
140
- t.$slots["chart-background"] ? (o(), r("foreignObject", {
141
- key: 0,
142
- x: 0,
143
- y: 0,
144
- width: l.value.width <= 0 ? 10 : l.value.width,
145
- height: l.value.height <= 0 ? 10 : l.value.height,
146
- style: {
147
- pointerEvents: "none"
148
- }
149
- }, [
150
- O(t.$slots, "chart-background", {}, void 0, !0)
151
- ], 8, ye)) : i("", !0),
152
- _("defs", null, [
153
- _("linearGradient", {
154
- x1: "0%",
155
- y1: "0%",
156
- x2: "0%",
157
- y2: "100%",
158
- id: `pill_gradient_${b.value}`
159
- }, [
160
- _("stop", {
161
- offset: "0%",
162
- "stop-color": u(F)(e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke, e.value.style.area.opacity)
163
- }, null, 8, pe),
164
- _("stop", {
165
- offset: "100%",
166
- "stop-color": e.value.style.backgroundColor
167
- }, null, 8, ge)
168
- ], 8, fe)
169
- ]),
170
- e.value.style.area.show && a.value[0] ? (o(), r("g", me, [
171
- e.value.style.line.smooth ? (o(), r("path", {
172
- key: 0,
173
- d: `M ${a.value[0].x},${y.value.bottom} ${u(U)(a.value)} L ${a.value.at(-1).x},${y.value.bottom} Z`,
174
- fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : u(F)(e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke, e.value.style.area.opacity),
175
- stroke: "none"
176
- }, null, 8, ke)) : (o(), r("path", {
177
- key: 1,
178
- d: `M${Q.value}Z`,
179
- fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : u(F)(e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke, e.value.style.area.opacity),
180
- stroke: "none"
181
- }, null, 8, _e))
182
- ])) : i("", !0),
183
- e.value.style.line.smooth && a.value.length ? (o(), r("path", {
184
- key: 2,
185
- d: `M ${u(U)(a.value)}`,
186
- stroke: e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke,
187
- fill: "none",
188
- "stroke-width": e.value.style.line.strokeWidth,
189
- "stroke-linecap": e.value.style.line.strokeLinecap,
190
- "stroke-linejoin": e.value.style.line.strokeLinejoin
191
- }, null, 8, be)) : i("", !0),
192
- !e.value.style.line.smooth && a.value.length ? (o(), r("path", {
193
- key: 3,
194
- d: Y.value,
195
- stroke: e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke,
196
- fill: "none",
197
- "stroke-width": e.value.style.line.strokeWidth,
198
- "stroke-linecap": e.value.style.line.strokeLinecap,
199
- "stroke-linejoin": e.value.style.line.strokeLinejoin
200
- }, null, 8, we)) : i("", !0),
201
- m.value ? i("", !0) : (o(), r("foreignObject", {
202
- key: 4,
203
- height: l.value.height / 2,
204
- width: l.value.height / 2,
205
- x: l.value.height / 5,
206
- y: 8
207
- }, [
208
- _("div", Ce, [
209
- C.value === "positive" ? (o(), L(u($), {
210
- key: 0,
211
- stroke: v.value,
212
- name: "arrowTop",
213
- size: l.value.height / 2
214
- }, null, 8, ["stroke", "size"])) : i("", !0),
215
- C.value === "negative" ? (o(), L(u($), {
216
- key: 1,
217
- stroke: v.value,
218
- name: "arrowBottom",
219
- size: l.value.height / 2
220
- }, null, 8, ["stroke", "size"])) : i("", !0),
221
- C.value === "neutral" ? (o(), L(u($), {
222
- key: 2,
223
- stroke: v.value,
224
- name: "arrowRight",
225
- size: l.value.height / 2
226
- }, null, 8, ["stroke", "size"])) : i("", !0)
227
- ])
228
- ], 8, xe)),
229
- m.value ? i("", !0) : (o(), r("text", {
230
- key: 5,
231
- x: l.value.height / 2 - l.value.height / 20,
232
- y: y.value.bottom,
233
- "text-anchor": "middle",
234
- fill: e.value.style.trendLabel.useColorTrend ? v.value : e.value.style.trendLabel.color,
235
- "font-size": e.value.style.trendLabel.fontSize,
236
- "font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
237
- }, G(u(P)({
238
- p: x.value > 0 ? "+" : "",
239
- v: x.value,
240
- s: "%",
241
- r: e.value.style.trendLabel.rounding
242
- })), 9, Le)),
243
- a.value.length && a.value.at(-1).x !== void 0 ? (o(), r("circle", {
244
- key: 6,
245
- stroke: e.value.style.backgroundColor,
246
- "stroke-width": 2,
247
- cx: a.value.at(-1).x,
248
- cy: a.value.at(-1).y,
249
- r: 4,
250
- fill: v.value
251
- }, null, 8, $e)) : i("", !0),
252
- a.value.length && a.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (o(), r("text", {
253
- key: 7,
254
- "text-anchor": "middle",
255
- x: a.value.at(-1).x,
256
- y: a.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
257
- "font-size": e.value.style.dataLabel.fontSize,
258
- fill: e.value.style.dataLabel.useColorTrend ? v.value : e.value.style.dataLabel.color,
259
- "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
260
- }, G(u(de)(
261
- e.value.style.dataLabel.formatter,
262
- a.value.at(-1).value,
263
- u(P)({
264
- p: e.value.style.dataLabel.prefix,
265
- v: a.value.at(-1).value,
266
- s: e.value.style.dataLabel.suffix,
267
- r: e.value.style.dataLabel.rounding
268
- }),
269
- { datapoint: a.value.at(-1) }
270
- )), 9, Ne)) : i("", !0)
271
- ], 8, ce)) : (o(), L(u(Z), {
272
- key: 0,
273
- config: {
274
- type: "sparkline",
275
- style: {
276
- backgroundColor: e.value.style.backgroundColor,
277
- sparkline: {
278
- color: "#CCCCCC"
279
- }
280
- }
281
- }
282
- }, null, 8, ["config"])),
283
- t.$slots.source ? (o(), r("div", Te, [
284
- O(t.$slots, "source", {}, void 0, !0)
285
- ], 512)) : i("", !0)
286
- ], 12, he));
287
- }
288
- }, je = /* @__PURE__ */ ve(ze, [["__scopeId", "data-v-1a673d38"]]);
289
- export {
290
- je as default
291
- };