vue-data-ui 3.22.7 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -0,0 +1,1416 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, G as n, Gt as r, J as i, Kt as a, M as o, Mt as s, S as c, T as ee, U as te, Ut as ne, Wt as re, Z as ie, b as ae, dt as oe, h as se, i as ce, kt as le, ot as ue, pt as de, t as fe, yt as pe, z as me } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as he } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ge } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ye } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as be } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
+
import { t as Ce } from "./img-DnP3eXuv.js";
|
|
11
|
+
import { n as we } from "./Title-CcNiYzEo.js";
|
|
12
|
+
import { t as Te } from "./Shape-UpH0a4Ur.js";
|
|
13
|
+
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { c as De } from "./canvas-lib-BOP_HS11.js";
|
|
15
|
+
import { t as Oe } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
+
import { t as ke } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
17
|
+
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Ne } from "./Legend-ROt6ugzW.js";
|
|
21
|
+
import { t as Pe } from "./vue_ui_parallel_coordinate_plot-CBiOBira.js";
|
|
22
|
+
import { Fragment as l, Teleport as Fe, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as ze, nextTick as Be, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Ve, onMounted as He, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as w, toRefs as Ge, unref as T, watch as Ke, watchEffect as qe, withCtx as E } from "vue";
|
|
23
|
+
//#region src/components/vue-ui-parallel-coordinate-plot.vue
|
|
24
|
+
var Je = /* @__PURE__ */ e({ default: () => bt }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
|
|
25
|
+
"xmlns",
|
|
26
|
+
"aria-describedby",
|
|
27
|
+
"viewBox"
|
|
28
|
+
], et = [
|
|
29
|
+
"x",
|
|
30
|
+
"y",
|
|
31
|
+
"width",
|
|
32
|
+
"height"
|
|
33
|
+
], tt = { style: { "pointer-events": "none" } }, nt = [
|
|
34
|
+
"x1",
|
|
35
|
+
"x2",
|
|
36
|
+
"y1",
|
|
37
|
+
"y2",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-width"
|
|
40
|
+
], rt = [
|
|
41
|
+
"x1",
|
|
42
|
+
"x2",
|
|
43
|
+
"y1",
|
|
44
|
+
"y2",
|
|
45
|
+
"stroke",
|
|
46
|
+
"stroke-width"
|
|
47
|
+
], it = { key: 0 }, at = [
|
|
48
|
+
"x",
|
|
49
|
+
"y",
|
|
50
|
+
"fill",
|
|
51
|
+
"font-size",
|
|
52
|
+
"font-weight"
|
|
53
|
+
], ot = [
|
|
54
|
+
"fill",
|
|
55
|
+
"font-size",
|
|
56
|
+
"font-weight",
|
|
57
|
+
"text-anchor",
|
|
58
|
+
"transform"
|
|
59
|
+
], st = [
|
|
60
|
+
"fill",
|
|
61
|
+
"font-size",
|
|
62
|
+
"font-weight",
|
|
63
|
+
"text-anchor",
|
|
64
|
+
"transform",
|
|
65
|
+
"innerHTML"
|
|
66
|
+
], ct = { key: 0 }, lt = [
|
|
67
|
+
"x",
|
|
68
|
+
"y",
|
|
69
|
+
"font-size",
|
|
70
|
+
"fill"
|
|
71
|
+
], ut = [
|
|
72
|
+
"width",
|
|
73
|
+
"x",
|
|
74
|
+
"y"
|
|
75
|
+
], dt = { style: { width: "100%" } }, ft = [
|
|
76
|
+
"x",
|
|
77
|
+
"y",
|
|
78
|
+
"fill",
|
|
79
|
+
"font-weight",
|
|
80
|
+
"font-size",
|
|
81
|
+
"onMouseenter",
|
|
82
|
+
"onMouseleave",
|
|
83
|
+
"onClick"
|
|
84
|
+
], pt = [
|
|
85
|
+
"d",
|
|
86
|
+
"stroke",
|
|
87
|
+
"stroke-width",
|
|
88
|
+
"onMouseenter",
|
|
89
|
+
"onMouseleave",
|
|
90
|
+
"onClick"
|
|
91
|
+
], mt = [
|
|
92
|
+
"d",
|
|
93
|
+
"onMouseenter",
|
|
94
|
+
"onMouseleave",
|
|
95
|
+
"onClick"
|
|
96
|
+
], ht = {
|
|
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
|
+
}, gt = {
|
|
107
|
+
key: 5,
|
|
108
|
+
class: "vue-data-ui-watermark"
|
|
109
|
+
}, _t = ["id"], vt = ["onClick"], yt = ["innerHTML"], bt = /*#__PURE__*/ Ee({
|
|
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: Ee, emit: Je }) {
|
|
131
|
+
let bt = h(() => import("./Tooltip-CxOrWlFy.js")), xt = h(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), St = h(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Ct = h(() => import("./DataTable-BxpTMgfK.js")), wt = h(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Tt = h(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Et = h(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Dt = h(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: Ot } = he(), { isThemeValid: kt, warnInvalidTheme: At } = xe(), D = e, jt = u({
|
|
132
|
+
get() {
|
|
133
|
+
return !!D.dataset && D.dataset.length;
|
|
134
|
+
},
|
|
135
|
+
set(e) {
|
|
136
|
+
return e;
|
|
137
|
+
}
|
|
138
|
+
}), Mt = x(0), O = x(null), Nt = x(null), Pt = x(null), Ft = x(null), It = x(null), Lt = x(0), Rt = x(0), zt = x(0), Bt = x(!1), k = x(null), Vt = x(null), Ht = x(!1), Ut = x(!1), Wt = x(null), A = x(null), Gt = x({
|
|
139
|
+
x: 0,
|
|
140
|
+
y: 0
|
|
141
|
+
}), Kt = x("pointer"), qt = x(!1), j = x(n()), M = x(!1);
|
|
142
|
+
function Jt(e) {
|
|
143
|
+
M.value = e, Mt.value += 1;
|
|
144
|
+
}
|
|
145
|
+
let N = x(tn()), P = u(() => N.value.userOptions.useCursorPointer), Yt = u(() => a({
|
|
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: N.value.skeletonConfig ?? {}
|
|
167
|
+
})), { loading: F, FINAL_DATASET: Xt, manualLoading: Zt } = _e({
|
|
168
|
+
...Ge(D),
|
|
169
|
+
FINAL_CONFIG: N,
|
|
170
|
+
prepareConfig: tn,
|
|
171
|
+
callback: () => {
|
|
172
|
+
Promise.resolve().then(async () => {
|
|
173
|
+
await Be(), H.value.showTable = N.value.table.show;
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
skeletonDataset: D.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: a({
|
|
221
|
+
defaultConfig: N.value,
|
|
222
|
+
userConfig: Yt.value
|
|
223
|
+
})
|
|
224
|
+
}), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = je({ config: N.value }), { svgRef: I } = Me({ config: N.value.style.chart.title });
|
|
225
|
+
function tn() {
|
|
226
|
+
let e = be({
|
|
227
|
+
userConfig: D.config,
|
|
228
|
+
defaultConfig: Ot
|
|
229
|
+
}), t = e.theme;
|
|
230
|
+
if (!t) return e;
|
|
231
|
+
if (!kt.value(e)) return At(e), e;
|
|
232
|
+
let n = be({
|
|
233
|
+
userConfig: Pe[t] || D.config,
|
|
234
|
+
defaultConfig: e
|
|
235
|
+
}), r = be({
|
|
236
|
+
userConfig: D.config,
|
|
237
|
+
defaultConfig: n
|
|
238
|
+
});
|
|
239
|
+
return {
|
|
240
|
+
...r,
|
|
241
|
+
customPalette: r.customPalette.length ? r.customPalette : re[t] || s
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
Ke(() => D.config, (e) => {
|
|
245
|
+
F.value || (N.value = tn()), Qt.value = !N.value.userOptions.showOnChartHover, rn(), Lt.value += 1, zt.value += 1, Rt.value += 1, H.value.dataLabels.show = N.value.style.chart.yAxis.labels.datapoints.show, H.value.showTable = N.value.table.show, H.value.showTooltip = N.value.style.chart.tooltip.show;
|
|
246
|
+
}, { deep: !0 }), Ke(() => D.dataset, (e) => {
|
|
247
|
+
Array.isArray(e) && e.length > 0 && (Zt.value = !1);
|
|
248
|
+
}, { deep: !0 });
|
|
249
|
+
let L = We(null), R = We(null);
|
|
250
|
+
He(() => {
|
|
251
|
+
Bt.value = !0, rn();
|
|
252
|
+
});
|
|
253
|
+
let nn = u(() => !!N.value.debug);
|
|
254
|
+
function rn() {
|
|
255
|
+
if (le(D.dataset) ? (t({
|
|
256
|
+
componentName: "VueUiParallelCoordinatePlot",
|
|
257
|
+
type: "dataset",
|
|
258
|
+
debug: nn.value
|
|
259
|
+
}), Zt.value = !0) : D.dataset.forEach((e, n) => {
|
|
260
|
+
oe({
|
|
261
|
+
datasetObject: e,
|
|
262
|
+
requiredAttributes: ["name", "series"]
|
|
263
|
+
}).forEach((e) => {
|
|
264
|
+
jt.value = !1, t({
|
|
265
|
+
componentName: "VueUiParallelCoordinatePlot",
|
|
266
|
+
type: "datasetSerieAttribute",
|
|
267
|
+
property: e,
|
|
268
|
+
index: n,
|
|
269
|
+
debug: nn.value
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
}), le(D.dataset) || (Zt.value = N.value.loading), N.value.responsive) {
|
|
273
|
+
let e = De(() => {
|
|
274
|
+
let { width: e, height: t } = Oe({
|
|
275
|
+
chart: O.value,
|
|
276
|
+
title: N.value.style.chart.title.text ? Nt.value : null,
|
|
277
|
+
legend: N.value.style.chart.legend.show ? Pt.value : null,
|
|
278
|
+
source: Ft.value,
|
|
279
|
+
noTitle: It.value
|
|
280
|
+
});
|
|
281
|
+
requestAnimationFrame(() => {
|
|
282
|
+
z.value.width = e, z.value.height = t - 12, N.value.responsiveProportionalSizing ? (z.value.plotSize = r({
|
|
283
|
+
relator: Math.min(e, t),
|
|
284
|
+
adjuster: 600,
|
|
285
|
+
source: N.value.style.chart.plots.radius,
|
|
286
|
+
threshold: 2,
|
|
287
|
+
fallback: 2
|
|
288
|
+
}), z.value.ticksFontSize = r({
|
|
289
|
+
relator: Math.min(e, t),
|
|
290
|
+
adjuster: 600,
|
|
291
|
+
source: N.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
292
|
+
threshold: 10,
|
|
293
|
+
fallback: 10
|
|
294
|
+
}), z.value.datapointFontSize = r({
|
|
295
|
+
relator: Math.min(e, t),
|
|
296
|
+
adjuster: 600,
|
|
297
|
+
source: N.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
298
|
+
threshold: 10,
|
|
299
|
+
fallback: 10
|
|
300
|
+
}), z.value.axisNameFontSize = r({
|
|
301
|
+
relator: Math.min(e, t),
|
|
302
|
+
adjuster: 600,
|
|
303
|
+
source: N.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
304
|
+
threshold: 12,
|
|
305
|
+
fallback: 12
|
|
306
|
+
})) : (z.value.plotSize = N.value.style.chart.plots.radius, z.value.ticksFontSize = N.value.style.chart.yAxis.labels.ticks.fontSize, z.value.datapointFontSize = N.value.style.chart.yAxis.labels.datapoints.fontSize, z.value.axisNameFontSize = N.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = O.value.parentNode, L.value.observe(R.value);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
Ve(() => {
|
|
313
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
|
|
314
|
+
});
|
|
315
|
+
let { isPrinting: an, isImaging: on, generatePdf: sn, generateImage: cn } = ge({
|
|
316
|
+
elementId: `pcp_${j.value}`,
|
|
317
|
+
fileName: N.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
318
|
+
options: N.value.userOptions.print
|
|
319
|
+
}), ln = u(() => N.value.userOptions.show && !N.value.style.chart.title.text), z = x({
|
|
320
|
+
height: N.value.style.chart.height,
|
|
321
|
+
width: N.value.style.chart.width,
|
|
322
|
+
plotSize: N.value.style.chart.plots.radius,
|
|
323
|
+
ticksFontSize: N.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
324
|
+
datapointFontSize: N.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
325
|
+
axisNameFontSize: N.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
326
|
+
}), un = u(() => z.value.width), dn = u(() => z.value.height), B = x(0), fn = De((e) => {
|
|
327
|
+
B.value = e;
|
|
328
|
+
}, 100);
|
|
329
|
+
qe((e) => {
|
|
330
|
+
let t = Wt.value;
|
|
331
|
+
if (!t) return;
|
|
332
|
+
let n = new ResizeObserver((e) => {
|
|
333
|
+
fn(e[0].contentRect.height);
|
|
334
|
+
});
|
|
335
|
+
n.observe(t), e(() => n.disconnect());
|
|
336
|
+
});
|
|
337
|
+
let V = u(() => {
|
|
338
|
+
let { top: e, right: t, bottom: n, left: r } = N.value.style.chart.padding, i = dn.value, a = un.value;
|
|
339
|
+
return {
|
|
340
|
+
chartHeight: Math.max(.001, i),
|
|
341
|
+
chartWidth: Math.max(.001, a),
|
|
342
|
+
height: Math.max(.001, i - e - n - B.value - z.value.datapointFontSize * 2),
|
|
343
|
+
width: Math.max(.001, a - r - t),
|
|
344
|
+
top: e + B.value + z.value.datapointFontSize,
|
|
345
|
+
left: r,
|
|
346
|
+
right: a - t,
|
|
347
|
+
bottom: i - n - z.value.datapointFontSize
|
|
348
|
+
};
|
|
349
|
+
}), pn = u(() => c(N.value.customPalette)), H = x({
|
|
350
|
+
dataLabels: { show: N.value.style.chart.yAxis.labels.datapoints.show },
|
|
351
|
+
showTable: N.value.table.show,
|
|
352
|
+
showTooltip: N.value.style.chart.tooltip.show
|
|
353
|
+
});
|
|
354
|
+
Ke(N, () => {
|
|
355
|
+
H.value = {
|
|
356
|
+
dataLabels: { show: N.value.style.chart.yAxis.labels.datapoints.show },
|
|
357
|
+
showTable: N.value.table.show,
|
|
358
|
+
showTooltip: N.value.style.chart.tooltip.show
|
|
359
|
+
};
|
|
360
|
+
}, { immediate: !0 });
|
|
361
|
+
let U = x([]);
|
|
362
|
+
function mn() {
|
|
363
|
+
U.value.length ? U.value = [] : G.value.forEach((e) => {
|
|
364
|
+
U.value.push(e.id);
|
|
365
|
+
}), An("selectLegend", q.value);
|
|
366
|
+
}
|
|
367
|
+
function hn(e) {
|
|
368
|
+
U.value.includes(e) ? U.value = U.value.filter((t) => t !== e) : U.value.push(e), An("selectLegend", q.value);
|
|
369
|
+
}
|
|
370
|
+
let W = u(() => Xt.value.map((e, t) => {
|
|
371
|
+
let r = ae(e.color) || pn.value[t] || s[t] || s[t % s.length];
|
|
372
|
+
return {
|
|
373
|
+
...e,
|
|
374
|
+
series: e.series.map((e) => ({
|
|
375
|
+
...e,
|
|
376
|
+
id: n(),
|
|
377
|
+
color: r
|
|
378
|
+
})),
|
|
379
|
+
seriesIndex: t,
|
|
380
|
+
color: r,
|
|
381
|
+
id: n(),
|
|
382
|
+
shape: e.shape || "circle"
|
|
383
|
+
};
|
|
384
|
+
}));
|
|
385
|
+
function gn(e) {
|
|
386
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null);
|
|
387
|
+
}
|
|
388
|
+
function _n(e) {
|
|
389
|
+
let t = gn(e);
|
|
390
|
+
t !== null && U.value.includes(t.id) && hn(t.id);
|
|
391
|
+
}
|
|
392
|
+
function vn(e) {
|
|
393
|
+
let t = gn(e);
|
|
394
|
+
t !== null && (U.value.includes(t.id) || hn(t.id));
|
|
395
|
+
}
|
|
396
|
+
let G = u(() => W.value.map((e) => ({
|
|
397
|
+
...e,
|
|
398
|
+
opacity: U.value.includes(e.id) ? .5 : 1,
|
|
399
|
+
segregate: () => hn(e.id),
|
|
400
|
+
isSegregated: U.value.includes(e.id),
|
|
401
|
+
shape: e.shape || "circle"
|
|
402
|
+
}))), yn = u(() => ({
|
|
403
|
+
cy: "pcp-div-legend",
|
|
404
|
+
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
405
|
+
color: N.value.style.chart.legend.color,
|
|
406
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
407
|
+
paddingBottom: 12,
|
|
408
|
+
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
409
|
+
})), bn = u(() => Math.max(...W.value.filter((e) => !U.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), K = u(() => V.value.width / bn.value), q = u(() => W.value.filter((e) => !U.value.includes(e.id))), J = u(() => {
|
|
410
|
+
let e = [];
|
|
411
|
+
for (let t = 0; t < bn.value; t += 1) {
|
|
412
|
+
let n = Math.min(...q.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...q.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), i = se(r === n ? n / 4 : n, r === n ? r * 2 : r, N.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: V.value.bottom - V.value.height * (r / a),
|
|
416
|
+
x: V.value.left + K.value * t + K.value / 2,
|
|
417
|
+
value: e
|
|
418
|
+
};
|
|
419
|
+
});
|
|
420
|
+
e.push({
|
|
421
|
+
scale: i,
|
|
422
|
+
ticks: a,
|
|
423
|
+
name: N.value.style.chart.yAxis.labels.axisNames[t] || `Y-${t + 1}`
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
return e;
|
|
427
|
+
}), Y = u(() => q.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 = J.value[a].scale.min < 0 ? (i || 0) + Math.abs(J.value[a].scale.min) : (i || 0) - Math.abs(J.value[a].scale.min), s = J.value[a].scale.min < 0 ? J.value[a].scale.max + Math.abs(J.value[a].scale.min) : J.value[a].scale.max - Math.abs(J.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: V.value.left + K.value * a + K.value / 2,
|
|
441
|
+
y: V.value.bottom - V.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 = me(e.datapoints), n = o(e.datapoints, .12), r = de(N.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
|
+
}))), X = u(() => Y.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 xn({ value: e, index: t, datapoint: n }) {
|
|
467
|
+
return ce(N.value.style.chart.yAxis.labels.formatters[t] || null, e, i({
|
|
468
|
+
p: N.value.style.chart.yAxis.labels.prefixes[t] || "",
|
|
469
|
+
v: e,
|
|
470
|
+
s: N.value.style.chart.yAxis.labels.suffixes[t] || "",
|
|
471
|
+
r: N.value.style.chart.yAxis.labels.roundings[t] || 0
|
|
472
|
+
}), {
|
|
473
|
+
datapoint: n,
|
|
474
|
+
seriesIndex: t
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
let Z = x(null), Sn = x(null), Cn = x(!1), wn = x("");
|
|
478
|
+
function Q({ shape: e, serie: t, S: n }) {
|
|
479
|
+
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
480
|
+
datapoint: {
|
|
481
|
+
...t,
|
|
482
|
+
shape: e
|
|
483
|
+
},
|
|
484
|
+
seriesIndex: n
|
|
485
|
+
});
|
|
486
|
+
let r = A.value === null ? null : X.value[A.value];
|
|
487
|
+
Kt.value === "keyboard" && r && r.serie.id === t.id || (Z.value = null, Cn.value = !1);
|
|
488
|
+
}
|
|
489
|
+
function Tn(e) {
|
|
490
|
+
if (!I.value || !e?.datapoints?.length) return;
|
|
491
|
+
let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
|
|
492
|
+
if (!t) return;
|
|
493
|
+
let n = ne(t.x, t.y, I.value);
|
|
494
|
+
n && (Gt.value = n);
|
|
495
|
+
}
|
|
496
|
+
function En({ shape: e, serieName: t, serie: n, relativeIndex: r, seriesIndex: a, S: o, triggerMode: s = "pointer" }) {
|
|
497
|
+
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
498
|
+
datapoint: {
|
|
499
|
+
...n,
|
|
500
|
+
shape: e
|
|
501
|
+
},
|
|
502
|
+
seriesIndex: o
|
|
503
|
+
}), Kt.value = s, Sn.value = {
|
|
504
|
+
config: N.value,
|
|
505
|
+
datapoint: n,
|
|
506
|
+
serie: n,
|
|
507
|
+
relativeIndex: r,
|
|
508
|
+
seriesIndex: a,
|
|
509
|
+
series: W.value,
|
|
510
|
+
scales: J.value
|
|
511
|
+
}, Cn.value = !0, Z.value = n.id;
|
|
512
|
+
let c = "", ee = N.value.style.chart.tooltip.customFormat;
|
|
513
|
+
pe(ee) && ue(() => ee({
|
|
514
|
+
serie: n,
|
|
515
|
+
seriesIndex: n.seriesIndex,
|
|
516
|
+
series: W.value,
|
|
517
|
+
config: N.value,
|
|
518
|
+
scales: J.value
|
|
519
|
+
})) ? wn.value = ee({
|
|
520
|
+
serie: n,
|
|
521
|
+
seriesIndex: n.seriesIndex,
|
|
522
|
+
series: W.value,
|
|
523
|
+
config: N.value,
|
|
524
|
+
scales: J.value
|
|
525
|
+
}) : (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t ? t + " - " : ""}${n.name}</div>`, J.value.map((e) => e.name).forEach((e, t) => {
|
|
526
|
+
c += `
|
|
527
|
+
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
528
|
+
<span>${e}: </span>
|
|
529
|
+
<span>
|
|
530
|
+
${ce(N.value.style.chart.yAxis.labels.formatters[t] || null, n.datapoints[t].value, i({
|
|
531
|
+
p: N.value.style.chart.yAxis.labels.prefixes[t] || "",
|
|
532
|
+
v: n.datapoints[t].value,
|
|
533
|
+
s: N.value.style.chart.yAxis.labels.suffixes[t] || "",
|
|
534
|
+
r: N.value.style.chart.yAxis.labels.roundings[t] || ""
|
|
535
|
+
}), {
|
|
536
|
+
datapoint: n.datapoints[t],
|
|
537
|
+
seriesIndex: t
|
|
538
|
+
})}
|
|
539
|
+
</span>
|
|
540
|
+
</div>
|
|
541
|
+
`, N.value.style.chart.comments.showInTooltip && n.datapoints[t].comment && (c += `<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
|
+
}), wn.value = `<div>${c}</div>`), s === "keyboard" && Be(() => {
|
|
543
|
+
Tn(n);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function Dn() {
|
|
547
|
+
return W.value;
|
|
548
|
+
}
|
|
549
|
+
let $ = u(() => {
|
|
550
|
+
let e = [N.value.table.columnNames.series, N.value.table.columnNames.item].concat(J.value.map((e) => e.name));
|
|
551
|
+
return {
|
|
552
|
+
body: Y.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
|
|
553
|
+
head: e,
|
|
554
|
+
config: {
|
|
555
|
+
th: {
|
|
556
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
557
|
+
color: N.value.table.th.color,
|
|
558
|
+
outline: N.value.table.th.outline
|
|
559
|
+
},
|
|
560
|
+
td: {
|
|
561
|
+
backgroundColor: N.value.table.td.backgroundColor,
|
|
562
|
+
color: N.value.table.td.color,
|
|
563
|
+
outline: N.value.table.td.outline
|
|
564
|
+
},
|
|
565
|
+
breakpoint: N.value.table.responsiveBreakpoint
|
|
566
|
+
},
|
|
567
|
+
colNames: [N.value.table.columnNames.series, N.value.table.columnNames.item].concat(J.value.map((e) => e.name))
|
|
568
|
+
};
|
|
569
|
+
}), On = u(() => Y.value.length === 0 ? {
|
|
570
|
+
head: [],
|
|
571
|
+
body: [],
|
|
572
|
+
config: {},
|
|
573
|
+
columnNames: []
|
|
574
|
+
} : {
|
|
575
|
+
head: $.value.head,
|
|
576
|
+
body: $.value.body
|
|
577
|
+
});
|
|
578
|
+
function kn(e = null) {
|
|
579
|
+
let t = [
|
|
580
|
+
[N.value.style.chart.title.text],
|
|
581
|
+
[N.value.style.chart.title.subtitle.text],
|
|
582
|
+
[""]
|
|
583
|
+
], n = On.value.head, r = On.value.body, i = ee(t.concat([n]).concat(r));
|
|
584
|
+
e ? e(i) : ie({
|
|
585
|
+
csvContent: i,
|
|
586
|
+
title: N.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
let An = Je;
|
|
590
|
+
function jn({ serie: e, shape: t, S: n }) {
|
|
591
|
+
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
592
|
+
datapoint: {
|
|
593
|
+
...e,
|
|
594
|
+
shape: t
|
|
595
|
+
},
|
|
596
|
+
seriesIndex: n
|
|
597
|
+
}), An("selectDatapoint", e);
|
|
598
|
+
}
|
|
599
|
+
function Mn() {
|
|
600
|
+
H.value.showTable = !H.value.showTable;
|
|
601
|
+
}
|
|
602
|
+
function Nn() {
|
|
603
|
+
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
604
|
+
}
|
|
605
|
+
function Pn() {
|
|
606
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
607
|
+
}
|
|
608
|
+
let Fn = x(!1);
|
|
609
|
+
function In() {
|
|
610
|
+
Fn.value = !Fn.value;
|
|
611
|
+
}
|
|
612
|
+
async function Ln({ scale: e = 2 } = {}) {
|
|
613
|
+
if (!O.value) return;
|
|
614
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
615
|
+
domElement: O.value,
|
|
616
|
+
base64: !0,
|
|
617
|
+
img: !0,
|
|
618
|
+
scale: e
|
|
619
|
+
});
|
|
620
|
+
return {
|
|
621
|
+
imageUri: i,
|
|
622
|
+
base64: a,
|
|
623
|
+
title: N.value.style.chart.title.text,
|
|
624
|
+
width: t,
|
|
625
|
+
height: n,
|
|
626
|
+
aspectRatio: r
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
let Rn = x({
|
|
630
|
+
start: 0,
|
|
631
|
+
end: 1
|
|
632
|
+
});
|
|
633
|
+
Se({
|
|
634
|
+
timeLabelsEls: Wt,
|
|
635
|
+
timeLabels: u(() => J.value.map((e) => e.name)),
|
|
636
|
+
slicer: Rn,
|
|
637
|
+
configRef: N,
|
|
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: un,
|
|
655
|
+
height: dn,
|
|
656
|
+
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
657
|
+
rotation: N.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
658
|
+
});
|
|
659
|
+
let zn = u(() => {
|
|
660
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = H.value.showTable;
|
|
661
|
+
return {
|
|
662
|
+
component: e ? Dt : St,
|
|
663
|
+
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
664
|
+
props: e ? {
|
|
665
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
666
|
+
color: N.value.table.th.color,
|
|
667
|
+
headerColor: N.value.table.th.color,
|
|
668
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
669
|
+
isFullscreen: M.value,
|
|
670
|
+
fullscreenParent: O.value,
|
|
671
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
672
|
+
isCursorPointer: P.value
|
|
673
|
+
} : {
|
|
674
|
+
hideDetails: !0,
|
|
675
|
+
config: {
|
|
676
|
+
open: t,
|
|
677
|
+
maxHeight: 1e4,
|
|
678
|
+
body: {
|
|
679
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
680
|
+
color: N.value.style.chart.color
|
|
681
|
+
},
|
|
682
|
+
head: {
|
|
683
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
684
|
+
color: N.value.style.chart.color
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
});
|
|
690
|
+
Ke(() => H.value.showTable, (e) => {
|
|
691
|
+
N.value.table.show || (e && N.value.table.useDialog && k.value ? k.value.open() : "close" in k.value && k.value.close());
|
|
692
|
+
});
|
|
693
|
+
function Bn() {
|
|
694
|
+
H.value.showTable = !1, Vt.value && Vt.value.setTableIconState(!1);
|
|
695
|
+
}
|
|
696
|
+
let Vn = u(() => N.value.style.chart.backgroundColor), Hn = u(() => N.value.style.chart.legend), { exportSvg: Un, getSvg: Wn } = ye({
|
|
697
|
+
svg: I,
|
|
698
|
+
title: u(() => N.value.style.chart.title),
|
|
699
|
+
legend: Hn,
|
|
700
|
+
legendItems: G,
|
|
701
|
+
backgroundColor: Vn
|
|
702
|
+
});
|
|
703
|
+
async function Gn({ isCb: e }) {
|
|
704
|
+
Ut.value = !0, await Be();
|
|
705
|
+
try {
|
|
706
|
+
if (e) {
|
|
707
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Wn();
|
|
708
|
+
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
709
|
+
blob: e,
|
|
710
|
+
url: t,
|
|
711
|
+
text: n,
|
|
712
|
+
dataUrl: r
|
|
713
|
+
}));
|
|
714
|
+
} else await Promise.resolve(Un());
|
|
715
|
+
} finally {
|
|
716
|
+
Ut.value = !1;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
function Kn(e) {
|
|
720
|
+
if (e?.stage === "start") {
|
|
721
|
+
Ht.value = !0;
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
if (e?.stage === "end") {
|
|
725
|
+
Ht.value = !1;
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
cn();
|
|
729
|
+
}
|
|
730
|
+
async function qn() {
|
|
731
|
+
if (An("copyAlt", {
|
|
732
|
+
config: N.value,
|
|
733
|
+
dataset: Y.value
|
|
734
|
+
}), !N.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(N.value.userOptions.callbacks.altCopy({
|
|
739
|
+
config: N.value,
|
|
740
|
+
dataset: Y.value
|
|
741
|
+
}));
|
|
742
|
+
}
|
|
743
|
+
function Jn(e) {
|
|
744
|
+
let t = X.value.length;
|
|
745
|
+
return t ? (e % t + t) % t : null;
|
|
746
|
+
}
|
|
747
|
+
function Yn() {
|
|
748
|
+
if (A.value !== null) {
|
|
749
|
+
let e = X.value[A.value];
|
|
750
|
+
e && Q({
|
|
751
|
+
shape: e.shape,
|
|
752
|
+
serie: e.serie,
|
|
753
|
+
S: e.S
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
A.value = null, Kt.value = "pointer", Z.value = null, Cn.value = !1;
|
|
757
|
+
}
|
|
758
|
+
function Xn() {
|
|
759
|
+
A.value = null, qt.value = !0;
|
|
760
|
+
}
|
|
761
|
+
function Zn() {
|
|
762
|
+
Yn(), qt.value = !1;
|
|
763
|
+
}
|
|
764
|
+
function Qn(e) {
|
|
765
|
+
if (!I.value || Fn.value || document.activeElement !== I.value || !X.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
|
+
Yn();
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
if (r) {
|
|
773
|
+
if (A.value === null) return;
|
|
774
|
+
let e = X.value[A.value];
|
|
775
|
+
if (!e) return;
|
|
776
|
+
jn({
|
|
777
|
+
serie: e.serie,
|
|
778
|
+
shape: e.shape,
|
|
779
|
+
S: e.S
|
|
780
|
+
});
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
let a = A.value;
|
|
784
|
+
a = a === null ? n ? 0 : X.value.length - 1 : Jn(a + (n ? 1 : -1));
|
|
785
|
+
let o = X.value[a];
|
|
786
|
+
o && (A.value = a, En({
|
|
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 $n = u(() => ({
|
|
797
|
+
head: $.value.head,
|
|
798
|
+
body: $.value.body.map((e) => [
|
|
799
|
+
e[0] ?? "",
|
|
800
|
+
e[1] ?? "",
|
|
801
|
+
...e.slice(2)
|
|
802
|
+
]),
|
|
803
|
+
caption: N.value.a11y.translations.tableCaption,
|
|
804
|
+
notice: N.value.a11y.translations.tableAvailable
|
|
805
|
+
}));
|
|
806
|
+
return Ee({
|
|
807
|
+
getData: Dn,
|
|
808
|
+
getImage: Ln,
|
|
809
|
+
generateCsv: kn,
|
|
810
|
+
generatePdf: sn,
|
|
811
|
+
generateImage: cn,
|
|
812
|
+
generateSvg: Gn,
|
|
813
|
+
hideSeries: vn,
|
|
814
|
+
showSeries: _n,
|
|
815
|
+
toggleTable: Mn,
|
|
816
|
+
toggleLabels: Nn,
|
|
817
|
+
toggleTooltip: Pn,
|
|
818
|
+
toggleAnnotator: In,
|
|
819
|
+
toggleFullscreen: Jt,
|
|
820
|
+
copyAlt: qn
|
|
821
|
+
}), (e, t) => (b(), p("div", {
|
|
822
|
+
ref_key: "pcpChart",
|
|
823
|
+
ref: O,
|
|
824
|
+
class: _(`vue-data-ui-component vue-ui-pcp ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
825
|
+
style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height:100%" : ""}`),
|
|
826
|
+
id: `pcp_${j.value}`,
|
|
827
|
+
onMouseenter: t[2] ||= () => T($t)(!0),
|
|
828
|
+
onMouseleave: t[3] ||= () => T($t)(!1)
|
|
829
|
+
}, [
|
|
830
|
+
m("div", {
|
|
831
|
+
id: `chart-instructions-${j.value}`,
|
|
832
|
+
class: "sr-only"
|
|
833
|
+
}, [m("p", null, w(N.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
834
|
+
$n.value.body.length ? (b(), d(Ae, {
|
|
835
|
+
key: 0,
|
|
836
|
+
uid: j.value,
|
|
837
|
+
head: $n.value.head,
|
|
838
|
+
body: $n.value.body,
|
|
839
|
+
caption: $n.value.caption,
|
|
840
|
+
notice: $n.value.notice
|
|
841
|
+
}, null, 8, [
|
|
842
|
+
"uid",
|
|
843
|
+
"head",
|
|
844
|
+
"body",
|
|
845
|
+
"caption",
|
|
846
|
+
"notice"
|
|
847
|
+
])) : f("", !0),
|
|
848
|
+
N.value.userOptions.buttons.annotator ? (b(), d(T(wt), {
|
|
849
|
+
key: 1,
|
|
850
|
+
svgRef: T(I),
|
|
851
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
852
|
+
color: N.value.style.chart.color,
|
|
853
|
+
active: Fn.value,
|
|
854
|
+
isCursorPointer: P.value,
|
|
855
|
+
onClose: In
|
|
856
|
+
}, {
|
|
857
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
858
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
859
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
860
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
861
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
862
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
863
|
+
_: 3
|
|
864
|
+
}, 8, [
|
|
865
|
+
"svgRef",
|
|
866
|
+
"backgroundColor",
|
|
867
|
+
"color",
|
|
868
|
+
"active",
|
|
869
|
+
"isCursorPointer"
|
|
870
|
+
])) : f("", !0),
|
|
871
|
+
ln.value ? (b(), p("div", {
|
|
872
|
+
key: 2,
|
|
873
|
+
ref_key: "noTitle",
|
|
874
|
+
ref: It,
|
|
875
|
+
class: "vue-data-ui-no-title-space",
|
|
876
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
877
|
+
}, null, 512)) : f("", !0),
|
|
878
|
+
N.value.style.chart.title.text ? (b(), p("div", {
|
|
879
|
+
key: 3,
|
|
880
|
+
ref_key: "chartTitle",
|
|
881
|
+
ref: Nt,
|
|
882
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
883
|
+
}, [(b(), d(we, {
|
|
884
|
+
key: `title_${Lt.value}`,
|
|
885
|
+
config: {
|
|
886
|
+
title: {
|
|
887
|
+
cy: "pcp-div-title",
|
|
888
|
+
...N.value.style.chart.title
|
|
889
|
+
},
|
|
890
|
+
subtitle: {
|
|
891
|
+
cy: "pcp-div-subtitle",
|
|
892
|
+
...N.value.style.chart.title.subtitle
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
896
|
+
m("div", { id: `legend-top-${j.value}` }, null, 8, Ze),
|
|
897
|
+
N.value.userOptions.show && jt.value && (T(en) || T(Qt)) ? (b(), d(T(Tt), {
|
|
898
|
+
ref_key: "userOptionsRef",
|
|
899
|
+
ref: Vt,
|
|
900
|
+
key: `user_options_${Mt.value}`,
|
|
901
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
902
|
+
color: N.value.style.chart.color,
|
|
903
|
+
isPrinting: T(an),
|
|
904
|
+
isImaging: T(on),
|
|
905
|
+
uid: j.value,
|
|
906
|
+
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
907
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
908
|
+
hasXls: N.value.userOptions.buttons.csv,
|
|
909
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
910
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
911
|
+
hasTable: N.value.userOptions.buttons.table,
|
|
912
|
+
hasLabel: N.value.userOptions.buttons.labels,
|
|
913
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
914
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
915
|
+
isFullscreen: M.value,
|
|
916
|
+
isTooltip: H.value.showTooltip,
|
|
917
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
918
|
+
chartElement: O.value,
|
|
919
|
+
position: N.value.userOptions.position,
|
|
920
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
921
|
+
isAnnotation: Fn.value,
|
|
922
|
+
callbacks: N.value.userOptions.callbacks,
|
|
923
|
+
printScale: N.value.userOptions.print.scale,
|
|
924
|
+
tableDialog: N.value.table.useDialog,
|
|
925
|
+
isCursorPointer: P.value,
|
|
926
|
+
onToggleFullscreen: Jt,
|
|
927
|
+
onGeneratePdf: T(sn),
|
|
928
|
+
onGenerateCsv: kn,
|
|
929
|
+
onGenerateImage: Kn,
|
|
930
|
+
onGenerateSvg: Gn,
|
|
931
|
+
onToggleTable: Mn,
|
|
932
|
+
onToggleLabels: Nn,
|
|
933
|
+
onToggleTooltip: Pn,
|
|
934
|
+
onToggleAnnotator: In,
|
|
935
|
+
onCopyAlt: qn,
|
|
936
|
+
style: y({ visibility: T(en) ? T(Qt) ? "visible" : "hidden" : "visible" })
|
|
937
|
+
}, Ie({ _: 2 }, [
|
|
938
|
+
e.$slots.menuIcon ? {
|
|
939
|
+
name: "menuIcon",
|
|
940
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
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: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
949
|
+
key: "1"
|
|
950
|
+
} : void 0,
|
|
951
|
+
e.$slots.optionPdf ? {
|
|
952
|
+
name: "optionPdf",
|
|
953
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
954
|
+
key: "2"
|
|
955
|
+
} : void 0,
|
|
956
|
+
e.$slots.optionCsv ? {
|
|
957
|
+
name: "optionCsv",
|
|
958
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
959
|
+
key: "3"
|
|
960
|
+
} : void 0,
|
|
961
|
+
e.$slots.optionImg ? {
|
|
962
|
+
name: "optionImg",
|
|
963
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
964
|
+
key: "4"
|
|
965
|
+
} : void 0,
|
|
966
|
+
e.$slots.optionSvg ? {
|
|
967
|
+
name: "optionSvg",
|
|
968
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
969
|
+
key: "5"
|
|
970
|
+
} : void 0,
|
|
971
|
+
e.$slots.optionTable ? {
|
|
972
|
+
name: "optionTable",
|
|
973
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
974
|
+
key: "6"
|
|
975
|
+
} : void 0,
|
|
976
|
+
e.$slots.optionLabels ? {
|
|
977
|
+
name: "optionLabels",
|
|
978
|
+
fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
979
|
+
key: "7"
|
|
980
|
+
} : void 0,
|
|
981
|
+
e.$slots.optionFullscreen ? {
|
|
982
|
+
name: "optionFullscreen",
|
|
983
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
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: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
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: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
1000
|
+
key: "10"
|
|
1001
|
+
} : void 0,
|
|
1002
|
+
e.$slots["custom-menu-before"] ? {
|
|
1003
|
+
name: "custom-menu-before",
|
|
1004
|
+
fn: E(() => [C(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: E(() => [C(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("."))) : f("", !0),
|
|
1013
|
+
m("div", Qe, [(b(), p("svg", {
|
|
1014
|
+
ref_key: "svgRef",
|
|
1015
|
+
ref: I,
|
|
1016
|
+
xmlns: T(fe),
|
|
1017
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1018
|
+
class: _({
|
|
1019
|
+
"vue-data-ui-fullscreen--on": M.value,
|
|
1020
|
+
"vue-data-ui-fulscreen--off": !M.value
|
|
1021
|
+
}),
|
|
1022
|
+
viewBox: `0 0 ${V.value.chartWidth <= 0 ? 10 : V.value.chartWidth} ${V.value.chartHeight <= 0 ? 10 : V.value.chartHeight}`,
|
|
1023
|
+
style: y(`max-width:100%; overflow: visible; background:transparent;color:${N.value.style.chart.color}`),
|
|
1024
|
+
tabindex: "0",
|
|
1025
|
+
onFocus: Xn,
|
|
1026
|
+
onBlur: Zn,
|
|
1027
|
+
onKeydown: Qn
|
|
1028
|
+
}, [
|
|
1029
|
+
Re(T(Et)),
|
|
1030
|
+
e.$slots["chart-background"] ? (b(), p("foreignObject", {
|
|
1031
|
+
key: 0,
|
|
1032
|
+
x: V.value.left,
|
|
1033
|
+
y: V.value.top,
|
|
1034
|
+
width: V.value.width,
|
|
1035
|
+
height: V.value.height,
|
|
1036
|
+
style: { pointerEvents: "none" }
|
|
1037
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : f("", !0),
|
|
1038
|
+
(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("g", tt, [m("line", {
|
|
1039
|
+
x1: V.value.left + K.value * t + K.value / 2,
|
|
1040
|
+
x2: V.value.left + K.value * t + K.value / 2,
|
|
1041
|
+
y1: V.value.top,
|
|
1042
|
+
y2: V.value.bottom,
|
|
1043
|
+
stroke: N.value.style.chart.yAxis.stroke,
|
|
1044
|
+
"stroke-width": N.value.style.chart.yAxis.strokeWidth
|
|
1045
|
+
}, null, 8, nt), N.value.style.chart.yAxis.labels.ticks.show ? (b(), p(l, { key: 0 }, [(b(!0), p(l, null, S(e.ticks, (e) => (b(), p("line", {
|
|
1046
|
+
x1: e.x,
|
|
1047
|
+
x2: e.x - 10,
|
|
1048
|
+
y1: e.y,
|
|
1049
|
+
y2: e.y,
|
|
1050
|
+
stroke: N.value.style.chart.yAxis.stroke,
|
|
1051
|
+
"stroke-width": N.value.style.chart.yAxis.strokeWidth,
|
|
1052
|
+
style: y(`opacity:${Z.value && !H.value.showTooltip ? .2 : 1}`)
|
|
1053
|
+
}, null, 12, rt))), 256)), T(F) ? f("", !0) : (b(), p("g", it, [(b(!0), p(l, null, S(e.ticks, (e) => (b(), p("text", {
|
|
1054
|
+
x: e.x - 12 + N.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
1055
|
+
y: e.y + N.value.style.chart.yAxis.labels.ticks.offsetY + z.value.ticksFontSize / 3,
|
|
1056
|
+
fill: N.value.style.chart.yAxis.labels.ticks.color,
|
|
1057
|
+
"text-anchor": "end",
|
|
1058
|
+
"font-size": z.value.ticksFontSize,
|
|
1059
|
+
"font-weight": N.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
1060
|
+
style: y(`opacity:${Z.value && !H.value.showTooltip ? .2 : 1}`)
|
|
1061
|
+
}, w(xn({
|
|
1062
|
+
value: e.value,
|
|
1063
|
+
index: t,
|
|
1064
|
+
datapoint: e
|
|
1065
|
+
})), 13, at))), 256))]))], 64)) : f("", !0)]))), 256)),
|
|
1066
|
+
N.value.style.chart.yAxis.labels.showAxisNames ? (b(), p("g", {
|
|
1067
|
+
key: 1,
|
|
1068
|
+
ref_key: "xAxisLabels",
|
|
1069
|
+
ref: Wt
|
|
1070
|
+
}, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p(l, null, [String(e.name).includes("\n") ? (b(), p("text", {
|
|
1071
|
+
key: 1,
|
|
1072
|
+
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
1073
|
+
fill: N.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1074
|
+
"font-size": z.value.axisNameFontSize,
|
|
1075
|
+
"font-weight": N.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
1076
|
+
"text-anchor": N.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : N.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
1077
|
+
transform: `translate(${V.value.left + K.value * t + K.value / 2}, ${B.value - z.value.axisNameFontSize}), rotate(${N.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
1078
|
+
innerHTML: T(te)({
|
|
1079
|
+
content: String(e.name),
|
|
1080
|
+
fontSize: z.value.axisNameFontSize,
|
|
1081
|
+
fill: N.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1082
|
+
x: 0,
|
|
1083
|
+
y: 0
|
|
1084
|
+
})
|
|
1085
|
+
}, null, 8, st)) : (b(), p("text", {
|
|
1086
|
+
key: 0,
|
|
1087
|
+
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
1088
|
+
fill: N.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1089
|
+
"font-size": z.value.axisNameFontSize,
|
|
1090
|
+
"font-weight": N.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
1091
|
+
"text-anchor": N.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : N.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
1092
|
+
transform: `translate(${V.value.left + K.value * t + K.value / 2}, ${B.value - z.value.axisNameFontSize}), rotate(${N.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
1093
|
+
}, w(e.name), 9, ot))], 64))), 256))], 512)) : f("", !0),
|
|
1094
|
+
(b(!0), p(l, null, S(Y.value, (t, n) => (b(), p("g", null, [(b(!0), p(l, null, S(t.series, (r, i) => (b(), p("g", null, [
|
|
1095
|
+
N.value.style.chart.plots.show ? (b(), p("g", ct, [
|
|
1096
|
+
(b(!0), p(l, null, S(r.datapoints, (e, a) => (b(), d(Te, {
|
|
1097
|
+
plot: {
|
|
1098
|
+
x: e.x,
|
|
1099
|
+
y: e.y
|
|
1100
|
+
},
|
|
1101
|
+
color: t.color,
|
|
1102
|
+
shape: t.shape,
|
|
1103
|
+
radius: t.shape === "triangle" ? z.value.plotSize * 1.2 : z.value.plotSize,
|
|
1104
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
1105
|
+
strokeWidth: .5,
|
|
1106
|
+
onMouseenter: (e) => En({
|
|
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) => Q({
|
|
1116
|
+
serie: r,
|
|
1117
|
+
shape: t.shape,
|
|
1118
|
+
S: n
|
|
1119
|
+
}),
|
|
1120
|
+
style: y(`opacity:${Z.value ? Z.value === r.id ? N.value.style.chart.plots.opacity : .2 : N.value.style.chart.plots.opacity}`),
|
|
1121
|
+
onClick: () => jn({
|
|
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
|
+
H.value.showTooltip ? f("", !0) : (b(), p(l, { key: 0 }, [Z.value && Z.value === r.id && r.datapoints.length ? (b(), p("text", {
|
|
1138
|
+
key: 0,
|
|
1139
|
+
x: r.datapoints[0].x - z.value.ticksFontSize,
|
|
1140
|
+
y: r.datapoints[0].y + z.value.ticksFontSize / 3,
|
|
1141
|
+
"text-anchor": "end",
|
|
1142
|
+
"font-size": z.value.ticksFontSize,
|
|
1143
|
+
fill: t.color,
|
|
1144
|
+
"font-weight": "bold"
|
|
1145
|
+
}, w(r.name), 9, lt)) : f("", !0)], 64)),
|
|
1146
|
+
N.value.style.chart.comments.show ? (b(!0), p(l, { key: 1 }, S(r.datapoints, (n) => (b(), p("g", null, [n.comment ? (b(), p("foreignObject", {
|
|
1147
|
+
key: 0,
|
|
1148
|
+
style: { overflow: "visible" },
|
|
1149
|
+
height: "12",
|
|
1150
|
+
width: N.value.style.chart.comments.width,
|
|
1151
|
+
x: n.x - N.value.style.chart.comments.width / 2 + N.value.style.chart.comments.offsetX,
|
|
1152
|
+
y: n.y + N.value.style.chart.comments.offsetY + 6
|
|
1153
|
+
}, [m("div", dt, [C(e.$slots, "plot-comment", { plot: {
|
|
1154
|
+
...n,
|
|
1155
|
+
color: t.color
|
|
1156
|
+
} }, void 0, !0)])], 8, ut)) : f("", !0)]))), 256)) : f("", !0)
|
|
1157
|
+
])) : f("", !0),
|
|
1158
|
+
!T(F) && (H.value.dataLabels.show || Z.value && Z.value === r.id) ? (b(!0), p(l, { key: 1 }, S(r.datapoints, (e, a) => (b(), p("text", {
|
|
1159
|
+
x: e.x + 12 + N.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
1160
|
+
y: e.y + N.value.style.chart.yAxis.labels.datapoints.offsetY + z.value.datapointFontSize / 3,
|
|
1161
|
+
fill: N.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : N.value.style.chart.yAxis.labels.datapoints.color,
|
|
1162
|
+
"text-anchor": "start",
|
|
1163
|
+
"font-weight": N.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
1164
|
+
class: _({
|
|
1165
|
+
"vue-ui-pcp-animated": !1,
|
|
1166
|
+
"vue-ui-pcp-transition": !T(F)
|
|
1167
|
+
}),
|
|
1168
|
+
"font-size": z.value.datapointFontSize,
|
|
1169
|
+
onMouseenter: (e) => En({
|
|
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) => Q({
|
|
1179
|
+
serie: r,
|
|
1180
|
+
shape: t.shape,
|
|
1181
|
+
S: n
|
|
1182
|
+
}),
|
|
1183
|
+
onClick: () => jn({
|
|
1184
|
+
serie: r,
|
|
1185
|
+
shape: t.shape,
|
|
1186
|
+
S: n
|
|
1187
|
+
}),
|
|
1188
|
+
style: y(`opacity:${Z.value ? Z.value === r.id ? 1 : .2 : 1}`)
|
|
1189
|
+
}, w(xn({
|
|
1190
|
+
value: e.value,
|
|
1191
|
+
index: a,
|
|
1192
|
+
datapoint: e
|
|
1193
|
+
})), 47, ft))), 256)) : f("", !0),
|
|
1194
|
+
m("path", {
|
|
1195
|
+
d: `M${N.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
|
|
1196
|
+
stroke: t.color,
|
|
1197
|
+
"stroke-width": N.value.style.chart.lines.strokeWidth,
|
|
1198
|
+
fill: "none",
|
|
1199
|
+
class: _({
|
|
1200
|
+
"vue-ui-pcp-animated vue-data-ui-line-animated": N.value.useCssAnimation,
|
|
1201
|
+
"vue-ui-pcp-transition": !T(F)
|
|
1202
|
+
}),
|
|
1203
|
+
onMouseenter: (e) => En({
|
|
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) => Q({
|
|
1213
|
+
serie: r,
|
|
1214
|
+
shape: t.shape,
|
|
1215
|
+
S: n
|
|
1216
|
+
}),
|
|
1217
|
+
onClick: () => jn({
|
|
1218
|
+
serie: r,
|
|
1219
|
+
shape: t.shape,
|
|
1220
|
+
S: n
|
|
1221
|
+
}),
|
|
1222
|
+
style: y(`opacity:${Z.value ? Z.value === r.id ? N.value.style.chart.lines.opacity : .2 : N.value.style.chart.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${N.value.useCssAnimation ? r.pathLength : 0}`)
|
|
1223
|
+
}, null, 46, pt),
|
|
1224
|
+
H.value.showTooltip ? (b(), p("path", {
|
|
1225
|
+
key: 2,
|
|
1226
|
+
d: `M${N.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
|
|
1227
|
+
stroke: "transparent",
|
|
1228
|
+
"stroke-width": 12,
|
|
1229
|
+
fill: "none",
|
|
1230
|
+
class: _({
|
|
1231
|
+
"vue-ui-pcp-animated vue-data-ui-line-animated": N.value.useCssAnimation,
|
|
1232
|
+
"vue-ui-pcp-transition": !T(F)
|
|
1233
|
+
}),
|
|
1234
|
+
onMouseenter: (e) => En({
|
|
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) => Q({
|
|
1244
|
+
serie: r,
|
|
1245
|
+
shape: t.shape,
|
|
1246
|
+
S: n
|
|
1247
|
+
}),
|
|
1248
|
+
onClick: () => jn({
|
|
1249
|
+
serie: r,
|
|
1250
|
+
shape: t.shape,
|
|
1251
|
+
S: n
|
|
1252
|
+
}),
|
|
1253
|
+
style: { opacity: "0" }
|
|
1254
|
+
}, null, 42, mt)) : f("", !0)
|
|
1255
|
+
]))), 256))]))), 256)),
|
|
1256
|
+
C(e.$slots, "svg", { svg: {
|
|
1257
|
+
...V.value,
|
|
1258
|
+
isPrintingImg: T(an) || T(on) || Ht.value,
|
|
1259
|
+
isPrintingSvg: Ut.value
|
|
1260
|
+
} }, void 0, !0)
|
|
1261
|
+
], 46, $e)), e.$slots.hint ? (b(), p("div", ht, [C(e.$slots, "hint", v(g({
|
|
1262
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1263
|
+
isVisible: qt.value
|
|
1264
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
1265
|
+
e.$slots.watermark ? (b(), p("div", gt, [C(e.$slots, "watermark", v(g({ isPrinting: T(an) || T(on) || Ht.value || Ut.value })), void 0, !0)])) : f("", !0),
|
|
1266
|
+
m("div", { id: `legend-bottom-${j.value}` }, null, 8, _t),
|
|
1267
|
+
Bt.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Fe, {
|
|
1268
|
+
key: 6,
|
|
1269
|
+
to: N.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
1270
|
+
}, [m("div", {
|
|
1271
|
+
ref_key: "chartLegend",
|
|
1272
|
+
ref: Pt
|
|
1273
|
+
}, [C(e.$slots, "legend", { legend: G.value }, () => [N.value.style.chart.legend.show && jt.value ? (b(), d(Ne, {
|
|
1274
|
+
key: `legend_${Rt.value}`,
|
|
1275
|
+
legendSet: G.value,
|
|
1276
|
+
config: yn.value,
|
|
1277
|
+
isCursorPointer: P.value,
|
|
1278
|
+
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1279
|
+
hn(e.id);
|
|
1280
|
+
}
|
|
1281
|
+
}, {
|
|
1282
|
+
item: E(({ legend: e, index: t }) => [m("div", {
|
|
1283
|
+
onClick: (t) => e.segregate(),
|
|
1284
|
+
style: y(`opacity:${U.value.includes(e.id) ? .5 : 1}`)
|
|
1285
|
+
}, w(e.name), 13, vt)]),
|
|
1286
|
+
legendToggle: E(() => [G.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(F) ? (b(), d(ke, {
|
|
1287
|
+
key: 0,
|
|
1288
|
+
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1289
|
+
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1290
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
1291
|
+
checked: U.value.length > 0,
|
|
1292
|
+
isCursorPointer: P.value,
|
|
1293
|
+
onToggle: mn
|
|
1294
|
+
}, null, 8, [
|
|
1295
|
+
"backgroundColor",
|
|
1296
|
+
"color",
|
|
1297
|
+
"fontSize",
|
|
1298
|
+
"checked",
|
|
1299
|
+
"isCursorPointer"
|
|
1300
|
+
])) : f("", !0)]),
|
|
1301
|
+
_: 1
|
|
1302
|
+
}, 8, [
|
|
1303
|
+
"legendSet",
|
|
1304
|
+
"config",
|
|
1305
|
+
"isCursorPointer"
|
|
1306
|
+
])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
1307
|
+
e.$slots.source ? (b(), p("div", {
|
|
1308
|
+
key: 7,
|
|
1309
|
+
ref_key: "source",
|
|
1310
|
+
ref: Ft,
|
|
1311
|
+
dir: "auto"
|
|
1312
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1313
|
+
Re(T(bt), {
|
|
1314
|
+
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1315
|
+
show: H.value.showTooltip && Cn.value,
|
|
1316
|
+
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1317
|
+
color: N.value.style.chart.tooltip.color,
|
|
1318
|
+
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
1319
|
+
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
1320
|
+
borderColor: N.value.style.chart.tooltip.borderColor,
|
|
1321
|
+
borderWidth: N.value.style.chart.tooltip.borderWidth,
|
|
1322
|
+
backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
|
|
1323
|
+
position: N.value.style.chart.tooltip.position,
|
|
1324
|
+
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
1325
|
+
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1326
|
+
parent: O.value,
|
|
1327
|
+
content: wn.value,
|
|
1328
|
+
isFullscreen: M.value,
|
|
1329
|
+
isCustom: T(pe)(N.value.style.chart.tooltip.customFormat),
|
|
1330
|
+
smooth: N.value.style.chart.tooltip.smooth,
|
|
1331
|
+
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1332
|
+
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1333
|
+
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1334
|
+
isA11yMode: Kt.value === "keyboard",
|
|
1335
|
+
a11yPosition: Gt.value
|
|
1336
|
+
}, {
|
|
1337
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...Sn.value })), void 0, !0)]),
|
|
1338
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...Sn.value })), void 0, !0)]),
|
|
1339
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...Sn.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
|
+
jt.value && N.value.userOptions.buttons.table ? (b(), d(Ue(zn.value.component), ze({ key: 8 }, zn.value.props, {
|
|
1366
|
+
ref_key: "tableUnit",
|
|
1367
|
+
ref: k,
|
|
1368
|
+
onClose: Bn
|
|
1369
|
+
}), Ie({
|
|
1370
|
+
content: E(() => [(b(), d(T(Ct), {
|
|
1371
|
+
key: `table_${zt.value}`,
|
|
1372
|
+
colNames: $.value.colNames,
|
|
1373
|
+
head: $.value.head,
|
|
1374
|
+
body: $.value.body,
|
|
1375
|
+
config: $.value.config,
|
|
1376
|
+
title: N.value.table.useDialog ? "" : zn.value.title,
|
|
1377
|
+
withCloseButton: !N.value.table.useDialog,
|
|
1378
|
+
isCursorPointer: P.value,
|
|
1379
|
+
onClose: Bn
|
|
1380
|
+
}, {
|
|
1381
|
+
th: E(({ th: e }) => [m("div", { innerHTML: e }, null, 8, yt)]),
|
|
1382
|
+
td: E(({ td: e }) => [Le(w(e), 1)]),
|
|
1383
|
+
_: 1
|
|
1384
|
+
}, 8, [
|
|
1385
|
+
"colNames",
|
|
1386
|
+
"head",
|
|
1387
|
+
"body",
|
|
1388
|
+
"config",
|
|
1389
|
+
"title",
|
|
1390
|
+
"withCloseButton",
|
|
1391
|
+
"isCursorPointer"
|
|
1392
|
+
]))]),
|
|
1393
|
+
_: 2
|
|
1394
|
+
}, [N.value.table.useDialog ? {
|
|
1395
|
+
name: "title",
|
|
1396
|
+
fn: E(() => [Le(w(zn.value.title), 1)]),
|
|
1397
|
+
key: "0"
|
|
1398
|
+
} : void 0, N.value.table.useDialog ? {
|
|
1399
|
+
name: "actions",
|
|
1400
|
+
fn: E(() => [m("button", {
|
|
1401
|
+
tabindex: "0",
|
|
1402
|
+
class: "vue-ui-user-options-button",
|
|
1403
|
+
onClick: t[1] ||= (e) => kn(N.value.userOptions.callbacks.csv),
|
|
1404
|
+
style: y({ cursor: P.value ? "pointer" : "default" })
|
|
1405
|
+
}, [Re(T(xt), {
|
|
1406
|
+
name: "fileCsv",
|
|
1407
|
+
stroke: zn.value.props.color
|
|
1408
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1409
|
+
key: "1"
|
|
1410
|
+
} : void 0]), 1040)) : f("", !0),
|
|
1411
|
+
C(e.$slots, "skeleton", {}, () => [T(F) ? (b(), d(ve, { key: 0 })) : f("", !0)], !0)
|
|
1412
|
+
], 46, Ye));
|
|
1413
|
+
}
|
|
1414
|
+
}, [["__scopeId", "data-v-a7286565"]]);
|
|
1415
|
+
//#endregion
|
|
1416
|
+
export { Je as n, bt as t };
|