vue-data-ui 3.0.0-next.9 → 3.0.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/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
- package/dist/Slicer-t6e1t2iM.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
- package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-CjnS13nF.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
- package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
- package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
- package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
- package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
- package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
- package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
- package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
- package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
- package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
- package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
- package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
- package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
- package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
- package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
- package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
- package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
- package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
- package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
- package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
- package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
- package/dist/vue-ui-rings-BH81WmMS.js +728 -0
- package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
- package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
- package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
- package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
- package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
- package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
- package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
- package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
- package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
- package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
- package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
- package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
- package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
- package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
- package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
- package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as M } from "./dom-to-png-
|
|
1
|
+
import { A as p, t as v, u as w, B as A } from "./index-Dzc2Gi60.js";
|
|
2
|
+
import { d as M } from "./dom-to-png-C4hj491O.js";
|
|
3
3
|
import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
|
|
4
4
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const m = {
|
|
@@ -1348,12 +1348,12 @@ function Dt(t, i, o, h, s, e) {
|
|
|
1348
1348
|
e.deleteEmptyTextElement(), e.setShapeTo("group"), s.isSelectMode = !s.isSelectMode, s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isTextMode = !1, s.isWriting = !1, s.activeShape = "group", s.showCaret = !1;
|
|
1349
1349
|
})
|
|
1350
1350
|
}, [
|
|
1351
|
-
(n(), d("svg", B, i[49] || (i[49] = [
|
|
1351
|
+
(n(), d("svg", B, [...i[49] || (i[49] = [
|
|
1352
1352
|
r("path", {
|
|
1353
1353
|
fill: "currentColor",
|
|
1354
1354
|
d: "M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14"
|
|
1355
1355
|
}, null, -1)
|
|
1356
|
-
]))),
|
|
1356
|
+
])])),
|
|
1357
1357
|
e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
|
|
1358
1358
|
key: 0,
|
|
1359
1359
|
class: "tooltiptext",
|
|
@@ -1379,12 +1379,12 @@ function Dt(t, i, o, h, s, e) {
|
|
|
1379
1379
|
s.isResizeMode = !1, s.isMoveMode = !0, s.isDeleteMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.isTextMode = !1, s.isWriting = !1, s.showCaret = !1, e.bringShapeTo("front");
|
|
1380
1380
|
})
|
|
1381
1381
|
}, [
|
|
1382
|
-
(n(), d("svg", E, i[50] || (i[50] = [
|
|
1382
|
+
(n(), d("svg", E, [...i[50] || (i[50] = [
|
|
1383
1383
|
r("path", {
|
|
1384
1384
|
fill: "currentColor",
|
|
1385
1385
|
d: "M2,2H11V6H9V4H4V9H6V11H2V2M22,13V22H13V18H15V20H20V15H18V13H22M8,8H16V16H8V8Z"
|
|
1386
1386
|
}, null, -1)
|
|
1387
|
-
]))),
|
|
1387
|
+
])])),
|
|
1388
1388
|
e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
|
|
1389
1389
|
key: 0,
|
|
1390
1390
|
class: "tooltiptext",
|
|
@@ -1410,12 +1410,12 @@ function Dt(t, i, o, h, s, e) {
|
|
|
1410
1410
|
s.isResizeMode = !1, s.isMoveMode = !0, s.isDeleteMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.isTextMode = !1, s.isWriting = !1, s.showCaret = !1, e.bringShapeTo("back");
|
|
1411
1411
|
})
|
|
1412
1412
|
}, [
|
|
1413
|
-
(n(), d("svg", U, i[51] || (i[51] = [
|
|
1413
|
+
(n(), d("svg", U, [...i[51] || (i[51] = [
|
|
1414
1414
|
r("path", {
|
|
1415
1415
|
fill: "currentColor",
|
|
1416
1416
|
d: "M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z"
|
|
1417
1417
|
}, null, -1)
|
|
1418
|
-
]))),
|
|
1418
|
+
])])),
|
|
1419
1419
|
e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
class: "tooltiptext",
|
|
@@ -1760,7 +1760,7 @@ function Dt(t, i, o, h, s, e) {
|
|
|
1760
1760
|
["arrow", "circle", "rect"].includes(s.activeShape) ? (n(), d("div", ht, [
|
|
1761
1761
|
r("div", at, [
|
|
1762
1762
|
r("label", ut, u(e.FINAL_CONFIG.translations.dashedLines), 1),
|
|
1763
|
-
(n(), d("svg", yt, i[57] || (i[57] = [
|
|
1763
|
+
(n(), d("svg", yt, [...i[57] || (i[57] = [
|
|
1764
1764
|
r("line", {
|
|
1765
1765
|
x1: "0",
|
|
1766
1766
|
x2: "24",
|
|
@@ -1770,7 +1770,7 @@ function Dt(t, i, o, h, s, e) {
|
|
|
1770
1770
|
stroke: "black",
|
|
1771
1771
|
"stroke-dasharray": "3"
|
|
1772
1772
|
}, null, -1)
|
|
1773
|
-
]))),
|
|
1773
|
+
])])),
|
|
1774
1774
|
N(r("input", {
|
|
1775
1775
|
id: "dashStyle",
|
|
1776
1776
|
name: "dashStyle",
|
|
@@ -1799,9 +1799,9 @@ function Dt(t, i, o, h, s, e) {
|
|
|
1799
1799
|
e.deleteEmptyTextElement(), s.isTextMode = !s.isTextMode, s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isSelectMode = !1, s.isDrawMode = !1, s.activeShape = void 0;
|
|
1800
1800
|
})
|
|
1801
1801
|
}, [
|
|
1802
|
-
(n(), d("svg", It, i[58] || (i[58] = [
|
|
1802
|
+
(n(), d("svg", It, [...i[58] || (i[58] = [
|
|
1803
1803
|
r("path", { d: "M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" }, null, -1)
|
|
1804
|
-
]))),
|
|
1804
|
+
])])),
|
|
1805
1805
|
e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
|
|
1806
1806
|
key: 0,
|
|
1807
1807
|
class: "tooltiptext",
|
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { defineAsyncComponent as W, ref as c, computed as f, onMounted as Se, toRefs as Ie, watch as ie, onBeforeUnmount as Pe, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as D, normalizeClass as ce, createBlock as C, createCommentVNode as i, createElementVNode as I, createSlots as Fe, withCtx as w, renderSlot as m, normalizeProps as P, guardReactiveProps as F, createVNode as He, Fragment as V, renderList as G, toDisplayString as H } from "vue";
|
|
2
|
+
import { u as Me, c as Te, t as Re, l as ze, D as Ne, e as Ue, k as M, i as T, X as Ee, o as he, f as ve, g as We, b as De } from "./index-Dzc2Gi60.js";
|
|
3
|
+
import { u as de } from "./useNestedProp-CjnS13nF.js";
|
|
4
|
+
import { u as Ve } from "./usePrinter-DBRh8ZvS.js";
|
|
5
|
+
import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as je } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import qe from "./Legend-CMvJ6X5j.js";
|
|
8
|
+
import Xe from "./Title-xTWR-Vil.js";
|
|
9
|
+
import Ye from "./img-Vb4QHAHI.js";
|
|
10
|
+
import { t as Je, u as Ke } from "./useResponsive-DfdjqQps.js";
|
|
11
|
+
import { u as Qe, B as Ze } from "./useLoading-D7YHNtLX.js";
|
|
12
|
+
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const tt = ["id"], at = {
|
|
14
|
+
key: 1,
|
|
15
|
+
ref: "noTitle",
|
|
16
|
+
class: "vue-data-ui-no-title-space",
|
|
17
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
18
|
+
}, lt = ["xmlns", "viewBox"], st = ["width", "height"], rt = { key: 1 }, ot = ["x", "y", "height", "width", "fill", "stroke"], nt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ut = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], it = ["x", "y", "font-size", "font-weight", "fill"], ct = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ht = { key: 3 }, vt = ["x", "y", "fill", "font-size", "font-weight"], dt = { key: 4 }, gt = ["x1", "x2", "y1", "y2", "stroke"], ft = {
|
|
19
|
+
key: 4,
|
|
20
|
+
class: "vue-data-ui-watermark"
|
|
21
|
+
}, mt = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "vue-ui-bullet-legend-item",
|
|
24
|
+
dir: "auto"
|
|
25
|
+
}, yt = { style: { "margin-right": "2px" } }, pt = {
|
|
26
|
+
__name: "vue-ui-bullet",
|
|
27
|
+
props: {
|
|
28
|
+
config: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default() {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
dataset: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default() {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
setup(ge, { expose: fe }) {
|
|
42
|
+
const me = W(() => import("./PackageVersion-CD5VH_Al.js")), ye = W(() => import("./PenAndPaper-D3WRn-G2.js")), pe = W(() => import("./UserOptions-CKKPgDLV.js")), { vue_ui_bullet: be } = Me(), L = ge, y = c(null), j = c(null), q = c(0), X = c(null), Y = c(null), ke = c(0), x = c(null), O = c(null), p = f({
|
|
43
|
+
get: () => u.value.hasOwnProperty("value"),
|
|
44
|
+
set: (t) => t
|
|
45
|
+
}), A = f(() => u.value.segments ? Array.isArray(u.value.segments) ? u.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
46
|
+
|
|
47
|
+
segments: [
|
|
48
|
+
{
|
|
49
|
+
name: string;
|
|
50
|
+
from: number;
|
|
51
|
+
to: number;
|
|
52
|
+
color?: string;
|
|
53
|
+
},
|
|
54
|
+
{...}
|
|
55
|
+
]
|
|
56
|
+
`), p.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
57
|
+
|
|
58
|
+
segments: [
|
|
59
|
+
{
|
|
60
|
+
name: string;
|
|
61
|
+
from: number;
|
|
62
|
+
to: number;
|
|
63
|
+
color?: string;
|
|
64
|
+
},
|
|
65
|
+
{...}
|
|
66
|
+
]
|
|
67
|
+
`), p.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
68
|
+
|
|
69
|
+
segments: [
|
|
70
|
+
{
|
|
71
|
+
name: string;
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
color?: string;
|
|
75
|
+
},
|
|
76
|
+
{...}
|
|
77
|
+
]
|
|
78
|
+
`), p.value = !1, !1)), J = f(() => !!e.value.debug);
|
|
79
|
+
function K() {
|
|
80
|
+
if (he(u.value) ? (ve({
|
|
81
|
+
componentName: "VueUiBullet",
|
|
82
|
+
type: "dataset",
|
|
83
|
+
debug: J.value
|
|
84
|
+
}), B.value = !0) : A.value ? u.value.segments.forEach((t, s) => {
|
|
85
|
+
We({
|
|
86
|
+
datasetObject: t,
|
|
87
|
+
requiredAttributes: ["name", "from", "to"]
|
|
88
|
+
}).forEach((a) => {
|
|
89
|
+
p.value = !1, ve({
|
|
90
|
+
componentName: "VueUiBullet segment",
|
|
91
|
+
type: "datasetSerieAttribute",
|
|
92
|
+
property: a,
|
|
93
|
+
index: s,
|
|
94
|
+
debug: J.value
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}) : (p.value = !1, B.value = !0), he(u.value) || (B.value = e.value.loading), e.value.responsive) {
|
|
98
|
+
const t = Je(() => {
|
|
99
|
+
const { width: s, height: a } = Ke({
|
|
100
|
+
chart: y.value,
|
|
101
|
+
title: e.value.style.chart.title.text ? j.value : null,
|
|
102
|
+
legend: e.value.style.chart.legend.show ? X.value : null,
|
|
103
|
+
source: Y.value
|
|
104
|
+
});
|
|
105
|
+
requestAnimationFrame(() => {
|
|
106
|
+
$.value.width = s, $.value.height = a - 12;
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
x.value && (O.value && x.value.unobserve(O.value), x.value.disconnect()), x.value = new ResizeObserver(t), O.value = y.value.parentNode, x.value.observe(O.value);
|
|
110
|
+
}
|
|
111
|
+
e.value.style.chart.animation.show && !b.value && ae(u.value.value || 0);
|
|
112
|
+
}
|
|
113
|
+
Se(K);
|
|
114
|
+
const R = c(Te());
|
|
115
|
+
function z() {
|
|
116
|
+
const t = de({
|
|
117
|
+
userConfig: L.config,
|
|
118
|
+
defaultConfig: be
|
|
119
|
+
});
|
|
120
|
+
return t.theme ? {
|
|
121
|
+
...de({
|
|
122
|
+
userConfig: De.vue_ui_bullet[t.theme] || L.config,
|
|
123
|
+
defaultConfig: t
|
|
124
|
+
})
|
|
125
|
+
} : t;
|
|
126
|
+
}
|
|
127
|
+
const e = c(z()), { loading: b, FINAL_DATASET: u, manualLoading: B } = Qe({
|
|
128
|
+
...Ie(L),
|
|
129
|
+
FINAL_CONFIG: e,
|
|
130
|
+
prepareConfig: z,
|
|
131
|
+
skeletonDataset: {
|
|
132
|
+
value: 100,
|
|
133
|
+
target: 100,
|
|
134
|
+
segments: [
|
|
135
|
+
{
|
|
136
|
+
name: "",
|
|
137
|
+
from: 0,
|
|
138
|
+
to: 33,
|
|
139
|
+
color: "#AAAAAA"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "",
|
|
143
|
+
from: 33,
|
|
144
|
+
to: 66,
|
|
145
|
+
color: "#BABABA"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "",
|
|
149
|
+
from: 66,
|
|
150
|
+
to: 100,
|
|
151
|
+
color: "#CACACA"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
skeletonConfig: Re({
|
|
156
|
+
defaultConfig: e.value,
|
|
157
|
+
userConfig: {
|
|
158
|
+
userOptions: { show: !1 },
|
|
159
|
+
style: {
|
|
160
|
+
chart: {
|
|
161
|
+
backgroundColor: "#99999930",
|
|
162
|
+
segments: {
|
|
163
|
+
dataLabels: { show: !1 },
|
|
164
|
+
ticks: {
|
|
165
|
+
stroke: "#8A8A8A"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
valueBar: {
|
|
169
|
+
label: { show: !1 }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
}), { userOptionsVisible: N, setUserOptionsVisibility: Q, keepUserOptionState: Z } = Ge({ config: e.value }), { svgRef: ee } = je({ config: e.value.style.chart.title });
|
|
176
|
+
ie(() => L.config, (t) => {
|
|
177
|
+
b.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, K(), q.value += 1;
|
|
178
|
+
}, { deep: !0 });
|
|
179
|
+
const $ = c({
|
|
180
|
+
width: e.value.style.chart.width,
|
|
181
|
+
height: e.value.style.chart.height
|
|
182
|
+
}), we = f(() => $.value.width), xe = f(() => $.value.height), l = f(() => {
|
|
183
|
+
const t = xe.value, s = we.value, a = e.value.style.chart.padding.left, g = s - e.value.style.chart.padding.right, k = e.value.style.chart.padding.top, h = t - e.value.style.chart.padding.bottom;
|
|
184
|
+
return {
|
|
185
|
+
height: Math.max(1e-3, t),
|
|
186
|
+
width: Math.max(1e-3, s),
|
|
187
|
+
left: a,
|
|
188
|
+
right: g,
|
|
189
|
+
top: k,
|
|
190
|
+
bottom: h,
|
|
191
|
+
chartWidth: Math.max(1e-3, g - a),
|
|
192
|
+
chartHeight: Math.max(1e-3, h - k)
|
|
193
|
+
};
|
|
194
|
+
}), Ae = f(() => {
|
|
195
|
+
if (!A.value) return [];
|
|
196
|
+
const t = [];
|
|
197
|
+
for (let s = 0; s < u.value.segments.length; s += 1)
|
|
198
|
+
t.push(ze(e.value.style.chart.segments.baseColor, s / u.value.segments.length));
|
|
199
|
+
return t;
|
|
200
|
+
}), U = f(() => A.value ? {
|
|
201
|
+
min: Math.min(...u.value.segments.map((t) => t.from)),
|
|
202
|
+
max: Math.max(...u.value.segments.map((t) => t.to))
|
|
203
|
+
} : { min: 0, max: 1 }), v = c(_e());
|
|
204
|
+
ie(() => u.value, (t) => {
|
|
205
|
+
t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !b.value ? ae(t.value || 0) : v.value = t.value || 0;
|
|
206
|
+
}, { deep: !0 });
|
|
207
|
+
function _e() {
|
|
208
|
+
return e.value.style.chart.animation.show && !b.value ? U.value.min : u.value.value || 0;
|
|
209
|
+
}
|
|
210
|
+
const te = c(null);
|
|
211
|
+
function ae(t) {
|
|
212
|
+
const s = Math.abs(t - v.value) / e.value.style.chart.animation.animationFrames;
|
|
213
|
+
function a() {
|
|
214
|
+
v.value < t ? v.value = Math.min(v.value + s, t) : v.value > t && (v.value = Math.max(v.value - s, t)), v.value !== t && (te.value = requestAnimationFrame(a));
|
|
215
|
+
}
|
|
216
|
+
a();
|
|
217
|
+
}
|
|
218
|
+
Pe(() => {
|
|
219
|
+
cancelAnimationFrame(te.value);
|
|
220
|
+
});
|
|
221
|
+
const d = f(() => {
|
|
222
|
+
if (!A.value)
|
|
223
|
+
return [];
|
|
224
|
+
const t = Ne(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
225
|
+
x: l.value.left + (u.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
226
|
+
}, g = {
|
|
227
|
+
width: (v.value + s) / (t.max + s) * l.value.chartWidth
|
|
228
|
+
}, k = t.ticks.map((h) => ({
|
|
229
|
+
value: h,
|
|
230
|
+
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
231
|
+
x: l.value.left + (h + s) / (t.max + s) * l.value.chartWidth
|
|
232
|
+
}));
|
|
233
|
+
return {
|
|
234
|
+
scale: t,
|
|
235
|
+
target: a,
|
|
236
|
+
value: g,
|
|
237
|
+
ticks: k,
|
|
238
|
+
chunks: u.value.segments.map((h, $e) => ({
|
|
239
|
+
...h,
|
|
240
|
+
color: h.color ? Ue(h.color) : Ae.value[$e],
|
|
241
|
+
x: l.value.left + l.value.chartWidth * ((h.from + s) / (t.max + s)),
|
|
242
|
+
y: l.value.top,
|
|
243
|
+
height: l.value.chartHeight,
|
|
244
|
+
width: l.value.chartWidth * (Math.abs(h.to - h.from) / (t.max + s))
|
|
245
|
+
}))
|
|
246
|
+
};
|
|
247
|
+
}), le = f(() => !d.value || !d.value.chunks || !d.value.chunks.length ? [] : d.value.chunks.map((t) => {
|
|
248
|
+
const s = M(
|
|
249
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
250
|
+
t.from,
|
|
251
|
+
T({
|
|
252
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
253
|
+
v: t.from,
|
|
254
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
255
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
256
|
+
})
|
|
257
|
+
), a = M(
|
|
258
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
259
|
+
t.to,
|
|
260
|
+
T({
|
|
261
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
262
|
+
v: t.to,
|
|
263
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
264
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
265
|
+
})
|
|
266
|
+
);
|
|
267
|
+
return {
|
|
268
|
+
...t,
|
|
269
|
+
shape: "square",
|
|
270
|
+
value: `${s} - ${a}`
|
|
271
|
+
};
|
|
272
|
+
})), Ce = f(() => ({
|
|
273
|
+
cy: "bullet-div-legend",
|
|
274
|
+
backgroundColor: "transparent",
|
|
275
|
+
color: e.value.style.chart.legend.color,
|
|
276
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
277
|
+
paddingBottom: 6,
|
|
278
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
279
|
+
})), { isPrinting: se, isImaging: re, generatePdf: oe, generateImage: ne } = Ve({
|
|
280
|
+
elementId: `bullet_${R.value}`,
|
|
281
|
+
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
282
|
+
options: e.value.userOptions.print
|
|
283
|
+
}), Le = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), _ = c(!1);
|
|
284
|
+
function ue(t) {
|
|
285
|
+
_.value = t, ke.value += 1;
|
|
286
|
+
}
|
|
287
|
+
function Oe() {
|
|
288
|
+
return d.value;
|
|
289
|
+
}
|
|
290
|
+
const S = c(!1);
|
|
291
|
+
function E() {
|
|
292
|
+
S.value = !S.value;
|
|
293
|
+
}
|
|
294
|
+
async function Be({ scale: t = 2 } = {}) {
|
|
295
|
+
if (!y.value) return;
|
|
296
|
+
const { width: s, height: a } = y.value.getBoundingClientRect(), g = s / a, { imageUri: k, base64: h } = await Ye({ domElement: y.value, base64: !0, img: !0, scale: t });
|
|
297
|
+
return {
|
|
298
|
+
imageUri: k,
|
|
299
|
+
base64: h,
|
|
300
|
+
title: e.value.style.chart.title.text,
|
|
301
|
+
width: s,
|
|
302
|
+
height: a,
|
|
303
|
+
aspectRatio: g
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
return fe({
|
|
307
|
+
getData: Oe,
|
|
308
|
+
getImage: Be,
|
|
309
|
+
generatePdf: oe,
|
|
310
|
+
generateImage: ne,
|
|
311
|
+
toggleAnnotator: E,
|
|
312
|
+
toggleFullscreen: ue
|
|
313
|
+
}), (t, s) => (r(), n("div", {
|
|
314
|
+
ref_key: "bulletChart",
|
|
315
|
+
ref: y,
|
|
316
|
+
class: ce(`vue-ui-bullet ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
317
|
+
style: D(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
318
|
+
id: `bullet_${R.value}`,
|
|
319
|
+
onMouseenter: s[0] || (s[0] = () => o(Q)(!0)),
|
|
320
|
+
onMouseleave: s[1] || (s[1] = () => o(Q)(!1))
|
|
321
|
+
}, [
|
|
322
|
+
e.value.userOptions.buttons.annotator ? (r(), C(o(ye), {
|
|
323
|
+
key: 0,
|
|
324
|
+
svgRef: o(ee),
|
|
325
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
326
|
+
color: e.value.style.chart.color,
|
|
327
|
+
active: S.value,
|
|
328
|
+
onClose: E
|
|
329
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
330
|
+
Le.value ? (r(), n("div", at, null, 512)) : i("", !0),
|
|
331
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
332
|
+
key: 2,
|
|
333
|
+
ref_key: "chartTitle",
|
|
334
|
+
ref: j,
|
|
335
|
+
style: "width:100%;background:transparent;"
|
|
336
|
+
}, [
|
|
337
|
+
(r(), C(Xe, {
|
|
338
|
+
lineHeight: "1.3rem",
|
|
339
|
+
key: `title_${q.value}`,
|
|
340
|
+
config: {
|
|
341
|
+
title: {
|
|
342
|
+
cy: "bullet-div-title",
|
|
343
|
+
...e.value.style.chart.title
|
|
344
|
+
},
|
|
345
|
+
subtitle: {
|
|
346
|
+
cy: "bullet-div-subtitle",
|
|
347
|
+
...e.value.style.chart.title.subtitle
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}, null, 8, ["config"]))
|
|
351
|
+
], 512)) : i("", !0),
|
|
352
|
+
e.value.userOptions.show && p.value && (o(Z) || o(N)) ? (r(), C(o(pe), {
|
|
353
|
+
key: 3,
|
|
354
|
+
ref: "details",
|
|
355
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
356
|
+
color: e.value.style.chart.color,
|
|
357
|
+
isPrinting: o(se),
|
|
358
|
+
isImaging: o(re),
|
|
359
|
+
uid: R.value,
|
|
360
|
+
hasTooltip: !1,
|
|
361
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
362
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
363
|
+
hasXls: !1,
|
|
364
|
+
hasTable: !1,
|
|
365
|
+
hasLabel: !1,
|
|
366
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
367
|
+
isFullscreen: _.value,
|
|
368
|
+
chartElement: y.value,
|
|
369
|
+
position: e.value.userOptions.position,
|
|
370
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
371
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
372
|
+
isAnnotation: S.value,
|
|
373
|
+
callbacks: e.value.userOptions.callbacks,
|
|
374
|
+
printScale: e.value.userOptions.print.scale,
|
|
375
|
+
onToggleFullscreen: ue,
|
|
376
|
+
onGeneratePdf: o(oe),
|
|
377
|
+
onGenerateImage: o(ne),
|
|
378
|
+
onToggleAnnotator: E,
|
|
379
|
+
style: D({
|
|
380
|
+
visibility: o(Z) ? o(N) ? "visible" : "hidden" : "visible"
|
|
381
|
+
})
|
|
382
|
+
}, Fe({ _: 2 }, [
|
|
383
|
+
t.$slots.menuIcon ? {
|
|
384
|
+
name: "menuIcon",
|
|
385
|
+
fn: w(({ isOpen: a, color: g }) => [
|
|
386
|
+
m(t.$slots, "menuIcon", P(F({ isOpen: a, color: g })), void 0, !0)
|
|
387
|
+
]),
|
|
388
|
+
key: "0"
|
|
389
|
+
} : void 0,
|
|
390
|
+
t.$slots.optionPdf ? {
|
|
391
|
+
name: "optionPdf",
|
|
392
|
+
fn: w(() => [
|
|
393
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
394
|
+
]),
|
|
395
|
+
key: "1"
|
|
396
|
+
} : void 0,
|
|
397
|
+
t.$slots.optionImg ? {
|
|
398
|
+
name: "optionImg",
|
|
399
|
+
fn: w(() => [
|
|
400
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
401
|
+
]),
|
|
402
|
+
key: "2"
|
|
403
|
+
} : void 0,
|
|
404
|
+
t.$slots.optionFullscreen ? {
|
|
405
|
+
name: "optionFullscreen",
|
|
406
|
+
fn: w(({ toggleFullscreen: a, isFullscreen: g }) => [
|
|
407
|
+
m(t.$slots, "optionFullscreen", P(F({ toggleFullscreen: a, isFullscreen: g })), void 0, !0)
|
|
408
|
+
]),
|
|
409
|
+
key: "3"
|
|
410
|
+
} : void 0,
|
|
411
|
+
t.$slots.optionAnnotator ? {
|
|
412
|
+
name: "optionAnnotator",
|
|
413
|
+
fn: w(({ toggleAnnotator: a, isAnnotator: g }) => [
|
|
414
|
+
m(t.$slots, "optionAnnotator", P(F({ toggleAnnotator: a, isAnnotator: g })), void 0, !0)
|
|
415
|
+
]),
|
|
416
|
+
key: "4"
|
|
417
|
+
} : void 0
|
|
418
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
419
|
+
(r(), n("svg", {
|
|
420
|
+
ref_key: "svgRef",
|
|
421
|
+
ref: ee,
|
|
422
|
+
xmlns: o(Ee),
|
|
423
|
+
class: ce({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value, "vue-ui-bullet-svg": !0 }),
|
|
424
|
+
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
425
|
+
style: D(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
426
|
+
}, [
|
|
427
|
+
He(o(me)),
|
|
428
|
+
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
429
|
+
key: 0,
|
|
430
|
+
x: 0,
|
|
431
|
+
y: 0,
|
|
432
|
+
width: l.value.width,
|
|
433
|
+
height: l.value.height,
|
|
434
|
+
style: {
|
|
435
|
+
pointerEvents: "none"
|
|
436
|
+
}
|
|
437
|
+
}, [
|
|
438
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
439
|
+
], 8, st)) : i("", !0),
|
|
440
|
+
A.value ? (r(), n("g", rt, [
|
|
441
|
+
(r(!0), n(V, null, G(d.value.chunks, (a) => (r(), n("rect", {
|
|
442
|
+
x: a.x,
|
|
443
|
+
y: a.y,
|
|
444
|
+
height: a.height,
|
|
445
|
+
width: a.width,
|
|
446
|
+
fill: a.color,
|
|
447
|
+
"stroke-width": 1,
|
|
448
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
449
|
+
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
450
|
+
}, null, 8, ot))), 256)),
|
|
451
|
+
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (r(), n("rect", {
|
|
452
|
+
key: 0,
|
|
453
|
+
x: d.value.target.x,
|
|
454
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
455
|
+
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
456
|
+
width: e.value.style.chart.target.width,
|
|
457
|
+
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
458
|
+
fill: e.value.style.chart.target.color,
|
|
459
|
+
stroke: e.value.style.chart.target.stroke,
|
|
460
|
+
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
461
|
+
}, null, 8, nt)) : i("", !0),
|
|
462
|
+
I("rect", {
|
|
463
|
+
x: l.value.left,
|
|
464
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
465
|
+
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
466
|
+
width: d.value.value.width,
|
|
467
|
+
fill: e.value.style.chart.valueBar.color,
|
|
468
|
+
stroke: e.value.style.chart.valueBar.stroke,
|
|
469
|
+
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
470
|
+
}, null, 8, ut),
|
|
471
|
+
e.value.style.chart.valueBar.label.show ? (r(), n("text", {
|
|
472
|
+
key: 1,
|
|
473
|
+
x: l.value.left + d.value.value.width,
|
|
474
|
+
y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
475
|
+
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
476
|
+
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
477
|
+
fill: e.value.style.chart.valueBar.label.color,
|
|
478
|
+
"text-anchor": "middle"
|
|
479
|
+
}, H(o(M)(
|
|
480
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
481
|
+
v.value,
|
|
482
|
+
o(T)({
|
|
483
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
484
|
+
v: v.value,
|
|
485
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
486
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
487
|
+
})
|
|
488
|
+
)), 9, it)) : i("", !0),
|
|
489
|
+
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (r(), n("rect", {
|
|
490
|
+
key: 2,
|
|
491
|
+
x: d.value.target.x,
|
|
492
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
493
|
+
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
494
|
+
width: e.value.style.chart.target.width,
|
|
495
|
+
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
496
|
+
fill: e.value.style.chart.target.color,
|
|
497
|
+
stroke: e.value.style.chart.target.stroke,
|
|
498
|
+
"stroke-width": e.value.style.chart.target.strokeWidth,
|
|
499
|
+
style: { transition: "x 0.3s ease-in-out" }
|
|
500
|
+
}, null, 8, ct)) : i("", !0),
|
|
501
|
+
e.value.style.chart.segments.dataLabels.show ? (r(), n("g", ht, [
|
|
502
|
+
(r(!0), n(V, null, G(d.value.ticks, (a) => (r(), n("text", {
|
|
503
|
+
x: a.x,
|
|
504
|
+
y: a.y,
|
|
505
|
+
"text-anchor": "middle",
|
|
506
|
+
fill: e.value.style.chart.segments.dataLabels.color,
|
|
507
|
+
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
508
|
+
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
509
|
+
}, H(o(M)(
|
|
510
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
511
|
+
a.value,
|
|
512
|
+
o(T)({
|
|
513
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
514
|
+
v: a.value,
|
|
515
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
516
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
517
|
+
})
|
|
518
|
+
)), 9, vt))), 256))
|
|
519
|
+
])) : i("", !0),
|
|
520
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", dt, [
|
|
521
|
+
(r(!0), n(V, null, G(d.value.ticks, (a) => (r(), n("line", {
|
|
522
|
+
x1: a.x,
|
|
523
|
+
x2: a.x,
|
|
524
|
+
y1: l.value.bottom,
|
|
525
|
+
y2: l.value.bottom + 3,
|
|
526
|
+
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
527
|
+
"stroke-width": 1,
|
|
528
|
+
"stroke-linecap": "round"
|
|
529
|
+
}, null, 8, gt))), 256))
|
|
530
|
+
])) : i("", !0)
|
|
531
|
+
])) : i("", !0),
|
|
532
|
+
m(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
533
|
+
], 14, lt)),
|
|
534
|
+
t.$slots.watermark ? (r(), n("div", ft, [
|
|
535
|
+
m(t.$slots, "watermark", P(F({ isPrinting: o(se) || o(re) })), void 0, !0)
|
|
536
|
+
])) : i("", !0),
|
|
537
|
+
I("div", {
|
|
538
|
+
ref_key: "chartLegend",
|
|
539
|
+
ref: X
|
|
540
|
+
}, [
|
|
541
|
+
e.value.style.chart.legend.show ? (r(), C(qe, {
|
|
542
|
+
key: 0,
|
|
543
|
+
clickable: !1,
|
|
544
|
+
legendSet: le.value,
|
|
545
|
+
config: Ce.value
|
|
546
|
+
}, {
|
|
547
|
+
item: w(({ legend: a }) => [
|
|
548
|
+
o(b) ? i("", !0) : (r(), n("div", mt, [
|
|
549
|
+
I("span", yt, H(a.name) + ":", 1),
|
|
550
|
+
I("span", null, H(a.value), 1)
|
|
551
|
+
]))
|
|
552
|
+
]),
|
|
553
|
+
_: 1
|
|
554
|
+
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
555
|
+
m(t.$slots, "legend", { legend: le.value }, void 0, !0)
|
|
556
|
+
], 512),
|
|
557
|
+
t.$slots.source ? (r(), n("div", {
|
|
558
|
+
key: 5,
|
|
559
|
+
ref_key: "source",
|
|
560
|
+
ref: Y,
|
|
561
|
+
dir: "auto"
|
|
562
|
+
}, [
|
|
563
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
564
|
+
], 512)) : i("", !0),
|
|
565
|
+
o(b) ? (r(), C(Ze, { key: 6 })) : i("", !0)
|
|
566
|
+
], 46, tt));
|
|
567
|
+
}
|
|
568
|
+
}, It = /* @__PURE__ */ et(pt, [["__scopeId", "data-v-d5ec7fd2"]]);
|
|
569
|
+
export {
|
|
570
|
+
It as default
|
|
571
|
+
};
|