vue-data-ui 2.3.27 → 2.3.29
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 +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as p, ref as d, watch as ye, onMounted as ge, onBeforeUnmount as pe, openBlock as
|
|
2
|
-
import { u as be, c as _e, t as xe, a as we, p as ee, b as Fe, o as te, d as Se, e as X, g as ae, m as le, X as ze,
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
1
|
+
import { computed as p, ref as d, watch as ye, onMounted as ge, onBeforeUnmount as pe, openBlock as s, createElementBlock as n, normalizeClass as Z, normalizeStyle as E, createVNode as me, withCtx as I, toDisplayString as z, createCommentVNode as g, createBlock as J, unref as c, createSlots as ke, renderSlot as w, normalizeProps as K, guardReactiveProps as Q, createElementVNode as h, Fragment as O, renderList as A } from "vue";
|
|
2
|
+
import { u as be, c as _e, t as xe, a as we, p as ee, b as Fe, o as te, d as Se, e as X, g as ae, m as le, X as ze, v as j, H as N, i as $e, f as Ce, C as re } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { t as Me, u as Pe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { u as Ie, U as Oe } from "./usePrinter-CZ8F5Cth.js";
|
|
5
|
+
import Xe from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
6
|
+
import { _ as Ne } from "./Title-eBTH8iGJ.js";
|
|
7
|
+
import { u as se } from "./useNestedProp-BoNl5H_z.js";
|
|
8
|
+
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const Ge = ["id"], Re = { key: 0 }, Ee = ["xmlns", "viewBox"], Ae = ["id"], je = ["stop-color"], De = ["stop-color"], Le = ["stop-color"], Ue = ["id"], Ve = ["stdDeviation"], Be = ["d", "fill", "stroke"], We = ["d", "filter"], Te = ["y", "width", "height", "fill"], qe = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], He = ["x", "y", "font-size", "font-weight", "fill"], Ze = { key: 1 }, Je = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ke = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qe = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], et = { key: 2 }, tt = ["d", "fill", "stroke", "stroke-width"], at = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], lt = ["x", "y", "font-size", "fill"], rt = {
|
|
10
10
|
key: 3,
|
|
11
11
|
class: "vue-data-ui-watermark"
|
|
12
|
-
},
|
|
12
|
+
}, st = {
|
|
13
13
|
__name: "vue-ui-gauge",
|
|
14
14
|
props: {
|
|
15
15
|
config: {
|
|
@@ -25,23 +25,23 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
setup(Y, { expose:
|
|
29
|
-
const u = Y, { vue_ui_gauge: ue } = be(), $ = p(() => !!u.dataset && Object.keys(u.dataset).length),
|
|
30
|
-
const l =
|
|
28
|
+
setup(Y, { expose: oe }) {
|
|
29
|
+
const u = Y, { vue_ui_gauge: ue } = be(), $ = p(() => !!u.dataset && Object.keys(u.dataset).length), m = d(_e()), ne = d(null), D = d(0), C = d(null), L = d(null), U = d(null), e = p(() => {
|
|
30
|
+
const l = se({
|
|
31
31
|
userConfig: u.config,
|
|
32
32
|
defaultConfig: ue
|
|
33
33
|
});
|
|
34
34
|
return l.theme ? {
|
|
35
|
-
...
|
|
35
|
+
...se({
|
|
36
36
|
userConfig: xe.vue_ui_gauge[l.theme] || u.config,
|
|
37
37
|
defaultConfig: l
|
|
38
38
|
}),
|
|
39
39
|
customPalette: we[l.theme] || ee
|
|
40
40
|
} : l;
|
|
41
|
-
}), { isPrinting:
|
|
42
|
-
elementId: `vue-ui-gauge_${
|
|
41
|
+
}), { isPrinting: V, isImaging: B, generatePdf: W, generateImage: T } = Ie({
|
|
42
|
+
elementId: `vue-ui-gauge_${m.value}`,
|
|
43
43
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
44
|
-
}), ie = p(() => Fe(e.value.customPalette)),
|
|
44
|
+
}), ie = p(() => Fe(e.value.customPalette)), b = p(() => {
|
|
45
45
|
if (!$.value || te(u.dataset.series || {}))
|
|
46
46
|
return {
|
|
47
47
|
value: 0,
|
|
@@ -65,13 +65,13 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
65
65
|
value: ((a.to || 0) - (a.from || 0)) / r * 100
|
|
66
66
|
}))
|
|
67
67
|
};
|
|
68
|
-
}),
|
|
68
|
+
}), y = d(512), t = d({
|
|
69
69
|
height: 358.4,
|
|
70
|
-
width:
|
|
70
|
+
width: y.value,
|
|
71
71
|
top: 0,
|
|
72
72
|
bottom: 358.4,
|
|
73
73
|
centerX: 179.2,
|
|
74
|
-
centerY:
|
|
74
|
+
centerY: y.value / 2,
|
|
75
75
|
labelFontSize: 18,
|
|
76
76
|
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
77
77
|
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
@@ -79,25 +79,25 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
79
79
|
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
80
80
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
81
81
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3
|
|
82
|
-
}),
|
|
82
|
+
}), F = d(0), _ = d(0), f = d(e.value.style.chart.animation.use ? 0 : u.dataset.value);
|
|
83
83
|
ye(() => u.dataset.value, () => {
|
|
84
|
-
|
|
84
|
+
f.value = e.value.style.chart.animation.use ? 0 : u.dataset.value, H();
|
|
85
85
|
});
|
|
86
|
-
const
|
|
87
|
-
const l = t.value.width / 2, r =
|
|
86
|
+
const v = p(() => {
|
|
87
|
+
const l = t.value.width / 2, r = o.value.base, a = Math.PI * ((f.value + 0 - _.value) / (F.value - _.value)) + Math.PI;
|
|
88
88
|
return {
|
|
89
89
|
x1: l,
|
|
90
90
|
y1: r,
|
|
91
|
-
x2: l +
|
|
92
|
-
y2: r +
|
|
91
|
+
x2: l + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a),
|
|
92
|
+
y2: r + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a)
|
|
93
93
|
};
|
|
94
94
|
}), q = p(() => {
|
|
95
|
-
const l = t.value.width / 2, r =
|
|
95
|
+
const l = t.value.width / 2, r = o.value.base, a = Math.PI * ((f.value + 0 - _.value) / (F.value - _.value)) + Math.PI, i = l + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(a), R = r + o.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(a), k = t.value.pointerRadius, P = l + k * Math.cos(a + Math.PI / 2), de = r + k * Math.sin(a + Math.PI / 2), he = l + k * Math.cos(a - Math.PI / 2), fe = r + k * Math.sin(a - Math.PI / 2);
|
|
96
96
|
return isNaN(i) ? null : `M ${i},${R} ${P},${de} ${he},${fe} Z`;
|
|
97
97
|
}), G = p(() => {
|
|
98
|
-
for (let l = 0; l <
|
|
99
|
-
const { color: r, from: a, to: i } =
|
|
100
|
-
if (
|
|
98
|
+
for (let l = 0; l < b.value.series.length; l += 1) {
|
|
99
|
+
const { color: r, from: a, to: i } = b.value.series[l];
|
|
100
|
+
if (f.value >= a && f.value <= i)
|
|
101
101
|
return r;
|
|
102
102
|
}
|
|
103
103
|
return "#2D353C";
|
|
@@ -132,21 +132,21 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
132
132
|
type: "datasetAttributeEmpty",
|
|
133
133
|
property: "series"
|
|
134
134
|
}))), H(), e.value.responsive) {
|
|
135
|
-
const l =
|
|
136
|
-
const { width: r, height: a } =
|
|
135
|
+
const l = Me(() => {
|
|
136
|
+
const { width: r, height: a } = Pe({
|
|
137
137
|
chart: C.value,
|
|
138
|
-
title: e.value.style.chart.title.text ?
|
|
139
|
-
legend:
|
|
138
|
+
title: e.value.style.chart.title.text ? L.value : null,
|
|
139
|
+
legend: U.value
|
|
140
140
|
});
|
|
141
|
-
t.value.width = r, t.value.height = a, t.value.centerX = r / 2, t.value.centerY =
|
|
141
|
+
t.value.width = r, t.value.height = a, t.value.centerX = r / 2, t.value.centerY = y.value / 2 / 358.4 * a, t.value.bottom = a, t.value.labelFontSize = 18 / y.value * Math.min(a, r) < 10 ? 10 : 18 / y.value * Math.min(a, r), t.value.legendFontSize = e.value.style.chart.legend.fontSize / y.value * Math.min(a, r) < 14 ? 14 : e.value.style.chart.legend.fontSize / y.value * Math.min(a, r), t.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / y.value * Math.min(a, r), t.value.trackSize = e.value.style.chart.layout.track.size / y.value * Math.min(a, r), t.value.pointerStrokeWidth = re({
|
|
142
142
|
relator: Math.min(r, a),
|
|
143
|
-
adjuster:
|
|
143
|
+
adjuster: y.value,
|
|
144
144
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
145
145
|
threshold: 2,
|
|
146
146
|
fallback: 2
|
|
147
147
|
}), t.value.markerOffset = re({
|
|
148
148
|
relator: Math.max(r, a),
|
|
149
|
-
adjuster:
|
|
149
|
+
adjuster: y.value,
|
|
150
150
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
151
151
|
threshold: 2,
|
|
152
152
|
fallback: 2
|
|
@@ -159,17 +159,17 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
159
159
|
});
|
|
160
160
|
function H() {
|
|
161
161
|
const l = [];
|
|
162
|
-
(
|
|
162
|
+
(b.value.series || []).forEach((P) => {
|
|
163
163
|
l.push(P.from || 0), l.push(P.to || 0);
|
|
164
|
-
}),
|
|
165
|
-
const r = String(
|
|
164
|
+
}), F.value = Math.max(...l), _.value = Math.min(...l);
|
|
165
|
+
const r = String(F.value).length;
|
|
166
166
|
let a = 0, i = (r > 2 ? 0.01 : 1e-3) * e.value.style.chart.animation.speed, R = (r > 2 ? 0.05 : 5e-3) * e.value.style.chart.animation.acceleration;
|
|
167
|
-
function
|
|
168
|
-
|
|
167
|
+
function k() {
|
|
168
|
+
f.value += i + a, a += R, f.value < u.dataset.value ? requestAnimationFrame(k) : f.value = u.dataset.value;
|
|
169
169
|
}
|
|
170
|
-
e.value.style.chart.animation.use && (
|
|
170
|
+
e.value.style.chart.animation.use && (f.value = _.value, k());
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const o = p(() => {
|
|
173
173
|
const l = e.value.responsive ? Math.min(t.value.width, t.value.height) : t.value.width;
|
|
174
174
|
return {
|
|
175
175
|
arcs: l / 2.5,
|
|
@@ -178,12 +178,12 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
178
178
|
ratingBase: e.value.responsive ? t.value.height / 2 + t.value.height / 4 : t.value.height * 0.9,
|
|
179
179
|
pointerSize: e.value.responsive ? Math.min(t.value.width, t.value.height) / 3 : t.value.width / 3.2
|
|
180
180
|
};
|
|
181
|
-
}),
|
|
182
|
-
{ series:
|
|
181
|
+
}), x = p(() => le(
|
|
182
|
+
{ series: b.value.series },
|
|
183
183
|
t.value.width / 2,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
o.value.base,
|
|
185
|
+
o.value.arcs,
|
|
186
|
+
o.value.arcs,
|
|
187
187
|
1,
|
|
188
188
|
1,
|
|
189
189
|
1,
|
|
@@ -191,38 +191,38 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
191
191
|
109.9495,
|
|
192
192
|
40 * t.value.trackSize
|
|
193
193
|
)), ce = p(() => le(
|
|
194
|
-
{ series:
|
|
194
|
+
{ series: b.value.series },
|
|
195
195
|
t.value.width / 2,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
o.value.base,
|
|
197
|
+
o.value.gradients,
|
|
198
|
+
o.value.gradients,
|
|
199
199
|
1,
|
|
200
200
|
1,
|
|
201
201
|
1,
|
|
202
202
|
180,
|
|
203
203
|
109.9495,
|
|
204
204
|
2 * t.value.trackSize
|
|
205
|
-
)),
|
|
205
|
+
)), S = d(!1);
|
|
206
206
|
function ve(l) {
|
|
207
|
-
|
|
207
|
+
S.value = l, D.value += 1;
|
|
208
208
|
}
|
|
209
|
-
return
|
|
210
|
-
generatePdf:
|
|
209
|
+
return oe({
|
|
210
|
+
generatePdf: W,
|
|
211
211
|
generateImage: T
|
|
212
|
-
}), (l, r) => (
|
|
213
|
-
class: Z(`vue-ui-gauge ${
|
|
212
|
+
}), (l, r) => (s(), n("div", {
|
|
213
|
+
class: Z(`vue-ui-gauge ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
214
214
|
ref_key: "gaugeChart",
|
|
215
215
|
ref: C,
|
|
216
|
-
id: `vue-ui-gauge_${
|
|
216
|
+
id: `vue-ui-gauge_${m.value}`,
|
|
217
217
|
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
218
218
|
}, [
|
|
219
|
-
e.value.style.chart.title.text ? (
|
|
219
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
220
220
|
key: 0,
|
|
221
221
|
ref_key: "chartTitle",
|
|
222
|
-
ref:
|
|
222
|
+
ref: L,
|
|
223
223
|
style: E(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
224
224
|
}, [
|
|
225
|
-
me(
|
|
225
|
+
me(Ne, {
|
|
226
226
|
config: {
|
|
227
227
|
title: {
|
|
228
228
|
cy: "gauge-div-title",
|
|
@@ -235,63 +235,63 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
235
235
|
}
|
|
236
236
|
}, {
|
|
237
237
|
default: I(() => [
|
|
238
|
-
e.value.translations.base && Y.dataset.base ? (
|
|
238
|
+
e.value.translations.base && Y.dataset.base ? (s(), n("span", Re, z(e.value.translations.base) + ": " + z(Y.dataset.base), 1)) : g("", !0)
|
|
239
239
|
]),
|
|
240
240
|
_: 1
|
|
241
241
|
}, 8, ["config"])
|
|
242
242
|
], 4)) : g("", !0),
|
|
243
|
-
e.value.userOptions.show && $.value ? (
|
|
243
|
+
e.value.userOptions.show && $.value ? (s(), J(Oe, {
|
|
244
244
|
ref_key: "details",
|
|
245
245
|
ref: ne,
|
|
246
|
-
key: `user_options_${
|
|
246
|
+
key: `user_options_${D.value}`,
|
|
247
247
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
248
248
|
color: e.value.style.chart.color,
|
|
249
|
-
isImaging:
|
|
250
|
-
isPrinting:
|
|
251
|
-
uid:
|
|
249
|
+
isImaging: c(B),
|
|
250
|
+
isPrinting: c(V),
|
|
251
|
+
uid: m.value,
|
|
252
252
|
hasXls: !1,
|
|
253
253
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
254
254
|
hasImg: e.value.userOptions.buttons.img,
|
|
255
255
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
256
|
-
isFullscreen:
|
|
256
|
+
isFullscreen: S.value,
|
|
257
257
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
258
258
|
chartElement: C.value,
|
|
259
259
|
onToggleFullscreen: ve,
|
|
260
|
-
onGeneratePdf:
|
|
261
|
-
onGenerateImage:
|
|
260
|
+
onGeneratePdf: c(W),
|
|
261
|
+
onGenerateImage: c(T)
|
|
262
262
|
}, ke({ _: 2 }, [
|
|
263
263
|
l.$slots.optionPdf ? {
|
|
264
264
|
name: "optionPdf",
|
|
265
265
|
fn: I(() => [
|
|
266
|
-
|
|
266
|
+
w(l.$slots, "optionPdf", {}, void 0, !0)
|
|
267
267
|
]),
|
|
268
268
|
key: "0"
|
|
269
269
|
} : void 0,
|
|
270
270
|
l.$slots.optionImg ? {
|
|
271
271
|
name: "optionImg",
|
|
272
272
|
fn: I(() => [
|
|
273
|
-
|
|
273
|
+
w(l.$slots, "optionImg", {}, void 0, !0)
|
|
274
274
|
]),
|
|
275
275
|
key: "1"
|
|
276
276
|
} : void 0,
|
|
277
277
|
l.$slots.optionFullscreen ? {
|
|
278
278
|
name: "optionFullscreen",
|
|
279
279
|
fn: I(({ toggleFullscreen: a, isFullscreen: i }) => [
|
|
280
|
-
|
|
280
|
+
w(l.$slots, "optionFullscreen", K(Q({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
|
|
281
281
|
]),
|
|
282
282
|
key: "2"
|
|
283
283
|
} : void 0
|
|
284
284
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
285
|
-
$.value ? (
|
|
285
|
+
$.value ? (s(), n("svg", {
|
|
286
286
|
key: 2,
|
|
287
|
-
xmlns:
|
|
288
|
-
class: Z({ "vue-data-ui-fullscreen--on":
|
|
287
|
+
xmlns: c(ze),
|
|
288
|
+
class: Z({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
289
289
|
viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
|
|
290
290
|
style: E(`max-width:100%;overflow:hidden !important;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
291
291
|
}, [
|
|
292
292
|
h("defs", null, [
|
|
293
293
|
h("radialGradient", {
|
|
294
|
-
id: `gradient_${
|
|
294
|
+
id: `gradient_${m.value}`,
|
|
295
295
|
cx: "50%",
|
|
296
296
|
cy: "50%",
|
|
297
297
|
r: "50%",
|
|
@@ -300,21 +300,21 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
300
300
|
}, [
|
|
301
301
|
h("stop", {
|
|
302
302
|
offset: "0%",
|
|
303
|
-
"stop-color": `#FFFFFF${
|
|
304
|
-
}, null, 8,
|
|
303
|
+
"stop-color": `#FFFFFF${c(j)[1]}`
|
|
304
|
+
}, null, 8, je),
|
|
305
305
|
h("stop", {
|
|
306
306
|
offset: "80%",
|
|
307
|
-
"stop-color": `#FFFFFF${
|
|
308
|
-
}, null, 8,
|
|
307
|
+
"stop-color": `#FFFFFF${c(j)[e.value.style.chart.layout.track.gradientIntensity]}`
|
|
308
|
+
}, null, 8, De),
|
|
309
309
|
h("stop", {
|
|
310
310
|
offset: "100%",
|
|
311
|
-
"stop-color": `#FFFFFF${
|
|
312
|
-
}, null, 8,
|
|
313
|
-
], 8,
|
|
311
|
+
"stop-color": `#FFFFFF${c(j)[1]}`
|
|
312
|
+
}, null, 8, Le)
|
|
313
|
+
], 8, Ae)
|
|
314
314
|
]),
|
|
315
315
|
h("defs", null, [
|
|
316
316
|
h("filter", {
|
|
317
|
-
id: `blur_${
|
|
317
|
+
id: `blur_${m.value}`,
|
|
318
318
|
x: "-50%",
|
|
319
319
|
y: "-50%",
|
|
320
320
|
width: "200%",
|
|
@@ -323,44 +323,44 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
323
323
|
h("feGaussianBlur", {
|
|
324
324
|
in: "SourceGraphic",
|
|
325
325
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
326
|
-
}, null, 8,
|
|
327
|
-
], 8,
|
|
326
|
+
}, null, 8, Ve)
|
|
327
|
+
], 8, Ue)
|
|
328
328
|
]),
|
|
329
|
-
(
|
|
329
|
+
(s(!0), n(O, null, A(x.value, (a, i) => (s(), n("path", {
|
|
330
330
|
key: `arc_${i}`,
|
|
331
331
|
d: a.arcSlice,
|
|
332
332
|
fill: a.color,
|
|
333
333
|
stroke: e.value.style.chart.backgroundColor,
|
|
334
334
|
"stroke-linecap": "round"
|
|
335
|
-
}, null, 8,
|
|
336
|
-
e.value.style.chart.layout.track.useGradient ? (
|
|
337
|
-
(
|
|
335
|
+
}, null, 8, Be))), 128)),
|
|
336
|
+
e.value.style.chart.layout.track.useGradient ? (s(), n(O, { key: 0 }, [
|
|
337
|
+
(s(!0), n(O, null, A(ce.value, (a, i) => (s(), n("path", {
|
|
338
338
|
key: `arc_${i}`,
|
|
339
339
|
d: a.arcSlice,
|
|
340
340
|
fill: "#FFFFFF",
|
|
341
341
|
stroke: "none",
|
|
342
342
|
"stroke-linecap": "round",
|
|
343
|
-
filter: `url(#blur_${
|
|
344
|
-
}, null, 8,
|
|
343
|
+
filter: `url(#blur_${m.value})`
|
|
344
|
+
}, null, 8, We))), 128)),
|
|
345
345
|
h("rect", {
|
|
346
346
|
x: 0,
|
|
347
|
-
y:
|
|
347
|
+
y: o.value.base,
|
|
348
348
|
width: t.value.width <= 0 ? 1e-4 : t.value.width,
|
|
349
349
|
height: t.value.height * 0.3 <= 0 ? 1e-4 : t.value.height * 0.3,
|
|
350
350
|
fill: e.value.style.chart.backgroundColor
|
|
351
|
-
}, null, 8,
|
|
351
|
+
}, null, 8, Te)
|
|
352
352
|
], 64)) : g("", !0),
|
|
353
|
-
(
|
|
354
|
-
x:
|
|
353
|
+
(s(!0), n(O, null, A(x.value, (a, i) => (s(), n("text", {
|
|
354
|
+
x: c(N)({
|
|
355
355
|
centerX: t.value.width / 2,
|
|
356
|
-
centerY:
|
|
356
|
+
centerY: o.value.base,
|
|
357
357
|
initX: a.center.startX,
|
|
358
358
|
initY: a.center.startY,
|
|
359
359
|
offset: t.value.markerOffset
|
|
360
360
|
}).x,
|
|
361
|
-
y:
|
|
361
|
+
y: c(N)({
|
|
362
362
|
centerX: t.value.width / 2,
|
|
363
|
-
centerY:
|
|
363
|
+
centerY: o.value.base,
|
|
364
364
|
initX: a.center.startX,
|
|
365
365
|
initY: a.center.startY,
|
|
366
366
|
offset: t.value.markerOffset
|
|
@@ -369,91 +369,100 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
369
369
|
"font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
370
370
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
371
371
|
fill: e.value.style.chart.layout.markers.color
|
|
372
|
-
},
|
|
372
|
+
}, z(a.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, qe))), 256)),
|
|
373
373
|
h("text", {
|
|
374
|
-
x:
|
|
374
|
+
x: c(N)({
|
|
375
375
|
centerX: t.value.width / 2,
|
|
376
|
-
centerY:
|
|
377
|
-
initX:
|
|
378
|
-
initY:
|
|
376
|
+
centerY: o.value.base,
|
|
377
|
+
initX: x.value.at(-1).endX,
|
|
378
|
+
initY: x.value.at(-1).endY,
|
|
379
379
|
offset: t.value.markerOffset
|
|
380
380
|
}).x,
|
|
381
|
-
y:
|
|
381
|
+
y: c(N)({
|
|
382
382
|
centerX: t.value.width / 2,
|
|
383
|
-
centerY:
|
|
384
|
-
initX:
|
|
385
|
-
initY:
|
|
383
|
+
centerY: o.value.base,
|
|
384
|
+
initX: x.value.at(-1).endX,
|
|
385
|
+
initY: x.value.at(-1).endY,
|
|
386
386
|
offset: t.value.markerOffset
|
|
387
387
|
}).y,
|
|
388
388
|
"text-anchor": "start",
|
|
389
389
|
"font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
390
390
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
391
391
|
fill: e.value.style.chart.layout.markers.color
|
|
392
|
-
},
|
|
393
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (
|
|
394
|
-
isNaN(
|
|
392
|
+
}, z(F.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, He),
|
|
393
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), n("g", Ze, [
|
|
394
|
+
isNaN(v.value.x2) ? g("", !0) : (s(), n("line", {
|
|
395
395
|
key: 0,
|
|
396
|
-
x1:
|
|
397
|
-
y1:
|
|
398
|
-
x2:
|
|
399
|
-
y2:
|
|
396
|
+
x1: v.value.x1,
|
|
397
|
+
y1: v.value.y1,
|
|
398
|
+
x2: v.value.x2,
|
|
399
|
+
y2: v.value.y2,
|
|
400
400
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
401
401
|
"stroke-width": t.value.pointerStrokeWidth,
|
|
402
402
|
"stroke-linecap": "round"
|
|
403
|
-
}, null, 8,
|
|
404
|
-
isNaN(
|
|
403
|
+
}, null, 8, Je)),
|
|
404
|
+
isNaN(v.value.x2) ? g("", !0) : (s(), n("line", {
|
|
405
405
|
key: 1,
|
|
406
|
-
x1:
|
|
407
|
-
y1:
|
|
408
|
-
x2:
|
|
409
|
-
y2:
|
|
406
|
+
x1: v.value.x1,
|
|
407
|
+
y1: v.value.y1,
|
|
408
|
+
x2: v.value.x2,
|
|
409
|
+
y2: v.value.y2,
|
|
410
410
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
|
|
411
411
|
"stroke-linecap": "round",
|
|
412
412
|
"stroke-width": t.value.pointerStrokeWidth * 0.7
|
|
413
|
-
}, null, 8,
|
|
414
|
-
!isNaN(
|
|
413
|
+
}, null, 8, Ke)),
|
|
414
|
+
!isNaN(v.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), n("line", {
|
|
415
415
|
key: 2,
|
|
416
|
-
x1:
|
|
417
|
-
y1:
|
|
418
|
-
x2:
|
|
419
|
-
y2:
|
|
416
|
+
x1: v.value.x1,
|
|
417
|
+
y1: v.value.y1,
|
|
418
|
+
x2: v.value.x2,
|
|
419
|
+
y2: v.value.y2,
|
|
420
420
|
stroke: "white",
|
|
421
421
|
"stroke-linecap": "round",
|
|
422
422
|
"stroke-width": t.value.pointerStrokeWidth * 0.3,
|
|
423
|
-
filter: `url(#blur_${
|
|
424
|
-
}, null, 8,
|
|
425
|
-
])) : (
|
|
426
|
-
q.value ? (
|
|
423
|
+
filter: `url(#blur_${m.value})`
|
|
424
|
+
}, null, 8, Qe)) : g("", !0)
|
|
425
|
+
])) : (s(), n("g", et, [
|
|
426
|
+
q.value ? (s(), n("path", {
|
|
427
427
|
key: 0,
|
|
428
428
|
d: q.value,
|
|
429
429
|
fill: e.value.style.chart.layout.pointer.useRatingColor ? G.value : e.value.style.chart.layout.pointer.color,
|
|
430
430
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
431
431
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
432
432
|
"stroke-linejoin": "round"
|
|
433
|
-
}, null, 8,
|
|
433
|
+
}, null, 8, tt)) : g("", !0)
|
|
434
434
|
])),
|
|
435
435
|
h("circle", {
|
|
436
436
|
cx: t.value.width / 2,
|
|
437
|
-
cy:
|
|
437
|
+
cy: o.value.base,
|
|
438
438
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
439
439
|
r: t.value.pointerRadius <= 0 ? 1e-4 : t.value.pointerRadius,
|
|
440
440
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
441
441
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
442
|
-
}, null, 8,
|
|
442
|
+
}, null, 8, at),
|
|
443
443
|
h("text", {
|
|
444
444
|
x: t.value.width / 2,
|
|
445
|
-
y:
|
|
445
|
+
y: o.value.ratingBase,
|
|
446
446
|
"text-anchor": "middle",
|
|
447
447
|
"font-size": t.value.legendFontSize,
|
|
448
448
|
"font-weight": "bold",
|
|
449
449
|
fill: e.value.style.chart.legend.useRatingColor ? G.value : e.value.style.chart.legend.color
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
450
|
+
}, z(c($e)(
|
|
451
|
+
e.value.style.chart.legend.formatter,
|
|
452
|
+
f.value,
|
|
453
|
+
c(Ce)({
|
|
454
|
+
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
|
|
455
|
+
v: f.value,
|
|
456
|
+
s: e.value.style.chart.legend.suffix,
|
|
457
|
+
r: e.value.style.chart.legend.roundingValue
|
|
458
|
+
})
|
|
459
|
+
)), 9, lt),
|
|
460
|
+
w(l.$slots, "svg", { svg: t.value }, void 0, !0)
|
|
461
|
+
], 14, Ee)) : g("", !0),
|
|
462
|
+
l.$slots.watermark ? (s(), n("div", rt, [
|
|
463
|
+
w(l.$slots, "watermark", K(Q({ isPrinting: c(V) || c(B) })), void 0, !0)
|
|
455
464
|
])) : g("", !0),
|
|
456
|
-
$.value ? g("", !0) : (
|
|
465
|
+
$.value ? g("", !0) : (s(), J(Xe, {
|
|
457
466
|
key: 4,
|
|
458
467
|
config: {
|
|
459
468
|
type: "gauge",
|
|
@@ -467,13 +476,13 @@ const Ne = ["id"], Ye = { key: 0 }, Ge = ["xmlns", "viewBox"], Re = ["id"], Ee =
|
|
|
467
476
|
}, null, 8, ["config"])),
|
|
468
477
|
h("div", {
|
|
469
478
|
ref_key: "chartLegend",
|
|
470
|
-
ref:
|
|
479
|
+
ref: U
|
|
471
480
|
}, [
|
|
472
|
-
|
|
481
|
+
w(l.$slots, "legend", { legend: b.value }, void 0, !0)
|
|
473
482
|
], 512)
|
|
474
|
-
], 14,
|
|
483
|
+
], 14, Ge));
|
|
475
484
|
}
|
|
476
|
-
},
|
|
485
|
+
}, ft = /* @__PURE__ */ Ye(st, [["__scopeId", "data-v-938ebae3"]]);
|
|
477
486
|
export {
|
|
478
|
-
|
|
487
|
+
ft as default
|
|
479
488
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-hKWfT7Wa.cjs"),f=require("./useNestedProp-Cggpoz7e.cjs"),h=["viewBox","width"],m={key:0},k=["id"],_=["stop-color"],v=["stop-color"],y=["stroke"],p=["stroke"],g=["width","fill"],N=["fill"],C={key:0},x=["id"],B=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),E=[B],V=["stroke"],w=["stroke","stroke-dasharray","stroke-dashoffset"],b=["filter"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["fill"],G={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const o=n,{vue_ui_gizmo:d}=a.useConfig(),s=e.ref(a.createUid());e.onMounted(()=>{!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")});const t=e.computed(()=>f.useNestedProp({userConfig:o.config,defaultConfig:d})),i=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const r=2*Math.PI*35,u=r-o.dataset/100*r;return{dasharray:`${r} ${r}`,dashoffset:u}});return(c,r)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${i.value.width} ${i.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",m,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${s.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,_),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,v)],8,k)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,y),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,p),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(n.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${s.value})`:t.value.color,rx:2},null,8,g),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,N)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",C,[e.createElementVNode("filter",{id:`blur_${s.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},E,8,x)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,V),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,w),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${s.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,L)],8,b)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,z)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,h))}};exports.default=G;
|