vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Jt as t, Ot as n, S as r, X as i, _ as a, i as o, jt as s, pt as ee, q as te, t as ne, tt as re } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as ie } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ae } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as oe } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as c } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ue } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as de } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as fe } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as me, t as he } from "./useResponsive-ZtArZtUf.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-CQxUgOd-.js";
|
|
17
|
+
import { t as ye } from "./vue_ui_bullet-ClzdLoOv.js";
|
|
18
|
+
import { Fragment as l, Teleport as be, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as xe, createVNode as Se, defineAsyncComponent as h, guardReactiveProps as g, normalizeClass as Ce, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as we, onMounted as Te, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, toRefs as Ee, unref as w, watch as De, withCtx as T } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-bullet.vue
|
|
20
|
+
var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
21
|
+
key: 1,
|
|
22
|
+
ref: "noTitle",
|
|
23
|
+
class: "vue-data-ui-no-title-space",
|
|
24
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
25
|
+
}, je = ["id"], Me = [
|
|
26
|
+
"xmlns",
|
|
27
|
+
"viewBox",
|
|
28
|
+
"aria-labelledby",
|
|
29
|
+
"aria-describedby"
|
|
30
|
+
], Ne = ["id"], Pe = ["id"], Fe = ["width", "height"], Ie = { key: 1 }, Le = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"height",
|
|
34
|
+
"width",
|
|
35
|
+
"fill",
|
|
36
|
+
"stroke"
|
|
37
|
+
], Re = [
|
|
38
|
+
"x",
|
|
39
|
+
"y",
|
|
40
|
+
"height",
|
|
41
|
+
"width",
|
|
42
|
+
"rx",
|
|
43
|
+
"fill",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width"
|
|
46
|
+
], ze = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"height",
|
|
50
|
+
"width",
|
|
51
|
+
"fill",
|
|
52
|
+
"stroke",
|
|
53
|
+
"stroke-width"
|
|
54
|
+
], Be = [
|
|
55
|
+
"x",
|
|
56
|
+
"y",
|
|
57
|
+
"font-size",
|
|
58
|
+
"font-weight",
|
|
59
|
+
"fill"
|
|
60
|
+
], Ve = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"height",
|
|
64
|
+
"width",
|
|
65
|
+
"rx",
|
|
66
|
+
"fill",
|
|
67
|
+
"stroke",
|
|
68
|
+
"stroke-width"
|
|
69
|
+
], He = { key: 3 }, Ue = [
|
|
70
|
+
"x",
|
|
71
|
+
"y",
|
|
72
|
+
"fill",
|
|
73
|
+
"font-size",
|
|
74
|
+
"font-weight"
|
|
75
|
+
], We = { key: 4 }, Ge = [
|
|
76
|
+
"x1",
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], Ke = {
|
|
82
|
+
key: 4,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, qe = ["id"], Je = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "vue-ui-bullet-legend-item",
|
|
87
|
+
dir: "auto"
|
|
88
|
+
}, Ye = { style: { "margin-right": "2px" } }, E = /*#__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: Oe }) {
|
|
106
|
+
let E = h(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Xe = h(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ze = h(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), { vue_ui_bullet: Qe } = ae(), { isThemeValid: $e, warnInvalidTheme: et } = le(), D = e, tt = Oe, O = b(null), nt = b(null), rt = b(0), it = b(null), k = b(null), at = b(0), A = b(null), j = b(null), ot = b(!1), M = u({
|
|
107
|
+
get: () => z.value.hasOwnProperty("value"),
|
|
108
|
+
set: (e) => e
|
|
109
|
+
}), N = b(L()), P = u(() => N.value.debug), F = u(() => z.value.segments ? Array.isArray(z.value.segments) ? z.value.segments.length ? !0 : (P.value && console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\n segments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n ]\n "), M.value = !1, !1) : (P.value && console.warn("VueUiBullet: dataset segments must be an array of objects with this datastructure:\n\n segments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n ] \n "), M.value = !1, !1) : (P.value && console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\n segments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n ]\n "), M.value = !1, !1)), st = u(() => {
|
|
110
|
+
let { top: e, right: t, bottom: n, left: r } = N.value.style.chart.padding;
|
|
111
|
+
return {
|
|
112
|
+
top: e,
|
|
113
|
+
right: t,
|
|
114
|
+
bottom: n,
|
|
115
|
+
left: r
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
function ct() {
|
|
119
|
+
if (s(z.value) ? (re({
|
|
120
|
+
componentName: "VueUiBullet",
|
|
121
|
+
type: "dataset",
|
|
122
|
+
debug: P.value
|
|
123
|
+
}), B.value = !0) : F.value ? z.value.segments.forEach((e, t) => {
|
|
124
|
+
ee({
|
|
125
|
+
datasetObject: e,
|
|
126
|
+
requiredAttributes: [
|
|
127
|
+
"name",
|
|
128
|
+
"from",
|
|
129
|
+
"to"
|
|
130
|
+
]
|
|
131
|
+
}).forEach((e) => {
|
|
132
|
+
M.value = !1, re({
|
|
133
|
+
componentName: "VueUiBullet segment",
|
|
134
|
+
type: "datasetSerieAttribute",
|
|
135
|
+
property: e,
|
|
136
|
+
index: t,
|
|
137
|
+
debug: P.value
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}) : (M.value = !1, B.value = !0), s(z.value) || (B.value = N.value.loading), N.value.responsive) {
|
|
141
|
+
let e = me(() => {
|
|
142
|
+
let { width: e, height: t } = he({
|
|
143
|
+
chart: O.value,
|
|
144
|
+
title: N.value.style.chart.title.text ? nt.value : null,
|
|
145
|
+
legend: N.value.style.chart.legend.show ? it.value : null,
|
|
146
|
+
source: k.value,
|
|
147
|
+
padding: st.value
|
|
148
|
+
}), n = (N.value.style.chart.legend.show ? 24 : 0) || 12;
|
|
149
|
+
requestAnimationFrame(() => {
|
|
150
|
+
U.value.width = e, U.value.height = t - n;
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = O.value.parentNode, A.value.observe(j.value);
|
|
154
|
+
}
|
|
155
|
+
N.value.style.chart.animation.show && !R.value && vt(z.value.value || 0);
|
|
156
|
+
}
|
|
157
|
+
Te(() => {
|
|
158
|
+
ot.value = !0, ct();
|
|
159
|
+
});
|
|
160
|
+
let I = b(te());
|
|
161
|
+
function L() {
|
|
162
|
+
let e = c({
|
|
163
|
+
userConfig: D.config,
|
|
164
|
+
defaultConfig: Qe
|
|
165
|
+
}), t = e.theme;
|
|
166
|
+
if (!t) return e;
|
|
167
|
+
if (!$e.value(e)) return et(e), e;
|
|
168
|
+
let n = c({
|
|
169
|
+
userConfig: ye[t] || D.config,
|
|
170
|
+
defaultConfig: e
|
|
171
|
+
});
|
|
172
|
+
return c({
|
|
173
|
+
userConfig: D.config,
|
|
174
|
+
defaultConfig: n
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
ie({
|
|
178
|
+
config: () => N.value,
|
|
179
|
+
dataset: () => D.dataset,
|
|
180
|
+
component: "VueUiBullet",
|
|
181
|
+
rules: [{
|
|
182
|
+
test: (e) => e?.segments && e?.segments.length > 8,
|
|
183
|
+
message: [
|
|
184
|
+
"👀 The number of target segments is > 8, which can make the chart hard to read and a large legend. Consider:",
|
|
185
|
+
"",
|
|
186
|
+
"▶️ Using broader segments."
|
|
187
|
+
]
|
|
188
|
+
}]
|
|
189
|
+
});
|
|
190
|
+
let lt = u(() => N.value.userOptions.useCursorPointer), ut = u(() => t({
|
|
191
|
+
defaultConfig: {
|
|
192
|
+
userOptions: { show: !1 },
|
|
193
|
+
style: { chart: {
|
|
194
|
+
backgroundColor: "#99999930",
|
|
195
|
+
segments: {
|
|
196
|
+
dataLabels: { show: !1 },
|
|
197
|
+
ticks: { stroke: "#8A8A8A" }
|
|
198
|
+
},
|
|
199
|
+
valueBar: { label: { show: !1 } }
|
|
200
|
+
} }
|
|
201
|
+
},
|
|
202
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
203
|
+
})), { loading: R, FINAL_DATASET: z, manualLoading: B } = se({
|
|
204
|
+
...Ee(D),
|
|
205
|
+
FINAL_CONFIG: N,
|
|
206
|
+
prepareConfig: L,
|
|
207
|
+
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
208
|
+
value: 100,
|
|
209
|
+
target: 100,
|
|
210
|
+
segments: [
|
|
211
|
+
{
|
|
212
|
+
name: "",
|
|
213
|
+
from: 0,
|
|
214
|
+
to: 33,
|
|
215
|
+
color: "#AAAAAA"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "",
|
|
219
|
+
from: 33,
|
|
220
|
+
to: 66,
|
|
221
|
+
color: "#BABABA"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "",
|
|
225
|
+
from: 66,
|
|
226
|
+
to: 100,
|
|
227
|
+
color: "#CACACA"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
skeletonConfig: t({
|
|
232
|
+
defaultConfig: N.value,
|
|
233
|
+
userConfig: ut.value
|
|
234
|
+
})
|
|
235
|
+
}), { userOptionsVisible: V, setUserOptionsVisibility: dt, keepUserOptionState: ft } = ge({ config: N.value }), { svgRef: H } = _e({ config: N.value.style.chart.title }), U = b({
|
|
236
|
+
width: N.value.style.chart.width,
|
|
237
|
+
height: N.value.style.chart.height
|
|
238
|
+
}), pt = u(() => U.value.width), mt = u(() => U.value.height);
|
|
239
|
+
De(() => D.config, (e) => {
|
|
240
|
+
R.value || (N.value = L()), V.value = !N.value.userOptions.showOnChartHover, U.value.width = N.value.style.chart.width, U.value.height = N.value.style.chart.height, ct(), rt.value += 1;
|
|
241
|
+
}, { deep: !0 });
|
|
242
|
+
let W = u(() => {
|
|
243
|
+
let e = mt.value, t = pt.value, n = N.value.style.chart.padding.left, r = t - N.value.style.chart.padding.right, i = N.value.style.chart.padding.top, a = e - N.value.style.chart.padding.bottom;
|
|
244
|
+
return {
|
|
245
|
+
height: Math.max(.001, e),
|
|
246
|
+
width: Math.max(.001, t),
|
|
247
|
+
left: n,
|
|
248
|
+
right: r,
|
|
249
|
+
top: i,
|
|
250
|
+
bottom: a,
|
|
251
|
+
chartWidth: Math.max(.001, r - n),
|
|
252
|
+
chartHeight: Math.max(.001, a - i)
|
|
253
|
+
};
|
|
254
|
+
}), ht = u(() => {
|
|
255
|
+
if (!F.value) return [];
|
|
256
|
+
let e = [];
|
|
257
|
+
for (let t = 0; t < z.value.segments.length; t += 1) e.push(n(N.value.style.chart.segments.baseColor, t / z.value.segments.length));
|
|
258
|
+
return e;
|
|
259
|
+
}), G = u(() => F.value ? {
|
|
260
|
+
min: Math.min(...z.value.segments.map((e) => e.from)),
|
|
261
|
+
max: Math.max(...z.value.segments.map((e) => e.to))
|
|
262
|
+
} : {
|
|
263
|
+
min: 0,
|
|
264
|
+
max: 1
|
|
265
|
+
}), K = b(gt());
|
|
266
|
+
De(() => z.value, (e) => {
|
|
267
|
+
e.hasOwnProperty("value") && (B.value = !1), N.value.style.chart.animation.show && !R.value ? vt(e.value || 0) : K.value = e.value || 0;
|
|
268
|
+
}, { deep: !0 });
|
|
269
|
+
function gt() {
|
|
270
|
+
return N.value.style.chart.animation.show && !R.value ? G.value.min : z.value.value || 0;
|
|
271
|
+
}
|
|
272
|
+
let _t = b(null);
|
|
273
|
+
function vt(e) {
|
|
274
|
+
let t = Math.abs(e - K.value) / N.value.style.chart.animation.animationFrames;
|
|
275
|
+
function n() {
|
|
276
|
+
K.value < e ? K.value = Math.min(K.value + t, e) : K.value > e && (K.value = Math.max(K.value - t, e)), K.value !== e && (_t.value = requestAnimationFrame(n));
|
|
277
|
+
}
|
|
278
|
+
n();
|
|
279
|
+
}
|
|
280
|
+
we(() => {
|
|
281
|
+
cancelAnimationFrame(_t.value);
|
|
282
|
+
});
|
|
283
|
+
let q = u(() => {
|
|
284
|
+
if (!F.value) return [];
|
|
285
|
+
let e = a(G.value.min, G.value.max, N.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
|
|
286
|
+
return {
|
|
287
|
+
scale: e,
|
|
288
|
+
target: { x: W.value.left + (z.value.target + t) / (e.max + t) * W.value.chartWidth - N.value.style.chart.target.width / 2 },
|
|
289
|
+
value: { width: (K.value + t) / (e.max + t) * W.value.chartWidth },
|
|
290
|
+
ticks: e.ticks.map((n) => ({
|
|
291
|
+
value: n,
|
|
292
|
+
y: W.value.bottom + N.value.style.chart.segments.dataLabels.fontSize + 3 + N.value.style.chart.segments.dataLabels.offsetY,
|
|
293
|
+
x: W.value.left + (n + t) / (e.max + t) * W.value.chartWidth
|
|
294
|
+
})),
|
|
295
|
+
chunks: z.value.segments.map((n, i) => ({
|
|
296
|
+
...n,
|
|
297
|
+
color: n.color ? r(n.color) : ht.value[i],
|
|
298
|
+
x: W.value.left + W.value.chartWidth * ((n.from + t) / (e.max + t)),
|
|
299
|
+
y: W.value.top,
|
|
300
|
+
height: W.value.chartHeight,
|
|
301
|
+
width: W.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
|
|
302
|
+
}))
|
|
303
|
+
};
|
|
304
|
+
}), J = u(() => !q.value || !q.value.chunks || !q.value.chunks.length ? [] : q.value.chunks.map((e) => {
|
|
305
|
+
let t = `${o(N.value.style.chart.segments.dataLabels.formatter, e.from, i({
|
|
306
|
+
p: N.value.style.chart.segments.dataLabels.prefix,
|
|
307
|
+
v: e.from,
|
|
308
|
+
s: N.value.style.chart.segments.dataLabels.suffix,
|
|
309
|
+
r: N.value.style.chart.segments.dataLabels.rounding
|
|
310
|
+
}))} — ${o(N.value.style.chart.segments.dataLabels.formatter, e.to, i({
|
|
311
|
+
p: N.value.style.chart.segments.dataLabels.prefix,
|
|
312
|
+
v: e.to,
|
|
313
|
+
s: N.value.style.chart.segments.dataLabels.suffix,
|
|
314
|
+
r: N.value.style.chart.segments.dataLabels.rounding
|
|
315
|
+
}))}`;
|
|
316
|
+
return {
|
|
317
|
+
...e,
|
|
318
|
+
shape: "square",
|
|
319
|
+
value: t,
|
|
320
|
+
display: `${e.name}: ${t}`
|
|
321
|
+
};
|
|
322
|
+
})), yt = u(() => ({
|
|
323
|
+
cy: "bullet-div-legend",
|
|
324
|
+
backgroundColor: "transparent",
|
|
325
|
+
color: N.value.style.chart.legend.color,
|
|
326
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
327
|
+
paddingBottom: 6,
|
|
328
|
+
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
329
|
+
})), { isPrinting: Y, isImaging: X, generatePdf: bt, generateImage: xt } = oe({
|
|
330
|
+
elementId: `bullet_${I.value}`,
|
|
331
|
+
fileName: N.value.style.chart.title.text || "vue-ui-bullet",
|
|
332
|
+
options: N.value.userOptions.print
|
|
333
|
+
}), St = u(() => N.value.userOptions.show && !N.value.style.chart.title.text), Z = b(!1);
|
|
334
|
+
function Ct(e) {
|
|
335
|
+
Z.value = e, at.value += 1;
|
|
336
|
+
}
|
|
337
|
+
function wt() {
|
|
338
|
+
return q.value;
|
|
339
|
+
}
|
|
340
|
+
let Q = b(!1);
|
|
341
|
+
function $() {
|
|
342
|
+
Q.value = !Q.value;
|
|
343
|
+
}
|
|
344
|
+
async function Tt({ scale: e = 2 } = {}) {
|
|
345
|
+
if (!O.value) return;
|
|
346
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await de({
|
|
347
|
+
domElement: O.value,
|
|
348
|
+
base64: !0,
|
|
349
|
+
img: !0,
|
|
350
|
+
scale: e
|
|
351
|
+
});
|
|
352
|
+
return {
|
|
353
|
+
imageUri: i,
|
|
354
|
+
base64: a,
|
|
355
|
+
title: N.value.style.chart.title.text,
|
|
356
|
+
width: t,
|
|
357
|
+
height: n,
|
|
358
|
+
aspectRatio: r
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
let Et = u(() => J.value.map((e) => ({
|
|
362
|
+
...e,
|
|
363
|
+
name: e.display
|
|
364
|
+
}))), Dt = u(() => N.value.style.chart.backgroundColor), Ot = u(() => N.value.style.chart.legend), kt = u(() => N.value.style.chart.title), { isCallbackImaging: At, isCallbackSvg: jt, generateSvg: Mt, onGenerateImage: Nt } = ue({
|
|
365
|
+
svg: H,
|
|
366
|
+
title: kt,
|
|
367
|
+
legend: Ot,
|
|
368
|
+
legendItems: Et,
|
|
369
|
+
backgroundColor: Dt,
|
|
370
|
+
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
371
|
+
generateImage: xt
|
|
372
|
+
});
|
|
373
|
+
async function Pt() {
|
|
374
|
+
if (tt("copyAlt", {
|
|
375
|
+
config: N.value,
|
|
376
|
+
dataset: z.value
|
|
377
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
378
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
382
|
+
config: N.value,
|
|
383
|
+
dataset: z.value
|
|
384
|
+
}));
|
|
385
|
+
}
|
|
386
|
+
return pe({
|
|
387
|
+
getData: wt,
|
|
388
|
+
getImage: Tt,
|
|
389
|
+
generatePdf: bt,
|
|
390
|
+
generateImage: xt,
|
|
391
|
+
generateSvg: Mt,
|
|
392
|
+
toggleAnnotator: $,
|
|
393
|
+
toggleFullscreen: Ct,
|
|
394
|
+
copyAlt: Pt
|
|
395
|
+
}), (e, t) => (y(), p("div", {
|
|
396
|
+
ref_key: "bulletChart",
|
|
397
|
+
ref: O,
|
|
398
|
+
class: Ce(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
399
|
+
style: v(`font-family:${N.value.style.fontFamily};width:100%;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height:100%" : ""}`),
|
|
400
|
+
id: `bullet_${I.value}`,
|
|
401
|
+
onMouseenter: t[0] ||= () => w(dt)(!0),
|
|
402
|
+
onMouseleave: t[1] ||= () => w(dt)(!1)
|
|
403
|
+
}, [
|
|
404
|
+
N.value.userOptions.buttons.annotator ? (y(), d(w(Xe), {
|
|
405
|
+
key: 0,
|
|
406
|
+
svgRef: w(H),
|
|
407
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
408
|
+
color: N.value.style.chart.color,
|
|
409
|
+
active: Q.value,
|
|
410
|
+
isCursorPointer: lt.value,
|
|
411
|
+
onClose: $
|
|
412
|
+
}, {
|
|
413
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
414
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
|
|
415
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
|
|
416
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
|
|
417
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
|
|
418
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
|
|
419
|
+
_: 3
|
|
420
|
+
}, 8, [
|
|
421
|
+
"svgRef",
|
|
422
|
+
"backgroundColor",
|
|
423
|
+
"color",
|
|
424
|
+
"active",
|
|
425
|
+
"isCursorPointer"
|
|
426
|
+
])) : f("", !0),
|
|
427
|
+
St.value ? (y(), p("div", Ae, null, 512)) : f("", !0),
|
|
428
|
+
N.value.style.chart.title.text ? (y(), p("div", {
|
|
429
|
+
key: 2,
|
|
430
|
+
ref_key: "chartTitle",
|
|
431
|
+
ref: nt,
|
|
432
|
+
style: "width:100%;background:transparent;"
|
|
433
|
+
}, [(y(), d(fe, {
|
|
434
|
+
lineHeight: "1.3rem",
|
|
435
|
+
key: `title_${rt.value}`,
|
|
436
|
+
config: {
|
|
437
|
+
title: {
|
|
438
|
+
cy: "bullet-div-title",
|
|
439
|
+
...N.value.style.chart.title
|
|
440
|
+
},
|
|
441
|
+
subtitle: {
|
|
442
|
+
cy: "bullet-div-subtitle",
|
|
443
|
+
...N.value.style.chart.title.subtitle
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
447
|
+
m("div", { id: `legend-top-${I.value}` }, null, 8, je),
|
|
448
|
+
N.value.userOptions.show && M.value && (w(ft) || w(V)) ? (y(), d(w(Ze), {
|
|
449
|
+
key: 3,
|
|
450
|
+
ref: "details",
|
|
451
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
452
|
+
color: N.value.style.chart.color,
|
|
453
|
+
isPrinting: w(Y),
|
|
454
|
+
isImaging: w(X),
|
|
455
|
+
uid: I.value,
|
|
456
|
+
hasTooltip: !1,
|
|
457
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
458
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
459
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
460
|
+
hasXls: !1,
|
|
461
|
+
hasTable: !1,
|
|
462
|
+
hasLabel: !1,
|
|
463
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
464
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
465
|
+
isFullscreen: Z.value,
|
|
466
|
+
chartElement: O.value,
|
|
467
|
+
position: N.value.userOptions.position,
|
|
468
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
469
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
470
|
+
isAnnotation: Q.value,
|
|
471
|
+
callbacks: N.value.userOptions.callbacks,
|
|
472
|
+
printScale: N.value.userOptions.print.scale,
|
|
473
|
+
isCursorPointer: lt.value,
|
|
474
|
+
onToggleFullscreen: Ct,
|
|
475
|
+
onGeneratePdf: w(bt),
|
|
476
|
+
onGenerateImage: w(Nt),
|
|
477
|
+
onGenerateSvg: w(Mt),
|
|
478
|
+
onToggleAnnotator: $,
|
|
479
|
+
onCopyAlt: Pt,
|
|
480
|
+
style: v({ visibility: w(ft) ? w(V) ? "visible" : "hidden" : "visible" })
|
|
481
|
+
}, xe({ _: 2 }, [
|
|
482
|
+
e.$slots.menuIcon ? {
|
|
483
|
+
name: "menuIcon",
|
|
484
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(g({
|
|
485
|
+
isOpen: t,
|
|
486
|
+
color: n
|
|
487
|
+
})), void 0, !0)]),
|
|
488
|
+
key: "0"
|
|
489
|
+
} : void 0,
|
|
490
|
+
e.$slots.optionPdf ? {
|
|
491
|
+
name: "optionPdf",
|
|
492
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
493
|
+
key: "1"
|
|
494
|
+
} : void 0,
|
|
495
|
+
e.$slots.optionImg ? {
|
|
496
|
+
name: "optionImg",
|
|
497
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
498
|
+
key: "2"
|
|
499
|
+
} : void 0,
|
|
500
|
+
e.$slots.optionSvg ? {
|
|
501
|
+
name: "optionSvg",
|
|
502
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
503
|
+
key: "3"
|
|
504
|
+
} : void 0,
|
|
505
|
+
e.$slots.optionFullscreen ? {
|
|
506
|
+
name: "optionFullscreen",
|
|
507
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(g({
|
|
508
|
+
toggleFullscreen: t,
|
|
509
|
+
isFullscreen: n
|
|
510
|
+
})), void 0, !0)]),
|
|
511
|
+
key: "4"
|
|
512
|
+
} : void 0,
|
|
513
|
+
e.$slots.optionAnnotator ? {
|
|
514
|
+
name: "optionAnnotator",
|
|
515
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(g({
|
|
516
|
+
toggleAnnotator: t,
|
|
517
|
+
isAnnotator: n
|
|
518
|
+
})), void 0, !0)]),
|
|
519
|
+
key: "5"
|
|
520
|
+
} : void 0,
|
|
521
|
+
e.$slots.optionAltCopy ? {
|
|
522
|
+
name: "optionAltCopy",
|
|
523
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
|
|
524
|
+
key: "6"
|
|
525
|
+
} : void 0,
|
|
526
|
+
e.$slots["custom-menu-before"] ? {
|
|
527
|
+
name: "custom-menu-before",
|
|
528
|
+
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
529
|
+
key: "7"
|
|
530
|
+
} : void 0,
|
|
531
|
+
e.$slots["custom-menu-after"] ? {
|
|
532
|
+
name: "custom-menu-after",
|
|
533
|
+
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
534
|
+
key: "8"
|
|
535
|
+
} : void 0
|
|
536
|
+
]), 1032, [
|
|
537
|
+
"backgroundColor",
|
|
538
|
+
"color",
|
|
539
|
+
"isPrinting",
|
|
540
|
+
"isImaging",
|
|
541
|
+
"uid",
|
|
542
|
+
"hasPdf",
|
|
543
|
+
"hasImg",
|
|
544
|
+
"hasSvg",
|
|
545
|
+
"hasFullscreen",
|
|
546
|
+
"hasAltCopy",
|
|
547
|
+
"isFullscreen",
|
|
548
|
+
"chartElement",
|
|
549
|
+
"position",
|
|
550
|
+
"titles",
|
|
551
|
+
"hasAnnotator",
|
|
552
|
+
"isAnnotation",
|
|
553
|
+
"callbacks",
|
|
554
|
+
"printScale",
|
|
555
|
+
"isCursorPointer",
|
|
556
|
+
"onGeneratePdf",
|
|
557
|
+
"onGenerateImage",
|
|
558
|
+
"onGenerateSvg",
|
|
559
|
+
"style"
|
|
560
|
+
])) : f("", !0),
|
|
561
|
+
(y(), p("svg", {
|
|
562
|
+
ref_key: "svgRef",
|
|
563
|
+
ref: H,
|
|
564
|
+
xmlns: w(ne),
|
|
565
|
+
class: Ce({
|
|
566
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
567
|
+
"vue-data-ui-fulscreen--off": !Z.value,
|
|
568
|
+
"vue-ui-bullet-svg": !0
|
|
569
|
+
}),
|
|
570
|
+
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
571
|
+
style: v(`width: 100%; overflow: visible; background:transparent;color:${N.value.style.chart.color}`),
|
|
572
|
+
"aria-labelledby": `bullet-svg-title-${I.value}`,
|
|
573
|
+
"aria-describedby": `bullet-svg-desc-${I.value}`
|
|
574
|
+
}, [
|
|
575
|
+
Se(w(E)),
|
|
576
|
+
m("title", { id: `bullet-svg-title-${I.value}` }, C(N.value.style.chart.title.text || "Bullet chart"), 9, Ne),
|
|
577
|
+
m("desc", { id: `bullet-svg-desc-${I.value}` }, " Value: " + C(K.value) + ", Target: " + C(q.value.target?.value), 9, Pe),
|
|
578
|
+
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
579
|
+
key: 0,
|
|
580
|
+
x: 0,
|
|
581
|
+
y: 0,
|
|
582
|
+
width: W.value.width,
|
|
583
|
+
height: W.value.height,
|
|
584
|
+
style: { pointerEvents: "none" }
|
|
585
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Fe)) : f("", !0),
|
|
586
|
+
F.value ? (y(), p("g", Ie, [
|
|
587
|
+
(y(!0), p(l, null, x(q.value.chunks, (e) => (y(), p("rect", {
|
|
588
|
+
x: e.x,
|
|
589
|
+
y: e.y,
|
|
590
|
+
height: e.height,
|
|
591
|
+
width: e.width,
|
|
592
|
+
fill: e.color,
|
|
593
|
+
"stroke-width": 1,
|
|
594
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
595
|
+
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
596
|
+
}, null, 8, Le))), 256)),
|
|
597
|
+
!N.value.style.chart.target.onTop && N.value.style.chart.target.show ? (y(), p("rect", {
|
|
598
|
+
key: 0,
|
|
599
|
+
x: q.value.target.x,
|
|
600
|
+
y: W.value.top + (W.value.chartHeight - W.value.chartHeight * N.value.style.chart.target.heightRatio) / 2,
|
|
601
|
+
height: W.value.chartHeight * N.value.style.chart.target.heightRatio,
|
|
602
|
+
width: N.value.style.chart.target.width,
|
|
603
|
+
rx: N.value.style.chart.target.rounded ? N.value.style.chart.target.width / 2 : 0,
|
|
604
|
+
fill: N.value.style.chart.target.color,
|
|
605
|
+
stroke: N.value.style.chart.target.stroke,
|
|
606
|
+
"stroke-width": N.value.style.chart.target.strokeWidth
|
|
607
|
+
}, null, 8, Re)) : f("", !0),
|
|
608
|
+
m("rect", {
|
|
609
|
+
x: W.value.left,
|
|
610
|
+
y: W.value.top + (W.value.chartHeight - W.value.chartHeight * N.value.style.chart.valueBar.heightRatio) / 2,
|
|
611
|
+
height: W.value.chartHeight * N.value.style.chart.valueBar.heightRatio,
|
|
612
|
+
width: q.value.value.width,
|
|
613
|
+
fill: N.value.style.chart.valueBar.color,
|
|
614
|
+
stroke: N.value.style.chart.valueBar.stroke,
|
|
615
|
+
"stroke-width": N.value.style.chart.valueBar.strokeWidth
|
|
616
|
+
}, null, 8, ze),
|
|
617
|
+
N.value.style.chart.valueBar.label.show ? (y(), p("text", {
|
|
618
|
+
key: 1,
|
|
619
|
+
x: W.value.left + q.value.value.width,
|
|
620
|
+
y: W.value.top - 6 + N.value.style.chart.valueBar.label.offsetY,
|
|
621
|
+
"font-size": N.value.style.chart.valueBar.label.fontSize,
|
|
622
|
+
"font-weight": N.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
623
|
+
fill: N.value.style.chart.valueBar.label.color,
|
|
624
|
+
"text-anchor": "middle"
|
|
625
|
+
}, C(w(o)(N.value.style.chart.segments.dataLabels.formatter, K.value, w(i)({
|
|
626
|
+
p: N.value.style.chart.segments.dataLabels.prefix,
|
|
627
|
+
v: K.value,
|
|
628
|
+
s: N.value.style.chart.segments.dataLabels.suffix,
|
|
629
|
+
r: N.value.style.chart.segments.dataLabels.rounding
|
|
630
|
+
}))), 9, Be)) : f("", !0),
|
|
631
|
+
N.value.style.chart.target.onTop && N.value.style.chart.target.show ? (y(), p("rect", {
|
|
632
|
+
key: 2,
|
|
633
|
+
x: q.value.target.x,
|
|
634
|
+
y: W.value.top + (W.value.chartHeight - W.value.chartHeight * N.value.style.chart.target.heightRatio) / 2,
|
|
635
|
+
height: W.value.chartHeight * N.value.style.chart.target.heightRatio,
|
|
636
|
+
width: N.value.style.chart.target.width,
|
|
637
|
+
rx: N.value.style.chart.target.rounded ? N.value.style.chart.target.width / 2 : 0,
|
|
638
|
+
fill: N.value.style.chart.target.color,
|
|
639
|
+
stroke: N.value.style.chart.target.stroke,
|
|
640
|
+
"stroke-width": N.value.style.chart.target.strokeWidth,
|
|
641
|
+
style: { transition: "x 0.3s ease-in-out" }
|
|
642
|
+
}, null, 8, Ve)) : f("", !0),
|
|
643
|
+
N.value.style.chart.segments.dataLabels.show ? (y(), p("g", He, [(y(!0), p(l, null, x(q.value.ticks, (e) => (y(), p("text", {
|
|
644
|
+
x: e.x,
|
|
645
|
+
y: e.y,
|
|
646
|
+
"text-anchor": "middle",
|
|
647
|
+
fill: N.value.style.chart.segments.dataLabels.color,
|
|
648
|
+
"font-size": N.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
649
|
+
"font-weight": N.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
650
|
+
}, C(w(o)(N.value.style.chart.segments.dataLabels.formatter, e.value, w(i)({
|
|
651
|
+
p: N.value.style.chart.segments.dataLabels.prefix,
|
|
652
|
+
v: e.value,
|
|
653
|
+
s: N.value.style.chart.segments.dataLabels.suffix,
|
|
654
|
+
r: N.value.style.chart.segments.dataLabels.rounding
|
|
655
|
+
}))), 9, Ue))), 256))])) : f("", !0),
|
|
656
|
+
N.value.style.chart.segments.dataLabels.show && N.value.style.chart.segments.ticks.show ? (y(), p("g", We, [(y(!0), p(l, null, x(q.value.ticks, (e) => (y(), p("line", {
|
|
657
|
+
x1: e.x,
|
|
658
|
+
x2: e.x,
|
|
659
|
+
y1: W.value.bottom,
|
|
660
|
+
y2: W.value.bottom + 3,
|
|
661
|
+
stroke: N.value.style.chart.segments.ticks.stroke,
|
|
662
|
+
"stroke-width": 1,
|
|
663
|
+
"stroke-linecap": "round"
|
|
664
|
+
}, null, 8, Ge))), 256))])) : f("", !0)
|
|
665
|
+
])) : f("", !0),
|
|
666
|
+
S(e.$slots, "svg", { svg: {
|
|
667
|
+
...W.value,
|
|
668
|
+
isPrintingImg: w(Y) || w(X) || w(At),
|
|
669
|
+
isPrintingSvg: w(jt)
|
|
670
|
+
} }, void 0, !0)
|
|
671
|
+
], 14, Me)),
|
|
672
|
+
e.$slots.watermark ? (y(), p("div", Ke, [S(e.$slots, "watermark", _(g({ isPrinting: w(Y) || w(X) || w(At) || w(jt) })), void 0, !0)])) : f("", !0),
|
|
673
|
+
m("div", { id: `legend-bottom-${I.value}` }, null, 8, qe),
|
|
674
|
+
ot.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (y(), d(be, {
|
|
675
|
+
key: 5,
|
|
676
|
+
to: N.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
677
|
+
}, [m("div", {
|
|
678
|
+
ref_key: "chartLegend",
|
|
679
|
+
ref: it
|
|
680
|
+
}, [S(e.$slots, "legend", { legend: J.value }, () => [N.value.style.chart.legend.show ? (y(), d(ve, {
|
|
681
|
+
key: 0,
|
|
682
|
+
clickable: !1,
|
|
683
|
+
legendSet: J.value,
|
|
684
|
+
config: yt.value
|
|
685
|
+
}, {
|
|
686
|
+
item: T(({ legend: e }) => [w(R) ? f("", !0) : (y(), p("div", Je, [m("span", Ye, C(e.name) + ":", 1), m("span", null, C(e.value), 1)]))]),
|
|
687
|
+
_: 1
|
|
688
|
+
}, 8, ["legendSet", "config"])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
689
|
+
e.$slots.source ? (y(), p("div", {
|
|
690
|
+
key: 6,
|
|
691
|
+
ref_key: "source",
|
|
692
|
+
ref: k,
|
|
693
|
+
dir: "auto"
|
|
694
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
695
|
+
S(e.$slots, "skeleton", {}, () => [w(R) ? (y(), d(ce, { key: 0 })) : f("", !0)], !0)
|
|
696
|
+
], 46, ke));
|
|
697
|
+
}
|
|
698
|
+
}, [["__scopeId", "data-v-5912378f"]]);
|
|
699
|
+
//#endregion
|
|
700
|
+
export { Oe as n, E as t };
|