vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
2
|
+
import { Jt as t, X as n, b as r, i, jt as ee, pt as te, q as ne, t as re, tt as a, yt as ie } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as se } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { n as ce, t as o } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as s } from "./useNestedProp--NSEmhOH.js";
|
|
7
|
+
import { t as c } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as le } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { t as l } from "./useChartAccessibility-DYqac8yF.js";
|
|
10
|
+
import { t as ue } from "./usePrefersMotion-BC-CsqR1.js";
|
|
11
|
+
import { t as de } from "./vue_ui_sparkgauge-BX1MS3bA.js";
|
|
12
|
+
import { computed as u, createBlock as fe, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineAsyncComponent as pe, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as me, onMounted as _, openBlock as v, ref as y, renderSlot as b, toDisplayString as x, toRefs as he, unref as S, watch as C } from "vue";
|
|
12
13
|
//#region src/components/vue-ui-sparkgauge.vue
|
|
13
|
-
var
|
|
14
|
+
var w = /* @__PURE__ */ e({ default: () => j }), ge = ["xmlns", "viewBox"], T = ["width", "height"], E = [
|
|
14
15
|
"d",
|
|
15
16
|
"stroke",
|
|
16
17
|
"stroke-linecap"
|
|
17
|
-
],
|
|
18
|
+
], D = [
|
|
18
19
|
"d",
|
|
19
20
|
"stroke",
|
|
20
21
|
"stroke-linecap",
|
|
@@ -51,7 +52,14 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
setup(e) {
|
|
54
|
-
let
|
|
55
|
+
let w = pe(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = se(), { isThemeValid: M, warnInvalidTheme: N } = c(), P = ue(), F = y(null), I = e, L = y(ne()), R = y(W());
|
|
56
|
+
ae({
|
|
57
|
+
config: () => R.value,
|
|
58
|
+
dataset: () => I.dataset,
|
|
59
|
+
component: "VueUiSparkgauge",
|
|
60
|
+
rules: [oe.noHint]
|
|
61
|
+
});
|
|
62
|
+
let z = u(() => R.value.style.animation.show && !P.value), _e = u(() => t({
|
|
55
63
|
defaultConfig: { style: {
|
|
56
64
|
animation: { show: !1 },
|
|
57
65
|
background: "#99999930",
|
|
@@ -63,8 +71,8 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
63
71
|
gutter: { color: "#6A6A6A80" }
|
|
64
72
|
} },
|
|
65
73
|
userConfig: R.value.skeletonConfig ?? {}
|
|
66
|
-
})), { loading: B, FINAL_DATASET: V } =
|
|
67
|
-
...
|
|
74
|
+
})), { loading: B, FINAL_DATASET: V } = ce({
|
|
75
|
+
...he(I),
|
|
68
76
|
FINAL_CONFIG: R,
|
|
69
77
|
prepareConfig: W,
|
|
70
78
|
skeletonDataset: I.config?.skeletonDataset ?? {
|
|
@@ -73,40 +81,40 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
73
81
|
max: 1,
|
|
74
82
|
title: ""
|
|
75
83
|
},
|
|
76
|
-
skeletonConfig:
|
|
84
|
+
skeletonConfig: t({
|
|
77
85
|
defaultConfig: R.value,
|
|
78
|
-
userConfig:
|
|
86
|
+
userConfig: _e.value
|
|
79
87
|
})
|
|
80
|
-
}), H =
|
|
88
|
+
}), H = u(() => {
|
|
81
89
|
let e = V.value.min ?? 0, t = V.value.max ?? 0;
|
|
82
90
|
return {
|
|
83
91
|
min: e,
|
|
84
92
|
max: t,
|
|
85
93
|
diff: t - e
|
|
86
94
|
};
|
|
87
|
-
}), U =
|
|
95
|
+
}), U = u(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } = l({ config: { text: I.dataset?.title || "" } });
|
|
88
96
|
function W() {
|
|
89
|
-
let e =
|
|
97
|
+
let e = s({
|
|
90
98
|
userConfig: I.config,
|
|
91
99
|
defaultConfig: j
|
|
92
100
|
}), t = e.theme;
|
|
93
101
|
if (!t) return e;
|
|
94
102
|
if (!M.value(e)) return N(e), e;
|
|
95
|
-
let n =
|
|
96
|
-
userConfig:
|
|
103
|
+
let n = s({
|
|
104
|
+
userConfig: de[t] || I.config,
|
|
97
105
|
defaultConfig: e
|
|
98
106
|
});
|
|
99
|
-
return
|
|
107
|
+
return s({
|
|
100
108
|
userConfig: I.config,
|
|
101
109
|
defaultConfig: n
|
|
102
110
|
});
|
|
103
111
|
}
|
|
104
|
-
|
|
112
|
+
_(() => {
|
|
105
113
|
K();
|
|
106
114
|
});
|
|
107
|
-
let G =
|
|
115
|
+
let G = u(() => R.value.debug);
|
|
108
116
|
function K() {
|
|
109
|
-
|
|
117
|
+
ee(I.dataset) ? a({
|
|
110
118
|
componentName: "VueUiSparkgauge",
|
|
111
119
|
type: "dataset",
|
|
112
120
|
debug: G.value
|
|
@@ -118,7 +126,7 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
118
126
|
"max"
|
|
119
127
|
]
|
|
120
128
|
}).forEach((e) => {
|
|
121
|
-
|
|
129
|
+
a({
|
|
122
130
|
componentName: "VueUiSparkgauge",
|
|
123
131
|
type: "datasetAttribute",
|
|
124
132
|
property: e,
|
|
@@ -126,19 +134,19 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
126
134
|
});
|
|
127
135
|
});
|
|
128
136
|
}
|
|
129
|
-
|
|
137
|
+
C(() => I.config, () => {
|
|
130
138
|
R.value = W(), J.value = z.value ? H.value.min : V.value.value, K();
|
|
131
139
|
}, { deep: !0 });
|
|
132
|
-
let q =
|
|
140
|
+
let q = u(() => ({
|
|
133
141
|
height: R.value.style.height,
|
|
134
142
|
width: 128,
|
|
135
143
|
base: R.value.style.basePosition
|
|
136
|
-
})), J =
|
|
137
|
-
|
|
144
|
+
})), J = y(z.value ? H.value.min : V.value.value);
|
|
145
|
+
C([() => V.value.value, z], ([e, t]) => {
|
|
138
146
|
Y(e || 0, t);
|
|
139
147
|
}, { immediate: !0 });
|
|
140
|
-
let
|
|
141
|
-
|
|
148
|
+
let ye = u(() => J.value > H.value.max ? H.value.max : J.value < H.value.min ? H.value.min : J.value);
|
|
149
|
+
_(() => {
|
|
142
150
|
Y(V.value.value || 0);
|
|
143
151
|
});
|
|
144
152
|
function Y(e, t = z.value) {
|
|
@@ -151,40 +159,40 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
151
159
|
}
|
|
152
160
|
n();
|
|
153
161
|
}
|
|
154
|
-
let X =
|
|
162
|
+
let X = u(() => V.value.title ?? ""), Z = u(() => {
|
|
155
163
|
let e = H.value.diff;
|
|
156
164
|
if (!isFinite(e) || e === 0) return 0;
|
|
157
|
-
let t = H.value.min, n =
|
|
165
|
+
let t = H.value.min, n = ye.value;
|
|
158
166
|
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
159
|
-
}), Q =
|
|
160
|
-
return
|
|
167
|
+
}), Q = u(() => ie(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);
|
|
168
|
+
return me(() => {
|
|
161
169
|
F.value && cancelAnimationFrame(F.value);
|
|
162
|
-
}), (e, t) => (
|
|
170
|
+
}), (e, t) => (v(), f("div", {
|
|
163
171
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
164
|
-
style:
|
|
172
|
+
style: g(`font-family:${R.value.style.fontFamily};width: 100%; background:${R.value.style.background}`)
|
|
165
173
|
}, [
|
|
166
|
-
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" ? (v(), f("div", {
|
|
167
175
|
key: 0,
|
|
168
176
|
class: "vue-data-ui-sparkgauge-label",
|
|
169
|
-
style:
|
|
170
|
-
},
|
|
171
|
-
(
|
|
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
|
+
}, x(X.value), 5)) : d("", !0),
|
|
179
|
+
(v(), f("svg", {
|
|
172
180
|
ref_key: "svgRef",
|
|
173
|
-
ref:
|
|
174
|
-
xmlns:
|
|
181
|
+
ref: ve,
|
|
182
|
+
xmlns: S(re),
|
|
175
183
|
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
176
184
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
177
185
|
}, [
|
|
178
|
-
|
|
179
|
-
e.$slots["chart-background"] && !
|
|
186
|
+
m(S(w)),
|
|
187
|
+
e.$slots["chart-background"] && !S(B) ? (v(), f("foreignObject", {
|
|
180
188
|
key: 0,
|
|
181
189
|
x: 0,
|
|
182
190
|
y: 0,
|
|
183
191
|
width: q.value.width,
|
|
184
192
|
height: q.value.height,
|
|
185
193
|
style: { pointerEvents: "none" }
|
|
186
|
-
}, [
|
|
187
|
-
|
|
194
|
+
}, [b(e.$slots, "chart-background")], 8, T)) : d("", !0),
|
|
195
|
+
p("defs", null, [m(le, {
|
|
188
196
|
t: "linear",
|
|
189
197
|
id: `gradient_${L.value}`,
|
|
190
198
|
x1: "-10%",
|
|
@@ -201,26 +209,26 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
201
209
|
1
|
|
202
210
|
]]
|
|
203
211
|
}, null, 8, ["id", "stops"])]),
|
|
204
|
-
|
|
212
|
+
p("path", {
|
|
205
213
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
206
214
|
stroke: R.value.style.gutter.color,
|
|
207
215
|
"stroke-width": 8,
|
|
208
216
|
"stroke-linecap": R.value.style.gutter.strokeLinecap,
|
|
209
217
|
fill: "none"
|
|
210
|
-
}, null, 8,
|
|
211
|
-
Z.value === 0 ?
|
|
218
|
+
}, null, 8, E),
|
|
219
|
+
Z.value === 0 ? d("", !0) : (v(), f("path", {
|
|
212
220
|
key: 1,
|
|
213
221
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
214
|
-
stroke: R.value.style.colors.showGradient ? `url(#gradient_${L.value})` :
|
|
222
|
+
stroke: R.value.style.colors.showGradient ? `url(#gradient_${L.value})` : be.value,
|
|
215
223
|
"stroke-width": 8,
|
|
216
224
|
"stroke-linecap": R.value.style.track.strokeLinecap,
|
|
217
225
|
fill: "none",
|
|
218
226
|
"stroke-dasharray": 169.5,
|
|
219
227
|
"stroke-dashoffset": 169.5 - 169.5 * Z.value,
|
|
220
|
-
class:
|
|
221
|
-
style:
|
|
222
|
-
}, null, 14,
|
|
223
|
-
|
|
228
|
+
class: h({ "vue-ui-sparkgauge-track": R.value.style.animation.show }),
|
|
229
|
+
style: g(R.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${R.value.style.animation.speedMs}ms ease-in;` : "")
|
|
230
|
+
}, null, 14, D)),
|
|
231
|
+
S(B) ? (v(), f("rect", {
|
|
224
232
|
key: 2,
|
|
225
233
|
x: q.value.width / 2 - R.value.style.dataLabel.fontSize / 2,
|
|
226
234
|
y: q.value.base + 6 + R.value.style.dataLabel.offsetY - R.value.style.dataLabel.fontSize,
|
|
@@ -228,7 +236,7 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
228
236
|
height: R.value.style.dataLabel.fontSize,
|
|
229
237
|
fill: "#6A6A6A50",
|
|
230
238
|
rx: 3
|
|
231
|
-
}, null, 8, O)) : (
|
|
239
|
+
}, null, 8, O)) : (v(), f("text", {
|
|
232
240
|
key: 3,
|
|
233
241
|
"text-anchor": "middle",
|
|
234
242
|
x: q.value.width / 2,
|
|
@@ -236,25 +244,25 @@ var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe =
|
|
|
236
244
|
"font-size": R.value.style.dataLabel.fontSize,
|
|
237
245
|
fill: $.value,
|
|
238
246
|
"font-weight": R.value.style.dataLabel.bold ? "bold" : "normal"
|
|
239
|
-
},
|
|
247
|
+
}, x(S(i)(R.value.style.dataLabel.formatter, S(r)(J.value), S(n)({
|
|
240
248
|
p: R.value.style.dataLabel.prefix,
|
|
241
|
-
v:
|
|
249
|
+
v: S(r)(J.value),
|
|
242
250
|
s: R.value.style.dataLabel.suffix,
|
|
243
251
|
r: R.value.style.dataLabel.rounding
|
|
244
252
|
}), {
|
|
245
|
-
datapoint:
|
|
253
|
+
datapoint: S(r)(J.value),
|
|
246
254
|
color: $.value
|
|
247
255
|
})), 9, k))
|
|
248
|
-
], 8,
|
|
249
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (
|
|
256
|
+
], 8, ge)),
|
|
257
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (v(), f("div", {
|
|
250
258
|
key: 1,
|
|
251
259
|
class: "vue-data-ui-sparkgauge-label",
|
|
252
|
-
style:
|
|
253
|
-
},
|
|
254
|
-
e.$slots.source ? (
|
|
255
|
-
|
|
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
|
+
}, x(X.value), 5)) : d("", !0),
|
|
262
|
+
e.$slots.source ? (v(), f("div", A, [b(e.$slots, "source")], 512)) : d("", !0),
|
|
263
|
+
b(e.$slots, "skeleton", {}, () => [S(B) ? (v(), fe(o, { key: 0 })) : d("", !0)])
|
|
256
264
|
], 4));
|
|
257
265
|
}
|
|
258
266
|
};
|
|
259
267
|
//#endregion
|
|
260
|
-
export {
|
|
268
|
+
export { w as n, j as t };
|