vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -0,0 +1,724 @@
|
|
|
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 ee, pt as te, q as ne, t as re, tt as ie } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as oe } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as se } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as s } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as fe } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as pe } from "./Title-BODtwViI.js";
|
|
12
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as ye } from "./Legend-CQTRlzK-.js";
|
|
17
|
+
import { t as be } from "./vue_ui_bullet-ClzdLoOv.js";
|
|
18
|
+
import { Fragment as c, Teleport as xe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Se, createVNode as Ce, defineAsyncComponent as m, guardReactiveProps as h, nextTick as we, normalizeClass as Te, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ee, onMounted as De, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, toRefs as Oe, unref as C, watch as ke, withCtx as w } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-bullet.vue
|
|
20
|
+
var Ae = /* @__PURE__ */ e({ default: () => T }), je = ["id"], Me = {
|
|
21
|
+
key: 1,
|
|
22
|
+
ref: "noTitle",
|
|
23
|
+
class: "vue-data-ui-no-title-space",
|
|
24
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
25
|
+
}, Ne = ["id"], Pe = [
|
|
26
|
+
"xmlns",
|
|
27
|
+
"viewBox",
|
|
28
|
+
"aria-labelledby",
|
|
29
|
+
"aria-describedby"
|
|
30
|
+
], Fe = ["id"], Ie = ["id"], Le = ["width", "height"], Re = { key: 1 }, ze = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"height",
|
|
34
|
+
"width",
|
|
35
|
+
"fill",
|
|
36
|
+
"stroke"
|
|
37
|
+
], Be = [
|
|
38
|
+
"x",
|
|
39
|
+
"y",
|
|
40
|
+
"height",
|
|
41
|
+
"width",
|
|
42
|
+
"rx",
|
|
43
|
+
"fill",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width"
|
|
46
|
+
], Ve = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"height",
|
|
50
|
+
"width",
|
|
51
|
+
"fill",
|
|
52
|
+
"stroke",
|
|
53
|
+
"stroke-width"
|
|
54
|
+
], He = [
|
|
55
|
+
"x",
|
|
56
|
+
"y",
|
|
57
|
+
"font-size",
|
|
58
|
+
"font-weight",
|
|
59
|
+
"fill"
|
|
60
|
+
], Ue = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"height",
|
|
64
|
+
"width",
|
|
65
|
+
"rx",
|
|
66
|
+
"fill",
|
|
67
|
+
"stroke",
|
|
68
|
+
"stroke-width"
|
|
69
|
+
], We = { key: 3 }, Ge = [
|
|
70
|
+
"x",
|
|
71
|
+
"y",
|
|
72
|
+
"fill",
|
|
73
|
+
"font-size",
|
|
74
|
+
"font-weight"
|
|
75
|
+
], Ke = { key: 4 }, qe = [
|
|
76
|
+
"x1",
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], Je = {
|
|
82
|
+
key: 4,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, Ye = ["id"], Xe = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "vue-ui-bullet-legend-item",
|
|
87
|
+
dir: "auto"
|
|
88
|
+
}, Ze = { style: { "margin-right": "2px" } }, T = /*#__PURE__*/ me({
|
|
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: me, emit: Ae }) {
|
|
106
|
+
let T = m(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Qe = m(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), $e = m(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), { vue_ui_bullet: et } = oe(), { isThemeValid: tt, warnInvalidTheme: nt } = de(), E = e, rt = Ae, D = y(null), it = y(null), at = y(0), ot = y(null), st = y(null), ct = y(0), O = y(null), k = y(null), lt = 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)), ut = l(() => !!I.value.debug), dt = 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 ft() {
|
|
119
|
+
if (ee(R.value) ? (ie({
|
|
120
|
+
componentName: "VueUiBullet",
|
|
121
|
+
type: "dataset",
|
|
122
|
+
debug: ut.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, ie({
|
|
133
|
+
componentName: "VueUiBullet segment",
|
|
134
|
+
type: "datasetSerieAttribute",
|
|
135
|
+
property: e,
|
|
136
|
+
index: t,
|
|
137
|
+
debug: ut.value
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}) : (M.value = !1, z.value = !0), ee(R.value) || (z.value = I.value.loading), I.value.responsive) {
|
|
141
|
+
let e = he(() => {
|
|
142
|
+
let { width: e, height: t } = ge({
|
|
143
|
+
chart: D.value,
|
|
144
|
+
title: I.value.style.chart.title.text ? it.value : null,
|
|
145
|
+
legend: I.value.style.chart.legend.show ? ot.value : null,
|
|
146
|
+
source: st.value,
|
|
147
|
+
padding: dt.value
|
|
148
|
+
}), n = (I.value.style.chart.legend.show ? 24 : 0) || 12;
|
|
149
|
+
requestAnimationFrame(() => {
|
|
150
|
+
U.value.width = e, U.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
|
+
De(() => {
|
|
158
|
+
lt.value = !0, ft();
|
|
159
|
+
});
|
|
160
|
+
let P = y(ne());
|
|
161
|
+
function F() {
|
|
162
|
+
let e = s({
|
|
163
|
+
userConfig: E.config,
|
|
164
|
+
defaultConfig: et
|
|
165
|
+
}), t = e.theme;
|
|
166
|
+
if (!t) return e;
|
|
167
|
+
if (!tt.value(e)) return nt(e), e;
|
|
168
|
+
let n = s({
|
|
169
|
+
userConfig: be[t] || E.config,
|
|
170
|
+
defaultConfig: e
|
|
171
|
+
});
|
|
172
|
+
return s({
|
|
173
|
+
userConfig: E.config,
|
|
174
|
+
defaultConfig: n
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
let I = y(F());
|
|
178
|
+
ae({
|
|
179
|
+
config: () => I.value,
|
|
180
|
+
dataset: () => E.dataset,
|
|
181
|
+
component: "VueUiBullet",
|
|
182
|
+
rules: [{
|
|
183
|
+
test: (e) => e?.segments && e?.segments.length > 8,
|
|
184
|
+
message: [
|
|
185
|
+
"👀 The number of target segments is > 8, which can make the chart hard to read and a large legend. Consider:",
|
|
186
|
+
"",
|
|
187
|
+
"▶️ Using broader segments."
|
|
188
|
+
]
|
|
189
|
+
}]
|
|
190
|
+
});
|
|
191
|
+
let pt = l(() => I.value.userOptions.useCursorPointer), mt = l(() => t({
|
|
192
|
+
defaultConfig: {
|
|
193
|
+
userOptions: { show: !1 },
|
|
194
|
+
style: { chart: {
|
|
195
|
+
backgroundColor: "#99999930",
|
|
196
|
+
segments: {
|
|
197
|
+
dataLabels: { show: !1 },
|
|
198
|
+
ticks: { stroke: "#8A8A8A" }
|
|
199
|
+
},
|
|
200
|
+
valueBar: { label: { show: !1 } }
|
|
201
|
+
} }
|
|
202
|
+
},
|
|
203
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
204
|
+
})), { loading: L, FINAL_DATASET: R, manualLoading: z } = ce({
|
|
205
|
+
...Oe(E),
|
|
206
|
+
FINAL_CONFIG: I,
|
|
207
|
+
prepareConfig: F,
|
|
208
|
+
skeletonDataset: E.config?.skeletonDataset ?? {
|
|
209
|
+
value: 100,
|
|
210
|
+
target: 100,
|
|
211
|
+
segments: [
|
|
212
|
+
{
|
|
213
|
+
name: "",
|
|
214
|
+
from: 0,
|
|
215
|
+
to: 33,
|
|
216
|
+
color: "#AAAAAA"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: "",
|
|
220
|
+
from: 33,
|
|
221
|
+
to: 66,
|
|
222
|
+
color: "#BABABA"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "",
|
|
226
|
+
from: 66,
|
|
227
|
+
to: 100,
|
|
228
|
+
color: "#CACACA"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
skeletonConfig: t({
|
|
233
|
+
defaultConfig: I.value,
|
|
234
|
+
userConfig: mt.value
|
|
235
|
+
})
|
|
236
|
+
}), { userOptionsVisible: B, setUserOptionsVisibility: ht, keepUserOptionState: V } = _e({ config: I.value }), { svgRef: H } = ve({ config: I.value.style.chart.title }), U = y({
|
|
237
|
+
width: I.value.style.chart.width,
|
|
238
|
+
height: I.value.style.chart.height
|
|
239
|
+
}), gt = l(() => U.value.width), _t = l(() => U.value.height);
|
|
240
|
+
ke(() => E.config, (e) => {
|
|
241
|
+
L.value || (I.value = F()), B.value = !I.value.userOptions.showOnChartHover, U.value.width = I.value.style.chart.width, U.value.height = I.value.style.chart.height, ft(), at.value += 1;
|
|
242
|
+
}, { deep: !0 });
|
|
243
|
+
let W = l(() => {
|
|
244
|
+
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;
|
|
245
|
+
return {
|
|
246
|
+
height: Math.max(.001, e),
|
|
247
|
+
width: Math.max(.001, t),
|
|
248
|
+
left: n,
|
|
249
|
+
right: r,
|
|
250
|
+
top: i,
|
|
251
|
+
bottom: a,
|
|
252
|
+
chartWidth: Math.max(.001, r - n),
|
|
253
|
+
chartHeight: Math.max(.001, a - i)
|
|
254
|
+
};
|
|
255
|
+
}), vt = l(() => {
|
|
256
|
+
if (!N.value) return [];
|
|
257
|
+
let e = [];
|
|
258
|
+
for (let t = 0; t < R.value.segments.length; t += 1) e.push(n(I.value.style.chart.segments.baseColor, t / R.value.segments.length));
|
|
259
|
+
return e;
|
|
260
|
+
}), G = l(() => N.value ? {
|
|
261
|
+
min: Math.min(...R.value.segments.map((e) => e.from)),
|
|
262
|
+
max: Math.max(...R.value.segments.map((e) => e.to))
|
|
263
|
+
} : {
|
|
264
|
+
min: 0,
|
|
265
|
+
max: 1
|
|
266
|
+
}), K = y(yt());
|
|
267
|
+
ke(() => R.value, (e) => {
|
|
268
|
+
e.hasOwnProperty("value") && (z.value = !1), I.value.style.chart.animation.show && !L.value ? xt(e.value || 0) : K.value = e.value || 0;
|
|
269
|
+
}, { deep: !0 });
|
|
270
|
+
function yt() {
|
|
271
|
+
return I.value.style.chart.animation.show && !L.value ? G.value.min : R.value.value || 0;
|
|
272
|
+
}
|
|
273
|
+
let bt = y(null);
|
|
274
|
+
function xt(e) {
|
|
275
|
+
let t = Math.abs(e - K.value) / I.value.style.chart.animation.animationFrames;
|
|
276
|
+
function n() {
|
|
277
|
+
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 && (bt.value = requestAnimationFrame(n));
|
|
278
|
+
}
|
|
279
|
+
n();
|
|
280
|
+
}
|
|
281
|
+
Ee(() => {
|
|
282
|
+
cancelAnimationFrame(bt.value);
|
|
283
|
+
});
|
|
284
|
+
let q = l(() => {
|
|
285
|
+
if (!N.value) return [];
|
|
286
|
+
let e = a(G.value.min, G.value.max, I.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
|
|
287
|
+
return {
|
|
288
|
+
scale: e,
|
|
289
|
+
target: { x: W.value.left + (R.value.target + t) / (e.max + t) * W.value.chartWidth - I.value.style.chart.target.width / 2 },
|
|
290
|
+
value: { width: (K.value + t) / (e.max + t) * W.value.chartWidth },
|
|
291
|
+
ticks: e.ticks.map((n) => ({
|
|
292
|
+
value: n,
|
|
293
|
+
y: W.value.bottom + I.value.style.chart.segments.dataLabels.fontSize + 3 + I.value.style.chart.segments.dataLabels.offsetY,
|
|
294
|
+
x: W.value.left + (n + t) / (e.max + t) * W.value.chartWidth
|
|
295
|
+
})),
|
|
296
|
+
chunks: R.value.segments.map((n, i) => ({
|
|
297
|
+
...n,
|
|
298
|
+
color: n.color ? r(n.color) : vt.value[i],
|
|
299
|
+
x: W.value.left + W.value.chartWidth * ((n.from + t) / (e.max + t)),
|
|
300
|
+
y: W.value.top,
|
|
301
|
+
height: W.value.chartHeight,
|
|
302
|
+
width: W.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
|
|
303
|
+
}))
|
|
304
|
+
};
|
|
305
|
+
}), J = l(() => !q.value || !q.value.chunks || !q.value.chunks.length ? [] : q.value.chunks.map((e) => {
|
|
306
|
+
let t = `${o(I.value.style.chart.segments.dataLabels.formatter, e.from, i({
|
|
307
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
308
|
+
v: e.from,
|
|
309
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
310
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
311
|
+
}))} — ${o(I.value.style.chart.segments.dataLabels.formatter, e.to, i({
|
|
312
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
313
|
+
v: e.to,
|
|
314
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
315
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
316
|
+
}))}`;
|
|
317
|
+
return {
|
|
318
|
+
...e,
|
|
319
|
+
shape: "square",
|
|
320
|
+
value: t,
|
|
321
|
+
display: `${e.name}: ${t}`
|
|
322
|
+
};
|
|
323
|
+
})), St = l(() => ({
|
|
324
|
+
cy: "bullet-div-legend",
|
|
325
|
+
backgroundColor: "transparent",
|
|
326
|
+
color: I.value.style.chart.legend.color,
|
|
327
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
328
|
+
paddingBottom: 6,
|
|
329
|
+
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
330
|
+
})), { isPrinting: Y, isImaging: X, generatePdf: Ct, generateImage: wt } = se({
|
|
331
|
+
elementId: `bullet_${P.value}`,
|
|
332
|
+
fileName: I.value.style.chart.title.text || "vue-ui-bullet",
|
|
333
|
+
options: I.value.userOptions.print
|
|
334
|
+
}), Tt = l(() => I.value.userOptions.show && !I.value.style.chart.title.text), Z = y(!1);
|
|
335
|
+
function Et(e) {
|
|
336
|
+
Z.value = e, ct.value += 1;
|
|
337
|
+
}
|
|
338
|
+
function Dt() {
|
|
339
|
+
return q.value;
|
|
340
|
+
}
|
|
341
|
+
let Q = y(!1);
|
|
342
|
+
function $() {
|
|
343
|
+
Q.value = !Q.value;
|
|
344
|
+
}
|
|
345
|
+
async function Ot({ scale: e = 2 } = {}) {
|
|
346
|
+
if (!D.value) return;
|
|
347
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
348
|
+
domElement: D.value,
|
|
349
|
+
base64: !0,
|
|
350
|
+
img: !0,
|
|
351
|
+
scale: e
|
|
352
|
+
});
|
|
353
|
+
return {
|
|
354
|
+
imageUri: i,
|
|
355
|
+
base64: a,
|
|
356
|
+
title: I.value.style.chart.title.text,
|
|
357
|
+
width: t,
|
|
358
|
+
height: n,
|
|
359
|
+
aspectRatio: r
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
let kt = l(() => J.value.map((e) => ({
|
|
363
|
+
...e,
|
|
364
|
+
name: e.display
|
|
365
|
+
}))), At = l(() => I.value.style.chart.backgroundColor), jt = l(() => I.value.style.chart.legend), { exportSvg: Mt, getSvg: Nt } = ue({
|
|
366
|
+
svg: H,
|
|
367
|
+
title: l(() => I.value.style.chart.title),
|
|
368
|
+
legend: jt,
|
|
369
|
+
legendItems: kt,
|
|
370
|
+
backgroundColor: At
|
|
371
|
+
});
|
|
372
|
+
async function Pt({ isCb: e }) {
|
|
373
|
+
j.value = !0, await we();
|
|
374
|
+
try {
|
|
375
|
+
if (e) {
|
|
376
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Nt();
|
|
377
|
+
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
378
|
+
blob: e,
|
|
379
|
+
url: t,
|
|
380
|
+
text: n,
|
|
381
|
+
dataUrl: r
|
|
382
|
+
}));
|
|
383
|
+
} else await Promise.resolve(Mt());
|
|
384
|
+
} finally {
|
|
385
|
+
j.value = !1;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function Ft(e) {
|
|
389
|
+
if (e?.stage === "start") {
|
|
390
|
+
A.value = !0;
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
if (e?.stage === "end") {
|
|
394
|
+
A.value = !1;
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
wt();
|
|
398
|
+
}
|
|
399
|
+
async function It() {
|
|
400
|
+
if (rt("copyAlt", {
|
|
401
|
+
config: I.value,
|
|
402
|
+
dataset: R.value
|
|
403
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
404
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
408
|
+
config: I.value,
|
|
409
|
+
dataset: R.value
|
|
410
|
+
}));
|
|
411
|
+
}
|
|
412
|
+
return me({
|
|
413
|
+
getData: Dt,
|
|
414
|
+
getImage: Ot,
|
|
415
|
+
generatePdf: Ct,
|
|
416
|
+
generateImage: wt,
|
|
417
|
+
generateSvg: Pt,
|
|
418
|
+
toggleAnnotator: $,
|
|
419
|
+
toggleFullscreen: Et,
|
|
420
|
+
copyAlt: It
|
|
421
|
+
}), (e, t) => (v(), f("div", {
|
|
422
|
+
ref_key: "bulletChart",
|
|
423
|
+
ref: D,
|
|
424
|
+
class: Te(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
425
|
+
style: _(`font-family:${I.value.style.fontFamily};width:100%;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
426
|
+
id: `bullet_${P.value}`,
|
|
427
|
+
onMouseenter: t[0] ||= () => C(ht)(!0),
|
|
428
|
+
onMouseleave: t[1] ||= () => C(ht)(!1)
|
|
429
|
+
}, [
|
|
430
|
+
I.value.userOptions.buttons.annotator ? (v(), u(C(Qe), {
|
|
431
|
+
key: 0,
|
|
432
|
+
svgRef: C(H),
|
|
433
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
434
|
+
color: I.value.style.chart.color,
|
|
435
|
+
active: Q.value,
|
|
436
|
+
isCursorPointer: pt.value,
|
|
437
|
+
onClose: $
|
|
438
|
+
}, {
|
|
439
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
440
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
441
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
442
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
443
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
444
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
445
|
+
_: 3
|
|
446
|
+
}, 8, [
|
|
447
|
+
"svgRef",
|
|
448
|
+
"backgroundColor",
|
|
449
|
+
"color",
|
|
450
|
+
"active",
|
|
451
|
+
"isCursorPointer"
|
|
452
|
+
])) : d("", !0),
|
|
453
|
+
Tt.value ? (v(), f("div", Me, null, 512)) : d("", !0),
|
|
454
|
+
I.value.style.chart.title.text ? (v(), f("div", {
|
|
455
|
+
key: 2,
|
|
456
|
+
ref_key: "chartTitle",
|
|
457
|
+
ref: it,
|
|
458
|
+
style: "width:100%;background:transparent;"
|
|
459
|
+
}, [(v(), u(pe, {
|
|
460
|
+
lineHeight: "1.3rem",
|
|
461
|
+
key: `title_${at.value}`,
|
|
462
|
+
config: {
|
|
463
|
+
title: {
|
|
464
|
+
cy: "bullet-div-title",
|
|
465
|
+
...I.value.style.chart.title
|
|
466
|
+
},
|
|
467
|
+
subtitle: {
|
|
468
|
+
cy: "bullet-div-subtitle",
|
|
469
|
+
...I.value.style.chart.title.subtitle
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
473
|
+
p("div", { id: `legend-top-${P.value}` }, null, 8, Ne),
|
|
474
|
+
I.value.userOptions.show && M.value && (C(V) || C(B)) ? (v(), u(C($e), {
|
|
475
|
+
key: 3,
|
|
476
|
+
ref: "details",
|
|
477
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
478
|
+
color: I.value.style.chart.color,
|
|
479
|
+
isPrinting: C(Y),
|
|
480
|
+
isImaging: C(X),
|
|
481
|
+
uid: P.value,
|
|
482
|
+
hasTooltip: !1,
|
|
483
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
484
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
485
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
486
|
+
hasXls: !1,
|
|
487
|
+
hasTable: !1,
|
|
488
|
+
hasLabel: !1,
|
|
489
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
490
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
491
|
+
isFullscreen: Z.value,
|
|
492
|
+
chartElement: D.value,
|
|
493
|
+
position: I.value.userOptions.position,
|
|
494
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
495
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
496
|
+
isAnnotation: Q.value,
|
|
497
|
+
callbacks: I.value.userOptions.callbacks,
|
|
498
|
+
printScale: I.value.userOptions.print.scale,
|
|
499
|
+
isCursorPointer: pt.value,
|
|
500
|
+
onToggleFullscreen: Et,
|
|
501
|
+
onGeneratePdf: C(Ct),
|
|
502
|
+
onGenerateImage: Ft,
|
|
503
|
+
onGenerateSvg: Pt,
|
|
504
|
+
onToggleAnnotator: $,
|
|
505
|
+
onCopyAlt: It,
|
|
506
|
+
style: _({ visibility: C(V) ? C(B) ? "visible" : "hidden" : "visible" })
|
|
507
|
+
}, Se({ _: 2 }, [
|
|
508
|
+
e.$slots.menuIcon ? {
|
|
509
|
+
name: "menuIcon",
|
|
510
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
511
|
+
isOpen: t,
|
|
512
|
+
color: n
|
|
513
|
+
})), void 0, !0)]),
|
|
514
|
+
key: "0"
|
|
515
|
+
} : void 0,
|
|
516
|
+
e.$slots.optionPdf ? {
|
|
517
|
+
name: "optionPdf",
|
|
518
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
519
|
+
key: "1"
|
|
520
|
+
} : void 0,
|
|
521
|
+
e.$slots.optionImg ? {
|
|
522
|
+
name: "optionImg",
|
|
523
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
524
|
+
key: "2"
|
|
525
|
+
} : void 0,
|
|
526
|
+
e.$slots.optionSvg ? {
|
|
527
|
+
name: "optionSvg",
|
|
528
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
529
|
+
key: "3"
|
|
530
|
+
} : void 0,
|
|
531
|
+
e.$slots.optionFullscreen ? {
|
|
532
|
+
name: "optionFullscreen",
|
|
533
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
534
|
+
toggleFullscreen: t,
|
|
535
|
+
isFullscreen: n
|
|
536
|
+
})), void 0, !0)]),
|
|
537
|
+
key: "4"
|
|
538
|
+
} : void 0,
|
|
539
|
+
e.$slots.optionAnnotator ? {
|
|
540
|
+
name: "optionAnnotator",
|
|
541
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
542
|
+
toggleAnnotator: t,
|
|
543
|
+
isAnnotator: n
|
|
544
|
+
})), void 0, !0)]),
|
|
545
|
+
key: "5"
|
|
546
|
+
} : void 0,
|
|
547
|
+
e.$slots.optionAltCopy ? {
|
|
548
|
+
name: "optionAltCopy",
|
|
549
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
550
|
+
key: "6"
|
|
551
|
+
} : void 0,
|
|
552
|
+
e.$slots["custom-menu-before"] ? {
|
|
553
|
+
name: "custom-menu-before",
|
|
554
|
+
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
555
|
+
key: "7"
|
|
556
|
+
} : void 0,
|
|
557
|
+
e.$slots["custom-menu-after"] ? {
|
|
558
|
+
name: "custom-menu-after",
|
|
559
|
+
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
560
|
+
key: "8"
|
|
561
|
+
} : void 0
|
|
562
|
+
]), 1032, [
|
|
563
|
+
"backgroundColor",
|
|
564
|
+
"color",
|
|
565
|
+
"isPrinting",
|
|
566
|
+
"isImaging",
|
|
567
|
+
"uid",
|
|
568
|
+
"hasPdf",
|
|
569
|
+
"hasImg",
|
|
570
|
+
"hasSvg",
|
|
571
|
+
"hasFullscreen",
|
|
572
|
+
"hasAltCopy",
|
|
573
|
+
"isFullscreen",
|
|
574
|
+
"chartElement",
|
|
575
|
+
"position",
|
|
576
|
+
"titles",
|
|
577
|
+
"hasAnnotator",
|
|
578
|
+
"isAnnotation",
|
|
579
|
+
"callbacks",
|
|
580
|
+
"printScale",
|
|
581
|
+
"isCursorPointer",
|
|
582
|
+
"onGeneratePdf",
|
|
583
|
+
"style"
|
|
584
|
+
])) : d("", !0),
|
|
585
|
+
(v(), f("svg", {
|
|
586
|
+
ref_key: "svgRef",
|
|
587
|
+
ref: H,
|
|
588
|
+
xmlns: C(re),
|
|
589
|
+
class: Te({
|
|
590
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
591
|
+
"vue-data-ui-fulscreen--off": !Z.value,
|
|
592
|
+
"vue-ui-bullet-svg": !0
|
|
593
|
+
}),
|
|
594
|
+
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
595
|
+
style: _(`width: 100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
|
|
596
|
+
"aria-labelledby": `bullet-svg-title-${P.value}`,
|
|
597
|
+
"aria-describedby": `bullet-svg-desc-${P.value}`
|
|
598
|
+
}, [
|
|
599
|
+
Ce(C(T)),
|
|
600
|
+
p("title", { id: `bullet-svg-title-${P.value}` }, S(I.value.style.chart.title.text || "Bullet chart"), 9, Fe),
|
|
601
|
+
p("desc", { id: `bullet-svg-desc-${P.value}` }, " Value: " + S(K.value) + ", Target: " + S(q.value.target?.value), 9, Ie),
|
|
602
|
+
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
603
|
+
key: 0,
|
|
604
|
+
x: 0,
|
|
605
|
+
y: 0,
|
|
606
|
+
width: W.value.width,
|
|
607
|
+
height: W.value.height,
|
|
608
|
+
style: { pointerEvents: "none" }
|
|
609
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : d("", !0),
|
|
610
|
+
N.value ? (v(), f("g", Re, [
|
|
611
|
+
(v(!0), f(c, null, b(q.value.chunks, (e) => (v(), f("rect", {
|
|
612
|
+
x: e.x,
|
|
613
|
+
y: e.y,
|
|
614
|
+
height: e.height,
|
|
615
|
+
width: e.width,
|
|
616
|
+
fill: e.color,
|
|
617
|
+
"stroke-width": 1,
|
|
618
|
+
stroke: I.value.style.chart.backgroundColor,
|
|
619
|
+
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
620
|
+
}, null, 8, ze))), 256)),
|
|
621
|
+
!I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
|
|
622
|
+
key: 0,
|
|
623
|
+
x: q.value.target.x,
|
|
624
|
+
y: W.value.top + (W.value.chartHeight - W.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
|
|
625
|
+
height: W.value.chartHeight * I.value.style.chart.target.heightRatio,
|
|
626
|
+
width: I.value.style.chart.target.width,
|
|
627
|
+
rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
|
|
628
|
+
fill: I.value.style.chart.target.color,
|
|
629
|
+
stroke: I.value.style.chart.target.stroke,
|
|
630
|
+
"stroke-width": I.value.style.chart.target.strokeWidth
|
|
631
|
+
}, null, 8, Be)) : d("", !0),
|
|
632
|
+
p("rect", {
|
|
633
|
+
x: W.value.left,
|
|
634
|
+
y: W.value.top + (W.value.chartHeight - W.value.chartHeight * I.value.style.chart.valueBar.heightRatio) / 2,
|
|
635
|
+
height: W.value.chartHeight * I.value.style.chart.valueBar.heightRatio,
|
|
636
|
+
width: q.value.value.width,
|
|
637
|
+
fill: I.value.style.chart.valueBar.color,
|
|
638
|
+
stroke: I.value.style.chart.valueBar.stroke,
|
|
639
|
+
"stroke-width": I.value.style.chart.valueBar.strokeWidth
|
|
640
|
+
}, null, 8, Ve),
|
|
641
|
+
I.value.style.chart.valueBar.label.show ? (v(), f("text", {
|
|
642
|
+
key: 1,
|
|
643
|
+
x: W.value.left + q.value.value.width,
|
|
644
|
+
y: W.value.top - 6 + I.value.style.chart.valueBar.label.offsetY,
|
|
645
|
+
"font-size": I.value.style.chart.valueBar.label.fontSize,
|
|
646
|
+
"font-weight": I.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
647
|
+
fill: I.value.style.chart.valueBar.label.color,
|
|
648
|
+
"text-anchor": "middle"
|
|
649
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, K.value, C(i)({
|
|
650
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
651
|
+
v: K.value,
|
|
652
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
653
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
654
|
+
}))), 9, He)) : d("", !0),
|
|
655
|
+
I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
|
|
656
|
+
key: 2,
|
|
657
|
+
x: q.value.target.x,
|
|
658
|
+
y: W.value.top + (W.value.chartHeight - W.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
|
|
659
|
+
height: W.value.chartHeight * I.value.style.chart.target.heightRatio,
|
|
660
|
+
width: I.value.style.chart.target.width,
|
|
661
|
+
rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
|
|
662
|
+
fill: I.value.style.chart.target.color,
|
|
663
|
+
stroke: I.value.style.chart.target.stroke,
|
|
664
|
+
"stroke-width": I.value.style.chart.target.strokeWidth,
|
|
665
|
+
style: { transition: "x 0.3s ease-in-out" }
|
|
666
|
+
}, null, 8, Ue)) : d("", !0),
|
|
667
|
+
I.value.style.chart.segments.dataLabels.show ? (v(), f("g", We, [(v(!0), f(c, null, b(q.value.ticks, (e) => (v(), f("text", {
|
|
668
|
+
x: e.x,
|
|
669
|
+
y: e.y,
|
|
670
|
+
"text-anchor": "middle",
|
|
671
|
+
fill: I.value.style.chart.segments.dataLabels.color,
|
|
672
|
+
"font-size": I.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
673
|
+
"font-weight": I.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
674
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, e.value, C(i)({
|
|
675
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
676
|
+
v: e.value,
|
|
677
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
678
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
679
|
+
}))), 9, Ge))), 256))])) : d("", !0),
|
|
680
|
+
I.value.style.chart.segments.dataLabels.show && I.value.style.chart.segments.ticks.show ? (v(), f("g", Ke, [(v(!0), f(c, null, b(q.value.ticks, (e) => (v(), f("line", {
|
|
681
|
+
x1: e.x,
|
|
682
|
+
x2: e.x,
|
|
683
|
+
y1: W.value.bottom,
|
|
684
|
+
y2: W.value.bottom + 3,
|
|
685
|
+
stroke: I.value.style.chart.segments.ticks.stroke,
|
|
686
|
+
"stroke-width": 1,
|
|
687
|
+
"stroke-linecap": "round"
|
|
688
|
+
}, null, 8, qe))), 256))])) : d("", !0)
|
|
689
|
+
])) : d("", !0),
|
|
690
|
+
x(e.$slots, "svg", { svg: {
|
|
691
|
+
...W.value,
|
|
692
|
+
isPrintingImg: C(Y) || C(X) || A.value,
|
|
693
|
+
isPrintingSvg: j.value
|
|
694
|
+
} }, void 0, !0)
|
|
695
|
+
], 14, Pe)),
|
|
696
|
+
e.$slots.watermark ? (v(), f("div", Je, [x(e.$slots, "watermark", g(h({ isPrinting: C(Y) || C(X) || A.value || j.value })), void 0, !0)])) : d("", !0),
|
|
697
|
+
p("div", { id: `legend-bottom-${P.value}` }, null, 8, Ye),
|
|
698
|
+
lt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(xe, {
|
|
699
|
+
key: 5,
|
|
700
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
701
|
+
}, [p("div", {
|
|
702
|
+
ref_key: "chartLegend",
|
|
703
|
+
ref: ot
|
|
704
|
+
}, [x(e.$slots, "legend", { legend: J.value }, () => [I.value.style.chart.legend.show ? (v(), u(ye, {
|
|
705
|
+
key: 0,
|
|
706
|
+
clickable: !1,
|
|
707
|
+
legendSet: J.value,
|
|
708
|
+
config: St.value
|
|
709
|
+
}, {
|
|
710
|
+
item: w(({ legend: e }) => [C(L) ? d("", !0) : (v(), f("div", Xe, [p("span", Ze, S(e.name) + ":", 1), p("span", null, S(e.value), 1)]))]),
|
|
711
|
+
_: 1
|
|
712
|
+
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
713
|
+
e.$slots.source ? (v(), f("div", {
|
|
714
|
+
key: 6,
|
|
715
|
+
ref_key: "source",
|
|
716
|
+
ref: st,
|
|
717
|
+
dir: "auto"
|
|
718
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
719
|
+
x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(le, { key: 0 })) : d("", !0)], !0)
|
|
720
|
+
], 46, je));
|
|
721
|
+
}
|
|
722
|
+
}, [["__scopeId", "data-v-c7fbc385"]]);
|
|
723
|
+
//#endregion
|
|
724
|
+
export { Ae as n, T as t };
|