vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- 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 +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ue } from "./useConfig-
|
|
4
|
-
import { t as de } from "./usePrinter-
|
|
2
|
+
import { Et as t, G as n, H as r, J as i, N as a, Nt as o, S as s, Ut as c, Vt as ee, X as te, ct as ne, gt as re, i as ie, it as ae, kt as oe, t as se, x as ce, y as le } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ue } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as de } from "./usePrinter-Dng0UK-G.js";
|
|
5
5
|
import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as me } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as he } from "./useNestedProp-
|
|
7
|
+
import { t as he } from "./useNestedProp-APyFoLCQ.js";
|
|
8
8
|
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as _e } from "./img-
|
|
10
|
-
import { n as ve } from "./Title-
|
|
9
|
+
import { t as _e } from "./img-BCAOkqfM.js";
|
|
10
|
+
import { n as ve } from "./Title-CVYf1f8m.js";
|
|
11
11
|
import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as be } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as xe } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Se } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Se } from "./BaseLegendToggle-B-lM0iV1.js";
|
|
15
15
|
import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
|
|
16
16
|
import { t as we } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Ee } from "./labelUtils-
|
|
19
|
-
import { t as De } from "./Legend-
|
|
18
|
+
import { t as Ee } from "./labelUtils-C0D1tjig.js";
|
|
19
|
+
import { t as De } from "./Legend-BVDhEEsC.js";
|
|
20
20
|
import { t as Oe } from "./vue_ui_galaxy-Ig0cc1_h.js";
|
|
21
|
-
import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as
|
|
21
|
+
import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as Fe, normalizeClass as Ie, normalizeProps as g, normalizeStyle as _, onMounted as Le, openBlock as v, ref as y, renderList as Re, renderSlot as b, resolveDynamicComponent as ze, toDisplayString as x, toRefs as Be, unref as S, watch as Ve, withCtx as C } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-galaxy.vue
|
|
23
23
|
var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
24
24
|
"xmlns",
|
|
@@ -79,10 +79,10 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
79
79
|
"copyAlt"
|
|
80
80
|
],
|
|
81
81
|
setup(e, { expose: ye, emit: He }) {
|
|
82
|
-
let st = m(() => import("./Tooltip-
|
|
82
|
+
let st = m(() => import("./Tooltip-BmGCBJuU.js")), ct = m(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), lt = m(() => import("./vue-ui-accordion-Di_givzQ.js").then((e) => e.n)), ut = m(() => import("./DataTable-DJZgdnIn.js")), dt = m(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), ft = m(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), pt = m(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), mt = m(() => import("./BaseDraggableDialog-a9xCKjW-.js").then((e) => e.n)), { vue_ui_galaxy: ht } = ue(), { isThemeValid: gt, warnInvalidTheme: _t } = ge(), w = e, T = y(r()), E = y(null), D = y(!1), vt = y(""), O = y(null), yt = y(0), bt = y(0), xt = y(0), St = y(0), Ct = y(null), wt = y(null), Tt = y(null), Et = y(null), k = y(null), A = y(null), Dt = y(!1), j = y(null), Ot = y(null), kt = y(!1), At = y(!1), M = y(null), N = y(null), jt = y({
|
|
83
83
|
x: 0,
|
|
84
84
|
y: 0
|
|
85
|
-
}),
|
|
85
|
+
}), Mt = y("pointer"), Nt = y(!1), Pt = l(() => !!w.dataset && w.dataset.length), P = y(Ht()), F = l(() => P.value.userOptions.useCursorPointer), Ft = l(() => c({
|
|
86
86
|
defaultConfig: {
|
|
87
87
|
userOptions: { show: !1 },
|
|
88
88
|
table: { show: !1 },
|
|
@@ -92,14 +92,14 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
92
92
|
legend: { backgroundColor: "transparent" }
|
|
93
93
|
} }
|
|
94
94
|
},
|
|
95
|
-
userConfig:
|
|
96
|
-
})), { loading:
|
|
95
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
96
|
+
})), { loading: I, FINAL_DATASET: It } = fe({
|
|
97
97
|
...Be(w),
|
|
98
|
-
FINAL_CONFIG:
|
|
99
|
-
prepareConfig:
|
|
98
|
+
FINAL_CONFIG: P,
|
|
99
|
+
prepareConfig: Ht,
|
|
100
100
|
callback: () => {
|
|
101
101
|
Promise.resolve().then(async () => {
|
|
102
|
-
await
|
|
102
|
+
await Fe(), R.value.showTable = P.value.table.show;
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
105
|
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
@@ -119,85 +119,85 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
119
119
|
color: "#ADADAD"
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
|
-
skeletonConfig:
|
|
123
|
-
defaultConfig:
|
|
124
|
-
userConfig:
|
|
122
|
+
skeletonConfig: c({
|
|
123
|
+
defaultConfig: P.value,
|
|
124
|
+
userConfig: Ft.value
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
|
-
|
|
128
|
-
Dt.value = !0,
|
|
127
|
+
Le(() => {
|
|
128
|
+
Dt.value = !0, Rt();
|
|
129
129
|
});
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
130
|
+
let Lt = l(() => !!P.value.debug);
|
|
131
|
+
function Rt() {
|
|
132
|
+
if (t(w.dataset) ? te({
|
|
133
133
|
componentName: "VueUiGalaxy",
|
|
134
134
|
type: "dataset",
|
|
135
|
-
debug:
|
|
135
|
+
debug: Lt.value
|
|
136
136
|
}) : w.dataset.forEach((e, t) => {
|
|
137
|
-
|
|
137
|
+
ne({
|
|
138
138
|
datasetObject: e,
|
|
139
139
|
requiredAttributes: ["name", "values"]
|
|
140
140
|
}).forEach((e) => {
|
|
141
|
-
|
|
141
|
+
te({
|
|
142
142
|
componentName: "VueUiGalaxy",
|
|
143
143
|
type: "datasetSerieAttribute",
|
|
144
144
|
property: e,
|
|
145
145
|
index: t,
|
|
146
|
-
debug:
|
|
146
|
+
debug: Lt.value
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
}),
|
|
149
|
+
}), P.value.responsive) {
|
|
150
150
|
let e = be(() => {
|
|
151
151
|
let { width: e, height: t } = xe({
|
|
152
152
|
chart: E.value,
|
|
153
|
-
title:
|
|
154
|
-
legend:
|
|
153
|
+
title: P.value.style.chart.title.text ? Ct.value : null,
|
|
154
|
+
legend: P.value.style.chart.legend.show ? wt.value : null,
|
|
155
155
|
noTitle: Et.value,
|
|
156
156
|
source: Tt.value
|
|
157
157
|
});
|
|
158
158
|
requestAnimationFrame(() => {
|
|
159
|
-
|
|
159
|
+
z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
162
|
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = E.value.parentNode, k.value.observe(A.value);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
let { userOptionsVisible:
|
|
166
|
-
function
|
|
165
|
+
let { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = we({ config: P.value }), { svgRef: L } = Te({ config: P.value.style.chart.title });
|
|
166
|
+
function Ht() {
|
|
167
167
|
let e = he({
|
|
168
168
|
userConfig: w.config,
|
|
169
169
|
defaultConfig: ht
|
|
170
|
-
}),
|
|
171
|
-
if (!
|
|
170
|
+
}), t = e.theme;
|
|
171
|
+
if (!t) return e;
|
|
172
172
|
if (!gt.value(e)) return _t(e), e;
|
|
173
|
-
let
|
|
174
|
-
userConfig: Oe[
|
|
173
|
+
let n = he({
|
|
174
|
+
userConfig: Oe[t] || w.config,
|
|
175
175
|
defaultConfig: e
|
|
176
|
-
}),
|
|
176
|
+
}), r = he({
|
|
177
177
|
userConfig: w.config,
|
|
178
|
-
defaultConfig:
|
|
178
|
+
defaultConfig: n
|
|
179
179
|
});
|
|
180
180
|
return {
|
|
181
|
-
...
|
|
182
|
-
customPalette:
|
|
181
|
+
...r,
|
|
182
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || oe
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
Ve(() => w.config, (e) => {
|
|
186
|
-
|
|
186
|
+
P.value = Ht(), zt.value = !P.value.userOptions.showOnChartHover, Rt(), bt.value += 1, xt.value += 1, St.value += 1, R.value.dataLabels.show = P.value.style.chart.layout.labels.dataLabels.show, R.value.showTable = P.value.table.show, R.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
187
187
|
}, { deep: !0 });
|
|
188
|
-
let { isPrinting:
|
|
188
|
+
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = de({
|
|
189
189
|
elementId: `galaxy_${T.value}`,
|
|
190
|
-
fileName:
|
|
191
|
-
options:
|
|
192
|
-
}),
|
|
193
|
-
dataLabels: { show:
|
|
194
|
-
showTable:
|
|
195
|
-
showTooltip:
|
|
196
|
-
}),
|
|
197
|
-
width:
|
|
198
|
-
height:
|
|
199
|
-
viewBox: `${Yt.value} ${Xt.value} ${
|
|
200
|
-
})), Zt = He, H =
|
|
190
|
+
fileName: P.value.style.chart.title.text || "vue-ui-galaxy",
|
|
191
|
+
options: P.value.userOptions.print
|
|
192
|
+
}), qt = l(() => P.value.userOptions.show && !P.value.style.chart.title.text), Jt = l(() => ce(P.value.customPalette)), R = y({
|
|
193
|
+
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
194
|
+
showTable: P.value.table.show,
|
|
195
|
+
showTooltip: P.value.style.chart.tooltip.show
|
|
196
|
+
}), z = y(250), B = y(180), Yt = y(0), Xt = y(0), V = l(() => ({
|
|
197
|
+
width: z.value,
|
|
198
|
+
height: B.value,
|
|
199
|
+
viewBox: `${Yt.value} ${Xt.value} ${z.value} ${B.value}`
|
|
200
|
+
})), Zt = He, H = y([]);
|
|
201
201
|
function Qt() {
|
|
202
202
|
Zt("selectLegend", K.value.map((e) => ({
|
|
203
203
|
name: e.name,
|
|
@@ -214,7 +214,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
214
214
|
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), Qt();
|
|
215
215
|
}
|
|
216
216
|
function en(e) {
|
|
217
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (
|
|
217
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null);
|
|
218
218
|
}
|
|
219
219
|
function tn(e) {
|
|
220
220
|
let t = en(e);
|
|
@@ -224,9 +224,9 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
224
224
|
let t = en(e);
|
|
225
225
|
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
226
226
|
}
|
|
227
|
-
let W = l(() =>
|
|
227
|
+
let W = l(() => It.value.map((e, t) => ({
|
|
228
228
|
name: e.name,
|
|
229
|
-
color: le(e.color) ||
|
|
229
|
+
color: le(e.color) || Jt.value[t] || oe[t] || oe[t % oe.length],
|
|
230
230
|
value: e.values ? o(e.values).reduce((e, t) => e + t, 0) : 0,
|
|
231
231
|
absoluteValues: o(e.values),
|
|
232
232
|
id: r()
|
|
@@ -241,13 +241,13 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
241
241
|
value: e.value
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
244
|
-
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an =
|
|
244
|
+
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an = y(190), on = l(() => W.value.filter((e) => !H.value.includes(e.id))), sn = l(() => (P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth) / 2 + (P.value.style.chart.layout.padding ?? 12)), cn = l(() => a({
|
|
245
245
|
maxPoints: an.value,
|
|
246
|
-
a:
|
|
247
|
-
b:
|
|
248
|
-
angleStep:
|
|
249
|
-
startX: V.value.width / 2 +
|
|
250
|
-
startY: V.value.height / 2 +
|
|
246
|
+
a: P.value.style.chart.layout.arcs.a ?? 6,
|
|
247
|
+
b: P.value.style.chart.layout.arcs.b ?? 6,
|
|
248
|
+
angleStep: P.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
249
|
+
startX: V.value.width / 2 + P.value.style.chart.layout.arcs.offsetX,
|
|
250
|
+
startY: V.value.height / 2 + P.value.style.chart.layout.arcs.offsetY,
|
|
251
251
|
boxWidth: V.value.width,
|
|
252
252
|
boxHeight: V.value.height,
|
|
253
253
|
padding: sn.value
|
|
@@ -266,45 +266,45 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
266
266
|
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
267
267
|
});
|
|
268
268
|
function ln(e) {
|
|
269
|
-
let t = Math.min(
|
|
269
|
+
let t = Math.min(z.value, B.value), n = O.value === e.id && P.value.style.chart.layout.arcs.hoverEffect.show ? P.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, r = (P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth) * n, i = P.value.style.chart.layout.arcs.strokeWidth * n, a = P.value.style.chart.layout.arcs.strokeWidth / 2 * n;
|
|
270
270
|
return {
|
|
271
271
|
border: r / 180 * t,
|
|
272
272
|
path: i / 180 * t,
|
|
273
273
|
blur: a / 180 * t
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
let q =
|
|
276
|
+
let q = y(!1);
|
|
277
277
|
function un(e) {
|
|
278
278
|
q.value = e, yt.value += 1;
|
|
279
279
|
}
|
|
280
|
-
let dn =
|
|
280
|
+
let dn = y(null);
|
|
281
281
|
function fn() {
|
|
282
|
-
D.value = !1, O.value = null,
|
|
282
|
+
D.value = !1, O.value = null, M.value = null, N.value = null;
|
|
283
283
|
}
|
|
284
284
|
function pn(e) {
|
|
285
|
-
if (!
|
|
286
|
-
let t =
|
|
285
|
+
if (!L.value || !e) return;
|
|
286
|
+
let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
287
287
|
if (!t) return;
|
|
288
288
|
let n = t.getBoundingClientRect();
|
|
289
|
-
|
|
289
|
+
jt.value = {
|
|
290
290
|
x: n.left + n.width / 2,
|
|
291
291
|
y: n.top + n.height / 2
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
function mn(e) {
|
|
295
|
-
|
|
295
|
+
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
296
296
|
datapoint: e,
|
|
297
297
|
seriesIndex: e.absoluteIndex
|
|
298
|
-
}), !(
|
|
298
|
+
}), !(N.value === e.id && Mt.value === "keyboard") && (D.value = !1, O.value = null);
|
|
299
299
|
}
|
|
300
300
|
function hn(e) {
|
|
301
|
-
Zt("selectDatapoint", e),
|
|
301
|
+
Zt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
302
302
|
datapoint: e,
|
|
303
303
|
seriesIndex: e.absoluteIndex
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
function gn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
307
|
-
let i =
|
|
307
|
+
let i = P.value.style.chart.layout.labels.dataLabels;
|
|
308
308
|
return Ee({
|
|
309
309
|
config: i,
|
|
310
310
|
val: e,
|
|
@@ -314,35 +314,35 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
function _n({ datapoint: e, _relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer", flatIndex: o = null }) {
|
|
317
|
-
if (
|
|
317
|
+
if (P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
318
318
|
datapoint: e,
|
|
319
319
|
seriesIndex: e.absoluteIndex
|
|
320
|
-
}), !
|
|
321
|
-
|
|
320
|
+
}), !R.value.showTooltip) return;
|
|
321
|
+
Mt.value = a, M.value = o, N.value = e.id, dn.value = {
|
|
322
322
|
datapoint: e,
|
|
323
323
|
seriesIndex: r,
|
|
324
324
|
series: W.value,
|
|
325
|
-
config:
|
|
325
|
+
config: P.value
|
|
326
326
|
}, D.value = i, O.value = e.id;
|
|
327
|
-
let s = "", c =
|
|
328
|
-
|
|
327
|
+
let s = "", c = P.value.style.chart.tooltip.customFormat;
|
|
328
|
+
re(c) && ae(() => c({
|
|
329
329
|
seriesIndex: r,
|
|
330
330
|
datapoint: e,
|
|
331
331
|
series: W.value,
|
|
332
|
-
config:
|
|
332
|
+
config: P.value
|
|
333
333
|
})) ? vt.value = c({
|
|
334
334
|
seriesIndex: r,
|
|
335
335
|
datapoint: e,
|
|
336
336
|
series: W.value,
|
|
337
|
-
config:
|
|
338
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
339
|
-
showVal:
|
|
340
|
-
showPercentage:
|
|
341
|
-
val:
|
|
342
|
-
p:
|
|
337
|
+
config: P.value
|
|
338
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<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="${e.color}"/></svg>`, s += `<b>${gn({
|
|
339
|
+
showVal: P.value.style.chart.tooltip.showValue,
|
|
340
|
+
showPercentage: P.value.style.chart.tooltip.showPercentage,
|
|
341
|
+
val: ie(P.value.style.chart.layout.labels.dataLabels.formatter, e.value, n({
|
|
342
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
343
343
|
v: e.value,
|
|
344
|
-
s:
|
|
345
|
-
r:
|
|
344
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
345
|
+
r: P.value.style.chart.tooltip.roundingValue
|
|
346
346
|
}), {
|
|
347
347
|
datapoint: e,
|
|
348
348
|
seriesIndex: r
|
|
@@ -350,47 +350,47 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
350
350
|
percentage: n({
|
|
351
351
|
v: e.proportion * 100,
|
|
352
352
|
s: "%",
|
|
353
|
-
r:
|
|
353
|
+
r: P.value.style.chart.tooltip.roundingPercentage
|
|
354
354
|
})
|
|
355
|
-
})}</b></div>`, vt.value = `<div>${s}</div>`), a === "keyboard" &&
|
|
355
|
+
})}</b></div>`, vt.value = `<div>${s}</div>`), a === "keyboard" && Fe(() => {
|
|
356
356
|
pn(e.id);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
let J = l(() => W.value.map((e, t) => {
|
|
360
|
-
let r =
|
|
361
|
-
p:
|
|
360
|
+
let r = ie(P.value.style.chart.layout.labels.dataLabels.formatter, e.value, n({
|
|
361
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
362
362
|
v: e.value,
|
|
363
|
-
s:
|
|
364
|
-
r:
|
|
363
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
364
|
+
r: P.value.style.chart.legend.roundingValue
|
|
365
365
|
}), {
|
|
366
366
|
datapoint: e,
|
|
367
367
|
index: t
|
|
368
368
|
}), i = isNaN(e.value / G.value) || H.value.includes(e.id) ? "-" : n({
|
|
369
369
|
v: e.value / G.value * 100,
|
|
370
370
|
s: "%",
|
|
371
|
-
r:
|
|
371
|
+
r: P.value.style.chart.legend.roundingPercentage
|
|
372
372
|
}), a = gn({
|
|
373
|
-
showVal:
|
|
374
|
-
showPercentage:
|
|
373
|
+
showVal: P.value.style.chart.legend.showValue,
|
|
374
|
+
showPercentage: P.value.style.chart.legend.showPercentage,
|
|
375
375
|
val: r,
|
|
376
376
|
percentage: i
|
|
377
377
|
});
|
|
378
378
|
return {
|
|
379
379
|
...e,
|
|
380
|
-
proportion: (e.value || 0) /
|
|
380
|
+
proportion: (e.value || 0) / It.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
381
381
|
opacity: H.value.includes(e.id) ? .5 : 1,
|
|
382
382
|
shape: e.shape || "circle",
|
|
383
383
|
segregate: () => U(e),
|
|
384
384
|
isSegregated: H.value.includes(e.id),
|
|
385
|
-
display: `${e.name}${
|
|
385
|
+
display: `${e.name}${P.value.style.chart.legend.showPercentage || P.value.style.chart.legend.showValue ? ": " : ""}${a}`
|
|
386
386
|
};
|
|
387
387
|
})), vn = l(() => ({
|
|
388
388
|
cy: "galaxy-div-legend",
|
|
389
|
-
backgroundColor:
|
|
390
|
-
color:
|
|
391
|
-
fontSize:
|
|
389
|
+
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
390
|
+
color: P.value.style.chart.legend.color,
|
|
391
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
392
392
|
paddingBottom: 12,
|
|
393
|
-
fontWeight:
|
|
393
|
+
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
394
394
|
})), Y = l(() => ({
|
|
395
395
|
head: K.value.map((e) => ({
|
|
396
396
|
name: e.name,
|
|
@@ -399,23 +399,23 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
399
399
|
body: K.value.map((e) => e.value)
|
|
400
400
|
}));
|
|
401
401
|
function yn(e = null) {
|
|
402
|
-
|
|
402
|
+
Fe(() => {
|
|
403
403
|
let t = Y.value.head.map((e, t) => [
|
|
404
404
|
[e.name],
|
|
405
405
|
[Y.value.body[t]],
|
|
406
406
|
[isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
|
|
407
|
-
]), n =
|
|
408
|
-
[
|
|
409
|
-
[
|
|
407
|
+
]), n = s([
|
|
408
|
+
[P.value.style.chart.title.text],
|
|
409
|
+
[P.value.style.chart.title.subtitle.text],
|
|
410
410
|
[
|
|
411
411
|
[""],
|
|
412
412
|
["val"],
|
|
413
413
|
["%"]
|
|
414
414
|
]
|
|
415
415
|
].concat(t));
|
|
416
|
-
e ? e(n) :
|
|
416
|
+
e ? e(n) : i({
|
|
417
417
|
csvContent: n,
|
|
418
|
-
title:
|
|
418
|
+
title: P.value.style.chart.title.text || "vue-ui-galaxy"
|
|
419
419
|
});
|
|
420
420
|
});
|
|
421
421
|
}
|
|
@@ -423,18 +423,18 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
423
423
|
let e = [
|
|
424
424
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
425
425
|
n({
|
|
426
|
-
p:
|
|
426
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
427
427
|
v: G.value,
|
|
428
|
-
s:
|
|
429
|
-
r:
|
|
428
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
429
|
+
r: P.value.table.td.roundingValue
|
|
430
430
|
}),
|
|
431
431
|
"100%"
|
|
432
432
|
], t = Y.value.head.map((e, t) => {
|
|
433
433
|
let r = n({
|
|
434
|
-
p:
|
|
434
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
435
435
|
v: Y.value.body[t],
|
|
436
|
-
s:
|
|
437
|
-
r:
|
|
436
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
437
|
+
r: P.value.table.td.roundingValue
|
|
438
438
|
});
|
|
439
439
|
return [
|
|
440
440
|
{
|
|
@@ -445,27 +445,27 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
445
445
|
isNaN(Y.value.body[t] / G.value) ? "-" : n({
|
|
446
446
|
v: Y.value.body[t] / G.value * 100,
|
|
447
447
|
s: "%",
|
|
448
|
-
r:
|
|
448
|
+
r: P.value.table.td.roundingPercentage
|
|
449
449
|
})
|
|
450
450
|
];
|
|
451
451
|
}), r = {
|
|
452
452
|
th: {
|
|
453
|
-
backgroundColor:
|
|
454
|
-
color:
|
|
455
|
-
outline:
|
|
453
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
454
|
+
color: P.value.table.th.color,
|
|
455
|
+
outline: P.value.table.th.outline
|
|
456
456
|
},
|
|
457
457
|
td: {
|
|
458
|
-
backgroundColor:
|
|
459
|
-
color:
|
|
460
|
-
outline:
|
|
458
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
459
|
+
color: P.value.table.td.color,
|
|
460
|
+
outline: P.value.table.td.outline
|
|
461
461
|
},
|
|
462
|
-
breakpoint:
|
|
462
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
463
463
|
};
|
|
464
464
|
return {
|
|
465
465
|
colNames: [
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
P.value.table.columnNames.series,
|
|
467
|
+
P.value.table.columnNames.value,
|
|
468
|
+
P.value.table.columnNames.percentage
|
|
469
469
|
],
|
|
470
470
|
head: e,
|
|
471
471
|
body: t,
|
|
@@ -473,12 +473,12 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
473
473
|
};
|
|
474
474
|
});
|
|
475
475
|
function bn() {
|
|
476
|
-
|
|
476
|
+
R.value.showTable = !R.value.showTable;
|
|
477
477
|
}
|
|
478
478
|
function xn() {
|
|
479
|
-
|
|
479
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
480
480
|
}
|
|
481
|
-
let Z =
|
|
481
|
+
let Z = y(!1);
|
|
482
482
|
function Sn() {
|
|
483
483
|
Z.value = !Z.value;
|
|
484
484
|
}
|
|
@@ -493,65 +493,65 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
493
493
|
return {
|
|
494
494
|
imageUri: i,
|
|
495
495
|
base64: a,
|
|
496
|
-
title:
|
|
496
|
+
title: P.value.style.chart.title.text,
|
|
497
497
|
width: t,
|
|
498
498
|
height: n,
|
|
499
499
|
aspectRatio: r
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
let Q = l(() => {
|
|
503
|
-
let e =
|
|
503
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = R.value.showTable;
|
|
504
504
|
return {
|
|
505
505
|
component: e ? mt : lt,
|
|
506
|
-
title: `${
|
|
506
|
+
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
507
507
|
props: e ? {
|
|
508
|
-
backgroundColor:
|
|
509
|
-
color:
|
|
510
|
-
headerColor:
|
|
511
|
-
headerBg:
|
|
508
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
509
|
+
color: P.value.table.th.color,
|
|
510
|
+
headerColor: P.value.table.th.color,
|
|
511
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
512
512
|
isFullscreen: q.value,
|
|
513
513
|
fullscreenParent: E.value,
|
|
514
514
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
515
|
-
isCursorPointer:
|
|
515
|
+
isCursorPointer: F.value
|
|
516
516
|
} : {
|
|
517
517
|
hideDetails: !0,
|
|
518
518
|
config: {
|
|
519
519
|
open: t,
|
|
520
520
|
maxHeight: 1e4,
|
|
521
521
|
body: {
|
|
522
|
-
backgroundColor:
|
|
523
|
-
color:
|
|
522
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
523
|
+
color: P.value.style.chart.color
|
|
524
524
|
},
|
|
525
525
|
head: {
|
|
526
|
-
backgroundColor:
|
|
527
|
-
color:
|
|
526
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
527
|
+
color: P.value.style.chart.color
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
});
|
|
533
|
-
Ve(() =>
|
|
534
|
-
|
|
533
|
+
Ve(() => R.value.showTable, (e) => {
|
|
534
|
+
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
535
535
|
});
|
|
536
536
|
function wn() {
|
|
537
|
-
|
|
537
|
+
R.value.showTable = !1, Ot.value && Ot.value.setTableIconState(!1);
|
|
538
538
|
}
|
|
539
539
|
let Tn = l(() => J.value.map((e) => ({
|
|
540
540
|
...e,
|
|
541
541
|
name: e.display
|
|
542
|
-
}))), En = l(() =>
|
|
543
|
-
svg:
|
|
544
|
-
title: l(() =>
|
|
542
|
+
}))), En = l(() => P.value.style.chart.backgroundColor), Dn = l(() => P.value.style.chart.legend), { exportSvg: On, getSvg: kn } = me({
|
|
543
|
+
svg: L,
|
|
544
|
+
title: l(() => P.value.style.chart.title),
|
|
545
545
|
legend: Dn,
|
|
546
546
|
legendItems: Tn,
|
|
547
547
|
backgroundColor: En
|
|
548
548
|
});
|
|
549
549
|
async function An({ isCb: e }) {
|
|
550
|
-
|
|
550
|
+
At.value = !0, await Fe();
|
|
551
551
|
try {
|
|
552
552
|
if (e) {
|
|
553
553
|
let { blob: e, url: t, text: n, dataUrl: r } = await kn();
|
|
554
|
-
await Promise.resolve(
|
|
554
|
+
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
555
555
|
blob: e,
|
|
556
556
|
url: t,
|
|
557
557
|
text: n,
|
|
@@ -559,41 +559,41 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
559
559
|
}));
|
|
560
560
|
} else await Promise.resolve(On());
|
|
561
561
|
} finally {
|
|
562
|
-
|
|
562
|
+
At.value = !1;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function jn(e) {
|
|
566
566
|
if (e?.stage === "start") {
|
|
567
|
-
|
|
567
|
+
kt.value = !0;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
570
|
if (e?.stage === "end") {
|
|
571
|
-
|
|
571
|
+
kt.value = !1;
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
|
|
574
|
+
Kt();
|
|
575
575
|
}
|
|
576
576
|
async function Mn() {
|
|
577
577
|
if (Zt("copyAlt", {
|
|
578
|
-
config:
|
|
578
|
+
config: P.value,
|
|
579
579
|
dataset: W.value
|
|
580
|
-
}), !
|
|
580
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
581
581
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
|
-
await Promise.resolve(
|
|
585
|
-
config:
|
|
584
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
585
|
+
config: P.value,
|
|
586
586
|
dataset: W.value
|
|
587
587
|
}));
|
|
588
588
|
}
|
|
589
589
|
function Nn() {
|
|
590
|
-
|
|
590
|
+
M.value = null, N.value = null, Nt.value = !0;
|
|
591
591
|
}
|
|
592
592
|
function Pn() {
|
|
593
|
-
fn(),
|
|
593
|
+
fn(), Nt.value = !1;
|
|
594
594
|
}
|
|
595
595
|
function Fn(e) {
|
|
596
|
-
if (!
|
|
596
|
+
if (!L.value || Z.value || document.activeElement !== L.value || !$.value.length) return;
|
|
597
597
|
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
598
598
|
if (!t && !n && !r && !i) return;
|
|
599
599
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -601,13 +601,13 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
603
|
if (r) {
|
|
604
|
-
if (
|
|
605
|
-
let e = $.value[
|
|
604
|
+
if (M.value === null) return;
|
|
605
|
+
let e = $.value[M.value];
|
|
606
606
|
if (!e) return;
|
|
607
607
|
hn(e.datapoint);
|
|
608
608
|
return;
|
|
609
609
|
}
|
|
610
|
-
let a =
|
|
610
|
+
let a = M.value;
|
|
611
611
|
a === null || a < 0 || a >= $.value.length ? a = n ? 0 : $.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0));
|
|
612
612
|
let o = $.value[a];
|
|
613
613
|
o && _n({
|
|
@@ -628,9 +628,9 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
628
628
|
return ye({
|
|
629
629
|
getData: rn,
|
|
630
630
|
getImage: Cn,
|
|
631
|
-
generatePdf:
|
|
631
|
+
generatePdf: Gt,
|
|
632
632
|
generateCsv: yn,
|
|
633
|
-
generateImage:
|
|
633
|
+
generateImage: Kt,
|
|
634
634
|
generateSvg: An,
|
|
635
635
|
hideSeries: nn,
|
|
636
636
|
showSeries: tn,
|
|
@@ -639,28 +639,28 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
639
639
|
toggleAnnotator: Sn,
|
|
640
640
|
toggleFullscreen: un,
|
|
641
641
|
copyAlt: Mn
|
|
642
|
-
}), (e, t) => (
|
|
642
|
+
}), (e, t) => (v(), f("div", {
|
|
643
643
|
ref_key: "galaxyChart",
|
|
644
644
|
ref: E,
|
|
645
|
-
class:
|
|
646
|
-
style:
|
|
645
|
+
class: Ie(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${S(I) ? "loading" : ""}`),
|
|
646
|
+
style: _(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;${P.value.style.chart.title.text ? "" : "padding-top:36px"};background:${P.value.style.chart.backgroundColor}`),
|
|
647
647
|
id: `galaxy_${T.value}`,
|
|
648
|
-
onMouseenter: t[2] ||= () => S(
|
|
648
|
+
onMouseenter: t[2] ||= () => S(Bt)(!0),
|
|
649
649
|
onMouseleave: t[3] ||= () => {
|
|
650
|
-
S(
|
|
650
|
+
S(Bt)(!1), Nt.value || fn();
|
|
651
651
|
}
|
|
652
652
|
}, [
|
|
653
653
|
p("div", {
|
|
654
654
|
id: `chart-instructions-${T.value}`,
|
|
655
655
|
class: "sr-only"
|
|
656
|
-
}, [p("p", null,
|
|
657
|
-
In.value?.rows?.length ? (
|
|
656
|
+
}, [p("p", null, x(P.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
657
|
+
In.value?.rows?.length ? (v(), u(Ce, {
|
|
658
658
|
key: 0,
|
|
659
659
|
uid: T.value,
|
|
660
660
|
head: In.value.headers,
|
|
661
661
|
body: In.value.rows,
|
|
662
|
-
notice:
|
|
663
|
-
caption:
|
|
662
|
+
notice: P.value.a11y.translations.tableAvailable,
|
|
663
|
+
caption: P.value.a11y.translations.tableCaption
|
|
664
664
|
}, null, 8, [
|
|
665
665
|
"uid",
|
|
666
666
|
"head",
|
|
@@ -668,21 +668,21 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
668
668
|
"notice",
|
|
669
669
|
"caption"
|
|
670
670
|
])) : d("", !0),
|
|
671
|
-
|
|
671
|
+
P.value.userOptions.buttons.annotator ? (v(), u(S(dt), {
|
|
672
672
|
key: 1,
|
|
673
|
-
svgRef: S(
|
|
674
|
-
backgroundColor:
|
|
675
|
-
color:
|
|
673
|
+
svgRef: S(L),
|
|
674
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
675
|
+
color: P.value.style.chart.color,
|
|
676
676
|
active: Z.value,
|
|
677
|
-
isCursorPointer:
|
|
677
|
+
isCursorPointer: F.value,
|
|
678
678
|
onClose: Sn
|
|
679
679
|
}, {
|
|
680
|
-
"annotator-action-close": C(() => [
|
|
681
|
-
"annotator-action-color": C(({ color: t }) => [
|
|
682
|
-
"annotator-action-draw": C(({ mode: t }) => [
|
|
683
|
-
"annotator-action-undo": C(({ disabled: t }) => [
|
|
684
|
-
"annotator-action-redo": C(({ disabled: t }) => [
|
|
685
|
-
"annotator-action-delete": C(({ disabled: t }) => [
|
|
680
|
+
"annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
681
|
+
"annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
682
|
+
"annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
683
|
+
"annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
684
|
+
"annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
685
|
+
"annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
686
686
|
_: 3
|
|
687
687
|
}, 8, [
|
|
688
688
|
"svgRef",
|
|
@@ -691,62 +691,62 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
691
691
|
"active",
|
|
692
692
|
"isCursorPointer"
|
|
693
693
|
])) : d("", !0),
|
|
694
|
-
|
|
694
|
+
qt.value ? (v(), f("div", {
|
|
695
695
|
key: 2,
|
|
696
696
|
ref_key: "noTitle",
|
|
697
697
|
ref: Et,
|
|
698
698
|
class: "vue-data-ui-no-title-space",
|
|
699
699
|
style: "height:36px; width: 100%;background:transparent"
|
|
700
700
|
}, null, 512)) : d("", !0),
|
|
701
|
-
|
|
701
|
+
P.value.style.chart.title.text ? (v(), f("div", {
|
|
702
702
|
key: 3,
|
|
703
703
|
ref_key: "chartTitle",
|
|
704
704
|
ref: Ct,
|
|
705
705
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
706
|
-
}, [(
|
|
706
|
+
}, [(v(), u(ve, {
|
|
707
707
|
key: `title_${bt.value}`,
|
|
708
708
|
config: {
|
|
709
709
|
title: {
|
|
710
710
|
cy: "galaxy-div-title",
|
|
711
|
-
...
|
|
711
|
+
...P.value.style.chart.title
|
|
712
712
|
},
|
|
713
713
|
subtitle: {
|
|
714
714
|
cy: "galaxy-div-subtitle",
|
|
715
|
-
...
|
|
715
|
+
...P.value.style.chart.title.subtitle
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
719
719
|
p("div", { id: `legend-top-${T.value}` }, null, 8, Ge),
|
|
720
|
-
|
|
720
|
+
P.value.userOptions.show && Pt.value && (S(Vt) || S(zt)) ? (v(), u(S(ft), {
|
|
721
721
|
ref_key: "userOptionsRef",
|
|
722
722
|
ref: Ot,
|
|
723
723
|
key: `user_option_${yt.value}`,
|
|
724
|
-
backgroundColor:
|
|
725
|
-
color:
|
|
726
|
-
isPrinting: S(
|
|
727
|
-
isImaging: S(
|
|
724
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
725
|
+
color: P.value.style.chart.color,
|
|
726
|
+
isPrinting: S(Ut),
|
|
727
|
+
isImaging: S(Wt),
|
|
728
728
|
uid: T.value,
|
|
729
|
-
hasTooltip:
|
|
730
|
-
hasPdf:
|
|
731
|
-
hasXls:
|
|
732
|
-
hasImg:
|
|
733
|
-
hasSvg:
|
|
734
|
-
hasTable:
|
|
735
|
-
hasFullscreen:
|
|
736
|
-
hasAltCopy:
|
|
737
|
-
isTooltip:
|
|
729
|
+
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
730
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
731
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
732
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
733
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
734
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
735
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
736
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
737
|
+
isTooltip: R.value.showTooltip,
|
|
738
738
|
isFullscreen: q.value,
|
|
739
|
-
titles: { ...
|
|
739
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
740
740
|
chartElement: E.value,
|
|
741
|
-
position:
|
|
742
|
-
hasAnnotator:
|
|
741
|
+
position: P.value.userOptions.position,
|
|
742
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
743
743
|
isAnnotation: Z.value,
|
|
744
|
-
callbacks:
|
|
745
|
-
printScale:
|
|
746
|
-
tableDialog:
|
|
747
|
-
isCursorPointer:
|
|
744
|
+
callbacks: P.value.userOptions.callbacks,
|
|
745
|
+
printScale: P.value.userOptions.print.scale,
|
|
746
|
+
tableDialog: P.value.table.useDialog,
|
|
747
|
+
isCursorPointer: F.value,
|
|
748
748
|
onToggleFullscreen: un,
|
|
749
|
-
onGeneratePdf: S(
|
|
749
|
+
onGeneratePdf: S(Gt),
|
|
750
750
|
onGenerateCsv: yn,
|
|
751
751
|
onGenerateImage: jn,
|
|
752
752
|
onGenerateSvg: An,
|
|
@@ -754,11 +754,11 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
754
754
|
onToggleTooltip: xn,
|
|
755
755
|
onToggleAnnotator: Sn,
|
|
756
756
|
onCopyAlt: Mn,
|
|
757
|
-
style:
|
|
757
|
+
style: _({ visibility: S(Vt) ? S(zt) ? "visible" : "hidden" : "visible" })
|
|
758
758
|
}, je({ _: 2 }, [
|
|
759
759
|
e.$slots.menuIcon ? {
|
|
760
760
|
name: "menuIcon",
|
|
761
|
-
fn: C(({ isOpen: t, color: n }) => [
|
|
761
|
+
fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(h({
|
|
762
762
|
isOpen: t,
|
|
763
763
|
color: n
|
|
764
764
|
})), void 0, !0)]),
|
|
@@ -766,37 +766,37 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
766
766
|
} : void 0,
|
|
767
767
|
e.$slots.optionTooltip ? {
|
|
768
768
|
name: "optionTooltip",
|
|
769
|
-
fn: C(() => [
|
|
769
|
+
fn: C(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
770
770
|
key: "1"
|
|
771
771
|
} : void 0,
|
|
772
772
|
e.$slots.optionPdf ? {
|
|
773
773
|
name: "optionPdf",
|
|
774
|
-
fn: C(() => [
|
|
774
|
+
fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
775
775
|
key: "2"
|
|
776
776
|
} : void 0,
|
|
777
777
|
e.$slots.optionCsv ? {
|
|
778
778
|
name: "optionCsv",
|
|
779
|
-
fn: C(() => [
|
|
779
|
+
fn: C(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
780
780
|
key: "3"
|
|
781
781
|
} : void 0,
|
|
782
782
|
e.$slots.optionImg ? {
|
|
783
783
|
name: "optionImg",
|
|
784
|
-
fn: C(() => [
|
|
784
|
+
fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
785
785
|
key: "4"
|
|
786
786
|
} : void 0,
|
|
787
787
|
e.$slots.optionSvg ? {
|
|
788
788
|
name: "optionSvg",
|
|
789
|
-
fn: C(() => [
|
|
789
|
+
fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
790
790
|
key: "5"
|
|
791
791
|
} : void 0,
|
|
792
792
|
e.$slots.optionTable ? {
|
|
793
793
|
name: "optionTable",
|
|
794
|
-
fn: C(() => [
|
|
794
|
+
fn: C(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
795
795
|
key: "6"
|
|
796
796
|
} : void 0,
|
|
797
797
|
e.$slots.optionFullscreen ? {
|
|
798
798
|
name: "optionFullscreen",
|
|
799
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
799
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(h({
|
|
800
800
|
toggleFullscreen: t,
|
|
801
801
|
isFullscreen: n
|
|
802
802
|
})), void 0, !0)]),
|
|
@@ -804,7 +804,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
804
804
|
} : void 0,
|
|
805
805
|
e.$slots.optionAnnotator ? {
|
|
806
806
|
name: "optionAnnotator",
|
|
807
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
807
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(h({
|
|
808
808
|
toggleAnnotator: t,
|
|
809
809
|
isAnnotator: n
|
|
810
810
|
})), void 0, !0)]),
|
|
@@ -812,45 +812,45 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
812
812
|
} : void 0,
|
|
813
813
|
e.$slots.optionAltCopy ? {
|
|
814
814
|
name: "optionAltCopy",
|
|
815
|
-
fn: C(({ altCopy: t }) => [
|
|
815
|
+
fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
816
816
|
key: "9"
|
|
817
817
|
} : void 0,
|
|
818
818
|
e.$slots["custom-menu-before"] ? {
|
|
819
819
|
name: "custom-menu-before",
|
|
820
|
-
fn: C(() => [
|
|
820
|
+
fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
821
821
|
key: "10"
|
|
822
822
|
} : void 0,
|
|
823
823
|
e.$slots["custom-menu-after"] ? {
|
|
824
824
|
name: "custom-menu-after",
|
|
825
|
-
fn: C(() => [
|
|
825
|
+
fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
826
826
|
key: "11"
|
|
827
827
|
} : void 0
|
|
828
828
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
829
|
-
p("div", Ke, [(
|
|
829
|
+
p("div", Ke, [(v(), f("svg", {
|
|
830
830
|
ref_key: "svgRef",
|
|
831
|
-
ref:
|
|
831
|
+
ref: L,
|
|
832
832
|
xmlns: S(se),
|
|
833
833
|
"aria-describedby": `chart-instructions-${T.value}`,
|
|
834
|
-
class:
|
|
834
|
+
class: Ie({
|
|
835
835
|
"vue-data-ui-fullscreen--on": q.value,
|
|
836
836
|
"vue-data-ui-fulscreen--off": !q.value
|
|
837
837
|
}),
|
|
838
838
|
viewBox: V.value.viewBox,
|
|
839
|
-
style:
|
|
839
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color}`),
|
|
840
840
|
tabindex: "0",
|
|
841
841
|
onFocus: Nn,
|
|
842
842
|
onBlur: Pn,
|
|
843
843
|
onKeydown: Fn
|
|
844
844
|
}, [
|
|
845
845
|
Ne(S(pt)),
|
|
846
|
-
e.$slots["chart-background"] ? (
|
|
846
|
+
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
847
847
|
key: 0,
|
|
848
848
|
x: 0,
|
|
849
849
|
y: 0,
|
|
850
850
|
width: V.value.width,
|
|
851
851
|
height: V.value.height,
|
|
852
852
|
style: { pointerEvents: "none" }
|
|
853
|
-
}, [
|
|
853
|
+
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : d("", !0),
|
|
854
854
|
p("defs", null, [p("filter", {
|
|
855
855
|
id: `blur_${T.value}`,
|
|
856
856
|
x: "-50%",
|
|
@@ -859,51 +859,51 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
859
859
|
height: "200%"
|
|
860
860
|
}, [p("feGaussianBlur", {
|
|
861
861
|
in: "SourceGraphic",
|
|
862
|
-
stdDeviation: 100 /
|
|
862
|
+
stdDeviation: 100 / P.value.style.chart.layout.arcs.gradient.intensity
|
|
863
863
|
}, null, 8, Xe)], 8, Ye)]),
|
|
864
|
-
(
|
|
865
|
-
e.value ? (
|
|
864
|
+
(v(!0), f(ke, null, Re(K.value, (e) => (v(), f("g", null, [
|
|
865
|
+
e.value ? (v(), f("path", {
|
|
866
866
|
key: 0,
|
|
867
867
|
d: e.path,
|
|
868
868
|
fill: "none",
|
|
869
|
-
stroke:
|
|
869
|
+
stroke: P.value.style.chart.backgroundColor,
|
|
870
870
|
"stroke-width": ln(e).border,
|
|
871
871
|
"stroke-linecap": "round"
|
|
872
872
|
}, null, 8, Ze)) : d("", !0),
|
|
873
|
-
e.value ? (
|
|
873
|
+
e.value ? (v(), f("path", {
|
|
874
874
|
key: 1,
|
|
875
875
|
d: e.path,
|
|
876
876
|
fill: "none",
|
|
877
877
|
stroke: e.color,
|
|
878
878
|
"stroke-width": ln(e).path,
|
|
879
879
|
"stroke-linecap": "round",
|
|
880
|
-
class:
|
|
880
|
+
class: Ie(`${O.value && O.value !== e.id && P.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
881
881
|
}, null, 10, Qe)) : d("", !0),
|
|
882
|
-
e.value &&
|
|
882
|
+
e.value && P.value.style.chart.layout.arcs.gradient.show ? (v(), f("g", {
|
|
883
883
|
key: 2,
|
|
884
884
|
filter: `url(#blur_${T.value})`
|
|
885
885
|
}, [p("path", {
|
|
886
886
|
d: e.path,
|
|
887
887
|
fill: "none",
|
|
888
|
-
stroke:
|
|
888
|
+
stroke: P.value.style.chart.layout.arcs.gradient.color,
|
|
889
889
|
"stroke-width": ln(e).blur,
|
|
890
890
|
"stroke-linecap": "round",
|
|
891
|
-
class:
|
|
891
|
+
class: Ie(`vue-ui-galaxy-gradient ${O.value && O.value !== e.id && P.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
892
892
|
}, null, 10, et)], 8, $e)) : d("", !0)
|
|
893
893
|
]))), 256)),
|
|
894
|
-
(
|
|
894
|
+
(v(!0), f(ke, null, Re(K.value, (e, t) => (v(), f("g", null, [e.value ? (v(), f("path", {
|
|
895
895
|
key: 0,
|
|
896
896
|
"data-a11y-serie-id": e.id,
|
|
897
897
|
d: e.path,
|
|
898
898
|
fill: "none",
|
|
899
899
|
stroke: "transparent",
|
|
900
|
-
"stroke-width":
|
|
900
|
+
"stroke-width": P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth,
|
|
901
901
|
"stroke-linecap": "round",
|
|
902
902
|
"aria-label": `${e.name}: ${S(n)({
|
|
903
|
-
p:
|
|
903
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
904
904
|
v: e.value,
|
|
905
|
-
s:
|
|
906
|
-
r:
|
|
905
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
906
|
+
r: P.value.style.chart.tooltip.roundingValue
|
|
907
907
|
})}`,
|
|
908
908
|
onMouseenter: (n) => _n({
|
|
909
909
|
datapoint: e,
|
|
@@ -916,39 +916,39 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
916
916
|
onMouseleave: (t) => mn(e),
|
|
917
917
|
onClick: (t) => hn(e)
|
|
918
918
|
}, null, 40, tt)) : d("", !0)]))), 256)),
|
|
919
|
-
|
|
919
|
+
b(e.$slots, "svg", { svg: {
|
|
920
920
|
...V.value,
|
|
921
|
-
isPrintingImg: S(
|
|
922
|
-
isPrintingSvg:
|
|
921
|
+
isPrintingImg: S(Ut) || S(Wt) || kt.value,
|
|
922
|
+
isPrintingSvg: At.value
|
|
923
923
|
} }, void 0, !0)
|
|
924
|
-
], 46, qe)), e.$slots.hint ? (
|
|
925
|
-
hint:
|
|
926
|
-
isVisible:
|
|
924
|
+
], 46, qe)), e.$slots.hint ? (v(), f("div", nt, [b(e.$slots, "hint", g(h({
|
|
925
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
926
|
+
isVisible: Nt.value
|
|
927
927
|
})), void 0, !0)])) : d("", !0)]),
|
|
928
|
-
e.$slots.watermark ? (
|
|
928
|
+
e.$slots.watermark ? (v(), f("div", rt, [b(e.$slots, "watermark", g(h({ isPrinting: S(Ut) || S(Wt) || kt.value || At.value })), void 0, !0)])) : d("", !0),
|
|
929
929
|
p("div", { id: `legend-bottom-${T.value}` }, null, 8, it),
|
|
930
|
-
Dt.value && (
|
|
930
|
+
Dt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(Ae, {
|
|
931
931
|
key: 6,
|
|
932
|
-
to:
|
|
932
|
+
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
933
933
|
}, [p("div", {
|
|
934
934
|
ref_key: "chartLegend",
|
|
935
935
|
ref: wt
|
|
936
|
-
}, [
|
|
936
|
+
}, [b(e.$slots, "legend", { legend: J.value }, () => [P.value.style.chart.legend.show ? (v(), u(De, {
|
|
937
937
|
key: `legend_${St.value}`,
|
|
938
938
|
legendSet: J.value,
|
|
939
939
|
config: vn.value,
|
|
940
940
|
onClickMarker: t[0] ||= ({ legend: e }) => U(e)
|
|
941
941
|
}, {
|
|
942
|
-
item: C(({ legend: e, index: t }) => [S(
|
|
942
|
+
item: C(({ legend: e, index: t }) => [S(I) ? d("", !0) : (v(), f("div", {
|
|
943
943
|
key: 0,
|
|
944
944
|
onClick: (t) => U(e),
|
|
945
|
-
style:
|
|
946
|
-
},
|
|
947
|
-
legendToggle: C(() => [J.value.length > 2 &&
|
|
945
|
+
style: _(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
946
|
+
}, x(e.display), 13, at))]),
|
|
947
|
+
legendToggle: C(() => [J.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !S(I) ? (v(), u(Se, {
|
|
948
948
|
key: 0,
|
|
949
|
-
backgroundColor:
|
|
950
|
-
color:
|
|
951
|
-
fontSize:
|
|
949
|
+
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
950
|
+
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
951
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
952
952
|
checked: H.value.length > 0,
|
|
953
953
|
onToggle: $t
|
|
954
954
|
}, null, 8, [
|
|
@@ -959,39 +959,39 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
959
959
|
])) : d("", !0)]),
|
|
960
960
|
_: 1
|
|
961
961
|
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
962
|
-
e.$slots.source ? (
|
|
962
|
+
e.$slots.source ? (v(), f("div", {
|
|
963
963
|
key: 7,
|
|
964
964
|
ref_key: "source",
|
|
965
965
|
ref: Tt,
|
|
966
966
|
dir: "auto"
|
|
967
|
-
}, [
|
|
967
|
+
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
968
968
|
Ne(S(st), {
|
|
969
|
-
teleportTo:
|
|
970
|
-
show:
|
|
971
|
-
backgroundColor:
|
|
972
|
-
color:
|
|
973
|
-
borderRadius:
|
|
974
|
-
borderColor:
|
|
975
|
-
borderWidth:
|
|
976
|
-
fontSize:
|
|
977
|
-
backgroundOpacity:
|
|
978
|
-
position:
|
|
979
|
-
offsetX:
|
|
980
|
-
offsetY:
|
|
969
|
+
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
970
|
+
show: R.value.showTooltip && D.value,
|
|
971
|
+
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
972
|
+
color: P.value.style.chart.tooltip.color,
|
|
973
|
+
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
974
|
+
borderColor: P.value.style.chart.tooltip.borderColor,
|
|
975
|
+
borderWidth: P.value.style.chart.tooltip.borderWidth,
|
|
976
|
+
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
977
|
+
backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
|
|
978
|
+
position: P.value.style.chart.tooltip.position,
|
|
979
|
+
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
980
|
+
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
981
981
|
parent: E.value,
|
|
982
982
|
content: vt.value,
|
|
983
983
|
isFullscreen: q.value,
|
|
984
|
-
isCustom: S(
|
|
985
|
-
smooth:
|
|
986
|
-
backdropFilter:
|
|
987
|
-
smoothForce:
|
|
988
|
-
smoothSnapThreshold:
|
|
989
|
-
isA11yMode:
|
|
990
|
-
a11yPosition:
|
|
984
|
+
isCustom: S(re)(P.value.style.chart.tooltip.customFormat),
|
|
985
|
+
smooth: P.value.style.chart.tooltip.smooth,
|
|
986
|
+
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
987
|
+
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
988
|
+
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
989
|
+
isA11yMode: Mt.value === "keyboard",
|
|
990
|
+
a11yPosition: jt.value
|
|
991
991
|
}, {
|
|
992
|
-
"tooltip-before": C(() => [
|
|
993
|
-
tooltip: C(() => [
|
|
994
|
-
"tooltip-after": C(() => [
|
|
992
|
+
"tooltip-before": C(() => [b(e.$slots, "tooltip-before", g(h({ ...dn.value })), void 0, !0)]),
|
|
993
|
+
tooltip: C(() => [b(e.$slots, "tooltip", g(h({ ...dn.value })), void 0, !0)]),
|
|
994
|
+
"tooltip-after": C(() => [b(e.$slots, "tooltip-after", g(h({ ...dn.value })), void 0, !0)]),
|
|
995
995
|
_: 3
|
|
996
996
|
}, 8, [
|
|
997
997
|
"teleportTo",
|
|
@@ -1017,20 +1017,20 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
1017
1017
|
"isA11yMode",
|
|
1018
1018
|
"a11yPosition"
|
|
1019
1019
|
]),
|
|
1020
|
-
|
|
1020
|
+
Pt.value && P.value.userOptions.buttons.table ? (v(), u(ze(Q.value.component), Pe({ key: 8 }, Q.value.props, {
|
|
1021
1021
|
ref_key: "tableUnit",
|
|
1022
1022
|
ref: j,
|
|
1023
1023
|
onClose: wn
|
|
1024
1024
|
}), je({
|
|
1025
|
-
content: C(() => [(
|
|
1025
|
+
content: C(() => [(v(), u(S(ut), {
|
|
1026
1026
|
key: `table_${xt.value}`,
|
|
1027
1027
|
colNames: X.value.colNames,
|
|
1028
1028
|
head: X.value.head,
|
|
1029
1029
|
body: X.value.body,
|
|
1030
1030
|
config: X.value.config,
|
|
1031
|
-
title:
|
|
1032
|
-
withCloseButton: !
|
|
1033
|
-
isCursorPointer:
|
|
1031
|
+
title: P.value.table.useDialog ? "" : Q.value.title,
|
|
1032
|
+
withCloseButton: !P.value.table.useDialog,
|
|
1033
|
+
isCursorPointer: F.value,
|
|
1034
1034
|
onClose: wn
|
|
1035
1035
|
}, {
|
|
1036
1036
|
th: C(({ th: e }) => [p("div", {
|
|
@@ -1040,7 +1040,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
1040
1040
|
"align-items": "center"
|
|
1041
1041
|
}
|
|
1042
1042
|
}, null, 8, ot)]),
|
|
1043
|
-
td: C(({ td: e }) => [Me(
|
|
1043
|
+
td: C(({ td: e }) => [Me(x(e.name || e), 1)]),
|
|
1044
1044
|
_: 1
|
|
1045
1045
|
}, 8, [
|
|
1046
1046
|
"colNames",
|
|
@@ -1052,24 +1052,24 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
1052
1052
|
"isCursorPointer"
|
|
1053
1053
|
]))]),
|
|
1054
1054
|
_: 2
|
|
1055
|
-
}, [
|
|
1055
|
+
}, [P.value.table.useDialog ? {
|
|
1056
1056
|
name: "title",
|
|
1057
|
-
fn: C(() => [Me(
|
|
1057
|
+
fn: C(() => [Me(x(Q.value.title), 1)]),
|
|
1058
1058
|
key: "0"
|
|
1059
|
-
} : void 0,
|
|
1059
|
+
} : void 0, P.value.table.useDialog ? {
|
|
1060
1060
|
name: "actions",
|
|
1061
1061
|
fn: C(() => [p("button", {
|
|
1062
1062
|
tabindex: "0",
|
|
1063
1063
|
class: "vue-ui-user-options-button",
|
|
1064
|
-
onClick: t[1] ||= (e) => yn(
|
|
1065
|
-
style:
|
|
1064
|
+
onClick: t[1] ||= (e) => yn(P.value.userOptions.callbacks.csv),
|
|
1065
|
+
style: _({ cursor: F.value ? "pointer" : "default" })
|
|
1066
1066
|
}, [Ne(S(ct), {
|
|
1067
1067
|
name: "fileCsv",
|
|
1068
1068
|
stroke: Q.value.props.color
|
|
1069
1069
|
}, null, 8, ["stroke"])], 4)]),
|
|
1070
1070
|
key: "1"
|
|
1071
1071
|
} : void 0]), 1040)) : d("", !0),
|
|
1072
|
-
|
|
1072
|
+
b(e.$slots, "skeleton", {}, () => [S(I) ? (v(), u(pe, { key: 0 })) : d("", !0)], !0)
|
|
1073
1073
|
], 46, Ue));
|
|
1074
1074
|
}
|
|
1075
1075
|
}, [["__scopeId", "data-v-d013ae09"]]);
|