vue-data-ui 3.22.7 → 3.22.9
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-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- 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-trvJ26nz.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-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.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-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.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--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- 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-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- 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-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Rt as a, dt as o, i as s, kt as c, t as l, zt as u } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as d } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as ee, t as f } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as p } from "./useNestedProp-DIuuzG1r.js";
|
|
6
|
+
import { t as m } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as te } from "./Shape-UpH0a4Ur.js";
|
|
8
|
+
import { t as ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
+
import { c as re } from "./canvas-lib-BOP_HS11.js";
|
|
10
|
+
import { t as ie } from "./useResponsive-BfnK0KxU.js";
|
|
11
|
+
import { t as h } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as ae } from "./A11yDataTable-DdRsVULz.js";
|
|
13
|
+
import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
|
+
import { t as se } from "./useFitSvgText-CT3nmlaS.js";
|
|
15
|
+
import { t as ce } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
|
|
16
|
+
import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as le, createVNode as ue, defineAsyncComponent as de, guardReactiveProps as fe, nextTick as S, normalizeClass as C, normalizeProps as pe, normalizeStyle as w, onMounted as me, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, toRefs as he, unref as A, useCssVars as ge, watch as j } from "vue";
|
|
17
|
+
//#region src/components/vue-ui-sparkhistogram.vue
|
|
18
|
+
var _e = /* @__PURE__ */ e({ default: () => M }), ve = ["id"], ye = { key: 0 }, be = { key: 1 }, xe = { style: { position: "relative" } }, Se = [
|
|
19
|
+
"xmlns",
|
|
20
|
+
"viewBox",
|
|
21
|
+
"aria-describedby"
|
|
22
|
+
], Ce = ["width", "height"], we = [
|
|
23
|
+
"height",
|
|
24
|
+
"width",
|
|
25
|
+
"fill",
|
|
26
|
+
"x",
|
|
27
|
+
"stroke",
|
|
28
|
+
"stroke-width",
|
|
29
|
+
"rx",
|
|
30
|
+
"stroke-dasharray"
|
|
31
|
+
], Te = { key: 1 }, Ee = [
|
|
32
|
+
"x",
|
|
33
|
+
"y",
|
|
34
|
+
"height",
|
|
35
|
+
"width",
|
|
36
|
+
"fill",
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width",
|
|
39
|
+
"rx"
|
|
40
|
+
], De = { key: 2 }, Oe = [
|
|
41
|
+
"x",
|
|
42
|
+
"y",
|
|
43
|
+
"font-size",
|
|
44
|
+
"font-weight",
|
|
45
|
+
"fill"
|
|
46
|
+
], ke = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"font-size",
|
|
50
|
+
"fill"
|
|
51
|
+
], Ae = [
|
|
52
|
+
"x",
|
|
53
|
+
"y",
|
|
54
|
+
"font-size",
|
|
55
|
+
"fill"
|
|
56
|
+
], je = [
|
|
57
|
+
"height",
|
|
58
|
+
"width",
|
|
59
|
+
"x",
|
|
60
|
+
"onMouseover",
|
|
61
|
+
"onMouseleave",
|
|
62
|
+
"onClick"
|
|
63
|
+
], Me = {
|
|
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
|
+
}, M = /*#__PURE__*/ ne({
|
|
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: ne }) {
|
|
91
|
+
ge((e) => ({ v7441ed7f: Je.value }));
|
|
92
|
+
let _e = de(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), { vue_ui_sparkhistogram: M } = d(), { isThemeValid: Ne, warnInvalidTheme: Pe } = m(), N = e, P = E(n()), Fe = E(null), F = E(null), I = E(null), L = E(null), R = E(null), z = E(!1), B = E(null), V = E("pointer"), H = E(J()), Ie = _(() => i({
|
|
93
|
+
defaultConfig: { style: {
|
|
94
|
+
animation: { show: !1 },
|
|
95
|
+
backgroundColor: "#99999930"
|
|
96
|
+
} },
|
|
97
|
+
userConfig: H.value.skeletonConfig ?? {}
|
|
98
|
+
})), { loading: U, FINAL_DATASET: W, manualLoading: Le } = ee({
|
|
99
|
+
...he(N),
|
|
100
|
+
FINAL_CONFIG: H,
|
|
101
|
+
prepareConfig: J,
|
|
102
|
+
skeletonDataset: N.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: i({
|
|
170
|
+
defaultConfig: H.value,
|
|
171
|
+
userConfig: Ie.value
|
|
172
|
+
})
|
|
173
|
+
}), G = E(H.value.style.layout.width), K = E(H.value.style.layout.height), { svgRef: q } = oe({ config: H.value.style.title });
|
|
174
|
+
function J() {
|
|
175
|
+
let e = p({
|
|
176
|
+
userConfig: N.config,
|
|
177
|
+
defaultConfig: M
|
|
178
|
+
}), t = e.theme;
|
|
179
|
+
if (!t) return e;
|
|
180
|
+
if (!Ne.value(e)) return Pe(e), e;
|
|
181
|
+
let n = p({
|
|
182
|
+
userConfig: ce[t] || N.config,
|
|
183
|
+
defaultConfig: e
|
|
184
|
+
});
|
|
185
|
+
return p({
|
|
186
|
+
userConfig: N.config,
|
|
187
|
+
defaultConfig: n
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
me(() => {
|
|
191
|
+
ze();
|
|
192
|
+
});
|
|
193
|
+
let Re = _(() => !!H.value.debug);
|
|
194
|
+
function ze() {
|
|
195
|
+
if (c(N.dataset) ? t({
|
|
196
|
+
componentName: "VueUiSparkHistogram",
|
|
197
|
+
type: "dataset",
|
|
198
|
+
debug: Re.value
|
|
199
|
+
}) : N.dataset.forEach((e, n) => {
|
|
200
|
+
o({
|
|
201
|
+
datasetObject: e,
|
|
202
|
+
requiredAttributes: ["value"]
|
|
203
|
+
}).forEach((e) => {
|
|
204
|
+
t({
|
|
205
|
+
componentName: "VueUiSparkHistogram",
|
|
206
|
+
type: "datasetSerieAttribute",
|
|
207
|
+
property: e,
|
|
208
|
+
index: n,
|
|
209
|
+
debug: Re.value
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
}), H.value.responsive) {
|
|
213
|
+
let e = re(() => {
|
|
214
|
+
let { width: e, height: t } = ie({
|
|
215
|
+
chart: I.value,
|
|
216
|
+
title: H.value.style.title.text ? F.value : null,
|
|
217
|
+
source: Fe.value
|
|
218
|
+
}), n = H.value.style.labels.timeLabel.show ? H.value.style.labels.timeLabel.fontSize * 2 : 0, r = H.value.style.labels.valueLabel.show ? H.value.style.labels.valueLabel.fontSize * 2 : 0;
|
|
219
|
+
requestAnimationFrame(() => {
|
|
220
|
+
G.value = Math.max(10, e), K.value = Math.max(10, t - 12 - n - r);
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = I.value.parentNode, L.value.observe(R.value);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
j(() => N.config, (e) => {
|
|
227
|
+
H.value = J(), ze();
|
|
228
|
+
}, { deep: !0 });
|
|
229
|
+
let Y = _(() => {
|
|
230
|
+
let e = H.value.style.labels.timeLabel.show ? H.value.style.labels.timeLabel.fontSize * 2 : 0, t = H.value.style.labels.valueLabel.show ? H.value.style.labels.valueLabel.fontSize * 2 : 0, n = K.value + e + t, r = G.value, i = H.value.style.layout.padding.top, a = n - H.value.style.layout.padding.bottom, o = H.value.style.layout.padding.left, s = r - H.value.style.layout.padding.right;
|
|
231
|
+
return {
|
|
232
|
+
bottom: a,
|
|
233
|
+
centerY: i + (n - i - H.value.style.layout.padding.bottom) / 2,
|
|
234
|
+
drawingHeight: n - H.value.style.layout.padding.top - H.value.style.layout.padding.bottom - e - t,
|
|
235
|
+
drawingWidth: r - H.value.style.layout.padding.left - H.value.style.layout.padding.right,
|
|
236
|
+
height: n,
|
|
237
|
+
left: o,
|
|
238
|
+
right: s,
|
|
239
|
+
top: i,
|
|
240
|
+
width: r
|
|
241
|
+
};
|
|
242
|
+
}), Be = _(() => Math.max(...W.value.map((e) => Math.abs(e.value || 0))));
|
|
243
|
+
function Ve(e) {
|
|
244
|
+
return Math.abs(e) / Be.value;
|
|
245
|
+
}
|
|
246
|
+
let X = _(() => W.value.map((e, t) => {
|
|
247
|
+
let n = Ve(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / W.value.length, o = i * (H.value.style.bars.gap / 100), s = i - o, c = Y.value.centerY - r / 2, l = Y.value.left + (o / 2 + t * i), u = Y.value.left + t * i, d = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), ee = e.color ? e.color : e.value >= 0 ? a(H.value.style.bars.colors.positive, d) : a(H.value.style.bars.colors.negative, d), f = e.color ? e.color : e.value >= 0 ? H.value.style.bars.colors.positive : H.value.style.bars.colors.negative, p = e.color ? `url(#gradient_datapoint_${t}_${P.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${P.value})` : `url(#gradient_negative_${t}_${P.value})`, m = l + s / 2;
|
|
248
|
+
return {
|
|
249
|
+
...e,
|
|
250
|
+
color: ee,
|
|
251
|
+
gradient: p,
|
|
252
|
+
height: r,
|
|
253
|
+
intensity: d,
|
|
254
|
+
proportion: n,
|
|
255
|
+
stroke: f,
|
|
256
|
+
textAnchor: m,
|
|
257
|
+
trapX: u,
|
|
258
|
+
unitWidth: i,
|
|
259
|
+
width: s,
|
|
260
|
+
x: l,
|
|
261
|
+
y: c
|
|
262
|
+
};
|
|
263
|
+
}));
|
|
264
|
+
function He(e, t) {
|
|
265
|
+
return s(H.value.style.labels.value.formatter, e.value, r({
|
|
266
|
+
p: H.value.style.labels.value.prefix,
|
|
267
|
+
v: e.value,
|
|
268
|
+
s: H.value.style.labels.value.suffix,
|
|
269
|
+
r: H.value.style.labels.value.rounding
|
|
270
|
+
}), {
|
|
271
|
+
datapoint: e,
|
|
272
|
+
seriesIndex: t
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
let Z = E(null), Ue = ne;
|
|
276
|
+
function We(e, t) {
|
|
277
|
+
Ue("selectDatapoint", {
|
|
278
|
+
datapoint: e,
|
|
279
|
+
index: t
|
|
280
|
+
}), H.value.events.datapointClick && H.value.events.datapointClick({
|
|
281
|
+
datapoint: e,
|
|
282
|
+
seriesIndex: t
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
function Ge(e, t) {
|
|
286
|
+
V.value = "pointer", B.value = t, Z.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
|
|
287
|
+
datapoint: e,
|
|
288
|
+
seriesIndex: t
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function Ke(e, t) {
|
|
292
|
+
V.value !== "keyboard" && (Z.value = null, B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
|
|
293
|
+
datapoint: e,
|
|
294
|
+
seriesIndex: t
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
function qe() {
|
|
298
|
+
V.value !== "keyboard" && (Z.value = null, B.value = null);
|
|
299
|
+
}
|
|
300
|
+
let Je = _(() => `${H.value.style.animation.speedMs}ms`), { fitText: Q } = se({
|
|
301
|
+
svgRef: q,
|
|
302
|
+
unitWidth: _(() => Y.value.drawingWidth / W.value.length * .9)
|
|
303
|
+
});
|
|
304
|
+
me(async () => {
|
|
305
|
+
await S(), Q(".vue-ui-sparkhistogram-top-label", H.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", H.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", H.value.style.labels.timeLabel.minFontSize);
|
|
306
|
+
}), j([
|
|
307
|
+
G,
|
|
308
|
+
K,
|
|
309
|
+
() => W.value
|
|
310
|
+
], async () => {
|
|
311
|
+
await S(), Q(".vue-ui-sparkhistogram-top-label", H.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", H.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", H.value.style.labels.timeLabel.minFontSize);
|
|
312
|
+
});
|
|
313
|
+
function Ye() {
|
|
314
|
+
z.value = !0;
|
|
315
|
+
}
|
|
316
|
+
function Xe() {
|
|
317
|
+
z.value = !1, B.value = null, V.value = "pointer", Z.value = null;
|
|
318
|
+
}
|
|
319
|
+
function Ze(e) {
|
|
320
|
+
if (!q.value || document.activeElement !== q.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
|
+
B.value = null, Z.value = null, V.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
|
+
V.value = "keyboard";
|
|
335
|
+
let a = B.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)), B.value = a, Z.value = a;
|
|
337
|
+
let o = X.value[a];
|
|
338
|
+
H.value.events.datapointEnter && H.value.events.datapointEnter({
|
|
339
|
+
datapoint: o,
|
|
340
|
+
seriesIndex: a
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
let $ = _(() => ({
|
|
344
|
+
headers: [
|
|
345
|
+
H.value.a11y?.translations?.series ?? "Series",
|
|
346
|
+
H.value.a11y?.translations?.time ?? "Time",
|
|
347
|
+
H.value.a11y?.translations?.value ?? "Value",
|
|
348
|
+
H.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) => (T(), b("div", {
|
|
358
|
+
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
359
|
+
ref_key: "histogramChart",
|
|
360
|
+
ref: I,
|
|
361
|
+
style: w(`width:100%;background:${H.value.style.backgroundColor};font-family:${H.value.style.fontFamily}`),
|
|
362
|
+
onMouseleave: qe
|
|
363
|
+
}, [
|
|
364
|
+
x("div", {
|
|
365
|
+
id: `chart-instructions-${P.value}`,
|
|
366
|
+
class: "sr-only"
|
|
367
|
+
}, [x("p", null, k(H.value.a11y.translations.keyboardNavigation), 1)], 8, ve),
|
|
368
|
+
$.value?.rows?.length ? (T(), v(ae, {
|
|
369
|
+
key: 0,
|
|
370
|
+
uid: P.value,
|
|
371
|
+
head: $.value.headers,
|
|
372
|
+
body: $.value.rows,
|
|
373
|
+
notice: H.value.a11y.translations.tableAvailable,
|
|
374
|
+
caption: H.value.a11y.translations.tableCaption
|
|
375
|
+
}, null, 8, [
|
|
376
|
+
"uid",
|
|
377
|
+
"head",
|
|
378
|
+
"body",
|
|
379
|
+
"notice",
|
|
380
|
+
"caption"
|
|
381
|
+
])) : y("", !0),
|
|
382
|
+
H.value.style.title.text ? (T(), b("div", {
|
|
383
|
+
key: 1,
|
|
384
|
+
ref_key: "chartTitle",
|
|
385
|
+
ref: F,
|
|
386
|
+
style: w(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${H.value.style.title.margin};padding: 0 6px;text-align:${H.value.style.title.textAlign}`)
|
|
387
|
+
}, [x("div", { style: w(`font-size:${H.value.style.title.fontSize}px;color:${H.value.style.title.color};font-weight:${H.value.style.title.bold ? "bold" : "normal"}`) }, [
|
|
388
|
+
le(k(H.value.style.title.text) + " ", 1),
|
|
389
|
+
Z.value === null ? y("", !0) : (T(), b("span", ye, "- " + k(X.value[Z.value].timeLabel || "") + " " + k(A(s)(H.value.style.labels.value.formatter, X.value[Z.value].value, A(r)({
|
|
390
|
+
p: H.value.style.labels.value.prefix,
|
|
391
|
+
v: X.value[Z.value].value,
|
|
392
|
+
s: H.value.style.labels.value.suffix,
|
|
393
|
+
r: H.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) ? (T(), b("span", be, k(` (${X.value[Z.value].valueLabel || 0})`), 1)) : y("", !0)
|
|
399
|
+
], 4), H.value.style.title.subtitle.text ? (T(), b("div", {
|
|
400
|
+
key: 0,
|
|
401
|
+
style: w(`font-size:${H.value.style.title.subtitle.fontSize}px;color:${H.value.style.title.subtitle.color};font-weight:${H.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
402
|
+
}, k(H.value.style.title.subtitle.text), 5)) : y("", !0)], 4)) : y("", !0),
|
|
403
|
+
x("div", xe, [(T(), b("svg", {
|
|
404
|
+
ref_key: "svgRef",
|
|
405
|
+
ref: q,
|
|
406
|
+
xmlns: A(l),
|
|
407
|
+
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
408
|
+
style: { overflow: "visible" },
|
|
409
|
+
"aria-describedby": `chart-instructions-${P.value}`,
|
|
410
|
+
tabindex: "0",
|
|
411
|
+
onFocus: Ye,
|
|
412
|
+
onBlur: Xe,
|
|
413
|
+
onKeydown: Ze
|
|
414
|
+
}, [
|
|
415
|
+
ue(A(_e)),
|
|
416
|
+
e.$slots["chart-background"] ? (T(), b("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
|
+
}, [O(e.$slots, "chart-background", {}, void 0, !0)], 8, Ce)) : y("", !0),
|
|
424
|
+
x("defs", null, [
|
|
425
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), v(h, {
|
|
426
|
+
t: "radial",
|
|
427
|
+
id: `gradient_positive_${t}_${P.value}`,
|
|
428
|
+
key: `gradient_positive_${t}_${P.value}`,
|
|
429
|
+
cy: "50%",
|
|
430
|
+
cx: "50%",
|
|
431
|
+
r: "50%",
|
|
432
|
+
fx: "50%",
|
|
433
|
+
fy: "50%",
|
|
434
|
+
stops: [[
|
|
435
|
+
"0%",
|
|
436
|
+
A(a)(A(u)(H.value.style.bars.colors.positive, .05), e.intensity),
|
|
437
|
+
1
|
|
438
|
+
], [
|
|
439
|
+
"100%",
|
|
440
|
+
A(a)(H.value.style.bars.colors.positive, e.intensity),
|
|
441
|
+
1
|
|
442
|
+
]]
|
|
443
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
444
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), v(h, {
|
|
445
|
+
t: "radial",
|
|
446
|
+
id: `gradient_negative_${t}_${P.value}`,
|
|
447
|
+
key: `gradient_negative_${t}_${P.value}`,
|
|
448
|
+
cy: "50%",
|
|
449
|
+
cx: "50%",
|
|
450
|
+
r: "50%",
|
|
451
|
+
fx: "50%",
|
|
452
|
+
fy: "50%",
|
|
453
|
+
stops: [[
|
|
454
|
+
"0%",
|
|
455
|
+
A(a)(A(u)(H.value.style.bars.colors.negative, .05), e.intensity),
|
|
456
|
+
1
|
|
457
|
+
], [
|
|
458
|
+
"100%",
|
|
459
|
+
A(a)(H.value.style.bars.colors.negative, e.intensity),
|
|
460
|
+
1
|
|
461
|
+
]]
|
|
462
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
463
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), v(h, {
|
|
464
|
+
t: "radial",
|
|
465
|
+
id: `gradient_datapoint_${t}_${P.value}`,
|
|
466
|
+
key: `gradient_datapoint_${t}_${P.value}`,
|
|
467
|
+
cy: "50%",
|
|
468
|
+
cx: "50%",
|
|
469
|
+
r: "50%",
|
|
470
|
+
fx: "50%",
|
|
471
|
+
fy: "50%",
|
|
472
|
+
stops: [[
|
|
473
|
+
"0%",
|
|
474
|
+
A(a)(A(u)(e.color, .05), e.intensity),
|
|
475
|
+
1
|
|
476
|
+
], [
|
|
477
|
+
"100%",
|
|
478
|
+
A(a)(e.color, e.intensity),
|
|
479
|
+
1
|
|
480
|
+
]]
|
|
481
|
+
}, null, 8, ["id", "stops"]))), 128))
|
|
482
|
+
]),
|
|
483
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [Z.value !== null && Z.value === t ? (T(), b("rect", {
|
|
484
|
+
key: 0,
|
|
485
|
+
height: Y.value.height,
|
|
486
|
+
width: e.unitWidth,
|
|
487
|
+
fill: H.value.style.selector.fill,
|
|
488
|
+
x: e.trapX,
|
|
489
|
+
y: 0,
|
|
490
|
+
stroke: H.value.style.selector.stroke,
|
|
491
|
+
"stroke-width": H.value.style.selector.strokeWidth,
|
|
492
|
+
rx: H.value.style.selector.borderRadius,
|
|
493
|
+
"stroke-dasharray": H.value.style.selector.strokeDasharray
|
|
494
|
+
}, null, 8, we)) : y("", !0)]))), 256)),
|
|
495
|
+
!H.value.style.bars.shape || H.value.style.bars.shape === "square" ? (T(), b("g", Te, [(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("rect", {
|
|
496
|
+
x: e.x,
|
|
497
|
+
y: e.y,
|
|
498
|
+
height: e.height,
|
|
499
|
+
width: e.width,
|
|
500
|
+
fill: H.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
501
|
+
stroke: e.stroke,
|
|
502
|
+
"stroke-width": H.value.style.bars.strokeWidth,
|
|
503
|
+
rx: `${H.value.style.bars.borderRadius * e.proportion / 12}%`,
|
|
504
|
+
class: C({ "vue-ui-sparkhistogram-shape": H.value.style.animation.show })
|
|
505
|
+
}, null, 10, Ee))), 256))])) : (T(), b("g", De, [(T(!0), b(g, null, D(X.value, (e, t) => (T(), v(te, {
|
|
506
|
+
plot: {
|
|
507
|
+
x: e.x + e.width / 2,
|
|
508
|
+
y: e.y + e.height / 2
|
|
509
|
+
},
|
|
510
|
+
color: H.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
511
|
+
shape: H.value.style.bars.shape,
|
|
512
|
+
radius: Math.min(e.height * .4, e.width * .4),
|
|
513
|
+
class: C({ "vue-ui-sparkhistogram-shape": H.value.style.animation.show })
|
|
514
|
+
}, null, 8, [
|
|
515
|
+
"plot",
|
|
516
|
+
"color",
|
|
517
|
+
"shape",
|
|
518
|
+
"radius",
|
|
519
|
+
"class"
|
|
520
|
+
]))), 256))])),
|
|
521
|
+
A(U) ? y("", !0) : (T(), b(g, { key: 3 }, [
|
|
522
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [H.value.style.labels.value.show ? (T(), b("text", {
|
|
523
|
+
key: 0,
|
|
524
|
+
class: "vue-ui-sparkhistogram-top-label",
|
|
525
|
+
"text-anchor": "middle",
|
|
526
|
+
x: e.textAnchor,
|
|
527
|
+
y: e.y - H.value.style.labels.value.fontSize / 3 + H.value.style.labels.value.offsetY,
|
|
528
|
+
"font-size": H.value.style.labels.value.fontSize,
|
|
529
|
+
"font-weight": H.value.style.labels.value.bold ? "bold" : "normal",
|
|
530
|
+
fill: H.value.style.labels.value.color
|
|
531
|
+
}, k(He(e, t)), 9, Oe)) : y("", !0)]))), 256)),
|
|
532
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [e.valueLabel && H.value.style.labels.valueLabel.show ? (T(), b("text", {
|
|
533
|
+
key: 0,
|
|
534
|
+
class: "vue-ui-sparkhistogram-bottom-label",
|
|
535
|
+
x: e.textAnchor,
|
|
536
|
+
y: e.y + e.height + H.value.style.labels.valueLabel.fontSize,
|
|
537
|
+
"font-size": H.value.style.labels.valueLabel.fontSize,
|
|
538
|
+
"text-anchor": "middle",
|
|
539
|
+
fill: H.value.style.labels.valueLabel.color
|
|
540
|
+
}, k(e.valueLabel), 9, ke)) : y("", !0)]))), 256)),
|
|
541
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [e.timeLabel && H.value.style.labels.timeLabel.show ? (T(), b("text", {
|
|
542
|
+
key: 0,
|
|
543
|
+
class: "vue-ui-sparkhistogram-time-label",
|
|
544
|
+
x: e.textAnchor,
|
|
545
|
+
y: Y.value.height,
|
|
546
|
+
"font-size": H.value.style.labels.timeLabel.fontSize,
|
|
547
|
+
fill: H.value.style.labels.timeLabel.color,
|
|
548
|
+
"text-anchor": "middle"
|
|
549
|
+
}, k(e.timeLabel), 9, Ae)) : y("", !0)]))), 256))
|
|
550
|
+
], 64)),
|
|
551
|
+
(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [x("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, je)]))), 256))
|
|
561
|
+
], 40, Se)), e.$slots.hint ? (T(), b("div", Me, [O(e.$slots, "hint", pe(fe({
|
|
562
|
+
hint: H.value.a11y.translations.keyboardNavigation,
|
|
563
|
+
isVisible: z.value
|
|
564
|
+
})), void 0, !0)])) : y("", !0)]),
|
|
565
|
+
e.$slots.source ? (T(), b("div", {
|
|
566
|
+
key: 2,
|
|
567
|
+
ref_key: "source",
|
|
568
|
+
ref: Fe,
|
|
569
|
+
dir: "auto"
|
|
570
|
+
}, [O(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
571
|
+
O(e.$slots, "skeleton", {}, () => [A(U) ? (T(), v(f, { key: 0 })) : y("", !0)], !0)
|
|
572
|
+
], 36));
|
|
573
|
+
}
|
|
574
|
+
}, [["__scopeId", "data-v-f5687368"]]);
|
|
575
|
+
//#endregion
|
|
576
|
+
export { _e as n, M as t };
|