vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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-hill.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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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/vue-data-ui.d.ts +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { computed as
|
|
2
|
+
import { Nt as t, X as n, Xt as r, b as i, bt as ee, i as a, mt as te, nt as o, q as ne, t as re } from "./lib-Dqr_-I6Y.js";
|
|
3
|
+
import { n as s, t as c } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ie } from "./useConfig-DwdGsXTx.js";
|
|
5
|
+
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as l } from "./useNestedProp-CulPqtou.js";
|
|
7
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as ce } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { t as le } from "./useChartAccessibility-DYqac8yF.js";
|
|
10
|
+
import { t as u } from "./usePrefersMotion-BC-CsqR1.js";
|
|
11
|
+
import { t as ue } from "./vue_ui_sparkgauge-BX1MS3bA.js";
|
|
12
|
+
import { computed as d, createBlock as de, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as fe, normalizeClass as pe, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, toRefs as me, unref as C, watch as w } from "vue";
|
|
13
13
|
//#region src/components/vue-ui-sparkgauge.vue
|
|
14
|
-
var
|
|
14
|
+
var T = /* @__PURE__ */ e({ default: () => j }), he = ["xmlns", "viewBox"], ge = ["width", "height"], E = [
|
|
15
15
|
"d",
|
|
16
16
|
"stroke",
|
|
17
17
|
"stroke-linecap"
|
|
@@ -52,14 +52,14 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
setup(e) {
|
|
55
|
-
let
|
|
56
|
-
|
|
55
|
+
let T = fe(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = ie(), { isThemeValid: M, warnInvalidTheme: N } = se(), P = u(), F = b(null), I = e, L = b(ne()), R = b(W());
|
|
56
|
+
s({
|
|
57
57
|
config: () => R.value,
|
|
58
58
|
dataset: () => I.dataset,
|
|
59
59
|
component: "VueUiSparkgauge",
|
|
60
|
-
rules: [
|
|
60
|
+
rules: [c.noHint]
|
|
61
61
|
});
|
|
62
|
-
let z =
|
|
62
|
+
let z = d(() => R.value.style.animation.show && !P.value), _e = d(() => r({
|
|
63
63
|
defaultConfig: { style: {
|
|
64
64
|
animation: { show: !1 },
|
|
65
65
|
background: "#99999930",
|
|
@@ -71,8 +71,8 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
71
71
|
gutter: { color: "#6A6A6A80" }
|
|
72
72
|
} },
|
|
73
73
|
userConfig: R.value.skeletonConfig ?? {}
|
|
74
|
-
})), { loading: B, FINAL_DATASET: V } =
|
|
75
|
-
...
|
|
74
|
+
})), { loading: B, FINAL_DATASET: V } = ae({
|
|
75
|
+
...me(I),
|
|
76
76
|
FINAL_CONFIG: R,
|
|
77
77
|
prepareConfig: W,
|
|
78
78
|
skeletonDataset: I.config?.skeletonDataset ?? {
|
|
@@ -81,40 +81,40 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
81
81
|
max: 1,
|
|
82
82
|
title: ""
|
|
83
83
|
},
|
|
84
|
-
skeletonConfig:
|
|
84
|
+
skeletonConfig: r({
|
|
85
85
|
defaultConfig: R.value,
|
|
86
86
|
userConfig: _e.value
|
|
87
87
|
})
|
|
88
|
-
}), H =
|
|
88
|
+
}), H = d(() => {
|
|
89
89
|
let e = V.value.min ?? 0, t = V.value.max ?? 0;
|
|
90
90
|
return {
|
|
91
91
|
min: e,
|
|
92
92
|
max: t,
|
|
93
93
|
diff: t - e
|
|
94
94
|
};
|
|
95
|
-
}), U =
|
|
95
|
+
}), U = d(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } = le({ config: { text: I.dataset?.title || "" } });
|
|
96
96
|
function W() {
|
|
97
|
-
let e =
|
|
97
|
+
let e = l({
|
|
98
98
|
userConfig: I.config,
|
|
99
99
|
defaultConfig: j
|
|
100
100
|
}), t = e.theme;
|
|
101
101
|
if (!t) return e;
|
|
102
102
|
if (!M.value(e)) return N(e), e;
|
|
103
|
-
let n =
|
|
104
|
-
userConfig:
|
|
103
|
+
let n = l({
|
|
104
|
+
userConfig: ue[t] || I.config,
|
|
105
105
|
defaultConfig: e
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return l({
|
|
108
108
|
userConfig: I.config,
|
|
109
109
|
defaultConfig: n
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
v(() => {
|
|
113
113
|
K();
|
|
114
114
|
});
|
|
115
|
-
let G =
|
|
115
|
+
let G = d(() => R.value.debug);
|
|
116
116
|
function K() {
|
|
117
|
-
|
|
117
|
+
t(I.dataset) ? o({
|
|
118
118
|
componentName: "VueUiSparkgauge",
|
|
119
119
|
type: "dataset",
|
|
120
120
|
debug: G.value
|
|
@@ -126,7 +126,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
126
126
|
"max"
|
|
127
127
|
]
|
|
128
128
|
}).forEach((e) => {
|
|
129
|
-
|
|
129
|
+
o({
|
|
130
130
|
componentName: "VueUiSparkgauge",
|
|
131
131
|
type: "datasetAttribute",
|
|
132
132
|
property: e,
|
|
@@ -134,19 +134,19 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
w(() => I.config, () => {
|
|
138
138
|
R.value = W(), J.value = z.value ? H.value.min : V.value.value, K();
|
|
139
139
|
}, { deep: !0 });
|
|
140
|
-
let q =
|
|
140
|
+
let q = d(() => ({
|
|
141
141
|
height: R.value.style.height,
|
|
142
142
|
width: 128,
|
|
143
143
|
base: R.value.style.basePosition
|
|
144
|
-
})), J =
|
|
145
|
-
|
|
144
|
+
})), J = b(z.value ? H.value.min : V.value.value);
|
|
145
|
+
w([() => V.value.value, z], ([e, t]) => {
|
|
146
146
|
Y(e || 0, t);
|
|
147
147
|
}, { immediate: !0 });
|
|
148
|
-
let ye =
|
|
149
|
-
|
|
148
|
+
let ye = d(() => J.value > H.value.max ? H.value.max : J.value < H.value.min ? H.value.min : J.value);
|
|
149
|
+
v(() => {
|
|
150
150
|
Y(V.value.value || 0);
|
|
151
151
|
});
|
|
152
152
|
function Y(e, t = z.value) {
|
|
@@ -159,40 +159,40 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
159
159
|
}
|
|
160
160
|
n();
|
|
161
161
|
}
|
|
162
|
-
let X =
|
|
162
|
+
let X = d(() => V.value.title ?? ""), Z = d(() => {
|
|
163
163
|
let e = H.value.diff;
|
|
164
164
|
if (!isFinite(e) || e === 0) return 0;
|
|
165
165
|
let t = H.value.min, n = ye.value;
|
|
166
166
|
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
167
|
-
}), Q =
|
|
168
|
-
return
|
|
167
|
+
}), Q = d(() => ee(R.value.style.colors.min, R.value.style.colors.max, H.value.min, H.value.max, J.value)), $ = d(() => R.value.style.dataLabel.autoColor ? Q.value : R.value.style.dataLabel.color), be = d(() => R.value.style.track.autoColor ? Q.value : R.value.style.track.color);
|
|
168
|
+
return _(() => {
|
|
169
169
|
F.value && cancelAnimationFrame(F.value);
|
|
170
|
-
}), (e, t) => (
|
|
170
|
+
}), (e, t) => (y(), p("div", {
|
|
171
171
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
172
172
|
style: g(`font-family:${R.value.style.fontFamily};width: 100%; background:${R.value.style.background}`)
|
|
173
173
|
}, [
|
|
174
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (
|
|
174
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (y(), p("div", {
|
|
175
175
|
key: 0,
|
|
176
176
|
class: "vue-data-ui-sparkgauge-label",
|
|
177
177
|
style: g(`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}`)
|
|
178
|
-
},
|
|
179
|
-
(
|
|
178
|
+
}, S(X.value), 5)) : f("", !0),
|
|
179
|
+
(y(), p("svg", {
|
|
180
180
|
ref_key: "svgRef",
|
|
181
181
|
ref: ve,
|
|
182
|
-
xmlns:
|
|
182
|
+
xmlns: C(re),
|
|
183
183
|
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
184
184
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
185
185
|
}, [
|
|
186
|
-
|
|
187
|
-
e.$slots["chart-background"] && !
|
|
186
|
+
h(C(T)),
|
|
187
|
+
e.$slots["chart-background"] && !C(B) ? (y(), p("foreignObject", {
|
|
188
188
|
key: 0,
|
|
189
189
|
x: 0,
|
|
190
190
|
y: 0,
|
|
191
191
|
width: q.value.width,
|
|
192
192
|
height: q.value.height,
|
|
193
193
|
style: { pointerEvents: "none" }
|
|
194
|
-
}, [
|
|
195
|
-
|
|
194
|
+
}, [x(e.$slots, "chart-background")], 8, ge)) : f("", !0),
|
|
195
|
+
m("defs", null, [h(ce, {
|
|
196
196
|
t: "linear",
|
|
197
197
|
id: `gradient_${L.value}`,
|
|
198
198
|
x1: "-10%",
|
|
@@ -209,14 +209,14 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
209
209
|
1
|
|
210
210
|
]]
|
|
211
211
|
}, null, 8, ["id", "stops"])]),
|
|
212
|
-
|
|
212
|
+
m("path", {
|
|
213
213
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
214
214
|
stroke: R.value.style.gutter.color,
|
|
215
215
|
"stroke-width": 8,
|
|
216
216
|
"stroke-linecap": R.value.style.gutter.strokeLinecap,
|
|
217
217
|
fill: "none"
|
|
218
218
|
}, null, 8, E),
|
|
219
|
-
Z.value === 0 ?
|
|
219
|
+
Z.value === 0 ? f("", !0) : (y(), p("path", {
|
|
220
220
|
key: 1,
|
|
221
221
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
222
222
|
stroke: R.value.style.colors.showGradient ? `url(#gradient_${L.value})` : be.value,
|
|
@@ -225,10 +225,10 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
225
225
|
fill: "none",
|
|
226
226
|
"stroke-dasharray": 169.5,
|
|
227
227
|
"stroke-dashoffset": 169.5 - 169.5 * Z.value,
|
|
228
|
-
class:
|
|
228
|
+
class: pe({ "vue-ui-sparkgauge-track": R.value.style.animation.show }),
|
|
229
229
|
style: g(R.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${R.value.style.animation.speedMs}ms ease-in;` : "")
|
|
230
230
|
}, null, 14, D)),
|
|
231
|
-
|
|
231
|
+
C(B) ? (y(), p("rect", {
|
|
232
232
|
key: 2,
|
|
233
233
|
x: q.value.width / 2 - R.value.style.dataLabel.fontSize / 2,
|
|
234
234
|
y: q.value.base + 6 + R.value.style.dataLabel.offsetY - R.value.style.dataLabel.fontSize,
|
|
@@ -236,7 +236,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
236
236
|
height: R.value.style.dataLabel.fontSize,
|
|
237
237
|
fill: "#6A6A6A50",
|
|
238
238
|
rx: 3
|
|
239
|
-
}, null, 8, O)) : (
|
|
239
|
+
}, null, 8, O)) : (y(), p("text", {
|
|
240
240
|
key: 3,
|
|
241
241
|
"text-anchor": "middle",
|
|
242
242
|
x: q.value.width / 2,
|
|
@@ -244,25 +244,25 @@ var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T =
|
|
|
244
244
|
"font-size": R.value.style.dataLabel.fontSize,
|
|
245
245
|
fill: $.value,
|
|
246
246
|
"font-weight": R.value.style.dataLabel.bold ? "bold" : "normal"
|
|
247
|
-
},
|
|
247
|
+
}, S(C(a)(R.value.style.dataLabel.formatter, C(i)(J.value), C(n)({
|
|
248
248
|
p: R.value.style.dataLabel.prefix,
|
|
249
|
-
v:
|
|
249
|
+
v: C(i)(J.value),
|
|
250
250
|
s: R.value.style.dataLabel.suffix,
|
|
251
251
|
r: R.value.style.dataLabel.rounding
|
|
252
252
|
}), {
|
|
253
|
-
datapoint:
|
|
253
|
+
datapoint: C(i)(J.value),
|
|
254
254
|
color: $.value
|
|
255
255
|
})), 9, k))
|
|
256
|
-
], 8,
|
|
257
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (
|
|
256
|
+
], 8, he)),
|
|
257
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (y(), p("div", {
|
|
258
258
|
key: 1,
|
|
259
259
|
class: "vue-data-ui-sparkgauge-label",
|
|
260
260
|
style: g(`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}`)
|
|
261
|
-
},
|
|
262
|
-
e.$slots.source ? (
|
|
263
|
-
|
|
261
|
+
}, S(X.value), 5)) : f("", !0),
|
|
262
|
+
e.$slots.source ? (y(), p("div", A, [x(e.$slots, "source")], 512)) : f("", !0),
|
|
263
|
+
x(e.$slots, "skeleton", {}, () => [C(B) ? (y(), de(oe, { key: 0 })) : f("", !0)])
|
|
264
264
|
], 4));
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
//#endregion
|
|
268
|
-
export {
|
|
268
|
+
export { T as n, j as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ht as t, Nt as n, Ut as r, X as i, Xt as a, i as o, mt as s, nt as c, q as l, t as ee } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as u, t as d } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as f } from "./useConfig-DwdGsXTx.js";
|
|
5
5
|
import { n as p, t as te } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as m } from "./useNestedProp-
|
|
6
|
+
import { t as m } from "./useNestedProp-CulPqtou.js";
|
|
7
7
|
import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as re } from "./Shape-
|
|
8
|
+
import { t as re } from "./Shape-BAL5bQmA.js";
|
|
9
9
|
import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
10
|
import { l as ae, t as oe } from "./useResponsive-ZtArZtUf.js";
|
|
11
11
|
import { t as h } from "./DefGrad-DVBqDjhO.js";
|
|
@@ -89,7 +89,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
89
89
|
emits: ["selectDatapoint"],
|
|
90
90
|
setup(e, { emit: ie }) {
|
|
91
91
|
be((e) => ({ v5034d9c8: Xe.value }));
|
|
92
|
-
let A = pe(() => import("./PackageVersion-
|
|
92
|
+
let A = pe(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), { vue_ui_sparkhistogram: j } = f(), { isThemeValid: Ie, warnInvalidTheme: Le } = ne(), M = e, N = w(l()), P = w(null), F = w(null), I = w(null), L = w(null), R = w(null), z = w(!1), B = w(null), V = w("pointer"), H = w(q());
|
|
93
93
|
u({
|
|
94
94
|
config: () => H.value,
|
|
95
95
|
dataset: () => M.dataset,
|
|
@@ -103,7 +103,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
103
103
|
]
|
|
104
104
|
}]
|
|
105
105
|
});
|
|
106
|
-
let Re = _(() =>
|
|
106
|
+
let Re = _(() => a({
|
|
107
107
|
defaultConfig: { style: {
|
|
108
108
|
animation: { show: !1 },
|
|
109
109
|
backgroundColor: "#99999930"
|
|
@@ -180,7 +180,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
180
180
|
color: "#CACACA"
|
|
181
181
|
}
|
|
182
182
|
],
|
|
183
|
-
skeletonConfig:
|
|
183
|
+
skeletonConfig: a({
|
|
184
184
|
defaultConfig: H.value,
|
|
185
185
|
userConfig: Re.value
|
|
186
186
|
})
|
|
@@ -206,7 +206,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
206
206
|
});
|
|
207
207
|
let Ve = _(() => H.value.debug);
|
|
208
208
|
function He() {
|
|
209
|
-
if (
|
|
209
|
+
if (n(M.dataset) ? c({
|
|
210
210
|
componentName: "VueUiSparkHistogram",
|
|
211
211
|
type: "dataset",
|
|
212
212
|
debug: Ve.value
|
|
@@ -215,7 +215,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
215
215
|
datasetObject: e,
|
|
216
216
|
requiredAttributes: ["value"]
|
|
217
217
|
}).forEach((e) => {
|
|
218
|
-
|
|
218
|
+
c({
|
|
219
219
|
componentName: "VueUiSparkHistogram",
|
|
220
220
|
type: "datasetSerieAttribute",
|
|
221
221
|
property: e,
|
|
@@ -257,7 +257,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
257
257
|
return Math.abs(e) / Ue.value;
|
|
258
258
|
}
|
|
259
259
|
let Y = _(() => U.value.map((e, n) => {
|
|
260
|
-
let r = We(e.value || 0), i = J.value.drawingHeight * r, a = J.value.drawingWidth / U.value.length, o = a * (H.value.style.bars.gap / 100), s = a - o,
|
|
260
|
+
let r = We(e.value || 0), i = J.value.drawingHeight * r, a = J.value.drawingWidth / U.value.length, o = a * (H.value.style.bars.gap / 100), s = a - o, c = J.value.centerY - i / 2, l = J.value.left + (o / 2 + n * a), ee = J.value.left + n * a, u = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), d = e.color ? e.color : e.value >= 0 ? t(H.value.style.bars.colors.positive, u) : t(H.value.style.bars.colors.negative, u), f = e.color ? e.color : e.value >= 0 ? H.value.style.bars.colors.positive : H.value.style.bars.colors.negative, p = e.color ? `url(#gradient_datapoint_${n}_${N.value})` : e.value >= 0 ? `url(#gradient_positive_${n}_${N.value})` : `url(#gradient_negative_${n}_${N.value})`, te = l + s / 2;
|
|
261
261
|
return {
|
|
262
262
|
...e,
|
|
263
263
|
color: d,
|
|
@@ -267,15 +267,15 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
267
267
|
proportion: r,
|
|
268
268
|
stroke: f,
|
|
269
269
|
textAnchor: te,
|
|
270
|
-
trapX:
|
|
270
|
+
trapX: ee,
|
|
271
271
|
unitWidth: a,
|
|
272
272
|
width: s,
|
|
273
|
-
x:
|
|
274
|
-
y:
|
|
273
|
+
x: l,
|
|
274
|
+
y: c
|
|
275
275
|
};
|
|
276
276
|
}));
|
|
277
277
|
function Ge(e, t) {
|
|
278
|
-
return
|
|
278
|
+
return o(H.value.style.labels.value.formatter, e.value, i({
|
|
279
279
|
p: H.value.style.labels.value.prefix,
|
|
280
280
|
v: e.value,
|
|
281
281
|
s: H.value.style.labels.value.suffix,
|
|
@@ -399,7 +399,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
399
399
|
style: S(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${H.value.style.title.margin};padding: 0 6px;text-align:${H.value.style.title.textAlign}`)
|
|
400
400
|
}, [x("div", { style: S(`font-size:${H.value.style.title.fontSize}px;color:${H.value.style.title.color};font-weight:${H.value.style.title.bold ? "bold" : "normal"}`) }, [
|
|
401
401
|
de(D(H.value.style.title.text) + " ", 1),
|
|
402
|
-
X.value === null ? y("", !0) : (C(), b("span", Se, "- " + D(Y.value[X.value].timeLabel || "") + " " + D(O(
|
|
402
|
+
X.value === null ? y("", !0) : (C(), b("span", Se, "- " + D(Y.value[X.value].timeLabel || "") + " " + D(O(o)(H.value.style.labels.value.formatter, Y.value[X.value].value, O(i)({
|
|
403
403
|
p: H.value.style.labels.value.prefix,
|
|
404
404
|
v: Y.value[X.value].value,
|
|
405
405
|
s: H.value.style.labels.value.suffix,
|
|
@@ -416,7 +416,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
|
|
|
416
416
|
x("div", we, [(C(), b("svg", {
|
|
417
417
|
ref_key: "svgRef",
|
|
418
418
|
ref: K,
|
|
419
|
-
xmlns: O(
|
|
419
|
+
xmlns: O(ee),
|
|
420
420
|
viewBox: `0 0 ${J.value.width} ${J.value.height}`,
|
|
421
421
|
style: { overflow: "visible" },
|
|
422
422
|
"aria-describedby": `chart-instructions-${N.value}`,
|