vue-data-ui 3.22.6 → 3.22.7
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-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { I as t,
|
|
2
|
+
import { I as t, Lt as n, k as r, t as i } from "./lib-EAmk-PgA.js";
|
|
3
3
|
import { t as ee } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as te } from "./useNestedProp-
|
|
4
|
+
import { t as te } from "./useNestedProp-D8XqxgOU.js";
|
|
5
5
|
import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import { n as o } from "./PackageVersion-
|
|
6
|
+
import { n as o } from "./PackageVersion-Dse0n05o.js";
|
|
7
7
|
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createStaticVNode as f, createVNode as p, normalizeClass as ne, normalizeStyle as m, openBlock as h, ref as g, renderList as _, unref as v } from "vue";
|
|
8
8
|
//#region src/components/vue-ui-skeleton.vue
|
|
9
9
|
var y = /* @__PURE__ */ e({ default: () => K }), re = ["id"], ie = ["xmlns"], ae = { transform: "translate(300, 300)" }, oe = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ot as t, Q as n, Rt as r, i, q as a, t as o } from "./lib-EAmk-PgA.js";
|
|
3
3
|
import { t as s } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as c } from "./useNestedProp-
|
|
4
|
+
import { t as c } from "./useNestedProp-D8XqxgOU.js";
|
|
5
5
|
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
6
|
import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, normalizeClass as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O, withKeys as k } from "vue";
|
|
7
7
|
//#region src/atoms/BaseSmilingUnit.vue
|
|
@@ -28,12 +28,12 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
28
28
|
"mouseleave"
|
|
29
29
|
],
|
|
30
30
|
setup(e, { emit: t }) {
|
|
31
|
-
let
|
|
31
|
+
let n = e, i = t;
|
|
32
32
|
return (t, a) => (b(), p("div", {
|
|
33
33
|
tabindex: "0",
|
|
34
34
|
class: _({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
|
|
35
35
|
style: v({
|
|
36
|
-
cursor: e.config.readonly ? "default" :
|
|
36
|
+
cursor: e.config.readonly ? "default" : n.isCursorPointer ? "pointer" : "default",
|
|
37
37
|
height: e.config.style.itemSize + "px",
|
|
38
38
|
aspectRatio: "1/1",
|
|
39
39
|
position: "relative"
|
|
@@ -91,7 +91,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
91
91
|
"stroke-linejoin": "round"
|
|
92
92
|
}, [m("defs", null, [m("radialGradient", { id: `vueUiSmiley${e.unit - 1}` }, [m("stop", {
|
|
93
93
|
offset: "0%",
|
|
94
|
-
"stop-color": T(
|
|
94
|
+
"stop-color": T(r)(e.config.style.colors.active[e.unit - 1], .05)
|
|
95
95
|
}, null, 8, M), m("stop", {
|
|
96
96
|
offset: "100%",
|
|
97
97
|
"stop-color": e.config.style.colors.active[e.unit - 1]
|
|
@@ -129,7 +129,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
129
129
|
"stroke-linejoin": "round"
|
|
130
130
|
}, [m("defs", null, [m("radialGradient", { id: `vueUiSmiley${e.unit - 1}` }, [m("stop", {
|
|
131
131
|
offset: "0%",
|
|
132
|
-
"stop-color": T(
|
|
132
|
+
"stop-color": T(r)(e.config.style.colors.activeReadonly[e.unit - 1], .05)
|
|
133
133
|
}, null, 8, L), m("stop", {
|
|
134
134
|
offset: "100%",
|
|
135
135
|
"stop-color": e.config.style.colors.activeReadonly[e.unit - 1]
|
|
@@ -173,13 +173,13 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
emits: ["rate"],
|
|
176
|
-
setup(e, { expose:
|
|
176
|
+
setup(e, { expose: r, emit: o }) {
|
|
177
177
|
let { vue_ui_smiley: l } = s(), _ = e, C = E(), T = o, k = x(null);
|
|
178
178
|
y(() => {
|
|
179
179
|
C["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
|
|
180
180
|
});
|
|
181
181
|
function A() {
|
|
182
|
-
(!Object.hasOwn(_.dataset, "rating") || t(_.dataset)) &&
|
|
182
|
+
(!Object.hasOwn(_.dataset, "rating") || t(_.dataset)) && n({
|
|
183
183
|
componentName: "VueUiSmiley",
|
|
184
184
|
type: "datasetAttribute",
|
|
185
185
|
property: "rating"
|
|
@@ -273,7 +273,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
273
273
|
function Z(e = !0) {
|
|
274
274
|
L.value = e;
|
|
275
275
|
}
|
|
276
|
-
return
|
|
276
|
+
return r({
|
|
277
277
|
getData: X,
|
|
278
278
|
toggleReadonly: Z
|
|
279
279
|
}), (e, t) => (b(), p("div", {
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
2
|
+
import { Ct as t, Gt as n, Lt as r, Ot as i, Q as a, W as ee, i as o, j as te, m as ne, q as s, t as re, v as c } from "./lib-EAmk-PgA.js";
|
|
3
|
+
import { t as ie } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as l } from "./useNestedProp-D8XqxgOU.js";
|
|
6
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as u } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { c as ce } from "./canvas-lib-BOP_HS11.js";
|
|
9
9
|
import { t as le } from "./useResponsive-BfnK0KxU.js";
|
|
10
10
|
import { t as ue } from "./usePrefersMotion-BC-CsqR1.js";
|
|
11
11
|
import { t as de } from "./useFitSvgText-CT3nmlaS.js";
|
|
12
12
|
import { t as fe } from "./vue_ui_spark_trend-DxVmpkmC.js";
|
|
13
|
-
import { computed as d, createBlock as pe, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as me, defineAsyncComponent as he, nextTick as
|
|
13
|
+
import { computed as d, createBlock as pe, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as me, defineAsyncComponent as he, nextTick as h, normalizeStyle as ge, onMounted as _e, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, toRefs as ve, unref as b, watch as x } from "vue";
|
|
14
14
|
//#region src/components/vue-ui-spark-trend.vue
|
|
15
|
-
var
|
|
15
|
+
var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"], be = ["id"], xe = ["xmlns", "viewBox"], Se = ["width", "height"], Ce = ["id"], we = ["stop-color"], Te = ["stop-color"], Ee = { key: 1 }, De = ["d", "fill"], Oe = ["d", "fill"], ke = [
|
|
16
16
|
"d",
|
|
17
17
|
"stroke",
|
|
18
18
|
"stroke-width",
|
|
19
19
|
"stroke-linecap",
|
|
20
20
|
"stroke-linejoin"
|
|
21
|
-
],
|
|
21
|
+
], Ae = [
|
|
22
22
|
"d",
|
|
23
23
|
"stroke",
|
|
24
24
|
"stroke-width",
|
|
25
25
|
"stroke-linecap",
|
|
26
26
|
"stroke-linejoin"
|
|
27
|
-
],
|
|
27
|
+
], je = ["d"], Me = ["fill", "d"], Ne = [
|
|
28
28
|
"x",
|
|
29
29
|
"y",
|
|
30
30
|
"width",
|
|
31
31
|
"height"
|
|
32
|
-
],
|
|
32
|
+
], Pe = [
|
|
33
33
|
"x",
|
|
34
34
|
"y",
|
|
35
35
|
"fill",
|
|
36
36
|
"font-size",
|
|
37
37
|
"font-weight"
|
|
38
|
-
],
|
|
38
|
+
], Fe = [
|
|
39
39
|
"stroke",
|
|
40
40
|
"cx",
|
|
41
41
|
"cy",
|
|
42
42
|
"fill"
|
|
43
|
-
],
|
|
43
|
+
], Ie = [
|
|
44
44
|
"x",
|
|
45
45
|
"y",
|
|
46
46
|
"font-size",
|
|
47
47
|
"fill",
|
|
48
48
|
"font-weight"
|
|
49
|
-
],
|
|
49
|
+
], C = /*#__PURE__*/ u({
|
|
50
50
|
__name: "vue-ui-spark-trend",
|
|
51
51
|
props: {
|
|
52
52
|
config: {
|
|
@@ -63,7 +63,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(e) {
|
|
66
|
-
let
|
|
66
|
+
let u = he(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), { vue_ui_spark_trend: S } = ie(), { isThemeValid: C, warnInvalidTheme: Le } = se(), w = ue(), T = e, E = _(null), Re = _(null), ze = _(null), D = _(null), O = _(null), k = _(!1), A = _(null), j = _(ee()), M = _(I()), Be = d(() => n({
|
|
67
67
|
defaultConfig: { style: {
|
|
68
68
|
animation: { show: !1 },
|
|
69
69
|
backgroundColor: "#99999930",
|
|
@@ -78,11 +78,11 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
78
78
|
}
|
|
79
79
|
} },
|
|
80
80
|
userConfig: M.value.skeletonConfig ?? {}
|
|
81
|
-
})), { loading: N, FINAL_DATASET: P, manualLoading: F } =
|
|
82
|
-
...
|
|
81
|
+
})), { loading: N, FINAL_DATASET: P, manualLoading: F } = ae({
|
|
82
|
+
...ve(T),
|
|
83
83
|
FINAL_CONFIG: M,
|
|
84
84
|
prepareConfig: I,
|
|
85
|
-
skeletonDataset:
|
|
85
|
+
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
86
86
|
1,
|
|
87
87
|
2,
|
|
88
88
|
3,
|
|
@@ -96,68 +96,68 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
96
96
|
144,
|
|
97
97
|
233
|
|
98
98
|
],
|
|
99
|
-
skeletonConfig:
|
|
99
|
+
skeletonConfig: n({
|
|
100
100
|
defaultConfig: M.value,
|
|
101
101
|
userConfig: Be.value
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
function I() {
|
|
105
|
-
let e =
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
105
|
+
let e = l({
|
|
106
|
+
userConfig: T.config,
|
|
107
|
+
defaultConfig: S
|
|
108
108
|
}), t = e.theme;
|
|
109
109
|
if (!t) return e;
|
|
110
|
-
if (!
|
|
111
|
-
let n =
|
|
112
|
-
userConfig: fe[t] ||
|
|
110
|
+
if (!C.value(e)) return Le(e), e;
|
|
111
|
+
let n = l({
|
|
112
|
+
userConfig: fe[t] || T.config,
|
|
113
113
|
defaultConfig: e
|
|
114
114
|
});
|
|
115
|
-
return
|
|
116
|
-
userConfig:
|
|
115
|
+
return l({
|
|
116
|
+
userConfig: T.config,
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let L = d(() =>
|
|
120
|
+
let L = d(() => t({
|
|
121
121
|
data: P.value,
|
|
122
122
|
threshold: M.value.downsample.threshold
|
|
123
123
|
}));
|
|
124
|
-
|
|
124
|
+
x(() => T.config, (e) => {
|
|
125
125
|
M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
|
|
126
126
|
}, { deep: !0 });
|
|
127
127
|
function R(e) {
|
|
128
|
-
return e.map((e) =>
|
|
128
|
+
return e.map((e) => c(e));
|
|
129
129
|
}
|
|
130
|
-
let z =
|
|
130
|
+
let z = _(t({
|
|
131
131
|
data: P.value,
|
|
132
132
|
threshold: M.value.downsample.threshold
|
|
133
|
-
}).map((e) => M.value.style.animation.show && !
|
|
133
|
+
}).map((e) => M.value.style.animation.show && !w.value || [
|
|
134
134
|
void 0,
|
|
135
135
|
Infinity,
|
|
136
136
|
-Infinity,
|
|
137
137
|
null,
|
|
138
138
|
NaN
|
|
139
139
|
].includes(e) ? null : e));
|
|
140
|
-
|
|
141
|
-
A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !
|
|
140
|
+
x(L, (e) => {
|
|
141
|
+
A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !w.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
|
|
142
142
|
void 0,
|
|
143
143
|
Infinity,
|
|
144
144
|
-Infinity,
|
|
145
145
|
null
|
|
146
|
-
].includes(e) && !Number.isNaN(e) ? e : null), B(),
|
|
146
|
+
].includes(e) && !Number.isNaN(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
147
147
|
}, {
|
|
148
148
|
deep: !0,
|
|
149
149
|
immediate: !0
|
|
150
|
-
}),
|
|
151
|
-
A.value &&= (cancelAnimationFrame(A.value), null), F.value =
|
|
150
|
+
}), x(() => JSON.stringify(T.dataset), () => {
|
|
151
|
+
A.value &&= (cancelAnimationFrame(A.value), null), F.value = i(T.dataset);
|
|
152
152
|
let e = L.value;
|
|
153
|
-
z.value = M.value.style.animation.show && !
|
|
153
|
+
z.value = M.value.style.animation.show && !w.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
154
154
|
}, {
|
|
155
155
|
deep: !1,
|
|
156
156
|
immediate: !0
|
|
157
157
|
});
|
|
158
158
|
function B() {
|
|
159
159
|
let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
|
|
160
|
-
if (!N.value && M.value.style.animation.show && !
|
|
160
|
+
if (!N.value && M.value.style.animation.show && !w.value && M.value.style.animation.animationFrames && P.value.length > 1) {
|
|
161
161
|
z.value = [];
|
|
162
162
|
let n = 0;
|
|
163
163
|
function r() {
|
|
@@ -168,30 +168,30 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
168
168
|
r();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
_e(() => {
|
|
172
172
|
V();
|
|
173
173
|
});
|
|
174
174
|
let Ve = d(() => M.value.debug);
|
|
175
175
|
function V() {
|
|
176
|
-
if (
|
|
176
|
+
if (i(T.dataset) && (a({
|
|
177
177
|
componentName: "VueUiSparkTrend",
|
|
178
178
|
type: "dataset",
|
|
179
179
|
debug: Ve.value
|
|
180
|
-
}), F.value = !0),
|
|
180
|
+
}), F.value = !0), i(T.dataset) || (F.value = !1), M.value.responsive) {
|
|
181
181
|
let e = ce(() => {
|
|
182
182
|
let { width: e, height: t } = le({
|
|
183
|
-
chart:
|
|
183
|
+
chart: E.value,
|
|
184
184
|
source: ze.value
|
|
185
185
|
});
|
|
186
186
|
requestAnimationFrame(() => {
|
|
187
187
|
H.value = e, U.value = t;
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
|
-
D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value =
|
|
190
|
+
D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = E.value.parentNode, D.value.observe(O.value);
|
|
191
191
|
}
|
|
192
192
|
B(), $(".vue-ui-sparktrend-progress-label", 6);
|
|
193
193
|
}
|
|
194
|
-
let H =
|
|
194
|
+
let H = _(M.value.style.width), U = _(M.value.style.height), W = d(() => ({
|
|
195
195
|
height: U.value,
|
|
196
196
|
width: H.value
|
|
197
197
|
})), G = d(() => ({
|
|
@@ -242,16 +242,16 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
242
242
|
-Infinity
|
|
243
243
|
].includes(e) ? 0 : e || 0;
|
|
244
244
|
return {
|
|
245
|
-
value:
|
|
246
|
-
absoluteValue:
|
|
247
|
-
plotValue:
|
|
245
|
+
value: c(e),
|
|
246
|
+
absoluteValue: c(n),
|
|
247
|
+
plotValue: c(n + q.value),
|
|
248
248
|
toMax: We(n + q.value),
|
|
249
|
-
x: G.value.left +
|
|
250
|
-
y: G.value.bottom -
|
|
249
|
+
x: G.value.left + c(t * (G.value.width / (Ge.value - 1))) - M.value.style.padding.right,
|
|
250
|
+
y: G.value.bottom - c(G.value.height * We(n + q.value))
|
|
251
251
|
};
|
|
252
252
|
})), Y = d(() => {
|
|
253
253
|
let e = R(L.value);
|
|
254
|
-
return M.value.style.trendLabel.trendType === "global" ?
|
|
254
|
+
return M.value.style.trendLabel.trendType === "global" ? ne(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
|
|
255
255
|
}), X = d(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = d(() => M.value.style.arrow.colors[X.value]), Ke = d(() => {
|
|
256
256
|
let e = {
|
|
257
257
|
x: J.value[0].x,
|
|
@@ -275,17 +275,17 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
275
275
|
e.push(`${t.x},${t.y} `);
|
|
276
276
|
}), `M ${e.toString()}`;
|
|
277
277
|
}), Q = d(() => U.value / 2 - M.value.style.trendLabel.fontSize), { fitText: $ } = de({
|
|
278
|
-
svgRef:
|
|
278
|
+
svgRef: Re,
|
|
279
279
|
unitWidth: d(() => G.value.left * .8),
|
|
280
280
|
fontSize: M.value.style.trendLabel.fontSize
|
|
281
281
|
}), Je = d(() => {
|
|
282
282
|
if (N.value || k.value) return "Trend chart loading";
|
|
283
|
-
let e = J.value?.at(-1), t = e?.value, n =
|
|
283
|
+
let e = J.value?.at(-1), t = e?.value, n = s({
|
|
284
284
|
p: Y.value > 0 ? "+" : "",
|
|
285
285
|
v: Y.value,
|
|
286
286
|
s: "%",
|
|
287
287
|
r: M.value.style.trendLabel.rounding
|
|
288
|
-
}), r = t == null ? "not available" : o(M.value.style.dataLabel.formatter, t,
|
|
288
|
+
}), r = t == null ? "not available" : o(M.value.style.dataLabel.formatter, t, s({
|
|
289
289
|
p: M.value.style.dataLabel.prefix,
|
|
290
290
|
v: t,
|
|
291
291
|
s: M.value.style.dataLabel.suffix,
|
|
@@ -293,12 +293,12 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
293
293
|
}), { datapoint: e });
|
|
294
294
|
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${r}.`;
|
|
295
295
|
}), Ye = d(() => `sparktrend-a11y-${j.value}`);
|
|
296
|
-
return (e, t) => (
|
|
296
|
+
return (e, t) => (g(), p("div", {
|
|
297
297
|
ref_key: "sparkTrendChart",
|
|
298
|
-
ref:
|
|
298
|
+
ref: E,
|
|
299
299
|
class: "vue-data-ui-component vue-ui-spark-trend",
|
|
300
300
|
id: j.value,
|
|
301
|
-
style:
|
|
301
|
+
style: ge(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
|
|
302
302
|
role: "img",
|
|
303
303
|
"aria-describedby": Ye.value
|
|
304
304
|
}, [
|
|
@@ -306,25 +306,25 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
306
306
|
id: Ye.value,
|
|
307
307
|
class: "sr-only",
|
|
308
308
|
"aria-live": "polite"
|
|
309
|
-
},
|
|
310
|
-
(
|
|
309
|
+
}, y(Je.value), 9, be),
|
|
310
|
+
(g(), p("svg", {
|
|
311
311
|
key: He.value,
|
|
312
312
|
ref_key: "svgRef",
|
|
313
|
-
ref:
|
|
314
|
-
xmlns:
|
|
313
|
+
ref: Re,
|
|
314
|
+
xmlns: b(re),
|
|
315
315
|
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
316
316
|
style: "width:100%;background:transparent;overflow:visible",
|
|
317
317
|
"aria-hidden": "true"
|
|
318
318
|
}, [
|
|
319
|
-
me(
|
|
320
|
-
e.$slots["chart-background"] ? (
|
|
319
|
+
me(b(u)),
|
|
320
|
+
e.$slots["chart-background"] ? (g(), p("foreignObject", {
|
|
321
321
|
key: 0,
|
|
322
322
|
x: 0,
|
|
323
323
|
y: 0,
|
|
324
324
|
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
325
325
|
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
326
326
|
style: { pointerEvents: "none" }
|
|
327
|
-
}, [
|
|
327
|
+
}, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : f("", !0),
|
|
328
328
|
m("defs", null, [m("linearGradient", {
|
|
329
329
|
x1: "0%",
|
|
330
330
|
y1: "0%",
|
|
@@ -333,32 +333,32 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
333
333
|
id: `pill_gradient_${j.value}`
|
|
334
334
|
}, [m("stop", {
|
|
335
335
|
offset: "0%",
|
|
336
|
-
"stop-color":
|
|
337
|
-
}, null, 8,
|
|
336
|
+
"stop-color": b(r)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity)
|
|
337
|
+
}, null, 8, we), m("stop", {
|
|
338
338
|
offset: "100%",
|
|
339
339
|
"stop-color": M.value.style.backgroundColor
|
|
340
|
-
}, null, 8,
|
|
341
|
-
M.value.style.area.show && J.value[0] ? (
|
|
340
|
+
}, null, 8, Te)], 8, Ce)]),
|
|
341
|
+
M.value.style.area.show && J.value[0] ? (g(), p("g", Ee, [M.value.style.line.smooth ? (g(), p("path", {
|
|
342
342
|
key: 0,
|
|
343
|
-
d: `M ${J.value[0].x},${G.value.bottom} ${
|
|
344
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` :
|
|
343
|
+
d: `M ${J.value[0].x},${G.value.bottom} ${b(te)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
|
|
344
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(r)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
345
345
|
stroke: "none"
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, De)) : (g(), p("path", {
|
|
347
347
|
key: 1,
|
|
348
348
|
d: `M${Ke.value}Z`,
|
|
349
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` :
|
|
349
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(r)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
350
350
|
stroke: "none"
|
|
351
|
-
}, null, 8,
|
|
352
|
-
M.value.style.line.smooth && J.value.length ? (
|
|
351
|
+
}, null, 8, Oe))])) : f("", !0),
|
|
352
|
+
M.value.style.line.smooth && J.value.length ? (g(), p("path", {
|
|
353
353
|
key: 2,
|
|
354
|
-
d: `M ${
|
|
354
|
+
d: `M ${b(te)(J.value)}`,
|
|
355
355
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
356
356
|
fill: "none",
|
|
357
357
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
358
358
|
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
359
359
|
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
360
|
-
}, null, 8,
|
|
361
|
-
!M.value.style.line.smooth && J.value.length ? (
|
|
360
|
+
}, null, 8, ke)) : f("", !0),
|
|
361
|
+
!M.value.style.line.smooth && J.value.length ? (g(), p("path", {
|
|
362
362
|
key: 3,
|
|
363
363
|
d: qe.value,
|
|
364
364
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
@@ -366,17 +366,17 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
366
366
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
367
367
|
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
368
368
|
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
369
|
-
}, null, 8,
|
|
370
|
-
|
|
369
|
+
}, null, 8, Ae)) : f("", !0),
|
|
370
|
+
b(N) ? (g(), p("path", {
|
|
371
371
|
key: 4,
|
|
372
372
|
fill: "#6A6A6A",
|
|
373
373
|
d: `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
|
|
374
|
-
}, null, 8,
|
|
374
|
+
}, null, 8, je)) : (g(), p("path", {
|
|
375
375
|
key: 5,
|
|
376
376
|
fill: Z.value,
|
|
377
377
|
d: X.value === "positive" ? `M ${G.value.left / 2}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 12} ${G.value.left / 2 + 7}, ${Q.value + 12} Z` : X.value === "negative" ? `M ${G.value.left / 2}, ${Q.value + 12} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 + 7}, ${Q.value} Z` : `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
|
|
378
|
-
}, null, 8,
|
|
379
|
-
|
|
378
|
+
}, null, 8, Me)),
|
|
379
|
+
b(N) ? (g(), p("rect", {
|
|
380
380
|
key: 6,
|
|
381
381
|
x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
|
|
382
382
|
y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
|
|
@@ -384,8 +384,8 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
384
384
|
height: M.value.style.trendLabel.fontSize,
|
|
385
385
|
fill: "#6A6A6A80",
|
|
386
386
|
rx: "3"
|
|
387
|
-
}, null, 8,
|
|
388
|
-
!k.value && !
|
|
387
|
+
}, null, 8, Ne)) : f("", !0),
|
|
388
|
+
!k.value && !b(N) ? (g(), p("text", {
|
|
389
389
|
key: 7,
|
|
390
390
|
class: "vue-ui-sparktrend-progress-label",
|
|
391
391
|
x: G.value.left / 2,
|
|
@@ -394,22 +394,22 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
394
394
|
fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
|
|
395
395
|
"font-size": M.value.style.trendLabel.fontSize,
|
|
396
396
|
"font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
|
|
397
|
-
},
|
|
397
|
+
}, y(b(s)({
|
|
398
398
|
p: Y.value > 0 ? "+" : "",
|
|
399
399
|
v: Y.value,
|
|
400
400
|
s: "%",
|
|
401
401
|
r: M.value.style.trendLabel.rounding
|
|
402
|
-
})), 9,
|
|
403
|
-
J.value.length && J.value.at(-1).x !== void 0 ? (
|
|
402
|
+
})), 9, Pe)) : f("", !0),
|
|
403
|
+
J.value.length && J.value.at(-1).x !== void 0 ? (g(), p("circle", {
|
|
404
404
|
key: 8,
|
|
405
405
|
stroke: M.value.style.backgroundColor,
|
|
406
406
|
"stroke-width": 2,
|
|
407
407
|
cx: J.value.at(-1).x,
|
|
408
408
|
cy: J.value.at(-1).y,
|
|
409
409
|
r: 4,
|
|
410
|
-
fill:
|
|
411
|
-
}, null, 8,
|
|
412
|
-
J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (
|
|
410
|
+
fill: b(N) ? "#6A6A6A" : Z.value
|
|
411
|
+
}, null, 8, Fe)) : f("", !0),
|
|
412
|
+
J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (g(), p("text", {
|
|
413
413
|
key: 9,
|
|
414
414
|
"text-anchor": "middle",
|
|
415
415
|
x: J.value.at(-1).x,
|
|
@@ -417,22 +417,22 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
417
417
|
"font-size": M.value.style.dataLabel.fontSize,
|
|
418
418
|
fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
|
|
419
419
|
"font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
|
|
420
|
-
},
|
|
420
|
+
}, y(b(o)(M.value.style.dataLabel.formatter, J.value.at(-1).value, b(s)({
|
|
421
421
|
p: M.value.style.dataLabel.prefix,
|
|
422
422
|
v: J.value.at(-1).value,
|
|
423
423
|
s: M.value.style.dataLabel.suffix,
|
|
424
424
|
r: M.value.style.dataLabel.rounding
|
|
425
|
-
}), { datapoint: J.value.at(-1) })), 9,
|
|
426
|
-
], 8,
|
|
427
|
-
e.$slots.source ? (
|
|
425
|
+
}), { datapoint: J.value.at(-1) })), 9, Ie)) : f("", !0)
|
|
426
|
+
], 8, xe)),
|
|
427
|
+
e.$slots.source ? (g(), p("div", {
|
|
428
428
|
key: 0,
|
|
429
429
|
ref_key: "source",
|
|
430
430
|
ref: ze,
|
|
431
431
|
dir: "auto"
|
|
432
|
-
}, [
|
|
433
|
-
|
|
434
|
-
], 12,
|
|
432
|
+
}, [v(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
433
|
+
v(e.$slots, "skeleton", {}, () => [b(N) ? (g(), pe(oe, { key: 0 })) : f("", !0)], !0)
|
|
434
|
+
], 12, ye));
|
|
435
435
|
}
|
|
436
436
|
}, [["__scopeId", "data-v-90a4c498"]]);
|
|
437
437
|
//#endregion
|
|
438
|
-
export {
|
|
438
|
+
export { S as n, C as t };
|