vue-data-ui 2.12.7-beta.0 → 2.12.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CmqjRRUl.js → Arrow-BhI2Y-DB.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-DyUBiw-C.js} +68 -64
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-PZPlJOYf.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-Bni7kKI_.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-bcUa-A_V.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-iNd1Vv1J.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-DwB3JfsE.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-BVH19wf6.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-U4bWifCe.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-CTyy5HJi.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-hiaHGsme.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-oo_wqrT6.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-BTCPUIcD.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B9AfUFVK.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-yZJ8noVU.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-BgRIWz9M.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CgYxq-UP.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-CaxNz2cE.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-eUy0b_yU.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-DpK9-Xt0.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-BprQttno.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-BkO9svuE.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-Bft3k9wg.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-BZ16n4QT.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BblPK5iv.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-DW3swnxO.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-DybokJeh.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-aXzuaWXT.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-D7_v27hl.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-ClfPFRWK.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-Clo2yN8x.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-B8JmpYZU.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-1NiHT8ua.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-Dqu8UHsY.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-CUtyrFQ-.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-5_qG_tB0.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-1lYLTlUJ.js} +106 -104
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-CuwZfqp-.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-nxV5Lnel.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-tTYudPKX.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-CB7f2IrG.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-C-GUoJrH.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-DJCYaqYy.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-Bbzq8KZx.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-B8-Tt_rt.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-VZWKmy4e.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-DzRSBGF2.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-Bd_c8Hcd.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-CjiJjcj8.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-CVhAGwOt.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-D9pp5ytM.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-hOcz4qfM.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-Ht49w0AN.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-SFe7EifM.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-C1mc0XYY.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DVYexEqN.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-CFkW0M7L.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-DcOstg2I.js} +145 -142
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-C56TMht1.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-C2S6nsP6.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-C2paDc2u.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-gtVgClTv.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend-C_p-qgkO.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-DIS3FVja.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-D92XnV3e.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BQlf7QW3.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-C9vOtZav.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-B2G5fOpR.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-L_7f4pZj.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-Dhj9PQvC.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-CZ1DXGtE.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-C8oJOBM-.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D-ZfWmxu.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-D7S49sXa.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-Bh_0k4fp.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-CQVFXHjo.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DshqhXXR.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-64gS06ES.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-MjyNmQ85.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-FzQbyvix.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BHPSrRVK.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-8UgjM7P9.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-BbYuna1k.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-CDNUpxZ5.js} +7 -7
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as mt, c as
|
|
1
|
+
import { defineAsyncComponent as B, computed as g, ref as y, watch as Ie, shallowRef as Ee, onMounted as yt, onBeforeUnmount as bt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as q, normalizeClass as T, createBlock as O, createCommentVNode as h, createElementVNode as c, createVNode as ce, createSlots as ft, withCtx as m, renderSlot as x, normalizeProps as E, guardReactiveProps as U, Fragment as C, renderList as Y, toDisplayString as L, createTextVNode as pt, nextTick as gt } from "vue";
|
|
2
|
+
import { u as mt, c as Ue, t as xt, p as he, a as $t, o as kt, e as D, b as Lt, d as wt, W as qt, i as R, f as V, X as _t, s as oe, w as Ct, Y as St, G as zt, q as Tt, r as Wt, x as Xt, y as Yt } from "./index-CaxNz2cE.js";
|
|
3
3
|
import { t as At, u as Mt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Nt } from "./usePrinter-
|
|
4
|
+
import { u as De } from "./useNestedProp-DpK9-Xt0.js";
|
|
5
|
+
import { u as Nt } from "./usePrinter-BprQttno.js";
|
|
6
6
|
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Vt from "./Title-
|
|
9
|
-
import Pt from "./Legend-
|
|
8
|
+
import Vt from "./Title-BTCPUIcD.js";
|
|
9
|
+
import Pt from "./Legend-iNd1Vv1J.js";
|
|
10
|
+
import Ge from "./Shape-CTyy5HJi.js";
|
|
10
11
|
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
12
|
const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "height"], Et = ["id"], Ut = ["stop-color"], Dt = ["stop-color"], Gt = { key: 1 }, Qt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Zt = { key: 2 }, Kt = ["points", "fill"], el = ["points", "fill"], tl = ["points", "fill"], ll = ["points", "fill"], al = { key: 3 }, ul = ["y", "fill", "font-size"], ol = ["x", "y", "fill", "font-size"], sl = ["x", "y", "fill", "font-size"], rl = ["y", "fill", "font-size"], nl = { key: 4 }, il = ["x", "y", "font-size", "fill"], vl = ["x", "y", "font-size", "fill"], dl = ["x", "y", "font-size", "fill"], cl = ["id", "font-size", "transform", "fill"], hl = ["id", "font-size", "transform", "fill"], yl = ["id", "font-size", "transform", "fill"], bl = { key: 5 }, fl = ["fill", "points"], pl = ["x", "y", "width", "height"], gl = ["x", "y", "width", "height"], ml = ["x", "y", "width", "height"], xl = ["x", "y", "width", "height"], $l = {
|
|
12
13
|
key: 0,
|
|
@@ -40,28 +41,28 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
40
41
|
},
|
|
41
42
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
42
43
|
setup(Qe, { expose: Je, emit: je }) {
|
|
43
|
-
const Ze =
|
|
44
|
-
get: () =>
|
|
44
|
+
const Ze = B(() => import("./DataTable-bcUa-A_V.js")), Ke = B(() => import("./PenAndPaper-U4bWifCe.js")), et = B(() => import("./vue-ui-accordion-BZ16n4QT.js")), tt = B(() => import("./vue-ui-skeleton-C2paDc2u.js")), lt = B(() => import("./Tooltip-B9AfUFVK.js")), at = B(() => import("./UserOptions-yZJ8noVU.js")), ut = B(() => import("./PackageVersion-BVH19wf6.js")), { vue_ui_quadrant: ot } = mt(), W = Qe, K = g(() => !!W.dataset && W.dataset.length), z = y(Ue()), se = je, st = y(null), ee = y(!1), re = y(""), ye = y(0), p = y(!1), G = y(null), be = y(null), fe = y(null), pe = y(null), ge = y(null), me = y(0), xe = y(0), $e = y(0), t = g({
|
|
45
|
+
get: () => qe(),
|
|
45
46
|
set: (l) => l
|
|
46
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility:
|
|
47
|
-
function
|
|
48
|
-
const l =
|
|
47
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: Le } = Ot({ config: t.value }), { svgRef: we } = Rt({ config: t.value.style.chart.title });
|
|
48
|
+
function qe() {
|
|
49
|
+
const l = De({
|
|
49
50
|
userConfig: W.config,
|
|
50
51
|
defaultConfig: ot
|
|
51
52
|
});
|
|
52
53
|
return l.theme ? {
|
|
53
|
-
...
|
|
54
|
+
...De({
|
|
54
55
|
userConfig: $t.vue_ui_quadrant[l.theme] || W.config,
|
|
55
56
|
defaultConfig: l
|
|
56
57
|
}),
|
|
57
58
|
customPalette: xt[l.theme] || he
|
|
58
59
|
} : l;
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
-
t.value =
|
|
61
|
+
Ie(() => W.config, (l) => {
|
|
62
|
+
t.value = qe(), ne.value = !t.value.userOptions.showOnChartHover, _e(), me.value += 1, xe.value += 1, $e.value += 1, $.value.plotLabels.show = t.value.style.chart.layout.labels.plotLabels.show, $.value.showTable = t.value.table.show, $.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
62
63
|
}, { deep: !0 });
|
|
63
|
-
const A =
|
|
64
|
-
function
|
|
64
|
+
const A = Ee(null), F = Ee(null);
|
|
65
|
+
function _e() {
|
|
65
66
|
if (kt(W.dataset) ? D({
|
|
66
67
|
componentName: "VueUiQuadrant",
|
|
67
68
|
type: "dataset"
|
|
@@ -89,10 +90,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
89
90
|
const l = At(() => {
|
|
90
91
|
const { width: u, height: a } = Mt({
|
|
91
92
|
chart: G.value,
|
|
92
|
-
title: t.value.style.chart.title.text ?
|
|
93
|
-
legend: t.value.style.chart.legend.show ?
|
|
94
|
-
source:
|
|
95
|
-
noTitle:
|
|
93
|
+
title: t.value.style.chart.title.text ? be.value : null,
|
|
94
|
+
legend: t.value.style.chart.legend.show ? fe.value : null,
|
|
95
|
+
source: pe.value,
|
|
96
|
+
noTitle: ge.value
|
|
96
97
|
});
|
|
97
98
|
k.value = 48, requestAnimationFrame(() => {
|
|
98
99
|
e.value.height = a, e.value.usableHeight = a - k.value * 2, e.value.width = u, e.value.usableWidth = u - k.value * 2, e.value.top = k.value, e.value.left = k.value, e.value.right = u - k.value, e.value.bottom = a - k.value, e.value.centerX = u / 2, e.value.centerY = a - a / 2, e.value.padding = k.value;
|
|
@@ -102,15 +103,15 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
yt(() => {
|
|
105
|
-
|
|
106
|
+
_e();
|
|
106
107
|
}), bt(() => {
|
|
107
108
|
A.value && (F.value && A.value.unobserve(F.value), A.value.disconnect());
|
|
108
109
|
});
|
|
109
|
-
const { isPrinting:
|
|
110
|
+
const { isPrinting: Ce, isImaging: Se, generatePdf: ze, generateImage: Te } = Nt({
|
|
110
111
|
elementId: `vue-ui-quadrant_${z.value}`,
|
|
111
112
|
fileName: t.value.style.chart.title.text || "vue-ui-quadrant",
|
|
112
113
|
options: t.value.userOptions.print
|
|
113
|
-
}), rt = g(() => t.value.userOptions.show && !t.value.style.chart.title.text),
|
|
114
|
+
}), rt = g(() => t.value.userOptions.show && !t.value.style.chart.title.text), We = g(() => Lt(t.value.customPalette)), $ = y({
|
|
114
115
|
plotLabels: {
|
|
115
116
|
show: t.value.style.chart.layout.labels.plotLabels.show
|
|
116
117
|
},
|
|
@@ -133,14 +134,14 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
133
134
|
startX: 0,
|
|
134
135
|
startY: 0
|
|
135
136
|
});
|
|
136
|
-
|
|
137
|
+
Ie(() => e.value, (l) => {
|
|
137
138
|
l && (v.value = {
|
|
138
139
|
...JSON.parse(JSON.stringify(e.value)),
|
|
139
140
|
startX: 0,
|
|
140
141
|
startY: 0
|
|
141
142
|
});
|
|
142
143
|
}, { deep: !0 });
|
|
143
|
-
const d = y(null),
|
|
144
|
+
const d = y(null), P = g(() => {
|
|
144
145
|
switch (d.value) {
|
|
145
146
|
case "TL":
|
|
146
147
|
return {
|
|
@@ -191,10 +192,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
191
192
|
h: s - v.value.height
|
|
192
193
|
}, f = t.value.zoomAnimationFrames;
|
|
193
194
|
let X = 0;
|
|
194
|
-
function
|
|
195
|
-
te.value = !0, v.value.startX += b.x / f, v.value.startY += b.y / f, v.value.width += b.w / f, v.value.height += b.h / f, X += 1, X < f ? nt.value = requestAnimationFrame(
|
|
195
|
+
function He() {
|
|
196
|
+
te.value = !0, v.value.startX += b.x / f, v.value.startY += b.y / f, v.value.width += b.w / f, v.value.height += b.h / f, X += 1, X < f ? nt.value = requestAnimationFrame(He) : te.value = !1;
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
+
He();
|
|
198
199
|
}
|
|
199
200
|
function M(l) {
|
|
200
201
|
if (!te.value)
|
|
@@ -280,17 +281,17 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
280
281
|
threshold: t.value.downsample.threshold
|
|
281
282
|
}),
|
|
282
283
|
id: `cat_${u}_${z.value}`,
|
|
283
|
-
color: wt(l.color) ||
|
|
284
|
+
color: wt(l.color) || We.value[u] || he[u]
|
|
284
285
|
}))), vt = g(() => H.value.filter((l) => !N.value.includes(l.id))), dt = g(() => H.value.map((l, u) => ({
|
|
285
286
|
...l,
|
|
286
287
|
shape: l.shape || "circle",
|
|
287
288
|
series: l.series.map((a) => ({
|
|
288
289
|
...a,
|
|
289
|
-
x:
|
|
290
|
-
y:
|
|
290
|
+
x: Xe(a.x),
|
|
291
|
+
y: Ye(a.y),
|
|
291
292
|
xValue: a.x,
|
|
292
293
|
yValue: a.y,
|
|
293
|
-
quadrantSide:
|
|
294
|
+
quadrantSide: Me({ x: a.x, y: a.y }),
|
|
294
295
|
categoryName: l.name,
|
|
295
296
|
shape: l.shape,
|
|
296
297
|
color: l.color
|
|
@@ -314,21 +315,21 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
314
315
|
}), vt.value.map((l, u) => ({
|
|
315
316
|
...l,
|
|
316
317
|
shape: l.shape || "circle",
|
|
317
|
-
color: l.color ||
|
|
318
|
+
color: l.color || We.value[u] || he[u],
|
|
318
319
|
series: l.series.map((a) => ({
|
|
319
320
|
...a,
|
|
320
|
-
x:
|
|
321
|
-
y:
|
|
321
|
+
x: Xe(a.x),
|
|
322
|
+
y: Ye(a.y),
|
|
322
323
|
xValue: a.x,
|
|
323
324
|
yValue: a.y,
|
|
324
|
-
quadrantSide:
|
|
325
|
+
quadrantSide: Me({ x: a.x, y: a.y }),
|
|
325
326
|
categoryName: l.name,
|
|
326
327
|
shape: l.shape,
|
|
327
328
|
color: l.color,
|
|
328
|
-
uid:
|
|
329
|
+
uid: Ue()
|
|
329
330
|
}))
|
|
330
331
|
}))));
|
|
331
|
-
function
|
|
332
|
+
function Xe(l) {
|
|
332
333
|
if (l >= 0) {
|
|
333
334
|
const u = l / _.value.x.max;
|
|
334
335
|
return e.value.centerX + e.value.usableWidth / 2 * u;
|
|
@@ -337,7 +338,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
337
338
|
return e.value.centerX - e.value.usableWidth / 2 * u;
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function Ye(l) {
|
|
341
342
|
if (l >= 0) {
|
|
342
343
|
const u = l / _.value.y.max;
|
|
343
344
|
return e.value.centerY + (1 - e.value.usableHeight / 2 * u);
|
|
@@ -369,18 +370,18 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
369
370
|
name: s.category
|
|
370
371
|
},
|
|
371
372
|
s.name,
|
|
372
|
-
|
|
373
|
+
R(
|
|
373
374
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
374
375
|
s.x,
|
|
375
|
-
|
|
376
|
+
V({
|
|
376
377
|
v: s.x,
|
|
377
378
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
378
379
|
})
|
|
379
380
|
),
|
|
380
|
-
|
|
381
|
+
R(
|
|
381
382
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
382
383
|
s.y,
|
|
383
|
-
|
|
384
|
+
V({
|
|
384
385
|
v: s.y,
|
|
385
386
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
386
387
|
})
|
|
@@ -403,10 +404,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
403
404
|
});
|
|
404
405
|
function ie(l) {
|
|
405
406
|
N.value.includes(l) ? N.value = N.value.filter((a) => a !== l) : N.value.push(l);
|
|
406
|
-
const u =
|
|
407
|
+
const u = Re();
|
|
407
408
|
se("selectLegend", u);
|
|
408
409
|
}
|
|
409
|
-
const
|
|
410
|
+
const Ae = g(() => dt.value.map((l) => ({
|
|
410
411
|
name: l.name,
|
|
411
412
|
shape: l.shape,
|
|
412
413
|
color: l.color,
|
|
@@ -422,7 +423,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
422
423
|
paddingBottom: 12,
|
|
423
424
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
424
425
|
}));
|
|
425
|
-
function
|
|
426
|
+
function Me(l) {
|
|
426
427
|
switch (!0) {
|
|
427
428
|
case (l.x >= 0 && l.y >= 0):
|
|
428
429
|
return "tr";
|
|
@@ -437,7 +438,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
440
|
const J = y(null), j = y(null), ve = y(null);
|
|
440
|
-
function
|
|
441
|
+
function Ne(l, u, a) {
|
|
441
442
|
J.value = u.uid, j.value = {
|
|
442
443
|
color: l.color,
|
|
443
444
|
shape: l.shape
|
|
@@ -462,18 +463,18 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
462
463
|
});
|
|
463
464
|
else {
|
|
464
465
|
let r = "";
|
|
465
|
-
u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${
|
|
466
|
+
u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${R(
|
|
466
467
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
467
468
|
u.xValue,
|
|
468
|
-
|
|
469
|
+
V({
|
|
469
470
|
v: u.xValue,
|
|
470
471
|
r: t.value.style.chart.tooltip.roundingValue
|
|
471
472
|
}),
|
|
472
473
|
{ datapoint: u, category: l, categoryIndex: a }
|
|
473
|
-
)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${
|
|
474
|
+
)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${R(
|
|
474
475
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
475
476
|
u.yValue,
|
|
476
|
-
|
|
477
|
+
V({
|
|
477
478
|
v: u.yValue,
|
|
478
479
|
r: t.value.style.chart.tooltip.roundingValue
|
|
479
480
|
}),
|
|
@@ -481,7 +482,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
481
482
|
)}</b></div>`, re.value = `<div style="text-align:left;font-size:${t.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function Oe(l, u) {
|
|
485
486
|
const a = {
|
|
486
487
|
category: l.name,
|
|
487
488
|
shape: l.shape,
|
|
@@ -613,7 +614,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
613
614
|
}
|
|
614
615
|
}
|
|
615
616
|
}));
|
|
616
|
-
function
|
|
617
|
+
function Re() {
|
|
617
618
|
return S.value.map((l) => ({
|
|
618
619
|
color: l.color,
|
|
619
620
|
name: l.name,
|
|
@@ -627,7 +628,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
627
628
|
}))
|
|
628
629
|
}));
|
|
629
630
|
}
|
|
630
|
-
function
|
|
631
|
+
function Ve() {
|
|
631
632
|
gt(() => {
|
|
632
633
|
const l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], u = le.value.head, a = le.value.body, s = l.concat([u]).concat(a), r = Tt(s);
|
|
633
634
|
Wt({ csvContent: r, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
@@ -635,15 +636,15 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
635
636
|
}
|
|
636
637
|
const I = y(!1);
|
|
637
638
|
function ht(l) {
|
|
638
|
-
I.value = l,
|
|
639
|
+
I.value = l, ye.value += 1;
|
|
639
640
|
}
|
|
640
|
-
function
|
|
641
|
+
function Pe() {
|
|
641
642
|
$.value.showTable = !$.value.showTable;
|
|
642
643
|
}
|
|
643
|
-
function
|
|
644
|
+
function Be() {
|
|
644
645
|
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
645
646
|
}
|
|
646
|
-
function
|
|
647
|
+
function Fe() {
|
|
647
648
|
$.value.showTooltip = !$.value.showTooltip;
|
|
648
649
|
}
|
|
649
650
|
const ue = y(!1);
|
|
@@ -651,13 +652,13 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
651
652
|
ue.value = !ue.value;
|
|
652
653
|
}
|
|
653
654
|
return Je({
|
|
654
|
-
getData:
|
|
655
|
-
generatePdf:
|
|
656
|
-
generateCsv:
|
|
657
|
-
generateImage:
|
|
658
|
-
toggleTable:
|
|
659
|
-
toggleLabels:
|
|
660
|
-
toggleTooltip:
|
|
655
|
+
getData: Re,
|
|
656
|
+
generatePdf: ze,
|
|
657
|
+
generateCsv: Ve,
|
|
658
|
+
generateImage: Te,
|
|
659
|
+
toggleTable: Pe,
|
|
660
|
+
toggleLabels: Be,
|
|
661
|
+
toggleTooltip: Fe,
|
|
661
662
|
toggleAnnotator: de
|
|
662
663
|
}), (l, u) => (o(), n("div", {
|
|
663
664
|
class: T(`vue-ui-quadrant ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -665,12 +666,12 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
665
666
|
ref: G,
|
|
666
667
|
id: `vue-ui-quadrant_${z.value}`,
|
|
667
668
|
style: q(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`),
|
|
668
|
-
onMouseenter: u[16] || (u[16] = () => i(
|
|
669
|
-
onMouseleave: u[17] || (u[17] = () => i(
|
|
669
|
+
onMouseenter: u[16] || (u[16] = () => i(ke)(!0)),
|
|
670
|
+
onMouseleave: u[17] || (u[17] = () => i(ke)(!1))
|
|
670
671
|
}, [
|
|
671
|
-
t.value.userOptions.buttons.annotator ? (o(),
|
|
672
|
+
t.value.userOptions.buttons.annotator ? (o(), O(i(Ke), {
|
|
672
673
|
key: 0,
|
|
673
|
-
svgRef: i(
|
|
674
|
+
svgRef: i(we),
|
|
674
675
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
675
676
|
color: t.value.style.chart.color,
|
|
676
677
|
active: ue.value,
|
|
@@ -679,18 +680,18 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
679
680
|
rt.value ? (o(), n("div", {
|
|
680
681
|
key: 1,
|
|
681
682
|
ref_key: "noTitle",
|
|
682
|
-
ref:
|
|
683
|
+
ref: ge,
|
|
683
684
|
class: "vue-data-ui-no-title-space",
|
|
684
685
|
style: "height:36px; width: 100%;background:transparent"
|
|
685
686
|
}, null, 512)) : h("", !0),
|
|
686
687
|
t.value.style.chart.title.text ? (o(), n("div", {
|
|
687
688
|
key: 2,
|
|
688
689
|
ref_key: "chartTitle",
|
|
689
|
-
ref:
|
|
690
|
+
ref: be,
|
|
690
691
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
691
692
|
}, [
|
|
692
|
-
(o(),
|
|
693
|
-
key: `table_${
|
|
693
|
+
(o(), O(Vt, {
|
|
694
|
+
key: `table_${me.value}`,
|
|
694
695
|
config: {
|
|
695
696
|
title: {
|
|
696
697
|
cy: "quadrant-title",
|
|
@@ -703,14 +704,14 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
703
704
|
}
|
|
704
705
|
}, null, 8, ["config"]))
|
|
705
706
|
], 512)) : h("", !0),
|
|
706
|
-
t.value.userOptions.show && K.value && (i(
|
|
707
|
+
t.value.userOptions.show && K.value && (i(Le) || i(ne)) ? (o(), O(i(at), {
|
|
707
708
|
ref_key: "details",
|
|
708
709
|
ref: st,
|
|
709
|
-
key: `user_options_${
|
|
710
|
+
key: `user_options_${ye.value}`,
|
|
710
711
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
711
712
|
color: t.value.style.chart.color,
|
|
712
|
-
isImaging: i(
|
|
713
|
-
isPrinting: i(
|
|
713
|
+
isImaging: i(Se),
|
|
714
|
+
isPrinting: i(Ce),
|
|
714
715
|
uid: z.value,
|
|
715
716
|
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
716
717
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
@@ -727,15 +728,15 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
727
728
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
728
729
|
isAnnotation: ue.value,
|
|
729
730
|
onToggleFullscreen: ht,
|
|
730
|
-
onGeneratePdf: i(
|
|
731
|
-
onGenerateCsv:
|
|
732
|
-
onGenerateImage: i(
|
|
733
|
-
onToggleTable:
|
|
734
|
-
onToggleLabels:
|
|
735
|
-
onToggleTooltip:
|
|
731
|
+
onGeneratePdf: i(ze),
|
|
732
|
+
onGenerateCsv: Ve,
|
|
733
|
+
onGenerateImage: i(Te),
|
|
734
|
+
onToggleTable: Pe,
|
|
735
|
+
onToggleLabels: Be,
|
|
736
|
+
onToggleTooltip: Fe,
|
|
736
737
|
onToggleAnnotator: de,
|
|
737
738
|
style: q({
|
|
738
|
-
visibility: i(
|
|
739
|
+
visibility: i(Le) ? i(ne) ? "visible" : "hidden" : "visible"
|
|
739
740
|
})
|
|
740
741
|
}, ft({ _: 2 }, [
|
|
741
742
|
l.$slots.menuIcon ? {
|
|
@@ -805,7 +806,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
805
806
|
K.value ? (o(), n("svg", {
|
|
806
807
|
key: 4,
|
|
807
808
|
ref_key: "svgRef",
|
|
808
|
-
ref:
|
|
809
|
+
ref: we,
|
|
809
810
|
xmlns: i(_t),
|
|
810
811
|
class: T({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
811
812
|
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
@@ -943,10 +944,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
943
944
|
"text-anchor": "middle",
|
|
944
945
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
945
946
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
946
|
-
}, L(i(
|
|
947
|
+
}, L(i(R)(
|
|
947
948
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
948
949
|
_.value.y.max,
|
|
949
|
-
i(
|
|
950
|
+
i(V)({
|
|
950
951
|
v: _.value.y.max,
|
|
951
952
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
952
953
|
})
|
|
@@ -964,10 +965,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
964
965
|
"text-anchor": "middle",
|
|
965
966
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
966
967
|
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
967
|
-
}, L(i(
|
|
968
|
+
}, L(i(R)(
|
|
968
969
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
969
970
|
_.value.y.min,
|
|
970
|
-
i(
|
|
971
|
+
i(V)({
|
|
971
972
|
v: _.value.y.min,
|
|
972
973
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
973
974
|
})
|
|
@@ -978,10 +979,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
978
979
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
979
980
|
transform: `translate(${e.value.padding - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(-90)`,
|
|
980
981
|
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
981
|
-
}, L(i(
|
|
982
|
+
}, L(i(R)(
|
|
982
983
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
983
984
|
_.value.x.min,
|
|
984
|
-
i(
|
|
985
|
+
i(V)({
|
|
985
986
|
v: _.value.x.min,
|
|
986
987
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
987
988
|
})
|
|
@@ -992,10 +993,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
992
993
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
993
994
|
transform: `translate(${e.value.width - e.value.padding + t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
994
995
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
995
|
-
}, L(i(
|
|
996
|
+
}, L(i(R)(
|
|
996
997
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
997
998
|
_.value.x.max,
|
|
998
|
-
i(
|
|
999
|
+
i(V)({
|
|
999
1000
|
v: _.value.x.max,
|
|
1000
1001
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
1001
1002
|
})
|
|
@@ -1065,11 +1066,11 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1065
1066
|
width: "100",
|
|
1066
1067
|
x: r.x - 50,
|
|
1067
1068
|
y: r.y - t.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1068
|
-
onMouseover: (b) =>
|
|
1069
|
+
onMouseover: (b) => Ne(a, r, s),
|
|
1069
1070
|
onMouseleave: u[9] || (u[9] = (b) => {
|
|
1070
1071
|
ee.value = !1, J.value = null, j.value = null;
|
|
1071
1072
|
}),
|
|
1072
|
-
onClick: (b) =>
|
|
1073
|
+
onClick: (b) => Oe(a, r)
|
|
1073
1074
|
}, [
|
|
1074
1075
|
c("div", {
|
|
1075
1076
|
style: q(`color:${i(zt)(a.color)};margin: 0 auto; font-size:${t.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: ${t.value.style.chart.layout.labels.plotLabels.fontSize * 1.5}px`)
|
|
@@ -1079,7 +1080,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1079
1080
|
])) : h("", !0)
|
|
1080
1081
|
], 64)) : (o(), n(C, { key: 6 }, [
|
|
1081
1082
|
(o(!0), n(C, null, Y(S.value, (a, s) => (o(), n("g", null, [
|
|
1082
|
-
(o(!0), n(C, null, Y(a.series, (r) => (o(),
|
|
1083
|
+
(o(!0), n(C, null, Y(a.series, (r) => (o(), O(Ge, {
|
|
1083
1084
|
color: a.color,
|
|
1084
1085
|
isSelected: J.value && r.uid === J.value,
|
|
1085
1086
|
plot: r,
|
|
@@ -1087,11 +1088,11 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1087
1088
|
shape: a.shape,
|
|
1088
1089
|
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
1089
1090
|
strokeWidth: t.value.style.chart.layout.plots.outlineWidth,
|
|
1090
|
-
onMouseenter: (b) =>
|
|
1091
|
+
onMouseenter: (b) => Ne(a, r, s),
|
|
1091
1092
|
onMouseleave: u[8] || (u[8] = (b) => {
|
|
1092
1093
|
ee.value = !1, J.value = null, j.value = null;
|
|
1093
1094
|
}),
|
|
1094
|
-
onClick: (b) =>
|
|
1095
|
+
onClick: (b) => Oe(a, r)
|
|
1095
1096
|
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onClick"]))), 256))
|
|
1096
1097
|
]))), 256)),
|
|
1097
1098
|
$.value.plotLabels.show ? (o(), n("g", $l, [
|
|
@@ -1134,13 +1135,13 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1134
1135
|
])) : h("", !0),
|
|
1135
1136
|
d.value && !te.value ? (o(), n("g", Tl, [
|
|
1136
1137
|
c("text", {
|
|
1137
|
-
x:
|
|
1138
|
-
y:
|
|
1139
|
-
"font-size":
|
|
1140
|
-
fill:
|
|
1138
|
+
x: P.value.x,
|
|
1139
|
+
y: P.value.y - P.value.fontSize / 1.5,
|
|
1140
|
+
"font-size": P.value.fontSize / 1.5,
|
|
1141
|
+
fill: P.value.fill,
|
|
1141
1142
|
"text-anchor": "middle",
|
|
1142
|
-
"font-weight":
|
|
1143
|
-
}, L(
|
|
1143
|
+
"font-weight": P.value.bold ? "bold" : "normal"
|
|
1144
|
+
}, L(P.value.text), 9, Wl)
|
|
1144
1145
|
])) : h("", !0),
|
|
1145
1146
|
p.value && d.value ? (o(), n("g", Xl, [
|
|
1146
1147
|
c("rect", {
|
|
@@ -1199,9 +1200,9 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1199
1200
|
x(l.$slots, "svg", { svg: e.value }, void 0, !0)
|
|
1200
1201
|
], 14, Ht)) : h("", !0),
|
|
1201
1202
|
l.$slots.watermark ? (o(), n("div", Vl, [
|
|
1202
|
-
x(l.$slots, "watermark", E(U({ isPrinting: i(
|
|
1203
|
+
x(l.$slots, "watermark", E(U({ isPrinting: i(Ce) || i(Se) })), void 0, !0)
|
|
1203
1204
|
])) : h("", !0),
|
|
1204
|
-
K.value ? h("", !0) : (o(),
|
|
1205
|
+
K.value ? h("", !0) : (o(), O(i(tt), {
|
|
1205
1206
|
key: 6,
|
|
1206
1207
|
config: {
|
|
1207
1208
|
type: "quadrant",
|
|
@@ -1221,11 +1222,11 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1221
1222
|
}, null, 8, ["config"])),
|
|
1222
1223
|
c("div", {
|
|
1223
1224
|
ref_key: "chartLegend",
|
|
1224
|
-
ref:
|
|
1225
|
+
ref: fe
|
|
1225
1226
|
}, [
|
|
1226
|
-
t.value.style.chart.legend.show ? (o(),
|
|
1227
|
-
key: `legend_${
|
|
1228
|
-
legendSet:
|
|
1227
|
+
t.value.style.chart.legend.show ? (o(), O(Pt, {
|
|
1228
|
+
key: `legend_${$e.value}`,
|
|
1229
|
+
legendSet: Ae.value,
|
|
1229
1230
|
config: ct.value,
|
|
1230
1231
|
onClickMarker: u[14] || (u[14] = ({ legend: a }) => ie(a.id))
|
|
1231
1232
|
}, {
|
|
@@ -1238,13 +1239,13 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1238
1239
|
_: 1
|
|
1239
1240
|
}, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
|
|
1240
1241
|
key: 1,
|
|
1241
|
-
legend:
|
|
1242
|
+
legend: Ae.value
|
|
1242
1243
|
}, void 0, !0)
|
|
1243
1244
|
], 512),
|
|
1244
1245
|
l.$slots.source ? (o(), n("div", {
|
|
1245
1246
|
key: 7,
|
|
1246
1247
|
ref_key: "source",
|
|
1247
|
-
ref:
|
|
1248
|
+
ref: pe,
|
|
1248
1249
|
dir: "auto"
|
|
1249
1250
|
}, [
|
|
1250
1251
|
x(l.$slots, "source", {}, void 0, !0)
|
|
@@ -1273,7 +1274,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1273
1274
|
]),
|
|
1274
1275
|
default: m(() => [
|
|
1275
1276
|
t.value.style.chart.tooltip.showShape ? (o(), n("svg", Bl, [
|
|
1276
|
-
ce(
|
|
1277
|
+
ce(Ge, {
|
|
1277
1278
|
plot: { x: 10, y: 10 },
|
|
1278
1279
|
shape: j.value.shape,
|
|
1279
1280
|
color: j.value.color,
|
|
@@ -1285,7 +1286,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1285
1286
|
]),
|
|
1286
1287
|
_: 3
|
|
1287
1288
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1288
|
-
K.value ? (o(),
|
|
1289
|
+
K.value ? (o(), O(i(et), {
|
|
1289
1290
|
key: 8,
|
|
1290
1291
|
hideDetails: "",
|
|
1291
1292
|
config: {
|
|
@@ -1302,8 +1303,8 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1302
1303
|
}
|
|
1303
1304
|
}, {
|
|
1304
1305
|
content: m(() => [
|
|
1305
|
-
(o(),
|
|
1306
|
-
key: `table_${
|
|
1306
|
+
(o(), O(i(Ze), {
|
|
1307
|
+
key: `table_${xe.value}`,
|
|
1307
1308
|
colNames: ae.value.colNames,
|
|
1308
1309
|
head: ae.value.head,
|
|
1309
1310
|
body: ae.value.body,
|
|
@@ -1326,7 +1327,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
|
|
|
1326
1327
|
}, 8, ["config"])) : h("", !0)
|
|
1327
1328
|
], 46, Ft));
|
|
1328
1329
|
}
|
|
1329
|
-
},
|
|
1330
|
+
}, ta = /* @__PURE__ */ Bt(Hl, [["__scopeId", "data-v-4b9d5e51"]]);
|
|
1330
1331
|
export {
|
|
1331
|
-
|
|
1332
|
+
ta as default
|
|
1332
1333
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineAsyncComponent as de, ref as L, computed as U, watch as De, shallowRef as ct, onMounted as Et, onBeforeUnmount as Pt, nextTick as Re, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as ce, createBlock as Me, createCommentVNode as g, createVNode as he, unref as f, createSlots as Ot, withCtx as G, renderSlot as M, normalizeProps as oe, guardReactiveProps as ne, toDisplayString as P, createElementVNode as _, Fragment as m, renderList as $, mergeProps as Ve } from "vue";
|
|
2
|
-
import { u as Tt, c as Rt, t as Mt, p as q, a as Nt, C as ht, b as Ft, H as Ut, e as Bt, d as qe, m as Dt, D as ft, X as Vt, j as qt, k as He, n as _e, i as X, f as D, U as gt, v as Z, x as Ne, y as We } from "./index-
|
|
2
|
+
import { u as Tt, c as Rt, t as Mt, p as q, a as Nt, C as ht, b as Ft, H as Ut, e as Bt, d as qe, m as Dt, D as ft, X as Vt, j as qt, k as He, n as _e, i as X, f as D, U as gt, v as Z, x as Ne, y as We } from "./index-CaxNz2cE.js";
|
|
3
3
|
import { t as Ht, u as Wt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as mt } from "./useNestedProp-
|
|
5
|
-
import { u as jt } from "./usePrinter-
|
|
4
|
+
import { u as mt } from "./useNestedProp-DpK9-Xt0.js";
|
|
5
|
+
import { u as jt } from "./usePrinter-BprQttno.js";
|
|
6
6
|
import { u as Gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import { S as Xt } from "./Slicer-
|
|
7
|
+
import { S as Xt } from "./Slicer-hiaHGsme.js";
|
|
8
8
|
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const A = {
|
|
10
10
|
LINE: "LINE",
|
|
@@ -151,7 +151,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
151
151
|
},
|
|
152
152
|
emits: ["selectDatapoint", "selectLegend"],
|
|
153
153
|
setup(c, { expose: C, emit: y }) {
|
|
154
|
-
const O = de(() => import("./BaseIcon-
|
|
154
|
+
const O = de(() => import("./BaseIcon-PZPlJOYf.js")), H = de(() => import("./PackageVersion-BVH19wf6.js")), fe = de(() => import("./PenAndPaper-U4bWifCe.js")), ge = de(() => import("./vue-ui-skeleton-C2paDc2u.js")), me = de(() => import("./Tooltip-B9AfUFVK.js")), Le = de(() => import("./UserOptions-yZJ8noVU.js")), { vue_ui_quick_chart: N } = Tt(), B = c, pe = L(null), je = L(null), Ge = L(null), Xe = L(null), J = L(Rt()), K = L(!1), ye = L(null), ee = L(""), W = L(null), Ze = L(null), Ye = L(null), w = L([]), Je = L(0), $e = L(0), e = U({
|
|
155
155
|
get: () => tt(),
|
|
156
156
|
set: (o) => o
|
|
157
157
|
}), { svgRef: Qe } = Gt({ config: { text: e.value.title } }), bt = U(() => e.value.showUserOptionsOnChartHover), Ke = U(() => e.value.keepUserOptionsStateOnChartLeave), Ce = L(!e.value.showUserOptionsOnChartHover);
|