vue-data-ui 3.22.2 → 3.22.4
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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as re } from "./vue-ui-xy-
|
|
4
|
-
import { t as ie } from "./useConfig-
|
|
2
|
+
import { Gt as t, Lt as n, Tt as r, W as i, X as a, jt as o, l as ee, q as s, r as c, w as te, x as ne } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as re } from "./vue-ui-xy-Dg0wxSeC.js";
|
|
4
|
+
import { t as ie } from "./useConfig-pVLia3dt.js";
|
|
5
5
|
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import { t as l } from "./BaseIcon-
|
|
7
|
-
import { t as u } from "./vue-ui-donut-
|
|
6
|
+
import { t as l } from "./BaseIcon-xBuW2jjI.js";
|
|
7
|
+
import { t as u } from "./vue-ui-donut-C4FcvXm3.js";
|
|
8
8
|
import { Fragment as d, computed as f, createBlock as oe, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as se, defineAsyncComponent as ce, nextTick as le, normalizeClass as _, normalizeStyle as v, onMounted as ue, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, useCssVars as de, vModelSelect as fe, vModelText as pe, watch as me, withCtx as he, withDirectives as w, withKeys as ge, withModifiers as _e } from "vue";
|
|
9
9
|
//#region src/components/vue-ui-table.vue
|
|
10
10
|
var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["data-is-open"], xe = { class: "vue-ui-table-export-hub-options" }, Se = { class: "vue-ui-table-export-hub-option-wrapper" }, Ce = { class: "label" }, we = ["innerHTML"], Te = { class: "vue-ui-table-export-hub-option-wrapper" }, Ee = { class: "label" }, De = ["innerHTML"], Oe = { class: "vue-ui-table-dialog-field" }, ke = {
|
|
@@ -127,7 +127,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
127
127
|
v4f070ff6: Mn.value,
|
|
128
128
|
v725e1288: In.value
|
|
129
129
|
}));
|
|
130
|
-
let sn = ce(() => import("./BaseDraggableDialog-
|
|
130
|
+
let sn = ce(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), T = e, cn = ve, { vue_ui_table: ln } = ie(), E = i();
|
|
131
131
|
b(null);
|
|
132
132
|
let un = b(null), dn = b(null), D = b({
|
|
133
133
|
height: 316,
|
|
@@ -183,10 +183,10 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
183
183
|
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
184
184
|
type: e.type,
|
|
185
185
|
index: t
|
|
186
|
-
}))), Dn = f(() => un.value ? un.value.getBoundingClientRect().height + 3 : 3), K = f(() => Object.keys(T.config || {}).length ?
|
|
186
|
+
}))), Dn = f(() => un.value ? un.value.getBoundingClientRect().height + 3 : 3), K = f(() => Object.keys(T.config || {}).length ? ne(t({
|
|
187
187
|
defaultConfig: ln,
|
|
188
188
|
userConfig: T.config
|
|
189
|
-
})) : ln), q = f(() => K.value.useCursorPointer), On = f(() => K.value.style.th.buttons.cancel.inactive.backgroundColor), kn = f(() => K.value.style.th.buttons.cancel.inactive.color), An = f(() => K.value.style.th.buttons.cancel.active.backgroundColor), jn = f(() => K.value.style.th.buttons.filter.active.backgroundColor), Mn = f(() => K.value.style.th.buttons.filter.active.color), Nn = f(() =>
|
|
189
|
+
})) : ln), q = f(() => K.value.useCursorPointer), On = f(() => K.value.style.th.buttons.cancel.inactive.backgroundColor), kn = f(() => K.value.style.th.buttons.cancel.inactive.color), An = f(() => K.value.style.th.buttons.cancel.active.backgroundColor), jn = f(() => K.value.style.th.buttons.filter.active.backgroundColor), Mn = f(() => K.value.style.th.buttons.filter.active.color), Nn = f(() => r(An.value, .33)), Pn = f(() => n(An.value, 33)), Fn = f(() => r(jn.value, .33)), In = f(() => n(jn, 33)), Ln = f(() => [...G.value].filter((e) => e.type === O.value.DATE)), Rn = f(() => ["", ...Ln.value.map((e) => e.name)]), zn = f(() => {
|
|
190
190
|
let e = Ln.value.find((e) => e.name === wn.value);
|
|
191
191
|
return e ? e.index : null;
|
|
192
192
|
}), J = f(() => {
|
|
@@ -234,8 +234,8 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
234
234
|
}
|
|
235
235
|
let Jn = f(() => {
|
|
236
236
|
if (!Hn.value) return [];
|
|
237
|
-
let e = Kn.value.height,
|
|
238
|
-
name:
|
|
237
|
+
let e = Kn.value.height, t = Kn.value.width, n = t / k.value.rows.length, i = Math.max(...k.value.rows.map((e) => e.value)), a = Math.min(...k.value.rows.map((e) => e.value)), o = T.dataset.header[k.value.col].isPercentage && T.dataset.header[k.value.col].percentageTo, s = D.value.type === O.value.DONUT && V.value && V.value.name, te = T.dataset.header[k.value.col].name + (o ? ` / ${T.dataset.header[I.value[k.value.col].referenceIndex].name}` : "") + (s ? ` ${K.value.translations.by} ${V.value.name}` : ""), ne = T.dataset.header[k.value.col].prefix, re = T.dataset.header[k.value.col].suffix, ie = [{
|
|
238
|
+
name: te,
|
|
239
239
|
series: k.value.rows.map((e) => e.value),
|
|
240
240
|
type: "line",
|
|
241
241
|
useProgression: !0,
|
|
@@ -243,25 +243,25 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
243
243
|
color: K.value.style.chart.layout.line.stroke,
|
|
244
244
|
useArea: K.value.style.chart.layout.line.useArea
|
|
245
245
|
}], ae = [{
|
|
246
|
-
name:
|
|
246
|
+
name: te,
|
|
247
247
|
series: k.value.rows.map((e) => e.value),
|
|
248
248
|
type: "bar",
|
|
249
249
|
useProgression: !0,
|
|
250
250
|
color: K.value.style.chart.layout.bar.fill
|
|
251
|
-
}], l = K.value.style.chart.modal.backgroundColor, u =
|
|
251
|
+
}], l = K.value.style.chart.modal.backgroundColor, u = c(l), d = T.dataset.header[k.value.col].decimals, f = {
|
|
252
252
|
useCssAnimation: !1,
|
|
253
253
|
chart: {
|
|
254
|
-
width:
|
|
254
|
+
width: t,
|
|
255
255
|
height: e - 250,
|
|
256
256
|
backgroundColor: l,
|
|
257
257
|
color: u,
|
|
258
258
|
labels: {
|
|
259
259
|
fontSize: 18,
|
|
260
|
-
prefix:
|
|
260
|
+
prefix: ne,
|
|
261
261
|
suffix: re
|
|
262
262
|
},
|
|
263
263
|
grid: {
|
|
264
|
-
stroke:
|
|
264
|
+
stroke: r(u, .5),
|
|
265
265
|
labels: {
|
|
266
266
|
color: u,
|
|
267
267
|
xAxisLabels: {
|
|
@@ -280,7 +280,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
280
280
|
show: !1
|
|
281
281
|
},
|
|
282
282
|
title: {
|
|
283
|
-
text:
|
|
283
|
+
text: te,
|
|
284
284
|
color: u,
|
|
285
285
|
textAlign: "center",
|
|
286
286
|
fontSize: 18
|
|
@@ -330,8 +330,8 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
330
330
|
rounding: d
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
}, oe = a >= 0 ? 0 : Math.abs(a), p = i + oe, m = T.dataset.header[k.value.col].isPercentage, h = k.value.rows.map((t,
|
|
334
|
-
x:
|
|
333
|
+
}, oe = a >= 0 ? 0 : Math.abs(a), p = i + oe, m = T.dataset.header[k.value.col].isPercentage, h = k.value.rows.map((t, r) => ({
|
|
334
|
+
x: n * r + n / 2,
|
|
335
335
|
y: (1 - (t.value + oe) / p) * e,
|
|
336
336
|
value: m ? t.value * 100 : t.value,
|
|
337
337
|
suffix: m ? "%" : T.dataset.header[k.value.col].suffix ? T.dataset.header[k.value.col].suffix : "",
|
|
@@ -360,7 +360,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
360
360
|
labels: {
|
|
361
361
|
dataLabels: {
|
|
362
362
|
suffix: m ? "%" : "",
|
|
363
|
-
prefix:
|
|
363
|
+
prefix: ne
|
|
364
364
|
},
|
|
365
365
|
value: { rounding: d },
|
|
366
366
|
percentage: {
|
|
@@ -397,7 +397,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
397
397
|
right: 12
|
|
398
398
|
},
|
|
399
399
|
title: {
|
|
400
|
-
text:
|
|
400
|
+
text: te,
|
|
401
401
|
color: u,
|
|
402
402
|
fontSize: 18
|
|
403
403
|
},
|
|
@@ -413,13 +413,13 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
413
413
|
xyConfig: f,
|
|
414
414
|
xyDatasetLine: ie,
|
|
415
415
|
xyDatasetBar: ae,
|
|
416
|
-
progression: h.length >= 2 ?
|
|
416
|
+
progression: h.length >= 2 ? ee(h) : !1
|
|
417
417
|
};
|
|
418
418
|
});
|
|
419
419
|
function Yn() {
|
|
420
420
|
hn.value = V.value.options.map((e, t) => ({
|
|
421
421
|
name: e,
|
|
422
|
-
color:
|
|
422
|
+
color: o[t] || o[t % o.length],
|
|
423
423
|
values: [Y.value.filter((t, n) => t.td[V.value.index] === e && k.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[k.value.col]).reduce((e, t) => Math.abs(e) + Math.abs(t), 0)],
|
|
424
424
|
absoluteValue: Y.value.filter((t, n) => t.td[V.value.index] === e && k.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[k.value.col]).reduce((e, t) => e + t, 0)
|
|
425
425
|
})).sort((e, t) => t.value - e.value), le(() => {
|
|
@@ -432,7 +432,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
432
432
|
function Zn(e = "all") {
|
|
433
433
|
let t = T.dataset.header.map((e) => e.name), n = e === "all" ? W.value.map((e) => e.td) : Y.value.map((e) => e.td);
|
|
434
434
|
a({
|
|
435
|
-
csvContent:
|
|
435
|
+
csvContent: te([t].concat(n)),
|
|
436
436
|
title: Tn.value
|
|
437
437
|
});
|
|
438
438
|
}
|
|
@@ -863,13 +863,13 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
863
863
|
"margin-right": "3px"
|
|
864
864
|
}
|
|
865
865
|
}, null, 8, Ie),
|
|
866
|
-
g(" " + S(C(
|
|
866
|
+
g(" " + S(C(s)({
|
|
867
867
|
p: e.prefix,
|
|
868
868
|
v: Number(ar(t)),
|
|
869
869
|
s: e.suffix,
|
|
870
870
|
r: e.decimals
|
|
871
871
|
})) + " ", 1),
|
|
872
|
-
I.value[t] && e.percentageTo && !e.isPercentage ? (y(), m("span", Le, " (" + S(isNaN(ar(t) / ar(I.value[t].referenceIndex)) ? "-" : C(
|
|
872
|
+
I.value[t] && e.percentageTo && !e.isPercentage ? (y(), m("span", Le, " (" + S(isNaN(ar(t) / ar(I.value[t].referenceIndex)) ? "-" : C(s)({
|
|
873
873
|
v: ar(t) / ar(I.value[t].referenceIndex) * 100,
|
|
874
874
|
s: "%",
|
|
875
875
|
r: e.decimals
|
|
@@ -882,7 +882,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
882
882
|
"th-has-nan": N.value[t]
|
|
883
883
|
}),
|
|
884
884
|
style: v(`background:${K.value.style.th.backgroundColor};color:${K.value.style.th.color};outline:${K.value.style.th.outline}`)
|
|
885
|
-
}, [e.average && !N.value[t] ? (y(), m("span", Re, " ~ " + S(isNaN(rr(t)) ? "" : C(
|
|
885
|
+
}, [e.average && !N.value[t] ? (y(), m("span", Re, " ~ " + S(isNaN(rr(t)) ? "" : C(s)({
|
|
886
886
|
p: e.prefix,
|
|
887
887
|
v: Number(rr(t)),
|
|
888
888
|
s: e.suffix,
|
|
@@ -1072,66 +1072,66 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
1072
1072
|
class: "vue-ui-table-td-iteration",
|
|
1073
1073
|
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1074
1074
|
style: v({ outline: K.value.style.rows.outline })
|
|
1075
|
-
}, S(t.absoluteIndex + 1), 13, vt), (y(!0), m(d, null, x(t.td, (
|
|
1075
|
+
}, S(t.absoluteIndex + 1), 13, vt), (y(!0), m(d, null, x(t.td, (r, i) => (y(), m("td", {
|
|
1076
1076
|
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1077
|
-
key: `td_${n}_${
|
|
1078
|
-
style: v(cr(
|
|
1077
|
+
key: `td_${n}_${i}`,
|
|
1078
|
+
style: v(cr(r) || e.dataset.header[i].type === O.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${K.value.style.rows.outline}` : `outline:${K.value.style.rows.outline}`),
|
|
1079
1079
|
onClick: (t) => br({
|
|
1080
|
-
td:
|
|
1080
|
+
td: r,
|
|
1081
1081
|
rowIndex: n,
|
|
1082
|
-
colIndex:
|
|
1083
|
-
headerType: e.dataset.header[
|
|
1082
|
+
colIndex: i,
|
|
1083
|
+
headerType: e.dataset.header[i].type,
|
|
1084
1084
|
event: t
|
|
1085
1085
|
}),
|
|
1086
1086
|
onKeyup: [ge((t) => br({
|
|
1087
|
-
td:
|
|
1087
|
+
td: r,
|
|
1088
1088
|
rowIndex: n,
|
|
1089
|
-
colIndex:
|
|
1090
|
-
headerType: e.dataset.header[
|
|
1089
|
+
colIndex: i,
|
|
1090
|
+
headerType: e.dataset.header[i].type,
|
|
1091
1091
|
event: t
|
|
1092
1092
|
}), ["enter"]), ge((t) => br({
|
|
1093
|
-
td:
|
|
1093
|
+
td: r,
|
|
1094
1094
|
rowIndex: n,
|
|
1095
|
-
colIndex:
|
|
1096
|
-
headerType: e.dataset.header[
|
|
1095
|
+
colIndex: i,
|
|
1096
|
+
headerType: e.dataset.header[i].type,
|
|
1097
1097
|
event: t
|
|
1098
1098
|
}), ["space"])],
|
|
1099
1099
|
class: _({
|
|
1100
|
-
"td-numeric": e.dataset.header[
|
|
1100
|
+
"td-numeric": e.dataset.header[i].type === O.value.NUMERIC,
|
|
1101
1101
|
"td-focusable": !0,
|
|
1102
|
-
"td-has-nan": N.value[
|
|
1102
|
+
"td-has-nan": N.value[i]
|
|
1103
1103
|
}),
|
|
1104
|
-
id: `cell_${n}_${
|
|
1104
|
+
id: `cell_${n}_${i}_${C(E)}`,
|
|
1105
1105
|
tabindex: "0"
|
|
1106
|
-
}, [t.meta && t.meta.markerIndices.includes(
|
|
1106
|
+
}, [t.meta && t.meta.markerIndices.includes(i) && t.meta.unicodeIcon ? (y(), m("span", {
|
|
1107
1107
|
key: 0,
|
|
1108
1108
|
style: v(`color:${t.meta.color};margin-right:3px`),
|
|
1109
1109
|
innerHTML: t.meta.unicodeIcon
|
|
1110
|
-
}, null, 12, bt)) : p("", !0), e.dataset.header[
|
|
1111
|
-
v: Number(
|
|
1110
|
+
}, null, 12, bt)) : p("", !0), e.dataset.header[i].type === O.value.DATE ? (y(), m("span", xt, S(e.dataset.header[i].prefix) + " " + S(new Date(r).toLocaleString().slice(0, 10)) + " " + S(e.dataset.header[i].suffix), 1)) : e.dataset.header[i].isPercentage ? (y(), m("span", St, S(C(s)({
|
|
1111
|
+
v: Number(r * 100),
|
|
1112
1112
|
s: "%",
|
|
1113
|
-
r: e.dataset.header[
|
|
1114
|
-
})), 1)) : I.value[
|
|
1113
|
+
r: e.dataset.header[i].decimals
|
|
1114
|
+
})), 1)) : I.value[i] && e.dataset.header[i].percentageTo && !e.dataset.header[i].isPercentage ? (y(), m("span", {
|
|
1115
1115
|
key: 3,
|
|
1116
|
-
class: _({ "td-nan": isNaN(Number(
|
|
1117
|
-
}, S(isNaN(Number(
|
|
1118
|
-
p: e.dataset.header[
|
|
1119
|
-
v: Number(
|
|
1120
|
-
s: e.dataset.header[
|
|
1121
|
-
r: e.dataset.header[
|
|
1122
|
-
})) + " (" + S(isNaN(Number(
|
|
1123
|
-
v: Number(
|
|
1116
|
+
class: _({ "td-nan": isNaN(Number(r)) })
|
|
1117
|
+
}, S(isNaN(Number(r)) ? `${r} is not ${O.value.NUMERIC}` : C(s)({
|
|
1118
|
+
p: e.dataset.header[i].prefix,
|
|
1119
|
+
v: Number(r),
|
|
1120
|
+
s: e.dataset.header[i].suffix,
|
|
1121
|
+
r: e.dataset.header[i].decimals
|
|
1122
|
+
})) + " (" + S(isNaN(Number(r)) ? "" : C(s)({
|
|
1123
|
+
v: Number(r / ar(I.value[i].referenceIndex) * 100),
|
|
1124
1124
|
s: "%",
|
|
1125
|
-
r: e.dataset.header[
|
|
1126
|
-
})) + ") ", 3)) : e.dataset.header[
|
|
1125
|
+
r: e.dataset.header[i].decimals
|
|
1126
|
+
})) + ") ", 3)) : e.dataset.header[i].type === O.value.NUMERIC ? (y(), m("span", {
|
|
1127
1127
|
key: 4,
|
|
1128
|
-
class: _({ "td-nan": isNaN(Number(
|
|
1129
|
-
}, S(isNaN(Number(
|
|
1130
|
-
p: e.dataset.header[
|
|
1131
|
-
v: Number(
|
|
1132
|
-
s: e.dataset.header[
|
|
1133
|
-
r: e.dataset.header[
|
|
1134
|
-
})), 3)) : (y(), m("span", Ct, S(e.dataset.header[
|
|
1128
|
+
class: _({ "td-nan": isNaN(Number(r)) })
|
|
1129
|
+
}, S(isNaN(Number(r)) ? `${r} is not ${O.value.NUMERIC}` : C(s)({
|
|
1130
|
+
p: e.dataset.header[i].prefix,
|
|
1131
|
+
v: Number(r.toFixed(e.dataset.header[i].decimals)),
|
|
1132
|
+
s: e.dataset.header[i].suffix,
|
|
1133
|
+
r: e.dataset.header[i].decimals
|
|
1134
|
+
})), 3)) : (y(), m("span", Ct, S(e.dataset.header[i].prefix) + " " + S(r) + " " + S(e.dataset.header[i].suffix), 1))], 46, yt))), 128))], 14, _t))), 128))], 32)
|
|
1135
1135
|
])], 4),
|
|
1136
1136
|
h("div", {
|
|
1137
1137
|
class: _({
|
|
@@ -1313,7 +1313,7 @@ var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["da
|
|
|
1313
1313
|
key: 1,
|
|
1314
1314
|
class: "chart-trend",
|
|
1315
1315
|
style: v(`color:${K.value.style.chart.modal.color}`)
|
|
1316
|
-
}, [n[33] ||= h("span", null, "---", -1), g(" Trend: " + S(C(
|
|
1316
|
+
}, [n[33] ||= h("span", null, "---", -1), g(" Trend: " + S(C(s)({
|
|
1317
1317
|
v: Jn.value.progression.trend * 100,
|
|
1318
1318
|
s: "%",
|
|
1319
1319
|
r: 1
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ie } from "./useConfig-
|
|
4
|
-
import { t as ae } from "./usePrinter-
|
|
5
|
-
import { t as a } from "./useNestedProp-
|
|
2
|
+
import { Ot as t, Q as n, W as r, X as i, f as ee, gt as te, r as ne, w as re } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as ie } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as ae } from "./usePrinter-C0wAS8yc.js";
|
|
5
|
+
import { t as a } from "./useNestedProp-BjkuFaz1.js";
|
|
6
6
|
import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
-
import { t as se } from "./Shape-
|
|
7
|
+
import { t as se } from "./Shape-BnF9aMPX.js";
|
|
8
8
|
import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
9
|
import { t as ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
10
10
|
import { t as le } from "./vue_ui_table_heatmap-w8vx5k6f.js";
|
|
@@ -55,7 +55,7 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
55
55
|
v52b63863: De.value,
|
|
56
56
|
v32106484: Ee.value
|
|
57
57
|
}));
|
|
58
|
-
let E = fe(() => import("./UserOptions-
|
|
58
|
+
let E = fe(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), { vue_ui_table_heatmap: P } = ie(), { isThemeValid: F, warnInvalidTheme: ye } = oe(), I = e, L = x(r()), R = x(!1), z = x(null), B = x(!1), V = x(0), be = me();
|
|
59
59
|
y(() => {
|
|
60
60
|
be["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
61
61
|
});
|
|
@@ -91,7 +91,7 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
91
91
|
Y();
|
|
92
92
|
});
|
|
93
93
|
function Y() {
|
|
94
|
-
t(I.dataset) &&
|
|
94
|
+
t(I.dataset) && n({
|
|
95
95
|
componentName: "VueUiTableHeatmap",
|
|
96
96
|
type: "dataset"
|
|
97
97
|
});
|
|
@@ -103,7 +103,7 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
103
103
|
z.value && e.observe(z.value);
|
|
104
104
|
}
|
|
105
105
|
let X = c(() => I.dataset.map((e) => {
|
|
106
|
-
let t = e.values.map((e) => isNaN(e) ? 0 : e),
|
|
106
|
+
let t = e.values.map((e) => isNaN(e) ? 0 : e), n = t.reduce((e, t) => e + t, 0);
|
|
107
107
|
return {
|
|
108
108
|
...e,
|
|
109
109
|
values: t,
|
|
@@ -111,11 +111,11 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
111
111
|
max: Math.max(...t),
|
|
112
112
|
min: Math.min(...t)
|
|
113
113
|
},
|
|
114
|
-
sum:
|
|
115
|
-
average:
|
|
116
|
-
median:
|
|
114
|
+
sum: n,
|
|
115
|
+
average: n / t.length,
|
|
116
|
+
median: ee(t),
|
|
117
117
|
displayValues: [e.name, ...e.values],
|
|
118
|
-
id:
|
|
118
|
+
id: r()
|
|
119
119
|
};
|
|
120
120
|
})), Z = c(() => {
|
|
121
121
|
let e = X.value.flatMap((e) => e.values);
|
|
@@ -126,7 +126,7 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
126
126
|
});
|
|
127
127
|
function Te(e, t) {
|
|
128
128
|
let n = H.value.style.heatmapColors.useIndividualScale;
|
|
129
|
-
return
|
|
129
|
+
return te(H.value.style.heatmapColors.min, H.value.style.heatmapColors.max, n ? t.min : Z.value.min, n ? t.max : Z.value.max, e);
|
|
130
130
|
}
|
|
131
131
|
let Q = c(() => X.value.map((e) => ({
|
|
132
132
|
...e,
|
|
@@ -140,14 +140,14 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
140
140
|
[e.sum],
|
|
141
141
|
[e.average],
|
|
142
142
|
[e.median]
|
|
143
|
-
]), n =
|
|
143
|
+
]), n = re([[
|
|
144
144
|
[""],
|
|
145
145
|
H.value.table.head.values,
|
|
146
146
|
["sum"],
|
|
147
147
|
["average"],
|
|
148
148
|
["median"]
|
|
149
149
|
]].concat(t));
|
|
150
|
-
e ? e(n) :
|
|
150
|
+
e ? e(n) : i({
|
|
151
151
|
csvContent: n,
|
|
152
152
|
title: "vue-ui-table-heatmap"
|
|
153
153
|
});
|
|
@@ -317,7 +317,7 @@ var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell
|
|
|
317
317
|
type: typeof r,
|
|
318
318
|
isResponsive: R.value,
|
|
319
319
|
color: t.colors[i],
|
|
320
|
-
textColor: w(
|
|
320
|
+
textColor: w(ne)(t.colors[i])
|
|
321
321
|
}), void 0, !0) : u("", !0)], 64))], 8, D))), 256)),
|
|
322
322
|
H.value.table.showSum ? (b(), d("td", A, [C(e.$slots, "sum", m({ ref_for: !0 }, {
|
|
323
323
|
value: t.sum,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as oe } from "./useConfig-
|
|
4
|
-
import { t as se } from "./usePrinter-
|
|
5
|
-
import { t as ce } from "./useNestedProp-
|
|
2
|
+
import { Ot as t, Q as n, S as r, Ut as i, W as a, X as o, b as ee, f as te, i as ne, jt as s, q as re, ut as ie, w as ae } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as oe } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as se } from "./usePrinter-C0wAS8yc.js";
|
|
5
|
+
import { t as ce } from "./useNestedProp-BjkuFaz1.js";
|
|
6
6
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { t as de } from "./useUserOptionState-DK-_1ddE.js";
|
|
@@ -50,7 +50,7 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
50
50
|
emits: ["copyAlt"],
|
|
51
51
|
setup(e, { expose: ue, emit: Te }) {
|
|
52
52
|
xe((e) => ({ v43308e63: e.tdo }));
|
|
53
|
-
let w = p(() => import("./vue-ui-sparkline-
|
|
53
|
+
let w = p(() => import("./vue-ui-sparkline-BJfh5Lje.js").then((e) => e.n)), T = p(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), ze = p(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), { vue_ui_table_sparkline: Be } = oe(), { isThemeValid: Ve, warnInvalidTheme: He } = le(), E = e, Ue = Te, D = v(a()), We = v(0), O = v(0), k = v(null), Ge = Se(), Ke = v(!1);
|
|
54
54
|
ye(() => {
|
|
55
55
|
Ge["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
56
56
|
});
|
|
@@ -74,7 +74,7 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
74
74
|
});
|
|
75
75
|
return {
|
|
76
76
|
...r,
|
|
77
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
77
|
+
customPalette: r.customPalette.length ? r.customPalette : i[t] || s
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
Ce(() => E.config, (e) => {
|
|
@@ -86,13 +86,13 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
86
86
|
elementId: `table_${D.value}`,
|
|
87
87
|
fileName: A.value.title.text || "vue-ui-table-sparkline",
|
|
88
88
|
options: A.value.userOptions.print
|
|
89
|
-
}), et = c(() =>
|
|
89
|
+
}), et = c(() => r(A.value.customPalette)), N = v(null), P = v(!1), tt = c(() => A.value.responsiveBreakpoint);
|
|
90
90
|
ye(() => {
|
|
91
91
|
nt();
|
|
92
92
|
});
|
|
93
93
|
let F = v(A.value.colNames), I = be(null);
|
|
94
94
|
function nt() {
|
|
95
|
-
t(E.dataset) &&
|
|
95
|
+
t(E.dataset) && n({
|
|
96
96
|
componentName: "VueUiTableSparkline",
|
|
97
97
|
type: "dataset"
|
|
98
98
|
}), I.value && I.value.disconnect(), I.value = new ResizeObserver((e) => {
|
|
@@ -120,21 +120,21 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
120
120
|
let r = L(e), i = L(t), a = R(r), o = R(i);
|
|
121
121
|
return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
|
|
122
122
|
}
|
|
123
|
-
function B(e, t,
|
|
124
|
-
let
|
|
125
|
-
return
|
|
123
|
+
function B(e, t, n = {}) {
|
|
124
|
+
let r = L(e);
|
|
125
|
+
return r === null ? "-" : ne(A.value.formatter, r, re({
|
|
126
126
|
p: A.value.prefix,
|
|
127
|
-
v:
|
|
127
|
+
v: r,
|
|
128
128
|
s: A.value.suffix,
|
|
129
129
|
r: t
|
|
130
|
-
}),
|
|
130
|
+
}), n);
|
|
131
131
|
}
|
|
132
132
|
let V = c(() => (E.dataset.forEach((e, t) => {
|
|
133
|
-
|
|
133
|
+
ie({
|
|
134
134
|
datasetObject: e,
|
|
135
135
|
requiredAttributes: ["name", "values"]
|
|
136
136
|
}).forEach((e) => {
|
|
137
|
-
|
|
137
|
+
n({
|
|
138
138
|
componentName: "VueUiTableSparkline",
|
|
139
139
|
type: "datasetSerieAttribute",
|
|
140
140
|
property: e,
|
|
@@ -142,11 +142,11 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
}), E.dataset.map((e, t) => {
|
|
145
|
-
let n = e.values || [], r = rt(n), i = r.length ? r.reduce((e, t) => e + t, 0) : null, a = r.length ? i / r.length : null, o = r.length ?
|
|
145
|
+
let n = e.values || [], r = rt(n), i = r.length ? r.reduce((e, t) => e + t, 0) : null, a = r.length ? i / r.length : null, o = r.length ? te(r) : null;
|
|
146
146
|
return {
|
|
147
147
|
...e,
|
|
148
148
|
values: n,
|
|
149
|
-
color:
|
|
149
|
+
color: ee(e.color) || et.value[t] || s[t] || s[t % s.length],
|
|
150
150
|
sum: i,
|
|
151
151
|
average: a,
|
|
152
152
|
median: o,
|
|
@@ -265,8 +265,8 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
265
265
|
[e.sum],
|
|
266
266
|
[e.average],
|
|
267
267
|
[e.median]
|
|
268
|
-
]), r =
|
|
269
|
-
e ? e(r) :
|
|
268
|
+
]), r = ae([t].concat(n));
|
|
269
|
+
e ? e(r) : o({
|
|
270
270
|
csvContent: r,
|
|
271
271
|
title: A.value.title.text || "vue-ui-table-sparkline"
|
|
272
272
|
});
|