vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- 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/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -0,0 +1,1614 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, G as r, Ht as i, Jt as a, Kt as o, N as s, P as ee, Pt as c, Q as te, S as ne, V as re, X as l, ht as ie, i as u, jt as ae, pt as oe, q as se, r as ce, t as le, tt as ue, w as de } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as me } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as he } from "./useConfig-DlNpz6P8.js";
|
|
6
|
+
import { t as ge } from "./usePrinter-DN5bYhTG.js";
|
|
7
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as ye } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as xe } from "./useChartExport-DNiwdPmb.js";
|
|
11
|
+
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Ce } from "./img-Bnokohej.js";
|
|
13
|
+
import { n as we } from "./Title-BE3qg9xl.js";
|
|
14
|
+
import { t as Te } from "./Shape-C21CMlWS.js";
|
|
15
|
+
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as ke } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
+
import { t as Ae } from "./BaseLegendToggle-DZVucLnv.js";
|
|
19
|
+
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
+
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
+
import { t as Pe } from "./Legend-CQxUgOd-.js";
|
|
23
|
+
import { t as Fe } from "./vue_ui_ridgeline-VM8_mx4J.js";
|
|
24
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as ze, nextTick as Be, normalizeClass as Ve, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as He, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as T, toRefs as Ge, unref as E, watch as D, watchEffect as Ke, withCtx as O } from "vue";
|
|
25
|
+
//#region src/components/vue-ui-ridgeline.vue
|
|
26
|
+
var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
|
|
27
|
+
"xmlns",
|
|
28
|
+
"aria-describedby",
|
|
29
|
+
"viewBox"
|
|
30
|
+
], Qe = { key: 0 }, $e = ["fill", "d"], et = [
|
|
31
|
+
"stroke",
|
|
32
|
+
"stroke-width",
|
|
33
|
+
"d"
|
|
34
|
+
], tt = ["fill", "d"], nt = [
|
|
35
|
+
"stroke",
|
|
36
|
+
"stroke-dasharray",
|
|
37
|
+
"stroke-width",
|
|
38
|
+
"d"
|
|
39
|
+
], rt = [
|
|
40
|
+
"x1",
|
|
41
|
+
"y1",
|
|
42
|
+
"x2",
|
|
43
|
+
"y2",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width",
|
|
46
|
+
"stroke-dasharray"
|
|
47
|
+
], it = [
|
|
48
|
+
"cx",
|
|
49
|
+
"cy",
|
|
50
|
+
"stroke",
|
|
51
|
+
"stroke-width",
|
|
52
|
+
"r",
|
|
53
|
+
"fill"
|
|
54
|
+
], at = [
|
|
55
|
+
"x",
|
|
56
|
+
"y",
|
|
57
|
+
"font-size",
|
|
58
|
+
"font-weight",
|
|
59
|
+
"fill",
|
|
60
|
+
"text-decoration",
|
|
61
|
+
"onMouseenter",
|
|
62
|
+
"onClick"
|
|
63
|
+
], ot = { key: 0 }, st = [
|
|
64
|
+
"font-size",
|
|
65
|
+
"fill",
|
|
66
|
+
"font-weight",
|
|
67
|
+
"transform",
|
|
68
|
+
"text-anchor"
|
|
69
|
+
], ct = [
|
|
70
|
+
"font-size",
|
|
71
|
+
"fill",
|
|
72
|
+
"font-weight",
|
|
73
|
+
"transform",
|
|
74
|
+
"text-anchor",
|
|
75
|
+
"innerHTML"
|
|
76
|
+
], lt = [
|
|
77
|
+
"x",
|
|
78
|
+
"y",
|
|
79
|
+
"width",
|
|
80
|
+
"height",
|
|
81
|
+
"onMouseenter",
|
|
82
|
+
"onMouseleave",
|
|
83
|
+
"onClick"
|
|
84
|
+
], ut = [
|
|
85
|
+
"x1",
|
|
86
|
+
"x2",
|
|
87
|
+
"y1",
|
|
88
|
+
"y2",
|
|
89
|
+
"stroke",
|
|
90
|
+
"stroke-width",
|
|
91
|
+
"stroke-dasharray"
|
|
92
|
+
], dt = [
|
|
93
|
+
"cx",
|
|
94
|
+
"cy",
|
|
95
|
+
"stroke",
|
|
96
|
+
"stroke-width",
|
|
97
|
+
"r",
|
|
98
|
+
"fill"
|
|
99
|
+
], ft = [
|
|
100
|
+
"x",
|
|
101
|
+
"y",
|
|
102
|
+
"text-anchor",
|
|
103
|
+
"font-size",
|
|
104
|
+
"fill"
|
|
105
|
+
], pt = {
|
|
106
|
+
key: 0,
|
|
107
|
+
style: {
|
|
108
|
+
position: "absolute",
|
|
109
|
+
top: "100%",
|
|
110
|
+
left: "0",
|
|
111
|
+
width: "100%"
|
|
112
|
+
},
|
|
113
|
+
"data-dom-to-png-ignore": "",
|
|
114
|
+
"aria-hidden": "true"
|
|
115
|
+
}, mt = {
|
|
116
|
+
key: 5,
|
|
117
|
+
class: "vue-data-ui-watermark"
|
|
118
|
+
}, ht = ["onClick"], gt = ["innerHTML"], _t = /*#__PURE__*/ Ee({
|
|
119
|
+
__name: "vue-ui-ridgeline",
|
|
120
|
+
props: {
|
|
121
|
+
config: {
|
|
122
|
+
type: Object,
|
|
123
|
+
default() {
|
|
124
|
+
return {};
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
dataset: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default() {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
emits: [
|
|
135
|
+
"selectLegend",
|
|
136
|
+
"selectDatapoint",
|
|
137
|
+
"selectX",
|
|
138
|
+
"copyAlt"
|
|
139
|
+
],
|
|
140
|
+
setup(e, { expose: Ee, emit: qe }) {
|
|
141
|
+
let _t = _(() => import("./vue-ui-xy-CJcdttNL.js").then((e) => e.n)), vt = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), yt = _(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), bt = _(() => import("./DataTable-BbKgJ5UI.js")), xt = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), St = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ct = _(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), wt = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_ridgeline: Tt } = he(), { isThemeValid: Et, warnInvalidTheme: Dt } = be(), k = e, Ot = f({
|
|
142
|
+
get() {
|
|
143
|
+
return Array.isArray(B.value) && B.value.length > 0;
|
|
144
|
+
},
|
|
145
|
+
set(e) {
|
|
146
|
+
return e;
|
|
147
|
+
}
|
|
148
|
+
}), kt = qe, A = S(null), At = S(null), jt = S(null), j = We(null), M = We(null), Mt = S(null), Nt = S(null), Pt = S(0), Ft = S(0), It = S(0), N = S(se()), Lt = S(0), Rt = S(0), zt = S(512), P = S(null), F = S(null), Bt = S(null), Vt = S(0), Ht = S(null), I = S(null), Ut = S(null), L = S(null), Wt = S(!1);
|
|
149
|
+
function Gt() {
|
|
150
|
+
let e = ye({
|
|
151
|
+
userConfig: k.config,
|
|
152
|
+
defaultConfig: Tt
|
|
153
|
+
}), t = e.theme;
|
|
154
|
+
if (!t) return e;
|
|
155
|
+
if (!Et.value(e)) return Dt(e), e;
|
|
156
|
+
let n = ye({
|
|
157
|
+
userConfig: Fe[t] || k.config,
|
|
158
|
+
defaultConfig: e
|
|
159
|
+
}), r = ye({
|
|
160
|
+
userConfig: k.config,
|
|
161
|
+
defaultConfig: n
|
|
162
|
+
});
|
|
163
|
+
return {
|
|
164
|
+
...r,
|
|
165
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || c
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
let R = S(Gt());
|
|
169
|
+
fe({
|
|
170
|
+
config: () => R.value,
|
|
171
|
+
dataset: () => k.dataset,
|
|
172
|
+
component: "VueUiRidgeline",
|
|
173
|
+
rules: [
|
|
174
|
+
pe.emptyArray,
|
|
175
|
+
{
|
|
176
|
+
test: (e) => e.length > 31,
|
|
177
|
+
message: [
|
|
178
|
+
"👀 The number of series > 31. Consider:",
|
|
179
|
+
"",
|
|
180
|
+
"▶️ Using filters to let users choose a maximum number of series to display",
|
|
181
|
+
"",
|
|
182
|
+
"▶️ Use several instances of the component to show related series"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
test: (e) => e.some((e) => e.datapoints.some((e) => e.values.length > 200)),
|
|
187
|
+
message: [
|
|
188
|
+
"👀 Some series contain > 200 data points, which can affect performance. Consider if you really need this level of detail.",
|
|
189
|
+
"",
|
|
190
|
+
"▶️ Use larger time scales, or aggregated values.",
|
|
191
|
+
"",
|
|
192
|
+
"▶️ Filter the time range by adding date inputs in your UI."
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
test: (e) => e.length < 6 && e.length > 0,
|
|
197
|
+
message: [
|
|
198
|
+
"👀 The number of series < 6. Consider:",
|
|
199
|
+
"",
|
|
200
|
+
"▶️ Using VueUiXy instead"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
});
|
|
205
|
+
let z = f(() => R.value.userOptions.useCursorPointer), Kt = f(() => a({
|
|
206
|
+
defaultConfig: {
|
|
207
|
+
userOptions: { show: !1 },
|
|
208
|
+
table: { show: !1 },
|
|
209
|
+
style: { chart: {
|
|
210
|
+
backgroundColor: "#99999930",
|
|
211
|
+
areas: {
|
|
212
|
+
maxPoint: { show: !1 },
|
|
213
|
+
opacity: .9,
|
|
214
|
+
stroke: { useSerieColor: !0 }
|
|
215
|
+
},
|
|
216
|
+
legend: { backgroundColor: "transparent" },
|
|
217
|
+
padding: {
|
|
218
|
+
right: -24,
|
|
219
|
+
left: 0
|
|
220
|
+
},
|
|
221
|
+
xAxis: { labels: { values: [] } },
|
|
222
|
+
yAxis: { labels: { fontSize: 0 } },
|
|
223
|
+
zeroLine: { show: !1 }
|
|
224
|
+
} }
|
|
225
|
+
},
|
|
226
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
227
|
+
})), { loading: qt, FINAL_DATASET: B, manualLoading: Jt } = _e({
|
|
228
|
+
...Ge(k),
|
|
229
|
+
FINAL_CONFIG: R,
|
|
230
|
+
prepareConfig: Gt,
|
|
231
|
+
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
232
|
+
{
|
|
233
|
+
name: "_",
|
|
234
|
+
datapoints: [{
|
|
235
|
+
name: "__",
|
|
236
|
+
color: "#999999",
|
|
237
|
+
values: [
|
|
238
|
+
28.639,
|
|
239
|
+
32.04,
|
|
240
|
+
41.134,
|
|
241
|
+
44.525,
|
|
242
|
+
21.151,
|
|
243
|
+
2.436,
|
|
244
|
+
.218,
|
|
245
|
+
.024,
|
|
246
|
+
.002,
|
|
247
|
+
0,
|
|
248
|
+
0,
|
|
249
|
+
0
|
|
250
|
+
]
|
|
251
|
+
}, {
|
|
252
|
+
name: "_",
|
|
253
|
+
color: "#CACACA",
|
|
254
|
+
values: [
|
|
255
|
+
13.253,
|
|
256
|
+
15.621,
|
|
257
|
+
23.36,
|
|
258
|
+
33.698,
|
|
259
|
+
29.935,
|
|
260
|
+
10.874,
|
|
261
|
+
2.364,
|
|
262
|
+
.561,
|
|
263
|
+
.107,
|
|
264
|
+
.02,
|
|
265
|
+
.006,
|
|
266
|
+
.004
|
|
267
|
+
]
|
|
268
|
+
}]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "_",
|
|
272
|
+
datapoints: [{
|
|
273
|
+
name: "_",
|
|
274
|
+
color: "#999999",
|
|
275
|
+
values: [
|
|
276
|
+
10.851,
|
|
277
|
+
13.195,
|
|
278
|
+
21.617,
|
|
279
|
+
36.556,
|
|
280
|
+
42.292,
|
|
281
|
+
21.006,
|
|
282
|
+
3.398,
|
|
283
|
+
.223,
|
|
284
|
+
.013,
|
|
285
|
+
.001,
|
|
286
|
+
0,
|
|
287
|
+
0
|
|
288
|
+
]
|
|
289
|
+
}, {
|
|
290
|
+
name: "_",
|
|
291
|
+
color: "#CACACA",
|
|
292
|
+
values: [
|
|
293
|
+
3.171,
|
|
294
|
+
4.115,
|
|
295
|
+
8.108,
|
|
296
|
+
18.248,
|
|
297
|
+
31.641,
|
|
298
|
+
29.063,
|
|
299
|
+
12.031,
|
|
300
|
+
2.742,
|
|
301
|
+
.504,
|
|
302
|
+
.102,
|
|
303
|
+
.032,
|
|
304
|
+
.021
|
|
305
|
+
]
|
|
306
|
+
}]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "_",
|
|
310
|
+
datapoints: [{
|
|
311
|
+
name: "_",
|
|
312
|
+
color: "#999999",
|
|
313
|
+
values: [
|
|
314
|
+
1.731,
|
|
315
|
+
2.334,
|
|
316
|
+
5.125,
|
|
317
|
+
13.626,
|
|
318
|
+
29.911,
|
|
319
|
+
38.524,
|
|
320
|
+
24.168,
|
|
321
|
+
7.646,
|
|
322
|
+
1.575,
|
|
323
|
+
.317,
|
|
324
|
+
.097,
|
|
325
|
+
.063
|
|
326
|
+
]
|
|
327
|
+
}, {
|
|
328
|
+
name: "_",
|
|
329
|
+
color: "#CACACA",
|
|
330
|
+
values: [
|
|
331
|
+
.25,
|
|
332
|
+
.367,
|
|
333
|
+
1.026,
|
|
334
|
+
3.944,
|
|
335
|
+
13.635,
|
|
336
|
+
28.891,
|
|
337
|
+
30.149,
|
|
338
|
+
15.419,
|
|
339
|
+
4.714,
|
|
340
|
+
1.246,
|
|
341
|
+
.442,
|
|
342
|
+
.299
|
|
343
|
+
]
|
|
344
|
+
}]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "_",
|
|
348
|
+
datapoints: [{
|
|
349
|
+
name: "_",
|
|
350
|
+
color: "#999999",
|
|
351
|
+
values: [
|
|
352
|
+
.034,
|
|
353
|
+
.054,
|
|
354
|
+
.194,
|
|
355
|
+
1.065,
|
|
356
|
+
5.747,
|
|
357
|
+
20.735,
|
|
358
|
+
38.306,
|
|
359
|
+
32.899,
|
|
360
|
+
15.318,
|
|
361
|
+
5.566,
|
|
362
|
+
2.422,
|
|
363
|
+
1.76
|
|
364
|
+
]
|
|
365
|
+
}, {
|
|
366
|
+
name: "_",
|
|
367
|
+
color: "#CACACA",
|
|
368
|
+
values: [
|
|
369
|
+
.001,
|
|
370
|
+
.002,
|
|
371
|
+
.009,
|
|
372
|
+
.095,
|
|
373
|
+
1.124,
|
|
374
|
+
8.342,
|
|
375
|
+
27.115,
|
|
376
|
+
35.08,
|
|
377
|
+
21.449,
|
|
378
|
+
9.093,
|
|
379
|
+
4.243,
|
|
380
|
+
3.143
|
|
381
|
+
]
|
|
382
|
+
}]
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "_",
|
|
386
|
+
datapoints: [{
|
|
387
|
+
name: "_",
|
|
388
|
+
color: "#999999",
|
|
389
|
+
values: [
|
|
390
|
+
0,
|
|
391
|
+
.001,
|
|
392
|
+
.004,
|
|
393
|
+
.051,
|
|
394
|
+
.567,
|
|
395
|
+
3.322,
|
|
396
|
+
14.215,
|
|
397
|
+
44.783,
|
|
398
|
+
40.351,
|
|
399
|
+
20.377,
|
|
400
|
+
9.866,
|
|
401
|
+
7.378
|
|
402
|
+
]
|
|
403
|
+
}, {
|
|
404
|
+
name: "_",
|
|
405
|
+
color: "#CACACA",
|
|
406
|
+
values: [
|
|
407
|
+
0,
|
|
408
|
+
0,
|
|
409
|
+
0,
|
|
410
|
+
0,
|
|
411
|
+
.001,
|
|
412
|
+
.11,
|
|
413
|
+
4.136,
|
|
414
|
+
27.498,
|
|
415
|
+
43.24,
|
|
416
|
+
29.807,
|
|
417
|
+
17.345,
|
|
418
|
+
13.678
|
|
419
|
+
]
|
|
420
|
+
}]
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: "_",
|
|
424
|
+
datapoints: [{
|
|
425
|
+
name: "_",
|
|
426
|
+
color: "#999999",
|
|
427
|
+
values: [
|
|
428
|
+
0,
|
|
429
|
+
0,
|
|
430
|
+
0,
|
|
431
|
+
0,
|
|
432
|
+
.025,
|
|
433
|
+
.598,
|
|
434
|
+
3.886,
|
|
435
|
+
10.645,
|
|
436
|
+
54.479,
|
|
437
|
+
45.953,
|
|
438
|
+
30.814,
|
|
439
|
+
24.55
|
|
440
|
+
]
|
|
441
|
+
}, {
|
|
442
|
+
name: "_",
|
|
443
|
+
color: "#CACACA",
|
|
444
|
+
values: [
|
|
445
|
+
0,
|
|
446
|
+
0,
|
|
447
|
+
0,
|
|
448
|
+
0,
|
|
449
|
+
0,
|
|
450
|
+
0,
|
|
451
|
+
.007,
|
|
452
|
+
1.655,
|
|
453
|
+
26.63,
|
|
454
|
+
52.017,
|
|
455
|
+
45.192,
|
|
456
|
+
39.651
|
|
457
|
+
]
|
|
458
|
+
}]
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
skeletonConfig: a({
|
|
462
|
+
defaultConfig: R.value,
|
|
463
|
+
userConfig: Kt.value
|
|
464
|
+
})
|
|
465
|
+
}), V = S(Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight)), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = Me({ config: R.value }), { svgRef: H } = Ne({ config: R.value.style.chart.title }), Qt = f(() => R.value.debug);
|
|
466
|
+
function $t() {
|
|
467
|
+
let e = B.value || [];
|
|
468
|
+
if (!Array.isArray(e) || e.length === 0) {
|
|
469
|
+
ue({
|
|
470
|
+
componentName: "VueUiRidgeline",
|
|
471
|
+
type: "dataset",
|
|
472
|
+
debug: Qt.value
|
|
473
|
+
}), Jt.value = !0;
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
if (e.forEach((e, t) => {
|
|
477
|
+
oe({
|
|
478
|
+
datasetObject: e,
|
|
479
|
+
requiredAttributes: ["name", "datapoints"]
|
|
480
|
+
}).forEach((e) => {
|
|
481
|
+
Ot.value = !1, ue({
|
|
482
|
+
componentName: "VueUiRidgeline",
|
|
483
|
+
type: "datasetSerieAttribute",
|
|
484
|
+
property: e,
|
|
485
|
+
index: t,
|
|
486
|
+
debug: Qt.value
|
|
487
|
+
});
|
|
488
|
+
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
489
|
+
oe({
|
|
490
|
+
datasetObject: e,
|
|
491
|
+
requiredAttributes: ["name", "values"]
|
|
492
|
+
}).forEach((e) => {
|
|
493
|
+
Ot.value = !1, ue({
|
|
494
|
+
componentName: "VueUiRidgeline",
|
|
495
|
+
type: "datasetSerieAttribute",
|
|
496
|
+
property: `datapoint.${e}`,
|
|
497
|
+
index: `${t}-${n}`,
|
|
498
|
+
debug: Qt.value
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
});
|
|
502
|
+
}), Rt.value = e.length, V.value = Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight), ae(k.dataset) || (Jt.value = R.value.loading), R.value.responsive) {
|
|
503
|
+
let t = De(() => {
|
|
504
|
+
let { width: t, height: n } = Oe({
|
|
505
|
+
chart: A.value,
|
|
506
|
+
title: R.value.style.chart.title.text ? At.value : null,
|
|
507
|
+
legend: R.value.style.chart.legend.show ? jt.value : null,
|
|
508
|
+
source: Mt.value,
|
|
509
|
+
noTitle: Nt.value,
|
|
510
|
+
padding: R.value.style.chart.padding
|
|
511
|
+
});
|
|
512
|
+
requestAnimationFrame(() => {
|
|
513
|
+
zt.value = t, V.value = e.length ? n / e.length : 0, Vt.value = n - 12;
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(t), M.value = A.value?.parentNode || null, M.value && j.value.observe(M.value);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
He(() => {
|
|
520
|
+
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
|
|
521
|
+
});
|
|
522
|
+
let { isPrinting: en, isImaging: tn, generatePdf: nn, generateImage: rn } = ge({
|
|
523
|
+
elementId: `vue-ui-ridgeline_${N.value}`,
|
|
524
|
+
fileName: R.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
525
|
+
options: R.value.userOptions.print
|
|
526
|
+
}), an = f(() => R.value.userOptions.show && !R.value.style.chart.title.text), on = f(() => de(R.value.customPalette)), U = S({ showTable: R.value.table.show });
|
|
527
|
+
D(() => B.value, async (e) => {
|
|
528
|
+
Array.isArray(e) && e.length && (Yt.value = !R.value.userOptions.showOnChartHover, await Be(), $t(), Pt.value += 1, It.value += 1, U.value.showTable = R.value.table.show);
|
|
529
|
+
}, {
|
|
530
|
+
deep: !0,
|
|
531
|
+
immediate: !0
|
|
532
|
+
}), D(() => k.dataset, (e) => {
|
|
533
|
+
Array.isArray(e) && e.length > 0 && (Jt.value = !1);
|
|
534
|
+
}, { deep: !0 }), D(() => qt.value, async (e) => {
|
|
535
|
+
e || (await Be(), $t());
|
|
536
|
+
}, { immediate: !0 }), D(() => k.config, () => {
|
|
537
|
+
R.value = Gt(B.value || null), Yt.value = !R.value.userOptions.showOnChartHover, V.value = Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight), U.value.showTable = R.value.table.show, Pt.value += 1, It.value += 1;
|
|
538
|
+
}, { deep: !0 });
|
|
539
|
+
let sn = f(() => R.value.style.chart.areas.height / R.value.style.chart.areas.rowHeight);
|
|
540
|
+
function cn() {
|
|
541
|
+
X.value.length ? X.value = [] : Z.value.forEach((e) => {
|
|
542
|
+
X.value.push(e.id);
|
|
543
|
+
}), kt("selectLegend", Y.value);
|
|
544
|
+
}
|
|
545
|
+
function ln(e) {
|
|
546
|
+
X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e), kt("selectLegend", Y.value);
|
|
547
|
+
}
|
|
548
|
+
function un(e) {
|
|
549
|
+
return Z.value.length ? Z.value.find((t) => t.name === e) || (Qt.value && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (Qt.value && console.warn("VueUiRidgeline - There are no series to show."), null);
|
|
550
|
+
}
|
|
551
|
+
function dn(e) {
|
|
552
|
+
let t = un(e);
|
|
553
|
+
t !== null && X.value.includes(t.id) && ln(t.id);
|
|
554
|
+
}
|
|
555
|
+
function fn(e) {
|
|
556
|
+
let t = un(e);
|
|
557
|
+
t !== null && (X.value.includes(t.id) || ln(t.id));
|
|
558
|
+
}
|
|
559
|
+
let W = f(() => Ot.value ? (B.value || []).map((e) => ({
|
|
560
|
+
...e,
|
|
561
|
+
labelLen: En(e.name, R.value.style.chart.yAxis.labels.fontSize),
|
|
562
|
+
uid: se(),
|
|
563
|
+
datapoints: e.datapoints.map((e, t) => {
|
|
564
|
+
let n = e.color ? ne(e.color) : on.value[t] || c[t] || c[t % c.length], r = i(e.name);
|
|
565
|
+
return {
|
|
566
|
+
...e,
|
|
567
|
+
color: n,
|
|
568
|
+
id: r
|
|
569
|
+
};
|
|
570
|
+
})
|
|
571
|
+
})) : []), pn = f(() => R.value.style.chart.padding.top + V.value * (B.value || []).length + V.value * sn.value + R.value.style.chart.padding.bottom), G = f(() => {
|
|
572
|
+
let e = R.value.style.chart.padding;
|
|
573
|
+
return {
|
|
574
|
+
width: zt.value,
|
|
575
|
+
height: pn.value,
|
|
576
|
+
padding: e
|
|
577
|
+
};
|
|
578
|
+
}), mn = f(() => G.value.width), hn = f(() => G.value.height), gn = S(0), _n = De((e) => {
|
|
579
|
+
gn.value = e;
|
|
580
|
+
}, 100);
|
|
581
|
+
Ke((e) => {
|
|
582
|
+
let t = Ht.value;
|
|
583
|
+
if (!t) return;
|
|
584
|
+
let n = new ResizeObserver((e) => {
|
|
585
|
+
_n(e[0].contentRect.height);
|
|
586
|
+
});
|
|
587
|
+
n.observe(t), e(() => n.disconnect());
|
|
588
|
+
}), He(() => {
|
|
589
|
+
gn.value = 0;
|
|
590
|
+
});
|
|
591
|
+
let K = f(() => ({
|
|
592
|
+
fullHeight: G.value.height + gn.value,
|
|
593
|
+
top: G.value.padding.top,
|
|
594
|
+
left: G.value.padding.left,
|
|
595
|
+
right: G.value.width - G.value.padding.right,
|
|
596
|
+
bottom: G.value.height - R.value.style.chart.padding.bottom,
|
|
597
|
+
width: G.value.width - (G.value.padding.left + G.value.padding.right)
|
|
598
|
+
})), vn = f(() => Math.max(...W.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), q = S([]), yn = 0;
|
|
599
|
+
Ke(() => {
|
|
600
|
+
let e = ++yn;
|
|
601
|
+
(async () => {
|
|
602
|
+
let t = await me({
|
|
603
|
+
values: R.value.style.chart.xAxis.labels.values,
|
|
604
|
+
maxDatapoints: vn.value,
|
|
605
|
+
formatter: R.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
606
|
+
start: 0,
|
|
607
|
+
end: R.value.style.chart.xAxis.labels.values.length
|
|
608
|
+
});
|
|
609
|
+
e === yn && (q.value = t);
|
|
610
|
+
})();
|
|
611
|
+
});
|
|
612
|
+
let J = f(() => {
|
|
613
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = G.value.padding.left + e + 16 + R.value.style.chart.yAxis.labels.offsetX, n = (K.value.width - t) / vn.value, r = [];
|
|
614
|
+
for (let e = 0; e < vn.value; e += 1) r.push({
|
|
615
|
+
selectorX: t + n * e,
|
|
616
|
+
x: t + n * e - n / 2,
|
|
617
|
+
y: K.value.top,
|
|
618
|
+
label: R.value.style.chart.xAxis.labels.values[e] ? q.value[e]?.text ?? "" : "",
|
|
619
|
+
index: e,
|
|
620
|
+
width: n,
|
|
621
|
+
height: pn.value
|
|
622
|
+
});
|
|
623
|
+
return r;
|
|
624
|
+
});
|
|
625
|
+
function bn(e) {
|
|
626
|
+
return W.value.map((t) => t.datapoints.map((t) => ({
|
|
627
|
+
dp: t,
|
|
628
|
+
selected: t.values[e.index]
|
|
629
|
+
})));
|
|
630
|
+
}
|
|
631
|
+
function xn(e) {
|
|
632
|
+
P.value = e;
|
|
633
|
+
let t = bn(e);
|
|
634
|
+
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
635
|
+
datapoint: t,
|
|
636
|
+
seriesIndex: e.index
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
function Sn(e) {
|
|
640
|
+
P.value = null;
|
|
641
|
+
let t = bn(e);
|
|
642
|
+
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
643
|
+
datapoint: t,
|
|
644
|
+
seriesIndex: e.index
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
function Cn(e) {
|
|
648
|
+
let t = bn(e);
|
|
649
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
650
|
+
datapoint: t,
|
|
651
|
+
seriesIndex: e.index
|
|
652
|
+
}), kt("selectX", t);
|
|
653
|
+
}
|
|
654
|
+
function wn(e, t) {
|
|
655
|
+
return e.length * t / 2 + t;
|
|
656
|
+
}
|
|
657
|
+
function Tn(e, t, n) {
|
|
658
|
+
return e + wn(t, n) > K.value.right;
|
|
659
|
+
}
|
|
660
|
+
function En(e, t, n = "sans-serif") {
|
|
661
|
+
let r = document.createElement("canvas").getContext("2d");
|
|
662
|
+
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
663
|
+
}
|
|
664
|
+
let Y = f(() => {
|
|
665
|
+
V.value;
|
|
666
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = Math.max(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = G.value.padding.left + e + 16 + R.value.style.chart.yAxis.labels.offsetX, i = (K.value.width - r) / vn.value, a = Math.abs(Math.min(n, 0)), o = t + a;
|
|
667
|
+
function c(e) {
|
|
668
|
+
return isNaN(e / o) ? 0 : e / o;
|
|
669
|
+
}
|
|
670
|
+
return W.value.map((e, t) => {
|
|
671
|
+
let n = K.value.top + V.value * t, o = K.value.top + n + V.value * sn.value * (1 - c(a));
|
|
672
|
+
return {
|
|
673
|
+
...e,
|
|
674
|
+
label: {
|
|
675
|
+
x: r - R.value.style.chart.yAxis.labels.fontSize,
|
|
676
|
+
y: o
|
|
677
|
+
},
|
|
678
|
+
datapoints: e.datapoints.map((e) => {
|
|
679
|
+
let t = e.values.map((t, s) => {
|
|
680
|
+
let ee = isNaN(t) || [
|
|
681
|
+
void 0,
|
|
682
|
+
null,
|
|
683
|
+
"NaN",
|
|
684
|
+
NaN,
|
|
685
|
+
Infinity,
|
|
686
|
+
-Infinity
|
|
687
|
+
].includes(t) ? 0 : t || 0;
|
|
688
|
+
return {
|
|
689
|
+
x: r + i * s,
|
|
690
|
+
y: K.value.top + n + V.value * sn.value * (1 - c(ee + a)),
|
|
691
|
+
value: t,
|
|
692
|
+
isMaxPoint: t === Math.max(...e.values),
|
|
693
|
+
zero: o
|
|
694
|
+
};
|
|
695
|
+
}), te = `${s(t, o, !1, !1)}`, ne = `M ${r},${o} ${re(t)} ${t.at(-1).x},${o}`, l = `M ${r},${o} ${t.at(-1).x},${o}`, u = `M ${ee(t)}`, ae = `M ${re(t)}`, oe = ie(R.value.style.chart.areas.smooth ? u : ae);
|
|
696
|
+
return {
|
|
697
|
+
...e,
|
|
698
|
+
uid: se(),
|
|
699
|
+
plots: t,
|
|
700
|
+
smoothPath: te,
|
|
701
|
+
straightPath: ne,
|
|
702
|
+
zeroPath: l,
|
|
703
|
+
pathLength: oe,
|
|
704
|
+
smoothPathRidge: u,
|
|
705
|
+
straightPathRidge: ae
|
|
706
|
+
};
|
|
707
|
+
}).filter((e) => !X.value.includes(e.id))
|
|
708
|
+
};
|
|
709
|
+
});
|
|
710
|
+
}), X = S([]);
|
|
711
|
+
function Dn(e) {
|
|
712
|
+
let t = /* @__PURE__ */ new Map();
|
|
713
|
+
return e.forEach((e) => {
|
|
714
|
+
e.datapoints.forEach((e, n) => {
|
|
715
|
+
let r = i(e.name);
|
|
716
|
+
t.has(r) || t.set(r, {
|
|
717
|
+
id: r,
|
|
718
|
+
name: e.name,
|
|
719
|
+
color: e.color,
|
|
720
|
+
shape: "circle",
|
|
721
|
+
segregate: () => ln(r),
|
|
722
|
+
isSegregated: X.value.includes(r),
|
|
723
|
+
opacity: X.value.includes(r) ? .5 : 1
|
|
724
|
+
});
|
|
725
|
+
});
|
|
726
|
+
}), Array.from(t.values());
|
|
727
|
+
}
|
|
728
|
+
let Z = f(() => Dn(W.value)), On = f(() => ({
|
|
729
|
+
cy: "donut-div-legend",
|
|
730
|
+
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
731
|
+
color: R.value.style.chart.legend.color,
|
|
732
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
733
|
+
paddingBottom: 12,
|
|
734
|
+
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
735
|
+
})), Q = S(!1);
|
|
736
|
+
function kn(e) {
|
|
737
|
+
Q.value = e, Lt.value += 1;
|
|
738
|
+
}
|
|
739
|
+
let An = S({}), jn = S([]);
|
|
740
|
+
function Mn(e) {
|
|
741
|
+
kt("selectDatapoint", e), R.value.style.chart.dialog.show && (jn.value = e.datapoints.map((e) => ({
|
|
742
|
+
name: e.name,
|
|
743
|
+
color: e.color,
|
|
744
|
+
type: "line",
|
|
745
|
+
useArea: !0,
|
|
746
|
+
smooth: R.value.style.chart.areas.smooth,
|
|
747
|
+
series: e.values
|
|
748
|
+
})), F.value = e, An.value = te({
|
|
749
|
+
...R.value.style.chart.dialog.xyChart,
|
|
750
|
+
responsive: !0,
|
|
751
|
+
chart: {
|
|
752
|
+
...R.value.style.chart.dialog.xyChart.chart,
|
|
753
|
+
grid: {
|
|
754
|
+
...R.value.style.chart.dialog.xyChart.chart.grid,
|
|
755
|
+
labels: {
|
|
756
|
+
...R.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
757
|
+
xAxisLabels: {
|
|
758
|
+
...R.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
759
|
+
values: R.value.style.chart.xAxis.labels.values,
|
|
760
|
+
autoRotate: {
|
|
761
|
+
enable: !0,
|
|
762
|
+
angle: R.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
763
|
+
},
|
|
764
|
+
datetimeFormatter: R.value.style.chart.xAxis.labels.datetimeFormatter
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
tooltip: {
|
|
769
|
+
...R.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
770
|
+
showTimeLabel: R.value.style.chart.xAxis.labels.values.length > 0
|
|
771
|
+
},
|
|
772
|
+
userOptions: {
|
|
773
|
+
...R.value.style.chart.dialog.xyChart.chart.userOptions,
|
|
774
|
+
buttons: {
|
|
775
|
+
...R.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
|
|
776
|
+
altCopy: R.value.userOptions.buttons.altCopy
|
|
777
|
+
},
|
|
778
|
+
callbacks: {
|
|
779
|
+
...R.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
|
|
780
|
+
altCopy: () => {}
|
|
781
|
+
},
|
|
782
|
+
useCursorPointer: R.value.userOptions.useCursorPointer
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}), Bt.value && Bt.value.open());
|
|
786
|
+
}
|
|
787
|
+
let Nn = S(null);
|
|
788
|
+
function Pn(e) {
|
|
789
|
+
Nn.value = e;
|
|
790
|
+
}
|
|
791
|
+
function Fn() {
|
|
792
|
+
Nn.value = null;
|
|
793
|
+
}
|
|
794
|
+
let In = S(!1);
|
|
795
|
+
function Ln() {
|
|
796
|
+
In.value = !In.value;
|
|
797
|
+
}
|
|
798
|
+
function Rn() {
|
|
799
|
+
U.value.showTable = !U.value.showTable;
|
|
800
|
+
}
|
|
801
|
+
let zn = f(() => ({ body: Y.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
802
|
+
...t,
|
|
803
|
+
rowName: `${e.name}: ${t.name}`
|
|
804
|
+
}))).map((e) => [{
|
|
805
|
+
name: e.rowName,
|
|
806
|
+
color: e.color
|
|
807
|
+
}, ...e.values]) })), $ = f(() => {
|
|
808
|
+
let e = [R.value.table.columnNames.series, ...q.value.map((e) => e.text)], t = {
|
|
809
|
+
th: {
|
|
810
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
811
|
+
color: R.value.table.th.color,
|
|
812
|
+
outline: R.value.table.th.outline
|
|
813
|
+
},
|
|
814
|
+
td: {
|
|
815
|
+
backgroundColor: R.value.table.td.backgroundColor,
|
|
816
|
+
color: R.value.table.td.color,
|
|
817
|
+
outline: R.value.table.td.outline
|
|
818
|
+
},
|
|
819
|
+
breakpoint: R.value.table.responsiveBreakpoint
|
|
820
|
+
};
|
|
821
|
+
return {
|
|
822
|
+
colNames: [R.value.table.columnNames.series, ...q.value.map((e) => e.text)],
|
|
823
|
+
head: e,
|
|
824
|
+
body: zn.value.body,
|
|
825
|
+
config: t
|
|
826
|
+
};
|
|
827
|
+
});
|
|
828
|
+
function Bn(e = null) {
|
|
829
|
+
Be(() => {
|
|
830
|
+
let r = [[R.value.table.columnNames.series, ...q.map((e) => [e.text])], ...zn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = [[R.value.style.chart.title.text], [R.value.style.chart.title.subtitle.text]].concat(r), a = n(i);
|
|
831
|
+
e ? e(a) : t({
|
|
832
|
+
csvContent: a,
|
|
833
|
+
title: R.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
834
|
+
});
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
function Vn() {
|
|
838
|
+
return Y.value;
|
|
839
|
+
}
|
|
840
|
+
async function Hn({ scale: e = 2 } = {}) {
|
|
841
|
+
if (!A.value) return;
|
|
842
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
843
|
+
domElement: A.value,
|
|
844
|
+
base64: !0,
|
|
845
|
+
img: !0,
|
|
846
|
+
scale: e
|
|
847
|
+
});
|
|
848
|
+
return {
|
|
849
|
+
imageUri: i,
|
|
850
|
+
base64: a,
|
|
851
|
+
title: R.value.style.chart.title.text,
|
|
852
|
+
width: t,
|
|
853
|
+
height: n,
|
|
854
|
+
aspectRatio: r
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
let Un = f(() => ({
|
|
858
|
+
min: 0,
|
|
859
|
+
max: vn.value
|
|
860
|
+
}));
|
|
861
|
+
Se({
|
|
862
|
+
timeLabelsEls: Ht,
|
|
863
|
+
timeLabels: q,
|
|
864
|
+
slicer: Un,
|
|
865
|
+
configRef: R,
|
|
866
|
+
rotationPath: [
|
|
867
|
+
"style",
|
|
868
|
+
"chart",
|
|
869
|
+
"xAxis",
|
|
870
|
+
"labels",
|
|
871
|
+
"rotation"
|
|
872
|
+
],
|
|
873
|
+
autoRotatePath: [
|
|
874
|
+
"style",
|
|
875
|
+
"chart",
|
|
876
|
+
"xAxis",
|
|
877
|
+
"labels",
|
|
878
|
+
"autoRotate",
|
|
879
|
+
"enable"
|
|
880
|
+
],
|
|
881
|
+
isAutoSize: !1,
|
|
882
|
+
width: mn,
|
|
883
|
+
height: hn,
|
|
884
|
+
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
885
|
+
angle: R.value.style.chart.xAxis.labels.autoRotate.angle
|
|
886
|
+
});
|
|
887
|
+
let Wn = f(() => {
|
|
888
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = U.value.showTable;
|
|
889
|
+
return {
|
|
890
|
+
component: e ? wt : yt,
|
|
891
|
+
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
892
|
+
props: e ? {
|
|
893
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
894
|
+
color: R.value.table.th.color,
|
|
895
|
+
headerColor: R.value.table.th.color,
|
|
896
|
+
headerBg: R.value.table.th.backgroundColor,
|
|
897
|
+
isFullscreen: Q.value,
|
|
898
|
+
fullscreenParent: A.value,
|
|
899
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
900
|
+
isCursorPointer: z.value
|
|
901
|
+
} : {
|
|
902
|
+
hideDetails: !0,
|
|
903
|
+
config: {
|
|
904
|
+
open: t,
|
|
905
|
+
maxHeight: 1e4,
|
|
906
|
+
body: {
|
|
907
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
908
|
+
color: R.value.style.chart.color
|
|
909
|
+
},
|
|
910
|
+
head: {
|
|
911
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
912
|
+
color: R.value.style.chart.color
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
});
|
|
918
|
+
D(() => U.value.showTable, (e) => {
|
|
919
|
+
R.value.table.show || (e && R.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
920
|
+
});
|
|
921
|
+
function Gn() {
|
|
922
|
+
U.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
923
|
+
}
|
|
924
|
+
let Kn = f(() => R.value.style.chart.backgroundColor), qn = f(() => ({
|
|
925
|
+
...R.value.style.chart.legend,
|
|
926
|
+
position: "bottom"
|
|
927
|
+
})), Jn = f(() => R.value.style.chart.title), { isCallbackImaging: Yn, isCallbackSvg: Xn, generateSvg: Zn, onGenerateImage: Qn } = xe({
|
|
928
|
+
svg: H,
|
|
929
|
+
title: Jn,
|
|
930
|
+
legend: qn,
|
|
931
|
+
legendItems: Z,
|
|
932
|
+
backgroundColor: Kn,
|
|
933
|
+
getSvgCallback: () => R.value.userOptions.callbacks.svg,
|
|
934
|
+
generateImage: rn
|
|
935
|
+
});
|
|
936
|
+
function $n(e) {
|
|
937
|
+
er("xy-zoom", e.dataset, e.config);
|
|
938
|
+
}
|
|
939
|
+
async function er(e = "main-chart", t = null, n = null) {
|
|
940
|
+
if (kt("copyAlt", {
|
|
941
|
+
source: e,
|
|
942
|
+
config: e === "main-chart" ? R.value : An.value,
|
|
943
|
+
dataset: e === "main-chart" ? Y.value : jn.value
|
|
944
|
+
}), !R.value.userOptions.callbacks.altCopy) {
|
|
945
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
949
|
+
source: e,
|
|
950
|
+
config: e === "main-chart" ? R.value : An.value,
|
|
951
|
+
dataset: e === "main-chart" ? Y.value : jn.value
|
|
952
|
+
}));
|
|
953
|
+
}
|
|
954
|
+
function tr() {
|
|
955
|
+
L.value = null, Wt.value = !0;
|
|
956
|
+
}
|
|
957
|
+
function nr() {
|
|
958
|
+
or(), Wt.value = !1;
|
|
959
|
+
}
|
|
960
|
+
function rr(e) {
|
|
961
|
+
if (!H.value || In.value || document.activeElement !== H.value || !Y.value.length) return;
|
|
962
|
+
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
963
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
964
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
965
|
+
or();
|
|
966
|
+
return;
|
|
967
|
+
}
|
|
968
|
+
if (a) {
|
|
969
|
+
if (L.value !== null) {
|
|
970
|
+
let e = Y.value[L.value];
|
|
971
|
+
e && Mn(e);
|
|
972
|
+
return;
|
|
973
|
+
}
|
|
974
|
+
P.value && Cn(P.value);
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
if (t || n) {
|
|
978
|
+
let e = L.value;
|
|
979
|
+
e = e === null ? n ? 0 : Y.value.length - 1 : ir(e + (n ? 1 : -1)), L.value = e, Nn.value = e;
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
if (!J.value.length) return;
|
|
983
|
+
let s = P.value?.index ?? null;
|
|
984
|
+
s = s === null ? i ? 0 : J.value.length - 1 : ar(s + (i ? 1 : -1));
|
|
985
|
+
let ee = J.value[s];
|
|
986
|
+
ee && xn(ee);
|
|
987
|
+
}
|
|
988
|
+
function ir(e) {
|
|
989
|
+
let t = Y.value.length;
|
|
990
|
+
return t ? (e % t + t) % t : null;
|
|
991
|
+
}
|
|
992
|
+
function ar(e) {
|
|
993
|
+
let t = J.value.length;
|
|
994
|
+
return t ? (e % t + t) % t : null;
|
|
995
|
+
}
|
|
996
|
+
function or() {
|
|
997
|
+
L.value = null, Nn.value = null, P.value ? Sn(P.value) : P.value = null;
|
|
998
|
+
}
|
|
999
|
+
let sr = f(() => ({
|
|
1000
|
+
head: $.value.head,
|
|
1001
|
+
body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
1002
|
+
caption: R.value.a11y.translations.tableCaption,
|
|
1003
|
+
notice: R.value.a11y.translations.tableAvailable
|
|
1004
|
+
}));
|
|
1005
|
+
return Ee({
|
|
1006
|
+
getData: Vn,
|
|
1007
|
+
getImage: Hn,
|
|
1008
|
+
generateImage: rn,
|
|
1009
|
+
generateSvg: Zn,
|
|
1010
|
+
generatePdf: nn,
|
|
1011
|
+
generateCsv: Bn,
|
|
1012
|
+
hideSeries: fn,
|
|
1013
|
+
showSeries: dn,
|
|
1014
|
+
toggleAnnotator: Ln,
|
|
1015
|
+
toggleTable: Rn,
|
|
1016
|
+
toggleFullscreen: kn,
|
|
1017
|
+
copyAlt: er
|
|
1018
|
+
}), (e, t) => (x(), h("div", {
|
|
1019
|
+
ref_key: "ridgelineChart",
|
|
1020
|
+
ref: A,
|
|
1021
|
+
class: Ve(`vue-data-ui-component vue-ui-ridgeline ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1022
|
+
id: `vue-ui-ridgeline_${N.value}`,
|
|
1023
|
+
style: b({
|
|
1024
|
+
fontFamily: R.value.style.fontFamily,
|
|
1025
|
+
width: "100%",
|
|
1026
|
+
textAlign: "center",
|
|
1027
|
+
background: R.value.style.chart.backgroundColor,
|
|
1028
|
+
height: R.value.responsive ? "100%" : void 0
|
|
1029
|
+
}),
|
|
1030
|
+
onMouseenter: t[3] ||= () => E(Xt)(!0),
|
|
1031
|
+
onMouseleave: t[4] ||= () => E(Xt)(!1)
|
|
1032
|
+
}, [
|
|
1033
|
+
g("div", {
|
|
1034
|
+
id: `chart-instructions-${N.value}`,
|
|
1035
|
+
class: "sr-only"
|
|
1036
|
+
}, [g("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1037
|
+
sr.value.body.length ? (x(), p(je, {
|
|
1038
|
+
key: 0,
|
|
1039
|
+
uid: N.value,
|
|
1040
|
+
head: sr.value.head,
|
|
1041
|
+
body: sr.value.body,
|
|
1042
|
+
caption: sr.value.caption,
|
|
1043
|
+
notice: sr.value.notice
|
|
1044
|
+
}, null, 8, [
|
|
1045
|
+
"uid",
|
|
1046
|
+
"head",
|
|
1047
|
+
"body",
|
|
1048
|
+
"caption",
|
|
1049
|
+
"notice"
|
|
1050
|
+
])) : m("", !0),
|
|
1051
|
+
R.value.userOptions.buttons.annotator && E(H) ? (x(), p(E(xt), {
|
|
1052
|
+
key: 1,
|
|
1053
|
+
color: R.value.style.chart.color,
|
|
1054
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1055
|
+
active: In.value,
|
|
1056
|
+
svgRef: E(H),
|
|
1057
|
+
isCursorPointer: z.value,
|
|
1058
|
+
onClose: Ln
|
|
1059
|
+
}, {
|
|
1060
|
+
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1061
|
+
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
1062
|
+
"annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
|
|
1063
|
+
"annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
|
|
1064
|
+
"annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
|
|
1065
|
+
"annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
|
|
1066
|
+
_: 3
|
|
1067
|
+
}, 8, [
|
|
1068
|
+
"color",
|
|
1069
|
+
"backgroundColor",
|
|
1070
|
+
"active",
|
|
1071
|
+
"svgRef",
|
|
1072
|
+
"isCursorPointer"
|
|
1073
|
+
])) : m("", !0),
|
|
1074
|
+
w(e.$slots, "userConfig", {}, void 0, !0),
|
|
1075
|
+
an.value ? (x(), h("div", {
|
|
1076
|
+
key: 2,
|
|
1077
|
+
ref_key: "noTitle",
|
|
1078
|
+
ref: Nt,
|
|
1079
|
+
class: "vue-data-ui-no-title-space",
|
|
1080
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1081
|
+
}, null, 512)) : m("", !0),
|
|
1082
|
+
R.value.style.chart.title.text ? (x(), h("div", {
|
|
1083
|
+
key: 3,
|
|
1084
|
+
ref_key: "chartTitle",
|
|
1085
|
+
ref: At,
|
|
1086
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1087
|
+
}, [(x(), p(we, {
|
|
1088
|
+
key: `title_${Pt.value}`,
|
|
1089
|
+
config: {
|
|
1090
|
+
title: {
|
|
1091
|
+
cy: "ridgeline-div-title",
|
|
1092
|
+
...R.value.style.chart.title
|
|
1093
|
+
},
|
|
1094
|
+
subtitle: {
|
|
1095
|
+
cy: "ridgeline-div-subtitle",
|
|
1096
|
+
...R.value.style.chart.title.subtitle
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1100
|
+
R.value.userOptions.show && Ot.value && (E(Zt) || E(Yt)) ? (x(), p(E(St), {
|
|
1101
|
+
ref_key: "userOptionsRef",
|
|
1102
|
+
ref: Ut,
|
|
1103
|
+
key: `user_option_${Lt.value}`,
|
|
1104
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1105
|
+
color: R.value.style.chart.color,
|
|
1106
|
+
isPrinting: E(en),
|
|
1107
|
+
isImaging: E(tn),
|
|
1108
|
+
uid: N.value,
|
|
1109
|
+
hasTooltip: !1,
|
|
1110
|
+
callbacks: R.value.userOptions.callbacks,
|
|
1111
|
+
hasPdf: R.value.userOptions.buttons.pdf,
|
|
1112
|
+
hasImg: R.value.userOptions.buttons.img,
|
|
1113
|
+
hasSvg: R.value.userOptions.buttons.svg,
|
|
1114
|
+
hasXls: R.value.userOptions.buttons.csv,
|
|
1115
|
+
hasTable: R.value.userOptions.buttons.table,
|
|
1116
|
+
hasLabel: !1,
|
|
1117
|
+
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
1118
|
+
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
1119
|
+
isFullscreen: Q.value,
|
|
1120
|
+
printScale: R.value.userOptions.print.scale,
|
|
1121
|
+
chartElement: A.value,
|
|
1122
|
+
position: R.value.userOptions.position,
|
|
1123
|
+
isTooltip: !1,
|
|
1124
|
+
titles: { ...R.value.userOptions.buttonTitles },
|
|
1125
|
+
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1126
|
+
isAnnotation: In.value,
|
|
1127
|
+
tableDialog: R.value.table.useDialog,
|
|
1128
|
+
style: b({ visibility: E(Zt) ? E(Yt) ? "visible" : "hidden" : "visible" }),
|
|
1129
|
+
isCursorPointer: z.value,
|
|
1130
|
+
onToggleFullscreen: kn,
|
|
1131
|
+
onGeneratePdf: E(nn),
|
|
1132
|
+
onGenerateCsv: Bn,
|
|
1133
|
+
onGenerateImage: E(Qn),
|
|
1134
|
+
onGenerateSvg: E(Zn),
|
|
1135
|
+
onToggleTable: Rn,
|
|
1136
|
+
onToggleAnnotator: Ln,
|
|
1137
|
+
onCopyAlt: er
|
|
1138
|
+
}, Ie({ _: 2 }, [
|
|
1139
|
+
e.$slots.menuIcon ? {
|
|
1140
|
+
name: "menuIcon",
|
|
1141
|
+
fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(v({
|
|
1142
|
+
isOpen: t,
|
|
1143
|
+
color: n
|
|
1144
|
+
})), void 0, !0)]),
|
|
1145
|
+
key: "0"
|
|
1146
|
+
} : void 0,
|
|
1147
|
+
e.$slots.optionTooltip ? {
|
|
1148
|
+
name: "optionTooltip",
|
|
1149
|
+
fn: O(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1150
|
+
key: "1"
|
|
1151
|
+
} : void 0,
|
|
1152
|
+
e.$slots.optionPdf ? {
|
|
1153
|
+
name: "optionPdf",
|
|
1154
|
+
fn: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1155
|
+
key: "2"
|
|
1156
|
+
} : void 0,
|
|
1157
|
+
e.$slots.optionCsv ? {
|
|
1158
|
+
name: "optionCsv",
|
|
1159
|
+
fn: O(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1160
|
+
key: "3"
|
|
1161
|
+
} : void 0,
|
|
1162
|
+
e.$slots.optionImg ? {
|
|
1163
|
+
name: "optionImg",
|
|
1164
|
+
fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1165
|
+
key: "4"
|
|
1166
|
+
} : void 0,
|
|
1167
|
+
e.$slots.optionSvg ? {
|
|
1168
|
+
name: "optionSvg",
|
|
1169
|
+
fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1170
|
+
key: "5"
|
|
1171
|
+
} : void 0,
|
|
1172
|
+
e.$slots.optionTable ? {
|
|
1173
|
+
name: "optionTable",
|
|
1174
|
+
fn: O(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1175
|
+
key: "6"
|
|
1176
|
+
} : void 0,
|
|
1177
|
+
e.$slots.optionFullscreen ? {
|
|
1178
|
+
name: "optionFullscreen",
|
|
1179
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(v({
|
|
1180
|
+
toggleFullscreen: t,
|
|
1181
|
+
isFullscreen: n
|
|
1182
|
+
})), void 0, !0)]),
|
|
1183
|
+
key: "7"
|
|
1184
|
+
} : void 0,
|
|
1185
|
+
e.$slots.optionAnnotator ? {
|
|
1186
|
+
name: "optionAnnotator",
|
|
1187
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(v({
|
|
1188
|
+
toggleAnnotator: t,
|
|
1189
|
+
isAnnotator: n
|
|
1190
|
+
})), void 0, !0)]),
|
|
1191
|
+
key: "8"
|
|
1192
|
+
} : void 0,
|
|
1193
|
+
e.$slots.optionAltCopy ? {
|
|
1194
|
+
name: "optionAltCopy",
|
|
1195
|
+
fn: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
|
|
1196
|
+
key: "9"
|
|
1197
|
+
} : void 0,
|
|
1198
|
+
e.$slots["custom-menu-before"] ? {
|
|
1199
|
+
name: "custom-menu-before",
|
|
1200
|
+
fn: O(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1201
|
+
key: "10"
|
|
1202
|
+
} : void 0,
|
|
1203
|
+
e.$slots["custom-menu-after"] ? {
|
|
1204
|
+
name: "custom-menu-after",
|
|
1205
|
+
fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1206
|
+
key: "11"
|
|
1207
|
+
} : void 0
|
|
1208
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.callbacks.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.printScale.chartElement.position.titles.hasAnnotator.isAnnotation.tableDialog.style.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg".split("."))) : m("", !0),
|
|
1209
|
+
g("div", Xe, [(x(), h("svg", {
|
|
1210
|
+
ref_key: "svgRef",
|
|
1211
|
+
ref: H,
|
|
1212
|
+
xmlns: E(le),
|
|
1213
|
+
"aria-describedby": `chart-instructions-${N.value}`,
|
|
1214
|
+
class: Ve({
|
|
1215
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
1216
|
+
"vue-data-ui-fulscreen--off": !Q.value
|
|
1217
|
+
}),
|
|
1218
|
+
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${K.value.fullHeight <= 0 ? 10 : K.value.fullHeight}`,
|
|
1219
|
+
style: b(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color};${R.value.responsive ? `height: ${Vt.value}px; width: 100%;` : ""}`),
|
|
1220
|
+
tabindex: "0",
|
|
1221
|
+
onFocus: tr,
|
|
1222
|
+
onBlur: nr,
|
|
1223
|
+
onKeydown: rr
|
|
1224
|
+
}, [
|
|
1225
|
+
Re(E(Ct)),
|
|
1226
|
+
g("defs", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), p(ke, {
|
|
1227
|
+
t: "linear",
|
|
1228
|
+
id: `gradient-${e.id}-${N.value}`,
|
|
1229
|
+
key: `gradient-${e.id}-${N.value}`,
|
|
1230
|
+
x1: "50%",
|
|
1231
|
+
y1: "0%",
|
|
1232
|
+
x2: "50%",
|
|
1233
|
+
y2: "100%",
|
|
1234
|
+
stops: [
|
|
1235
|
+
[
|
|
1236
|
+
"0%",
|
|
1237
|
+
e.color,
|
|
1238
|
+
1
|
|
1239
|
+
],
|
|
1240
|
+
[
|
|
1241
|
+
"30%",
|
|
1242
|
+
e.color,
|
|
1243
|
+
.7
|
|
1244
|
+
],
|
|
1245
|
+
[
|
|
1246
|
+
"70%",
|
|
1247
|
+
e.color,
|
|
1248
|
+
.3
|
|
1249
|
+
],
|
|
1250
|
+
[
|
|
1251
|
+
"100%",
|
|
1252
|
+
e.color,
|
|
1253
|
+
.1
|
|
1254
|
+
]
|
|
1255
|
+
]
|
|
1256
|
+
}, null, 8, ["id", "stops"]))), 128)), (x(!0), h(d, null, C(Y.value, (e, t) => (x(), h(d, null, [(x(!0), h(d, null, C(e.datapoints, (e, t) => (x(), p(ke, {
|
|
1257
|
+
t: "linear",
|
|
1258
|
+
key: `grad${e.id}`,
|
|
1259
|
+
id: `gradient-single-${N.value}-${e.uid}`,
|
|
1260
|
+
x1: "50%",
|
|
1261
|
+
y1: "0%",
|
|
1262
|
+
x2: "50%",
|
|
1263
|
+
y2: "100%",
|
|
1264
|
+
stops: [
|
|
1265
|
+
[
|
|
1266
|
+
"0%",
|
|
1267
|
+
e.color,
|
|
1268
|
+
1
|
|
1269
|
+
],
|
|
1270
|
+
[
|
|
1271
|
+
"30%",
|
|
1272
|
+
e.color,
|
|
1273
|
+
.7
|
|
1274
|
+
],
|
|
1275
|
+
[
|
|
1276
|
+
"70%",
|
|
1277
|
+
e.color,
|
|
1278
|
+
.3
|
|
1279
|
+
],
|
|
1280
|
+
[
|
|
1281
|
+
"100%",
|
|
1282
|
+
e.color,
|
|
1283
|
+
.1
|
|
1284
|
+
]
|
|
1285
|
+
]
|
|
1286
|
+
}, null, 8, ["id", "stops"]))), 128))], 64))), 256))]),
|
|
1287
|
+
(x(!0), h(d, null, C(Y.value, (t, n) => (x(), h("g", { key: `ds-${n}` }, [(x(!0), h(d, null, C(t.datapoints, (t, r) => (x(), h("g", { key: t.id }, [
|
|
1288
|
+
e.$slots.pattern ? (x(), h("g", Qe, [g("defs", null, [w(e.$slots, "pattern", ze({ ref_for: !0 }, {
|
|
1289
|
+
datapointIndex: n,
|
|
1290
|
+
seriesIndex: r,
|
|
1291
|
+
patternId: `pattern_${N.value}_${t.uid}`
|
|
1292
|
+
}), void 0, !0)])])) : m("", !0),
|
|
1293
|
+
g("path", {
|
|
1294
|
+
fill: e.$slots.pattern ? `url(#pattern_${N.value}_${t.uid})` : R.value.style.chart.backgroundColor,
|
|
1295
|
+
stroke: "none",
|
|
1296
|
+
"stroke-linecap": "round",
|
|
1297
|
+
d: R.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1298
|
+
style: b({ opacity: R.value.style.chart.areas.opacity })
|
|
1299
|
+
}, null, 12, $e),
|
|
1300
|
+
g("path", {
|
|
1301
|
+
fill: "none",
|
|
1302
|
+
stroke: R.value.style.chart.areas.stroke.useSerieColor ? t.color : R.value.style.chart.areas.stroke.color,
|
|
1303
|
+
"stroke-width": R.value.style.chart.areas.strokeWidth,
|
|
1304
|
+
d: R.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
|
|
1305
|
+
"stroke-linecap": "round",
|
|
1306
|
+
"stroke-linejoin": "round",
|
|
1307
|
+
style: b({
|
|
1308
|
+
strokeDasharray: t.pathLength,
|
|
1309
|
+
strokeDashoffset: R.value.useCssAnimation ? t.pathLength : 0
|
|
1310
|
+
})
|
|
1311
|
+
}, null, 12, et),
|
|
1312
|
+
g("path", {
|
|
1313
|
+
fill: R.value.style.chart.areas.useGradient ? R.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${N.value})` : `url(#gradient-single-${N.value}-${t.uid})` : t.color,
|
|
1314
|
+
stroke: "none",
|
|
1315
|
+
d: R.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1316
|
+
"stroke-linecap": "round",
|
|
1317
|
+
"stroke-linejoin": "round",
|
|
1318
|
+
style: b({
|
|
1319
|
+
strokeDasharray: t.pathLength,
|
|
1320
|
+
strokeDashoffset: R.value.useCssAnimation ? t.pathLength : 0
|
|
1321
|
+
})
|
|
1322
|
+
}, null, 12, tt),
|
|
1323
|
+
R.value.style.chart.zeroLine.show ? (x(), h("path", {
|
|
1324
|
+
key: 1,
|
|
1325
|
+
stroke: R.value.style.chart.zeroLine.useSerieColor ? t.color : R.value.style.chart.zeroLine.stroke,
|
|
1326
|
+
"stroke-dasharray": R.value.style.chart.zeroLine.strokeDasharray,
|
|
1327
|
+
"stroke-width": R.value.style.chart.zeroLine.strokeWidth,
|
|
1328
|
+
d: t.zeroPath,
|
|
1329
|
+
"stroke-linecap": "round"
|
|
1330
|
+
}, null, 8, nt)) : m("", !0),
|
|
1331
|
+
R.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (x(!0), h(d, { key: 2 }, C(t.plots, (e) => (x(), h(d, null, [e.isMaxPoint ? (x(), h("line", {
|
|
1332
|
+
key: 0,
|
|
1333
|
+
x1: e.x,
|
|
1334
|
+
y1: e.y,
|
|
1335
|
+
x2: e.x,
|
|
1336
|
+
y2: e.zero,
|
|
1337
|
+
stroke: R.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? E(ce)(t.color) : R.value.style.chart.areas.maxPoint.stroke,
|
|
1338
|
+
"stroke-width": R.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1339
|
+
"stroke-linecap": "round",
|
|
1340
|
+
"stroke-dasharray": R.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1341
|
+
}, null, 8, rt)) : m("", !0)], 64))), 256)) : m("", !0),
|
|
1342
|
+
t.plots.length === 1 ? (x(), h("circle", {
|
|
1343
|
+
key: 3,
|
|
1344
|
+
cx: t.plots[0].x,
|
|
1345
|
+
cy: t.plots[0].y,
|
|
1346
|
+
stroke: R.value.style.chart.selector.dot.stroke,
|
|
1347
|
+
"stroke-width": R.value.style.chart.selector.dot.strokeWidth,
|
|
1348
|
+
r: R.value.style.chart.selector.dot.radius,
|
|
1349
|
+
fill: R.value.style.chart.selector.dot.useDatapointColor ? t.color : R.value.style.chart.selector.dot.fill,
|
|
1350
|
+
style: { pointerEvents: "none" }
|
|
1351
|
+
}, null, 8, it)) : m("", !0)
|
|
1352
|
+
]))), 128)), g("text", {
|
|
1353
|
+
x: t.label.x,
|
|
1354
|
+
y: t.label.y,
|
|
1355
|
+
"text-anchor": "end",
|
|
1356
|
+
"font-size": R.value.style.chart.yAxis.labels.fontSize,
|
|
1357
|
+
"font-weight": R.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1358
|
+
fill: R.value.style.chart.yAxis.labels.color,
|
|
1359
|
+
style: b({ cursor: R.value.style.chart.dialog.show && z.value ? "pointer" : "default" }),
|
|
1360
|
+
"text-decoration": R.value.style.chart.dialog.show && (Nn.value === n || F.value && t.uid === F.value.uid || L.value === n) ? "underline" : "",
|
|
1361
|
+
onMouseenter: (e) => Pn(n),
|
|
1362
|
+
onMouseleave: Fn,
|
|
1363
|
+
onClick: (e) => Mn(t)
|
|
1364
|
+
}, T(t.name), 45, at)]))), 128)),
|
|
1365
|
+
R.value.style.chart.xAxis.labels.values.length ? (x(), h("g", {
|
|
1366
|
+
key: 0,
|
|
1367
|
+
ref_key: "timeLabelsEls",
|
|
1368
|
+
ref: Ht
|
|
1369
|
+
}, [(x(!0), h(d, null, C(J.value, (t, n) => w(e.$slots, "time-label", ze({ ref_for: !0 }, {
|
|
1370
|
+
show: t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !R.value.style.chart.xAxis.labels.showOnlyAtModulo || t && R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && P.value && P.value.index === n || t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && R.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(J.value.length / R.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1371
|
+
fontSize: R.value.style.chart.xAxis.labels.fontSize,
|
|
1372
|
+
content: t.label,
|
|
1373
|
+
textAnchor: R.value.style.chart.xAxis.labels.rotation > 0 ? "start" : R.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1374
|
+
fill: R.value.style.chart.xAxis.labels.color,
|
|
1375
|
+
transform: `translate(${t.selectorX}, ${K.value.top + t.height + R.value.style.chart.xAxis.labels.offsetY}), rotate(${R.value.style.chart.xAxis.labels.rotation})`,
|
|
1376
|
+
x: t.selectorX,
|
|
1377
|
+
y: K.value.bottom + R.value.style.chart.xAxis.labels.offsetY
|
|
1378
|
+
}), () => [t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !R.value.style.chart.xAxis.labels.showOnlyAtModulo || t && R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && P.value && P.value.index === n || t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && R.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(J.value.length / R.value.style.chart.xAxis.labels.modulo) === 0 ? (x(), h("g", ot, [String(t.label).includes("\n") ? (x(), h("text", {
|
|
1379
|
+
key: 1,
|
|
1380
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1381
|
+
"font-size": R.value.style.chart.xAxis.labels.fontSize,
|
|
1382
|
+
fill: R.value.style.chart.xAxis.labels.color,
|
|
1383
|
+
"font-weight": R.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1384
|
+
transform: `translate(${t.selectorX}, ${K.value.bottom + R.value.style.chart.xAxis.labels.offsetY}), rotate(${R.value.style.chart.xAxis.labels.rotation})`,
|
|
1385
|
+
"text-anchor": R.value.style.chart.xAxis.labels.rotation > 0 ? "start" : R.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1386
|
+
style: b({ opacity: P.value ? P.value.index === n ? 1 : .2 : 1 }),
|
|
1387
|
+
innerHTML: E(r)({
|
|
1388
|
+
content: String(t.label),
|
|
1389
|
+
fontSize: R.value.style.chart.xAxis.labels.fontSize,
|
|
1390
|
+
fill: R.value.style.chart.xAxis.labels.color,
|
|
1391
|
+
x: 0,
|
|
1392
|
+
y: 0
|
|
1393
|
+
})
|
|
1394
|
+
}, null, 12, ct)) : (x(), h("text", {
|
|
1395
|
+
key: 0,
|
|
1396
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1397
|
+
"font-size": R.value.style.chart.xAxis.labels.fontSize,
|
|
1398
|
+
fill: R.value.style.chart.xAxis.labels.color,
|
|
1399
|
+
"font-weight": R.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1400
|
+
transform: `translate(${t.selectorX}, ${K.value.bottom + R.value.style.chart.xAxis.labels.offsetY}), rotate(${R.value.style.chart.xAxis.labels.rotation})`,
|
|
1401
|
+
"text-anchor": R.value.style.chart.xAxis.labels.rotation > 0 ? "start" : R.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1402
|
+
style: b({ opacity: P.value ? P.value.index === n ? 1 : .2 : 1 })
|
|
1403
|
+
}, T(t.label), 13, st))])) : m("", !0)], !0)), 256))], 512)) : m("", !0),
|
|
1404
|
+
g("g", null, [
|
|
1405
|
+
(x(!0), h(d, null, C(J.value, (e, t) => (x(), h("rect", {
|
|
1406
|
+
x: e.x,
|
|
1407
|
+
y: e.y,
|
|
1408
|
+
width: e.width < 0 ? .1 : e.width,
|
|
1409
|
+
height: e.height < 0 ? .1 : e.height,
|
|
1410
|
+
fill: "transparent",
|
|
1411
|
+
onMouseenter: (t) => xn(e),
|
|
1412
|
+
onMouseleave: (t) => Sn(e),
|
|
1413
|
+
onClick: () => Cn(e)
|
|
1414
|
+
}, null, 40, lt))), 256)),
|
|
1415
|
+
R.value.style.chart.selector.show && P.value ? (x(), h("line", {
|
|
1416
|
+
key: 0,
|
|
1417
|
+
x1: P.value.selectorX,
|
|
1418
|
+
x2: P.value.selectorX,
|
|
1419
|
+
y1: P.value.y,
|
|
1420
|
+
y2: P.value.y + P.value.height - V.value / 2,
|
|
1421
|
+
stroke: R.value.style.chart.selector.stroke,
|
|
1422
|
+
"stroke-width": R.value.style.chart.selector.strokeWidth,
|
|
1423
|
+
"stroke-dasharray": R.value.style.chart.selector.strokeDasharray,
|
|
1424
|
+
"stroke-linecap": "round",
|
|
1425
|
+
style: { pointerEvents: "none" }
|
|
1426
|
+
}, null, 8, ut)) : m("", !0),
|
|
1427
|
+
P.value ? (x(!0), h(d, { key: 1 }, C(Y.value, (e) => (x(), h(d, null, [(x(!0), h(d, null, C(e.datapoints, (e) => (x(), h(d, null, [(x(!0), h(d, null, C(e.plots, (t, n) => (x(), h(d, null, [P.value && P.value.index === n ? (x(), h("circle", {
|
|
1428
|
+
key: 0,
|
|
1429
|
+
cx: t.x,
|
|
1430
|
+
cy: t.y,
|
|
1431
|
+
stroke: R.value.style.chart.selector.dot.stroke,
|
|
1432
|
+
"stroke-width": R.value.style.chart.selector.dot.strokeWidth,
|
|
1433
|
+
r: R.value.style.chart.selector.dot.radius,
|
|
1434
|
+
fill: R.value.style.chart.selector.dot.useDatapointColor ? e.color : R.value.style.chart.selector.dot.fill,
|
|
1435
|
+
style: { pointerEvents: "none" }
|
|
1436
|
+
}, null, 8, dt)) : m("", !0), P.value && P.value.index === n ? (x(), h("text", {
|
|
1437
|
+
key: 1,
|
|
1438
|
+
x: Tn(t.x, E(u)(R.value.style.chart.selector.labels.formatter, t.value, E(l)({
|
|
1439
|
+
p: R.value.style.chart.xAxis.labels.prefix,
|
|
1440
|
+
v: t.value,
|
|
1441
|
+
s: R.value.style.chart.xAxis.labels.suffix,
|
|
1442
|
+
r: R.value.style.chart.selector.labels.rounding
|
|
1443
|
+
})), R.value.style.chart.selector.labels.fontSize) ? t.x - R.value.style.chart.selector.labels.fontSize / 2 : t.x + R.value.style.chart.selector.labels.fontSize / 2,
|
|
1444
|
+
y: t.y + R.value.style.chart.selector.labels.fontSize / 3,
|
|
1445
|
+
"text-anchor": Tn(t.x, E(u)(R.value.style.chart.selector.labels.formatter, t.value, E(l)({
|
|
1446
|
+
p: R.value.style.chart.xAxis.labels.prefix,
|
|
1447
|
+
v: t.value,
|
|
1448
|
+
s: R.value.style.chart.xAxis.labels.suffix,
|
|
1449
|
+
r: R.value.style.chart.selector.labels.rounding
|
|
1450
|
+
})), R.value.style.chart.selector.labels.fontSize) ? "end" : "start",
|
|
1451
|
+
"font-size": R.value.style.chart.selector.labels.fontSize,
|
|
1452
|
+
fill: R.value.style.chart.selector.labels.color,
|
|
1453
|
+
style: { pointerEvents: "none" }
|
|
1454
|
+
}, T(E(u)(R.value.style.chart.selector.labels.formatter, t.value, E(l)({
|
|
1455
|
+
p: R.value.style.chart.xAxis.labels.prefix,
|
|
1456
|
+
v: t.value,
|
|
1457
|
+
s: R.value.style.chart.xAxis.labels.suffix,
|
|
1458
|
+
r: R.value.style.chart.selector.labels.rounding
|
|
1459
|
+
}))), 9, ft)) : m("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : m("", !0)
|
|
1460
|
+
]),
|
|
1461
|
+
w(e.$slots, "svg", { svg: {
|
|
1462
|
+
...G.value,
|
|
1463
|
+
drawingArea: K.value,
|
|
1464
|
+
isPrintingImg: E(en) || E(tn) || E(Yn),
|
|
1465
|
+
isPrintingSvg: E(Xn)
|
|
1466
|
+
} }, void 0, !0)
|
|
1467
|
+
], 46, Ze)), e.$slots.hint ? (x(), h("div", pt, [w(e.$slots, "hint", y(v({
|
|
1468
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1469
|
+
isVisible: Wt.value
|
|
1470
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1471
|
+
e.$slots.watermark ? (x(), h("div", mt, [w(e.$slots, "watermark", y(v({ isPrinting: E(en) || E(tn) || E(Yn) || E(Xn) })), void 0, !0)])) : m("", !0),
|
|
1472
|
+
g("div", {
|
|
1473
|
+
ref_key: "chartLegend",
|
|
1474
|
+
ref: jt
|
|
1475
|
+
}, [w(e.$slots, "legend", { legend: Z.value }, () => [R.value.style.chart.legend.show ? (x(), p(Pe, {
|
|
1476
|
+
key: `legend_${It.value}`,
|
|
1477
|
+
legendSet: Z.value,
|
|
1478
|
+
config: On.value,
|
|
1479
|
+
isCursorPointer: z.value,
|
|
1480
|
+
onClickMarker: t[0] ||= ({ legend: e }) => ln(e.id)
|
|
1481
|
+
}, Ie({
|
|
1482
|
+
item: O(({ legend: e }) => [E(qt) ? m("", !0) : (x(), h("div", {
|
|
1483
|
+
key: 0,
|
|
1484
|
+
style: b(`opacity:${X.value.includes(e.id) ? .5 : 1}`),
|
|
1485
|
+
onClick: (t) => e.segregate()
|
|
1486
|
+
}, T(e.name), 13, ht))]),
|
|
1487
|
+
legendToggle: O(() => [Z.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(qt) ? (x(), p(Ae, {
|
|
1488
|
+
key: 0,
|
|
1489
|
+
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1490
|
+
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1491
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
1492
|
+
checked: X.value.length > 0,
|
|
1493
|
+
isCursorPointer: z.value,
|
|
1494
|
+
onToggle: cn
|
|
1495
|
+
}, null, 8, [
|
|
1496
|
+
"backgroundColor",
|
|
1497
|
+
"color",
|
|
1498
|
+
"fontSize",
|
|
1499
|
+
"checked",
|
|
1500
|
+
"isCursorPointer"
|
|
1501
|
+
])) : m("", !0)]),
|
|
1502
|
+
_: 2
|
|
1503
|
+
}, [e.$slots.pattern ? {
|
|
1504
|
+
name: "legend-pattern",
|
|
1505
|
+
fn: O(({ legend: e, index: t }) => [Re(Te, {
|
|
1506
|
+
shape: e.shape,
|
|
1507
|
+
radius: 30,
|
|
1508
|
+
stroke: "none",
|
|
1509
|
+
plot: {
|
|
1510
|
+
x: 30,
|
|
1511
|
+
y: 30
|
|
1512
|
+
},
|
|
1513
|
+
fill: `url(#pattern_${N.value}_${t})`
|
|
1514
|
+
}, null, 8, ["shape", "fill"])]),
|
|
1515
|
+
key: "0"
|
|
1516
|
+
} : void 0]), 1032, [
|
|
1517
|
+
"legendSet",
|
|
1518
|
+
"config",
|
|
1519
|
+
"isCursorPointer"
|
|
1520
|
+
])) : m("", !0)], !0)], 512),
|
|
1521
|
+
e.$slots.source ? (x(), h("div", {
|
|
1522
|
+
key: 6,
|
|
1523
|
+
ref_key: "source",
|
|
1524
|
+
ref: Mt,
|
|
1525
|
+
dir: "auto"
|
|
1526
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1527
|
+
Ot.value && R.value.userOptions.buttons.table ? (x(), p(Ue(Wn.value.component), ze({ key: 7 }, Wn.value.props, {
|
|
1528
|
+
ref_key: "tableUnit",
|
|
1529
|
+
ref: I,
|
|
1530
|
+
onClose: Gn
|
|
1531
|
+
}), Ie({
|
|
1532
|
+
content: O(() => [(x(), p(E(bt), {
|
|
1533
|
+
key: `table_${Ft.value}`,
|
|
1534
|
+
colNames: $.value.colNames,
|
|
1535
|
+
head: $.value.head,
|
|
1536
|
+
body: $.value.body,
|
|
1537
|
+
config: $.value.config,
|
|
1538
|
+
title: R.value.table.useDialog ? "" : Wn.value.title,
|
|
1539
|
+
withCloseButton: !R.value.table.useDialog,
|
|
1540
|
+
isCursorPointer: z.value,
|
|
1541
|
+
onClose: Gn
|
|
1542
|
+
}, {
|
|
1543
|
+
th: O(({ th: e }) => [g("div", { innerHTML: e }, null, 8, gt)]),
|
|
1544
|
+
td: O(({ td: e }) => [Le(T(e.name ? e.name : E(u)(R.value.style.chart.selector.labels.formatter, e, E(l)({
|
|
1545
|
+
p: R.value.style.chart.xAxis.labels.prefix,
|
|
1546
|
+
v: e,
|
|
1547
|
+
s: R.value.style.chart.xAxis.labels.suffix,
|
|
1548
|
+
r: R.value.table.td.roundingValue
|
|
1549
|
+
}))), 1)]),
|
|
1550
|
+
_: 1
|
|
1551
|
+
}, 8, [
|
|
1552
|
+
"colNames",
|
|
1553
|
+
"head",
|
|
1554
|
+
"body",
|
|
1555
|
+
"config",
|
|
1556
|
+
"title",
|
|
1557
|
+
"withCloseButton",
|
|
1558
|
+
"isCursorPointer"
|
|
1559
|
+
]))]),
|
|
1560
|
+
_: 2
|
|
1561
|
+
}, [R.value.table.useDialog ? {
|
|
1562
|
+
name: "title",
|
|
1563
|
+
fn: O(() => [Le(T(Wn.value.title), 1)]),
|
|
1564
|
+
key: "0"
|
|
1565
|
+
} : void 0, R.value.table.useDialog ? {
|
|
1566
|
+
name: "actions",
|
|
1567
|
+
fn: O(() => [g("button", {
|
|
1568
|
+
tabindex: "0",
|
|
1569
|
+
class: "vue-ui-user-options-button",
|
|
1570
|
+
onClick: t[1] ||= (e) => Bn(R.value.userOptions.callbacks.csv),
|
|
1571
|
+
style: b({ cursor: z.value ? "pointer" : "default" })
|
|
1572
|
+
}, [Re(E(vt), {
|
|
1573
|
+
name: "fileCsv",
|
|
1574
|
+
stroke: Wn.value.props.color
|
|
1575
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1576
|
+
key: "1"
|
|
1577
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1578
|
+
R.value.style.chart.dialog.show ? (x(), p(E(wt), {
|
|
1579
|
+
key: 8,
|
|
1580
|
+
ref_key: "dialog",
|
|
1581
|
+
ref: Bt,
|
|
1582
|
+
onClose: t[2] ||= (e) => F.value = null,
|
|
1583
|
+
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1584
|
+
color: R.value.style.chart.dialog.color,
|
|
1585
|
+
headerBg: R.value.style.chart.dialog.header.backgroundColor,
|
|
1586
|
+
headerColor: R.value.style.chart.dialog.header.color,
|
|
1587
|
+
isFullscreen: Q.value,
|
|
1588
|
+
fullscreenParent: A.value,
|
|
1589
|
+
isCursorPointer: z.value,
|
|
1590
|
+
withPadding: ""
|
|
1591
|
+
}, {
|
|
1592
|
+
title: O(() => [Le(T(F.value.name), 1)]),
|
|
1593
|
+
content: O(() => [F.value ? (x(), p(E(_t), {
|
|
1594
|
+
key: 0,
|
|
1595
|
+
config: An.value,
|
|
1596
|
+
dataset: jn.value,
|
|
1597
|
+
onCopyAlt: $n
|
|
1598
|
+
}, null, 8, ["config", "dataset"])) : m("", !0)]),
|
|
1599
|
+
_: 1
|
|
1600
|
+
}, 8, [
|
|
1601
|
+
"backgroundColor",
|
|
1602
|
+
"color",
|
|
1603
|
+
"headerBg",
|
|
1604
|
+
"headerColor",
|
|
1605
|
+
"isFullscreen",
|
|
1606
|
+
"fullscreenParent",
|
|
1607
|
+
"isCursorPointer"
|
|
1608
|
+
])) : m("", !0),
|
|
1609
|
+
w(e.$slots, "skeleton", {}, () => [E(qt) ? (x(), p(ve, { key: 0 })) : m("", !0)], !0)
|
|
1610
|
+
], 46, Je));
|
|
1611
|
+
}
|
|
1612
|
+
}, [["__scopeId", "data-v-861273fd"]]);
|
|
1613
|
+
//#endregion
|
|
1614
|
+
export { qe as n, _t as t };
|