vue-data-ui 3.0.0-next.47 → 3.0.0-next.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BHgPVuF5.js → Arrow-DotTzDzE.js} +1 -1
- package/dist/{BaseDraggableDialog-CHKA2DkB.js → BaseDraggableDialog-BPs3KOCk.js} +2 -2
- package/dist/{BaseIcon-CVvqI_Vz.js → BaseIcon-B4lxhw9o.js} +1 -1
- package/dist/{ColorPicker-Dsb6xLiB.js → ColorPicker-2EO8-zhQ.js} +2 -2
- package/dist/{DataTable-Cu4ONs-C.js → DataTable-CVnNcUM4.js} +2 -2
- package/dist/{Legend-BFdpVM3f.js → Legend-BlVtnIFw.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bu810bZ_.js → NonSvgPenAndPaper-07syJcgZ.js} +3 -3
- package/dist/{PackageVersion-Dj1nIbYu.js → PackageVersion-Cg4_GtJf.js} +1 -1
- package/dist/{PenAndPaper-C6CBX4Sw.js → PenAndPaper-Cz9cyN0p.js} +3 -3
- package/dist/{Shape-BYDrMsk2.js → Shape-BV7FCMRW.js} +1 -1
- package/dist/{Slicer-a2s9l8L1.js → Slicer-B_KcnJc3.js} +2 -2
- package/dist/{SparkTooltip-KMLWgEAl.js → SparkTooltip-BEClvQnh.js} +1 -1
- package/dist/{Title-cYv28OdE.js → Title-BFyRC6GM.js} +1 -1
- package/dist/{Tooltip-pVlR-1jt.js → Tooltip-CAF7J60u.js} +1 -1
- package/dist/{UserOptions-BI-GdWdR.js → UserOptions-D3-mjgYs.js} +2 -2
- package/dist/{dom-to-png-Bzu62hX8.js → dom-to-png-kBhe3ibE.js} +1 -1
- package/dist/{img-Ckro3NYj.js → img-C5BY-RpJ.js} +1 -1
- package/dist/{index-CZvYLNd2.js → index-D6eUCgEP.js} +34 -9
- package/dist/{pdf-D9PBRUEG.js → pdf-Dj4tVKzE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +32 -18
- package/dist/types/vue-data-ui.d.ts +32 -18
- package/dist/useAutoSizeLabelsInsideViewbox-CnajDz5R.js +41 -0
- package/dist/{useNestedProp-UUiB4gNW.js → useNestedProp-BApHoInw.js} +1 -1
- package/dist/{usePrinter-xp6x8667.js → usePrinter-B_35JREm.js} +2 -2
- package/dist/{vue-data-ui-DDKJZmyJ.js → vue-data-ui-DbOmFNxn.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BqSQlty4.js → vue-ui-3d-bar-BWl2wDpv.js} +6 -6
- package/dist/{vue-ui-accordion-CJtprJZE.js → vue-ui-accordion-BZiwwf95.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Coomx370.js → vue-ui-age-pyramid-C9Uwu6sz.js} +6 -6
- package/dist/{vue-ui-annotator-B10lhcjh.js → vue-ui-annotator-D-S2Pa6d.js} +2 -2
- package/dist/{vue-ui-bullet-CNZ_aq4R.js → vue-ui-bullet-CmItGyRx.js} +7 -7
- package/dist/{vue-ui-candlestick-DM4fbKYW.js → vue-ui-candlestick-8-jyu0C7.js} +7 -7
- package/dist/{vue-ui-carousel-table-D1DepNH9.js → vue-ui-carousel-table-bpuq5ZXs.js} +4 -4
- package/dist/{vue-ui-chestnut-DWukJ4lH.js → vue-ui-chestnut-CWdwyp7F.js} +5 -5
- package/dist/{vue-ui-chord-z6UwiTE4.js → vue-ui-chord-BGNBeAMc.js} +8 -8
- package/dist/{vue-ui-circle-pack-CVmc5ACN.js → vue-ui-circle-pack-CWHbNqER.js} +6 -6
- package/dist/{vue-ui-cursor-J8G71ncU.js → vue-ui-cursor-DU-sUJqm.js} +2 -2
- package/dist/{vue-ui-dashboard-Cnc_NX23.js → vue-ui-dashboard-DPnqiFZt.js} +62 -62
- package/dist/{vue-ui-digits-B0Ck4kpp.js → vue-ui-digits-Bk75Ph_N.js} +2 -2
- package/dist/{vue-ui-donut-Dwj53WCt.js → vue-ui-donut-DlJ164Ho.js} +8 -8
- package/dist/{vue-ui-donut-evolution-EWzabDbY.js → vue-ui-donut-evolution-Bn6tNIhD.js} +8 -8
- package/dist/{vue-ui-dumbbell-DxCYAzk0.js → vue-ui-dumbbell-Co0dhIlX.js} +7 -7
- package/dist/{vue-ui-flow-DXKJIrIE.js → vue-ui-flow-C5nPJMht.js} +7 -7
- package/dist/{vue-ui-funnel-Cj84UcRt.js → vue-ui-funnel-oyFttR44.js} +6 -6
- package/dist/{vue-ui-galaxy-BgswPvfl.js → vue-ui-galaxy-DQzS2e8f.js} +5 -5
- package/dist/vue-ui-gauge-DXaspDjM.js +791 -0
- package/dist/{vue-ui-gizmo-9zMdj0XL.js → vue-ui-gizmo-Ce1BJaCv.js} +3 -3
- package/dist/{vue-ui-heatmap-SQy7SlRv.js → vue-ui-heatmap-DyylSc9H.js} +47 -47
- package/dist/{vue-ui-history-plot-BLr3cDMF.js → vue-ui-history-plot-n4RiiZru.js} +7 -7
- package/dist/{vue-ui-kpi-B6ZjLnIp.js → vue-ui-kpi-86f0lpbv.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cea2H0vU.js → vue-ui-mini-loader-Bhf43HYu.js} +2 -2
- package/dist/{vue-ui-molecule-CSFYPlaG.js → vue-ui-molecule-BPiowxmT.js} +17 -17
- package/dist/{vue-ui-mood-radar-CN__8UZK.js → vue-ui-mood-radar-C2XTA7zS.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CB6YMcdq.js → vue-ui-nested-donuts-DLUDg8Gk.js} +9 -9
- package/dist/vue-ui-onion-CsZcgkcy.js +776 -0
- package/dist/{vue-ui-parallel-coordinate-plot-D9bjwDOd.js → vue-ui-parallel-coordinate-plot-lebyjyDa.js} +8 -8
- package/dist/{vue-ui-quadrant-Kwctvtob.js → vue-ui-quadrant-CzBI0nnL.js} +8 -8
- package/dist/{vue-ui-quick-chart-Bn5aNviA.js → vue-ui-quick-chart-Crr9LZ1B.js} +6 -6
- package/dist/{vue-ui-radar-ZBMHkVaV.js → vue-ui-radar-7lxwJ59B.js} +7 -7
- package/dist/{vue-ui-rating-C9kcqLH5.js → vue-ui-rating-DDb0GWHH.js} +2 -2
- package/dist/{vue-ui-relation-circle-uE7VllfK.js → vue-ui-relation-circle-Kxkxkh-1.js} +6 -6
- package/dist/{vue-ui-ridgeline-BpYT8aSl.js → vue-ui-ridgeline-DYOtEei6.js} +8 -8
- package/dist/{vue-ui-rings-DCTW_aDf.js → vue-ui-rings-Cdxl4tbG.js} +8 -8
- package/dist/{vue-ui-scatter-C8U7JJVH.js → vue-ui-scatter-CyncadlL.js} +8 -8
- package/dist/{vue-ui-skeleton-CcuLFdSr.js → vue-ui-skeleton-BsGAx6EO.js} +3 -3
- package/dist/{vue-ui-smiley-BJnu6nQA.js → vue-ui-smiley-BSRMXP0_.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bf0ZxwmM.js → vue-ui-spark-trend-8jFykYcD.js} +3 -3
- package/dist/{vue-ui-sparkbar-CryzO3ek.js → vue-ui-sparkbar-Sn9cp8uT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D8QdTrpS.js → vue-ui-sparkgauge-DLVjSoWV.js} +12 -12
- package/dist/{vue-ui-sparkhistogram-CDW1BBIe.js → vue-ui-sparkhistogram-CMtj3d70.js} +4 -4
- package/dist/{vue-ui-sparkline-CEdAQDrl.js → vue-ui-sparkline-PdA7SxHY.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D9vdEPYT.js → vue-ui-sparkstackbar-BJsTLD0S.js} +3 -3
- package/dist/{vue-ui-stackbar-GZldxkz6.js → vue-ui-stackbar-CAeqsmt2.js} +9 -9
- package/dist/{vue-ui-strip-plot-Zat2zDLv.js → vue-ui-strip-plot-DA8EXkjU.js} +7 -7
- package/dist/{vue-ui-table-BfdG3UsG.js → vue-ui-table-BPKr_mKl.js} +3 -3
- package/dist/{vue-ui-table-heatmap-EStrNR7J.js → vue-ui-table-heatmap-DN2k0MYk.js} +19 -19
- package/dist/{vue-ui-table-sparkline--1EBEEAj.js → vue-ui-table-sparkline-5l6bCUhT.js} +4 -4
- package/dist/{vue-ui-thermometer-D0wus6Kr.js → vue-ui-thermometer-BOD9V8DL.js} +6 -6
- package/dist/{vue-ui-timer-D8lencSe.js → vue-ui-timer-57aaKsPi.js} +5 -5
- package/dist/vue-ui-tiremarks-BU-F4ucd.js +406 -0
- package/dist/{vue-ui-treemap-yuliJD7V.js → vue-ui-treemap-Bn5hZXkA.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Dyfg-IjL.js → vue-ui-vertical-bar-Cnw3jql2.js} +9 -9
- package/dist/{vue-ui-waffle-vpUG24j8.js → vue-ui-waffle-BURt826b.js} +8 -8
- package/dist/{vue-ui-wheel-DiqAjHS6.js → vue-ui-wheel-LgKxBqPV.js} +6 -6
- package/dist/{vue-ui-word-cloud-BI6HLypL.js → vue-ui-word-cloud-C4vbIC9H.js} +6 -6
- package/dist/{vue-ui-world-DojcWljK.js → vue-ui-world-BcHGc5CX.js} +6 -6
- package/dist/{vue-ui-xy-gEEYQHX4.js → vue-ui-xy-DMmZMjpX.js} +9 -9
- package/dist/{vue-ui-xy-canvas-BXYWA5oG.js → vue-ui-xy-canvas-FTVpx_gZ.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-gauge-BuOviUss.js +0 -812
- package/dist/vue-ui-onion-DJRxsxuq.js +0 -703
- package/dist/vue-ui-tiremarks-CFPbV8d_.js +0 -358
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineAsyncComponent as A, computed as f, ref as v, watch as Qe, shallowRef as Ae, onMounted as Ze, onBeforeUnmount as et, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as Y, normalizeClass as R, createBlock as S, createCommentVNode as c, createVNode as Se, createSlots as tt, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as I, createElementVNode as x, Fragment as k, renderList as T, toDisplayString as z, mergeProps as lt, createTextVNode as at, nextTick as ot } from "vue";
|
|
2
|
-
import { u as st, c as le, t as rt, p as O, a as ut, o as it, e as ae, g as ze, b as nt, d as Oe, w as vt, D as ct, f as j, X as ht, i as oe, I as dt, l as pt, h as ft, y as Pe, E as yt, q as bt, r as mt, z as gt } from "./index-
|
|
2
|
+
import { u as st, c as le, t as rt, p as O, a as ut, o as it, e as ae, g as ze, b as nt, d as Oe, w as vt, D as ct, f as j, X as ht, i as oe, I as dt, l as pt, h as ft, y as Pe, E as yt, q as bt, r as mt, z as gt } from "./index-D6eUCgEP.js";
|
|
3
3
|
import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ne } from "./useNestedProp-
|
|
5
|
-
import { u as wt } from "./usePrinter-
|
|
4
|
+
import { u as Ne } from "./useNestedProp-BApHoInw.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-B_35JREm.js";
|
|
6
6
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Tt from "./Title-
|
|
9
|
-
import { _ as _t } from "./Shape-
|
|
10
|
-
import Lt from "./img-
|
|
8
|
+
import Tt from "./Title-BFyRC6GM.js";
|
|
9
|
+
import { _ as _t } from "./Shape-BV7FCMRW.js";
|
|
10
|
+
import Lt from "./img-C5BY-RpJ.js";
|
|
11
11
|
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], Pt = { key: 1 }, Nt = { key: 0 }, Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mt = { key: 1 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x", "y", "fill", "font-size"], Rt = ["x", "y", "font-size", "fill"], Et = ["x", "y", "font-size", "fill", "innerHTML"], Vt = ["fill", "font-size", "transform"], Ht = ["fill", "font-size", "x", "y"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Bt = ["cx", "cy", "fill"], Xt = ["cx", "cy", "fill"], Yt = ["id"], jt = ["stop-color"], qt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 0 }, Qt = ["x", "y", "font-size", "fill"], Zt = {
|
|
13
13
|
key: 5,
|
|
@@ -30,7 +30,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
32
|
setup(Fe, { expose: Me, emit: Ie }) {
|
|
33
|
-
const We = A(() => import("./vue-ui-accordion-
|
|
33
|
+
const We = A(() => import("./vue-ui-accordion-BZiwwf95.js")), De = A(() => import("./DataTable-CVnNcUM4.js")), Ge = A(() => import("./PackageVersion-Cg4_GtJf.js")), Re = A(() => import("./PenAndPaper-Cz9cyN0p.js")), Ee = A(() => import("./vue-ui-skeleton-BsGAx6EO.js")), Ve = A(() => import("./Tooltip-CAF7J60u.js")), He = A(() => import("./UserOptions-D3-mjgYs.js")), { vue_ui_strip_plot: Ue } = st(), b = Fe, Be = Ie, _ = f({
|
|
34
34
|
get() {
|
|
35
35
|
return !!b.dataset && b.dataset.length;
|
|
36
36
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a8 as P, v as z, l as T, r as U, f as V, h as X, q as j, A 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 { a8 as P, v as z, l as T, r as U, f as V, h as X, q as j, A as Y, d as W, F as J, u as K, p as Z } from "./index-D6eUCgEP.js";
|
|
2
|
+
import q from "./vue-ui-xy-DMmZMjpX.js";
|
|
3
|
+
import Q from "./vue-ui-donut-DlJ164Ho.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,14 +1,14 @@
|
|
|
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, a9 as me, F as fe,
|
|
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, a9 as me, F as fe, P as he, q as ge, r as be } from "./index-D6eUCgEP.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-BApHoInw.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-B_35JREm.js";
|
|
5
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { _ as ke } from "./Shape-
|
|
6
|
+
import { _ as ke } from "./Shape-BV7FCMRW.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,
|
|
10
10
|
style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
|
|
11
|
-
},
|
|
11
|
+
}, Pe = ["height", "width"], xe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
role: "cell",
|
|
14
14
|
"data-cell": "sum"
|
|
@@ -45,15 +45,15 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
45
45
|
"8f8e7142": ee.value,
|
|
46
46
|
cb3b028c: j.value
|
|
47
47
|
}));
|
|
48
|
-
const X = oe(() => import("./UserOptions-
|
|
48
|
+
const X = oe(() => import("./UserOptions-D3-mjgYs.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
|
});
|
|
52
52
|
const t = c({
|
|
53
|
-
get: () =>
|
|
53
|
+
get: () => x(),
|
|
54
54
|
set: (e) => e
|
|
55
|
-
}), { userOptionsVisible: $, setUserOptionsVisibility: F, keepUserOptionState:
|
|
56
|
-
function
|
|
55
|
+
}), { userOptionsVisible: $, setUserOptionsVisibility: F, keepUserOptionState: P } = Ce({ config: t.value });
|
|
56
|
+
function x() {
|
|
57
57
|
const e = H({
|
|
58
58
|
userConfig: m.config,
|
|
59
59
|
defaultConfig: W
|
|
@@ -66,13 +66,13 @@ 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 =
|
|
69
|
+
t.value = x(), $.value = !t.value.userOptions.showOnChartHover, V();
|
|
70
70
|
}, { deep: !0 });
|
|
71
|
-
const { isPrinting:
|
|
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
|
});
|
|
@@ -83,7 +83,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
83
83
|
});
|
|
84
84
|
const e = new ResizeObserver((o) => {
|
|
85
85
|
o.forEach((a) => {
|
|
86
|
-
d.value = a.contentRect.width <
|
|
86
|
+
d.value = a.contentRect.width < Q.value;
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
y.value && e.observe(y.value);
|
|
@@ -146,13 +146,13 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
146
146
|
onMouseenter: o[0] || (o[0] = () => i(F)(!0)),
|
|
147
147
|
onMouseleave: o[1] || (o[1] = () => i(F)(!1))
|
|
148
148
|
}, [
|
|
149
|
-
t.value.userOptions.show && Y.value && (i(
|
|
149
|
+
t.value.userOptions.show && Y.value && (i(P) || i($)) ? (n(), le(i(X), {
|
|
150
150
|
ref: "details",
|
|
151
151
|
key: `user_option_${O.value}`,
|
|
152
152
|
backgroundColor: t.value.style.backgroundColor,
|
|
153
153
|
color: t.value.style.color,
|
|
154
|
-
isPrinting: i(
|
|
155
|
-
isImaging: i(
|
|
154
|
+
isPrinting: i(J),
|
|
155
|
+
isImaging: i(K),
|
|
156
156
|
uid: _.value,
|
|
157
157
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
158
158
|
hasXls: t.value.userOptions.buttons.csv,
|
|
@@ -169,7 +169,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
169
169
|
onGenerateCsv: U,
|
|
170
170
|
onGenerateImage: i(S),
|
|
171
171
|
style: C({
|
|
172
|
-
visibility: i(
|
|
172
|
+
visibility: i(P) ? i($) ? "visible" : "hidden" : "visible"
|
|
173
173
|
})
|
|
174
174
|
}, re({ _: 2 }, [
|
|
175
175
|
e.$slots.menuIcon ? {
|
|
@@ -245,7 +245,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
245
245
|
radius: 9,
|
|
246
246
|
shape: a.shape || "circle"
|
|
247
247
|
}, null, 8, ["color", "shape"])
|
|
248
|
-
], 8,
|
|
248
|
+
], 8, Pe)) : v("", !0),
|
|
249
249
|
u(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value }), void 0, !0)
|
|
250
250
|
])) : (n(), r(k, { key: 1 }, [
|
|
251
251
|
p === 0 ? u(e.$slots, "rowTitle", f({
|
|
@@ -258,7 +258,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
258
258
|
}, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value, color: a.colors[p], textColor: i(fe)(a.colors[p]) }), void 0, !0) : v("", !0)
|
|
259
259
|
], 64))
|
|
260
260
|
], 8, Oe))), 256)),
|
|
261
|
-
t.value.table.showSum ? (n(), r("td",
|
|
261
|
+
t.value.table.showSum ? (n(), r("td", xe, [
|
|
262
262
|
u(e.$slots, "sum", f({ ref_for: !0 }, { value: a.sum, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
263
263
|
])) : v("", !0),
|
|
264
264
|
t.value.table.showAverage ? (n(), r("td", Ne, [
|
|
@@ -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, a9 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-BApHoInw.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, a9 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-D6eUCgEP.js";
|
|
4
|
+
import { u as je } from "./usePrinter-B_35JREm.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";
|
|
@@ -43,7 +43,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
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-PdA7SxHY.js")), N = J(() => import("./BaseIcon-B4lxhw9o.js")), xe = J(() => import("./UserOptions-D3-mjgYs.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
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
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, w as g, d as T, X as qe, s as Le, i as Ee, f as Ge } from "./index-
|
|
3
|
-
import { u as re } from "./useNestedProp-
|
|
4
|
-
import { u as We } from "./usePrinter-
|
|
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, w as g, d as T, X as qe, s as Le, i as Ee, f as Ge } from "./index-D6eUCgEP.js";
|
|
3
|
+
import { u as re } from "./useNestedProp-BApHoInw.js";
|
|
4
|
+
import { u as We } from "./usePrinter-B_35JREm.js";
|
|
5
5
|
import { u as Be } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Re } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import je from "./Title-
|
|
8
|
-
import ze from "./img-
|
|
7
|
+
import je from "./Title-BFyRC6GM.js";
|
|
8
|
+
import ze from "./img-C5BY-RpJ.js";
|
|
9
9
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const He = ["id"], Xe = {
|
|
11
11
|
key: 1,
|
|
@@ -47,7 +47,7 @@ const He = ["id"], Xe = {
|
|
|
47
47
|
"4d37cb61": pe.value,
|
|
48
48
|
"295a76e4": ge.value
|
|
49
49
|
}));
|
|
50
|
-
const ue = A(() => import("./PackageVersion-
|
|
50
|
+
const ue = A(() => import("./PackageVersion-Cg4_GtJf.js")), ie = A(() => import("./PenAndPaper-Cz9cyN0p.js")), ce = A(() => import("./vue-ui-skeleton-BsGAx6EO.js")), he = A(() => import("./UserOptions-D3-mjgYs.js")), { vue_ui_thermometer: de } = Se(), r = P, V = d(() => !!r.dataset && Object.keys(r.dataset).length);
|
|
51
51
|
Pe(() => {
|
|
52
52
|
B();
|
|
53
53
|
});
|
|
@@ -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-BApHoInw.js";
|
|
3
|
+
import { u as ce, c as ve, X as de, E as X } from "./index-D6eUCgEP.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-BFyRC6GM.js";
|
|
7
|
+
import R from "./BaseIcon-B4lxhw9o.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-Cg4_GtJf.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
|
});
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { defineAsyncComponent as G, computed as f, ref as v, toRefs as xe, watch as ie, onMounted as Ae, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as D, normalizeClass as H, createBlock as T, createCommentVNode as y, createSlots as Oe, withCtx as O, renderSlot as p, normalizeProps as N, guardReactiveProps as R, createVNode as Pe, Fragment as ce, renderList as ve, toDisplayString as Ie } from "vue";
|
|
2
|
+
import { u as ze, c as Se, v as Fe, a as Te, w as Ne, o as Re, e as Me, x as he, X as Ee, i as Le, f as Ue } from "./index-D6eUCgEP.js";
|
|
3
|
+
import { t as Be, u as Ge } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as De, B as He } from "./BaseScanner-DIK2NTdp.js";
|
|
5
|
+
import { u as je } from "./usePrinter-B_35JREm.js";
|
|
6
|
+
import { u as de } from "./useNestedProp-BApHoInw.js";
|
|
7
|
+
import { u as Xe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ve } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import qe from "./Title-BFyRC6GM.js";
|
|
10
|
+
import Ye from "./img-C5BY-RpJ.js";
|
|
11
|
+
import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = { key: 1 }, et = ["d", "stroke-width", "stroke"], tt = { key: 2 }, at = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], lt = { key: 3 }, ot = ["x", "y", "height"], st = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], nt = {
|
|
13
|
+
key: 4,
|
|
14
|
+
class: "vue-data-ui-watermark"
|
|
15
|
+
}, rt = {
|
|
16
|
+
__name: "vue-ui-tiremarks",
|
|
17
|
+
props: {
|
|
18
|
+
config: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default() {
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
dataset: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default() {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(fe, { expose: ge }) {
|
|
32
|
+
const ye = G(() => import("./PenAndPaper-Cz9cyN0p.js")), pe = G(() => import("./UserOptions-D3-mjgYs.js")), me = G(() => import("./PackageVersion-Cg4_GtJf.js")), { vue_ui_tiremarks: ke } = ze(), w = fe, be = f(() => !!w.dataset && Object.keys(w.dataset).length), M = v(Se()), C = v(null), we = v(null), j = v(null), X = v(null), V = v(0), q = v(0), $ = v(null), P = v(null), e = v(U()), { loading: Y, FINAL_DATASET: E } = De({
|
|
33
|
+
...xe(w),
|
|
34
|
+
FINAL_CONFIG: e,
|
|
35
|
+
prepareConfig: U,
|
|
36
|
+
skeletonDataset: { percentage: 50 },
|
|
37
|
+
skeletonConfig: Fe({
|
|
38
|
+
defaultConfig: e.value,
|
|
39
|
+
userConfig: {
|
|
40
|
+
userOptions: { show: !1 },
|
|
41
|
+
style: {
|
|
42
|
+
chart: {
|
|
43
|
+
backgroundColor: "#99999930",
|
|
44
|
+
animation: { use: !1 },
|
|
45
|
+
layout: {
|
|
46
|
+
activeColor: "#6A6A6A80",
|
|
47
|
+
inactiveColor: "#CACACA80",
|
|
48
|
+
ticks: {
|
|
49
|
+
gradient: { show: !1 }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
}), { userOptionsVisible: L, setUserOptionsVisibility: W, keepUserOptionState: J } = Xe({ config: e.value }), { svgRef: K } = Ve({ config: e.value.style.chart.title });
|
|
57
|
+
function U() {
|
|
58
|
+
const t = de({
|
|
59
|
+
userConfig: w.config,
|
|
60
|
+
defaultConfig: ke
|
|
61
|
+
});
|
|
62
|
+
return t.theme ? {
|
|
63
|
+
...de({
|
|
64
|
+
userConfig: Te.vue_ui_tiremarks[t.theme] || w.config,
|
|
65
|
+
defaultConfig: t
|
|
66
|
+
})
|
|
67
|
+
} : t;
|
|
68
|
+
}
|
|
69
|
+
ie(() => w.config, (t) => {
|
|
70
|
+
e.value = U(), L.value = !e.value.userOptions.showOnChartHover, le(), q.value += 1;
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
const { isPrinting: Q, isImaging: Z, generatePdf: ee, generateImage: te } = je({
|
|
73
|
+
elementId: M.value,
|
|
74
|
+
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
75
|
+
options: e.value.userOptions.print
|
|
76
|
+
}), Ce = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), i = v(e.value.style.chart.animation.use ? 0 : Ne(E.value.percentage));
|
|
77
|
+
ie(() => E.value, (t) => {
|
|
78
|
+
e.value.style.chart.animation.use ? ae(t.percentage) : i.value = t.percentage || 0;
|
|
79
|
+
}, { deep: !0 }), Ae(() => {
|
|
80
|
+
le();
|
|
81
|
+
});
|
|
82
|
+
function ae(t) {
|
|
83
|
+
let l = e.value.style.chart.animation.speed;
|
|
84
|
+
const a = Math.abs(t - i.value) / (l * 120);
|
|
85
|
+
function s() {
|
|
86
|
+
i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(s);
|
|
87
|
+
}
|
|
88
|
+
s();
|
|
89
|
+
}
|
|
90
|
+
const _e = f(() => !!e.value.debug);
|
|
91
|
+
function le() {
|
|
92
|
+
if (Re(w.dataset) && Me({
|
|
93
|
+
componentName: "VueUiTiremarks",
|
|
94
|
+
type: "dataset",
|
|
95
|
+
debug: _e.value
|
|
96
|
+
}), e.value.responsive) {
|
|
97
|
+
const t = Be(() => {
|
|
98
|
+
const { width: l, height: a } = Ge({
|
|
99
|
+
chart: C.value,
|
|
100
|
+
title: e.value.style.chart.title.text ? j.value : null,
|
|
101
|
+
source: X.value
|
|
102
|
+
});
|
|
103
|
+
requestAnimationFrame(() => {
|
|
104
|
+
oe.value = Math.max(0.1, l), se.value = Math.max(0.1, a - 12);
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
|
|
108
|
+
}
|
|
109
|
+
ae(E.value.percentage || 0);
|
|
110
|
+
}
|
|
111
|
+
const I = f(() => e.value.style.chart.layout.display === "vertical"), c = f(() => {
|
|
112
|
+
const t = e.value.style.chart.percentage.show, l = {
|
|
113
|
+
top: t ? 48 : 12,
|
|
114
|
+
left: t ? 64 : 16,
|
|
115
|
+
right: t ? 64 : 16,
|
|
116
|
+
bottom: t ? 48 : 12
|
|
117
|
+
};
|
|
118
|
+
return I.value ? {
|
|
119
|
+
top: e.value.style.chart.percentage.verticalPosition === "top" ? l.top : 3,
|
|
120
|
+
left: 3,
|
|
121
|
+
right: 3,
|
|
122
|
+
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? l.bottom : 3
|
|
123
|
+
} : {
|
|
124
|
+
top: 0,
|
|
125
|
+
bottom: 0,
|
|
126
|
+
left: e.value.style.chart.percentage.horizontalPosition === "left" ? l.left : 16,
|
|
127
|
+
right: e.value.style.chart.percentage.horizontalPosition === "right" ? l.right : 10
|
|
128
|
+
};
|
|
129
|
+
}), z = f(() => Object.values(c.value).reduce((t, l) => t + l, 0)), oe = v(e.value.style.chart.width), se = v(e.value.style.chart.height), o = f(() => ({
|
|
130
|
+
height: se.value,
|
|
131
|
+
width: oe.value
|
|
132
|
+
})), ne = f(() => ({
|
|
133
|
+
horizontal: {
|
|
134
|
+
x: g.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
135
|
+
y: o.value.height / 2 - g.value.fontSize / 2
|
|
136
|
+
},
|
|
137
|
+
vertical: {
|
|
138
|
+
x: o.value.width / 2 - 20,
|
|
139
|
+
y: g.value.y - g.value.fontSize / 2
|
|
140
|
+
}
|
|
141
|
+
})[e.value.style.chart.layout.display]), h = f(() => I.value ? {
|
|
142
|
+
mark: (o.value.height - z.value) / 100 * 0.5,
|
|
143
|
+
space: (o.value.height - z.value) / 100 * 0.5
|
|
144
|
+
} : {
|
|
145
|
+
mark: (o.value.width - z.value) / 100 * 0.5,
|
|
146
|
+
space: (o.value.width - z.value) / 100 * 0.5
|
|
147
|
+
}), re = f(() => {
|
|
148
|
+
const t = [];
|
|
149
|
+
for (let a = 0; a < 100; a += 1) {
|
|
150
|
+
const s = e.value.style.chart.layout.ticks.gradient.show ? he(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
151
|
+
if (I.value) {
|
|
152
|
+
const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - c.value.left - c.value.right) / 100 / 3 : 0, d = c.value.left + 4 + _, m = o.value.width - c.value.right - 4 - _, k = o.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, b = o.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, x = (m - d) / e.value.style.chart.layout.curveAngleX, A = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
153
|
+
t.push({
|
|
154
|
+
x1: d,
|
|
155
|
+
x2: m,
|
|
156
|
+
y1: k,
|
|
157
|
+
y2: b,
|
|
158
|
+
curve: `M ${d} ${k} C ${d + x} ${k - A}, ${m - x} ${b - A}, ${m} ${b}`,
|
|
159
|
+
color: s
|
|
160
|
+
});
|
|
161
|
+
} else {
|
|
162
|
+
const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - c.value.top - c.value.bottom) / 100 / 3 : 0, d = c.value.left + a * h.value.mark + a * h.value.space - h.value.mark, m = d, k = c.value.top + 4 + _, b = o.value.height - c.value.bottom - 4 - _, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), A = (b - k) / e.value.style.chart.layout.curveAngleX;
|
|
163
|
+
t.push({
|
|
164
|
+
x1: d,
|
|
165
|
+
x2: m,
|
|
166
|
+
y1: k,
|
|
167
|
+
y2: b,
|
|
168
|
+
curve: `M ${d} ${k} C ${d + x} ${k + A}, ${m + x} ${b - A}, ${m} ${b}`,
|
|
169
|
+
color: s
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return t;
|
|
174
|
+
}), g = f(() => {
|
|
175
|
+
let t, l, a;
|
|
176
|
+
const s = e.value.style.chart.percentage.fontSize / 3;
|
|
177
|
+
return I.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, l = c.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, l = o.value.height - c.value.bottom / 2 + s, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, l = o.value.height / 2 + s, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - c.value.right + 8, l = o.value.height / 2 + s, a = "start"), {
|
|
178
|
+
x: t,
|
|
179
|
+
y: l,
|
|
180
|
+
textAnchor: a,
|
|
181
|
+
bold: e.value.style.chart.percentage.bold,
|
|
182
|
+
fontSize: e.value.style.chart.percentage.fontSize,
|
|
183
|
+
fill: e.value.style.chart.percentage.color
|
|
184
|
+
};
|
|
185
|
+
}), S = v(!1);
|
|
186
|
+
function ue(t) {
|
|
187
|
+
S.value = t, V.value += 1;
|
|
188
|
+
}
|
|
189
|
+
const F = v(!1);
|
|
190
|
+
function B() {
|
|
191
|
+
F.value = !F.value;
|
|
192
|
+
}
|
|
193
|
+
async function $e({ scale: t = 2 } = {}) {
|
|
194
|
+
if (!C.value) return;
|
|
195
|
+
const { width: l, height: a } = C.value.getBoundingClientRect(), s = l / a, { imageUri: _, base64: d } = await Ye({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
196
|
+
return {
|
|
197
|
+
imageUri: _,
|
|
198
|
+
base64: d,
|
|
199
|
+
title: e.value.style.chart.title.text,
|
|
200
|
+
width: l,
|
|
201
|
+
height: a,
|
|
202
|
+
aspectRatio: s
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
return ge({
|
|
206
|
+
getImage: $e,
|
|
207
|
+
generatePdf: ee,
|
|
208
|
+
generateImage: te,
|
|
209
|
+
toggleAnnotator: B,
|
|
210
|
+
toggleFullscreen: ue
|
|
211
|
+
}), (t, l) => (r(), u("div", {
|
|
212
|
+
ref_key: "tiremarksChart",
|
|
213
|
+
ref: C,
|
|
214
|
+
class: H(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
215
|
+
style: D(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
216
|
+
id: M.value,
|
|
217
|
+
onMouseenter: l[0] || (l[0] = () => n(W)(!0)),
|
|
218
|
+
onMouseleave: l[1] || (l[1] = () => n(W)(!1))
|
|
219
|
+
}, [
|
|
220
|
+
e.value.userOptions.buttons.annotator ? (r(), T(n(ye), {
|
|
221
|
+
key: 0,
|
|
222
|
+
svgRef: n(K),
|
|
223
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
224
|
+
color: e.value.style.chart.color,
|
|
225
|
+
active: F.value,
|
|
226
|
+
onClose: B
|
|
227
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
228
|
+
Ce.value ? (r(), u("div", {
|
|
229
|
+
key: 1,
|
|
230
|
+
ref_key: "noTitle",
|
|
231
|
+
ref: we,
|
|
232
|
+
class: "vue-data-ui-no-title-space",
|
|
233
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
234
|
+
}, null, 512)) : y("", !0),
|
|
235
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
236
|
+
key: 2,
|
|
237
|
+
ref_key: "chartTitle",
|
|
238
|
+
ref: j,
|
|
239
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
240
|
+
}, [
|
|
241
|
+
(r(), T(qe, {
|
|
242
|
+
key: `title_${q.value}`,
|
|
243
|
+
config: {
|
|
244
|
+
title: {
|
|
245
|
+
cy: "wheel-title",
|
|
246
|
+
...e.value.style.chart.title
|
|
247
|
+
},
|
|
248
|
+
subtitle: {
|
|
249
|
+
cy: "wheel-subtitle",
|
|
250
|
+
...e.value.style.chart.title.subtitle
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}, null, 8, ["config"]))
|
|
254
|
+
], 512)) : y("", !0),
|
|
255
|
+
e.value.userOptions.show && be.value && (n(J) || n(L)) ? (r(), T(n(pe), {
|
|
256
|
+
ref: "details",
|
|
257
|
+
key: `user_options_${V.value}`,
|
|
258
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
259
|
+
color: e.value.style.chart.color,
|
|
260
|
+
isPrinting: n(Q),
|
|
261
|
+
isImaging: n(Z),
|
|
262
|
+
uid: M.value,
|
|
263
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
264
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
265
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
266
|
+
hasXls: !1,
|
|
267
|
+
isFullscreen: S.value,
|
|
268
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
269
|
+
chartElement: C.value,
|
|
270
|
+
position: e.value.userOptions.position,
|
|
271
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
272
|
+
isAnnotation: F.value,
|
|
273
|
+
callbacks: e.value.userOptions.callbacks,
|
|
274
|
+
printScale: e.value.userOptions.print.scale,
|
|
275
|
+
onToggleFullscreen: ue,
|
|
276
|
+
onGeneratePdf: n(ee),
|
|
277
|
+
onGenerateImage: n(te),
|
|
278
|
+
onToggleAnnotator: B,
|
|
279
|
+
style: D({
|
|
280
|
+
visibility: n(J) ? n(L) ? "visible" : "hidden" : "visible"
|
|
281
|
+
})
|
|
282
|
+
}, Oe({ _: 2 }, [
|
|
283
|
+
t.$slots.menuIcon ? {
|
|
284
|
+
name: "menuIcon",
|
|
285
|
+
fn: O(({ isOpen: a, color: s }) => [
|
|
286
|
+
p(t.$slots, "menuIcon", N(R({ isOpen: a, color: s })), void 0, !0)
|
|
287
|
+
]),
|
|
288
|
+
key: "0"
|
|
289
|
+
} : void 0,
|
|
290
|
+
t.$slots.optionPdf ? {
|
|
291
|
+
name: "optionPdf",
|
|
292
|
+
fn: O(() => [
|
|
293
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
294
|
+
]),
|
|
295
|
+
key: "1"
|
|
296
|
+
} : void 0,
|
|
297
|
+
t.$slots.optionImg ? {
|
|
298
|
+
name: "optionImg",
|
|
299
|
+
fn: O(() => [
|
|
300
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
301
|
+
]),
|
|
302
|
+
key: "2"
|
|
303
|
+
} : void 0,
|
|
304
|
+
t.$slots.optionFullscreen ? {
|
|
305
|
+
name: "optionFullscreen",
|
|
306
|
+
fn: O(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
307
|
+
p(t.$slots, "optionFullscreen", N(R({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
308
|
+
]),
|
|
309
|
+
key: "3"
|
|
310
|
+
} : void 0,
|
|
311
|
+
t.$slots.optionAnnotator ? {
|
|
312
|
+
name: "optionAnnotator",
|
|
313
|
+
fn: O(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
314
|
+
p(t.$slots, "optionAnnotator", N(R({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
315
|
+
]),
|
|
316
|
+
key: "4"
|
|
317
|
+
} : void 0
|
|
318
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
319
|
+
(r(), u("svg", {
|
|
320
|
+
ref_key: "svgRef",
|
|
321
|
+
ref: K,
|
|
322
|
+
xmlns: n(Ee),
|
|
323
|
+
class: H({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
324
|
+
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
325
|
+
style: D(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
326
|
+
}, [
|
|
327
|
+
Pe(n(me)),
|
|
328
|
+
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
329
|
+
key: 0,
|
|
330
|
+
x: 0,
|
|
331
|
+
y: 0,
|
|
332
|
+
width: o.value.width,
|
|
333
|
+
height: o.value.height,
|
|
334
|
+
style: {
|
|
335
|
+
pointerEvents: "none"
|
|
336
|
+
}
|
|
337
|
+
}, [
|
|
338
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
339
|
+
], 8, Qe)) : y("", !0),
|
|
340
|
+
e.value.style.chart.layout.curved ? (r(), u("g", Ze, [
|
|
341
|
+
(r(!0), u(ce, null, ve(re.value, (a, s) => (r(), u("path", {
|
|
342
|
+
d: a.curve,
|
|
343
|
+
"stroke-width": h.value.mark,
|
|
344
|
+
stroke: i.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
345
|
+
"stroke-linecap": "round",
|
|
346
|
+
fill: "none",
|
|
347
|
+
class: H({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= i.value })
|
|
348
|
+
}, null, 10, et))), 256))
|
|
349
|
+
])) : (r(), u("g", tt, [
|
|
350
|
+
(r(!0), u(ce, null, ve(re.value, (a, s) => (r(), u("line", {
|
|
351
|
+
x1: a.x1,
|
|
352
|
+
y1: a.y1,
|
|
353
|
+
x2: a.x2,
|
|
354
|
+
y2: a.y2,
|
|
355
|
+
"stroke-width": h.value.mark,
|
|
356
|
+
stroke: i.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
357
|
+
"stroke-linecap": "round"
|
|
358
|
+
}, null, 8, at))), 256))
|
|
359
|
+
])),
|
|
360
|
+
e.value.style.chart.percentage.show ? (r(), u("g", lt, [
|
|
361
|
+
n(Y) ? (r(), u("rect", {
|
|
362
|
+
key: 0,
|
|
363
|
+
x: ne.value.x,
|
|
364
|
+
y: ne.value.y,
|
|
365
|
+
width: 40,
|
|
366
|
+
height: g.value.fontSize,
|
|
367
|
+
fill: "#6A6A6A80",
|
|
368
|
+
rx: 3
|
|
369
|
+
}, null, 8, ot)) : (r(), u("text", {
|
|
370
|
+
key: 1,
|
|
371
|
+
x: g.value.x,
|
|
372
|
+
y: g.value.y,
|
|
373
|
+
"font-size": g.value.fontSize,
|
|
374
|
+
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(he)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
375
|
+
"font-weight": g.value.bold ? "bold" : "normal",
|
|
376
|
+
"text-anchor": g.value.textAnchor
|
|
377
|
+
}, Ie(n(Le)(
|
|
378
|
+
e.value.style.chart.percentage.formatter,
|
|
379
|
+
i.value,
|
|
380
|
+
n(Ue)({
|
|
381
|
+
v: i.value,
|
|
382
|
+
s: "%",
|
|
383
|
+
r: e.value.style.chart.percentage.rounding
|
|
384
|
+
})
|
|
385
|
+
)), 9, st))
|
|
386
|
+
])) : y("", !0),
|
|
387
|
+
p(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
388
|
+
], 14, Ke)),
|
|
389
|
+
t.$slots.watermark ? (r(), u("div", nt, [
|
|
390
|
+
p(t.$slots, "watermark", N(R({ isPrinting: n(Q) || n(Z) })), void 0, !0)
|
|
391
|
+
])) : y("", !0),
|
|
392
|
+
t.$slots.source ? (r(), u("div", {
|
|
393
|
+
key: 5,
|
|
394
|
+
ref_key: "source",
|
|
395
|
+
ref: X,
|
|
396
|
+
dir: "auto"
|
|
397
|
+
}, [
|
|
398
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
399
|
+
], 512)) : y("", !0),
|
|
400
|
+
n(Y) ? (r(), T(He, { key: 6 })) : y("", !0)
|
|
401
|
+
], 46, Je));
|
|
402
|
+
}
|
|
403
|
+
}, kt = /* @__PURE__ */ We(rt, [["__scopeId", "data-v-d043cc94"]]);
|
|
404
|
+
export {
|
|
405
|
+
kt as default
|
|
406
|
+
};
|