vue-data-ui 2.4.83 → 2.4.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdtSSnUZ.cjs → Arrow-Ajt3NMEa.cjs} +1 -1
- package/dist/{Arrow-Bl2aigOV.js → Arrow-Qayb_B0s.js} +1 -1
- package/dist/{BaseIcon-DG_iYn4X.js → BaseIcon-B8U62FEj.js} +1 -1
- package/dist/{BaseIcon-D92qdnv7.cjs → BaseIcon-BVrsMbvi.cjs} +1 -1
- package/dist/{DataTable-DyvnYg-x.cjs → DataTable-1PQD-SFb.cjs} +1 -1
- package/dist/{DataTable-CaiuB_-j.js → DataTable-C0tCPQ9i.js} +2 -2
- package/dist/{Legend-D2J3bvDm.cjs → Legend-BJ2Wbqut.cjs} +1 -1
- package/dist/{Legend-Br9uWuyZ.js → Legend-BTpe6qQB.js} +2 -2
- package/dist/{PackageVersion-Bxz2crF7.cjs → PackageVersion-BjfedMsH.cjs} +1 -1
- package/dist/{PackageVersion-tmgQTzP2.js → PackageVersion-CENy3Lm2.js} +1 -1
- package/dist/{PenAndPaper-CJ3Rnk2Q.js → PenAndPaper-Dr7ndoP_.js} +3 -3
- package/dist/{PenAndPaper-BFCXiNMF.cjs → PenAndPaper-nqRtAh6J.cjs} +1 -1
- package/dist/{Shape-qjsquBuY.cjs → Shape-Boa32JEn.cjs} +1 -1
- package/dist/{Shape-6QlwV5xV.js → Shape-zFv85Gc2.js} +1 -1
- package/dist/{Slicer-B9BStSWS.js → Slicer-BUYuk07t.js} +109 -124
- package/dist/Slicer-D6QLMg5N.cjs +1 -0
- package/dist/{Title-Bhq6SOYu.js → Title-CaET2xuF.js} +1 -1
- package/dist/{Title-BqNuK5vc.cjs → Title-DJUxOiaO.cjs} +1 -1
- package/dist/{Tooltip-CeBpQ6yn.js → Tooltip-Bkc4233T.js} +1 -1
- package/dist/{Tooltip-Kn7RnF0L.cjs → Tooltip-C5QuW94e.cjs} +1 -1
- package/dist/{index-BqR_a-C7.js → index-B7nCQFK0.js} +2 -1
- package/dist/index-COIn1phv.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DqofSFeh.js → useNestedProp-C9rlBRTT.js} +1 -1
- package/dist/{useNestedProp-D_XfpfnF.cjs → useNestedProp-CbMuGGl3.cjs} +1 -1
- package/dist/{usePrinter-BPjMJmKg.js → usePrinter-CQMn1b4E.js} +1 -1
- package/dist/{usePrinter-Bfrr3DDK.cjs → usePrinter-CXXfgFFN.cjs} +1 -1
- package/dist/{vue-data-ui-DsBOcTDd.js → vue-data-ui-BnsKGbqb.js} +60 -60
- package/dist/{vue-data-ui-oW2xn5YG.cjs → vue-data-ui-Bu_VIHgr.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-DL4o7lJD.cjs → vue-ui-3d-bar-D39F2dKF.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-D5BCQifA.js → vue-ui-3d-bar-V5FBS9MA.js} +9 -9
- package/dist/{vue-ui-accordion-Cz3VCEN0.js → vue-ui-accordion-B8ptB5BQ.js} +3 -3
- package/dist/{vue-ui-accordion-Sqna6-tk.cjs → vue-ui-accordion-CGlnNTr8.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Cl9eaBGr.js → vue-ui-age-pyramid-Bjp1R8Ku.js} +14 -12
- package/dist/{vue-ui-annotator-Ctx3YK1X.cjs → vue-ui-annotator-BoWZZRPg.cjs} +1 -1
- package/dist/{vue-ui-annotator-DQKvjXgI.js → vue-ui-annotator-V9m5fTGG.js} +1 -1
- package/dist/{vue-ui-bullet-CsMr2xzr.js → vue-ui-bullet-Bqvb5PV-.js} +8 -8
- package/dist/{vue-ui-bullet-CWJzycj2.cjs → vue-ui-bullet-DLIxlhFF.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DKjfum_x.cjs → vue-ui-candlestick-D4BD8LyJ.cjs} +2 -2
- package/dist/{vue-ui-candlestick-BZ12fWHz.js → vue-ui-candlestick-DHCtmsh3.js} +72 -70
- package/dist/{vue-ui-carousel-table-CDR1Vv5V.js → vue-ui-carousel-table-Cn2RJkSb.js} +4 -4
- package/dist/{vue-ui-carousel-table-C6L5d_Fz.cjs → vue-ui-carousel-table-VIuoh2QI.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CAnxXvl6.js → vue-ui-chestnut-C5qUO1uK.js} +8 -8
- package/dist/{vue-ui-chestnut-DFgQWktZ.cjs → vue-ui-chestnut-ClG9HZoC.cjs} +1 -1
- package/dist/{vue-ui-cursor-BHKTewso.cjs → vue-ui-cursor-Bo8et-dD.cjs} +1 -1
- package/dist/{vue-ui-cursor-CEG5U4Hg.js → vue-ui-cursor-eJau3iyr.js} +2 -2
- package/dist/{vue-ui-dashboard-CAZvucxS.js → vue-ui-dashboard-DnaH9bCw.js} +2 -2
- package/dist/{vue-ui-dashboard-cCxI_-fr.cjs → vue-ui-dashboard-WJqGQ8iR.cjs} +1 -1
- package/dist/{vue-ui-digits-xPdav4hy.js → vue-ui-digits-Cqjts2eq.js} +2 -2
- package/dist/{vue-ui-digits-Dl0z8lL5.cjs → vue-ui-digits-qIckO4-r.cjs} +1 -1
- package/dist/vue-ui-donut-BP7yj2DU.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-BgXDvYij.cjs → vue-ui-donut-evolution-Cz8uFJp8.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DtfH9oY2.js → vue-ui-donut-evolution-EzYvP11F.js} +11 -11
- package/dist/{vue-ui-donut-BX4NBJNA.js → vue-ui-donut-pprcnbIw.js} +17 -15
- package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DgTOdhga.js → vue-ui-dumbbell-DaxcxmnU.js} +48 -46
- package/dist/{vue-ui-flow-DIbRLuAg.js → vue-ui-flow-DbRgaKBu.js} +9 -9
- package/dist/{vue-ui-flow-Bt0sz3lA.cjs → vue-ui-flow-HeRCplGL.cjs} +1 -1
- package/dist/{vue-ui-funnel-CedEHtHD.js → vue-ui-funnel-B2del8KB.js} +37 -35
- package/dist/vue-ui-funnel-DxniWNkD.cjs +1 -0
- package/dist/{vue-ui-galaxy-aqDlVOGG.cjs → vue-ui-galaxy-BDA64dud.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BcBicruu.js → vue-ui-galaxy-pUYeASJf.js} +11 -11
- package/dist/vue-ui-gauge-BOXoAgWk.cjs +1 -0
- package/dist/{vue-ui-gauge-B8ybUmVP.js → vue-ui-gauge-DpsXpEaW.js} +28 -26
- package/dist/{vue-ui-gizmo-J759kkHO.js → vue-ui-gizmo-BpYrhkon.js} +3 -3
- package/dist/{vue-ui-gizmo-DAzVCVgd.cjs → vue-ui-gizmo-Bq9uAmqd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-5PChWU--.cjs → vue-ui-heatmap-CbKgGLtN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-zXe_ZfjW.js → vue-ui-heatmap-Cz6_9Veh.js} +10 -10
- package/dist/vue-ui-history-plot-BoMdvItE.cjs +1 -0
- package/dist/{vue-ui-history-plot-DpCqc_J5.js → vue-ui-history-plot-DAotUjSF.js} +56 -54
- package/dist/{vue-ui-kpi-B0YGZB0U.js → vue-ui-kpi-Ch2p7m-i.js} +3 -3
- package/dist/{vue-ui-kpi-C-7Ihvt0.cjs → vue-ui-kpi-D6mp6EQ2.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Cn4Q6TSw.cjs → vue-ui-mini-loader-CO-KGVlC.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-7sjb3XBu.js → vue-ui-mini-loader-E13lmwfO.js} +2 -2
- package/dist/{vue-ui-molecule-DZpXgYuN.js → vue-ui-molecule-C69K6EPO.js} +11 -11
- package/dist/{vue-ui-molecule-BDumH6dl.cjs → vue-ui-molecule-CeoDnPXB.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-pnwFktum.cjs → vue-ui-mood-radar-BwOqQUuT.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CKqyK1Hp.js → vue-ui-mood-radar-DDtky572.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DbxWMbwd.js → vue-ui-nested-donuts-AYPYIRrE.js} +16 -14
- package/dist/{vue-ui-nested-donuts-CHpsvVxD.cjs → vue-ui-nested-donuts-DMCd6DqT.cjs} +2 -2
- package/dist/{vue-ui-onion-F9rcTxc5.cjs → vue-ui-onion-BedLvfFe.cjs} +2 -2
- package/dist/{vue-ui-onion-q54wqIiz.js → vue-ui-onion-Bsa88sKK.js} +31 -29
- package/dist/{vue-ui-parallel-coordinate-plot-Cwnja7PH.cjs → vue-ui-parallel-coordinate-plot-CSOMIABF.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-myA1ugJ6.js → vue-ui-parallel-coordinate-plot-KCEb4iRs.js} +62 -60
- package/dist/vue-ui-quadrant-BXQVOvpY.cjs +1 -0
- package/dist/{vue-ui-quadrant-OoCEzm12.js → vue-ui-quadrant-Bd_88Eht.js} +16 -14
- package/dist/{vue-ui-quick-chart-5lnK5fYa.js → vue-ui-quick-chart-CXAYKYHa.js} +55 -53
- package/dist/{vue-ui-quick-chart-CazRj-4z.cjs → vue-ui-quick-chart-dLItYwM_.cjs} +2 -2
- package/dist/vue-ui-radar-BuNtocmn.cjs +1 -0
- package/dist/{vue-ui-radar-BDKh_0GC.js → vue-ui-radar-De397oTB.js} +100 -98
- package/dist/{vue-ui-rating-BOzhaiSc.cjs → vue-ui-rating-BjiMVoyX.cjs} +1 -1
- package/dist/{vue-ui-rating-Dt3vyE2H.js → vue-ui-rating-wK3_ZWE5.js} +2 -2
- package/dist/vue-ui-relation-circle-BEGyr1h-.cjs +1 -0
- package/dist/{vue-ui-relation-circle-BOMeOf10.js → vue-ui-relation-circle-BxlK8MVs.js} +56 -54
- package/dist/{vue-ui-rings-3O2lFlg1.js → vue-ui-rings-BXrtMSML.js} +39 -37
- package/dist/{vue-ui-rings-DIA0oj1w.cjs → vue-ui-rings-BcNMBXxq.cjs} +2 -2
- package/dist/{vue-ui-scatter-SRz39O4w.js → vue-ui-scatter-BWZfLJ9P.js} +52 -50
- package/dist/vue-ui-scatter-DTy3yPVu.cjs +1 -0
- package/dist/{vue-ui-screenshot-OBhZYkuN.cjs → vue-ui-screenshot-BJgOwFMW.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DeseMlsh.js → vue-ui-screenshot-hw4PC9Uu.js} +1 -1
- package/dist/{vue-ui-skeleton-6_VzxeeY.cjs → vue-ui-skeleton-BIqMxXV7.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DbI8wJH-.js → vue-ui-skeleton-D66ZIUln.js} +3 -3
- package/dist/{vue-ui-smiley-BqRjGeM4.js → vue-ui-smiley-DWPYdcDB.js} +2 -2
- package/dist/{vue-ui-smiley-CQYCG8iR.cjs → vue-ui-smiley-Duy5Xo-j.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-YKlzV5ph.js → vue-ui-spark-trend-Ce4IaqPz.js} +5 -5
- package/dist/{vue-ui-spark-trend-C1MfKChb.cjs → vue-ui-spark-trend-DP5foaNi.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BGc7K3E7.cjs → vue-ui-sparkbar-Bbns4V16.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BEY67Uh8.js → vue-ui-sparkbar-Fa-Kc9Fr.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DBJ6JcY4.cjs → vue-ui-sparkgauge-BrLrvNLH.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-COy9kS3g.js → vue-ui-sparkgauge-DUWcJ7cM.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Kof1NLnh.cjs → vue-ui-sparkhistogram-B0rhs_UN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-TOZ7cGZE.js → vue-ui-sparkhistogram-PgC-c-5a.js} +5 -5
- package/dist/{vue-ui-sparkline-Corg_lTS.js → vue-ui-sparkline-BqNlrKjb.js} +37 -35
- package/dist/vue-ui-sparkline-c5Awoj8J.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-2Vwz74c6.cjs → vue-ui-sparkstackbar-BmYIcpVZ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D-W-02aO.js → vue-ui-sparkstackbar-DyJIUulr.js} +5 -5
- package/dist/{vue-ui-stackbar-DRLdPZii.js → vue-ui-stackbar-BebRtOYL.js} +55 -53
- package/dist/{vue-ui-stackbar-DZvxTz3J.cjs → vue-ui-stackbar-DJ9NH_l1.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-tQk3HsSn.js → vue-ui-strip-plot-BGHj1BHd.js} +77 -75
- package/dist/vue-ui-strip-plot-f7vejZht.cjs +1 -0
- package/dist/{vue-ui-table-G09LTync.cjs → vue-ui-table-BFdGppRF.cjs} +1 -1
- package/dist/{vue-ui-table-CNsJsvNH.js → vue-ui-table-ClPMKcMn.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Dl4lMTS6.cjs → vue-ui-table-heatmap-B7wTjM-H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CTs7AxUi.js → vue-ui-table-heatmap-DVQtPt-M.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Dy5shfoJ.cjs → vue-ui-table-sparkline-DaKODjfM.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ZtfktJZh.js → vue-ui-table-sparkline-DjxKXWQm.js} +5 -5
- package/dist/{vue-ui-thermometer-CaFnSru6.js → vue-ui-thermometer-CV_9k37V.js} +7 -7
- package/dist/{vue-ui-thermometer-039Cyhc2.cjs → vue-ui-thermometer-DE9r0emf.cjs} +1 -1
- package/dist/{vue-ui-timer-ChuLD5VW.js → vue-ui-timer-2w5Ayq7G.js} +35 -33
- package/dist/vue-ui-timer-Ct-KYWSX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-nDFTQjHJ.js → vue-ui-tiremarks-BJnh0GBj.js} +7 -7
- package/dist/{vue-ui-tiremarks-BiLfVwpF.cjs → vue-ui-tiremarks-Cf04zARl.cjs} +1 -1
- package/dist/{vue-ui-treemap-Dv9HNV59.js → vue-ui-treemap-BD546LBi.js} +37 -35
- package/dist/vue-ui-treemap-D0vi4bv4.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-W7AgfJa9.cjs → vue-ui-vertical-bar-D3QKHHnS.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-M3IDlqbG.js → vue-ui-vertical-bar-E5CTb1Bd.js} +53 -51
- package/dist/{vue-ui-waffle-CJYfXE-I.js → vue-ui-waffle-BAJIMbZK.js} +50 -48
- package/dist/vue-ui-waffle-BL0e3Yeq.cjs +1 -0
- package/dist/{vue-ui-wheel-BaMfH-RC.js → vue-ui-wheel-CPPLUSFq.js} +22 -20
- package/dist/vue-ui-wheel-Dy_B7BTG.cjs +1 -0
- package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-qympaTse.js → vue-ui-word-cloud-BVZcDY7m.js} +47 -45
- package/dist/vue-ui-xy-D4hRtHAi.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-Dn_4rMul.cjs → vue-ui-xy-canvas-BSZTrqci.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-qk5Vd9ng.js → vue-ui-xy-canvas-DFUfTZwz.js} +36 -34
- package/dist/{vue-ui-xy-BB_4gujH.js → vue-ui-xy-tB-6IP2y.js} +833 -839
- package/package.json +1 -1
- package/dist/Slicer-BZ-tooWv.cjs +0 -1
- package/dist/index-D4M1RdVn.cjs +0 -9
- package/dist/vue-ui-age-pyramid-BP3AgRGA.cjs +0 -1
- package/dist/vue-ui-donut--6AZz6OL.cjs +0 -1
- package/dist/vue-ui-dumbbell-6eYMBh5-.cjs +0 -9
- package/dist/vue-ui-funnel-CnyUx_rr.cjs +0 -1
- package/dist/vue-ui-gauge-Cg5wvQOF.cjs +0 -1
- package/dist/vue-ui-history-plot-N8Okj-iE.cjs +0 -1
- package/dist/vue-ui-quadrant-BSaMyYkS.cjs +0 -1
- package/dist/vue-ui-radar-BBKYxxex.cjs +0 -1
- package/dist/vue-ui-relation-circle-COKOM6l_.cjs +0 -1
- package/dist/vue-ui-scatter-oA9YA_np.cjs +0 -1
- package/dist/vue-ui-sparkline-De42544c.cjs +0 -1
- package/dist/vue-ui-strip-plot-CY7AKOJ8.cjs +0 -1
- package/dist/vue-ui-timer-BIAfoC2X.cjs +0 -64
- package/dist/vue-ui-treemap-8aBLlF51.cjs +0 -1
- package/dist/vue-ui-waffle-DefdpuXf.cjs +0 -1
- package/dist/vue-ui-wheel-DicUDLkK.cjs +0 -1
- package/dist/vue-ui-word-cloud-B5n21JbB.cjs +0 -1
- package/dist/vue-ui-xy-Du5PZnkC.cjs +0 -3
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
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
|
|
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 p, normalizeProps as T, guardReactiveProps as F, createVNode as Ae, createElementVNode as r, Fragment as I, 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 j, E as st, s as ut, x as it, y as nt, q as rt, r as dt, F as Fe } from "./index-B7nCQFK0.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
|
|
6
|
-
import { _ as
|
|
7
|
-
import { D as gt } from "./DataTable-
|
|
8
|
-
import mt from "./vue-ui-skeleton-
|
|
9
|
-
import { S as bt } from "./Slicer-
|
|
10
|
-
import xt from "./vue-ui-accordion-
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as kt } from "./PackageVersion-
|
|
13
|
-
import { P as wt } from "./PenAndPaper-
|
|
4
|
+
import { _ as ct } from "./Title-CaET2xuF.js";
|
|
5
|
+
import { u as ht, U as ft } from "./usePrinter-CQMn1b4E.js";
|
|
6
|
+
import { _ as pt } from "./Tooltip-Bkc4233T.js";
|
|
7
|
+
import { D as gt } from "./DataTable-C0tCPQ9i.js";
|
|
8
|
+
import mt from "./vue-ui-skeleton-D66ZIUln.js";
|
|
9
|
+
import { S as bt } from "./Slicer-BUYuk07t.js";
|
|
10
|
+
import xt from "./vue-ui-accordion-B8ptB5BQ.js";
|
|
11
|
+
import { u as Ie } from "./useNestedProp-C9rlBRTT.js";
|
|
12
|
+
import { _ as kt } from "./PackageVersion-CENy3Lm2.js";
|
|
13
|
+
import { P as wt } from "./PenAndPaper-Dr7ndoP_.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"],
|
|
16
|
+
const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], Nt = { key: 1 }, At = ["id"], Tt = ["stop-color"], Ft = ["stop-color"], It = ["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 = {
|
|
@@ -38,13 +38,13 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
38
38
|
set: (t) => t
|
|
39
39
|
}), { userOptionsVisible: J, setUserOptionsVisibility: re, keepUserOptionState: de } = $t({ config: e.value });
|
|
40
40
|
function ve() {
|
|
41
|
-
const t =
|
|
41
|
+
const t = Ie({
|
|
42
42
|
userConfig: h.config,
|
|
43
43
|
defaultConfig: Re
|
|
44
44
|
});
|
|
45
45
|
let o = {};
|
|
46
46
|
return t.theme ? o = {
|
|
47
|
-
...
|
|
47
|
+
...Ie({
|
|
48
48
|
userConfig: tt.vue_ui_candlestick[t.theme] || h.config,
|
|
49
49
|
defaultConfig: t
|
|
50
50
|
})
|
|
@@ -53,7 +53,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
53
53
|
Se(() => h.config, (t) => {
|
|
54
54
|
e.value = ve(), J.value = !e.value.showOnChartHover, ye(), B.value += 1, ne.value += 1, ie.value += 1;
|
|
55
55
|
}, { deep: !0 }), Se(() => h.dataset, (t) => {
|
|
56
|
-
|
|
56
|
+
f.value.start = 0, f.value.end = t.length, B.value += 1;
|
|
57
57
|
}, { deep: !0 });
|
|
58
58
|
const c = n({
|
|
59
59
|
height: e.value.style.height,
|
|
@@ -78,18 +78,20 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
78
78
|
source: se.value,
|
|
79
79
|
noTitle: ue.value
|
|
80
80
|
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
requestAnimationFrame(() => {
|
|
82
|
+
c.value.width = o, c.value.height = l, c.value.xAxisFontSize = Fe({
|
|
83
|
+
relator: Math.min(o, l),
|
|
84
|
+
adjuster: e.value.style.width,
|
|
85
|
+
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
86
|
+
threshold: 6,
|
|
87
|
+
fallback: 6
|
|
88
|
+
}), c.value.yAxisFontSize = Fe({
|
|
89
|
+
relator: Math.min(o, l),
|
|
90
|
+
adjuster: e.value.style.width,
|
|
91
|
+
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
92
|
+
threshold: 6,
|
|
93
|
+
fallback: 6
|
|
94
|
+
});
|
|
93
95
|
});
|
|
94
96
|
});
|
|
95
97
|
E.value = new ResizeObserver(t), E.value.observe(S.value.parentNode);
|
|
@@ -99,7 +101,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
99
101
|
Je(() => {
|
|
100
102
|
E.value && E.value.disconnect();
|
|
101
103
|
});
|
|
102
|
-
const { isPrinting: ce, isImaging: he, generatePdf:
|
|
104
|
+
const { isPrinting: ce, isImaging: he, generatePdf: fe, generateImage: pe } = ht({
|
|
103
105
|
elementId: `vue-ui-candlestick_${k.value}`,
|
|
104
106
|
fileName: e.value.style.title.text || "vue-ui-candlestick"
|
|
105
107
|
}), Ve = g(() => e.value.userOptions.show && !e.value.style.title.text), w = n({
|
|
@@ -115,10 +117,10 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
115
117
|
width: c.value.width - a - o,
|
|
116
118
|
height: c.value.height - t - l
|
|
117
119
|
};
|
|
118
|
-
}), O = g(() => h.dataset.length),
|
|
120
|
+
}), O = g(() => h.dataset.length), f = n({
|
|
119
121
|
start: 0,
|
|
120
122
|
end: O.value
|
|
121
|
-
}), ge = g(() => h.dataset.slice(
|
|
123
|
+
}), ge = g(() => h.dataset.slice(f.value.start, f.value.end)), K = g(() => (h.dataset.forEach((t, o) => {
|
|
122
124
|
[null, void 0].includes(t[0]) && z({
|
|
123
125
|
componentName: "VueUiCandlestick",
|
|
124
126
|
type: "datasetAttribute",
|
|
@@ -221,7 +223,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
221
223
|
}
|
|
222
224
|
const N = n(null);
|
|
223
225
|
async function be() {
|
|
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)))) : (
|
|
226
|
+
(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)))) : (f.value = {
|
|
225
227
|
start: 0,
|
|
226
228
|
end: O.value
|
|
227
229
|
}, B.value += 1);
|
|
@@ -287,9 +289,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
287
289
|
W.value = !W.value;
|
|
288
290
|
}
|
|
289
291
|
return Le({
|
|
290
|
-
generatePdf:
|
|
292
|
+
generatePdf: fe,
|
|
291
293
|
generateCsv: xe,
|
|
292
|
-
generateImage:
|
|
294
|
+
generateImage: pe,
|
|
293
295
|
toggleTable: ke,
|
|
294
296
|
toggleTooltip: we,
|
|
295
297
|
toggleAnnotator: Z
|
|
@@ -337,7 +339,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
337
339
|
}
|
|
338
340
|
}, null, 8, ["config"]))
|
|
339
341
|
], 512)) : y("", !0),
|
|
340
|
-
e.value.userOptions.show && R.value && (v(de) || v(J)) ? (s(), _(
|
|
342
|
+
e.value.userOptions.show && R.value && (v(de) || v(J)) ? (s(), _(ft, {
|
|
341
343
|
ref_key: "details",
|
|
342
344
|
ref: Oe,
|
|
343
345
|
key: `user_options_${te.value}`,
|
|
@@ -360,9 +362,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
360
362
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
361
363
|
isAnnotation: W.value,
|
|
362
364
|
onToggleFullscreen: We,
|
|
363
|
-
onGeneratePdf: v(
|
|
365
|
+
onGeneratePdf: v(fe),
|
|
364
366
|
onGenerateCsv: xe,
|
|
365
|
-
onGenerateImage: v(
|
|
367
|
+
onGenerateImage: v(pe),
|
|
366
368
|
onToggleTable: ke,
|
|
367
369
|
onToggleTooltip: we,
|
|
368
370
|
onToggleAnnotator: Z,
|
|
@@ -373,49 +375,49 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
373
375
|
t.$slots.optionTooltip ? {
|
|
374
376
|
name: "optionTooltip",
|
|
375
377
|
fn: m(() => [
|
|
376
|
-
|
|
378
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
377
379
|
]),
|
|
378
380
|
key: "0"
|
|
379
381
|
} : void 0,
|
|
380
382
|
t.$slots.optionPdf ? {
|
|
381
383
|
name: "optionPdf",
|
|
382
384
|
fn: m(() => [
|
|
383
|
-
|
|
385
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
384
386
|
]),
|
|
385
387
|
key: "1"
|
|
386
388
|
} : void 0,
|
|
387
389
|
t.$slots.optionCsv ? {
|
|
388
390
|
name: "optionCsv",
|
|
389
391
|
fn: m(() => [
|
|
390
|
-
|
|
392
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
391
393
|
]),
|
|
392
394
|
key: "2"
|
|
393
395
|
} : void 0,
|
|
394
396
|
t.$slots.optionImg ? {
|
|
395
397
|
name: "optionImg",
|
|
396
398
|
fn: m(() => [
|
|
397
|
-
|
|
399
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
398
400
|
]),
|
|
399
401
|
key: "3"
|
|
400
402
|
} : void 0,
|
|
401
403
|
t.$slots.optionTable ? {
|
|
402
404
|
name: "optionTable",
|
|
403
405
|
fn: m(() => [
|
|
404
|
-
|
|
406
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
405
407
|
]),
|
|
406
408
|
key: "4"
|
|
407
409
|
} : void 0,
|
|
408
410
|
t.$slots.optionFullscreen ? {
|
|
409
411
|
name: "optionFullscreen",
|
|
410
412
|
fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
411
|
-
|
|
413
|
+
p(t.$slots, "optionFullscreen", T(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
412
414
|
]),
|
|
413
415
|
key: "5"
|
|
414
416
|
} : void 0,
|
|
415
417
|
t.$slots.optionAnnotator ? {
|
|
416
418
|
name: "optionAnnotator",
|
|
417
419
|
fn: m(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
418
|
-
|
|
420
|
+
p(t.$slots, "optionAnnotator", T(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
419
421
|
]),
|
|
420
422
|
key: "6"
|
|
421
423
|
} : void 0
|
|
@@ -438,7 +440,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
438
440
|
pointerEvents: "none"
|
|
439
441
|
}
|
|
440
442
|
}, [
|
|
441
|
-
|
|
443
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
442
444
|
], 8, St)) : y("", !0),
|
|
443
445
|
b.value.length > 0 ? (s(), u("g", Nt, [
|
|
444
446
|
r("defs", null, [
|
|
@@ -454,11 +456,11 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
454
456
|
r("stop", {
|
|
455
457
|
offset: "50%",
|
|
456
458
|
"stop-color": `${v(j)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
457
|
-
}, null, 8,
|
|
459
|
+
}, null, 8, Ft),
|
|
458
460
|
r("stop", {
|
|
459
461
|
offset: "100%",
|
|
460
462
|
"stop-color": `${v(j)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
461
|
-
}, null, 8,
|
|
463
|
+
}, null, 8, It)
|
|
462
464
|
], 8, At),
|
|
463
465
|
r("linearGradient", {
|
|
464
466
|
id: `bullish_gradient_${k.value}`,
|
|
@@ -500,7 +502,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
500
502
|
}, null, 8, Bt)
|
|
501
503
|
])) : y("", !0),
|
|
502
504
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Et, [
|
|
503
|
-
(s(!0), u(
|
|
505
|
+
(s(!0), u(I, null, L(Ue.value, (l, a) => (s(), u("g", null, [
|
|
504
506
|
l.value >= C.value.min && l.value <= C.value.max ? (s(), u("line", {
|
|
505
507
|
key: 0,
|
|
506
508
|
x1: i.value.left,
|
|
@@ -523,7 +525,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
523
525
|
]))), 256))
|
|
524
526
|
])) : y("", !0),
|
|
525
527
|
e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Wt, [
|
|
526
|
-
(s(!0), u(
|
|
528
|
+
(s(!0), u(I, null, L(Be.value, (l, a) => (s(), u("g", null, [
|
|
527
529
|
r("text", {
|
|
528
530
|
transform: `translate(${i.value.left + d.value * a + d.value / 2}, ${i.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
529
531
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -534,7 +536,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
534
536
|
]))), 256))
|
|
535
537
|
])) : y("", !0),
|
|
536
538
|
r("g", null, [
|
|
537
|
-
(s(!0), u(
|
|
539
|
+
(s(!0), u(I, null, L(b.value, (l, a) => (s(), u("g", null, [
|
|
538
540
|
r("line", {
|
|
539
541
|
x1: l.open.x,
|
|
540
542
|
x2: l.open.x,
|
|
@@ -581,7 +583,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
581
583
|
]))), 256))
|
|
582
584
|
]),
|
|
583
585
|
r("g", null, [
|
|
584
|
-
(s(!0), u(
|
|
586
|
+
(s(!0), u(I, null, L(b.value, (l, a) => (s(), u("rect", {
|
|
585
587
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
586
588
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
587
589
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -590,7 +592,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
590
592
|
rx: e.value.style.layout.candle.borderRadius,
|
|
591
593
|
stroke: "none"
|
|
592
594
|
}, null, 8, Qt))), 256)),
|
|
593
|
-
(s(!0), u(
|
|
595
|
+
(s(!0), u(I, null, L(b.value, (l, a) => (s(), u("rect", {
|
|
594
596
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
595
597
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
596
598
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -604,7 +606,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
604
606
|
}, null, 8, Zt))), 256))
|
|
605
607
|
]),
|
|
606
608
|
r("g", null, [
|
|
607
|
-
(s(!0), u(
|
|
609
|
+
(s(!0), u(I, null, L(b.value, (l, a) => (s(), u("rect", {
|
|
608
610
|
x: i.value.left + a * d.value,
|
|
609
611
|
y: i.value.top,
|
|
610
612
|
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
@@ -617,10 +619,10 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
617
619
|
}, null, 40, el))), 256))
|
|
618
620
|
])
|
|
619
621
|
])) : y("", !0),
|
|
620
|
-
|
|
622
|
+
p(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
621
623
|
], 14, zt)) : y("", !0),
|
|
622
624
|
t.$slots.watermark ? (s(), u("div", tl, [
|
|
623
|
-
|
|
625
|
+
p(t.$slots, "watermark", T(F({ isPrinting: v(ce) || v(he) })), void 0, !0)
|
|
624
626
|
])) : y("", !0),
|
|
625
627
|
R.value ? y("", !0) : (s(), _(mt, {
|
|
626
628
|
key: 6,
|
|
@@ -652,19 +654,19 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
652
654
|
borderColor: e.value.style.backgroundColor,
|
|
653
655
|
fontSize: e.value.style.zoom.fontSize,
|
|
654
656
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
655
|
-
labelLeft: $.dataset[
|
|
656
|
-
labelRight: $.dataset[
|
|
657
|
+
labelLeft: $.dataset[f.value.start] ? $.dataset[f.value.start][0] : $.dataset[0][0],
|
|
658
|
+
labelRight: $.dataset[f.value.end - 1] ? $.dataset[f.value.end - 1][0] : $.dataset.at(-1)[0],
|
|
657
659
|
textColor: e.value.style.color,
|
|
658
660
|
inputColor: e.value.style.zoom.color,
|
|
659
661
|
selectColor: e.value.style.zoom.highlightColor,
|
|
660
662
|
max: O.value,
|
|
661
663
|
min: 0,
|
|
662
|
-
valueStart:
|
|
663
|
-
valueEnd:
|
|
664
|
-
start:
|
|
665
|
-
"onUpdate:start": o[1] || (o[1] = (l) =>
|
|
666
|
-
end:
|
|
667
|
-
"onUpdate:end": o[2] || (o[2] = (l) =>
|
|
664
|
+
valueStart: f.value.start,
|
|
665
|
+
valueEnd: f.value.end,
|
|
666
|
+
start: f.value.start,
|
|
667
|
+
"onUpdate:start": o[1] || (o[1] = (l) => f.value.start = l),
|
|
668
|
+
end: f.value.end,
|
|
669
|
+
"onUpdate:end": o[2] || (o[2] = (l) => f.value.end = l),
|
|
668
670
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
669
671
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : O.value,
|
|
670
672
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
@@ -672,7 +674,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
672
674
|
onReset: Me
|
|
673
675
|
}, {
|
|
674
676
|
"reset-action": m(({ reset: l }) => [
|
|
675
|
-
|
|
677
|
+
p(t.$slots, "reset-action", T(F({ reset: l })), void 0, !0)
|
|
676
678
|
]),
|
|
677
679
|
_: 3
|
|
678
680
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -681,7 +683,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
681
683
|
ref_key: "chartLegend",
|
|
682
684
|
ref: oe
|
|
683
685
|
}, [
|
|
684
|
-
|
|
686
|
+
p(t.$slots, "legend", { legend: b.value }, void 0, !0)
|
|
685
687
|
], 512),
|
|
686
688
|
t.$slots.source ? (s(), u("div", {
|
|
687
689
|
key: 8,
|
|
@@ -689,9 +691,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
689
691
|
ref: se,
|
|
690
692
|
dir: "auto"
|
|
691
693
|
}, [
|
|
692
|
-
|
|
694
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
693
695
|
], 512)) : y("", !0),
|
|
694
|
-
Ae(
|
|
696
|
+
Ae(pt, {
|
|
695
697
|
show: w.value.showTooltip && X.value,
|
|
696
698
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
697
699
|
color: e.value.style.tooltip.color,
|
|
@@ -708,10 +710,10 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
708
710
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
709
711
|
}, {
|
|
710
712
|
"tooltip-before": m(() => [
|
|
711
|
-
|
|
713
|
+
p(t.$slots, "tooltip-before", T(F({ ...Q.value })), void 0, !0)
|
|
712
714
|
]),
|
|
713
715
|
"tooltip-after": m(() => [
|
|
714
|
-
|
|
716
|
+
p(t.$slots, "tooltip-after", T(F({ ...Q.value })), void 0, !0)
|
|
715
717
|
]),
|
|
716
718
|
_: 3
|
|
717
719
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -754,7 +756,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
754
756
|
}, 8, ["config"])) : y("", !0)
|
|
755
757
|
], 46, _t));
|
|
756
758
|
}
|
|
757
|
-
}, xl = /* @__PURE__ */ Ct(ol, [["__scopeId", "data-v-
|
|
759
|
+
}, xl = /* @__PURE__ */ Ct(ol, [["__scopeId", "data-v-f595f5e5"]]);
|
|
758
760
|
export {
|
|
759
761
|
xl as default
|
|
760
762
|
};
|
|
@@ -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-B7nCQFK0.js";
|
|
3
|
+
import { u as He } from "./useNestedProp-C9rlBRTT.js";
|
|
4
|
+
import { u as Ne, U as Ue } from "./usePrinter-CQMn1b4E.js";
|
|
5
|
+
import Ve from "./vue-ui-skeleton-D66ZIUln.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-D4M1RdVn.cjs"),ue=require("./useNestedProp-D_XfpfnF.cjs"),Q=require("./usePrinter-Bfrr3DDK.cjs"),se=require("./vue-ui-skeleton-6_VzxeeY.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-COIn1phv.cjs"),ue=require("./useNestedProp-CbMuGGl3.cjs"),Q=require("./usePrinter-CXXfgFFN.cjs"),se=require("./vue-ui-skeleton-BIqMxXV7.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-B7nCQFK0.js";
|
|
3
|
+
import { u as nt, U as rt } from "./usePrinter-CQMn1b4E.js";
|
|
4
|
+
import it from "./vue-ui-skeleton-D66ZIUln.js";
|
|
5
|
+
import ct from "./BaseIcon-B8U62FEj.js";
|
|
6
|
+
import dt from "./vue-ui-accordion-B8ptB5BQ.js";
|
|
7
|
+
import { u as Se } from "./useNestedProp-C9rlBRTT.js";
|
|
8
|
+
import { _ as vt } from "./PackageVersion-CENy3Lm2.js";
|
|
9
|
+
import { P as yt } from "./PenAndPaper-Dr7ndoP_.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 = {
|