vue-data-ui 3.16.4 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
- package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineAsyncComponent as R, useSlots as Qt, ref as r, computed as d, toRefs as el, watch as
|
|
2
|
-
import { j as dt, t as ht, m as sl, p as X, o as
|
|
1
|
+
import { defineAsyncComponent as R, useSlots as Qt, ref as r, computed as d, toRefs as el, watch as re, shallowRef as rt, onMounted as tl, onBeforeUnmount as ll, openBlock as i, createElementBlock as y, unref as u, normalizeStyle as z, normalizeClass as B, createElementVNode as m, toDisplayString as ie, createBlock as P, createCommentVNode as k, withCtx as v, renderSlot as c, normalizeProps as T, guardReactiveProps as L, createSlots as Ae, createVNode as ve, Fragment as ce, renderList as Se, mergeProps as it, Teleport as al, resolveDynamicComponent as ol, createTextVNode as vt, nextTick as ct } from "vue";
|
|
2
|
+
import { j as dt, t as ht, m as sl, p as X, o as pt, q as Pe, r as nl, n as ul, a8 as rl, s as gt, k as _e, l as M, X as il, u as vl, v as cl, Z as dl, a0 as hl, a1 as pl, K as gl, T as fl, U as yl } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { b as bl } from "./labelUtils-CqTHa20R.js";
|
|
4
4
|
import { t as ml, u as kl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Cl } from "./useConfig-
|
|
5
|
+
import { u as Cl } from "./useConfig-ChRble71.js";
|
|
6
6
|
import { u as wl } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as $l, B as Tl } from "./BaseScanner-BhhkKVoj.js";
|
|
8
8
|
import { u as Ll } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -44,7 +44,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
44
44
|
},
|
|
45
45
|
emits: ["selectLegend", "copyAlt"],
|
|
46
46
|
setup(ft, { expose: yt, emit: bt }) {
|
|
47
|
-
const mt = R(() => import("./Tooltip-
|
|
47
|
+
const mt = R(() => import("./Tooltip-C8KGyqQk.js")), kt = R(() => import("./BaseIcon-Cb3zzG6s.js")), Ct = R(() => import("./vue-ui-accordion-CnDW2UQL.js")), wt = R(() => import("./DataTable-DT2kIdQ6.js")), $t = R(() => import("./PenAndPaper-Ct3qJ4lA.js")), Tt = R(() => import("./UserOptions-rW2fRf3V.js")), Lt = R(() => import("./PackageVersion-B3kmPxTR.js")), xt = R(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_rings: At } = Cl(), { isThemeValid: St, warnInvalidTheme: Pt } = xl(), _t = Qt(), w = ft, x = r(!1), Fe = d(() => !!w.dataset && w.dataset.length), C = r(dt()), G = r(!1), de = r(""), b = r(null), Ie = r(0), _ = r(null), De = r(null), Ne = r(null), Re = r(null), ze = r(null), Be = r(0), Me = r(0), Ve = r(0), he = r(!1), Ee = r(!1), q = r(null), pe = r(null), oe = r(!1), se = r(!1), O = r(null), Ue = r({ x: 0, y: 0 }), Z = r("pointer"), ge = r(!1), e = r(ye()), V = d(() => e.value.userOptions.useCursorPointer), Ot = d(() => ht({
|
|
48
48
|
defaultConfig: {
|
|
49
49
|
userOptions: { show: !1 },
|
|
50
50
|
table: { show: !1 },
|
|
@@ -74,7 +74,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
74
74
|
})), { loading: A, FINAL_DATASET: We, manualLoading: ne } = $l({
|
|
75
75
|
...el(w),
|
|
76
76
|
FINAL_CONFIG: e,
|
|
77
|
-
prepareConfig:
|
|
77
|
+
prepareConfig: ye,
|
|
78
78
|
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
79
79
|
{ name: "_", values: [13], color: "#808080" },
|
|
80
80
|
{ name: "_", values: [8], color: "#969696" },
|
|
@@ -86,8 +86,8 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
86
86
|
defaultConfig: e.value,
|
|
87
87
|
userConfig: Ot.value
|
|
88
88
|
})
|
|
89
|
-
}), { userOptionsVisible:
|
|
90
|
-
function
|
|
89
|
+
}), { userOptionsVisible: fe, setUserOptionsVisibility: He, keepUserOptionState: Xe } = Al({ config: e.value }), { svgRef: E } = Sl({ config: e.value.style.chart.title });
|
|
90
|
+
function ye() {
|
|
91
91
|
const t = Oe({
|
|
92
92
|
userConfig: w.config,
|
|
93
93
|
defaultConfig: At
|
|
@@ -107,8 +107,8 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
107
107
|
customPalette: t.customPalette.length ? t.customPalette : sl[t.theme] || X
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
A.value || (e.value =
|
|
110
|
+
re(() => w.config, (t) => {
|
|
111
|
+
A.value || (e.value = ye()), fe.value = !e.value.userOptions.showOnChartHover, Ke(), Be.value += 1, Me.value += 1, Ve.value += 1, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show, f.value.showLabels = e.value.style.chart.layout.labels.dataLabels.show, h.value.width = e.value.style.chart.size, h.value.height = e.value.style.chart.size;
|
|
112
112
|
}, { deep: !0 });
|
|
113
113
|
const Ge = d(() => {
|
|
114
114
|
const { markers: t } = e.value.style.chart.layout.labels.dataLabels, a = W.value / 2, l = f.value.showLabels ? t.position === "left" ? a : -a : 0, o = f.value.showLabels ? h.value.width / 2 - a : 0, n = t.position === "left" ? o : -o;
|
|
@@ -120,24 +120,24 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
120
120
|
x: h.value.width / 2 + Ge.value.x,
|
|
121
121
|
y: h.value.height / 2 + Ge.value.y
|
|
122
122
|
}));
|
|
123
|
-
|
|
123
|
+
re(() => w.dataset, (t) => {
|
|
124
124
|
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
125
125
|
}, { deep: !0 });
|
|
126
126
|
const D = rt(null), K = rt(null);
|
|
127
127
|
tl(() => {
|
|
128
128
|
Ee.value = !0, Ke();
|
|
129
129
|
});
|
|
130
|
-
const
|
|
130
|
+
const be = d(() => !!e.value.debug);
|
|
131
131
|
function Ke() {
|
|
132
|
-
if (
|
|
132
|
+
if (pt(w.dataset) ? (Pe({
|
|
133
133
|
componentName: "VueUiRings",
|
|
134
134
|
type: "dataset",
|
|
135
|
-
debug:
|
|
135
|
+
debug: be.value
|
|
136
136
|
}), ne.value = !0) : w.dataset.forEach((t, a) => {
|
|
137
137
|
t.values.length || (Pe({
|
|
138
138
|
componentName: "VueUiRings",
|
|
139
139
|
type: "dataset",
|
|
140
|
-
debug:
|
|
140
|
+
debug: be.value
|
|
141
141
|
}), ne.value = !0), nl({
|
|
142
142
|
datasetObject: t,
|
|
143
143
|
requiredAttributes: ["name", "values"]
|
|
@@ -147,12 +147,12 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
147
147
|
type: "datasetSerieAttribute",
|
|
148
148
|
property: l,
|
|
149
149
|
index: a,
|
|
150
|
-
debug:
|
|
150
|
+
debug: be.value
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
|
-
}),
|
|
153
|
+
}), pt(w.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
154
154
|
const t = ml(() => {
|
|
155
|
-
|
|
155
|
+
he.value = !0;
|
|
156
156
|
const { width: a, height: l } = kl({
|
|
157
157
|
chart: _.value,
|
|
158
158
|
title: e.value.style.chart.title.text ? De.value : null,
|
|
@@ -161,19 +161,19 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
161
161
|
noTitle: ze.value
|
|
162
162
|
});
|
|
163
163
|
requestAnimationFrame(() => {
|
|
164
|
-
h.value.width = a, h.value.height = l - 12,
|
|
164
|
+
h.value.width = a, h.value.height = l - 12, he.value = !1;
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
D.value && (K.value && D.value.unobserve(K.value), D.value.disconnect()), D.value = new ResizeObserver(t), K.value = _.value.parentNode, D.value.observe(K.value);
|
|
168
168
|
}
|
|
169
169
|
setTimeout(() => {
|
|
170
|
-
|
|
170
|
+
x.value = !0;
|
|
171
171
|
}, 600);
|
|
172
172
|
}
|
|
173
173
|
ll(() => {
|
|
174
174
|
D.value && (K.value && D.value.unobserve(K.value), D.value.disconnect());
|
|
175
175
|
});
|
|
176
|
-
const { isPrinting:
|
|
176
|
+
const { isPrinting: me, isImaging: ke, generatePdf: je, generateImage: Ye } = wl({
|
|
177
177
|
elementId: `rings_${C.value}`,
|
|
178
178
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
179
179
|
options: e.value.userOptions.print
|
|
@@ -182,7 +182,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
182
182
|
showTooltip: e.value.style.chart.tooltip.show,
|
|
183
183
|
showLabels: e.value.style.chart.layout.labels.dataLabels.show
|
|
184
184
|
});
|
|
185
|
-
|
|
185
|
+
re(e, () => {
|
|
186
186
|
f.value = {
|
|
187
187
|
showTable: e.value.table.show,
|
|
188
188
|
showTooltip: e.value.style.chart.tooltip.show,
|
|
@@ -192,20 +192,20 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
192
192
|
const h = r({
|
|
193
193
|
height: e.value.style.chart.size,
|
|
194
194
|
width: e.value.style.chart.size
|
|
195
|
-
}), It = d(() => Math.min(h.value.height, h.value.width)), Ze = bt,
|
|
195
|
+
}), It = d(() => Math.min(h.value.height, h.value.width)), Ze = bt, g = r([]);
|
|
196
196
|
function Dt() {
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
g.value.length ? g.value = [] : Q.value.forEach((t) => {
|
|
198
|
+
g.value.push(t.uid);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
function J(t) {
|
|
202
|
-
if (
|
|
203
|
-
|
|
202
|
+
if (g.value.includes(t))
|
|
203
|
+
g.value = g.value.filter((a) => a !== t);
|
|
204
204
|
else {
|
|
205
|
-
if (
|
|
206
|
-
|
|
205
|
+
if (g.value.length === U.value.length - 1) return;
|
|
206
|
+
g.value.push(t);
|
|
207
207
|
}
|
|
208
|
-
Ze("selectLegend",
|
|
208
|
+
Ze("selectLegend", p.value.map((a) => ({
|
|
209
209
|
name: a.name,
|
|
210
210
|
color: a.color,
|
|
211
211
|
value: a.value
|
|
@@ -219,14 +219,14 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
219
219
|
}
|
|
220
220
|
function Nt(t) {
|
|
221
221
|
const a = Je(t);
|
|
222
|
-
a !== null &&
|
|
222
|
+
a !== null && g.value.includes(a.uid) && J(a.uid);
|
|
223
223
|
}
|
|
224
224
|
function Rt(t) {
|
|
225
225
|
const a = Je(t);
|
|
226
|
-
a !== null && (
|
|
226
|
+
a !== null && (g.value.includes(a.uid) || J(a.uid));
|
|
227
227
|
}
|
|
228
228
|
const zt = d(() => Math.max(
|
|
229
|
-
...U.value.filter((t) => !
|
|
229
|
+
...U.value.filter((t) => !g.value.includes(t.uid)).map(({ value: t }) => t)
|
|
230
230
|
));
|
|
231
231
|
function Qe(t) {
|
|
232
232
|
return t / zt.value;
|
|
@@ -235,7 +235,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
235
235
|
const n = rl(t).reduce((s, $) => s + $, 0);
|
|
236
236
|
return {
|
|
237
237
|
name: a,
|
|
238
|
-
color: l ||
|
|
238
|
+
color: l || gt(l) || qe.value[o] || X[o] || X[o % X.length],
|
|
239
239
|
value: n,
|
|
240
240
|
proportion: n / We.value.map((s) => (s.values || []).reduce(($, Y) => $ + Y, 0)).reduce((s, $) => s + $, 0),
|
|
241
241
|
uid: dt(),
|
|
@@ -247,18 +247,18 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
247
247
|
v: t.value,
|
|
248
248
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
249
249
|
r: e.value.style.chart.legend.roundingValue
|
|
250
|
-
}), { datapoint: t, index: a }), o = isNaN(t.value / I.value) ? "-" : M({ v: t.value / I.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), n =
|
|
250
|
+
}), { datapoint: t, index: a }), o = isNaN(t.value / I.value) ? "-" : M({ v: t.value / I.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), n = we({
|
|
251
251
|
showVal: e.value.style.chart.legend.showValue,
|
|
252
252
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
253
253
|
val: l,
|
|
254
|
-
percentage:
|
|
254
|
+
percentage: g.value.includes(t.uid) ? "-%" : o
|
|
255
255
|
});
|
|
256
256
|
return {
|
|
257
257
|
...t,
|
|
258
258
|
shape: "circle",
|
|
259
|
-
opacity:
|
|
259
|
+
opacity: g.value.includes(t.uid) ? 0.5 : 1,
|
|
260
260
|
segregate: () => J(t.uid),
|
|
261
|
-
isSegregated:
|
|
261
|
+
isSegregated: g.value.includes(t.uid),
|
|
262
262
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
263
263
|
};
|
|
264
264
|
}).toSorted((t, a) => a.value - t.value)), Bt = d(() => ({
|
|
@@ -268,18 +268,18 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
268
268
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
269
269
|
paddingBottom: 12,
|
|
270
270
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
271
|
-
})), I = d(() => U.value.filter((t) => !
|
|
271
|
+
})), I = d(() => U.value.filter((t) => !g.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), p = d(() => U.value.filter((t) => !g.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: n }, s) => ({
|
|
272
272
|
absoluteIndex: n,
|
|
273
273
|
uid: o,
|
|
274
274
|
name: t,
|
|
275
|
-
color: l ||
|
|
275
|
+
color: l || gt(l) || qe.value[s] || X[s] || X[s % X.length],
|
|
276
276
|
value: a,
|
|
277
277
|
proportion: Qe(a),
|
|
278
278
|
percentage: a / I.value * 100,
|
|
279
279
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Qe(a)
|
|
280
280
|
})).toSorted((t, a) => a.value - t.value));
|
|
281
281
|
function Mt() {
|
|
282
|
-
return
|
|
282
|
+
return p.value.map(
|
|
283
283
|
({ name: t, color: a, value: l, absoluteValues: o, percentage: n }) => ({
|
|
284
284
|
name: t,
|
|
285
285
|
color: a,
|
|
@@ -290,13 +290,13 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
292
|
const W = d(() => It.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
293
|
-
function
|
|
293
|
+
function Ce(t, a) {
|
|
294
294
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
295
295
|
}
|
|
296
296
|
function et(t, a) {
|
|
297
297
|
b.value = null, G.value = !1, O.value = null, Z.value = "pointer", e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function we({
|
|
300
300
|
val: t,
|
|
301
301
|
percentage: a,
|
|
302
302
|
showVal: l,
|
|
@@ -327,7 +327,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
327
327
|
r: a.roundingPercentage
|
|
328
328
|
});
|
|
329
329
|
return `${t.name}
|
|
330
|
-
${
|
|
330
|
+
${we({
|
|
331
331
|
val: l,
|
|
332
332
|
percentage: o,
|
|
333
333
|
showVal: a.showValue,
|
|
@@ -335,10 +335,10 @@ ${Ce({
|
|
|
335
335
|
})}`;
|
|
336
336
|
}
|
|
337
337
|
function ee(t) {
|
|
338
|
-
return
|
|
338
|
+
return gl(W.value * t.proportion / 2 * 0.9 <= 0 ? 1e-4 : W.value * t.proportion / 2 * 0.9);
|
|
339
339
|
}
|
|
340
340
|
function te(t, a) {
|
|
341
|
-
return a === 0 ? F.value.y : F.value.y + W.value *
|
|
341
|
+
return a === 0 ? F.value.y : F.value.y + W.value * p.value[0].proportion / 2 - W.value * t.proportion / 2 - 2 * (a + 1);
|
|
342
342
|
}
|
|
343
343
|
function S(t, a) {
|
|
344
344
|
const o = e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(W.value / 2) : W.value / 2;
|
|
@@ -347,31 +347,31 @@ ${Ce({
|
|
|
347
347
|
y: te(t, a) - ee(t)
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
const
|
|
350
|
+
const ue = r(null);
|
|
351
351
|
function $e(t, a, l = "pointer") {
|
|
352
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
353
|
-
|
|
352
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), g.value.length === w.dataset.length) return;
|
|
353
|
+
ue.value = {
|
|
354
354
|
datapoint: t,
|
|
355
355
|
seriesIndex: a,
|
|
356
|
-
series:
|
|
356
|
+
series: p.value,
|
|
357
357
|
config: e.value
|
|
358
358
|
}, b.value = a, O.value = a, Z.value = l;
|
|
359
|
-
const o =
|
|
359
|
+
const o = p.value[a], n = e.value.style.chart.tooltip.customFormat;
|
|
360
360
|
if (fl(n) && yl(() => n({
|
|
361
361
|
seriesIndex: a,
|
|
362
362
|
datapoint: t,
|
|
363
|
-
series:
|
|
363
|
+
series: p.value,
|
|
364
364
|
config: e.value
|
|
365
365
|
})))
|
|
366
|
-
|
|
366
|
+
de.value = n({
|
|
367
367
|
seriesIndex: a,
|
|
368
368
|
datapoint: t,
|
|
369
|
-
series:
|
|
369
|
+
series: p.value,
|
|
370
370
|
config: e.value
|
|
371
371
|
});
|
|
372
372
|
else {
|
|
373
373
|
let s = "";
|
|
374
|
-
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.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="${o.color}" />${_t.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${t.absoluteIndex})" />` : ""}</svg>`, s += `<b>${
|
|
374
|
+
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.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="${o.color}" />${_t.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${t.absoluteIndex})" />` : ""}</svg>`, s += `<b>${we({
|
|
375
375
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
376
376
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
377
377
|
val: `<span>${_e(
|
|
@@ -390,15 +390,15 @@ ${Ce({
|
|
|
390
390
|
s: "%",
|
|
391
391
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
392
392
|
})
|
|
393
|
-
})}</b></div>`,
|
|
393
|
+
})}</b></div>`, de.value = s;
|
|
394
394
|
}
|
|
395
395
|
G.value = !0;
|
|
396
396
|
}
|
|
397
397
|
const N = d(() => {
|
|
398
|
-
const t =
|
|
398
|
+
const t = p.value.map((l) => ({
|
|
399
399
|
name: l.name,
|
|
400
400
|
color: l.color
|
|
401
|
-
})), a =
|
|
401
|
+
})), a = p.value.map((l) => l.value);
|
|
402
402
|
return { head: t, body: a };
|
|
403
403
|
}), j = d(() => {
|
|
404
404
|
const t = [
|
|
@@ -442,7 +442,7 @@ ${Ce({
|
|
|
442
442
|
const a = N.value.head.map((n, s) => [[
|
|
443
443
|
n.name
|
|
444
444
|
], [N.value.body[s]], [isNaN(N.value.body[s] / I.value) ? "-" : N.value.body[s] / I.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = hl(l);
|
|
445
|
-
t ? t(o) :
|
|
445
|
+
t ? t(o) : pl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
448
|
const H = r(!1);
|
|
@@ -505,11 +505,11 @@ ${Ce({
|
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
507
|
});
|
|
508
|
-
|
|
508
|
+
re(() => f.value.showTable, (t) => {
|
|
509
509
|
e.value.table.show || (t && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
|
|
510
510
|
});
|
|
511
511
|
function st() {
|
|
512
|
-
f.value.showTable = !1,
|
|
512
|
+
f.value.showTable = !1, pe.value && pe.value.setTableIconState(!1);
|
|
513
513
|
}
|
|
514
514
|
const Ut = d(() => Q.value.map((t) => ({
|
|
515
515
|
...t,
|
|
@@ -547,14 +547,14 @@ ${Ce({
|
|
|
547
547
|
async function ut() {
|
|
548
548
|
if (Ze("copyAlt", {
|
|
549
549
|
config: e.value,
|
|
550
|
-
dataset:
|
|
550
|
+
dataset: p.value
|
|
551
551
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
552
552
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
553
553
|
return;
|
|
554
554
|
}
|
|
555
555
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
556
556
|
config: e.value,
|
|
557
|
-
dataset:
|
|
557
|
+
dataset: p.value
|
|
558
558
|
}));
|
|
559
559
|
}
|
|
560
560
|
function Yt() {
|
|
@@ -564,7 +564,7 @@ ${Ce({
|
|
|
564
564
|
O.value = null, Z.value = "pointer", G.value = !1, b.value = null, ge.value = !1;
|
|
565
565
|
}
|
|
566
566
|
function Zt(t) {
|
|
567
|
-
if (!E.value || le.value || document.activeElement !== E.value || !
|
|
567
|
+
if (!E.value || le.value || document.activeElement !== E.value || !p.value.length || g.value.length === w.dataset.length) return;
|
|
568
568
|
const a = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), o = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
|
|
569
569
|
if (!a && !l && !o && !n) return;
|
|
570
570
|
if (t.preventDefault(), t.stopPropagation(), n) {
|
|
@@ -573,19 +573,19 @@ ${Ce({
|
|
|
573
573
|
}
|
|
574
574
|
if (o) {
|
|
575
575
|
if (O.value === null) return;
|
|
576
|
-
const Y =
|
|
576
|
+
const Y = p.value[O.value];
|
|
577
577
|
if (!Y) return;
|
|
578
|
-
|
|
578
|
+
Ce(Y, O.value);
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
581
|
let s = O.value;
|
|
582
|
-
s === null || s < 0 || s >=
|
|
583
|
-
const $ =
|
|
582
|
+
s === null || s < 0 || s >= p.value.length ? s = l ? 0 : p.value.length - 1 : l ? (s += 1, s >= p.value.length && (s = 0)) : a && (s -= 1, s < 0 && (s = p.value.length - 1));
|
|
583
|
+
const $ = p.value[s];
|
|
584
584
|
$ && (Jt(s), $e($, s, "keyboard"));
|
|
585
585
|
}
|
|
586
586
|
function Jt(t) {
|
|
587
587
|
if (!Number.isFinite(t) || !E.value) return;
|
|
588
|
-
const a =
|
|
588
|
+
const a = p.value[t];
|
|
589
589
|
if (!a) return;
|
|
590
590
|
const l = S(a, t), o = E.value.getBoundingClientRect();
|
|
591
591
|
Ue.value = {
|
|
@@ -627,7 +627,7 @@ ${Ce({
|
|
|
627
627
|
id: `chart-instructions-${C.value}`,
|
|
628
628
|
class: "sr-only"
|
|
629
629
|
}, [
|
|
630
|
-
m("p", null,
|
|
630
|
+
m("p", null, ie(e.value.a11y.translations.keyboardNavigation), 1)
|
|
631
631
|
], 8, Bl),
|
|
632
632
|
xe.value?.rows?.length ? (i(), P(Dl, {
|
|
633
633
|
key: 0,
|
|
@@ -650,19 +650,19 @@ ${Ce({
|
|
|
650
650
|
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
651
651
|
]),
|
|
652
652
|
"annotator-action-color": v(({ color: l }) => [
|
|
653
|
-
c(t.$slots, "annotator-action-color", L(
|
|
653
|
+
c(t.$slots, "annotator-action-color", T(L({ color: l })), void 0, !0)
|
|
654
654
|
]),
|
|
655
655
|
"annotator-action-draw": v(({ mode: l }) => [
|
|
656
|
-
c(t.$slots, "annotator-action-draw", L(
|
|
656
|
+
c(t.$slots, "annotator-action-draw", T(L({ mode: l })), void 0, !0)
|
|
657
657
|
]),
|
|
658
658
|
"annotator-action-undo": v(({ disabled: l }) => [
|
|
659
|
-
c(t.$slots, "annotator-action-undo", L(
|
|
659
|
+
c(t.$slots, "annotator-action-undo", T(L({ disabled: l })), void 0, !0)
|
|
660
660
|
]),
|
|
661
661
|
"annotator-action-redo": v(({ disabled: l }) => [
|
|
662
|
-
c(t.$slots, "annotator-action-redo", L(
|
|
662
|
+
c(t.$slots, "annotator-action-redo", T(L({ disabled: l })), void 0, !0)
|
|
663
663
|
]),
|
|
664
664
|
"annotator-action-delete": v(({ disabled: l }) => [
|
|
665
|
-
c(t.$slots, "annotator-action-delete", L(
|
|
665
|
+
c(t.$slots, "annotator-action-delete", T(L({ disabled: l })), void 0, !0)
|
|
666
666
|
]),
|
|
667
667
|
_: 3
|
|
668
668
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : k("", !0),
|
|
@@ -696,14 +696,14 @@ ${Ce({
|
|
|
696
696
|
m("div", {
|
|
697
697
|
id: `legend-top-${C.value}`
|
|
698
698
|
}, null, 8, Ml),
|
|
699
|
-
e.value.userOptions.show && Fe.value && (u(Xe) || u(
|
|
699
|
+
e.value.userOptions.show && Fe.value && (u(Xe) || u(fe)) ? (i(), P(u(Tt), {
|
|
700
700
|
ref_key: "userOptionsRef",
|
|
701
|
-
ref:
|
|
701
|
+
ref: pe,
|
|
702
702
|
key: `user_options_${Ie.value}`,
|
|
703
703
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
704
704
|
color: e.value.style.chart.color,
|
|
705
|
-
isPrinting: u(
|
|
706
|
-
isImaging: u(
|
|
705
|
+
isPrinting: u(me),
|
|
706
|
+
isImaging: u(ke),
|
|
707
707
|
uid: C.value,
|
|
708
708
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
709
709
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -736,13 +736,13 @@ ${Ce({
|
|
|
736
736
|
onToggleLabels: ot,
|
|
737
737
|
onCopyAlt: ut,
|
|
738
738
|
style: z({
|
|
739
|
-
visibility: u(Xe) ? u(
|
|
739
|
+
visibility: u(Xe) ? u(fe) ? "visible" : "hidden" : "visible"
|
|
740
740
|
})
|
|
741
741
|
}, Ae({ _: 2 }, [
|
|
742
742
|
t.$slots.menuIcon ? {
|
|
743
743
|
name: "menuIcon",
|
|
744
744
|
fn: v(({ isOpen: l, color: o }) => [
|
|
745
|
-
c(t.$slots, "menuIcon", L(
|
|
745
|
+
c(t.$slots, "menuIcon", T(L({ isOpen: l, color: o })), void 0, !0)
|
|
746
746
|
]),
|
|
747
747
|
key: "0"
|
|
748
748
|
} : void 0,
|
|
@@ -798,21 +798,21 @@ ${Ce({
|
|
|
798
798
|
t.$slots.optionFullscreen ? {
|
|
799
799
|
name: "optionFullscreen",
|
|
800
800
|
fn: v(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
801
|
-
c(t.$slots, "optionFullscreen", L(
|
|
801
|
+
c(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
802
802
|
]),
|
|
803
803
|
key: "8"
|
|
804
804
|
} : void 0,
|
|
805
805
|
t.$slots.optionAnnotator ? {
|
|
806
806
|
name: "optionAnnotator",
|
|
807
807
|
fn: v(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
808
|
-
c(t.$slots, "optionAnnotator", L(
|
|
808
|
+
c(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
809
809
|
]),
|
|
810
810
|
key: "9"
|
|
811
811
|
} : void 0,
|
|
812
812
|
t.$slots.optionAltCopy ? {
|
|
813
813
|
name: "optionAltCopy",
|
|
814
814
|
fn: v(({ altCopy: l }) => [
|
|
815
|
-
c(t.$slots, "optionAltCopy", L(
|
|
815
|
+
c(t.$slots, "optionAltCopy", T(L({ altCopy: l })), void 0, !0)
|
|
816
816
|
]),
|
|
817
817
|
key: "10"
|
|
818
818
|
} : void 0
|
|
@@ -822,7 +822,7 @@ ${Ce({
|
|
|
822
822
|
ref_key: "svgRef",
|
|
823
823
|
ref: E,
|
|
824
824
|
xmlns: u(il),
|
|
825
|
-
class: B({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value, resizing:
|
|
825
|
+
class: B({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value, resizing: he.value || u(A) }),
|
|
826
826
|
viewBox: `0 0 ${h.value.width <= 0 ? 10 : h.value.width} ${h.value.height <= 0 ? 10 : h.value.height}`,
|
|
827
827
|
style: z(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
|
|
828
828
|
"aria-describedby": `chart-instructions-${C.value}`,
|
|
@@ -831,7 +831,7 @@ ${Ce({
|
|
|
831
831
|
onBlur: qt,
|
|
832
832
|
onKeydown: Zt
|
|
833
833
|
}, [
|
|
834
|
-
|
|
834
|
+
ve(u(Lt)),
|
|
835
835
|
t.$slots["chart-background"] ? (i(), y("foreignObject", {
|
|
836
836
|
key: 0,
|
|
837
837
|
x: 0,
|
|
@@ -845,7 +845,7 @@ ${Ce({
|
|
|
845
845
|
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
846
846
|
], 8, Ul)) : k("", !0),
|
|
847
847
|
m("defs", null, [
|
|
848
|
-
(i(!0), y(
|
|
848
|
+
(i(!0), y(ce, null, Se(p.value, (l, o) => (i(), y("radialGradient", {
|
|
849
849
|
cx: "50%",
|
|
850
850
|
cy: "30%",
|
|
851
851
|
r: "50%",
|
|
@@ -864,15 +864,15 @@ ${Ce({
|
|
|
864
864
|
], 8, Wl))), 256))
|
|
865
865
|
]),
|
|
866
866
|
t.$slots.pattern ? (i(), y("g", Gl, [
|
|
867
|
-
(i(!0), y(
|
|
867
|
+
(i(!0), y(ce, null, Se(p.value, (l) => (i(), y("defs", null, [
|
|
868
868
|
c(t.$slots, "pattern", it({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
869
869
|
]))), 256))
|
|
870
870
|
])) : k("", !0),
|
|
871
|
-
(i(!0), y(
|
|
871
|
+
(i(!0), y(ce, null, Se(p.value, (l, o) => (i(), y("g", null, [
|
|
872
872
|
m("circle", {
|
|
873
873
|
class: B({
|
|
874
|
-
"vue-ui-rings-item":
|
|
875
|
-
"vue-rings-item-onload": !
|
|
874
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
875
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
876
876
|
"vue-ui-rings-opacity": b.value !== null && b.value !== o
|
|
877
877
|
}),
|
|
878
878
|
style: z(`animation-delay:${o * 100}ms`),
|
|
@@ -884,8 +884,8 @@ ${Ce({
|
|
|
884
884
|
}, null, 14, Kl),
|
|
885
885
|
m("circle", {
|
|
886
886
|
class: B({
|
|
887
|
-
"vue-ui-rings-item":
|
|
888
|
-
"vue-rings-item-onload": !
|
|
887
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
888
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
889
889
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
890
890
|
"vue-ui-rings-blur": b.value !== null && b.value !== o
|
|
891
891
|
}),
|
|
@@ -900,8 +900,8 @@ ${Ce({
|
|
|
900
900
|
t.$slots.pattern ? (i(), y("circle", {
|
|
901
901
|
key: 0,
|
|
902
902
|
class: B({
|
|
903
|
-
"vue-ui-rings-item":
|
|
904
|
-
"vue-rings-item-onload": !
|
|
903
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
904
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
905
905
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
906
906
|
"vue-ui-rings-blur": b.value !== null && b.value !== o
|
|
907
907
|
}),
|
|
@@ -921,9 +921,9 @@ ${Ce({
|
|
|
921
921
|
fill: "transparent",
|
|
922
922
|
onMouseenter: (n) => $e(l, o, "pointer"),
|
|
923
923
|
onMouseleave: (n) => et(l, o),
|
|
924
|
-
onClick: (n) =>
|
|
924
|
+
onClick: (n) => Ce(l, o)
|
|
925
925
|
}, null, 40, ql),
|
|
926
|
-
f.value.showLabels ? (i(), y(
|
|
926
|
+
f.value.showLabels ? (i(), y(ce, { key: 1 }, [
|
|
927
927
|
m("rect", {
|
|
928
928
|
x: e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? S(l, o).x : F.value.x,
|
|
929
929
|
y: S(l, o).y - e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
@@ -932,8 +932,8 @@ ${Ce({
|
|
|
932
932
|
fill: e.value.style.chart.layout.labels.dataLabels.markers.stroke,
|
|
933
933
|
rx: e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
934
934
|
class: B({
|
|
935
|
-
"vue-ui-rings-item":
|
|
936
|
-
"vue-rings-item-onload": !
|
|
935
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
936
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
937
937
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
938
938
|
"vue-ui-rings-blur": b.value !== null && b.value !== o
|
|
939
939
|
})
|
|
@@ -945,8 +945,8 @@ ${Ce({
|
|
|
945
945
|
fill: l.color,
|
|
946
946
|
stroke: e.value.style.chart.backgroundColor,
|
|
947
947
|
class: B({
|
|
948
|
-
"vue-ui-rings-item":
|
|
949
|
-
"vue-rings-item-onload": !
|
|
948
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
949
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
950
950
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
951
951
|
"vue-ui-rings-blur": b.value !== null && b.value !== o
|
|
952
952
|
})
|
|
@@ -959,14 +959,14 @@ ${Ce({
|
|
|
959
959
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
960
960
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
|
|
961
961
|
class: B({
|
|
962
|
-
"vue-ui-rings-item":
|
|
963
|
-
"vue-rings-item-onload": !
|
|
962
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
963
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
964
964
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
965
965
|
"vue-ui-rings-blur": b.value !== null && b.value !== o
|
|
966
966
|
}),
|
|
967
967
|
onMouseenter: (n) => $e(l, o, "pointer"),
|
|
968
968
|
onMouseleave: (n) => et(l, o),
|
|
969
|
-
onClick: (n) =>
|
|
969
|
+
onClick: (n) => Ce(l, o),
|
|
970
970
|
innerHTML: u(dl)({
|
|
971
971
|
content: Vt(l),
|
|
972
972
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -981,17 +981,17 @@ ${Ce({
|
|
|
981
981
|
c(t.$slots, "svg", {
|
|
982
982
|
svg: {
|
|
983
983
|
...h.value,
|
|
984
|
-
isPrintingImg: u(
|
|
984
|
+
isPrintingImg: u(me) | u(ke) | oe.value,
|
|
985
985
|
isPrintingSvg: se.value
|
|
986
986
|
}
|
|
987
987
|
}, void 0, !0)
|
|
988
988
|
], 46, El)),
|
|
989
989
|
t.$slots.hint ? (i(), y("div", ea, [
|
|
990
|
-
c(t.$slots, "hint", L(
|
|
990
|
+
c(t.$slots, "hint", T(L({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: ge.value })), void 0, !0)
|
|
991
991
|
])) : k("", !0)
|
|
992
992
|
]),
|
|
993
993
|
t.$slots.watermark ? (i(), y("div", ta, [
|
|
994
|
-
c(t.$slots, "watermark", L(
|
|
994
|
+
c(t.$slots, "watermark", T(L({ isPrinting: u(me) || u(ke) || oe.value || se.value })), void 0, !0)
|
|
995
995
|
])) : k("", !0),
|
|
996
996
|
m("div", {
|
|
997
997
|
id: `legend-bottom-${C.value}`
|
|
@@ -1015,8 +1015,8 @@ ${Ce({
|
|
|
1015
1015
|
u(A) ? k("", !0) : (i(), y("div", {
|
|
1016
1016
|
key: 0,
|
|
1017
1017
|
onClick: (n) => J(l.uid),
|
|
1018
|
-
style: z(`opacity:${
|
|
1019
|
-
},
|
|
1018
|
+
style: z(`opacity:${g.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1019
|
+
}, ie(l.display), 13, aa))
|
|
1020
1020
|
]),
|
|
1021
1021
|
legendToggle: v(() => [
|
|
1022
1022
|
Q.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !u(A) ? (i(), P(Nl, {
|
|
@@ -1024,7 +1024,7 @@ ${Ce({
|
|
|
1024
1024
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1025
1025
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1026
1026
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1027
|
-
checked:
|
|
1027
|
+
checked: g.value.length > 0,
|
|
1028
1028
|
isCursorPointer: V.value,
|
|
1029
1029
|
onToggle: Dt
|
|
1030
1030
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : k("", !0)
|
|
@@ -1034,7 +1034,7 @@ ${Ce({
|
|
|
1034
1034
|
t.$slots.pattern ? {
|
|
1035
1035
|
name: "legend-pattern",
|
|
1036
1036
|
fn: v(({ legend: l, index: o }) => [
|
|
1037
|
-
|
|
1037
|
+
ve(_l, {
|
|
1038
1038
|
shape: l.shape,
|
|
1039
1039
|
radius: 30,
|
|
1040
1040
|
stroke: "none",
|
|
@@ -1058,9 +1058,9 @@ ${Ce({
|
|
|
1058
1058
|
}, [
|
|
1059
1059
|
c(t.$slots, "source", {}, void 0, !0)
|
|
1060
1060
|
], 512)) : k("", !0),
|
|
1061
|
-
|
|
1061
|
+
ve(u(mt), {
|
|
1062
1062
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1063
|
-
show: f.value.showTooltip && G.value &&
|
|
1063
|
+
show: f.value.showTooltip && G.value && g.value.length < w.dataset.length,
|
|
1064
1064
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1065
1065
|
color: e.value.style.chart.tooltip.color,
|
|
1066
1066
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1071,7 +1071,7 @@ ${Ce({
|
|
|
1071
1071
|
position: e.value.style.chart.tooltip.position,
|
|
1072
1072
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1073
1073
|
parent: _.value,
|
|
1074
|
-
content:
|
|
1074
|
+
content: de.value,
|
|
1075
1075
|
isFullscreen: H.value,
|
|
1076
1076
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1077
1077
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1082,10 +1082,13 @@ ${Ce({
|
|
|
1082
1082
|
a11yPosition: Ue.value
|
|
1083
1083
|
}, {
|
|
1084
1084
|
"tooltip-before": v(() => [
|
|
1085
|
-
c(t.$slots, "tooltip-before", L(
|
|
1085
|
+
c(t.$slots, "tooltip-before", T(L({ ...ue.value })), void 0, !0)
|
|
1086
|
+
]),
|
|
1087
|
+
tooltip: v(() => [
|
|
1088
|
+
c(t.$slots, "tooltip", T(L({ ...ue.value })), void 0, !0)
|
|
1086
1089
|
]),
|
|
1087
1090
|
"tooltip-after": v(() => [
|
|
1088
|
-
c(t.$slots, "tooltip-after", L(
|
|
1091
|
+
c(t.$slots, "tooltip-after", T(L({ ...ue.value })), void 0, !0)
|
|
1089
1092
|
]),
|
|
1090
1093
|
_: 3
|
|
1091
1094
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
@@ -1113,7 +1116,7 @@ ${Ce({
|
|
|
1113
1116
|
}, null, 8, oa)
|
|
1114
1117
|
]),
|
|
1115
1118
|
td: v(({ td: l }) => [
|
|
1116
|
-
vt(
|
|
1119
|
+
vt(ie(l.name || l), 1)
|
|
1117
1120
|
]),
|
|
1118
1121
|
_: 1
|
|
1119
1122
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
@@ -1123,7 +1126,7 @@ ${Ce({
|
|
|
1123
1126
|
e.value.table.useDialog ? {
|
|
1124
1127
|
name: "title",
|
|
1125
1128
|
fn: v(() => [
|
|
1126
|
-
vt(
|
|
1129
|
+
vt(ie(ae.value.title), 1)
|
|
1127
1130
|
]),
|
|
1128
1131
|
key: "0"
|
|
1129
1132
|
} : void 0,
|
|
@@ -1136,7 +1139,7 @@ ${Ce({
|
|
|
1136
1139
|
onClick: a[1] || (a[1] = (l) => Te(e.value.userOptions.callbacks.csv)),
|
|
1137
1140
|
style: z({ cursor: V.value ? "pointer" : "default" })
|
|
1138
1141
|
}, [
|
|
1139
|
-
|
|
1142
|
+
ve(u(kt), {
|
|
1140
1143
|
name: "fileCsv",
|
|
1141
1144
|
stroke: ae.value.props.color
|
|
1142
1145
|
}, null, 8, ["stroke"])
|
|
@@ -1150,7 +1153,7 @@ ${Ce({
|
|
|
1150
1153
|
], !0)
|
|
1151
1154
|
], 46, zl));
|
|
1152
1155
|
}
|
|
1153
|
-
}, xa = /* @__PURE__ */ Rl(sa, [["__scopeId", "data-v-
|
|
1156
|
+
}, xa = /* @__PURE__ */ Rl(sa, [["__scopeId", "data-v-4b1d044b"]]);
|
|
1154
1157
|
export {
|
|
1155
1158
|
xa as default
|
|
1156
1159
|
};
|