vue-data-ui 2.12.8-beta.3 → 2.13.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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as I, useSlots as et, ref as i, computed as
|
|
2
|
-
import { u as nt, c as Ie, t as ut, p as A, a as rt, o as it, e as te, g as vt, b as ct, H as dt, d as Ne, f as S, X as pt, s as ht, w as gt, v as j, i as Pe, q as ft, r as yt, x as mt, y as bt } from "./index-
|
|
1
|
+
import { defineAsyncComponent as I, useSlots as et, ref as i, computed as f, watch as tt, shallowRef as _e, onMounted as lt, onBeforeUnmount as ot, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as N, normalizeClass as U, createBlock as P, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as xe, withCtx as g, renderSlot as p, normalizeProps as R, guardReactiveProps as M, Fragment as Z, renderList as ee, mergeProps as at, createTextVNode as Oe, toDisplayString as G, nextTick as st } from "vue";
|
|
2
|
+
import { u as nt, c as Ie, t as ut, p as A, a as rt, o as it, e as te, g as vt, b as ct, H as dt, d as Ne, f as S, X as pt, s as ht, w as gt, v as j, i as Pe, q as ft, r as yt, x as mt, y as bt } from "./index-BXbyT0Qn.js";
|
|
3
3
|
import { t as kt, u as Ct } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as Ae } from "./useNestedProp-
|
|
5
|
-
import { u as wt } from "./usePrinter-
|
|
4
|
+
import { u as Ae } from "./useNestedProp-DVZpeH84.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-aKh5-HcK.js";
|
|
6
6
|
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import _t from "./Legend-
|
|
9
|
-
import xt from "./Title-
|
|
10
|
-
import { _ as Ot } from "./Shape-
|
|
8
|
+
import _t from "./Legend-DcDRW3Xd.js";
|
|
9
|
+
import xt from "./Title-DoWqzga-.js";
|
|
10
|
+
import { _ as Ot } from "./Shape-CnD-h_98.js";
|
|
11
11
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["id"], Ft = ["stop-color"], Lt = ["stop-color"], Rt = { key: 1 }, Mt = ["stroke", "cx", "cy", "r", "fill"], Vt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], zt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Ut = ["cx", "cy", "r", "onMouseenter"], Wt = {
|
|
13
13
|
key: 5,
|
|
@@ -30,7 +30,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend"],
|
|
32
32
|
setup(Se, { expose: Fe, emit: Le }) {
|
|
33
|
-
const Re = I(() => import("./vue-ui-accordion-
|
|
33
|
+
const Re = I(() => import("./vue-ui-accordion-CXsjHe1y.js")), Me = I(() => import("./DataTable-DBkfb6pd.js")), Ve = I(() => import("./PackageVersion-C5fpg4GN.js")), ze = I(() => import("./PenAndPaper-BRkuVFb4.js")), Ue = I(() => import("./vue-ui-skeleton-Fxr752Oi.js")), We = I(() => import("./Tooltip-DYCBNM-_.js")), Be = I(() => import("./UserOptions-B3q-xfQV.js")), { vue_ui_rings: Ee } = nt(), De = et(), b = Se, O = i(!1), W = f(() => !!b.dataset && b.dataset.length), w = i(Ie()), He = i(null), B = i(!1), X = i(""), $ = i(null), le = i(0), V = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = f({
|
|
34
34
|
get: () => pe(),
|
|
35
35
|
set: (t) => t
|
|
36
36
|
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = $t({ config: e.value }), { svgRef: de } = Tt({ config: e.value.style.chart.title });
|
|
@@ -99,61 +99,61 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
99
99
|
elementId: `rings_${w.value}`,
|
|
100
100
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
101
101
|
options: e.value.userOptions.print
|
|
102
|
-
}), Ge =
|
|
102
|
+
}), Ge = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => ct(e.value.customPalette)), k = i({
|
|
103
103
|
showTable: e.value.table.show,
|
|
104
104
|
showTooltip: e.value.style.chart.tooltip.show
|
|
105
105
|
}), n = i({
|
|
106
106
|
height: 360,
|
|
107
107
|
width: 360
|
|
108
|
-
}), je =
|
|
108
|
+
}), je = f(() => Math.min(n.value.height, n.value.width)), Xe = Le, y = i([]);
|
|
109
109
|
function Y(t) {
|
|
110
|
-
|
|
110
|
+
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Xe("selectLegend", h.value.map((o) => ({
|
|
111
111
|
name: o.name,
|
|
112
112
|
color: o.color,
|
|
113
113
|
value: o.value
|
|
114
114
|
})));
|
|
115
115
|
}
|
|
116
|
-
const qe =
|
|
117
|
-
...E.value.filter((t) => !
|
|
116
|
+
const qe = f(() => Math.max(
|
|
117
|
+
...E.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
|
|
118
118
|
));
|
|
119
119
|
function ke(t) {
|
|
120
120
|
return t / qe.value;
|
|
121
121
|
}
|
|
122
|
-
const E =
|
|
123
|
-
const r = dt(t).reduce((
|
|
122
|
+
const E = f(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
123
|
+
const r = dt(t).reduce((v, z) => v + z, 0);
|
|
124
124
|
return {
|
|
125
125
|
name: o,
|
|
126
126
|
color: l || Ne(l) || be.value[a] || A[a] || A[a % A.length],
|
|
127
127
|
value: r,
|
|
128
|
-
proportion: r / b.dataset.map((
|
|
128
|
+
proportion: r / b.dataset.map((v) => (v.values || []).reduce((z, Ze) => z + Ze, 0)).reduce((v, z) => v + z, 0),
|
|
129
129
|
uid: Ie(),
|
|
130
130
|
absoluteIndex: a
|
|
131
131
|
};
|
|
132
|
-
})), Ce =
|
|
132
|
+
})), Ce = f(() => E.value.map((t) => ({
|
|
133
133
|
...t,
|
|
134
134
|
shape: "circle",
|
|
135
|
-
opacity:
|
|
135
|
+
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
136
136
|
segregate: () => Y(t.uid),
|
|
137
|
-
isSegregated:
|
|
138
|
-
})).toSorted((t, o) => o.value - t.value)), Ye =
|
|
137
|
+
isSegregated: y.value.includes(t.uid)
|
|
138
|
+
})).toSorted((t, o) => o.value - t.value)), Ye = f(() => ({
|
|
139
139
|
cy: "rings-div-legend",
|
|
140
140
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
141
141
|
color: e.value.style.chart.legend.color,
|
|
142
142
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
143
143
|
paddingBottom: 12,
|
|
144
144
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
145
|
-
})), C =
|
|
145
|
+
})), C = f(() => E.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), h = f(() => E.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
|
|
146
146
|
absoluteIndex: r,
|
|
147
147
|
uid: a,
|
|
148
148
|
name: t,
|
|
149
|
-
color: l || Ne(l) || be.value[
|
|
149
|
+
color: l || Ne(l) || be.value[v] || A[v] || A[v % A.length],
|
|
150
150
|
value: o,
|
|
151
151
|
proportion: ke(o),
|
|
152
152
|
percentage: o / C.value * 100,
|
|
153
153
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
|
|
154
154
|
})).toSorted((t, o) => o.value - t.value));
|
|
155
155
|
function Je() {
|
|
156
|
-
return
|
|
156
|
+
return h.value.map(
|
|
157
157
|
({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
|
|
158
158
|
name: t,
|
|
159
159
|
color: o,
|
|
@@ -163,26 +163,26 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
163
163
|
})
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const d = f(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
|
|
167
167
|
function Ke(t, o) {
|
|
168
|
-
if (
|
|
168
|
+
if (y.value.length === b.dataset.length) return;
|
|
169
169
|
J.value = {
|
|
170
170
|
datapoint: o,
|
|
171
171
|
seriesIndex: t,
|
|
172
|
-
series:
|
|
172
|
+
series: h.value,
|
|
173
173
|
config: e.value
|
|
174
174
|
}, $.value = t;
|
|
175
|
-
const l =
|
|
175
|
+
const l = h.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
176
176
|
if (mt(a) && bt(() => a({
|
|
177
177
|
seriesIndex: t,
|
|
178
178
|
datapoint: o,
|
|
179
|
-
series:
|
|
179
|
+
series: h.value,
|
|
180
180
|
config: e.value
|
|
181
181
|
})))
|
|
182
182
|
X.value = a({
|
|
183
183
|
seriesIndex: t,
|
|
184
184
|
datapoint: o,
|
|
185
|
-
series:
|
|
185
|
+
series: h.value,
|
|
186
186
|
config: e.value
|
|
187
187
|
});
|
|
188
188
|
else {
|
|
@@ -210,24 +210,24 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
210
210
|
}
|
|
211
211
|
B.value = !0;
|
|
212
212
|
}
|
|
213
|
-
const x =
|
|
214
|
-
const t =
|
|
213
|
+
const x = f(() => {
|
|
214
|
+
const t = h.value.map((l) => ({
|
|
215
215
|
name: l.name,
|
|
216
216
|
color: l.color
|
|
217
|
-
})), o =
|
|
217
|
+
})), o = h.value.map((l) => l.value);
|
|
218
218
|
return { head: t, body: o };
|
|
219
|
-
}), D =
|
|
219
|
+
}), D = f(() => {
|
|
220
220
|
const t = [
|
|
221
221
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
222
222
|
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
223
223
|
"100%"
|
|
224
|
-
], o = x.value.head.map((r,
|
|
224
|
+
], o = x.value.head.map((r, v) => [
|
|
225
225
|
{
|
|
226
226
|
color: r.color,
|
|
227
227
|
name: r.name
|
|
228
228
|
},
|
|
229
|
-
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[
|
|
230
|
-
isNaN(x.value.body[
|
|
229
|
+
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
230
|
+
isNaN(x.value.body[v] / C.value) ? "-" : (x.value.body[v] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
231
231
|
]), l = {
|
|
232
232
|
th: {
|
|
233
233
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -252,12 +252,12 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
252
252
|
colNames: a
|
|
253
253
|
};
|
|
254
254
|
});
|
|
255
|
-
function we() {
|
|
255
|
+
function we(t = null) {
|
|
256
256
|
st(() => {
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
], [x.value.body[
|
|
260
|
-
yt({ csvContent:
|
|
257
|
+
const o = x.value.head.map((r, v) => [[
|
|
258
|
+
r.name
|
|
259
|
+
], [x.value.body[v]], [isNaN(x.value.body[v] / C.value) ? "-" : x.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = ft(l);
|
|
260
|
+
t ? t(a) : yt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
const L = i(!1);
|
|
@@ -282,7 +282,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
282
282
|
toggleTable: $e,
|
|
283
283
|
toggleTooltip: Te,
|
|
284
284
|
toggleAnnotator: K
|
|
285
|
-
}), (t, o) => (u(),
|
|
285
|
+
}), (t, o) => (u(), c("div", {
|
|
286
286
|
ref_key: "ringsChart",
|
|
287
287
|
ref: V,
|
|
288
288
|
class: U(`vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -301,14 +301,14 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
301
301
|
active: H.value,
|
|
302
302
|
onClose: K
|
|
303
303
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
304
|
-
Ge.value ? (u(),
|
|
304
|
+
Ge.value ? (u(), c("div", {
|
|
305
305
|
key: 1,
|
|
306
306
|
ref_key: "noTitle",
|
|
307
307
|
ref: ne,
|
|
308
308
|
class: "vue-data-ui-no-title-space",
|
|
309
309
|
style: "height:36px; width: 100%;background:transparent"
|
|
310
310
|
}, null, 512)) : m("", !0),
|
|
311
|
-
e.value.style.chart.title.text ? (u(),
|
|
311
|
+
e.value.style.chart.title.text ? (u(), c("div", {
|
|
312
312
|
key: 2,
|
|
313
313
|
ref_key: "chartTitle",
|
|
314
314
|
ref: oe,
|
|
@@ -364,62 +364,62 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
364
364
|
}, xe({ _: 2 }, [
|
|
365
365
|
t.$slots.menuIcon ? {
|
|
366
366
|
name: "menuIcon",
|
|
367
|
-
fn:
|
|
368
|
-
|
|
367
|
+
fn: g(({ isOpen: l, color: a }) => [
|
|
368
|
+
p(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
|
|
369
369
|
]),
|
|
370
370
|
key: "0"
|
|
371
371
|
} : void 0,
|
|
372
372
|
t.$slots.optionTooltip ? {
|
|
373
373
|
name: "optionTooltip",
|
|
374
|
-
fn:
|
|
375
|
-
|
|
374
|
+
fn: g(() => [
|
|
375
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
376
376
|
]),
|
|
377
377
|
key: "1"
|
|
378
378
|
} : void 0,
|
|
379
379
|
t.$slots.optionPdf ? {
|
|
380
380
|
name: "optionPdf",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
381
|
+
fn: g(() => [
|
|
382
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
383
383
|
]),
|
|
384
384
|
key: "2"
|
|
385
385
|
} : void 0,
|
|
386
386
|
t.$slots.optionCsv ? {
|
|
387
387
|
name: "optionCsv",
|
|
388
|
-
fn:
|
|
389
|
-
|
|
388
|
+
fn: g(() => [
|
|
389
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
390
390
|
]),
|
|
391
391
|
key: "3"
|
|
392
392
|
} : void 0,
|
|
393
393
|
t.$slots.optionImg ? {
|
|
394
394
|
name: "optionImg",
|
|
395
|
-
fn:
|
|
396
|
-
|
|
395
|
+
fn: g(() => [
|
|
396
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
397
397
|
]),
|
|
398
398
|
key: "4"
|
|
399
399
|
} : void 0,
|
|
400
400
|
t.$slots.optionTable ? {
|
|
401
401
|
name: "optionTable",
|
|
402
|
-
fn:
|
|
403
|
-
|
|
402
|
+
fn: g(() => [
|
|
403
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
404
404
|
]),
|
|
405
405
|
key: "5"
|
|
406
406
|
} : void 0,
|
|
407
407
|
t.$slots.optionFullscreen ? {
|
|
408
408
|
name: "optionFullscreen",
|
|
409
|
-
fn:
|
|
410
|
-
|
|
409
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
410
|
+
p(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
411
411
|
]),
|
|
412
412
|
key: "6"
|
|
413
413
|
} : void 0,
|
|
414
414
|
t.$slots.optionAnnotator ? {
|
|
415
415
|
name: "optionAnnotator",
|
|
416
|
-
fn:
|
|
417
|
-
|
|
416
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
417
|
+
p(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
418
418
|
]),
|
|
419
419
|
key: "7"
|
|
420
420
|
} : void 0
|
|
421
421
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
422
|
-
W.value ? (u(),
|
|
422
|
+
W.value ? (u(), c("svg", {
|
|
423
423
|
key: 4,
|
|
424
424
|
ref_key: "svgRef",
|
|
425
425
|
ref: de,
|
|
@@ -429,7 +429,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
429
429
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
430
430
|
}, [
|
|
431
431
|
Q(s(Ve)),
|
|
432
|
-
t.$slots["chart-background"] ? (u(),
|
|
432
|
+
t.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
433
433
|
key: 0,
|
|
434
434
|
x: 0,
|
|
435
435
|
y: 0,
|
|
@@ -439,10 +439,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
439
439
|
pointerEvents: "none"
|
|
440
440
|
}
|
|
441
441
|
}, [
|
|
442
|
-
|
|
442
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
443
443
|
], 8, At)) : m("", !0),
|
|
444
444
|
T("defs", null, [
|
|
445
|
-
(u(!0),
|
|
445
|
+
(u(!0), c(Z, null, ee(h.value, (l, a) => (u(), c("radialGradient", {
|
|
446
446
|
cx: "50%",
|
|
447
447
|
cy: "30%",
|
|
448
448
|
r: "50%",
|
|
@@ -460,12 +460,12 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
460
460
|
}, null, 8, Lt)
|
|
461
461
|
], 8, St))), 256))
|
|
462
462
|
]),
|
|
463
|
-
t.$slots.pattern ? (u(),
|
|
464
|
-
(u(!0),
|
|
465
|
-
|
|
463
|
+
t.$slots.pattern ? (u(), c("g", Rt, [
|
|
464
|
+
(u(!0), c(Z, null, ee(h.value, (l) => (u(), c("defs", null, [
|
|
465
|
+
p(t.$slots, "pattern", at({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
466
466
|
]))), 256))
|
|
467
467
|
])) : m("", !0),
|
|
468
|
-
(u(!0),
|
|
468
|
+
(u(!0), c(Z, null, ee(h.value, (l, a) => (u(), c("g", null, [
|
|
469
469
|
T("circle", {
|
|
470
470
|
class: U({
|
|
471
471
|
"vue-ui-rings-item": O.value && e.value.useCssAnimation,
|
|
@@ -475,8 +475,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
475
475
|
style: N(`animation-delay:${a * 100}ms`),
|
|
476
476
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
477
477
|
cx: n.value.width / 2,
|
|
478
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
479
|
-
r: s(j)(
|
|
478
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
479
|
+
r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
480
480
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
481
481
|
}, null, 14, Mt),
|
|
482
482
|
T("circle", {
|
|
@@ -490,11 +490,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
490
490
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
491
491
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
492
492
|
cx: n.value.width / 2,
|
|
493
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
494
|
-
r: s(j)(
|
|
493
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
494
|
+
r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
495
495
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${a})` : l.color
|
|
496
496
|
}, null, 14, Vt),
|
|
497
|
-
t.$slots.pattern ? (u(),
|
|
497
|
+
t.$slots.pattern ? (u(), c("circle", {
|
|
498
498
|
key: 0,
|
|
499
499
|
class: U({
|
|
500
500
|
"vue-ui-rings-item": O.value && e.value.useCssAnimation,
|
|
@@ -506,15 +506,15 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
506
506
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
507
507
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
508
508
|
cx: n.value.width / 2,
|
|
509
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
510
|
-
r: s(j)(
|
|
509
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
510
|
+
r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
511
511
|
fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
|
|
512
512
|
}, null, 14, zt)) : m("", !0),
|
|
513
513
|
T("circle", {
|
|
514
514
|
stroke: "none",
|
|
515
515
|
cx: n.value.width / 2,
|
|
516
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
517
|
-
r: s(j)(
|
|
516
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
517
|
+
r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
518
518
|
fill: "transparent",
|
|
519
519
|
onMouseenter: (r) => Ke(a, l),
|
|
520
520
|
onMouseleave: o[0] || (o[0] = (r) => {
|
|
@@ -522,10 +522,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
522
522
|
})
|
|
523
523
|
}, null, 40, Ut)
|
|
524
524
|
]))), 256)),
|
|
525
|
-
|
|
525
|
+
p(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
526
526
|
], 14, Pt)) : m("", !0),
|
|
527
|
-
t.$slots.watermark ? (u(),
|
|
528
|
-
|
|
527
|
+
t.$slots.watermark ? (u(), c("div", Wt, [
|
|
528
|
+
p(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
|
|
529
529
|
])) : m("", !0),
|
|
530
530
|
W.value ? m("", !0) : (u(), P(s(Ue), {
|
|
531
531
|
key: 6,
|
|
@@ -549,10 +549,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
549
549
|
config: Ye.value,
|
|
550
550
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
|
|
551
551
|
}, xe({
|
|
552
|
-
item:
|
|
552
|
+
item: g(({ legend: l, index: a }) => [
|
|
553
553
|
T("div", {
|
|
554
554
|
onClick: (r) => Y(l.uid),
|
|
555
|
-
style: N(`opacity:${
|
|
555
|
+
style: N(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
|
|
556
556
|
}, [
|
|
557
557
|
Oe(G(l.name) + ": " + G(s(Pe)(
|
|
558
558
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
@@ -565,7 +565,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
565
565
|
}),
|
|
566
566
|
{ datapoint: l, seriesIndex: a }
|
|
567
567
|
)) + " ", 1),
|
|
568
|
-
|
|
568
|
+
y.value.includes(l.uid) ? (u(), c("span", Dt, " ( - % ) ")) : (u(), c("span", Et, " (" + G(isNaN(l.value / C.value) ? "-" : s(S)({
|
|
569
569
|
v: l.value / C.value * 100,
|
|
570
570
|
s: "%",
|
|
571
571
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -576,7 +576,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
576
576
|
}, [
|
|
577
577
|
t.$slots.pattern ? {
|
|
578
578
|
name: "legend-pattern",
|
|
579
|
-
fn:
|
|
579
|
+
fn: g(({ legend: l, index: a }) => [
|
|
580
580
|
Q(Ot, {
|
|
581
581
|
shape: l.shape,
|
|
582
582
|
radius: 30,
|
|
@@ -587,21 +587,21 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
587
587
|
]),
|
|
588
588
|
key: "0"
|
|
589
589
|
} : void 0
|
|
590
|
-
]), 1032, ["legendSet", "config"])) :
|
|
590
|
+
]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
591
591
|
key: 1,
|
|
592
592
|
legend: Ce.value
|
|
593
593
|
}, void 0, !0)
|
|
594
594
|
], 512),
|
|
595
|
-
t.$slots.source ? (u(),
|
|
595
|
+
t.$slots.source ? (u(), c("div", {
|
|
596
596
|
key: 7,
|
|
597
597
|
ref_key: "source",
|
|
598
598
|
ref: se,
|
|
599
599
|
dir: "auto"
|
|
600
600
|
}, [
|
|
601
|
-
|
|
601
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
602
602
|
], 512)) : m("", !0),
|
|
603
603
|
Q(s(We), {
|
|
604
|
-
show: k.value.showTooltip && B.value &&
|
|
604
|
+
show: k.value.showTooltip && B.value && y.value.length < b.dataset.length,
|
|
605
605
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
606
606
|
color: e.value.style.chart.tooltip.color,
|
|
607
607
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -616,11 +616,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
616
616
|
isFullscreen: L.value,
|
|
617
617
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
618
618
|
}, {
|
|
619
|
-
"tooltip-before":
|
|
620
|
-
|
|
619
|
+
"tooltip-before": g(() => [
|
|
620
|
+
p(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
|
|
621
621
|
]),
|
|
622
|
-
"tooltip-after":
|
|
623
|
-
|
|
622
|
+
"tooltip-after": g(() => [
|
|
623
|
+
p(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
|
|
624
624
|
]),
|
|
625
625
|
_: 3
|
|
626
626
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -640,7 +640,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
}, {
|
|
643
|
-
content:
|
|
643
|
+
content: g(() => [
|
|
644
644
|
(u(), P(s(Me), {
|
|
645
645
|
key: `table_${re.value}`,
|
|
646
646
|
colNames: D.value.colNames,
|
|
@@ -650,13 +650,13 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
650
650
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
651
651
|
onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
|
|
652
652
|
}, {
|
|
653
|
-
th:
|
|
653
|
+
th: g(({ th: l }) => [
|
|
654
654
|
T("div", {
|
|
655
655
|
innerHTML: l,
|
|
656
656
|
style: { display: "flex", "align-items": "center" }
|
|
657
657
|
}, null, 8, Ht)
|
|
658
658
|
]),
|
|
659
|
-
td:
|
|
659
|
+
td: g(({ td: l }) => [
|
|
660
660
|
Oe(G(l.name || l), 1)
|
|
661
661
|
]),
|
|
662
662
|
_: 1
|
|
@@ -666,7 +666,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
666
666
|
}, 8, ["config"])) : m("", !0)
|
|
667
667
|
], 46, Nt));
|
|
668
668
|
}
|
|
669
|
-
}, ol = /* @__PURE__ */ It(Gt, [["__scopeId", "data-v-
|
|
669
|
+
}, ol = /* @__PURE__ */ It(Gt, [["__scopeId", "data-v-f7048a2c"]]);
|
|
670
670
|
export {
|
|
671
671
|
ol as default
|
|
672
672
|
};
|