vue-data-ui 3.22.14 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.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 +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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.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 +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Jt as t, Vt as n, X as r, b as i, i as a, jt as o, q as s, t as c, tt as l } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ne } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as re } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as oe } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
+
import { t as u } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as ce } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as le } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as de, t as fe } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as me } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as he } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
+
import { t as ge } from "./vue_ui_tiremarks-CdEPieWV.js";
|
|
18
|
+
import { Fragment as _e, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ve, createSlots as ye, createVNode as be, defineAsyncComponent as h, guardReactiveProps as g, nextTick as xe, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Se, openBlock as b, ref as x, renderList as Ce, renderSlot as S, toDisplayString as we, toRefs as Te, unref as C, watch as Ee, withCtx as w } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-tiremarks.vue
|
|
20
|
+
var De = /* @__PURE__ */ e({ default: () => T }), Oe = ["id"], ke = [
|
|
21
|
+
"xmlns",
|
|
22
|
+
"viewBox",
|
|
23
|
+
"aria-labelledby",
|
|
24
|
+
"aria-describedby"
|
|
25
|
+
], Ae = ["id"], je = ["id"], Me = ["width", "height"], Ne = { key: 1 }, Pe = [
|
|
26
|
+
"d",
|
|
27
|
+
"stroke-width",
|
|
28
|
+
"stroke"
|
|
29
|
+
], Fe = { key: 2 }, Ie = [
|
|
30
|
+
"x1",
|
|
31
|
+
"y1",
|
|
32
|
+
"x2",
|
|
33
|
+
"y2",
|
|
34
|
+
"stroke-width",
|
|
35
|
+
"stroke"
|
|
36
|
+
], Le = ["aria-label"], Re = [
|
|
37
|
+
"x",
|
|
38
|
+
"y",
|
|
39
|
+
"height"
|
|
40
|
+
], ze = [
|
|
41
|
+
"x",
|
|
42
|
+
"y",
|
|
43
|
+
"font-size",
|
|
44
|
+
"fill",
|
|
45
|
+
"font-weight",
|
|
46
|
+
"text-anchor"
|
|
47
|
+
], Be = {
|
|
48
|
+
key: 4,
|
|
49
|
+
class: "vue-data-ui-watermark"
|
|
50
|
+
}, T = /*#__PURE__*/ ue({
|
|
51
|
+
__name: "vue-ui-tiremarks",
|
|
52
|
+
props: {
|
|
53
|
+
config: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default() {
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
dataset: {
|
|
60
|
+
type: Object,
|
|
61
|
+
default() {
|
|
62
|
+
return {};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
emits: ["copyAlt"],
|
|
67
|
+
setup(e, { expose: ue, emit: De }) {
|
|
68
|
+
let T = h(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ve = h(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = h(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), { vue_ui_tiremarks: Ue } = ne(), { isThemeValid: We, warnInvalidTheme: Ge } = se(), E = he(), D = e, Ke = De, qe = d(() => !!D.dataset && Object.keys(D.dataset).length), O = x(s()), k = x(null), Je = x(null), Ye = x(null), Xe = x(null), Ze = x(0), Qe = x(0), A = x(null), j = x(null), M = x(!1), N = x(!1), P = x(z());
|
|
69
|
+
ee({
|
|
70
|
+
config: () => P.value,
|
|
71
|
+
dataset: () => D.dataset,
|
|
72
|
+
component: "VueUiTiremarks",
|
|
73
|
+
rules: [te.noHint]
|
|
74
|
+
});
|
|
75
|
+
let $e = d(() => P.value.userOptions.useCursorPointer), et = d(() => t({
|
|
76
|
+
defaultConfig: {
|
|
77
|
+
userOptions: { show: !1 },
|
|
78
|
+
style: { chart: {
|
|
79
|
+
backgroundColor: "#99999930",
|
|
80
|
+
animation: { use: !1 },
|
|
81
|
+
layout: {
|
|
82
|
+
activeColor: "#6A6A6A80",
|
|
83
|
+
inactiveColor: "#CACACA80",
|
|
84
|
+
ticks: { gradient: { show: !1 } }
|
|
85
|
+
}
|
|
86
|
+
} }
|
|
87
|
+
},
|
|
88
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
89
|
+
})), { loading: F, FINAL_DATASET: I } = ie({
|
|
90
|
+
...Te(D),
|
|
91
|
+
FINAL_CONFIG: P,
|
|
92
|
+
prepareConfig: z,
|
|
93
|
+
skeletonDataset: D.config?.skeletonDataset ?? { percentage: 50 },
|
|
94
|
+
skeletonConfig: t({
|
|
95
|
+
defaultConfig: P.value,
|
|
96
|
+
userConfig: et.value
|
|
97
|
+
})
|
|
98
|
+
}), { userOptionsVisible: L, setUserOptionsVisibility: tt, keepUserOptionState: nt } = pe({ config: P.value }), { svgRef: R } = me({ config: P.value.style.chart.title });
|
|
99
|
+
function z() {
|
|
100
|
+
let e = u({
|
|
101
|
+
userConfig: D.config,
|
|
102
|
+
defaultConfig: Ue
|
|
103
|
+
}), t = e.theme;
|
|
104
|
+
if (!t) return e;
|
|
105
|
+
if (!We.value(e)) return Ge(e), e;
|
|
106
|
+
let n = u({
|
|
107
|
+
userConfig: ge[t] || D.config,
|
|
108
|
+
defaultConfig: e
|
|
109
|
+
});
|
|
110
|
+
return u({
|
|
111
|
+
userConfig: D.config,
|
|
112
|
+
defaultConfig: n
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
Ee(() => D.config, (e) => {
|
|
116
|
+
P.value = z(), L.value = !P.value.userOptions.showOnChartHover, K.value = P.value.style.chart.width, q.value = P.value.style.chart.height, ct(), Qe.value += 1;
|
|
117
|
+
}, { deep: !0 });
|
|
118
|
+
let { isPrinting: B, isImaging: V, generatePdf: rt, generateImage: it } = re({
|
|
119
|
+
elementId: O.value,
|
|
120
|
+
fileName: P.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
121
|
+
options: P.value.userOptions.print
|
|
122
|
+
}), at = d(() => P.value.userOptions.show && !P.value.style.chart.title.text), H = x(P.value.style.chart.animation.use && !E.value ? 0 : i(I.value.percentage));
|
|
123
|
+
Ee(() => I.value, (e) => {
|
|
124
|
+
P.value.style.chart.animation.use && !E.value ? ot(e.percentage) : H.value = e.percentage || 0;
|
|
125
|
+
}, { deep: !0 }), Se(() => {
|
|
126
|
+
ct();
|
|
127
|
+
});
|
|
128
|
+
function ot(e) {
|
|
129
|
+
let t = P.value.style.chart.animation.speed, n = Math.abs(e - H.value) / (t * 120);
|
|
130
|
+
function r() {
|
|
131
|
+
H.value < e ? H.value = Math.min(H.value + n, e) : H.value > e && (H.value = Math.max(H.value - n, e)), H.value !== e && requestAnimationFrame(r);
|
|
132
|
+
}
|
|
133
|
+
r();
|
|
134
|
+
}
|
|
135
|
+
let st = d(() => !!P.value.debug);
|
|
136
|
+
function ct() {
|
|
137
|
+
if (o(D.dataset) && l({
|
|
138
|
+
componentName: "VueUiTiremarks",
|
|
139
|
+
type: "dataset",
|
|
140
|
+
debug: st.value
|
|
141
|
+
}), P.value.responsive) {
|
|
142
|
+
let e = de(() => {
|
|
143
|
+
let { width: e, height: t } = fe({
|
|
144
|
+
chart: k.value,
|
|
145
|
+
title: P.value.style.chart.title.text ? Ye.value : null,
|
|
146
|
+
source: Xe.value
|
|
147
|
+
});
|
|
148
|
+
requestAnimationFrame(() => {
|
|
149
|
+
K.value = Math.max(.1, e), q.value = Math.max(.1, t - 12);
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = k.value.parentNode, A.value.observe(j.value);
|
|
153
|
+
}
|
|
154
|
+
ot(I.value.percentage || 0);
|
|
155
|
+
}
|
|
156
|
+
let U = d(() => P.value.style.chart.layout.display === "vertical"), W = d(() => {
|
|
157
|
+
let e = P.value.style.chart.percentage.show, t = {
|
|
158
|
+
top: e ? 48 : 12,
|
|
159
|
+
left: e ? 64 : 16,
|
|
160
|
+
right: e ? 64 : 16,
|
|
161
|
+
bottom: e ? 48 : 12
|
|
162
|
+
};
|
|
163
|
+
return U.value ? {
|
|
164
|
+
top: P.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
|
|
165
|
+
left: 3,
|
|
166
|
+
right: 3,
|
|
167
|
+
bottom: P.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
|
|
168
|
+
} : {
|
|
169
|
+
top: 0,
|
|
170
|
+
bottom: 0,
|
|
171
|
+
left: P.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 16,
|
|
172
|
+
right: P.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
173
|
+
};
|
|
174
|
+
}), G = d(() => Object.values(W.value).reduce((e, t) => e + t, 0)), K = x(P.value.style.chart.width), q = x(P.value.style.chart.height), J = d(() => ({
|
|
175
|
+
height: q.value,
|
|
176
|
+
width: K.value
|
|
177
|
+
})), lt = d(() => ({
|
|
178
|
+
horizontal: {
|
|
179
|
+
x: X.value.x + (P.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
180
|
+
y: J.value.height / 2 - X.value.fontSize / 2
|
|
181
|
+
},
|
|
182
|
+
vertical: {
|
|
183
|
+
x: J.value.width / 2 - 20,
|
|
184
|
+
y: X.value.y - X.value.fontSize / 2
|
|
185
|
+
}
|
|
186
|
+
})[P.value.style.chart.layout.display]), Y = d(() => U.value ? {
|
|
187
|
+
mark: (J.value.height - G.value) / 100 * .5,
|
|
188
|
+
space: (J.value.height - G.value) / 100 * .5
|
|
189
|
+
} : {
|
|
190
|
+
mark: (J.value.width - G.value) / 100 * .5,
|
|
191
|
+
space: (J.value.width - G.value) / 100 * .5
|
|
192
|
+
}), ut = d(() => {
|
|
193
|
+
let e = [];
|
|
194
|
+
for (let t = 0; t < 100; t += 1) {
|
|
195
|
+
let r = P.value.style.chart.layout.ticks.gradient.show ? n(P.value.style.chart.layout.activeColor, t / 100 * (P.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : P.value.style.chart.layout.activeColor;
|
|
196
|
+
if (U.value) {
|
|
197
|
+
let n = P.value.style.chart.layout.crescendo ? (100 - t) * (J.value.width - W.value.left - W.value.right) / 100 / 3 : 0, i = W.value.left + 4 + n, a = J.value.width - W.value.right - 4 - n, o = J.value.height - W.value.bottom - t * Y.value.mark - t * Y.value.space - Y.value.mark, s = J.value.height - W.value.bottom - t * Y.value.mark - t * Y.value.space - Y.value.mark, c = (a - i) / P.value.style.chart.layout.curveAngleX, l = P.value.style.chart.layout.curveAngleY * ((1 + t) / 100);
|
|
198
|
+
e.push({
|
|
199
|
+
x1: i,
|
|
200
|
+
x2: a,
|
|
201
|
+
y1: o,
|
|
202
|
+
y2: s,
|
|
203
|
+
curve: `M ${i} ${o} C ${i + c} ${o - l}, ${a - c} ${s - l}, ${a} ${s}`,
|
|
204
|
+
color: r
|
|
205
|
+
});
|
|
206
|
+
} else {
|
|
207
|
+
let n = P.value.style.chart.layout.crescendo ? (100 - t) * (J.value.height - W.value.top - W.value.bottom) / 100 / 3 : 0, i = W.value.left + t * Y.value.mark + t * Y.value.space - Y.value.mark, a = i, o = W.value.top + 4 + n, s = J.value.height - W.value.bottom - 4 - n, c = P.value.style.chart.layout.curveAngleY * ((1 + t) / 100), l = (s - o) / P.value.style.chart.layout.curveAngleX;
|
|
208
|
+
e.push({
|
|
209
|
+
x1: i,
|
|
210
|
+
x2: a,
|
|
211
|
+
y1: o,
|
|
212
|
+
y2: s,
|
|
213
|
+
curve: `M ${i} ${o} C ${i + c} ${o + l}, ${a + c} ${s - l}, ${a} ${s}`,
|
|
214
|
+
color: r
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return e;
|
|
219
|
+
}), X = d(() => {
|
|
220
|
+
let e, t, n, r = P.value.style.chart.percentage.fontSize / 3;
|
|
221
|
+
return U.value ? P.value.style.chart.percentage.verticalPosition === "top" ? (e = J.value.width / 2, t = W.value.top / 2, n = "middle") : P.value.style.chart.percentage.verticalPosition === "bottom" && (e = J.value.width / 2, t = J.value.height - W.value.bottom / 2 + r, n = "middle") : P.value.style.chart.percentage.horizontalPosition === "left" ? (e = 4, t = J.value.height / 2 + r, n = "start") : P.value.style.chart.percentage.horizontalPosition === "right" && (e = J.value.width - W.value.right + 8, t = J.value.height / 2 + r, n = "start"), {
|
|
222
|
+
x: e,
|
|
223
|
+
y: t,
|
|
224
|
+
textAnchor: n,
|
|
225
|
+
bold: P.value.style.chart.percentage.bold,
|
|
226
|
+
fontSize: P.value.style.chart.percentage.fontSize,
|
|
227
|
+
fill: P.value.style.chart.percentage.color
|
|
228
|
+
};
|
|
229
|
+
}), Z = x(!1);
|
|
230
|
+
function dt(e) {
|
|
231
|
+
Z.value = e, Ze.value += 1;
|
|
232
|
+
}
|
|
233
|
+
let Q = x(!1);
|
|
234
|
+
function $() {
|
|
235
|
+
Q.value = !Q.value;
|
|
236
|
+
}
|
|
237
|
+
async function ft({ scale: e = 2 } = {}) {
|
|
238
|
+
if (!k.value) return;
|
|
239
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ce({
|
|
240
|
+
domElement: k.value,
|
|
241
|
+
base64: !0,
|
|
242
|
+
img: !0,
|
|
243
|
+
scale: e
|
|
244
|
+
});
|
|
245
|
+
return {
|
|
246
|
+
imageUri: i,
|
|
247
|
+
base64: a,
|
|
248
|
+
title: P.value.style.chart.title.text,
|
|
249
|
+
width: t,
|
|
250
|
+
height: n,
|
|
251
|
+
aspectRatio: r
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
let pt = d(() => P.value.style.chart.backgroundColor), mt = d(() => P.value.style.chart.title), { exportSvg: ht, getSvg: gt } = oe({
|
|
255
|
+
svg: R,
|
|
256
|
+
title: mt,
|
|
257
|
+
backgroundColor: pt
|
|
258
|
+
});
|
|
259
|
+
async function _t({ isCb: e }) {
|
|
260
|
+
N.value = !0, await xe();
|
|
261
|
+
try {
|
|
262
|
+
if (e) {
|
|
263
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await gt();
|
|
264
|
+
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
265
|
+
blob: e,
|
|
266
|
+
url: t,
|
|
267
|
+
text: n,
|
|
268
|
+
dataUrl: r
|
|
269
|
+
}));
|
|
270
|
+
} else await Promise.resolve(ht());
|
|
271
|
+
} finally {
|
|
272
|
+
N.value = !1;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
function vt(e) {
|
|
276
|
+
if (e?.stage === "start") {
|
|
277
|
+
M.value = !0;
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
if (e?.stage === "end") {
|
|
281
|
+
M.value = !1;
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
it();
|
|
285
|
+
}
|
|
286
|
+
async function yt() {
|
|
287
|
+
if (Ke("copyAlt", {
|
|
288
|
+
config: P.value,
|
|
289
|
+
dataset: I.value
|
|
290
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
291
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
295
|
+
config: P.value,
|
|
296
|
+
dataset: I.value
|
|
297
|
+
}));
|
|
298
|
+
}
|
|
299
|
+
let bt = d(() => `${O.value}-title`), xt = d(() => `${O.value}-desc`), St = d(() => a(P.value.style.chart.percentage.formatter, H.value, r({
|
|
300
|
+
v: H.value,
|
|
301
|
+
s: "%",
|
|
302
|
+
r: P.value.style.chart.percentage.rounding
|
|
303
|
+
}))), Ct = d(() => P.value.style.chart.title.text || ""), wt = d(() => F.value ? "Loading data" : `Value: ${St.value}`);
|
|
304
|
+
return ue({
|
|
305
|
+
getImage: ft,
|
|
306
|
+
generatePdf: rt,
|
|
307
|
+
generateImage: it,
|
|
308
|
+
generateSvg: _t,
|
|
309
|
+
toggleAnnotator: $,
|
|
310
|
+
toggleFullscreen: dt,
|
|
311
|
+
copyAlt: yt
|
|
312
|
+
}), (e, t) => (b(), m("div", {
|
|
313
|
+
ref_key: "tiremarksChart",
|
|
314
|
+
ref: k,
|
|
315
|
+
class: _(`vue-data-ui-component vue-ui-tiremarks ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
316
|
+
style: y(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
317
|
+
id: O.value,
|
|
318
|
+
onMouseenter: t[0] ||= () => C(tt)(!0),
|
|
319
|
+
onMouseleave: t[1] ||= () => C(tt)(!1)
|
|
320
|
+
}, [
|
|
321
|
+
P.value.userOptions.buttons.annotator ? (b(), f(C(T), {
|
|
322
|
+
key: 0,
|
|
323
|
+
svgRef: C(R),
|
|
324
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
325
|
+
color: P.value.style.chart.color,
|
|
326
|
+
active: Q.value,
|
|
327
|
+
isCursorPointer: $e.value,
|
|
328
|
+
onClose: $
|
|
329
|
+
}, {
|
|
330
|
+
"annotator-action-close": w(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
331
|
+
"annotator-action-color": w(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
332
|
+
"annotator-action-draw": w(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
333
|
+
"annotator-action-undo": w(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
334
|
+
"annotator-action-redo": w(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
335
|
+
"annotator-action-delete": w(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
336
|
+
_: 3
|
|
337
|
+
}, 8, [
|
|
338
|
+
"svgRef",
|
|
339
|
+
"backgroundColor",
|
|
340
|
+
"color",
|
|
341
|
+
"active",
|
|
342
|
+
"isCursorPointer"
|
|
343
|
+
])) : p("", !0),
|
|
344
|
+
at.value ? (b(), m("div", {
|
|
345
|
+
key: 1,
|
|
346
|
+
ref_key: "noTitle",
|
|
347
|
+
ref: Je,
|
|
348
|
+
class: "vue-data-ui-no-title-space",
|
|
349
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
350
|
+
}, null, 512)) : p("", !0),
|
|
351
|
+
P.value.style.chart.title.text ? (b(), m("div", {
|
|
352
|
+
key: 2,
|
|
353
|
+
ref_key: "chartTitle",
|
|
354
|
+
ref: Ye,
|
|
355
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
356
|
+
}, [(b(), f(le, {
|
|
357
|
+
key: `title_${Qe.value}`,
|
|
358
|
+
config: {
|
|
359
|
+
title: {
|
|
360
|
+
cy: "wheel-title",
|
|
361
|
+
...P.value.style.chart.title
|
|
362
|
+
},
|
|
363
|
+
subtitle: {
|
|
364
|
+
cy: "wheel-subtitle",
|
|
365
|
+
...P.value.style.chart.title.subtitle
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
369
|
+
P.value.userOptions.show && qe.value && (C(nt) || C(L)) ? (b(), f(C(Ve), {
|
|
370
|
+
ref: "details",
|
|
371
|
+
key: `user_options_${Ze.value}`,
|
|
372
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
373
|
+
color: P.value.style.chart.color,
|
|
374
|
+
isPrinting: C(B),
|
|
375
|
+
isImaging: C(V),
|
|
376
|
+
uid: O.value,
|
|
377
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
378
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
379
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
380
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
381
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
382
|
+
hasXls: !1,
|
|
383
|
+
isFullscreen: Z.value,
|
|
384
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
385
|
+
chartElement: k.value,
|
|
386
|
+
position: P.value.userOptions.position,
|
|
387
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
388
|
+
isAnnotation: Q.value,
|
|
389
|
+
callbacks: P.value.userOptions.callbacks,
|
|
390
|
+
printScale: P.value.userOptions.print.scale,
|
|
391
|
+
isCursorPointer: $e.value,
|
|
392
|
+
onToggleFullscreen: dt,
|
|
393
|
+
onGeneratePdf: C(rt),
|
|
394
|
+
onGenerateImage: vt,
|
|
395
|
+
onGenerateSvg: _t,
|
|
396
|
+
onToggleAnnotator: $,
|
|
397
|
+
onCopyAlt: yt,
|
|
398
|
+
style: y({ visibility: C(nt) ? C(L) ? "visible" : "hidden" : "visible" })
|
|
399
|
+
}, ye({ _: 2 }, [
|
|
400
|
+
e.$slots.menuIcon ? {
|
|
401
|
+
name: "menuIcon",
|
|
402
|
+
fn: w(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
|
|
403
|
+
isOpen: t,
|
|
404
|
+
color: n
|
|
405
|
+
})), void 0, !0)]),
|
|
406
|
+
key: "0"
|
|
407
|
+
} : void 0,
|
|
408
|
+
e.$slots.optionPdf ? {
|
|
409
|
+
name: "optionPdf",
|
|
410
|
+
fn: w(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
411
|
+
key: "1"
|
|
412
|
+
} : void 0,
|
|
413
|
+
e.$slots.optionImg ? {
|
|
414
|
+
name: "optionImg",
|
|
415
|
+
fn: w(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
416
|
+
key: "2"
|
|
417
|
+
} : void 0,
|
|
418
|
+
e.$slots.optionSvg ? {
|
|
419
|
+
name: "optionSvg",
|
|
420
|
+
fn: w(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
421
|
+
key: "3"
|
|
422
|
+
} : void 0,
|
|
423
|
+
e.$slots.optionFullscreen ? {
|
|
424
|
+
name: "optionFullscreen",
|
|
425
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
|
|
426
|
+
toggleFullscreen: t,
|
|
427
|
+
isFullscreen: n
|
|
428
|
+
})), void 0, !0)]),
|
|
429
|
+
key: "4"
|
|
430
|
+
} : void 0,
|
|
431
|
+
e.$slots.optionAnnotator ? {
|
|
432
|
+
name: "optionAnnotator",
|
|
433
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
|
|
434
|
+
toggleAnnotator: t,
|
|
435
|
+
isAnnotator: n
|
|
436
|
+
})), void 0, !0)]),
|
|
437
|
+
key: "5"
|
|
438
|
+
} : void 0,
|
|
439
|
+
e.$slots.optionAltCopy ? {
|
|
440
|
+
name: "optionAltCopy",
|
|
441
|
+
fn: w(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
442
|
+
key: "6"
|
|
443
|
+
} : void 0,
|
|
444
|
+
e.$slots["custom-menu-before"] ? {
|
|
445
|
+
name: "custom-menu-before",
|
|
446
|
+
fn: w(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
447
|
+
key: "7"
|
|
448
|
+
} : void 0,
|
|
449
|
+
e.$slots["custom-menu-after"] ? {
|
|
450
|
+
name: "custom-menu-after",
|
|
451
|
+
fn: w(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
452
|
+
key: "8"
|
|
453
|
+
} : void 0
|
|
454
|
+
]), 1032, [
|
|
455
|
+
"backgroundColor",
|
|
456
|
+
"color",
|
|
457
|
+
"isPrinting",
|
|
458
|
+
"isImaging",
|
|
459
|
+
"uid",
|
|
460
|
+
"hasPdf",
|
|
461
|
+
"hasImg",
|
|
462
|
+
"hasSvg",
|
|
463
|
+
"hasFullscreen",
|
|
464
|
+
"hasAltCopy",
|
|
465
|
+
"isFullscreen",
|
|
466
|
+
"titles",
|
|
467
|
+
"chartElement",
|
|
468
|
+
"position",
|
|
469
|
+
"hasAnnotator",
|
|
470
|
+
"isAnnotation",
|
|
471
|
+
"callbacks",
|
|
472
|
+
"printScale",
|
|
473
|
+
"isCursorPointer",
|
|
474
|
+
"onGeneratePdf",
|
|
475
|
+
"style"
|
|
476
|
+
])) : p("", !0),
|
|
477
|
+
(b(), m("svg", {
|
|
478
|
+
ref_key: "svgRef",
|
|
479
|
+
ref: R,
|
|
480
|
+
xmlns: C(c),
|
|
481
|
+
class: _({
|
|
482
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
483
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
484
|
+
}),
|
|
485
|
+
viewBox: `0 0 ${K.value} ${q.value}`,
|
|
486
|
+
style: y(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color}`),
|
|
487
|
+
role: "img",
|
|
488
|
+
"aria-labelledby": bt.value,
|
|
489
|
+
"aria-describedby": xt.value
|
|
490
|
+
}, [
|
|
491
|
+
ve("title", { id: bt.value }, we(Ct.value), 9, Ae),
|
|
492
|
+
ve("desc", { id: xt.value }, we(wt.value), 9, je),
|
|
493
|
+
be(C(He)),
|
|
494
|
+
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
495
|
+
key: 0,
|
|
496
|
+
x: 0,
|
|
497
|
+
y: 0,
|
|
498
|
+
width: J.value.width,
|
|
499
|
+
height: J.value.height,
|
|
500
|
+
style: { pointerEvents: "none" }
|
|
501
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Me)) : p("", !0),
|
|
502
|
+
P.value.style.chart.layout.curved ? (b(), m("g", Ne, [(b(!0), m(_e, null, Ce(ut.value, (e, t) => (b(), m("path", {
|
|
503
|
+
d: e.curve,
|
|
504
|
+
"stroke-width": Y.value.mark,
|
|
505
|
+
stroke: H.value >= t ? e.color : P.value.style.chart.layout.inactiveColor,
|
|
506
|
+
"stroke-linecap": "round",
|
|
507
|
+
fill: "none",
|
|
508
|
+
class: _({ "vue-ui-tick-animated": P.value.style.chart.animation.use && !C(E) && t <= H.value })
|
|
509
|
+
}, null, 10, Pe))), 256))])) : (b(), m("g", Fe, [(b(!0), m(_e, null, Ce(ut.value, (e, t) => (b(), m("line", {
|
|
510
|
+
x1: e.x1,
|
|
511
|
+
y1: e.y1,
|
|
512
|
+
x2: e.x2,
|
|
513
|
+
y2: e.y2,
|
|
514
|
+
"stroke-width": Y.value.mark,
|
|
515
|
+
stroke: H.value >= t ? e.color : P.value.style.chart.layout.inactiveColor,
|
|
516
|
+
"stroke-linecap": "round"
|
|
517
|
+
}, null, 8, Ie))), 256))])),
|
|
518
|
+
P.value.style.chart.percentage.show ? (b(), m("g", {
|
|
519
|
+
key: 3,
|
|
520
|
+
role: "status",
|
|
521
|
+
"aria-live": "polite",
|
|
522
|
+
"aria-label": C(F) ? "..." : `${St.value}`
|
|
523
|
+
}, [C(F) ? (b(), m("rect", {
|
|
524
|
+
key: 0,
|
|
525
|
+
x: lt.value.x,
|
|
526
|
+
y: lt.value.y,
|
|
527
|
+
width: 40,
|
|
528
|
+
height: X.value.fontSize,
|
|
529
|
+
fill: "#6A6A6A80",
|
|
530
|
+
rx: 3
|
|
531
|
+
}, null, 8, Re)) : (b(), m("text", {
|
|
532
|
+
key: 1,
|
|
533
|
+
"aria-hidden": "true",
|
|
534
|
+
x: X.value.x,
|
|
535
|
+
y: X.value.y,
|
|
536
|
+
"font-size": X.value.fontSize,
|
|
537
|
+
fill: P.value.style.chart.layout.ticks.gradient.show && P.value.style.chart.percentage.useGradientColor ? C(n)(P.value.style.chart.layout.activeColor, H.value / 100 * (P.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : P.value.style.chart.percentage.color,
|
|
538
|
+
"font-weight": X.value.bold ? "bold" : "normal",
|
|
539
|
+
"text-anchor": X.value.textAnchor
|
|
540
|
+
}, we(St.value), 9, ze))], 8, Le)) : p("", !0),
|
|
541
|
+
S(e.$slots, "svg", { svg: {
|
|
542
|
+
...J.value,
|
|
543
|
+
isPrintingImg: C(B) || C(V) || M.value,
|
|
544
|
+
isPrintingSvg: N.value
|
|
545
|
+
} }, void 0, !0)
|
|
546
|
+
], 14, ke)),
|
|
547
|
+
e.$slots.watermark ? (b(), m("div", Be, [S(e.$slots, "watermark", v(g({ isPrinting: C(B) || C(V) || M.value || N.value })), void 0, !0)])) : p("", !0),
|
|
548
|
+
e.$slots.source ? (b(), m("div", {
|
|
549
|
+
key: 5,
|
|
550
|
+
ref_key: "source",
|
|
551
|
+
ref: Xe,
|
|
552
|
+
dir: "auto"
|
|
553
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
554
|
+
S(e.$slots, "skeleton", {}, () => [C(F) ? (b(), f(ae, { key: 0 })) : p("", !0)], !0)
|
|
555
|
+
], 46, Oe));
|
|
556
|
+
}
|
|
557
|
+
}, [["__scopeId", "data-v-7f57d45c"]]);
|
|
558
|
+
//#endregion
|
|
559
|
+
export { De as n, T as t };
|