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,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, useSlots as Sa, computed as p, ref as g, onMounted as At, toRefs as $a, watch as ze, shallowRef as Rt, onBeforeUnmount as
|
|
2
|
-
import { u as Aa,
|
|
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 { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
1
|
+
import { defineAsyncComponent as H, useSlots as Sa, computed as p, ref as g, onMounted as At, toRefs as $a, watch as ze, shallowRef as Rt, onBeforeUnmount as Nt, watchEffect as It, nextTick as Ot, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ye, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as m, mergeProps as Ce, toDisplayString as T, Teleport as Ta, resolveDynamicComponent as Ma, createTextVNode as Pt } from "vue";
|
|
2
|
+
import { u as Aa, a as Vt } from "./useNestedProp-DF7e2h1z.js";
|
|
3
|
+
import { c as Dt, t as Ra, b as Na, p as _e, D as se, e as Ia, o as Et, f as Ft, g as Oa, h as Pa, a9 as Se, aa as Ut, E as Ht, X as Va, m as Da, a6 as $e, G as Bt, a as Te, d as ee, N as Ea, J as Fa, z as Wt, x as Ua, y as Ha, A as Ba } from "./lib-p5pfHmOX.js";
|
|
4
|
+
import { t as Xe, u as Wa } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Ya } from "./usePrinter-Yeu5jOfm.js";
|
|
6
|
+
import { u as Xa, B as Ga } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Ja } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as qa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Za } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ka } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Qa from "./img-CH7J0fYg.js";
|
|
12
|
+
import ja from "./Title-pI68ZJsq.js";
|
|
13
|
+
import { _ as el } from "./Shape-BDy56-wS.js";
|
|
14
|
+
import { t as tl } from "./themes-D3cUNuKw.js";
|
|
15
|
+
import al from "./Legend-_Rv594VS.js";
|
|
16
|
+
import { S as ll } from "./Slicer-BgpOhmb6.js";
|
|
16
17
|
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "width", "height"], ul = { key: 1 }, cl = ["id"], hl = ["stop-color"], vl = ["stop-color"], dl = ["stop-color"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = { key: 0 }, kl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = { key: 0 }, zl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["transform", "font-size", "fill", "font-weight"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Rl = ["x", "y", "font-size", "font-weight", "fill"],
|
|
18
|
+
const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "width", "height"], ul = { key: 1 }, cl = ["id"], hl = ["stop-color"], vl = ["stop-color"], dl = ["stop-color"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = { key: 0 }, kl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = { key: 0 }, zl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["transform", "font-size", "fill", "font-weight"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Rl = ["x", "y", "font-size", "font-weight", "fill"], Nl = ["x1", "x2", "y1", "y2", "stroke"], Il = ["x", "y", "font-size", "font-weight", "fill"], Ol = ["x1", "x2", "y1", "y2", "stroke"], Pl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Vl = { key: 0 }, Dl = { key: 1 }, El = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Fl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ul = { key: 0 }, Hl = { key: 1 }, Bl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Wl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Yl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Xl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Gl = {
|
|
18
19
|
key: 3,
|
|
19
20
|
class: "vue-data-ui-watermark"
|
|
20
21
|
}, Jl = ["id"], ql = ["onClick"], Zl = ["innerHTML"], Kl = {
|
|
@@ -35,18 +36,18 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
35
36
|
},
|
|
36
37
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
38
|
setup(Me, { expose: Yt, emit: Xt }) {
|
|
38
|
-
const Gt = H(() => import("./Tooltip-
|
|
39
|
+
const Gt = H(() => import("./Tooltip-Clf2K3CF.js")), Jt = H(() => import("./BaseIcon-D2f9w5Z5.js")), qt = H(() => import("./vue-ui-accordion-D-L73-T2.js")), Zt = H(() => import("./DataTable-xISHA7Pu.js")), Kt = H(() => import("./PenAndPaper-CtDMyIvW.js")), Qt = H(() => import("./UserOptions-Bn3u4JQu.js")), jt = H(() => import("./PackageVersion-B6W-zkH-.js")), ea = H(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_stackbar: ta } = Aa(), aa = Sa(), f = Me, Ae = Xt, ve = p({
|
|
39
40
|
get() {
|
|
40
41
|
return !!f.dataset && f.dataset.length;
|
|
41
42
|
},
|
|
42
43
|
set(a) {
|
|
43
44
|
return a;
|
|
44
45
|
}
|
|
45
|
-
}), O = g(null), M = g(
|
|
46
|
+
}), O = g(null), M = g(Dt()), Re = g(!1), Ne = g(null), Ie = g(""), S = g([]), Ge = g(0), Je = g(null), qe = g(null), Ze = g(null), Ke = g(null), Qe = g(0), re = g(!1), de = g(null), X = g(!1), je = g(0), la = g(0), sa = g(0), et = g(null), tt = g(!1), oe = g(null), Oe = g(null), Pe = g(null), Ve = g(null), G = g(null), J = g(null), ra = g(null), at = g(null);
|
|
46
47
|
At(() => {
|
|
47
48
|
tt.value = !0, Ue();
|
|
48
49
|
});
|
|
49
|
-
const e = g(Ee()), { loading: ne, FINAL_DATASET: ye, manualLoading: ge } =
|
|
50
|
+
const e = g(Ee()), { loading: ne, FINAL_DATASET: ye, manualLoading: ge } = Xa({
|
|
50
51
|
...$a(f),
|
|
51
52
|
FINAL_CONFIG: e,
|
|
52
53
|
prepareConfig: Ee,
|
|
@@ -116,19 +117,19 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
})
|
|
119
|
-
}), { userOptionsVisible: De, setUserOptionsVisibility: lt, keepUserOptionState: st } =
|
|
120
|
+
}), { userOptionsVisible: De, setUserOptionsVisibility: lt, keepUserOptionState: st } = qa({ config: e.value }), { svgRef: rt } = Za({ config: e.value.style.chart.title });
|
|
120
121
|
function Ee() {
|
|
121
|
-
const a =
|
|
122
|
+
const a = Vt({
|
|
122
123
|
userConfig: f.config,
|
|
123
124
|
defaultConfig: ta
|
|
124
125
|
});
|
|
125
126
|
let l = {};
|
|
126
127
|
return a.theme ? l = {
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
128
|
+
...Vt({
|
|
129
|
+
userConfig: tl.vue_ui_stackbar[a.theme] || f.config,
|
|
129
130
|
defaultConfig: a
|
|
130
131
|
}),
|
|
131
|
-
customPalette:
|
|
132
|
+
customPalette: Na[a.theme] || _e
|
|
132
133
|
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
133
134
|
}
|
|
134
135
|
const ot = p(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), nt = p(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
@@ -153,7 +154,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
153
154
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
155
|
};
|
|
155
156
|
}, { immediate: !0 });
|
|
156
|
-
const { isPrinting: it, isImaging: ut, generatePdf: ct, generateImage: ht } =
|
|
157
|
+
const { isPrinting: it, isImaging: ut, generatePdf: ct, generateImage: ht } = Ya({
|
|
157
158
|
elementId: `stackbar_${M.value}`,
|
|
158
159
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
159
160
|
options: e.value.userOptions.print
|
|
@@ -166,22 +167,22 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
166
167
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
167
168
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
168
169
|
}
|
|
169
|
-
}), oa = p(() =>
|
|
170
|
+
}), oa = p(() => Ia(e.value.customPalette)), E = Rt(null), ae = Rt(null), vt = g(null);
|
|
170
171
|
At(() => {
|
|
171
172
|
Ue();
|
|
172
173
|
});
|
|
173
174
|
const Fe = p(() => !!e.value.debug);
|
|
174
175
|
function Ue() {
|
|
175
|
-
if (
|
|
176
|
+
if (Et(f.dataset) ? (Ft({
|
|
176
177
|
componentName: "VueUiStackbar",
|
|
177
178
|
type: "dataset",
|
|
178
179
|
debug: Fe.value
|
|
179
180
|
}), ge.value = !0) : f.dataset.forEach((a, l) => {
|
|
180
|
-
|
|
181
|
+
Oa({
|
|
181
182
|
datasetObject: a,
|
|
182
183
|
requiredAttributes: ["name", "series"]
|
|
183
184
|
}).forEach((t) => {
|
|
184
|
-
ve.value = !1,
|
|
185
|
+
ve.value = !1, Ft({
|
|
185
186
|
componentName: "VueUiStackbar",
|
|
186
187
|
type: "datasetSerieAttribute",
|
|
187
188
|
property: t,
|
|
@@ -189,12 +190,12 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
189
190
|
debug: Fe.value
|
|
190
191
|
}), ge.value = !0;
|
|
191
192
|
});
|
|
192
|
-
}),
|
|
193
|
+
}), Et(f.dataset) || (ge.value = e.value.loading), setTimeout(() => {
|
|
193
194
|
X.value = !0;
|
|
194
195
|
}, 10), e.value.responsive) {
|
|
195
196
|
const a = Xe(() => {
|
|
196
197
|
X.value = !1;
|
|
197
|
-
const { width: l, height: t } =
|
|
198
|
+
const { width: l, height: t } = Wa({
|
|
198
199
|
chart: O.value,
|
|
199
200
|
title: e.value.style.chart.title.text ? Je.value : null,
|
|
200
201
|
legend: e.value.style.chart.legend.show ? qe.value : null,
|
|
@@ -211,7 +212,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
211
212
|
}
|
|
212
213
|
He();
|
|
213
214
|
}
|
|
214
|
-
|
|
215
|
+
Nt(() => {
|
|
215
216
|
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
|
|
216
217
|
});
|
|
217
218
|
function na() {
|
|
@@ -229,7 +230,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
229
230
|
const be = g(0), fe = g(0), ia = Xe((a) => {
|
|
230
231
|
be.value = a;
|
|
231
232
|
}, 100);
|
|
232
|
-
|
|
233
|
+
It((a) => {
|
|
233
234
|
const l = e.value.orientation === "vertical" ? J.value : G.value;
|
|
234
235
|
if (!l) return;
|
|
235
236
|
const t = new ResizeObserver((s) => {
|
|
@@ -240,7 +241,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
240
241
|
const ua = Xe((a) => {
|
|
241
242
|
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
243
|
}, 100);
|
|
243
|
-
|
|
244
|
+
It((a) => {
|
|
244
245
|
if (e.value.orientation === "vertical") return;
|
|
245
246
|
const l = at.value;
|
|
246
247
|
if (!l) return;
|
|
@@ -248,7 +249,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
248
249
|
ua(s[0].contentRect.width);
|
|
249
250
|
});
|
|
250
251
|
t.observe(l), a(() => t.disconnect());
|
|
251
|
-
}),
|
|
252
|
+
}), Nt(() => {
|
|
252
253
|
be.value = 0, fe.value = 0;
|
|
253
254
|
});
|
|
254
255
|
const dt = p(() => {
|
|
@@ -272,7 +273,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
272
273
|
height: Math.max(0, P)
|
|
273
274
|
};
|
|
274
275
|
}), F = p(() => ye.value.map((a, l) => {
|
|
275
|
-
const t =
|
|
276
|
+
const t = Pa(a.color) || oa.value[l] || _e[l] || _e[l % _e.length];
|
|
276
277
|
return {
|
|
277
278
|
...a,
|
|
278
279
|
// In distributed mode, all values are converted to positive
|
|
@@ -280,7 +281,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
280
281
|
// Store signs to manage display of neg values in distributed mode
|
|
281
282
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
282
283
|
absoluteIndex: l,
|
|
283
|
-
id:
|
|
284
|
+
id: Dt(),
|
|
284
285
|
color: t
|
|
285
286
|
};
|
|
286
287
|
})), U = p(() => Math.max(...F.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = g({
|
|
@@ -317,8 +318,8 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
317
318
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
318
319
|
})))
|
|
319
320
|
};
|
|
320
|
-
}),
|
|
321
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
321
|
+
}), I = p(() => {
|
|
322
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
322
323
|
return s.ticks.map((c) => ({
|
|
323
324
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
324
325
|
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -328,7 +329,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
328
329
|
horizontal_y: n.value.bottom - 8,
|
|
329
330
|
value: c
|
|
330
331
|
}));
|
|
331
|
-
}), $ = p(() =>
|
|
332
|
+
}), $ = p(() => Ja({
|
|
332
333
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
334
|
maxDatapoints: U.value,
|
|
334
335
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
@@ -337,16 +338,16 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
337
338
|
})), w = p(() => {
|
|
338
339
|
if (!ve.value && !ne.value) return [];
|
|
339
340
|
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
340
|
-
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
341
|
+
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Tt = I.value[0] ? I.value[0].zero : n.value.bottom, Mt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
|
|
341
342
|
return F.value.filter((ce) => !S.value.includes(ce.id)).map((ce) => {
|
|
342
343
|
const V = ce.series.slice(h.value.start, h.value.end), pa = ce.signedSeries.slice(h.value.start, h.value.end), xa = V.map((x, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ka = V.map((x, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), wa = V.map((x, k) => {
|
|
343
344
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
344
|
-
let Q,
|
|
345
|
-
return x > 0 ? (
|
|
345
|
+
let Q, N;
|
|
346
|
+
return x > 0 ? (N = A * R, Q = Tt - N - a[k], a[k] += N) : (N = A * R, Q = Tt + t[k], t[k] += Math.abs(N)), Q;
|
|
346
347
|
}), La = V.map((x, k) => {
|
|
347
348
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
348
|
-
let Q,
|
|
349
|
-
return x > 0 ? (
|
|
349
|
+
let Q, N;
|
|
350
|
+
return x > 0 ? (N = Le * R, Q = Mt + l[k], l[k] += N) : (N = Le * R, Q = Mt - Math.abs(N) - s[k], s[k] += Math.abs(N)), Q;
|
|
350
351
|
}), za = V.map((x, k) => {
|
|
351
352
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
352
353
|
return x > 0 ? A * R : A * Math.abs(R);
|
|
@@ -427,20 +428,20 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
427
428
|
function xt(a) {
|
|
428
429
|
de.value = a, Re.value = !0;
|
|
429
430
|
const l = e.value.style.chart.tooltip.customFormat, t = mt(a);
|
|
430
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }),
|
|
431
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Ne.value = {
|
|
431
432
|
datapoint: t,
|
|
432
433
|
seriesIndex: a,
|
|
433
434
|
config: e.value,
|
|
434
435
|
series: w.value
|
|
435
436
|
};
|
|
436
437
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
437
|
-
if (
|
|
438
|
+
if (Wt(l) && Ba(() => l({
|
|
438
439
|
seriesIndex: a,
|
|
439
440
|
datapoint: t,
|
|
440
441
|
series: w.value,
|
|
441
442
|
config: e.value
|
|
442
443
|
})))
|
|
443
|
-
|
|
444
|
+
Ie.value = l({
|
|
444
445
|
seriesIndex: a,
|
|
445
446
|
datapoint: t,
|
|
446
447
|
series: w.value,
|
|
@@ -477,11 +478,11 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
477
478
|
}) : ""}${P[1]}
|
|
478
479
|
</div>
|
|
479
480
|
`;
|
|
480
|
-
}),
|
|
481
|
+
}), Ie.value = `<div>${K}</div>`;
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
484
|
const va = p(() => te.value.width), da = p(() => te.value.height);
|
|
484
|
-
|
|
485
|
+
Ka({
|
|
485
486
|
timeLabelsEls: e.value.orientation === "vertical" ? J : G,
|
|
486
487
|
timeLabels: $,
|
|
487
488
|
slicer: h,
|
|
@@ -522,8 +523,8 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
522
523
|
}), { head: a, body: l };
|
|
523
524
|
});
|
|
524
525
|
function Be(a = null) {
|
|
525
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ct.value.head.map((_) => _.label)], s = Ct.value.body, c = l.concat([t]).concat(s), u =
|
|
526
|
-
a ? a(u) :
|
|
526
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ct.value.head.map((_) => _.label)], s = Ct.value.body, c = l.concat([t]).concat(s), u = Ua(c);
|
|
527
|
+
a ? a(u) : Ha({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
527
528
|
}
|
|
528
529
|
const xe = p(() => {
|
|
529
530
|
const a = [""].concat(w.value.map((c) => c.name)).concat(' <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>');
|
|
@@ -594,7 +595,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
594
595
|
}
|
|
595
596
|
async function ma({ scale: a = 2 } = {}) {
|
|
596
597
|
if (!O.value) return;
|
|
597
|
-
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await
|
|
598
|
+
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Qa({ domElement: O.value, base64: !0, img: !0, scale: a });
|
|
598
599
|
return {
|
|
599
600
|
imageUri: c,
|
|
600
601
|
base64: u,
|
|
@@ -675,7 +676,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
675
676
|
ref: Je,
|
|
676
677
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
677
678
|
}, [
|
|
678
|
-
(r(), B(
|
|
679
|
+
(r(), B(ja, {
|
|
679
680
|
key: `title_${je.value}`,
|
|
680
681
|
config: {
|
|
681
682
|
title: {
|
|
@@ -797,7 +798,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
797
798
|
(r(), o("svg", {
|
|
798
799
|
ref_key: "svgRef",
|
|
799
800
|
ref: rt,
|
|
800
|
-
xmlns: v(
|
|
801
|
+
xmlns: v(Va),
|
|
801
802
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
802
803
|
class: le({ "vue-data-ui-loading": v(ne) }),
|
|
803
804
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
@@ -829,7 +830,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
829
830
|
}, null, 8, hl),
|
|
830
831
|
D("stop", {
|
|
831
832
|
offset: "61.8%",
|
|
832
|
-
"stop-color": v(
|
|
833
|
+
"stop-color": v(Da)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
833
834
|
}, null, 8, vl),
|
|
834
835
|
D("stop", {
|
|
835
836
|
offset: "100%",
|
|
@@ -837,7 +838,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
837
838
|
}, null, 8, dl)
|
|
838
839
|
], 8, cl))), 256))
|
|
839
840
|
])) : d("", !0),
|
|
840
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(
|
|
841
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(I.value, (t, s) => (r(), o("line", {
|
|
841
842
|
x1: n.value.left,
|
|
842
843
|
x2: n.value.right,
|
|
843
844
|
y1: t.y,
|
|
@@ -867,7 +868,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
867
868
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
868
869
|
"stroke-linecap": "round"
|
|
869
870
|
}, null, 8, bl))), 256)) : d("", !0),
|
|
870
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(
|
|
871
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(I.value, (t, s) => (r(), o("line", {
|
|
871
872
|
x1: t.horizontal_x,
|
|
872
873
|
x2: t.horizontal_x,
|
|
873
874
|
y1: n.value.top,
|
|
@@ -992,7 +993,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
992
993
|
x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
993
994
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
994
995
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
995
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
996
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
996
997
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
997
998
|
"text-anchor": "middle"
|
|
998
999
|
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? bt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Tl)) : d("", !0)
|
|
@@ -1024,7 +1025,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1024
1025
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
1025
1026
|
y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1026
1027
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1027
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
1028
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1028
1029
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1029
1030
|
"text-anchor": "middle"
|
|
1030
1031
|
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? bt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Al)) : d("", !0)
|
|
@@ -1053,15 +1054,15 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1053
1054
|
ref_key: "scaleLabels",
|
|
1054
1055
|
ref: G
|
|
1055
1056
|
}, [
|
|
1056
|
-
(r(!0), o(b, null, m(
|
|
1057
|
+
(r(!0), o(b, null, m(I.value, (t, s) => (r(), o("line", {
|
|
1057
1058
|
x1: n.value.left,
|
|
1058
1059
|
x2: n.value.left - 6,
|
|
1059
1060
|
y1: t.y,
|
|
1060
1061
|
y2: t.y,
|
|
1061
1062
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1062
1063
|
"stroke-width": 1
|
|
1063
|
-
}, null, 8,
|
|
1064
|
-
(r(!0), o(b, null, m(
|
|
1064
|
+
}, null, 8, Nl))), 256)),
|
|
1065
|
+
(r(!0), o(b, null, m(I.value, (t, s) => (r(), o("text", {
|
|
1065
1066
|
x: t.x,
|
|
1066
1067
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1067
1068
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1078,14 +1079,14 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1078
1079
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1079
1080
|
}),
|
|
1080
1081
|
{ datapoint: t }
|
|
1081
|
-
)), 9,
|
|
1082
|
+
)), 9, Il))), 256))
|
|
1082
1083
|
], 512)) : d("", !0),
|
|
1083
1084
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1084
1085
|
key: 13,
|
|
1085
1086
|
ref_key: "scaleLabels",
|
|
1086
1087
|
ref: G
|
|
1087
1088
|
}, [
|
|
1088
|
-
(r(!0), o(b, null, m(
|
|
1089
|
+
(r(!0), o(b, null, m(I.value, (t, s) => (r(), o("line", {
|
|
1089
1090
|
x1: t.horizontal_x,
|
|
1090
1091
|
x2: t.horizontal_x,
|
|
1091
1092
|
y1: n.value.bottom,
|
|
@@ -1094,7 +1095,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1094
1095
|
"stroke-width": 1,
|
|
1095
1096
|
"stroke-linecap": "round"
|
|
1096
1097
|
}, null, 8, Ol))), 256)),
|
|
1097
|
-
(r(!0), o(b, null, m(
|
|
1098
|
+
(r(!0), o(b, null, m(I.value, (t, s) => (r(), o("text", {
|
|
1098
1099
|
class: "vue-data-ui-time-label",
|
|
1099
1100
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1100
1101
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -1148,7 +1149,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1148
1149
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1149
1150
|
`,
|
|
1150
1151
|
style: { cursor: "pointer" },
|
|
1151
|
-
innerHTML: v(
|
|
1152
|
+
innerHTML: v(Ea)({
|
|
1152
1153
|
content: String(t.text),
|
|
1153
1154
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1154
1155
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1202,7 +1203,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1202
1203
|
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1203
1204
|
style: { cursor: "pointer" },
|
|
1204
1205
|
onClick: () => we(t, s),
|
|
1205
|
-
innerHTML: v(
|
|
1206
|
+
innerHTML: v(Fa)({
|
|
1206
1207
|
content: String(t.text),
|
|
1207
1208
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1208
1209
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
@@ -1305,19 +1306,19 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1305
1306
|
position: e.value.style.chart.tooltip.position,
|
|
1306
1307
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1307
1308
|
parent: O.value,
|
|
1308
|
-
content:
|
|
1309
|
+
content: Ie.value,
|
|
1309
1310
|
isFullscreen: re.value,
|
|
1310
|
-
isCustom: v(
|
|
1311
|
+
isCustom: v(Wt)(e.value.style.chart.tooltip.customFormat),
|
|
1311
1312
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1312
1313
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1313
1314
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1314
1315
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1315
1316
|
}, {
|
|
1316
1317
|
"tooltip-before": C(() => [
|
|
1317
|
-
L(a.$slots, "tooltip-before", W(Y({ ...
|
|
1318
|
+
L(a.$slots, "tooltip-before", W(Y({ ...Ne.value })), void 0, !0)
|
|
1318
1319
|
]),
|
|
1319
1320
|
"tooltip-after": C(() => [
|
|
1320
|
-
L(a.$slots, "tooltip-after", W(Y({ ...
|
|
1321
|
+
L(a.$slots, "tooltip-after", W(Y({ ...Ne.value })), void 0, !0)
|
|
1321
1322
|
]),
|
|
1322
1323
|
_: 3
|
|
1323
1324
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -1350,7 +1351,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1350
1351
|
a.$slots.pattern ? {
|
|
1351
1352
|
name: "legend-pattern",
|
|
1352
1353
|
fn: C(({ legend: t, index: s }) => [
|
|
1353
|
-
he(
|
|
1354
|
+
he(el, {
|
|
1354
1355
|
shape: t.shape,
|
|
1355
1356
|
radius: 30,
|
|
1356
1357
|
stroke: "none",
|
|
@@ -1429,10 +1430,10 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1429
1430
|
key: "1"
|
|
1430
1431
|
} : void 0
|
|
1431
1432
|
]), 1040)) : d("", !0),
|
|
1432
|
-
v(ne) ? (r(), B(
|
|
1433
|
+
v(ne) ? (r(), B(Ga, { key: 7 })) : d("", !0)
|
|
1433
1434
|
], 46, rl));
|
|
1434
1435
|
}
|
|
1435
|
-
},
|
|
1436
|
+
}, gs = /* @__PURE__ */ sl(Kl, [["__scopeId", "data-v-45f28f70"]]);
|
|
1436
1437
|
export {
|
|
1437
|
-
|
|
1438
|
+
gs as default
|
|
1438
1439
|
};
|