vue-data-ui 3.22.0 → 3.22.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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.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 +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { B as t,
|
|
2
|
+
import { B as t, Et as n, G as r, H as i, I as a, J as ee, Lt as o, O as te, S as s, Ut as ne, Vt as re, X as ie, ct as ae, i as c, k as oe, kt as l, q as se, r as ce, t as le, ut as ue, x as de, y as fe } from "./lib-CXicicWN.js";
|
|
3
3
|
import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
-
import { t as me } from "./useConfig-
|
|
5
|
-
import { t as he } from "./usePrinter-
|
|
4
|
+
import { t as me } from "./useConfig-Bf_EBbe3.js";
|
|
5
|
+
import { t as he } from "./usePrinter-Dng0UK-G.js";
|
|
6
6
|
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as ye } from "./useNestedProp-
|
|
8
|
+
import { t as ye } from "./useNestedProp-APyFoLCQ.js";
|
|
9
9
|
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as Se } from "./img-
|
|
12
|
-
import { n as Ce } from "./Title-
|
|
13
|
-
import { t as we } from "./Shape-
|
|
11
|
+
import { t as Se } from "./img-BCAOkqfM.js";
|
|
12
|
+
import { n as Ce } from "./Title-CVYf1f8m.js";
|
|
13
|
+
import { t as we } from "./Shape-C5OvuwII.js";
|
|
14
14
|
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { c as Ee } from "./canvas-lib-BOP_HS11.js";
|
|
16
16
|
import { t as De } from "./useResponsive-BfnK0KxU.js";
|
|
17
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Oe } from "./BaseLegendToggle-B-lM0iV1.js";
|
|
18
18
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as Me } from "./Legend-
|
|
21
|
+
import { t as Me } from "./Legend-BVDhEEsC.js";
|
|
22
22
|
import { t as Ne } from "./vue_ui_ridgeline-VM8_mx4J.js";
|
|
23
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as
|
|
23
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as We, watchEffect as Ge, withCtx as E } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-ridgeline.vue
|
|
25
|
-
var
|
|
25
|
+
var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
26
26
|
"xmlns",
|
|
27
27
|
"aria-describedby",
|
|
28
28
|
"viewBox"
|
|
29
|
-
],
|
|
29
|
+
], Ze = ["id"], Qe = ["stop-color"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = ["id"], rt = ["stop-color"], it = ["stop-color"], at = ["stop-color"], ot = ["stop-color"], st = { key: 0 }, ct = ["fill", "d"], lt = [
|
|
30
30
|
"stroke",
|
|
31
31
|
"stroke-width",
|
|
32
32
|
"d"
|
|
33
|
-
],
|
|
33
|
+
], ut = ["fill", "d"], dt = [
|
|
34
34
|
"stroke",
|
|
35
35
|
"stroke-dasharray",
|
|
36
36
|
"stroke-width",
|
|
37
37
|
"d"
|
|
38
|
-
],
|
|
38
|
+
], ft = [
|
|
39
39
|
"x1",
|
|
40
40
|
"y1",
|
|
41
41
|
"x2",
|
|
@@ -43,14 +43,14 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
43
43
|
"stroke",
|
|
44
44
|
"stroke-width",
|
|
45
45
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
46
|
+
], pt = [
|
|
47
47
|
"cx",
|
|
48
48
|
"cy",
|
|
49
49
|
"stroke",
|
|
50
50
|
"stroke-width",
|
|
51
51
|
"r",
|
|
52
52
|
"fill"
|
|
53
|
-
],
|
|
53
|
+
], mt = [
|
|
54
54
|
"x",
|
|
55
55
|
"y",
|
|
56
56
|
"font-size",
|
|
@@ -59,20 +59,20 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
59
59
|
"text-decoration",
|
|
60
60
|
"onMouseenter",
|
|
61
61
|
"onClick"
|
|
62
|
-
],
|
|
62
|
+
], ht = { key: 0 }, gt = [
|
|
63
63
|
"font-size",
|
|
64
64
|
"fill",
|
|
65
65
|
"font-weight",
|
|
66
66
|
"transform",
|
|
67
67
|
"text-anchor"
|
|
68
|
-
],
|
|
68
|
+
], _t = [
|
|
69
69
|
"font-size",
|
|
70
70
|
"fill",
|
|
71
71
|
"font-weight",
|
|
72
72
|
"transform",
|
|
73
73
|
"text-anchor",
|
|
74
74
|
"innerHTML"
|
|
75
|
-
],
|
|
75
|
+
], vt = [
|
|
76
76
|
"x",
|
|
77
77
|
"y",
|
|
78
78
|
"width",
|
|
@@ -80,7 +80,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
80
80
|
"onMouseenter",
|
|
81
81
|
"onMouseleave",
|
|
82
82
|
"onClick"
|
|
83
|
-
],
|
|
83
|
+
], yt = [
|
|
84
84
|
"x1",
|
|
85
85
|
"x2",
|
|
86
86
|
"y1",
|
|
@@ -88,20 +88,20 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
88
88
|
"stroke",
|
|
89
89
|
"stroke-width",
|
|
90
90
|
"stroke-dasharray"
|
|
91
|
-
],
|
|
91
|
+
], bt = [
|
|
92
92
|
"cx",
|
|
93
93
|
"cy",
|
|
94
94
|
"stroke",
|
|
95
95
|
"stroke-width",
|
|
96
96
|
"r",
|
|
97
97
|
"fill"
|
|
98
|
-
],
|
|
98
|
+
], xt = [
|
|
99
99
|
"x",
|
|
100
100
|
"y",
|
|
101
101
|
"text-anchor",
|
|
102
102
|
"font-size",
|
|
103
103
|
"fill"
|
|
104
|
-
],
|
|
104
|
+
], St = {
|
|
105
105
|
key: 0,
|
|
106
106
|
style: {
|
|
107
107
|
position: "absolute",
|
|
@@ -111,10 +111,10 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
111
111
|
},
|
|
112
112
|
"data-dom-to-png-ignore": "",
|
|
113
113
|
"aria-hidden": "true"
|
|
114
|
-
},
|
|
114
|
+
}, Ct = {
|
|
115
115
|
key: 5,
|
|
116
116
|
class: "vue-data-ui-watermark"
|
|
117
|
-
},
|
|
117
|
+
}, wt = ["onClick"], Tt = ["innerHTML"], Et = /*#__PURE__*/ Te({
|
|
118
118
|
__name: "vue-ui-ridgeline",
|
|
119
119
|
props: {
|
|
120
120
|
config: {
|
|
@@ -136,35 +136,35 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
136
136
|
"selectX",
|
|
137
137
|
"copyAlt"
|
|
138
138
|
],
|
|
139
|
-
setup(e, { expose: Te, emit:
|
|
140
|
-
let
|
|
139
|
+
setup(e, { expose: Te, emit: Ke }) {
|
|
140
|
+
let Et = g(() => import("./vue-ui-xy-DuwLRfr4.js").then((e) => e.n)), Dt = g(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), Ot = g(() => import("./vue-ui-accordion-Di_givzQ.js").then((e) => e.n)), kt = g(() => import("./DataTable-DJZgdnIn.js")), At = g(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), jt = g(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Mt = g(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), Nt = g(() => import("./BaseDraggableDialog-a9xCKjW-.js").then((e) => e.n)), { vue_ui_ridgeline: Pt } = me(), { isThemeValid: Ft, warnInvalidTheme: It } = be(), D = e, O = d({
|
|
141
141
|
get() {
|
|
142
142
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
143
143
|
},
|
|
144
144
|
set(e) {
|
|
145
145
|
return e;
|
|
146
146
|
}
|
|
147
|
-
}), Lt =
|
|
147
|
+
}), Lt = Ke, k = x(null), Rt = x(null), zt = x(null), A = He(null), j = He(null), Bt = x(null), Vt = x(null), Ht = x(0), Ut = x(0), Wt = x(0), M = x(i()), Gt = x(0), Kt = x(0), qt = x(512), N = x(null), P = x(null), Jt = x(null), Yt = x(0), Xt = x(null), Zt = x(null), Qt = x(null), $t = x(!1), en = x(!1), F = x(null), tn = x(!1);
|
|
148
148
|
function nn() {
|
|
149
149
|
let e = ye({
|
|
150
|
-
userConfig:
|
|
151
|
-
defaultConfig:
|
|
150
|
+
userConfig: D.config,
|
|
151
|
+
defaultConfig: Pt
|
|
152
152
|
}), t = e.theme;
|
|
153
153
|
if (!t) return e;
|
|
154
|
-
if (!
|
|
155
|
-
let
|
|
156
|
-
userConfig: Ne[t] ||
|
|
154
|
+
if (!Ft.value(e)) return It(e), e;
|
|
155
|
+
let n = ye({
|
|
156
|
+
userConfig: Ne[t] || D.config,
|
|
157
157
|
defaultConfig: e
|
|
158
|
-
}),
|
|
159
|
-
userConfig:
|
|
160
|
-
defaultConfig:
|
|
158
|
+
}), r = ye({
|
|
159
|
+
userConfig: D.config,
|
|
160
|
+
defaultConfig: n
|
|
161
161
|
});
|
|
162
162
|
return {
|
|
163
|
-
...
|
|
164
|
-
customPalette:
|
|
163
|
+
...r,
|
|
164
|
+
customPalette: r.customPalette.length ? r.customPalette : re[t] || l
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
let I = x(nn()), L = d(() => I.value.userOptions.useCursorPointer), rn = d(() =>
|
|
167
|
+
let I = x(nn()), L = d(() => I.value.userOptions.useCursorPointer), rn = d(() => ne({
|
|
168
168
|
defaultConfig: {
|
|
169
169
|
userOptions: { show: !1 },
|
|
170
170
|
table: { show: !1 },
|
|
@@ -187,10 +187,10 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
187
187
|
},
|
|
188
188
|
userConfig: I.value.skeletonConfig ?? {}
|
|
189
189
|
})), { loading: R, FINAL_DATASET: z, manualLoading: an } = ge({
|
|
190
|
-
...Ue(
|
|
190
|
+
...Ue(D),
|
|
191
191
|
FINAL_CONFIG: I,
|
|
192
192
|
prepareConfig: nn,
|
|
193
|
-
skeletonDataset:
|
|
193
|
+
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
194
194
|
{
|
|
195
195
|
name: "_",
|
|
196
196
|
datapoints: [{
|
|
@@ -420,7 +420,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
420
420
|
}]
|
|
421
421
|
}
|
|
422
422
|
],
|
|
423
|
-
skeletonConfig:
|
|
423
|
+
skeletonConfig: ne({
|
|
424
424
|
defaultConfig: I.value,
|
|
425
425
|
userConfig: rn.value
|
|
426
426
|
})
|
|
@@ -440,7 +440,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
440
440
|
datasetObject: e,
|
|
441
441
|
requiredAttributes: ["name", "datapoints"]
|
|
442
442
|
}).forEach((e) => {
|
|
443
|
-
|
|
443
|
+
O.value = !1, ie({
|
|
444
444
|
componentName: "VueUiRidgeline",
|
|
445
445
|
type: "datasetSerieAttribute",
|
|
446
446
|
property: e,
|
|
@@ -452,7 +452,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
452
452
|
datasetObject: e,
|
|
453
453
|
requiredAttributes: ["name", "values"]
|
|
454
454
|
}).forEach((e) => {
|
|
455
|
-
|
|
455
|
+
O.value = !1, ie({
|
|
456
456
|
componentName: "VueUiRidgeline",
|
|
457
457
|
type: "datasetSerieAttribute",
|
|
458
458
|
property: `datapoint.${e}`,
|
|
@@ -461,7 +461,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
|
-
}), Kt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight),
|
|
464
|
+
}), Kt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), n(D.dataset) || (an.value = I.value.loading), I.value.responsive) {
|
|
465
465
|
let t = Ee(() => {
|
|
466
466
|
let { width: t, height: n } = De({
|
|
467
467
|
chart: k.value,
|
|
@@ -486,16 +486,16 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
486
486
|
fileName: I.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
487
487
|
options: I.value.userOptions.print
|
|
488
488
|
}), hn = d(() => I.value.userOptions.show && !I.value.style.chart.title.text), gn = d(() => de(I.value.customPalette)), H = x({ showTable: I.value.table.show });
|
|
489
|
-
|
|
489
|
+
We(() => z.value, async (e) => {
|
|
490
490
|
Array.isArray(e) && e.length && (on.value = !I.value.userOptions.showOnChartHover, await Re(), un(), Ht.value += 1, Wt.value += 1, H.value.showTable = I.value.table.show);
|
|
491
491
|
}, {
|
|
492
492
|
deep: !0,
|
|
493
493
|
immediate: !0
|
|
494
|
-
}),
|
|
494
|
+
}), We(() => D.dataset, (e) => {
|
|
495
495
|
Array.isArray(e) && e.length > 0 && (an.value = !1);
|
|
496
|
-
}, { deep: !0 }),
|
|
496
|
+
}, { deep: !0 }), We(() => R.value, async (e) => {
|
|
497
497
|
e || (await Re(), un());
|
|
498
|
-
}, { immediate: !0 }),
|
|
498
|
+
}, { immediate: !0 }), We(() => D.config, () => {
|
|
499
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
500
|
}, { deep: !0 });
|
|
501
501
|
let _n = d(() => I.value.style.chart.areas.height / I.value.style.chart.areas.rowHeight);
|
|
@@ -518,12 +518,12 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
518
518
|
let t = bn(e);
|
|
519
519
|
t !== null && (Y.value.includes(t.id) || yn(t.id));
|
|
520
520
|
}
|
|
521
|
-
let U = d(() =>
|
|
521
|
+
let U = d(() => O.value ? (z.value || []).map((e) => ({
|
|
522
522
|
...e,
|
|
523
523
|
labelLen: In(e.name, I.value.style.chart.yAxis.labels.fontSize),
|
|
524
524
|
uid: i(),
|
|
525
525
|
datapoints: e.datapoints.map((e, t) => {
|
|
526
|
-
let n = e.color ? fe(e.color) : gn.value[t] ||
|
|
526
|
+
let n = e.color ? fe(e.color) : gn.value[t] || l[t] || l[t % l.length], r = o(e.name);
|
|
527
527
|
return {
|
|
528
528
|
...e,
|
|
529
529
|
color: n,
|
|
@@ -540,7 +540,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
540
540
|
}), wn = d(() => W.value.width), Tn = d(() => W.value.height), En = x(0), Dn = Ee((e) => {
|
|
541
541
|
En.value = e;
|
|
542
542
|
}, 100);
|
|
543
|
-
|
|
543
|
+
Ge((e) => {
|
|
544
544
|
let t = Xt.value;
|
|
545
545
|
if (!t) return;
|
|
546
546
|
let n = new ResizeObserver((e) => {
|
|
@@ -558,7 +558,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
558
558
|
bottom: W.value.height - I.value.style.chart.padding.bottom,
|
|
559
559
|
width: W.value.width - (W.value.padding.left + W.value.padding.right)
|
|
560
560
|
})), On = d(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), K = x([]), kn = 0;
|
|
561
|
-
|
|
561
|
+
Ge(() => {
|
|
562
562
|
let e = ++kn;
|
|
563
563
|
(async () => {
|
|
564
564
|
let t = await pe({
|
|
@@ -625,12 +625,12 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
625
625
|
}
|
|
626
626
|
let J = d(() => {
|
|
627
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))), r = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX,
|
|
629
|
-
function
|
|
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))), r = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, ee = (G.value.width - r) / On.value, o = Math.abs(Math.min(n, 0)), s = t + o;
|
|
629
|
+
function ne(e) {
|
|
630
630
|
return isNaN(e / s) ? 0 : e / s;
|
|
631
631
|
}
|
|
632
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 -
|
|
633
|
+
let n = G.value.top + B.value * t, s = G.value.top + n + B.value * _n.value * (1 - ne(o));
|
|
634
634
|
return {
|
|
635
635
|
...e,
|
|
636
636
|
label: {
|
|
@@ -639,7 +639,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
639
639
|
},
|
|
640
640
|
datapoints: e.datapoints.map((e) => {
|
|
641
641
|
let t = e.values.map((t, i) => {
|
|
642
|
-
let
|
|
642
|
+
let a = isNaN(t) || [
|
|
643
643
|
void 0,
|
|
644
644
|
null,
|
|
645
645
|
"NaN",
|
|
@@ -648,22 +648,22 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
648
648
|
-Infinity
|
|
649
649
|
].includes(t) ? 0 : t || 0;
|
|
650
650
|
return {
|
|
651
|
-
x: r +
|
|
652
|
-
y: G.value.top + n + B.value * _n.value * (1 -
|
|
651
|
+
x: r + ee * i,
|
|
652
|
+
y: G.value.top + n + B.value * _n.value * (1 - ne(a + o)),
|
|
653
653
|
value: t,
|
|
654
654
|
isMaxPoint: t === Math.max(...e.values),
|
|
655
655
|
zero: s
|
|
656
656
|
};
|
|
657
|
-
}),
|
|
657
|
+
}), re = `${te(t, s, !1, !1)}`, ie = `M ${r},${s} ${a(t)} ${t.at(-1).x},${s}`, ae = `M ${r},${s} ${t.at(-1).x},${s}`, c = `M ${oe(t)}`, l = `M ${a(t)}`, se = ue(I.value.style.chart.areas.smooth ? c : l);
|
|
658
658
|
return {
|
|
659
659
|
...e,
|
|
660
660
|
uid: i(),
|
|
661
661
|
plots: t,
|
|
662
|
-
smoothPath:
|
|
663
|
-
straightPath:
|
|
664
|
-
zeroPath:
|
|
662
|
+
smoothPath: re,
|
|
663
|
+
straightPath: ie,
|
|
664
|
+
zeroPath: ae,
|
|
665
665
|
pathLength: se,
|
|
666
|
-
smoothPathRidge:
|
|
666
|
+
smoothPathRidge: c,
|
|
667
667
|
straightPathRidge: l
|
|
668
668
|
};
|
|
669
669
|
}).filter((e) => !Y.value.includes(e.id))
|
|
@@ -746,27 +746,27 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
746
746
|
}
|
|
747
747
|
}), Jt.value && Jt.value.open());
|
|
748
748
|
}
|
|
749
|
-
let
|
|
750
|
-
function
|
|
751
|
-
|
|
749
|
+
let Un = x(null);
|
|
750
|
+
function Wn(e) {
|
|
751
|
+
Un.value = e;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
|
|
755
|
-
}
|
|
756
|
-
let Gn = x(!1);
|
|
757
|
-
function Kn() {
|
|
758
|
-
Gn.value = !Gn.value;
|
|
753
|
+
function Gn() {
|
|
754
|
+
Un.value = null;
|
|
759
755
|
}
|
|
756
|
+
let Kn = x(!1);
|
|
760
757
|
function qn() {
|
|
758
|
+
Kn.value = !Kn.value;
|
|
759
|
+
}
|
|
760
|
+
function Jn() {
|
|
761
761
|
H.value.showTable = !H.value.showTable;
|
|
762
762
|
}
|
|
763
|
-
let
|
|
763
|
+
let Yn = d(() => ({ body: J.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
764
764
|
...t,
|
|
765
765
|
rowName: `${e.name}: ${t.name}`
|
|
766
766
|
}))).map((e) => [{
|
|
767
767
|
name: e.rowName,
|
|
768
768
|
color: e.color
|
|
769
|
-
}, ...e.values]) })),
|
|
769
|
+
}, ...e.values]) })), Q = d(() => {
|
|
770
770
|
let e = [I.value.table.columnNames.series, ...K.value.map((e) => e.text)], t = {
|
|
771
771
|
th: {
|
|
772
772
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
@@ -783,23 +783,23 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
783
783
|
return {
|
|
784
784
|
colNames: [I.value.table.columnNames.series, ...K.value.map((e) => e.text)],
|
|
785
785
|
head: e,
|
|
786
|
-
body:
|
|
786
|
+
body: Yn.value.body,
|
|
787
787
|
config: t
|
|
788
788
|
};
|
|
789
789
|
});
|
|
790
|
-
function
|
|
790
|
+
function Xn(e = null) {
|
|
791
791
|
Re(() => {
|
|
792
|
-
let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...
|
|
793
|
-
e ? e(n) :
|
|
792
|
+
let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...Yn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = s([[I.value.style.chart.title.text], [I.value.style.chart.title.subtitle.text]].concat(t));
|
|
793
|
+
e ? e(n) : ee({
|
|
794
794
|
csvContent: n,
|
|
795
795
|
title: I.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
796
796
|
});
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function Zn() {
|
|
800
800
|
return J.value;
|
|
801
801
|
}
|
|
802
|
-
async function
|
|
802
|
+
async function Qn({ scale: e = 2 } = {}) {
|
|
803
803
|
if (!k.value) return;
|
|
804
804
|
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
805
805
|
domElement: k.value,
|
|
@@ -845,10 +845,10 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
845
845
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
846
846
|
angle: I.value.style.chart.xAxis.labels.autoRotate.angle
|
|
847
847
|
});
|
|
848
|
-
let
|
|
848
|
+
let $n = d(() => {
|
|
849
849
|
let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
|
|
850
850
|
return {
|
|
851
|
-
component: e ?
|
|
851
|
+
component: e ? Nt : Ot,
|
|
852
852
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
853
853
|
props: e ? {
|
|
854
854
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
@@ -876,39 +876,39 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
878
|
});
|
|
879
|
-
|
|
879
|
+
We(() => H.value.showTable, (e) => {
|
|
880
880
|
I.value.table.show || (e && I.value.table.useDialog && Zt.value ? Zt.value.open() : "close" in Zt.value && Zt.value.close());
|
|
881
881
|
});
|
|
882
|
-
function
|
|
882
|
+
function er() {
|
|
883
883
|
H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
|
|
884
884
|
}
|
|
885
|
-
let
|
|
885
|
+
let tr = d(() => I.value.style.chart.backgroundColor), nr = d(() => ({
|
|
886
886
|
...I.value.style.chart.legend,
|
|
887
887
|
position: "bottom"
|
|
888
|
-
})), { exportSvg:
|
|
888
|
+
})), { exportSvg: rr, getSvg: ir } = ve({
|
|
889
889
|
svg: V,
|
|
890
890
|
title: d(() => I.value.style.chart.title),
|
|
891
|
-
legend:
|
|
891
|
+
legend: nr,
|
|
892
892
|
legendItems: X,
|
|
893
|
-
backgroundColor:
|
|
893
|
+
backgroundColor: tr
|
|
894
894
|
});
|
|
895
|
-
async function
|
|
895
|
+
async function ar({ isCb: e }) {
|
|
896
896
|
en.value = !0, await Re();
|
|
897
897
|
try {
|
|
898
898
|
if (e) {
|
|
899
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
899
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ir();
|
|
900
900
|
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
901
901
|
blob: e,
|
|
902
902
|
url: t,
|
|
903
903
|
text: n,
|
|
904
904
|
dataUrl: r
|
|
905
905
|
}));
|
|
906
|
-
} else await Promise.resolve(
|
|
906
|
+
} else await Promise.resolve(rr());
|
|
907
907
|
} finally {
|
|
908
908
|
en.value = !1;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function or(e) {
|
|
912
912
|
if (e?.stage === "start") {
|
|
913
913
|
$t.value = !0;
|
|
914
914
|
return;
|
|
@@ -919,10 +919,10 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
919
919
|
}
|
|
920
920
|
mn();
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
|
|
922
|
+
function sr(e) {
|
|
923
|
+
cr("xy-zoom", e.dataset, e.config);
|
|
924
924
|
}
|
|
925
|
-
async function
|
|
925
|
+
async function cr(e = "main-chart", t = null, n = null) {
|
|
926
926
|
if (Lt("copyAlt", {
|
|
927
927
|
source: e,
|
|
928
928
|
config: e === "main-chart" ? I.value : Bn.value,
|
|
@@ -937,18 +937,18 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
937
937
|
dataset: e === "main-chart" ? J.value : Vn.value
|
|
938
938
|
}));
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function lr() {
|
|
941
941
|
F.value = null, tn.value = !0;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
|
|
943
|
+
function ur() {
|
|
944
|
+
mr(), tn.value = !1;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
if (!V.value ||
|
|
946
|
+
function dr(e) {
|
|
947
|
+
if (!V.value || Kn.value || document.activeElement !== V.value || !J.value.length) return;
|
|
948
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
949
|
if (!t && !n && !r && !i && !a && !ee) return;
|
|
950
950
|
if (e.preventDefault(), e.stopPropagation(), ee) {
|
|
951
|
-
|
|
951
|
+
mr();
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
954
|
if (a) {
|
|
@@ -962,45 +962,45 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
962
962
|
}
|
|
963
963
|
if (t || n) {
|
|
964
964
|
let e = F.value;
|
|
965
|
-
e = e === null ? n ? 0 : J.value.length - 1 :
|
|
965
|
+
e = e === null ? n ? 0 : J.value.length - 1 : fr(e + (n ? 1 : -1)), F.value = e, Un.value = e;
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
968
|
if (!q.value.length) return;
|
|
969
969
|
let o = N.value?.index ?? null;
|
|
970
|
-
o = o === null ? i ? 0 : q.value.length - 1 :
|
|
971
|
-
let
|
|
972
|
-
|
|
970
|
+
o = o === null ? i ? 0 : q.value.length - 1 : pr(o + (i ? 1 : -1));
|
|
971
|
+
let te = q.value[o];
|
|
972
|
+
te && jn(te);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function fr(e) {
|
|
975
975
|
let t = J.value.length;
|
|
976
976
|
return t ? (e % t + t) % t : null;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function pr(e) {
|
|
979
979
|
let t = q.value.length;
|
|
980
980
|
return t ? (e % t + t) % t : null;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
F.value = null,
|
|
982
|
+
function mr() {
|
|
983
|
+
F.value = null, Un.value = null, N.value ? Mn(N.value) : N.value = null;
|
|
984
984
|
}
|
|
985
|
-
let
|
|
986
|
-
head:
|
|
987
|
-
body:
|
|
985
|
+
let $ = d(() => ({
|
|
986
|
+
head: Q.value.head,
|
|
987
|
+
body: Q.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
988
988
|
caption: I.value.a11y.translations.tableCaption,
|
|
989
989
|
notice: I.value.a11y.translations.tableAvailable
|
|
990
990
|
}));
|
|
991
991
|
return Te({
|
|
992
|
-
getData:
|
|
993
|
-
getImage:
|
|
992
|
+
getData: Zn,
|
|
993
|
+
getImage: Qn,
|
|
994
994
|
generateImage: mn,
|
|
995
|
-
generateSvg:
|
|
995
|
+
generateSvg: ar,
|
|
996
996
|
generatePdf: pn,
|
|
997
|
-
generateCsv:
|
|
997
|
+
generateCsv: Xn,
|
|
998
998
|
hideSeries: Sn,
|
|
999
999
|
showSeries: xn,
|
|
1000
|
-
toggleAnnotator:
|
|
1001
|
-
toggleTable:
|
|
1000
|
+
toggleAnnotator: qn,
|
|
1001
|
+
toggleTable: Jn,
|
|
1002
1002
|
toggleFullscreen: zn,
|
|
1003
|
-
copyAlt:
|
|
1003
|
+
copyAlt: cr
|
|
1004
1004
|
}), (e, n) => (b(), m("div", {
|
|
1005
1005
|
ref_key: "ridgelineChart",
|
|
1006
1006
|
ref: k,
|
|
@@ -1019,14 +1019,14 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1019
1019
|
h("div", {
|
|
1020
1020
|
id: `chart-instructions-${M.value}`,
|
|
1021
1021
|
class: "sr-only"
|
|
1022
|
-
}, [h("p", null, w(I.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1023
|
-
|
|
1022
|
+
}, [h("p", null, w(I.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
1023
|
+
$.value.body.length ? (b(), f(ke, {
|
|
1024
1024
|
key: 0,
|
|
1025
1025
|
uid: M.value,
|
|
1026
|
-
head:
|
|
1027
|
-
body:
|
|
1028
|
-
caption:
|
|
1029
|
-
notice:
|
|
1026
|
+
head: $.value.head,
|
|
1027
|
+
body: $.value.body,
|
|
1028
|
+
caption: $.value.caption,
|
|
1029
|
+
notice: $.value.notice
|
|
1030
1030
|
}, null, 8, [
|
|
1031
1031
|
"uid",
|
|
1032
1032
|
"head",
|
|
@@ -1034,21 +1034,21 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1034
1034
|
"caption",
|
|
1035
1035
|
"notice"
|
|
1036
1036
|
])) : p("", !0),
|
|
1037
|
-
I.value.userOptions.buttons.annotator && T(V) ? (b(), f(T(
|
|
1037
|
+
I.value.userOptions.buttons.annotator && T(V) ? (b(), f(T(At), {
|
|
1038
1038
|
key: 1,
|
|
1039
1039
|
color: I.value.style.chart.color,
|
|
1040
1040
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1041
|
-
active:
|
|
1041
|
+
active: Kn.value,
|
|
1042
1042
|
svgRef: T(V),
|
|
1043
1043
|
isCursorPointer: L.value,
|
|
1044
|
-
onClose:
|
|
1044
|
+
onClose: qn
|
|
1045
1045
|
}, {
|
|
1046
|
-
"annotator-action-close":
|
|
1047
|
-
"annotator-action-color":
|
|
1048
|
-
"annotator-action-draw":
|
|
1049
|
-
"annotator-action-undo":
|
|
1050
|
-
"annotator-action-redo":
|
|
1051
|
-
"annotator-action-delete":
|
|
1046
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1047
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
1048
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
|
|
1049
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
|
|
1050
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
|
|
1051
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
|
|
1052
1052
|
_: 3
|
|
1053
1053
|
}, 8, [
|
|
1054
1054
|
"color",
|
|
@@ -1083,7 +1083,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1086
|
-
I.value.userOptions.show &&
|
|
1086
|
+
I.value.userOptions.show && O.value && (T(cn) || T(on)) ? (b(), f(T(jt), {
|
|
1087
1087
|
ref_key: "userOptionsRef",
|
|
1088
1088
|
ref: Qt,
|
|
1089
1089
|
key: `user_option_${Gt.value}`,
|
|
@@ -1109,22 +1109,22 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1109
1109
|
isTooltip: !1,
|
|
1110
1110
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
1111
1111
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1112
|
-
isAnnotation:
|
|
1112
|
+
isAnnotation: Kn.value,
|
|
1113
1113
|
tableDialog: I.value.table.useDialog,
|
|
1114
1114
|
style: y({ visibility: T(cn) ? T(on) ? "visible" : "hidden" : "visible" }),
|
|
1115
1115
|
isCursorPointer: L.value,
|
|
1116
1116
|
onToggleFullscreen: zn,
|
|
1117
1117
|
onGeneratePdf: T(pn),
|
|
1118
|
-
onGenerateCsv:
|
|
1119
|
-
onGenerateImage:
|
|
1120
|
-
onGenerateSvg:
|
|
1121
|
-
onToggleTable:
|
|
1122
|
-
onToggleAnnotator:
|
|
1123
|
-
onCopyAlt:
|
|
1118
|
+
onGenerateCsv: Xn,
|
|
1119
|
+
onGenerateImage: or,
|
|
1120
|
+
onGenerateSvg: ar,
|
|
1121
|
+
onToggleTable: Jn,
|
|
1122
|
+
onToggleAnnotator: qn,
|
|
1123
|
+
onCopyAlt: cr
|
|
1124
1124
|
}, Pe({ _: 2 }, [
|
|
1125
1125
|
e.$slots.menuIcon ? {
|
|
1126
1126
|
name: "menuIcon",
|
|
1127
|
-
fn:
|
|
1127
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
1128
1128
|
isOpen: t,
|
|
1129
1129
|
color: n
|
|
1130
1130
|
})), void 0, !0)]),
|
|
@@ -1132,37 +1132,37 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1132
1132
|
} : void 0,
|
|
1133
1133
|
e.$slots.optionTooltip ? {
|
|
1134
1134
|
name: "optionTooltip",
|
|
1135
|
-
fn:
|
|
1135
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1136
1136
|
key: "1"
|
|
1137
1137
|
} : void 0,
|
|
1138
1138
|
e.$slots.optionPdf ? {
|
|
1139
1139
|
name: "optionPdf",
|
|
1140
|
-
fn:
|
|
1140
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1141
1141
|
key: "2"
|
|
1142
1142
|
} : void 0,
|
|
1143
1143
|
e.$slots.optionCsv ? {
|
|
1144
1144
|
name: "optionCsv",
|
|
1145
|
-
fn:
|
|
1145
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1146
1146
|
key: "3"
|
|
1147
1147
|
} : void 0,
|
|
1148
1148
|
e.$slots.optionImg ? {
|
|
1149
1149
|
name: "optionImg",
|
|
1150
|
-
fn:
|
|
1150
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1151
1151
|
key: "4"
|
|
1152
1152
|
} : void 0,
|
|
1153
1153
|
e.$slots.optionSvg ? {
|
|
1154
1154
|
name: "optionSvg",
|
|
1155
|
-
fn:
|
|
1155
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1156
1156
|
key: "5"
|
|
1157
1157
|
} : void 0,
|
|
1158
1158
|
e.$slots.optionTable ? {
|
|
1159
1159
|
name: "optionTable",
|
|
1160
|
-
fn:
|
|
1160
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1161
1161
|
key: "6"
|
|
1162
1162
|
} : void 0,
|
|
1163
1163
|
e.$slots.optionFullscreen ? {
|
|
1164
1164
|
name: "optionFullscreen",
|
|
1165
|
-
fn:
|
|
1165
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
|
|
1166
1166
|
toggleFullscreen: t,
|
|
1167
1167
|
isFullscreen: n
|
|
1168
1168
|
})), void 0, !0)]),
|
|
@@ -1170,7 +1170,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1170
1170
|
} : void 0,
|
|
1171
1171
|
e.$slots.optionAnnotator ? {
|
|
1172
1172
|
name: "optionAnnotator",
|
|
1173
|
-
fn:
|
|
1173
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
|
|
1174
1174
|
toggleAnnotator: t,
|
|
1175
1175
|
isAnnotator: n
|
|
1176
1176
|
})), void 0, !0)]),
|
|
@@ -1178,17 +1178,17 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1178
1178
|
} : void 0,
|
|
1179
1179
|
e.$slots.optionAltCopy ? {
|
|
1180
1180
|
name: "optionAltCopy",
|
|
1181
|
-
fn:
|
|
1181
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
|
|
1182
1182
|
key: "9"
|
|
1183
1183
|
} : void 0,
|
|
1184
1184
|
e.$slots["custom-menu-before"] ? {
|
|
1185
1185
|
name: "custom-menu-before",
|
|
1186
|
-
fn:
|
|
1186
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1187
1187
|
key: "10"
|
|
1188
1188
|
} : void 0,
|
|
1189
1189
|
e.$slots["custom-menu-after"] ? {
|
|
1190
1190
|
name: "custom-menu-after",
|
|
1191
|
-
fn:
|
|
1191
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1192
1192
|
key: "11"
|
|
1193
1193
|
} : void 0
|
|
1194
1194
|
]), 1032, [
|
|
@@ -1217,7 +1217,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1217
1217
|
"isCursorPointer",
|
|
1218
1218
|
"onGeneratePdf"
|
|
1219
1219
|
])) : p("", !0),
|
|
1220
|
-
h("div",
|
|
1220
|
+
h("div", Ye, [(b(), m("svg", {
|
|
1221
1221
|
ref_key: "svgRef",
|
|
1222
1222
|
ref: V,
|
|
1223
1223
|
xmlns: T(le),
|
|
@@ -1229,11 +1229,11 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1229
1229
|
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${G.value.fullHeight <= 0 ? 10 : G.value.fullHeight}`,
|
|
1230
1230
|
style: y(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.chart.color};${I.value.responsive ? `height: ${Yt.value}px; width: 100%;` : ""}`),
|
|
1231
1231
|
tabindex: "0",
|
|
1232
|
-
onFocus:
|
|
1233
|
-
onBlur:
|
|
1234
|
-
onKeydown:
|
|
1232
|
+
onFocus: lr,
|
|
1233
|
+
onBlur: ur,
|
|
1234
|
+
onKeydown: dr
|
|
1235
1235
|
}, [
|
|
1236
|
-
Ie(T(
|
|
1236
|
+
Ie(T(Mt)),
|
|
1237
1237
|
h("defs", null, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("linearGradient", {
|
|
1238
1238
|
id: `gradient-${e.id}-${M.value}`,
|
|
1239
1239
|
x1: "50%",
|
|
@@ -1245,23 +1245,23 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1245
1245
|
offset: "0%",
|
|
1246
1246
|
"stop-color": e.color,
|
|
1247
1247
|
"stop-opacity": "1"
|
|
1248
|
-
}, null, 8,
|
|
1248
|
+
}, null, 8, Qe),
|
|
1249
1249
|
h("stop", {
|
|
1250
1250
|
offset: "30%",
|
|
1251
1251
|
"stop-color": e.color,
|
|
1252
1252
|
"stop-opacity": "0.7"
|
|
1253
|
-
}, null, 8,
|
|
1253
|
+
}, null, 8, $e),
|
|
1254
1254
|
h("stop", {
|
|
1255
1255
|
offset: "70%",
|
|
1256
1256
|
"stop-color": e.color,
|
|
1257
1257
|
"stop-opacity": "0.3"
|
|
1258
|
-
}, null, 8,
|
|
1258
|
+
}, null, 8, et),
|
|
1259
1259
|
h("stop", {
|
|
1260
1260
|
offset: "100%",
|
|
1261
1261
|
"stop-color": e.color,
|
|
1262
1262
|
"stop-opacity": "0.1"
|
|
1263
|
-
}, null, 8,
|
|
1264
|
-
], 8,
|
|
1263
|
+
}, null, 8, tt)
|
|
1264
|
+
], 8, Ze))), 256)), (b(!0), m(u, null, S(J.value, (e, t) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e, t) => (b(), m("linearGradient", {
|
|
1265
1265
|
key: `grad${e.id}`,
|
|
1266
1266
|
id: `gradient-single-${M.value}-${e.uid}`,
|
|
1267
1267
|
x1: "50%",
|
|
@@ -1273,25 +1273,25 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1273
1273
|
offset: "0%",
|
|
1274
1274
|
"stop-color": e.color,
|
|
1275
1275
|
"stop-opacity": "1"
|
|
1276
|
-
}, null, 8,
|
|
1276
|
+
}, null, 8, rt),
|
|
1277
1277
|
h("stop", {
|
|
1278
1278
|
offset: "30%",
|
|
1279
1279
|
"stop-color": e.color,
|
|
1280
1280
|
"stop-opacity": "0.7"
|
|
1281
|
-
}, null, 8,
|
|
1281
|
+
}, null, 8, it),
|
|
1282
1282
|
h("stop", {
|
|
1283
1283
|
offset: "70%",
|
|
1284
1284
|
"stop-color": e.color,
|
|
1285
1285
|
"stop-opacity": "0.3"
|
|
1286
|
-
}, null, 8,
|
|
1286
|
+
}, null, 8, at),
|
|
1287
1287
|
h("stop", {
|
|
1288
1288
|
offset: "100%",
|
|
1289
1289
|
"stop-color": e.color,
|
|
1290
1290
|
"stop-opacity": "0.1"
|
|
1291
|
-
}, null, 8,
|
|
1292
|
-
], 8,
|
|
1291
|
+
}, null, 8, ot)
|
|
1292
|
+
], 8, nt))), 128))], 64))), 256))]),
|
|
1293
1293
|
(b(!0), m(u, null, S(J.value, (t, n) => (b(), m("g", { key: `ds-${n}` }, [(b(!0), m(u, null, S(t.datapoints, (t, r) => (b(), m("g", { key: t.id }, [
|
|
1294
|
-
e.$slots.pattern ? (b(), m("g",
|
|
1294
|
+
e.$slots.pattern ? (b(), m("g", st, [h("defs", null, [C(e.$slots, "pattern", Le({ ref_for: !0 }, {
|
|
1295
1295
|
datapointIndex: n,
|
|
1296
1296
|
seriesIndex: r,
|
|
1297
1297
|
patternId: `pattern_${M.value}_${t.uid}`
|
|
@@ -1302,7 +1302,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1302
1302
|
"stroke-linecap": "round",
|
|
1303
1303
|
d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1304
1304
|
style: y({ opacity: I.value.style.chart.areas.opacity })
|
|
1305
|
-
}, null, 12,
|
|
1305
|
+
}, null, 12, ct),
|
|
1306
1306
|
h("path", {
|
|
1307
1307
|
fill: "none",
|
|
1308
1308
|
stroke: I.value.style.chart.areas.stroke.useSerieColor ? t.color : I.value.style.chart.areas.stroke.color,
|
|
@@ -1315,7 +1315,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1315
1315
|
strokeDasharray: t.pathLength,
|
|
1316
1316
|
strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
|
|
1317
1317
|
})
|
|
1318
|
-
}, null, 14,
|
|
1318
|
+
}, null, 14, lt),
|
|
1319
1319
|
h("path", {
|
|
1320
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
1321
|
stroke: "none",
|
|
@@ -1327,7 +1327,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1327
1327
|
strokeDasharray: t.pathLength,
|
|
1328
1328
|
strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
|
|
1329
1329
|
})
|
|
1330
|
-
}, null, 14,
|
|
1330
|
+
}, null, 14, ut),
|
|
1331
1331
|
I.value.style.chart.zeroLine.show ? (b(), m("path", {
|
|
1332
1332
|
key: 1,
|
|
1333
1333
|
stroke: I.value.style.chart.zeroLine.useSerieColor ? t.color : I.value.style.chart.zeroLine.stroke,
|
|
@@ -1335,7 +1335,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1335
1335
|
"stroke-width": I.value.style.chart.zeroLine.strokeWidth,
|
|
1336
1336
|
d: t.zeroPath,
|
|
1337
1337
|
"stroke-linecap": "round"
|
|
1338
|
-
}, null, 8,
|
|
1338
|
+
}, null, 8, dt)) : p("", !0),
|
|
1339
1339
|
I.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (b(!0), m(u, { key: 2 }, S(t.plots, (e) => (b(), m(u, null, [e.isMaxPoint ? (b(), m("line", {
|
|
1340
1340
|
key: 0,
|
|
1341
1341
|
x1: e.x,
|
|
@@ -1346,7 +1346,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1346
1346
|
"stroke-width": I.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1347
1347
|
"stroke-linecap": "round",
|
|
1348
1348
|
"stroke-dasharray": I.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1349
|
-
}, null, 8,
|
|
1349
|
+
}, null, 8, ft)) : p("", !0)], 64))), 256)) : p("", !0),
|
|
1350
1350
|
t.plots.length === 1 ? (b(), m("circle", {
|
|
1351
1351
|
key: 3,
|
|
1352
1352
|
cx: t.plots[0].x,
|
|
@@ -1356,7 +1356,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1356
1356
|
r: I.value.style.chart.selector.dot.radius,
|
|
1357
1357
|
fill: I.value.style.chart.selector.dot.useDatapointColor ? t.color : I.value.style.chart.selector.dot.fill,
|
|
1358
1358
|
style: { pointerEvents: "none" }
|
|
1359
|
-
}, null, 8,
|
|
1359
|
+
}, null, 8, pt)) : p("", !0)
|
|
1360
1360
|
]))), 128)), h("text", {
|
|
1361
1361
|
x: t.label.x,
|
|
1362
1362
|
y: t.label.y,
|
|
@@ -1365,11 +1365,11 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1365
1365
|
"font-weight": I.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1366
1366
|
fill: I.value.style.chart.yAxis.labels.color,
|
|
1367
1367
|
style: y({ cursor: I.value.style.chart.dialog.show && L.value ? "pointer" : "default" }),
|
|
1368
|
-
"text-decoration": I.value.style.chart.dialog.show && (
|
|
1369
|
-
onMouseenter: (e) =>
|
|
1370
|
-
onMouseleave:
|
|
1368
|
+
"text-decoration": I.value.style.chart.dialog.show && (Un.value === n || P.value && t.uid === P.value.uid || F.value === n) ? "underline" : "",
|
|
1369
|
+
onMouseenter: (e) => Wn(n),
|
|
1370
|
+
onMouseleave: Gn,
|
|
1371
1371
|
onClick: (e) => Hn(t)
|
|
1372
|
-
}, w(t.name), 45,
|
|
1372
|
+
}, w(t.name), 45, mt)]))), 128)),
|
|
1373
1373
|
I.value.style.chart.xAxis.labels.values.length ? (b(), m("g", {
|
|
1374
1374
|
key: 0,
|
|
1375
1375
|
ref_key: "timeLabelsEls",
|
|
@@ -1383,7 +1383,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1383
1383
|
transform: `translate(${n.selectorX}, ${G.value.top + n.height + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1384
1384
|
x: n.selectorX,
|
|
1385
1385
|
y: G.value.bottom + I.value.style.chart.xAxis.labels.offsetY
|
|
1386
|
-
}), () => [n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && N.value && N.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g",
|
|
1386
|
+
}), () => [n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && N.value && N.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g", ht, [String(n.label).includes("\n") ? (b(), m("text", {
|
|
1387
1387
|
key: 1,
|
|
1388
1388
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1389
1389
|
"font-size": I.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1399,7 +1399,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1399
1399
|
x: 0,
|
|
1400
1400
|
y: 0
|
|
1401
1401
|
})
|
|
1402
|
-
}, null, 12,
|
|
1402
|
+
}, null, 12, _t)) : (b(), m("text", {
|
|
1403
1403
|
key: 0,
|
|
1404
1404
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1405
1405
|
"font-size": I.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1408,7 +1408,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1408
1408
|
transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1409
1409
|
"text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1410
1410
|
style: y({ opacity: N.value ? N.value.index === r ? 1 : .2 : 1 })
|
|
1411
|
-
}, w(n.label), 13,
|
|
1411
|
+
}, w(n.label), 13, gt))])) : p("", !0)], !0)), 256))], 512)) : p("", !0),
|
|
1412
1412
|
h("g", null, [
|
|
1413
1413
|
(b(!0), m(u, null, S(q.value, (e, t) => (b(), m("rect", {
|
|
1414
1414
|
x: e.x,
|
|
@@ -1419,7 +1419,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1419
1419
|
onMouseenter: (t) => jn(e),
|
|
1420
1420
|
onMouseleave: (t) => Mn(e),
|
|
1421
1421
|
onClick: () => Nn(e)
|
|
1422
|
-
}, null, 40,
|
|
1422
|
+
}, null, 40, vt))), 256)),
|
|
1423
1423
|
I.value.style.chart.selector.show && N.value ? (b(), m("line", {
|
|
1424
1424
|
key: 0,
|
|
1425
1425
|
x1: N.value.selectorX,
|
|
@@ -1431,7 +1431,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1431
1431
|
"stroke-dasharray": I.value.style.chart.selector.strokeDasharray,
|
|
1432
1432
|
"stroke-linecap": "round",
|
|
1433
1433
|
style: { pointerEvents: "none" }
|
|
1434
|
-
}, null, 8,
|
|
1434
|
+
}, null, 8, yt)) : p("", !0),
|
|
1435
1435
|
N.value ? (b(!0), m(u, { key: 1 }, S(J.value, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.plots, (t, n) => (b(), m(u, null, [N.value && N.value.index === n ? (b(), m("circle", {
|
|
1436
1436
|
key: 0,
|
|
1437
1437
|
cx: t.x,
|
|
@@ -1441,16 +1441,16 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1441
1441
|
r: I.value.style.chart.selector.dot.radius,
|
|
1442
1442
|
fill: I.value.style.chart.selector.dot.useDatapointColor ? e.color : I.value.style.chart.selector.dot.fill,
|
|
1443
1443
|
style: { pointerEvents: "none" }
|
|
1444
|
-
}, null, 8,
|
|
1444
|
+
}, null, 8, bt)) : p("", !0), N.value && N.value.index === n ? (b(), m("text", {
|
|
1445
1445
|
key: 1,
|
|
1446
|
-
x: Fn(t.x, T(
|
|
1446
|
+
x: Fn(t.x, T(c)(I.value.style.chart.selector.labels.formatter, t.value, T(r)({
|
|
1447
1447
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1448
1448
|
v: t.value,
|
|
1449
1449
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1450
1450
|
r: I.value.style.chart.selector.labels.rounding
|
|
1451
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
1452
|
y: t.y + I.value.style.chart.selector.labels.fontSize / 3,
|
|
1453
|
-
"text-anchor": Fn(t.x, T(
|
|
1453
|
+
"text-anchor": Fn(t.x, T(c)(I.value.style.chart.selector.labels.formatter, t.value, T(r)({
|
|
1454
1454
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1455
1455
|
v: t.value,
|
|
1456
1456
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1459,12 +1459,12 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1459
1459
|
"font-size": I.value.style.chart.selector.labels.fontSize,
|
|
1460
1460
|
fill: I.value.style.chart.selector.labels.color,
|
|
1461
1461
|
style: { pointerEvents: "none" }
|
|
1462
|
-
}, w(T(
|
|
1462
|
+
}, w(T(c)(I.value.style.chart.selector.labels.formatter, t.value, T(r)({
|
|
1463
1463
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1464
1464
|
v: t.value,
|
|
1465
1465
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1466
1466
|
r: I.value.style.chart.selector.labels.rounding
|
|
1467
|
-
}))), 9,
|
|
1467
|
+
}))), 9, xt)) : p("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : p("", !0)
|
|
1468
1468
|
]),
|
|
1469
1469
|
C(e.$slots, "svg", { svg: {
|
|
1470
1470
|
...W.value,
|
|
@@ -1472,11 +1472,11 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1472
1472
|
isPrintingImg: T(dn) || T(fn) || $t.value,
|
|
1473
1473
|
isPrintingSvg: en.value
|
|
1474
1474
|
} }, void 0, !0)
|
|
1475
|
-
], 46,
|
|
1475
|
+
], 46, Xe)), e.$slots.hint ? (b(), m("div", St, [C(e.$slots, "hint", v(_({
|
|
1476
1476
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1477
1477
|
isVisible: tn.value
|
|
1478
1478
|
})), void 0, !0)])) : p("", !0)]),
|
|
1479
|
-
e.$slots.watermark ? (b(), m("div",
|
|
1479
|
+
e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(_({ isPrinting: T(dn) || T(fn) || $t.value || en.value })), void 0, !0)])) : p("", !0),
|
|
1480
1480
|
h("div", {
|
|
1481
1481
|
ref_key: "chartLegend",
|
|
1482
1482
|
ref: zt
|
|
@@ -1487,12 +1487,12 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1487
1487
|
isCursorPointer: L.value,
|
|
1488
1488
|
onClickMarker: n[0] ||= ({ legend: e }) => yn(e.id)
|
|
1489
1489
|
}, Pe({
|
|
1490
|
-
item:
|
|
1490
|
+
item: E(({ legend: e }) => [T(R) ? p("", !0) : (b(), m("div", {
|
|
1491
1491
|
key: 0,
|
|
1492
1492
|
style: y(`opacity:${Y.value.includes(e.id) ? .5 : 1}`),
|
|
1493
1493
|
onClick: (t) => e.segregate()
|
|
1494
|
-
}, w(e.name), 13,
|
|
1495
|
-
legendToggle:
|
|
1494
|
+
}, w(e.name), 13, wt))]),
|
|
1495
|
+
legendToggle: E(() => [X.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !T(R) ? (b(), f(Oe, {
|
|
1496
1496
|
key: 0,
|
|
1497
1497
|
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1498
1498
|
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1510,7 +1510,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1510
1510
|
_: 2
|
|
1511
1511
|
}, [e.$slots.pattern ? {
|
|
1512
1512
|
name: "legend-pattern",
|
|
1513
|
-
fn:
|
|
1513
|
+
fn: E(({ legend: e, index: t }) => [Ie(we, {
|
|
1514
1514
|
shape: e.shape,
|
|
1515
1515
|
radius: 30,
|
|
1516
1516
|
stroke: "none",
|
|
@@ -1532,24 +1532,24 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1532
1532
|
ref: Bt,
|
|
1533
1533
|
dir: "auto"
|
|
1534
1534
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1535
|
-
|
|
1535
|
+
O.value && I.value.userOptions.buttons.table ? (b(), f(Ve($n.value.component), Le({ key: 7 }, $n.value.props, {
|
|
1536
1536
|
ref_key: "tableUnit",
|
|
1537
1537
|
ref: Zt,
|
|
1538
|
-
onClose:
|
|
1538
|
+
onClose: er
|
|
1539
1539
|
}), Pe({
|
|
1540
|
-
content:
|
|
1540
|
+
content: E(() => [(b(), f(T(kt), {
|
|
1541
1541
|
key: `table_${Ut.value}`,
|
|
1542
|
-
colNames:
|
|
1543
|
-
head:
|
|
1544
|
-
body:
|
|
1545
|
-
config:
|
|
1546
|
-
title: I.value.table.useDialog ? "" :
|
|
1542
|
+
colNames: Q.value.colNames,
|
|
1543
|
+
head: Q.value.head,
|
|
1544
|
+
body: Q.value.body,
|
|
1545
|
+
config: Q.value.config,
|
|
1546
|
+
title: I.value.table.useDialog ? "" : $n.value.title,
|
|
1547
1547
|
withCloseButton: !I.value.table.useDialog,
|
|
1548
1548
|
isCursorPointer: L.value,
|
|
1549
|
-
onClose:
|
|
1549
|
+
onClose: er
|
|
1550
1550
|
}, {
|
|
1551
|
-
th:
|
|
1552
|
-
td:
|
|
1551
|
+
th: E(({ th: e }) => [h("div", { innerHTML: e }, null, 8, Tt)]),
|
|
1552
|
+
td: E(({ td: e }) => [Fe(w(e.name ? e.name : T(c)(I.value.style.chart.selector.labels.formatter, e, T(r)({
|
|
1553
1553
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1554
1554
|
v: e,
|
|
1555
1555
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1568,22 +1568,22 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1568
1568
|
_: 2
|
|
1569
1569
|
}, [I.value.table.useDialog ? {
|
|
1570
1570
|
name: "title",
|
|
1571
|
-
fn:
|
|
1571
|
+
fn: E(() => [Fe(w($n.value.title), 1)]),
|
|
1572
1572
|
key: "0"
|
|
1573
1573
|
} : void 0, I.value.table.useDialog ? {
|
|
1574
1574
|
name: "actions",
|
|
1575
|
-
fn:
|
|
1575
|
+
fn: E(() => [h("button", {
|
|
1576
1576
|
tabindex: "0",
|
|
1577
1577
|
class: "vue-ui-user-options-button",
|
|
1578
|
-
onClick: n[1] ||= (e) =>
|
|
1578
|
+
onClick: n[1] ||= (e) => Xn(I.value.userOptions.callbacks.csv),
|
|
1579
1579
|
style: y({ cursor: L.value ? "pointer" : "default" })
|
|
1580
|
-
}, [Ie(T(
|
|
1580
|
+
}, [Ie(T(Dt), {
|
|
1581
1581
|
name: "fileCsv",
|
|
1582
|
-
stroke:
|
|
1582
|
+
stroke: $n.value.props.color
|
|
1583
1583
|
}, null, 8, ["stroke"])], 4)]),
|
|
1584
1584
|
key: "1"
|
|
1585
1585
|
} : void 0]), 1040)) : p("", !0),
|
|
1586
|
-
I.value.style.chart.dialog.show ? (b(), f(T(
|
|
1586
|
+
I.value.style.chart.dialog.show ? (b(), f(T(Nt), {
|
|
1587
1587
|
key: 8,
|
|
1588
1588
|
ref_key: "dialog",
|
|
1589
1589
|
ref: Jt,
|
|
@@ -1597,12 +1597,12 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1597
1597
|
isCursorPointer: L.value,
|
|
1598
1598
|
withPadding: ""
|
|
1599
1599
|
}, {
|
|
1600
|
-
title:
|
|
1601
|
-
content:
|
|
1600
|
+
title: E(() => [Fe(w(P.value.name), 1)]),
|
|
1601
|
+
content: E(() => [P.value ? (b(), f(T(Et), {
|
|
1602
1602
|
key: 0,
|
|
1603
1603
|
config: Bn.value,
|
|
1604
1604
|
dataset: Vn.value,
|
|
1605
|
-
onCopyAlt:
|
|
1605
|
+
onCopyAlt: sr
|
|
1606
1606
|
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1607
1607
|
_: 1
|
|
1608
1608
|
}, 8, [
|
|
@@ -1615,8 +1615,8 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1615
1615
|
"isCursorPointer"
|
|
1616
1616
|
])) : p("", !0),
|
|
1617
1617
|
C(e.$slots, "skeleton", {}, () => [T(R) ? (b(), f(_e, { key: 0 })) : p("", !0)], !0)
|
|
1618
|
-
], 46,
|
|
1618
|
+
], 46, qe));
|
|
1619
1619
|
}
|
|
1620
1620
|
}, [["__scopeId", "data-v-ca7f8c0d"]]);
|
|
1621
1621
|
//#endregion
|
|
1622
|
-
export {
|
|
1622
|
+
export { Ke as n, Et as t };
|