vue-data-ui 3.0.0-next.59 → 3.0.0-next.60
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-Cy3DXLKh.js → Arrow-Dt0ZxTK2.js} +1 -1
- package/dist/{BaseDraggableDialog-BMX7Vs05.js → BaseDraggableDialog-Bl-2tw3H.js} +2 -2
- package/dist/{BaseIcon-CY5cKZco.js → BaseIcon-C3ljqn8J.js} +1 -1
- package/dist/{ColorPicker-B6qnvRPP.js → ColorPicker-0d0whOB3.js} +2 -2
- package/dist/{DataTable-0vMEKXyc.js → DataTable-C_tJHvMd.js} +2 -2
- package/dist/{Legend-CxcYd88T.js → Legend-VD0VB7l7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B9VyAH8V.js → NonSvgPenAndPaper-DQsHc_AG.js} +3 -3
- package/dist/{PackageVersion-Drk6yOgG.js → PackageVersion-5S8ajCUS.js} +1 -1
- package/dist/{PenAndPaper-BSBB3lDR.js → PenAndPaper-D6wazxlT.js} +3 -3
- package/dist/{Shape--XKRrfTm.js → Shape-DDSX29LV.js} +1 -1
- package/dist/{Slicer-DCDucxqY.js → Slicer-D3SbIarX.js} +2 -2
- package/dist/{SparkTooltip-CjvxSe5t.js → SparkTooltip-BCdP3VDl.js} +1 -1
- package/dist/{Title-D0LcJx9c.js → Title-DEKAfzRX.js} +1 -1
- package/dist/{Tooltip-A0rXVeCS.js → Tooltip-DJlC-n25.js} +1 -1
- package/dist/{UserOptions-B6pdFvnh.js → UserOptions-D2G7II3G.js} +2 -2
- package/dist/{dom-to-png-soMc4J-O.js → dom-to-png-Y0tASTWQ.js} +1 -1
- package/dist/{img-XQW68ydk.js → img-ChLGv8nO.js} +1 -1
- package/dist/{index-3dwsQVpJ.js → index-BLtc1AIS.js} +14 -1
- package/dist/{pdf-uuJ9bA-G.js → pdf-DNiq-xsc.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -0
- package/dist/types/vue-data-ui.d.ts +20 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BD2VwIW8.js → useAutoSizeLabelsInsideViewbox-BJDcwsoB.js} +1 -1
- package/dist/{useNestedProp-gsSGb_lz.js → useNestedProp-DExlTpuj.js} +1 -1
- package/dist/{usePrinter-eX-mHqpH.js → usePrinter-fqbzwh0l.js} +2 -2
- package/dist/{vue-data-ui-vW4TPl3U.js → vue-data-ui-B8bRwUEL.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-f6DERIfX.js → vue-ui-3d-bar-Dddx5kJW.js} +6 -6
- package/dist/{vue-ui-accordion-B8nt3TxA.js → vue-ui-accordion-EMAj3Ykx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CMTrjr66.js → vue-ui-age-pyramid-CMzKOGfv.js} +6 -6
- package/dist/{vue-ui-annotator-DQ7W33jU.js → vue-ui-annotator-BQxXVdZW.js} +2 -2
- package/dist/{vue-ui-bullet-DZpiGlT4.js → vue-ui-bullet-DIie_6-T.js} +7 -7
- package/dist/{vue-ui-candlestick-D_-OKcLB.js → vue-ui-candlestick-DU796IGE.js} +7 -7
- package/dist/{vue-ui-carousel-table-Kc13xumV.js → vue-ui-carousel-table-xDItqzuw.js} +4 -4
- package/dist/{vue-ui-chestnut-BzDu3Rn6.js → vue-ui-chestnut-DnQ494SU.js} +5 -5
- package/dist/{vue-ui-chord-U669mk50.js → vue-ui-chord-DTs9gQ-R.js} +8 -8
- package/dist/{vue-ui-circle-pack-xw5KQZU-.js → vue-ui-circle-pack-D73gxFJW.js} +6 -6
- package/dist/{vue-ui-cursor-Ce7aQLHI.js → vue-ui-cursor-CNXTFeSs.js} +2 -2
- package/dist/{vue-ui-dashboard-y82bZlmD.js → vue-ui-dashboard-Duph5Yta.js} +62 -62
- package/dist/{vue-ui-digits-KEMPMv_F.js → vue-ui-digits-D7qOSGZ-.js} +2 -2
- package/dist/{vue-ui-donut-DE6uXbjC.js → vue-ui-donut-EfxITdHJ.js} +8 -8
- package/dist/{vue-ui-donut-evolution-CnqbDlWb.js → vue-ui-donut-evolution-H6nfW_kx.js} +8 -8
- package/dist/{vue-ui-dumbbell-BxQn3t4G.js → vue-ui-dumbbell-DCUR8kl_.js} +7 -7
- package/dist/{vue-ui-flow-94-MPmDY.js → vue-ui-flow-DUENWmgc.js} +7 -7
- package/dist/{vue-ui-funnel-CwlWwL3n.js → vue-ui-funnel-BSGUxWhW.js} +6 -6
- package/dist/{vue-ui-galaxy-CNf7tCih.js → vue-ui-galaxy-D8PBQfbb.js} +5 -5
- package/dist/{vue-ui-gauge-Cew9UDzz.js → vue-ui-gauge-C8v8wKJO.js} +7 -7
- package/dist/{vue-ui-gizmo--xaQAnQu.js → vue-ui-gizmo-DmguslRh.js} +3 -3
- package/dist/{vue-ui-heatmap-D6cGvObH.js → vue-ui-heatmap-BM5Gfdzz.js} +7 -7
- package/dist/{vue-ui-history-plot-DW5MxS_b.js → vue-ui-history-plot-CF6SlpwK.js} +7 -7
- package/dist/{vue-ui-kpi-BatAZ4-E.js → vue-ui-kpi-BCyX-Zu-.js} +3 -3
- package/dist/{vue-ui-mini-loader-GPIqVVO1.js → vue-ui-mini-loader-ByMff4PK.js} +2 -2
- package/dist/{vue-ui-molecule-k7qyYVdZ.js → vue-ui-molecule-Cxnf2xDy.js} +5 -5
- package/dist/{vue-ui-mood-radar-BabL_H73.js → vue-ui-mood-radar-DEfJWXE7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-WKD01a1O.js → vue-ui-nested-donuts-Bt7Pw9l0.js} +9 -9
- package/dist/{vue-ui-onion-BkyATCmO.js → vue-ui-onion-Bk3KL1Nk.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-jm-azRXI.js → vue-ui-parallel-coordinate-plot-BpKRlOYy.js} +8 -8
- package/dist/{vue-ui-quadrant-DBd4oVbT.js → vue-ui-quadrant-D1dgOAp2.js} +8 -8
- package/dist/{vue-ui-quick-chart-CwBj1P_V.js → vue-ui-quick-chart-_I6OrH-J.js} +6 -6
- package/dist/{vue-ui-radar-CSv_3sN3.js → vue-ui-radar-BWnhxayf.js} +7 -7
- package/dist/{vue-ui-rating-C6KezTXl.js → vue-ui-rating-I08lL1Nb.js} +2 -2
- package/dist/{vue-ui-relation-circle-DUzsyxP3.js → vue-ui-relation-circle-CMF5FSha.js} +6 -6
- package/dist/{vue-ui-ridgeline-BCHnAtYx.js → vue-ui-ridgeline-prYrXNYF.js} +8 -8
- package/dist/{vue-ui-rings-I6pUXmJJ.js → vue-ui-rings-DmbUIw9S.js} +8 -8
- package/dist/{vue-ui-scatter-CIbgIR2N.js → vue-ui-scatter-srTVLcUK.js} +8 -8
- package/dist/{vue-ui-skeleton-DfTWTIRD.js → vue-ui-skeleton-FanSnKr8.js} +3 -3
- package/dist/{vue-ui-smiley-D-jjuB_S.js → vue-ui-smiley-CWA0Y6wM.js} +2 -2
- package/dist/{vue-ui-spark-trend-CTEVFB0f.js → vue-ui-spark-trend-EiEzMoPj.js} +3 -3
- package/dist/{vue-ui-sparkbar-BmrXpZdR.js → vue-ui-sparkbar-CCe0U_o0.js} +3 -3
- package/dist/{vue-ui-sparkgauge-EkEm4AS9.js → vue-ui-sparkgauge-Cdcirik_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CvzKB01S.js → vue-ui-sparkhistogram-CEj9qz9m.js} +4 -4
- package/dist/{vue-ui-sparkline-B76XhHl5.js → vue-ui-sparkline-B2-YztKx.js} +3 -3
- package/dist/vue-ui-sparkstackbar-BGMtc_HC.js +421 -0
- package/dist/{vue-ui-stackbar-D1cu4co4.js → vue-ui-stackbar-DrKaioRS.js} +9 -9
- package/dist/{vue-ui-strip-plot-Ch1NtN_S.js → vue-ui-strip-plot-C4qWoDEh.js} +7 -7
- package/dist/{vue-ui-table-DCJDWKjJ.js → vue-ui-table-CXqyTj_Z.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CNOFepne.js → vue-ui-table-heatmap-BZTn3qnM.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B4caHVFQ.js → vue-ui-table-sparkline-CIBdN_KF.js} +4 -4
- package/dist/{vue-ui-thermometer-ApFwWbAJ.js → vue-ui-thermometer-DPIpWKUI.js} +7 -7
- package/dist/{vue-ui-timer-CXFlnQWL.js → vue-ui-timer-Cha-Gb1x.js} +5 -5
- package/dist/{vue-ui-tiremarks-Co2nDZn0.js → vue-ui-tiremarks-B4SjQyS7.js} +6 -6
- package/dist/{vue-ui-treemap-CPqRKKv9.js → vue-ui-treemap-1twI_ag-.js} +8 -8
- package/dist/{vue-ui-vertical-bar-D6PiL6Hm.js → vue-ui-vertical-bar-C31Jqkbw.js} +9 -9
- package/dist/{vue-ui-waffle-DTf2hN2Q.js → vue-ui-waffle-DkZykFPK.js} +8 -8
- package/dist/{vue-ui-wheel-CO06fgiJ.js → vue-ui-wheel-CYOrBHBD.js} +6 -6
- package/dist/{vue-ui-word-cloud-B13xfkXT.js → vue-ui-word-cloud-Clyg0CRZ.js} +6 -6
- package/dist/{vue-ui-world-C5S4zyBs.js → vue-ui-world-BYgMbS-e.js} +6 -6
- package/dist/{vue-ui-xy-DQTFeS0H.js → vue-ui-xy-BMszd4wZ.js} +9 -9
- package/dist/{vue-ui-xy-canvas-CUpEoeSY.js → vue-ui-xy-canvas-DwXvZ311.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BJ-rHvP2.js +0 -383
|
@@ -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-BLtc1AIS.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-fqbzwh0l.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-DExlTpuj.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-ChLGv8nO.js";
|
|
10
|
+
import Ao from "./Title-DEKAfzRX.js";
|
|
11
|
+
import { S as Co } from "./Slicer-D3SbIarX.js";
|
|
12
|
+
import { _ as $t } from "./Shape-DDSX29LV.js";
|
|
13
|
+
import zo from "./BaseIcon-C3ljqn8J.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-C_tJHvMd.js")), ie = yl(() => import("./Tooltip-DJlC-n25.js")), re = yl(() => import("./UserOptions-D2G7II3G.js")), Sl = yl(() => import("./BaseIcon-C3ljqn8J.js")), ql = yl(() => import("./vue-ui-table-sparkline-CIBdN_KF.js")), Pl = yl(() => import("./vue-ui-accordion-EMAj3Ykx.js")), $l = yl(() => import("./PackageVersion-5S8ajCUS.js")), _l = yl(() => import("./PenAndPaper-D6wazxlT.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-BLtc1AIS.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-DExlTpuj.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-fqbzwh0l.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-VD0VB7l7.js";
|
|
9
|
+
import xl from "./Title-DEKAfzRX.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-D3SbIarX.js";
|
|
11
11
|
import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
-
import Cl from "./img-
|
|
12
|
+
import Cl from "./img-ChLGv8nO.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-EMAj3Ykx.js")), pa = K(() => import("./DataTable-C_tJHvMd.js")), ma = K(() => import("./NonSvgPenAndPaper-DQsHc_AG.js")), ba = K(() => import("./vue-ui-skeleton-FanSnKr8.js")), xa = K(() => import("./Tooltip-DJlC-n25.js")), La = K(() => import("./UserOptions-D2G7II3G.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,383 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, useSlots as pe, onMounted as G, computed as k, ref as d, watch as q, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ge, createVNode as H, createElementVNode as p, toDisplayString as C, unref as m, Fragment as x, renderList as $, normalizeClass as A, withCtx as X, renderSlot as T, normalizeProps as J, guardReactiveProps as K } from "vue";
|
|
2
|
-
import { u as he, c as Q, a as fe, p as i, b as ye, e as D, d as me, o as ke, f as Z, g as be, i as U, X as _e, s as we, x as Ce, k as ee, y as xe } from "./index-3dwsQVpJ.js";
|
|
3
|
-
import { u as te } from "./useNestedProp-gsSGb_lz.js";
|
|
4
|
-
import { u as $e } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
-
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const Fe = ["xmlns", "viewBox"], Pe = ["id"], ze = ["stop-color"], Ae = ["stop-color"], De = ["stop-color"], Ne = {
|
|
7
|
-
id: "stackPill",
|
|
8
|
-
clipPathUnits: "objectBoundingBox"
|
|
9
|
-
}, Le = ["fill"], Be = {
|
|
10
|
-
key: 0,
|
|
11
|
-
"clip-path": "url(#stackPill)"
|
|
12
|
-
}, Oe = ["x", "width", "height", "fill"], Ve = ["x", "width", "height", "fill", "stroke"], Te = ["onClick", "x", "width", "height", "onMouseenter"], Ue = ["width", "height", "rx"], je = ["onClick"], Ee = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Me = ["height", "width"], Re = ["fill"], Ie = {
|
|
13
|
-
key: 4,
|
|
14
|
-
ref: "source",
|
|
15
|
-
dir: "auto"
|
|
16
|
-
}, We = {
|
|
17
|
-
__name: "vue-ui-sparkstackbar",
|
|
18
|
-
props: {
|
|
19
|
-
config: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default() {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
dataset: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["selectDatapoint"],
|
|
33
|
-
setup(le, { emit: oe }) {
|
|
34
|
-
const ae = V(() => import("./PackageVersion-Drk6yOgG.js")), se = V(() => import("./vue-ui-skeleton-DfTWTIRD.js")), re = V(() => import("./Tooltip-A0rXVeCS.js")), { vue_ui_sparkstackbar: ne } = he(), u = le, ue = pe();
|
|
35
|
-
G(() => {
|
|
36
|
-
ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
37
|
-
});
|
|
38
|
-
const j = k(() => !!u.dataset && u.dataset.length), E = d(null), M = d(Q()), N = d(!1), L = d(""), e = k({
|
|
39
|
-
get: () => R(),
|
|
40
|
-
set: (t) => t
|
|
41
|
-
}), { svgRef: ie } = $e({ config: e.value.style.title });
|
|
42
|
-
function R() {
|
|
43
|
-
const t = te({
|
|
44
|
-
userConfig: u.config,
|
|
45
|
-
defaultConfig: ne
|
|
46
|
-
});
|
|
47
|
-
return t.theme ? {
|
|
48
|
-
...te({
|
|
49
|
-
userConfig: ye.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
50
|
-
defaultConfig: t
|
|
51
|
-
}),
|
|
52
|
-
customPalette: fe[t.theme] || i
|
|
53
|
-
} : t;
|
|
54
|
-
}
|
|
55
|
-
q(() => u.config, (t) => {
|
|
56
|
-
e.value = R(), I();
|
|
57
|
-
}, { deep: !0 }), q(() => u.dataset, (t) => {
|
|
58
|
-
b.value = u.dataset.map((a, l) => ({
|
|
59
|
-
...a,
|
|
60
|
-
color: a.color ? D(a.color) : S.value[l] || i[l] || i[l % i.length]
|
|
61
|
-
}));
|
|
62
|
-
}, { deep: !0 });
|
|
63
|
-
const S = k(() => me(e.value.customPalette)), b = d(u.dataset.map((t, a) => ({
|
|
64
|
-
...t,
|
|
65
|
-
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
66
|
-
color: t.color ? D(t.color) : S.value[a] || i[a] || i[a % i.length]
|
|
67
|
-
}))), w = d(!0);
|
|
68
|
-
G(() => {
|
|
69
|
-
if (I(), e.value.style.animation.show) {
|
|
70
|
-
let f = function() {
|
|
71
|
-
o += l / t, o < l ? (b.value = b.value.map((n, c) => ({
|
|
72
|
-
...n,
|
|
73
|
-
value: n.value += a[c],
|
|
74
|
-
color: n.color ? D(n.color) : S.value[c] || i[c] || i[c % i.length]
|
|
75
|
-
})), requestAnimationFrame(f)) : (w.value = !1, b.value = u.dataset.map((n, c) => ({
|
|
76
|
-
...n,
|
|
77
|
-
value: n.value || 0,
|
|
78
|
-
color: n.color ? D(n.color) : S.value[c] || i[c] || i[c % i.length],
|
|
79
|
-
id: Q()
|
|
80
|
-
})));
|
|
81
|
-
};
|
|
82
|
-
const t = e.value.style.animation.animationFrames, a = u.dataset.map((n, c) => n.value / t), l = u.dataset.map((n) => n.value || 0).reduce((n, c) => n + c, 0);
|
|
83
|
-
let o = 0;
|
|
84
|
-
w.value = !0, f();
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
function I() {
|
|
88
|
-
ke(u.dataset) ? Z({
|
|
89
|
-
componentName: "VueUiSparkStackbar",
|
|
90
|
-
type: "dataset"
|
|
91
|
-
}) : u.dataset.forEach((t, a) => {
|
|
92
|
-
be({
|
|
93
|
-
datasetObject: t,
|
|
94
|
-
requiredAttributes: ["name", "value"]
|
|
95
|
-
}).forEach((l) => {
|
|
96
|
-
Z({
|
|
97
|
-
componentName: "VueUiSparkStackbar",
|
|
98
|
-
type: "datasetSerieAttribute",
|
|
99
|
-
property: l,
|
|
100
|
-
index: a
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
const g = d({
|
|
106
|
-
width: 500,
|
|
107
|
-
height: 16
|
|
108
|
-
}), h = d([]), W = k(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !h.value.includes(a)).reduce((t, a) => t + a, 0)), F = k(() => b.value.map((t, a) => {
|
|
109
|
-
const l = t.value || 0, o = l / W.value, f = isNaN(o) ? 0 : o, n = f * g.value.width;
|
|
110
|
-
return {
|
|
111
|
-
...t,
|
|
112
|
-
value: l,
|
|
113
|
-
proportion: f,
|
|
114
|
-
width: n,
|
|
115
|
-
proportionLabel: U({
|
|
116
|
-
v: f * 100,
|
|
117
|
-
s: "%",
|
|
118
|
-
r: e.value.style.legend.percentage.rounding
|
|
119
|
-
})
|
|
120
|
-
};
|
|
121
|
-
})), B = k(() => F.value.filter((t, a) => !h.value.includes(a)));
|
|
122
|
-
function ce(t) {
|
|
123
|
-
h.value.includes(t) ? h.value = h.value.filter((a) => a !== t) : h.value.length < b.value.length - 1 && h.value.push(t);
|
|
124
|
-
}
|
|
125
|
-
const P = k(() => {
|
|
126
|
-
let t = 0;
|
|
127
|
-
const a = [];
|
|
128
|
-
for (let l = 0; l < B.value.length; l += 1)
|
|
129
|
-
a.push({
|
|
130
|
-
...B.value[l],
|
|
131
|
-
start: t
|
|
132
|
-
}), t += B.value[l].width;
|
|
133
|
-
return a;
|
|
134
|
-
}), de = oe;
|
|
135
|
-
function Y(t, a) {
|
|
136
|
-
de("selectDatapoint", { datapoint: t, index: a });
|
|
137
|
-
}
|
|
138
|
-
const O = d(null), z = d(!1), _ = d(null);
|
|
139
|
-
function ve({ datapoint: t, seriesIndex: a }) {
|
|
140
|
-
if (!e.value.style.tooltip.show)
|
|
141
|
-
return;
|
|
142
|
-
O.value = { datapoint: t, seriesIndex: a, config: e.value, series: F.value }, N.value = !0, _.value = a;
|
|
143
|
-
const l = e.value.style.tooltip.customFormat;
|
|
144
|
-
if (xe(l))
|
|
145
|
-
try {
|
|
146
|
-
const o = l({
|
|
147
|
-
seriesIndex: a,
|
|
148
|
-
datapoint: t,
|
|
149
|
-
series: F.value,
|
|
150
|
-
config: e.value
|
|
151
|
-
});
|
|
152
|
-
typeof o == "string" && (L.value = o, z.value = !0);
|
|
153
|
-
} catch {
|
|
154
|
-
console.warn("Custom format cannot be applied."), z.value = !1;
|
|
155
|
-
}
|
|
156
|
-
if (!z.value) {
|
|
157
|
-
let o = "";
|
|
158
|
-
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, o += `<b>${t.proportionLabel}</b>`, o += `<span>(${ee(
|
|
159
|
-
e.value.style.legend.value.formatter,
|
|
160
|
-
t.value,
|
|
161
|
-
U({
|
|
162
|
-
p: e.value.style.legend.value.prefix,
|
|
163
|
-
v: t.value,
|
|
164
|
-
s: e.value.style.legend.value.suffix,
|
|
165
|
-
r: e.value.style.legend.value.rounding
|
|
166
|
-
}),
|
|
167
|
-
{
|
|
168
|
-
datapoint: t,
|
|
169
|
-
seriesIndex: a
|
|
170
|
-
}
|
|
171
|
-
)})</span>`, L.value = `<div>${o}</div>`;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return (t, a) => (s(), r("div", {
|
|
175
|
-
class: "vue-ui-spark-stackbar",
|
|
176
|
-
ref_key: "sparkstackbarChart",
|
|
177
|
-
ref: E,
|
|
178
|
-
style: v(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
179
|
-
}, [
|
|
180
|
-
e.value.style.title.text ? (s(), r("div", {
|
|
181
|
-
key: 0,
|
|
182
|
-
style: v(`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}`)
|
|
183
|
-
}, [
|
|
184
|
-
p("div", {
|
|
185
|
-
class: "atom-title",
|
|
186
|
-
style: v(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
187
|
-
}, C(e.value.style.title.text), 5),
|
|
188
|
-
e.value.style.title.subtitle.text ? (s(), r("div", {
|
|
189
|
-
key: 0,
|
|
190
|
-
class: "atom-subtitle",
|
|
191
|
-
style: v(`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"}`)
|
|
192
|
-
}, C(e.value.style.title.subtitle.text), 5)) : y("", !0)
|
|
193
|
-
], 4)) : y("", !0),
|
|
194
|
-
j.value ? (s(), r("svg", {
|
|
195
|
-
key: 1,
|
|
196
|
-
ref_key: "svgRef",
|
|
197
|
-
ref: ie,
|
|
198
|
-
xmlns: m(_e),
|
|
199
|
-
width: "100%",
|
|
200
|
-
viewBox: `0 0 ${g.value.width} ${g.value.height}`
|
|
201
|
-
}, [
|
|
202
|
-
H(m(ae)),
|
|
203
|
-
p("defs", null, [
|
|
204
|
-
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("linearGradient", {
|
|
205
|
-
key: `stack_gradient_${o}`,
|
|
206
|
-
gradientTransform: "rotate(90)",
|
|
207
|
-
id: `stack_gradient_${o}_${M.value}`
|
|
208
|
-
}, [
|
|
209
|
-
p("stop", {
|
|
210
|
-
offset: "0%",
|
|
211
|
-
"stop-color": l.color
|
|
212
|
-
}, null, 8, ze),
|
|
213
|
-
p("stop", {
|
|
214
|
-
offset: "50%",
|
|
215
|
-
"stop-color": m(we)(m(Ce)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
216
|
-
}, null, 8, Ae),
|
|
217
|
-
p("stop", {
|
|
218
|
-
offset: "100%",
|
|
219
|
-
"stop-color": l.color
|
|
220
|
-
}, null, 8, De)
|
|
221
|
-
], 8, Pe))), 128)),
|
|
222
|
-
p("clipPath", Ne, [
|
|
223
|
-
p("rect", {
|
|
224
|
-
x: "0.005",
|
|
225
|
-
y: "-2",
|
|
226
|
-
width: "0.99",
|
|
227
|
-
height: "5",
|
|
228
|
-
rx: "3",
|
|
229
|
-
ry: "3",
|
|
230
|
-
fill: e.value.style.backgroundColor
|
|
231
|
-
}, null, 8, Le)
|
|
232
|
-
])
|
|
233
|
-
]),
|
|
234
|
-
W.value > 0 ? (s(), r("g", Be, [
|
|
235
|
-
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
236
|
-
key: `stack_underlayer_${o}`,
|
|
237
|
-
x: l.start,
|
|
238
|
-
y: 0,
|
|
239
|
-
width: l.width,
|
|
240
|
-
height: g.value.height,
|
|
241
|
-
fill: e.value.style.bar.gradient.underlayerColor,
|
|
242
|
-
class: A({ animated: !w.value }),
|
|
243
|
-
style: v({
|
|
244
|
-
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
245
|
-
})
|
|
246
|
-
}, null, 14, Oe))), 128)),
|
|
247
|
-
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
248
|
-
key: `stack_${o}`,
|
|
249
|
-
x: l.start,
|
|
250
|
-
y: 0,
|
|
251
|
-
width: l.width,
|
|
252
|
-
height: g.value.height,
|
|
253
|
-
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${M.value})` : l.color,
|
|
254
|
-
stroke: e.value.style.backgroundColor,
|
|
255
|
-
"stroke-linecap": "round",
|
|
256
|
-
class: A({ animated: !w.value }),
|
|
257
|
-
style: v({
|
|
258
|
-
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
259
|
-
})
|
|
260
|
-
}, null, 14, Ve))), 128)),
|
|
261
|
-
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
262
|
-
key: `stack_trap_${o}`,
|
|
263
|
-
onClick: () => Y(l, o),
|
|
264
|
-
x: l.start,
|
|
265
|
-
y: 0,
|
|
266
|
-
width: l.width,
|
|
267
|
-
height: g.value.height,
|
|
268
|
-
fill: "transparent",
|
|
269
|
-
stroke: "none",
|
|
270
|
-
class: A({ animated: !w.value }),
|
|
271
|
-
onMouseenter: () => ve({ datapoint: l, seriesIndex: o }),
|
|
272
|
-
onMouseleave: a[0] || (a[0] = (f) => {
|
|
273
|
-
N.value = !1, _.value = null;
|
|
274
|
-
})
|
|
275
|
-
}, null, 42, Te))), 128))
|
|
276
|
-
])) : (s(), r("rect", {
|
|
277
|
-
key: 1,
|
|
278
|
-
x: 2,
|
|
279
|
-
y: 1,
|
|
280
|
-
width: g.value.width - 4,
|
|
281
|
-
height: g.value.height - 2,
|
|
282
|
-
stroke: "#CCCCCC",
|
|
283
|
-
"stroke-width": "2",
|
|
284
|
-
fill: "transparent",
|
|
285
|
-
rx: (g.value.height - 4) / 2
|
|
286
|
-
}, null, 8, Ue))
|
|
287
|
-
], 8, Fe)) : y("", !0),
|
|
288
|
-
j.value ? y("", !0) : (s(), ge(m(se), {
|
|
289
|
-
key: 2,
|
|
290
|
-
config: {
|
|
291
|
-
type: "sparkStackbar",
|
|
292
|
-
style: {
|
|
293
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
294
|
-
sparkStackbar: {
|
|
295
|
-
color: "#CCCCCC"
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}, null, 8, ["config"])),
|
|
300
|
-
e.value.style.legend.show ? (s(), r("div", {
|
|
301
|
-
key: 3,
|
|
302
|
-
style: v(`background:transparent;margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
303
|
-
class: "vue-ui-sparkstackbar-legend"
|
|
304
|
-
}, [
|
|
305
|
-
(s(!0), r(x, null, $(F.value, (l, o) => (s(), r("div", {
|
|
306
|
-
style: v(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
307
|
-
class: A({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": h.value.includes(o) }),
|
|
308
|
-
onClick: (f) => {
|
|
309
|
-
ce(o), Y(l, o);
|
|
310
|
-
}
|
|
311
|
-
}, [
|
|
312
|
-
p("div", Ee, [
|
|
313
|
-
(s(), r("svg", {
|
|
314
|
-
height: `${e.value.style.legend.fontSize}px`,
|
|
315
|
-
width: `${e.value.style.legend.fontSize}px`,
|
|
316
|
-
viewBox: "0 0 10 10"
|
|
317
|
-
}, [
|
|
318
|
-
p("circle", {
|
|
319
|
-
cx: 5,
|
|
320
|
-
cy: 5,
|
|
321
|
-
r: 5,
|
|
322
|
-
fill: l.color
|
|
323
|
-
}, null, 8, Re)
|
|
324
|
-
], 8, Me)),
|
|
325
|
-
p("span", {
|
|
326
|
-
style: v(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
327
|
-
}, C(l.name), 5),
|
|
328
|
-
e.value.style.legend.percentage.show ? (s(), r("span", {
|
|
329
|
-
key: 0,
|
|
330
|
-
style: v(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
331
|
-
}, C(h.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
|
|
332
|
-
e.value.style.legend.value.show ? (s(), r("span", {
|
|
333
|
-
key: 1,
|
|
334
|
-
style: v(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
335
|
-
}, " (" + C(m(ee)(
|
|
336
|
-
e.value.style.legend.value.formatter,
|
|
337
|
-
l.value,
|
|
338
|
-
m(U)({
|
|
339
|
-
p: e.value.style.legend.value.prefix,
|
|
340
|
-
v: l.value,
|
|
341
|
-
s: e.value.style.legend.value.suffix,
|
|
342
|
-
r: e.value.style.legend.value.rounding
|
|
343
|
-
}),
|
|
344
|
-
{ datapoint: l, seriesIndex: o }
|
|
345
|
-
)) + ") ", 5)) : y("", !0)
|
|
346
|
-
])
|
|
347
|
-
], 14, je))), 256))
|
|
348
|
-
], 4)) : y("", !0),
|
|
349
|
-
H(m(re), {
|
|
350
|
-
show: N.value && e.value.style.tooltip.show,
|
|
351
|
-
parent: E.value,
|
|
352
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
353
|
-
color: e.value.style.tooltip.color,
|
|
354
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
355
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
356
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
357
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
358
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
359
|
-
position: e.value.style.tooltip.position,
|
|
360
|
-
content: L.value,
|
|
361
|
-
isCustom: z.value,
|
|
362
|
-
offsetY: -124 + e.value.style.tooltip.offsetY,
|
|
363
|
-
blockShiftY: !0,
|
|
364
|
-
smooth: e.value.style.tooltip.smooth,
|
|
365
|
-
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
366
|
-
}, {
|
|
367
|
-
"tooltip-before": X(() => [
|
|
368
|
-
T(t.$slots, "tooltip-before", J(K({ ...O.value })), void 0, !0)
|
|
369
|
-
]),
|
|
370
|
-
"tooltip-after": X(() => [
|
|
371
|
-
T(t.$slots, "tooltip-after", J(K({ ...O.value })), void 0, !0)
|
|
372
|
-
]),
|
|
373
|
-
_: 3
|
|
374
|
-
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter"]),
|
|
375
|
-
t.$slots.source ? (s(), r("div", Ie, [
|
|
376
|
-
T(t.$slots, "source", {}, void 0, !0)
|
|
377
|
-
], 512)) : y("", !0)
|
|
378
|
-
], 4));
|
|
379
|
-
}
|
|
380
|
-
}, Je = /* @__PURE__ */ Se(We, [["__scopeId", "data-v-d2ef945d"]]);
|
|
381
|
-
export {
|
|
382
|
-
Je as default
|
|
383
|
-
};
|