vue-data-ui 3.22.6 → 3.22.7
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-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.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-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.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/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as
|
|
2
|
+
import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, S as o, Ut as ee, W as te, X as ne, at as re, b as ie, i as s, jt as c, n as ae, q as l, r as oe, t as se, ut as ce, vt as le, w as ue } from "./lib-EAmk-PgA.js";
|
|
3
|
+
import { t as de } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as fe } from "./usePrinter-DnGzpp6Q.js";
|
|
5
|
+
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as he } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-D8XqxgOU.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ve } from "./img-B_abIg0o.js";
|
|
10
|
+
import { n as ye } from "./Title-PiTKr6sp.js";
|
|
11
|
+
import { t as be } from "./Shape-CiQIxyyT.js";
|
|
12
|
+
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as Se } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as Ce } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as we } from "./BaseLegendToggle-CHnlKalt.js";
|
|
16
|
+
import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as De } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Oe } from "./labelUtils-CTDRZdP1.js";
|
|
20
|
+
import { t as ke } from "./Legend-kAr7Vqqu.js";
|
|
21
|
+
import { t as Ae } from "./vue_ui_waffle-DIARFc7g.js";
|
|
22
|
+
import { Fragment as u, Teleport as je, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Fe, nextTick as Ie, normalizeClass as Le, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Re, onMounted as ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as w, toRefs as He, unref as T, useSlots as Ue, watch as We, withCtx as E } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-waffle.vue
|
|
24
|
-
var
|
|
24
|
+
var Ge = /* @__PURE__ */ e({ default: () => ht }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"viewBox"
|
|
28
|
-
],
|
|
28
|
+
], Ze = ["id"], Qe = ["stop-color"], $e = ["stop-color"], et = ["id"], tt = [
|
|
29
29
|
"x",
|
|
30
30
|
"y",
|
|
31
31
|
"height",
|
|
32
32
|
"width"
|
|
33
|
-
],
|
|
33
|
+
], nt = ["height", "width"], rt = { key: 0 }, it = [
|
|
34
34
|
"rx",
|
|
35
35
|
"x",
|
|
36
36
|
"y",
|
|
@@ -39,7 +39,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
39
39
|
"stroke",
|
|
40
40
|
"stroke-width",
|
|
41
41
|
"filter"
|
|
42
|
-
],
|
|
42
|
+
], at = [
|
|
43
43
|
"rx",
|
|
44
44
|
"x",
|
|
45
45
|
"y",
|
|
@@ -49,7 +49,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
49
49
|
"stroke",
|
|
50
50
|
"stroke-width",
|
|
51
51
|
"filter"
|
|
52
|
-
],
|
|
52
|
+
], ot = { key: 1 }, st = [
|
|
53
53
|
"rx",
|
|
54
54
|
"x",
|
|
55
55
|
"y",
|
|
@@ -57,14 +57,14 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
57
57
|
"width",
|
|
58
58
|
"fill",
|
|
59
59
|
"filter"
|
|
60
|
-
],
|
|
60
|
+
], ct = [
|
|
61
61
|
"textContent",
|
|
62
62
|
"x",
|
|
63
63
|
"y",
|
|
64
64
|
"font-size",
|
|
65
65
|
"fill",
|
|
66
66
|
"filter"
|
|
67
|
-
],
|
|
67
|
+
], lt = [
|
|
68
68
|
"x",
|
|
69
69
|
"y",
|
|
70
70
|
"height",
|
|
@@ -72,7 +72,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
72
72
|
"onMouseover",
|
|
73
73
|
"onMouseleave",
|
|
74
74
|
"onClick"
|
|
75
|
-
],
|
|
75
|
+
], ut = {
|
|
76
76
|
key: 0,
|
|
77
77
|
style: {
|
|
78
78
|
position: "absolute",
|
|
@@ -82,10 +82,10 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
82
82
|
},
|
|
83
83
|
"data-dom-to-png-ignore": "",
|
|
84
84
|
"aria-hidden": "true"
|
|
85
|
-
},
|
|
85
|
+
}, dt = {
|
|
86
86
|
key: 5,
|
|
87
87
|
class: "vue-data-ui-watermark"
|
|
88
|
-
},
|
|
88
|
+
}, ft = ["id"], pt = ["onClick"], mt = ["innerHTML"], ht = /*#__PURE__*/ xe({
|
|
89
89
|
__name: "vue-ui-waffle",
|
|
90
90
|
props: {
|
|
91
91
|
config: {
|
|
@@ -102,18 +102,18 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
emits: ["selectLegend", "copyAlt"],
|
|
105
|
-
setup(e, { expose:
|
|
106
|
-
let
|
|
105
|
+
setup(e, { expose: xe, emit: Ge }) {
|
|
106
|
+
let ht = g(() => import("./Tooltip-B8yYfISA.js")), gt = g(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), _t = g(() => import("./DataTable-CVF7DoZn.js")), vt = g(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), yt = g(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), bt = g(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), xt = g(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), St = g(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_waffle: Ct } = de(), { isThemeValid: wt, warnInvalidTheme: Tt } = _e(), D = e, Et = Ue(), Dt = d({
|
|
107
107
|
get() {
|
|
108
|
-
return !!
|
|
108
|
+
return !!D.dataset && D.dataset.length;
|
|
109
109
|
},
|
|
110
110
|
set(e) {
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
|
-
}),
|
|
113
|
+
}), O = x(te()), Ot = x(!1), kt = x(""), k = x(null), At = x(0), A = x(null), jt = x(null), Mt = x(null), Nt = x(null), Pt = x(null), Ft = x(0), It = x(0), Lt = x(0), Rt = x(!1), zt = x(null), Bt = x(null), Vt = x(!1), Ht = x(!1), j = x(null), Ut = x({
|
|
114
114
|
x: 0,
|
|
115
115
|
y: 0
|
|
116
|
-
}),
|
|
116
|
+
}), Wt = x("pointer"), Gt = x(!1), M = x($t()), N = d(() => M.value.userOptions.useCursorPointer), Kt = d(() => t({
|
|
117
117
|
defaultConfig: {
|
|
118
118
|
useCustomCells: !1,
|
|
119
119
|
userOptions: { show: !1 },
|
|
@@ -132,8 +132,8 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
132
132
|
} }
|
|
133
133
|
},
|
|
134
134
|
userConfig: M.value.skeletonConfig ?? {}
|
|
135
|
-
})), { loading: qt, FINAL_DATASET: Jt, manualLoading: Yt } =
|
|
136
|
-
...
|
|
135
|
+
})), { loading: qt, FINAL_DATASET: Jt, manualLoading: Yt } = pe({
|
|
136
|
+
...He(D),
|
|
137
137
|
FINAL_CONFIG: M,
|
|
138
138
|
prepareConfig: $t,
|
|
139
139
|
callback: () => {
|
|
@@ -141,7 +141,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
141
141
|
H.value = pn();
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
skeletonDataset:
|
|
144
|
+
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
145
145
|
{
|
|
146
146
|
name: "",
|
|
147
147
|
values: [1],
|
|
@@ -158,45 +158,45 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
158
158
|
color: "#CACACA"
|
|
159
159
|
}
|
|
160
160
|
],
|
|
161
|
-
skeletonConfig:
|
|
161
|
+
skeletonConfig: t({
|
|
162
162
|
defaultConfig: M.value,
|
|
163
163
|
userConfig: Kt.value
|
|
164
164
|
})
|
|
165
|
-
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } =
|
|
165
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Ee({ config: M.value }), { svgRef: P } = De({ config: M.value.style.chart.title });
|
|
166
166
|
function $t() {
|
|
167
|
-
let e =
|
|
168
|
-
userConfig:
|
|
169
|
-
defaultConfig:
|
|
170
|
-
}),
|
|
171
|
-
if (!
|
|
172
|
-
if (!
|
|
173
|
-
let
|
|
174
|
-
userConfig:
|
|
167
|
+
let e = ge({
|
|
168
|
+
userConfig: D.config,
|
|
169
|
+
defaultConfig: Ct
|
|
170
|
+
}), t = e.theme;
|
|
171
|
+
if (!t) return e;
|
|
172
|
+
if (!wt.value(e)) return Tt(e), e;
|
|
173
|
+
let n = ge({
|
|
174
|
+
userConfig: Ae[t] || D.config,
|
|
175
175
|
defaultConfig: e
|
|
176
|
-
}),
|
|
177
|
-
userConfig:
|
|
178
|
-
defaultConfig:
|
|
176
|
+
}), r = ge({
|
|
177
|
+
userConfig: D.config,
|
|
178
|
+
defaultConfig: n
|
|
179
179
|
});
|
|
180
180
|
return {
|
|
181
|
-
...
|
|
182
|
-
customPalette:
|
|
181
|
+
...r,
|
|
182
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || c
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
qt.value || (M.value = $t()), Xt.value = !M.value.userOptions.showOnChartHover, tn(),
|
|
185
|
+
We(() => D.config, (e) => {
|
|
186
|
+
qt.value || (M.value = $t()), Xt.value = !M.value.userOptions.showOnChartHover, tn(), Ft.value += 1, It.value += 1, Lt.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
187
187
|
}, { deep: !0 });
|
|
188
|
-
let F =
|
|
188
|
+
let F = Ve(null), I = Ve(null), en = d(() => !!M.value.debug);
|
|
189
189
|
function tn() {
|
|
190
|
-
if (
|
|
190
|
+
if (r(D.dataset) ? (i({
|
|
191
191
|
componentName: "VueUiWaffle",
|
|
192
192
|
type: "dataset",
|
|
193
193
|
debug: en.value
|
|
194
|
-
}),
|
|
195
|
-
|
|
194
|
+
}), Dt.value = !1, Yt.value = !0) : D.dataset.forEach((e, t) => {
|
|
195
|
+
ce({
|
|
196
196
|
datasetObject: e,
|
|
197
197
|
requiredAttributes: ["name", "values"]
|
|
198
198
|
}).forEach((e) => {
|
|
199
|
-
|
|
199
|
+
i({
|
|
200
200
|
componentName: "VueUiWaffle",
|
|
201
201
|
type: "datasetSerieAttribute",
|
|
202
202
|
property: e,
|
|
@@ -204,50 +204,50 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
204
204
|
debug: en.value
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
-
}),
|
|
208
|
-
let e =
|
|
209
|
-
let { width: e, height: t } =
|
|
210
|
-
chart:
|
|
211
|
-
title: M.value.style.chart.title.text ?
|
|
212
|
-
legend: M.value.style.chart.legend.show ?
|
|
213
|
-
source:
|
|
214
|
-
noTitle:
|
|
207
|
+
}), r(D.dataset) || (Yt.value = M.value.loading), M.value.responsive) {
|
|
208
|
+
let e = Se(() => {
|
|
209
|
+
let { width: e, height: t } = Ce({
|
|
210
|
+
chart: A.value,
|
|
211
|
+
title: M.value.style.chart.title.text ? jt.value : null,
|
|
212
|
+
legend: M.value.style.chart.legend.show ? Mt.value : null,
|
|
213
|
+
source: Nt.value,
|
|
214
|
+
noTitle: Pt.value
|
|
215
215
|
});
|
|
216
216
|
requestAnimationFrame(() => {
|
|
217
217
|
R.value.width = e, R.value.height = t, z.value.width = e, z.value.height = t;
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
|
-
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value =
|
|
220
|
+
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = A.value.parentNode, F.value.observe(I.value);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}),
|
|
223
|
+
ze(() => {
|
|
224
|
+
Rt.value = !0, tn();
|
|
225
|
+
}), Re(() => {
|
|
226
226
|
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect());
|
|
227
227
|
});
|
|
228
|
-
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } =
|
|
229
|
-
elementId: `vue-ui-waffle_${
|
|
228
|
+
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = fe({
|
|
229
|
+
elementId: `vue-ui-waffle_${O.value}`,
|
|
230
230
|
fileName: M.value.style.chart.title.text || "vue-ui-waffle",
|
|
231
231
|
options: M.value.userOptions.print
|
|
232
|
-
}), sn =
|
|
232
|
+
}), sn = d(() => M.value.userOptions.show && !M.value.style.chart.title.text), cn = d(() => o(M.value.customPalette)), L = x({
|
|
233
233
|
showTable: M.value.table.show,
|
|
234
234
|
showTooltip: M.value.style.chart.tooltip.show
|
|
235
235
|
});
|
|
236
|
-
|
|
236
|
+
We(M, () => {
|
|
237
237
|
L.value = {
|
|
238
238
|
showTable: M.value.table.show,
|
|
239
239
|
showTooltip: M.value.style.chart.tooltip.show
|
|
240
240
|
};
|
|
241
241
|
}, { immediate: !0 });
|
|
242
|
-
let R =
|
|
242
|
+
let R = x({
|
|
243
243
|
height: 512,
|
|
244
244
|
width: 512
|
|
245
|
-
}), z =
|
|
245
|
+
}), z = x({
|
|
246
246
|
top: 0,
|
|
247
247
|
left: 0,
|
|
248
248
|
height: 512,
|
|
249
249
|
width: 512
|
|
250
|
-
}), B =
|
|
250
|
+
}), 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), ln = d(() => Math.max(1e-4, z.value.width / M.value.style.chart.layout.grid.size)), un = d(() => Math.max(1e-4, z.value.height / M.value.style.chart.layout.grid.size));
|
|
251
251
|
function dn(e) {
|
|
252
252
|
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);
|
|
253
253
|
for (; o > 0;) {
|
|
@@ -256,23 +256,23 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
256
256
|
}
|
|
257
257
|
return i;
|
|
258
258
|
}
|
|
259
|
-
let fn =
|
|
259
|
+
let fn = x(!1);
|
|
260
260
|
function pn() {
|
|
261
|
-
return fn.value = Jt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Jt.value.map((e,
|
|
261
|
+
return fn.value = Jt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Jt.value.map((e, t) => ({
|
|
262
262
|
...e,
|
|
263
|
-
color:
|
|
264
|
-
uid: `serie_${
|
|
265
|
-
absoluteIndex:
|
|
263
|
+
color: ie(e.color) || cn.value[t] || c[t] || c[t % c.length],
|
|
264
|
+
uid: `serie_${t}`,
|
|
265
|
+
absoluteIndex: t
|
|
266
266
|
}));
|
|
267
267
|
}
|
|
268
|
-
let mn =
|
|
269
|
-
|
|
268
|
+
let mn = d(() => pn()), H = x(mn.value);
|
|
269
|
+
We(() => D.dataset, (e) => {
|
|
270
270
|
Array.isArray(e) && e.length > 0 && (Yt.value = !1);
|
|
271
|
-
}, { immediate: !0 }),
|
|
271
|
+
}, { immediate: !0 }), We(() => D.dataset, (e) => {
|
|
272
272
|
H.value = pn();
|
|
273
273
|
}, { deep: !0 });
|
|
274
|
-
let hn =
|
|
275
|
-
[null, void 0].includes(e.values) &&
|
|
274
|
+
let hn = d(() => dn(H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => fn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), gn = d(() => dn(H.value.map((e, t) => fn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), U = d(() => (Jt.value.forEach((e, t) => {
|
|
275
|
+
[null, void 0].includes(e.values) && i({
|
|
276
276
|
componentName: "VueUiWaffle",
|
|
277
277
|
type: "datasetSerieAttribute",
|
|
278
278
|
property: "values (number[])",
|
|
@@ -286,7 +286,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
286
286
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
287
287
|
absoluteValues: e.values || [],
|
|
288
288
|
proportion: hn.value[t]
|
|
289
|
-
})))), _n =
|
|
289
|
+
})))), _n = d(() => H.value.map((e, t) => ({
|
|
290
290
|
absoluteIndex: e.absoluteIndex,
|
|
291
291
|
uid: e.uid,
|
|
292
292
|
name: e.name,
|
|
@@ -303,7 +303,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
303
303
|
proportion: e.proportion
|
|
304
304
|
}));
|
|
305
305
|
}
|
|
306
|
-
let yn =
|
|
306
|
+
let yn = d(() => {
|
|
307
307
|
let e = 0;
|
|
308
308
|
return U.value.map((t, n) => {
|
|
309
309
|
let r = e, i = r + t.proportion, a = [];
|
|
@@ -314,7 +314,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
314
314
|
rects: a
|
|
315
315
|
};
|
|
316
316
|
});
|
|
317
|
-
}), W =
|
|
317
|
+
}), W = d(() => yn.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
318
318
|
isFirst: r === 0,
|
|
319
319
|
isLongEnough: n.length > 2,
|
|
320
320
|
name: e.name,
|
|
@@ -327,7 +327,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
327
327
|
}))).map((e, t) => ({
|
|
328
328
|
...e,
|
|
329
329
|
isAbsoluteFirst: t % M.value.style.chart.layout.grid.size === 0
|
|
330
|
-
}))), G =
|
|
330
|
+
}))), G = d(() => {
|
|
331
331
|
let e = [];
|
|
332
332
|
for (let t = 0; t < M.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < M.value.style.chart.layout.grid.size; n += 1) e.push({
|
|
333
333
|
isStartOfLine: n === 0,
|
|
@@ -336,7 +336,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
336
336
|
y: (M.value.style.chart.layout.grid.vertical ? n : t) * (V.value + M.value.style.chart.layout.grid.spaceBetween) + z.value.top
|
|
337
337
|
});
|
|
338
338
|
return e;
|
|
339
|
-
}), K =
|
|
339
|
+
}), K = x([]), bn = x(!1), xn = x(Object.create(null)), Sn = x(Object.create(null)), Cn = x(0);
|
|
340
340
|
function wn(e, t) {
|
|
341
341
|
H.value = H.value.map((n) => n.uid === e ? {
|
|
342
342
|
...n,
|
|
@@ -437,7 +437,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
437
437
|
t !== null && (K.value.includes(t.uid) || q(t.uid));
|
|
438
438
|
}
|
|
439
439
|
function Mn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
440
|
-
return
|
|
440
|
+
return Oe({
|
|
441
441
|
config: i,
|
|
442
442
|
val: e,
|
|
443
443
|
percentage: t,
|
|
@@ -445,19 +445,19 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
445
445
|
showPercentage: r
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
let J =
|
|
449
|
-
let
|
|
448
|
+
let J = d(() => H.value.map((e, t) => {
|
|
449
|
+
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);
|
|
450
450
|
return {
|
|
451
451
|
name: e.name,
|
|
452
|
-
color: e.color || cn[
|
|
453
|
-
value:
|
|
454
|
-
proportion:
|
|
452
|
+
color: e.color || cn[t] || c[t] || c[t % c.length],
|
|
453
|
+
value: n,
|
|
454
|
+
proportion: r,
|
|
455
455
|
uid: e.uid,
|
|
456
456
|
shape: "square"
|
|
457
457
|
};
|
|
458
458
|
}).map((e, t) => {
|
|
459
459
|
let n = Mn({
|
|
460
|
-
val:
|
|
460
|
+
val: s(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, l({
|
|
461
461
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
462
462
|
v: e.value,
|
|
463
463
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -466,7 +466,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
466
466
|
datapoint: e,
|
|
467
467
|
index: t
|
|
468
468
|
}),
|
|
469
|
-
percentage: isNaN(e.value / Y.value) ? "-" :
|
|
469
|
+
percentage: isNaN(e.value / Y.value) ? "-" : l({
|
|
470
470
|
v: e.value / Y.value * 100,
|
|
471
471
|
s: "%",
|
|
472
472
|
r: M.value.style.chart.legend.roundingPercentage
|
|
@@ -482,14 +482,14 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
482
482
|
isSegregated: K.value.includes(e.uid),
|
|
483
483
|
display: `${e.name}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
484
484
|
};
|
|
485
|
-
})), Nn =
|
|
485
|
+
})), Nn = d(() => ({
|
|
486
486
|
cy: "waffle-div-legend",
|
|
487
487
|
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
488
488
|
color: M.value.style.chart.legend.color,
|
|
489
489
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
490
490
|
paddingBottom: 12,
|
|
491
491
|
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
492
|
-
})), Y =
|
|
492
|
+
})), Y = d(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Pn = x(null), Fn = x(null), X = d(() => {
|
|
493
493
|
let e = /* @__PURE__ */ new Map();
|
|
494
494
|
return W.value.forEach((t, n) => {
|
|
495
495
|
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
@@ -523,13 +523,13 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
523
523
|
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
524
524
|
datapoint: t,
|
|
525
525
|
seriesIndex: t.serieIndex
|
|
526
|
-
}), Fn.value = null,
|
|
526
|
+
}), Fn.value = null, Ot.value = !1, k.value = null, j.value = null, Wt.value = "pointer";
|
|
527
527
|
}
|
|
528
528
|
function Bn(e, t = "pointer") {
|
|
529
|
-
if (K.value.length ===
|
|
529
|
+
if (K.value.length === D.dataset.length) return;
|
|
530
530
|
let n = W.value[e];
|
|
531
531
|
if (!n) return;
|
|
532
|
-
|
|
532
|
+
Wt.value = t, j.value = n.serieIndex, Pn.value = {
|
|
533
533
|
datapoint: n,
|
|
534
534
|
seriesIndex: n.absoluteIndex,
|
|
535
535
|
series: H.value,
|
|
@@ -537,14 +537,14 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
537
537
|
}, M.value.events.datapointEnter && Fn.value !== n.serieIndex && M.value.events.datapointEnter({
|
|
538
538
|
datapoint: n,
|
|
539
539
|
seriesIndex: n.serieIndex
|
|
540
|
-
}), Fn.value = n.serieIndex,
|
|
540
|
+
}), Fn.value = n.serieIndex, Ot.value = !0, k.value = n.serieIndex;
|
|
541
541
|
let r = M.value.style.chart.tooltip.customFormat;
|
|
542
|
-
if (
|
|
542
|
+
if (le(r) && re(() => r({
|
|
543
543
|
seriesIndex: n.absoluteIndex,
|
|
544
544
|
datapoint: n,
|
|
545
545
|
series: H.value,
|
|
546
546
|
config: M.value
|
|
547
|
-
})))
|
|
547
|
+
}))) kt.value = r({
|
|
548
548
|
seriesIndex: n.absoluteIndex,
|
|
549
549
|
datapoint: n,
|
|
550
550
|
series: H.value,
|
|
@@ -552,11 +552,11 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
552
552
|
});
|
|
553
553
|
else {
|
|
554
554
|
let e = "";
|
|
555
|
-
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}" />${
|
|
555
|
+
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}" />${Et.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>${Mn({
|
|
556
556
|
config: M.value.style.chart.tooltip,
|
|
557
557
|
showVal: M.value.style.chart.tooltip.showValue,
|
|
558
558
|
showPercentage: M.value.style.chart.tooltip.showPercentage,
|
|
559
|
-
val: `<span>${
|
|
559
|
+
val: `<span>${s(M.value.style.chart.layout.labels.dataLabels.formatter, n.value, l({
|
|
560
560
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
561
561
|
v: n.value,
|
|
562
562
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -566,15 +566,15 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
566
566
|
seriesIndex: n.absoluteIndex,
|
|
567
567
|
series: H.value
|
|
568
568
|
})}</span>`,
|
|
569
|
-
percentage: `<span>${
|
|
569
|
+
percentage: `<span>${l({
|
|
570
570
|
v: fn.value ? 1 / Jt.value.length * 100 : n.value / Y.value * 100,
|
|
571
571
|
s: "%",
|
|
572
572
|
r: M.value.style.chart.tooltip.roundingPercentage
|
|
573
573
|
})}</span>`
|
|
574
|
-
})}</b></div>`,
|
|
574
|
+
})}</b></div>`, kt.value = e;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
let Vn =
|
|
577
|
+
let Vn = Ge, Z = d(() => ({
|
|
578
578
|
head: U.value.map((e) => ({
|
|
579
579
|
name: e.name,
|
|
580
580
|
color: e.color
|
|
@@ -582,13 +582,13 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
582
582
|
body: U.value.map((e) => e.value)
|
|
583
583
|
}));
|
|
584
584
|
function Hn(e) {
|
|
585
|
-
return M.value.useBlurOnHover && ![null, void 0].includes(
|
|
585
|
+
return M.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== e ? `url(#blur_${O.value})` : "";
|
|
586
586
|
}
|
|
587
587
|
function Un(e, t) {
|
|
588
588
|
return M.value.style.chart.layout.labels.captions.show ? W.value.length && !bn.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;
|
|
589
589
|
}
|
|
590
590
|
function Wn(e, t = null) {
|
|
591
|
-
let n =
|
|
591
|
+
let n = s(M.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, l({
|
|
592
592
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
593
593
|
v: W.value[e].value,
|
|
594
594
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -596,11 +596,11 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
596
596
|
}), {
|
|
597
597
|
datapoint: W.value[e],
|
|
598
598
|
position: t
|
|
599
|
-
}), r =
|
|
599
|
+
}), r = l({
|
|
600
600
|
v: W.value[e].proportion,
|
|
601
601
|
s: "%",
|
|
602
602
|
r: M.value.style.chart.layout.labels.captions.roundingPercentage
|
|
603
|
-
}), i = (M.value.style.chart.layout.labels.captions.serieNameAbbreviation ?
|
|
603
|
+
}), i = (M.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ae({
|
|
604
604
|
source: W.value[e].name,
|
|
605
605
|
length: M.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
606
606
|
}) : W.value[e].name) + (M.value.style.chart.layout.labels.captions.showPercentage || M.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
@@ -613,12 +613,12 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
613
613
|
})}`;
|
|
614
614
|
}
|
|
615
615
|
function Gn(e = null) {
|
|
616
|
-
|
|
616
|
+
Ie(() => {
|
|
617
617
|
let t = Z.value.head.map((e, t) => [
|
|
618
618
|
[e.name],
|
|
619
619
|
[Z.value.body[t]],
|
|
620
620
|
[isNaN(Z.value.body[t] / Y.value) ? "-" : Z.value.body[t] / Y.value * 100]
|
|
621
|
-
]), n =
|
|
621
|
+
]), n = ue([
|
|
622
622
|
[M.value.style.chart.title.text],
|
|
623
623
|
[M.value.style.chart.title.subtitle.text],
|
|
624
624
|
[
|
|
@@ -633,10 +633,10 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
633
633
|
});
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
let Q =
|
|
636
|
+
let Q = d(() => ({
|
|
637
637
|
head: [
|
|
638
638
|
" <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>",
|
|
639
|
-
|
|
639
|
+
s(M.value.style.chart.layout.labels.dataLabels.formatter, Y.value, l({
|
|
640
640
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
641
641
|
v: Y.value,
|
|
642
642
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -649,13 +649,13 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
649
649
|
color: e.color,
|
|
650
650
|
name: e.name
|
|
651
651
|
},
|
|
652
|
-
|
|
652
|
+
s(M.value.style.chart.layout.labels.dataLabels.formatter, Z.value.body[t], l({
|
|
653
653
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
654
654
|
v: Z.value.body[t],
|
|
655
655
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
656
656
|
r: M.value.table.td.roundingValue
|
|
657
657
|
})),
|
|
658
|
-
isNaN(Z.value.body[t] / Y.value) ? "-" :
|
|
658
|
+
isNaN(Z.value.body[t] / Y.value) ? "-" : l({
|
|
659
659
|
v: Z.value.body[t] / Y.value * 100,
|
|
660
660
|
s: "%",
|
|
661
661
|
r: M.value.table.td.roundingPercentage
|
|
@@ -680,9 +680,9 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
680
680
|
M.value.table.columnNames.value,
|
|
681
681
|
M.value.table.columnNames.percentage
|
|
682
682
|
]
|
|
683
|
-
})), $ =
|
|
683
|
+
})), $ = x(!1);
|
|
684
684
|
function Kn(e) {
|
|
685
|
-
$.value = e,
|
|
685
|
+
$.value = e, At.value += 1;
|
|
686
686
|
}
|
|
687
687
|
function qn() {
|
|
688
688
|
L.value.showTable = !L.value.showTable;
|
|
@@ -690,14 +690,14 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
690
690
|
function Jn() {
|
|
691
691
|
L.value.showTooltip = !L.value.showTooltip;
|
|
692
692
|
}
|
|
693
|
-
let Yn =
|
|
693
|
+
let Yn = x(!1);
|
|
694
694
|
function Xn() {
|
|
695
695
|
Yn.value = !Yn.value;
|
|
696
696
|
}
|
|
697
697
|
async function Zn({ scale: e = 2 } = {}) {
|
|
698
|
-
if (!
|
|
699
|
-
let { width: t, height: n } =
|
|
700
|
-
domElement:
|
|
698
|
+
if (!A.value) return;
|
|
699
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
700
|
+
domElement: A.value,
|
|
701
701
|
base64: !0,
|
|
702
702
|
img: !0,
|
|
703
703
|
scale: e
|
|
@@ -711,10 +711,10 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
711
711
|
aspectRatio: r
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
let Qn =
|
|
714
|
+
let Qn = d(() => {
|
|
715
715
|
let e = M.value.table.useDialog && !M.value.table.show, t = L.value.showTable;
|
|
716
716
|
return {
|
|
717
|
-
component: e ?
|
|
717
|
+
component: e ? St : vt,
|
|
718
718
|
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
719
719
|
props: e ? {
|
|
720
720
|
backgroundColor: M.value.table.th.backgroundColor,
|
|
@@ -722,7 +722,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
722
722
|
headerColor: M.value.table.th.color,
|
|
723
723
|
headerBg: M.value.table.th.backgroundColor,
|
|
724
724
|
isFullscreen: $.value,
|
|
725
|
-
fullscreenParent:
|
|
725
|
+
fullscreenParent: A.value,
|
|
726
726
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
727
727
|
isCursorPointer: N.value
|
|
728
728
|
} : {
|
|
@@ -742,24 +742,24 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
744
|
});
|
|
745
|
-
|
|
746
|
-
M.value.table.show || (e && M.value.table.useDialog &&
|
|
745
|
+
We(() => L.value.showTable, (e) => {
|
|
746
|
+
M.value.table.show || (e && M.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
|
|
747
747
|
});
|
|
748
748
|
function $n() {
|
|
749
|
-
L.value.showTable = !1,
|
|
749
|
+
L.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
|
|
750
750
|
}
|
|
751
|
-
let er =
|
|
751
|
+
let er = d(() => J.value.map((e) => ({
|
|
752
752
|
...e,
|
|
753
753
|
name: e.display
|
|
754
|
-
}))), tr =
|
|
754
|
+
}))), tr = d(() => M.value.style.chart.backgroundColor), nr = d(() => M.value.style.chart.legend), { exportSvg: rr, getSvg: ir } = he({
|
|
755
755
|
svg: P,
|
|
756
|
-
title:
|
|
756
|
+
title: d(() => M.value.style.chart.title),
|
|
757
757
|
legend: nr,
|
|
758
758
|
legendItems: er,
|
|
759
759
|
backgroundColor: tr
|
|
760
760
|
});
|
|
761
761
|
async function ar({ isCb: e }) {
|
|
762
|
-
|
|
762
|
+
Ht.value = !0, await Ie();
|
|
763
763
|
try {
|
|
764
764
|
if (e) {
|
|
765
765
|
let { blob: e, url: t, text: n, dataUrl: r } = await ir();
|
|
@@ -771,16 +771,16 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
771
771
|
}));
|
|
772
772
|
} else await Promise.resolve(rr());
|
|
773
773
|
} finally {
|
|
774
|
-
|
|
774
|
+
Ht.value = !1;
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
function or(e) {
|
|
778
778
|
if (e?.stage === "start") {
|
|
779
|
-
|
|
779
|
+
Vt.value = !0;
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
782
|
if (e?.stage === "end") {
|
|
783
|
-
|
|
783
|
+
Vt.value = !1;
|
|
784
784
|
return;
|
|
785
785
|
}
|
|
786
786
|
on();
|
|
@@ -799,27 +799,27 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
799
799
|
}));
|
|
800
800
|
}
|
|
801
801
|
function cr() {
|
|
802
|
-
|
|
802
|
+
j.value = null, Gt.value = !0;
|
|
803
803
|
}
|
|
804
804
|
function lr() {
|
|
805
|
-
|
|
805
|
+
j.value = null, Wt.value = "pointer", Ot.value = !1, k.value = null, Fn.value = null, Gt.value = !1;
|
|
806
806
|
}
|
|
807
807
|
function ur(e) {
|
|
808
|
-
if (!P.value || Yn.value || document.activeElement !== P.value || !X.value.length || K.value.length ===
|
|
808
|
+
if (!P.value || Yn.value || document.activeElement !== P.value || !X.value.length || K.value.length === D.dataset.length) return;
|
|
809
809
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
810
810
|
if (!t && !n && !r && !i) return;
|
|
811
811
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
812
|
-
|
|
812
|
+
j.value = null, Wt.value = "pointer", Ot.value = !1, k.value = null, Fn.value = null;
|
|
813
813
|
return;
|
|
814
814
|
}
|
|
815
815
|
if (r) {
|
|
816
|
-
if (
|
|
817
|
-
let e = Ln(
|
|
816
|
+
if (j.value === null) return;
|
|
817
|
+
let e = Ln(j.value);
|
|
818
818
|
if (e === null) return;
|
|
819
819
|
Rn(e);
|
|
820
820
|
return;
|
|
821
821
|
}
|
|
822
|
-
let a = X.value.findIndex((e) => e.serieIndex ===
|
|
822
|
+
let a = X.value.findIndex((e) => e.serieIndex === j.value), o = null;
|
|
823
823
|
if (o = a === -1 ? n ? X.value[0] : X.value[X.value.length - 1] : n ? X.value[(a + 1) % X.value.length] : X.value[(a - 1 + X.value.length) % X.value.length], !o) return;
|
|
824
824
|
let ee = Ln(o.serieIndex);
|
|
825
825
|
ee !== null && (dr(o.serieIndex), Bn(ee, "keyboard"));
|
|
@@ -836,17 +836,17 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
836
836
|
} : null;
|
|
837
837
|
}).filter(Boolean);
|
|
838
838
|
if (!n.length) return;
|
|
839
|
-
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)), ee = (r + i) / 2, te = (a + o) / 2,
|
|
840
|
-
|
|
841
|
-
x:
|
|
842
|
-
y:
|
|
839
|
+
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)), ee = (r + i) / 2, te = (a + o) / 2, ne = P.value.getBoundingClientRect();
|
|
840
|
+
Ut.value = {
|
|
841
|
+
x: ne.left + ee / R.value.width * ne.width,
|
|
842
|
+
y: ne.top + te / R.value.height * ne.height
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
let fr =
|
|
845
|
+
let fr = d(() => ({
|
|
846
846
|
headers: Q.value?.colNames ?? [],
|
|
847
847
|
rows: Q.value?.body ?? []
|
|
848
848
|
}));
|
|
849
|
-
return
|
|
849
|
+
return xe({
|
|
850
850
|
getData: vn,
|
|
851
851
|
getImage: Zn,
|
|
852
852
|
generatePdf: an,
|
|
@@ -860,22 +860,22 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
860
860
|
toggleAnnotator: Xn,
|
|
861
861
|
toggleFullscreen: Kn,
|
|
862
862
|
copyAlt: sr
|
|
863
|
-
}), (e, t) => (
|
|
864
|
-
class:
|
|
863
|
+
}), (e, t) => (b(), m("div", {
|
|
864
|
+
class: Le(`vue-data-ui-component vue-ui-waffle ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
865
865
|
ref_key: "waffleChart",
|
|
866
|
-
ref:
|
|
867
|
-
id: `vue-ui-waffle_${
|
|
868
|
-
style:
|
|
869
|
-
onMouseenter: t[2] ||= () =>
|
|
870
|
-
onMouseleave: t[3] ||= () =>
|
|
866
|
+
ref: A,
|
|
867
|
+
id: `vue-ui-waffle_${O.value}`,
|
|
868
|
+
style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
869
|
+
onMouseenter: t[2] ||= () => T(Zt)(!0),
|
|
870
|
+
onMouseleave: t[3] ||= () => T(Zt)(!1)
|
|
871
871
|
}, [
|
|
872
|
-
|
|
873
|
-
id: `chart-instructions-${
|
|
872
|
+
h("div", {
|
|
873
|
+
id: `chart-instructions-${O.value}`,
|
|
874
874
|
class: "sr-only"
|
|
875
|
-
}, [
|
|
876
|
-
fr.value?.rows?.length ? (
|
|
875
|
+
}, [h("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
876
|
+
fr.value?.rows?.length ? (b(), f(Te, {
|
|
877
877
|
key: 0,
|
|
878
|
-
uid:
|
|
878
|
+
uid: O.value,
|
|
879
879
|
head: fr.value.headers,
|
|
880
880
|
body: fr.value.rows,
|
|
881
881
|
notice: M.value.a11y.translations.tableAvailable,
|
|
@@ -886,22 +886,22 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
886
886
|
"body",
|
|
887
887
|
"notice",
|
|
888
888
|
"caption"
|
|
889
|
-
])) :
|
|
890
|
-
M.value.userOptions.buttons.annotator ? (
|
|
889
|
+
])) : p("", !0),
|
|
890
|
+
M.value.userOptions.buttons.annotator ? (b(), f(T(bt), {
|
|
891
891
|
key: 1,
|
|
892
|
-
svgRef:
|
|
892
|
+
svgRef: T(P),
|
|
893
893
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
894
894
|
color: M.value.style.chart.color,
|
|
895
895
|
active: Yn.value,
|
|
896
896
|
isCursorPointer: N.value,
|
|
897
897
|
onClose: Xn
|
|
898
898
|
}, {
|
|
899
|
-
"annotator-action-close":
|
|
900
|
-
"annotator-action-color":
|
|
901
|
-
"annotator-action-draw":
|
|
902
|
-
"annotator-action-undo":
|
|
903
|
-
"annotator-action-redo":
|
|
904
|
-
"annotator-action-delete":
|
|
899
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
900
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
901
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
|
|
902
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
|
|
903
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
|
|
904
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
|
|
905
905
|
_: 3
|
|
906
906
|
}, 8, [
|
|
907
907
|
"svgRef",
|
|
@@ -909,21 +909,21 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
909
909
|
"color",
|
|
910
910
|
"active",
|
|
911
911
|
"isCursorPointer"
|
|
912
|
-
])) :
|
|
913
|
-
sn.value ? (
|
|
912
|
+
])) : p("", !0),
|
|
913
|
+
sn.value ? (b(), m("div", {
|
|
914
914
|
key: 2,
|
|
915
915
|
ref_key: "noTitle",
|
|
916
|
-
ref:
|
|
916
|
+
ref: Pt,
|
|
917
917
|
class: "vue-data-ui-no-title-space",
|
|
918
918
|
style: "height:36px; width: 100%;background:transparent"
|
|
919
|
-
}, null, 512)) :
|
|
920
|
-
M.value.style.chart.title.text ? (
|
|
919
|
+
}, null, 512)) : p("", !0),
|
|
920
|
+
M.value.style.chart.title.text ? (b(), m("div", {
|
|
921
921
|
key: 3,
|
|
922
922
|
ref_key: "chartTitle",
|
|
923
|
-
ref:
|
|
923
|
+
ref: jt,
|
|
924
924
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
925
|
-
}, [(
|
|
926
|
-
key: `title_${
|
|
925
|
+
}, [(b(), f(ye, {
|
|
926
|
+
key: `title_${Ft.value}`,
|
|
927
927
|
config: {
|
|
928
928
|
title: {
|
|
929
929
|
cy: "waffle-title",
|
|
@@ -934,17 +934,17 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
934
934
|
...M.value.style.chart.title.subtitle
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
}, null, 8, ["config"]))], 512)) :
|
|
938
|
-
|
|
939
|
-
M.value.userOptions.show &&
|
|
937
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
938
|
+
h("div", { id: `legend-top-${O.value}` }, null, 8, Je),
|
|
939
|
+
M.value.userOptions.show && Dt.value && (T(Qt) || T(Xt)) ? (b(), f(T(yt), {
|
|
940
940
|
ref_key: "userOptionsRef",
|
|
941
|
-
ref:
|
|
942
|
-
key: `user_options_${
|
|
941
|
+
ref: Bt,
|
|
942
|
+
key: `user_options_${At.value}`,
|
|
943
943
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
944
944
|
color: M.value.style.chart.color,
|
|
945
|
-
isPrinting:
|
|
946
|
-
isImaging:
|
|
947
|
-
uid:
|
|
945
|
+
isPrinting: T(nn),
|
|
946
|
+
isImaging: T(rn),
|
|
947
|
+
uid: O.value,
|
|
948
948
|
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
949
949
|
hasPdf: M.value.userOptions.buttons.pdf,
|
|
950
950
|
hasImg: M.value.userOptions.buttons.img,
|
|
@@ -956,7 +956,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
956
956
|
isFullscreen: $.value,
|
|
957
957
|
isTooltip: L.value.showTooltip,
|
|
958
958
|
titles: { ...M.value.userOptions.buttonTitles },
|
|
959
|
-
chartElement:
|
|
959
|
+
chartElement: A.value,
|
|
960
960
|
position: M.value.userOptions.position,
|
|
961
961
|
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
962
962
|
isAnnotation: Yn.value,
|
|
@@ -965,7 +965,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
965
965
|
tableDialog: M.value.table.useDialog,
|
|
966
966
|
isCursorPointer: N.value,
|
|
967
967
|
onToggleFullscreen: Kn,
|
|
968
|
-
onGeneratePdf:
|
|
968
|
+
onGeneratePdf: T(an),
|
|
969
969
|
onGenerateCsv: Gn,
|
|
970
970
|
onGenerateImage: or,
|
|
971
971
|
onGenerateSvg: ar,
|
|
@@ -973,11 +973,11 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
973
973
|
onToggleTooltip: Jn,
|
|
974
974
|
onToggleAnnotator: Xn,
|
|
975
975
|
onCopyAlt: sr,
|
|
976
|
-
style:
|
|
977
|
-
},
|
|
976
|
+
style: y({ visibility: T(Qt) ? T(Xt) ? "visible" : "hidden" : "visible" })
|
|
977
|
+
}, Me({ _: 2 }, [
|
|
978
978
|
e.$slots.menuIcon ? {
|
|
979
979
|
name: "menuIcon",
|
|
980
|
-
fn:
|
|
980
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
981
981
|
isOpen: t,
|
|
982
982
|
color: n
|
|
983
983
|
})), void 0, !0)]),
|
|
@@ -985,37 +985,37 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
985
985
|
} : void 0,
|
|
986
986
|
e.$slots.optionTooltip ? {
|
|
987
987
|
name: "optionTooltip",
|
|
988
|
-
fn:
|
|
988
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
989
989
|
key: "1"
|
|
990
990
|
} : void 0,
|
|
991
991
|
e.$slots.optionPdf ? {
|
|
992
992
|
name: "optionPdf",
|
|
993
|
-
fn:
|
|
993
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
994
994
|
key: "2"
|
|
995
995
|
} : void 0,
|
|
996
996
|
e.$slots.optionCsv ? {
|
|
997
997
|
name: "optionCsv",
|
|
998
|
-
fn:
|
|
998
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
999
999
|
key: "3"
|
|
1000
1000
|
} : void 0,
|
|
1001
1001
|
e.$slots.optionImg ? {
|
|
1002
1002
|
name: "optionImg",
|
|
1003
|
-
fn:
|
|
1003
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1004
1004
|
key: "4"
|
|
1005
1005
|
} : void 0,
|
|
1006
1006
|
e.$slots.optionSvg ? {
|
|
1007
1007
|
name: "optionSvg",
|
|
1008
|
-
fn:
|
|
1008
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1009
1009
|
key: "5"
|
|
1010
1010
|
} : void 0,
|
|
1011
1011
|
e.$slots.optionTable ? {
|
|
1012
1012
|
name: "optionTable",
|
|
1013
|
-
fn:
|
|
1013
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1014
1014
|
key: "6"
|
|
1015
1015
|
} : void 0,
|
|
1016
1016
|
e.$slots.optionFullscreen ? {
|
|
1017
1017
|
name: "optionFullscreen",
|
|
1018
|
-
fn:
|
|
1018
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
|
|
1019
1019
|
toggleFullscreen: t,
|
|
1020
1020
|
isFullscreen: n
|
|
1021
1021
|
})), void 0, !0)]),
|
|
@@ -1023,7 +1023,7 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1023
1023
|
} : void 0,
|
|
1024
1024
|
e.$slots.optionAnnotator ? {
|
|
1025
1025
|
name: "optionAnnotator",
|
|
1026
|
-
fn:
|
|
1026
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
|
|
1027
1027
|
toggleAnnotator: t,
|
|
1028
1028
|
isAnnotator: n
|
|
1029
1029
|
})), void 0, !0)]),
|
|
@@ -1031,71 +1031,71 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1031
1031
|
} : void 0,
|
|
1032
1032
|
e.$slots.optionAltCopy ? {
|
|
1033
1033
|
name: "optionAltCopy",
|
|
1034
|
-
fn:
|
|
1034
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
|
|
1035
1035
|
key: "9"
|
|
1036
1036
|
} : void 0,
|
|
1037
1037
|
e.$slots["custom-menu-before"] ? {
|
|
1038
1038
|
name: "custom-menu-before",
|
|
1039
|
-
fn:
|
|
1039
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1040
1040
|
key: "10"
|
|
1041
1041
|
} : void 0,
|
|
1042
1042
|
e.$slots["custom-menu-after"] ? {
|
|
1043
1043
|
name: "custom-menu-after",
|
|
1044
|
-
fn:
|
|
1044
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1045
1045
|
key: "11"
|
|
1046
1046
|
} : void 0
|
|
1047
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1048
|
-
|
|
1047
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
1048
|
+
h("div", Ye, [(b(), m("svg", {
|
|
1049
1049
|
ref_key: "svgRef",
|
|
1050
1050
|
ref: P,
|
|
1051
|
-
xmlns:
|
|
1052
|
-
"aria-describedby": `chart-instructions-${
|
|
1053
|
-
class:
|
|
1051
|
+
xmlns: T(se),
|
|
1052
|
+
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1053
|
+
class: Le({
|
|
1054
1054
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1055
1055
|
"vue-data-ui-fulscreen--off": !$.value
|
|
1056
1056
|
}),
|
|
1057
1057
|
tabindex: "0",
|
|
1058
1058
|
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1059
|
-
style:
|
|
1059
|
+
style: y(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1060
1060
|
onFocus: cr,
|
|
1061
1061
|
onBlur: lr,
|
|
1062
1062
|
onKeydown: ur
|
|
1063
1063
|
}, [
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
Pe(T(xt)),
|
|
1065
|
+
h("defs", null, [(b(!0), m(u, null, S(W.value, (e, t) => (b(), m("radialGradient", {
|
|
1066
1066
|
cx: "50%",
|
|
1067
1067
|
cy: "50%",
|
|
1068
1068
|
r: "50%",
|
|
1069
1069
|
fx: "50%",
|
|
1070
1070
|
fy: "50%",
|
|
1071
|
-
id: `gradient_${
|
|
1072
|
-
}, [
|
|
1071
|
+
id: `gradient_${O.value}_${t}`
|
|
1072
|
+
}, [h("stop", {
|
|
1073
1073
|
offset: "0%",
|
|
1074
|
-
"stop-color":
|
|
1075
|
-
}, null, 8,
|
|
1074
|
+
"stop-color": T(n)(T(a)(e.color, .05), 100 - M.value.style.chart.layout.rect.gradientIntensity)
|
|
1075
|
+
}, null, 8, Qe), h("stop", {
|
|
1076
1076
|
offset: "100%",
|
|
1077
1077
|
"stop-color": e.color
|
|
1078
|
-
}, null, 8,
|
|
1079
|
-
|
|
1080
|
-
id: `blur_${
|
|
1078
|
+
}, null, 8, $e)], 8, Ze))), 256))]),
|
|
1079
|
+
h("defs", null, [h("filter", {
|
|
1080
|
+
id: `blur_${O.value}`,
|
|
1081
1081
|
x: "-50%",
|
|
1082
1082
|
y: "-50%",
|
|
1083
1083
|
width: "200%",
|
|
1084
1084
|
height: "200%"
|
|
1085
|
-
}, [...t[4] ||= [
|
|
1085
|
+
}, [...t[4] ||= [h("feGaussianBlur", {
|
|
1086
1086
|
in: "SourceGraphic",
|
|
1087
1087
|
stdDeviation: 2
|
|
1088
|
-
}, null, -1),
|
|
1088
|
+
}, null, -1), h("feColorMatrix", {
|
|
1089
1089
|
type: "saturate",
|
|
1090
1090
|
values: "0"
|
|
1091
|
-
}, null, -1)]], 8,
|
|
1092
|
-
M.value.useCustomCells && W.value.length && e.$slots.cell ? (
|
|
1091
|
+
}, null, -1)]], 8, et)]),
|
|
1092
|
+
M.value.useCustomCells && W.value.length && e.$slots.cell ? (b(!0), m(u, { key: 0 }, S(G.value, (t, n) => (b(), m("foreignObject", {
|
|
1093
1093
|
x: t.x,
|
|
1094
1094
|
y: t.y,
|
|
1095
1095
|
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1096
1096
|
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1097
1097
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
1098
|
-
}, [
|
|
1098
|
+
}, [C(e.$slots, "cell", Fe({ ref_for: !0 }, {
|
|
1099
1099
|
cell: {
|
|
1100
1100
|
...t,
|
|
1101
1101
|
color: W.value[n].color,
|
|
@@ -1103,9 +1103,9 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1103
1103
|
width: Math.max(0, B.value),
|
|
1104
1104
|
...W.value[n]
|
|
1105
1105
|
},
|
|
1106
|
-
isSelected: [null, void 0].includes(
|
|
1107
|
-
}), void 0, !0)], 8,
|
|
1108
|
-
!W.value.length && !M.value.useCustomCells ? (
|
|
1106
|
+
isSelected: [null, void 0].includes(k.value) ? !0 : W.value[n].serieIndex === k.value
|
|
1107
|
+
}), void 0, !0)], 8, tt))), 256)) : p("", !0),
|
|
1108
|
+
!W.value.length && !M.value.useCustomCells ? (b(), m("rect", {
|
|
1109
1109
|
key: 1,
|
|
1110
1110
|
x: 12,
|
|
1111
1111
|
y: 12,
|
|
@@ -1114,12 +1114,12 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1114
1114
|
rx: 3,
|
|
1115
1115
|
fill: "none",
|
|
1116
1116
|
stroke: "black"
|
|
1117
|
-
}, null, 8,
|
|
1118
|
-
e.$slots.pattern ? (
|
|
1117
|
+
}, null, 8, nt)) : W.value.length && !M.value.useCustomCells ? (b(), m(u, { key: 2 }, [
|
|
1118
|
+
e.$slots.pattern ? (b(), m("g", rt, [(b(!0), m(u, null, S(mn.value, (t) => (b(), m("defs", null, [C(e.$slots, "pattern", Fe({ ref_for: !0 }, {
|
|
1119
1119
|
seriesIndex: t.absoluteIndex,
|
|
1120
|
-
patternId: `pattern_${
|
|
1121
|
-
}), void 0, !0)]))), 256))])) :
|
|
1122
|
-
(
|
|
1120
|
+
patternId: `pattern_${O.value}_${t.absoluteIndex}`
|
|
1121
|
+
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
1122
|
+
(b(!0), m(u, null, S(G.value, (e, t) => (b(), m("rect", {
|
|
1123
1123
|
rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
|
|
1124
1124
|
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1125
1125
|
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -1129,30 +1129,30 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1129
1129
|
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1130
1130
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1131
1131
|
filter: Hn(W.value[t].serieIndex)
|
|
1132
|
-
}, null, 8,
|
|
1133
|
-
(
|
|
1132
|
+
}, null, 8, it))), 256)),
|
|
1133
|
+
(b(!0), m(u, null, S(G.value, (e, t) => (b(), m("rect", {
|
|
1134
1134
|
rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
|
|
1135
1135
|
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1136
1136
|
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1137
1137
|
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1138
1138
|
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1139
|
-
fill: M.value.style.chart.layout.rect.useGradient && M.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${
|
|
1139
|
+
fill: M.value.style.chart.layout.rect.useGradient && M.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${O.value}_${t})` : W.value[t].color,
|
|
1140
1140
|
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1141
1141
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1142
1142
|
filter: Hn(W.value[t].serieIndex)
|
|
1143
|
-
}, null, 8,
|
|
1144
|
-
e.$slots.pattern ? (
|
|
1143
|
+
}, null, 8, at))), 256)),
|
|
1144
|
+
e.$slots.pattern ? (b(), m("g", ot, [(b(!0), m(u, null, S(G.value, (e, t) => (b(), m("rect", {
|
|
1145
1145
|
rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
|
|
1146
1146
|
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1147
1147
|
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1148
1148
|
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1149
1149
|
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1150
|
-
fill: `url(#pattern_${
|
|
1150
|
+
fill: `url(#pattern_${O.value}_${W.value[t].absoluteIndex})`,
|
|
1151
1151
|
stroke: "none",
|
|
1152
1152
|
filter: Hn(W.value[t].serieIndex)
|
|
1153
|
-
}, null, 8,
|
|
1154
|
-
], 64)) :
|
|
1155
|
-
e.$slots.cellSvg ? (
|
|
1153
|
+
}, null, 8, st))), 256))])) : p("", !0)
|
|
1154
|
+
], 64)) : p("", !0),
|
|
1155
|
+
e.$slots.cellSvg ? (b(!0), m(u, { key: 3 }, S(G.value, (t, n) => (b(), m("g", null, [C(e.$slots, "cellSvg", Fe({ ref_for: !0 }, {
|
|
1156
1156
|
cell: {
|
|
1157
1157
|
...t,
|
|
1158
1158
|
color: W.value[n].color,
|
|
@@ -1160,18 +1160,18 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1160
1160
|
width: Math.max(0, B.value),
|
|
1161
1161
|
...W.value[n]
|
|
1162
1162
|
},
|
|
1163
|
-
isSelected: [null, void 0].includes(
|
|
1164
|
-
}), void 0, !0)]))), 256)) :
|
|
1165
|
-
(
|
|
1163
|
+
isSelected: [null, void 0].includes(k.value) ? !0 : W.value[n].serieIndex === k.value
|
|
1164
|
+
}), void 0, !0)]))), 256)) : p("", !0),
|
|
1165
|
+
(b(!0), m(u, null, S(G.value, (e, t) => (b(), m(u, null, [Un(t, e) ? (b(), m("text", {
|
|
1166
1166
|
key: `datalabel_${t}`,
|
|
1167
|
-
textContent:
|
|
1167
|
+
textContent: w(Wn(t, e)),
|
|
1168
1168
|
x: e.x + M.value.style.chart.layout.labels.captions.offsetX + M.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1169
1169
|
y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2 + M.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1170
1170
|
"font-size": M.value.style.chart.layout.labels.captions.fontSize,
|
|
1171
|
-
fill:
|
|
1171
|
+
fill: T(oe)(W.value[t].color),
|
|
1172
1172
|
filter: Hn(W.value[t].serieIndex)
|
|
1173
|
-
}, null, 8,
|
|
1174
|
-
(
|
|
1173
|
+
}, null, 8, ct)) : p("", !0)], 64))), 256)),
|
|
1174
|
+
(b(!0), m(u, null, S(G.value, (e, t) => (b(), m("rect", {
|
|
1175
1175
|
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1176
1176
|
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1177
1177
|
height: un.value,
|
|
@@ -1181,36 +1181,36 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1181
1181
|
onMouseover: (e) => Bn(t),
|
|
1182
1182
|
onMouseleave: (e) => zn(t),
|
|
1183
1183
|
onClick: (e) => Rn(t)
|
|
1184
|
-
}, null, 40,
|
|
1185
|
-
|
|
1184
|
+
}, null, 40, lt))), 256)),
|
|
1185
|
+
C(e.$slots, "svg", { svg: {
|
|
1186
1186
|
...R.value,
|
|
1187
|
-
isPrintingImg:
|
|
1188
|
-
isPrintingSvg:
|
|
1187
|
+
isPrintingImg: T(nn) || T(rn) || Vt.value,
|
|
1188
|
+
isPrintingSvg: Ht.value
|
|
1189
1189
|
} }, void 0, !0)
|
|
1190
|
-
], 46,
|
|
1190
|
+
], 46, Xe)), e.$slots.hint ? (b(), m("div", ut, [C(e.$slots, "hint", v(_({
|
|
1191
1191
|
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1192
1192
|
isVisible: Gt.value
|
|
1193
|
-
})), void 0, !0)])) :
|
|
1194
|
-
e.$slots.watermark ? (
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
})), void 0, !0)])) : p("", !0)]),
|
|
1194
|
+
e.$slots.watermark ? (b(), m("div", dt, [C(e.$slots, "watermark", v(_({ isPrinting: T(nn) || T(rn) || Vt.value || Ht.value })), void 0, !0)])) : p("", !0),
|
|
1195
|
+
h("div", { id: `legend-bottom-${O.value}` }, null, 8, ft),
|
|
1196
|
+
Rt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (b(), f(je, {
|
|
1197
1197
|
key: 6,
|
|
1198
|
-
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1199
|
-
}, [
|
|
1198
|
+
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1199
|
+
}, [h("div", {
|
|
1200
1200
|
ref_key: "chartLegend",
|
|
1201
|
-
ref:
|
|
1202
|
-
}, [
|
|
1203
|
-
key: `legend_${
|
|
1201
|
+
ref: Mt
|
|
1202
|
+
}, [C(e.$slots, "legend", { legend: J.value }, () => [M.value.style.chart.legend.show ? (b(), f(ke, {
|
|
1203
|
+
key: `legend_${Lt.value}`,
|
|
1204
1204
|
legendSet: J.value,
|
|
1205
1205
|
config: Nn.value,
|
|
1206
1206
|
isCursorPointer: N.value,
|
|
1207
1207
|
onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
|
|
1208
|
-
},
|
|
1209
|
-
item:
|
|
1208
|
+
}, Me({
|
|
1209
|
+
item: E(({ legend: e }) => [h("div", {
|
|
1210
1210
|
onClick: (t) => e.segregate(),
|
|
1211
|
-
style:
|
|
1212
|
-
},
|
|
1213
|
-
legendToggle:
|
|
1211
|
+
style: y(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
|
|
1212
|
+
}, w(e.display), 13, pt)]),
|
|
1213
|
+
legendToggle: E(() => [J.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !T(qt) ? (b(), f(we, {
|
|
1214
1214
|
key: 0,
|
|
1215
1215
|
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1216
1216
|
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1224,11 +1224,11 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1224
1224
|
"fontSize",
|
|
1225
1225
|
"checked",
|
|
1226
1226
|
"isCursorPointer"
|
|
1227
|
-
])) :
|
|
1227
|
+
])) : p("", !0)]),
|
|
1228
1228
|
_: 2
|
|
1229
1229
|
}, [e.$slots.pattern ? {
|
|
1230
1230
|
name: "legend-pattern",
|
|
1231
|
-
fn:
|
|
1231
|
+
fn: E(({ legend: e, index: t }) => [Pe(be, {
|
|
1232
1232
|
shape: e.shape,
|
|
1233
1233
|
radius: 30,
|
|
1234
1234
|
stroke: "none",
|
|
@@ -1236,23 +1236,23 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1236
1236
|
x: 30,
|
|
1237
1237
|
y: 30
|
|
1238
1238
|
},
|
|
1239
|
-
fill: `url(#pattern_${
|
|
1239
|
+
fill: `url(#pattern_${O.value}_${t})`
|
|
1240
1240
|
}, null, 8, ["shape", "fill"])]),
|
|
1241
1241
|
key: "0"
|
|
1242
1242
|
} : void 0]), 1032, [
|
|
1243
1243
|
"legendSet",
|
|
1244
1244
|
"config",
|
|
1245
1245
|
"isCursorPointer"
|
|
1246
|
-
])) :
|
|
1247
|
-
e.$slots.source ? (
|
|
1246
|
+
])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
|
|
1247
|
+
e.$slots.source ? (b(), m("div", {
|
|
1248
1248
|
key: 7,
|
|
1249
1249
|
ref_key: "source",
|
|
1250
|
-
ref:
|
|
1250
|
+
ref: Nt,
|
|
1251
1251
|
dir: "auto"
|
|
1252
|
-
}, [
|
|
1253
|
-
|
|
1252
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1253
|
+
Pe(T(ht), {
|
|
1254
1254
|
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1255
|
-
show: L.value.showTooltip &&
|
|
1255
|
+
show: L.value.showTooltip && Ot.value && K.value.length < D.dataset.length,
|
|
1256
1256
|
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
1257
1257
|
color: M.value.style.chart.tooltip.color,
|
|
1258
1258
|
borderRadius: M.value.style.chart.tooltip.borderRadius,
|
|
@@ -1262,8 +1262,8 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1262
1262
|
position: M.value.style.chart.tooltip.position,
|
|
1263
1263
|
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1264
1264
|
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1265
|
-
parent:
|
|
1266
|
-
content:
|
|
1265
|
+
parent: A.value,
|
|
1266
|
+
content: kt.value,
|
|
1267
1267
|
isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
|
|
1268
1268
|
fontSize: M.value.style.chart.tooltip.fontSize,
|
|
1269
1269
|
isFullscreen: $.value,
|
|
@@ -1271,12 +1271,12 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1271
1271
|
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1272
1272
|
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
1273
1273
|
smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1274
|
-
isA11yMode:
|
|
1275
|
-
a11yPosition:
|
|
1274
|
+
isA11yMode: Wt.value === "keyboard",
|
|
1275
|
+
a11yPosition: Ut.value
|
|
1276
1276
|
}, {
|
|
1277
|
-
"tooltip-before":
|
|
1278
|
-
tooltip:
|
|
1279
|
-
"tooltip-after":
|
|
1277
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...Pn.value })), void 0, !0)]),
|
|
1278
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...Pn.value })), void 0, !0)]),
|
|
1279
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(_({ ...Pn.value })), void 0, !0)]),
|
|
1280
1280
|
_: 3
|
|
1281
1281
|
}, 8, [
|
|
1282
1282
|
"teleportTo",
|
|
@@ -1302,13 +1302,13 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1302
1302
|
"isA11yMode",
|
|
1303
1303
|
"a11yPosition"
|
|
1304
1304
|
]),
|
|
1305
|
-
|
|
1305
|
+
Dt.value && M.value.userOptions.buttons.table ? (b(), f(Be(Qn.value.component), Fe({ key: 8 }, Qn.value.props, {
|
|
1306
1306
|
ref_key: "tableUnit",
|
|
1307
|
-
ref:
|
|
1307
|
+
ref: zt,
|
|
1308
1308
|
onClose: $n
|
|
1309
|
-
}),
|
|
1310
|
-
content:
|
|
1311
|
-
key: `table_${
|
|
1309
|
+
}), Me({
|
|
1310
|
+
content: E(() => [(b(), f(T(_t), {
|
|
1311
|
+
key: `table_${It.value}`,
|
|
1312
1312
|
colNames: Q.value.colNames,
|
|
1313
1313
|
head: Q.value.head,
|
|
1314
1314
|
body: Q.value.body,
|
|
@@ -1318,14 +1318,14 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1318
1318
|
isCursorPointer: N.value,
|
|
1319
1319
|
onClose: $n
|
|
1320
1320
|
}, {
|
|
1321
|
-
th:
|
|
1321
|
+
th: E(({ th: e }) => [h("div", {
|
|
1322
1322
|
innerHTML: e,
|
|
1323
1323
|
style: {
|
|
1324
1324
|
display: "flex",
|
|
1325
1325
|
"align-items": "center"
|
|
1326
1326
|
}
|
|
1327
|
-
}, null, 8,
|
|
1328
|
-
td:
|
|
1327
|
+
}, null, 8, mt)]),
|
|
1328
|
+
td: E(({ td: e }) => [Ne(w(e.name || e), 1)]),
|
|
1329
1329
|
_: 1
|
|
1330
1330
|
}, 8, [
|
|
1331
1331
|
"colNames",
|
|
@@ -1339,24 +1339,24 @@ var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1339
1339
|
_: 2
|
|
1340
1340
|
}, [M.value.table.useDialog ? {
|
|
1341
1341
|
name: "title",
|
|
1342
|
-
fn:
|
|
1342
|
+
fn: E(() => [Ne(w(Qn.value.title), 1)]),
|
|
1343
1343
|
key: "0"
|
|
1344
1344
|
} : void 0, M.value.table.useDialog ? {
|
|
1345
1345
|
name: "actions",
|
|
1346
|
-
fn:
|
|
1346
|
+
fn: E(() => [h("button", {
|
|
1347
1347
|
tabindex: "0",
|
|
1348
1348
|
class: "vue-ui-user-options-button",
|
|
1349
1349
|
onClick: t[1] ||= (e) => Gn(M.value.userOptions.callbacks.csv),
|
|
1350
|
-
style:
|
|
1351
|
-
}, [
|
|
1350
|
+
style: y({ cursor: N.value ? "pointer" : "default" })
|
|
1351
|
+
}, [Pe(T(gt), {
|
|
1352
1352
|
name: "fileCsv",
|
|
1353
1353
|
stroke: Qn.value.props.color
|
|
1354
1354
|
}, null, 8, ["stroke"])], 4)]),
|
|
1355
1355
|
key: "1"
|
|
1356
|
-
} : void 0]), 1040)) :
|
|
1357
|
-
|
|
1358
|
-
], 46,
|
|
1356
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1357
|
+
C(e.$slots, "skeleton", {}, () => [T(qt) ? (b(), f(me, { key: 0 })) : p("", !0)], !0)
|
|
1358
|
+
], 46, Ke));
|
|
1359
1359
|
}
|
|
1360
1360
|
}, [["__scopeId", "data-v-d885b96a"]]);
|
|
1361
1361
|
//#endregion
|
|
1362
|
-
export {
|
|
1362
|
+
export { Ge as n, ht as t };
|