vue-data-ui 3.25.2 → 3.25.4
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-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-label.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,700 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { At as t, Nt as n, S as r, X as i, Xt as a, _ as ee, i as o, mt as te, nt as ne, q as re, t as ie } from "./lib-BPg41jWd.js";
|
|
3
|
-
import { n as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as oe } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as se } from "./usePrinter-CsDAx75S.js";
|
|
6
|
-
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as s } from "./useNestedProp-fNUUtYXm.js";
|
|
8
|
-
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as de } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as fe } from "./img-EYBQVkRw.js";
|
|
11
|
-
import { n as pe } from "./Title-BLrnZl5j.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-BQxAKh7g.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, 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__*/ 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: ke }) {
|
|
106
|
-
let T = m(() => import("./PackageVersion-DWq6mo_q.js").then((e) => e.t)), Ze = m(() => import("./PenAndPaper-Co2OSRzH.js").then((e) => e.t)), Qe = m(() => import("./UserOptions-pq95M7ss.js").then((e) => e.n)), { vue_ui_bullet: $e } = oe(), { isThemeValid: et, warnInvalidTheme: tt } = ue(), E = e, nt = ke, D = y(null), rt = y(null), it = y(0), O = y(null), at = y(null), ot = y(0), k = y(null), A = y(null), st = y(!1), j = l({
|
|
107
|
-
get: () => R.value.hasOwnProperty("value"),
|
|
108
|
-
set: (e) => e
|
|
109
|
-
}), M = y(I()), N = l(() => M.value.debug), P = l(() => R.value.segments ? Array.isArray(R.value.segments) ? R.value.segments.length ? !0 : (N.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 "), j.value = !1, !1) : (N.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 "), j.value = !1, !1) : (N.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 "), j.value = !1, !1)), ct = l(() => {
|
|
110
|
-
let { top: e, right: t, bottom: n, left: r } = M.value.style.chart.padding;
|
|
111
|
-
return {
|
|
112
|
-
top: e,
|
|
113
|
-
right: t,
|
|
114
|
-
bottom: n,
|
|
115
|
-
left: r
|
|
116
|
-
};
|
|
117
|
-
});
|
|
118
|
-
function lt() {
|
|
119
|
-
if (n(R.value) ? (ne({
|
|
120
|
-
componentName: "VueUiBullet",
|
|
121
|
-
type: "dataset",
|
|
122
|
-
debug: N.value
|
|
123
|
-
}), z.value = !0) : P.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
|
-
j.value = !1, ne({
|
|
133
|
-
componentName: "VueUiBullet segment",
|
|
134
|
-
type: "datasetSerieAttribute",
|
|
135
|
-
property: e,
|
|
136
|
-
index: t,
|
|
137
|
-
debug: N.value
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
}) : (j.value = !1, z.value = !0), n(R.value) || (z.value = M.value.loading), M.value.responsive) {
|
|
141
|
-
let e = he(() => {
|
|
142
|
-
let { width: e, height: t } = ge({
|
|
143
|
-
chart: D.value,
|
|
144
|
-
title: M.value.style.chart.title.text ? rt.value : null,
|
|
145
|
-
legend: M.value.style.chart.legend.show ? O.value : null,
|
|
146
|
-
source: at.value,
|
|
147
|
-
padding: ct.value
|
|
148
|
-
}), n = (M.value.style.chart.legend.show ? 24 : 0) || 12;
|
|
149
|
-
requestAnimationFrame(() => {
|
|
150
|
-
H.value.width = e, H.value.height = t - n;
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = D.value.parentNode, k.value.observe(A.value);
|
|
154
|
-
}
|
|
155
|
-
M.value.style.chart.animation.show && !L.value && yt(R.value.value || 0);
|
|
156
|
-
}
|
|
157
|
-
Ee(() => {
|
|
158
|
-
st.value = !0, lt();
|
|
159
|
-
});
|
|
160
|
-
let F = y(re());
|
|
161
|
-
function I() {
|
|
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: be[t] || E.config,
|
|
170
|
-
defaultConfig: e
|
|
171
|
-
});
|
|
172
|
-
return s({
|
|
173
|
-
userConfig: E.config,
|
|
174
|
-
defaultConfig: n
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
ae({
|
|
178
|
-
config: () => M.value,
|
|
179
|
-
dataset: () => E.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 ut = l(() => M.value.userOptions.useCursorPointer), dt = l(() => a({
|
|
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: M.value.skeletonConfig ?? {}
|
|
203
|
-
})), { loading: L, FINAL_DATASET: R, manualLoading: z } = ce({
|
|
204
|
-
...De(E),
|
|
205
|
-
FINAL_CONFIG: M,
|
|
206
|
-
prepareConfig: I,
|
|
207
|
-
skeletonDataset: E.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: a({
|
|
232
|
-
defaultConfig: M.value,
|
|
233
|
-
userConfig: dt.value
|
|
234
|
-
})
|
|
235
|
-
}), { userOptionsVisible: B, setUserOptionsVisibility: ft, keepUserOptionState: pt } = _e({ config: M.value }), { svgRef: V } = ve({ config: M.value.style.chart.title }), H = y({
|
|
236
|
-
width: M.value.style.chart.width,
|
|
237
|
-
height: M.value.style.chart.height
|
|
238
|
-
}), mt = l(() => H.value.width), ht = l(() => H.value.height);
|
|
239
|
-
Oe(() => E.config, (e) => {
|
|
240
|
-
L.value || (M.value = I()), B.value = !M.value.userOptions.showOnChartHover, H.value.width = M.value.style.chart.width, H.value.height = M.value.style.chart.height, lt(), it.value += 1;
|
|
241
|
-
}, { deep: !0 });
|
|
242
|
-
let U = l(() => {
|
|
243
|
-
let e = ht.value, t = mt.value, n = M.value.style.chart.padding.left, r = t - M.value.style.chart.padding.right, i = M.value.style.chart.padding.top, a = e - M.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
|
-
}), gt = l(() => {
|
|
255
|
-
if (!P.value) return [];
|
|
256
|
-
let e = [];
|
|
257
|
-
for (let n = 0; n < R.value.segments.length; n += 1) e.push(t(M.value.style.chart.segments.baseColor, n / R.value.segments.length));
|
|
258
|
-
return e;
|
|
259
|
-
}), W = l(() => P.value ? {
|
|
260
|
-
min: Math.min(...R.value.segments.map((e) => e.from)),
|
|
261
|
-
max: Math.max(...R.value.segments.map((e) => e.to))
|
|
262
|
-
} : {
|
|
263
|
-
min: 0,
|
|
264
|
-
max: 1
|
|
265
|
-
}), G = y(_t());
|
|
266
|
-
Oe(() => R.value, (e) => {
|
|
267
|
-
e.hasOwnProperty("value") && (z.value = !1), M.value.style.chart.animation.show && !L.value ? yt(e.value || 0) : G.value = e.value || 0;
|
|
268
|
-
}, { deep: !0 });
|
|
269
|
-
function _t() {
|
|
270
|
-
return M.value.style.chart.animation.show && !L.value ? W.value.min : R.value.value || 0;
|
|
271
|
-
}
|
|
272
|
-
let vt = y(null);
|
|
273
|
-
function yt(e) {
|
|
274
|
-
let t = Math.abs(e - G.value) / M.value.style.chart.animation.animationFrames;
|
|
275
|
-
function n() {
|
|
276
|
-
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 && (vt.value = requestAnimationFrame(n));
|
|
277
|
-
}
|
|
278
|
-
n();
|
|
279
|
-
}
|
|
280
|
-
Te(() => {
|
|
281
|
-
cancelAnimationFrame(vt.value);
|
|
282
|
-
});
|
|
283
|
-
let K = l(() => {
|
|
284
|
-
if (!P.value) return [];
|
|
285
|
-
let e = ee(W.value.min, W.value.max, M.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
|
|
286
|
-
return {
|
|
287
|
-
scale: e,
|
|
288
|
-
target: { x: U.value.left + (R.value.target + t) / (e.max + t) * U.value.chartWidth - M.value.style.chart.target.width / 2 },
|
|
289
|
-
value: { width: (G.value + t) / (e.max + t) * U.value.chartWidth },
|
|
290
|
-
ticks: e.ticks.map((n) => ({
|
|
291
|
-
value: n,
|
|
292
|
-
y: U.value.bottom + M.value.style.chart.segments.dataLabels.fontSize + 3 + M.value.style.chart.segments.dataLabels.offsetY,
|
|
293
|
-
x: U.value.left + (n + t) / (e.max + t) * U.value.chartWidth
|
|
294
|
-
})),
|
|
295
|
-
chunks: R.value.segments.map((n, i) => ({
|
|
296
|
-
...n,
|
|
297
|
-
color: n.color ? r(n.color) : gt.value[i],
|
|
298
|
-
x: U.value.left + U.value.chartWidth * ((n.from + t) / (e.max + t)),
|
|
299
|
-
y: U.value.top,
|
|
300
|
-
height: U.value.chartHeight,
|
|
301
|
-
width: U.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
|
|
302
|
-
}))
|
|
303
|
-
};
|
|
304
|
-
}), q = l(() => !K.value || !K.value.chunks || !K.value.chunks.length ? [] : K.value.chunks.map((e) => {
|
|
305
|
-
let t = `${o(M.value.style.chart.segments.dataLabels.formatter, e.from, i({
|
|
306
|
-
p: M.value.style.chart.segments.dataLabels.prefix,
|
|
307
|
-
v: e.from,
|
|
308
|
-
s: M.value.style.chart.segments.dataLabels.suffix,
|
|
309
|
-
r: M.value.style.chart.segments.dataLabels.rounding
|
|
310
|
-
}))} — ${o(M.value.style.chart.segments.dataLabels.formatter, e.to, i({
|
|
311
|
-
p: M.value.style.chart.segments.dataLabels.prefix,
|
|
312
|
-
v: e.to,
|
|
313
|
-
s: M.value.style.chart.segments.dataLabels.suffix,
|
|
314
|
-
r: M.value.style.chart.segments.dataLabels.rounding
|
|
315
|
-
}))}`;
|
|
316
|
-
return {
|
|
317
|
-
...e,
|
|
318
|
-
shape: "square",
|
|
319
|
-
value: t,
|
|
320
|
-
display: `${e.name}: ${t}`
|
|
321
|
-
};
|
|
322
|
-
})), bt = l(() => ({
|
|
323
|
-
cy: "bullet-div-legend",
|
|
324
|
-
backgroundColor: "transparent",
|
|
325
|
-
color: M.value.style.chart.legend.color,
|
|
326
|
-
fontSize: M.value.style.chart.legend.fontSize,
|
|
327
|
-
paddingBottom: 6,
|
|
328
|
-
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
329
|
-
})), { isPrinting: J, isImaging: Y, generatePdf: xt, generateImage: St } = se({
|
|
330
|
-
elementId: `bullet_${F.value}`,
|
|
331
|
-
fileName: M.value.style.chart.title.text || "vue-ui-bullet",
|
|
332
|
-
options: M.value.userOptions.print
|
|
333
|
-
}), Ct = l(() => M.value.userOptions.show && !M.value.style.chart.title.text), X = y(!1);
|
|
334
|
-
function Z(e) {
|
|
335
|
-
X.value = e, ot.value += 1;
|
|
336
|
-
}
|
|
337
|
-
function wt() {
|
|
338
|
-
return K.value;
|
|
339
|
-
}
|
|
340
|
-
let Q = y(!1);
|
|
341
|
-
function $() {
|
|
342
|
-
Q.value = !Q.value;
|
|
343
|
-
}
|
|
344
|
-
async function Tt({ scale: e = 2 } = {}) {
|
|
345
|
-
if (!D.value) return;
|
|
346
|
-
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
347
|
-
domElement: D.value,
|
|
348
|
-
base64: !0,
|
|
349
|
-
img: !0,
|
|
350
|
-
scale: e
|
|
351
|
-
});
|
|
352
|
-
return {
|
|
353
|
-
imageUri: i,
|
|
354
|
-
base64: a,
|
|
355
|
-
title: M.value.style.chart.title.text,
|
|
356
|
-
width: t,
|
|
357
|
-
height: n,
|
|
358
|
-
aspectRatio: r
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
let Et = l(() => q.value.map((e) => ({
|
|
362
|
-
...e,
|
|
363
|
-
name: e.display
|
|
364
|
-
}))), Dt = l(() => M.value.style.chart.backgroundColor), Ot = l(() => M.value.style.chart.legend), kt = l(() => M.value.style.chart.title), { isCallbackImaging: At, isCallbackSvg: jt, generateSvg: Mt, onGenerateImage: Nt } = de({
|
|
365
|
-
svg: V,
|
|
366
|
-
title: kt,
|
|
367
|
-
legend: Ot,
|
|
368
|
-
legendItems: Et,
|
|
369
|
-
backgroundColor: Dt,
|
|
370
|
-
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
371
|
-
generateImage: St
|
|
372
|
-
});
|
|
373
|
-
async function Pt() {
|
|
374
|
-
if (nt("copyAlt", {
|
|
375
|
-
config: M.value,
|
|
376
|
-
dataset: R.value
|
|
377
|
-
}), !M.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(M.value.userOptions.callbacks.altCopy({
|
|
382
|
-
config: M.value,
|
|
383
|
-
dataset: R.value
|
|
384
|
-
}));
|
|
385
|
-
}
|
|
386
|
-
return me({
|
|
387
|
-
getData: wt,
|
|
388
|
-
getImage: Tt,
|
|
389
|
-
generatePdf: xt,
|
|
390
|
-
generateImage: St,
|
|
391
|
-
generateSvg: Mt,
|
|
392
|
-
toggleAnnotator: $,
|
|
393
|
-
toggleFullscreen: Z,
|
|
394
|
-
copyAlt: Pt
|
|
395
|
-
}), (e, t) => (v(), f("div", {
|
|
396
|
-
ref_key: "bulletChart",
|
|
397
|
-
ref: D,
|
|
398
|
-
class: we(`vue-data-ui-component vue-ui-bullet ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
399
|
-
style: _(`font-family:${M.value.style.fontFamily};width:100%;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height:100%" : ""}`),
|
|
400
|
-
id: `bullet_${F.value}`,
|
|
401
|
-
onMouseenter: t[0] ||= () => C(ft)(!0),
|
|
402
|
-
onMouseleave: t[1] ||= () => C(ft)(!1)
|
|
403
|
-
}, [
|
|
404
|
-
M.value.userOptions.buttons.annotator ? (v(), u(C(Ze), {
|
|
405
|
-
key: 0,
|
|
406
|
-
svgRef: C(V),
|
|
407
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
408
|
-
color: M.value.style.chart.color,
|
|
409
|
-
active: Q.value,
|
|
410
|
-
isCursorPointer: ut.value,
|
|
411
|
-
onClose: $
|
|
412
|
-
}, {
|
|
413
|
-
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
414
|
-
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
415
|
-
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
416
|
-
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
417
|
-
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
418
|
-
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
419
|
-
_: 3
|
|
420
|
-
}, 8, [
|
|
421
|
-
"svgRef",
|
|
422
|
-
"backgroundColor",
|
|
423
|
-
"color",
|
|
424
|
-
"active",
|
|
425
|
-
"isCursorPointer"
|
|
426
|
-
])) : d("", !0),
|
|
427
|
-
Ct.value ? (v(), f("div", je, null, 512)) : d("", !0),
|
|
428
|
-
M.value.style.chart.title.text ? (v(), f("div", {
|
|
429
|
-
key: 2,
|
|
430
|
-
ref_key: "chartTitle",
|
|
431
|
-
ref: rt,
|
|
432
|
-
style: "width:100%;background:transparent;"
|
|
433
|
-
}, [(v(), u(pe, {
|
|
434
|
-
lineHeight: "1.3rem",
|
|
435
|
-
key: `title_${it.value}`,
|
|
436
|
-
config: {
|
|
437
|
-
title: {
|
|
438
|
-
cy: "bullet-div-title",
|
|
439
|
-
...M.value.style.chart.title
|
|
440
|
-
},
|
|
441
|
-
subtitle: {
|
|
442
|
-
cy: "bullet-div-subtitle",
|
|
443
|
-
...M.value.style.chart.title.subtitle
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
447
|
-
p("div", { id: `legend-top-${F.value}` }, null, 8, Me),
|
|
448
|
-
M.value.userOptions.show && j.value && (C(pt) || C(B)) ? (v(), u(C(Qe), {
|
|
449
|
-
key: 3,
|
|
450
|
-
ref: "details",
|
|
451
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
452
|
-
color: M.value.style.chart.color,
|
|
453
|
-
isPrinting: C(J),
|
|
454
|
-
isImaging: C(Y),
|
|
455
|
-
uid: F.value,
|
|
456
|
-
hasTooltip: !1,
|
|
457
|
-
hasPdf: M.value.userOptions.buttons.pdf,
|
|
458
|
-
hasImg: M.value.userOptions.buttons.img,
|
|
459
|
-
hasSvg: M.value.userOptions.buttons.svg,
|
|
460
|
-
hasXls: !1,
|
|
461
|
-
hasTable: !1,
|
|
462
|
-
hasLabel: !1,
|
|
463
|
-
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
464
|
-
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
465
|
-
isFullscreen: X.value,
|
|
466
|
-
chartElement: D.value,
|
|
467
|
-
position: M.value.userOptions.position,
|
|
468
|
-
titles: { ...M.value.userOptions.buttonTitles },
|
|
469
|
-
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
470
|
-
isAnnotation: Q.value,
|
|
471
|
-
callbacks: M.value.userOptions.callbacks,
|
|
472
|
-
printScale: M.value.userOptions.print.scale,
|
|
473
|
-
isCursorPointer: ut.value,
|
|
474
|
-
onToggleFullscreen: Z,
|
|
475
|
-
onGeneratePdf: C(xt),
|
|
476
|
-
onGenerateImage: C(Nt),
|
|
477
|
-
onGenerateSvg: C(Mt),
|
|
478
|
-
onToggleAnnotator: $,
|
|
479
|
-
onCopyAlt: Pt,
|
|
480
|
-
style: _({ visibility: C(pt) ? C(B) ? "visible" : "hidden" : "visible" })
|
|
481
|
-
}, Se({ _: 2 }, [
|
|
482
|
-
e.$slots.menuIcon ? {
|
|
483
|
-
name: "menuIcon",
|
|
484
|
-
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
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: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
493
|
-
key: "1"
|
|
494
|
-
} : void 0,
|
|
495
|
-
e.$slots.optionImg ? {
|
|
496
|
-
name: "optionImg",
|
|
497
|
-
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
498
|
-
key: "2"
|
|
499
|
-
} : void 0,
|
|
500
|
-
e.$slots.optionSvg ? {
|
|
501
|
-
name: "optionSvg",
|
|
502
|
-
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
503
|
-
key: "3"
|
|
504
|
-
} : void 0,
|
|
505
|
-
e.$slots.optionFullscreen ? {
|
|
506
|
-
name: "optionFullscreen",
|
|
507
|
-
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
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: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
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: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
524
|
-
key: "6"
|
|
525
|
-
} : void 0,
|
|
526
|
-
e.$slots["custom-menu-before"] ? {
|
|
527
|
-
name: "custom-menu-before",
|
|
528
|
-
fn: w(() => [x(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: w(() => [x(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
|
-
])) : d("", !0),
|
|
561
|
-
(v(), f("svg", {
|
|
562
|
-
ref_key: "svgRef",
|
|
563
|
-
ref: V,
|
|
564
|
-
xmlns: C(ie),
|
|
565
|
-
class: we({
|
|
566
|
-
"vue-data-ui-fullscreen--on": X.value,
|
|
567
|
-
"vue-data-ui-fulscreen--off": !X.value,
|
|
568
|
-
"vue-ui-bullet-svg": !0
|
|
569
|
-
}),
|
|
570
|
-
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
571
|
-
style: _(`width: 100%; overflow: visible; background:transparent;color:${M.value.style.chart.color}`),
|
|
572
|
-
"aria-labelledby": `bullet-svg-title-${F.value}`,
|
|
573
|
-
"aria-describedby": `bullet-svg-desc-${F.value}`
|
|
574
|
-
}, [
|
|
575
|
-
Ce(C(T)),
|
|
576
|
-
p("title", { id: `bullet-svg-title-${F.value}` }, S(M.value.style.chart.title.text || "Bullet chart"), 9, Pe),
|
|
577
|
-
p("desc", { id: `bullet-svg-desc-${F.value}` }, " Value: " + S(G.value) + ", Target: " + S(K.value.target?.value), 9, Fe),
|
|
578
|
-
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
579
|
-
key: 0,
|
|
580
|
-
x: 0,
|
|
581
|
-
y: 0,
|
|
582
|
-
width: U.value.width,
|
|
583
|
-
height: U.value.height,
|
|
584
|
-
style: { pointerEvents: "none" }
|
|
585
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : d("", !0),
|
|
586
|
-
P.value ? (v(), f("g", Le, [
|
|
587
|
-
(v(!0), f(c, null, b(K.value.chunks, (e) => (v(), f("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: M.value.style.chart.backgroundColor,
|
|
595
|
-
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
596
|
-
}, null, 8, Re))), 256)),
|
|
597
|
-
!M.value.style.chart.target.onTop && M.value.style.chart.target.show ? (v(), f("rect", {
|
|
598
|
-
key: 0,
|
|
599
|
-
x: K.value.target.x,
|
|
600
|
-
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * M.value.style.chart.target.heightRatio) / 2,
|
|
601
|
-
height: U.value.chartHeight * M.value.style.chart.target.heightRatio,
|
|
602
|
-
width: M.value.style.chart.target.width,
|
|
603
|
-
rx: M.value.style.chart.target.rounded ? M.value.style.chart.target.width / 2 : 0,
|
|
604
|
-
fill: M.value.style.chart.target.color,
|
|
605
|
-
stroke: M.value.style.chart.target.stroke,
|
|
606
|
-
"stroke-width": M.value.style.chart.target.strokeWidth
|
|
607
|
-
}, null, 8, ze)) : d("", !0),
|
|
608
|
-
p("rect", {
|
|
609
|
-
x: U.value.left,
|
|
610
|
-
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * M.value.style.chart.valueBar.heightRatio) / 2,
|
|
611
|
-
height: U.value.chartHeight * M.value.style.chart.valueBar.heightRatio,
|
|
612
|
-
width: K.value.value.width,
|
|
613
|
-
fill: M.value.style.chart.valueBar.color,
|
|
614
|
-
stroke: M.value.style.chart.valueBar.stroke,
|
|
615
|
-
"stroke-width": M.value.style.chart.valueBar.strokeWidth
|
|
616
|
-
}, null, 8, Be),
|
|
617
|
-
M.value.style.chart.valueBar.label.show ? (v(), f("text", {
|
|
618
|
-
key: 1,
|
|
619
|
-
x: U.value.left + K.value.value.width,
|
|
620
|
-
y: U.value.top - 6 + M.value.style.chart.valueBar.label.offsetY,
|
|
621
|
-
"font-size": M.value.style.chart.valueBar.label.fontSize,
|
|
622
|
-
"font-weight": M.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
623
|
-
fill: M.value.style.chart.valueBar.label.color,
|
|
624
|
-
"text-anchor": "middle"
|
|
625
|
-
}, S(C(o)(M.value.style.chart.segments.dataLabels.formatter, G.value, C(i)({
|
|
626
|
-
p: M.value.style.chart.segments.dataLabels.prefix,
|
|
627
|
-
v: G.value,
|
|
628
|
-
s: M.value.style.chart.segments.dataLabels.suffix,
|
|
629
|
-
r: M.value.style.chart.segments.dataLabels.rounding
|
|
630
|
-
}))), 9, Ve)) : d("", !0),
|
|
631
|
-
M.value.style.chart.target.onTop && M.value.style.chart.target.show ? (v(), f("rect", {
|
|
632
|
-
key: 2,
|
|
633
|
-
x: K.value.target.x,
|
|
634
|
-
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * M.value.style.chart.target.heightRatio) / 2,
|
|
635
|
-
height: U.value.chartHeight * M.value.style.chart.target.heightRatio,
|
|
636
|
-
width: M.value.style.chart.target.width,
|
|
637
|
-
rx: M.value.style.chart.target.rounded ? M.value.style.chart.target.width / 2 : 0,
|
|
638
|
-
fill: M.value.style.chart.target.color,
|
|
639
|
-
stroke: M.value.style.chart.target.stroke,
|
|
640
|
-
"stroke-width": M.value.style.chart.target.strokeWidth,
|
|
641
|
-
style: { transition: "x 0.3s ease-in-out" }
|
|
642
|
-
}, null, 8, He)) : d("", !0),
|
|
643
|
-
M.value.style.chart.segments.dataLabels.show ? (v(), f("g", Ue, [(v(!0), f(c, null, b(K.value.ticks, (e) => (v(), f("text", {
|
|
644
|
-
x: e.x,
|
|
645
|
-
y: e.y,
|
|
646
|
-
"text-anchor": "middle",
|
|
647
|
-
fill: M.value.style.chart.segments.dataLabels.color,
|
|
648
|
-
"font-size": M.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
649
|
-
"font-weight": M.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
650
|
-
}, S(C(o)(M.value.style.chart.segments.dataLabels.formatter, e.value, C(i)({
|
|
651
|
-
p: M.value.style.chart.segments.dataLabels.prefix,
|
|
652
|
-
v: e.value,
|
|
653
|
-
s: M.value.style.chart.segments.dataLabels.suffix,
|
|
654
|
-
r: M.value.style.chart.segments.dataLabels.rounding
|
|
655
|
-
}))), 9, We))), 256))])) : d("", !0),
|
|
656
|
-
M.value.style.chart.segments.dataLabels.show && M.value.style.chart.segments.ticks.show ? (v(), f("g", Ge, [(v(!0), f(c, null, b(K.value.ticks, (e) => (v(), f("line", {
|
|
657
|
-
x1: e.x,
|
|
658
|
-
x2: e.x,
|
|
659
|
-
y1: U.value.bottom,
|
|
660
|
-
y2: U.value.bottom + 3,
|
|
661
|
-
stroke: M.value.style.chart.segments.ticks.stroke,
|
|
662
|
-
"stroke-width": 1,
|
|
663
|
-
"stroke-linecap": "round"
|
|
664
|
-
}, null, 8, Ke))), 256))])) : d("", !0)
|
|
665
|
-
])) : d("", !0),
|
|
666
|
-
x(e.$slots, "svg", { svg: {
|
|
667
|
-
...U.value,
|
|
668
|
-
isPrintingImg: C(J) || C(Y) || C(At),
|
|
669
|
-
isPrintingSvg: C(jt)
|
|
670
|
-
} }, void 0, !0)
|
|
671
|
-
], 14, Ne)),
|
|
672
|
-
e.$slots.watermark ? (v(), f("div", qe, [x(e.$slots, "watermark", g(h({ isPrinting: C(J) || C(Y) || C(At) || C(jt) })), void 0, !0)])) : d("", !0),
|
|
673
|
-
p("div", { id: `legend-bottom-${F.value}` }, null, 8, Je),
|
|
674
|
-
st.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(xe, {
|
|
675
|
-
key: 5,
|
|
676
|
-
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
677
|
-
}, [p("div", {
|
|
678
|
-
ref_key: "chartLegend",
|
|
679
|
-
ref: O
|
|
680
|
-
}, [x(e.$slots, "legend", { legend: q.value }, () => [M.value.style.chart.legend.show ? (v(), u(ye, {
|
|
681
|
-
key: 0,
|
|
682
|
-
clickable: !1,
|
|
683
|
-
legendSet: q.value,
|
|
684
|
-
config: bt.value
|
|
685
|
-
}, {
|
|
686
|
-
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)]))]),
|
|
687
|
-
_: 1
|
|
688
|
-
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
689
|
-
e.$slots.source ? (v(), f("div", {
|
|
690
|
-
key: 6,
|
|
691
|
-
ref_key: "source",
|
|
692
|
-
ref: at,
|
|
693
|
-
dir: "auto"
|
|
694
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
695
|
-
x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(le, { key: 0 })) : d("", !0)], !0)
|
|
696
|
-
], 46, Ae));
|
|
697
|
-
}
|
|
698
|
-
}, [["__scopeId", "data-v-5912378f"]]);
|
|
699
|
-
//#endregion
|
|
700
|
-
export { ke as n, T as t };
|