vue-data-ui 2.3.74 → 2.3.76
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-DK6F5Fq3.cjs → Arrow-D7M4-bW7.cjs} +1 -1
- package/dist/{Arrow-CYCrAySW.js → Arrow-DY9RKUmG.js} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon-DB7Apwv_.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-rwm-10Hu.js} +1 -1
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-CsNozyz7.cjs} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-e2fnfjXV.js} +2 -2
- package/dist/{Legend-Cj7T-DqJ.js → Legend-5cQ0xZjK.js} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-DgFd-O0m.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-CiTElr_0.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-yPECDLiP.cjs} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-DaZgCKV7.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-DwBBu3kB.js} +2 -2
- package/dist/{Title-D5cATWsL.cjs → Title-3EduyW4p.cjs} +1 -1
- package/dist/{Title-DZjnxQdN.js → Title-gUz6GDA3.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DScSrYXJ.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-DfSM1mNP.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-BTgtr0F8.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-CaV1s-yZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-CisbRRo_.cjs} +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-tWCzZrLx.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-DzTaA1eh.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-rvJyT65A.js} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-BGkWRPUY.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-BO89gTtq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-CcTMIHiB.js} +499 -486
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +19 -0
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-7e4Myhcg.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-CpzGQ63y.js} +3 -3
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-D71ZLkVV.js} +182 -169
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-B8Iu6cYt.js} +1 -1
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-BKQrweqm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Bx4QVkY0.js} +295 -279
- package/dist/vue-ui-candlestick-DAc1FQ-i.cjs +2 -0
- package/dist/vue-ui-carousel-table-uFRqkghO.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-xuQG6bcH.js} +146 -129
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Bo6rDcU7.js} +215 -204
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +6 -0
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-BQbeuW-k.cjs} +1 -1
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-C0KOqEOq.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-0Hsjx-bO.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BT71xS7P.js} +2 -2
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-BRqpKYvD.js} +2 -2
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-C2ReH6w0.cjs} +1 -1
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-NQW-3prf.js} +376 -362
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-jbXQQGTc.js} +270 -255
- package/dist/vue-ui-donut-v81suIOX.cjs +1 -0
- package/dist/vue-ui-dumbbell-DXQSg6wa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-Dyz8xdtC.js} +232 -213
- package/dist/vue-ui-flow-BL3JWW1m.js +481 -0
- package/dist/vue-ui-flow-UqSNwH9d.cjs +1 -0
- package/dist/vue-ui-galaxy-DTQWGvRH.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-Dx9nsOuM.js} +175 -162
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +1 -0
- package/dist/vue-ui-gauge-CLaKGi0-.js +500 -0
- package/dist/vue-ui-gizmo-Kitfqu0J.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-of-4s5HG.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BIzjOMXO.js} +157 -143
- package/dist/vue-ui-heatmap-DUw2350O.cjs +1 -0
- package/dist/vue-ui-kpi-By3YPwgo.js +98 -0
- package/dist/vue-ui-kpi-DyL2Hcz-.cjs +1 -0
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-C048-8Kd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-DnK3V2z2.js} +2 -2
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-BfhbIqa5.js} +177 -167
- package/dist/vue-ui-molecule-D-ahly6R.cjs +1 -0
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-DXxEKr3x.js} +172 -161
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BdUdHFd-.js} +377 -364
- package/dist/vue-ui-nested-donuts-C7qM_FRw.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-D0vF5jBt.js} +191 -177
- package/dist/vue-ui-onion-DX3gofXZ.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-CTZY-pY8.js} +298 -284
- package/dist/vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs +8 -0
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-ByY8GP3y.js} +347 -334
- package/dist/vue-ui-quadrant-CgApzie6.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-DTxJ__7j.js} +483 -469
- package/dist/vue-ui-quick-chart-DWZEgUJF.cjs +15 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-5UBmAU6W.js} +202 -189
- package/dist/vue-ui-radar-DEED0rTz.cjs +1 -0
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-Ce_Ewqtl.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-Dr6jquxh.js} +2 -2
- package/dist/vue-ui-relation-circle-BU8i2miI.js +322 -0
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +1 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-Ctl3Jywh.js} +203 -189
- package/dist/vue-ui-rings-OQ8a1Ruw.cjs +2 -0
- package/dist/vue-ui-scatter-B8StSjt8.cjs +1 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-BwJ_koWT.js} +284 -270
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-BS3L5vhN.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-bAVk3EPl.cjs} +1 -1
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-CMQzFTs9.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-CvFX_ExX.js} +2 -2
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CGYZpNt9.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-sF8QIso1.cjs} +1 -1
- package/dist/vue-ui-spark-trend-B4XSSKl9.js +263 -0
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BbsJGDMZ.js} +95 -87
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BKyQoI7C.cjs +1 -0
- package/dist/vue-ui-sparkgauge-D4w_i_QJ.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-CYybrW-6.js} +79 -68
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +1 -0
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DjN1SVdO.js} +142 -123
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-BLMhJxaN.js} +120 -104
- package/dist/vue-ui-sparkstackbar-BZ2bESBi.cjs +1 -0
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-BTKOHUYc.js} +235 -222
- package/dist/vue-ui-stackbar-DRHaJFR8.cjs +6 -0
- package/dist/vue-ui-strip-plot-DxQxFbWg.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-o6GTsGAT.js} +246 -232
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-BFIj1Rgh.cjs} +1 -1
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-CnquiTpr.js} +1 -1
- package/dist/vue-ui-table-heatmap-CCGK12Fa.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CZRIwv-Q.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-B3zEeq6Z.js} +151 -138
- package/dist/vue-ui-table-sparkline-DYmgfHz4.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BopiohUh.js} +116 -104
- package/dist/vue-ui-thermometer-CzPRBt6c.cjs +1 -0
- package/dist/vue-ui-timer-Bonw69Lt.cjs +64 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-C7WkW8hK.js} +191 -176
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BurRtFv4.js} +115 -103
- package/dist/vue-ui-tiremarks-DkIGfq8t.cjs +1 -0
- package/dist/vue-ui-treemap-CalhJmnp.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-DWy4voIr.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-CJW1YhtY.js} +314 -299
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-DB7X6nTS.js} +285 -265
- package/dist/vue-ui-waffle-faQMBYNx.cjs +1 -0
- package/dist/vue-ui-wheel-BzjbGP6a.cjs +1 -0
- package/dist/vue-ui-wheel-CryKap2E.js +255 -0
- package/dist/vue-ui-word-cloud-COqUkvei.js +512 -0
- package/dist/vue-ui-word-cloud-DJN9I4q4.cjs +1 -0
- package/dist/vue-ui-xy-BmA0tspd.cjs +3 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-b1Z_HPsx.js} +300 -274
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-BgbLnY5B.js} +345 -327
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +9 -0
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
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 M, createBlock as V, 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, U as Se, i as P, f as z, q as we, r as Ae } from "./index-CaV1s-yZ.js";
|
|
3
|
+
import { u as Z } from "./useNestedProp-tWCzZrLx.js";
|
|
4
|
+
import $e from "./vue-ui-sparkline-DjN1SVdO.js";
|
|
5
|
+
import Pe from "./BaseIcon-rwm-10Hu.js";
|
|
6
|
+
import { u as ze, U as Fe } from "./usePrinter-rvJyT65A.js";
|
|
7
|
+
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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" } }, Me = ["data-cell"], Ve = {
|
|
9
9
|
dir: "auto",
|
|
10
10
|
style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "6px" }
|
|
11
|
-
},
|
|
11
|
+
}, Ee = ["data-cell", "onPointerenter"], Ge = ["data-cell"], Le = ["data-cell"], Ue = ["data-cell"], Be = ["data-cell"], Re = {
|
|
12
12
|
__name: "vue-ui-table-sparkline",
|
|
13
13
|
props: {
|
|
14
14
|
config: {
|
|
@@ -24,67 +24,80 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
"
|
|
27
|
+
setup(j, { expose: ee }) {
|
|
28
|
+
const b = j;
|
|
29
|
+
ve((t) => ({
|
|
30
|
+
"470f7d5c": t.tdo
|
|
31
31
|
}));
|
|
32
|
-
const { vue_ui_table_sparkline:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
const { vue_ui_table_sparkline: te } = ge(), F = d(he()), E = d(0), C = d(0), e = g({
|
|
33
|
+
get: () => G(),
|
|
34
|
+
set: (t) => t
|
|
35
|
+
});
|
|
36
|
+
function G() {
|
|
37
|
+
const t = Z({
|
|
38
|
+
userConfig: b.config,
|
|
39
|
+
defaultConfig: te
|
|
36
40
|
});
|
|
37
41
|
return t.theme ? {
|
|
38
|
-
...
|
|
39
|
-
userConfig:
|
|
42
|
+
...Z({
|
|
43
|
+
userConfig: ye.vue_ui_table_sparkline[t.theme] || b.config,
|
|
40
44
|
defaultConfig: t
|
|
41
45
|
}),
|
|
42
|
-
customPalette:
|
|
46
|
+
customPalette: _e[t.theme] || $
|
|
43
47
|
} : t;
|
|
44
|
-
}
|
|
45
|
-
|
|
48
|
+
}
|
|
49
|
+
Q(() => b.config, (t) => {
|
|
50
|
+
e.value = G(), q(), C.value += 1;
|
|
51
|
+
}, { deep: !0 }), Q(() => b.dataset, (t) => {
|
|
52
|
+
x.value = y.value, C.value += 1;
|
|
53
|
+
}, { deep: !0 });
|
|
54
|
+
const { isPrinting: L, isImaging: U, generatePdf: B, generateImage: R } = ze({
|
|
55
|
+
elementId: `table_${F.value}`,
|
|
46
56
|
fileName: e.value.title.text || "vue-ui-table-sparkline"
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
57
|
+
}), ae = g(() => ke(e.value.customPalette)), I = d(null), H = d(!1), le = g(() => e.value.responsiveBreakpoint);
|
|
58
|
+
ce(() => {
|
|
59
|
+
q();
|
|
60
|
+
});
|
|
61
|
+
function q() {
|
|
62
|
+
xe(b.dataset) && Y({
|
|
50
63
|
componentName: "VueUiTableSparkline",
|
|
51
64
|
type: "dataset"
|
|
52
65
|
});
|
|
53
|
-
const t = new ResizeObserver((
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
const t = new ResizeObserver((u) => {
|
|
67
|
+
u.forEach((a) => {
|
|
68
|
+
H.value = a.contentRect.width < le.value;
|
|
56
69
|
});
|
|
57
70
|
});
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
const
|
|
61
|
-
|
|
71
|
+
I.value && t.observe(I.value);
|
|
72
|
+
}
|
|
73
|
+
const X = g(() => (b.dataset.forEach((t, u) => {
|
|
74
|
+
Ce({
|
|
62
75
|
datasetObject: t,
|
|
63
76
|
requiredAttributes: ["name", "values"]
|
|
64
77
|
}).forEach((a) => {
|
|
65
|
-
|
|
78
|
+
Y({
|
|
66
79
|
componentName: "VueUiTableSparkline",
|
|
67
80
|
type: "datasetSerieAttribute",
|
|
68
81
|
property: a,
|
|
69
|
-
index:
|
|
82
|
+
index: u
|
|
70
83
|
});
|
|
71
84
|
});
|
|
72
|
-
}),
|
|
85
|
+
}), b.dataset.map((t, u) => {
|
|
73
86
|
const a = (t.values || []).map((n) => isNaN(n) ? 0 : n ?? 0), o = a.reduce((n, l) => n + l, 0);
|
|
74
87
|
return {
|
|
75
88
|
...t,
|
|
76
89
|
values: t.values || [],
|
|
77
|
-
color:
|
|
90
|
+
color: Ie(t.color) || ae.value[u] || $[u] || $[u % $.length],
|
|
78
91
|
sum: o,
|
|
79
92
|
average: o / a.length,
|
|
80
|
-
median:
|
|
93
|
+
median: Se(a),
|
|
81
94
|
sparklineDataset: a.map((n, l) => ({
|
|
82
95
|
period: e.value.colNames[l] || `col ${l}`,
|
|
83
96
|
value: n || 0
|
|
84
97
|
}))
|
|
85
98
|
};
|
|
86
99
|
})));
|
|
87
|
-
function
|
|
100
|
+
function oe(t) {
|
|
88
101
|
const a = (t[0].values || []).map(
|
|
89
102
|
(n, l) => t.map((f) => f.values[l] || [])
|
|
90
103
|
).map(
|
|
@@ -96,75 +109,75 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
96
109
|
orders: a[l]
|
|
97
110
|
}));
|
|
98
111
|
}
|
|
99
|
-
const
|
|
100
|
-
function
|
|
101
|
-
|
|
112
|
+
const y = g(() => oe(X.value)), x = d(y.value), ne = g(() => Math.max(...x.value.map((t) => (t.values || []).length))), S = d(void 0), O = d(!1), N = d(void 0), W = d(-1);
|
|
113
|
+
function ue() {
|
|
114
|
+
O.value = !1, N.value = void 0, W.value = -1, x.value = y.value;
|
|
102
115
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
const n =
|
|
108
|
-
|
|
116
|
+
function se(t) {
|
|
117
|
+
O.value = !0, N.value = t;
|
|
118
|
+
const u = y.value.map((l) => l.values[t] || []), a = S.value === t ? 1 : -1;
|
|
119
|
+
W.value = a, t === S.value ? S.value = void 0 : S.value = t;
|
|
120
|
+
const n = u.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
|
|
121
|
+
x.value = n, C.value += 1;
|
|
109
122
|
}
|
|
110
|
-
const
|
|
123
|
+
const re = g(() => Math.max(...b.dataset.map((t) => (t.values || []).length))), k = g(() => {
|
|
111
124
|
let t = e.value.colNames;
|
|
112
125
|
if (!t.length)
|
|
113
|
-
for (let a = 0; a <
|
|
126
|
+
for (let a = 0; a < re.value; a += 1)
|
|
114
127
|
t.push(`col ${a + 1}`);
|
|
115
128
|
e.value.showTotal && (t = [...t, e.value.translations.total]);
|
|
116
|
-
let
|
|
117
|
-
return e.value.showAverage && e.value.showMedian ?
|
|
129
|
+
let u;
|
|
130
|
+
return e.value.showAverage && e.value.showMedian ? u = [
|
|
118
131
|
...t,
|
|
119
132
|
e.value.translations.average,
|
|
120
133
|
e.value.translations.median
|
|
121
|
-
] : e.value.showAverage && !e.value.showMedian ?
|
|
122
|
-
}), m = d(void 0),
|
|
123
|
-
function
|
|
124
|
-
m.value = t,
|
|
134
|
+
] : e.value.showAverage && !e.value.showMedian ? u = [...t, e.value.translations.average] : !e.value.showAverage && e.value.showMedian ? u = [...t, e.value.translations.median] : u = t, e.value.showSparklines ? [...u, e.value.translations.chart] : u;
|
|
135
|
+
}), m = d(void 0), _ = d(void 0);
|
|
136
|
+
function ie({ dataIndex: t, serieIndex: u }) {
|
|
137
|
+
m.value = t, _.value = u;
|
|
125
138
|
}
|
|
126
|
-
const
|
|
127
|
-
function
|
|
128
|
-
|
|
139
|
+
const J = d(!1);
|
|
140
|
+
function de(t) {
|
|
141
|
+
J.value = t, E.value += 1;
|
|
129
142
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
const t = [e.value.translations.serie].concat(k.value),
|
|
143
|
+
function K() {
|
|
144
|
+
me(() => {
|
|
145
|
+
const t = [e.value.translations.serie].concat(k.value), u = X.value.map((n, l) => [
|
|
133
146
|
[n.name],
|
|
134
147
|
n.values,
|
|
135
148
|
[n.sum],
|
|
136
149
|
[n.average],
|
|
137
150
|
[n.median]
|
|
138
|
-
]), a = [t].concat(
|
|
139
|
-
|
|
151
|
+
]), a = [t].concat(u), o = we(a);
|
|
152
|
+
Ae({
|
|
140
153
|
csvContent: o,
|
|
141
154
|
title: e.value.title.text || "vue-ui-table-sparkline"
|
|
142
155
|
});
|
|
143
156
|
});
|
|
144
157
|
}
|
|
145
|
-
return
|
|
146
|
-
generatePdf:
|
|
147
|
-
generateImage:
|
|
148
|
-
generateCsv:
|
|
149
|
-
restoreOrder:
|
|
150
|
-
}), (t,
|
|
158
|
+
return ee({
|
|
159
|
+
generatePdf: B,
|
|
160
|
+
generateImage: R,
|
|
161
|
+
generateCsv: K,
|
|
162
|
+
restoreOrder: ue
|
|
163
|
+
}), (t, u) => (s(), v("div", {
|
|
151
164
|
ref_key: "tableContainer",
|
|
152
|
-
ref:
|
|
153
|
-
class:
|
|
165
|
+
ref: I,
|
|
166
|
+
class: D({ "vue-ui-responsive": H.value }),
|
|
154
167
|
style: { overflow: "hidden" },
|
|
155
|
-
id: `table_${
|
|
168
|
+
id: `table_${F.value}`
|
|
156
169
|
}, [
|
|
157
170
|
c("div", {
|
|
158
171
|
style: { overflow: "auto" },
|
|
159
|
-
onPointerleave:
|
|
160
|
-
|
|
172
|
+
onPointerleave: u[0] || (u[0] = (a) => {
|
|
173
|
+
_.value = void 0, m.value = void 0;
|
|
161
174
|
})
|
|
162
175
|
}, [
|
|
163
176
|
c("table", {
|
|
164
177
|
class: "vue-ui-data-table",
|
|
165
178
|
style: r({ fontFamily: e.value.fontFamily, position: "relative" })
|
|
166
179
|
}, [
|
|
167
|
-
e.value.title.text ? (
|
|
180
|
+
e.value.title.text ? (s(), v("caption", {
|
|
168
181
|
key: 0,
|
|
169
182
|
style: r({ backgroundColor: e.value.title.backgroundColor })
|
|
170
183
|
}, [
|
|
@@ -176,7 +189,7 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
176
189
|
textAlign: e.value.title.textAlign
|
|
177
190
|
})
|
|
178
191
|
}, p(e.value.title.text), 5),
|
|
179
|
-
e.value.title.subtitle.text ? (
|
|
192
|
+
e.value.title.subtitle.text ? (s(), v("div", {
|
|
180
193
|
key: 0,
|
|
181
194
|
style: r({
|
|
182
195
|
fontSize: `${e.value.title.subtitle.fontSize}px`,
|
|
@@ -184,9 +197,9 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
184
197
|
color: e.value.title.subtitle.color,
|
|
185
198
|
textAlign: e.value.title.textAlign
|
|
186
199
|
})
|
|
187
|
-
}, p(e.value.title.subtitle.text), 5)) :
|
|
188
|
-
], 4)) :
|
|
189
|
-
c("thead",
|
|
200
|
+
}, p(e.value.title.subtitle.text), 5)) : h("", !0)
|
|
201
|
+
], 4)) : h("", !0),
|
|
202
|
+
c("thead", We, [
|
|
190
203
|
c("tr", {
|
|
191
204
|
role: "row",
|
|
192
205
|
class: "vue-ui-data-table__thead-row",
|
|
@@ -205,7 +218,7 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
205
218
|
}),
|
|
206
219
|
class: "sticky-col-first"
|
|
207
220
|
}, p(e.value.translations.serie), 5),
|
|
208
|
-
(
|
|
221
|
+
(s(!0), v(T, null, M(k.value, (a, o) => (s(), v("th", {
|
|
209
222
|
role: "cell",
|
|
210
223
|
style: r({
|
|
211
224
|
background: e.value.thead.backgroundColor,
|
|
@@ -213,81 +226,81 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
213
226
|
textAlign: e.value.thead.textAlign,
|
|
214
227
|
fontWeight: e.value.thead.bold ? "bold" : "normal",
|
|
215
228
|
minWidth: o === k.value.length - 1 ? "150px" : "",
|
|
216
|
-
cursor:
|
|
229
|
+
cursor: y.value[0].values[o] !== void 0 ? "pointer" : "default"
|
|
217
230
|
}),
|
|
218
|
-
onClick: () =>
|
|
219
|
-
class:
|
|
231
|
+
onClick: () => se(o),
|
|
232
|
+
class: D({ "sticky-col": o === k.value.length - 1 && e.value.showSparklines })
|
|
220
233
|
}, [
|
|
221
|
-
c("div",
|
|
234
|
+
c("div", Te, [
|
|
222
235
|
c("span", null, p(a), 1),
|
|
223
|
-
|
|
236
|
+
O.value && o === N.value && y.value[0].values[o] !== void 0 ? (s(), V(Pe, {
|
|
224
237
|
key: 0,
|
|
225
238
|
size: 18,
|
|
226
|
-
name:
|
|
239
|
+
name: W.value === 1 ? "sort" : "sortReverse",
|
|
227
240
|
stroke: e.value.thead.color
|
|
228
|
-
}, null, 8, ["name", "stroke"])) :
|
|
241
|
+
}, null, 8, ["name", "stroke"])) : h("", !0)
|
|
229
242
|
]),
|
|
230
|
-
e.value.userOptions.show && o === k.value.length - 1 ? (
|
|
243
|
+
e.value.userOptions.show && o === k.value.length - 1 ? (s(), V(Fe, {
|
|
231
244
|
ref_for: !0,
|
|
232
245
|
ref: "details",
|
|
233
|
-
key: `user_option_${
|
|
246
|
+
key: `user_option_${E.value}`,
|
|
234
247
|
backgroundColor: e.value.thead.backgroundColor,
|
|
235
248
|
color: e.value.thead.color,
|
|
236
|
-
isPrinting: i(
|
|
237
|
-
isImaging: i(
|
|
238
|
-
uid:
|
|
249
|
+
isPrinting: i(L),
|
|
250
|
+
isImaging: i(U),
|
|
251
|
+
uid: F.value,
|
|
239
252
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
240
253
|
hasXls: e.value.userOptions.buttons.csv,
|
|
241
254
|
hasImg: e.value.userOptions.buttons.img,
|
|
242
255
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
243
|
-
isFullscreen:
|
|
256
|
+
isFullscreen: J.value,
|
|
244
257
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
245
|
-
chartElement:
|
|
246
|
-
onToggleFullscreen:
|
|
247
|
-
onGeneratePdf: i(
|
|
248
|
-
onGenerateImage: i(
|
|
249
|
-
onGenerateCsv:
|
|
250
|
-
},
|
|
258
|
+
chartElement: I.value,
|
|
259
|
+
onToggleFullscreen: de,
|
|
260
|
+
onGeneratePdf: i(B),
|
|
261
|
+
onGenerateImage: i(R),
|
|
262
|
+
onGenerateCsv: K
|
|
263
|
+
}, fe({ _: 2 }, [
|
|
251
264
|
t.$slots.optionPdf ? {
|
|
252
265
|
name: "optionPdf",
|
|
253
|
-
fn:
|
|
266
|
+
fn: w(() => [
|
|
254
267
|
A(t.$slots, "optionPdf", {}, void 0, !0)
|
|
255
268
|
]),
|
|
256
269
|
key: "0"
|
|
257
270
|
} : void 0,
|
|
258
271
|
t.$slots.optionCsv ? {
|
|
259
272
|
name: "optionCsv",
|
|
260
|
-
fn:
|
|
273
|
+
fn: w(() => [
|
|
261
274
|
A(t.$slots, "optionCsv", {}, void 0, !0)
|
|
262
275
|
]),
|
|
263
276
|
key: "1"
|
|
264
277
|
} : void 0,
|
|
265
278
|
t.$slots.optionImg ? {
|
|
266
279
|
name: "optionImg",
|
|
267
|
-
fn:
|
|
280
|
+
fn: w(() => [
|
|
268
281
|
A(t.$slots, "optionImg", {}, void 0, !0)
|
|
269
282
|
]),
|
|
270
283
|
key: "2"
|
|
271
284
|
} : void 0,
|
|
272
285
|
t.$slots.optionFullscreen ? {
|
|
273
286
|
name: "optionFullscreen",
|
|
274
|
-
fn:
|
|
275
|
-
A(t.$slots, "optionFullscreen",
|
|
287
|
+
fn: w(({ toggleFullscreen: n, isFullscreen: l }) => [
|
|
288
|
+
A(t.$slots, "optionFullscreen", pe(be({ toggleFullscreen: n, isFullscreen: l })), void 0, !0)
|
|
276
289
|
]),
|
|
277
290
|
key: "3"
|
|
278
291
|
} : void 0
|
|
279
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
280
|
-
], 14,
|
|
292
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : h("", !0)
|
|
293
|
+
], 14, De))), 256))
|
|
281
294
|
], 4)
|
|
282
295
|
]),
|
|
283
296
|
c("tbody", null, [
|
|
284
|
-
(
|
|
297
|
+
(s(!0), v(T, null, M(x.value, (a, o) => (s(), v("tr", {
|
|
285
298
|
role: "row",
|
|
286
299
|
style: r({
|
|
287
300
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
288
301
|
color: e.value.tbody.color
|
|
289
302
|
}),
|
|
290
|
-
class:
|
|
303
|
+
class: D({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 })
|
|
291
304
|
}, [
|
|
292
305
|
c("td", {
|
|
293
306
|
role: "cell",
|
|
@@ -301,14 +314,14 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
301
314
|
"data-cell": e.value.translations.serie,
|
|
302
315
|
class: "vue-ui-data-table__tbody__td sticky-col-first"
|
|
303
316
|
}, [
|
|
304
|
-
c("div",
|
|
317
|
+
c("div", Ve, [
|
|
305
318
|
c("span", {
|
|
306
319
|
style: r({ color: a.color })
|
|
307
320
|
}, "⬤", 4),
|
|
308
321
|
c("span", null, p(a.name ?? "-"), 1)
|
|
309
322
|
])
|
|
310
|
-
], 12,
|
|
311
|
-
(
|
|
323
|
+
], 12, Me),
|
|
324
|
+
(s(!0), v(T, null, M(ne.value, (n, l) => (s(), v("td", {
|
|
312
325
|
dir: "auto",
|
|
313
326
|
role: "cell",
|
|
314
327
|
style: r({
|
|
@@ -316,26 +329,26 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
316
329
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
317
330
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
318
331
|
textAlign: e.value.tbody.textAlign,
|
|
319
|
-
backgroundColor: m.value !== void 0 &&
|
|
320
|
-
borderRadius: m.value !== void 0 &&
|
|
332
|
+
backgroundColor: m.value !== void 0 && _.value !== void 0 && l === m.value && _.value === o ? `${a.color}33` : "",
|
|
333
|
+
borderRadius: m.value !== void 0 && _.value !== void 0 && l === m.value && _.value === o ? "3px" : ""
|
|
321
334
|
}),
|
|
322
335
|
"data-cell": k.value[l],
|
|
323
336
|
class: "vue-ui-data-table__tbody__td",
|
|
324
337
|
onPointerenter: (f) => {
|
|
325
|
-
|
|
338
|
+
_.value = o, m.value = l;
|
|
326
339
|
}
|
|
327
|
-
}, p([null, void 0].includes(a.values[l]) ? "-" : i(
|
|
340
|
+
}, p([null, void 0].includes(a.values[l]) ? "-" : i(P)(
|
|
328
341
|
e.value.formatter,
|
|
329
342
|
Number(a.values[l]),
|
|
330
|
-
i(
|
|
343
|
+
i(z)({
|
|
331
344
|
p: e.value.prefix,
|
|
332
345
|
v: Number(a.values[l]),
|
|
333
346
|
s: e.value.suffix,
|
|
334
347
|
r: e.value.roundingValues
|
|
335
348
|
}),
|
|
336
349
|
{ datapoint: a, seriesIndex: o, datapointIndex: l }
|
|
337
|
-
)), 45,
|
|
338
|
-
e.value.showTotal ? (
|
|
350
|
+
)), 45, Ee))), 256)),
|
|
351
|
+
e.value.showTotal ? (s(), v("td", {
|
|
339
352
|
key: 0,
|
|
340
353
|
dir: "auto",
|
|
341
354
|
role: "cell",
|
|
@@ -347,18 +360,18 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
347
360
|
}),
|
|
348
361
|
"data-cell": e.value.translations.total,
|
|
349
362
|
class: "vue-ui-data-table__tbody__td"
|
|
350
|
-
}, p(i(
|
|
363
|
+
}, p(i(P)(
|
|
351
364
|
e.value.formatter,
|
|
352
365
|
a.sum,
|
|
353
|
-
i(
|
|
366
|
+
i(z)({
|
|
354
367
|
p: e.value.prefix,
|
|
355
368
|
v: a.sum,
|
|
356
369
|
s: e.value.suffix,
|
|
357
370
|
r: e.value.roundingTotal
|
|
358
371
|
}),
|
|
359
372
|
{ datapoint: a.sum, seriesIndex: o }
|
|
360
|
-
)), 13,
|
|
361
|
-
e.value.showAverage ? (
|
|
373
|
+
)), 13, Ge)) : h("", !0),
|
|
374
|
+
e.value.showAverage ? (s(), v("td", {
|
|
362
375
|
key: 1,
|
|
363
376
|
dir: "auto",
|
|
364
377
|
role: "cell",
|
|
@@ -370,18 +383,18 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
370
383
|
}),
|
|
371
384
|
"data-cell": e.value.translations.average,
|
|
372
385
|
class: "vue-ui-data-table__tbody__td"
|
|
373
|
-
}, p(i(
|
|
386
|
+
}, p(i(P)(
|
|
374
387
|
e.value.formatter,
|
|
375
388
|
a.average,
|
|
376
|
-
i(
|
|
389
|
+
i(z)({
|
|
377
390
|
p: e.value.prefix,
|
|
378
391
|
v: a.average,
|
|
379
392
|
s: e.value.suffix,
|
|
380
393
|
r: e.value.roundingAverage
|
|
381
394
|
}),
|
|
382
395
|
{ datapoint: a.average, seriesIndex: o }
|
|
383
|
-
)), 13,
|
|
384
|
-
e.value.showMedian ? (
|
|
396
|
+
)), 13, Le)) : h("", !0),
|
|
397
|
+
e.value.showMedian ? (s(), v("td", {
|
|
385
398
|
key: 2,
|
|
386
399
|
dir: "auto",
|
|
387
400
|
role: "cell",
|
|
@@ -393,18 +406,18 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
393
406
|
}),
|
|
394
407
|
"data-cell": e.value.translations.median,
|
|
395
408
|
class: "vue-ui-data-table__tbody__td"
|
|
396
|
-
}, p(i(
|
|
409
|
+
}, p(i(P)(
|
|
397
410
|
e.value.formatter,
|
|
398
411
|
a.median,
|
|
399
|
-
i(
|
|
412
|
+
i(z)({
|
|
400
413
|
p: e.value.prefix,
|
|
401
414
|
v: a.median,
|
|
402
415
|
s: e.value.suffix,
|
|
403
416
|
r: e.value.roundingMedian
|
|
404
417
|
}),
|
|
405
418
|
{ datapoint: a.median, seriesIndex: o }
|
|
406
|
-
)), 13,
|
|
407
|
-
e.value.showSparklines ? (
|
|
419
|
+
)), 13, Ue)) : h("", !0),
|
|
420
|
+
e.value.showSparklines ? (s(), v("td", {
|
|
408
421
|
key: 3,
|
|
409
422
|
role: "cell",
|
|
410
423
|
"data-cell": e.value.translations.chart,
|
|
@@ -416,9 +429,9 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
416
429
|
}),
|
|
417
430
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
418
431
|
}, [
|
|
419
|
-
(
|
|
420
|
-
key: `sparkline_${o}_${
|
|
421
|
-
onHoverIndex: ({ index: n }) =>
|
|
432
|
+
(s(), V($e, {
|
|
433
|
+
key: `sparkline_${o}_${C.value}`,
|
|
434
|
+
onHoverIndex: ({ index: n }) => ie({ dataIndex: n, serieIndex: o }),
|
|
422
435
|
dataset: a.sparklineDataset,
|
|
423
436
|
showInfo: !1,
|
|
424
437
|
selectedIndex: m.value,
|
|
@@ -427,7 +440,7 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
427
440
|
style: {
|
|
428
441
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
429
442
|
animation: {
|
|
430
|
-
show: e.value.sparkline.animation.show && !i(
|
|
443
|
+
show: e.value.sparkline.animation.show && !i(L) && !i(U),
|
|
431
444
|
animationFrames: e.value.sparkline.animation.animationFrames
|
|
432
445
|
},
|
|
433
446
|
line: {
|
|
@@ -454,14 +467,14 @@ const ze = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
454
467
|
}
|
|
455
468
|
}
|
|
456
469
|
}, null, 8, ["onHoverIndex", "dataset", "selectedIndex", "config"]))
|
|
457
|
-
], 12,
|
|
470
|
+
], 12, Be)) : h("", !0)
|
|
458
471
|
], 6))), 256))
|
|
459
472
|
])
|
|
460
473
|
], 4)
|
|
461
474
|
], 32)
|
|
462
|
-
], 10,
|
|
475
|
+
], 10, Ne));
|
|
463
476
|
}
|
|
464
|
-
},
|
|
477
|
+
}, Ze = /* @__PURE__ */ Oe(Re, [["__scopeId", "data-v-7094f9b2"]]);
|
|
465
478
|
export {
|
|
466
|
-
|
|
479
|
+
Ze as default
|
|
467
480
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BTgtr0F8.cjs"),$=require("./useNestedProp-CisbRRo_.cjs"),J=require("./vue-ui-sparkline-CDowaDRS.cjs"),K=require("./BaseIcon-DB7Apwv_.cjs"),D=require("./usePrinter-DzTaA1eh.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;
|