vue-data-ui 3.0.0-next.60 → 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.
- package/dist/{Arrow-Dt0ZxTK2.js → Arrow-vPQ5umgl.js} +1 -1
- package/dist/{BaseDraggableDialog-Bl-2tw3H.js → BaseDraggableDialog-rmweWafM.js} +2 -2
- package/dist/{BaseIcon-C3ljqn8J.js → BaseIcon-BdOuqa-n.js} +1 -1
- package/dist/{ColorPicker-0d0whOB3.js → ColorPicker-BJYD-Akc.js} +2 -2
- package/dist/{DataTable-C_tJHvMd.js → DataTable-DKhkUltp.js} +2 -2
- package/dist/{Legend-VD0VB7l7.js → Legend-DJVidRKZ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQsHc_AG.js → NonSvgPenAndPaper-BO1MTyPj.js} +3 -3
- package/dist/{PackageVersion-5S8ajCUS.js → PackageVersion-CvXTVTaQ.js} +1 -1
- package/dist/{PenAndPaper-D6wazxlT.js → PenAndPaper-B_AMsItI.js} +3 -3
- package/dist/{Shape-DDSX29LV.js → Shape-CVE1tn78.js} +1 -1
- package/dist/{Slicer-D3SbIarX.js → Slicer-Bu8DjZuX.js} +2 -2
- package/dist/{SparkTooltip-BCdP3VDl.js → SparkTooltip-CZVDoHxg.js} +1 -1
- package/dist/{Title-DEKAfzRX.js → Title-Cr_usVXc.js} +1 -1
- package/dist/{Tooltip-DJlC-n25.js → Tooltip-7jDTalyv.js} +1 -1
- package/dist/{UserOptions-D2G7II3G.js → UserOptions-UTvI0Q98.js} +2 -2
- package/dist/{dom-to-png-Y0tASTWQ.js → dom-to-png-ONrUYTRb.js} +1 -1
- package/dist/{img-ChLGv8nO.js → img-iMtnfYdI.js} +1 -1
- package/dist/{index-BLtc1AIS.js → index-CwGyyfTA.js} +75 -50
- package/dist/{pdf-DNiq-xsc.js → pdf-DiMYy8s9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +14 -0
- package/dist/types/vue-data-ui.d.ts +14 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BJDcwsoB.js → useAutoSizeLabelsInsideViewbox-CqI-y0RH.js} +1 -1
- package/dist/{useNestedProp-DExlTpuj.js → useNestedProp-Dd5rDkqs.js} +1 -1
- package/dist/{usePrinter-fqbzwh0l.js → usePrinter-Ctvv8qBg.js} +2 -2
- package/dist/{vue-data-ui-B8bRwUEL.js → vue-data-ui-DwvF4C9M.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dddx5kJW.js → vue-ui-3d-bar-zgyRNuSO.js} +6 -6
- package/dist/{vue-ui-accordion-EMAj3Ykx.js → vue-ui-accordion-5YUMPNG1.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CMzKOGfv.js → vue-ui-age-pyramid-DW6p9iWS.js} +6 -6
- package/dist/{vue-ui-annotator-BQxXVdZW.js → vue-ui-annotator-C2CMEveI.js} +2 -2
- package/dist/{vue-ui-bullet-DIie_6-T.js → vue-ui-bullet-I1UZAw0O.js} +7 -7
- package/dist/{vue-ui-candlestick-DU796IGE.js → vue-ui-candlestick-N2rX18KX.js} +7 -7
- package/dist/{vue-ui-carousel-table-xDItqzuw.js → vue-ui-carousel-table-CXe6ghc3.js} +4 -4
- package/dist/{vue-ui-chestnut-DnQ494SU.js → vue-ui-chestnut-Dkeqv0lM.js} +5 -5
- package/dist/{vue-ui-chord-DTs9gQ-R.js → vue-ui-chord-Dp_n9sP9.js} +8 -8
- package/dist/{vue-ui-circle-pack-D73gxFJW.js → vue-ui-circle-pack-DrPM1UXc.js} +6 -6
- package/dist/{vue-ui-cursor-CNXTFeSs.js → vue-ui-cursor-BcS6aiX1.js} +2 -2
- package/dist/{vue-ui-dashboard-Duph5Yta.js → vue-ui-dashboard-BcyCNmVV.js} +62 -62
- package/dist/{vue-ui-digits-D7qOSGZ-.js → vue-ui-digits-BvNRrVgl.js} +2 -2
- package/dist/{vue-ui-donut-EfxITdHJ.js → vue-ui-donut-Rvu6m-aE.js} +8 -8
- package/dist/{vue-ui-donut-evolution-H6nfW_kx.js → vue-ui-donut-evolution-D2ZcgYhJ.js} +8 -8
- package/dist/{vue-ui-dumbbell-DCUR8kl_.js → vue-ui-dumbbell-CvYVCA6I.js} +7 -7
- package/dist/{vue-ui-flow-DUENWmgc.js → vue-ui-flow-_6zAZMI6.js} +7 -7
- package/dist/{vue-ui-funnel-BSGUxWhW.js → vue-ui-funnel-CIEJVq4d.js} +6 -6
- package/dist/{vue-ui-galaxy-D8PBQfbb.js → vue-ui-galaxy-DcZ04iAF.js} +5 -5
- package/dist/{vue-ui-gauge-C8v8wKJO.js → vue-ui-gauge-C5j1wKcj.js} +7 -7
- package/dist/{vue-ui-gizmo-DmguslRh.js → vue-ui-gizmo-BD9EY4bZ.js} +3 -3
- package/dist/{vue-ui-heatmap-BM5Gfdzz.js → vue-ui-heatmap-DDZ8g5dM.js} +7 -7
- package/dist/{vue-ui-history-plot-CF6SlpwK.js → vue-ui-history-plot-C7ZRZHzl.js} +7 -7
- package/dist/{vue-ui-kpi-BCyX-Zu-.js → vue-ui-kpi-DZ5FITOL.js} +3 -3
- package/dist/{vue-ui-mini-loader-ByMff4PK.js → vue-ui-mini-loader-BaQpwyu-.js} +2 -2
- package/dist/{vue-ui-molecule-Cxnf2xDy.js → vue-ui-molecule-B8Ob6p-h.js} +5 -5
- package/dist/{vue-ui-mood-radar-DEfJWXE7.js → vue-ui-mood-radar-BrTY3gyR.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Bt7Pw9l0.js → vue-ui-nested-donuts-yN_txLmU.js} +9 -9
- package/dist/{vue-ui-onion-Bk3KL1Nk.js → vue-ui-onion-C613Zf1i.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BpKRlOYy.js → vue-ui-parallel-coordinate-plot-B-aXg4S4.js} +8 -8
- package/dist/{vue-ui-quadrant-D1dgOAp2.js → vue-ui-quadrant-C2AeZvmZ.js} +8 -8
- package/dist/{vue-ui-quick-chart-_I6OrH-J.js → vue-ui-quick-chart-CkE6ybPo.js} +6 -6
- package/dist/{vue-ui-radar-BWnhxayf.js → vue-ui-radar-BbiqR92L.js} +7 -7
- package/dist/{vue-ui-rating-I08lL1Nb.js → vue-ui-rating-CbRUCAxl.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMF5FSha.js → vue-ui-relation-circle-vWsjRm3W.js} +6 -6
- package/dist/{vue-ui-ridgeline-prYrXNYF.js → vue-ui-ridgeline-CaiytuOs.js} +8 -8
- package/dist/{vue-ui-rings-DmbUIw9S.js → vue-ui-rings-AFUuMvpu.js} +8 -8
- package/dist/{vue-ui-scatter-srTVLcUK.js → vue-ui-scatter-Dcb9tLMu.js} +8 -8
- package/dist/{vue-ui-skeleton-FanSnKr8.js → vue-ui-skeleton-B1SFKW_l.js} +3 -3
- package/dist/{vue-ui-smiley-CWA0Y6wM.js → vue-ui-smiley-Ba-ctrns.js} +2 -2
- package/dist/{vue-ui-spark-trend-EiEzMoPj.js → vue-ui-spark-trend-BshA2mRL.js} +3 -3
- package/dist/{vue-ui-sparkbar-CCe0U_o0.js → vue-ui-sparkbar-D8-HNaN_.js} +3 -3
- package/dist/vue-ui-sparkgauge-Dfnr6Bjc.js +232 -0
- package/dist/vue-ui-sparkhistogram-BMtpx_0l.js +444 -0
- package/dist/{vue-ui-sparkline-B2-YztKx.js → vue-ui-sparkline-BA_5ICer.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BGMtc_HC.js → vue-ui-sparkstackbar-BQkH5ltm.js} +3 -3
- package/dist/{vue-ui-stackbar-DrKaioRS.js → vue-ui-stackbar-C7iPaQOn.js} +9 -9
- package/dist/{vue-ui-strip-plot-C4qWoDEh.js → vue-ui-strip-plot-CnfeJeRi.js} +7 -7
- package/dist/{vue-ui-table-CXqyTj_Z.js → vue-ui-table-Dz6RLYoS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BZTn3qnM.js → vue-ui-table-heatmap-Cbgogx6N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CIBdN_KF.js → vue-ui-table-sparkline-CLEfp8d2.js} +4 -4
- package/dist/{vue-ui-thermometer-DPIpWKUI.js → vue-ui-thermometer-CzNFOqrV.js} +7 -7
- package/dist/{vue-ui-timer-Cha-Gb1x.js → vue-ui-timer-CI7VUX-B.js} +5 -5
- package/dist/{vue-ui-tiremarks-B4SjQyS7.js → vue-ui-tiremarks-C0QDwzEt.js} +6 -6
- package/dist/{vue-ui-treemap-1twI_ag-.js → vue-ui-treemap-D-5MOqu3.js} +8 -8
- package/dist/{vue-ui-vertical-bar-C31Jqkbw.js → vue-ui-vertical-bar-sZjQranC.js} +9 -9
- package/dist/{vue-ui-waffle-DkZykFPK.js → vue-ui-waffle-6zNYC1rh.js} +8 -8
- package/dist/{vue-ui-wheel-CYOrBHBD.js → vue-ui-wheel-kx79XCaH.js} +6 -6
- package/dist/{vue-ui-word-cloud-Clyg0CRZ.js → vue-ui-word-cloud-DI8bEQrN.js} +6 -6
- package/dist/{vue-ui-world-BYgMbS-e.js → vue-ui-world-Ba2tdGRe.js} +6 -6
- package/dist/{vue-ui-xy-BMszd4wZ.js → vue-ui-xy-TM3uzoN-.js} +9 -9
- package/dist/{vue-ui-xy-canvas-DwXvZ311.js → vue-ui-xy-canvas-DFqIhqzJ.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-sparkgauge-Cdcirik_.js +0 -201
- package/dist/vue-ui-sparkhistogram-CEj9qz9m.js +0 -313
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
-
import Ao from "./Title-
|
|
11
|
-
import { S as Co } from "./Slicer-
|
|
12
|
-
import { _ as $t } from "./Shape-
|
|
13
|
-
import zo from "./BaseIcon-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
-
import { u as gl } from "./usePrinter-
|
|
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-
|
|
9
|
-
import xl from "./Title-
|
|
10
|
-
import { S as Ll } from "./Slicer-
|
|
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-
|
|
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-
|
|
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,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-DExlTpuj.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-BLtc1AIS.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-5S8ajCUS.js")), B = A(() => import("./vue-ui-skeleton-FanSnKr8.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
|
-
};
|
|
@@ -1,313 +0,0 @@
|
|
|
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, f as H, g as ne, c as ve, b as de, s as b, k as F, i as O, X as ce, x as z } from "./index-BLtc1AIS.js";
|
|
3
|
-
import { u as W } from "./useNestedProp-DExlTpuj.js";
|
|
4
|
-
import { u as ye } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
-
import { _ as he } from "./Shape-DDSX29LV.js";
|
|
6
|
-
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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
|
-
key: 2,
|
|
9
|
-
ref: "source",
|
|
10
|
-
dir: "auto"
|
|
11
|
-
}, Fe = {
|
|
12
|
-
__name: "vue-ui-sparkhistogram",
|
|
13
|
-
props: {
|
|
14
|
-
config: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default() {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
dataset: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default() {
|
|
23
|
-
return [];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: ["selectDatapoint"],
|
|
28
|
-
setup(B, { emit: U }) {
|
|
29
|
-
le((l) => ({
|
|
30
|
-
"2d6ebc7a": J.value
|
|
31
|
-
}));
|
|
32
|
-
const j = N(() => import("./PackageVersion-5S8ajCUS.js")), R = N(() => import("./vue-ui-skeleton-FanSnKr8.js")), { vue_ui_sparkhistogram: X } = ue(), d = B, S = _(() => !!d.dataset && d.dataset.length);
|
|
33
|
-
ae(() => {
|
|
34
|
-
A();
|
|
35
|
-
});
|
|
36
|
-
function A() {
|
|
37
|
-
re(d.dataset) ? H({
|
|
38
|
-
componentName: "VueUiSparkHistogram",
|
|
39
|
-
type: "dataset"
|
|
40
|
-
}) : d.dataset.forEach((l, u) => {
|
|
41
|
-
ne({
|
|
42
|
-
datasetObject: l,
|
|
43
|
-
requiredAttributes: ["value"]
|
|
44
|
-
}).forEach((t) => {
|
|
45
|
-
H({
|
|
46
|
-
componentName: "VueUiSparkHistogram",
|
|
47
|
-
type: "datasetSerieAttribute",
|
|
48
|
-
property: t,
|
|
49
|
-
index: u
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
const m = D(ve()), e = _({
|
|
55
|
-
get: () => M(),
|
|
56
|
-
set: (l) => l
|
|
57
|
-
}), { svgRef: G } = ye({ config: e.value.style.title });
|
|
58
|
-
function M() {
|
|
59
|
-
const l = W({
|
|
60
|
-
userConfig: d.config,
|
|
61
|
-
defaultConfig: X
|
|
62
|
-
});
|
|
63
|
-
return l.theme ? {
|
|
64
|
-
...W({
|
|
65
|
-
userConfig: de.vue_ui_sparkhistogram[l.theme] || d.config,
|
|
66
|
-
defaultConfig: l
|
|
67
|
-
})
|
|
68
|
-
} : l;
|
|
69
|
-
}
|
|
70
|
-
se(() => d.config, (l) => {
|
|
71
|
-
e.value = M(), A();
|
|
72
|
-
}, { deep: !0 });
|
|
73
|
-
const v = _(() => {
|
|
74
|
-
const l = e.value.style.layout.height, u = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, y = e.value.style.layout.padding.left, x = u - e.value.style.layout.padding.right, k = t + (l - t - e.value.style.layout.padding.bottom) / 2, C = l - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom, w = u - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
75
|
-
return {
|
|
76
|
-
bottom: o,
|
|
77
|
-
centerY: k,
|
|
78
|
-
drawingHeight: C,
|
|
79
|
-
drawingWidth: w,
|
|
80
|
-
height: l,
|
|
81
|
-
left: y,
|
|
82
|
-
right: x,
|
|
83
|
-
top: t,
|
|
84
|
-
width: u
|
|
85
|
-
};
|
|
86
|
-
}), Y = _(() => Math.max(...d.dataset.map((l) => Math.abs(l.value || 0))));
|
|
87
|
-
function q(l) {
|
|
88
|
-
return Math.abs(l) / Y.value;
|
|
89
|
-
}
|
|
90
|
-
const r = _(() => d.dataset.map((l, u) => {
|
|
91
|
-
const t = q(l.value || 0), o = v.value.drawingHeight * t, y = v.value.drawingWidth / d.dataset.length, x = y * (e.value.style.bars.gap / 100), k = y - x, C = v.value.centerY - o / 2, w = v.value.left + (x / 2 + u * y), K = v.value.left + u * y, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), Q = l.color ? l.color : l.value >= 0 ? b(e.value.style.bars.colors.positive, L) : b(e.value.style.bars.colors.negative, L), Z = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, ee = l.color ? `url(#gradient_datapoint_${u}_${m.value})` : l.value >= 0 ? `url(#gradient_positive_${u}_${m.value})` : `url(#gradient_negative_${u}_${m.value})`, te = w + k / 2;
|
|
92
|
-
return {
|
|
93
|
-
...l,
|
|
94
|
-
color: Q,
|
|
95
|
-
gradient: ee,
|
|
96
|
-
height: o,
|
|
97
|
-
intensity: L,
|
|
98
|
-
proportion: t,
|
|
99
|
-
stroke: Z,
|
|
100
|
-
textAnchor: te,
|
|
101
|
-
trapX: K,
|
|
102
|
-
unitWidth: y,
|
|
103
|
-
width: k,
|
|
104
|
-
x: w,
|
|
105
|
-
y: C
|
|
106
|
-
};
|
|
107
|
-
})), i = D(null), P = U;
|
|
108
|
-
function T(l, u) {
|
|
109
|
-
P("selectDatapoint", { datapoint: l, index: u });
|
|
110
|
-
}
|
|
111
|
-
const J = _(() => `${e.value.style.animation.speedMs}ms`);
|
|
112
|
-
return (l, u) => (a(), s("div", {
|
|
113
|
-
class: "vue-ui-spark-histogram",
|
|
114
|
-
style: $(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
115
|
-
onMouseleave: u[1] || (u[1] = (t) => i.value = null)
|
|
116
|
-
}, [
|
|
117
|
-
e.value.style.title.text ? (a(), s("div", {
|
|
118
|
-
key: 0,
|
|
119
|
-
style: $(`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}`)
|
|
120
|
-
}, [
|
|
121
|
-
h("div", {
|
|
122
|
-
style: $(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
123
|
-
}, [
|
|
124
|
-
oe(p(e.value.style.title.text) + " ", 1),
|
|
125
|
-
i.value !== null ? (a(), s("span", ge, "- " + p(r.value[i.value].timeLabel || "") + " " + p(n(F)(
|
|
126
|
-
e.value.style.labels.value.formatter,
|
|
127
|
-
r.value[i.value].value,
|
|
128
|
-
n(O)({
|
|
129
|
-
p: e.value.style.labels.value.prefix,
|
|
130
|
-
v: r.value[i.value].value,
|
|
131
|
-
s: e.value.style.labels.value.suffix,
|
|
132
|
-
r: e.value.style.labels.value.rounding
|
|
133
|
-
}),
|
|
134
|
-
{ datapoint: r.value[i.value], seriesIndex: i.value }
|
|
135
|
-
)), 1)) : c("", !0),
|
|
136
|
-
![void 0, null].includes(i.value) && ![null, void 0].includes(r.value[i.value].valueLabel) ? (a(), s("span", pe, "(" + p(r.value[i.value].valueLabel || 0) + ")", 1)) : c("", !0)
|
|
137
|
-
], 4),
|
|
138
|
-
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
139
|
-
key: 0,
|
|
140
|
-
style: $(`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"}`)
|
|
141
|
-
}, p(e.value.style.title.subtitle.text), 5)) : c("", !0)
|
|
142
|
-
], 4)) : c("", !0),
|
|
143
|
-
S.value ? (a(), s("svg", {
|
|
144
|
-
key: 1,
|
|
145
|
-
ref_key: "svgRef",
|
|
146
|
-
ref: G,
|
|
147
|
-
xmlns: n(ce),
|
|
148
|
-
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
149
|
-
style: { overflow: "visible" }
|
|
150
|
-
}, [
|
|
151
|
-
ie(n(j)),
|
|
152
|
-
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
153
|
-
key: 0,
|
|
154
|
-
x: 0,
|
|
155
|
-
y: 0,
|
|
156
|
-
width: v.value.width,
|
|
157
|
-
height: v.value.height,
|
|
158
|
-
style: {
|
|
159
|
-
pointerEvents: "none"
|
|
160
|
-
}
|
|
161
|
-
}, [
|
|
162
|
-
I(l.$slots, "chart-background", {}, void 0, !0)
|
|
163
|
-
], 8, me)) : c("", !0),
|
|
164
|
-
h("defs", null, [
|
|
165
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
166
|
-
id: `gradient_positive_${o}_${m.value}`,
|
|
167
|
-
cy: "50%",
|
|
168
|
-
cx: "50%",
|
|
169
|
-
r: "50%",
|
|
170
|
-
fx: "50%",
|
|
171
|
-
fy: "50%"
|
|
172
|
-
}, [
|
|
173
|
-
h("stop", {
|
|
174
|
-
offset: "0%",
|
|
175
|
-
"stop-color": n(b)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
176
|
-
}, null, 8, xe),
|
|
177
|
-
h("stop", {
|
|
178
|
-
offset: "100%",
|
|
179
|
-
"stop-color": n(b)(e.value.style.bars.colors.positive, t.intensity)
|
|
180
|
-
}, null, 8, ke)
|
|
181
|
-
], 8, _e))), 256)),
|
|
182
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
183
|
-
id: `gradient_negative_${o}_${m.value}`,
|
|
184
|
-
cy: "50%",
|
|
185
|
-
cx: "50%",
|
|
186
|
-
r: "50%",
|
|
187
|
-
fx: "50%",
|
|
188
|
-
fy: "50%"
|
|
189
|
-
}, [
|
|
190
|
-
h("stop", {
|
|
191
|
-
offset: "0%",
|
|
192
|
-
"stop-color": n(b)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
193
|
-
}, null, 8, $e),
|
|
194
|
-
h("stop", {
|
|
195
|
-
offset: "100%",
|
|
196
|
-
"stop-color": n(b)(e.value.style.bars.colors.negative, t.intensity)
|
|
197
|
-
}, null, 8, Ce)
|
|
198
|
-
], 8, we))), 256)),
|
|
199
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
200
|
-
id: `gradient_datapoint_${o}_${m.value}`,
|
|
201
|
-
cy: "50%",
|
|
202
|
-
cx: "50%",
|
|
203
|
-
r: "50%",
|
|
204
|
-
fx: "50%",
|
|
205
|
-
fy: "50%"
|
|
206
|
-
}, [
|
|
207
|
-
h("stop", {
|
|
208
|
-
offset: "0%",
|
|
209
|
-
"stop-color": n(b)(n(z)(t.color, 0.05), t.intensity)
|
|
210
|
-
}, null, 8, ze),
|
|
211
|
-
h("stop", {
|
|
212
|
-
offset: "100%",
|
|
213
|
-
"stop-color": n(b)(t.color, t.intensity)
|
|
214
|
-
}, null, 8, Se)
|
|
215
|
-
], 8, Le))), 256))
|
|
216
|
-
]),
|
|
217
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Ae, [
|
|
218
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("rect", {
|
|
219
|
-
x: t.x,
|
|
220
|
-
y: t.y,
|
|
221
|
-
height: t.height,
|
|
222
|
-
width: t.width,
|
|
223
|
-
fill: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
224
|
-
stroke: t.stroke,
|
|
225
|
-
"stroke-width": e.value.style.bars.strokeWidth,
|
|
226
|
-
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
227
|
-
class: E({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
228
|
-
}, null, 10, Me))), 256))
|
|
229
|
-
])) : (a(), s("g", Ne, [
|
|
230
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), V(he, {
|
|
231
|
-
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
232
|
-
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
233
|
-
shape: e.value.style.bars.shape,
|
|
234
|
-
radius: t.height * 0.4,
|
|
235
|
-
class: E({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
236
|
-
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
237
|
-
])),
|
|
238
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("text", {
|
|
239
|
-
"text-anchor": "middle",
|
|
240
|
-
x: t.textAnchor,
|
|
241
|
-
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
242
|
-
"font-size": e.value.style.labels.value.fontSize,
|
|
243
|
-
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
244
|
-
fill: e.value.style.labels.value.color
|
|
245
|
-
}, p(n(F)(
|
|
246
|
-
e.value.style.labels.value.formatter,
|
|
247
|
-
t.value,
|
|
248
|
-
n(O)({
|
|
249
|
-
p: e.value.style.labels.value.prefix,
|
|
250
|
-
v: t.value,
|
|
251
|
-
s: e.value.style.labels.value.suffix,
|
|
252
|
-
r: e.value.style.labels.value.rounding
|
|
253
|
-
}),
|
|
254
|
-
{ datapoint: r.value[i.value], seriesIndex: i.value }
|
|
255
|
-
)), 9, De))), 256)),
|
|
256
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
257
|
-
t.valueLabel ? (a(), s("text", {
|
|
258
|
-
key: 0,
|
|
259
|
-
x: t.textAnchor,
|
|
260
|
-
y: t.y + t.height + e.value.style.labels.valueLabel.fontSize,
|
|
261
|
-
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
262
|
-
"text-anchor": "middle",
|
|
263
|
-
fill: e.value.style.labels.valueLabel.color
|
|
264
|
-
}, p(t.valueLabel), 9, Ve)) : c("", !0)
|
|
265
|
-
]))), 256)),
|
|
266
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
267
|
-
t.timeLabel ? (a(), s("text", {
|
|
268
|
-
key: 0,
|
|
269
|
-
x: t.textAnchor,
|
|
270
|
-
y: v.value.height - e.value.style.labels.timeLabel.fontSize / 2,
|
|
271
|
-
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
272
|
-
fill: e.value.style.labels.timeLabel.color,
|
|
273
|
-
"text-anchor": "middle"
|
|
274
|
-
}, p(t.timeLabel), 9, Ie)) : c("", !0)
|
|
275
|
-
]))), 256)),
|
|
276
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
277
|
-
h("rect", {
|
|
278
|
-
height: v.value.height,
|
|
279
|
-
width: t.unitWidth,
|
|
280
|
-
fill: "transparent",
|
|
281
|
-
x: t.trapX,
|
|
282
|
-
y: 0,
|
|
283
|
-
onMouseover: (y) => i.value = o,
|
|
284
|
-
onMouseleave: u[0] || (u[0] = (y) => i.value = null),
|
|
285
|
-
stroke: i.value !== null && i.value === o ? e.value.style.selector.stroke : "",
|
|
286
|
-
"stroke-width": i.value !== null && i.value === o ? e.value.style.selector.strokeWidth : 0,
|
|
287
|
-
rx: e.value.style.selector.borderRadius,
|
|
288
|
-
"stroke-dasharray": e.value.style.selector.strokeDasharray,
|
|
289
|
-
onClick: () => T(t, o)
|
|
290
|
-
}, null, 40, Ee)
|
|
291
|
-
]))), 256))
|
|
292
|
-
], 8, be)) : c("", !0),
|
|
293
|
-
l.$slots.source ? (a(), s("div", He, [
|
|
294
|
-
I(l.$slots, "source", {}, void 0, !0)
|
|
295
|
-
], 512)) : c("", !0),
|
|
296
|
-
S.value ? c("", !0) : (a(), V(n(R), {
|
|
297
|
-
key: 3,
|
|
298
|
-
config: {
|
|
299
|
-
type: "sparkHistogram",
|
|
300
|
-
style: {
|
|
301
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
302
|
-
sparkHistogram: {
|
|
303
|
-
color: "#CCCCCC"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}, null, 8, ["config"]))
|
|
308
|
-
], 36));
|
|
309
|
-
}
|
|
310
|
-
}, Xe = /* @__PURE__ */ fe(Fe, [["__scopeId", "data-v-4d2045fb"]]);
|
|
311
|
-
export {
|
|
312
|
-
Xe as default
|
|
313
|
-
};
|