vue-data-ui 3.22.7 → 3.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -0,0 +1,1729 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, Et as n, G as r, Gt as i, J as a, Kt as o, Mt as s, S as c, T as ee, U as te, Wt as ne, Yt as re, Z as ie, b as ae, dt as oe, h as se, i as ce, kt as le, ot as ue, q as de, t as fe, v as pe, y as l, yt as me } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as he } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ge } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ye } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as be } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
+
import { t as Ce } from "./img-DnP3eXuv.js";
|
|
11
|
+
import { n as we } from "./Title-CcNiYzEo.js";
|
|
12
|
+
import { t as Te } from "./Shape-UpH0a4Ur.js";
|
|
13
|
+
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { c as De } from "./canvas-lib-BOP_HS11.js";
|
|
15
|
+
import { t as Oe } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
+
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Me } from "./vue_ui_strip_plot-BaHbnnwN.js";
|
|
20
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as ze, onMounted as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as We, watchEffect as Ge, withCtx as E } from "vue";
|
|
21
|
+
//#region src/components/vue-ui-strip-plot.vue
|
|
22
|
+
var Ke = /* @__PURE__ */ e({ default: () => Ot }), qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
23
|
+
"xmlns",
|
|
24
|
+
"viewBox",
|
|
25
|
+
"aria-describedby"
|
|
26
|
+
], Ze = [
|
|
27
|
+
"x",
|
|
28
|
+
"y",
|
|
29
|
+
"width",
|
|
30
|
+
"height"
|
|
31
|
+
], Qe = { key: 1 }, $e = { key: 0 }, et = [
|
|
32
|
+
"x1",
|
|
33
|
+
"x2",
|
|
34
|
+
"y1",
|
|
35
|
+
"y2",
|
|
36
|
+
"stroke",
|
|
37
|
+
"stroke-width",
|
|
38
|
+
"stroke-dasharray"
|
|
39
|
+
], tt = { key: 1 }, nt = [
|
|
40
|
+
"x1",
|
|
41
|
+
"x2",
|
|
42
|
+
"y1",
|
|
43
|
+
"y2",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width",
|
|
46
|
+
"stroke-dasharray"
|
|
47
|
+
], rt = [
|
|
48
|
+
"x1",
|
|
49
|
+
"x2",
|
|
50
|
+
"y1",
|
|
51
|
+
"y2",
|
|
52
|
+
"stroke",
|
|
53
|
+
"stroke-width"
|
|
54
|
+
], it = [
|
|
55
|
+
"x1",
|
|
56
|
+
"x2",
|
|
57
|
+
"y1",
|
|
58
|
+
"y2",
|
|
59
|
+
"stroke",
|
|
60
|
+
"stroke-width"
|
|
61
|
+
], at = [
|
|
62
|
+
"x",
|
|
63
|
+
"y",
|
|
64
|
+
"fill",
|
|
65
|
+
"font-size"
|
|
66
|
+
], ot = [
|
|
67
|
+
"transform",
|
|
68
|
+
"font-size",
|
|
69
|
+
"fill",
|
|
70
|
+
"text-anchor"
|
|
71
|
+
], st = [
|
|
72
|
+
"transform",
|
|
73
|
+
"font-size",
|
|
74
|
+
"fill",
|
|
75
|
+
"text-anchor",
|
|
76
|
+
"innerHTML"
|
|
77
|
+
], ct = [
|
|
78
|
+
"fill",
|
|
79
|
+
"font-size",
|
|
80
|
+
"transform"
|
|
81
|
+
], lt = [
|
|
82
|
+
"fill",
|
|
83
|
+
"font-size",
|
|
84
|
+
"x",
|
|
85
|
+
"y"
|
|
86
|
+
], ut = [
|
|
87
|
+
"x1",
|
|
88
|
+
"x2",
|
|
89
|
+
"y1",
|
|
90
|
+
"y2",
|
|
91
|
+
"stroke"
|
|
92
|
+
], dt = [
|
|
93
|
+
"cx",
|
|
94
|
+
"cy",
|
|
95
|
+
"fill"
|
|
96
|
+
], ft = [
|
|
97
|
+
"cx",
|
|
98
|
+
"cy",
|
|
99
|
+
"fill"
|
|
100
|
+
], pt = ["id"], mt = ["stop-color"], ht = ["stop-color"], gt = ["stop-color"], _t = [
|
|
101
|
+
"d",
|
|
102
|
+
"fill",
|
|
103
|
+
"stroke",
|
|
104
|
+
"fill-opacity",
|
|
105
|
+
"stroke-opacity",
|
|
106
|
+
"stroke-width",
|
|
107
|
+
"onMouseenter"
|
|
108
|
+
], vt = [
|
|
109
|
+
"x1",
|
|
110
|
+
"x2",
|
|
111
|
+
"y1",
|
|
112
|
+
"y2",
|
|
113
|
+
"stroke",
|
|
114
|
+
"stroke-opacity",
|
|
115
|
+
"stroke-width"
|
|
116
|
+
], yt = ["onMouseenter"], bt = [
|
|
117
|
+
"x1",
|
|
118
|
+
"x2",
|
|
119
|
+
"y1",
|
|
120
|
+
"y2",
|
|
121
|
+
"stroke",
|
|
122
|
+
"stroke-width"
|
|
123
|
+
], xt = [
|
|
124
|
+
"x",
|
|
125
|
+
"y",
|
|
126
|
+
"width",
|
|
127
|
+
"height",
|
|
128
|
+
"fill",
|
|
129
|
+
"stroke",
|
|
130
|
+
"stroke-width",
|
|
131
|
+
"rx"
|
|
132
|
+
], St = [
|
|
133
|
+
"cx",
|
|
134
|
+
"cy",
|
|
135
|
+
"r",
|
|
136
|
+
"fill",
|
|
137
|
+
"stroke"
|
|
138
|
+
], Ct = { key: 1 }, wt = [
|
|
139
|
+
"x",
|
|
140
|
+
"y",
|
|
141
|
+
"font-size",
|
|
142
|
+
"fill"
|
|
143
|
+
], Tt = {
|
|
144
|
+
key: 0,
|
|
145
|
+
style: {
|
|
146
|
+
position: "absolute",
|
|
147
|
+
top: "100%",
|
|
148
|
+
left: "0",
|
|
149
|
+
width: "100%"
|
|
150
|
+
},
|
|
151
|
+
"data-dom-to-png-ignore": "",
|
|
152
|
+
"aria-hidden": "true"
|
|
153
|
+
}, Et = {
|
|
154
|
+
key: 5,
|
|
155
|
+
class: "vue-data-ui-watermark"
|
|
156
|
+
}, Dt = ["innerHTML"], Ot = /*#__PURE__*/ Ee({
|
|
157
|
+
__name: "vue-ui-strip-plot",
|
|
158
|
+
props: {
|
|
159
|
+
config: {
|
|
160
|
+
type: Object,
|
|
161
|
+
default() {
|
|
162
|
+
return {};
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
dataset: {
|
|
166
|
+
type: Array,
|
|
167
|
+
default() {
|
|
168
|
+
return [];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
emits: ["selectDatapoint", "copyAlt"],
|
|
173
|
+
setup(e, { expose: Ee, emit: Ke }) {
|
|
174
|
+
let Ot = g(() => import("./Tooltip-CxOrWlFy.js")), kt = g(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), At = g(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), jt = g(() => import("./DataTable-D9NvewTT.js")), Mt = g(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Nt = g(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Pt = g(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), Ft = g(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), It = [
|
|
175
|
+
"classic",
|
|
176
|
+
"scatter",
|
|
177
|
+
"violin"
|
|
178
|
+
], { vue_ui_strip_plot: Lt } = he(), { isThemeValid: Rt, warnInvalidTheme: zt } = xe(), D = e, Bt = Ke, Vt = d({
|
|
179
|
+
get() {
|
|
180
|
+
return !!D.dataset && D.dataset.length;
|
|
181
|
+
},
|
|
182
|
+
set(e) {
|
|
183
|
+
return e;
|
|
184
|
+
}
|
|
185
|
+
}), O = x(r()), Ht = x(0), k = x(!1), Ut = x(""), A = x(null), Wt = x(null), Gt = x(null), Kt = x(null), qt = x(!1), Jt = x(0), Yt = x(0), Xt = x(null), Zt = x(null), Qt = x(!1), $t = x(!1), en = x(null), tn = x(null), nn = x(null), rn = x(null), j = x(null), an = x(null), M = x("pointer"), on = x({
|
|
186
|
+
x: 0,
|
|
187
|
+
y: 0
|
|
188
|
+
}), sn = x(!1), N = x(gn()), cn = d(() => _n(N.value.type)), P = d(() => N.value.userOptions.useCursorPointer), ln = d(() => o({
|
|
189
|
+
defaultConfig: {
|
|
190
|
+
userOptions: { show: !1 },
|
|
191
|
+
table: { show: !1 },
|
|
192
|
+
style: { chart: {
|
|
193
|
+
backgroundColor: "#99999930",
|
|
194
|
+
padding: {
|
|
195
|
+
top: 24,
|
|
196
|
+
left: 24,
|
|
197
|
+
right: 24,
|
|
198
|
+
bottom: 24
|
|
199
|
+
},
|
|
200
|
+
grid: {
|
|
201
|
+
stroke: "#6A6A6A",
|
|
202
|
+
horizontalGrid: { stroke: "#6A6A6A" },
|
|
203
|
+
verticalGrid: { stroke: "#6A6A6A" }
|
|
204
|
+
},
|
|
205
|
+
plots: { stroke: "#6A6A6A" },
|
|
206
|
+
labels: {
|
|
207
|
+
bestPlotLabel: { show: !1 },
|
|
208
|
+
axis: {
|
|
209
|
+
xLabel: "",
|
|
210
|
+
yLabel: ""
|
|
211
|
+
},
|
|
212
|
+
xAxisLabels: { show: !1 },
|
|
213
|
+
yAxisLabels: { show: !1 }
|
|
214
|
+
}
|
|
215
|
+
} }
|
|
216
|
+
},
|
|
217
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
218
|
+
})), { loading: un, FINAL_DATASET: dn, manualLoading: fn } = _e({
|
|
219
|
+
...Ue(D),
|
|
220
|
+
FINAL_CONFIG: N,
|
|
221
|
+
prepareConfig: gn,
|
|
222
|
+
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
223
|
+
{
|
|
224
|
+
name: "_",
|
|
225
|
+
color: "#DBDBDB",
|
|
226
|
+
plots: [
|
|
227
|
+
{
|
|
228
|
+
name: "_",
|
|
229
|
+
value: 1
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "_",
|
|
233
|
+
value: 2
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: "_",
|
|
237
|
+
value: 3
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: "_",
|
|
243
|
+
color: "#C4C4C4",
|
|
244
|
+
plots: [
|
|
245
|
+
{
|
|
246
|
+
name: "_",
|
|
247
|
+
value: 3
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "_",
|
|
251
|
+
value: 5
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: "_",
|
|
255
|
+
value: 8
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "_",
|
|
261
|
+
color: "#ADADAD",
|
|
262
|
+
plots: [
|
|
263
|
+
{
|
|
264
|
+
name: "_",
|
|
265
|
+
value: 8
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: "_",
|
|
269
|
+
value: 13
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: "_",
|
|
273
|
+
value: 21
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "_",
|
|
279
|
+
color: "#969696",
|
|
280
|
+
plots: [
|
|
281
|
+
{
|
|
282
|
+
name: "_",
|
|
283
|
+
value: 21
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "_",
|
|
287
|
+
value: 34
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "_",
|
|
291
|
+
value: 55
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "_",
|
|
297
|
+
color: "#808080",
|
|
298
|
+
plots: [
|
|
299
|
+
{
|
|
300
|
+
name: "_",
|
|
301
|
+
value: 55
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "_",
|
|
305
|
+
value: 89
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "_",
|
|
309
|
+
value: 144
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
skeletonConfig: o({
|
|
315
|
+
defaultConfig: N.value,
|
|
316
|
+
userConfig: ln.value
|
|
317
|
+
})
|
|
318
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Ae({ config: N.value }), { svgRef: F } = je({ config: N.value.style.chart.title });
|
|
319
|
+
function gn() {
|
|
320
|
+
let e = be({
|
|
321
|
+
userConfig: D.config,
|
|
322
|
+
defaultConfig: Lt
|
|
323
|
+
}), t = e.theme;
|
|
324
|
+
if (!t) return e;
|
|
325
|
+
if (!Rt.value(e)) return zt(e), e;
|
|
326
|
+
let n = be({
|
|
327
|
+
userConfig: Me[t] || D.config,
|
|
328
|
+
defaultConfig: e
|
|
329
|
+
}), r = be({
|
|
330
|
+
userConfig: D.config,
|
|
331
|
+
defaultConfig: n
|
|
332
|
+
});
|
|
333
|
+
return {
|
|
334
|
+
...r,
|
|
335
|
+
customPalette: r.customPalette.length ? r.customPalette : ne[t] || s
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function _n(e) {
|
|
339
|
+
return It.includes(e) ? e : "classic";
|
|
340
|
+
}
|
|
341
|
+
We(() => D.config, async (e) => {
|
|
342
|
+
un.value || (N.value = gn()), pn.value = !N.value.userOptions.showOnChartHover, yn(), Jt.value += 1, Yt.value += 1, B.value.dataLabels.show = N.value.style.chart.labels.bestPlotLabel.show, B.value.showTable = N.value.table.show, B.value.showTooltip = N.value.style.chart.tooltip.show, R.value = N.value.style.chart.width, z.value = N.value.style.chart.height, kn.value = N.value.style.chart.plots.radius;
|
|
343
|
+
}, { deep: !0 }), We(() => D.dataset, (e) => {
|
|
344
|
+
Array.isArray(e) && e.length > 0 && (fn.value = !1);
|
|
345
|
+
}, { deep: !0 });
|
|
346
|
+
let I = He(null), L = He(null);
|
|
347
|
+
Be(() => {
|
|
348
|
+
yn();
|
|
349
|
+
});
|
|
350
|
+
let vn = d(() => !!N.value.debug);
|
|
351
|
+
function yn() {
|
|
352
|
+
if (le(D.dataset) ? (t({
|
|
353
|
+
componentName: "VueUiStripPlot",
|
|
354
|
+
type: "dataset",
|
|
355
|
+
debug: vn.value
|
|
356
|
+
}), fn.value = !0) : D.dataset.forEach((e, n) => {
|
|
357
|
+
oe({
|
|
358
|
+
datasetObject: e,
|
|
359
|
+
requiredAttributes: ["name", "plots"]
|
|
360
|
+
}).forEach((e) => {
|
|
361
|
+
Vt.value = !1, t({
|
|
362
|
+
componentName: "VueUiStripPlot",
|
|
363
|
+
type: "datasetSerieAttribute",
|
|
364
|
+
property: e,
|
|
365
|
+
index: n,
|
|
366
|
+
debug: vn.value
|
|
367
|
+
});
|
|
368
|
+
}), e.plots && e.plots.forEach((e, r) => {
|
|
369
|
+
oe({
|
|
370
|
+
datasetObject: e,
|
|
371
|
+
requiredAttributes: ["name", "value"]
|
|
372
|
+
}).forEach((e) => {
|
|
373
|
+
Vt.value = !1, t({
|
|
374
|
+
componentName: "VueUiStripPlot",
|
|
375
|
+
type: "datasetSerieAttribute",
|
|
376
|
+
property: e,
|
|
377
|
+
index: `${n},${r}`,
|
|
378
|
+
debug: vn.value
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
});
|
|
382
|
+
}), le(D.dataset) || (fn.value = N.value.loading), N.value.responsive) {
|
|
383
|
+
let e = De(() => {
|
|
384
|
+
let { width: e, height: t } = Oe({
|
|
385
|
+
chart: A.value,
|
|
386
|
+
title: N.value.style.chart.title.text ? Wt.value : null,
|
|
387
|
+
source: Gt.value,
|
|
388
|
+
noTitle: Kt.value
|
|
389
|
+
});
|
|
390
|
+
requestAnimationFrame(() => {
|
|
391
|
+
On.value = t, R.value = Math.max(.1, e), z.value = Math.max(.1, t - 12), N.value.responsiveProportionalSizing ? kn.value = i({
|
|
392
|
+
relator: Math.min(t, e),
|
|
393
|
+
adjuster: 600,
|
|
394
|
+
source: N.value.style.chart.plots.radius,
|
|
395
|
+
threshold: 6,
|
|
396
|
+
fallback: 6
|
|
397
|
+
}) : kn.value = N.value.style.chart.plots.radius;
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = A.value.parentNode, I.value.observe(L.value);
|
|
401
|
+
}
|
|
402
|
+
qt.value = !0, setTimeout(() => {
|
|
403
|
+
En.value = !1;
|
|
404
|
+
}, In.value * 50);
|
|
405
|
+
}
|
|
406
|
+
ze(() => {
|
|
407
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
408
|
+
});
|
|
409
|
+
let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = ge({
|
|
410
|
+
elementId: `strip-plot_${O.value}`,
|
|
411
|
+
fileName: N.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
412
|
+
options: N.value.userOptions.print
|
|
413
|
+
}), wn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Tn = d(() => c(N.value.customPalette)), En = x(N.value.useCssAnimation), Dn = x({
|
|
414
|
+
top: N.value.style.chart.padding.top,
|
|
415
|
+
bottom: N.value.style.chart.padding.bottom,
|
|
416
|
+
left: N.value.style.chart.padding.left,
|
|
417
|
+
right: N.value.style.chart.padding.right
|
|
418
|
+
}), R = x(N.value.style.chart.width), z = x(N.value.style.chart.height), On = x(N.value.style.chart.height), kn = x(N.value.style.chart.plots.radius), B = x({
|
|
419
|
+
showTable: N.value.table.show,
|
|
420
|
+
dataLabels: { show: N.value.style.chart.labels.bestPlotLabel.show },
|
|
421
|
+
showTooltip: N.value.style.chart.tooltip.show
|
|
422
|
+
});
|
|
423
|
+
We(N, () => {
|
|
424
|
+
B.value = {
|
|
425
|
+
showTable: N.value.table.show,
|
|
426
|
+
dataLabels: { show: N.value.style.chart.labels.bestPlotLabel.show },
|
|
427
|
+
showTooltip: N.value.style.chart.tooltip.show
|
|
428
|
+
}, R.value = N.value.style.chart.width, z.value = N.value.style.chart.height, kn.value = N.value.style.chart.plots.radius;
|
|
429
|
+
}, { immediate: !0 });
|
|
430
|
+
let V = d(() => Math.min(kn.value, U.value.stripWidth / 2 * .9));
|
|
431
|
+
function H(e) {
|
|
432
|
+
return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
|
|
433
|
+
}
|
|
434
|
+
function An() {
|
|
435
|
+
return Math.max(0, (U.value.stripWidth / 2 - V.value * 1.8) * .86) * Math.min(1, N.value.style.chart.violin.widthRatio);
|
|
436
|
+
}
|
|
437
|
+
function jn() {
|
|
438
|
+
let e = 0;
|
|
439
|
+
rn.value && (e = Array.from(rn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
440
|
+
let n = t.getComputedTextLength();
|
|
441
|
+
return n > e ? n : e;
|
|
442
|
+
}, 0));
|
|
443
|
+
let t = tn.value ? tn.value.getBoundingClientRect().width : 0;
|
|
444
|
+
return e + t + (t ? 24 : 0);
|
|
445
|
+
}
|
|
446
|
+
let Mn = x(0), Nn = De((e) => {
|
|
447
|
+
Mn.value = e;
|
|
448
|
+
}, 100);
|
|
449
|
+
Ge((e) => {
|
|
450
|
+
let t = nn.value;
|
|
451
|
+
if (!t) return;
|
|
452
|
+
let n = new ResizeObserver((e) => {
|
|
453
|
+
Nn(e[0].contentRect.height);
|
|
454
|
+
});
|
|
455
|
+
n.observe(t), e(() => n.disconnect());
|
|
456
|
+
}), ze(() => {
|
|
457
|
+
Mn.value = 0;
|
|
458
|
+
});
|
|
459
|
+
let Pn = d(() => {
|
|
460
|
+
let e = 0;
|
|
461
|
+
en.value && (e = en.value.getBBox().height + N.value.style.chart.labels.axis.fontSize / 3 + 12 + N.value.style.chart.labels.axis.xLabelOffsetY);
|
|
462
|
+
let t = 0;
|
|
463
|
+
return nn.value && (t = Mn.value + 12), e + t;
|
|
464
|
+
}), U = d(() => {
|
|
465
|
+
let e = jn(), t = Dn.value.left + e + N.value.style.chart.labels.axis.yLabelOffsetX + 5, n = R.value - Dn.value.right, r = Math.max(0, n - t), i = Dn.value.top + N.value.style.chart.plots.radius + N.value.style.chart.labels.bestPlotLabel.fontSize, a = z.value - Dn.value.bottom - Pn.value, o = Math.max(0, a - i), s = Array.isArray(dn.value) ? dn.value.length : 0;
|
|
466
|
+
return {
|
|
467
|
+
left: t,
|
|
468
|
+
right: n,
|
|
469
|
+
top: i,
|
|
470
|
+
bottom: a,
|
|
471
|
+
width: r,
|
|
472
|
+
height: o,
|
|
473
|
+
stripWidth: s > 0 ? r / s : 0,
|
|
474
|
+
absoluteHeight: z.value
|
|
475
|
+
};
|
|
476
|
+
});
|
|
477
|
+
function Fn(e) {
|
|
478
|
+
return U.value.left + (e + 1) * U.value.stripWidth - U.value.stripWidth / 2;
|
|
479
|
+
}
|
|
480
|
+
let W = d(() => dn.value.map((e, t) => {
|
|
481
|
+
let n = r();
|
|
482
|
+
return {
|
|
483
|
+
...e,
|
|
484
|
+
id: n,
|
|
485
|
+
color: e.color ? ae(e.color) : Tn.value[t] || s[t] || s[t % s.length],
|
|
486
|
+
plots: e.plots.map((i, a) => ({
|
|
487
|
+
...i,
|
|
488
|
+
value: pe(i.value),
|
|
489
|
+
parentId: n,
|
|
490
|
+
parentName: e.name,
|
|
491
|
+
parentIndex: t,
|
|
492
|
+
plotIndex: a,
|
|
493
|
+
color: e.color ? ae(e.color) : Tn.value[t] || s[t] || s[t % s.length],
|
|
494
|
+
id: r()
|
|
495
|
+
})).sort((e, t) => e.value - t.value)
|
|
496
|
+
};
|
|
497
|
+
})), G = d(() => (W.value || []).map((e, t) => ({
|
|
498
|
+
...e,
|
|
499
|
+
plots: e.plots.map((e) => ({
|
|
500
|
+
...e,
|
|
501
|
+
x: Fn(t)
|
|
502
|
+
}))
|
|
503
|
+
}))), In = d(() => Math.max(...G.value.map((e) => e.plots.length))), Ln = d(() => {
|
|
504
|
+
let e = G.value.flatMap((e) => e.plots.map((e) => e.value));
|
|
505
|
+
return {
|
|
506
|
+
max: Math.max(...e),
|
|
507
|
+
min: Math.min(...e)
|
|
508
|
+
};
|
|
509
|
+
}), K = d(() => se(Ln.value.min < 0 ? Ln.value.min : 0, Ln.value.max, N.value.style.chart.grid.scaleSteps)), q = d(() => (G.value || []).map((e, t) => {
|
|
510
|
+
let n = e.plots.map((e) => ({
|
|
511
|
+
...e,
|
|
512
|
+
y: U.value.bottom - (e.value + Math.abs(K.value.min)) / (K.value.max + Math.abs(K.value.min)) * U.value.height
|
|
513
|
+
})), r = cn.value === "classic" ? n.map(() => 0) : Vn(n);
|
|
514
|
+
return {
|
|
515
|
+
...e,
|
|
516
|
+
plots: n.map((e, t) => ({
|
|
517
|
+
...e,
|
|
518
|
+
x: e.x + r[t]
|
|
519
|
+
}))
|
|
520
|
+
};
|
|
521
|
+
})), J = d(() => cn.value === "violin" && !!N.value.style.chart.violin?.boxPlot?.show);
|
|
522
|
+
function Rn(e, t) {
|
|
523
|
+
if (!e.length) return 0;
|
|
524
|
+
if (e.length === 1) return e[0];
|
|
525
|
+
let n = (e.length - 1) * t, r = Math.floor(n), i = n - r, a = e[r + 1];
|
|
526
|
+
return a === void 0 ? e[r] : e[r] + i * (a - e[r]);
|
|
527
|
+
}
|
|
528
|
+
function zn(e) {
|
|
529
|
+
let t = K.value.max + Math.abs(K.value.min);
|
|
530
|
+
return t ? U.value.bottom - (e + Math.abs(K.value.min)) / t * U.value.height : U.value.bottom;
|
|
531
|
+
}
|
|
532
|
+
let Y = d(() => J.value ? q.value.map((e, t) => {
|
|
533
|
+
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, ee = n.find((e) => e >= s), te = n.slice().reverse().find((e) => e <= c), ne = Fn(t), re = Math.max(V.value * 2.8, Math.min(An() * .32, U.value.stripWidth * .12)) * Math.min(1.5, N.value.style.chart.violin.boxPlot.widthRatio);
|
|
534
|
+
return {
|
|
535
|
+
id: e.id,
|
|
536
|
+
boxPlotColor: N.value.style.chart.violin.boxPlot.useSerieColor ? e.color : N.value.style.chart.violin.boxPlot.color,
|
|
537
|
+
color: e.color,
|
|
538
|
+
name: e.name,
|
|
539
|
+
count: n.length,
|
|
540
|
+
lowerAdjacent: ee ?? n[0],
|
|
541
|
+
q1: r,
|
|
542
|
+
median: i,
|
|
543
|
+
q3: a,
|
|
544
|
+
upperAdjacent: te ?? n[n.length - 1],
|
|
545
|
+
iqr: o,
|
|
546
|
+
lowerFence: s,
|
|
547
|
+
upperFence: c,
|
|
548
|
+
centerX: ne,
|
|
549
|
+
boxLeft: ne - re / 2,
|
|
550
|
+
boxWidth: re,
|
|
551
|
+
q1Y: zn(r),
|
|
552
|
+
medianY: zn(i),
|
|
553
|
+
q3Y: zn(a),
|
|
554
|
+
lowerY: zn(ee ?? n[0]),
|
|
555
|
+
upperY: zn(te ?? n[n.length - 1])
|
|
556
|
+
};
|
|
557
|
+
}) : []), Bn = d(() => [
|
|
558
|
+
N.value.table.columnNames.series,
|
|
559
|
+
N.value.style.chart.violin.tooltipLabels.lowerAdjacent,
|
|
560
|
+
N.value.style.chart.violin.tooltipLabels.q1,
|
|
561
|
+
N.value.style.chart.violin.tooltipLabels.median,
|
|
562
|
+
N.value.style.chart.violin.tooltipLabels.q3,
|
|
563
|
+
N.value.style.chart.violin.tooltipLabels.upperAdjacent,
|
|
564
|
+
N.value.style.chart.violin.tooltipLabels.iqr,
|
|
565
|
+
N.value.style.chart.violin.tooltipLabels.count
|
|
566
|
+
]);
|
|
567
|
+
function X(e) {
|
|
568
|
+
return a({
|
|
569
|
+
p: N.value.style.chart.labels.prefix,
|
|
570
|
+
v: e,
|
|
571
|
+
s: N.value.style.chart.labels.suffix,
|
|
572
|
+
r: N.value.table.td.roundingValue
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
function Vn(e) {
|
|
576
|
+
let t = cn.value === "violin" ? Math.max(0, An() - V.value * 1.15) : Math.max(0, U.value.stripWidth / 2 - V.value * 1.5);
|
|
577
|
+
if (!e.length || !t) return e.map(() => 0);
|
|
578
|
+
let n = e.map(() => 0), r = V.value * 2.1, i = Math.min(t, r), a = [0];
|
|
579
|
+
for (let e = i; e <= t + i / 2; e += i) a.push(-Math.min(e, t)), a.push(Math.min(e, t));
|
|
580
|
+
let o = [];
|
|
581
|
+
return e.forEach((e, t) => {
|
|
582
|
+
let i = a.find((t) => o.every((n) => {
|
|
583
|
+
let i = t - n.offset, a = e.y - n.y;
|
|
584
|
+
return Math.hypot(i, a) >= r;
|
|
585
|
+
})) ?? 0;
|
|
586
|
+
n[t] = i, o.push({
|
|
587
|
+
y: e.y,
|
|
588
|
+
offset: i
|
|
589
|
+
});
|
|
590
|
+
}), n;
|
|
591
|
+
}
|
|
592
|
+
let Hn = d(() => cn.value === "violin" ? q.value.map((e, t) => ({
|
|
593
|
+
id: e.id,
|
|
594
|
+
color: N.value.style.chart.violin.useSerieColor ? e.color : N.value.style.chart.violin.stroke,
|
|
595
|
+
fill: N.value.style.chart.violin.useSerieColor ? e.color : N.value.style.chart.violin.fill,
|
|
596
|
+
path: Un(e.plots, t),
|
|
597
|
+
connectors: Wn(e.plots, t)
|
|
598
|
+
})) : []);
|
|
599
|
+
function Un(e, t) {
|
|
600
|
+
let n = An();
|
|
601
|
+
if (!e.length || !U.value.height || !n) return "";
|
|
602
|
+
let r = Fn(t), i = e.map((e) => e.y), a = Z(i), o = Kn({
|
|
603
|
+
yValues: i,
|
|
604
|
+
bandwidth: a
|
|
605
|
+
});
|
|
606
|
+
return o.length > 1 ? o.map((e) => Jn({
|
|
607
|
+
yValues: e,
|
|
608
|
+
centerX: r,
|
|
609
|
+
maxWidth: Gn({
|
|
610
|
+
clusterLength: e.length,
|
|
611
|
+
totalLength: i.length,
|
|
612
|
+
maxWidth: n
|
|
613
|
+
}),
|
|
614
|
+
bandwidth: Z(e)
|
|
615
|
+
})).join(" ") : Jn({
|
|
616
|
+
yValues: i,
|
|
617
|
+
centerX: r,
|
|
618
|
+
maxWidth: n,
|
|
619
|
+
bandwidth: a
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
function Wn(e, t) {
|
|
623
|
+
if (!e.length) return [];
|
|
624
|
+
let n = Fn(t), r = e.map((e) => e.y), i = Kn({
|
|
625
|
+
yValues: r,
|
|
626
|
+
bandwidth: Z(r)
|
|
627
|
+
});
|
|
628
|
+
return i.length < 2 ? [] : i.slice(1).map((e, t) => {
|
|
629
|
+
let r = i[t], a = Z(r), o = Z(e), s = l(Math.max(...r) + a * 2.35, U.value.top, U.value.bottom), c = l(Math.min(...e) - o * 2.35, U.value.top, U.value.bottom);
|
|
630
|
+
return {
|
|
631
|
+
x: H(n),
|
|
632
|
+
y1: H(s),
|
|
633
|
+
y2: H(c)
|
|
634
|
+
};
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
function Gn({ clusterLength: e, totalLength: t, maxWidth: n }) {
|
|
638
|
+
let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
|
|
639
|
+
return Math.max(V.value * 2.2, n * l(r * i, .18, 1));
|
|
640
|
+
}
|
|
641
|
+
function Z(e) {
|
|
642
|
+
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(V.value * 2.6, U.value.height / 48) : V.value * 2.1;
|
|
643
|
+
return l(1.06 * r * e.length ** -.2, i, U.value.height / 5);
|
|
644
|
+
}
|
|
645
|
+
function Kn({ yValues: e, bandwidth: t }) {
|
|
646
|
+
if (e.length < 2) return [e];
|
|
647
|
+
let n = [...e].sort((e, t) => e - t), r = Math.max(t * 1.45, V.value * 5), i = [], a = [n[0]];
|
|
648
|
+
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), qn(i);
|
|
650
|
+
}
|
|
651
|
+
function qn(e) {
|
|
652
|
+
return e.reduce((e, t) => {
|
|
653
|
+
let n = e[e.length - 1];
|
|
654
|
+
if (!n) return e.push(t), e;
|
|
655
|
+
let r = Z(n), i = Z(t);
|
|
656
|
+
return Math.max(...n) + r * 2.35 >= Math.min(...t) - i * 2.35 ? n.push(...t) : e.push(t), e;
|
|
657
|
+
}, []);
|
|
658
|
+
}
|
|
659
|
+
function Jn({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
|
|
660
|
+
let i = l(Math.min(...e) - r * 2.35, U.value.top, U.value.bottom), a = l(Math.max(...e) + r * 2.35, U.value.top, U.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
|
+
let s = i + (a - i) * n / Math.max(1, o - 1);
|
|
662
|
+
return {
|
|
663
|
+
y: s,
|
|
664
|
+
density: e.reduce((e, t) => {
|
|
665
|
+
let n = (s - t) / r;
|
|
666
|
+
return e + Math.exp(-.5 * n * n);
|
|
667
|
+
}, 0)
|
|
668
|
+
};
|
|
669
|
+
}), c = Math.max(...s.map((e) => e.density));
|
|
670
|
+
if (!c) return "";
|
|
671
|
+
let ee = s.map((e, t) => {
|
|
672
|
+
let r = t === 0 || t === s.length - 1 ? 0 : e.density / c * n;
|
|
673
|
+
return {
|
|
674
|
+
y: H(e.y),
|
|
675
|
+
width: H(r)
|
|
676
|
+
};
|
|
677
|
+
}), te = ee.map((e) => ({
|
|
678
|
+
x: H(t - e.width),
|
|
679
|
+
y: e.y
|
|
680
|
+
})), ne = ee.slice(0, -1).reverse().map((e) => ({
|
|
681
|
+
x: H(t + e.width),
|
|
682
|
+
y: e.y
|
|
683
|
+
}));
|
|
684
|
+
return `${Yn([...te, ...ne])} Z`;
|
|
685
|
+
}
|
|
686
|
+
function Yn(e) {
|
|
687
|
+
if (!e.length) return "";
|
|
688
|
+
if (e.length === 1) return `M ${e[0].x} ${e[0].y}`;
|
|
689
|
+
let t = `M ${e[0].x} ${e[0].y}`;
|
|
690
|
+
for (let n = 1; n < e.length - 1; n += 1) {
|
|
691
|
+
let r = e[n], i = e[n + 1], a = H((r.x + i.x) / 2), o = H((r.y + i.y) / 2);
|
|
692
|
+
t += ` Q ${r.x} ${r.y} ${a} ${o}`;
|
|
693
|
+
}
|
|
694
|
+
let n = e[e.length - 1];
|
|
695
|
+
return `${t} L ${n.x} ${n.y}`;
|
|
696
|
+
}
|
|
697
|
+
let Xn = d(() => K.value.ticks.map((e) => ({
|
|
698
|
+
y: U.value.bottom - U.value.height * ((e + Math.abs(K.value.min)) / (K.value.max + Math.abs(K.value.min))),
|
|
699
|
+
x1: U.value.left,
|
|
700
|
+
x2: U.value.right,
|
|
701
|
+
value: e
|
|
702
|
+
}))), Zn = x(null), Q = x(null);
|
|
703
|
+
function Qn({ datapoint: e, seriesIndex: t }) {
|
|
704
|
+
M.value !== "keyboard" && (k.value = !1, Q.value = null, N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
705
|
+
datapoint: e,
|
|
706
|
+
seriesIndex: t
|
|
707
|
+
}));
|
|
708
|
+
}
|
|
709
|
+
function $n({ datapoint: e, seriesIndex: t }) {
|
|
710
|
+
Bt("selectDatapoint", e), N.value.events.datapointClick && N.value.events.datapointClick({
|
|
711
|
+
datapoint: e,
|
|
712
|
+
seriesIndex: t
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
function er(e, t = {}) {
|
|
716
|
+
return ce(N.value.style.chart.labels.formatter, e, a({
|
|
717
|
+
p: N.value.style.chart.labels.prefix,
|
|
718
|
+
v: e,
|
|
719
|
+
s: N.value.style.chart.labels.suffix,
|
|
720
|
+
r: N.value.style.chart.tooltip.roundingValue
|
|
721
|
+
}), t);
|
|
722
|
+
}
|
|
723
|
+
function tr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
724
|
+
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
725
|
+
datapoint: e,
|
|
726
|
+
seriesIndex: t
|
|
727
|
+
}), M.value = n, Zn.value = {
|
|
728
|
+
datapoint: e,
|
|
729
|
+
seriesIndex: t,
|
|
730
|
+
config: N.value,
|
|
731
|
+
series: W.value
|
|
732
|
+
}, k.value = !0, Q.value = e;
|
|
733
|
+
let r = N.value.style.chart.tooltip.customFormat;
|
|
734
|
+
if (me(r) && ue(() => r({
|
|
735
|
+
seriesIndex: t,
|
|
736
|
+
datapoint: e,
|
|
737
|
+
series: W.value,
|
|
738
|
+
config: N.value
|
|
739
|
+
}))) Ut.value = r({
|
|
740
|
+
seriesIndex: t,
|
|
741
|
+
datapoint: e,
|
|
742
|
+
series: W.value,
|
|
743
|
+
config: N.value
|
|
744
|
+
});
|
|
745
|
+
else {
|
|
746
|
+
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="${N.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${er(e.value, {
|
|
748
|
+
datapoint: e,
|
|
749
|
+
seriesIndex: t
|
|
750
|
+
})}</div>`, Ut.value = `<div>${n}</div>`;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
function nr() {
|
|
754
|
+
M.value !== "keyboard" && (k.value = !1, Q.value = null);
|
|
755
|
+
}
|
|
756
|
+
function rr({ boxPlot: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
757
|
+
M.value = n, Q.value = null, k.value = !0, Zn.value = {
|
|
758
|
+
boxPlot: e,
|
|
759
|
+
seriesIndex: t,
|
|
760
|
+
config: N.value,
|
|
761
|
+
series: W.value
|
|
762
|
+
};
|
|
763
|
+
let r = N.value.style.chart.tooltip.customFormat;
|
|
764
|
+
if (me(r)) try {
|
|
765
|
+
let n = {
|
|
766
|
+
boxPlot: e,
|
|
767
|
+
seriesIndex: t,
|
|
768
|
+
series: W.value,
|
|
769
|
+
config: N.value
|
|
770
|
+
};
|
|
771
|
+
if (ue(() => r(n))) {
|
|
772
|
+
Ut.value = r(n);
|
|
773
|
+
return;
|
|
774
|
+
}
|
|
775
|
+
} catch {}
|
|
776
|
+
let i = [
|
|
777
|
+
[N.value.style.chart.violin.tooltipLabels.upperAdjacent, e.upperAdjacent],
|
|
778
|
+
[N.value.style.chart.violin.tooltipLabels.q3, e.q3],
|
|
779
|
+
[N.value.style.chart.violin.tooltipLabels.median, e.median],
|
|
780
|
+
[N.value.style.chart.violin.tooltipLabels.q1, e.q1],
|
|
781
|
+
[N.value.style.chart.violin.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
|
|
782
|
+
[N.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>${er(r, {
|
|
784
|
+
boxPlot: e,
|
|
785
|
+
seriesIndex: t
|
|
786
|
+
})}</b></div>`).join("");
|
|
787
|
+
Ut.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>${N.value.style.chart.violin.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
|
|
788
|
+
}
|
|
789
|
+
let ir = d(() => ({
|
|
790
|
+
head: G.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
|
|
791
|
+
name: `${e.name} - ${t.name}`,
|
|
792
|
+
color: t.color
|
|
793
|
+
}))),
|
|
794
|
+
body: G.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
|
|
795
|
+
}));
|
|
796
|
+
function ar(e = null) {
|
|
797
|
+
Le(() => {
|
|
798
|
+
let t = [], n = [N.value.table.columnNames.series, N.value.table.columnNames.value];
|
|
799
|
+
J.value ? (n = Bn.value, t = Y.value.map((e) => [
|
|
800
|
+
[e.name],
|
|
801
|
+
[e.lowerAdjacent],
|
|
802
|
+
[e.q1],
|
|
803
|
+
[e.median],
|
|
804
|
+
[e.q3],
|
|
805
|
+
[e.upperAdjacent],
|
|
806
|
+
[e.iqr],
|
|
807
|
+
[e.count]
|
|
808
|
+
])) : t = ir.value.head.map((e, t) => [[e.name], [ir.value.body[t]]]);
|
|
809
|
+
let r = ee([
|
|
810
|
+
[N.value.style.chart.title.text],
|
|
811
|
+
[N.value.style.chart.title.subtitle.text],
|
|
812
|
+
n.map((e) => [e])
|
|
813
|
+
].concat(t));
|
|
814
|
+
e ? e(r) : ie({
|
|
815
|
+
csvContent: r,
|
|
816
|
+
title: N.value.style.chart.title.text || "vue-ui-strip-plot"
|
|
817
|
+
});
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
let or = d(() => {
|
|
821
|
+
if (J.value) {
|
|
822
|
+
let e = Bn.value;
|
|
823
|
+
return {
|
|
824
|
+
colNames: e,
|
|
825
|
+
head: e,
|
|
826
|
+
body: Y.value.map((e) => [
|
|
827
|
+
{
|
|
828
|
+
color: e.color,
|
|
829
|
+
name: e.name
|
|
830
|
+
},
|
|
831
|
+
X(e.lowerAdjacent),
|
|
832
|
+
X(e.q1),
|
|
833
|
+
X(e.median),
|
|
834
|
+
X(e.q3),
|
|
835
|
+
X(e.upperAdjacent),
|
|
836
|
+
X(e.iqr),
|
|
837
|
+
e.count
|
|
838
|
+
]),
|
|
839
|
+
config: {
|
|
840
|
+
th: {
|
|
841
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
842
|
+
color: N.value.table.th.color,
|
|
843
|
+
outline: N.value.table.th.outline
|
|
844
|
+
},
|
|
845
|
+
td: {
|
|
846
|
+
backgroundColor: N.value.table.td.backgroundColor,
|
|
847
|
+
color: N.value.table.td.color,
|
|
848
|
+
outline: N.value.table.td.outline
|
|
849
|
+
},
|
|
850
|
+
breakpoint: N.value.table.responsiveBreakpoint
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
let e = [N.value.table.columnNames.series, N.value.table.columnNames.value], t = ir.value.head.map((e, t) => {
|
|
855
|
+
let n = a({
|
|
856
|
+
p: N.value.style.chart.labels.prefix,
|
|
857
|
+
v: ir.value.body[t],
|
|
858
|
+
s: N.value.style.chart.labels.suffix,
|
|
859
|
+
r: N.value.table.td.roundingValue
|
|
860
|
+
});
|
|
861
|
+
return [{
|
|
862
|
+
color: e.color,
|
|
863
|
+
name: e.name
|
|
864
|
+
}, n];
|
|
865
|
+
}), n = {
|
|
866
|
+
th: {
|
|
867
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
868
|
+
color: N.value.table.th.color,
|
|
869
|
+
outline: N.value.table.th.outline
|
|
870
|
+
},
|
|
871
|
+
td: {
|
|
872
|
+
backgroundColor: N.value.table.td.backgroundColor,
|
|
873
|
+
color: N.value.table.td.color,
|
|
874
|
+
outline: N.value.table.td.outline
|
|
875
|
+
},
|
|
876
|
+
breakpoint: N.value.table.responsiveBreakpoint
|
|
877
|
+
};
|
|
878
|
+
return {
|
|
879
|
+
colNames: [N.value.table.columnNames.series, N.value.table.columnNames.value],
|
|
880
|
+
head: e,
|
|
881
|
+
body: t,
|
|
882
|
+
config: n
|
|
883
|
+
};
|
|
884
|
+
}), $ = x(!1);
|
|
885
|
+
function sr(e) {
|
|
886
|
+
$.value = e, Ht.value += 1;
|
|
887
|
+
}
|
|
888
|
+
function cr() {
|
|
889
|
+
return G.value;
|
|
890
|
+
}
|
|
891
|
+
function lr() {
|
|
892
|
+
B.value.showTable = !B.value.showTable;
|
|
893
|
+
}
|
|
894
|
+
function ur() {
|
|
895
|
+
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
896
|
+
}
|
|
897
|
+
function dr() {
|
|
898
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
899
|
+
}
|
|
900
|
+
let fr = x(!1);
|
|
901
|
+
function pr() {
|
|
902
|
+
fr.value = !fr.value;
|
|
903
|
+
}
|
|
904
|
+
async function mr({ scale: e = 2 } = {}) {
|
|
905
|
+
if (!A.value) return;
|
|
906
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
907
|
+
domElement: A.value,
|
|
908
|
+
base64: !0,
|
|
909
|
+
img: !0,
|
|
910
|
+
scale: e
|
|
911
|
+
});
|
|
912
|
+
return {
|
|
913
|
+
imageUri: i,
|
|
914
|
+
base64: a,
|
|
915
|
+
title: N.value.style.chart.title.text,
|
|
916
|
+
width: t,
|
|
917
|
+
height: n,
|
|
918
|
+
aspectRatio: r
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
let hr = d(() => G.value.map((e) => e.name));
|
|
922
|
+
Se({
|
|
923
|
+
timeLabelsEls: nn,
|
|
924
|
+
timeLabels: hr,
|
|
925
|
+
slicer: x({
|
|
926
|
+
start: 0,
|
|
927
|
+
end: G.value.length
|
|
928
|
+
}),
|
|
929
|
+
configRef: N,
|
|
930
|
+
rotationPath: [
|
|
931
|
+
"style",
|
|
932
|
+
"chart",
|
|
933
|
+
"labels",
|
|
934
|
+
"xAxisLabels",
|
|
935
|
+
"rotation"
|
|
936
|
+
],
|
|
937
|
+
autoRotatePath: [
|
|
938
|
+
"style",
|
|
939
|
+
"chart",
|
|
940
|
+
"labels",
|
|
941
|
+
"xAxisLabels",
|
|
942
|
+
"autoRotate",
|
|
943
|
+
"enable"
|
|
944
|
+
],
|
|
945
|
+
isAutoSize: !1,
|
|
946
|
+
width: R,
|
|
947
|
+
height: z,
|
|
948
|
+
targetClass: ".vue-ui-strip-plot-category-name",
|
|
949
|
+
rotation: N.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
950
|
+
});
|
|
951
|
+
let gr = d(() => {
|
|
952
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
|
|
953
|
+
return {
|
|
954
|
+
component: e ? Ft : At,
|
|
955
|
+
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
956
|
+
props: e ? {
|
|
957
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
958
|
+
color: N.value.table.th.color,
|
|
959
|
+
headerColor: N.value.table.th.color,
|
|
960
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
961
|
+
isFullscreen: $.value,
|
|
962
|
+
fullscreenParent: A.value,
|
|
963
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
964
|
+
isCursorPointer: P.value
|
|
965
|
+
} : {
|
|
966
|
+
hideDetails: !0,
|
|
967
|
+
config: {
|
|
968
|
+
open: t,
|
|
969
|
+
maxHeight: 1e4,
|
|
970
|
+
body: {
|
|
971
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
972
|
+
color: N.value.style.chart.color
|
|
973
|
+
},
|
|
974
|
+
head: {
|
|
975
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
976
|
+
color: N.value.style.chart.color
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
});
|
|
982
|
+
We(() => B.value.showTable, (e) => {
|
|
983
|
+
N.value.table.show || (e && N.value.table.useDialog && Xt.value ? Xt.value.open() : "close" in Xt.value && Xt.value.close());
|
|
984
|
+
});
|
|
985
|
+
function _r() {
|
|
986
|
+
B.value.showTable = !1, Zt.value && Zt.value.setTableIconState(!1);
|
|
987
|
+
}
|
|
988
|
+
let vr = d(() => N.value.style.chart.backgroundColor), { exportSvg: yr, getSvg: br } = ye({
|
|
989
|
+
svg: F,
|
|
990
|
+
title: d(() => N.value.style.chart.title),
|
|
991
|
+
backgroundColor: vr
|
|
992
|
+
});
|
|
993
|
+
async function xr({ isCb: e }) {
|
|
994
|
+
$t.value = !0, await Le();
|
|
995
|
+
try {
|
|
996
|
+
if (e) {
|
|
997
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await br();
|
|
998
|
+
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
999
|
+
blob: e,
|
|
1000
|
+
url: t,
|
|
1001
|
+
text: n,
|
|
1002
|
+
dataUrl: r
|
|
1003
|
+
}));
|
|
1004
|
+
} else await Promise.resolve(yr());
|
|
1005
|
+
} finally {
|
|
1006
|
+
$t.value = !1;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
function Sr(e) {
|
|
1010
|
+
if (e?.stage === "start") {
|
|
1011
|
+
Qt.value = !0;
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
1014
|
+
if (e?.stage === "end") {
|
|
1015
|
+
Qt.value = !1;
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
Cn();
|
|
1019
|
+
}
|
|
1020
|
+
async function Cr() {
|
|
1021
|
+
if (Bt("copyAlt", {
|
|
1022
|
+
config: N.value,
|
|
1023
|
+
dataset: q.value
|
|
1024
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
1025
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
1029
|
+
config: N.value,
|
|
1030
|
+
dataset: q.value
|
|
1031
|
+
}));
|
|
1032
|
+
}
|
|
1033
|
+
function wr() {
|
|
1034
|
+
return q.value.length;
|
|
1035
|
+
}
|
|
1036
|
+
function Tr(e) {
|
|
1037
|
+
return q.value[e]?.plots ?? [];
|
|
1038
|
+
}
|
|
1039
|
+
function Er(e = j.value, t = an.value) {
|
|
1040
|
+
return !Number.isInteger(e) || !Number.isInteger(t) ? null : Tr(e)[t] ?? null;
|
|
1041
|
+
}
|
|
1042
|
+
function Dr() {
|
|
1043
|
+
j.value = null, an.value = null, M.value = "pointer", k.value = !1, Q.value = null;
|
|
1044
|
+
}
|
|
1045
|
+
function Or(e) {
|
|
1046
|
+
if (!e || !F.value) return;
|
|
1047
|
+
let t = F.value.getBoundingClientRect();
|
|
1048
|
+
on.value = {
|
|
1049
|
+
x: t.left + e.x / R.value * t.width,
|
|
1050
|
+
y: t.top + e.y / z.value * t.height
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
function kr(e, t) {
|
|
1054
|
+
let n = Er(e, t);
|
|
1055
|
+
n && (j.value = e, an.value = t, M.value = "keyboard", Or(n), tr({
|
|
1056
|
+
datapoint: n,
|
|
1057
|
+
seriesIndex: e,
|
|
1058
|
+
triggerMode: "keyboard"
|
|
1059
|
+
}));
|
|
1060
|
+
}
|
|
1061
|
+
function Ar() {
|
|
1062
|
+
sn.value = !0, j.value = null, an.value = null;
|
|
1063
|
+
}
|
|
1064
|
+
function jr() {
|
|
1065
|
+
sn.value = !1, Dr();
|
|
1066
|
+
}
|
|
1067
|
+
function Mr(e) {
|
|
1068
|
+
if (!F.value || fr.value || document.activeElement !== F.value || !wr()) return;
|
|
1069
|
+
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
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
1071
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1072
|
+
Dr();
|
|
1073
|
+
return;
|
|
1074
|
+
}
|
|
1075
|
+
let s = j.value, c = an.value;
|
|
1076
|
+
if (s === null || c === null) s = 0, c = 0;
|
|
1077
|
+
else if (t || n) {
|
|
1078
|
+
let e = wr();
|
|
1079
|
+
s = n ? (s + 1) % e : (s - 1 + e) % e;
|
|
1080
|
+
let t = Tr(s);
|
|
1081
|
+
if (!t.length) return;
|
|
1082
|
+
c = Math.min(c, t.length - 1);
|
|
1083
|
+
} else if (r || i) {
|
|
1084
|
+
let e = Tr(s);
|
|
1085
|
+
if (!e.length) return;
|
|
1086
|
+
c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
|
|
1087
|
+
}
|
|
1088
|
+
if (a) {
|
|
1089
|
+
let e = Er();
|
|
1090
|
+
if (!e) return;
|
|
1091
|
+
$n({
|
|
1092
|
+
datapoint: e,
|
|
1093
|
+
seriesIndex: j.value
|
|
1094
|
+
});
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
kr(s, c);
|
|
1098
|
+
}
|
|
1099
|
+
let Nr = d(() => ({
|
|
1100
|
+
headers: or.value?.colNames ?? [],
|
|
1101
|
+
rows: or.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
|
|
1102
|
+
}));
|
|
1103
|
+
return Ee({
|
|
1104
|
+
getData: cr,
|
|
1105
|
+
getImage: mr,
|
|
1106
|
+
generatePdf: Sn,
|
|
1107
|
+
generateCsv: ar,
|
|
1108
|
+
generateImage: Cn,
|
|
1109
|
+
generateSvg: xr,
|
|
1110
|
+
toggleTable: lr,
|
|
1111
|
+
toggleLabels: ur,
|
|
1112
|
+
toggleTooltip: dr,
|
|
1113
|
+
toggleAnnotator: pr,
|
|
1114
|
+
toggleFullscreen: sr,
|
|
1115
|
+
copyAlt: Cr
|
|
1116
|
+
}), (e, t) => (b(), m("div", {
|
|
1117
|
+
ref_key: "stripPlotChart",
|
|
1118
|
+
ref: A,
|
|
1119
|
+
class: Re(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1120
|
+
style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height:100%" : ""}`),
|
|
1121
|
+
id: `strip-plot_${O.value}`,
|
|
1122
|
+
onMouseenter: t[2] ||= () => T(mn)(!0),
|
|
1123
|
+
onMouseleave: t[3] ||= () => T(mn)(!1)
|
|
1124
|
+
}, [
|
|
1125
|
+
h("div", {
|
|
1126
|
+
id: `chart-instructions-${O.value}`,
|
|
1127
|
+
class: "sr-only"
|
|
1128
|
+
}, [h("p", null, w(N.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
1129
|
+
Nr.value?.rows?.length ? (b(), f(ke, {
|
|
1130
|
+
key: 0,
|
|
1131
|
+
uid: O.value,
|
|
1132
|
+
head: Nr.value.headers,
|
|
1133
|
+
body: Nr.value.rows,
|
|
1134
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
1135
|
+
caption: N.value.a11y.translations.tableCaption
|
|
1136
|
+
}, null, 8, [
|
|
1137
|
+
"uid",
|
|
1138
|
+
"head",
|
|
1139
|
+
"body",
|
|
1140
|
+
"notice",
|
|
1141
|
+
"caption"
|
|
1142
|
+
])) : p("", !0),
|
|
1143
|
+
N.value.userOptions.buttons.annotator ? (b(), f(T(Nt), {
|
|
1144
|
+
key: 1,
|
|
1145
|
+
svgRef: T(F),
|
|
1146
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1147
|
+
color: N.value.style.chart.color,
|
|
1148
|
+
active: fr.value,
|
|
1149
|
+
isCursorPointer: P.value,
|
|
1150
|
+
onClose: pr
|
|
1151
|
+
}, {
|
|
1152
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1153
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
1154
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
|
|
1155
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
|
|
1156
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
|
|
1157
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
|
|
1158
|
+
_: 3
|
|
1159
|
+
}, 8, [
|
|
1160
|
+
"svgRef",
|
|
1161
|
+
"backgroundColor",
|
|
1162
|
+
"color",
|
|
1163
|
+
"active",
|
|
1164
|
+
"isCursorPointer"
|
|
1165
|
+
])) : p("", !0),
|
|
1166
|
+
wn.value ? (b(), m("div", {
|
|
1167
|
+
key: 2,
|
|
1168
|
+
ref_key: "noTitle",
|
|
1169
|
+
ref: Kt,
|
|
1170
|
+
class: "vue-data-ui-no-title-space",
|
|
1171
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1172
|
+
}, null, 512)) : p("", !0),
|
|
1173
|
+
N.value.style.chart.title.text ? (b(), m("div", {
|
|
1174
|
+
key: 3,
|
|
1175
|
+
ref_key: "chartTitle",
|
|
1176
|
+
ref: Wt,
|
|
1177
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1178
|
+
}, [(b(), f(we, {
|
|
1179
|
+
key: `title_${Jt.value}`,
|
|
1180
|
+
config: {
|
|
1181
|
+
title: {
|
|
1182
|
+
cy: "donut-div-title",
|
|
1183
|
+
...N.value.style.chart.title
|
|
1184
|
+
},
|
|
1185
|
+
subtitle: {
|
|
1186
|
+
cy: "donut-div-subtitle",
|
|
1187
|
+
...N.value.style.chart.title.subtitle
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1191
|
+
N.value.userOptions.show && Vt.value && (T(hn) || T(pn)) ? (b(), f(T(Mt), {
|
|
1192
|
+
ref_key: "userOptionsRef",
|
|
1193
|
+
ref: Zt,
|
|
1194
|
+
key: `user_option_${Ht.value}`,
|
|
1195
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1196
|
+
color: N.value.style.chart.color,
|
|
1197
|
+
isPrinting: T(bn),
|
|
1198
|
+
isImaging: T(xn),
|
|
1199
|
+
uid: O.value,
|
|
1200
|
+
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
1201
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1202
|
+
hasXls: N.value.userOptions.buttons.csv,
|
|
1203
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
1204
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
1205
|
+
hasTable: N.value.userOptions.buttons.table,
|
|
1206
|
+
hasLabel: N.value.userOptions.buttons.labels && N.value.type !== "violin",
|
|
1207
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1208
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1209
|
+
isTooltip: B.value.showTooltip,
|
|
1210
|
+
isFullscreen: $.value,
|
|
1211
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
1212
|
+
chartElement: A.value,
|
|
1213
|
+
position: N.value.userOptions.position,
|
|
1214
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1215
|
+
isAnnotation: fr.value,
|
|
1216
|
+
callbacks: N.value.userOptions.callbacks,
|
|
1217
|
+
printScale: N.value.userOptions.print.scale,
|
|
1218
|
+
tableDialog: N.value.table.useDialog,
|
|
1219
|
+
isCursorPointer: P.value,
|
|
1220
|
+
onToggleFullscreen: sr,
|
|
1221
|
+
onGeneratePdf: T(Sn),
|
|
1222
|
+
onGenerateCsv: ar,
|
|
1223
|
+
onGenerateImage: Sr,
|
|
1224
|
+
onGenerateSvg: xr,
|
|
1225
|
+
onToggleTable: lr,
|
|
1226
|
+
onToggleLabels: ur,
|
|
1227
|
+
onToggleTooltip: dr,
|
|
1228
|
+
onToggleAnnotator: pr,
|
|
1229
|
+
onCopyAlt: Cr,
|
|
1230
|
+
style: y({ visibility: T(hn) ? T(pn) ? "visible" : "hidden" : "visible" })
|
|
1231
|
+
}, Ne({ _: 2 }, [
|
|
1232
|
+
e.$slots.menuIcon ? {
|
|
1233
|
+
name: "menuIcon",
|
|
1234
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
1235
|
+
isOpen: t,
|
|
1236
|
+
color: n
|
|
1237
|
+
})), void 0, !0)]),
|
|
1238
|
+
key: "0"
|
|
1239
|
+
} : void 0,
|
|
1240
|
+
e.$slots.optionTooltip ? {
|
|
1241
|
+
name: "optionTooltip",
|
|
1242
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1243
|
+
key: "1"
|
|
1244
|
+
} : void 0,
|
|
1245
|
+
e.$slots.optionPdf ? {
|
|
1246
|
+
name: "optionPdf",
|
|
1247
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1248
|
+
key: "2"
|
|
1249
|
+
} : void 0,
|
|
1250
|
+
e.$slots.optionCsv ? {
|
|
1251
|
+
name: "optionCsv",
|
|
1252
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1253
|
+
key: "3"
|
|
1254
|
+
} : void 0,
|
|
1255
|
+
e.$slots.optionImg ? {
|
|
1256
|
+
name: "optionImg",
|
|
1257
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1258
|
+
key: "4"
|
|
1259
|
+
} : void 0,
|
|
1260
|
+
e.$slots.optionSvg ? {
|
|
1261
|
+
name: "optionSvg",
|
|
1262
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1263
|
+
key: "5"
|
|
1264
|
+
} : void 0,
|
|
1265
|
+
e.$slots.optionTable ? {
|
|
1266
|
+
name: "optionTable",
|
|
1267
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1268
|
+
key: "6"
|
|
1269
|
+
} : void 0,
|
|
1270
|
+
e.$slots.optionLabels ? {
|
|
1271
|
+
name: "optionLabels",
|
|
1272
|
+
fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1273
|
+
key: "7"
|
|
1274
|
+
} : void 0,
|
|
1275
|
+
e.$slots.optionFullscreen ? {
|
|
1276
|
+
name: "optionFullscreen",
|
|
1277
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
|
|
1278
|
+
toggleFullscreen: t,
|
|
1279
|
+
isFullscreen: n
|
|
1280
|
+
})), void 0, !0)]),
|
|
1281
|
+
key: "8"
|
|
1282
|
+
} : void 0,
|
|
1283
|
+
e.$slots.optionAnnotator ? {
|
|
1284
|
+
name: "optionAnnotator",
|
|
1285
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
|
|
1286
|
+
toggleAnnotator: t,
|
|
1287
|
+
isAnnotator: n
|
|
1288
|
+
})), void 0, !0)]),
|
|
1289
|
+
key: "9"
|
|
1290
|
+
} : void 0,
|
|
1291
|
+
e.$slots.optionAltCopy ? {
|
|
1292
|
+
name: "optionAltCopy",
|
|
1293
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
|
|
1294
|
+
key: "10"
|
|
1295
|
+
} : void 0,
|
|
1296
|
+
e.$slots["custom-menu-before"] ? {
|
|
1297
|
+
name: "custom-menu-before",
|
|
1298
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1299
|
+
key: "11"
|
|
1300
|
+
} : void 0,
|
|
1301
|
+
e.$slots["custom-menu-after"] ? {
|
|
1302
|
+
name: "custom-menu-after",
|
|
1303
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1304
|
+
key: "12"
|
|
1305
|
+
} : 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("."))) : p("", !0),
|
|
1307
|
+
h("div", Ye, [(b(), m("svg", {
|
|
1308
|
+
ref_key: "svgRef",
|
|
1309
|
+
ref: F,
|
|
1310
|
+
xmlns: T(fe),
|
|
1311
|
+
class: Re({
|
|
1312
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
1313
|
+
"vue-data-ui-fulscreen--off": !$.value
|
|
1314
|
+
}),
|
|
1315
|
+
viewBox: `0 0 ${R.value} ${z.value}`,
|
|
1316
|
+
style: y(`max-width:100%; overflow: visible; background:transparent;color:${N.value.style.chart.color};`),
|
|
1317
|
+
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1318
|
+
tabindex: "0",
|
|
1319
|
+
onFocus: Ar,
|
|
1320
|
+
onBlur: jr,
|
|
1321
|
+
onKeydown: Mr
|
|
1322
|
+
}, [
|
|
1323
|
+
Fe(T(Pt)),
|
|
1324
|
+
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1325
|
+
key: 0,
|
|
1326
|
+
x: U.value.left,
|
|
1327
|
+
y: U.value.top,
|
|
1328
|
+
width: Math.max(.1, U.value.width),
|
|
1329
|
+
height: Math.max(.1, U.value.height),
|
|
1330
|
+
style: { pointerEvents: "none" }
|
|
1331
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : p("", !0),
|
|
1332
|
+
N.value.style.chart.grid.show ? (b(), m("g", Qe, [
|
|
1333
|
+
N.value.style.chart.grid.horizontalGrid.show ? (b(), m("g", $e, [(b(!0), m(u, null, S(Xn.value, (e) => (b(), m("line", {
|
|
1334
|
+
x1: e.x1,
|
|
1335
|
+
x2: e.x2,
|
|
1336
|
+
y1: e.y,
|
|
1337
|
+
y2: e.y,
|
|
1338
|
+
stroke: N.value.style.chart.grid.horizontalGrid.stroke,
|
|
1339
|
+
"stroke-width": N.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1340
|
+
"stroke-dasharray": N.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
1341
|
+
"stroke-linecap": "round"
|
|
1342
|
+
}, null, 8, et))), 256))])) : p("", !0),
|
|
1343
|
+
N.value.style.chart.grid.verticalGrid.show ? (b(), m("g", tt, [(b(!0), m(u, null, S(G.value, (e, t) => (b(), m("line", {
|
|
1344
|
+
x1: U.value.left + (t + 1) * U.value.stripWidth,
|
|
1345
|
+
x2: U.value.left + (t + 1) * U.value.stripWidth,
|
|
1346
|
+
y1: U.value.top,
|
|
1347
|
+
y2: U.value.bottom,
|
|
1348
|
+
stroke: N.value.style.chart.grid.verticalGrid.stroke,
|
|
1349
|
+
"stroke-width": N.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
1350
|
+
"stroke-dasharray": N.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
1351
|
+
"stroke-linecap": "round"
|
|
1352
|
+
}, null, 8, nt))), 256))])) : p("", !0),
|
|
1353
|
+
h("line", {
|
|
1354
|
+
x1: U.value.left,
|
|
1355
|
+
x2: U.value.left,
|
|
1356
|
+
y1: U.value.top,
|
|
1357
|
+
y2: U.value.bottom,
|
|
1358
|
+
stroke: N.value.style.chart.grid.stroke,
|
|
1359
|
+
"stroke-width": N.value.style.chart.grid.strokeWidth,
|
|
1360
|
+
"stroke-linecap": "round"
|
|
1361
|
+
}, null, 8, rt),
|
|
1362
|
+
h("line", {
|
|
1363
|
+
x1: U.value.left,
|
|
1364
|
+
x2: U.value.right,
|
|
1365
|
+
y1: U.value.bottom,
|
|
1366
|
+
y2: U.value.bottom,
|
|
1367
|
+
stroke: N.value.style.chart.grid.stroke,
|
|
1368
|
+
"stroke-width": N.value.style.chart.grid.strokeWidth,
|
|
1369
|
+
"stroke-linecap": "round"
|
|
1370
|
+
}, null, 8, it)
|
|
1371
|
+
])) : p("", !0),
|
|
1372
|
+
N.value.style.chart.labels.yAxisLabels.show ? (b(), m("g", {
|
|
1373
|
+
key: 2,
|
|
1374
|
+
ref_key: "scaleLabels",
|
|
1375
|
+
ref: rn
|
|
1376
|
+
}, [(b(!0), m(u, null, S(Xn.value, (e, t) => (b(), m("text", {
|
|
1377
|
+
x: e.x1 + N.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
1378
|
+
y: e.y + N.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1379
|
+
fill: N.value.style.chart.labels.yAxisLabels.color,
|
|
1380
|
+
"font-size": N.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1381
|
+
"text-anchor": "end"
|
|
1382
|
+
}, w(T(ce)(N.value.style.chart.labels.formatter, e.value, T(a)({
|
|
1383
|
+
p: N.value.style.chart.labels.prefix,
|
|
1384
|
+
v: e.value,
|
|
1385
|
+
s: N.value.style.chart.labels.suffix,
|
|
1386
|
+
r: N.value.style.chart.labels.yAxisLabels.rounding
|
|
1387
|
+
}), {
|
|
1388
|
+
datapoint: e,
|
|
1389
|
+
seriesIndex: t
|
|
1390
|
+
})), 9, at))), 256))], 512)) : p("", !0),
|
|
1391
|
+
N.value.style.chart.labels.xAxisLabels.show ? (b(), m("g", {
|
|
1392
|
+
key: 3,
|
|
1393
|
+
ref_key: "timeLabelsEls",
|
|
1394
|
+
ref: nn
|
|
1395
|
+
}, [(b(!0), m(u, null, S(hr.value, (e, t) => (b(), m("g", null, [String(e).includes("\n") ? (b(), m("text", {
|
|
1396
|
+
key: 1,
|
|
1397
|
+
class: "vue-ui-strip-plot-category-name",
|
|
1398
|
+
transform: `translate(${U.value.left + (t + 1) * U.value.stripWidth - U.value.stripWidth / 2}, ${U.value.bottom + N.value.style.chart.labels.xAxisLabels.fontSize * 2 + N.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${N.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1399
|
+
"font-size": N.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1400
|
+
fill: N.value.style.chart.labels.xAxisLabels.color,
|
|
1401
|
+
"text-anchor": N.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : N.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
1402
|
+
innerHTML: T(te)({
|
|
1403
|
+
content: T(re)(String(e)),
|
|
1404
|
+
fontSize: N.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1405
|
+
fill: N.value.style.chart.labels.xAxisLabels.color,
|
|
1406
|
+
x: 0,
|
|
1407
|
+
y: 0
|
|
1408
|
+
})
|
|
1409
|
+
}, null, 8, st)) : (b(), m("text", {
|
|
1410
|
+
key: 0,
|
|
1411
|
+
class: "vue-ui-strip-plot-category-name",
|
|
1412
|
+
transform: `translate(${U.value.left + (t + 1) * U.value.stripWidth - U.value.stripWidth / 2}, ${U.value.bottom + N.value.style.chart.labels.xAxisLabels.fontSize * 2 + N.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${N.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1413
|
+
"font-size": N.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1414
|
+
fill: N.value.style.chart.labels.xAxisLabels.color,
|
|
1415
|
+
"text-anchor": N.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : N.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
1416
|
+
}, w(String(e)), 9, ot))]))), 256))], 512)) : p("", !0),
|
|
1417
|
+
N.value.style.chart.labels.axis.yLabel ? (b(), m("text", {
|
|
1418
|
+
key: 4,
|
|
1419
|
+
ref_key: "yAxisLabel",
|
|
1420
|
+
ref: tn,
|
|
1421
|
+
fill: N.value.style.chart.labels.axis.color,
|
|
1422
|
+
"font-size": N.value.style.chart.labels.axis.fontSize,
|
|
1423
|
+
transform: `translate(${N.value.style.chart.labels.axis.fontSize}, ${U.value.top + U.value.height / 2}) rotate(-90)`,
|
|
1424
|
+
"text-anchor": "middle"
|
|
1425
|
+
}, w(N.value.style.chart.labels.axis.yLabel), 9, ct)) : p("", !0),
|
|
1426
|
+
N.value.style.chart.labels.axis.xLabel ? (b(), m("text", {
|
|
1427
|
+
key: 5,
|
|
1428
|
+
ref_key: "xAxisLabel",
|
|
1429
|
+
ref: en,
|
|
1430
|
+
fill: N.value.style.chart.labels.axis.color,
|
|
1431
|
+
"font-size": N.value.style.chart.labels.axis.fontSize,
|
|
1432
|
+
x: U.value.left + U.value.width / 2,
|
|
1433
|
+
y: z.value - N.value.style.chart.labels.axis.fontSize / 3,
|
|
1434
|
+
"text-anchor": "middle"
|
|
1435
|
+
}, w(N.value.style.chart.labels.axis.xLabel), 9, lt)) : p("", !0),
|
|
1436
|
+
Q.value ? (b(), m(u, { key: 6 }, [
|
|
1437
|
+
h("line", {
|
|
1438
|
+
x1: U.value.left,
|
|
1439
|
+
x2: U.value.right,
|
|
1440
|
+
y1: Q.value.y,
|
|
1441
|
+
y2: Q.value.y,
|
|
1442
|
+
stroke: Q.value.color,
|
|
1443
|
+
"stroke-width": 1,
|
|
1444
|
+
class: Re({ "select-circle": N.value.useCssAnimation })
|
|
1445
|
+
}, null, 10, ut),
|
|
1446
|
+
h("circle", {
|
|
1447
|
+
cx: U.value.left,
|
|
1448
|
+
cy: Q.value.y,
|
|
1449
|
+
r: 3,
|
|
1450
|
+
fill: Q.value.color,
|
|
1451
|
+
class: Re({ "select-circle": N.value.useCssAnimation })
|
|
1452
|
+
}, null, 10, dt),
|
|
1453
|
+
h("circle", {
|
|
1454
|
+
cx: U.value.right,
|
|
1455
|
+
cy: Q.value.y,
|
|
1456
|
+
r: 3,
|
|
1457
|
+
fill: Q.value.color,
|
|
1458
|
+
class: Re({ "select-circle": N.value.useCssAnimation })
|
|
1459
|
+
}, null, 10, ft)
|
|
1460
|
+
], 64)) : p("", !0),
|
|
1461
|
+
h("defs", null, [(b(!0), m(u, null, S(G.value, (e) => (b(), m("radialGradient", {
|
|
1462
|
+
id: e.id,
|
|
1463
|
+
fy: "30%"
|
|
1464
|
+
}, [
|
|
1465
|
+
h("stop", {
|
|
1466
|
+
offset: "10%",
|
|
1467
|
+
"stop-color": T(n)(e.color, N.value.style.chart.plots.gradient.intensity / 100)
|
|
1468
|
+
}, null, 8, mt),
|
|
1469
|
+
h("stop", {
|
|
1470
|
+
offset: "90%",
|
|
1471
|
+
"stop-color": T(de)(e.color, .1)
|
|
1472
|
+
}, null, 8, ht),
|
|
1473
|
+
h("stop", {
|
|
1474
|
+
offset: "100%",
|
|
1475
|
+
"stop-color": e.color
|
|
1476
|
+
}, null, 8, gt)
|
|
1477
|
+
], 8, pt))), 256))]),
|
|
1478
|
+
(b(!0), m(u, null, S(Hn.value, (e, n) => (b(), m(u, { key: e.id }, [e.path ? (b(), m("path", {
|
|
1479
|
+
key: 0,
|
|
1480
|
+
d: e.path,
|
|
1481
|
+
fill: e.fill,
|
|
1482
|
+
stroke: e.color,
|
|
1483
|
+
"fill-opacity": N.value.style.chart.violin.opacity,
|
|
1484
|
+
"stroke-opacity": N.value.style.chart.violin.strokeOpacity,
|
|
1485
|
+
"stroke-width": N.value.style.chart.violin.strokeWidth,
|
|
1486
|
+
style: y({
|
|
1487
|
+
pointerEvents: J.value ? "auto" : "none",
|
|
1488
|
+
cursor: J.value && P.value ? "pointer" : "default"
|
|
1489
|
+
}),
|
|
1490
|
+
onMouseenter: (e) => J.value && Y.value[n] && rr({
|
|
1491
|
+
boxPlot: Y.value[n],
|
|
1492
|
+
seriesIndex: n,
|
|
1493
|
+
triggerMode: "pointer"
|
|
1494
|
+
}),
|
|
1495
|
+
onMouseleave: t[0] ||= (e) => J.value && nr()
|
|
1496
|
+
}, null, 44, _t)) : p("", !0), (b(!0), m(u, null, S(e.connectors, (t, n) => (b(), m("line", {
|
|
1497
|
+
key: `violin_connector_${e.id}_${n}`,
|
|
1498
|
+
x1: t.x,
|
|
1499
|
+
x2: t.x,
|
|
1500
|
+
y1: t.y1,
|
|
1501
|
+
y2: t.y2,
|
|
1502
|
+
stroke: e.color,
|
|
1503
|
+
"stroke-opacity": N.value.style.chart.violin.strokeOpacity,
|
|
1504
|
+
"stroke-width": N.value.style.chart.violin.strokeWidth,
|
|
1505
|
+
"stroke-linecap": "round",
|
|
1506
|
+
style: { "pointer-events": "none" }
|
|
1507
|
+
}, null, 8, vt))), 128))], 64))), 128)),
|
|
1508
|
+
(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("g", {
|
|
1509
|
+
key: `boxplot_${e.id}`,
|
|
1510
|
+
style: y({ cursor: P.value ? "pointer" : "default" }),
|
|
1511
|
+
onMouseenter: (n) => rr({
|
|
1512
|
+
boxPlot: e,
|
|
1513
|
+
seriesIndex: t,
|
|
1514
|
+
triggerMode: "pointer"
|
|
1515
|
+
}),
|
|
1516
|
+
onMouseleave: nr
|
|
1517
|
+
}, [
|
|
1518
|
+
h("line", {
|
|
1519
|
+
x1: e.centerX,
|
|
1520
|
+
x2: e.centerX,
|
|
1521
|
+
y1: e.upperY,
|
|
1522
|
+
y2: e.lowerY,
|
|
1523
|
+
stroke: T(de)(e.boxPlotColor, .2),
|
|
1524
|
+
"stroke-width": Math.max(1, N.value.style.chart.violin.strokeWidth),
|
|
1525
|
+
"stroke-linecap": "round"
|
|
1526
|
+
}, null, 8, bt),
|
|
1527
|
+
h("rect", {
|
|
1528
|
+
x: e.boxLeft,
|
|
1529
|
+
y: Math.min(e.q1Y, e.q3Y),
|
|
1530
|
+
width: e.boxWidth,
|
|
1531
|
+
height: Math.max(1, Math.abs(e.q3Y - e.q1Y)),
|
|
1532
|
+
fill: e.boxPlotColor,
|
|
1533
|
+
stroke: T(de)(e.boxPlotColor, .2),
|
|
1534
|
+
"stroke-width": Math.max(1, N.value.style.chart.violin.strokeWidth),
|
|
1535
|
+
rx: e.boxWidth / 20
|
|
1536
|
+
}, null, 8, xt),
|
|
1537
|
+
h("circle", {
|
|
1538
|
+
cx: e.boxLeft + e.boxWidth / 2,
|
|
1539
|
+
cy: e.medianY,
|
|
1540
|
+
r: e.boxWidth / 3 * Math.min(1, N.value.style.chart.violin.boxPlot.medianCircleRadiusRatio),
|
|
1541
|
+
fill: N.value.style.chart.violin.boxPlot.medianCircleFill,
|
|
1542
|
+
stroke: T(de)(e.boxPlotColor, .2)
|
|
1543
|
+
}, null, 8, St)
|
|
1544
|
+
], 44, yt))), 128)),
|
|
1545
|
+
(b(!0), m(u, null, S(q.value, (t, n) => (b(), m(u, null, [J.value ? p("", !0) : (b(!0), m(u, { key: 0 }, S(t.plots, (n, r) => (b(), f(Te, Ie({ ref_for: !0 }, e.$attrs, {
|
|
1546
|
+
plot: {
|
|
1547
|
+
x: n.x,
|
|
1548
|
+
y: qt.value ? n.y : U.value.top
|
|
1549
|
+
},
|
|
1550
|
+
radius: Q.value && Q.value.id === n.id ? V.value * 1.5 : V.value,
|
|
1551
|
+
shape: N.value.style.chart.plots.shape,
|
|
1552
|
+
stroke: N.value.style.chart.plots.stroke,
|
|
1553
|
+
strokeWidth: N.value.style.chart.plots.strokeWidth,
|
|
1554
|
+
color: N.value.style.chart.plots.gradient.show ? `url(#${t.id})` : t.color,
|
|
1555
|
+
style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : N.value.style.chart.plots.opacity};${En.value ? `transition-delay:${r * 50}ms` : ""}`,
|
|
1556
|
+
class: {
|
|
1557
|
+
"vue-ui-strip-plot-animated": N.value.useCssAnimation && En.value && !T(un),
|
|
1558
|
+
"vue-ui-strip-plot-select-circle": N.value.useCssAnimation && !En.value
|
|
1559
|
+
},
|
|
1560
|
+
onMouseenter: (e) => tr({
|
|
1561
|
+
datapoint: n,
|
|
1562
|
+
seriesIndex: r,
|
|
1563
|
+
triggerMode: "pointer"
|
|
1564
|
+
}),
|
|
1565
|
+
onMouseleave: (e) => Qn({
|
|
1566
|
+
datapoint: n,
|
|
1567
|
+
seriesIndex: r
|
|
1568
|
+
}),
|
|
1569
|
+
onClick: (e) => $n({
|
|
1570
|
+
datapoint: n,
|
|
1571
|
+
seriesIndex: r
|
|
1572
|
+
})
|
|
1573
|
+
}), null, 16, [
|
|
1574
|
+
"plot",
|
|
1575
|
+
"radius",
|
|
1576
|
+
"shape",
|
|
1577
|
+
"stroke",
|
|
1578
|
+
"strokeWidth",
|
|
1579
|
+
"color",
|
|
1580
|
+
"style",
|
|
1581
|
+
"class",
|
|
1582
|
+
"onMouseenter",
|
|
1583
|
+
"onMouseleave",
|
|
1584
|
+
"onClick"
|
|
1585
|
+
]))), 256)), B.value.dataLabels.show && !J.value ? (b(), m("g", Ct, [(b(!0), m(u, null, S(t.plots, (e, n) => (b(), m(u, null, [n === t.plots.length - 1 || Q.value && Q.value.id === e.id && !B.value.showTooltip ? (b(), m("text", {
|
|
1586
|
+
key: 0,
|
|
1587
|
+
x: e.x,
|
|
1588
|
+
y: e.y + N.value.style.chart.labels.bestPlotLabel.offsetY - V.value * (Q.value && Q.value.id === e.id && !B.value.showTooltip ? 2 : 1.5),
|
|
1589
|
+
"font-size": N.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
1590
|
+
fill: N.value.style.chart.labels.bestPlotLabel.color,
|
|
1591
|
+
"text-anchor": "middle",
|
|
1592
|
+
style: y(`opacity:${N.value.useCssAnimation ? +!En.value : 1};transition:opacity 0.2s ease-in;`)
|
|
1593
|
+
}, w(e.name) + " " + w(N.value.style.chart.labels.bestPlotLabel.showValue ? T(ce)(N.value.style.chart.labels.formatter, e.value, T(a)({
|
|
1594
|
+
p: `(${N.value.style.chart.labels.prefix}`,
|
|
1595
|
+
v: e.value,
|
|
1596
|
+
s: `${N.value.style.chart.labels.suffix})`,
|
|
1597
|
+
r: N.value.style.chart.labels.bestPlotLabel.rounding
|
|
1598
|
+
}), {
|
|
1599
|
+
datapoint: e,
|
|
1600
|
+
seriesIndex: n
|
|
1601
|
+
}) : ""), 13, wt)) : p("", !0)], 64))), 256))])) : p("", !0)], 64))), 256)),
|
|
1602
|
+
C(e.$slots, "svg", { svg: {
|
|
1603
|
+
...U.value,
|
|
1604
|
+
isPrintingImg: T(bn) || T(xn) || Qt.value,
|
|
1605
|
+
isPrintingSvg: $t.value,
|
|
1606
|
+
boxPlotSummaries: Y.value,
|
|
1607
|
+
series: G.value
|
|
1608
|
+
} }, void 0, !0)
|
|
1609
|
+
], 46, Xe)), e.$slots.hint ? (b(), m("div", Tt, [C(e.$slots, "hint", v(_({
|
|
1610
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1611
|
+
isVisible: sn.value
|
|
1612
|
+
})), void 0, !0)])) : p("", !0)]),
|
|
1613
|
+
e.$slots.watermark ? (b(), m("div", Et, [C(e.$slots, "watermark", v(_({ isPrinting: T(bn) || T(xn) || Qt.value || $t.value })), void 0, !0)])) : p("", !0),
|
|
1614
|
+
e.$slots.source ? (b(), m("div", {
|
|
1615
|
+
key: 6,
|
|
1616
|
+
ref_key: "source",
|
|
1617
|
+
ref: Gt,
|
|
1618
|
+
dir: "auto"
|
|
1619
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1620
|
+
Fe(T(Ot), {
|
|
1621
|
+
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1622
|
+
show: B.value.showTooltip && k.value,
|
|
1623
|
+
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1624
|
+
color: N.value.style.chart.tooltip.color,
|
|
1625
|
+
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
1626
|
+
borderColor: N.value.style.chart.tooltip.borderColor,
|
|
1627
|
+
borderWidth: N.value.style.chart.tooltip.borderWidth,
|
|
1628
|
+
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
1629
|
+
backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
|
|
1630
|
+
position: N.value.style.chart.tooltip.position,
|
|
1631
|
+
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
1632
|
+
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1633
|
+
parent: A.value,
|
|
1634
|
+
content: Ut.value,
|
|
1635
|
+
isFullscreen: $.value,
|
|
1636
|
+
isCustom: T(me)(N.value.style.chart.tooltip.customFormat),
|
|
1637
|
+
smooth: N.value.style.chart.tooltip.smooth,
|
|
1638
|
+
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1639
|
+
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1640
|
+
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1641
|
+
isA11yMode: M.value === "keyboard",
|
|
1642
|
+
a11yPosition: on.value
|
|
1643
|
+
}, {
|
|
1644
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...Zn.value })), void 0, !0)]),
|
|
1645
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...Zn.value })), void 0, !0)]),
|
|
1646
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(_({ ...Zn.value })), void 0, !0)]),
|
|
1647
|
+
_: 3
|
|
1648
|
+
}, 8, [
|
|
1649
|
+
"teleportTo",
|
|
1650
|
+
"show",
|
|
1651
|
+
"backgroundColor",
|
|
1652
|
+
"color",
|
|
1653
|
+
"borderRadius",
|
|
1654
|
+
"borderColor",
|
|
1655
|
+
"borderWidth",
|
|
1656
|
+
"fontSize",
|
|
1657
|
+
"backgroundOpacity",
|
|
1658
|
+
"position",
|
|
1659
|
+
"offsetX",
|
|
1660
|
+
"offsetY",
|
|
1661
|
+
"parent",
|
|
1662
|
+
"content",
|
|
1663
|
+
"isFullscreen",
|
|
1664
|
+
"isCustom",
|
|
1665
|
+
"smooth",
|
|
1666
|
+
"backdropFilter",
|
|
1667
|
+
"smoothForce",
|
|
1668
|
+
"smoothSnapThreshold",
|
|
1669
|
+
"isA11yMode",
|
|
1670
|
+
"a11yPosition"
|
|
1671
|
+
]),
|
|
1672
|
+
Vt.value && N.value.userOptions.buttons.table ? (b(), f(Ve(gr.value.component), Ie({ key: 7 }, gr.value.props, {
|
|
1673
|
+
ref_key: "tableUnit",
|
|
1674
|
+
ref: Xt,
|
|
1675
|
+
onClose: _r
|
|
1676
|
+
}), Ne({
|
|
1677
|
+
content: E(() => [(b(), f(T(jt), {
|
|
1678
|
+
key: `table_${Yt.value}`,
|
|
1679
|
+
colNames: or.value.colNames,
|
|
1680
|
+
head: or.value.head,
|
|
1681
|
+
body: or.value.body,
|
|
1682
|
+
config: or.value.config,
|
|
1683
|
+
title: N.value.table.useDialog ? "" : gr.value.title,
|
|
1684
|
+
withCloseButton: !N.value.table.useDialog,
|
|
1685
|
+
isCursorPointer: P.value,
|
|
1686
|
+
onClose: _r
|
|
1687
|
+
}, {
|
|
1688
|
+
th: E(({ th: e }) => [h("div", {
|
|
1689
|
+
innerHTML: e,
|
|
1690
|
+
style: {
|
|
1691
|
+
display: "flex",
|
|
1692
|
+
"align-items": "center"
|
|
1693
|
+
}
|
|
1694
|
+
}, null, 8, Dt)]),
|
|
1695
|
+
td: E(({ td: e }) => [Pe(w(e.name || e), 1)]),
|
|
1696
|
+
_: 1
|
|
1697
|
+
}, 8, [
|
|
1698
|
+
"colNames",
|
|
1699
|
+
"head",
|
|
1700
|
+
"body",
|
|
1701
|
+
"config",
|
|
1702
|
+
"title",
|
|
1703
|
+
"withCloseButton",
|
|
1704
|
+
"isCursorPointer"
|
|
1705
|
+
]))]),
|
|
1706
|
+
_: 2
|
|
1707
|
+
}, [N.value.table.useDialog ? {
|
|
1708
|
+
name: "title",
|
|
1709
|
+
fn: E(() => [Pe(w(gr.value.title), 1)]),
|
|
1710
|
+
key: "0"
|
|
1711
|
+
} : void 0, N.value.table.useDialog ? {
|
|
1712
|
+
name: "actions",
|
|
1713
|
+
fn: E(() => [h("button", {
|
|
1714
|
+
tabindex: "0",
|
|
1715
|
+
class: "vue-ui-user-options-button",
|
|
1716
|
+
onClick: t[1] ||= (e) => ar(N.value.userOptions.callbacks.csv),
|
|
1717
|
+
style: y({ cursor: P.value ? "pointer" : "default" })
|
|
1718
|
+
}, [Fe(T(kt), {
|
|
1719
|
+
name: "fileCsv",
|
|
1720
|
+
stroke: gr.value.props.color
|
|
1721
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1722
|
+
key: "1"
|
|
1723
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1724
|
+
C(e.$slots, "skeleton", {}, () => [T(un) ? (b(), f(ve, { key: 0 })) : p("", !0)], !0)
|
|
1725
|
+
], 46, qe));
|
|
1726
|
+
}
|
|
1727
|
+
}, [["__scopeId", "data-v-2a046a41"]]);
|
|
1728
|
+
//#endregion
|
|
1729
|
+
export { Ke as n, Ot as t };
|