vue-data-ui 2.14.1 → 2.14.3-beta.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 +17 -0
- package/dist/{Arrow-HJLeHmf6.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-DxqOerJ8.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-61ZYnf6Y.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-DiOZ0dIA.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-CvEYBbuI.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-ChpNJ_NF.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-cf1P3kEq.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-CczS07-5.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-CqPrXvIl.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-Bdn11q8F.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-D9JY91SV.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-B6ZYyu7F.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-CjfBFzRf.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-BZpxnTbb.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-DVYwPBK2.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-Dya0UERi.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CuEOfq14.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-BgrDsHvy.js → index-BzH6XFI9.js} +413 -394
- package/dist/{pdf-D10HhJgy.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-Cw4jG3FY.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-DzxhXGdR.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-CMV-krGM.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-CP4gDeA9.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-m8te3vGO.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C8uZPTAY.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-CiIkCJ6S.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-D7GCFc-g.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-B8jQjSpc.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-Cm4mh1bm.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-xJx3qXST.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-DeMiI8ma.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-CIYfy0qC.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-D9Z3w8f_.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-f6jQBHYW.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-BT16JoAt.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-u7q9NrFK.js → vue-ui-donut-D6VPixUt.js} +188 -188
- package/dist/{vue-ui-donut-evolution-BCMm8STJ.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-CoopXtZe.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-BFgXTv_3.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DKgnIXPL.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-Cq6YBbi_.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-D-vM39d0.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-D3RZqfAG.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-DPL8z3cI.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CSXwsNpD.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-b8tHwa8_.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-CdY-ZkhQ.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-3h00FH5s.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-D33gSEOC.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-B0A0vXtk.js → vue-ui-nested-donuts-CWm-A-co.js} +90 -90
- package/dist/{vue-ui-onion-a8_JDLyl.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-1LlN6F0r.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant-N0rhTZ5W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Wv8KVB-d.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-CzniRpn-.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-Cf_RDtUI.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-Bo_-vb66.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DjU5kQwH.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-CpOhLhDo.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-Diq2Iio2.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-B8Wzi4Hi.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-O2q3w9fQ.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-BTnR034D.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-B5SlfKQN.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B_BVnGgV.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-CowIuwbW.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-Ogfd0FmW.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B5SnjytL.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Co6Ly31u.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-B-dKieOC.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-DlM8IVJC.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C-G1Vr3i.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-Dh3m5rHW.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-COAiS2i7.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-Bnxo2caA.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-D1gy7-Uu.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-_qyTaKiq.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-CKbzxqWL.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-_IX54mhp.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-BT1vFZGN.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-B0ZKf-0k.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-CBDKYFwQ.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-ChqEX06H.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-Dca_tr3r.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as p, ref as c, watch as st, shallowRef as Fe, onMounted as nt, onBeforeUnmount as ut, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as P, createCommentVNode as d, createElementVNode as x, createVNode as oe, createSlots as it, withCtx as f, renderSlot as g, normalizeProps as L, guardReactiveProps as z, Fragment as A, renderList as O, toDisplayString as D, createTextVNode as
|
|
2
|
-
import { u as dt, c as vt, t as pt, p as F, a as ht, o as gt, e as M, b as ft, g as
|
|
1
|
+
import { defineAsyncComponent as $, computed as p, ref as c, watch as st, shallowRef as Fe, onMounted as nt, onBeforeUnmount as ut, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as P, createCommentVNode as d, createElementVNode as x, createVNode as oe, createSlots as it, withCtx as f, renderSlot as g, normalizeProps as L, guardReactiveProps as z, Fragment as A, renderList as O, toDisplayString as D, createTextVNode as Se, nextTick as ct } from "vue";
|
|
2
|
+
import { u as dt, c as vt, t as pt, p as F, a as ht, o as gt, e as M, b as ft, g as Ne, d as Ie, R as Re, v as yt, i as Le, f as G, X as mt, s as le, w as bt, S as ze, q as kt, r as Ct, x as wt, y as $t } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { t as _t, u as Tt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as Me } from "./useNestedProp-
|
|
5
|
-
import { u as Pt } from "./usePrinter-
|
|
4
|
+
import { u as Me } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as Pt } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ot from "./Legend-
|
|
9
|
-
import Ft from "./Title-
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
8
|
+
import Ot from "./Legend-Cpx0xSce.js";
|
|
9
|
+
import Ft from "./Title-B71Dk29x.js";
|
|
10
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["id"], zt = ["stop-color"], Mt = ["stop-color"], Vt = { key: 1 }, Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Et = { key: 0 }, Bt = ["d", "stroke", "stroke-width"], Dt = ["d", "stroke", "stroke-width"], Gt = { key: 2 }, Wt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Xt = ["points", "stroke", "stroke-width"], jt = ["points", "stroke", "stroke-width", "fill"], qt = { key: 3 }, Ht = ["cx", "cy", "fill", "r", "stroke"], Yt = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Jt = ["onClick"], Kt = {
|
|
15
15
|
key: 0,
|
|
16
16
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
17
|
-
},
|
|
17
|
+
}, Qt = {
|
|
18
18
|
__name: "vue-ui-radar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -32,10 +32,10 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Ve, { expose: Ue, emit: Ee }) {
|
|
35
|
-
const Be = $(() => import("./DataTable-
|
|
35
|
+
const Be = $(() => import("./DataTable-D8n1mvaG.js")), De = $(() => import("./PenAndPaper-BzQcbTCN.js")), Ge = $(() => import("./vue-ui-accordion-Cjq4hqGi.js")), We = $(() => import("./vue-ui-skeleton-qa5B2MES.js")), Xe = $(() => import("./Tooltip-BuP-Tir7.js")), je = $(() => import("./UserOptions-fd2DeGS7.js")), qe = $(() => import("./PackageVersion-Bwu7jdjH.js")), He = $(() => import("./vue-ui-sparkbar-Un3CJINy.js")), { vue_ui_radar: Ye } = dt(), h = Ve, V = p(() => !!h.dataset && Object.keys(h.dataset).length), _ = c(vt()), Je = c(null), H = c(!1), Y = c(""), re = c(0), U = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(null), ce = c(0), de = c(0), ve = c(0), e = p({
|
|
36
36
|
get: () => fe(),
|
|
37
37
|
set: (t) => t
|
|
38
|
-
}), { userOptionsVisible:
|
|
38
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = xt({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
|
|
39
39
|
function fe() {
|
|
40
40
|
const t = Me({
|
|
41
41
|
userConfig: h.config,
|
|
@@ -50,9 +50,9 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
50
50
|
} : t;
|
|
51
51
|
}
|
|
52
52
|
st(() => h.config, (t) => {
|
|
53
|
-
e.value = fe(),
|
|
53
|
+
e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tootlip ? e.value.style.chart.tootlip.show : !1;
|
|
54
54
|
}, { deep: !0 });
|
|
55
|
-
const C = Fe(null),
|
|
55
|
+
const C = Fe(null), S = Fe(null);
|
|
56
56
|
function ye() {
|
|
57
57
|
if (gt(h.dataset) && M({
|
|
58
58
|
componentName: "VueUiRadar",
|
|
@@ -70,25 +70,25 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
70
70
|
i.value.width = a, i.value.height = o;
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
C.value && (
|
|
73
|
+
C.value && (S.value && C.value.unobserve(S.value), C.value.disconnect()), C.value = new ResizeObserver(t), S.value = U.value.parentNode, C.value.observe(S.value);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
nt(() => {
|
|
77
77
|
ye();
|
|
78
78
|
}), ut(() => {
|
|
79
|
-
C.value && (
|
|
79
|
+
C.value && (S.value && C.value.unobserve(S.value), C.value.disconnect());
|
|
80
80
|
});
|
|
81
81
|
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = Pt({
|
|
82
82
|
elementId: `vue-ui-radar_${_.value}`,
|
|
83
83
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
84
84
|
options: e.value.userOptions.print
|
|
85
|
-
}),
|
|
85
|
+
}), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => ft(e.value.customPalette)), m = c({
|
|
86
86
|
dataLabels: {
|
|
87
87
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
88
88
|
},
|
|
89
89
|
showTable: e.value.table.show,
|
|
90
90
|
showTooltip: e.value.style.chart.tooltip.show
|
|
91
|
-
}),
|
|
91
|
+
}), Qe = p(() => ({
|
|
92
92
|
style: {
|
|
93
93
|
backgroundColor: "#FFFFFF00",
|
|
94
94
|
animation: {
|
|
@@ -109,12 +109,12 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
109
109
|
})), i = c({
|
|
110
110
|
height: 312,
|
|
111
111
|
width: 512
|
|
112
|
-
}), Ze = Ee, v = c([]), E = c(null),
|
|
112
|
+
}), Ze = Ee, v = c([]), E = c(null), N = c(!1);
|
|
113
113
|
function $e(t) {
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
N.value = !0, v.value.includes(t) ? (E.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
|
|
115
|
+
N.value = !1, E.value = null;
|
|
116
116
|
}, 500)) : (v.value.push(t), setTimeout(() => {
|
|
117
|
-
|
|
117
|
+
N.value = !1;
|
|
118
118
|
}, 500)), Ze("selectLegend", I.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
|
|
119
119
|
name: a.name,
|
|
120
120
|
color: a.color,
|
|
@@ -137,7 +137,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
137
137
|
type: "datasetAttributeEmpty",
|
|
138
138
|
property: "categories"
|
|
139
139
|
}) : h.dataset.categories.forEach((t, a) => {
|
|
140
|
-
|
|
140
|
+
Ne({
|
|
141
141
|
datasetObject: t,
|
|
142
142
|
requiredAttributes: ["name"]
|
|
143
143
|
}).forEach((o) => {
|
|
@@ -153,7 +153,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
153
153
|
type: "datasetAttribute",
|
|
154
154
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
155
155
|
}) : h.dataset.series.forEach((t, a) => {
|
|
156
|
-
|
|
156
|
+
Ne({
|
|
157
157
|
datasetObject: t,
|
|
158
158
|
requiredAttributes: ["name", "values", "target"]
|
|
159
159
|
}).forEach((o) => {
|
|
@@ -176,14 +176,14 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
176
176
|
color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
|
|
177
177
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
178
178
|
formatter: t.formatter || null
|
|
179
|
-
})) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length),
|
|
179
|
+
})) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), K = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Re({
|
|
180
180
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
181
|
-
radius:
|
|
181
|
+
radius: K.value,
|
|
182
182
|
sides: Te.value,
|
|
183
183
|
rotation: 0
|
|
184
184
|
})), tt = p(() => {
|
|
185
185
|
const t = [];
|
|
186
|
-
for (let a = 0; a <
|
|
186
|
+
for (let a = 0; a < K.value; a += K.value / e.value.style.chart.layout.grid.graduations)
|
|
187
187
|
t.push(a);
|
|
188
188
|
return t;
|
|
189
189
|
}), w = p(() => Pe.value.coordinates.map((t, a) => {
|
|
@@ -200,7 +200,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
200
200
|
plots: o
|
|
201
201
|
};
|
|
202
202
|
}));
|
|
203
|
-
function
|
|
203
|
+
function Q({ x: t, y: a }) {
|
|
204
204
|
let o = "middle";
|
|
205
205
|
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 && (a += 20), a < i.value.height / 2 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
206
206
|
}
|
|
@@ -357,7 +357,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
357
357
|
active: j.value,
|
|
358
358
|
onClose: te
|
|
359
359
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
360
|
-
|
|
360
|
+
Ke.value ? (r(), u("div", {
|
|
361
361
|
key: 1,
|
|
362
362
|
ref_key: "noTitle",
|
|
363
363
|
ref: ie,
|
|
@@ -384,9 +384,9 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
384
384
|
}
|
|
385
385
|
}, null, 8, ["config"]))
|
|
386
386
|
], 512)) : d("", !0),
|
|
387
|
-
e.value.userOptions.show && V.value && (n(he) || n(
|
|
387
|
+
e.value.userOptions.show && V.value && (n(he) || n(J)) ? (r(), P(n(je), {
|
|
388
388
|
ref_key: "details",
|
|
389
|
-
ref:
|
|
389
|
+
ref: Je,
|
|
390
390
|
key: `user_options_${re.value}`,
|
|
391
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
392
|
color: e.value.style.chart.color,
|
|
@@ -415,7 +415,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
415
415
|
onToggleTooltip: Oe,
|
|
416
416
|
onToggleAnnotator: te,
|
|
417
417
|
style: q({
|
|
418
|
-
visibility: n(he) ? n(
|
|
418
|
+
visibility: n(he) ? n(J) ? "visible" : "hidden" : "visible"
|
|
419
419
|
})
|
|
420
420
|
}, it({ _: 2 }, [
|
|
421
421
|
t.$slots.menuIcon ? {
|
|
@@ -549,9 +549,9 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
549
549
|
}, null, 8, Dt),
|
|
550
550
|
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Gt, [
|
|
551
551
|
(r(!0), u(A, null, O(w.value, (o, l) => (r(), u("text", {
|
|
552
|
-
x:
|
|
553
|
-
y:
|
|
554
|
-
"text-anchor":
|
|
552
|
+
x: Q(o).x,
|
|
553
|
+
y: Q(o).y,
|
|
554
|
+
"text-anchor": Q(o).anchor,
|
|
555
555
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
556
556
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
557
557
|
onMouseenter: (s) => lt(o, l),
|
|
@@ -568,7 +568,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
568
568
|
stroke: e.value.style.chart.backgroundColor,
|
|
569
569
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
570
570
|
fill: "none",
|
|
571
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
571
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && E.value === l && e.value.useCssAnimation })
|
|
572
572
|
}, null, 10, Xt)) : d("", !0),
|
|
573
573
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
574
574
|
key: 1,
|
|
@@ -576,7 +576,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
576
576
|
stroke: o.color,
|
|
577
577
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
578
578
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
579
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
579
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && E.value === l && e.value.useCssAnimation })
|
|
580
580
|
}, null, 10, jt)) : d("", !0)
|
|
581
581
|
])
|
|
582
582
|
]))), 256)),
|
|
@@ -589,7 +589,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
589
589
|
r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
590
590
|
stroke: v.value.includes(b) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
591
591
|
"stroke-width": 0.5,
|
|
592
|
-
class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in":
|
|
592
|
+
class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in": N.value && E.value === b && e.value.useCssAnimation })
|
|
593
593
|
}, null, 10, Ht))), 256))
|
|
594
594
|
]))), 256))
|
|
595
595
|
])) : d("", !0),
|
|
@@ -633,7 +633,7 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
633
633
|
v: o.totalProportion * 100,
|
|
634
634
|
s: "%",
|
|
635
635
|
r: e.value.style.chart.legend.roundingPercentage
|
|
636
|
-
})), 13,
|
|
636
|
+
})), 13, Jt)
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
@@ -669,10 +669,10 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
669
669
|
g(t.$slots, "tooltip-before", L(z({ ...ee.value })), void 0, !0)
|
|
670
670
|
]),
|
|
671
671
|
"tooltip-after": f(() => [
|
|
672
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div",
|
|
672
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Kt, [
|
|
673
673
|
oe(n(He), {
|
|
674
674
|
dataset: Z.value,
|
|
675
|
-
config:
|
|
675
|
+
config: Qe.value,
|
|
676
676
|
backgroundOpacity: 0
|
|
677
677
|
}, null, 8, ["dataset", "config"])
|
|
678
678
|
])),
|
|
@@ -707,19 +707,19 @@ const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
707
707
|
onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
|
|
708
708
|
}, {
|
|
709
709
|
th: f(({ th: o }) => [
|
|
710
|
-
|
|
710
|
+
Se(D(o.name), 1)
|
|
711
711
|
]),
|
|
712
712
|
td: f(({ td: o }) => [
|
|
713
|
-
|
|
713
|
+
Se(D(o), 1)
|
|
714
714
|
]),
|
|
715
715
|
_: 1
|
|
716
716
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
717
717
|
]),
|
|
718
718
|
_: 1
|
|
719
719
|
}, 8, ["config"])) : d("", !0)
|
|
720
|
-
], 46,
|
|
720
|
+
], 46, Nt));
|
|
721
721
|
}
|
|
722
|
-
}, ca = /* @__PURE__ */
|
|
722
|
+
}, ca = /* @__PURE__ */ St(Qt, [["__scopeId", "data-v-0723e970"]]);
|
|
723
723
|
export {
|
|
724
724
|
ca as default
|
|
725
725
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as $, useSlots as
|
|
2
|
-
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X,
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
1
|
+
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
+
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-BzH6XFI9.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-CKM2gCr5.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -33,7 +33,7 @@ const ne = {
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["rate"],
|
|
35
35
|
setup(Y, { expose: G, emit: L }) {
|
|
36
|
-
const { vue_ui_rating: U } = te(), u = Y, h = $(le()), S = $(!1), v = $(void 0), m = $(void 0), w = $([]), D =
|
|
36
|
+
const { vue_ui_rating: U } = te(), u = Y, h = $(le()), S = $(!1), v = $(void 0), m = $(void 0), w = $([]), D = J();
|
|
37
37
|
R(() => {
|
|
38
38
|
D["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
39
39
|
});
|
|
@@ -47,15 +47,15 @@ const ne = {
|
|
|
47
47
|
defaultConfig: U
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
Q(() => u.config, (l) => {
|
|
51
51
|
e.value = C(), F();
|
|
52
52
|
}, { deep: !0 });
|
|
53
53
|
const K = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating) ? T(u.dataset.rating) : u.dataset.rating), P = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating)), y = $(K.value), V = x(() => e.value.type === "image"), g = x(() => e.value.readonly);
|
|
54
54
|
function T(l) {
|
|
55
55
|
let i = 0, t = 0;
|
|
56
56
|
for (const d in l) {
|
|
57
|
-
const
|
|
58
|
-
i +=
|
|
57
|
+
const q = parseInt(d), A = l[d];
|
|
58
|
+
i += q * A, t += A;
|
|
59
59
|
}
|
|
60
60
|
if (t === 0)
|
|
61
61
|
return 0;
|
|
@@ -145,7 +145,7 @@ const ne = {
|
|
|
145
145
|
}),
|
|
146
146
|
e.value
|
|
147
147
|
)), 5)) : p("", !0),
|
|
148
|
-
(a(!0), o(B, null,
|
|
148
|
+
(a(!0), o(B, null, Z(w.value, (t, c) => (a(), o("div", {
|
|
149
149
|
class: "vue-ui-rating-unit-container",
|
|
150
150
|
style: s(`position:relative;height:${e.value.style.itemSize}px;width:${e.value.style.itemSize}px`)
|
|
151
151
|
}, [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useCssVars as Je, computed as y, defineAsyncComponent as R, ref as o, watch as Ke, shallowRef as ke, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as n, openBlock as i, unref as a, normalizeStyle as L, createBlock as B, createCommentVNode as v, createSlots as et, withCtx as I, renderSlot as h, normalizeProps as E, guardReactiveProps as T, normalizeClass as H, createVNode as tt, createElementVNode as lt, Fragment as O, renderList as z, mergeProps as be, toDisplayString as N } from "vue";
|
|
2
|
-
import { u as st, c as it, t as at, p as we, a as nt, b as rt, o as ut, e as xe, g as ot, X as ct, G as $e, i as J, f as K, F as Q } from "./index-
|
|
2
|
+
import { u as st, c as it, t as at, p as we, a as nt, b as rt, o as ut, e as xe, g as ot, X as ct, G as $e, i as J, f as K, F as Q } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { t as dt, u as vt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as _e } from "./useNestedProp-
|
|
5
|
-
import { u as ft } from "./usePrinter-
|
|
4
|
+
import { u as _e } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as ft } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import gt from "./Title-
|
|
8
|
+
import gt from "./Title-B71Dk29x.js";
|
|
9
9
|
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["cx", "cy", "r", "stroke", "stroke-width"], xt = { key: 1 }, $t = ["stroke", "d", "stroke-width"], _t = { style: { "pointer-events": "none" } }, Ct = ["cx", "cy", "fill", "r", "stroke"], Pt = ["x", "y", "fill", "font-size"], Lt = { key: 2 }, Ot = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], zt = { style: { "pointer-events": "none" } }, At = ["cx", "cy", "fill", "r", "stroke"], It = ["x", "y", "fill", "font-size"], St = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Mt = ["cx", "cy", "fill", "stroke", "onClick", "r"], Ft = {
|
|
11
11
|
key: 5,
|
|
@@ -32,7 +32,7 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
32
32
|
"06f35f1c": Re.value,
|
|
33
33
|
"67a1ec04": Ee.value
|
|
34
34
|
}));
|
|
35
|
-
const Le = R(() => import("./PackageVersion-
|
|
35
|
+
const Le = R(() => import("./PackageVersion-Bwu7jdjH.js")), Oe = R(() => import("./PenAndPaper-BzQcbTCN.js")), ze = R(() => import("./vue-ui-skeleton-qa5B2MES.js")), Ae = R(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_relation_circle: Ie } = st(), k = Ce, j = y(() => !!k.dataset && Object.keys(k.dataset).length), A = o(it()), Z = o(0), S = o(null), ee = o(null), te = o(null), le = o(null), se = o(0), l = y({
|
|
36
36
|
get: () => re(),
|
|
37
37
|
set: (e) => e
|
|
38
38
|
}), { userOptionsVisible: U, setUserOptionsVisibility: ie, keepUserOptionState: ae } = yt({ config: l.value }), { svgRef: ne } = ht({ config: l.value.style.title });
|