vue-data-ui 2.3.28 → 2.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -0
- package/dist/types/vue-data-ui.d.ts +65 -0
- package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
- package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
- package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-B4_9ynlY.cjs +0 -1
- package/dist/index-Y23HeR26.cjs +0 -4
- package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
- package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
- package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
- package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
- package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
- package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
- package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
- package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
- package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
- package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
- package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
- package/dist/vue-ui-onion-DiychUul.cjs +0 -1
- package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
- package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
- package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
- package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
- package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
- package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
- package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
- package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
- package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
- package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
- package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
- package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
- package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
- package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
- package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
|
@@ -1,606 +0,0 @@
|
|
|
1
|
-
import { useCssVars as $e, computed as c, ref as g, onMounted as Ce, openBlock as s, createElementBlock as n, normalizeClass as H, normalizeStyle as f, createVNode as J, createCommentVNode as y, createBlock as Q, unref as b, createSlots as Le, withCtx as k, renderSlot as m, normalizeProps as X, guardReactiveProps as U, Fragment as T, renderList as S, createElementVNode as u, toDisplayString as p, withKeys as ze, createTextVNode as Te, nextTick as Se } from "vue";
|
|
2
|
-
import { u as Ae, o as Ne, e as ye, c as Z, t as Me, g as Fe, H as ee, X as Ve, C as te, f as he, v as Ie, w as Oe, n as Pe, q as Be } from "./index-BhCM2QF1.js";
|
|
3
|
-
import { _ as Re } from "./Title-CtWGLaoz.js";
|
|
4
|
-
import { u as Ee, U as Ge } from "./usePrinter-B75HLwzw.js";
|
|
5
|
-
import { _ as He } from "./Tooltip-D6BUVHr1.js";
|
|
6
|
-
import Xe from "./vue-ui-skeleton-_VMQ594N.js";
|
|
7
|
-
import Ue from "./BaseIcon-Op8_v5x7.js";
|
|
8
|
-
import Ye from "./vue-ui-accordion-CSZdj7wA.js";
|
|
9
|
-
import { u as ge } from "./useNestedProp-CH3PVhvc.js";
|
|
10
|
-
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const De = ["id"], We = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ke = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Je = ["font-size", "font-weight", "fill", "x", "y"], Qe = ["x", "y", "width", "height", "onMouseover"], Ze = { key: 0 }, et = ["font-size", "fill", "x", "y", "font-weight"], tt = { key: 0 }, lt = ["x", "y", "font-size", "fill", "font-weight"], at = { key: 1 }, ot = ["x", "y", "width", "height", "stroke", "stroke-width"], st = { key: 2 }, ut = ["id"], nt = ["stop-color"], it = ["stop-color"], rt = ["x", "y", "font-size", "fill"], dt = ["x", "y", "height", "rx", "fill"], vt = ["x", "y", "font-size", "fill"], ct = ["stroke", "x1", "x2", "y1", "y2"], yt = ["fill", "d"], ht = { key: 3 }, gt = {
|
|
12
|
-
id: "colorScaleHorizontal",
|
|
13
|
-
x1: "0%",
|
|
14
|
-
x2: "100%",
|
|
15
|
-
y1: "0%",
|
|
16
|
-
y2: "0%"
|
|
17
|
-
}, pt = ["stop-color"], ft = ["stop-color"], bt = ["x", "y", "width", "height", "rx"], mt = ["x", "y", "font-size", "fill"], xt = ["x", "y", "font-size", "fill"], wt = ["stroke", "x1", "x2", "y1", "y2"], _t = ["fill", "d"], kt = {
|
|
18
|
-
key: 3,
|
|
19
|
-
class: "vue-data-ui-watermark"
|
|
20
|
-
}, $t = { class: "vue-ui-data-table" }, Ct = { key: 0 }, Lt = ["data-cell"], zt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tt = ["data-cell"], St = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, At = {
|
|
21
|
-
__name: "vue-ui-heatmap",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default() {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
setup(B, { expose: pe }) {
|
|
37
|
-
const d = B;
|
|
38
|
-
$e((t) => ({
|
|
39
|
-
"72583db0": t.tdo
|
|
40
|
-
}));
|
|
41
|
-
const { vue_ui_heatmap: fe } = Ae(), R = c(() => !!d.dataset && d.dataset.length);
|
|
42
|
-
Ne(d.dataset) && ye({
|
|
43
|
-
componentName: "VueUiHeatmap",
|
|
44
|
-
type: "dataset"
|
|
45
|
-
});
|
|
46
|
-
const N = g(Z()), Y = g(null), be = g(null), j = g(!1), D = g(""), le = g(void 0), M = g(null), ae = g(0), oe = g(null), se = g(!1), e = c(() => {
|
|
47
|
-
const t = ge({
|
|
48
|
-
userConfig: d.config,
|
|
49
|
-
defaultConfig: fe
|
|
50
|
-
});
|
|
51
|
-
return t.theme ? {
|
|
52
|
-
...ge({
|
|
53
|
-
userConfig: Me.vue_ui_heatmap[t.theme] || d.config,
|
|
54
|
-
defaultConfig: t
|
|
55
|
-
})
|
|
56
|
-
} : t;
|
|
57
|
-
}), { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: re } = Ee({
|
|
58
|
-
elementId: `heatmap__${N.value}`,
|
|
59
|
-
fileName: e.value.style.title.text || "vue-ui-heatmap"
|
|
60
|
-
}), x = g({
|
|
61
|
-
showTable: e.value.table.show,
|
|
62
|
-
showTooltip: e.value.style.tooltip.show
|
|
63
|
-
}), me = c(() => e.value.table.responsiveBreakpoint);
|
|
64
|
-
function xe() {
|
|
65
|
-
new ResizeObserver((a) => {
|
|
66
|
-
a.forEach((o) => {
|
|
67
|
-
se.value = o.contentRect.width < me.value;
|
|
68
|
-
});
|
|
69
|
-
}).observe(oe.value);
|
|
70
|
-
}
|
|
71
|
-
Ce(xe);
|
|
72
|
-
const A = c(() => Math.max(...d.dataset.flatMap((t) => (t.values || []).length))), w = c(() => {
|
|
73
|
-
const t = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + d.dataset.length * e.value.style.layout.cells.height, a = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (A.value < d.dataset.length ? d.dataset.length : A.value) * e.value.style.layout.cells.height, o = t + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
|
|
74
|
-
return {
|
|
75
|
-
height: t,
|
|
76
|
-
heightWithLegend: o,
|
|
77
|
-
width: a
|
|
78
|
-
};
|
|
79
|
-
}), E = c(() => e.value.style.legend.position), l = c(() => ({
|
|
80
|
-
top: e.value.style.layout.padding.top,
|
|
81
|
-
left: e.value.style.layout.padding.left,
|
|
82
|
-
right: w.value.width - e.value.style.layout.padding.right - (E.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
83
|
-
bottom: w.value.height - e.value.style.layout.padding.bottom,
|
|
84
|
-
height: w.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
85
|
-
width: w.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (E.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
86
|
-
})), W = c(() => i.value.height * d.dataset.length), _ = c(() => Math.max(...d.dataset.flatMap((t) => t.values))), F = c(() => Math.min(...d.dataset.flatMap((t) => t.values))), z = c(() => {
|
|
87
|
-
const t = d.dataset.flatMap((o) => o.values);
|
|
88
|
-
return t.reduce((o, r) => o + r, 0) / t.length;
|
|
89
|
-
}), i = c(() => ({
|
|
90
|
-
width: l.value.width / A.value,
|
|
91
|
-
height: l.value.width / (A.value < d.dataset.length ? d.dataset.length : A.value)
|
|
92
|
-
})), $ = c(() => {
|
|
93
|
-
const t = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : d.dataset.map((o) => o.name), a = e.value.style.layout.dataLabels.xAxis.values;
|
|
94
|
-
return {
|
|
95
|
-
yLabels: t,
|
|
96
|
-
xLabels: a.slice(0, A.value)
|
|
97
|
-
};
|
|
98
|
-
}), G = c(() => (d.dataset.forEach((t, a) => {
|
|
99
|
-
Fe({
|
|
100
|
-
datasetObject: t,
|
|
101
|
-
requiredAttributes: ["values"]
|
|
102
|
-
}).forEach((o) => {
|
|
103
|
-
ye({
|
|
104
|
-
componentName: "VueUiHeatmap",
|
|
105
|
-
type: "datasetSerieAttribute",
|
|
106
|
-
property: "values",
|
|
107
|
-
index: a
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}), d.dataset.map((t) => ({
|
|
111
|
-
...t,
|
|
112
|
-
temperatures: (t.values || []).map((a, o) => a >= z.value ? {
|
|
113
|
-
side: "up",
|
|
114
|
-
color: ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, _.value, a),
|
|
115
|
-
ratio: Math.abs(Math.abs(a - z.value) / Math.abs(_.value - z.value)) > 1 ? 1 : Math.abs(Math.abs(a - z.value) / Math.abs(_.value - z.value)),
|
|
116
|
-
value: a,
|
|
117
|
-
yAxisName: t.name,
|
|
118
|
-
xAxisName: $.value.xLabels[o],
|
|
119
|
-
id: `vue-data-ui-heatmap-cell-${Z()}`
|
|
120
|
-
} : {
|
|
121
|
-
side: "down",
|
|
122
|
-
ratio: Math.abs(1 - Math.abs(a) / Math.abs(z.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(z.value)),
|
|
123
|
-
color: ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, _.value, a),
|
|
124
|
-
value: a,
|
|
125
|
-
yAxisName: t.name,
|
|
126
|
-
xAxisName: $.value.xLabels[o],
|
|
127
|
-
id: `vue-data-ui-heatmap-cell-${Z()}`
|
|
128
|
-
})
|
|
129
|
-
})))), C = g(null), V = g(null);
|
|
130
|
-
function we(t, a, o, r) {
|
|
131
|
-
M.value = { x: o, y: r };
|
|
132
|
-
const { value: v, yAxisName: h, xAxisName: L, id: ke } = t;
|
|
133
|
-
le.value = ke, C.value = v, V.value = {
|
|
134
|
-
datapoint: t,
|
|
135
|
-
seriesIndex: a,
|
|
136
|
-
series: G.value,
|
|
137
|
-
config: e.value
|
|
138
|
-
}, j.value = !0;
|
|
139
|
-
let q = "";
|
|
140
|
-
const K = e.value.style.tooltip.customFormat;
|
|
141
|
-
Ie(K) && Oe(() => K({
|
|
142
|
-
datapoint: t,
|
|
143
|
-
seriesIndex: a,
|
|
144
|
-
series: G.value,
|
|
145
|
-
config: e.value
|
|
146
|
-
})) ? D.value = K({
|
|
147
|
-
datapoint: t,
|
|
148
|
-
seriesIndex: a,
|
|
149
|
-
series: G.value,
|
|
150
|
-
config: e.value
|
|
151
|
-
}) : (q += `<div>${h} ${L ? `${L}` : ""}</div>`, q += `<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:${ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, _.value, v)}">⬤</span><span>${isNaN(v) ? "-" : he({ p: e.value.style.layout.dataLabels.prefix, v, s: e.value.style.layout.dataLabels.suffix, r: e.value.style.tooltip.roundingValue })}</span></div>`, D.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${q}</div>`);
|
|
152
|
-
}
|
|
153
|
-
const I = c(() => l.value.top + W.value * (1 - C.value / _.value)), O = c(() => l.value.left + (w.value.width - l.value.left - e.value.style.layout.padding.right) * (C.value / _.value));
|
|
154
|
-
c(() => {
|
|
155
|
-
const t = d.dataset.map((o) => ({
|
|
156
|
-
name: o.name
|
|
157
|
-
})), a = d.dataset.map((o) => o.values);
|
|
158
|
-
return { head: t, body: a };
|
|
159
|
-
});
|
|
160
|
-
function de() {
|
|
161
|
-
Se(() => {
|
|
162
|
-
const t = ["", ...d.dataset.map((v, h) => v.name)], a = [];
|
|
163
|
-
for (let v = 0; v < $.value.xLabels.length; v += 1) {
|
|
164
|
-
const h = [$.value.xLabels[v]];
|
|
165
|
-
for (let L = 0; L < d.dataset.length; L += 1)
|
|
166
|
-
h.push([d.dataset[L].values[v]]);
|
|
167
|
-
a.push(h);
|
|
168
|
-
}
|
|
169
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(a), r = Pe(o);
|
|
170
|
-
Be({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
const P = g(!1);
|
|
174
|
-
function _e(t) {
|
|
175
|
-
P.value = t, ae.value += 1;
|
|
176
|
-
}
|
|
177
|
-
function ve() {
|
|
178
|
-
x.value.showTable = !x.value.showTable;
|
|
179
|
-
}
|
|
180
|
-
function ce() {
|
|
181
|
-
x.value.showTooltip = !x.value.showTooltip;
|
|
182
|
-
}
|
|
183
|
-
return pe({
|
|
184
|
-
generatePdf: ie,
|
|
185
|
-
generateCsv: de,
|
|
186
|
-
generateImage: re,
|
|
187
|
-
toggleTable: ve,
|
|
188
|
-
toggleTooltip: ce
|
|
189
|
-
}), (t, a) => (s(), n("div", {
|
|
190
|
-
ref_key: "heatmapChart",
|
|
191
|
-
ref: Y,
|
|
192
|
-
class: H(`vue-ui-heatmap ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
193
|
-
style: f(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor}`),
|
|
194
|
-
id: `heatmap__${N.value}`
|
|
195
|
-
}, [
|
|
196
|
-
e.value.style.title.text ? (s(), n("div", {
|
|
197
|
-
key: 0,
|
|
198
|
-
style: f(`width:100%;background:${e.value.style.backgroundColor}`)
|
|
199
|
-
}, [
|
|
200
|
-
J(Re, {
|
|
201
|
-
config: {
|
|
202
|
-
title: {
|
|
203
|
-
cy: "heatmap-div-title",
|
|
204
|
-
...e.value.style.title
|
|
205
|
-
},
|
|
206
|
-
subtitle: {
|
|
207
|
-
cy: "heatmap-div-subtitle",
|
|
208
|
-
...e.value.style.title.subtitle
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}, null, 8, ["config"])
|
|
212
|
-
], 4)) : y("", !0),
|
|
213
|
-
e.value.userOptions.show && R.value ? (s(), Q(Ge, {
|
|
214
|
-
ref_key: "details",
|
|
215
|
-
ref: be,
|
|
216
|
-
key: `user_options_${ae.value}`,
|
|
217
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
218
|
-
color: e.value.style.color,
|
|
219
|
-
isImaging: b(ne),
|
|
220
|
-
isPrinting: b(ue),
|
|
221
|
-
uid: N.value,
|
|
222
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
223
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
224
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
225
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
226
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
227
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
228
|
-
isFullscreen: P.value,
|
|
229
|
-
isTooltip: x.value.showTooltip,
|
|
230
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
231
|
-
chartElement: Y.value,
|
|
232
|
-
onToggleFullscreen: _e,
|
|
233
|
-
onGeneratePdf: b(ie),
|
|
234
|
-
onGenerateCsv: de,
|
|
235
|
-
onGenerateImage: b(re),
|
|
236
|
-
onToggleTable: ve,
|
|
237
|
-
onToggleTooltip: ce
|
|
238
|
-
}, Le({ _: 2 }, [
|
|
239
|
-
t.$slots.optionTooltip ? {
|
|
240
|
-
name: "optionTooltip",
|
|
241
|
-
fn: k(() => [
|
|
242
|
-
m(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
243
|
-
]),
|
|
244
|
-
key: "0"
|
|
245
|
-
} : void 0,
|
|
246
|
-
t.$slots.optionPdf ? {
|
|
247
|
-
name: "optionPdf",
|
|
248
|
-
fn: k(() => [
|
|
249
|
-
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
250
|
-
]),
|
|
251
|
-
key: "1"
|
|
252
|
-
} : void 0,
|
|
253
|
-
t.$slots.optionCsv ? {
|
|
254
|
-
name: "optionCsv",
|
|
255
|
-
fn: k(() => [
|
|
256
|
-
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
257
|
-
]),
|
|
258
|
-
key: "2"
|
|
259
|
-
} : void 0,
|
|
260
|
-
t.$slots.optionImg ? {
|
|
261
|
-
name: "optionImg",
|
|
262
|
-
fn: k(() => [
|
|
263
|
-
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
264
|
-
]),
|
|
265
|
-
key: "3"
|
|
266
|
-
} : void 0,
|
|
267
|
-
t.$slots.optionTable ? {
|
|
268
|
-
name: "optionTable",
|
|
269
|
-
fn: k(() => [
|
|
270
|
-
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
271
|
-
]),
|
|
272
|
-
key: "4"
|
|
273
|
-
} : void 0,
|
|
274
|
-
t.$slots.optionFullscreen ? {
|
|
275
|
-
name: "optionFullscreen",
|
|
276
|
-
fn: k(({ toggleFullscreen: o, isFullscreen: r }) => [
|
|
277
|
-
m(t.$slots, "optionFullscreen", X(U({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
|
|
278
|
-
]),
|
|
279
|
-
key: "5"
|
|
280
|
-
} : void 0
|
|
281
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
282
|
-
R.value ? (s(), n("svg", {
|
|
283
|
-
key: 2,
|
|
284
|
-
xmlns: b(Ve),
|
|
285
|
-
class: H({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
286
|
-
viewBox: `0 0 ${w.value.width} ${w.value.heightWithLegend}`,
|
|
287
|
-
style: f(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
|
|
288
|
-
}, [
|
|
289
|
-
(s(!0), n(T, null, S(G.value, (o, r) => (s(), n("g", null, [
|
|
290
|
-
(s(!0), n(T, null, S(o.temperatures, (v, h) => (s(), n("g", null, [
|
|
291
|
-
u("rect", {
|
|
292
|
-
x: l.value.left + i.value.width * h + e.value.style.layout.cells.spacing / 2,
|
|
293
|
-
y: l.value.top + i.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
294
|
-
width: i.value.width - e.value.style.layout.cells.spacing,
|
|
295
|
-
height: i.value.height - e.value.style.layout.cells.spacing,
|
|
296
|
-
fill: e.value.style.layout.cells.colors.underlayer,
|
|
297
|
-
stroke: e.value.style.backgroundColor,
|
|
298
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
299
|
-
}, null, 8, qe),
|
|
300
|
-
u("rect", {
|
|
301
|
-
x: l.value.left + i.value.width * h + e.value.style.layout.cells.spacing / 2,
|
|
302
|
-
y: l.value.top + i.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
303
|
-
width: i.value.width - e.value.style.layout.cells.spacing,
|
|
304
|
-
height: i.value.height - e.value.style.layout.cells.spacing,
|
|
305
|
-
fill: v.color,
|
|
306
|
-
stroke: e.value.style.backgroundColor,
|
|
307
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
308
|
-
}, null, 8, Ke),
|
|
309
|
-
e.value.style.layout.cells.value.show ? (s(), n("text", {
|
|
310
|
-
key: 0,
|
|
311
|
-
"text-anchor": "middle",
|
|
312
|
-
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
313
|
-
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
314
|
-
fill: b(te)(v.color),
|
|
315
|
-
x: l.value.left + i.value.width * h + i.value.width / 2,
|
|
316
|
-
y: l.value.top + i.value.height * r + i.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
317
|
-
}, p(e.value.style.layout.dataLabels.prefix) + p(Number(v.value.toFixed(e.value.style.layout.cells.value.roundingValue)).toLocaleString()) + p(e.value.style.layout.dataLabels.suffix), 9, Je)) : y("", !0)
|
|
318
|
-
]))), 256)),
|
|
319
|
-
(s(!0), n(T, null, S(o.temperatures, (v, h) => (s(), n("g", null, [
|
|
320
|
-
u("rect", {
|
|
321
|
-
x: l.value.left + i.value.width * h,
|
|
322
|
-
y: l.value.top + i.value.height * r,
|
|
323
|
-
width: i.value.width,
|
|
324
|
-
height: i.value.height,
|
|
325
|
-
fill: "transparent",
|
|
326
|
-
stroke: "none",
|
|
327
|
-
onMouseover: (L) => we(v, r, l.value.left + i.value.width * h, l.value.top + i.value.height * r),
|
|
328
|
-
onMouseout: a[0] || (a[0] = (L) => {
|
|
329
|
-
j.value = !1, le.value = void 0, C.value = null, M.value = null;
|
|
330
|
-
})
|
|
331
|
-
}, null, 40, Qe)
|
|
332
|
-
]))), 256)),
|
|
333
|
-
e.value.style.layout.dataLabels.yAxis.show ? (s(), n("g", Ze, [
|
|
334
|
-
u("text", {
|
|
335
|
-
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
336
|
-
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
337
|
-
x: l.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
338
|
-
y: l.value.top + i.value.height * r + i.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
339
|
-
"text-anchor": "end",
|
|
340
|
-
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
341
|
-
}, p($.value.yLabels[r]), 9, et)
|
|
342
|
-
])) : y("", !0)
|
|
343
|
-
]))), 256)),
|
|
344
|
-
e.value.style.layout.dataLabels.xAxis.show ? (s(), n("g", tt, [
|
|
345
|
-
(s(!0), n(T, null, S($.value.xLabels, (o, r) => (s(), n("text", {
|
|
346
|
-
x: l.value.left + i.value.width / 2 + l.value.width / $.value.xLabels.length * r + e.value.style.layout.dataLabels.xAxis.offsetX,
|
|
347
|
-
y: l.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6,
|
|
348
|
-
"text-anchor": "middle",
|
|
349
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
350
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
351
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
352
|
-
}, p(o), 9, lt))), 256))
|
|
353
|
-
])) : y("", !0),
|
|
354
|
-
M.value ? (s(), n("g", at, [
|
|
355
|
-
u("rect", {
|
|
356
|
-
style: { "pointer-events": "none" },
|
|
357
|
-
x: M.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
358
|
-
y: M.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
359
|
-
width: i.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
360
|
-
height: i.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
361
|
-
fill: "transparent",
|
|
362
|
-
stroke: e.value.style.layout.cells.selected.color,
|
|
363
|
-
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
364
|
-
rx: 1
|
|
365
|
-
}, null, 8, ot)
|
|
366
|
-
])) : y("", !0),
|
|
367
|
-
e.value.style.legend.show && E.value === "right" ? (s(), n("g", st, [
|
|
368
|
-
u("defs", null, [
|
|
369
|
-
u("linearGradient", {
|
|
370
|
-
id: `colorScaleVertical_${N.value}`,
|
|
371
|
-
x2: "0%",
|
|
372
|
-
y2: "100%"
|
|
373
|
-
}, [
|
|
374
|
-
u("stop", {
|
|
375
|
-
offset: "0%",
|
|
376
|
-
"stop-color": e.value.style.layout.cells.colors.hot
|
|
377
|
-
}, null, 8, nt),
|
|
378
|
-
u("stop", {
|
|
379
|
-
offset: "100%",
|
|
380
|
-
"stop-color": e.value.style.layout.cells.colors.cold
|
|
381
|
-
}, null, 8, it)
|
|
382
|
-
], 8, ut)
|
|
383
|
-
]),
|
|
384
|
-
u("text", {
|
|
385
|
-
x: l.value.right + 36 + 18,
|
|
386
|
-
y: l.value.top - e.value.style.legend.fontSize * 1.5,
|
|
387
|
-
"text-anchor": "middle",
|
|
388
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
389
|
-
fill: e.value.style.legend.color
|
|
390
|
-
}, p(Number(_.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, rt),
|
|
391
|
-
u("rect", {
|
|
392
|
-
x: l.value.right + 36,
|
|
393
|
-
y: l.value.top,
|
|
394
|
-
width: 36,
|
|
395
|
-
height: W.value,
|
|
396
|
-
rx: e.value.style.legend.scaleBorderRadius,
|
|
397
|
-
fill: `url(#colorScaleVertical_${N.value})`
|
|
398
|
-
}, null, 8, dt),
|
|
399
|
-
u("text", {
|
|
400
|
-
x: l.value.right + 36 + 18,
|
|
401
|
-
y: l.value.top + W.value + e.value.style.legend.fontSize * 2.5,
|
|
402
|
-
"text-anchor": "middle",
|
|
403
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
404
|
-
fill: e.value.style.legend.color
|
|
405
|
-
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, vt),
|
|
406
|
-
C.value !== null ? (s(), n("line", {
|
|
407
|
-
key: 0,
|
|
408
|
-
stroke: b(te)(V.value.datapoint.color),
|
|
409
|
-
"stroke-width": "2",
|
|
410
|
-
x1: l.value.right + 36,
|
|
411
|
-
x2: l.value.right + 72,
|
|
412
|
-
y1: I.value,
|
|
413
|
-
y2: I.value
|
|
414
|
-
}, null, 8, ct)) : y("", !0),
|
|
415
|
-
C.value !== null ? (s(), n("path", {
|
|
416
|
-
key: 1,
|
|
417
|
-
fill: e.value.style.color,
|
|
418
|
-
stroke: "none",
|
|
419
|
-
d: `M ${l.value.right + 36},${I.value} ${l.value.right + 26},${I.value - 8} ${l.value.right + 26},${I.value + 8}z`
|
|
420
|
-
}, null, 8, yt)) : y("", !0)
|
|
421
|
-
])) : y("", !0),
|
|
422
|
-
e.value.style.legend.show && E.value === "bottom" ? (s(), n("g", ht, [
|
|
423
|
-
u("defs", null, [
|
|
424
|
-
u("linearGradient", gt, [
|
|
425
|
-
u("stop", {
|
|
426
|
-
offset: "0%",
|
|
427
|
-
"stop-color": e.value.style.layout.cells.colors.cold
|
|
428
|
-
}, null, 8, pt),
|
|
429
|
-
u("stop", {
|
|
430
|
-
offset: "100%",
|
|
431
|
-
"stop-color": e.value.style.layout.cells.colors.hot
|
|
432
|
-
}, null, 8, ft)
|
|
433
|
-
])
|
|
434
|
-
]),
|
|
435
|
-
u("rect", {
|
|
436
|
-
x: l.value.left,
|
|
437
|
-
y: l.value.bottom + e.value.style.layout.cells.height,
|
|
438
|
-
width: w.value.width - l.value.left - e.value.style.layout.padding.right,
|
|
439
|
-
height: e.value.style.layout.cells.height,
|
|
440
|
-
rx: e.value.style.legend.scaleBorderRadius > e.value.style.layout.cells.height / 2 ? e.value.style.layout.cells.height / 2 : e.value.style.legend.scaleBorderRadius,
|
|
441
|
-
fill: "url(#colorScaleHorizontal)"
|
|
442
|
-
}, null, 8, bt),
|
|
443
|
-
u("text", {
|
|
444
|
-
x: l.value.left,
|
|
445
|
-
y: l.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
446
|
-
"text-anchor": "start",
|
|
447
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
448
|
-
fill: e.value.style.legend.color
|
|
449
|
-
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, mt),
|
|
450
|
-
u("text", {
|
|
451
|
-
x: l.value.right,
|
|
452
|
-
y: l.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
453
|
-
"text-anchor": "end",
|
|
454
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
455
|
-
fill: e.value.style.legend.color
|
|
456
|
-
}, p(Number(_.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, xt),
|
|
457
|
-
C.value !== null ? (s(), n("line", {
|
|
458
|
-
key: 0,
|
|
459
|
-
stroke: b(te)(V.value.datapoint.color),
|
|
460
|
-
"stroke-width": "2",
|
|
461
|
-
x1: O.value,
|
|
462
|
-
x2: O.value,
|
|
463
|
-
y1: l.value.bottom + e.value.style.layout.cells.height,
|
|
464
|
-
y2: l.value.bottom + e.value.style.layout.cells.height * 2
|
|
465
|
-
}, null, 8, wt)) : y("", !0),
|
|
466
|
-
C.value !== null ? (s(), n("path", {
|
|
467
|
-
key: 1,
|
|
468
|
-
fill: e.value.style.color,
|
|
469
|
-
stroke: "none",
|
|
470
|
-
d: `M ${O.value},${l.value.bottom + e.value.style.layout.cells.height} ${O.value - 12},${l.value.bottom + e.value.style.layout.cells.height - 20} ${O.value + 12},${l.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
471
|
-
}, null, 8, _t)) : y("", !0)
|
|
472
|
-
])) : y("", !0),
|
|
473
|
-
m(t.$slots, "svg", { svg: w.value }, void 0, !0)
|
|
474
|
-
], 14, We)) : y("", !0),
|
|
475
|
-
t.$slots.watermark ? (s(), n("div", kt, [
|
|
476
|
-
m(t.$slots, "watermark", X(U({ isPrinting: b(ue) || b(ne) })), void 0, !0)
|
|
477
|
-
])) : y("", !0),
|
|
478
|
-
R.value ? y("", !0) : (s(), Q(Xe, {
|
|
479
|
-
key: 4,
|
|
480
|
-
config: {
|
|
481
|
-
type: "heatmap",
|
|
482
|
-
style: {
|
|
483
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
484
|
-
heatmap: {
|
|
485
|
-
color: "#CCCCCC"
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}, null, 8, ["config"])),
|
|
490
|
-
J(He, {
|
|
491
|
-
show: x.value.showTooltip && j.value,
|
|
492
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
493
|
-
color: e.value.style.tooltip.color,
|
|
494
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
495
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
496
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
497
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
498
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
499
|
-
position: e.value.style.tooltip.position,
|
|
500
|
-
offsetY: e.value.style.tooltip.offsetY,
|
|
501
|
-
parent: Y.value,
|
|
502
|
-
content: D.value,
|
|
503
|
-
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
504
|
-
}, {
|
|
505
|
-
"tooltip-before": k(() => [
|
|
506
|
-
m(t.$slots, "tooltip-before", X(U({ ...V.value })), void 0, !0)
|
|
507
|
-
]),
|
|
508
|
-
"tooltip-after": k(() => [
|
|
509
|
-
m(t.$slots, "tooltip-after", X(U({ ...V.value })), void 0, !0)
|
|
510
|
-
]),
|
|
511
|
-
_: 3
|
|
512
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
513
|
-
R.value ? (s(), Q(Ye, {
|
|
514
|
-
key: 5,
|
|
515
|
-
hideDetails: "",
|
|
516
|
-
config: {
|
|
517
|
-
open: x.value.showTable,
|
|
518
|
-
maxHeight: 1e4,
|
|
519
|
-
body: {
|
|
520
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
521
|
-
color: e.value.style.color
|
|
522
|
-
},
|
|
523
|
-
head: {
|
|
524
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
525
|
-
color: e.value.style.color
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}, {
|
|
529
|
-
content: k(() => [
|
|
530
|
-
u("div", {
|
|
531
|
-
ref_key: "tableContainer",
|
|
532
|
-
ref: oe,
|
|
533
|
-
class: "vue-ui-heatmap-table"
|
|
534
|
-
}, [
|
|
535
|
-
u("div", {
|
|
536
|
-
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
537
|
-
class: H({ "vue-ui-responsive": se.value })
|
|
538
|
-
}, [
|
|
539
|
-
u("div", {
|
|
540
|
-
role: "button",
|
|
541
|
-
tabindex: "0",
|
|
542
|
-
style: f(`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:${e.value.table.th.backgroundColor};`),
|
|
543
|
-
onClick: a[1] || (a[1] = (o) => x.value.showTable = !1),
|
|
544
|
-
onKeypress: a[2] || (a[2] = ze((o) => x.value.showTable = !1, ["enter"]))
|
|
545
|
-
}, [
|
|
546
|
-
J(Ue, {
|
|
547
|
-
name: "close",
|
|
548
|
-
stroke: e.value.table.th.color,
|
|
549
|
-
"stroke-width": 2
|
|
550
|
-
}, null, 8, ["stroke"])
|
|
551
|
-
], 36),
|
|
552
|
-
u("table", $t, [
|
|
553
|
-
u("caption", {
|
|
554
|
-
style: f(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
555
|
-
}, [
|
|
556
|
-
Te(p(e.value.style.title.text) + " ", 1),
|
|
557
|
-
e.value.style.title.subtitle.text ? (s(), n("span", Ct, p(e.value.style.title.subtitle.text), 1)) : y("", !0)
|
|
558
|
-
], 4),
|
|
559
|
-
u("thead", null, [
|
|
560
|
-
u("tr", {
|
|
561
|
-
role: "row",
|
|
562
|
-
style: f(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
563
|
-
}, [
|
|
564
|
-
u("th", {
|
|
565
|
-
style: f(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
566
|
-
}, null, 4),
|
|
567
|
-
(s(!0), n(T, null, S(B.dataset, (o, r) => (s(), n("th", {
|
|
568
|
-
align: "right",
|
|
569
|
-
style: f(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
570
|
-
}, p(o.name), 5))), 256))
|
|
571
|
-
], 4)
|
|
572
|
-
]),
|
|
573
|
-
u("tbody", null, [
|
|
574
|
-
(s(!0), n(T, null, S($.value.xLabels, (o, r) => (s(), n("tr", {
|
|
575
|
-
role: "row",
|
|
576
|
-
class: H({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": r % 2 === 0, "vue-ui-data-table__tbody__row-odd": r % 2 !== 0 }),
|
|
577
|
-
style: f(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
578
|
-
}, [
|
|
579
|
-
u("td", {
|
|
580
|
-
"data-cell": e.value.table.colNames.xAxis,
|
|
581
|
-
class: "vue-ui-data-table__tbody__td",
|
|
582
|
-
style: f(`outline:${e.value.table.td.outline}`)
|
|
583
|
-
}, [
|
|
584
|
-
u("div", zt, p(o), 1)
|
|
585
|
-
], 12, Lt),
|
|
586
|
-
(s(!0), n(T, null, S(B.dataset, (v, h) => (s(), n("td", {
|
|
587
|
-
class: "vue-ui-data-table__tbody__td",
|
|
588
|
-
"data-cell": B.dataset[h].name,
|
|
589
|
-
style: f(`outline:${e.value.table.td.outline}`)
|
|
590
|
-
}, [
|
|
591
|
-
u("div", St, p(isNaN(v.values[r]) ? "-" : b(he)({ p: e.value.style.layout.dataLabels.prefix, v: v.values[r], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
592
|
-
], 12, Tt))), 256))
|
|
593
|
-
], 6))), 256))
|
|
594
|
-
])
|
|
595
|
-
])
|
|
596
|
-
], 2)
|
|
597
|
-
], 512)
|
|
598
|
-
]),
|
|
599
|
-
_: 1
|
|
600
|
-
}, 8, ["config"])) : y("", !0)
|
|
601
|
-
], 14, De));
|
|
602
|
-
}
|
|
603
|
-
}, Gt = /* @__PURE__ */ je(At, [["__scopeId", "data-v-ffec89ce"]]);
|
|
604
|
-
export {
|
|
605
|
-
Gt as default
|
|
606
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-Y23HeR26.cjs"),W=require("./Title-DQz9dO4d.cjs"),B=require("./usePrinter-DTF28E03.cjs"),G=require("./Legend-BNfS77GS.cjs"),p=require("./BaseIcon-BK5xYOzV.cjs"),U=require("./DataTable-B4_9ynlY.cjs"),H=require("./vue-ui-skeleton-B5Z4craS.cjs"),R=require("./vue-ui-accordion-CVrj6roI.cjs"),E=require("./useNestedProp-C2H2jmU6.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Y=["xmlns","viewBox"],J=["id"],Q=["stop-color"],Z=["stop-color"],ee=["x1","y1","x2","y2","stroke","stroke-width"],te=["d","stroke","stroke-width"],oe=["stroke"],le=["fill"],ae=["stroke"],re=["fill"],ne=["stroke"],se=["fill"],ue=["stroke"],ie=["fill"],ce=["stroke"],de=["fill"],ye=["d","stroke","stroke-width","fill"],ve=["x1","y1","stroke"],me=["cx","cy","fill","stroke"],he=["fill","stroke"],ke=["y","fill","font-weight"],pe=["y","fill"],fe={key:3,class:"vue-data-ui-watermark"},ge=["onClick"],be={style:{"font-weight":"bold"}},Ce=["innerHTML"],Ne={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(S,{expose:T}){const s=S,{vue_ui_mood_radar:F}=n.useConfig(),m=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{n.objectIsEmpty(s.dataset)&&n.error({componentName:"VueUiMoodRadar",type:"dataset"})});const h=e.ref(n.createUid()),N=e.ref(null),A=e.ref(null),r=e.ref(null),t=e.computed(()=>{const l=E.useNestedProp({userConfig:s.config,defaultConfig:F});return l.theme?{...E.useNestedProp({userConfig:n.themes.vue_ui_mood_radar[l.theme]||s.config,defaultConfig:l})}:l}),{isPrinting:x,isImaging:w,generatePdf:_,generateImage:V}=B.usePrinter({elementId:h.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar"}),f=e.ref({showTable:t.value.table.show}),d=e.computed(()=>({height:256,width:256})),C=e.computed(()=>n.createPolygonPath({plot:{x:128,y:d.value.height/2},radius:90,sides:5,rotation:11}));function L({centerX:l,centerY:a,apexX:o,apexY:i,proportion:c,key:k,value:q}){return{x:l+(o-l)*c,y:a+(i-a)*c,key:k,value:q}}const I=e.computed(()=>Math.max(...Object.values(s.dataset).map(l=>isNaN(l)?0:l))),v=e.computed(()=>Object.values(s.dataset).reduce((l,a)=>(isNaN(l)?0:l)+(isNaN(a)?0:a),0)),u=e.computed(()=>Object.keys(s.dataset).map((l,a)=>{const o=typeof s.dataset[l]!="number"||isNaN(s.dataset[l])?0:s.dataset[l];return{index:a,key:l,value:o,proportion:o/v.value,color:t.value.style.chart.layout.smileys.colors[l]}}).sort((l,a)=>a.key-l.key)),$=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(l=>{[null,void 0].includes(s.dataset[l])&&n.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:l})}),C.value.coordinates.map((l,a)=>{const o=L({centerX:d.value.width/2,centerY:d.value.height/2,apexX:l.x,apexY:l.y,proportion:u.value[a].value/I.value,key:u.value[a].key,value:u.value[a].value});return{...l,plots:o,key:u.value[a].key}})):[]),O=e.computed(()=>({cy:"mood-radar-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":""}));function z(l){l===r.value?r.value=null:r.value=l}const y=e.computed(()=>{const l=u.value.map(o=>({name:o.key,color:o.color})),a=u.value.map(o=>isNaN(o.value)?0:o.value);return{head:l,body:a}});function M(){e.nextTick(()=>{const l=y.value.head.map((i,c)=>[[i.name],[y.value.body[c]],[isNaN(y.value.body[c]/v.value)?"-":y.value.body[c]/v.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-mood-radar"})})}const g=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>',Number(v.value.toFixed(t.value.table.td.roundingValue)).toLocaleString(),"100%"],a=y.value.head.map((c,k)=>[{color:c.color,name:c.name},y.value.body[k].toFixed(t.value.table.td.roundingValue),isNaN(y.value.body[k]/v.value)?"-":(y.value.body[k]/v.value*100).toFixed(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},i=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:i}});function D(){return u.value}function P(){f.value.showTable=!f.value.showTable}const b=e.ref(!1);function j(l){b.value=l}return T({getData:D,generatePdf:_,generateCsv:M,generateImage:V,toggleTable:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:N,id:`${h.value}`,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}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`)},[e.createVNode(W._sfc_main,{config:{title:{cy:"mood-radar-title",...t.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(B.UserOptions,{key:1,ref_key:"details",ref:A,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(x),isImaging:e.unref(w),uid:h.value,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,titles:{...t.value.userOptions.buttonTitles},chartElement:N.value,onToggleFullscreen:j,onGeneratePdf:e.unref(_),onGenerateCsv:M,onGenerateImage:e.unref(V),onToggleTable:P},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.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}: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:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(n.XMLNS),viewBox:`0 0 ${d.value.width} ${d.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),style:e.normalizeStyle(`overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.layout.dataPolygon.color+e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]},null,8,Q),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(n.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100)}${e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]}`},null,8,Z)],8,J)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.coordinates,o=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.width/2,y1:d.value.height/2,x2:o.x,y2:o.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,ee))),256)),e.createElementVNode("path",{d:C.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,te),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,oe),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=o=>r.value=5),onMouseleave:a[1]||(a[1]=o=>r.value=null),cx:"128",cy:"25",r:"20",fill:r.value===5?t.value.style.chart.layout.smileys.colors[5]+"33":"transparent"},null,40,le),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,ae),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=o=>r.value=4),onMouseleave:a[3]||(a[3]=o=>r.value=null),cx:"227",cy:"95.5",r:"20",fill:r.value===4?t.value.style.chart.layout.smileys.colors[4]+"33":"transparent"},null,40,re),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,ne),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=o=>r.value=3),onMouseleave:a[5]||(a[5]=o=>r.value=null),cx:"190",cy:"213.5",r:"20",fill:r.value===3?t.value.style.chart.layout.smileys.colors[3]+"33":"transparent"},null,40,se),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,ue),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=o=>r.value=2),onMouseleave:a[7]||(a[7]=o=>r.value=null),cx:"65",cy:"213.5",r:"20",fill:r.value===2?t.value.style.chart.layout.smileys.colors[2]+"33":"transparent"},null,40,ie),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,ce),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=o=>r.value=1),onMouseleave:a[9]||(a[9]=o=>r.value=null),cx:"29",cy:"95.5",r:"20",fill:r.value===1?t.value.style.chart.layout.smileys.colors[1]+"33":"transparent"},null,40,de),e.createElementVNode("path",{d:e.unref(n.makePath)($.value.map(o=>o.plots)),stroke:t.value.style.chart.layout.dataPolygon.stroke,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${h.value})`:t.value.style.chart.layout.dataPolygon.color+e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]},null,8,ye),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value.map(o=>o.plots),(o,i)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${r.value==o.key?"1":"0"}`)},[e.createElementVNode("line",{x1:o.x,y1:o.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,ve),e.createElementVNode("circle",{cx:o.x,cy:o.y,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,me),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,he),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?145:120,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":t.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(Number(o.value.toFixed(t.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()),9,ke),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(Number((o.value/v.value*100).toFixed(t.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString())+"%) ",9,pe)],4))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Y)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",fe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(x)||e.unref(w)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(H.default,{key:4,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(G.Legend,{key:5,legendSet:u.value,config:O.value,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:o,index:i})=>[e.createElementVNode("div",{onClick:()=>z(o.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[o.key==1?(e.openBlock(),e.createBlock(p.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==2?(e.openBlock(),e.createBlock(p.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==3?(e.openBlock(),e.createBlock(p.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==4?(e.openBlock(),e.createBlock(p.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==5?(e.openBlock(),e.createBlock(p.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",be,e.toDisplayString(o.value),1),e.createTextVNode(" ("+e.toDisplayString((isNaN(o.proportion)?0:o.proportion*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1)],8,ge)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:u.value},void 0,!0),m.value?(e.openBlock(),e.createBlock(R.default,{key:6,hideDetails:"",config:{open:f.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.createVNode(U.DataTable,{colNames:g.value.colNames,head:g.value.head,body:g.value.body,config:g.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[10]||(a[10]=o=>f.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ce)]),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,K))}},xe=X._export_sfc(Ne,[["__scopeId","data-v-0751dc77"]]);exports.default=xe;
|