vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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-label.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Pt as t, X as n, Zt as r, b as i, ht as ee, i as te, nt as a, q as ne, t as re, xt as o } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as oe } from "./useConfig-D32D002m.js";
|
|
5
|
-
import { n as s, t as c } from "./BaseScanner-Dzc8VT3j.js";
|
|
6
|
-
import { t as l } from "./useNestedProp-Chvyfpl-.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 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";
|
|
13
|
-
//#region src/components/vue-ui-sparkgauge.vue
|
|
14
|
-
var w = /* @__PURE__ */ e({ default: () => O }), ge = ["xmlns", "viewBox"], _e = ["width", "height"], ve = [
|
|
15
|
-
"d",
|
|
16
|
-
"stroke",
|
|
17
|
-
"stroke-linecap"
|
|
18
|
-
], ye = [
|
|
19
|
-
"d",
|
|
20
|
-
"stroke",
|
|
21
|
-
"stroke-linecap",
|
|
22
|
-
"stroke-dashoffset"
|
|
23
|
-
], T = [
|
|
24
|
-
"x",
|
|
25
|
-
"y",
|
|
26
|
-
"width",
|
|
27
|
-
"height"
|
|
28
|
-
], E = [
|
|
29
|
-
"x",
|
|
30
|
-
"y",
|
|
31
|
-
"font-size",
|
|
32
|
-
"fill",
|
|
33
|
-
"font-weight"
|
|
34
|
-
], D = {
|
|
35
|
-
key: 2,
|
|
36
|
-
ref: "source",
|
|
37
|
-
dir: "auto"
|
|
38
|
-
}, O = {
|
|
39
|
-
__name: "vue-ui-sparkgauge",
|
|
40
|
-
props: {
|
|
41
|
-
config: {
|
|
42
|
-
type: Object,
|
|
43
|
-
default() {
|
|
44
|
-
return {};
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
dataset: {
|
|
48
|
-
type: Object,
|
|
49
|
-
default() {
|
|
50
|
-
return {};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
setup(e) {
|
|
55
|
-
let w = pe(() => import("./PackageVersion-CEvZNFTz.js").then((e) => e.t)), { vue_ui_sparkgauge: O } = oe(), { isThemeValid: k, warnInvalidTheme: A } = se(), j = ue(), M = y(null), N = e, P = y(ne()), F = y(W()), I = u(() => F.value.style.dataLabel), L = u(() => F.value.style);
|
|
56
|
-
ie({
|
|
57
|
-
config: () => F.value,
|
|
58
|
-
dataset: () => N.dataset,
|
|
59
|
-
component: "VueUiSparkgauge",
|
|
60
|
-
rules: [ae.noHint]
|
|
61
|
-
});
|
|
62
|
-
let R = u(() => L.value.animation.show && !j.value), z = u(() => r({
|
|
63
|
-
defaultConfig: { style: {
|
|
64
|
-
animation: { show: !1 },
|
|
65
|
-
background: "#99999930",
|
|
66
|
-
colors: {
|
|
67
|
-
min: "#CACACA",
|
|
68
|
-
max: "#6A6A6A"
|
|
69
|
-
},
|
|
70
|
-
track: { autoColor: !0 },
|
|
71
|
-
gutter: { color: "#6A6A6A80" }
|
|
72
|
-
} },
|
|
73
|
-
userConfig: F.value.skeletonConfig ?? {}
|
|
74
|
-
})), { loading: B, FINAL_DATASET: V } = s({
|
|
75
|
-
...he(N),
|
|
76
|
-
FINAL_CONFIG: F,
|
|
77
|
-
prepareConfig: W,
|
|
78
|
-
skeletonDataset: N.config?.skeletonDataset ?? {
|
|
79
|
-
value: 0,
|
|
80
|
-
min: -1,
|
|
81
|
-
max: 1,
|
|
82
|
-
title: ""
|
|
83
|
-
},
|
|
84
|
-
skeletonConfig: r({
|
|
85
|
-
defaultConfig: F.value,
|
|
86
|
-
userConfig: z.value
|
|
87
|
-
})
|
|
88
|
-
}), H = u(() => {
|
|
89
|
-
let e = V.value.min ?? 0, t = V.value.max ?? 0;
|
|
90
|
-
return {
|
|
91
|
-
min: e,
|
|
92
|
-
max: t,
|
|
93
|
-
diff: t - e
|
|
94
|
-
};
|
|
95
|
-
}), U = u(() => H.value.diff / L.value.animation.speedMs), { svgRef: be } = le({ config: { text: N.dataset?.title || "" } });
|
|
96
|
-
function W() {
|
|
97
|
-
let e = l({
|
|
98
|
-
userConfig: N.config,
|
|
99
|
-
defaultConfig: O
|
|
100
|
-
}), t = e.theme;
|
|
101
|
-
if (!t) return e;
|
|
102
|
-
if (!k.value(e)) return A(e), e;
|
|
103
|
-
let n = l({
|
|
104
|
-
userConfig: de[t] || N.config,
|
|
105
|
-
defaultConfig: e
|
|
106
|
-
});
|
|
107
|
-
return l({
|
|
108
|
-
userConfig: N.config,
|
|
109
|
-
defaultConfig: n
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
_(() => {
|
|
113
|
-
K();
|
|
114
|
-
});
|
|
115
|
-
let G = u(() => F.value.debug);
|
|
116
|
-
function K() {
|
|
117
|
-
t(N.dataset) ? a({
|
|
118
|
-
componentName: "VueUiSparkgauge",
|
|
119
|
-
type: "dataset",
|
|
120
|
-
debug: G.value
|
|
121
|
-
}) : ee({
|
|
122
|
-
datasetObject: N.dataset,
|
|
123
|
-
requiredAttributes: [
|
|
124
|
-
"value",
|
|
125
|
-
"min",
|
|
126
|
-
"max"
|
|
127
|
-
]
|
|
128
|
-
}).forEach((e) => {
|
|
129
|
-
a({
|
|
130
|
-
componentName: "VueUiSparkgauge",
|
|
131
|
-
type: "datasetAttribute",
|
|
132
|
-
property: e,
|
|
133
|
-
debug: G.value
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
C(() => N.config, () => {
|
|
138
|
-
F.value = W(), J.value = R.value ? H.value.min : V.value.value, K();
|
|
139
|
-
}, { deep: !0 });
|
|
140
|
-
let q = u(() => ({
|
|
141
|
-
height: L.value.height,
|
|
142
|
-
width: 128,
|
|
143
|
-
base: L.value.basePosition
|
|
144
|
-
})), J = y(R.value ? H.value.min : V.value.value);
|
|
145
|
-
C([() => V.value.value, R], ([e, t]) => {
|
|
146
|
-
Y(e || 0, t);
|
|
147
|
-
}, { immediate: !0 });
|
|
148
|
-
let xe = u(() => J.value > H.value.max ? H.value.max : J.value < H.value.min ? H.value.min : J.value);
|
|
149
|
-
_(() => {
|
|
150
|
-
Y(V.value.value || 0);
|
|
151
|
-
});
|
|
152
|
-
function Y(e, t = R.value) {
|
|
153
|
-
if (M.value &&= (cancelAnimationFrame(M.value), null), !t) {
|
|
154
|
-
J.value = e;
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
function n() {
|
|
158
|
-
J.value < e ? J.value = Math.min(J.value + U.value, e) : J.value > e && (J.value = Math.max(J.value - U.value, e)), J.value === e ? M.value = null : M.value = requestAnimationFrame(n);
|
|
159
|
-
}
|
|
160
|
-
n();
|
|
161
|
-
}
|
|
162
|
-
let X = u(() => V.value.title ?? ""), Z = u(() => {
|
|
163
|
-
let e = H.value.diff;
|
|
164
|
-
if (!isFinite(e) || e === 0) return 0;
|
|
165
|
-
let t = H.value.min, n = xe.value;
|
|
166
|
-
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
167
|
-
}), Q = u(() => o(L.value.colors.min, L.value.colors.max, H.value.min, H.value.max, J.value)), $ = u(() => I.value.autoColor ? Q.value : I.value.color), Se = u(() => L.value.track.autoColor ? Q.value : L.value.track.color);
|
|
168
|
-
return me(() => {
|
|
169
|
-
M.value && cancelAnimationFrame(M.value);
|
|
170
|
-
}), (e, t) => (v(), f("div", {
|
|
171
|
-
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
172
|
-
style: g(`font-family:${L.value.fontFamily};width: 100%; background:${L.value.background}`)
|
|
173
|
-
}, [
|
|
174
|
-
L.value.title.show && X.value && L.value.title.position === "top" ? (v(), f("div", {
|
|
175
|
-
key: 0,
|
|
176
|
-
class: "vue-data-ui-sparkgauge-label",
|
|
177
|
-
style: g(`font-size:${L.value.title.fontSize}px;text-align:${L.value.title.textAlign};font-weight:${L.value.title.bold ? "bold" : "normal"};color:${L.value.title.color}`)
|
|
178
|
-
}, x(X.value), 5)) : d("", !0),
|
|
179
|
-
(v(), f("svg", {
|
|
180
|
-
ref_key: "svgRef",
|
|
181
|
-
ref: be,
|
|
182
|
-
xmlns: S(re),
|
|
183
|
-
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
184
|
-
style: "overflow: visible; background:transparent; width:100%;"
|
|
185
|
-
}, [
|
|
186
|
-
m(S(w)),
|
|
187
|
-
e.$slots["chart-background"] && !S(B) ? (v(), f("foreignObject", {
|
|
188
|
-
key: 0,
|
|
189
|
-
x: 0,
|
|
190
|
-
y: 0,
|
|
191
|
-
width: q.value.width,
|
|
192
|
-
height: q.value.height,
|
|
193
|
-
style: { pointerEvents: "none" }
|
|
194
|
-
}, [b(e.$slots, "chart-background")], 8, _e)) : d("", !0),
|
|
195
|
-
p("defs", null, [m(ce, {
|
|
196
|
-
t: "linear",
|
|
197
|
-
id: `gradient_${P.value}`,
|
|
198
|
-
x1: "-10%",
|
|
199
|
-
y1: "100%",
|
|
200
|
-
x2: "110%",
|
|
201
|
-
y2: "100%",
|
|
202
|
-
stops: [[
|
|
203
|
-
"0%",
|
|
204
|
-
L.value.colors.min,
|
|
205
|
-
1
|
|
206
|
-
], [
|
|
207
|
-
"100%",
|
|
208
|
-
L.value.colors.max,
|
|
209
|
-
1
|
|
210
|
-
]]
|
|
211
|
-
}, null, 8, ["id", "stops"])]),
|
|
212
|
-
p("path", {
|
|
213
|
-
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
214
|
-
stroke: L.value.gutter.color,
|
|
215
|
-
"stroke-width": 8,
|
|
216
|
-
"stroke-linecap": L.value.gutter.strokeLinecap,
|
|
217
|
-
fill: "none"
|
|
218
|
-
}, null, 8, ve),
|
|
219
|
-
Z.value === 0 ? d("", !0) : (v(), f("path", {
|
|
220
|
-
key: 1,
|
|
221
|
-
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
222
|
-
stroke: L.value.colors.showGradient ? `url(#gradient_${P.value})` : Se.value,
|
|
223
|
-
"stroke-width": 8,
|
|
224
|
-
"stroke-linecap": L.value.track.strokeLinecap,
|
|
225
|
-
fill: "none",
|
|
226
|
-
"stroke-dasharray": 169.5,
|
|
227
|
-
"stroke-dashoffset": 169.5 - 169.5 * Z.value,
|
|
228
|
-
class: h({ "vue-ui-sparkgauge-track": L.value.animation.show }),
|
|
229
|
-
style: g(L.value.animation.show ? `animation: vue-ui-sparkgauge-animation ${L.value.animation.speedMs}ms ease-in;` : "")
|
|
230
|
-
}, null, 14, ye)),
|
|
231
|
-
S(B) ? (v(), f("rect", {
|
|
232
|
-
key: 2,
|
|
233
|
-
x: q.value.width / 2 - I.value.fontSize / 2,
|
|
234
|
-
y: q.value.base + 6 + I.value.offsetY - I.value.fontSize,
|
|
235
|
-
width: I.value.fontSize,
|
|
236
|
-
height: I.value.fontSize,
|
|
237
|
-
fill: "#6A6A6A50",
|
|
238
|
-
rx: 3
|
|
239
|
-
}, null, 8, T)) : (v(), f("text", {
|
|
240
|
-
key: 3,
|
|
241
|
-
"text-anchor": "middle",
|
|
242
|
-
x: q.value.width / 2,
|
|
243
|
-
y: q.value.base + 6 + I.value.offsetY,
|
|
244
|
-
"font-size": I.value.fontSize,
|
|
245
|
-
fill: $.value,
|
|
246
|
-
"font-weight": I.value.bold ? "bold" : "normal"
|
|
247
|
-
}, x(S(te)(I.value.formatter, S(i)(J.value), S(n)({
|
|
248
|
-
p: I.value.prefix,
|
|
249
|
-
v: S(i)(J.value),
|
|
250
|
-
s: I.value.suffix,
|
|
251
|
-
r: I.value.rounding
|
|
252
|
-
}), {
|
|
253
|
-
datapoint: S(i)(J.value),
|
|
254
|
-
color: $.value
|
|
255
|
-
})), 9, E))
|
|
256
|
-
], 8, ge)),
|
|
257
|
-
L.value.title.show && X.value && L.value.title.position === "bottom" ? (v(), f("div", {
|
|
258
|
-
key: 1,
|
|
259
|
-
class: "vue-data-ui-sparkgauge-label",
|
|
260
|
-
style: g(`font-size:${L.value.title.fontSize}px;text-align:${L.value.title.textAlign};font-weight:${L.value.title.bold ? "bold" : "normal"};font-weight:${L.value.title.bold ? "bold" : "normal"};color:${L.value.title.color}`)
|
|
261
|
-
}, x(X.value), 5)) : d("", !0),
|
|
262
|
-
e.$slots.source ? (v(), f("div", D, [b(e.$slots, "source")], 512)) : d("", !0),
|
|
263
|
-
b(e.$slots, "skeleton", {}, () => [S(B) ? (v(), fe(c, { key: 0 })) : d("", !0)])
|
|
264
|
-
], 4));
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
//#endregion
|
|
268
|
-
export { w as n, O as t };
|