vue-data-ui 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.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-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-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-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-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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as We, t as Lt, b as Nt, p as
|
|
1
|
+
import { defineAsyncComponent as F, useSlots as _t, ref as r, computed as h, toRefs as xt, watch as q, shallowRef as Ue, onMounted as Ot, onBeforeUnmount as At, createElementBlock as f, openBlock as i, unref as n, normalizeStyle as R, normalizeClass as G, createBlock as I, createCommentVNode as b, createElementVNode as C, createVNode as Q, withCtx as v, renderSlot as c, normalizeProps as $, guardReactiveProps as T, createSlots as ie, Fragment as ve, renderList as ce, mergeProps as ze, Teleport as Ft, toDisplayString as de, resolveDynamicComponent as It, createTextVNode as Ee, nextTick as Pt } from "vue";
|
|
2
|
+
import { c as We, t as Lt, b as Nt, p as V, o as Ge, f as he, g as Dt, e as Rt, a1 as Vt, h as He, a as je, d as B, X as Bt, s as Mt, i as Ut, x as J, P as zt, Q as Et, G as Wt, H as Gt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Ht, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Xt, a as Xe } from "./useNestedProp-
|
|
4
|
+
import { u as Xt, a as Xe } from "./useNestedProp-CReNavA0.js";
|
|
5
5
|
import { u as Yt } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as qt, B as Qt } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Jt } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,11 +9,11 @@ import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import el from "./img-BecE5qXd.js";
|
|
11
11
|
import { _ as tl } from "./Shape-CNXKB8O0.js";
|
|
12
|
-
import ll from "./Title-
|
|
12
|
+
import ll from "./Title-BzH_LEA3.js";
|
|
13
13
|
import { t as ol } from "./themes-AUNCOb2G.js";
|
|
14
14
|
import al from "./Legend-G6GMcdAc.js";
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
15
|
+
import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const sl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = ["id"], cl = ["stop-color"], dl = ["stop-color"], hl = { key: 1 }, pl = ["stroke", "cx", "cy", "r", "fill"], gl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], fl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], yl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ml = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, bl = ["id"], kl = ["onClick"], wl = ["innerHTML"], Cl = {
|
|
@@ -34,7 +34,7 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(Ye, { expose: qe, emit: Qe }) {
|
|
37
|
-
const Je =
|
|
37
|
+
const Je = F(() => import("./Tooltip-oWCO1HKy.js")), Ke = F(() => import("./BaseIcon-BmMbm4d0.js")), Ze = F(() => import("./vue-ui-accordion-BmFTVF1a.js")), et = F(() => import("./DataTable-BT7VF2ua.js")), tt = F(() => import("./PenAndPaper-SZQIAgkg.js")), lt = F(() => import("./UserOptions-CGnQt6Fd.js")), ot = F(() => import("./PackageVersion-Y7t79Jtq.js")), at = F(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_rings: nt } = Xt(), st = _t(), k = Ye, P = r(!1), pe = h(() => !!k.dataset && k.dataset.length), m = r(We()), H = r(!1), K = r(""), _ = r(null), ge = r(0), x = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), Z = r(!1), $e = r(!1), U = r(null), ee = r(null), e = r(oe()), { loading: L, FINAL_DATASET: Te, manualLoading: j } = qt({
|
|
38
38
|
...xt(k),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
40
|
prepareConfig: oe,
|
|
@@ -68,30 +68,30 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
|
-
}), { userOptionsVisible: te, setUserOptionsVisibility:
|
|
71
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: Se, keepUserOptionState: _e } = Kt({ config: e.value }), { svgRef: le } = Zt({ config: e.value.style.chart.title });
|
|
72
72
|
function oe() {
|
|
73
73
|
const t = Xe({
|
|
74
74
|
userConfig: k.config,
|
|
75
|
-
defaultConfig:
|
|
75
|
+
defaultConfig: nt
|
|
76
76
|
});
|
|
77
77
|
return t.theme ? {
|
|
78
78
|
...Xe({
|
|
79
79
|
userConfig: ol.vue_ui_rings[t.theme] || k.config,
|
|
80
80
|
defaultConfig: t
|
|
81
81
|
}),
|
|
82
|
-
customPalette: Nt[t.theme] ||
|
|
82
|
+
customPalette: Nt[t.theme] || V
|
|
83
83
|
} : t;
|
|
84
84
|
}
|
|
85
85
|
q(() => k.config, (t) => {
|
|
86
|
-
|
|
86
|
+
L.value || (e.value = oe()), te.value = !e.value.userOptions.showOnChartHover, xe(), ke.value += 1, we.value += 1, Ce.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
87
|
}, { deep: !0 }), q(() => k.dataset, (t) => {
|
|
88
88
|
Array.isArray(t) && t.length > 0 && (j.value = !1);
|
|
89
89
|
}, { deep: !0 });
|
|
90
|
-
const
|
|
90
|
+
const O = Ue(null), M = Ue(null);
|
|
91
91
|
Ot(() => {
|
|
92
92
|
$e.value = !0, xe();
|
|
93
93
|
});
|
|
94
|
-
const ae =
|
|
94
|
+
const ae = h(() => !!e.value.debug);
|
|
95
95
|
function xe() {
|
|
96
96
|
if (Ge(k.dataset) ? (he({
|
|
97
97
|
componentName: "VueUiRings",
|
|
@@ -118,7 +118,7 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
118
118
|
const t = Ht(() => {
|
|
119
119
|
Z.value = !0;
|
|
120
120
|
const { width: o, height: l } = jt({
|
|
121
|
-
chart:
|
|
121
|
+
chart: x.value,
|
|
122
122
|
title: e.value.style.chart.title.text ? fe.value : null,
|
|
123
123
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
124
124
|
source: me.value,
|
|
@@ -128,20 +128,20 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
128
128
|
u.value.width = o, u.value.height = l - 12, Z.value = !1;
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
|
-
|
|
131
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(t), M.value = x.value.parentNode, O.value.observe(M.value);
|
|
132
132
|
}
|
|
133
133
|
setTimeout(() => {
|
|
134
|
-
|
|
134
|
+
P.value = !0;
|
|
135
135
|
}, 600);
|
|
136
136
|
}
|
|
137
137
|
At(() => {
|
|
138
|
-
|
|
138
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
|
|
139
139
|
});
|
|
140
140
|
const { isPrinting: Oe, isImaging: Ae, generatePdf: Fe, generateImage: Ie } = Yt({
|
|
141
141
|
elementId: `rings_${m.value}`,
|
|
142
142
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
143
143
|
options: e.value.userOptions.print
|
|
144
|
-
}), ut =
|
|
144
|
+
}), ut = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = h(() => Rt(e.value.customPalette)), w = r({
|
|
145
145
|
showTable: e.value.table.show,
|
|
146
146
|
showTooltip: e.value.style.chart.tooltip.show
|
|
147
147
|
});
|
|
@@ -154,12 +154,12 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
154
154
|
const u = r({
|
|
155
155
|
height: 360,
|
|
156
156
|
width: 360
|
|
157
|
-
}), rt =
|
|
157
|
+
}), rt = h(() => Math.min(u.value.height, u.value.width)), it = Qe, p = r([]);
|
|
158
158
|
function z(t) {
|
|
159
159
|
if (p.value.includes(t))
|
|
160
160
|
p.value = p.value.filter((o) => o !== t);
|
|
161
161
|
else {
|
|
162
|
-
if (p.value.length ===
|
|
162
|
+
if (p.value.length === N.value.length - 1) return;
|
|
163
163
|
p.value.push(t);
|
|
164
164
|
}
|
|
165
165
|
it("selectLegend", y.value.map((o) => ({
|
|
@@ -169,9 +169,9 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
169
169
|
})));
|
|
170
170
|
}
|
|
171
171
|
function Le(t) {
|
|
172
|
-
if (!
|
|
172
|
+
if (!N.value.length)
|
|
173
173
|
return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
|
|
174
|
-
const o =
|
|
174
|
+
const o = N.value.find((l) => l.name === t);
|
|
175
175
|
return o || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
|
|
176
176
|
}
|
|
177
177
|
function vt(t) {
|
|
@@ -182,78 +182,78 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
182
182
|
const o = Le(t);
|
|
183
183
|
o !== null && (p.value.includes(o.uid) || z(o.uid));
|
|
184
184
|
}
|
|
185
|
-
const dt =
|
|
186
|
-
...
|
|
185
|
+
const dt = h(() => Math.max(
|
|
186
|
+
...N.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t)
|
|
187
187
|
));
|
|
188
188
|
function Ne(t) {
|
|
189
189
|
return t / dt.value;
|
|
190
190
|
}
|
|
191
|
-
const
|
|
192
|
-
const
|
|
191
|
+
const N = h(() => Te.value.map(({ values: t, name: o, color: l = null }, a) => {
|
|
192
|
+
const s = Vt(t).reduce((d, W) => d + W, 0);
|
|
193
193
|
return {
|
|
194
194
|
name: o,
|
|
195
|
-
color: l || He(l) || Pe.value[a] ||
|
|
196
|
-
value:
|
|
197
|
-
proportion:
|
|
195
|
+
color: l || He(l) || Pe.value[a] || V[a] || V[a % V.length],
|
|
196
|
+
value: s,
|
|
197
|
+
proportion: s / Te.value.map((d) => (d.values || []).reduce((W, St) => W + St, 0)).reduce((d, W) => d + W, 0),
|
|
198
198
|
uid: We(),
|
|
199
199
|
absoluteIndex: a
|
|
200
200
|
};
|
|
201
|
-
})),
|
|
201
|
+
})), ne = h(() => N.value.map((t, o) => ({
|
|
202
202
|
...t,
|
|
203
203
|
shape: "circle",
|
|
204
204
|
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
205
205
|
segregate: () => z(t.uid),
|
|
206
206
|
isSegregated: p.value.includes(t.uid),
|
|
207
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? je(e.value.style.chart.layout.labels.dataLabels.formatter, t.value,
|
|
207
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? je(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, B({
|
|
208
208
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
209
209
|
v: t.value,
|
|
210
210
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
211
211
|
r: e.value.style.chart.legend.roundingValue
|
|
212
|
-
}), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? p.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value /
|
|
213
|
-
})).toSorted((t, o) => o.value - t.value)), ht =
|
|
212
|
+
}), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? p.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / S.value) ? "-" : B({ v: t.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
213
|
+
})).toSorted((t, o) => o.value - t.value)), ht = h(() => ({
|
|
214
214
|
cy: "rings-div-legend",
|
|
215
215
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
216
216
|
color: e.value.style.chart.legend.color,
|
|
217
217
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
218
218
|
paddingBottom: 12,
|
|
219
219
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
220
|
-
})),
|
|
221
|
-
absoluteIndex:
|
|
220
|
+
})), S = h(() => N.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), y = h(() => N.value.filter((t) => !p.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: s }, d) => ({
|
|
221
|
+
absoluteIndex: s,
|
|
222
222
|
uid: a,
|
|
223
223
|
name: t,
|
|
224
|
-
color: l || He(l) || Pe.value[
|
|
224
|
+
color: l || He(l) || Pe.value[d] || V[d] || V[d % V.length],
|
|
225
225
|
value: o,
|
|
226
226
|
proportion: Ne(o),
|
|
227
|
-
percentage: o /
|
|
227
|
+
percentage: o / S.value * 100,
|
|
228
228
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ne(o)
|
|
229
229
|
})).toSorted((t, o) => o.value - t.value));
|
|
230
230
|
function pt() {
|
|
231
231
|
return y.value.map(
|
|
232
|
-
({ name: t, color: o, value: l, absoluteValues: a, percentage:
|
|
232
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
233
233
|
name: t,
|
|
234
234
|
color: o,
|
|
235
235
|
value: l,
|
|
236
236
|
absoluteValues: a,
|
|
237
|
-
percentage:
|
|
237
|
+
percentage: s
|
|
238
238
|
})
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
-
const g =
|
|
241
|
+
const g = h(() => rt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
242
242
|
function gt(t, o) {
|
|
243
243
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
244
244
|
}
|
|
245
245
|
function ft(t, o) {
|
|
246
|
-
|
|
246
|
+
_.value = null, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const se = r(null);
|
|
249
249
|
function yt(t, o) {
|
|
250
250
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), p.value.length === k.dataset.length) return;
|
|
251
|
-
|
|
251
|
+
se.value = {
|
|
252
252
|
datapoint: t,
|
|
253
253
|
seriesIndex: o,
|
|
254
254
|
series: y.value,
|
|
255
255
|
config: e.value
|
|
256
|
-
},
|
|
256
|
+
}, _.value = o;
|
|
257
257
|
const l = y.value[o], a = e.value.style.chart.tooltip.customFormat;
|
|
258
258
|
if (Wt(a) && Gt(() => a({
|
|
259
259
|
seriesIndex: o,
|
|
@@ -268,11 +268,11 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
268
268
|
config: e.value
|
|
269
269
|
});
|
|
270
270
|
else {
|
|
271
|
-
let
|
|
272
|
-
|
|
271
|
+
let s = "";
|
|
272
|
+
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${st.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${je(
|
|
273
273
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
274
274
|
l.value,
|
|
275
|
-
|
|
275
|
+
B({
|
|
276
276
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
277
277
|
v: l.value,
|
|
278
278
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -280,36 +280,36 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
280
280
|
}),
|
|
281
281
|
{ datapoint: t, seriesIndex: o }
|
|
282
282
|
)}
|
|
283
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
284
|
-
v: l.value /
|
|
283
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${B({
|
|
284
|
+
v: l.value / S.value * 100,
|
|
285
285
|
s: "%",
|
|
286
286
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
287
|
-
})})</span></div>` :
|
|
288
|
-
v: l.value /
|
|
287
|
+
})})</span></div>` : s += `<b>${B({
|
|
288
|
+
v: l.value / S.value * 100,
|
|
289
289
|
s: "%",
|
|
290
290
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
291
|
-
})}</b></div>`), K.value =
|
|
291
|
+
})}</b></div>`), K.value = s;
|
|
292
292
|
}
|
|
293
293
|
H.value = !0;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const A = h(() => {
|
|
296
296
|
const t = y.value.map((l) => ({
|
|
297
297
|
name: l.name,
|
|
298
298
|
color: l.color
|
|
299
299
|
})), o = y.value.map((l) => l.value);
|
|
300
300
|
return { head: t, body: o };
|
|
301
|
-
}), X =
|
|
301
|
+
}), X = h(() => {
|
|
302
302
|
const t = [
|
|
303
303
|
' <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>',
|
|
304
|
-
|
|
304
|
+
B({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
305
305
|
"100%"
|
|
306
|
-
], o =
|
|
306
|
+
], o = A.value.head.map((s, d) => [
|
|
307
307
|
{
|
|
308
|
-
color:
|
|
309
|
-
name:
|
|
308
|
+
color: s.color,
|
|
309
|
+
name: s.name
|
|
310
310
|
},
|
|
311
|
-
|
|
312
|
-
isNaN(
|
|
311
|
+
B({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
312
|
+
isNaN(A.value.body[d] / S.value) ? "-" : (A.value.body[d] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
313
313
|
]), l = {
|
|
314
314
|
th: {
|
|
315
315
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -336,15 +336,15 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
336
336
|
});
|
|
337
337
|
function ue(t = null) {
|
|
338
338
|
Pt(() => {
|
|
339
|
-
const o =
|
|
340
|
-
|
|
341
|
-
], [
|
|
339
|
+
const o = A.value.head.map((s, d) => [[
|
|
340
|
+
s.name
|
|
341
|
+
], [A.value.body[d]], [isNaN(A.value.body[d] / S.value) ? "-" : A.value.body[d] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = zt(l);
|
|
342
342
|
t ? t(a) : Et({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const D = r(!1);
|
|
346
346
|
function De(t) {
|
|
347
|
-
|
|
347
|
+
D.value = t, ge.value += 1;
|
|
348
348
|
}
|
|
349
349
|
function Re() {
|
|
350
350
|
w.value.showTable = !w.value.showTable;
|
|
@@ -357,18 +357,18 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
357
357
|
Y.value = !Y.value;
|
|
358
358
|
}
|
|
359
359
|
async function mt({ scale: t = 2 } = {}) {
|
|
360
|
-
if (!
|
|
361
|
-
const { width: o, height: l } =
|
|
360
|
+
if (!x.value) return;
|
|
361
|
+
const { width: o, height: l } = x.value.getBoundingClientRect(), a = o / l, { imageUri: s, base64: d } = await el({ domElement: x.value, base64: !0, img: !0, scale: t });
|
|
362
362
|
return {
|
|
363
|
-
imageUri:
|
|
364
|
-
base64:
|
|
363
|
+
imageUri: s,
|
|
364
|
+
base64: d,
|
|
365
365
|
title: e.value.style.chart.title.text,
|
|
366
366
|
width: o,
|
|
367
367
|
height: l,
|
|
368
368
|
aspectRatio: a
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
const E =
|
|
371
|
+
const E = h(() => {
|
|
372
372
|
const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
|
|
373
373
|
return {
|
|
374
374
|
component: t ? at : Ze,
|
|
@@ -378,8 +378,8 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
378
378
|
color: e.value.table.th.color,
|
|
379
379
|
headerColor: e.value.table.th.color,
|
|
380
380
|
headerBg: e.value.table.th.backgroundColor,
|
|
381
|
-
isFullscreen:
|
|
382
|
-
fullscreenParent:
|
|
381
|
+
isFullscreen: D.value,
|
|
382
|
+
fullscreenParent: x.value,
|
|
383
383
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
384
384
|
} : {
|
|
385
385
|
hideDetails: !0,
|
|
@@ -404,10 +404,10 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
404
404
|
function Be() {
|
|
405
405
|
w.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
406
406
|
}
|
|
407
|
-
const bt =
|
|
407
|
+
const bt = h(() => ne.value.map((t) => ({
|
|
408
408
|
...t,
|
|
409
409
|
name: t.display
|
|
410
|
-
}))), kt =
|
|
410
|
+
}))), kt = h(() => e.value.style.chart.backgroundColor), wt = h(() => e.value.style.chart.legend), Ct = h(() => e.value.style.chart.title), { exportSvg: $t, getSvg: Tt } = Jt({
|
|
411
411
|
svg: le,
|
|
412
412
|
title: Ct,
|
|
413
413
|
legend: wt,
|
|
@@ -416,8 +416,8 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
416
416
|
});
|
|
417
417
|
async function Me({ isCb: t }) {
|
|
418
418
|
if (t) {
|
|
419
|
-
const { blob: o, url: l, text: a, dataUrl:
|
|
420
|
-
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl:
|
|
419
|
+
const { blob: o, url: l, text: a, dataUrl: s } = await Tt();
|
|
420
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: s });
|
|
421
421
|
} else
|
|
422
422
|
$t();
|
|
423
423
|
}
|
|
@@ -436,23 +436,43 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
436
436
|
toggleFullscreen: De
|
|
437
437
|
}), (t, o) => (i(), f("div", {
|
|
438
438
|
ref_key: "ringsChart",
|
|
439
|
-
ref:
|
|
440
|
-
class: G(`vue-data-ui-component vue-ui-rings ${
|
|
441
|
-
style:
|
|
439
|
+
ref: x,
|
|
440
|
+
class: G(`vue-data-ui-component vue-ui-rings ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
441
|
+
style: R(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
442
442
|
id: `rings_${m.value}`,
|
|
443
443
|
onMouseleave: o[2] || (o[2] = (l) => {
|
|
444
|
-
|
|
444
|
+
_.value = null, H.value = !1, n(Se)(!1);
|
|
445
445
|
}),
|
|
446
|
-
onMouseenter: o[3] || (o[3] = () =>
|
|
446
|
+
onMouseenter: o[3] || (o[3] = () => n(Se)(!0))
|
|
447
447
|
}, [
|
|
448
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
448
|
+
e.value.userOptions.buttons.annotator ? (i(), I(n(tt), {
|
|
449
449
|
key: 0,
|
|
450
|
-
svgRef:
|
|
450
|
+
svgRef: n(le),
|
|
451
451
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
452
452
|
color: e.value.style.chart.color,
|
|
453
453
|
active: Y.value,
|
|
454
454
|
onClose: re
|
|
455
|
-
},
|
|
455
|
+
}, {
|
|
456
|
+
"annotator-action-close": v(() => [
|
|
457
|
+
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
458
|
+
]),
|
|
459
|
+
"annotator-action-color": v(({ color: l }) => [
|
|
460
|
+
c(t.$slots, "annotator-action-color", $(T({ color: l })), void 0, !0)
|
|
461
|
+
]),
|
|
462
|
+
"annotator-action-draw": v(({ mode: l }) => [
|
|
463
|
+
c(t.$slots, "annotator-action-draw", $(T({ mode: l })), void 0, !0)
|
|
464
|
+
]),
|
|
465
|
+
"annotator-action-undo": v(({ disabled: l }) => [
|
|
466
|
+
c(t.$slots, "annotator-action-undo", $(T({ disabled: l })), void 0, !0)
|
|
467
|
+
]),
|
|
468
|
+
"annotator-action-redo": v(({ disabled: l }) => [
|
|
469
|
+
c(t.$slots, "annotator-action-redo", $(T({ disabled: l })), void 0, !0)
|
|
470
|
+
]),
|
|
471
|
+
"annotator-action-delete": v(({ disabled: l }) => [
|
|
472
|
+
c(t.$slots, "annotator-action-delete", $(T({ disabled: l })), void 0, !0)
|
|
473
|
+
]),
|
|
474
|
+
_: 3
|
|
475
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
456
476
|
ut.value ? (i(), f("div", {
|
|
457
477
|
key: 1,
|
|
458
478
|
ref_key: "noTitle",
|
|
@@ -466,7 +486,7 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
466
486
|
ref: fe,
|
|
467
487
|
style: "width:100%;background:transparent"
|
|
468
488
|
}, [
|
|
469
|
-
(i(),
|
|
489
|
+
(i(), I(ll, {
|
|
470
490
|
key: `title_${ke.value}`,
|
|
471
491
|
config: {
|
|
472
492
|
title: {
|
|
@@ -483,14 +503,14 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
483
503
|
C("div", {
|
|
484
504
|
id: `legend-top-${m.value}`
|
|
485
505
|
}, null, 8, ul),
|
|
486
|
-
e.value.userOptions.show && pe.value && (
|
|
506
|
+
e.value.userOptions.show && pe.value && (n(_e) || n(te)) ? (i(), I(n(lt), {
|
|
487
507
|
ref_key: "userOptionsRef",
|
|
488
508
|
ref: ee,
|
|
489
509
|
key: `user_options_${ge.value}`,
|
|
490
510
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
491
511
|
color: e.value.style.chart.color,
|
|
492
|
-
isPrinting:
|
|
493
|
-
isImaging:
|
|
512
|
+
isPrinting: n(Oe),
|
|
513
|
+
isImaging: n(Ae),
|
|
494
514
|
uid: m.value,
|
|
495
515
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
496
516
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -500,9 +520,9 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
500
520
|
hasTable: e.value.userOptions.buttons.table,
|
|
501
521
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
502
522
|
isTooltip: w.value.showTooltip,
|
|
503
|
-
isFullscreen:
|
|
523
|
+
isFullscreen: D.value,
|
|
504
524
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
505
|
-
chartElement:
|
|
525
|
+
chartElement: x.value,
|
|
506
526
|
position: e.value.userOptions.position,
|
|
507
527
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
508
528
|
isAnnotation: Y.value,
|
|
@@ -510,77 +530,77 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
510
530
|
printScale: e.value.userOptions.print.scale,
|
|
511
531
|
tableDialog: e.value.table.useDialog,
|
|
512
532
|
onToggleFullscreen: De,
|
|
513
|
-
onGeneratePdf:
|
|
533
|
+
onGeneratePdf: n(Fe),
|
|
514
534
|
onGenerateCsv: ue,
|
|
515
|
-
onGenerateImage:
|
|
535
|
+
onGenerateImage: n(Ie),
|
|
516
536
|
onGenerateSvg: Me,
|
|
517
537
|
onToggleTable: Re,
|
|
518
538
|
onToggleTooltip: Ve,
|
|
519
539
|
onToggleAnnotator: re,
|
|
520
|
-
style:
|
|
521
|
-
visibility:
|
|
540
|
+
style: R({
|
|
541
|
+
visibility: n(_e) ? n(te) ? "visible" : "hidden" : "visible"
|
|
522
542
|
})
|
|
523
543
|
}, ie({ _: 2 }, [
|
|
524
544
|
t.$slots.menuIcon ? {
|
|
525
545
|
name: "menuIcon",
|
|
526
|
-
fn:
|
|
527
|
-
|
|
546
|
+
fn: v(({ isOpen: l, color: a }) => [
|
|
547
|
+
c(t.$slots, "menuIcon", $(T({ isOpen: l, color: a })), void 0, !0)
|
|
528
548
|
]),
|
|
529
549
|
key: "0"
|
|
530
550
|
} : void 0,
|
|
531
551
|
t.$slots.optionTooltip ? {
|
|
532
552
|
name: "optionTooltip",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
553
|
+
fn: v(() => [
|
|
554
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
535
555
|
]),
|
|
536
556
|
key: "1"
|
|
537
557
|
} : void 0,
|
|
538
558
|
t.$slots.optionPdf ? {
|
|
539
559
|
name: "optionPdf",
|
|
540
|
-
fn:
|
|
541
|
-
|
|
560
|
+
fn: v(() => [
|
|
561
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
542
562
|
]),
|
|
543
563
|
key: "2"
|
|
544
564
|
} : void 0,
|
|
545
565
|
t.$slots.optionCsv ? {
|
|
546
566
|
name: "optionCsv",
|
|
547
|
-
fn:
|
|
548
|
-
|
|
567
|
+
fn: v(() => [
|
|
568
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
549
569
|
]),
|
|
550
570
|
key: "3"
|
|
551
571
|
} : void 0,
|
|
552
572
|
t.$slots.optionImg ? {
|
|
553
573
|
name: "optionImg",
|
|
554
|
-
fn:
|
|
555
|
-
|
|
574
|
+
fn: v(() => [
|
|
575
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
556
576
|
]),
|
|
557
577
|
key: "4"
|
|
558
578
|
} : void 0,
|
|
559
579
|
t.$slots.optionSvg ? {
|
|
560
580
|
name: "optionSvg",
|
|
561
|
-
fn:
|
|
562
|
-
|
|
581
|
+
fn: v(() => [
|
|
582
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
563
583
|
]),
|
|
564
584
|
key: "5"
|
|
565
585
|
} : void 0,
|
|
566
586
|
t.$slots.optionTable ? {
|
|
567
587
|
name: "optionTable",
|
|
568
|
-
fn:
|
|
569
|
-
|
|
588
|
+
fn: v(() => [
|
|
589
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
570
590
|
]),
|
|
571
591
|
key: "6"
|
|
572
592
|
} : void 0,
|
|
573
593
|
t.$slots.optionFullscreen ? {
|
|
574
594
|
name: "optionFullscreen",
|
|
575
|
-
fn:
|
|
576
|
-
|
|
595
|
+
fn: v(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
596
|
+
c(t.$slots, "optionFullscreen", $(T({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
577
597
|
]),
|
|
578
598
|
key: "7"
|
|
579
599
|
} : void 0,
|
|
580
600
|
t.$slots.optionAnnotator ? {
|
|
581
601
|
name: "optionAnnotator",
|
|
582
|
-
fn:
|
|
583
|
-
|
|
602
|
+
fn: v(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
603
|
+
c(t.$slots, "optionAnnotator", $(T({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
584
604
|
]),
|
|
585
605
|
key: "8"
|
|
586
606
|
} : void 0
|
|
@@ -588,12 +608,12 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
588
608
|
(i(), f("svg", {
|
|
589
609
|
ref_key: "svgRef",
|
|
590
610
|
ref: le,
|
|
591
|
-
xmlns:
|
|
592
|
-
class: G({ "vue-data-ui-fullscreen--on":
|
|
611
|
+
xmlns: n(Bt),
|
|
612
|
+
class: G({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value, resizing: Z.value || n(L) }),
|
|
593
613
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
594
|
-
style:
|
|
614
|
+
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
595
615
|
}, [
|
|
596
|
-
Q(
|
|
616
|
+
Q(n(ot)),
|
|
597
617
|
t.$slots["chart-background"] ? (i(), f("foreignObject", {
|
|
598
618
|
key: 0,
|
|
599
619
|
x: 0,
|
|
@@ -604,7 +624,7 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
604
624
|
pointerEvents: "none"
|
|
605
625
|
}
|
|
606
626
|
}, [
|
|
607
|
-
|
|
627
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
608
628
|
], 8, il)) : b("", !0),
|
|
609
629
|
C("defs", null, [
|
|
610
630
|
(i(!0), f(ve, null, ce(y.value, (l, a) => (i(), f("radialGradient", {
|
|
@@ -617,7 +637,7 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
617
637
|
}, [
|
|
618
638
|
C("stop", {
|
|
619
639
|
offset: "0%",
|
|
620
|
-
"stop-color":
|
|
640
|
+
"stop-color": n(Mt)(n(Ut)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
621
641
|
}, null, 8, cl),
|
|
622
642
|
C("stop", {
|
|
623
643
|
offset: "100%",
|
|
@@ -627,74 +647,74 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
627
647
|
]),
|
|
628
648
|
t.$slots.pattern ? (i(), f("g", hl, [
|
|
629
649
|
(i(!0), f(ve, null, ce(y.value, (l) => (i(), f("defs", null, [
|
|
630
|
-
|
|
650
|
+
c(t.$slots, "pattern", ze({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${m.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
631
651
|
]))), 256))
|
|
632
652
|
])) : b("", !0),
|
|
633
653
|
(i(!0), f(ve, null, ce(y.value, (l, a) => (i(), f("g", null, [
|
|
634
654
|
C("circle", {
|
|
635
655
|
class: G({
|
|
636
|
-
"vue-ui-rings-item":
|
|
637
|
-
"vue-rings-item-onload": !
|
|
638
|
-
"vue-ui-rings-opacity":
|
|
656
|
+
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
657
|
+
"vue-rings-item-onload": !P.value && e.value.useCssAnimation && !n(L),
|
|
658
|
+
"vue-ui-rings-opacity": _.value !== null && _.value !== a
|
|
639
659
|
}),
|
|
640
|
-
style:
|
|
660
|
+
style: R(`animation-delay:${a * 100}ms`),
|
|
641
661
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
642
662
|
cx: u.value.width / 2,
|
|
643
663
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
644
|
-
r:
|
|
664
|
+
r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
645
665
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
646
666
|
}, null, 14, pl),
|
|
647
667
|
C("circle", {
|
|
648
668
|
class: G({
|
|
649
|
-
"vue-ui-rings-item":
|
|
650
|
-
"vue-rings-item-onload": !
|
|
669
|
+
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
670
|
+
"vue-rings-item-onload": !P.value && e.value.useCssAnimation && !n(L),
|
|
651
671
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
652
|
-
"vue-ui-rings-blur":
|
|
672
|
+
"vue-ui-rings-blur": _.value !== null && _.value !== a
|
|
653
673
|
}),
|
|
654
|
-
style:
|
|
674
|
+
style: R(`animation-delay:${a * 100}ms`),
|
|
655
675
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
656
676
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
657
677
|
cx: u.value.width / 2,
|
|
658
678
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
659
|
-
r:
|
|
679
|
+
r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
660
680
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${m.value}_${a})` : l.color
|
|
661
681
|
}, null, 14, gl),
|
|
662
682
|
t.$slots.pattern ? (i(), f("circle", {
|
|
663
683
|
key: 0,
|
|
664
684
|
class: G({
|
|
665
|
-
"vue-ui-rings-item":
|
|
666
|
-
"vue-rings-item-onload": !
|
|
685
|
+
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
686
|
+
"vue-rings-item-onload": !P.value && e.value.useCssAnimation && !n(L),
|
|
667
687
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
668
|
-
"vue-ui-rings-blur":
|
|
688
|
+
"vue-ui-rings-blur": _.value !== null && _.value !== a
|
|
669
689
|
}),
|
|
670
|
-
style:
|
|
690
|
+
style: R(`animation-delay:${a * 100}ms`),
|
|
671
691
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
672
692
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
673
693
|
cx: u.value.width / 2,
|
|
674
694
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
675
|
-
r:
|
|
695
|
+
r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
676
696
|
fill: `url(#pattern_${m.value}_${l.absoluteIndex})`
|
|
677
697
|
}, null, 14, fl)) : b("", !0),
|
|
678
698
|
C("circle", {
|
|
679
699
|
stroke: "none",
|
|
680
700
|
cx: u.value.width / 2,
|
|
681
701
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
682
|
-
r:
|
|
702
|
+
r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
683
703
|
fill: "transparent",
|
|
684
|
-
onMouseenter: (
|
|
685
|
-
onMouseleave: (
|
|
686
|
-
onClick: (
|
|
704
|
+
onMouseenter: (s) => yt(l, a),
|
|
705
|
+
onMouseleave: (s) => ft(l, a),
|
|
706
|
+
onClick: (s) => gt(l, a)
|
|
687
707
|
}, null, 40, yl)
|
|
688
708
|
]))), 256)),
|
|
689
|
-
|
|
709
|
+
c(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
690
710
|
], 14, rl)),
|
|
691
711
|
t.$slots.watermark ? (i(), f("div", ml, [
|
|
692
|
-
|
|
712
|
+
c(t.$slots, "watermark", $(T({ isPrinting: n(Oe) || n(Ae) })), void 0, !0)
|
|
693
713
|
])) : b("", !0),
|
|
694
714
|
C("div", {
|
|
695
715
|
id: `legend-bottom-${m.value}`
|
|
696
716
|
}, null, 8, bl),
|
|
697
|
-
$e.value ? (i(),
|
|
717
|
+
$e.value ? (i(), I(Ft, {
|
|
698
718
|
key: 5,
|
|
699
719
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
700
720
|
}, [
|
|
@@ -702,24 +722,24 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
702
722
|
ref_key: "chartLegend",
|
|
703
723
|
ref: ye
|
|
704
724
|
}, [
|
|
705
|
-
e.value.style.chart.legend.show ? (i(),
|
|
725
|
+
e.value.style.chart.legend.show ? (i(), I(al, {
|
|
706
726
|
key: `legend_${Ce.value}`,
|
|
707
|
-
legendSet:
|
|
727
|
+
legendSet: ne.value,
|
|
708
728
|
config: ht.value,
|
|
709
729
|
onClickMarker: o[0] || (o[0] = ({ legend: l }) => z(l.uid))
|
|
710
730
|
}, ie({
|
|
711
|
-
item:
|
|
712
|
-
|
|
731
|
+
item: v(({ legend: l, index: a }) => [
|
|
732
|
+
n(L) ? b("", !0) : (i(), f("div", {
|
|
713
733
|
key: 0,
|
|
714
|
-
onClick: (
|
|
715
|
-
style:
|
|
734
|
+
onClick: (s) => z(l.uid),
|
|
735
|
+
style: R(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
716
736
|
}, de(l.display), 13, kl))
|
|
717
737
|
]),
|
|
718
738
|
_: 2
|
|
719
739
|
}, [
|
|
720
740
|
t.$slots.pattern ? {
|
|
721
741
|
name: "legend-pattern",
|
|
722
|
-
fn:
|
|
742
|
+
fn: v(({ legend: l, index: a }) => [
|
|
723
743
|
Q(tl, {
|
|
724
744
|
shape: l.shape,
|
|
725
745
|
radius: 30,
|
|
@@ -730,9 +750,9 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
730
750
|
]),
|
|
731
751
|
key: "0"
|
|
732
752
|
} : void 0
|
|
733
|
-
]), 1032, ["legendSet", "config"])) :
|
|
753
|
+
]), 1032, ["legendSet", "config"])) : c(t.$slots, "legend", {
|
|
734
754
|
key: 1,
|
|
735
|
-
legend:
|
|
755
|
+
legend: ne.value
|
|
736
756
|
}, void 0, !0)
|
|
737
757
|
], 512)
|
|
738
758
|
], 8, ["to"])) : b("", !0),
|
|
@@ -742,9 +762,9 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
742
762
|
ref: me,
|
|
743
763
|
dir: "auto"
|
|
744
764
|
}, [
|
|
745
|
-
|
|
765
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
746
766
|
], 512)) : b("", !0),
|
|
747
|
-
Q(
|
|
767
|
+
Q(n(Je), {
|
|
748
768
|
show: w.value.showTooltip && H.value && p.value.length < k.dataset.length,
|
|
749
769
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
750
770
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -755,30 +775,30 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
755
775
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
756
776
|
position: e.value.style.chart.tooltip.position,
|
|
757
777
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
758
|
-
parent:
|
|
778
|
+
parent: x.value,
|
|
759
779
|
content: K.value,
|
|
760
|
-
isFullscreen:
|
|
780
|
+
isFullscreen: D.value,
|
|
761
781
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
762
782
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
763
783
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
764
784
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
765
785
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
766
786
|
}, {
|
|
767
|
-
"tooltip-before":
|
|
768
|
-
|
|
787
|
+
"tooltip-before": v(() => [
|
|
788
|
+
c(t.$slots, "tooltip-before", $(T({ ...se.value })), void 0, !0)
|
|
769
789
|
]),
|
|
770
|
-
"tooltip-after":
|
|
771
|
-
|
|
790
|
+
"tooltip-after": v(() => [
|
|
791
|
+
c(t.$slots, "tooltip-after", $(T({ ...se.value })), void 0, !0)
|
|
772
792
|
]),
|
|
773
793
|
_: 3
|
|
774
794
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
775
|
-
pe.value && e.value.userOptions.buttons.table ? (i(),
|
|
795
|
+
pe.value && e.value.userOptions.buttons.table ? (i(), I(It(E.value.component), ze({ key: 7 }, E.value.props, {
|
|
776
796
|
ref_key: "tableUnit",
|
|
777
797
|
ref: U,
|
|
778
798
|
onClose: Be
|
|
779
799
|
}), ie({
|
|
780
|
-
content:
|
|
781
|
-
(i(),
|
|
800
|
+
content: v(() => [
|
|
801
|
+
(i(), I(n(et), {
|
|
782
802
|
key: `table_${we.value}`,
|
|
783
803
|
colNames: X.value.colNames,
|
|
784
804
|
head: X.value.head,
|
|
@@ -788,13 +808,13 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
788
808
|
withCloseButton: !e.value.table.useDialog,
|
|
789
809
|
onClose: Be
|
|
790
810
|
}, {
|
|
791
|
-
th:
|
|
811
|
+
th: v(({ th: l }) => [
|
|
792
812
|
C("div", {
|
|
793
813
|
innerHTML: l,
|
|
794
814
|
style: { display: "flex", "align-items": "center" }
|
|
795
815
|
}, null, 8, wl)
|
|
796
816
|
]),
|
|
797
|
-
td:
|
|
817
|
+
td: v(({ td: l }) => [
|
|
798
818
|
Ee(de(l.name || l), 1)
|
|
799
819
|
]),
|
|
800
820
|
_: 1
|
|
@@ -804,20 +824,20 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
804
824
|
}, [
|
|
805
825
|
e.value.table.useDialog ? {
|
|
806
826
|
name: "title",
|
|
807
|
-
fn:
|
|
827
|
+
fn: v(() => [
|
|
808
828
|
Ee(de(E.value.title), 1)
|
|
809
829
|
]),
|
|
810
830
|
key: "0"
|
|
811
831
|
} : void 0,
|
|
812
832
|
e.value.table.useDialog ? {
|
|
813
833
|
name: "actions",
|
|
814
|
-
fn:
|
|
834
|
+
fn: v(() => [
|
|
815
835
|
C("button", {
|
|
816
836
|
tabindex: "0",
|
|
817
837
|
class: "vue-ui-user-options-button",
|
|
818
838
|
onClick: o[1] || (o[1] = (l) => ue(e.value.userOptions.callbacks.csv))
|
|
819
839
|
}, [
|
|
820
|
-
Q(
|
|
840
|
+
Q(n(Ke), {
|
|
821
841
|
name: "excel",
|
|
822
842
|
stroke: E.value.props.color
|
|
823
843
|
}, null, 8, ["stroke"])
|
|
@@ -826,10 +846,10 @@ const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "heigh
|
|
|
826
846
|
key: "1"
|
|
827
847
|
} : void 0
|
|
828
848
|
]), 1040)) : b("", !0),
|
|
829
|
-
|
|
830
|
-
], 46,
|
|
849
|
+
n(L) ? (i(), I(Qt, { key: 8 })) : b("", !0)
|
|
850
|
+
], 46, sl));
|
|
831
851
|
}
|
|
832
|
-
}, Bl = /* @__PURE__ */
|
|
852
|
+
}, Bl = /* @__PURE__ */ nl(Cl, [["__scopeId", "data-v-46b6d787"]]);
|
|
833
853
|
export {
|
|
834
854
|
Bl as default
|
|
835
855
|
};
|