vue-data-ui 3.2.8 → 3.3.1
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-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as Ge } from "./usePrinter-w23K-ezx.js";
|
|
5
|
-
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as qe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import { t as Xe } from "./themes-Dw-dDudK.js";
|
|
8
|
-
import Ye from "./Legend-BpoFJ8fc.js";
|
|
9
|
-
import Je from "./Title-DG2nloSB.js";
|
|
10
|
-
import Ke from "./img-DjWwQXVS.js";
|
|
1
|
+
import { defineAsyncComponent as G, ref as v, computed as c, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as V, normalizeClass as he, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Ue, withCtx as C, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
|
|
2
|
+
import { u as Ge, a as de } from "./useNestedProp-Ce3PwN8T.js";
|
|
3
|
+
import { c as Ve, t as je, m as qe, C as Xe, h as Ye, a as M, d as R, X as Je, o as ge, f as fe, g as Ke } from "./lib-CEjkWSLj.js";
|
|
11
4
|
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
12
|
-
import { u as et
|
|
13
|
-
import {
|
|
14
|
-
|
|
5
|
+
import { u as et } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
+
import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as at } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { t as lt } from "./themes-Dw-dDudK.js";
|
|
9
|
+
import st from "./Legend-By4rru90.js";
|
|
10
|
+
import ot from "./Title-Camz1Lce.js";
|
|
11
|
+
import rt from "./img-J2dLIr8Y.js";
|
|
12
|
+
import { u as nt, B as ut } from "./BaseScanner-BgWxam9d.js";
|
|
13
|
+
import { u as it } from "./useSvgExport-DrjCWun4.js";
|
|
14
|
+
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ct = ["id"], ht = {
|
|
15
16
|
key: 1,
|
|
16
17
|
ref: "noTitle",
|
|
17
18
|
class: "vue-data-ui-no-title-space",
|
|
18
19
|
style: "height:36px; width: 100%;background:transparent"
|
|
19
|
-
},
|
|
20
|
+
}, dt = ["id"], gt = ["xmlns", "viewBox"], ft = ["width", "height"], mt = { key: 1 }, yt = ["x", "y", "height", "width", "fill", "stroke"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], kt = ["x", "y", "font-size", "font-weight", "fill"], wt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], xt = { key: 3 }, _t = ["x", "y", "fill", "font-size", "font-weight"], Ct = { key: 4 }, At = ["x1", "x2", "y1", "y2", "stroke"], Lt = {
|
|
20
21
|
key: 4,
|
|
21
22
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
23
|
+
}, $t = ["id"], Ot = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "vue-ui-bullet-legend-item",
|
|
25
26
|
dir: "auto"
|
|
26
|
-
},
|
|
27
|
+
}, St = { style: { "margin-right": "2px" } }, Bt = {
|
|
27
28
|
__name: "vue-ui-bullet",
|
|
28
29
|
props: {
|
|
29
30
|
config: {
|
|
@@ -39,11 +40,11 @@ const lt = ["id"], st = {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
43
|
+
setup(me, { expose: ye }) {
|
|
44
|
+
const pe = G(() => import("./PackageVersion-BfykJm_B.js")), be = G(() => import("./PenAndPaper-Bo-lMUik.js")), ke = G(() => import("./UserOptions-CSja1SGU.js")), { vue_ui_bullet: we } = Ge(), O = me, y = v(null), X = v(null), Y = v(0), J = v(null), K = v(null), xe = v(0), A = v(null), S = v(null), Q = v(!1), b = c({
|
|
44
45
|
get: () => i.value.hasOwnProperty("value"),
|
|
45
46
|
set: (t) => t
|
|
46
|
-
}), L =
|
|
47
|
+
}), L = c(() => i.value.segments ? Array.isArray(i.value.segments) ? i.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
47
48
|
|
|
48
49
|
segments: [
|
|
49
50
|
{
|
|
@@ -76,59 +77,59 @@ segments: [
|
|
|
76
77
|
},
|
|
77
78
|
{...}
|
|
78
79
|
]
|
|
79
|
-
`), b.value = !1, !1)),
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
80
|
+
`), b.value = !1, !1)), Z = c(() => !!e.value.debug);
|
|
81
|
+
function ee() {
|
|
82
|
+
if (ge(i.value) ? (fe({
|
|
82
83
|
componentName: "VueUiBullet",
|
|
83
84
|
type: "dataset",
|
|
84
|
-
debug:
|
|
85
|
-
}),
|
|
86
|
-
|
|
85
|
+
debug: Z.value
|
|
86
|
+
}), B.value = !0) : L.value ? i.value.segments.forEach((t, s) => {
|
|
87
|
+
Ke({
|
|
87
88
|
datasetObject: t,
|
|
88
89
|
requiredAttributes: ["name", "from", "to"]
|
|
89
90
|
}).forEach((a) => {
|
|
90
|
-
b.value = !1,
|
|
91
|
+
b.value = !1, fe({
|
|
91
92
|
componentName: "VueUiBullet segment",
|
|
92
93
|
type: "datasetSerieAttribute",
|
|
93
94
|
property: a,
|
|
94
95
|
index: s,
|
|
95
|
-
debug:
|
|
96
|
+
debug: Z.value
|
|
96
97
|
});
|
|
97
98
|
});
|
|
98
|
-
}) : (b.value = !1,
|
|
99
|
+
}) : (b.value = !1, B.value = !0), ge(i.value) || (B.value = e.value.loading), e.value.responsive) {
|
|
99
100
|
const t = Qe(() => {
|
|
100
101
|
const { width: s, height: a } = Ze({
|
|
101
102
|
chart: y.value,
|
|
102
|
-
title: e.value.style.chart.title.text ?
|
|
103
|
-
legend: e.value.style.chart.legend.show ?
|
|
104
|
-
source:
|
|
103
|
+
title: e.value.style.chart.title.text ? X.value : null,
|
|
104
|
+
legend: e.value.style.chart.legend.show ? J.value : null,
|
|
105
|
+
source: K.value
|
|
105
106
|
});
|
|
106
107
|
requestAnimationFrame(() => {
|
|
107
108
|
I.value.width = s, I.value.height = a - 12;
|
|
108
109
|
});
|
|
109
110
|
});
|
|
110
|
-
|
|
111
|
+
A.value && (S.value && A.value.unobserve(S.value), A.value.disconnect()), A.value = new ResizeObserver(t), S.value = y.value.parentNode, A.value.observe(S.value);
|
|
111
112
|
}
|
|
112
|
-
e.value.style.chart.animation.show && !k.value &&
|
|
113
|
+
e.value.style.chart.animation.show && !k.value && se(i.value.value || 0);
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
ze(() => {
|
|
116
|
+
Q.value = !0, ee();
|
|
116
117
|
});
|
|
117
|
-
const p =
|
|
118
|
+
const p = v(Ve());
|
|
118
119
|
function z() {
|
|
119
|
-
const t =
|
|
120
|
+
const t = de({
|
|
120
121
|
userConfig: O.config,
|
|
121
|
-
defaultConfig:
|
|
122
|
+
defaultConfig: we
|
|
122
123
|
});
|
|
123
124
|
return t.theme ? {
|
|
124
|
-
...
|
|
125
|
-
userConfig:
|
|
125
|
+
...de({
|
|
126
|
+
userConfig: lt.vue_ui_bullet[t.theme] || O.config,
|
|
126
127
|
defaultConfig: t
|
|
127
128
|
})
|
|
128
129
|
} : t;
|
|
129
130
|
}
|
|
130
|
-
const e =
|
|
131
|
-
...
|
|
131
|
+
const e = v(z()), { loading: k, FINAL_DATASET: i, manualLoading: B } = nt({
|
|
132
|
+
...Ne(O),
|
|
132
133
|
FINAL_CONFIG: e,
|
|
133
134
|
prepareConfig: z,
|
|
134
135
|
skeletonDataset: {
|
|
@@ -155,7 +156,7 @@ segments: [
|
|
|
155
156
|
}
|
|
156
157
|
]
|
|
157
158
|
},
|
|
158
|
-
skeletonConfig:
|
|
159
|
+
skeletonConfig: je({
|
|
159
160
|
defaultConfig: e.value,
|
|
160
161
|
userConfig: {
|
|
161
162
|
userOptions: { show: !1 },
|
|
@@ -175,79 +176,79 @@ segments: [
|
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
})
|
|
178
|
-
}), { userOptionsVisible: N, setUserOptionsVisibility:
|
|
179
|
+
}), { userOptionsVisible: N, setUserOptionsVisibility: te, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: E } = at({ config: e.value.style.chart.title });
|
|
179
180
|
ce(() => O.config, (t) => {
|
|
180
|
-
k.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover,
|
|
181
|
+
k.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, ee(), Y.value += 1;
|
|
181
182
|
}, { deep: !0 });
|
|
182
|
-
const I =
|
|
183
|
+
const I = v({
|
|
183
184
|
width: e.value.style.chart.width,
|
|
184
185
|
height: e.value.style.chart.height
|
|
185
|
-
}),
|
|
186
|
-
const t =
|
|
186
|
+
}), _e = c(() => I.value.width), Ce = c(() => I.value.height), l = c(() => {
|
|
187
|
+
const t = Ce.value, s = _e.value, a = e.value.style.chart.padding.left, h = s - e.value.style.chart.padding.right, w = e.value.style.chart.padding.top, d = t - e.value.style.chart.padding.bottom;
|
|
187
188
|
return {
|
|
188
189
|
height: Math.max(1e-3, t),
|
|
189
190
|
width: Math.max(1e-3, s),
|
|
190
191
|
left: a,
|
|
191
|
-
right:
|
|
192
|
+
right: h,
|
|
192
193
|
top: w,
|
|
193
|
-
bottom:
|
|
194
|
-
chartWidth: Math.max(1e-3,
|
|
195
|
-
chartHeight: Math.max(1e-3,
|
|
194
|
+
bottom: d,
|
|
195
|
+
chartWidth: Math.max(1e-3, h - a),
|
|
196
|
+
chartHeight: Math.max(1e-3, d - w)
|
|
196
197
|
};
|
|
197
|
-
}), Ae =
|
|
198
|
+
}), Ae = c(() => {
|
|
198
199
|
if (!L.value) return [];
|
|
199
200
|
const t = [];
|
|
200
201
|
for (let s = 0; s < i.value.segments.length; s += 1)
|
|
201
|
-
t.push(
|
|
202
|
+
t.push(qe(e.value.style.chart.segments.baseColor, s / i.value.segments.length));
|
|
202
203
|
return t;
|
|
203
|
-
}), U =
|
|
204
|
+
}), U = c(() => L.value ? {
|
|
204
205
|
min: Math.min(...i.value.segments.map((t) => t.from)),
|
|
205
206
|
max: Math.max(...i.value.segments.map((t) => t.to))
|
|
206
|
-
} : { min: 0, max: 1 }),
|
|
207
|
+
} : { min: 0, max: 1 }), g = v(Le());
|
|
207
208
|
ce(() => i.value, (t) => {
|
|
208
|
-
t.hasOwnProperty("value") && (
|
|
209
|
+
t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !k.value ? se(t.value || 0) : g.value = t.value || 0;
|
|
209
210
|
}, { deep: !0 });
|
|
210
|
-
function
|
|
211
|
+
function Le() {
|
|
211
212
|
return e.value.style.chart.animation.show && !k.value ? U.value.min : i.value.value || 0;
|
|
212
213
|
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
215
|
-
const s = Math.abs(t -
|
|
214
|
+
const le = v(null);
|
|
215
|
+
function se(t) {
|
|
216
|
+
const s = Math.abs(t - g.value) / e.value.style.chart.animation.animationFrames;
|
|
216
217
|
function a() {
|
|
217
|
-
|
|
218
|
+
g.value < t ? g.value = Math.min(g.value + s, t) : g.value > t && (g.value = Math.max(g.value - s, t)), g.value !== t && (le.value = requestAnimationFrame(a));
|
|
218
219
|
}
|
|
219
220
|
a();
|
|
220
221
|
}
|
|
221
|
-
|
|
222
|
-
cancelAnimationFrame(
|
|
222
|
+
Ee(() => {
|
|
223
|
+
cancelAnimationFrame(le.value);
|
|
223
224
|
});
|
|
224
|
-
const
|
|
225
|
+
const f = c(() => {
|
|
225
226
|
if (!L.value)
|
|
226
227
|
return [];
|
|
227
|
-
const t =
|
|
228
|
+
const t = Xe(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
228
229
|
x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
229
|
-
},
|
|
230
|
-
width: (
|
|
231
|
-
}, w = t.ticks.map((
|
|
232
|
-
value:
|
|
230
|
+
}, h = {
|
|
231
|
+
width: (g.value + s) / (t.max + s) * l.value.chartWidth
|
|
232
|
+
}, w = t.ticks.map((d) => ({
|
|
233
|
+
value: d,
|
|
233
234
|
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
234
|
-
x: l.value.left + (
|
|
235
|
+
x: l.value.left + (d + s) / (t.max + s) * l.value.chartWidth
|
|
235
236
|
}));
|
|
236
237
|
return {
|
|
237
238
|
scale: t,
|
|
238
239
|
target: a,
|
|
239
|
-
value:
|
|
240
|
+
value: h,
|
|
240
241
|
ticks: w,
|
|
241
|
-
chunks: i.value.segments.map((
|
|
242
|
-
...
|
|
243
|
-
color:
|
|
244
|
-
x: l.value.left + l.value.chartWidth * ((
|
|
242
|
+
chunks: i.value.segments.map((d, Re) => ({
|
|
243
|
+
...d,
|
|
244
|
+
color: d.color ? Ye(d.color) : Ae.value[Re],
|
|
245
|
+
x: l.value.left + l.value.chartWidth * ((d.from + s) / (t.max + s)),
|
|
245
246
|
y: l.value.top,
|
|
246
247
|
height: l.value.chartHeight,
|
|
247
|
-
width: l.value.chartWidth * (Math.abs(
|
|
248
|
+
width: l.value.chartWidth * (Math.abs(d.to - d.from) / (t.max + s))
|
|
248
249
|
}))
|
|
249
250
|
};
|
|
250
|
-
}),
|
|
251
|
+
}), W = c(() => !f.value || !f.value.chunks || !f.value.chunks.length ? [] : f.value.chunks.map((t) => {
|
|
251
252
|
const s = M(
|
|
252
253
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
253
254
|
t.from,
|
|
@@ -266,80 +267,95 @@ segments: [
|
|
|
266
267
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
267
268
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
268
269
|
})
|
|
269
|
-
)
|
|
270
|
+
), h = `${s} — ${a}`;
|
|
270
271
|
return {
|
|
271
272
|
...t,
|
|
272
273
|
shape: "square",
|
|
273
|
-
value:
|
|
274
|
+
value: h,
|
|
275
|
+
display: `${t.name}: ${h}`
|
|
274
276
|
};
|
|
275
|
-
})),
|
|
277
|
+
})), $e = c(() => ({
|
|
276
278
|
cy: "bullet-div-legend",
|
|
277
279
|
backgroundColor: "transparent",
|
|
278
280
|
color: e.value.style.chart.legend.color,
|
|
279
281
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
280
282
|
paddingBottom: 6,
|
|
281
283
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
282
|
-
})), { isPrinting:
|
|
284
|
+
})), { isPrinting: oe, isImaging: re, generatePdf: ne, generateImage: ue } = et({
|
|
283
285
|
elementId: `bullet_${p.value}`,
|
|
284
286
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
285
287
|
options: e.value.userOptions.print
|
|
286
|
-
}),
|
|
288
|
+
}), Oe = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = v(!1);
|
|
287
289
|
function ie(t) {
|
|
288
|
-
$.value = t,
|
|
290
|
+
$.value = t, xe.value += 1;
|
|
289
291
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
292
|
+
function Se() {
|
|
293
|
+
return f.value;
|
|
292
294
|
}
|
|
293
|
-
const P =
|
|
294
|
-
function
|
|
295
|
+
const P = v(!1);
|
|
296
|
+
function D() {
|
|
295
297
|
P.value = !P.value;
|
|
296
298
|
}
|
|
297
299
|
async function Be({ scale: t = 2 } = {}) {
|
|
298
300
|
if (!y.value) return;
|
|
299
|
-
const { width: s, height: a } = y.value.getBoundingClientRect(),
|
|
301
|
+
const { width: s, height: a } = y.value.getBoundingClientRect(), h = s / a, { imageUri: w, base64: d } = await rt({ domElement: y.value, base64: !0, img: !0, scale: t });
|
|
300
302
|
return {
|
|
301
303
|
imageUri: w,
|
|
302
|
-
base64:
|
|
304
|
+
base64: d,
|
|
303
305
|
title: e.value.style.chart.title.text,
|
|
304
306
|
width: s,
|
|
305
307
|
height: a,
|
|
306
|
-
aspectRatio:
|
|
308
|
+
aspectRatio: h
|
|
307
309
|
};
|
|
308
310
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
+
const Ie = c(() => W.value.map((t) => ({
|
|
312
|
+
...t,
|
|
313
|
+
name: t.display
|
|
314
|
+
}))), Pe = c(() => e.value.style.chart.backgroundColor), Fe = c(() => e.value.style.chart.legend), Te = c(() => e.value.style.chart.title), { exportSvg: He, getSvg: Me } = it({
|
|
315
|
+
svg: E,
|
|
316
|
+
title: Te,
|
|
317
|
+
legend: Fe,
|
|
318
|
+
legendItems: Ie,
|
|
319
|
+
backgroundColor: Pe
|
|
320
|
+
});
|
|
321
|
+
function ve({ isCb: t }) {
|
|
322
|
+
t ? e.value.userOptions.callbacks.svg(Me()) : He();
|
|
323
|
+
}
|
|
324
|
+
return ye({
|
|
325
|
+
getData: Se,
|
|
311
326
|
getImage: Be,
|
|
312
327
|
generatePdf: ne,
|
|
313
328
|
generateImage: ue,
|
|
314
|
-
|
|
329
|
+
generateSvg: ve,
|
|
330
|
+
toggleAnnotator: D,
|
|
315
331
|
toggleFullscreen: ie
|
|
316
|
-
}), (t, s) => (
|
|
332
|
+
}), (t, s) => (o(), n("div", {
|
|
317
333
|
ref_key: "bulletChart",
|
|
318
334
|
ref: y,
|
|
319
|
-
class:
|
|
320
|
-
style:
|
|
335
|
+
class: he(`vue-data-ui-component vue-ui-bullet ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
336
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
321
337
|
id: `bullet_${p.value}`,
|
|
322
|
-
onMouseenter: s[0] || (s[0] = () =>
|
|
323
|
-
onMouseleave: s[1] || (s[1] = () =>
|
|
338
|
+
onMouseenter: s[0] || (s[0] = () => r(te)(!0)),
|
|
339
|
+
onMouseleave: s[1] || (s[1] = () => r(te)(!1))
|
|
324
340
|
}, [
|
|
325
|
-
e.value.userOptions.buttons.annotator ? (
|
|
341
|
+
e.value.userOptions.buttons.annotator ? (o(), x(r(be), {
|
|
326
342
|
key: 0,
|
|
327
|
-
svgRef:
|
|
343
|
+
svgRef: r(E),
|
|
328
344
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
329
345
|
color: e.value.style.chart.color,
|
|
330
346
|
active: P.value,
|
|
331
|
-
onClose:
|
|
347
|
+
onClose: D
|
|
332
348
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
333
|
-
|
|
334
|
-
e.value.style.chart.title.text ? (
|
|
349
|
+
Oe.value ? (o(), n("div", ht, null, 512)) : u("", !0),
|
|
350
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
335
351
|
key: 2,
|
|
336
352
|
ref_key: "chartTitle",
|
|
337
|
-
ref:
|
|
353
|
+
ref: X,
|
|
338
354
|
style: "width:100%;background:transparent;"
|
|
339
355
|
}, [
|
|
340
|
-
(
|
|
356
|
+
(o(), x(ot, {
|
|
341
357
|
lineHeight: "1.3rem",
|
|
342
|
-
key: `title_${
|
|
358
|
+
key: `title_${Y.value}`,
|
|
343
359
|
config: {
|
|
344
360
|
title: {
|
|
345
361
|
cy: "bullet-div-title",
|
|
@@ -354,18 +370,19 @@ segments: [
|
|
|
354
370
|
], 512)) : u("", !0),
|
|
355
371
|
_("div", {
|
|
356
372
|
id: `legend-top-${p.value}`
|
|
357
|
-
}, null, 8,
|
|
358
|
-
e.value.userOptions.show && b.value && (
|
|
373
|
+
}, null, 8, dt),
|
|
374
|
+
e.value.userOptions.show && b.value && (r(ae) || r(N)) ? (o(), x(r(ke), {
|
|
359
375
|
key: 3,
|
|
360
376
|
ref: "details",
|
|
361
377
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
362
378
|
color: e.value.style.chart.color,
|
|
363
|
-
isPrinting:
|
|
364
|
-
isImaging:
|
|
379
|
+
isPrinting: r(oe),
|
|
380
|
+
isImaging: r(re),
|
|
365
381
|
uid: p.value,
|
|
366
382
|
hasTooltip: !1,
|
|
367
383
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
368
384
|
hasImg: e.value.userOptions.buttons.img,
|
|
385
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
369
386
|
hasXls: !1,
|
|
370
387
|
hasTable: !1,
|
|
371
388
|
hasLabel: !1,
|
|
@@ -379,59 +396,60 @@ segments: [
|
|
|
379
396
|
callbacks: e.value.userOptions.callbacks,
|
|
380
397
|
printScale: e.value.userOptions.print.scale,
|
|
381
398
|
onToggleFullscreen: ie,
|
|
382
|
-
onGeneratePdf:
|
|
383
|
-
onGenerateImage:
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
399
|
+
onGeneratePdf: r(ne),
|
|
400
|
+
onGenerateImage: r(ue),
|
|
401
|
+
onGenerateSvg: ve,
|
|
402
|
+
onToggleAnnotator: D,
|
|
403
|
+
style: V({
|
|
404
|
+
visibility: r(ae) ? r(N) ? "visible" : "hidden" : "visible"
|
|
387
405
|
})
|
|
388
|
-
},
|
|
406
|
+
}, Ue({ _: 2 }, [
|
|
389
407
|
t.$slots.menuIcon ? {
|
|
390
408
|
name: "menuIcon",
|
|
391
|
-
fn:
|
|
392
|
-
m(t.$slots, "menuIcon", F(T({ isOpen: a, color:
|
|
409
|
+
fn: C(({ isOpen: a, color: h }) => [
|
|
410
|
+
m(t.$slots, "menuIcon", F(T({ isOpen: a, color: h })), void 0, !0)
|
|
393
411
|
]),
|
|
394
412
|
key: "0"
|
|
395
413
|
} : void 0,
|
|
396
414
|
t.$slots.optionPdf ? {
|
|
397
415
|
name: "optionPdf",
|
|
398
|
-
fn:
|
|
416
|
+
fn: C(() => [
|
|
399
417
|
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
400
418
|
]),
|
|
401
419
|
key: "1"
|
|
402
420
|
} : void 0,
|
|
403
421
|
t.$slots.optionImg ? {
|
|
404
422
|
name: "optionImg",
|
|
405
|
-
fn:
|
|
423
|
+
fn: C(() => [
|
|
406
424
|
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
407
425
|
]),
|
|
408
426
|
key: "2"
|
|
409
427
|
} : void 0,
|
|
410
428
|
t.$slots.optionFullscreen ? {
|
|
411
429
|
name: "optionFullscreen",
|
|
412
|
-
fn:
|
|
413
|
-
m(t.$slots, "optionFullscreen", F(T({ toggleFullscreen: a, isFullscreen:
|
|
430
|
+
fn: C(({ toggleFullscreen: a, isFullscreen: h }) => [
|
|
431
|
+
m(t.$slots, "optionFullscreen", F(T({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
|
|
414
432
|
]),
|
|
415
433
|
key: "3"
|
|
416
434
|
} : void 0,
|
|
417
435
|
t.$slots.optionAnnotator ? {
|
|
418
436
|
name: "optionAnnotator",
|
|
419
|
-
fn:
|
|
420
|
-
m(t.$slots, "optionAnnotator", F(T({ toggleAnnotator: a, isAnnotator:
|
|
437
|
+
fn: C(({ toggleAnnotator: a, isAnnotator: h }) => [
|
|
438
|
+
m(t.$slots, "optionAnnotator", F(T({ toggleAnnotator: a, isAnnotator: h })), void 0, !0)
|
|
421
439
|
]),
|
|
422
440
|
key: "4"
|
|
423
441
|
} : void 0
|
|
424
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
|
|
425
|
-
(
|
|
442
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
|
|
443
|
+
(o(), n("svg", {
|
|
426
444
|
ref_key: "svgRef",
|
|
427
|
-
ref:
|
|
428
|
-
xmlns:
|
|
429
|
-
class:
|
|
445
|
+
ref: E,
|
|
446
|
+
xmlns: r(Je),
|
|
447
|
+
class: he({ "vue-data-ui-fullscreen--on": $.value, "vue-data-ui-fulscreen--off": !$.value, "vue-ui-bullet-svg": !0 }),
|
|
430
448
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
431
|
-
style:
|
|
449
|
+
style: V(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
432
450
|
}, [
|
|
433
|
-
|
|
434
|
-
t.$slots["chart-background"] ? (
|
|
451
|
+
We(r(pe)),
|
|
452
|
+
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
435
453
|
key: 0,
|
|
436
454
|
x: 0,
|
|
437
455
|
y: 0,
|
|
@@ -442,9 +460,9 @@ segments: [
|
|
|
442
460
|
}
|
|
443
461
|
}, [
|
|
444
462
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
445
|
-
], 8,
|
|
446
|
-
L.value ? (
|
|
447
|
-
(
|
|
463
|
+
], 8, ft)) : u("", !0),
|
|
464
|
+
L.value ? (o(), n("g", mt, [
|
|
465
|
+
(o(!0), n(j, null, q(f.value.chunks, (a) => (o(), n("rect", {
|
|
448
466
|
x: a.x,
|
|
449
467
|
y: a.y,
|
|
450
468
|
height: a.height,
|
|
@@ -453,10 +471,10 @@ segments: [
|
|
|
453
471
|
"stroke-width": 1,
|
|
454
472
|
stroke: e.value.style.chart.backgroundColor,
|
|
455
473
|
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
456
|
-
}, null, 8,
|
|
457
|
-
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (
|
|
474
|
+
}, null, 8, yt))), 256)),
|
|
475
|
+
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), n("rect", {
|
|
458
476
|
key: 0,
|
|
459
|
-
x:
|
|
477
|
+
x: f.value.target.x,
|
|
460
478
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
461
479
|
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
462
480
|
width: e.value.style.chart.target.width,
|
|
@@ -464,37 +482,37 @@ segments: [
|
|
|
464
482
|
fill: e.value.style.chart.target.color,
|
|
465
483
|
stroke: e.value.style.chart.target.stroke,
|
|
466
484
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
467
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, pt)) : u("", !0),
|
|
468
486
|
_("rect", {
|
|
469
487
|
x: l.value.left,
|
|
470
488
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
471
489
|
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
472
|
-
width:
|
|
490
|
+
width: f.value.value.width,
|
|
473
491
|
fill: e.value.style.chart.valueBar.color,
|
|
474
492
|
stroke: e.value.style.chart.valueBar.stroke,
|
|
475
493
|
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
476
|
-
}, null, 8,
|
|
477
|
-
e.value.style.chart.valueBar.label.show ? (
|
|
494
|
+
}, null, 8, bt),
|
|
495
|
+
e.value.style.chart.valueBar.label.show ? (o(), n("text", {
|
|
478
496
|
key: 1,
|
|
479
|
-
x: l.value.left +
|
|
497
|
+
x: l.value.left + f.value.value.width,
|
|
480
498
|
y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
481
499
|
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
482
500
|
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
483
501
|
fill: e.value.style.chart.valueBar.label.color,
|
|
484
502
|
"text-anchor": "middle"
|
|
485
|
-
}, H(
|
|
503
|
+
}, H(r(M)(
|
|
486
504
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
487
|
-
|
|
488
|
-
|
|
505
|
+
g.value,
|
|
506
|
+
r(R)({
|
|
489
507
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
490
|
-
v:
|
|
508
|
+
v: g.value,
|
|
491
509
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
492
510
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
493
511
|
})
|
|
494
|
-
)), 9,
|
|
495
|
-
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (
|
|
512
|
+
)), 9, kt)) : u("", !0),
|
|
513
|
+
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), n("rect", {
|
|
496
514
|
key: 2,
|
|
497
|
-
x:
|
|
515
|
+
x: f.value.target.x,
|
|
498
516
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
499
517
|
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
500
518
|
width: e.value.style.chart.target.width,
|
|
@@ -503,28 +521,28 @@ segments: [
|
|
|
503
521
|
stroke: e.value.style.chart.target.stroke,
|
|
504
522
|
"stroke-width": e.value.style.chart.target.strokeWidth,
|
|
505
523
|
style: { transition: "x 0.3s ease-in-out" }
|
|
506
|
-
}, null, 8,
|
|
507
|
-
e.value.style.chart.segments.dataLabels.show ? (
|
|
508
|
-
(
|
|
524
|
+
}, null, 8, wt)) : u("", !0),
|
|
525
|
+
e.value.style.chart.segments.dataLabels.show ? (o(), n("g", xt, [
|
|
526
|
+
(o(!0), n(j, null, q(f.value.ticks, (a) => (o(), n("text", {
|
|
509
527
|
x: a.x,
|
|
510
528
|
y: a.y,
|
|
511
529
|
"text-anchor": "middle",
|
|
512
530
|
fill: e.value.style.chart.segments.dataLabels.color,
|
|
513
531
|
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
514
532
|
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
515
|
-
}, H(
|
|
533
|
+
}, H(r(M)(
|
|
516
534
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
517
535
|
a.value,
|
|
518
|
-
|
|
536
|
+
r(R)({
|
|
519
537
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
520
538
|
v: a.value,
|
|
521
539
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
522
540
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
523
541
|
})
|
|
524
|
-
)), 9,
|
|
542
|
+
)), 9, _t))), 256))
|
|
525
543
|
])) : u("", !0),
|
|
526
|
-
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (
|
|
527
|
-
(
|
|
544
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (o(), n("g", Ct, [
|
|
545
|
+
(o(!0), n(j, null, q(f.value.ticks, (a) => (o(), n("line", {
|
|
528
546
|
x1: a.x,
|
|
529
547
|
x2: a.x,
|
|
530
548
|
y1: l.value.bottom,
|
|
@@ -532,54 +550,54 @@ segments: [
|
|
|
532
550
|
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
533
551
|
"stroke-width": 1,
|
|
534
552
|
"stroke-linecap": "round"
|
|
535
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, At))), 256))
|
|
536
554
|
])) : u("", !0)
|
|
537
555
|
])) : u("", !0),
|
|
538
556
|
m(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
539
|
-
], 14,
|
|
540
|
-
t.$slots.watermark ? (
|
|
541
|
-
m(t.$slots, "watermark", F(T({ isPrinting:
|
|
557
|
+
], 14, gt)),
|
|
558
|
+
t.$slots.watermark ? (o(), n("div", Lt, [
|
|
559
|
+
m(t.$slots, "watermark", F(T({ isPrinting: r(oe) || r(re) })), void 0, !0)
|
|
542
560
|
])) : u("", !0),
|
|
543
561
|
_("div", {
|
|
544
562
|
id: `legend-bottom-${p.value}`
|
|
545
|
-
}, null, 8,
|
|
546
|
-
|
|
563
|
+
}, null, 8, $t),
|
|
564
|
+
Q.value ? (o(), x(De, {
|
|
547
565
|
key: 5,
|
|
548
566
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
549
567
|
}, [
|
|
550
568
|
_("div", {
|
|
551
569
|
ref_key: "chartLegend",
|
|
552
|
-
ref:
|
|
570
|
+
ref: J
|
|
553
571
|
}, [
|
|
554
|
-
e.value.style.chart.legend.show ? (
|
|
572
|
+
e.value.style.chart.legend.show ? (o(), x(st, {
|
|
555
573
|
key: 0,
|
|
556
574
|
clickable: !1,
|
|
557
|
-
legendSet:
|
|
558
|
-
config:
|
|
575
|
+
legendSet: W.value,
|
|
576
|
+
config: $e.value
|
|
559
577
|
}, {
|
|
560
|
-
item:
|
|
561
|
-
|
|
562
|
-
_("span",
|
|
578
|
+
item: C(({ legend: a }) => [
|
|
579
|
+
r(k) ? u("", !0) : (o(), n("div", Ot, [
|
|
580
|
+
_("span", St, H(a.name) + ":", 1),
|
|
563
581
|
_("span", null, H(a.value), 1)
|
|
564
582
|
]))
|
|
565
583
|
]),
|
|
566
584
|
_: 1
|
|
567
585
|
}, 8, ["legendSet", "config"])) : u("", !0),
|
|
568
|
-
m(t.$slots, "legend", { legend:
|
|
586
|
+
m(t.$slots, "legend", { legend: W.value }, void 0, !0)
|
|
569
587
|
], 512)
|
|
570
588
|
], 8, ["to"])) : u("", !0),
|
|
571
|
-
t.$slots.source ? (
|
|
589
|
+
t.$slots.source ? (o(), n("div", {
|
|
572
590
|
key: 6,
|
|
573
591
|
ref_key: "source",
|
|
574
|
-
ref:
|
|
592
|
+
ref: K,
|
|
575
593
|
dir: "auto"
|
|
576
594
|
}, [
|
|
577
595
|
m(t.$slots, "source", {}, void 0, !0)
|
|
578
596
|
], 512)) : u("", !0),
|
|
579
|
-
|
|
580
|
-
], 46,
|
|
597
|
+
r(k) ? (o(), x(ut, { key: 7 })) : u("", !0)
|
|
598
|
+
], 46, ct));
|
|
581
599
|
}
|
|
582
|
-
},
|
|
600
|
+
}, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-fd9177ca"]]);
|
|
583
601
|
export {
|
|
584
|
-
|
|
602
|
+
Vt as default
|
|
585
603
|
};
|