vue-data-ui 3.25.3 → 3.25.5
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/README.md +13 -13
- package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-Bn3MY7eL.js} +103 -101
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-KXRhcsxM.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-M2Ws-VwJ.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-BgH3m_LP.js} +30 -14
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-ta2JoIjx.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-bvOuxfN3.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 +70 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-C_mX5pOZ.js} +1329 -1313
- package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings-uXpBcVyo.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-BjdCpsRV.js} +70 -70
- package/dist/vue-data-ui.js +74 -74
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +1831 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-DRf3NQyH.js} +4 -4
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-DUcB3lYs.js} +219 -217
- package/dist/vue-ui-annotator-DZ0O8Xa5.js +3325 -0
- package/dist/vue-ui-bullet-DIOCMF2H.js +702 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-DoHnD1Xy.js} +59 -57
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Cf8TYPl5.js} +453 -447
- package/dist/vue-ui-carousel-table-k1cBJ1i1.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-BMAuaeif.js} +278 -276
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DCe2iPjk.js} +37 -35
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-Eb5hS_z3.js} +34 -32
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-CQWLyEx0.js} +4 -4
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-BqlsutMj.js} +80 -78
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-Be3MmkgS.js} +77 -75
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BqdfbcKX.js} +4 -4
- package/dist/vue-ui-donut-CuQVKuZa.js +2415 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-DckruxZ9.js} +378 -376
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-gzGZ42uH.js} +102 -102
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-BYU-hh2E.js} +142 -140
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-DLRcNDLc.js} +46 -44
- package/dist/vue-ui-funnel-DjoqNN1U.js +749 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BhR4IOra.js} +249 -247
- package/dist/vue-ui-gauge-Cq161Kwp.js +934 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-Ca8kPYr-.js} +41 -39
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-wUqHJICb.js} +4 -4
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-Bl5ymvi9.js} +186 -184
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-D6Y9Xy2K.js} +14 -12
- package/dist/vue-ui-history-plot-CvVjsdCL.js +1698 -0
- package/dist/vue-ui-horizontal-bar-3on3-H3B.js +1711 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-CUpRRIUf.js} +4 -4
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-DR2qUZOG.js} +65 -65
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-D8W-fERs.js} +3 -3
- package/dist/vue-ui-molecule-BExVLLgE.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-TW251icr.js} +205 -203
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CWzJKr3S.js} +129 -127
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-VaYZQK5i.js} +124 -122
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-RM25bxtf.js} +380 -378
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-Dmtwow7n.js} +51 -49
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-Cswm3_eI.js} +190 -188
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-C3GYthqu.js} +315 -313
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CBdDXL80.js} +3 -3
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +905 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-C5skjBTe.js} +353 -344
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-BJ8yEQMw.js} +332 -330
- package/dist/vue-ui-scatter-DXg8ESgr.js +2405 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-D_u8EWeW.js} +60 -60
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DQOp87rr.js} +3 -3
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-CjCufXof.js} +9 -9
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-BniEM15a.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-BtyCrqTQ.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-DQdn3PW1.js} +27 -27
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-9qkNNZG6.js} +254 -254
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +738 -0
- package/dist/vue-ui-stackbar-CkjicNDv.js +2355 -0
- package/dist/vue-ui-stackline-BB1IZta8.js +2469 -0
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +1740 -0
- package/dist/vue-ui-table-BXz_HY2g.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-XmDK1aHJ.js} +10 -10
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-MTEw3imE.js} +14 -14
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-CLx3SPRv.js} +36 -34
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-BDWUNb6t.js} +6 -6
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-DoaypTC-.js} +11 -9
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-Bv7PgpiC.js} +45 -43
- package/dist/vue-ui-waffle-z2DhvSAx.js +1621 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-DYLBJuFb.js} +31 -29
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-CbpEhSdL.js} +32 -30
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-C2atz4Xm.js} +120 -118
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-B3DQ6t46.js} +1496 -1490
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-CpA0W6zM.js} +424 -423
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-CJefORWc.js} +78 -78
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-annotator-MvDwnq7k.js +0 -2886
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, G as r,
|
|
2
|
+
import { $ as t, D as n, G as r, Gt as i, Lt as a, N as ee, P as te, Pt as o, Q as ne, S as s, V as re, X as c, Yt as ie, Zt as ae, _t as oe, ht as se, i as ce, nt as le, q as ue, r as de, t as fe, w as pe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ge } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as _e } from "./useConfig-
|
|
6
|
-
import { t as ve } from "./usePrinter-
|
|
5
|
+
import { t as _e } from "./useConfig-C_mX5pOZ.js";
|
|
6
|
+
import { t as ve } from "./usePrinter-DISD7q5m.js";
|
|
7
7
|
import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as xe } from "./useNestedProp-
|
|
8
|
+
import { t as xe } from "./useNestedProp-Chvyfpl-.js";
|
|
9
9
|
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as Ce } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as Te } from "./img-
|
|
13
|
-
import { n as Ee } from "./Title-
|
|
14
|
-
import { t as De } from "./Shape-
|
|
12
|
+
import { t as Te } from "./img-DhGApYG0.js";
|
|
13
|
+
import { n as Ee } from "./Title-CPHi-evi.js";
|
|
14
|
+
import { t as De } from "./Shape-CIqU-p2F.js";
|
|
15
15
|
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { l as ke, t as Ae } from "./useResponsive-ZtArZtUf.js";
|
|
17
17
|
import { t as je } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
-
import { t as Me } from "./BaseLegendToggle-
|
|
18
|
+
import { t as Me } from "./BaseLegendToggle-__JnV08B.js";
|
|
19
19
|
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
20
20
|
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
21
|
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
-
import { t as Ie } from "./Legend-
|
|
22
|
+
import { t as Ie } from "./Legend-X4kF4PvW.js";
|
|
23
23
|
import { t as Le } from "./vue_ui_ridgeline-VM8_mx4J.js";
|
|
24
24
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as We, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as C, toRefs as qe, unref as w, watch as Je, watchEffect as Ye, withCtx as T } from "vue";
|
|
25
25
|
//#region src/components/vue-ui-ridgeline.vue
|
|
@@ -100,6 +100,7 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
100
100
|
], ht = [
|
|
101
101
|
"x",
|
|
102
102
|
"y",
|
|
103
|
+
"stroke",
|
|
103
104
|
"text-anchor",
|
|
104
105
|
"font-size",
|
|
105
106
|
"fill"
|
|
@@ -139,15 +140,15 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
139
140
|
"copyAlt"
|
|
140
141
|
],
|
|
141
142
|
setup(e, { expose: Oe, emit: Xe }) {
|
|
142
|
-
let yt = h(() => import("./vue-ui-xy-
|
|
143
|
+
let yt = h(() => import("./vue-ui-xy-B3DQ6t46.js").then((e) => e.n)), bt = h(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), xt = h(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), St = h(() => import("./DataTable-COIO9gi4.js")), Ct = h(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), wt = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Tt = h(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Et = h(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_ridgeline: Dt } = _e(), { isThemeValid: Ot, warnInvalidTheme: kt } = Se(), E = e, D = u({
|
|
143
144
|
get() {
|
|
144
|
-
return Array.isArray(
|
|
145
|
+
return Array.isArray(z.value) && z.value.length > 0;
|
|
145
146
|
},
|
|
146
147
|
set(e) {
|
|
147
148
|
return e;
|
|
148
149
|
}
|
|
149
|
-
}), O = Xe, k = b(null), At = b(null), jt = b(null), A = Ke(null), j = Ke(null), Mt = b(null), Nt = b(null), Pt = b(0), Ft = b(0), It = b(0), M = b(ue()), Lt = b(0), Rt = b(0), zt = b(512), N = b(null), P = b(null), Bt = b(null), Vt = b(0), Ht = b(null),
|
|
150
|
-
function
|
|
150
|
+
}), O = Xe, k = b(null), At = b(null), jt = b(null), A = Ke(null), j = Ke(null), Mt = b(null), Nt = b(null), Pt = b(0), Ft = b(0), It = b(0), M = b(ue()), Lt = b(0), Rt = b(0), zt = b(512), N = b(null), P = b(null), Bt = b(null), Vt = b(0), Ht = b(null), F = b(null), Ut = b(null), I = b(null), Wt = b(!1);
|
|
151
|
+
function Gt() {
|
|
151
152
|
let e = xe({
|
|
152
153
|
userConfig: E.config,
|
|
153
154
|
defaultConfig: Dt
|
|
@@ -163,12 +164,12 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
163
164
|
});
|
|
164
165
|
return {
|
|
165
166
|
...r,
|
|
166
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
167
|
+
customPalette: r.customPalette.length ? r.customPalette : ie[t] || a
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
|
-
let
|
|
170
|
+
let L = b(Gt());
|
|
170
171
|
me({
|
|
171
|
-
config: () =>
|
|
172
|
+
config: () => L.value,
|
|
172
173
|
dataset: () => E.dataset,
|
|
173
174
|
component: "VueUiRidgeline",
|
|
174
175
|
rules: [
|
|
@@ -203,7 +204,7 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
203
204
|
}
|
|
204
205
|
]
|
|
205
206
|
});
|
|
206
|
-
let
|
|
207
|
+
let R = u(() => L.value.userOptions.useCursorPointer), Kt = u(() => ae({
|
|
207
208
|
defaultConfig: {
|
|
208
209
|
userOptions: { show: !1 },
|
|
209
210
|
table: { show: !1 },
|
|
@@ -224,11 +225,11 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
224
225
|
zeroLine: { show: !1 }
|
|
225
226
|
} }
|
|
226
227
|
},
|
|
227
|
-
userConfig:
|
|
228
|
-
})), { loading:
|
|
228
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
229
|
+
})), { loading: qt, FINAL_DATASET: z, manualLoading: Jt } = ye({
|
|
229
230
|
...qe(E),
|
|
230
|
-
FINAL_CONFIG:
|
|
231
|
-
prepareConfig:
|
|
231
|
+
FINAL_CONFIG: L,
|
|
232
|
+
prepareConfig: Gt,
|
|
232
233
|
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
233
234
|
{
|
|
234
235
|
name: "_",
|
|
@@ -459,23 +460,23 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
459
460
|
}]
|
|
460
461
|
}
|
|
461
462
|
],
|
|
462
|
-
skeletonConfig:
|
|
463
|
-
defaultConfig:
|
|
464
|
-
userConfig:
|
|
463
|
+
skeletonConfig: ae({
|
|
464
|
+
defaultConfig: L.value,
|
|
465
|
+
userConfig: Kt.value
|
|
465
466
|
})
|
|
466
|
-
}),
|
|
467
|
-
function
|
|
468
|
-
let e =
|
|
467
|
+
}), B = b(Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight)), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = Pe({ config: L.value }), { svgRef: V } = Fe({ config: L.value.style.chart.title }), H = u(() => L.value.debug);
|
|
468
|
+
function Qt() {
|
|
469
|
+
let e = z.value || [];
|
|
469
470
|
if (!Array.isArray(e) || e.length === 0) {
|
|
470
471
|
le({
|
|
471
472
|
componentName: "VueUiRidgeline",
|
|
472
473
|
type: "dataset",
|
|
473
|
-
debug:
|
|
474
|
-
}),
|
|
474
|
+
debug: H.value
|
|
475
|
+
}), Jt.value = !0;
|
|
475
476
|
return;
|
|
476
477
|
}
|
|
477
478
|
if (e.forEach((e, t) => {
|
|
478
|
-
|
|
479
|
+
se({
|
|
479
480
|
datasetObject: e,
|
|
480
481
|
requiredAttributes: ["name", "datapoints"]
|
|
481
482
|
}).forEach((e) => {
|
|
@@ -484,10 +485,10 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
484
485
|
type: "datasetSerieAttribute",
|
|
485
486
|
property: e,
|
|
486
487
|
index: t,
|
|
487
|
-
debug:
|
|
488
|
+
debug: H.value
|
|
488
489
|
});
|
|
489
490
|
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
490
|
-
|
|
491
|
+
se({
|
|
491
492
|
datasetObject: e,
|
|
492
493
|
requiredAttributes: ["name", "values"]
|
|
493
494
|
}).forEach((e) => {
|
|
@@ -496,22 +497,22 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
496
497
|
type: "datasetSerieAttribute",
|
|
497
498
|
property: `datapoint.${e}`,
|
|
498
499
|
index: `${t}-${n}`,
|
|
499
|
-
debug:
|
|
500
|
+
debug: H.value
|
|
500
501
|
});
|
|
501
502
|
});
|
|
502
503
|
});
|
|
503
|
-
}), Rt.value = e.length,
|
|
504
|
+
}), Rt.value = e.length, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), o(E.dataset) || (Jt.value = L.value.loading), L.value.responsive) {
|
|
504
505
|
let t = ke(() => {
|
|
505
506
|
let { width: t, height: n } = Ae({
|
|
506
507
|
chart: k.value,
|
|
507
|
-
title:
|
|
508
|
-
legend:
|
|
508
|
+
title: L.value.style.chart.title.text ? At.value : null,
|
|
509
|
+
legend: L.value.style.chart.legend.show ? jt.value : null,
|
|
509
510
|
source: Mt.value,
|
|
510
511
|
noTitle: Nt.value,
|
|
511
|
-
padding:
|
|
512
|
+
padding: L.value.style.chart.padding
|
|
512
513
|
});
|
|
513
514
|
requestAnimationFrame(() => {
|
|
514
|
-
zt.value = t,
|
|
515
|
+
zt.value = t, B.value = e.length ? n / e.length : 0, Vt.value = n - 12;
|
|
515
516
|
});
|
|
516
517
|
});
|
|
517
518
|
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(t), j.value = k.value?.parentNode || null, j.value && A.value.observe(j.value);
|
|
@@ -520,111 +521,111 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
520
521
|
We(() => {
|
|
521
522
|
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
|
|
522
523
|
});
|
|
523
|
-
let { isPrinting:
|
|
524
|
+
let { isPrinting: $t, isImaging: en, generatePdf: tn, generateImage: nn } = ve({
|
|
524
525
|
elementId: `vue-ui-ridgeline_${M.value}`,
|
|
525
|
-
fileName:
|
|
526
|
-
options:
|
|
527
|
-
}),
|
|
528
|
-
Je(() =>
|
|
529
|
-
Array.isArray(e) && e.length && (
|
|
526
|
+
fileName: L.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
527
|
+
options: L.value.userOptions.print
|
|
528
|
+
}), rn = u(() => L.value.userOptions.show && !L.value.style.chart.title.text), an = u(() => pe(L.value.customPalette)), U = b({ showTable: L.value.table.show });
|
|
529
|
+
Je(() => z.value, async (e) => {
|
|
530
|
+
Array.isArray(e) && e.length && (Yt.value = !L.value.userOptions.showOnChartHover, await He(), Qt(), Pt.value += 1, It.value += 1, U.value.showTable = L.value.table.show);
|
|
530
531
|
}, {
|
|
531
532
|
deep: !0,
|
|
532
533
|
immediate: !0
|
|
533
534
|
}), Je(() => E.dataset, (e) => {
|
|
534
|
-
Array.isArray(e) && e.length > 0 && (
|
|
535
|
-
}, { deep: !0 }), Je(() =>
|
|
536
|
-
e || (await He(),
|
|
535
|
+
Array.isArray(e) && e.length > 0 && (Jt.value = !1);
|
|
536
|
+
}, { deep: !0 }), Je(() => qt.value, async (e) => {
|
|
537
|
+
e || (await He(), Qt());
|
|
537
538
|
}, { immediate: !0 }), Je(() => E.config, () => {
|
|
538
|
-
|
|
539
|
+
L.value = Gt(z.value || null), Yt.value = !L.value.userOptions.showOnChartHover, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), U.value.showTable = L.value.table.show, Pt.value += 1, It.value += 1;
|
|
539
540
|
}, { deep: !0 });
|
|
540
|
-
let
|
|
541
|
-
function
|
|
541
|
+
let on = u(() => L.value.style.chart.areas.height / L.value.style.chart.areas.rowHeight);
|
|
542
|
+
function sn() {
|
|
542
543
|
X.value.length ? X.value = [] : Z.value.forEach((e) => {
|
|
543
544
|
X.value.push(e.id);
|
|
544
545
|
}), O("selectLegend", Y.value);
|
|
545
546
|
}
|
|
546
|
-
function
|
|
547
|
+
function cn(e) {
|
|
547
548
|
X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e), O("selectLegend", Y.value);
|
|
548
549
|
}
|
|
550
|
+
function ln(e) {
|
|
551
|
+
return Z.value.length ? Z.value.find((t) => t.name === e) || (H.value && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (H.value && console.warn("VueUiRidgeline - There are no series to show."), null);
|
|
552
|
+
}
|
|
549
553
|
function un(e) {
|
|
550
|
-
|
|
554
|
+
let t = ln(e);
|
|
555
|
+
t !== null && X.value.includes(t.id) && cn(t.id);
|
|
551
556
|
}
|
|
552
557
|
function dn(e) {
|
|
553
|
-
let t =
|
|
554
|
-
t !== null && X.value.includes(t.id)
|
|
555
|
-
}
|
|
556
|
-
function fn(e) {
|
|
557
|
-
let t = un(e);
|
|
558
|
-
t !== null && (X.value.includes(t.id) || ln(t.id));
|
|
558
|
+
let t = ln(e);
|
|
559
|
+
t !== null && (X.value.includes(t.id) || cn(t.id));
|
|
559
560
|
}
|
|
560
|
-
let
|
|
561
|
+
let W = u(() => D.value ? (z.value || []).map((e) => ({
|
|
561
562
|
...e,
|
|
562
|
-
labelLen: Tn(e.name,
|
|
563
|
+
labelLen: Tn(e.name, L.value.style.chart.yAxis.labels.fontSize),
|
|
563
564
|
uid: ue(),
|
|
564
565
|
datapoints: e.datapoints.map((e, t) => {
|
|
565
|
-
let n = e.color ?
|
|
566
|
+
let n = e.color ? s(e.color) : an.value[t] || a[t] || a[t % a.length], r = i(e.name);
|
|
566
567
|
return {
|
|
567
568
|
...e,
|
|
568
569
|
color: n,
|
|
569
570
|
id: r
|
|
570
571
|
};
|
|
571
572
|
})
|
|
572
|
-
})) : []),
|
|
573
|
-
let e =
|
|
573
|
+
})) : []), fn = u(() => L.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * on.value + L.value.style.chart.padding.bottom), G = u(() => {
|
|
574
|
+
let e = L.value.style.chart.padding;
|
|
574
575
|
return {
|
|
575
576
|
width: zt.value,
|
|
576
|
-
height:
|
|
577
|
+
height: fn.value,
|
|
577
578
|
padding: e
|
|
578
579
|
};
|
|
579
|
-
}),
|
|
580
|
-
|
|
580
|
+
}), pn = u(() => G.value.width), mn = u(() => G.value.height), hn = b(0), gn = ke((e) => {
|
|
581
|
+
hn.value = e;
|
|
581
582
|
}, 100);
|
|
582
583
|
Ye((e) => {
|
|
583
584
|
let t = Ht.value;
|
|
584
585
|
if (!t) return;
|
|
585
586
|
let n = new ResizeObserver((e) => {
|
|
586
|
-
|
|
587
|
+
gn(e[0].contentRect.height);
|
|
587
588
|
});
|
|
588
589
|
n.observe(t), e(() => n.disconnect());
|
|
589
590
|
}), We(() => {
|
|
590
|
-
|
|
591
|
+
hn.value = 0;
|
|
591
592
|
});
|
|
592
|
-
let
|
|
593
|
-
fullHeight:
|
|
594
|
-
top:
|
|
595
|
-
left:
|
|
596
|
-
right:
|
|
597
|
-
bottom:
|
|
598
|
-
width:
|
|
599
|
-
})),
|
|
593
|
+
let K = u(() => ({
|
|
594
|
+
fullHeight: G.value.height + hn.value,
|
|
595
|
+
top: G.value.padding.top,
|
|
596
|
+
left: G.value.padding.left,
|
|
597
|
+
right: G.value.width - G.value.padding.right,
|
|
598
|
+
bottom: G.value.height - L.value.style.chart.padding.bottom,
|
|
599
|
+
width: G.value.width - (G.value.padding.left + G.value.padding.right)
|
|
600
|
+
})), _n = u(() => Math.max(...W.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), q = b([]), vn = 0;
|
|
600
601
|
Ye(() => {
|
|
601
602
|
let e = ++vn;
|
|
602
603
|
(async () => {
|
|
603
604
|
let t = await ge({
|
|
604
|
-
values:
|
|
605
|
-
maxDatapoints:
|
|
606
|
-
formatter:
|
|
605
|
+
values: L.value.style.chart.xAxis.labels.values,
|
|
606
|
+
maxDatapoints: _n.value,
|
|
607
|
+
formatter: L.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
607
608
|
start: 0,
|
|
608
|
-
end:
|
|
609
|
+
end: L.value.style.chart.xAxis.labels.values.length
|
|
609
610
|
});
|
|
610
611
|
e === vn && (q.value = t);
|
|
611
612
|
})();
|
|
612
613
|
});
|
|
613
614
|
let J = u(() => {
|
|
614
|
-
let e = Math.max(...
|
|
615
|
-
for (let e = 0; e <
|
|
615
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = G.value.padding.left + e + 16 + L.value.style.chart.yAxis.labels.offsetX, n = (K.value.width - t) / _n.value, r = [];
|
|
616
|
+
for (let e = 0; e < _n.value; e += 1) r.push({
|
|
616
617
|
selectorX: t + n * e,
|
|
617
618
|
x: t + n * e - n / 2,
|
|
618
|
-
y:
|
|
619
|
-
label:
|
|
619
|
+
y: K.value.top,
|
|
620
|
+
label: L.value.style.chart.xAxis.labels.values[e] ? q.value[e]?.text ?? "" : "",
|
|
620
621
|
index: e,
|
|
621
622
|
width: n,
|
|
622
|
-
height:
|
|
623
|
+
height: fn.value
|
|
623
624
|
});
|
|
624
625
|
return r;
|
|
625
626
|
});
|
|
626
627
|
function yn(e) {
|
|
627
|
-
return
|
|
628
|
+
return W.value.map((t) => t.datapoints.map((t) => ({
|
|
628
629
|
dp: t,
|
|
629
630
|
selected: t.values[e.index]
|
|
630
631
|
})));
|
|
@@ -632,7 +633,7 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
632
633
|
function bn(e) {
|
|
633
634
|
N.value = e;
|
|
634
635
|
let t = yn(e);
|
|
635
|
-
|
|
636
|
+
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
636
637
|
datapoint: t,
|
|
637
638
|
seriesIndex: e.index
|
|
638
639
|
});
|
|
@@ -640,14 +641,14 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
640
641
|
function xn(e) {
|
|
641
642
|
N.value = null;
|
|
642
643
|
let t = yn(e);
|
|
643
|
-
|
|
644
|
+
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
644
645
|
datapoint: t,
|
|
645
646
|
seriesIndex: e.index
|
|
646
647
|
});
|
|
647
648
|
}
|
|
648
649
|
function Sn(e) {
|
|
649
650
|
let t = yn(e);
|
|
650
|
-
|
|
651
|
+
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
651
652
|
datapoint: t,
|
|
652
653
|
seriesIndex: e.index
|
|
653
654
|
}), O("selectX", t);
|
|
@@ -656,29 +657,29 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
656
657
|
return e.length * t / 2 + t;
|
|
657
658
|
}
|
|
658
659
|
function wn(e, t, n) {
|
|
659
|
-
return e + Cn(t, n) >
|
|
660
|
+
return e + Cn(t, n) > K.value.right;
|
|
660
661
|
}
|
|
661
662
|
function Tn(e, t, n = "sans-serif") {
|
|
662
663
|
let r = document.createElement("canvas").getContext("2d");
|
|
663
664
|
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
664
665
|
}
|
|
665
666
|
let Y = u(() => {
|
|
666
|
-
|
|
667
|
-
let e = Math.max(...
|
|
667
|
+
B.value;
|
|
668
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = Math.max(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = G.value.padding.left + e + 16 + L.value.style.chart.yAxis.labels.offsetX, i = (K.value.width - r) / _n.value, a = Math.abs(Math.min(n, 0)), o = t + a;
|
|
668
669
|
function ne(e) {
|
|
669
670
|
return isNaN(e / o) ? 0 : e / o;
|
|
670
671
|
}
|
|
671
|
-
return
|
|
672
|
-
let n =
|
|
672
|
+
return W.value.map((e, t) => {
|
|
673
|
+
let n = B.value * on.value * (1 - ne(a)), o = K.value.top + B.value * t, s = K.value.top + o + n;
|
|
673
674
|
return {
|
|
674
675
|
...e,
|
|
675
676
|
label: {
|
|
676
|
-
x: r -
|
|
677
|
-
y:
|
|
677
|
+
x: r - L.value.style.chart.yAxis.labels.fontSize,
|
|
678
|
+
y: (L.value.style.chart.yAxis.labels.centered ? s - n / 2 : s) + L.value.style.chart.yAxis.labels.offsetY
|
|
678
679
|
},
|
|
679
680
|
datapoints: e.datapoints.map((e) => {
|
|
680
|
-
let t = e.values.map((t,
|
|
681
|
-
let
|
|
681
|
+
let t = e.values.map((t, n) => {
|
|
682
|
+
let ee = isNaN(t) || [
|
|
682
683
|
void 0,
|
|
683
684
|
null,
|
|
684
685
|
"NaN",
|
|
@@ -687,23 +688,23 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
687
688
|
-Infinity
|
|
688
689
|
].includes(t) ? 0 : t || 0;
|
|
689
690
|
return {
|
|
690
|
-
x: r + i *
|
|
691
|
-
y:
|
|
691
|
+
x: r + i * n,
|
|
692
|
+
y: K.value.top + o + B.value * on.value * (1 - ne(ee + a)),
|
|
692
693
|
value: t,
|
|
693
694
|
isMaxPoint: t === Math.max(...e.values),
|
|
694
|
-
zero:
|
|
695
|
+
zero: s
|
|
695
696
|
};
|
|
696
|
-
}),
|
|
697
|
+
}), n = `${ee(t, s, !1, !1)}`, c = `M ${r},${s} ${re(t)} ${t.at(-1).x},${s}`, ie = `M ${r},${s} ${t.at(-1).x},${s}`, ae = `M ${te(t)}`, se = `M ${re(t)}`, ce = oe(L.value.style.chart.areas.smooth ? ae : se);
|
|
697
698
|
return {
|
|
698
699
|
...e,
|
|
699
700
|
uid: ue(),
|
|
700
701
|
plots: t,
|
|
701
|
-
smoothPath:
|
|
702
|
-
straightPath:
|
|
703
|
-
zeroPath:
|
|
702
|
+
smoothPath: n,
|
|
703
|
+
straightPath: c,
|
|
704
|
+
zeroPath: ie,
|
|
704
705
|
pathLength: ce,
|
|
705
|
-
smoothPathRidge:
|
|
706
|
-
straightPathRidge:
|
|
706
|
+
smoothPathRidge: ae,
|
|
707
|
+
straightPathRidge: se
|
|
707
708
|
};
|
|
708
709
|
}).filter((e) => !X.value.includes(e.id))
|
|
709
710
|
};
|
|
@@ -713,74 +714,74 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
713
714
|
let t = /* @__PURE__ */ new Map();
|
|
714
715
|
return e.forEach((e) => {
|
|
715
716
|
e.datapoints.forEach((e, n) => {
|
|
716
|
-
let r =
|
|
717
|
+
let r = i(e.name);
|
|
717
718
|
t.has(r) || t.set(r, {
|
|
718
719
|
id: r,
|
|
719
720
|
name: e.name,
|
|
720
721
|
color: e.color,
|
|
721
722
|
shape: "circle",
|
|
722
|
-
segregate: () =>
|
|
723
|
+
segregate: () => cn(r),
|
|
723
724
|
isSegregated: X.value.includes(r),
|
|
724
725
|
opacity: X.value.includes(r) ? .5 : 1
|
|
725
726
|
});
|
|
726
727
|
});
|
|
727
728
|
}), Array.from(t.values());
|
|
728
729
|
}
|
|
729
|
-
let Z = u(() => En(
|
|
730
|
+
let Z = u(() => En(W.value)), Dn = u(() => ({
|
|
730
731
|
cy: "donut-div-legend",
|
|
731
|
-
backgroundColor:
|
|
732
|
-
color:
|
|
733
|
-
fontSize:
|
|
732
|
+
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
733
|
+
color: L.value.style.chart.legend.color,
|
|
734
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
734
735
|
paddingBottom: 12,
|
|
735
|
-
fontWeight:
|
|
736
|
+
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
736
737
|
})), Q = b(!1);
|
|
737
738
|
function On(e) {
|
|
738
739
|
Q.value = e, Lt.value += 1;
|
|
739
740
|
}
|
|
740
741
|
let kn = b({}), An = b([]);
|
|
741
742
|
function jn(e) {
|
|
742
|
-
O("selectDatapoint", e),
|
|
743
|
+
O("selectDatapoint", e), L.value.style.chart.dialog.show && (An.value = e.datapoints.map((e) => ({
|
|
743
744
|
name: e.name,
|
|
744
745
|
color: e.color,
|
|
745
746
|
type: "line",
|
|
746
747
|
useArea: !0,
|
|
747
|
-
smooth:
|
|
748
|
+
smooth: L.value.style.chart.areas.smooth,
|
|
748
749
|
series: e.values
|
|
749
750
|
})), P.value = e, kn.value = ne({
|
|
750
|
-
...
|
|
751
|
+
...L.value.style.chart.dialog.xyChart,
|
|
751
752
|
responsive: !0,
|
|
752
753
|
chart: {
|
|
753
|
-
...
|
|
754
|
+
...L.value.style.chart.dialog.xyChart.chart,
|
|
754
755
|
grid: {
|
|
755
|
-
...
|
|
756
|
+
...L.value.style.chart.dialog.xyChart.chart.grid,
|
|
756
757
|
labels: {
|
|
757
|
-
...
|
|
758
|
+
...L.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
758
759
|
xAxisLabels: {
|
|
759
|
-
...
|
|
760
|
-
values:
|
|
760
|
+
...L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
761
|
+
values: L.value.style.chart.xAxis.labels.values,
|
|
761
762
|
autoRotate: {
|
|
762
763
|
enable: !0,
|
|
763
|
-
angle:
|
|
764
|
+
angle: L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
764
765
|
},
|
|
765
|
-
datetimeFormatter:
|
|
766
|
+
datetimeFormatter: L.value.style.chart.xAxis.labels.datetimeFormatter
|
|
766
767
|
}
|
|
767
768
|
}
|
|
768
769
|
},
|
|
769
770
|
tooltip: {
|
|
770
|
-
...
|
|
771
|
-
showTimeLabel:
|
|
771
|
+
...L.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
772
|
+
showTimeLabel: L.value.style.chart.xAxis.labels.values.length > 0
|
|
772
773
|
},
|
|
773
774
|
userOptions: {
|
|
774
|
-
...
|
|
775
|
+
...L.value.style.chart.dialog.xyChart.chart.userOptions,
|
|
775
776
|
buttons: {
|
|
776
|
-
...
|
|
777
|
-
altCopy:
|
|
777
|
+
...L.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
|
|
778
|
+
altCopy: L.value.userOptions.buttons.altCopy
|
|
778
779
|
},
|
|
779
780
|
callbacks: {
|
|
780
|
-
...
|
|
781
|
+
...L.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
|
|
781
782
|
altCopy: () => {}
|
|
782
783
|
},
|
|
783
|
-
useCursorPointer:
|
|
784
|
+
useCursorPointer: L.value.userOptions.useCursorPointer
|
|
784
785
|
}
|
|
785
786
|
}
|
|
786
787
|
}), Bt.value && Bt.value.open());
|
|
@@ -797,7 +798,7 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
797
798
|
Fn.value = !Fn.value;
|
|
798
799
|
}
|
|
799
800
|
function Ln() {
|
|
800
|
-
|
|
801
|
+
U.value.showTable = !U.value.showTable;
|
|
801
802
|
}
|
|
802
803
|
let Rn = u(() => ({ body: Y.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
803
804
|
...t,
|
|
@@ -806,21 +807,21 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
806
807
|
name: e.rowName,
|
|
807
808
|
color: e.color
|
|
808
809
|
}, ...e.values]) })), $ = u(() => {
|
|
809
|
-
let e = [
|
|
810
|
+
let e = [L.value.table.columnNames.series, ...q.value.map((e) => e.text)], t = {
|
|
810
811
|
th: {
|
|
811
|
-
backgroundColor:
|
|
812
|
-
color:
|
|
813
|
-
outline:
|
|
812
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
813
|
+
color: L.value.table.th.color,
|
|
814
|
+
outline: L.value.table.th.outline
|
|
814
815
|
},
|
|
815
816
|
td: {
|
|
816
|
-
backgroundColor:
|
|
817
|
-
color:
|
|
818
|
-
outline:
|
|
817
|
+
backgroundColor: L.value.table.td.backgroundColor,
|
|
818
|
+
color: L.value.table.td.color,
|
|
819
|
+
outline: L.value.table.td.outline
|
|
819
820
|
},
|
|
820
|
-
breakpoint:
|
|
821
|
+
breakpoint: L.value.table.responsiveBreakpoint
|
|
821
822
|
};
|
|
822
823
|
return {
|
|
823
|
-
colNames: [
|
|
824
|
+
colNames: [L.value.table.columnNames.series, ...q.value.map((e) => e.text)],
|
|
824
825
|
head: e,
|
|
825
826
|
body: Rn.value.body,
|
|
826
827
|
config: t
|
|
@@ -828,10 +829,10 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
828
829
|
});
|
|
829
830
|
function zn(e = null) {
|
|
830
831
|
He(() => {
|
|
831
|
-
let r = [[
|
|
832
|
+
let r = [[L.value.table.columnNames.series, ...q.map((e) => [e.text])], ...Rn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = [[L.value.style.chart.title.text], [L.value.style.chart.title.subtitle.text]].concat(r), a = n(i);
|
|
832
833
|
e ? e(a) : t({
|
|
833
834
|
csvContent: a,
|
|
834
|
-
title:
|
|
835
|
+
title: L.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
835
836
|
});
|
|
836
837
|
});
|
|
837
838
|
}
|
|
@@ -849,7 +850,7 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
849
850
|
return {
|
|
850
851
|
imageUri: i,
|
|
851
852
|
base64: a,
|
|
852
|
-
title:
|
|
853
|
+
title: L.value.style.chart.title.text,
|
|
853
854
|
width: t,
|
|
854
855
|
height: n,
|
|
855
856
|
aspectRatio: r
|
|
@@ -857,13 +858,13 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
857
858
|
}
|
|
858
859
|
let Hn = u(() => ({
|
|
859
860
|
min: 0,
|
|
860
|
-
max:
|
|
861
|
+
max: _n.value
|
|
861
862
|
}));
|
|
862
863
|
we({
|
|
863
864
|
timeLabelsEls: Ht,
|
|
864
865
|
timeLabels: q,
|
|
865
866
|
slicer: Hn,
|
|
866
|
-
configRef:
|
|
867
|
+
configRef: L,
|
|
867
868
|
rotationPath: [
|
|
868
869
|
"style",
|
|
869
870
|
"chart",
|
|
@@ -880,59 +881,59 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
880
881
|
"enable"
|
|
881
882
|
],
|
|
882
883
|
isAutoSize: !1,
|
|
883
|
-
width:
|
|
884
|
-
height:
|
|
884
|
+
width: pn,
|
|
885
|
+
height: mn,
|
|
885
886
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
886
|
-
angle:
|
|
887
|
+
angle: L.value.style.chart.xAxis.labels.autoRotate.angle
|
|
887
888
|
});
|
|
888
889
|
let Un = u(() => {
|
|
889
|
-
let e =
|
|
890
|
+
let e = L.value.table.useDialog && !L.value.table.show, t = U.value.showTable;
|
|
890
891
|
return {
|
|
891
892
|
component: e ? Et : xt,
|
|
892
|
-
title: `${
|
|
893
|
+
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
893
894
|
props: e ? {
|
|
894
|
-
backgroundColor:
|
|
895
|
-
color:
|
|
896
|
-
headerColor:
|
|
897
|
-
headerBg:
|
|
895
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
896
|
+
color: L.value.table.th.color,
|
|
897
|
+
headerColor: L.value.table.th.color,
|
|
898
|
+
headerBg: L.value.table.th.backgroundColor,
|
|
898
899
|
isFullscreen: Q.value,
|
|
899
900
|
fullscreenParent: k.value,
|
|
900
901
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
901
|
-
isCursorPointer:
|
|
902
|
+
isCursorPointer: R.value
|
|
902
903
|
} : {
|
|
903
904
|
hideDetails: !0,
|
|
904
905
|
config: {
|
|
905
906
|
open: t,
|
|
906
907
|
maxHeight: 1e4,
|
|
907
908
|
body: {
|
|
908
|
-
backgroundColor:
|
|
909
|
-
color:
|
|
909
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
910
|
+
color: L.value.style.chart.color
|
|
910
911
|
},
|
|
911
912
|
head: {
|
|
912
|
-
backgroundColor:
|
|
913
|
-
color:
|
|
913
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
914
|
+
color: L.value.style.chart.color
|
|
914
915
|
}
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
918
|
};
|
|
918
919
|
});
|
|
919
|
-
Je(() =>
|
|
920
|
-
|
|
920
|
+
Je(() => U.value.showTable, (e) => {
|
|
921
|
+
L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
921
922
|
});
|
|
922
923
|
function Wn() {
|
|
923
|
-
|
|
924
|
+
U.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
924
925
|
}
|
|
925
|
-
let Gn = u(() =>
|
|
926
|
-
...
|
|
926
|
+
let Gn = u(() => L.value.style.chart.backgroundColor), Kn = u(() => ({
|
|
927
|
+
...L.value.style.chart.legend,
|
|
927
928
|
position: "bottom"
|
|
928
|
-
})), qn = u(() =>
|
|
929
|
-
svg:
|
|
929
|
+
})), qn = u(() => L.value.style.chart.title), { isCallbackImaging: Jn, isCallbackSvg: Yn, generateSvg: Xn, onGenerateImage: Zn } = Ce({
|
|
930
|
+
svg: V,
|
|
930
931
|
title: qn,
|
|
931
932
|
legend: Kn,
|
|
932
933
|
legendItems: Z,
|
|
933
934
|
backgroundColor: Gn,
|
|
934
|
-
getSvgCallback: () =>
|
|
935
|
-
generateImage:
|
|
935
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
936
|
+
generateImage: nn
|
|
936
937
|
});
|
|
937
938
|
function Qn(e) {
|
|
938
939
|
$n("xy-zoom", e.dataset, e.config);
|
|
@@ -940,26 +941,26 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
940
941
|
async function $n(e = "main-chart", t = null, n = null) {
|
|
941
942
|
if (O("copyAlt", {
|
|
942
943
|
source: e,
|
|
943
|
-
config: e === "main-chart" ?
|
|
944
|
+
config: e === "main-chart" ? L.value : kn.value,
|
|
944
945
|
dataset: e === "main-chart" ? Y.value : An.value
|
|
945
|
-
}), !
|
|
946
|
+
}), !L.value.userOptions.callbacks.altCopy) {
|
|
946
947
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
947
948
|
return;
|
|
948
949
|
}
|
|
949
|
-
await Promise.resolve(
|
|
950
|
+
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
950
951
|
source: e,
|
|
951
|
-
config: e === "main-chart" ?
|
|
952
|
+
config: e === "main-chart" ? L.value : kn.value,
|
|
952
953
|
dataset: e === "main-chart" ? Y.value : An.value
|
|
953
954
|
}));
|
|
954
955
|
}
|
|
955
956
|
function er() {
|
|
956
|
-
|
|
957
|
+
I.value = null, Wt.value = !0;
|
|
957
958
|
}
|
|
958
959
|
function tr() {
|
|
959
|
-
ar(),
|
|
960
|
+
ar(), Wt.value = !1;
|
|
960
961
|
}
|
|
961
962
|
function nr(e) {
|
|
962
|
-
if (!
|
|
963
|
+
if (!V.value || Fn.value || document.activeElement !== V.value || !Y.value.length) return;
|
|
963
964
|
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";
|
|
964
965
|
if (!t && !n && !r && !i && !a && !ee) return;
|
|
965
966
|
if (e.preventDefault(), e.stopPropagation(), ee) {
|
|
@@ -967,8 +968,8 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
967
968
|
return;
|
|
968
969
|
}
|
|
969
970
|
if (a) {
|
|
970
|
-
if (
|
|
971
|
-
let e = Y.value[
|
|
971
|
+
if (I.value !== null) {
|
|
972
|
+
let e = Y.value[I.value];
|
|
972
973
|
e && jn(e);
|
|
973
974
|
return;
|
|
974
975
|
}
|
|
@@ -976,15 +977,15 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
976
977
|
return;
|
|
977
978
|
}
|
|
978
979
|
if (t || n) {
|
|
979
|
-
let e =
|
|
980
|
-
e = e === null ? n ? 0 : Y.value.length - 1 : rr(e + (n ? 1 : -1)),
|
|
980
|
+
let e = I.value;
|
|
981
|
+
e = e === null ? n ? 0 : Y.value.length - 1 : rr(e + (n ? 1 : -1)), I.value = e, Mn.value = e;
|
|
981
982
|
return;
|
|
982
983
|
}
|
|
983
984
|
if (!J.value.length) return;
|
|
984
|
-
let
|
|
985
|
-
|
|
986
|
-
let
|
|
987
|
-
|
|
985
|
+
let te = N.value?.index ?? null;
|
|
986
|
+
te = te === null ? i ? 0 : J.value.length - 1 : ir(te + (i ? 1 : -1));
|
|
987
|
+
let o = J.value[te];
|
|
988
|
+
o && bn(o);
|
|
988
989
|
}
|
|
989
990
|
function rr(e) {
|
|
990
991
|
let t = Y.value.length;
|
|
@@ -995,23 +996,23 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
995
996
|
return t ? (e % t + t) % t : null;
|
|
996
997
|
}
|
|
997
998
|
function ar() {
|
|
998
|
-
|
|
999
|
+
I.value = null, Mn.value = null, N.value ? xn(N.value) : N.value = null;
|
|
999
1000
|
}
|
|
1000
1001
|
let or = u(() => ({
|
|
1001
1002
|
head: $.value.head,
|
|
1002
1003
|
body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
1003
|
-
caption:
|
|
1004
|
-
notice:
|
|
1004
|
+
caption: L.value.a11y.translations.tableCaption,
|
|
1005
|
+
notice: L.value.a11y.translations.tableAvailable
|
|
1005
1006
|
}));
|
|
1006
1007
|
return Oe({
|
|
1007
1008
|
getData: Bn,
|
|
1008
1009
|
getImage: Vn,
|
|
1009
|
-
generateImage:
|
|
1010
|
+
generateImage: nn,
|
|
1010
1011
|
generateSvg: Xn,
|
|
1011
|
-
generatePdf:
|
|
1012
|
+
generatePdf: tn,
|
|
1012
1013
|
generateCsv: zn,
|
|
1013
|
-
hideSeries:
|
|
1014
|
-
showSeries:
|
|
1014
|
+
hideSeries: dn,
|
|
1015
|
+
showSeries: un,
|
|
1015
1016
|
toggleAnnotator: In,
|
|
1016
1017
|
toggleTable: Ln,
|
|
1017
1018
|
toggleFullscreen: On,
|
|
@@ -1022,19 +1023,19 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1022
1023
|
class: Ue(`vue-data-ui-component vue-ui-ridgeline ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1023
1024
|
id: `vue-ui-ridgeline_${M.value}`,
|
|
1024
1025
|
style: v({
|
|
1025
|
-
fontFamily:
|
|
1026
|
+
fontFamily: L.value.style.fontFamily,
|
|
1026
1027
|
width: "100%",
|
|
1027
1028
|
textAlign: "center",
|
|
1028
|
-
background:
|
|
1029
|
-
height:
|
|
1029
|
+
background: L.value.style.chart.backgroundColor,
|
|
1030
|
+
height: L.value.responsive ? "100%" : void 0
|
|
1030
1031
|
}),
|
|
1031
|
-
onMouseenter: t[3] ||= () => w(
|
|
1032
|
-
onMouseleave: t[4] ||= () => w(
|
|
1032
|
+
onMouseenter: t[3] ||= () => w(Xt)(!0),
|
|
1033
|
+
onMouseleave: t[4] ||= () => w(Xt)(!1)
|
|
1033
1034
|
}, [
|
|
1034
1035
|
m("div", {
|
|
1035
1036
|
id: `chart-instructions-${M.value}`,
|
|
1036
1037
|
class: "sr-only"
|
|
1037
|
-
}, [m("p", null, C(
|
|
1038
|
+
}, [m("p", null, C(L.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1038
1039
|
or.value.body.length ? (y(), d(Ne, {
|
|
1039
1040
|
key: 0,
|
|
1040
1041
|
uid: M.value,
|
|
@@ -1049,13 +1050,13 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1049
1050
|
"caption",
|
|
1050
1051
|
"notice"
|
|
1051
1052
|
])) : f("", !0),
|
|
1052
|
-
|
|
1053
|
+
L.value.userOptions.buttons.annotator && w(V) ? (y(), d(w(Ct), {
|
|
1053
1054
|
key: 1,
|
|
1054
|
-
color:
|
|
1055
|
-
backgroundColor:
|
|
1055
|
+
color: L.value.style.chart.color,
|
|
1056
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1056
1057
|
active: Fn.value,
|
|
1057
|
-
svgRef: w(
|
|
1058
|
-
isCursorPointer:
|
|
1058
|
+
svgRef: w(V),
|
|
1059
|
+
isCursorPointer: R.value,
|
|
1059
1060
|
onClose: In
|
|
1060
1061
|
}, {
|
|
1061
1062
|
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -1073,14 +1074,14 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1073
1074
|
"isCursorPointer"
|
|
1074
1075
|
])) : f("", !0),
|
|
1075
1076
|
S(e.$slots, "userConfig", {}, void 0, !0),
|
|
1076
|
-
|
|
1077
|
+
rn.value ? (y(), p("div", {
|
|
1077
1078
|
key: 2,
|
|
1078
1079
|
ref_key: "noTitle",
|
|
1079
1080
|
ref: Nt,
|
|
1080
1081
|
class: "vue-data-ui-no-title-space",
|
|
1081
1082
|
style: "height:36px; width: 100%;background:transparent"
|
|
1082
1083
|
}, null, 512)) : f("", !0),
|
|
1083
|
-
|
|
1084
|
+
L.value.style.chart.title.text ? (y(), p("div", {
|
|
1084
1085
|
key: 3,
|
|
1085
1086
|
ref_key: "chartTitle",
|
|
1086
1087
|
ref: At,
|
|
@@ -1090,46 +1091,46 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1090
1091
|
config: {
|
|
1091
1092
|
title: {
|
|
1092
1093
|
cy: "ridgeline-div-title",
|
|
1093
|
-
...
|
|
1094
|
+
...L.value.style.chart.title
|
|
1094
1095
|
},
|
|
1095
1096
|
subtitle: {
|
|
1096
1097
|
cy: "ridgeline-div-subtitle",
|
|
1097
|
-
...
|
|
1098
|
+
...L.value.style.chart.title.subtitle
|
|
1098
1099
|
}
|
|
1099
1100
|
}
|
|
1100
1101
|
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
1101
|
-
|
|
1102
|
+
L.value.userOptions.show && D.value && (w(Zt) || w(Yt)) ? (y(), d(w(wt), {
|
|
1102
1103
|
ref_key: "userOptionsRef",
|
|
1103
|
-
ref:
|
|
1104
|
+
ref: Ut,
|
|
1104
1105
|
key: `user_option_${Lt.value}`,
|
|
1105
|
-
backgroundColor:
|
|
1106
|
-
color:
|
|
1107
|
-
isPrinting: w(
|
|
1108
|
-
isImaging: w(
|
|
1106
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1107
|
+
color: L.value.style.chart.color,
|
|
1108
|
+
isPrinting: w($t),
|
|
1109
|
+
isImaging: w(en),
|
|
1109
1110
|
uid: M.value,
|
|
1110
1111
|
hasTooltip: !1,
|
|
1111
|
-
callbacks:
|
|
1112
|
-
hasPdf:
|
|
1113
|
-
hasImg:
|
|
1114
|
-
hasSvg:
|
|
1115
|
-
hasXls:
|
|
1116
|
-
hasTable:
|
|
1112
|
+
callbacks: L.value.userOptions.callbacks,
|
|
1113
|
+
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1114
|
+
hasImg: L.value.userOptions.buttons.img,
|
|
1115
|
+
hasSvg: L.value.userOptions.buttons.svg,
|
|
1116
|
+
hasXls: L.value.userOptions.buttons.csv,
|
|
1117
|
+
hasTable: L.value.userOptions.buttons.table,
|
|
1117
1118
|
hasLabel: !1,
|
|
1118
|
-
hasFullscreen:
|
|
1119
|
-
hasAltCopy:
|
|
1119
|
+
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1120
|
+
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1120
1121
|
isFullscreen: Q.value,
|
|
1121
|
-
printScale:
|
|
1122
|
+
printScale: L.value.userOptions.print.scale,
|
|
1122
1123
|
chartElement: k.value,
|
|
1123
|
-
position:
|
|
1124
|
+
position: L.value.userOptions.position,
|
|
1124
1125
|
isTooltip: !1,
|
|
1125
|
-
titles: { ...
|
|
1126
|
-
hasAnnotator:
|
|
1126
|
+
titles: { ...L.value.userOptions.buttonTitles },
|
|
1127
|
+
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1127
1128
|
isAnnotation: Fn.value,
|
|
1128
|
-
tableDialog:
|
|
1129
|
-
style: v({ visibility: w(
|
|
1130
|
-
isCursorPointer:
|
|
1129
|
+
tableDialog: L.value.table.useDialog,
|
|
1130
|
+
style: v({ visibility: w(Zt) ? w(Yt) ? "visible" : "hidden" : "visible" }),
|
|
1131
|
+
isCursorPointer: R.value,
|
|
1131
1132
|
onToggleFullscreen: On,
|
|
1132
|
-
onGeneratePdf: w(
|
|
1133
|
+
onGeneratePdf: w(tn),
|
|
1133
1134
|
onGenerateCsv: zn,
|
|
1134
1135
|
onGenerateImage: w(Zn),
|
|
1135
1136
|
onGenerateSvg: w(Xn),
|
|
@@ -1209,15 +1210,15 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1209
1210
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.callbacks.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.printScale.chartElement.position.titles.hasAnnotator.isAnnotation.tableDialog.style.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg".split("."))) : f("", !0),
|
|
1210
1211
|
m("div", $e, [(y(), p("svg", {
|
|
1211
1212
|
ref_key: "svgRef",
|
|
1212
|
-
ref:
|
|
1213
|
+
ref: V,
|
|
1213
1214
|
xmlns: w(fe),
|
|
1214
1215
|
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1215
1216
|
class: Ue({
|
|
1216
1217
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1217
1218
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1218
1219
|
}),
|
|
1219
|
-
viewBox: `0 0 ${
|
|
1220
|
-
style: v(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1220
|
+
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${K.value.fullHeight <= 0 ? 10 : K.value.fullHeight}`,
|
|
1221
|
+
style: v(`max-width:100%;overflow:visible;background:transparent;color:${L.value.style.chart.color};${L.value.responsive ? `height: ${Vt.value}px; width: 100%;` : ""}`),
|
|
1221
1222
|
tabindex: "0",
|
|
1222
1223
|
onFocus: er,
|
|
1223
1224
|
onBlur: tr,
|
|
@@ -1292,120 +1293,121 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1292
1293
|
patternId: `pattern_${M.value}_${t.uid}`
|
|
1293
1294
|
}), void 0, !0)])])) : f("", !0),
|
|
1294
1295
|
m("path", {
|
|
1295
|
-
fill: e.$slots.pattern ? `url(#pattern_${M.value}_${t.uid})` :
|
|
1296
|
+
fill: e.$slots.pattern ? `url(#pattern_${M.value}_${t.uid})` : L.value.style.chart.backgroundColor,
|
|
1296
1297
|
stroke: "none",
|
|
1297
1298
|
"stroke-linecap": "round",
|
|
1298
|
-
d:
|
|
1299
|
-
style: v({ opacity:
|
|
1299
|
+
d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1300
|
+
style: v({ opacity: L.value.style.chart.areas.opacity })
|
|
1300
1301
|
}, null, 12, nt),
|
|
1301
1302
|
m("path", {
|
|
1302
1303
|
fill: "none",
|
|
1303
|
-
stroke:
|
|
1304
|
-
"stroke-width":
|
|
1305
|
-
d:
|
|
1304
|
+
stroke: L.value.style.chart.areas.stroke.useSerieColor ? t.color : L.value.style.chart.areas.stroke.color,
|
|
1305
|
+
"stroke-width": L.value.style.chart.areas.strokeWidth,
|
|
1306
|
+
d: L.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
|
|
1306
1307
|
"stroke-linecap": "round",
|
|
1307
1308
|
"stroke-linejoin": "round",
|
|
1308
1309
|
style: v({
|
|
1309
1310
|
strokeDasharray: t.pathLength,
|
|
1310
|
-
strokeDashoffset:
|
|
1311
|
+
strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
|
|
1311
1312
|
})
|
|
1312
1313
|
}, null, 12, rt),
|
|
1313
1314
|
m("path", {
|
|
1314
|
-
fill:
|
|
1315
|
+
fill: L.value.style.chart.areas.useGradient ? L.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${M.value})` : `url(#gradient-single-${M.value}-${t.uid})` : t.color,
|
|
1315
1316
|
stroke: "none",
|
|
1316
|
-
d:
|
|
1317
|
+
d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1317
1318
|
"stroke-linecap": "round",
|
|
1318
1319
|
"stroke-linejoin": "round",
|
|
1319
1320
|
style: v({
|
|
1320
1321
|
strokeDasharray: t.pathLength,
|
|
1321
|
-
strokeDashoffset:
|
|
1322
|
+
strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
|
|
1322
1323
|
})
|
|
1323
1324
|
}, null, 12, it),
|
|
1324
|
-
|
|
1325
|
+
L.value.style.chart.zeroLine.show ? (y(), p("path", {
|
|
1325
1326
|
key: 1,
|
|
1326
|
-
stroke:
|
|
1327
|
-
"stroke-dasharray":
|
|
1328
|
-
"stroke-width":
|
|
1327
|
+
stroke: L.value.style.chart.zeroLine.useSerieColor ? t.color : L.value.style.chart.zeroLine.stroke,
|
|
1328
|
+
"stroke-dasharray": L.value.style.chart.zeroLine.strokeDasharray,
|
|
1329
|
+
"stroke-width": L.value.style.chart.zeroLine.strokeWidth,
|
|
1329
1330
|
d: t.zeroPath,
|
|
1330
1331
|
"stroke-linecap": "round"
|
|
1331
1332
|
}, null, 8, at)) : f("", !0),
|
|
1332
|
-
|
|
1333
|
+
L.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (y(!0), p(l, { key: 2 }, x(t.plots, (e) => (y(), p(l, null, [e.isMaxPoint ? (y(), p("line", {
|
|
1333
1334
|
key: 0,
|
|
1334
1335
|
x1: e.x,
|
|
1335
1336
|
y1: e.y,
|
|
1336
1337
|
x2: e.x,
|
|
1337
1338
|
y2: e.zero,
|
|
1338
|
-
stroke:
|
|
1339
|
-
"stroke-width":
|
|
1339
|
+
stroke: L.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? w(de)(t.color) : L.value.style.chart.areas.maxPoint.stroke,
|
|
1340
|
+
"stroke-width": L.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1340
1341
|
"stroke-linecap": "round",
|
|
1341
|
-
"stroke-dasharray":
|
|
1342
|
+
"stroke-dasharray": L.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1342
1343
|
}, null, 8, ot)) : f("", !0)], 64))), 256)) : f("", !0),
|
|
1343
1344
|
t.plots.length === 1 ? (y(), p("circle", {
|
|
1344
1345
|
key: 3,
|
|
1345
1346
|
cx: t.plots[0].x,
|
|
1346
1347
|
cy: t.plots[0].y,
|
|
1347
|
-
stroke:
|
|
1348
|
-
"stroke-width":
|
|
1349
|
-
r:
|
|
1350
|
-
fill:
|
|
1348
|
+
stroke: L.value.style.chart.selector.dot.stroke,
|
|
1349
|
+
"stroke-width": L.value.style.chart.selector.dot.strokeWidth,
|
|
1350
|
+
r: L.value.style.chart.selector.dot.radius,
|
|
1351
|
+
fill: L.value.style.chart.selector.dot.useDatapointColor ? t.color : L.value.style.chart.selector.dot.fill,
|
|
1351
1352
|
style: { pointerEvents: "none" }
|
|
1352
1353
|
}, null, 8, st)) : f("", !0)
|
|
1353
1354
|
]))), 128)), m("text", {
|
|
1354
1355
|
x: t.label.x,
|
|
1355
1356
|
y: t.label.y,
|
|
1356
1357
|
"text-anchor": "end",
|
|
1357
|
-
"font-size":
|
|
1358
|
-
"font-weight":
|
|
1359
|
-
fill:
|
|
1360
|
-
style: v({ cursor:
|
|
1361
|
-
"text-decoration":
|
|
1358
|
+
"font-size": L.value.style.chart.yAxis.labels.fontSize,
|
|
1359
|
+
"font-weight": L.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1360
|
+
fill: L.value.style.chart.yAxis.labels.color,
|
|
1361
|
+
style: v({ cursor: L.value.style.chart.dialog.show && R.value ? "pointer" : "default" }),
|
|
1362
|
+
"text-decoration": L.value.style.chart.dialog.show && (Mn.value === n || P.value && t.uid === P.value.uid || I.value === n) ? "underline" : "",
|
|
1363
|
+
"dominant-baseline": "middle",
|
|
1362
1364
|
onMouseenter: (e) => Nn(n),
|
|
1363
1365
|
onMouseleave: Pn,
|
|
1364
1366
|
onClick: (e) => jn(t)
|
|
1365
1367
|
}, C(t.name), 45, ct)]))), 128)),
|
|
1366
|
-
|
|
1368
|
+
L.value.style.chart.xAxis.labels.values.length ? (y(), p("g", {
|
|
1367
1369
|
key: 0,
|
|
1368
1370
|
ref_key: "timeLabelsEls",
|
|
1369
1371
|
ref: Ht
|
|
1370
1372
|
}, [(y(!0), p(l, null, x(J.value, (t, n) => S(e.$slots, "time-label", Ve({ ref_for: !0 }, {
|
|
1371
|
-
show: t && !
|
|
1372
|
-
fontSize:
|
|
1373
|
+
show: t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !L.value.style.chart.xAxis.labels.showOnlyAtModulo || t && L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && N.value && N.value.index === n || t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && L.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.max(1, Math.floor(Number(L.value.style.chart.xAxis.labels.modulo) || 1)) === 0,
|
|
1374
|
+
fontSize: L.value.style.chart.xAxis.labels.fontSize,
|
|
1373
1375
|
content: t.label,
|
|
1374
|
-
textAnchor:
|
|
1375
|
-
fill:
|
|
1376
|
-
transform: `translate(${t.selectorX}, ${
|
|
1376
|
+
textAnchor: L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1377
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1378
|
+
transform: `translate(${t.selectorX}, ${K.value.top + t.height + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
|
|
1377
1379
|
x: t.selectorX,
|
|
1378
|
-
y:
|
|
1379
|
-
}), () => [t && !
|
|
1380
|
+
y: K.value.bottom + L.value.style.chart.xAxis.labels.offsetY
|
|
1381
|
+
}), () => [t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !L.value.style.chart.xAxis.labels.showOnlyAtModulo || t && L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && N.value && N.value.index === n || t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && L.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.max(1, Math.floor(Number(L.value.style.chart.xAxis.labels.modulo) || 1)) === 0 ? (y(), p("g", lt, [String(t.label).includes("\n") ? (y(), p("text", {
|
|
1380
1382
|
key: 1,
|
|
1381
1383
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1382
|
-
"font-size":
|
|
1383
|
-
fill:
|
|
1384
|
-
"font-weight":
|
|
1385
|
-
transform: `translate(${t.selectorX}, ${
|
|
1386
|
-
"text-anchor":
|
|
1384
|
+
"font-size": L.value.style.chart.xAxis.labels.fontSize,
|
|
1385
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1386
|
+
"font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1387
|
+
transform: `translate(${t.selectorX}, ${K.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
|
|
1388
|
+
"text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1387
1389
|
style: v({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 }),
|
|
1388
1390
|
innerHTML: w(r)({
|
|
1389
1391
|
content: String(t.label),
|
|
1390
|
-
fontSize:
|
|
1391
|
-
fill:
|
|
1392
|
-
stroke:
|
|
1392
|
+
fontSize: L.value.style.chart.xAxis.labels.fontSize,
|
|
1393
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1394
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
1393
1395
|
x: 0,
|
|
1394
1396
|
y: 0
|
|
1395
1397
|
})
|
|
1396
1398
|
}, null, 12, dt)) : (y(), p("text", {
|
|
1397
1399
|
key: 0,
|
|
1398
1400
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1399
|
-
"font-size":
|
|
1400
|
-
fill:
|
|
1401
|
-
stroke:
|
|
1401
|
+
"font-size": L.value.style.chart.xAxis.labels.fontSize,
|
|
1402
|
+
fill: L.value.style.chart.xAxis.labels.color,
|
|
1403
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
1402
1404
|
"stroke-width": "3",
|
|
1403
1405
|
"stroke-linecap": "round",
|
|
1404
1406
|
"stroke-linejoin": "round",
|
|
1405
1407
|
"paint-order": "stroke fill",
|
|
1406
|
-
"font-weight":
|
|
1407
|
-
transform: `translate(${t.selectorX}, ${
|
|
1408
|
-
"text-anchor":
|
|
1408
|
+
"font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1409
|
+
transform: `translate(${t.selectorX}, ${K.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
|
|
1410
|
+
"text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1409
1411
|
style: v({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 })
|
|
1410
1412
|
}, C(t.label), 13, ut))])) : f("", !0)], !0)), 256))], 512)) : f("", !0),
|
|
1411
1413
|
m("g", null, [
|
|
@@ -1419,15 +1421,15 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1419
1421
|
onMouseleave: (t) => xn(e),
|
|
1420
1422
|
onClick: () => Sn(e)
|
|
1421
1423
|
}, null, 40, ft))), 256)),
|
|
1422
|
-
|
|
1424
|
+
L.value.style.chart.selector.show && N.value ? (y(), p("line", {
|
|
1423
1425
|
key: 0,
|
|
1424
1426
|
x1: N.value.selectorX,
|
|
1425
1427
|
x2: N.value.selectorX,
|
|
1426
1428
|
y1: N.value.y,
|
|
1427
|
-
y2: N.value.y + N.value.height -
|
|
1428
|
-
stroke:
|
|
1429
|
-
"stroke-width":
|
|
1430
|
-
"stroke-dasharray":
|
|
1429
|
+
y2: N.value.y + N.value.height - B.value / 2,
|
|
1430
|
+
stroke: L.value.style.chart.selector.stroke,
|
|
1431
|
+
"stroke-width": L.value.style.chart.selector.strokeWidth,
|
|
1432
|
+
"stroke-dasharray": L.value.style.chart.selector.strokeDasharray,
|
|
1431
1433
|
"stroke-linecap": "round",
|
|
1432
1434
|
style: { pointerEvents: "none" }
|
|
1433
1435
|
}, null, 8, pt)) : f("", !0),
|
|
@@ -1435,70 +1437,77 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1435
1437
|
key: 0,
|
|
1436
1438
|
cx: t.x,
|
|
1437
1439
|
cy: t.y,
|
|
1438
|
-
stroke:
|
|
1439
|
-
"stroke-width":
|
|
1440
|
-
r:
|
|
1441
|
-
fill:
|
|
1440
|
+
stroke: L.value.style.chart.selector.dot.stroke,
|
|
1441
|
+
"stroke-width": L.value.style.chart.selector.dot.strokeWidth,
|
|
1442
|
+
r: L.value.style.chart.selector.dot.radius,
|
|
1443
|
+
fill: L.value.style.chart.selector.dot.useDatapointColor ? e.color : L.value.style.chart.selector.dot.fill,
|
|
1442
1444
|
style: { pointerEvents: "none" }
|
|
1443
1445
|
}, null, 8, mt)) : f("", !0), N.value && N.value.index === n ? (y(), p("text", {
|
|
1444
1446
|
key: 1,
|
|
1445
|
-
x: wn(t.x, w(
|
|
1446
|
-
p:
|
|
1447
|
+
x: wn(t.x, w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
|
|
1448
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1447
1449
|
v: t.value,
|
|
1448
|
-
s:
|
|
1449
|
-
r:
|
|
1450
|
-
})),
|
|
1451
|
-
y: t.y
|
|
1452
|
-
"
|
|
1453
|
-
|
|
1450
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1451
|
+
r: L.value.style.chart.selector.labels.rounding
|
|
1452
|
+
})), L.value.style.chart.selector.labels.fontSize) ? t.x - L.value.style.chart.selector.labels.fontSize / 2 : t.x + L.value.style.chart.selector.labels.fontSize / 2,
|
|
1453
|
+
y: t.y,
|
|
1454
|
+
"dominant-baseline": "middle",
|
|
1455
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
1456
|
+
"stroke-linecap": "round",
|
|
1457
|
+
"stroke-linejoin": "round",
|
|
1458
|
+
"stroke-width": "3",
|
|
1459
|
+
"paint-order": "stroke fill",
|
|
1460
|
+
"text-anchor": wn(t.x, w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
|
|
1461
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1454
1462
|
v: t.value,
|
|
1455
|
-
s:
|
|
1456
|
-
r:
|
|
1457
|
-
})),
|
|
1458
|
-
"font-size":
|
|
1459
|
-
fill:
|
|
1463
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1464
|
+
r: L.value.style.chart.selector.labels.rounding
|
|
1465
|
+
})), L.value.style.chart.selector.labels.fontSize) ? "end" : "start",
|
|
1466
|
+
"font-size": L.value.style.chart.selector.labels.fontSize,
|
|
1467
|
+
fill: L.value.style.chart.selector.labels.color,
|
|
1460
1468
|
style: { pointerEvents: "none" }
|
|
1461
|
-
}, C(w(
|
|
1462
|
-
p:
|
|
1469
|
+
}, C(w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
|
|
1470
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1463
1471
|
v: t.value,
|
|
1464
|
-
s:
|
|
1465
|
-
r:
|
|
1472
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1473
|
+
r: L.value.style.chart.selector.labels.rounding
|
|
1466
1474
|
}))), 9, ht)) : f("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : f("", !0)
|
|
1467
1475
|
]),
|
|
1468
1476
|
S(e.$slots, "svg", { svg: {
|
|
1469
|
-
...
|
|
1470
|
-
drawingArea:
|
|
1471
|
-
isPrintingImg: w(
|
|
1472
|
-
isPrintingSvg: w(Yn)
|
|
1477
|
+
...G.value,
|
|
1478
|
+
drawingArea: K.value,
|
|
1479
|
+
isPrintingImg: w($t) || w(en) || w(Jn),
|
|
1480
|
+
isPrintingSvg: w(Yn),
|
|
1481
|
+
data: Y.value
|
|
1473
1482
|
} }, void 0, !0)
|
|
1474
1483
|
], 46, et)), e.$slots.hint ? (y(), p("div", gt, [S(e.$slots, "hint", _(g({
|
|
1475
|
-
hint:
|
|
1476
|
-
isVisible:
|
|
1484
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1485
|
+
isVisible: Wt.value
|
|
1477
1486
|
})), void 0, !0)])) : f("", !0)]),
|
|
1478
|
-
e.$slots.watermark ? (y(), p("div", _t, [S(e.$slots, "watermark", _(g({ isPrinting: w(
|
|
1487
|
+
e.$slots.watermark ? (y(), p("div", _t, [S(e.$slots, "watermark", _(g({ isPrinting: w($t) || w(en) || w(Jn) || w(Yn) })), void 0, !0)])) : f("", !0),
|
|
1479
1488
|
m("div", {
|
|
1480
1489
|
ref_key: "chartLegend",
|
|
1481
1490
|
ref: jt
|
|
1482
|
-
}, [S(e.$slots, "legend", { legend: Z.value }, () => [
|
|
1491
|
+
}, [S(e.$slots, "legend", { legend: Z.value }, () => [L.value.style.chart.legend.show ? (y(), d(Ie, {
|
|
1483
1492
|
key: `legend_${It.value}`,
|
|
1484
1493
|
legendSet: Z.value,
|
|
1485
1494
|
config: Dn.value,
|
|
1486
|
-
isCursorPointer:
|
|
1487
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1495
|
+
isCursorPointer: R.value,
|
|
1496
|
+
onClickMarker: t[0] ||= ({ legend: e }) => cn(e.id)
|
|
1488
1497
|
}, Re({
|
|
1489
|
-
item: T(({ legend: e }) => [w(
|
|
1498
|
+
item: T(({ legend: e }) => [w(qt) ? f("", !0) : (y(), p("div", {
|
|
1490
1499
|
key: 0,
|
|
1491
1500
|
style: v(`opacity:${X.value.includes(e.id) ? .5 : 1}`),
|
|
1492
1501
|
onClick: (t) => e.segregate()
|
|
1493
1502
|
}, C(e.name), 13, vt))]),
|
|
1494
|
-
legendToggle: T(() => [Z.value.length > 2 &&
|
|
1503
|
+
legendToggle: T(() => [Z.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !w(qt) ? (y(), d(Me, {
|
|
1495
1504
|
key: 0,
|
|
1496
|
-
backgroundColor:
|
|
1497
|
-
color:
|
|
1498
|
-
fontSize:
|
|
1505
|
+
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1506
|
+
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
1507
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
1499
1508
|
checked: X.value.length > 0,
|
|
1500
|
-
isCursorPointer:
|
|
1501
|
-
onToggle:
|
|
1509
|
+
isCursorPointer: R.value,
|
|
1510
|
+
onToggle: sn
|
|
1502
1511
|
}, null, 8, [
|
|
1503
1512
|
"backgroundColor",
|
|
1504
1513
|
"color",
|
|
@@ -1531,9 +1540,9 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1531
1540
|
ref: Mt,
|
|
1532
1541
|
dir: "auto"
|
|
1533
1542
|
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1534
|
-
D.value &&
|
|
1543
|
+
D.value && L.value.userOptions.buttons.table ? (y(), d(Ge(Un.value.component), Ve({ key: 7 }, Un.value.props, {
|
|
1535
1544
|
ref_key: "tableUnit",
|
|
1536
|
-
ref:
|
|
1545
|
+
ref: F,
|
|
1537
1546
|
onClose: Wn
|
|
1538
1547
|
}), Re({
|
|
1539
1548
|
content: T(() => [(y(), d(w(St), {
|
|
@@ -1542,17 +1551,17 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1542
1551
|
head: $.value.head,
|
|
1543
1552
|
body: $.value.body,
|
|
1544
1553
|
config: $.value.config,
|
|
1545
|
-
title:
|
|
1546
|
-
withCloseButton: !
|
|
1547
|
-
isCursorPointer:
|
|
1554
|
+
title: L.value.table.useDialog ? "" : Un.value.title,
|
|
1555
|
+
withCloseButton: !L.value.table.useDialog,
|
|
1556
|
+
isCursorPointer: R.value,
|
|
1548
1557
|
onClose: Wn
|
|
1549
1558
|
}, {
|
|
1550
1559
|
th: T(({ th: e }) => [m("div", null, C(e), 1)]),
|
|
1551
|
-
td: T(({ td: e }) => [ze(C(e.name ? e.name : w(
|
|
1552
|
-
p:
|
|
1560
|
+
td: T(({ td: e }) => [ze(C(e.name ? e.name : w(ce)(L.value.style.chart.selector.labels.formatter, e, w(c)({
|
|
1561
|
+
p: L.value.style.chart.xAxis.labels.prefix,
|
|
1553
1562
|
v: e,
|
|
1554
|
-
s:
|
|
1555
|
-
r:
|
|
1563
|
+
s: L.value.style.chart.xAxis.labels.suffix,
|
|
1564
|
+
r: L.value.table.td.roundingValue
|
|
1556
1565
|
}))), 1)]),
|
|
1557
1566
|
_: 1
|
|
1558
1567
|
}, 8, [
|
|
@@ -1565,35 +1574,35 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1565
1574
|
"isCursorPointer"
|
|
1566
1575
|
]))]),
|
|
1567
1576
|
_: 2
|
|
1568
|
-
}, [
|
|
1577
|
+
}, [L.value.table.useDialog ? {
|
|
1569
1578
|
name: "title",
|
|
1570
1579
|
fn: T(() => [ze(C(Un.value.title), 1)]),
|
|
1571
1580
|
key: "0"
|
|
1572
|
-
} : void 0,
|
|
1581
|
+
} : void 0, L.value.table.useDialog ? {
|
|
1573
1582
|
name: "actions",
|
|
1574
1583
|
fn: T(() => [m("button", {
|
|
1575
1584
|
tabindex: "0",
|
|
1576
1585
|
class: "vue-ui-user-options-button",
|
|
1577
|
-
onClick: t[1] ||= (e) => zn(
|
|
1578
|
-
style: v({ cursor:
|
|
1586
|
+
onClick: t[1] ||= (e) => zn(L.value.userOptions.callbacks.csv),
|
|
1587
|
+
style: v({ cursor: R.value ? "pointer" : "default" })
|
|
1579
1588
|
}, [Be(w(bt), {
|
|
1580
1589
|
name: "fileCsv",
|
|
1581
1590
|
stroke: Un.value.props.color
|
|
1582
1591
|
}, null, 8, ["stroke"])], 4)]),
|
|
1583
1592
|
key: "1"
|
|
1584
1593
|
} : void 0]), 1040)) : f("", !0),
|
|
1585
|
-
|
|
1594
|
+
L.value.style.chart.dialog.show ? (y(), d(w(Et), {
|
|
1586
1595
|
key: 8,
|
|
1587
1596
|
ref_key: "dialog",
|
|
1588
1597
|
ref: Bt,
|
|
1589
1598
|
onClose: t[2] ||= (e) => P.value = null,
|
|
1590
|
-
backgroundColor:
|
|
1591
|
-
color:
|
|
1592
|
-
headerBg:
|
|
1593
|
-
headerColor:
|
|
1599
|
+
backgroundColor: L.value.style.chart.dialog.backgroundColor,
|
|
1600
|
+
color: L.value.style.chart.dialog.color,
|
|
1601
|
+
headerBg: L.value.style.chart.dialog.header.backgroundColor,
|
|
1602
|
+
headerColor: L.value.style.chart.dialog.header.color,
|
|
1594
1603
|
isFullscreen: Q.value,
|
|
1595
1604
|
fullscreenParent: k.value,
|
|
1596
|
-
isCursorPointer:
|
|
1605
|
+
isCursorPointer: R.value,
|
|
1597
1606
|
withPadding: ""
|
|
1598
1607
|
}, {
|
|
1599
1608
|
title: T(() => [ze(C(P.value.name), 1)]),
|
|
@@ -1613,9 +1622,9 @@ var Xe = /* @__PURE__ */ e({ default: () => yt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1613
1622
|
"fullscreenParent",
|
|
1614
1623
|
"isCursorPointer"
|
|
1615
1624
|
])) : f("", !0),
|
|
1616
|
-
S(e.$slots, "skeleton", {}, () => [w(
|
|
1625
|
+
S(e.$slots, "skeleton", {}, () => [w(qt) ? (y(), d(be, { key: 0 })) : f("", !0)], !0)
|
|
1617
1626
|
], 46, Ze));
|
|
1618
1627
|
}
|
|
1619
|
-
}, [["__scopeId", "data-v-
|
|
1628
|
+
}, [["__scopeId", "data-v-0841144b"]]);
|
|
1620
1629
|
//#endregion
|
|
1621
1630
|
export { Xe as n, yt as t };
|