vue-data-ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as qt, t as Xt, b as Yt, p as
|
|
1
|
+
import { defineAsyncComponent as D, useSlots as Rt, computed as c, ref as i, toRefs as Ut, watch as J, shallowRef as et, onMounted as Et, onBeforeUnmount as Wt, createElementBlock as v, openBlock as s, unref as h, normalizeStyle as ae, normalizeClass as tt, createBlock as V, createCommentVNode as m, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as p, normalizeProps as x, guardReactiveProps as T, createSlots as Ce, Fragment as I, renderList as N, mergeProps as $e, toDisplayString as ue, Teleport as Gt, resolveDynamicComponent as Ht, createTextVNode as lt, nextTick as jt } from "vue";
|
|
2
|
+
import { c as qt, t as Xt, b as Yt, p as U, o as at, f as xe, g as Jt, e as Qt, a as Q, d as F, X as Kt, s as Zt, i as el, J as tl, h as ll, P as al, Q as ol, I as ul, G as nl, H as sl } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as rl, u as il } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as vl, a as ot } from "./useNestedProp-
|
|
4
|
+
import { u as vl, a as ot } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as cl, B as dl } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as hl } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
7
|
+
import { u as fl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import yl from "./img-BecE5qXd.js";
|
|
11
11
|
import { _ as bl } from "./Shape-CNXKB8O0.js";
|
|
12
|
-
import ml from "./Title-
|
|
12
|
+
import ml from "./Title-isbiM8i8.js";
|
|
13
13
|
import { t as wl } from "./themes-AUNCOb2G.js";
|
|
14
14
|
import kl from "./Legend-G6GMcdAc.js";
|
|
15
15
|
import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const
|
|
16
|
+
const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["stop-color"], _l = ["stop-color"], Al = ["id"], Ol = ["x", "y", "height", "width"], Pl = ["height", "width"], Ll = { key: 0 }, Fl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Bl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Dl = { key: 1 }, Vl = ["rx", "x", "y", "height", "width", "fill", "filter"], Nl = ["textContent", "x", "y", "font-size", "fill", "filter"], zl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Ml = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Rl = ["id"], Ul = ["onClick"], El = ["innerHTML"], Wl = {
|
|
@@ -33,14 +33,14 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(ut, { expose:
|
|
37
|
-
const rt =
|
|
36
|
+
setup(ut, { expose: nt, emit: st }) {
|
|
37
|
+
const rt = D(() => import("./Tooltip-oWCO1HKy.js")), it = D(() => import("./BaseIcon-BmMbm4d0.js")), vt = D(() => import("./DataTable-BT7VF2ua.js")), ct = D(() => import("./vue-ui-accordion-CqhVCfc2.js")), dt = D(() => import("./UserOptions-CGnQt6Fd.js")), ht = D(() => import("./PenAndPaper-SZQIAgkg.js")), ft = D(() => import("./PackageVersion-DQvyATVa.js")), pt = D(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_waffle: gt } = vl(), w = ut, yt = Rt(), ne = c(() => !!w.dataset && w.dataset.length), b = i(qt()), se = i(!1), re = i(""), E = i(null), Te = i(0), S = i(null), Ie = i(null), Se = i(null), _e = i(null), Ae = i(null), Oe = i(0), Pe = i(0), Le = i(0), Fe = i(!1), H = i(null), ie = i(null), e = i(he()), { loading: Be, FINAL_DATASET: K, manualLoading: ve } = cl({
|
|
38
38
|
...Ut(w),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
40
|
prepareConfig: he,
|
|
41
41
|
callback: () => {
|
|
42
42
|
Promise.resolve().then(async () => {
|
|
43
|
-
|
|
43
|
+
g.value = fe();
|
|
44
44
|
});
|
|
45
45
|
},
|
|
46
46
|
skeletonDataset: [
|
|
@@ -86,7 +86,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
})
|
|
89
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: Ve } =
|
|
89
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: Ve } = pl({ config: e.value }), { svgRef: de } = gl({ config: e.value.style.chart.title });
|
|
90
90
|
function he() {
|
|
91
91
|
const t = ot({
|
|
92
92
|
userConfig: w.config,
|
|
@@ -97,24 +97,24 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
97
97
|
userConfig: wl.vue_ui_waffle[t.theme] || w.config,
|
|
98
98
|
defaultConfig: t
|
|
99
99
|
}),
|
|
100
|
-
customPalette: Yt[t.theme] ||
|
|
100
|
+
customPalette: Yt[t.theme] || U
|
|
101
101
|
} : t;
|
|
102
102
|
}
|
|
103
103
|
J(() => w.config, (t) => {
|
|
104
104
|
Be.value || (e.value = he()), ce.value = !e.value.userOptions.showOnChartHover, ze(), Oe.value += 1, Pe.value += 1, Le.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
105
105
|
}, { deep: !0 });
|
|
106
|
-
const
|
|
106
|
+
const B = et(null), W = et(null), Ne = c(() => !!e.value.debug);
|
|
107
107
|
function ze() {
|
|
108
|
-
if (at(w.dataset) ? (
|
|
108
|
+
if (at(w.dataset) ? (xe({
|
|
109
109
|
componentName: "VueUiWaffle",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: Ne.value
|
|
112
|
-
}),
|
|
112
|
+
}), ne.value = !1, ve.value = !0) : w.dataset.forEach((t, l) => {
|
|
113
113
|
Jt({
|
|
114
114
|
datasetObject: t,
|
|
115
115
|
requiredAttributes: ["name", "values"]
|
|
116
116
|
}).forEach((a) => {
|
|
117
|
-
|
|
117
|
+
xe({
|
|
118
118
|
componentName: "VueUiWaffle",
|
|
119
119
|
type: "datasetSerieAttribute",
|
|
120
120
|
property: a,
|
|
@@ -125,23 +125,23 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
125
125
|
}), at(w.dataset) || (ve.value = e.value.loading), e.value.responsive) {
|
|
126
126
|
const t = rl(() => {
|
|
127
127
|
const { width: l, height: a } = il({
|
|
128
|
-
chart:
|
|
128
|
+
chart: S.value,
|
|
129
129
|
title: e.value.style.chart.title.text ? Ie.value : null,
|
|
130
130
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
131
131
|
source: _e.value,
|
|
132
132
|
noTitle: Ae.value
|
|
133
133
|
});
|
|
134
134
|
requestAnimationFrame(() => {
|
|
135
|
-
|
|
135
|
+
z.value.width = l, z.value.height = a, _.value.width = l, _.value.height = a;
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
|
-
|
|
138
|
+
B.value && (W.value && B.value.unobserve(W.value), B.value.disconnect()), B.value = new ResizeObserver(t), W.value = S.value.parentNode, B.value.observe(W.value);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
Et(() => {
|
|
142
142
|
Fe.value = !0, ze();
|
|
143
143
|
}), Wt(() => {
|
|
144
|
-
|
|
144
|
+
B.value && (W.value && B.value.unobserve(W.value), B.value.disconnect());
|
|
145
145
|
});
|
|
146
146
|
const { isPrinting: Me, isImaging: Re, generatePdf: Ue, generateImage: Ee } = hl({
|
|
147
147
|
elementId: `vue-ui-waffle_${b.value}`,
|
|
@@ -157,53 +157,53 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
157
157
|
showTooltip: e.value.style.chart.tooltip.show
|
|
158
158
|
};
|
|
159
159
|
}, { immediate: !0 });
|
|
160
|
-
const
|
|
160
|
+
const z = i({
|
|
161
161
|
height: 512,
|
|
162
162
|
width: 512
|
|
163
|
-
}),
|
|
163
|
+
}), _ = i({
|
|
164
164
|
top: 0,
|
|
165
165
|
left: 0,
|
|
166
166
|
height: 512,
|
|
167
167
|
width: 512
|
|
168
|
-
}),
|
|
168
|
+
}), A = c(() => (_.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), O = c(() => (_.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), mt = c(() => Math.max(1e-4, _.value.width / e.value.style.chart.layout.grid.size)), Ge = c(() => Math.max(1e-4, _.value.height / e.value.style.chart.layout.grid.size));
|
|
169
169
|
function He(t) {
|
|
170
|
-
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((
|
|
171
|
-
let d = l - u.reduce((
|
|
170
|
+
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce(($, ke) => $ + ke, 0), o = t.map(($) => $ / a * l), u = o.map(Math.floor), n = o.map(($) => $ % 1);
|
|
171
|
+
let d = l - u.reduce(($, ke) => $ + ke, 0);
|
|
172
172
|
for (; d > 0; ) {
|
|
173
|
-
let
|
|
174
|
-
u[
|
|
173
|
+
let $ = n.indexOf(Math.max(...n));
|
|
174
|
+
u[$] += 1, n[$] = 0, d -= 1;
|
|
175
175
|
}
|
|
176
176
|
return u;
|
|
177
177
|
}
|
|
178
178
|
const j = i(!1);
|
|
179
|
-
function
|
|
179
|
+
function fe() {
|
|
180
180
|
return j.value = K.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, K.value.map((t, l) => ({
|
|
181
181
|
...t,
|
|
182
|
-
color: ll(t.color) || We.value[l] ||
|
|
182
|
+
color: ll(t.color) || We.value[l] || U[l] || U[l % U.length],
|
|
183
183
|
uid: `serie_${l}`,
|
|
184
184
|
absoluteIndex: l
|
|
185
185
|
}));
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const pe = c(() => fe()), g = i(pe.value);
|
|
188
188
|
J(() => w.dataset, (t) => {
|
|
189
189
|
Array.isArray(t) && t.length > 0 && (ve.value = !1);
|
|
190
190
|
}, { immediate: !0 }), J(() => w.dataset, (t) => {
|
|
191
|
-
|
|
191
|
+
g.value = fe();
|
|
192
192
|
}, { deep: !0 });
|
|
193
193
|
const wt = c(() => {
|
|
194
|
-
const t =
|
|
194
|
+
const t = g.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
|
|
195
195
|
return He(t);
|
|
196
196
|
}), kt = c(() => {
|
|
197
|
-
const t =
|
|
197
|
+
const t = g.value.map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u));
|
|
198
198
|
return He(t);
|
|
199
199
|
}), q = c(() => (K.value.forEach((t, l) => {
|
|
200
|
-
[null, void 0].includes(t.values) &&
|
|
200
|
+
[null, void 0].includes(t.values) && xe({
|
|
201
201
|
componentName: "VueUiWaffle",
|
|
202
202
|
type: "datasetSerieAttribute",
|
|
203
203
|
property: "values (number[])",
|
|
204
204
|
index: l
|
|
205
205
|
});
|
|
206
|
-
}),
|
|
206
|
+
}), g.value.filter((t, l) => !y.value.includes(t.uid)).map((t, l) => ({
|
|
207
207
|
absoluteIndex: t.absoluteIndex,
|
|
208
208
|
uid: t.uid,
|
|
209
209
|
name: t.name,
|
|
@@ -211,7 +211,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
211
211
|
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
212
212
|
absoluteValues: t.values || [],
|
|
213
213
|
proportion: wt.value[l]
|
|
214
|
-
})))), ge = c(() =>
|
|
214
|
+
})))), ge = c(() => g.value.map((t, l) => ({
|
|
215
215
|
absoluteIndex: t.absoluteIndex,
|
|
216
216
|
uid: t.uid,
|
|
217
217
|
name: t.name,
|
|
@@ -228,19 +228,19 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
228
228
|
proportion: t.proportion
|
|
229
229
|
}));
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const $t = c(() => {
|
|
232
232
|
let t = 0;
|
|
233
233
|
return q.value.map((l, a) => {
|
|
234
|
-
const o = t, u = o + l.proportion,
|
|
234
|
+
const o = t, u = o + l.proportion, n = [];
|
|
235
235
|
for (let d = Math.floor(o); d < Math.floor(u); d += 1)
|
|
236
|
-
|
|
236
|
+
n.push(d);
|
|
237
237
|
return t = u, {
|
|
238
238
|
...l,
|
|
239
239
|
start: o,
|
|
240
|
-
rects:
|
|
240
|
+
rects: n
|
|
241
241
|
};
|
|
242
242
|
});
|
|
243
|
-
}), r = c(() =>
|
|
243
|
+
}), r = c(() => $t.value.flatMap((t, l) => t.rects.map((a, o) => ({
|
|
244
244
|
isFirst: o === 0,
|
|
245
245
|
isLongEnough: a.length > 2,
|
|
246
246
|
name: t.name,
|
|
@@ -253,49 +253,49 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
253
253
|
}))).map((t, l) => ({
|
|
254
254
|
...t,
|
|
255
255
|
isAbsoluteFirst: l % e.value.style.chart.layout.grid.size === 0
|
|
256
|
-
}))),
|
|
256
|
+
}))), G = c(() => {
|
|
257
257
|
const t = [];
|
|
258
258
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
259
259
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
260
260
|
t.push({
|
|
261
261
|
isStartOfLine: a === 0,
|
|
262
262
|
position: e.value.style.chart.layout.grid.vertical ? l : a,
|
|
263
|
-
x: (e.value.style.chart.layout.grid.vertical ? l : a) * (
|
|
264
|
-
y: (e.value.style.chart.layout.grid.vertical ? a : l) * (
|
|
263
|
+
x: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
264
|
+
y: (e.value.style.chart.layout.grid.vertical ? a : l) * (O.value + e.value.style.chart.layout.grid.spaceBetween) + _.value.top
|
|
265
265
|
});
|
|
266
266
|
return t;
|
|
267
|
-
}),
|
|
267
|
+
}), y = i([]), X = i(!1), je = i(null), qe = i(null);
|
|
268
268
|
function Z(t) {
|
|
269
269
|
if (j.value) return;
|
|
270
270
|
if (!e.value.useAnimation) {
|
|
271
|
-
|
|
271
|
+
y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < M.value.length - 1 && M.value.length > 1 && y.value.push(t);
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
|
-
const l =
|
|
274
|
+
const l = pe.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), a = g.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
275
275
|
let o = a;
|
|
276
276
|
if (!(a === 0 && l === 0)) {
|
|
277
|
-
if (
|
|
278
|
-
let
|
|
279
|
-
o > u ? (cancelAnimationFrame(je.value),
|
|
277
|
+
if (y.value.includes(t)) {
|
|
278
|
+
let n = function() {
|
|
279
|
+
o > u ? (cancelAnimationFrame(je.value), g.value = g.value.map((d, $) => d.uid === t ? {
|
|
280
280
|
...d,
|
|
281
281
|
values: [u]
|
|
282
|
-
} : d), X.value = !1) : (X.value = !0, o += u * 0.025,
|
|
282
|
+
} : d), X.value = !1) : (X.value = !0, o += u * 0.025, g.value = g.value.map((d, $) => d.uid === t ? {
|
|
283
283
|
...d,
|
|
284
284
|
values: [o]
|
|
285
|
-
} : d), je.value = requestAnimationFrame(
|
|
285
|
+
} : d), je.value = requestAnimationFrame(n));
|
|
286
286
|
};
|
|
287
|
-
|
|
287
|
+
y.value = y.value.filter((d) => d !== t);
|
|
288
288
|
const u = l;
|
|
289
|
-
|
|
290
|
-
} else if (
|
|
289
|
+
n();
|
|
290
|
+
} else if (y.value.length < M.value.length - 1 && M.value.length > 1) {
|
|
291
291
|
let u = function() {
|
|
292
|
-
o < a / 100 ? (cancelAnimationFrame(qe.value),
|
|
293
|
-
...
|
|
292
|
+
o < a / 100 ? (cancelAnimationFrame(qe.value), y.value.push(t), g.value = g.value.map((n, d) => n.uid === t ? {
|
|
293
|
+
...n,
|
|
294
294
|
values: [0]
|
|
295
|
-
} :
|
|
296
|
-
...
|
|
295
|
+
} : n), X.value = !1) : (X.value = !0, o /= 1.15, g.value = g.value.map((n) => n.uid === t ? {
|
|
296
|
+
...n,
|
|
297
297
|
values: [o]
|
|
298
|
-
} :
|
|
298
|
+
} : n), qe.value = requestAnimationFrame(u));
|
|
299
299
|
};
|
|
300
300
|
u();
|
|
301
301
|
}
|
|
@@ -313,19 +313,19 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
313
313
|
const l = ge.value.find((a) => a.name === t);
|
|
314
314
|
return l || (e.value.debug && console.warn(`VueUiWaffle - Series name not found "${t}"`), null);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function xt(t) {
|
|
317
317
|
const l = Xe(t);
|
|
318
|
-
l !== null &&
|
|
318
|
+
l !== null && y.value.includes(l.uid) && Z(l.uid);
|
|
319
319
|
}
|
|
320
320
|
function Tt(t) {
|
|
321
321
|
const l = Xe(t);
|
|
322
|
-
l !== null && (
|
|
322
|
+
l !== null && (y.value.includes(l.uid) || Z(l.uid));
|
|
323
323
|
}
|
|
324
|
-
const
|
|
325
|
-
const a = (t.values || []).reduce((u,
|
|
324
|
+
const M = c(() => g.value.map((t, l) => {
|
|
325
|
+
const a = (t.values || []).reduce((u, n) => u + n, 0), o = a / g.value.map((u) => (u.values || []).reduce((n, d) => n + d, 0)).reduce((u, n) => u + n, 0);
|
|
326
326
|
return {
|
|
327
327
|
name: t.name,
|
|
328
|
-
color: t.color || We[l] ||
|
|
328
|
+
color: t.color || We[l] || U[l] || U[l % U.length],
|
|
329
329
|
value: a,
|
|
330
330
|
proportion: o,
|
|
331
331
|
uid: t.uid,
|
|
@@ -333,15 +333,15 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
333
333
|
};
|
|
334
334
|
}).map((t, l) => ({
|
|
335
335
|
...t,
|
|
336
|
-
opacity:
|
|
336
|
+
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
337
337
|
segregate: () => Z(t.uid),
|
|
338
|
-
isSegregated:
|
|
339
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value,
|
|
338
|
+
isSegregated: y.value.includes(t.uid),
|
|
339
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, F({
|
|
340
340
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
341
341
|
v: t.value,
|
|
342
342
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
343
343
|
r: e.value.style.chart.legend.roundingValue
|
|
344
|
-
}), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
344
|
+
}), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / P.value) ? "-" : F({ v: t.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
345
345
|
}))), It = c(() => ({
|
|
346
346
|
cy: "waffle-div-legend",
|
|
347
347
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -349,35 +349,35 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
349
349
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
350
350
|
paddingBottom: 12,
|
|
351
351
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
352
|
-
})),
|
|
352
|
+
})), P = c(() => q.value.map((t) => t.value).reduce((t, l) => t + l, 0)), ye = i(null), be = i(null);
|
|
353
353
|
function St(t) {
|
|
354
354
|
const l = r.value[t];
|
|
355
355
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
|
|
356
356
|
}
|
|
357
357
|
function _t(t) {
|
|
358
358
|
const l = r.value[t];
|
|
359
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null,
|
|
359
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null, se.value = !1, E.value = null;
|
|
360
360
|
}
|
|
361
361
|
function At(t) {
|
|
362
|
-
if (
|
|
362
|
+
if (y.value.length === w.dataset.length) return;
|
|
363
363
|
const l = r.value[t];
|
|
364
364
|
ye.value = {
|
|
365
365
|
datapoint: l,
|
|
366
366
|
seriesIndex: l.absoluteIndex,
|
|
367
|
-
series:
|
|
367
|
+
series: g.value,
|
|
368
368
|
config: e.value
|
|
369
|
-
}, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex,
|
|
369
|
+
}, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
|
|
370
370
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
371
|
-
if (
|
|
371
|
+
if (nl(a) && sl(() => a({
|
|
372
372
|
seriesIndex: r.value[t].absoluteIndex,
|
|
373
373
|
datapoint: l,
|
|
374
|
-
series:
|
|
374
|
+
series: g.value,
|
|
375
375
|
config: e.value
|
|
376
376
|
})))
|
|
377
377
|
re.value = a({
|
|
378
378
|
seriesIndex: r.value[t].absoluteIndex,
|
|
379
379
|
datapoint: l,
|
|
380
|
-
series:
|
|
380
|
+
series: g.value,
|
|
381
381
|
config: e.value
|
|
382
382
|
});
|
|
383
383
|
else {
|
|
@@ -385,7 +385,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
385
385
|
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${yt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
|
|
386
386
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
387
387
|
l.value,
|
|
388
|
-
|
|
388
|
+
F({
|
|
389
389
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
390
390
|
v: l.value,
|
|
391
391
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -394,11 +394,11 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
394
394
|
{
|
|
395
395
|
datapoint: l,
|
|
396
396
|
seriesIndex: r.value[t].absoluteIndex,
|
|
397
|
-
series:
|
|
397
|
+
series: g.value
|
|
398
398
|
}
|
|
399
399
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
400
|
-
const u =
|
|
401
|
-
v: j.value ? 1 / K.value.length * 100 : l.value /
|
|
400
|
+
const u = F({
|
|
401
|
+
v: j.value ? 1 / K.value.length * 100 : l.value / P.value * 100,
|
|
402
402
|
s: "%",
|
|
403
403
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
404
404
|
});
|
|
@@ -407,7 +407,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
407
407
|
re.value = o;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
const Ot =
|
|
410
|
+
const Ot = st, L = c(() => {
|
|
411
411
|
const t = q.value.map((a) => ({
|
|
412
412
|
name: a.name,
|
|
413
413
|
color: a.color
|
|
@@ -415,7 +415,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
415
415
|
return { head: t, body: l };
|
|
416
416
|
});
|
|
417
417
|
function ee(t) {
|
|
418
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
418
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
|
|
419
419
|
}
|
|
420
420
|
function Pt(t, l) {
|
|
421
421
|
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
|
|
@@ -424,22 +424,22 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
424
424
|
const a = Q(
|
|
425
425
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
426
426
|
r.value[t].value,
|
|
427
|
-
|
|
427
|
+
F({
|
|
428
428
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
429
429
|
v: r.value[t].value,
|
|
430
430
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
431
431
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
432
432
|
}),
|
|
433
433
|
{ datapoint: r.value[t], position: l }
|
|
434
|
-
), o =
|
|
434
|
+
), o = F({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ul({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
|
|
435
435
|
let d = "";
|
|
436
|
-
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = a), `${
|
|
436
|
+
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = a), `${n}${d}`;
|
|
437
437
|
}
|
|
438
438
|
function me(t = null) {
|
|
439
439
|
jt(() => {
|
|
440
|
-
const l =
|
|
440
|
+
const l = L.value.head.map((u, n) => [[
|
|
441
441
|
u.name
|
|
442
|
-
], [
|
|
442
|
+
], [L.value.body[n]], [isNaN(L.value.body[n] / P.value) ? "-" : L.value.body[n] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = al(a);
|
|
443
443
|
t ? t(o) : ol({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
444
444
|
});
|
|
445
445
|
}
|
|
@@ -448,32 +448,32 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
448
448
|
' <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>',
|
|
449
449
|
Q(
|
|
450
450
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
451
|
-
|
|
452
|
-
|
|
451
|
+
P.value,
|
|
452
|
+
F({
|
|
453
453
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
454
|
-
v:
|
|
454
|
+
v: P.value,
|
|
455
455
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
456
456
|
r: e.value.table.td.roundingValue
|
|
457
457
|
})
|
|
458
458
|
),
|
|
459
459
|
"100%"
|
|
460
|
-
], l =
|
|
460
|
+
], l = L.value.head.map((u, n) => [
|
|
461
461
|
{
|
|
462
462
|
color: u.color,
|
|
463
463
|
name: u.name
|
|
464
464
|
},
|
|
465
465
|
Q(
|
|
466
466
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
467
|
-
|
|
468
|
-
|
|
467
|
+
L.value.body[n],
|
|
468
|
+
F({
|
|
469
469
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
470
|
-
v:
|
|
470
|
+
v: L.value.body[n],
|
|
471
471
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
472
472
|
r: e.value.table.td.roundingValue
|
|
473
473
|
})
|
|
474
474
|
),
|
|
475
|
-
isNaN(
|
|
476
|
-
v:
|
|
475
|
+
isNaN(L.value.body[n] / P.value) ? "-" : F({
|
|
476
|
+
v: L.value.body[n] / P.value * 100,
|
|
477
477
|
s: "%",
|
|
478
478
|
r: e.value.table.td.roundingPercentage
|
|
479
479
|
})
|
|
@@ -501,9 +501,9 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
501
501
|
config: a,
|
|
502
502
|
colNames: o
|
|
503
503
|
};
|
|
504
|
-
}),
|
|
504
|
+
}), R = i(!1);
|
|
505
505
|
function Ye(t) {
|
|
506
|
-
|
|
506
|
+
R.value = t, Te.value += 1;
|
|
507
507
|
}
|
|
508
508
|
function Je() {
|
|
509
509
|
C.value.showTable = !C.value.showTable;
|
|
@@ -516,11 +516,11 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
516
516
|
le.value = !le.value;
|
|
517
517
|
}
|
|
518
518
|
async function Ft({ scale: t = 2 } = {}) {
|
|
519
|
-
if (!
|
|
520
|
-
const { width: l, height: a } =
|
|
519
|
+
if (!S.value) return;
|
|
520
|
+
const { width: l, height: a } = S.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: n } = await yl({ domElement: S.value, base64: !0, img: !0, scale: t });
|
|
521
521
|
return {
|
|
522
522
|
imageUri: u,
|
|
523
|
-
base64:
|
|
523
|
+
base64: n,
|
|
524
524
|
title: e.value.style.chart.title.text,
|
|
525
525
|
width: l,
|
|
526
526
|
height: a,
|
|
@@ -530,15 +530,15 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
530
530
|
const Y = c(() => {
|
|
531
531
|
const t = e.value.table.useDialog && !e.value.table.show, l = C.value.showTable;
|
|
532
532
|
return {
|
|
533
|
-
component: t ?
|
|
533
|
+
component: t ? pt : ct,
|
|
534
534
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
535
535
|
props: t ? {
|
|
536
536
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
537
537
|
color: e.value.table.th.color,
|
|
538
538
|
headerColor: e.value.table.th.color,
|
|
539
539
|
headerBg: e.value.table.th.backgroundColor,
|
|
540
|
-
isFullscreen:
|
|
541
|
-
fullscreenParent:
|
|
540
|
+
isFullscreen: R.value,
|
|
541
|
+
fullscreenParent: S.value,
|
|
542
542
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
543
543
|
} : {
|
|
544
544
|
hideDetails: !0,
|
|
@@ -563,10 +563,10 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
563
563
|
function Ke() {
|
|
564
564
|
C.value.showTable = !1, ie.value && ie.value.setTableIconState(!1);
|
|
565
565
|
}
|
|
566
|
-
const Bt = c(() =>
|
|
566
|
+
const Bt = c(() => M.value.map((t) => ({
|
|
567
567
|
...t,
|
|
568
568
|
name: t.display
|
|
569
|
-
}))), Dt = c(() => e.value.style.chart.backgroundColor), Vt = c(() => e.value.style.chart.legend), Nt = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Mt } =
|
|
569
|
+
}))), Dt = c(() => e.value.style.chart.backgroundColor), Vt = c(() => e.value.style.chart.legend), Nt = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Mt } = fl({
|
|
570
570
|
svg: de,
|
|
571
571
|
title: Nt,
|
|
572
572
|
legend: Vt,
|
|
@@ -580,7 +580,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
580
580
|
} else
|
|
581
581
|
zt();
|
|
582
582
|
}
|
|
583
|
-
return
|
|
583
|
+
return nt({
|
|
584
584
|
getData: Ct,
|
|
585
585
|
getImage: Ft,
|
|
586
586
|
generatePdf: Ue,
|
|
@@ -588,42 +588,62 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
588
588
|
generateImage: Ee,
|
|
589
589
|
generateSvg: Ze,
|
|
590
590
|
hideSeries: Tt,
|
|
591
|
-
showSeries:
|
|
591
|
+
showSeries: xt,
|
|
592
592
|
toggleTable: Je,
|
|
593
593
|
toggleTooltip: Qe,
|
|
594
594
|
toggleAnnotator: we,
|
|
595
595
|
toggleFullscreen: Ye
|
|
596
|
-
}), (t, l) => (
|
|
597
|
-
class: tt(`vue-data-ui-component vue-ui-waffle ${
|
|
596
|
+
}), (t, l) => (s(), v("div", {
|
|
597
|
+
class: tt(`vue-data-ui-component vue-ui-waffle ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
598
598
|
ref_key: "waffleChart",
|
|
599
|
-
ref:
|
|
599
|
+
ref: S,
|
|
600
600
|
id: `vue-ui-waffle_${b.value}`,
|
|
601
601
|
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
602
602
|
onMouseenter: l[2] || (l[2] = () => h(De)(!0)),
|
|
603
603
|
onMouseleave: l[3] || (l[3] = () => h(De)(!1))
|
|
604
604
|
}, [
|
|
605
|
-
e.value.userOptions.buttons.annotator ? (
|
|
605
|
+
e.value.userOptions.buttons.annotator ? (s(), V(h(ht), {
|
|
606
606
|
key: 0,
|
|
607
607
|
svgRef: h(de),
|
|
608
608
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
609
609
|
color: e.value.style.chart.color,
|
|
610
610
|
active: le.value,
|
|
611
611
|
onClose: we
|
|
612
|
-
},
|
|
613
|
-
|
|
612
|
+
}, {
|
|
613
|
+
"annotator-action-close": f(() => [
|
|
614
|
+
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
615
|
+
]),
|
|
616
|
+
"annotator-action-color": f(({ color: a }) => [
|
|
617
|
+
p(t.$slots, "annotator-action-color", x(T({ color: a })), void 0, !0)
|
|
618
|
+
]),
|
|
619
|
+
"annotator-action-draw": f(({ mode: a }) => [
|
|
620
|
+
p(t.$slots, "annotator-action-draw", x(T({ mode: a })), void 0, !0)
|
|
621
|
+
]),
|
|
622
|
+
"annotator-action-undo": f(({ disabled: a }) => [
|
|
623
|
+
p(t.$slots, "annotator-action-undo", x(T({ disabled: a })), void 0, !0)
|
|
624
|
+
]),
|
|
625
|
+
"annotator-action-redo": f(({ disabled: a }) => [
|
|
626
|
+
p(t.$slots, "annotator-action-redo", x(T({ disabled: a })), void 0, !0)
|
|
627
|
+
]),
|
|
628
|
+
"annotator-action-delete": f(({ disabled: a }) => [
|
|
629
|
+
p(t.$slots, "annotator-action-delete", x(T({ disabled: a })), void 0, !0)
|
|
630
|
+
]),
|
|
631
|
+
_: 3
|
|
632
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
633
|
+
bt.value ? (s(), v("div", {
|
|
614
634
|
key: 1,
|
|
615
635
|
ref_key: "noTitle",
|
|
616
636
|
ref: Ae,
|
|
617
637
|
class: "vue-data-ui-no-title-space",
|
|
618
638
|
style: "height:36px; width: 100%;background:transparent"
|
|
619
639
|
}, null, 512)) : m("", !0),
|
|
620
|
-
e.value.style.chart.title.text ? (
|
|
640
|
+
e.value.style.chart.title.text ? (s(), v("div", {
|
|
621
641
|
key: 2,
|
|
622
642
|
ref_key: "chartTitle",
|
|
623
643
|
ref: Ie,
|
|
624
644
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
625
645
|
}, [
|
|
626
|
-
(
|
|
646
|
+
(s(), V(ml, {
|
|
627
647
|
key: `title_${Oe.value}`,
|
|
628
648
|
config: {
|
|
629
649
|
title: {
|
|
@@ -639,8 +659,8 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
639
659
|
], 512)) : m("", !0),
|
|
640
660
|
k("div", {
|
|
641
661
|
id: `legend-top-${b.value}`
|
|
642
|
-
}, null, 8,
|
|
643
|
-
e.value.userOptions.show &&
|
|
662
|
+
}, null, 8, xl),
|
|
663
|
+
e.value.userOptions.show && ne.value && (h(Ve) || h(ce)) ? (s(), V(h(dt), {
|
|
644
664
|
ref_key: "userOptionsRef",
|
|
645
665
|
ref: ie,
|
|
646
666
|
key: `user_options_${Te.value}`,
|
|
@@ -656,10 +676,10 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
656
676
|
hasXls: e.value.userOptions.buttons.csv,
|
|
657
677
|
hasTable: e.value.userOptions.buttons.table,
|
|
658
678
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
659
|
-
isFullscreen:
|
|
679
|
+
isFullscreen: R.value,
|
|
660
680
|
isTooltip: C.value.showTooltip,
|
|
661
681
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
662
|
-
chartElement:
|
|
682
|
+
chartElement: S.value,
|
|
663
683
|
position: e.value.userOptions.position,
|
|
664
684
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
665
685
|
isAnnotation: le.value,
|
|
@@ -680,79 +700,79 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
680
700
|
}, Ce({ _: 2 }, [
|
|
681
701
|
t.$slots.menuIcon ? {
|
|
682
702
|
name: "menuIcon",
|
|
683
|
-
fn:
|
|
684
|
-
|
|
703
|
+
fn: f(({ isOpen: a, color: o }) => [
|
|
704
|
+
p(t.$slots, "menuIcon", x(T({ isOpen: a, color: o })), void 0, !0)
|
|
685
705
|
]),
|
|
686
706
|
key: "0"
|
|
687
707
|
} : void 0,
|
|
688
708
|
t.$slots.optionTooltip ? {
|
|
689
709
|
name: "optionTooltip",
|
|
690
|
-
fn:
|
|
691
|
-
|
|
710
|
+
fn: f(() => [
|
|
711
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
692
712
|
]),
|
|
693
713
|
key: "1"
|
|
694
714
|
} : void 0,
|
|
695
715
|
t.$slots.optionPdf ? {
|
|
696
716
|
name: "optionPdf",
|
|
697
|
-
fn:
|
|
698
|
-
|
|
717
|
+
fn: f(() => [
|
|
718
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
699
719
|
]),
|
|
700
720
|
key: "2"
|
|
701
721
|
} : void 0,
|
|
702
722
|
t.$slots.optionCsv ? {
|
|
703
723
|
name: "optionCsv",
|
|
704
|
-
fn:
|
|
705
|
-
|
|
724
|
+
fn: f(() => [
|
|
725
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
706
726
|
]),
|
|
707
727
|
key: "3"
|
|
708
728
|
} : void 0,
|
|
709
729
|
t.$slots.optionImg ? {
|
|
710
730
|
name: "optionImg",
|
|
711
|
-
fn:
|
|
712
|
-
|
|
731
|
+
fn: f(() => [
|
|
732
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
713
733
|
]),
|
|
714
734
|
key: "4"
|
|
715
735
|
} : void 0,
|
|
716
736
|
t.$slots.optionSvg ? {
|
|
717
737
|
name: "optionSvg",
|
|
718
|
-
fn:
|
|
719
|
-
|
|
738
|
+
fn: f(() => [
|
|
739
|
+
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
720
740
|
]),
|
|
721
741
|
key: "5"
|
|
722
742
|
} : void 0,
|
|
723
743
|
t.$slots.optionTable ? {
|
|
724
744
|
name: "optionTable",
|
|
725
|
-
fn:
|
|
726
|
-
|
|
745
|
+
fn: f(() => [
|
|
746
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
727
747
|
]),
|
|
728
748
|
key: "6"
|
|
729
749
|
} : void 0,
|
|
730
750
|
t.$slots.optionFullscreen ? {
|
|
731
751
|
name: "optionFullscreen",
|
|
732
|
-
fn:
|
|
733
|
-
|
|
752
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
753
|
+
p(t.$slots, "optionFullscreen", x(T({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
734
754
|
]),
|
|
735
755
|
key: "7"
|
|
736
756
|
} : void 0,
|
|
737
757
|
t.$slots.optionAnnotator ? {
|
|
738
758
|
name: "optionAnnotator",
|
|
739
|
-
fn:
|
|
740
|
-
|
|
759
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
760
|
+
p(t.$slots, "optionAnnotator", x(T({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
741
761
|
]),
|
|
742
762
|
key: "8"
|
|
743
763
|
} : void 0
|
|
744
764
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
745
|
-
(
|
|
765
|
+
(s(), v("svg", {
|
|
746
766
|
ref_key: "svgRef",
|
|
747
767
|
ref: de,
|
|
748
768
|
xmlns: h(Kt),
|
|
749
|
-
class: tt({ "vue-data-ui-fullscreen--on":
|
|
750
|
-
viewBox: `0 0 ${
|
|
769
|
+
class: tt({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
770
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
751
771
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
752
772
|
}, [
|
|
753
|
-
oe(h(
|
|
773
|
+
oe(h(ft)),
|
|
754
774
|
k("defs", null, [
|
|
755
|
-
(
|
|
775
|
+
(s(!0), v(I, null, N(r.value, (a, o) => (s(), v("radialGradient", {
|
|
756
776
|
cx: "50%",
|
|
757
777
|
cy: "50%",
|
|
758
778
|
r: "50%",
|
|
@@ -788,67 +808,67 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
788
808
|
}, null, -1)
|
|
789
809
|
])], 8, Al)
|
|
790
810
|
]),
|
|
791
|
-
e.value.useCustomCells && r.value.length ? (
|
|
811
|
+
e.value.useCustomCells && r.value.length ? (s(!0), v(I, { key: 0 }, N(G.value, (a, o) => (s(), v("foreignObject", {
|
|
792
812
|
x: a.x,
|
|
793
813
|
y: a.y,
|
|
794
|
-
height:
|
|
795
|
-
width:
|
|
814
|
+
height: O.value <= 0 ? 1e-4 : O.value,
|
|
815
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
796
816
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
797
817
|
}, [
|
|
798
|
-
|
|
818
|
+
p(t.$slots, "cell", $e({ ref_for: !0 }, { cell: { ...a, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(E.value) ? !0 : r.value[o].serieIndex === E.value }), void 0, !0)
|
|
799
819
|
], 8, Ol))), 256)) : m("", !0),
|
|
800
|
-
!r.value.length && !e.value.useCustomCells ? (
|
|
820
|
+
!r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
|
|
801
821
|
key: 1,
|
|
802
822
|
x: 12,
|
|
803
823
|
y: 12,
|
|
804
|
-
height:
|
|
805
|
-
width:
|
|
824
|
+
height: _.value.height - 24,
|
|
825
|
+
width: _.value.width - 24,
|
|
806
826
|
rx: 3,
|
|
807
827
|
fill: "none",
|
|
808
828
|
stroke: "black"
|
|
809
|
-
}, null, 8, Pl)) : r.value.length && !e.value.useCustomCells ? (
|
|
810
|
-
t.$slots.pattern ? (
|
|
811
|
-
(
|
|
812
|
-
|
|
829
|
+
}, null, 8, Pl)) : r.value.length && !e.value.useCustomCells ? (s(), v(I, { key: 2 }, [
|
|
830
|
+
t.$slots.pattern ? (s(), v("g", Ll, [
|
|
831
|
+
(s(!0), v(I, null, N(pe.value, (a) => (s(), v("defs", null, [
|
|
832
|
+
p(t.$slots, "pattern", $e({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
813
833
|
]))), 256))
|
|
814
834
|
])) : m("", !0),
|
|
815
|
-
(
|
|
835
|
+
(s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
|
|
816
836
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
817
837
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
818
838
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
819
|
-
height:
|
|
820
|
-
width:
|
|
839
|
+
height: O.value <= 0 ? 1e-4 : O.value,
|
|
840
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
821
841
|
fill: "white",
|
|
822
842
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
823
843
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
824
844
|
filter: ee(r.value[o].serieIndex)
|
|
825
845
|
}, null, 8, Fl))), 256)),
|
|
826
|
-
(
|
|
846
|
+
(s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
|
|
827
847
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
828
848
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
829
849
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
830
|
-
height:
|
|
831
|
-
width:
|
|
850
|
+
height: O.value <= 0 ? 1e-4 : O.value,
|
|
851
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
832
852
|
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : r.value[o].color,
|
|
833
853
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
834
854
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
835
855
|
filter: ee(r.value[o].serieIndex)
|
|
836
856
|
}, null, 8, Bl))), 256)),
|
|
837
|
-
t.$slots.pattern ? (
|
|
838
|
-
(
|
|
857
|
+
t.$slots.pattern ? (s(), v("g", Dl, [
|
|
858
|
+
(s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
|
|
839
859
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
840
860
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
841
861
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
842
|
-
height:
|
|
843
|
-
width:
|
|
862
|
+
height: O.value <= 0 ? 1e-4 : O.value,
|
|
863
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
844
864
|
fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
|
|
845
865
|
stroke: "none",
|
|
846
866
|
filter: ee(r.value[o].serieIndex)
|
|
847
867
|
}, null, 8, Vl))), 256))
|
|
848
868
|
])) : m("", !0)
|
|
849
869
|
], 64)) : m("", !0),
|
|
850
|
-
(
|
|
851
|
-
Pt(o, a) ? (
|
|
870
|
+
(s(!0), v(I, null, N(G.value, (a, o) => (s(), v(I, null, [
|
|
871
|
+
Pt(o, a) ? (s(), v("text", {
|
|
852
872
|
key: `datalabel_${o}`,
|
|
853
873
|
textContent: ue(Lt(o, a)),
|
|
854
874
|
x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
@@ -858,7 +878,7 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
858
878
|
filter: ee(r.value[o].serieIndex)
|
|
859
879
|
}, null, 8, Nl)) : m("", !0)
|
|
860
880
|
], 64))), 256)),
|
|
861
|
-
(
|
|
881
|
+
(s(!0), v(I, null, N(G.value, (a, o) => (s(), v("rect", {
|
|
862
882
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
863
883
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
864
884
|
height: Ge.value,
|
|
@@ -869,15 +889,15 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
869
889
|
onMouseleave: (u) => _t(o),
|
|
870
890
|
onClick: (u) => St(o)
|
|
871
891
|
}, null, 40, zl))), 256)),
|
|
872
|
-
|
|
892
|
+
p(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
873
893
|
], 14, Tl)),
|
|
874
|
-
t.$slots.watermark ? (
|
|
875
|
-
|
|
894
|
+
t.$slots.watermark ? (s(), v("div", Ml, [
|
|
895
|
+
p(t.$slots, "watermark", x(T({ isPrinting: h(Me) || h(Re) })), void 0, !0)
|
|
876
896
|
])) : m("", !0),
|
|
877
897
|
k("div", {
|
|
878
898
|
id: `legend-bottom-${b.value}`
|
|
879
899
|
}, null, 8, Rl),
|
|
880
|
-
Fe.value ? (
|
|
900
|
+
Fe.value ? (s(), V(Gt, {
|
|
881
901
|
key: 5,
|
|
882
902
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
883
903
|
}, [
|
|
@@ -885,23 +905,23 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
885
905
|
ref_key: "chartLegend",
|
|
886
906
|
ref: Se
|
|
887
907
|
}, [
|
|
888
|
-
e.value.style.chart.legend.show ? (
|
|
908
|
+
e.value.style.chart.legend.show ? (s(), V(kl, {
|
|
889
909
|
key: `legend_${Le.value}`,
|
|
890
|
-
legendSet:
|
|
910
|
+
legendSet: M.value,
|
|
891
911
|
config: It.value,
|
|
892
912
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.uid))
|
|
893
913
|
}, Ce({
|
|
894
|
-
item:
|
|
914
|
+
item: f(({ legend: a }) => [
|
|
895
915
|
k("div", {
|
|
896
916
|
onClick: (o) => a.segregate(),
|
|
897
|
-
style: ae(`opacity:${
|
|
917
|
+
style: ae(`opacity:${y.value.includes(a.uid) ? 0.5 : 1}`)
|
|
898
918
|
}, ue(a.display), 13, Ul)
|
|
899
919
|
]),
|
|
900
920
|
_: 2
|
|
901
921
|
}, [
|
|
902
922
|
t.$slots.pattern ? {
|
|
903
923
|
name: "legend-pattern",
|
|
904
|
-
fn:
|
|
924
|
+
fn: f(({ legend: a, index: o }) => [
|
|
905
925
|
oe(bl, {
|
|
906
926
|
shape: a.shape,
|
|
907
927
|
radius: 30,
|
|
@@ -912,22 +932,22 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
912
932
|
]),
|
|
913
933
|
key: "0"
|
|
914
934
|
} : void 0
|
|
915
|
-
]), 1032, ["legendSet", "config"])) :
|
|
935
|
+
]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
916
936
|
key: 1,
|
|
917
|
-
legend:
|
|
937
|
+
legend: M.value
|
|
918
938
|
}, void 0, !0)
|
|
919
939
|
], 512)
|
|
920
940
|
], 8, ["to"])) : m("", !0),
|
|
921
|
-
t.$slots.source ? (
|
|
941
|
+
t.$slots.source ? (s(), v("div", {
|
|
922
942
|
key: 6,
|
|
923
943
|
ref_key: "source",
|
|
924
944
|
ref: _e,
|
|
925
945
|
dir: "auto"
|
|
926
946
|
}, [
|
|
927
|
-
|
|
947
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
928
948
|
], 512)) : m("", !0),
|
|
929
949
|
oe(h(rt), {
|
|
930
|
-
show: C.value.showTooltip &&
|
|
950
|
+
show: C.value.showTooltip && se.value && y.value.length < w.dataset.length,
|
|
931
951
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
932
952
|
color: e.value.style.chart.tooltip.color,
|
|
933
953
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -936,31 +956,31 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
936
956
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
937
957
|
position: e.value.style.chart.tooltip.position,
|
|
938
958
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
939
|
-
parent:
|
|
959
|
+
parent: S.value,
|
|
940
960
|
content: re.value,
|
|
941
961
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
942
962
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
943
|
-
isFullscreen:
|
|
963
|
+
isFullscreen: R.value,
|
|
944
964
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
945
965
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
946
966
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
947
967
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
948
968
|
}, {
|
|
949
|
-
"tooltip-before":
|
|
950
|
-
|
|
969
|
+
"tooltip-before": f(() => [
|
|
970
|
+
p(t.$slots, "tooltip-before", x(T({ ...ye.value })), void 0, !0)
|
|
951
971
|
]),
|
|
952
|
-
"tooltip-after":
|
|
953
|
-
|
|
972
|
+
"tooltip-after": f(() => [
|
|
973
|
+
p(t.$slots, "tooltip-after", x(T({ ...ye.value })), void 0, !0)
|
|
954
974
|
]),
|
|
955
975
|
_: 3
|
|
956
976
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
957
|
-
|
|
977
|
+
ne.value && e.value.userOptions.buttons.table ? (s(), V(Ht(Y.value.component), $e({ key: 7 }, Y.value.props, {
|
|
958
978
|
ref_key: "tableUnit",
|
|
959
979
|
ref: H,
|
|
960
980
|
onClose: Ke
|
|
961
981
|
}), Ce({
|
|
962
|
-
content:
|
|
963
|
-
(
|
|
982
|
+
content: f(() => [
|
|
983
|
+
(s(), V(h(vt), {
|
|
964
984
|
key: `table_${Pe.value}`,
|
|
965
985
|
colNames: te.value.colNames,
|
|
966
986
|
head: te.value.head,
|
|
@@ -970,13 +990,13 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
970
990
|
withCloseButton: !e.value.table.useDialog,
|
|
971
991
|
onClose: Ke
|
|
972
992
|
}, {
|
|
973
|
-
th:
|
|
993
|
+
th: f(({ th: a }) => [
|
|
974
994
|
k("div", {
|
|
975
995
|
innerHTML: a,
|
|
976
996
|
style: { display: "flex", "align-items": "center" }
|
|
977
997
|
}, null, 8, El)
|
|
978
998
|
]),
|
|
979
|
-
td:
|
|
999
|
+
td: f(({ td: a }) => [
|
|
980
1000
|
lt(ue(a.name || a), 1)
|
|
981
1001
|
]),
|
|
982
1002
|
_: 1
|
|
@@ -986,14 +1006,14 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
986
1006
|
}, [
|
|
987
1007
|
e.value.table.useDialog ? {
|
|
988
1008
|
name: "title",
|
|
989
|
-
fn:
|
|
1009
|
+
fn: f(() => [
|
|
990
1010
|
lt(ue(Y.value.title), 1)
|
|
991
1011
|
]),
|
|
992
1012
|
key: "0"
|
|
993
1013
|
} : void 0,
|
|
994
1014
|
e.value.table.useDialog ? {
|
|
995
1015
|
name: "actions",
|
|
996
|
-
fn:
|
|
1016
|
+
fn: f(() => [
|
|
997
1017
|
k("button", {
|
|
998
1018
|
tabindex: "0",
|
|
999
1019
|
class: "vue-ui-user-options-button",
|
|
@@ -1008,10 +1028,10 @@ const xl = ["id"], $l = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
1008
1028
|
key: "1"
|
|
1009
1029
|
} : void 0
|
|
1010
1030
|
]), 1040)) : m("", !0),
|
|
1011
|
-
h(Be) ? (
|
|
1012
|
-
], 46,
|
|
1031
|
+
h(Be) ? (s(), V(dl, { key: 8 })) : m("", !0)
|
|
1032
|
+
], 46, $l));
|
|
1013
1033
|
}
|
|
1014
|
-
}, ua = /* @__PURE__ */ Cl(Wl, [["__scopeId", "data-v-
|
|
1034
|
+
}, ua = /* @__PURE__ */ Cl(Wl, [["__scopeId", "data-v-24beaccb"]]);
|
|
1015
1035
|
export {
|
|
1016
1036
|
ua as default
|
|
1017
1037
|
};
|