vue-data-ui 2.4.56 → 2.4.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CjIZFibK.cjs → Arrow-DyvFEpcu.cjs} +1 -1
- package/dist/{Arrow-jPjUEWgL.js → Arrow-gAjHZoeI.js} +1 -1
- package/dist/{BaseIcon-0DNmIdCs.js → BaseIcon-B0g_Fksl.js} +1 -1
- package/dist/{BaseIcon-DF2Lg0Ky.cjs → BaseIcon-DKQOeA_7.cjs} +1 -1
- package/dist/{DataTable-osuWgmyP.cjs → DataTable-Bju6hUOX.cjs} +1 -1
- package/dist/{DataTable-CZSz7b1u.js → DataTable-BloVsNyj.js} +2 -2
- package/dist/{Legend-DecSHp0h.cjs → Legend-BsPIe_nG.cjs} +1 -1
- package/dist/{Legend-CvXmxVoD.js → Legend-CdpH9pz7.js} +1 -1
- package/dist/{PackageVersion-eTcMI7M3.cjs → PackageVersion-Bmujq1-q.cjs} +1 -1
- package/dist/{PackageVersion-CEkiDR72.js → PackageVersion-W3d_oNMs.js} +1 -1
- package/dist/{PenAndPaper-BqcQLMi2.cjs → PenAndPaper-Be8tn5wI.cjs} +1 -1
- package/dist/{PenAndPaper-GjypzQvI.js → PenAndPaper-xuFs3BqZ.js} +3 -3
- package/dist/{Shape-BejfTDlL.js → Shape-CXTDY_Vo.js} +1 -1
- package/dist/{Shape-Diaok0Bu.cjs → Shape-Cx89w9Ul.cjs} +1 -1
- package/dist/{Slicer-9_ewSBRs.js → Slicer-ENfxtrty.js} +2 -2
- package/dist/{Slicer-DFT7ePZ_.cjs → Slicer-HGyFRIya.cjs} +1 -1
- package/dist/{Title-BI9lg56g.js → Title-1u-GspsX.js} +1 -1
- package/dist/{Title-Bw-FXFej.cjs → Title-CNO85jNx.cjs} +1 -1
- package/dist/{Tooltip-sBMzQa_B.js → Tooltip-B-1Q-Tts.js} +1 -1
- package/dist/{Tooltip-98ospYeV.cjs → Tooltip-DQOeAhx3.cjs} +1 -1
- package/dist/{index-ByVaKddw.js → index-BSzkwF5n.js} +3 -1
- package/dist/index-DHwfzZfj.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-GRBJXe5O.js → useNestedProp-BWC_DPZ5.js} +1 -1
- package/dist/{useNestedProp-CSIVZXvp.cjs → useNestedProp-CSKuqs0C.cjs} +1 -1
- package/dist/{usePrinter-BwruEydS.cjs → usePrinter-D-iwyLyE.cjs} +1 -1
- package/dist/{usePrinter-BsXVX7vh.js → usePrinter-DtwWejoO.js} +1 -1
- package/dist/{vue-data-ui-BqSfqfi4.cjs → vue-data-ui-Com866XF.cjs} +1 -1
- package/dist/{vue-data-ui-B7Y18Xdv.js → vue-data-ui-jb1K_VTO.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-SA6SyIoT.js → vue-ui-3d-bar-Cqc5gqnb.js} +9 -9
- package/dist/{vue-ui-3d-bar-CXv6h_8o.cjs → vue-ui-3d-bar-Dif8_wHk.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dcf8tHzr.js → vue-ui-accordion-CJdfn7N-.js} +3 -3
- package/dist/{vue-ui-accordion-DfqTc4ro.cjs → vue-ui-accordion-lCjQo2kd.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BetdioWW.js → vue-ui-age-pyramid-D89kDZnF.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CG7IY2gE.cjs → vue-ui-age-pyramid-DHxsu2a1.cjs} +1 -1
- package/dist/{vue-ui-annotator-Qf_gPjWZ.js → vue-ui-annotator-Cf-zFFmT.js} +1 -1
- package/dist/{vue-ui-annotator-Bcg6d-GE.cjs → vue-ui-annotator-muK3_F6c.cjs} +1 -1
- package/dist/{vue-ui-bullet-CPHavcOd.cjs → vue-ui-bullet-CKbrouCq.cjs} +1 -1
- package/dist/{vue-ui-bullet-CLRHVfB8.js → vue-ui-bullet-CT5Gkoot.js} +8 -8
- package/dist/{vue-ui-candlestick-exLvYnf4.cjs → vue-ui-candlestick-C3YNgFyO.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DBnrOltA.js → vue-ui-candlestick-DmsHITZF.js} +11 -11
- package/dist/{vue-ui-carousel-table-CHlCmI-_.cjs → vue-ui-carousel-table-BU1bmZWZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bz2XZAC4.js → vue-ui-carousel-table-N7QL7jRR.js} +4 -4
- package/dist/{vue-ui-chestnut-BBhIDuhr.cjs → vue-ui-chestnut-BEALHSS3.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BE6RQkXd.js → vue-ui-chestnut-C7b1puxs.js} +8 -8
- package/dist/{vue-ui-cursor-CpIr7R3C.cjs → vue-ui-cursor-BOS7Yvio.cjs} +1 -1
- package/dist/{vue-ui-cursor-DLQVTUyz.js → vue-ui-cursor-CAnOat4M.js} +2 -2
- package/dist/{vue-ui-dashboard-YWLsOufT.cjs → vue-ui-dashboard-DI22fn9M.cjs} +1 -1
- package/dist/{vue-ui-dashboard-rKdg3soO.js → vue-ui-dashboard-OzgTaY3n.js} +2 -2
- package/dist/{vue-ui-digits-XkrLdWX_.js → vue-ui-digits-DCm2stj-.js} +2 -2
- package/dist/{vue-ui-digits-DFNXL2VX.cjs → vue-ui-digits-DGP4EmpQ.cjs} +1 -1
- package/dist/{vue-ui-donut-CDVHpIvX.js → vue-ui-donut-BilWHtZy.js} +11 -11
- package/dist/{vue-ui-donut-8rW9LlEF.cjs → vue-ui-donut-Jjz58SJJ.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-B1ahKhHv.cjs → vue-ui-donut-evolution-BtfRmlIq.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-By2AYSZT.js → vue-ui-donut-evolution-DKmnEHH_.js} +11 -11
- package/dist/{vue-ui-dumbbell-DIHb9Grh.cjs → vue-ui-dumbbell-C2LYuBRx.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D1Htb6-R.js → vue-ui-dumbbell-KwkTK5_q.js} +10 -10
- package/dist/{vue-ui-flow-41QVXQeK.cjs → vue-ui-flow-3vjkptJR.cjs} +1 -1
- package/dist/{vue-ui-flow-CCYyDy6C.js → vue-ui-flow-BShJPhpa.js} +9 -9
- package/dist/{vue-ui-funnel-BJ43m1vH.js → vue-ui-funnel-D4xk_DsA.js} +8 -8
- package/dist/{vue-ui-funnel-qPzrqllN.cjs → vue-ui-funnel-DyJdIi_i.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D6dtMQ2A.cjs → vue-ui-galaxy-BmGIzIeD.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DMUq4sez.js → vue-ui-galaxy-Ch3QRiP6.js} +11 -11
- package/dist/{vue-ui-gauge-KGflfPYM.js → vue-ui-gauge-DZUv5beK.js} +127 -125
- package/dist/vue-ui-gauge-LeMSJBEk.cjs +1 -0
- package/dist/{vue-ui-gizmo-CFRsYHo7.js → vue-ui-gizmo-B39J58Zm.js} +3 -3
- package/dist/{vue-ui-gizmo-lKGGpbCe.cjs → vue-ui-gizmo-B7Kum6eT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DKxnmh08.cjs → vue-ui-heatmap-CqPuEjJ1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dj0A6LjZ.js → vue-ui-heatmap-z8KMf1yo.js} +10 -10
- package/dist/{vue-ui-history-plot-ClNqlBER.js → vue-ui-history-plot--Lw1-910.js} +11 -11
- package/dist/{vue-ui-history-plot-IWjqZb4c.cjs → vue-ui-history-plot-bjMvk_4h.cjs} +1 -1
- package/dist/{vue-ui-kpi-BXRYqm31.js → vue-ui-kpi-BgNONvkD.js} +3 -3
- package/dist/{vue-ui-kpi-BRVPBhAp.cjs → vue-ui-kpi-DIuPP4R7.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Bm_4G8gx.js → vue-ui-mini-loader-BrCuKpE6.js} +2 -2
- package/dist/{vue-ui-mini-loader-NicMq9t0.cjs → vue-ui-mini-loader-DjEyKAQe.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bi9RT7M4.cjs → vue-ui-molecule-C3wtpoCr.cjs} +1 -1
- package/dist/{vue-ui-molecule-BDFarbim.js → vue-ui-molecule-C_eF6tga.js} +11 -11
- package/dist/{vue-ui-mood-radar-DlXCkePO.cjs → vue-ui-mood-radar-BomqP0zI.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DJnPeXpr.js → vue-ui-mood-radar-Ch_Qkx9d.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CYNh2xAI.cjs → vue-ui-nested-donuts-KRq3Fcqy.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DLcFEPDy.js → vue-ui-nested-donuts-uqfXLRGX.js} +11 -11
- package/dist/{vue-ui-onion-jzYk1NeW.js → vue-ui-onion-CbYOkmrF.js} +11 -11
- package/dist/{vue-ui-onion-UDlJJjud.cjs → vue-ui-onion-G4p7rA61.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BboIA_-E.cjs → vue-ui-parallel-coordinate-plot-B2OIBraO.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BLLYkQEr.js → vue-ui-parallel-coordinate-plot-aLNOckoo.js} +12 -12
- package/dist/{vue-ui-quadrant-C94HXwr8.js → vue-ui-quadrant-CuPCDHgS.js} +12 -12
- package/dist/{vue-ui-quadrant-BSNtsyJ5.cjs → vue-ui-quadrant-DoWeGQSC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-6fxJ8oH3.js → vue-ui-quick-chart-DBCH5qM1.js} +9 -9
- package/dist/{vue-ui-quick-chart-B9Xbkibp.cjs → vue-ui-quick-chart-DR1qF9kr.cjs} +1 -1
- package/dist/{vue-ui-radar-Q6izz-u2.cjs → vue-ui-radar-B6M2ZChR.cjs} +1 -1
- package/dist/{vue-ui-radar-CQrWi1aN.js → vue-ui-radar-BamYIcPL.js} +12 -12
- package/dist/{vue-ui-rating-Ciyd3dSC.js → vue-ui-rating-DxaSXiPx.js} +2 -2
- package/dist/{vue-ui-rating-DgsUBjAC.cjs → vue-ui-rating-HSL7IrbQ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BVgfKoJY.js → vue-ui-relation-circle-C9_8YW0u.js} +7 -7
- package/dist/{vue-ui-relation-circle-CAC4jUA7.cjs → vue-ui-relation-circle-CM_QkigI.cjs} +1 -1
- package/dist/{vue-ui-rings-VNKEeLJq.cjs → vue-ui-rings-CmD8g04s.cjs} +1 -1
- package/dist/{vue-ui-rings-DuQmTRbW.js → vue-ui-rings-DFzPi4m9.js} +11 -11
- package/dist/{vue-ui-scatter-CWTRMe0w.cjs → vue-ui-scatter-D_WxNGoY.cjs} +1 -1
- package/dist/{vue-ui-scatter-BlLPdbYP.js → vue-ui-scatter-n_jHEngt.js} +12 -12
- package/dist/{vue-ui-screenshot-Cf9IZKQy.js → vue-ui-screenshot-1_OHWjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-C3nAs5FY.cjs → vue-ui-screenshot-BzY_uB1R.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CcWKK9pd.cjs → vue-ui-skeleton-DKtNfORj.cjs} +1 -1
- package/dist/{vue-ui-skeleton--uwo2sCb.js → vue-ui-skeleton-Ojz7f2oH.js} +3 -3
- package/dist/{vue-ui-smiley-Bc53TV0r.js → vue-ui-smiley-CXvJ3sXA.js} +2 -2
- package/dist/{vue-ui-smiley-BI7CkEhi.cjs → vue-ui-smiley-sKWpgakD.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CKgcM09-.cjs → vue-ui-spark-trend-ByxJmVE5.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Byey6P0P.js → vue-ui-spark-trend-uyDT9RJC.js} +5 -5
- package/dist/{vue-ui-sparkbar-C2Y0Foie.js → vue-ui-sparkbar-CxW1vMP2.js} +4 -4
- package/dist/{vue-ui-sparkbar-FBEE4RyI.cjs → vue-ui-sparkbar-DYHuBv3f.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DIQjrKUR.cjs → vue-ui-sparkgauge-CCvUn2R2.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Czf3xG6u.js → vue-ui-sparkgauge-NmLBla47.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-MEdLzmyE.js → vue-ui-sparkhistogram-B8SukBWt.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CNQrhEr4.cjs → vue-ui-sparkhistogram-FU-uE07T.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DNeX0Cst.cjs → vue-ui-sparkline-9LU8yp1t.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cr2okEps.js → vue-ui-sparkline-CokyAm9w.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CyvjXdi9.cjs → vue-ui-sparkstackbar-9k6C-g_r.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Db83U8wn.js → vue-ui-sparkstackbar-QgZq1O55.js} +5 -5
- package/dist/{vue-ui-stackbar-CQT1OJCn.js → vue-ui-stackbar-CTvPYXjb.js} +306 -291
- package/dist/vue-ui-stackbar-Drqz1of9.cjs +6 -0
- package/dist/{vue-ui-strip-plot-DOzB5USx.js → vue-ui-strip-plot-DXPoWvNA.js} +11 -11
- package/dist/{vue-ui-strip-plot-T8_5JEzy.cjs → vue-ui-strip-plot-UYP2fk1H.cjs} +1 -1
- package/dist/{vue-ui-table-C3O3go3K.cjs → vue-ui-table-8M1ctuqL.cjs} +1 -1
- package/dist/{vue-ui-table-ro63oB6Q.js → vue-ui-table-Bb3BBVjm.js} +1 -1
- package/dist/{vue-ui-table-heatmap-iho4COZg.cjs → vue-ui-table-heatmap-BqQpJ_Ou.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-lftME_w3.js → vue-ui-table-heatmap-Bv0EfTut.js} +4 -4
- package/dist/{vue-ui-table-sparkline-P9DzADZw.js → vue-ui-table-sparkline-Bs72Df0-.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Ce0sOUWt.cjs → vue-ui-table-sparkline-D5xemE-q.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DI4pKvnk.js → vue-ui-thermometer-DRGjTOIy.js} +7 -7
- package/dist/{vue-ui-thermometer-BRYN1bHx.cjs → vue-ui-thermometer-DzynFkq0.cjs} +1 -1
- package/dist/{vue-ui-timer-DTsTsm_i.js → vue-ui-timer-DCA2Dkfi.js} +5 -5
- package/dist/{vue-ui-timer-CsV8Cuty.cjs → vue-ui-timer-W5dIiOew.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-od0aPD4a.cjs → vue-ui-tiremarks-BbAzwE5q.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CjY3b9ph.js → vue-ui-tiremarks-CTqweMbJ.js} +7 -7
- package/dist/{vue-ui-treemap-B69tqCDo.cjs → vue-ui-treemap-CEVP7-S2.cjs} +1 -1
- package/dist/{vue-ui-treemap-B36BRS00.js → vue-ui-treemap-tz9AdMu0.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CK1dtsFn.js → vue-ui-vertical-bar-BEkWSr_A.js} +11 -11
- package/dist/{vue-ui-vertical-bar-8QN9YXK-.cjs → vue-ui-vertical-bar-D_2WzLxJ.cjs} +1 -1
- package/dist/{vue-ui-waffle-CpcyWKuc.cjs → vue-ui-waffle-BAvqVwhK.cjs} +1 -1
- package/dist/{vue-ui-waffle-CaJbFYrA.js → vue-ui-waffle-DQPO5aOU.js} +11 -11
- package/dist/{vue-ui-wheel-WoHPA2Fp.js → vue-ui-wheel-B0u6LKiw.js} +7 -7
- package/dist/{vue-ui-wheel-DJQeNqbc.cjs → vue-ui-wheel-Cjnheeql.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D3h-mtSd.js → vue-ui-word-cloud-CEns9_NI.js} +10 -10
- package/dist/{vue-ui-word-cloud-BfqeiAU8.cjs → vue-ui-word-cloud-bxF8a7TI.cjs} +1 -1
- package/dist/{vue-ui-xy-iL-McDRN.cjs → vue-ui-xy-BBvVOSPm.cjs} +1 -1
- package/dist/{vue-ui-xy-BTW5rwfL.js → vue-ui-xy-DxpIt6dh.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DtnXa5hf.cjs → vue-ui-xy-canvas--zS_4x6O.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DTySv5nX.js → vue-ui-xy-canvas-D_Qiy2N1.js} +11 -11
- package/package.json +1 -1
- package/dist/index-Cvx5SntE.cjs +0 -9
- package/dist/vue-ui-gauge-BdycQV3W.cjs +0 -1
- package/dist/vue-ui-stackbar-CfmbbZzJ.cjs +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as pe, normalizeStyle as L, unref as i, createBlock as R, createCommentVNode as h, withCtx as X, toDisplayString as C, createSlots as Ge, renderSlot as w, normalizeProps as D, guardReactiveProps as B, createVNode as Ee, createElementVNode as p, Fragment as x, renderList as S, mergeProps as G } from "vue";
|
|
2
|
-
import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as V, I as z, X as Be, s as q, k as Ve, i as H, f as Z, F as J } from "./index-
|
|
2
|
+
import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as V, I as z, X as Be, s as q, k as Ve, i as H, f as Z, F as J } from "./index-BSzkwF5n.js";
|
|
3
3
|
import { t as qe, u as He } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { u as Ze, U as Je } from "./usePrinter-
|
|
5
|
-
import Ke from "./vue-ui-skeleton
|
|
6
|
-
import { _ as Qe } from "./Title-
|
|
7
|
-
import { u as xe } from "./useNestedProp-
|
|
8
|
-
import { _ as et } from "./PackageVersion-
|
|
9
|
-
import { P as tt } from "./PenAndPaper-
|
|
4
|
+
import { u as Ze, U as Je } from "./usePrinter-DtwWejoO.js";
|
|
5
|
+
import Ke from "./vue-ui-skeleton-Ojz7f2oH.js";
|
|
6
|
+
import { _ as Qe } from "./Title-1u-GspsX.js";
|
|
7
|
+
import { u as xe } from "./useNestedProp-BWC_DPZ5.js";
|
|
8
|
+
import { _ as et } from "./PackageVersion-W3d_oNMs.js";
|
|
9
|
+
import { P as tt } from "./PenAndPaper-xuFs3BqZ.js";
|
|
10
10
|
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"],
|
|
12
|
+
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Mt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Ot = { key: 7 }, Pt = ["d", "fill", "stroke", "stroke-width"], Nt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Xt = ["x", "y", "font-size", "fill"], Yt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, It = {
|
|
@@ -29,25 +29,25 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(U, { expose: _e }) {
|
|
32
|
-
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0),
|
|
32
|
+
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0), M = d(null), Q = d(null), ee = d(null), te = d(null), ae = d(null), le = d(0), e = y({
|
|
33
33
|
get: () => oe(),
|
|
34
|
-
set: (
|
|
34
|
+
set: (t) => t
|
|
35
35
|
}), { userOptionsVisible: W, setUserOptionsVisibility: se, keepUserOptionState: re } = at({ config: e.value });
|
|
36
|
-
me(() => v.config, (
|
|
36
|
+
me(() => v.config, (t) => {
|
|
37
37
|
e.value = oe(), W.value = !e.value.showOnChartHover, he(), le.value += 1;
|
|
38
38
|
}, { deep: !0 });
|
|
39
39
|
function oe() {
|
|
40
|
-
const
|
|
40
|
+
const t = xe({
|
|
41
41
|
userConfig: v.config,
|
|
42
42
|
defaultConfig: we
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return t.theme ? {
|
|
45
45
|
...xe({
|
|
46
|
-
userConfig: Te.vue_ui_gauge[
|
|
47
|
-
defaultConfig:
|
|
46
|
+
userConfig: Te.vue_ui_gauge[t.theme] || v.config,
|
|
47
|
+
defaultConfig: t
|
|
48
48
|
}),
|
|
49
|
-
customPalette: je[
|
|
50
|
-
} :
|
|
49
|
+
customPalette: je[t.theme] || ge
|
|
50
|
+
} : t;
|
|
51
51
|
}
|
|
52
52
|
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Ze({
|
|
53
53
|
elementId: `vue-ui-gauge_${_.value}`,
|
|
@@ -63,17 +63,17 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
63
63
|
}
|
|
64
64
|
]
|
|
65
65
|
};
|
|
66
|
-
const
|
|
67
|
-
(v.dataset.series || []).forEach((
|
|
68
|
-
|
|
66
|
+
const t = [];
|
|
67
|
+
(v.dataset.series || []).forEach((a) => {
|
|
68
|
+
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
69
69
|
});
|
|
70
|
-
const s = Math.max(...
|
|
70
|
+
const s = Math.max(...t);
|
|
71
71
|
return {
|
|
72
72
|
...v.dataset,
|
|
73
|
-
series: (v.dataset.series || []).map((
|
|
74
|
-
...
|
|
75
|
-
color: De(
|
|
76
|
-
value: ((
|
|
73
|
+
series: (v.dataset.series || []).map((a, r) => ({
|
|
74
|
+
...a,
|
|
75
|
+
color: De(a.color) || $e.value[r] || ge[r],
|
|
76
|
+
value: ((a.to || 0) - (a.from || 0)) / s * 100
|
|
77
77
|
}))
|
|
78
78
|
};
|
|
79
79
|
}), g = d(512), l = d({
|
|
@@ -91,25 +91,27 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
91
91
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
92
92
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
93
93
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
94
|
-
}),
|
|
94
|
+
}), O = d(0), P = d(0), f = d(
|
|
95
|
+
e.value.style.chart.animation.use ? Math.min(...v.dataset.series.map((t) => t.from)) : v.dataset.value
|
|
96
|
+
);
|
|
95
97
|
me(() => v.dataset.value, () => {
|
|
96
98
|
de(v.dataset.value);
|
|
97
99
|
});
|
|
98
100
|
const n = y(() => {
|
|
99
|
-
const
|
|
101
|
+
const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (O.value - P.value)) + Math.PI;
|
|
100
102
|
return {
|
|
101
|
-
x1:
|
|
103
|
+
x1: t,
|
|
102
104
|
y1: s,
|
|
103
|
-
x2:
|
|
104
|
-
y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(
|
|
105
|
+
x2: t + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
|
|
106
|
+
y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
105
107
|
};
|
|
106
108
|
}), ve = y(() => {
|
|
107
|
-
const
|
|
109
|
+
const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (O.value - P.value)) + Math.PI, r = t + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), k = s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), b = l.value.pointerRadius, Ne = t + b * Math.cos(a + Math.PI / 2), Xe = s + b * Math.sin(a + Math.PI / 2), Ye = t + b * Math.cos(a - Math.PI / 2), Ie = s + b * Math.sin(a - Math.PI / 2);
|
|
108
110
|
return isNaN(r) ? null : `M ${r},${k} ${Ne},${Xe} ${Ye},${Ie} Z`;
|
|
109
111
|
}), T = y(() => {
|
|
110
|
-
for (let
|
|
111
|
-
const { color: s, from:
|
|
112
|
-
if (f.value >=
|
|
112
|
+
for (let t = 0; t < $.value.series.length; t += 1) {
|
|
113
|
+
const { color: s, from: a, to: r } = $.value.series[t];
|
|
114
|
+
if (f.value >= a && f.value <= r)
|
|
113
115
|
return s;
|
|
114
116
|
}
|
|
115
117
|
return "#2D353C";
|
|
@@ -121,21 +123,21 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
121
123
|
}) : (be({
|
|
122
124
|
datasetObject: v.dataset,
|
|
123
125
|
requiredAttributes: ["value", "series"]
|
|
124
|
-
}).forEach((
|
|
126
|
+
}).forEach((t) => {
|
|
125
127
|
E({
|
|
126
128
|
componentName: "VueUiGauge",
|
|
127
129
|
type: "datasetAttribute",
|
|
128
|
-
property:
|
|
130
|
+
property: t
|
|
129
131
|
});
|
|
130
|
-
}), Object.hasOwn(v.dataset, "series") && (v.dataset.series.length ? v.dataset.series.forEach((
|
|
132
|
+
}), Object.hasOwn(v.dataset, "series") && (v.dataset.series.length ? v.dataset.series.forEach((t, s) => {
|
|
131
133
|
be({
|
|
132
|
-
datasetObject:
|
|
134
|
+
datasetObject: t,
|
|
133
135
|
requiredAttributes: ["from", "to"]
|
|
134
|
-
}).forEach((
|
|
136
|
+
}).forEach((a) => {
|
|
135
137
|
E({
|
|
136
138
|
componentName: "VueUiGauge",
|
|
137
139
|
type: "datasetSerieAttribute",
|
|
138
|
-
property:
|
|
140
|
+
property: a,
|
|
139
141
|
index: s
|
|
140
142
|
});
|
|
141
143
|
});
|
|
@@ -144,35 +146,35 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
144
146
|
type: "datasetAttributeEmpty",
|
|
145
147
|
property: "series"
|
|
146
148
|
}))), de(v.dataset.value || 0), e.value.responsive) {
|
|
147
|
-
const
|
|
148
|
-
const { width: s, height:
|
|
149
|
-
chart:
|
|
149
|
+
const t = qe(() => {
|
|
150
|
+
const { width: s, height: a } = He({
|
|
151
|
+
chart: M.value,
|
|
150
152
|
title: e.value.style.chart.title.text ? Q.value : null,
|
|
151
153
|
legend: ee.value,
|
|
152
154
|
source: te.value,
|
|
153
155
|
noTitle: ae.value
|
|
154
156
|
});
|
|
155
|
-
l.value.width = s, l.value.height =
|
|
156
|
-
relator: Math.min(s,
|
|
157
|
+
l.value.width = s, l.value.height = a, l.value.centerX = s / 2, l.value.centerY = g.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / g.value * Math.min(a, s) < 10 ? 10 : 18 / g.value * Math.min(a, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / g.value * Math.min(a, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / g.value * Math.min(a, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / g.value * Math.min(a, s), l.value.trackSize = e.value.style.chart.layout.track.size / g.value * Math.min(a, s), l.value.pointerStrokeWidth = J({
|
|
158
|
+
relator: Math.min(s, a),
|
|
157
159
|
adjuster: g.value,
|
|
158
160
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
159
161
|
threshold: 2,
|
|
160
162
|
fallback: 2
|
|
161
163
|
}), l.value.markerOffset = J({
|
|
162
|
-
relator: Math.max(s,
|
|
164
|
+
relator: Math.max(s, a),
|
|
163
165
|
adjuster: g.value,
|
|
164
166
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
165
167
|
threshold: 2,
|
|
166
168
|
fallback: 2
|
|
167
169
|
}), l.value.segmentFontSize = J({
|
|
168
|
-
relator: Math.min(s,
|
|
170
|
+
relator: Math.min(s, a),
|
|
169
171
|
adjuster: g.value,
|
|
170
172
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
171
173
|
threshold: 8,
|
|
172
174
|
fallback: 8
|
|
173
175
|
});
|
|
174
176
|
});
|
|
175
|
-
I.value = new ResizeObserver(
|
|
177
|
+
I.value = new ResizeObserver(t), I.value.observe(M.value.parentNode);
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
Ae(() => {
|
|
@@ -180,23 +182,23 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
180
182
|
}), Re(() => {
|
|
181
183
|
I.value && I.value.disconnect();
|
|
182
184
|
});
|
|
183
|
-
function de(
|
|
185
|
+
function de(t) {
|
|
184
186
|
const s = [];
|
|
185
187
|
($.value.series || []).forEach((b) => {
|
|
186
188
|
s.push(b.from || 0), s.push(b.to || 0);
|
|
187
|
-
}),
|
|
188
|
-
let
|
|
189
|
-
const r = Math.abs(
|
|
189
|
+
}), O.value = Math.max(...s), P.value = Math.min(...s);
|
|
190
|
+
let a = e.value.style.chart.animation.speed;
|
|
191
|
+
const r = Math.abs(t - f.value) / (a * 60);
|
|
190
192
|
function k() {
|
|
191
|
-
f.value <
|
|
193
|
+
f.value < t ? f.value = Math.min(f.value + r, t) : f.value > t && (f.value = Math.max(f.value - r, t)), f.value !== t && requestAnimationFrame(k);
|
|
192
194
|
}
|
|
193
195
|
k();
|
|
194
196
|
}
|
|
195
197
|
const c = y(() => {
|
|
196
|
-
const
|
|
198
|
+
const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
197
199
|
return {
|
|
198
|
-
arcs:
|
|
199
|
-
gradients:
|
|
200
|
+
arcs: t / s,
|
|
201
|
+
gradients: t / (s * 1.1),
|
|
200
202
|
base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
|
|
201
203
|
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
202
204
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
@@ -225,45 +227,45 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
225
227
|
180,
|
|
226
228
|
109.9495,
|
|
227
229
|
40 * l.value.trackSize
|
|
228
|
-
)), F = y(() => m.value.map((
|
|
229
|
-
const { x:
|
|
230
|
+
)), F = y(() => m.value.map((t) => c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), ye = y(() => {
|
|
231
|
+
const { x: t, y: s } = z({
|
|
230
232
|
initX: m.value[0].firstSeparator.x,
|
|
231
233
|
initY: m.value[0].firstSeparator.y,
|
|
232
234
|
centerX: n.value.x1,
|
|
233
235
|
centerY: n.value.y1,
|
|
234
236
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
235
|
-
}), { x:
|
|
237
|
+
}), { x: a, y: r } = z({
|
|
236
238
|
initX: m.value[0].startX,
|
|
237
239
|
initY: m.value[0].startY,
|
|
238
240
|
centerX: n.value.x1,
|
|
239
241
|
centerY: n.value.y1,
|
|
240
242
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
241
243
|
});
|
|
242
|
-
return { x1:
|
|
243
|
-
}), fe = y(() => m.value.map((
|
|
244
|
-
const { x: s, y:
|
|
245
|
-
initX:
|
|
246
|
-
initY:
|
|
244
|
+
return { x1: t, y1: s, x2: a, y2: r };
|
|
245
|
+
}), fe = y(() => m.value.map((t) => {
|
|
246
|
+
const { x: s, y: a } = z({
|
|
247
|
+
initX: t.separator.x,
|
|
248
|
+
initY: t.separator.y,
|
|
247
249
|
centerX: n.value.x1,
|
|
248
250
|
centerY: n.value.y1,
|
|
249
251
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
250
252
|
}), { x: r, y: k } = z({
|
|
251
|
-
initX:
|
|
252
|
-
initY:
|
|
253
|
+
initX: t.endX,
|
|
254
|
+
initY: t.endY,
|
|
253
255
|
centerX: n.value.x1,
|
|
254
256
|
centerY: n.value.y1,
|
|
255
257
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
256
258
|
});
|
|
257
|
-
return { x1: s, y1:
|
|
259
|
+
return { x1: s, y1: a, x2: r, y2: k };
|
|
258
260
|
}));
|
|
259
|
-
function Ce(
|
|
260
|
-
if (
|
|
261
|
+
function Ce(t) {
|
|
262
|
+
if (t.reduce((k, b) => k + b, 0) > 100)
|
|
261
263
|
throw new Error("Total % must not exceed 100");
|
|
262
|
-
const
|
|
264
|
+
const a = 50;
|
|
263
265
|
let r = 0;
|
|
264
|
-
return
|
|
266
|
+
return t.map((k) => (r += k, `${r / 100 * a - k / 4}%`));
|
|
265
267
|
}
|
|
266
|
-
const
|
|
268
|
+
const Me = y(() => Ce(m.value.map((t) => t.proportion * 100))), Oe = y(() => V(
|
|
267
269
|
{ series: $.value.series },
|
|
268
270
|
l.value.width / 2,
|
|
269
271
|
c.value.base,
|
|
@@ -276,8 +278,8 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
276
278
|
110.02,
|
|
277
279
|
2 * l.value.trackSize
|
|
278
280
|
)), N = d(!1);
|
|
279
|
-
function Pe(
|
|
280
|
-
N.value =
|
|
281
|
+
function Pe(t) {
|
|
282
|
+
N.value = t, K.value += 1;
|
|
281
283
|
}
|
|
282
284
|
const A = d(!1);
|
|
283
285
|
function j() {
|
|
@@ -287,10 +289,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
287
289
|
generatePdf: ie,
|
|
288
290
|
generateImage: ce,
|
|
289
291
|
toggleAnnotator: j
|
|
290
|
-
}), (
|
|
292
|
+
}), (t, s) => (o(), u("div", {
|
|
291
293
|
class: pe(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
292
294
|
ref_key: "gaugeChart",
|
|
293
|
-
ref:
|
|
295
|
+
ref: M,
|
|
294
296
|
id: `vue-ui-gauge_${_.value}`,
|
|
295
297
|
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
296
298
|
onMouseenter: s[0] || (s[0] = () => i(se)(!0)),
|
|
@@ -298,7 +300,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
298
300
|
}, [
|
|
299
301
|
e.value.userOptions.buttons.annotator ? (o(), R(tt, {
|
|
300
302
|
key: 0,
|
|
301
|
-
parent:
|
|
303
|
+
parent: M.value,
|
|
302
304
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
303
305
|
color: e.value.style.chart.color,
|
|
304
306
|
active: A.value,
|
|
@@ -351,7 +353,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
351
353
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
352
354
|
isFullscreen: N.value,
|
|
353
355
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
354
|
-
chartElement:
|
|
356
|
+
chartElement: M.value,
|
|
355
357
|
position: e.value.userOptions.position,
|
|
356
358
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
357
359
|
isAnnotation: A.value,
|
|
@@ -363,31 +365,31 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
363
365
|
visibility: i(re) ? i(W) ? "visible" : "hidden" : "visible"
|
|
364
366
|
})
|
|
365
367
|
}, Ge({ _: 2 }, [
|
|
366
|
-
|
|
368
|
+
t.$slots.optionPdf ? {
|
|
367
369
|
name: "optionPdf",
|
|
368
370
|
fn: X(() => [
|
|
369
|
-
w(
|
|
371
|
+
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
370
372
|
]),
|
|
371
373
|
key: "0"
|
|
372
374
|
} : void 0,
|
|
373
|
-
|
|
375
|
+
t.$slots.optionImg ? {
|
|
374
376
|
name: "optionImg",
|
|
375
377
|
fn: X(() => [
|
|
376
|
-
w(
|
|
378
|
+
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
377
379
|
]),
|
|
378
380
|
key: "1"
|
|
379
381
|
} : void 0,
|
|
380
|
-
|
|
382
|
+
t.$slots.optionFullscreen ? {
|
|
381
383
|
name: "optionFullscreen",
|
|
382
|
-
fn: X(({ toggleFullscreen:
|
|
383
|
-
w(
|
|
384
|
+
fn: X(({ toggleFullscreen: a, isFullscreen: r }) => [
|
|
385
|
+
w(t.$slots, "optionFullscreen", D(B({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
|
|
384
386
|
]),
|
|
385
387
|
key: "2"
|
|
386
388
|
} : void 0,
|
|
387
|
-
|
|
389
|
+
t.$slots.optionAnnotator ? {
|
|
388
390
|
name: "optionAnnotator",
|
|
389
|
-
fn: X(({ toggleAnnotator:
|
|
390
|
-
w(
|
|
391
|
+
fn: X(({ toggleAnnotator: a, isAnnotator: r }) => [
|
|
392
|
+
w(t.$slots, "optionAnnotator", D(B({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
|
|
391
393
|
]),
|
|
392
394
|
key: "3"
|
|
393
395
|
} : void 0
|
|
@@ -437,42 +439,42 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
437
439
|
}, null, 8, ht)
|
|
438
440
|
], 8, vt)
|
|
439
441
|
]),
|
|
440
|
-
(o(!0), u(x, null, S(m.value, (
|
|
442
|
+
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("path", {
|
|
441
443
|
key: `arc_${r}`,
|
|
442
|
-
d:
|
|
443
|
-
fill:
|
|
444
|
+
d: a.arcSlice,
|
|
445
|
+
fill: a.color,
|
|
444
446
|
stroke: e.value.style.chart.backgroundColor,
|
|
445
447
|
"stroke-linecap": "round"
|
|
446
448
|
}, null, 8, dt))), 128)),
|
|
447
449
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(x, { key: 0 }, [
|
|
448
|
-
(o(!0), u(x, null, S(m.value, (
|
|
450
|
+
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("path", {
|
|
449
451
|
id: `curve_${_.value}_${r}`,
|
|
450
452
|
d: `M ${n.value.x1},${n.value.y1} m -${F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 ${2 * F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 -${2 * F.value[r]},0`,
|
|
451
453
|
fill: "transparent"
|
|
452
454
|
}, null, 8, yt))), 256)),
|
|
453
|
-
(o(!0), u(x, null, S(m.value, (
|
|
454
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ?
|
|
455
|
+
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("text", {
|
|
456
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
455
457
|
"font-size": l.value.segmentFontSize,
|
|
456
458
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
457
459
|
"text-anchor": "middle"
|
|
458
460
|
}, [
|
|
459
461
|
p("textPath", {
|
|
460
462
|
href: `#curve_${_.value}_${r}`,
|
|
461
|
-
startOffset:
|
|
462
|
-
}, C(
|
|
463
|
+
startOffset: Me.value[r]
|
|
464
|
+
}, C(a.name || ""), 9, mt)
|
|
463
465
|
], 8, ft))), 256))
|
|
464
466
|
], 64)) : h("", !0),
|
|
465
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key: 1 }, S(Fe.value, (
|
|
466
|
-
x:
|
|
467
|
-
y:
|
|
468
|
-
"text-anchor": i(Ve)(
|
|
469
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ?
|
|
467
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key: 1 }, S(Fe.value, (a, r) => (o(), u("text", {
|
|
468
|
+
x: a.center.endX,
|
|
469
|
+
y: a.center.endY,
|
|
470
|
+
"text-anchor": i(Ve)(a, !1, 12).anchor,
|
|
471
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
470
472
|
"font-size": l.value.segmentFontSize,
|
|
471
473
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
472
|
-
}, C(
|
|
473
|
-
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(
|
|
474
|
+
}, C(a.name || ""), 9, pt))), 256)) : h("", !0),
|
|
475
|
+
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(Oe.value, (a, r) => (o(), u("path", {
|
|
474
476
|
key: `arc_${r}`,
|
|
475
|
-
d:
|
|
477
|
+
d: a.arcSlice,
|
|
476
478
|
fill: "#FFFFFF",
|
|
477
479
|
stroke: "none",
|
|
478
480
|
"stroke-linecap": "round",
|
|
@@ -489,43 +491,43 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
489
491
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
490
492
|
"stroke-linecap": "round"
|
|
491
493
|
}), null, 16, bt),
|
|
492
|
-
(o(!0), u(x, null, S(fe.value, (
|
|
494
|
+
(o(!0), u(x, null, S(fe.value, (a) => (o(), u("line", G(a, {
|
|
493
495
|
stroke: e.value.style.chart.backgroundColor,
|
|
494
496
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
495
497
|
"stroke-linecap": "round"
|
|
496
498
|
}), null, 16, xt))), 256)),
|
|
497
|
-
(o(!0), u(x, null, S(fe.value, (
|
|
499
|
+
(o(!0), u(x, null, S(fe.value, (a) => (o(), u("line", G(a, {
|
|
498
500
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
499
501
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
500
502
|
"stroke-linecap": "round"
|
|
501
503
|
}), null, 16, _t))), 256))
|
|
502
504
|
], 64)) : h("", !0),
|
|
503
505
|
e.value.style.chart.layout.markers.show ? (o(), u("g", wt, [
|
|
504
|
-
(o(!0), u(x, null, S(m.value, (
|
|
506
|
+
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("text", {
|
|
505
507
|
x: i(z)({
|
|
506
508
|
centerX: n.value.x1,
|
|
507
509
|
centerY: c.value.base,
|
|
508
|
-
initX:
|
|
509
|
-
initY:
|
|
510
|
+
initX: a.center.startX,
|
|
511
|
+
initY: a.center.startY,
|
|
510
512
|
offset: l.value.markerOffset
|
|
511
513
|
}).x,
|
|
512
514
|
y: i(z)({
|
|
513
515
|
centerX: n.value.x1,
|
|
514
516
|
centerY: c.value.base,
|
|
515
|
-
initX:
|
|
516
|
-
initY:
|
|
517
|
+
initX: a.center.startX,
|
|
518
|
+
initY: a.center.startY,
|
|
517
519
|
offset: l.value.markerOffset
|
|
518
520
|
}).y,
|
|
519
|
-
"text-anchor":
|
|
521
|
+
"text-anchor": a.center.startX < n.value.x1 - 5 ? "end" : a.center.startX > n.value.x1 + 5 ? "start" : "middle",
|
|
520
522
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
521
523
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
522
524
|
fill: e.value.style.chart.layout.markers.color
|
|
523
525
|
}, C(i(H)(
|
|
524
526
|
e.value.style.chart.layout.markers.formatter,
|
|
525
|
-
|
|
527
|
+
a.from,
|
|
526
528
|
i(Z)({
|
|
527
529
|
p: e.value.style.chart.layout.markers.prefix,
|
|
528
|
-
v:
|
|
530
|
+
v: a.from,
|
|
529
531
|
s: e.value.style.chart.layout.markers.suffix,
|
|
530
532
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
531
533
|
})
|
|
@@ -553,10 +555,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
553
555
|
fill: e.value.style.chart.layout.markers.color
|
|
554
556
|
}, C(i(H)(
|
|
555
557
|
e.value.style.chart.layout.markers.formatter,
|
|
556
|
-
|
|
558
|
+
O.value,
|
|
557
559
|
i(Z)({
|
|
558
560
|
p: e.value.style.chart.layout.markers.prefix,
|
|
559
|
-
v:
|
|
561
|
+
v: O.value,
|
|
560
562
|
s: e.value.style.chart.layout.markers.suffix,
|
|
561
563
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
562
564
|
})
|
|
@@ -592,8 +594,8 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
592
594
|
"stroke-linecap": "round",
|
|
593
595
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
594
596
|
filter: `url(#blur_${_.value})`
|
|
595
|
-
}, null, 8,
|
|
596
|
-
])) : (o(), u("g",
|
|
597
|
+
}, null, 8, Mt)) : h("", !0)
|
|
598
|
+
])) : (o(), u("g", Ot, [
|
|
597
599
|
ve.value ? (o(), u("path", {
|
|
598
600
|
key: 0,
|
|
599
601
|
d: ve.value,
|
|
@@ -629,10 +631,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
629
631
|
r: e.value.style.chart.legend.roundingValue
|
|
630
632
|
})
|
|
631
633
|
)), 9, Xt)) : h("", !0),
|
|
632
|
-
w(
|
|
634
|
+
w(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
633
635
|
], 14, ot)) : h("", !0),
|
|
634
|
-
|
|
635
|
-
w(
|
|
636
|
+
t.$slots.watermark ? (o(), u("div", Yt, [
|
|
637
|
+
w(t.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
|
|
636
638
|
])) : h("", !0),
|
|
637
639
|
Y.value ? h("", !0) : (o(), R(Ke, {
|
|
638
640
|
key: 6,
|
|
@@ -650,19 +652,19 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
650
652
|
ref_key: "chartLegend",
|
|
651
653
|
ref: ee
|
|
652
654
|
}, [
|
|
653
|
-
w(
|
|
655
|
+
w(t.$slots, "legend", { legend: $.value }, void 0, !0)
|
|
654
656
|
], 512),
|
|
655
|
-
|
|
657
|
+
t.$slots.source ? (o(), u("div", {
|
|
656
658
|
key: 7,
|
|
657
659
|
ref_key: "source",
|
|
658
660
|
ref: te,
|
|
659
661
|
dir: "auto"
|
|
660
662
|
}, [
|
|
661
|
-
w(
|
|
663
|
+
w(t.$slots, "source", {}, void 0, !0)
|
|
662
664
|
], 512)) : h("", !0)
|
|
663
665
|
], 46, st));
|
|
664
666
|
}
|
|
665
|
-
}, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-
|
|
667
|
+
}, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-09fb254b"]]);
|
|
666
668
|
export {
|
|
667
669
|
Vt as default
|
|
668
670
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DHwfzZfj.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-D-iwyLyE.cjs"),ve=require("./vue-ui-skeleton-DKtNfORj.cjs"),de=require("./Title-CNO85jNx.cjs"),Z=require("./useNestedProp-CSKuqs0C.cjs"),he=require("./PackageVersion-Bmujq1-q.cjs"),me=require("./PenAndPaper-Be8tn5wI.cjs"),fe=require("./useUserOptionState-BgepsfED.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],ke={key:0},ge=["xmlns","viewBox"],be=["id"],xe=["stop-color"],Se=["stop-color"],_e=["stop-color"],Be=["id"],we=["stdDeviation"],Ce=["d","fill","stroke"],Ne=["id","d"],Fe=["fill","font-size","font-weight"],ze=["href","startOffset"],Pe=["x","y","text-anchor","fill","font-size","font-weight"],Ee=["d","filter"],$e=["stroke","stroke-width"],Oe=["stroke","stroke-width"],Me=["stroke","stroke-width"],Ve=["stroke","stroke-width"],Xe={key:4},Ye=["x","y","text-anchor","font-size","font-weight","fill"],Ie=["x","y","font-size","font-weight","fill"],Ae={key:6},Re=["x1","y1","x2","y2","stroke","stroke-width"],Le=["x1","y1","x2","y2","stroke","stroke-width"],De=["x1","y1","x2","y2","stroke-width","filter"],Ge={key:7},qe=["d","fill","stroke","stroke-width"],Te=["cx","cy","fill","r","stroke-width","stroke"],Ue=["x","y","font-size","fill"],je={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=n.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),y=e.ref(n.createUid()),Q=e.ref(null),P=e.ref(0),g=e.ref(null),E=e.ref(null),$=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>I(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:Y}=fe.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=I(),N.value=!t.value.showOnChartHover,q(),V.value+=1},{deep:!0});function I(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:n.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!_.value||n.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(o=>{a.push(o.from||1e-7),a.push(o.to||1e-7)});const r=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((o,s)=>({...o,color:n.convertColorToHex(o.color)||te.value[s]||n.palette[s],value:((o.to||0)-(o.from||0))/r*100}))}}),h=e.ref(512),l=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),x=e.ref(0),v=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{T(c.dataset.value)});const u=e.computed(()=>{const a=l.value.width/2,r=i.value.base,o=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI;return{x1:a,y1:r,x2:a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),y2:r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o)}}),G=e.computed(()=>{const a=l.value.width/2,r=i.value.base,o=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI,s=a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),m=r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o),f=l.value.pointerRadius,se=a+f*Math.cos(o+Math.PI/2),ue=r+f*Math.sin(o+Math.PI/2),ie=a+f*Math.cos(o-Math.PI/2),ce=r+f*Math.sin(o-Math.PI/2);return isNaN(s)?null:`M ${s},${m} ${se},${ue} ${ie},${ce} Z`}),F=e.computed(()=>{for(let a=0;a<p.value.series.length;a+=1){const{color:r,from:o,to:s}=p.value.series[a];if(v.value>=o&&v.value<=s)return r}return"#2D353C"}),B=e.ref(null);function q(){if(n.objectIsEmpty(c.dataset)?n.error({componentName:"VueUiGauge",type:"dataset"}):(n.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{n.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,r)=>{n.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(o=>{n.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:o,index:r})})}):n.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),T(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:r,height:o}=W.useResponsive({chart:g.value,title:t.value.style.chart.title.text?E.value:null,legend:$.value,source:O.value,noTitle:M.value});l.value.width=r,l.value.height=o,l.value.centerX=r/2,l.value.centerY=h.value/2/358.4*o,l.value.bottom=o,l.value.labelFontSize=18/h.value*Math.min(o,r)<10?10:18/h.value*Math.min(o,r),l.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(o,r)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(o,r),l.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(o,r),l.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(o,r),l.value.pointerStrokeWidth=n.translateSize({relator:Math.min(r,o),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),l.value.markerOffset=n.translateSize({relator:Math.max(r,o),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),l.value.segmentFontSize=n.translateSize({relator:Math.min(r,o),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});B.value=new ResizeObserver(a),B.value.observe(g.value.parentNode)}}e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});function T(a){const r=[];(p.value.series||[]).forEach(f=>{r.push(f.from||0),r.push(f.to||0)}),b.value=Math.max(...r),x.value=Math.min(...r);let o=t.value.style.chart.animation.speed;const s=Math.abs(a-v.value)/(o*60);function m(){v.value<a?v.value=Math.min(v.value+s,a):v.value>a&&(v.value=Math.max(v.value-s,a)),v.value!==a&&requestAnimationFrame(m)}m()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(l.value.width,l.value.height):l.value.width,r=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/r,gradients:a/(r*1.1),base:t.value.responsive?l.value.height/2:l.value.height*.7,ratingBase:t.value.responsive?l.value.height/2+l.value.height/4:l.value.height*.9,pointerSize:t.value.responsive?Math.min(l.value.width,l.value.height)/3:l.value.width/3.2}}),d=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*l.value.trackSize)),ae=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*l.value.trackSize)),k=e.computed(()=>d.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),U=e.computed(()=>{const{x:a,y:r}=n.offsetFromCenterPoint({initX:d.value[0].firstSeparator.x,initY:d.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:s}=n.offsetFromCenterPoint({initX:d.value[0].startX,initY:d.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:r,x2:o,y2:s}}),j=e.computed(()=>d.value.map(a=>{const{x:r,y:o}=n.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:s,y:m}=n.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:r,y1:o,x2:s,y2:m}}));function oe(a){if(a.reduce((m,f)=>m+f,0)>100)throw new Error("Total % must not exceed 100");const o=50;let s=0;return a.map(m=>(s+=m,`${s/100*o-m/4}%`))}const le=e.computed(()=>oe(d.value.map(a=>a.proportion*100))),re=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*l.value.trackSize)),S=e.ref(!1);function ne(a){S.value=a,P.value+=1}const w=e.ref(!1);function z(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:z}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${S.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${y.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(X)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:E,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(Y)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:y.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${y.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,xe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,_e)],8,be)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,we)],8,Be)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:o.arcSlice,fill:o.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ce))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${y.value}_${s}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 ${2*k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 -${2*k.value[s]},0`,fill:"transparent"},null,8,Ne))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${y.value}_${s}`,startOffset:le.value[s]},e.toDisplayString(o.name||""),9,ze)],8,Fe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(ae.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:o.center.endX,y:o.center.endY,"text-anchor":e.unref(n.calcMarkerOffsetX)(o,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(o.name||""),9,Pe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(re.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:o.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${y.value})`},null,8,Ee))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("line",e.mergeProps(U.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,$e),e.createElementVNode("line",e.mergeProps(U.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Oe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ve))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).y,"text-anchor":o.center.startX<u.value.x1-5?"end":o.center.startX>u.value.x1+5?"start":"middle","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,o.from,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:o.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ye))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).y,"text-anchor":"start","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ie)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Ae,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":l.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Re)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.7},null,8,Le)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.3,filter:`url(#blur_${y.value})`},null,8,De)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Ge,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,qe)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:l.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:l.value.pointerRadius<=0?1e-4:l.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Te),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:8,x:l.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":l.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Ue)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:$},[e.renderSlot(a.$slots,"legend",{legend:p.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,pe))}},He=ye._export_sfc(We,[["__scopeId","data-v-09fb254b"]]);exports.default=He;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createVNode as L, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as b, c as N, e as $, i as p, f as m } from "./index-
|
|
3
|
-
import { u as F } from "./useNestedProp-
|
|
4
|
-
import { _ as B } from "./PackageVersion-
|
|
2
|
+
import { u as b, c as N, e as $, i as p, f as m } from "./index-BSzkwF5n.js";
|
|
3
|
+
import { u as F } from "./useNestedProp-BWC_DPZ5.js";
|
|
4
|
+
import { _ as B } from "./PackageVersion-W3d_oNMs.js";
|
|
5
5
|
const P = ["viewBox", "width"], V = { key: 0 }, D = ["id"], I = ["stop-color"], M = ["stop-color"], U = ["stroke"], E = ["stroke"], O = ["width", "fill"], S = ["fill"], A = { key: 0 }, j = ["id"], T = /* @__PURE__ */ t("feGaussianBlur", {
|
|
6
6
|
in: "SourceGraphic",
|
|
7
7
|
stdDeviation: 1
|