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
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { X as t, i as n, q as r } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as o } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as s } from "./useNestedProp--NSEmhOH.js";
|
|
6
|
+
import { t as c } from "./usePrefersMotion-BC-CsqR1.js";
|
|
7
|
+
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineAsyncComponent as g, normalizeClass as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as T, watch as E } from "vue";
|
|
8
|
+
//#region src/components/vue-ui-kpi.vue
|
|
9
|
+
var D = /* @__PURE__ */ e({ default: () => j }), O = ["aria-labelledby"], k = ["id"], A = ["aria-label"], j = {
|
|
10
|
+
__name: "vue-ui-kpi",
|
|
11
|
+
props: {
|
|
12
|
+
config: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default() {
|
|
15
|
+
return {};
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
dataset: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(e) {
|
|
24
|
+
let D = g(() => import("./vue-ui-digits-DgDE-_Fn.js").then((e) => e.n)), { vue_ui_kpi: j } = o(), M = c(), N = e, P = u({
|
|
25
|
+
get: () => R(),
|
|
26
|
+
set: (e) => e
|
|
27
|
+
});
|
|
28
|
+
i({
|
|
29
|
+
config: () => P.value,
|
|
30
|
+
dataset: () => N.dataset,
|
|
31
|
+
component: "VueUiKpi",
|
|
32
|
+
rules: [a.noHint]
|
|
33
|
+
});
|
|
34
|
+
let F = T(), I = u(() => P.value.debug), L = x(r());
|
|
35
|
+
y(() => {
|
|
36
|
+
F["chart-background"] && I.value && console.warn("VueUiKpi does not support the #chart-background slot.");
|
|
37
|
+
});
|
|
38
|
+
function R() {
|
|
39
|
+
return s({
|
|
40
|
+
userConfig: N.config,
|
|
41
|
+
defaultConfig: j
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
E(() => N.config, (e) => {
|
|
45
|
+
P.value = R(), H();
|
|
46
|
+
}, { deep: !0 });
|
|
47
|
+
let z = x((N.dataset, N.dataset)), B = x(P.value.useAnimation ? P.value.animationValueStart : z.value), V = (e) => {
|
|
48
|
+
let t = P.value.animationFrames, n = Math.abs(e - B.value) / t;
|
|
49
|
+
function r() {
|
|
50
|
+
B.value < e ? B.value = Math.min(B.value + n, e) : B.value > e && (B.value = Math.max(B.value - n, e)), B.value !== e && requestAnimationFrame(r);
|
|
51
|
+
}
|
|
52
|
+
r();
|
|
53
|
+
};
|
|
54
|
+
y(() => {
|
|
55
|
+
H();
|
|
56
|
+
});
|
|
57
|
+
function H() {
|
|
58
|
+
P.value.useAnimation && !M.value ? (B.value = P.value.animationValueStart, V(N.dataset)) : B.value = N.dataset;
|
|
59
|
+
}
|
|
60
|
+
return E(() => N.dataset, (e) => {
|
|
61
|
+
P.value.useAnimation && !M.value ? V(e) : B.value = e;
|
|
62
|
+
}), (r, i) => (b(), f("div", {
|
|
63
|
+
class: _(`vue-data-ui-component vue-ui-kpi ${P.value.layoutClass}`),
|
|
64
|
+
style: v(`background:${P.value.backgroundColor}; ${P.value.layoutCss}`),
|
|
65
|
+
"aria-labelledby": `kpi-title-${L.value}`
|
|
66
|
+
}, [
|
|
67
|
+
P.value.title || r.$slots.title ? (b(), f("div", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: _(`vue-ui-kpi-title ${P.value.titleClass}`),
|
|
70
|
+
style: v(`font-family: ${P.value.fontFamily}; font-size:${P.value.titleFontSize}px; color:${P.value.titleColor}; font-weight:${P.value.titleBold ? "bold" : "normal"}; ${P.value.titleCss}`),
|
|
71
|
+
id: `kpi-title-${L.value}`
|
|
72
|
+
}, [S(r.$slots, "title", { comment: e.dataset }), m(" " + C(P.value.title), 1)], 14, k)) : d("", !0),
|
|
73
|
+
S(r.$slots, "comment-before", { comment: e.dataset }),
|
|
74
|
+
p("div", {
|
|
75
|
+
class: _(`vue-ui-kpi-value ${P.value.valueClass}`),
|
|
76
|
+
style: v(`font-family: ${P.value.fontFamily}; font-size:${P.value.valueFontSize}px; color:${P.value.valueColor}; font-weight:${P.value.valueBold ? "bold" : "normal"}; ${P.value.valueCss}`),
|
|
77
|
+
role: "status",
|
|
78
|
+
"aria-live": "polite",
|
|
79
|
+
"aria-atomic": "true",
|
|
80
|
+
"aria-label": B.value.toFixed(P.value.valueRounding)
|
|
81
|
+
}, [S(r.$slots, "value", { comment: e.dataset }), P.value.analogDigits.show ? (b(), f("div", {
|
|
82
|
+
key: 0,
|
|
83
|
+
style: v({ height: P.value.analogDigits.height + "px" })
|
|
84
|
+
}, [h(w(D), {
|
|
85
|
+
dataset: Number(B.value.toFixed(P.value.valueRounding)),
|
|
86
|
+
config: {
|
|
87
|
+
backgroundColor: P.value.backgroundColor,
|
|
88
|
+
digits: {
|
|
89
|
+
color: P.value.analogDigits.color,
|
|
90
|
+
skeletonColor: P.value.analogDigits.skeletonColor
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, null, 8, ["dataset", "config"])], 4)) : (b(), f(l, { key: 1 }, [m(C(w(n)(P.value.formatter, B.value, w(t)({
|
|
94
|
+
p: P.value.prefix,
|
|
95
|
+
v: B.value,
|
|
96
|
+
s: P.value.suffix,
|
|
97
|
+
r: P.value.valueRounding
|
|
98
|
+
}))), 1)], 64))], 14, A),
|
|
99
|
+
S(r.$slots, "comment-after", { comment: e.dataset })
|
|
100
|
+
], 14, O));
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
export { D as n, j as t };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n, t as r } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as i } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as a } from "./useNestedProp--NSEmhOH.js";
|
|
6
|
+
import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
+
import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, normalizeStyle as d, openBlock as f, ref as p, unref as m, useCssVars as h } from "vue";
|
|
8
|
+
//#region src/components/vue-ui-mini-loader.vue
|
|
9
|
+
var g = /* @__PURE__ */ e({ default: () => E }), _ = ["xmlns", "viewBox"], v = { key: 0 }, y = ["stroke"], b = ["stroke"], x = ["stroke"], S = { key: 1 }, C = ["stroke"], w = { key: 2 }, T = ["stroke"], E = /*#__PURE__*/ o({
|
|
10
|
+
__name: "vue-ui-mini-loader",
|
|
11
|
+
props: { config: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default() {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
} },
|
|
17
|
+
setup(e) {
|
|
18
|
+
h((e) => ({
|
|
19
|
+
v5fadbcf2: j.value,
|
|
20
|
+
v488061db: M.value,
|
|
21
|
+
v2e2d4bba: N.value
|
|
22
|
+
}));
|
|
23
|
+
let { vue_ui_mini_loader: o } = i(), g = e, E = s(() => a({
|
|
24
|
+
userConfig: g.config,
|
|
25
|
+
defaultConfig: o
|
|
26
|
+
}));
|
|
27
|
+
n({
|
|
28
|
+
config: () => E.value,
|
|
29
|
+
dataset: () => [],
|
|
30
|
+
component: "VueUiMiniLoader",
|
|
31
|
+
rules: [r.noHint]
|
|
32
|
+
});
|
|
33
|
+
let D = p({
|
|
34
|
+
onion: "-10 -10 84 84",
|
|
35
|
+
line: "-10 -10 112 84",
|
|
36
|
+
bar: "-10 -10 106 84"
|
|
37
|
+
}), O = s(() => ({
|
|
38
|
+
gutter: `stroke:${E.value.line.gutterColor};opacity:${E.value.line.gutterOpacity};`,
|
|
39
|
+
gutterBlur: `filter:blur(${E.value.line.gutterBlur}px);`
|
|
40
|
+
})), k = s(() => ({
|
|
41
|
+
gutter: `stroke:${E.value.bar.gutterColor};opacity:${E.value.bar.gutterOpacity};`,
|
|
42
|
+
gutterBlur: `filter:blur(${E.value.bar.gutterBlur}px);`
|
|
43
|
+
})), A = s(() => ({
|
|
44
|
+
gutter: `stroke:${E.value.onion.gutterColor};opacity:${E.value.onion.gutterOpacity};`,
|
|
45
|
+
gutterBlur: `filter:blur(${E.value.onion.gutterBlur}px);`
|
|
46
|
+
})), j = s(() => `blur(${E.value.onion.trackBlur}px) hue-rotate(${E.value.onion.trackHueRotate}deg)`), M = s(() => `blur(${E.value.line.trackBlur}px) hue-rotate(${E.value.line.trackHueRotate}deg)`), N = s(() => `blur(${E.value.bar.trackBlur}px) hue-rotate(${E.value.bar.trackHueRotate}deg)`);
|
|
47
|
+
return (e, n) => (f(), l("svg", {
|
|
48
|
+
class: "vue-data-ui-component vue-ui-mini-loader",
|
|
49
|
+
xmlns: m(t),
|
|
50
|
+
viewBox: D.value[E.value.type],
|
|
51
|
+
style: { background: "transparent" },
|
|
52
|
+
width: "100%"
|
|
53
|
+
}, [
|
|
54
|
+
E.value.type === "onion" ? (f(), l("g", v, [
|
|
55
|
+
u("path", {
|
|
56
|
+
d: "M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",
|
|
57
|
+
"stroke-width": "4",
|
|
58
|
+
fill: "none",
|
|
59
|
+
"stroke-linecap": "round",
|
|
60
|
+
style: d(A.value.gutter + A.value.gutterBlur)
|
|
61
|
+
}, null, 4),
|
|
62
|
+
u("path", {
|
|
63
|
+
d: "M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",
|
|
64
|
+
"stroke-width": "4",
|
|
65
|
+
fill: "none",
|
|
66
|
+
"stroke-linecap": "round",
|
|
67
|
+
style: d(A.value.gutter + A.value.gutterBlur)
|
|
68
|
+
}, null, 4),
|
|
69
|
+
u("path", {
|
|
70
|
+
d: "M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",
|
|
71
|
+
"stroke-width": "4",
|
|
72
|
+
fill: "none",
|
|
73
|
+
"stroke-linecap": "round",
|
|
74
|
+
style: d(A.value.gutter + A.value.gutterBlur)
|
|
75
|
+
}, null, 4),
|
|
76
|
+
u("path", {
|
|
77
|
+
d: "M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",
|
|
78
|
+
stroke: E.value.onion.trackColor,
|
|
79
|
+
"stroke-width": "4",
|
|
80
|
+
fill: "none",
|
|
81
|
+
"stroke-linecap": "round",
|
|
82
|
+
class: "onion-animated"
|
|
83
|
+
}, null, 8, y),
|
|
84
|
+
u("path", {
|
|
85
|
+
d: "M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",
|
|
86
|
+
stroke: E.value.onion.trackColor,
|
|
87
|
+
"stroke-width": "4",
|
|
88
|
+
fill: "none",
|
|
89
|
+
"stroke-linecap": "round",
|
|
90
|
+
class: "onion-animated"
|
|
91
|
+
}, null, 8, b),
|
|
92
|
+
u("path", {
|
|
93
|
+
d: "M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",
|
|
94
|
+
stroke: E.value.onion.trackColor,
|
|
95
|
+
"stroke-width": "4",
|
|
96
|
+
fill: "none",
|
|
97
|
+
"stroke-linecap": "round",
|
|
98
|
+
class: "onion-animated"
|
|
99
|
+
}, null, 8, x)
|
|
100
|
+
])) : c("", !0),
|
|
101
|
+
E.value.type === "line" ? (f(), l("g", S, [u("path", {
|
|
102
|
+
d: "M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",
|
|
103
|
+
"stroke-width": "4",
|
|
104
|
+
fill: "none",
|
|
105
|
+
"stroke-linecap": "round",
|
|
106
|
+
style: d(O.value.gutter + O.value.gutterBlur)
|
|
107
|
+
}, null, 4), u("path", {
|
|
108
|
+
d: "M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",
|
|
109
|
+
stroke: E.value.line.trackColor,
|
|
110
|
+
"stroke-width": "4",
|
|
111
|
+
fill: "none",
|
|
112
|
+
"stroke-linecap": "round",
|
|
113
|
+
class: "line-animated"
|
|
114
|
+
}, null, 8, C)])) : c("", !0),
|
|
115
|
+
E.value.type === "bar" ? (f(), l("g", w, [u("path", {
|
|
116
|
+
d: "M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",
|
|
117
|
+
"stroke-width": "4",
|
|
118
|
+
fill: "none",
|
|
119
|
+
"stroke-linecap": "round",
|
|
120
|
+
style: d(k.value.gutter + k.value.gutterBlur)
|
|
121
|
+
}, null, 4), u("path", {
|
|
122
|
+
d: "M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",
|
|
123
|
+
stroke: E.value.bar.trackColor,
|
|
124
|
+
"stroke-width": "4",
|
|
125
|
+
fill: "none",
|
|
126
|
+
"stroke-linecap": "round",
|
|
127
|
+
class: "bar-animated"
|
|
128
|
+
}, null, 8, T)])) : c("", !0)
|
|
129
|
+
], 8, _));
|
|
130
|
+
}
|
|
131
|
+
}, [["__scopeId", "data-v-5266752a"]]);
|
|
132
|
+
//#endregion
|
|
133
|
+
export { g as n, E as t };
|