vue-data-ui 2.16.4 → 2.16.6
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 +2 -2
- package/dist/{Arrow-CQWVJ5sZ.js → Arrow-DCqxVwey.js} +1 -1
- package/dist/{BaseDraggableDialog-Fz8fA4VM.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
- package/dist/{BaseIcon-CfYrW3zO.js → BaseIcon-Bn996RXm.js} +1 -1
- package/dist/{ColorPicker-B2ITT7Lp.js → ColorPicker-OFfLkKNb.js} +2 -2
- package/dist/{DataTable-C6IBsdXI.js → DataTable-CHBLjKtZ.js} +2 -2
- package/dist/{Legend-bIoNrGWy.js → Legend-nBXoxXJH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BsSwoYpL.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
- package/dist/{PackageVersion-DfefmcMg.js → PackageVersion-Bg_9KCU-.js} +1 -1
- package/dist/{PenAndPaper-CixPm-N0.js → PenAndPaper-BPTpbnay.js} +3 -3
- package/dist/{Shape-dKMmmbg5.js → Shape-Bnf512BA.js} +1 -1
- package/dist/{Slicer-szgfOkiL.js → Slicer-BrqtJG2E.js} +2 -2
- package/dist/{SparkTooltip-D_NmtqzO.js → SparkTooltip-C-rLATAw.js} +1 -1
- package/dist/{Title-DTuTBtAe.js → Title-Gi81VwUM.js} +1 -1
- package/dist/{Tooltip-CVPiPR9d.js → Tooltip-CJxVw7-T.js} +1 -1
- package/dist/{UserOptions-D8SRavqE.js → UserOptions-CBEK6_jo.js} +137 -129
- package/dist/{dom-to-png-Br5bL5eX.js → dom-to-png-CRHNL8VU.js} +1 -1
- package/dist/img-BgOg8opa.js +27 -0
- package/dist/{index-BsirVW_m.js → index-DvIXJm6t.js} +1 -1
- package/dist/{pdf-BBk37REU.js → pdf-DhTxBrbJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -2
- package/dist/types/vue-data-ui.d.ts +2 -2
- package/dist/{useNestedProp-Ej-oqNyf.js → useNestedProp-DrYHm61t.js} +1 -1
- package/dist/{usePrinter-Dpd-vZym.js → usePrinter-CWnXbGMb.js} +2 -2
- package/dist/{vue-data-ui-Bd_shukQ.js → vue-data-ui-B8EWlMIK.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Baaeejpi.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
- package/dist/{vue-ui-accordion-D2TcT2US.js → vue-ui-accordion-D55kCO5G.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BW2q5yMT.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
- package/dist/{vue-ui-annotator-DR6dXmoQ.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
- package/dist/{vue-ui-bullet-BYvOXGoO.js → vue-ui-bullet-FeScjj7q.js} +23 -22
- package/dist/{vue-ui-candlestick-DXGY7-1u.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
- package/dist/{vue-ui-carousel-table-DpRdTSdS.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
- package/dist/{vue-ui-chestnut--uqQw5gd.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
- package/dist/{vue-ui-chord-C6z1Oi8y.js → vue-ui-chord-BgLbFBT9.js} +87 -86
- package/dist/{vue-ui-circle-pack-BgtFPkv2.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
- package/dist/{vue-ui-cursor-C_KZ7SW0.js → vue-ui-cursor-DWmfnM25.js} +2 -2
- package/dist/{vue-ui-dashboard-YSzYS59X.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
- package/dist/{vue-ui-digits-B6Ej5XbC.js → vue-ui-digits-BgQch3Fc.js} +2 -2
- package/dist/{vue-ui-donut-BYouj_X8.js → vue-ui-donut-B59bCV5_.js} +74 -73
- package/dist/{vue-ui-donut-evolution-DHIMoo_a.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
- package/dist/{vue-ui-dumbbell-rHe7aWF7.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
- package/dist/{vue-ui-flow-hV-6uTPS.js → vue-ui-flow-DxF0ELtv.js} +9 -8
- package/dist/{vue-ui-funnel-45FdkG1w.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
- package/dist/{vue-ui-galaxy-yg-YRwYP.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
- package/dist/{vue-ui-gauge-Ccf__w06.js → vue-ui-gauge-D7arhDmb.js} +8 -7
- package/dist/{vue-ui-gizmo-CxSBWMgK.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
- package/dist/{vue-ui-heatmap-Cz1GzvLQ.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
- package/dist/{vue-ui-history-plot-DChEbCv0.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
- package/dist/{vue-ui-kpi-D1cHw1LD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
- package/dist/{vue-ui-mini-loader-FxoEnicn.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
- package/dist/{vue-ui-molecule-BvGzvTQc.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
- package/dist/{vue-ui-mood-radar-DomwWh69.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
- package/dist/{vue-ui-nested-donuts-BrC9S0cw.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
- package/dist/{vue-ui-onion-YvCPFGpJ.js → vue-ui-onion-Buu4VX3u.js} +40 -39
- package/dist/{vue-ui-parallel-coordinate-plot-D_ji0o1R.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
- package/dist/{vue-ui-quadrant-B1xa2r0Q.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
- package/dist/{vue-ui-quick-chart-ClCOLJ5y.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
- package/dist/{vue-ui-radar-B460wd0h.js → vue-ui-radar-68NMPxxQ.js} +26 -25
- package/dist/{vue-ui-rating-D1_WFLlk.js → vue-ui-rating-swH9kRr3.js} +2 -2
- package/dist/{vue-ui-relation-circle-ECKEkE2-.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
- package/dist/{vue-ui-ridgeline-E-1Lcv1j.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
- package/dist/{vue-ui-rings-BsSwSht6.js → vue-ui-rings-M-9dPI5D.js} +45 -44
- package/dist/{vue-ui-scatter-CVEd6_m1.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
- package/dist/{vue-ui-skeleton-CchtfQiJ.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
- package/dist/{vue-ui-smiley-CkedzX6d.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
- package/dist/{vue-ui-spark-trend-ByPzMHci.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
- package/dist/{vue-ui-sparkbar-DoVR95AR.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B9WEsmn8.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B5Ub1nsA.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
- package/dist/{vue-ui-sparkline-BqHPNt6h.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BhL0IxK5.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
- package/dist/{vue-ui-stackbar-CuSsigBj.js → vue-ui-stackbar-BDpMsTYe.js} +277 -275
- package/dist/{vue-ui-strip-plot-BTqp8p9u.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
- package/dist/{vue-ui-table-Du7un5Fm.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
- package/dist/{vue-ui-table-heatmap-YxGFfRC3.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
- package/dist/{vue-ui-table-sparkline-Bbt4GjUn.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
- package/dist/{vue-ui-thermometer-Cnc4zVKO.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
- package/dist/{vue-ui-timer-DgVQY-BQ.js → vue-ui-timer-Bes74INL.js} +5 -5
- package/dist/{vue-ui-tiremarks-BTHDxycu.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
- package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
- package/dist/{vue-ui-vertical-bar-C5aombcF.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
- package/dist/{vue-ui-waffle-DHDmy4xh.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
- package/dist/{vue-ui-wheel-DmPltDq0.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
- package/dist/{vue-ui-word-cloud-D15rS85A.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
- package/dist/{vue-ui-world-9lR_bov_.js → vue-ui-world-B9PxVO4n.js} +8 -7
- package/dist/{vue-ui-xy-DnEdi5Hn.js → vue-ui-xy-DtJ7qJib.js} +69 -68
- package/dist/{vue-ui-xy-canvas-BaZZ7r1e.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
- package/package.json +1 -1
- package/dist/img-BOi0vhPf.js +0 -20
- package/dist/vue-ui-treemap-B96LGRM_.js +0 -952
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, computed as f, ref as v, watch as Ke, shallowRef as Le, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as Y, normalizeClass as R, createBlock as A, createCommentVNode as c, createVNode as Ae, createSlots as et, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as F, createElementVNode as k, Fragment as g, renderList as $, toDisplayString as S, mergeProps as tt, createTextVNode as lt, nextTick as at } from "vue";
|
|
2
|
-
import { u as ot, c as le, t as st, p as z, a as rt, o as ut, e as ae, g as Se, b as it, d as ze, v as nt, D as vt, f as j, X as ct, i as oe, I as ht, l as dt, h as pt, x as
|
|
2
|
+
import { u as ot, c as le, t as st, p as z, a as rt, o as ut, e as ae, g as Se, b as it, d as ze, v as nt, D as vt, f as j, X as ct, i as oe, I as ht, l as dt, h as pt, x as Oe, E as ft, q as yt, r as bt, y as mt } from "./index-DvIXJm6t.js";
|
|
3
3
|
import { t as gt, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as xt } from "./usePrinter-
|
|
4
|
+
import { u as Pe } from "./useNestedProp-DrYHm61t.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-CWnXbGMb.js";
|
|
6
6
|
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import $t from "./Title-
|
|
9
|
-
import { _ as Tt } from "./Shape-
|
|
8
|
+
import $t from "./Title-Gi81VwUM.js";
|
|
9
|
+
import { _ as Tt } from "./Shape-Bnf512BA.js";
|
|
10
10
|
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], zt = { key: 1 },
|
|
11
|
+
const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], zt = { key: 1 }, Ot = { key: 0 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nt = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "fill", "font-size"], Dt = ["x", "y", "font-size", "fill"], Gt = ["x", "y", "font-size", "fill", "innerHTML"], Rt = ["fill", "font-size", "transform"], Et = ["fill", "font-size", "x", "y"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["cx", "cy", "fill"], Ut = ["cx", "cy", "fill"], Bt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], jt = ["stop-color"], qt = { key: 0 }, Jt = ["x", "y", "font-size", "fill"], Kt = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, Qt = ["innerHTML"], Zt = {
|
|
@@ -29,7 +29,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectDatapoint"],
|
|
31
31
|
setup(Ne, { expose: Me, emit: Fe }) {
|
|
32
|
-
const We = L(() => import("./vue-ui-accordion-
|
|
32
|
+
const We = L(() => import("./vue-ui-accordion-D55kCO5G.js")), Ie = L(() => import("./DataTable-CHBLjKtZ.js")), De = L(() => import("./PackageVersion-Bg_9KCU-.js")), Ge = L(() => import("./PenAndPaper-BPTpbnay.js")), Re = L(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ee = L(() => import("./Tooltip-CJxVw7-T.js")), Ve = L(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_strip_plot: He } = ot(), b = Ne, Ue = Fe, T = f({
|
|
33
33
|
get() {
|
|
34
34
|
return !!b.dataset && b.dataset.length;
|
|
35
35
|
},
|
|
@@ -41,12 +41,12 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
41
41
|
set: (t) => t
|
|
42
42
|
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = wt({ config: e.value }), { svgRef: pe } = Ct({ config: e.value.style.chart.title });
|
|
43
43
|
function fe() {
|
|
44
|
-
const t =
|
|
44
|
+
const t = Pe({
|
|
45
45
|
userConfig: b.config,
|
|
46
46
|
defaultConfig: He
|
|
47
47
|
});
|
|
48
48
|
return t.theme ? {
|
|
49
|
-
...
|
|
49
|
+
...Pe({
|
|
50
50
|
userConfig: rt.vue_ui_strip_plot[t.theme] || b.config,
|
|
51
51
|
defaultConfig: t
|
|
52
52
|
}),
|
|
@@ -56,7 +56,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
56
56
|
Ke(() => b.config, (t) => {
|
|
57
57
|
e.value = fe(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ve.value += 1, ce.value += 1, d.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
58
58
|
}, { deep: !0 });
|
|
59
|
-
const C = Le(null),
|
|
59
|
+
const C = Le(null), O = Le(null);
|
|
60
60
|
Qe(() => {
|
|
61
61
|
ye();
|
|
62
62
|
});
|
|
@@ -97,7 +97,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
97
97
|
noTitle: ie.value
|
|
98
98
|
});
|
|
99
99
|
requestAnimationFrame(() => {
|
|
100
|
-
E.value = l,
|
|
100
|
+
E.value = l, P.value.width = r, P.value.height = l, D.value = (r - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = ft({
|
|
101
101
|
relator: Math.min(l, r),
|
|
102
102
|
adjuster: 600,
|
|
103
103
|
source: e.value.style.chart.plots.radius,
|
|
@@ -106,14 +106,14 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
106
106
|
}) : G.value = e.value.style.chart.plots.radius;
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
C.value && (
|
|
109
|
+
C.value && (O.value && C.value.unobserve(O.value), C.value.disconnect()), C.value = new ResizeObserver(t), O.value = W.value.parentNode, C.value.observe(O.value);
|
|
110
110
|
}
|
|
111
111
|
ne.value = !0, setTimeout(() => {
|
|
112
112
|
I.value = !1;
|
|
113
113
|
}, Xe.value * 50);
|
|
114
114
|
}
|
|
115
115
|
Ze(() => {
|
|
116
|
-
C.value && (
|
|
116
|
+
C.value && (O.value && C.value.unobserve(O.value), C.value.disconnect());
|
|
117
117
|
});
|
|
118
118
|
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = xt({
|
|
119
119
|
elementId: `strip-plot_${q.value}`,
|
|
@@ -130,7 +130,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
130
130
|
bottom: e.value.style.chart.padding.bottom,
|
|
131
131
|
left: e.value.style.chart.padding.left,
|
|
132
132
|
right: e.value.style.chart.padding.right
|
|
133
|
-
}), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius),
|
|
133
|
+
}), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), P = v({
|
|
134
134
|
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
135
135
|
height: e.value.style.chart.height
|
|
136
136
|
}), a = f(() => {
|
|
@@ -187,7 +187,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
187
187
|
function je({ datapoint: t, seriesIndex: r }) {
|
|
188
188
|
ee.value = { datapoint: t, seriesIndex: r, config: e.value, series: V.value }, J.value = !0, h.value = t;
|
|
189
189
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
190
|
-
if (
|
|
190
|
+
if (Oe(l) && mt(() => l({
|
|
191
191
|
seriesIndex: r,
|
|
192
192
|
datapoint: t,
|
|
193
193
|
series: V.value,
|
|
@@ -365,6 +365,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
365
365
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
366
366
|
isAnnotation: B.value,
|
|
367
367
|
callbacks: e.value.userOptions.callbacks,
|
|
368
|
+
printScale: e.value.userOptions.print.scale,
|
|
368
369
|
onToggleFullscreen: qe,
|
|
369
370
|
onGeneratePdf: i(ge),
|
|
370
371
|
onGenerateCsv: Ce,
|
|
@@ -440,14 +441,14 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
440
441
|
]),
|
|
441
442
|
key: "8"
|
|
442
443
|
} : void 0
|
|
443
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
444
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
444
445
|
T.value ? (s(), u("svg", {
|
|
445
446
|
key: 4,
|
|
446
447
|
ref_key: "svgRef",
|
|
447
448
|
ref: pe,
|
|
448
449
|
xmlns: i(ct),
|
|
449
450
|
class: R({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
450
|
-
viewBox: `0 0 ${
|
|
451
|
+
viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
|
|
451
452
|
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
452
453
|
}, [
|
|
453
454
|
Ae(i(De)),
|
|
@@ -464,7 +465,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
464
465
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
465
466
|
], 8, St)) : c("", !0),
|
|
466
467
|
e.value.style.chart.grid.show ? (s(), u("g", zt, [
|
|
467
|
-
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g",
|
|
468
|
+
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g", Ot, [
|
|
468
469
|
(s(!0), u(g, null, $(we.value, (l) => (s(), u("line", {
|
|
469
470
|
x1: l.x1,
|
|
470
471
|
x2: l.x2,
|
|
@@ -474,7 +475,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
474
475
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
475
476
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
476
477
|
"stroke-linecap": "round"
|
|
477
|
-
}, null, 8,
|
|
478
|
+
}, null, 8, Pt))), 256))
|
|
478
479
|
])) : c("", !0),
|
|
479
480
|
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g", Nt, [
|
|
480
481
|
(s(!0), u(g, null, $(x.value, (l, o) => (s(), u("line", {
|
|
@@ -687,7 +688,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
687
688
|
parent: W.value,
|
|
688
689
|
content: K.value,
|
|
689
690
|
isFullscreen: N.value,
|
|
690
|
-
isCustom: i(
|
|
691
|
+
isCustom: i(Oe)(e.value.style.chart.tooltip.customFormat)
|
|
691
692
|
}, {
|
|
692
693
|
"tooltip-before": y(() => [
|
|
693
694
|
p(t.$slots, "tooltip-before", M(F({ ...ee.value })), void 0, !0)
|
|
@@ -739,7 +740,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
739
740
|
}, 8, ["config"])) : c("", !0)
|
|
740
741
|
], 46, Lt));
|
|
741
742
|
}
|
|
742
|
-
}, vl = /* @__PURE__ */ _t(Zt, [["__scopeId", "data-v-
|
|
743
|
+
}, vl = /* @__PURE__ */ _t(Zt, [["__scopeId", "data-v-724cad50"]]);
|
|
743
744
|
export {
|
|
744
745
|
vl as default
|
|
745
746
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-
|
|
2
|
-
import q from "./vue-ui-xy-
|
|
3
|
-
import Q from "./vue-ui-donut-
|
|
1
|
+
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-DvIXJm6t.js";
|
|
2
|
+
import q from "./vue-ui-xy-DtJ7qJib.js";
|
|
3
|
+
import Q from "./vue-ui-donut-B59bCV5_.js";
|
|
4
4
|
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const se = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
-
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-
|
|
3
|
-
import { u as H } from "./useNestedProp-
|
|
4
|
-
import { u as ye } from "./usePrinter-
|
|
2
|
+
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-DvIXJm6t.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-DrYHm61t.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-CWnXbGMb.js";
|
|
5
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { _ as ke } from "./Shape-
|
|
6
|
+
import { _ as ke } from "./Shape-Bnf512BA.js";
|
|
7
7
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], Fe = {
|
|
9
9
|
key: 0,
|
|
@@ -16,15 +16,15 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
16
16
|
key: 1,
|
|
17
17
|
role: "cell",
|
|
18
18
|
"data-cell": "average"
|
|
19
|
-
},
|
|
19
|
+
}, Se = {
|
|
20
20
|
key: 2,
|
|
21
21
|
role: "cell",
|
|
22
22
|
"data-cell": "median"
|
|
23
|
-
},
|
|
23
|
+
}, Ve = {
|
|
24
24
|
key: 1,
|
|
25
25
|
ref: "source",
|
|
26
26
|
dir: "auto"
|
|
27
|
-
},
|
|
27
|
+
}, Re = {
|
|
28
28
|
__name: "vue-ui-table-heatmap",
|
|
29
29
|
props: {
|
|
30
30
|
config: {
|
|
@@ -42,10 +42,10 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
42
42
|
},
|
|
43
43
|
setup(D, { expose: L }) {
|
|
44
44
|
ae((e) => ({
|
|
45
|
-
"
|
|
46
|
-
|
|
45
|
+
"8f8e7142": ee.value,
|
|
46
|
+
cb3b028c: j.value
|
|
47
47
|
}));
|
|
48
|
-
const X = oe(() => import("./UserOptions-
|
|
48
|
+
const X = oe(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
49
49
|
z(() => {
|
|
50
50
|
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
51
51
|
});
|
|
@@ -66,17 +66,17 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
66
66
|
} : e;
|
|
67
67
|
}
|
|
68
68
|
ne(() => m.config, (e) => {
|
|
69
|
-
t.value = x(), $.value = !t.value.userOptions.showOnChartHover,
|
|
69
|
+
t.value = x(), $.value = !t.value.userOptions.showOnChartHover, V();
|
|
70
70
|
}, { deep: !0 });
|
|
71
|
-
const { isPrinting: J, isImaging: K, generatePdf: N, generateImage:
|
|
71
|
+
const { isPrinting: J, isImaging: K, generatePdf: N, generateImage: S } = ye({
|
|
72
72
|
elementId: `table_heatmap_${_.value}`,
|
|
73
73
|
fileName: "vue-ui-table-heatmap",
|
|
74
74
|
options: t.value.userOptions.print
|
|
75
75
|
}), Q = c(() => t.value.table.responsiveBreakpoint), Y = c(() => !!m.dataset && m.dataset.length);
|
|
76
76
|
z(() => {
|
|
77
|
-
|
|
77
|
+
V();
|
|
78
78
|
});
|
|
79
|
-
function
|
|
79
|
+
function V() {
|
|
80
80
|
ce(m.dataset) && ve({
|
|
81
81
|
componentName: "VueUiTableHeatmap",
|
|
82
82
|
type: "dataset"
|
|
@@ -88,7 +88,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
88
88
|
});
|
|
89
89
|
y.value && e.observe(y.value);
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const R = c(() => m.dataset.map((e) => {
|
|
92
92
|
const o = e.values.map((s) => isNaN(s) ? 0 : s), a = o.reduce((s, l) => s + l, 0);
|
|
93
93
|
return {
|
|
94
94
|
...e,
|
|
@@ -103,8 +103,8 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
103
103
|
displayValues: [e.name, ...e.values],
|
|
104
104
|
id: A()
|
|
105
105
|
};
|
|
106
|
-
})),
|
|
107
|
-
const e =
|
|
106
|
+
})), M = c(() => {
|
|
107
|
+
const e = R.value.flatMap((o) => o.values);
|
|
108
108
|
return {
|
|
109
109
|
min: Math.min(...e),
|
|
110
110
|
max: Math.max(...e)
|
|
@@ -112,9 +112,9 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
112
112
|
});
|
|
113
113
|
function Z(e, o) {
|
|
114
114
|
const a = t.value.style.heatmapColors.useIndividualScale;
|
|
115
|
-
return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min :
|
|
115
|
+
return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min : M.value.min, a ? o.max : M.value.max, e);
|
|
116
116
|
}
|
|
117
|
-
const T = c(() =>
|
|
117
|
+
const T = c(() => R.value.map((e) => ({
|
|
118
118
|
...e,
|
|
119
119
|
colors: e.displayValues.map((o) => isNaN(o) ? t.value.style.backgroundColor : Z(o, e.serieExtremes))
|
|
120
120
|
}))), j = c(() => t.value.style.backgroundColor), ee = c(() => `${t.value.table.borderWidth}px`);
|
|
@@ -136,7 +136,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
136
136
|
return L({
|
|
137
137
|
generatePdf: N,
|
|
138
138
|
generateCsv: U,
|
|
139
|
-
generateImage:
|
|
139
|
+
generateImage: S
|
|
140
140
|
}), (e, o) => (n(), r("div", {
|
|
141
141
|
ref_key: "tableContainer",
|
|
142
142
|
ref: y,
|
|
@@ -163,10 +163,11 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
163
163
|
chartElement: y.value,
|
|
164
164
|
position: t.value.userOptions.position,
|
|
165
165
|
callbacks: t.value.userOptions.callbacks,
|
|
166
|
+
printScale: t.value.userOptions.print.scale,
|
|
166
167
|
onToggleFullscreen: te,
|
|
167
168
|
onGeneratePdf: i(N),
|
|
168
169
|
onGenerateCsv: U,
|
|
169
|
-
onGenerateImage: i(
|
|
170
|
+
onGenerateImage: i(S),
|
|
170
171
|
style: C({
|
|
171
172
|
visibility: i(P) ? i($) ? "visible" : "hidden" : "visible"
|
|
172
173
|
})
|
|
@@ -206,7 +207,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
206
207
|
]),
|
|
207
208
|
key: "4"
|
|
208
209
|
} : void 0
|
|
209
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
210
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
210
211
|
g("table", {
|
|
211
212
|
class: E({ "vue-ui-table-heatmap": !0 }),
|
|
212
213
|
style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
|
|
@@ -263,18 +264,18 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
263
264
|
t.value.table.showAverage ? (n(), r("td", Ne, [
|
|
264
265
|
u(e.$slots, "average", f({ ref_for: !0 }, { value: a.average, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
265
266
|
])) : v("", !0),
|
|
266
|
-
t.value.table.showMedian ? (n(), r("td",
|
|
267
|
+
t.value.table.showMedian ? (n(), r("td", Se, [
|
|
267
268
|
u(e.$slots, "median", f({ ref_for: !0 }, { value: a.median, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
268
269
|
])) : v("", !0)
|
|
269
270
|
]))), 256))
|
|
270
271
|
])
|
|
271
272
|
], 4),
|
|
272
|
-
e.$slots.source ? (n(), r("div",
|
|
273
|
+
e.$slots.source ? (n(), r("div", Ve, [
|
|
273
274
|
u(e.$slots, "source", {}, void 0, !0)
|
|
274
275
|
], 512)) : v("", !0)
|
|
275
276
|
], 46, Ie));
|
|
276
277
|
}
|
|
277
|
-
}, Ae = /* @__PURE__ */ _e(
|
|
278
|
+
}, Ae = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-37974d3f"]]);
|
|
278
279
|
export {
|
|
279
280
|
Ae as default
|
|
280
281
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Fe, defineAsyncComponent as J, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as v, unref as u, normalizeClass as K, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as D, Fragment as Q, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as P, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
|
|
2
|
-
import { u as ye } from "./useNestedProp-
|
|
3
|
-
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a6 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-
|
|
4
|
-
import { u as je } from "./usePrinter-
|
|
2
|
+
import { u as ye } from "./useNestedProp-DrYHm61t.js";
|
|
3
|
+
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a6 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-DvIXJm6t.js";
|
|
4
|
+
import { u as je } from "./usePrinter-CWnXbGMb.js";
|
|
5
5
|
import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { v as tt } from "./vClickOutside-C6WiFswA.js";
|
|
7
7
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -41,9 +41,9 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
41
41
|
},
|
|
42
42
|
setup(ke, { expose: _e }) {
|
|
43
43
|
Fe((t) => ({
|
|
44
|
-
|
|
44
|
+
"3f28d054": t.tdo
|
|
45
45
|
}));
|
|
46
|
-
const Ce = J(() => import("./vue-ui-sparkline-
|
|
46
|
+
const Ce = J(() => import("./vue-ui-sparkline-DKIyUlSm.js")), N = J(() => import("./BaseIcon-Bn996RXm.js")), xe = J(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
|
|
47
47
|
me(() => {
|
|
48
48
|
Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
49
49
|
});
|
|
@@ -407,6 +407,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
407
407
|
chartElement: F.value,
|
|
408
408
|
position: e.value.userOptions.position,
|
|
409
409
|
callbacks: e.value.userOptions.callbacks,
|
|
410
|
+
printScale: e.value.userOptions.print.scale,
|
|
410
411
|
onToggleFullscreen: Pe,
|
|
411
412
|
onGeneratePdf: u(oe),
|
|
412
413
|
onGenerateImage: u(ne),
|
|
@@ -450,7 +451,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
450
451
|
]),
|
|
451
452
|
key: "4"
|
|
452
453
|
} : void 0
|
|
453
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
|
|
454
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
|
|
454
455
|
], 6))), 256))
|
|
455
456
|
], 4)), [
|
|
456
457
|
[u(tt), Ne]
|
|
@@ -655,7 +656,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
655
656
|
], 512)) : g("", !0)
|
|
656
657
|
], 42, lt));
|
|
657
658
|
}
|
|
658
|
-
}, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-
|
|
659
|
+
}, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-b297ae47"]]);
|
|
659
660
|
export {
|
|
660
661
|
wt as default
|
|
661
662
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as O, createBlock as I, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as
|
|
2
|
-
import { u as Ae, o as
|
|
3
|
-
import { u as ae } from "./useNestedProp-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as O, createBlock as I, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as S, createVNode as Oe, createElementVNode as v, Fragment as M, renderList as oe, toDisplayString as Ie } from "vue";
|
|
2
|
+
import { u as Ae, o as Se, e as le, g as Me, c as Ye, t as Ne, p as w, a as Ue, b as Te, v as g, d as Y, X as Ve, s as qe, i as Le, f as Ee } from "./index-DvIXJm6t.js";
|
|
3
|
+
import { u as ae } from "./useNestedProp-DrYHm61t.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-CWnXbGMb.js";
|
|
5
5
|
import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as je } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-
|
|
7
|
+
import ze from "./Title-Gi81VwUM.js";
|
|
8
8
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Re = ["id"], De = {
|
|
10
10
|
key: 1,
|
|
@@ -42,19 +42,19 @@ const Re = ["id"], De = {
|
|
|
42
42
|
},
|
|
43
43
|
setup(_, { expose: re }) {
|
|
44
44
|
Ce((s) => ({
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
45
|
+
"1170d3ff": pe.value,
|
|
46
|
+
"094b346f": ge.value,
|
|
47
|
+
"63a9191c": fe.value
|
|
48
48
|
}));
|
|
49
|
-
const ne = F(() => import("./PackageVersion-
|
|
49
|
+
const ne = F(() => import("./PackageVersion-Bg_9KCU-.js")), ue = F(() => import("./PenAndPaper-BPTpbnay.js")), ie = F(() => import("./vue-ui-skeleton-BAOt2neL.js")), ce = F(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_thermometer: he } = Ae(), a = _, N = d(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
50
50
|
$e(() => {
|
|
51
51
|
W();
|
|
52
52
|
});
|
|
53
53
|
function W() {
|
|
54
|
-
|
|
54
|
+
Se(a.dataset) ? le({
|
|
55
55
|
componentName: "VueUiThermometer",
|
|
56
56
|
type: "dataset"
|
|
57
|
-
}) :
|
|
57
|
+
}) : Me({
|
|
58
58
|
datasetObject: a.dataset,
|
|
59
59
|
requiredAttributes: ["value", "from", "to"]
|
|
60
60
|
}).forEach((s) => {
|
|
@@ -65,7 +65,7 @@ const Re = ["id"], De = {
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
const m = p(
|
|
68
|
+
const m = p(Ye()), j = p(null), z = p(0), B = p(0), e = d({
|
|
69
69
|
get: () => X(),
|
|
70
70
|
set: (s) => s
|
|
71
71
|
}), { userOptionsVisible: U, setUserOptionsVisibility: R, keepUserOptionState: D } = We({ config: e.value }), { svgRef: H } = je({ config: e.value.style.title });
|
|
@@ -79,7 +79,7 @@ const Re = ["id"], De = {
|
|
|
79
79
|
userConfig: Ue.vue_ui_thermometer[s.theme] || a.config,
|
|
80
80
|
defaultConfig: s
|
|
81
81
|
}),
|
|
82
|
-
customPalette:
|
|
82
|
+
customPalette: Ne[s.theme] || w
|
|
83
83
|
} : s;
|
|
84
84
|
}
|
|
85
85
|
Pe(() => a.config, (s) => {
|
|
@@ -134,12 +134,12 @@ const Re = ["id"], De = {
|
|
|
134
134
|
}), fe = d(() => `${q.value}px`), ge = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), pe = d(() => `${e.value.style.chart.animation.speedMs}ms`), me = d(() => {
|
|
135
135
|
if (a.dataset.colors) {
|
|
136
136
|
if (!a.dataset.colors.from)
|
|
137
|
-
return $(C.value[0] || w[0],
|
|
137
|
+
return $(C.value[0] || w[0], Y(a.dataset.colors.to), y.value || 10);
|
|
138
138
|
if (!a.dataset.colors.to)
|
|
139
|
-
return $(
|
|
139
|
+
return $(Y(a.dataset.colors.from), C.value[1] || w[1], y.value || 10);
|
|
140
140
|
} else
|
|
141
141
|
return $(C.value[1] || w[1], C.value[0] || w[0], y.value || 10);
|
|
142
|
-
return $(
|
|
142
|
+
return $(Y(a.dataset.colors.from), Y(a.dataset.colors.to), y.value || 10);
|
|
143
143
|
}), te = d(() => {
|
|
144
144
|
const s = [];
|
|
145
145
|
let r = 0;
|
|
@@ -200,7 +200,7 @@ const Re = ["id"], De = {
|
|
|
200
200
|
}
|
|
201
201
|
}, null, 8, ["config"]))
|
|
202
202
|
])) : c("", !0),
|
|
203
|
-
e.value.userOptions.show &&
|
|
203
|
+
e.value.userOptions.show && N.value && (i(D) || i(U)) ? (l(), I(i(ce), {
|
|
204
204
|
ref: "details",
|
|
205
205
|
key: `user_options_${z.value}`,
|
|
206
206
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -219,6 +219,7 @@ const Re = ["id"], De = {
|
|
|
219
219
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
220
220
|
isAnnotation: P.value,
|
|
221
221
|
callbacks: e.value.userOptions.callbacks,
|
|
222
|
+
printScale: e.value.userOptions.print.scale,
|
|
222
223
|
onToggleFullscreen: ke,
|
|
223
224
|
onGeneratePdf: i(Q),
|
|
224
225
|
onGenerateImage: i(Z),
|
|
@@ -230,7 +231,7 @@ const Re = ["id"], De = {
|
|
|
230
231
|
s.$slots.menuIcon ? {
|
|
231
232
|
name: "menuIcon",
|
|
232
233
|
fn: x(({ isOpen: t, color: n }) => [
|
|
233
|
-
f(s.$slots, "menuIcon", A(
|
|
234
|
+
f(s.$slots, "menuIcon", A(S({ isOpen: t, color: n })), void 0, !0)
|
|
234
235
|
]),
|
|
235
236
|
key: "0"
|
|
236
237
|
} : void 0,
|
|
@@ -251,19 +252,19 @@ const Re = ["id"], De = {
|
|
|
251
252
|
s.$slots.optionFullscreen ? {
|
|
252
253
|
name: "optionFullscreen",
|
|
253
254
|
fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
254
|
-
f(s.$slots, "optionFullscreen", A(
|
|
255
|
+
f(s.$slots, "optionFullscreen", A(S({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
255
256
|
]),
|
|
256
257
|
key: "3"
|
|
257
258
|
} : void 0,
|
|
258
259
|
s.$slots.optionAnnotator ? {
|
|
259
260
|
name: "optionAnnotator",
|
|
260
261
|
fn: x(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
261
|
-
f(s.$slots, "optionAnnotator", A(
|
|
262
|
+
f(s.$slots, "optionAnnotator", A(S({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
262
263
|
]),
|
|
263
264
|
key: "4"
|
|
264
265
|
} : void 0
|
|
265
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
266
|
-
|
|
266
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
267
|
+
N.value ? (l(), u("svg", {
|
|
267
268
|
key: 4,
|
|
268
269
|
ref_key: "svgRef",
|
|
269
270
|
ref: H,
|
|
@@ -298,7 +299,7 @@ const Re = ["id"], De = {
|
|
|
298
299
|
fill: e.value.style.chart.backgroundColor
|
|
299
300
|
}, null, 8, Qe)
|
|
300
301
|
]),
|
|
301
|
-
(l(!0), u(
|
|
302
|
+
(l(!0), u(M, null, oe(te.value, (t, n) => (l(), u("linearGradient", {
|
|
302
303
|
id: `vueUiThermometerGradient_${n}_${m.value}`,
|
|
303
304
|
x1: "0%",
|
|
304
305
|
y1: "0%",
|
|
@@ -327,7 +328,7 @@ const Re = ["id"], De = {
|
|
|
327
328
|
width: o.value.width - h.value.left - h.value.right,
|
|
328
329
|
fill: "#FFFFFF"
|
|
329
330
|
}, null, 8, lt),
|
|
330
|
-
(l(!0), u(
|
|
331
|
+
(l(!0), u(M, null, oe(te.value, (t, n) => (l(), u("g", {
|
|
331
332
|
key: `graduation_${n}`
|
|
332
333
|
}, [
|
|
333
334
|
v("rect", {
|
|
@@ -348,7 +349,7 @@ const Re = ["id"], De = {
|
|
|
348
349
|
stroke: e.value.style.chart.graduations.stroke,
|
|
349
350
|
"stroke-linecap": "round"
|
|
350
351
|
}, null, 8, rt)) : c("", !0),
|
|
351
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(
|
|
352
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), u(M, { key: 1 }, [
|
|
352
353
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
353
354
|
key: 0,
|
|
354
355
|
x1: t.x,
|
|
@@ -390,7 +391,7 @@ const Re = ["id"], De = {
|
|
|
390
391
|
stroke: e.value.style.chart.graduations.stroke,
|
|
391
392
|
"stroke-linecap": "round"
|
|
392
393
|
}, null, 8, ct)) : c("", !0),
|
|
393
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(
|
|
394
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), u(M, { key: 3 }, [
|
|
394
395
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
395
396
|
key: 0,
|
|
396
397
|
x1: o.value.right,
|
|
@@ -454,12 +455,12 @@ const Re = ["id"], De = {
|
|
|
454
455
|
f(s.$slots, "svg", { svg: ye.value }, void 0, !0)
|
|
455
456
|
], 10, Xe)) : c("", !0),
|
|
456
457
|
s.$slots.watermark ? (l(), u("div", gt, [
|
|
457
|
-
f(s.$slots, "watermark", A(
|
|
458
|
+
f(s.$slots, "watermark", A(S({ isPrinting: i(J) || i(K) })), void 0, !0)
|
|
458
459
|
])) : c("", !0),
|
|
459
460
|
s.$slots.source ? (l(), u("div", pt, [
|
|
460
461
|
f(s.$slots, "source", {}, void 0, !0)
|
|
461
462
|
], 512)) : c("", !0),
|
|
462
|
-
|
|
463
|
+
N.value ? c("", !0) : (l(), I(i(ie), {
|
|
463
464
|
key: 7,
|
|
464
465
|
config: {
|
|
465
466
|
type: "thermometer",
|
|
@@ -473,7 +474,7 @@ const Re = ["id"], De = {
|
|
|
473
474
|
}, null, 8, ["config"]))
|
|
474
475
|
], 46, Re));
|
|
475
476
|
}
|
|
476
|
-
}, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-
|
|
477
|
+
}, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-311cade7"]]);
|
|
477
478
|
export {
|
|
478
479
|
Ft as default
|
|
479
480
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as F, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
|
|
2
|
-
import { u as ne } from "./useNestedProp-
|
|
3
|
-
import { u as ce, c as ve, X as de, E as X } from "./index-
|
|
2
|
+
import { u as ne } from "./useNestedProp-DrYHm61t.js";
|
|
3
|
+
import { u as ce, c as ve, X as de, E as X } from "./index-DvIXJm6t.js";
|
|
4
4
|
import { t as he, u as pe } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import we from "./Title-
|
|
7
|
-
import R from "./BaseIcon-
|
|
6
|
+
import we from "./Title-Gi81VwUM.js";
|
|
7
|
+
import R from "./BaseIcon-Bn996RXm.js";
|
|
8
8
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
class ge {
|
|
10
10
|
constructor(L, E, S, N = !0, A = !0) {
|
|
@@ -130,7 +130,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
130
130
|
},
|
|
131
131
|
emits: ["start", "pause", "reset", "restart", "lap"],
|
|
132
132
|
setup(q, { expose: L, emit: E }) {
|
|
133
|
-
const S = se(() => import("./PackageVersion-
|
|
133
|
+
const S = se(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_timer: N } = ce(), A = q, g = E, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
|
|
134
134
|
le(() => {
|
|
135
135
|
m();
|
|
136
136
|
});
|