vue-data-ui 3.0.0-next.58 → 3.0.0-next.59
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-BdebCogi.js → Arrow-Cy3DXLKh.js} +1 -1
- package/dist/{BaseDraggableDialog-QfXlICHa.js → BaseDraggableDialog-BMX7Vs05.js} +2 -2
- package/dist/{BaseIcon-B-Zuw4hN.js → BaseIcon-CY5cKZco.js} +1 -1
- package/dist/{ColorPicker-DWCBREFx.js → ColorPicker-B6qnvRPP.js} +2 -2
- package/dist/{DataTable-9RqEr3O7.js → DataTable-0vMEKXyc.js} +2 -2
- package/dist/{Legend-BqrngbHw.js → Legend-CxcYd88T.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BBs_NC2x.js → NonSvgPenAndPaper-B9VyAH8V.js} +3 -3
- package/dist/{PackageVersion-Q84nLP1I.js → PackageVersion-Drk6yOgG.js} +1 -1
- package/dist/{PenAndPaper-DTDvVEz-.js → PenAndPaper-BSBB3lDR.js} +3 -3
- package/dist/{Shape-KHCRkkSS.js → Shape--XKRrfTm.js} +1 -1
- package/dist/{Slicer-CUaK2ypg.js → Slicer-DCDucxqY.js} +2 -2
- package/dist/{SparkTooltip-D721EASE.js → SparkTooltip-CjvxSe5t.js} +1 -1
- package/dist/{Title-ENZfmjfM.js → Title-D0LcJx9c.js} +1 -1
- package/dist/{Tooltip-CsLS8Tc8.js → Tooltip-A0rXVeCS.js} +1 -1
- package/dist/{UserOptions-GxEENfvl.js → UserOptions-B6pdFvnh.js} +2 -2
- package/dist/{dom-to-png-LQVV7IWB.js → dom-to-png-soMc4J-O.js} +1 -1
- package/dist/{img-CJNBD126.js → img-XQW68ydk.js} +1 -1
- package/dist/{index-BshAuNuP.js → index-3dwsQVpJ.js} +14 -1
- package/dist/{pdf-BF0iuIbz.js → pdf-uuJ9bA-G.js} +1 -1
- package/dist/types/vue-data-ui.d.cts +8 -0
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B7H3AMHf.js → useAutoSizeLabelsInsideViewbox-BD2VwIW8.js} +1 -1
- package/dist/{useNestedProp-BbGfeZ8E.js → useNestedProp-gsSGb_lz.js} +1 -1
- package/dist/{usePrinter-CQBNBSp8.js → usePrinter-eX-mHqpH.js} +2 -2
- package/dist/{vue-data-ui-DGoTdDDK.js → vue-data-ui-vW4TPl3U.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DJfeL_-3.js → vue-ui-3d-bar-f6DERIfX.js} +6 -6
- package/dist/{vue-ui-accordion-DmrWcofh.js → vue-ui-accordion-B8nt3TxA.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BODmxkHt.js → vue-ui-age-pyramid-CMTrjr66.js} +6 -6
- package/dist/{vue-ui-annotator-Dhfc8JyT.js → vue-ui-annotator-DQ7W33jU.js} +2 -2
- package/dist/{vue-ui-bullet-Ca3euWoC.js → vue-ui-bullet-DZpiGlT4.js} +7 -7
- package/dist/{vue-ui-candlestick-t7vzD0Bo.js → vue-ui-candlestick-D_-OKcLB.js} +7 -7
- package/dist/{vue-ui-carousel-table-CBLL1-2k.js → vue-ui-carousel-table-Kc13xumV.js} +4 -4
- package/dist/{vue-ui-chestnut-Cx4bOdLO.js → vue-ui-chestnut-BzDu3Rn6.js} +5 -5
- package/dist/{vue-ui-chord-CReroqMA.js → vue-ui-chord-U669mk50.js} +8 -8
- package/dist/{vue-ui-circle-pack-B8xZmTcm.js → vue-ui-circle-pack-xw5KQZU-.js} +6 -6
- package/dist/{vue-ui-cursor-DJ8_qBBD.js → vue-ui-cursor-Ce7aQLHI.js} +2 -2
- package/dist/{vue-ui-dashboard-bsvwPzpW.js → vue-ui-dashboard-y82bZlmD.js} +62 -62
- package/dist/{vue-ui-digits-BZfnD3ez.js → vue-ui-digits-KEMPMv_F.js} +2 -2
- package/dist/{vue-ui-donut-Be20FP2o.js → vue-ui-donut-DE6uXbjC.js} +8 -8
- package/dist/{vue-ui-donut-evolution-C9trFeUZ.js → vue-ui-donut-evolution-CnqbDlWb.js} +8 -8
- package/dist/{vue-ui-dumbbell-Cd-3lAW2.js → vue-ui-dumbbell-BxQn3t4G.js} +7 -7
- package/dist/{vue-ui-flow-BEjXZezX.js → vue-ui-flow-94-MPmDY.js} +7 -7
- package/dist/{vue-ui-funnel-BdmG7svM.js → vue-ui-funnel-CwlWwL3n.js} +6 -6
- package/dist/{vue-ui-galaxy-CZUbavYa.js → vue-ui-galaxy-CNf7tCih.js} +5 -5
- package/dist/{vue-ui-gauge-C8uIlUO6.js → vue-ui-gauge-Cew9UDzz.js} +7 -7
- package/dist/{vue-ui-gizmo-BIdvqPj0.js → vue-ui-gizmo--xaQAnQu.js} +3 -3
- package/dist/{vue-ui-heatmap-LOmwdZli.js → vue-ui-heatmap-D6cGvObH.js} +7 -7
- package/dist/{vue-ui-history-plot-BsXbkJKP.js → vue-ui-history-plot-DW5MxS_b.js} +7 -7
- package/dist/{vue-ui-kpi-CMh4W-9S.js → vue-ui-kpi-BatAZ4-E.js} +3 -3
- package/dist/{vue-ui-mini-loader-D4iGH9_v.js → vue-ui-mini-loader-GPIqVVO1.js} +2 -2
- package/dist/{vue-ui-molecule-Re28mKit.js → vue-ui-molecule-k7qyYVdZ.js} +5 -5
- package/dist/{vue-ui-mood-radar-DYRGx5Rl.js → vue-ui-mood-radar-BabL_H73.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DbUZlrBg.js → vue-ui-nested-donuts-WKD01a1O.js} +9 -9
- package/dist/{vue-ui-onion-DmIJphbZ.js → vue-ui-onion-BkyATCmO.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-ChF6ulPo.js → vue-ui-parallel-coordinate-plot-jm-azRXI.js} +8 -8
- package/dist/{vue-ui-quadrant-CIAG3pKZ.js → vue-ui-quadrant-DBd4oVbT.js} +8 -8
- package/dist/{vue-ui-quick-chart-Bka9tPEx.js → vue-ui-quick-chart-CwBj1P_V.js} +6 -6
- package/dist/{vue-ui-radar-BNYr-0Me.js → vue-ui-radar-CSv_3sN3.js} +7 -7
- package/dist/{vue-ui-rating-BNUL56t4.js → vue-ui-rating-C6KezTXl.js} +2 -2
- package/dist/{vue-ui-relation-circle-DOYkBvSY.js → vue-ui-relation-circle-DUzsyxP3.js} +6 -6
- package/dist/{vue-ui-ridgeline-DEn1oudN.js → vue-ui-ridgeline-BCHnAtYx.js} +8 -8
- package/dist/{vue-ui-rings-CSNmlblD.js → vue-ui-rings-I6pUXmJJ.js} +8 -8
- package/dist/{vue-ui-scatter-CVKhR03G.js → vue-ui-scatter-CIbgIR2N.js} +8 -8
- package/dist/{vue-ui-skeleton-C-F_6Vl8.js → vue-ui-skeleton-DfTWTIRD.js} +3 -3
- package/dist/{vue-ui-smiley-9uchQGm-.js → vue-ui-smiley-D-jjuB_S.js} +2 -2
- package/dist/{vue-ui-spark-trend-CB3DO3a4.js → vue-ui-spark-trend-CTEVFB0f.js} +3 -3
- package/dist/vue-ui-sparkbar-BmrXpZdR.js +351 -0
- package/dist/{vue-ui-sparkgauge-BtW6-sLc.js → vue-ui-sparkgauge-EkEm4AS9.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CW0N9NcQ.js → vue-ui-sparkhistogram-CvzKB01S.js} +4 -4
- package/dist/{vue-ui-sparkline-Cz8tNNX5.js → vue-ui-sparkline-B76XhHl5.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CnmBJnbX.js → vue-ui-sparkstackbar-BJ-rHvP2.js} +3 -3
- package/dist/{vue-ui-stackbar-qIRqTunP.js → vue-ui-stackbar-D1cu4co4.js} +9 -9
- package/dist/{vue-ui-strip-plot-mmGIF-Kt.js → vue-ui-strip-plot-Ch1NtN_S.js} +7 -7
- package/dist/{vue-ui-table-C1ftm37c.js → vue-ui-table-DCJDWKjJ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-0AkmMtph.js → vue-ui-table-heatmap-CNOFepne.js} +5 -5
- package/dist/{vue-ui-table-sparkline-53LdwwOX.js → vue-ui-table-sparkline-B4caHVFQ.js} +4 -4
- package/dist/{vue-ui-thermometer-cpmry95L.js → vue-ui-thermometer-ApFwWbAJ.js} +7 -7
- package/dist/{vue-ui-timer-BkPmheSp.js → vue-ui-timer-CXFlnQWL.js} +5 -5
- package/dist/{vue-ui-tiremarks-0Td6rFSB.js → vue-ui-tiremarks-Co2nDZn0.js} +6 -6
- package/dist/{vue-ui-treemap-ClL19tZl.js → vue-ui-treemap-CPqRKKv9.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Yigs8iR9.js → vue-ui-vertical-bar-D6PiL6Hm.js} +9 -9
- package/dist/{vue-ui-waffle-CLbJ0gNv.js → vue-ui-waffle-DTf2hN2Q.js} +8 -8
- package/dist/{vue-ui-wheel-Ddr9_dsz.js → vue-ui-wheel-CO06fgiJ.js} +6 -6
- package/dist/{vue-ui-word-cloud-BnYr9XJt.js → vue-ui-word-cloud-B13xfkXT.js} +6 -6
- package/dist/{vue-ui-world-D5iO6V_L.js → vue-ui-world-C5S4zyBs.js} +6 -6
- package/dist/{vue-ui-xy-ByTY6gwo.js → vue-ui-xy-DQTFeS0H.js} +9 -9
- package/dist/{vue-ui-xy-canvas-B_VipV62.js → vue-ui-xy-canvas-CUpEoeSY.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-sparkbar-C2R03dNB.js +0 -301
|
@@ -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-3dwsQVpJ.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-eX-mHqpH.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-gsSGb_lz.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-XQW68ydk.js";
|
|
10
|
+
import Ao from "./Title-D0LcJx9c.js";
|
|
11
|
+
import { S as Co } from "./Slicer-DCDucxqY.js";
|
|
12
|
+
import { _ as $t } from "./Shape--XKRrfTm.js";
|
|
13
|
+
import zo from "./BaseIcon-CY5cKZco.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-0vMEKXyc.js")), ie = yl(() => import("./Tooltip-A0rXVeCS.js")), re = yl(() => import("./UserOptions-B6pdFvnh.js")), Sl = yl(() => import("./BaseIcon-CY5cKZco.js")), ql = yl(() => import("./vue-ui-table-sparkline-B4caHVFQ.js")), Pl = yl(() => import("./vue-ui-accordion-B8nt3TxA.js")), $l = yl(() => import("./PackageVersion-Drk6yOgG.js")), _l = yl(() => import("./PenAndPaper-BSBB3lDR.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-3dwsQVpJ.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-gsSGb_lz.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-eX-mHqpH.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-CxcYd88T.js";
|
|
9
|
+
import xl from "./Title-D0LcJx9c.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-DCDucxqY.js";
|
|
11
11
|
import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
-
import Cl from "./img-
|
|
12
|
+
import Cl from "./img-XQW68ydk.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-B8nt3TxA.js")), pa = K(() => import("./DataTable-0vMEKXyc.js")), ma = K(() => import("./NonSvgPenAndPaper-B9VyAH8V.js")), ba = K(() => import("./vue-ui-skeleton-DfTWTIRD.js")), xa = K(() => import("./Tooltip-A0rXVeCS.js")), La = K(() => import("./UserOptions-B6pdFvnh.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,301 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, useSlots as R, onMounted as z, computed as g, ref as k, watch as L, nextTick as Y, createElementBlock as c, openBlock as u, normalizeStyle as p, unref as o, renderSlot as _, createCommentVNode as v, createBlock as Z, normalizeProps as ee, mergeProps as O, createElementVNode as d, toDisplayString as f, Fragment as T, renderList as te, createVNode as le } from "vue";
|
|
2
|
-
import { u as ae, c as oe, a as se, p as x, b as ne, d as ue, o as re, f as E, g as ie, e as ce, s as $, k as b, i as w, X as ve, x as de } from "./index-BshAuNuP.js";
|
|
3
|
-
import { u as B } from "./useNestedProp-BbGfeZ8E.js";
|
|
4
|
-
const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"], ge = ["stop-color"], he = ["stop-color"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = ["height", "width", "fill", "rx"], we = {
|
|
5
|
-
key: 2,
|
|
6
|
-
ref: "source",
|
|
7
|
-
dir: "auto"
|
|
8
|
-
}, Se = {
|
|
9
|
-
__name: "vue-ui-sparkbar",
|
|
10
|
-
props: {
|
|
11
|
-
config: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default() {
|
|
14
|
-
return {};
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
dataset: {
|
|
18
|
-
type: Array,
|
|
19
|
-
default() {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* Used in VueUiRadar's tooltip exclusively
|
|
25
|
-
*/
|
|
26
|
-
backgroundOpacity: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: null
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: ["selectDatapoint"],
|
|
32
|
-
setup(C, { emit: M }) {
|
|
33
|
-
const U = V(() => import("./PackageVersion-Q84nLP1I.js")), j = V(() => import("./vue-ui-skeleton-C-F_6Vl8.js")), { vue_ui_sparkbar: G } = ae(), a = C, W = R();
|
|
34
|
-
z(() => {
|
|
35
|
-
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
36
|
-
});
|
|
37
|
-
const S = g(() => !!a.dataset && a.dataset.length), A = k(oe()), e = g({
|
|
38
|
-
get: () => N(),
|
|
39
|
-
set: (t) => t
|
|
40
|
-
});
|
|
41
|
-
function N() {
|
|
42
|
-
const t = B({
|
|
43
|
-
userConfig: a.config,
|
|
44
|
-
defaultConfig: G
|
|
45
|
-
});
|
|
46
|
-
return t.theme ? {
|
|
47
|
-
...B({
|
|
48
|
-
userConfig: ne.vue_ui_sparkbar[t.theme] || a.config,
|
|
49
|
-
defaultConfig: t
|
|
50
|
-
}),
|
|
51
|
-
customPalette: se[t.theme] || x
|
|
52
|
-
} : t;
|
|
53
|
-
}
|
|
54
|
-
L(() => a.config, (t) => {
|
|
55
|
-
e.value = N();
|
|
56
|
-
}, { deep: !0 });
|
|
57
|
-
const q = g(() => ue(e.value.customPalette)), y = k(a.dataset.map((t) => ({
|
|
58
|
-
...t,
|
|
59
|
-
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
60
|
-
formatter: t.formatter || null
|
|
61
|
-
}))), D = k(null);
|
|
62
|
-
z(async () => {
|
|
63
|
-
re(a.dataset) && E({
|
|
64
|
-
componentName: "VueUiSparkbar",
|
|
65
|
-
type: "dataset"
|
|
66
|
-
}), F();
|
|
67
|
-
});
|
|
68
|
-
function F() {
|
|
69
|
-
if (e.value.style.animation.show) {
|
|
70
|
-
let P = function() {
|
|
71
|
-
i += l / t, i < l ? (y.value = y.value.map((n, h) => ({
|
|
72
|
-
...n,
|
|
73
|
-
value: n.value += s[h]
|
|
74
|
-
})), D.value = requestAnimationFrame(P)) : y.value = a.dataset.map((n) => ({
|
|
75
|
-
...n,
|
|
76
|
-
value: n.value || 0,
|
|
77
|
-
formatter: n.formatter || null
|
|
78
|
-
}));
|
|
79
|
-
};
|
|
80
|
-
const t = e.value.style.animation.animationFrames, s = a.dataset.map((n, h) => n.value / t), l = a.dataset.map((n) => n.value || 0).reduce((n, h) => n + h, 0);
|
|
81
|
-
let i = 0;
|
|
82
|
-
P();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
L(() => a.dataset, async (t) => {
|
|
86
|
-
cancelAnimationFrame(D.value), y.value = a.dataset.map((s) => ({
|
|
87
|
-
...s,
|
|
88
|
-
value: e.value.style.animation.show ? 0 : s.value || 0,
|
|
89
|
-
formatter: s.formatter || null
|
|
90
|
-
})), Y(F);
|
|
91
|
-
}, { deep: !0 });
|
|
92
|
-
const r = k({
|
|
93
|
-
width: 500,
|
|
94
|
-
height: 16
|
|
95
|
-
}), H = g(() => Math.max(...a.dataset.map((t) => t.value))), X = g(() => (a.dataset.forEach((t, s) => {
|
|
96
|
-
ie({
|
|
97
|
-
datasetObject: t,
|
|
98
|
-
requiredAttributes: ["name", "value"]
|
|
99
|
-
}).forEach((l) => {
|
|
100
|
-
E({
|
|
101
|
-
componentName: "VueUiSparkbar",
|
|
102
|
-
type: "datasetSerieAttribute",
|
|
103
|
-
property: l,
|
|
104
|
-
index: s
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}), y.value.map((t, s) => ({
|
|
108
|
-
...t,
|
|
109
|
-
value: t.value || 0,
|
|
110
|
-
color: ce(t.color) || q.value[s] || x[s] || x[s % x.length]
|
|
111
|
-
}))));
|
|
112
|
-
function J(t) {
|
|
113
|
-
return t / H.value;
|
|
114
|
-
}
|
|
115
|
-
function I(t) {
|
|
116
|
-
return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : J(t.value);
|
|
117
|
-
}
|
|
118
|
-
function m(t) {
|
|
119
|
-
return e.value.style.layout.independant && t.target || e.value.style.layout.target;
|
|
120
|
-
}
|
|
121
|
-
const K = M;
|
|
122
|
-
function Q(t, s) {
|
|
123
|
-
K("selectDatapoint", { datapoint: t, index: s });
|
|
124
|
-
}
|
|
125
|
-
return (t, s) => (u(), c("div", {
|
|
126
|
-
class: "vue-ui-sparkbar",
|
|
127
|
-
style: p({
|
|
128
|
-
width: "100%",
|
|
129
|
-
fontFamily: e.value.style.fontFamily,
|
|
130
|
-
background: a.backgroundOpacity !== null ? o($)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
|
|
131
|
-
})
|
|
132
|
-
}, [
|
|
133
|
-
t.$slots.title ? _(t.$slots, "title", ee(O({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : v("", !0),
|
|
134
|
-
!t.$slots.title && e.value.style.title.text ? (u(), c("div", {
|
|
135
|
-
key: 1,
|
|
136
|
-
class: "vue-ui-sparkbar-title-container",
|
|
137
|
-
style: p({
|
|
138
|
-
background: e.value.style.title.backgroundColor,
|
|
139
|
-
margin: e.value.style.title.margin,
|
|
140
|
-
textAlign: e.value.style.title.textAlign
|
|
141
|
-
})
|
|
142
|
-
}, [
|
|
143
|
-
d("div", {
|
|
144
|
-
class: "vue-ui-sparkbar-title",
|
|
145
|
-
style: p({
|
|
146
|
-
fontSize: e.value.style.title.fontSize + "px",
|
|
147
|
-
color: e.value.style.title.color,
|
|
148
|
-
fontWeight: e.value.style.title.bold ? "bold" : "normal"
|
|
149
|
-
})
|
|
150
|
-
}, f(e.value.style.title.text), 5),
|
|
151
|
-
e.value.style.title.subtitle.text ? (u(), c("div", {
|
|
152
|
-
key: 0,
|
|
153
|
-
class: "vue-ui-sparkbar-subtitle",
|
|
154
|
-
style: p({
|
|
155
|
-
fontSize: e.value.style.title.subtitle.fontSize + "px",
|
|
156
|
-
color: e.value.style.title.subtitle.color,
|
|
157
|
-
fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
158
|
-
})
|
|
159
|
-
}, f(e.value.style.title.subtitle.text), 5)) : v("", !0)
|
|
160
|
-
], 4)) : v("", !0),
|
|
161
|
-
(u(!0), c(T, null, te(X.value, (l, i) => (u(), c(T, null, [
|
|
162
|
-
S.value ? (u(), c("div", {
|
|
163
|
-
key: 0,
|
|
164
|
-
style: p(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${C.dataset.length > 0 && i !== C.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
|
|
165
|
-
onClick: () => Q(l, i)
|
|
166
|
-
}, [
|
|
167
|
-
_(t.$slots, "data-label", O({ ref_for: !0 }, { bar: {
|
|
168
|
-
...l,
|
|
169
|
-
target: m(l),
|
|
170
|
-
valueLabel: o(b)(
|
|
171
|
-
l.formatter,
|
|
172
|
-
l.value,
|
|
173
|
-
o(w)({
|
|
174
|
-
p: l.prefix || "",
|
|
175
|
-
v: l.value,
|
|
176
|
-
s: l.suffix || "",
|
|
177
|
-
r: l.rounding || 0
|
|
178
|
-
}),
|
|
179
|
-
{ datapoint: l, seriesIndex: i }
|
|
180
|
-
),
|
|
181
|
-
targetLabel: o(b)(
|
|
182
|
-
l.formatter,
|
|
183
|
-
m(l),
|
|
184
|
-
o(w)({
|
|
185
|
-
p: l.prefix || "",
|
|
186
|
-
v: m(l),
|
|
187
|
-
s: l.suffix || "",
|
|
188
|
-
r: l.rounding || 0
|
|
189
|
-
}),
|
|
190
|
-
{ datapoint: l, seriesIndex: i }
|
|
191
|
-
)
|
|
192
|
-
} })),
|
|
193
|
-
t.$slots["data-label"] ? v("", !0) : (u(), c("div", {
|
|
194
|
-
key: 0,
|
|
195
|
-
style: p({
|
|
196
|
-
width: e.value.style.labels.name.width,
|
|
197
|
-
color: e.value.style.labels.name.color,
|
|
198
|
-
fontSize: e.value.style.labels.fontSize + "px",
|
|
199
|
-
fontWeight: e.value.style.labels.name.bold ? "bold" : "normal",
|
|
200
|
-
textAlign: ["left", "right"].includes(e.value.style.labels.name.position) || ["top", "top-left"].includes(e.value.style.labels.name.position) ? "left" : e.value.style.labels.name.position === "top-center" ? "center" : "right"
|
|
201
|
-
})
|
|
202
|
-
}, [
|
|
203
|
-
d("span", null, f(l.name), 1),
|
|
204
|
-
e.value.style.labels.value.show ? (u(), c("span", {
|
|
205
|
-
key: 0,
|
|
206
|
-
style: p(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
|
|
207
|
-
}, ": " + f(o(b)(
|
|
208
|
-
l.formatter,
|
|
209
|
-
l.value,
|
|
210
|
-
o(w)({
|
|
211
|
-
p: l.prefix || "",
|
|
212
|
-
v: l.value,
|
|
213
|
-
s: l.suffix || "",
|
|
214
|
-
r: l.rounding || 0
|
|
215
|
-
}),
|
|
216
|
-
{ datapoint: l, seriesIndex: i }
|
|
217
|
-
)), 5)) : v("", !0),
|
|
218
|
-
e.value.style.layout.showTargetValue ? (u(), c("span", fe, f(" " + e.value.style.layout.targetValueText) + " " + f(o(b)(
|
|
219
|
-
l.formatter,
|
|
220
|
-
m(l),
|
|
221
|
-
o(w)({
|
|
222
|
-
p: l.prefix || "",
|
|
223
|
-
v: m(l),
|
|
224
|
-
s: l.suffix || "",
|
|
225
|
-
r: l.rounding || 0
|
|
226
|
-
}),
|
|
227
|
-
{ datapoint: l, seriesIndex: i }
|
|
228
|
-
)), 1)) : v("", !0)
|
|
229
|
-
], 4)),
|
|
230
|
-
(u(), c("svg", {
|
|
231
|
-
xmlns: o(ve),
|
|
232
|
-
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
233
|
-
width: "100%"
|
|
234
|
-
}, [
|
|
235
|
-
le(o(U)),
|
|
236
|
-
d("defs", null, [
|
|
237
|
-
d("linearGradient", {
|
|
238
|
-
x1: "0%",
|
|
239
|
-
y1: "0%",
|
|
240
|
-
x2: "100%",
|
|
241
|
-
y2: "0%",
|
|
242
|
-
id: `sparkbar_gradient_${i}_${A.value}`
|
|
243
|
-
}, [
|
|
244
|
-
d("stop", {
|
|
245
|
-
offset: "0%",
|
|
246
|
-
"stop-color": o($)(o(de)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
|
|
247
|
-
}, null, 8, ge),
|
|
248
|
-
d("stop", {
|
|
249
|
-
offset: "100%",
|
|
250
|
-
"stop-color": l.color
|
|
251
|
-
}, null, 8, he)
|
|
252
|
-
], 8, me)
|
|
253
|
-
]),
|
|
254
|
-
d("rect", {
|
|
255
|
-
height: r.value.height,
|
|
256
|
-
width: r.value.width,
|
|
257
|
-
x: 0,
|
|
258
|
-
y: 0,
|
|
259
|
-
fill: o($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
|
|
260
|
-
rx: r.value.height / 2
|
|
261
|
-
}, null, 8, ke),
|
|
262
|
-
d("rect", {
|
|
263
|
-
height: r.value.height,
|
|
264
|
-
width: r.value.width * I(l),
|
|
265
|
-
x: 0,
|
|
266
|
-
y: 0,
|
|
267
|
-
fill: e.value.style.bar.gradient.underlayerColor,
|
|
268
|
-
rx: r.value.height / 2
|
|
269
|
-
}, null, 8, xe),
|
|
270
|
-
d("rect", {
|
|
271
|
-
height: r.value.height,
|
|
272
|
-
width: r.value.width * I(l),
|
|
273
|
-
x: 0,
|
|
274
|
-
y: 0,
|
|
275
|
-
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${i}_${A.value})` : l.color,
|
|
276
|
-
rx: r.value.height / 2
|
|
277
|
-
}, null, 8, be)
|
|
278
|
-
], 8, ye))
|
|
279
|
-
], 12, pe)) : v("", !0)
|
|
280
|
-
], 64))), 256)),
|
|
281
|
-
t.$slots.source ? (u(), c("div", we, [
|
|
282
|
-
_(t.$slots, "source")
|
|
283
|
-
], 512)) : v("", !0),
|
|
284
|
-
S.value ? v("", !0) : (u(), Z(o(j), {
|
|
285
|
-
key: 3,
|
|
286
|
-
config: {
|
|
287
|
-
type: "sparkbar",
|
|
288
|
-
style: {
|
|
289
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
290
|
-
sparkbar: {
|
|
291
|
-
color: "#CCCCCC"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}, null, 8, ["config"]))
|
|
296
|
-
], 4));
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
export {
|
|
300
|
-
Se as default
|
|
301
|
-
};
|