vue-data-ui 3.22.2 → 3.22.4
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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- 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 +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -0,0 +1,1416 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Gt as t, H as n, Ht as r, Ot as i, Q as a, R as o, S as s, Ut as ee, W as te, Wt as ne, X as re, b as ie, ft as ae, h as oe, i as se, j as ce, jt as le, ot as ue, q as de, t as fe, ut as pe, vt as me, w as he } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as ge } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as _e } from "./usePrinter-C0wAS8yc.js";
|
|
5
|
+
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as be } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as xe } from "./useNestedProp-BjkuFaz1.js";
|
|
8
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
+
import { t as we } from "./img-B29J8tV5.js";
|
|
11
|
+
import { n as Te } from "./Title-DDEEO-Nr.js";
|
|
12
|
+
import { t as Ee } from "./Shape-BnF9aMPX.js";
|
|
13
|
+
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { c as Oe } from "./canvas-lib-BOP_HS11.js";
|
|
15
|
+
import { t as ke } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
+
import { t as Ae } from "./BaseLegendToggle-C4Usj0LI.js";
|
|
17
|
+
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Pe } from "./Legend-DXOzbXb-.js";
|
|
21
|
+
import { t as Fe } from "./vue_ui_parallel_coordinate_plot-CBiOBira.js";
|
|
22
|
+
import { Fragment as c, Teleport as Ie, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ue, onMounted as We, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as S, toRefs as qe, unref as C, watch as Je, watchEffect as Ye, withCtx as w } from "vue";
|
|
23
|
+
//#region src/components/vue-ui-parallel-coordinate-plot.vue
|
|
24
|
+
var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
25
|
+
"xmlns",
|
|
26
|
+
"aria-describedby",
|
|
27
|
+
"viewBox"
|
|
28
|
+
], nt = [
|
|
29
|
+
"x",
|
|
30
|
+
"y",
|
|
31
|
+
"width",
|
|
32
|
+
"height"
|
|
33
|
+
], rt = { style: { "pointer-events": "none" } }, it = [
|
|
34
|
+
"x1",
|
|
35
|
+
"x2",
|
|
36
|
+
"y1",
|
|
37
|
+
"y2",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-width"
|
|
40
|
+
], at = [
|
|
41
|
+
"x1",
|
|
42
|
+
"x2",
|
|
43
|
+
"y1",
|
|
44
|
+
"y2",
|
|
45
|
+
"stroke",
|
|
46
|
+
"stroke-width"
|
|
47
|
+
], ot = { key: 0 }, st = [
|
|
48
|
+
"x",
|
|
49
|
+
"y",
|
|
50
|
+
"fill",
|
|
51
|
+
"font-size",
|
|
52
|
+
"font-weight"
|
|
53
|
+
], ct = [
|
|
54
|
+
"fill",
|
|
55
|
+
"font-size",
|
|
56
|
+
"font-weight",
|
|
57
|
+
"text-anchor",
|
|
58
|
+
"transform"
|
|
59
|
+
], lt = [
|
|
60
|
+
"fill",
|
|
61
|
+
"font-size",
|
|
62
|
+
"font-weight",
|
|
63
|
+
"text-anchor",
|
|
64
|
+
"transform",
|
|
65
|
+
"innerHTML"
|
|
66
|
+
], ut = { key: 0 }, dt = [
|
|
67
|
+
"x",
|
|
68
|
+
"y",
|
|
69
|
+
"font-size",
|
|
70
|
+
"fill"
|
|
71
|
+
], ft = [
|
|
72
|
+
"width",
|
|
73
|
+
"x",
|
|
74
|
+
"y"
|
|
75
|
+
], pt = { style: { width: "100%" } }, mt = [
|
|
76
|
+
"x",
|
|
77
|
+
"y",
|
|
78
|
+
"fill",
|
|
79
|
+
"font-weight",
|
|
80
|
+
"font-size",
|
|
81
|
+
"onMouseenter",
|
|
82
|
+
"onMouseleave",
|
|
83
|
+
"onClick"
|
|
84
|
+
], ht = [
|
|
85
|
+
"d",
|
|
86
|
+
"stroke",
|
|
87
|
+
"stroke-width",
|
|
88
|
+
"onMouseenter",
|
|
89
|
+
"onMouseleave",
|
|
90
|
+
"onClick"
|
|
91
|
+
], gt = [
|
|
92
|
+
"d",
|
|
93
|
+
"onMouseenter",
|
|
94
|
+
"onMouseleave",
|
|
95
|
+
"onClick"
|
|
96
|
+
], _t = {
|
|
97
|
+
key: 0,
|
|
98
|
+
style: {
|
|
99
|
+
position: "absolute",
|
|
100
|
+
top: "100%",
|
|
101
|
+
left: "0",
|
|
102
|
+
width: "100%"
|
|
103
|
+
},
|
|
104
|
+
"data-dom-to-png-ignore": "",
|
|
105
|
+
"aria-hidden": "true"
|
|
106
|
+
}, vt = {
|
|
107
|
+
key: 5,
|
|
108
|
+
class: "vue-data-ui-watermark"
|
|
109
|
+
}, yt = ["id"], bt = ["onClick"], xt = ["innerHTML"], St = /*#__PURE__*/ De({
|
|
110
|
+
__name: "vue-ui-parallel-coordinate-plot",
|
|
111
|
+
props: {
|
|
112
|
+
config: {
|
|
113
|
+
type: Object,
|
|
114
|
+
default() {
|
|
115
|
+
return {};
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
dataset: {
|
|
119
|
+
type: Array,
|
|
120
|
+
default() {
|
|
121
|
+
return [];
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
emits: [
|
|
126
|
+
"selectLegend",
|
|
127
|
+
"selectDatapoint",
|
|
128
|
+
"copyAlt"
|
|
129
|
+
],
|
|
130
|
+
setup(e, { expose: De, emit: Xe }) {
|
|
131
|
+
let St = m(() => import("./Tooltip-BhKov422.js")), Ct = m(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), wt = m(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), Tt = m(() => import("./DataTable-PidUPOit.js")), Et = m(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Dt = m(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Ot = m(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), kt = m(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: At } = ge(), { isThemeValid: jt, warnInvalidTheme: Mt } = Se(), T = e, Nt = l({
|
|
132
|
+
get() {
|
|
133
|
+
return !!T.dataset && T.dataset.length;
|
|
134
|
+
},
|
|
135
|
+
set(e) {
|
|
136
|
+
return e;
|
|
137
|
+
}
|
|
138
|
+
}), Pt = y(0), E = y(null), Ft = y(null), It = y(null), Lt = y(null), Rt = y(null), zt = y(0), Bt = y(0), Vt = y(0), Ht = y(!1), D = y(null), Ut = y(null), Wt = y(!1), Gt = y(!1), Kt = y(null), O = y(null), qt = y({
|
|
139
|
+
x: 0,
|
|
140
|
+
y: 0
|
|
141
|
+
}), Jt = y("pointer"), Yt = y(!1), k = y(te()), A = y(!1);
|
|
142
|
+
function Xt(e) {
|
|
143
|
+
A.value = e, Pt.value += 1;
|
|
144
|
+
}
|
|
145
|
+
let j = y(rn()), M = l(() => j.value.userOptions.useCursorPointer), Zt = l(() => t({
|
|
146
|
+
defaultConfig: {
|
|
147
|
+
useCssAnimation: !1,
|
|
148
|
+
userOptions: { show: !1 },
|
|
149
|
+
table: { show: !1 },
|
|
150
|
+
style: { chart: {
|
|
151
|
+
backgroundColor: "#99999930",
|
|
152
|
+
legend: {
|
|
153
|
+
show: !0,
|
|
154
|
+
backgroundColor: "transparent"
|
|
155
|
+
},
|
|
156
|
+
yAxis: {
|
|
157
|
+
stroke: "#6A6A6A",
|
|
158
|
+
labels: {
|
|
159
|
+
showAxisNames: !1,
|
|
160
|
+
axisNames: [],
|
|
161
|
+
ticks: { color: "#6A6A6A" }
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
} }
|
|
165
|
+
},
|
|
166
|
+
userConfig: j.value.skeletonConfig ?? {}
|
|
167
|
+
})), { loading: N, FINAL_DATASET: Qt, manualLoading: $t } = ve({
|
|
168
|
+
...qe(T),
|
|
169
|
+
FINAL_CONFIG: j,
|
|
170
|
+
prepareConfig: rn,
|
|
171
|
+
callback: () => {
|
|
172
|
+
Promise.resolve().then(async () => {
|
|
173
|
+
await Ve(), B.value.showTable = j.value.table.show;
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
177
|
+
{
|
|
178
|
+
name: "",
|
|
179
|
+
shape: "circle",
|
|
180
|
+
color: "transparent",
|
|
181
|
+
series: [{
|
|
182
|
+
name: "",
|
|
183
|
+
values: [
|
|
184
|
+
1,
|
|
185
|
+
10,
|
|
186
|
+
100,
|
|
187
|
+
1e3
|
|
188
|
+
]
|
|
189
|
+
}]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: "",
|
|
193
|
+
shape: "circle",
|
|
194
|
+
color: "#CACACA",
|
|
195
|
+
series: [{
|
|
196
|
+
name: "",
|
|
197
|
+
values: [
|
|
198
|
+
.2,
|
|
199
|
+
3,
|
|
200
|
+
50,
|
|
201
|
+
800
|
|
202
|
+
]
|
|
203
|
+
}]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "",
|
|
207
|
+
shape: "circle",
|
|
208
|
+
color: "transparent",
|
|
209
|
+
series: [{
|
|
210
|
+
name: "",
|
|
211
|
+
values: [
|
|
212
|
+
0,
|
|
213
|
+
0,
|
|
214
|
+
0,
|
|
215
|
+
0
|
|
216
|
+
]
|
|
217
|
+
}]
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
skeletonConfig: t({
|
|
221
|
+
defaultConfig: j.value,
|
|
222
|
+
userConfig: Zt.value
|
|
223
|
+
})
|
|
224
|
+
}), { userOptionsVisible: en, setUserOptionsVisibility: tn, keepUserOptionState: nn } = Me({ config: j.value }), { svgRef: P } = Ne({ config: j.value.style.chart.title });
|
|
225
|
+
function rn() {
|
|
226
|
+
let e = xe({
|
|
227
|
+
userConfig: T.config,
|
|
228
|
+
defaultConfig: At
|
|
229
|
+
}), t = e.theme;
|
|
230
|
+
if (!t) return e;
|
|
231
|
+
if (!jt.value(e)) return Mt(e), e;
|
|
232
|
+
let n = xe({
|
|
233
|
+
userConfig: Fe[t] || T.config,
|
|
234
|
+
defaultConfig: e
|
|
235
|
+
}), r = xe({
|
|
236
|
+
userConfig: T.config,
|
|
237
|
+
defaultConfig: n
|
|
238
|
+
});
|
|
239
|
+
return {
|
|
240
|
+
...r,
|
|
241
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || le
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
Je(() => T.config, (e) => {
|
|
245
|
+
N.value || (j.value = rn()), en.value = !j.value.userOptions.showOnChartHover, on(), zt.value += 1, Vt.value += 1, Bt.value += 1, B.value.dataLabels.show = j.value.style.chart.yAxis.labels.datapoints.show, B.value.showTable = j.value.table.show, B.value.showTooltip = j.value.style.chart.tooltip.show;
|
|
246
|
+
}, { deep: !0 }), Je(() => T.dataset, (e) => {
|
|
247
|
+
Array.isArray(e) && e.length > 0 && ($t.value = !1);
|
|
248
|
+
}, { deep: !0 });
|
|
249
|
+
let F = Ke(null), I = Ke(null);
|
|
250
|
+
We(() => {
|
|
251
|
+
Ht.value = !0, on();
|
|
252
|
+
});
|
|
253
|
+
let an = l(() => !!j.value.debug);
|
|
254
|
+
function on() {
|
|
255
|
+
if (i(T.dataset) ? (a({
|
|
256
|
+
componentName: "VueUiParallelCoordinatePlot",
|
|
257
|
+
type: "dataset",
|
|
258
|
+
debug: an.value
|
|
259
|
+
}), $t.value = !0) : T.dataset.forEach((e, t) => {
|
|
260
|
+
pe({
|
|
261
|
+
datasetObject: e,
|
|
262
|
+
requiredAttributes: ["name", "series"]
|
|
263
|
+
}).forEach((e) => {
|
|
264
|
+
Nt.value = !1, a({
|
|
265
|
+
componentName: "VueUiParallelCoordinatePlot",
|
|
266
|
+
type: "datasetSerieAttribute",
|
|
267
|
+
property: e,
|
|
268
|
+
index: t,
|
|
269
|
+
debug: an.value
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
}), i(T.dataset) || ($t.value = j.value.loading), j.value.responsive) {
|
|
273
|
+
let e = Oe(() => {
|
|
274
|
+
let { width: e, height: t } = ke({
|
|
275
|
+
chart: E.value,
|
|
276
|
+
title: j.value.style.chart.title.text ? Ft.value : null,
|
|
277
|
+
legend: j.value.style.chart.legend.show ? It.value : null,
|
|
278
|
+
source: Lt.value,
|
|
279
|
+
noTitle: Rt.value
|
|
280
|
+
});
|
|
281
|
+
requestAnimationFrame(() => {
|
|
282
|
+
L.value.width = e, L.value.height = t - 12, j.value.responsiveProportionalSizing ? (L.value.plotSize = ne({
|
|
283
|
+
relator: Math.min(e, t),
|
|
284
|
+
adjuster: 600,
|
|
285
|
+
source: j.value.style.chart.plots.radius,
|
|
286
|
+
threshold: 2,
|
|
287
|
+
fallback: 2
|
|
288
|
+
}), L.value.ticksFontSize = ne({
|
|
289
|
+
relator: Math.min(e, t),
|
|
290
|
+
adjuster: 600,
|
|
291
|
+
source: j.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
292
|
+
threshold: 10,
|
|
293
|
+
fallback: 10
|
|
294
|
+
}), L.value.datapointFontSize = ne({
|
|
295
|
+
relator: Math.min(e, t),
|
|
296
|
+
adjuster: 600,
|
|
297
|
+
source: j.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
298
|
+
threshold: 10,
|
|
299
|
+
fallback: 10
|
|
300
|
+
}), L.value.axisNameFontSize = ne({
|
|
301
|
+
relator: Math.min(e, t),
|
|
302
|
+
adjuster: 600,
|
|
303
|
+
source: j.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
304
|
+
threshold: 12,
|
|
305
|
+
fallback: 12
|
|
306
|
+
})) : (L.value.plotSize = j.value.style.chart.plots.radius, L.value.ticksFontSize = j.value.style.chart.yAxis.labels.ticks.fontSize, L.value.datapointFontSize = j.value.style.chart.yAxis.labels.datapoints.fontSize, L.value.axisNameFontSize = j.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = E.value.parentNode, F.value.observe(I.value);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
Ue(() => {
|
|
313
|
+
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect());
|
|
314
|
+
});
|
|
315
|
+
let { isPrinting: sn, isImaging: cn, generatePdf: ln, generateImage: un } = _e({
|
|
316
|
+
elementId: `pcp_${k.value}`,
|
|
317
|
+
fileName: j.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
318
|
+
options: j.value.userOptions.print
|
|
319
|
+
}), dn = l(() => j.value.userOptions.show && !j.value.style.chart.title.text), L = y({
|
|
320
|
+
height: j.value.style.chart.height,
|
|
321
|
+
width: j.value.style.chart.width,
|
|
322
|
+
plotSize: j.value.style.chart.plots.radius,
|
|
323
|
+
ticksFontSize: j.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
324
|
+
datapointFontSize: j.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
325
|
+
axisNameFontSize: j.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
326
|
+
}), fn = l(() => L.value.width), pn = l(() => L.value.height), R = y(0), mn = Oe((e) => {
|
|
327
|
+
R.value = e;
|
|
328
|
+
}, 100);
|
|
329
|
+
Ye((e) => {
|
|
330
|
+
let t = Kt.value;
|
|
331
|
+
if (!t) return;
|
|
332
|
+
let n = new ResizeObserver((e) => {
|
|
333
|
+
mn(e[0].contentRect.height);
|
|
334
|
+
});
|
|
335
|
+
n.observe(t), e(() => n.disconnect());
|
|
336
|
+
});
|
|
337
|
+
let z = l(() => {
|
|
338
|
+
let { top: e, right: t, bottom: n, left: r } = j.value.style.chart.padding, i = pn.value, a = fn.value;
|
|
339
|
+
return {
|
|
340
|
+
chartHeight: Math.max(.001, i),
|
|
341
|
+
chartWidth: Math.max(.001, a),
|
|
342
|
+
height: Math.max(.001, i - e - n - R.value - L.value.datapointFontSize * 2),
|
|
343
|
+
width: Math.max(.001, a - r - t),
|
|
344
|
+
top: e + R.value + L.value.datapointFontSize,
|
|
345
|
+
left: r,
|
|
346
|
+
right: a - t,
|
|
347
|
+
bottom: i - n - L.value.datapointFontSize
|
|
348
|
+
};
|
|
349
|
+
}), hn = l(() => s(j.value.customPalette)), B = y({
|
|
350
|
+
dataLabels: { show: j.value.style.chart.yAxis.labels.datapoints.show },
|
|
351
|
+
showTable: j.value.table.show,
|
|
352
|
+
showTooltip: j.value.style.chart.tooltip.show
|
|
353
|
+
});
|
|
354
|
+
Je(j, () => {
|
|
355
|
+
B.value = {
|
|
356
|
+
dataLabels: { show: j.value.style.chart.yAxis.labels.datapoints.show },
|
|
357
|
+
showTable: j.value.table.show,
|
|
358
|
+
showTooltip: j.value.style.chart.tooltip.show
|
|
359
|
+
};
|
|
360
|
+
}, { immediate: !0 });
|
|
361
|
+
let V = y([]);
|
|
362
|
+
function gn() {
|
|
363
|
+
V.value.length ? V.value = [] : U.value.forEach((e) => {
|
|
364
|
+
V.value.push(e.id);
|
|
365
|
+
}), jn("selectLegend", G.value);
|
|
366
|
+
}
|
|
367
|
+
function _n(e) {
|
|
368
|
+
V.value.includes(e) ? V.value = V.value.filter((t) => t !== e) : V.value.push(e), jn("selectLegend", G.value);
|
|
369
|
+
}
|
|
370
|
+
let H = l(() => Qt.value.map((e, t) => {
|
|
371
|
+
let n = ie(e.color) || hn.value[t] || le[t] || le[t % le.length];
|
|
372
|
+
return {
|
|
373
|
+
...e,
|
|
374
|
+
series: e.series.map((e) => ({
|
|
375
|
+
...e,
|
|
376
|
+
id: te(),
|
|
377
|
+
color: n
|
|
378
|
+
})),
|
|
379
|
+
seriesIndex: t,
|
|
380
|
+
color: n,
|
|
381
|
+
id: te(),
|
|
382
|
+
shape: e.shape || "circle"
|
|
383
|
+
};
|
|
384
|
+
}));
|
|
385
|
+
function vn(e) {
|
|
386
|
+
return H.value.length ? H.value.find((t) => t.name === e) || (j.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`), null) : (j.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null);
|
|
387
|
+
}
|
|
388
|
+
function yn(e) {
|
|
389
|
+
let t = vn(e);
|
|
390
|
+
t !== null && V.value.includes(t.id) && _n(t.id);
|
|
391
|
+
}
|
|
392
|
+
function bn(e) {
|
|
393
|
+
let t = vn(e);
|
|
394
|
+
t !== null && (V.value.includes(t.id) || _n(t.id));
|
|
395
|
+
}
|
|
396
|
+
let U = l(() => H.value.map((e) => ({
|
|
397
|
+
...e,
|
|
398
|
+
opacity: V.value.includes(e.id) ? .5 : 1,
|
|
399
|
+
segregate: () => _n(e.id),
|
|
400
|
+
isSegregated: V.value.includes(e.id),
|
|
401
|
+
shape: e.shape || "circle"
|
|
402
|
+
}))), xn = l(() => ({
|
|
403
|
+
cy: "pcp-div-legend",
|
|
404
|
+
backgroundColor: j.value.style.chart.legend.backgroundColor,
|
|
405
|
+
color: j.value.style.chart.legend.color,
|
|
406
|
+
fontSize: j.value.style.chart.legend.fontSize,
|
|
407
|
+
paddingBottom: 12,
|
|
408
|
+
fontWeight: j.value.style.chart.legend.bold ? "bold" : ""
|
|
409
|
+
})), Sn = l(() => Math.max(...H.value.filter((e) => !V.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), W = l(() => z.value.width / Sn.value), G = l(() => H.value.filter((e) => !V.value.includes(e.id))), K = l(() => {
|
|
410
|
+
let e = [];
|
|
411
|
+
for (let t = 0; t < Sn.value; t += 1) {
|
|
412
|
+
let n = Math.min(...G.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...G.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), i = oe(r === n ? n / 4 : n, r === n ? r * 2 : r, j.value.style.chart.yAxis.scaleTicks), a = i.ticks.map((e, n) => {
|
|
413
|
+
let r = i.min < 0 ? e + Math.abs(i.min) : e - Math.abs(i.min), a = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
|
|
414
|
+
return {
|
|
415
|
+
y: z.value.bottom - z.value.height * (r / a),
|
|
416
|
+
x: z.value.left + W.value * t + W.value / 2,
|
|
417
|
+
value: e
|
|
418
|
+
};
|
|
419
|
+
});
|
|
420
|
+
e.push({
|
|
421
|
+
scale: i,
|
|
422
|
+
ticks: a,
|
|
423
|
+
name: j.value.style.chart.yAxis.labels.axisNames[t] || `Y-${t + 1}`
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
return e;
|
|
427
|
+
}), q = l(() => G.value.map((e, t) => ({
|
|
428
|
+
...e,
|
|
429
|
+
series: e.series.map((n, r) => ({
|
|
430
|
+
...n,
|
|
431
|
+
datapoints: n.values.map((i, a) => {
|
|
432
|
+
let o = K.value[a].scale.min < 0 ? (i || 0) + Math.abs(K.value[a].scale.min) : (i || 0) - Math.abs(K.value[a].scale.min), s = K.value[a].scale.min < 0 ? K.value[a].scale.max + Math.abs(K.value[a].scale.min) : K.value[a].scale.max - Math.abs(K.value[a].scale.min);
|
|
433
|
+
return {
|
|
434
|
+
name: n.name,
|
|
435
|
+
seriesName: e.name,
|
|
436
|
+
axisIndex: a,
|
|
437
|
+
datapointIndex: r,
|
|
438
|
+
seriesIndex: t,
|
|
439
|
+
value: i || 0,
|
|
440
|
+
x: z.value.left + W.value * a + W.value / 2,
|
|
441
|
+
y: z.value.bottom - z.value.height * (o / s),
|
|
442
|
+
comment: n.comments && n.comments[a] || ""
|
|
443
|
+
};
|
|
444
|
+
})
|
|
445
|
+
}))
|
|
446
|
+
})).map((e) => ({
|
|
447
|
+
...e,
|
|
448
|
+
series: e.series.map((e) => {
|
|
449
|
+
let t = o(e.datapoints), n = ce(e.datapoints, .12), r = ae(j.value.style.chart.lines.smooth ? `M ${n}` : `M ${t}`);
|
|
450
|
+
return {
|
|
451
|
+
...e,
|
|
452
|
+
smoothPath: n,
|
|
453
|
+
straightPath: t,
|
|
454
|
+
pathLength: r
|
|
455
|
+
};
|
|
456
|
+
})
|
|
457
|
+
}))), J = l(() => q.value.flatMap((e, t) => e.series.map((n, r) => ({
|
|
458
|
+
shape: e.shape,
|
|
459
|
+
serieName: e.name,
|
|
460
|
+
serie: n,
|
|
461
|
+
relativeIndex: r,
|
|
462
|
+
seriesIndex: n.seriesIndex,
|
|
463
|
+
S: t,
|
|
464
|
+
key: `${t}_${r}`
|
|
465
|
+
}))));
|
|
466
|
+
function Cn({ value: e, index: t, datapoint: n }) {
|
|
467
|
+
return se(j.value.style.chart.yAxis.labels.formatters[t] || null, e, de({
|
|
468
|
+
p: j.value.style.chart.yAxis.labels.prefixes[t] || "",
|
|
469
|
+
v: e,
|
|
470
|
+
s: j.value.style.chart.yAxis.labels.suffixes[t] || "",
|
|
471
|
+
r: j.value.style.chart.yAxis.labels.roundings[t] || 0
|
|
472
|
+
}), {
|
|
473
|
+
datapoint: n,
|
|
474
|
+
seriesIndex: t
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
let Y = y(null), wn = y(null), Tn = y(!1), En = y("");
|
|
478
|
+
function X({ shape: e, serie: t, S: n }) {
|
|
479
|
+
j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
480
|
+
datapoint: {
|
|
481
|
+
...t,
|
|
482
|
+
shape: e
|
|
483
|
+
},
|
|
484
|
+
seriesIndex: n
|
|
485
|
+
});
|
|
486
|
+
let r = O.value === null ? null : J.value[O.value];
|
|
487
|
+
Jt.value === "keyboard" && r && r.serie.id === t.id || (Y.value = null, Tn.value = !1);
|
|
488
|
+
}
|
|
489
|
+
function Dn(e) {
|
|
490
|
+
if (!P.value || !e?.datapoints?.length) return;
|
|
491
|
+
let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
|
|
492
|
+
if (!t) return;
|
|
493
|
+
let n = r(t.x, t.y, P.value);
|
|
494
|
+
n && (qt.value = n);
|
|
495
|
+
}
|
|
496
|
+
function Z({ shape: e, serieName: t, serie: n, relativeIndex: r, seriesIndex: i, S: a, triggerMode: o = "pointer" }) {
|
|
497
|
+
j.value.events.datapointEnter && j.value.events.datapointEnter({
|
|
498
|
+
datapoint: {
|
|
499
|
+
...n,
|
|
500
|
+
shape: e
|
|
501
|
+
},
|
|
502
|
+
seriesIndex: a
|
|
503
|
+
}), Jt.value = o, wn.value = {
|
|
504
|
+
config: j.value,
|
|
505
|
+
datapoint: n,
|
|
506
|
+
serie: n,
|
|
507
|
+
relativeIndex: r,
|
|
508
|
+
seriesIndex: i,
|
|
509
|
+
series: H.value,
|
|
510
|
+
scales: K.value
|
|
511
|
+
}, Tn.value = !0, Y.value = n.id;
|
|
512
|
+
let s = "", ee = j.value.style.chart.tooltip.customFormat;
|
|
513
|
+
me(ee) && ue(() => ee({
|
|
514
|
+
serie: n,
|
|
515
|
+
seriesIndex: n.seriesIndex,
|
|
516
|
+
series: H.value,
|
|
517
|
+
config: j.value,
|
|
518
|
+
scales: K.value
|
|
519
|
+
})) ? En.value = ee({
|
|
520
|
+
serie: n,
|
|
521
|
+
seriesIndex: n.seriesIndex,
|
|
522
|
+
series: H.value,
|
|
523
|
+
config: j.value,
|
|
524
|
+
scales: K.value
|
|
525
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t ? t + " - " : ""}${n.name}</div>`, K.value.map((e) => e.name).forEach((e, t) => {
|
|
526
|
+
s += `
|
|
527
|
+
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
528
|
+
<span>${e}: </span>
|
|
529
|
+
<span>
|
|
530
|
+
${se(j.value.style.chart.yAxis.labels.formatters[t] || null, n.datapoints[t].value, de({
|
|
531
|
+
p: j.value.style.chart.yAxis.labels.prefixes[t] || "",
|
|
532
|
+
v: n.datapoints[t].value,
|
|
533
|
+
s: j.value.style.chart.yAxis.labels.suffixes[t] || "",
|
|
534
|
+
r: j.value.style.chart.yAxis.labels.roundings[t] || ""
|
|
535
|
+
}), {
|
|
536
|
+
datapoint: n.datapoints[t],
|
|
537
|
+
seriesIndex: t
|
|
538
|
+
})}
|
|
539
|
+
</span>
|
|
540
|
+
</div>
|
|
541
|
+
`, j.value.style.chart.comments.showInTooltip && n.datapoints[t].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.datapoints[t].comment}</div>`);
|
|
542
|
+
}), En.value = `<div>${s}</div>`), o === "keyboard" && Ve(() => {
|
|
543
|
+
Dn(n);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function On() {
|
|
547
|
+
return H.value;
|
|
548
|
+
}
|
|
549
|
+
let Q = l(() => {
|
|
550
|
+
let e = [j.value.table.columnNames.series, j.value.table.columnNames.item].concat(K.value.map((e) => e.name));
|
|
551
|
+
return {
|
|
552
|
+
body: q.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
|
|
553
|
+
head: e,
|
|
554
|
+
config: {
|
|
555
|
+
th: {
|
|
556
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
557
|
+
color: j.value.table.th.color,
|
|
558
|
+
outline: j.value.table.th.outline
|
|
559
|
+
},
|
|
560
|
+
td: {
|
|
561
|
+
backgroundColor: j.value.table.td.backgroundColor,
|
|
562
|
+
color: j.value.table.td.color,
|
|
563
|
+
outline: j.value.table.td.outline
|
|
564
|
+
},
|
|
565
|
+
breakpoint: j.value.table.responsiveBreakpoint
|
|
566
|
+
},
|
|
567
|
+
colNames: [j.value.table.columnNames.series, j.value.table.columnNames.item].concat(K.value.map((e) => e.name))
|
|
568
|
+
};
|
|
569
|
+
}), kn = l(() => q.value.length === 0 ? {
|
|
570
|
+
head: [],
|
|
571
|
+
body: [],
|
|
572
|
+
config: {},
|
|
573
|
+
columnNames: []
|
|
574
|
+
} : {
|
|
575
|
+
head: Q.value.head,
|
|
576
|
+
body: Q.value.body
|
|
577
|
+
});
|
|
578
|
+
function An(e = null) {
|
|
579
|
+
let t = [
|
|
580
|
+
[j.value.style.chart.title.text],
|
|
581
|
+
[j.value.style.chart.title.subtitle.text],
|
|
582
|
+
[""]
|
|
583
|
+
], n = kn.value.head, r = kn.value.body, i = he(t.concat([n]).concat(r));
|
|
584
|
+
e ? e(i) : re({
|
|
585
|
+
csvContent: i,
|
|
586
|
+
title: j.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
let jn = Xe;
|
|
590
|
+
function Mn({ serie: e, shape: t, S: n }) {
|
|
591
|
+
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
592
|
+
datapoint: {
|
|
593
|
+
...e,
|
|
594
|
+
shape: t
|
|
595
|
+
},
|
|
596
|
+
seriesIndex: n
|
|
597
|
+
}), jn("selectDatapoint", e);
|
|
598
|
+
}
|
|
599
|
+
function Nn() {
|
|
600
|
+
B.value.showTable = !B.value.showTable;
|
|
601
|
+
}
|
|
602
|
+
function Pn() {
|
|
603
|
+
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
604
|
+
}
|
|
605
|
+
function Fn() {
|
|
606
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
607
|
+
}
|
|
608
|
+
let In = y(!1);
|
|
609
|
+
function Ln() {
|
|
610
|
+
In.value = !In.value;
|
|
611
|
+
}
|
|
612
|
+
async function Rn({ scale: e = 2 } = {}) {
|
|
613
|
+
if (!E.value) return;
|
|
614
|
+
let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
|
|
615
|
+
domElement: E.value,
|
|
616
|
+
base64: !0,
|
|
617
|
+
img: !0,
|
|
618
|
+
scale: e
|
|
619
|
+
});
|
|
620
|
+
return {
|
|
621
|
+
imageUri: i,
|
|
622
|
+
base64: a,
|
|
623
|
+
title: j.value.style.chart.title.text,
|
|
624
|
+
width: t,
|
|
625
|
+
height: n,
|
|
626
|
+
aspectRatio: r
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
let zn = y({
|
|
630
|
+
start: 0,
|
|
631
|
+
end: 1
|
|
632
|
+
});
|
|
633
|
+
Ce({
|
|
634
|
+
timeLabelsEls: Kt,
|
|
635
|
+
timeLabels: l(() => K.value.map((e) => e.name)),
|
|
636
|
+
slicer: zn,
|
|
637
|
+
configRef: j,
|
|
638
|
+
rotationPath: [
|
|
639
|
+
"style",
|
|
640
|
+
"chart",
|
|
641
|
+
"yAxis",
|
|
642
|
+
"labels",
|
|
643
|
+
"axisNamesRotation"
|
|
644
|
+
],
|
|
645
|
+
autoRotatePath: [
|
|
646
|
+
"style",
|
|
647
|
+
"chart",
|
|
648
|
+
"yAxis",
|
|
649
|
+
"labels",
|
|
650
|
+
"axisNamesAutoRotate",
|
|
651
|
+
"enable"
|
|
652
|
+
],
|
|
653
|
+
isAutoSize: !1,
|
|
654
|
+
width: fn,
|
|
655
|
+
height: pn,
|
|
656
|
+
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
657
|
+
rotation: j.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
658
|
+
});
|
|
659
|
+
let Bn = l(() => {
|
|
660
|
+
let e = j.value.table.useDialog && !j.value.table.show, t = B.value.showTable;
|
|
661
|
+
return {
|
|
662
|
+
component: e ? kt : wt,
|
|
663
|
+
title: `${j.value.style.chart.title.text}${j.value.style.chart.title.subtitle.text ? `: ${j.value.style.chart.title.subtitle.text}` : ""}`,
|
|
664
|
+
props: e ? {
|
|
665
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
666
|
+
color: j.value.table.th.color,
|
|
667
|
+
headerColor: j.value.table.th.color,
|
|
668
|
+
headerBg: j.value.table.th.backgroundColor,
|
|
669
|
+
isFullscreen: A.value,
|
|
670
|
+
fullscreenParent: E.value,
|
|
671
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
672
|
+
isCursorPointer: M.value
|
|
673
|
+
} : {
|
|
674
|
+
hideDetails: !0,
|
|
675
|
+
config: {
|
|
676
|
+
open: t,
|
|
677
|
+
maxHeight: 1e4,
|
|
678
|
+
body: {
|
|
679
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
680
|
+
color: j.value.style.chart.color
|
|
681
|
+
},
|
|
682
|
+
head: {
|
|
683
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
684
|
+
color: j.value.style.chart.color
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
});
|
|
690
|
+
Je(() => B.value.showTable, (e) => {
|
|
691
|
+
j.value.table.show || (e && j.value.table.useDialog && D.value ? D.value.open() : "close" in D.value && D.value.close());
|
|
692
|
+
});
|
|
693
|
+
function Vn() {
|
|
694
|
+
B.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
695
|
+
}
|
|
696
|
+
let Hn = l(() => j.value.style.chart.backgroundColor), Un = l(() => j.value.style.chart.legend), { exportSvg: Wn, getSvg: Gn } = be({
|
|
697
|
+
svg: P,
|
|
698
|
+
title: l(() => j.value.style.chart.title),
|
|
699
|
+
legend: Un,
|
|
700
|
+
legendItems: U,
|
|
701
|
+
backgroundColor: Hn
|
|
702
|
+
});
|
|
703
|
+
async function Kn({ isCb: e }) {
|
|
704
|
+
Gt.value = !0, await Ve();
|
|
705
|
+
try {
|
|
706
|
+
if (e) {
|
|
707
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Gn();
|
|
708
|
+
await Promise.resolve(j.value.userOptions.callbacks.svg({
|
|
709
|
+
blob: e,
|
|
710
|
+
url: t,
|
|
711
|
+
text: n,
|
|
712
|
+
dataUrl: r
|
|
713
|
+
}));
|
|
714
|
+
} else await Promise.resolve(Wn());
|
|
715
|
+
} finally {
|
|
716
|
+
Gt.value = !1;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
function qn(e) {
|
|
720
|
+
if (e?.stage === "start") {
|
|
721
|
+
Wt.value = !0;
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
if (e?.stage === "end") {
|
|
725
|
+
Wt.value = !1;
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
un();
|
|
729
|
+
}
|
|
730
|
+
async function Jn() {
|
|
731
|
+
if (jn("copyAlt", {
|
|
732
|
+
config: j.value,
|
|
733
|
+
dataset: q.value
|
|
734
|
+
}), !j.value.userOptions.callbacks.altCopy) {
|
|
735
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
739
|
+
config: j.value,
|
|
740
|
+
dataset: q.value
|
|
741
|
+
}));
|
|
742
|
+
}
|
|
743
|
+
function Yn(e) {
|
|
744
|
+
let t = J.value.length;
|
|
745
|
+
return t ? (e % t + t) % t : null;
|
|
746
|
+
}
|
|
747
|
+
function Xn() {
|
|
748
|
+
if (O.value !== null) {
|
|
749
|
+
let e = J.value[O.value];
|
|
750
|
+
e && X({
|
|
751
|
+
shape: e.shape,
|
|
752
|
+
serie: e.serie,
|
|
753
|
+
S: e.S
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
O.value = null, Jt.value = "pointer", Y.value = null, Tn.value = !1;
|
|
757
|
+
}
|
|
758
|
+
function Zn() {
|
|
759
|
+
O.value = null, Yt.value = !0;
|
|
760
|
+
}
|
|
761
|
+
function Qn() {
|
|
762
|
+
Xn(), Yt.value = !1;
|
|
763
|
+
}
|
|
764
|
+
function $n(e) {
|
|
765
|
+
if (!P.value || In.value || document.activeElement !== P.value || !J.value.length) return;
|
|
766
|
+
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
767
|
+
if (!t && !n && !r && !i) return;
|
|
768
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
769
|
+
Xn();
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
if (r) {
|
|
773
|
+
if (O.value === null) return;
|
|
774
|
+
let e = J.value[O.value];
|
|
775
|
+
if (!e) return;
|
|
776
|
+
Mn({
|
|
777
|
+
serie: e.serie,
|
|
778
|
+
shape: e.shape,
|
|
779
|
+
S: e.S
|
|
780
|
+
});
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
let a = O.value;
|
|
784
|
+
a = a === null ? n ? 0 : J.value.length - 1 : Yn(a + (n ? 1 : -1));
|
|
785
|
+
let o = J.value[a];
|
|
786
|
+
o && (O.value = a, Z({
|
|
787
|
+
shape: o.shape,
|
|
788
|
+
serieName: o.serieName,
|
|
789
|
+
serie: o.serie,
|
|
790
|
+
relativeIndex: o.relativeIndex,
|
|
791
|
+
seriesIndex: o.seriesIndex,
|
|
792
|
+
S: o.S,
|
|
793
|
+
triggerMode: "keyboard"
|
|
794
|
+
}));
|
|
795
|
+
}
|
|
796
|
+
let $ = l(() => ({
|
|
797
|
+
head: Q.value.head,
|
|
798
|
+
body: Q.value.body.map((e) => [
|
|
799
|
+
e[0] ?? "",
|
|
800
|
+
e[1] ?? "",
|
|
801
|
+
...e.slice(2)
|
|
802
|
+
]),
|
|
803
|
+
caption: j.value.a11y.translations.tableCaption,
|
|
804
|
+
notice: j.value.a11y.translations.tableAvailable
|
|
805
|
+
}));
|
|
806
|
+
return De({
|
|
807
|
+
getData: On,
|
|
808
|
+
getImage: Rn,
|
|
809
|
+
generateCsv: An,
|
|
810
|
+
generatePdf: ln,
|
|
811
|
+
generateImage: un,
|
|
812
|
+
generateSvg: Kn,
|
|
813
|
+
hideSeries: bn,
|
|
814
|
+
showSeries: yn,
|
|
815
|
+
toggleTable: Nn,
|
|
816
|
+
toggleLabels: Pn,
|
|
817
|
+
toggleTooltip: Fn,
|
|
818
|
+
toggleAnnotator: Ln,
|
|
819
|
+
toggleFullscreen: Xt,
|
|
820
|
+
copyAlt: Jn
|
|
821
|
+
}), (e, t) => (v(), f("div", {
|
|
822
|
+
ref_key: "pcpChart",
|
|
823
|
+
ref: E,
|
|
824
|
+
class: He(`vue-data-ui-component vue-ui-pcp ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
825
|
+
style: _(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height:100%" : ""}`),
|
|
826
|
+
id: `pcp_${k.value}`,
|
|
827
|
+
onMouseenter: t[2] ||= () => C(tn)(!0),
|
|
828
|
+
onMouseleave: t[3] ||= () => C(tn)(!1)
|
|
829
|
+
}, [
|
|
830
|
+
p("div", {
|
|
831
|
+
id: `chart-instructions-${k.value}`,
|
|
832
|
+
class: "sr-only"
|
|
833
|
+
}, [p("p", null, S(j.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
834
|
+
$.value.body.length ? (v(), u(je, {
|
|
835
|
+
key: 0,
|
|
836
|
+
uid: k.value,
|
|
837
|
+
head: $.value.head,
|
|
838
|
+
body: $.value.body,
|
|
839
|
+
caption: $.value.caption,
|
|
840
|
+
notice: $.value.notice
|
|
841
|
+
}, null, 8, [
|
|
842
|
+
"uid",
|
|
843
|
+
"head",
|
|
844
|
+
"body",
|
|
845
|
+
"caption",
|
|
846
|
+
"notice"
|
|
847
|
+
])) : d("", !0),
|
|
848
|
+
j.value.userOptions.buttons.annotator ? (v(), u(C(Et), {
|
|
849
|
+
key: 1,
|
|
850
|
+
svgRef: C(P),
|
|
851
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
852
|
+
color: j.value.style.chart.color,
|
|
853
|
+
active: In.value,
|
|
854
|
+
isCursorPointer: M.value,
|
|
855
|
+
onClose: Ln
|
|
856
|
+
}, {
|
|
857
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
858
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
859
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
860
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
861
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
862
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
863
|
+
_: 3
|
|
864
|
+
}, 8, [
|
|
865
|
+
"svgRef",
|
|
866
|
+
"backgroundColor",
|
|
867
|
+
"color",
|
|
868
|
+
"active",
|
|
869
|
+
"isCursorPointer"
|
|
870
|
+
])) : d("", !0),
|
|
871
|
+
dn.value ? (v(), f("div", {
|
|
872
|
+
key: 2,
|
|
873
|
+
ref_key: "noTitle",
|
|
874
|
+
ref: Rt,
|
|
875
|
+
class: "vue-data-ui-no-title-space",
|
|
876
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
877
|
+
}, null, 512)) : d("", !0),
|
|
878
|
+
j.value.style.chart.title.text ? (v(), f("div", {
|
|
879
|
+
key: 3,
|
|
880
|
+
ref_key: "chartTitle",
|
|
881
|
+
ref: Ft,
|
|
882
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
883
|
+
}, [(v(), u(Te, {
|
|
884
|
+
key: `title_${zt.value}`,
|
|
885
|
+
config: {
|
|
886
|
+
title: {
|
|
887
|
+
cy: "pcp-div-title",
|
|
888
|
+
...j.value.style.chart.title
|
|
889
|
+
},
|
|
890
|
+
subtitle: {
|
|
891
|
+
cy: "pcp-div-subtitle",
|
|
892
|
+
...j.value.style.chart.title.subtitle
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
896
|
+
p("div", { id: `legend-top-${k.value}` }, null, 8, $e),
|
|
897
|
+
j.value.userOptions.show && Nt.value && (C(nn) || C(en)) ? (v(), u(C(Dt), {
|
|
898
|
+
ref_key: "userOptionsRef",
|
|
899
|
+
ref: Ut,
|
|
900
|
+
key: `user_options_${Pt.value}`,
|
|
901
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
902
|
+
color: j.value.style.chart.color,
|
|
903
|
+
isPrinting: C(sn),
|
|
904
|
+
isImaging: C(cn),
|
|
905
|
+
uid: k.value,
|
|
906
|
+
hasTooltip: j.value.userOptions.buttons.tooltip && j.value.style.chart.tooltip.show,
|
|
907
|
+
hasPdf: j.value.userOptions.buttons.pdf,
|
|
908
|
+
hasXls: j.value.userOptions.buttons.csv,
|
|
909
|
+
hasImg: j.value.userOptions.buttons.img,
|
|
910
|
+
hasSvg: j.value.userOptions.buttons.svg,
|
|
911
|
+
hasTable: j.value.userOptions.buttons.table,
|
|
912
|
+
hasLabel: j.value.userOptions.buttons.labels,
|
|
913
|
+
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
914
|
+
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
915
|
+
isFullscreen: A.value,
|
|
916
|
+
isTooltip: B.value.showTooltip,
|
|
917
|
+
titles: { ...j.value.userOptions.buttonTitles },
|
|
918
|
+
chartElement: E.value,
|
|
919
|
+
position: j.value.userOptions.position,
|
|
920
|
+
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
921
|
+
isAnnotation: In.value,
|
|
922
|
+
callbacks: j.value.userOptions.callbacks,
|
|
923
|
+
printScale: j.value.userOptions.print.scale,
|
|
924
|
+
tableDialog: j.value.table.useDialog,
|
|
925
|
+
isCursorPointer: M.value,
|
|
926
|
+
onToggleFullscreen: Xt,
|
|
927
|
+
onGeneratePdf: C(ln),
|
|
928
|
+
onGenerateCsv: An,
|
|
929
|
+
onGenerateImage: qn,
|
|
930
|
+
onGenerateSvg: Kn,
|
|
931
|
+
onToggleTable: Nn,
|
|
932
|
+
onToggleLabels: Pn,
|
|
933
|
+
onToggleTooltip: Fn,
|
|
934
|
+
onToggleAnnotator: Ln,
|
|
935
|
+
onCopyAlt: Jn,
|
|
936
|
+
style: _({ visibility: C(nn) ? C(en) ? "visible" : "hidden" : "visible" })
|
|
937
|
+
}, Le({ _: 2 }, [
|
|
938
|
+
e.$slots.menuIcon ? {
|
|
939
|
+
name: "menuIcon",
|
|
940
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
941
|
+
isOpen: t,
|
|
942
|
+
color: n
|
|
943
|
+
})), void 0, !0)]),
|
|
944
|
+
key: "0"
|
|
945
|
+
} : void 0,
|
|
946
|
+
e.$slots.optionTooltip ? {
|
|
947
|
+
name: "optionTooltip",
|
|
948
|
+
fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
949
|
+
key: "1"
|
|
950
|
+
} : void 0,
|
|
951
|
+
e.$slots.optionPdf ? {
|
|
952
|
+
name: "optionPdf",
|
|
953
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
954
|
+
key: "2"
|
|
955
|
+
} : void 0,
|
|
956
|
+
e.$slots.optionCsv ? {
|
|
957
|
+
name: "optionCsv",
|
|
958
|
+
fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
959
|
+
key: "3"
|
|
960
|
+
} : void 0,
|
|
961
|
+
e.$slots.optionImg ? {
|
|
962
|
+
name: "optionImg",
|
|
963
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
964
|
+
key: "4"
|
|
965
|
+
} : void 0,
|
|
966
|
+
e.$slots.optionSvg ? {
|
|
967
|
+
name: "optionSvg",
|
|
968
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
969
|
+
key: "5"
|
|
970
|
+
} : void 0,
|
|
971
|
+
e.$slots.optionTable ? {
|
|
972
|
+
name: "optionTable",
|
|
973
|
+
fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
974
|
+
key: "6"
|
|
975
|
+
} : void 0,
|
|
976
|
+
e.$slots.optionLabels ? {
|
|
977
|
+
name: "optionLabels",
|
|
978
|
+
fn: w(() => [x(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
979
|
+
key: "7"
|
|
980
|
+
} : void 0,
|
|
981
|
+
e.$slots.optionFullscreen ? {
|
|
982
|
+
name: "optionFullscreen",
|
|
983
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
984
|
+
toggleFullscreen: t,
|
|
985
|
+
isFullscreen: n
|
|
986
|
+
})), void 0, !0)]),
|
|
987
|
+
key: "8"
|
|
988
|
+
} : void 0,
|
|
989
|
+
e.$slots.optionAnnotator ? {
|
|
990
|
+
name: "optionAnnotator",
|
|
991
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
992
|
+
toggleAnnotator: t,
|
|
993
|
+
isAnnotator: n
|
|
994
|
+
})), void 0, !0)]),
|
|
995
|
+
key: "9"
|
|
996
|
+
} : void 0,
|
|
997
|
+
e.$slots.optionAltCopy ? {
|
|
998
|
+
name: "optionAltCopy",
|
|
999
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
1000
|
+
key: "10"
|
|
1001
|
+
} : void 0,
|
|
1002
|
+
e.$slots["custom-menu-before"] ? {
|
|
1003
|
+
name: "custom-menu-before",
|
|
1004
|
+
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1005
|
+
key: "11"
|
|
1006
|
+
} : void 0,
|
|
1007
|
+
e.$slots["custom-menu-after"] ? {
|
|
1008
|
+
name: "custom-menu-after",
|
|
1009
|
+
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1010
|
+
key: "12"
|
|
1011
|
+
} : void 0
|
|
1012
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
1013
|
+
p("div", et, [(v(), f("svg", {
|
|
1014
|
+
ref_key: "svgRef",
|
|
1015
|
+
ref: P,
|
|
1016
|
+
xmlns: C(fe),
|
|
1017
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1018
|
+
class: He({
|
|
1019
|
+
"vue-data-ui-fullscreen--on": A.value,
|
|
1020
|
+
"vue-data-ui-fulscreen--off": !A.value
|
|
1021
|
+
}),
|
|
1022
|
+
viewBox: `0 0 ${z.value.chartWidth <= 0 ? 10 : z.value.chartWidth} ${z.value.chartHeight <= 0 ? 10 : z.value.chartHeight}`,
|
|
1023
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${j.value.style.chart.color}`),
|
|
1024
|
+
tabindex: "0",
|
|
1025
|
+
onFocus: Zn,
|
|
1026
|
+
onBlur: Qn,
|
|
1027
|
+
onKeydown: $n
|
|
1028
|
+
}, [
|
|
1029
|
+
ze(C(Ot)),
|
|
1030
|
+
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
1031
|
+
key: 0,
|
|
1032
|
+
x: z.value.left,
|
|
1033
|
+
y: z.value.top,
|
|
1034
|
+
width: z.value.width,
|
|
1035
|
+
height: z.value.height,
|
|
1036
|
+
style: { pointerEvents: "none" }
|
|
1037
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : d("", !0),
|
|
1038
|
+
(v(!0), f(c, null, b(K.value, (e, t) => (v(), f("g", rt, [p("line", {
|
|
1039
|
+
x1: z.value.left + W.value * t + W.value / 2,
|
|
1040
|
+
x2: z.value.left + W.value * t + W.value / 2,
|
|
1041
|
+
y1: z.value.top,
|
|
1042
|
+
y2: z.value.bottom,
|
|
1043
|
+
stroke: j.value.style.chart.yAxis.stroke,
|
|
1044
|
+
"stroke-width": j.value.style.chart.yAxis.strokeWidth
|
|
1045
|
+
}, null, 8, it), j.value.style.chart.yAxis.labels.ticks.show ? (v(), f(c, { key: 0 }, [(v(!0), f(c, null, b(e.ticks, (e) => (v(), f("line", {
|
|
1046
|
+
x1: e.x,
|
|
1047
|
+
x2: e.x - 10,
|
|
1048
|
+
y1: e.y,
|
|
1049
|
+
y2: e.y,
|
|
1050
|
+
stroke: j.value.style.chart.yAxis.stroke,
|
|
1051
|
+
"stroke-width": j.value.style.chart.yAxis.strokeWidth,
|
|
1052
|
+
style: _(`opacity:${Y.value && !B.value.showTooltip ? .2 : 1}`)
|
|
1053
|
+
}, null, 12, at))), 256)), C(N) ? d("", !0) : (v(), f("g", ot, [(v(!0), f(c, null, b(e.ticks, (e) => (v(), f("text", {
|
|
1054
|
+
x: e.x - 12 + j.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
1055
|
+
y: e.y + j.value.style.chart.yAxis.labels.ticks.offsetY + L.value.ticksFontSize / 3,
|
|
1056
|
+
fill: j.value.style.chart.yAxis.labels.ticks.color,
|
|
1057
|
+
"text-anchor": "end",
|
|
1058
|
+
"font-size": L.value.ticksFontSize,
|
|
1059
|
+
"font-weight": j.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
1060
|
+
style: _(`opacity:${Y.value && !B.value.showTooltip ? .2 : 1}`)
|
|
1061
|
+
}, S(Cn({
|
|
1062
|
+
value: e.value,
|
|
1063
|
+
index: t,
|
|
1064
|
+
datapoint: e
|
|
1065
|
+
})), 13, st))), 256))]))], 64)) : d("", !0)]))), 256)),
|
|
1066
|
+
j.value.style.chart.yAxis.labels.showAxisNames ? (v(), f("g", {
|
|
1067
|
+
key: 1,
|
|
1068
|
+
ref_key: "xAxisLabels",
|
|
1069
|
+
ref: Kt
|
|
1070
|
+
}, [(v(!0), f(c, null, b(K.value, (e, t) => (v(), f(c, null, [String(e.name).includes("\n") ? (v(), f("text", {
|
|
1071
|
+
key: 1,
|
|
1072
|
+
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
1073
|
+
fill: j.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1074
|
+
"font-size": L.value.axisNameFontSize,
|
|
1075
|
+
"font-weight": j.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
1076
|
+
"text-anchor": j.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : j.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
1077
|
+
transform: `translate(${z.value.left + W.value * t + W.value / 2}, ${R.value - L.value.axisNameFontSize}), rotate(${j.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
1078
|
+
innerHTML: C(n)({
|
|
1079
|
+
content: String(e.name),
|
|
1080
|
+
fontSize: L.value.axisNameFontSize,
|
|
1081
|
+
fill: j.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1082
|
+
x: 0,
|
|
1083
|
+
y: 0
|
|
1084
|
+
})
|
|
1085
|
+
}, null, 8, lt)) : (v(), f("text", {
|
|
1086
|
+
key: 0,
|
|
1087
|
+
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
1088
|
+
fill: j.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1089
|
+
"font-size": L.value.axisNameFontSize,
|
|
1090
|
+
"font-weight": j.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
1091
|
+
"text-anchor": j.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : j.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
1092
|
+
transform: `translate(${z.value.left + W.value * t + W.value / 2}, ${R.value - L.value.axisNameFontSize}), rotate(${j.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
1093
|
+
}, S(e.name), 9, ct))], 64))), 256))], 512)) : d("", !0),
|
|
1094
|
+
(v(!0), f(c, null, b(q.value, (t, n) => (v(), f("g", null, [(v(!0), f(c, null, b(t.series, (r, i) => (v(), f("g", null, [
|
|
1095
|
+
j.value.style.chart.plots.show ? (v(), f("g", ut, [
|
|
1096
|
+
(v(!0), f(c, null, b(r.datapoints, (e, a) => (v(), u(Ee, {
|
|
1097
|
+
plot: {
|
|
1098
|
+
x: e.x,
|
|
1099
|
+
y: e.y
|
|
1100
|
+
},
|
|
1101
|
+
color: t.color,
|
|
1102
|
+
shape: t.shape,
|
|
1103
|
+
radius: t.shape === "triangle" ? L.value.plotSize * 1.2 : L.value.plotSize,
|
|
1104
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
1105
|
+
strokeWidth: .5,
|
|
1106
|
+
onMouseenter: (e) => Z({
|
|
1107
|
+
shape: t.shape,
|
|
1108
|
+
serieName: t.name,
|
|
1109
|
+
serie: r,
|
|
1110
|
+
relativeIndex: i,
|
|
1111
|
+
seriesIndex: r.seriesIndex,
|
|
1112
|
+
S: n,
|
|
1113
|
+
triggerMode: "pointer"
|
|
1114
|
+
}),
|
|
1115
|
+
onMouseleave: (e) => X({
|
|
1116
|
+
serie: r,
|
|
1117
|
+
shape: t.shape,
|
|
1118
|
+
S: n
|
|
1119
|
+
}),
|
|
1120
|
+
style: _(`opacity:${Y.value ? Y.value === r.id ? j.value.style.chart.plots.opacity : .2 : j.value.style.chart.plots.opacity}`),
|
|
1121
|
+
onClick: () => Mn({
|
|
1122
|
+
serie: r,
|
|
1123
|
+
shape: t.shape,
|
|
1124
|
+
S: n
|
|
1125
|
+
})
|
|
1126
|
+
}, null, 8, [
|
|
1127
|
+
"plot",
|
|
1128
|
+
"color",
|
|
1129
|
+
"shape",
|
|
1130
|
+
"radius",
|
|
1131
|
+
"stroke",
|
|
1132
|
+
"onMouseenter",
|
|
1133
|
+
"onMouseleave",
|
|
1134
|
+
"style",
|
|
1135
|
+
"onClick"
|
|
1136
|
+
]))), 256)),
|
|
1137
|
+
B.value.showTooltip ? d("", !0) : (v(), f(c, { key: 0 }, [Y.value && Y.value === r.id && r.datapoints.length ? (v(), f("text", {
|
|
1138
|
+
key: 0,
|
|
1139
|
+
x: r.datapoints[0].x - L.value.ticksFontSize,
|
|
1140
|
+
y: r.datapoints[0].y + L.value.ticksFontSize / 3,
|
|
1141
|
+
"text-anchor": "end",
|
|
1142
|
+
"font-size": L.value.ticksFontSize,
|
|
1143
|
+
fill: t.color,
|
|
1144
|
+
"font-weight": "bold"
|
|
1145
|
+
}, S(r.name), 9, dt)) : d("", !0)], 64)),
|
|
1146
|
+
j.value.style.chart.comments.show ? (v(!0), f(c, { key: 1 }, b(r.datapoints, (n) => (v(), f("g", null, [n.comment ? (v(), f("foreignObject", {
|
|
1147
|
+
key: 0,
|
|
1148
|
+
style: { overflow: "visible" },
|
|
1149
|
+
height: "12",
|
|
1150
|
+
width: j.value.style.chart.comments.width,
|
|
1151
|
+
x: n.x - j.value.style.chart.comments.width / 2 + j.value.style.chart.comments.offsetX,
|
|
1152
|
+
y: n.y + j.value.style.chart.comments.offsetY + 6
|
|
1153
|
+
}, [p("div", pt, [x(e.$slots, "plot-comment", { plot: {
|
|
1154
|
+
...n,
|
|
1155
|
+
color: t.color
|
|
1156
|
+
} }, void 0, !0)])], 8, ft)) : d("", !0)]))), 256)) : d("", !0)
|
|
1157
|
+
])) : d("", !0),
|
|
1158
|
+
!C(N) && (B.value.dataLabels.show || Y.value && Y.value === r.id) ? (v(!0), f(c, { key: 1 }, b(r.datapoints, (e, a) => (v(), f("text", {
|
|
1159
|
+
x: e.x + 12 + j.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
1160
|
+
y: e.y + j.value.style.chart.yAxis.labels.datapoints.offsetY + L.value.datapointFontSize / 3,
|
|
1161
|
+
fill: j.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : j.value.style.chart.yAxis.labels.datapoints.color,
|
|
1162
|
+
"text-anchor": "start",
|
|
1163
|
+
"font-weight": j.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
1164
|
+
class: He({
|
|
1165
|
+
"vue-ui-pcp-animated": !1,
|
|
1166
|
+
"vue-ui-pcp-transition": !C(N)
|
|
1167
|
+
}),
|
|
1168
|
+
"font-size": L.value.datapointFontSize,
|
|
1169
|
+
onMouseenter: (e) => Z({
|
|
1170
|
+
shape: t.shape,
|
|
1171
|
+
serieName: t.name,
|
|
1172
|
+
serie: r,
|
|
1173
|
+
relativeIndex: i,
|
|
1174
|
+
seriesIndex: r.seriesIndex,
|
|
1175
|
+
S: n,
|
|
1176
|
+
triggerMode: "pointer"
|
|
1177
|
+
}),
|
|
1178
|
+
onMouseleave: (e) => X({
|
|
1179
|
+
serie: r,
|
|
1180
|
+
shape: t.shape,
|
|
1181
|
+
S: n
|
|
1182
|
+
}),
|
|
1183
|
+
onClick: () => Mn({
|
|
1184
|
+
serie: r,
|
|
1185
|
+
shape: t.shape,
|
|
1186
|
+
S: n
|
|
1187
|
+
}),
|
|
1188
|
+
style: _(`opacity:${Y.value ? Y.value === r.id ? 1 : .2 : 1}`)
|
|
1189
|
+
}, S(Cn({
|
|
1190
|
+
value: e.value,
|
|
1191
|
+
index: a,
|
|
1192
|
+
datapoint: e
|
|
1193
|
+
})), 47, mt))), 256)) : d("", !0),
|
|
1194
|
+
p("path", {
|
|
1195
|
+
d: `M${j.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
|
|
1196
|
+
stroke: t.color,
|
|
1197
|
+
"stroke-width": j.value.style.chart.lines.strokeWidth,
|
|
1198
|
+
fill: "none",
|
|
1199
|
+
class: He({
|
|
1200
|
+
"vue-ui-pcp-animated vue-data-ui-line-animated": j.value.useCssAnimation,
|
|
1201
|
+
"vue-ui-pcp-transition": !C(N)
|
|
1202
|
+
}),
|
|
1203
|
+
onMouseenter: (e) => Z({
|
|
1204
|
+
shape: t.shape,
|
|
1205
|
+
serieName: t.name,
|
|
1206
|
+
serie: r,
|
|
1207
|
+
relativeIndex: i,
|
|
1208
|
+
seriesIndex: r.seriesIndex,
|
|
1209
|
+
S: n,
|
|
1210
|
+
triggerMode: "pointer"
|
|
1211
|
+
}),
|
|
1212
|
+
onMouseleave: (e) => X({
|
|
1213
|
+
serie: r,
|
|
1214
|
+
shape: t.shape,
|
|
1215
|
+
S: n
|
|
1216
|
+
}),
|
|
1217
|
+
onClick: () => Mn({
|
|
1218
|
+
serie: r,
|
|
1219
|
+
shape: t.shape,
|
|
1220
|
+
S: n
|
|
1221
|
+
}),
|
|
1222
|
+
style: _(`opacity:${Y.value ? Y.value === r.id ? j.value.style.chart.lines.opacity : .2 : j.value.style.chart.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${j.value.useCssAnimation ? r.pathLength : 0}`)
|
|
1223
|
+
}, null, 46, ht),
|
|
1224
|
+
B.value.showTooltip ? (v(), f("path", {
|
|
1225
|
+
key: 2,
|
|
1226
|
+
d: `M${j.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
|
|
1227
|
+
stroke: "transparent",
|
|
1228
|
+
"stroke-width": 12,
|
|
1229
|
+
fill: "none",
|
|
1230
|
+
class: He({
|
|
1231
|
+
"vue-ui-pcp-animated vue-data-ui-line-animated": j.value.useCssAnimation,
|
|
1232
|
+
"vue-ui-pcp-transition": !C(N)
|
|
1233
|
+
}),
|
|
1234
|
+
onMouseenter: (e) => Z({
|
|
1235
|
+
shape: t.shape,
|
|
1236
|
+
serieName: t.name,
|
|
1237
|
+
serie: r,
|
|
1238
|
+
relativeIndex: i,
|
|
1239
|
+
seriesIndex: r.seriesIndex,
|
|
1240
|
+
S: n,
|
|
1241
|
+
triggerMode: "pointer"
|
|
1242
|
+
}),
|
|
1243
|
+
onMouseleave: (e) => X({
|
|
1244
|
+
serie: r,
|
|
1245
|
+
shape: t.shape,
|
|
1246
|
+
S: n
|
|
1247
|
+
}),
|
|
1248
|
+
onClick: () => Mn({
|
|
1249
|
+
serie: r,
|
|
1250
|
+
shape: t.shape,
|
|
1251
|
+
S: n
|
|
1252
|
+
}),
|
|
1253
|
+
style: { opacity: "0" }
|
|
1254
|
+
}, null, 42, gt)) : d("", !0)
|
|
1255
|
+
]))), 256))]))), 256)),
|
|
1256
|
+
x(e.$slots, "svg", { svg: {
|
|
1257
|
+
...z.value,
|
|
1258
|
+
isPrintingImg: C(sn) || C(cn) || Wt.value,
|
|
1259
|
+
isPrintingSvg: Gt.value
|
|
1260
|
+
} }, void 0, !0)
|
|
1261
|
+
], 46, tt)), e.$slots.hint ? (v(), f("div", _t, [x(e.$slots, "hint", g(h({
|
|
1262
|
+
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1263
|
+
isVisible: Yt.value
|
|
1264
|
+
})), void 0, !0)])) : d("", !0)]),
|
|
1265
|
+
e.$slots.watermark ? (v(), f("div", vt, [x(e.$slots, "watermark", g(h({ isPrinting: C(sn) || C(cn) || Wt.value || Gt.value })), void 0, !0)])) : d("", !0),
|
|
1266
|
+
p("div", { id: `legend-bottom-${k.value}` }, null, 8, yt),
|
|
1267
|
+
Ht.value && (j.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(Ie, {
|
|
1268
|
+
key: 6,
|
|
1269
|
+
to: j.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1270
|
+
}, [p("div", {
|
|
1271
|
+
ref_key: "chartLegend",
|
|
1272
|
+
ref: It
|
|
1273
|
+
}, [x(e.$slots, "legend", { legend: U.value }, () => [j.value.style.chart.legend.show && Nt.value ? (v(), u(Pe, {
|
|
1274
|
+
key: `legend_${Bt.value}`,
|
|
1275
|
+
legendSet: U.value,
|
|
1276
|
+
config: xn.value,
|
|
1277
|
+
isCursorPointer: M.value,
|
|
1278
|
+
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1279
|
+
_n(e.id);
|
|
1280
|
+
}
|
|
1281
|
+
}, {
|
|
1282
|
+
item: w(({ legend: e, index: t }) => [p("div", {
|
|
1283
|
+
onClick: (t) => e.segregate(),
|
|
1284
|
+
style: _(`opacity:${V.value.includes(e.id) ? .5 : 1}`)
|
|
1285
|
+
}, S(e.name), 13, bt)]),
|
|
1286
|
+
legendToggle: w(() => [U.value.length > 2 && j.value.style.chart.legend.selectAllToggle.show && !C(N) ? (v(), u(Ae, {
|
|
1287
|
+
key: 0,
|
|
1288
|
+
backgroundColor: j.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1289
|
+
color: j.value.style.chart.legend.selectAllToggle.color,
|
|
1290
|
+
fontSize: j.value.style.chart.legend.fontSize,
|
|
1291
|
+
checked: V.value.length > 0,
|
|
1292
|
+
isCursorPointer: M.value,
|
|
1293
|
+
onToggle: gn
|
|
1294
|
+
}, null, 8, [
|
|
1295
|
+
"backgroundColor",
|
|
1296
|
+
"color",
|
|
1297
|
+
"fontSize",
|
|
1298
|
+
"checked",
|
|
1299
|
+
"isCursorPointer"
|
|
1300
|
+
])) : d("", !0)]),
|
|
1301
|
+
_: 1
|
|
1302
|
+
}, 8, [
|
|
1303
|
+
"legendSet",
|
|
1304
|
+
"config",
|
|
1305
|
+
"isCursorPointer"
|
|
1306
|
+
])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
1307
|
+
e.$slots.source ? (v(), f("div", {
|
|
1308
|
+
key: 7,
|
|
1309
|
+
ref_key: "source",
|
|
1310
|
+
ref: Lt,
|
|
1311
|
+
dir: "auto"
|
|
1312
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
1313
|
+
ze(C(St), {
|
|
1314
|
+
teleportTo: j.value.style.chart.tooltip.teleportTo,
|
|
1315
|
+
show: B.value.showTooltip && Tn.value,
|
|
1316
|
+
backgroundColor: j.value.style.chart.tooltip.backgroundColor,
|
|
1317
|
+
color: j.value.style.chart.tooltip.color,
|
|
1318
|
+
fontSize: j.value.style.chart.tooltip.fontSize,
|
|
1319
|
+
borderRadius: j.value.style.chart.tooltip.borderRadius,
|
|
1320
|
+
borderColor: j.value.style.chart.tooltip.borderColor,
|
|
1321
|
+
borderWidth: j.value.style.chart.tooltip.borderWidth,
|
|
1322
|
+
backgroundOpacity: j.value.style.chart.tooltip.backgroundOpacity,
|
|
1323
|
+
position: j.value.style.chart.tooltip.position,
|
|
1324
|
+
offsetX: j.value.style.chart.tooltip.offsetX,
|
|
1325
|
+
offsetY: j.value.style.chart.tooltip.offsetY,
|
|
1326
|
+
parent: E.value,
|
|
1327
|
+
content: En.value,
|
|
1328
|
+
isFullscreen: A.value,
|
|
1329
|
+
isCustom: C(me)(j.value.style.chart.tooltip.customFormat),
|
|
1330
|
+
smooth: j.value.style.chart.tooltip.smooth,
|
|
1331
|
+
backdropFilter: j.value.style.chart.tooltip.backdropFilter,
|
|
1332
|
+
smoothForce: j.value.style.chart.tooltip.smoothForce,
|
|
1333
|
+
smoothSnapThreshold: j.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1334
|
+
isA11yMode: Jt.value === "keyboard",
|
|
1335
|
+
a11yPosition: qt.value
|
|
1336
|
+
}, {
|
|
1337
|
+
"tooltip-before": w(() => [x(e.$slots, "tooltip-before", g(h({ ...wn.value })), void 0, !0)]),
|
|
1338
|
+
tooltip: w(() => [x(e.$slots, "tooltip", g(h({ ...wn.value })), void 0, !0)]),
|
|
1339
|
+
"tooltip-after": w(() => [x(e.$slots, "tooltip-after", g(h({ ...wn.value })), void 0, !0)]),
|
|
1340
|
+
_: 3
|
|
1341
|
+
}, 8, [
|
|
1342
|
+
"teleportTo",
|
|
1343
|
+
"show",
|
|
1344
|
+
"backgroundColor",
|
|
1345
|
+
"color",
|
|
1346
|
+
"fontSize",
|
|
1347
|
+
"borderRadius",
|
|
1348
|
+
"borderColor",
|
|
1349
|
+
"borderWidth",
|
|
1350
|
+
"backgroundOpacity",
|
|
1351
|
+
"position",
|
|
1352
|
+
"offsetX",
|
|
1353
|
+
"offsetY",
|
|
1354
|
+
"parent",
|
|
1355
|
+
"content",
|
|
1356
|
+
"isFullscreen",
|
|
1357
|
+
"isCustom",
|
|
1358
|
+
"smooth",
|
|
1359
|
+
"backdropFilter",
|
|
1360
|
+
"smoothForce",
|
|
1361
|
+
"smoothSnapThreshold",
|
|
1362
|
+
"isA11yMode",
|
|
1363
|
+
"a11yPosition"
|
|
1364
|
+
]),
|
|
1365
|
+
Nt.value && j.value.userOptions.buttons.table ? (v(), u(Ge(Bn.value.component), Be({ key: 8 }, Bn.value.props, {
|
|
1366
|
+
ref_key: "tableUnit",
|
|
1367
|
+
ref: D,
|
|
1368
|
+
onClose: Vn
|
|
1369
|
+
}), Le({
|
|
1370
|
+
content: w(() => [(v(), u(C(Tt), {
|
|
1371
|
+
key: `table_${Vt.value}`,
|
|
1372
|
+
colNames: Q.value.colNames,
|
|
1373
|
+
head: Q.value.head,
|
|
1374
|
+
body: Q.value.body,
|
|
1375
|
+
config: Q.value.config,
|
|
1376
|
+
title: j.value.table.useDialog ? "" : Bn.value.title,
|
|
1377
|
+
withCloseButton: !j.value.table.useDialog,
|
|
1378
|
+
isCursorPointer: M.value,
|
|
1379
|
+
onClose: Vn
|
|
1380
|
+
}, {
|
|
1381
|
+
th: w(({ th: e }) => [p("div", { innerHTML: e }, null, 8, xt)]),
|
|
1382
|
+
td: w(({ td: e }) => [Re(S(e), 1)]),
|
|
1383
|
+
_: 1
|
|
1384
|
+
}, 8, [
|
|
1385
|
+
"colNames",
|
|
1386
|
+
"head",
|
|
1387
|
+
"body",
|
|
1388
|
+
"config",
|
|
1389
|
+
"title",
|
|
1390
|
+
"withCloseButton",
|
|
1391
|
+
"isCursorPointer"
|
|
1392
|
+
]))]),
|
|
1393
|
+
_: 2
|
|
1394
|
+
}, [j.value.table.useDialog ? {
|
|
1395
|
+
name: "title",
|
|
1396
|
+
fn: w(() => [Re(S(Bn.value.title), 1)]),
|
|
1397
|
+
key: "0"
|
|
1398
|
+
} : void 0, j.value.table.useDialog ? {
|
|
1399
|
+
name: "actions",
|
|
1400
|
+
fn: w(() => [p("button", {
|
|
1401
|
+
tabindex: "0",
|
|
1402
|
+
class: "vue-ui-user-options-button",
|
|
1403
|
+
onClick: t[1] ||= (e) => An(j.value.userOptions.callbacks.csv),
|
|
1404
|
+
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
1405
|
+
}, [ze(C(Ct), {
|
|
1406
|
+
name: "fileCsv",
|
|
1407
|
+
stroke: Bn.value.props.color
|
|
1408
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1409
|
+
key: "1"
|
|
1410
|
+
} : void 0]), 1040)) : d("", !0),
|
|
1411
|
+
x(e.$slots, "skeleton", {}, () => [C(N) ? (v(), u(ye, { key: 0 })) : d("", !0)], !0)
|
|
1412
|
+
], 46, Ze));
|
|
1413
|
+
}
|
|
1414
|
+
}, [["__scopeId", "data-v-a7286565"]]);
|
|
1415
|
+
//#endregion
|
|
1416
|
+
export { Xe as n, St as t };
|