vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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 +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { At as t, Bt as n, K as r, Y as i, et as a, ft as o, i as s, qt as c, t as ee, zt as l } from "./lib-CnHx5WfV.js";
|
|
3
3
|
import { t as u } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as re } from "./Shape-
|
|
8
|
-
import { t as
|
|
9
|
-
import { c as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
4
|
+
import { n as te, t as ne } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as d } from "./useNestedProp-D8NuRneO.js";
|
|
6
|
+
import { t as f } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as re } from "./Shape-B5ksaGa1.js";
|
|
8
|
+
import { t as p } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
+
import { c as ie } from "./canvas-lib-BOP_HS11.js";
|
|
10
|
+
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
11
|
+
import { t as m } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as oe } from "./A11yDataTable-DdRsVULz.js";
|
|
13
|
+
import { t as se } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
|
+
import { t as ce } from "./useFitSvgText-CT3nmlaS.js";
|
|
15
|
+
import { t as le } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
|
|
16
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as ue, createVNode as de, defineAsyncComponent as fe, guardReactiveProps as pe, nextTick as me, normalizeClass as he, normalizeProps as ge, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRefs as _e, unref as O, useCssVars as ve, watch as ye } from "vue";
|
|
16
17
|
//#region src/components/vue-ui-sparkhistogram.vue
|
|
17
|
-
var
|
|
18
|
+
var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { key: 0 }, Ce = { key: 1 }, we = { style: { position: "relative" } }, Te = [
|
|
18
19
|
"xmlns",
|
|
19
20
|
"viewBox",
|
|
20
21
|
"aria-describedby"
|
|
21
|
-
],
|
|
22
|
+
], Ee = ["width", "height"], De = [
|
|
22
23
|
"height",
|
|
23
24
|
"width",
|
|
24
25
|
"fill",
|
|
@@ -27,7 +28,7 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
27
28
|
"stroke-width",
|
|
28
29
|
"rx",
|
|
29
30
|
"stroke-dasharray"
|
|
30
|
-
],
|
|
31
|
+
], Oe = { key: 1 }, ke = [
|
|
31
32
|
"x",
|
|
32
33
|
"y",
|
|
33
34
|
"height",
|
|
@@ -36,30 +37,30 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
36
37
|
"stroke",
|
|
37
38
|
"stroke-width",
|
|
38
39
|
"rx"
|
|
39
|
-
],
|
|
40
|
+
], Ae = { key: 2 }, je = [
|
|
40
41
|
"x",
|
|
41
42
|
"y",
|
|
42
43
|
"font-size",
|
|
43
44
|
"font-weight",
|
|
44
45
|
"fill"
|
|
45
|
-
],
|
|
46
|
+
], Me = [
|
|
46
47
|
"x",
|
|
47
48
|
"y",
|
|
48
49
|
"font-size",
|
|
49
50
|
"fill"
|
|
50
|
-
],
|
|
51
|
+
], Ne = [
|
|
51
52
|
"x",
|
|
52
53
|
"y",
|
|
53
54
|
"font-size",
|
|
54
55
|
"fill"
|
|
55
|
-
],
|
|
56
|
+
], Pe = [
|
|
56
57
|
"height",
|
|
57
58
|
"width",
|
|
58
59
|
"x",
|
|
59
60
|
"onMouseover",
|
|
60
61
|
"onMouseleave",
|
|
61
62
|
"onClick"
|
|
62
|
-
],
|
|
63
|
+
], Fe = {
|
|
63
64
|
key: 0,
|
|
64
65
|
style: {
|
|
65
66
|
position: "absolute",
|
|
@@ -69,7 +70,7 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
69
70
|
},
|
|
70
71
|
"data-dom-to-png-ignore": "",
|
|
71
72
|
"aria-hidden": "true"
|
|
72
|
-
}, k = /*#__PURE__*/
|
|
73
|
+
}, k = /*#__PURE__*/ p({
|
|
73
74
|
__name: "vue-ui-sparkhistogram",
|
|
74
75
|
props: {
|
|
75
76
|
config: {
|
|
@@ -86,15 +87,15 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
emits: ["selectDatapoint"],
|
|
89
|
-
setup(e, { emit:
|
|
90
|
-
ve((e) => ({
|
|
91
|
-
let
|
|
90
|
+
setup(e, { emit: p }) {
|
|
91
|
+
ve((e) => ({ v7441ed7f: Je.value }));
|
|
92
|
+
let be = fe(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), { vue_ui_sparkhistogram: k } = u(), { isThemeValid: Ie, warnInvalidTheme: Le } = f(), A = e, j = w(r()), M = w(null), N = w(null), P = w(null), F = w(null), I = w(null), L = w(!1), R = w(null), z = w("pointer"), B = w(K()), Re = g(() => c({
|
|
92
93
|
defaultConfig: { style: {
|
|
93
94
|
animation: { show: !1 },
|
|
94
95
|
backgroundColor: "#99999930"
|
|
95
96
|
} },
|
|
96
97
|
userConfig: B.value.skeletonConfig ?? {}
|
|
97
|
-
})), { loading: V, FINAL_DATASET: H, manualLoading:
|
|
98
|
+
})), { loading: V, FINAL_DATASET: H, manualLoading: ze } = te({
|
|
98
99
|
..._e(A),
|
|
99
100
|
FINAL_CONFIG: B,
|
|
100
101
|
prepareConfig: K,
|
|
@@ -165,52 +166,52 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
165
166
|
color: "#CACACA"
|
|
166
167
|
}
|
|
167
168
|
],
|
|
168
|
-
skeletonConfig:
|
|
169
|
+
skeletonConfig: c({
|
|
169
170
|
defaultConfig: B.value,
|
|
170
|
-
userConfig:
|
|
171
|
+
userConfig: Re.value
|
|
171
172
|
})
|
|
172
|
-
}), U =
|
|
173
|
+
}), U = w(B.value.style.layout.width), W = w(B.value.style.layout.height), { svgRef: G } = se({ config: B.value.style.title });
|
|
173
174
|
function K() {
|
|
174
|
-
let e =
|
|
175
|
+
let e = d({
|
|
175
176
|
userConfig: A.config,
|
|
176
177
|
defaultConfig: k
|
|
177
178
|
}), t = e.theme;
|
|
178
179
|
if (!t) return e;
|
|
179
|
-
if (!
|
|
180
|
-
let n =
|
|
181
|
-
userConfig:
|
|
180
|
+
if (!Ie.value(e)) return Le(e), e;
|
|
181
|
+
let n = d({
|
|
182
|
+
userConfig: le[t] || A.config,
|
|
182
183
|
defaultConfig: e
|
|
183
184
|
});
|
|
184
|
-
return
|
|
185
|
+
return d({
|
|
185
186
|
userConfig: A.config,
|
|
186
187
|
defaultConfig: n
|
|
187
188
|
});
|
|
188
189
|
}
|
|
189
|
-
|
|
190
|
+
S(() => {
|
|
190
191
|
J();
|
|
191
192
|
});
|
|
192
|
-
let q =
|
|
193
|
+
let q = g(() => !!B.value.debug);
|
|
193
194
|
function J() {
|
|
194
|
-
if (
|
|
195
|
+
if (t(A.dataset) ? a({
|
|
195
196
|
componentName: "VueUiSparkHistogram",
|
|
196
197
|
type: "dataset",
|
|
197
198
|
debug: q.value
|
|
198
|
-
}) : A.dataset.forEach((e,
|
|
199
|
+
}) : A.dataset.forEach((e, t) => {
|
|
199
200
|
o({
|
|
200
201
|
datasetObject: e,
|
|
201
202
|
requiredAttributes: ["value"]
|
|
202
203
|
}).forEach((e) => {
|
|
203
|
-
|
|
204
|
+
a({
|
|
204
205
|
componentName: "VueUiSparkHistogram",
|
|
205
206
|
type: "datasetSerieAttribute",
|
|
206
207
|
property: e,
|
|
207
|
-
index:
|
|
208
|
+
index: t,
|
|
208
209
|
debug: q.value
|
|
209
210
|
});
|
|
210
211
|
});
|
|
211
212
|
}), B.value.responsive) {
|
|
212
|
-
let e =
|
|
213
|
-
let { width: e, height: t } =
|
|
213
|
+
let e = ie(() => {
|
|
214
|
+
let { width: e, height: t } = ae({
|
|
214
215
|
chart: P.value,
|
|
215
216
|
title: B.value.style.title.text ? N.value : null,
|
|
216
217
|
source: M.value
|
|
@@ -222,10 +223,10 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
222
223
|
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
|
|
226
|
+
ye(() => A.config, (e) => {
|
|
226
227
|
B.value = K(), J();
|
|
227
228
|
}, { deep: !0 });
|
|
228
|
-
let Y =
|
|
229
|
+
let Y = g(() => {
|
|
229
230
|
let e = B.value.style.labels.timeLabel.show ? B.value.style.labels.timeLabel.fontSize * 2 : 0, t = B.value.style.labels.valueLabel.show ? B.value.style.labels.valueLabel.fontSize * 2 : 0, n = W.value + e + t, r = U.value, i = B.value.style.layout.padding.top, a = n - B.value.style.layout.padding.bottom, o = B.value.style.layout.padding.left, s = r - B.value.style.layout.padding.right;
|
|
230
231
|
return {
|
|
231
232
|
bottom: a,
|
|
@@ -238,30 +239,30 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
238
239
|
top: i,
|
|
239
240
|
width: r
|
|
240
241
|
};
|
|
241
|
-
}),
|
|
242
|
-
function
|
|
243
|
-
return Math.abs(e) /
|
|
242
|
+
}), Be = g(() => Math.max(...H.value.map((e) => Math.abs(e.value || 0))));
|
|
243
|
+
function Ve(e) {
|
|
244
|
+
return Math.abs(e) / Be.value;
|
|
244
245
|
}
|
|
245
|
-
let X =
|
|
246
|
-
let n =
|
|
246
|
+
let X = g(() => H.value.map((e, t) => {
|
|
247
|
+
let n = Ve(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / H.value.length, a = i * (B.value.style.bars.gap / 100), o = i - a, s = Y.value.centerY - r / 2, c = Y.value.left + (a / 2 + t * i), ee = Y.value.left + t * i, u = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), te = e.color ? e.color : e.value >= 0 ? l(B.value.style.bars.colors.positive, u) : l(B.value.style.bars.colors.negative, u), ne = e.color ? e.color : e.value >= 0 ? B.value.style.bars.colors.positive : B.value.style.bars.colors.negative, d = e.color ? `url(#gradient_datapoint_${t}_${j.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${j.value})` : `url(#gradient_negative_${t}_${j.value})`, f = c + o / 2;
|
|
247
248
|
return {
|
|
248
249
|
...e,
|
|
249
|
-
color:
|
|
250
|
-
gradient:
|
|
250
|
+
color: te,
|
|
251
|
+
gradient: d,
|
|
251
252
|
height: r,
|
|
252
253
|
intensity: u,
|
|
253
254
|
proportion: n,
|
|
254
|
-
stroke:
|
|
255
|
-
textAnchor:
|
|
256
|
-
trapX:
|
|
255
|
+
stroke: ne,
|
|
256
|
+
textAnchor: f,
|
|
257
|
+
trapX: ee,
|
|
257
258
|
unitWidth: i,
|
|
258
|
-
width:
|
|
259
|
+
width: o,
|
|
259
260
|
x: c,
|
|
260
|
-
y:
|
|
261
|
+
y: s
|
|
261
262
|
};
|
|
262
263
|
}));
|
|
263
|
-
function
|
|
264
|
-
return s(B.value.style.labels.value.formatter, e.value,
|
|
264
|
+
function He(e, t) {
|
|
265
|
+
return s(B.value.style.labels.value.formatter, e.value, i({
|
|
265
266
|
p: B.value.style.labels.value.prefix,
|
|
266
267
|
v: e.value,
|
|
267
268
|
s: B.value.style.labels.value.suffix,
|
|
@@ -271,9 +272,9 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
271
272
|
seriesIndex: t
|
|
272
273
|
});
|
|
273
274
|
}
|
|
274
|
-
let Z =
|
|
275
|
-
function
|
|
276
|
-
|
|
275
|
+
let Z = w(null), Ue = p;
|
|
276
|
+
function We(e, t) {
|
|
277
|
+
Ue("selectDatapoint", {
|
|
277
278
|
datapoint: e,
|
|
278
279
|
index: t
|
|
279
280
|
}), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
@@ -281,41 +282,41 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
281
282
|
seriesIndex: t
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function Ge(e, t) {
|
|
285
286
|
z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
286
287
|
datapoint: e,
|
|
287
288
|
seriesIndex: t
|
|
288
289
|
});
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
+
function Ke(e, t) {
|
|
291
292
|
z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
292
293
|
datapoint: e,
|
|
293
294
|
seriesIndex: t
|
|
294
295
|
}));
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function qe() {
|
|
297
298
|
z.value !== "keyboard" && (Z.value = null, R.value = null);
|
|
298
299
|
}
|
|
299
|
-
let
|
|
300
|
+
let Je = g(() => `${B.value.style.animation.speedMs}ms`), { fitText: Q } = ce({
|
|
300
301
|
svgRef: G,
|
|
301
|
-
unitWidth:
|
|
302
|
+
unitWidth: g(() => Y.value.drawingWidth / H.value.length * .9)
|
|
302
303
|
});
|
|
303
|
-
|
|
304
|
-
await
|
|
305
|
-
}),
|
|
304
|
+
S(async () => {
|
|
305
|
+
await me(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
|
|
306
|
+
}), ye([
|
|
306
307
|
U,
|
|
307
308
|
W,
|
|
308
309
|
() => H.value
|
|
309
310
|
], async () => {
|
|
310
|
-
await
|
|
311
|
+
await me(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
|
|
311
312
|
});
|
|
312
|
-
function
|
|
313
|
+
function Ye() {
|
|
313
314
|
L.value = !0;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Xe() {
|
|
316
317
|
L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function Ze(e) {
|
|
319
320
|
if (!G.value || document.activeElement !== G.value || !X.value.length) return;
|
|
320
321
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
321
322
|
if (!t && !n && !r && !i) return;
|
|
@@ -327,7 +328,7 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
327
328
|
if (Z.value === null) return;
|
|
328
329
|
let e = X.value[Z.value];
|
|
329
330
|
if (!e) return;
|
|
330
|
-
|
|
331
|
+
We(e, Z.value);
|
|
331
332
|
return;
|
|
332
333
|
}
|
|
333
334
|
z.value = "keyboard";
|
|
@@ -339,7 +340,7 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
339
340
|
seriesIndex: a
|
|
340
341
|
});
|
|
341
342
|
}
|
|
342
|
-
let $ =
|
|
343
|
+
let $ = g(() => ({
|
|
343
344
|
headers: [
|
|
344
345
|
B.value.a11y?.translations?.series ?? "Series",
|
|
345
346
|
B.value.a11y?.translations?.time ?? "Time",
|
|
@@ -353,18 +354,18 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
353
354
|
e.valueLabel ?? ""
|
|
354
355
|
])
|
|
355
356
|
}));
|
|
356
|
-
return (e, t) => (
|
|
357
|
+
return (e, t) => (C(), y("div", {
|
|
357
358
|
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
358
359
|
ref_key: "histogramChart",
|
|
359
360
|
ref: P,
|
|
360
|
-
style:
|
|
361
|
-
onMouseleave:
|
|
361
|
+
style: x(`width:100%;background:${B.value.style.backgroundColor};font-family:${B.value.style.fontFamily}`),
|
|
362
|
+
onMouseleave: qe
|
|
362
363
|
}, [
|
|
363
|
-
|
|
364
|
+
b("div", {
|
|
364
365
|
id: `chart-instructions-${j.value}`,
|
|
365
366
|
class: "sr-only"
|
|
366
|
-
}, [
|
|
367
|
-
$.value?.rows?.length ? (
|
|
367
|
+
}, [b("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, xe),
|
|
368
|
+
$.value?.rows?.length ? (C(), _(oe, {
|
|
368
369
|
key: 0,
|
|
369
370
|
uid: j.value,
|
|
370
371
|
head: $.value.headers,
|
|
@@ -377,15 +378,15 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
377
378
|
"body",
|
|
378
379
|
"notice",
|
|
379
380
|
"caption"
|
|
380
|
-
])) :
|
|
381
|
-
B.value.style.title.text ? (
|
|
381
|
+
])) : v("", !0),
|
|
382
|
+
B.value.style.title.text ? (C(), y("div", {
|
|
382
383
|
key: 1,
|
|
383
384
|
ref_key: "chartTitle",
|
|
384
385
|
ref: N,
|
|
385
|
-
style:
|
|
386
|
-
}, [
|
|
387
|
-
|
|
388
|
-
Z.value === null ?
|
|
386
|
+
style: x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${B.value.style.title.margin};padding: 0 6px;text-align:${B.value.style.title.textAlign}`)
|
|
387
|
+
}, [b("div", { style: x(`font-size:${B.value.style.title.fontSize}px;color:${B.value.style.title.color};font-weight:${B.value.style.title.bold ? "bold" : "normal"}`) }, [
|
|
388
|
+
ue(D(B.value.style.title.text) + " ", 1),
|
|
389
|
+
Z.value === null ? v("", !0) : (C(), y("span", Se, "- " + D(X.value[Z.value].timeLabel || "") + " " + D(O(s)(B.value.style.labels.value.formatter, X.value[Z.value].value, O(i)({
|
|
389
390
|
p: B.value.style.labels.value.prefix,
|
|
390
391
|
v: X.value[Z.value].value,
|
|
391
392
|
s: B.value.style.labels.value.suffix,
|
|
@@ -394,77 +395,92 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
394
395
|
datapoint: X.value[Z.value],
|
|
395
396
|
seriesIndex: Z.value
|
|
396
397
|
})), 1)),
|
|
397
|
-
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (
|
|
398
|
-
], 4), B.value.style.title.subtitle.text ? (
|
|
398
|
+
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (C(), y("span", Ce, D(` (${X.value[Z.value].valueLabel || 0})`), 1)) : v("", !0)
|
|
399
|
+
], 4), B.value.style.title.subtitle.text ? (C(), y("div", {
|
|
399
400
|
key: 0,
|
|
400
|
-
style:
|
|
401
|
-
},
|
|
402
|
-
|
|
401
|
+
style: x(`font-size:${B.value.style.title.subtitle.fontSize}px;color:${B.value.style.title.subtitle.color};font-weight:${B.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
402
|
+
}, D(B.value.style.title.subtitle.text), 5)) : v("", !0)], 4)) : v("", !0),
|
|
403
|
+
b("div", we, [(C(), y("svg", {
|
|
403
404
|
ref_key: "svgRef",
|
|
404
405
|
ref: G,
|
|
405
|
-
xmlns:
|
|
406
|
+
xmlns: O(ee),
|
|
406
407
|
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
407
408
|
style: { overflow: "visible" },
|
|
408
409
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
409
410
|
tabindex: "0",
|
|
410
|
-
onFocus:
|
|
411
|
-
onBlur:
|
|
412
|
-
onKeydown:
|
|
411
|
+
onFocus: Ye,
|
|
412
|
+
onBlur: Xe,
|
|
413
|
+
onKeydown: Ze
|
|
413
414
|
}, [
|
|
414
|
-
|
|
415
|
-
e.$slots["chart-background"] ? (
|
|
415
|
+
de(O(be)),
|
|
416
|
+
e.$slots["chart-background"] ? (C(), y("foreignObject", {
|
|
416
417
|
key: 0,
|
|
417
418
|
x: 0,
|
|
418
419
|
y: 0,
|
|
419
420
|
width: Y.value.width,
|
|
420
421
|
height: Y.value.height,
|
|
421
422
|
style: { pointerEvents: "none" }
|
|
422
|
-
}, [
|
|
423
|
-
|
|
424
|
-
(
|
|
423
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ee)) : v("", !0),
|
|
424
|
+
b("defs", null, [
|
|
425
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), _(m, {
|
|
426
|
+
t: "radial",
|
|
425
427
|
id: `gradient_positive_${t}_${j.value}`,
|
|
428
|
+
key: `gradient_positive_${t}_${j.value}`,
|
|
426
429
|
cy: "50%",
|
|
427
430
|
cx: "50%",
|
|
428
431
|
r: "50%",
|
|
429
432
|
fx: "50%",
|
|
430
|
-
fy: "50%"
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
433
|
+
fy: "50%",
|
|
434
|
+
stops: [[
|
|
435
|
+
"0%",
|
|
436
|
+
O(l)(O(n)(B.value.style.bars.colors.positive, .05), e.intensity),
|
|
437
|
+
1
|
|
438
|
+
], [
|
|
439
|
+
"100%",
|
|
440
|
+
O(l)(B.value.style.bars.colors.positive, e.intensity),
|
|
441
|
+
1
|
|
442
|
+
]]
|
|
443
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
444
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), _(m, {
|
|
445
|
+
t: "radial",
|
|
439
446
|
id: `gradient_negative_${t}_${j.value}`,
|
|
447
|
+
key: `gradient_negative_${t}_${j.value}`,
|
|
440
448
|
cy: "50%",
|
|
441
449
|
cx: "50%",
|
|
442
450
|
r: "50%",
|
|
443
451
|
fx: "50%",
|
|
444
|
-
fy: "50%"
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
fy: "50%",
|
|
453
|
+
stops: [[
|
|
454
|
+
"0%",
|
|
455
|
+
O(l)(O(n)(B.value.style.bars.colors.negative, .05), e.intensity),
|
|
456
|
+
1
|
|
457
|
+
], [
|
|
458
|
+
"100%",
|
|
459
|
+
O(l)(B.value.style.bars.colors.negative, e.intensity),
|
|
460
|
+
1
|
|
461
|
+
]]
|
|
462
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
463
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), _(m, {
|
|
464
|
+
t: "radial",
|
|
453
465
|
id: `gradient_datapoint_${t}_${j.value}`,
|
|
466
|
+
key: `gradient_datapoint_${t}_${j.value}`,
|
|
454
467
|
cy: "50%",
|
|
455
468
|
cx: "50%",
|
|
456
469
|
r: "50%",
|
|
457
470
|
fx: "50%",
|
|
458
|
-
fy: "50%"
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
471
|
+
fy: "50%",
|
|
472
|
+
stops: [[
|
|
473
|
+
"0%",
|
|
474
|
+
O(l)(O(n)(e.color, .05), e.intensity),
|
|
475
|
+
1
|
|
476
|
+
], [
|
|
477
|
+
"100%",
|
|
478
|
+
O(l)(e.color, e.intensity),
|
|
479
|
+
1
|
|
480
|
+
]]
|
|
481
|
+
}, null, 8, ["id", "stops"]))), 128))
|
|
466
482
|
]),
|
|
467
|
-
(
|
|
483
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [Z.value !== null && Z.value === t ? (C(), y("rect", {
|
|
468
484
|
key: 0,
|
|
469
485
|
height: Y.value.height,
|
|
470
486
|
width: e.unitWidth,
|
|
@@ -475,8 +491,8 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
475
491
|
"stroke-width": B.value.style.selector.strokeWidth,
|
|
476
492
|
rx: B.value.style.selector.borderRadius,
|
|
477
493
|
"stroke-dasharray": B.value.style.selector.strokeDasharray
|
|
478
|
-
}, null, 8,
|
|
479
|
-
!B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (
|
|
494
|
+
}, null, 8, De)) : v("", !0)]))), 256)),
|
|
495
|
+
!B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (C(), y("g", Oe, [(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("rect", {
|
|
480
496
|
x: e.x,
|
|
481
497
|
y: e.y,
|
|
482
498
|
height: e.height,
|
|
@@ -486,7 +502,7 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
486
502
|
"stroke-width": B.value.style.bars.strokeWidth,
|
|
487
503
|
rx: `${B.value.style.bars.borderRadius * e.proportion / 12}%`,
|
|
488
504
|
class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
|
|
489
|
-
}, null, 10,
|
|
505
|
+
}, null, 10, ke))), 256))])) : (C(), y("g", Ae, [(C(!0), y(h, null, T(X.value, (e, t) => (C(), _(re, {
|
|
490
506
|
plot: {
|
|
491
507
|
x: e.x + e.width / 2,
|
|
492
508
|
y: e.y + e.height / 2
|
|
@@ -502,8 +518,8 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
502
518
|
"radius",
|
|
503
519
|
"class"
|
|
504
520
|
]))), 256))])),
|
|
505
|
-
|
|
506
|
-
(
|
|
521
|
+
O(V) ? v("", !0) : (C(), y(h, { key: 3 }, [
|
|
522
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [B.value.style.labels.value.show ? (C(), y("text", {
|
|
507
523
|
key: 0,
|
|
508
524
|
class: "vue-ui-sparkhistogram-top-label",
|
|
509
525
|
"text-anchor": "middle",
|
|
@@ -512,8 +528,8 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
512
528
|
"font-size": B.value.style.labels.value.fontSize,
|
|
513
529
|
"font-weight": B.value.style.labels.value.bold ? "bold" : "normal",
|
|
514
530
|
fill: B.value.style.labels.value.color
|
|
515
|
-
},
|
|
516
|
-
(
|
|
531
|
+
}, D(He(e, t)), 9, je)) : v("", !0)]))), 256)),
|
|
532
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [e.valueLabel && B.value.style.labels.valueLabel.show ? (C(), y("text", {
|
|
517
533
|
key: 0,
|
|
518
534
|
class: "vue-ui-sparkhistogram-bottom-label",
|
|
519
535
|
x: e.textAnchor,
|
|
@@ -521,8 +537,8 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
521
537
|
"font-size": B.value.style.labels.valueLabel.fontSize,
|
|
522
538
|
"text-anchor": "middle",
|
|
523
539
|
fill: B.value.style.labels.valueLabel.color
|
|
524
|
-
},
|
|
525
|
-
(
|
|
540
|
+
}, D(e.valueLabel), 9, Me)) : v("", !0)]))), 256)),
|
|
541
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [e.timeLabel && B.value.style.labels.timeLabel.show ? (C(), y("text", {
|
|
526
542
|
key: 0,
|
|
527
543
|
class: "vue-ui-sparkhistogram-time-label",
|
|
528
544
|
x: e.textAnchor,
|
|
@@ -530,31 +546,31 @@ var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 },
|
|
|
530
546
|
"font-size": B.value.style.labels.timeLabel.fontSize,
|
|
531
547
|
fill: B.value.style.labels.timeLabel.color,
|
|
532
548
|
"text-anchor": "middle"
|
|
533
|
-
},
|
|
549
|
+
}, D(e.timeLabel), 9, Ne)) : v("", !0)]))), 256))
|
|
534
550
|
], 64)),
|
|
535
|
-
(
|
|
551
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [b("rect", {
|
|
536
552
|
height: Y.value.height,
|
|
537
553
|
width: e.unitWidth,
|
|
538
554
|
fill: "transparent",
|
|
539
555
|
x: e.trapX,
|
|
540
556
|
y: 0,
|
|
541
|
-
onMouseover: (n) =>
|
|
542
|
-
onMouseleave: (n) =>
|
|
543
|
-
onClick: () =>
|
|
544
|
-
}, null, 40,
|
|
545
|
-
], 40,
|
|
557
|
+
onMouseover: (n) => Ge(e, t),
|
|
558
|
+
onMouseleave: (n) => Ke(e, t),
|
|
559
|
+
onClick: () => We(e, t)
|
|
560
|
+
}, null, 40, Pe)]))), 256))
|
|
561
|
+
], 40, Te)), e.$slots.hint ? (C(), y("div", Fe, [E(e.$slots, "hint", ge(pe({
|
|
546
562
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
547
563
|
isVisible: L.value
|
|
548
|
-
})), void 0, !0)])) :
|
|
549
|
-
e.$slots.source ? (
|
|
564
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
565
|
+
e.$slots.source ? (C(), y("div", {
|
|
550
566
|
key: 2,
|
|
551
567
|
ref_key: "source",
|
|
552
568
|
ref: M,
|
|
553
569
|
dir: "auto"
|
|
554
|
-
}, [
|
|
555
|
-
|
|
570
|
+
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
571
|
+
E(e.$slots, "skeleton", {}, () => [O(V) ? (C(), _(ne, { key: 0 })) : v("", !0)], !0)
|
|
556
572
|
], 36));
|
|
557
573
|
}
|
|
558
|
-
}, [["__scopeId", "data-v-
|
|
574
|
+
}, [["__scopeId", "data-v-f5687368"]]);
|
|
559
575
|
//#endregion
|
|
560
|
-
export {
|
|
576
|
+
export { be as n, k as t };
|