vue-data-ui 2.4.62 → 2.4.63
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-C0lmBG2-.cjs → Arrow-BpZBF7Ak.cjs} +1 -1
- package/dist/{Arrow-E7FjAwN-.js → Arrow-nOy23OOV.js} +1 -1
- package/dist/{BaseIcon-DRLxlrSt.js → BaseIcon-CrqNvGTs.js} +1 -1
- package/dist/{BaseIcon-DK3C9OCq.cjs → BaseIcon-rzIvDo2Q.cjs} +1 -1
- package/dist/{DataTable-BANy6PnS.js → DataTable-BBh7_ttv.js} +2 -2
- package/dist/{DataTable-BLSMgcEN.cjs → DataTable-CCJGHIVo.cjs} +1 -1
- package/dist/{Legend-CAgxjrra.cjs → Legend-CqilK5CI.cjs} +1 -1
- package/dist/{Legend-pWq2tKCl.js → Legend-WOejx9sp.js} +1 -1
- package/dist/{PackageVersion-1NslmM8M.js → PackageVersion-dR8EUy_P.js} +1 -1
- package/dist/{PackageVersion-D3dK8oA3.cjs → PackageVersion-eZ5Dmuid.cjs} +1 -1
- package/dist/{PenAndPaper-CdXSbSZY.js → PenAndPaper-CrXlqi9I.js} +3 -3
- package/dist/{PenAndPaper-CYFIR9j7.cjs → PenAndPaper-D_w2N2qM.cjs} +1 -1
- package/dist/{Shape-BtKtwV0v.js → Shape-CwmKWYzq.js} +1 -1
- package/dist/{Shape-DPztPWor.cjs → Shape-qkkvCKyp.cjs} +1 -1
- package/dist/Slicer-DvdU-uf8.js +484 -0
- package/dist/Slicer-oNEtv1s3.cjs +1 -0
- package/dist/{Title-BhL7TMa_.cjs → Title-CoNtoGH9.cjs} +1 -1
- package/dist/{Title-DPefeOY7.js → Title-obqvTiXP.js} +1 -1
- package/dist/{Tooltip-C72f83eg.js → Tooltip-BK-ACGDE.js} +1 -1
- package/dist/{Tooltip-C5qSWrXO.cjs → Tooltip-Dz4wVJkz.cjs} +1 -1
- package/dist/index-ChOY3hT9.cjs +9 -0
- package/dist/{index-B-k71vpj.js → index-Z_vzxZTo.js} +7 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-BeXDUo1v.js → useNestedProp-Buhi5uyL.js} +1 -1
- package/dist/{useNestedProp-CxwPeWts.cjs → useNestedProp-CA8PjFJH.cjs} +1 -1
- package/dist/{usePrinter-BK-n-gRN.js → usePrinter-Ck0oiMlt.js} +1 -1
- package/dist/{usePrinter-CMvfTteH.cjs → usePrinter-c3c7_uAW.cjs} +1 -1
- package/dist/{vue-data-ui-fOomZU3e.js → vue-data-ui-BGng_wXI.js} +60 -60
- package/dist/{vue-data-ui-CG-HnqKG.cjs → vue-data-ui-CihfnXFF.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-C95HBkYv.js → vue-ui-3d-bar-B7k4LzL1.js} +9 -9
- package/dist/{vue-ui-3d-bar-DLrJ9TM8.cjs → vue-ui-3d-bar-BsxFEhMN.cjs} +1 -1
- package/dist/{vue-ui-accordion-DWAg7tbw.js → vue-ui-accordion-CV2-8b1O.js} +3 -3
- package/dist/{vue-ui-accordion-IZgkGqto.cjs → vue-ui-accordion-CZ8AlriN.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BxBU5CCr.js → vue-ui-age-pyramid-Bc4DaLIy.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BSKXGW3a.cjs → vue-ui-age-pyramid-C1crnKk7.cjs} +1 -1
- package/dist/{vue-ui-annotator-DupDeVZx.js → vue-ui-annotator-DLbAn_Mz.js} +1 -1
- package/dist/{vue-ui-annotator-GSRzlJ-N.cjs → vue-ui-annotator-DNKcAaEh.cjs} +1 -1
- package/dist/{vue-ui-bullet-BD0MrIvY.cjs → vue-ui-bullet-CEO3AsWC.cjs} +1 -1
- package/dist/{vue-ui-bullet-Dgr-mCAc.js → vue-ui-bullet-ClODxNrk.js} +8 -8
- package/dist/{vue-ui-candlestick-DpcBRWha.cjs → vue-ui-candlestick-B00zQB4B.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DYupl4j5.js → vue-ui-candlestick-DI7t6jqz.js} +75 -73
- package/dist/{vue-ui-carousel-table-DNwWV8de.js → vue-ui-carousel-table-5jXlkslq.js} +4 -4
- package/dist/{vue-ui-carousel-table-CNS6ZzTc.cjs → vue-ui-carousel-table-Bm2D_0pZ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-OaTraMv4.js → vue-ui-chestnut-CRZsXRUH.js} +8 -8
- package/dist/{vue-ui-chestnut-AVSIntNp.cjs → vue-ui-chestnut-DP6-Gie6.cjs} +1 -1
- package/dist/{vue-ui-cursor-CJJ78nNY.cjs → vue-ui-cursor-BGe0gZK8.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dlo68AuK.js → vue-ui-cursor-DA8bsmEc.js} +2 -2
- package/dist/{vue-ui-dashboard-CzF8PeC6.js → vue-ui-dashboard-BZD-6Pz7.js} +43 -43
- package/dist/vue-ui-dashboard-D2v4oSiB.cjs +1 -0
- package/dist/{vue-ui-digits-BHkW0Bi1.js → vue-ui-digits-CKvrL9Wc.js} +2 -2
- package/dist/{vue-ui-digits-BSE3CEuv.cjs → vue-ui-digits-DC8ZuHOj.cjs} +1 -1
- package/dist/{vue-ui-donut-DxH9EkK_.cjs → vue-ui-donut-D5mDCNky.cjs} +1 -1
- package/dist/{vue-ui-donut-CeestESD.js → vue-ui-donut-DDayabSz.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BDwV-Ncf.cjs → vue-ui-donut-evolution-AlCGLfzy.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DGl_J0JB.js → vue-ui-donut-evolution-CBsxmrTO.js} +127 -125
- package/dist/{vue-ui-dumbbell-ChipHJ9p.cjs → vue-ui-dumbbell-B9cELz3z.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DlELQHtq.js → vue-ui-dumbbell-DB7jNjQP.js} +10 -10
- package/dist/{vue-ui-flow-BowAWyMA.cjs → vue-ui-flow-CCM51fzQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BZIiidbF.js → vue-ui-flow-Cw1Vfk_e.js} +9 -9
- package/dist/{vue-ui-funnel-DLzHnLhb.cjs → vue-ui-funnel--4JhwVwW.cjs} +1 -1
- package/dist/{vue-ui-funnel-Bc7BrgHa.js → vue-ui-funnel-CU72MuGg.js} +9 -9
- package/dist/{vue-ui-galaxy-DesiP-Ev.cjs → vue-ui-galaxy-BJrkygeR.cjs} +1 -1
- package/dist/{vue-ui-galaxy-t5R2Vz1t.js → vue-ui-galaxy-BKInqdOk.js} +11 -11
- package/dist/{vue-ui-gauge-CYx4jt71.js → vue-ui-gauge-DBPB11Eo.js} +7 -7
- package/dist/{vue-ui-gauge-_-1DxTe0.cjs → vue-ui-gauge-Uo_1rs0Z.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DVcY_OyD.js → vue-ui-gizmo-BSDdKP_q.js} +3 -3
- package/dist/{vue-ui-gizmo-DeO_vFhP.cjs → vue-ui-gizmo-D7hHruEs.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CWqJiKrJ.cjs → vue-ui-heatmap-CysVyR78.cjs} +1 -1
- package/dist/{vue-ui-heatmap-wLcx9ex3.js → vue-ui-heatmap-DhoDd6I_.js} +10 -10
- package/dist/{vue-ui-history-plot-D7VjQwLk.js → vue-ui-history-plot-C1IcR5tn.js} +11 -11
- package/dist/{vue-ui-history-plot-FJnUgshF.cjs → vue-ui-history-plot-D97p0C8E.cjs} +1 -1
- package/dist/{vue-ui-kpi-C4tl3luu.js → vue-ui-kpi-C43FJnkn.js} +3 -3
- package/dist/{vue-ui-kpi-DcGp2H4d.cjs → vue-ui-kpi-Cu2PoWud.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B41vyg7t.cjs → vue-ui-mini-loader-Bdr0862F.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DZ-Rxr07.js → vue-ui-mini-loader-DgPnsWaW.js} +2 -2
- package/dist/{vue-ui-molecule-CUiAEOC9.cjs → vue-ui-molecule-CEJzQ7RY.cjs} +1 -1
- package/dist/{vue-ui-molecule-51NSY4Z8.js → vue-ui-molecule-CvxtHapj.js} +11 -11
- package/dist/{vue-ui-mood-radar-DG3MA8BZ.js → vue-ui-mood-radar-B6EmzBGf.js} +11 -11
- package/dist/{vue-ui-mood-radar-DkXzwU8x.cjs → vue-ui-mood-radar-DIn_Oars.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Be9FYX8F.js → vue-ui-nested-donuts-D4pAkaZH.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Cerc7ILW.cjs → vue-ui-nested-donuts-c2pJF_ex.cjs} +1 -1
- package/dist/{vue-ui-onion-BhNd2hbK.js → vue-ui-onion-98XPhnVF.js} +11 -11
- package/dist/{vue-ui-onion-BpIopgzq.cjs → vue-ui-onion-DHOhnx2s.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-D1z9zPyF.cjs → vue-ui-parallel-coordinate-plot-CrVVxflg.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CSll-Vtd.js → vue-ui-parallel-coordinate-plot-DLOtv_NO.js} +12 -12
- package/dist/{vue-ui-quadrant-mw0cCB8b.js → vue-ui-quadrant-DWM3zE7x.js} +12 -12
- package/dist/{vue-ui-quadrant-303aQCVj.cjs → vue-ui-quadrant-DbDQtcxz.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-6sXw4LvX.js → vue-ui-quick-chart-CFVAisN4.js} +214 -212
- package/dist/{vue-ui-quick-chart-DJfdl_Oc.cjs → vue-ui-quick-chart-DP0hSesI.cjs} +3 -3
- package/dist/{vue-ui-radar-B5c80iuj.cjs → vue-ui-radar-CDhwXWfs.cjs} +1 -1
- package/dist/{vue-ui-radar-DT2PXZ3W.js → vue-ui-radar-CNBN5GF9.js} +12 -12
- package/dist/{vue-ui-rating-x4INc3T_.js → vue-ui-rating-CEfg8aGb.js} +2 -2
- package/dist/{vue-ui-rating-RKyIWluu.cjs → vue-ui-rating-cHW6zh7i.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-OTUjuy7-.js → vue-ui-relation-circle-92LvehQf.js} +7 -7
- package/dist/{vue-ui-relation-circle-T_cM-vkm.cjs → vue-ui-relation-circle-olDAN0lU.cjs} +1 -1
- package/dist/{vue-ui-rings-B1c_TNA0.js → vue-ui-rings-Bp0WLW4E.js} +11 -11
- package/dist/{vue-ui-rings-CEdur365.cjs → vue-ui-rings-BwvTmRCE.cjs} +1 -1
- package/dist/{vue-ui-scatter-CjI7xkJm.js → vue-ui-scatter-6wDrQ5fP.js} +12 -12
- package/dist/{vue-ui-scatter-BM6iF4yl.cjs → vue-ui-scatter-BvdgtUHX.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DoMe-dMI.js → vue-ui-screenshot-CIAlcAvq.js} +1 -1
- package/dist/{vue-ui-screenshot-wadHKtkZ.cjs → vue-ui-screenshot-ChB7VFUO.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DSXzxNMC.js → vue-ui-skeleton-BMRe3SzB.js} +3 -3
- package/dist/{vue-ui-skeleton-BgEjqaz9.cjs → vue-ui-skeleton-DlnPFtb4.cjs} +1 -1
- package/dist/{vue-ui-smiley-DgfHBeGm.js → vue-ui-smiley-CN5FWJ1G.js} +2 -2
- package/dist/{vue-ui-smiley-D5KYgUQi.cjs → vue-ui-smiley-DkrQ5gDD.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DhPXSFpU.cjs → vue-ui-spark-trend-BlOdnAb4.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CEU0TB9l.js → vue-ui-spark-trend-MNkadB41.js} +5 -5
- package/dist/{vue-ui-sparkbar-C8TB_YCv.js → vue-ui-sparkbar-CBPO2mUa.js} +4 -4
- package/dist/{vue-ui-sparkbar-8vDQ9r97.cjs → vue-ui-sparkbar-ChTbwY11.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DnYyNQQn.cjs → vue-ui-sparkgauge-B7yvQfZW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DCXX3ZDS.js → vue-ui-sparkgauge-VLkIev3p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CEmGA3kW.js → vue-ui-sparkhistogram-DbOxX4Ks.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BQGAFZWZ.cjs → vue-ui-sparkhistogram-mYU6RAK_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-HQaxAzTw.cjs → vue-ui-sparkline-DO496Tk5.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BXvaVl-R.js → vue-ui-sparkline-D_-31O2S.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DbtbyF5W.cjs → vue-ui-sparkstackbar-KaFMlIAL.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CI0uvrlh.js → vue-ui-sparkstackbar-gW7rpJmQ.js} +5 -5
- package/dist/{vue-ui-stackbar-CYJLXaU0.cjs → vue-ui-stackbar-CYHsSzEK.cjs} +2 -2
- package/dist/{vue-ui-stackbar-D-_Fp5r4.js → vue-ui-stackbar-vIyS6oag.js} +80 -78
- package/dist/{vue-ui-strip-plot-pJsObuy6.js → vue-ui-strip-plot-4o1zAxG_.js} +11 -11
- package/dist/{vue-ui-strip-plot-DUBjl9cR.cjs → vue-ui-strip-plot-MlP5pDNx.cjs} +1 -1
- package/dist/{vue-ui-table-CbvpwN05.cjs → vue-ui-table-B0PFrkLI.cjs} +1 -1
- package/dist/{vue-ui-table-s7IHsGac.js → vue-ui-table-DWNrd7zM.js} +1 -1
- package/dist/{vue-ui-table-heatmap-sAuA3lIc.cjs → vue-ui-table-heatmap-4k74Ux7O.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAlngE3L.js → vue-ui-table-heatmap-BSKCS8Lq.js} +4 -4
- package/dist/{vue-ui-table-sparkline-ClrZ-BC3.js → vue-ui-table-sparkline-BrImSTh0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CjaF-Zjq.cjs → vue-ui-table-sparkline-DCCogh2-.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C_sqnPkS.js → vue-ui-thermometer-DHEoT4yB.js} +7 -7
- package/dist/{vue-ui-thermometer-fcy4HsN6.cjs → vue-ui-thermometer-DswmMXiU.cjs} +1 -1
- package/dist/{vue-ui-timer-DeRjcfir.js → vue-ui-timer-BNFihNgK.js} +5 -5
- package/dist/{vue-ui-timer-B0lLVb4J.cjs → vue-ui-timer-Tv94CYqL.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CBnEObhg.cjs → vue-ui-tiremarks-B2kuKLe-.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DCOJWvBx.js → vue-ui-tiremarks-DzaUfiET.js} +7 -7
- package/dist/{vue-ui-treemap-SPe7NLHg.cjs → vue-ui-treemap-Dmt3RPF2.cjs} +1 -1
- package/dist/{vue-ui-treemap-UU9kd93i.js → vue-ui-treemap-qKZJcEYe.js} +11 -11
- package/dist/{vue-ui-vertical-bar-Do1beV1x.js → vue-ui-vertical-bar-CMXtevyE.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DtPjSOTd.cjs → vue-ui-vertical-bar-CQ_qEJ_O.cjs} +1 -1
- package/dist/{vue-ui-waffle-B1XP-Qon.js → vue-ui-waffle-DjJoezg-.js} +11 -11
- package/dist/{vue-ui-waffle-CCWlLaex.cjs → vue-ui-waffle-fWQvVbAH.cjs} +1 -1
- package/dist/{vue-ui-wheel-BHVTUvG3.cjs → vue-ui-wheel-2qIHyZe1.cjs} +1 -1
- package/dist/{vue-ui-wheel-D6IUmaVZ.js → vue-ui-wheel-DOrWSWt6.js} +7 -7
- package/dist/{vue-ui-word-cloud-BvjWoqnE.cjs → vue-ui-word-cloud-Tgg5jCE6.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-AubuQjfw.js → vue-ui-word-cloud-UPPKGsXt.js} +10 -10
- package/dist/{vue-ui-xy-CTLJncUe.cjs → vue-ui-xy-CMde0Kq-.cjs} +3 -3
- package/dist/{vue-ui-xy-canvas-De-MHu0Y.cjs → vue-ui-xy-canvas-Dm3YUQ3g.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DHU2wBAP.js → vue-ui-xy-canvas-paHHRtqs.js} +227 -225
- package/dist/{vue-ui-xy-BMJpPJeS.js → vue-ui-xy-zCJv-Vao.js} +35 -33
- package/package.json +1 -1
- package/dist/Slicer-BggxvZRw.cjs +0 -1
- package/dist/Slicer-p4IqkHkJ.js +0 -423
- package/dist/index-CC7tVh7F.cjs +0 -9
- package/dist/vue-ui-dashboard-fYhjRzSY.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed as g, ref as n, watch as Se, onMounted as qe, onBeforeUnmount as Je, nextTick as V, openBlock as s, createElementBlock as u, normalizeClass as Ne, normalizeStyle as ee, unref as v, createBlock as _, createCommentVNode as y, createSlots as Ke, withCtx as m, renderSlot as f, normalizeProps as T, guardReactiveProps as I, createVNode as Ae, createElementVNode as r, Fragment as F, renderList as L, toDisplayString as P, createTextVNode as Qe } from "vue";
|
|
2
|
-
import { u as Ze, c as et, t as tt, C as Te, o as lt, e as z, D as ot, v as U, X as at, w as
|
|
2
|
+
import { u as Ze, c as et, t as tt, C as Te, o as lt, e as z, D as ot, v as U, X as at, w as j, E as st, s as ut, x as it, y as nt, q as rt, r as dt, F as Ie } from "./index-Z_vzxZTo.js";
|
|
3
3
|
import { t as vt, u as yt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as ct } from "./Title-
|
|
5
|
-
import { u as ht, U as pt } from "./usePrinter-
|
|
6
|
-
import { _ as ft } from "./Tooltip-
|
|
7
|
-
import { D as gt } from "./DataTable-
|
|
8
|
-
import mt from "./vue-ui-skeleton-
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import { u as Fe } from "./useNestedProp-
|
|
12
|
-
import { _ as kt } from "./PackageVersion-
|
|
13
|
-
import { P as wt } from "./PenAndPaper-
|
|
4
|
+
import { _ as ct } from "./Title-obqvTiXP.js";
|
|
5
|
+
import { u as ht, U as pt } from "./usePrinter-Ck0oiMlt.js";
|
|
6
|
+
import { _ as ft } from "./Tooltip-BK-ACGDE.js";
|
|
7
|
+
import { D as gt } from "./DataTable-BBh7_ttv.js";
|
|
8
|
+
import mt from "./vue-ui-skeleton-BMRe3SzB.js";
|
|
9
|
+
import { S as bt } from "./Slicer-DvdU-uf8.js";
|
|
10
|
+
import xt from "./vue-ui-accordion-CV2-8b1O.js";
|
|
11
|
+
import { u as Fe } from "./useNestedProp-Buhi5uyL.js";
|
|
12
|
+
import { _ as kt } from "./PackageVersion-dR8EUy_P.js";
|
|
13
|
+
import { P as wt } from "./PenAndPaper-CrXlqi9I.js";
|
|
14
14
|
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], Nt = { key: 1 }, At = ["id"], Tt = ["stop-color"], It = ["stop-color"], Ft = ["stop-color"], Lt = ["id"],
|
|
16
|
+
const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], Nt = { key: 1 }, At = ["id"], Tt = ["stop-color"], It = ["stop-color"], Ft = ["stop-color"], Lt = ["id"], Rt = ["stop-color"], Ot = ["stop-color"], Vt = ["stop-color"], Pt = { key: 0 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x", "y", "font-size", "fill", "font-weight"], Wt = { key: 2 }, Gt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 0 }, Xt = ["cx", "cy", "r", "fill"], Yt = ["cx", "cy", "r", "fill"], qt = { key: 1 }, Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x", "y", "height", "width", "fill", "rx"], Zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], el = ["x", "y", "height", "width", "fill", "onMouseover"], tl = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, ll = ["innerHTML"], ol = {
|
|
@@ -33,14 +33,14 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup($, { expose: Le }) {
|
|
36
|
-
const h = $, { vue_ui_candlestick:
|
|
36
|
+
const h = $, { vue_ui_candlestick: Re } = Ze(), R = g(() => !!h.dataset && h.dataset.length), k = n(et()), Oe = n(null), X = n(!1), Y = n(""), q = n(void 0), te = n(0), S = n(null), le = n(null), oe = n(null), ae = n(null), se = n(null), ue = n(null), B = n(0), ie = n(0), ne = n(0), e = g({
|
|
37
37
|
get: () => ve(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
}), { userOptionsVisible: J, setUserOptionsVisibility: re, keepUserOptionState: de } = $t({ config: e.value });
|
|
40
40
|
function ve() {
|
|
41
41
|
const t = Fe({
|
|
42
42
|
userConfig: h.config,
|
|
43
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: Re
|
|
44
44
|
});
|
|
45
45
|
let o = {};
|
|
46
46
|
return t.theme ? o = {
|
|
@@ -94,7 +94,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
94
94
|
});
|
|
95
95
|
E.value = new ResizeObserver(t), E.value.observe(S.value.parentNode);
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
be();
|
|
98
98
|
}
|
|
99
99
|
Je(() => {
|
|
100
100
|
E.value && E.value.disconnect();
|
|
@@ -115,9 +115,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
115
115
|
width: c.value.width - a - o,
|
|
116
116
|
height: c.value.height - t - l
|
|
117
117
|
};
|
|
118
|
-
}),
|
|
118
|
+
}), O = g(() => h.dataset.length), p = n({
|
|
119
119
|
start: 0,
|
|
120
|
-
end:
|
|
120
|
+
end: O.value
|
|
121
121
|
}), ge = g(() => h.dataset.slice(p.value.start, p.value.end)), K = g(() => (h.dataset.forEach((t, o) => {
|
|
122
122
|
[null, void 0].includes(t[0]) && z({
|
|
123
123
|
componentName: "VueUiCandlestick",
|
|
@@ -169,16 +169,16 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
169
169
|
value: U(t)
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
const l = M(t.open, o), a = M(t.high, o),
|
|
172
|
+
const b = g(() => K.value.map((t, o) => {
|
|
173
|
+
const l = M(t.open, o), a = M(t.high, o), x = M(t.low, o), G = M(t.last, o), H = t.last > t.open;
|
|
174
174
|
return {
|
|
175
175
|
period: t.period,
|
|
176
176
|
open: l,
|
|
177
177
|
high: a,
|
|
178
|
-
low:
|
|
178
|
+
low: x,
|
|
179
179
|
last: G,
|
|
180
180
|
volume: t.volume,
|
|
181
|
-
isBullish:
|
|
181
|
+
isBullish: H
|
|
182
182
|
};
|
|
183
183
|
}));
|
|
184
184
|
function Pe(t) {
|
|
@@ -192,59 +192,59 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
192
192
|
q.value = t, Q.value = {
|
|
193
193
|
datapoint: o,
|
|
194
194
|
seriesIndex: t,
|
|
195
|
-
series:
|
|
195
|
+
series: b.value,
|
|
196
196
|
config: e.value
|
|
197
197
|
};
|
|
198
198
|
const l = e.value.style.tooltip.customFormat;
|
|
199
199
|
if (it(l) && nt(() => l({
|
|
200
200
|
seriesIndex: t,
|
|
201
201
|
datapoint: o,
|
|
202
|
-
series:
|
|
202
|
+
series: b.value,
|
|
203
203
|
config: e.value
|
|
204
204
|
})))
|
|
205
205
|
Y.value = l({
|
|
206
206
|
seriesIndex: t,
|
|
207
207
|
datapoint: o,
|
|
208
|
-
series:
|
|
208
|
+
series: b.value,
|
|
209
209
|
config: e.value
|
|
210
210
|
});
|
|
211
211
|
else if (e.value.style.tooltip.show) {
|
|
212
212
|
let a = "";
|
|
213
|
-
const { period:
|
|
213
|
+
const { period: x, open: G, high: H, low: $e, last: Ce, volume: _e, isBullish: ze } = b.value[t], { period: al, open: Ge, high: He, low: je, last: Xe, volume: Ye } = e.value.translations;
|
|
214
214
|
a += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
215
|
-
fill="${e.value.style.layout.candle.gradient.show ? ze ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : ze ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${
|
|
215
|
+
fill="${e.value.style.layout.candle.gradient.show ? ze ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : ze ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${x}</div>`, a += `${Ye} : <b>${isNaN(_e) ? "-" : Number(_e.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += `<div>${Ge}: <b>${e.value.style.tooltip.prefix} ${isNaN(G.value) ? "-" : Number(G.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${He}: <b>${e.value.style.tooltip.prefix} ${isNaN(H.value) ? "-" : Number(H.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${je}: <b>${e.value.style.tooltip.prefix} ${isNaN($e.value) ? "-" : Number($e.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${Xe}: <b>${e.value.style.tooltip.prefix} ${isNaN(Ce.value) ? "-" : Number(Ce.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += "</div>", Y.value = `<div style="text-align:right">${a}</div>`;
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
X.value = !0;
|
|
218
218
|
}
|
|
219
219
|
function Me() {
|
|
220
|
-
|
|
220
|
+
be();
|
|
221
221
|
}
|
|
222
222
|
const N = n(null);
|
|
223
|
-
async function
|
|
223
|
+
async function be() {
|
|
224
224
|
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && N.value ? (e.value.style.zoom.startIndex !== null && (await V(), await V(), N.value && N.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await V(), await V(), N.value && N.value.setEndValue(De(e.value.style.zoom.endIndex + 1)))) : (p.value = {
|
|
225
225
|
start: 0,
|
|
226
|
-
end:
|
|
226
|
+
end: O.value
|
|
227
227
|
}, B.value += 1);
|
|
228
228
|
}
|
|
229
229
|
function De(t) {
|
|
230
|
-
const o =
|
|
230
|
+
const o = O.value;
|
|
231
231
|
return t > o ? o : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function xe() {
|
|
234
234
|
V(() => {
|
|
235
|
-
const t = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], o =
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
235
|
+
const t = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], o = b.value.map((x) => [
|
|
236
|
+
x.period,
|
|
237
|
+
x.open.value,
|
|
238
|
+
x.high.value,
|
|
239
|
+
x.low.value,
|
|
240
|
+
x.last.value,
|
|
241
|
+
x.volume
|
|
242
242
|
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(o), a = rt(l);
|
|
243
243
|
dt({ csvContent: a, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
const D = g(() => {
|
|
247
|
-
const t =
|
|
247
|
+
const t = b.value.map((a) => [
|
|
248
248
|
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? a.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,
|
|
249
249
|
`${e.value.table.td.prefix} ${isNaN(a.open.value) ? "-" : Number(a.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
250
250
|
`${e.value.table.td.prefix} ${isNaN(a.high.value) ? "-" : Number(a.high.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
@@ -288,7 +288,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
288
288
|
}
|
|
289
289
|
return Le({
|
|
290
290
|
generatePdf: pe,
|
|
291
|
-
generateCsv:
|
|
291
|
+
generateCsv: xe,
|
|
292
292
|
generateImage: fe,
|
|
293
293
|
toggleTable: ke,
|
|
294
294
|
toggleTooltip: we,
|
|
@@ -337,9 +337,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
337
337
|
}
|
|
338
338
|
}, null, 8, ["config"]))
|
|
339
339
|
], 512)) : y("", !0),
|
|
340
|
-
e.value.userOptions.show &&
|
|
340
|
+
e.value.userOptions.show && R.value && (v(de) || v(J)) ? (s(), _(pt, {
|
|
341
341
|
ref_key: "details",
|
|
342
|
-
ref:
|
|
342
|
+
ref: Oe,
|
|
343
343
|
key: `user_options_${te.value}`,
|
|
344
344
|
backgroundColor: e.value.style.backgroundColor,
|
|
345
345
|
color: e.value.style.color,
|
|
@@ -361,7 +361,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
361
361
|
isAnnotation: W.value,
|
|
362
362
|
onToggleFullscreen: We,
|
|
363
363
|
onGeneratePdf: v(pe),
|
|
364
|
-
onGenerateCsv:
|
|
364
|
+
onGenerateCsv: xe,
|
|
365
365
|
onGenerateImage: v(fe),
|
|
366
366
|
onToggleTable: ke,
|
|
367
367
|
onToggleTooltip: we,
|
|
@@ -420,7 +420,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
420
420
|
key: "6"
|
|
421
421
|
} : void 0
|
|
422
422
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
423
|
-
|
|
423
|
+
R.value ? (s(), u("svg", {
|
|
424
424
|
key: 4,
|
|
425
425
|
xmlns: v(at),
|
|
426
426
|
class: Ne({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
@@ -440,7 +440,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
440
440
|
}, [
|
|
441
441
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
442
442
|
], 8, St)) : y("", !0),
|
|
443
|
-
|
|
443
|
+
b.value.length > 0 ? (s(), u("g", Nt, [
|
|
444
444
|
r("defs", null, [
|
|
445
445
|
r("linearGradient", {
|
|
446
446
|
id: `bearish_gradient_${k.value}`,
|
|
@@ -453,11 +453,11 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
453
453
|
}, null, 8, Tt),
|
|
454
454
|
r("stop", {
|
|
455
455
|
offset: "50%",
|
|
456
|
-
"stop-color": `${v(
|
|
456
|
+
"stop-color": `${v(j)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
457
457
|
}, null, 8, It),
|
|
458
458
|
r("stop", {
|
|
459
459
|
offset: "100%",
|
|
460
|
-
"stop-color": `${v(
|
|
460
|
+
"stop-color": `${v(j)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
461
461
|
}, null, 8, Ft)
|
|
462
462
|
], 8, At),
|
|
463
463
|
r("linearGradient", {
|
|
@@ -468,14 +468,14 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
468
468
|
r("stop", {
|
|
469
469
|
offset: "0%",
|
|
470
470
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
471
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Rt),
|
|
472
472
|
r("stop", {
|
|
473
473
|
offset: "50%",
|
|
474
|
-
"stop-color": `${v(
|
|
475
|
-
}, null, 8,
|
|
474
|
+
"stop-color": `${v(j)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
475
|
+
}, null, 8, Ot),
|
|
476
476
|
r("stop", {
|
|
477
477
|
offset: "100%",
|
|
478
|
-
"stop-color": `${v(
|
|
478
|
+
"stop-color": `${v(j)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
479
479
|
}, null, 8, Vt)
|
|
480
480
|
], 8, Lt)
|
|
481
481
|
]),
|
|
@@ -534,7 +534,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
534
534
|
]))), 256))
|
|
535
535
|
])) : y("", !0),
|
|
536
536
|
r("g", null, [
|
|
537
|
-
(s(!0), u(F, null, L(
|
|
537
|
+
(s(!0), u(F, null, L(b.value, (l, a) => (s(), u("g", null, [
|
|
538
538
|
r("line", {
|
|
539
539
|
x1: l.open.x,
|
|
540
540
|
x2: l.open.x,
|
|
@@ -543,14 +543,14 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
543
543
|
stroke: e.value.style.layout.wick.stroke,
|
|
544
544
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
545
545
|
"stroke-linecap": "round"
|
|
546
|
-
}, null, 8,
|
|
547
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g",
|
|
546
|
+
}, null, 8, Ht),
|
|
547
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", jt, [
|
|
548
548
|
r("circle", {
|
|
549
549
|
cx: l.high.x,
|
|
550
550
|
cy: l.high.y,
|
|
551
551
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
552
552
|
fill: e.value.style.layout.wick.extremity.color
|
|
553
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, Xt),
|
|
554
554
|
r("circle", {
|
|
555
555
|
cx: l.low.x,
|
|
556
556
|
cy: l.low.y,
|
|
@@ -581,7 +581,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
581
581
|
]))), 256))
|
|
582
582
|
]),
|
|
583
583
|
r("g", null, [
|
|
584
|
-
(s(!0), u(F, null, L(
|
|
584
|
+
(s(!0), u(F, null, L(b.value, (l, a) => (s(), u("rect", {
|
|
585
585
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
586
586
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
587
587
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -590,7 +590,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
590
590
|
rx: e.value.style.layout.candle.borderRadius,
|
|
591
591
|
stroke: "none"
|
|
592
592
|
}, null, 8, Qt))), 256)),
|
|
593
|
-
(s(!0), u(F, null, L(
|
|
593
|
+
(s(!0), u(F, null, L(b.value, (l, a) => (s(), u("rect", {
|
|
594
594
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
595
595
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
596
596
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -604,15 +604,15 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
604
604
|
}, null, 8, Zt))), 256))
|
|
605
605
|
]),
|
|
606
606
|
r("g", null, [
|
|
607
|
-
(s(!0), u(F, null, L(
|
|
607
|
+
(s(!0), u(F, null, L(b.value, (l, a) => (s(), u("rect", {
|
|
608
608
|
x: i.value.left + a * d.value,
|
|
609
609
|
y: i.value.top,
|
|
610
610
|
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
611
611
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
612
612
|
fill: q.value === a ? v(ut)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
613
|
-
onMouseover: (
|
|
614
|
-
onMouseleave: o[0] || (o[0] = (
|
|
615
|
-
q.value = void 0,
|
|
613
|
+
onMouseover: (x) => Ee(a, l),
|
|
614
|
+
onMouseleave: o[0] || (o[0] = (x) => {
|
|
615
|
+
q.value = void 0, X.value = !1;
|
|
616
616
|
})
|
|
617
617
|
}, null, 40, el))), 256))
|
|
618
618
|
])
|
|
@@ -622,7 +622,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
622
622
|
t.$slots.watermark ? (s(), u("div", tl, [
|
|
623
623
|
f(t.$slots, "watermark", T(I({ isPrinting: v(ce) || v(he) })), void 0, !0)
|
|
624
624
|
])) : y("", !0),
|
|
625
|
-
|
|
625
|
+
R.value ? y("", !0) : (s(), _(mt, {
|
|
626
626
|
key: 6,
|
|
627
627
|
config: {
|
|
628
628
|
type: "candlesticks",
|
|
@@ -639,12 +639,12 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
}, null, 8, ["config"])),
|
|
642
|
-
e.value.style.zoom.show &&
|
|
642
|
+
e.value.style.zoom.show && R.value ? (s(), u("div", {
|
|
643
643
|
key: 7,
|
|
644
644
|
ref_key: "chartSlicer",
|
|
645
645
|
ref: ae
|
|
646
646
|
}, [
|
|
647
|
-
(s(), _(
|
|
647
|
+
(s(), _(bt, {
|
|
648
648
|
ref_key: "slicerComponent",
|
|
649
649
|
ref: N,
|
|
650
650
|
key: `slicer_${B.value}`,
|
|
@@ -657,7 +657,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
657
657
|
textColor: e.value.style.color,
|
|
658
658
|
inputColor: e.value.style.zoom.color,
|
|
659
659
|
selectColor: e.value.style.zoom.highlightColor,
|
|
660
|
-
max:
|
|
660
|
+
max: O.value,
|
|
661
661
|
min: 0,
|
|
662
662
|
valueStart: p.value.start,
|
|
663
663
|
valueEnd: p.value.end,
|
|
@@ -666,20 +666,22 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
666
666
|
end: p.value.end,
|
|
667
667
|
"onUpdate:end": o[2] || (o[2] = (l) => p.value.end = l),
|
|
668
668
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
669
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
669
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : O.value,
|
|
670
|
+
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
671
|
+
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
670
672
|
onReset: Me
|
|
671
673
|
}, {
|
|
672
674
|
"reset-action": m(({ reset: l }) => [
|
|
673
675
|
f(t.$slots, "reset-action", T(I({ reset: l })), void 0, !0)
|
|
674
676
|
]),
|
|
675
677
|
_: 3
|
|
676
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"]))
|
|
678
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
677
679
|
], 512)) : y("", !0),
|
|
678
680
|
r("div", {
|
|
679
681
|
ref_key: "chartLegend",
|
|
680
682
|
ref: oe
|
|
681
683
|
}, [
|
|
682
|
-
f(t.$slots, "legend", { legend:
|
|
684
|
+
f(t.$slots, "legend", { legend: b.value }, void 0, !0)
|
|
683
685
|
], 512),
|
|
684
686
|
t.$slots.source ? (s(), u("div", {
|
|
685
687
|
key: 8,
|
|
@@ -690,7 +692,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
690
692
|
f(t.$slots, "source", {}, void 0, !0)
|
|
691
693
|
], 512)) : y("", !0),
|
|
692
694
|
Ae(ft, {
|
|
693
|
-
show: w.value.showTooltip &&
|
|
695
|
+
show: w.value.showTooltip && X.value,
|
|
694
696
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
695
697
|
color: e.value.style.tooltip.color,
|
|
696
698
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -713,7 +715,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
713
715
|
]),
|
|
714
716
|
_: 3
|
|
715
717
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
716
|
-
|
|
718
|
+
R.value ? (s(), _(xt, {
|
|
717
719
|
key: 9,
|
|
718
720
|
hideDetails: "",
|
|
719
721
|
config: {
|
|
@@ -752,7 +754,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
752
754
|
}, 8, ["config"])) : y("", !0)
|
|
753
755
|
], 46, _t));
|
|
754
756
|
}
|
|
755
|
-
},
|
|
757
|
+
}, xl = /* @__PURE__ */ Ct(ol, [["__scopeId", "data-v-744b9b91"]]);
|
|
756
758
|
export {
|
|
757
|
-
|
|
759
|
+
xl as default
|
|
758
760
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as l, useSlots as Ie, onMounted as A, computed as B, watch as E, onBeforeUnmount as ce, nextTick as he, openBlock as u, createElementBlock as v, unref as r, createElementVNode as H, normalizeStyle as p, normalizeClass as Fe, createTextVNode as L, toDisplayString as G, renderSlot as h, Fragment as D, renderList as X, normalizeProps as j, guardReactiveProps as J, createCommentVNode as P, createBlock as fe, createSlots as Be, withCtx as R } from "vue";
|
|
2
|
-
import { u as Pe, c as Re, o as K, e as Q, s as ze, q as Se, r as Ee } from "./index-
|
|
3
|
-
import { u as He } from "./useNestedProp-
|
|
4
|
-
import { u as Ne, U as Ue } from "./usePrinter-
|
|
5
|
-
import Ve from "./vue-ui-skeleton-
|
|
2
|
+
import { u as Pe, c as Re, o as K, e as Q, s as ze, q as Se, r as Ee } from "./index-Z_vzxZTo.js";
|
|
3
|
+
import { u as He } from "./useNestedProp-Buhi5uyL.js";
|
|
4
|
+
import { u as Ne, U as Ue } from "./usePrinter-Ck0oiMlt.js";
|
|
5
|
+
import Ve from "./vue-ui-skeleton-BMRe3SzB.js";
|
|
6
6
|
import { u as Me } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Le = ["id"], Ge = ["height"], De = ["data-cell", "height"], Xe = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CC7tVh7F.cjs"),ue=require("./useNestedProp-CxwPeWts.cjs"),Q=require("./usePrinter-CMvfTteH.cjs"),se=require("./vue-ui-skeleton-BgEjqaz9.cjs"),de=require("./useUserOptionState-BgepsfED.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],pe=["height"],fe=["data-cell","height"],me={key:2,ref:"source",dir:"auto"},he={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(b,{expose:W}){const r=b,{vue_ui_carousel_table:Y}=u.useConfig(),S=e.ref(u.createUid()),I=e.ref(!1),k=e.ref(!!r.dataset),Z=e.useSlots();e.onMounted(()=>{F()}),e.onMounted(()=>{Z["chart-background"]&&console.warn("VueUiCarouselTable does not support the #chart-background slot.")});function F(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!r.dataset.head||u.objectIsEmpty(r.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),k.value=!1),(!r.dataset.body||u.objectIsEmpty(r.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),k.value=!1))}const t=e.computed({get:()=>V(),set:o=>o}),{userOptionsVisible:A,setUserOptionsVisibility:P,keepUserOptionState:N}=de.useUserOptionState({config:t.value});function V(){return ue.useNestedProp({userConfig:r.config,defaultConfig:Y})}e.watch(()=>r.config,o=>{t.value=V(),A.value=!t.value.showOnChartHover,F()},{deep:!0}),e.watch(()=>r.dataset,o=>{O()},{deep:!0});const{isPrinting:R,isImaging:M,generatePdf:_,generateImage:q}=Q.usePrinter({elementId:`carousel-table_${S.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),v=e.ref({showAnimation:t.value.animation.use}),l=e.ref(null),U=e.ref(null),C=e.ref(null),T=e.ref(null),$=e.ref(0),B=e.ref(0),x=e.ref(!1),w=e.ref(null),f=e.ref(null),y=e.ref(0);function O(){w.value&&(f.value={elements:w.value.getElementsByTagName("tr"),heights:Array.from(w.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(O);const ee=e.computed(()=>!f.value||!f.value.heights.length?0:Math.max(...f.value.heights)+$.value+B.value),te=e.computed(()=>r.dataset.body?t.value.tbody.tr.visible<=r.dataset.body.length?t.value.tbody.tr.visible:r.dataset.body.length:0),oe=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*te.value+$.value+B.value),d=e.ref(0),m=e.ref(null),s=e.ref(0),h=e.ref(!1),H=e.ref(0);e.onMounted(()=>{C.value&&($.value=C.value.getBoundingClientRect().height),T.value&&(B.value=T.value.getBoundingClientRect().height),v.value.showAnimation&&f.value&&L()}),e.onMounted(()=>{if(l.value){let n=function(){const i=o.getBoundingClientRect().bottom;a.forEach(p=>{p.getBoundingClientRect().top<i?p.style.visibility="hidden":p.style.visibility="visible"})};const o=l.value.querySelector("thead"),a=Array.from(w.value.querySelectorAll("tr"));l.value.addEventListener("scroll",n),n(),e.onBeforeUnmount(()=>{l.value.removeEventListener("scroll",n)})}});function ae(o){I.value=o,H.value+=1}function L(){!m.value&&!h.value&&(t.value.animation.type==="scroll"?m.value=requestAnimationFrame(D):m.value=requestAnimationFrame(G))}function ne(){if(!l.value)return!1;const{scrollTop:o,scrollHeight:a,clientHeight:n}=l.value;return o+n>=a}function D(o){if(h.value)return;s.value||(s.value=o),o-s.value>=t.value.animation.speedMs&&(d.value+=f.value.heights[y.value],(ne()||y.value>=f.value.heights.length)&&(d.value=0,y.value=-1),y.value+=1,l.value&&l.value.scrollTo({top:d.value,behavior:"smooth"}),s.value=o),m.value=requestAnimationFrame(D)}function G(o){if(h.value)return;s.value||(s.value=o);const a=o-s.value,n=t.value.animation.speedMs/4/1e3;a>=n&&(d.value+=n,d.value>=l.value.scrollHeight-l.value.clientHeight&&(d.value=0),l.value&&l.value.scrollTo({top:d.value,behavior:"auto"}),s.value=o),m.value=requestAnimationFrame(G)}function c(){h.value=!0,cancelAnimationFrame(m.value),m.value=null}e.onBeforeUnmount(c);function g(){!h.value||!v.value.showAnimation||(h.value=!1,s.value=0,L())}function le(){t.value.animation.pauseOnHover&&c()}const E=e.ref(null);function re(){c(),clearTimeout(E.value)}function j(){clearTimeout(E.value),E.value=setTimeout(g,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(v.value.showAnimation=!0,g()):(v.value.showAnimation=!1,c())}),e.watch(()=>t.value.animation.type,o=>{c(),d.value=0,y.value=0,l.value.scrollTo({top:0,behavior:"auto"}),g()});const ie=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(a=>{a.forEach(n=>{x.value=n.contentRect.width<ie.value}),$.value=C.value?C.value.getBoundingClientRect().height:0,B.value=T.value?T.value.getBoundingClientRect().height:0,y.value=0,e.nextTick(()=>{c(),s.value=0,d.value=0,O(),g()})});l.value&&o.observe(l.value)});function X(){_()}function J(){v.value.showAnimation=!v.value.showAnimation,v.value.showAnimation?g():c()}function K(){e.nextTick(()=>{const o=r.dataset.head.map((i,p)=>[[r.dataset.body[p]]]),a=[[t.value.caption.text],[r.dataset.head.map(i=>[i])]].concat(o),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.caption.text||"vue-ui-carousel-table"})})}return W({pauseAnimation:c,resumeAnimation:g,toggleAnimation:J,generateCsv:K,generatePdf:X,generateImage:q}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:U,onMouseenter:a[5]||(a[5]=()=>e.unref(P)(!0)),onMouseleave:a[6]||(a[6]=()=>e.unref(P)(!1))},[e.createElementVNode("div",{ref_key:"tableContainer",ref:l,id:`carousel-table_${S.value}`,style:e.normalizeStyle({height:e.unref(R)||e.unref(M)?"auto":`${Math.max(oe.value,ee.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":x.value,"is-playing":t.value.scrollbar.hide||!h.value&&t.value.scrollbar.showOnlyOnHover}),onMouseover:a[0]||(a[0]=n=>le()),onMouseleave:a[1]||(a[1]=n=>g()),onTouchstart:a[2]||(a[2]=n=>re()),onTouchend:a[3]||(a[3]=n=>j()),onTouchcancel:a[4]||(a[4]=n=>j())},[k.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse",backgroundColor:t.value.tbody.backgroundColor})},[e.createElementVNode("caption",{ref_key:"caption",ref:C,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:x.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px",display:o.$slots.caption||t.value.caption.text||t.value.userOptions.show?"":"none"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${o.$slots.caption||t.value.caption.text||t.value.userOptions.show?$.value:0}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:T,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:x.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.dataset.head,(n,i)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${i}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":n)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:n,colIndex:i})),void 0,!0)],4))),128))],12,pe)],4),b.dataset.body&&b.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:w,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.dataset.body,(n,i)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,(p,z)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":b.dataset.head[z]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:e.unref(u.setOpacity)(t.value.tbody.tr.td.style.backgroundColor,i%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100),paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":p)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:p,rowIndex:i,colIndex:z})),void 0,!0)],12,fe))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,ce),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&k.value&&(e.unref(N)||e.unref(A))?(e.openBlock(),e.createBlock(Q.UserOptions,{ref:"details",key:`user_option_${H.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(M),uid:S.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!v.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:I.value,chartElement:U.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:X,onGenerateCsv:K,onGenerateImage:e.unref(q),onToggleAnimation:J,onToggleFullscreen:ae,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage","style"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],544))}},ge=ve._export_sfc(he,[["__scopeId","data-v-ad42b687"]]);exports.default=ge;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-ChOY3hT9.cjs"),ue=require("./useNestedProp-CA8PjFJH.cjs"),Q=require("./usePrinter-c3c7_uAW.cjs"),se=require("./vue-ui-skeleton-DlnPFtb4.cjs"),de=require("./useUserOptionState-BgepsfED.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],pe=["height"],fe=["data-cell","height"],me={key:2,ref:"source",dir:"auto"},he={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(b,{expose:W}){const r=b,{vue_ui_carousel_table:Y}=u.useConfig(),S=e.ref(u.createUid()),I=e.ref(!1),k=e.ref(!!r.dataset),Z=e.useSlots();e.onMounted(()=>{F()}),e.onMounted(()=>{Z["chart-background"]&&console.warn("VueUiCarouselTable does not support the #chart-background slot.")});function F(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!r.dataset.head||u.objectIsEmpty(r.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),k.value=!1),(!r.dataset.body||u.objectIsEmpty(r.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),k.value=!1))}const t=e.computed({get:()=>V(),set:o=>o}),{userOptionsVisible:A,setUserOptionsVisibility:P,keepUserOptionState:N}=de.useUserOptionState({config:t.value});function V(){return ue.useNestedProp({userConfig:r.config,defaultConfig:Y})}e.watch(()=>r.config,o=>{t.value=V(),A.value=!t.value.showOnChartHover,F()},{deep:!0}),e.watch(()=>r.dataset,o=>{O()},{deep:!0});const{isPrinting:R,isImaging:M,generatePdf:_,generateImage:q}=Q.usePrinter({elementId:`carousel-table_${S.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),v=e.ref({showAnimation:t.value.animation.use}),l=e.ref(null),U=e.ref(null),C=e.ref(null),T=e.ref(null),$=e.ref(0),B=e.ref(0),x=e.ref(!1),w=e.ref(null),f=e.ref(null),y=e.ref(0);function O(){w.value&&(f.value={elements:w.value.getElementsByTagName("tr"),heights:Array.from(w.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(O);const ee=e.computed(()=>!f.value||!f.value.heights.length?0:Math.max(...f.value.heights)+$.value+B.value),te=e.computed(()=>r.dataset.body?t.value.tbody.tr.visible<=r.dataset.body.length?t.value.tbody.tr.visible:r.dataset.body.length:0),oe=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*te.value+$.value+B.value),d=e.ref(0),m=e.ref(null),s=e.ref(0),h=e.ref(!1),H=e.ref(0);e.onMounted(()=>{C.value&&($.value=C.value.getBoundingClientRect().height),T.value&&(B.value=T.value.getBoundingClientRect().height),v.value.showAnimation&&f.value&&L()}),e.onMounted(()=>{if(l.value){let n=function(){const i=o.getBoundingClientRect().bottom;a.forEach(p=>{p.getBoundingClientRect().top<i?p.style.visibility="hidden":p.style.visibility="visible"})};const o=l.value.querySelector("thead"),a=Array.from(w.value.querySelectorAll("tr"));l.value.addEventListener("scroll",n),n(),e.onBeforeUnmount(()=>{l.value.removeEventListener("scroll",n)})}});function ae(o){I.value=o,H.value+=1}function L(){!m.value&&!h.value&&(t.value.animation.type==="scroll"?m.value=requestAnimationFrame(D):m.value=requestAnimationFrame(G))}function ne(){if(!l.value)return!1;const{scrollTop:o,scrollHeight:a,clientHeight:n}=l.value;return o+n>=a}function D(o){if(h.value)return;s.value||(s.value=o),o-s.value>=t.value.animation.speedMs&&(d.value+=f.value.heights[y.value],(ne()||y.value>=f.value.heights.length)&&(d.value=0,y.value=-1),y.value+=1,l.value&&l.value.scrollTo({top:d.value,behavior:"smooth"}),s.value=o),m.value=requestAnimationFrame(D)}function G(o){if(h.value)return;s.value||(s.value=o);const a=o-s.value,n=t.value.animation.speedMs/4/1e3;a>=n&&(d.value+=n,d.value>=l.value.scrollHeight-l.value.clientHeight&&(d.value=0),l.value&&l.value.scrollTo({top:d.value,behavior:"auto"}),s.value=o),m.value=requestAnimationFrame(G)}function c(){h.value=!0,cancelAnimationFrame(m.value),m.value=null}e.onBeforeUnmount(c);function g(){!h.value||!v.value.showAnimation||(h.value=!1,s.value=0,L())}function le(){t.value.animation.pauseOnHover&&c()}const E=e.ref(null);function re(){c(),clearTimeout(E.value)}function j(){clearTimeout(E.value),E.value=setTimeout(g,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(v.value.showAnimation=!0,g()):(v.value.showAnimation=!1,c())}),e.watch(()=>t.value.animation.type,o=>{c(),d.value=0,y.value=0,l.value.scrollTo({top:0,behavior:"auto"}),g()});const ie=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(a=>{a.forEach(n=>{x.value=n.contentRect.width<ie.value}),$.value=C.value?C.value.getBoundingClientRect().height:0,B.value=T.value?T.value.getBoundingClientRect().height:0,y.value=0,e.nextTick(()=>{c(),s.value=0,d.value=0,O(),g()})});l.value&&o.observe(l.value)});function X(){_()}function J(){v.value.showAnimation=!v.value.showAnimation,v.value.showAnimation?g():c()}function K(){e.nextTick(()=>{const o=r.dataset.head.map((i,p)=>[[r.dataset.body[p]]]),a=[[t.value.caption.text],[r.dataset.head.map(i=>[i])]].concat(o),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.caption.text||"vue-ui-carousel-table"})})}return W({pauseAnimation:c,resumeAnimation:g,toggleAnimation:J,generateCsv:K,generatePdf:X,generateImage:q}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:U,onMouseenter:a[5]||(a[5]=()=>e.unref(P)(!0)),onMouseleave:a[6]||(a[6]=()=>e.unref(P)(!1))},[e.createElementVNode("div",{ref_key:"tableContainer",ref:l,id:`carousel-table_${S.value}`,style:e.normalizeStyle({height:e.unref(R)||e.unref(M)?"auto":`${Math.max(oe.value,ee.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":x.value,"is-playing":t.value.scrollbar.hide||!h.value&&t.value.scrollbar.showOnlyOnHover}),onMouseover:a[0]||(a[0]=n=>le()),onMouseleave:a[1]||(a[1]=n=>g()),onTouchstart:a[2]||(a[2]=n=>re()),onTouchend:a[3]||(a[3]=n=>j()),onTouchcancel:a[4]||(a[4]=n=>j())},[k.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse",backgroundColor:t.value.tbody.backgroundColor})},[e.createElementVNode("caption",{ref_key:"caption",ref:C,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:x.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px",display:o.$slots.caption||t.value.caption.text||t.value.userOptions.show?"":"none"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${o.$slots.caption||t.value.caption.text||t.value.userOptions.show?$.value:0}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:T,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:x.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.dataset.head,(n,i)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${i}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":n)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:n,colIndex:i})),void 0,!0)],4))),128))],12,pe)],4),b.dataset.body&&b.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:w,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.dataset.body,(n,i)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,(p,z)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":b.dataset.head[z]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:e.unref(u.setOpacity)(t.value.tbody.tr.td.style.backgroundColor,i%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100),paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":p)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:p,rowIndex:i,colIndex:z})),void 0,!0)],12,fe))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,ce),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&k.value&&(e.unref(N)||e.unref(A))?(e.openBlock(),e.createBlock(Q.UserOptions,{ref:"details",key:`user_option_${H.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(M),uid:S.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!v.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:I.value,chartElement:U.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:X,onGenerateCsv:K,onGenerateImage:e.unref(q),onToggleAnimation:J,onToggleFullscreen:ae,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage","style"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],544))}},ge=ve._export_sfc(he,[["__scopeId","data-v-ad42b687"]]);exports.default=ge;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as F, normalizeProps as ue, guardReactiveProps as ne, createVNode as $e, toDisplayString as c, createElementVNode as s, Fragment as g, renderList as _, createTextVNode as J, withKeys as Ke, nextTick as Ce } from "vue";
|
|
2
|
-
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-
|
|
3
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
4
|
-
import it from "./vue-ui-skeleton-
|
|
5
|
-
import ct from "./BaseIcon-
|
|
6
|
-
import dt from "./vue-ui-accordion-
|
|
7
|
-
import { u as Se } from "./useNestedProp-
|
|
8
|
-
import { _ as vt } from "./PackageVersion-
|
|
9
|
-
import { P as yt } from "./PenAndPaper-
|
|
2
|
+
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-Z_vzxZTo.js";
|
|
3
|
+
import { u as nt, U as rt } from "./usePrinter-Ck0oiMlt.js";
|
|
4
|
+
import it from "./vue-ui-skeleton-BMRe3SzB.js";
|
|
5
|
+
import ct from "./BaseIcon-CrqNvGTs.js";
|
|
6
|
+
import dt from "./vue-ui-accordion-CV2-8b1O.js";
|
|
7
|
+
import { u as Se } from "./useNestedProp-Buhi5uyL.js";
|
|
8
|
+
import { _ as vt } from "./PackageVersion-dR8EUy_P.js";
|
|
9
|
+
import { P as yt } from "./PenAndPaper-CrXlqi9I.js";
|
|
10
10
|
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const bt = ["id"], pt = {
|