vue-data-ui 3.1.18 → 3.1.19-next.0
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-DRpg18lg.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/universal.d.ts +1 -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/universal-registry-CL8g2COA.js +70 -0
- package/dist/universal.js +5 -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-h5C8hpE8.js +317 -0
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-BZDLbeym.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-C1NMeWTB.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-G_Y2Ryof.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-9sHzdqr3.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-CnGSgjPK.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-C_0Y77a9.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-DqGoensA.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-5L50If0h.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-2FyL5ac1.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-CWgiy7rq.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DxH6i5aO.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-D7nhPGxL.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-C8iSww9L.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-D3GZcM5e.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-CUHEJHiw.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-MM8rPNWR.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-CQ7XyocO.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-BT5orcuT.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BCfEt867.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-DekqFbQ4.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-CAC70QPW.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BWj33o71.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-Dq_XSxqp.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-V6jytnl0.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-CmXgMy7I.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-D2JQNfWU.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-BmmwGJaI.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-CcGD2bEJ.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-DIOGXJ9v.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-DS-YbQVr.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-D8kUADP7.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-FtA6-6zz.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-qt8UvEPc.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DgHvA8ra.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-BpMUqIL6.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-IhGjmoUF.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BSGiRpQ9.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-ZkUUbYr5.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-DRKIeZ1O.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-dMjWaIcs.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-DKHtmqLd.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-mMpPAUon.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-xpHH3FWG.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-C4LZMTeg.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-KQmIXYf2.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-a_Ub2bgB.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-MWKYuUMN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CP6jUrto.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-B59kWUZd.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-DZnuhGEw.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-B6S7X6sr.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-BjzutuG2.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-CSSVKhex.js} +166 -165
- package/package.json +19 -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
- package/dist/vue-data-ui-DcBYykse.js +0 -325
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useCssVars as Xe, computed as h, defineAsyncComponent as x, ref as c, shallowRef as we, onMounted as We, onBeforeUnmount as Ye, watch as $e, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as T, normalizeClass as N, createBlock as I, createCommentVNode as b, createSlots as xe, withCtx as m, renderSlot as g, normalizeProps as G, guardReactiveProps as j, createVNode as Le, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as qe, createTextVNode as _e, nextTick as Je } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import { c as Ke, o as Qe, f as Te, g as Ze, h as et, m as tt, a as Y, d as q, X as at, G as lt, F as te, x as st, y as ot } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as nt, u as ut } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as rt, a as Ae } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as it } from "./usePrinter-Yeu5jOfm.js";
|
|
6
|
+
import { u as ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import dt from "./img-CH7J0fYg.js";
|
|
9
|
+
import ht from "./Title-pI68ZJsq.js";
|
|
10
|
+
import { t as ft } from "./themes-D3cUNuKw.js";
|
|
10
11
|
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
12
|
const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["id"], kt = ["stop-color"], Ct = ["stop-color"], wt = ["stop-color"], $t = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["points", "fill"], Tt = ["stroke", "stroke-width", "rx"], At = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], St = {
|
|
12
13
|
key: 5,
|
|
@@ -31,14 +32,14 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
31
32
|
Xe((t) => ({
|
|
32
33
|
"9ac925c6": Ge.value
|
|
33
34
|
}));
|
|
34
|
-
const De = x(() => import("./BaseIcon-
|
|
35
|
+
const De = x(() => import("./BaseIcon-D2f9w5Z5.js")), ze = x(() => import("./vue-ui-skeleton-FtA6-6zz.js")), Ne = x(() => import("./vue-ui-accordion-D-L73-T2.js")), Ie = x(() => import("./DataTable-xISHA7Pu.js")), Pe = x(() => import("./UserOptions-Bn3u4JQu.js")), Fe = x(() => import("./PenAndPaper-CtDMyIvW.js")), Re = x(() => import("./PackageVersion-DRpg18lg.js")), Be = x(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_funnel: Me } = rt(), p = Oe, w = c(null), P = c(Ke()), ae = c(0), le = c(0), se = c(0), oe = c(null), ne = c(null), ue = c(null), $ = we(null), A = we(null), L = c(!1), F = c(null), J = c(null), O = h(() => !!p.dataset && p.dataset.length);
|
|
35
36
|
We(re);
|
|
36
37
|
function re() {
|
|
37
|
-
if (
|
|
38
|
+
if (Qe(p.dataset) ? Te({
|
|
38
39
|
componentName: "VueUiFunnel",
|
|
39
40
|
type: "dataset"
|
|
40
41
|
}) : p.dataset.forEach((t, l) => {
|
|
41
|
-
|
|
42
|
+
Ze({
|
|
42
43
|
datasetObject: t,
|
|
43
44
|
requiredAttributes: ["name", "value"]
|
|
44
45
|
}).forEach((a) => {
|
|
@@ -50,8 +51,8 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
50
51
|
});
|
|
51
52
|
});
|
|
52
53
|
}), e.value.responsive) {
|
|
53
|
-
const t =
|
|
54
|
-
const { width: l, height: a } =
|
|
54
|
+
const t = nt(() => {
|
|
55
|
+
const { width: l, height: a } = ut({
|
|
55
56
|
chart: w.value,
|
|
56
57
|
title: e.value.style.chart.title.text ? ue.value : null,
|
|
57
58
|
source: ne.value,
|
|
@@ -92,7 +93,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
92
93
|
});
|
|
93
94
|
return t.theme ? {
|
|
94
95
|
...Ae({
|
|
95
|
-
userConfig:
|
|
96
|
+
userConfig: ft.vue_ui_funnel[t.theme] || p.config,
|
|
96
97
|
defaultConfig: t
|
|
97
98
|
})
|
|
98
99
|
} : t;
|
|
@@ -100,11 +101,11 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
100
101
|
const e = h({
|
|
101
102
|
get: () => ie(),
|
|
102
103
|
set: (t) => t
|
|
103
|
-
}), { userOptionsVisible: K, setUserOptionsVisibility: ce, keepUserOptionState: ve } =
|
|
104
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: ce, keepUserOptionState: ve } = ct({ config: e.value }), { svgRef: de } = vt({ config: e.value.style.chart.title });
|
|
104
105
|
$e(() => p.config, (t) => {
|
|
105
106
|
e.value = ie(), K.value = !e.value.userOptions.showOnChartHover, re(), le.value += 1, se.value += 1, v.value.circles = e.value.style.chart.circles.dataLabels.fontSize, v.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, v.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, S.value.showTable = e.value.table.show;
|
|
106
107
|
}, { deep: !0 });
|
|
107
|
-
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } =
|
|
108
|
+
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } = it({
|
|
108
109
|
elementId: `funnel_${P.value}`,
|
|
109
110
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
110
111
|
options: e.value.userOptions.print
|
|
@@ -122,7 +123,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
122
123
|
set: (t) => t
|
|
123
124
|
}), y = h(() => O.value ? p.dataset.map((t, l) => ({
|
|
124
125
|
...t,
|
|
125
|
-
color: t.color ?
|
|
126
|
+
color: t.color ? et(t.color) : tt(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
|
|
126
127
|
})) : []);
|
|
127
128
|
setTimeout(() => {
|
|
128
129
|
L.value = !0;
|
|
@@ -153,10 +154,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
153
154
|
x: k.value.left + a + pe.value,
|
|
154
155
|
y: o
|
|
155
156
|
};
|
|
156
|
-
})),
|
|
157
|
+
})), Ve = h(() => {
|
|
157
158
|
const t = u.value.map((l) => `${l.x + l.width},${l.y + (D.value - _.value) / 2}`);
|
|
158
159
|
return `${u.value[0].x},${u.value[0].y + (D.value - _.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (D.value - _.value) / 2}`;
|
|
159
|
-
}),
|
|
160
|
+
}), Ee = h(() => ({
|
|
160
161
|
x1: u.value[0].cx,
|
|
161
162
|
y1: u.value[0].cy,
|
|
162
163
|
x2: u.value.at(-1).cx,
|
|
@@ -165,9 +166,9 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
165
166
|
function ye(t) {
|
|
166
167
|
z.value = t, ae.value += 1;
|
|
167
168
|
}
|
|
168
|
-
const Ge = h(() => `${y.value.length * 150}ms`),
|
|
169
|
+
const Ge = h(() => `${y.value.length * 150}ms`), V = c(!1);
|
|
169
170
|
function Q() {
|
|
170
|
-
|
|
171
|
+
V.value = !V.value;
|
|
171
172
|
}
|
|
172
173
|
function ke() {
|
|
173
174
|
S.value.showTable = !S.value.showTable;
|
|
@@ -178,7 +179,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
178
179
|
color: a.color
|
|
179
180
|
})), l = y.value.map((a) => a.value);
|
|
180
181
|
return { head: t, body: l };
|
|
181
|
-
}),
|
|
182
|
+
}), E = h(() => {
|
|
182
183
|
const t = [
|
|
183
184
|
e.value.table.columnNames.series,
|
|
184
185
|
e.value.table.columnNames.value,
|
|
@@ -237,8 +238,8 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
237
238
|
Je(() => {
|
|
238
239
|
const l = R.value.head.map((f, r) => [[
|
|
239
240
|
f.name
|
|
240
|
-
], [R.value.body[r]], [u.value[r].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o =
|
|
241
|
-
t ? t(o) :
|
|
241
|
+
], [R.value.body[r]], [u.value[r].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = st(a);
|
|
242
|
+
t ? t(o) : ot({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
242
243
|
});
|
|
243
244
|
}
|
|
244
245
|
function je() {
|
|
@@ -246,7 +247,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
246
247
|
}
|
|
247
248
|
async function He({ scale: t = 2 } = {}) {
|
|
248
249
|
if (!w.value) return;
|
|
249
|
-
const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: r } = await
|
|
250
|
+
const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: r } = await dt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
250
251
|
return {
|
|
251
252
|
imageUri: f,
|
|
252
253
|
base64: r,
|
|
@@ -315,7 +316,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
315
316
|
svgRef: s(de),
|
|
316
317
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
317
318
|
color: e.value.style.chart.color,
|
|
318
|
-
active:
|
|
319
|
+
active: V.value,
|
|
319
320
|
onClose: Q
|
|
320
321
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
321
322
|
Ue.value ? (n(), i("div", {
|
|
@@ -331,7 +332,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
331
332
|
ref: ue,
|
|
332
333
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
333
334
|
}, [
|
|
334
|
-
(n(), I(
|
|
335
|
+
(n(), I(ht, {
|
|
335
336
|
key: `title_${le.value}`,
|
|
336
337
|
config: {
|
|
337
338
|
title: {
|
|
@@ -366,7 +367,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
366
367
|
position: e.value.userOptions.position,
|
|
367
368
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
368
369
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
369
|
-
isAnnotation:
|
|
370
|
+
isAnnotation: V.value,
|
|
370
371
|
callbacks: e.value.userOptions.callbacks,
|
|
371
372
|
printScale: e.value.userOptions.print.scale,
|
|
372
373
|
tableDialog: e.value.table.useDialog,
|
|
@@ -434,7 +435,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
434
435
|
key: 4,
|
|
435
436
|
ref_key: "svgRef",
|
|
436
437
|
ref: de,
|
|
437
|
-
xmlns: s(
|
|
438
|
+
xmlns: s(at),
|
|
438
439
|
class: N({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
439
440
|
viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
|
|
440
441
|
style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
@@ -475,7 +476,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
475
476
|
}, null, 8, wt)
|
|
476
477
|
], 8, yt)
|
|
477
478
|
]),
|
|
478
|
-
e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 },
|
|
479
|
+
e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 }, Ee.value, {
|
|
479
480
|
stroke: e.value.style.chart.circleLinks.color,
|
|
480
481
|
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
481
482
|
"stroke-linecap": "round",
|
|
@@ -502,7 +503,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
502
503
|
y: a.cy + v.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
503
504
|
"text-anchor": "middle",
|
|
504
505
|
"font-size": v.value.circles,
|
|
505
|
-
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(
|
|
506
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(lt)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
506
507
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
507
508
|
class: N({
|
|
508
509
|
animated: e.value.useCssAnimation && !L.value
|
|
@@ -522,7 +523,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
522
523
|
)), 15, Lt))), 256)),
|
|
523
524
|
e.value.style.chart.area.show ? (n(), i("polygon", {
|
|
524
525
|
key: 2,
|
|
525
|
-
points:
|
|
526
|
+
points: Ve.value,
|
|
526
527
|
fill: `url(#funnel_area_${P.value})`,
|
|
527
528
|
class: N({
|
|
528
529
|
animated: e.value.useCssAnimation && !L.value
|
|
@@ -618,10 +619,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
618
619
|
content: m(() => [
|
|
619
620
|
(n(), I(s(Ie), {
|
|
620
621
|
key: `table_${se.value}`,
|
|
621
|
-
colNames:
|
|
622
|
-
head:
|
|
623
|
-
body:
|
|
624
|
-
config:
|
|
622
|
+
colNames: E.value.colNames,
|
|
623
|
+
head: E.value.head,
|
|
624
|
+
body: E.value.body,
|
|
625
|
+
config: E.value.config,
|
|
625
626
|
title: e.value.table.useDialog ? "" : B.value.title,
|
|
626
627
|
withCloseButton: !e.value.table.useDialog,
|
|
627
628
|
onClose: Ce
|
|
@@ -666,7 +667,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
666
667
|
]), 1040)) : b("", !0)
|
|
667
668
|
], 46, mt));
|
|
668
669
|
}
|
|
669
|
-
},
|
|
670
|
+
}, jt = /* @__PURE__ */ bt(zt, [["__scopeId", "data-v-6fb80307"]]);
|
|
670
671
|
export {
|
|
671
|
-
|
|
672
|
+
jt as default
|
|
672
673
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import Rt from "./
|
|
11
|
-
import
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Fe, Teleport as ft, toDisplayString as L, resolveDynamicComponent as yt, mergeProps as bt, createTextVNode as Ne, nextTick as Be } from "vue";
|
|
2
|
+
import { c as Ve, t as mt, o as kt, f as Me, g as wt, b as Ct, p as H, e as $t, L as Re, h as xt, R as Tt, d as _, X as _t, a as Ee, z as We, x as St, y as Ot, A as Pt } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as It, u as Dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Lt, a as ze } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as At, B as Ft } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Nt } from "./usePrinter-Yeu5jOfm.js";
|
|
7
|
+
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Mt from "./img-CH7J0fYg.js";
|
|
10
|
+
import { t as Rt } from "./themes-D3cUNuKw.js";
|
|
11
|
+
import Et from "./Title-pI68ZJsq.js";
|
|
12
|
+
import Wt from "./Legend-_Rv594VS.js";
|
|
12
13
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
14
|
const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Yt = ["id"], jt = ["stdDeviation"], qt = ["d", "stroke", "stroke-width"], Jt = ["d", "stroke", "stroke-width"], Kt = ["filter"], Qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], el = {
|
|
14
15
|
key: 4,
|
|
@@ -31,7 +32,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
31
32
|
},
|
|
32
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
34
|
setup(Ge, { expose: He, emit: Ue }) {
|
|
34
|
-
const Xe = x(() => import("./Tooltip-
|
|
35
|
+
const Xe = x(() => import("./Tooltip-Clf2K3CF.js")), Ye = x(() => import("./BaseIcon-D2f9w5Z5.js")), je = x(() => import("./vue-ui-accordion-D-L73-T2.js")), qe = x(() => import("./DataTable-xISHA7Pu.js")), Je = x(() => import("./PenAndPaper-CtDMyIvW.js")), Ke = x(() => import("./UserOptions-Bn3u4JQu.js")), Qe = x(() => import("./PackageVersion-DRpg18lg.js")), Ze = x(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_galaxy: et } = Lt(), w = Ge, y = o(Ve()), b = o(null), U = o(!1), X = o(""), S = o(null), ae = o(0), oe = o(0), se = o(0), ue = o(0), ne = o(null), re = o(null), ie = o(null), ce = o(null), A = o(null), V = o(null), ve = o(!1), F = o(null), Y = o(null), de = i(() => !!w.dataset && w.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: he } = At({
|
|
35
36
|
...pt(w),
|
|
36
37
|
FINAL_CONFIG: e,
|
|
37
38
|
prepareConfig: J,
|
|
@@ -45,7 +46,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
45
46
|
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
46
47
|
{ name: "_", values: [8], color: "#ADADAD" }
|
|
47
48
|
],
|
|
48
|
-
skeletonConfig:
|
|
49
|
+
skeletonConfig: mt({
|
|
49
50
|
defaultConfig: e.value,
|
|
50
51
|
userConfig: {
|
|
51
52
|
userOptions: { show: !1 },
|
|
@@ -67,12 +68,12 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
67
68
|
});
|
|
68
69
|
const pe = i(() => !!e.value.debug);
|
|
69
70
|
function ge() {
|
|
70
|
-
if (
|
|
71
|
+
if (kt(w.dataset) ? Me({
|
|
71
72
|
componentName: "VueUiGalaxy",
|
|
72
73
|
type: "dataset",
|
|
73
74
|
debug: pe.value
|
|
74
75
|
}) : w.dataset.forEach((t, a) => {
|
|
75
|
-
|
|
76
|
+
wt({
|
|
76
77
|
datasetObject: t,
|
|
77
78
|
requiredAttributes: ["name", "values"]
|
|
78
79
|
}).forEach((l) => {
|
|
@@ -85,8 +86,8 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
88
|
}), e.value.responsive) {
|
|
88
|
-
const t =
|
|
89
|
-
const { width: a, height: l } =
|
|
89
|
+
const t = It(() => {
|
|
90
|
+
const { width: a, height: l } = Dt({
|
|
90
91
|
chart: b.value,
|
|
91
92
|
title: e.value.style.chart.title.text ? ne.value : null,
|
|
92
93
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
@@ -94,13 +95,13 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
94
95
|
source: ie.value
|
|
95
96
|
});
|
|
96
97
|
requestAnimationFrame(() => {
|
|
97
|
-
M.value = Math.max(0.1, a),
|
|
98
|
+
M.value = Math.max(0.1, a), R.value = Math.max(0.1, l - 12);
|
|
98
99
|
});
|
|
99
100
|
});
|
|
100
|
-
|
|
101
|
+
A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = b.value.parentNode, A.value.observe(V.value);
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
const { userOptionsVisible: q, setUserOptionsVisibility: fe, keepUserOptionState: ye } =
|
|
104
|
+
const { userOptionsVisible: q, setUserOptionsVisibility: fe, keepUserOptionState: ye } = Bt({ config: e.value }), { svgRef: be } = Vt({ config: e.value.style.chart.title });
|
|
104
105
|
function J() {
|
|
105
106
|
const t = ze({
|
|
106
107
|
userConfig: w.config,
|
|
@@ -108,29 +109,29 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
108
109
|
});
|
|
109
110
|
return t.theme ? {
|
|
110
111
|
...ze({
|
|
111
|
-
userConfig:
|
|
112
|
+
userConfig: Rt.vue_ui_galaxy[t.theme] || w.config,
|
|
112
113
|
defaultConfig: t
|
|
113
114
|
}),
|
|
114
|
-
customPalette:
|
|
115
|
+
customPalette: Ct[t.theme] || H
|
|
115
116
|
} : t;
|
|
116
117
|
}
|
|
117
118
|
De(() => w.config, (t) => {
|
|
118
119
|
e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ge(), oe.value += 1, se.value += 1, ue.value += 1, g.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
119
120
|
}, { deep: !0 });
|
|
120
|
-
const { isPrinting: me, isImaging: ke, generatePdf: we, generateImage: Ce } =
|
|
121
|
+
const { isPrinting: me, isImaging: ke, generatePdf: we, generateImage: Ce } = Nt({
|
|
121
122
|
elementId: `galaxy_${y.value}`,
|
|
122
123
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
123
124
|
options: e.value.userOptions.print
|
|
124
|
-
}), tt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), lt = i(() =>
|
|
125
|
+
}), tt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), lt = i(() => $t(e.value.customPalette)), g = o({
|
|
125
126
|
dataLabels: {
|
|
126
127
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
127
128
|
},
|
|
128
129
|
showTable: e.value.table.show,
|
|
129
130
|
showTooltip: e.value.style.chart.tooltip.show
|
|
130
|
-
}), M = o(250),
|
|
131
|
+
}), M = o(250), R = o(180), at = o(0), ot = o(0), C = i(() => ({
|
|
131
132
|
width: M.value,
|
|
132
|
-
height:
|
|
133
|
-
viewBox: `${at.value} ${ot.value} ${M.value} ${
|
|
133
|
+
height: R.value,
|
|
134
|
+
viewBox: `${at.value} ${ot.value} ${M.value} ${R.value}`
|
|
134
135
|
})), $e = Ue, f = o([]);
|
|
135
136
|
function K(t) {
|
|
136
137
|
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), $e("selectLegend", N.value.map((a) => ({
|
|
@@ -141,9 +142,9 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
141
142
|
}
|
|
142
143
|
const O = i(() => he.value.map((t, a) => ({
|
|
143
144
|
name: t.name,
|
|
144
|
-
color:
|
|
145
|
-
value: t.values ?
|
|
146
|
-
absoluteValues:
|
|
145
|
+
color: xt(t.color) || lt.value[a] || H[a] || H[a % H.length],
|
|
146
|
+
value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
147
|
+
absoluteValues: Re(t.values),
|
|
147
148
|
id: Ve()
|
|
148
149
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
149
150
|
...t,
|
|
@@ -158,7 +159,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
158
159
|
}
|
|
159
160
|
const m = i(() => O.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), xe = o(190), Te = i(() => O.value.filter((t) => !f.value.includes(t.id))), ut = i(
|
|
160
161
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
161
|
-
), nt = i(() =>
|
|
162
|
+
), nt = i(() => Tt({
|
|
162
163
|
maxPoints: xe.value,
|
|
163
164
|
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
164
165
|
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
@@ -183,7 +184,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
183
184
|
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
184
185
|
});
|
|
185
186
|
function Q(t) {
|
|
186
|
-
const a = Math.min(M.value,
|
|
187
|
+
const a = Math.min(M.value, R.value), l = S.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
187
188
|
return {
|
|
188
189
|
border: s / 180 * a,
|
|
189
190
|
path: r / 180 * a,
|
|
@@ -210,7 +211,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
210
211
|
}, U.value = s, S.value = t.id;
|
|
211
212
|
let r = "";
|
|
212
213
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
213
|
-
We(h) &&
|
|
214
|
+
We(h) && Pt(() => h({
|
|
214
215
|
seriesIndex: l,
|
|
215
216
|
datapoint: t,
|
|
216
217
|
series: O.value,
|
|
@@ -220,7 +221,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
220
221
|
datapoint: t,
|
|
221
222
|
series: O.value,
|
|
222
223
|
config: e.value
|
|
223
|
-
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${
|
|
224
|
+
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ee(
|
|
224
225
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
225
226
|
t.value,
|
|
226
227
|
_({
|
|
@@ -265,11 +266,11 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
265
266
|
Be(() => {
|
|
266
267
|
const a = $.value.head.map((r, h) => [[
|
|
267
268
|
r.name
|
|
268
|
-
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s =
|
|
269
|
-
t ? t(s) :
|
|
269
|
+
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = St(l);
|
|
270
|
+
t ? t(s) : Ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
|
-
const
|
|
273
|
+
const E = i(() => {
|
|
273
274
|
const t = [
|
|
274
275
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
275
276
|
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
@@ -324,7 +325,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
324
325
|
}
|
|
325
326
|
async function dt({ scale: t = 2 } = {}) {
|
|
326
327
|
if (!b.value) return;
|
|
327
|
-
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await
|
|
328
|
+
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Mt({ domElement: b.value, base64: !0, img: !0, scale: t });
|
|
328
329
|
return {
|
|
329
330
|
imageUri: r,
|
|
330
331
|
base64: h,
|
|
@@ -365,7 +366,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
365
366
|
};
|
|
366
367
|
});
|
|
367
368
|
De(() => g.value.showTable, (t) => {
|
|
368
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
369
|
+
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
369
370
|
});
|
|
370
371
|
function Ie() {
|
|
371
372
|
g.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
|
|
@@ -410,7 +411,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
410
411
|
ref: ne,
|
|
411
412
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
412
413
|
}, [
|
|
413
|
-
(n(), T(
|
|
414
|
+
(n(), T(Et, {
|
|
414
415
|
key: `title_${oe.value}`,
|
|
415
416
|
config: {
|
|
416
417
|
title: {
|
|
@@ -523,7 +524,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
523
524
|
(n(), c("svg", {
|
|
524
525
|
ref_key: "svgRef",
|
|
525
526
|
ref: be,
|
|
526
|
-
xmlns: u(
|
|
527
|
+
xmlns: u(_t),
|
|
527
528
|
class: G({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
528
529
|
viewBox: C.value.viewBox,
|
|
529
530
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
@@ -555,7 +556,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
555
556
|
}, null, 8, jt)
|
|
556
557
|
], 8, Yt)
|
|
557
558
|
]),
|
|
558
|
-
(n(!0), c(
|
|
559
|
+
(n(!0), c(Ae, null, Fe(N.value, (l) => (n(), c("g", null, [
|
|
559
560
|
l.value ? (n(), c("path", {
|
|
560
561
|
key: 0,
|
|
561
562
|
d: l.path,
|
|
@@ -587,7 +588,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
587
588
|
}, null, 10, Qt)
|
|
588
589
|
], 8, Kt)) : v("", !0)
|
|
589
590
|
]))), 256)),
|
|
590
|
-
(n(!0), c(
|
|
591
|
+
(n(!0), c(Ae, null, Fe(N.value, (l, s) => (n(), c("g", null, [
|
|
591
592
|
l.value ? (n(), c("path", {
|
|
592
593
|
key: 0,
|
|
593
594
|
d: l.path,
|
|
@@ -631,7 +632,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
631
632
|
key: 0,
|
|
632
633
|
onClick: (r) => K(l),
|
|
633
634
|
style: z(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
634
|
-
}, L(l.name) + L(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + L(e.value.style.chart.legend.showValue ? u(
|
|
635
|
+
}, L(l.name) + L(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + L(e.value.style.chart.legend.showValue ? u(Ee)(
|
|
635
636
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
636
637
|
l.value,
|
|
637
638
|
u(_)({
|
|
@@ -690,16 +691,16 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
690
691
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
691
692
|
de.value && e.value.userOptions.buttons.table ? (n(), T(yt(B.value.component), bt({ key: 7 }, B.value.props, {
|
|
692
693
|
ref_key: "tableUnit",
|
|
693
|
-
ref:
|
|
694
|
+
ref: F,
|
|
694
695
|
onClose: Ie
|
|
695
696
|
}), Le({
|
|
696
697
|
content: d(() => [
|
|
697
698
|
(n(), T(u(qe), {
|
|
698
699
|
key: `table_${se.value}`,
|
|
699
|
-
colNames:
|
|
700
|
-
head:
|
|
701
|
-
body:
|
|
702
|
-
config:
|
|
700
|
+
colNames: E.value.colNames,
|
|
701
|
+
head: E.value.head,
|
|
702
|
+
body: E.value.body,
|
|
703
|
+
config: E.value.config,
|
|
703
704
|
title: e.value.table.useDialog ? "" : B.value.title,
|
|
704
705
|
withCloseButton: !e.value.table.useDialog,
|
|
705
706
|
onClose: Ie
|
|
@@ -742,10 +743,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
742
743
|
key: "1"
|
|
743
744
|
} : void 0
|
|
744
745
|
]), 1040)) : v("", !0),
|
|
745
|
-
u(j) ? (n(), T(
|
|
746
|
+
u(j) ? (n(), T(Ft, { key: 8 })) : v("", !0)
|
|
746
747
|
], 46, Gt));
|
|
747
748
|
}
|
|
748
|
-
},
|
|
749
|
+
}, bl = /* @__PURE__ */ zt(ol, [["__scopeId", "data-v-813f1461"]]);
|
|
749
750
|
export {
|
|
750
|
-
|
|
751
|
+
bl as default
|
|
751
752
|
};
|