vue-data-ui 3.20.11 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
- 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-bump.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-dag.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-geo.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-stackline.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-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +5 -1
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
- package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
- package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
- package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
- package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
- package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
- package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
- package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
- package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
- package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
- package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
- package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
- package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
- package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
- package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
- package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
- package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
- package/dist/vue-ui-xy-omDIF90L.js +0 -4744
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { G as t, H as n, Ht as r, St as i, Tt as a, X as ee, ct as te, h as ne, i as o, t as re, y as ie } from "./lib-AJRHFE5U.js";
|
|
3
|
+
import { t as ae } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
+
import { t as oe } from "./usePrinter-6n2MzVyV.js";
|
|
5
|
+
import { n as se, t as ce } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
+
import { t as le } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as s } from "./useNestedProp-DtcXIg7n.js";
|
|
8
|
+
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as de } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as fe } from "./Title-DH6G8_cZ.js";
|
|
11
|
+
import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as me } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as he } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as ve } from "./Legend-BLhREbj7.js";
|
|
17
|
+
import { t as ye } from "./vue_ui_bullet-ClzdLoOv.js";
|
|
18
|
+
import { Fragment as c, Teleport as be, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as xe, createVNode as Se, defineAsyncComponent as m, guardReactiveProps as h, nextTick as Ce, normalizeClass as we, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Te, onMounted as Ee, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, toRefs as De, unref as C, watch as Oe, withCtx as w } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-bullet.vue
|
|
20
|
+
var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
21
|
+
key: 1,
|
|
22
|
+
ref: "noTitle",
|
|
23
|
+
class: "vue-data-ui-no-title-space",
|
|
24
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
25
|
+
}, Me = ["id"], Ne = [
|
|
26
|
+
"xmlns",
|
|
27
|
+
"viewBox",
|
|
28
|
+
"aria-labelledby",
|
|
29
|
+
"aria-describedby"
|
|
30
|
+
], Pe = ["id"], Fe = ["id"], Ie = ["width", "height"], Le = { key: 1 }, Re = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"height",
|
|
34
|
+
"width",
|
|
35
|
+
"fill",
|
|
36
|
+
"stroke"
|
|
37
|
+
], ze = [
|
|
38
|
+
"x",
|
|
39
|
+
"y",
|
|
40
|
+
"height",
|
|
41
|
+
"width",
|
|
42
|
+
"rx",
|
|
43
|
+
"fill",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width"
|
|
46
|
+
], Be = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"height",
|
|
50
|
+
"width",
|
|
51
|
+
"fill",
|
|
52
|
+
"stroke",
|
|
53
|
+
"stroke-width"
|
|
54
|
+
], Ve = [
|
|
55
|
+
"x",
|
|
56
|
+
"y",
|
|
57
|
+
"font-size",
|
|
58
|
+
"font-weight",
|
|
59
|
+
"fill"
|
|
60
|
+
], He = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"height",
|
|
64
|
+
"width",
|
|
65
|
+
"rx",
|
|
66
|
+
"fill",
|
|
67
|
+
"stroke",
|
|
68
|
+
"stroke-width"
|
|
69
|
+
], Ue = { key: 3 }, We = [
|
|
70
|
+
"x",
|
|
71
|
+
"y",
|
|
72
|
+
"fill",
|
|
73
|
+
"font-size",
|
|
74
|
+
"font-weight"
|
|
75
|
+
], Ge = { key: 4 }, Ke = [
|
|
76
|
+
"x1",
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], qe = {
|
|
82
|
+
key: 4,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, Je = ["id"], Ye = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "vue-ui-bullet-legend-item",
|
|
87
|
+
dir: "auto"
|
|
88
|
+
}, Xe = { style: { "margin-right": "2px" } }, T = /* @__PURE__ */ pe({
|
|
89
|
+
__name: "vue-ui-bullet",
|
|
90
|
+
props: {
|
|
91
|
+
config: {
|
|
92
|
+
type: Object,
|
|
93
|
+
default() {
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
dataset: {
|
|
98
|
+
type: Object,
|
|
99
|
+
default() {
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
emits: ["copyAlt"],
|
|
105
|
+
setup(e, { expose: pe, emit: ke }) {
|
|
106
|
+
let T = m(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Ze = m(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Qe = m(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), { vue_ui_bullet: $e } = ae(), { isThemeValid: et, warnInvalidTheme: tt } = ue(), E = e, nt = ke, D = y(null), rt = y(null), it = y(0), at = y(null), ot = y(null), st = y(0), O = y(null), k = y(null), ct = y(!1), A = y(!1), j = y(!1), M = l({
|
|
107
|
+
get: () => R.value.hasOwnProperty("value"),
|
|
108
|
+
set: (e) => e
|
|
109
|
+
}), N = l(() => R.value.segments ? Array.isArray(R.value.segments) ? R.value.segments.length ? !0 : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), M.value = !1, !1) : (console.warn("VueUiBullet: dataset segments must be an array of objects with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n] \n "), M.value = !1, !1) : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), M.value = !1, !1)), lt = l(() => !!I.value.debug), ut = l(() => {
|
|
110
|
+
let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
|
|
111
|
+
return {
|
|
112
|
+
top: e,
|
|
113
|
+
right: t,
|
|
114
|
+
bottom: n,
|
|
115
|
+
left: r
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
function dt() {
|
|
119
|
+
if (a(R.value) ? (ee({
|
|
120
|
+
componentName: "VueUiBullet",
|
|
121
|
+
type: "dataset",
|
|
122
|
+
debug: lt.value
|
|
123
|
+
}), z.value = !0) : N.value ? R.value.segments.forEach((e, t) => {
|
|
124
|
+
te({
|
|
125
|
+
datasetObject: e,
|
|
126
|
+
requiredAttributes: [
|
|
127
|
+
"name",
|
|
128
|
+
"from",
|
|
129
|
+
"to"
|
|
130
|
+
]
|
|
131
|
+
}).forEach((e) => {
|
|
132
|
+
M.value = !1, ee({
|
|
133
|
+
componentName: "VueUiBullet segment",
|
|
134
|
+
type: "datasetSerieAttribute",
|
|
135
|
+
property: e,
|
|
136
|
+
index: t,
|
|
137
|
+
debug: lt.value
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}) : (M.value = !1, z.value = !0), a(R.value) || (z.value = I.value.loading), I.value.responsive) {
|
|
141
|
+
let e = me(() => {
|
|
142
|
+
let { width: e, height: t } = he({
|
|
143
|
+
chart: D.value,
|
|
144
|
+
title: I.value.style.chart.title.text ? rt.value : null,
|
|
145
|
+
legend: I.value.style.chart.legend.show ? at.value : null,
|
|
146
|
+
source: ot.value,
|
|
147
|
+
padding: ut.value
|
|
148
|
+
}), n = (I.value.style.chart.legend.show ? 24 : 0) || 12;
|
|
149
|
+
requestAnimationFrame(() => {
|
|
150
|
+
H.value.width = e, H.value.height = t - n;
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value.parentNode, O.value.observe(k.value);
|
|
154
|
+
}
|
|
155
|
+
I.value.style.chart.animation.show && !L.value && xt(R.value.value || 0);
|
|
156
|
+
}
|
|
157
|
+
Ee(() => {
|
|
158
|
+
ct.value = !0, dt();
|
|
159
|
+
});
|
|
160
|
+
let P = y(n());
|
|
161
|
+
function F() {
|
|
162
|
+
let e = s({
|
|
163
|
+
userConfig: E.config,
|
|
164
|
+
defaultConfig: $e
|
|
165
|
+
}), t = e.theme;
|
|
166
|
+
if (!t) return e;
|
|
167
|
+
if (!et.value(e)) return tt(e), e;
|
|
168
|
+
let n = s({
|
|
169
|
+
userConfig: ye[t] || E.config,
|
|
170
|
+
defaultConfig: e
|
|
171
|
+
});
|
|
172
|
+
return s({
|
|
173
|
+
userConfig: E.config,
|
|
174
|
+
defaultConfig: n
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
let I = y(F()), ft = l(() => I.value.userOptions.useCursorPointer), pt = l(() => r({
|
|
178
|
+
defaultConfig: {
|
|
179
|
+
userOptions: { show: !1 },
|
|
180
|
+
style: { chart: {
|
|
181
|
+
backgroundColor: "#99999930",
|
|
182
|
+
segments: {
|
|
183
|
+
dataLabels: { show: !1 },
|
|
184
|
+
ticks: { stroke: "#8A8A8A" }
|
|
185
|
+
},
|
|
186
|
+
valueBar: { label: { show: !1 } }
|
|
187
|
+
} }
|
|
188
|
+
},
|
|
189
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
190
|
+
})), { loading: L, FINAL_DATASET: R, manualLoading: z } = se({
|
|
191
|
+
...De(E),
|
|
192
|
+
FINAL_CONFIG: I,
|
|
193
|
+
prepareConfig: F,
|
|
194
|
+
skeletonDataset: E.config?.skeletonDataset ?? {
|
|
195
|
+
value: 100,
|
|
196
|
+
target: 100,
|
|
197
|
+
segments: [
|
|
198
|
+
{
|
|
199
|
+
name: "",
|
|
200
|
+
from: 0,
|
|
201
|
+
to: 33,
|
|
202
|
+
color: "#AAAAAA"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "",
|
|
206
|
+
from: 33,
|
|
207
|
+
to: 66,
|
|
208
|
+
color: "#BABABA"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "",
|
|
212
|
+
from: 66,
|
|
213
|
+
to: 100,
|
|
214
|
+
color: "#CACACA"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
skeletonConfig: r({
|
|
219
|
+
defaultConfig: I.value,
|
|
220
|
+
userConfig: pt.value
|
|
221
|
+
})
|
|
222
|
+
}), { userOptionsVisible: B, setUserOptionsVisibility: mt, keepUserOptionState: ht } = ge({ config: I.value }), { svgRef: V } = _e({ config: I.value.style.chart.title }), H = y({
|
|
223
|
+
width: I.value.style.chart.width,
|
|
224
|
+
height: I.value.style.chart.height
|
|
225
|
+
}), gt = l(() => H.value.width), _t = l(() => H.value.height);
|
|
226
|
+
Oe(() => E.config, (e) => {
|
|
227
|
+
L.value || (I.value = F()), B.value = !I.value.userOptions.showOnChartHover, H.value.width = I.value.style.chart.width, H.value.height = I.value.style.chart.height, dt(), it.value += 1;
|
|
228
|
+
}, { deep: !0 });
|
|
229
|
+
let U = l(() => {
|
|
230
|
+
let e = _t.value, t = gt.value, n = I.value.style.chart.padding.left, r = t - I.value.style.chart.padding.right, i = I.value.style.chart.padding.top, a = e - I.value.style.chart.padding.bottom;
|
|
231
|
+
return {
|
|
232
|
+
height: Math.max(.001, e),
|
|
233
|
+
width: Math.max(.001, t),
|
|
234
|
+
left: n,
|
|
235
|
+
right: r,
|
|
236
|
+
top: i,
|
|
237
|
+
bottom: a,
|
|
238
|
+
chartWidth: Math.max(.001, r - n),
|
|
239
|
+
chartHeight: Math.max(.001, a - i)
|
|
240
|
+
};
|
|
241
|
+
}), vt = l(() => {
|
|
242
|
+
if (!N.value) return [];
|
|
243
|
+
let e = [];
|
|
244
|
+
for (let t = 0; t < R.value.segments.length; t += 1) e.push(i(I.value.style.chart.segments.baseColor, t / R.value.segments.length));
|
|
245
|
+
return e;
|
|
246
|
+
}), W = l(() => N.value ? {
|
|
247
|
+
min: Math.min(...R.value.segments.map((e) => e.from)),
|
|
248
|
+
max: Math.max(...R.value.segments.map((e) => e.to))
|
|
249
|
+
} : {
|
|
250
|
+
min: 0,
|
|
251
|
+
max: 1
|
|
252
|
+
}), G = y(yt());
|
|
253
|
+
Oe(() => R.value, (e) => {
|
|
254
|
+
e.hasOwnProperty("value") && (z.value = !1), I.value.style.chart.animation.show && !L.value ? xt(e.value || 0) : G.value = e.value || 0;
|
|
255
|
+
}, { deep: !0 });
|
|
256
|
+
function yt() {
|
|
257
|
+
return I.value.style.chart.animation.show && !L.value ? W.value.min : R.value.value || 0;
|
|
258
|
+
}
|
|
259
|
+
let bt = y(null);
|
|
260
|
+
function xt(e) {
|
|
261
|
+
let t = Math.abs(e - G.value) / I.value.style.chart.animation.animationFrames;
|
|
262
|
+
function n() {
|
|
263
|
+
G.value < e ? G.value = Math.min(G.value + t, e) : G.value > e && (G.value = Math.max(G.value - t, e)), G.value !== e && (bt.value = requestAnimationFrame(n));
|
|
264
|
+
}
|
|
265
|
+
n();
|
|
266
|
+
}
|
|
267
|
+
Te(() => {
|
|
268
|
+
cancelAnimationFrame(bt.value);
|
|
269
|
+
});
|
|
270
|
+
let K = l(() => {
|
|
271
|
+
if (!N.value) return [];
|
|
272
|
+
let e = ne(W.value.min, W.value.max, I.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
|
|
273
|
+
return {
|
|
274
|
+
scale: e,
|
|
275
|
+
target: { x: U.value.left + (R.value.target + t) / (e.max + t) * U.value.chartWidth - I.value.style.chart.target.width / 2 },
|
|
276
|
+
value: { width: (G.value + t) / (e.max + t) * U.value.chartWidth },
|
|
277
|
+
ticks: e.ticks.map((n) => ({
|
|
278
|
+
value: n,
|
|
279
|
+
y: U.value.bottom + I.value.style.chart.segments.dataLabels.fontSize + 3 + I.value.style.chart.segments.dataLabels.offsetY,
|
|
280
|
+
x: U.value.left + (n + t) / (e.max + t) * U.value.chartWidth
|
|
281
|
+
})),
|
|
282
|
+
chunks: R.value.segments.map((n, r) => ({
|
|
283
|
+
...n,
|
|
284
|
+
color: n.color ? ie(n.color) : vt.value[r],
|
|
285
|
+
x: U.value.left + U.value.chartWidth * ((n.from + t) / (e.max + t)),
|
|
286
|
+
y: U.value.top,
|
|
287
|
+
height: U.value.chartHeight,
|
|
288
|
+
width: U.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
|
|
289
|
+
}))
|
|
290
|
+
};
|
|
291
|
+
}), q = l(() => !K.value || !K.value.chunks || !K.value.chunks.length ? [] : K.value.chunks.map((e) => {
|
|
292
|
+
let n = `${o(I.value.style.chart.segments.dataLabels.formatter, e.from, t({
|
|
293
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
294
|
+
v: e.from,
|
|
295
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
296
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
297
|
+
}))} — ${o(I.value.style.chart.segments.dataLabels.formatter, e.to, t({
|
|
298
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
299
|
+
v: e.to,
|
|
300
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
301
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
302
|
+
}))}`;
|
|
303
|
+
return {
|
|
304
|
+
...e,
|
|
305
|
+
shape: "square",
|
|
306
|
+
value: n,
|
|
307
|
+
display: `${e.name}: ${n}`
|
|
308
|
+
};
|
|
309
|
+
})), St = l(() => ({
|
|
310
|
+
cy: "bullet-div-legend",
|
|
311
|
+
backgroundColor: "transparent",
|
|
312
|
+
color: I.value.style.chart.legend.color,
|
|
313
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
314
|
+
paddingBottom: 6,
|
|
315
|
+
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
316
|
+
})), { isPrinting: J, isImaging: Y, generatePdf: Ct, generateImage: X } = oe({
|
|
317
|
+
elementId: `bullet_${P.value}`,
|
|
318
|
+
fileName: I.value.style.chart.title.text || "vue-ui-bullet",
|
|
319
|
+
options: I.value.userOptions.print
|
|
320
|
+
}), wt = l(() => I.value.userOptions.show && !I.value.style.chart.title.text), Z = y(!1);
|
|
321
|
+
function Tt(e) {
|
|
322
|
+
Z.value = e, st.value += 1;
|
|
323
|
+
}
|
|
324
|
+
function Et() {
|
|
325
|
+
return K.value;
|
|
326
|
+
}
|
|
327
|
+
let Q = y(!1);
|
|
328
|
+
function $() {
|
|
329
|
+
Q.value = !Q.value;
|
|
330
|
+
}
|
|
331
|
+
async function Dt({ scale: e = 2 } = {}) {
|
|
332
|
+
if (!D.value) return;
|
|
333
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await de({
|
|
334
|
+
domElement: D.value,
|
|
335
|
+
base64: !0,
|
|
336
|
+
img: !0,
|
|
337
|
+
scale: e
|
|
338
|
+
});
|
|
339
|
+
return {
|
|
340
|
+
imageUri: i,
|
|
341
|
+
base64: a,
|
|
342
|
+
title: I.value.style.chart.title.text,
|
|
343
|
+
width: t,
|
|
344
|
+
height: n,
|
|
345
|
+
aspectRatio: r
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
let Ot = l(() => q.value.map((e) => ({
|
|
349
|
+
...e,
|
|
350
|
+
name: e.display
|
|
351
|
+
}))), kt = l(() => I.value.style.chart.backgroundColor), At = l(() => I.value.style.chart.legend), { exportSvg: jt, getSvg: Mt } = le({
|
|
352
|
+
svg: V,
|
|
353
|
+
title: l(() => I.value.style.chart.title),
|
|
354
|
+
legend: At,
|
|
355
|
+
legendItems: Ot,
|
|
356
|
+
backgroundColor: kt
|
|
357
|
+
});
|
|
358
|
+
async function Nt({ isCb: e }) {
|
|
359
|
+
j.value = !0, await Ce();
|
|
360
|
+
try {
|
|
361
|
+
if (e) {
|
|
362
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Mt();
|
|
363
|
+
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
364
|
+
blob: e,
|
|
365
|
+
url: t,
|
|
366
|
+
text: n,
|
|
367
|
+
dataUrl: r
|
|
368
|
+
}));
|
|
369
|
+
} else await Promise.resolve(jt());
|
|
370
|
+
} finally {
|
|
371
|
+
j.value = !1;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function Pt(e) {
|
|
375
|
+
if (e?.stage === "start") {
|
|
376
|
+
A.value = !0;
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (e?.stage === "end") {
|
|
380
|
+
A.value = !1;
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
X();
|
|
384
|
+
}
|
|
385
|
+
async function Ft() {
|
|
386
|
+
if (nt("copyAlt", {
|
|
387
|
+
config: I.value,
|
|
388
|
+
dataset: R.value
|
|
389
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
390
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
394
|
+
config: I.value,
|
|
395
|
+
dataset: R.value
|
|
396
|
+
}));
|
|
397
|
+
}
|
|
398
|
+
return pe({
|
|
399
|
+
getData: Et,
|
|
400
|
+
getImage: Dt,
|
|
401
|
+
generatePdf: Ct,
|
|
402
|
+
generateImage: X,
|
|
403
|
+
generateSvg: Nt,
|
|
404
|
+
toggleAnnotator: $,
|
|
405
|
+
toggleFullscreen: Tt,
|
|
406
|
+
copyAlt: Ft
|
|
407
|
+
}), (e, n) => (v(), f("div", {
|
|
408
|
+
ref_key: "bulletChart",
|
|
409
|
+
ref: D,
|
|
410
|
+
class: we(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
411
|
+
style: _(`font-family:${I.value.style.fontFamily};width:100%;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
412
|
+
id: `bullet_${P.value}`,
|
|
413
|
+
onMouseenter: n[0] ||= () => C(mt)(!0),
|
|
414
|
+
onMouseleave: n[1] ||= () => C(mt)(!1)
|
|
415
|
+
}, [
|
|
416
|
+
I.value.userOptions.buttons.annotator ? (v(), u(C(Ze), {
|
|
417
|
+
key: 0,
|
|
418
|
+
svgRef: C(V),
|
|
419
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
420
|
+
color: I.value.style.chart.color,
|
|
421
|
+
active: Q.value,
|
|
422
|
+
isCursorPointer: ft.value,
|
|
423
|
+
onClose: $
|
|
424
|
+
}, {
|
|
425
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
426
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
427
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
428
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
429
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
430
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
431
|
+
_: 3
|
|
432
|
+
}, 8, [
|
|
433
|
+
"svgRef",
|
|
434
|
+
"backgroundColor",
|
|
435
|
+
"color",
|
|
436
|
+
"active",
|
|
437
|
+
"isCursorPointer"
|
|
438
|
+
])) : d("", !0),
|
|
439
|
+
wt.value ? (v(), f("div", je, null, 512)) : d("", !0),
|
|
440
|
+
I.value.style.chart.title.text ? (v(), f("div", {
|
|
441
|
+
key: 2,
|
|
442
|
+
ref_key: "chartTitle",
|
|
443
|
+
ref: rt,
|
|
444
|
+
style: "width:100%;background:transparent;"
|
|
445
|
+
}, [(v(), u(fe, {
|
|
446
|
+
lineHeight: "1.3rem",
|
|
447
|
+
key: `title_${it.value}`,
|
|
448
|
+
config: {
|
|
449
|
+
title: {
|
|
450
|
+
cy: "bullet-div-title",
|
|
451
|
+
...I.value.style.chart.title
|
|
452
|
+
},
|
|
453
|
+
subtitle: {
|
|
454
|
+
cy: "bullet-div-subtitle",
|
|
455
|
+
...I.value.style.chart.title.subtitle
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
459
|
+
p("div", { id: `legend-top-${P.value}` }, null, 8, Me),
|
|
460
|
+
I.value.userOptions.show && M.value && (C(ht) || C(B)) ? (v(), u(C(Qe), {
|
|
461
|
+
key: 3,
|
|
462
|
+
ref: "details",
|
|
463
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
464
|
+
color: I.value.style.chart.color,
|
|
465
|
+
isPrinting: C(J),
|
|
466
|
+
isImaging: C(Y),
|
|
467
|
+
uid: P.value,
|
|
468
|
+
hasTooltip: !1,
|
|
469
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
470
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
471
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
472
|
+
hasXls: !1,
|
|
473
|
+
hasTable: !1,
|
|
474
|
+
hasLabel: !1,
|
|
475
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
476
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
477
|
+
isFullscreen: Z.value,
|
|
478
|
+
chartElement: D.value,
|
|
479
|
+
position: I.value.userOptions.position,
|
|
480
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
481
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
482
|
+
isAnnotation: Q.value,
|
|
483
|
+
callbacks: I.value.userOptions.callbacks,
|
|
484
|
+
printScale: I.value.userOptions.print.scale,
|
|
485
|
+
isCursorPointer: ft.value,
|
|
486
|
+
onToggleFullscreen: Tt,
|
|
487
|
+
onGeneratePdf: C(Ct),
|
|
488
|
+
onGenerateImage: Pt,
|
|
489
|
+
onGenerateSvg: Nt,
|
|
490
|
+
onToggleAnnotator: $,
|
|
491
|
+
onCopyAlt: Ft,
|
|
492
|
+
style: _({ visibility: C(ht) ? C(B) ? "visible" : "hidden" : "visible" })
|
|
493
|
+
}, xe({ _: 2 }, [
|
|
494
|
+
e.$slots.menuIcon ? {
|
|
495
|
+
name: "menuIcon",
|
|
496
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
497
|
+
isOpen: t,
|
|
498
|
+
color: n
|
|
499
|
+
})), void 0, !0)]),
|
|
500
|
+
key: "0"
|
|
501
|
+
} : void 0,
|
|
502
|
+
e.$slots.optionPdf ? {
|
|
503
|
+
name: "optionPdf",
|
|
504
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
505
|
+
key: "1"
|
|
506
|
+
} : void 0,
|
|
507
|
+
e.$slots.optionImg ? {
|
|
508
|
+
name: "optionImg",
|
|
509
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
510
|
+
key: "2"
|
|
511
|
+
} : void 0,
|
|
512
|
+
e.$slots.optionSvg ? {
|
|
513
|
+
name: "optionSvg",
|
|
514
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
515
|
+
key: "3"
|
|
516
|
+
} : void 0,
|
|
517
|
+
e.$slots.optionFullscreen ? {
|
|
518
|
+
name: "optionFullscreen",
|
|
519
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
520
|
+
toggleFullscreen: t,
|
|
521
|
+
isFullscreen: n
|
|
522
|
+
})), void 0, !0)]),
|
|
523
|
+
key: "4"
|
|
524
|
+
} : void 0,
|
|
525
|
+
e.$slots.optionAnnotator ? {
|
|
526
|
+
name: "optionAnnotator",
|
|
527
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
528
|
+
toggleAnnotator: t,
|
|
529
|
+
isAnnotator: n
|
|
530
|
+
})), void 0, !0)]),
|
|
531
|
+
key: "5"
|
|
532
|
+
} : void 0,
|
|
533
|
+
e.$slots.optionAltCopy ? {
|
|
534
|
+
name: "optionAltCopy",
|
|
535
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
536
|
+
key: "6"
|
|
537
|
+
} : void 0,
|
|
538
|
+
e.$slots["custom-menu-before"] ? {
|
|
539
|
+
name: "custom-menu-before",
|
|
540
|
+
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
541
|
+
key: "7"
|
|
542
|
+
} : void 0,
|
|
543
|
+
e.$slots["custom-menu-after"] ? {
|
|
544
|
+
name: "custom-menu-after",
|
|
545
|
+
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
546
|
+
key: "8"
|
|
547
|
+
} : void 0
|
|
548
|
+
]), 1032, [
|
|
549
|
+
"backgroundColor",
|
|
550
|
+
"color",
|
|
551
|
+
"isPrinting",
|
|
552
|
+
"isImaging",
|
|
553
|
+
"uid",
|
|
554
|
+
"hasPdf",
|
|
555
|
+
"hasImg",
|
|
556
|
+
"hasSvg",
|
|
557
|
+
"hasFullscreen",
|
|
558
|
+
"hasAltCopy",
|
|
559
|
+
"isFullscreen",
|
|
560
|
+
"chartElement",
|
|
561
|
+
"position",
|
|
562
|
+
"titles",
|
|
563
|
+
"hasAnnotator",
|
|
564
|
+
"isAnnotation",
|
|
565
|
+
"callbacks",
|
|
566
|
+
"printScale",
|
|
567
|
+
"isCursorPointer",
|
|
568
|
+
"onGeneratePdf",
|
|
569
|
+
"style"
|
|
570
|
+
])) : d("", !0),
|
|
571
|
+
(v(), f("svg", {
|
|
572
|
+
ref_key: "svgRef",
|
|
573
|
+
ref: V,
|
|
574
|
+
xmlns: C(re),
|
|
575
|
+
class: we({
|
|
576
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
577
|
+
"vue-data-ui-fulscreen--off": !Z.value,
|
|
578
|
+
"vue-ui-bullet-svg": !0
|
|
579
|
+
}),
|
|
580
|
+
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
581
|
+
style: _(`width: 100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
|
|
582
|
+
"aria-labelledby": `bullet-svg-title-${P.value}`,
|
|
583
|
+
"aria-describedby": `bullet-svg-desc-${P.value}`
|
|
584
|
+
}, [
|
|
585
|
+
Se(C(T)),
|
|
586
|
+
p("title", { id: `bullet-svg-title-${P.value}` }, S(I.value.style.chart.title.text || "Bullet chart"), 9, Pe),
|
|
587
|
+
p("desc", { id: `bullet-svg-desc-${P.value}` }, " Value: " + S(G.value) + ", Target: " + S(K.value.target?.value), 9, Fe),
|
|
588
|
+
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
589
|
+
key: 0,
|
|
590
|
+
x: 0,
|
|
591
|
+
y: 0,
|
|
592
|
+
width: U.value.width,
|
|
593
|
+
height: U.value.height,
|
|
594
|
+
style: { pointerEvents: "none" }
|
|
595
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : d("", !0),
|
|
596
|
+
N.value ? (v(), f("g", Le, [
|
|
597
|
+
(v(!0), f(c, null, b(K.value.chunks, (e) => (v(), f("rect", {
|
|
598
|
+
x: e.x,
|
|
599
|
+
y: e.y,
|
|
600
|
+
height: e.height,
|
|
601
|
+
width: e.width,
|
|
602
|
+
fill: e.color,
|
|
603
|
+
"stroke-width": 1,
|
|
604
|
+
stroke: I.value.style.chart.backgroundColor,
|
|
605
|
+
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
606
|
+
}, null, 8, Re))), 256)),
|
|
607
|
+
!I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
|
|
608
|
+
key: 0,
|
|
609
|
+
x: K.value.target.x,
|
|
610
|
+
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
|
|
611
|
+
height: U.value.chartHeight * I.value.style.chart.target.heightRatio,
|
|
612
|
+
width: I.value.style.chart.target.width,
|
|
613
|
+
rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
|
|
614
|
+
fill: I.value.style.chart.target.color,
|
|
615
|
+
stroke: I.value.style.chart.target.stroke,
|
|
616
|
+
"stroke-width": I.value.style.chart.target.strokeWidth
|
|
617
|
+
}, null, 8, ze)) : d("", !0),
|
|
618
|
+
p("rect", {
|
|
619
|
+
x: U.value.left,
|
|
620
|
+
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * I.value.style.chart.valueBar.heightRatio) / 2,
|
|
621
|
+
height: U.value.chartHeight * I.value.style.chart.valueBar.heightRatio,
|
|
622
|
+
width: K.value.value.width,
|
|
623
|
+
fill: I.value.style.chart.valueBar.color,
|
|
624
|
+
stroke: I.value.style.chart.valueBar.stroke,
|
|
625
|
+
"stroke-width": I.value.style.chart.valueBar.strokeWidth
|
|
626
|
+
}, null, 8, Be),
|
|
627
|
+
I.value.style.chart.valueBar.label.show ? (v(), f("text", {
|
|
628
|
+
key: 1,
|
|
629
|
+
x: U.value.left + K.value.value.width,
|
|
630
|
+
y: U.value.top - 6 + I.value.style.chart.valueBar.label.offsetY,
|
|
631
|
+
"font-size": I.value.style.chart.valueBar.label.fontSize,
|
|
632
|
+
"font-weight": I.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
633
|
+
fill: I.value.style.chart.valueBar.label.color,
|
|
634
|
+
"text-anchor": "middle"
|
|
635
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, G.value, C(t)({
|
|
636
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
637
|
+
v: G.value,
|
|
638
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
639
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
640
|
+
}))), 9, Ve)) : d("", !0),
|
|
641
|
+
I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
|
|
642
|
+
key: 2,
|
|
643
|
+
x: K.value.target.x,
|
|
644
|
+
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
|
|
645
|
+
height: U.value.chartHeight * I.value.style.chart.target.heightRatio,
|
|
646
|
+
width: I.value.style.chart.target.width,
|
|
647
|
+
rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
|
|
648
|
+
fill: I.value.style.chart.target.color,
|
|
649
|
+
stroke: I.value.style.chart.target.stroke,
|
|
650
|
+
"stroke-width": I.value.style.chart.target.strokeWidth,
|
|
651
|
+
style: { transition: "x 0.3s ease-in-out" }
|
|
652
|
+
}, null, 8, He)) : d("", !0),
|
|
653
|
+
I.value.style.chart.segments.dataLabels.show ? (v(), f("g", Ue, [(v(!0), f(c, null, b(K.value.ticks, (e) => (v(), f("text", {
|
|
654
|
+
x: e.x,
|
|
655
|
+
y: e.y,
|
|
656
|
+
"text-anchor": "middle",
|
|
657
|
+
fill: I.value.style.chart.segments.dataLabels.color,
|
|
658
|
+
"font-size": I.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
659
|
+
"font-weight": I.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
660
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, e.value, C(t)({
|
|
661
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
662
|
+
v: e.value,
|
|
663
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
664
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
665
|
+
}))), 9, We))), 256))])) : d("", !0),
|
|
666
|
+
I.value.style.chart.segments.dataLabels.show && I.value.style.chart.segments.ticks.show ? (v(), f("g", Ge, [(v(!0), f(c, null, b(K.value.ticks, (e) => (v(), f("line", {
|
|
667
|
+
x1: e.x,
|
|
668
|
+
x2: e.x,
|
|
669
|
+
y1: U.value.bottom,
|
|
670
|
+
y2: U.value.bottom + 3,
|
|
671
|
+
stroke: I.value.style.chart.segments.ticks.stroke,
|
|
672
|
+
"stroke-width": 1,
|
|
673
|
+
"stroke-linecap": "round"
|
|
674
|
+
}, null, 8, Ke))), 256))])) : d("", !0)
|
|
675
|
+
])) : d("", !0),
|
|
676
|
+
x(e.$slots, "svg", { svg: {
|
|
677
|
+
...U.value,
|
|
678
|
+
isPrintingImg: C(J) || C(Y) || A.value,
|
|
679
|
+
isPrintingSvg: j.value
|
|
680
|
+
} }, void 0, !0)
|
|
681
|
+
], 14, Ne)),
|
|
682
|
+
e.$slots.watermark ? (v(), f("div", qe, [x(e.$slots, "watermark", g(h({ isPrinting: C(J) || C(Y) || A.value || j.value })), void 0, !0)])) : d("", !0),
|
|
683
|
+
p("div", { id: `legend-bottom-${P.value}` }, null, 8, Je),
|
|
684
|
+
ct.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(be, {
|
|
685
|
+
key: 5,
|
|
686
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
687
|
+
}, [p("div", {
|
|
688
|
+
ref_key: "chartLegend",
|
|
689
|
+
ref: at
|
|
690
|
+
}, [x(e.$slots, "legend", { legend: q.value }, () => [I.value.style.chart.legend.show ? (v(), u(ve, {
|
|
691
|
+
key: 0,
|
|
692
|
+
clickable: !1,
|
|
693
|
+
legendSet: q.value,
|
|
694
|
+
config: St.value
|
|
695
|
+
}, {
|
|
696
|
+
item: w(({ legend: e }) => [C(L) ? d("", !0) : (v(), f("div", Ye, [p("span", Xe, S(e.name) + ":", 1), p("span", null, S(e.value), 1)]))]),
|
|
697
|
+
_: 1
|
|
698
|
+
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
699
|
+
e.$slots.source ? (v(), f("div", {
|
|
700
|
+
key: 6,
|
|
701
|
+
ref_key: "source",
|
|
702
|
+
ref: ot,
|
|
703
|
+
dir: "auto"
|
|
704
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
705
|
+
x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(ce, { key: 0 })) : d("", !0)], !0)
|
|
706
|
+
], 46, Ae));
|
|
707
|
+
}
|
|
708
|
+
}, [["__scopeId", "data-v-2040c43b"]]);
|
|
709
|
+
//#endregion
|
|
710
|
+
export { ke as n, T as t };
|