vue-data-ui 3.23.9 → 3.23.10
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-CF0VFcBH.js → Arrow-bwmME0jw.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-DBVHlhQZ.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-B4n7br_R.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-wRhcG_-q.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-BZjzzyQo.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-B9kUMLSz.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-DMsScfkx.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-IWPfuceW.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-DWEFXq9E.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-Crs4-xWz.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-DNTJUKh1.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-DJ607Hx6.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAhF1ToV.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-sXtk2ZZ2.js} +2 -2
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-BE50SZQH.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-BGLPsoA9.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-DO4-MVhc.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-HQyukyl2.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-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-BYIvdTe8.js → dom-to-png-Cg_3vpOo.js} +1 -1
- package/dist/{exposedLib-C0DPCgFj.js → exposedLib-vfRiIvq_.js} +1 -1
- package/dist/{img-Bnokohej.js → img-tU9mMt9W.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-C_lMnQRs.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-AT2PUyyh.js} +1 -1
- package/dist/{package-C01DAl-Z.js → package-enC-Nivt.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-ColHHJFH.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-CqcoYfCA.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/{useNestedProp-vPNvh7rV.js → useNestedProp-CW0vJS1B.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-BFS7d6eb.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-DD7J3yor.js} +69 -69
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +1829 -0
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-DJNjilyy.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-DI8b5E2H.js} +6 -6
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-7ZVfFskI.js} +6 -6
- package/dist/{vue-ui-bullet-GgRg9sbN.js → vue-ui-bullet-Dyd5F1Wa.js} +7 -7
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-DzB3WQnq.js} +166 -166
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick--YWEtek_.js} +7 -7
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-Dn3RZU0p.js} +4 -4
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-BIsXeXiU.js} +5 -5
- package/dist/{vue-ui-chord-eOIKOfDO.js → vue-ui-chord-BimXqVsF.js} +8 -8
- package/dist/{vue-ui-circle-pack-kCN1R-pw.js → vue-ui-circle-pack-DKQEhL-L.js} +13 -16
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-C-P2D5i6.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-CThnMMWA.js} +7 -7
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-D0NNTRO3.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-9tGjGzZh.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-DLN9uPOi.js} +2 -2
- package/dist/vue-ui-donut-EZu8p7HF.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-mu-iGTIn.js} +9 -9
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-Dvldi3Oo.js} +13 -16
- package/dist/{vue-ui-flow-R-fW_EeT.js → vue-ui-flow-DYZBT5Cb.js} +13 -16
- package/dist/{vue-ui-funnel-CT3ixpCM.js → vue-ui-funnel--NaxO0cZ.js} +13 -16
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-D6eYN8Ut.js} +291 -293
- package/dist/{vue-ui-gauge-DRXsVxYq.js → vue-ui-gauge-DTIEl2Xb.js} +6 -6
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-CQqNemR6.js} +7 -7
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-ClunTUxX.js} +3 -3
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-B_pSQNzO.js} +7 -7
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-Byp0Tnny.js} +6 -6
- package/dist/{vue-ui-history-plot-Bn_M0AFg.js → vue-ui-history-plot-CMu8ST1E.js} +14 -17
- package/dist/{vue-ui-horizontal-bar-CkRRidx3.js → vue-ui-horizontal-bar-BQn7WxQ-.js} +10 -10
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-BKw5t-rX.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BNm0MQDw.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-DRwQV5hN.js} +232 -238
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-Bj3KTWYj.js} +298 -300
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-83Wh2w6z.js} +15 -18
- package/dist/{vue-ui-onion-Bix9MN3w.js → vue-ui-onion-C27GpneA.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-6SI2vJOo.js → vue-ui-parallel-coordinate-plot-BklOszr1.js} +212 -212
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-_J-Qr7-K.js} +9 -9
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-DcOUq4ym.js} +7 -7
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-FlRlsoAd.js} +8 -8
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-eCxEZD8C.js} +2 -2
- package/dist/{vue-ui-relation-circle-CZ68uWhc.js → vue-ui-relation-circle-DnsxHv7t.js} +6 -6
- package/dist/{vue-ui-ridgeline-BSiPLA08.js → vue-ui-ridgeline-TopTLyaE.js} +485 -485
- package/dist/vue-ui-rings-obVfb09j.js +1250 -0
- package/dist/{vue-ui-scatter-C0PouRMY.js → vue-ui-scatter-BHSuA506.js} +9 -9
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-CNOam3kC.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-YdyidjBH.js} +2 -2
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-CS5GLtYL.js} +3 -3
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-DDHwgP4k.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BcQu9V3h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-CPsA5P6c.js} +4 -4
- package/dist/{vue-ui-sparkline-CyJKVGYw.js → vue-ui-sparkline-CnbO-GkM.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-4tsTxMe2.js} +4 -4
- package/dist/{vue-ui-stackbar-J5QzbBaA.js → vue-ui-stackbar-2_SrMFNT.js} +575 -571
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-BNCWO_jG.js} +612 -608
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-2Y1c02Ek.js} +13 -16
- package/dist/{vue-ui-table-CBdCPS2r.js → vue-ui-table-DJZxHo5N.js} +5 -5
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-BacaEjQy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B8oAU5yr.js} +4 -4
- package/dist/{vue-ui-thermometer-DWmM_Hn9.js → vue-ui-thermometer-BGtxNU9T.js} +6 -6
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-CWZgSpP8.js} +5 -5
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-LLVCPyg9.js} +6 -6
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-ehBl9JMC.js} +16 -19
- package/dist/{vue-ui-waffle-C1ksX6OD.js → vue-ui-waffle-DpBAXbhh.js} +288 -290
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-C4OHPrtC.js} +6 -6
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-CDHn3Kwa.js} +13 -16
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-ao1xf04I.js} +13 -16
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-DmJDCl3c.js} +2 -2
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-_U3wmtCf.js} +1499 -1495
- package/dist/{vue-ui-xy-canvas-B-KxaFGF.js → vue-ui-xy-canvas-Bx-9y53V.js} +334 -330
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C9Y9Uklb.js +0 -1831
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Pt as o, S as s, Vt as c, X as l, ct as ee, i as te, jt as ne, n as re, pt as ie, q as ae, r as oe, t as se, tt as ce, w as le, xt as ue } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Pt as o, S as s, Vt as c, X as l, ct as ee, i as te, jt as ne, n as re, pt as ie, q as ae, r as oe, t as se, tt as ce, w as le, xt as ue } from "./lib-AT2PUyyh.js";
|
|
3
3
|
import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as pe } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as me } from "./usePrinter-
|
|
5
|
+
import { t as me } from "./usePrinter-BFS7d6eb.js";
|
|
6
6
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as _e } from "./useNestedProp-
|
|
7
|
+
import { t as _e } from "./useNestedProp-CW0vJS1B.js";
|
|
8
8
|
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as ye } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as be } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as xe } from "./img-
|
|
12
|
-
import { n as Se } from "./Title-
|
|
13
|
-
import { t as Ce } from "./Shape-
|
|
11
|
+
import { t as xe } from "./img-tU9mMt9W.js";
|
|
12
|
+
import { n as Se } from "./Title-BGLPsoA9.js";
|
|
13
|
+
import { t as Ce } from "./Shape-BAhF1ToV.js";
|
|
14
14
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
16
16
|
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Oe } from "./BaseLegendToggle-wRhcG_-q.js";
|
|
18
18
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as Me } from "./labelUtils-
|
|
22
|
-
import { t as Ne } from "./Legend-
|
|
21
|
+
import { t as Me } from "./labelUtils-C_lMnQRs.js";
|
|
22
|
+
import { t as Ne } from "./Legend-DWEFXq9E.js";
|
|
23
23
|
import { t as Pe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
24
24
|
import { t as Fe } from "./vue_ui_waffle-DE_DiSVP.js";
|
|
25
25
|
import { Fragment as u, Teleport as Ie, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Be, nextTick as Ve, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as He, onMounted as Ue, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as Ke, toRefs as qe, unref as T, useSlots as Je, watch as Ye, withCtx as E } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-waffle.vue
|
|
27
|
-
var Xe = /* @__PURE__ */ e({ default: () =>
|
|
27
|
+
var Xe = /* @__PURE__ */ e({ default: () => wt }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
28
28
|
"xmlns",
|
|
29
29
|
"aria-describedby",
|
|
30
30
|
"viewBox"
|
|
@@ -113,7 +113,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
113
113
|
}, yt = {
|
|
114
114
|
key: 5,
|
|
115
115
|
class: "vue-data-ui-watermark"
|
|
116
|
-
}, bt = ["id"], xt = ["onClick"], St =
|
|
116
|
+
}, bt = ["id"], xt = ["onClick"], St = { key: 0 }, Ct = { key: 1 }, wt = /*#__PURE__*/ we({
|
|
117
117
|
__name: "vue-ui-waffle",
|
|
118
118
|
props: {
|
|
119
119
|
config: {
|
|
@@ -131,17 +131,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
131
131
|
},
|
|
132
132
|
emits: ["selectLegend", "copyAlt"],
|
|
133
133
|
setup(e, { expose: we, emit: Xe }) {
|
|
134
|
-
let
|
|
134
|
+
let wt = g(() => import("./Tooltip-DO4-MVhc.js")), Tt = g(() => import("./BaseIcon-B4n7br_R.js").then((e) => e.n)), Et = g(() => import("./DataTable-DMsScfkx.js")), Dt = g(() => import("./vue-ui-accordion-DJNjilyy.js").then((e) => e.n)), Ot = g(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), kt = g(() => import("./PenAndPaper-DJ607Hx6.js").then((e) => e.t)), At = g(() => import("./PackageVersion-DNTJUKh1.js").then((e) => e.t)), jt = g(() => import("./BaseDraggableDialog-DBVHlhQZ.js").then((e) => e.n)), { vue_ui_waffle: Mt } = pe(), { isThemeValid: Nt, warnInvalidTheme: Pt } = ve(), Ft = Pe(), D = e, It = Je(), Lt = d({
|
|
135
135
|
get() {
|
|
136
136
|
return !!D.dataset && D.dataset.length;
|
|
137
137
|
},
|
|
138
138
|
set(e) {
|
|
139
139
|
return e;
|
|
140
140
|
}
|
|
141
|
-
}), O = S(ae()),
|
|
141
|
+
}), O = S(ae()), Rt = S(!1), zt = S(""), k = S(null), Bt = S(0), A = S(null), Vt = S(null), Ht = S(null), Ut = S(null), Wt = S(null), Gt = S(0), Kt = S(0), qt = S(0), Jt = S(!1), Yt = S(null), Xt = S(null), j = S(null), Zt = S({
|
|
142
142
|
x: 0,
|
|
143
143
|
y: 0
|
|
144
|
-
}),
|
|
144
|
+
}), Qt = S("pointer"), $t = S(!1), M = S(cn()), { transitionEnabled: N } = be({
|
|
145
145
|
config: () => M.value.transitions,
|
|
146
146
|
dataset: () => D.dataset
|
|
147
147
|
});
|
|
@@ -166,7 +166,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
166
166
|
}
|
|
167
167
|
]
|
|
168
168
|
});
|
|
169
|
-
let P = d(() => M.value.userOptions.useCursorPointer),
|
|
169
|
+
let P = d(() => M.value.userOptions.useCursorPointer), en = d(() => i({
|
|
170
170
|
defaultConfig: {
|
|
171
171
|
useCustomCells: !1,
|
|
172
172
|
userOptions: { show: !1 },
|
|
@@ -185,13 +185,13 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
185
185
|
} }
|
|
186
186
|
},
|
|
187
187
|
userConfig: M.value.skeletonConfig ?? {}
|
|
188
|
-
})), { loading:
|
|
188
|
+
})), { loading: tn, FINAL_DATASET: nn, manualLoading: rn } = he({
|
|
189
189
|
...qe(D),
|
|
190
190
|
FINAL_CONFIG: M,
|
|
191
|
-
prepareConfig:
|
|
191
|
+
prepareConfig: cn,
|
|
192
192
|
callback: () => {
|
|
193
193
|
Promise.resolve().then(async () => {
|
|
194
|
-
H.value =
|
|
194
|
+
H.value = Sn();
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
197
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
@@ -213,16 +213,16 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
213
213
|
],
|
|
214
214
|
skeletonConfig: i({
|
|
215
215
|
defaultConfig: M.value,
|
|
216
|
-
userConfig:
|
|
216
|
+
userConfig: en.value
|
|
217
217
|
})
|
|
218
|
-
}), { userOptionsVisible:
|
|
219
|
-
function
|
|
218
|
+
}), { userOptionsVisible: an, setUserOptionsVisibility: on, keepUserOptionState: sn } = Ae({ config: M.value }), { svgRef: F } = je({ config: M.value.style.chart.title });
|
|
219
|
+
function cn() {
|
|
220
220
|
let e = _e({
|
|
221
221
|
userConfig: D.config,
|
|
222
|
-
defaultConfig:
|
|
222
|
+
defaultConfig: Mt
|
|
223
223
|
}), t = e.theme;
|
|
224
224
|
if (!t) return e;
|
|
225
|
-
if (!
|
|
225
|
+
if (!Nt.value(e)) return Pt(e), e;
|
|
226
226
|
let n = _e({
|
|
227
227
|
userConfig: Fe[t] || D.config,
|
|
228
228
|
defaultConfig: e
|
|
@@ -236,15 +236,15 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
Ye(() => D.config, (e) => {
|
|
239
|
-
|
|
239
|
+
tn.value || (M.value = cn()), an.value = !M.value.userOptions.showOnChartHover, dn(), Gt.value += 1, Kt.value += 1, qt.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
240
240
|
}, { deep: !0 });
|
|
241
|
-
let I = Ge(null),
|
|
242
|
-
function
|
|
241
|
+
let I = Ge(null), ln = Ge(null), un = d(() => M.value.debug);
|
|
242
|
+
function dn() {
|
|
243
243
|
if (ne(D.dataset) ? (ce({
|
|
244
244
|
componentName: "VueUiWaffle",
|
|
245
245
|
type: "dataset",
|
|
246
|
-
debug:
|
|
247
|
-
}),
|
|
246
|
+
debug: un.value
|
|
247
|
+
}), Lt.value = !1, rn.value = !0) : un.value && D.dataset.forEach((e, t) => {
|
|
248
248
|
ie({
|
|
249
249
|
datasetObject: e,
|
|
250
250
|
requiredAttributes: ["name", "values"]
|
|
@@ -256,32 +256,32 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
256
256
|
index: t
|
|
257
257
|
});
|
|
258
258
|
});
|
|
259
|
-
}), ne(D.dataset) || (
|
|
259
|
+
}), ne(D.dataset) || (rn.value = M.value.loading), M.value.responsive) {
|
|
260
260
|
let e = Te(() => {
|
|
261
261
|
let { width: e, height: t } = Ee({
|
|
262
262
|
chart: A.value,
|
|
263
|
-
title: M.value.style.chart.title.text ?
|
|
264
|
-
legend: M.value.style.chart.legend.show ?
|
|
265
|
-
source:
|
|
266
|
-
noTitle:
|
|
263
|
+
title: M.value.style.chart.title.text ? Vt.value : null,
|
|
264
|
+
legend: M.value.style.chart.legend.show ? Ht.value : null,
|
|
265
|
+
source: Ut.value,
|
|
266
|
+
noTitle: Wt.value
|
|
267
267
|
});
|
|
268
268
|
requestAnimationFrame(() => {
|
|
269
269
|
R.value.width = e, R.value.height = t, z.value.width = e, z.value.height = t;
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
|
-
I.value && (
|
|
272
|
+
I.value && (ln.value && I.value.unobserve(ln.value), I.value.disconnect()), I.value = new ResizeObserver(e), ln.value = A.value.parentNode, I.value.observe(ln.value);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
Ue(() => {
|
|
276
|
-
|
|
276
|
+
Jt.value = !0, dn();
|
|
277
277
|
}), He(() => {
|
|
278
|
-
I.value && (
|
|
278
|
+
I.value && (ln.value && I.value.unobserve(ln.value), I.value.disconnect());
|
|
279
279
|
});
|
|
280
|
-
let { isPrinting:
|
|
280
|
+
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = me({
|
|
281
281
|
elementId: `vue-ui-waffle_${O.value}`,
|
|
282
282
|
fileName: M.value.style.chart.title.text || "vue-ui-waffle",
|
|
283
283
|
options: M.value.userOptions.print
|
|
284
|
-
}),
|
|
284
|
+
}), gn = d(() => M.value.userOptions.show && !M.value.style.chart.title.text), _n = d(() => le(M.value.customPalette)), L = S({
|
|
285
285
|
showTable: M.value.table.show,
|
|
286
286
|
showTooltip: M.value.style.chart.tooltip.show
|
|
287
287
|
});
|
|
@@ -299,8 +299,8 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
299
299
|
left: 0,
|
|
300
300
|
height: 512,
|
|
301
301
|
width: 512
|
|
302
|
-
}), B = d(() => (z.value.width - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), V = d(() => (z.value.height - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size),
|
|
303
|
-
function
|
|
302
|
+
}), B = d(() => (z.value.width - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), V = d(() => (z.value.height - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), vn = d(() => Math.max(1e-4, z.value.width / M.value.style.chart.layout.grid.size)), yn = d(() => Math.max(1e-4, z.value.height / M.value.style.chart.layout.grid.size));
|
|
303
|
+
function bn(e) {
|
|
304
304
|
let t = M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.size, n = e.reduce((e, t) => e + t, 0), r = e.map((e) => e / n * t), i = r.map(Math.floor), a = r.map((e) => e % 1), o = t - i.reduce((e, t) => e + t, 0);
|
|
305
305
|
for (; o > 0;) {
|
|
306
306
|
let e = a.indexOf(Math.max(...a));
|
|
@@ -308,22 +308,22 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
308
308
|
}
|
|
309
309
|
return i;
|
|
310
310
|
}
|
|
311
|
-
let
|
|
312
|
-
function
|
|
313
|
-
return
|
|
311
|
+
let xn = S(!1);
|
|
312
|
+
function Sn() {
|
|
313
|
+
return xn.value = nn.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, nn.value.map((e, t) => ({
|
|
314
314
|
...e,
|
|
315
|
-
color: s(e.color) ||
|
|
315
|
+
color: s(e.color) || _n.value[t] || o[t] || o[t % o.length],
|
|
316
316
|
uid: `serie_${t}`,
|
|
317
317
|
absoluteIndex: t
|
|
318
318
|
}));
|
|
319
319
|
}
|
|
320
|
-
let
|
|
320
|
+
let Cn = d(() => Sn()), H = S(Cn.value);
|
|
321
321
|
Ye(() => D.dataset, (e) => {
|
|
322
|
-
Array.isArray(e) && e.length > 0 && (
|
|
322
|
+
Array.isArray(e) && e.length > 0 && (rn.value = !1);
|
|
323
323
|
}, { immediate: !0 }), Ye(() => D.dataset, (e) => {
|
|
324
|
-
H.value =
|
|
324
|
+
H.value = Sn();
|
|
325
325
|
}, { deep: !0 });
|
|
326
|
-
let
|
|
326
|
+
let wn = d(() => bn(H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => xn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), Tn = d(() => bn(H.value.map((e, t) => xn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), U = d(() => (un.value && nn.value.forEach((e, t) => {
|
|
327
327
|
[null, void 0].includes(e.values) && ce({
|
|
328
328
|
componentName: "VueUiWaffle",
|
|
329
329
|
type: "datasetSerieAttribute",
|
|
@@ -337,25 +337,25 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
337
337
|
color: e.color,
|
|
338
338
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
339
339
|
absoluteValues: e.values || [],
|
|
340
|
-
proportion:
|
|
341
|
-
})))),
|
|
340
|
+
proportion: wn.value[t]
|
|
341
|
+
})))), En = d(() => H.value.map((e, t) => ({
|
|
342
342
|
absoluteIndex: e.absoluteIndex,
|
|
343
343
|
uid: e.uid,
|
|
344
344
|
name: e.name,
|
|
345
345
|
color: e.color,
|
|
346
346
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
347
347
|
absoluteValues: e.values || [],
|
|
348
|
-
proportion:
|
|
348
|
+
proportion: Tn.value[t]
|
|
349
349
|
})));
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function Dn() {
|
|
351
|
+
return En.value.map((e) => ({
|
|
352
352
|
name: e.name,
|
|
353
353
|
color: e.color,
|
|
354
354
|
value: e.value,
|
|
355
355
|
proportion: e.proportion
|
|
356
356
|
}));
|
|
357
357
|
}
|
|
358
|
-
let
|
|
358
|
+
let On = d(() => {
|
|
359
359
|
let e = 0;
|
|
360
360
|
return U.value.map((t, n) => {
|
|
361
361
|
let r = e, i = r + t.proportion, a = [];
|
|
@@ -366,7 +366,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
366
366
|
rects: a
|
|
367
367
|
};
|
|
368
368
|
});
|
|
369
|
-
}), W = d(() =>
|
|
369
|
+
}), W = d(() => On.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
370
370
|
isFirst: r === 0,
|
|
371
371
|
isLongEnough: n.length > 2,
|
|
372
372
|
name: e.name,
|
|
@@ -388,68 +388,68 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
388
388
|
y: (M.value.style.chart.layout.grid.vertical ? n : t) * (V.value + M.value.style.chart.layout.grid.spaceBetween) + z.value.top
|
|
389
389
|
});
|
|
390
390
|
return e;
|
|
391
|
-
}), K = S([]),
|
|
391
|
+
}), K = S([]), kn = S(!1), An = S(Object.create(null)), jn = S(Object.create(null)), q = S(0);
|
|
392
392
|
function J(e, t) {
|
|
393
393
|
H.value = H.value.map((n) => n.uid === e ? {
|
|
394
394
|
...n,
|
|
395
395
|
values: [t]
|
|
396
396
|
} : n);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Mn(e, t) {
|
|
399
399
|
let n = t.find((t) => t.uid === e);
|
|
400
400
|
return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Nn(e) {
|
|
403
403
|
let t = !1;
|
|
404
|
-
|
|
404
|
+
An.value[e] && (cancelAnimationFrame(An.value[e]), delete An.value[e], t = !0), jn.value[e] && (cancelAnimationFrame(jn.value[e]), delete jn.value[e], t = !0), t && (q.value = Math.max(0, q.value - 1), kn.value = q.value > 0);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
406
|
+
function Pn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
|
|
407
|
+
Nn(e), q.value += 1, kn.value = !0;
|
|
408
408
|
let i = t;
|
|
409
409
|
return new Promise((a) => {
|
|
410
410
|
function o() {
|
|
411
411
|
if (r === "increase") {
|
|
412
412
|
if (i >= n) {
|
|
413
|
-
J(e, n), --q.value, q.value <= 0 && (
|
|
413
|
+
J(e, n), --q.value, q.value <= 0 && (kn.value = !1), delete An.value[e], a();
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
i += n * .025, i > n && (i = n), J(e, i),
|
|
416
|
+
i += n * .025, i > n && (i = n), J(e, i), An.value[e] = requestAnimationFrame(o);
|
|
417
417
|
} else {
|
|
418
418
|
if (i <= t / 100) {
|
|
419
|
-
J(e, 0), --q.value, q.value <= 0 && (
|
|
419
|
+
J(e, 0), --q.value, q.value <= 0 && (kn.value = !1), delete jn.value[e], a();
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
|
-
i /= 1.15, J(e, i),
|
|
422
|
+
i /= 1.15, J(e, i), jn.value[e] = requestAnimationFrame(o);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
o();
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
H.value =
|
|
428
|
+
function Fn() {
|
|
429
|
+
H.value = Cn.value;
|
|
430
430
|
let e = K.value.length > 0;
|
|
431
431
|
if (!M.value.useAnimation) {
|
|
432
432
|
e ? K.value = [] : K.value = Y.value.map((e) => e.uid);
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
e ? [...K.value].forEach((e) => {
|
|
436
|
-
|
|
436
|
+
In(e, !0);
|
|
437
437
|
}) : Y.value.map((e) => e.uid).forEach((e) => {
|
|
438
|
-
|
|
438
|
+
In(e, !0);
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
if (
|
|
441
|
+
function In(e, t = !1) {
|
|
442
|
+
if (xn.value && !t) return;
|
|
443
443
|
let n = t || K.value.length < Y.value.length - 1 && Y.value.length > 1;
|
|
444
444
|
if (!M.value.useAnimation) {
|
|
445
445
|
K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
let r =
|
|
448
|
+
let r = Mn(e, Cn.value), i = Mn(e, H.value);
|
|
449
449
|
if (i !== 0 || r !== 0) {
|
|
450
450
|
if (K.value.includes(e)) {
|
|
451
|
-
if (K.value = K.value.filter((t) => t !== e),
|
|
452
|
-
|
|
451
|
+
if (K.value = K.value.filter((t) => t !== e), Ft.value) {
|
|
452
|
+
Nn(e), J(e, r), Yn("selectLegend", U.value.map((e) => ({
|
|
453
453
|
name: e.name,
|
|
454
454
|
color: e.color,
|
|
455
455
|
value: e.value,
|
|
@@ -457,13 +457,13 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
457
457
|
})));
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
|
|
460
|
+
Pn({
|
|
461
461
|
seriesId: e,
|
|
462
462
|
fromValue: i,
|
|
463
463
|
toValue: r,
|
|
464
464
|
mode: "increase"
|
|
465
465
|
}).then(() => {
|
|
466
|
-
|
|
466
|
+
Yn("selectLegend", U.value.map((e) => ({
|
|
467
467
|
name: e.name,
|
|
468
468
|
color: e.color,
|
|
469
469
|
value: e.value,
|
|
@@ -473,8 +473,8 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
475
|
if (n) {
|
|
476
|
-
if (
|
|
477
|
-
|
|
476
|
+
if (Ft.value) {
|
|
477
|
+
Nn(e), K.value.includes(e) || K.value.push(e), J(e, 0), Yn("selectLegend", U.value.map((e) => ({
|
|
478
478
|
name: e.name,
|
|
479
479
|
color: e.color,
|
|
480
480
|
value: e.value,
|
|
@@ -482,13 +482,13 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
482
482
|
})));
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
|
-
|
|
485
|
+
Pn({
|
|
486
486
|
seriesId: e,
|
|
487
487
|
fromValue: i,
|
|
488
488
|
toValue: 0,
|
|
489
489
|
mode: "decrease"
|
|
490
490
|
}).then(() => {
|
|
491
|
-
K.value.includes(e) || K.value.push(e), J(e, 0),
|
|
491
|
+
K.value.includes(e) || K.value.push(e), J(e, 0), Yn("selectLegend", U.value.map((e) => ({
|
|
492
492
|
name: e.name,
|
|
493
493
|
color: e.color,
|
|
494
494
|
value: e.value,
|
|
@@ -498,18 +498,18 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function In(e) {
|
|
502
|
-
return Tn.value.length ? Tn.value.find((t) => t.name === e) || (ln.value && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (ln.value && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
503
|
-
}
|
|
504
501
|
function Ln(e) {
|
|
505
|
-
|
|
506
|
-
t !== null && K.value.includes(t.uid) && Fn(t.uid);
|
|
502
|
+
return En.value.length ? En.value.find((t) => t.name === e) || (un.value && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (un.value && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
507
503
|
}
|
|
508
504
|
function Rn(e) {
|
|
509
|
-
let t =
|
|
510
|
-
t !== null &&
|
|
505
|
+
let t = Ln(e);
|
|
506
|
+
t !== null && K.value.includes(t.uid) && In(t.uid);
|
|
511
507
|
}
|
|
512
|
-
function zn(
|
|
508
|
+
function zn(e) {
|
|
509
|
+
let t = Ln(e);
|
|
510
|
+
t !== null && (K.value.includes(t.uid) || In(t.uid));
|
|
511
|
+
}
|
|
512
|
+
function Bn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
513
513
|
return Me({
|
|
514
514
|
config: i,
|
|
515
515
|
val: e,
|
|
@@ -522,14 +522,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
522
522
|
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / H.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
523
523
|
return {
|
|
524
524
|
name: e.name,
|
|
525
|
-
color: e.color ||
|
|
525
|
+
color: e.color || _n[t] || o[t] || o[t % o.length],
|
|
526
526
|
value: n,
|
|
527
527
|
proportion: r,
|
|
528
528
|
uid: e.uid,
|
|
529
529
|
shape: "square"
|
|
530
530
|
};
|
|
531
531
|
}).map((e, t) => {
|
|
532
|
-
let n =
|
|
532
|
+
let n = Bn({
|
|
533
533
|
val: te(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, l({
|
|
534
534
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
535
535
|
v: e.value,
|
|
@@ -551,18 +551,18 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
551
551
|
return {
|
|
552
552
|
...e,
|
|
553
553
|
opacity: K.value.includes(e.uid) ? .5 : 1,
|
|
554
|
-
segregate: () =>
|
|
554
|
+
segregate: () => In(e.uid),
|
|
555
555
|
isSegregated: K.value.includes(e.uid),
|
|
556
556
|
display: `${e.name}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
557
557
|
};
|
|
558
|
-
})),
|
|
558
|
+
})), Vn = d(() => ({
|
|
559
559
|
cy: "waffle-div-legend",
|
|
560
560
|
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
561
561
|
color: M.value.style.chart.legend.color,
|
|
562
562
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
563
563
|
paddingBottom: 12,
|
|
564
564
|
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
565
|
-
})), X = d(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)),
|
|
565
|
+
})), X = d(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Hn = S(null), Un = S(null), Z = d(() => {
|
|
566
566
|
let e = /* @__PURE__ */ new Map();
|
|
567
567
|
return W.value.forEach((t, n) => {
|
|
568
568
|
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
@@ -577,47 +577,47 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
577
577
|
});
|
|
578
578
|
}), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
|
|
579
579
|
});
|
|
580
|
-
function
|
|
580
|
+
function Wn(e) {
|
|
581
581
|
return Z.value.find((t) => t.serieIndex === e) || null;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
let t =
|
|
583
|
+
function Gn(e) {
|
|
584
|
+
let t = Wn(e);
|
|
585
585
|
return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Kn(e) {
|
|
588
588
|
let t = W.value[e];
|
|
589
589
|
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
590
590
|
datapoint: t,
|
|
591
591
|
seriesIndex: t.serieIndex
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function qn(e) {
|
|
595
595
|
let t = W.value[e];
|
|
596
596
|
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
597
597
|
datapoint: t,
|
|
598
598
|
seriesIndex: t.serieIndex
|
|
599
|
-
}),
|
|
599
|
+
}), Un.value = null, Rt.value = !1, k.value = null, j.value = null, Qt.value = "pointer";
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Jn(e, t = "pointer") {
|
|
602
602
|
if (K.value.length === D.dataset.length) return;
|
|
603
603
|
let n = W.value[e];
|
|
604
604
|
if (!n) return;
|
|
605
|
-
|
|
605
|
+
Qt.value = t, j.value = n.serieIndex, Hn.value = {
|
|
606
606
|
datapoint: n,
|
|
607
607
|
seriesIndex: n.absoluteIndex,
|
|
608
608
|
series: H.value,
|
|
609
609
|
config: M.value
|
|
610
|
-
}, M.value.events.datapointEnter &&
|
|
610
|
+
}, M.value.events.datapointEnter && Un.value !== n.serieIndex && M.value.events.datapointEnter({
|
|
611
611
|
datapoint: n,
|
|
612
612
|
seriesIndex: n.serieIndex
|
|
613
|
-
}),
|
|
613
|
+
}), Un.value = n.serieIndex, Rt.value = !0, k.value = n.serieIndex;
|
|
614
614
|
let r = M.value.style.chart.tooltip.customFormat;
|
|
615
615
|
if (ue(r) && ee(() => r({
|
|
616
616
|
seriesIndex: n.absoluteIndex,
|
|
617
617
|
datapoint: n,
|
|
618
618
|
series: H.value,
|
|
619
619
|
config: M.value
|
|
620
|
-
})))
|
|
620
|
+
}))) zt.value = r({
|
|
621
621
|
seriesIndex: n.absoluteIndex,
|
|
622
622
|
datapoint: n,
|
|
623
623
|
series: H.value,
|
|
@@ -625,7 +625,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
625
625
|
});
|
|
626
626
|
else {
|
|
627
627
|
let e = "";
|
|
628
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${
|
|
628
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${It.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${O.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${Bn({
|
|
629
629
|
config: M.value.style.chart.tooltip,
|
|
630
630
|
showVal: M.value.style.chart.tooltip.showValue,
|
|
631
631
|
showPercentage: M.value.style.chart.tooltip.showPercentage,
|
|
@@ -640,14 +640,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
640
640
|
series: H.value
|
|
641
641
|
})}</span>`,
|
|
642
642
|
percentage: `<span>${l({
|
|
643
|
-
v:
|
|
643
|
+
v: xn.value ? 1 / nn.value.length * 100 : n.value / X.value * 100,
|
|
644
644
|
s: "%",
|
|
645
645
|
r: M.value.style.chart.tooltip.roundingPercentage
|
|
646
646
|
})}</span>`
|
|
647
|
-
})}</b></div>`,
|
|
647
|
+
})}</b></div>`, zt.value = e;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
let
|
|
650
|
+
let Yn = Xe, Q = d(() => ({
|
|
651
651
|
head: U.value.map((e) => ({
|
|
652
652
|
name: e.name,
|
|
653
653
|
color: e.color
|
|
@@ -657,16 +657,16 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
657
657
|
function $(e) {
|
|
658
658
|
return M.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== e ? `url(#blur_${O.value})` : "";
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Xn(e) {
|
|
661
661
|
return [null, void 0].includes(k.value) || k.value === e ? { opacity: 1 } : { opacity: M.value.style.chart.layout.rect.selection.unselectedOpacity };
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Zn(e) {
|
|
664
664
|
return e.length <= 3 ? e : e.filter((t, n) => {
|
|
665
665
|
let r = e[(n - 1 + e.length) % e.length], i = e[(n + 1) % e.length], a = r.x === t.x && t.x === i.x, o = r.y === t.y && t.y === i.y;
|
|
666
666
|
return !a && !o;
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Qn(e) {
|
|
670
670
|
if (!e.length) return [];
|
|
671
671
|
let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [], r = /* @__PURE__ */ new Set(), i = [
|
|
672
672
|
[-1, 0],
|
|
@@ -744,11 +744,11 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
744
744
|
if (o(e) === o(c)) break;
|
|
745
745
|
l.push(e), ee = (r.get(o(e)) || []).find((e) => s.has(i(e)));
|
|
746
746
|
}
|
|
747
|
-
l.length >= 4 && a.push(
|
|
747
|
+
l.length >= 4 && a.push(Zn(l));
|
|
748
748
|
}
|
|
749
749
|
}), a;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function $n(e) {
|
|
752
752
|
let t = M.value.style.chart.layout.grid.size, n = M.value.style.chart.layout.grid.vertical, r = [];
|
|
753
753
|
return W.value.forEach((i, a) => {
|
|
754
754
|
if (i.serieIndex !== e) return;
|
|
@@ -759,24 +759,24 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
759
759
|
});
|
|
760
760
|
}), r;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
let t =
|
|
764
|
-
return
|
|
762
|
+
function er(e) {
|
|
763
|
+
let t = vn.value, n = yn.value;
|
|
764
|
+
return Qn($n(e)).map((e) => e.map(({ x: e, y: r }) => ({
|
|
765
765
|
x: e * t,
|
|
766
766
|
y: z.value.top + r * n
|
|
767
767
|
})));
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function tr(e) {
|
|
770
770
|
return e.map(({ x: e, y: t }) => `${e},${t}`).join(" ");
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function nr(e) {
|
|
773
773
|
return e.map((e) => {
|
|
774
774
|
if (!e.length) return "";
|
|
775
775
|
let [t, ...n] = e, r = n.map(({ x: e, y: t }) => `L ${e} ${t}`).join(" ");
|
|
776
776
|
return `M ${t.x} ${t.y} ${r} Z`;
|
|
777
777
|
}).filter(Boolean).join(" ");
|
|
778
778
|
}
|
|
779
|
-
let
|
|
779
|
+
let rr = d(() => !M.value.style.chart.layout.rect.selection?.wrap?.show || [null, void 0].includes(k.value) ? [] : er(k.value).map(tr)), ir = d(() => {
|
|
780
780
|
if (!M.value.style.chart.layout.rect.merged) return [];
|
|
781
781
|
let e = /* @__PURE__ */ new Map();
|
|
782
782
|
return W.value.forEach((t, n) => {
|
|
@@ -789,13 +789,13 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
789
789
|
});
|
|
790
790
|
}), Array.from(e.values()).map((e) => ({
|
|
791
791
|
...e,
|
|
792
|
-
d:
|
|
792
|
+
d: nr(er(e.serieIndex))
|
|
793
793
|
})).filter((e) => e.d);
|
|
794
794
|
});
|
|
795
|
-
function
|
|
796
|
-
return M.value.style.chart.layout.labels.captions.show ? W.value.length && !
|
|
795
|
+
function ar(e, t) {
|
|
796
|
+
return M.value.style.chart.layout.labels.captions.show ? W.value.length && !kn.value && !M.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < M.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % M.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function or(e, t = null) {
|
|
799
799
|
let n = te(M.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, l({
|
|
800
800
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
801
801
|
v: W.value[e].value,
|
|
@@ -812,7 +812,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
812
812
|
source: W.value[e].name,
|
|
813
813
|
length: M.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
814
814
|
}) : W.value[e].name) + (M.value.style.chart.layout.labels.captions.showPercentage || M.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
815
|
-
return `${M.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${
|
|
815
|
+
return `${M.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${Bn({
|
|
816
816
|
val: n,
|
|
817
817
|
percentage: r,
|
|
818
818
|
showVal: M.value.style.chart.layout.labels.captions.showValue,
|
|
@@ -820,7 +820,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
820
820
|
config: M.value.style.chart.layout.labels.dataLabels
|
|
821
821
|
})}`;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function sr(e = null) {
|
|
824
824
|
Ve(() => {
|
|
825
825
|
let n = Q.value.head.map((e, t) => [
|
|
826
826
|
[e.name],
|
|
@@ -841,9 +841,9 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
841
841
|
});
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
|
-
let
|
|
844
|
+
let cr = d(() => ({
|
|
845
845
|
head: [
|
|
846
|
-
"
|
|
846
|
+
"__SUM__",
|
|
847
847
|
te(M.value.style.chart.layout.labels.dataLabels.formatter, X.value, l({
|
|
848
848
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
849
849
|
v: X.value,
|
|
@@ -888,21 +888,21 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
888
888
|
M.value.table.columnNames.value,
|
|
889
889
|
M.value.table.columnNames.percentage
|
|
890
890
|
]
|
|
891
|
-
})),
|
|
892
|
-
function
|
|
893
|
-
|
|
891
|
+
})), lr = S(!1);
|
|
892
|
+
function ur(e) {
|
|
893
|
+
lr.value = e, Bt.value += 1;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function dr() {
|
|
896
896
|
L.value.showTable = !L.value.showTable;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function fr() {
|
|
899
899
|
L.value.showTooltip = !L.value.showTooltip;
|
|
900
900
|
}
|
|
901
|
-
let
|
|
902
|
-
function
|
|
903
|
-
|
|
901
|
+
let pr = S(!1);
|
|
902
|
+
function mr() {
|
|
903
|
+
pr.value = !pr.value;
|
|
904
904
|
}
|
|
905
|
-
async function
|
|
905
|
+
async function hr({ scale: e = 2 } = {}) {
|
|
906
906
|
if (!A.value) return;
|
|
907
907
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
908
908
|
domElement: A.value,
|
|
@@ -919,17 +919,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
919
919
|
aspectRatio: r
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
|
-
let
|
|
922
|
+
let gr = d(() => {
|
|
923
923
|
let e = M.value.table.useDialog && !M.value.table.show, t = L.value.showTable;
|
|
924
924
|
return {
|
|
925
|
-
component: e ?
|
|
925
|
+
component: e ? jt : Dt,
|
|
926
926
|
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
927
927
|
props: e ? {
|
|
928
928
|
backgroundColor: M.value.table.th.backgroundColor,
|
|
929
929
|
color: M.value.table.th.color,
|
|
930
930
|
headerColor: M.value.table.th.color,
|
|
931
931
|
headerBg: M.value.table.th.backgroundColor,
|
|
932
|
-
isFullscreen:
|
|
932
|
+
isFullscreen: lr.value,
|
|
933
933
|
fullscreenParent: A.value,
|
|
934
934
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
935
935
|
isCursorPointer: P.value
|
|
@@ -951,116 +951,116 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
951
951
|
};
|
|
952
952
|
});
|
|
953
953
|
Ye(() => L.value.showTable, (e) => {
|
|
954
|
-
M.value.table.show || (e && M.value.table.useDialog &&
|
|
954
|
+
M.value.table.show || (e && M.value.table.useDialog && Yt.value ? Yt.value.open() : "close" in Yt.value && Yt.value.close());
|
|
955
955
|
});
|
|
956
|
-
function
|
|
957
|
-
L.value.showTable = !1,
|
|
956
|
+
function _r() {
|
|
957
|
+
L.value.showTable = !1, Xt.value && Xt.value.setTableIconState(!1);
|
|
958
958
|
}
|
|
959
|
-
let
|
|
959
|
+
let vr = d(() => Y.value.map((e) => ({
|
|
960
960
|
...e,
|
|
961
961
|
name: e.display
|
|
962
|
-
}))),
|
|
962
|
+
}))), yr = d(() => M.value.style.chart.backgroundColor), br = d(() => M.value.style.chart.legend), xr = d(() => M.value.style.chart.title), { isCallbackImaging: Sr, isCallbackSvg: Cr, generateSvg: wr, onGenerateImage: Tr } = ye({
|
|
963
963
|
svg: F,
|
|
964
|
-
title:
|
|
965
|
-
legend:
|
|
966
|
-
legendItems:
|
|
967
|
-
backgroundColor:
|
|
964
|
+
title: xr,
|
|
965
|
+
legend: br,
|
|
966
|
+
legendItems: vr,
|
|
967
|
+
backgroundColor: yr,
|
|
968
968
|
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
969
|
-
generateImage:
|
|
969
|
+
generateImage: hn
|
|
970
970
|
});
|
|
971
|
-
async function
|
|
972
|
-
if (
|
|
971
|
+
async function Er() {
|
|
972
|
+
if (Yn("copyAlt", {
|
|
973
973
|
config: M.value,
|
|
974
|
-
dataset:
|
|
974
|
+
dataset: En.value
|
|
975
975
|
}), !M.value.userOptions.callbacks.altCopy) {
|
|
976
976
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
977
977
|
return;
|
|
978
978
|
}
|
|
979
979
|
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
980
980
|
config: M.value,
|
|
981
|
-
dataset:
|
|
981
|
+
dataset: En.value
|
|
982
982
|
}));
|
|
983
983
|
}
|
|
984
|
-
function Er() {
|
|
985
|
-
j.value = null, Qt.value = !0;
|
|
986
|
-
}
|
|
987
984
|
function Dr() {
|
|
988
|
-
j.value = null,
|
|
985
|
+
j.value = null, $t.value = !0;
|
|
989
986
|
}
|
|
990
|
-
function Or(
|
|
991
|
-
|
|
987
|
+
function Or() {
|
|
988
|
+
j.value = null, Qt.value = "pointer", Rt.value = !1, k.value = null, Un.value = null, $t.value = !1;
|
|
989
|
+
}
|
|
990
|
+
function kr(e) {
|
|
991
|
+
if (!F.value || pr.value || document.activeElement !== F.value || !Z.value.length || K.value.length === D.dataset.length) return;
|
|
992
992
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
993
993
|
if (!t && !n && !r && !i) return;
|
|
994
994
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
995
|
-
j.value = null,
|
|
995
|
+
j.value = null, Qt.value = "pointer", Rt.value = !1, k.value = null, Un.value = null;
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
998
|
if (r) {
|
|
999
999
|
if (j.value === null) return;
|
|
1000
|
-
let e =
|
|
1000
|
+
let e = Gn(j.value);
|
|
1001
1001
|
if (e === null) return;
|
|
1002
|
-
|
|
1002
|
+
Kn(e);
|
|
1003
1003
|
return;
|
|
1004
1004
|
}
|
|
1005
1005
|
let a = Z.value.findIndex((e) => e.serieIndex === j.value), o = null;
|
|
1006
1006
|
if (o = a === -1 ? n ? Z.value[0] : Z.value[Z.value.length - 1] : n ? Z.value[(a + 1) % Z.value.length] : Z.value[(a - 1 + Z.value.length) % Z.value.length], !o) return;
|
|
1007
|
-
let s =
|
|
1008
|
-
s !== null && (
|
|
1007
|
+
let s = Gn(o.serieIndex);
|
|
1008
|
+
s !== null && (Ar(o.serieIndex), Jn(s, "keyboard"));
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function Ar(e) {
|
|
1011
1011
|
if (!Number.isFinite(e) || !F.value) return;
|
|
1012
|
-
let t =
|
|
1012
|
+
let t = Wn(e);
|
|
1013
1013
|
if (!t || !t.rectIndexes.length) return;
|
|
1014
1014
|
let n = t.rectIndexes.map((e) => {
|
|
1015
1015
|
let t = G.value[e];
|
|
1016
1016
|
return t ? {
|
|
1017
|
-
x: t.x + M.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1018
|
-
y: t.y + M.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1017
|
+
x: t.x + M.value.style.chart.layout.grid.spaceBetween / 2 + vn.value / 2,
|
|
1018
|
+
y: t.y + M.value.style.chart.layout.grid.spaceBetween / 2 + yn.value / 2
|
|
1019
1019
|
} : null;
|
|
1020
1020
|
}).filter(Boolean);
|
|
1021
1021
|
if (!n.length) return;
|
|
1022
1022
|
let r = Math.min(...n.map((e) => e.x)), i = Math.max(...n.map((e) => e.x)), a = Math.min(...n.map((e) => e.y)), o = Math.max(...n.map((e) => e.y)), s = (r + i) / 2, c = (a + o) / 2, l = F.value.getBoundingClientRect();
|
|
1023
|
-
|
|
1023
|
+
Zt.value = {
|
|
1024
1024
|
x: l.left + s / R.value.width * l.width,
|
|
1025
1025
|
y: l.top + c / R.value.height * l.height
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
|
-
let
|
|
1029
|
-
headers:
|
|
1030
|
-
rows:
|
|
1028
|
+
let jr = d(() => ({
|
|
1029
|
+
headers: cr.value?.colNames ?? [],
|
|
1030
|
+
rows: cr.value?.body ?? []
|
|
1031
1031
|
}));
|
|
1032
1032
|
return we({
|
|
1033
|
-
getData:
|
|
1034
|
-
getImage:
|
|
1035
|
-
generatePdf:
|
|
1036
|
-
generateCsv:
|
|
1037
|
-
generateImage:
|
|
1038
|
-
generateSvg:
|
|
1039
|
-
hideSeries:
|
|
1040
|
-
showSeries:
|
|
1041
|
-
toggleTable:
|
|
1042
|
-
toggleTooltip:
|
|
1043
|
-
toggleAnnotator:
|
|
1044
|
-
toggleFullscreen:
|
|
1045
|
-
copyAlt:
|
|
1033
|
+
getData: Dn,
|
|
1034
|
+
getImage: hr,
|
|
1035
|
+
generatePdf: mn,
|
|
1036
|
+
generateCsv: sr,
|
|
1037
|
+
generateImage: hn,
|
|
1038
|
+
generateSvg: wr,
|
|
1039
|
+
hideSeries: zn,
|
|
1040
|
+
showSeries: Rn,
|
|
1041
|
+
toggleTable: dr,
|
|
1042
|
+
toggleTooltip: fr,
|
|
1043
|
+
toggleAnnotator: mr,
|
|
1044
|
+
toggleFullscreen: ur,
|
|
1045
|
+
copyAlt: Er
|
|
1046
1046
|
}), (e, t) => (x(), m("div", {
|
|
1047
|
-
class: v(`vue-data-ui-component vue-ui-waffle ${
|
|
1047
|
+
class: v(`vue-data-ui-component vue-ui-waffle ${lr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1048
1048
|
ref_key: "waffleChart",
|
|
1049
1049
|
ref: A,
|
|
1050
1050
|
id: `vue-ui-waffle_${O.value}`,
|
|
1051
1051
|
style: b(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
1052
|
-
onMouseenter: t[2] ||= () => T(
|
|
1053
|
-
onMouseleave: t[3] ||= () => T(
|
|
1052
|
+
onMouseenter: t[2] ||= () => T(on)(!0),
|
|
1053
|
+
onMouseleave: t[3] ||= () => T(on)(!1)
|
|
1054
1054
|
}, [
|
|
1055
1055
|
h("div", {
|
|
1056
1056
|
id: `chart-instructions-${O.value}`,
|
|
1057
1057
|
class: "sr-only"
|
|
1058
1058
|
}, [h("p", null, Ke(M.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1059
|
-
|
|
1059
|
+
jr.value?.rows?.length ? (x(), f(ke, {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
uid: O.value,
|
|
1062
|
-
head:
|
|
1063
|
-
body:
|
|
1062
|
+
head: jr.value.headers,
|
|
1063
|
+
body: jr.value.rows,
|
|
1064
1064
|
notice: M.value.a11y.translations.tableAvailable,
|
|
1065
1065
|
caption: M.value.a11y.translations.tableCaption
|
|
1066
1066
|
}, null, 8, [
|
|
@@ -1070,14 +1070,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1070
1070
|
"notice",
|
|
1071
1071
|
"caption"
|
|
1072
1072
|
])) : p("", !0),
|
|
1073
|
-
M.value.userOptions.buttons.annotator ? (x(), f(T(
|
|
1073
|
+
M.value.userOptions.buttons.annotator ? (x(), f(T(kt), {
|
|
1074
1074
|
key: 1,
|
|
1075
1075
|
svgRef: T(F),
|
|
1076
1076
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1077
1077
|
color: M.value.style.chart.color,
|
|
1078
|
-
active:
|
|
1078
|
+
active: pr.value,
|
|
1079
1079
|
isCursorPointer: P.value,
|
|
1080
|
-
onClose:
|
|
1080
|
+
onClose: mr
|
|
1081
1081
|
}, {
|
|
1082
1082
|
"annotator-action-close": E(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1083
1083
|
"annotator-action-color": E(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -1093,20 +1093,20 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1093
1093
|
"active",
|
|
1094
1094
|
"isCursorPointer"
|
|
1095
1095
|
])) : p("", !0),
|
|
1096
|
-
|
|
1096
|
+
gn.value ? (x(), m("div", {
|
|
1097
1097
|
key: 2,
|
|
1098
1098
|
ref_key: "noTitle",
|
|
1099
|
-
ref:
|
|
1099
|
+
ref: Wt,
|
|
1100
1100
|
class: "vue-data-ui-no-title-space",
|
|
1101
1101
|
style: "height:36px; width: 100%;background:transparent"
|
|
1102
1102
|
}, null, 512)) : p("", !0),
|
|
1103
1103
|
M.value.style.chart.title.text ? (x(), m("div", {
|
|
1104
1104
|
key: 3,
|
|
1105
1105
|
ref_key: "chartTitle",
|
|
1106
|
-
ref:
|
|
1106
|
+
ref: Vt,
|
|
1107
1107
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1108
1108
|
}, [(x(), f(Se, {
|
|
1109
|
-
key: `title_${
|
|
1109
|
+
key: `title_${Gt.value}`,
|
|
1110
1110
|
config: {
|
|
1111
1111
|
title: {
|
|
1112
1112
|
cy: "waffle-title",
|
|
@@ -1119,14 +1119,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1121
1121
|
h("div", { id: `legend-top-${O.value}` }, null, 8, $e),
|
|
1122
|
-
M.value.userOptions.show &&
|
|
1122
|
+
M.value.userOptions.show && Lt.value && (T(sn) || T(an)) ? (x(), f(T(Ot), {
|
|
1123
1123
|
ref_key: "userOptionsRef",
|
|
1124
|
-
ref:
|
|
1125
|
-
key: `user_options_${
|
|
1124
|
+
ref: Xt,
|
|
1125
|
+
key: `user_options_${Bt.value}`,
|
|
1126
1126
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1127
1127
|
color: M.value.style.chart.color,
|
|
1128
|
-
isPrinting: T(
|
|
1129
|
-
isImaging: T(
|
|
1128
|
+
isPrinting: T(fn),
|
|
1129
|
+
isImaging: T(pn),
|
|
1130
1130
|
uid: O.value,
|
|
1131
1131
|
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
1132
1132
|
hasPdf: M.value.userOptions.buttons.pdf,
|
|
@@ -1136,27 +1136,27 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1136
1136
|
hasTable: M.value.userOptions.buttons.table,
|
|
1137
1137
|
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
1138
1138
|
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
1139
|
-
isFullscreen:
|
|
1139
|
+
isFullscreen: lr.value,
|
|
1140
1140
|
isTooltip: L.value.showTooltip,
|
|
1141
1141
|
titles: { ...M.value.userOptions.buttonTitles },
|
|
1142
1142
|
chartElement: A.value,
|
|
1143
1143
|
position: M.value.userOptions.position,
|
|
1144
1144
|
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
1145
|
-
isAnnotation:
|
|
1145
|
+
isAnnotation: pr.value,
|
|
1146
1146
|
callbacks: M.value.userOptions.callbacks,
|
|
1147
1147
|
printScale: M.value.userOptions.print.scale,
|
|
1148
1148
|
tableDialog: M.value.table.useDialog,
|
|
1149
1149
|
isCursorPointer: P.value,
|
|
1150
|
-
onToggleFullscreen:
|
|
1151
|
-
onGeneratePdf: T(
|
|
1152
|
-
onGenerateCsv:
|
|
1153
|
-
onGenerateImage: T(
|
|
1154
|
-
onGenerateSvg: T(
|
|
1155
|
-
onToggleTable:
|
|
1156
|
-
onToggleTooltip:
|
|
1157
|
-
onToggleAnnotator:
|
|
1158
|
-
onCopyAlt:
|
|
1159
|
-
style: b({ visibility: T(
|
|
1150
|
+
onToggleFullscreen: ur,
|
|
1151
|
+
onGeneratePdf: T(mn),
|
|
1152
|
+
onGenerateCsv: sr,
|
|
1153
|
+
onGenerateImage: T(Tr),
|
|
1154
|
+
onGenerateSvg: T(wr),
|
|
1155
|
+
onToggleTable: dr,
|
|
1156
|
+
onToggleTooltip: fr,
|
|
1157
|
+
onToggleAnnotator: mr,
|
|
1158
|
+
onCopyAlt: Er,
|
|
1159
|
+
style: b({ visibility: T(sn) ? T(an) ? "visible" : "hidden" : "visible" })
|
|
1160
1160
|
}, Le({ _: 2 }, [
|
|
1161
1161
|
e.$slots.menuIcon ? {
|
|
1162
1162
|
name: "menuIcon",
|
|
@@ -1234,18 +1234,18 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1234
1234
|
xmlns: T(se),
|
|
1235
1235
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1236
1236
|
class: v({
|
|
1237
|
-
"vue-data-ui-fullscreen--on":
|
|
1238
|
-
"vue-data-ui-fulscreen--off": !
|
|
1237
|
+
"vue-data-ui-fullscreen--on": lr.value,
|
|
1238
|
+
"vue-data-ui-fulscreen--off": !lr.value,
|
|
1239
1239
|
"vue-data-ui-no-transition": !T(N)
|
|
1240
1240
|
}),
|
|
1241
1241
|
tabindex: "0",
|
|
1242
1242
|
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1243
1243
|
style: b(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1244
|
-
onFocus:
|
|
1245
|
-
onBlur:
|
|
1246
|
-
onKeydown:
|
|
1244
|
+
onFocus: Dr,
|
|
1245
|
+
onBlur: Or,
|
|
1246
|
+
onKeydown: kr
|
|
1247
1247
|
}, [
|
|
1248
|
-
ze(T(
|
|
1248
|
+
ze(T(At)),
|
|
1249
1249
|
h("defs", null, [(x(!0), m(u, null, C(W.value, (e, t) => (x(), f(De, {
|
|
1250
1250
|
t: "radial",
|
|
1251
1251
|
cx: "50%",
|
|
@@ -1303,11 +1303,11 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1303
1303
|
rx: 3,
|
|
1304
1304
|
fill: "none",
|
|
1305
1305
|
stroke: "black"
|
|
1306
|
-
}, null, 8, it)) : W.value.length && !M.value.useCustomCells ? (x(), m(u, { key: 2 }, [e.$slots.pattern ? (x(), m("g", at, [(x(!0), m(u, null, C(
|
|
1306
|
+
}, null, 8, it)) : W.value.length && !M.value.useCustomCells ? (x(), m(u, { key: 2 }, [e.$slots.pattern ? (x(), m("g", at, [(x(!0), m(u, null, C(Cn.value, (t) => (x(), m("defs", null, [w(e.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
1307
1307
|
seriesIndex: t.absoluteIndex,
|
|
1308
1308
|
patternId: `pattern_${O.value}_${t.absoluteIndex}`
|
|
1309
1309
|
}), void 0, !0)]))), 256))])) : p("", !0), M.value.style.chart.layout.rect.merged ? (x(), m(u, { key: 1 }, [
|
|
1310
|
-
(x(!0), m(u, null, C(
|
|
1310
|
+
(x(!0), m(u, null, C(ir.value, (e) => (x(), m("path", {
|
|
1311
1311
|
key: `merged-underlayer-${e.serieIndex}`,
|
|
1312
1312
|
d: e.d,
|
|
1313
1313
|
fill: "white",
|
|
@@ -1316,10 +1316,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1316
1316
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1317
1317
|
"stroke-linejoin": "round",
|
|
1318
1318
|
filter: $(e.serieIndex),
|
|
1319
|
-
style: b(
|
|
1319
|
+
style: b(Xn(e.serieIndex)),
|
|
1320
1320
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1321
1321
|
}, null, 14, ot))), 128)),
|
|
1322
|
-
(x(!0), m(u, null, C(
|
|
1322
|
+
(x(!0), m(u, null, C(ir.value, (e) => (x(), m("path", {
|
|
1323
1323
|
key: `merged-serie-${e.serieIndex}`,
|
|
1324
1324
|
d: e.d,
|
|
1325
1325
|
fill: M.value.style.chart.layout.rect.useGradient && M.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${O.value}_${e.gradientIndex})` : e.color,
|
|
@@ -1328,17 +1328,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1328
1328
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1329
1329
|
"stroke-linejoin": "round",
|
|
1330
1330
|
filter: $(e.serieIndex),
|
|
1331
|
-
style: b(
|
|
1331
|
+
style: b(Xn(e.serieIndex)),
|
|
1332
1332
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1333
1333
|
}, null, 14, st))), 128)),
|
|
1334
|
-
e.$slots.pattern ? (x(), m("g", ct, [(x(!0), m(u, null, C(
|
|
1334
|
+
e.$slots.pattern ? (x(), m("g", ct, [(x(!0), m(u, null, C(ir.value, (e) => (x(), m("path", {
|
|
1335
1335
|
key: `merged-pattern-${e.serieIndex}`,
|
|
1336
1336
|
d: e.d,
|
|
1337
1337
|
fill: `url(#pattern_${O.value}_${e.absoluteIndex})`,
|
|
1338
1338
|
"fill-rule": "evenodd",
|
|
1339
1339
|
stroke: "none",
|
|
1340
1340
|
filter: $(e.serieIndex),
|
|
1341
|
-
style: b(
|
|
1341
|
+
style: b(Xn(e.serieIndex)),
|
|
1342
1342
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1343
1343
|
}, null, 14, lt))), 128))])) : p("", !0)
|
|
1344
1344
|
], 64)) : (x(), m(u, { key: 2 }, [
|
|
@@ -1352,7 +1352,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1352
1352
|
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1353
1353
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1354
1354
|
filter: $(W.value[t].serieIndex),
|
|
1355
|
-
style: b(
|
|
1355
|
+
style: b(Xn(W.value[t].serieIndex)),
|
|
1356
1356
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1357
1357
|
}, null, 14, ut))), 256)),
|
|
1358
1358
|
(x(!0), m(u, null, C(G.value, (e, t) => (x(), m("rect", {
|
|
@@ -1365,7 +1365,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1365
1365
|
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1366
1366
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1367
1367
|
filter: $(W.value[t].serieIndex),
|
|
1368
|
-
style: b(
|
|
1368
|
+
style: b(Xn(W.value[t].serieIndex)),
|
|
1369
1369
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1370
1370
|
}, null, 14, dt))), 256)),
|
|
1371
1371
|
e.$slots.pattern ? (x(), m("g", ft, [(x(!0), m(u, null, C(G.value, (e, t) => (x(), m("rect", {
|
|
@@ -1377,7 +1377,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1377
1377
|
fill: `url(#pattern_${O.value}_${W.value[t].absoluteIndex})`,
|
|
1378
1378
|
stroke: "none",
|
|
1379
1379
|
filter: $(W.value[t].serieIndex),
|
|
1380
|
-
style: b(
|
|
1380
|
+
style: b(Xn(W.value[t].serieIndex)),
|
|
1381
1381
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1382
1382
|
}, null, 14, pt))), 256))])) : p("", !0)
|
|
1383
1383
|
], 64))], 64)) : p("", !0),
|
|
@@ -1391,7 +1391,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1391
1391
|
},
|
|
1392
1392
|
isSelected: [null, void 0].includes(k.value) ? !0 : W.value[n].serieIndex === k.value
|
|
1393
1393
|
}), void 0, !0)]))), 256)) : p("", !0),
|
|
1394
|
-
(x(!0), m(u, null, C(
|
|
1394
|
+
(x(!0), m(u, null, C(rr.value, (e, t) => (x(), m("polygon", {
|
|
1395
1395
|
key: `selected-series-wrap-${t}`,
|
|
1396
1396
|
points: e,
|
|
1397
1397
|
fill: "none",
|
|
@@ -1400,74 +1400,74 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1400
1400
|
"stroke-linejoin": M.value.style.chart.layout.rect.selection.wrap.strokeLinejoin,
|
|
1401
1401
|
"pointer-events": "none"
|
|
1402
1402
|
}, null, 8, mt))), 128)),
|
|
1403
|
-
(x(!0), m(u, null, C(G.value, (e, t) => (x(), m(u, null, [
|
|
1403
|
+
(x(!0), m(u, null, C(G.value, (e, t) => (x(), m(u, null, [ar(t, e) ? (x(), m("text", {
|
|
1404
1404
|
key: `datalabel_${t}`,
|
|
1405
|
-
textContent: Ke(
|
|
1405
|
+
textContent: Ke(or(t, e)),
|
|
1406
1406
|
x: e.x + M.value.style.chart.layout.labels.captions.offsetX + M.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1407
|
-
y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1407
|
+
y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 + yn.value / 2 + M.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1408
1408
|
"font-size": M.value.style.chart.layout.labels.captions.fontSize,
|
|
1409
1409
|
fill: T(oe)(W.value[t].color),
|
|
1410
1410
|
filter: $(W.value[t].serieIndex),
|
|
1411
1411
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1412
1412
|
}, null, 10, ht)) : p("", !0)], 64))), 256)),
|
|
1413
|
-
M.value.style.chart.layout.rect.merged && !M.value.useCustomCells ? (x(!0), m(u, { key: 4 }, C(
|
|
1413
|
+
M.value.style.chart.layout.rect.merged && !M.value.useCustomCells ? (x(!0), m(u, { key: 4 }, C(ir.value, (e) => (x(), m("path", {
|
|
1414
1414
|
key: `tooltip-trap-${e.serieIndex}`,
|
|
1415
1415
|
d: e.d,
|
|
1416
1416
|
fill: "transparent",
|
|
1417
1417
|
"fill-rule": "evenodd",
|
|
1418
1418
|
stroke: "none",
|
|
1419
1419
|
"pointer-events": "fill",
|
|
1420
|
-
onMouseover: (t) =>
|
|
1421
|
-
onMouseleave: (t) =>
|
|
1422
|
-
onClick: (t) =>
|
|
1420
|
+
onMouseover: (t) => Jn(e.rectIndex),
|
|
1421
|
+
onMouseleave: (t) => qn(e.rectIndex),
|
|
1422
|
+
onClick: (t) => Kn(e.rectIndex)
|
|
1423
1423
|
}, null, 40, gt))), 128)) : (x(!0), m(u, { key: 5 }, C(G.value, (e, t) => (x(), m("rect", {
|
|
1424
1424
|
key: `tooltip-trap-${t}`,
|
|
1425
1425
|
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1426
1426
|
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1427
|
-
height:
|
|
1428
|
-
width:
|
|
1427
|
+
height: yn.value,
|
|
1428
|
+
width: vn.value,
|
|
1429
1429
|
fill: "transparent",
|
|
1430
1430
|
stroke: "none",
|
|
1431
|
-
onMouseover: (e) =>
|
|
1432
|
-
onMouseleave: (e) =>
|
|
1433
|
-
onClick: (e) =>
|
|
1431
|
+
onMouseover: (e) => Jn(t),
|
|
1432
|
+
onMouseleave: (e) => qn(t),
|
|
1433
|
+
onClick: (e) => Kn(t)
|
|
1434
1434
|
}, null, 40, _t))), 128)),
|
|
1435
1435
|
w(e.$slots, "svg", { svg: {
|
|
1436
1436
|
...R.value,
|
|
1437
|
-
isPrintingImg: T(
|
|
1438
|
-
isPrintingSvg: T(
|
|
1437
|
+
isPrintingImg: T(fn) || T(pn) || T(Sr),
|
|
1438
|
+
isPrintingSvg: T(Cr)
|
|
1439
1439
|
} }, void 0, !0)
|
|
1440
1440
|
], 46, tt)), e.$slots.hint ? (x(), m("div", vt, [w(e.$slots, "hint", y(_({
|
|
1441
1441
|
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1442
|
-
isVisible:
|
|
1442
|
+
isVisible: $t.value
|
|
1443
1443
|
})), void 0, !0)])) : p("", !0)]),
|
|
1444
|
-
e.$slots.watermark ? (x(), m("div", yt, [w(e.$slots, "watermark", y(_({ isPrinting: T(
|
|
1444
|
+
e.$slots.watermark ? (x(), m("div", yt, [w(e.$slots, "watermark", y(_({ isPrinting: T(fn) || T(pn) || T(Sr) || T(Cr) })), void 0, !0)])) : p("", !0),
|
|
1445
1445
|
h("div", { id: `legend-bottom-${O.value}` }, null, 8, bt),
|
|
1446
|
-
|
|
1446
|
+
Jt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ie, {
|
|
1447
1447
|
key: 6,
|
|
1448
1448
|
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1449
1449
|
}, [h("div", {
|
|
1450
1450
|
ref_key: "chartLegend",
|
|
1451
|
-
ref:
|
|
1451
|
+
ref: Ht
|
|
1452
1452
|
}, [w(e.$slots, "legend", { legend: Y.value }, () => [M.value.style.chart.legend.show ? (x(), f(Ne, {
|
|
1453
|
-
key: `legend_${
|
|
1453
|
+
key: `legend_${qt.value}`,
|
|
1454
1454
|
legendSet: Y.value,
|
|
1455
|
-
config:
|
|
1455
|
+
config: Vn.value,
|
|
1456
1456
|
isCursorPointer: P.value,
|
|
1457
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1457
|
+
onClickMarker: t[0] ||= ({ legend: e }) => In(e.uid)
|
|
1458
1458
|
}, Le({
|
|
1459
1459
|
item: E(({ legend: e }) => [h("div", {
|
|
1460
1460
|
onClick: (t) => e.segregate(),
|
|
1461
1461
|
style: b(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
|
|
1462
1462
|
}, Ke(e.display), 13, xt)]),
|
|
1463
|
-
legendToggle: E(() => [Y.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !T(
|
|
1463
|
+
legendToggle: E(() => [Y.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !T(tn) ? (x(), f(Oe, {
|
|
1464
1464
|
key: 0,
|
|
1465
1465
|
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1466
1466
|
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
1467
1467
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
1468
1468
|
checked: K.value.length > 0,
|
|
1469
1469
|
isCursorPointer: P.value,
|
|
1470
|
-
onToggle:
|
|
1470
|
+
onToggle: Fn
|
|
1471
1471
|
}, null, 8, [
|
|
1472
1472
|
"backgroundColor",
|
|
1473
1473
|
"color",
|
|
@@ -1497,12 +1497,12 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1497
1497
|
e.$slots.source ? (x(), m("div", {
|
|
1498
1498
|
key: 7,
|
|
1499
1499
|
ref_key: "source",
|
|
1500
|
-
ref:
|
|
1500
|
+
ref: Ut,
|
|
1501
1501
|
dir: "auto"
|
|
1502
1502
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1503
|
-
ze(T(
|
|
1503
|
+
ze(T(wt), {
|
|
1504
1504
|
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1505
|
-
show: L.value.showTooltip &&
|
|
1505
|
+
show: L.value.showTooltip && Rt.value && K.value.length < D.dataset.length,
|
|
1506
1506
|
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
1507
1507
|
color: M.value.style.chart.tooltip.color,
|
|
1508
1508
|
borderRadius: M.value.style.chart.tooltip.borderRadius,
|
|
@@ -1513,20 +1513,20 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1513
1513
|
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1514
1514
|
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1515
1515
|
parent: A.value,
|
|
1516
|
-
content:
|
|
1516
|
+
content: zt.value,
|
|
1517
1517
|
isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
|
|
1518
1518
|
fontSize: M.value.style.chart.tooltip.fontSize,
|
|
1519
|
-
isFullscreen:
|
|
1519
|
+
isFullscreen: lr.value,
|
|
1520
1520
|
smooth: M.value.style.chart.tooltip.smooth,
|
|
1521
1521
|
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1522
1522
|
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
1523
1523
|
smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1524
|
-
isA11yMode:
|
|
1525
|
-
a11yPosition:
|
|
1524
|
+
isA11yMode: Qt.value === "keyboard",
|
|
1525
|
+
a11yPosition: Zt.value
|
|
1526
1526
|
}, {
|
|
1527
|
-
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", y(_({ ...
|
|
1528
|
-
tooltip: E(() => [w(e.$slots, "tooltip", y(_({ ...
|
|
1529
|
-
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", y(_({ ...
|
|
1527
|
+
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", y(_({ ...Hn.value })), void 0, !0)]),
|
|
1528
|
+
tooltip: E(() => [w(e.$slots, "tooltip", y(_({ ...Hn.value })), void 0, !0)]),
|
|
1529
|
+
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", y(_({ ...Hn.value })), void 0, !0)]),
|
|
1530
1530
|
_: 3
|
|
1531
1531
|
}, 8, [
|
|
1532
1532
|
"teleportTo",
|
|
@@ -1552,29 +1552,27 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1552
1552
|
"isA11yMode",
|
|
1553
1553
|
"a11yPosition"
|
|
1554
1554
|
]),
|
|
1555
|
-
|
|
1555
|
+
Lt.value && M.value.userOptions.buttons.table ? (x(), f(We(gr.value.component), Be({ key: 8 }, gr.value.props, {
|
|
1556
1556
|
ref_key: "tableUnit",
|
|
1557
|
-
ref:
|
|
1558
|
-
onClose:
|
|
1557
|
+
ref: Yt,
|
|
1558
|
+
onClose: _r
|
|
1559
1559
|
}), Le({
|
|
1560
|
-
content: E(() => [(x(), f(T(
|
|
1561
|
-
key: `table_${
|
|
1562
|
-
colNames:
|
|
1563
|
-
head:
|
|
1564
|
-
body:
|
|
1565
|
-
config:
|
|
1566
|
-
title: M.value.table.useDialog ? "" :
|
|
1560
|
+
content: E(() => [(x(), f(T(Et), {
|
|
1561
|
+
key: `table_${Kt.value}`,
|
|
1562
|
+
colNames: cr.value.colNames,
|
|
1563
|
+
head: cr.value.head,
|
|
1564
|
+
body: cr.value.body,
|
|
1565
|
+
config: cr.value.config,
|
|
1566
|
+
title: M.value.table.useDialog ? "" : gr.value.title,
|
|
1567
1567
|
withCloseButton: !M.value.table.useDialog,
|
|
1568
1568
|
isCursorPointer: P.value,
|
|
1569
|
-
onClose:
|
|
1569
|
+
onClose: _r
|
|
1570
1570
|
}, {
|
|
1571
|
-
th: E(({ th: e }) => [
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
}
|
|
1577
|
-
}, null, 8, St)]),
|
|
1571
|
+
th: E(({ th: e }) => [e === "__SUM__" ? (x(), m("div", St, [ze(T(Tt), {
|
|
1572
|
+
name: "sigma",
|
|
1573
|
+
stroke: cr.value.config.th.color,
|
|
1574
|
+
size: 16
|
|
1575
|
+
}, null, 8, ["stroke"])])) : (x(), m("div", Ct, Ke(e), 1))]),
|
|
1578
1576
|
td: E(({ td: e }) => [Re(Ke(e.name || e), 1)]),
|
|
1579
1577
|
_: 1
|
|
1580
1578
|
}, 8, [
|
|
@@ -1589,24 +1587,24 @@ var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1589
1587
|
_: 2
|
|
1590
1588
|
}, [M.value.table.useDialog ? {
|
|
1591
1589
|
name: "title",
|
|
1592
|
-
fn: E(() => [Re(Ke(
|
|
1590
|
+
fn: E(() => [Re(Ke(gr.value.title), 1)]),
|
|
1593
1591
|
key: "0"
|
|
1594
1592
|
} : void 0, M.value.table.useDialog ? {
|
|
1595
1593
|
name: "actions",
|
|
1596
1594
|
fn: E(() => [h("button", {
|
|
1597
1595
|
tabindex: "0",
|
|
1598
1596
|
class: "vue-ui-user-options-button",
|
|
1599
|
-
onClick: t[1] ||= (e) =>
|
|
1597
|
+
onClick: t[1] ||= (e) => sr(M.value.userOptions.callbacks.csv),
|
|
1600
1598
|
style: b({ cursor: P.value ? "pointer" : "default" })
|
|
1601
|
-
}, [ze(T(
|
|
1599
|
+
}, [ze(T(Tt), {
|
|
1602
1600
|
name: "fileCsv",
|
|
1603
|
-
stroke:
|
|
1601
|
+
stroke: gr.value.props.color
|
|
1604
1602
|
}, null, 8, ["stroke"])], 4)]),
|
|
1605
1603
|
key: "1"
|
|
1606
1604
|
} : void 0]), 1040)) : p("", !0),
|
|
1607
|
-
w(e.$slots, "skeleton", {}, () => [T(
|
|
1605
|
+
w(e.$slots, "skeleton", {}, () => [T(tn) ? (x(), f(ge, { key: 0 })) : p("", !0)], !0)
|
|
1608
1606
|
], 46, Ze));
|
|
1609
1607
|
}
|
|
1610
|
-
}, [["__scopeId", "data-v-
|
|
1608
|
+
}, [["__scopeId", "data-v-ac304f67"]]);
|
|
1611
1609
|
//#endregion
|
|
1612
|
-
export { Xe as n,
|
|
1610
|
+
export { Xe as n, wt as t };
|