vue-data-ui 2.4.51 → 2.4.52
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-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
- package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
- package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
- package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
- package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
- package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
- package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
- package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
- package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
- package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
- package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
- package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
- package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
- package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
- package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
- package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
- package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
- package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
- package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
- package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
- package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
- package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
- package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
- package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
- package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
- package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
- package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
- package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
- package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
- package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
- package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
- package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
- package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
- package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
- package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
- package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as c, computed as f, onMounted as Ue, onBeforeUnmount as We, watch as
|
|
2
|
-
import { u as Re, c as we, o as qe, e as Ce, g as Ze, b as Je, d as Ke, p as
|
|
3
|
-
import { u as $e } from "./useNestedProp-
|
|
4
|
-
import { u as ut, U as it } from "./usePrinter-
|
|
5
|
-
import { _ as ct } from "./PackageVersion-
|
|
6
|
-
import { L as vt } from "./Legend-
|
|
7
|
-
import { _ as ht } from "./Title-
|
|
8
|
-
import { _ as yt } from "./Tooltip-
|
|
9
|
-
import { D as dt } from "./DataTable-
|
|
10
|
-
import ft from "./vue-ui-accordion-
|
|
11
|
-
import { P as xt } from "./PenAndPaper-
|
|
12
|
-
import pt from "./vue-ui-skeleton-
|
|
1
|
+
import { ref as c, computed as f, onMounted as Ue, onBeforeUnmount as We, watch as He, openBlock as s, createElementBlock as r, normalizeClass as O, normalizeStyle as $, unref as y, renderSlot as p, createBlock as z, createCommentVNode as v, createSlots as Ge, withCtx as m, normalizeProps as Y, guardReactiveProps as j, createVNode as ke, Fragment as b, renderList as k, createElementVNode as T, toDisplayString as L, createTextVNode as Ee, nextTick as Ve } from "vue";
|
|
2
|
+
import { u as Re, c as we, o as qe, e as Ce, g as Ze, b as Je, d as Ke, p as G, D as _e, i as I, f as F, X as Qe, l as et, h as tt, G as lt, t as at, a as st, C as E, x as ot, q as rt, r as nt, F as N } from "./index-K5uyh1gA.js";
|
|
3
|
+
import { u as $e } from "./useNestedProp-DifqJZAs.js";
|
|
4
|
+
import { u as ut, U as it } from "./usePrinter-p_ZZlGc9.js";
|
|
5
|
+
import { _ as ct } from "./PackageVersion-Dz3KcTL4.js";
|
|
6
|
+
import { L as vt } from "./Legend-bYlSC7I7.js";
|
|
7
|
+
import { _ as ht } from "./Title-aMb2ETf7.js";
|
|
8
|
+
import { _ as yt } from "./Tooltip-BRZ3DT4p.js";
|
|
9
|
+
import { D as dt } from "./DataTable-COkA4Nyz.js";
|
|
10
|
+
import ft from "./vue-ui-accordion-CsJT7Az3.js";
|
|
11
|
+
import { P as xt } from "./PenAndPaper-BycdTwSP.js";
|
|
12
|
+
import pt from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
13
13
|
import { t as mt, u as gt } from "./useResponsive-CoxXLe23.js";
|
|
14
14
|
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt = ["stop-color"], At = ["stop-color"], Tt = ["stop-color"], Lt = { key: 1 }, St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = { key: 2 }, Nt = ["x", "y", "fill", "font-size"], Pt = ["transform", "font-size", "fill", "font-weight"],
|
|
16
|
+
const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt = ["stop-color"], At = ["stop-color"], Tt = ["stop-color"], Lt = { key: 1 }, St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = { key: 2 }, Nt = ["x", "y", "fill", "font-size"], Pt = ["transform", "font-size", "fill", "font-weight"], Ot = { key: 4 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ft = { key: 5 }, Xt = ["transform", "fill", "font-size", "text-anchor"], Dt = ["x", "y", "font-size", "fill", "font-weight"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Wt = ["cx", "cy", "fill", "r"], Ht = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Gt = { key: 1 }, Et = ["x", "y", "font-size", "fill", "font-weight"], Vt = { key: 2 }, Rt = ["x", "y", "font-size", "font-weight", "fill"], qt = ["cx", "cy", "r", "onMouseenter", "onClick"], Zt = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Jt = ["onClick"], Kt = ["innerHTML"], Qt = {
|
|
@@ -33,15 +33,15 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(Me, { expose: Ae, emit:
|
|
37
|
-
const h = Me, { vue_ui_history_plot: Te } = Re(), P = c(null),
|
|
36
|
+
setup(Me, { expose: Ae, emit: K }) {
|
|
37
|
+
const h = Me, { vue_ui_history_plot: Te } = Re(), P = c(null), Q = c(null), ee = c(0), te = c(null), le = c(0), ae = c(0), se = c(0), B = c(null), oe = c(null), X = c(we()), V = c(!1), R = c(""), g = c([]), U = c(!1), _ = c(null), D = c(!1), re = c(null), w = f({
|
|
38
38
|
get: () => !!h.dataset && h.dataset.length,
|
|
39
39
|
set: (t) => t
|
|
40
40
|
});
|
|
41
|
-
Ue(
|
|
41
|
+
Ue(ne), We(() => {
|
|
42
42
|
B.value && B.value.disconnect();
|
|
43
43
|
});
|
|
44
|
-
function
|
|
44
|
+
function ne() {
|
|
45
45
|
if (qe(h.dataset) ? Ce({
|
|
46
46
|
componentName: "VueUiHistoryPlot",
|
|
47
47
|
type: "dataset"
|
|
@@ -61,10 +61,10 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
61
61
|
const t = mt(() => {
|
|
62
62
|
const { width: a, height: l } = gt({
|
|
63
63
|
chart: P.value,
|
|
64
|
-
title: e.value.style.chart.title.text ?
|
|
65
|
-
noTitle:
|
|
66
|
-
legend: e.value.style.chart.legend.show ?
|
|
67
|
-
source:
|
|
64
|
+
title: e.value.style.chart.title.text ? Q.value : null,
|
|
65
|
+
noTitle: oe.value,
|
|
66
|
+
legend: e.value.style.chart.legend.show ? te.value : null,
|
|
67
|
+
source: re.value
|
|
68
68
|
});
|
|
69
69
|
d.value.width = a, d.value.height = l, n.value.plots = N({
|
|
70
70
|
relator: Math.min(a, l),
|
|
@@ -113,7 +113,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
113
113
|
B.value = new ResizeObserver(t), B.value.observe(P.value.parentNode);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ue() {
|
|
117
117
|
const t = $e({
|
|
118
118
|
userConfig: h.config,
|
|
119
119
|
defaultConfig: Te
|
|
@@ -124,15 +124,15 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
124
124
|
userConfig: at.vue_ui_history_plot[t.theme] || h.config,
|
|
125
125
|
defaultConfig: t
|
|
126
126
|
}),
|
|
127
|
-
customPalette: st[t.theme] ||
|
|
127
|
+
customPalette: st[t.theme] || G
|
|
128
128
|
} : a = t, h.config && E(h.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = h.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, h.config && E(h.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = h.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, h.config && E(h.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = h.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, h.config && E(h.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = h.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
129
129
|
}
|
|
130
130
|
const e = f({
|
|
131
|
-
get: () =>
|
|
131
|
+
get: () => ue(),
|
|
132
132
|
set: (t) => t
|
|
133
|
-
}), { userOptionsVisible:
|
|
134
|
-
|
|
135
|
-
e.value =
|
|
133
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ie, keepUserOptionState: ce } = bt({ config: e.value });
|
|
134
|
+
He(() => h.config, (t) => {
|
|
135
|
+
e.value = ue(), q.value = !e.value.showOnChartHover, ne(), ee.value += 1, ae.value += 1, le.value += 1, d.value.height = e.value.style.chart.height, d.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;
|
|
136
136
|
}, { deep: !0 });
|
|
137
137
|
const { isPrinting: ve, isImaging: he, generatePdf: ye, generateImage: de } = ut({
|
|
138
138
|
elementId: `history_plot_${X.value}`,
|
|
@@ -163,13 +163,13 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
163
163
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
164
164
|
}), A = f(() => w.value ? h.dataset.map((t, a) => ({
|
|
165
165
|
...t,
|
|
166
|
-
color: t.color ? Ke(t.color) : Se.value[a] ||
|
|
166
|
+
color: t.color ? Ke(t.color) : Se.value[a] || G[a] || G[a % G.length],
|
|
167
167
|
seriesIndex: a
|
|
168
168
|
})) : []), ze = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Ne = f(() => {
|
|
169
169
|
if (!w.value) return 1;
|
|
170
170
|
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
171
171
|
return t < 0 ? t : 0;
|
|
172
|
-
}), Pe = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1),
|
|
172
|
+
}), Pe = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Oe = f(() => {
|
|
173
173
|
if (!w.value) return 1;
|
|
174
174
|
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
175
175
|
return t < 0 ? t : 0;
|
|
@@ -179,7 +179,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
179
179
|
e.value.style.chart.axes.x.scaleMax === null ? ze.value : e.value.style.chart.axes.x.scaleMax,
|
|
180
180
|
e.value.style.chart.axes.x.ticks
|
|
181
181
|
), a = _e(
|
|
182
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
182
|
+
e.value.style.chart.axes.y.scaleMin === null ? Oe.value : e.value.style.chart.axes.y.scaleMin,
|
|
183
183
|
e.value.style.chart.axes.y.scaleMax === null ? Pe.value : e.value.style.chart.axes.y.scaleMax,
|
|
184
184
|
e.value.style.chart.axes.y.ticks
|
|
185
185
|
);
|
|
@@ -200,7 +200,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
200
200
|
}))
|
|
201
201
|
};
|
|
202
202
|
});
|
|
203
|
-
function
|
|
203
|
+
function Ie(t) {
|
|
204
204
|
const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
|
|
205
205
|
return u.value.left + ((t || 0) + a) / (x.value.x.max + a) * u.value.width;
|
|
206
206
|
}
|
|
@@ -213,7 +213,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
213
213
|
valueX: o.x,
|
|
214
214
|
valueY: o.y,
|
|
215
215
|
label: o.label,
|
|
216
|
-
x:
|
|
216
|
+
x: Ie(o.x),
|
|
217
217
|
y: Fe(o.y),
|
|
218
218
|
color: t.color,
|
|
219
219
|
seriesName: t.name,
|
|
@@ -243,21 +243,21 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
243
243
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
244
244
|
}));
|
|
245
245
|
function De(t) {
|
|
246
|
-
|
|
246
|
+
K("selectDatapoint", t);
|
|
247
247
|
}
|
|
248
248
|
function pe(t) {
|
|
249
|
-
|
|
249
|
+
K("selectLegend", {
|
|
250
250
|
...t,
|
|
251
251
|
isSegregated: !t.isSegregated,
|
|
252
252
|
opacity: t.isSegregated ? 1 : 0.5
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
function Ye(t) {
|
|
256
|
-
U.value = t,
|
|
256
|
+
U.value = t, se.value += 1;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const Z = c(null);
|
|
259
259
|
function je({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
260
|
-
|
|
260
|
+
Z.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: A.value }, _.value = t;
|
|
261
261
|
const i = e.value.style.chart.tooltip.customFormat;
|
|
262
262
|
if (D.value = !1, ot(i))
|
|
263
263
|
try {
|
|
@@ -274,7 +274,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
274
274
|
}
|
|
275
275
|
if (!D.value) {
|
|
276
276
|
let o = "";
|
|
277
|
-
o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${
|
|
277
|
+
o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${I(
|
|
278
278
|
e.value.style.chart.axes.x.labels.formatter,
|
|
279
279
|
t.valueX,
|
|
280
280
|
F({
|
|
@@ -283,7 +283,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
283
283
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
284
284
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
285
285
|
})
|
|
286
|
-
)}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${
|
|
286
|
+
)}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${I(
|
|
287
287
|
e.value.style.chart.axes.y.labels.formatter,
|
|
288
288
|
t.valueY,
|
|
289
289
|
F({
|
|
@@ -312,7 +312,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
312
312
|
name: o.seriesName
|
|
313
313
|
},
|
|
314
314
|
o.label,
|
|
315
|
-
|
|
315
|
+
I(
|
|
316
316
|
e.value.style.chart.axes.x.labels.formatter,
|
|
317
317
|
o.valueX,
|
|
318
318
|
F({
|
|
@@ -322,7 +322,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
322
322
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
323
323
|
})
|
|
324
324
|
),
|
|
325
|
-
|
|
325
|
+
I(
|
|
326
326
|
e.value.style.chart.axes.y.labels.formatter,
|
|
327
327
|
o.valueY,
|
|
328
328
|
F({
|
|
@@ -375,9 +375,9 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
375
375
|
});
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
const
|
|
379
|
-
function
|
|
380
|
-
|
|
378
|
+
const H = c(!1);
|
|
379
|
+
function J() {
|
|
380
|
+
H.value = !H.value;
|
|
381
381
|
}
|
|
382
382
|
function ge() {
|
|
383
383
|
M.value.showTable = !M.value.showTable;
|
|
@@ -395,12 +395,12 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
395
395
|
generateImage: de,
|
|
396
396
|
toggleTable: ge,
|
|
397
397
|
toggleTooltip: be,
|
|
398
|
-
toggleAnnotator:
|
|
398
|
+
toggleAnnotator: J
|
|
399
399
|
}), (t, a) => (s(), r("div", {
|
|
400
400
|
id: `history_plot_${X.value}`,
|
|
401
401
|
ref_key: "historyPlotChart",
|
|
402
402
|
ref: P,
|
|
403
|
-
class:
|
|
403
|
+
class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": U.value }),
|
|
404
404
|
style: $(`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%" : ""}`),
|
|
405
405
|
onMouseenter: a[3] || (a[3] = () => y(ie)(!0)),
|
|
406
406
|
onMouseleave: a[4] || (a[4] = () => y(ie)(!1))
|
|
@@ -411,25 +411,25 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
411
411
|
parent: P.value,
|
|
412
412
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
413
413
|
color: e.value.style.chart.color,
|
|
414
|
-
active:
|
|
415
|
-
onClose:
|
|
414
|
+
active: H.value,
|
|
415
|
+
onClose: J
|
|
416
416
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
417
417
|
Le.value ? (s(), r("div", {
|
|
418
418
|
key: 1,
|
|
419
419
|
ref_key: "noTitle",
|
|
420
|
-
ref:
|
|
420
|
+
ref: oe,
|
|
421
421
|
class: "vue-data-ui-no-title-space",
|
|
422
422
|
style: "height:36px; width: 100%;background:transparent"
|
|
423
423
|
}, null, 512)) : v("", !0),
|
|
424
424
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
425
425
|
key: 2,
|
|
426
426
|
ref_key: "chartTitle",
|
|
427
|
-
ref:
|
|
427
|
+
ref: Q,
|
|
428
428
|
class: "vue-ui-xy-title",
|
|
429
429
|
style: $(`font-family:${e.value.style.fontFamily}`)
|
|
430
430
|
}, [
|
|
431
431
|
(s(), z(ht, {
|
|
432
|
-
key: `title_${
|
|
432
|
+
key: `title_${ee.value}`,
|
|
433
433
|
config: {
|
|
434
434
|
title: {
|
|
435
435
|
cy: "history-plot-div-title",
|
|
@@ -442,9 +442,9 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
442
442
|
}
|
|
443
443
|
}, null, 8, ["config"]))
|
|
444
444
|
], 4)) : v("", !0),
|
|
445
|
-
e.value.userOptions.show && w.value && (y(ce) || y(
|
|
445
|
+
e.value.userOptions.show && w.value && (y(ce) || y(q)) ? (s(), z(it, {
|
|
446
446
|
ref: "details",
|
|
447
|
-
key: `user_option_${
|
|
447
|
+
key: `user_option_${se.value}`,
|
|
448
448
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
449
449
|
color: e.value.style.chart.color,
|
|
450
450
|
isPrinting: y(ve),
|
|
@@ -463,18 +463,18 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
463
463
|
isTooltip: M.value.showTooltip,
|
|
464
464
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
465
465
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
466
|
-
isAnnotation:
|
|
466
|
+
isAnnotation: H.value,
|
|
467
467
|
onToggleFullscreen: Ye,
|
|
468
468
|
onGeneratePdf: y(ye),
|
|
469
469
|
onGenerateCsv: me,
|
|
470
470
|
onGenerateImage: y(de),
|
|
471
471
|
onToggleTable: ge,
|
|
472
472
|
onToggleTooltip: be,
|
|
473
|
-
onToggleAnnotator:
|
|
473
|
+
onToggleAnnotator: J,
|
|
474
474
|
style: $({
|
|
475
|
-
visibility: y(ce) ? y(
|
|
475
|
+
visibility: y(ce) ? y(q) ? "visible" : "hidden" : "visible"
|
|
476
476
|
})
|
|
477
|
-
},
|
|
477
|
+
}, Ge({ _: 2 }, [
|
|
478
478
|
t.$slots.optionTooltip ? {
|
|
479
479
|
name: "optionTooltip",
|
|
480
480
|
fn: m(() => [
|
|
@@ -569,7 +569,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
569
569
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
570
570
|
"font-size": n.value.yAxisLabels,
|
|
571
571
|
"text-anchor": "end"
|
|
572
|
-
}, L(y(
|
|
572
|
+
}, L(y(I)(
|
|
573
573
|
e.value.style.chart.axes.y.labels.formatter,
|
|
574
574
|
l.value,
|
|
575
575
|
y(F)({
|
|
@@ -588,7 +588,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
588
588
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
589
589
|
"text-anchor": "middle"
|
|
590
590
|
}, L(e.value.style.chart.axes.y.name.text), 9, Pt)) : v("", !0),
|
|
591
|
-
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g",
|
|
591
|
+
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", Ot, [
|
|
592
592
|
(s(!0), r(b, null, k(x.value.tickY, (l) => (s(), r("line", {
|
|
593
593
|
x1: l.x1,
|
|
594
594
|
x2: l.x2,
|
|
@@ -597,7 +597,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
597
597
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
598
598
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
599
599
|
"stroke-linecap": "round"
|
|
600
|
-
}, null, 8,
|
|
600
|
+
}, null, 8, It))), 256))
|
|
601
601
|
])) : v("", !0),
|
|
602
602
|
e.value.style.chart.axes.x.labels.show ? (s(), r("g", Ft, [
|
|
603
603
|
(s(!0), r(b, null, k(x.value.tickX, (l) => (s(), r("text", {
|
|
@@ -605,7 +605,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
605
605
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
606
606
|
"font-size": n.value.xAxisLabels,
|
|
607
607
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
608
|
-
}, L(y(
|
|
608
|
+
}, L(y(I)(
|
|
609
609
|
e.value.style.chart.axes.x.labels.formatter,
|
|
610
610
|
l.value,
|
|
611
611
|
y(F)({
|
|
@@ -659,7 +659,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
659
659
|
fill: "none",
|
|
660
660
|
"stroke-linecap": "round",
|
|
661
661
|
"stroke-linejoin": "round",
|
|
662
|
-
class:
|
|
662
|
+
class: O({ animated: e.value.useCssAnimation })
|
|
663
663
|
}, null, 10, Bt),
|
|
664
664
|
T("path", {
|
|
665
665
|
d: l.path,
|
|
@@ -668,7 +668,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
668
668
|
fill: "none",
|
|
669
669
|
"stroke-linecap": "round",
|
|
670
670
|
"stroke-linejoin": "round",
|
|
671
|
-
class:
|
|
671
|
+
class: O({ animated: e.value.useCssAnimation })
|
|
672
672
|
}, null, 10, Ut)
|
|
673
673
|
], 4)) : v("", !0),
|
|
674
674
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
@@ -685,13 +685,13 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
685
685
|
r: n.value.plots,
|
|
686
686
|
stroke: e.value.style.chart.plots.stroke,
|
|
687
687
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
688
|
-
class:
|
|
688
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
689
689
|
style: $({
|
|
690
690
|
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
691
691
|
transition: "opacity 0.2s ease-in-out"
|
|
692
692
|
})
|
|
693
|
-
}, null, 14,
|
|
694
|
-
e.value.style.chart.plots.labels.show ? (s(), r("g",
|
|
693
|
+
}, null, 14, Ht))), 256)),
|
|
694
|
+
e.value.style.chart.plots.labels.show ? (s(), r("g", Gt, [
|
|
695
695
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("text", {
|
|
696
696
|
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
697
697
|
y: o.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
@@ -699,7 +699,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
699
699
|
fill: e.value.style.chart.plots.labels.color,
|
|
700
700
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
701
701
|
"text-anchor": "middle",
|
|
702
|
-
class:
|
|
702
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
703
703
|
style: $({
|
|
704
704
|
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
705
705
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -714,7 +714,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
714
714
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
715
715
|
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? y(lt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
716
716
|
"text-anchor": "middle",
|
|
717
|
-
class:
|
|
717
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
718
718
|
style: $({
|
|
719
719
|
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
720
720
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -759,10 +759,10 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
759
759
|
}, null, 8, ["config"])),
|
|
760
760
|
T("div", {
|
|
761
761
|
ref_key: "chartLegend",
|
|
762
|
-
ref:
|
|
762
|
+
ref: te
|
|
763
763
|
}, [
|
|
764
764
|
e.value.style.chart.legend.show && w.value ? (s(), z(vt, {
|
|
765
|
-
key: `legend_${
|
|
765
|
+
key: `legend_${le.value}`,
|
|
766
766
|
legendSet: xe.value,
|
|
767
767
|
config: Xe.value,
|
|
768
768
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
|
|
@@ -786,7 +786,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
786
786
|
t.$slots.source ? (s(), r("div", {
|
|
787
787
|
key: 7,
|
|
788
788
|
ref_key: "source",
|
|
789
|
-
ref:
|
|
789
|
+
ref: re,
|
|
790
790
|
dir: "auto"
|
|
791
791
|
}, [
|
|
792
792
|
p(t.$slots, "source", {}, void 0, !0)
|
|
@@ -808,10 +808,10 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
808
808
|
isFullscreen: U.value
|
|
809
809
|
}, {
|
|
810
810
|
"tooltip-before": m(() => [
|
|
811
|
-
p(t.$slots, "tooltip-before", Y(j({ ...
|
|
811
|
+
p(t.$slots, "tooltip-before", Y(j({ ...Z.value })), void 0, !0)
|
|
812
812
|
]),
|
|
813
813
|
"tooltip-after": m(() => [
|
|
814
|
-
p(t.$slots, "tooltip-after", Y(j({ ...
|
|
814
|
+
p(t.$slots, "tooltip-after", Y(j({ ...Z.value })), void 0, !0)
|
|
815
815
|
]),
|
|
816
816
|
_: 3
|
|
817
817
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
@@ -833,7 +833,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
833
833
|
}, {
|
|
834
834
|
content: m(() => [
|
|
835
835
|
(s(), z(dt, {
|
|
836
|
-
key: `table_${
|
|
836
|
+
key: `table_${ae.value}`,
|
|
837
837
|
colNames: W.value.colNames,
|
|
838
838
|
head: W.value.head,
|
|
839
839
|
body: W.value.body,
|
|
@@ -857,7 +857,7 @@ const wt = ["id"], Ct = ["xmlns", "viewBox"], _t = { key: 0 }, $t = ["id"], Mt =
|
|
|
857
857
|
}, 8, ["config"])) : v("", !0)
|
|
858
858
|
], 46, wt));
|
|
859
859
|
}
|
|
860
|
-
}, fl = /* @__PURE__ */ kt(Qt, [["__scopeId", "data-v-
|
|
860
|
+
}, fl = /* @__PURE__ */ kt(Qt, [["__scopeId", "data-v-d26cf9ea"]]);
|
|
861
861
|
export {
|
|
862
862
|
fl as default
|
|
863
863
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BkXYJDpD.cjs"),te=require("./useNestedProp-C6IvqE-r.cjs"),le=require("./usePrinter-DHv-BwME.cjs"),ke=require("./PackageVersion-C1F3QLoY.cjs"),be=require("./Legend-CR9ydX8N.cjs"),Ce=require("./Title-B7ruS8yl.cjs"),Be=require("./Tooltip-BqSN71SL.cjs"),we=require("./DataTable-CwAdpLng.cjs"),Se=require("./vue-ui-accordion-kr18wKfc.cjs"),_e=require("./PenAndPaper-DDheVRNG.cjs"),Ne=require("./vue-ui-skeleton-BTN1PKkz.cjs"),ae=require("./useResponsive-BJ7DTGpm.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],Ee=["xmlns","viewBox"],Me={key:0},Te=["id"],Ae=["stop-color"],Pe=["stop-color"],Ve=["stop-color"],Fe={key:1},De=["x1","x2","y1","y2","stroke","stroke-width"],Oe={key:2},Ie=["x","y","fill","font-size"],Xe=["transform","font-size","fill","font-weight"],Ye={key:4},qe=["x1","x2","y1","y2","stroke","stroke-width"],je={key:5},Ue=["transform","fill","font-size","text-anchor"],Re=["x","y","font-size","fill","font-weight"],He=["x1","x2","y1","y2","stroke","stroke-width"],We=["x1","x2","y1","y2","stroke","stroke-width"],Ge=["d","stroke","stroke-width"],Ze=["d","stroke","stroke-width"],Je=["cx","cy","fill","r"],Ke=["cx","cy","fill","r","stroke","stroke-width"],Qe={key:1},et=["x","y","font-size","fill","font-weight"],tt={key:2},lt=["x","y","font-size","font-weight","fill"],at=["cx","cy","r","onMouseenter","onClick"],ot={key:5,class:"vue-data-ui-watermark"},st=["onClick"],rt=["innerHTML"],nt={__name:"vue-ui-history-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(oe,{expose:se,emit:M}){const c=oe,{vue_ui_history_plot:re}=r.useConfig(),k=e.ref(null),T=e.ref(null),A=e.ref(0),P=e.ref(null),V=e.ref(0),F=e.ref(0),D=e.ref(0),B=e.ref(null),O=e.ref(null),b=e.ref(r.createUid()),N=e.ref(!1),z=e.ref(""),h=e.ref([]),w=e.ref(!1),f=e.ref(null),C=e.ref(!1),I=e.ref(null),y=e.computed({get:()=>!!c.dataset&&c.dataset.length,set:l=>l});e.onMounted(X),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});function X(){if(r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiHistoryPlot",type:"dataset"}):c.dataset.forEach((l,o)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{y.value=!1,r.error({componentName:"VueUiHistoryPlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=ae.throttle(()=>{const{width:o,height:a}=ae.useResponsive({chart:k.value,title:t.value.style.chart.title.text?T.value:null,noTitle:O.value,legend:t.value.style.chart.legend.show?P.value:null,source:I.value});v.value.width=o,v.value.height=a,n.value.plots=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:3,fallback:3}),n.value.indexLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.indexLabels.fontSize,threshold:6,fallback:6}),n.value.labels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.labels.fontSize,threshold:6,fallback:6}),n.value.xAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.labels.fontSize,threshold:6,fallback:6}),n.value.xAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.name.fontSize,threshold:6,fallback:6}),n.value.yAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.labels.fontSize,threshold:6,fallback:6}),n.value.yAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.name.fontSize,threshold:6,fallback:6})});B.value=new ResizeObserver(l),B.value.observe(k.value.parentNode)}}function Y(){const l=te.useNestedProp({userConfig:c.config,defaultConfig:re});let o={};return l.theme?o={...te.useNestedProp({userConfig:r.themes.vue_ui_history_plot[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:o=l,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMin")?o.style.chart.axes.x.scaleMin=c.config.style.chart.axes.x.scaleMin:o.style.chart.axes.x.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMax")?o.style.chart.axes.x.scaleMax=c.config.style.chart.axes.x.scaleMax:o.style.chart.axes.x.scaleMax=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMin")?o.style.chart.axes.y.scaleMin=c.config.style.chart.axes.y.scaleMin:o.style.chart.axes.y.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMax")?o.style.chart.axes.y.scaleMax=c.config.style.chart.axes.y.scaleMax:o.style.chart.axes.y.scaleMax=null,o}const t=e.computed({get:()=>Y(),set:l=>l}),{userOptionsVisible:L,setUserOptionsVisibility:q,keepUserOptionState:j}=ze.useUserOptionState({config:t.value});e.watch(()=>c.config,l=>{t.value=Y(),L.value=!t.value.showOnChartHover,X(),A.value+=1,F.value+=1,V.value+=1,v.value.height=t.value.style.chart.height,v.value.width=t.value.style.chart.width,n.value.plots=t.value.style.chart.plots.radius,n.value.indexLabels=t.value.style.chart.plots.indexLabels.fontSize,n.value.labels=t.value.style.chart.plots.labels.fontSize,n.value.xAxisLabels=t.value.style.chart.axes.x.labels.fontSize,n.value.xAxisName=t.value.style.chart.axes.x.name.fontSize,n.value.yAxisLabels=t.value.style.chart.axes.y.labels.fontSize,n.value.yAxisName=t.value.style.chart.axes.y.name.fontSize},{deep:!0});const{isPrinting:U,isImaging:R,generatePdf:H,generateImage:W}=le.usePrinter({elementId:`history_plot_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-history-plot"}),ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ie=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),m=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),v=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),i=e.computed(()=>{const l=t.value.style.chart.padding.left,o=t.value.style.chart.padding.top;return{left:l,top:o,right:v.value.width-t.value.style.chart.padding.right,bottom:v.value.height-t.value.style.chart.padding.bottom,width:v.value.width-l-t.value.style.chart.padding.right,height:v.value.height-o-t.value.style.chart.padding.bottom}}),n=e.ref({plots:t.value.style.chart.plots.radius,indexLabels:t.value.style.chart.plots.indexLabels.fontSize,labels:t.value.style.chart.plots.labels.fontSize,xAxisLabels:t.value.style.chart.axes.x.labels.fontSize,xAxisName:t.value.style.chart.axes.x.name.fontSize,yAxisLabels:t.value.style.chart.axes.y.labels.fontSize,yAxisName:t.value.style.chart.axes.y.name.fontSize}),x=e.computed(()=>y.value?c.dataset.map((l,o)=>({...l,color:l.color?r.convertColorToHex(l.color):ie.value[o]||r.palette[o]||r.palette[o%r.palette.length],seriesIndex:o})):[]),ue=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.x))):1),ce=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.x)));return l<0?l:0}),ve=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.y))):1),de=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.y)));return l<0?l:0}),d=e.computed(()=>{const l=r.calculateNiceScale(t.value.style.chart.axes.x.scaleMin===null?ce.value:t.value.style.chart.axes.x.scaleMin,t.value.style.chart.axes.x.scaleMax===null?ue.value:t.value.style.chart.axes.x.scaleMax,t.value.style.chart.axes.x.ticks),o=r.calculateNiceScale(t.value.style.chart.axes.y.scaleMin===null?de.value:t.value.style.chart.axes.y.scaleMin,t.value.style.chart.axes.y.scaleMax===null?ve.value:t.value.style.chart.axes.y.scaleMax,t.value.style.chart.axes.y.ticks);return{x:l,y:o,tickX:l.ticks.map(a=>({x:i.value.left+(a-l.min)/(l.max-l.min)*i.value.width,y1:i.value.top,y2:i.value.bottom,value:a})),tickY:o.ticks.map(a=>({y:i.value.bottom-(a-o.min)/(o.max-o.min)*i.value.height,x1:i.value.left,x2:i.value.right,value:a}))}});function he(l){const o=d.value.x.min<0?Math.abs(d.value.x.min):d.value.x.min>0?-d.value.x.min:0;return i.value.left+((l||0)+o)/(d.value.x.max+o)*i.value.width}function ye(l){const o=d.value.y.min<0?Math.abs(d.value.y.min):d.value.y.min>0?-d.value.y.min:0;return i.value.bottom-((l||0)+o)/(d.value.y.max+o)*i.value.height}const g=e.computed(()=>x.value.filter(l=>!h.value.includes(l.seriesIndex)).map((l,o)=>{const a=l.values.map((s,p)=>({valueX:s.x,valueY:s.y,label:s.label,x:he(s.x),y:ye(s.y),color:l.color,seriesName:l.name,id:r.createUid()})),u=a.map(s=>`${s.x},${s.y} `).join("").trim();return{...l,plots:a,path:`M${u}`}}));function G(l){h.value.includes(l)?h.value=h.value.filter(o=>o!==l):h.value.push(l)}const Z=e.computed(()=>x.value.map(l=>({...l,opacity:h.value.includes(l.seriesIndex)?.5:1,segregate:()=>G(l.seriesIndex),isSegregated:h.value.includes(l.seriesIndex),shape:"circle"}))),pe=e.computed(()=>({cy:"history-plot-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function fe(l){M("selectDatapoint",l)}function J(l){M("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function me(l){w.value=l,D.value+=1}const $=e.ref(null);function xe({datapoint:l,plotIndex:o,seriesIndex:a}){$.value={datapoint:l,seriesIndex:a,plotIndex:o,config:t.value,series:x.value},f.value=l;const u=t.value.style.chart.tooltip.customFormat;if(C.value=!1,r.isFunction(u))try{const s=u({seriesIndex:a,datapoint:l,plotIndex:o,series:x.value,config:t.value});typeof s=="string"&&(z.value=s,C.value=!0)}catch{console.warn("Custom format cannot be applied."),C.value=!1}if(!C.value){let s="";s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg><span>${l.seriesName}</span></div>`,s+=`<div>${l.label}</div>`,s+=`<div>${t.value.style.chart.axes.x.name.text||"x"}: ${r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,l.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:l.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))}</div>`,s+=`<div>${t.value.style.chart.axes.y.name.text||"y"}: ${r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,l.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:l.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))}</div>`,z.value=`<div>${s}</div>`}N.value=!0}e.computed(()=>({head:g.value.map(o=>({name:o.name,color:o.color}))}));const S=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.datapoint,t.value.table.columnNames.x,t.value.table.columnNames.y],o=g.value.flatMap(u=>u.plots.map(s=>[{color:s.color,name:s.seriesName},s.label,r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,s.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:s.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding})),r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,s.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:s.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))])),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:o,config:a,colNames:l}});function K(){e.nextTick(()=>{const l=[[t.value.table.columnNames.series],[t.value.table.columnNames.datapoint],[t.value.table.columnNames.x],[t.value.table.columnNames.y]],o=g.value.flatMap(s=>s.plots.map(p=>[[p.seriesName],[p.label],[p.valueX],[p.valueY]])),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],l].concat(o),u=r.createCsvContent(a);r.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-history-plot"})})}const _=e.ref(!1);function E(){_.value=!_.value}function Q(){m.value.showTable=!m.value.showTable}function ee(){m.value.showTooltip=!m.value.showTooltip}function ge(){return g.value}return se({getData:ge,generatePdf:H,generateCsv:K,generateImage:W,toggleTable:Q,toggleTooltip:ee,toggleAnnotator:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`history_plot_${b.value}`,ref_key:"historyPlotChart",ref:k,class:e.normalizeClass({"vue-ui-history-plot":!0,"vue-data-ui-wrapper-fullscreen":w.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(q)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(q)(!1))},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:O,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:T,class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.value.style.fontFamily}`)},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${A.value}`,config:{title:{cy:"history-plot-div-title",...t.value.style.chart.title},subtitle:{cy:"history-plot-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(j)||e.unref(L))?(e.openBlock(),e.createBlock(le.UserOptions,{ref:"details",key:`user_option_${D.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(R),uid:b.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:w.value,chartElement:k.value,position:t.value.userOptions.position,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:me,onGeneratePdf:e.unref(H),onGenerateCsv:K,onGenerateImage:e.unref(W),onToggleTable:Q,onToggleTooltip:ee,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(j)?e.unref(L)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:u})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${v.value.width<0?.1:v.value.width} ${v.value.height<0?.1:v.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),t.value.style.chart.plots.gradient.show?(e.openBlock(),e.createElementBlock("defs",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${u}_${b.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(a.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Ae),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,Pe),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ve)],8,Te))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalLines.show?(e.openBlock(),e.createElementBlock("g",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x,x2:a.x,y1:a.y1,y2:a.y2,stroke:t.value.style.chart.grid.verticalLines.stroke,"stroke-width":t.value.style.chart.grid.verticalLines.strokeWidth,"stroke-linecap":"round"},null,8,De))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.labels.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("text",{x:i.value.left+t.value.style.chart.axes.y.labels.offsetX-4,y:a.y+n.value.yAxisLabels/3,fill:t.value.style.chart.axes.y.labels.color,"font-size":n.value.yAxisLabels,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.y.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.y.labels.prefix,v:a.value,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))),9,Ie))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.name.text?(e.openBlock(),e.createElementBlock("text",{key:3,transform:`translate(${t.value.style.chart.axes.y.name.offsetX+n.value.yAxisName}, ${v.value.height/2+t.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,"font-size":n.value.yAxisName,fill:t.value.style.chart.axes.y.name.color,"font-weight":t.value.style.chart.axes.y.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.y.name.text),9,Xe)):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalLines.show?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.horizontalLines.stroke,"stroke-width":t.value.style.chart.grid.horizontalLines.strokeWidth,"stroke-linecap":"round"},null,8,qe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.labels.show?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("text",{transform:`translate(${a.x}, ${i.value.bottom+t.value.style.chart.axes.x.labels.offsetY+n.value.xAxisLabels}), rotate(${t.value.style.chart.axes.x.labels.rotation})`,fill:t.value.style.chart.axes.x.labels.color,"font-size":n.value.xAxisLabels,"text-anchor":t.value.style.chart.axes.x.labels.rotation>0?"start":t.value.style.chart.axes.x.labels.rotation<0?"end":"middle"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.x.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.x.labels.prefix,v:a.value,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))),9,Ue))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.name.text?(e.openBlock(),e.createElementBlock("text",{key:6,x:v.value.width/2+t.value.style.chart.axes.x.name.offsetX,y:v.value.height+t.value.style.chart.axes.x.name.offsetY,"font-size":n.value.xAxisName,fill:t.value.style.chart.axes.x.name.color,"font-weight":t.value.style.chart.axes.x.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.x.name.text),9,Re)):e.createCommentVNode("",!0),t.value.style.chart.grid.xAxis.show?(e.openBlock(),e.createElementBlock("line",{key:7,x1:i.value.left,x2:i.value.left+i.value.width,y1:i.value.bottom,y2:i.value.bottom,stroke:t.value.style.chart.grid.xAxis.stroke,"stroke-width":t.value.style.chart.grid.xAxis.strokeWidth,"stroke-linecap":"round"},null,8,He)):e.createCommentVNode("",!0),t.value.style.chart.grid.yAxis.show?(e.openBlock(),e.createElementBlock("line",{key:8,x1:i.value.left,x2:i.value.left,y1:i.value.top,y2:i.value.bottom,stroke:t.value.style.chart.grid.yAxis.stroke,"stroke-width":t.value.style.chart.grid.yAxis.strokeWidth,"stroke-linecap":"round"},null,8,We)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.paths.show?(e.openBlock(),e.createElementBlock("g",{key:0,style:e.normalizeStyle({opacity:f.value===null?1:.3})},[e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.paths.strokeWidth+4,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ge),e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.paths.useSerieColor?a.color:t.value.style.chart.paths.stroke,"stroke-width":t.value.style.chart.paths.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ze)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.backgroundColor,r:n.value.plots,stroke:"none"},null,8,Je))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.plots.gradient.show?`url(#gradient_${u}_${b.value})`:s.color,r:n.value.plots,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth,class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:f.value===null||f.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},null,14,Ke))),256)),t.value.style.chart.plots.labels.show?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.labels.offsetX,y:s.y+t.value.style.chart.plots.labels.offsetY+n.value.plots+n.value.labels,"font-size":n.value.labels,fill:t.value.style.chart.plots.labels.color,"font-weight":t.value.style.chart.plots.labels.bold?"bold":"normal","text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:f.value===null||f.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(s.label),15,et))),256))])):e.createCommentVNode("",!0),t.value.style.chart.plots.indexLabels.show?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,p)=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.indexLabels.offsetX,y:s.y+t.value.style.chart.plots.indexLabels.offsetY+n.value.indexLabels/3,"font-size":n.value.indexLabels,"font-weight":t.value.style.chart.plots.indexLabels.bold?"bold":"normal",fill:t.value.style.chart.plots.indexLabels.adaptColorToBackground?e.unref(r.adaptColorToBackground)(a.color):t.value.style.chart.plots.indexLabels.color,"text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:f.value===null||f.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(t.value.style.chart.plots.indexLabels.startAtZero?p:p+1),15,lt))),256))])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,a=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(u,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.y,fill:"transparent",r:n.value.plots,stroke:"none",onMouseenter:p=>xe({datapoint:u,plotIndex:s,seriesIndex:a.seriesIndex}),onMouseleave:o[0]||(o[0]=p=>{N.value=!1,f.value=null}),onClick:()=>fe(u)},null,40,at))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:v.value},void 0,!0)],12,Ee)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ne.default,{key:6,config:{type:"historyPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,historyPlot:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[t.value.style.chart.legend.show&&y.value?(e.openBlock(),e.createBlock(be.Legend,{key:`legend_${V.value}`,legendSet:Z.value,config:pe.value,onClickMarker:o[1]||(o[1]=({legend:a})=>{G(a.seriesIndex),J(a)})},{item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:s=>{a.segregate(),J(a)},style:e.normalizeStyle(`opacity:${h.value.includes(a.seriesIndex)?.5:1}`)},e.toDisplayString(a.name),13,st)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Z.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:I,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:m.value.showTooltip&&N.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:z.value,isCustom:C.value,isFullscreen:w.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...$.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...$.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),y.value?(e.openBlock(),e.createBlock(Se.default,{key:8,hideDetails:"",config:{open:m.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(we.DataTable,{key:`table_${F.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>m.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,rt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},it=Le._export_sfc(nt,[["__scopeId","data-v-d26cf9ea"]]);exports.default=it;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as N, watch as p, ref as C, onMounted as D, openBlock as i, createElementBlock as s, normalizeClass as v, normalizeStyle as u, createElementVNode as $, renderSlot as n, createTextVNode as y, toDisplayString as k, createVNode as S, Fragment as x, unref as h } from "vue";
|
|
2
|
-
import { u as z } from "./useNestedProp-
|
|
3
|
-
import { u as A, i as w, f as B } from "./index-
|
|
4
|
-
import L from "./vue-ui-digits-
|
|
2
|
+
import { u as z } from "./useNestedProp-DifqJZAs.js";
|
|
3
|
+
import { u as A, i as w, f as B } from "./index-K5uyh1gA.js";
|
|
4
|
+
import L from "./vue-ui-digits-CyTjq_oN.js";
|
|
5
5
|
const T = {
|
|
6
6
|
__name: "vue-ui-kpi",
|
|
7
7
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),g=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),g=require("./useNestedProp-C6IvqE-r.cjs"),u=require("./index-BkXYJDpD.cjs"),p=require("./vue-ui-digits-2yacgzrJ.cjs"),y={__name:"vue-ui-kpi",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const o=n,{vue_ui_kpi:m}=u.useConfig(),e=a.computed({get:()=>i(),set:t=>t});function i(){return g.useNestedProp({userConfig:o.config,defaultConfig:m})}a.watch(()=>o.config,t=>{e.value=i(),r()},{deep:!0});const f=a.ref((typeof o.dataset=="number",o.dataset)),l=a.ref(e.value.useAnimation?e.value.animationValueStart:f.value),s=t=>{const v=e.value.animationFrames,c=Math.abs(t-l.value)/v;function d(){l.value<t?l.value=Math.min(l.value+c,t):l.value>t&&(l.value=Math.max(l.value-c,t)),l.value!==t&&requestAnimationFrame(d)}d()};a.onMounted(()=>{r()});function r(){e.value.useAnimation?(l.value=e.value.animationValueStart,s(o.dataset)):l.value=o.dataset}return a.watch(()=>o.dataset,t=>{e.value.useAnimation?s(t):l.value=t}),(t,v)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`vue-ui-kpi ${e.value.layoutClass}`),style:a.normalizeStyle(`background:${e.value.backgroundColor}; ${e.value.layoutCss}`)},[a.createElementVNode("div",{class:a.normalizeClass(`vue-ui-kpi-title ${e.value.titleClass}`),style:a.normalizeStyle(`font-family: ${e.value.fontFamily}; font-size:${e.value.titleFontSize}px; color:${e.value.titleColor}; font-weight:${e.value.titleBold?"bold":"normal"}; ${e.value.titleCss}`)},[a.renderSlot(t.$slots,"title",{comment:n.dataset}),a.createTextVNode(" "+a.toDisplayString(e.value.title),1)],6),a.renderSlot(t.$slots,"comment-before",{comment:n.dataset}),a.createElementVNode("div",{class:a.normalizeClass(`vue-ui-kpi-value ${e.value.valueClass}`),style:a.normalizeStyle(`font-family: ${e.value.fontFamily}; font-size:${e.value.valueFontSize}px; color:${e.value.valueColor}; font-weight:${e.value.valueBold?"bold":"normal"}; ${e.value.valueCss}`)},[a.renderSlot(t.$slots,"value",{comment:n.dataset}),e.value.analogDigits.show?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({height:e.value.analogDigits.height+"px"})},[a.createVNode(p.default,{dataset:Number(l.value.toFixed(e.value.valueRounding)),config:{backgroundColor:e.value.backgroundColor,digits:{color:e.value.analogDigits.color,skeletonColor:e.value.analogDigits.skeletonColor}}},null,8,["dataset","config"])],4)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(a.unref(u.applyDataLabel)(e.value.formatter,l.value,a.unref(u.dataLabel)({p:e.value.prefix,v:l.value,s:e.value.suffix,r:e.value.valueRounding}))),1)],64))],6),a.renderSlot(t.$slots,"comment-after",{comment:n.dataset})],6))}};exports.default=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCssVars as h, computed as r, ref as f, openBlock as n, createElementBlock as u, unref as M, createElementVNode as t, normalizeStyle as l, createCommentVNode as a } from "vue";
|
|
2
|
-
import { u as m } from "./useNestedProp-
|
|
3
|
-
import { u as y, X as L } from "./index-
|
|
2
|
+
import { u as m } from "./useNestedProp-DifqJZAs.js";
|
|
3
|
+
import { u as y, X as L } from "./index-K5uyh1gA.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
|
|
6
6
|
__name: "vue-ui-mini-loader",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-C6IvqE-r.cjs"),n=require("./index-BkXYJDpD.cjs"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["xmlns","viewBox"],C={key:0},_=["stroke"],h=["stroke"],M=["stroke"],y={key:1},B=["stroke"],f={key:2},L=["stroke"],b={__name:"vue-ui-mini-loader",props:{config:{type:Object,default(){return{}}}},setup(u){const a=u;e.useCssVars(k=>({"221651ee":c.value,d11bae38:d.value,d85c00de:p.value}));const{vue_ui_mini_loader:i}=n.useConfig(),t=e.computed(()=>v.useNestedProp({userConfig:a.config,defaultConfig:i})),s=e.ref({onion:"-10 -10 84 84",line:"-10 -10 112 84",bar:"-10 -10 106 84"}),r=e.computed(()=>({gutter:`stroke:${t.value.line.gutterColor};opacity:${t.value.line.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.line.gutterBlur}px);`})),l=e.computed(()=>({gutter:`stroke:${t.value.bar.gutterColor};opacity:${t.value.bar.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.bar.gutterBlur}px);`})),o=e.computed(()=>({gutter:`stroke:${t.value.onion.gutterColor};opacity:${t.value.onion.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.onion.gutterBlur}px);`})),c=e.computed(()=>`blur(${t.value.onion.trackBlur}px) hue-rotate(${t.value.onion.trackHueRotate}deg)`),d=e.computed(()=>`blur(${t.value.line.trackBlur}px) hue-rotate(${t.value.line.trackHueRotate}deg)`),p=e.computed(()=>`blur(${t.value.bar.trackBlur}px) hue-rotate(${t.value.bar.trackHueRotate}deg)`);return(k,x)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(n.XMLNS),viewBox:s.value[t.value.type],style:{background:"transparent"},width:"100%"},[t.value.type==="onion"?(e.openBlock(),e.createElementBlock("g",C,[e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,_),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,h),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,M)])):e.createCommentVNode("",!0),t.value.type==="line"?(e.openBlock(),e.createElementBlock("g",y,[e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(r.value.gutter+r.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",stroke:t.value.line.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"line-animated"},null,8,B)])):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createElementBlock("g",f,[e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(l.value.gutter+l.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",stroke:t.value.bar.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"bar-animated"},null,8,L)])):e.createCommentVNode("",!0)],8,g))}},N=m._export_sfc(b,[["__scopeId","data-v-20f54e0e"]]);exports.default=N;
|