vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { computed as u, createBlock as
|
|
2
|
+
import { $ as t, G as n, J as ee, Kt as r, _t as te, dt as ne, i as re, kt as ie, t as ae, v as i } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as se, t as a } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as o } from "./useNestedProp-DIuuzG1r.js";
|
|
6
|
+
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as s } from "./useChartAccessibility-DYqac8yF.js";
|
|
8
|
+
import { t as c } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
|
+
import { t as l } from "./vue_ui_sparkgauge-BX1MS3bA.js";
|
|
10
|
+
import { computed as u, createBlock as le, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as ue, defineAsyncComponent as de, normalizeClass as fe, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, toRefs as pe, unref as x, watch as S } from "vue";
|
|
11
11
|
//#region src/components/vue-ui-sparkgauge.vue
|
|
12
12
|
var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he = ["width", "height"], ge = ["id"], w = ["stop-color"], T = ["stop-color"], E = [
|
|
13
13
|
"d",
|
|
@@ -50,7 +50,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
setup(e) {
|
|
53
|
-
let C =
|
|
53
|
+
let C = de(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = oe(), { isThemeValid: M, warnInvalidTheme: N } = ce(), P = c(), F = v(null), I = e, L = v(n()), R = v(W()), z = u(() => R.value.style.animation.show && !P.value), _e = u(() => r({
|
|
54
54
|
defaultConfig: { style: {
|
|
55
55
|
animation: { show: !1 },
|
|
56
56
|
background: "#99999930",
|
|
@@ -62,7 +62,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
62
62
|
gutter: { color: "#6A6A6A80" }
|
|
63
63
|
} },
|
|
64
64
|
userConfig: R.value.skeletonConfig ?? {}
|
|
65
|
-
})), { loading: B, FINAL_DATASET: V } =
|
|
65
|
+
})), { loading: B, FINAL_DATASET: V } = se({
|
|
66
66
|
...pe(I),
|
|
67
67
|
FINAL_CONFIG: R,
|
|
68
68
|
prepareConfig: W,
|
|
@@ -72,7 +72,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
72
72
|
max: 1,
|
|
73
73
|
title: ""
|
|
74
74
|
},
|
|
75
|
-
skeletonConfig:
|
|
75
|
+
skeletonConfig: r({
|
|
76
76
|
defaultConfig: R.value,
|
|
77
77
|
userConfig: _e.value
|
|
78
78
|
})
|
|
@@ -83,19 +83,19 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
83
83
|
max: t,
|
|
84
84
|
diff: t - e
|
|
85
85
|
};
|
|
86
|
-
}), U = u(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } =
|
|
86
|
+
}), U = u(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } = s({ config: { text: I.dataset?.title || "" } });
|
|
87
87
|
function W() {
|
|
88
|
-
let e =
|
|
88
|
+
let e = o({
|
|
89
89
|
userConfig: I.config,
|
|
90
90
|
defaultConfig: j
|
|
91
91
|
}), t = e.theme;
|
|
92
92
|
if (!t) return e;
|
|
93
93
|
if (!M.value(e)) return N(e), e;
|
|
94
|
-
let n =
|
|
95
|
-
userConfig:
|
|
94
|
+
let n = o({
|
|
95
|
+
userConfig: l[t] || I.config,
|
|
96
96
|
defaultConfig: e
|
|
97
97
|
});
|
|
98
|
-
return
|
|
98
|
+
return o({
|
|
99
99
|
userConfig: I.config,
|
|
100
100
|
defaultConfig: n
|
|
101
101
|
});
|
|
@@ -105,11 +105,11 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
105
105
|
});
|
|
106
106
|
let G = u(() => R.value.debug);
|
|
107
107
|
function K() {
|
|
108
|
-
|
|
108
|
+
ie(I.dataset) ? t({
|
|
109
109
|
componentName: "VueUiSparkgauge",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: G.value
|
|
112
|
-
}) :
|
|
112
|
+
}) : ne({
|
|
113
113
|
datasetObject: I.dataset,
|
|
114
114
|
requiredAttributes: [
|
|
115
115
|
"value",
|
|
@@ -117,7 +117,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
117
117
|
"max"
|
|
118
118
|
]
|
|
119
119
|
}).forEach((e) => {
|
|
120
|
-
|
|
120
|
+
t({
|
|
121
121
|
componentName: "VueUiSparkgauge",
|
|
122
122
|
type: "datasetAttribute",
|
|
123
123
|
property: e,
|
|
@@ -156,54 +156,54 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
156
156
|
let t = H.value.min, n = ye.value;
|
|
157
157
|
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
158
158
|
}), Q = u(() => te(R.value.style.colors.min, R.value.style.colors.max, H.value.min, H.value.max, J.value)), $ = u(() => R.value.style.dataLabel.autoColor ? Q.value : R.value.style.dataLabel.color), be = u(() => R.value.style.track.autoColor ? Q.value : R.value.style.track.color);
|
|
159
|
-
return
|
|
159
|
+
return h(() => {
|
|
160
160
|
F.value && cancelAnimationFrame(F.value);
|
|
161
|
-
}), (e, t) => (_(),
|
|
161
|
+
}), (e, t) => (_(), f("div", {
|
|
162
162
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
163
|
-
style:
|
|
163
|
+
style: m(`font-family:${R.value.style.fontFamily};width: 100%; background:${R.value.style.background}`)
|
|
164
164
|
}, [
|
|
165
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (_(),
|
|
165
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (_(), f("div", {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "vue-data-ui-sparkgauge-label",
|
|
168
|
-
style:
|
|
169
|
-
}, b(X.value), 5)) :
|
|
170
|
-
(_(),
|
|
168
|
+
style: m(`font-size:${R.value.style.title.fontSize}px;text-align:${R.value.style.title.textAlign};font-weight:${R.value.style.title.bold ? "bold" : "normal"};color:${R.value.style.title.color}`)
|
|
169
|
+
}, b(X.value), 5)) : d("", !0),
|
|
170
|
+
(_(), f("svg", {
|
|
171
171
|
ref_key: "svgRef",
|
|
172
172
|
ref: ve,
|
|
173
|
-
xmlns: x(
|
|
173
|
+
xmlns: x(ae),
|
|
174
174
|
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
175
175
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
176
176
|
}, [
|
|
177
|
-
|
|
178
|
-
e.$slots["chart-background"] && !x(B) ? (_(),
|
|
177
|
+
ue(x(C)),
|
|
178
|
+
e.$slots["chart-background"] && !x(B) ? (_(), f("foreignObject", {
|
|
179
179
|
key: 0,
|
|
180
180
|
x: 0,
|
|
181
181
|
y: 0,
|
|
182
182
|
width: q.value.width,
|
|
183
183
|
height: q.value.height,
|
|
184
184
|
style: { pointerEvents: "none" }
|
|
185
|
-
}, [y(e.$slots, "chart-background")], 8, he)) :
|
|
186
|
-
|
|
185
|
+
}, [y(e.$slots, "chart-background")], 8, he)) : d("", !0),
|
|
186
|
+
p("defs", null, [p("linearGradient", {
|
|
187
187
|
id: `gradient_${L.value}`,
|
|
188
188
|
x1: "-10%",
|
|
189
189
|
y1: "100%",
|
|
190
190
|
x2: "110%",
|
|
191
191
|
y2: "100%"
|
|
192
|
-
}, [
|
|
192
|
+
}, [p("stop", {
|
|
193
193
|
offset: "0%",
|
|
194
194
|
"stop-color": R.value.style.colors.min
|
|
195
|
-
}, null, 8, w),
|
|
195
|
+
}, null, 8, w), p("stop", {
|
|
196
196
|
offset: "100%",
|
|
197
197
|
"stop-color": R.value.style.colors.max
|
|
198
198
|
}, null, 8, T)], 8, ge)]),
|
|
199
|
-
|
|
199
|
+
p("path", {
|
|
200
200
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
201
201
|
stroke: R.value.style.gutter.color,
|
|
202
202
|
"stroke-width": 8,
|
|
203
203
|
"stroke-linecap": R.value.style.gutter.strokeLinecap,
|
|
204
204
|
fill: "none"
|
|
205
205
|
}, null, 8, E),
|
|
206
|
-
Z.value === 0 ?
|
|
206
|
+
Z.value === 0 ? d("", !0) : (_(), f("path", {
|
|
207
207
|
key: 1,
|
|
208
208
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
209
209
|
stroke: R.value.style.colors.showGradient ? `url(#gradient_${L.value})` : be.value,
|
|
@@ -212,10 +212,10 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
212
212
|
fill: "none",
|
|
213
213
|
"stroke-dasharray": 169.5,
|
|
214
214
|
"stroke-dashoffset": 169.5 - 169.5 * Z.value,
|
|
215
|
-
class:
|
|
216
|
-
style:
|
|
215
|
+
class: fe({ "vue-ui-sparkgauge-track": R.value.style.animation.show }),
|
|
216
|
+
style: m(R.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${R.value.style.animation.speedMs}ms ease-in;` : "")
|
|
217
217
|
}, null, 14, D)),
|
|
218
|
-
x(B) ? (_(),
|
|
218
|
+
x(B) ? (_(), f("rect", {
|
|
219
219
|
key: 2,
|
|
220
220
|
x: q.value.width / 2 - R.value.style.dataLabel.fontSize / 2,
|
|
221
221
|
y: q.value.base + 6 + R.value.style.dataLabel.offsetY - R.value.style.dataLabel.fontSize,
|
|
@@ -223,7 +223,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
223
223
|
height: R.value.style.dataLabel.fontSize,
|
|
224
224
|
fill: "#6A6A6A50",
|
|
225
225
|
rx: 3
|
|
226
|
-
}, null, 8, O)) : (_(),
|
|
226
|
+
}, null, 8, O)) : (_(), f("text", {
|
|
227
227
|
key: 3,
|
|
228
228
|
"text-anchor": "middle",
|
|
229
229
|
x: q.value.width / 2,
|
|
@@ -231,23 +231,23 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
231
231
|
"font-size": R.value.style.dataLabel.fontSize,
|
|
232
232
|
fill: $.value,
|
|
233
233
|
"font-weight": R.value.style.dataLabel.bold ? "bold" : "normal"
|
|
234
|
-
}, b(x(
|
|
234
|
+
}, b(x(re)(R.value.style.dataLabel.formatter, x(i)(J.value), x(ee)({
|
|
235
235
|
p: R.value.style.dataLabel.prefix,
|
|
236
|
-
v: x(
|
|
236
|
+
v: x(i)(J.value),
|
|
237
237
|
s: R.value.style.dataLabel.suffix,
|
|
238
238
|
r: R.value.style.dataLabel.rounding
|
|
239
239
|
}), {
|
|
240
|
-
datapoint: x(
|
|
240
|
+
datapoint: x(i)(J.value),
|
|
241
241
|
color: $.value
|
|
242
242
|
})), 9, k))
|
|
243
243
|
], 8, me)),
|
|
244
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (_(),
|
|
244
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (_(), f("div", {
|
|
245
245
|
key: 1,
|
|
246
246
|
class: "vue-data-ui-sparkgauge-label",
|
|
247
|
-
style:
|
|
248
|
-
}, b(X.value), 5)) :
|
|
249
|
-
e.$slots.source ? (_(),
|
|
250
|
-
y(e.$slots, "skeleton", {}, () => [x(B) ? (_(),
|
|
247
|
+
style: m(`font-size:${R.value.style.title.fontSize}px;text-align:${R.value.style.title.textAlign};font-weight:${R.value.style.title.bold ? "bold" : "normal"};font-weight:${R.value.style.title.bold ? "bold" : "normal"};color:${R.value.style.title.color}`)
|
|
248
|
+
}, b(X.value), 5)) : d("", !0),
|
|
249
|
+
e.$slots.source ? (_(), f("div", A, [y(e.$slots, "source")], 512)) : d("", !0),
|
|
250
|
+
y(e.$slots, "skeleton", {}, () => [x(B) ? (_(), le(a, { key: 0 })) : d("", !0)])
|
|
251
251
|
], 4));
|
|
252
252
|
}
|
|
253
253
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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 f } from "./useNestedProp-
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Rt as a, dt as o, i as s, kt as ee, t as c, zt as l } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as u } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as d, t as te } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as f } from "./useNestedProp-DIuuzG1r.js";
|
|
6
6
|
import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
-
import { t as re } from "./Shape-
|
|
7
|
+
import { t as re } from "./Shape-UpH0a4Ur.js";
|
|
8
8
|
import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
9
|
import { c as ae } from "./canvas-lib-BOP_HS11.js";
|
|
10
10
|
import { t as oe } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -12,9 +12,9 @@ import { t as se } from "./A11yDataTable-DdRsVULz.js";
|
|
|
12
12
|
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
13
|
import { t as le } from "./useFitSvgText-CT3nmlaS.js";
|
|
14
14
|
import { t as ue } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
|
|
15
|
-
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as de, createVNode as fe, defineAsyncComponent as pe, guardReactiveProps as me, nextTick as y, normalizeClass as he, normalizeProps as ge, normalizeStyle as b, onMounted as
|
|
15
|
+
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as de, createVNode as fe, defineAsyncComponent as pe, guardReactiveProps as me, nextTick as y, normalizeClass as he, normalizeProps as ge, normalizeStyle as b, onMounted as x, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as _e, unref as D, useCssVars as ve, watch as O } from "vue";
|
|
16
16
|
//#region src/components/vue-ui-sparkhistogram.vue
|
|
17
|
-
var
|
|
17
|
+
var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, Se = { key: 1 }, Ce = { style: { position: "relative" } }, we = [
|
|
18
18
|
"xmlns",
|
|
19
19
|
"viewBox",
|
|
20
20
|
"aria-describedby"
|
|
@@ -87,15 +87,15 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["selectDatapoint"],
|
|
89
89
|
setup(e, { emit: ie }) {
|
|
90
|
-
|
|
91
|
-
let
|
|
90
|
+
ve((e) => ({ v66b29b27: nt.value }));
|
|
91
|
+
let ye = pe(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_sparkhistogram: k } = u(), { isThemeValid: We, warnInvalidTheme: Ge } = ne(), A = e, j = C(n()), M = C(null), N = C(null), P = C(null), F = C(null), I = C(null), L = C(!1), R = C(null), z = C("pointer"), B = C(K()), Ke = m(() => i({
|
|
92
92
|
defaultConfig: { style: {
|
|
93
93
|
animation: { show: !1 },
|
|
94
94
|
backgroundColor: "#99999930"
|
|
95
95
|
} },
|
|
96
96
|
userConfig: B.value.skeletonConfig ?? {}
|
|
97
|
-
})), { loading: V, FINAL_DATASET: H, manualLoading: qe } =
|
|
98
|
-
...
|
|
97
|
+
})), { loading: V, FINAL_DATASET: H, manualLoading: qe } = d({
|
|
98
|
+
..._e(A),
|
|
99
99
|
FINAL_CONFIG: B,
|
|
100
100
|
prepareConfig: K,
|
|
101
101
|
skeletonDataset: A.config?.skeletonDataset ?? [
|
|
@@ -165,11 +165,11 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
165
165
|
color: "#CACACA"
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
|
-
skeletonConfig:
|
|
168
|
+
skeletonConfig: i({
|
|
169
169
|
defaultConfig: B.value,
|
|
170
170
|
userConfig: Ke.value
|
|
171
171
|
})
|
|
172
|
-
}), U =
|
|
172
|
+
}), U = C(B.value.style.layout.width), W = C(B.value.style.layout.height), { svgRef: G } = ce({ config: B.value.style.title });
|
|
173
173
|
function K() {
|
|
174
174
|
let e = f({
|
|
175
175
|
userConfig: A.config,
|
|
@@ -186,25 +186,25 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
186
186
|
defaultConfig: n
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
x(() => {
|
|
190
190
|
J();
|
|
191
191
|
});
|
|
192
192
|
let q = m(() => !!B.value.debug);
|
|
193
193
|
function J() {
|
|
194
|
-
if (
|
|
194
|
+
if (ee(A.dataset) ? t({
|
|
195
195
|
componentName: "VueUiSparkHistogram",
|
|
196
196
|
type: "dataset",
|
|
197
197
|
debug: q.value
|
|
198
|
-
}) : A.dataset.forEach((e,
|
|
199
|
-
|
|
198
|
+
}) : A.dataset.forEach((e, n) => {
|
|
199
|
+
o({
|
|
200
200
|
datasetObject: e,
|
|
201
201
|
requiredAttributes: ["value"]
|
|
202
202
|
}).forEach((e) => {
|
|
203
|
-
|
|
203
|
+
t({
|
|
204
204
|
componentName: "VueUiSparkHistogram",
|
|
205
205
|
type: "datasetSerieAttribute",
|
|
206
206
|
property: e,
|
|
207
|
-
index:
|
|
207
|
+
index: n,
|
|
208
208
|
debug: q.value
|
|
209
209
|
});
|
|
210
210
|
});
|
|
@@ -222,7 +222,7 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
222
222
|
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
O(() => A.config, (e) => {
|
|
226
226
|
B.value = K(), J();
|
|
227
227
|
}, { deep: !0 });
|
|
228
228
|
let Y = m(() => {
|
|
@@ -243,25 +243,25 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
243
243
|
return Math.abs(e) / Je.value;
|
|
244
244
|
}
|
|
245
245
|
let X = m(() => H.value.map((e, t) => {
|
|
246
|
-
let
|
|
246
|
+
let n = Ye(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / H.value.length, o = i * (B.value.style.bars.gap / 100), s = i - o, ee = Y.value.centerY - r / 2, c = Y.value.left + (o / 2 + t * i), l = Y.value.left + t * i, u = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), d = e.color ? e.color : e.value >= 0 ? a(B.value.style.bars.colors.positive, u) : a(B.value.style.bars.colors.negative, u), te = e.color ? e.color : e.value >= 0 ? B.value.style.bars.colors.positive : B.value.style.bars.colors.negative, f = e.color ? `url(#gradient_datapoint_${t}_${j.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${j.value})` : `url(#gradient_negative_${t}_${j.value})`, ne = c + s / 2;
|
|
247
247
|
return {
|
|
248
248
|
...e,
|
|
249
|
-
color:
|
|
249
|
+
color: d,
|
|
250
250
|
gradient: f,
|
|
251
|
-
height:
|
|
252
|
-
intensity:
|
|
253
|
-
proportion:
|
|
251
|
+
height: r,
|
|
252
|
+
intensity: u,
|
|
253
|
+
proportion: n,
|
|
254
254
|
stroke: te,
|
|
255
255
|
textAnchor: ne,
|
|
256
|
-
trapX:
|
|
257
|
-
unitWidth:
|
|
256
|
+
trapX: l,
|
|
257
|
+
unitWidth: i,
|
|
258
258
|
width: s,
|
|
259
|
-
x:
|
|
260
|
-
y:
|
|
259
|
+
x: c,
|
|
260
|
+
y: ee
|
|
261
261
|
};
|
|
262
262
|
}));
|
|
263
263
|
function Xe(e, t) {
|
|
264
|
-
return s(B.value.style.labels.value.formatter, e.value,
|
|
264
|
+
return s(B.value.style.labels.value.formatter, e.value, r({
|
|
265
265
|
p: B.value.style.labels.value.prefix,
|
|
266
266
|
v: e.value,
|
|
267
267
|
s: B.value.style.labels.value.suffix,
|
|
@@ -271,7 +271,7 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
271
271
|
seriesIndex: t
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
let Z =
|
|
274
|
+
let Z = C(null), Ze = ie;
|
|
275
275
|
function Qe(e, t) {
|
|
276
276
|
Ze("selectDatapoint", {
|
|
277
277
|
datapoint: e,
|
|
@@ -300,9 +300,9 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
300
300
|
svgRef: G,
|
|
301
301
|
unitWidth: m(() => Y.value.drawingWidth / H.value.length * .9)
|
|
302
302
|
});
|
|
303
|
-
|
|
303
|
+
x(async () => {
|
|
304
304
|
await y(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
|
|
305
|
-
}),
|
|
305
|
+
}), O([
|
|
306
306
|
U,
|
|
307
307
|
W,
|
|
308
308
|
() => H.value
|
|
@@ -353,7 +353,7 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
353
353
|
e.valueLabel ?? ""
|
|
354
354
|
])
|
|
355
355
|
}));
|
|
356
|
-
return (e, t) => (
|
|
356
|
+
return (e, t) => (S(), _("div", {
|
|
357
357
|
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
358
358
|
ref_key: "histogramChart",
|
|
359
359
|
ref: P,
|
|
@@ -363,8 +363,8 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
363
363
|
v("div", {
|
|
364
364
|
id: `chart-instructions-${j.value}`,
|
|
365
365
|
class: "sr-only"
|
|
366
|
-
}, [v("p", null,
|
|
367
|
-
$.value?.rows?.length ? (
|
|
366
|
+
}, [v("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, be),
|
|
367
|
+
$.value?.rows?.length ? (S(), h(se, {
|
|
368
368
|
key: 0,
|
|
369
369
|
uid: j.value,
|
|
370
370
|
head: $.value.headers,
|
|
@@ -378,14 +378,14 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
378
378
|
"notice",
|
|
379
379
|
"caption"
|
|
380
380
|
])) : g("", !0),
|
|
381
|
-
B.value.style.title.text ? (
|
|
381
|
+
B.value.style.title.text ? (S(), _("div", {
|
|
382
382
|
key: 1,
|
|
383
383
|
ref_key: "chartTitle",
|
|
384
384
|
ref: N,
|
|
385
385
|
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${B.value.style.title.margin};padding: 0 6px;text-align:${B.value.style.title.textAlign}`)
|
|
386
386
|
}, [v("div", { style: b(`font-size:${B.value.style.title.fontSize}px;color:${B.value.style.title.color};font-weight:${B.value.style.title.bold ? "bold" : "normal"}`) }, [
|
|
387
|
-
de(
|
|
388
|
-
Z.value === null ? g("", !0) : (
|
|
387
|
+
de(E(B.value.style.title.text) + " ", 1),
|
|
388
|
+
Z.value === null ? g("", !0) : (S(), _("span", xe, "- " + E(X.value[Z.value].timeLabel || "") + " " + E(D(s)(B.value.style.labels.value.formatter, X.value[Z.value].value, D(r)({
|
|
389
389
|
p: B.value.style.labels.value.prefix,
|
|
390
390
|
v: X.value[Z.value].value,
|
|
391
391
|
s: B.value.style.labels.value.suffix,
|
|
@@ -394,15 +394,15 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
394
394
|
datapoint: X.value[Z.value],
|
|
395
395
|
seriesIndex: Z.value
|
|
396
396
|
})), 1)),
|
|
397
|
-
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (
|
|
398
|
-
], 4), B.value.style.title.subtitle.text ? (
|
|
397
|
+
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (S(), _("span", Se, E(` (${X.value[Z.value].valueLabel || 0})`), 1)) : g("", !0)
|
|
398
|
+
], 4), B.value.style.title.subtitle.text ? (S(), _("div", {
|
|
399
399
|
key: 0,
|
|
400
400
|
style: b(`font-size:${B.value.style.title.subtitle.fontSize}px;color:${B.value.style.title.subtitle.color};font-weight:${B.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
401
|
-
},
|
|
402
|
-
v("div", Ce, [(
|
|
401
|
+
}, E(B.value.style.title.subtitle.text), 5)) : g("", !0)], 4)) : g("", !0),
|
|
402
|
+
v("div", Ce, [(S(), _("svg", {
|
|
403
403
|
ref_key: "svgRef",
|
|
404
404
|
ref: G,
|
|
405
|
-
xmlns:
|
|
405
|
+
xmlns: D(c),
|
|
406
406
|
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
407
407
|
style: { overflow: "visible" },
|
|
408
408
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
@@ -411,17 +411,17 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
411
411
|
onBlur: it,
|
|
412
412
|
onKeydown: at
|
|
413
413
|
}, [
|
|
414
|
-
fe(
|
|
415
|
-
e.$slots["chart-background"] ? (
|
|
414
|
+
fe(D(ye)),
|
|
415
|
+
e.$slots["chart-background"] ? (S(), _("foreignObject", {
|
|
416
416
|
key: 0,
|
|
417
417
|
x: 0,
|
|
418
418
|
y: 0,
|
|
419
419
|
width: Y.value.width,
|
|
420
420
|
height: Y.value.height,
|
|
421
421
|
style: { pointerEvents: "none" }
|
|
422
|
-
}, [
|
|
422
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : g("", !0),
|
|
423
423
|
v("defs", null, [
|
|
424
|
-
(
|
|
424
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("radialGradient", {
|
|
425
425
|
id: `gradient_positive_${t}_${j.value}`,
|
|
426
426
|
cy: "50%",
|
|
427
427
|
cx: "50%",
|
|
@@ -430,12 +430,12 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
430
430
|
fy: "50%"
|
|
431
431
|
}, [v("stop", {
|
|
432
432
|
offset: "0%",
|
|
433
|
-
"stop-color":
|
|
433
|
+
"stop-color": D(a)(D(l)(B.value.style.bars.colors.positive, .05), e.intensity)
|
|
434
434
|
}, null, 8, De), v("stop", {
|
|
435
435
|
offset: "100%",
|
|
436
|
-
"stop-color":
|
|
436
|
+
"stop-color": D(a)(B.value.style.bars.colors.positive, e.intensity)
|
|
437
437
|
}, null, 8, Oe)], 8, Ee))), 256)),
|
|
438
|
-
(
|
|
438
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("radialGradient", {
|
|
439
439
|
id: `gradient_negative_${t}_${j.value}`,
|
|
440
440
|
cy: "50%",
|
|
441
441
|
cx: "50%",
|
|
@@ -444,12 +444,12 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
444
444
|
fy: "50%"
|
|
445
445
|
}, [v("stop", {
|
|
446
446
|
offset: "0%",
|
|
447
|
-
"stop-color":
|
|
447
|
+
"stop-color": D(a)(D(l)(B.value.style.bars.colors.negative, .05), e.intensity)
|
|
448
448
|
}, null, 8, Ae), v("stop", {
|
|
449
449
|
offset: "100%",
|
|
450
|
-
"stop-color":
|
|
450
|
+
"stop-color": D(a)(B.value.style.bars.colors.negative, e.intensity)
|
|
451
451
|
}, null, 8, je)], 8, ke))), 256)),
|
|
452
|
-
(
|
|
452
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("radialGradient", {
|
|
453
453
|
id: `gradient_datapoint_${t}_${j.value}`,
|
|
454
454
|
cy: "50%",
|
|
455
455
|
cx: "50%",
|
|
@@ -458,13 +458,13 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
458
458
|
fy: "50%"
|
|
459
459
|
}, [v("stop", {
|
|
460
460
|
offset: "0%",
|
|
461
|
-
"stop-color":
|
|
461
|
+
"stop-color": D(a)(D(l)(e.color, .05), e.intensity)
|
|
462
462
|
}, null, 8, Ne), v("stop", {
|
|
463
463
|
offset: "100%",
|
|
464
|
-
"stop-color":
|
|
464
|
+
"stop-color": D(a)(e.color, e.intensity)
|
|
465
465
|
}, null, 8, Pe)], 8, Me))), 256))
|
|
466
466
|
]),
|
|
467
|
-
(
|
|
467
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [Z.value !== null && Z.value === t ? (S(), _("rect", {
|
|
468
468
|
key: 0,
|
|
469
469
|
height: Y.value.height,
|
|
470
470
|
width: e.unitWidth,
|
|
@@ -476,7 +476,7 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
476
476
|
rx: B.value.style.selector.borderRadius,
|
|
477
477
|
"stroke-dasharray": B.value.style.selector.strokeDasharray
|
|
478
478
|
}, null, 8, Fe)) : g("", !0)]))), 256)),
|
|
479
|
-
!B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (
|
|
479
|
+
!B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (S(), _("g", Ie, [(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("rect", {
|
|
480
480
|
x: e.x,
|
|
481
481
|
y: e.y,
|
|
482
482
|
height: e.height,
|
|
@@ -486,7 +486,7 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
486
486
|
"stroke-width": B.value.style.bars.strokeWidth,
|
|
487
487
|
rx: `${B.value.style.bars.borderRadius * e.proportion / 12}%`,
|
|
488
488
|
class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
|
|
489
|
-
}, null, 10, Le))), 256))])) : (
|
|
489
|
+
}, null, 10, Le))), 256))])) : (S(), _("g", Re, [(S(!0), _(p, null, w(X.value, (e, t) => (S(), h(re, {
|
|
490
490
|
plot: {
|
|
491
491
|
x: e.x + e.width / 2,
|
|
492
492
|
y: e.y + e.height / 2
|
|
@@ -502,8 +502,8 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
502
502
|
"radius",
|
|
503
503
|
"class"
|
|
504
504
|
]))), 256))])),
|
|
505
|
-
|
|
506
|
-
(
|
|
505
|
+
D(V) ? g("", !0) : (S(), _(p, { key: 3 }, [
|
|
506
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [B.value.style.labels.value.show ? (S(), _("text", {
|
|
507
507
|
key: 0,
|
|
508
508
|
class: "vue-ui-sparkhistogram-top-label",
|
|
509
509
|
"text-anchor": "middle",
|
|
@@ -512,8 +512,8 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
512
512
|
"font-size": B.value.style.labels.value.fontSize,
|
|
513
513
|
"font-weight": B.value.style.labels.value.bold ? "bold" : "normal",
|
|
514
514
|
fill: B.value.style.labels.value.color
|
|
515
|
-
},
|
|
516
|
-
(
|
|
515
|
+
}, E(Xe(e, t)), 9, ze)) : g("", !0)]))), 256)),
|
|
516
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [e.valueLabel && B.value.style.labels.valueLabel.show ? (S(), _("text", {
|
|
517
517
|
key: 0,
|
|
518
518
|
class: "vue-ui-sparkhistogram-bottom-label",
|
|
519
519
|
x: e.textAnchor,
|
|
@@ -521,8 +521,8 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
521
521
|
"font-size": B.value.style.labels.valueLabel.fontSize,
|
|
522
522
|
"text-anchor": "middle",
|
|
523
523
|
fill: B.value.style.labels.valueLabel.color
|
|
524
|
-
},
|
|
525
|
-
(
|
|
524
|
+
}, E(e.valueLabel), 9, Be)) : g("", !0)]))), 256)),
|
|
525
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [e.timeLabel && B.value.style.labels.timeLabel.show ? (S(), _("text", {
|
|
526
526
|
key: 0,
|
|
527
527
|
class: "vue-ui-sparkhistogram-time-label",
|
|
528
528
|
x: e.textAnchor,
|
|
@@ -530,9 +530,9 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
530
530
|
"font-size": B.value.style.labels.timeLabel.fontSize,
|
|
531
531
|
fill: B.value.style.labels.timeLabel.color,
|
|
532
532
|
"text-anchor": "middle"
|
|
533
|
-
},
|
|
533
|
+
}, E(e.timeLabel), 9, Ve)) : g("", !0)]))), 256))
|
|
534
534
|
], 64)),
|
|
535
|
-
(
|
|
535
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [v("rect", {
|
|
536
536
|
height: Y.value.height,
|
|
537
537
|
width: e.unitWidth,
|
|
538
538
|
fill: "transparent",
|
|
@@ -542,19 +542,19 @@ var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, S
|
|
|
542
542
|
onMouseleave: (n) => et(e, t),
|
|
543
543
|
onClick: () => Qe(e, t)
|
|
544
544
|
}, null, 40, He)]))), 256))
|
|
545
|
-
], 40, we)), e.$slots.hint ? (
|
|
545
|
+
], 40, we)), e.$slots.hint ? (S(), _("div", Ue, [T(e.$slots, "hint", ge(me({
|
|
546
546
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
547
547
|
isVisible: L.value
|
|
548
548
|
})), void 0, !0)])) : g("", !0)]),
|
|
549
|
-
e.$slots.source ? (
|
|
549
|
+
e.$slots.source ? (S(), _("div", {
|
|
550
550
|
key: 2,
|
|
551
551
|
ref_key: "source",
|
|
552
552
|
ref: M,
|
|
553
553
|
dir: "auto"
|
|
554
|
-
}, [
|
|
555
|
-
|
|
554
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
555
|
+
T(e.$slots, "skeleton", {}, () => [D(V) ? (S(), h(te, { key: 0 })) : g("", !0)], !0)
|
|
556
556
|
], 36));
|
|
557
557
|
}
|
|
558
558
|
}, [["__scopeId", "data-v-8a87ff32"]]);
|
|
559
559
|
//#endregion
|
|
560
|
-
export {
|
|
560
|
+
export { ye as n, k as t };
|