vue-data-ui 2.16.5 → 2.17.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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { useCssVars as $e, computed as d, defineAsyncComponent as O, onMounted as Pe, ref as p, watch as Fe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as oe, normalizeClass as I, createBlock as A, createCommentVNode as c, createSlots as Oe, withCtx as x, renderSlot as f, normalizeProps as S, guardReactiveProps as M, createVNode as Ie, createElementVNode as v, Fragment as U, 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 w, a as Te, b as Ve, v as g, d as Y, X as qe, s as Le, i as Ee, f as Ge } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as re } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as We } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as ze } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import Be from "./Title-B-2bV0SW.js";
|
|
8
|
+
import Re from "./img-Y_hYz-ZC.js";
|
|
9
|
+
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const He = ["id"], Xe = {
|
|
10
11
|
key: 1,
|
|
11
12
|
ref: "noTitle",
|
|
12
13
|
class: "vue-data-ui-no-title-space",
|
|
13
14
|
style: "height:36px; width: 100%;background:transparent"
|
|
14
|
-
},
|
|
15
|
+
}, Je = {
|
|
15
16
|
key: 2,
|
|
16
17
|
style: "width:100%"
|
|
17
|
-
},
|
|
18
|
+
}, Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = {
|
|
18
19
|
id: "vueUiPill",
|
|
19
20
|
clipPathUnits: "objectBoundingBox"
|
|
20
|
-
},
|
|
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 = {
|
|
21
22
|
key: 5,
|
|
22
23
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
24
|
+
}, kt = {
|
|
24
25
|
key: 6,
|
|
25
26
|
ref: "source",
|
|
26
27
|
dir: "auto"
|
|
27
|
-
},
|
|
28
|
+
}, bt = {
|
|
28
29
|
__name: "vue-ui-thermometer",
|
|
29
30
|
props: {
|
|
30
31
|
dataset: {
|
|
@@ -40,22 +41,22 @@ const Re = ["id"], De = {
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
|
-
setup(_, { expose:
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
44
|
+
setup(_, { expose: ne }) {
|
|
45
|
+
$e((s) => ({
|
|
46
|
+
"27cf4cf6": me.value,
|
|
47
|
+
f8d740ae: pe.value,
|
|
48
|
+
"22506a54": ge.value
|
|
48
49
|
}));
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
const ue = O(() => import("./PackageVersion-5TR4ocqp.js")), ie = O(() => import("./PenAndPaper-D6AqipIO.js")), ce = O(() => import("./vue-ui-skeleton-DJPjyNYn.js")), he = O(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_thermometer: de } = Se(), r = _, N = d(() => !!r.dataset && Object.keys(r.dataset).length);
|
|
51
|
+
Pe(() => {
|
|
52
|
+
j();
|
|
52
53
|
});
|
|
53
|
-
function
|
|
54
|
-
Me(
|
|
54
|
+
function j() {
|
|
55
|
+
Me(r.dataset) ? le({
|
|
55
56
|
componentName: "VueUiThermometer",
|
|
56
57
|
type: "dataset"
|
|
57
|
-
}) :
|
|
58
|
-
datasetObject:
|
|
58
|
+
}) : Ue({
|
|
59
|
+
datasetObject: r.dataset,
|
|
59
60
|
requiredAttributes: ["value", "from", "to"]
|
|
60
61
|
}).forEach((s) => {
|
|
61
62
|
le({
|
|
@@ -65,84 +66,84 @@ const Re = ["id"], De = {
|
|
|
65
66
|
});
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
const m = p(
|
|
69
|
+
const m = p(Ye()), C = p(null), z = p(0), B = p(0), e = d({
|
|
69
70
|
get: () => X(),
|
|
70
71
|
set: (s) => s
|
|
71
|
-
}), { userOptionsVisible:
|
|
72
|
+
}), { userOptionsVisible: T, setUserOptionsVisibility: R, keepUserOptionState: D } = je({ config: e.value }), { svgRef: H } = ze({ config: e.value.style.title });
|
|
72
73
|
function X() {
|
|
73
|
-
const s =
|
|
74
|
-
userConfig:
|
|
75
|
-
defaultConfig:
|
|
74
|
+
const s = re({
|
|
75
|
+
userConfig: r.config,
|
|
76
|
+
defaultConfig: de
|
|
76
77
|
});
|
|
77
78
|
return s.theme ? {
|
|
78
|
-
...
|
|
79
|
-
userConfig:
|
|
79
|
+
...re({
|
|
80
|
+
userConfig: Te.vue_ui_thermometer[s.theme] || r.config,
|
|
80
81
|
defaultConfig: s
|
|
81
82
|
}),
|
|
82
|
-
customPalette:
|
|
83
|
+
customPalette: Ne[s.theme] || w
|
|
83
84
|
} : s;
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
-
e.value = X(),
|
|
86
|
+
Fe(() => r.config, (s) => {
|
|
87
|
+
e.value = X(), T.value = !e.value.userOptions.showOnChartHover, j(), B.value += 1;
|
|
87
88
|
}, { deep: !0 });
|
|
88
|
-
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } =
|
|
89
|
+
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = We({
|
|
89
90
|
elementId: `thermometer__${m.value}`,
|
|
90
91
|
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
91
92
|
options: e.value.userOptions.print
|
|
92
|
-
}),
|
|
93
|
+
}), ve = d(() => e.value.userOptions.show && !e.value.style.title.text), $ = d(() => Ve(e.value.customPalette)), ye = d(() => e.value.style.chart.thermometer.width), y = d(() => r.dataset.steps || 10), h = p({
|
|
93
94
|
top: e.value.style.chart.padding.top,
|
|
94
95
|
left: e.value.style.chart.padding.left,
|
|
95
96
|
right: e.value.style.chart.padding.right,
|
|
96
97
|
bottom: e.value.style.chart.padding.bottom
|
|
97
98
|
});
|
|
98
|
-
function
|
|
99
|
-
const n = [],
|
|
99
|
+
function P(s, a, t) {
|
|
100
|
+
const n = [], G = ee(s), W = ee(a);
|
|
100
101
|
for (let b = 0; b < t; b++) {
|
|
101
|
-
const
|
|
102
|
-
n.push(
|
|
102
|
+
const xe = V(G.red, W.red, b, t), we = V(G.green, W.green, b, t), _e = V(G.blue, W.blue, b, t), Ce = `#${q(xe)}${q(we)}${q(_e)}`;
|
|
103
|
+
n.push(Ce);
|
|
103
104
|
}
|
|
104
105
|
return n;
|
|
105
106
|
}
|
|
106
107
|
function ee(s) {
|
|
107
|
-
const
|
|
108
|
+
const a = s.slice(1);
|
|
108
109
|
return {
|
|
109
|
-
red: parseInt(
|
|
110
|
-
green: parseInt(
|
|
111
|
-
blue: parseInt(
|
|
110
|
+
red: parseInt(a.slice(0, 2), 16),
|
|
111
|
+
green: parseInt(a.slice(2, 4), 16),
|
|
112
|
+
blue: parseInt(a.slice(4, 6), 16)
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
return Math.round(s + (
|
|
115
|
+
function V(s, a, t, n) {
|
|
116
|
+
return Math.round(s + (a - s) * t / n);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function q(s) {
|
|
118
119
|
return s.toString(16).padStart(2, "0");
|
|
119
120
|
}
|
|
120
121
|
const o = d(() => {
|
|
121
|
-
const s =
|
|
122
|
+
const s = ye.value + h.value.left + h.value.right, a = e.value.style.chart.height;
|
|
122
123
|
return {
|
|
123
124
|
width: s,
|
|
124
125
|
left: h.value.left,
|
|
125
126
|
right: s - h.value.right,
|
|
126
127
|
top: h.value.top,
|
|
127
|
-
bottom:
|
|
128
|
-
height:
|
|
128
|
+
bottom: a - h.value.bottom,
|
|
129
|
+
height: a
|
|
129
130
|
};
|
|
130
|
-
}),
|
|
131
|
-
const s = g(
|
|
131
|
+
}), fe = d(() => o.value), L = 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);
|
|
132
133
|
let t = 0;
|
|
133
|
-
return g(
|
|
134
|
-
}),
|
|
135
|
-
if (
|
|
136
|
-
if (!
|
|
137
|
-
return
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
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(() => `${L.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 P($.value[0] || w[0], Y(r.dataset.colors.to), y.value || 10);
|
|
139
|
+
if (!r.dataset.colors.to)
|
|
140
|
+
return P(Y(r.dataset.colors.from), $.value[1] || w[1], y.value || 10);
|
|
140
141
|
} else
|
|
141
|
-
return
|
|
142
|
-
return
|
|
142
|
+
return P($.value[1] || w[1], $.value[0] || w[0], y.value || 10);
|
|
143
|
+
return P(Y(r.dataset.colors.from), Y(r.dataset.colors.to), y.value || 10);
|
|
143
144
|
}), te = d(() => {
|
|
144
145
|
const s = [];
|
|
145
|
-
let
|
|
146
|
+
let a = 0;
|
|
146
147
|
const t = o.value.height - h.value.top - h.value.bottom;
|
|
147
148
|
for (let n = 0; n < t - 1; n += t / y.value)
|
|
148
149
|
s.push({
|
|
@@ -151,42 +152,49 @@ const Re = ["id"], De = {
|
|
|
151
152
|
qYLess: o.value.top + n + t / y.value / 4,
|
|
152
153
|
halfY: o.value.top + n + t / y.value / 2,
|
|
153
154
|
qYMore: o.value.top + n + t / y.value / 4 * 3,
|
|
154
|
-
color:
|
|
155
|
+
color: ke.value[a],
|
|
155
156
|
height: t / y.value
|
|
156
|
-
}),
|
|
157
|
+
}), a += 1;
|
|
157
158
|
return s;
|
|
158
159
|
}), k = p(!1);
|
|
159
|
-
function
|
|
160
|
+
function se(s) {
|
|
160
161
|
k.value = s, z.value += 1;
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
const F = p(!1);
|
|
164
|
+
function E() {
|
|
165
|
+
F.value = !F.value;
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
+
async function be({ scale: s = 2 } = {}) {
|
|
168
|
+
if (!C.value) return;
|
|
169
|
+
const { imageUri: a, base64: t } = await Re({ domElement: C.value, base64: !0, img: !0, scale: s });
|
|
170
|
+
return { imageUri: a, base64: t };
|
|
171
|
+
}
|
|
172
|
+
return ne({
|
|
173
|
+
getImage: be,
|
|
167
174
|
generatePdf: Q,
|
|
168
175
|
generateImage: Z,
|
|
169
|
-
toggleAnnotator:
|
|
170
|
-
|
|
176
|
+
toggleAnnotator: E,
|
|
177
|
+
toggleFullscreen: se
|
|
178
|
+
}), (s, a) => (l(), u("div", {
|
|
171
179
|
ref_key: "thermoChart",
|
|
172
|
-
ref:
|
|
173
|
-
class:
|
|
174
|
-
style:
|
|
180
|
+
ref: C,
|
|
181
|
+
class: I(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
182
|
+
style: oe(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
175
183
|
id: `thermometer__${m.value}`,
|
|
176
|
-
onMouseenter:
|
|
177
|
-
onMouseleave:
|
|
184
|
+
onMouseenter: a[0] || (a[0] = () => i(R)(!0)),
|
|
185
|
+
onMouseleave: a[1] || (a[1] = () => i(R)(!1))
|
|
178
186
|
}, [
|
|
179
|
-
e.value.userOptions.buttons.annotator ? (l(),
|
|
187
|
+
e.value.userOptions.buttons.annotator ? (l(), A(i(ie), {
|
|
180
188
|
key: 0,
|
|
181
189
|
svgRef: i(H),
|
|
182
190
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
183
191
|
color: e.value.style.chart.color,
|
|
184
|
-
active:
|
|
185
|
-
onClose:
|
|
192
|
+
active: F.value,
|
|
193
|
+
onClose: E
|
|
186
194
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
187
|
-
|
|
188
|
-
e.value.style.title.text ? (l(), u("div",
|
|
189
|
-
(l(),
|
|
195
|
+
ve.value ? (l(), u("div", Xe, null, 512)) : c("", !0),
|
|
196
|
+
e.value.style.title.text ? (l(), u("div", Je, [
|
|
197
|
+
(l(), A(Be, {
|
|
190
198
|
key: `title_${B.value}`,
|
|
191
199
|
config: {
|
|
192
200
|
title: {
|
|
@@ -200,7 +208,7 @@ const Re = ["id"], De = {
|
|
|
200
208
|
}
|
|
201
209
|
}, null, 8, ["config"]))
|
|
202
210
|
])) : c("", !0),
|
|
203
|
-
e.value.userOptions.show &&
|
|
211
|
+
e.value.userOptions.show && N.value && (i(D) || i(T)) ? (l(), A(i(he), {
|
|
204
212
|
ref: "details",
|
|
205
213
|
key: `user_options_${z.value}`,
|
|
206
214
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -214,23 +222,24 @@ const Re = ["id"], De = {
|
|
|
214
222
|
hasXls: !1,
|
|
215
223
|
isFullscreen: k.value,
|
|
216
224
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
217
|
-
chartElement:
|
|
225
|
+
chartElement: C.value,
|
|
218
226
|
position: e.value.userOptions.position,
|
|
219
227
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
220
|
-
isAnnotation:
|
|
228
|
+
isAnnotation: F.value,
|
|
221
229
|
callbacks: e.value.userOptions.callbacks,
|
|
222
|
-
|
|
230
|
+
printScale: e.value.userOptions.print.scale,
|
|
231
|
+
onToggleFullscreen: se,
|
|
223
232
|
onGeneratePdf: i(Q),
|
|
224
233
|
onGenerateImage: i(Z),
|
|
225
|
-
onToggleAnnotator:
|
|
226
|
-
style:
|
|
227
|
-
visibility: i(D) ? i(
|
|
234
|
+
onToggleAnnotator: E,
|
|
235
|
+
style: oe({
|
|
236
|
+
visibility: i(D) ? i(T) ? "visible" : "hidden" : "visible"
|
|
228
237
|
})
|
|
229
|
-
},
|
|
238
|
+
}, Oe({ _: 2 }, [
|
|
230
239
|
s.$slots.menuIcon ? {
|
|
231
240
|
name: "menuIcon",
|
|
232
241
|
fn: x(({ isOpen: t, color: n }) => [
|
|
233
|
-
f(s.$slots, "menuIcon",
|
|
242
|
+
f(s.$slots, "menuIcon", S(M({ isOpen: t, color: n })), void 0, !0)
|
|
234
243
|
]),
|
|
235
244
|
key: "0"
|
|
236
245
|
} : void 0,
|
|
@@ -251,29 +260,29 @@ const Re = ["id"], De = {
|
|
|
251
260
|
s.$slots.optionFullscreen ? {
|
|
252
261
|
name: "optionFullscreen",
|
|
253
262
|
fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
254
|
-
f(s.$slots, "optionFullscreen",
|
|
263
|
+
f(s.$slots, "optionFullscreen", S(M({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
255
264
|
]),
|
|
256
265
|
key: "3"
|
|
257
266
|
} : void 0,
|
|
258
267
|
s.$slots.optionAnnotator ? {
|
|
259
268
|
name: "optionAnnotator",
|
|
260
269
|
fn: x(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
261
|
-
f(s.$slots, "optionAnnotator",
|
|
270
|
+
f(s.$slots, "optionAnnotator", S(M({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
262
271
|
]),
|
|
263
272
|
key: "4"
|
|
264
273
|
} : 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
|
-
|
|
274
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
275
|
+
N.value ? (l(), u("svg", {
|
|
267
276
|
key: 4,
|
|
268
277
|
ref_key: "svgRef",
|
|
269
278
|
ref: H,
|
|
270
|
-
xmlns: i(
|
|
271
|
-
class:
|
|
279
|
+
xmlns: i(qe),
|
|
280
|
+
class: I({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
|
|
272
281
|
width: "100%",
|
|
273
282
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
274
283
|
style: "background:transparent"
|
|
275
284
|
}, [
|
|
276
|
-
|
|
285
|
+
Ie(i(ue)),
|
|
277
286
|
s.$slots["chart-background"] ? (l(), u("foreignObject", {
|
|
278
287
|
key: 0,
|
|
279
288
|
x: 0,
|
|
@@ -285,9 +294,9 @@ const Re = ["id"], De = {
|
|
|
285
294
|
}
|
|
286
295
|
}, [
|
|
287
296
|
f(s.$slots, "chart-background", {}, void 0, !0)
|
|
288
|
-
], 8,
|
|
297
|
+
], 8, Qe)) : c("", !0),
|
|
289
298
|
v("defs", null, [
|
|
290
|
-
v("clipPath",
|
|
299
|
+
v("clipPath", Ze, [
|
|
291
300
|
v("rect", {
|
|
292
301
|
x: "0",
|
|
293
302
|
y: "0",
|
|
@@ -296,9 +305,9 @@ const Re = ["id"], De = {
|
|
|
296
305
|
rx: "0.5",
|
|
297
306
|
ry: "0.07",
|
|
298
307
|
fill: e.value.style.chart.backgroundColor
|
|
299
|
-
}, null, 8,
|
|
308
|
+
}, null, 8, et)
|
|
300
309
|
]),
|
|
301
|
-
(l(!0), u(
|
|
310
|
+
(l(!0), u(U, null, ae(te.value, (t, n) => (l(), u("linearGradient", {
|
|
302
311
|
id: `vueUiThermometerGradient_${n}_${m.value}`,
|
|
303
312
|
x1: "0%",
|
|
304
313
|
y1: "0%",
|
|
@@ -308,26 +317,26 @@ const Re = ["id"], De = {
|
|
|
308
317
|
v("stop", {
|
|
309
318
|
offset: "0%",
|
|
310
319
|
"stop-color": t.color
|
|
311
|
-
}, null, 8,
|
|
320
|
+
}, null, 8, st),
|
|
312
321
|
v("stop", {
|
|
313
322
|
offset: "50%",
|
|
314
|
-
"stop-color": i(
|
|
315
|
-
}, null, 8,
|
|
323
|
+
"stop-color": i(Le)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
324
|
+
}, null, 8, ot),
|
|
316
325
|
v("stop", {
|
|
317
326
|
offset: "100%",
|
|
318
327
|
"stop-color": t.color
|
|
319
|
-
}, null, 8,
|
|
320
|
-
], 8,
|
|
328
|
+
}, null, 8, at)
|
|
329
|
+
], 8, tt))), 256))
|
|
321
330
|
]),
|
|
322
|
-
v("g",
|
|
331
|
+
v("g", lt, [
|
|
323
332
|
v("rect", {
|
|
324
333
|
x: o.value.left,
|
|
325
334
|
y: o.value.top,
|
|
326
335
|
height: o.value.height - h.value.top - h.value.bottom,
|
|
327
336
|
width: o.value.width - h.value.left - h.value.right,
|
|
328
337
|
fill: "#FFFFFF"
|
|
329
|
-
}, null, 8,
|
|
330
|
-
(l(!0), u(
|
|
338
|
+
}, null, 8, rt),
|
|
339
|
+
(l(!0), u(U, null, ae(te.value, (t, n) => (l(), u("g", {
|
|
331
340
|
key: `graduation_${n}`
|
|
332
341
|
}, [
|
|
333
342
|
v("rect", {
|
|
@@ -337,7 +346,7 @@ const Re = ["id"], De = {
|
|
|
337
346
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
338
347
|
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
|
|
339
348
|
"shape-rendering": "crispEdges"
|
|
340
|
-
}, null, 8,
|
|
349
|
+
}, null, 8, nt),
|
|
341
350
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
342
351
|
key: 0,
|
|
343
352
|
x1: t.x,
|
|
@@ -347,8 +356,8 @@ const Re = ["id"], De = {
|
|
|
347
356
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
348
357
|
stroke: e.value.style.chart.graduations.stroke,
|
|
349
358
|
"stroke-linecap": "round"
|
|
350
|
-
}, null, 8,
|
|
351
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(
|
|
359
|
+
}, null, 8, ut)) : c("", !0),
|
|
360
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), u(U, { key: 1 }, [
|
|
352
361
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
353
362
|
key: 0,
|
|
354
363
|
x1: t.x,
|
|
@@ -358,7 +367,7 @@ const Re = ["id"], De = {
|
|
|
358
367
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
359
368
|
stroke: e.value.style.chart.graduations.stroke,
|
|
360
369
|
"stroke-linecap": "round"
|
|
361
|
-
}, null, 8,
|
|
370
|
+
}, null, 8, it)) : c("", !0),
|
|
362
371
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
363
372
|
key: 1,
|
|
364
373
|
x1: t.x,
|
|
@@ -368,7 +377,7 @@ const Re = ["id"], De = {
|
|
|
368
377
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
369
378
|
stroke: e.value.style.chart.graduations.stroke,
|
|
370
379
|
"stroke-linecap": "round"
|
|
371
|
-
}, null, 8,
|
|
380
|
+
}, null, 8, ct)) : c("", !0),
|
|
372
381
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
373
382
|
key: 2,
|
|
374
383
|
x1: t.x,
|
|
@@ -378,7 +387,7 @@ const Re = ["id"], De = {
|
|
|
378
387
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
379
388
|
stroke: e.value.style.chart.graduations.stroke,
|
|
380
389
|
"stroke-linecap": "round"
|
|
381
|
-
}, null, 8,
|
|
390
|
+
}, null, 8, ht)) : c("", !0)
|
|
382
391
|
], 64)) : c("", !0),
|
|
383
392
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
384
393
|
key: 2,
|
|
@@ -389,8 +398,8 @@ const Re = ["id"], De = {
|
|
|
389
398
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
390
399
|
stroke: e.value.style.chart.graduations.stroke,
|
|
391
400
|
"stroke-linecap": "round"
|
|
392
|
-
}, null, 8,
|
|
393
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(
|
|
401
|
+
}, null, 8, dt)) : c("", !0),
|
|
402
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), u(U, { key: 3 }, [
|
|
394
403
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
395
404
|
key: 0,
|
|
396
405
|
x1: o.value.right,
|
|
@@ -400,7 +409,7 @@ const Re = ["id"], De = {
|
|
|
400
409
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
401
410
|
stroke: e.value.style.chart.graduations.stroke,
|
|
402
411
|
"stroke-linecap": "round"
|
|
403
|
-
}, null, 8,
|
|
412
|
+
}, null, 8, vt)) : c("", !0),
|
|
404
413
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
405
414
|
key: 1,
|
|
406
415
|
x1: o.value.right,
|
|
@@ -410,7 +419,7 @@ const Re = ["id"], De = {
|
|
|
410
419
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
411
420
|
stroke: e.value.style.chart.graduations.stroke,
|
|
412
421
|
"stroke-linecap": "round"
|
|
413
|
-
}, null, 8,
|
|
422
|
+
}, null, 8, yt)) : c("", !0),
|
|
414
423
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
415
424
|
key: 2,
|
|
416
425
|
x1: o.value.right,
|
|
@@ -420,46 +429,46 @@ const Re = ["id"], De = {
|
|
|
420
429
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
421
430
|
stroke: e.value.style.chart.graduations.stroke,
|
|
422
431
|
"stroke-linecap": "round"
|
|
423
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, ft)) : c("", !0)
|
|
424
433
|
], 64)) : c("", !0)
|
|
425
434
|
]))), 128)),
|
|
426
435
|
v("rect", {
|
|
427
|
-
class:
|
|
436
|
+
class: I({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
428
437
|
x: o.value.left,
|
|
429
438
|
y: o.value.top,
|
|
430
|
-
height:
|
|
439
|
+
height: L.value,
|
|
431
440
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
432
441
|
fill: "#FFFFFF66"
|
|
433
|
-
}, null, 10,
|
|
442
|
+
}, null, 10, gt)
|
|
434
443
|
]),
|
|
435
444
|
v("text", {
|
|
436
|
-
class:
|
|
437
|
-
y:
|
|
445
|
+
class: I({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
446
|
+
y: L.value + o.value.top + e.value.style.chart.label.fontSize / 3,
|
|
438
447
|
x: o.value.left - 10,
|
|
439
448
|
"text-anchor": "end",
|
|
440
449
|
fill: e.value.style.chart.label.color,
|
|
441
450
|
"font-size": e.value.style.chart.label.fontSize,
|
|
442
451
|
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
443
|
-
},
|
|
452
|
+
}, Ae(i(Ee)(
|
|
444
453
|
e.value.style.chart.label.formatter,
|
|
445
454
|
_.dataset.value,
|
|
446
|
-
i(
|
|
455
|
+
i(Ge)({
|
|
447
456
|
p: e.value.style.chart.label.prefix,
|
|
448
457
|
v: _.dataset.value,
|
|
449
458
|
s: e.value.style.chart.label.suffix,
|
|
450
459
|
r: e.value.style.chart.label.rounding
|
|
451
460
|
}),
|
|
452
461
|
{ datapoint: _.dataset }
|
|
453
|
-
)), 11,
|
|
454
|
-
f(s.$slots, "svg", { svg:
|
|
455
|
-
], 10,
|
|
456
|
-
s.$slots.watermark ? (l(), u("div",
|
|
457
|
-
f(s.$slots, "watermark",
|
|
462
|
+
)), 11, pt),
|
|
463
|
+
f(s.$slots, "svg", { svg: fe.value }, void 0, !0)
|
|
464
|
+
], 10, Ke)) : c("", !0),
|
|
465
|
+
s.$slots.watermark ? (l(), u("div", mt, [
|
|
466
|
+
f(s.$slots, "watermark", S(M({ isPrinting: i(J) || i(K) })), void 0, !0)
|
|
458
467
|
])) : c("", !0),
|
|
459
|
-
s.$slots.source ? (l(), u("div",
|
|
468
|
+
s.$slots.source ? (l(), u("div", kt, [
|
|
460
469
|
f(s.$slots, "source", {}, void 0, !0)
|
|
461
470
|
], 512)) : c("", !0),
|
|
462
|
-
|
|
471
|
+
N.value ? c("", !0) : (l(), A(i(ce), {
|
|
463
472
|
key: 7,
|
|
464
473
|
config: {
|
|
465
474
|
type: "thermometer",
|
|
@@ -471,9 +480,9 @@ const Re = ["id"], De = {
|
|
|
471
480
|
}
|
|
472
481
|
}
|
|
473
482
|
}, null, 8, ["config"]))
|
|
474
|
-
], 46,
|
|
483
|
+
], 46, He));
|
|
475
484
|
}
|
|
476
|
-
},
|
|
485
|
+
}, At = /* @__PURE__ */ De(bt, [["__scopeId", "data-v-7395d942"]]);
|
|
477
486
|
export {
|
|
478
|
-
|
|
487
|
+
At as default
|
|
479
488
|
};
|
|
@@ -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-DjACxgdZ.js";
|
|
3
|
+
import { u as ce, c as ve, X as de, E as X } from "./index-pPGk-uhD.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-B-2bV0SW.js";
|
|
7
|
+
import R from "./BaseIcon-naqtCxVi.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-5TR4ocqp.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
|
});
|