vue-data-ui 2.3.84 → 2.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CLOh6oi7.cjs} +1 -1
- package/dist/{Arrow-CQ1ubni5.js → Arrow-JwDgP3de.js} +1 -1
- package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
- package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-BysUnfCR.js} +1 -1
- package/dist/{DataTable-C-iU_7h7.js → DataTable-MkG5Dqrn.js} +2 -2
- package/dist/{DataTable-CEtr89Og.cjs → DataTable-pVXaNplZ.cjs} +1 -1
- package/dist/{Legend-pU_BwhaW.js → Legend-KW7sTwN3.js} +1 -1
- package/dist/{Legend-D2ZBCCXe.cjs → Legend-k2mcTp7z.cjs} +1 -1
- package/dist/{Shape-CyM44biU.js → Shape-BFiZBf3X.js} +1 -1
- package/dist/{Shape-BO_KyCq8.cjs → Shape-COoEWeGM.cjs} +1 -1
- package/dist/{Slicer-CZobytqL.js → Slicer-CALc-Q4W.js} +2 -2
- package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-DCyxUSsn.cjs} +1 -1
- package/dist/{Title-B1_d29Eh.cjs → Title-BaKZYHEx.cjs} +1 -1
- package/dist/{Title-Bk3h09h9.js → Title-ISDbzCH8.js} +1 -1
- package/dist/{Tooltip-CdB80DsD.js → Tooltip-BHmMXOej.js} +1 -1
- package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
- package/dist/{index-DI4DaxVG.js → index-BiuHBtkZ.js} +1 -1
- package/dist/{index-Cx-40Fnz.cjs → index-D-vy9N1v.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
- package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-Ck5_RzLu.js} +1 -1
- package/dist/{usePrinter-D9bNzUQP.js → usePrinter-Do8KiK5h.js} +1 -1
- package/dist/{usePrinter-DbhL59iY.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
- package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-CAl2KJv9.js} +57 -57
- package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
- package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
- package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
- package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
- package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
- package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
- package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
- package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
- package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-B1xa5yua.js} +2 -2
- package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
- package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-BUpjWWnD.js} +2 -2
- package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
- package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
- package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
- package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
- package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
- package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
- package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-CGh_m922.js} +61 -61
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
- package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
- package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
- package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
- package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-B4zr_geL.js} +3 -3
- package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
- package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
- package/dist/{vue-ui-nested-donuts-C3CMWjgk.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
- package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-DQMLPe3M.js} +88 -88
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
- package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
- package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-B9TZPujK.js} +42 -42
- package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
- package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-B0pNsmGB.js} +2 -2
- package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
- package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
- package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
- package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-BuvFDBXg.js} +77 -77
- package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
- package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
- package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
- package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
- package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
- package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
- package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
- package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
- package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
- package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
- package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
- package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
- package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
- package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-328De4vk.cjs} +1 -1
- package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-CamkBCdL.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BnwiB4id.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
- package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
- package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-BPepr5eV.js} +4 -4
- package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
- package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
- package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
- package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-CWu43qLo.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
- package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
- package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
- package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
- package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
- package/dist/{vue-ui-word-cloud-D5JLdr9g.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
- package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-DgEdZz0O.js} +356 -361
- package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
- package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
- package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
- package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
- package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
- package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
- package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
- package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
- package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
- package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
- package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
- package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
- package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
- package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
- package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
- package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
- package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
- package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
- package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
- package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
- package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
- package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
- package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
- package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
- package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
- package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { computed as p, ref as n, watch as ze, onMounted as Ne, onBeforeUnmount as Ae, openBlock as s, createElementBlock as i, normalizeClass as F, normalizeStyle as
|
|
2
|
-
import { u as De, c as K, t as Ge, a as Ee, p as L, o as Ve, e as Q, g as be, b as He, d as me, v as Re, C as Ue, f as
|
|
1
|
+
import { computed as p, ref as n, watch as ze, onMounted as Ne, onBeforeUnmount as Ae, openBlock as s, createElementBlock as i, normalizeClass as F, normalizeStyle as q, createBlock as P, createCommentVNode as c, unref as h, createSlots as Oe, withCtx as b, renderSlot as m, normalizeProps as H, guardReactiveProps as R, Fragment as g, renderList as C, createElementVNode as x, toDisplayString as T, mergeProps as Fe, createVNode as We, createTextVNode as Ie, nextTick as Me } from "vue";
|
|
2
|
+
import { u as De, c as K, t as Ge, a as Ee, p as L, o as Ve, e as Q, g as be, b as He, d as me, v as Re, C as Ue, f as U, X as Be, i as Z, l as Xe, h as je, x as ge, y as Ye, q as Je, r as qe, E as Ke } from "./index-BiuHBtkZ.js";
|
|
3
3
|
import { t as Qe, u as Ze } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as et } from "./Title-
|
|
5
|
-
import { u as tt, U as lt } from "./usePrinter-
|
|
6
|
-
import { _ as at } from "./Tooltip-
|
|
7
|
-
import { D as ot } from "./DataTable-
|
|
8
|
-
import st from "./vue-ui-skeleton-
|
|
9
|
-
import { _ as rt } from "./Shape-
|
|
10
|
-
import ut from "./vue-ui-accordion-
|
|
11
|
-
import { u as xe } from "./useNestedProp-
|
|
4
|
+
import { _ as et } from "./Title-ISDbzCH8.js";
|
|
5
|
+
import { u as tt, U as lt } from "./usePrinter-Do8KiK5h.js";
|
|
6
|
+
import { _ as at } from "./Tooltip-BHmMXOej.js";
|
|
7
|
+
import { D as ot } from "./DataTable-MkG5Dqrn.js";
|
|
8
|
+
import st from "./vue-ui-skeleton-Du4zw-c1.js";
|
|
9
|
+
import { _ as rt } from "./Shape-BFiZBf3X.js";
|
|
10
|
+
import ut from "./vue-ui-accordion-D2fhyKpk.js";
|
|
11
|
+
import { u as xe } from "./useNestedProp-Ck5_RzLu.js";
|
|
12
12
|
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const nt = ["id"],
|
|
13
|
+
const nt = ["id"], vt = ["xmlns", "viewBox"], ct = { key: 0 }, ht = { key: 0 }, dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = { key: 1 }, yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x", "y", "fill", "font-size"], gt = ["x", "y", "font-size", "fill"], xt = ["fill", "font-size", "transform"], kt = ["fill", "font-size", "x", "y"], Ct = ["x1", "x2", "y1", "y2", "stroke"], wt = ["cx", "cy", "fill"], _t = ["cx", "cy", "fill"], $t = ["id"], Tt = ["stop-color"], Lt = ["stop-color"], St = ["stop-color"], Pt = { key: 0 }, zt = ["x", "y", "font-size", "fill"], Nt = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, At = ["innerHTML"], Ot = {
|
|
@@ -38,7 +38,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
38
38
|
set(t) {
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), B = n(K()), ee = n(0), X = n(!1), j = n(""), z = n(null), te = n(null), le = n(!1), ae = n(0), oe = n(0), e = p({
|
|
42
42
|
get: () => se(),
|
|
43
43
|
set: (t) => t
|
|
44
44
|
});
|
|
@@ -113,10 +113,10 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
113
113
|
Ae(() => {
|
|
114
114
|
W.value && W.value.disconnect();
|
|
115
115
|
});
|
|
116
|
-
const { isPrinting: ue, isImaging: ie, generatePdf: ne, generateImage:
|
|
117
|
-
elementId: `strip-plot_${
|
|
116
|
+
const { isPrinting: ue, isImaging: ie, generatePdf: ne, generateImage: ve } = tt({
|
|
117
|
+
elementId: `strip-plot_${B.value}`,
|
|
118
118
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot"
|
|
119
|
-
}),
|
|
119
|
+
}), ce = p(() => He(e.value.customPalette)), N = n(e.value.useCssAnimation), d = n({
|
|
120
120
|
showTable: e.value.table.show,
|
|
121
121
|
dataLabels: {
|
|
122
122
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -148,12 +148,12 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
148
148
|
return {
|
|
149
149
|
...t,
|
|
150
150
|
id: l,
|
|
151
|
-
color: t.color ? me(t.color) :
|
|
151
|
+
color: t.color ? me(t.color) : ce.value[o] || L[o] || L[o % L.length],
|
|
152
152
|
plots: t.plots.map((r) => ({
|
|
153
153
|
...r,
|
|
154
154
|
value: Re(r.value),
|
|
155
155
|
parentId: l,
|
|
156
|
-
color: t.color ? me(t.color) :
|
|
156
|
+
color: t.color ? me(t.color) : ce.value[o] || L[o] || L[o % L.length],
|
|
157
157
|
id: K()
|
|
158
158
|
})).sort((r, u) => r.value - u.value)
|
|
159
159
|
};
|
|
@@ -163,13 +163,13 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
163
163
|
...l,
|
|
164
164
|
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
165
165
|
}))
|
|
166
|
-
}))), $e = p(() => Math.max(...k.value.map((t) => t.plots.length))),
|
|
166
|
+
}))), $e = p(() => Math.max(...k.value.map((t) => t.plots.length))), Y = p(() => {
|
|
167
167
|
const t = k.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
168
168
|
return {
|
|
169
169
|
max: Math.max(...t),
|
|
170
170
|
min: Math.min(...t)
|
|
171
171
|
};
|
|
172
|
-
}), _ = p(() => Ue(
|
|
172
|
+
}), _ = p(() => Ue(Y.value.min < 0 ? Y.value.min : 0, Y.value.max, e.value.style.chart.grid.scaleSteps)), Te = p(() => (k.value || []).map((t, o) => ({
|
|
173
173
|
...t,
|
|
174
174
|
plots: t.plots.map((l) => ({
|
|
175
175
|
...l,
|
|
@@ -180,9 +180,9 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
180
180
|
x1: a.value.left,
|
|
181
181
|
x2: a.value.right,
|
|
182
182
|
value: t
|
|
183
|
-
}))),
|
|
183
|
+
}))), J = n(null), v = n(null);
|
|
184
184
|
function Le({ datapoint: t, seriesIndex: o }) {
|
|
185
|
-
|
|
185
|
+
J.value = { datapoint: t, seriesIndex: o, config: e.value, series: D.value }, X.value = !0, v.value = t;
|
|
186
186
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
187
187
|
if (ge(l) && Ye(() => l({
|
|
188
188
|
seriesIndex: o,
|
|
@@ -190,7 +190,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
190
190
|
series: D.value,
|
|
191
191
|
config: e.value
|
|
192
192
|
})))
|
|
193
|
-
|
|
193
|
+
j.value = l({
|
|
194
194
|
seriesIndex: o,
|
|
195
195
|
datapoint: t,
|
|
196
196
|
series: D.value,
|
|
@@ -201,14 +201,14 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
201
201
|
r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, r += `<div>${Z(
|
|
202
202
|
e.value.style.chart.labels.formatter,
|
|
203
203
|
t.value,
|
|
204
|
-
|
|
204
|
+
U({
|
|
205
205
|
p: e.value.style.chart.labels.prefix,
|
|
206
206
|
v: t.value,
|
|
207
207
|
s: e.value.style.chart.labels.suffix,
|
|
208
208
|
r: e.value.style.chart.tooltip.roundingValue
|
|
209
209
|
}),
|
|
210
210
|
{ datapoint: t, seriesIndex: o }
|
|
211
|
-
)}</div>`,
|
|
211
|
+
)}</div>`, j.value = `<div>${r}</div>`;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
const G = p(() => {
|
|
@@ -231,7 +231,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
231
231
|
e.value.table.columnNames.series,
|
|
232
232
|
e.value.table.columnNames.value
|
|
233
233
|
], o = G.value.head.map((u, $) => {
|
|
234
|
-
const V =
|
|
234
|
+
const V = U({
|
|
235
235
|
p: e.value.style.chart.labels.prefix,
|
|
236
236
|
v: G.value.body[$],
|
|
237
237
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -286,7 +286,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
286
286
|
getData: Pe,
|
|
287
287
|
generatePdf: ne,
|
|
288
288
|
generateCsv: de,
|
|
289
|
-
generateImage:
|
|
289
|
+
generateImage: ve,
|
|
290
290
|
toggleTable: pe,
|
|
291
291
|
toggleLabels: ye,
|
|
292
292
|
toggleTooltip: fe
|
|
@@ -294,14 +294,14 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
294
294
|
ref_key: "stripPlotChart",
|
|
295
295
|
ref: z,
|
|
296
296
|
class: F(`vue-ui-strip-plot ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
297
|
-
style:
|
|
298
|
-
id: `strip-plot_${
|
|
297
|
+
style: q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
298
|
+
id: `strip-plot_${B.value}`
|
|
299
299
|
}, [
|
|
300
300
|
e.value.style.chart.title.text ? (s(), i("div", {
|
|
301
301
|
key: 0,
|
|
302
302
|
ref_key: "chartTitle",
|
|
303
303
|
ref: te,
|
|
304
|
-
style:
|
|
304
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
305
305
|
}, [
|
|
306
306
|
(s(), P(et, {
|
|
307
307
|
key: `title_${ae.value}`,
|
|
@@ -316,7 +316,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}, null, 8, ["config"]))
|
|
319
|
-
],
|
|
319
|
+
], 512)) : c("", !0),
|
|
320
320
|
e.value.userOptions.show && w.value ? (s(), P(lt, {
|
|
321
321
|
ref: "details",
|
|
322
322
|
key: `user_option_${ee.value}`,
|
|
@@ -324,7 +324,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
324
324
|
color: e.value.style.chart.color,
|
|
325
325
|
isPrinting: h(ue),
|
|
326
326
|
isImaging: h(ie),
|
|
327
|
-
uid:
|
|
327
|
+
uid: B.value,
|
|
328
328
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
329
329
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
330
330
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -339,7 +339,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
339
339
|
onToggleFullscreen: Se,
|
|
340
340
|
onGeneratePdf: h(ne),
|
|
341
341
|
onGenerateCsv: de,
|
|
342
|
-
onGenerateImage: h(
|
|
342
|
+
onGenerateImage: h(ve),
|
|
343
343
|
onToggleTable: pe,
|
|
344
344
|
onToggleLabels: ye,
|
|
345
345
|
onToggleTooltip: fe
|
|
@@ -389,19 +389,19 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
389
389
|
t.$slots.optionFullscreen ? {
|
|
390
390
|
name: "optionFullscreen",
|
|
391
391
|
fn: b(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
392
|
-
m(t.$slots, "optionFullscreen", R(
|
|
392
|
+
m(t.$slots, "optionFullscreen", H(R({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
393
393
|
]),
|
|
394
394
|
key: "6"
|
|
395
395
|
} : void 0
|
|
396
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
396
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
397
397
|
w.value ? (s(), i("svg", {
|
|
398
398
|
key: 2,
|
|
399
399
|
xmlns: h(Be),
|
|
400
400
|
class: F({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
401
401
|
viewBox: `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`,
|
|
402
|
-
style:
|
|
402
|
+
style: q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
403
403
|
}, [
|
|
404
|
-
e.value.style.chart.grid.show ? (s(), i("g",
|
|
404
|
+
e.value.style.chart.grid.show ? (s(), i("g", ct, [
|
|
405
405
|
e.value.style.chart.grid.horizontalGrid.show ? (s(), i("g", ht, [
|
|
406
406
|
(s(!0), i(g, null, C(he.value, (l) => (s(), i("line", {
|
|
407
407
|
x1: l.x1,
|
|
@@ -413,7 +413,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
413
413
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
414
414
|
"stroke-linecap": "round"
|
|
415
415
|
}, null, 8, dt))), 256))
|
|
416
|
-
])) :
|
|
416
|
+
])) : c("", !0),
|
|
417
417
|
e.value.style.chart.grid.verticalGrid.show ? (s(), i("g", pt, [
|
|
418
418
|
(s(!0), i(g, null, C(k.value, (l, r) => (s(), i("line", {
|
|
419
419
|
x1: a.value.left + (r + 1) * a.value.stripWidth,
|
|
@@ -425,7 +425,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
425
425
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
426
426
|
"stroke-linecap": "round"
|
|
427
427
|
}, null, 8, yt))), 256))
|
|
428
|
-
])) :
|
|
428
|
+
])) : c("", !0),
|
|
429
429
|
x("line", {
|
|
430
430
|
x1: a.value.left,
|
|
431
431
|
x2: a.value.left,
|
|
@@ -444,7 +444,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
444
444
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
445
445
|
"stroke-linecap": "round"
|
|
446
446
|
}, null, 8, bt)
|
|
447
|
-
])) :
|
|
447
|
+
])) : c("", !0),
|
|
448
448
|
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), i(g, { key: 1 }, C(he.value, (l, r) => (s(), i("text", {
|
|
449
449
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
450
450
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -454,28 +454,28 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
454
454
|
}, T(h(Z)(
|
|
455
455
|
e.value.style.chart.labels.formatter,
|
|
456
456
|
l.value,
|
|
457
|
-
h(
|
|
457
|
+
h(U)({
|
|
458
458
|
p: e.value.style.chart.labels.prefix,
|
|
459
459
|
v: l.value,
|
|
460
460
|
s: e.value.style.chart.labels.suffix,
|
|
461
461
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
462
462
|
}),
|
|
463
463
|
{ datapoint: l, seriesIndex: r }
|
|
464
|
-
)), 9, mt))), 256)) :
|
|
464
|
+
)), 9, mt))), 256)) : c("", !0),
|
|
465
465
|
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), i(g, { key: 2 }, C(k.value, (l, r) => (s(), i("text", {
|
|
466
466
|
x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
467
467
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
468
468
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
469
469
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
470
470
|
"text-anchor": "middle"
|
|
471
|
-
}, T(l.name), 9, gt))), 256)) :
|
|
471
|
+
}, T(l.name), 9, gt))), 256)) : c("", !0),
|
|
472
472
|
e.value.style.chart.labels.axis.yLabel ? (s(), i("text", {
|
|
473
473
|
key: 3,
|
|
474
474
|
fill: e.value.style.chart.labels.axis.color,
|
|
475
475
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
476
476
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
|
|
477
477
|
"text-anchor": "middle"
|
|
478
|
-
}, T(e.value.style.chart.labels.axis.yLabel), 9, xt)) :
|
|
478
|
+
}, T(e.value.style.chart.labels.axis.yLabel), 9, xt)) : c("", !0),
|
|
479
479
|
e.value.style.chart.labels.axis.xLabel ? (s(), i("text", {
|
|
480
480
|
key: 4,
|
|
481
481
|
fill: e.value.style.chart.labels.axis.color,
|
|
@@ -483,32 +483,32 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
483
483
|
x: a.value.left + a.value.width / 2,
|
|
484
484
|
y: a.value.absoluteHeight,
|
|
485
485
|
"text-anchor": "middle"
|
|
486
|
-
}, T(e.value.style.chart.labels.axis.xLabel), 9, kt)) :
|
|
487
|
-
|
|
486
|
+
}, T(e.value.style.chart.labels.axis.xLabel), 9, kt)) : c("", !0),
|
|
487
|
+
v.value ? (s(), i(g, { key: 5 }, [
|
|
488
488
|
x("line", {
|
|
489
489
|
x1: a.value.left,
|
|
490
490
|
x2: a.value.right,
|
|
491
|
-
y1:
|
|
492
|
-
y2:
|
|
493
|
-
stroke:
|
|
491
|
+
y1: v.value.y,
|
|
492
|
+
y2: v.value.y,
|
|
493
|
+
stroke: v.value.color,
|
|
494
494
|
"stroke-width": 1,
|
|
495
495
|
class: F({ "select-circle": e.value.useCssAnimation })
|
|
496
496
|
}, null, 10, Ct),
|
|
497
497
|
x("circle", {
|
|
498
498
|
cx: a.value.left,
|
|
499
|
-
cy:
|
|
499
|
+
cy: v.value.y,
|
|
500
500
|
r: 3,
|
|
501
|
-
fill:
|
|
501
|
+
fill: v.value.color,
|
|
502
502
|
class: F({ "select-circle": e.value.useCssAnimation })
|
|
503
503
|
}, null, 10, wt),
|
|
504
504
|
x("circle", {
|
|
505
505
|
cx: a.value.right,
|
|
506
|
-
cy:
|
|
506
|
+
cy: v.value.y,
|
|
507
507
|
r: 3,
|
|
508
|
-
fill:
|
|
508
|
+
fill: v.value.color,
|
|
509
509
|
class: F({ "select-circle": e.value.useCssAnimation })
|
|
510
510
|
}, null, 10, _t)
|
|
511
|
-
], 64)) :
|
|
511
|
+
], 64)) : c("", !0),
|
|
512
512
|
x("defs", null, [
|
|
513
513
|
(s(!0), i(g, null, C(k.value, (l) => (s(), i("radialGradient", {
|
|
514
514
|
id: l.id,
|
|
@@ -531,49 +531,49 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
531
531
|
(s(!0), i(g, null, C(Te.value, (l, r) => (s(), i(g, null, [
|
|
532
532
|
(s(!0), i(g, null, C(l.plots, (u, $) => (s(), P(rt, Fe({
|
|
533
533
|
plot: { x: u.x, y: le.value ? u.y : a.value.top },
|
|
534
|
-
radius:
|
|
534
|
+
radius: v.value && v.value.id === u.id ? M.value * 1.5 : M.value,
|
|
535
535
|
shape: e.value.style.chart.plots.shape,
|
|
536
536
|
stroke: e.value.style.chart.plots.stroke,
|
|
537
537
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
538
538
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
539
539
|
onMouseenter: (V) => Le({ datapoint: u, seriesIndex: $ }),
|
|
540
540
|
onMouseleave: o[0] || (o[0] = (V) => {
|
|
541
|
-
|
|
541
|
+
X.value = !1, v.value = null;
|
|
542
542
|
}),
|
|
543
543
|
onClick: (V) => we("selectDatapoint", u),
|
|
544
|
-
style: `transition: all 0.2s ease-in-out; opacity:${
|
|
544
|
+
style: `transition: all 0.2s ease-in-out; opacity:${v.value ? v.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${N.value ? `transition-delay:${$ * 50}ms` : ""}`,
|
|
545
545
|
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && N.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !N.value }
|
|
546
546
|
}, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
547
547
|
d.value.dataLabels.show ? (s(), i("g", Pt, [
|
|
548
548
|
(s(!0), i(g, null, C(l.plots, (u, $) => (s(), i(g, null, [
|
|
549
|
-
$ === l.plots.length - 1 ||
|
|
549
|
+
$ === l.plots.length - 1 || v.value && v.value.id === u.id && !d.value.showTooltip ? (s(), i("text", {
|
|
550
550
|
key: 0,
|
|
551
551
|
x: u.x,
|
|
552
|
-
y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - M.value * (
|
|
552
|
+
y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - M.value * (v.value && v.value.id === u.id && !d.value.showTooltip ? 2 : 1.5),
|
|
553
553
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
554
554
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
555
555
|
"text-anchor": "middle",
|
|
556
|
-
style:
|
|
556
|
+
style: q(`opacity:${e.value.useCssAnimation && N.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
557
557
|
}, T(u.name) + " " + T(e.value.style.chart.labels.bestPlotLabel.showValue ? h(Z)(
|
|
558
558
|
e.value.style.chart.labels.formatter,
|
|
559
559
|
u.value,
|
|
560
|
-
h(
|
|
560
|
+
h(U)({
|
|
561
561
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
562
562
|
v: u.value,
|
|
563
563
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
564
564
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
565
565
|
}),
|
|
566
566
|
{ datapoint: u, seriesIndex: $ }
|
|
567
|
-
) : ""), 13, zt)) :
|
|
567
|
+
) : ""), 13, zt)) : c("", !0)
|
|
568
568
|
], 64))), 256))
|
|
569
|
-
])) :
|
|
569
|
+
])) : c("", !0)
|
|
570
570
|
], 64))), 256)),
|
|
571
571
|
m(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
572
|
-
], 14,
|
|
572
|
+
], 14, vt)) : c("", !0),
|
|
573
573
|
t.$slots.watermark ? (s(), i("div", Nt, [
|
|
574
|
-
m(t.$slots, "watermark", R(
|
|
575
|
-
])) :
|
|
576
|
-
w.value ?
|
|
574
|
+
m(t.$slots, "watermark", H(R({ isPrinting: h(ue) || h(ie) })), void 0, !0)
|
|
575
|
+
])) : c("", !0),
|
|
576
|
+
w.value ? c("", !0) : (s(), P(st, {
|
|
577
577
|
key: 4,
|
|
578
578
|
config: {
|
|
579
579
|
type: "stripPlot",
|
|
@@ -586,7 +586,7 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
586
586
|
}
|
|
587
587
|
}, null, 8, ["config"])),
|
|
588
588
|
We(at, {
|
|
589
|
-
show: d.value.showTooltip &&
|
|
589
|
+
show: d.value.showTooltip && X.value,
|
|
590
590
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
591
591
|
color: e.value.style.chart.tooltip.color,
|
|
592
592
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -597,14 +597,14 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
597
597
|
position: e.value.style.chart.tooltip.position,
|
|
598
598
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
599
599
|
parent: z.value,
|
|
600
|
-
content:
|
|
600
|
+
content: j.value,
|
|
601
601
|
isCustom: h(ge)(e.value.style.chart.tooltip.customFormat)
|
|
602
602
|
}, {
|
|
603
603
|
"tooltip-before": b(() => [
|
|
604
|
-
m(t.$slots, "tooltip-before", R(
|
|
604
|
+
m(t.$slots, "tooltip-before", H(R({ ...J.value })), void 0, !0)
|
|
605
605
|
]),
|
|
606
606
|
"tooltip-after": b(() => [
|
|
607
|
-
m(t.$slots, "tooltip-after", R(
|
|
607
|
+
m(t.$slots, "tooltip-after", H(R({ ...J.value })), void 0, !0)
|
|
608
608
|
]),
|
|
609
609
|
_: 3
|
|
610
610
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -647,10 +647,10 @@ const nt = ["id"], ct = ["xmlns", "viewBox"], vt = { key: 0 }, ht = { key: 0 },
|
|
|
647
647
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
648
648
|
]),
|
|
649
649
|
_: 1
|
|
650
|
-
}, 8, ["config"])) :
|
|
650
|
+
}, 8, ["config"])) : c("", !0)
|
|
651
651
|
], 14, nt));
|
|
652
652
|
}
|
|
653
|
-
}, Xt = /* @__PURE__ */ it(Ot, [["__scopeId", "data-v-
|
|
653
|
+
}, Xt = /* @__PURE__ */ it(Ot, [["__scopeId", "data-v-e20c3703"]]);
|
|
654
654
|
export {
|
|
655
655
|
Xt as default
|
|
656
656
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-D-vy9N1v.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
|
|
2
2
|
Provide an array of objects of type:
|
|
3
3
|
{
|
|
4
4
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, W as H } from "./index-
|
|
1
|
+
import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, W as H } from "./index-BiuHBtkZ.js";
|
|
2
2
|
import { openBlock as i, createElementBlock as c, normalizeStyle as g, createElementVNode as a, toDisplayString as u, Fragment as b, renderList as _, normalizeClass as f, createTextVNode as I, createCommentVNode as N, withDirectives as k, vModelText as w, withKeys as S, withModifiers as O, vModelSelect as P, createStaticVNode as R, pushScopeId as U, popScopeId as V } from "vue";
|
|
3
3
|
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const X = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D-vy9N1v.cjs"),P=require("./useNestedProp-B9yDavuy.cjs"),B=require("./usePrinter-P4nLcXX-.cjs"),O=require("./Shape-COoEWeGM.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=["id"],G={role:"cell"},q={role:"row"},U=["data-cell"],L={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},A=["height","width"],D={key:0,role:"cell","data-cell":"sum"},H={key:1,role:"cell","data-cell":"average"},X={key:2,role:"cell","data-cell":"median"},W={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(I,{expose:$}){const d=I;e.useCssVars(t=>({"14b82aea":z.value,"1a1f24c5":F.value}));const{vue_ui_table_heatmap:w}=r.useConfig(),p=e.ref(r.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),v=e.ref(0),o=e.computed({get:()=>f(),set:t=>t});function f(){const t=P.useNestedProp({userConfig:d.config,defaultConfig:w});return t.theme?{...P.useNestedProp({userConfig:r.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=f(),y()},{deep:!0});const{isPrinting:N,isImaging:x,generatePdf:g,generateImage:h}=B.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),E=e.computed(()=>o.value.table.responsiveBreakpoint),S=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{y()});function y(){r.objectIsEmpty(d.dataset)&&r.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(l=>{l.forEach(a=>{s.value=a.contentRect.width<E.value})});c.value&&t.observe(c.value)}const k=e.computed(()=>d.dataset.map(t=>{const l=t.values.map(n=>isNaN(n)?0:n),a=l.reduce((n,i)=>n+i,0);return{...t,values:l,serieExtremes:{max:Math.max(...l),min:Math.min(...l)},sum:a,average:a/l.length,median:r.calcMedian(l),displayValues:[t.name,...t.values],id:r.createUid()}})),b=e.computed(()=>{const t=k.value.flatMap(l=>l.values);return{min:Math.min(...t),max:Math.max(...t)}});function V(t,l){const a=o.value.style.heatmapColors.useIndividualScale;return r.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,a?l.min:b.value.min,a?l.max:b.value.max,t)}const C=e.computed(()=>k.value.map(t=>({...t,colors:t.displayValues.map(l=>isNaN(l)?o.value.style.backgroundColor:V(l,t.serieExtremes))}))),F=e.computed(()=>o.value.style.backgroundColor),z=e.computed(()=>`${o.value.table.borderWidth}px`);function _(){e.nextTick(()=>{const t=C.value.map(n=>[[n.name],n.displayValues,[n.sum],[n.average],[n.median]]),l=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),a=r.createCsvContent(l);r.downloadCsv({csvContent:a,title:"vue-ui-table-heatmap"})})}function R(t){m.value=t,v.value+=1}return $({generatePdf:g,generateCsv:_,generateImage:h}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`},[o.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(B.UserOptions,{ref:"details",key:`user_option_${v.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(N),isImaging:e.unref(x),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,onToggleFullscreen:R,onGeneratePdf:e.unref(g),onGenerateCsv:_,onGenerateImage:e.unref(h)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(a,n)=>(e.openBlock(),e.createElementBlock("th",G,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:a,rowIndex:n,type:typeof a,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[a.color&&u===0?(e.openBlock(),e.createElementBlock("div",L,[a.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(O._sfc_main,{plot:{x:10,y:10},color:a.color,radius:9,shape:a.shape||"circle"},null,8,["color","shape"])],8,A)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:n,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:n,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:n,colIndex:u,type:typeof i,isResponsive:s.value,color:a.colors[u],textColor:e.unref(r.adaptColorToBackground)(a.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,U))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",D,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:a.sum,rowIndex:n,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",H,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:a.average,rowIndex:n,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",X,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:a.median,rowIndex:n,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4)],14,M))}},J=T._export_sfc(W,[["__scopeId","data-v-2371a39f"]]);exports.default=J;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCssVars as Q, ref as h, computed as c, watch as Y, onMounted as Z, openBlock as s, createElementBlock as l, normalizeStyle as $, normalizeClass as z, createBlock as j, unref as g, createSlots as ee, withCtx as C, renderSlot as r, normalizeProps as v, guardReactiveProps as f, createCommentVNode as m, createElementVNode as y, Fragment as _, renderList as w, createVNode as te, mergeProps as E, nextTick as ae } from "vue";
|
|
2
|
-
import { u as oe, c as G, t as ne, o as se, e as le, V as re, F as ue, M as ie, q as de, r as ce } from "./index-
|
|
3
|
-
import { u as S } from "./useNestedProp-
|
|
4
|
-
import { u as ve, U as pe } from "./usePrinter-
|
|
5
|
-
import { _ as me } from "./Shape-
|
|
2
|
+
import { u as oe, c as G, t as ne, o as se, e as le, V as re, F as ue, M as ie, q as de, r as ce } from "./index-BiuHBtkZ.js";
|
|
3
|
+
import { u as S } from "./useNestedProp-Ck5_RzLu.js";
|
|
4
|
+
import { u as ve, U as pe } from "./usePrinter-Do8KiK5h.js";
|
|
5
|
+
import { _ as me } from "./Shape-BFiZBf3X.js";
|
|
6
6
|
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const he = ["id"], ge = { role: "cell" }, ye = { role: "row" }, be = ["data-cell"], Ce = {
|
|
8
8
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-Cx-40Fnz.cjs"),$=require("./useNestedProp-BdsfyHWU.cjs"),J=require("./vue-ui-sparkline-CqgArzCs.cjs"),K=require("./BaseIcon-CF1HQdM0.cjs"),D=require("./usePrinter-DbhL59iY.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=["id"],Z={style:{"z-index":"1","padding-right":"24px"}},j=["onClick"],ee={style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center"}},te=["data-cell"],le={dir:"auto",style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},ae=["data-cell","onPointerenter"],oe=["data-cell"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(F,{expose:O}){const d=F;e.useCssVars(l=>({"470f7d5c":l.tdo}));const{vue_ui_table_sparkline:W}=u.useConfig(),h=e.ref(u.createUid()),S=e.ref(0),b=e.ref(0),t=e.computed({get:()=>C(),set:l=>l});function C(){const l=$.useNestedProp({userConfig:d.config,defaultConfig:W});return l.theme?{...$.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>d.config,l=>{t.value=C(),A(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{f.value=v.value,b.value+=1},{deep:!0});const{isPrinting:w,isImaging:z,generatePdf:I,generateImage:N}=D.usePrinter({elementId:`table_${h.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),L=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),g=e.ref(null),B=e.ref(!1),T=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{A()});function A(){u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(s=>{s.forEach(a=>{B.value=a.contentRect.width<T.value})});g.value&&l.observe(g.value)}const E=e.computed(()=>(d.dataset.forEach((l,s)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:s})})}),d.dataset.map((l,s)=>{const a=(l.values||[]).map(r=>isNaN(r)?0:r??0),n=a.reduce((r,o)=>r+o,0);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||L.value[s]||u.palette[s]||u.palette[s%u.palette.length],sum:n,average:n/a.length,median:u.calcMedian(a),sparklineDataset:a.map((r,o)=>({period:t.value.colNames[o]||`col ${o}`,value:r||0}))}})));function M(l){const a=(l[0].values||[]).map((r,o)=>l.map(i=>i.values[o]||[])).map(r=>r.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((r,o)=>({...r,values:r.values||[],orders:a[o]}))}const v=e.computed(()=>M(E.value)),f=e.ref(v.value),G=e.computed(()=>Math.max(...f.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),k=e.ref(!1),_=e.ref(void 0),x=e.ref(-1);function q(){k.value=!1,_.value=void 0,x.value=-1,f.value=v.value}function R(l){k.value=!0,_.value=l;const s=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;x.value=a,l===y.value?y.value=void 0:y.value=l;const r=s.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);f.value=r,b.value+=1}const U=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),m=e.computed(()=>{let l=t.value.colNames;if(!l.length)for(let a=0;a<U.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let s;return t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?s=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.median]:s=l,t.value.showSparklines?[...s,t.value.translations.chart]:s}),c=e.ref(void 0),p=e.ref(void 0);function H({dataIndex:l,serieIndex:s}){c.value=l,p.value=s}const V=e.ref(!1);function X(l){V.value=l,S.value+=1}function P(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(m.value),s=E.value.map((r,o)=>[[r.name],r.values,[r.sum],[r.average],[r.median]]),a=[l].concat(s),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}return O({generatePdf:I,generateImage:N,generateCsv:P,restoreOrder:q}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${h.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:s[0]||(s[0]=a=>{p.value=void 0,c.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[t.value.title.text?(e.openBlock(),e.createElementBlock("caption",{key:0,style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("thead",Z,[e.createElementVNode("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},e.toDisplayString(t.value.translations.serie),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:n===m.value.length-1?"150px":"",cursor:v.value[0].values[n]!==void 0?"pointer":"default"}),onClick:()=>R(n),class:e.normalizeClass({"sticky-col":n===m.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",ee,[e.createElementVNode("span",null,e.toDisplayString(a),1),k.value&&n===_.value&&v.value[0].values[n]!==void 0?(e.openBlock(),e.createBlock(K.default,{key:0,size:18,name:x.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&n===m.value.length-1?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(w),isImaging:e.unref(z),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(N),onGenerateCsv:P},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:r,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,j))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",le,[e.createElementVNode("span",{style:e.normalizeStyle({color:a.color})},"⬤",4),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)])],12,te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(r,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?`${a.color}33`:"",borderRadius:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?"3px":""}),"data-cell":m.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{p.value=n,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:o})),45,ae))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.sum,e.unref(u.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:n})),13,oe)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.average,e.unref(u.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:n})),13,ne)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.median,e.unref(u.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:n})),13,re)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(J.default,{key:`sparkline_${n}_${b.value}`,onHoverIndex:({index:r})=>H({dataIndex:r,serieIndex:n}),dataset:a.sparklineDataset,showInfo:!1,selectedIndex:c.value,config:{type:t.value.sparkline.type,style:{backgroundColor:t.value.tbody.backgroundColor,animation:{show:t.value.sparkline.animation.show&&!e.unref(w)&&!e.unref(z),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:a.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:a.color},area:{color:a.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:a.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","dataset","selectedIndex","config"]))],12,ue)):e.createCommentVNode("",!0)],6))),256))])],4)],32)],10,Y))}},ie=Q._export_sfc(se,[["__scopeId","data-v-7094f9b2"]]);exports.default=ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D-vy9N1v.cjs"),$=require("./useNestedProp-B9yDavuy.cjs"),J=require("./vue-ui-sparkline-BUaixngQ.cjs"),K=require("./BaseIcon-BBQHz_Sf.cjs"),D=require("./usePrinter-P4nLcXX-.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=["id"],Z={style:{"z-index":"1","padding-right":"24px"}},j=["onClick"],ee={style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center"}},te=["data-cell"],le={dir:"auto",style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},ae=["data-cell","onPointerenter"],oe=["data-cell"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(F,{expose:O}){const d=F;e.useCssVars(l=>({"470f7d5c":l.tdo}));const{vue_ui_table_sparkline:W}=u.useConfig(),h=e.ref(u.createUid()),S=e.ref(0),b=e.ref(0),t=e.computed({get:()=>C(),set:l=>l});function C(){const l=$.useNestedProp({userConfig:d.config,defaultConfig:W});return l.theme?{...$.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>d.config,l=>{t.value=C(),A(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{f.value=v.value,b.value+=1},{deep:!0});const{isPrinting:w,isImaging:z,generatePdf:I,generateImage:N}=D.usePrinter({elementId:`table_${h.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),L=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),g=e.ref(null),B=e.ref(!1),T=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{A()});function A(){u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(s=>{s.forEach(a=>{B.value=a.contentRect.width<T.value})});g.value&&l.observe(g.value)}const E=e.computed(()=>(d.dataset.forEach((l,s)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:s})})}),d.dataset.map((l,s)=>{const a=(l.values||[]).map(r=>isNaN(r)?0:r??0),n=a.reduce((r,o)=>r+o,0);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||L.value[s]||u.palette[s]||u.palette[s%u.palette.length],sum:n,average:n/a.length,median:u.calcMedian(a),sparklineDataset:a.map((r,o)=>({period:t.value.colNames[o]||`col ${o}`,value:r||0}))}})));function M(l){const a=(l[0].values||[]).map((r,o)=>l.map(i=>i.values[o]||[])).map(r=>r.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((r,o)=>({...r,values:r.values||[],orders:a[o]}))}const v=e.computed(()=>M(E.value)),f=e.ref(v.value),G=e.computed(()=>Math.max(...f.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),k=e.ref(!1),_=e.ref(void 0),x=e.ref(-1);function q(){k.value=!1,_.value=void 0,x.value=-1,f.value=v.value}function R(l){k.value=!0,_.value=l;const s=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;x.value=a,l===y.value?y.value=void 0:y.value=l;const r=s.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);f.value=r,b.value+=1}const U=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),m=e.computed(()=>{let l=t.value.colNames;if(!l.length)for(let a=0;a<U.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let s;return t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?s=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.median]:s=l,t.value.showSparklines?[...s,t.value.translations.chart]:s}),c=e.ref(void 0),p=e.ref(void 0);function H({dataIndex:l,serieIndex:s}){c.value=l,p.value=s}const V=e.ref(!1);function X(l){V.value=l,S.value+=1}function P(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(m.value),s=E.value.map((r,o)=>[[r.name],r.values,[r.sum],[r.average],[r.median]]),a=[l].concat(s),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}return O({generatePdf:I,generateImage:N,generateCsv:P,restoreOrder:q}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${h.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:s[0]||(s[0]=a=>{p.value=void 0,c.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[t.value.title.text?(e.openBlock(),e.createElementBlock("caption",{key:0,style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("thead",Z,[e.createElementVNode("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},e.toDisplayString(t.value.translations.serie),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:n===m.value.length-1?"150px":"",cursor:v.value[0].values[n]!==void 0?"pointer":"default"}),onClick:()=>R(n),class:e.normalizeClass({"sticky-col":n===m.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",ee,[e.createElementVNode("span",null,e.toDisplayString(a),1),k.value&&n===_.value&&v.value[0].values[n]!==void 0?(e.openBlock(),e.createBlock(K.default,{key:0,size:18,name:x.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&n===m.value.length-1?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(w),isImaging:e.unref(z),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(N),onGenerateCsv:P},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:r,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,j))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",le,[e.createElementVNode("span",{style:e.normalizeStyle({color:a.color})},"⬤",4),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)])],12,te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(r,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?`${a.color}33`:"",borderRadius:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?"3px":""}),"data-cell":m.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{p.value=n,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:o})),45,ae))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.sum,e.unref(u.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:n})),13,oe)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.average,e.unref(u.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:n})),13,ne)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.median,e.unref(u.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:n})),13,re)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(J.default,{key:`sparkline_${n}_${b.value}`,onHoverIndex:({index:r})=>H({dataIndex:r,serieIndex:n}),dataset:a.sparklineDataset,showInfo:!1,selectedIndex:c.value,config:{type:t.value.sparkline.type,style:{backgroundColor:t.value.tbody.backgroundColor,animation:{show:t.value.sparkline.animation.show&&!e.unref(w)&&!e.unref(z),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:a.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:a.color},area:{color:a.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:a.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","dataset","selectedIndex","config"]))],12,ue)):e.createCommentVNode("",!0)],6))),256))])],4)],32)],10,Y))}},ie=Q._export_sfc(se,[["__scopeId","data-v-7094f9b2"]]);exports.default=ie;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCssVars as ve, ref as d, computed as g, watch as Q, onMounted as ce, openBlock as s, createElementBlock as v, normalizeClass as D, createElementVNode as c, normalizeStyle as r, toDisplayString as p, createCommentVNode as h, Fragment as T, renderList as V, createBlock as M, unref as i, createSlots as fe, withCtx as w, renderSlot as A, normalizeProps as pe, guardReactiveProps as be, nextTick as me } from "vue";
|
|
2
|
-
import { u as ge, c as he, t as ye, a as _e, p as $, b as ke, o as xe, e as Y, g as Ce, d as Ie, V as Se, i as P, f as z, q as we, r as Ae } from "./index-
|
|
3
|
-
import { u as Z } from "./useNestedProp-
|
|
4
|
-
import $e from "./vue-ui-sparkline-
|
|
5
|
-
import Pe from "./BaseIcon-
|
|
6
|
-
import { u as ze, U as Fe } from "./usePrinter-
|
|
2
|
+
import { u as ge, c as he, t as ye, a as _e, p as $, b as ke, o as xe, e as Y, g as Ce, d as Ie, V as Se, i as P, f as z, q as we, r as Ae } from "./index-BiuHBtkZ.js";
|
|
3
|
+
import { u as Z } from "./useNestedProp-Ck5_RzLu.js";
|
|
4
|
+
import $e from "./vue-ui-sparkline-EESAiZyt.js";
|
|
5
|
+
import Pe from "./BaseIcon-BysUnfCR.js";
|
|
6
|
+
import { u as ze, U as Fe } from "./usePrinter-Do8KiK5h.js";
|
|
7
7
|
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } }, De = ["onClick"], Te = { style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center" } }, Ve = ["data-cell"], Me = {
|
|
9
9
|
dir: "auto",
|