vue-data-ui 2.15.4 → 2.15.5
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-BQEd_wRd.js → Arrow-CI_Chty0.js} +1 -1
- package/dist/{BaseDraggableDialog-BjF36RRw.js → BaseDraggableDialog-UeaNekHG.js} +2 -2
- package/dist/{BaseIcon-2scCpKdr.js → BaseIcon-DTTmgKBX.js} +1 -1
- package/dist/{ColorPicker-CDeA3YBV.js → ColorPicker-BySm_2Gi.js} +6 -6
- package/dist/{DataTable-IKRxrKEU.js → DataTable-CLeYfh93.js} +2 -2
- package/dist/{Legend-DC-fDruC.js → Legend-B949nNP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-bX1Ui_EC.js → NonSvgPenAndPaper-zuNWbm52.js} +3 -3
- package/dist/{PackageVersion-CQFOMkQe.js → PackageVersion-Djh3oJFs.js} +1 -1
- package/dist/{PenAndPaper-DFjucqRK.js → PenAndPaper-BlF1d4XE.js} +3 -3
- package/dist/{Shape-FD7ONBrG.js → Shape-DmDw1mpi.js} +1 -1
- package/dist/{Slicer-Bzl5YpDL.js → Slicer-mINKiN6T.js} +13 -13
- package/dist/{SparkTooltip-BCvNYPb4.js → SparkTooltip-B888Ijov.js} +1 -1
- package/dist/{Title-CIt92-DI.js → Title-CPvPrwF4.js} +1 -1
- package/dist/{Tooltip-1FFfLKkv.js → Tooltip-BiWfcBQk.js} +1 -1
- package/dist/{UserOptions-ChEMQwwM.js → UserOptions-CFllUVQ4.js} +2 -2
- package/dist/{dom-to-png-DT4oXcWc.js → dom-to-png-DeajhH5Z.js} +1 -1
- package/dist/{img-DFfoLjtb.js → img-4TaH43jS.js} +1 -1
- package/dist/{index-k9FPl_-D.js → index-CBhz79Be.js} +11 -6
- package/dist/{pdf-CN1aIkJS.js → pdf-BlK5aBh-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +7 -0
- package/dist/types/vue-data-ui.d.ts +7 -0
- package/dist/{useNestedProp-upzRxZOw.js → useNestedProp-Cg9K3ISG.js} +1 -1
- package/dist/{usePrinter-CARdq6Fz.js → usePrinter-DNC_9y1d.js} +2 -2
- package/dist/{vue-data-ui-mV-4-e8e.js → vue-data-ui-DcP8arpr.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BMhc9SiP.js → vue-ui-3d-bar-k4SNfbLV.js} +5 -5
- package/dist/{vue-ui-accordion-ATCD6-Tg.js → vue-ui-accordion-BWiiOpGO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-2i_hXqip.js → vue-ui-age-pyramid-ruNP1NJy.js} +5 -5
- package/dist/{vue-ui-annotator-Breve0su.js → vue-ui-annotator-_31h_MMe.js} +2 -2
- package/dist/{vue-ui-bullet-Biziff3B.js → vue-ui-bullet-BWmLA5Tg.js} +6 -6
- package/dist/vue-ui-candlestick-C8f9jUPZ.js +856 -0
- package/dist/{vue-ui-carousel-table-ZHZOptd2.js → vue-ui-carousel-table-DY90M9EE.js} +4 -4
- package/dist/{vue-ui-chestnut-Cg0P2bco.js → vue-ui-chestnut-DyxtZhwH.js} +28 -28
- package/dist/{vue-ui-chord-CODyOR1w.js → vue-ui-chord-C8hE1GXD.js} +47 -47
- package/dist/{vue-ui-circle-pack-BZ0Fl6Em.js → vue-ui-circle-pack-Dy8buEl5.js} +24 -24
- package/dist/{vue-ui-cursor-PLc3WrpA.js → vue-ui-cursor-Bb8yPXC9.js} +2 -2
- package/dist/{vue-ui-dashboard-BiGxJMVg.js → vue-ui-dashboard-SSYhdz1j.js} +62 -62
- package/dist/{vue-ui-digits-D_s5X6Gv.js → vue-ui-digits-D4Du84P3.js} +2 -2
- package/dist/{vue-ui-donut-BADbAnZ7.js → vue-ui-donut-C0dqyYUE.js} +7 -7
- package/dist/{vue-ui-donut-evolution-DSDySesn.js → vue-ui-donut-evolution-BOrRbvDz.js} +7 -7
- package/dist/{vue-ui-dumbbell-C-81iCzF.js → vue-ui-dumbbell-DKmEVC-5.js} +6 -6
- package/dist/{vue-ui-flow-MlOiiVqg.js → vue-ui-flow-DalrAEmv.js} +24 -24
- package/dist/{vue-ui-funnel-DXCWqpfj.js → vue-ui-funnel-B-k_4VgX.js} +5 -5
- package/dist/{vue-ui-galaxy-Aremt6Os.js → vue-ui-galaxy-BWaie_o-.js} +35 -35
- package/dist/{vue-ui-gauge-CRt_-O7S.js → vue-ui-gauge-D71TDx5z.js} +17 -17
- package/dist/{vue-ui-gizmo-2b7hFkMI.js → vue-ui-gizmo-CJChusop.js} +3 -3
- package/dist/{vue-ui-heatmap-DbLkBq8U.js → vue-ui-heatmap-DLwLB3pv.js} +31 -31
- package/dist/{vue-ui-history-plot-CJ7xDgWe.js → vue-ui-history-plot-D7wNqDSc.js} +34 -34
- package/dist/{vue-ui-kpi-BEUT--Y2.js → vue-ui-kpi-CJut0fnk.js} +3 -3
- package/dist/{vue-ui-mini-loader-CFKVgefJ.js → vue-ui-mini-loader-DP2pINNZ.js} +2 -2
- package/dist/{vue-ui-molecule-BzPDfeL2.js → vue-ui-molecule-D8b1J-IM.js} +4 -4
- package/dist/{vue-ui-mood-radar-CxCOF6D7.js → vue-ui-mood-radar-Br6izAkp.js} +6 -6
- package/dist/{vue-ui-nested-donuts-7Y06IxwD.js → vue-ui-nested-donuts-DTYcStbt.js} +25 -25
- package/dist/{vue-ui-onion-C5ycZG0D.js → vue-ui-onion-DVtreg0e.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DTi16joz.js → vue-ui-parallel-coordinate-plot-COHHYnBG.js} +35 -35
- package/dist/{vue-ui-quadrant-CKhiKHS0.js → vue-ui-quadrant-ClO3Aae-.js} +7 -7
- package/dist/{vue-ui-quick-chart-CvwSCsif.js → vue-ui-quick-chart-DXRWvUUA.js} +5 -5
- package/dist/{vue-ui-radar-CVsEeYXD.js → vue-ui-radar-Cs54EIJ2.js} +6 -6
- package/dist/{vue-ui-rating-fxUUbMdu.js → vue-ui-rating-Drx2P4xK.js} +2 -2
- package/dist/{vue-ui-relation-circle-BxpZWN-i.js → vue-ui-relation-circle-B75Rh82J.js} +30 -30
- package/dist/{vue-ui-ridgeline-CIB1O3j4.js → vue-ui-ridgeline-DuZjVwmL.js} +7 -7
- package/dist/{vue-ui-rings-BrNNe84c.js → vue-ui-rings-DWMToWPQ.js} +21 -21
- package/dist/{vue-ui-scatter-16nBWie7.js → vue-ui-scatter-CAh7kj6p.js} +7 -7
- package/dist/{vue-ui-skeleton-Bd_C0wSv.js → vue-ui-skeleton-Dnw_Mcqb.js} +3 -3
- package/dist/{vue-ui-smiley-DMeM0qiO.js → vue-ui-smiley-CkbdMJqH.js} +2 -2
- package/dist/{vue-ui-spark-trend-BHFQFK9s.js → vue-ui-spark-trend-DYVXugEw.js} +3 -3
- package/dist/{vue-ui-sparkbar-ll_sPgnw.js → vue-ui-sparkbar-Bv1RBHgo.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CxJGBD5X.js → vue-ui-sparkgauge-Ls2_d0PB.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-D2G4enc2.js → vue-ui-sparkhistogram-CimMCtyI.js} +4 -4
- package/dist/{vue-ui-sparkline-BpPTlOzu.js → vue-ui-sparkline-ex9TddKP.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Ceg1ZY7U.js → vue-ui-sparkstackbar-DUy1WJg0.js} +3 -3
- package/dist/{vue-ui-stackbar-CapcKmV8.js → vue-ui-stackbar-DaaB_FjD.js} +8 -8
- package/dist/{vue-ui-strip-plot-BNNnSAKO.js → vue-ui-strip-plot-HVQoc18O.js} +32 -32
- package/dist/{vue-ui-table-Cw9CBNiW.js → vue-ui-table-Oa_A-Vxo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CvnYKuy6.js → vue-ui-table-heatmap-DWdkbupf.js} +18 -18
- package/dist/{vue-ui-table-sparkline-DDGyDfI0.js → vue-ui-table-sparkline-Cxj3ZoBu.js} +4 -4
- package/dist/{vue-ui-thermometer-Bwj_Ew5C.js → vue-ui-thermometer-D-_Dqdcv.js} +5 -5
- package/dist/{vue-ui-timer-Do7bjdtG.js → vue-ui-timer-C01Ipde6.js} +30 -30
- package/dist/{vue-ui-tiremarks-wJyN3gsD.js → vue-ui-tiremarks-BTBo3bor.js} +5 -5
- package/dist/{vue-ui-treemap-CVSCG10W.js → vue-ui-treemap-DJEl32W1.js} +75 -75
- package/dist/{vue-ui-vertical-bar-CfRyQ9Cn.js → vue-ui-vertical-bar-CnCpCi4v.js} +8 -8
- package/dist/{vue-ui-waffle-CWDvXh87.js → vue-ui-waffle-rFSfHosn.js} +30 -30
- package/dist/{vue-ui-wheel-Dk5ONtqz.js → vue-ui-wheel-B6md6ra7.js} +5 -5
- package/dist/{vue-ui-word-cloud-BXoqw8VQ.js → vue-ui-word-cloud-Co6iFx9I.js} +5 -5
- package/dist/{vue-ui-world-rO4sQpvw.js → vue-ui-world-d09xOrf0.js} +5 -5
- package/dist/{vue-ui-xy-DTkzAeNr.js → vue-ui-xy-CuzhWfRK.js} +20 -20
- package/dist/{vue-ui-xy-canvas-Dmp9S9oY.js → vue-ui-xy-canvas-D2dyilFo.js} +45 -45
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-5C8j-Fb6.js +0 -768
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as k, computed as h, onMounted as
|
|
2
|
-
import { u as je, o as Ye, e as ye, g as qe, c as ge, t as Je, p as
|
|
3
|
-
import { u as ke } from "./useNestedProp-
|
|
4
|
-
import { u as st } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as k, computed as h, onMounted as Re, ref as n, watch as Ue, createElementBlock as i, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as E, createBlock as x, createCommentVNode as c, renderSlot as v, createVNode as ve, createSlots as He, withCtx as d, normalizeProps as _, guardReactiveProps as O, createElementVNode as P, Fragment as de, renderList as he, createTextVNode as pe, toDisplayString as M, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as je, o as Ye, e as ye, g as qe, c as ge, t as Je, p as G, a as Ke, b as Qe, G as fe, d as Ze, M as et, f as w, X as tt, i as be, x as me, q as lt, r as ot, y as at } from "./index-CBhz79Be.js";
|
|
3
|
+
import { u as ke } from "./useNestedProp-Cg9K3ISG.js";
|
|
4
|
+
import { u as st } from "./usePrinter-DNC_9y1d.js";
|
|
5
5
|
import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
7
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -38,8 +38,8 @@ const it = ["id"], ct = {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["selectLegend", "selectDatapoint"],
|
|
40
40
|
setup(Ce, { expose: we, emit: $e }) {
|
|
41
|
-
const xe = k(() => import("./vue-ui-accordion-
|
|
42
|
-
|
|
41
|
+
const xe = k(() => import("./vue-ui-accordion-BWiiOpGO.js")), Te = k(() => import("./DataTable-CLeYfh93.js")), _e = k(() => import("./Legend-B949nNP9.js")), Oe = k(() => import("./PackageVersion-Djh3oJFs.js")), Pe = k(() => import("./PenAndPaper-BlF1d4XE.js")), Se = k(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), Ne = k(() => import("./Title-CPvPrwF4.js")), Le = k(() => import("./Tooltip-BiWfcBQk.js")), Ie = k(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_galaxy: Ae } = je(), f = Ce, I = h(() => !!f.dataset && f.dataset.length);
|
|
42
|
+
Re(() => {
|
|
43
43
|
X();
|
|
44
44
|
});
|
|
45
45
|
function X() {
|
|
@@ -60,7 +60,7 @@ const it = ["id"], ct = {
|
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
const S = n(ge()),
|
|
63
|
+
const S = n(ge()), B = n(null), Fe = n(null), D = n(!1), z = n(""), b = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = h({
|
|
64
64
|
get: () => ee(),
|
|
65
65
|
set: (t) => t
|
|
66
66
|
}), { userOptionsVisible: W, setUserOptionsVisibility: K, keepUserOptionState: Q } = rt({ config: e.value }), { svgRef: Z } = ut({ config: e.value.style.chart.title });
|
|
@@ -74,10 +74,10 @@ const it = ["id"], ct = {
|
|
|
74
74
|
userConfig: Ke.vue_ui_galaxy[t.theme] || f.config,
|
|
75
75
|
defaultConfig: t
|
|
76
76
|
}),
|
|
77
|
-
customPalette: Je[t.theme] ||
|
|
77
|
+
customPalette: Je[t.theme] || G
|
|
78
78
|
} : t;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
Ue(() => f.config, (t) => {
|
|
81
81
|
e.value = ee(), W.value = !e.value.userOptions.showOnChartHover, X(), Y.value += 1, q.value += 1, J.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
82
82
|
}, { deep: !0 });
|
|
83
83
|
const { isPrinting: te, isImaging: le, generatePdf: oe, generateImage: ae } = st({
|
|
@@ -95,7 +95,7 @@ const it = ["id"], ct = {
|
|
|
95
95
|
// or 250 if non fibo
|
|
96
96
|
width: 250
|
|
97
97
|
}), se = $e, y = n([]);
|
|
98
|
-
function
|
|
98
|
+
function R(t) {
|
|
99
99
|
y.value.includes(t.id) ? y.value = y.value.filter((o) => o !== t.id) : y.value.push(t.id), se("selectLegend", L.value.map((o) => ({
|
|
100
100
|
name: o.name,
|
|
101
101
|
color: o.color,
|
|
@@ -104,7 +104,7 @@ const it = ["id"], ct = {
|
|
|
104
104
|
}
|
|
105
105
|
const $ = h(() => f.dataset.map((t, o) => ({
|
|
106
106
|
name: t.name,
|
|
107
|
-
color: Ze(t.color) || Ee.value[o] ||
|
|
107
|
+
color: Ze(t.color) || Ee.value[o] || G[o] || G[o % G.length],
|
|
108
108
|
value: t.values ? fe(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
109
109
|
absoluteValues: fe(t.values),
|
|
110
110
|
id: ge(),
|
|
@@ -117,11 +117,11 @@ const it = ["id"], ct = {
|
|
|
117
117
|
value: t.value
|
|
118
118
|
}));
|
|
119
119
|
}
|
|
120
|
-
const m = h(() => $.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, o) => t + o, 0)),
|
|
120
|
+
const m = h(() => $.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, o) => t + o, 0)), Ge = n(190), re = h(() => $.value.filter((t) => !y.value.includes(t.id))), L = h(() => {
|
|
121
121
|
const t = [];
|
|
122
122
|
for (let o = 0; o < re.value.length; o += 1) {
|
|
123
123
|
const l = re.value[o];
|
|
124
|
-
let s = l.value / m.value *
|
|
124
|
+
let s = l.value / m.value * Ge.value;
|
|
125
125
|
o > 0 && t.length && (s += t[o - 1].points), t.push({
|
|
126
126
|
points: s,
|
|
127
127
|
...l,
|
|
@@ -136,17 +136,17 @@ const it = ["id"], ct = {
|
|
|
136
136
|
}
|
|
137
137
|
return t.filter((o, l) => !y.value.includes(o.id)).toSorted((o, l) => l.points - o.points);
|
|
138
138
|
}), T = n(!1);
|
|
139
|
-
function
|
|
139
|
+
function Be(t) {
|
|
140
140
|
T.value = t, j.value += 1;
|
|
141
141
|
}
|
|
142
|
-
const
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
const U = n(null);
|
|
143
|
+
function De({ datapoint: t, _relativeIndex: o, seriesIndex: l, show: s = !1 }) {
|
|
144
|
+
U.value = {
|
|
145
145
|
datapoint: t,
|
|
146
146
|
seriesIndex: l,
|
|
147
147
|
series: $.value,
|
|
148
148
|
config: e.value
|
|
149
|
-
},
|
|
149
|
+
}, D.value = s, b.value = t.id;
|
|
150
150
|
let u = "";
|
|
151
151
|
const g = e.value.style.chart.tooltip.customFormat;
|
|
152
152
|
me(g) && at(() => g({
|
|
@@ -184,7 +184,7 @@ const it = ["id"], ct = {
|
|
|
184
184
|
proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((s, u) => s + u, 0)).reduce((l, s) => l + s, 0),
|
|
185
185
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
186
186
|
shape: t.shape || "circle",
|
|
187
|
-
segregate: () =>
|
|
187
|
+
segregate: () => R(t),
|
|
188
188
|
isSegregated: y.value.includes(t.id)
|
|
189
189
|
}))), ze = h(() => ({
|
|
190
190
|
cy: "galaxy-div-legend",
|
|
@@ -258,7 +258,7 @@ const it = ["id"], ct = {
|
|
|
258
258
|
p.value.showTooltip = !p.value.showTooltip;
|
|
259
259
|
}
|
|
260
260
|
const F = n(!1);
|
|
261
|
-
function
|
|
261
|
+
function H() {
|
|
262
262
|
F.value = !F.value;
|
|
263
263
|
}
|
|
264
264
|
return we({
|
|
@@ -268,10 +268,10 @@ const it = ["id"], ct = {
|
|
|
268
268
|
generateImage: ae,
|
|
269
269
|
toggleTable: ie,
|
|
270
270
|
toggleTooltip: ce,
|
|
271
|
-
toggleAnnotator:
|
|
271
|
+
toggleAnnotator: H
|
|
272
272
|
}), (t, o) => (r(), i("div", {
|
|
273
273
|
ref_key: "galaxyChart",
|
|
274
|
-
ref:
|
|
274
|
+
ref: B,
|
|
275
275
|
class: E(`vue-ui-galaxy ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
276
276
|
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
277
277
|
id: `galaxy_${S.value}`,
|
|
@@ -284,7 +284,7 @@ const it = ["id"], ct = {
|
|
|
284
284
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
285
285
|
color: e.value.style.chart.color,
|
|
286
286
|
active: F.value,
|
|
287
|
-
onClose:
|
|
287
|
+
onClose: H
|
|
288
288
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
289
289
|
Ve.value ? (r(), i("div", ct, null, 512)) : c("", !0),
|
|
290
290
|
e.value.style.chart.title.text ? (r(), i("div", vt, [
|
|
@@ -320,22 +320,22 @@ const it = ["id"], ct = {
|
|
|
320
320
|
isTooltip: p.value.showTooltip,
|
|
321
321
|
isFullscreen: T.value,
|
|
322
322
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
323
|
-
chartElement:
|
|
323
|
+
chartElement: B.value,
|
|
324
324
|
position: e.value.userOptions.position,
|
|
325
325
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
326
326
|
isAnnotation: F.value,
|
|
327
327
|
callbacks: e.value.userOptions.callbacks,
|
|
328
|
-
onToggleFullscreen:
|
|
328
|
+
onToggleFullscreen: Be,
|
|
329
329
|
onGeneratePdf: a(oe),
|
|
330
330
|
onGenerateCsv: ne,
|
|
331
331
|
onGenerateImage: a(ae),
|
|
332
332
|
onToggleTable: ie,
|
|
333
333
|
onToggleTooltip: ce,
|
|
334
|
-
onToggleAnnotator:
|
|
334
|
+
onToggleAnnotator: H,
|
|
335
335
|
style: V({
|
|
336
336
|
visibility: a(Q) ? a(W) ? "visible" : "hidden" : "visible"
|
|
337
337
|
})
|
|
338
|
-
},
|
|
338
|
+
}, He({ _: 2 }, [
|
|
339
339
|
t.$slots.menuIcon ? {
|
|
340
340
|
name: "menuIcon",
|
|
341
341
|
fn: d(({ isOpen: l, color: s }) => [
|
|
@@ -469,13 +469,13 @@ const it = ["id"], ct = {
|
|
|
469
469
|
stroke: "transparent",
|
|
470
470
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
471
471
|
"stroke-linecap": "round",
|
|
472
|
-
onMouseenter: (u) =>
|
|
472
|
+
onMouseenter: (u) => De({
|
|
473
473
|
datapoint: l,
|
|
474
474
|
seriesIndex: l.seriesIndex,
|
|
475
475
|
show: !0
|
|
476
476
|
}),
|
|
477
477
|
onMouseleave: o[0] || (o[0] = (u) => {
|
|
478
|
-
|
|
478
|
+
D.value = !1, b.value = null;
|
|
479
479
|
}),
|
|
480
480
|
onClick: (u) => se("selectDatapoint", l)
|
|
481
481
|
}, null, 40, kt)) : c("", !0)
|
|
@@ -501,11 +501,11 @@ const it = ["id"], ct = {
|
|
|
501
501
|
key: `legend_${J.value}`,
|
|
502
502
|
legendSet: ue.value,
|
|
503
503
|
config: ze.value,
|
|
504
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
504
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => R(l))
|
|
505
505
|
}, {
|
|
506
506
|
item: d(({ legend: l, index: s }) => [
|
|
507
507
|
P("div", {
|
|
508
|
-
onClick: (u) =>
|
|
508
|
+
onClick: (u) => R(l),
|
|
509
509
|
style: V(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
510
510
|
}, [
|
|
511
511
|
pe(M(l.name) + ": " + M(a(be)(
|
|
@@ -533,7 +533,7 @@ const it = ["id"], ct = {
|
|
|
533
533
|
v(t.$slots, "source", {}, void 0, !0)
|
|
534
534
|
], 512)) : c("", !0),
|
|
535
535
|
ve(a(Le), {
|
|
536
|
-
show: p.value.showTooltip &&
|
|
536
|
+
show: p.value.showTooltip && D.value,
|
|
537
537
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
538
538
|
color: e.value.style.chart.tooltip.color,
|
|
539
539
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -543,16 +543,16 @@ const it = ["id"], ct = {
|
|
|
543
543
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
544
544
|
position: e.value.style.chart.tooltip.position,
|
|
545
545
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
546
|
-
parent:
|
|
546
|
+
parent: B.value,
|
|
547
547
|
content: z.value,
|
|
548
548
|
isFullscreen: T.value,
|
|
549
549
|
isCustom: a(me)(e.value.style.chart.tooltip.customFormat)
|
|
550
550
|
}, {
|
|
551
551
|
"tooltip-before": d(() => [
|
|
552
|
-
v(t.$slots, "tooltip-before", _(O({ ...
|
|
552
|
+
v(t.$slots, "tooltip-before", _(O({ ...U.value })), void 0, !0)
|
|
553
553
|
]),
|
|
554
554
|
"tooltip-after": d(() => [
|
|
555
|
-
v(t.$slots, "tooltip-after", _(O({ ...
|
|
555
|
+
v(t.$slots, "tooltip-after", _(O({ ...U.value })), void 0, !0)
|
|
556
556
|
]),
|
|
557
557
|
_: 3
|
|
558
558
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as He, c as Ze, t as Je, p as xe, a as Ke, b as Qe, o as we, d as et, e as U, g as Se, m as H, N as F, O as tt, X as at, s as Z, n as lt, i as J, f as K,
|
|
1
|
+
import { defineAsyncComponent as G, computed as y, ref as p, watch as ke, shallowRef as be, onMounted as De, onBeforeUnmount as Be, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as q, normalizeClass as _e, createBlock as W, createCommentVNode as c, createElementVNode as m, withCtx as X, toDisplayString as M, createSlots as Ve, renderSlot as x, normalizeProps as j, guardReactiveProps as T, createVNode as qe, Fragment as g, renderList as S, mergeProps as Y } from "vue";
|
|
2
|
+
import { u as He, c as Ze, t as Je, p as xe, a as Ke, b as Qe, o as we, d as et, e as U, g as Se, m as H, N as F, O as tt, X as at, s as Z, n as lt, i as J, f as K, E as Q } from "./index-CBhz79Be.js";
|
|
3
3
|
import { t as rt, u as st } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as $e } from "./useNestedProp-
|
|
5
|
-
import { u as ot } from "./usePrinter-
|
|
4
|
+
import { u as $e } from "./useNestedProp-Cg9K3ISG.js";
|
|
5
|
+
import { u as ot } from "./usePrinter-DNC_9y1d.js";
|
|
6
6
|
import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import it from "./Title-
|
|
8
|
+
import it from "./Title-CPvPrwF4.js";
|
|
9
9
|
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "height"], ft = ["id"], pt = ["stop-color"], mt = ["stop-color"], gt = ["stop-color"], kt = ["id"], bt = ["stdDeviation"], _t = { key: 1 }, xt = ["d", "fill", "stroke"], wt = ["d", "fill", "stroke"], St = ["d", "fill"], $t = ["id", "d"], zt = ["fill", "font-size", "font-weight"], Ft = ["href", "startOffset"], Ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], Ot = ["d", "filter"], Mt = ["stroke", "stroke-width"], Pt = ["stroke", "stroke-width"], Nt = ["stroke", "stroke-width"], Xt = ["stroke", "stroke-width"], It = { key: 8 }, Yt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], At = ["x", "y", "font-size", "font-weight", "fill"], Rt = { key: 0 },
|
|
10
|
+
const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "height"], ft = ["id"], pt = ["stop-color"], mt = ["stop-color"], gt = ["stop-color"], kt = ["id"], bt = ["stdDeviation"], _t = { key: 1 }, xt = ["d", "fill", "stroke"], wt = ["d", "fill", "stroke"], St = ["d", "fill"], $t = ["id", "d"], zt = ["fill", "font-size", "font-weight"], Ft = ["href", "startOffset"], Ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], Ot = ["d", "filter"], Mt = ["stroke", "stroke-width"], Pt = ["stroke", "stroke-width"], Nt = ["stroke", "stroke-width"], Xt = ["stroke", "stroke-width"], It = { key: 8 }, Yt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], At = ["x", "y", "font-size", "font-weight", "fill"], Rt = { key: 0 }, Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Wt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], jt = { key: 1 }, Tt = ["d", "fill", "stroke", "stroke-width"], Ut = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Lt = ["x", "y", "font-size", "fill"], Dt = {
|
|
11
11
|
key: 5,
|
|
12
12
|
class: "vue-data-ui-watermark"
|
|
13
13
|
}, Bt = {
|
|
@@ -27,7 +27,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
setup(L, { expose: ze }) {
|
|
30
|
-
const Fe =
|
|
30
|
+
const Fe = G(() => import("./PenAndPaper-BlF1d4XE.js")), Ce = G(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), Oe = G(() => import("./UserOptions-CFllUVQ4.js")), Me = G(() => import("./PackageVersion-Djh3oJFs.js")), { vue_ui_gauge: Pe } = He(), d = L, A = y(() => !!d.dataset && Object.keys(d.dataset).length > 0 && d.dataset.series && d.dataset.series.length), b = p(Ze()), Ne = p(null), ee = p(0), R = p(null), te = p(null), ae = p(null), le = p(null), re = p(null), se = p(0), e = y({
|
|
31
31
|
get: () => ie(),
|
|
32
32
|
set: (t) => t
|
|
33
33
|
}), { userOptionsVisible: D, setUserOptionsVisibility: oe, keepUserOptionState: ue } = ut({ config: e.value }), { svgRef: ne } = nt({ config: e.value.style.chart.title });
|
|
@@ -266,7 +266,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
266
266
|
let r = 0;
|
|
267
267
|
return t.map((_) => (r += _, `${r / 100 * a - _ / 4}%`));
|
|
268
268
|
}
|
|
269
|
-
const Re = y(() => Ae(h.value.map((t) => t.proportion * 100))),
|
|
269
|
+
const Re = y(() => Ae(h.value.map((t) => t.proportion * 100))), Ee = y(() => H(
|
|
270
270
|
{ series: C.value.series },
|
|
271
271
|
l.value.width / 2,
|
|
272
272
|
v.value.base,
|
|
@@ -278,7 +278,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
278
278
|
180,
|
|
279
279
|
110.02,
|
|
280
280
|
2 * l.value.trackSize
|
|
281
|
-
)),
|
|
281
|
+
)), Ge = y(() => {
|
|
282
282
|
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
283
283
|
return tt(
|
|
284
284
|
{
|
|
@@ -292,9 +292,9 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
292
292
|
function We(t) {
|
|
293
293
|
I.value = t, ee.value += 1;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const E = p(!1);
|
|
296
296
|
function V() {
|
|
297
|
-
|
|
297
|
+
E.value = !E.value;
|
|
298
298
|
}
|
|
299
299
|
return ze({
|
|
300
300
|
generatePdf: de,
|
|
@@ -314,7 +314,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
314
314
|
svgRef: n(ne),
|
|
315
315
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
316
316
|
color: e.value.style.chart.color,
|
|
317
|
-
active:
|
|
317
|
+
active: E.value,
|
|
318
318
|
onClose: V
|
|
319
319
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
320
320
|
Xe.value ? (s(), u("div", {
|
|
@@ -368,7 +368,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
368
368
|
callbacks: e.value.userOptions.callbacks,
|
|
369
369
|
position: e.value.userOptions.position,
|
|
370
370
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
371
|
-
isAnnotation:
|
|
371
|
+
isAnnotation: E.value,
|
|
372
372
|
onToggleFullscreen: We,
|
|
373
373
|
onGeneratePdf: n(de),
|
|
374
374
|
onGenerateImage: n(he),
|
|
@@ -493,7 +493,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
493
493
|
}, null, 8, wt))), 128)) : c("", !0),
|
|
494
494
|
e.value.style.chart.layout.indicatorArc.show ? (s(), u("path", {
|
|
495
495
|
key: 3,
|
|
496
|
-
d:
|
|
496
|
+
d: Ge.value,
|
|
497
497
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
498
498
|
}, null, 8, St)) : c("", !0),
|
|
499
499
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(g, { key: 4 }, [
|
|
@@ -522,7 +522,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
522
522
|
"font-size": l.value.segmentFontSize,
|
|
523
523
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
524
524
|
}, M(a.name || ""), 9, Ct))), 256)) : c("", !0),
|
|
525
|
-
e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(
|
|
525
|
+
e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(Ee.value, (a, r) => (s(), u("path", {
|
|
526
526
|
key: `arc_${r}`,
|
|
527
527
|
d: a.arcSlice,
|
|
528
528
|
fill: "#FFFFFF",
|
|
@@ -624,7 +624,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
624
624
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
625
625
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
626
626
|
"stroke-linecap": "round"
|
|
627
|
-
}, null, 8,
|
|
627
|
+
}, null, 8, Et)),
|
|
628
628
|
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
629
629
|
key: 1,
|
|
630
630
|
x1: i.value.x1,
|
|
@@ -634,7 +634,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
634
634
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? B.value : e.value.style.chart.layout.pointer.color,
|
|
635
635
|
"stroke-linecap": "round",
|
|
636
636
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
637
|
-
}, null, 8,
|
|
637
|
+
}, null, 8, Gt)),
|
|
638
638
|
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), u("line", {
|
|
639
639
|
key: 2,
|
|
640
640
|
x1: i.value.x1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as z, ref as G, useSlots as L, onMounted as _, computed as c, watch as N, createElementBlock as s, openBlock as a, normalizeStyle as $, createVNode as F, createCommentVNode as n, unref as l, createElementVNode as t, Fragment as p, toDisplayString as y } from "vue";
|
|
2
|
-
import { u as V, c as B, e as P, i as k, f as m } from "./index-
|
|
3
|
-
import { u as U } from "./useNestedProp-
|
|
2
|
+
import { u as V, c as B, e as P, i as k, f as m } from "./index-CBhz79Be.js";
|
|
3
|
+
import { u as U } from "./useNestedProp-Cg9K3ISG.js";
|
|
4
4
|
const D = ["viewBox", "width"], I = { key: 0 }, M = ["id"], S = ["stop-color"], A = ["stop-color"], E = ["stroke"], O = ["stroke"], j = ["width", "fill"], T = ["fill"], q = { key: 0 }, H = ["id"], J = ["stroke"], K = ["stroke", "stroke-dasharray", "stroke-dashoffset"], Q = ["filter"], R = ["stroke", "stroke-dasharray", "stroke-dashoffset"], W = ["fill"], ee = {
|
|
5
5
|
__name: "vue-ui-gizmo",
|
|
6
6
|
props: {
|
|
@@ -16,7 +16,7 @@ const D = ["viewBox", "width"], I = { key: 0 }, M = ["id"], S = ["stop-color"],
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(f) {
|
|
19
|
-
const w = z(() => import("./PackageVersion-
|
|
19
|
+
const w = z(() => import("./PackageVersion-Djh3oJFs.js")), { vue_ui_gizmo: x } = V(), o = f, u = G(B()), C = L();
|
|
20
20
|
_(() => {
|
|
21
21
|
h();
|
|
22
22
|
}), _(() => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as Qe, defineAsyncComponent as B, computed as f, ref as b, watch as ze, shallowRef as Ze, onMounted as el, onBeforeUnmount as ll, createElementBlock as i, openBlock as o, unref as r, normalizeStyle as T, normalizeClass as le, createBlock as q, createCommentVNode as d, createVNode as ve, createSlots as tl, withCtx as A, renderSlot as m, normalizeProps as D, guardReactiveProps as E, Fragment as _, renderList as z, createElementVNode as v, toDisplayString as x, withKeys as al, createTextVNode as ol, nextTick as sl } from "vue";
|
|
2
|
-
import { u as ul, o as nl, e as Me, c as ye, a as il, C as rl, P as K, g as vl, X as yl,
|
|
3
|
-
import { u as Oe } from "./useNestedProp-
|
|
4
|
-
import { u as pl } from "./usePrinter-
|
|
2
|
+
import { u as ul, o as nl, e as Me, c as ye, a as il, C as rl, P as K, g as vl, X as yl, F as de, i as S, f as M, v as N, q as dl, r as cl, x as hl, y as gl } from "./index-CBhz79Be.js";
|
|
3
|
+
import { u as Oe } from "./useNestedProp-Cg9K3ISG.js";
|
|
4
|
+
import { u as pl } from "./usePrinter-DNC_9y1d.js";
|
|
5
5
|
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as bl } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ml from "./vue-ui-accordion-
|
|
8
|
-
import xl from "./Title-
|
|
7
|
+
import ml from "./vue-ui-accordion-BWiiOpGO.js";
|
|
8
|
+
import xl from "./Title-CPvPrwF4.js";
|
|
9
9
|
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const kl = ["id"], _l = {
|
|
11
11
|
key: 2,
|
|
12
12
|
style: "width:100%;background:transparent"
|
|
13
|
-
}, Cl = ["xmlns", "viewBox"], $l = ["width", "height"], Ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], zl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ml = ["font-size", "font-weight", "fill", "x", "y"], Ol = ["x", "y", "width", "height", "onMouseover", "onClick"], Sl = { key: 0 }, Nl = ["font-size", "fill", "x", "y", "font-weight"], Vl = ["font-size", "fill", "x", "y", "font-weight"], Fl = { key: 1 }, Il = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Pl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Rl = { key: 2 }, Xl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Bl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Dl = { key: 4 }, El = ["x", "y", "width", "height", "stroke", "stroke-width"],
|
|
13
|
+
}, Cl = ["xmlns", "viewBox"], $l = ["width", "height"], Ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], zl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ml = ["font-size", "font-weight", "fill", "x", "y"], Ol = ["x", "y", "width", "height", "onMouseover", "onClick"], Sl = { key: 0 }, Nl = ["font-size", "fill", "x", "y", "font-weight"], Vl = ["font-size", "fill", "x", "y", "font-weight"], Fl = { key: 1 }, Il = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Pl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Rl = { key: 2 }, Xl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Bl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Dl = { key: 4 }, El = ["x", "y", "width", "height", "stroke", "stroke-width"], Ul = { key: 5 }, Yl = ["id"], Gl = ["stop-color"], Hl = ["stop-color"], jl = ["x", "y", "font-size", "fill"], Wl = ["x", "y", "height", "rx", "fill"], ql = ["x", "y", "font-size", "fill"], Kl = ["stroke", "x1", "x2", "y1", "y2"], Jl = ["fill", "d"], Ql = { key: 6 }, Zl = {
|
|
14
14
|
id: "colorScaleHorizontal",
|
|
15
15
|
x1: "0%",
|
|
16
16
|
x2: "100%",
|
|
@@ -40,16 +40,16 @@ const kl = ["id"], _l = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["selectDatapoint"],
|
|
43
|
-
setup(
|
|
43
|
+
setup(U, { expose: Se, emit: Ne }) {
|
|
44
44
|
Qe((l) => ({
|
|
45
45
|
f31c23a2: l.tdo
|
|
46
46
|
}));
|
|
47
|
-
const Ve = B(() => import("./BaseIcon-
|
|
47
|
+
const Ve = B(() => import("./BaseIcon-DTTmgKBX.js")), Fe = B(() => import("./PackageVersion-Djh3oJFs.js")), Ie = B(() => import("./PenAndPaper-BlF1d4XE.js")), Pe = B(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), Re = B(() => import("./Tooltip-BiWfcBQk.js")), Xe = B(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_heatmap: Be } = ul(), y = U, De = Ne, J = f(() => !!y.dataset && y.dataset.length);
|
|
48
48
|
nl(y.dataset) && Me({
|
|
49
49
|
componentName: "VueUiHeatmap",
|
|
50
50
|
type: "dataset"
|
|
51
51
|
});
|
|
52
|
-
const
|
|
52
|
+
const Y = b(ye()), te = b(null), Ee = b(null), ae = b(!1), oe = b(""), ce = b(void 0), G = b(null), he = b(0), ge = b(null), Ue = b(null), pe = b(!1), fe = b(0), e = f({
|
|
53
53
|
get: () => we(),
|
|
54
54
|
set: (l) => l
|
|
55
55
|
}), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } = fl({ config: e.value }), { svgRef: xe } = bl({ config: e.value.style.title });
|
|
@@ -72,17 +72,17 @@ const kl = ["id"], _l = {
|
|
|
72
72
|
ue();
|
|
73
73
|
}, { deep: !0 });
|
|
74
74
|
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = pl({
|
|
75
|
-
elementId: `heatmap__${
|
|
75
|
+
elementId: `heatmap__${Y.value}`,
|
|
76
76
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
77
77
|
options: e.value.userOptions.print
|
|
78
|
-
}),
|
|
78
|
+
}), Ye = f(() => e.value.userOptions.show && !e.value.style.title.text), C = b({
|
|
79
79
|
showTable: e.value.table.show,
|
|
80
80
|
showTooltip: e.value.style.tooltip.show
|
|
81
|
-
}),
|
|
81
|
+
}), Ge = f(() => e.value.table.responsiveBreakpoint), R = Ze(null);
|
|
82
82
|
function He() {
|
|
83
83
|
R.value && R.value.disconnect(), R.value = new ResizeObserver((l) => {
|
|
84
84
|
l.forEach((u) => {
|
|
85
|
-
pe.value = u.contentRect.width <
|
|
85
|
+
pe.value = u.contentRect.width < Ge.value;
|
|
86
86
|
});
|
|
87
87
|
}), R.value.observe(ge.value);
|
|
88
88
|
}
|
|
@@ -170,7 +170,7 @@ const kl = ["id"], _l = {
|
|
|
170
170
|
})
|
|
171
171
|
})))), O = b(null), H = b(null);
|
|
172
172
|
function je(l, u, n, s) {
|
|
173
|
-
|
|
173
|
+
G.value = { x: n, y: s };
|
|
174
174
|
const { value: c, yAxisName: h, xAxisName: k, id: P } = l;
|
|
175
175
|
ce.value = P, O.value = c, H.value = {
|
|
176
176
|
datapoint: l,
|
|
@@ -277,7 +277,7 @@ const kl = ["id"], _l = {
|
|
|
277
277
|
ref: te,
|
|
278
278
|
class: le(`vue-ui-heatmap ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
279
279
|
style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
|
|
280
|
-
id: `heatmap__${
|
|
280
|
+
id: `heatmap__${Y.value}`,
|
|
281
281
|
onMouseenter: u[3] || (u[3] = () => r(be)(!0)),
|
|
282
282
|
onMouseleave: u[4] || (u[4] = () => r(be)(!1))
|
|
283
283
|
}, [
|
|
@@ -289,10 +289,10 @@ const kl = ["id"], _l = {
|
|
|
289
289
|
active: ee.value,
|
|
290
290
|
onClose: ie
|
|
291
291
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
292
|
-
|
|
292
|
+
Ye.value ? (o(), i("div", {
|
|
293
293
|
key: 1,
|
|
294
294
|
ref_key: "noTitle",
|
|
295
|
-
ref:
|
|
295
|
+
ref: Ue,
|
|
296
296
|
class: "vue-data-ui-no-title-space",
|
|
297
297
|
style: "height:36px; width: 100%;background:transparent"
|
|
298
298
|
}, null, 512)) : d("", !0),
|
|
@@ -319,7 +319,7 @@ const kl = ["id"], _l = {
|
|
|
319
319
|
color: e.value.style.color,
|
|
320
320
|
isImaging: r(_e),
|
|
321
321
|
isPrinting: r(ke),
|
|
322
|
-
uid:
|
|
322
|
+
uid: Y.value,
|
|
323
323
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
324
324
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
325
325
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -494,7 +494,7 @@ const kl = ["id"], _l = {
|
|
|
494
494
|
stroke: "none",
|
|
495
495
|
onMouseover: (k) => je(c, s, t.value.left + a.value.width * h, t.value.top + a.value.height * s),
|
|
496
496
|
onMouseout: u[0] || (u[0] = (k) => {
|
|
497
|
-
ae.value = !1, ce.value = void 0, O.value = null,
|
|
497
|
+
ae.value = !1, ce.value = void 0, O.value = null, G.value = null;
|
|
498
498
|
}),
|
|
499
499
|
onClick: () => Je(c)
|
|
500
500
|
}, null, 40, Ol)
|
|
@@ -560,13 +560,13 @@ const kl = ["id"], _l = {
|
|
|
560
560
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
561
561
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
562
562
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
563
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (
|
|
563
|
+
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (U.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
564
564
|
}, x(qe(s)), 9, Bl))), 256)) : d("", !0),
|
|
565
|
-
|
|
565
|
+
G.value ? (o(), i("g", Dl, [
|
|
566
566
|
v("rect", {
|
|
567
567
|
style: { "pointer-events": "none" },
|
|
568
|
-
x:
|
|
569
|
-
y:
|
|
568
|
+
x: G.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
569
|
+
y: G.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
570
570
|
width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
571
571
|
height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
572
572
|
fill: "transparent",
|
|
@@ -575,22 +575,22 @@ const kl = ["id"], _l = {
|
|
|
575
575
|
rx: 1
|
|
576
576
|
}, null, 8, El)
|
|
577
577
|
])) : d("", !0),
|
|
578
|
-
e.value.style.legend.show && Q.value === "right" ? (o(), i("g",
|
|
578
|
+
e.value.style.legend.show && Q.value === "right" ? (o(), i("g", Ul, [
|
|
579
579
|
v("defs", null, [
|
|
580
580
|
v("linearGradient", {
|
|
581
|
-
id: `colorScaleVertical_${
|
|
581
|
+
id: `colorScaleVertical_${Y.value}`,
|
|
582
582
|
x2: "0%",
|
|
583
583
|
y2: "100%"
|
|
584
584
|
}, [
|
|
585
585
|
v("stop", {
|
|
586
586
|
offset: "0%",
|
|
587
587
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
588
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, Gl),
|
|
589
589
|
v("stop", {
|
|
590
590
|
offset: "100%",
|
|
591
591
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
592
592
|
}, null, 8, Hl)
|
|
593
|
-
], 8,
|
|
593
|
+
], 8, Yl)
|
|
594
594
|
]),
|
|
595
595
|
v("text", {
|
|
596
596
|
x: t.value.right + 36 + 18,
|
|
@@ -614,7 +614,7 @@ const kl = ["id"], _l = {
|
|
|
614
614
|
width: 36,
|
|
615
615
|
height: ne.value,
|
|
616
616
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
617
|
-
fill: `url(#colorScaleVertical_${
|
|
617
|
+
fill: `url(#colorScaleVertical_${Y.value})`
|
|
618
618
|
}, null, 8, Wl),
|
|
619
619
|
v("text", {
|
|
620
620
|
x: t.value.right + 36 + 18,
|
|
@@ -815,7 +815,7 @@ const kl = ["id"], _l = {
|
|
|
815
815
|
v("th", {
|
|
816
816
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
817
817
|
}, null, 4),
|
|
818
|
-
(o(!0), i(_, null, z(
|
|
818
|
+
(o(!0), i(_, null, z(U.dataset, (n, s) => (o(), i("th", {
|
|
819
819
|
align: "right",
|
|
820
820
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
821
821
|
}, x(n.name), 5))), 256))
|
|
@@ -834,9 +834,9 @@ const kl = ["id"], _l = {
|
|
|
834
834
|
}, [
|
|
835
835
|
v("div", dt, x(n), 1)
|
|
836
836
|
], 12, yt),
|
|
837
|
-
(o(!0), i(_, null, z(
|
|
837
|
+
(o(!0), i(_, null, z(U.dataset, (c, h) => (o(), i("td", {
|
|
838
838
|
class: "vue-ui-data-table__tbody__td",
|
|
839
|
-
"data-cell":
|
|
839
|
+
"data-cell": U.dataset[h].name,
|
|
840
840
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
841
841
|
}, [
|
|
842
842
|
v("div", ht, x(isNaN(c.values[s]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: c.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|