vue-data-ui 3.1.17 → 3.1.19-next.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/dist/{Arrow-DFX_NfRh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-DRpg18lg.js} +3 -3
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D5bgIg6W.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/universal.d.ts +1 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/universal-registry-CL8g2COA.js +70 -0
- package/dist/universal.js +5 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/vue-data-ui-h5C8hpE8.js +317 -0
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-BZDLbeym.js} +103 -102
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-C1NMeWTB.js} +28 -27
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-G_Y2Ryof.js} +28 -27
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-9sHzdqr3.js} +32 -31
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-CnGSgjPK.js} +25 -25
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C_0Y77a9.js} +41 -40
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DqGoensA.js} +61 -60
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack-5L50If0h.js} +75 -74
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-2FyL5ac1.js} +68 -68
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-CWgiy7rq.js} +39 -38
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-DxH6i5aO.js} +81 -80
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-D7nhPGxL.js} +97 -96
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-C8iSww9L.js} +127 -126
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-D3GZcM5e.js} +39 -38
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUHEJHiw.js} +53 -52
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-MM8rPNWR.js} +149 -148
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CQ7XyocO.js} +6 -6
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-BT5orcuT.js} +98 -97
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-BCfEt867.js} +105 -104
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-DekqFbQ4.js} +54 -53
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-CAC70QPW.js} +30 -29
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-BWj33o71.js} +69 -68
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-Dq_XSxqp.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-V6jytnl0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-CmXgMy7I.js} +35 -34
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-D2JQNfWU.js} +30 -29
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-BmmwGJaI.js} +90 -89
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CcGD2bEJ.js} +44 -43
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-DIOGXJ9v.js} +82 -81
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-DS-YbQVr.js} +74 -73
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-D8kUADP7.js} +121 -120
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-FtA6-6zz.js} +5 -5
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/vue-ui-spark-trend-qt8UvEPc.js +337 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-DgHvA8ra.js} +86 -85
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-BpMUqIL6.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-IhGjmoUF.js} +22 -21
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-BSGiRpQ9.js} +105 -104
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-ZkUUbYr5.js} +28 -27
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-DRKIeZ1O.js} +77 -76
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-dMjWaIcs.js} +52 -51
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-DKHtmqLd.js} +9 -8
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-mMpPAUon.js} +20 -19
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-xpHH3FWG.js} +66 -65
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-C4LZMTeg.js} +31 -31
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-KQmIXYf2.js} +30 -29
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-a_Ub2bgB.js} +32 -31
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-MWKYuUMN.js} +54 -53
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-CP6jUrto.js} +76 -75
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-B59kWUZd.js} +85 -84
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-DZnuhGEw.js} +49 -48
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-B6S7X6sr.js} +19 -19
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-BjzutuG2.js} +496 -505
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-CSSVKhex.js} +166 -165
- package/package.json +19 -11
- package/dist/index-Lg17rmB1.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DpwLJMsW.js +0 -13
- package/dist/vue-data-ui-lki09wwK.js +0 -325
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as Z, useSlots as ee, onMounted as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as Z, useSlots as ee, onMounted as F, ref as x, toRefs as te, computed as w, watch as B, nextTick as le, createElementBlock as i, openBlock as n, normalizeStyle as d, unref as a, renderSlot as $, createCommentVNode as p, createBlock as ae, normalizeProps as oe, mergeProps as E, createElementVNode as v, toDisplayString as y, Fragment as M, renderList as se, createVNode as ne } from "vue";
|
|
2
|
+
import { c as ue, t as ie, b as re, p as _, e as ve, o as ce, f as P, g as de, h as pe, s as D, a as C, d as A, X as fe, i as ye } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { u as ge, a as V } from "./useNestedProp-DF7e2h1z.js";
|
|
4
|
+
import { t as me } from "./themes-D3cUNuKw.js";
|
|
4
5
|
import { u as he, B as xe } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["xmlns", "viewBox"],
|
|
6
|
+
const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["xmlns", "viewBox"], _e = ["id"], Ce = ["stop-color"], Ae = ["stop-color"], Se = ["height", "width", "fill", "rx"], $e = ["height", "width", "fill", "rx"], De = ["height", "width", "fill", "rx"], Ie = {
|
|
6
7
|
key: 2,
|
|
7
8
|
ref: "source",
|
|
8
9
|
dir: "auto"
|
|
9
|
-
},
|
|
10
|
+
}, Be = {
|
|
10
11
|
__name: "vue-ui-sparkbar",
|
|
11
12
|
props: {
|
|
12
13
|
config: {
|
|
@@ -30,21 +31,21 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
emits: ["selectDatapoint"],
|
|
33
|
-
setup(
|
|
34
|
-
const U = Z(() => import("./PackageVersion-
|
|
35
|
-
|
|
34
|
+
setup(O, { emit: j }) {
|
|
35
|
+
const U = Z(() => import("./PackageVersion-DRpg18lg.js")), { vue_ui_sparkbar: R } = ge(), f = O, W = ee();
|
|
36
|
+
F(() => {
|
|
36
37
|
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
37
38
|
});
|
|
38
|
-
const
|
|
39
|
+
const I = x(ue()), e = x(S()), { loading: k, FINAL_DATASET: c } = he({
|
|
39
40
|
...te(f),
|
|
40
41
|
FINAL_CONFIG: e,
|
|
41
|
-
prepareConfig:
|
|
42
|
+
prepareConfig: S,
|
|
42
43
|
skeletonDataset: [
|
|
43
44
|
{ name: "_", value: 21, target: 25, color: "#808080" },
|
|
44
45
|
{ name: "_", value: 13, target: 25, color: "#ADADAD" },
|
|
45
46
|
{ name: "_", value: 8, target: 25, color: "#DBDBDB" }
|
|
46
47
|
],
|
|
47
|
-
skeletonConfig:
|
|
48
|
+
skeletonConfig: ie({
|
|
48
49
|
defaultConfig: e.value,
|
|
49
50
|
userConfig: {
|
|
50
51
|
style: {
|
|
@@ -63,109 +64,109 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
})
|
|
66
|
-
}),
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
67
|
+
}), L = w(() => !!e.value.debug);
|
|
68
|
+
function S() {
|
|
69
|
+
const t = V({
|
|
69
70
|
userConfig: f.config,
|
|
70
71
|
defaultConfig: R
|
|
71
72
|
});
|
|
72
73
|
return t.theme ? {
|
|
73
|
-
...
|
|
74
|
-
userConfig:
|
|
74
|
+
...V({
|
|
75
|
+
userConfig: me.vue_ui_sparkbar[t.theme] || f.config,
|
|
75
76
|
defaultConfig: t
|
|
76
77
|
}),
|
|
77
|
-
customPalette:
|
|
78
|
+
customPalette: re[t.theme] || _
|
|
78
79
|
} : t;
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
-
e.value =
|
|
81
|
+
B(() => f.config, (t) => {
|
|
82
|
+
e.value = S();
|
|
82
83
|
}, { deep: !0 });
|
|
83
|
-
const G = w(() =>
|
|
84
|
+
const G = w(() => ve(e.value.customPalette)), g = x(c.value.map((t) => ({
|
|
84
85
|
...t,
|
|
85
86
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
86
87
|
formatter: t.formatter || null
|
|
87
|
-
}))),
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
}))), T = x(null);
|
|
89
|
+
F(async () => {
|
|
90
|
+
ce(f.dataset) && P({
|
|
90
91
|
componentName: "VueUiSparkbar",
|
|
91
92
|
type: "dataset",
|
|
92
|
-
debug:
|
|
93
|
-
}),
|
|
93
|
+
debug: L.value
|
|
94
|
+
}), z();
|
|
94
95
|
});
|
|
95
|
-
function
|
|
96
|
+
function z() {
|
|
96
97
|
if (e.value.style.animation.show) {
|
|
97
98
|
let h = function() {
|
|
98
99
|
s += l / t, s < l ? (g.value = g.value.map((u, b) => ({
|
|
99
100
|
...u,
|
|
100
|
-
value: u.value +=
|
|
101
|
-
})),
|
|
101
|
+
value: u.value += o[b]
|
|
102
|
+
})), T.value = requestAnimationFrame(h)) : g.value = c.value.map((u) => ({
|
|
102
103
|
...u,
|
|
103
104
|
value: u.value || 0,
|
|
104
105
|
formatter: u.formatter || null
|
|
105
106
|
}));
|
|
106
107
|
};
|
|
107
|
-
const t = e.value.style.animation.animationFrames,
|
|
108
|
+
const t = e.value.style.animation.animationFrames, o = c.value.map((u, b) => u.value / t), l = c.value.map((u) => u.value || 0).reduce((u, b) => u + b, 0);
|
|
108
109
|
let s = 0;
|
|
109
110
|
h();
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
-
cancelAnimationFrame(
|
|
114
|
-
...
|
|
115
|
-
value: e.value.style.animation.show ? 0 :
|
|
116
|
-
formatter:
|
|
117
|
-
})), le(
|
|
113
|
+
B(() => c.value, async (t) => {
|
|
114
|
+
cancelAnimationFrame(T.value), g.value = c.value.map((o) => ({
|
|
115
|
+
...o,
|
|
116
|
+
value: e.value.style.animation.show ? 0 : o.value || 0,
|
|
117
|
+
formatter: o.formatter || null
|
|
118
|
+
})), le(z);
|
|
118
119
|
}, { deep: !0 });
|
|
119
120
|
const r = x({
|
|
120
121
|
width: 500,
|
|
121
122
|
height: 16
|
|
122
|
-
}), q = w(() => Math.max(...
|
|
123
|
-
|
|
123
|
+
}), q = w(() => Math.max(...c.value.map((t) => t.value))), H = w(() => (c.value.forEach((t, o) => {
|
|
124
|
+
de({
|
|
124
125
|
datasetObject: t,
|
|
125
126
|
requiredAttributes: ["name", "value"]
|
|
126
127
|
}).forEach((l) => {
|
|
127
|
-
|
|
128
|
+
P({
|
|
128
129
|
componentName: "VueUiSparkbar",
|
|
129
130
|
type: "datasetSerieAttribute",
|
|
130
131
|
property: l,
|
|
131
|
-
index:
|
|
132
|
-
debug:
|
|
132
|
+
index: o,
|
|
133
|
+
debug: L.value
|
|
133
134
|
});
|
|
134
135
|
});
|
|
135
|
-
}), g.value.map((t,
|
|
136
|
+
}), g.value.map((t, o) => ({
|
|
136
137
|
...t,
|
|
137
138
|
value: t.value || 0,
|
|
138
|
-
color:
|
|
139
|
+
color: pe(t.color) || G.value[o] || _[o] || _[o % _.length]
|
|
139
140
|
}))));
|
|
140
141
|
function X(t) {
|
|
141
142
|
return t / q.value;
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function N(t) {
|
|
144
145
|
return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : X(t.value);
|
|
145
146
|
}
|
|
146
147
|
function m(t) {
|
|
147
148
|
return e.value.style.layout.independant && t.target || e.value.style.layout.target;
|
|
148
149
|
}
|
|
149
150
|
const J = j;
|
|
150
|
-
function K(t,
|
|
151
|
-
J("selectDatapoint", { datapoint: t, index:
|
|
151
|
+
function K(t, o) {
|
|
152
|
+
J("selectDatapoint", { datapoint: t, index: o }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
152
153
|
}
|
|
153
|
-
function Q(t,
|
|
154
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
154
|
+
function Q(t, o) {
|
|
155
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o });
|
|
155
156
|
}
|
|
156
|
-
function Y(t,
|
|
157
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
157
|
+
function Y(t, o) {
|
|
158
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
158
159
|
}
|
|
159
|
-
return (t,
|
|
160
|
+
return (t, o) => (n(), i("div", {
|
|
160
161
|
class: "vue-ui-sparkbar",
|
|
161
162
|
style: d({
|
|
162
163
|
width: "100%",
|
|
163
164
|
position: "relative",
|
|
164
165
|
fontFamily: e.value.style.fontFamily,
|
|
165
|
-
background: f.backgroundOpacity !== null ?
|
|
166
|
+
background: f.backgroundOpacity !== null ? a(D)(e.value.style.backgroundColor, f.backgroundOpacity) : e.value.style.backgroundColor
|
|
166
167
|
})
|
|
167
168
|
}, [
|
|
168
|
-
t.$slots.title ?
|
|
169
|
+
t.$slots.title ? $(t.$slots, "title", oe(E({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : p("", !0),
|
|
169
170
|
!t.$slots.title && e.value.style.title.text ? (n(), i("div", {
|
|
170
171
|
key: 1,
|
|
171
172
|
class: "vue-ui-sparkbar-title-container",
|
|
@@ -191,24 +192,24 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
191
192
|
color: e.value.style.title.subtitle.color,
|
|
192
193
|
fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
193
194
|
})
|
|
194
|
-
}, y(e.value.style.title.subtitle.text), 5)) :
|
|
195
|
-
], 4)) :
|
|
196
|
-
(n(!0), i(
|
|
197
|
-
style: d(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${
|
|
195
|
+
}, y(e.value.style.title.subtitle.text), 5)) : p("", !0)
|
|
196
|
+
], 4)) : p("", !0),
|
|
197
|
+
(n(!0), i(M, null, se(H.value, (l, s) => (n(), i("div", {
|
|
198
|
+
style: d(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${a(c).length > 0 && s !== a(c).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
198
199
|
onClick: (h) => K(l, s),
|
|
199
200
|
onMouseenter: (h) => Q(l, s),
|
|
200
201
|
onMouseleave: (h) => Y(l, s)
|
|
201
202
|
}, [
|
|
202
|
-
|
|
203
|
+
a(k) ? p("", !0) : $(t.$slots, "data-label", E({
|
|
203
204
|
key: 0,
|
|
204
205
|
ref_for: !0
|
|
205
206
|
}, { bar: {
|
|
206
207
|
...l,
|
|
207
208
|
target: m(l),
|
|
208
|
-
valueLabel:
|
|
209
|
+
valueLabel: a(C)(
|
|
209
210
|
l.formatter,
|
|
210
211
|
l.value,
|
|
211
|
-
|
|
212
|
+
a(A)({
|
|
212
213
|
p: l.prefix || "",
|
|
213
214
|
v: l.value,
|
|
214
215
|
s: l.suffix || "",
|
|
@@ -216,10 +217,10 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
216
217
|
}),
|
|
217
218
|
{ datapoint: l, seriesIndex: s }
|
|
218
219
|
),
|
|
219
|
-
targetLabel:
|
|
220
|
+
targetLabel: a(C)(
|
|
220
221
|
l.formatter,
|
|
221
222
|
m(l),
|
|
222
|
-
|
|
223
|
+
a(A)({
|
|
223
224
|
p: l.prefix || "",
|
|
224
225
|
v: m(l),
|
|
225
226
|
s: l.suffix || "",
|
|
@@ -228,7 +229,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
228
229
|
{ datapoint: l, seriesIndex: s }
|
|
229
230
|
)
|
|
230
231
|
} })),
|
|
231
|
-
!t.$slots["data-label"] ||
|
|
232
|
+
!t.$slots["data-label"] || a(k) ? (n(), i("div", {
|
|
232
233
|
key: 1,
|
|
233
234
|
style: d({
|
|
234
235
|
display: "flex",
|
|
@@ -241,7 +242,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
241
242
|
flexWrap: "wrap"
|
|
242
243
|
})
|
|
243
244
|
}, [
|
|
244
|
-
|
|
245
|
+
a(k) ? (n(), i("div", {
|
|
245
246
|
key: 0,
|
|
246
247
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
247
248
|
style: d({
|
|
@@ -260,70 +261,70 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
260
261
|
v("div", {
|
|
261
262
|
style: d({ height: "100%", width: "15px", borderRadius: e.value.style.labels.fontSize / 4 + "px", backgroundColor: "#6A6A6A80" })
|
|
262
263
|
}, null, 4)
|
|
263
|
-
], 4)) : (n(), i(
|
|
264
|
+
], 4)) : (n(), i(M, { key: 1 }, [
|
|
264
265
|
v("span", null, y(l.name), 1),
|
|
265
266
|
e.value.style.labels.value.show ? (n(), i("span", {
|
|
266
267
|
key: 0,
|
|
267
268
|
style: d(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
|
|
268
|
-
}, ": " + y(
|
|
269
|
+
}, ": " + y(a(C)(
|
|
269
270
|
l.formatter,
|
|
270
271
|
l.value,
|
|
271
|
-
|
|
272
|
+
a(A)({
|
|
272
273
|
p: l.prefix || "",
|
|
273
274
|
v: l.value,
|
|
274
275
|
s: l.suffix || "",
|
|
275
276
|
r: l.rounding || 0
|
|
276
277
|
}),
|
|
277
278
|
{ datapoint: l, seriesIndex: s }
|
|
278
|
-
)), 5)) :
|
|
279
|
-
e.value.style.layout.showTargetValue ? (n(), i("span", be, y(" " + e.value.style.layout.targetValueText) + " " + y(
|
|
279
|
+
)), 5)) : p("", !0),
|
|
280
|
+
e.value.style.layout.showTargetValue ? (n(), i("span", be, y(" " + e.value.style.layout.targetValueText) + " " + y(a(C)(
|
|
280
281
|
l.formatter,
|
|
281
282
|
m(l),
|
|
282
|
-
|
|
283
|
+
a(A)({
|
|
283
284
|
p: l.prefix || "",
|
|
284
285
|
v: m(l),
|
|
285
286
|
s: l.suffix || "",
|
|
286
287
|
r: l.rounding || 0
|
|
287
288
|
}),
|
|
288
289
|
{ datapoint: l, seriesIndex: s }
|
|
289
|
-
)), 1)) :
|
|
290
|
+
)), 1)) : p("", !0)
|
|
290
291
|
], 64))
|
|
291
|
-
], 4)) :
|
|
292
|
+
], 4)) : p("", !0),
|
|
292
293
|
(n(), i("svg", {
|
|
293
|
-
xmlns:
|
|
294
|
+
xmlns: a(fe),
|
|
294
295
|
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
295
296
|
width: "100%"
|
|
296
297
|
}, [
|
|
297
|
-
ne(
|
|
298
|
+
ne(a(U)),
|
|
298
299
|
v("defs", null, [
|
|
299
300
|
v("linearGradient", {
|
|
300
301
|
x1: "0%",
|
|
301
302
|
y1: "0%",
|
|
302
303
|
x2: "100%",
|
|
303
304
|
y2: "0%",
|
|
304
|
-
id: `sparkbar_gradient_${s}_${
|
|
305
|
+
id: `sparkbar_gradient_${s}_${I.value}`
|
|
305
306
|
}, [
|
|
306
307
|
v("stop", {
|
|
307
308
|
offset: "0%",
|
|
308
|
-
"stop-color":
|
|
309
|
-
}, null, 8,
|
|
309
|
+
"stop-color": a(D)(a(ye)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
|
|
310
|
+
}, null, 8, Ce),
|
|
310
311
|
v("stop", {
|
|
311
312
|
offset: "100%",
|
|
312
313
|
"stop-color": l.color
|
|
313
314
|
}, null, 8, Ae)
|
|
314
|
-
], 8,
|
|
315
|
+
], 8, _e)
|
|
315
316
|
]),
|
|
316
317
|
v("rect", {
|
|
317
318
|
height: r.value.height,
|
|
318
319
|
width: r.value.width,
|
|
319
320
|
x: 0,
|
|
320
321
|
y: 0,
|
|
321
|
-
fill:
|
|
322
|
+
fill: a(D)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
|
|
322
323
|
rx: r.value.height / 2
|
|
323
324
|
}, null, 8, Se),
|
|
324
325
|
v("rect", {
|
|
325
326
|
height: r.value.height,
|
|
326
|
-
width: r.value.width *
|
|
327
|
+
width: r.value.width * N(l),
|
|
327
328
|
x: 0,
|
|
328
329
|
y: 0,
|
|
329
330
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
@@ -331,21 +332,21 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
331
332
|
}, null, 8, $e),
|
|
332
333
|
v("rect", {
|
|
333
334
|
height: r.value.height,
|
|
334
|
-
width: r.value.width *
|
|
335
|
+
width: r.value.width * N(l),
|
|
335
336
|
x: 0,
|
|
336
337
|
y: 0,
|
|
337
|
-
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${s}_${
|
|
338
|
+
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${s}_${I.value})` : l.color,
|
|
338
339
|
rx: r.value.height / 2
|
|
339
340
|
}, null, 8, De)
|
|
340
341
|
], 8, we))
|
|
341
342
|
], 44, ke))), 256)),
|
|
342
343
|
t.$slots.source ? (n(), i("div", Ie, [
|
|
343
|
-
|
|
344
|
-
], 512)) :
|
|
345
|
-
|
|
344
|
+
$(t.$slots, "source")
|
|
345
|
+
], 512)) : p("", !0),
|
|
346
|
+
a(k) ? (n(), ae(xe, { key: 3 })) : p("", !0)
|
|
346
347
|
], 4));
|
|
347
348
|
}
|
|
348
349
|
};
|
|
349
350
|
export {
|
|
350
|
-
|
|
351
|
+
Be as default
|
|
351
352
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as B } from "./useNestedProp-
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
|
|
1
|
+
import { defineAsyncComponent as T, ref as b, toRefs as U, onMounted as N, computed as s, watch as M, createElementBlock as r, openBlock as u, normalizeStyle as g, createCommentVNode as d, createBlock as q, toDisplayString as k, unref as i, createVNode as P, createElementVNode as m, renderSlot as F, normalizeClass as V } from "vue";
|
|
2
|
+
import { u as X, a as B } from "./useNestedProp-DF7e2h1z.js";
|
|
3
|
+
import { c as Y, t as H, o as J, f as E, g as K, a2 as Q, X as W, a as Z, q as x, d as ee } from "./lib-p5pfHmOX.js";
|
|
4
|
+
import { u as te, B as ae } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as le } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { t as oe } from "./themes-D3cUNuKw.js";
|
|
7
|
+
const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["stop-color"], re = ["stop-color"], ve = ["d", "stroke", "stroke-linecap"], ce = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], de = ["x", "y", "width", "height"], fe = ["x", "y", "font-size", "fill", "font-weight"], me = {
|
|
7
8
|
key: 2,
|
|
8
9
|
ref: "source",
|
|
9
10
|
dir: "auto"
|
|
10
|
-
},
|
|
11
|
+
}, xe = {
|
|
11
12
|
__name: "vue-ui-sparkgauge",
|
|
12
13
|
props: {
|
|
13
14
|
config: {
|
|
@@ -24,8 +25,8 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
setup(D) {
|
|
27
|
-
const O =
|
|
28
|
-
...
|
|
28
|
+
const O = T(() => import("./PackageVersion-DRpg18lg.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
|
|
29
|
+
...U(c),
|
|
29
30
|
FINAL_CONFIG: e,
|
|
30
31
|
prepareConfig: p,
|
|
31
32
|
skeletonDataset: {
|
|
@@ -53,7 +54,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
})
|
|
56
|
-
}), { svgRef: I } =
|
|
57
|
+
}), { svgRef: I } = le({ config: { text: c.dataset?.title || "" } });
|
|
57
58
|
function p() {
|
|
58
59
|
const t = B({
|
|
59
60
|
userConfig: c.config,
|
|
@@ -61,7 +62,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
61
62
|
});
|
|
62
63
|
return t.theme ? {
|
|
63
64
|
...B({
|
|
64
|
-
userConfig:
|
|
65
|
+
userConfig: oe.vue_ui_sparkgauge[t.theme] || c.config,
|
|
65
66
|
defaultConfig: t
|
|
66
67
|
})
|
|
67
68
|
} : t;
|
|
@@ -71,11 +72,11 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
71
72
|
});
|
|
72
73
|
const w = s(() => e.value.debug);
|
|
73
74
|
function A() {
|
|
74
|
-
|
|
75
|
+
J(c.dataset) ? E({
|
|
75
76
|
componentName: "VueUiSparkgauge",
|
|
76
77
|
type: "dataset",
|
|
77
78
|
debug: w.value
|
|
78
|
-
}) :
|
|
79
|
+
}) : K({
|
|
79
80
|
datasetObject: c.dataset,
|
|
80
81
|
requiredAttributes: ["value", "min", "max"]
|
|
81
82
|
}).forEach((t) => {
|
|
@@ -115,29 +116,29 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
115
116
|
}
|
|
116
117
|
n();
|
|
117
118
|
}
|
|
118
|
-
const
|
|
119
|
+
const y = s(() => v.value.title ?? ""), L = s(() => {
|
|
119
120
|
const t = o.value.diff;
|
|
120
121
|
if (!isFinite(t) || t === 0) return 0;
|
|
121
122
|
const n = o.value.min, f = R.value;
|
|
122
123
|
return f >= 0 ? (f - n) / t : (Math.abs(n) - Math.abs(f)) / t;
|
|
123
|
-
}), S = s(() =>
|
|
124
|
+
}), S = s(() => Q(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), z = s(() => e.value.style.dataLabel.autoColor ? S.value : e.value.style.dataLabel.color), G = s(() => e.value.style.track.autoColor ? S.value : e.value.style.track.color);
|
|
124
125
|
return (t, n) => (u(), r("div", {
|
|
125
126
|
class: "vue-ui-sparkgauge",
|
|
126
127
|
style: g(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
|
|
127
128
|
}, [
|
|
128
|
-
e.value.style.title.show &&
|
|
129
|
+
e.value.style.title.show && y.value && e.value.style.title.position === "top" ? (u(), r("div", {
|
|
129
130
|
key: 0,
|
|
130
131
|
class: "vue-data-ui-sparkgauge-label",
|
|
131
132
|
style: g(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
132
|
-
}, k(
|
|
133
|
+
}, k(y.value), 5)) : d("", !0),
|
|
133
134
|
(u(), r("svg", {
|
|
134
135
|
ref_key: "svgRef",
|
|
135
136
|
ref: I,
|
|
136
|
-
xmlns: i(
|
|
137
|
+
xmlns: i(W),
|
|
137
138
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
138
139
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
139
140
|
}, [
|
|
140
|
-
|
|
141
|
+
P(i(O)),
|
|
141
142
|
t.$slots["chart-background"] && !i(h) ? (u(), r("foreignObject", {
|
|
142
143
|
key: 0,
|
|
143
144
|
x: 0,
|
|
@@ -150,25 +151,25 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
150
151
|
}, [
|
|
151
152
|
F(t.$slots, "chart-background")
|
|
152
153
|
], 8, ue)) : d("", !0),
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
m("defs", null, [
|
|
155
|
+
m("linearGradient", {
|
|
155
156
|
id: `gradient_${_.value}`,
|
|
156
157
|
x1: "-10%",
|
|
157
158
|
y1: "100%",
|
|
158
159
|
x2: "110%",
|
|
159
160
|
y2: "100%"
|
|
160
161
|
}, [
|
|
161
|
-
|
|
162
|
+
m("stop", {
|
|
162
163
|
offset: "0%",
|
|
163
164
|
"stop-color": e.value.style.colors.min
|
|
164
165
|
}, null, 8, ne),
|
|
165
|
-
|
|
166
|
+
m("stop", {
|
|
166
167
|
offset: "100%",
|
|
167
168
|
"stop-color": e.value.style.colors.max
|
|
168
169
|
}, null, 8, re)
|
|
169
170
|
], 8, ie)
|
|
170
171
|
]),
|
|
171
|
-
|
|
172
|
+
m("path", {
|
|
172
173
|
d: `M10 ${l.value.base} A 1 1 0 1 1 118 ${l.value.base}`,
|
|
173
174
|
stroke: e.value.style.gutter.color,
|
|
174
175
|
"stroke-width": 8,
|
|
@@ -203,10 +204,10 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
203
204
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
204
205
|
fill: z.value,
|
|
205
206
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
206
|
-
}, k(i(
|
|
207
|
+
}, k(i(Z)(
|
|
207
208
|
e.value.style.dataLabel.formatter,
|
|
208
209
|
i(x)(a.value),
|
|
209
|
-
i(
|
|
210
|
+
i(ee)({
|
|
210
211
|
p: e.value.style.dataLabel.prefix,
|
|
211
212
|
v: i(x)(a.value),
|
|
212
213
|
s: e.value.style.dataLabel.suffix,
|
|
@@ -215,18 +216,18 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
215
216
|
{ datapoint: i(x)(a.value), color: z.value }
|
|
216
217
|
)), 9, fe))
|
|
217
218
|
], 8, se)),
|
|
218
|
-
e.value.style.title.show &&
|
|
219
|
+
e.value.style.title.show && y.value && e.value.style.title.position === "bottom" ? (u(), r("div", {
|
|
219
220
|
key: 1,
|
|
220
221
|
class: "vue-data-ui-sparkgauge-label",
|
|
221
222
|
style: g(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
222
|
-
}, k(
|
|
223
|
-
t.$slots.source ? (u(), r("div",
|
|
223
|
+
}, k(y.value), 5)) : d("", !0),
|
|
224
|
+
t.$slots.source ? (u(), r("div", me, [
|
|
224
225
|
F(t.$slots, "source")
|
|
225
226
|
], 512)) : d("", !0),
|
|
226
|
-
i(h) ? (u(),
|
|
227
|
+
i(h) ? (u(), q(ae, { key: 3 })) : d("", !0)
|
|
227
228
|
], 4));
|
|
228
229
|
}
|
|
229
230
|
};
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
xe as default
|
|
232
233
|
};
|