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