vue-data-ui 3.1.18 → 3.1.19-next.1
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-BC5klzOh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CkjMZyIs.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-BPiT94Lb.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-bx5e2RB2.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-CywujQw9.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-h35dp0Qf.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CvnlQ378.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-BzGzkGiC.js → PackageVersion-B6W-zkH-.js} +3 -3
- package/dist/{PenAndPaper-Deh70G9d.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-sVxD_SDm.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-CQB967He.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-DFRSPT3_.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-B_WMW2Bp.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-Db9jy0Iu.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CtECQwBN.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-BHpS3cMi.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-BArHHegM.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D1L3r23x.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DeqXeTNw.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-nFj0xF0a.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/{vue-data-ui-DcBYykse.js → vue-data-ui-DfcfqSDl.js} +64 -64
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-DKkCWxob.js} +58 -57
- package/dist/{vue-ui-accordion-7cfJUVx5.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BXMIUNB_.js → vue-ui-age-pyramid-gGF4DSOi.js} +28 -27
- package/dist/{vue-ui-annotator-aCDhQ-m2.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-Cd_iix-z.js → vue-ui-bullet-Coqi_swO.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-C78EYmhY.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-B7i_eOe9.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-QzsKNF-J.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-BxiWe3MD.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-C3TZdbF1.js} +75 -74
- package/dist/{vue-ui-cursor-DJQWAIj8.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CIACUYB-.js → vue-ui-dashboard-Dh0EyLe8.js} +68 -68
- package/dist/{vue-ui-digits-CLV8h-P8.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-sO6G5oor.js → vue-ui-donut-DTJCIEig.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DYJmrFDC.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-COm32YHr.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-BD2XeR-d.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-Cy9J1JpW.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-KyUZ5tNb.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-BpXYJd5z.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-DM3wSOOe.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-B2NzGPtL.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BTnau6bc.js} +105 -104
- package/dist/{vue-ui-kpi-CfX-zUDS.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-C1nANuMy.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-BU7T1ysb.js → vue-ui-molecule-8oQQTCN2.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-B3ZrQSqP.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BoUb_OX8.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-xprTPjVq.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-Cpzi3BO0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-BC99Cua7.js → vue-ui-quadrant-CHTnDwZ7.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-zJyIT4di.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-B5QRDHJ1.js} +90 -89
- package/dist/{vue-ui-rating-BNCKLcCa.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-CYFQcAgc.js → vue-ui-relation-circle-DStHH_sz.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-VI1I1k9W.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-D26TgYmU.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-9CX5JEVI.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-0yto3ZRt.js} +5 -5
- package/dist/{vue-ui-smiley-t16dEIoQ.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/{vue-ui-spark-trend-DskdjYw4.js → vue-ui-spark-trend-13xDAi4U.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DBMeKvSW.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-febkbzOk.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-rc9uWj4C.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BpZKuk92.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-DuOsScHl.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-BsdEyuPC.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-Dem6Qr7N.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-Dds0EE_Q.js} +9 -8
- package/dist/{vue-ui-table-heatmap-BfXe_f0K.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DyrnPNGv.js → vue-ui-table-sparkline-DcHLIhbA.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-DZwSnX7w.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-BVmo70Ts.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-Cr6Fy7Sq.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-DiKGxMUR.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-D3_W8WLN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CoVrrxzt.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-Cwl-WsK2.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-L-58-uVD.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-CaA-eKMJ.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-Bm2SYaTT.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-2Vg9eVqi.js} +166 -165
- package/package.json +14 -11
- package/dist/index-smzxfsyV.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DeKmJzsE.js +0 -13
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineAsyncComponent as W, ref as c, computed as f, onMounted as Ie, toRefs as Pe, watch as ce, onBeforeUnmount as Fe, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as D, normalizeClass as ve, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Te, withCtx as A, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as He, Fragment as V, renderList as G, toDisplayString as H, Teleport as Me } from "vue";
|
|
2
|
-
import { u as Re,
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import { u as Re, a as he } from "./useNestedProp-DF7e2h1z.js";
|
|
3
|
+
import { c as ze, t as Ne, m as Ee, E as Ue, h as We, a as M, d as R, X as De, o as de, f as ge, g as Ve } from "./lib-p5pfHmOX.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-Yeu5jOfm.js";
|
|
5
|
+
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as qe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { t as Xe } from "./themes-D3cUNuKw.js";
|
|
8
|
+
import Ye from "./Legend-_Rv594VS.js";
|
|
9
|
+
import Je from "./Title-pI68ZJsq.js";
|
|
10
|
+
import Ke from "./img-CH7J0fYg.js";
|
|
10
11
|
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
11
12
|
import { u as et, B as tt } from "./BaseScanner-BgWxam9d.js";
|
|
12
13
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -39,7 +40,7 @@ const lt = ["id"], st = {
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
setup(fe, { expose: me }) {
|
|
42
|
-
const ye = W(() => import("./PackageVersion-
|
|
43
|
+
const ye = W(() => import("./PackageVersion-B6W-zkH-.js")), pe = W(() => import("./PenAndPaper-CtDMyIvW.js")), be = W(() => import("./UserOptions-Bn3u4JQu.js")), { vue_ui_bullet: ke } = Re(), O = fe, y = c(null), j = c(null), q = c(0), X = c(null), Y = c(null), we = c(0), C = c(null), B = c(null), J = c(!1), b = f({
|
|
43
44
|
get: () => i.value.hasOwnProperty("value"),
|
|
44
45
|
set: (t) => t
|
|
45
46
|
}), L = f(() => i.value.segments ? Array.isArray(i.value.segments) ? i.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
@@ -77,7 +78,7 @@ segments: [
|
|
|
77
78
|
]
|
|
78
79
|
`), b.value = !1, !1)), K = f(() => !!e.value.debug);
|
|
79
80
|
function Q() {
|
|
80
|
-
if (
|
|
81
|
+
if (de(i.value) ? (ge({
|
|
81
82
|
componentName: "VueUiBullet",
|
|
82
83
|
type: "dataset",
|
|
83
84
|
debug: K.value
|
|
@@ -86,7 +87,7 @@ segments: [
|
|
|
86
87
|
datasetObject: t,
|
|
87
88
|
requiredAttributes: ["name", "from", "to"]
|
|
88
89
|
}).forEach((a) => {
|
|
89
|
-
b.value = !1,
|
|
90
|
+
b.value = !1, ge({
|
|
90
91
|
componentName: "VueUiBullet segment",
|
|
91
92
|
type: "datasetSerieAttribute",
|
|
92
93
|
property: a,
|
|
@@ -94,7 +95,7 @@ segments: [
|
|
|
94
95
|
debug: K.value
|
|
95
96
|
});
|
|
96
97
|
});
|
|
97
|
-
}) : (b.value = !1, S.value = !0),
|
|
98
|
+
}) : (b.value = !1, S.value = !0), de(i.value) || (S.value = e.value.loading), e.value.responsive) {
|
|
98
99
|
const t = Qe(() => {
|
|
99
100
|
const { width: s, height: a } = Ze({
|
|
100
101
|
chart: y.value,
|
|
@@ -115,13 +116,13 @@ segments: [
|
|
|
115
116
|
});
|
|
116
117
|
const p = c(ze());
|
|
117
118
|
function z() {
|
|
118
|
-
const t =
|
|
119
|
+
const t = he({
|
|
119
120
|
userConfig: O.config,
|
|
120
121
|
defaultConfig: ke
|
|
121
122
|
});
|
|
122
123
|
return t.theme ? {
|
|
123
|
-
...
|
|
124
|
-
userConfig:
|
|
124
|
+
...he({
|
|
125
|
+
userConfig: Xe.vue_ui_bullet[t.theme] || O.config,
|
|
125
126
|
defaultConfig: t
|
|
126
127
|
})
|
|
127
128
|
} : t;
|
|
@@ -174,7 +175,7 @@ segments: [
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
})
|
|
177
|
-
}), { userOptionsVisible: N, setUserOptionsVisibility: Z, keepUserOptionState: ee } =
|
|
178
|
+
}), { userOptionsVisible: N, setUserOptionsVisibility: Z, keepUserOptionState: ee } = je({ config: e.value }), { svgRef: te } = qe({ config: e.value.style.chart.title });
|
|
178
179
|
ce(() => O.config, (t) => {
|
|
179
180
|
k.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, Q(), q.value += 1;
|
|
180
181
|
}, { deep: !0 });
|
|
@@ -197,9 +198,9 @@ segments: [
|
|
|
197
198
|
if (!L.value) return [];
|
|
198
199
|
const t = [];
|
|
199
200
|
for (let s = 0; s < i.value.segments.length; s += 1)
|
|
200
|
-
t.push(
|
|
201
|
+
t.push(Ee(e.value.style.chart.segments.baseColor, s / i.value.segments.length));
|
|
201
202
|
return t;
|
|
202
|
-
}),
|
|
203
|
+
}), E = f(() => L.value ? {
|
|
203
204
|
min: Math.min(...i.value.segments.map((t) => t.from)),
|
|
204
205
|
max: Math.max(...i.value.segments.map((t) => t.to))
|
|
205
206
|
} : { min: 0, max: 1 }), h = c(Ce());
|
|
@@ -207,7 +208,7 @@ segments: [
|
|
|
207
208
|
t.hasOwnProperty("value") && (S.value = !1), e.value.style.chart.animation.show && !k.value ? le(t.value || 0) : h.value = t.value || 0;
|
|
208
209
|
}, { deep: !0 });
|
|
209
210
|
function Ce() {
|
|
210
|
-
return e.value.style.chart.animation.show && !k.value ?
|
|
211
|
+
return e.value.style.chart.animation.show && !k.value ? E.value.min : i.value.value || 0;
|
|
211
212
|
}
|
|
212
213
|
const ae = c(null);
|
|
213
214
|
function le(t) {
|
|
@@ -223,7 +224,7 @@ segments: [
|
|
|
223
224
|
const d = f(() => {
|
|
224
225
|
if (!L.value)
|
|
225
226
|
return [];
|
|
226
|
-
const t =
|
|
227
|
+
const t = Ue(E.value.min, E.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
227
228
|
x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
228
229
|
}, g = {
|
|
229
230
|
width: (h.value + s) / (t.max + s) * l.value.chartWidth
|
|
@@ -278,7 +279,7 @@ segments: [
|
|
|
278
279
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
279
280
|
paddingBottom: 6,
|
|
280
281
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
281
|
-
})), { isPrinting: re, isImaging: oe, generatePdf: ne, generateImage: ue } =
|
|
282
|
+
})), { isPrinting: re, isImaging: oe, generatePdf: ne, generateImage: ue } = Ge({
|
|
282
283
|
elementId: `bullet_${p.value}`,
|
|
283
284
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
284
285
|
options: e.value.userOptions.print
|
|
@@ -290,7 +291,7 @@ segments: [
|
|
|
290
291
|
return d.value;
|
|
291
292
|
}
|
|
292
293
|
const P = c(!1);
|
|
293
|
-
function
|
|
294
|
+
function U() {
|
|
294
295
|
P.value = !P.value;
|
|
295
296
|
}
|
|
296
297
|
async function Be({ scale: t = 2 } = {}) {
|
|
@@ -310,7 +311,7 @@ segments: [
|
|
|
310
311
|
getImage: Be,
|
|
311
312
|
generatePdf: ne,
|
|
312
313
|
generateImage: ue,
|
|
313
|
-
toggleAnnotator:
|
|
314
|
+
toggleAnnotator: U,
|
|
314
315
|
toggleFullscreen: ie
|
|
315
316
|
}), (t, s) => (r(), n("div", {
|
|
316
317
|
ref_key: "bulletChart",
|
|
@@ -327,7 +328,7 @@ segments: [
|
|
|
327
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
328
329
|
color: e.value.style.chart.color,
|
|
329
330
|
active: P.value,
|
|
330
|
-
onClose:
|
|
331
|
+
onClose: U
|
|
331
332
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
332
333
|
$e.value ? (r(), n("div", st, null, 512)) : u("", !0),
|
|
333
334
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
@@ -380,7 +381,7 @@ segments: [
|
|
|
380
381
|
onToggleFullscreen: ie,
|
|
381
382
|
onGeneratePdf: o(ne),
|
|
382
383
|
onGenerateImage: o(ue),
|
|
383
|
-
onToggleAnnotator:
|
|
384
|
+
onToggleAnnotator: U,
|
|
384
385
|
style: D({
|
|
385
386
|
visibility: o(ee) ? o(N) ? "visible" : "hidden" : "visible"
|
|
386
387
|
})
|
|
@@ -578,7 +579,7 @@ segments: [
|
|
|
578
579
|
o(k) ? (r(), x(tt, { key: 7 })) : u("", !0)
|
|
579
580
|
], 46, lt));
|
|
580
581
|
}
|
|
581
|
-
},
|
|
582
|
+
}, Mt = /* @__PURE__ */ at(xt, [["__scopeId", "data-v-cf97848f"]]);
|
|
582
583
|
export {
|
|
583
|
-
|
|
584
|
+
Mt as default
|
|
584
585
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineAsyncComponent as R, computed as g, ref as r, toRefs as Vt, watch as te, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Qe, watchEffect as Ut, nextTick as we, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ae, normalizeClass as T, createBlock as N, createCommentVNode as p, createElementVNode as y, createVNode as Ce, createSlots as Ze, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as E, Fragment as V, renderList as M, toDisplayString as Y, resolveDynamicComponent as Wt, mergeProps as Ht, createTextVNode as et } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { t as at, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
2
|
+
import { c as Gt, t as Xt, D as le, o as tt, f as U, E as jt, q, d as L, X as Yt, i as ae, s as qt, F as lt, x as Jt, y as Kt, z as Qt, A as Zt } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as at, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as tl, a as ot } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as ll } from "./usePrinter-Yeu5jOfm.js";
|
|
6
|
+
import { u as al, B as ol } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as sl } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as ul } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as il } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as nl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import rl from "./img-CH7J0fYg.js";
|
|
12
|
+
import vl from "./Title-pI68ZJsq.js";
|
|
13
|
+
import { t as dl } from "./themes-D3cUNuKw.js";
|
|
14
|
+
import { S as cl } from "./Slicer-BgpOhmb6.js";
|
|
14
15
|
import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
16
|
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "width", "height"], pl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], zl = { key: 0 }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Dl = ["cx", "cy", "r", "fill"], Pl = ["cx", "cy", "r", "fill"], Nl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"], El = ["x", "y", "width", "height", "fill", "rx"], Vl = ["x", "y", "height", "width", "fill", "rx"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Wl = {
|
|
16
17
|
key: 4,
|
|
@@ -32,7 +33,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
setup(st, { expose: ut }) {
|
|
35
|
-
const it = R(() => import("./BaseIcon-
|
|
36
|
+
const it = R(() => import("./BaseIcon-D2f9w5Z5.js")), nt = R(() => import("./Tooltip-Clf2K3CF.js")), rt = R(() => import("./vue-ui-accordion-D-L73-T2.js")), vt = R(() => import("./DataTable-xISHA7Pu.js")), dt = R(() => import("./PenAndPaper-CtDMyIvW.js")), ct = R(() => import("./UserOptions-Bn3u4JQu.js")), yt = R(() => import("./PackageVersion-B6W-zkH-.js")), ht = R(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_candlestick: ft } = tl(), h = st, oe = g(() => !!h.dataset && h.dataset.length), z = r(!1), se = r(null), A = r(Gt()), ue = r(!1), ie = r(""), ne = r(void 0), _e = r(0), $ = r(null), ze = r(null), $e = r(null), Se = r(null), Te = r(null), Le = r(null), J = r(0), Ie = r(0), Re = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(ye()), { loading: S, FINAL_DATASET: C, manualLoading: de } = al({
|
|
36
37
|
...Vt(h),
|
|
37
38
|
FINAL_CONFIG: e,
|
|
38
39
|
prepareConfig: ye,
|
|
@@ -55,7 +56,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
55
56
|
[17304192e5, 890, 2330, 550, 1950, 3770],
|
|
56
57
|
[17330112e5, 1440, 3770, 890, 3200, 5100]
|
|
57
58
|
],
|
|
58
|
-
skeletonConfig:
|
|
59
|
+
skeletonConfig: Xt({
|
|
59
60
|
defaultConfig: e.value,
|
|
60
61
|
userConfig: {
|
|
61
62
|
useCssAnimation: !1,
|
|
@@ -96,7 +97,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
})
|
|
99
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility: Fe, keepUserOptionState: Oe } =
|
|
100
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Fe, keepUserOptionState: Oe } = ul({ config: e.value }), { svgRef: De } = il({ config: e.value.style.title });
|
|
100
101
|
function ye() {
|
|
101
102
|
const t = ot({
|
|
102
103
|
userConfig: h.config,
|
|
@@ -105,7 +106,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
105
106
|
let a = {};
|
|
106
107
|
return t.theme ? a = {
|
|
107
108
|
...ot({
|
|
108
|
-
userConfig:
|
|
109
|
+
userConfig: dl.vue_ui_candlestick[t.theme] || h.config,
|
|
109
110
|
defaultConfig: t
|
|
110
111
|
})
|
|
111
112
|
} : a = t, h.config && le(h.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = h.config.style.zoom.startIndex : a.style.zoom.startIndex = null, h.config && le(h.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = h.config.style.zoom.endIndex : a.style.zoom.endIndex = null, h.config && le(h.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = h.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, h.config && le(h.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = h.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
@@ -135,7 +136,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
135
136
|
}, 10), e.value.responsive) {
|
|
136
137
|
const a = at(() => {
|
|
137
138
|
z.value = !1;
|
|
138
|
-
const { width: l, height: o } =
|
|
139
|
+
const { width: l, height: o } = el({
|
|
139
140
|
chart: $.value,
|
|
140
141
|
title: e.value.style.title.text ? ze.value : null,
|
|
141
142
|
slicer: Se.value,
|
|
@@ -168,7 +169,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
168
169
|
Qe(() => {
|
|
169
170
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
|
|
170
171
|
});
|
|
171
|
-
const { isPrinting: Ne, isImaging: Be, generatePdf: Ee, generateImage: Ve } =
|
|
172
|
+
const { isPrinting: Ne, isImaging: Be, generatePdf: Ee, generateImage: Ve } = ll({
|
|
172
173
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
173
174
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
174
175
|
options: e.value.userOptions.print
|
|
@@ -267,7 +268,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
267
268
|
max: t,
|
|
268
269
|
min: a
|
|
269
270
|
};
|
|
270
|
-
}), _ = g(() =>
|
|
271
|
+
}), _ = g(() => jt(We.value.min, We.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
271
272
|
function K(t, a) {
|
|
272
273
|
return {
|
|
273
274
|
...t,
|
|
@@ -295,7 +296,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
295
296
|
const xt = g(() => _.value.ticks.map((t) => ({
|
|
296
297
|
y: n.value.bottom - n.value.height * mt(t),
|
|
297
298
|
value: q(t)
|
|
298
|
-
}))), kt = g(() => fe.value.map((t) => t.period)), O = g(() =>
|
|
299
|
+
}))), kt = g(() => fe.value.map((t) => t.period)), O = g(() => sl({
|
|
299
300
|
values: C.value.map((t) => t[0]),
|
|
300
301
|
maxDatapoints: C.value.length,
|
|
301
302
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
@@ -322,7 +323,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
322
323
|
config: e.value
|
|
323
324
|
};
|
|
324
325
|
const l = e.value.style.tooltip.customFormat;
|
|
325
|
-
if (
|
|
326
|
+
if (Qt(l) && Zt(() => l({
|
|
326
327
|
seriesIndex: t,
|
|
327
328
|
datapoint: a,
|
|
328
329
|
series: w.value,
|
|
@@ -392,8 +393,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
392
393
|
f.low.value,
|
|
393
394
|
f.last.value,
|
|
394
395
|
f.volume
|
|
395
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), x =
|
|
396
|
-
t ? t(x) :
|
|
396
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), x = Jt(o);
|
|
397
|
+
t ? t(x) : Kt({ csvContent: x, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
397
398
|
});
|
|
398
399
|
}
|
|
399
400
|
const Q = g(() => {
|
|
@@ -464,7 +465,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
464
465
|
}
|
|
465
466
|
async function $t({ scale: t = 2 } = {}) {
|
|
466
467
|
if (!$.value) return;
|
|
467
|
-
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: x, base64: f } = await
|
|
468
|
+
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: x, base64: f } = await rl({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
468
469
|
return {
|
|
469
470
|
imageUri: x,
|
|
470
471
|
base64: f,
|
|
@@ -475,7 +476,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
475
476
|
};
|
|
476
477
|
}
|
|
477
478
|
const St = g(() => c.value.width), Tt = g(() => c.value.height);
|
|
478
|
-
|
|
479
|
+
nl({
|
|
479
480
|
timeLabelsEls: H,
|
|
480
481
|
timeLabels: O,
|
|
481
482
|
slicer: v,
|
|
@@ -567,7 +568,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
567
568
|
ref: ze,
|
|
568
569
|
style: "width:100%;background:transparent"
|
|
569
570
|
}, [
|
|
570
|
-
(s(), N(
|
|
571
|
+
(s(), N(vl, {
|
|
571
572
|
key: `title_${Re.value}`,
|
|
572
573
|
config: {
|
|
573
574
|
title: {
|
|
@@ -677,7 +678,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
677
678
|
(s(), i("svg", {
|
|
678
679
|
ref_key: "svgRef",
|
|
679
680
|
ref: De,
|
|
680
|
-
xmlns: u(
|
|
681
|
+
xmlns: u(Yt),
|
|
681
682
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
682
683
|
class: T({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
683
684
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
@@ -902,7 +903,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
902
903
|
y: n.value.top,
|
|
903
904
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
904
905
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
905
|
-
fill: ne.value === o ? u(
|
|
906
|
+
fill: ne.value === o ? u(qt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
906
907
|
onMouseover: () => Ct(o, l),
|
|
907
908
|
onMouseleave: () => At(o, l),
|
|
908
909
|
onClick: () => wt(o, l)
|
|
@@ -1047,10 +1048,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
1047
1048
|
key: "1"
|
|
1048
1049
|
} : void 0
|
|
1049
1050
|
]), 1040)) : p("", !0),
|
|
1050
|
-
u(S) ? (s(), N(
|
|
1051
|
+
u(S) ? (s(), N(ol, { key: 8 })) : p("", !0)
|
|
1051
1052
|
], 46, hl));
|
|
1052
1053
|
}
|
|
1053
|
-
},
|
|
1054
|
+
}, na = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-f32a2d80"]]);
|
|
1054
1055
|
export {
|
|
1055
|
-
|
|
1056
|
+
na as default
|
|
1056
1057
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as ce, ref as n, useSlots as Se, onMounted as
|
|
2
|
-
import { u as Ne,
|
|
3
|
-
import {
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as ce, ref as n, useSlots as Se, onMounted as A, computed as R, watch as N, onBeforeUnmount as G, shallowRef as ze, nextTick as fe, createElementBlock as v, openBlock as r, unref as u, createElementVNode as U, createBlock as he, createCommentVNode as S, normalizeClass as Ee, normalizeStyle as h, createTextVNode as D, renderSlot as p, toDisplayString as X, Fragment as j, renderList as J, mergeProps as me, createSlots as He, withCtx as w, normalizeProps as ge, guardReactiveProps as be } from "vue";
|
|
2
|
+
import { u as Ne, a as Ue } from "./useNestedProp-DF7e2h1z.js";
|
|
3
|
+
import { c as Ve, o as K, f as Q, s as Me, x as Le, y as qe } from "./lib-p5pfHmOX.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-Yeu5jOfm.js";
|
|
5
5
|
import { u as De } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
@@ -25,10 +25,10 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(T, { expose: ye }) {
|
|
28
|
-
const Ce = ce(() => import("./vue-ui-skeleton-
|
|
29
|
-
|
|
28
|
+
const Ce = ce(() => import("./vue-ui-skeleton-0yto3ZRt.js")), $e = ce(() => import("./UserOptions-Bn3u4JQu.js")), { vue_ui_carousel_table: Te } = Ne(), i = T, V = n(Ve()), W = n(!1), O = n(!!i.dataset), ke = Se();
|
|
29
|
+
A(() => {
|
|
30
30
|
Y();
|
|
31
|
-
}),
|
|
31
|
+
}), A(() => {
|
|
32
32
|
ke["chart-background"] && console.warn("VueUiCarouselTable does not support the #chart-background slot.");
|
|
33
33
|
});
|
|
34
34
|
function Y() {
|
|
@@ -50,7 +50,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
50
50
|
set: (t) => t
|
|
51
51
|
}), { userOptionsVisible: M, setUserOptionsVisibility: Z, keepUserOptionState: _ } = De({ config: e.value });
|
|
52
52
|
function ee() {
|
|
53
|
-
return
|
|
53
|
+
return Ue({
|
|
54
54
|
userConfig: i.config,
|
|
55
55
|
defaultConfig: Te
|
|
56
56
|
});
|
|
@@ -60,7 +60,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
60
60
|
}, { deep: !0 }), N(() => i.dataset, (t) => {
|
|
61
61
|
L();
|
|
62
62
|
}, { deep: !0 });
|
|
63
|
-
const { isPrinting: te, isImaging: ae, generatePdf:
|
|
63
|
+
const { isPrinting: te, isImaging: ae, generatePdf: Ae, generateImage: oe } = Ge({
|
|
64
64
|
elementId: `carousel-table_${V.value}`,
|
|
65
65
|
fileName: e.value.caption.text || "vue-ui-carousel-table",
|
|
66
66
|
options: e.value.userOptions.print
|
|
@@ -73,11 +73,11 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
73
73
|
heights: Array.from(B.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
76
|
+
A(L);
|
|
77
|
+
const we = R(() => !b.value || !b.value.heights.length ? 0 : Math.max(...b.value.heights) + F.value + z.value), Oe = R(() => i.dataset.body ? e.value.tbody.tr.visible <= i.dataset.body.length ? e.value.tbody.tr.visible : i.dataset.body.length : 0), xe = R(() => (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) * Oe.value + F.value + z.value), c = n(0), y = n(null), d = n(0), C = n(!1), le = n(0);
|
|
78
|
+
A(() => {
|
|
79
79
|
x.value && (F.value = x.value.getBoundingClientRect().height), I.value && (z.value = I.value.getBoundingClientRect().height), m.value.showAnimation && b.value && ie();
|
|
80
|
-
}),
|
|
80
|
+
}), A(() => {
|
|
81
81
|
if (l.value) {
|
|
82
82
|
let o = function() {
|
|
83
83
|
const s = t.getBoundingClientRect().bottom;
|
|
@@ -150,7 +150,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
const Re = R(() => e.value.responsiveBreakpoint), H = ze(null);
|
|
153
|
-
|
|
153
|
+
A(() => {
|
|
154
154
|
H.value = new ResizeObserver((t) => {
|
|
155
155
|
t.forEach((a) => {
|
|
156
156
|
E.value = a.contentRect.width < Re.value;
|
|
@@ -162,7 +162,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
162
162
|
H.value && H.value.disconnect();
|
|
163
163
|
});
|
|
164
164
|
function de() {
|
|
165
|
-
|
|
165
|
+
Ae();
|
|
166
166
|
}
|
|
167
167
|
function ve() {
|
|
168
168
|
m.value.showAnimation = !m.value.showAnimation, m.value.showAnimation ? $() : g();
|
|
@@ -174,8 +174,8 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
174
174
|
]), o = [
|
|
175
175
|
[e.value.caption.text],
|
|
176
176
|
[i.dataset.head.map((f) => [f])]
|
|
177
|
-
].concat(a), s =
|
|
178
|
-
t ? t(s) :
|
|
177
|
+
].concat(a), s = Le(o);
|
|
178
|
+
t ? t(s) : qe({
|
|
179
179
|
csvContent: s,
|
|
180
180
|
title: e.value.caption.text || "vue-ui-carousel-table"
|
|
181
181
|
});
|
|
@@ -201,7 +201,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
201
201
|
ref: l,
|
|
202
202
|
id: `carousel-table_${V.value}`,
|
|
203
203
|
style: h({
|
|
204
|
-
height: u(te) || u(ae) ? "auto" : `${Math.max(xe.value,
|
|
204
|
+
height: u(te) || u(ae) ? "auto" : `${Math.max(xe.value, we.value)}px`,
|
|
205
205
|
containerType: "inline-size",
|
|
206
206
|
position: "relative",
|
|
207
207
|
overflow: "auto",
|
|
@@ -299,7 +299,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
299
299
|
style: h({
|
|
300
300
|
...e.value.tbody.tr.td.style,
|
|
301
301
|
border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
|
|
302
|
-
backgroundColor: u(
|
|
302
|
+
backgroundColor: u(Me)(e.value.tbody.tr.td.style.backgroundColor, s % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100),
|
|
303
303
|
paddingTop: e.value.tbody.tr.td.padding.top + "px",
|
|
304
304
|
paddingRight: e.value.tbody.tr.td.padding.right + "px",
|
|
305
305
|
paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
|
|
@@ -357,42 +357,42 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
357
357
|
}, He({ _: 2 }, [
|
|
358
358
|
t.$slots.menuIcon ? {
|
|
359
359
|
name: "menuIcon",
|
|
360
|
-
fn:
|
|
360
|
+
fn: w(({ isOpen: o, color: s }) => [
|
|
361
361
|
p(t.$slots, "menuIcon", ge(be({ isOpen: o, color: s })), void 0, !0)
|
|
362
362
|
]),
|
|
363
363
|
key: "0"
|
|
364
364
|
} : void 0,
|
|
365
365
|
t.$slots.optionPdf ? {
|
|
366
366
|
name: "optionPdf",
|
|
367
|
-
fn:
|
|
367
|
+
fn: w(() => [
|
|
368
368
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
369
369
|
]),
|
|
370
370
|
key: "1"
|
|
371
371
|
} : void 0,
|
|
372
372
|
t.$slots.optionCsv ? {
|
|
373
373
|
name: "optionCsv",
|
|
374
|
-
fn:
|
|
374
|
+
fn: w(() => [
|
|
375
375
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
376
376
|
]),
|
|
377
377
|
key: "2"
|
|
378
378
|
} : void 0,
|
|
379
379
|
t.$slots.optionImg ? {
|
|
380
380
|
name: "optionImg",
|
|
381
|
-
fn:
|
|
381
|
+
fn: w(() => [
|
|
382
382
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
383
383
|
]),
|
|
384
384
|
key: "3"
|
|
385
385
|
} : void 0,
|
|
386
386
|
t.$slots.optionAnimation ? {
|
|
387
387
|
name: "optionAnimation",
|
|
388
|
-
fn:
|
|
388
|
+
fn: w(() => [
|
|
389
389
|
p(t.$slots, "optionAnimation", {}, void 0, !0)
|
|
390
390
|
]),
|
|
391
391
|
key: "4"
|
|
392
392
|
} : void 0,
|
|
393
393
|
t.$slots.optionFullscreen ? {
|
|
394
394
|
name: "optionFullscreen",
|
|
395
|
-
fn:
|
|
395
|
+
fn: w(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
396
396
|
p(t.$slots, "optionFullscreen", ge(be({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
397
397
|
]),
|
|
398
398
|
key: "5"
|