vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, M as a, Rt as o, i as s, kt as c, m as ee, t as te, v as l, wt as ne } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as re } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as u } from "./useNestedProp-DIuuzG1r.js";
|
|
6
|
+
import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { c as ce } from "./canvas-lib-BOP_HS11.js";
|
|
9
9
|
import { t as le } from "./useResponsive-BfnK0KxU.js";
|
|
10
10
|
import { t as ue } from "./usePrefersMotion-BC-CsqR1.js";
|
|
11
11
|
import { t as de } from "./useFitSvgText-CT3nmlaS.js";
|
|
12
12
|
import { t as fe } from "./vue_ui_spark_trend-DxVmpkmC.js";
|
|
13
|
-
import { computed as d, createBlock as pe, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as me, defineAsyncComponent as he, nextTick as
|
|
13
|
+
import { computed as d, createBlock as pe, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as me, defineAsyncComponent as he, nextTick as ge, normalizeStyle as _e, onMounted as ve, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, toRefs as ye, unref as y, watch as b } from "vue";
|
|
14
14
|
//#region src/components/vue-ui-spark-trend.vue
|
|
15
|
-
var
|
|
15
|
+
var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"], xe = ["id"], Se = ["xmlns", "viewBox"], Ce = ["width", "height"], we = ["id"], Te = ["stop-color"], Ee = ["stop-color"], De = { key: 1 }, Oe = ["d", "fill"], ke = ["d", "fill"], Ae = [
|
|
16
16
|
"d",
|
|
17
17
|
"stroke",
|
|
18
18
|
"stroke-width",
|
|
19
19
|
"stroke-linecap",
|
|
20
20
|
"stroke-linejoin"
|
|
21
|
-
],
|
|
21
|
+
], je = [
|
|
22
22
|
"d",
|
|
23
23
|
"stroke",
|
|
24
24
|
"stroke-width",
|
|
25
25
|
"stroke-linecap",
|
|
26
26
|
"stroke-linejoin"
|
|
27
|
-
],
|
|
27
|
+
], Me = ["d"], Ne = ["fill", "d"], Pe = [
|
|
28
28
|
"x",
|
|
29
29
|
"y",
|
|
30
30
|
"width",
|
|
31
31
|
"height"
|
|
32
|
-
],
|
|
32
|
+
], Fe = [
|
|
33
33
|
"x",
|
|
34
34
|
"y",
|
|
35
35
|
"fill",
|
|
36
36
|
"font-size",
|
|
37
37
|
"font-weight"
|
|
38
|
-
],
|
|
38
|
+
], Ie = [
|
|
39
39
|
"stroke",
|
|
40
40
|
"cx",
|
|
41
41
|
"cy",
|
|
42
42
|
"fill"
|
|
43
|
-
],
|
|
43
|
+
], Le = [
|
|
44
44
|
"x",
|
|
45
45
|
"y",
|
|
46
46
|
"font-size",
|
|
47
47
|
"fill",
|
|
48
48
|
"font-weight"
|
|
49
|
-
],
|
|
49
|
+
], S = /*#__PURE__*/ se({
|
|
50
50
|
__name: "vue-ui-spark-trend",
|
|
51
51
|
props: {
|
|
52
52
|
config: {
|
|
@@ -63,7 +63,7 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(e) {
|
|
66
|
-
let
|
|
66
|
+
let se = he(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_spark_trend: x } = re(), { isThemeValid: S, warnInvalidTheme: Re } = oe(), C = ue(), w = e, T = g(null), E = g(null), ze = g(null), D = g(null), O = g(null), k = g(!1), A = g(null), j = g(n()), M = g(I()), Be = d(() => i({
|
|
67
67
|
defaultConfig: { style: {
|
|
68
68
|
animation: { show: !1 },
|
|
69
69
|
backgroundColor: "#99999930",
|
|
@@ -78,11 +78,11 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
78
78
|
}
|
|
79
79
|
} },
|
|
80
80
|
userConfig: M.value.skeletonConfig ?? {}
|
|
81
|
-
})), { loading: N, FINAL_DATASET: P, manualLoading: F } =
|
|
82
|
-
...
|
|
81
|
+
})), { loading: N, FINAL_DATASET: P, manualLoading: F } = ie({
|
|
82
|
+
...ye(w),
|
|
83
83
|
FINAL_CONFIG: M,
|
|
84
84
|
prepareConfig: I,
|
|
85
|
-
skeletonDataset:
|
|
85
|
+
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
86
86
|
1,
|
|
87
87
|
2,
|
|
88
88
|
3,
|
|
@@ -96,68 +96,68 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
96
96
|
144,
|
|
97
97
|
233
|
|
98
98
|
],
|
|
99
|
-
skeletonConfig:
|
|
99
|
+
skeletonConfig: i({
|
|
100
100
|
defaultConfig: M.value,
|
|
101
101
|
userConfig: Be.value
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
function I() {
|
|
105
|
-
let e =
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
105
|
+
let e = u({
|
|
106
|
+
userConfig: w.config,
|
|
107
|
+
defaultConfig: x
|
|
108
108
|
}), t = e.theme;
|
|
109
109
|
if (!t) return e;
|
|
110
|
-
if (!
|
|
111
|
-
let n =
|
|
112
|
-
userConfig: fe[t] ||
|
|
110
|
+
if (!S.value(e)) return Re(e), e;
|
|
111
|
+
let n = u({
|
|
112
|
+
userConfig: fe[t] || w.config,
|
|
113
113
|
defaultConfig: e
|
|
114
114
|
});
|
|
115
|
-
return
|
|
116
|
-
userConfig:
|
|
115
|
+
return u({
|
|
116
|
+
userConfig: w.config,
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let L = d(() =>
|
|
120
|
+
let L = d(() => ne({
|
|
121
121
|
data: P.value,
|
|
122
122
|
threshold: M.value.downsample.threshold
|
|
123
123
|
}));
|
|
124
|
-
|
|
124
|
+
b(() => w.config, (e) => {
|
|
125
125
|
M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
|
|
126
126
|
}, { deep: !0 });
|
|
127
127
|
function R(e) {
|
|
128
|
-
return e.map((e) =>
|
|
128
|
+
return e.map((e) => l(e));
|
|
129
129
|
}
|
|
130
|
-
let z =
|
|
130
|
+
let z = g(ne({
|
|
131
131
|
data: P.value,
|
|
132
132
|
threshold: M.value.downsample.threshold
|
|
133
|
-
}).map((e) => M.value.style.animation.show && !
|
|
133
|
+
}).map((e) => M.value.style.animation.show && !C.value || [
|
|
134
134
|
void 0,
|
|
135
135
|
Infinity,
|
|
136
136
|
-Infinity,
|
|
137
137
|
null,
|
|
138
138
|
NaN
|
|
139
139
|
].includes(e) ? null : e));
|
|
140
|
-
|
|
141
|
-
A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !
|
|
140
|
+
b(L, (e) => {
|
|
141
|
+
A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !C.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
|
|
142
142
|
void 0,
|
|
143
143
|
Infinity,
|
|
144
144
|
-Infinity,
|
|
145
145
|
null
|
|
146
|
-
].includes(e) && !Number.isNaN(e) ? e : null), B(),
|
|
146
|
+
].includes(e) && !Number.isNaN(e) ? e : null), B(), ge(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
147
147
|
}, {
|
|
148
148
|
deep: !0,
|
|
149
149
|
immediate: !0
|
|
150
|
-
}),
|
|
151
|
-
A.value &&= (cancelAnimationFrame(A.value), null), F.value =
|
|
150
|
+
}), b(() => JSON.stringify(w.dataset), () => {
|
|
151
|
+
A.value &&= (cancelAnimationFrame(A.value), null), F.value = c(w.dataset);
|
|
152
152
|
let e = L.value;
|
|
153
|
-
z.value = M.value.style.animation.show && !
|
|
153
|
+
z.value = M.value.style.animation.show && !C.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), ge(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
154
154
|
}, {
|
|
155
155
|
deep: !1,
|
|
156
156
|
immediate: !0
|
|
157
157
|
});
|
|
158
158
|
function B() {
|
|
159
159
|
let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
|
|
160
|
-
if (!N.value && M.value.style.animation.show && !
|
|
160
|
+
if (!N.value && M.value.style.animation.show && !C.value && M.value.style.animation.animationFrames && P.value.length > 1) {
|
|
161
161
|
z.value = [];
|
|
162
162
|
let n = 0;
|
|
163
163
|
function r() {
|
|
@@ -168,30 +168,30 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
168
168
|
r();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
ve(() => {
|
|
172
172
|
V();
|
|
173
173
|
});
|
|
174
174
|
let Ve = d(() => M.value.debug);
|
|
175
175
|
function V() {
|
|
176
|
-
if (
|
|
176
|
+
if (c(w.dataset) && (t({
|
|
177
177
|
componentName: "VueUiSparkTrend",
|
|
178
178
|
type: "dataset",
|
|
179
179
|
debug: Ve.value
|
|
180
|
-
}), F.value = !0),
|
|
180
|
+
}), F.value = !0), c(w.dataset) || (F.value = !1), M.value.responsive) {
|
|
181
181
|
let e = ce(() => {
|
|
182
182
|
let { width: e, height: t } = le({
|
|
183
|
-
chart:
|
|
183
|
+
chart: T.value,
|
|
184
184
|
source: ze.value
|
|
185
185
|
});
|
|
186
186
|
requestAnimationFrame(() => {
|
|
187
187
|
H.value = e, U.value = t;
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
|
-
D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value =
|
|
190
|
+
D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = T.value.parentNode, D.value.observe(O.value);
|
|
191
191
|
}
|
|
192
192
|
B(), $(".vue-ui-sparktrend-progress-label", 6);
|
|
193
193
|
}
|
|
194
|
-
let H =
|
|
194
|
+
let H = g(M.value.style.width), U = g(M.value.style.height), W = d(() => ({
|
|
195
195
|
height: U.value,
|
|
196
196
|
width: H.value
|
|
197
197
|
})), G = d(() => ({
|
|
@@ -242,16 +242,16 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
242
242
|
-Infinity
|
|
243
243
|
].includes(e) ? 0 : e || 0;
|
|
244
244
|
return {
|
|
245
|
-
value:
|
|
246
|
-
absoluteValue:
|
|
247
|
-
plotValue:
|
|
245
|
+
value: l(e),
|
|
246
|
+
absoluteValue: l(n),
|
|
247
|
+
plotValue: l(n + q.value),
|
|
248
248
|
toMax: We(n + q.value),
|
|
249
|
-
x: G.value.left +
|
|
250
|
-
y: G.value.bottom -
|
|
249
|
+
x: G.value.left + l(t * (G.value.width / (Ge.value - 1))) - M.value.style.padding.right,
|
|
250
|
+
y: G.value.bottom - l(G.value.height * We(n + q.value))
|
|
251
251
|
};
|
|
252
252
|
})), Y = d(() => {
|
|
253
253
|
let e = R(L.value);
|
|
254
|
-
return M.value.style.trendLabel.trendType === "global" ?
|
|
254
|
+
return M.value.style.trendLabel.trendType === "global" ? ee(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
|
|
255
255
|
}), X = d(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = d(() => M.value.style.arrow.colors[X.value]), Ke = d(() => {
|
|
256
256
|
let e = {
|
|
257
257
|
x: J.value[0].x,
|
|
@@ -275,30 +275,30 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
275
275
|
e.push(`${t.x},${t.y} `);
|
|
276
276
|
}), `M ${e.toString()}`;
|
|
277
277
|
}), Q = d(() => U.value / 2 - M.value.style.trendLabel.fontSize), { fitText: $ } = de({
|
|
278
|
-
svgRef:
|
|
278
|
+
svgRef: E,
|
|
279
279
|
unitWidth: d(() => G.value.left * .8),
|
|
280
280
|
fontSize: M.value.style.trendLabel.fontSize
|
|
281
281
|
}), Je = d(() => {
|
|
282
282
|
if (N.value || k.value) return "Trend chart loading";
|
|
283
|
-
let e = J.value?.at(-1), t = e?.value, n =
|
|
283
|
+
let e = J.value?.at(-1), t = e?.value, n = r({
|
|
284
284
|
p: Y.value > 0 ? "+" : "",
|
|
285
285
|
v: Y.value,
|
|
286
286
|
s: "%",
|
|
287
287
|
r: M.value.style.trendLabel.rounding
|
|
288
|
-
}),
|
|
288
|
+
}), i = t == null ? "not available" : s(M.value.style.dataLabel.formatter, t, r({
|
|
289
289
|
p: M.value.style.dataLabel.prefix,
|
|
290
290
|
v: t,
|
|
291
291
|
s: M.value.style.dataLabel.suffix,
|
|
292
292
|
r: M.value.style.dataLabel.rounding
|
|
293
293
|
}), { datapoint: e });
|
|
294
|
-
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${
|
|
294
|
+
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${i}.`;
|
|
295
295
|
}), Ye = d(() => `sparktrend-a11y-${j.value}`);
|
|
296
|
-
return (e, t) => (
|
|
296
|
+
return (e, t) => (h(), p("div", {
|
|
297
297
|
ref_key: "sparkTrendChart",
|
|
298
|
-
ref:
|
|
298
|
+
ref: T,
|
|
299
299
|
class: "vue-data-ui-component vue-ui-spark-trend",
|
|
300
300
|
id: j.value,
|
|
301
|
-
style:
|
|
301
|
+
style: _e(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
|
|
302
302
|
role: "img",
|
|
303
303
|
"aria-describedby": Ye.value
|
|
304
304
|
}, [
|
|
@@ -306,25 +306,25 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
306
306
|
id: Ye.value,
|
|
307
307
|
class: "sr-only",
|
|
308
308
|
"aria-live": "polite"
|
|
309
|
-
},
|
|
310
|
-
(
|
|
309
|
+
}, v(Je.value), 9, xe),
|
|
310
|
+
(h(), p("svg", {
|
|
311
311
|
key: He.value,
|
|
312
312
|
ref_key: "svgRef",
|
|
313
|
-
ref:
|
|
314
|
-
xmlns:
|
|
313
|
+
ref: E,
|
|
314
|
+
xmlns: y(te),
|
|
315
315
|
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
316
316
|
style: "width:100%;background:transparent;overflow:visible",
|
|
317
317
|
"aria-hidden": "true"
|
|
318
318
|
}, [
|
|
319
|
-
me(
|
|
320
|
-
e.$slots["chart-background"] ? (
|
|
319
|
+
me(y(se)),
|
|
320
|
+
e.$slots["chart-background"] ? (h(), p("foreignObject", {
|
|
321
321
|
key: 0,
|
|
322
322
|
x: 0,
|
|
323
323
|
y: 0,
|
|
324
324
|
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
325
325
|
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
326
326
|
style: { pointerEvents: "none" }
|
|
327
|
-
}, [
|
|
327
|
+
}, [_(e.$slots, "chart-background", {}, void 0, !0)], 8, Ce)) : f("", !0),
|
|
328
328
|
m("defs", null, [m("linearGradient", {
|
|
329
329
|
x1: "0%",
|
|
330
330
|
y1: "0%",
|
|
@@ -333,32 +333,32 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
333
333
|
id: `pill_gradient_${j.value}`
|
|
334
334
|
}, [m("stop", {
|
|
335
335
|
offset: "0%",
|
|
336
|
-
"stop-color":
|
|
337
|
-
}, null, 8,
|
|
336
|
+
"stop-color": y(o)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity)
|
|
337
|
+
}, null, 8, Te), m("stop", {
|
|
338
338
|
offset: "100%",
|
|
339
339
|
"stop-color": M.value.style.backgroundColor
|
|
340
|
-
}, null, 8,
|
|
341
|
-
M.value.style.area.show && J.value[0] ? (
|
|
340
|
+
}, null, 8, Ee)], 8, we)]),
|
|
341
|
+
M.value.style.area.show && J.value[0] ? (h(), p("g", De, [M.value.style.line.smooth ? (h(), p("path", {
|
|
342
342
|
key: 0,
|
|
343
|
-
d: `M ${J.value[0].x},${G.value.bottom} ${
|
|
344
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` :
|
|
343
|
+
d: `M ${J.value[0].x},${G.value.bottom} ${y(a)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
|
|
344
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : y(o)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
345
345
|
stroke: "none"
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, Oe)) : (h(), p("path", {
|
|
347
347
|
key: 1,
|
|
348
348
|
d: `M${Ke.value}Z`,
|
|
349
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` :
|
|
349
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : y(o)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
350
350
|
stroke: "none"
|
|
351
|
-
}, null, 8,
|
|
352
|
-
M.value.style.line.smooth && J.value.length ? (
|
|
351
|
+
}, null, 8, ke))])) : f("", !0),
|
|
352
|
+
M.value.style.line.smooth && J.value.length ? (h(), p("path", {
|
|
353
353
|
key: 2,
|
|
354
|
-
d: `M ${
|
|
354
|
+
d: `M ${y(a)(J.value)}`,
|
|
355
355
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
356
356
|
fill: "none",
|
|
357
357
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
358
358
|
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
359
359
|
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
360
|
-
}, null, 8,
|
|
361
|
-
!M.value.style.line.smooth && J.value.length ? (
|
|
360
|
+
}, null, 8, Ae)) : f("", !0),
|
|
361
|
+
!M.value.style.line.smooth && J.value.length ? (h(), p("path", {
|
|
362
362
|
key: 3,
|
|
363
363
|
d: qe.value,
|
|
364
364
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
@@ -366,17 +366,17 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
366
366
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
367
367
|
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
368
368
|
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
369
|
-
}, null, 8,
|
|
370
|
-
|
|
369
|
+
}, null, 8, je)) : f("", !0),
|
|
370
|
+
y(N) ? (h(), p("path", {
|
|
371
371
|
key: 4,
|
|
372
372
|
fill: "#6A6A6A",
|
|
373
373
|
d: `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
|
|
374
|
-
}, null, 8,
|
|
374
|
+
}, null, 8, Me)) : (h(), p("path", {
|
|
375
375
|
key: 5,
|
|
376
376
|
fill: Z.value,
|
|
377
377
|
d: X.value === "positive" ? `M ${G.value.left / 2}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 12} ${G.value.left / 2 + 7}, ${Q.value + 12} Z` : X.value === "negative" ? `M ${G.value.left / 2}, ${Q.value + 12} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 + 7}, ${Q.value} Z` : `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
|
|
378
|
-
}, null, 8,
|
|
379
|
-
|
|
378
|
+
}, null, 8, Ne)),
|
|
379
|
+
y(N) ? (h(), p("rect", {
|
|
380
380
|
key: 6,
|
|
381
381
|
x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
|
|
382
382
|
y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
|
|
@@ -384,8 +384,8 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
384
384
|
height: M.value.style.trendLabel.fontSize,
|
|
385
385
|
fill: "#6A6A6A80",
|
|
386
386
|
rx: "3"
|
|
387
|
-
}, null, 8,
|
|
388
|
-
!k.value && !
|
|
387
|
+
}, null, 8, Pe)) : f("", !0),
|
|
388
|
+
!k.value && !y(N) ? (h(), p("text", {
|
|
389
389
|
key: 7,
|
|
390
390
|
class: "vue-ui-sparktrend-progress-label",
|
|
391
391
|
x: G.value.left / 2,
|
|
@@ -394,22 +394,22 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
394
394
|
fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
|
|
395
395
|
"font-size": M.value.style.trendLabel.fontSize,
|
|
396
396
|
"font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
|
|
397
|
-
}, y(
|
|
397
|
+
}, v(y(r)({
|
|
398
398
|
p: Y.value > 0 ? "+" : "",
|
|
399
399
|
v: Y.value,
|
|
400
400
|
s: "%",
|
|
401
401
|
r: M.value.style.trendLabel.rounding
|
|
402
|
-
})), 9,
|
|
403
|
-
J.value.length && J.value.at(-1).x !== void 0 ? (
|
|
402
|
+
})), 9, Fe)) : f("", !0),
|
|
403
|
+
J.value.length && J.value.at(-1).x !== void 0 ? (h(), p("circle", {
|
|
404
404
|
key: 8,
|
|
405
405
|
stroke: M.value.style.backgroundColor,
|
|
406
406
|
"stroke-width": 2,
|
|
407
407
|
cx: J.value.at(-1).x,
|
|
408
408
|
cy: J.value.at(-1).y,
|
|
409
409
|
r: 4,
|
|
410
|
-
fill:
|
|
411
|
-
}, null, 8,
|
|
412
|
-
J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (
|
|
410
|
+
fill: y(N) ? "#6A6A6A" : Z.value
|
|
411
|
+
}, null, 8, Ie)) : f("", !0),
|
|
412
|
+
J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (h(), p("text", {
|
|
413
413
|
key: 9,
|
|
414
414
|
"text-anchor": "middle",
|
|
415
415
|
x: J.value.at(-1).x,
|
|
@@ -417,22 +417,22 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
417
417
|
"font-size": M.value.style.dataLabel.fontSize,
|
|
418
418
|
fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
|
|
419
419
|
"font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
|
|
420
|
-
}, y(
|
|
420
|
+
}, v(y(s)(M.value.style.dataLabel.formatter, J.value.at(-1).value, y(r)({
|
|
421
421
|
p: M.value.style.dataLabel.prefix,
|
|
422
422
|
v: J.value.at(-1).value,
|
|
423
423
|
s: M.value.style.dataLabel.suffix,
|
|
424
424
|
r: M.value.style.dataLabel.rounding
|
|
425
|
-
}), { datapoint: J.value.at(-1) })), 9,
|
|
426
|
-
], 8,
|
|
427
|
-
e.$slots.source ? (
|
|
425
|
+
}), { datapoint: J.value.at(-1) })), 9, Le)) : f("", !0)
|
|
426
|
+
], 8, Se)),
|
|
427
|
+
e.$slots.source ? (h(), p("div", {
|
|
428
428
|
key: 0,
|
|
429
429
|
ref_key: "source",
|
|
430
430
|
ref: ze,
|
|
431
431
|
dir: "auto"
|
|
432
|
-
}, [
|
|
433
|
-
|
|
434
|
-
], 12,
|
|
432
|
+
}, [_(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
433
|
+
_(e.$slots, "skeleton", {}, () => [y(N) ? (h(), pe(ae, { key: 0 })) : f("", !0)], !0)
|
|
434
|
+
], 12, be));
|
|
435
435
|
}
|
|
436
436
|
}, [["__scopeId", "data-v-90a4c498"]]);
|
|
437
437
|
//#endregion
|
|
438
|
-
export {
|
|
438
|
+
export { x as n, S as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as o, S as ee, Wt as te, b as s, dt as c, i as l, kt as ne, t as re, zt as ie } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as u } from "./useNestedProp-
|
|
5
|
+
import { t as u } from "./useNestedProp-DIuuzG1r.js";
|
|
6
6
|
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
|
|
8
8
|
import { t as d } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
@@ -56,11 +56,11 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
56
56
|
},
|
|
57
57
|
emits: ["selectDatapoint"],
|
|
58
58
|
setup(e, { emit: D }) {
|
|
59
|
-
let R = fe(() => import("./PackageVersion-
|
|
59
|
+
let R = fe(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_sparkbar: _e } = ae(), { isThemeValid: ve, warnInvalidTheme: ye } = ce(), z = le(), B = e, be = T();
|
|
60
60
|
y(() => {
|
|
61
61
|
be["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
62
62
|
});
|
|
63
|
-
let V = x(
|
|
63
|
+
let V = x(n()), H = x(K()), xe = p(() => i({
|
|
64
64
|
defaultConfig: { style: {
|
|
65
65
|
backgroundColor: "#99999930",
|
|
66
66
|
animation: { show: !1 },
|
|
@@ -96,7 +96,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
96
96
|
color: "#DBDBDB"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
-
skeletonConfig:
|
|
99
|
+
skeletonConfig: i({
|
|
100
100
|
defaultConfig: H.value,
|
|
101
101
|
userConfig: xe.value
|
|
102
102
|
})
|
|
@@ -117,7 +117,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
117
117
|
});
|
|
118
118
|
return {
|
|
119
119
|
...r,
|
|
120
|
-
customPalette: r.customPalette.length ? r.customPalette : te[t] ||
|
|
120
|
+
customPalette: r.customPalette.length ? r.customPalette : te[t] || a
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
E(() => B.config, (e) => {
|
|
@@ -129,7 +129,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
129
129
|
formatter: e.formatter || null
|
|
130
130
|
}))), J = x(null);
|
|
131
131
|
y(async () => {
|
|
132
|
-
|
|
132
|
+
ne(B.dataset) && t({
|
|
133
133
|
componentName: "VueUiSparkbar",
|
|
134
134
|
type: "dataset",
|
|
135
135
|
debug: G.value
|
|
@@ -161,23 +161,23 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
161
161
|
let X = x({
|
|
162
162
|
width: 500,
|
|
163
163
|
height: 16
|
|
164
|
-
}), we = p(() => Math.max(...W.value.map((e) => e.value))), Te = p(() => (W.value.forEach((e,
|
|
165
|
-
|
|
164
|
+
}), we = p(() => Math.max(...W.value.map((e) => e.value))), Te = p(() => (W.value.forEach((e, n) => {
|
|
165
|
+
c({
|
|
166
166
|
datasetObject: e,
|
|
167
167
|
requiredAttributes: ["name", "value"]
|
|
168
168
|
}).forEach((e) => {
|
|
169
|
-
|
|
169
|
+
t({
|
|
170
170
|
componentName: "VueUiSparkbar",
|
|
171
171
|
type: "datasetSerieAttribute",
|
|
172
172
|
property: e,
|
|
173
|
-
index:
|
|
173
|
+
index: n,
|
|
174
174
|
debug: G.value
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
177
|
}), q.value.map((e, t) => ({
|
|
178
178
|
...e,
|
|
179
179
|
value: e.value || 0,
|
|
180
|
-
color:
|
|
180
|
+
color: s(e.color) || Ce.value[t] || a[t] || a[t % a.length]
|
|
181
181
|
}))));
|
|
182
182
|
function Z(e) {
|
|
183
183
|
return e / we.value;
|
|
@@ -216,7 +216,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
216
216
|
width: "100%",
|
|
217
217
|
position: "relative",
|
|
218
218
|
fontFamily: H.value.style.fontFamily,
|
|
219
|
-
background: B.backgroundOpacity === null ? H.value.style.backgroundColor : w(
|
|
219
|
+
background: B.backgroundOpacity === null ? H.value.style.backgroundColor : w(o)(H.value.style.backgroundColor, B.backgroundOpacity)
|
|
220
220
|
})
|
|
221
221
|
}, [
|
|
222
222
|
e.$slots.title ? S(e.$slots, "title", me(_({ key: 0 }, { title: {
|
|
@@ -248,11 +248,11 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
248
248
|
fontWeight: H.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
249
249
|
})
|
|
250
250
|
}, C(H.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
251
|
-
(b(!0), h(f, null, he(Te.value, (t,
|
|
252
|
-
style: v(`display:flex !important;${["left", "right"].includes(H.value.style.labels.name.position) ? `flex-direction: ${H.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${H.value.style.gap}px !important;align-items:center;${w(W).length > 0 &&
|
|
253
|
-
onClick: (e) => De(t,
|
|
254
|
-
onMouseenter: (e) => Oe(t,
|
|
255
|
-
onMouseleave: (e) => ke(t,
|
|
251
|
+
(b(!0), h(f, null, he(Te.value, (t, n) => (b(), h("div", {
|
|
252
|
+
style: v(`display:flex !important;${["left", "right"].includes(H.value.style.labels.name.position) ? `flex-direction: ${H.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${H.value.style.gap}px !important;align-items:center;${w(W).length > 0 && n !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
253
|
+
onClick: (e) => De(t, n),
|
|
254
|
+
onMouseenter: (e) => Oe(t, n),
|
|
255
|
+
onMouseleave: (e) => ke(t, n)
|
|
256
256
|
}, [
|
|
257
257
|
w(U) ? m("", !0) : S(e.$slots, "data-label", _({
|
|
258
258
|
key: 0,
|
|
@@ -260,23 +260,23 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
260
260
|
}, { bar: {
|
|
261
261
|
...t,
|
|
262
262
|
target: $(t),
|
|
263
|
-
valueLabel: w(
|
|
263
|
+
valueLabel: w(l)(t.formatter, t.value, w(r)({
|
|
264
264
|
p: t.prefix || "",
|
|
265
265
|
v: t.value,
|
|
266
266
|
s: t.suffix || "",
|
|
267
267
|
r: t.rounding || 0
|
|
268
268
|
}), {
|
|
269
269
|
datapoint: t,
|
|
270
|
-
seriesIndex:
|
|
270
|
+
seriesIndex: n
|
|
271
271
|
}),
|
|
272
|
-
targetLabel: w(
|
|
272
|
+
targetLabel: w(l)(t.formatter, $(t), w(r)({
|
|
273
273
|
p: t.prefix || "",
|
|
274
274
|
v: $(t),
|
|
275
275
|
s: t.suffix || "",
|
|
276
276
|
r: t.rounding || 0
|
|
277
277
|
}), {
|
|
278
278
|
datapoint: t,
|
|
279
|
-
seriesIndex:
|
|
279
|
+
seriesIndex: n
|
|
280
280
|
})
|
|
281
281
|
} })),
|
|
282
282
|
!e.$slots["data-label"] || w(U) ? (b(), h("div", {
|
|
@@ -319,23 +319,23 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
319
319
|
key: 0,
|
|
320
320
|
style: v(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
321
321
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
322
|
-
}, ": " + C(w(
|
|
322
|
+
}, ": " + C(w(l)(t.formatter, t.value, w(r)({
|
|
323
323
|
p: t.prefix || "",
|
|
324
324
|
v: t.value,
|
|
325
325
|
s: t.suffix || "",
|
|
326
326
|
r: t.rounding || 0
|
|
327
327
|
}), {
|
|
328
328
|
datapoint: t,
|
|
329
|
-
seriesIndex:
|
|
329
|
+
seriesIndex: n
|
|
330
330
|
})), 5)) : m("", !0),
|
|
331
|
-
H.value.style.layout.showTargetValue ? (b(), h("span", k, C(" " + H.value.style.layout.targetValueText) + " " + C(w(
|
|
331
|
+
H.value.style.layout.showTargetValue ? (b(), h("span", k, C(" " + H.value.style.layout.targetValueText) + " " + C(w(l)(t.formatter, $(t), w(r)({
|
|
332
332
|
p: t.prefix || "",
|
|
333
333
|
v: $(t),
|
|
334
334
|
s: t.suffix || "",
|
|
335
335
|
r: t.rounding || 0
|
|
336
336
|
}), {
|
|
337
337
|
datapoint: t,
|
|
338
|
-
seriesIndex:
|
|
338
|
+
seriesIndex: n
|
|
339
339
|
})), 1)) : m("", !0)
|
|
340
340
|
], 64))], 4)) : m("", !0),
|
|
341
341
|
(b(), h("svg", {
|
|
@@ -350,10 +350,10 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
350
350
|
y1: "0%",
|
|
351
351
|
x2: "100%",
|
|
352
352
|
y2: "0%",
|
|
353
|
-
id: `sparkbar_gradient_${
|
|
353
|
+
id: `sparkbar_gradient_${n}_${V.value}`
|
|
354
354
|
}, [g("stop", {
|
|
355
355
|
offset: "0%",
|
|
356
|
-
"stop-color": w(
|
|
356
|
+
"stop-color": w(o)(w(ie)(t.color, .03), 100 - H.value.style.bar.gradient.intensity)
|
|
357
357
|
}, null, 8, M), g("stop", {
|
|
358
358
|
offset: "100%",
|
|
359
359
|
"stop-color": t.color
|
|
@@ -363,7 +363,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
363
363
|
width: X.value.width,
|
|
364
364
|
x: 0,
|
|
365
365
|
y: 0,
|
|
366
|
-
fill: w(
|
|
366
|
+
fill: w(o)(H.value.style.gutter.backgroundColor, H.value.style.gutter.opacity),
|
|
367
367
|
rx: X.value.height / 2
|
|
368
368
|
}, null, 8, P),
|
|
369
369
|
g("rect", {
|
|
@@ -379,7 +379,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
379
379
|
width: X.value.width * Q(t),
|
|
380
380
|
x: 0,
|
|
381
381
|
y: 0,
|
|
382
|
-
fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${
|
|
382
|
+
fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${n}_${V.value})` : t.color,
|
|
383
383
|
rx: X.value.height / 2
|
|
384
384
|
}, null, 8, I)
|
|
385
385
|
], 8, A))
|