vue-data-ui 3.17.9 → 3.17.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-Ov37I8ii.js → PackageVersion-CHNfLQ9Q.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-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-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-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-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/{vue-data-ui-C1Z1RCcf.js → vue-data-ui-BhpgB8UJ.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-BqqCv_L2.js → vue-ui-3d-bar-DlLiXS6Z.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C-2sRuVe.js → vue-ui-age-pyramid-DraVdYRy.js} +1 -1
- package/dist/{vue-ui-bullet-CkBMlG46.js → vue-ui-bullet-WnD9rJbc.js} +19 -18
- package/dist/{vue-ui-bump-DxBzf8_x.js → vue-ui-bump-DwgahfiC.js} +1 -1
- package/dist/{vue-ui-candlestick-CQw6E5XK.js → vue-ui-candlestick-BleQTpuq.js} +1 -1
- package/dist/{vue-ui-carousel-table-ehHnnwYQ.js → vue-ui-carousel-table-BjXxtjCZ.js} +1 -1
- package/dist/{vue-ui-chestnut-CEG1n9Bg.js → vue-ui-chestnut-xBDbJ9su.js} +1 -1
- package/dist/{vue-ui-chord-Bm8sj1jg.js → vue-ui-chord-D_pGtRHt.js} +36 -35
- package/dist/{vue-ui-circle-pack-BhtBzyoU.js → vue-ui-circle-pack-C7-wxx3Y.js} +1 -1
- package/dist/{vue-ui-cursor-KjOp9R9e.js → vue-ui-cursor-DBvL5KTg.js} +1 -1
- package/dist/{vue-ui-dag-DsBuepaA.js → vue-ui-dag-BKGTFMQK.js} +1 -1
- package/dist/{vue-ui-dashboard-ClvBMAzA.js → vue-ui-dashboard-CEtNOoBY.js} +58 -58
- package/dist/{vue-ui-digits-CUN5zijI.js → vue-ui-digits-BeIq6BVd.js} +1 -1
- package/dist/{vue-ui-donut-B1EgAu-L.js → vue-ui-donut-BjV5_nf1.js} +44 -43
- package/dist/{vue-ui-donut-evolution-5PjaWTvx.js → vue-ui-donut-evolution-B7hCGAIO.js} +30 -29
- package/dist/{vue-ui-dumbbell-D8hAgMko.js → vue-ui-dumbbell-ZMLefa9v.js} +85 -86
- package/dist/{vue-ui-flow-jJLellQk.js → vue-ui-flow-BYjkId4Z.js} +63 -62
- package/dist/{vue-ui-funnel-C4JIWkGm.js → vue-ui-funnel-BZtpP-Of.js} +2 -2
- package/dist/{vue-ui-galaxy-CuqTB4XR.js → vue-ui-galaxy-bdIj6ERd.js} +56 -55
- package/dist/{vue-ui-gauge-B5bJUzMr.js → vue-ui-gauge-DT5-qFXl.js} +1 -1
- package/dist/{vue-ui-geo-BJiW5vL1.js → vue-ui-geo-nXp15sZ5.js} +1 -1
- package/dist/{vue-ui-gizmo-D5e5T4fu.js → vue-ui-gizmo-J5MTo522.js} +1 -1
- package/dist/{vue-ui-heatmap-Bsr9R8ek.js → vue-ui-heatmap-G7DzkGq2.js} +1 -1
- package/dist/{vue-ui-history-plot-pXrD1Fm7.js → vue-ui-history-plot-BLoxv5uS.js} +35 -36
- package/dist/{vue-ui-horizontal-bar-7HugQ0dT.js → vue-ui-horizontal-bar-B8wbIiWo.js} +1 -1
- package/dist/{vue-ui-kpi-BLVCrWfG.js → vue-ui-kpi-AT8jIXnu.js} +1 -1
- package/dist/{vue-ui-molecule-DhIWpt07.js → vue-ui-molecule-j5opFMNQ.js} +1 -1
- package/dist/{vue-ui-mood-radar-BUpDYe22.js → vue-ui-mood-radar-Opwn9CwC.js} +84 -83
- package/dist/{vue-ui-nested-donuts-JhqmPAhH.js → vue-ui-nested-donuts-Cc_5aNFc.js} +117 -120
- package/dist/{vue-ui-onion-DUSgz_9-.js → vue-ui-onion-CjDIGb68.js} +62 -63
- package/dist/{vue-ui-parallel-coordinate-plot-Cbn9N0y0.js → vue-ui-parallel-coordinate-plot-CcQZTqNS.js} +35 -36
- package/dist/{vue-ui-quadrant-Foz7WuoD.js → vue-ui-quadrant-FoV76r7G.js} +32 -33
- package/dist/{vue-ui-quick-chart-DVH6A-Nr.js → vue-ui-quick-chart-BPu7QR35.js} +3 -3
- package/dist/{vue-ui-radar-CDpMulQa.js → vue-ui-radar-C60tBqYo.js} +72 -73
- package/dist/{vue-ui-relation-circle-ChtfTtXY.js → vue-ui-relation-circle-CaeT1NKV.js} +1 -1
- package/dist/{vue-ui-ridgeline-DXs-IeYj.js → vue-ui-ridgeline-DpLnKVx2.js} +2 -2
- package/dist/{vue-ui-rings-BfhsTTW_.js → vue-ui-rings-Bp1MqbOV.js} +171 -172
- package/dist/{vue-ui-scatter-CYWGf_oA.js → vue-ui-scatter-C73P-oBq.js} +100 -101
- package/dist/{vue-ui-skeleton-BPUPkwbA.js → vue-ui-skeleton-BSR3VLyw.js} +1 -1
- package/dist/{vue-ui-spark-trend-Cz7B6dw6.js → vue-ui-spark-trend-BqlM3vP7.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dv89_7Pf.js → vue-ui-sparkbar-DqtEGBj9.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BOPXQq5e.js → vue-ui-sparkgauge-DWOru6YE.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BXYBq4wu.js → vue-ui-sparkhistogram-DfYv2pHk.js} +1 -1
- package/dist/{vue-ui-sparkline-B-CVRLdL.js → vue-ui-sparkline-Bu5xssk9.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dg3wvlR7.js → vue-ui-sparkstackbar-D-a14Bay.js} +1 -1
- package/dist/{vue-ui-stackbar-Dojc9vet.js → vue-ui-stackbar-BB-KLlR-.js} +45 -46
- package/dist/{vue-ui-stackline-BrZw5IXj.js → vue-ui-stackline-fWtYk_Aa.js} +119 -120
- package/dist/{vue-ui-strip-plot-Jqkr7XWO.js → vue-ui-strip-plot-D0QC2wVw.js} +1 -1
- package/dist/{vue-ui-table-B_TE9dWt.js → vue-ui-table-Rk5HCqBr.js} +2 -2
- package/dist/{vue-ui-table-sparkline-DtryAFeu.js → vue-ui-table-sparkline-Cb6fl-Ux.js} +1 -1
- package/dist/{vue-ui-thermometer-Cf2u4_lH.js → vue-ui-thermometer-ConedyG6.js} +1 -1
- package/dist/{vue-ui-timer-BCw6IHHQ.js → vue-ui-timer-B-GcfZX7.js} +1 -1
- package/dist/{vue-ui-tiremarks-AOLQC2Pm.js → vue-ui-tiremarks-BGyILItf.js} +1 -1
- package/dist/{vue-ui-treemap-C8MtnLLV.js → vue-ui-treemap-C4PiafoY.js} +33 -34
- package/dist/{vue-ui-waffle-DvQ-_joz.js → vue-ui-waffle-DvHrxSIL.js} +44 -45
- package/dist/{vue-ui-wheel-BzBzZw1d.js → vue-ui-wheel-DeKJJliu.js} +1 -1
- package/dist/{vue-ui-word-cloud-LrVTAPzW.js → vue-ui-word-cloud-IAom94Mg.js} +1 -1
- package/dist/{vue-ui-world-7DPU6qqx.js → vue-ui-world-CH9uc5uY.js} +78 -77
- package/dist/{vue-ui-xy-XsqGdS48.js → vue-ui-xy-C11EO1Ja.js} +187 -188
- package/dist/{vue-ui-xy-canvas--zevqB3i.js → vue-ui-xy-canvas-DLvVyHZO.js} +103 -104
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
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 k, toDisplayString as ie, createBlock as P, createCommentVNode as b, 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 gt, q as Pe, r as nl, n as ul, a8 as rl, s as pt, k as _e, l as M, X as il, u as vl, v as cl, Z as dl, a0 as hl, a1 as gl, K as pl, T as fl, U as yl } from "./lib-DMzrGQHK.js";
|
|
3
3
|
import { b as bl } from "./labelUtils-DX9oyq3C.js";
|
|
4
4
|
import { t as ml, u as kl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as wl } from "./useConfig-B70q17MC.js";
|
|
6
|
+
import { u as Cl } from "./usePrinter-C4t8DdQ-.js";
|
|
7
7
|
import { u as $l, B as Tl } from "./BaseScanner-C2j3TsSY.js";
|
|
8
8
|
import { u as Ll } from "./useSvgExport-BTG4hVPO.js";
|
|
9
9
|
import { u as Oe } from "./useNestedProp-DH0BEVVS.js";
|
|
@@ -44,15 +44,15 @@ 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-Cvt7Fi0Q.js")), kt = R(() => import("./BaseIcon-DX0hTWa-.js")),
|
|
47
|
+
const mt = R(() => import("./Tooltip-Cvt7Fi0Q.js")), kt = R(() => import("./BaseIcon-DX0hTWa-.js")), wt = R(() => import("./vue-ui-accordion-_zwPlx0H.js")), Ct = R(() => import("./DataTable-cMnb68Ik.js")), $t = R(
|
|
48
48
|
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
49
49
|
), Tt = R(
|
|
50
50
|
() => import("./UserOptions-DVduN6X7.js")
|
|
51
51
|
), Lt = R(
|
|
52
|
-
() => import("./PackageVersion-
|
|
52
|
+
() => import("./PackageVersion-CHNfLQ9Q.js")
|
|
53
53
|
), xt = R(
|
|
54
54
|
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
55
|
-
), { vue_ui_rings: At } =
|
|
55
|
+
), { vue_ui_rings: At } = wl(), { isThemeValid: St, warnInvalidTheme: Pt } = xl(), _t = Qt(), C = ft, x = r(!1), Fe = d(() => !!C.dataset && C.dataset.length), w = r(dt()), G = r(!1), de = r(""), m = 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), ge = r(null), oe = r(!1), se = r(!1), O = r(null), Ue = r({ x: 0, y: 0 }), Z = r("pointer"), pe = r(!1), e = r(ye()), V = d(
|
|
56
56
|
() => e.value.userOptions.useCursorPointer
|
|
57
57
|
), Ot = d(() => ht({
|
|
58
58
|
defaultConfig: {
|
|
@@ -82,10 +82,10 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
82
82
|
},
|
|
83
83
|
userConfig: e.value.skeletonConfig ?? {}
|
|
84
84
|
})), { loading: A, FINAL_DATASET: We, manualLoading: ne } = $l({
|
|
85
|
-
...el(
|
|
85
|
+
...el(C),
|
|
86
86
|
FINAL_CONFIG: e,
|
|
87
87
|
prepareConfig: ye,
|
|
88
|
-
skeletonDataset:
|
|
88
|
+
skeletonDataset: C.config?.skeletonDataset ?? [
|
|
89
89
|
{ name: "_", values: [13], color: "#808080" },
|
|
90
90
|
{ name: "_", values: [8], color: "#969696" },
|
|
91
91
|
{ name: "_", values: [5], color: "#ADADAD" },
|
|
@@ -101,26 +101,26 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
101
101
|
});
|
|
102
102
|
function ye() {
|
|
103
103
|
const t = Oe({
|
|
104
|
-
userConfig:
|
|
104
|
+
userConfig: C.config,
|
|
105
105
|
defaultConfig: At
|
|
106
106
|
}), a = t.theme;
|
|
107
107
|
if (!a) return t;
|
|
108
108
|
if (!St.value(t))
|
|
109
109
|
return Pt(t), t;
|
|
110
110
|
const l = Oe({
|
|
111
|
-
userConfig: Fl[a] ||
|
|
111
|
+
userConfig: Fl[a] || C.config,
|
|
112
112
|
defaultConfig: t
|
|
113
113
|
});
|
|
114
114
|
return {
|
|
115
115
|
...Oe({
|
|
116
|
-
userConfig:
|
|
116
|
+
userConfig: C.config,
|
|
117
117
|
defaultConfig: l
|
|
118
118
|
}),
|
|
119
119
|
customPalette: t.customPalette.length ? t.customPalette : sl[t.theme] || X
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
re(
|
|
123
|
-
() =>
|
|
123
|
+
() => C.config,
|
|
124
124
|
(t) => {
|
|
125
125
|
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;
|
|
126
126
|
},
|
|
@@ -137,7 +137,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
137
137
|
y: h.value.height / 2 + Ge.value.y
|
|
138
138
|
}));
|
|
139
139
|
re(
|
|
140
|
-
() =>
|
|
140
|
+
() => C.dataset,
|
|
141
141
|
(t) => {
|
|
142
142
|
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
143
143
|
},
|
|
@@ -149,11 +149,11 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
149
149
|
});
|
|
150
150
|
const be = d(() => !!e.value.debug);
|
|
151
151
|
function Ke() {
|
|
152
|
-
if (
|
|
152
|
+
if (gt(C.dataset) ? (Pe({
|
|
153
153
|
componentName: "VueUiRings",
|
|
154
154
|
type: "dataset",
|
|
155
155
|
debug: be.value
|
|
156
|
-
}), ne.value = !0) :
|
|
156
|
+
}), ne.value = !0) : C.dataset.forEach((t, a) => {
|
|
157
157
|
t.values.length || (Pe({
|
|
158
158
|
componentName: "VueUiRings",
|
|
159
159
|
type: "dataset",
|
|
@@ -170,7 +170,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
170
170
|
debug: be.value
|
|
171
171
|
});
|
|
172
172
|
});
|
|
173
|
-
}),
|
|
173
|
+
}), gt(C.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
174
174
|
const t = ml(() => {
|
|
175
175
|
he.value = !0;
|
|
176
176
|
const { width: a, height: l } = kl({
|
|
@@ -193,8 +193,8 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
193
193
|
ll(() => {
|
|
194
194
|
D.value && (K.value && D.value.unobserve(K.value), D.value.disconnect());
|
|
195
195
|
});
|
|
196
|
-
const { isPrinting: me, isImaging: ke, generatePdf: je, generateImage: Ye } =
|
|
197
|
-
elementId: `rings_${
|
|
196
|
+
const { isPrinting: me, isImaging: ke, generatePdf: je, generateImage: Ye } = Cl({
|
|
197
|
+
elementId: `rings_${w.value}`,
|
|
198
198
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
199
199
|
options: e.value.userOptions.print
|
|
200
200
|
}), Ft = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), qe = d(() => ul(e.value.customPalette)), f = r({
|
|
@@ -216,22 +216,22 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
216
216
|
const h = r({
|
|
217
217
|
height: e.value.style.chart.size,
|
|
218
218
|
width: e.value.style.chart.size
|
|
219
|
-
}), It = d(() => Math.min(h.value.height, h.value.width)), Ze = bt,
|
|
219
|
+
}), It = d(() => Math.min(h.value.height, h.value.width)), Ze = bt, p = r([]);
|
|
220
220
|
function Dt() {
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
p.value.length ? p.value = [] : Q.value.forEach((t) => {
|
|
222
|
+
p.value.push(t.uid);
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
function J(t) {
|
|
226
|
-
if (
|
|
227
|
-
|
|
226
|
+
if (p.value.includes(t))
|
|
227
|
+
p.value = p.value.filter((a) => a !== t);
|
|
228
228
|
else {
|
|
229
|
-
if (
|
|
230
|
-
|
|
229
|
+
if (p.value.length === U.value.length - 1) return;
|
|
230
|
+
p.value.push(t);
|
|
231
231
|
}
|
|
232
232
|
Ze(
|
|
233
233
|
"selectLegend",
|
|
234
|
-
|
|
234
|
+
g.value.map((a) => ({
|
|
235
235
|
name: a.name,
|
|
236
236
|
color: a.color,
|
|
237
237
|
value: a.value
|
|
@@ -246,14 +246,14 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
246
246
|
}
|
|
247
247
|
function Nt(t) {
|
|
248
248
|
const a = Je(t);
|
|
249
|
-
a !== null &&
|
|
249
|
+
a !== null && p.value.includes(a.uid) && J(a.uid);
|
|
250
250
|
}
|
|
251
251
|
function Rt(t) {
|
|
252
252
|
const a = Je(t);
|
|
253
|
-
a !== null && (
|
|
253
|
+
a !== null && (p.value.includes(a.uid) || J(a.uid));
|
|
254
254
|
}
|
|
255
255
|
const zt = d(() => Math.max(
|
|
256
|
-
...U.value.filter((t) => !
|
|
256
|
+
...U.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t)
|
|
257
257
|
));
|
|
258
258
|
function Qe(t) {
|
|
259
259
|
return t / zt.value;
|
|
@@ -262,7 +262,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
262
262
|
const n = rl(t).reduce((s, $) => s + $, 0);
|
|
263
263
|
return {
|
|
264
264
|
name: a,
|
|
265
|
-
color: l ||
|
|
265
|
+
color: l || pt(l) || qe.value[o] || X[o] || X[o % X.length],
|
|
266
266
|
value: n,
|
|
267
267
|
proportion: n / We.value.map((s) => (s.values || []).reduce(($, Y) => $ + Y, 0)).reduce((s, $) => s + $, 0),
|
|
268
268
|
uid: dt(),
|
|
@@ -283,18 +283,18 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
283
283
|
v: t.value / I.value * 100,
|
|
284
284
|
s: "%",
|
|
285
285
|
r: e.value.style.chart.legend.roundingPercentage
|
|
286
|
-
}), n =
|
|
286
|
+
}), n = Ce({
|
|
287
287
|
showVal: e.value.style.chart.legend.showValue,
|
|
288
288
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
289
289
|
val: l,
|
|
290
|
-
percentage:
|
|
290
|
+
percentage: p.value.includes(t.uid) ? "-%" : o
|
|
291
291
|
});
|
|
292
292
|
return {
|
|
293
293
|
...t,
|
|
294
294
|
shape: "circle",
|
|
295
|
-
opacity:
|
|
295
|
+
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
296
296
|
segregate: () => J(t.uid),
|
|
297
|
-
isSegregated:
|
|
297
|
+
isSegregated: p.value.includes(t.uid),
|
|
298
298
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
299
299
|
};
|
|
300
300
|
}).toSorted((t, a) => a.value - t.value)), Bt = d(() => ({
|
|
@@ -304,18 +304,18 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
304
304
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
305
305
|
paddingBottom: 12,
|
|
306
306
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
307
|
-
})), I = d(() => U.value.filter((t) => !
|
|
307
|
+
})), I = d(() => U.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), g = d(() => U.value.filter((t) => !p.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: n }, s) => ({
|
|
308
308
|
absoluteIndex: n,
|
|
309
309
|
uid: o,
|
|
310
310
|
name: t,
|
|
311
|
-
color: l ||
|
|
311
|
+
color: l || pt(l) || qe.value[s] || X[s] || X[s % X.length],
|
|
312
312
|
value: a,
|
|
313
313
|
proportion: Qe(a),
|
|
314
314
|
percentage: a / I.value * 100,
|
|
315
315
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Qe(a)
|
|
316
316
|
})).toSorted((t, a) => a.value - t.value));
|
|
317
317
|
function Mt() {
|
|
318
|
-
return
|
|
318
|
+
return g.value.map(
|
|
319
319
|
({ name: t, color: a, value: l, absoluteValues: o, percentage: n }) => ({
|
|
320
320
|
name: t,
|
|
321
321
|
color: a,
|
|
@@ -326,13 +326,13 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
const W = d(() => It.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
329
|
-
function
|
|
329
|
+
function we(t, a) {
|
|
330
330
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
331
331
|
}
|
|
332
332
|
function et(t, a) {
|
|
333
|
-
|
|
333
|
+
m.value = null, G.value = !1, O.value = null, Z.value = "pointer", e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Ce({ val: t, percentage: a, showVal: l, showPercentage: o }) {
|
|
336
336
|
const n = e.value.style.chart.layout.labels.dataLabels;
|
|
337
337
|
return bl({
|
|
338
338
|
config: n,
|
|
@@ -358,7 +358,7 @@ const zl = ["id"], Bl = ["id"], Ml = ["id"], Vl = { style: { position: "relative
|
|
|
358
358
|
r: a.roundingPercentage
|
|
359
359
|
});
|
|
360
360
|
return `${t.name}
|
|
361
|
-
${
|
|
361
|
+
${Ce({
|
|
362
362
|
val: l,
|
|
363
363
|
percentage: o,
|
|
364
364
|
showVal: a.showValue,
|
|
@@ -366,12 +366,12 @@ ${we({
|
|
|
366
366
|
})}`;
|
|
367
367
|
}
|
|
368
368
|
function ee(t) {
|
|
369
|
-
return
|
|
369
|
+
return pl(
|
|
370
370
|
W.value * t.proportion / 2 * 0.9 <= 0 ? 1e-4 : W.value * t.proportion / 2 * 0.9
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
function te(t, a) {
|
|
374
|
-
return a === 0 ? F.value.y : F.value.y + W.value *
|
|
374
|
+
return a === 0 ? F.value.y : F.value.y + W.value * g.value[0].proportion / 2 - W.value * t.proportion / 2 - 2 * (a + 1);
|
|
375
375
|
}
|
|
376
376
|
function S(t, a) {
|
|
377
377
|
const o = e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(W.value / 2) : W.value / 2;
|
|
@@ -385,31 +385,31 @@ ${we({
|
|
|
385
385
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
386
386
|
datapoint: t,
|
|
387
387
|
seriesIndex: a
|
|
388
|
-
}),
|
|
388
|
+
}), p.value.length === C.dataset.length) return;
|
|
389
389
|
ue.value = {
|
|
390
390
|
datapoint: t,
|
|
391
391
|
seriesIndex: a,
|
|
392
|
-
series:
|
|
392
|
+
series: g.value,
|
|
393
393
|
config: e.value
|
|
394
|
-
},
|
|
395
|
-
const o =
|
|
394
|
+
}, m.value = a, O.value = a, Z.value = l;
|
|
395
|
+
const o = g.value[a], n = e.value.style.chart.tooltip.customFormat;
|
|
396
396
|
if (fl(n) && yl(
|
|
397
397
|
() => n({
|
|
398
398
|
seriesIndex: a,
|
|
399
399
|
datapoint: t,
|
|
400
|
-
series:
|
|
400
|
+
series: g.value,
|
|
401
401
|
config: e.value
|
|
402
402
|
})
|
|
403
403
|
))
|
|
404
404
|
de.value = n({
|
|
405
405
|
seriesIndex: a,
|
|
406
406
|
datapoint: t,
|
|
407
|
-
series:
|
|
407
|
+
series: g.value,
|
|
408
408
|
config: e.value
|
|
409
409
|
});
|
|
410
410
|
else {
|
|
411
411
|
let s = "";
|
|
412
|
-
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_${
|
|
412
|
+
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_${w.value}_${t.absoluteIndex})" />` : ""}</svg>`, s += `<b>${Ce({
|
|
413
413
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
414
414
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
415
415
|
val: `<span>${_e(
|
|
@@ -433,10 +433,10 @@ ${we({
|
|
|
433
433
|
G.value = !0;
|
|
434
434
|
}
|
|
435
435
|
const N = d(() => {
|
|
436
|
-
const t =
|
|
436
|
+
const t = g.value.map((l) => ({
|
|
437
437
|
name: l.name,
|
|
438
438
|
color: l.color
|
|
439
|
-
})), a =
|
|
439
|
+
})), a = g.value.map((l) => l.value);
|
|
440
440
|
return { head: t, body: a };
|
|
441
441
|
}), j = d(() => {
|
|
442
442
|
const t = [
|
|
@@ -500,7 +500,7 @@ ${we({
|
|
|
500
500
|
[e.value.style.chart.title.subtitle.text],
|
|
501
501
|
[[""], ["val"], ["%"]]
|
|
502
502
|
].concat(a), o = hl(l);
|
|
503
|
-
t ? t(o) :
|
|
503
|
+
t ? t(o) : gl({
|
|
504
504
|
csvContent: o,
|
|
505
505
|
title: e.value.style.chart.title.text || "vue-ui-rings"
|
|
506
506
|
});
|
|
@@ -543,7 +543,7 @@ ${we({
|
|
|
543
543
|
const ae = d(() => {
|
|
544
544
|
const t = e.value.table.useDialog && !e.value.table.show, a = f.value.showTable;
|
|
545
545
|
return {
|
|
546
|
-
component: t ? xt :
|
|
546
|
+
component: t ? xt : wt,
|
|
547
547
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
548
548
|
props: t ? {
|
|
549
549
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -578,7 +578,7 @@ ${we({
|
|
|
578
578
|
}
|
|
579
579
|
);
|
|
580
580
|
function st() {
|
|
581
|
-
f.value.showTable = !1,
|
|
581
|
+
f.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
|
|
582
582
|
}
|
|
583
583
|
const Ut = d(() => Q.value.map((t) => ({
|
|
584
584
|
...t,
|
|
@@ -623,7 +623,7 @@ ${we({
|
|
|
623
623
|
async function ut() {
|
|
624
624
|
if (Ze("copyAlt", {
|
|
625
625
|
config: e.value,
|
|
626
|
-
dataset:
|
|
626
|
+
dataset: g.value
|
|
627
627
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
628
628
|
console.warn(
|
|
629
629
|
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
@@ -633,40 +633,40 @@ ${we({
|
|
|
633
633
|
await Promise.resolve(
|
|
634
634
|
e.value.userOptions.callbacks.altCopy({
|
|
635
635
|
config: e.value,
|
|
636
|
-
dataset:
|
|
636
|
+
dataset: g.value
|
|
637
637
|
})
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
640
|
function Yt() {
|
|
641
|
-
O.value = null,
|
|
641
|
+
O.value = null, pe.value = !0;
|
|
642
642
|
}
|
|
643
643
|
function qt() {
|
|
644
|
-
O.value = null, Z.value = "pointer", G.value = !1,
|
|
644
|
+
O.value = null, Z.value = "pointer", G.value = !1, m.value = null, pe.value = !1;
|
|
645
645
|
}
|
|
646
646
|
function Zt(t) {
|
|
647
|
-
if (!E.value || le.value || document.activeElement !== E.value || !
|
|
647
|
+
if (!E.value || le.value || document.activeElement !== E.value || !g.value.length || p.value.length === C.dataset.length) return;
|
|
648
648
|
const a = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), o = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
|
|
649
649
|
if (!a && !l && !o && !n)
|
|
650
650
|
return;
|
|
651
651
|
if (t.preventDefault(), t.stopPropagation(), n) {
|
|
652
|
-
O.value = null, Z.value = "pointer", G.value = !1,
|
|
652
|
+
O.value = null, Z.value = "pointer", G.value = !1, m.value = null;
|
|
653
653
|
return;
|
|
654
654
|
}
|
|
655
655
|
if (o) {
|
|
656
656
|
if (O.value === null) return;
|
|
657
|
-
const Y =
|
|
657
|
+
const Y = g.value[O.value];
|
|
658
658
|
if (!Y) return;
|
|
659
|
-
|
|
659
|
+
we(Y, O.value);
|
|
660
660
|
return;
|
|
661
661
|
}
|
|
662
662
|
let s = O.value;
|
|
663
|
-
s === null || s < 0 || s >=
|
|
664
|
-
const $ =
|
|
663
|
+
s === null || s < 0 || s >= g.value.length ? s = l ? 0 : g.value.length - 1 : l ? (s += 1, s >= g.value.length && (s = 0)) : a && (s -= 1, s < 0 && (s = g.value.length - 1));
|
|
664
|
+
const $ = g.value[s];
|
|
665
665
|
$ && (Jt(s), $e($, s, "keyboard"));
|
|
666
666
|
}
|
|
667
667
|
function Jt(t) {
|
|
668
668
|
if (!Number.isFinite(t) || !E.value) return;
|
|
669
|
-
const a =
|
|
669
|
+
const a = g.value[t];
|
|
670
670
|
if (!a) return;
|
|
671
671
|
const l = S(a, t), o = E.value.getBoundingClientRect();
|
|
672
672
|
Ue.value = {
|
|
@@ -698,26 +698,26 @@ ${we({
|
|
|
698
698
|
ref: _,
|
|
699
699
|
class: B(`vue-data-ui-component vue-ui-rings ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
700
700
|
style: z(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
701
|
-
id: `rings_${
|
|
701
|
+
id: `rings_${w.value}`,
|
|
702
702
|
onMouseleave: a[2] || (a[2] = (l) => {
|
|
703
|
-
|
|
703
|
+
m.value = null, G.value = !1, u(He)(!1);
|
|
704
704
|
}),
|
|
705
705
|
onMouseenter: a[3] || (a[3] = () => u(He)(!0))
|
|
706
706
|
}, [
|
|
707
|
-
|
|
708
|
-
id: `chart-instructions-${
|
|
707
|
+
k("div", {
|
|
708
|
+
id: `chart-instructions-${w.value}`,
|
|
709
709
|
class: "sr-only"
|
|
710
710
|
}, [
|
|
711
|
-
|
|
711
|
+
k("p", null, ie(e.value.a11y.translations.keyboardNavigation), 1)
|
|
712
712
|
], 8, Bl),
|
|
713
713
|
xe.value?.rows?.length ? (i(), P(Dl, {
|
|
714
714
|
key: 0,
|
|
715
|
-
uid:
|
|
715
|
+
uid: w.value,
|
|
716
716
|
head: xe.value.headers,
|
|
717
717
|
body: xe.value.rows,
|
|
718
718
|
notice: e.value.a11y.translations.tableAvailable,
|
|
719
719
|
caption: e.value.a11y.translations.tableCaption
|
|
720
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) :
|
|
720
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : b("", !0),
|
|
721
721
|
e.value.userOptions.buttons.annotator ? (i(), P(u($t), {
|
|
722
722
|
key: 1,
|
|
723
723
|
svgRef: u(E),
|
|
@@ -746,14 +746,14 @@ ${we({
|
|
|
746
746
|
c(t.$slots, "annotator-action-delete", T(L({ disabled: l })), void 0, !0)
|
|
747
747
|
]),
|
|
748
748
|
_: 3
|
|
749
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) :
|
|
749
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : b("", !0),
|
|
750
750
|
Ft.value ? (i(), y("div", {
|
|
751
751
|
key: 2,
|
|
752
752
|
ref_key: "noTitle",
|
|
753
753
|
ref: ze,
|
|
754
754
|
class: "vue-data-ui-no-title-space",
|
|
755
755
|
style: "height:36px; width: 100%;background:transparent"
|
|
756
|
-
}, null, 512)) :
|
|
756
|
+
}, null, 512)) : b("", !0),
|
|
757
757
|
e.value.style.chart.title.text ? (i(), y("div", {
|
|
758
758
|
key: 3,
|
|
759
759
|
ref_key: "chartTitle",
|
|
@@ -773,19 +773,19 @@ ${we({
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
}, null, 8, ["config"]))
|
|
776
|
-
], 512)) :
|
|
777
|
-
|
|
778
|
-
id: `legend-top-${
|
|
776
|
+
], 512)) : b("", !0),
|
|
777
|
+
k("div", {
|
|
778
|
+
id: `legend-top-${w.value}`
|
|
779
779
|
}, null, 8, Ml),
|
|
780
780
|
e.value.userOptions.show && Fe.value && (u(Xe) || u(fe)) ? (i(), P(u(Tt), {
|
|
781
781
|
ref_key: "userOptionsRef",
|
|
782
|
-
ref:
|
|
782
|
+
ref: ge,
|
|
783
783
|
key: `user_options_${Ie.value}`,
|
|
784
784
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
785
785
|
color: e.value.style.chart.color,
|
|
786
786
|
isPrinting: u(me),
|
|
787
787
|
isImaging: u(ke),
|
|
788
|
-
uid:
|
|
788
|
+
uid: w.value,
|
|
789
789
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
790
790
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
791
791
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -897,8 +897,8 @@ ${we({
|
|
|
897
897
|
]),
|
|
898
898
|
key: "10"
|
|
899
899
|
} : void 0
|
|
900
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "hasLabel", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) :
|
|
901
|
-
|
|
900
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "hasLabel", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : b("", !0),
|
|
901
|
+
k("div", Vl, [
|
|
902
902
|
(i(), y("svg", {
|
|
903
903
|
ref_key: "svgRef",
|
|
904
904
|
ref: E,
|
|
@@ -910,7 +910,7 @@ ${we({
|
|
|
910
910
|
}),
|
|
911
911
|
viewBox: `0 0 ${h.value.width <= 0 ? 10 : h.value.width} ${h.value.height <= 0 ? 10 : h.value.height}`,
|
|
912
912
|
style: z(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
|
|
913
|
-
"aria-describedby": `chart-instructions-${
|
|
913
|
+
"aria-describedby": `chart-instructions-${w.value}`,
|
|
914
914
|
tabindex: "0",
|
|
915
915
|
onFocus: Yt,
|
|
916
916
|
onBlur: qt,
|
|
@@ -928,43 +928,43 @@ ${we({
|
|
|
928
928
|
}
|
|
929
929
|
}, [
|
|
930
930
|
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
931
|
-
], 8, Ul)) :
|
|
932
|
-
|
|
933
|
-
(i(!0), y(ce, null, Se(
|
|
931
|
+
], 8, Ul)) : b("", !0),
|
|
932
|
+
k("defs", null, [
|
|
933
|
+
(i(!0), y(ce, null, Se(g.value, (l, o) => (i(), y("radialGradient", {
|
|
934
934
|
cx: "50%",
|
|
935
935
|
cy: "30%",
|
|
936
936
|
r: "50%",
|
|
937
937
|
fx: "50%",
|
|
938
938
|
fy: "50%",
|
|
939
|
-
id: `gradient_${
|
|
939
|
+
id: `gradient_${w.value}_${o}`
|
|
940
940
|
}, [
|
|
941
|
-
|
|
941
|
+
k("stop", {
|
|
942
942
|
offset: "0%",
|
|
943
943
|
"stop-color": u(vl)(
|
|
944
944
|
u(cl)(l.color, 0.05),
|
|
945
945
|
100 - e.value.style.chart.layout.rings.gradient.intensity
|
|
946
946
|
)
|
|
947
947
|
}, null, 8, Hl),
|
|
948
|
-
|
|
948
|
+
k("stop", {
|
|
949
949
|
offset: "100%",
|
|
950
950
|
"stop-color": l.color
|
|
951
951
|
}, null, 8, Xl)
|
|
952
952
|
], 8, Wl))), 256))
|
|
953
953
|
]),
|
|
954
954
|
t.$slots.pattern ? (i(), y("g", Gl, [
|
|
955
|
-
(i(!0), y(ce, null, Se(
|
|
955
|
+
(i(!0), y(ce, null, Se(g.value, (l) => (i(), y("defs", null, [
|
|
956
956
|
c(t.$slots, "pattern", it({ ref_for: !0 }, {
|
|
957
957
|
seriesIndex: l.absoluteIndex,
|
|
958
|
-
patternId: `pattern_${
|
|
958
|
+
patternId: `pattern_${w.value}_${l.absoluteIndex}`
|
|
959
959
|
}), void 0, !0)
|
|
960
960
|
]))), 256))
|
|
961
|
-
])) :
|
|
962
|
-
(i(!0), y(ce, null, Se(
|
|
963
|
-
|
|
961
|
+
])) : b("", !0),
|
|
962
|
+
(i(!0), y(ce, null, Se(g.value, (l, o) => (i(), y("g", null, [
|
|
963
|
+
k("circle", {
|
|
964
964
|
class: B({
|
|
965
965
|
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
966
966
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
967
|
-
"vue-ui-rings-opacity":
|
|
967
|
+
"vue-ui-rings-opacity": m.value !== null && m.value !== o
|
|
968
968
|
}),
|
|
969
969
|
style: z(`animation-delay:${o * 100}ms`),
|
|
970
970
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
@@ -973,12 +973,12 @@ ${we({
|
|
|
973
973
|
r: ee(l),
|
|
974
974
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
975
975
|
}, null, 14, Kl),
|
|
976
|
-
|
|
976
|
+
k("circle", {
|
|
977
977
|
class: B({
|
|
978
978
|
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
979
979
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
980
980
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
981
|
-
"vue-ui-rings-blur":
|
|
981
|
+
"vue-ui-rings-blur": m.value !== null && m.value !== o
|
|
982
982
|
}),
|
|
983
983
|
style: z(`animation-delay:${o * 100}ms`),
|
|
984
984
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
@@ -986,7 +986,7 @@ ${we({
|
|
|
986
986
|
cx: F.value.x,
|
|
987
987
|
cy: te(l, o),
|
|
988
988
|
r: ee(l),
|
|
989
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
989
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${o})` : l.color
|
|
990
990
|
}, null, 14, jl),
|
|
991
991
|
t.$slots.pattern ? (i(), y("circle", {
|
|
992
992
|
key: 0,
|
|
@@ -994,7 +994,7 @@ ${we({
|
|
|
994
994
|
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
995
995
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
996
996
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
997
|
-
"vue-ui-rings-blur":
|
|
997
|
+
"vue-ui-rings-blur": m.value !== null && m.value !== o
|
|
998
998
|
}),
|
|
999
999
|
style: z(`animation-delay:${o * 100}ms`),
|
|
1000
1000
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
@@ -1002,9 +1002,9 @@ ${we({
|
|
|
1002
1002
|
cx: F.value.x,
|
|
1003
1003
|
cy: te(l, o),
|
|
1004
1004
|
r: ee(l),
|
|
1005
|
-
fill: `url(#pattern_${
|
|
1006
|
-
}, null, 14, Yl)) :
|
|
1007
|
-
|
|
1005
|
+
fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
|
|
1006
|
+
}, null, 14, Yl)) : b("", !0),
|
|
1007
|
+
k("circle", {
|
|
1008
1008
|
stroke: "none",
|
|
1009
1009
|
cx: F.value.x,
|
|
1010
1010
|
cy: te(l, o),
|
|
@@ -1012,10 +1012,10 @@ ${we({
|
|
|
1012
1012
|
fill: "transparent",
|
|
1013
1013
|
onMouseenter: (n) => $e(l, o, "pointer"),
|
|
1014
1014
|
onMouseleave: (n) => et(l, o),
|
|
1015
|
-
onClick: (n) =>
|
|
1015
|
+
onClick: (n) => we(l, o)
|
|
1016
1016
|
}, null, 40, ql),
|
|
1017
1017
|
f.value.showLabels ? (i(), y(ce, { key: 1 }, [
|
|
1018
|
-
|
|
1018
|
+
k("rect", {
|
|
1019
1019
|
x: e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? S(l, o).x : F.value.x,
|
|
1020
1020
|
y: S(l, o).y - e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
1021
1021
|
width: Math.abs(
|
|
@@ -1028,10 +1028,10 @@ ${we({
|
|
|
1028
1028
|
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
1029
1029
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
1030
1030
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
1031
|
-
"vue-ui-rings-blur":
|
|
1031
|
+
"vue-ui-rings-blur": m.value !== null && m.value !== o
|
|
1032
1032
|
})
|
|
1033
1033
|
}, null, 10, Zl),
|
|
1034
|
-
|
|
1034
|
+
k("circle", {
|
|
1035
1035
|
cx: S(l, o).x,
|
|
1036
1036
|
cy: S(l, o).y,
|
|
1037
1037
|
r: e.value.style.chart.layout.labels.dataLabels.markers.radius,
|
|
@@ -1041,10 +1041,10 @@ ${we({
|
|
|
1041
1041
|
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
1042
1042
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
1043
1043
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
1044
|
-
"vue-ui-rings-blur":
|
|
1044
|
+
"vue-ui-rings-blur": m.value !== null && m.value !== o
|
|
1045
1045
|
})
|
|
1046
1046
|
}, null, 10, Jl),
|
|
1047
|
-
|
|
1047
|
+
k("text", {
|
|
1048
1048
|
x: S(l, o).x + (e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -e.value.style.chart.layout.labels.dataLabels.offsetX : e.value.style.chart.layout.labels.dataLabels.offsetX),
|
|
1049
1049
|
y: S(l, o).y + e.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
1050
1050
|
"text-anchor": e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
|
|
@@ -1055,11 +1055,11 @@ ${we({
|
|
|
1055
1055
|
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
1056
1056
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !u(A),
|
|
1057
1057
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
1058
|
-
"vue-ui-rings-blur":
|
|
1058
|
+
"vue-ui-rings-blur": m.value !== null && m.value !== o
|
|
1059
1059
|
}),
|
|
1060
1060
|
onMouseenter: (n) => $e(l, o, "pointer"),
|
|
1061
1061
|
onMouseleave: (n) => et(l, o),
|
|
1062
|
-
onClick: (n) =>
|
|
1062
|
+
onClick: (n) => we(l, o),
|
|
1063
1063
|
innerHTML: u(dl)({
|
|
1064
1064
|
content: Vt(l),
|
|
1065
1065
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -1069,7 +1069,7 @@ ${we({
|
|
|
1069
1069
|
translateY: !0
|
|
1070
1070
|
})
|
|
1071
1071
|
}, null, 42, Ql)
|
|
1072
|
-
], 64)) :
|
|
1072
|
+
], 64)) : b("", !0)
|
|
1073
1073
|
]))), 256)),
|
|
1074
1074
|
c(t.$slots, "svg", {
|
|
1075
1075
|
svg: {
|
|
@@ -1082,72 +1082,71 @@ ${we({
|
|
|
1082
1082
|
t.$slots.hint ? (i(), y("div", ea, [
|
|
1083
1083
|
c(t.$slots, "hint", T(L({
|
|
1084
1084
|
hint: e.value.a11y.translations.keyboardNavigation,
|
|
1085
|
-
isVisible:
|
|
1085
|
+
isVisible: pe.value
|
|
1086
1086
|
})), void 0, !0)
|
|
1087
|
-
])) :
|
|
1087
|
+
])) : b("", !0)
|
|
1088
1088
|
]),
|
|
1089
1089
|
t.$slots.watermark ? (i(), y("div", ta, [
|
|
1090
1090
|
c(t.$slots, "watermark", T(L({
|
|
1091
1091
|
isPrinting: u(me) || u(ke) || oe.value || se.value
|
|
1092
1092
|
})), void 0, !0)
|
|
1093
|
-
])) :
|
|
1094
|
-
|
|
1095
|
-
id: `legend-bottom-${
|
|
1093
|
+
])) : b("", !0),
|
|
1094
|
+
k("div", {
|
|
1095
|
+
id: `legend-bottom-${w.value}`
|
|
1096
1096
|
}, null, 8, la),
|
|
1097
|
-
Ee.value ? (i(), P(al, {
|
|
1097
|
+
Ee.value && (e.value.style.chart.legend.show || t.$slots.legend) ? (i(), P(al, {
|
|
1098
1098
|
key: 6,
|
|
1099
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1099
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
1100
1100
|
}, [
|
|
1101
|
-
|
|
1101
|
+
k("div", {
|
|
1102
1102
|
ref_key: "chartLegend",
|
|
1103
1103
|
ref: Ne
|
|
1104
1104
|
}, [
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
legendToggle: v(() => [
|
|
1120
|
-
Q.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !u(A) ? (i(), P(Nl, {
|
|
1121
|
-
key: 0,
|
|
1122
|
-
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1123
|
-
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1124
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
1125
|
-
checked: g.value.length > 0,
|
|
1126
|
-
isCursorPointer: V.value,
|
|
1127
|
-
onToggle: Dt
|
|
1128
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : k("", !0)
|
|
1129
|
-
]),
|
|
1130
|
-
_: 2
|
|
1131
|
-
}, [
|
|
1132
|
-
t.$slots.pattern ? {
|
|
1133
|
-
name: "legend-pattern",
|
|
1134
|
-
fn: v(({ legend: l, index: o }) => [
|
|
1135
|
-
ve(_l, {
|
|
1136
|
-
shape: l.shape,
|
|
1137
|
-
radius: 30,
|
|
1138
|
-
stroke: "none",
|
|
1139
|
-
plot: { x: 30, y: 30 },
|
|
1140
|
-
fill: `url(#pattern_${C.value}_${o})`
|
|
1141
|
-
}, null, 8, ["shape", "fill"])
|
|
1105
|
+
c(t.$slots, "legend", { legend: Q.value }, () => [
|
|
1106
|
+
e.value.style.chart.legend.show ? (i(), P(Il, {
|
|
1107
|
+
key: `legend_${Ve.value}`,
|
|
1108
|
+
legendSet: Q.value,
|
|
1109
|
+
config: Bt.value,
|
|
1110
|
+
isCursorPointer: V.value,
|
|
1111
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l.uid))
|
|
1112
|
+
}, Ae({
|
|
1113
|
+
item: v(({ legend: l, index: o }) => [
|
|
1114
|
+
u(A) ? b("", !0) : (i(), y("div", {
|
|
1115
|
+
key: 0,
|
|
1116
|
+
onClick: (n) => J(l.uid),
|
|
1117
|
+
style: z(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1118
|
+
}, ie(l.display), 13, aa))
|
|
1142
1119
|
]),
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1120
|
+
legendToggle: v(() => [
|
|
1121
|
+
Q.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !u(A) ? (i(), P(Nl, {
|
|
1122
|
+
key: 0,
|
|
1123
|
+
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1124
|
+
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1125
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
1126
|
+
checked: p.value.length > 0,
|
|
1127
|
+
isCursorPointer: V.value,
|
|
1128
|
+
onToggle: Dt
|
|
1129
|
+
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : b("", !0)
|
|
1130
|
+
]),
|
|
1131
|
+
_: 2
|
|
1132
|
+
}, [
|
|
1133
|
+
t.$slots.pattern ? {
|
|
1134
|
+
name: "legend-pattern",
|
|
1135
|
+
fn: v(({ legend: l, index: o }) => [
|
|
1136
|
+
ve(_l, {
|
|
1137
|
+
shape: l.shape,
|
|
1138
|
+
radius: 30,
|
|
1139
|
+
stroke: "none",
|
|
1140
|
+
plot: { x: 30, y: 30 },
|
|
1141
|
+
fill: `url(#pattern_${w.value}_${o})`
|
|
1142
|
+
}, null, 8, ["shape", "fill"])
|
|
1143
|
+
]),
|
|
1144
|
+
key: "0"
|
|
1145
|
+
} : void 0
|
|
1146
|
+
]), 1032, ["legendSet", "config", "isCursorPointer"])) : b("", !0)
|
|
1147
|
+
], !0)
|
|
1149
1148
|
], 512)
|
|
1150
|
-
], 8, ["to"])) :
|
|
1149
|
+
], 8, ["to"])) : b("", !0),
|
|
1151
1150
|
t.$slots.source ? (i(), y("div", {
|
|
1152
1151
|
key: 7,
|
|
1153
1152
|
ref_key: "source",
|
|
@@ -1155,10 +1154,10 @@ ${we({
|
|
|
1155
1154
|
dir: "auto"
|
|
1156
1155
|
}, [
|
|
1157
1156
|
c(t.$slots, "source", {}, void 0, !0)
|
|
1158
|
-
], 512)) :
|
|
1157
|
+
], 512)) : b("", !0),
|
|
1159
1158
|
ve(u(mt), {
|
|
1160
1159
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1161
|
-
show: f.value.showTooltip && G.value &&
|
|
1160
|
+
show: f.value.showTooltip && G.value && p.value.length < C.dataset.length,
|
|
1162
1161
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1163
1162
|
color: e.value.style.chart.tooltip.color,
|
|
1164
1163
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1196,7 +1195,7 @@ ${we({
|
|
|
1196
1195
|
onClose: st
|
|
1197
1196
|
}), Ae({
|
|
1198
1197
|
content: v(() => [
|
|
1199
|
-
(i(), P(u(
|
|
1198
|
+
(i(), P(u(Ct), {
|
|
1200
1199
|
key: `table_${Me.value}`,
|
|
1201
1200
|
colNames: j.value.colNames,
|
|
1202
1201
|
head: j.value.head,
|
|
@@ -1208,7 +1207,7 @@ ${we({
|
|
|
1208
1207
|
onClose: st
|
|
1209
1208
|
}, {
|
|
1210
1209
|
th: v(({ th: l }) => [
|
|
1211
|
-
|
|
1210
|
+
k("div", {
|
|
1212
1211
|
innerHTML: l,
|
|
1213
1212
|
style: { display: "flex", "align-items": "center" }
|
|
1214
1213
|
}, null, 8, oa)
|
|
@@ -1231,7 +1230,7 @@ ${we({
|
|
|
1231
1230
|
e.value.table.useDialog ? {
|
|
1232
1231
|
name: "actions",
|
|
1233
1232
|
fn: v(() => [
|
|
1234
|
-
|
|
1233
|
+
k("button", {
|
|
1235
1234
|
tabindex: "0",
|
|
1236
1235
|
class: "vue-ui-user-options-button",
|
|
1237
1236
|
onClick: a[1] || (a[1] = (l) => Te(e.value.userOptions.callbacks.csv)),
|
|
@@ -1245,13 +1244,13 @@ ${we({
|
|
|
1245
1244
|
]),
|
|
1246
1245
|
key: "1"
|
|
1247
1246
|
} : void 0
|
|
1248
|
-
]), 1040)) :
|
|
1247
|
+
]), 1040)) : b("", !0),
|
|
1249
1248
|
c(t.$slots, "skeleton", {}, () => [
|
|
1250
|
-
u(A) ? (i(), P(Tl, { key: 0 })) :
|
|
1249
|
+
u(A) ? (i(), P(Tl, { key: 0 })) : b("", !0)
|
|
1251
1250
|
], !0)
|
|
1252
1251
|
], 46, zl));
|
|
1253
1252
|
}
|
|
1254
|
-
}, xa = /* @__PURE__ */ Rl(sa, [["__scopeId", "data-v-
|
|
1253
|
+
}, xa = /* @__PURE__ */ Rl(sa, [["__scopeId", "data-v-8412c2c4"]]);
|
|
1255
1254
|
export {
|
|
1256
1255
|
xa as default
|
|
1257
1256
|
};
|