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
|
@@ -1,560 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, W as o, i as s, q as c, t as l, ut as u } from "./lib-EAmk-PgA.js";
|
|
3
|
-
import { t as d } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { n as ee, t as te } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as f } from "./useNestedProp-D8XqxgOU.js";
|
|
6
|
-
import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
-
import { t as re } from "./Shape-CiQIxyyT.js";
|
|
8
|
-
import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import { c as ae } from "./canvas-lib-BOP_HS11.js";
|
|
10
|
-
import { t as oe } from "./useResponsive-BfnK0KxU.js";
|
|
11
|
-
import { t as se } from "./A11yDataTable-DdRsVULz.js";
|
|
12
|
-
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
|
-
import { t as le } from "./useFitSvgText-CT3nmlaS.js";
|
|
14
|
-
import { t as ue } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
|
|
15
|
-
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as de, createVNode as fe, defineAsyncComponent as pe, guardReactiveProps as me, nextTick as y, normalizeClass as he, normalizeProps as ge, normalizeStyle as b, onMounted as _e, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as ve, unref as E, useCssVars as ye, watch as D } from "vue";
|
|
16
|
-
//#region src/components/vue-ui-sparkhistogram.vue
|
|
17
|
-
var O = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, Se = { key: 1 }, Ce = { style: { position: "relative" } }, we = [
|
|
18
|
-
"xmlns",
|
|
19
|
-
"viewBox",
|
|
20
|
-
"aria-describedby"
|
|
21
|
-
], Te = ["width", "height"], Ee = ["id"], De = ["stop-color"], Oe = ["stop-color"], ke = ["id"], Ae = ["stop-color"], je = ["stop-color"], Me = ["id"], Ne = ["stop-color"], Pe = ["stop-color"], Fe = [
|
|
22
|
-
"height",
|
|
23
|
-
"width",
|
|
24
|
-
"fill",
|
|
25
|
-
"x",
|
|
26
|
-
"stroke",
|
|
27
|
-
"stroke-width",
|
|
28
|
-
"rx",
|
|
29
|
-
"stroke-dasharray"
|
|
30
|
-
], Ie = { key: 1 }, Le = [
|
|
31
|
-
"x",
|
|
32
|
-
"y",
|
|
33
|
-
"height",
|
|
34
|
-
"width",
|
|
35
|
-
"fill",
|
|
36
|
-
"stroke",
|
|
37
|
-
"stroke-width",
|
|
38
|
-
"rx"
|
|
39
|
-
], Re = { key: 2 }, ze = [
|
|
40
|
-
"x",
|
|
41
|
-
"y",
|
|
42
|
-
"font-size",
|
|
43
|
-
"font-weight",
|
|
44
|
-
"fill"
|
|
45
|
-
], Be = [
|
|
46
|
-
"x",
|
|
47
|
-
"y",
|
|
48
|
-
"font-size",
|
|
49
|
-
"fill"
|
|
50
|
-
], Ve = [
|
|
51
|
-
"x",
|
|
52
|
-
"y",
|
|
53
|
-
"font-size",
|
|
54
|
-
"fill"
|
|
55
|
-
], He = [
|
|
56
|
-
"height",
|
|
57
|
-
"width",
|
|
58
|
-
"x",
|
|
59
|
-
"onMouseover",
|
|
60
|
-
"onMouseleave",
|
|
61
|
-
"onClick"
|
|
62
|
-
], Ue = {
|
|
63
|
-
key: 0,
|
|
64
|
-
style: {
|
|
65
|
-
position: "absolute",
|
|
66
|
-
top: "100%",
|
|
67
|
-
left: "0",
|
|
68
|
-
width: "100%"
|
|
69
|
-
},
|
|
70
|
-
"data-dom-to-png-ignore": "",
|
|
71
|
-
"aria-hidden": "true"
|
|
72
|
-
}, k = /*#__PURE__*/ ie({
|
|
73
|
-
__name: "vue-ui-sparkhistogram",
|
|
74
|
-
props: {
|
|
75
|
-
config: {
|
|
76
|
-
type: Object,
|
|
77
|
-
default() {
|
|
78
|
-
return {};
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
dataset: {
|
|
82
|
-
type: Array,
|
|
83
|
-
default() {
|
|
84
|
-
return [];
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
emits: ["selectDatapoint"],
|
|
89
|
-
setup(e, { emit: ie }) {
|
|
90
|
-
ye((e) => ({ v66b29b27: nt.value }));
|
|
91
|
-
let O = pe(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), { vue_ui_sparkhistogram: k } = d(), { isThemeValid: We, warnInvalidTheme: Ge } = ne(), A = e, j = S(o()), M = S(null), N = S(null), P = S(null), F = S(null), I = S(null), L = S(!1), R = S(null), z = S("pointer"), B = S(K()), Ke = m(() => t({
|
|
92
|
-
defaultConfig: { style: {
|
|
93
|
-
animation: { show: !1 },
|
|
94
|
-
backgroundColor: "#99999930"
|
|
95
|
-
} },
|
|
96
|
-
userConfig: B.value.skeletonConfig ?? {}
|
|
97
|
-
})), { loading: V, FINAL_DATASET: H, manualLoading: qe } = ee({
|
|
98
|
-
...ve(A),
|
|
99
|
-
FINAL_CONFIG: B,
|
|
100
|
-
prepareConfig: K,
|
|
101
|
-
skeletonDataset: A.config?.skeletonDataset ?? [
|
|
102
|
-
{
|
|
103
|
-
value: 1,
|
|
104
|
-
intensity: .2,
|
|
105
|
-
color: "#CACACA"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
value: 2,
|
|
109
|
-
intensity: .3,
|
|
110
|
-
color: "#CACACA"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
value: 3,
|
|
114
|
-
intensity: .5,
|
|
115
|
-
color: "#CACACA"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
value: 5,
|
|
119
|
-
intensity: .7,
|
|
120
|
-
color: "#CACACA"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
value: 8,
|
|
124
|
-
intensity: .9,
|
|
125
|
-
color: "#CACACA"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
value: 13,
|
|
129
|
-
intensity: .95,
|
|
130
|
-
color: "#CACACA"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
value: 21,
|
|
134
|
-
intensity: 1,
|
|
135
|
-
color: "#CACACA"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
value: 13,
|
|
139
|
-
intensity: .95,
|
|
140
|
-
color: "#CACACA"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
value: 8,
|
|
144
|
-
intensity: .9,
|
|
145
|
-
color: "#CACACA"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
value: 5,
|
|
149
|
-
intensity: .7,
|
|
150
|
-
color: "#CACACA"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
value: 3,
|
|
154
|
-
intensity: .5,
|
|
155
|
-
color: "#CACACA"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
value: 2,
|
|
159
|
-
intensity: .3,
|
|
160
|
-
color: "#CACACA"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
value: 1,
|
|
164
|
-
intensity: .2,
|
|
165
|
-
color: "#CACACA"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
skeletonConfig: t({
|
|
169
|
-
defaultConfig: B.value,
|
|
170
|
-
userConfig: Ke.value
|
|
171
|
-
})
|
|
172
|
-
}), U = S(B.value.style.layout.width), W = S(B.value.style.layout.height), { svgRef: G } = ce({ config: B.value.style.title });
|
|
173
|
-
function K() {
|
|
174
|
-
let e = f({
|
|
175
|
-
userConfig: A.config,
|
|
176
|
-
defaultConfig: k
|
|
177
|
-
}), t = e.theme;
|
|
178
|
-
if (!t) return e;
|
|
179
|
-
if (!We.value(e)) return Ge(e), e;
|
|
180
|
-
let n = f({
|
|
181
|
-
userConfig: ue[t] || A.config,
|
|
182
|
-
defaultConfig: e
|
|
183
|
-
});
|
|
184
|
-
return f({
|
|
185
|
-
userConfig: A.config,
|
|
186
|
-
defaultConfig: n
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
_e(() => {
|
|
190
|
-
J();
|
|
191
|
-
});
|
|
192
|
-
let q = m(() => !!B.value.debug);
|
|
193
|
-
function J() {
|
|
194
|
-
if (r(A.dataset) ? i({
|
|
195
|
-
componentName: "VueUiSparkHistogram",
|
|
196
|
-
type: "dataset",
|
|
197
|
-
debug: q.value
|
|
198
|
-
}) : A.dataset.forEach((e, t) => {
|
|
199
|
-
u({
|
|
200
|
-
datasetObject: e,
|
|
201
|
-
requiredAttributes: ["value"]
|
|
202
|
-
}).forEach((e) => {
|
|
203
|
-
i({
|
|
204
|
-
componentName: "VueUiSparkHistogram",
|
|
205
|
-
type: "datasetSerieAttribute",
|
|
206
|
-
property: e,
|
|
207
|
-
index: t,
|
|
208
|
-
debug: q.value
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
}), B.value.responsive) {
|
|
212
|
-
let e = ae(() => {
|
|
213
|
-
let { width: e, height: t } = oe({
|
|
214
|
-
chart: P.value,
|
|
215
|
-
title: B.value.style.title.text ? N.value : null,
|
|
216
|
-
source: M.value
|
|
217
|
-
}), 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;
|
|
218
|
-
requestAnimationFrame(() => {
|
|
219
|
-
U.value = Math.max(10, e), W.value = Math.max(10, t - 12 - n - r);
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
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
|
-
}
|
|
225
|
-
D(() => A.config, (e) => {
|
|
226
|
-
B.value = K(), J();
|
|
227
|
-
}, { deep: !0 });
|
|
228
|
-
let Y = m(() => {
|
|
229
|
-
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
|
-
return {
|
|
231
|
-
bottom: a,
|
|
232
|
-
centerY: i + (n - i - B.value.style.layout.padding.bottom) / 2,
|
|
233
|
-
drawingHeight: n - B.value.style.layout.padding.top - B.value.style.layout.padding.bottom - e - t,
|
|
234
|
-
drawingWidth: r - B.value.style.layout.padding.left - B.value.style.layout.padding.right,
|
|
235
|
-
height: n,
|
|
236
|
-
left: o,
|
|
237
|
-
right: s,
|
|
238
|
-
top: i,
|
|
239
|
-
width: r
|
|
240
|
-
};
|
|
241
|
-
}), Je = m(() => Math.max(...H.value.map((e) => Math.abs(e.value || 0))));
|
|
242
|
-
function Ye(e) {
|
|
243
|
-
return Math.abs(e) / Je.value;
|
|
244
|
-
}
|
|
245
|
-
let X = m(() => H.value.map((e, t) => {
|
|
246
|
-
let r = Ye(e.value || 0), i = Y.value.drawingHeight * r, a = Y.value.drawingWidth / H.value.length, o = a * (B.value.style.bars.gap / 100), s = a - o, c = Y.value.centerY - i / 2, l = Y.value.left + (o / 2 + t * a), u = Y.value.left + t * a, d = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), ee = e.color ? e.color : e.value >= 0 ? n(B.value.style.bars.colors.positive, d) : n(B.value.style.bars.colors.negative, d), te = e.color ? e.color : e.value >= 0 ? B.value.style.bars.colors.positive : B.value.style.bars.colors.negative, f = e.color ? `url(#gradient_datapoint_${t}_${j.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${j.value})` : `url(#gradient_negative_${t}_${j.value})`, ne = l + s / 2;
|
|
247
|
-
return {
|
|
248
|
-
...e,
|
|
249
|
-
color: ee,
|
|
250
|
-
gradient: f,
|
|
251
|
-
height: i,
|
|
252
|
-
intensity: d,
|
|
253
|
-
proportion: r,
|
|
254
|
-
stroke: te,
|
|
255
|
-
textAnchor: ne,
|
|
256
|
-
trapX: u,
|
|
257
|
-
unitWidth: a,
|
|
258
|
-
width: s,
|
|
259
|
-
x: l,
|
|
260
|
-
y: c
|
|
261
|
-
};
|
|
262
|
-
}));
|
|
263
|
-
function Xe(e, t) {
|
|
264
|
-
return s(B.value.style.labels.value.formatter, e.value, c({
|
|
265
|
-
p: B.value.style.labels.value.prefix,
|
|
266
|
-
v: e.value,
|
|
267
|
-
s: B.value.style.labels.value.suffix,
|
|
268
|
-
r: B.value.style.labels.value.rounding
|
|
269
|
-
}), {
|
|
270
|
-
datapoint: e,
|
|
271
|
-
seriesIndex: t
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
let Z = S(null), Ze = ie;
|
|
275
|
-
function Qe(e, t) {
|
|
276
|
-
Ze("selectDatapoint", {
|
|
277
|
-
datapoint: e,
|
|
278
|
-
index: t
|
|
279
|
-
}), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
280
|
-
datapoint: e,
|
|
281
|
-
seriesIndex: t
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
function $e(e, t) {
|
|
285
|
-
z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
286
|
-
datapoint: e,
|
|
287
|
-
seriesIndex: t
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function et(e, t) {
|
|
291
|
-
z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
292
|
-
datapoint: e,
|
|
293
|
-
seriesIndex: t
|
|
294
|
-
}));
|
|
295
|
-
}
|
|
296
|
-
function tt() {
|
|
297
|
-
z.value !== "keyboard" && (Z.value = null, R.value = null);
|
|
298
|
-
}
|
|
299
|
-
let nt = m(() => `${B.value.style.animation.speedMs}ms`), { fitText: Q } = le({
|
|
300
|
-
svgRef: G,
|
|
301
|
-
unitWidth: m(() => Y.value.drawingWidth / H.value.length * .9)
|
|
302
|
-
});
|
|
303
|
-
_e(async () => {
|
|
304
|
-
await y(), 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);
|
|
305
|
-
}), D([
|
|
306
|
-
U,
|
|
307
|
-
W,
|
|
308
|
-
() => H.value
|
|
309
|
-
], async () => {
|
|
310
|
-
await y(), 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
|
-
function rt() {
|
|
313
|
-
L.value = !0;
|
|
314
|
-
}
|
|
315
|
-
function it() {
|
|
316
|
-
L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
|
|
317
|
-
}
|
|
318
|
-
function at(e) {
|
|
319
|
-
if (!G.value || document.activeElement !== G.value || !X.value.length) return;
|
|
320
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
321
|
-
if (!t && !n && !r && !i) return;
|
|
322
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
323
|
-
R.value = null, Z.value = null, z.value = "pointer";
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
if (r) {
|
|
327
|
-
if (Z.value === null) return;
|
|
328
|
-
let e = X.value[Z.value];
|
|
329
|
-
if (!e) return;
|
|
330
|
-
Qe(e, Z.value);
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
z.value = "keyboard";
|
|
334
|
-
let a = R.value;
|
|
335
|
-
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;
|
|
336
|
-
let o = X.value[a];
|
|
337
|
-
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
338
|
-
datapoint: o,
|
|
339
|
-
seriesIndex: a
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
let $ = m(() => ({
|
|
343
|
-
headers: [
|
|
344
|
-
B.value.a11y?.translations?.series ?? "Series",
|
|
345
|
-
B.value.a11y?.translations?.time ?? "Time",
|
|
346
|
-
B.value.a11y?.translations?.value ?? "Value",
|
|
347
|
-
B.value.a11y?.translations?.valueLabel ?? "Label"
|
|
348
|
-
],
|
|
349
|
-
rows: X.value.map((e, t) => [
|
|
350
|
-
t + 1,
|
|
351
|
-
e.timeLabel ?? "",
|
|
352
|
-
e.value ?? "",
|
|
353
|
-
e.valueLabel ?? ""
|
|
354
|
-
])
|
|
355
|
-
}));
|
|
356
|
-
return (e, t) => (x(), _("div", {
|
|
357
|
-
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
358
|
-
ref_key: "histogramChart",
|
|
359
|
-
ref: P,
|
|
360
|
-
style: b(`width:100%;background:${B.value.style.backgroundColor};font-family:${B.value.style.fontFamily}`),
|
|
361
|
-
onMouseleave: tt
|
|
362
|
-
}, [
|
|
363
|
-
v("div", {
|
|
364
|
-
id: `chart-instructions-${j.value}`,
|
|
365
|
-
class: "sr-only"
|
|
366
|
-
}, [v("p", null, T(B.value.a11y.translations.keyboardNavigation), 1)], 8, be),
|
|
367
|
-
$.value?.rows?.length ? (x(), h(se, {
|
|
368
|
-
key: 0,
|
|
369
|
-
uid: j.value,
|
|
370
|
-
head: $.value.headers,
|
|
371
|
-
body: $.value.rows,
|
|
372
|
-
notice: B.value.a11y.translations.tableAvailable,
|
|
373
|
-
caption: B.value.a11y.translations.tableCaption
|
|
374
|
-
}, null, 8, [
|
|
375
|
-
"uid",
|
|
376
|
-
"head",
|
|
377
|
-
"body",
|
|
378
|
-
"notice",
|
|
379
|
-
"caption"
|
|
380
|
-
])) : g("", !0),
|
|
381
|
-
B.value.style.title.text ? (x(), _("div", {
|
|
382
|
-
key: 1,
|
|
383
|
-
ref_key: "chartTitle",
|
|
384
|
-
ref: N,
|
|
385
|
-
style: b(`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}`)
|
|
386
|
-
}, [v("div", { style: b(`font-size:${B.value.style.title.fontSize}px;color:${B.value.style.title.color};font-weight:${B.value.style.title.bold ? "bold" : "normal"}`) }, [
|
|
387
|
-
de(T(B.value.style.title.text) + " ", 1),
|
|
388
|
-
Z.value === null ? g("", !0) : (x(), _("span", xe, "- " + T(X.value[Z.value].timeLabel || "") + " " + T(E(s)(B.value.style.labels.value.formatter, X.value[Z.value].value, E(c)({
|
|
389
|
-
p: B.value.style.labels.value.prefix,
|
|
390
|
-
v: X.value[Z.value].value,
|
|
391
|
-
s: B.value.style.labels.value.suffix,
|
|
392
|
-
r: B.value.style.labels.value.rounding
|
|
393
|
-
}), {
|
|
394
|
-
datapoint: X.value[Z.value],
|
|
395
|
-
seriesIndex: Z.value
|
|
396
|
-
})), 1)),
|
|
397
|
-
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (x(), _("span", Se, T(` (${X.value[Z.value].valueLabel || 0})`), 1)) : g("", !0)
|
|
398
|
-
], 4), B.value.style.title.subtitle.text ? (x(), _("div", {
|
|
399
|
-
key: 0,
|
|
400
|
-
style: b(`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"}`)
|
|
401
|
-
}, T(B.value.style.title.subtitle.text), 5)) : g("", !0)], 4)) : g("", !0),
|
|
402
|
-
v("div", Ce, [(x(), _("svg", {
|
|
403
|
-
ref_key: "svgRef",
|
|
404
|
-
ref: G,
|
|
405
|
-
xmlns: E(l),
|
|
406
|
-
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
407
|
-
style: { overflow: "visible" },
|
|
408
|
-
"aria-describedby": `chart-instructions-${j.value}`,
|
|
409
|
-
tabindex: "0",
|
|
410
|
-
onFocus: rt,
|
|
411
|
-
onBlur: it,
|
|
412
|
-
onKeydown: at
|
|
413
|
-
}, [
|
|
414
|
-
fe(E(O)),
|
|
415
|
-
e.$slots["chart-background"] ? (x(), _("foreignObject", {
|
|
416
|
-
key: 0,
|
|
417
|
-
x: 0,
|
|
418
|
-
y: 0,
|
|
419
|
-
width: Y.value.width,
|
|
420
|
-
height: Y.value.height,
|
|
421
|
-
style: { pointerEvents: "none" }
|
|
422
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : g("", !0),
|
|
423
|
-
v("defs", null, [
|
|
424
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("radialGradient", {
|
|
425
|
-
id: `gradient_positive_${t}_${j.value}`,
|
|
426
|
-
cy: "50%",
|
|
427
|
-
cx: "50%",
|
|
428
|
-
r: "50%",
|
|
429
|
-
fx: "50%",
|
|
430
|
-
fy: "50%"
|
|
431
|
-
}, [v("stop", {
|
|
432
|
-
offset: "0%",
|
|
433
|
-
"stop-color": E(n)(E(a)(B.value.style.bars.colors.positive, .05), e.intensity)
|
|
434
|
-
}, null, 8, De), v("stop", {
|
|
435
|
-
offset: "100%",
|
|
436
|
-
"stop-color": E(n)(B.value.style.bars.colors.positive, e.intensity)
|
|
437
|
-
}, null, 8, Oe)], 8, Ee))), 256)),
|
|
438
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("radialGradient", {
|
|
439
|
-
id: `gradient_negative_${t}_${j.value}`,
|
|
440
|
-
cy: "50%",
|
|
441
|
-
cx: "50%",
|
|
442
|
-
r: "50%",
|
|
443
|
-
fx: "50%",
|
|
444
|
-
fy: "50%"
|
|
445
|
-
}, [v("stop", {
|
|
446
|
-
offset: "0%",
|
|
447
|
-
"stop-color": E(n)(E(a)(B.value.style.bars.colors.negative, .05), e.intensity)
|
|
448
|
-
}, null, 8, Ae), v("stop", {
|
|
449
|
-
offset: "100%",
|
|
450
|
-
"stop-color": E(n)(B.value.style.bars.colors.negative, e.intensity)
|
|
451
|
-
}, null, 8, je)], 8, ke))), 256)),
|
|
452
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("radialGradient", {
|
|
453
|
-
id: `gradient_datapoint_${t}_${j.value}`,
|
|
454
|
-
cy: "50%",
|
|
455
|
-
cx: "50%",
|
|
456
|
-
r: "50%",
|
|
457
|
-
fx: "50%",
|
|
458
|
-
fy: "50%"
|
|
459
|
-
}, [v("stop", {
|
|
460
|
-
offset: "0%",
|
|
461
|
-
"stop-color": E(n)(E(a)(e.color, .05), e.intensity)
|
|
462
|
-
}, null, 8, Ne), v("stop", {
|
|
463
|
-
offset: "100%",
|
|
464
|
-
"stop-color": E(n)(e.color, e.intensity)
|
|
465
|
-
}, null, 8, Pe)], 8, Me))), 256))
|
|
466
|
-
]),
|
|
467
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("g", null, [Z.value !== null && Z.value === t ? (x(), _("rect", {
|
|
468
|
-
key: 0,
|
|
469
|
-
height: Y.value.height,
|
|
470
|
-
width: e.unitWidth,
|
|
471
|
-
fill: B.value.style.selector.fill,
|
|
472
|
-
x: e.trapX,
|
|
473
|
-
y: 0,
|
|
474
|
-
stroke: B.value.style.selector.stroke,
|
|
475
|
-
"stroke-width": B.value.style.selector.strokeWidth,
|
|
476
|
-
rx: B.value.style.selector.borderRadius,
|
|
477
|
-
"stroke-dasharray": B.value.style.selector.strokeDasharray
|
|
478
|
-
}, null, 8, Fe)) : g("", !0)]))), 256)),
|
|
479
|
-
!B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (x(), _("g", Ie, [(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("rect", {
|
|
480
|
-
x: e.x,
|
|
481
|
-
y: e.y,
|
|
482
|
-
height: e.height,
|
|
483
|
-
width: e.width,
|
|
484
|
-
fill: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
485
|
-
stroke: e.stroke,
|
|
486
|
-
"stroke-width": B.value.style.bars.strokeWidth,
|
|
487
|
-
rx: `${B.value.style.bars.borderRadius * e.proportion / 12}%`,
|
|
488
|
-
class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
|
|
489
|
-
}, null, 10, Le))), 256))])) : (x(), _("g", Re, [(x(!0), _(p, null, C(X.value, (e, t) => (x(), h(re, {
|
|
490
|
-
plot: {
|
|
491
|
-
x: e.x + e.width / 2,
|
|
492
|
-
y: e.y + e.height / 2
|
|
493
|
-
},
|
|
494
|
-
color: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
495
|
-
shape: B.value.style.bars.shape,
|
|
496
|
-
radius: Math.min(e.height * .4, e.width * .4),
|
|
497
|
-
class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
|
|
498
|
-
}, null, 8, [
|
|
499
|
-
"plot",
|
|
500
|
-
"color",
|
|
501
|
-
"shape",
|
|
502
|
-
"radius",
|
|
503
|
-
"class"
|
|
504
|
-
]))), 256))])),
|
|
505
|
-
E(V) ? g("", !0) : (x(), _(p, { key: 3 }, [
|
|
506
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("g", null, [B.value.style.labels.value.show ? (x(), _("text", {
|
|
507
|
-
key: 0,
|
|
508
|
-
class: "vue-ui-sparkhistogram-top-label",
|
|
509
|
-
"text-anchor": "middle",
|
|
510
|
-
x: e.textAnchor,
|
|
511
|
-
y: e.y - B.value.style.labels.value.fontSize / 3 + B.value.style.labels.value.offsetY,
|
|
512
|
-
"font-size": B.value.style.labels.value.fontSize,
|
|
513
|
-
"font-weight": B.value.style.labels.value.bold ? "bold" : "normal",
|
|
514
|
-
fill: B.value.style.labels.value.color
|
|
515
|
-
}, T(Xe(e, t)), 9, ze)) : g("", !0)]))), 256)),
|
|
516
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("g", null, [e.valueLabel && B.value.style.labels.valueLabel.show ? (x(), _("text", {
|
|
517
|
-
key: 0,
|
|
518
|
-
class: "vue-ui-sparkhistogram-bottom-label",
|
|
519
|
-
x: e.textAnchor,
|
|
520
|
-
y: e.y + e.height + B.value.style.labels.valueLabel.fontSize,
|
|
521
|
-
"font-size": B.value.style.labels.valueLabel.fontSize,
|
|
522
|
-
"text-anchor": "middle",
|
|
523
|
-
fill: B.value.style.labels.valueLabel.color
|
|
524
|
-
}, T(e.valueLabel), 9, Be)) : g("", !0)]))), 256)),
|
|
525
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("g", null, [e.timeLabel && B.value.style.labels.timeLabel.show ? (x(), _("text", {
|
|
526
|
-
key: 0,
|
|
527
|
-
class: "vue-ui-sparkhistogram-time-label",
|
|
528
|
-
x: e.textAnchor,
|
|
529
|
-
y: Y.value.height,
|
|
530
|
-
"font-size": B.value.style.labels.timeLabel.fontSize,
|
|
531
|
-
fill: B.value.style.labels.timeLabel.color,
|
|
532
|
-
"text-anchor": "middle"
|
|
533
|
-
}, T(e.timeLabel), 9, Ve)) : g("", !0)]))), 256))
|
|
534
|
-
], 64)),
|
|
535
|
-
(x(!0), _(p, null, C(X.value, (e, t) => (x(), _("g", null, [v("rect", {
|
|
536
|
-
height: Y.value.height,
|
|
537
|
-
width: e.unitWidth,
|
|
538
|
-
fill: "transparent",
|
|
539
|
-
x: e.trapX,
|
|
540
|
-
y: 0,
|
|
541
|
-
onMouseover: (n) => $e(e, t),
|
|
542
|
-
onMouseleave: (n) => et(e, t),
|
|
543
|
-
onClick: () => Qe(e, t)
|
|
544
|
-
}, null, 40, He)]))), 256))
|
|
545
|
-
], 40, we)), e.$slots.hint ? (x(), _("div", Ue, [w(e.$slots, "hint", ge(me({
|
|
546
|
-
hint: B.value.a11y.translations.keyboardNavigation,
|
|
547
|
-
isVisible: L.value
|
|
548
|
-
})), void 0, !0)])) : g("", !0)]),
|
|
549
|
-
e.$slots.source ? (x(), _("div", {
|
|
550
|
-
key: 2,
|
|
551
|
-
ref_key: "source",
|
|
552
|
-
ref: M,
|
|
553
|
-
dir: "auto"
|
|
554
|
-
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
555
|
-
w(e.$slots, "skeleton", {}, () => [E(V) ? (x(), h(te, { key: 0 })) : g("", !0)], !0)
|
|
556
|
-
], 36));
|
|
557
|
-
}
|
|
558
|
-
}, [["__scopeId", "data-v-8a87ff32"]]);
|
|
559
|
-
//#endregion
|
|
560
|
-
export { O as n, k as t };
|