vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as me } from "./
|
|
4
|
-
import { t as he } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as ve } from "./
|
|
7
|
-
import { t as ye } from "./
|
|
8
|
-
import { t as be } from "./
|
|
9
|
-
import { t as xe } from "./
|
|
10
|
-
import { t as Se } from "./
|
|
11
|
-
import { t as Ce } from "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as Ee } from "./
|
|
15
|
-
import {
|
|
16
|
-
import { t as ke } from "./
|
|
17
|
-
import { t as Ae } from "./
|
|
18
|
-
import { t as je } from "./
|
|
19
|
-
import { t as Me } from "./
|
|
20
|
-
import { t as Ne } from "./
|
|
21
|
-
import {
|
|
2
|
+
import { $ as t, D as n, G as r, Jt as i, Kt as a, Ot as o, Pt as s, S as c, X as l, Y as u, Zt as ee, _ as te, b as ne, ct as re, i as ie, jt as ae, pt as oe, q as se, qt as ce, t as le, tt as ue, w as de, x as d, xt as fe } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as he } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as ge } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ye } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as be } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Se } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as we } from "./img-DIQG5q8T.js";
|
|
13
|
+
import { n as Te } from "./Title-BODtwViI.js";
|
|
14
|
+
import { t as Ee } from "./Shape-BPMV94Ij.js";
|
|
15
|
+
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as Ae } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
+
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Pe } from "./vue_ui_strip_plot-BaHbnnwN.js";
|
|
22
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ve, onMounted as He, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as E, toRefs as Ge, unref as D, watch as Ke, watchEffect as qe, withCtx as O } from "vue";
|
|
22
23
|
//#region src/components/vue-ui-strip-plot.vue
|
|
23
|
-
var
|
|
24
|
+
var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
|
|
24
25
|
"xmlns",
|
|
25
26
|
"viewBox",
|
|
26
27
|
"aria-describedby"
|
|
27
|
-
],
|
|
28
|
+
], $e = [
|
|
28
29
|
"x",
|
|
29
30
|
"y",
|
|
30
31
|
"width",
|
|
31
32
|
"height"
|
|
32
|
-
],
|
|
33
|
+
], et = { key: 1 }, tt = { key: 0 }, nt = [
|
|
33
34
|
"x1",
|
|
34
35
|
"x2",
|
|
35
36
|
"y1",
|
|
@@ -37,7 +38,7 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
37
38
|
"stroke",
|
|
38
39
|
"stroke-width",
|
|
39
40
|
"stroke-dasharray"
|
|
40
|
-
],
|
|
41
|
+
], rt = { key: 1 }, it = [
|
|
41
42
|
"x1",
|
|
42
43
|
"x2",
|
|
43
44
|
"y1",
|
|
@@ -45,59 +46,59 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
45
46
|
"stroke",
|
|
46
47
|
"stroke-width",
|
|
47
48
|
"stroke-dasharray"
|
|
48
|
-
],
|
|
49
|
+
], at = [
|
|
49
50
|
"x1",
|
|
50
51
|
"x2",
|
|
51
52
|
"y1",
|
|
52
53
|
"y2",
|
|
53
54
|
"stroke",
|
|
54
55
|
"stroke-width"
|
|
55
|
-
],
|
|
56
|
+
], ot = [
|
|
56
57
|
"x1",
|
|
57
58
|
"x2",
|
|
58
59
|
"y1",
|
|
59
60
|
"y2",
|
|
60
61
|
"stroke",
|
|
61
62
|
"stroke-width"
|
|
62
|
-
],
|
|
63
|
+
], st = [
|
|
63
64
|
"transform",
|
|
64
65
|
"fill",
|
|
65
66
|
"font-size"
|
|
66
|
-
],
|
|
67
|
+
], ct = [
|
|
67
68
|
"transform",
|
|
68
69
|
"font-size",
|
|
69
70
|
"fill",
|
|
70
71
|
"text-anchor"
|
|
71
|
-
],
|
|
72
|
+
], lt = [
|
|
72
73
|
"transform",
|
|
73
74
|
"font-size",
|
|
74
75
|
"fill",
|
|
75
76
|
"text-anchor",
|
|
76
77
|
"innerHTML"
|
|
77
|
-
],
|
|
78
|
+
], ut = [
|
|
78
79
|
"fill",
|
|
79
80
|
"font-size",
|
|
80
81
|
"transform"
|
|
81
|
-
],
|
|
82
|
+
], dt = [
|
|
82
83
|
"fill",
|
|
83
84
|
"font-size",
|
|
84
85
|
"x",
|
|
85
86
|
"y"
|
|
86
|
-
],
|
|
87
|
+
], ft = [
|
|
87
88
|
"x1",
|
|
88
89
|
"x2",
|
|
89
90
|
"y1",
|
|
90
91
|
"y2",
|
|
91
92
|
"stroke"
|
|
92
|
-
],
|
|
93
|
+
], pt = [
|
|
93
94
|
"cx",
|
|
94
95
|
"cy",
|
|
95
96
|
"fill"
|
|
96
|
-
],
|
|
97
|
+
], mt = [
|
|
97
98
|
"cx",
|
|
98
99
|
"cy",
|
|
99
100
|
"fill"
|
|
100
|
-
],
|
|
101
|
+
], ht = [
|
|
101
102
|
"d",
|
|
102
103
|
"fill",
|
|
103
104
|
"stroke",
|
|
@@ -105,7 +106,7 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
105
106
|
"stroke-opacity",
|
|
106
107
|
"stroke-width",
|
|
107
108
|
"onMouseenter"
|
|
108
|
-
],
|
|
109
|
+
], gt = [
|
|
109
110
|
"x1",
|
|
110
111
|
"x2",
|
|
111
112
|
"y1",
|
|
@@ -113,14 +114,14 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
113
114
|
"stroke",
|
|
114
115
|
"stroke-opacity",
|
|
115
116
|
"stroke-width"
|
|
116
|
-
],
|
|
117
|
+
], _t = ["onMouseenter"], vt = [
|
|
117
118
|
"x1",
|
|
118
119
|
"x2",
|
|
119
120
|
"y1",
|
|
120
121
|
"y2",
|
|
121
122
|
"stroke",
|
|
122
123
|
"stroke-width"
|
|
123
|
-
],
|
|
124
|
+
], yt = [
|
|
124
125
|
"x",
|
|
125
126
|
"y",
|
|
126
127
|
"width",
|
|
@@ -129,18 +130,18 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
129
130
|
"stroke",
|
|
130
131
|
"stroke-width",
|
|
131
132
|
"rx"
|
|
132
|
-
],
|
|
133
|
+
], bt = [
|
|
133
134
|
"cx",
|
|
134
135
|
"cy",
|
|
135
136
|
"r",
|
|
136
137
|
"fill",
|
|
137
138
|
"stroke"
|
|
138
|
-
],
|
|
139
|
+
], xt = { key: 1 }, St = [
|
|
139
140
|
"x",
|
|
140
141
|
"y",
|
|
141
142
|
"font-size",
|
|
142
143
|
"fill"
|
|
143
|
-
],
|
|
144
|
+
], Ct = {
|
|
144
145
|
key: 0,
|
|
145
146
|
style: {
|
|
146
147
|
position: "absolute",
|
|
@@ -150,10 +151,10 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
150
151
|
},
|
|
151
152
|
"data-dom-to-png-ignore": "",
|
|
152
153
|
"aria-hidden": "true"
|
|
153
|
-
},
|
|
154
|
+
}, wt = {
|
|
154
155
|
key: 5,
|
|
155
156
|
class: "vue-data-ui-watermark"
|
|
156
|
-
},
|
|
157
|
+
}, Tt = ["innerHTML"], Et = /*#__PURE__*/ De({
|
|
157
158
|
__name: "vue-ui-strip-plot",
|
|
158
159
|
props: {
|
|
159
160
|
config: {
|
|
@@ -170,22 +171,41 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
170
171
|
}
|
|
171
172
|
},
|
|
172
173
|
emits: ["selectDatapoint", "copyAlt"],
|
|
173
|
-
setup(e, { expose:
|
|
174
|
-
let
|
|
174
|
+
setup(e, { expose: De, emit: Je }) {
|
|
175
|
+
let Et = v(() => import("./Tooltip-CMTGxeYO.js")), Dt = v(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Ot = v(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), kt = v(() => import("./DataTable-D4tM9s5Y.js")), At = v(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), jt = v(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Mt = v(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Nt = v(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), Pt = [
|
|
175
176
|
"classic",
|
|
176
177
|
"scatter",
|
|
177
178
|
"violin"
|
|
178
|
-
], { vue_ui_strip_plot:
|
|
179
|
+
], { vue_ui_strip_plot: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), k = e, Rt = Je, zt = p({
|
|
179
180
|
get() {
|
|
180
|
-
return !!
|
|
181
|
+
return !!k.dataset && k.dataset.length;
|
|
181
182
|
},
|
|
182
183
|
set(e) {
|
|
183
184
|
return e;
|
|
184
185
|
}
|
|
185
|
-
}),
|
|
186
|
+
}), A = C(se()), Bt = C(0), j = C(!1), Vt = C(""), M = C(null), Ht = C(null), Ut = C(null), Wt = C(null), Gt = C(!1), Kt = C(0), qt = C(0), Jt = C(null), Yt = C(null), Xt = C(!1), Zt = C(!1), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = C(null), rn = C(null), N = C("pointer"), an = C({
|
|
186
187
|
x: 0,
|
|
187
188
|
y: 0
|
|
188
|
-
}),
|
|
189
|
+
}), on = C(!1), P = C(gn());
|
|
190
|
+
pe({
|
|
191
|
+
config: () => P.value,
|
|
192
|
+
dataset: () => k.dataset,
|
|
193
|
+
component: "VueUiStripPlot",
|
|
194
|
+
rules: [me.emptyArray, {
|
|
195
|
+
test: (e) => e.length > 12,
|
|
196
|
+
message: [
|
|
197
|
+
"👀 The number of series is > 12. Consider:",
|
|
198
|
+
"",
|
|
199
|
+
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
200
|
+
"",
|
|
201
|
+
"▶️ Using multiple instances of the chart to display related series."
|
|
202
|
+
]
|
|
203
|
+
}]
|
|
204
|
+
});
|
|
205
|
+
let { transitionEnabled: sn } = Se({
|
|
206
|
+
config: () => P.value.transitions,
|
|
207
|
+
dataset: () => k.dataset
|
|
208
|
+
}), cn = p(() => _n(P.value.type)), F = p(() => P.value.userOptions.useCursorPointer), ln = p(() => i({
|
|
189
209
|
defaultConfig: {
|
|
190
210
|
userOptions: { show: !1 },
|
|
191
211
|
table: { show: !1 },
|
|
@@ -215,11 +235,11 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
215
235
|
} }
|
|
216
236
|
},
|
|
217
237
|
userConfig: P.value.skeletonConfig ?? {}
|
|
218
|
-
})), { loading:
|
|
219
|
-
...
|
|
238
|
+
})), { loading: un, FINAL_DATASET: dn, manualLoading: fn } = _e({
|
|
239
|
+
...Ge(k),
|
|
220
240
|
FINAL_CONFIG: P,
|
|
221
|
-
prepareConfig:
|
|
222
|
-
skeletonDataset:
|
|
241
|
+
prepareConfig: gn,
|
|
242
|
+
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
223
243
|
{
|
|
224
244
|
name: "_",
|
|
225
245
|
color: "#DBDBDB",
|
|
@@ -311,130 +331,130 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
311
331
|
]
|
|
312
332
|
}
|
|
313
333
|
],
|
|
314
|
-
skeletonConfig:
|
|
334
|
+
skeletonConfig: i({
|
|
315
335
|
defaultConfig: P.value,
|
|
316
|
-
userConfig:
|
|
336
|
+
userConfig: ln.value
|
|
317
337
|
})
|
|
318
|
-
}), { userOptionsVisible:
|
|
319
|
-
function
|
|
320
|
-
let e =
|
|
321
|
-
userConfig:
|
|
322
|
-
defaultConfig:
|
|
338
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config: P.value }), { svgRef: I } = Ne({ config: P.value.style.chart.title });
|
|
339
|
+
function gn() {
|
|
340
|
+
let e = be({
|
|
341
|
+
userConfig: k.config,
|
|
342
|
+
defaultConfig: Ft
|
|
323
343
|
}), t = e.theme;
|
|
324
344
|
if (!t) return e;
|
|
325
|
-
if (!
|
|
326
|
-
let n =
|
|
327
|
-
userConfig:
|
|
345
|
+
if (!It.value(e)) return Lt(e), e;
|
|
346
|
+
let n = be({
|
|
347
|
+
userConfig: Pe[t] || k.config,
|
|
328
348
|
defaultConfig: e
|
|
329
|
-
}), r =
|
|
330
|
-
userConfig:
|
|
349
|
+
}), r = be({
|
|
350
|
+
userConfig: k.config,
|
|
331
351
|
defaultConfig: n
|
|
332
352
|
});
|
|
333
353
|
return {
|
|
334
354
|
...r,
|
|
335
|
-
customPalette: r.customPalette.length ? r.customPalette : a[t] ||
|
|
355
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || s
|
|
336
356
|
};
|
|
337
357
|
}
|
|
338
|
-
function
|
|
339
|
-
return
|
|
358
|
+
function _n(e) {
|
|
359
|
+
return Pt.includes(e) ? e : "classic";
|
|
340
360
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}, { deep: !0 }),
|
|
344
|
-
Array.isArray(e) && e.length > 0 && (
|
|
361
|
+
Ke(() => k.config, async (e) => {
|
|
362
|
+
un.value || (P.value = gn()), pn.value = !P.value.userOptions.showOnChartHover, yn(), Kt.value += 1, qt.value += 1, V.value.dataLabels.show = P.value.style.chart.labels.bestPlotLabel.show, V.value.showTable = P.value.table.show, V.value.showTooltip = P.value.style.chart.tooltip.show, z.value = P.value.style.chart.width, B.value = P.value.style.chart.height, kn.value = P.value.style.chart.plots.radius;
|
|
363
|
+
}, { deep: !0 }), Ke(() => k.dataset, (e) => {
|
|
364
|
+
Array.isArray(e) && e.length > 0 && (fn.value = !1);
|
|
345
365
|
}, { deep: !0 });
|
|
346
|
-
let L =
|
|
347
|
-
|
|
348
|
-
|
|
366
|
+
let L = We(null), R = We(null);
|
|
367
|
+
He(() => {
|
|
368
|
+
yn();
|
|
349
369
|
});
|
|
350
|
-
let
|
|
351
|
-
function
|
|
352
|
-
if (
|
|
370
|
+
let vn = p(() => !!P.value.debug);
|
|
371
|
+
function yn() {
|
|
372
|
+
if (ae(k.dataset) ? (ue({
|
|
353
373
|
componentName: "VueUiStripPlot",
|
|
354
374
|
type: "dataset",
|
|
355
|
-
debug:
|
|
356
|
-
}),
|
|
375
|
+
debug: vn.value
|
|
376
|
+
}), fn.value = !0) : k.dataset.forEach((e, t) => {
|
|
357
377
|
oe({
|
|
358
378
|
datasetObject: e,
|
|
359
379
|
requiredAttributes: ["name", "plots"]
|
|
360
380
|
}).forEach((e) => {
|
|
361
|
-
zt.value = !1,
|
|
381
|
+
zt.value = !1, ue({
|
|
362
382
|
componentName: "VueUiStripPlot",
|
|
363
383
|
type: "datasetSerieAttribute",
|
|
364
384
|
property: e,
|
|
365
385
|
index: t,
|
|
366
|
-
debug:
|
|
386
|
+
debug: vn.value
|
|
367
387
|
});
|
|
368
388
|
}), e.plots && e.plots.forEach((e, n) => {
|
|
369
389
|
oe({
|
|
370
390
|
datasetObject: e,
|
|
371
391
|
requiredAttributes: ["name", "value"]
|
|
372
392
|
}).forEach((e) => {
|
|
373
|
-
zt.value = !1,
|
|
393
|
+
zt.value = !1, ue({
|
|
374
394
|
componentName: "VueUiStripPlot",
|
|
375
395
|
type: "datasetSerieAttribute",
|
|
376
396
|
property: e,
|
|
377
397
|
index: `${t},${n}`,
|
|
378
|
-
debug:
|
|
398
|
+
debug: vn.value
|
|
379
399
|
});
|
|
380
400
|
});
|
|
381
401
|
});
|
|
382
|
-
}),
|
|
383
|
-
let e =
|
|
384
|
-
let { width: e, height: t } =
|
|
385
|
-
chart:
|
|
402
|
+
}), ae(k.dataset) || (fn.value = P.value.loading), P.value.responsive) {
|
|
403
|
+
let e = Oe(() => {
|
|
404
|
+
let { width: e, height: t } = ke({
|
|
405
|
+
chart: M.value,
|
|
386
406
|
title: P.value.style.chart.title.text ? Ht.value : null,
|
|
387
407
|
source: Ut.value,
|
|
388
408
|
noTitle: Wt.value
|
|
389
409
|
});
|
|
390
410
|
requestAnimationFrame(() => {
|
|
391
|
-
|
|
411
|
+
On.value = t, z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12), P.value.responsiveProportionalSizing ? kn.value = ce({
|
|
392
412
|
relator: Math.min(t, e),
|
|
393
413
|
adjuster: 600,
|
|
394
414
|
source: P.value.style.chart.plots.radius,
|
|
395
415
|
threshold: 6,
|
|
396
416
|
fallback: 6
|
|
397
|
-
}) :
|
|
417
|
+
}) : kn.value = P.value.style.chart.plots.radius;
|
|
398
418
|
});
|
|
399
419
|
});
|
|
400
|
-
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value =
|
|
420
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = M.value.parentNode, L.value.observe(R.value);
|
|
401
421
|
}
|
|
402
422
|
Gt.value = !0, setTimeout(() => {
|
|
403
|
-
|
|
404
|
-
},
|
|
423
|
+
En.value = !1;
|
|
424
|
+
}, In.value * 50);
|
|
405
425
|
}
|
|
406
|
-
|
|
426
|
+
Ve(() => {
|
|
407
427
|
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
|
|
408
428
|
});
|
|
409
|
-
let { isPrinting:
|
|
410
|
-
elementId: `strip-plot_${
|
|
429
|
+
let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = ge({
|
|
430
|
+
elementId: `strip-plot_${A.value}`,
|
|
411
431
|
fileName: P.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
412
432
|
options: P.value.userOptions.print
|
|
413
|
-
}),
|
|
433
|
+
}), wn = p(() => P.value.userOptions.show && !P.value.style.chart.title.text), Tn = p(() => de(P.value.customPalette)), En = C(P.value.useCssAnimation), Dn = C({
|
|
414
434
|
top: P.value.style.chart.padding.top,
|
|
415
435
|
bottom: P.value.style.chart.padding.bottom,
|
|
416
436
|
left: P.value.style.chart.padding.left,
|
|
417
437
|
right: P.value.style.chart.padding.right
|
|
418
|
-
}), z =
|
|
438
|
+
}), z = C(P.value.style.chart.width), B = C(P.value.style.chart.height), On = C(P.value.style.chart.height), kn = C(P.value.style.chart.plots.radius), V = C({
|
|
419
439
|
showTable: P.value.table.show,
|
|
420
440
|
dataLabels: { show: P.value.style.chart.labels.bestPlotLabel.show },
|
|
421
441
|
showTooltip: P.value.style.chart.tooltip.show
|
|
422
442
|
});
|
|
423
|
-
|
|
443
|
+
Ke(P, () => {
|
|
424
444
|
V.value = {
|
|
425
445
|
showTable: P.value.table.show,
|
|
426
446
|
dataLabels: { show: P.value.style.chart.labels.bestPlotLabel.show },
|
|
427
447
|
showTooltip: P.value.style.chart.tooltip.show
|
|
428
|
-
}, z.value = P.value.style.chart.width, B.value = P.value.style.chart.height,
|
|
448
|
+
}, z.value = P.value.style.chart.width, B.value = P.value.style.chart.height, kn.value = P.value.style.chart.plots.radius;
|
|
429
449
|
}, { immediate: !0 });
|
|
430
|
-
let H =
|
|
450
|
+
let H = p(() => Math.min(kn.value, W.value.stripWidth / 2 * .9));
|
|
431
451
|
function U(e) {
|
|
432
452
|
return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
|
|
433
453
|
}
|
|
434
|
-
function
|
|
454
|
+
function An() {
|
|
435
455
|
return Math.max(0, (W.value.stripWidth / 2 - H.value * 1.8) * .86) * Math.min(1, P.value.style.chart.violin.widthRatio);
|
|
436
456
|
}
|
|
437
|
-
function
|
|
457
|
+
function jn() {
|
|
438
458
|
let e = 0;
|
|
439
459
|
tn.value && (e = Array.from(tn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
440
460
|
let n = t.getComputedTextLength();
|
|
@@ -443,26 +463,26 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
443
463
|
let t = $t.value ? $t.value.getBoundingClientRect().width : 0;
|
|
444
464
|
return e + t + (t ? 24 : 0);
|
|
445
465
|
}
|
|
446
|
-
let
|
|
447
|
-
|
|
466
|
+
let Mn = C(0), Nn = Oe((e) => {
|
|
467
|
+
Mn.value = e;
|
|
448
468
|
}, 100);
|
|
449
|
-
|
|
469
|
+
qe((e) => {
|
|
450
470
|
let t = en.value;
|
|
451
471
|
if (!t) return;
|
|
452
472
|
let n = new ResizeObserver((e) => {
|
|
453
|
-
|
|
473
|
+
Nn(e[0].contentRect.height);
|
|
454
474
|
});
|
|
455
475
|
n.observe(t), e(() => n.disconnect());
|
|
456
|
-
}),
|
|
457
|
-
|
|
476
|
+
}), Ve(() => {
|
|
477
|
+
Mn.value = 0;
|
|
458
478
|
});
|
|
459
|
-
let
|
|
479
|
+
let Pn = p(() => {
|
|
460
480
|
let e = 0;
|
|
461
481
|
Qt.value && (e = Qt.value.getBBox().height + P.value.style.chart.labels.axis.fontSize / 3 + 12 + P.value.style.chart.labels.axis.xLabelOffsetY);
|
|
462
482
|
let t = 0;
|
|
463
|
-
return en.value && (t =
|
|
464
|
-
}), W =
|
|
465
|
-
let e =
|
|
483
|
+
return en.value && (t = Mn.value + 12), e + t;
|
|
484
|
+
}), W = p(() => {
|
|
485
|
+
let e = jn(), t = Dn.value.left + e + P.value.style.chart.labels.axis.yLabelOffsetX + 5, n = z.value - Dn.value.right, r = Math.max(0, n - t), i = Dn.value.top + P.value.style.chart.plots.radius + P.value.style.chart.labels.bestPlotLabel.fontSize, a = B.value - Dn.value.bottom - Pn.value, o = Math.max(0, a - i), s = Array.isArray(dn.value) ? dn.value.length : 0;
|
|
466
486
|
return {
|
|
467
487
|
left: t,
|
|
468
488
|
right: n,
|
|
@@ -474,43 +494,43 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
474
494
|
absoluteHeight: B.value
|
|
475
495
|
};
|
|
476
496
|
});
|
|
477
|
-
function
|
|
497
|
+
function Fn(e) {
|
|
478
498
|
return W.value.left + (e + 1) * W.value.stripWidth - W.value.stripWidth / 2;
|
|
479
499
|
}
|
|
480
|
-
let G =
|
|
481
|
-
let n =
|
|
500
|
+
let G = p(() => dn.value.map((e, t) => {
|
|
501
|
+
let n = se();
|
|
482
502
|
return {
|
|
483
503
|
...e,
|
|
484
504
|
id: n,
|
|
485
|
-
color: e.color ?
|
|
505
|
+
color: e.color ? c(e.color) : Tn.value[t] || s[t] || s[t % s.length],
|
|
486
506
|
plots: e.plots.map((r, i) => ({
|
|
487
507
|
...r,
|
|
488
|
-
value:
|
|
508
|
+
value: ne(r.value),
|
|
489
509
|
parentId: n,
|
|
490
510
|
parentName: e.name,
|
|
491
511
|
parentIndex: t,
|
|
492
512
|
plotIndex: i,
|
|
493
|
-
color: e.color ?
|
|
494
|
-
id:
|
|
513
|
+
color: e.color ? c(e.color) : Tn.value[t] || s[t] || s[t % s.length],
|
|
514
|
+
id: se()
|
|
495
515
|
})).sort((e, t) => e.value - t.value)
|
|
496
516
|
};
|
|
497
|
-
})), K =
|
|
517
|
+
})), K = p(() => (G.value || []).map((e, t) => ({
|
|
498
518
|
...e,
|
|
499
519
|
plots: e.plots.map((e) => ({
|
|
500
520
|
...e,
|
|
501
|
-
x:
|
|
521
|
+
x: Fn(t)
|
|
502
522
|
}))
|
|
503
|
-
}))),
|
|
523
|
+
}))), In = p(() => Math.max(...K.value.map((e) => e.plots.length))), Ln = p(() => {
|
|
504
524
|
let e = K.value.flatMap((e) => e.plots.map((e) => e.value));
|
|
505
525
|
return {
|
|
506
526
|
max: Math.max(...e),
|
|
507
527
|
min: Math.min(...e)
|
|
508
528
|
};
|
|
509
|
-
}), q =
|
|
529
|
+
}), q = p(() => te(Ln.value.min < 0 ? Ln.value.min : 0, Ln.value.max, P.value.style.chart.grid.scaleSteps)), J = p(() => (K.value || []).map((e, t) => {
|
|
510
530
|
let n = e.plots.map((e) => ({
|
|
511
531
|
...e,
|
|
512
532
|
y: W.value.bottom - (e.value + Math.abs(q.value.min)) / (q.value.max + Math.abs(q.value.min)) * W.value.height
|
|
513
|
-
})), r =
|
|
533
|
+
})), r = cn.value === "classic" ? n.map(() => 0) : Hn(n);
|
|
514
534
|
return {
|
|
515
535
|
...e,
|
|
516
536
|
plots: n.map((e, t) => ({
|
|
@@ -518,19 +538,19 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
518
538
|
x: e.x + r[t]
|
|
519
539
|
}))
|
|
520
540
|
};
|
|
521
|
-
})), Y =
|
|
522
|
-
function
|
|
541
|
+
})), Y = p(() => cn.value === "violin" && !!P.value.style.chart.violin?.boxPlot?.show);
|
|
542
|
+
function Rn(e, t) {
|
|
523
543
|
if (!e.length) return 0;
|
|
524
544
|
if (e.length === 1) return e[0];
|
|
525
545
|
let n = (e.length - 1) * t, r = Math.floor(n), i = n - r, a = e[r + 1];
|
|
526
546
|
return a === void 0 ? e[r] : e[r] + i * (a - e[r]);
|
|
527
547
|
}
|
|
528
|
-
function
|
|
548
|
+
function zn(e) {
|
|
529
549
|
let t = q.value.max + Math.abs(q.value.min);
|
|
530
550
|
return t ? W.value.bottom - (e + Math.abs(q.value.min)) / t * W.value.height : W.value.bottom;
|
|
531
551
|
}
|
|
532
|
-
let
|
|
533
|
-
let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r =
|
|
552
|
+
let X = p(() => Y.value ? J.value.map((e, t) => {
|
|
553
|
+
let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r = Rn(n, .25), i = Rn(n, .5), a = Rn(n, .75), o = a - r, s = r - o * 1.5, c = a + o * 1.5, l = n.find((e) => e >= s), u = n.slice().reverse().find((e) => e <= c), ee = Fn(t), te = Math.max(H.value * 2.8, Math.min(An() * .32, W.value.stripWidth * .12)) * Math.min(1.5, P.value.style.chart.violin.boxPlot.widthRatio);
|
|
534
554
|
return {
|
|
535
555
|
id: e.id,
|
|
536
556
|
boxPlotColor: P.value.style.chart.violin.boxPlot.useSerieColor ? e.color : P.value.style.chart.violin.boxPlot.color,
|
|
@@ -541,20 +561,20 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
541
561
|
q1: r,
|
|
542
562
|
median: i,
|
|
543
563
|
q3: a,
|
|
544
|
-
upperAdjacent:
|
|
564
|
+
upperAdjacent: u ?? n[n.length - 1],
|
|
545
565
|
iqr: o,
|
|
546
566
|
lowerFence: s,
|
|
547
567
|
upperFence: c,
|
|
548
|
-
centerX:
|
|
549
|
-
boxLeft:
|
|
550
|
-
boxWidth:
|
|
551
|
-
q1Y:
|
|
552
|
-
medianY:
|
|
553
|
-
q3Y:
|
|
554
|
-
lowerY:
|
|
555
|
-
upperY:
|
|
568
|
+
centerX: ee,
|
|
569
|
+
boxLeft: ee - te / 2,
|
|
570
|
+
boxWidth: te,
|
|
571
|
+
q1Y: zn(r),
|
|
572
|
+
medianY: zn(i),
|
|
573
|
+
q3Y: zn(a),
|
|
574
|
+
lowerY: zn(l ?? n[0]),
|
|
575
|
+
upperY: zn(u ?? n[n.length - 1])
|
|
556
576
|
};
|
|
557
|
-
}) : []),
|
|
577
|
+
}) : []), Bn = p(() => [
|
|
558
578
|
P.value.table.columnNames.series,
|
|
559
579
|
P.value.style.chart.violin.tooltipLabels.lowerAdjacent,
|
|
560
580
|
P.value.style.chart.violin.tooltipLabels.q1,
|
|
@@ -564,16 +584,16 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
564
584
|
P.value.style.chart.violin.tooltipLabels.iqr,
|
|
565
585
|
P.value.style.chart.violin.tooltipLabels.count
|
|
566
586
|
]);
|
|
567
|
-
function
|
|
568
|
-
return
|
|
587
|
+
function Vn(e) {
|
|
588
|
+
return l({
|
|
569
589
|
p: P.value.style.chart.labels.prefix,
|
|
570
590
|
v: e,
|
|
571
591
|
s: P.value.style.chart.labels.suffix,
|
|
572
592
|
r: P.value.table.td.roundingValue
|
|
573
593
|
});
|
|
574
594
|
}
|
|
575
|
-
function
|
|
576
|
-
let t =
|
|
595
|
+
function Hn(e) {
|
|
596
|
+
let t = cn.value === "violin" ? Math.max(0, An() - H.value * 1.15) : Math.max(0, W.value.stripWidth / 2 - H.value * 1.5);
|
|
577
597
|
if (!e.length || !t) return e.map(() => 0);
|
|
578
598
|
let n = e.map(() => 0), r = H.value * 2.1, i = Math.min(t, r), a = [0];
|
|
579
599
|
for (let e = i; e <= t + i / 2; e += i) a.push(-Math.min(e, t)), a.push(Math.min(e, t));
|
|
@@ -589,44 +609,44 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
589
609
|
});
|
|
590
610
|
}), n;
|
|
591
611
|
}
|
|
592
|
-
let
|
|
612
|
+
let Un = p(() => cn.value === "violin" ? J.value.map((e, t) => ({
|
|
593
613
|
id: e.id,
|
|
594
614
|
color: P.value.style.chart.violin.useSerieColor ? e.color : P.value.style.chart.violin.stroke,
|
|
595
615
|
fill: P.value.style.chart.violin.useSerieColor ? e.color : P.value.style.chart.violin.fill,
|
|
596
|
-
path:
|
|
597
|
-
connectors:
|
|
616
|
+
path: Wn(e.plots, t),
|
|
617
|
+
connectors: Gn(e.plots, t)
|
|
598
618
|
})) : []);
|
|
599
|
-
function
|
|
600
|
-
let n =
|
|
619
|
+
function Wn(e, t) {
|
|
620
|
+
let n = An();
|
|
601
621
|
if (!e.length || !W.value.height || !n) return "";
|
|
602
|
-
let r =
|
|
622
|
+
let r = Fn(t), i = e.map((e) => e.y), a = Z(i), o = qn({
|
|
603
623
|
yValues: i,
|
|
604
624
|
bandwidth: a
|
|
605
625
|
});
|
|
606
|
-
return o.length > 1 ? o.map((e) =>
|
|
626
|
+
return o.length > 1 ? o.map((e) => Yn({
|
|
607
627
|
yValues: e,
|
|
608
628
|
centerX: r,
|
|
609
|
-
maxWidth:
|
|
629
|
+
maxWidth: Kn({
|
|
610
630
|
clusterLength: e.length,
|
|
611
631
|
totalLength: i.length,
|
|
612
632
|
maxWidth: n
|
|
613
633
|
}),
|
|
614
|
-
bandwidth:
|
|
615
|
-
})).join(" ") :
|
|
634
|
+
bandwidth: Z(e)
|
|
635
|
+
})).join(" ") : Yn({
|
|
616
636
|
yValues: i,
|
|
617
637
|
centerX: r,
|
|
618
638
|
maxWidth: n,
|
|
619
639
|
bandwidth: a
|
|
620
640
|
});
|
|
621
641
|
}
|
|
622
|
-
function
|
|
642
|
+
function Gn(e, t) {
|
|
623
643
|
if (!e.length) return [];
|
|
624
|
-
let n =
|
|
644
|
+
let n = Fn(t), r = e.map((e) => e.y), i = qn({
|
|
625
645
|
yValues: r,
|
|
626
|
-
bandwidth:
|
|
646
|
+
bandwidth: Z(r)
|
|
627
647
|
});
|
|
628
648
|
return i.length < 2 ? [] : i.slice(1).map((e, t) => {
|
|
629
|
-
let r = i[t], a =
|
|
649
|
+
let r = i[t], a = Z(r), o = Z(e), s = d(Math.max(...r) + a * 2.35, W.value.top, W.value.bottom), c = d(Math.min(...e) - o * 2.35, W.value.top, W.value.bottom);
|
|
630
650
|
return {
|
|
631
651
|
x: U(n),
|
|
632
652
|
y1: U(s),
|
|
@@ -634,30 +654,30 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
634
654
|
};
|
|
635
655
|
});
|
|
636
656
|
}
|
|
637
|
-
function
|
|
657
|
+
function Kn({ clusterLength: e, totalLength: t, maxWidth: n }) {
|
|
638
658
|
let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
|
|
639
|
-
return Math.max(H.value * 2.2, n *
|
|
659
|
+
return Math.max(H.value * 2.2, n * d(r * i, .18, 1));
|
|
640
660
|
}
|
|
641
|
-
function
|
|
661
|
+
function Z(e) {
|
|
642
662
|
let t = e.reduce((e, t) => e + t, 0) / Math.max(1, e.length), n = e.reduce((e, n) => e + (n - t) ** 2, 0) / Math.max(1, e.length), r = Math.sqrt(n), i = e.length < 2 ? Math.max(H.value * 2.6, W.value.height / 48) : H.value * 2.1;
|
|
643
|
-
return
|
|
663
|
+
return d(1.06 * r * e.length ** -.2, i, W.value.height / 5);
|
|
644
664
|
}
|
|
645
|
-
function
|
|
665
|
+
function qn({ yValues: e, bandwidth: t }) {
|
|
646
666
|
if (e.length < 2) return [e];
|
|
647
667
|
let n = [...e].sort((e, t) => e - t), r = Math.max(t * 1.45, H.value * 5), i = [], a = [n[0]];
|
|
648
668
|
for (let e = 1; e < n.length; e += 1) Math.abs(n[e] - n[e - 1]) > r ? (i.push(a), a = [n[e]]) : a.push(n[e]);
|
|
649
|
-
return i.push(a),
|
|
669
|
+
return i.push(a), Jn(i);
|
|
650
670
|
}
|
|
651
|
-
function
|
|
671
|
+
function Jn(e) {
|
|
652
672
|
return e.reduce((e, t) => {
|
|
653
673
|
let n = e[e.length - 1];
|
|
654
674
|
if (!n) return e.push(t), e;
|
|
655
|
-
let r =
|
|
675
|
+
let r = Z(n), i = Z(t);
|
|
656
676
|
return Math.max(...n) + r * 2.35 >= Math.min(...t) - i * 2.35 ? n.push(...t) : e.push(t), e;
|
|
657
677
|
}, []);
|
|
658
678
|
}
|
|
659
|
-
function
|
|
660
|
-
let i =
|
|
679
|
+
function Yn({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
|
|
680
|
+
let i = d(Math.min(...e) - r * 2.35, W.value.top, W.value.bottom), a = d(Math.max(...e) + r * 2.35, W.value.top, W.value.bottom), o = Math.max(48, Math.min(120, Math.round((a - i) / Math.max(1, r / 4)))), s = Array.from({ length: o }, (t, n) => {
|
|
661
681
|
let s = i + (a - i) * n / Math.max(1, o - 1);
|
|
662
682
|
return {
|
|
663
683
|
y: s,
|
|
@@ -674,16 +694,16 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
674
694
|
y: U(e.y),
|
|
675
695
|
width: U(r)
|
|
676
696
|
};
|
|
677
|
-
}),
|
|
697
|
+
}), u = l.map((e) => ({
|
|
678
698
|
x: U(t - e.width),
|
|
679
699
|
y: e.y
|
|
680
|
-
})),
|
|
700
|
+
})), ee = l.slice(0, -1).reverse().map((e) => ({
|
|
681
701
|
x: U(t + e.width),
|
|
682
702
|
y: e.y
|
|
683
703
|
}));
|
|
684
|
-
return `${
|
|
704
|
+
return `${Xn([...u, ...ee])} Z`;
|
|
685
705
|
}
|
|
686
|
-
function
|
|
706
|
+
function Xn(e) {
|
|
687
707
|
if (!e.length) return "";
|
|
688
708
|
if (e.length === 1) return `M ${e[0].x} ${e[0].y}`;
|
|
689
709
|
let t = `M ${e[0].x} ${e[0].y}`;
|
|
@@ -694,44 +714,44 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
694
714
|
let n = e[e.length - 1];
|
|
695
715
|
return `${t} L ${n.x} ${n.y}`;
|
|
696
716
|
}
|
|
697
|
-
let
|
|
717
|
+
let Zn = p(() => q.value.ticks.map((e) => ({
|
|
698
718
|
y: W.value.bottom - W.value.height * ((e + Math.abs(q.value.min)) / (q.value.max + Math.abs(q.value.min))),
|
|
699
719
|
x1: W.value.left,
|
|
700
720
|
x2: W.value.right,
|
|
701
721
|
value: e
|
|
702
|
-
}))),
|
|
703
|
-
function
|
|
704
|
-
N.value !== "keyboard" && (
|
|
722
|
+
}))), Qn = C(null), Q = C(null);
|
|
723
|
+
function $n({ datapoint: e, seriesIndex: t }) {
|
|
724
|
+
N.value !== "keyboard" && (j.value = !1, Q.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
705
725
|
datapoint: e,
|
|
706
726
|
seriesIndex: t
|
|
707
727
|
}));
|
|
708
728
|
}
|
|
709
|
-
function
|
|
729
|
+
function er({ datapoint: e, seriesIndex: t }) {
|
|
710
730
|
Rt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
711
731
|
datapoint: e,
|
|
712
732
|
seriesIndex: t
|
|
713
733
|
});
|
|
714
734
|
}
|
|
715
|
-
function
|
|
716
|
-
return
|
|
735
|
+
function tr(e, t = {}) {
|
|
736
|
+
return ie(P.value.style.chart.labels.formatter, e, l({
|
|
717
737
|
p: P.value.style.chart.labels.prefix,
|
|
718
738
|
v: e,
|
|
719
739
|
s: P.value.style.chart.labels.suffix,
|
|
720
740
|
r: P.value.style.chart.tooltip.roundingValue
|
|
721
741
|
}), t);
|
|
722
742
|
}
|
|
723
|
-
function
|
|
743
|
+
function nr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
724
744
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
725
745
|
datapoint: e,
|
|
726
746
|
seriesIndex: t
|
|
727
|
-
}), N.value = n,
|
|
747
|
+
}), N.value = n, Qn.value = {
|
|
728
748
|
datapoint: e,
|
|
729
749
|
seriesIndex: t,
|
|
730
750
|
config: P.value,
|
|
731
751
|
series: G.value
|
|
732
|
-
},
|
|
752
|
+
}, j.value = !0, Q.value = e;
|
|
733
753
|
let r = P.value.style.chart.tooltip.customFormat;
|
|
734
|
-
if (
|
|
754
|
+
if (fe(r) && re(() => r({
|
|
735
755
|
seriesIndex: t,
|
|
736
756
|
datapoint: e,
|
|
737
757
|
series: G.value,
|
|
@@ -744,31 +764,31 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
744
764
|
});
|
|
745
765
|
else {
|
|
746
766
|
let n = "";
|
|
747
|
-
n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${P.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${
|
|
767
|
+
n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${P.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${tr(e.value, {
|
|
748
768
|
datapoint: e,
|
|
749
769
|
seriesIndex: t
|
|
750
770
|
})}</div>`, Vt.value = `<div>${n}</div>`;
|
|
751
771
|
}
|
|
752
772
|
}
|
|
753
|
-
function
|
|
754
|
-
N.value !== "keyboard" && (
|
|
773
|
+
function rr() {
|
|
774
|
+
N.value !== "keyboard" && (j.value = !1, Q.value = null);
|
|
755
775
|
}
|
|
756
|
-
function
|
|
757
|
-
N.value = n,
|
|
776
|
+
function ir({ boxPlot: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
777
|
+
N.value = n, Q.value = null, j.value = !0, Qn.value = {
|
|
758
778
|
boxPlot: e,
|
|
759
779
|
seriesIndex: t,
|
|
760
780
|
config: P.value,
|
|
761
781
|
series: G.value
|
|
762
782
|
};
|
|
763
783
|
let r = P.value.style.chart.tooltip.customFormat;
|
|
764
|
-
if (
|
|
784
|
+
if (fe(r)) try {
|
|
765
785
|
let n = {
|
|
766
786
|
boxPlot: e,
|
|
767
787
|
seriesIndex: t,
|
|
768
788
|
series: G.value,
|
|
769
789
|
config: P.value
|
|
770
790
|
};
|
|
771
|
-
if (
|
|
791
|
+
if (re(() => r(n))) {
|
|
772
792
|
Vt.value = r(n);
|
|
773
793
|
return;
|
|
774
794
|
}
|
|
@@ -780,23 +800,23 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
780
800
|
[P.value.style.chart.violin.tooltipLabels.q1, e.q1],
|
|
781
801
|
[P.value.style.chart.violin.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
|
|
782
802
|
[P.value.style.chart.violin.tooltipLabels.iqr, e.iqr]
|
|
783
|
-
], a = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, o = i.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${
|
|
803
|
+
], a = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, o = i.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${tr(r, {
|
|
784
804
|
boxPlot: e,
|
|
785
805
|
seriesIndex: t
|
|
786
806
|
})}</b></div>`).join("");
|
|
787
807
|
Vt.value = `<div style="min-width:160px;"><div style="display:flex;flex-direction:row;gap:6px;align-items:center;margin-bottom:6px;">${a}${e.name}</div>` + o + `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;margin-top:6px;"><span>${P.value.style.chart.violin.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
|
|
788
808
|
}
|
|
789
|
-
let
|
|
809
|
+
let ar = p(() => ({
|
|
790
810
|
head: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
|
|
791
811
|
name: `${e.name} - ${t.name}`,
|
|
792
812
|
color: t.color
|
|
793
813
|
}))),
|
|
794
814
|
body: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
|
|
795
815
|
}));
|
|
796
|
-
function
|
|
797
|
-
|
|
798
|
-
let
|
|
799
|
-
Y.value ? (
|
|
816
|
+
function or(e = null) {
|
|
817
|
+
ze(() => {
|
|
818
|
+
let r = [], i = [P.value.table.columnNames.series, P.value.table.columnNames.value];
|
|
819
|
+
Y.value ? (i = Bn.value, r = X.value.map((e) => [
|
|
800
820
|
[e.name],
|
|
801
821
|
[e.lowerAdjacent],
|
|
802
822
|
[e.q1],
|
|
@@ -805,35 +825,35 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
805
825
|
[e.upperAdjacent],
|
|
806
826
|
[e.iqr],
|
|
807
827
|
[e.count]
|
|
808
|
-
])) :
|
|
809
|
-
let
|
|
828
|
+
])) : r = ar.value.head.map((e, t) => [[e.name], [ar.value.body[t]]]);
|
|
829
|
+
let a = n([
|
|
810
830
|
[P.value.style.chart.title.text],
|
|
811
831
|
[P.value.style.chart.title.subtitle.text],
|
|
812
|
-
|
|
813
|
-
].concat(
|
|
814
|
-
e ? e(
|
|
815
|
-
csvContent:
|
|
832
|
+
i.map((e) => [e])
|
|
833
|
+
].concat(r));
|
|
834
|
+
e ? e(a) : t({
|
|
835
|
+
csvContent: a,
|
|
816
836
|
title: P.value.style.chart.title.text || "vue-ui-strip-plot"
|
|
817
837
|
});
|
|
818
838
|
});
|
|
819
839
|
}
|
|
820
|
-
let
|
|
840
|
+
let sr = p(() => {
|
|
821
841
|
if (Y.value) {
|
|
822
|
-
let e =
|
|
842
|
+
let e = Bn.value;
|
|
823
843
|
return {
|
|
824
844
|
colNames: e,
|
|
825
845
|
head: e,
|
|
826
|
-
body:
|
|
846
|
+
body: X.value.map((e) => [
|
|
827
847
|
{
|
|
828
848
|
color: e.color,
|
|
829
849
|
name: e.name
|
|
830
850
|
},
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
851
|
+
Vn(e.lowerAdjacent),
|
|
852
|
+
Vn(e.q1),
|
|
853
|
+
Vn(e.median),
|
|
854
|
+
Vn(e.q3),
|
|
855
|
+
Vn(e.upperAdjacent),
|
|
856
|
+
Vn(e.iqr),
|
|
837
857
|
e.count
|
|
838
858
|
]),
|
|
839
859
|
config: {
|
|
@@ -851,10 +871,10 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
851
871
|
}
|
|
852
872
|
};
|
|
853
873
|
}
|
|
854
|
-
let e = [P.value.table.columnNames.series, P.value.table.columnNames.value], t =
|
|
855
|
-
let n =
|
|
874
|
+
let e = [P.value.table.columnNames.series, P.value.table.columnNames.value], t = ar.value.head.map((e, t) => {
|
|
875
|
+
let n = l({
|
|
856
876
|
p: P.value.style.chart.labels.prefix,
|
|
857
|
-
v:
|
|
877
|
+
v: ar.value.body[t],
|
|
858
878
|
s: P.value.style.chart.labels.suffix,
|
|
859
879
|
r: P.value.table.td.roundingValue
|
|
860
880
|
});
|
|
@@ -881,30 +901,30 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
881
901
|
body: t,
|
|
882
902
|
config: n
|
|
883
903
|
};
|
|
884
|
-
}), $ =
|
|
885
|
-
function
|
|
904
|
+
}), $ = C(!1);
|
|
905
|
+
function cr(e) {
|
|
886
906
|
$.value = e, Bt.value += 1;
|
|
887
907
|
}
|
|
888
|
-
function
|
|
908
|
+
function lr() {
|
|
889
909
|
return K.value;
|
|
890
910
|
}
|
|
891
|
-
function
|
|
911
|
+
function ur() {
|
|
892
912
|
V.value.showTable = !V.value.showTable;
|
|
893
913
|
}
|
|
894
|
-
function
|
|
914
|
+
function dr() {
|
|
895
915
|
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
896
916
|
}
|
|
897
|
-
function
|
|
917
|
+
function fr() {
|
|
898
918
|
V.value.showTooltip = !V.value.showTooltip;
|
|
899
919
|
}
|
|
900
|
-
let
|
|
901
|
-
function
|
|
902
|
-
|
|
920
|
+
let pr = C(!1);
|
|
921
|
+
function mr() {
|
|
922
|
+
pr.value = !pr.value;
|
|
903
923
|
}
|
|
904
|
-
async function
|
|
905
|
-
if (!
|
|
906
|
-
let { width: t, height: n } =
|
|
907
|
-
domElement:
|
|
924
|
+
async function hr({ scale: e = 2 } = {}) {
|
|
925
|
+
if (!M.value) return;
|
|
926
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
|
|
927
|
+
domElement: M.value,
|
|
908
928
|
base64: !0,
|
|
909
929
|
img: !0,
|
|
910
930
|
scale: e
|
|
@@ -918,11 +938,11 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
918
938
|
aspectRatio: r
|
|
919
939
|
};
|
|
920
940
|
}
|
|
921
|
-
let
|
|
922
|
-
|
|
941
|
+
let gr = p(() => K.value.map((e) => e.name));
|
|
942
|
+
Ce({
|
|
923
943
|
timeLabelsEls: en,
|
|
924
|
-
timeLabels:
|
|
925
|
-
slicer:
|
|
944
|
+
timeLabels: gr,
|
|
945
|
+
slicer: C({
|
|
926
946
|
start: 0,
|
|
927
947
|
end: K.value.length
|
|
928
948
|
}),
|
|
@@ -948,10 +968,10 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
948
968
|
targetClass: ".vue-ui-strip-plot-category-name",
|
|
949
969
|
rotation: P.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
950
970
|
});
|
|
951
|
-
let
|
|
971
|
+
let _r = p(() => {
|
|
952
972
|
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
953
973
|
return {
|
|
954
|
-
component: e ?
|
|
974
|
+
component: e ? Nt : Ot,
|
|
955
975
|
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
956
976
|
props: e ? {
|
|
957
977
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -959,7 +979,7 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
959
979
|
headerColor: P.value.table.th.color,
|
|
960
980
|
headerBg: P.value.table.th.backgroundColor,
|
|
961
981
|
isFullscreen: $.value,
|
|
962
|
-
fullscreenParent:
|
|
982
|
+
fullscreenParent: M.value,
|
|
963
983
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
964
984
|
isCursorPointer: F.value
|
|
965
985
|
} : {
|
|
@@ -979,34 +999,34 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
979
999
|
}
|
|
980
1000
|
};
|
|
981
1001
|
});
|
|
982
|
-
|
|
1002
|
+
Ke(() => V.value.showTable, (e) => {
|
|
983
1003
|
P.value.table.show || (e && P.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
|
|
984
1004
|
});
|
|
985
|
-
function
|
|
1005
|
+
function vr() {
|
|
986
1006
|
V.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
987
1007
|
}
|
|
988
|
-
let
|
|
1008
|
+
let yr = p(() => P.value.style.chart.backgroundColor), { exportSvg: br, getSvg: xr } = ye({
|
|
989
1009
|
svg: I,
|
|
990
|
-
title:
|
|
991
|
-
backgroundColor:
|
|
1010
|
+
title: p(() => P.value.style.chart.title),
|
|
1011
|
+
backgroundColor: yr
|
|
992
1012
|
});
|
|
993
|
-
async function
|
|
994
|
-
Zt.value = !0, await
|
|
1013
|
+
async function Sr({ isCb: e }) {
|
|
1014
|
+
Zt.value = !0, await ze();
|
|
995
1015
|
try {
|
|
996
1016
|
if (e) {
|
|
997
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1017
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await xr();
|
|
998
1018
|
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
999
1019
|
blob: e,
|
|
1000
1020
|
url: t,
|
|
1001
1021
|
text: n,
|
|
1002
1022
|
dataUrl: r
|
|
1003
1023
|
}));
|
|
1004
|
-
} else await Promise.resolve(
|
|
1024
|
+
} else await Promise.resolve(br());
|
|
1005
1025
|
} finally {
|
|
1006
1026
|
Zt.value = !1;
|
|
1007
1027
|
}
|
|
1008
1028
|
}
|
|
1009
|
-
function
|
|
1029
|
+
function Cr(e) {
|
|
1010
1030
|
if (e?.stage === "start") {
|
|
1011
1031
|
Xt.value = !0;
|
|
1012
1032
|
return;
|
|
@@ -1015,9 +1035,9 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1015
1035
|
Xt.value = !1;
|
|
1016
1036
|
return;
|
|
1017
1037
|
}
|
|
1018
|
-
|
|
1038
|
+
Cn();
|
|
1019
1039
|
}
|
|
1020
|
-
async function
|
|
1040
|
+
async function wr() {
|
|
1021
1041
|
if (Rt("copyAlt", {
|
|
1022
1042
|
config: P.value,
|
|
1023
1043
|
dataset: J.value
|
|
@@ -1030,107 +1050,107 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1030
1050
|
dataset: J.value
|
|
1031
1051
|
}));
|
|
1032
1052
|
}
|
|
1033
|
-
function
|
|
1053
|
+
function Tr() {
|
|
1034
1054
|
return J.value.length;
|
|
1035
1055
|
}
|
|
1036
|
-
function
|
|
1056
|
+
function Er(e) {
|
|
1037
1057
|
return J.value[e]?.plots ?? [];
|
|
1038
1058
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return !Number.isInteger(e) || !Number.isInteger(t) ? null :
|
|
1059
|
+
function Dr(e = nn.value, t = rn.value) {
|
|
1060
|
+
return !Number.isInteger(e) || !Number.isInteger(t) ? null : Er(e)[t] ?? null;
|
|
1041
1061
|
}
|
|
1042
|
-
function
|
|
1043
|
-
|
|
1062
|
+
function Or() {
|
|
1063
|
+
nn.value = null, rn.value = null, N.value = "pointer", j.value = !1, Q.value = null;
|
|
1044
1064
|
}
|
|
1045
|
-
function
|
|
1065
|
+
function kr(e) {
|
|
1046
1066
|
if (!e || !I.value) return;
|
|
1047
1067
|
let t = I.value.getBoundingClientRect();
|
|
1048
|
-
|
|
1068
|
+
an.value = {
|
|
1049
1069
|
x: t.left + e.x / z.value * t.width,
|
|
1050
1070
|
y: t.top + e.y / B.value * t.height
|
|
1051
1071
|
};
|
|
1052
1072
|
}
|
|
1053
|
-
function
|
|
1054
|
-
let n =
|
|
1055
|
-
n && (
|
|
1073
|
+
function Ar(e, t) {
|
|
1074
|
+
let n = Dr(e, t);
|
|
1075
|
+
n && (nn.value = e, rn.value = t, N.value = "keyboard", kr(n), nr({
|
|
1056
1076
|
datapoint: n,
|
|
1057
1077
|
seriesIndex: e,
|
|
1058
1078
|
triggerMode: "keyboard"
|
|
1059
1079
|
}));
|
|
1060
1080
|
}
|
|
1061
|
-
function
|
|
1062
|
-
|
|
1081
|
+
function jr() {
|
|
1082
|
+
on.value = !0, nn.value = null, rn.value = null;
|
|
1063
1083
|
}
|
|
1064
|
-
function
|
|
1065
|
-
|
|
1084
|
+
function Mr() {
|
|
1085
|
+
on.value = !1, Or();
|
|
1066
1086
|
}
|
|
1067
|
-
function
|
|
1068
|
-
if (!I.value ||
|
|
1087
|
+
function Nr(e) {
|
|
1088
|
+
if (!I.value || pr.value || document.activeElement !== I.value || !Tr()) return;
|
|
1069
1089
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1070
1090
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1071
1091
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1072
|
-
|
|
1092
|
+
Or();
|
|
1073
1093
|
return;
|
|
1074
1094
|
}
|
|
1075
|
-
let s =
|
|
1095
|
+
let s = nn.value, c = rn.value;
|
|
1076
1096
|
if (s === null || c === null) s = 0, c = 0;
|
|
1077
1097
|
else if (t || n) {
|
|
1078
|
-
let e =
|
|
1098
|
+
let e = Tr();
|
|
1079
1099
|
s = n ? (s + 1) % e : (s - 1 + e) % e;
|
|
1080
|
-
let t =
|
|
1100
|
+
let t = Er(s);
|
|
1081
1101
|
if (!t.length) return;
|
|
1082
1102
|
c = Math.min(c, t.length - 1);
|
|
1083
1103
|
} else if (r || i) {
|
|
1084
|
-
let e =
|
|
1104
|
+
let e = Er(s);
|
|
1085
1105
|
if (!e.length) return;
|
|
1086
1106
|
c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
|
|
1087
1107
|
}
|
|
1088
1108
|
if (a) {
|
|
1089
|
-
let e =
|
|
1109
|
+
let e = Dr();
|
|
1090
1110
|
if (!e) return;
|
|
1091
|
-
|
|
1111
|
+
er({
|
|
1092
1112
|
datapoint: e,
|
|
1093
|
-
seriesIndex:
|
|
1113
|
+
seriesIndex: nn.value
|
|
1094
1114
|
});
|
|
1095
1115
|
return;
|
|
1096
1116
|
}
|
|
1097
|
-
|
|
1117
|
+
Ar(s, c);
|
|
1098
1118
|
}
|
|
1099
|
-
let
|
|
1100
|
-
headers:
|
|
1101
|
-
rows:
|
|
1119
|
+
let Pr = p(() => ({
|
|
1120
|
+
headers: sr.value?.colNames ?? [],
|
|
1121
|
+
rows: sr.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
|
|
1102
1122
|
}));
|
|
1103
|
-
return
|
|
1104
|
-
getData:
|
|
1105
|
-
getImage:
|
|
1106
|
-
generatePdf:
|
|
1107
|
-
generateCsv:
|
|
1108
|
-
generateImage:
|
|
1109
|
-
generateSvg:
|
|
1110
|
-
toggleTable:
|
|
1111
|
-
toggleLabels:
|
|
1112
|
-
toggleTooltip:
|
|
1113
|
-
toggleAnnotator:
|
|
1114
|
-
toggleFullscreen:
|
|
1115
|
-
copyAlt:
|
|
1116
|
-
}), (e, t) => (
|
|
1123
|
+
return De({
|
|
1124
|
+
getData: lr,
|
|
1125
|
+
getImage: hr,
|
|
1126
|
+
generatePdf: Sn,
|
|
1127
|
+
generateCsv: or,
|
|
1128
|
+
generateImage: Cn,
|
|
1129
|
+
generateSvg: Sr,
|
|
1130
|
+
toggleTable: ur,
|
|
1131
|
+
toggleLabels: dr,
|
|
1132
|
+
toggleTooltip: fr,
|
|
1133
|
+
toggleAnnotator: mr,
|
|
1134
|
+
toggleFullscreen: cr,
|
|
1135
|
+
copyAlt: wr
|
|
1136
|
+
}), (e, t) => (S(), g("div", {
|
|
1117
1137
|
ref_key: "stripPlotChart",
|
|
1118
|
-
ref:
|
|
1119
|
-
class:
|
|
1120
|
-
style:
|
|
1121
|
-
id: `strip-plot_${
|
|
1122
|
-
onMouseenter: t[2] ||= () =>
|
|
1123
|
-
onMouseleave: t[3] ||= () =>
|
|
1138
|
+
ref: M,
|
|
1139
|
+
class: Be(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1140
|
+
style: x(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor};${P.value.responsive ? "height:100%" : ""}`),
|
|
1141
|
+
id: `strip-plot_${A.value}`,
|
|
1142
|
+
onMouseenter: t[2] ||= () => D(mn)(!0),
|
|
1143
|
+
onMouseleave: t[3] ||= () => D(mn)(!1)
|
|
1124
1144
|
}, [
|
|
1125
|
-
|
|
1126
|
-
id: `chart-instructions-${
|
|
1145
|
+
_("div", {
|
|
1146
|
+
id: `chart-instructions-${A.value}`,
|
|
1127
1147
|
class: "sr-only"
|
|
1128
|
-
}, [
|
|
1129
|
-
|
|
1148
|
+
}, [_("p", null, E(P.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
1149
|
+
Pr.value?.rows?.length ? (S(), m(je, {
|
|
1130
1150
|
key: 0,
|
|
1131
|
-
uid:
|
|
1132
|
-
head:
|
|
1133
|
-
body:
|
|
1151
|
+
uid: A.value,
|
|
1152
|
+
head: Pr.value.headers,
|
|
1153
|
+
body: Pr.value.rows,
|
|
1134
1154
|
notice: P.value.a11y.translations.tableAvailable,
|
|
1135
1155
|
caption: P.value.a11y.translations.tableCaption
|
|
1136
1156
|
}, null, 8, [
|
|
@@ -1139,22 +1159,22 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1139
1159
|
"body",
|
|
1140
1160
|
"notice",
|
|
1141
1161
|
"caption"
|
|
1142
|
-
])) :
|
|
1143
|
-
P.value.userOptions.buttons.annotator ? (
|
|
1162
|
+
])) : h("", !0),
|
|
1163
|
+
P.value.userOptions.buttons.annotator ? (S(), m(D(jt), {
|
|
1144
1164
|
key: 1,
|
|
1145
|
-
svgRef:
|
|
1165
|
+
svgRef: D(I),
|
|
1146
1166
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1147
1167
|
color: P.value.style.chart.color,
|
|
1148
|
-
active:
|
|
1168
|
+
active: pr.value,
|
|
1149
1169
|
isCursorPointer: F.value,
|
|
1150
|
-
onClose:
|
|
1170
|
+
onClose: mr
|
|
1151
1171
|
}, {
|
|
1152
|
-
"annotator-action-close":
|
|
1153
|
-
"annotator-action-color":
|
|
1154
|
-
"annotator-action-draw":
|
|
1155
|
-
"annotator-action-undo":
|
|
1156
|
-
"annotator-action-redo":
|
|
1157
|
-
"annotator-action-delete":
|
|
1172
|
+
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1173
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1174
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1175
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1176
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1177
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1158
1178
|
_: 3
|
|
1159
1179
|
}, 8, [
|
|
1160
1180
|
"svgRef",
|
|
@@ -1162,20 +1182,20 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1162
1182
|
"color",
|
|
1163
1183
|
"active",
|
|
1164
1184
|
"isCursorPointer"
|
|
1165
|
-
])) :
|
|
1166
|
-
|
|
1185
|
+
])) : h("", !0),
|
|
1186
|
+
wn.value ? (S(), g("div", {
|
|
1167
1187
|
key: 2,
|
|
1168
1188
|
ref_key: "noTitle",
|
|
1169
1189
|
ref: Wt,
|
|
1170
1190
|
class: "vue-data-ui-no-title-space",
|
|
1171
1191
|
style: "height:36px; width: 100%;background:transparent"
|
|
1172
|
-
}, null, 512)) :
|
|
1173
|
-
P.value.style.chart.title.text ? (
|
|
1192
|
+
}, null, 512)) : h("", !0),
|
|
1193
|
+
P.value.style.chart.title.text ? (S(), g("div", {
|
|
1174
1194
|
key: 3,
|
|
1175
1195
|
ref_key: "chartTitle",
|
|
1176
1196
|
ref: Ht,
|
|
1177
1197
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1178
|
-
}, [(
|
|
1198
|
+
}, [(S(), m(Te, {
|
|
1179
1199
|
key: `title_${Kt.value}`,
|
|
1180
1200
|
config: {
|
|
1181
1201
|
title: {
|
|
@@ -1187,16 +1207,16 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1187
1207
|
...P.value.style.chart.title.subtitle
|
|
1188
1208
|
}
|
|
1189
1209
|
}
|
|
1190
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1191
|
-
P.value.userOptions.show && zt.value && (
|
|
1210
|
+
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
1211
|
+
P.value.userOptions.show && zt.value && (D(hn) || D(pn)) ? (S(), m(D(At), {
|
|
1192
1212
|
ref_key: "userOptionsRef",
|
|
1193
1213
|
ref: Yt,
|
|
1194
1214
|
key: `user_option_${Bt.value}`,
|
|
1195
1215
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1196
1216
|
color: P.value.style.chart.color,
|
|
1197
|
-
isPrinting:
|
|
1198
|
-
isImaging:
|
|
1199
|
-
uid:
|
|
1217
|
+
isPrinting: D(bn),
|
|
1218
|
+
isImaging: D(xn),
|
|
1219
|
+
uid: A.value,
|
|
1200
1220
|
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
1201
1221
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
1202
1222
|
hasXls: P.value.userOptions.buttons.csv,
|
|
@@ -1209,29 +1229,29 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1209
1229
|
isTooltip: V.value.showTooltip,
|
|
1210
1230
|
isFullscreen: $.value,
|
|
1211
1231
|
titles: { ...P.value.userOptions.buttonTitles },
|
|
1212
|
-
chartElement:
|
|
1232
|
+
chartElement: M.value,
|
|
1213
1233
|
position: P.value.userOptions.position,
|
|
1214
1234
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1215
|
-
isAnnotation:
|
|
1235
|
+
isAnnotation: pr.value,
|
|
1216
1236
|
callbacks: P.value.userOptions.callbacks,
|
|
1217
1237
|
printScale: P.value.userOptions.print.scale,
|
|
1218
1238
|
tableDialog: P.value.table.useDialog,
|
|
1219
1239
|
isCursorPointer: F.value,
|
|
1220
|
-
onToggleFullscreen:
|
|
1221
|
-
onGeneratePdf:
|
|
1222
|
-
onGenerateCsv:
|
|
1223
|
-
onGenerateImage:
|
|
1224
|
-
onGenerateSvg:
|
|
1225
|
-
onToggleTable:
|
|
1226
|
-
onToggleLabels:
|
|
1227
|
-
onToggleTooltip:
|
|
1228
|
-
onToggleAnnotator:
|
|
1229
|
-
onCopyAlt:
|
|
1230
|
-
style:
|
|
1231
|
-
},
|
|
1240
|
+
onToggleFullscreen: cr,
|
|
1241
|
+
onGeneratePdf: D(Sn),
|
|
1242
|
+
onGenerateCsv: or,
|
|
1243
|
+
onGenerateImage: Cr,
|
|
1244
|
+
onGenerateSvg: Sr,
|
|
1245
|
+
onToggleTable: ur,
|
|
1246
|
+
onToggleLabels: dr,
|
|
1247
|
+
onToggleTooltip: fr,
|
|
1248
|
+
onToggleAnnotator: mr,
|
|
1249
|
+
onCopyAlt: wr,
|
|
1250
|
+
style: x({ visibility: D(hn) ? D(pn) ? "visible" : "hidden" : "visible" })
|
|
1251
|
+
}, Fe({ _: 2 }, [
|
|
1232
1252
|
e.$slots.menuIcon ? {
|
|
1233
1253
|
name: "menuIcon",
|
|
1234
|
-
fn:
|
|
1254
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(y({
|
|
1235
1255
|
isOpen: t,
|
|
1236
1256
|
color: n
|
|
1237
1257
|
})), void 0, !0)]),
|
|
@@ -1239,42 +1259,42 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1239
1259
|
} : void 0,
|
|
1240
1260
|
e.$slots.optionTooltip ? {
|
|
1241
1261
|
name: "optionTooltip",
|
|
1242
|
-
fn:
|
|
1262
|
+
fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1243
1263
|
key: "1"
|
|
1244
1264
|
} : void 0,
|
|
1245
1265
|
e.$slots.optionPdf ? {
|
|
1246
1266
|
name: "optionPdf",
|
|
1247
|
-
fn:
|
|
1267
|
+
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1248
1268
|
key: "2"
|
|
1249
1269
|
} : void 0,
|
|
1250
1270
|
e.$slots.optionCsv ? {
|
|
1251
1271
|
name: "optionCsv",
|
|
1252
|
-
fn:
|
|
1272
|
+
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1253
1273
|
key: "3"
|
|
1254
1274
|
} : void 0,
|
|
1255
1275
|
e.$slots.optionImg ? {
|
|
1256
1276
|
name: "optionImg",
|
|
1257
|
-
fn:
|
|
1277
|
+
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1258
1278
|
key: "4"
|
|
1259
1279
|
} : void 0,
|
|
1260
1280
|
e.$slots.optionSvg ? {
|
|
1261
1281
|
name: "optionSvg",
|
|
1262
|
-
fn:
|
|
1282
|
+
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1263
1283
|
key: "5"
|
|
1264
1284
|
} : void 0,
|
|
1265
1285
|
e.$slots.optionTable ? {
|
|
1266
1286
|
name: "optionTable",
|
|
1267
|
-
fn:
|
|
1287
|
+
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1268
1288
|
key: "6"
|
|
1269
1289
|
} : void 0,
|
|
1270
1290
|
e.$slots.optionLabels ? {
|
|
1271
1291
|
name: "optionLabels",
|
|
1272
|
-
fn:
|
|
1292
|
+
fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1273
1293
|
key: "7"
|
|
1274
1294
|
} : void 0,
|
|
1275
1295
|
e.$slots.optionFullscreen ? {
|
|
1276
1296
|
name: "optionFullscreen",
|
|
1277
|
-
fn:
|
|
1297
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(y({
|
|
1278
1298
|
toggleFullscreen: t,
|
|
1279
1299
|
isFullscreen: n
|
|
1280
1300
|
})), void 0, !0)]),
|
|
@@ -1282,7 +1302,7 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1282
1302
|
} : void 0,
|
|
1283
1303
|
e.$slots.optionAnnotator ? {
|
|
1284
1304
|
name: "optionAnnotator",
|
|
1285
|
-
fn:
|
|
1305
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(y({
|
|
1286
1306
|
toggleAnnotator: t,
|
|
1287
1307
|
isAnnotator: n
|
|
1288
1308
|
})), void 0, !0)]),
|
|
@@ -1290,47 +1310,48 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1290
1310
|
} : void 0,
|
|
1291
1311
|
e.$slots.optionAltCopy ? {
|
|
1292
1312
|
name: "optionAltCopy",
|
|
1293
|
-
fn:
|
|
1313
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1294
1314
|
key: "10"
|
|
1295
1315
|
} : void 0,
|
|
1296
1316
|
e.$slots["custom-menu-before"] ? {
|
|
1297
1317
|
name: "custom-menu-before",
|
|
1298
|
-
fn:
|
|
1318
|
+
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1299
1319
|
key: "11"
|
|
1300
1320
|
} : void 0,
|
|
1301
1321
|
e.$slots["custom-menu-after"] ? {
|
|
1302
1322
|
name: "custom-menu-after",
|
|
1303
|
-
fn:
|
|
1323
|
+
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1304
1324
|
key: "12"
|
|
1305
1325
|
} : void 0
|
|
1306
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1307
|
-
|
|
1326
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
|
|
1327
|
+
_("div", Ze, [(S(), g("svg", {
|
|
1308
1328
|
ref_key: "svgRef",
|
|
1309
1329
|
ref: I,
|
|
1310
|
-
xmlns:
|
|
1311
|
-
class:
|
|
1330
|
+
xmlns: D(le),
|
|
1331
|
+
class: Be({
|
|
1312
1332
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1313
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1333
|
+
"vue-data-ui-fulscreen--off": !$.value,
|
|
1334
|
+
"vue-data-ui-no-transition": !D(sn)
|
|
1314
1335
|
}),
|
|
1315
1336
|
viewBox: `0 0 ${z.value} ${B.value}`,
|
|
1316
|
-
style:
|
|
1317
|
-
"aria-describedby": `chart-instructions-${
|
|
1337
|
+
style: x(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color};`),
|
|
1338
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1318
1339
|
tabindex: "0",
|
|
1319
|
-
onFocus:
|
|
1320
|
-
onBlur:
|
|
1321
|
-
onKeydown:
|
|
1340
|
+
onFocus: jr,
|
|
1341
|
+
onBlur: Mr,
|
|
1342
|
+
onKeydown: Nr
|
|
1322
1343
|
}, [
|
|
1323
|
-
|
|
1324
|
-
e.$slots["chart-background"] ? (
|
|
1344
|
+
Le(D(Mt)),
|
|
1345
|
+
e.$slots["chart-background"] ? (S(), g("foreignObject", {
|
|
1325
1346
|
key: 0,
|
|
1326
1347
|
x: W.value.left,
|
|
1327
1348
|
y: W.value.top,
|
|
1328
1349
|
width: Math.max(.1, W.value.width),
|
|
1329
1350
|
height: Math.max(.1, W.value.height),
|
|
1330
1351
|
style: { pointerEvents: "none" }
|
|
1331
|
-
}, [
|
|
1332
|
-
P.value.style.chart.grid.show ? (
|
|
1333
|
-
P.value.style.chart.grid.horizontalGrid.show ? (
|
|
1352
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : h("", !0),
|
|
1353
|
+
P.value.style.chart.grid.show ? (S(), g("g", et, [
|
|
1354
|
+
P.value.style.chart.grid.horizontalGrid.show ? (S(), g("g", tt, [(S(!0), g(f, null, w(Zn.value, (e) => (S(), g("line", {
|
|
1334
1355
|
x1: e.x1,
|
|
1335
1356
|
x2: e.x2,
|
|
1336
1357
|
y1: e.y,
|
|
@@ -1339,8 +1360,8 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1339
1360
|
"stroke-width": P.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1340
1361
|
"stroke-dasharray": P.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
1341
1362
|
"stroke-linecap": "round"
|
|
1342
|
-
}, null, 8,
|
|
1343
|
-
P.value.style.chart.grid.verticalGrid.show ? (
|
|
1363
|
+
}, null, 8, nt))), 256))])) : h("", !0),
|
|
1364
|
+
P.value.style.chart.grid.verticalGrid.show ? (S(), g("g", rt, [(S(!0), g(f, null, w(K.value, (e, t) => (S(), g("line", {
|
|
1344
1365
|
x1: W.value.left + (t + 1) * W.value.stripWidth,
|
|
1345
1366
|
x2: W.value.left + (t + 1) * W.value.stripWidth,
|
|
1346
1367
|
y1: W.value.top,
|
|
@@ -1349,8 +1370,8 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1349
1370
|
"stroke-width": P.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
1350
1371
|
"stroke-dasharray": P.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
1351
1372
|
"stroke-linecap": "round"
|
|
1352
|
-
}, null, 8,
|
|
1353
|
-
|
|
1373
|
+
}, null, 8, it))), 256))])) : h("", !0),
|
|
1374
|
+
_("line", {
|
|
1354
1375
|
x1: W.value.left,
|
|
1355
1376
|
x2: W.value.left,
|
|
1356
1377
|
y1: W.value.top,
|
|
@@ -1358,8 +1379,8 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1358
1379
|
stroke: P.value.style.chart.grid.stroke,
|
|
1359
1380
|
"stroke-width": P.value.style.chart.grid.strokeWidth,
|
|
1360
1381
|
"stroke-linecap": "round"
|
|
1361
|
-
}, null, 8,
|
|
1362
|
-
|
|
1382
|
+
}, null, 8, at),
|
|
1383
|
+
_("line", {
|
|
1363
1384
|
x1: W.value.left,
|
|
1364
1385
|
x2: W.value.right,
|
|
1365
1386
|
y1: W.value.bottom,
|
|
@@ -1367,20 +1388,20 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1367
1388
|
stroke: P.value.style.chart.grid.stroke,
|
|
1368
1389
|
"stroke-width": P.value.style.chart.grid.strokeWidth,
|
|
1369
1390
|
"stroke-linecap": "round"
|
|
1370
|
-
}, null, 8,
|
|
1371
|
-
])) :
|
|
1372
|
-
P.value.style.chart.labels.yAxisLabels.show ? (
|
|
1391
|
+
}, null, 8, ot)
|
|
1392
|
+
])) : h("", !0),
|
|
1393
|
+
P.value.style.chart.labels.yAxisLabels.show ? (S(), g("g", {
|
|
1373
1394
|
key: 2,
|
|
1374
1395
|
ref_key: "scaleLabels",
|
|
1375
1396
|
ref: tn
|
|
1376
|
-
}, [(
|
|
1377
|
-
class:
|
|
1397
|
+
}, [(S(!0), g(f, null, w(Zn.value, (e, t) => (S(), g("text", {
|
|
1398
|
+
class: Be({ "vue-data-ui-transition": D(sn) }),
|
|
1378
1399
|
key: `sl_${t}`,
|
|
1379
1400
|
transform: `translate(${e.x1 + P.value.style.chart.labels.yAxisLabels.offsetX - 5}, ${e.y + P.value.style.chart.labels.yAxisLabels.fontSize / 3})`,
|
|
1380
1401
|
fill: P.value.style.chart.labels.yAxisLabels.color,
|
|
1381
1402
|
"font-size": P.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1382
1403
|
"text-anchor": "end"
|
|
1383
|
-
},
|
|
1404
|
+
}, E(D(ie)(P.value.style.chart.labels.formatter, e.value, D(l)({
|
|
1384
1405
|
p: P.value.style.chart.labels.prefix,
|
|
1385
1406
|
v: e.value,
|
|
1386
1407
|
s: P.value.style.chart.labels.suffix,
|
|
@@ -1388,34 +1409,34 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1388
1409
|
}), {
|
|
1389
1410
|
datapoint: e,
|
|
1390
1411
|
seriesIndex: t
|
|
1391
|
-
})), 11,
|
|
1392
|
-
P.value.style.chart.labels.xAxisLabels.show ? (
|
|
1412
|
+
})), 11, st))), 128))], 512)) : h("", !0),
|
|
1413
|
+
P.value.style.chart.labels.xAxisLabels.show ? (S(), g("g", {
|
|
1393
1414
|
key: 3,
|
|
1394
1415
|
ref_key: "timeLabelsEls",
|
|
1395
1416
|
ref: en
|
|
1396
|
-
}, [(
|
|
1417
|
+
}, [(S(!0), g(f, null, w(gr.value, (e, t) => (S(), g("g", null, [String(e).includes("\n") ? (S(), g("text", {
|
|
1397
1418
|
key: 1,
|
|
1398
1419
|
class: "vue-ui-strip-plot-category-name",
|
|
1399
1420
|
transform: `translate(${W.value.left + (t + 1) * W.value.stripWidth - W.value.stripWidth / 2}, ${W.value.bottom + P.value.style.chart.labels.xAxisLabels.fontSize * 2 + P.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${P.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1400
1421
|
"font-size": P.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1401
1422
|
fill: P.value.style.chart.labels.xAxisLabels.color,
|
|
1402
1423
|
"text-anchor": P.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : P.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
1403
|
-
innerHTML:
|
|
1404
|
-
content:
|
|
1424
|
+
innerHTML: D(r)({
|
|
1425
|
+
content: D(ee)(String(e)),
|
|
1405
1426
|
fontSize: P.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1406
1427
|
fill: P.value.style.chart.labels.xAxisLabels.color,
|
|
1407
1428
|
x: 0,
|
|
1408
1429
|
y: 0
|
|
1409
1430
|
})
|
|
1410
|
-
}, null, 8,
|
|
1431
|
+
}, null, 8, lt)) : (S(), g("text", {
|
|
1411
1432
|
key: 0,
|
|
1412
1433
|
class: "vue-ui-strip-plot-category-name",
|
|
1413
1434
|
transform: `translate(${W.value.left + (t + 1) * W.value.stripWidth - W.value.stripWidth / 2}, ${W.value.bottom + P.value.style.chart.labels.xAxisLabels.fontSize * 2 + P.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${P.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1414
1435
|
"font-size": P.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1415
1436
|
fill: P.value.style.chart.labels.xAxisLabels.color,
|
|
1416
1437
|
"text-anchor": P.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : P.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
1417
|
-
},
|
|
1418
|
-
P.value.style.chart.labels.axis.yLabel ? (
|
|
1438
|
+
}, E(String(e)), 9, ct))]))), 256))], 512)) : h("", !0),
|
|
1439
|
+
P.value.style.chart.labels.axis.yLabel ? (S(), g("text", {
|
|
1419
1440
|
key: 4,
|
|
1420
1441
|
ref_key: "yAxisLabel",
|
|
1421
1442
|
ref: $t,
|
|
@@ -1423,8 +1444,8 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1423
1444
|
"font-size": P.value.style.chart.labels.axis.fontSize,
|
|
1424
1445
|
transform: `translate(${P.value.style.chart.labels.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1425
1446
|
"text-anchor": "middle"
|
|
1426
|
-
},
|
|
1427
|
-
P.value.style.chart.labels.axis.xLabel ? (
|
|
1447
|
+
}, E(P.value.style.chart.labels.axis.yLabel), 9, ut)) : h("", !0),
|
|
1448
|
+
P.value.style.chart.labels.axis.xLabel ? (S(), g("text", {
|
|
1428
1449
|
key: 5,
|
|
1429
1450
|
ref_key: "xAxisLabel",
|
|
1430
1451
|
ref: Qt,
|
|
@@ -1433,33 +1454,33 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1433
1454
|
x: W.value.left + W.value.width / 2,
|
|
1434
1455
|
y: B.value - P.value.style.chart.labels.axis.fontSize / 3,
|
|
1435
1456
|
"text-anchor": "middle"
|
|
1436
|
-
},
|
|
1437
|
-
|
|
1438
|
-
|
|
1457
|
+
}, E(P.value.style.chart.labels.axis.xLabel), 9, dt)) : h("", !0),
|
|
1458
|
+
Q.value ? (S(), g(f, { key: 6 }, [
|
|
1459
|
+
_("line", {
|
|
1439
1460
|
x1: W.value.left,
|
|
1440
1461
|
x2: W.value.right,
|
|
1441
|
-
y1:
|
|
1442
|
-
y2:
|
|
1443
|
-
stroke:
|
|
1462
|
+
y1: Q.value.y,
|
|
1463
|
+
y2: Q.value.y,
|
|
1464
|
+
stroke: Q.value.color,
|
|
1444
1465
|
"stroke-width": 1,
|
|
1445
|
-
class:
|
|
1446
|
-
}, null, 10,
|
|
1447
|
-
|
|
1466
|
+
class: Be({ "select-circle": P.value.useCssAnimation })
|
|
1467
|
+
}, null, 10, ft),
|
|
1468
|
+
_("circle", {
|
|
1448
1469
|
cx: W.value.left,
|
|
1449
|
-
cy:
|
|
1470
|
+
cy: Q.value.y,
|
|
1450
1471
|
r: 3,
|
|
1451
|
-
fill:
|
|
1452
|
-
class:
|
|
1453
|
-
}, null, 10,
|
|
1454
|
-
|
|
1472
|
+
fill: Q.value.color,
|
|
1473
|
+
class: Be({ "select-circle": P.value.useCssAnimation })
|
|
1474
|
+
}, null, 10, pt),
|
|
1475
|
+
_("circle", {
|
|
1455
1476
|
cx: W.value.right,
|
|
1456
|
-
cy:
|
|
1477
|
+
cy: Q.value.y,
|
|
1457
1478
|
r: 3,
|
|
1458
|
-
fill:
|
|
1459
|
-
class:
|
|
1460
|
-
}, null, 10,
|
|
1461
|
-
], 64)) :
|
|
1462
|
-
|
|
1479
|
+
fill: Q.value.color,
|
|
1480
|
+
class: Be({ "select-circle": P.value.useCssAnimation })
|
|
1481
|
+
}, null, 10, mt)
|
|
1482
|
+
], 64)) : h("", !0),
|
|
1483
|
+
_("defs", null, [(S(!0), g(f, null, w(K.value, (e) => (S(), m(Ae, {
|
|
1463
1484
|
t: "radial",
|
|
1464
1485
|
id: e.id,
|
|
1465
1486
|
key: `r_${e.id}`,
|
|
@@ -1467,12 +1488,12 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1467
1488
|
stops: [
|
|
1468
1489
|
[
|
|
1469
1490
|
"10%",
|
|
1470
|
-
|
|
1491
|
+
D(o)(e.color, P.value.style.chart.plots.gradient.intensity / 100),
|
|
1471
1492
|
1
|
|
1472
1493
|
],
|
|
1473
1494
|
[
|
|
1474
1495
|
"90%",
|
|
1475
|
-
|
|
1496
|
+
D(u)(e.color, .1),
|
|
1476
1497
|
1
|
|
1477
1498
|
],
|
|
1478
1499
|
[
|
|
@@ -1482,7 +1503,7 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1482
1503
|
]
|
|
1483
1504
|
]
|
|
1484
1505
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1485
|
-
(
|
|
1506
|
+
(S(!0), g(f, null, w(Un.value, (e, n) => (S(), g(f, { key: e.id }, [e.path ? (S(), g("path", {
|
|
1486
1507
|
key: 0,
|
|
1487
1508
|
d: e.path,
|
|
1488
1509
|
fill: e.fill,
|
|
@@ -1490,17 +1511,17 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1490
1511
|
"fill-opacity": P.value.style.chart.violin.opacity,
|
|
1491
1512
|
"stroke-opacity": P.value.style.chart.violin.strokeOpacity,
|
|
1492
1513
|
"stroke-width": P.value.style.chart.violin.strokeWidth,
|
|
1493
|
-
style:
|
|
1514
|
+
style: x({
|
|
1494
1515
|
pointerEvents: Y.value ? "auto" : "none",
|
|
1495
1516
|
cursor: Y.value && F.value ? "pointer" : "default"
|
|
1496
1517
|
}),
|
|
1497
|
-
onMouseenter: (e) => Y.value &&
|
|
1498
|
-
boxPlot:
|
|
1518
|
+
onMouseenter: (e) => Y.value && X.value[n] && ir({
|
|
1519
|
+
boxPlot: X.value[n],
|
|
1499
1520
|
seriesIndex: n,
|
|
1500
1521
|
triggerMode: "pointer"
|
|
1501
1522
|
}),
|
|
1502
|
-
onMouseleave: t[0] ||= (e) => Y.value &&
|
|
1503
|
-
}, null, 44,
|
|
1523
|
+
onMouseleave: t[0] ||= (e) => Y.value && rr()
|
|
1524
|
+
}, null, 44, ht)) : h("", !0), (S(!0), g(f, null, w(e.connectors, (t, n) => (S(), g("line", {
|
|
1504
1525
|
key: `violin_connector_${e.id}_${n}`,
|
|
1505
1526
|
x1: t.x,
|
|
1506
1527
|
x2: t.x,
|
|
@@ -1511,69 +1532,69 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1511
1532
|
"stroke-width": P.value.style.chart.violin.strokeWidth,
|
|
1512
1533
|
"stroke-linecap": "round",
|
|
1513
1534
|
style: { "pointer-events": "none" }
|
|
1514
|
-
}, null, 8,
|
|
1515
|
-
(
|
|
1535
|
+
}, null, 8, gt))), 128))], 64))), 128)),
|
|
1536
|
+
(S(!0), g(f, null, w(X.value, (e, t) => (S(), g("g", {
|
|
1516
1537
|
key: `boxplot_${e.id}`,
|
|
1517
|
-
style:
|
|
1518
|
-
onMouseenter: (n) =>
|
|
1538
|
+
style: x({ cursor: F.value ? "pointer" : "default" }),
|
|
1539
|
+
onMouseenter: (n) => ir({
|
|
1519
1540
|
boxPlot: e,
|
|
1520
1541
|
seriesIndex: t,
|
|
1521
1542
|
triggerMode: "pointer"
|
|
1522
1543
|
}),
|
|
1523
|
-
onMouseleave:
|
|
1544
|
+
onMouseleave: rr
|
|
1524
1545
|
}, [
|
|
1525
|
-
|
|
1546
|
+
_("line", {
|
|
1526
1547
|
x1: e.centerX,
|
|
1527
1548
|
x2: e.centerX,
|
|
1528
1549
|
y1: e.upperY,
|
|
1529
1550
|
y2: e.lowerY,
|
|
1530
|
-
stroke:
|
|
1551
|
+
stroke: D(u)(e.boxPlotColor, .2),
|
|
1531
1552
|
"stroke-width": Math.max(1, P.value.style.chart.violin.strokeWidth),
|
|
1532
1553
|
"stroke-linecap": "round"
|
|
1533
|
-
}, null, 8,
|
|
1534
|
-
|
|
1554
|
+
}, null, 8, vt),
|
|
1555
|
+
_("rect", {
|
|
1535
1556
|
x: e.boxLeft,
|
|
1536
1557
|
y: Math.min(e.q1Y, e.q3Y),
|
|
1537
1558
|
width: e.boxWidth,
|
|
1538
1559
|
height: Math.max(1, Math.abs(e.q3Y - e.q1Y)),
|
|
1539
1560
|
fill: e.boxPlotColor,
|
|
1540
|
-
stroke:
|
|
1561
|
+
stroke: D(u)(e.boxPlotColor, .2),
|
|
1541
1562
|
"stroke-width": Math.max(1, P.value.style.chart.violin.strokeWidth),
|
|
1542
1563
|
rx: e.boxWidth / 20
|
|
1543
|
-
}, null, 8,
|
|
1544
|
-
|
|
1564
|
+
}, null, 8, yt),
|
|
1565
|
+
_("circle", {
|
|
1545
1566
|
cx: e.boxLeft + e.boxWidth / 2,
|
|
1546
1567
|
cy: e.medianY,
|
|
1547
1568
|
r: e.boxWidth / 3 * Math.min(1, P.value.style.chart.violin.boxPlot.medianCircleRadiusRatio),
|
|
1548
1569
|
fill: P.value.style.chart.violin.boxPlot.medianCircleFill,
|
|
1549
|
-
stroke:
|
|
1550
|
-
}, null, 8,
|
|
1551
|
-
], 44,
|
|
1552
|
-
(
|
|
1570
|
+
stroke: D(u)(e.boxPlotColor, .2)
|
|
1571
|
+
}, null, 8, bt)
|
|
1572
|
+
], 44, _t))), 128)),
|
|
1573
|
+
(S(!0), g(f, null, w(J.value, (t, n) => (S(), g(f, null, [Y.value ? h("", !0) : (S(!0), g(f, { key: 0 }, w(t.plots, (n, r) => (S(), m(Ee, Re({ ref_for: !0 }, e.$attrs, {
|
|
1553
1574
|
plot: {
|
|
1554
1575
|
x: n.x,
|
|
1555
1576
|
y: Gt.value ? n.y : W.value.top
|
|
1556
1577
|
},
|
|
1557
|
-
radius:
|
|
1578
|
+
radius: Q.value && Q.value.id === n.id ? H.value * 1.5 : H.value,
|
|
1558
1579
|
shape: P.value.style.chart.plots.shape,
|
|
1559
1580
|
stroke: P.value.style.chart.plots.stroke,
|
|
1560
1581
|
strokeWidth: P.value.style.chart.plots.strokeWidth,
|
|
1561
1582
|
color: P.value.style.chart.plots.gradient.show ? `url(#${t.id})` : t.color,
|
|
1562
|
-
style: `transition: all 0.2s ease-in-out; opacity:${
|
|
1583
|
+
style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : P.value.style.chart.plots.opacity};${En.value ? `transition-delay:${r * 50}ms` : ""}`,
|
|
1563
1584
|
class: {
|
|
1564
|
-
"vue-ui-strip-plot-animated": P.value.useCssAnimation &&
|
|
1565
|
-
"vue-ui-strip-plot-select-circle": P.value.useCssAnimation && !
|
|
1585
|
+
"vue-ui-strip-plot-animated": P.value.useCssAnimation && En.value && !D(un),
|
|
1586
|
+
"vue-ui-strip-plot-select-circle": P.value.useCssAnimation && !En.value
|
|
1566
1587
|
},
|
|
1567
|
-
onMouseenter: (e) =>
|
|
1588
|
+
onMouseenter: (e) => nr({
|
|
1568
1589
|
datapoint: n,
|
|
1569
1590
|
seriesIndex: r,
|
|
1570
1591
|
triggerMode: "pointer"
|
|
1571
1592
|
}),
|
|
1572
|
-
onMouseleave: (e) =>
|
|
1593
|
+
onMouseleave: (e) => $n({
|
|
1573
1594
|
datapoint: n,
|
|
1574
1595
|
seriesIndex: r
|
|
1575
1596
|
}),
|
|
1576
|
-
onClick: (e) =>
|
|
1597
|
+
onClick: (e) => er({
|
|
1577
1598
|
datapoint: n,
|
|
1578
1599
|
seriesIndex: r
|
|
1579
1600
|
})
|
|
@@ -1589,15 +1610,15 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1589
1610
|
"onMouseenter",
|
|
1590
1611
|
"onMouseleave",
|
|
1591
1612
|
"onClick"
|
|
1592
|
-
]))), 256)), V.value.dataLabels.show && !Y.value ? (
|
|
1613
|
+
]))), 256)), V.value.dataLabels.show && !Y.value ? (S(), g("g", xt, [(S(!0), g(f, null, w(t.plots, (e, n) => (S(), g(f, null, [n === t.plots.length - 1 || Q.value && Q.value.id === e.id && !V.value.showTooltip ? (S(), g("text", {
|
|
1593
1614
|
key: 0,
|
|
1594
1615
|
x: e.x,
|
|
1595
|
-
y: e.y + P.value.style.chart.labels.bestPlotLabel.offsetY - H.value * (
|
|
1616
|
+
y: e.y + P.value.style.chart.labels.bestPlotLabel.offsetY - H.value * (Q.value && Q.value.id === e.id && !V.value.showTooltip ? 2 : 1.5),
|
|
1596
1617
|
"font-size": P.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
1597
1618
|
fill: P.value.style.chart.labels.bestPlotLabel.color,
|
|
1598
1619
|
"text-anchor": "middle",
|
|
1599
|
-
style:
|
|
1600
|
-
},
|
|
1620
|
+
style: x(`opacity:${P.value.useCssAnimation ? +!En.value : 1};transition:opacity 0.2s ease-in;`)
|
|
1621
|
+
}, E(e.name) + " " + E(P.value.style.chart.labels.bestPlotLabel.showValue ? D(ie)(P.value.style.chart.labels.formatter, e.value, D(l)({
|
|
1601
1622
|
p: `(${P.value.style.chart.labels.prefix}`,
|
|
1602
1623
|
v: e.value,
|
|
1603
1624
|
s: `${P.value.style.chart.labels.suffix})`,
|
|
@@ -1605,28 +1626,28 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1605
1626
|
}), {
|
|
1606
1627
|
datapoint: e,
|
|
1607
1628
|
seriesIndex: n
|
|
1608
|
-
}) : ""), 13,
|
|
1609
|
-
|
|
1629
|
+
}) : ""), 13, St)) : h("", !0)], 64))), 256))])) : h("", !0)], 64))), 256)),
|
|
1630
|
+
T(e.$slots, "svg", { svg: {
|
|
1610
1631
|
...W.value,
|
|
1611
|
-
isPrintingImg:
|
|
1632
|
+
isPrintingImg: D(bn) || D(xn) || Xt.value,
|
|
1612
1633
|
isPrintingSvg: Zt.value,
|
|
1613
|
-
boxPlotSummaries:
|
|
1634
|
+
boxPlotSummaries: X.value,
|
|
1614
1635
|
series: K.value
|
|
1615
1636
|
} }, void 0, !0)
|
|
1616
|
-
], 46,
|
|
1637
|
+
], 46, Qe)), e.$slots.hint ? (S(), g("div", Ct, [T(e.$slots, "hint", b(y({
|
|
1617
1638
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1618
|
-
isVisible:
|
|
1619
|
-
})), void 0, !0)])) :
|
|
1620
|
-
e.$slots.watermark ? (
|
|
1621
|
-
e.$slots.source ? (
|
|
1639
|
+
isVisible: on.value
|
|
1640
|
+
})), void 0, !0)])) : h("", !0)]),
|
|
1641
|
+
e.$slots.watermark ? (S(), g("div", wt, [T(e.$slots, "watermark", b(y({ isPrinting: D(bn) || D(xn) || Xt.value || Zt.value })), void 0, !0)])) : h("", !0),
|
|
1642
|
+
e.$slots.source ? (S(), g("div", {
|
|
1622
1643
|
key: 6,
|
|
1623
1644
|
ref_key: "source",
|
|
1624
1645
|
ref: Ut,
|
|
1625
1646
|
dir: "auto"
|
|
1626
|
-
}, [
|
|
1627
|
-
|
|
1647
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1648
|
+
Le(D(Et), {
|
|
1628
1649
|
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1629
|
-
show: V.value.showTooltip &&
|
|
1650
|
+
show: V.value.showTooltip && j.value,
|
|
1630
1651
|
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
1631
1652
|
color: P.value.style.chart.tooltip.color,
|
|
1632
1653
|
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
@@ -1637,20 +1658,20 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1637
1658
|
position: P.value.style.chart.tooltip.position,
|
|
1638
1659
|
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1639
1660
|
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1640
|
-
parent:
|
|
1661
|
+
parent: M.value,
|
|
1641
1662
|
content: Vt.value,
|
|
1642
1663
|
isFullscreen: $.value,
|
|
1643
|
-
isCustom:
|
|
1664
|
+
isCustom: D(fe)(P.value.style.chart.tooltip.customFormat),
|
|
1644
1665
|
smooth: P.value.style.chart.tooltip.smooth,
|
|
1645
1666
|
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
1646
1667
|
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1647
1668
|
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1648
1669
|
isA11yMode: N.value === "keyboard",
|
|
1649
|
-
a11yPosition:
|
|
1670
|
+
a11yPosition: an.value
|
|
1650
1671
|
}, {
|
|
1651
|
-
"tooltip-before":
|
|
1652
|
-
tooltip:
|
|
1653
|
-
"tooltip-after":
|
|
1672
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(y({ ...Qn.value })), void 0, !0)]),
|
|
1673
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(y({ ...Qn.value })), void 0, !0)]),
|
|
1674
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(y({ ...Qn.value })), void 0, !0)]),
|
|
1654
1675
|
_: 3
|
|
1655
1676
|
}, 8, [
|
|
1656
1677
|
"teleportTo",
|
|
@@ -1676,30 +1697,30 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1676
1697
|
"isA11yMode",
|
|
1677
1698
|
"a11yPosition"
|
|
1678
1699
|
]),
|
|
1679
|
-
zt.value && P.value.userOptions.buttons.table ? (
|
|
1700
|
+
zt.value && P.value.userOptions.buttons.table ? (S(), m(Ue(_r.value.component), Re({ key: 7 }, _r.value.props, {
|
|
1680
1701
|
ref_key: "tableUnit",
|
|
1681
1702
|
ref: Jt,
|
|
1682
|
-
onClose:
|
|
1683
|
-
}),
|
|
1684
|
-
content:
|
|
1703
|
+
onClose: vr
|
|
1704
|
+
}), Fe({
|
|
1705
|
+
content: O(() => [(S(), m(D(kt), {
|
|
1685
1706
|
key: `table_${qt.value}`,
|
|
1686
|
-
colNames:
|
|
1687
|
-
head:
|
|
1688
|
-
body:
|
|
1689
|
-
config:
|
|
1690
|
-
title: P.value.table.useDialog ? "" :
|
|
1707
|
+
colNames: sr.value.colNames,
|
|
1708
|
+
head: sr.value.head,
|
|
1709
|
+
body: sr.value.body,
|
|
1710
|
+
config: sr.value.config,
|
|
1711
|
+
title: P.value.table.useDialog ? "" : _r.value.title,
|
|
1691
1712
|
withCloseButton: !P.value.table.useDialog,
|
|
1692
1713
|
isCursorPointer: F.value,
|
|
1693
|
-
onClose:
|
|
1714
|
+
onClose: vr
|
|
1694
1715
|
}, {
|
|
1695
|
-
th:
|
|
1716
|
+
th: O(({ th: e }) => [_("div", {
|
|
1696
1717
|
innerHTML: e,
|
|
1697
1718
|
style: {
|
|
1698
1719
|
display: "flex",
|
|
1699
1720
|
"align-items": "center"
|
|
1700
1721
|
}
|
|
1701
|
-
}, null, 8,
|
|
1702
|
-
td:
|
|
1722
|
+
}, null, 8, Tt)]),
|
|
1723
|
+
td: O(({ td: e }) => [Ie(E(e.name || e), 1)]),
|
|
1703
1724
|
_: 1
|
|
1704
1725
|
}, 8, [
|
|
1705
1726
|
"colNames",
|
|
@@ -1713,24 +1734,24 @@ var qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1713
1734
|
_: 2
|
|
1714
1735
|
}, [P.value.table.useDialog ? {
|
|
1715
1736
|
name: "title",
|
|
1716
|
-
fn:
|
|
1737
|
+
fn: O(() => [Ie(E(_r.value.title), 1)]),
|
|
1717
1738
|
key: "0"
|
|
1718
1739
|
} : void 0, P.value.table.useDialog ? {
|
|
1719
1740
|
name: "actions",
|
|
1720
|
-
fn:
|
|
1741
|
+
fn: O(() => [_("button", {
|
|
1721
1742
|
tabindex: "0",
|
|
1722
1743
|
class: "vue-ui-user-options-button",
|
|
1723
|
-
onClick: t[1] ||= (e) =>
|
|
1724
|
-
style:
|
|
1725
|
-
}, [
|
|
1744
|
+
onClick: t[1] ||= (e) => or(P.value.userOptions.callbacks.csv),
|
|
1745
|
+
style: x({ cursor: F.value ? "pointer" : "default" })
|
|
1746
|
+
}, [Le(D(Dt), {
|
|
1726
1747
|
name: "fileCsv",
|
|
1727
|
-
stroke:
|
|
1748
|
+
stroke: _r.value.props.color
|
|
1728
1749
|
}, null, 8, ["stroke"])], 4)]),
|
|
1729
1750
|
key: "1"
|
|
1730
|
-
} : void 0]), 1040)) :
|
|
1731
|
-
|
|
1732
|
-
], 46,
|
|
1751
|
+
} : void 0]), 1040)) : h("", !0),
|
|
1752
|
+
T(e.$slots, "skeleton", {}, () => [D(un) ? (S(), m(ve, { key: 0 })) : h("", !0)], !0)
|
|
1753
|
+
], 46, Ye));
|
|
1733
1754
|
}
|
|
1734
|
-
}, [["__scopeId", "data-v-
|
|
1755
|
+
}, [["__scopeId", "data-v-3b98774b"]]);
|
|
1735
1756
|
//#endregion
|
|
1736
|
-
export {
|
|
1757
|
+
export { Je as n, Et as t };
|