vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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 +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { c as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
2
|
+
import { At as t, B as n, C as r, E as i, Gt as a, K as o, M as s, N as ee, Nt as c, Q as l, Vt as te, W as ne, Y as re, Z as ie, et as ae, ft as oe, i as se, mt as ce, qt as le, r as ue, t as de, x as fe } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as me } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as he } from "./usePrinter-B-X_Pub0.js";
|
|
6
|
+
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as ye } from "./useNestedProp-D8NuRneO.js";
|
|
9
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
+
import { t as Se } from "./img-CNdXiUfZ.js";
|
|
12
|
+
import { n as Ce } from "./Title-Cr3jP7Qd.js";
|
|
13
|
+
import { t as we } from "./Shape-B5ksaGa1.js";
|
|
14
|
+
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { c as Ee } from "./canvas-lib-BOP_HS11.js";
|
|
16
|
+
import { t as De } from "./useResponsive-BfnK0KxU.js";
|
|
17
|
+
import { t as Oe } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
+
import { t as ke } from "./BaseLegendToggle-BrQ2OlzI.js";
|
|
19
|
+
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
+
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
+
import { t as Ne } from "./Legend-5VQGLnmx.js";
|
|
23
|
+
import { t as Pe } from "./vue_ui_ridgeline-VM8_mx4J.js";
|
|
24
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Ve, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as w, toRefs as We, unref as T, watch as Ge, watchEffect as Ke, withCtx as E } from "vue";
|
|
24
25
|
//#region src/components/vue-ui-ridgeline.vue
|
|
25
|
-
var qe = /* @__PURE__ */ e({ default: () =>
|
|
26
|
+
var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
|
|
26
27
|
"xmlns",
|
|
27
28
|
"aria-describedby",
|
|
28
29
|
"viewBox"
|
|
29
|
-
], Qe =
|
|
30
|
+
], Qe = { key: 0 }, $e = ["fill", "d"], et = [
|
|
30
31
|
"stroke",
|
|
31
32
|
"stroke-width",
|
|
32
33
|
"d"
|
|
33
|
-
],
|
|
34
|
+
], tt = ["fill", "d"], nt = [
|
|
34
35
|
"stroke",
|
|
35
36
|
"stroke-dasharray",
|
|
36
37
|
"stroke-width",
|
|
37
38
|
"d"
|
|
38
|
-
],
|
|
39
|
+
], rt = [
|
|
39
40
|
"x1",
|
|
40
41
|
"y1",
|
|
41
42
|
"x2",
|
|
@@ -43,14 +44,14 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
43
44
|
"stroke",
|
|
44
45
|
"stroke-width",
|
|
45
46
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
47
|
+
], it = [
|
|
47
48
|
"cx",
|
|
48
49
|
"cy",
|
|
49
50
|
"stroke",
|
|
50
51
|
"stroke-width",
|
|
51
52
|
"r",
|
|
52
53
|
"fill"
|
|
53
|
-
],
|
|
54
|
+
], at = [
|
|
54
55
|
"x",
|
|
55
56
|
"y",
|
|
56
57
|
"font-size",
|
|
@@ -59,20 +60,20 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
59
60
|
"text-decoration",
|
|
60
61
|
"onMouseenter",
|
|
61
62
|
"onClick"
|
|
62
|
-
],
|
|
63
|
+
], ot = { key: 0 }, st = [
|
|
63
64
|
"font-size",
|
|
64
65
|
"fill",
|
|
65
66
|
"font-weight",
|
|
66
67
|
"transform",
|
|
67
68
|
"text-anchor"
|
|
68
|
-
],
|
|
69
|
+
], ct = [
|
|
69
70
|
"font-size",
|
|
70
71
|
"fill",
|
|
71
72
|
"font-weight",
|
|
72
73
|
"transform",
|
|
73
74
|
"text-anchor",
|
|
74
75
|
"innerHTML"
|
|
75
|
-
],
|
|
76
|
+
], lt = [
|
|
76
77
|
"x",
|
|
77
78
|
"y",
|
|
78
79
|
"width",
|
|
@@ -80,7 +81,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
80
81
|
"onMouseenter",
|
|
81
82
|
"onMouseleave",
|
|
82
83
|
"onClick"
|
|
83
|
-
],
|
|
84
|
+
], ut = [
|
|
84
85
|
"x1",
|
|
85
86
|
"x2",
|
|
86
87
|
"y1",
|
|
@@ -88,20 +89,20 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
88
89
|
"stroke",
|
|
89
90
|
"stroke-width",
|
|
90
91
|
"stroke-dasharray"
|
|
91
|
-
],
|
|
92
|
+
], dt = [
|
|
92
93
|
"cx",
|
|
93
94
|
"cy",
|
|
94
95
|
"stroke",
|
|
95
96
|
"stroke-width",
|
|
96
97
|
"r",
|
|
97
98
|
"fill"
|
|
98
|
-
],
|
|
99
|
+
], ft = [
|
|
99
100
|
"x",
|
|
100
101
|
"y",
|
|
101
102
|
"text-anchor",
|
|
102
103
|
"font-size",
|
|
103
104
|
"fill"
|
|
104
|
-
],
|
|
105
|
+
], pt = {
|
|
105
106
|
key: 0,
|
|
106
107
|
style: {
|
|
107
108
|
position: "absolute",
|
|
@@ -111,10 +112,10 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
111
112
|
},
|
|
112
113
|
"data-dom-to-png-ignore": "",
|
|
113
114
|
"aria-hidden": "true"
|
|
114
|
-
},
|
|
115
|
+
}, mt = {
|
|
115
116
|
key: 5,
|
|
116
117
|
class: "vue-data-ui-watermark"
|
|
117
|
-
},
|
|
118
|
+
}, ht = ["onClick"], gt = ["innerHTML"], _t = /*#__PURE__*/ Te({
|
|
118
119
|
__name: "vue-ui-ridgeline",
|
|
119
120
|
props: {
|
|
120
121
|
config: {
|
|
@@ -136,35 +137,35 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
136
137
|
"selectX",
|
|
137
138
|
"copyAlt"
|
|
138
139
|
],
|
|
139
|
-
setup(e, { expose:
|
|
140
|
-
let
|
|
140
|
+
setup(e, { expose: Te, emit: qe }) {
|
|
141
|
+
let _t = g(() => import("./vue-ui-xy-CUt6sU1s.js").then((e) => e.n)), vt = g(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), yt = g(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), bt = g(() => import("./DataTable-ByZy5gt1.js")), xt = g(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), St = g(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Ct = g(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), wt = g(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_ridgeline: Tt } = me(), { isThemeValid: Et, warnInvalidTheme: Dt } = be(), D = e, Ot = d({
|
|
141
142
|
get() {
|
|
142
143
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
143
144
|
},
|
|
144
145
|
set(e) {
|
|
145
146
|
return e;
|
|
146
147
|
}
|
|
147
|
-
}),
|
|
148
|
-
function
|
|
149
|
-
let e =
|
|
150
|
-
userConfig:
|
|
151
|
-
defaultConfig:
|
|
148
|
+
}), kt = qe, O = x(null), At = x(null), jt = x(null), k = Ue(null), A = Ue(null), Mt = x(null), Nt = x(null), Pt = x(0), Ft = x(0), It = x(0), j = x(o()), Lt = x(0), Rt = x(0), zt = x(512), M = x(null), N = x(null), Bt = x(null), Vt = x(0), Ht = x(null), P = x(null), Ut = x(null), Wt = x(!1), Gt = x(!1), F = x(null), Kt = x(!1);
|
|
149
|
+
function qt() {
|
|
150
|
+
let e = ye({
|
|
151
|
+
userConfig: D.config,
|
|
152
|
+
defaultConfig: Tt
|
|
152
153
|
}), t = e.theme;
|
|
153
154
|
if (!t) return e;
|
|
154
|
-
if (!
|
|
155
|
-
let n =
|
|
156
|
-
userConfig:
|
|
155
|
+
if (!Et.value(e)) return Dt(e), e;
|
|
156
|
+
let n = ye({
|
|
157
|
+
userConfig: Pe[t] || D.config,
|
|
157
158
|
defaultConfig: e
|
|
158
|
-
}), r =
|
|
159
|
-
userConfig:
|
|
159
|
+
}), r = ye({
|
|
160
|
+
userConfig: D.config,
|
|
160
161
|
defaultConfig: n
|
|
161
162
|
});
|
|
162
163
|
return {
|
|
163
164
|
...r,
|
|
164
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
165
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || c
|
|
165
166
|
};
|
|
166
167
|
}
|
|
167
|
-
let I =
|
|
168
|
+
let I = x(qt()), L = d(() => I.value.userOptions.useCursorPointer), Jt = d(() => le({
|
|
168
169
|
defaultConfig: {
|
|
169
170
|
userOptions: { show: !1 },
|
|
170
171
|
table: { show: !1 },
|
|
@@ -186,11 +187,11 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
186
187
|
} }
|
|
187
188
|
},
|
|
188
189
|
userConfig: I.value.skeletonConfig ?? {}
|
|
189
|
-
})), { loading: R, FINAL_DATASET: z, manualLoading:
|
|
190
|
-
...
|
|
190
|
+
})), { loading: R, FINAL_DATASET: z, manualLoading: Yt } = ge({
|
|
191
|
+
...We(D),
|
|
191
192
|
FINAL_CONFIG: I,
|
|
192
|
-
prepareConfig:
|
|
193
|
-
skeletonDataset:
|
|
193
|
+
prepareConfig: qt,
|
|
194
|
+
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
194
195
|
{
|
|
195
196
|
name: "_",
|
|
196
197
|
datapoints: [{
|
|
@@ -420,226 +421,226 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
420
421
|
}]
|
|
421
422
|
}
|
|
422
423
|
],
|
|
423
|
-
skeletonConfig:
|
|
424
|
+
skeletonConfig: le({
|
|
424
425
|
defaultConfig: I.value,
|
|
425
|
-
userConfig:
|
|
426
|
+
userConfig: Jt.value
|
|
426
427
|
})
|
|
427
|
-
}), B =
|
|
428
|
-
function
|
|
428
|
+
}), B = x(Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight)), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = je({ config: I.value }), { svgRef: V } = Me({ config: I.value.style.chart.title }), $t = d(() => !!I.value.debug);
|
|
429
|
+
function en() {
|
|
429
430
|
let e = z.value || [];
|
|
430
431
|
if (!Array.isArray(e) || e.length === 0) {
|
|
431
|
-
|
|
432
|
+
ae({
|
|
432
433
|
componentName: "VueUiRidgeline",
|
|
433
434
|
type: "dataset",
|
|
434
|
-
debug:
|
|
435
|
-
}),
|
|
435
|
+
debug: $t.value
|
|
436
|
+
}), Yt.value = !0;
|
|
436
437
|
return;
|
|
437
438
|
}
|
|
438
|
-
if (e.forEach((e,
|
|
439
|
-
|
|
439
|
+
if (e.forEach((e, t) => {
|
|
440
|
+
oe({
|
|
440
441
|
datasetObject: e,
|
|
441
442
|
requiredAttributes: ["name", "datapoints"]
|
|
442
443
|
}).forEach((e) => {
|
|
443
|
-
|
|
444
|
+
Ot.value = !1, ae({
|
|
444
445
|
componentName: "VueUiRidgeline",
|
|
445
446
|
type: "datasetSerieAttribute",
|
|
446
447
|
property: e,
|
|
447
|
-
index:
|
|
448
|
-
debug:
|
|
448
|
+
index: t,
|
|
449
|
+
debug: $t.value
|
|
449
450
|
});
|
|
450
|
-
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e,
|
|
451
|
-
|
|
451
|
+
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
452
|
+
oe({
|
|
452
453
|
datasetObject: e,
|
|
453
454
|
requiredAttributes: ["name", "values"]
|
|
454
455
|
}).forEach((e) => {
|
|
455
|
-
|
|
456
|
+
Ot.value = !1, ae({
|
|
456
457
|
componentName: "VueUiRidgeline",
|
|
457
458
|
type: "datasetSerieAttribute",
|
|
458
459
|
property: `datapoint.${e}`,
|
|
459
|
-
index: `${
|
|
460
|
-
debug:
|
|
460
|
+
index: `${t}-${n}`,
|
|
461
|
+
debug: $t.value
|
|
461
462
|
});
|
|
462
463
|
});
|
|
463
464
|
});
|
|
464
|
-
}),
|
|
465
|
-
let t =
|
|
466
|
-
let { width: t, height: n } =
|
|
467
|
-
chart:
|
|
468
|
-
title: I.value.style.chart.title.text ?
|
|
469
|
-
legend: I.value.style.chart.legend.show ?
|
|
470
|
-
source:
|
|
471
|
-
noTitle:
|
|
465
|
+
}), Rt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), t(D.dataset) || (Yt.value = I.value.loading), I.value.responsive) {
|
|
466
|
+
let t = Ee(() => {
|
|
467
|
+
let { width: t, height: n } = De({
|
|
468
|
+
chart: O.value,
|
|
469
|
+
title: I.value.style.chart.title.text ? At.value : null,
|
|
470
|
+
legend: I.value.style.chart.legend.show ? jt.value : null,
|
|
471
|
+
source: Mt.value,
|
|
472
|
+
noTitle: Nt.value,
|
|
472
473
|
padding: I.value.style.chart.padding
|
|
473
474
|
});
|
|
474
475
|
requestAnimationFrame(() => {
|
|
475
|
-
|
|
476
|
+
zt.value = t, B.value = e.length ? n / e.length : 0, Vt.value = n - 12;
|
|
476
477
|
});
|
|
477
478
|
});
|
|
478
|
-
|
|
479
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = O.value?.parentNode || null, A.value && k.value.observe(A.value);
|
|
479
480
|
}
|
|
480
481
|
}
|
|
481
|
-
|
|
482
|
-
|
|
482
|
+
Ve(() => {
|
|
483
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
|
|
483
484
|
});
|
|
484
|
-
let { isPrinting:
|
|
485
|
-
elementId: `vue-ui-ridgeline_${
|
|
485
|
+
let { isPrinting: tn, isImaging: nn, generatePdf: rn, generateImage: an } = he({
|
|
486
|
+
elementId: `vue-ui-ridgeline_${j.value}`,
|
|
486
487
|
fileName: I.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
487
488
|
options: I.value.userOptions.print
|
|
488
|
-
}),
|
|
489
|
-
|
|
490
|
-
Array.isArray(e) && e.length && (
|
|
489
|
+
}), on = d(() => I.value.userOptions.show && !I.value.style.chart.title.text), sn = d(() => r(I.value.customPalette)), H = x({ showTable: I.value.table.show });
|
|
490
|
+
Ge(() => z.value, async (e) => {
|
|
491
|
+
Array.isArray(e) && e.length && (Xt.value = !I.value.userOptions.showOnChartHover, await ze(), en(), Pt.value += 1, It.value += 1, H.value.showTable = I.value.table.show);
|
|
491
492
|
}, {
|
|
492
493
|
deep: !0,
|
|
493
494
|
immediate: !0
|
|
494
|
-
}),
|
|
495
|
-
Array.isArray(e) && e.length > 0 && (
|
|
496
|
-
}, { deep: !0 }),
|
|
497
|
-
e || (await
|
|
498
|
-
}, { immediate: !0 }),
|
|
499
|
-
I.value =
|
|
495
|
+
}), Ge(() => D.dataset, (e) => {
|
|
496
|
+
Array.isArray(e) && e.length > 0 && (Yt.value = !1);
|
|
497
|
+
}, { deep: !0 }), Ge(() => R.value, async (e) => {
|
|
498
|
+
e || (await ze(), en());
|
|
499
|
+
}, { immediate: !0 }), Ge(() => D.config, () => {
|
|
500
|
+
I.value = qt(z.value || null), Xt.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, Pt.value += 1, It.value += 1;
|
|
500
501
|
}, { deep: !0 });
|
|
501
|
-
let
|
|
502
|
-
function
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}),
|
|
502
|
+
let cn = d(() => I.value.style.chart.areas.height / I.value.style.chart.areas.rowHeight);
|
|
503
|
+
function ln() {
|
|
504
|
+
Y.value.length ? Y.value = [] : X.value.forEach((e) => {
|
|
505
|
+
Y.value.push(e.id);
|
|
506
|
+
}), kt("selectLegend", J.value);
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
-
|
|
508
|
+
function un(e) {
|
|
509
|
+
Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), kt("selectLegend", J.value);
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
511
|
+
function dn(e) {
|
|
512
|
+
return X.value.length ? X.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
|
}
|
|
513
|
-
function
|
|
514
|
-
let t =
|
|
515
|
-
t !== null &&
|
|
514
|
+
function fn(e) {
|
|
515
|
+
let t = dn(e);
|
|
516
|
+
t !== null && Y.value.includes(t.id) && un(t.id);
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
-
let t =
|
|
519
|
-
t !== null && (
|
|
518
|
+
function pn(e) {
|
|
519
|
+
let t = dn(e);
|
|
520
|
+
t !== null && (Y.value.includes(t.id) || un(t.id));
|
|
520
521
|
}
|
|
521
|
-
let U =
|
|
522
|
+
let U = d(() => Ot.value ? (z.value || []).map((e) => ({
|
|
522
523
|
...e,
|
|
523
|
-
labelLen:
|
|
524
|
-
uid:
|
|
524
|
+
labelLen: Dn(e.name, I.value.style.chart.yAxis.labels.fontSize),
|
|
525
|
+
uid: o(),
|
|
525
526
|
datapoints: e.datapoints.map((e, t) => {
|
|
526
|
-
let
|
|
527
|
+
let n = e.color ? fe(e.color) : sn.value[t] || c[t] || c[t % c.length], r = te(e.name);
|
|
527
528
|
return {
|
|
528
529
|
...e,
|
|
529
|
-
color:
|
|
530
|
-
id:
|
|
530
|
+
color: n,
|
|
531
|
+
id: r
|
|
531
532
|
};
|
|
532
533
|
})
|
|
533
|
-
})) : []),
|
|
534
|
+
})) : []), mn = d(() => I.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * cn.value + I.value.style.chart.padding.bottom), W = d(() => {
|
|
534
535
|
let e = I.value.style.chart.padding;
|
|
535
536
|
return {
|
|
536
|
-
width:
|
|
537
|
-
height:
|
|
537
|
+
width: zt.value,
|
|
538
|
+
height: mn.value,
|
|
538
539
|
padding: e
|
|
539
540
|
};
|
|
540
|
-
}),
|
|
541
|
-
|
|
541
|
+
}), hn = d(() => W.value.width), gn = d(() => W.value.height), _n = x(0), vn = Ee((e) => {
|
|
542
|
+
_n.value = e;
|
|
542
543
|
}, 100);
|
|
543
544
|
Ke((e) => {
|
|
544
|
-
let t =
|
|
545
|
+
let t = Ht.value;
|
|
545
546
|
if (!t) return;
|
|
546
547
|
let n = new ResizeObserver((e) => {
|
|
547
|
-
|
|
548
|
+
vn(e[0].contentRect.height);
|
|
548
549
|
});
|
|
549
550
|
n.observe(t), e(() => n.disconnect());
|
|
550
|
-
}),
|
|
551
|
-
|
|
551
|
+
}), Ve(() => {
|
|
552
|
+
_n.value = 0;
|
|
552
553
|
});
|
|
553
|
-
let G =
|
|
554
|
-
fullHeight: W.value.height +
|
|
554
|
+
let G = d(() => ({
|
|
555
|
+
fullHeight: W.value.height + _n.value,
|
|
555
556
|
top: W.value.padding.top,
|
|
556
557
|
left: W.value.padding.left,
|
|
557
558
|
right: W.value.width - W.value.padding.right,
|
|
558
559
|
bottom: W.value.height - I.value.style.chart.padding.bottom,
|
|
559
560
|
width: W.value.width - (W.value.padding.left + W.value.padding.right)
|
|
560
|
-
})),
|
|
561
|
+
})), yn = d(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), K = x([]), bn = 0;
|
|
561
562
|
Ke(() => {
|
|
562
|
-
let e = ++
|
|
563
|
+
let e = ++bn;
|
|
563
564
|
(async () => {
|
|
564
|
-
let t = await
|
|
565
|
+
let t = await pe({
|
|
565
566
|
values: I.value.style.chart.xAxis.labels.values,
|
|
566
|
-
maxDatapoints:
|
|
567
|
+
maxDatapoints: yn.value,
|
|
567
568
|
formatter: I.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
568
569
|
start: 0,
|
|
569
570
|
end: I.value.style.chart.xAxis.labels.values.length
|
|
570
571
|
});
|
|
571
|
-
e ===
|
|
572
|
+
e === bn && (K.value = t);
|
|
572
573
|
})();
|
|
573
574
|
});
|
|
574
|
-
let
|
|
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) /
|
|
576
|
-
for (let e = 0; e <
|
|
575
|
+
let q = d(() => {
|
|
576
|
+
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) / yn.value, r = [];
|
|
577
|
+
for (let e = 0; e < yn.value; e += 1) r.push({
|
|
577
578
|
selectorX: t + n * e,
|
|
578
579
|
x: t + n * e - n / 2,
|
|
579
580
|
y: G.value.top,
|
|
580
|
-
label: I.value.style.chart.xAxis.labels.values[e] ?
|
|
581
|
+
label: I.value.style.chart.xAxis.labels.values[e] ? K.value[e]?.text ?? "" : "",
|
|
581
582
|
index: e,
|
|
582
583
|
width: n,
|
|
583
|
-
height:
|
|
584
|
+
height: mn.value
|
|
584
585
|
});
|
|
585
586
|
return r;
|
|
586
587
|
});
|
|
587
|
-
function
|
|
588
|
+
function xn(e) {
|
|
588
589
|
return U.value.map((t) => t.datapoints.map((t) => ({
|
|
589
590
|
dp: t,
|
|
590
591
|
selected: t.values[e.index]
|
|
591
592
|
})));
|
|
592
593
|
}
|
|
593
|
-
function
|
|
594
|
-
|
|
595
|
-
let t =
|
|
594
|
+
function Sn(e) {
|
|
595
|
+
M.value = e;
|
|
596
|
+
let t = xn(e);
|
|
596
597
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
597
598
|
datapoint: t,
|
|
598
599
|
seriesIndex: e.index
|
|
599
600
|
});
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
let t =
|
|
602
|
+
function Cn(e) {
|
|
603
|
+
M.value = null;
|
|
604
|
+
let t = xn(e);
|
|
604
605
|
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
605
606
|
datapoint: t,
|
|
606
607
|
seriesIndex: e.index
|
|
607
608
|
});
|
|
608
609
|
}
|
|
609
|
-
function
|
|
610
|
-
let t =
|
|
610
|
+
function wn(e) {
|
|
611
|
+
let t = xn(e);
|
|
611
612
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
612
613
|
datapoint: t,
|
|
613
614
|
seriesIndex: e.index
|
|
614
|
-
}),
|
|
615
|
+
}), kt("selectX", t);
|
|
615
616
|
}
|
|
616
|
-
function
|
|
617
|
+
function Tn(e, t) {
|
|
617
618
|
return e.length * t / 2 + t;
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
-
return e +
|
|
620
|
+
function En(e, t, n) {
|
|
621
|
+
return e + Tn(t, n) > G.value.right;
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
+
function Dn(e, t, n = "sans-serif") {
|
|
623
624
|
let r = document.createElement("canvas").getContext("2d");
|
|
624
625
|
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
625
626
|
}
|
|
626
|
-
let
|
|
627
|
+
let J = d(() => {
|
|
627
628
|
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))),
|
|
629
|
+
let e = Math.max(...U.value.map((e) => e.labelLen)), t = Math.max(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = 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) / yn.value, c = Math.abs(Math.min(r, 0)), l = t + c;
|
|
629
630
|
function te(e) {
|
|
630
|
-
return isNaN(e /
|
|
631
|
+
return isNaN(e / l) ? 0 : e / l;
|
|
631
632
|
}
|
|
632
633
|
return U.value.map((e, t) => {
|
|
633
|
-
let
|
|
634
|
+
let r = G.value.top + B.value * t, l = G.value.top + r + B.value * cn.value * (1 - te(c));
|
|
634
635
|
return {
|
|
635
636
|
...e,
|
|
636
637
|
label: {
|
|
637
638
|
x: i - I.value.style.chart.yAxis.labels.fontSize,
|
|
638
|
-
y:
|
|
639
|
+
y: l
|
|
639
640
|
},
|
|
640
641
|
datapoints: e.datapoints.map((e) => {
|
|
641
|
-
let t = e.values.map((t,
|
|
642
|
-
let
|
|
642
|
+
let t = e.values.map((t, n) => {
|
|
643
|
+
let o = isNaN(t) || [
|
|
643
644
|
void 0,
|
|
644
645
|
null,
|
|
645
646
|
"NaN",
|
|
@@ -648,16 +649,16 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
648
649
|
-Infinity
|
|
649
650
|
].includes(t) ? 0 : t || 0;
|
|
650
651
|
return {
|
|
651
|
-
x: i + a *
|
|
652
|
-
y: G.value.top +
|
|
652
|
+
x: i + a * n,
|
|
653
|
+
y: G.value.top + r + B.value * cn.value * (1 - te(o + c)),
|
|
653
654
|
value: t,
|
|
654
655
|
isMaxPoint: t === Math.max(...e.values),
|
|
655
|
-
zero:
|
|
656
|
+
zero: l
|
|
656
657
|
};
|
|
657
|
-
}), ne = `${
|
|
658
|
+
}), ne = `${s(t, l, !1, !1)}`, re = `M ${i},${l} ${n(t)} ${t.at(-1).x},${l}`, ie = `M ${i},${l} ${t.at(-1).x},${l}`, ae = `M ${ee(t)}`, oe = `M ${n(t)}`, se = ce(I.value.style.chart.areas.smooth ? ae : oe);
|
|
658
659
|
return {
|
|
659
660
|
...e,
|
|
660
|
-
uid:
|
|
661
|
+
uid: o(),
|
|
661
662
|
plots: t,
|
|
662
663
|
smoothPath: ne,
|
|
663
664
|
straightPath: re,
|
|
@@ -666,48 +667,48 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
666
667
|
smoothPathRidge: ae,
|
|
667
668
|
straightPathRidge: oe
|
|
668
669
|
};
|
|
669
|
-
}).filter((e) => !
|
|
670
|
+
}).filter((e) => !Y.value.includes(e.id))
|
|
670
671
|
};
|
|
671
672
|
});
|
|
672
|
-
}),
|
|
673
|
-
function
|
|
673
|
+
}), Y = x([]);
|
|
674
|
+
function On(e) {
|
|
674
675
|
let t = /* @__PURE__ */ new Map();
|
|
675
676
|
return e.forEach((e) => {
|
|
676
|
-
e.datapoints.forEach((e,
|
|
677
|
-
let
|
|
678
|
-
t.has(
|
|
679
|
-
id:
|
|
677
|
+
e.datapoints.forEach((e, n) => {
|
|
678
|
+
let r = te(e.name);
|
|
679
|
+
t.has(r) || t.set(r, {
|
|
680
|
+
id: r,
|
|
680
681
|
name: e.name,
|
|
681
682
|
color: e.color,
|
|
682
683
|
shape: "circle",
|
|
683
|
-
segregate: () =>
|
|
684
|
-
isSegregated:
|
|
685
|
-
opacity:
|
|
684
|
+
segregate: () => un(r),
|
|
685
|
+
isSegregated: Y.value.includes(r),
|
|
686
|
+
opacity: Y.value.includes(r) ? .5 : 1
|
|
686
687
|
});
|
|
687
688
|
});
|
|
688
689
|
}), Array.from(t.values());
|
|
689
690
|
}
|
|
690
|
-
let
|
|
691
|
+
let X = d(() => On(U.value)), kn = d(() => ({
|
|
691
692
|
cy: "donut-div-legend",
|
|
692
693
|
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
693
694
|
color: I.value.style.chart.legend.color,
|
|
694
695
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
695
696
|
paddingBottom: 12,
|
|
696
697
|
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
697
|
-
})),
|
|
698
|
-
function
|
|
699
|
-
|
|
698
|
+
})), Z = x(!1);
|
|
699
|
+
function An(e) {
|
|
700
|
+
Z.value = e, Lt.value += 1;
|
|
700
701
|
}
|
|
701
|
-
let
|
|
702
|
-
function
|
|
703
|
-
|
|
702
|
+
let jn = x({}), Mn = x([]);
|
|
703
|
+
function Nn(e) {
|
|
704
|
+
kt("selectDatapoint", e), I.value.style.chart.dialog.show && (Mn.value = e.datapoints.map((e) => ({
|
|
704
705
|
name: e.name,
|
|
705
706
|
color: e.color,
|
|
706
707
|
type: "line",
|
|
707
708
|
useArea: !0,
|
|
708
709
|
smooth: I.value.style.chart.areas.smooth,
|
|
709
710
|
series: e.values
|
|
710
|
-
})),
|
|
711
|
+
})), N.value = e, jn.value = ie({
|
|
711
712
|
...I.value.style.chart.dialog.xyChart,
|
|
712
713
|
responsive: !0,
|
|
713
714
|
chart: {
|
|
@@ -744,30 +745,30 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
744
745
|
useCursorPointer: I.value.userOptions.useCursorPointer
|
|
745
746
|
}
|
|
746
747
|
}
|
|
747
|
-
}),
|
|
748
|
+
}), Bt.value && Bt.value.open());
|
|
748
749
|
}
|
|
749
|
-
let
|
|
750
|
-
function
|
|
751
|
-
|
|
750
|
+
let Pn = x(null);
|
|
751
|
+
function Fn(e) {
|
|
752
|
+
Pn.value = e;
|
|
752
753
|
}
|
|
753
|
-
function
|
|
754
|
-
|
|
754
|
+
function In() {
|
|
755
|
+
Pn.value = null;
|
|
755
756
|
}
|
|
756
|
-
let
|
|
757
|
-
function
|
|
758
|
-
|
|
757
|
+
let Ln = x(!1);
|
|
758
|
+
function Rn() {
|
|
759
|
+
Ln.value = !Ln.value;
|
|
759
760
|
}
|
|
760
|
-
function
|
|
761
|
+
function zn() {
|
|
761
762
|
H.value.showTable = !H.value.showTable;
|
|
762
763
|
}
|
|
763
|
-
let
|
|
764
|
+
let Bn = d(() => ({ body: J.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
764
765
|
...t,
|
|
765
766
|
rowName: `${e.name}: ${t.name}`
|
|
766
767
|
}))).map((e) => [{
|
|
767
768
|
name: e.rowName,
|
|
768
769
|
color: e.color
|
|
769
|
-
}, ...e.values]) })),
|
|
770
|
-
let e = [I.value.table.columnNames.series, ...
|
|
770
|
+
}, ...e.values]) })), Q = d(() => {
|
|
771
|
+
let e = [I.value.table.columnNames.series, ...K.value.map((e) => e.text)], t = {
|
|
771
772
|
th: {
|
|
772
773
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
773
774
|
color: I.value.table.th.color,
|
|
@@ -781,28 +782,28 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
781
782
|
breakpoint: I.value.table.responsiveBreakpoint
|
|
782
783
|
};
|
|
783
784
|
return {
|
|
784
|
-
colNames: [I.value.table.columnNames.series, ...
|
|
785
|
+
colNames: [I.value.table.columnNames.series, ...K.value.map((e) => e.text)],
|
|
785
786
|
head: e,
|
|
786
|
-
body:
|
|
787
|
+
body: Bn.value.body,
|
|
787
788
|
config: t
|
|
788
789
|
};
|
|
789
790
|
});
|
|
790
|
-
function
|
|
791
|
-
|
|
792
|
-
let t = [[I.value.table.columnNames.series, ...
|
|
793
|
-
e ? e(n) :
|
|
791
|
+
function Vn(e = null) {
|
|
792
|
+
ze(() => {
|
|
793
|
+
let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...Bn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = i([[I.value.style.chart.title.text], [I.value.style.chart.title.subtitle.text]].concat(t));
|
|
794
|
+
e ? e(n) : l({
|
|
794
795
|
csvContent: n,
|
|
795
796
|
title: I.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
796
797
|
});
|
|
797
798
|
});
|
|
798
799
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
800
|
+
function Hn() {
|
|
801
|
+
return J.value;
|
|
801
802
|
}
|
|
802
|
-
async function
|
|
803
|
-
if (!
|
|
804
|
-
let { width: t, height: n } =
|
|
805
|
-
domElement:
|
|
803
|
+
async function Un({ scale: e = 2 } = {}) {
|
|
804
|
+
if (!O.value) return;
|
|
805
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
806
|
+
domElement: O.value,
|
|
806
807
|
base64: !0,
|
|
807
808
|
img: !0,
|
|
808
809
|
scale: e
|
|
@@ -816,12 +817,12 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
816
817
|
aspectRatio: r
|
|
817
818
|
};
|
|
818
819
|
}
|
|
819
|
-
|
|
820
|
-
timeLabelsEls:
|
|
821
|
-
timeLabels:
|
|
822
|
-
slicer:
|
|
820
|
+
xe({
|
|
821
|
+
timeLabelsEls: Ht,
|
|
822
|
+
timeLabels: K,
|
|
823
|
+
slicer: d(() => ({
|
|
823
824
|
min: 0,
|
|
824
|
-
max:
|
|
825
|
+
max: yn.value
|
|
825
826
|
})),
|
|
826
827
|
configRef: I,
|
|
827
828
|
rotationPath: [
|
|
@@ -840,23 +841,23 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
840
841
|
"enable"
|
|
841
842
|
],
|
|
842
843
|
isAutoSize: !1,
|
|
843
|
-
width:
|
|
844
|
-
height:
|
|
844
|
+
width: hn,
|
|
845
|
+
height: gn,
|
|
845
846
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
846
847
|
angle: I.value.style.chart.xAxis.labels.autoRotate.angle
|
|
847
848
|
});
|
|
848
|
-
let
|
|
849
|
+
let Wn = d(() => {
|
|
849
850
|
let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
|
|
850
851
|
return {
|
|
851
|
-
component: e ?
|
|
852
|
+
component: e ? wt : yt,
|
|
852
853
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
853
854
|
props: e ? {
|
|
854
855
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
855
856
|
color: I.value.table.th.color,
|
|
856
857
|
headerColor: I.value.table.th.color,
|
|
857
858
|
headerBg: I.value.table.th.backgroundColor,
|
|
858
|
-
isFullscreen:
|
|
859
|
-
fullscreenParent:
|
|
859
|
+
isFullscreen: Z.value,
|
|
860
|
+
fullscreenParent: O.value,
|
|
860
861
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
861
862
|
isCursorPointer: L.value
|
|
862
863
|
} : {
|
|
@@ -876,179 +877,179 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
876
877
|
}
|
|
877
878
|
};
|
|
878
879
|
});
|
|
879
|
-
|
|
880
|
-
I.value.table.show || (e && I.value.table.useDialog &&
|
|
880
|
+
Ge(() => H.value.showTable, (e) => {
|
|
881
|
+
I.value.table.show || (e && I.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
|
|
881
882
|
});
|
|
882
|
-
function
|
|
883
|
-
H.value.showTable = !1,
|
|
883
|
+
function Gn() {
|
|
884
|
+
H.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
884
885
|
}
|
|
885
|
-
let
|
|
886
|
+
let Kn = d(() => I.value.style.chart.backgroundColor), qn = d(() => ({
|
|
886
887
|
...I.value.style.chart.legend,
|
|
887
888
|
position: "bottom"
|
|
888
|
-
})), { exportSvg:
|
|
889
|
+
})), { exportSvg: Jn, getSvg: Yn } = ve({
|
|
889
890
|
svg: V,
|
|
890
|
-
title:
|
|
891
|
-
legend:
|
|
892
|
-
legendItems:
|
|
893
|
-
backgroundColor:
|
|
891
|
+
title: d(() => I.value.style.chart.title),
|
|
892
|
+
legend: qn,
|
|
893
|
+
legendItems: X,
|
|
894
|
+
backgroundColor: Kn
|
|
894
895
|
});
|
|
895
|
-
async function
|
|
896
|
-
|
|
896
|
+
async function Xn({ isCb: e }) {
|
|
897
|
+
Gt.value = !0, await ze();
|
|
897
898
|
try {
|
|
898
899
|
if (e) {
|
|
899
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
900
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Yn();
|
|
900
901
|
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
901
902
|
blob: e,
|
|
902
903
|
url: t,
|
|
903
904
|
text: n,
|
|
904
905
|
dataUrl: r
|
|
905
906
|
}));
|
|
906
|
-
} else await Promise.resolve(
|
|
907
|
+
} else await Promise.resolve(Jn());
|
|
907
908
|
} finally {
|
|
908
|
-
|
|
909
|
+
Gt.value = !1;
|
|
909
910
|
}
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
+
function Zn(e) {
|
|
912
913
|
if (e?.stage === "start") {
|
|
913
|
-
|
|
914
|
+
Wt.value = !0;
|
|
914
915
|
return;
|
|
915
916
|
}
|
|
916
917
|
if (e?.stage === "end") {
|
|
917
|
-
|
|
918
|
+
Wt.value = !1;
|
|
918
919
|
return;
|
|
919
920
|
}
|
|
920
|
-
|
|
921
|
+
an();
|
|
921
922
|
}
|
|
922
|
-
function
|
|
923
|
-
|
|
923
|
+
function Qn(e) {
|
|
924
|
+
$n("xy-zoom", e.dataset, e.config);
|
|
924
925
|
}
|
|
925
|
-
async function
|
|
926
|
-
if (
|
|
926
|
+
async function $n(e = "main-chart", t = null, n = null) {
|
|
927
|
+
if (kt("copyAlt", {
|
|
927
928
|
source: e,
|
|
928
|
-
config: e === "main-chart" ? I.value :
|
|
929
|
-
dataset: e === "main-chart" ?
|
|
929
|
+
config: e === "main-chart" ? I.value : jn.value,
|
|
930
|
+
dataset: e === "main-chart" ? J.value : Mn.value
|
|
930
931
|
}), !I.value.userOptions.callbacks.altCopy) {
|
|
931
932
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
932
933
|
return;
|
|
933
934
|
}
|
|
934
935
|
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
935
936
|
source: e,
|
|
936
|
-
config: e === "main-chart" ? I.value :
|
|
937
|
-
dataset: e === "main-chart" ?
|
|
937
|
+
config: e === "main-chart" ? I.value : jn.value,
|
|
938
|
+
dataset: e === "main-chart" ? J.value : Mn.value
|
|
938
939
|
}));
|
|
939
940
|
}
|
|
940
|
-
function
|
|
941
|
-
F.value = null,
|
|
941
|
+
function er() {
|
|
942
|
+
F.value = null, Kt.value = !0;
|
|
942
943
|
}
|
|
943
|
-
function
|
|
944
|
-
|
|
944
|
+
function tr() {
|
|
945
|
+
ar(), Kt.value = !1;
|
|
945
946
|
}
|
|
946
|
-
function
|
|
947
|
-
if (!V.value ||
|
|
948
|
-
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ",
|
|
949
|
-
if (!t && !n && !r && !i && !a && !
|
|
950
|
-
if (e.preventDefault(), e.stopPropagation(),
|
|
951
|
-
|
|
947
|
+
function nr(e) {
|
|
948
|
+
if (!V.value || Ln.value || document.activeElement !== V.value || !J.value.length) return;
|
|
949
|
+
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
950
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
951
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
952
|
+
ar();
|
|
952
953
|
return;
|
|
953
954
|
}
|
|
954
955
|
if (a) {
|
|
955
956
|
if (F.value !== null) {
|
|
956
|
-
let e =
|
|
957
|
-
e &&
|
|
957
|
+
let e = J.value[F.value];
|
|
958
|
+
e && Nn(e);
|
|
958
959
|
return;
|
|
959
960
|
}
|
|
960
|
-
|
|
961
|
+
M.value && wn(M.value);
|
|
961
962
|
return;
|
|
962
963
|
}
|
|
963
964
|
if (t || n) {
|
|
964
965
|
let e = F.value;
|
|
965
|
-
e = e === null ? n ? 0 :
|
|
966
|
+
e = e === null ? n ? 0 : J.value.length - 1 : rr(e + (n ? 1 : -1)), F.value = e, Pn.value = e;
|
|
966
967
|
return;
|
|
967
968
|
}
|
|
968
|
-
if (!
|
|
969
|
-
let
|
|
970
|
-
|
|
971
|
-
let
|
|
972
|
-
|
|
969
|
+
if (!q.value.length) return;
|
|
970
|
+
let s = M.value?.index ?? null;
|
|
971
|
+
s = s === null ? i ? 0 : q.value.length - 1 : ir(s + (i ? 1 : -1));
|
|
972
|
+
let ee = q.value[s];
|
|
973
|
+
ee && Sn(ee);
|
|
973
974
|
}
|
|
974
|
-
function
|
|
975
|
-
let t =
|
|
975
|
+
function rr(e) {
|
|
976
|
+
let t = J.value.length;
|
|
976
977
|
return t ? (e % t + t) % t : null;
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
-
let t =
|
|
979
|
+
function ir(e) {
|
|
980
|
+
let t = q.value.length;
|
|
980
981
|
return t ? (e % t + t) % t : null;
|
|
981
982
|
}
|
|
982
|
-
function
|
|
983
|
-
F.value = null,
|
|
983
|
+
function ar() {
|
|
984
|
+
F.value = null, Pn.value = null, M.value ? Cn(M.value) : M.value = null;
|
|
984
985
|
}
|
|
985
|
-
let
|
|
986
|
-
head:
|
|
987
|
-
body:
|
|
986
|
+
let $ = d(() => ({
|
|
987
|
+
head: Q.value.head,
|
|
988
|
+
body: Q.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
988
989
|
caption: I.value.a11y.translations.tableCaption,
|
|
989
990
|
notice: I.value.a11y.translations.tableAvailable
|
|
990
991
|
}));
|
|
991
|
-
return
|
|
992
|
-
getData:
|
|
993
|
-
getImage:
|
|
994
|
-
generateImage:
|
|
995
|
-
generateSvg:
|
|
996
|
-
generatePdf:
|
|
997
|
-
generateCsv:
|
|
998
|
-
hideSeries:
|
|
999
|
-
showSeries:
|
|
1000
|
-
toggleAnnotator:
|
|
1001
|
-
toggleTable:
|
|
1002
|
-
toggleFullscreen:
|
|
1003
|
-
copyAlt:
|
|
1004
|
-
}), (e, t) => (
|
|
992
|
+
return Te({
|
|
993
|
+
getData: Hn,
|
|
994
|
+
getImage: Un,
|
|
995
|
+
generateImage: an,
|
|
996
|
+
generateSvg: Xn,
|
|
997
|
+
generatePdf: rn,
|
|
998
|
+
generateCsv: Vn,
|
|
999
|
+
hideSeries: pn,
|
|
1000
|
+
showSeries: fn,
|
|
1001
|
+
toggleAnnotator: Rn,
|
|
1002
|
+
toggleTable: zn,
|
|
1003
|
+
toggleFullscreen: An,
|
|
1004
|
+
copyAlt: $n
|
|
1005
|
+
}), (e, t) => (b(), m("div", {
|
|
1005
1006
|
ref_key: "ridgelineChart",
|
|
1006
|
-
ref:
|
|
1007
|
-
class:
|
|
1008
|
-
id: `vue-ui-ridgeline_${
|
|
1009
|
-
style:
|
|
1007
|
+
ref: O,
|
|
1008
|
+
class: Be(`vue-data-ui-component vue-ui-ridgeline ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1009
|
+
id: `vue-ui-ridgeline_${j.value}`,
|
|
1010
|
+
style: y({
|
|
1010
1011
|
fontFamily: I.value.style.fontFamily,
|
|
1011
1012
|
width: "100%",
|
|
1012
1013
|
textAlign: "center",
|
|
1013
1014
|
background: I.value.style.chart.backgroundColor,
|
|
1014
1015
|
height: I.value.responsive ? "100%" : void 0
|
|
1015
1016
|
}),
|
|
1016
|
-
onMouseenter: t[3] ||= () =>
|
|
1017
|
-
onMouseleave: t[4] ||= () =>
|
|
1017
|
+
onMouseenter: t[3] ||= () => T(Zt)(!0),
|
|
1018
|
+
onMouseleave: t[4] ||= () => T(Zt)(!1)
|
|
1018
1019
|
}, [
|
|
1019
|
-
|
|
1020
|
-
id: `chart-instructions-${
|
|
1020
|
+
h("div", {
|
|
1021
|
+
id: `chart-instructions-${j.value}`,
|
|
1021
1022
|
class: "sr-only"
|
|
1022
|
-
}, [
|
|
1023
|
-
|
|
1023
|
+
}, [h("p", null, w(I.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1024
|
+
$.value.body.length ? (b(), f(Ae, {
|
|
1024
1025
|
key: 0,
|
|
1025
|
-
uid:
|
|
1026
|
-
head:
|
|
1027
|
-
body:
|
|
1028
|
-
caption:
|
|
1029
|
-
notice:
|
|
1026
|
+
uid: j.value,
|
|
1027
|
+
head: $.value.head,
|
|
1028
|
+
body: $.value.body,
|
|
1029
|
+
caption: $.value.caption,
|
|
1030
|
+
notice: $.value.notice
|
|
1030
1031
|
}, null, 8, [
|
|
1031
1032
|
"uid",
|
|
1032
1033
|
"head",
|
|
1033
1034
|
"body",
|
|
1034
1035
|
"caption",
|
|
1035
1036
|
"notice"
|
|
1036
|
-
])) :
|
|
1037
|
-
I.value.userOptions.buttons.annotator &&
|
|
1037
|
+
])) : p("", !0),
|
|
1038
|
+
I.value.userOptions.buttons.annotator && T(V) ? (b(), f(T(xt), {
|
|
1038
1039
|
key: 1,
|
|
1039
1040
|
color: I.value.style.chart.color,
|
|
1040
1041
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1041
|
-
active:
|
|
1042
|
-
svgRef:
|
|
1042
|
+
active: Ln.value,
|
|
1043
|
+
svgRef: T(V),
|
|
1043
1044
|
isCursorPointer: L.value,
|
|
1044
|
-
onClose:
|
|
1045
|
+
onClose: Rn
|
|
1045
1046
|
}, {
|
|
1046
|
-
"annotator-action-close":
|
|
1047
|
-
"annotator-action-color":
|
|
1048
|
-
"annotator-action-draw":
|
|
1049
|
-
"annotator-action-undo":
|
|
1050
|
-
"annotator-action-redo":
|
|
1051
|
-
"annotator-action-delete":
|
|
1047
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1048
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
1049
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
|
|
1050
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
|
|
1051
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
|
|
1052
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
|
|
1052
1053
|
_: 3
|
|
1053
1054
|
}, 8, [
|
|
1054
1055
|
"color",
|
|
@@ -1056,22 +1057,22 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1056
1057
|
"active",
|
|
1057
1058
|
"svgRef",
|
|
1058
1059
|
"isCursorPointer"
|
|
1059
|
-
])) :
|
|
1060
|
-
|
|
1061
|
-
|
|
1060
|
+
])) : p("", !0),
|
|
1061
|
+
C(e.$slots, "userConfig", {}, void 0, !0),
|
|
1062
|
+
on.value ? (b(), m("div", {
|
|
1062
1063
|
key: 2,
|
|
1063
1064
|
ref_key: "noTitle",
|
|
1064
|
-
ref:
|
|
1065
|
+
ref: Nt,
|
|
1065
1066
|
class: "vue-data-ui-no-title-space",
|
|
1066
1067
|
style: "height:36px; width: 100%;background:transparent"
|
|
1067
|
-
}, null, 512)) :
|
|
1068
|
-
I.value.style.chart.title.text ? (
|
|
1068
|
+
}, null, 512)) : p("", !0),
|
|
1069
|
+
I.value.style.chart.title.text ? (b(), m("div", {
|
|
1069
1070
|
key: 3,
|
|
1070
1071
|
ref_key: "chartTitle",
|
|
1071
|
-
ref:
|
|
1072
|
+
ref: At,
|
|
1072
1073
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1073
|
-
}, [(
|
|
1074
|
-
key: `title_${
|
|
1074
|
+
}, [(b(), f(Ce, {
|
|
1075
|
+
key: `title_${Pt.value}`,
|
|
1075
1076
|
config: {
|
|
1076
1077
|
title: {
|
|
1077
1078
|
cy: "ridgeline-div-title",
|
|
@@ -1082,16 +1083,16 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1082
1083
|
...I.value.style.chart.title.subtitle
|
|
1083
1084
|
}
|
|
1084
1085
|
}
|
|
1085
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1086
|
-
I.value.userOptions.show &&
|
|
1086
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1087
|
+
I.value.userOptions.show && Ot.value && (T(Qt) || T(Xt)) ? (b(), f(T(St), {
|
|
1087
1088
|
ref_key: "userOptionsRef",
|
|
1088
|
-
ref:
|
|
1089
|
-
key: `user_option_${
|
|
1089
|
+
ref: Ut,
|
|
1090
|
+
key: `user_option_${Lt.value}`,
|
|
1090
1091
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1091
1092
|
color: I.value.style.chart.color,
|
|
1092
|
-
isPrinting:
|
|
1093
|
-
isImaging:
|
|
1094
|
-
uid:
|
|
1093
|
+
isPrinting: T(tn),
|
|
1094
|
+
isImaging: T(nn),
|
|
1095
|
+
uid: j.value,
|
|
1095
1096
|
hasTooltip: !1,
|
|
1096
1097
|
callbacks: I.value.userOptions.callbacks,
|
|
1097
1098
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
@@ -1102,29 +1103,29 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1102
1103
|
hasLabel: !1,
|
|
1103
1104
|
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1104
1105
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1105
|
-
isFullscreen:
|
|
1106
|
+
isFullscreen: Z.value,
|
|
1106
1107
|
printScale: I.value.userOptions.print.scale,
|
|
1107
|
-
chartElement:
|
|
1108
|
+
chartElement: O.value,
|
|
1108
1109
|
position: I.value.userOptions.position,
|
|
1109
1110
|
isTooltip: !1,
|
|
1110
1111
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
1111
1112
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1112
|
-
isAnnotation:
|
|
1113
|
+
isAnnotation: Ln.value,
|
|
1113
1114
|
tableDialog: I.value.table.useDialog,
|
|
1114
|
-
style:
|
|
1115
|
+
style: y({ visibility: T(Qt) ? T(Xt) ? "visible" : "hidden" : "visible" }),
|
|
1115
1116
|
isCursorPointer: L.value,
|
|
1116
|
-
onToggleFullscreen:
|
|
1117
|
-
onGeneratePdf:
|
|
1118
|
-
onGenerateCsv:
|
|
1119
|
-
onGenerateImage:
|
|
1120
|
-
onGenerateSvg:
|
|
1121
|
-
onToggleTable:
|
|
1122
|
-
onToggleAnnotator:
|
|
1123
|
-
onCopyAlt:
|
|
1124
|
-
},
|
|
1117
|
+
onToggleFullscreen: An,
|
|
1118
|
+
onGeneratePdf: T(rn),
|
|
1119
|
+
onGenerateCsv: Vn,
|
|
1120
|
+
onGenerateImage: Zn,
|
|
1121
|
+
onGenerateSvg: Xn,
|
|
1122
|
+
onToggleTable: zn,
|
|
1123
|
+
onToggleAnnotator: Rn,
|
|
1124
|
+
onCopyAlt: $n
|
|
1125
|
+
}, Fe({ _: 2 }, [
|
|
1125
1126
|
e.$slots.menuIcon ? {
|
|
1126
1127
|
name: "menuIcon",
|
|
1127
|
-
fn:
|
|
1128
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
1128
1129
|
isOpen: t,
|
|
1129
1130
|
color: n
|
|
1130
1131
|
})), void 0, !0)]),
|
|
@@ -1132,37 +1133,37 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1132
1133
|
} : void 0,
|
|
1133
1134
|
e.$slots.optionTooltip ? {
|
|
1134
1135
|
name: "optionTooltip",
|
|
1135
|
-
fn:
|
|
1136
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1136
1137
|
key: "1"
|
|
1137
1138
|
} : void 0,
|
|
1138
1139
|
e.$slots.optionPdf ? {
|
|
1139
1140
|
name: "optionPdf",
|
|
1140
|
-
fn:
|
|
1141
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1141
1142
|
key: "2"
|
|
1142
1143
|
} : void 0,
|
|
1143
1144
|
e.$slots.optionCsv ? {
|
|
1144
1145
|
name: "optionCsv",
|
|
1145
|
-
fn:
|
|
1146
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1146
1147
|
key: "3"
|
|
1147
1148
|
} : void 0,
|
|
1148
1149
|
e.$slots.optionImg ? {
|
|
1149
1150
|
name: "optionImg",
|
|
1150
|
-
fn:
|
|
1151
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1151
1152
|
key: "4"
|
|
1152
1153
|
} : void 0,
|
|
1153
1154
|
e.$slots.optionSvg ? {
|
|
1154
1155
|
name: "optionSvg",
|
|
1155
|
-
fn:
|
|
1156
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1156
1157
|
key: "5"
|
|
1157
1158
|
} : void 0,
|
|
1158
1159
|
e.$slots.optionTable ? {
|
|
1159
1160
|
name: "optionTable",
|
|
1160
|
-
fn:
|
|
1161
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1161
1162
|
key: "6"
|
|
1162
1163
|
} : void 0,
|
|
1163
1164
|
e.$slots.optionFullscreen ? {
|
|
1164
1165
|
name: "optionFullscreen",
|
|
1165
|
-
fn:
|
|
1166
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
|
|
1166
1167
|
toggleFullscreen: t,
|
|
1167
1168
|
isFullscreen: n
|
|
1168
1169
|
})), void 0, !0)]),
|
|
@@ -1170,7 +1171,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1170
1171
|
} : void 0,
|
|
1171
1172
|
e.$slots.optionAnnotator ? {
|
|
1172
1173
|
name: "optionAnnotator",
|
|
1173
|
-
fn:
|
|
1174
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
|
|
1174
1175
|
toggleAnnotator: t,
|
|
1175
1176
|
isAnnotator: n
|
|
1176
1177
|
})), void 0, !0)]),
|
|
@@ -1178,17 +1179,17 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1178
1179
|
} : void 0,
|
|
1179
1180
|
e.$slots.optionAltCopy ? {
|
|
1180
1181
|
name: "optionAltCopy",
|
|
1181
|
-
fn:
|
|
1182
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
|
|
1182
1183
|
key: "9"
|
|
1183
1184
|
} : void 0,
|
|
1184
1185
|
e.$slots["custom-menu-before"] ? {
|
|
1185
1186
|
name: "custom-menu-before",
|
|
1186
|
-
fn:
|
|
1187
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1187
1188
|
key: "10"
|
|
1188
1189
|
} : void 0,
|
|
1189
1190
|
e.$slots["custom-menu-after"] ? {
|
|
1190
1191
|
name: "custom-menu-after",
|
|
1191
|
-
fn:
|
|
1192
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1192
1193
|
key: "11"
|
|
1193
1194
|
} : void 0
|
|
1194
1195
|
]), 1032, [
|
|
@@ -1216,138 +1217,143 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1216
1217
|
"style",
|
|
1217
1218
|
"isCursorPointer",
|
|
1218
1219
|
"onGeneratePdf"
|
|
1219
|
-
])) :
|
|
1220
|
-
|
|
1220
|
+
])) : p("", !0),
|
|
1221
|
+
h("div", Xe, [(b(), m("svg", {
|
|
1221
1222
|
ref_key: "svgRef",
|
|
1222
1223
|
ref: V,
|
|
1223
|
-
xmlns:
|
|
1224
|
-
"aria-describedby": `chart-instructions-${
|
|
1225
|
-
class:
|
|
1226
|
-
"vue-data-ui-fullscreen--on":
|
|
1227
|
-
"vue-data-ui-fulscreen--off": !
|
|
1224
|
+
xmlns: T(de),
|
|
1225
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1226
|
+
class: Be({
|
|
1227
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
1228
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
1228
1229
|
}),
|
|
1229
1230
|
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${G.value.fullHeight <= 0 ? 10 : G.value.fullHeight}`,
|
|
1230
|
-
style:
|
|
1231
|
+
style: y(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.chart.color};${I.value.responsive ? `height: ${Vt.value}px; width: 100%;` : ""}`),
|
|
1231
1232
|
tabindex: "0",
|
|
1232
|
-
onFocus:
|
|
1233
|
-
onBlur:
|
|
1234
|
-
onKeydown:
|
|
1233
|
+
onFocus: er,
|
|
1234
|
+
onBlur: tr,
|
|
1235
|
+
onKeydown: nr
|
|
1235
1236
|
}, [
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1237
|
+
Le(T(Ct)),
|
|
1238
|
+
h("defs", null, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), f(Oe, {
|
|
1239
|
+
t: "linear",
|
|
1240
|
+
id: `gradient-${e.id}-${j.value}`,
|
|
1241
|
+
key: `gradient-${e.id}-${j.value}`,
|
|
1239
1242
|
x1: "50%",
|
|
1240
1243
|
y1: "0%",
|
|
1241
1244
|
x2: "50%",
|
|
1242
|
-
y2: "100%"
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1245
|
+
y2: "100%",
|
|
1246
|
+
stops: [
|
|
1247
|
+
[
|
|
1248
|
+
"0%",
|
|
1249
|
+
e.color,
|
|
1250
|
+
1
|
|
1251
|
+
],
|
|
1252
|
+
[
|
|
1253
|
+
"30%",
|
|
1254
|
+
e.color,
|
|
1255
|
+
.7
|
|
1256
|
+
],
|
|
1257
|
+
[
|
|
1258
|
+
"70%",
|
|
1259
|
+
e.color,
|
|
1260
|
+
.3
|
|
1261
|
+
],
|
|
1262
|
+
[
|
|
1263
|
+
"100%",
|
|
1264
|
+
e.color,
|
|
1265
|
+
.1
|
|
1266
|
+
]
|
|
1267
|
+
]
|
|
1268
|
+
}, null, 8, ["id", "stops"]))), 128)), (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(), f(Oe, {
|
|
1269
|
+
t: "linear",
|
|
1265
1270
|
key: `grad${e.id}`,
|
|
1266
|
-
id: `gradient-single-${
|
|
1271
|
+
id: `gradient-single-${j.value}-${e.uid}`,
|
|
1267
1272
|
x1: "50%",
|
|
1268
1273
|
y1: "0%",
|
|
1269
1274
|
x2: "50%",
|
|
1270
|
-
y2: "100%"
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1275
|
+
y2: "100%",
|
|
1276
|
+
stops: [
|
|
1277
|
+
[
|
|
1278
|
+
"0%",
|
|
1279
|
+
e.color,
|
|
1280
|
+
1
|
|
1281
|
+
],
|
|
1282
|
+
[
|
|
1283
|
+
"30%",
|
|
1284
|
+
e.color,
|
|
1285
|
+
.7
|
|
1286
|
+
],
|
|
1287
|
+
[
|
|
1288
|
+
"70%",
|
|
1289
|
+
e.color,
|
|
1290
|
+
.3
|
|
1291
|
+
],
|
|
1292
|
+
[
|
|
1293
|
+
"100%",
|
|
1294
|
+
e.color,
|
|
1295
|
+
.1
|
|
1296
|
+
]
|
|
1297
|
+
]
|
|
1298
|
+
}, null, 8, ["id", "stops"]))), 128))], 64))), 256))]),
|
|
1299
|
+
(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 }, [
|
|
1300
|
+
e.$slots.pattern ? (b(), m("g", Qe, [h("defs", null, [C(e.$slots, "pattern", Re({ ref_for: !0 }, {
|
|
1295
1301
|
datapointIndex: n,
|
|
1296
1302
|
seriesIndex: r,
|
|
1297
|
-
patternId: `pattern_${
|
|
1298
|
-
}), void 0, !0)])])) :
|
|
1299
|
-
|
|
1300
|
-
fill: e.$slots.pattern ? `url(#pattern_${
|
|
1303
|
+
patternId: `pattern_${j.value}_${t.uid}`
|
|
1304
|
+
}), void 0, !0)])])) : p("", !0),
|
|
1305
|
+
h("path", {
|
|
1306
|
+
fill: e.$slots.pattern ? `url(#pattern_${j.value}_${t.uid})` : I.value.style.chart.backgroundColor,
|
|
1301
1307
|
stroke: "none",
|
|
1302
1308
|
"stroke-linecap": "round",
|
|
1303
1309
|
d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1304
|
-
style:
|
|
1305
|
-
}, null, 12,
|
|
1306
|
-
|
|
1310
|
+
style: y({ opacity: I.value.style.chart.areas.opacity })
|
|
1311
|
+
}, null, 12, $e),
|
|
1312
|
+
h("path", {
|
|
1307
1313
|
fill: "none",
|
|
1308
1314
|
stroke: I.value.style.chart.areas.stroke.useSerieColor ? t.color : I.value.style.chart.areas.stroke.color,
|
|
1309
1315
|
"stroke-width": I.value.style.chart.areas.strokeWidth,
|
|
1310
1316
|
d: I.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
|
|
1311
1317
|
"stroke-linecap": "round",
|
|
1312
1318
|
"stroke-linejoin": "round",
|
|
1313
|
-
class:
|
|
1314
|
-
style:
|
|
1319
|
+
class: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !T(R) }),
|
|
1320
|
+
style: y({
|
|
1315
1321
|
strokeDasharray: t.pathLength,
|
|
1316
1322
|
strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
|
|
1317
1323
|
})
|
|
1318
|
-
}, null, 14,
|
|
1319
|
-
|
|
1320
|
-
fill: I.value.style.chart.areas.useGradient ? I.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${
|
|
1324
|
+
}, null, 14, et),
|
|
1325
|
+
h("path", {
|
|
1326
|
+
fill: I.value.style.chart.areas.useGradient ? I.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${j.value})` : `url(#gradient-single-${j.value}-${t.uid})` : t.color,
|
|
1321
1327
|
stroke: "none",
|
|
1322
1328
|
d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1323
1329
|
"stroke-linecap": "round",
|
|
1324
1330
|
"stroke-linejoin": "round",
|
|
1325
|
-
class:
|
|
1326
|
-
style:
|
|
1331
|
+
class: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !T(R) }),
|
|
1332
|
+
style: y({
|
|
1327
1333
|
strokeDasharray: t.pathLength,
|
|
1328
1334
|
strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
|
|
1329
1335
|
})
|
|
1330
|
-
}, null, 14,
|
|
1331
|
-
I.value.style.chart.zeroLine.show ? (
|
|
1336
|
+
}, null, 14, tt),
|
|
1337
|
+
I.value.style.chart.zeroLine.show ? (b(), m("path", {
|
|
1332
1338
|
key: 1,
|
|
1333
1339
|
stroke: I.value.style.chart.zeroLine.useSerieColor ? t.color : I.value.style.chart.zeroLine.stroke,
|
|
1334
1340
|
"stroke-dasharray": I.value.style.chart.zeroLine.strokeDasharray,
|
|
1335
1341
|
"stroke-width": I.value.style.chart.zeroLine.strokeWidth,
|
|
1336
1342
|
d: t.zeroPath,
|
|
1337
1343
|
"stroke-linecap": "round"
|
|
1338
|
-
}, null, 8,
|
|
1339
|
-
I.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (
|
|
1344
|
+
}, null, 8, nt)) : p("", !0),
|
|
1345
|
+
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
1346
|
key: 0,
|
|
1341
1347
|
x1: e.x,
|
|
1342
1348
|
y1: e.y,
|
|
1343
1349
|
x2: e.x,
|
|
1344
1350
|
y2: e.zero,
|
|
1345
|
-
stroke: I.value.style.chart.areas.maxPoint.adaptStrokeToBackground ?
|
|
1351
|
+
stroke: I.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? T(ue)(t.color) : I.value.style.chart.areas.maxPoint.stroke,
|
|
1346
1352
|
"stroke-width": I.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1347
1353
|
"stroke-linecap": "round",
|
|
1348
1354
|
"stroke-dasharray": I.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1349
|
-
}, null, 8,
|
|
1350
|
-
t.plots.length === 1 ? (
|
|
1355
|
+
}, null, 8, rt)) : p("", !0)], 64))), 256)) : p("", !0),
|
|
1356
|
+
t.plots.length === 1 ? (b(), m("circle", {
|
|
1351
1357
|
key: 3,
|
|
1352
1358
|
cx: t.plots[0].x,
|
|
1353
1359
|
cy: t.plots[0].y,
|
|
@@ -1356,26 +1362,26 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1356
1362
|
r: I.value.style.chart.selector.dot.radius,
|
|
1357
1363
|
fill: I.value.style.chart.selector.dot.useDatapointColor ? t.color : I.value.style.chart.selector.dot.fill,
|
|
1358
1364
|
style: { pointerEvents: "none" }
|
|
1359
|
-
}, null, 8,
|
|
1360
|
-
]))), 128)),
|
|
1365
|
+
}, null, 8, it)) : p("", !0)
|
|
1366
|
+
]))), 128)), h("text", {
|
|
1361
1367
|
x: t.label.x,
|
|
1362
1368
|
y: t.label.y,
|
|
1363
1369
|
"text-anchor": "end",
|
|
1364
1370
|
"font-size": I.value.style.chart.yAxis.labels.fontSize,
|
|
1365
1371
|
"font-weight": I.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1366
1372
|
fill: I.value.style.chart.yAxis.labels.color,
|
|
1367
|
-
style:
|
|
1368
|
-
"text-decoration": I.value.style.chart.dialog.show && (
|
|
1369
|
-
onMouseenter: (e) =>
|
|
1370
|
-
onMouseleave:
|
|
1371
|
-
onClick: (e) =>
|
|
1372
|
-
},
|
|
1373
|
-
I.value.style.chart.xAxis.labels.values.length ? (
|
|
1373
|
+
style: y({ cursor: I.value.style.chart.dialog.show && L.value ? "pointer" : "default" }),
|
|
1374
|
+
"text-decoration": I.value.style.chart.dialog.show && (Pn.value === n || N.value && t.uid === N.value.uid || F.value === n) ? "underline" : "",
|
|
1375
|
+
onMouseenter: (e) => Fn(n),
|
|
1376
|
+
onMouseleave: In,
|
|
1377
|
+
onClick: (e) => Nn(t)
|
|
1378
|
+
}, w(t.name), 45, at)]))), 128)),
|
|
1379
|
+
I.value.style.chart.xAxis.labels.values.length ? (b(), m("g", {
|
|
1374
1380
|
key: 0,
|
|
1375
1381
|
ref_key: "timeLabelsEls",
|
|
1376
|
-
ref:
|
|
1377
|
-
}, [(
|
|
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 ===
|
|
1382
|
+
ref: Ht
|
|
1383
|
+
}, [(b(!0), m(u, null, S(q.value, (t, n) => C(e.$slots, "time-label", Re({ ref_for: !0 }, {
|
|
1384
|
+
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 === q.value.length - 1) || t && M.value && M.value.index === n || t && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1379
1385
|
fontSize: I.value.style.chart.xAxis.labels.fontSize,
|
|
1380
1386
|
content: t.label,
|
|
1381
1387
|
textAnchor: I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -1383,7 +1389,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1383
1389
|
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
1390
|
x: t.selectorX,
|
|
1385
1391
|
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 ===
|
|
1392
|
+
}), () => [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 === q.value.length - 1) || t && M.value && M.value.index === n || t && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g", ot, [String(t.label).includes("\n") ? (b(), m("text", {
|
|
1387
1393
|
key: 1,
|
|
1388
1394
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1389
1395
|
"font-size": I.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1391,15 +1397,15 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1391
1397
|
"font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1392
1398
|
transform: `translate(${t.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1393
1399
|
"text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1394
|
-
style:
|
|
1395
|
-
innerHTML:
|
|
1400
|
+
style: y({ opacity: M.value ? M.value.index === n ? 1 : .2 : 1 }),
|
|
1401
|
+
innerHTML: T(ne)({
|
|
1396
1402
|
content: String(t.label),
|
|
1397
1403
|
fontSize: I.value.style.chart.xAxis.labels.fontSize,
|
|
1398
1404
|
fill: I.value.style.chart.xAxis.labels.color,
|
|
1399
1405
|
x: 0,
|
|
1400
1406
|
y: 0
|
|
1401
1407
|
})
|
|
1402
|
-
}, null, 12,
|
|
1408
|
+
}, null, 12, ct)) : (b(), m("text", {
|
|
1403
1409
|
key: 0,
|
|
1404
1410
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1405
1411
|
"font-size": I.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1407,32 +1413,32 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1407
1413
|
"font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1408
1414
|
transform: `translate(${t.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1409
1415
|
"text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1410
|
-
style:
|
|
1411
|
-
},
|
|
1412
|
-
|
|
1413
|
-
(
|
|
1416
|
+
style: y({ opacity: M.value ? M.value.index === n ? 1 : .2 : 1 })
|
|
1417
|
+
}, w(t.label), 13, st))])) : p("", !0)], !0)), 256))], 512)) : p("", !0),
|
|
1418
|
+
h("g", null, [
|
|
1419
|
+
(b(!0), m(u, null, S(q.value, (e, t) => (b(), m("rect", {
|
|
1414
1420
|
x: e.x,
|
|
1415
1421
|
y: e.y,
|
|
1416
1422
|
width: e.width < 0 ? .1 : e.width,
|
|
1417
1423
|
height: e.height < 0 ? .1 : e.height,
|
|
1418
1424
|
fill: "transparent",
|
|
1419
|
-
onMouseenter: (t) =>
|
|
1420
|
-
onMouseleave: (t) =>
|
|
1421
|
-
onClick: () =>
|
|
1422
|
-
}, null, 40,
|
|
1423
|
-
I.value.style.chart.selector.show &&
|
|
1425
|
+
onMouseenter: (t) => Sn(e),
|
|
1426
|
+
onMouseleave: (t) => Cn(e),
|
|
1427
|
+
onClick: () => wn(e)
|
|
1428
|
+
}, null, 40, lt))), 256)),
|
|
1429
|
+
I.value.style.chart.selector.show && M.value ? (b(), m("line", {
|
|
1424
1430
|
key: 0,
|
|
1425
|
-
x1:
|
|
1426
|
-
x2:
|
|
1427
|
-
y1:
|
|
1428
|
-
y2:
|
|
1431
|
+
x1: M.value.selectorX,
|
|
1432
|
+
x2: M.value.selectorX,
|
|
1433
|
+
y1: M.value.y,
|
|
1434
|
+
y2: M.value.y + M.value.height - B.value / 2,
|
|
1429
1435
|
stroke: I.value.style.chart.selector.stroke,
|
|
1430
1436
|
"stroke-width": I.value.style.chart.selector.strokeWidth,
|
|
1431
1437
|
"stroke-dasharray": I.value.style.chart.selector.strokeDasharray,
|
|
1432
1438
|
"stroke-linecap": "round",
|
|
1433
1439
|
style: { pointerEvents: "none" }
|
|
1434
|
-
}, null, 8,
|
|
1435
|
-
|
|
1440
|
+
}, null, 8, ut)) : p("", !0),
|
|
1441
|
+
M.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, [M.value && M.value.index === n ? (b(), m("circle", {
|
|
1436
1442
|
key: 0,
|
|
1437
1443
|
cx: t.x,
|
|
1438
1444
|
cy: t.y,
|
|
@@ -1441,16 +1447,16 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1441
1447
|
r: I.value.style.chart.selector.dot.radius,
|
|
1442
1448
|
fill: I.value.style.chart.selector.dot.useDatapointColor ? e.color : I.value.style.chart.selector.dot.fill,
|
|
1443
1449
|
style: { pointerEvents: "none" }
|
|
1444
|
-
}, null, 8,
|
|
1450
|
+
}, null, 8, dt)) : p("", !0), M.value && M.value.index === n ? (b(), m("text", {
|
|
1445
1451
|
key: 1,
|
|
1446
|
-
x:
|
|
1452
|
+
x: En(t.x, T(se)(I.value.style.chart.selector.labels.formatter, t.value, T(re)({
|
|
1447
1453
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1448
1454
|
v: t.value,
|
|
1449
1455
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1450
1456
|
r: I.value.style.chart.selector.labels.rounding
|
|
1451
1457
|
})), 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
1458
|
y: t.y + I.value.style.chart.selector.labels.fontSize / 3,
|
|
1453
|
-
"text-anchor":
|
|
1459
|
+
"text-anchor": En(t.x, T(se)(I.value.style.chart.selector.labels.formatter, t.value, T(re)({
|
|
1454
1460
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1455
1461
|
v: t.value,
|
|
1456
1462
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1459,58 +1465,58 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1459
1465
|
"font-size": I.value.style.chart.selector.labels.fontSize,
|
|
1460
1466
|
fill: I.value.style.chart.selector.labels.color,
|
|
1461
1467
|
style: { pointerEvents: "none" }
|
|
1462
|
-
},
|
|
1468
|
+
}, w(T(se)(I.value.style.chart.selector.labels.formatter, t.value, T(re)({
|
|
1463
1469
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1464
1470
|
v: t.value,
|
|
1465
1471
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1466
1472
|
r: I.value.style.chart.selector.labels.rounding
|
|
1467
|
-
}))), 9,
|
|
1473
|
+
}))), 9, ft)) : p("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : p("", !0)
|
|
1468
1474
|
]),
|
|
1469
|
-
|
|
1475
|
+
C(e.$slots, "svg", { svg: {
|
|
1470
1476
|
...W.value,
|
|
1471
1477
|
drawingArea: G.value,
|
|
1472
|
-
isPrintingImg:
|
|
1473
|
-
isPrintingSvg:
|
|
1478
|
+
isPrintingImg: T(tn) || T(nn) || Wt.value,
|
|
1479
|
+
isPrintingSvg: Gt.value
|
|
1474
1480
|
} }, void 0, !0)
|
|
1475
|
-
], 46, Ze)), e.$slots.hint ? (
|
|
1481
|
+
], 46, Ze)), e.$slots.hint ? (b(), m("div", pt, [C(e.$slots, "hint", v(_({
|
|
1476
1482
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1477
|
-
isVisible:
|
|
1478
|
-
})), void 0, !0)])) :
|
|
1479
|
-
e.$slots.watermark ? (
|
|
1480
|
-
|
|
1483
|
+
isVisible: Kt.value
|
|
1484
|
+
})), void 0, !0)])) : p("", !0)]),
|
|
1485
|
+
e.$slots.watermark ? (b(), m("div", mt, [C(e.$slots, "watermark", v(_({ isPrinting: T(tn) || T(nn) || Wt.value || Gt.value })), void 0, !0)])) : p("", !0),
|
|
1486
|
+
h("div", {
|
|
1481
1487
|
ref_key: "chartLegend",
|
|
1482
|
-
ref:
|
|
1483
|
-
}, [
|
|
1484
|
-
key: `legend_${
|
|
1485
|
-
legendSet:
|
|
1486
|
-
config:
|
|
1488
|
+
ref: jt
|
|
1489
|
+
}, [C(e.$slots, "legend", { legend: X.value }, () => [I.value.style.chart.legend.show ? (b(), f(Ne, {
|
|
1490
|
+
key: `legend_${It.value}`,
|
|
1491
|
+
legendSet: X.value,
|
|
1492
|
+
config: kn.value,
|
|
1487
1493
|
isCursorPointer: L.value,
|
|
1488
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1489
|
-
},
|
|
1490
|
-
item:
|
|
1494
|
+
onClickMarker: t[0] ||= ({ legend: e }) => un(e.id)
|
|
1495
|
+
}, Fe({
|
|
1496
|
+
item: E(({ legend: e }) => [T(R) ? p("", !0) : (b(), m("div", {
|
|
1491
1497
|
key: 0,
|
|
1492
|
-
style:
|
|
1498
|
+
style: y(`opacity:${Y.value.includes(e.id) ? .5 : 1}`),
|
|
1493
1499
|
onClick: (t) => e.segregate()
|
|
1494
|
-
},
|
|
1495
|
-
legendToggle:
|
|
1500
|
+
}, w(e.name), 13, ht))]),
|
|
1501
|
+
legendToggle: E(() => [X.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !T(R) ? (b(), f(ke, {
|
|
1496
1502
|
key: 0,
|
|
1497
1503
|
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1498
1504
|
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1499
1505
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
1500
|
-
checked:
|
|
1506
|
+
checked: Y.value.length > 0,
|
|
1501
1507
|
isCursorPointer: L.value,
|
|
1502
|
-
onToggle:
|
|
1508
|
+
onToggle: ln
|
|
1503
1509
|
}, null, 8, [
|
|
1504
1510
|
"backgroundColor",
|
|
1505
1511
|
"color",
|
|
1506
1512
|
"fontSize",
|
|
1507
1513
|
"checked",
|
|
1508
1514
|
"isCursorPointer"
|
|
1509
|
-
])) :
|
|
1515
|
+
])) : p("", !0)]),
|
|
1510
1516
|
_: 2
|
|
1511
1517
|
}, [e.$slots.pattern ? {
|
|
1512
1518
|
name: "legend-pattern",
|
|
1513
|
-
fn:
|
|
1519
|
+
fn: E(({ legend: e, index: t }) => [Le(we, {
|
|
1514
1520
|
shape: e.shape,
|
|
1515
1521
|
radius: 30,
|
|
1516
1522
|
stroke: "none",
|
|
@@ -1518,38 +1524,38 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1518
1524
|
x: 30,
|
|
1519
1525
|
y: 30
|
|
1520
1526
|
},
|
|
1521
|
-
fill: `url(#pattern_${
|
|
1527
|
+
fill: `url(#pattern_${j.value}_${t})`
|
|
1522
1528
|
}, null, 8, ["shape", "fill"])]),
|
|
1523
1529
|
key: "0"
|
|
1524
1530
|
} : void 0]), 1032, [
|
|
1525
1531
|
"legendSet",
|
|
1526
1532
|
"config",
|
|
1527
1533
|
"isCursorPointer"
|
|
1528
|
-
])) :
|
|
1529
|
-
e.$slots.source ? (
|
|
1534
|
+
])) : p("", !0)], !0)], 512),
|
|
1535
|
+
e.$slots.source ? (b(), m("div", {
|
|
1530
1536
|
key: 6,
|
|
1531
1537
|
ref_key: "source",
|
|
1532
|
-
ref:
|
|
1538
|
+
ref: Mt,
|
|
1533
1539
|
dir: "auto"
|
|
1534
|
-
}, [
|
|
1535
|
-
|
|
1540
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1541
|
+
Ot.value && I.value.userOptions.buttons.table ? (b(), f(He(Wn.value.component), Re({ key: 7 }, Wn.value.props, {
|
|
1536
1542
|
ref_key: "tableUnit",
|
|
1537
|
-
ref:
|
|
1538
|
-
onClose:
|
|
1539
|
-
}),
|
|
1540
|
-
content:
|
|
1541
|
-
key: `table_${
|
|
1542
|
-
colNames:
|
|
1543
|
-
head:
|
|
1544
|
-
body:
|
|
1545
|
-
config:
|
|
1546
|
-
title: I.value.table.useDialog ? "" :
|
|
1543
|
+
ref: P,
|
|
1544
|
+
onClose: Gn
|
|
1545
|
+
}), Fe({
|
|
1546
|
+
content: E(() => [(b(), f(T(bt), {
|
|
1547
|
+
key: `table_${Ft.value}`,
|
|
1548
|
+
colNames: Q.value.colNames,
|
|
1549
|
+
head: Q.value.head,
|
|
1550
|
+
body: Q.value.body,
|
|
1551
|
+
config: Q.value.config,
|
|
1552
|
+
title: I.value.table.useDialog ? "" : Wn.value.title,
|
|
1547
1553
|
withCloseButton: !I.value.table.useDialog,
|
|
1548
1554
|
isCursorPointer: L.value,
|
|
1549
|
-
onClose:
|
|
1555
|
+
onClose: Gn
|
|
1550
1556
|
}, {
|
|
1551
|
-
th:
|
|
1552
|
-
td:
|
|
1557
|
+
th: E(({ th: e }) => [h("div", { innerHTML: e }, null, 8, gt)]),
|
|
1558
|
+
td: E(({ td: e }) => [Ie(w(e.name ? e.name : T(se)(I.value.style.chart.selector.labels.formatter, e, T(re)({
|
|
1553
1559
|
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1554
1560
|
v: e,
|
|
1555
1561
|
s: I.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1568,42 +1574,42 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1568
1574
|
_: 2
|
|
1569
1575
|
}, [I.value.table.useDialog ? {
|
|
1570
1576
|
name: "title",
|
|
1571
|
-
fn:
|
|
1577
|
+
fn: E(() => [Ie(w(Wn.value.title), 1)]),
|
|
1572
1578
|
key: "0"
|
|
1573
1579
|
} : void 0, I.value.table.useDialog ? {
|
|
1574
1580
|
name: "actions",
|
|
1575
|
-
fn:
|
|
1581
|
+
fn: E(() => [h("button", {
|
|
1576
1582
|
tabindex: "0",
|
|
1577
1583
|
class: "vue-ui-user-options-button",
|
|
1578
|
-
onClick: t[1] ||= (e) =>
|
|
1579
|
-
style:
|
|
1580
|
-
}, [
|
|
1584
|
+
onClick: t[1] ||= (e) => Vn(I.value.userOptions.callbacks.csv),
|
|
1585
|
+
style: y({ cursor: L.value ? "pointer" : "default" })
|
|
1586
|
+
}, [Le(T(vt), {
|
|
1581
1587
|
name: "fileCsv",
|
|
1582
|
-
stroke:
|
|
1588
|
+
stroke: Wn.value.props.color
|
|
1583
1589
|
}, null, 8, ["stroke"])], 4)]),
|
|
1584
1590
|
key: "1"
|
|
1585
|
-
} : void 0]), 1040)) :
|
|
1586
|
-
I.value.style.chart.dialog.show ? (
|
|
1591
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1592
|
+
I.value.style.chart.dialog.show ? (b(), f(T(wt), {
|
|
1587
1593
|
key: 8,
|
|
1588
1594
|
ref_key: "dialog",
|
|
1589
|
-
ref:
|
|
1590
|
-
onClose: t[2] ||= (e) =>
|
|
1595
|
+
ref: Bt,
|
|
1596
|
+
onClose: t[2] ||= (e) => N.value = null,
|
|
1591
1597
|
backgroundColor: I.value.style.chart.dialog.backgroundColor,
|
|
1592
1598
|
color: I.value.style.chart.dialog.color,
|
|
1593
1599
|
headerBg: I.value.style.chart.dialog.header.backgroundColor,
|
|
1594
1600
|
headerColor: I.value.style.chart.dialog.header.color,
|
|
1595
|
-
isFullscreen:
|
|
1596
|
-
fullscreenParent:
|
|
1601
|
+
isFullscreen: Z.value,
|
|
1602
|
+
fullscreenParent: O.value,
|
|
1597
1603
|
isCursorPointer: L.value,
|
|
1598
1604
|
withPadding: ""
|
|
1599
1605
|
}, {
|
|
1600
|
-
title:
|
|
1601
|
-
content:
|
|
1606
|
+
title: E(() => [Ie(w(N.value.name), 1)]),
|
|
1607
|
+
content: E(() => [N.value ? (b(), f(T(_t), {
|
|
1602
1608
|
key: 0,
|
|
1603
|
-
config:
|
|
1604
|
-
dataset:
|
|
1605
|
-
onCopyAlt:
|
|
1606
|
-
}, null, 8, ["config", "dataset"])) :
|
|
1609
|
+
config: jn.value,
|
|
1610
|
+
dataset: Mn.value,
|
|
1611
|
+
onCopyAlt: Qn
|
|
1612
|
+
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1607
1613
|
_: 1
|
|
1608
1614
|
}, 8, [
|
|
1609
1615
|
"backgroundColor",
|
|
@@ -1613,10 +1619,10 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1613
1619
|
"isFullscreen",
|
|
1614
1620
|
"fullscreenParent",
|
|
1615
1621
|
"isCursorPointer"
|
|
1616
|
-
])) :
|
|
1617
|
-
|
|
1622
|
+
])) : p("", !0),
|
|
1623
|
+
C(e.$slots, "skeleton", {}, () => [T(R) ? (b(), f(_e, { key: 0 })) : p("", !0)], !0)
|
|
1618
1624
|
], 46, Je));
|
|
1619
1625
|
}
|
|
1620
|
-
}, [["__scopeId", "data-v-
|
|
1626
|
+
}, [["__scopeId", "data-v-8d046cf7"]]);
|
|
1621
1627
|
//#endregion
|
|
1622
|
-
export { qe as n,
|
|
1628
|
+
export { qe as n, _t as t };
|