vue-data-ui 2.3.6 → 2.3.7
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-BSOdhAJO.cjs → Arrow-BZtTM41y.cjs} +1 -1
- package/dist/{Arrow-BjDVSrfA.js → Arrow-nwrjVtgP.js} +1 -1
- package/dist/{BaseIcon-vmmfWlyR.js → BaseIcon-DLlcdgWI.js} +4 -3
- package/dist/{BaseIcon-BoKtpbrI.cjs → BaseIcon-DWx8aSo2.cjs} +1 -1
- package/dist/{DataTable-CaB7GIwQ.js → DataTable-BFsn-W_6.js} +2 -2
- package/dist/{DataTable-ssrNbONo.cjs → DataTable-BSoyXOFT.cjs} +1 -1
- package/dist/{Legend-DHpoRTAE.js → Legend-DThjLfzi.js} +1 -1
- package/dist/{Legend-Dl5IYoxK.cjs → Legend-DZhpxKg4.cjs} +1 -1
- package/dist/{Shape-CaF4pvOn.cjs → Shape-CoCdB8es.cjs} +1 -1
- package/dist/{Shape-CQT4S7N-.js → Shape-DdhpbOB2.js} +1 -1
- package/dist/{Slicer-QC8nTm24.cjs → Slicer-Bb7zhtxv.cjs} +1 -1
- package/dist/{Slicer-Bdb1BlrC.js → Slicer-CBsGmIKc.js} +1 -1
- package/dist/{Title-BNPZwnkp.js → Title-CfofmWzW.js} +1 -1
- package/dist/{Title-Cj_xubjI.cjs → Title-Ci74YZxW.cjs} +1 -1
- package/dist/{Tooltip-CdJ5hegk.cjs → Tooltip-BNMjZUBc.cjs} +1 -1
- package/dist/{Tooltip-ZnJAz6dl.js → Tooltip-cIpD1ChA.js} +1 -1
- package/dist/{index-BMCvLyab.js → index-CGb3gF5A.js} +1 -1
- package/dist/{index-BkomIE9L.cjs → index-DFXgoR1T.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useNestedProp-BMxXyPbW.cjs → useNestedProp-CbZUIZc0.cjs} +1 -1
- package/dist/{useNestedProp-CkP8xhG_.js → useNestedProp-DCBzUHfz.js} +1 -1
- package/dist/{usePrinter-r6uHYEcR.cjs → usePrinter-DoFYRZKM.cjs} +1 -1
- package/dist/{usePrinter-BuuBz5JR.js → usePrinter-VlAyPtaS.js} +1 -1
- package/dist/{vue-data-ui-Bc5U1cOP.cjs → vue-data-ui-DT5BwtL1.cjs} +1 -1
- package/dist/{vue-data-ui-DxeO0iaC.js → vue-data-ui-DkU-TK4x.js} +55 -55
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-32wM0tiX.js → vue-ui-3d-bar-B2ZdZ5yW.js} +7 -7
- package/dist/{vue-ui-3d-bar-CgB0fLQT.cjs → vue-ui-3d-bar-BwdmaNwO.cjs} +1 -1
- package/dist/{vue-ui-accordion-CLlVxx3Q.js → vue-ui-accordion-Br7xhAKF.js} +3 -3
- package/dist/{vue-ui-accordion-SXsobrUt.cjs → vue-ui-accordion-P9OYffC3.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DqiwcOIr.cjs → vue-ui-age-pyramid-CJGz5iEy.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-D_CY99xF.js → vue-ui-age-pyramid-D_GP1VkP.js} +8 -8
- package/dist/{vue-ui-annotator-DvP-IxDm.js → vue-ui-annotator-BHI5Uicp.js} +1 -1
- package/dist/{vue-ui-annotator-mntqd3q_.cjs → vue-ui-annotator-C9I6Zikz.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C_TvUQvH.cjs → vue-ui-candlestick-B3Z-Zw-o.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C-5u3i-1.js → vue-ui-candlestick-BMz6lY9I.js} +9 -9
- package/dist/{vue-ui-carousel-table-CAqhsLVx.js → vue-ui-carousel-table-9W-FPpp4.js} +114 -104
- package/dist/vue-ui-carousel-table-ZyIsiWGm.cjs +1 -0
- package/dist/{vue-ui-chestnut-DhWlw2MD.cjs → vue-ui-chestnut-C4vJDydB.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DylSfYMB.js → vue-ui-chestnut-DikFweqJ.js} +6 -6
- package/dist/{vue-ui-cursor-DTYEMgbU.js → vue-ui-cursor-CmWl10Om.js} +2 -2
- package/dist/{vue-ui-cursor-B04HJQVl.cjs → vue-ui-cursor-CxvSx8wW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DFIYwP1s.cjs → vue-ui-dashboard-BRZFA0Yv.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Bd0-cmSZ.js → vue-ui-dashboard-CqNO4CkA.js} +2 -2
- package/dist/{vue-ui-digits-Ced5mBJZ.cjs → vue-ui-digits-B5AQ1wb4.cjs} +1 -1
- package/dist/{vue-ui-digits-CW5qNMIk.js → vue-ui-digits-Bq86VtLg.js} +2 -2
- package/dist/{vue-ui-donut-EeVmrVJs.js → vue-ui-donut-BSM49MRr.js} +9 -9
- package/dist/{vue-ui-donut-evolution-Ct6KAzs-.cjs → vue-ui-donut-evolution-D4vsG4oJ.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BN08Y2hy.js → vue-ui-donut-evolution-hXH6wndl.js} +9 -9
- package/dist/{vue-ui-donut-DIhhgvWp.cjs → vue-ui-donut-fUSFXY5z.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-pextarqH.cjs → vue-ui-dumbbell-CSxoMYt4.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BMlxS1Nq.js → vue-ui-dumbbell-DF7resYk.js} +8 -8
- package/dist/{vue-ui-flow-CHmkgfyb.js → vue-ui-flow-2Wc505ek.js} +7 -7
- package/dist/{vue-ui-flow-BXVsbmyb.cjs → vue-ui-flow-qhWWfhM9.cjs} +1 -1
- package/dist/{vue-ui-galaxy-kiVOZOBz.js → vue-ui-galaxy-C1tqFf2k.js} +9 -9
- package/dist/{vue-ui-galaxy-D4xyd-J1.cjs → vue-ui-galaxy-DTYcNRMO.cjs} +1 -1
- package/dist/{vue-ui-gauge-DPFBsbFj.cjs → vue-ui-gauge-4oL43tii.cjs} +1 -1
- package/dist/{vue-ui-gauge-BcO-z97J.js → vue-ui-gauge-qkz3wSir.js} +4 -4
- package/dist/{vue-ui-heatmap-DBOKYaJz.cjs → vue-ui-heatmap-B8vDpGuW.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DD-Bzddj.js → vue-ui-heatmap-SUwlu7rR.js} +8 -8
- package/dist/{vue-ui-kpi-BEgf5yDv.cjs → vue-ui-kpi-Bw-xbRgX.cjs} +1 -1
- package/dist/{vue-ui-kpi-BS0o7zb9.js → vue-ui-kpi-jQgfkbVw.js} +2 -2
- package/dist/{vue-ui-mini-loader-DJEvG6ju.js → vue-ui-mini-loader-5YEExcv8.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bm5EJxtG.cjs → vue-ui-mini-loader-DT-Ww_uE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzUqcaxd.cjs → vue-ui-molecule-DA0NQGMP.cjs} +1 -1
- package/dist/{vue-ui-molecule-DdwnFEBJ.js → vue-ui-molecule-sddRGEOr.js} +9 -9
- package/dist/{vue-ui-mood-radar-B9Gczs_Z.js → vue-ui-mood-radar-BlwtCy7m.js} +9 -9
- package/dist/{vue-ui-mood-radar-DbB7m4Ku.cjs → vue-ui-mood-radar-CUfTRsXf.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CVQ1CaXo.js → vue-ui-nested-donuts-BYDoEtqK.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BSINf8hd.cjs → vue-ui-nested-donuts-CyhCktfb.cjs} +1 -1
- package/dist/{vue-ui-onion-Ut75t7hB.js → vue-ui-onion-BiS7G_xb.js} +9 -9
- package/dist/{vue-ui-onion-D3-6Tv4u.cjs → vue-ui-onion-DKjJWVtm.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Bjo09ZTX.js → vue-ui-parallel-coordinate-plot-BcZOH5MA.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs → vue-ui-parallel-coordinate-plot-CB5WohUW.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Du9PKvlO.js → vue-ui-quadrant-BX2Z_BiG.js} +10 -10
- package/dist/{vue-ui-quadrant-CzCvejGn.cjs → vue-ui-quadrant-aRRuJrr1.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BsxsPbjz.cjs → vue-ui-quick-chart-BSov5yuk.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-u0cPmD3q.js → vue-ui-quick-chart-aCDLYVC0.js} +6 -6
- package/dist/{vue-ui-radar-DIpCrj1h.cjs → vue-ui-radar-B3DWzSx8.cjs} +1 -1
- package/dist/{vue-ui-radar-CBrpuE5r.js → vue-ui-radar-DGhNZx7E.js} +10 -10
- package/dist/{vue-ui-rating-D8fJC8Yt.cjs → vue-ui-rating-DI2herA3.cjs} +1 -1
- package/dist/{vue-ui-rating-CaeGGlCw.js → vue-ui-rating-QJp1mzIX.js} +2 -2
- package/dist/{vue-ui-relation-circle-5DNf880s.js → vue-ui-relation-circle-DRKymwCT.js} +5 -5
- package/dist/{vue-ui-relation-circle-Ky3nPk6S.cjs → vue-ui-relation-circle-Dgk6ILFm.cjs} +1 -1
- package/dist/{vue-ui-rings-IE3IdNRF.js → vue-ui-rings-Dc_Xgav-.js} +9 -9
- package/dist/{vue-ui-rings-CffZ4T2S.cjs → vue-ui-rings-m9Gm4w5-.cjs} +1 -1
- package/dist/{vue-ui-scatter-C4GCZm0V.js → vue-ui-scatter-3p_U1RQz.js} +10 -10
- package/dist/{vue-ui-scatter-TsX5dW9l.cjs → vue-ui-scatter-CwNnmbpv.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bzpg6yof.cjs → vue-ui-screenshot-Bdg6KSR_.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bl3oooKI.js → vue-ui-screenshot-DjN1leGW.js} +1 -1
- package/dist/{vue-ui-skeleton-BisWX1sO.js → vue-ui-skeleton-B0udzFdQ.js} +2 -2
- package/dist/{vue-ui-skeleton-JmGp11-u.cjs → vue-ui-skeleton-CmABeGyu.cjs} +1 -1
- package/dist/{vue-ui-smiley-Sth2pqG1.js → vue-ui-smiley-BJdbZUnl.js} +2 -2
- package/dist/{vue-ui-smiley-BhSrt9f-.cjs → vue-ui-smiley-CIMwndRh.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C8NSz4l8.cjs → vue-ui-spark-trend-BiqhJCi0.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DAqO0TW2.js → vue-ui-spark-trend-Bs8wWJc2.js} +4 -4
- package/dist/{vue-ui-sparkbar-hL1Q6ObK.cjs → vue-ui-sparkbar-C2YT0NxS.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0zX7NU7.js → vue-ui-sparkbar-CDi8i8_Q.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CWR8zJnU.js → vue-ui-sparkgauge-11o7Kgbf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-tbVqaLCK.cjs → vue-ui-sparkgauge-D7sVelKC.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Dv-lml4g.cjs → vue-ui-sparkhistogram-C6nnvqeP.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DxqCtDpw.js → vue-ui-sparkhistogram-DW4yBl5Z.js} +4 -4
- package/dist/{vue-ui-sparkline-BpL1jn7F.js → vue-ui-sparkline-B-jMIILk.js} +3 -3
- package/dist/{vue-ui-sparkline-B6pvaBY_.cjs → vue-ui-sparkline-Bnc9Cv0E.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CQ2TEi4p.cjs → vue-ui-sparkstackbar-CVyS6viy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BzbuBNIV.js → vue-ui-sparkstackbar-cUpn5wUS.js} +3 -3
- package/dist/{vue-ui-strip-plot-DCcbD6UE.js → vue-ui-strip-plot-CpfV9-gw.js} +9 -9
- package/dist/{vue-ui-strip-plot-DCC6F4VM.cjs → vue-ui-strip-plot-Dc1Y7Lfz.cjs} +1 -1
- package/dist/{vue-ui-table-CseaFWgX.cjs → vue-ui-table-BHENqbW6.cjs} +1 -1
- package/dist/{vue-ui-table-CFqIWfxl.js → vue-ui-table-CaCOIekW.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Bwut-V1D.cjs → vue-ui-table-heatmap-r9XRz_dD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bz8KYDxr.js → vue-ui-table-heatmap-s7r2sGYk.js} +4 -4
- package/dist/{vue-ui-table-sparkline-z29ND2lq.js → vue-ui-table-sparkline-BS7VAPDv.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CJBU3y8-.cjs → vue-ui-table-sparkline-Dk_FjirH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BNAITzJa.js → vue-ui-thermometer-BQLqVj-X.js} +5 -5
- package/dist/{vue-ui-thermometer-DM2IKhqN.cjs → vue-ui-thermometer-DU49ev3a.cjs} +1 -1
- package/dist/{vue-ui-timer-DLfXuW8T.cjs → vue-ui-timer-9QQVkkbc.cjs} +1 -1
- package/dist/{vue-ui-timer-DV6lQVHU.js → vue-ui-timer-DGM9AHJ5.js} +4 -4
- package/dist/{vue-ui-tiremarks-WyQPg7yo.js → vue-ui-tiremarks-Bxop3uDk.js} +5 -5
- package/dist/{vue-ui-tiremarks-B1bd1jPf.cjs → vue-ui-tiremarks-CJ9xiM-i.cjs} +1 -1
- package/dist/{vue-ui-treemap-BZGmoDHb.cjs → vue-ui-treemap-BOEC1m08.cjs} +1 -1
- package/dist/{vue-ui-treemap-DKmBhzV-.js → vue-ui-treemap-CQ9rJnkn.js} +9 -9
- package/dist/{vue-ui-vertical-bar-Bi-0rRN3.cjs → vue-ui-vertical-bar-BBHN-hhJ.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-C-ySfrhJ.js → vue-ui-vertical-bar-CwcIKeM-.js} +9 -9
- package/dist/{vue-ui-waffle-VLYkR-YZ.cjs → vue-ui-waffle-Bg_hB8yK.cjs} +1 -1
- package/dist/{vue-ui-waffle-CGRWu-da.js → vue-ui-waffle-DB3cEJx6.js} +9 -9
- package/dist/{vue-ui-wheel-Pj9OPk9f.js → vue-ui-wheel-CF6psk6N.js} +5 -5
- package/dist/{vue-ui-wheel-D2q5vy5V.cjs → vue-ui-wheel-DpTCJpZn.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Ba4BjatU.cjs → vue-ui-word-cloud-DVu3gTbu.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-8Vr-jo1p.js → vue-ui-word-cloud-QlpZWR2c.js} +6 -6
- package/dist/{vue-ui-xy-qToggEfh.js → vue-ui-xy-CpcGvBUq.js} +12 -12
- package/dist/{vue-ui-xy-C4QW5Lfl.cjs → vue-ui-xy-DFiOxWGU.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DnLWrf0e.js → vue-ui-xy-canvas-CBlzHZ_m.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Be-Da_0x.cjs → vue-ui-xy-canvas-DR_8n36F.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-carousel-table-BCePqkuz.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as f, ref as d, onMounted as ve, openBlock as i, createElementBlock as u, normalizeClass as K, normalizeStyle as P, createVNode as N, createCommentVNode as y, createBlock as R, unref as g, createSlots as ye, withCtx as c, renderSlot as p, normalizeProps as D, guardReactiveProps as G, createElementVNode as r, Fragment as C, renderList as S, toDisplayString as m, createTextVNode as Q, nextTick as he } from "vue";
|
|
2
|
-
import { u as ce, c as fe, t as ge, o as pe, e as be, X as xe, s as Z, r as B, v as me, w as we, n as _e, q as ke } from "./index-
|
|
2
|
+
import { u as ce, c as fe, t as ge, o as pe, e as be, X as xe, s as Z, r as B, v as me, w as we, n as _e, q as ke } from "./index-CGb3gF5A.js";
|
|
3
3
|
import { t as Ce, u as $e } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Te } from "./Title-
|
|
5
|
-
import { u as Le, U as Se } from "./usePrinter-
|
|
6
|
-
import { _ as ze } from "./Tooltip-
|
|
7
|
-
import { D as Ae } from "./DataTable-
|
|
8
|
-
import Fe from "./vue-ui-skeleton-
|
|
9
|
-
import Ie from "./vue-ui-accordion-
|
|
10
|
-
import { u as ee } from "./useNestedProp-
|
|
4
|
+
import { _ as Te } from "./Title-CfofmWzW.js";
|
|
5
|
+
import { u as Le, U as Se } from "./usePrinter-VlAyPtaS.js";
|
|
6
|
+
import { _ as ze } from "./Tooltip-cIpD1ChA.js";
|
|
7
|
+
import { D as Ae } from "./DataTable-BFsn-W_6.js";
|
|
8
|
+
import Fe from "./vue-ui-skeleton-B0udzFdQ.js";
|
|
9
|
+
import Ie from "./vue-ui-accordion-Br7xhAKF.js";
|
|
10
|
+
import { u as ee } from "./useNestedProp-DCBzUHfz.js";
|
|
11
11
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"], De = ["stop-color"], Ge = ["id"], Be = ["stop-color"], Ee = ["stop-color"], We = ["x", "y", "width", "height", "fill", "rx"], Xe = ["x", "y", "width", "height", "fill", "rx"], Ue = ["x", "y", "width", "height", "fill", "rx"], Ve = ["x", "y", "width", "height", "fill", "rx"], je = { key: 0 }, He = ["x", "y", "fill", "font-size", "font-weight"], Ye = ["x", "y", "fill", "font-size", "font-weight"], qe = { key: 1 }, Je = ["x", "y", "font-size", "fill", "font-weight"], Ke = { key: 2 }, Qe = { key: 0 }, Ze = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], lt = ["x", "y", "font-size", "fill", "font-weight"], at = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ot = ["x", "y", "font-size", "fill", "font-weight"], st = ["x", "y", "font-size", "fill", "font-weight"], it = ["x", "y", "width", "height", "fill", "onMouseover"], ut = {
|
|
13
13
|
__name: "vue-ui-age-pyramid",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import p from "./html2canvas.esm-d2sM-0Wm.js";
|
|
2
2
|
import { E as _ } from "./jspdf.es.min-C660YX78.js";
|
|
3
|
-
import { r as v, u as w, x as A, y as M } from "./index-
|
|
3
|
+
import { r as v, u as w, x as A, y as M } from "./index-CGb3gF5A.js";
|
|
4
4
|
import { openBlock as d, createElementBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, normalizeClass as y, createCommentVNode as a, withDirectives as f, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G, createStaticVNode as N, pushScopeId as m, popScopeId as T } from "vue";
|
|
5
5
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const D = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./html2canvas.esm-BA_v9SIU.cjs"),b=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./html2canvas.esm-BA_v9SIU.cjs"),b=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-DFXgoR1T.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
|
|
2
2
|
<defs>
|
|
3
3
|
<marker
|
|
4
4
|
id="${e.id}"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-DFXgoR1T.cjs"),X=require("./useResponsive-B3TrDDIG.cjs"),ye=require("./Title-Ci74YZxW.cjs"),Y=require("./usePrinter-DoFYRZKM.cjs"),he=require("./Tooltip-BNMjZUBc.cjs"),pe=require("./DataTable-BSoyXOFT.cjs"),ge=require("./vue-ui-skeleton-CmABeGyu.cjs"),fe=require("./Slicer-Bb7zhtxv.cjs"),me=require("./vue-ui-accordion-P9OYffC3.cjs"),J=require("./useNestedProp-CbZUIZc0.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],be=["xmlns","viewBox"],we={key:0},Ce=["id"],$e=["stop-color"],Ne=["stop-color"],_e=["stop-color"],Be=["id"],Se=["stop-color"],Ve=["stop-color"],Ee=["stop-color"],ze={key:0},Te=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Ae={key:1},Le=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x","y","font-size","fill","font-weight"],Pe={key:2},Ie=["transform","text-anchor","font-size","fill","font-weight"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Me={key:0},Ue=["cx","cy","r","fill"],De=["cx","cy","r","fill"],qe={key:1},We=["x1","x2","y1","y2","stroke","stroke-width"],Ge=["x1","x2","y1","y2","stroke","stroke-width"],He=["x","y","height","width","fill","rx"],je=["x","y","height","width","fill","rx","stroke","stroke-width"],Xe=["x","y","height","width","fill","onMouseover"],Ye=["innerHTML"],Je={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(g,{expose:K}){const h=g,{vue_ui_candlestick:Q}=i.useConfig(),m=t.computed(()=>!!h.dataset&&h.dataset.length),y=t.ref(i.createUid()),Z=t.ref(null),_=t.ref(!1),B=t.ref(""),S=t.ref(void 0),T=t.ref(0),F=t.ref(0),x=t.ref(null),A=t.ref(null),L=t.ref(null),R=t.ref(null),e=t.computed(()=>{const o=J.useNestedProp({userConfig:h.config,defaultConfig:Q});return o.theme?{...J.useNestedProp({userConfig:i.themes.vue_ui_candlestick[o.theme]||h.config,defaultConfig:o})}:o}),r=t.ref({height:e.value.style.height,width:e.value.style.width,xAxisFontSize:e.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:e.value.style.layout.grid.yAxis.dataLabels.fontSize}),b=t.ref(null);t.onMounted(()=>{if(i.objectIsEmpty(h.dataset)&&i.error({componentName:"VueUiCandlestick",type:"dataset"}),e.value.responsive){const o=X.throttle(()=>{const{width:u,height:l}=X.useResponsive({chart:x.value,title:e.value.style.title.text?A.value:null,slicer:R.value,legend:L.value});r.value.width=u,r.value.height=l,r.value.xAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),r.value.yAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});b.value=new ResizeObserver(o),b.value.observe(x.value.parentNode)}}),t.onBeforeUnmount(()=>{b.value&&b.value.disconnect()});const{isPrinting:ee,isImaging:te,generatePdf:P,generateImage:I}=Y.usePrinter({elementId:`vue-ui-candlestick_${y.value}`,fileName:e.value.style.title.text||"vue-ui-candlestick"}),p=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),s=t.computed(()=>{const{top:o,right:u,bottom:l,left:a}=e.value.style.layout.padding;return{top:o,right:r.value.width-u,left:a,bottom:r.value.height-l,width:r.value.width-a-u,height:r.value.height-o-l}}),V=t.computed(()=>h.dataset.length),d=t.ref({start:0,end:V.value}),O=t.computed(()=>h.dataset.slice(d.value.start,d.value.end)),E=t.computed(()=>(h.dataset.forEach((o,u)=>{[null,void 0].includes(o[0])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:u}),[null,void 0].includes(o[1])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:u}),[null,void 0].includes(o[2])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:u}),[null,void 0].includes(o[3])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:u}),[null,void 0].includes(o[4])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:u}),[null,void 0].includes(o[5])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:u})}),O.value.map(o=>({period:o[0],open:o[1],high:o[2],low:o[3],last:o[4],volume:o[5]})))),n=t.computed(()=>s.value.width/O.value.length),M=t.computed(()=>({max:Math.max(...E.value.map(o=>o.high)),min:0})),f=t.computed(()=>i.calculateNiceScale(M.value.min,M.value.max,e.value.style.layout.grid.yAxis.dataLabels.steps));function w(o,u){return{...o,x:s.value.left+u*n.value+n.value/2,y:s.value.top+(1-o/f.value.max)*s.value.height,value:o}}const c=t.computed(()=>E.value.map((o,u)=>{const l=w(o.open,u),a=w(o.high,u),v=w(o.low,u),$=w(o.last,u),N=o.last>o.open;return{period:o.period,open:l,high:a,low:v,last:$,volume:o.volume,isBullish:N}}));function le(o){return o/f.value.max}const oe=t.computed(()=>f.value.ticks.map(o=>({y:s.value.bottom-s.value.height*le(o),value:o}))),ae=t.computed(()=>E.value.map(o=>o.period)),z=t.ref(null);function ue(o,u){S.value=o,z.value={datapoint:u,seriesIndex:o,series:c.value,config:e.value};const l=e.value.style.tooltip.customFormat;if(i.isFunction(l)&&i.functionReturnsString(()=>l({seriesIndex:o,datapoint:u,series:c.value,config:e.value})))B.value=l({seriesIndex:o,datapoint:u,series:c.value,config:e.value});else if(e.value.style.tooltip.show){let a="";const{period:v,open:$,high:N,low:W,last:G,volume:H,isBullish:j}=c.value[o],{period:Qe,open:ne,high:re,low:de,last:ce,volume:ve}=e.value.translations;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}"
|
|
2
2
|
fill="${e.value.style.layout.candle.gradient.show?j?`url(#bullish_gradient_${y.value})`:`url(#bearish_gradient_${y.value})`:j?e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.colors.bearish}"/></svg>${v}</div>`,a+=`${ve} : <b>${isNaN(H)?"-":Number(H.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>${ne}: <b>${e.value.style.tooltip.prefix} ${isNaN($.value)?"-":Number($.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${re}: <b>${e.value.style.tooltip.prefix} ${isNaN(N.value)?"-":Number(N.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${de}: <b>${e.value.style.tooltip.prefix} ${isNaN(W.value)?"-":Number(W.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${ce}: <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>",B.value=`<div style="text-align:right">${a}</div>`}_.value=!0}function ie(){d.value={start:0,end:V.value},F.value+=1}function U(){t.nextTick(()=>{const o=[e.value.translations.period,e.value.translations.open,e.value.translations.high,e.value.translations.low,e.value.translations.last,e.value.translations.volume],u=c.value.map(v=>[v.period,v.open.value,v.high.value,v.low.value,v.last.value,v.volume]),l=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([o]).concat(u),a=i.createCsvContent(l);i.downloadCsv({csvContent:a,title:e.value.style.title.text||"vue-ui-candlestick"})})}const C=t.computed(()=>{const o=c.value.map(a=>[`<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_${y.value}`:`url(#bearish_gradient_${y.value})`:a.isBullish?e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,`${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}`,`${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}`,`${e.value.table.td.prefix} ${isNaN(a.low.value)?"-":Number(a.low.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.last.value)?"-":Number(a.last.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${isNaN(a.volume)?"-":a.volume.toLocaleString()}`]),u={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint},l=[e.value.translations.period,e.value.translations.open,e.value.translations.high,e.value.translations.low,e.value.translations.last,e.value.translations.volume];return{head:l,body:o,config:u,colNames:l}}),k=t.ref(!1);function se(o){k.value=o,T.value+=1}function D(){p.value.showTable=!p.value.showTable}function q(){p.value.showTooltip=!p.value.showTooltip}return K({generatePdf:P,generateCsv:U,generateImage:I,toggleTable:D,toggleTooltip:q}),(o,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"candlestickChart",ref:x,class:t.normalizeClass(`vue-ui-candlestick ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${e.value.useCssAnimation?"":"vue-ui-dna"}`),style:t.normalizeStyle(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor}; ${e.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${y.value}`},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(ye._sfc_main,{config:{title:{cy:"candlestick-div-title",...e.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&m.value?(t.openBlock(),t.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${T.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(te),isPrinting:t.unref(ee),uid:y.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasImg:e.value.userOptions.buttons.img,hasXls:e.value.userOptions.buttons.csv,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:k.value,isTooltip:p.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:se,onGeneratePdf:t.unref(P),onGenerateCsv:U,onGenerateImage:t.unref(I),onToggleTable:D,onToggleTooltip:q},t.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[t.renderSlot(o.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(i.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[c.value.length>0?(t.openBlock(),t.createElementBlock("g",we,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`bearish_gradient_${y.value}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.candle.colors.bearish},null,8,$e),t.createElementVNode("stop",{offset:"50%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,Ne),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bearish,.05)}66`},null,8,_e)],8,Ce),t.createElementVNode("linearGradient",{id:`bullish_gradient_${y.value}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.candle.colors.bullish},null,8,Se),t.createElementVNode("stop",{offset:"50%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,Ve),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Ee)],8,Be)]),e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",ze,[t.createElementVNode("line",{x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Te),t.createElementVNode("line",{x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Fe)])):t.createCommentVNode("",!0),e.value.style.layout.grid.yAxis.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(oe.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[l.value>=f.value.min&&l.value<=f.value.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:s.value.left,x2:s.value.left-5,y1:l.y,y2:l.y,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Le)):t.createCommentVNode("",!0),l.value>=f.value.min&&l.value<=f.value.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.value.left-8+e.value.style.layout.grid.yAxis.dataLabels.offsetX,y:l.y+r.value.yAxisFontSize/3,"font-size":r.value.yAxisFontSize,"text-anchor":"end",fill:e.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":e.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+t.toDisplayString(t.unref(i.canShowValue)(l.value)?l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+t.toDisplayString(e.value.style.layout.grid.yAxis.dataLabels.suffix),9,Re)):t.createCommentVNode("",!0)]))),256))])):t.createCommentVNode("",!0),e.value.style.layout.grid.xAxis.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Pe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ae.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("text",{transform:`translate(${s.value.left+n.value*a+n.value/2}, ${s.value.bottom+r.value.xAxisFontSize*2+e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":e.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":e.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":r.value.xAxisFontSize,fill:e.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":e.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},t.toDisplayString(l),9,Ie)]))),256))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:l.open.x,x2:l.open.x,y1:l.high.y,y2:l.low.y,stroke:e.value.style.layout.wick.stroke,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,Oe),e.value.style.layout.wick.extremity.shape==="circle"?(t.openBlock(),t.createElementBlock("g",Me,[t.createElementVNode("circle",{cx:l.high.x,cy:l.high.y,r:e.value.style.layout.wick.extremity.size==="auto"?n.value/20:e.value.style.layout.wick.extremity.size,fill:e.value.style.layout.wick.extremity.color},null,8,Ue),t.createElementVNode("circle",{cx:l.low.x,cy:l.low.y,r:e.value.style.layout.wick.extremity.size==="auto"?n.value/20:e.value.style.layout.wick.extremity.size,fill:e.value.style.layout.wick.extremity.color},null,8,De)])):t.createCommentVNode("",!0),e.value.style.layout.wick.extremity.shape==="line"?(t.openBlock(),t.createElementBlock("g",qe,[t.createElementVNode("line",{x1:l.high.x-(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,x2:l.high.x+(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,y1:l.high.y,y2:l.high.y,stroke:e.value.style.layout.wick.extremity.color,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,We),t.createElementVNode("line",{x1:l.low.x-(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,x2:l.low.x+(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,y1:l.low.y,y2:l.low.y,stroke:e.value.style.layout.wick.extremity.color,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,Ge)])):t.createCommentVNode("",!0)]))),256))]),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:l.open.x-n.value/2+n.value*(1-e.value.style.layout.candle.widthRatio)/2,y:l.isBullish?l.last.y:l.open.y,height:Math.abs(l.last.y-l.open.y)<=0?1e-4:Math.abs(l.last.y-l.open.y),width:n.value*e.value.style.layout.candle.widthRatio<=0?1e-4:n.value*e.value.style.layout.candle.widthRatio,fill:e.value.style.layout.candle.gradient.underlayer,rx:e.value.style.layout.candle.borderRadius,stroke:"none"},null,8,He))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:l.open.x-n.value/2+n.value*(1-e.value.style.layout.candle.widthRatio)/2,y:l.isBullish?l.last.y:l.open.y,height:Math.abs(l.last.y-l.open.y)<=0?1e-4:Math.abs(l.last.y-l.open.y),width:n.value*e.value.style.layout.candle.widthRatio<=0?1e-4:n.value*e.value.style.layout.candle.widthRatio,fill:l.isBullish?e.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${y.value})`:e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${y.value})`:e.value.style.layout.candle.colors.bearish,rx:e.value.style.layout.candle.borderRadius,stroke:e.value.style.layout.candle.stroke,"stroke-width":e.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,je))),256))]),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:s.value.left+a*n.value,y:s.value.top,height:s.value.height<=0?1e-4:s.value.height,width:n.value<=0?1e-4:n.value,fill:S.value===a?`${e.value.style.layout.selector.color}${t.unref(i.opacity)[e.value.style.layout.selector.opacity]}`:"transparent",onMouseover:v=>ue(a,l),onMouseleave:u[0]||(u[0]=v=>{S.value=void 0,_.value=!1})},null,40,Xe))),256))])])):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"svg",{svg:r.value},void 0,!0)],14,be)):t.createCommentVNode("",!0),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ge.default,{key:3,config:{type:"candlesticks",style:{backgroundColor:e.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),e.value.style.zoom.show&&m.value?(t.openBlock(),t.createElementBlock("div",{key:4,ref_key:"chartSlicer",ref:R},[(t.openBlock(),t.createBlock(fe.Slicer,{key:`slicer_${F.value}`,background:e.value.style.zoom.color,borderColor:e.value.style.backgroundColor,fontSize:e.value.style.zoom.fontSize,useResetSlot:e.value.style.zoom.useResetSlot,labelLeft:g.dataset[d.value.start]?g.dataset[d.value.start][0]:g.dataset[0][0],labelRight:g.dataset[d.value.end-1]?g.dataset[d.value.end-1][0]:g.dataset.at(-1)[0],textColor:e.value.style.color,inputColor:e.value.style.zoom.color,selectColor:e.value.style.zoom.highlightColor,max:V.value,min:0,valueStart:d.value.start,valueEnd:d.value.end,start:d.value.start,"onUpdate:start":u[1]||(u[1]=l=>d.value.start=l),end:d.value.end,"onUpdate:end":u[2]||(u[2]=l=>d.value.end=l),onReset:ie},{"reset-action":t.withCtx(({reset:l})=>[t.renderSlot(o.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"]))],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"chartLegend",ref:L},[t.renderSlot(o.$slots,"legend",{legend:c.value},void 0,!0)],512),t.createVNode(he._sfc_main,{show:p.value.showTooltip&&_.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,parent:x.value,content:B.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(o.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...z.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(o.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...z.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),m.value?(t.openBlock(),t.createBlock(me.default,{key:5,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(pe.DataTable,{colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:u[3]||(u[3]=l=>p.value.showTable=!1)},{th:t.withCtx(({th:l})=>[t.createTextVNode(t.toDisplayString(l),1)]),td:t.withCtx(({td:l})=>[t.createElementVNode("div",{innerHTML:l},null,8,Ye)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ke))}},Ke=xe._export_sfc(Je,[["__scopeId","data-v-0ed64fca"]]);exports.default=Ke;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as h, ref as v, onMounted as Ae, onBeforeUnmount as Fe, openBlock as u, createElementBlock as s, normalizeClass as ve, normalizeStyle as H, createVNode as q, createCommentVNode as y, createBlock as O, unref as x, createSlots as Le, withCtx as f, renderSlot as m, normalizeProps as P, guardReactiveProps as M, createElementVNode as n, Fragment as N, renderList as S, toDisplayString as F, createTextVNode as Re, nextTick as Ve } from "vue";
|
|
2
|
-
import { u as Ie, c as Be, t as Oe, o as Pe, e as C, z as Me, X as Ue, s as U, A as Ee, r as We, v as De, w as Ge, n as Xe, q as je, B as ye } from "./index-
|
|
2
|
+
import { u as Ie, c as Be, t as Oe, o as Pe, e as C, z as Me, X as Ue, s as U, A as Ee, r as We, v as De, w as Ge, n as Xe, q as je, B as ye } from "./index-CGb3gF5A.js";
|
|
3
3
|
import { t as He, u as qe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Ye } from "./Title-
|
|
5
|
-
import { u as Je, U as Ke } from "./usePrinter-
|
|
6
|
-
import { _ as Qe } from "./Tooltip-
|
|
7
|
-
import { D as Ze } from "./DataTable-
|
|
8
|
-
import et from "./vue-ui-skeleton-
|
|
9
|
-
import { S as tt } from "./Slicer-
|
|
10
|
-
import lt from "./vue-ui-accordion-
|
|
11
|
-
import { u as ce } from "./useNestedProp-
|
|
4
|
+
import { _ as Ye } from "./Title-CfofmWzW.js";
|
|
5
|
+
import { u as Je, U as Ke } from "./usePrinter-VlAyPtaS.js";
|
|
6
|
+
import { _ as Qe } from "./Tooltip-cIpD1ChA.js";
|
|
7
|
+
import { D as Ze } from "./DataTable-BFsn-W_6.js";
|
|
8
|
+
import et from "./vue-ui-skeleton-B0udzFdQ.js";
|
|
9
|
+
import { S as tt } from "./Slicer-CBsGmIKc.js";
|
|
10
|
+
import lt from "./vue-ui-accordion-Br7xhAKF.js";
|
|
11
|
+
import { u as ce } from "./useNestedProp-DCBzUHfz.js";
|
|
12
12
|
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const at = ["id"], ut = ["xmlns", "viewBox"], st = { key: 0 }, it = ["id"], nt = ["stop-color"], rt = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ct = ["stop-color"], ht = ["stop-color"], pt = { key: 0 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bt = { key: 1 }, xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x", "y", "font-size", "fill", "font-weight"], kt = { key: 2 }, wt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = { key: 0 }, Ct = ["cx", "cy", "r", "fill"], Nt = ["cx", "cy", "r", "fill"], St = { key: 1 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x", "y", "height", "width", "fill", "rx"], Ft = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Lt = ["x", "y", "height", "width", "fill", "onMouseover"], Rt = ["innerHTML"], Vt = {
|
|
14
14
|
__name: "vue-ui-candlestick",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { useCssVars as ce, ref as o, onMounted as S, computed as A, watch as he, openBlock as i, createElementBlock as u, createElementVNode as O, normalizeStyle as v, unref as f, normalizeClass as be, createTextVNode as U, toDisplayString as E, renderSlot as p, Fragment as H, renderList as L, normalizeProps as V, guardReactiveProps as G, createCommentVNode as P, createBlock as oe, createSlots as fe, withCtx as T, nextTick as ge } from "vue";
|
|
2
|
+
import { u as me, c as ye, o as D, e as M, r as Ce, n as $e, q as ke } from "./index-CGb3gF5A.js";
|
|
3
|
+
import { u as xe } from "./useNestedProp-DCBzUHfz.js";
|
|
4
|
+
import { u as Ae, U as Te } from "./usePrinter-VlAyPtaS.js";
|
|
5
|
+
import we from "./vue-ui-skeleton-B0udzFdQ.js";
|
|
6
|
+
import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const Fe = ["id"], ze = ["height"], Oe = { key: 0 }, Pe = ["data-cell", "height"], Re = {
|
|
8
8
|
__name: "vue-ui-carousel-table",
|
|
9
9
|
props: {
|
|
10
10
|
config: {
|
|
@@ -20,123 +20,133 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
setup(r, { expose:
|
|
23
|
+
setup(r, { expose: ne }) {
|
|
24
24
|
const a = r;
|
|
25
|
-
|
|
26
|
-
"
|
|
25
|
+
ce((t) => ({
|
|
26
|
+
"7edf5604": t.tdo
|
|
27
27
|
}));
|
|
28
|
-
const { vue_ui_carousel_table:
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const { vue_ui_carousel_table: le } = me(), R = o(ye()), q = o(!1), g = o(!!a.dataset);
|
|
29
|
+
S(() => {
|
|
30
|
+
D(a.dataset) ? M({
|
|
31
31
|
componentName: "VueUiCarouselTable",
|
|
32
32
|
type: "dataset"
|
|
33
|
-
}) : ((!a.dataset.head ||
|
|
33
|
+
}) : ((!a.dataset.head || D(a.dataset.head)) && (M({
|
|
34
34
|
componentName: "VueUiCarouselTable",
|
|
35
35
|
type: "datasetAttribute",
|
|
36
36
|
property: "head"
|
|
37
|
-
}),
|
|
37
|
+
}), g.value = !1), (!a.dataset.body || D(a.dataset.body)) && (M({
|
|
38
38
|
componentName: "VueUiCarouselTable",
|
|
39
39
|
type: "datasetAttribute",
|
|
40
40
|
property: "body"
|
|
41
|
-
}),
|
|
41
|
+
}), g.value = !1));
|
|
42
42
|
});
|
|
43
|
-
const e =
|
|
43
|
+
const e = A(() => xe({
|
|
44
44
|
userConfig: a.config,
|
|
45
|
-
defaultConfig:
|
|
46
|
-
})), { isPrinting:
|
|
45
|
+
defaultConfig: le
|
|
46
|
+
})), { isPrinting: X, isImaging: j, generatePdf: ie, generateImage: J } = Ae({
|
|
47
47
|
elementId: `carousel-table_${R.value}`,
|
|
48
48
|
fileName: e.value.caption.text || "vue-ui-carousel-table"
|
|
49
49
|
}), d = o({
|
|
50
50
|
showAnimation: e.value.animation.use
|
|
51
|
-
}), w = o(null),
|
|
52
|
-
|
|
53
|
-
m.value && (
|
|
51
|
+
}), w = o(null), K = o(null), m = o(null), y = o(null), I = o(0), B = o(0), c = o(!1), Q = A(() => a.dataset.body ? e.value.tbody.tr.visible <= a.dataset.body.length ? e.value.tbody.tr.visible : a.dataset.body.length : 0), se = A(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * Q.value + I.value + B.value), ue = A(() => !a.dataset || !a.dataset.body || !a.dataset.head ? 0 : (a.dataset.body.length * (c.value ? a.dataset.head.length : 1) - Q.value) * (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2)), F = o(0), C = o(null), $ = o(0), b = o(!1), W = o(0);
|
|
52
|
+
S(() => {
|
|
53
|
+
m.value && (I.value = m.value.getBoundingClientRect().height), y.value && (B.value = y.value.getBoundingClientRect().height), d.value.showAnimation && Y();
|
|
54
54
|
});
|
|
55
|
-
function
|
|
56
|
-
q.value = t,
|
|
55
|
+
function re(t) {
|
|
56
|
+
q.value = t, W.value += 1;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
!C.value && !b.value && (C.value = requestAnimationFrame(
|
|
58
|
+
function Y() {
|
|
59
|
+
!C.value && !b.value && (C.value = requestAnimationFrame(Z));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Z(t) {
|
|
62
62
|
if (b.value) return;
|
|
63
|
-
$.value || ($.value = t), t - $.value >= e.value.animation.speedMs && (
|
|
64
|
-
top:
|
|
63
|
+
$.value || ($.value = t), t - $.value >= e.value.animation.speedMs && (F.value += e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size, F.value > ue.value && (F.value = 0), w.value.scrollTo({
|
|
64
|
+
top: F.value,
|
|
65
65
|
behavior: "smooth"
|
|
66
|
-
}), $.value = t), C.value = requestAnimationFrame(
|
|
66
|
+
}), $.value = t), C.value = requestAnimationFrame(Z);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function k() {
|
|
69
69
|
b.value = !0, cancelAnimationFrame(C.value), C.value = null;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
!b.value || !d.value.showAnimation || (b.value = !1, $.value = 0,
|
|
71
|
+
function x() {
|
|
72
|
+
!b.value || !d.value.showAnimation || (b.value = !1, $.value = 0, Y());
|
|
73
|
+
}
|
|
74
|
+
function de() {
|
|
75
|
+
e.value.animation.pauseOnHover && k();
|
|
76
|
+
}
|
|
77
|
+
const N = o(null);
|
|
78
|
+
function ve() {
|
|
79
|
+
k(), clearTimeout(N.value);
|
|
73
80
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
81
|
+
function _() {
|
|
82
|
+
clearTimeout(N.value), N.value = setTimeout(x, 1e3);
|
|
76
83
|
}
|
|
77
|
-
|
|
84
|
+
he(
|
|
78
85
|
() => e.value.animation.use,
|
|
79
86
|
(t) => {
|
|
80
|
-
t ? (d.value.showAnimation = !0,
|
|
87
|
+
t ? (d.value.showAnimation = !0, x()) : (d.value.showAnimation = !1, k());
|
|
81
88
|
}
|
|
82
89
|
);
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
const t = new ResizeObserver((
|
|
86
|
-
|
|
87
|
-
c.value =
|
|
88
|
-
}),
|
|
90
|
+
const pe = A(() => e.value.responsiveBreakpoint);
|
|
91
|
+
S(() => {
|
|
92
|
+
const t = new ResizeObserver((n) => {
|
|
93
|
+
n.forEach((l) => {
|
|
94
|
+
c.value = l.contentRect.width < pe.value;
|
|
95
|
+
}), I.value = m.value ? m.value.getBoundingClientRect().height : 0, B.value = y.value ? y.value.getBoundingClientRect().height : 0;
|
|
89
96
|
});
|
|
90
97
|
w.value && t.observe(w.value);
|
|
91
98
|
});
|
|
92
|
-
function
|
|
93
|
-
|
|
99
|
+
function ee() {
|
|
100
|
+
ie();
|
|
94
101
|
}
|
|
95
|
-
function
|
|
96
|
-
d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ?
|
|
102
|
+
function te() {
|
|
103
|
+
d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ? x() : k();
|
|
97
104
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
const t = a.dataset.head.map((
|
|
105
|
+
function ae() {
|
|
106
|
+
ge(() => {
|
|
107
|
+
const t = a.dataset.head.map((s, h) => [
|
|
101
108
|
[a.dataset.body[h]]
|
|
102
|
-
]),
|
|
109
|
+
]), n = [
|
|
103
110
|
[e.value.caption.text],
|
|
104
|
-
[a.dataset.head.map((
|
|
105
|
-
].concat(t),
|
|
106
|
-
|
|
107
|
-
csvContent:
|
|
111
|
+
[a.dataset.head.map((s) => [s])]
|
|
112
|
+
].concat(t), l = $e(n);
|
|
113
|
+
ke({
|
|
114
|
+
csvContent: l,
|
|
108
115
|
title: e.value.caption.text || "vue-ui-carousel-table"
|
|
109
116
|
});
|
|
110
117
|
});
|
|
111
118
|
}
|
|
112
|
-
return
|
|
113
|
-
pauseAnimation:
|
|
114
|
-
resumeAnimation:
|
|
115
|
-
toggleAnimation:
|
|
116
|
-
generateCsv:
|
|
117
|
-
generatePdf:
|
|
118
|
-
generateImage:
|
|
119
|
-
}), (t,
|
|
119
|
+
return ne({
|
|
120
|
+
pauseAnimation: k,
|
|
121
|
+
resumeAnimation: x,
|
|
122
|
+
toggleAnimation: te,
|
|
123
|
+
generateCsv: ae,
|
|
124
|
+
generatePdf: ee,
|
|
125
|
+
generateImage: J
|
|
126
|
+
}), (t, n) => (i(), u("div", {
|
|
120
127
|
style: { position: "relative", overflow: "visible" },
|
|
121
128
|
ref_key: "chartContainer",
|
|
122
|
-
ref:
|
|
129
|
+
ref: K
|
|
123
130
|
}, [
|
|
124
131
|
O("div", {
|
|
125
132
|
ref_key: "tableContainer",
|
|
126
133
|
ref: w,
|
|
127
134
|
id: `carousel-table_${R.value}`,
|
|
128
135
|
style: v({
|
|
129
|
-
height:
|
|
136
|
+
height: f(X) || f(j) ? "auto" : `${se.value}px`,
|
|
130
137
|
containerType: "inline-size",
|
|
131
138
|
position: "relative",
|
|
132
139
|
overflow: "auto",
|
|
133
140
|
fontFamily: e.value.fontFamily
|
|
134
141
|
}),
|
|
135
|
-
class:
|
|
136
|
-
onMouseenter:
|
|
137
|
-
onMouseleave:
|
|
142
|
+
class: be({ "vue-ui-responsive": c.value, "is-playing": !b.value }),
|
|
143
|
+
onMouseenter: n[0] || (n[0] = (l) => de()),
|
|
144
|
+
onMouseleave: n[1] || (n[1] = (l) => x()),
|
|
145
|
+
onTouchstart: n[2] || (n[2] = (l) => ve()),
|
|
146
|
+
onTouchend: n[3] || (n[3] = (l) => _()),
|
|
147
|
+
onTouchcancel: n[4] || (n[4] = (l) => _())
|
|
138
148
|
}, [
|
|
139
|
-
|
|
149
|
+
g.value ? (i(), u("table", {
|
|
140
150
|
key: 0,
|
|
141
151
|
class: "vue-data-ui-carousel-table",
|
|
142
152
|
style: v({
|
|
@@ -164,11 +174,11 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
|
|
|
164
174
|
minHeight: "36px"
|
|
165
175
|
})
|
|
166
176
|
}, [
|
|
167
|
-
|
|
177
|
+
U(E(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
|
|
168
178
|
p(t.$slots, "caption", {}, void 0, !0)
|
|
169
179
|
], 4),
|
|
170
180
|
O("thead", {
|
|
171
|
-
style: v({ ...e.value.thead.style, position: "sticky", top: `${
|
|
181
|
+
style: v({ ...e.value.thead.style, position: "sticky", top: `${I.value}px`, zIndex: 1 })
|
|
172
182
|
}, [
|
|
173
183
|
O("tr", {
|
|
174
184
|
ref_key: "tableRow",
|
|
@@ -181,9 +191,9 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
|
|
|
181
191
|
}),
|
|
182
192
|
height: `${e.value.thead.tr.height}px`
|
|
183
193
|
}, [
|
|
184
|
-
(
|
|
194
|
+
(i(!0), u(H, null, L(r.dataset.head, (l, s) => (i(), u("th", {
|
|
185
195
|
role: "cell",
|
|
186
|
-
key: `th_${
|
|
196
|
+
key: `th_${s}`,
|
|
187
197
|
style: v({
|
|
188
198
|
...e.value.thead.tr.th.style,
|
|
189
199
|
border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
|
|
@@ -193,25 +203,25 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
|
|
|
193
203
|
paddingLeft: e.value.thead.tr.th.padding.left + "px"
|
|
194
204
|
})
|
|
195
205
|
}, [
|
|
196
|
-
|
|
197
|
-
p(t.$slots, "th",
|
|
206
|
+
U(E(t.$slots.th ? "" : l) + " ", 1),
|
|
207
|
+
p(t.$slots, "th", V(G({ th: l, colIndex: s })), void 0, !0)
|
|
198
208
|
], 4))), 128))
|
|
199
|
-
], 12,
|
|
209
|
+
], 12, ze)
|
|
200
210
|
], 4),
|
|
201
|
-
r.dataset.body && r.dataset.head ? (
|
|
202
|
-
(
|
|
211
|
+
r.dataset.body && r.dataset.head ? (i(), u("tbody", Oe, [
|
|
212
|
+
(i(!0), u(H, null, L(r.dataset.body, (l, s) => (i(), u("tr", {
|
|
203
213
|
style: v({
|
|
204
214
|
...e.value.tbody.tr.style,
|
|
205
215
|
border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`
|
|
206
216
|
})
|
|
207
217
|
}, [
|
|
208
|
-
(
|
|
218
|
+
(i(!0), u(H, null, L(l, (h, z) => (i(), u("td", {
|
|
209
219
|
role: "cell",
|
|
210
220
|
"data-cell": c.value && r.dataset.head[z].length > 50 ? r.dataset.head[z].slice(0, 50) + "..." : r.dataset.head[z] || "",
|
|
211
221
|
style: v({
|
|
212
222
|
...e.value.tbody.tr.td.style,
|
|
213
223
|
border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
|
|
214
|
-
backgroundColor: e.value.tbody.tr.td.style.backgroundColor +
|
|
224
|
+
backgroundColor: e.value.tbody.tr.td.style.backgroundColor + f(Ce)[s % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
|
|
215
225
|
paddingTop: e.value.tbody.tr.td.padding.top + "px",
|
|
216
226
|
paddingRight: e.value.tbody.tr.td.padding.right + "px",
|
|
217
227
|
paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
|
|
@@ -219,26 +229,26 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
|
|
|
219
229
|
}),
|
|
220
230
|
height: `${e.value.tbody.tr.height}px`
|
|
221
231
|
}, [
|
|
222
|
-
|
|
223
|
-
p(t.$slots, "td",
|
|
224
|
-
], 12,
|
|
232
|
+
U(E(t.$slots.td ? "" : c.value && typeof h == "string" ? h.slice(0, 30) + "..." : h) + " ", 1),
|
|
233
|
+
p(t.$slots, "td", V(G({ td: h, rowIndex: s, colIndex: z })), void 0, !0)
|
|
234
|
+
], 12, Pe))), 256))
|
|
225
235
|
], 4))), 256))
|
|
226
236
|
])) : P("", !0)
|
|
227
237
|
], 4)) : P("", !0)
|
|
228
|
-
], 46,
|
|
229
|
-
|
|
238
|
+
], 46, Fe),
|
|
239
|
+
g.value ? P("", !0) : (i(), oe(we, {
|
|
230
240
|
key: 0,
|
|
231
241
|
config: {
|
|
232
242
|
type: "table"
|
|
233
243
|
}
|
|
234
244
|
})),
|
|
235
|
-
e.value.userOptions.show &&
|
|
245
|
+
e.value.userOptions.show && g.value ? (i(), oe(Te, {
|
|
236
246
|
ref: "details",
|
|
237
|
-
key: `user_option_${
|
|
247
|
+
key: `user_option_${W.value}`,
|
|
238
248
|
backgroundColor: e.value.style.backgroundColor,
|
|
239
249
|
color: e.value.style.color,
|
|
240
|
-
isPrinting:
|
|
241
|
-
isImaging:
|
|
250
|
+
isPrinting: f(X),
|
|
251
|
+
isImaging: f(j),
|
|
242
252
|
uid: R.value,
|
|
243
253
|
hasTooltip: !1,
|
|
244
254
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -250,55 +260,55 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
|
|
|
250
260
|
isAnimation: !d.value.showAnimation,
|
|
251
261
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
252
262
|
isFullscreen: q.value,
|
|
253
|
-
chartElement:
|
|
263
|
+
chartElement: K.value,
|
|
254
264
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
255
265
|
zIndex: 3,
|
|
256
266
|
noOffset: "",
|
|
257
|
-
onGeneratePdf:
|
|
258
|
-
onGenerateCsv:
|
|
259
|
-
onGenerateImage:
|
|
260
|
-
onToggleAnimation:
|
|
261
|
-
onToggleFullscreen:
|
|
262
|
-
},
|
|
267
|
+
onGeneratePdf: ee,
|
|
268
|
+
onGenerateCsv: ae,
|
|
269
|
+
onGenerateImage: f(J),
|
|
270
|
+
onToggleAnimation: te,
|
|
271
|
+
onToggleFullscreen: re
|
|
272
|
+
}, fe({ _: 2 }, [
|
|
263
273
|
t.$slots.optionPdf ? {
|
|
264
274
|
name: "optionPdf",
|
|
265
|
-
fn:
|
|
275
|
+
fn: T(() => [
|
|
266
276
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
267
277
|
]),
|
|
268
278
|
key: "0"
|
|
269
279
|
} : void 0,
|
|
270
280
|
t.$slots.optionCsv ? {
|
|
271
281
|
name: "optionCsv",
|
|
272
|
-
fn:
|
|
282
|
+
fn: T(() => [
|
|
273
283
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
274
284
|
]),
|
|
275
285
|
key: "1"
|
|
276
286
|
} : void 0,
|
|
277
287
|
t.$slots.optionImg ? {
|
|
278
288
|
name: "optionImg",
|
|
279
|
-
fn:
|
|
289
|
+
fn: T(() => [
|
|
280
290
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
281
291
|
]),
|
|
282
292
|
key: "2"
|
|
283
293
|
} : void 0,
|
|
284
294
|
t.$slots.optionAnimation ? {
|
|
285
295
|
name: "optionAnimation",
|
|
286
|
-
fn:
|
|
296
|
+
fn: T(() => [
|
|
287
297
|
p(t.$slots, "optionAnimation", {}, void 0, !0)
|
|
288
298
|
]),
|
|
289
299
|
key: "3"
|
|
290
300
|
} : void 0,
|
|
291
301
|
t.$slots.optionFullscreen ? {
|
|
292
302
|
name: "optionFullscreen",
|
|
293
|
-
fn:
|
|
294
|
-
p(t.$slots, "optionFullscreen",
|
|
303
|
+
fn: T(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
304
|
+
p(t.$slots, "optionFullscreen", V(G({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
295
305
|
]),
|
|
296
306
|
key: "4"
|
|
297
307
|
} : void 0
|
|
298
308
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "titles", "onGenerateImage"])) : P("", !0)
|
|
299
309
|
], 512));
|
|
300
310
|
}
|
|
301
|
-
},
|
|
311
|
+
}, Le = /* @__PURE__ */ Ie(Re, [["__scopeId", "data-v-9515a3e8"]]);
|
|
302
312
|
export {
|
|
303
|
-
|
|
313
|
+
Le as default
|
|
304
314
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DFXgoR1T.cjs"),W=require("./useNestedProp-CbZUIZc0.cjs"),H=require("./usePrinter-DoFYRZKM.cjs"),Y=require("./vue-ui-skeleton-CmABeGyu.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=["id"],ee=["height"],te={key:0},oe=["data-cell","height"],ae={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(u,{expose:U}){const a=u;e.useCssVars(o=>({"7edf5604":o.tdo}));const{vue_ui_carousel_table:M}=r.useConfig(),w=e.ref(r.createUid()),A=e.ref(!1),p=e.ref(!!a.dataset);e.onMounted(()=>{r.objectIsEmpty(a.dataset)?r.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!a.dataset.head||r.objectIsEmpty(a.dataset.head))&&(r.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),p.value=!1),(!a.dataset.body||r.objectIsEmpty(a.dataset.body))&&(r.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),p.value=!1))});const t=e.computed(()=>W.useNestedProp({userConfig:a.config,defaultConfig:M})),{isPrinting:z,isImaging:S,generatePdf:D,generateImage:I}=H.usePrinter({elementId:`carousel-table_${w.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),s=e.ref({showAnimation:t.value.animation.use}),k=e.ref(null),P=e.ref(null),f=e.ref(null),m=e.ref(null),C=e.ref(0),T=e.ref(0),d=e.ref(!1),F=e.computed(()=>a.dataset.body?t.value.tbody.tr.visible<=a.dataset.body.length?t.value.tbody.tr.visible:a.dataset.body.length:0),G=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)*F.value+C.value+T.value),j=e.computed(()=>!a.dataset||!a.dataset.body||!a.dataset.head?0:(a.dataset.body.length*(d.value?a.dataset.head.length:1)-F.value)*(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)),$=e.ref(0),h=e.ref(null),b=e.ref(0),c=e.ref(!1),E=e.ref(0);e.onMounted(()=>{f.value&&(C.value=f.value.getBoundingClientRect().height),m.value&&(T.value=m.value.getBoundingClientRect().height),s.value.showAnimation&&N()});function X(o){A.value=o,E.value+=1}function N(){!h.value&&!c.value&&(h.value=requestAnimationFrame(O))}function O(o){if(c.value)return;b.value||(b.value=o),o-b.value>=t.value.animation.speedMs&&($.value+=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,$.value>j.value&&($.value=0),k.value.scrollTo({top:$.value,behavior:"smooth"}),b.value=o),h.value=requestAnimationFrame(O)}function g(){c.value=!0,cancelAnimationFrame(h.value),h.value=null}function y(){!c.value||!s.value.showAnimation||(c.value=!1,b.value=0,N())}function J(){t.value.animation.pauseOnHover&&g()}const B=e.ref(null);function K(){g(),clearTimeout(B.value)}function R(){clearTimeout(B.value),B.value=setTimeout(y,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(s.value.showAnimation=!0,y()):(s.value.showAnimation=!1,g())});const Q=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(l=>{d.value=l.contentRect.width<Q.value}),C.value=f.value?f.value.getBoundingClientRect().height:0,T.value=m.value?m.value.getBoundingClientRect().height:0});k.value&&o.observe(k.value)});function V(){D()}function L(){s.value.showAnimation=!s.value.showAnimation,s.value.showAnimation?y():g()}function q(){e.nextTick(()=>{const o=a.dataset.head.map((i,v)=>[[a.dataset.body[v]]]),n=[[t.value.caption.text],[a.dataset.head.map(i=>[i])]].concat(o),l=r.createCsvContent(n);r.downloadCsv({csvContent:l,title:t.value.caption.text||"vue-ui-carousel-table"})})}return U({pauseAnimation:g,resumeAnimation:y,toggleAnimation:L,generateCsv:q,generatePdf:V,generateImage:I}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:P},[e.createElementVNode("div",{ref_key:"tableContainer",ref:k,id:`carousel-table_${w.value}`,style:e.normalizeStyle({height:e.unref(z)||e.unref(S)?"auto":`${G.value}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":d.value,"is-playing":!c.value}),onMouseenter:n[0]||(n[0]=l=>J()),onMouseleave:n[1]||(n[1]=l=>y()),onTouchstart:n[2]||(n[2]=l=>K()),onTouchend:n[3]||(n[3]=l=>R()),onTouchcancel:n[4]||(n[4]=l=>R())},[p.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"})},[e.createElementVNode("caption",{ref_key:"caption",ref:f,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:d.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px"})},[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:`${C.value}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:m,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:d.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(u.dataset.head,(l,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?"":l)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:l,colIndex:i})),void 0,!0)],4))),128))],12,ee)],4),u.dataset.body&&u.dataset.head?(e.openBlock(),e.createElementBlock("tbody",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.dataset.body,(l,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}`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,(v,x)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":d.value&&u.dataset.head[x].length>50?u.dataset.head[x].slice(0,50)+"...":u.dataset.head[x]||"",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:t.value.tbody.tr.td.style.backgroundColor+e.unref(r.opacity)[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"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":d.value&&typeof v=="string"?v.slice(0,30)+"...":v)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:v,rowIndex:i,colIndex:x})),void 0,!0)],12,oe))),256))],4))),256))])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,_),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Y.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(H.UserOptions,{ref:"details",key:`user_option_${E.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(z),isImaging:e.unref(S),uid:w.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:!s.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:A.value,chartElement:P.value,titles:{...t.value.userOptions.buttonTitles},zIndex:3,noOffset:"",onGeneratePdf:V,onGenerateCsv:q,onGenerateImage:e.unref(I),onToggleAnimation:L,onToggleFullscreen:X},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:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","titles","onGenerateImage"])):e.createCommentVNode("",!0)],512))}},ne=Z._export_sfc(ae,[["__scopeId","data-v-9515a3e8"]]);exports.default=ne;
|