vue-data-ui 2.6.18 → 2.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/{Arrow-Ci41JBXA.js → Arrow-C9wt_iwE.js} +1 -1
- package/dist/{Arrow-C-haYOvL.cjs → Arrow-mU42Peiq.cjs} +1 -1
- package/dist/{BaseIcon-D0Ifzd3J.js → BaseIcon-CR8s5lLC.js} +1 -1
- package/dist/{BaseIcon-Brc1PN_Z.cjs → BaseIcon-DMhDupLt.cjs} +1 -1
- package/dist/{DataTable-BH56SPdO.js → DataTable-CMUyDj6S.js} +2 -2
- package/dist/{DataTable-AQsQHTem.cjs → DataTable-Qba16zLZ.cjs} +1 -1
- package/dist/{Legend-w7VxyGN0.js → Legend-CaMKYW-V.js} +2 -2
- package/dist/{Legend-CNiGY3Yx.cjs → Legend-EauKcdAx.cjs} +1 -1
- package/dist/{PackageVersion-D1edJun6.js → PackageVersion-CURzw4q1.js} +1 -1
- package/dist/{PackageVersion-DO_17qoR.cjs → PackageVersion-Vv7wNIAl.cjs} +1 -1
- package/dist/{PenAndPaper-DWnLI5jM.js → PenAndPaper-CjiJra09.js} +3 -3
- package/dist/{PenAndPaper-BPAfK8a6.cjs → PenAndPaper-DSEAEpTs.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-Bnwg64-7.js → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-BzSorLrT.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-Cw1RBp7H.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-DB_DsgPX.cjs} +1 -1
- package/dist/{Shape-RfSE_FzV.js → Shape-F5v4f45p.js} +1 -1
- package/dist/{Shape-J26jxMZ5.cjs → Shape-gLknKTb6.cjs} +1 -1
- package/dist/{Slicer-oASHP3Lx.cjs → Slicer-CVVRixhP.cjs} +1 -1
- package/dist/{Slicer-DMdxtlpr.js → Slicer-DQp19cm1.js} +2 -2
- package/dist/{Title-xfHZTDT9.js → Title-CUHNtIyE.js} +1 -1
- package/dist/{Title-ypQseB5s.cjs → Title-m1x23s4w.cjs} +1 -1
- package/dist/{Tooltip-DQZLR6XD.cjs → Tooltip-BXY2gKbA.cjs} +1 -1
- package/dist/{Tooltip-CF9cKbnr.js → Tooltip-BuAQ8HVL.js} +1 -1
- package/dist/{index-CkqI12gj.cjs → index-CmhvuQro.cjs} +1 -1
- package/dist/{index-Df45PKBw.js → index-Cq7-va_5.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BaSIdRPe.js → useNestedProp-BEyJNlaO.js} +1 -1
- package/dist/{useNestedProp-B5QzQ7cl.cjs → useNestedProp-CnH-XcZU.cjs} +1 -1
- package/dist/usePrinter-DhZH4pcR.cjs +1 -0
- package/dist/{usePrinter-MC5pKUx5.js → usePrinter-jRjc8Naz.js} +72 -70
- package/dist/{vue-data-ui-BiXf5MnL.js → vue-data-ui-BPSCRfcK.js} +61 -61
- package/dist/{vue-data-ui--Yx3VAj0.cjs → vue-data-ui-DD5SV4SW.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BXW-ZMgi.cjs → vue-ui-3d-bar-BlCSdagh.cjs} +2 -2
- package/dist/{vue-ui-3d-bar-DBJJ2kqD.js → vue-ui-3d-bar-TB1XdncJ.js} +105 -98
- package/dist/{vue-ui-accordion-4ngKbp5a.cjs → vue-ui-accordion-C3Ljak65.cjs} +1 -1
- package/dist/{vue-ui-accordion-BbCvey8w.js → vue-ui-accordion-vAQ_LLoP.js} +3 -3
- package/dist/{vue-ui-age-pyramid-04E6Wqie.js → vue-ui-age-pyramid-BUWoRp_B.js} +75 -68
- package/dist/{vue-ui-age-pyramid-Cpi72E7Q.cjs → vue-ui-age-pyramid-CrDKpPil.cjs} +1 -1
- package/dist/{vue-ui-annotator-tv-3u5J-.js → vue-ui-annotator-BVE-xqSy.js} +1 -1
- package/dist/{vue-ui-annotator-BzdyBaoy.cjs → vue-ui-annotator-wjsB7Ihy.cjs} +1 -1
- package/dist/{vue-ui-bullet-B-UjWb-f.cjs → vue-ui-bullet-BcU0lGMw.cjs} +4 -4
- package/dist/{vue-ui-bullet-B0jpb3iz.js → vue-ui-bullet-Cj4GC_-F.js} +145 -138
- package/dist/{vue-ui-candlestick-Cx6UAvss.js → vue-ui-candlestick-C2hAp3Fi.js} +115 -108
- package/dist/{vue-ui-candlestick-DEK3P-Tu.cjs → vue-ui-candlestick-n--kSbN7.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BPvJKE6W.cjs → vue-ui-carousel-table-CU96d16y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bk6LMH1D.js → vue-ui-carousel-table-Do1uzI_G.js} +130 -123
- package/dist/{vue-ui-chestnut-DKesYDji.cjs → vue-ui-chestnut-DJq8IWIL.cjs} +2 -2
- package/dist/{vue-ui-chestnut-BLYeNCKN.js → vue-ui-chestnut-fb3ioT4a.js} +131 -124
- package/dist/{vue-ui-circle-pack-DF8CPgPU.js → vue-ui-circle-pack-DByIHOMA.js} +165 -158
- package/dist/{vue-ui-circle-pack-D_2k6N20.cjs → vue-ui-circle-pack-DnwKX38S.cjs} +1 -1
- package/dist/{vue-ui-cursor-B29UJWQo.cjs → vue-ui-cursor-DSCiOK2l.cjs} +1 -1
- package/dist/{vue-ui-cursor-DySRIo_p.js → vue-ui-cursor-scYLETJY.js} +2 -2
- package/dist/{vue-ui-dashboard-5JkE1uRk.cjs → vue-ui-dashboard-BBDfkeCW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CHO6UMlJ.js → vue-ui-dashboard-DjxJGI1j.js} +2 -2
- package/dist/{vue-ui-digits-D5h4HAzq.js → vue-ui-digits-7bQAdMhs.js} +2 -2
- package/dist/{vue-ui-digits-DvANBwd7.cjs → vue-ui-digits-Cmn1NNzQ.cjs} +1 -1
- package/dist/{vue-ui-donut-DLaBSyI4.cjs → vue-ui-donut-C291KoIU.cjs} +1 -1
- package/dist/{vue-ui-donut-rVvCGOGk.js → vue-ui-donut-RJQUTfyW.js} +117 -110
- package/dist/{vue-ui-donut-evolution-DjGFFyxj.js → vue-ui-donut-evolution-DPW_ITH8.js} +164 -157
- package/dist/{vue-ui-donut-evolution-B06eelN-.cjs → vue-ui-donut-evolution-Dp15D88c.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B3AlzGCf.js → vue-ui-dumbbell-B8Zm8EVd.js} +74 -67
- package/dist/{vue-ui-dumbbell-9Oy-W4-B.cjs → vue-ui-dumbbell-BdEUvUV7.cjs} +2 -2
- package/dist/{vue-ui-flow-1eYWWjX-.js → vue-ui-flow-BNIgPNGy.js} +177 -170
- package/dist/{vue-ui-flow-BakKHKRq.cjs → vue-ui-flow-BukV6_Zl.cjs} +1 -1
- package/dist/{vue-ui-funnel-uSID1YS9.js → vue-ui-funnel-BrPqtGct.js} +128 -121
- package/dist/{vue-ui-funnel-IbAUMuoN.cjs → vue-ui-funnel-CIgZpg3T.cjs} +1 -1
- package/dist/{vue-ui-galaxy-3ksrzeio.js → vue-ui-galaxy-D1IYOUwX.js} +77 -70
- package/dist/{vue-ui-galaxy-BFGRkm7x.cjs → vue-ui-galaxy-FGqZ4tWB.cjs} +1 -1
- package/dist/{vue-ui-gauge-DgPnw4Q5.cjs → vue-ui-gauge-B00JvBFF.cjs} +1 -1
- package/dist/{vue-ui-gauge-DxUp_-uc.js → vue-ui-gauge-BsOXy5MV.js} +152 -145
- package/dist/{vue-ui-gizmo-Dw9HiCwa.js → vue-ui-gizmo-Cyl89etd.js} +3 -3
- package/dist/{vue-ui-gizmo-4T51Z8I8.cjs → vue-ui-gizmo-D_uv6qkV.cjs} +1 -1
- package/dist/vue-ui-heatmap-CGg2_xWH.cjs +1 -0
- package/dist/{vue-ui-heatmap-CwtUNQu0.js → vue-ui-heatmap-CgF4n8Bh.js} +139 -132
- package/dist/{vue-ui-history-plot-CC7sYtWu.cjs → vue-ui-history-plot-DR11Ips0.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BaV1bX_U.js → vue-ui-history-plot-Rdjb-yOk.js} +121 -114
- package/dist/{vue-ui-kpi-DiuK6mKA.js → vue-ui-kpi-COfnJm-X.js} +3 -3
- package/dist/{vue-ui-kpi-DxXlf8be.cjs → vue-ui-kpi-CbAgFb-9.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DQ_oXH1a.cjs → vue-ui-mini-loader-CizZv79e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Kwzi6dLA.js → vue-ui-mini-loader-DNM7jU2W.js} +2 -2
- package/dist/{vue-ui-molecule-Bfhay2Cw.cjs → vue-ui-molecule-CiOIVjFk.cjs} +1 -1
- package/dist/{vue-ui-molecule-BMiNGYBh.js → vue-ui-molecule-Cv6jp9D_.js} +249 -242
- package/dist/{vue-ui-mood-radar-j2_LSQyN.js → vue-ui-mood-radar-B-VE2pVS.js} +111 -104
- package/dist/{vue-ui-mood-radar-C6CXwCzk.cjs → vue-ui-mood-radar-CoHouhrl.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CVsN5wLZ.js → vue-ui-nested-donuts-D-7tn_Qe.js} +116 -109
- package/dist/{vue-ui-nested-donuts-BEb5qHRa.cjs → vue-ui-nested-donuts-ITcu4gJW.cjs} +2 -2
- package/dist/{vue-ui-onion-DlqFOcMu.js → vue-ui-onion-B4SgCj8L.js} +143 -136
- package/dist/{vue-ui-onion-C-y9Jsfq.cjs → vue-ui-onion-fzXsWjjI.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-t2isL1XO.cjs → vue-ui-parallel-coordinate-plot-CTFOY5xi.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxwECisr.js → vue-ui-parallel-coordinate-plot-CpQOyh-W.js} +112 -105
- package/dist/{vue-ui-quadrant-DMYZ6Rbh.cjs → vue-ui-quadrant-ByRNr-XD.cjs} +1 -1
- package/dist/{vue-ui-quadrant-rVy92h_8.js → vue-ui-quadrant-DhODDM5V.js} +111 -104
- package/dist/{vue-ui-quick-chart-CE-Qg_jo.cjs → vue-ui-quick-chart-BsQAMw9M.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-DkUCMlp7.js → vue-ui-quick-chart-DpeGH277.js} +194 -187
- package/dist/{vue-ui-radar-j-mDD4Dn.js → vue-ui-radar-CWkrni4Y.js} +100 -93
- package/dist/{vue-ui-radar-DkL4kk1W.cjs → vue-ui-radar-D-qttZKw.cjs} +1 -1
- package/dist/{vue-ui-rating-K_pyDN_G.cjs → vue-ui-rating-CY25IY75.cjs} +1 -1
- package/dist/{vue-ui-rating-CpvfKsg0.js → vue-ui-rating-DB4nQsuM.js} +2 -2
- package/dist/{vue-ui-relation-circle-O0d-4bj0.js → vue-ui-relation-circle-B_PxY9ZN.js} +102 -95
- package/dist/{vue-ui-relation-circle-ChFxKSb0.cjs → vue-ui-relation-circle-KDFaFqqu.cjs} +1 -1
- package/dist/{vue-ui-rings-Cv5WcU9y.cjs → vue-ui-rings-C1Upd5ja.cjs} +2 -2
- package/dist/{vue-ui-rings-DK-HgFva.js → vue-ui-rings-D5-sTr38.js} +168 -161
- package/dist/{vue-ui-scatter-BHCYJgHS.cjs → vue-ui-scatter-B-aqlIcn.cjs} +1 -1
- package/dist/{vue-ui-scatter-CTmhFDqS.js → vue-ui-scatter-C8cn3MR5.js} +85 -78
- package/dist/{vue-ui-screenshot-Ci56oD2d.cjs → vue-ui-screenshot-D9EV_KXZ.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bpp3trys.js → vue-ui-screenshot-kQRZJHLO.js} +1 -1
- package/dist/{vue-ui-skeleton-BIYEApQO.js → vue-ui-skeleton-DIrE1OTF.js} +3 -3
- package/dist/{vue-ui-skeleton-CKwwTTRF.cjs → vue-ui-skeleton-DyJu1ibj.cjs} +1 -1
- package/dist/{vue-ui-smiley-BjcqO7zZ.cjs → vue-ui-smiley-B7dNRQyO.cjs} +1 -1
- package/dist/{vue-ui-smiley-B5ufG407.js → vue-ui-smiley-DVjsjIa4.js} +2 -2
- package/dist/{vue-ui-spark-trend-qz-BtG6X.cjs → vue-ui-spark-trend-DRtaXADG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DnB59fUO.js → vue-ui-spark-trend-DsUy3aw-.js} +5 -5
- package/dist/{vue-ui-sparkbar-D_sMmqjC.js → vue-ui-sparkbar-Dm8xksUj.js} +4 -4
- package/dist/{vue-ui-sparkbar-DQ-IFuy6.cjs → vue-ui-sparkbar-x0F1llCZ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Ce5NGB8P.cjs → vue-ui-sparkgauge-B4DRMVOW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-76-wdTdR.js → vue-ui-sparkgauge-_gF53YgV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DviUQdRD.js → vue-ui-sparkhistogram-CD_0ihS9.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DcSCtmaT.cjs → vue-ui-sparkhistogram-CIMJUDlb.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C75odp3q.js → vue-ui-sparkline-Cs0h6tKI.js} +6 -6
- package/dist/{vue-ui-sparkline-_nWAin6t.cjs → vue-ui-sparkline-DzOL1IDW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-pRfBTPV0.cjs → vue-ui-sparkstackbar-BBz1lDg0.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-JgAJd1j5.js → vue-ui-sparkstackbar-Dhula5ka.js} +5 -5
- package/dist/{vue-ui-stackbar-DK4W1meR.cjs → vue-ui-stackbar-BuUtwfyC.cjs} +3 -3
- package/dist/{vue-ui-stackbar-Ctym-Udc.js → vue-ui-stackbar-DanAQnBd.js} +210 -203
- package/dist/{vue-ui-strip-plot-BU6tkAvd.cjs → vue-ui-strip-plot-95uUJ2fc.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BLmj_-sa.js → vue-ui-strip-plot-DIlGTBzG.js} +82 -75
- package/dist/{vue-ui-table-Cvt9DTpO.cjs → vue-ui-table-CDS7xlZS.cjs} +1 -1
- package/dist/{vue-ui-table-Bot5LadX.js → vue-ui-table-FKZF6cxI.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DE1swMTl.js → vue-ui-table-heatmap-BcGX_vpU.js} +63 -56
- package/dist/{vue-ui-table-heatmap-fALEi4E_.cjs → vue-ui-table-heatmap-qVmiG576.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CWGl8LJc.js → vue-ui-table-sparkline-CVY9EZ7Q.js} +90 -83
- package/dist/{vue-ui-table-sparkline-pQlBn8xE.cjs → vue-ui-table-sparkline-CnVFXbUB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-N5j1BAqA.cjs → vue-ui-thermometer-BTer1qaq.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DDOVwF0r.js → vue-ui-thermometer-tcTgQiAu.js} +113 -106
- package/dist/{vue-ui-timer-CQ9pLz7T.cjs → vue-ui-timer-CmLGKRcK.cjs} +1 -1
- package/dist/{vue-ui-timer-1zEhowHL.js → vue-ui-timer-DO_VKZHm.js} +5 -5
- package/dist/{vue-ui-tiremarks-zlgbR7II.js → vue-ui-tiremarks-BKnAiR_H.js} +76 -69
- package/dist/{vue-ui-tiremarks-DOXxQKUB.cjs → vue-ui-tiremarks-BPxAgMQx.cjs} +1 -1
- package/dist/{vue-ui-treemap-ZJAvws86.cjs → vue-ui-treemap-BnKYnm8A.cjs} +1 -1
- package/dist/{vue-ui-treemap-C7oZrYCa.js → vue-ui-treemap-oE2QDc_9.js} +143 -136
- package/dist/{vue-ui-vertical-bar-rtqu_UjN.js → vue-ui-vertical-bar-BfFnXSO5.js} +119 -112
- package/dist/{vue-ui-vertical-bar-BFeF_dBM.cjs → vue-ui-vertical-bar-CHUZAnfv.cjs} +3 -3
- package/dist/{vue-ui-waffle-C0E54-ms.cjs → vue-ui-waffle-DxL_bhhX.cjs} +1 -1
- package/dist/{vue-ui-waffle-CgsNawVA.js → vue-ui-waffle-YwQAGMlZ.js} +77 -70
- package/dist/{vue-ui-wheel-StQOeYIO.cjs → vue-ui-wheel-CbEf5uhL.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cm7g8eux.js → vue-ui-wheel-gZQIZUx1.js} +104 -97
- package/dist/{vue-ui-word-cloud-qNxRgN5J.js → vue-ui-word-cloud-CXpfOcDf.js} +122 -115
- package/dist/{vue-ui-word-cloud-Bc31_IfR.cjs → vue-ui-word-cloud-Ddmhs5i-.cjs} +1 -1
- package/dist/{vue-ui-xy-wbWmX1Zh.cjs → vue-ui-xy-BFdih9uG.cjs} +2 -2
- package/dist/{vue-ui-xy-BTjOTcAY.js → vue-ui-xy-BHGNHgRk.js} +72 -65
- package/dist/{vue-ui-xy-canvas-BpyntzCo.js → vue-ui-xy-canvas-BFZjHXBj.js} +200 -193
- package/dist/{vue-ui-xy-canvas-BljjkGUh.cjs → vue-ui-xy-canvas-hM1oa-dn.cjs} +2 -2
- package/package.json +1 -1
- package/dist/usePrinter-DB2FudbZ.cjs +0 -1
- package/dist/vue-ui-heatmap-Bz5l9BbM.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as b, useSlots as z, onMounted as g, computed as c, watch as G, createElementBlock as a, openBlock as s, normalizeStyle as L, createVNode as N, createCommentVNode as i, createElementVNode as t, Fragment as p, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as $, c as F, e as B, i as k, f as m } from "./index-
|
|
3
|
-
import { u as V } from "./useNestedProp-
|
|
4
|
-
import { _ as P } from "./PackageVersion-
|
|
2
|
+
import { u as $, c as F, e as B, i as k, f as m } from "./index-Cq7-va_5.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-BEyJNlaO.js";
|
|
4
|
+
import { _ as P } from "./PackageVersion-CURzw4q1.js";
|
|
5
5
|
const U = ["viewBox", "width"], D = { key: 0 }, I = ["id"], M = ["stop-color"], S = ["stop-color"], E = ["stroke"], O = ["stroke"], A = ["width", "fill"], j = ["fill"], T = { key: 0 }, q = ["id"], H = ["stroke"], J = ["stroke", "stroke-dasharray", "stroke-dashoffset"], K = ["filter"], Q = ["stroke", "stroke-dasharray", "stroke-dashoffset"], R = ["fill"], ee = {
|
|
6
6
|
__name: "vue-ui-gizmo",
|
|
7
7
|
props: {
|
|
@@ -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-CmhvuQro.cjs"),k=require("./useNestedProp-CnH-XcZU.cjs"),p=require("./PackageVersion-Vv7wNIAl.cjs"),g=["viewBox","width"],v={key:0},_=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=["stroke"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["filter"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["fill"],P={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const{vue_ui_gizmo:f}=a.useConfig(),o=i,n=e.ref(a.createUid()),h=e.useSlots();e.onMounted(()=>{c()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});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:s=>s});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,s=>{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 r=2*Math.PI*35,m=r-o.dataset/100*r;return{dasharray:`${r} ${r}`,dashoffset:m}});return(s,r)=>(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})},[e.createVNode(p._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",v,[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,y),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,N)],8,_)])):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,C),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,V),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,w),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,x)):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",B,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},r[0]||(r[0]=[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1)]),8,E)])):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,g))}};exports.default=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CmhvuQro.cjs"),he=require("./Title-m1x23s4w.cjs"),ae=require("./usePrinter-DhZH4pcR.cjs"),fe=require("./Tooltip-BXY2gKbA.cjs"),ge=require("./vue-ui-skeleton-DyJu1ibj.cjs"),me=require("./BaseIcon-DMhDupLt.cjs"),be=require("./vue-ui-accordion-C3Ljak65.cjs"),oe=require("./useNestedProp-CnH-XcZU.cjs"),ke=require("./PackageVersion-Vv7wNIAl.cjs"),xe=require("./PenAndPaper-DSEAEpTs.cjs"),we=require("./useUserOptionState-BgepsfED.cjs"),Ce=require("./useChartAccessibility-Cm7nkzTG.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=["id"],Be={key:2,style:"width:100%;background:transparent"},Le=["xmlns","viewBox"],$e=["width","height"],Ve=["x","y","width","height","fill","stroke","stroke-width"],Ee=["x","y","width","height","fill","stroke","stroke-width"],Se=["font-size","font-weight","fill","x","y"],Ae=["x","y","width","height","onMouseover"],ze={key:0},Te=["font-size","fill","x","y","font-weight"],Oe={key:1},Me=["text-anchor","font-size","fill","font-weight","transform"],Pe={key:2},Fe=["x","y","width","height","stroke","stroke-width"],De={key:3},Ie=["id"],Re=["stop-color"],qe=["stop-color"],Ue=["x","y","font-size","fill"],He=["x","y","height","rx","fill"],Ge=["x","y","font-size","fill"],Xe=["stroke","x1","x2","y1","y2"],je=["fill","d"],We={key:4},Ye={id:"colorScaleHorizontal",x1:"0%",x2:"100%",y1:"0%",y2:"0%"},Ke=["stop-color"],Je=["stop-color"],Qe=["x","y","width","height","rx"],Ze=["x","y","font-size","fill"],et=["x","y","font-size","fill"],tt=["stroke","x1","x2","y1","y2"],lt=["fill","d"],at={key:5,class:"vue-data-ui-watermark"},ot={key:6,ref:"source",dir:"auto"},st={class:"vue-ui-data-table"},ut={key:0},nt=["data-cell"],rt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},it=["data-cell"],dt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ct={__name:"vue-ui-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(L,{expose:se}){e.useCssVars(l=>({d6e15a20:l.tdo}));const{vue_ui_heatmap:ue}=s.useConfig(),r=L,$=e.computed(()=>!!r.dataset&&r.dataset.length);s.objectIsEmpty(r.dataset)&&s.error({componentName:"VueUiHeatmap",type:"dataset"});const w=e.ref(s.createUid()),A=e.ref(null),ne=e.ref(null),z=e.ref(!1),T=e.ref(""),R=e.ref(void 0),C=e.ref(null),q=e.ref(0),U=e.ref(null),re=e.ref(null),H=e.ref(!1),G=e.ref(0),t=e.computed({get:()=>Y(),set:l=>l}),{userOptionsVisible:O,setUserOptionsVisibility:X,keepUserOptionState:j}=we.useUserOptionState({config:t.value}),{svgRef:W}=Ce.useChartAccessibility({config:t.value.style.title});function Y(){const l=oe.useNestedProp({userConfig:r.config,defaultConfig:ue});let a={};return l.theme?a={...oe.useNestedProp({userConfig:s.themes.vue_ui_heatmap[l.theme]||r.config,defaultConfig:l})}:a=l,r.config&&s.hasDeepProperty(r.config,"style.layout.dataLabels.xAxis.showOnlyAtModulo")?a.style.layout.dataLabels.xAxis.showOnlyAtModulo=r.config.style.layout.dataLabels.xAxis.showOnlyAtModulo:a.style.layout.dataLabels.xAxis.showOnlyAtModulo=null,a}e.watch(()=>r.config,l=>{t.value=Y(),O.value=!t.value.userOptions.showOnChartHover,M(),G.value+=1,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.tooltip.show},{deep:!0}),e.watch(()=>r.dataset,()=>{M()},{deep:!0});const{isPrinting:K,isImaging:J,generatePdf:Q,generateImage:Z}=ae.usePrinter({elementId:`heatmap__${w.value}`,fileName:t.value.style.title.text||"vue-ui-heatmap"}),ie=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),de=e.computed(()=>t.value.table.responsiveBreakpoint);function ce(){new ResizeObserver(a=>{a.forEach(u=>{H.value=u.contentRect.width<de.value})}).observe(U.value)}e.onMounted(M);function M(){ce()}const k=e.computed(()=>Math.max(...r.dataset.flatMap(l=>(l.values||[]).length))),y=e.computed(()=>{const l=t.value.style.layout.padding.top+t.value.style.layout.padding.bottom+r.dataset.length*t.value.style.layout.cells.height,a=t.value.style.layout.padding.left+t.value.style.layout.padding.right+(k.value<r.dataset.length?r.dataset.length:k.value)*t.value.style.layout.cells.height,u=l+(t.value.style.legend.show?t.value.style.legend.position==="right"?0:t.value.style.layout.cells.height*2:0);return{height:l,heightWithLegend:u,width:a}}),V=e.computed(()=>t.value.style.legend.position),o=e.computed(()=>({top:t.value.style.layout.padding.top,left:t.value.style.layout.padding.left,right:y.value.width-t.value.style.layout.padding.right-(V.value==="right"&&t.value.style.legend.show?92:0),bottom:y.value.height-t.value.style.layout.padding.bottom,height:y.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,width:y.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left-(V.value==="right"&&t.value.style.legend.show?92:0)})),P=e.computed(()=>i.value.height*r.dataset.length),p=e.computed(()=>Math.max(...r.dataset.flatMap(l=>l.values))),m=e.computed(()=>Math.min(...r.dataset.flatMap(l=>l.values))),b=e.computed(()=>{const l=r.dataset.flatMap(u=>u.values);return l.reduce((u,n)=>u+n,0)/l.length}),i=e.computed(()=>({width:o.value.width/k.value,height:o.value.width/(k.value<r.dataset.length?r.dataset.length:k.value)})),h=e.computed(()=>{const l=t.value.style.layout.dataLabels.yAxis.values.length?t.value.style.layout.dataLabels.yAxis.values:r.dataset.map(u=>u.name),a=t.value.style.layout.dataLabels.xAxis.values;return{yLabels:l,xLabels:a.slice(0,k.value)}}),E=e.computed(()=>(r.dataset.forEach((l,a)=>{s.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["values"]}).forEach(u=>{s.error({componentName:"VueUiHeatmap",type:"datasetSerieAttribute",property:"values",index:a})})}),r.dataset.map(l=>({...l,temperatures:(l.values||[]).map((a,u)=>a>=b.value?{side:"up",color:s.interpolateColorHex(t.value.style.layout.cells.colors.cold,t.value.style.layout.cells.colors.hot,m.value,p.value,a),ratio:Math.abs(Math.abs(a-b.value)/Math.abs(p.value-b.value))>1?1:Math.abs(Math.abs(a-b.value)/Math.abs(p.value-b.value)),value:a,yAxisName:l.name,xAxisName:h.value.xLabels[u],id:`vue-data-ui-heatmap-cell-${s.createUid()}`}:{side:"down",ratio:Math.abs(1-Math.abs(a)/Math.abs(b.value))>1?1:Math.abs(1-Math.abs(a)/Math.abs(b.value)),color:s.interpolateColorHex(t.value.style.layout.cells.colors.cold,t.value.style.layout.cells.colors.hot,m.value,p.value,a),value:a,yAxisName:l.name,xAxisName:h.value.xLabels[u],id:`vue-data-ui-heatmap-cell-${s.createUid()}`})})))),f=e.ref(null),_=e.ref(null);function ve(l,a,u,n){C.value={x:u,y:n};const{value:d,yAxisName:c,xAxisName:g,id:pe}=l;R.value=pe,f.value=d,_.value={datapoint:l,seriesIndex:a,series:E.value,config:t.value},z.value=!0;let D="";const I=t.value.style.tooltip.customFormat;s.isFunction(I)&&s.functionReturnsString(()=>I({datapoint:l,seriesIndex:a,series:E.value,config:t.value}))?T.value=I({datapoint:l,seriesIndex:a,series:E.value,config:t.value}):(D+=`<div>${c} ${g?`${g}`:""}</div>`,D+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${s.interpolateColorHex(t.value.style.layout.cells.colors.cold,t.value.style.layout.cells.colors.hot,m.value,p.value,d)}">⬤</span><span>${isNaN(d)?"-":s.applyDataLabel(t.value.style.layout.cells.value.formatter,d,s.dataLabel({p:t.value.style.layout.dataLabels.prefix,v:d,s:t.value.style.layout.dataLabels.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:a})}</span></div>`,T.value=`<div style="font-size:${t.value.style.tooltip.fontSize}px">${D}</div>`)}const N=e.computed(()=>o.value.top+P.value*(1-f.value/p.value)),B=e.computed(()=>o.value.left+(y.value.width-o.value.left-t.value.style.layout.padding.right)*(f.value/p.value));e.computed(()=>{const l=r.dataset.map(u=>({name:u.name})),a=r.dataset.map(u=>u.values);return{head:l,body:a}});function ee(){e.nextTick(()=>{const l=["",...r.dataset.map((d,c)=>d.name)],a=[];for(let d=0;d<h.value.xLabels.length;d+=1){const c=[h.value.xLabels[d]];for(let g=0;g<r.dataset.length;g+=1)c.push([r.dataset[g].values[d]]);a.push(c)}const u=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(a),n=s.createCsvContent(u);s.downloadCsv({csvContent:n,title:t.value.style.title.text||"vue-ui-heatmap"})})}const x=e.ref(!1);function ye(l){x.value=l,q.value+=1}function te(){v.value.showTable=!v.value.showTable}function le(){v.value.showTooltip=!v.value.showTooltip}const S=e.ref(!1);function F(){S.value=!S.value}return se({generatePdf:Q,generateCsv:ee,generateImage:Z,toggleTable:te,toggleTooltip:le,toggleAnnotator:F}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"heatmapChart",ref:A,class:e.normalizeClass(`vue-ui-heatmap ${x.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor}`),id:`heatmap__${w.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(X)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(xe.PenAndPaper,{key:0,svgRef:e.unref(W),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:S.value,onClose:F},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ie.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:re,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(),e.createBlock(he._sfc_main,{key:`title_${G.value}`,config:{title:{cy:"heatmap-div-title",...t.value.style.title},subtitle:{cy:"heatmap-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(j)||e.unref(O))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:ne,key:`user_options_${q.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(J),isPrinting:e.unref(K),uid:w.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:S.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(Q),onGenerateCsv:ee,onGenerateImage:e.unref(Z),onToggleTable:te,onToggleTooltip:le,onToggleAnnotator:F,style:e.normalizeStyle({visibility:e.unref(j)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:u,color:n})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u,color:n})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:u,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:u,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:u,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:u,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:W,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${y.value.width} ${y.value.heightWithLegend}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ke._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:y.value.width,height:y.value.heightWithLegend,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,$e)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(u,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.temperatures,(d,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.value.left+i.value.width*c+t.value.style.layout.cells.spacing/2,y:o.value.top+i.value.height*n+t.value.style.layout.cells.spacing/2,width:i.value.width-t.value.style.layout.cells.spacing,height:i.value.height-t.value.style.layout.cells.spacing,fill:t.value.style.layout.cells.colors.underlayer,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.cells.spacing},null,8,Ve),e.createElementVNode("rect",{x:o.value.left+i.value.width*c+t.value.style.layout.cells.spacing/2,y:o.value.top+i.value.height*n+t.value.style.layout.cells.spacing/2,width:i.value.width-t.value.style.layout.cells.spacing,height:i.value.height-t.value.style.layout.cells.spacing,fill:d.color,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.cells.spacing},null,8,Ee),t.value.style.layout.cells.value.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle","font-size":t.value.style.layout.cells.value.fontSize,"font-weight":t.value.style.layout.cells.value.bold?"bold":"normal",fill:e.unref(s.adaptColorToBackground)(d.color),x:o.value.left+i.value.width*c+i.value.width/2,y:o.value.top+i.value.height*n+i.value.height/2+t.value.style.layout.cells.value.fontSize/3},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.cells.value.formatter,d.value,e.unref(s.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:d.value,s:t.value.style.layout.dataLabels.suffix,r:t.value.style.layout.cells.value.roundingValue}),{datapoint:d})),9,Se)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.temperatures,(d,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.value.left+i.value.width*c,y:o.value.top+i.value.height*n,width:i.value.width,height:i.value.height,fill:"transparent",stroke:"none",onMouseover:g=>ve(d,n,o.value.left+i.value.width*c,o.value.top+i.value.height*n),onMouseout:a[0]||(a[0]=g=>{z.value=!1,R.value=void 0,f.value=null,C.value=null})},null,40,Ae)]))),256)),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",ze,[e.createElementVNode("text",{"font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,x:o.value.left+t.value.style.layout.dataLabels.yAxis.offsetX-6,y:o.value.top+i.value.height*n+i.value.height/2+t.value.style.layout.dataLabels.yAxis.fontSize/3+t.value.style.layout.dataLabels.yAxis.offsetY,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(h.value.yLabels[n]),9,Te)])):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.xLabels,(u,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.style.layout.dataLabels.xAxis.showOnlyAtModulo||t.value.style.layout.dataLabels.xAxis.showOnlyAtModulo&&n%t.value.style.layout.dataLabels.xAxis.showOnlyAtModulo===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.layout.dataLabels.xAxis.rotation===0?"middle":t.value.style.layout.dataLabels.xAxis.rotation<0?"start":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",transform:`translate(${o.value.left+i.value.width/2+o.value.width/h.value.xLabels.length*n+t.value.style.layout.dataLabels.xAxis.offsetX}, ${o.value.top+t.value.style.layout.dataLabels.xAxis.offsetY-6}), rotate(${t.value.style.layout.dataLabels.xAxis.rotation})`},e.toDisplayString(u),9,Me)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("g",Pe,[e.createElementVNode("rect",{style:{"pointer-events":"none"},x:C.value.x-t.value.style.layout.cells.selected.border/2+t.value.style.layout.cells.spacing,y:C.value.y-t.value.style.layout.cells.selected.border/2+t.value.style.layout.cells.spacing,width:i.value.width-t.value.style.layout.cells.spacing+t.value.style.layout.cells.selected.border-t.value.style.layout.cells.spacing,height:i.value.height-t.value.style.layout.cells.spacing+t.value.style.layout.cells.selected.border-t.value.style.layout.cells.spacing,fill:"transparent",stroke:t.value.style.layout.cells.selected.color,"stroke-width":t.value.style.layout.cells.selected.border,rx:1},null,8,Fe)])):e.createCommentVNode("",!0),t.value.style.legend.show&&V.value==="right"?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`colorScaleVertical_${w.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.cells.colors.hot},null,8,Re),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.cells.colors.cold},null,8,qe)],8,Ie)]),e.createElementVNode("text",{x:o.value.right+36+18,y:o.value.top-t.value.style.legend.fontSize*1.5,"text-anchor":"middle","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(s.checkNaN)(p.value),e.unref(s.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(s.checkNaN)(p.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,Ue),e.createElementVNode("rect",{x:o.value.right+36,y:o.value.top,width:36,height:P.value,rx:t.value.style.legend.scaleBorderRadius,fill:`url(#colorScaleVertical_${w.value})`},null,8,He),e.createElementVNode("text",{x:o.value.right+36+18,y:o.value.top+P.value+t.value.style.legend.fontSize*2.5,"text-anchor":"middle","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(s.checkNaN)(m.value),e.unref(s.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(s.checkNaN)(m.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,Ge),f.value!==null?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:e.unref(s.adaptColorToBackground)(_.value.datapoint.color),"stroke-width":"2",x1:o.value.right+36,x2:o.value.right+72,y1:N.value,y2:N.value},null,8,Xe)):e.createCommentVNode("",!0),f.value!==null?(e.openBlock(),e.createElementBlock("path",{key:1,fill:t.value.style.color,stroke:"none",d:`M ${o.value.right+36},${N.value} ${o.value.right+26},${N.value-8} ${o.value.right+26},${N.value+8}z`},null,8,je)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.legend.show&&V.value==="bottom"?(e.openBlock(),e.createElementBlock("g",We,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",Ye,[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.cells.colors.cold},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.cells.colors.hot},null,8,Je)])]),e.createElementVNode("rect",{x:o.value.left,y:o.value.bottom+t.value.style.layout.cells.height,width:y.value.width-o.value.left-t.value.style.layout.padding.right,height:t.value.style.layout.cells.height,rx:t.value.style.legend.scaleBorderRadius>t.value.style.layout.cells.height/2?t.value.style.layout.cells.height/2:t.value.style.legend.scaleBorderRadius,fill:"url(#colorScaleHorizontal)"},null,8,Qe),e.createElementVNode("text",{x:o.value.left,y:o.value.bottom+t.value.style.layout.cells.height*2+t.value.style.legend.fontSize*2,"text-anchor":"start","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(s.checkNaN)(m.value),e.unref(s.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(s.checkNaN)(m.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,Ze),e.createElementVNode("text",{x:o.value.right,y:o.value.bottom+t.value.style.layout.cells.height*2+t.value.style.legend.fontSize*2,"text-anchor":"end","font-size":t.value.style.legend.fontSize*2,fill:t.value.style.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.cells.value.formatter,e.unref(s.checkNaN)(p.value),e.unref(s.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:e.unref(s.checkNaN)(p.value),s:t.value.style.layout.dataLabels.suffix,r:t.value.style.legend.roundingValue}))),9,et),f.value!==null?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:e.unref(s.adaptColorToBackground)(_.value.datapoint.color),"stroke-width":"2",x1:B.value,x2:B.value,y1:o.value.bottom+t.value.style.layout.cells.height,y2:o.value.bottom+t.value.style.layout.cells.height*2},null,8,tt)):e.createCommentVNode("",!0),f.value!==null?(e.openBlock(),e.createElementBlock("path",{key:1,fill:t.value.style.color,stroke:"none",d:`M ${B.value},${o.value.bottom+t.value.style.layout.cells.height} ${B.value-12},${o.value.bottom+t.value.style.layout.cells.height-20} ${B.value+12},${o.value.bottom+t.value.style.layout.cells.height-20}z`},null,8,lt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:y.value},void 0,!0)],14,Le)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",at,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ge.default,{key:7,config:{type:"heatmap",style:{backgroundColor:t.value.style.backgroundColor,heatmap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(fe._sfc_main,{show:v.value.showTooltip&&z.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:T.value,isFullscreen:x.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(be.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:U,class:"vue-ui-heatmap-table atom-data-table"},[e.createElementVNode("div",{style:"width:100%;overflow-x:auto;padding-top:36px;position:relative",class:e.normalizeClass({"vue-ui-responsive":H.value})},[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:a[1]||(a[1]=u=>v.value.showTable=!1),onKeypress:a[2]||(a[2]=e.withKeys(u=>v.value.showTable=!1,["enter"]))},[e.createVNode(me.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("table",st,[e.createElementVNode("caption",{style:e.normalizeStyle(`backgroundColor:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(t.value.style.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[e.createElementVNode("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline};padding-right:6px`)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.dataset,(u,n)=>(e.openBlock(),e.createElementBlock("th",{align:"right",style:e.normalizeStyle(`outline:${t.value.table.th.outline};padding-right:6px`)},e.toDisplayString(u.name),5))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.xLabels,(u,n)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{"data-cell":t.value.table.colNames.xAxis,class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`)},[e.createElementVNode("div",rt,e.toDisplayString(u),1)],12,nt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.dataset,(d,c)=>(e.openBlock(),e.createElementBlock("td",{class:"vue-ui-data-table__tbody__td","data-cell":L.dataset[c].name,style:e.normalizeStyle(`outline:${t.value.table.td.outline}`)},[e.createElementVNode("div",dt,e.toDisplayString(isNaN(d.values[n])?"-":e.unref(s.dataLabel)({p:t.value.style.layout.dataLabels.prefix,v:d.values[n],s:t.value.style.layout.dataLabels.suffix,r:t.value.table.td.roundingValue})),1)],12,it))),256))],6))),256))])])],2)],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ne))}},vt=_e._export_sfc(ct,[["__scopeId","data-v-83ad9004"]]);exports.default=vt;
|