vue-data-ui 3.22.9 → 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-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- 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-trvJ26nz.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-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.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/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-ub3fCh6P.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-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.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-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- 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-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.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-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.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-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- 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-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.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/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
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
|
+
import { t as u } from "./useConfig-DYM3f6EI.js";
|
|
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";
|
|
17
|
+
//#region src/components/vue-ui-sparkhistogram.vue
|
|
18
|
+
var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { key: 0 }, Ce = { key: 1 }, we = { style: { position: "relative" } }, Te = [
|
|
19
|
+
"xmlns",
|
|
20
|
+
"viewBox",
|
|
21
|
+
"aria-describedby"
|
|
22
|
+
], Ee = ["width", "height"], De = [
|
|
23
|
+
"height",
|
|
24
|
+
"width",
|
|
25
|
+
"fill",
|
|
26
|
+
"x",
|
|
27
|
+
"stroke",
|
|
28
|
+
"stroke-width",
|
|
29
|
+
"rx",
|
|
30
|
+
"stroke-dasharray"
|
|
31
|
+
], Oe = { key: 1 }, ke = [
|
|
32
|
+
"x",
|
|
33
|
+
"y",
|
|
34
|
+
"height",
|
|
35
|
+
"width",
|
|
36
|
+
"fill",
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width",
|
|
39
|
+
"rx"
|
|
40
|
+
], Ae = { key: 2 }, je = [
|
|
41
|
+
"x",
|
|
42
|
+
"y",
|
|
43
|
+
"font-size",
|
|
44
|
+
"font-weight",
|
|
45
|
+
"fill"
|
|
46
|
+
], Me = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"font-size",
|
|
50
|
+
"fill"
|
|
51
|
+
], Ne = [
|
|
52
|
+
"x",
|
|
53
|
+
"y",
|
|
54
|
+
"font-size",
|
|
55
|
+
"fill"
|
|
56
|
+
], Pe = [
|
|
57
|
+
"height",
|
|
58
|
+
"width",
|
|
59
|
+
"x",
|
|
60
|
+
"onMouseover",
|
|
61
|
+
"onMouseleave",
|
|
62
|
+
"onClick"
|
|
63
|
+
], Fe = {
|
|
64
|
+
key: 0,
|
|
65
|
+
style: {
|
|
66
|
+
position: "absolute",
|
|
67
|
+
top: "100%",
|
|
68
|
+
left: "0",
|
|
69
|
+
width: "100%"
|
|
70
|
+
},
|
|
71
|
+
"data-dom-to-png-ignore": "",
|
|
72
|
+
"aria-hidden": "true"
|
|
73
|
+
}, k = /*#__PURE__*/ p({
|
|
74
|
+
__name: "vue-ui-sparkhistogram",
|
|
75
|
+
props: {
|
|
76
|
+
config: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default() {
|
|
79
|
+
return {};
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
dataset: {
|
|
83
|
+
type: Array,
|
|
84
|
+
default() {
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
emits: ["selectDatapoint"],
|
|
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({
|
|
93
|
+
defaultConfig: { style: {
|
|
94
|
+
animation: { show: !1 },
|
|
95
|
+
backgroundColor: "#99999930"
|
|
96
|
+
} },
|
|
97
|
+
userConfig: B.value.skeletonConfig ?? {}
|
|
98
|
+
})), { loading: V, FINAL_DATASET: H, manualLoading: ze } = te({
|
|
99
|
+
..._e(A),
|
|
100
|
+
FINAL_CONFIG: B,
|
|
101
|
+
prepareConfig: K,
|
|
102
|
+
skeletonDataset: A.config?.skeletonDataset ?? [
|
|
103
|
+
{
|
|
104
|
+
value: 1,
|
|
105
|
+
intensity: .2,
|
|
106
|
+
color: "#CACACA"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
value: 2,
|
|
110
|
+
intensity: .3,
|
|
111
|
+
color: "#CACACA"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
value: 3,
|
|
115
|
+
intensity: .5,
|
|
116
|
+
color: "#CACACA"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
value: 5,
|
|
120
|
+
intensity: .7,
|
|
121
|
+
color: "#CACACA"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
value: 8,
|
|
125
|
+
intensity: .9,
|
|
126
|
+
color: "#CACACA"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: 13,
|
|
130
|
+
intensity: .95,
|
|
131
|
+
color: "#CACACA"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: 21,
|
|
135
|
+
intensity: 1,
|
|
136
|
+
color: "#CACACA"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
value: 13,
|
|
140
|
+
intensity: .95,
|
|
141
|
+
color: "#CACACA"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
value: 8,
|
|
145
|
+
intensity: .9,
|
|
146
|
+
color: "#CACACA"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
value: 5,
|
|
150
|
+
intensity: .7,
|
|
151
|
+
color: "#CACACA"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
value: 3,
|
|
155
|
+
intensity: .5,
|
|
156
|
+
color: "#CACACA"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
value: 2,
|
|
160
|
+
intensity: .3,
|
|
161
|
+
color: "#CACACA"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
value: 1,
|
|
165
|
+
intensity: .2,
|
|
166
|
+
color: "#CACACA"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
skeletonConfig: c({
|
|
170
|
+
defaultConfig: B.value,
|
|
171
|
+
userConfig: Re.value
|
|
172
|
+
})
|
|
173
|
+
}), U = w(B.value.style.layout.width), W = w(B.value.style.layout.height), { svgRef: G } = se({ config: B.value.style.title });
|
|
174
|
+
function K() {
|
|
175
|
+
let e = d({
|
|
176
|
+
userConfig: A.config,
|
|
177
|
+
defaultConfig: k
|
|
178
|
+
}), t = e.theme;
|
|
179
|
+
if (!t) return e;
|
|
180
|
+
if (!Ie.value(e)) return Le(e), e;
|
|
181
|
+
let n = d({
|
|
182
|
+
userConfig: le[t] || A.config,
|
|
183
|
+
defaultConfig: e
|
|
184
|
+
});
|
|
185
|
+
return d({
|
|
186
|
+
userConfig: A.config,
|
|
187
|
+
defaultConfig: n
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
S(() => {
|
|
191
|
+
J();
|
|
192
|
+
});
|
|
193
|
+
let q = g(() => !!B.value.debug);
|
|
194
|
+
function J() {
|
|
195
|
+
if (t(A.dataset) ? a({
|
|
196
|
+
componentName: "VueUiSparkHistogram",
|
|
197
|
+
type: "dataset",
|
|
198
|
+
debug: q.value
|
|
199
|
+
}) : A.dataset.forEach((e, t) => {
|
|
200
|
+
o({
|
|
201
|
+
datasetObject: e,
|
|
202
|
+
requiredAttributes: ["value"]
|
|
203
|
+
}).forEach((e) => {
|
|
204
|
+
a({
|
|
205
|
+
componentName: "VueUiSparkHistogram",
|
|
206
|
+
type: "datasetSerieAttribute",
|
|
207
|
+
property: e,
|
|
208
|
+
index: t,
|
|
209
|
+
debug: q.value
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
}), B.value.responsive) {
|
|
213
|
+
let e = ie(() => {
|
|
214
|
+
let { width: e, height: t } = ae({
|
|
215
|
+
chart: P.value,
|
|
216
|
+
title: B.value.style.title.text ? N.value : null,
|
|
217
|
+
source: M.value
|
|
218
|
+
}), n = B.value.style.labels.timeLabel.show ? B.value.style.labels.timeLabel.fontSize * 2 : 0, r = B.value.style.labels.valueLabel.show ? B.value.style.labels.valueLabel.fontSize * 2 : 0;
|
|
219
|
+
requestAnimationFrame(() => {
|
|
220
|
+
U.value = Math.max(10, e), W.value = Math.max(10, t - 12 - n - r);
|
|
221
|
+
});
|
|
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);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
ye(() => A.config, (e) => {
|
|
227
|
+
B.value = K(), J();
|
|
228
|
+
}, { deep: !0 });
|
|
229
|
+
let Y = g(() => {
|
|
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;
|
|
231
|
+
return {
|
|
232
|
+
bottom: a,
|
|
233
|
+
centerY: i + (n - i - B.value.style.layout.padding.bottom) / 2,
|
|
234
|
+
drawingHeight: n - B.value.style.layout.padding.top - B.value.style.layout.padding.bottom - e - t,
|
|
235
|
+
drawingWidth: r - B.value.style.layout.padding.left - B.value.style.layout.padding.right,
|
|
236
|
+
height: n,
|
|
237
|
+
left: o,
|
|
238
|
+
right: s,
|
|
239
|
+
top: i,
|
|
240
|
+
width: r
|
|
241
|
+
};
|
|
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;
|
|
245
|
+
}
|
|
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;
|
|
248
|
+
return {
|
|
249
|
+
...e,
|
|
250
|
+
color: te,
|
|
251
|
+
gradient: d,
|
|
252
|
+
height: r,
|
|
253
|
+
intensity: u,
|
|
254
|
+
proportion: n,
|
|
255
|
+
stroke: ne,
|
|
256
|
+
textAnchor: f,
|
|
257
|
+
trapX: ee,
|
|
258
|
+
unitWidth: i,
|
|
259
|
+
width: o,
|
|
260
|
+
x: c,
|
|
261
|
+
y: s
|
|
262
|
+
};
|
|
263
|
+
}));
|
|
264
|
+
function He(e, t) {
|
|
265
|
+
return s(B.value.style.labels.value.formatter, e.value, i({
|
|
266
|
+
p: B.value.style.labels.value.prefix,
|
|
267
|
+
v: e.value,
|
|
268
|
+
s: B.value.style.labels.value.suffix,
|
|
269
|
+
r: B.value.style.labels.value.rounding
|
|
270
|
+
}), {
|
|
271
|
+
datapoint: e,
|
|
272
|
+
seriesIndex: t
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
let Z = w(null), Ue = p;
|
|
276
|
+
function We(e, t) {
|
|
277
|
+
Ue("selectDatapoint", {
|
|
278
|
+
datapoint: e,
|
|
279
|
+
index: t
|
|
280
|
+
}), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
281
|
+
datapoint: e,
|
|
282
|
+
seriesIndex: t
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
function Ge(e, t) {
|
|
286
|
+
z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
287
|
+
datapoint: e,
|
|
288
|
+
seriesIndex: t
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function Ke(e, t) {
|
|
292
|
+
z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
293
|
+
datapoint: e,
|
|
294
|
+
seriesIndex: t
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
function qe() {
|
|
298
|
+
z.value !== "keyboard" && (Z.value = null, R.value = null);
|
|
299
|
+
}
|
|
300
|
+
let Je = g(() => `${B.value.style.animation.speedMs}ms`), { fitText: Q } = ce({
|
|
301
|
+
svgRef: G,
|
|
302
|
+
unitWidth: g(() => Y.value.drawingWidth / H.value.length * .9)
|
|
303
|
+
});
|
|
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([
|
|
307
|
+
U,
|
|
308
|
+
W,
|
|
309
|
+
() => H.value
|
|
310
|
+
], async () => {
|
|
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);
|
|
312
|
+
});
|
|
313
|
+
function Ye() {
|
|
314
|
+
L.value = !0;
|
|
315
|
+
}
|
|
316
|
+
function Xe() {
|
|
317
|
+
L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
|
|
318
|
+
}
|
|
319
|
+
function Ze(e) {
|
|
320
|
+
if (!G.value || document.activeElement !== G.value || !X.value.length) return;
|
|
321
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
322
|
+
if (!t && !n && !r && !i) return;
|
|
323
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
324
|
+
R.value = null, Z.value = null, z.value = "pointer";
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
if (r) {
|
|
328
|
+
if (Z.value === null) return;
|
|
329
|
+
let e = X.value[Z.value];
|
|
330
|
+
if (!e) return;
|
|
331
|
+
We(e, Z.value);
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
z.value = "keyboard";
|
|
335
|
+
let a = R.value;
|
|
336
|
+
a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)), R.value = a, Z.value = a;
|
|
337
|
+
let o = X.value[a];
|
|
338
|
+
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
339
|
+
datapoint: o,
|
|
340
|
+
seriesIndex: a
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
let $ = g(() => ({
|
|
344
|
+
headers: [
|
|
345
|
+
B.value.a11y?.translations?.series ?? "Series",
|
|
346
|
+
B.value.a11y?.translations?.time ?? "Time",
|
|
347
|
+
B.value.a11y?.translations?.value ?? "Value",
|
|
348
|
+
B.value.a11y?.translations?.valueLabel ?? "Label"
|
|
349
|
+
],
|
|
350
|
+
rows: X.value.map((e, t) => [
|
|
351
|
+
t + 1,
|
|
352
|
+
e.timeLabel ?? "",
|
|
353
|
+
e.value ?? "",
|
|
354
|
+
e.valueLabel ?? ""
|
|
355
|
+
])
|
|
356
|
+
}));
|
|
357
|
+
return (e, t) => (C(), y("div", {
|
|
358
|
+
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
359
|
+
ref_key: "histogramChart",
|
|
360
|
+
ref: P,
|
|
361
|
+
style: x(`width:100%;background:${B.value.style.backgroundColor};font-family:${B.value.style.fontFamily}`),
|
|
362
|
+
onMouseleave: qe
|
|
363
|
+
}, [
|
|
364
|
+
b("div", {
|
|
365
|
+
id: `chart-instructions-${j.value}`,
|
|
366
|
+
class: "sr-only"
|
|
367
|
+
}, [b("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, xe),
|
|
368
|
+
$.value?.rows?.length ? (C(), _(oe, {
|
|
369
|
+
key: 0,
|
|
370
|
+
uid: j.value,
|
|
371
|
+
head: $.value.headers,
|
|
372
|
+
body: $.value.rows,
|
|
373
|
+
notice: B.value.a11y.translations.tableAvailable,
|
|
374
|
+
caption: B.value.a11y.translations.tableCaption
|
|
375
|
+
}, null, 8, [
|
|
376
|
+
"uid",
|
|
377
|
+
"head",
|
|
378
|
+
"body",
|
|
379
|
+
"notice",
|
|
380
|
+
"caption"
|
|
381
|
+
])) : v("", !0),
|
|
382
|
+
B.value.style.title.text ? (C(), y("div", {
|
|
383
|
+
key: 1,
|
|
384
|
+
ref_key: "chartTitle",
|
|
385
|
+
ref: N,
|
|
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)({
|
|
390
|
+
p: B.value.style.labels.value.prefix,
|
|
391
|
+
v: X.value[Z.value].value,
|
|
392
|
+
s: B.value.style.labels.value.suffix,
|
|
393
|
+
r: B.value.style.labels.value.rounding
|
|
394
|
+
}), {
|
|
395
|
+
datapoint: X.value[Z.value],
|
|
396
|
+
seriesIndex: Z.value
|
|
397
|
+
})), 1)),
|
|
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", {
|
|
400
|
+
key: 0,
|
|
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", {
|
|
404
|
+
ref_key: "svgRef",
|
|
405
|
+
ref: G,
|
|
406
|
+
xmlns: O(ee),
|
|
407
|
+
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
408
|
+
style: { overflow: "visible" },
|
|
409
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
410
|
+
tabindex: "0",
|
|
411
|
+
onFocus: Ye,
|
|
412
|
+
onBlur: Xe,
|
|
413
|
+
onKeydown: Ze
|
|
414
|
+
}, [
|
|
415
|
+
de(O(be)),
|
|
416
|
+
e.$slots["chart-background"] ? (C(), y("foreignObject", {
|
|
417
|
+
key: 0,
|
|
418
|
+
x: 0,
|
|
419
|
+
y: 0,
|
|
420
|
+
width: Y.value.width,
|
|
421
|
+
height: Y.value.height,
|
|
422
|
+
style: { pointerEvents: "none" }
|
|
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",
|
|
427
|
+
id: `gradient_positive_${t}_${j.value}`,
|
|
428
|
+
key: `gradient_positive_${t}_${j.value}`,
|
|
429
|
+
cy: "50%",
|
|
430
|
+
cx: "50%",
|
|
431
|
+
r: "50%",
|
|
432
|
+
fx: "50%",
|
|
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",
|
|
446
|
+
id: `gradient_negative_${t}_${j.value}`,
|
|
447
|
+
key: `gradient_negative_${t}_${j.value}`,
|
|
448
|
+
cy: "50%",
|
|
449
|
+
cx: "50%",
|
|
450
|
+
r: "50%",
|
|
451
|
+
fx: "50%",
|
|
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",
|
|
465
|
+
id: `gradient_datapoint_${t}_${j.value}`,
|
|
466
|
+
key: `gradient_datapoint_${t}_${j.value}`,
|
|
467
|
+
cy: "50%",
|
|
468
|
+
cx: "50%",
|
|
469
|
+
r: "50%",
|
|
470
|
+
fx: "50%",
|
|
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))
|
|
482
|
+
]),
|
|
483
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [Z.value !== null && Z.value === t ? (C(), y("rect", {
|
|
484
|
+
key: 0,
|
|
485
|
+
height: Y.value.height,
|
|
486
|
+
width: e.unitWidth,
|
|
487
|
+
fill: B.value.style.selector.fill,
|
|
488
|
+
x: e.trapX,
|
|
489
|
+
y: 0,
|
|
490
|
+
stroke: B.value.style.selector.stroke,
|
|
491
|
+
"stroke-width": B.value.style.selector.strokeWidth,
|
|
492
|
+
rx: B.value.style.selector.borderRadius,
|
|
493
|
+
"stroke-dasharray": B.value.style.selector.strokeDasharray
|
|
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", {
|
|
496
|
+
x: e.x,
|
|
497
|
+
y: e.y,
|
|
498
|
+
height: e.height,
|
|
499
|
+
width: e.width,
|
|
500
|
+
fill: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
501
|
+
stroke: e.stroke,
|
|
502
|
+
"stroke-width": B.value.style.bars.strokeWidth,
|
|
503
|
+
rx: `${B.value.style.bars.borderRadius * e.proportion / 12}%`,
|
|
504
|
+
class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
|
|
505
|
+
}, null, 10, ke))), 256))])) : (C(), y("g", Ae, [(C(!0), y(h, null, T(X.value, (e, t) => (C(), _(re, {
|
|
506
|
+
plot: {
|
|
507
|
+
x: e.x + e.width / 2,
|
|
508
|
+
y: e.y + e.height / 2
|
|
509
|
+
},
|
|
510
|
+
color: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
511
|
+
shape: B.value.style.bars.shape,
|
|
512
|
+
radius: Math.min(e.height * .4, e.width * .4),
|
|
513
|
+
class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
|
|
514
|
+
}, null, 8, [
|
|
515
|
+
"plot",
|
|
516
|
+
"color",
|
|
517
|
+
"shape",
|
|
518
|
+
"radius",
|
|
519
|
+
"class"
|
|
520
|
+
]))), 256))])),
|
|
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", {
|
|
523
|
+
key: 0,
|
|
524
|
+
class: "vue-ui-sparkhistogram-top-label",
|
|
525
|
+
"text-anchor": "middle",
|
|
526
|
+
x: e.textAnchor,
|
|
527
|
+
y: e.y - B.value.style.labels.value.fontSize / 3 + B.value.style.labels.value.offsetY,
|
|
528
|
+
"font-size": B.value.style.labels.value.fontSize,
|
|
529
|
+
"font-weight": B.value.style.labels.value.bold ? "bold" : "normal",
|
|
530
|
+
fill: B.value.style.labels.value.color
|
|
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", {
|
|
533
|
+
key: 0,
|
|
534
|
+
class: "vue-ui-sparkhistogram-bottom-label",
|
|
535
|
+
x: e.textAnchor,
|
|
536
|
+
y: e.y + e.height + B.value.style.labels.valueLabel.fontSize,
|
|
537
|
+
"font-size": B.value.style.labels.valueLabel.fontSize,
|
|
538
|
+
"text-anchor": "middle",
|
|
539
|
+
fill: B.value.style.labels.valueLabel.color
|
|
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", {
|
|
542
|
+
key: 0,
|
|
543
|
+
class: "vue-ui-sparkhistogram-time-label",
|
|
544
|
+
x: e.textAnchor,
|
|
545
|
+
y: Y.value.height,
|
|
546
|
+
"font-size": B.value.style.labels.timeLabel.fontSize,
|
|
547
|
+
fill: B.value.style.labels.timeLabel.color,
|
|
548
|
+
"text-anchor": "middle"
|
|
549
|
+
}, D(e.timeLabel), 9, Ne)) : v("", !0)]))), 256))
|
|
550
|
+
], 64)),
|
|
551
|
+
(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [b("rect", {
|
|
552
|
+
height: Y.value.height,
|
|
553
|
+
width: e.unitWidth,
|
|
554
|
+
fill: "transparent",
|
|
555
|
+
x: e.trapX,
|
|
556
|
+
y: 0,
|
|
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({
|
|
562
|
+
hint: B.value.a11y.translations.keyboardNavigation,
|
|
563
|
+
isVisible: L.value
|
|
564
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
565
|
+
e.$slots.source ? (C(), y("div", {
|
|
566
|
+
key: 2,
|
|
567
|
+
ref_key: "source",
|
|
568
|
+
ref: M,
|
|
569
|
+
dir: "auto"
|
|
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)
|
|
572
|
+
], 36));
|
|
573
|
+
}
|
|
574
|
+
}, [["__scopeId", "data-v-f5687368"]]);
|
|
575
|
+
//#endregion
|
|
576
|
+
export { be as n, k as t };
|