vue-data-ui 2.6.18 → 2.6.20
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/README.md +8 -0
- package/dist/{Arrow-Ci41JBXA.js → Arrow-C9wt_iwE.js} +1 -1
- package/dist/{Arrow-C-haYOvL.cjs → Arrow-mU42Peiq.cjs} +1 -1
- package/dist/{BaseIcon-D0Ifzd3J.js → BaseIcon-CR8s5lLC.js} +1 -1
- package/dist/{BaseIcon-Brc1PN_Z.cjs → BaseIcon-DMhDupLt.cjs} +1 -1
- package/dist/{DataTable-BH56SPdO.js → DataTable-CMUyDj6S.js} +2 -2
- package/dist/{DataTable-AQsQHTem.cjs → DataTable-Qba16zLZ.cjs} +1 -1
- package/dist/{Legend-w7VxyGN0.js → Legend-CaMKYW-V.js} +2 -2
- package/dist/{Legend-CNiGY3Yx.cjs → Legend-EauKcdAx.cjs} +1 -1
- package/dist/{PackageVersion-D1edJun6.js → PackageVersion-CURzw4q1.js} +1 -1
- package/dist/{PackageVersion-DO_17qoR.cjs → PackageVersion-Vv7wNIAl.cjs} +1 -1
- package/dist/{PenAndPaper-DWnLI5jM.js → PenAndPaper-CjiJra09.js} +3 -3
- package/dist/{PenAndPaper-BPAfK8a6.cjs → PenAndPaper-DSEAEpTs.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-Bnwg64-7.js → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-BzSorLrT.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-Cw1RBp7H.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-DB_DsgPX.cjs} +1 -1
- package/dist/{Shape-RfSE_FzV.js → Shape-F5v4f45p.js} +1 -1
- package/dist/{Shape-J26jxMZ5.cjs → Shape-gLknKTb6.cjs} +1 -1
- package/dist/{Slicer-oASHP3Lx.cjs → Slicer-CVVRixhP.cjs} +1 -1
- package/dist/{Slicer-DMdxtlpr.js → Slicer-DQp19cm1.js} +2 -2
- package/dist/{Title-xfHZTDT9.js → Title-CUHNtIyE.js} +1 -1
- package/dist/{Title-ypQseB5s.cjs → Title-m1x23s4w.cjs} +1 -1
- package/dist/{Tooltip-DQZLR6XD.cjs → Tooltip-BXY2gKbA.cjs} +1 -1
- package/dist/{Tooltip-CF9cKbnr.js → Tooltip-BuAQ8HVL.js} +1 -1
- package/dist/{index-CkqI12gj.cjs → index-CmhvuQro.cjs} +1 -1
- package/dist/{index-Df45PKBw.js → index-Cq7-va_5.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BaSIdRPe.js → useNestedProp-BEyJNlaO.js} +1 -1
- package/dist/{useNestedProp-B5QzQ7cl.cjs → useNestedProp-CnH-XcZU.cjs} +1 -1
- package/dist/usePrinter-DhZH4pcR.cjs +1 -0
- package/dist/{usePrinter-MC5pKUx5.js → usePrinter-jRjc8Naz.js} +72 -70
- package/dist/{vue-data-ui-BiXf5MnL.js → vue-data-ui-BPSCRfcK.js} +61 -61
- package/dist/{vue-data-ui--Yx3VAj0.cjs → vue-data-ui-DD5SV4SW.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BXW-ZMgi.cjs → vue-ui-3d-bar-BlCSdagh.cjs} +2 -2
- package/dist/{vue-ui-3d-bar-DBJJ2kqD.js → vue-ui-3d-bar-TB1XdncJ.js} +105 -98
- package/dist/{vue-ui-accordion-4ngKbp5a.cjs → vue-ui-accordion-C3Ljak65.cjs} +1 -1
- package/dist/{vue-ui-accordion-BbCvey8w.js → vue-ui-accordion-vAQ_LLoP.js} +3 -3
- package/dist/{vue-ui-age-pyramid-04E6Wqie.js → vue-ui-age-pyramid-BUWoRp_B.js} +75 -68
- package/dist/{vue-ui-age-pyramid-Cpi72E7Q.cjs → vue-ui-age-pyramid-CrDKpPil.cjs} +1 -1
- package/dist/{vue-ui-annotator-tv-3u5J-.js → vue-ui-annotator-BVE-xqSy.js} +1 -1
- package/dist/{vue-ui-annotator-BzdyBaoy.cjs → vue-ui-annotator-wjsB7Ihy.cjs} +1 -1
- package/dist/{vue-ui-bullet-B-UjWb-f.cjs → vue-ui-bullet-BcU0lGMw.cjs} +4 -4
- package/dist/{vue-ui-bullet-B0jpb3iz.js → vue-ui-bullet-Cj4GC_-F.js} +145 -138
- package/dist/{vue-ui-candlestick-Cx6UAvss.js → vue-ui-candlestick-C2hAp3Fi.js} +115 -108
- package/dist/{vue-ui-candlestick-DEK3P-Tu.cjs → vue-ui-candlestick-n--kSbN7.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BPvJKE6W.cjs → vue-ui-carousel-table-CU96d16y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bk6LMH1D.js → vue-ui-carousel-table-Do1uzI_G.js} +130 -123
- package/dist/{vue-ui-chestnut-DKesYDji.cjs → vue-ui-chestnut-DJq8IWIL.cjs} +2 -2
- package/dist/{vue-ui-chestnut-BLYeNCKN.js → vue-ui-chestnut-fb3ioT4a.js} +131 -124
- package/dist/{vue-ui-circle-pack-DF8CPgPU.js → vue-ui-circle-pack-DByIHOMA.js} +165 -158
- package/dist/{vue-ui-circle-pack-D_2k6N20.cjs → vue-ui-circle-pack-DnwKX38S.cjs} +1 -1
- package/dist/{vue-ui-cursor-B29UJWQo.cjs → vue-ui-cursor-DSCiOK2l.cjs} +1 -1
- package/dist/{vue-ui-cursor-DySRIo_p.js → vue-ui-cursor-scYLETJY.js} +2 -2
- package/dist/{vue-ui-dashboard-5JkE1uRk.cjs → vue-ui-dashboard-BBDfkeCW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CHO6UMlJ.js → vue-ui-dashboard-DjxJGI1j.js} +2 -2
- package/dist/{vue-ui-digits-D5h4HAzq.js → vue-ui-digits-7bQAdMhs.js} +2 -2
- package/dist/{vue-ui-digits-DvANBwd7.cjs → vue-ui-digits-Cmn1NNzQ.cjs} +1 -1
- package/dist/{vue-ui-donut-DLaBSyI4.cjs → vue-ui-donut-C291KoIU.cjs} +1 -1
- package/dist/{vue-ui-donut-rVvCGOGk.js → vue-ui-donut-RJQUTfyW.js} +117 -110
- package/dist/{vue-ui-donut-evolution-DjGFFyxj.js → vue-ui-donut-evolution-DPW_ITH8.js} +164 -157
- package/dist/{vue-ui-donut-evolution-B06eelN-.cjs → vue-ui-donut-evolution-Dp15D88c.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B3AlzGCf.js → vue-ui-dumbbell-B8Zm8EVd.js} +74 -67
- package/dist/{vue-ui-dumbbell-9Oy-W4-B.cjs → vue-ui-dumbbell-BdEUvUV7.cjs} +2 -2
- package/dist/{vue-ui-flow-1eYWWjX-.js → vue-ui-flow-BNIgPNGy.js} +177 -170
- package/dist/{vue-ui-flow-BakKHKRq.cjs → vue-ui-flow-BukV6_Zl.cjs} +1 -1
- package/dist/{vue-ui-funnel-uSID1YS9.js → vue-ui-funnel-BrPqtGct.js} +128 -121
- package/dist/{vue-ui-funnel-IbAUMuoN.cjs → vue-ui-funnel-CIgZpg3T.cjs} +1 -1
- package/dist/{vue-ui-galaxy-3ksrzeio.js → vue-ui-galaxy-D1IYOUwX.js} +77 -70
- package/dist/{vue-ui-galaxy-BFGRkm7x.cjs → vue-ui-galaxy-FGqZ4tWB.cjs} +1 -1
- package/dist/{vue-ui-gauge-DgPnw4Q5.cjs → vue-ui-gauge-B00JvBFF.cjs} +1 -1
- package/dist/{vue-ui-gauge-DxUp_-uc.js → vue-ui-gauge-BsOXy5MV.js} +152 -145
- package/dist/{vue-ui-gizmo-Dw9HiCwa.js → vue-ui-gizmo-Cyl89etd.js} +3 -3
- package/dist/{vue-ui-gizmo-4T51Z8I8.cjs → vue-ui-gizmo-D_uv6qkV.cjs} +1 -1
- package/dist/vue-ui-heatmap-CGg2_xWH.cjs +1 -0
- package/dist/{vue-ui-heatmap-CwtUNQu0.js → vue-ui-heatmap-CgF4n8Bh.js} +139 -132
- package/dist/{vue-ui-history-plot-CC7sYtWu.cjs → vue-ui-history-plot-DR11Ips0.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BaV1bX_U.js → vue-ui-history-plot-Rdjb-yOk.js} +121 -114
- package/dist/{vue-ui-kpi-DiuK6mKA.js → vue-ui-kpi-COfnJm-X.js} +3 -3
- package/dist/{vue-ui-kpi-DxXlf8be.cjs → vue-ui-kpi-CbAgFb-9.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DQ_oXH1a.cjs → vue-ui-mini-loader-CizZv79e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Kwzi6dLA.js → vue-ui-mini-loader-DNM7jU2W.js} +2 -2
- package/dist/{vue-ui-molecule-Bfhay2Cw.cjs → vue-ui-molecule-CiOIVjFk.cjs} +1 -1
- package/dist/{vue-ui-molecule-BMiNGYBh.js → vue-ui-molecule-Cv6jp9D_.js} +249 -242
- package/dist/{vue-ui-mood-radar-j2_LSQyN.js → vue-ui-mood-radar-B-VE2pVS.js} +111 -104
- package/dist/{vue-ui-mood-radar-C6CXwCzk.cjs → vue-ui-mood-radar-CoHouhrl.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CVsN5wLZ.js → vue-ui-nested-donuts-D-7tn_Qe.js} +116 -109
- package/dist/{vue-ui-nested-donuts-BEb5qHRa.cjs → vue-ui-nested-donuts-ITcu4gJW.cjs} +2 -2
- package/dist/{vue-ui-onion-DlqFOcMu.js → vue-ui-onion-B4SgCj8L.js} +143 -136
- package/dist/{vue-ui-onion-C-y9Jsfq.cjs → vue-ui-onion-fzXsWjjI.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-t2isL1XO.cjs → vue-ui-parallel-coordinate-plot-CTFOY5xi.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxwECisr.js → vue-ui-parallel-coordinate-plot-CpQOyh-W.js} +112 -105
- package/dist/{vue-ui-quadrant-DMYZ6Rbh.cjs → vue-ui-quadrant-ByRNr-XD.cjs} +1 -1
- package/dist/{vue-ui-quadrant-rVy92h_8.js → vue-ui-quadrant-DhODDM5V.js} +111 -104
- package/dist/{vue-ui-quick-chart-CE-Qg_jo.cjs → vue-ui-quick-chart-BsQAMw9M.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-DkUCMlp7.js → vue-ui-quick-chart-DpeGH277.js} +194 -187
- package/dist/{vue-ui-radar-j-mDD4Dn.js → vue-ui-radar-CWkrni4Y.js} +100 -93
- package/dist/{vue-ui-radar-DkL4kk1W.cjs → vue-ui-radar-D-qttZKw.cjs} +1 -1
- package/dist/{vue-ui-rating-K_pyDN_G.cjs → vue-ui-rating-CY25IY75.cjs} +1 -1
- package/dist/{vue-ui-rating-CpvfKsg0.js → vue-ui-rating-DB4nQsuM.js} +2 -2
- package/dist/{vue-ui-relation-circle-O0d-4bj0.js → vue-ui-relation-circle-B_PxY9ZN.js} +102 -95
- package/dist/{vue-ui-relation-circle-ChFxKSb0.cjs → vue-ui-relation-circle-KDFaFqqu.cjs} +1 -1
- package/dist/{vue-ui-rings-Cv5WcU9y.cjs → vue-ui-rings-C1Upd5ja.cjs} +2 -2
- package/dist/{vue-ui-rings-DK-HgFva.js → vue-ui-rings-D5-sTr38.js} +168 -161
- package/dist/{vue-ui-scatter-BHCYJgHS.cjs → vue-ui-scatter-B-aqlIcn.cjs} +1 -1
- package/dist/{vue-ui-scatter-CTmhFDqS.js → vue-ui-scatter-C8cn3MR5.js} +85 -78
- package/dist/{vue-ui-screenshot-Ci56oD2d.cjs → vue-ui-screenshot-D9EV_KXZ.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bpp3trys.js → vue-ui-screenshot-kQRZJHLO.js} +1 -1
- package/dist/{vue-ui-skeleton-BIYEApQO.js → vue-ui-skeleton-DIrE1OTF.js} +3 -3
- package/dist/{vue-ui-skeleton-CKwwTTRF.cjs → vue-ui-skeleton-DyJu1ibj.cjs} +1 -1
- package/dist/{vue-ui-smiley-BjcqO7zZ.cjs → vue-ui-smiley-B7dNRQyO.cjs} +1 -1
- package/dist/{vue-ui-smiley-B5ufG407.js → vue-ui-smiley-DVjsjIa4.js} +2 -2
- package/dist/{vue-ui-spark-trend-qz-BtG6X.cjs → vue-ui-spark-trend-DRtaXADG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DnB59fUO.js → vue-ui-spark-trend-DsUy3aw-.js} +5 -5
- package/dist/{vue-ui-sparkbar-D_sMmqjC.js → vue-ui-sparkbar-Dm8xksUj.js} +4 -4
- package/dist/{vue-ui-sparkbar-DQ-IFuy6.cjs → vue-ui-sparkbar-x0F1llCZ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Ce5NGB8P.cjs → vue-ui-sparkgauge-B4DRMVOW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-76-wdTdR.js → vue-ui-sparkgauge-_gF53YgV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DviUQdRD.js → vue-ui-sparkhistogram-CD_0ihS9.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DcSCtmaT.cjs → vue-ui-sparkhistogram-CIMJUDlb.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C75odp3q.js → vue-ui-sparkline-Cs0h6tKI.js} +6 -6
- package/dist/{vue-ui-sparkline-_nWAin6t.cjs → vue-ui-sparkline-DzOL1IDW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-pRfBTPV0.cjs → vue-ui-sparkstackbar-BBz1lDg0.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-JgAJd1j5.js → vue-ui-sparkstackbar-Dhula5ka.js} +5 -5
- package/dist/{vue-ui-stackbar-DK4W1meR.cjs → vue-ui-stackbar-BuUtwfyC.cjs} +3 -3
- package/dist/{vue-ui-stackbar-Ctym-Udc.js → vue-ui-stackbar-DanAQnBd.js} +210 -203
- package/dist/{vue-ui-strip-plot-BU6tkAvd.cjs → vue-ui-strip-plot-95uUJ2fc.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BLmj_-sa.js → vue-ui-strip-plot-DIlGTBzG.js} +82 -75
- package/dist/{vue-ui-table-Cvt9DTpO.cjs → vue-ui-table-CDS7xlZS.cjs} +1 -1
- package/dist/{vue-ui-table-Bot5LadX.js → vue-ui-table-FKZF6cxI.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DE1swMTl.js → vue-ui-table-heatmap-BcGX_vpU.js} +63 -56
- package/dist/{vue-ui-table-heatmap-fALEi4E_.cjs → vue-ui-table-heatmap-qVmiG576.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CWGl8LJc.js → vue-ui-table-sparkline-CVY9EZ7Q.js} +90 -83
- package/dist/{vue-ui-table-sparkline-pQlBn8xE.cjs → vue-ui-table-sparkline-CnVFXbUB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-N5j1BAqA.cjs → vue-ui-thermometer-BTer1qaq.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DDOVwF0r.js → vue-ui-thermometer-tcTgQiAu.js} +113 -106
- package/dist/{vue-ui-timer-CQ9pLz7T.cjs → vue-ui-timer-CmLGKRcK.cjs} +1 -1
- package/dist/{vue-ui-timer-1zEhowHL.js → vue-ui-timer-DO_VKZHm.js} +5 -5
- package/dist/{vue-ui-tiremarks-zlgbR7II.js → vue-ui-tiremarks-BKnAiR_H.js} +76 -69
- package/dist/{vue-ui-tiremarks-DOXxQKUB.cjs → vue-ui-tiremarks-BPxAgMQx.cjs} +1 -1
- package/dist/{vue-ui-treemap-ZJAvws86.cjs → vue-ui-treemap-BnKYnm8A.cjs} +1 -1
- package/dist/{vue-ui-treemap-C7oZrYCa.js → vue-ui-treemap-oE2QDc_9.js} +143 -136
- package/dist/{vue-ui-vertical-bar-rtqu_UjN.js → vue-ui-vertical-bar-BfFnXSO5.js} +119 -112
- package/dist/{vue-ui-vertical-bar-BFeF_dBM.cjs → vue-ui-vertical-bar-CHUZAnfv.cjs} +3 -3
- package/dist/{vue-ui-waffle-C0E54-ms.cjs → vue-ui-waffle-DxL_bhhX.cjs} +1 -1
- package/dist/{vue-ui-waffle-CgsNawVA.js → vue-ui-waffle-YwQAGMlZ.js} +77 -70
- package/dist/{vue-ui-wheel-StQOeYIO.cjs → vue-ui-wheel-CbEf5uhL.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cm7g8eux.js → vue-ui-wheel-gZQIZUx1.js} +104 -97
- package/dist/{vue-ui-word-cloud-qNxRgN5J.js → vue-ui-word-cloud-CXpfOcDf.js} +122 -115
- package/dist/{vue-ui-word-cloud-Bc31_IfR.cjs → vue-ui-word-cloud-Ddmhs5i-.cjs} +1 -1
- package/dist/{vue-ui-xy-wbWmX1Zh.cjs → vue-ui-xy-BFdih9uG.cjs} +2 -2
- package/dist/{vue-ui-xy-BTjOTcAY.js → vue-ui-xy-BHGNHgRk.js} +72 -65
- package/dist/{vue-ui-xy-canvas-BpyntzCo.js → vue-ui-xy-canvas-BFZjHXBj.js} +200 -193
- package/dist/{vue-ui-xy-canvas-BljjkGUh.cjs → vue-ui-xy-canvas-hM1oa-dn.cjs} +2 -2
- package/package.json +1 -1
- package/dist/usePrinter-DB2FudbZ.cjs +0 -1
- package/dist/vue-ui-heatmap-Bz5l9BbM.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as
|
|
3
|
-
import { u as ee } from "./useNestedProp-
|
|
4
|
-
import { _ as Oe } from "./Title-
|
|
5
|
-
import { L as Ae } from "./Legend-
|
|
6
|
-
import { u as Be, U as Pe } from "./usePrinter-
|
|
7
|
-
import { _ as Fe } from "./PackageVersion-
|
|
8
|
-
import { P as
|
|
9
|
-
import
|
|
1
|
+
import { ref as g, computed as f, onMounted as ge, watch as K, onBeforeUnmount as fe, createElementBlock as o, openBlock as r, unref as u, normalizeStyle as H, normalizeClass as Q, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as me, withCtx as p, renderSlot as m, normalizeProps as L, guardReactiveProps as $, createVNode as ye, Fragment as M, renderList as T, toDisplayString as O } from "vue";
|
|
2
|
+
import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as A, f as B, X as Le, a as $e } from "./index-Cq7-va_5.js";
|
|
3
|
+
import { u as ee } from "./useNestedProp-BEyJNlaO.js";
|
|
4
|
+
import { _ as Oe } from "./Title-CUHNtIyE.js";
|
|
5
|
+
import { L as Ae } from "./Legend-CaMKYW-V.js";
|
|
6
|
+
import { u as Be, U as Pe } from "./usePrinter-jRjc8Naz.js";
|
|
7
|
+
import { _ as Fe } from "./PackageVersion-CURzw4q1.js";
|
|
8
|
+
import { P as Ie } from "./PenAndPaper-CjiJra09.js";
|
|
9
|
+
import Se from "./vue-ui-skeleton-DIrE1OTF.js";
|
|
10
10
|
import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as Me } from "./useChartAccessibility-BWojgys7.js";
|
|
12
12
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -42,10 +42,10 @@ const Ue = ["id"], Ne = {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
setup(te, { expose: ae }) {
|
|
45
|
-
const { vue_ui_bullet: le } = pe(), n = te, U =
|
|
45
|
+
const { vue_ui_bullet: le } = pe(), n = te, U = g(null), se = g(null), N = g(0), re = g(null), oe = g(0), y = f({
|
|
46
46
|
get: () => n.dataset.hasOwnProperty("value"),
|
|
47
47
|
set: (t) => t
|
|
48
|
-
}),
|
|
48
|
+
}), b = f(() => n.dataset.segments ? Array.isArray(n.dataset.segments) ? n.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
49
49
|
|
|
50
50
|
segments: [
|
|
51
51
|
{
|
|
@@ -56,7 +56,7 @@ segments: [
|
|
|
56
56
|
},
|
|
57
57
|
{...}
|
|
58
58
|
]
|
|
59
|
-
`),
|
|
59
|
+
`), y.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
60
60
|
|
|
61
61
|
segments: [
|
|
62
62
|
{
|
|
@@ -67,7 +67,7 @@ segments: [
|
|
|
67
67
|
},
|
|
68
68
|
{...}
|
|
69
69
|
]
|
|
70
|
-
`),
|
|
70
|
+
`), y.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
71
71
|
|
|
72
72
|
segments: [
|
|
73
73
|
{
|
|
@@ -78,27 +78,27 @@ segments: [
|
|
|
78
78
|
},
|
|
79
79
|
{...}
|
|
80
80
|
]
|
|
81
|
-
`),
|
|
81
|
+
`), y.value = !1, !1));
|
|
82
82
|
ge(z);
|
|
83
83
|
function z() {
|
|
84
84
|
be(n.dataset) ? Z({
|
|
85
85
|
componentName: "VueUiBullet",
|
|
86
86
|
type: "dataset"
|
|
87
|
-
}) :
|
|
87
|
+
}) : b.value ? n.dataset.segments.forEach((t, s) => {
|
|
88
88
|
ke({
|
|
89
89
|
datasetObject: t,
|
|
90
90
|
requiredAttributes: ["name", "from", "to"]
|
|
91
|
-
}).forEach((
|
|
92
|
-
|
|
91
|
+
}).forEach((a) => {
|
|
92
|
+
y.value = !1, Z({
|
|
93
93
|
componentName: "VueUiBullet segment",
|
|
94
94
|
type: "datasetSerieAttribute",
|
|
95
|
-
property:
|
|
95
|
+
property: a,
|
|
96
96
|
index: s
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
}) :
|
|
99
|
+
}) : y.value = !1, e.value.style.chart.animation.show && j(n.dataset.value || 0);
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const P = g(we());
|
|
102
102
|
function R() {
|
|
103
103
|
const t = ee({
|
|
104
104
|
userConfig: n.config,
|
|
@@ -111,92 +111,92 @@ segments: [
|
|
|
111
111
|
})
|
|
112
112
|
} : t;
|
|
113
113
|
}
|
|
114
|
-
const e =
|
|
114
|
+
const e = f({
|
|
115
115
|
get: () => R(),
|
|
116
116
|
set: (t) => t
|
|
117
|
-
}), { userOptionsVisible:
|
|
117
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: W, keepUserOptionState: E } = He({ config: e.value }), { svgRef: D } = Me({ config: e.value.style.chart.title });
|
|
118
118
|
K(() => n.config, (t) => {
|
|
119
|
-
e.value = R(),
|
|
119
|
+
e.value = R(), F.value = !e.value.userOptions.showOnChartHover, z(), N.value += 1;
|
|
120
120
|
}, { deep: !0 });
|
|
121
|
-
const
|
|
122
|
-
const t = e.value.style.chart.height, s = e.value.style.chart.width,
|
|
121
|
+
const l = f(() => {
|
|
122
|
+
const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
|
|
123
123
|
return {
|
|
124
124
|
height: t,
|
|
125
125
|
width: s,
|
|
126
|
-
left:
|
|
127
|
-
right:
|
|
126
|
+
left: a,
|
|
127
|
+
right: d,
|
|
128
128
|
top: C,
|
|
129
129
|
bottom: v,
|
|
130
|
-
chartWidth:
|
|
130
|
+
chartWidth: d - a,
|
|
131
131
|
chartHeight: v - C
|
|
132
132
|
};
|
|
133
|
-
}), ne =
|
|
134
|
-
if (!
|
|
133
|
+
}), ne = f(() => {
|
|
134
|
+
if (!b.value) return [];
|
|
135
135
|
const t = [];
|
|
136
136
|
for (let s = 0; s < n.dataset.segments.length; s += 1)
|
|
137
137
|
t.push(xe(e.value.style.chart.segments.baseColor, s / n.dataset.segments.length));
|
|
138
138
|
return t;
|
|
139
|
-
}),
|
|
139
|
+
}), I = f(() => b.value ? {
|
|
140
140
|
min: Math.min(...n.dataset.segments.map((t) => t.from)),
|
|
141
141
|
max: Math.max(...n.dataset.segments.map((t) => t.to))
|
|
142
|
-
} : { min: 0, max: 1 }), c =
|
|
142
|
+
} : { min: 0, max: 1 }), c = g(ue());
|
|
143
143
|
K(() => n.dataset, (t) => {
|
|
144
144
|
e.value.style.chart.animation.show ? j(t.value || 0) : c.value = t.value || 0;
|
|
145
145
|
}, { deep: !0 });
|
|
146
146
|
function ue() {
|
|
147
|
-
return e.value.style.chart.animation.show ?
|
|
147
|
+
return e.value.style.chart.animation.show ? I.value.min : n.dataset.value || 0;
|
|
148
148
|
}
|
|
149
|
-
const V =
|
|
149
|
+
const V = g(null);
|
|
150
150
|
function j(t) {
|
|
151
151
|
const s = Math.abs(t - c.value) / e.value.style.chart.animation.animationFrames;
|
|
152
|
-
function
|
|
153
|
-
c.value < t ? c.value = Math.min(c.value + s, t) : c.value > t && (c.value = Math.max(c.value - s, t)), c.value !== t && (V.value = requestAnimationFrame(
|
|
152
|
+
function a() {
|
|
153
|
+
c.value < t ? c.value = Math.min(c.value + s, t) : c.value > t && (c.value = Math.max(c.value - s, t)), c.value !== t && (V.value = requestAnimationFrame(a));
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
a();
|
|
156
156
|
}
|
|
157
157
|
fe(() => {
|
|
158
158
|
cancelAnimationFrame(V.value);
|
|
159
159
|
});
|
|
160
|
-
const h =
|
|
161
|
-
if (!
|
|
160
|
+
const h = f(() => {
|
|
161
|
+
if (!b.value)
|
|
162
162
|
return [];
|
|
163
|
-
const t = _e(
|
|
164
|
-
x:
|
|
165
|
-
},
|
|
166
|
-
width: (c.value + s) / (t.max + s) *
|
|
163
|
+
const t = _e(I.value.min, I.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
164
|
+
x: l.value.left + (n.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
165
|
+
}, d = {
|
|
166
|
+
width: (c.value + s) / (t.max + s) * l.value.chartWidth
|
|
167
167
|
}, C = t.ticks.map((v) => ({
|
|
168
168
|
value: v,
|
|
169
|
-
y:
|
|
170
|
-
x:
|
|
169
|
+
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
170
|
+
x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
|
|
171
171
|
}));
|
|
172
172
|
return {
|
|
173
173
|
scale: t,
|
|
174
|
-
target:
|
|
175
|
-
value:
|
|
174
|
+
target: a,
|
|
175
|
+
value: d,
|
|
176
176
|
ticks: C,
|
|
177
177
|
chunks: n.dataset.segments.map((v, de) => ({
|
|
178
178
|
...v,
|
|
179
179
|
color: v.color ? Ce(v.color) : ne.value[de],
|
|
180
|
-
x:
|
|
181
|
-
y:
|
|
182
|
-
height:
|
|
183
|
-
width:
|
|
180
|
+
x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
|
|
181
|
+
y: l.value.top,
|
|
182
|
+
height: l.value.chartHeight,
|
|
183
|
+
width: l.value.chartWidth * (Math.abs(v.to - v.from) / (t.max + s))
|
|
184
184
|
}))
|
|
185
185
|
};
|
|
186
|
-
}), G =
|
|
187
|
-
const s =
|
|
186
|
+
}), G = f(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
|
|
187
|
+
const s = A(
|
|
188
188
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
189
189
|
t.from,
|
|
190
|
-
|
|
190
|
+
B({
|
|
191
191
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
192
192
|
v: t.from,
|
|
193
193
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
194
194
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
195
195
|
})
|
|
196
|
-
),
|
|
196
|
+
), a = A(
|
|
197
197
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
198
198
|
t.to,
|
|
199
|
-
|
|
199
|
+
B({
|
|
200
200
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
201
201
|
v: t.to,
|
|
202
202
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -206,9 +206,9 @@ segments: [
|
|
|
206
206
|
return {
|
|
207
207
|
...t,
|
|
208
208
|
shape: "square",
|
|
209
|
-
value: `${s} - ${
|
|
209
|
+
value: `${s} - ${a}`
|
|
210
210
|
};
|
|
211
|
-
})), ie =
|
|
211
|
+
})), ie = f(() => ({
|
|
212
212
|
cy: "bullet-div-legend",
|
|
213
213
|
backgroundColor: "transparent",
|
|
214
214
|
color: e.value.style.chart.legend.color,
|
|
@@ -216,40 +216,40 @@ segments: [
|
|
|
216
216
|
paddingBottom: 6,
|
|
217
217
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
218
218
|
})), { isPrinting: q, isImaging: X, generatePdf: Y, generateImage: J } = Be({
|
|
219
|
-
elementId: `bullet_${
|
|
219
|
+
elementId: `bullet_${P.value}`,
|
|
220
220
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet"
|
|
221
|
-
}), ce =
|
|
221
|
+
}), ce = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
|
|
222
222
|
function he(t) {
|
|
223
|
-
|
|
223
|
+
k.value = t, oe.value += 1;
|
|
224
224
|
}
|
|
225
225
|
function ve() {
|
|
226
226
|
return h.value;
|
|
227
227
|
}
|
|
228
|
-
const _ =
|
|
229
|
-
function
|
|
228
|
+
const _ = g(!1);
|
|
229
|
+
function S() {
|
|
230
230
|
_.value = !_.value;
|
|
231
231
|
}
|
|
232
232
|
return ae({
|
|
233
233
|
getData: ve,
|
|
234
234
|
generatePdf: Y,
|
|
235
235
|
generateImage: J,
|
|
236
|
-
toggleAnnotator:
|
|
236
|
+
toggleAnnotator: S
|
|
237
237
|
}), (t, s) => (r(), o("div", {
|
|
238
238
|
ref_key: "bulletChart",
|
|
239
239
|
ref: U,
|
|
240
|
-
class: Q(`vue-ui-bullet ${
|
|
241
|
-
style:
|
|
242
|
-
id: `bullet_${
|
|
240
|
+
class: Q(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
241
|
+
style: H(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
242
|
+
id: `bullet_${P.value}`,
|
|
243
243
|
onMouseenter: s[0] || (s[0] = () => u(W)(!0)),
|
|
244
244
|
onMouseleave: s[1] || (s[1] = () => u(W)(!1))
|
|
245
245
|
}, [
|
|
246
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
246
|
+
e.value.userOptions.buttons.annotator ? (r(), w(Ie, {
|
|
247
247
|
key: 0,
|
|
248
248
|
svgRef: u(D),
|
|
249
249
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
250
250
|
color: e.value.style.chart.color,
|
|
251
251
|
active: _.value,
|
|
252
|
-
onClose:
|
|
252
|
+
onClose: S
|
|
253
253
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
254
254
|
ce.value ? (r(), o("div", Ne, null, 512)) : i("", !0),
|
|
255
255
|
e.value.style.chart.title.text ? (r(), o("div", {
|
|
@@ -258,7 +258,7 @@ segments: [
|
|
|
258
258
|
ref: se,
|
|
259
259
|
style: "width:100%;background:transparent;"
|
|
260
260
|
}, [
|
|
261
|
-
(r(),
|
|
261
|
+
(r(), w(Oe, {
|
|
262
262
|
lineHeight: "1.3rem",
|
|
263
263
|
key: `title_${N.value}`,
|
|
264
264
|
config: {
|
|
@@ -273,14 +273,14 @@ segments: [
|
|
|
273
273
|
}
|
|
274
274
|
}, null, 8, ["config"]))
|
|
275
275
|
], 512)) : i("", !0),
|
|
276
|
-
e.value.userOptions.show &&
|
|
276
|
+
e.value.userOptions.show && y.value && (u(E) || u(F)) ? (r(), w(Pe, {
|
|
277
277
|
key: 3,
|
|
278
278
|
ref: "details",
|
|
279
279
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
280
280
|
color: e.value.style.chart.color,
|
|
281
281
|
isPrinting: u(q),
|
|
282
282
|
isImaging: u(X),
|
|
283
|
-
uid:
|
|
283
|
+
uid: P.value,
|
|
284
284
|
hasTooltip: !1,
|
|
285
285
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
286
286
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -288,7 +288,7 @@ segments: [
|
|
|
288
288
|
hasTable: !1,
|
|
289
289
|
hasLabel: !1,
|
|
290
290
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
291
|
-
isFullscreen:
|
|
291
|
+
isFullscreen: k.value,
|
|
292
292
|
chartElement: U.value,
|
|
293
293
|
position: e.value.userOptions.position,
|
|
294
294
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -297,87 +297,94 @@ segments: [
|
|
|
297
297
|
onToggleFullscreen: he,
|
|
298
298
|
onGeneratePdf: u(Y),
|
|
299
299
|
onGenerateImage: u(J),
|
|
300
|
-
onToggleAnnotator:
|
|
301
|
-
style:
|
|
302
|
-
visibility: u(E) ? u(
|
|
300
|
+
onToggleAnnotator: S,
|
|
301
|
+
style: H({
|
|
302
|
+
visibility: u(E) ? u(F) ? "visible" : "hidden" : "visible"
|
|
303
303
|
})
|
|
304
304
|
}, me({ _: 2 }, [
|
|
305
|
+
t.$slots.menuIcon ? {
|
|
306
|
+
name: "menuIcon",
|
|
307
|
+
fn: p(({ isOpen: a, color: d }) => [
|
|
308
|
+
m(t.$slots, "menuIcon", L($({ isOpen: a, color: d })), void 0, !0)
|
|
309
|
+
]),
|
|
310
|
+
key: "0"
|
|
311
|
+
} : void 0,
|
|
305
312
|
t.$slots.optionPdf ? {
|
|
306
313
|
name: "optionPdf",
|
|
307
|
-
fn:
|
|
308
|
-
|
|
314
|
+
fn: p(() => [
|
|
315
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
309
316
|
]),
|
|
310
|
-
key: "
|
|
317
|
+
key: "1"
|
|
311
318
|
} : void 0,
|
|
312
319
|
t.$slots.optionImg ? {
|
|
313
320
|
name: "optionImg",
|
|
314
|
-
fn:
|
|
315
|
-
|
|
321
|
+
fn: p(() => [
|
|
322
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
316
323
|
]),
|
|
317
|
-
key: "
|
|
324
|
+
key: "2"
|
|
318
325
|
} : void 0,
|
|
319
326
|
t.$slots.optionFullscreen ? {
|
|
320
327
|
name: "optionFullscreen",
|
|
321
|
-
fn:
|
|
322
|
-
|
|
328
|
+
fn: p(({ toggleFullscreen: a, isFullscreen: d }) => [
|
|
329
|
+
m(t.$slots, "optionFullscreen", L($({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
|
|
323
330
|
]),
|
|
324
|
-
key: "
|
|
331
|
+
key: "3"
|
|
325
332
|
} : void 0,
|
|
326
333
|
t.$slots.optionAnnotator ? {
|
|
327
334
|
name: "optionAnnotator",
|
|
328
|
-
fn:
|
|
329
|
-
|
|
335
|
+
fn: p(({ toggleAnnotator: a, isAnnotator: d }) => [
|
|
336
|
+
m(t.$slots, "optionAnnotator", L($({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
|
|
330
337
|
]),
|
|
331
|
-
key: "
|
|
338
|
+
key: "4"
|
|
332
339
|
} : void 0
|
|
333
340
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
334
|
-
|
|
341
|
+
y.value ? (r(), o("svg", {
|
|
335
342
|
key: 4,
|
|
336
343
|
ref_key: "svgRef",
|
|
337
344
|
ref: D,
|
|
338
345
|
xmlns: u(Le),
|
|
339
|
-
class: Q({ "vue-data-ui-fullscreen--on":
|
|
340
|
-
viewBox: `0 0 ${
|
|
341
|
-
style:
|
|
346
|
+
class: Q({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value, "vue-ui-bullet-svg": !0 }),
|
|
347
|
+
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
348
|
+
style: H(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
342
349
|
}, [
|
|
343
350
|
ye(Fe),
|
|
344
351
|
t.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
345
352
|
key: 0,
|
|
346
353
|
x: 0,
|
|
347
354
|
y: 0,
|
|
348
|
-
width:
|
|
349
|
-
height:
|
|
355
|
+
width: l.value.width,
|
|
356
|
+
height: l.value.height,
|
|
350
357
|
style: {
|
|
351
358
|
pointerEvents: "none"
|
|
352
359
|
}
|
|
353
360
|
}, [
|
|
354
|
-
|
|
361
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
355
362
|
], 8, Re)) : i("", !0),
|
|
356
|
-
|
|
357
|
-
(r(!0), o(M, null, T(h.value.chunks, (
|
|
358
|
-
x:
|
|
359
|
-
y:
|
|
360
|
-
height:
|
|
361
|
-
width:
|
|
362
|
-
fill:
|
|
363
|
+
b.value ? (r(), o("g", We, [
|
|
364
|
+
(r(!0), o(M, null, T(h.value.chunks, (a) => (r(), o("rect", {
|
|
365
|
+
x: a.x,
|
|
366
|
+
y: a.y,
|
|
367
|
+
height: a.height,
|
|
368
|
+
width: a.width,
|
|
369
|
+
fill: a.color,
|
|
363
370
|
"stroke-width": 1,
|
|
364
371
|
stroke: e.value.style.chart.backgroundColor
|
|
365
372
|
}, null, 8, Ee))), 256)),
|
|
366
373
|
e.value.style.chart.target.onTop ? i("", !0) : (r(), o("rect", {
|
|
367
374
|
key: 0,
|
|
368
375
|
x: h.value.target.x,
|
|
369
|
-
y:
|
|
370
|
-
height:
|
|
376
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
377
|
+
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
371
378
|
width: e.value.style.chart.target.width,
|
|
372
379
|
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
373
380
|
fill: e.value.style.chart.target.color,
|
|
374
381
|
stroke: e.value.style.chart.target.stroke,
|
|
375
382
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
376
383
|
}, null, 8, De)),
|
|
377
|
-
|
|
378
|
-
x:
|
|
379
|
-
y:
|
|
380
|
-
height:
|
|
384
|
+
x("rect", {
|
|
385
|
+
x: l.value.left,
|
|
386
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
387
|
+
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
381
388
|
width: h.value.value.width,
|
|
382
389
|
fill: e.value.style.chart.valueBar.color,
|
|
383
390
|
stroke: e.value.style.chart.valueBar.stroke,
|
|
@@ -385,16 +392,16 @@ segments: [
|
|
|
385
392
|
}, null, 8, Ve),
|
|
386
393
|
e.value.style.chart.valueBar.label.show ? (r(), o("text", {
|
|
387
394
|
key: 1,
|
|
388
|
-
x:
|
|
389
|
-
y:
|
|
395
|
+
x: l.value.left + h.value.value.width,
|
|
396
|
+
y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
390
397
|
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
391
398
|
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
392
399
|
fill: e.value.style.chart.valueBar.label.color,
|
|
393
400
|
"text-anchor": "middle"
|
|
394
|
-
},
|
|
401
|
+
}, O(u(A)(
|
|
395
402
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
396
403
|
c.value,
|
|
397
|
-
u(
|
|
404
|
+
u(B)({
|
|
398
405
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
399
406
|
v: c.value,
|
|
400
407
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -404,8 +411,8 @@ segments: [
|
|
|
404
411
|
e.value.style.chart.target.onTop ? (r(), o("rect", {
|
|
405
412
|
key: 2,
|
|
406
413
|
x: h.value.target.x,
|
|
407
|
-
y:
|
|
408
|
-
height:
|
|
414
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
415
|
+
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
409
416
|
width: e.value.style.chart.target.width,
|
|
410
417
|
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
411
418
|
fill: e.value.style.chart.target.color,
|
|
@@ -413,42 +420,42 @@ segments: [
|
|
|
413
420
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
414
421
|
}, null, 8, Ge)) : i("", !0),
|
|
415
422
|
e.value.style.chart.segments.dataLabels.show ? (r(), o("g", qe, [
|
|
416
|
-
(r(!0), o(M, null, T(h.value.ticks, (
|
|
417
|
-
x:
|
|
418
|
-
y:
|
|
423
|
+
(r(!0), o(M, null, T(h.value.ticks, (a) => (r(), o("text", {
|
|
424
|
+
x: a.x,
|
|
425
|
+
y: a.y,
|
|
419
426
|
"text-anchor": "middle",
|
|
420
427
|
fill: e.value.style.chart.segments.dataLabels.color,
|
|
421
428
|
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
422
429
|
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
423
|
-
},
|
|
430
|
+
}, O(u(A)(
|
|
424
431
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
425
|
-
|
|
426
|
-
u(
|
|
432
|
+
a.value,
|
|
433
|
+
u(B)({
|
|
427
434
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
428
|
-
v:
|
|
435
|
+
v: a.value,
|
|
429
436
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
430
437
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
431
438
|
})
|
|
432
439
|
)), 9, Xe))), 256))
|
|
433
440
|
])) : i("", !0),
|
|
434
441
|
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), o("g", Ye, [
|
|
435
|
-
(r(!0), o(M, null, T(h.value.ticks, (
|
|
436
|
-
x1:
|
|
437
|
-
x2:
|
|
438
|
-
y1:
|
|
439
|
-
y2:
|
|
442
|
+
(r(!0), o(M, null, T(h.value.ticks, (a) => (r(), o("line", {
|
|
443
|
+
x1: a.x,
|
|
444
|
+
x2: a.x,
|
|
445
|
+
y1: l.value.bottom,
|
|
446
|
+
y2: l.value.bottom + 3,
|
|
440
447
|
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
441
448
|
"stroke-width": 1,
|
|
442
449
|
"stroke-linecap": "round"
|
|
443
450
|
}, null, 8, Je))), 256))
|
|
444
451
|
])) : i("", !0)
|
|
445
452
|
])) : i("", !0),
|
|
446
|
-
|
|
453
|
+
m(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
447
454
|
], 14, ze)) : i("", !0),
|
|
448
455
|
t.$slots.watermark ? (r(), o("div", Ke, [
|
|
449
|
-
|
|
456
|
+
m(t.$slots, "watermark", L($({ isPrinting: u(q) || u(X) })), void 0, !0)
|
|
450
457
|
])) : i("", !0),
|
|
451
|
-
|
|
458
|
+
y.value ? i("", !0) : (r(), w(Se, {
|
|
452
459
|
key: 6,
|
|
453
460
|
config: {
|
|
454
461
|
type: "bullet",
|
|
@@ -460,32 +467,32 @@ segments: [
|
|
|
460
467
|
}
|
|
461
468
|
}
|
|
462
469
|
}, null, 8, ["config"])),
|
|
463
|
-
|
|
470
|
+
x("div", {
|
|
464
471
|
ref_key: "chartLegend",
|
|
465
472
|
ref: re
|
|
466
473
|
}, [
|
|
467
|
-
e.value.style.chart.legend.show ? (r(),
|
|
474
|
+
e.value.style.chart.legend.show ? (r(), w(Ae, {
|
|
468
475
|
key: 0,
|
|
469
476
|
clickable: !1,
|
|
470
477
|
legendSet: G.value,
|
|
471
478
|
config: ie.value
|
|
472
479
|
}, {
|
|
473
|
-
item:
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
480
|
+
item: p(({ legend: a }) => [
|
|
481
|
+
x("div", Qe, [
|
|
482
|
+
x("span", Ze, O(a.name) + ":", 1),
|
|
483
|
+
x("span", null, O(a.value), 1)
|
|
477
484
|
])
|
|
478
485
|
]),
|
|
479
486
|
_: 1
|
|
480
487
|
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
481
|
-
|
|
488
|
+
m(t.$slots, "legend", { legend: G.value }, void 0, !0)
|
|
482
489
|
], 512),
|
|
483
490
|
t.$slots.source ? (r(), o("div", et, [
|
|
484
|
-
|
|
491
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
485
492
|
], 512)) : i("", !0)
|
|
486
493
|
], 46, Ue));
|
|
487
494
|
}
|
|
488
|
-
}, gt = /* @__PURE__ */ Te(tt, [["__scopeId", "data-v-
|
|
495
|
+
}, gt = /* @__PURE__ */ Te(tt, [["__scopeId", "data-v-1ef5edae"]]);
|
|
489
496
|
export {
|
|
490
497
|
gt as default
|
|
491
498
|
};
|