vue-data-ui 2.12.5 → 2.12.7-beta.0
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 +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { _ as hl } from "./PenAndPaper-DLsvRwoD.js";
|
|
12
|
-
import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
-
import { u as pl } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
-
import { _ as fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const bl = ["id"], ml = {
|
|
1
|
+
import { useCssVars as Qe, defineAsyncComponent as X, computed as f, ref as b, watch as ze, shallowRef as Ze, onMounted as el, onBeforeUnmount as ll, createElementBlock as i, openBlock as o, unref as r, normalizeStyle as T, normalizeClass as ee, createBlock as W, createCommentVNode as c, createVNode as ve, createSlots as tl, withCtx as A, renderSlot as m, normalizeProps as B, guardReactiveProps as D, Fragment as _, renderList as z, createElementVNode as v, toDisplayString as x, withKeys as al, createTextVNode as ol, nextTick as sl } from "vue";
|
|
2
|
+
import { u as ul, o as nl, e as Me, c as ye, a as il, C as rl, O as q, g as vl, X as yl, G as de, i as S, f as M, v as N, q as dl, r as cl, x as hl, y as gl } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as Oe } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { u as pl } from "./usePrinter-CRCbl1WG.js";
|
|
5
|
+
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as bl } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import ml from "./vue-ui-accordion-CmCs2yR2.js";
|
|
8
|
+
import xl from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const kl = ["id"], _l = {
|
|
16
11
|
key: 2,
|
|
17
12
|
style: "width:100%;background:transparent"
|
|
18
|
-
},
|
|
13
|
+
}, Cl = ["xmlns", "viewBox"], $l = ["width", "height"], Ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], zl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ml = ["font-size", "font-weight", "fill", "x", "y"], Ol = ["x", "y", "width", "height", "onMouseover", "onClick"], Sl = { key: 0 }, Nl = ["font-size", "fill", "x", "y", "font-weight"], Vl = ["font-size", "fill", "x", "y", "font-weight"], Fl = { key: 1 }, Il = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Pl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Rl = { key: 2 }, Xl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Bl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Dl = { key: 4 }, El = ["x", "y", "width", "height", "stroke", "stroke-width"], Gl = { key: 5 }, Ul = ["id"], Yl = ["stop-color"], Hl = ["stop-color"], jl = ["x", "y", "font-size", "fill"], Wl = ["x", "y", "height", "rx", "fill"], ql = ["x", "y", "font-size", "fill"], Kl = ["stroke", "x1", "x2", "y1", "y2"], Jl = ["fill", "d"], Ql = { key: 6 }, Zl = {
|
|
19
14
|
id: "colorScaleHorizontal",
|
|
20
15
|
x1: "0%",
|
|
21
16
|
x2: "100%",
|
|
22
17
|
y1: "0%",
|
|
23
18
|
y2: "0%"
|
|
24
|
-
},
|
|
19
|
+
}, et = ["stop-color"], lt = ["stop-color"], tt = ["x", "y", "width", "height", "rx"], at = ["x", "y", "font-size", "fill"], ot = ["x", "y", "font-size", "fill"], st = ["stroke", "x1", "x2", "y1", "y2"], ut = ["fill", "d"], nt = {
|
|
25
20
|
key: 5,
|
|
26
21
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
22
|
+
}, it = {
|
|
28
23
|
key: 6,
|
|
29
24
|
ref: "source",
|
|
30
25
|
dir: "auto"
|
|
31
|
-
},
|
|
26
|
+
}, rt = { class: "vue-ui-data-table" }, vt = { key: 0 }, yt = ["data-cell"], dt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ct = ["data-cell"], ht = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, gt = {
|
|
32
27
|
__name: "vue-ui-heatmap",
|
|
33
28
|
props: {
|
|
34
29
|
config: {
|
|
@@ -45,88 +40,90 @@ const bl = ["id"], ml = {
|
|
|
45
40
|
}
|
|
46
41
|
},
|
|
47
42
|
emits: ["selectDatapoint"],
|
|
48
|
-
setup(
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
setup(E, { expose: Se, emit: Ne }) {
|
|
44
|
+
Qe((l) => ({
|
|
45
|
+
bdf046b2: l.tdo
|
|
51
46
|
}));
|
|
52
|
-
const { vue_ui_heatmap:
|
|
53
|
-
|
|
47
|
+
const Ve = X(() => import("./BaseIcon-CZdMutjs.js")), Fe = X(() => import("./PackageVersion-CLY-udAA.js")), Ie = X(() => import("./PenAndPaper-B9na2mbr.js")), Pe = X(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Re = X(() => import("./Tooltip-C9rxJ-Ru.js")), Xe = X(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_heatmap: Be } = ul(), y = E, De = Ne, K = f(() => !!y.dataset && y.dataset.length);
|
|
48
|
+
nl(y.dataset) && Me({
|
|
54
49
|
componentName: "VueUiHeatmap",
|
|
55
50
|
type: "dataset"
|
|
56
51
|
});
|
|
57
|
-
const
|
|
58
|
-
get: () =>
|
|
52
|
+
const G = b(ye()), le = b(null), Ee = b(null), te = b(!1), ae = b(""), ce = b(void 0), U = b(null), he = b(0), ge = b(null), Ge = b(null), pe = b(!1), fe = b(0), e = f({
|
|
53
|
+
get: () => we(),
|
|
59
54
|
set: (l) => l
|
|
60
|
-
}), { userOptionsVisible:
|
|
61
|
-
function
|
|
62
|
-
const l =
|
|
55
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: be, keepUserOptionState: me } = fl({ config: e.value }), { svgRef: xe } = bl({ config: e.value.style.title });
|
|
56
|
+
function we() {
|
|
57
|
+
const l = Oe({
|
|
63
58
|
userConfig: y.config,
|
|
64
|
-
defaultConfig:
|
|
59
|
+
defaultConfig: Be
|
|
65
60
|
});
|
|
66
61
|
let s = {};
|
|
67
62
|
return l.theme ? s = {
|
|
68
|
-
...
|
|
69
|
-
userConfig:
|
|
63
|
+
...Oe({
|
|
64
|
+
userConfig: il.vue_ui_heatmap[l.theme] || y.config,
|
|
70
65
|
defaultConfig: l
|
|
71
66
|
})
|
|
72
|
-
} : s = l, y.config &&
|
|
67
|
+
} : s = l, y.config && rl(y.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = y.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
73
68
|
}
|
|
74
|
-
|
|
75
|
-
e.value =
|
|
76
|
-
}, { deep: !0 }),
|
|
77
|
-
|
|
69
|
+
ze(() => y.config, (l) => {
|
|
70
|
+
e.value = we(), oe.value = !e.value.userOptions.showOnChartHover, se(), fe.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.tooltip.show;
|
|
71
|
+
}, { deep: !0 }), ze(() => y.dataset, () => {
|
|
72
|
+
se();
|
|
78
73
|
}, { deep: !0 });
|
|
79
|
-
const { isPrinting:
|
|
80
|
-
elementId: `heatmap__${
|
|
74
|
+
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = pl({
|
|
75
|
+
elementId: `heatmap__${G.value}`,
|
|
81
76
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
82
77
|
options: e.value.userOptions.print
|
|
83
|
-
}),
|
|
78
|
+
}), Ue = f(() => e.value.userOptions.show && !e.value.style.title.text), C = b({
|
|
84
79
|
showTable: e.value.table.show,
|
|
85
80
|
showTooltip: e.value.style.tooltip.show
|
|
86
|
-
}),
|
|
87
|
-
function
|
|
88
|
-
new ResizeObserver((
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
}), Ye = f(() => e.value.table.responsiveBreakpoint), P = Ze(null);
|
|
82
|
+
function He() {
|
|
83
|
+
P.value && P.value.disconnect(), P.value = new ResizeObserver((l) => {
|
|
84
|
+
l.forEach((s) => {
|
|
85
|
+
pe.value = s.contentRect.width < Ye.value;
|
|
91
86
|
});
|
|
92
|
-
}).observe(
|
|
87
|
+
}), P.value.observe(ge.value);
|
|
93
88
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
el(se), ll(() => {
|
|
90
|
+
P.value && P.value.disconnect();
|
|
91
|
+
});
|
|
92
|
+
function se() {
|
|
93
|
+
He();
|
|
97
94
|
}
|
|
98
|
-
const V = f(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length))),
|
|
95
|
+
const V = f(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length))), $ = f(() => {
|
|
99
96
|
const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height, s = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (V.value < y.dataset.length ? y.dataset.length : V.value) * e.value.style.layout.cells.height, n = l + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
|
|
100
97
|
return {
|
|
101
98
|
height: l,
|
|
102
99
|
heightWithLegend: n,
|
|
103
100
|
width: s
|
|
104
101
|
};
|
|
105
|
-
}),
|
|
102
|
+
}), J = f(() => e.value.style.legend.position), t = f(() => ({
|
|
106
103
|
top: e.value.style.layout.padding.top,
|
|
107
104
|
left: e.value.style.layout.padding.left,
|
|
108
|
-
right:
|
|
109
|
-
bottom:
|
|
110
|
-
height:
|
|
111
|
-
width:
|
|
112
|
-
})),
|
|
105
|
+
right: $.value.width - e.value.style.layout.padding.right - (J.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
106
|
+
bottom: $.value.height - e.value.style.layout.padding.bottom,
|
|
107
|
+
height: $.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
108
|
+
width: $.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (J.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
109
|
+
})), ue = f(() => a.value.height * y.dataset.length), L = f(() => Math.max(...y.dataset.flatMap((l) => l.values))), F = f(() => Math.min(...y.dataset.flatMap((l) => l.values))), I = f(() => {
|
|
113
110
|
const l = y.dataset.flatMap((n) => n.values);
|
|
114
111
|
return l.reduce((n, u) => n + u, 0) / l.length;
|
|
115
112
|
}), a = f(() => ({
|
|
116
113
|
width: t.value.width / V.value,
|
|
117
114
|
height: t.value.width / (V.value < y.dataset.length ? y.dataset.length : V.value)
|
|
118
115
|
})), g = f(() => {
|
|
119
|
-
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((h) => h.name), s = e.value.style.layout.dataLabels.xAxis.values, n = y.dataset.map((h) => h.values.reduce((w,
|
|
116
|
+
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((h) => h.name), s = e.value.style.layout.dataLabels.xAxis.values, n = y.dataset.map((h) => h.values.reduce((w, re) => w + re, 0)), u = Math.max(...n), d = Math.min(...n), p = [];
|
|
120
117
|
for (let h = 0; h < V.value; h += 1)
|
|
121
|
-
p.push(y.dataset.map((w) => w.values[h] || 0).reduce((w,
|
|
122
|
-
const k = Math.max(...p),
|
|
118
|
+
p.push(y.dataset.map((w) => w.values[h] || 0).reduce((w, re) => w + re, 0));
|
|
119
|
+
const k = Math.max(...p), ie = Math.min(...p);
|
|
123
120
|
return {
|
|
124
121
|
yTotals: n.map((h) => {
|
|
125
122
|
const w = isNaN(h / u) ? 0 : h / u;
|
|
126
123
|
return {
|
|
127
124
|
total: h,
|
|
128
125
|
proportion: w,
|
|
129
|
-
color:
|
|
126
|
+
color: q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, d, u, h)
|
|
130
127
|
};
|
|
131
128
|
}),
|
|
132
129
|
xTotals: p.map((h) => {
|
|
@@ -134,18 +131,18 @@ const bl = ["id"], ml = {
|
|
|
134
131
|
return {
|
|
135
132
|
total: h,
|
|
136
133
|
proportion: w,
|
|
137
|
-
color:
|
|
134
|
+
color: q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ie, k, h)
|
|
138
135
|
};
|
|
139
136
|
}),
|
|
140
137
|
yLabels: l,
|
|
141
138
|
xLabels: s.slice(0, V.value)
|
|
142
139
|
};
|
|
143
|
-
}),
|
|
144
|
-
|
|
140
|
+
}), Q = f(() => (y.dataset.forEach((l, s) => {
|
|
141
|
+
vl({
|
|
145
142
|
datasetObject: l,
|
|
146
143
|
requiredAttributes: ["values"]
|
|
147
144
|
}).forEach((n) => {
|
|
148
|
-
|
|
145
|
+
Me({
|
|
149
146
|
componentName: "VueUiHeatmap",
|
|
150
147
|
type: "datasetSerieAttribute",
|
|
151
148
|
property: "values",
|
|
@@ -156,44 +153,44 @@ const bl = ["id"], ml = {
|
|
|
156
153
|
...l,
|
|
157
154
|
temperatures: (l.values || []).map((s, n) => s >= I.value ? {
|
|
158
155
|
side: "up",
|
|
159
|
-
color:
|
|
156
|
+
color: q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, s),
|
|
160
157
|
ratio: Math.abs(Math.abs(s - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(s - I.value) / Math.abs(L.value - I.value)),
|
|
161
158
|
value: s,
|
|
162
159
|
yAxisName: l.name,
|
|
163
160
|
xAxisName: g.value.xLabels[n],
|
|
164
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
161
|
+
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
165
162
|
} : {
|
|
166
163
|
side: "down",
|
|
167
164
|
ratio: Math.abs(1 - Math.abs(s) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(s) / Math.abs(I.value)),
|
|
168
|
-
color:
|
|
165
|
+
color: q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, s),
|
|
169
166
|
value: s,
|
|
170
167
|
yAxisName: l.name,
|
|
171
168
|
xAxisName: g.value.xLabels[n],
|
|
172
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
169
|
+
id: `vue-data-ui-heatmap-cell-${ye()}`
|
|
173
170
|
})
|
|
174
|
-
})))), O = b(null),
|
|
175
|
-
function
|
|
176
|
-
|
|
177
|
-
const { value: d, yAxisName: p, xAxisName: k, id:
|
|
178
|
-
|
|
171
|
+
})))), O = b(null), Y = b(null);
|
|
172
|
+
function je(l, s, n, u) {
|
|
173
|
+
U.value = { x: n, y: u };
|
|
174
|
+
const { value: d, yAxisName: p, xAxisName: k, id: ie } = l;
|
|
175
|
+
ce.value = ie, O.value = d, Y.value = {
|
|
179
176
|
datapoint: l,
|
|
180
177
|
seriesIndex: s,
|
|
181
|
-
series:
|
|
178
|
+
series: Q.value,
|
|
182
179
|
config: e.value
|
|
183
|
-
},
|
|
180
|
+
}, te.value = !0;
|
|
184
181
|
let h = "";
|
|
185
182
|
const w = e.value.style.tooltip.customFormat;
|
|
186
|
-
|
|
183
|
+
hl(w) && gl(() => w({
|
|
187
184
|
datapoint: l,
|
|
188
185
|
seriesIndex: s,
|
|
189
|
-
series:
|
|
186
|
+
series: Q.value,
|
|
190
187
|
config: e.value
|
|
191
|
-
})) ?
|
|
188
|
+
})) ? ae.value = w({
|
|
192
189
|
datapoint: l,
|
|
193
190
|
seriesIndex: s,
|
|
194
|
-
series:
|
|
191
|
+
series: Q.value,
|
|
195
192
|
config: e.value
|
|
196
|
-
}) : (h += `<div>${p} ${k ? `${k}` : ""}</div>`, h += `<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:${
|
|
193
|
+
}) : (h += `<div>${p} ${k ? `${k}` : ""}</div>`, h += `<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:${q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, d)}">⬤</span><span>${isNaN(d) ? "-" : S(
|
|
197
194
|
e.value.style.layout.cells.value.formatter,
|
|
198
195
|
d,
|
|
199
196
|
M({
|
|
@@ -203,10 +200,10 @@ const bl = ["id"], ml = {
|
|
|
203
200
|
r: e.value.style.tooltip.roundingValue
|
|
204
201
|
}),
|
|
205
202
|
{ datapoint: l, seriesIndex: s }
|
|
206
|
-
)}</span></div>`,
|
|
203
|
+
)}</span></div>`, ae.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
207
204
|
}
|
|
208
|
-
const
|
|
209
|
-
function
|
|
205
|
+
const H = f(() => t.value.top + ue.value * (1 - O.value / L.value)), j = f(() => t.value.left + ($.value.width - t.value.left - e.value.style.layout.padding.right) * (O.value / L.value));
|
|
206
|
+
function We(l) {
|
|
210
207
|
return S(
|
|
211
208
|
e.value.style.layout.cells.value.formatter,
|
|
212
209
|
g.value.yTotals[l].total,
|
|
@@ -219,7 +216,7 @@ const bl = ["id"], ml = {
|
|
|
219
216
|
{ datapoint: g.value.yTotals[l], rowIndex: l }
|
|
220
217
|
);
|
|
221
218
|
}
|
|
222
|
-
function
|
|
219
|
+
function qe(l) {
|
|
223
220
|
return S(
|
|
224
221
|
e.value.style.layout.cells.value.formatter,
|
|
225
222
|
g.value.xTotals[l].total,
|
|
@@ -238,8 +235,8 @@ const bl = ["id"], ml = {
|
|
|
238
235
|
})), s = y.dataset.map((n) => n.values);
|
|
239
236
|
return { head: l, body: s };
|
|
240
237
|
});
|
|
241
|
-
function
|
|
242
|
-
|
|
238
|
+
function Le() {
|
|
239
|
+
sl(() => {
|
|
243
240
|
const l = ["", ...y.dataset.map((d, p) => d.name)], s = [];
|
|
244
241
|
for (let d = 0; d < g.value.xLabels.length; d += 1) {
|
|
245
242
|
const p = [g.value.xLabels[d]];
|
|
@@ -247,61 +244,61 @@ const bl = ["id"], ml = {
|
|
|
247
244
|
p.push([y.dataset[k].values[d]]);
|
|
248
245
|
s.push(p);
|
|
249
246
|
}
|
|
250
|
-
const n = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([l]).concat(s), u =
|
|
251
|
-
|
|
247
|
+
const n = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([l]).concat(s), u = dl(n);
|
|
248
|
+
cl({ csvContent: u, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
252
249
|
});
|
|
253
250
|
}
|
|
254
|
-
const
|
|
255
|
-
function
|
|
256
|
-
|
|
251
|
+
const R = b(!1);
|
|
252
|
+
function Ke(l) {
|
|
253
|
+
R.value = l, he.value += 1;
|
|
257
254
|
}
|
|
258
|
-
function
|
|
259
|
-
|
|
255
|
+
function Te() {
|
|
256
|
+
C.value.showTable = !C.value.showTable;
|
|
260
257
|
}
|
|
261
|
-
function
|
|
262
|
-
|
|
258
|
+
function Ae() {
|
|
259
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
263
260
|
}
|
|
264
|
-
const
|
|
265
|
-
function
|
|
266
|
-
|
|
261
|
+
const Z = b(!1);
|
|
262
|
+
function ne() {
|
|
263
|
+
Z.value = !Z.value;
|
|
267
264
|
}
|
|
268
|
-
function
|
|
269
|
-
|
|
265
|
+
function Je(l) {
|
|
266
|
+
De("selectDatapoint", l);
|
|
270
267
|
}
|
|
271
|
-
return
|
|
272
|
-
generatePdf:
|
|
273
|
-
generateCsv:
|
|
274
|
-
generateImage:
|
|
275
|
-
toggleTable:
|
|
276
|
-
toggleTooltip:
|
|
277
|
-
toggleAnnotator:
|
|
268
|
+
return Se({
|
|
269
|
+
generatePdf: Ce,
|
|
270
|
+
generateCsv: Le,
|
|
271
|
+
generateImage: $e,
|
|
272
|
+
toggleTable: Te,
|
|
273
|
+
toggleTooltip: Ae,
|
|
274
|
+
toggleAnnotator: ne
|
|
278
275
|
}), (l, s) => (o(), i("div", {
|
|
279
276
|
ref_key: "heatmapChart",
|
|
280
|
-
ref:
|
|
281
|
-
class:
|
|
277
|
+
ref: le,
|
|
278
|
+
class: ee(`vue-ui-heatmap ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
282
279
|
style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
|
|
283
|
-
id: `heatmap__${
|
|
284
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
285
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
280
|
+
id: `heatmap__${G.value}`,
|
|
281
|
+
onMouseenter: s[3] || (s[3] = () => r(be)(!0)),
|
|
282
|
+
onMouseleave: s[4] || (s[4] = () => r(be)(!1))
|
|
286
283
|
}, [
|
|
287
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
284
|
+
e.value.userOptions.buttons.annotator ? (o(), W(r(Ie), {
|
|
288
285
|
key: 0,
|
|
289
|
-
svgRef: r(
|
|
286
|
+
svgRef: r(xe),
|
|
290
287
|
backgroundColor: e.value.style.backgroundColor,
|
|
291
288
|
color: e.value.style.color,
|
|
292
|
-
active:
|
|
293
|
-
onClose:
|
|
289
|
+
active: Z.value,
|
|
290
|
+
onClose: ne
|
|
294
291
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
295
|
-
|
|
292
|
+
Ue.value ? (o(), i("div", {
|
|
296
293
|
key: 1,
|
|
297
294
|
ref_key: "noTitle",
|
|
298
|
-
ref:
|
|
295
|
+
ref: Ge,
|
|
299
296
|
class: "vue-data-ui-no-title-space",
|
|
300
297
|
style: "height:36px; width: 100%;background:transparent"
|
|
301
298
|
}, null, 512)) : c("", !0),
|
|
302
|
-
e.value.style.title.text ? (o(), i("div",
|
|
303
|
-
(o(),
|
|
304
|
-
key: `title_${
|
|
299
|
+
e.value.style.title.text ? (o(), i("div", _l, [
|
|
300
|
+
(o(), W(xl, {
|
|
301
|
+
key: `title_${fe.value}`,
|
|
305
302
|
config: {
|
|
306
303
|
title: {
|
|
307
304
|
cy: "heatmap-div-title",
|
|
@@ -314,43 +311,43 @@ const bl = ["id"], ml = {
|
|
|
314
311
|
}
|
|
315
312
|
}, null, 8, ["config"]))
|
|
316
313
|
])) : c("", !0),
|
|
317
|
-
e.value.userOptions.show &&
|
|
314
|
+
e.value.userOptions.show && K.value && (r(me) || r(oe)) ? (o(), W(r(Xe), {
|
|
318
315
|
ref_key: "details",
|
|
319
|
-
ref:
|
|
320
|
-
key: `user_options_${
|
|
316
|
+
ref: Ee,
|
|
317
|
+
key: `user_options_${he.value}`,
|
|
321
318
|
backgroundColor: e.value.style.backgroundColor,
|
|
322
319
|
color: e.value.style.color,
|
|
323
|
-
isImaging: r(
|
|
324
|
-
isPrinting: r(
|
|
325
|
-
uid:
|
|
320
|
+
isImaging: r(_e),
|
|
321
|
+
isPrinting: r(ke),
|
|
322
|
+
uid: G.value,
|
|
326
323
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
327
324
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
328
325
|
hasImg: e.value.userOptions.buttons.img,
|
|
329
326
|
hasXls: e.value.userOptions.buttons.csv,
|
|
330
327
|
hasTable: e.value.userOptions.buttons.table,
|
|
331
328
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
332
|
-
isFullscreen:
|
|
333
|
-
isTooltip:
|
|
329
|
+
isFullscreen: R.value,
|
|
330
|
+
isTooltip: C.value.showTooltip,
|
|
334
331
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
335
|
-
chartElement:
|
|
332
|
+
chartElement: le.value,
|
|
336
333
|
position: e.value.userOptions.position,
|
|
337
334
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
338
|
-
isAnnotation:
|
|
339
|
-
onToggleFullscreen:
|
|
340
|
-
onGeneratePdf: r(
|
|
341
|
-
onGenerateCsv:
|
|
342
|
-
onGenerateImage: r(
|
|
343
|
-
onToggleTable:
|
|
344
|
-
onToggleTooltip:
|
|
345
|
-
onToggleAnnotator:
|
|
335
|
+
isAnnotation: Z.value,
|
|
336
|
+
onToggleFullscreen: Ke,
|
|
337
|
+
onGeneratePdf: r(Ce),
|
|
338
|
+
onGenerateCsv: Le,
|
|
339
|
+
onGenerateImage: r($e),
|
|
340
|
+
onToggleTable: Te,
|
|
341
|
+
onToggleTooltip: Ae,
|
|
342
|
+
onToggleAnnotator: ne,
|
|
346
343
|
style: T({
|
|
347
|
-
visibility: r(
|
|
344
|
+
visibility: r(me) ? r(oe) ? "visible" : "hidden" : "visible"
|
|
348
345
|
})
|
|
349
|
-
},
|
|
346
|
+
}, tl({ _: 2 }, [
|
|
350
347
|
l.$slots.menuIcon ? {
|
|
351
348
|
name: "menuIcon",
|
|
352
349
|
fn: A(({ isOpen: n, color: u }) => [
|
|
353
|
-
m(l.$slots, "menuIcon",
|
|
350
|
+
m(l.$slots, "menuIcon", B(D({ isOpen: n, color: u })), void 0, !0)
|
|
354
351
|
]),
|
|
355
352
|
key: "0"
|
|
356
353
|
} : void 0,
|
|
@@ -392,40 +389,40 @@ const bl = ["id"], ml = {
|
|
|
392
389
|
l.$slots.optionFullscreen ? {
|
|
393
390
|
name: "optionFullscreen",
|
|
394
391
|
fn: A(({ toggleFullscreen: n, isFullscreen: u }) => [
|
|
395
|
-
m(l.$slots, "optionFullscreen",
|
|
392
|
+
m(l.$slots, "optionFullscreen", B(D({ toggleFullscreen: n, isFullscreen: u })), void 0, !0)
|
|
396
393
|
]),
|
|
397
394
|
key: "6"
|
|
398
395
|
} : void 0,
|
|
399
396
|
l.$slots.optionAnnotator ? {
|
|
400
397
|
name: "optionAnnotator",
|
|
401
398
|
fn: A(({ toggleAnnotator: n, isAnnotator: u }) => [
|
|
402
|
-
m(l.$slots, "optionAnnotator",
|
|
399
|
+
m(l.$slots, "optionAnnotator", B(D({ toggleAnnotator: n, isAnnotator: u })), void 0, !0)
|
|
403
400
|
]),
|
|
404
401
|
key: "7"
|
|
405
402
|
} : void 0
|
|
406
403
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
407
|
-
|
|
404
|
+
K.value ? (o(), i("svg", {
|
|
408
405
|
key: 4,
|
|
409
406
|
ref_key: "svgRef",
|
|
410
|
-
ref:
|
|
411
|
-
xmlns: r(
|
|
412
|
-
class:
|
|
413
|
-
viewBox: `0 0 ${
|
|
407
|
+
ref: xe,
|
|
408
|
+
xmlns: r(yl),
|
|
409
|
+
class: ee({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
410
|
+
viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
|
|
414
411
|
style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
415
412
|
}, [
|
|
416
|
-
|
|
413
|
+
ve(r(Fe)),
|
|
417
414
|
l.$slots["chart-background"] ? (o(), i("foreignObject", {
|
|
418
415
|
key: 0,
|
|
419
416
|
x: 0,
|
|
420
417
|
y: 0,
|
|
421
|
-
width:
|
|
422
|
-
height:
|
|
418
|
+
width: $.value.width,
|
|
419
|
+
height: $.value.heightWithLegend,
|
|
423
420
|
style: {
|
|
424
421
|
pointerEvents: "none"
|
|
425
422
|
}
|
|
426
423
|
}, [
|
|
427
424
|
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
428
|
-
], 8,
|
|
425
|
+
], 8, $l)) : c("", !0),
|
|
429
426
|
e.value.style.layout.cells.columnTotal.color.show ? (o(), i(_, { key: 1 }, [
|
|
430
427
|
(o(!0), i(_, null, z(g.value.xTotals, (n, u) => (o(), i("rect", {
|
|
431
428
|
x: t.value.left + a.value.width * u + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
@@ -435,7 +432,7 @@ const bl = ["id"], ml = {
|
|
|
435
432
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
436
433
|
stroke: e.value.style.backgroundColor,
|
|
437
434
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
438
|
-
}, null, 8,
|
|
435
|
+
}, null, 8, Ll))), 256)),
|
|
439
436
|
(o(!0), i(_, null, z(g.value.xTotals, (n, u) => (o(), i("rect", {
|
|
440
437
|
x: t.value.left + a.value.width * u + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
441
438
|
y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
|
|
@@ -444,9 +441,9 @@ const bl = ["id"], ml = {
|
|
|
444
441
|
fill: n.color,
|
|
445
442
|
stroke: e.value.style.backgroundColor,
|
|
446
443
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
447
|
-
}, null, 8,
|
|
444
|
+
}, null, 8, Tl))), 256))
|
|
448
445
|
], 64)) : c("", !0),
|
|
449
|
-
(o(!0), i(_, null, z(
|
|
446
|
+
(o(!0), i(_, null, z(Q.value, (n, u) => (o(), i("g", null, [
|
|
450
447
|
(o(!0), i(_, null, z(n.temperatures, (d, p) => (o(), i("g", null, [
|
|
451
448
|
v("rect", {
|
|
452
449
|
x: t.value.left + a.value.width * p + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
@@ -456,7 +453,7 @@ const bl = ["id"], ml = {
|
|
|
456
453
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
457
454
|
stroke: e.value.style.backgroundColor,
|
|
458
455
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
459
|
-
}, null, 8,
|
|
456
|
+
}, null, 8, Al),
|
|
460
457
|
v("rect", {
|
|
461
458
|
x: t.value.left + a.value.width * p + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
462
459
|
y: t.value.top + a.value.height * u + e.value.style.layout.cells.spacing / 2,
|
|
@@ -465,13 +462,13 @@ const bl = ["id"], ml = {
|
|
|
465
462
|
fill: d.color,
|
|
466
463
|
stroke: e.value.style.backgroundColor,
|
|
467
464
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
468
|
-
}, null, 8,
|
|
465
|
+
}, null, 8, zl),
|
|
469
466
|
e.value.style.layout.cells.value.show ? (o(), i("text", {
|
|
470
467
|
key: 0,
|
|
471
468
|
"text-anchor": "middle",
|
|
472
469
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
473
470
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
474
|
-
fill: r(
|
|
471
|
+
fill: r(de)(d.color),
|
|
475
472
|
x: t.value.left + a.value.width * p + a.value.width / 2 + +(e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
476
473
|
y: t.value.top + a.value.height * u + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
477
474
|
}, x(r(S)(
|
|
@@ -484,7 +481,7 @@ const bl = ["id"], ml = {
|
|
|
484
481
|
r: e.value.style.layout.cells.value.roundingValue
|
|
485
482
|
}),
|
|
486
483
|
{ datapoint: d }
|
|
487
|
-
)), 9,
|
|
484
|
+
)), 9, Ml)) : c("", !0)
|
|
488
485
|
]))), 256)),
|
|
489
486
|
(o(!0), i(_, null, z(n.temperatures, (d, p) => (o(), i("g", null, [
|
|
490
487
|
v("rect", {
|
|
@@ -494,14 +491,14 @@ const bl = ["id"], ml = {
|
|
|
494
491
|
height: a.value.height,
|
|
495
492
|
fill: "transparent",
|
|
496
493
|
stroke: "none",
|
|
497
|
-
onMouseover: (k) =>
|
|
494
|
+
onMouseover: (k) => je(d, u, t.value.left + a.value.width * p, t.value.top + a.value.height * u),
|
|
498
495
|
onMouseout: s[0] || (s[0] = (k) => {
|
|
499
|
-
|
|
496
|
+
te.value = !1, ce.value = void 0, O.value = null, U.value = null;
|
|
500
497
|
}),
|
|
501
|
-
onClick: () =>
|
|
502
|
-
}, null, 40,
|
|
498
|
+
onClick: () => Je(d)
|
|
499
|
+
}, null, 40, Ol)
|
|
503
500
|
]))), 256)),
|
|
504
|
-
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g",
|
|
501
|
+
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g", Sl, [
|
|
505
502
|
v("text", {
|
|
506
503
|
class: "vue-ui-heatmap-row-name",
|
|
507
504
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -510,7 +507,7 @@ const bl = ["id"], ml = {
|
|
|
510
507
|
y: t.value.top + a.value.height * u + a.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY - (e.value.style.layout.cells.rowTotal.value.show ? e.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
511
508
|
"text-anchor": "end",
|
|
512
509
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
513
|
-
}, x(g.value.yLabels[u]), 9,
|
|
510
|
+
}, x(g.value.yLabels[u]), 9, Nl),
|
|
514
511
|
e.value.style.layout.cells.rowTotal.value.show ? (o(), i("text", {
|
|
515
512
|
key: 0,
|
|
516
513
|
class: "vue-ui-heatmap-row-total",
|
|
@@ -520,9 +517,9 @@ const bl = ["id"], ml = {
|
|
|
520
517
|
y: t.value.top + a.value.height * u + a.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
521
518
|
"text-anchor": "end",
|
|
522
519
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
523
|
-
}, x(
|
|
520
|
+
}, x(We(u)), 9, Vl)) : c("", !0)
|
|
524
521
|
])) : c("", !0),
|
|
525
|
-
e.value.style.layout.cells.rowTotal.color.show ? (o(), i("g",
|
|
522
|
+
e.value.style.layout.cells.rowTotal.color.show ? (o(), i("g", Fl, [
|
|
526
523
|
v("rect", {
|
|
527
524
|
x: t.value.left,
|
|
528
525
|
y: t.value.top + a.value.height * u,
|
|
@@ -531,7 +528,7 @@ const bl = ["id"], ml = {
|
|
|
531
528
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
532
529
|
stroke: e.value.style.backgroundColor,
|
|
533
530
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
534
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, Il),
|
|
535
532
|
v("rect", {
|
|
536
533
|
x: t.value.left,
|
|
537
534
|
y: t.value.top + a.value.height * u + e.value.style.layout.cells.spacing / 2,
|
|
@@ -540,10 +537,10 @@ const bl = ["id"], ml = {
|
|
|
540
537
|
fill: g.value.yTotals[u].color,
|
|
541
538
|
stroke: e.value.style.backgroundColor,
|
|
542
539
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
543
|
-
}, null, 8,
|
|
540
|
+
}, null, 8, Pl)
|
|
544
541
|
])) : c("", !0)
|
|
545
542
|
]))), 256)),
|
|
546
|
-
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g",
|
|
543
|
+
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g", Rl, [
|
|
547
544
|
(o(!0), i(_, null, z(g.value.xLabels, (n, u) => (o(), i(_, null, [
|
|
548
545
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && u % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (o(), i("text", {
|
|
549
546
|
key: 0,
|
|
@@ -553,7 +550,7 @@ const bl = ["id"], ml = {
|
|
|
553
550
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
554
551
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
555
552
|
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / g.value.xLabels.length * u + e.value.style.layout.dataLabels.xAxis.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${t.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6 - (e.value.style.layout.cells.columnTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
556
|
-
}, x(n), 9,
|
|
553
|
+
}, x(n), 9, Xl)) : c("", !0)
|
|
557
554
|
], 64))), 256))
|
|
558
555
|
])) : c("", !0),
|
|
559
556
|
e.value.style.layout.cells.columnTotal.value.show ? (o(!0), i(_, { key: 3 }, z(g.value.xLabels, (n, u) => (o(), i("text", {
|
|
@@ -562,37 +559,37 @@ const bl = ["id"], ml = {
|
|
|
562
559
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
563
560
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
564
561
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
565
|
-
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / g.value.xLabels.length * u + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (
|
|
566
|
-
}, x(
|
|
567
|
-
|
|
562
|
+
transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / g.value.xLabels.length * u + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (E.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
563
|
+
}, x(qe(u)), 9, Bl))), 256)) : c("", !0),
|
|
564
|
+
U.value ? (o(), i("g", Dl, [
|
|
568
565
|
v("rect", {
|
|
569
566
|
style: { "pointer-events": "none" },
|
|
570
|
-
x:
|
|
571
|
-
y:
|
|
567
|
+
x: U.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
|
|
568
|
+
y: U.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
572
569
|
width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
573
570
|
height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
574
571
|
fill: "transparent",
|
|
575
572
|
stroke: e.value.style.layout.cells.selected.color,
|
|
576
573
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
577
574
|
rx: 1
|
|
578
|
-
}, null, 8,
|
|
575
|
+
}, null, 8, El)
|
|
579
576
|
])) : c("", !0),
|
|
580
|
-
e.value.style.legend.show &&
|
|
577
|
+
e.value.style.legend.show && J.value === "right" ? (o(), i("g", Gl, [
|
|
581
578
|
v("defs", null, [
|
|
582
579
|
v("linearGradient", {
|
|
583
|
-
id: `colorScaleVertical_${
|
|
580
|
+
id: `colorScaleVertical_${G.value}`,
|
|
584
581
|
x2: "0%",
|
|
585
582
|
y2: "100%"
|
|
586
583
|
}, [
|
|
587
584
|
v("stop", {
|
|
588
585
|
offset: "0%",
|
|
589
586
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
590
|
-
}, null, 8,
|
|
587
|
+
}, null, 8, Yl),
|
|
591
588
|
v("stop", {
|
|
592
589
|
offset: "100%",
|
|
593
590
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
594
|
-
}, null, 8,
|
|
595
|
-
], 8,
|
|
591
|
+
}, null, 8, Hl)
|
|
592
|
+
], 8, Ul)
|
|
596
593
|
]),
|
|
597
594
|
v("text", {
|
|
598
595
|
x: t.value.right + 36 + 18,
|
|
@@ -609,18 +606,18 @@ const bl = ["id"], ml = {
|
|
|
609
606
|
s: e.value.style.layout.dataLabels.suffix,
|
|
610
607
|
r: e.value.style.legend.roundingValue
|
|
611
608
|
})
|
|
612
|
-
)), 9,
|
|
609
|
+
)), 9, jl),
|
|
613
610
|
v("rect", {
|
|
614
611
|
x: t.value.right + 36,
|
|
615
612
|
y: t.value.top,
|
|
616
613
|
width: 36,
|
|
617
|
-
height:
|
|
614
|
+
height: ue.value,
|
|
618
615
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
619
|
-
fill: `url(#colorScaleVertical_${
|
|
620
|
-
}, null, 8,
|
|
616
|
+
fill: `url(#colorScaleVertical_${G.value})`
|
|
617
|
+
}, null, 8, Wl),
|
|
621
618
|
v("text", {
|
|
622
619
|
x: t.value.right + 36 + 18,
|
|
623
|
-
y: t.value.top +
|
|
620
|
+
y: t.value.top + ue.value + e.value.style.legend.fontSize * 2.5,
|
|
624
621
|
"text-anchor": "middle",
|
|
625
622
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
626
623
|
fill: e.value.style.legend.color
|
|
@@ -633,44 +630,44 @@ const bl = ["id"], ml = {
|
|
|
633
630
|
s: e.value.style.layout.dataLabels.suffix,
|
|
634
631
|
r: e.value.style.legend.roundingValue
|
|
635
632
|
})
|
|
636
|
-
)), 9,
|
|
633
|
+
)), 9, ql),
|
|
637
634
|
O.value !== null ? (o(), i("line", {
|
|
638
635
|
key: 0,
|
|
639
|
-
stroke: r(
|
|
636
|
+
stroke: r(de)(Y.value.datapoint.color),
|
|
640
637
|
"stroke-width": "2",
|
|
641
638
|
x1: t.value.right + 36,
|
|
642
639
|
x2: t.value.right + 72,
|
|
643
|
-
y1:
|
|
644
|
-
y2:
|
|
645
|
-
}, null, 8,
|
|
640
|
+
y1: H.value,
|
|
641
|
+
y2: H.value
|
|
642
|
+
}, null, 8, Kl)) : c("", !0),
|
|
646
643
|
O.value !== null ? (o(), i("path", {
|
|
647
644
|
key: 1,
|
|
648
645
|
fill: e.value.style.color,
|
|
649
646
|
stroke: "none",
|
|
650
|
-
d: `M ${t.value.right + 36},${
|
|
651
|
-
}, null, 8,
|
|
647
|
+
d: `M ${t.value.right + 36},${H.value} ${t.value.right + 26},${H.value - 8} ${t.value.right + 26},${H.value + 8}z`
|
|
648
|
+
}, null, 8, Jl)) : c("", !0)
|
|
652
649
|
])) : c("", !0),
|
|
653
|
-
e.value.style.legend.show &&
|
|
650
|
+
e.value.style.legend.show && J.value === "bottom" ? (o(), i("g", Ql, [
|
|
654
651
|
v("defs", null, [
|
|
655
|
-
v("linearGradient",
|
|
652
|
+
v("linearGradient", Zl, [
|
|
656
653
|
v("stop", {
|
|
657
654
|
offset: "0%",
|
|
658
655
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
659
|
-
}, null, 8,
|
|
656
|
+
}, null, 8, et),
|
|
660
657
|
v("stop", {
|
|
661
658
|
offset: "100%",
|
|
662
659
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
663
|
-
}, null, 8,
|
|
660
|
+
}, null, 8, lt)
|
|
664
661
|
])
|
|
665
662
|
]),
|
|
666
663
|
v("rect", {
|
|
667
664
|
x: t.value.left,
|
|
668
665
|
y: t.value.bottom + e.value.style.layout.cells.height,
|
|
669
|
-
width:
|
|
666
|
+
width: $.value.width - t.value.left - e.value.style.layout.padding.right,
|
|
670
667
|
height: e.value.style.layout.cells.height,
|
|
671
668
|
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,
|
|
672
669
|
fill: "url(#colorScaleHorizontal)"
|
|
673
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, tt),
|
|
674
671
|
v("text", {
|
|
675
672
|
x: t.value.left,
|
|
676
673
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
@@ -686,7 +683,7 @@ const bl = ["id"], ml = {
|
|
|
686
683
|
s: e.value.style.layout.dataLabels.suffix,
|
|
687
684
|
r: e.value.style.legend.roundingValue
|
|
688
685
|
})
|
|
689
|
-
)), 9,
|
|
686
|
+
)), 9, at),
|
|
690
687
|
v("text", {
|
|
691
688
|
x: t.value.right,
|
|
692
689
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
@@ -702,32 +699,32 @@ const bl = ["id"], ml = {
|
|
|
702
699
|
s: e.value.style.layout.dataLabels.suffix,
|
|
703
700
|
r: e.value.style.legend.roundingValue
|
|
704
701
|
})
|
|
705
|
-
)), 9,
|
|
702
|
+
)), 9, ot),
|
|
706
703
|
O.value !== null ? (o(), i("line", {
|
|
707
704
|
key: 0,
|
|
708
|
-
stroke: r(
|
|
705
|
+
stroke: r(de)(Y.value.datapoint.color),
|
|
709
706
|
"stroke-width": "2",
|
|
710
|
-
x1:
|
|
711
|
-
x2:
|
|
707
|
+
x1: j.value,
|
|
708
|
+
x2: j.value,
|
|
712
709
|
y1: t.value.bottom + e.value.style.layout.cells.height,
|
|
713
710
|
y2: t.value.bottom + e.value.style.layout.cells.height * 2
|
|
714
|
-
}, null, 8,
|
|
711
|
+
}, null, 8, st)) : c("", !0),
|
|
715
712
|
O.value !== null ? (o(), i("path", {
|
|
716
713
|
key: 1,
|
|
717
714
|
fill: e.value.style.color,
|
|
718
715
|
stroke: "none",
|
|
719
|
-
d: `M ${
|
|
720
|
-
}, null, 8,
|
|
716
|
+
d: `M ${j.value},${t.value.bottom + e.value.style.layout.cells.height} ${j.value - 12},${t.value.bottom + e.value.style.layout.cells.height - 20} ${j.value + 12},${t.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
717
|
+
}, null, 8, ut)) : c("", !0)
|
|
721
718
|
])) : c("", !0),
|
|
722
|
-
m(l.$slots, "svg", { svg:
|
|
723
|
-
], 14,
|
|
724
|
-
l.$slots.watermark ? (o(), i("div",
|
|
725
|
-
m(l.$slots, "watermark",
|
|
719
|
+
m(l.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
720
|
+
], 14, Cl)) : c("", !0),
|
|
721
|
+
l.$slots.watermark ? (o(), i("div", nt, [
|
|
722
|
+
m(l.$slots, "watermark", B(D({ isPrinting: r(ke) || r(_e) })), void 0, !0)
|
|
726
723
|
])) : c("", !0),
|
|
727
|
-
l.$slots.source ? (o(), i("div",
|
|
724
|
+
l.$slots.source ? (o(), i("div", it, [
|
|
728
725
|
m(l.$slots, "source", {}, void 0, !0)
|
|
729
726
|
], 512)) : c("", !0),
|
|
730
|
-
|
|
727
|
+
K.value ? c("", !0) : (o(), W(r(Pe), {
|
|
731
728
|
key: 7,
|
|
732
729
|
config: {
|
|
733
730
|
type: "heatmap",
|
|
@@ -739,8 +736,8 @@ const bl = ["id"], ml = {
|
|
|
739
736
|
}
|
|
740
737
|
}
|
|
741
738
|
}, null, 8, ["config"])),
|
|
742
|
-
|
|
743
|
-
show:
|
|
739
|
+
ve(r(Re), {
|
|
740
|
+
show: C.value.showTooltip && te.value,
|
|
744
741
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
745
742
|
color: e.value.style.tooltip.color,
|
|
746
743
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -750,24 +747,24 @@ const bl = ["id"], ml = {
|
|
|
750
747
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
751
748
|
position: e.value.style.tooltip.position,
|
|
752
749
|
offsetY: e.value.style.tooltip.offsetY,
|
|
753
|
-
parent:
|
|
754
|
-
content:
|
|
755
|
-
isFullscreen:
|
|
750
|
+
parent: le.value,
|
|
751
|
+
content: ae.value,
|
|
752
|
+
isFullscreen: R.value,
|
|
756
753
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
757
754
|
}, {
|
|
758
755
|
"tooltip-before": A(() => [
|
|
759
|
-
m(l.$slots, "tooltip-before",
|
|
756
|
+
m(l.$slots, "tooltip-before", B(D({ ...Y.value })), void 0, !0)
|
|
760
757
|
]),
|
|
761
758
|
"tooltip-after": A(() => [
|
|
762
|
-
m(l.$slots, "tooltip-after",
|
|
759
|
+
m(l.$slots, "tooltip-after", B(D({ ...Y.value })), void 0, !0)
|
|
763
760
|
]),
|
|
764
761
|
_: 3
|
|
765
762
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
766
|
-
|
|
763
|
+
K.value ? (o(), W(ml, {
|
|
767
764
|
key: 8,
|
|
768
765
|
hideDetails: "",
|
|
769
766
|
config: {
|
|
770
|
-
open:
|
|
767
|
+
open: C.value.showTable,
|
|
771
768
|
maxHeight: 1e4,
|
|
772
769
|
body: {
|
|
773
770
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -782,32 +779,32 @@ const bl = ["id"], ml = {
|
|
|
782
779
|
content: A(() => [
|
|
783
780
|
v("div", {
|
|
784
781
|
ref_key: "tableContainer",
|
|
785
|
-
ref:
|
|
782
|
+
ref: ge,
|
|
786
783
|
class: "vue-ui-heatmap-table atom-data-table"
|
|
787
784
|
}, [
|
|
788
785
|
v("div", {
|
|
789
786
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
790
|
-
class:
|
|
787
|
+
class: ee({ "vue-ui-responsive": pe.value })
|
|
791
788
|
}, [
|
|
792
789
|
v("div", {
|
|
793
790
|
role: "button",
|
|
794
791
|
tabindex: "0",
|
|
795
792
|
style: T(`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};`),
|
|
796
|
-
onClick: s[1] || (s[1] = (n) =>
|
|
797
|
-
onKeypress: s[2] || (s[2] =
|
|
793
|
+
onClick: s[1] || (s[1] = (n) => C.value.showTable = !1),
|
|
794
|
+
onKeypress: s[2] || (s[2] = al((n) => C.value.showTable = !1, ["enter"]))
|
|
798
795
|
}, [
|
|
799
|
-
|
|
796
|
+
ve(r(Ve), {
|
|
800
797
|
name: "close",
|
|
801
798
|
stroke: e.value.table.th.color,
|
|
802
799
|
"stroke-width": 2
|
|
803
800
|
}, null, 8, ["stroke"])
|
|
804
801
|
], 36),
|
|
805
|
-
v("table",
|
|
802
|
+
v("table", rt, [
|
|
806
803
|
v("caption", {
|
|
807
804
|
style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
808
805
|
}, [
|
|
809
|
-
|
|
810
|
-
e.value.style.title.subtitle.text ? (o(), i("span",
|
|
806
|
+
ol(x(e.value.style.title.text) + " ", 1),
|
|
807
|
+
e.value.style.title.subtitle.text ? (o(), i("span", vt, x(e.value.style.title.subtitle.text), 1)) : c("", !0)
|
|
811
808
|
], 4),
|
|
812
809
|
v("thead", null, [
|
|
813
810
|
v("tr", {
|
|
@@ -817,7 +814,7 @@ const bl = ["id"], ml = {
|
|
|
817
814
|
v("th", {
|
|
818
815
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
819
816
|
}, null, 4),
|
|
820
|
-
(o(!0), i(_, null, z(
|
|
817
|
+
(o(!0), i(_, null, z(E.dataset, (n, u) => (o(), i("th", {
|
|
821
818
|
align: "right",
|
|
822
819
|
style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
823
820
|
}, x(n.name), 5))), 256))
|
|
@@ -826,7 +823,7 @@ const bl = ["id"], ml = {
|
|
|
826
823
|
v("tbody", null, [
|
|
827
824
|
(o(!0), i(_, null, z(g.value.xLabels, (n, u) => (o(), i("tr", {
|
|
828
825
|
role: "row",
|
|
829
|
-
class:
|
|
826
|
+
class: ee({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": u % 2 === 0, "vue-ui-data-table__tbody__row-odd": u % 2 !== 0 }),
|
|
830
827
|
style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
831
828
|
}, [
|
|
832
829
|
v("td", {
|
|
@@ -834,15 +831,15 @@ const bl = ["id"], ml = {
|
|
|
834
831
|
class: "vue-ui-data-table__tbody__td",
|
|
835
832
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
836
833
|
}, [
|
|
837
|
-
v("div",
|
|
838
|
-
], 12,
|
|
839
|
-
(o(!0), i(_, null, z(
|
|
834
|
+
v("div", dt, x(n), 1)
|
|
835
|
+
], 12, yt),
|
|
836
|
+
(o(!0), i(_, null, z(E.dataset, (d, p) => (o(), i("td", {
|
|
840
837
|
class: "vue-ui-data-table__tbody__td",
|
|
841
|
-
"data-cell":
|
|
838
|
+
"data-cell": E.dataset[p].name,
|
|
842
839
|
style: T(`outline:${e.value.table.td.outline}`)
|
|
843
840
|
}, [
|
|
844
|
-
v("div",
|
|
845
|
-
], 12,
|
|
841
|
+
v("div", ht, x(isNaN(d.values[u]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: d.values[u], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
842
|
+
], 12, ct))), 256))
|
|
846
843
|
], 6))), 256))
|
|
847
844
|
])
|
|
848
845
|
])
|
|
@@ -851,9 +848,9 @@ const bl = ["id"], ml = {
|
|
|
851
848
|
]),
|
|
852
849
|
_: 1
|
|
853
850
|
}, 8, ["config"])) : c("", !0)
|
|
854
|
-
], 46,
|
|
851
|
+
], 46, kl));
|
|
855
852
|
}
|
|
856
|
-
},
|
|
853
|
+
}, $t = /* @__PURE__ */ wl(gt, [["__scopeId", "data-v-2c1364d5"]]);
|
|
857
854
|
export {
|
|
858
|
-
|
|
855
|
+
$t as default
|
|
859
856
|
};
|