vue-data-ui 2.3.85 → 2.3.87
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-CLOh6oi7.cjs → Arrow-eu15g0Zt.cjs} +1 -1
- package/dist/{Arrow-JwDgP3de.js → Arrow-tDycrMHk.js} +1 -1
- package/dist/{BaseIcon-BBQHz_Sf.cjs → BaseIcon-CgLB-iUq.cjs} +1 -1
- package/dist/{BaseIcon-BysUnfCR.js → BaseIcon-D2n64yMC.js} +1 -1
- package/dist/{DataTable-MkG5Dqrn.js → DataTable-CrbRO0dh.js} +2 -2
- package/dist/{DataTable-pVXaNplZ.cjs → DataTable-DnOI5Ivh.cjs} +1 -1
- package/dist/{Legend-KW7sTwN3.js → Legend-BXctzvx2.js} +1 -1
- package/dist/{Legend-k2mcTp7z.cjs → Legend-sAjd_vcA.cjs} +1 -1
- package/dist/{Shape-COoEWeGM.cjs → Shape-BGa7uWId.cjs} +1 -1
- package/dist/{Shape-BFiZBf3X.js → Shape-BUBQ5omG.js} +1 -1
- package/dist/{Slicer-CALc-Q4W.js → Slicer-CXK3XM-z.js} +79 -87
- package/dist/Slicer-CoyHeBxs.cjs +1 -0
- package/dist/{Title-ISDbzCH8.js → Title-BITuZ5CT.js} +1 -1
- package/dist/{Title-BaKZYHEx.cjs → Title-DbAaPd9q.cjs} +1 -1
- package/dist/{Tooltip-BHmMXOej.js → Tooltip-DDBocDY4.js} +1 -1
- package/dist/{Tooltip-okAYzo5Y.cjs → Tooltip-LE8exuMN.cjs} +1 -1
- package/dist/{index-BiuHBtkZ.js → index-CP7GYbDW.js} +173 -162
- package/dist/index-U4mCr8P0.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +13 -0
- package/dist/types/vue-data-ui.d.ts +13 -0
- package/dist/{useNestedProp-B9yDavuy.cjs → useNestedProp-CgUQgTyB.cjs} +1 -1
- package/dist/{useNestedProp-Ck5_RzLu.js → useNestedProp-Dfz8QNDn.js} +1 -1
- package/dist/usePrinter-BfETb5Ie.js +527 -0
- package/dist/usePrinter-DQLl_Row.cjs +1 -0
- package/dist/{vue-data-ui-CAl2KJv9.js → vue-data-ui-BiTJ4KBF.js} +57 -57
- package/dist/{vue-data-ui-CVYCyzY-.cjs → vue-data-ui-CgTf8Gw2.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-CKCcmMbS.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CploAEkY.js → vue-ui-3d-bar-CKDV9VVB.js} +11 -10
- package/dist/{vue-ui-accordion-btKAUUTu.cjs → vue-ui-accordion-AcWCsB0f.cjs} +1 -1
- package/dist/{vue-ui-accordion-D2fhyKpk.js → vue-ui-accordion-DZSSaEp4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DkaM5MrK.js → vue-ui-age-pyramid-Cy-J_3gK.js} +25 -24
- package/dist/vue-ui-age-pyramid-DQ-h0bbz.cjs +1 -0
- package/dist/{vue-ui-annotator-38FBI0Pn.js → vue-ui-annotator-Dn_5RY5_.js} +1 -1
- package/dist/{vue-ui-annotator-BMYk78DR.cjs → vue-ui-annotator-GBAeaQUB.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CKsjq0Uw.js → vue-ui-candlestick-CAdWy5Y1.js} +12 -11
- package/dist/vue-ui-candlestick-guSNt_H0.cjs +2 -0
- package/dist/{vue-ui-carousel-table-Cx72LlTd.cjs → vue-ui-carousel-table-CuFG5v2i.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DjGaEuM7.js → vue-ui-carousel-table-DmmKDp7-.js} +7 -7
- package/dist/{vue-ui-chestnut-TLyh4dIZ.js → vue-ui-chestnut-BmzjUDjK.js} +10 -9
- package/dist/{vue-ui-chestnut-DAiBfoPN.cjs → vue-ui-chestnut-bAWBqCf3.cjs} +2 -2
- package/dist/{vue-ui-cursor-BunDuWpK.cjs → vue-ui-cursor-CfkNSO9o.cjs} +1 -1
- package/dist/{vue-ui-cursor-B1xa5yua.js → vue-ui-cursor-DDViNH81.js} +2 -2
- package/dist/{vue-ui-dashboard-DdcubzWu.js → vue-ui-dashboard-BGwxII0l.js} +2 -2
- package/dist/{vue-ui-dashboard-CMZ736DL.cjs → vue-ui-dashboard-CT09iVhX.cjs} +1 -1
- package/dist/{vue-ui-digits-BUpjWWnD.js → vue-ui-digits-BYO9w7xM.js} +2 -2
- package/dist/{vue-ui-digits-z5g__gqs.cjs → vue-ui-digits-DObHCYJe.cjs} +1 -1
- package/dist/vue-ui-donut-B-YGaPcq.cjs +1 -0
- package/dist/{vue-ui-donut-ZLpfm-XT.js → vue-ui-donut-DqOvTGAK.js} +34 -33
- package/dist/{vue-ui-donut-evolution-Bn4asQO3.js → vue-ui-donut-evolution-ByIcsVPF.js} +12 -11
- package/dist/vue-ui-donut-evolution-DAzxGbsO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-CY6X8J1K.cjs → vue-ui-dumbbell-Ch6sj_EW.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-D2R9tJ99.js → vue-ui-dumbbell-JpJFPxM2.js} +11 -10
- package/dist/{vue-ui-flow-Dd5uPNTQ.js → vue-ui-flow-BhtIMcan.js} +10 -9
- package/dist/vue-ui-flow-C5N8YgfJ.cjs +1 -0
- package/dist/{vue-ui-galaxy-B7CoWLhj.js → vue-ui-galaxy-BZT14d6d.js} +12 -11
- package/dist/vue-ui-galaxy-Cv38ZzWi.cjs +1 -0
- package/dist/vue-ui-gauge-BrwCmfGP.cjs +1 -0
- package/dist/{vue-ui-gauge-CGh_m922.js → vue-ui-gauge-Dj2gBTkq.js} +29 -28
- package/dist/{vue-ui-gizmo-D5Kn7w7L.cjs → vue-ui-gizmo-BhCZEfOE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BY3hnKSH.js → vue-ui-gizmo-Dx0mO1Zf.js} +2 -2
- package/dist/{vue-ui-heatmap-yYN0u0I6.js → vue-ui-heatmap-DdSGFMo1.js} +41 -40
- package/dist/vue-ui-heatmap-azP3H0Be.cjs +1 -0
- package/dist/{vue-ui-kpi-B4zr_geL.js → vue-ui-kpi-C0fjrvpC.js} +3 -3
- package/dist/{vue-ui-kpi-Q20yM3IP.cjs → vue-ui-kpi-TKkErBy-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-GImbaGsN.js → vue-ui-mini-loader-CVflLGuB.js} +2 -2
- package/dist/{vue-ui-mini-loader-GFSZofpE.cjs → vue-ui-mini-loader-DAos2pVd.cjs} +1 -1
- package/dist/vue-ui-molecule-CW1523wC.cjs +1 -0
- package/dist/{vue-ui-molecule-DmrB3kgA.js → vue-ui-molecule-D9OfBp53.js} +290 -286
- package/dist/{vue-ui-mood-radar-sEkQtzI2.js → vue-ui-mood-radar-PMARjoQW.js} +79 -78
- package/dist/vue-ui-mood-radar-vvG5BlGa.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DvpZLcYd.js → vue-ui-nested-donuts-Bt8ZHG4b.js} +35 -34
- package/dist/vue-ui-nested-donuts-wVELVgGD.cjs +17 -0
- package/dist/{vue-ui-onion-DQMLPe3M.js → vue-ui-onion-B-4djV2X.js} +12 -11
- package/dist/vue-ui-onion-j8P027dX.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DN2LPNyS.js → vue-ui-parallel-coordinate-plot-B2N249AX.js} +14 -13
- package/dist/vue-ui-parallel-coordinate-plot-BRNG5VwG.cjs +8 -0
- package/dist/vue-ui-quadrant-BaDei-7C.cjs +1 -0
- package/dist/{vue-ui-quadrant-D2GpeXI6.js → vue-ui-quadrant-Bvv3ZZI7.js} +13 -12
- package/dist/{vue-ui-quick-chart-C5K9DfUV.js → vue-ui-quick-chart-BzFITYDP.js} +60 -59
- package/dist/vue-ui-quick-chart-OUDWfDwC.cjs +15 -0
- package/dist/vue-ui-radar-Bpz3hyr9.cjs +1 -0
- package/dist/{vue-ui-radar-B9TZPujK.js → vue-ui-radar-CXH5XhDS.js} +13 -12
- package/dist/{vue-ui-rating-DpxzUDQq.cjs → vue-ui-rating-BEtR56Zg.cjs} +1 -1
- package/dist/{vue-ui-rating-B0pNsmGB.js → vue-ui-rating-BcngasYQ.js} +2 -2
- package/dist/{vue-ui-relation-circle-DSnlpLHt.js → vue-ui-relation-circle-BmWv5Kwu.js} +46 -45
- package/dist/{vue-ui-relation-circle-D3B-lpdM.cjs → vue-ui-relation-circle-Cn4xYFeJ.cjs} +1 -1
- package/dist/{vue-ui-rings-cmeFVitd.cjs → vue-ui-rings-BbrUn18Q.cjs} +2 -2
- package/dist/{vue-ui-rings-BuvFDBXg.js → vue-ui-rings-DDvVuJvv.js} +12 -11
- package/dist/vue-ui-scatter-C9B6pkLG.cjs +1 -0
- package/dist/{vue-ui-scatter-D_chvOSJ.js → vue-ui-scatter-CfgLA10v.js} +13 -12
- package/dist/{vue-ui-screenshot-CwrXLMru.cjs → vue-ui-screenshot-BDjgeoQi.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DSHeHshf.js → vue-ui-screenshot-W6aedcDN.js} +1 -1
- package/dist/{vue-ui-skeleton-Du4zw-c1.js → vue-ui-skeleton-BAQjFiop.js} +2 -2
- package/dist/{vue-ui-skeleton-DJhwv2oY.cjs → vue-ui-skeleton-BhG4niml.cjs} +1 -1
- package/dist/{vue-ui-smiley-BtQLJ7rA.js → vue-ui-smiley-CQNAPd4d.js} +2 -2
- package/dist/{vue-ui-smiley-BNkk6suC.cjs → vue-ui-smiley-J1L8V6KG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DFIjxBTY.cjs → vue-ui-spark-trend-BTdNsDFX.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BgA79g7a.js → vue-ui-spark-trend-CBc-tBLR.js} +4 -4
- package/dist/{vue-ui-sparkbar-BlwQfhlY.cjs → vue-ui-sparkbar-D0189X8M.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DQAWZReF.js → vue-ui-sparkbar-DCLpbzSR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BCRSQDpt.cjs → vue-ui-sparkgauge-ButS3IF8.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CCApU38s.js → vue-ui-sparkgauge-C-12vLRd.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-PKTt4EmH.js → vue-ui-sparkhistogram-CqHEh_4P.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CTxG1Vtn.cjs → vue-ui-sparkhistogram-NLFMPPXv.cjs} +1 -1
- package/dist/{vue-ui-sparkline-EESAiZyt.js → vue-ui-sparkline-BaHeaRVl.js} +3 -3
- package/dist/{vue-ui-sparkline-BUaixngQ.cjs → vue-ui-sparkline-Cy8fuCDw.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-iQnc0zcO.cjs → vue-ui-sparkstackbar-B64XK1yu.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-TnLNixdf.js → vue-ui-sparkstackbar-BLvXeEbr.js} +3 -3
- package/dist/{vue-ui-stackbar-Ci04sup3.js → vue-ui-stackbar-B-ZE7Ksh.js} +13 -12
- package/dist/vue-ui-stackbar-CLmcckvD.cjs +6 -0
- package/dist/vue-ui-strip-plot-DTJeRXEM.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DbvW0BuF.js → vue-ui-strip-plot-DbmLZ03_.js} +12 -11
- package/dist/{vue-ui-table-CamkBCdL.js → vue-ui-table-CpUWJGi_.js} +1 -1
- package/dist/{vue-ui-table-328De4vk.cjs → vue-ui-table-DdroDYB6.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-CSHkuLE3.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-D-YdrvGV.js → vue-ui-table-heatmap-XJj-iDhJ.js} +27 -26
- package/dist/{vue-ui-table-sparkline-Dg2RKv6f.js → vue-ui-table-sparkline-DEhCOiH8.js} +25 -24
- package/dist/{vue-ui-table-sparkline-Cmg7wnQ0.cjs → vue-ui-table-sparkline-GgMGhbwH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-jWHbZTc2.js → vue-ui-thermometer-CF9_Jiig.js} +51 -50
- package/dist/vue-ui-thermometer-LM5LB1fZ.cjs +1 -0
- package/dist/{vue-ui-timer-BPepr5eV.js → vue-ui-timer-BN3oSs18.js} +4 -4
- package/dist/{vue-ui-timer-B_FyRAU7.cjs → vue-ui-timer-Kw8zfnyl.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CaJWlyz8.cjs → vue-ui-tiremarks-B5Ieo2VI.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DW8Q2IBl.js → vue-ui-tiremarks-CTiztDdT.js} +48 -47
- package/dist/{vue-ui-treemap-B9GpvA0k.cjs → vue-ui-treemap-CHngTUd0.cjs} +1 -1
- package/dist/{vue-ui-treemap-CWu43qLo.js → vue-ui-treemap-DEDT65NP.js} +13 -12
- package/dist/vue-ui-vertical-bar-C8XQwe6S.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CndASePh.js → vue-ui-vertical-bar-hFeIrO6z.js} +13 -12
- package/dist/{vue-ui-waffle-CdyqwJwN.js → vue-ui-waffle-CLbMVN8j.js} +46 -45
- package/dist/{vue-ui-waffle-c9ycdoKz.cjs → vue-ui-waffle-tFQq8-qt.cjs} +1 -1
- package/dist/vue-ui-wheel-CMRCYfem.cjs +1 -0
- package/dist/{vue-ui-wheel-Byq_BLhl.js → vue-ui-wheel-DpPdEqHh.js} +34 -33
- package/dist/{vue-ui-word-cloud-BVOcsuMP.cjs → vue-ui-word-cloud-C18oOvC0.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BRxN5uFD.js → vue-ui-word-cloud-DTXq9aIY.js} +10 -9
- package/dist/vue-ui-xy-Bw1GQuGo.cjs +3 -0
- package/dist/{vue-ui-xy-DgEdZz0O.js → vue-ui-xy-DN8TqWYI.js} +342 -339
- package/dist/{vue-ui-xy-canvas-BI7jUOTn.js → vue-ui-xy-canvas-BoH-Grae.js} +54 -53
- package/dist/{vue-ui-xy-canvas-Td0WNYN0.cjs → vue-ui-xy-canvas-Dg9jorcV.cjs} +2 -2
- package/package.json +1 -1
- package/dist/Slicer-DCyxUSsn.cjs +0 -1
- package/dist/index-D-vy9N1v.cjs +0 -4
- package/dist/usePrinter-Do8KiK5h.js +0 -513
- package/dist/usePrinter-P4nLcXX-.cjs +0 -1
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +0 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +0 -2
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +0 -1
- package/dist/vue-ui-flow-DswsuPwy.cjs +0 -1
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +0 -1
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +0 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +0 -1
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +0 -1
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BcOgxtZV.cjs +0 -17
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +0 -8
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +0 -1
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +0 -15
- package/dist/vue-ui-radar-KA287Tp-.cjs +0 -1
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +0 -1
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +0 -6
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CCHre3Gt.cjs +0 -1
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +0 -1
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +0 -4
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +0 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +0 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as v, onMounted as $e, ref as u, watch as _e, openBlock as s, createElementBlock as n, normalizeClass as L, normalizeStyle as W, createBlock as x, createCommentVNode as d, unref as h, createSlots as Te, withCtx as i, renderSlot as y, normalizeProps as I, guardReactiveProps as F, createElementVNode as $, Fragment as oe, renderList as se, createTextVNode as re, toDisplayString as O, createVNode as Pe, nextTick as Se } from "vue";
|
|
2
|
-
import { u as Ne, o as Le, e as ue, g as Ie, c as ne, t as Fe, a as Oe, p as E, b as Ee, d as De, G as ie, J as Ge, f as k, X as Ve, i as ce, x as ve, y as Be, q as Me, r as ze } from "./index-
|
|
3
|
-
import { L as We } from "./Legend-
|
|
4
|
-
import { _ as Ae } from "./Title-
|
|
5
|
-
import { _ as He } from "./Tooltip-
|
|
6
|
-
import { D as Ue } from "./DataTable-
|
|
7
|
-
import { u as Xe, U as Re } from "./usePrinter-
|
|
8
|
-
import Ye from "./vue-ui-skeleton-
|
|
9
|
-
import je from "./vue-ui-accordion-
|
|
10
|
-
import { u as de } from "./useNestedProp-
|
|
2
|
+
import { u as Ne, o as Le, e as ue, g as Ie, c as ne, t as Fe, a as Oe, p as E, b as Ee, d as De, G as ie, J as Ge, f as k, X as Ve, i as ce, x as ve, y as Be, q as Me, r as ze } from "./index-CP7GYbDW.js";
|
|
3
|
+
import { L as We } from "./Legend-BXctzvx2.js";
|
|
4
|
+
import { _ as Ae } from "./Title-BITuZ5CT.js";
|
|
5
|
+
import { _ as He } from "./Tooltip-DDBocDY4.js";
|
|
6
|
+
import { D as Ue } from "./DataTable-CrbRO0dh.js";
|
|
7
|
+
import { u as Xe, U as Re } from "./usePrinter-BfETb5Ie.js";
|
|
8
|
+
import Ye from "./vue-ui-skeleton-BAQjFiop.js";
|
|
9
|
+
import je from "./vue-ui-accordion-DZSSaEp4.js";
|
|
10
|
+
import { u as de } from "./useNestedProp-Dfz8QNDn.js";
|
|
11
11
|
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Je = ["id"], Ke = {
|
|
13
13
|
key: 0,
|
|
@@ -299,6 +299,7 @@ const Je = ["id"], Ke = {
|
|
|
299
299
|
isFullscreen: P.value,
|
|
300
300
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
301
301
|
chartElement: D.value,
|
|
302
|
+
position: e.value.userOptions.position,
|
|
302
303
|
onToggleFullscreen: ke,
|
|
303
304
|
onGeneratePdf: h(K),
|
|
304
305
|
onGenerateCsv: te,
|
|
@@ -348,7 +349,7 @@ const Je = ["id"], Ke = {
|
|
|
348
349
|
]),
|
|
349
350
|
key: "5"
|
|
350
351
|
} : void 0
|
|
351
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
352
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
352
353
|
S.value ? (s(), n("svg", {
|
|
353
354
|
key: 2,
|
|
354
355
|
xmlns: h(Ve),
|
|
@@ -536,7 +537,7 @@ const Je = ["id"], Ke = {
|
|
|
536
537
|
}, 8, ["config"])) : d("", !0)
|
|
537
538
|
], 14, Je));
|
|
538
539
|
}
|
|
539
|
-
}, xt = /* @__PURE__ */ qe(vt, [["__scopeId", "data-v-
|
|
540
|
+
}, xt = /* @__PURE__ */ qe(vt, [["__scopeId", "data-v-a2be7205"]]);
|
|
540
541
|
export {
|
|
541
542
|
xt as default
|
|
542
543
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-U4mCr8P0.cjs"),le=require("./Legend-sAjd_vcA.cjs"),oe=require("./Title-DbAaPd9q.cjs"),ae=require("./Tooltip-LE8exuMN.cjs"),re=require("./DataTable-DnOI5Ivh.cjs"),W=require("./usePrinter-DQLl_Row.cjs"),ne=require("./vue-ui-skeleton-BhG4niml.cjs"),se=require("./vue-ui-accordion-AcWCsB0f.cjs"),U=require("./useNestedProp-CgUQgTyB.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=["id"],ce={key:0,style:"width:100%;background:transparent;padding-bottom:24px"},de=["xmlns","viewBox"],ve=["id"],he=["stdDeviation"],pe=["d","stroke","stroke-width"],fe=["d","stroke","stroke-width"],ye=["filter"],ge=["d","stroke","stroke-width"],me=["d","stroke-width","onMouseenter","onClick"],be={key:3,class:"vue-data-ui-watermark"},ke=["onClick"],Ce={key:0},we={key:1},xe=["innerHTML"],$e={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(H,{expose:R,emit:_}){const i=H,{vue_ui_galaxy:X}=r.useConfig(),b=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{S()});function S(){r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):i.dataset.forEach((l,a)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiGalaxy",type:"datasetSerieAttribute",property:o,index:a})})})}const y=e.ref(r.createUid()),C=e.ref(null),j=e.ref(null),w=e.ref(!1),x=e.ref(""),c=e.ref(null),N=e.ref(0),P=e.ref(0),L=e.ref(0),E=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=U.useNestedProp({userConfig:i.config,defaultConfig:X});return l.theme?{...U.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>i.config,l=>{t.value=V(),S(),P.value+=1,L.value+=1,E.value+=1},{deep:!0});const{isPrinting:F,isImaging:I,generatePdf:O,generateImage:z}=W.usePrinter({elementId:`galaxy_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),Y=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),$=e.ref({height:180,width:250}),u=e.ref([]);function B(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),_("selectLegend",g.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const p=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||Y.value[a]||r.palette[a]||r.palette[a%r.palette.length],value:l.values?r.sanitizeArray(l.values).reduce((o,n)=>o+n,0):0,absoluteValues:r.sanitizeArray(l.values),id:r.createUid(),seriesIndex:a})).sort((l,a)=>a.value-l.value));function J(){return p.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>p.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),K=e.ref(190),D=e.computed(()=>p.value.filter(l=>!u.value.includes(l.id))),g=e.computed(()=>{const l=[];for(let a=0;a<D.value.length;a+=1){const o=D.value[a];let n=o.value/d.value*K.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/d.value,path:r.createSpiralPath({points:n,startX:115+t.value.style.chart.layout.arcs.offsetX,startY:90+t.value.style.chart.layout.arcs.offsetY})})}return l.filter((a,o)=>!u.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),m=e.ref(!1);function Q(l){m.value=l,N.value+=1}const T=e.ref(null);function Z({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:p.value,config:t.value},w.value=n,c.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}))?x.value=f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?s+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:s+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),x.value=`<div>${s}</div>`)}const q=e.computed(()=>p.value.map((l,a)=>({...l,proportion:(l.value||0)/i.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:u.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>B(l),isSegregated:u.value.includes(l.id)}))),ee=e.computed(()=>({cy:"galaxy-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),h=e.computed(()=>{const l=g.value.map(o=>({name:o.name,color:o.color})),a=g.value.map(o=>o.value);return{head:l,body:a}});function G(){e.nextTick(()=>{const l=h.value.head.map((n,s)=>[[n.name],[h.value.body[s]],[isNaN(h.value.body[s]/d.value)?"-":h.value.body[s]/d.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-galaxy"})})}const k=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=h.value.head.map((s,f)=>{const te=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:h.value.body[f],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},te,isNaN(h.value.body[f]/d.value)?"-":r.dataLabel({v:h.value.body[f]/d.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:a,config:o}});function M(){v.value.showTable=!v.value.showTable}function A(){v.value.showTooltip=!v.value.showTooltip}return R({getData:J,generatePdf:O,generateCsv:G,generateImage:z,toggleTable:M,toggleTooltip:A}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:C,class:e.normalizeClass(`vue-ui-galaxy ${m.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`galaxy_${y.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ce,[(e.openBlock(),e.createBlock(oe._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"galaxy-div-title",...t.value.style.chart.title},subtitle:{cy:"galaxy-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref_key:"details",ref:j,key:`user_option_${N.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(F),isImaging:e.unref(I),uid:y.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:v.value.showTooltip,isFullscreen:m.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,onToggleFullscreen:Q,onGeneratePdf:e.unref(O),onGenerateCsv:G,onGenerateImage:e.unref(z),onToggleTable:M,onToggleTooltip:A},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":m.value,"vue-data-ui-fulscreen--off":!m.value}),viewBox:`0 0 ${$.value.width} ${$.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[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.arcs.gradient.intensity},null,8,he)],8,ve)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,o=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:t.value.style.chart.backgroundColor,"stroke-width":(t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth)*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round"},null,8,pe)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:o.path,fill:"none",stroke:o.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,fe)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${y.value})`},[e.createElementVNode("path",{d:o.path,fill:"none",stroke:t.value.style.chart.layout.arcs.gradient.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth/2*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`vue-ui-galaxy-gradient ${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,ge)],8,ye)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:"transparent","stroke-width":t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth,"stroke-linecap":"round",onMouseenter:s=>Z({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{w.value=!1,c.value=null}),onClick:s=>_("selectDatapoint",o)},null,40,me)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:$.value},void 0,!0)],14,de)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",be,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(F)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:4,config:{type:"galaxy",style:{backgroundColor:t.value.style.chart.backgroundColor,galaxy:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(le.Legend,{key:`legend_${E.value}`,legendSet:q.value,config:ee.value,onClickMarker:a[1]||(a[1]=({legend:o})=>B(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>B(o),style:e.normalizeStyle(`opacity:${u.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),u.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",we," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ce," ("+e.toDisplayString(isNaN(o.value/d.value)?"-":e.unref(r.dataLabel)({v:o.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,ke)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:q.value},void 0,!0),e.createVNode(ae._sfc_main,{show:v.value.showTooltip&&w.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:x.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),b.value?(e.openBlock(),e.createBlock(se.default,{key:6,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(re.DataTable,{key:`table_${L.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,xe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ie))}},Be=ue._export_sfc($e,[["__scopeId","data-v-a2be7205"]]);exports.default=Be;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-U4mCr8P0.cjs"),Y=require("./useResponsive-B3TrDDIG.cjs"),R=require("./usePrinter-DQLl_Row.cjs"),J=require("./vue-ui-skeleton-BhG4niml.cjs"),K=require("./Title-DbAaPd9q.cjs"),D=require("./useNestedProp-CgUQgTyB.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te={key:0},ae=["xmlns","viewBox"],le=["id"],oe=["stop-color"],re=["stop-color"],ne=["stop-color"],se=["id"],ue=["stdDeviation"],ie=["d","fill","stroke"],ce=["d","filter"],de=["x","y","text-anchor","font-size","font-weight","fill"],ve=["x","y","font-size","font-weight","fill"],he={key:1},fe=["x1","y1","x2","y2","stroke","stroke-width"],pe=["x1","y1","x2","y2","stroke","stroke-width"],me=["x1","y1","x2","y2","stroke-width","filter"],ye={key:2},ge=["d","fill","stroke","stroke-width"],ke=["cx","cy","fill","r","stroke-width","stroke"],be=["x","y","font-size","fill"],_e={key:3,class:"vue-data-ui-watermark"},xe={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(w,{expose:G}){const s=w,{vue_ui_gauge:j}=r.useConfig(),k=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length>0&&s.dataset.series&&s.dataset.series.length),h=e.ref(r.createUid()),A=e.ref(null),C=e.ref(0),b=e.ref(null),z=e.ref(null),B=e.ref(null),N=e.ref(0),t=e.computed({get:()=>P(),set:l=>l});e.watch(()=>s.config,l=>{t.value=P(),V(),N.value+=1},{deep:!0});function P(){const l=D.useNestedProp({userConfig:s.config,defaultConfig:j});return l.theme?{...D.useNestedProp({userConfig:r.themes.vue_ui_gauge[l.theme]||s.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}const{isPrinting:E,isImaging:M,generatePdf:$,generateImage:I}=R.usePrinter({elementId:`vue-ui-gauge_${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),q=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!k.value||r.objectIsEmpty(s.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const l=[];(s.dataset.series||[]).forEach(o=>{l.push(o.from||0),l.push(o.to||0)});const n=Math.max(...l);return{...s.dataset,series:(s.dataset.series||[]).map((o,i)=>({...o,color:r.convertColorToHex(o.color)||q.value[i]||r.palette[i],value:((o.to||0)-(o.from||0))/n*100}))}}),v=e.ref(512),a=e.ref({height:358.4,width:v.value,top:0,bottom:358.4,centerX:179.2,centerY:v.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}),_=e.ref(0),y=e.ref(0),c=e.ref(t.value.style.chart.animation.use?0:s.dataset.value);e.watch(()=>s.dataset.value,()=>{X(s.dataset.value)});const d=e.computed(()=>{const l=a.value.width/2,n=u.value.base,o=Math.PI*((c.value+0-y.value)/(_.value-y.value))+Math.PI;return{x1:l,y1:n,x2:l+u.value.pointerSize*a.value.pointerSize*.9*Math.cos(o),y2:n+u.value.pointerSize*a.value.pointerSize*.9*Math.sin(o)}}),O=e.computed(()=>{const l=a.value.width/2,n=u.value.base,o=Math.PI*((c.value+0-y.value)/(_.value-y.value))+Math.PI,i=l+u.value.pointerSize*a.value.pointerSize*.9*Math.cos(o),S=n+u.value.pointerSize*a.value.pointerSize*.9*Math.sin(o),f=a.value.pointerRadius,W=l+f*Math.cos(o+Math.PI/2),T=n+f*Math.sin(o+Math.PI/2),H=l+f*Math.cos(o-Math.PI/2),Z=n+f*Math.sin(o-Math.PI/2);return isNaN(i)?null:`M ${i},${S} ${W},${T} ${H},${Z} Z`}),F=e.computed(()=>{for(let l=0;l<p.value.series.length;l+=1){const{color:n,from:o,to:i}=p.value.series[l];if(c.value>=o&&c.value<=i)return n}return"#2D353C"}),x=e.ref(null);function V(){if(r.objectIsEmpty(s.dataset)?r.error({componentName:"VueUiGauge",type:"dataset"}):(r.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","series"]}).forEach(l=>{r.error({componentName:"VueUiGauge",type:"datasetAttribute",property:l})}),Object.hasOwn(s.dataset,"series")&&(s.dataset.series.length?s.dataset.series.forEach((l,n)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["from","to"]}).forEach(o=>{r.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:o,index:n})})}):r.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),X(s.dataset.value||0),t.value.responsive){const l=Y.throttle(()=>{const{width:n,height:o}=Y.useResponsive({chart:b.value,title:t.value.style.chart.title.text?z.value:null,legend:B.value});a.value.width=n,a.value.height=o,a.value.centerX=n/2,a.value.centerY=v.value/2/358.4*o,a.value.bottom=o,a.value.labelFontSize=18/v.value*Math.min(o,n)<10?10:18/v.value*Math.min(o,n),a.value.legendFontSize=t.value.style.chart.legend.fontSize/v.value*Math.min(o,n)<14?14:t.value.style.chart.legend.fontSize/v.value*Math.min(o,n),a.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/v.value*Math.min(o,n),a.value.trackSize=t.value.style.chart.layout.track.size/v.value*Math.min(o,n),a.value.pointerStrokeWidth=r.translateSize({relator:Math.min(n,o),adjuster:v.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),a.value.markerOffset=r.translateSize({relator:Math.max(n,o),adjuster:v.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2})});x.value=new ResizeObserver(l),x.value.observe(b.value.parentNode)}}e.onMounted(()=>{V()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function X(l){const n=[];(p.value.series||[]).forEach(f=>{n.push(f.from||0),n.push(f.to||0)}),_.value=Math.max(...n),y.value=Math.min(...n);let o=t.value.style.chart.animation.speed;const i=Math.abs(l-c.value)/(o*60);function S(){c.value<l?c.value=Math.min(c.value+i,l):c.value>l&&(c.value=Math.max(c.value-i,l)),c.value!==l&&requestAnimationFrame(S)}S()}const u=e.computed(()=>{const l=t.value.responsive?Math.min(a.value.width,a.value.height):a.value.width;return{arcs:l/2.5,gradients:l/2.75,base:t.value.responsive?a.value.height/2:a.value.height*.7,ratingBase:t.value.responsive?a.value.height/2+a.value.height/4:a.value.height*.9,pointerSize:t.value.responsive?Math.min(a.value.width,a.value.height)/3:a.value.width/3.2}}),m=e.computed(()=>r.makeDonut({series:p.value.series},a.value.width/2,u.value.base,u.value.arcs,u.value.arcs,1,1,1,180,109.9495,40*a.value.trackSize)),L=e.computed(()=>r.makeDonut({series:p.value.series},a.value.width/2,u.value.base,u.value.gradients,u.value.gradients,.95,1,1,180,110.02,2*a.value.trackSize)),g=e.ref(!1);function U(l){g.value=l,C.value+=1}return G({generatePdf:$,generateImage:I}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:b,id:`vue-ui-gauge_${h.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%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(K._sfc_main,{key:`title_${N.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&&w.dataset.base?(e.openBlock(),e.createElementBlock("span",te,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(w.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(R.UserOptions,{ref_key:"details",ref:A,key:`user_options_${C.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(M),isPrinting:e.unref(E),uid:h.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,position:t.value.userOptions.position,onToggleFullscreen:U,onGeneratePdf:e.unref($),onGenerateImage:e.unref(I)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:i})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:i})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${h.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,oe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,re),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,ne)],8,le)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${h.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,ue)],8,se)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,i)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${i}`,d:o.arcSlice,fill:o.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,ie))),128)),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(L.value,(o,i)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${i}`,d:o.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${h.value})`},null,8,ce))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,i)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(r.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:o.center.startX,initY:o.center.startY,offset:a.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:o.center.startX,initY:o.center.startY,offset:a.value.markerOffset}).y,"text-anchor":o.center.startX<a.value.width/2-5?"end":o.center.startX>a.value.width/2+5?"start":"middle","font-size":a.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(o.from.toFixed(t.value.style.chart.layout.markers.roundingValue)),9,de))),256)),e.createElementVNode("text",{x:e.unref(r.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:m.value.at(-1).endX,initY:m.value.at(-1).endY,offset:a.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:a.value.width/2,centerY:u.value.base,initX:m.value.at(-1).endX,initY:m.value.at(-1).endY,offset:a.value.markerOffset}).y,"text-anchor":"start","font-size":a.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(_.value.toFixed(t.value.style.chart.layout.markers.roundingValue)),9,ve),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",he,[isNaN(d.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:d.value.x1,y1:d.value.y1,x2:d.value.x2,y2:d.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":a.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,fe)),isNaN(d.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:d.value.x1,y1:d.value.y1,x2:d.value.x2,y2:d.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":a.value.pointerStrokeWidth*.7},null,8,pe)),!isNaN(d.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:d.value.x1,y1:d.value.y1,x2:d.value.x2,y2:d.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":a.value.pointerStrokeWidth*.3,filter:`url(#blur_${h.value})`},null,8,me)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",ye,[O.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:O.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,ge)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:a.value.width/2,cy:u.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:a.value.pointerRadius<=0?1e-4:a.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,ke),e.createElementVNode("text",{x:a.value.width/2,y:u.value.ratingBase,"text-anchor":"middle","font-size":a.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.legend.formatter,c.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&c.value>0?"+":""),v:c.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,be),e.renderSlot(l.$slots,"svg",{svg:a.value},void 0,!0)],14,ae)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",_e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(E)||e.unref(M)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:4,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:B},[e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0)],512)],14,ee))}},Se=Q._export_sfc(xe,[["__scopeId","data-v-f3c9ca1e"]]);exports.default=Se;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as xe, c as we, t as Fe, a as Se, p as le, b as ze, o as se, d as Ce, e as O, g as re, m as oe, X as Me, s as A, K as X, i as $e, f as Pe, E as ue } from "./index-
|
|
1
|
+
import { computed as g, ref as h, watch as J, onMounted as ke, onBeforeUnmount as be, openBlock as o, createElementBlock as i, normalizeClass as Q, normalizeStyle as ee, createBlock as G, withCtx as I, toDisplayString as S, createCommentVNode as p, unref as c, createSlots as _e, renderSlot as x, normalizeProps as te, guardReactiveProps as ae, createElementVNode as f, Fragment as R, renderList as E } from "vue";
|
|
2
|
+
import { u as xe, c as we, t as Fe, a as Se, p as le, b as ze, o as se, d as Ce, e as O, g as re, m as oe, X as Me, s as A, K as X, i as $e, f as Pe, E as ue } from "./index-CP7GYbDW.js";
|
|
3
3
|
import { t as Ie, u as Oe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { u as Xe, U as Ne } from "./usePrinter-
|
|
5
|
-
import Ye from "./vue-ui-skeleton-
|
|
6
|
-
import { _ as Ge } from "./Title-
|
|
7
|
-
import { u as ne } from "./useNestedProp-
|
|
4
|
+
import { u as Xe, U as Ne } from "./usePrinter-BfETb5Ie.js";
|
|
5
|
+
import Ye from "./vue-ui-skeleton-BAQjFiop.js";
|
|
6
|
+
import { _ as Ge } from "./Title-BITuZ5CT.js";
|
|
7
|
+
import { u as ne } from "./useNestedProp-Dfz8QNDn.js";
|
|
8
8
|
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue = ["stop-color"], Be = ["stop-color"], Le = ["stop-color"], We = ["id"], Te = ["stdDeviation"], Ve = ["d", "fill", "stroke"], qe = ["d", "filter"], He = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Ke = ["x", "y", "font-size", "font-weight", "fill"], Ze = { key: 1 }, Je = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qe = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], et = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], tt = { key: 2 }, at = ["d", "fill", "stroke", "stroke-width"], lt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], st = ["x", "y", "font-size", "fill"], rt = {
|
|
10
10
|
key: 3,
|
|
@@ -26,7 +26,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
setup(N, { expose: ie }) {
|
|
29
|
-
const r = N, { vue_ui_gauge: ce } = xe(), z =
|
|
29
|
+
const r = N, { vue_ui_gauge: ce } = xe(), z = g(() => !!r.dataset && Object.keys(r.dataset).length > 0 && r.dataset.series && r.dataset.series.length), m = h(we()), ve = h(null), j = h(0), C = h(null), D = h(null), U = h(null), B = h(0), e = g({
|
|
30
30
|
get: () => L(),
|
|
31
31
|
set: (a) => a
|
|
32
32
|
});
|
|
@@ -49,7 +49,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
49
49
|
const { isPrinting: W, isImaging: T, generatePdf: V, generateImage: q } = Xe({
|
|
50
50
|
elementId: `vue-ui-gauge_${m.value}`,
|
|
51
51
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
52
|
-
}), de =
|
|
52
|
+
}), de = g(() => ze(e.value.customPalette)), b = g(() => {
|
|
53
53
|
if (!z.value || se(r.dataset.series || {}))
|
|
54
54
|
return {
|
|
55
55
|
value: 0,
|
|
@@ -91,7 +91,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
91
91
|
J(() => r.dataset.value, () => {
|
|
92
92
|
Z(r.dataset.value);
|
|
93
93
|
});
|
|
94
|
-
const d =
|
|
94
|
+
const d = g(() => {
|
|
95
95
|
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (M.value - w.value)) + Math.PI;
|
|
96
96
|
return {
|
|
97
97
|
x1: a,
|
|
@@ -99,10 +99,10 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
99
99
|
x2: a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l),
|
|
100
100
|
y2: s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l)
|
|
101
101
|
};
|
|
102
|
-
}), H =
|
|
103
|
-
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (M.value - w.value)) + Math.PI, n = a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l), P = s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l), k = t.value.pointerRadius, ye = a + k * Math.cos(l + Math.PI / 2),
|
|
104
|
-
return isNaN(n) ? null : `M ${n},${P} ${ye},${
|
|
105
|
-
}), Y =
|
|
102
|
+
}), H = g(() => {
|
|
103
|
+
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (M.value - w.value)) + Math.PI, n = a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l), P = s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l), k = t.value.pointerRadius, ye = a + k * Math.cos(l + Math.PI / 2), pe = s + k * Math.sin(l + Math.PI / 2), ge = a + k * Math.cos(l - Math.PI / 2), me = s + k * Math.sin(l - Math.PI / 2);
|
|
104
|
+
return isNaN(n) ? null : `M ${n},${P} ${ye},${pe} ${ge},${me} Z`;
|
|
105
|
+
}), Y = g(() => {
|
|
106
106
|
for (let a = 0; a < b.value.series.length; a += 1) {
|
|
107
107
|
const { color: s, from: l, to: n } = b.value.series[a];
|
|
108
108
|
if (v.value >= l && v.value <= n)
|
|
@@ -180,7 +180,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
180
180
|
}
|
|
181
181
|
P();
|
|
182
182
|
}
|
|
183
|
-
const u =
|
|
183
|
+
const u = g(() => {
|
|
184
184
|
const a = e.value.responsive ? Math.min(t.value.width, t.value.height) : t.value.width;
|
|
185
185
|
return {
|
|
186
186
|
arcs: a / 2.5,
|
|
@@ -189,7 +189,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
189
189
|
ratingBase: e.value.responsive ? t.value.height / 2 + t.value.height / 4 : t.value.height * 0.9,
|
|
190
190
|
pointerSize: e.value.responsive ? Math.min(t.value.width, t.value.height) / 3 : t.value.width / 3.2
|
|
191
191
|
};
|
|
192
|
-
}), _ =
|
|
192
|
+
}), _ = g(() => oe(
|
|
193
193
|
{ series: b.value.series },
|
|
194
194
|
t.value.width / 2,
|
|
195
195
|
u.value.base,
|
|
@@ -201,7 +201,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
201
201
|
180,
|
|
202
202
|
109.9495,
|
|
203
203
|
40 * t.value.trackSize
|
|
204
|
-
)), he =
|
|
204
|
+
)), he = g(() => oe(
|
|
205
205
|
{ series: b.value.series },
|
|
206
206
|
t.value.width / 2,
|
|
207
207
|
u.value.base,
|
|
@@ -247,11 +247,11 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
247
247
|
}
|
|
248
248
|
}, {
|
|
249
249
|
default: I(() => [
|
|
250
|
-
e.value.translations.base && N.dataset.base ? (o(), i("span", Ae, S(e.value.translations.base) + ": " + S(N.dataset.base), 1)) :
|
|
250
|
+
e.value.translations.base && N.dataset.base ? (o(), i("span", Ae, S(e.value.translations.base) + ": " + S(N.dataset.base), 1)) : p("", !0)
|
|
251
251
|
]),
|
|
252
252
|
_: 1
|
|
253
253
|
}, 8, ["config"]))
|
|
254
|
-
], 512)) :
|
|
254
|
+
], 512)) : p("", !0),
|
|
255
255
|
e.value.userOptions.show && z.value ? (o(), G(Ne, {
|
|
256
256
|
ref_key: "details",
|
|
257
257
|
ref: ve,
|
|
@@ -268,6 +268,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
268
268
|
isFullscreen: F.value,
|
|
269
269
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
270
270
|
chartElement: C.value,
|
|
271
|
+
position: e.value.userOptions.position,
|
|
271
272
|
onToggleFullscreen: fe,
|
|
272
273
|
onGeneratePdf: c(V),
|
|
273
274
|
onGenerateImage: c(q)
|
|
@@ -293,7 +294,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
293
294
|
]),
|
|
294
295
|
key: "2"
|
|
295
296
|
} : void 0
|
|
296
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
297
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
|
|
297
298
|
z.value ? (o(), i("svg", {
|
|
298
299
|
key: 2,
|
|
299
300
|
xmlns: c(Me),
|
|
@@ -352,7 +353,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
352
353
|
stroke: "none",
|
|
353
354
|
"stroke-linecap": "round",
|
|
354
355
|
filter: `url(#blur_${m.value})`
|
|
355
|
-
}, null, 8, qe))), 128)) :
|
|
356
|
+
}, null, 8, qe))), 128)) : p("", !0),
|
|
356
357
|
(o(!0), i(R, null, E(_.value, (l, n) => (o(), i("text", {
|
|
357
358
|
x: c(X)({
|
|
358
359
|
centerX: t.value.width / 2,
|
|
@@ -394,7 +395,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
394
395
|
fill: e.value.style.chart.layout.markers.color
|
|
395
396
|
}, S(M.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Ke),
|
|
396
397
|
e.value.style.chart.layout.pointer.type === "rounded" ? (o(), i("g", Ze, [
|
|
397
|
-
isNaN(d.value.x2) ?
|
|
398
|
+
isNaN(d.value.x2) ? p("", !0) : (o(), i("line", {
|
|
398
399
|
key: 0,
|
|
399
400
|
x1: d.value.x1,
|
|
400
401
|
y1: d.value.y1,
|
|
@@ -404,7 +405,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
404
405
|
"stroke-width": t.value.pointerStrokeWidth,
|
|
405
406
|
"stroke-linecap": "round"
|
|
406
407
|
}, null, 8, Je)),
|
|
407
|
-
isNaN(d.value.x2) ?
|
|
408
|
+
isNaN(d.value.x2) ? p("", !0) : (o(), i("line", {
|
|
408
409
|
key: 1,
|
|
409
410
|
x1: d.value.x1,
|
|
410
411
|
y1: d.value.y1,
|
|
@@ -424,7 +425,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
424
425
|
"stroke-linecap": "round",
|
|
425
426
|
"stroke-width": t.value.pointerStrokeWidth * 0.3,
|
|
426
427
|
filter: `url(#blur_${m.value})`
|
|
427
|
-
}, null, 8, et)) :
|
|
428
|
+
}, null, 8, et)) : p("", !0)
|
|
428
429
|
])) : (o(), i("g", tt, [
|
|
429
430
|
H.value ? (o(), i("path", {
|
|
430
431
|
key: 0,
|
|
@@ -433,7 +434,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
433
434
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
434
435
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
435
436
|
"stroke-linejoin": "round"
|
|
436
|
-
}, null, 8, at)) :
|
|
437
|
+
}, null, 8, at)) : p("", !0)
|
|
437
438
|
])),
|
|
438
439
|
f("circle", {
|
|
439
440
|
cx: t.value.width / 2,
|
|
@@ -461,11 +462,11 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
461
462
|
})
|
|
462
463
|
)), 9, st),
|
|
463
464
|
x(a.$slots, "svg", { svg: t.value }, void 0, !0)
|
|
464
|
-
], 14, je)) :
|
|
465
|
+
], 14, je)) : p("", !0),
|
|
465
466
|
a.$slots.watermark ? (o(), i("div", rt, [
|
|
466
467
|
x(a.$slots, "watermark", te(ae({ isPrinting: c(W) || c(T) })), void 0, !0)
|
|
467
|
-
])) :
|
|
468
|
-
z.value ?
|
|
468
|
+
])) : p("", !0),
|
|
469
|
+
z.value ? p("", !0) : (o(), G(Ye, {
|
|
469
470
|
key: 4,
|
|
470
471
|
config: {
|
|
471
472
|
type: "gauge",
|
|
@@ -485,7 +486,7 @@ const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue =
|
|
|
485
486
|
], 512)
|
|
486
487
|
], 14, Ee));
|
|
487
488
|
}
|
|
488
|
-
}, yt = /* @__PURE__ */ Re(ot, [["__scopeId", "data-v-
|
|
489
|
+
}, yt = /* @__PURE__ */ Re(ot, [["__scopeId", "data-v-f3c9ca1e"]]);
|
|
489
490
|
export {
|
|
490
491
|
yt as default
|
|
491
492
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-U4mCr8P0.cjs"),m=require("./useNestedProp-CgUQgTyB.cjs"),k=["viewBox","width"],_={key:0},p=["id"],v=["stop-color"],g=["stop-color"],y=["stroke"],C=["stroke"],N=["width","fill"],w=["fill"],x={key:0},B=["id"],E=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),V=[E],b=["stroke"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["filter"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["fill"],$={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const o=i,{vue_ui_gizmo:f}=a.useConfig(),n=e.ref(a.createUid());e.onMounted(()=>{c()});function c(){!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({get:()=>d(),set:r=>r});function d(){return m.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,r=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,h=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:h}});return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",_,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,v),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,g)],8,p)])):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,C),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,N),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,w)):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",x,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},V,8,B)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,b),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,L),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.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,G)],8,z)):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,F)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,k))}};exports.default=$;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as L, c as b, e as N, i as p, f as k } from "./index-
|
|
3
|
-
import { u as $ } from "./useNestedProp-
|
|
2
|
+
import { u as L, c as b, e as N, i as p, f as k } from "./index-CP7GYbDW.js";
|
|
3
|
+
import { u as $ } from "./useNestedProp-Dfz8QNDn.js";
|
|
4
4
|
const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"], I = ["stop-color"], M = ["stroke"], U = ["stroke"], V = ["width", "fill"], E = ["fill"], O = { key: 0 }, S = ["id"], A = /* @__PURE__ */ t("feGaussianBlur", {
|
|
5
5
|
in: "SourceGraphic",
|
|
6
6
|
stdDeviation: 1
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useCssVars as Me, computed as h, ref as
|
|
2
|
-
import { u as Pe, o as Ie, e as xe, c as le, t as Be, L as Re, g as Ee, M as ae, X as Ge, F as oe, i as F, f as N, v as z, x as Xe, y as He, q as De, r as Ue } from "./index-
|
|
3
|
-
import { _ as Ye } from "./Title-
|
|
4
|
-
import { u as je, U as We } from "./usePrinter-
|
|
5
|
-
import { _ as qe } from "./Tooltip-
|
|
6
|
-
import Ke from "./vue-ui-skeleton-
|
|
7
|
-
import Je from "./BaseIcon-
|
|
8
|
-
import Qe from "./vue-ui-accordion-
|
|
9
|
-
import { u as we } from "./useNestedProp-
|
|
1
|
+
import { useCssVars as Me, computed as h, ref as p, watch as be, onMounted as Se, openBlock as s, createElementBlock as n, normalizeClass as U, normalizeStyle as m, createBlock as Y, createCommentVNode as c, unref as i, createSlots as Ne, withCtx as k, renderSlot as x, normalizeProps as j, guardReactiveProps as W, Fragment as A, renderList as S, createElementVNode as u, toDisplayString as f, createVNode as me, withKeys as Oe, createTextVNode as Fe, nextTick as Ve } from "vue";
|
|
2
|
+
import { u as Pe, o as Ie, e as xe, c as le, t as Be, L as Re, g as Ee, M as ae, X as Ge, F as oe, i as F, f as N, v as z, x as Xe, y as He, q as De, r as Ue } from "./index-CP7GYbDW.js";
|
|
3
|
+
import { _ as Ye } from "./Title-BITuZ5CT.js";
|
|
4
|
+
import { u as je, U as We } from "./usePrinter-BfETb5Ie.js";
|
|
5
|
+
import { _ as qe } from "./Tooltip-DDBocDY4.js";
|
|
6
|
+
import Ke from "./vue-ui-skeleton-BAQjFiop.js";
|
|
7
|
+
import Je from "./BaseIcon-D2n64yMC.js";
|
|
8
|
+
import Qe from "./vue-ui-accordion-DZSSaEp4.js";
|
|
9
|
+
import { u as we } from "./useNestedProp-Dfz8QNDn.js";
|
|
10
10
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const et = ["id"], tt = {
|
|
12
12
|
key: 0,
|
|
13
13
|
style: "width:100%;background:transparent"
|
|
14
|
-
}, lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], ot = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], st = ["font-size", "font-weight", "fill", "x", "y"], ut = ["x", "y", "width", "height", "onMouseover"], nt = { key: 0 }, it = ["font-size", "fill", "x", "y", "font-weight"], rt = { key: 0 }, vt = ["text-anchor", "font-size", "fill", "font-weight", "transform"], dt = { key: 1 }, yt = ["x", "y", "width", "height", "stroke", "stroke-width"], ct = { key: 2 }, ht = ["id"],
|
|
14
|
+
}, lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], ot = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], st = ["font-size", "font-weight", "fill", "x", "y"], ut = ["x", "y", "width", "height", "onMouseover"], nt = { key: 0 }, it = ["font-size", "fill", "x", "y", "font-weight"], rt = { key: 0 }, vt = ["text-anchor", "font-size", "fill", "font-weight", "transform"], dt = { key: 1 }, yt = ["x", "y", "width", "height", "stroke", "stroke-width"], ct = { key: 2 }, ht = ["id"], pt = ["stop-color"], gt = ["stop-color"], ft = ["x", "y", "font-size", "fill"], bt = ["x", "y", "height", "rx", "fill"], mt = ["x", "y", "font-size", "fill"], xt = ["stroke", "x1", "x2", "y1", "y2"], wt = ["fill", "d"], _t = { key: 3 }, kt = {
|
|
15
15
|
id: "colorScaleHorizontal",
|
|
16
16
|
x1: "0%",
|
|
17
17
|
x2: "100%",
|
|
@@ -39,14 +39,14 @@ const et = ["id"], tt = {
|
|
|
39
39
|
setup(G, { expose: _e }) {
|
|
40
40
|
const r = G;
|
|
41
41
|
Me((t) => ({
|
|
42
|
-
|
|
42
|
+
52850410: t.tdo
|
|
43
43
|
}));
|
|
44
44
|
const { vue_ui_heatmap: ke } = Pe(), X = h(() => !!r.dataset && r.dataset.length);
|
|
45
45
|
Ie(r.dataset) && xe({
|
|
46
46
|
componentName: "VueUiHeatmap",
|
|
47
47
|
type: "dataset"
|
|
48
48
|
});
|
|
49
|
-
const V =
|
|
49
|
+
const V = p(le()), q = p(null), $e = p(null), K = p(!1), J = p(""), se = p(void 0), P = p(null), ue = p(0), ne = p(null), ie = p(!1), re = p(0), e = h({
|
|
50
50
|
get: () => ve(),
|
|
51
51
|
set: (t) => t
|
|
52
52
|
});
|
|
@@ -71,7 +71,7 @@ const et = ["id"], tt = {
|
|
|
71
71
|
const { isPrinting: de, isImaging: ye, generatePdf: ce, generateImage: he } = je({
|
|
72
72
|
elementId: `heatmap__${V.value}`,
|
|
73
73
|
fileName: e.value.style.title.text || "vue-ui-heatmap"
|
|
74
|
-
}), w =
|
|
74
|
+
}), w = p({
|
|
75
75
|
showTable: e.value.table.show,
|
|
76
76
|
showTooltip: e.value.style.tooltip.show
|
|
77
77
|
}), Ce = h(() => e.value.table.responsiveBreakpoint);
|
|
@@ -143,10 +143,10 @@ const et = ["id"], tt = {
|
|
|
143
143
|
xAxisName: $.value.xLabels[o],
|
|
144
144
|
id: `vue-data-ui-heatmap-cell-${le()}`
|
|
145
145
|
})
|
|
146
|
-
})))), C =
|
|
146
|
+
})))), C = p(null), I = p(null);
|
|
147
147
|
function Ae(t, a, o, v) {
|
|
148
148
|
P.value = { x: o, y: v };
|
|
149
|
-
const { value: y, yAxisName:
|
|
149
|
+
const { value: y, yAxisName: g, xAxisName: L, id: Te } = t;
|
|
150
150
|
se.value = Te, C.value = y, I.value = {
|
|
151
151
|
datapoint: t,
|
|
152
152
|
seriesIndex: a,
|
|
@@ -165,7 +165,7 @@ const et = ["id"], tt = {
|
|
|
165
165
|
seriesIndex: a,
|
|
166
166
|
series: D.value,
|
|
167
167
|
config: e.value
|
|
168
|
-
}) : (ee += `<div>${
|
|
168
|
+
}) : (ee += `<div>${g} ${L ? `${L}` : ""}</div>`, ee += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${ae(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, T.value, b.value, y)}">⬤</span><span>${isNaN(y) ? "-" : F(
|
|
169
169
|
e.value.style.layout.cells.value.formatter,
|
|
170
170
|
y,
|
|
171
171
|
N({
|
|
@@ -184,24 +184,24 @@ const et = ["id"], tt = {
|
|
|
184
184
|
})), a = r.dataset.map((o) => o.values);
|
|
185
185
|
return { head: t, body: a };
|
|
186
186
|
});
|
|
187
|
-
function
|
|
187
|
+
function pe() {
|
|
188
188
|
Ve(() => {
|
|
189
|
-
const t = ["", ...r.dataset.map((y,
|
|
189
|
+
const t = ["", ...r.dataset.map((y, g) => y.name)], a = [];
|
|
190
190
|
for (let y = 0; y < $.value.xLabels.length; y += 1) {
|
|
191
|
-
const
|
|
191
|
+
const g = [$.value.xLabels[y]];
|
|
192
192
|
for (let L = 0; L < r.dataset.length; L += 1)
|
|
193
|
-
|
|
194
|
-
a.push(
|
|
193
|
+
g.push([r.dataset[L].values[y]]);
|
|
194
|
+
a.push(g);
|
|
195
195
|
}
|
|
196
196
|
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(a), v = De(o);
|
|
197
197
|
Ue({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
const E =
|
|
200
|
+
const E = p(!1);
|
|
201
201
|
function ze(t) {
|
|
202
202
|
E.value = t, ue.value += 1;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function ge() {
|
|
205
205
|
w.value.showTable = !w.value.showTable;
|
|
206
206
|
}
|
|
207
207
|
function fe() {
|
|
@@ -209,9 +209,9 @@ const et = ["id"], tt = {
|
|
|
209
209
|
}
|
|
210
210
|
return _e({
|
|
211
211
|
generatePdf: ce,
|
|
212
|
-
generateCsv:
|
|
212
|
+
generateCsv: pe,
|
|
213
213
|
generateImage: he,
|
|
214
|
-
toggleTable:
|
|
214
|
+
toggleTable: ge,
|
|
215
215
|
toggleTooltip: fe
|
|
216
216
|
}), (t, a) => (s(), n("div", {
|
|
217
217
|
ref_key: "heatmapChart",
|
|
@@ -254,11 +254,12 @@ const et = ["id"], tt = {
|
|
|
254
254
|
isTooltip: w.value.showTooltip,
|
|
255
255
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
256
256
|
chartElement: q.value,
|
|
257
|
+
position: e.value.userOptions.position,
|
|
257
258
|
onToggleFullscreen: ze,
|
|
258
259
|
onGeneratePdf: i(ce),
|
|
259
|
-
onGenerateCsv:
|
|
260
|
+
onGenerateCsv: pe,
|
|
260
261
|
onGenerateImage: i(he),
|
|
261
|
-
onToggleTable:
|
|
262
|
+
onToggleTable: ge,
|
|
262
263
|
onToggleTooltip: fe
|
|
263
264
|
}, Ne({ _: 2 }, [
|
|
264
265
|
t.$slots.optionTooltip ? {
|
|
@@ -303,7 +304,7 @@ const et = ["id"], tt = {
|
|
|
303
304
|
]),
|
|
304
305
|
key: "5"
|
|
305
306
|
} : void 0
|
|
306
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
307
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
307
308
|
X.value ? (s(), n("svg", {
|
|
308
309
|
key: 2,
|
|
309
310
|
xmlns: i(Ge),
|
|
@@ -312,9 +313,9 @@ const et = ["id"], tt = {
|
|
|
312
313
|
style: m(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
313
314
|
}, [
|
|
314
315
|
(s(!0), n(A, null, S(D.value, (o, v) => (s(), n("g", null, [
|
|
315
|
-
(s(!0), n(A, null, S(o.temperatures, (y,
|
|
316
|
+
(s(!0), n(A, null, S(o.temperatures, (y, g) => (s(), n("g", null, [
|
|
316
317
|
u("rect", {
|
|
317
|
-
x: l.value.left + d.value.width *
|
|
318
|
+
x: l.value.left + d.value.width * g + e.value.style.layout.cells.spacing / 2,
|
|
318
319
|
y: l.value.top + d.value.height * v + e.value.style.layout.cells.spacing / 2,
|
|
319
320
|
width: d.value.width - e.value.style.layout.cells.spacing,
|
|
320
321
|
height: d.value.height - e.value.style.layout.cells.spacing,
|
|
@@ -323,7 +324,7 @@ const et = ["id"], tt = {
|
|
|
323
324
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
324
325
|
}, null, 8, at),
|
|
325
326
|
u("rect", {
|
|
326
|
-
x: l.value.left + d.value.width *
|
|
327
|
+
x: l.value.left + d.value.width * g + e.value.style.layout.cells.spacing / 2,
|
|
327
328
|
y: l.value.top + d.value.height * v + e.value.style.layout.cells.spacing / 2,
|
|
328
329
|
width: d.value.width - e.value.style.layout.cells.spacing,
|
|
329
330
|
height: d.value.height - e.value.style.layout.cells.spacing,
|
|
@@ -337,7 +338,7 @@ const et = ["id"], tt = {
|
|
|
337
338
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
338
339
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
339
340
|
fill: i(oe)(y.color),
|
|
340
|
-
x: l.value.left + d.value.width *
|
|
341
|
+
x: l.value.left + d.value.width * g + d.value.width / 2,
|
|
341
342
|
y: l.value.top + d.value.height * v + d.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
342
343
|
}, f(i(F)(
|
|
343
344
|
e.value.style.layout.cells.value.formatter,
|
|
@@ -351,15 +352,15 @@ const et = ["id"], tt = {
|
|
|
351
352
|
{ datapoint: y }
|
|
352
353
|
)), 9, st)) : c("", !0)
|
|
353
354
|
]))), 256)),
|
|
354
|
-
(s(!0), n(A, null, S(o.temperatures, (y,
|
|
355
|
+
(s(!0), n(A, null, S(o.temperatures, (y, g) => (s(), n("g", null, [
|
|
355
356
|
u("rect", {
|
|
356
|
-
x: l.value.left + d.value.width *
|
|
357
|
+
x: l.value.left + d.value.width * g,
|
|
357
358
|
y: l.value.top + d.value.height * v,
|
|
358
359
|
width: d.value.width,
|
|
359
360
|
height: d.value.height,
|
|
360
361
|
fill: "transparent",
|
|
361
362
|
stroke: "none",
|
|
362
|
-
onMouseover: (L) => Ae(y, v, l.value.left + d.value.width *
|
|
363
|
+
onMouseover: (L) => Ae(y, v, l.value.left + d.value.width * g, l.value.top + d.value.height * v),
|
|
363
364
|
onMouseout: a[0] || (a[0] = (L) => {
|
|
364
365
|
K.value = !1, se.value = void 0, C.value = null, P.value = null;
|
|
365
366
|
})
|
|
@@ -411,11 +412,11 @@ const et = ["id"], tt = {
|
|
|
411
412
|
u("stop", {
|
|
412
413
|
offset: "0%",
|
|
413
414
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
414
|
-
}, null, 8,
|
|
415
|
+
}, null, 8, pt),
|
|
415
416
|
u("stop", {
|
|
416
417
|
offset: "100%",
|
|
417
418
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
418
|
-
}, null, 8,
|
|
419
|
+
}, null, 8, gt)
|
|
419
420
|
], 8, ht)
|
|
420
421
|
]),
|
|
421
422
|
u("text", {
|
|
@@ -656,9 +657,9 @@ const et = ["id"], tt = {
|
|
|
656
657
|
}, [
|
|
657
658
|
u("div", Vt, f(o), 1)
|
|
658
659
|
], 12, Ft),
|
|
659
|
-
(s(!0), n(A, null, S(G.dataset, (y,
|
|
660
|
+
(s(!0), n(A, null, S(G.dataset, (y, g) => (s(), n("td", {
|
|
660
661
|
class: "vue-ui-data-table__tbody__td",
|
|
661
|
-
"data-cell": G.dataset[
|
|
662
|
+
"data-cell": G.dataset[g].name,
|
|
662
663
|
style: m(`outline:${e.value.table.td.outline}`)
|
|
663
664
|
}, [
|
|
664
665
|
u("div", It, f(isNaN(y.values[v]) ? "-" : i(N)({ p: e.value.style.layout.dataLabels.prefix, v: y.values[v], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
@@ -673,7 +674,7 @@ const et = ["id"], tt = {
|
|
|
673
674
|
}, 8, ["config"])) : c("", !0)
|
|
674
675
|
], 14, et));
|
|
675
676
|
}
|
|
676
|
-
}, qt = /* @__PURE__ */ Ze(Bt, [["__scopeId", "data-v-
|
|
677
|
+
}, qt = /* @__PURE__ */ Ze(Bt, [["__scopeId", "data-v-ba280e32"]]);
|
|
677
678
|
export {
|
|
678
679
|
qt as default
|
|
679
680
|
};
|