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,11 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
2
|
+
import { Jt as t, X as n, i as r, q as ee, tt as te } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as ne, t as i } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as a } from "./useConfig-BilxnBNr.js";
|
|
4
5
|
import { n as o, t as s } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { Fragment as
|
|
6
|
+
import { t as re } from "./useNestedProp--NSEmhOH.js";
|
|
7
|
+
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { t as ie } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as g, normalizeStyle as _, onMounted as v, openBlock as y, ref as b, renderSlot as ae, toDisplayString as x, toRefs as oe, unref as S, useSlots as C, watch as w } from "vue";
|
|
9
10
|
//#region src/components/vue-ui-gizmo.vue
|
|
10
11
|
var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
11
12
|
"aria-label",
|
|
@@ -20,7 +21,7 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
20
21
|
"stroke",
|
|
21
22
|
"stroke-dasharray",
|
|
22
23
|
"stroke-dashoffset"
|
|
23
|
-
], z = ["fill"], B = /*#__PURE__*/
|
|
24
|
+
], z = ["fill"], B = /*#__PURE__*/ c({
|
|
24
25
|
__name: "vue-ui-gizmo",
|
|
25
26
|
props: {
|
|
26
27
|
config: {
|
|
@@ -32,21 +33,28 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
32
33
|
dataset: { type: Number }
|
|
33
34
|
},
|
|
34
35
|
setup(e) {
|
|
35
|
-
let
|
|
36
|
+
let c = g(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_gizmo: T } = a(), B = e, V = b(ee()), H = C();
|
|
36
37
|
v(() => {
|
|
37
38
|
W();
|
|
38
39
|
}), v(() => {
|
|
39
40
|
H["chart-background"] && U.value && console.warn("VueUiGizmo does not support the #chart-background slot.");
|
|
40
41
|
});
|
|
41
|
-
let U =
|
|
42
|
+
let U = u(() => G.value.debug);
|
|
42
43
|
function W() {
|
|
43
|
-
!B.dataset && B.dataset !== 0 &&
|
|
44
|
+
!B.dataset && B.dataset !== 0 && te({
|
|
44
45
|
componentName: "VueUiGizmo",
|
|
45
46
|
type: "dataset",
|
|
46
47
|
debug: U.value
|
|
47
48
|
}), B.dataset < 0 && U.value && console.warn("VueUiGizmo: dataset cannot be negative."), B.dataset > 100 && U.value && console.warn(`VueUiGizmo: gauge is maxed out, as dataset exceeds 100% (props.dataset = ${B.dataset})`);
|
|
48
49
|
}
|
|
49
|
-
let G = b(Y())
|
|
50
|
+
let G = b(Y());
|
|
51
|
+
ne({
|
|
52
|
+
config: () => G.value,
|
|
53
|
+
dataset: () => B.dataset,
|
|
54
|
+
component: "VueUiGizmo",
|
|
55
|
+
rules: [i.noHint]
|
|
56
|
+
});
|
|
57
|
+
let K = u(() => t({
|
|
50
58
|
defaultConfig: {
|
|
51
59
|
stroke: "#6A6A6A80",
|
|
52
60
|
color: "#6A6A6A",
|
|
@@ -54,27 +62,27 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
54
62
|
textColor: "transparent"
|
|
55
63
|
},
|
|
56
64
|
userConfig: G.value.skeletonConfig ?? {}
|
|
57
|
-
})), { loading: q, FINAL_DATASET: J, manualLoading:
|
|
58
|
-
...
|
|
65
|
+
})), { loading: q, FINAL_DATASET: J, manualLoading: se } = o({
|
|
66
|
+
...oe(B),
|
|
59
67
|
FINAL_CONFIG: G,
|
|
60
68
|
prepareConfig: Y,
|
|
61
69
|
dsIsNumber: !0,
|
|
62
70
|
skeletonDataset: B.config?.skeletonDataset ?? 50,
|
|
63
|
-
skeletonConfig:
|
|
71
|
+
skeletonConfig: t({
|
|
64
72
|
defaultConfig: G.value,
|
|
65
73
|
userConfig: K.value
|
|
66
74
|
})
|
|
67
75
|
});
|
|
68
76
|
function Y() {
|
|
69
|
-
return
|
|
77
|
+
return re({
|
|
70
78
|
userConfig: B.config,
|
|
71
79
|
defaultConfig: T
|
|
72
80
|
});
|
|
73
81
|
}
|
|
74
|
-
|
|
82
|
+
w(() => B.config, (e) => {
|
|
75
83
|
G.value = Y(), W();
|
|
76
84
|
}, { deep: !0 });
|
|
77
|
-
let X =
|
|
85
|
+
let X = u(() => ({
|
|
78
86
|
battery: {
|
|
79
87
|
width: G.value.showPercentage ? 150 : 80,
|
|
80
88
|
height: 50
|
|
@@ -83,33 +91,33 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
83
91
|
width: 80,
|
|
84
92
|
height: 80
|
|
85
93
|
}
|
|
86
|
-
})[G.value.type]), Z =
|
|
94
|
+
})[G.value.type]), Z = u(() => Math.min(Math.max(0, J.value), 100)), Q = u(() => Math.max(0, J.value)), $ = u(() => {
|
|
87
95
|
let e = 2 * Math.PI * 35, t = e - Z.value / 100 * e;
|
|
88
96
|
return {
|
|
89
97
|
dasharray: `${e} ${e}`,
|
|
90
98
|
dashoffset: t
|
|
91
99
|
};
|
|
92
100
|
});
|
|
93
|
-
return (e, t) => (y(),
|
|
101
|
+
return (e, t) => (y(), p("div", {
|
|
94
102
|
class: "vue-data-ui-component vue-ui-gizmo-wrapper",
|
|
95
103
|
role: "progressbar",
|
|
96
104
|
"aria-label": G.value.a11y.translations.label,
|
|
97
105
|
"aria-valuemin": "0",
|
|
98
106
|
"aria-valuemax": "100",
|
|
99
|
-
"aria-valuenow":
|
|
107
|
+
"aria-valuenow": S(q) ? void 0 : Z.value,
|
|
100
108
|
"aria-valuetext": Z.value + "%",
|
|
101
|
-
"aria-busy":
|
|
102
|
-
}, [(y(),
|
|
109
|
+
"aria-busy": S(q) ? "true" : "false"
|
|
110
|
+
}, [(y(), p("svg", {
|
|
103
111
|
class: "vue-ui-gizmo",
|
|
104
112
|
viewBox: `0 0 ${X.value.width} ${X.value.height}`,
|
|
105
113
|
width: G.value.size,
|
|
106
|
-
style:
|
|
114
|
+
style: _({
|
|
107
115
|
background: "transparent",
|
|
108
116
|
fontFamily: G.value.fontFamily
|
|
109
117
|
})
|
|
110
118
|
}, [
|
|
111
|
-
|
|
112
|
-
G.value.useGradient ? (y(),
|
|
119
|
+
h(S(c)),
|
|
120
|
+
G.value.useGradient ? (y(), p("defs", O, [h(ie, {
|
|
113
121
|
t: "linear",
|
|
114
122
|
id: `gizmo_gradient_${V.value}`,
|
|
115
123
|
x1: "0%",
|
|
@@ -125,22 +133,22 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
125
133
|
G.value.color,
|
|
126
134
|
1
|
|
127
135
|
]]
|
|
128
|
-
}, null, 8, ["id", "stops"])])) :
|
|
129
|
-
G.value.type === "battery" ? (y(),
|
|
130
|
-
|
|
136
|
+
}, null, 8, ["id", "stops"])])) : f("", !0),
|
|
137
|
+
G.value.type === "battery" ? (y(), p(l, { key: 1 }, [
|
|
138
|
+
m("path", {
|
|
131
139
|
d: "M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",
|
|
132
140
|
stroke: G.value.stroke,
|
|
133
141
|
"stroke-width": 2,
|
|
134
142
|
fill: "none"
|
|
135
143
|
}, null, 8, k),
|
|
136
|
-
|
|
144
|
+
m("path", {
|
|
137
145
|
d: "M 70 16 L 70 34",
|
|
138
146
|
stroke: G.value.stroke,
|
|
139
147
|
"stroke-width": 2,
|
|
140
148
|
fill: "none",
|
|
141
149
|
style: { opacity: "0.5" }
|
|
142
150
|
}, null, 8, A),
|
|
143
|
-
|
|
151
|
+
m("rect", {
|
|
144
152
|
x: 10,
|
|
145
153
|
y: 10,
|
|
146
154
|
height: 30,
|
|
@@ -148,30 +156,30 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
148
156
|
fill: G.value.useGradient ? `url(#gizmo_gradient_${V.value})` : G.value.color,
|
|
149
157
|
rx: 2
|
|
150
158
|
}, null, 8, j),
|
|
151
|
-
G.value.showPercentage ? (y(),
|
|
159
|
+
G.value.showPercentage ? (y(), p("text", {
|
|
152
160
|
key: 0,
|
|
153
161
|
x: 85,
|
|
154
162
|
y: 32,
|
|
155
163
|
"text-anchor": "start",
|
|
156
164
|
"font-size": "20",
|
|
157
165
|
fill: G.value.textColor
|
|
158
|
-
}, S(
|
|
166
|
+
}, x(S(r)(G.value.formatter, Q.value, S(n)({
|
|
159
167
|
v: Q.value,
|
|
160
168
|
s: "%"
|
|
161
|
-
}))), 9, M)) :
|
|
162
|
-
], 64)) :
|
|
163
|
-
G.value.type === "gauge" ? (y(),
|
|
164
|
-
G.value.useGradient ? (y(),
|
|
169
|
+
}))), 9, M)) : f("", !0)
|
|
170
|
+
], 64)) : f("", !0),
|
|
171
|
+
G.value.type === "gauge" ? (y(), p(l, { key: 2 }, [
|
|
172
|
+
G.value.useGradient ? (y(), p("defs", N, [m("filter", {
|
|
165
173
|
id: `blur_${V.value}`,
|
|
166
174
|
x: "-50%",
|
|
167
175
|
y: "-50%",
|
|
168
176
|
width: "200%",
|
|
169
177
|
height: "200%"
|
|
170
|
-
}, [...t[0] ||= [
|
|
178
|
+
}, [...t[0] ||= [m("feGaussianBlur", {
|
|
171
179
|
in: "SourceGraphic",
|
|
172
180
|
stdDeviation: 1
|
|
173
|
-
}, null, -1)]], 8, P)])) :
|
|
174
|
-
|
|
181
|
+
}, null, -1)]], 8, P)])) : f("", !0),
|
|
182
|
+
m("circle", {
|
|
175
183
|
cx: 40,
|
|
176
184
|
cy: 40,
|
|
177
185
|
r: 35,
|
|
@@ -179,7 +187,7 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
179
187
|
"stroke-width": 8,
|
|
180
188
|
fill: "none"
|
|
181
189
|
}, null, 8, F),
|
|
182
|
-
|
|
190
|
+
m("circle", {
|
|
183
191
|
cx: 40,
|
|
184
192
|
cy: 40,
|
|
185
193
|
r: 35,
|
|
@@ -194,10 +202,10 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
194
202
|
"transform-origin": "50% 50%"
|
|
195
203
|
}
|
|
196
204
|
}, null, 8, I),
|
|
197
|
-
G.value.useGradient ? (y(),
|
|
205
|
+
G.value.useGradient ? (y(), p("g", {
|
|
198
206
|
key: 1,
|
|
199
207
|
filter: `url(#blur_${V.value})`
|
|
200
|
-
}, [
|
|
208
|
+
}, [m("circle", {
|
|
201
209
|
cx: 40,
|
|
202
210
|
cy: 40,
|
|
203
211
|
r: 35,
|
|
@@ -210,21 +218,21 @@ var T = /* @__PURE__ */ e({ default: () => B }), E = [
|
|
|
210
218
|
transform: "rotate(-90deg)",
|
|
211
219
|
"transform-origin": "50% 50%"
|
|
212
220
|
}
|
|
213
|
-
}, null, 8, R)], 8, L)) :
|
|
214
|
-
G.value.showPercentage ? (y(),
|
|
221
|
+
}, null, 8, R)], 8, L)) : f("", !0),
|
|
222
|
+
G.value.showPercentage ? (y(), p("text", {
|
|
215
223
|
key: 2,
|
|
216
224
|
x: 40,
|
|
217
225
|
y: 47,
|
|
218
226
|
"text-anchor": "middle",
|
|
219
227
|
"font-size": "20",
|
|
220
228
|
fill: G.value.textColor
|
|
221
|
-
}, S(
|
|
229
|
+
}, x(S(r)(G.value.formatter, Q.value, S(n)({
|
|
222
230
|
v: Q.value,
|
|
223
231
|
s: "%"
|
|
224
|
-
}))), 9, z)) :
|
|
225
|
-
], 64)) :
|
|
226
|
-
], 12, D)),
|
|
232
|
+
}))), 9, z)) : f("", !0)
|
|
233
|
+
], 64)) : f("", !0)
|
|
234
|
+
], 12, D)), ae(e.$slots, "skeleton", {}, () => [S(q) ? (y(), d(s, { key: 0 })) : f("", !0)], !0)], 8, E));
|
|
227
235
|
}
|
|
228
|
-
}, [["__scopeId", "data-v-
|
|
236
|
+
}, [["__scopeId", "data-v-f296c0f3"]]);
|
|
229
237
|
//#endregion
|
|
230
238
|
export { T as n, B as t };
|