vue-data-ui 3.15.12 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, ref as
|
|
2
|
-
import { u as O } from "./useConfig-
|
|
3
|
-
import { j as T, q as j, t as
|
|
4
|
-
import { u as q } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as V, ref as y, useSlots as F, onMounted as C, computed as i, toRefs as S, watch as I, openBlock as a, createElementBlock as s, unref as r, normalizeStyle as M, createVNode as U, createElementVNode as t, createCommentVNode as l, Fragment as x, toDisplayString as w, renderSlot as P, createBlock as E } from "vue";
|
|
2
|
+
import { u as O } from "./useConfig-DO94Aj5s.js";
|
|
3
|
+
import { j as T, q as j, t as b, k as z, l as A } from "./lib-DBptbyyI.js";
|
|
4
|
+
import { u as q } from "./useNestedProp-Bf5XFbs8.js";
|
|
5
5
|
import { u as R, B as H } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const K =
|
|
7
|
+
const K = ["aria-label", "aria-valuenow", "aria-valuetext", "aria-busy"], Q = ["viewBox", "width"], W = { key: 0 }, X = ["id"], Y = ["stop-color"], Z = ["stop-color"], ee = ["stroke"], te = ["stroke"], ae = ["width", "fill"], oe = ["fill"], se = { key: 0 }, re = ["id"], le = ["stroke"], ne = ["stroke", "stroke-dasharray", "stroke-dashoffset"], ie = ["filter"], ue = ["stroke", "stroke-dasharray", "stroke-dashoffset"], de = ["fill"], ce = {
|
|
8
8
|
__name: "vue-ui-gizmo",
|
|
9
9
|
props: {
|
|
10
10
|
config: {
|
|
@@ -17,22 +17,22 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
17
17
|
type: Number
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
|
|
20
|
+
setup(G) {
|
|
21
|
+
const L = V(() => import("./PackageVersion-DPO-OOVI.js")), { vue_ui_gizmo: N } = O(), o = G, u = y(T()), $ = F();
|
|
22
|
+
C(() => {
|
|
23
|
+
m();
|
|
24
|
+
}), C(() => {
|
|
25
|
+
$["chart-background"] && d.value && console.warn("VueUiGizmo does not support the #chart-background slot.");
|
|
26
26
|
});
|
|
27
|
-
const d =
|
|
28
|
-
function
|
|
29
|
-
!
|
|
27
|
+
const d = i(() => e.value.debug);
|
|
28
|
+
function m() {
|
|
29
|
+
!o.dataset && o.dataset !== 0 && j({
|
|
30
30
|
componentName: "VueUiGizmo",
|
|
31
31
|
type: "dataset",
|
|
32
32
|
debug: d.value
|
|
33
|
-
}),
|
|
33
|
+
}), o.dataset < 0 && d.value && console.warn("VueUiGizmo: dataset cannot be negative."), o.dataset > 100 && d.value && console.warn(`VueUiGizmo: gauge is maxed out, as dataset exceeds 100% (props.dataset = ${o.dataset})`);
|
|
34
34
|
}
|
|
35
|
-
const e =
|
|
35
|
+
const e = y(p()), B = i(() => b({
|
|
36
36
|
defaultConfig: {
|
|
37
37
|
stroke: "#6A6A6A80",
|
|
38
38
|
color: "#6A6A6A",
|
|
@@ -40,48 +40,57 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
40
40
|
textColor: "transparent"
|
|
41
41
|
},
|
|
42
42
|
userConfig: e.value.skeletonConfig ?? {}
|
|
43
|
-
})), { loading:
|
|
44
|
-
...S(
|
|
43
|
+
})), { loading: g, FINAL_DATASET: _ } = R({
|
|
44
|
+
...S(o),
|
|
45
45
|
FINAL_CONFIG: e,
|
|
46
|
-
prepareConfig:
|
|
46
|
+
prepareConfig: p,
|
|
47
47
|
dsIsNumber: !0,
|
|
48
|
-
skeletonDataset:
|
|
49
|
-
skeletonConfig:
|
|
48
|
+
skeletonDataset: o.config?.skeletonDataset ?? 50,
|
|
49
|
+
skeletonConfig: b({
|
|
50
50
|
defaultConfig: e.value,
|
|
51
|
-
userConfig:
|
|
51
|
+
userConfig: B.value
|
|
52
52
|
})
|
|
53
53
|
});
|
|
54
|
-
function
|
|
54
|
+
function p() {
|
|
55
55
|
return q({
|
|
56
|
-
userConfig:
|
|
57
|
-
defaultConfig:
|
|
56
|
+
userConfig: o.config,
|
|
57
|
+
defaultConfig: N
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
I(() =>
|
|
61
|
-
e.value =
|
|
60
|
+
I(() => o.config, (h) => {
|
|
61
|
+
e.value = p(), m();
|
|
62
62
|
}, { deep: !0 });
|
|
63
|
-
const
|
|
63
|
+
const k = i(() => ({
|
|
64
64
|
battery: { width: e.value.showPercentage ? 150 : 80, height: 50 },
|
|
65
65
|
gauge: { width: 80, height: 80 }
|
|
66
|
-
})[e.value.type]),
|
|
67
|
-
const n = 2 * Math.PI * 35, D = n -
|
|
66
|
+
})[e.value.type]), c = i(() => Math.min(Math.max(0, _.value), 100)), f = i(() => Math.max(0, _.value)), v = i(() => {
|
|
67
|
+
const n = 2 * Math.PI * 35, D = n - c.value / 100 * n;
|
|
68
68
|
return {
|
|
69
69
|
dasharray: `${n} ${n}`,
|
|
70
70
|
dashoffset: D
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
|
-
return (h, n) => (
|
|
74
|
-
|
|
73
|
+
return (h, n) => (a(), s("div", {
|
|
74
|
+
class: "vue-data-ui-component vue-ui-gizmo-wrapper",
|
|
75
|
+
role: "progressbar",
|
|
76
|
+
"aria-label": e.value.a11y.translations.label,
|
|
77
|
+
"aria-valuemin": "0",
|
|
78
|
+
"aria-valuemax": "100",
|
|
79
|
+
"aria-valuenow": r(g) ? void 0 : c.value,
|
|
80
|
+
"aria-valuetext": c.value + "%",
|
|
81
|
+
"aria-busy": r(g) ? "true" : "false"
|
|
82
|
+
}, [
|
|
83
|
+
(a(), s("svg", {
|
|
75
84
|
class: "vue-ui-gizmo",
|
|
76
|
-
viewBox: `0 0 ${
|
|
85
|
+
viewBox: `0 0 ${k.value.width} ${k.value.height}`,
|
|
77
86
|
width: e.value.size,
|
|
78
87
|
style: M({
|
|
79
88
|
background: "transparent",
|
|
80
89
|
fontFamily: e.value.fontFamily
|
|
81
90
|
})
|
|
82
91
|
}, [
|
|
83
|
-
U(
|
|
84
|
-
e.value.useGradient ? (
|
|
92
|
+
U(r(L)),
|
|
93
|
+
e.value.useGradient ? (a(), s("defs", W, [
|
|
85
94
|
t("linearGradient", {
|
|
86
95
|
id: `gizmo_gradient_${u.value}`,
|
|
87
96
|
x1: "0%",
|
|
@@ -98,8 +107,8 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
98
107
|
"stop-color": e.value.color
|
|
99
108
|
}, null, 8, Z)
|
|
100
109
|
], 8, X)
|
|
101
|
-
])) :
|
|
102
|
-
e.value.type === "battery" ? (
|
|
110
|
+
])) : l("", !0),
|
|
111
|
+
e.value.type === "battery" ? (a(), s(x, { key: 1 }, [
|
|
103
112
|
t("path", {
|
|
104
113
|
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",
|
|
105
114
|
stroke: e.value.stroke,
|
|
@@ -117,28 +126,28 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
117
126
|
x: 10,
|
|
118
127
|
y: 10,
|
|
119
128
|
height: 30,
|
|
120
|
-
width: 55 * (
|
|
129
|
+
width: 55 * (c.value / 100),
|
|
121
130
|
fill: e.value.useGradient ? `url(#gizmo_gradient_${u.value})` : e.value.color,
|
|
122
131
|
rx: 2
|
|
123
|
-
}, null, 8,
|
|
124
|
-
e.value.showPercentage ? (
|
|
132
|
+
}, null, 8, ae),
|
|
133
|
+
e.value.showPercentage ? (a(), s("text", {
|
|
125
134
|
key: 0,
|
|
126
135
|
x: 85,
|
|
127
136
|
y: 32,
|
|
128
137
|
"text-anchor": "start",
|
|
129
138
|
"font-size": "20",
|
|
130
139
|
fill: e.value.textColor
|
|
131
|
-
},
|
|
140
|
+
}, w(r(z)(
|
|
132
141
|
e.value.formatter,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
v:
|
|
142
|
+
f.value,
|
|
143
|
+
r(A)({
|
|
144
|
+
v: f.value,
|
|
136
145
|
s: "%"
|
|
137
146
|
})
|
|
138
|
-
)), 9,
|
|
139
|
-
], 64)) :
|
|
140
|
-
e.value.type === "gauge" ? (
|
|
141
|
-
e.value.useGradient ? (
|
|
147
|
+
)), 9, oe)) : l("", !0)
|
|
148
|
+
], 64)) : l("", !0),
|
|
149
|
+
e.value.type === "gauge" ? (a(), s(x, { key: 2 }, [
|
|
150
|
+
e.value.useGradient ? (a(), s("defs", se, [
|
|
142
151
|
t("filter", {
|
|
143
152
|
id: `blur_${u.value}`,
|
|
144
153
|
x: "-50%",
|
|
@@ -151,7 +160,7 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
151
160
|
stdDeviation: 1
|
|
152
161
|
}, null, -1)
|
|
153
162
|
])], 8, re)
|
|
154
|
-
])) :
|
|
163
|
+
])) : l("", !0),
|
|
155
164
|
t("circle", {
|
|
156
165
|
cx: 40,
|
|
157
166
|
cy: 40,
|
|
@@ -159,20 +168,20 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
159
168
|
stroke: e.value.stroke,
|
|
160
169
|
"stroke-width": 8,
|
|
161
170
|
fill: "none"
|
|
162
|
-
}, null, 8,
|
|
171
|
+
}, null, 8, le),
|
|
163
172
|
t("circle", {
|
|
164
173
|
cx: 40,
|
|
165
174
|
cy: 40,
|
|
166
175
|
r: 35,
|
|
167
176
|
stroke: e.value.color,
|
|
168
177
|
"stroke-width": 8,
|
|
169
|
-
"stroke-dasharray":
|
|
170
|
-
"stroke-dashoffset":
|
|
178
|
+
"stroke-dasharray": v.value.dasharray,
|
|
179
|
+
"stroke-dashoffset": v.value.dashoffset,
|
|
171
180
|
"stroke-linecap": "round",
|
|
172
181
|
fill: "none",
|
|
173
182
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
174
|
-
}, null, 8,
|
|
175
|
-
e.value.useGradient ? (
|
|
183
|
+
}, null, 8, ne),
|
|
184
|
+
e.value.useGradient ? (a(), s("g", {
|
|
176
185
|
key: 1,
|
|
177
186
|
filter: `url(#blur_${u.value})`
|
|
178
187
|
}, [
|
|
@@ -183,34 +192,34 @@ const K = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, Q = ["viewBox
|
|
|
183
192
|
stroke: e.value.gradientColor,
|
|
184
193
|
"stroke-width": 1,
|
|
185
194
|
fill: "none",
|
|
186
|
-
"stroke-dasharray":
|
|
187
|
-
"stroke-dashoffset":
|
|
195
|
+
"stroke-dasharray": v.value.dasharray,
|
|
196
|
+
"stroke-dashoffset": v.value.dashoffset,
|
|
188
197
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
189
198
|
}, null, 8, ue)
|
|
190
|
-
], 8, ie)) :
|
|
191
|
-
e.value.showPercentage ? (
|
|
199
|
+
], 8, ie)) : l("", !0),
|
|
200
|
+
e.value.showPercentage ? (a(), s("text", {
|
|
192
201
|
key: 2,
|
|
193
202
|
x: 40,
|
|
194
203
|
y: 47,
|
|
195
204
|
"text-anchor": "middle",
|
|
196
205
|
"font-size": "20",
|
|
197
206
|
fill: e.value.textColor
|
|
198
|
-
},
|
|
207
|
+
}, w(r(z)(
|
|
199
208
|
e.value.formatter,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
v:
|
|
209
|
+
f.value,
|
|
210
|
+
r(A)({
|
|
211
|
+
v: f.value,
|
|
203
212
|
s: "%"
|
|
204
213
|
})
|
|
205
|
-
)), 9, de)) :
|
|
206
|
-
], 64)) :
|
|
214
|
+
)), 9, de)) : l("", !0)
|
|
215
|
+
], 64)) : l("", !0)
|
|
207
216
|
], 12, Q)),
|
|
208
217
|
P(h.$slots, "skeleton", {}, () => [
|
|
209
|
-
|
|
218
|
+
r(g) ? (a(), E(H, { key: 0 })) : l("", !0)
|
|
210
219
|
], !0)
|
|
211
|
-
]));
|
|
220
|
+
], 8, K));
|
|
212
221
|
}
|
|
213
|
-
},
|
|
222
|
+
}, _e = /* @__PURE__ */ J(ce, [["__scopeId", "data-v-49a5a45d"]]);
|
|
214
223
|
export {
|
|
215
|
-
|
|
224
|
+
_e as default
|
|
216
225
|
};
|