vue-data-ui 3.0.0-next.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
import { useCssVars as $e, computed as d, defineAsyncComponent as A, onMounted as Pe, ref as p, watch as Fe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as oe, normalizeClass as S, createBlock as M, createCommentVNode as c, createSlots as Oe, withCtx as C, renderSlot as f, normalizeProps as U, guardReactiveProps as Y, createVNode as Ie, createElementVNode as v, Fragment as N, renderList as ae, toDisplayString as Ae } from "vue";
|
|
2
|
-
import { u as Se, o as Me, e as le, g as Ue, c as Ye, t as Ne, p as $, a as Te, b as Ve, v as g, d as T, X as qe, s as Le, i as Ee, f as Ge } from "./index-CgShIRes.js";
|
|
3
|
-
import { u as re } from "./useNestedProp-BC4Ciblw.js";
|
|
4
|
-
import { u as We } from "./usePrinter-rIrqBbbm.js";
|
|
5
|
-
import { u as Be } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as Re } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import je from "./Title-B2dA6-uH.js";
|
|
8
|
-
import ze from "./img-C_9wps3s.js";
|
|
9
|
-
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const He = ["id"], Xe = {
|
|
11
|
-
key: 1,
|
|
12
|
-
ref: "noTitle",
|
|
13
|
-
class: "vue-data-ui-no-title-space",
|
|
14
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
15
|
-
}, Je = {
|
|
16
|
-
key: 2,
|
|
17
|
-
style: "width:100%"
|
|
18
|
-
}, Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = {
|
|
19
|
-
id: "vueUiPill",
|
|
20
|
-
clipPathUnits: "objectBoundingBox"
|
|
21
|
-
}, et = ["fill"], tt = ["id"], st = ["stop-color"], ot = ["stop-color"], at = ["stop-color"], lt = { "clip-path": "url(#vueUiPill)" }, rt = ["x", "y", "height", "width"], nt = ["x", "y", "height", "width", "fill"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], dt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], vt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ft = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], gt = ["x", "y", "height", "width"], pt = ["y", "x", "fill", "font-size", "font-weight"], mt = {
|
|
22
|
-
key: 5,
|
|
23
|
-
class: "vue-data-ui-watermark"
|
|
24
|
-
}, kt = {
|
|
25
|
-
key: 6,
|
|
26
|
-
ref: "source",
|
|
27
|
-
dir: "auto"
|
|
28
|
-
}, bt = {
|
|
29
|
-
__name: "vue-ui-thermometer",
|
|
30
|
-
props: {
|
|
31
|
-
dataset: {
|
|
32
|
-
type: Object,
|
|
33
|
-
default() {
|
|
34
|
-
return {};
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
config: {
|
|
38
|
-
type: Object,
|
|
39
|
-
default() {
|
|
40
|
-
return {};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
setup(P, { expose: ne }) {
|
|
45
|
-
$e((s) => ({
|
|
46
|
-
"7efc96cd": me.value,
|
|
47
|
-
"4d37cb61": pe.value,
|
|
48
|
-
"295a76e4": ge.value
|
|
49
|
-
}));
|
|
50
|
-
const ue = A(() => import("./PackageVersion-2QvaZf9_.js")), ie = A(() => import("./PenAndPaper-hGgW0EHz.js")), ce = A(() => import("./vue-ui-skeleton-BsBaCvoE.js")), he = A(() => import("./UserOptions-Bk03FRqW.js")), { vue_ui_thermometer: de } = Se(), r = P, V = d(() => !!r.dataset && Object.keys(r.dataset).length);
|
|
51
|
-
Pe(() => {
|
|
52
|
-
B();
|
|
53
|
-
});
|
|
54
|
-
function B() {
|
|
55
|
-
Me(r.dataset) ? le({
|
|
56
|
-
componentName: "VueUiThermometer",
|
|
57
|
-
type: "dataset"
|
|
58
|
-
}) : Ue({
|
|
59
|
-
datasetObject: r.dataset,
|
|
60
|
-
requiredAttributes: ["value", "from", "to"]
|
|
61
|
-
}).forEach((s) => {
|
|
62
|
-
le({
|
|
63
|
-
componentName: "VueUiThermometer",
|
|
64
|
-
type: "datasetAttribute",
|
|
65
|
-
property: s
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
const m = p(Ye()), k = p(null), R = p(0), j = p(0), e = d({
|
|
70
|
-
get: () => X(),
|
|
71
|
-
set: (s) => s
|
|
72
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility: z, keepUserOptionState: D } = Be({ config: e.value }), { svgRef: H } = Re({ config: e.value.style.title });
|
|
73
|
-
function X() {
|
|
74
|
-
const s = re({
|
|
75
|
-
userConfig: r.config,
|
|
76
|
-
defaultConfig: de
|
|
77
|
-
});
|
|
78
|
-
return s.theme ? {
|
|
79
|
-
...re({
|
|
80
|
-
userConfig: Te.vue_ui_thermometer[s.theme] || r.config,
|
|
81
|
-
defaultConfig: s
|
|
82
|
-
}),
|
|
83
|
-
customPalette: Ne[s.theme] || $
|
|
84
|
-
} : s;
|
|
85
|
-
}
|
|
86
|
-
Fe(() => r.config, (s) => {
|
|
87
|
-
e.value = X(), q.value = !e.value.userOptions.showOnChartHover, B(), j.value += 1;
|
|
88
|
-
}, { deep: !0 });
|
|
89
|
-
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = We({
|
|
90
|
-
elementId: `thermometer__${m.value}`,
|
|
91
|
-
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
92
|
-
options: e.value.userOptions.print
|
|
93
|
-
}), ve = d(() => e.value.userOptions.show && !e.value.style.title.text), F = d(() => Ve(e.value.customPalette)), ye = d(() => e.value.style.chart.thermometer.width), y = d(() => r.dataset.steps || 10), h = p({
|
|
94
|
-
top: e.value.style.chart.padding.top,
|
|
95
|
-
left: e.value.style.chart.padding.left,
|
|
96
|
-
right: e.value.style.chart.padding.right,
|
|
97
|
-
bottom: e.value.style.chart.padding.bottom
|
|
98
|
-
});
|
|
99
|
-
function O(s, a, t) {
|
|
100
|
-
const n = [], x = ee(s), w = ee(a);
|
|
101
|
-
for (let _ = 0; _ < t; _++) {
|
|
102
|
-
const xe = L(x.red, w.red, _, t), we = L(x.green, w.green, _, t), _e = L(x.blue, w.blue, _, t), Ce = `#${E(xe)}${E(we)}${E(_e)}`;
|
|
103
|
-
n.push(Ce);
|
|
104
|
-
}
|
|
105
|
-
return n;
|
|
106
|
-
}
|
|
107
|
-
function ee(s) {
|
|
108
|
-
const a = s.slice(1);
|
|
109
|
-
return {
|
|
110
|
-
red: parseInt(a.slice(0, 2), 16),
|
|
111
|
-
green: parseInt(a.slice(2, 4), 16),
|
|
112
|
-
blue: parseInt(a.slice(4, 6), 16)
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function L(s, a, t, n) {
|
|
116
|
-
return Math.round(s + (a - s) * t / n);
|
|
117
|
-
}
|
|
118
|
-
function E(s) {
|
|
119
|
-
return s.toString(16).padStart(2, "0");
|
|
120
|
-
}
|
|
121
|
-
const o = d(() => {
|
|
122
|
-
const s = ye.value + h.value.left + h.value.right, a = e.value.style.chart.height;
|
|
123
|
-
return {
|
|
124
|
-
width: s,
|
|
125
|
-
left: h.value.left,
|
|
126
|
-
right: s - h.value.right,
|
|
127
|
-
top: h.value.top,
|
|
128
|
-
bottom: a - h.value.bottom,
|
|
129
|
-
height: a
|
|
130
|
-
};
|
|
131
|
-
}), fe = d(() => o.value), G = d(() => {
|
|
132
|
-
const s = g(r.dataset.from) < 0 ? Math.abs(g(r.dataset.from)) : g(r.dataset.from), a = g(r.dataset.to) < 0 ? Math.abs(g(r.dataset.to)) : g(r.dataset.to);
|
|
133
|
-
let t = 0;
|
|
134
|
-
return g(r.dataset.to) > 0 ? t = s + a : s > a ? t = s - a : t = a - s, (1 - (Math.abs(g(r.dataset.from)) + g(r.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
|
|
135
|
-
}), ge = d(() => `${G.value}px`), pe = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), me = d(() => `${e.value.style.chart.animation.speedMs}ms`), ke = d(() => {
|
|
136
|
-
if (r.dataset.colors) {
|
|
137
|
-
if (!r.dataset.colors.from)
|
|
138
|
-
return O(F.value[0] || $[0], T(r.dataset.colors.to), y.value || 10);
|
|
139
|
-
if (!r.dataset.colors.to)
|
|
140
|
-
return O(T(r.dataset.colors.from), F.value[1] || $[1], y.value || 10);
|
|
141
|
-
} else
|
|
142
|
-
return O(F.value[1] || $[1], F.value[0] || $[0], y.value || 10);
|
|
143
|
-
return O(T(r.dataset.colors.from), T(r.dataset.colors.to), y.value || 10);
|
|
144
|
-
}), te = d(() => {
|
|
145
|
-
const s = [];
|
|
146
|
-
let a = 0;
|
|
147
|
-
const t = o.value.height - h.value.top - h.value.bottom;
|
|
148
|
-
for (let n = 0; n < t - 1; n += t / y.value)
|
|
149
|
-
s.push({
|
|
150
|
-
x: o.value.left,
|
|
151
|
-
y: o.value.top + n,
|
|
152
|
-
qYLess: o.value.top + n + t / y.value / 4,
|
|
153
|
-
halfY: o.value.top + n + t / y.value / 2,
|
|
154
|
-
qYMore: o.value.top + n + t / y.value / 4 * 3,
|
|
155
|
-
color: ke.value[a],
|
|
156
|
-
height: t / y.value
|
|
157
|
-
}), a += 1;
|
|
158
|
-
return s;
|
|
159
|
-
}), b = p(!1);
|
|
160
|
-
function se(s) {
|
|
161
|
-
b.value = s, R.value += 1;
|
|
162
|
-
}
|
|
163
|
-
const I = p(!1);
|
|
164
|
-
function W() {
|
|
165
|
-
I.value = !I.value;
|
|
166
|
-
}
|
|
167
|
-
async function be({ scale: s = 2 } = {}) {
|
|
168
|
-
if (!k.value) return;
|
|
169
|
-
const { width: a, height: t } = k.value.getBoundingClientRect(), n = a / t, { imageUri: x, base64: w } = await ze({ domElement: k.value, base64: !0, img: !0, scale: s });
|
|
170
|
-
return {
|
|
171
|
-
imageUri: x,
|
|
172
|
-
base64: w,
|
|
173
|
-
title: e.value.style.title.text,
|
|
174
|
-
width: a,
|
|
175
|
-
height: t,
|
|
176
|
-
aspectRatio: n
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
return ne({
|
|
180
|
-
getImage: be,
|
|
181
|
-
generatePdf: Q,
|
|
182
|
-
generateImage: Z,
|
|
183
|
-
toggleAnnotator: W,
|
|
184
|
-
toggleFullscreen: se
|
|
185
|
-
}), (s, a) => (l(), u("div", {
|
|
186
|
-
ref_key: "thermoChart",
|
|
187
|
-
ref: k,
|
|
188
|
-
class: S(`vue-ui-thermometer ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
189
|
-
style: oe(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
190
|
-
id: `thermometer__${m.value}`,
|
|
191
|
-
onMouseenter: a[0] || (a[0] = () => i(z)(!0)),
|
|
192
|
-
onMouseleave: a[1] || (a[1] = () => i(z)(!1))
|
|
193
|
-
}, [
|
|
194
|
-
e.value.userOptions.buttons.annotator ? (l(), M(i(ie), {
|
|
195
|
-
key: 0,
|
|
196
|
-
svgRef: i(H),
|
|
197
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
198
|
-
color: e.value.style.chart.color,
|
|
199
|
-
active: I.value,
|
|
200
|
-
onClose: W
|
|
201
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
202
|
-
ve.value ? (l(), u("div", Xe, null, 512)) : c("", !0),
|
|
203
|
-
e.value.style.title.text ? (l(), u("div", Je, [
|
|
204
|
-
(l(), M(je, {
|
|
205
|
-
key: `title_${j.value}`,
|
|
206
|
-
config: {
|
|
207
|
-
title: {
|
|
208
|
-
cy: "thermometer-div-title",
|
|
209
|
-
...e.value.style.title
|
|
210
|
-
},
|
|
211
|
-
subtitle: {
|
|
212
|
-
cy: "thermometer-div-subtitle",
|
|
213
|
-
...e.value.style.title.subtitle
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}, null, 8, ["config"]))
|
|
217
|
-
])) : c("", !0),
|
|
218
|
-
e.value.userOptions.show && V.value && (i(D) || i(q)) ? (l(), M(i(he), {
|
|
219
|
-
ref: "details",
|
|
220
|
-
key: `user_options_${R.value}`,
|
|
221
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
222
|
-
color: e.value.style.chart.color,
|
|
223
|
-
isImaging: i(K),
|
|
224
|
-
isPrinting: i(J),
|
|
225
|
-
uid: m.value,
|
|
226
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
227
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
228
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
229
|
-
hasXls: !1,
|
|
230
|
-
isFullscreen: b.value,
|
|
231
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
232
|
-
chartElement: k.value,
|
|
233
|
-
position: e.value.userOptions.position,
|
|
234
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
235
|
-
isAnnotation: I.value,
|
|
236
|
-
callbacks: e.value.userOptions.callbacks,
|
|
237
|
-
printScale: e.value.userOptions.print.scale,
|
|
238
|
-
onToggleFullscreen: se,
|
|
239
|
-
onGeneratePdf: i(Q),
|
|
240
|
-
onGenerateImage: i(Z),
|
|
241
|
-
onToggleAnnotator: W,
|
|
242
|
-
style: oe({
|
|
243
|
-
visibility: i(D) ? i(q) ? "visible" : "hidden" : "visible"
|
|
244
|
-
})
|
|
245
|
-
}, Oe({ _: 2 }, [
|
|
246
|
-
s.$slots.menuIcon ? {
|
|
247
|
-
name: "menuIcon",
|
|
248
|
-
fn: C(({ isOpen: t, color: n }) => [
|
|
249
|
-
f(s.$slots, "menuIcon", U(Y({ isOpen: t, color: n })), void 0, !0)
|
|
250
|
-
]),
|
|
251
|
-
key: "0"
|
|
252
|
-
} : void 0,
|
|
253
|
-
s.$slots.optionPdf ? {
|
|
254
|
-
name: "optionPdf",
|
|
255
|
-
fn: C(() => [
|
|
256
|
-
f(s.$slots, "optionPdf", {}, void 0, !0)
|
|
257
|
-
]),
|
|
258
|
-
key: "1"
|
|
259
|
-
} : void 0,
|
|
260
|
-
s.$slots.optionImg ? {
|
|
261
|
-
name: "optionImg",
|
|
262
|
-
fn: C(() => [
|
|
263
|
-
f(s.$slots, "optionImg", {}, void 0, !0)
|
|
264
|
-
]),
|
|
265
|
-
key: "2"
|
|
266
|
-
} : void 0,
|
|
267
|
-
s.$slots.optionFullscreen ? {
|
|
268
|
-
name: "optionFullscreen",
|
|
269
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
270
|
-
f(s.$slots, "optionFullscreen", U(Y({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
271
|
-
]),
|
|
272
|
-
key: "3"
|
|
273
|
-
} : void 0,
|
|
274
|
-
s.$slots.optionAnnotator ? {
|
|
275
|
-
name: "optionAnnotator",
|
|
276
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
277
|
-
f(s.$slots, "optionAnnotator", U(Y({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
278
|
-
]),
|
|
279
|
-
key: "4"
|
|
280
|
-
} : void 0
|
|
281
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
282
|
-
V.value ? (l(), u("svg", {
|
|
283
|
-
key: 4,
|
|
284
|
-
ref_key: "svgRef",
|
|
285
|
-
ref: H,
|
|
286
|
-
xmlns: i(qe),
|
|
287
|
-
class: S({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value }),
|
|
288
|
-
width: "100%",
|
|
289
|
-
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
290
|
-
style: "background:transparent"
|
|
291
|
-
}, [
|
|
292
|
-
Ie(i(ue)),
|
|
293
|
-
s.$slots["chart-background"] ? (l(), u("foreignObject", {
|
|
294
|
-
key: 0,
|
|
295
|
-
x: 0,
|
|
296
|
-
y: 0,
|
|
297
|
-
width: o.value.width,
|
|
298
|
-
height: o.value.height,
|
|
299
|
-
style: {
|
|
300
|
-
pointerEvents: "none"
|
|
301
|
-
}
|
|
302
|
-
}, [
|
|
303
|
-
f(s.$slots, "chart-background", {}, void 0, !0)
|
|
304
|
-
], 8, Qe)) : c("", !0),
|
|
305
|
-
v("defs", null, [
|
|
306
|
-
v("clipPath", Ze, [
|
|
307
|
-
v("rect", {
|
|
308
|
-
x: "0",
|
|
309
|
-
y: "0",
|
|
310
|
-
width: "1",
|
|
311
|
-
height: "1",
|
|
312
|
-
rx: "0.5",
|
|
313
|
-
ry: "0.07",
|
|
314
|
-
fill: e.value.style.chart.backgroundColor
|
|
315
|
-
}, null, 8, et)
|
|
316
|
-
]),
|
|
317
|
-
(l(!0), u(N, null, ae(te.value, (t, n) => (l(), u("linearGradient", {
|
|
318
|
-
id: `vueUiThermometerGradient_${n}_${m.value}`,
|
|
319
|
-
x1: "0%",
|
|
320
|
-
y1: "0%",
|
|
321
|
-
x2: "100%",
|
|
322
|
-
y2: "0%"
|
|
323
|
-
}, [
|
|
324
|
-
v("stop", {
|
|
325
|
-
offset: "0%",
|
|
326
|
-
"stop-color": t.color
|
|
327
|
-
}, null, 8, st),
|
|
328
|
-
v("stop", {
|
|
329
|
-
offset: "50%",
|
|
330
|
-
"stop-color": i(Le)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
331
|
-
}, null, 8, ot),
|
|
332
|
-
v("stop", {
|
|
333
|
-
offset: "100%",
|
|
334
|
-
"stop-color": t.color
|
|
335
|
-
}, null, 8, at)
|
|
336
|
-
], 8, tt))), 256))
|
|
337
|
-
]),
|
|
338
|
-
v("g", lt, [
|
|
339
|
-
v("rect", {
|
|
340
|
-
x: o.value.left,
|
|
341
|
-
y: o.value.top,
|
|
342
|
-
height: o.value.height - h.value.top - h.value.bottom,
|
|
343
|
-
width: o.value.width - h.value.left - h.value.right,
|
|
344
|
-
fill: "#FFFFFF"
|
|
345
|
-
}, null, 8, rt),
|
|
346
|
-
(l(!0), u(N, null, ae(te.value, (t, n) => (l(), u("g", {
|
|
347
|
-
key: `graduation_${n}`
|
|
348
|
-
}, [
|
|
349
|
-
v("rect", {
|
|
350
|
-
x: t.x,
|
|
351
|
-
y: t.y,
|
|
352
|
-
height: t.height,
|
|
353
|
-
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
354
|
-
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
|
|
355
|
-
"shape-rendering": "crispEdges"
|
|
356
|
-
}, null, 8, nt),
|
|
357
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
358
|
-
key: 0,
|
|
359
|
-
x1: t.x,
|
|
360
|
-
x2: t.x + 10,
|
|
361
|
-
y1: t.y,
|
|
362
|
-
y2: t.y,
|
|
363
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
364
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
365
|
-
"stroke-linecap": "round"
|
|
366
|
-
}, null, 8, ut)) : c("", !0),
|
|
367
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(N, { key: 1 }, [
|
|
368
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
369
|
-
key: 0,
|
|
370
|
-
x1: t.x,
|
|
371
|
-
x2: t.x + 5,
|
|
372
|
-
y1: t.halfY,
|
|
373
|
-
y2: t.halfY,
|
|
374
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
375
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
376
|
-
"stroke-linecap": "round"
|
|
377
|
-
}, null, 8, it)) : c("", !0),
|
|
378
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
379
|
-
key: 1,
|
|
380
|
-
x1: t.x,
|
|
381
|
-
x2: t.x + 2.5,
|
|
382
|
-
y1: t.qYLess,
|
|
383
|
-
y2: t.qYLess,
|
|
384
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
385
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
386
|
-
"stroke-linecap": "round"
|
|
387
|
-
}, null, 8, ct)) : c("", !0),
|
|
388
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
389
|
-
key: 2,
|
|
390
|
-
x1: t.x,
|
|
391
|
-
x2: t.x + 2.5,
|
|
392
|
-
y1: t.qYMore,
|
|
393
|
-
y2: t.qYMore,
|
|
394
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
395
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
396
|
-
"stroke-linecap": "round"
|
|
397
|
-
}, null, 8, ht)) : c("", !0)
|
|
398
|
-
], 64)) : c("", !0),
|
|
399
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
400
|
-
key: 2,
|
|
401
|
-
x1: o.value.right,
|
|
402
|
-
x2: o.value.right - 10,
|
|
403
|
-
y1: t.y,
|
|
404
|
-
y2: t.y,
|
|
405
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
406
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
407
|
-
"stroke-linecap": "round"
|
|
408
|
-
}, null, 8, dt)) : c("", !0),
|
|
409
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(N, { key: 3 }, [
|
|
410
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
411
|
-
key: 0,
|
|
412
|
-
x1: o.value.right,
|
|
413
|
-
x2: o.value.right - 5,
|
|
414
|
-
y1: t.halfY,
|
|
415
|
-
y2: t.halfY,
|
|
416
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
417
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
418
|
-
"stroke-linecap": "round"
|
|
419
|
-
}, null, 8, vt)) : c("", !0),
|
|
420
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
421
|
-
key: 1,
|
|
422
|
-
x1: o.value.right,
|
|
423
|
-
x2: o.value.right - 2.5,
|
|
424
|
-
y1: t.qYLess,
|
|
425
|
-
y2: t.qYLess,
|
|
426
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
427
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
428
|
-
"stroke-linecap": "round"
|
|
429
|
-
}, null, 8, yt)) : c("", !0),
|
|
430
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
431
|
-
key: 2,
|
|
432
|
-
x1: o.value.right,
|
|
433
|
-
x2: o.value.right - 2.5,
|
|
434
|
-
y1: t.qYMore,
|
|
435
|
-
y2: t.qYMore,
|
|
436
|
-
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
437
|
-
stroke: e.value.style.chart.graduations.stroke,
|
|
438
|
-
"stroke-linecap": "round"
|
|
439
|
-
}, null, 8, ft)) : c("", !0)
|
|
440
|
-
], 64)) : c("", !0)
|
|
441
|
-
]))), 128)),
|
|
442
|
-
v("rect", {
|
|
443
|
-
class: S({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
444
|
-
x: o.value.left,
|
|
445
|
-
y: o.value.top,
|
|
446
|
-
height: G.value,
|
|
447
|
-
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
448
|
-
fill: "#FFFFFF66"
|
|
449
|
-
}, null, 10, gt)
|
|
450
|
-
]),
|
|
451
|
-
v("text", {
|
|
452
|
-
class: S({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
453
|
-
y: G.value + o.value.top + e.value.style.chart.label.fontSize / 3,
|
|
454
|
-
x: o.value.left - 10,
|
|
455
|
-
"text-anchor": "end",
|
|
456
|
-
fill: e.value.style.chart.label.color,
|
|
457
|
-
"font-size": e.value.style.chart.label.fontSize,
|
|
458
|
-
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
459
|
-
}, Ae(i(Ee)(
|
|
460
|
-
e.value.style.chart.label.formatter,
|
|
461
|
-
P.dataset.value,
|
|
462
|
-
i(Ge)({
|
|
463
|
-
p: e.value.style.chart.label.prefix,
|
|
464
|
-
v: P.dataset.value,
|
|
465
|
-
s: e.value.style.chart.label.suffix,
|
|
466
|
-
r: e.value.style.chart.label.rounding
|
|
467
|
-
}),
|
|
468
|
-
{ datapoint: P.dataset }
|
|
469
|
-
)), 11, pt),
|
|
470
|
-
f(s.$slots, "svg", { svg: fe.value }, void 0, !0)
|
|
471
|
-
], 10, Ke)) : c("", !0),
|
|
472
|
-
s.$slots.watermark ? (l(), u("div", mt, [
|
|
473
|
-
f(s.$slots, "watermark", U(Y({ isPrinting: i(J) || i(K) })), void 0, !0)
|
|
474
|
-
])) : c("", !0),
|
|
475
|
-
s.$slots.source ? (l(), u("div", kt, [
|
|
476
|
-
f(s.$slots, "source", {}, void 0, !0)
|
|
477
|
-
], 512)) : c("", !0),
|
|
478
|
-
V.value ? c("", !0) : (l(), M(i(ce), {
|
|
479
|
-
key: 7,
|
|
480
|
-
config: {
|
|
481
|
-
type: "thermometer",
|
|
482
|
-
style: {
|
|
483
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
484
|
-
thermometer: {
|
|
485
|
-
color: "#CCCCCC"
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}, null, 8, ["config"]))
|
|
490
|
-
], 46, He));
|
|
491
|
-
}
|
|
492
|
-
}, At = /* @__PURE__ */ De(bt, [["__scopeId", "data-v-8985051a"]]);
|
|
493
|
-
export {
|
|
494
|
-
At as default
|
|
495
|
-
};
|