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,16 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, ref as v, shallowRef as Ee, computed as y, onMounted as Mt, onBeforeUnmount as zt, toRefs as Nt, watch as K, watchEffect as Ot, createElementBlock as r, openBlock as o, unref as
|
|
2
|
-
import {
|
|
3
|
-
import { t as qe, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
import { defineAsyncComponent as O, ref as v, shallowRef as Ee, computed as y, onMounted as Mt, onBeforeUnmount as zt, toRefs as Nt, watch as K, watchEffect as Ot, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as L, normalizeClass as P, renderSlot as p, createBlock as I, createCommentVNode as h, createElementVNode as _, createVNode as de, createSlots as He, withCtx as m, normalizeProps as R, guardReactiveProps as B, Fragment as b, renderList as g, toDisplayString as T, Teleport as It, resolveDynamicComponent as Ft, mergeProps as Pt, createTextVNode as We, nextTick as Dt } from "vue";
|
|
2
|
+
import { c as je, o as Ue, f as Ge, g as Xt, t as Rt, e as Bt, h as Yt, p as Q, E as Ve, a as Y, d as E, X as Et, m as Ht, r as Wt, N as jt, G as Ut, F as D, b as Gt, D as ee, x as Vt, y as qt, z as Zt } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as qe, u as Jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Kt, a as Ze } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as Qt, B as el } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as tl } from "./usePrinter-Yeu5jOfm.js";
|
|
7
|
+
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as al } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import ol from "./img-CH7J0fYg.js";
|
|
11
|
+
import rl from "./Title-pI68ZJsq.js";
|
|
12
|
+
import { t as nl } from "./themes-D3cUNuKw.js";
|
|
13
|
+
import il from "./Legend-_Rv594VS.js";
|
|
14
|
+
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
15
|
const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "width", "height"], yl = { key: 1 }, fl = ["id"], xl = ["stop-color"], pl = ["stop-color"], ml = ["stop-color"], bl = { key: 2 }, gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = { key: 3 }, wl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Cl = ["x", "y", "fill", "font-size"], Al = ["transform", "font-size", "fill", "font-weight"], _l = { key: 6 }, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = { key: 7 }, Sl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Tl = ["transform", "fill", "font-size", "text-anchor"], Ml = ["x", "y", "font-size", "fill", "font-weight"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["d", "stroke", "stroke-width"], Il = ["d", "stroke", "stroke-width"], Fl = ["cx", "cy", "fill", "r"], Pl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Dl = { key: 1 }, Xl = ["x", "y", "font-size", "fill", "font-weight"], Rl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Bl = { key: 2 }, Yl = ["x", "y", "font-size", "font-weight", "fill"], El = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Hl = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
@@ -32,7 +33,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
35
|
setup(Je, { expose: Ke, emit: Qe }) {
|
|
35
|
-
const et = O(() => import("./Tooltip-
|
|
36
|
+
const et = O(() => import("./Tooltip-Clf2K3CF.js")), tt = O(() => import("./BaseIcon-D2f9w5Z5.js")), lt = O(() => import("./vue-ui-accordion-D-L73-T2.js")), at = O(() => import("./DataTable-xISHA7Pu.js")), st = O(() => import("./PenAndPaper-CtDMyIvW.js")), ot = O(() => import("./UserOptions-Bn3u4JQu.js")), rt = O(() => import("./PackageVersion-B6W-zkH-.js")), nt = O(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_history_plot: it } = Kt(), d = Je, $ = v(null), ye = v(null), fe = v(0), xe = v(null), pe = v(0), me = v(0), be = v(0), M = Ee(null), X = Ee(null), ge = v(null), S = v(je()), te = v(!1), le = v(""), w = v([]), H = v(!1), A = v(null), W = v(!1), ke = v(null), we = v(!1), j = v(null), ae = v(null), se = v(null), oe = v(null), G = v(null), re = v(null), V = y({
|
|
36
37
|
get: () => !!d.dataset && d.dataset.length,
|
|
37
38
|
set: (t) => t
|
|
38
39
|
}), Ce = Qe;
|
|
@@ -45,8 +46,8 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
45
46
|
componentName: "VueUiHistoryPlot",
|
|
46
47
|
type: "dataset",
|
|
47
48
|
debug: Ae.value
|
|
48
|
-
}),
|
|
49
|
-
|
|
49
|
+
}), ie.value = !0) : d.dataset.forEach((t, a) => {
|
|
50
|
+
Xt({
|
|
50
51
|
datasetObject: t,
|
|
51
52
|
requiredAttributes: ["name", "values"]
|
|
52
53
|
}).forEach((l) => {
|
|
@@ -58,9 +59,9 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
58
59
|
debug: Ae.value
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
|
-
}), Ue(d.dataset) || (
|
|
62
|
+
}), Ue(d.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
62
63
|
const t = qe(() => {
|
|
63
|
-
const { width: a, height: l } =
|
|
64
|
+
const { width: a, height: l } = Jt({
|
|
64
65
|
chart: $.value,
|
|
65
66
|
title: e.value.style.chart.title.text ? ye.value : null,
|
|
66
67
|
noTitle: ge.value,
|
|
@@ -122,18 +123,18 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
122
123
|
function ne() {
|
|
123
124
|
const t = Ze({
|
|
124
125
|
userConfig: d.config,
|
|
125
|
-
defaultConfig:
|
|
126
|
+
defaultConfig: it
|
|
126
127
|
});
|
|
127
128
|
let a = {};
|
|
128
129
|
return t.theme ? a = {
|
|
129
130
|
...Ze({
|
|
130
|
-
userConfig:
|
|
131
|
+
userConfig: nl.vue_ui_history_plot[t.theme] || d.config,
|
|
131
132
|
defaultConfig: t
|
|
132
133
|
}),
|
|
133
|
-
customPalette:
|
|
134
|
+
customPalette: Gt[t.theme] || Q
|
|
134
135
|
} : a = t, d.config && ee(d.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = d.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, d.config && ee(d.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = d.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, d.config && ee(d.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = d.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, d.config && ee(d.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = d.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
135
136
|
}
|
|
136
|
-
const e = v(ne()), { loading: z, FINAL_DATASET:
|
|
137
|
+
const e = v(ne()), { loading: z, FINAL_DATASET: ut, manualLoading: ie } = Qt({
|
|
137
138
|
...Nt(d),
|
|
138
139
|
FINAL_CONFIG: e,
|
|
139
140
|
prepareConfig: ne,
|
|
@@ -149,7 +150,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
149
150
|
]
|
|
150
151
|
}
|
|
151
152
|
],
|
|
152
|
-
skeletonConfig:
|
|
153
|
+
skeletonConfig: Rt({
|
|
153
154
|
defaultConfig: e.value,
|
|
154
155
|
userConfig: {
|
|
155
156
|
userOptions: { show: !1 },
|
|
@@ -201,17 +202,17 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
})
|
|
204
|
-
}), { userOptionsVisible:
|
|
205
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: Le, keepUserOptionState: $e } = ll({ config: e.value }), { svgRef: Se } = al({ config: e.value.style.chart.title });
|
|
205
206
|
K(() => d.config, (t) => {
|
|
206
|
-
z.value || (e.value = ne()),
|
|
207
|
+
z.value || (e.value = ne()), ue.value = !e.value.userOptions.showOnChartHover, _e(), fe.value += 1, me.value += 1, pe.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
207
208
|
}, { deep: !0 }), K(() => d.dataset, (t) => {
|
|
208
|
-
Array.isArray(t) && t.length > 0 && (
|
|
209
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
209
210
|
}, { deep: !0 });
|
|
210
|
-
const { isPrinting: Te, isImaging: Me, generatePdf: ze, generateImage: Ne } =
|
|
211
|
+
const { isPrinting: Te, isImaging: Me, generatePdf: ze, generateImage: Ne } = tl({
|
|
211
212
|
elementId: `history_plot_${S.value}`,
|
|
212
213
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
213
214
|
options: e.value.userOptions.print
|
|
214
|
-
}), ct = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), vt = y(() =>
|
|
215
|
+
}), ct = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), vt = y(() => Bt(e.value.customPalette)), C = v({
|
|
215
216
|
showTable: e.value.table.show,
|
|
216
217
|
showTooltip: e.value.style.chart.tooltip.show
|
|
217
218
|
});
|
|
@@ -227,9 +228,9 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
227
228
|
}), ht = y(() => f.value.width), dt = y(() => f.value.height);
|
|
228
229
|
function yt() {
|
|
229
230
|
let t = 0;
|
|
230
|
-
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((
|
|
231
|
+
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((i, s) => {
|
|
231
232
|
const k = s.getComputedTextLength();
|
|
232
|
-
return k >
|
|
233
|
+
return k > i ? k : i;
|
|
233
234
|
}, 0));
|
|
234
235
|
const a = oe.value ? oe.value.getBoundingClientRect().width : 0;
|
|
235
236
|
return t + a + (a ? 24 : 0);
|
|
@@ -240,8 +241,8 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
240
241
|
Ot((t) => {
|
|
241
242
|
const a = G.value;
|
|
242
243
|
if (!a) return;
|
|
243
|
-
const l = new ResizeObserver((
|
|
244
|
-
ft(
|
|
244
|
+
const l = new ResizeObserver((i) => {
|
|
245
|
+
ft(i[0].contentRect.height);
|
|
245
246
|
});
|
|
246
247
|
l.observe(a), t(() => l.disconnect());
|
|
247
248
|
});
|
|
@@ -251,14 +252,14 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
251
252
|
let a = 0;
|
|
252
253
|
return G.value && (a = Oe.value), t + a;
|
|
253
254
|
}), c = y(() => {
|
|
254
|
-
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = yt(),
|
|
255
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = yt(), i = e.value.style.chart.plots.radius;
|
|
255
256
|
return {
|
|
256
257
|
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
257
|
-
top: a +
|
|
258
|
-
right: f.value.width - e.value.style.chart.padding.right -
|
|
259
|
-
bottom: f.value.height - e.value.style.chart.padding.bottom - Ie.value -
|
|
260
|
-
width: f.value.width - t - e.value.style.chart.padding.right - l -
|
|
261
|
-
height: f.value.height - a - e.value.style.chart.padding.bottom - Ie.value -
|
|
258
|
+
top: a + i,
|
|
259
|
+
right: f.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
|
|
260
|
+
bottom: f.value.height - e.value.style.chart.padding.bottom - Ie.value - i - e.value.style.chart.axes.x.name.offsetY,
|
|
261
|
+
width: f.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
|
|
262
|
+
height: f.value.height - a - e.value.style.chart.padding.bottom - Ie.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
262
263
|
};
|
|
263
264
|
}), n = v({
|
|
264
265
|
plots: e.value.style.chart.plots.radius,
|
|
@@ -268,9 +269,9 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
268
269
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
269
270
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
270
271
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
271
|
-
}), N = y(() =>
|
|
272
|
+
}), N = y(() => ut.value.map((t, a) => ({
|
|
272
273
|
...t,
|
|
273
|
-
color: t.color ?
|
|
274
|
+
color: t.color ? Yt(t.color) : vt.value[a] || Q[a] || Q[a % Q.length],
|
|
274
275
|
seriesIndex: a
|
|
275
276
|
}))), xt = y(() => Math.max(...N.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), pt = y(() => {
|
|
276
277
|
const t = Math.min(...N.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
@@ -323,11 +324,11 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
323
324
|
color: t.color,
|
|
324
325
|
seriesName: t.name,
|
|
325
326
|
id: je()
|
|
326
|
-
})),
|
|
327
|
+
})), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
327
328
|
return {
|
|
328
329
|
...t,
|
|
329
330
|
plots: l,
|
|
330
|
-
path: `M${
|
|
331
|
+
path: `M${i}`
|
|
331
332
|
};
|
|
332
333
|
}));
|
|
333
334
|
function Fe(t) {
|
|
@@ -366,10 +367,10 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
366
367
|
}
|
|
367
368
|
function _t({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
368
369
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), ce.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: N.value }, A.value = t;
|
|
369
|
-
const
|
|
370
|
-
if (W.value = !1,
|
|
370
|
+
const i = e.value.style.chart.tooltip.customFormat;
|
|
371
|
+
if (W.value = !1, Zt(i))
|
|
371
372
|
try {
|
|
372
|
-
const s =
|
|
373
|
+
const s = i({
|
|
373
374
|
seriesIndex: l,
|
|
374
375
|
datapoint: t,
|
|
375
376
|
plotIndex: a,
|
|
@@ -414,7 +415,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
414
415
|
e.value.table.columnNames.datapoint,
|
|
415
416
|
e.value.table.columnNames.x,
|
|
416
417
|
e.value.table.columnNames.y
|
|
417
|
-
], a = F.value.flatMap((
|
|
418
|
+
], a = F.value.flatMap((i) => i.plots.map((s) => [
|
|
418
419
|
{
|
|
419
420
|
color: s.color,
|
|
420
421
|
name: s.seriesName
|
|
@@ -472,12 +473,12 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
472
473
|
[J.label],
|
|
473
474
|
[J.valueX],
|
|
474
475
|
[J.valueY]
|
|
475
|
-
])),
|
|
476
|
+
])), i = [
|
|
476
477
|
[e.value.style.chart.title.text],
|
|
477
478
|
[e.value.style.chart.title.subtitle.text],
|
|
478
479
|
a
|
|
479
|
-
].concat(l), s =
|
|
480
|
-
t ? t(s) :
|
|
480
|
+
].concat(l), s = Vt(i);
|
|
481
|
+
t ? t(s) : qt({
|
|
481
482
|
csvContent: s,
|
|
482
483
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
483
484
|
});
|
|
@@ -498,18 +499,18 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
498
499
|
}
|
|
499
500
|
async function $t({ scale: t = 2 } = {}) {
|
|
500
501
|
if (!$.value) return;
|
|
501
|
-
const { width: a, height: l } = $.value.getBoundingClientRect(),
|
|
502
|
+
const { width: a, height: l } = $.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await ol({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
502
503
|
return {
|
|
503
504
|
imageUri: s,
|
|
504
505
|
base64: k,
|
|
505
506
|
title: e.value.style.chart.title.text,
|
|
506
507
|
width: a,
|
|
507
508
|
height: l,
|
|
508
|
-
aspectRatio:
|
|
509
|
+
aspectRatio: i
|
|
509
510
|
};
|
|
510
511
|
}
|
|
511
512
|
const St = y(() => x.value.tickX), Tt = y(() => ({ start: 0, end: x.value.tickX.length }));
|
|
512
|
-
|
|
513
|
+
sl({
|
|
513
514
|
timeLabelsEls: G,
|
|
514
515
|
timeLabels: St,
|
|
515
516
|
slicer: Tt,
|
|
@@ -574,13 +575,13 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
574
575
|
ref: $,
|
|
575
576
|
class: P({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
|
|
576
577
|
style: L(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
577
|
-
onMouseenter: a[2] || (a[2] = () =>
|
|
578
|
-
onMouseleave: a[3] || (a[3] = () =>
|
|
578
|
+
onMouseenter: a[2] || (a[2] = () => u(Le)(!0)),
|
|
579
|
+
onMouseleave: a[3] || (a[3] = () => u(Le)(!1))
|
|
579
580
|
}, [
|
|
580
581
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
581
|
-
e.value.userOptions.buttons.annotator ? (o(), I(
|
|
582
|
+
e.value.userOptions.buttons.annotator ? (o(), I(u(st), {
|
|
582
583
|
key: 0,
|
|
583
|
-
svgRef:
|
|
584
|
+
svgRef: u(Se),
|
|
584
585
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
585
586
|
color: e.value.style.chart.color,
|
|
586
587
|
active: Z.value,
|
|
@@ -600,7 +601,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
600
601
|
class: "vue-ui-xy-title",
|
|
601
602
|
style: L(`font-family:${e.value.style.fontFamily}`)
|
|
602
603
|
}, [
|
|
603
|
-
(o(), I(
|
|
604
|
+
(o(), I(rl, {
|
|
604
605
|
key: `title_${fe.value}`,
|
|
605
606
|
config: {
|
|
606
607
|
title: {
|
|
@@ -617,14 +618,14 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
617
618
|
_("div", {
|
|
618
619
|
id: `legend-top-${S.value}`
|
|
619
620
|
}, null, 8, vl),
|
|
620
|
-
e.value.userOptions.show && V.value && (
|
|
621
|
+
e.value.userOptions.show && V.value && (u($e) || u(ue)) ? (o(), I(u(ot), {
|
|
621
622
|
ref_key: "userOptionsRef",
|
|
622
623
|
ref: ae,
|
|
623
624
|
key: `user_option_${be.value}`,
|
|
624
625
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
625
626
|
color: e.value.style.chart.color,
|
|
626
|
-
isPrinting:
|
|
627
|
-
isImaging:
|
|
627
|
+
isPrinting: u(Te),
|
|
628
|
+
isImaging: u(Me),
|
|
628
629
|
uid: S.value,
|
|
629
630
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
630
631
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -644,20 +645,20 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
644
645
|
printScale: e.value.userOptions.print.scale,
|
|
645
646
|
tableDialog: e.value.table.useDialog,
|
|
646
647
|
onToggleFullscreen: Xe,
|
|
647
|
-
onGeneratePdf:
|
|
648
|
+
onGeneratePdf: u(ze),
|
|
648
649
|
onGenerateCsv: ve,
|
|
649
|
-
onGenerateImage:
|
|
650
|
+
onGenerateImage: u(Ne),
|
|
650
651
|
onToggleTable: Re,
|
|
651
652
|
onToggleTooltip: Be,
|
|
652
653
|
onToggleAnnotator: he,
|
|
653
654
|
style: L({
|
|
654
|
-
visibility:
|
|
655
|
+
visibility: u($e) ? u(ue) ? "visible" : "hidden" : "visible"
|
|
655
656
|
})
|
|
656
657
|
}, He({ _: 2 }, [
|
|
657
658
|
t.$slots.menuIcon ? {
|
|
658
659
|
name: "menuIcon",
|
|
659
|
-
fn: m(({ isOpen: l, color:
|
|
660
|
-
p(t.$slots, "menuIcon", R(B({ isOpen: l, color:
|
|
660
|
+
fn: m(({ isOpen: l, color: i }) => [
|
|
661
|
+
p(t.$slots, "menuIcon", R(B({ isOpen: l, color: i })), void 0, !0)
|
|
661
662
|
]),
|
|
662
663
|
key: "0"
|
|
663
664
|
} : void 0,
|
|
@@ -698,15 +699,15 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
698
699
|
} : void 0,
|
|
699
700
|
t.$slots.optionFullscreen ? {
|
|
700
701
|
name: "optionFullscreen",
|
|
701
|
-
fn: m(({ toggleFullscreen: l, isFullscreen:
|
|
702
|
-
p(t.$slots, "optionFullscreen", R(B({ toggleFullscreen: l, isFullscreen:
|
|
702
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
703
|
+
p(t.$slots, "optionFullscreen", R(B({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
703
704
|
]),
|
|
704
705
|
key: "6"
|
|
705
706
|
} : void 0,
|
|
706
707
|
t.$slots.optionAnnotator ? {
|
|
707
708
|
name: "optionAnnotator",
|
|
708
|
-
fn: m(({ toggleAnnotator: l, isAnnotator:
|
|
709
|
-
p(t.$slots, "optionAnnotator", R(B({ toggleAnnotator: l, isAnnotator:
|
|
709
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
710
|
+
p(t.$slots, "optionAnnotator", R(B({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
710
711
|
]),
|
|
711
712
|
key: "7"
|
|
712
713
|
} : void 0
|
|
@@ -714,11 +715,11 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
714
715
|
(o(), r("svg", {
|
|
715
716
|
ref_key: "svgRef",
|
|
716
717
|
ref: Se,
|
|
717
|
-
xmlns:
|
|
718
|
+
xmlns: u(Et),
|
|
718
719
|
viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
|
|
719
720
|
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
720
721
|
}, [
|
|
721
|
-
de(
|
|
722
|
+
de(u(rt)),
|
|
722
723
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
723
724
|
key: 0,
|
|
724
725
|
x: c.value.left,
|
|
@@ -732,17 +733,17 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
732
733
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
733
734
|
], 8, dl)) : h("", !0),
|
|
734
735
|
e.value.style.chart.plots.gradient.show ? (o(), r("defs", yl, [
|
|
735
|
-
(o(!0), r(b, null, g(F.value, (l,
|
|
736
|
-
id: `gradient_${
|
|
736
|
+
(o(!0), r(b, null, g(F.value, (l, i) => (o(), r("radialGradient", {
|
|
737
|
+
id: `gradient_${i}_${S.value}`,
|
|
737
738
|
fy: "30%"
|
|
738
739
|
}, [
|
|
739
740
|
_("stop", {
|
|
740
741
|
offset: "10%",
|
|
741
|
-
"stop-color":
|
|
742
|
+
"stop-color": u(Ht)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
742
743
|
}, null, 8, xl),
|
|
743
744
|
_("stop", {
|
|
744
745
|
offset: "90%",
|
|
745
|
-
"stop-color":
|
|
746
|
+
"stop-color": u(Wt)(l.color, 0.1)
|
|
746
747
|
}, null, 8, pl),
|
|
747
748
|
_("stop", {
|
|
748
749
|
offset: "100%",
|
|
@@ -783,10 +784,10 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
783
784
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
784
785
|
"font-size": n.value.yAxisLabels,
|
|
785
786
|
"text-anchor": "end"
|
|
786
|
-
}, T(
|
|
787
|
+
}, T(u(Y)(
|
|
787
788
|
e.value.style.chart.axes.y.labels.formatter,
|
|
788
789
|
l.value,
|
|
789
|
-
|
|
790
|
+
u(E)({
|
|
790
791
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
791
792
|
v: l.value,
|
|
792
793
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -837,10 +838,10 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
837
838
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
838
839
|
"font-size": n.value.xAxisLabels,
|
|
839
840
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
840
|
-
}, T(
|
|
841
|
+
}, T(u(Y)(
|
|
841
842
|
e.value.style.chart.axes.x.labels.formatter,
|
|
842
843
|
l.value,
|
|
843
|
-
|
|
844
|
+
u(E)({
|
|
844
845
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
845
846
|
v: l.value,
|
|
846
847
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
@@ -879,7 +880,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
879
880
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
880
881
|
"stroke-linecap": "round"
|
|
881
882
|
}, null, 8, Nl)) : h("", !0),
|
|
882
|
-
(o(!0), r(b, null, g(F.value, (l,
|
|
883
|
+
(o(!0), r(b, null, g(F.value, (l, i) => (o(), r("g", null, [
|
|
883
884
|
e.value.style.chart.paths.show ? (o(), r("g", {
|
|
884
885
|
key: 0,
|
|
885
886
|
style: L({
|
|
@@ -893,7 +894,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
893
894
|
fill: "none",
|
|
894
895
|
"stroke-linecap": "round",
|
|
895
896
|
"stroke-linejoin": "round",
|
|
896
|
-
class: P({ animated: e.value.useCssAnimation && !
|
|
897
|
+
class: P({ animated: e.value.useCssAnimation && !u(z) })
|
|
897
898
|
}, null, 10, Ol),
|
|
898
899
|
_("path", {
|
|
899
900
|
d: l.path,
|
|
@@ -902,7 +903,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
902
903
|
fill: "none",
|
|
903
904
|
"stroke-linecap": "round",
|
|
904
905
|
"stroke-linejoin": "round",
|
|
905
|
-
class: P({ animated: e.value.useCssAnimation && !
|
|
906
|
+
class: P({ animated: e.value.useCssAnimation && !u(z) })
|
|
906
907
|
}, null, 10, Il)
|
|
907
908
|
], 4)) : h("", !0),
|
|
908
909
|
(o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
|
|
@@ -915,11 +916,11 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
915
916
|
(o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
|
|
916
917
|
cx: s.x,
|
|
917
918
|
cy: s.y,
|
|
918
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${
|
|
919
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${S.value})` : s.color,
|
|
919
920
|
r: n.value.plots,
|
|
920
921
|
stroke: e.value.style.chart.plots.stroke,
|
|
921
922
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
922
|
-
class: P({ animated: e.value.useCssAnimation && !
|
|
923
|
+
class: P({ animated: e.value.useCssAnimation && !u(z) }),
|
|
923
924
|
style: L({
|
|
924
925
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
925
926
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -936,12 +937,12 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
936
937
|
fill: e.value.style.chart.plots.labels.color,
|
|
937
938
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
938
939
|
"text-anchor": "middle",
|
|
939
|
-
class: P({ animated: e.value.useCssAnimation && !
|
|
940
|
+
class: P({ animated: e.value.useCssAnimation && !u(z) }),
|
|
940
941
|
style: L({
|
|
941
942
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
942
943
|
transition: "opacity 0.2s ease-in-out"
|
|
943
944
|
}),
|
|
944
|
-
innerHTML:
|
|
945
|
+
innerHTML: u(jt)({
|
|
945
946
|
content: String(s.label),
|
|
946
947
|
fontSize: n.value.labels,
|
|
947
948
|
fill: e.value.style.chart.plots.labels.color,
|
|
@@ -956,7 +957,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
956
957
|
fill: e.value.style.chart.plots.labels.color,
|
|
957
958
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
958
959
|
"text-anchor": "middle",
|
|
959
|
-
class: P({ animated: e.value.useCssAnimation && !
|
|
960
|
+
class: P({ animated: e.value.useCssAnimation && !u(z) }),
|
|
960
961
|
style: L({
|
|
961
962
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
962
963
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -970,9 +971,9 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
970
971
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
971
972
|
"font-size": n.value.indexLabels,
|
|
972
973
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
973
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ?
|
|
974
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Ut)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
974
975
|
"text-anchor": "middle",
|
|
975
|
-
class: P({ animated: e.value.useCssAnimation && !
|
|
976
|
+
class: P({ animated: e.value.useCssAnimation && !u(z) }),
|
|
976
977
|
style: L({
|
|
977
978
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
978
979
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -981,24 +982,24 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
981
982
|
])) : h("", !0)
|
|
982
983
|
]))), 256)),
|
|
983
984
|
(o(!0), r(b, null, g(F.value, (l) => (o(), r("g", null, [
|
|
984
|
-
(o(!0), r(b, null, g(l.plots, (
|
|
985
|
-
cx:
|
|
986
|
-
cy:
|
|
985
|
+
(o(!0), r(b, null, g(l.plots, (i, s) => (o(), r("circle", {
|
|
986
|
+
cx: i.x,
|
|
987
|
+
cy: i.y,
|
|
987
988
|
fill: "transparent",
|
|
988
989
|
r: n.value.plots,
|
|
989
990
|
stroke: "none",
|
|
990
991
|
onMouseenter: (k) => _t({
|
|
991
|
-
datapoint:
|
|
992
|
+
datapoint: i,
|
|
992
993
|
plotIndex: s,
|
|
993
994
|
seriesIndex: l.seriesIndex
|
|
994
995
|
}),
|
|
995
996
|
onMouseleave: (k) => At({
|
|
996
|
-
datapoint:
|
|
997
|
+
datapoint: i,
|
|
997
998
|
plotIndex: s,
|
|
998
999
|
seriesIndex: l.seriesIndex
|
|
999
1000
|
}),
|
|
1000
1001
|
onClick: (k) => Ct({
|
|
1001
|
-
datapoint:
|
|
1002
|
+
datapoint: i,
|
|
1002
1003
|
plotIndex: s,
|
|
1003
1004
|
seriesIndex: l.seriesIndex
|
|
1004
1005
|
})
|
|
@@ -1007,7 +1008,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1007
1008
|
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1008
1009
|
], 12, hl)),
|
|
1009
1010
|
t.$slots.watermark ? (o(), r("div", Hl, [
|
|
1010
|
-
p(t.$slots, "watermark", R(B({ isPrinting:
|
|
1011
|
+
p(t.$slots, "watermark", R(B({ isPrinting: u(Te) || u(Me) })), void 0, !0)
|
|
1011
1012
|
])) : h("", !0),
|
|
1012
1013
|
_("div", {
|
|
1013
1014
|
id: `legend-bottom-${S.value}`
|
|
@@ -1020,7 +1021,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1020
1021
|
ref_key: "chartLegend",
|
|
1021
1022
|
ref: xe
|
|
1022
1023
|
}, [
|
|
1023
|
-
e.value.style.chart.legend.show && V.value ? (o(), I(
|
|
1024
|
+
e.value.style.chart.legend.show && V.value ? (o(), I(il, {
|
|
1024
1025
|
key: `legend_${pe.value}`,
|
|
1025
1026
|
legendSet: Pe.value,
|
|
1026
1027
|
config: wt.value,
|
|
@@ -1028,7 +1029,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1028
1029
|
Fe(l.seriesIndex), De(l);
|
|
1029
1030
|
})
|
|
1030
1031
|
}, {
|
|
1031
|
-
item: m(({ legend: l, index:
|
|
1032
|
+
item: m(({ legend: l, index: i }) => [
|
|
1032
1033
|
_("div", {
|
|
1033
1034
|
onClick: (s) => {
|
|
1034
1035
|
l.segregate(), De(l);
|
|
@@ -1051,7 +1052,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1051
1052
|
}, [
|
|
1052
1053
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1053
1054
|
], 512)) : h("", !0),
|
|
1054
|
-
de(
|
|
1055
|
+
de(u(et), {
|
|
1055
1056
|
show: C.value.showTooltip && te.value,
|
|
1056
1057
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1057
1058
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1085,7 +1086,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1085
1086
|
onClose: Ye
|
|
1086
1087
|
}), He({
|
|
1087
1088
|
content: m(() => [
|
|
1088
|
-
(o(), I(
|
|
1089
|
+
(o(), I(u(at), {
|
|
1089
1090
|
key: `table_${me.value}`,
|
|
1090
1091
|
colNames: q.value.colNames,
|
|
1091
1092
|
head: q.value.head,
|
|
@@ -1124,7 +1125,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1124
1125
|
class: "vue-ui-user-options-button",
|
|
1125
1126
|
onClick: a[1] || (a[1] = (l) => ve(e.value.userOptions.callbacks.csv))
|
|
1126
1127
|
}, [
|
|
1127
|
-
de(
|
|
1128
|
+
de(u(tt), {
|
|
1128
1129
|
name: "excel",
|
|
1129
1130
|
stroke: U.value.props.color
|
|
1130
1131
|
}, null, 8, ["stroke"])
|
|
@@ -1133,10 +1134,10 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1133
1134
|
key: "1"
|
|
1134
1135
|
} : void 0
|
|
1135
1136
|
]), 1040)) : h("", !0),
|
|
1136
|
-
|
|
1137
|
+
u(z) ? (o(), I(el, { key: 8 })) : h("", !0)
|
|
1137
1138
|
], 46, cl));
|
|
1138
1139
|
}
|
|
1139
|
-
},
|
|
1140
|
+
}, ia = /* @__PURE__ */ ul(Gl, [["__scopeId", "data-v-e31fd7ba"]]);
|
|
1140
1141
|
export {
|
|
1141
|
-
|
|
1142
|
+
ia as default
|
|
1142
1143
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed as C, useSlots as w, onMounted as
|
|
2
|
-
import { u as M } from "./useNestedProp-
|
|
3
|
-
import {
|
|
1
|
+
import { defineAsyncComponent as z, computed as C, useSlots as w, onMounted as y, watch as k, ref as $, createElementBlock as s, openBlock as i, normalizeStyle as u, normalizeClass as r, createElementVNode as b, renderSlot as n, createTextVNode as h, toDisplayString as F, createVNode as B, unref as v, Fragment as L } from "vue";
|
|
2
|
+
import { u as M, a as E } from "./useNestedProp-DF7e2h1z.js";
|
|
3
|
+
import { a as I, d as O } from "./lib-p5pfHmOX.js";
|
|
4
4
|
const R = {
|
|
5
5
|
__name: "vue-ui-kpi",
|
|
6
6
|
props: {
|
|
@@ -16,37 +16,37 @@ const R = {
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(o) {
|
|
19
|
-
const N = z(() => import("./vue-ui-digits-
|
|
19
|
+
const N = z(() => import("./vue-ui-digits-DOUNtmB0.js")), { vue_ui_kpi: D } = M(), l = o, e = C({
|
|
20
20
|
get: () => c(),
|
|
21
21
|
set: (a) => a
|
|
22
22
|
}), S = w(), A = C(() => e.value.debug);
|
|
23
|
-
|
|
23
|
+
y(() => {
|
|
24
24
|
S["chart-background"] && A.value && console.warn("VueUiKpi does not support the #chart-background slot.");
|
|
25
25
|
});
|
|
26
26
|
function c() {
|
|
27
|
-
return
|
|
27
|
+
return E({
|
|
28
28
|
userConfig: l.config,
|
|
29
29
|
defaultConfig: D
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
e.value = c(),
|
|
32
|
+
k(() => l.config, (a) => {
|
|
33
|
+
e.value = c(), m();
|
|
34
34
|
}, { deep: !0 });
|
|
35
|
-
const x = $((typeof l.dataset == "number", l.dataset)), t = $(e.value.useAnimation ? e.value.animationValueStart : x.value),
|
|
35
|
+
const x = $((typeof l.dataset == "number", l.dataset)), t = $(e.value.useAnimation ? e.value.animationValueStart : x.value), d = (a) => {
|
|
36
36
|
const f = e.value.animationFrames, g = Math.abs(a - t.value) / f;
|
|
37
37
|
function p() {
|
|
38
38
|
t.value < a ? t.value = Math.min(t.value + g, a) : t.value > a && (t.value = Math.max(t.value - g, a)), t.value !== a && requestAnimationFrame(p);
|
|
39
39
|
}
|
|
40
40
|
p();
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
y(() => {
|
|
43
|
+
m();
|
|
44
44
|
});
|
|
45
|
-
function
|
|
46
|
-
e.value.useAnimation ? (t.value = e.value.animationValueStart,
|
|
45
|
+
function m() {
|
|
46
|
+
e.value.useAnimation ? (t.value = e.value.animationValueStart, d(l.dataset)) : t.value = l.dataset;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
49
|
-
e.value.useAnimation ?
|
|
48
|
+
return k(() => l.dataset, (a) => {
|
|
49
|
+
e.value.useAnimation ? d(a) : t.value = a;
|
|
50
50
|
}), (a, f) => (i(), s("div", {
|
|
51
51
|
class: r(`vue-ui-kpi ${e.value.layoutClass}`),
|
|
52
52
|
style: u(`background:${e.value.backgroundColor}; ${e.value.layoutCss}`)
|