vue-data-ui 3.25.9 → 3.25.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-KBMdaOXg.js → PackageVersion-CEvZNFTz.js} +1 -1
- package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
- package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
- package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
- package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
- package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
- package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
- package/dist/{package-BL27Ev_h.js → package-B10eQN5L.js} +1 -1
- package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
- package/dist/{render-common-By8J0AE-.js → render-common-CZ6-MONw.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +5 -5
- package/dist/types/vue-data-ui.d.ts +21 -14
- package/dist/types/vue-ui-heatmap.d.ts +2 -0
- package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
- package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
- package/dist/{vue-data-ui-CBWuUAXT.js → vue-data-ui-zJ1rNxIN.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BSbq90H3.js → vue-ui-3d-bar-CKTAkCAN.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CrXl71iC.js → vue-ui-age-pyramid-SpPactMh.js} +3 -3
- package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
- package/dist/{vue-ui-bullet-B2Y3Wqh9.js → vue-ui-bullet-Ck398xn8.js} +3 -3
- package/dist/{vue-ui-bump-DXvvjG4I.js → vue-ui-bump-DyA47yse.js} +2 -2
- package/dist/{vue-ui-candlestick-CFqR6W56.js → vue-ui-candlestick-DCavjk1j.js} +4 -4
- package/dist/{vue-ui-carousel-table-D-ZkPRta.js → vue-ui-carousel-table-DCnVD0BJ.js} +3 -3
- package/dist/{vue-ui-chestnut-CyW3IoYC.js → vue-ui-chestnut-BDBdizBp.js} +4 -4
- package/dist/{vue-ui-chord-DS0jni9A.js → vue-ui-chord-GgA7QFUH.js} +4 -4
- package/dist/{vue-ui-circle-pack-j2ChgLWr.js → vue-ui-circle-pack-BUXTVdy3.js} +4 -4
- package/dist/{vue-ui-cursor-qOONOtcv.js → vue-ui-cursor-CEejESe_.js} +1 -1
- package/dist/{vue-ui-dag-CmeFsKhR.js → vue-ui-dag-C1c6scxC.js} +5 -5
- package/dist/{vue-ui-dashboard-C7Z5BTN4.js → vue-ui-dashboard-BZBJM7dN.js} +63 -63
- package/dist/{vue-ui-digits-Bf68x6fb.js → vue-ui-digits-CsougDlU.js} +1 -1
- package/dist/{vue-ui-donut-DzDSYgVp.js → vue-ui-donut-Be9jKelz.js} +1 -1
- package/dist/{vue-ui-donut-evolution-CDJumo0t.js → vue-ui-donut-evolution-vLMhwz4K.js} +5 -5
- package/dist/{vue-ui-donut-CkBPJW_T.js → vue-ui-donut-lBgSYKgO.js} +4 -4
- package/dist/{vue-ui-dumbbell-Cr__26dN.js → vue-ui-dumbbell-CwmA5x9G.js} +3 -3
- package/dist/{vue-ui-flow-Cz6WRi2c.js → vue-ui-flow-CRhh8SSN.js} +3 -3
- package/dist/{vue-ui-funnel-BlC7KxS6.js → vue-ui-funnel-DH1hW8Gw.js} +3 -3
- package/dist/{vue-ui-galaxy-Bg2smlcI.js → vue-ui-galaxy-CiqILfxR.js} +3 -3
- package/dist/{vue-ui-gauge-BHsaent1.js → vue-ui-gauge-CV4-Rn7K.js} +3 -3
- package/dist/{vue-ui-geo-CE3Cr0or.js → vue-ui-geo-BocLrguL.js} +5 -5
- package/dist/{vue-ui-gizmo-DqFUBEai.js → vue-ui-gizmo-6wKlI5PC.js} +1 -1
- package/dist/{vue-ui-heatmap-DXqj9ial.js → vue-ui-heatmap-DGXXRsr4.js} +169 -153
- package/dist/{vue-ui-hill-B3fPAfhL.js → vue-ui-hill-CeIZZFf5.js} +7 -7
- package/dist/{vue-ui-history-plot-CrnTnpaM.js → vue-ui-history-plot-CporPpg9.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-DqvN3imH.js → vue-ui-horizontal-bar-D2aw-8tx.js} +104 -104
- package/dist/{vue-ui-kpi-Mf318HvK.js → vue-ui-kpi-BQ967gzv.js} +1 -1
- package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
- package/dist/{vue-ui-molecule-CaLReo4h.js → vue-ui-molecule-CvDC9Ht5.js} +3 -3
- package/dist/{vue-ui-mood-radar-jkE2ENX5.js → vue-ui-mood-radar-BK1va5-H.js} +4 -4
- package/dist/{vue-ui-nested-donuts-BgMOKjil.js → vue-ui-nested-donuts-DT2zkLx2.js} +3 -3
- package/dist/{vue-ui-onion-DBN3Ev4j.js → vue-ui-onion-DPMikBzZ.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-BcJzEGJ-.js → vue-ui-parallel-coordinate-plot-DMPxUL3p.js} +3 -3
- package/dist/{vue-ui-quadrant-BvoVlxTI.js → vue-ui-quadrant-DFkIeJXo.js} +3 -3
- package/dist/{vue-ui-quick-chart-2hn8-F_C.js → vue-ui-quick-chart-CkPu6GMh.js} +4 -4
- package/dist/{vue-ui-radar-O3AjGrc-.js → vue-ui-radar-B3OOLJal.js} +3 -3
- package/dist/{vue-ui-relation-circle-CRnH2ikm.js → vue-ui-relation-circle-I6e5UxgY.js} +3 -3
- package/dist/{vue-ui-ridgeline-Blejn8LY.js → vue-ui-ridgeline-FmmdCdy9.js} +3 -3
- package/dist/{vue-ui-rings-C1U38Bp0.js → vue-ui-rings-CBtHZ5Pp.js} +3 -3
- package/dist/{vue-ui-scatter-DTsCc9hg.js → vue-ui-scatter-DzePsQEe.js} +3 -3
- package/dist/{vue-ui-skeleton-BPr3u7IL.js → vue-ui-skeleton-C347nFnE.js} +1 -1
- package/dist/{vue-ui-spark-trend-B7w4Mg8O.js → vue-ui-spark-trend-Di_7Da43.js} +1 -1
- package/dist/{vue-ui-sparkbar-lVDnYEYA.js → vue-ui-sparkbar-CbJ-fKc6.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BryoGCoc.js → vue-ui-sparkgauge-Bb9-yFTb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BdNoLb9L.js → vue-ui-sparkhistogram-kbbbDVul.js} +1 -1
- package/dist/{vue-ui-sparkline-CNFD5K6z.js → vue-ui-sparkline-BF0Fdo6v.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CZ4tGL-_.js → vue-ui-sparkstackbar-IM_l98X-.js} +2 -2
- package/dist/{vue-ui-stackbar-DfsgaZy7.js → vue-ui-stackbar-CaEXVeo5.js} +4 -4
- package/dist/{vue-ui-stackline-Cx7q2sGF.js → vue-ui-stackline-MgvhcBfm.js} +4 -4
- package/dist/{vue-ui-strip-plot-BcYhLPHM.js → vue-ui-strip-plot-CVV0t6mb.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
- package/dist/{vue-ui-table-BzF75YjN.js → vue-ui-table-nAGCIZKg.js} +2 -2
- package/dist/{vue-ui-table-sparkline-B9ICTtoE.js → vue-ui-table-sparkline-Bf2hjBwq.js} +2 -2
- package/dist/{vue-ui-thermometer-Am7llqdI.js → vue-ui-thermometer-Ccr2ZnzI.js} +3 -3
- package/dist/{vue-ui-timer-D6EvkM31.js → vue-ui-timer-DkW-P6EG.js} +1 -1
- package/dist/{vue-ui-tiremarks-DiQJu8Em.js → vue-ui-tiremarks-Bf2anKLr.js} +3 -3
- package/dist/{vue-ui-treemap-wUZpijpr.js → vue-ui-treemap-Wy61KlkN.js} +3 -3
- package/dist/{vue-ui-waffle-6hO0flDT.js → vue-ui-waffle-CkIFp-AN.js} +4 -4
- package/dist/{vue-ui-wheel-DnyCE0CK.js → vue-ui-wheel-DGhu_B8n.js} +3 -3
- package/dist/{vue-ui-word-cloud-D_MZ3gCS.js → vue-ui-word-cloud-CdRMst8U.js} +3 -3
- package/dist/{vue-ui-world-QNGY2WPz.js → vue-ui-world-Bc4hMzzB.js} +4 -4
- package/dist/{vue-ui-xy-BD-ighya.js → vue-ui-xy-CbgQs7yW.js} +1 -1
- package/dist/{vue-ui-xy-Ctcwn7Rk.js → vue-ui-xy-DybWfQrI.js} +5 -5
- package/dist/{vue-ui-xy-canvas-DUeglcdP.js → vue-ui-xy-canvas-R2xbgDOy.js} +7 -7
- package/package.json +3 -3
|
@@ -3,13 +3,13 @@ import { $ as t, $t as n, Ct as r, D as i, Pt as a, X as o, Z as s, Zt as c, b a
|
|
|
3
3
|
import { n as re, t as ie } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ae } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
5
|
import { t as oe } from "./useConfig-D32D002m.js";
|
|
6
|
-
import { t as se } from "./usePrinter-
|
|
6
|
+
import { t as se } from "./usePrinter-hohanNCX.js";
|
|
7
7
|
import { n as ce, t as le } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
8
|
import { t as ue } from "./useNestedProp-Chvyfpl-.js";
|
|
9
9
|
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as fe } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as me } from "./img-
|
|
12
|
+
import { t as me } from "./img-BkMKbWsI.js";
|
|
13
13
|
import { n as he } from "./Title-CPHi-evi.js";
|
|
14
14
|
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
|
|
@@ -282,8 +282,8 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
282
282
|
},
|
|
283
283
|
emits: ["selectDatapoint", "copyAlt"],
|
|
284
284
|
setup(e, { expose: ge, emit: qe }) {
|
|
285
|
-
ze((e) => ({
|
|
286
|
-
let Je = ke(() => import("./Tooltip-hhrkQ3Lk.js")), Et = ke(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Dt = ke(() => import("./PenAndPaper-
|
|
285
|
+
ze((e) => ({ v22af540c: e.tdo }));
|
|
286
|
+
let Je = ke(() => import("./Tooltip-hhrkQ3Lk.js")), Et = ke(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Dt = ke(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Ot = ke(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), kt = ke(() => import("./PackageVersion-CEvZNFTz.js").then((e) => e.t)), At = ke(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_heatmap: jt } = oe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = de(), A = e, Pt = qe, Ft = g({
|
|
287
287
|
get() {
|
|
288
288
|
return !!A.dataset && A.dataset.length;
|
|
289
289
|
},
|
|
@@ -589,19 +589,34 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
589
589
|
xAxisName: Z.value.xLabels[n],
|
|
590
590
|
id: `vue-data-ui-heatmap-cell-${p()}`
|
|
591
591
|
})
|
|
592
|
-
})))), Rn = g(() =>
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
})))), Rn = g(() => Q.value.flatMap((e, t) => e.temperatures.map((e, n) => {
|
|
593
|
+
let r = K.value.left + K.value.cellSize.width * n, i = K.value.top + K.value.cellSize.height * t;
|
|
594
|
+
return {
|
|
595
|
+
datapoint: e,
|
|
596
|
+
rowIndex: t,
|
|
597
|
+
columnIndex: n,
|
|
598
|
+
x: r + G.value / 2 + K.value.sumCellXHeight,
|
|
599
|
+
y: i + G.value / 2,
|
|
600
|
+
width: K.value.cellSize.width - G.value,
|
|
601
|
+
height: K.value.cellSize.height - G.value,
|
|
602
|
+
labelX: r + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
603
|
+
labelY: i + K.value.cellSize.height / 2 + F.value.value.fontSize / 3,
|
|
604
|
+
selectionX: r,
|
|
605
|
+
selectionY: i
|
|
606
|
+
};
|
|
607
|
+
}))), zn = g(() => R.value.length), Bn = Fe(Array(zn.value * H.value || 1).fill(!1)), Vn = g(() => Bn.some((e) => e));
|
|
608
|
+
function Hn(e, t) {
|
|
609
|
+
Bn[e] = t;
|
|
595
610
|
}
|
|
596
|
-
let
|
|
597
|
-
function
|
|
598
|
-
|
|
611
|
+
let Un = Fe(Array(zn.value * H.value || 1).fill(!1)), Wn = g(() => Un.some((e) => e));
|
|
612
|
+
function Gn(e, t) {
|
|
613
|
+
Un[e] = t;
|
|
599
614
|
}
|
|
600
|
-
let $ = w(null),
|
|
601
|
-
function
|
|
615
|
+
let $ = w(null), Kn = w(null);
|
|
616
|
+
function qn() {
|
|
602
617
|
Lt.value = !1, zt.value = void 0, $.value = null, M.value = null, N.value = null, nn.value = null;
|
|
603
618
|
}
|
|
604
|
-
function
|
|
619
|
+
function Jn(e) {
|
|
605
620
|
if (!z.value || !e) return;
|
|
606
621
|
let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
607
622
|
if (!t) return;
|
|
@@ -611,7 +626,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
611
626
|
y: n.top + n.height / 2
|
|
612
627
|
};
|
|
613
628
|
}
|
|
614
|
-
function
|
|
629
|
+
function Yn(e, t, n, i, a = "pointer", s = null) {
|
|
615
630
|
if (P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
616
631
|
datapoint: e,
|
|
617
632
|
seriesIndex: t
|
|
@@ -621,7 +636,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
621
636
|
y: i
|
|
622
637
|
};
|
|
623
638
|
let { value: c, yAxisName: l, xAxisName: u, id: f } = e;
|
|
624
|
-
zt.value = f, $.value = c,
|
|
639
|
+
zt.value = f, $.value = c, Kn.value = {
|
|
625
640
|
datapoint: e,
|
|
626
641
|
seriesIndex: t,
|
|
627
642
|
series: Q.value,
|
|
@@ -647,16 +662,16 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
647
662
|
datapoint: e,
|
|
648
663
|
seriesIndex: t
|
|
649
664
|
})}</span></div>`, Rt.value = `<div style="font-size:${P.value.style.tooltip.fontSize}px">${p}</div>`), a === "keyboard" && je(() => {
|
|
650
|
-
|
|
665
|
+
Jn(e.id);
|
|
651
666
|
});
|
|
652
667
|
}
|
|
653
|
-
function
|
|
668
|
+
function Xn({ datapoint: e, seriesIndex: t }) {
|
|
654
669
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
655
670
|
datapoint: e,
|
|
656
671
|
seriesIndex: t
|
|
657
672
|
}), (nn.value !== e.id || an.value !== "keyboard") && (Lt.value = !1, zt.value = void 0, $.value = null, M.value = null);
|
|
658
673
|
}
|
|
659
|
-
function
|
|
674
|
+
function Zn(e) {
|
|
660
675
|
return d(F.value.value.formatter, Z.value.yTotals[e].total, o({
|
|
661
676
|
p: I.value.prefix,
|
|
662
677
|
v: Z.value.yTotals[e].total,
|
|
@@ -667,7 +682,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
667
682
|
rowIndex: e
|
|
668
683
|
});
|
|
669
684
|
}
|
|
670
|
-
function
|
|
685
|
+
function Qn(e) {
|
|
671
686
|
return d(F.value.value.formatter, Z.value.xTotals[e].total, o({
|
|
672
687
|
p: I.value.prefix,
|
|
673
688
|
v: Z.value.xTotals[e].total,
|
|
@@ -682,7 +697,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
682
697
|
head: R.value.map((e) => ({ name: e.name })),
|
|
683
698
|
body: R.value.map((e) => e.values)
|
|
684
699
|
}));
|
|
685
|
-
function
|
|
700
|
+
function $n(e = null) {
|
|
686
701
|
je(() => {
|
|
687
702
|
let n = ["", ...R.value.map((e, t) => e.name)], r = [];
|
|
688
703
|
for (let e = 0; e < Z.value.xLabels.length; e += 1) {
|
|
@@ -706,30 +721,30 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
706
721
|
});
|
|
707
722
|
});
|
|
708
723
|
}
|
|
709
|
-
let
|
|
710
|
-
function
|
|
711
|
-
|
|
724
|
+
let er = w(!1);
|
|
725
|
+
function tr(e) {
|
|
726
|
+
er.value = e, Bt.value += 1;
|
|
712
727
|
}
|
|
713
|
-
function
|
|
728
|
+
function nr() {
|
|
714
729
|
B.value.showTable = !B.value.showTable;
|
|
715
730
|
}
|
|
716
|
-
function
|
|
731
|
+
function rr() {
|
|
717
732
|
B.value.showTooltip = !B.value.showTooltip;
|
|
718
733
|
}
|
|
719
|
-
let
|
|
720
|
-
function
|
|
721
|
-
|
|
734
|
+
let ir = w(!1);
|
|
735
|
+
function ar() {
|
|
736
|
+
ir.value = !ir.value;
|
|
722
737
|
}
|
|
723
|
-
function
|
|
738
|
+
function or(e, t) {
|
|
724
739
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
725
740
|
datapoint: e,
|
|
726
741
|
seriesIndex: t
|
|
727
742
|
}), Pt("selectDatapoint", e);
|
|
728
743
|
}
|
|
729
|
-
function
|
|
744
|
+
function sr() {
|
|
730
745
|
return Q.value;
|
|
731
746
|
}
|
|
732
|
-
async function
|
|
747
|
+
async function cr({ scale: e = 2 } = {}) {
|
|
733
748
|
if (!j.value) return;
|
|
734
749
|
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
735
750
|
domElement: j.value,
|
|
@@ -746,14 +761,14 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
746
761
|
aspectRatio: r
|
|
747
762
|
};
|
|
748
763
|
}
|
|
749
|
-
let
|
|
764
|
+
let lr = g(() => ({
|
|
750
765
|
start: 0,
|
|
751
766
|
end: H.value
|
|
752
|
-
})),
|
|
767
|
+
})), ur = g(() => Z.value.xLabels);
|
|
753
768
|
pe({
|
|
754
769
|
timeLabelsEls: Zt,
|
|
755
|
-
timeLabels:
|
|
756
|
-
slicer:
|
|
770
|
+
timeLabels: ur,
|
|
771
|
+
slicer: lr,
|
|
757
772
|
configRef: P,
|
|
758
773
|
rotationPath: [
|
|
759
774
|
"style",
|
|
@@ -777,8 +792,8 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
777
792
|
height: On
|
|
778
793
|
}), pe({
|
|
779
794
|
timeLabelsEls: Qt,
|
|
780
|
-
timeLabels:
|
|
781
|
-
slicer:
|
|
795
|
+
timeLabels: ur,
|
|
796
|
+
slicer: lr,
|
|
782
797
|
configRef: P,
|
|
783
798
|
rotationPath: [
|
|
784
799
|
"style",
|
|
@@ -803,7 +818,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
803
818
|
width: Dn,
|
|
804
819
|
height: On
|
|
805
820
|
});
|
|
806
|
-
let
|
|
821
|
+
let dr = g(() => {
|
|
807
822
|
let e = P.value.table.useDialog && !P.value.table.show, t = B.value.showTable;
|
|
808
823
|
return {
|
|
809
824
|
component: e ? At : ye,
|
|
@@ -813,7 +828,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
813
828
|
color: P.value.table.th.color,
|
|
814
829
|
headerColor: P.value.table.th.color,
|
|
815
830
|
headerBg: P.value.table.th.backgroundColor,
|
|
816
|
-
isFullscreen:
|
|
831
|
+
isFullscreen: er.value,
|
|
817
832
|
fullscreenParent: j.value,
|
|
818
833
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
819
834
|
isCursorPointer: sn.value
|
|
@@ -837,20 +852,20 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
837
852
|
Ve(() => B.value.showTable, async (e) => {
|
|
838
853
|
P.value.table.show || (e && P.value.table.useDialog && Wt.value ? (await je(), Wt.value.open()) : "close" in Wt.value && Wt.value.close());
|
|
839
854
|
});
|
|
840
|
-
let { isResponsive:
|
|
841
|
-
function
|
|
855
|
+
let { isResponsive: fr } = Ce(Vt, wn);
|
|
856
|
+
function pr() {
|
|
842
857
|
B.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
|
|
843
858
|
}
|
|
844
|
-
let
|
|
859
|
+
let mr = g(() => P.value.style.backgroundColor), hr = g(() => P.value.style.title), { isCallbackImaging: gr, isCallbackSvg: _r, generateSvg: vr, onGenerateImage: yr } = fe({
|
|
845
860
|
svg: z,
|
|
846
|
-
title:
|
|
861
|
+
title: hr,
|
|
847
862
|
legend: null,
|
|
848
863
|
legendItems: null,
|
|
849
|
-
backgroundColor:
|
|
864
|
+
backgroundColor: mr,
|
|
850
865
|
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
851
866
|
generateImage: Sn
|
|
852
867
|
});
|
|
853
|
-
async function
|
|
868
|
+
async function br() {
|
|
854
869
|
if (Pt("copyAlt", {
|
|
855
870
|
config: P.value,
|
|
856
871
|
dataset: Q.value
|
|
@@ -863,7 +878,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
863
878
|
dataset: Q.value
|
|
864
879
|
}));
|
|
865
880
|
}
|
|
866
|
-
function
|
|
881
|
+
function xr(e, t) {
|
|
867
882
|
let n = Q.value[e];
|
|
868
883
|
if (!n) return null;
|
|
869
884
|
let r = n.temperatures[t];
|
|
@@ -873,74 +888,74 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
873
888
|
columnIndex: t
|
|
874
889
|
} : null;
|
|
875
890
|
}
|
|
876
|
-
function
|
|
891
|
+
function Sr(e, t) {
|
|
877
892
|
let n = 0;
|
|
878
893
|
for (let t = 0; t < e; t += 1) n += Q.value[t]?.temperatures?.length || 0;
|
|
879
894
|
return n + t;
|
|
880
895
|
}
|
|
881
|
-
function
|
|
896
|
+
function Cr() {
|
|
882
897
|
N.value = null, nn.value = null, on.value = !0;
|
|
883
898
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
899
|
+
function wr() {
|
|
900
|
+
qn(), on.value = !1;
|
|
886
901
|
}
|
|
887
|
-
function
|
|
888
|
-
if (!z.value ||
|
|
902
|
+
function Tr(e) {
|
|
903
|
+
if (!z.value || ir.value || document.activeElement !== z.value || !Or.value.length) return;
|
|
889
904
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
890
905
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
891
906
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
892
|
-
|
|
907
|
+
qn();
|
|
893
908
|
return;
|
|
894
909
|
}
|
|
895
910
|
if (a) {
|
|
896
911
|
if (N.value === null) return;
|
|
897
|
-
let e =
|
|
912
|
+
let e = Or.value[N.value];
|
|
898
913
|
if (!e) return;
|
|
899
|
-
|
|
914
|
+
or(e.cell, e.rowIndex);
|
|
900
915
|
return;
|
|
901
916
|
}
|
|
902
|
-
let s = N.value === null ? null :
|
|
917
|
+
let s = N.value === null ? null : Or.value[N.value];
|
|
903
918
|
if (!s) {
|
|
904
|
-
let e = zt.value ?
|
|
905
|
-
if (e !== null && e >= 0 && e <
|
|
906
|
-
let a =
|
|
919
|
+
let e = zt.value ? Or.value.findIndex((e) => e.cell.id === zt.value) : null;
|
|
920
|
+
if (e !== null && e >= 0 && e < Or.value.length) {
|
|
921
|
+
let a = Or.value[e];
|
|
907
922
|
if (!a) return;
|
|
908
923
|
let o = a.rowIndex, s = a.columnIndex;
|
|
909
924
|
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
910
|
-
let c =
|
|
925
|
+
let c = Dr.value.rowCount;
|
|
911
926
|
if (c <= 0) return;
|
|
912
927
|
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
913
928
|
let l = Q.value[o];
|
|
914
929
|
if (!l || !l.temperatures.length) return;
|
|
915
930
|
let u = l.temperatures.length;
|
|
916
931
|
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
917
|
-
let d =
|
|
932
|
+
let d = xr(o, s);
|
|
918
933
|
if (!d) return;
|
|
919
|
-
let ee =
|
|
920
|
-
|
|
934
|
+
let ee = Sr(o, s), f = K.value.left + K.value.cellSize.width * d.columnIndex, p = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
935
|
+
Yn(d.cell, d.rowIndex, f, p, "keyboard", ee);
|
|
921
936
|
return;
|
|
922
937
|
}
|
|
923
|
-
let a =
|
|
938
|
+
let a = Or.value[0];
|
|
924
939
|
if (!a) return;
|
|
925
940
|
let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
|
|
926
|
-
|
|
941
|
+
Yn(a.cell, a.rowIndex, o, s, "keyboard", 0);
|
|
927
942
|
return;
|
|
928
943
|
}
|
|
929
944
|
let c = s.rowIndex, l = s.columnIndex;
|
|
930
945
|
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
931
|
-
let u =
|
|
946
|
+
let u = Dr.value.rowCount;
|
|
932
947
|
if (u <= 0) return;
|
|
933
948
|
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
934
949
|
let d = Q.value[c];
|
|
935
950
|
if (!d || !d.temperatures.length) return;
|
|
936
951
|
let ee = d.temperatures.length;
|
|
937
952
|
l < 0 && (l = ee - 1), l >= ee && (l = 0);
|
|
938
|
-
let f =
|
|
953
|
+
let f = xr(c, l);
|
|
939
954
|
if (!f) return;
|
|
940
|
-
let p =
|
|
941
|
-
|
|
955
|
+
let p = Sr(c, l), m = K.value.left + K.value.cellSize.width * f.columnIndex, te = K.value.top + K.value.cellSize.height * f.rowIndex;
|
|
956
|
+
Yn(f.cell, f.rowIndex, m, te, "keyboard", p);
|
|
942
957
|
}
|
|
943
|
-
let
|
|
958
|
+
let Er = g(() => ({
|
|
944
959
|
headers: [P.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
|
|
945
960
|
rows: Z.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
|
|
946
961
|
let n = e.values?.[t];
|
|
@@ -951,46 +966,46 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
951
966
|
r: P.value.table.td.roundingValue
|
|
952
967
|
});
|
|
953
968
|
})])
|
|
954
|
-
})),
|
|
969
|
+
})), Dr = g(() => ({
|
|
955
970
|
rowCount: Q.value.length,
|
|
956
971
|
columnCount: Math.max(0, ...Q.value.map((e) => e.temperatures.length))
|
|
957
|
-
})),
|
|
972
|
+
})), Or = g(() => Q.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
958
973
|
cell: e,
|
|
959
974
|
rowIndex: t,
|
|
960
975
|
columnIndex: n
|
|
961
976
|
}))));
|
|
962
977
|
return ge({
|
|
963
|
-
getData:
|
|
964
|
-
getImage:
|
|
978
|
+
getData: sr,
|
|
979
|
+
getImage: cr,
|
|
965
980
|
generatePdf: xn,
|
|
966
|
-
generateCsv:
|
|
981
|
+
generateCsv: $n,
|
|
967
982
|
generateImage: Sn,
|
|
968
|
-
generateSvg:
|
|
969
|
-
toggleTable:
|
|
970
|
-
toggleTooltip:
|
|
971
|
-
toggleAnnotator:
|
|
972
|
-
toggleFullscreen:
|
|
973
|
-
copyAlt:
|
|
983
|
+
generateSvg: vr,
|
|
984
|
+
toggleTable: nr,
|
|
985
|
+
toggleTooltip: rr,
|
|
986
|
+
toggleAnnotator: ar,
|
|
987
|
+
toggleFullscreen: tr,
|
|
988
|
+
copyAlt: br
|
|
974
989
|
}), (t, n) => (C(), v("div", {
|
|
975
990
|
ref_key: "heatmapChart",
|
|
976
991
|
ref: j,
|
|
977
|
-
class: Me(`vue-data-ui-component vue-ui-heatmap ${
|
|
992
|
+
class: Me(`vue-data-ui-component vue-ui-heatmap ${er.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
978
993
|
style: S(`font-family:${P.value.style.fontFamily};width:100%;${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.backgroundColor}`),
|
|
979
994
|
id: `heatmap__${It.value}`,
|
|
980
995
|
onMouseenter: n[1] ||= () => hn(!0),
|
|
981
996
|
onMouseleave: n[2] ||= () => {
|
|
982
|
-
hn(!1), on.value ||
|
|
997
|
+
hn(!1), on.value || qn();
|
|
983
998
|
}
|
|
984
999
|
}, [
|
|
985
1000
|
y("div", {
|
|
986
1001
|
id: `chart-instructions-${It.value}`,
|
|
987
1002
|
class: "sr-only"
|
|
988
1003
|
}, [y("p", null, D(P.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
989
|
-
|
|
1004
|
+
Er.value?.rows?.length ? (C(), Te(be, {
|
|
990
1005
|
key: 0,
|
|
991
1006
|
uid: It.value,
|
|
992
|
-
head:
|
|
993
|
-
body:
|
|
1007
|
+
head: Er.value.headers,
|
|
1008
|
+
body: Er.value.rows,
|
|
994
1009
|
notice: P.value.a11y.translations.tableAvailable,
|
|
995
1010
|
caption: P.value.a11y.translations.tableCaption
|
|
996
1011
|
}, null, 8, [
|
|
@@ -1005,10 +1020,10 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1005
1020
|
svgRef: O(z),
|
|
1006
1021
|
backgroundColor: P.value.style.backgroundColor,
|
|
1007
1022
|
color: P.value.style.color,
|
|
1008
|
-
active:
|
|
1023
|
+
active: ir.value,
|
|
1009
1024
|
isCursorPointer: sn.value,
|
|
1010
1025
|
palette: P.value.userOptions.annotatorPalette,
|
|
1011
|
-
onClose:
|
|
1026
|
+
onClose: ar
|
|
1012
1027
|
}, {
|
|
1013
1028
|
"annotator-action-close": k(() => [E(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1014
1029
|
"annotator-action-color": k(({ color: e }) => [E(t.$slots, "annotator-action-color", x(b({ color: e })), void 0, !0)]),
|
|
@@ -1067,26 +1082,26 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1067
1082
|
hasTable: P.value.userOptions.buttons.table,
|
|
1068
1083
|
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
1069
1084
|
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
1070
|
-
isFullscreen:
|
|
1085
|
+
isFullscreen: er.value,
|
|
1071
1086
|
isTooltip: B.value.showTooltip,
|
|
1072
1087
|
titles: { ...P.value.userOptions.buttonTitles },
|
|
1073
1088
|
chartElement: j.value,
|
|
1074
1089
|
position: P.value.userOptions.position,
|
|
1075
1090
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1076
|
-
isAnnotation:
|
|
1091
|
+
isAnnotation: ir.value,
|
|
1077
1092
|
callbacks: P.value.userOptions.callbacks,
|
|
1078
1093
|
printScale: P.value.userOptions.print.scale,
|
|
1079
1094
|
tableDialog: P.value.table.useDialog,
|
|
1080
1095
|
isCursorPointer: sn.value,
|
|
1081
|
-
onToggleFullscreen:
|
|
1096
|
+
onToggleFullscreen: tr,
|
|
1082
1097
|
onGeneratePdf: O(xn),
|
|
1083
|
-
onGenerateCsv:
|
|
1084
|
-
onGenerateImage: O(
|
|
1085
|
-
onGenerateSvg: O(
|
|
1086
|
-
onToggleTable:
|
|
1087
|
-
onToggleTooltip:
|
|
1088
|
-
onToggleAnnotator:
|
|
1089
|
-
onCopyAlt:
|
|
1098
|
+
onGenerateCsv: $n,
|
|
1099
|
+
onGenerateImage: O(yr),
|
|
1100
|
+
onGenerateSvg: O(vr),
|
|
1101
|
+
onToggleTable: nr,
|
|
1102
|
+
onToggleTooltip: rr,
|
|
1103
|
+
onToggleAnnotator: ar,
|
|
1104
|
+
onCopyAlt: br,
|
|
1090
1105
|
style: S({ visibility: O(mn) ? O(fn) ? "visible" : "hidden" : "visible" })
|
|
1091
1106
|
}, Ee({ _: 2 }, [
|
|
1092
1107
|
t.$slots.menuIcon ? {
|
|
@@ -1169,8 +1184,8 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1169
1184
|
xmlns: O(te),
|
|
1170
1185
|
"aria-describedby": `chart-instructions-${It.value}`,
|
|
1171
1186
|
class: Me({
|
|
1172
|
-
"vue-data-ui-fullscreen--on":
|
|
1173
|
-
"vue-data-ui-fulscreen--off":
|
|
1187
|
+
"vue-data-ui-fullscreen--on": er.value,
|
|
1188
|
+
"vue-data-ui-fulscreen--off": !er.value
|
|
1174
1189
|
}),
|
|
1175
1190
|
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
1176
1191
|
width: "100%",
|
|
@@ -1179,9 +1194,9 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1179
1194
|
role: "img",
|
|
1180
1195
|
preserveAspectRatio: "xMidYMid",
|
|
1181
1196
|
tabindex: "0",
|
|
1182
|
-
onFocus:
|
|
1183
|
-
onBlur:
|
|
1184
|
-
onKeydown:
|
|
1197
|
+
onFocus: Cr,
|
|
1198
|
+
onBlur: wr,
|
|
1199
|
+
onKeydown: Tr
|
|
1185
1200
|
}, [
|
|
1186
1201
|
Oe(O(kt)),
|
|
1187
1202
|
t.$slots["chart-background"] ? (C(), v("foreignObject", {
|
|
@@ -1216,62 +1231,62 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1216
1231
|
y("g", {
|
|
1217
1232
|
ref_key: "datapoints",
|
|
1218
1233
|
ref: Ut
|
|
1219
|
-
}, [(C(!0), v(h, null, T(
|
|
1234
|
+
}, [(C(!0), v(h, null, T(Rn.value, (e) => (C(), v("g", null, [
|
|
1220
1235
|
y("rect", {
|
|
1221
|
-
x:
|
|
1222
|
-
y:
|
|
1223
|
-
width:
|
|
1224
|
-
height:
|
|
1236
|
+
x: e.x,
|
|
1237
|
+
y: e.y,
|
|
1238
|
+
width: e.width,
|
|
1239
|
+
height: e.height,
|
|
1225
1240
|
fill: F.value.colors.underlayer,
|
|
1226
1241
|
stroke: P.value.style.backgroundColor,
|
|
1227
1242
|
"stroke-width": G.value
|
|
1228
1243
|
}, null, 8, tt),
|
|
1229
1244
|
y("rect", {
|
|
1230
|
-
"data-a11y-cell-id": e.id,
|
|
1231
|
-
x:
|
|
1232
|
-
y:
|
|
1233
|
-
width:
|
|
1234
|
-
height:
|
|
1235
|
-
fill: e.color,
|
|
1245
|
+
"data-a11y-cell-id": e.datapoint.id,
|
|
1246
|
+
x: e.x,
|
|
1247
|
+
y: e.y,
|
|
1248
|
+
width: e.width,
|
|
1249
|
+
height: e.height,
|
|
1250
|
+
fill: e.datapoint.color,
|
|
1236
1251
|
stroke: P.value.style.backgroundColor,
|
|
1237
1252
|
"stroke-width": G.value,
|
|
1238
|
-
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1239
|
-
onMouseover: (
|
|
1240
|
-
onMouseout: () =>
|
|
1241
|
-
datapoint: e,
|
|
1242
|
-
seriesIndex:
|
|
1253
|
+
"aria-label": `${e.datapoint.yAxisName}${e.datapoint.xAxisName ? ` - ${e.datapoint.xAxisName}` : ""}: ${isNaN(e.datapoint.value) ? "-" : e.datapoint.value}`,
|
|
1254
|
+
onMouseover: (t) => Yn(e.datapoint, e.rowIndex, e.selectionX, e.selectionY, "pointer", Sr(e.rowIndex, e.columnIndex)),
|
|
1255
|
+
onMouseout: () => Xn({
|
|
1256
|
+
datapoint: e.datapoint,
|
|
1257
|
+
seriesIndex: e.rowIndex
|
|
1243
1258
|
}),
|
|
1244
|
-
onClick: () =>
|
|
1259
|
+
onClick: () => or(e.datapoint, e.rowIndex)
|
|
1245
1260
|
}, null, 40, nt),
|
|
1246
1261
|
F.value.value.show ? Ue((C(), v("text", {
|
|
1247
1262
|
key: 0,
|
|
1248
1263
|
"text-anchor": "middle",
|
|
1249
1264
|
"font-size": F.value.value.fontSize,
|
|
1250
1265
|
"font-weight": F.value.value.bold ? "bold" : "normal",
|
|
1251
|
-
fill: O(m)(e.color),
|
|
1252
|
-
x:
|
|
1253
|
-
y:
|
|
1266
|
+
fill: O(m)(e.datapoint.color),
|
|
1267
|
+
x: e.labelX,
|
|
1268
|
+
y: e.labelY,
|
|
1254
1269
|
style: {
|
|
1255
1270
|
pointerEvents: "none",
|
|
1256
1271
|
userSelect: "none"
|
|
1257
1272
|
}
|
|
1258
|
-
}, [De(D(O(d)(F.value.value.formatter, e.value, O(o)({
|
|
1273
|
+
}, [De(D(O(d)(F.value.value.formatter, e.datapoint.value, O(o)({
|
|
1259
1274
|
p: I.value.prefix,
|
|
1260
|
-
v: e.value,
|
|
1275
|
+
v: e.datapoint.value,
|
|
1261
1276
|
s: I.value.suffix,
|
|
1262
1277
|
r: F.value.value.roundingValue
|
|
1263
|
-
}), { datapoint: e })), 1)], 8, rt)), [[O(Ke), {
|
|
1264
|
-
cellWidth:
|
|
1265
|
-
cellHeight:
|
|
1278
|
+
}), { datapoint: e.datapoint })), 1)], 8, rt)), [[O(Ke), {
|
|
1279
|
+
cellWidth: e.width,
|
|
1280
|
+
cellHeight: e.height,
|
|
1266
1281
|
maxFontSize: F.value.value.fontSize,
|
|
1267
1282
|
minFontSize: 10,
|
|
1268
|
-
index:
|
|
1269
|
-
reportHide:
|
|
1270
|
-
reportRotation:
|
|
1271
|
-
hideAll:
|
|
1272
|
-
rotateAll:
|
|
1283
|
+
index: e.rowIndex * H.value + e.columnIndex,
|
|
1284
|
+
reportHide: Gn,
|
|
1285
|
+
reportRotation: Hn,
|
|
1286
|
+
hideAll: Wn.value,
|
|
1287
|
+
rotateAll: Vn.value
|
|
1273
1288
|
}]]) : _("", !0)
|
|
1274
|
-
]))), 256))],
|
|
1289
|
+
]))), 256))], 512),
|
|
1275
1290
|
F.value.rowTotal.color.show ? (C(), v("g", {
|
|
1276
1291
|
key: 2,
|
|
1277
1292
|
ref_key: "yAxisSumRects",
|
|
@@ -1314,7 +1329,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1314
1329
|
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.yAxis.fontSize + I.value.yAxis.offsetY,
|
|
1315
1330
|
"text-anchor": "end",
|
|
1316
1331
|
"font-weight": I.value.yAxis.bold ? "bold" : "normal"
|
|
1317
|
-
}, D(
|
|
1332
|
+
}, D(Zn(t)), 9, st)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1318
1333
|
I.value.xAxis.show ? (C(), v("g", {
|
|
1319
1334
|
key: 4,
|
|
1320
1335
|
ref_key: "xAxisLabels",
|
|
@@ -1339,7 +1354,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1339
1354
|
fill: I.value.xAxis.color,
|
|
1340
1355
|
"font-weight": I.value.xAxis.bold ? "bold" : "normal",
|
|
1341
1356
|
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Z.value.xLabels.length * t + I.value.xAxis.offsetX + F.value.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + I.value.xAxis.fontSize / 2}), rotate(${F.value.columnTotal.value.rotation})`
|
|
1342
|
-
}, D(
|
|
1357
|
+
}, D(Qn(t)), 9, lt))), 256))], 512)) : _("", !0),
|
|
1343
1358
|
M.value ? (C(), v("g", ut, [y("rect", {
|
|
1344
1359
|
style: { "pointer-events": "none" },
|
|
1345
1360
|
x: M.value.x - F.value.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
@@ -1373,8 +1388,9 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1373
1388
|
E(t.$slots, "svg", { svg: {
|
|
1374
1389
|
...U.value,
|
|
1375
1390
|
drawingArea: K.value,
|
|
1376
|
-
|
|
1377
|
-
|
|
1391
|
+
cells: Rn.value,
|
|
1392
|
+
isPrintingImg: O(yn) || O(bn) || O(gr),
|
|
1393
|
+
isPrintingSvg: O(_r)
|
|
1378
1394
|
} }, void 0, !0)
|
|
1379
1395
|
], 46, Ze)),
|
|
1380
1396
|
P.value.style.legend.show ? (C(), v("div", {
|
|
@@ -1412,7 +1428,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1412
1428
|
position: "absolute",
|
|
1413
1429
|
width: "100%",
|
|
1414
1430
|
height: "2px",
|
|
1415
|
-
background: [void 0, null].includes($.value) ? "transparent" : O(m)(
|
|
1431
|
+
background: [void 0, null].includes($.value) ? "transparent" : O(m)(Kn.value.datapoint.color),
|
|
1416
1432
|
top: `${Ln($.value)}%`,
|
|
1417
1433
|
transition: "all 0.2s ease-in-out",
|
|
1418
1434
|
"--background-color": P.value.style.backgroundColor,
|
|
@@ -1446,7 +1462,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1446
1462
|
isVisible: on.value
|
|
1447
1463
|
})), void 0, !0)])) : _("", !0)
|
|
1448
1464
|
], 2),
|
|
1449
|
-
t.$slots.watermark ? (C(), v("div", yt, [E(t.$slots, "watermark", x(b({ isPrinting: O(yn) || O(bn) || O(
|
|
1465
|
+
t.$slots.watermark ? (C(), v("div", yt, [E(t.$slots, "watermark", x(b({ isPrinting: O(yn) || O(bn) || O(gr) || O(_r) })), void 0, !0)])) : _("", !0),
|
|
1450
1466
|
t.$slots.source ? (C(), v("div", {
|
|
1451
1467
|
key: 6,
|
|
1452
1468
|
ref_key: "source",
|
|
@@ -1468,7 +1484,7 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1468
1484
|
offsetY: P.value.style.tooltip.offsetY,
|
|
1469
1485
|
parent: j.value,
|
|
1470
1486
|
content: Rt.value,
|
|
1471
|
-
isFullscreen:
|
|
1487
|
+
isFullscreen: er.value,
|
|
1472
1488
|
isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
|
|
1473
1489
|
smooth: P.value.style.tooltip.smooth,
|
|
1474
1490
|
backdropFilter: P.value.style.tooltip.backdropFilter,
|
|
@@ -1477,9 +1493,9 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1477
1493
|
isA11yMode: an.value === "keyboard",
|
|
1478
1494
|
a11yPosition: rn.value
|
|
1479
1495
|
}, {
|
|
1480
|
-
"tooltip-before": k(() => [E(t.$slots, "tooltip-before", x(b({ ...
|
|
1481
|
-
tooltip: k(() => [E(t.$slots, "tooltip", x(b({ ...
|
|
1482
|
-
"tooltip-after": k(() => [E(t.$slots, "tooltip-after", x(b({ ...
|
|
1496
|
+
"tooltip-before": k(() => [E(t.$slots, "tooltip-before", x(b({ ...Kn.value })), void 0, !0)]),
|
|
1497
|
+
tooltip: k(() => [E(t.$slots, "tooltip", x(b({ ...Kn.value })), void 0, !0)]),
|
|
1498
|
+
"tooltip-after": k(() => [E(t.$slots, "tooltip-after", x(b({ ...Kn.value })), void 0, !0)]),
|
|
1483
1499
|
_: 3
|
|
1484
1500
|
}, 8, [
|
|
1485
1501
|
"teleportTo",
|
|
@@ -1505,10 +1521,10 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1505
1521
|
"isA11yMode",
|
|
1506
1522
|
"a11yPosition"
|
|
1507
1523
|
]),
|
|
1508
|
-
Ft.value && P.value.userOptions.buttons.table ? (C(), Te(Ie(
|
|
1524
|
+
Ft.value && P.value.userOptions.buttons.table ? (C(), Te(Ie(dr.value.component), Ae({ key: 7 }, dr.value.props, {
|
|
1509
1525
|
ref_key: "tableUnit",
|
|
1510
1526
|
ref: Wt,
|
|
1511
|
-
onClose:
|
|
1527
|
+
onClose: pr
|
|
1512
1528
|
}), Ee({
|
|
1513
1529
|
content: k(() => [y("div", {
|
|
1514
1530
|
ref_key: "tableContainer",
|
|
@@ -1517,14 +1533,14 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1517
1533
|
style: S(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1518
1534
|
}, [y("div", {
|
|
1519
1535
|
style: S(`width:100%;overflow-x:auto;position:relative;${P.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1520
|
-
class: Me({ "vue-ui-responsive": O(
|
|
1536
|
+
class: Me({ "vue-ui-responsive": O(fr) })
|
|
1521
1537
|
}, [P.value.table.useDialog ? _("", !0) : (C(), v("div", {
|
|
1522
1538
|
key: 0,
|
|
1523
1539
|
role: "button",
|
|
1524
1540
|
tabindex: "0",
|
|
1525
1541
|
style: S(`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:${P.value.table.th.backgroundColor};`),
|
|
1526
|
-
onClick:
|
|
1527
|
-
onKeypress: We(
|
|
1542
|
+
onClick: pr,
|
|
1543
|
+
onKeypress: We(pr, ["enter"])
|
|
1528
1544
|
}, [Oe(O(Et), {
|
|
1529
1545
|
name: "close",
|
|
1530
1546
|
stroke: P.value.table.th.color,
|
|
@@ -1567,24 +1583,24 @@ var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1567
1583
|
_: 2
|
|
1568
1584
|
}, [P.value.table.useDialog ? {
|
|
1569
1585
|
name: "title",
|
|
1570
|
-
fn: k(() => [De(D(
|
|
1586
|
+
fn: k(() => [De(D(dr.value.title), 1)]),
|
|
1571
1587
|
key: "0"
|
|
1572
1588
|
} : void 0, P.value.table.useDialog ? {
|
|
1573
1589
|
name: "actions",
|
|
1574
1590
|
fn: k(() => [y("button", {
|
|
1575
1591
|
tabindex: "0",
|
|
1576
1592
|
class: "vue-ui-user-options-button",
|
|
1577
|
-
onClick: n[0] ||= (e) =>
|
|
1593
|
+
onClick: n[0] ||= (e) => $n(P.value.userOptions.callbacks.csv),
|
|
1578
1594
|
style: S({ cursor: sn.value ? "pointer" : "default" })
|
|
1579
1595
|
}, [Oe(O(Et), {
|
|
1580
1596
|
name: "fileCsv",
|
|
1581
|
-
stroke:
|
|
1597
|
+
stroke: dr.value.props.color
|
|
1582
1598
|
}, null, 8, ["stroke"])], 4)]),
|
|
1583
1599
|
key: "1"
|
|
1584
1600
|
} : void 0]), 1040)) : _("", !0),
|
|
1585
1601
|
E(t.$slots, "skeleton", {}, () => [O(un) ? (C(), Te(le, { key: 0 })) : _("", !0)], !0)
|
|
1586
1602
|
], 46, Ye));
|
|
1587
1603
|
}
|
|
1588
|
-
}, [["__scopeId", "data-v-
|
|
1604
|
+
}, [["__scopeId", "data-v-2b466c1a"]]);
|
|
1589
1605
|
//#endregion
|
|
1590
1606
|
export { Je as n, Et as t };
|