vue-data-ui 3.26.4 → 3.27.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/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
- package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
- 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 +212 -60
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
- package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
- package/dist/vue-ui-funnel-eVH871L3.js +0 -749
- package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
- package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
- package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
- package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
- package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
- package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
- package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
- package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
- package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
- package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
- package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
- package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
- package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
- package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, D as n, Dt as r, Ht as i, S as a, X as o, at as s, en as ee, et as te, i as ne, nn as re, nt as ie, pt as ae, t as oe, w as se, zt as ce } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as le, t as ue } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as de } from "./useConfig-
|
|
5
|
-
import { t as fe } from "./usePrinter-
|
|
4
|
+
import { t as de } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { t as fe } from "./usePrinter-DdW2GSm0.js";
|
|
6
6
|
import { n as pe, t as me } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as he } from "./useNestedProp-
|
|
7
|
+
import { t as he } from "./useNestedProp-DR_8JPol.js";
|
|
8
8
|
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as _e } from "./useChartExport-iwOqiIWX.js";
|
|
10
10
|
import { t as ve } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as ye } from "./img
|
|
12
|
-
import { n as be } from "./Title-
|
|
11
|
+
import { t as ye } from "./img-Bb5rHcpO.js";
|
|
12
|
+
import { n as be } from "./Title-BMCuINbv.js";
|
|
13
13
|
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as we } from "./BaseLegendToggle-
|
|
15
|
+
import { t as we } from "./BaseLegendToggle-CP3sddwv.js";
|
|
16
16
|
import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as De } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Oe } from "./labelUtils-
|
|
20
|
-
import { t as ke } from "./Legend-
|
|
19
|
+
import { t as Oe } from "./labelUtils-Ccn9kK7T.js";
|
|
20
|
+
import { t as ke } from "./Legend-CulFgjUY.js";
|
|
21
21
|
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
22
22
|
import { t as je } from "./vue_ui_onion-1FTFFS46.js";
|
|
23
|
-
import { Fragment as
|
|
23
|
+
import { Fragment as Me, Teleport as Ne, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Le, nextTick as Re, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as ze, onMounted as Be, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as S, toRefs as Ue, unref as C, watch as We, withCtx as w } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-onion.vue
|
|
25
25
|
var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
26
26
|
"xmlns",
|
|
@@ -99,10 +99,10 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
99
99
|
},
|
|
100
100
|
emits: ["selectLegend", "copyAlt"],
|
|
101
101
|
setup(e, { expose: xe, emit: Ge }) {
|
|
102
|
-
let pt =
|
|
102
|
+
let pt = p(() => import("./Tooltip-C4ZTwkLF.js")), mt = p(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), ht = p(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), gt = p(() => import("./DataTable-CjF_An2h.js")), _t = p(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), vt = p(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), yt = p(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), bt = p(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_onion: xt } = de(), { isThemeValid: St, warnInvalidTheme: Ct } = ge(), T = e, wt = c(() => !!T.dataset && T.dataset.length), E = y(o()), Tt = y(null), Et = y(0), Dt = y(!1), Ot = y(""), D = y([]), O = y(null), kt = y(null), At = y(null), jt = y(null), Mt = y(null), Nt = y(0), Pt = y(0), Ft = y(0), k = y(!1), It = y(!1), A = y(null), j = y(null), Lt = y({
|
|
103
103
|
x: 0,
|
|
104
104
|
y: 0
|
|
105
|
-
}),
|
|
105
|
+
}), Rt = y("pointer"), zt = y(!1), M = y(Kt()), N = c(() => M.value.userOptions), P = c(() => M.value.style.chart.layout.labels), F = c(() => M.value.style.chart.layout), I = c(() => M.value.style.chart.tooltip), L = c(() => M.value.style.chart);
|
|
106
106
|
le({
|
|
107
107
|
config: () => M.value,
|
|
108
108
|
dataset: () => T.dataset,
|
|
@@ -123,7 +123,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
123
123
|
let { transitionEnabled: R } = ve({
|
|
124
124
|
config: () => M.value.transitions,
|
|
125
125
|
dataset: () => T.dataset
|
|
126
|
-
}), z =
|
|
126
|
+
}), z = c(() => M.value.userOptions.useCursorPointer), Bt = c(() => re({
|
|
127
127
|
defaultConfig: {
|
|
128
128
|
userOptions: { show: !1 },
|
|
129
129
|
table: { show: !1 },
|
|
@@ -138,12 +138,12 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
138
138
|
},
|
|
139
139
|
userConfig: M.value.skeletonConfig ?? {}
|
|
140
140
|
})), { loading: B, FINAL_DATASET: Vt, manualLoading: Ht } = pe({
|
|
141
|
-
...
|
|
141
|
+
...Ue(T),
|
|
142
142
|
FINAL_CONFIG: M,
|
|
143
143
|
prepareConfig: Kt,
|
|
144
144
|
callback: () => {
|
|
145
145
|
Promise.resolve().then(async () => {
|
|
146
|
-
await
|
|
146
|
+
await Re(), yn();
|
|
147
147
|
});
|
|
148
148
|
},
|
|
149
149
|
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
@@ -172,7 +172,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
172
172
|
color: "#969696"
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
|
-
skeletonConfig:
|
|
175
|
+
skeletonConfig: re({
|
|
176
176
|
defaultConfig: M.value,
|
|
177
177
|
userConfig: Bt.value
|
|
178
178
|
})
|
|
@@ -184,24 +184,24 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
184
184
|
}), t = e.theme;
|
|
185
185
|
if (!t) return e;
|
|
186
186
|
if (!St.value(e)) return Ct(e), e;
|
|
187
|
-
let
|
|
187
|
+
let n = he({
|
|
188
188
|
userConfig: je[t] || T.config,
|
|
189
189
|
defaultConfig: e
|
|
190
|
-
}),
|
|
190
|
+
}), r = he({
|
|
191
191
|
userConfig: T.config,
|
|
192
|
-
defaultConfig:
|
|
192
|
+
defaultConfig: n
|
|
193
193
|
});
|
|
194
194
|
return {
|
|
195
|
-
...
|
|
196
|
-
customPalette:
|
|
195
|
+
...r,
|
|
196
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || i
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
function qt(e) {
|
|
200
|
-
let t =
|
|
200
|
+
let t = te(e);
|
|
201
201
|
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
202
202
|
}
|
|
203
203
|
let Jt = qt(T.config);
|
|
204
|
-
|
|
204
|
+
We(() => T.config, (e, t) => {
|
|
205
205
|
let n = qt(e), r = n !== Jt;
|
|
206
206
|
Jt = n;
|
|
207
207
|
let i = Kt();
|
|
@@ -209,23 +209,23 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
209
209
|
M.value.style.chart.tooltip = i.style.chart.tooltip, H.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
|
-
B.value || (M.value = i), Ut.value = !M.value.userOptions.showOnChartHover, fn(),
|
|
212
|
+
B.value || (M.value = i), Ut.value = !M.value.userOptions.showOnChartHover, fn(), Nt.value += 1, Pt.value += 1, Ft.value += 1, H.value.showTable = M.value.table.show, H.value.showTooltip = I.value.show;
|
|
213
213
|
}, { deep: !0 });
|
|
214
214
|
let { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = fe({
|
|
215
215
|
elementId: `vue-ui-onion_${E.value}`,
|
|
216
216
|
fileName: L.value.title.text || "vue-ui-onion",
|
|
217
217
|
options: M.value.userOptions.print
|
|
218
|
-
}), $t =
|
|
218
|
+
}), $t = c(() => M.value.userOptions.show && !L.value.title.text), en = c(() => se(M.value.customPalette)), H = y({
|
|
219
219
|
showTable: M.value.table.show,
|
|
220
220
|
showTooltip: I.value.show
|
|
221
221
|
});
|
|
222
|
-
|
|
222
|
+
We(M, () => {
|
|
223
223
|
H.value = {
|
|
224
224
|
showTable: M.value.table.show,
|
|
225
225
|
showTooltip: I.value.show
|
|
226
226
|
};
|
|
227
227
|
}, { immediate: !0 });
|
|
228
|
-
let U =
|
|
228
|
+
let U = y({
|
|
229
229
|
height: 512,
|
|
230
230
|
width: 512,
|
|
231
231
|
padding: {
|
|
@@ -236,7 +236,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
236
236
|
},
|
|
237
237
|
minRadius: 64
|
|
238
238
|
}), W = He(null), G = He(null);
|
|
239
|
-
|
|
239
|
+
Be(() => {
|
|
240
240
|
It.value = !0, fn();
|
|
241
241
|
});
|
|
242
242
|
let { autoSizeLabels: tn } = Ae({
|
|
@@ -255,7 +255,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
function sn() {
|
|
258
|
-
return typeof window > "u" || !R.value ||
|
|
258
|
+
return typeof window > "u" || !R.value || k.value || B.value || !V.value ? 0 : Array.from(V.value.querySelectorAll(".vue-ui-onion-label.vue-data-ui-transition")).reduce((e, t) => {
|
|
259
259
|
let n = window.getComputedStyle(t);
|
|
260
260
|
if (n.transitionProperty === "none") return e;
|
|
261
261
|
let r = on(n.transitionDuration), i = on(n.transitionDelay), a = Math.max(r.length, i.length), o = Array.from({ length: a }, (e, t) => (r[t % r.length] ?? 0) + (i[t % i.length] ?? 0)).reduce((e, t) => Math.max(e, t), 0);
|
|
@@ -270,7 +270,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
270
270
|
function ln() {
|
|
271
271
|
if (typeof window > "u") return;
|
|
272
272
|
let e = ++rn;
|
|
273
|
-
an(),
|
|
273
|
+
an(), Re(() => {
|
|
274
274
|
e === rn && (K = requestAnimationFrame(() => {
|
|
275
275
|
if (K = null, e !== rn) return;
|
|
276
276
|
let t = sn();
|
|
@@ -284,36 +284,36 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
284
284
|
}));
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
let un =
|
|
287
|
+
let un = c(() => M.value.debug), dn = null;
|
|
288
288
|
function fn() {
|
|
289
|
-
if (
|
|
289
|
+
if (ce(T.dataset) && (s({
|
|
290
290
|
componentName: "VueUiOnion",
|
|
291
291
|
type: "dataset",
|
|
292
292
|
debug: un.value
|
|
293
|
-
}), Ht.value = !0),
|
|
293
|
+
}), Ht.value = !0), ce(T.dataset) || (Ht.value = M.value.loading), M.value.responsive) {
|
|
294
294
|
let e = 64 / 512, t = Se(() => {
|
|
295
|
-
dn && clearTimeout(dn),
|
|
295
|
+
dn && clearTimeout(dn), k.value = !0;
|
|
296
296
|
let { width: t, height: n } = Ce({
|
|
297
|
-
chart:
|
|
298
|
-
title: L.value.title.text ?
|
|
299
|
-
legend: L.value.legend.show ?
|
|
300
|
-
source:
|
|
301
|
-
noTitle:
|
|
297
|
+
chart: O.value,
|
|
298
|
+
title: L.value.title.text ? kt.value : null,
|
|
299
|
+
legend: L.value.legend.show ? At.value : null,
|
|
300
|
+
source: jt.value,
|
|
301
|
+
noTitle: Mt.value
|
|
302
302
|
});
|
|
303
303
|
n -= 12, requestAnimationFrame(async () => {
|
|
304
304
|
U.value.width = t, U.value.height = n, U.value.padding.top = Math.max(t, n) * e, U.value.padding.right = Math.max(t, n) * e, U.value.padding.bottom = Math.max(t, n) * e, U.value.padding.left = Math.max(t, n) * e, U.value.minRadius = Math.min(t, n) * e, dn = setTimeout(() => {
|
|
305
|
-
|
|
305
|
+
k.value = !1, ln();
|
|
306
306
|
}, 0);
|
|
307
307
|
});
|
|
308
308
|
});
|
|
309
|
-
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(t), G.value =
|
|
309
|
+
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(t), G.value = O.value.parentNode, W.value.observe(G.value);
|
|
310
310
|
}
|
|
311
311
|
ln();
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
ze(() => {
|
|
314
314
|
rn += 1, an(), W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
|
|
315
315
|
});
|
|
316
|
-
let q =
|
|
316
|
+
let q = c(() => ({
|
|
317
317
|
top: U.value.padding.top,
|
|
318
318
|
left: U.value.padding.left,
|
|
319
319
|
right: U.value.width - U.value.padding.right,
|
|
@@ -324,13 +324,13 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
324
324
|
height: U.value.height - U.value.padding.bottom - U.value.padding.top,
|
|
325
325
|
minRadius: U.value.minRadius,
|
|
326
326
|
maxRadius: Math.min(U.value.width, U.value.height) - U.value.padding.top * 2
|
|
327
|
-
})), J =
|
|
328
|
-
[null, void 0].includes(e.name) &&
|
|
327
|
+
})), J = c(() => (un.value && Vt.value.forEach((e, t) => {
|
|
328
|
+
[null, void 0].includes(e.name) && s({
|
|
329
329
|
componentName: "VueUiOnion",
|
|
330
330
|
type: "datasetSerieAttribute",
|
|
331
331
|
property: "name",
|
|
332
332
|
index: t
|
|
333
|
-
}), [void 0].includes(e.percentage) &&
|
|
333
|
+
}), [void 0].includes(e.percentage) && s({
|
|
334
334
|
componentName: "VueUiOnion",
|
|
335
335
|
type: "datasetSerieAttribute",
|
|
336
336
|
property: "percentage",
|
|
@@ -342,19 +342,19 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
342
342
|
...e,
|
|
343
343
|
percentage: e.percentage || 0,
|
|
344
344
|
targetPercentage: e.percentage || 0,
|
|
345
|
-
color:
|
|
345
|
+
color: a(e.color) || en.value[t] || i[t],
|
|
346
346
|
id: n,
|
|
347
347
|
shape: "circle",
|
|
348
|
-
opacity:
|
|
348
|
+
opacity: D.value.includes(n) ? .5 : 1,
|
|
349
349
|
absoluteIndex: t,
|
|
350
350
|
segregate: () => Tn(n),
|
|
351
|
-
isSegregated:
|
|
351
|
+
isSegregated: D.value.includes(n)
|
|
352
352
|
};
|
|
353
|
-
}))), pn =
|
|
353
|
+
}))), pn = c(() => J.value.map((e, n) => {
|
|
354
354
|
let r = L.value.legend.showValue, i = L.value.legend.showPercentage, a = Fn({
|
|
355
355
|
showVal: r,
|
|
356
356
|
showPercentage: i,
|
|
357
|
-
val:
|
|
357
|
+
val: ne(P.value.value.formatter, e.value, t({
|
|
358
358
|
p: e.prefix || "",
|
|
359
359
|
v: e.value,
|
|
360
360
|
s: e.suffix || "",
|
|
@@ -371,11 +371,11 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
371
371
|
...e,
|
|
372
372
|
display: `${e.name}${r || i ? ": " : ""}${a}`
|
|
373
373
|
};
|
|
374
|
-
})), mn =
|
|
375
|
-
|
|
374
|
+
})), mn = y(J.value), hn = c(() => M.value.useStartAnimation), gn = y(null), _n = c(() => Math.max(...J.value.map((e) => e.percentage))), vn = y(!1);
|
|
375
|
+
We(() => J.value, yn, {
|
|
376
376
|
immediate: !0,
|
|
377
377
|
deep: !0
|
|
378
|
-
}),
|
|
378
|
+
}), We(() => T.dataset, (e) => {
|
|
379
379
|
Array.isArray(e) && e.length > 0 && (Ht.value = !1), ln();
|
|
380
380
|
}, {
|
|
381
381
|
deep: !0,
|
|
@@ -397,20 +397,20 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
397
397
|
t();
|
|
398
398
|
} else mn.value = J.value;
|
|
399
399
|
}
|
|
400
|
-
let bn =
|
|
400
|
+
let bn = c(() => ({
|
|
401
401
|
cy: "onion-div-legend",
|
|
402
402
|
backgroundColor: L.value.legend.backgroundColor,
|
|
403
403
|
color: L.value.legend.color,
|
|
404
404
|
fontSize: L.value.legend.fontSize,
|
|
405
405
|
paddingBottom: 12,
|
|
406
406
|
fontWeight: L.value.legend.bold ? "bold" : ""
|
|
407
|
-
})), xn =
|
|
407
|
+
})), xn = c(() => J.value.filter((e) => !D.value.includes(e.id)).length), Y = c(() => {
|
|
408
408
|
let e = Math.min(q.value.width, q.value.height) / 2 / J.value.length;
|
|
409
409
|
return {
|
|
410
410
|
gutter: (e > F.value.maxThickness ? F.value.maxThickness : e) * F.value.gutter.width,
|
|
411
411
|
track: (e > F.value.maxThickness ? F.value.maxThickness : e) * F.value.track.width
|
|
412
412
|
};
|
|
413
|
-
}), X =
|
|
413
|
+
}), X = c(() => mn.value.filter((e) => !D.value.includes(e.id)).map((e, t) => {
|
|
414
414
|
let n = (q.value.maxRadius - Y.value.track) / xn.value / 2 * (1 + t), r = q.value.centerY - n;
|
|
415
415
|
return {
|
|
416
416
|
percentage: e.percentage || 0,
|
|
@@ -437,15 +437,15 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
437
437
|
}
|
|
438
438
|
let Cn = Ge;
|
|
439
439
|
function wn() {
|
|
440
|
-
|
|
441
|
-
|
|
440
|
+
D.value.length ? D.value = [] : pn.value.forEach((e) => {
|
|
441
|
+
D.value.push(e.id);
|
|
442
442
|
}), ln(), Cn("selectLegend", X.value);
|
|
443
443
|
}
|
|
444
444
|
function Tn(e) {
|
|
445
|
-
if (
|
|
445
|
+
if (D.value.includes(e)) D.value = D.value.filter((t) => t !== e);
|
|
446
446
|
else {
|
|
447
|
-
if (
|
|
448
|
-
|
|
447
|
+
if (D.value.length === J.value.length - 1) return;
|
|
448
|
+
D.value.push(e);
|
|
449
449
|
}
|
|
450
450
|
ln(), Cn("selectLegend", X.value);
|
|
451
451
|
}
|
|
@@ -454,16 +454,16 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
454
454
|
}
|
|
455
455
|
function Dn(e) {
|
|
456
456
|
let t = En(e);
|
|
457
|
-
t !== null &&
|
|
457
|
+
t !== null && D.value.includes(t.id) && Tn(t.id);
|
|
458
458
|
}
|
|
459
459
|
function On(e) {
|
|
460
460
|
let t = En(e);
|
|
461
|
-
t !== null && (
|
|
461
|
+
t !== null && (D.value.includes(t.id) || Tn(t.id));
|
|
462
462
|
}
|
|
463
463
|
function kn() {
|
|
464
464
|
return X.value;
|
|
465
465
|
}
|
|
466
|
-
let An =
|
|
466
|
+
let An = c(() => ({
|
|
467
467
|
head: [
|
|
468
468
|
M.value.table.translations.serie,
|
|
469
469
|
M.value.table.translations.percentage,
|
|
@@ -474,7 +474,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
474
474
|
e.percentage,
|
|
475
475
|
e.value
|
|
476
476
|
])
|
|
477
|
-
})), Z =
|
|
477
|
+
})), Z = c(() => {
|
|
478
478
|
let e = An.value.head;
|
|
479
479
|
return {
|
|
480
480
|
head: e,
|
|
@@ -505,19 +505,19 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
505
505
|
};
|
|
506
506
|
});
|
|
507
507
|
function jn(e = null) {
|
|
508
|
-
|
|
508
|
+
Re(() => {
|
|
509
509
|
let t = [
|
|
510
510
|
[L.value.title.text],
|
|
511
511
|
[L.value.title.subtitle.text],
|
|
512
512
|
[""]
|
|
513
|
-
],
|
|
514
|
-
e ? e(o) :
|
|
513
|
+
], r = An.value.head, i = An.value.body, a = t.concat([r]).concat(i), o = n(a);
|
|
514
|
+
e ? e(o) : ie({
|
|
515
515
|
csvContent: o,
|
|
516
516
|
title: L.value.title.text || "vue-ui-onion"
|
|
517
517
|
});
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
let Q =
|
|
520
|
+
let Q = y(void 0), $ = y(!1);
|
|
521
521
|
function Mn(e) {
|
|
522
522
|
$.value = e, Et.value += 1;
|
|
523
523
|
}
|
|
@@ -528,7 +528,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
530
|
function Pn({ datapoint: e }) {
|
|
531
|
-
Q.value = void 0,
|
|
531
|
+
Q.value = void 0, Dt.value = !1, j.value = null, Rt.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
532
532
|
datapoint: e,
|
|
533
533
|
seriesIndex: e.absoluteIndex
|
|
534
534
|
});
|
|
@@ -547,7 +547,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
547
547
|
config: P.value,
|
|
548
548
|
showVal: r,
|
|
549
549
|
showPercentage: i,
|
|
550
|
-
val:
|
|
550
|
+
val: ne(P.value.value.formatter, e.value, t({
|
|
551
551
|
p: e.prefix || "",
|
|
552
552
|
v: e.value || 0,
|
|
553
553
|
s: e.suffix || "",
|
|
@@ -564,26 +564,26 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
564
564
|
});
|
|
565
565
|
return `${e.name}${r || i ? ": " : ""}${a}`;
|
|
566
566
|
}
|
|
567
|
-
let Ln =
|
|
568
|
-
function Rn({ datapoint: e, seriesIndex: n, show:
|
|
567
|
+
let Ln = y(null);
|
|
568
|
+
function Rn({ datapoint: e, seriesIndex: n, show: i = !0, triggerMode: a = "pointer" }) {
|
|
569
569
|
M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
570
570
|
datapoint: e,
|
|
571
571
|
seriesIndex: e.absoluteIndex
|
|
572
|
-
}),
|
|
572
|
+
}), Rt.value = a, j.value = n;
|
|
573
573
|
let o = e.absoluteIndex;
|
|
574
574
|
Q.value = n, Ln.value = {
|
|
575
575
|
datapoint: e,
|
|
576
576
|
seriesIndex: o,
|
|
577
577
|
series: J.value,
|
|
578
578
|
config: M.value
|
|
579
|
-
},
|
|
579
|
+
}, Dt.value = i;
|
|
580
580
|
let s = "", ee = I.value.customFormat;
|
|
581
|
-
if (
|
|
581
|
+
if (r(ee) && ae(() => ee({
|
|
582
582
|
seriesIndex: o,
|
|
583
583
|
datapoint: e,
|
|
584
584
|
series: J.value,
|
|
585
585
|
config: M.value
|
|
586
|
-
})))
|
|
586
|
+
}))) Ot.value = ee({
|
|
587
587
|
seriesIndex: o,
|
|
588
588
|
datapoint: e,
|
|
589
589
|
series: J.value,
|
|
@@ -595,7 +595,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
595
595
|
config: I.value,
|
|
596
596
|
showVal: i,
|
|
597
597
|
showPercentage: r,
|
|
598
|
-
val: `<span>${
|
|
598
|
+
val: `<span>${ne(P.value.value.formatter, e.value, t({
|
|
599
599
|
p: e.prefix || "",
|
|
600
600
|
v: e.value,
|
|
601
601
|
s: e.suffix || "",
|
|
@@ -609,7 +609,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
609
609
|
s: "%",
|
|
610
610
|
r: I.value.roundingPercentage
|
|
611
611
|
})
|
|
612
|
-
})}</b></div>`,
|
|
612
|
+
})}</b></div>`, Ot.value = `<div>${s}</div>`;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
function zn() {
|
|
@@ -618,14 +618,14 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
618
618
|
function Bn() {
|
|
619
619
|
H.value.showTooltip = !H.value.showTooltip;
|
|
620
620
|
}
|
|
621
|
-
let Vn =
|
|
621
|
+
let Vn = y(!1);
|
|
622
622
|
function Hn() {
|
|
623
623
|
Vn.value = !Vn.value;
|
|
624
624
|
}
|
|
625
625
|
async function Un({ scale: e = 2 } = {}) {
|
|
626
|
-
if (!
|
|
627
|
-
let { width: t, height: n } =
|
|
628
|
-
domElement:
|
|
626
|
+
if (!O.value) return;
|
|
627
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
628
|
+
domElement: O.value,
|
|
629
629
|
base64: !0,
|
|
630
630
|
img: !0,
|
|
631
631
|
scale: e
|
|
@@ -639,7 +639,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
639
639
|
aspectRatio: r
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
let Wn =
|
|
642
|
+
let Wn = c(() => {
|
|
643
643
|
let e = M.value.table.useDialog && !M.value.table.show, t = H.value.showTable;
|
|
644
644
|
return {
|
|
645
645
|
component: e ? bt : ht,
|
|
@@ -650,7 +650,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
650
650
|
headerColor: M.value.table.th.color,
|
|
651
651
|
headerBg: M.value.table.th.backgroundColor,
|
|
652
652
|
isFullscreen: $.value,
|
|
653
|
-
fullscreenParent:
|
|
653
|
+
fullscreenParent: O.value,
|
|
654
654
|
forcedWidth: Math.min(600, window.innerWidth * .8),
|
|
655
655
|
isCursorPointer: z.value
|
|
656
656
|
} : {
|
|
@@ -670,13 +670,13 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
});
|
|
673
|
-
|
|
674
|
-
M.value.table.show || (e && M.value.table.useDialog &&
|
|
673
|
+
We(() => H.value.showTable, (e) => {
|
|
674
|
+
M.value.table.show || (e && M.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
|
|
675
675
|
});
|
|
676
|
-
let Gn =
|
|
676
|
+
let Gn = c(() => pn.value.map((e) => ({
|
|
677
677
|
...e,
|
|
678
678
|
name: e.display
|
|
679
|
-
}))), Kn =
|
|
679
|
+
}))), Kn = c(() => L.value.backgroundColor), qn = c(() => L.value.legend), Jn = c(() => L.value.title), { isCallbackImaging: Yn, isCallbackSvg: Xn, generateSvg: Zn, onGenerateImage: Qn } = _e({
|
|
680
680
|
svg: V,
|
|
681
681
|
title: Jn,
|
|
682
682
|
legend: qn,
|
|
@@ -699,27 +699,27 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
699
699
|
}));
|
|
700
700
|
}
|
|
701
701
|
function er() {
|
|
702
|
-
|
|
702
|
+
j.value = null, zt.value = !0;
|
|
703
703
|
}
|
|
704
704
|
function tr() {
|
|
705
|
-
|
|
705
|
+
j.value = null, Rt.value = "pointer", Dt.value = !1, Q.value = void 0, zt.value = !1;
|
|
706
706
|
}
|
|
707
707
|
function nr(e) {
|
|
708
708
|
if (!V.value || Vn.value || document.activeElement !== V.value || !X.value.length) return;
|
|
709
709
|
let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
710
710
|
if (!t && !n && !r && !i) return;
|
|
711
711
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
712
|
-
|
|
712
|
+
j.value = null, Rt.value = "pointer", Dt.value = !1, Q.value = void 0;
|
|
713
713
|
return;
|
|
714
714
|
}
|
|
715
715
|
if (r) {
|
|
716
|
-
if (
|
|
717
|
-
let e = X.value[
|
|
716
|
+
if (j.value === null) return;
|
|
717
|
+
let e = X.value[j.value];
|
|
718
718
|
if (!e) return;
|
|
719
719
|
Nn({ datapoint: e });
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
let a =
|
|
722
|
+
let a = j.value;
|
|
723
723
|
a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1));
|
|
724
724
|
let o = X.value[a];
|
|
725
725
|
o && (rr(a), Rn({
|
|
@@ -734,12 +734,12 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
734
734
|
let t = X.value[e];
|
|
735
735
|
if (!t) return;
|
|
736
736
|
let n = t.radius, r = Math.PI * 7 / 4, i = q.value.centerX + n * Math.cos(r), a = q.value.centerY + n * Math.sin(r), o = V.value.getBoundingClientRect();
|
|
737
|
-
|
|
737
|
+
Lt.value = {
|
|
738
738
|
x: o.left + i / U.value.width * o.width,
|
|
739
739
|
y: o.top + a / U.value.height * o.height
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
let ir =
|
|
742
|
+
let ir = c(() => ({
|
|
743
743
|
headers: Z.value?.colNames ?? [],
|
|
744
744
|
rows: Z.value?.body ?? []
|
|
745
745
|
}));
|
|
@@ -757,20 +757,20 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
757
757
|
toggleAnnotator: Hn,
|
|
758
758
|
toggleFullscreen: Mn,
|
|
759
759
|
copyAlt: $n
|
|
760
|
-
}), (e, t) => (
|
|
761
|
-
class:
|
|
760
|
+
}), (e, t) => (v(), d("div", {
|
|
761
|
+
class: h(`vue-data-ui-component vue-ui-onion ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
762
762
|
ref_key: "onionChart",
|
|
763
|
-
ref:
|
|
763
|
+
ref: O,
|
|
764
764
|
id: `vue-ui-onion_${E.value}`,
|
|
765
|
-
style:
|
|
766
|
-
onMouseenter: t[4] ||= () =>
|
|
767
|
-
onMouseleave: t[5] ||= () =>
|
|
765
|
+
style: _(`font-family:${M.value.style.fontFamily};width:100%; ${M.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.backgroundColor}`),
|
|
766
|
+
onMouseenter: t[4] ||= () => C(Wt)(!0),
|
|
767
|
+
onMouseleave: t[5] ||= () => C(Wt)(!1)
|
|
768
768
|
}, [
|
|
769
|
-
|
|
769
|
+
f("div", {
|
|
770
770
|
id: `chart-instructions-${E.value}`,
|
|
771
771
|
class: "sr-only"
|
|
772
|
-
}, [
|
|
773
|
-
ir.value?.rows?.length ? (
|
|
772
|
+
}, [f("p", null, S(M.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
773
|
+
ir.value?.rows?.length ? (v(), l(Te, {
|
|
774
774
|
key: 0,
|
|
775
775
|
uid: E.value,
|
|
776
776
|
head: ir.value.headers,
|
|
@@ -783,10 +783,10 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
783
783
|
"body",
|
|
784
784
|
"notice",
|
|
785
785
|
"caption"
|
|
786
|
-
])) :
|
|
787
|
-
N.value.buttons.annotator ? (
|
|
786
|
+
])) : u("", !0),
|
|
787
|
+
N.value.buttons.annotator ? (v(), l(C(vt), {
|
|
788
788
|
key: 1,
|
|
789
|
-
svgRef:
|
|
789
|
+
svgRef: C(V),
|
|
790
790
|
backgroundColor: L.value.backgroundColor,
|
|
791
791
|
color: L.value.color,
|
|
792
792
|
active: Vn.value,
|
|
@@ -795,11 +795,11 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
795
795
|
onClose: Hn
|
|
796
796
|
}, {
|
|
797
797
|
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
798
|
-
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color",
|
|
799
|
-
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw",
|
|
800
|
-
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo",
|
|
801
|
-
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo",
|
|
802
|
-
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete",
|
|
798
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
|
|
799
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
|
|
800
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
|
|
801
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
|
|
802
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
|
|
803
803
|
_: 3
|
|
804
804
|
}, 8, [
|
|
805
805
|
"svgRef",
|
|
@@ -808,21 +808,21 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
808
808
|
"active",
|
|
809
809
|
"isCursorPointer",
|
|
810
810
|
"palette"
|
|
811
|
-
])) :
|
|
812
|
-
$t.value ? (
|
|
811
|
+
])) : u("", !0),
|
|
812
|
+
$t.value ? (v(), d("div", {
|
|
813
813
|
key: 2,
|
|
814
814
|
ref_key: "noTitle",
|
|
815
|
-
ref:
|
|
815
|
+
ref: Mt,
|
|
816
816
|
class: "vue-data-ui-no-title-space",
|
|
817
817
|
style: "height:36px; width: 100%;background:transparent"
|
|
818
|
-
}, null, 512)) :
|
|
819
|
-
L.value.title.text ? (
|
|
818
|
+
}, null, 512)) : u("", !0),
|
|
819
|
+
L.value.title.text ? (v(), d("div", {
|
|
820
820
|
key: 3,
|
|
821
821
|
ref_key: "chartTitle",
|
|
822
|
-
ref:
|
|
822
|
+
ref: kt,
|
|
823
823
|
style: "width:100%;background:transparent"
|
|
824
|
-
}, [(
|
|
825
|
-
key: `title_${
|
|
824
|
+
}, [(v(), l(be, {
|
|
825
|
+
key: `title_${Nt.value}`,
|
|
826
826
|
config: {
|
|
827
827
|
title: {
|
|
828
828
|
cy: "onion-div-title",
|
|
@@ -833,16 +833,16 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
833
833
|
...L.value.title.subtitle
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
}, null, 8, ["config"]))], 512)) :
|
|
837
|
-
|
|
838
|
-
N.value.show && wt.value && (
|
|
836
|
+
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
837
|
+
f("div", { id: `legend-top-${E.value}` }, null, 8, Je),
|
|
838
|
+
N.value.show && wt.value && (C(Gt) || C(Ut)) ? (v(), l(C(_t), {
|
|
839
839
|
ref_key: "details",
|
|
840
840
|
ref: Tt,
|
|
841
841
|
key: `user_options${Et.value}`,
|
|
842
842
|
backgroundColor: L.value.backgroundColor,
|
|
843
843
|
color: L.value.color,
|
|
844
|
-
isImaging:
|
|
845
|
-
isPrinting:
|
|
844
|
+
isImaging: C(Xt),
|
|
845
|
+
isPrinting: C(Yt),
|
|
846
846
|
uid: E.value,
|
|
847
847
|
hasTooltip: N.value.buttons.tooltip && I.value.show,
|
|
848
848
|
hasPdf: N.value.buttons.pdf,
|
|
@@ -855,7 +855,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
855
855
|
isFullscreen: $.value,
|
|
856
856
|
isTooltip: H.value.showTooltip,
|
|
857
857
|
titles: { ...N.value.buttonTitles },
|
|
858
|
-
chartElement:
|
|
858
|
+
chartElement: O.value,
|
|
859
859
|
position: N.value.position,
|
|
860
860
|
hasAnnotator: N.value.buttons.annotator,
|
|
861
861
|
isAnnotation: Vn.value,
|
|
@@ -864,19 +864,19 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
864
864
|
tableDialog: M.value.table.useDialog,
|
|
865
865
|
isCursorPointer: z.value,
|
|
866
866
|
onToggleFullscreen: Mn,
|
|
867
|
-
onGeneratePdf:
|
|
867
|
+
onGeneratePdf: C(Zt),
|
|
868
868
|
onGenerateCsv: jn,
|
|
869
|
-
onGenerateImage:
|
|
870
|
-
onGenerateSvg:
|
|
869
|
+
onGenerateImage: C(Qn),
|
|
870
|
+
onGenerateSvg: C(Zn),
|
|
871
871
|
onToggleTable: zn,
|
|
872
872
|
onToggleTooltip: Bn,
|
|
873
873
|
onToggleAnnotator: Hn,
|
|
874
874
|
onCopyAlt: $n,
|
|
875
|
-
style:
|
|
876
|
-
},
|
|
875
|
+
style: _({ visibility: C(Gt) ? C(Ut) ? "visible" : "hidden" : "visible" })
|
|
876
|
+
}, Pe({ _: 2 }, [
|
|
877
877
|
e.$slots.menuIcon ? {
|
|
878
878
|
name: "menuIcon",
|
|
879
|
-
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon",
|
|
879
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(m({
|
|
880
880
|
isOpen: t,
|
|
881
881
|
color: n
|
|
882
882
|
})), void 0, !0)]),
|
|
@@ -914,7 +914,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
914
914
|
} : void 0,
|
|
915
915
|
e.$slots.optionFullscreen ? {
|
|
916
916
|
name: "optionFullscreen",
|
|
917
|
-
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen",
|
|
917
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(m({
|
|
918
918
|
toggleFullscreen: t,
|
|
919
919
|
isFullscreen: n
|
|
920
920
|
})), void 0, !0)]),
|
|
@@ -922,7 +922,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
922
922
|
} : void 0,
|
|
923
923
|
e.$slots.optionAnnotator ? {
|
|
924
924
|
name: "optionAnnotator",
|
|
925
|
-
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator",
|
|
925
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(m({
|
|
926
926
|
toggleAnnotator: t,
|
|
927
927
|
isAnnotator: n
|
|
928
928
|
})), void 0, !0)]),
|
|
@@ -930,7 +930,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
930
930
|
} : void 0,
|
|
931
931
|
e.$slots.optionAltCopy ? {
|
|
932
932
|
name: "optionAltCopy",
|
|
933
|
-
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy",
|
|
933
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
|
|
934
934
|
key: "9"
|
|
935
935
|
} : void 0,
|
|
936
936
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -943,35 +943,35 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
943
943
|
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
944
944
|
key: "11"
|
|
945
945
|
} : void 0
|
|
946
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) :
|
|
947
|
-
|
|
946
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
947
|
+
f("div", Ye, [(v(), d("svg", {
|
|
948
948
|
ref_key: "svgRef",
|
|
949
949
|
ref: V,
|
|
950
|
-
xmlns:
|
|
950
|
+
xmlns: C(oe),
|
|
951
951
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
952
|
-
class:
|
|
952
|
+
class: h({
|
|
953
953
|
"vue-data-ui-fullscreen--on": $.value,
|
|
954
954
|
"vue-data-ui-fulscreen--off": !$.value,
|
|
955
|
-
resizing:
|
|
956
|
-
"vue-data-ui-no-transition": !
|
|
955
|
+
resizing: k.value,
|
|
956
|
+
"vue-data-ui-no-transition": !C(R) || k.value || C(B)
|
|
957
957
|
}),
|
|
958
958
|
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
959
|
-
style:
|
|
959
|
+
style: _(`max-width:100%;overflow:visible;background:transparent;color:${L.value.color}`),
|
|
960
960
|
tabindex: "0",
|
|
961
961
|
onFocus: er,
|
|
962
962
|
onBlur: tr,
|
|
963
963
|
onKeydown: nr
|
|
964
964
|
}, [
|
|
965
|
-
|
|
966
|
-
e.$slots["chart-background"] ? (
|
|
965
|
+
Ie(C(yt)),
|
|
966
|
+
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
967
967
|
key: 0,
|
|
968
968
|
x: 0,
|
|
969
969
|
y: 0,
|
|
970
970
|
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
971
971
|
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
972
972
|
style: { pointerEvents: "none" }
|
|
973
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) :
|
|
974
|
-
(
|
|
973
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : u("", !0),
|
|
974
|
+
(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
|
|
975
975
|
cx: q.value.centerX,
|
|
976
976
|
cy: q.value.centerY,
|
|
977
977
|
r: e.radius <= 0 ? 1e-4 : e.radius,
|
|
@@ -981,17 +981,17 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
981
981
|
"stroke-dasharray": e.path.bgDashArray,
|
|
982
982
|
"stroke-dashoffset": e.path.fullOffset,
|
|
983
983
|
"stroke-linecap": "round",
|
|
984
|
-
class:
|
|
984
|
+
class: h({
|
|
985
985
|
"vue-ui-onion-path": !0,
|
|
986
986
|
"vue-ui-onion-blur": M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
|
|
987
|
-
"vue-data-ui-transition":
|
|
987
|
+
"vue-data-ui-transition": C(R)
|
|
988
988
|
}),
|
|
989
989
|
style: {
|
|
990
990
|
transform: "rotate(-90deg)",
|
|
991
991
|
transformOrigin: "50% 50%"
|
|
992
992
|
}
|
|
993
993
|
}, null, 10, Qe))), 256)),
|
|
994
|
-
(
|
|
994
|
+
(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
|
|
995
995
|
cx: q.value.centerX,
|
|
996
996
|
cy: q.value.centerY,
|
|
997
997
|
r: e.radius < 0 ? 1e-4 : e.radius,
|
|
@@ -1000,10 +1000,10 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1000
1000
|
fill: "none",
|
|
1001
1001
|
"stroke-dasharray": e.path.dashArray,
|
|
1002
1002
|
"stroke-dashoffset": e.path.dashOffset,
|
|
1003
|
-
class:
|
|
1003
|
+
class: h({
|
|
1004
1004
|
"vue-ui-onion-path": !0,
|
|
1005
1005
|
"vue-ui-onion-blur": M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
|
|
1006
|
-
"vue-data-ui-transition":
|
|
1006
|
+
"vue-data-ui-transition": C(R)
|
|
1007
1007
|
}),
|
|
1008
1008
|
"stroke-linecap": "round",
|
|
1009
1009
|
style: {
|
|
@@ -1011,20 +1011,20 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1011
1011
|
transformOrigin: "50% 50%"
|
|
1012
1012
|
}
|
|
1013
1013
|
}, null, 10, $e))), 256)),
|
|
1014
|
-
|
|
1014
|
+
f("defs", null, [f("filter", {
|
|
1015
1015
|
id: `blur_${E.value}`,
|
|
1016
1016
|
x: "-50%",
|
|
1017
1017
|
y: "-50%",
|
|
1018
1018
|
width: "200%",
|
|
1019
1019
|
height: "200%"
|
|
1020
|
-
}, [
|
|
1020
|
+
}, [f("feGaussianBlur", {
|
|
1021
1021
|
in: "SourceGraphic",
|
|
1022
1022
|
stdDeviation: 100 / L.value.gradientIntensity
|
|
1023
1023
|
}, null, 8, tt)], 8, et)]),
|
|
1024
|
-
L.value.useGradient ? (
|
|
1024
|
+
L.value.useGradient ? (v(), d("g", {
|
|
1025
1025
|
key: 1,
|
|
1026
1026
|
filter: `url(#blur_${E.value})`
|
|
1027
|
-
}, [(
|
|
1027
|
+
}, [(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
|
|
1028
1028
|
cx: q.value.centerX,
|
|
1029
1029
|
cy: q.value.centerY,
|
|
1030
1030
|
r: e.radius <= 0 ? 1e-4 : e.radius,
|
|
@@ -1038,9 +1038,9 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1038
1038
|
transform: "rotate(-90deg)",
|
|
1039
1039
|
transformOrigin: "50% 50%"
|
|
1040
1040
|
},
|
|
1041
|
-
class:
|
|
1042
|
-
}, null, 10, rt))), 256))], 8, nt)) :
|
|
1043
|
-
(
|
|
1041
|
+
class: h({ "vue-data-ui-transition": C(R) })
|
|
1042
|
+
}, null, 10, rt))), 256))], 8, nt)) : u("", !0),
|
|
1043
|
+
(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
|
|
1044
1044
|
cx: q.value.centerX,
|
|
1045
1045
|
cy: q.value.centerY,
|
|
1046
1046
|
r: e.radius <= 0 ? 1e-4 : e.radius,
|
|
@@ -1064,7 +1064,7 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1064
1064
|
onMouseleave: (t) => Pn({ datapoint: e }),
|
|
1065
1065
|
onClick: (t) => Nn({ datapoint: e })
|
|
1066
1066
|
}, null, 40, it))), 256)),
|
|
1067
|
-
P.value.show ? (
|
|
1067
|
+
P.value.show ? (v(), d("g", at, [(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("g", {
|
|
1068
1068
|
key: `dl_${e.id}`,
|
|
1069
1069
|
onMouseenter: (n) => Rn({
|
|
1070
1070
|
datapoint: e,
|
|
@@ -1074,52 +1074,52 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1074
1074
|
}),
|
|
1075
1075
|
onMouseleave: (t) => Pn({ datapoint: e }),
|
|
1076
1076
|
onClick: (t) => Nn({ datapoint: e })
|
|
1077
|
-
}, [
|
|
1077
|
+
}, [D.value.includes(e.id) ? u("", !0) : (v(), d("text", {
|
|
1078
1078
|
key: 0,
|
|
1079
|
-
class:
|
|
1079
|
+
class: h(["vue-ui-onion-label", { "vue-data-ui-transition": C(R) }]),
|
|
1080
1080
|
transform: `translate(${U.value.width / 2 - Y.value.gutter * .8 + P.value.offsetX},${e.labelY + P.value.offsetY})`,
|
|
1081
1081
|
"text-anchor": "end",
|
|
1082
1082
|
"font-size": P.value.fontSize,
|
|
1083
1083
|
fill: M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value === t ? e.color : P.value.color,
|
|
1084
1084
|
"font-weight": P.value.bold ? "bold" : "normal"
|
|
1085
|
-
},
|
|
1085
|
+
}, S(In(e, t)), 11, st))], 40, ot))), 128))])) : u("", !0),
|
|
1086
1086
|
x(e.$slots, "svg", { svg: {
|
|
1087
1087
|
...U.value,
|
|
1088
1088
|
drawingArea: q.value,
|
|
1089
|
-
isPrintingImg:
|
|
1090
|
-
isPrintingSvg:
|
|
1089
|
+
isPrintingImg: C(Yt) || C(Xt) || C(Yn),
|
|
1090
|
+
isPrintingSvg: C(Xn)
|
|
1091
1091
|
} }, void 0, !0)
|
|
1092
|
-
], 46, Xe)), e.$slots.hint ? (
|
|
1092
|
+
], 46, Xe)), e.$slots.hint ? (v(), d("div", ct, [x(e.$slots, "hint", g(m({
|
|
1093
1093
|
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1094
1094
|
isVisible: zt.value
|
|
1095
|
-
})), void 0, !0)])) :
|
|
1096
|
-
e.$slots.watermark ? (
|
|
1097
|
-
|
|
1098
|
-
It.value && (L.value.legend.show || e.$slots.legend) ? (
|
|
1095
|
+
})), void 0, !0)])) : u("", !0)]),
|
|
1096
|
+
e.$slots.watermark ? (v(), d("div", lt, [x(e.$slots, "watermark", g(m({ isPrinting: C(Yt) || C(Xt) || C(Yn) || C(Xn) })), void 0, !0)])) : u("", !0),
|
|
1097
|
+
f("div", { id: `legend-bottom-${E.value}` }, null, 8, ut),
|
|
1098
|
+
It.value && (L.value.legend.show || e.$slots.legend) ? (v(), l(Ne, {
|
|
1099
1099
|
key: 6,
|
|
1100
1100
|
to: L.value.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
1101
|
-
}, [
|
|
1101
|
+
}, [f("div", {
|
|
1102
1102
|
ref_key: "chartLegend",
|
|
1103
|
-
ref:
|
|
1104
|
-
}, [x(e.$slots, "legend", { legend: pn.value }, () => [L.value.legend.show ? (
|
|
1105
|
-
key: `legend_${
|
|
1103
|
+
ref: At
|
|
1104
|
+
}, [x(e.$slots, "legend", { legend: pn.value }, () => [L.value.legend.show ? (v(), l(ke, {
|
|
1105
|
+
key: `legend_${Ft.value}`,
|
|
1106
1106
|
legendSet: pn.value,
|
|
1107
1107
|
config: bn.value,
|
|
1108
1108
|
isCursorPointer: z.value,
|
|
1109
1109
|
onClickMarker: t[0] ||= ({ legend: e }) => Tn(e.id)
|
|
1110
1110
|
}, {
|
|
1111
|
-
item: w(({ legend: e }) => [
|
|
1111
|
+
item: w(({ legend: e }) => [C(B) ? u("", !0) : (v(), d("div", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
"data-cy-legend-item": "",
|
|
1114
1114
|
onClick: (t) => e.segregate(),
|
|
1115
|
-
style:
|
|
1116
|
-
},
|
|
1117
|
-
legendToggle: w(() => [pn.value.length > 2 && L.value.legend.selectAllToggle.show && !
|
|
1115
|
+
style: _(`opacity:${D.value.includes(e.id) ? .5 : 1}`)
|
|
1116
|
+
}, S(e.display), 13, dt))]),
|
|
1117
|
+
legendToggle: w(() => [pn.value.length > 2 && L.value.legend.selectAllToggle.show && !C(B) ? (v(), l(we, {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
backgroundColor: L.value.legend.selectAllToggle.backgroundColor,
|
|
1120
1120
|
color: L.value.legend.selectAllToggle.color,
|
|
1121
1121
|
fontSize: L.value.legend.fontSize,
|
|
1122
|
-
checked:
|
|
1122
|
+
checked: D.value.length > 0,
|
|
1123
1123
|
isCursorPointer: z.value,
|
|
1124
1124
|
onToggle: wn
|
|
1125
1125
|
}, null, 8, [
|
|
@@ -1128,22 +1128,22 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1128
1128
|
"fontSize",
|
|
1129
1129
|
"checked",
|
|
1130
1130
|
"isCursorPointer"
|
|
1131
|
-
])) :
|
|
1131
|
+
])) : u("", !0)]),
|
|
1132
1132
|
_: 1
|
|
1133
1133
|
}, 8, [
|
|
1134
1134
|
"legendSet",
|
|
1135
1135
|
"config",
|
|
1136
1136
|
"isCursorPointer"
|
|
1137
|
-
])) :
|
|
1138
|
-
e.$slots.source ? (
|
|
1137
|
+
])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
|
|
1138
|
+
e.$slots.source ? (v(), d("div", {
|
|
1139
1139
|
key: 7,
|
|
1140
1140
|
ref_key: "source",
|
|
1141
|
-
ref:
|
|
1141
|
+
ref: jt,
|
|
1142
1142
|
dir: "auto"
|
|
1143
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1144
|
-
|
|
1143
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1144
|
+
Ie(C(pt), {
|
|
1145
1145
|
teleportTo: I.value.teleportTo,
|
|
1146
|
-
show: H.value.showTooltip &&
|
|
1146
|
+
show: H.value.showTooltip && Dt.value,
|
|
1147
1147
|
backgroundColor: I.value.backgroundColor,
|
|
1148
1148
|
color: I.value.color,
|
|
1149
1149
|
borderRadius: I.value.borderRadius,
|
|
@@ -1154,20 +1154,20 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1154
1154
|
position: I.value.position,
|
|
1155
1155
|
offsetX: I.value.offsetX,
|
|
1156
1156
|
offsetY: I.value.offsetY,
|
|
1157
|
-
parent:
|
|
1158
|
-
content:
|
|
1157
|
+
parent: O.value,
|
|
1158
|
+
content: Ot.value,
|
|
1159
1159
|
isFullscreen: $.value,
|
|
1160
|
-
isCustom:
|
|
1160
|
+
isCustom: C(r)(I.value.customFormat),
|
|
1161
1161
|
smooth: I.value.smooth,
|
|
1162
1162
|
backdropFilter: I.value.backdropFilter,
|
|
1163
1163
|
smoothForce: I.value.smoothForce,
|
|
1164
1164
|
smoothSnapThreshold: I.value.smoothSnapThreshold,
|
|
1165
|
-
isA11yMode:
|
|
1166
|
-
a11yPosition:
|
|
1165
|
+
isA11yMode: Rt.value === "keyboard",
|
|
1166
|
+
a11yPosition: Lt.value
|
|
1167
1167
|
}, {
|
|
1168
|
-
"tooltip-before": w(() => [x(e.$slots, "tooltip-before",
|
|
1169
|
-
tooltip: w(() => [x(e.$slots, "tooltip",
|
|
1170
|
-
"tooltip-after": w(() => [x(e.$slots, "tooltip-after",
|
|
1168
|
+
"tooltip-before": w(() => [x(e.$slots, "tooltip-before", g(m({ ...Ln.value })), void 0, !0)]),
|
|
1169
|
+
tooltip: w(() => [x(e.$slots, "tooltip", g(m({ ...Ln.value })), void 0, !0)]),
|
|
1170
|
+
"tooltip-after": w(() => [x(e.$slots, "tooltip-after", g(m({ ...Ln.value })), void 0, !0)]),
|
|
1171
1171
|
_: 3
|
|
1172
1172
|
}, 8, [
|
|
1173
1173
|
"teleportTo",
|
|
@@ -1193,13 +1193,13 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1193
1193
|
"isA11yMode",
|
|
1194
1194
|
"a11yPosition"
|
|
1195
1195
|
]),
|
|
1196
|
-
wt.value && N.value.buttons.table ? (
|
|
1196
|
+
wt.value && N.value.buttons.table ? (v(), l(Ve(Wn.value.component), Le({ key: 8 }, Wn.value.props, {
|
|
1197
1197
|
ref_key: "tableUnit",
|
|
1198
|
-
ref:
|
|
1198
|
+
ref: A,
|
|
1199
1199
|
onClose: t[3] ||= (e) => H.value.showTable = !1
|
|
1200
|
-
}),
|
|
1201
|
-
content: w(() => [(
|
|
1202
|
-
key: `table_${
|
|
1200
|
+
}), Pe({
|
|
1201
|
+
content: w(() => [(v(), l(C(gt), {
|
|
1202
|
+
key: `table_${Pt.value}`,
|
|
1203
1203
|
colNames: Z.value.colNames,
|
|
1204
1204
|
head: Z.value.head,
|
|
1205
1205
|
body: Z.value.body,
|
|
@@ -1209,8 +1209,8 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1209
1209
|
isCursorPointer: z.value,
|
|
1210
1210
|
onClose: t[2] ||= (e) => H.value.showTable = !1
|
|
1211
1211
|
}, {
|
|
1212
|
-
th: w(({ th: e }) => [
|
|
1213
|
-
td: w(({ td: e }) => [
|
|
1212
|
+
th: w(({ th: e }) => [Fe(S(e), 1)]),
|
|
1213
|
+
td: w(({ td: e }) => [f("div", { innerHTML: e }, null, 8, ft)]),
|
|
1214
1214
|
_: 1
|
|
1215
1215
|
}, 8, [
|
|
1216
1216
|
"colNames",
|
|
@@ -1224,22 +1224,22 @@ var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1224
1224
|
_: 2
|
|
1225
1225
|
}, [M.value.table.useDialog ? {
|
|
1226
1226
|
name: "title",
|
|
1227
|
-
fn: w(() => [
|
|
1227
|
+
fn: w(() => [Fe(S(Wn.value.title), 1)]),
|
|
1228
1228
|
key: "0"
|
|
1229
1229
|
} : void 0, M.value.table.useDialog ? {
|
|
1230
1230
|
name: "actions",
|
|
1231
|
-
fn: w(() => [
|
|
1231
|
+
fn: w(() => [f("button", {
|
|
1232
1232
|
tabindex: "0",
|
|
1233
1233
|
class: "vue-ui-user-options-button",
|
|
1234
1234
|
onClick: t[1] ||= (e) => jn(N.value.callbacks.csv),
|
|
1235
|
-
style:
|
|
1236
|
-
}, [
|
|
1235
|
+
style: _({ cursor: z.value ? "pointer" : "default" })
|
|
1236
|
+
}, [Ie(C(mt), {
|
|
1237
1237
|
name: "fileCsv",
|
|
1238
1238
|
stroke: Wn.value.props.color
|
|
1239
1239
|
}, null, 8, ["stroke"])], 4)]),
|
|
1240
1240
|
key: "1"
|
|
1241
|
-
} : void 0]), 1040)) :
|
|
1242
|
-
x(e.$slots, "skeleton", {}, () => [
|
|
1241
|
+
} : void 0]), 1040)) : u("", !0),
|
|
1242
|
+
x(e.$slots, "skeleton", {}, () => [C(B) ? (v(), l(me, { key: 0 })) : u("", !0)], !0)
|
|
1243
1243
|
], 46, Ke));
|
|
1244
1244
|
}
|
|
1245
1245
|
}, [["__scopeId", "data-v-bf80dd33"]]);
|