vue-data-ui 2.4.51 → 2.4.53
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-2a_SwBgz.cjs → Arrow-BGjtcB03.cjs} +1 -1
- package/dist/{Arrow-BUz63pb2.js → Arrow-XbzVXHDF.js} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-CiQzR1fE.js} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-DGRZS55E.cjs} +1 -1
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-DWQiMziO.cjs} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-jvL0XGWl.js} +2 -2
- package/dist/{Legend-BiuPlEMg.cjs → Legend-BstxUr4T.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-DcIfRSNC.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-CeJ2R9gK.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Ve0s76sL.js} +1 -1
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DQPbe0G_.cjs} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-IHG7xTmx.js} +3 -3
- package/dist/{Shape-yducHWd0.cjs → Shape-Bzx4qKcd.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-Rg6yW7m3.js} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-CP2Z31Lc.js} +2 -2
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-CPp7_WWa.cjs} +1 -1
- package/dist/{Title-Bk_55doC.cjs → Title-CSyDhu3S.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-DLo3Zo2_.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-CA1QhFeE.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-D88h1zvE.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-C3wsuQ2C.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-DhxnZ6ZS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-BcqToEU0.js} +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-CFwQtnNB.cjs} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-Dglf1bsw.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-mDGfOQZA.js} +1 -1
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-BM5qFlPf.cjs} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-C6tJVggL.js} +60 -60
- 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-BFzCyxbR.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-DiL5x37F.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-DDp8hUlk.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kv5FuXqU.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-ORFLMq65.js} +42 -42
- package/dist/vue-ui-age-pyramid-xYMc6DPS.cjs +1 -0
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-CYyuSx8D.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-J_Ssv585.cjs} +1 -1
- package/dist/vue-ui-bullet-BbOqOHbK.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-D8w5qQKc.js} +41 -41
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-B7jJlgII.js} +61 -61
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BbKj6Lt5.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-3ntrCePt.js} +50 -50
- package/dist/vue-ui-carousel-table-Cazhvs3E.cjs +1 -0
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-DyFTfNZi.cjs} +3 -3
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-apUInPn_.js} +66 -66
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CFTO66GQ.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-CsNO0-Tw.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-C-pDSWwi.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-DddJvm7i.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-DSqN9pA7.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-DWAbSFx3.js} +2 -2
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-DSeDfu4H.js} +57 -57
- package/dist/vue-ui-donut-DrAes-Cb.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CYtTDj7r.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-D7h33-ti.js} +66 -66
- package/dist/vue-ui-dumbbell-DAK7iUrl.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-LF5uy2pG.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-ClPKB4R5.js} +43 -43
- package/dist/vue-ui-flow-u3UVnWTH.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-BIXUXI8z.js} +59 -59
- package/dist/vue-ui-funnel-BY7rqfpW.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-CEnGrqn3.js} +54 -54
- package/dist/vue-ui-galaxy-DBnbXO8c.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-C7Qchm0R.js} +70 -70
- package/dist/vue-ui-gauge-CJYWRyeq.cjs +1 -0
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-C9_Ciat_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-CKZRt29V.js} +3 -3
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-BlbOJnS0.js} +87 -87
- package/dist/vue-ui-heatmap-olBNo_Ui.cjs +1 -0
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CBpL_OyR.js} +75 -75
- package/dist/vue-ui-history-plot-Cyd53pxt.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-C2XDua17.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-CkcQ40VT.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-CpeOqmXd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-DXF2Zpi6.js} +2 -2
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-ekgpnwl8.js} +52 -52
- package/dist/vue-ui-molecule-qQjh4AkD.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-CV30YU_f.js} +35 -35
- package/dist/vue-ui-mood-radar-KoW8hhxL.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-AkaYvLCi.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-DZ_eS-bB.js} +90 -90
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-Bl1UUCFU.cjs} +2 -2
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-YfHn7AeD.js} +52 -52
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-BEqbS5A6.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-Dv_UD2bi.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-BU_pD15l.js} +50 -50
- package/dist/vue-ui-quadrant-DO6afeTp.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-ByDBV3lo.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-U-1paiOI.js} +9 -9
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-B5FUXS1e.js} +59 -59
- package/dist/vue-ui-radar-DLsIiPBR.cjs +1 -0
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-D4-ebrWA.cjs} +1 -1
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-DcCUrP6L.js} +2 -2
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-2i7B4Yf-.js} +56 -56
- package/dist/vue-ui-relation-circle-jPx6gmw1.cjs +1 -0
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-6JF72UH8.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-DG0DQD21.js} +65 -65
- package/dist/vue-ui-scatter-CfbMuDQy.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-j6SU-TUb.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-B6hhgFz_.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-BKfP266_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-99lBQ_mF.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-pdtGfiV6.js} +3 -3
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-8UembS7P.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-fOlIEhGS.js} +2 -2
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-BkPSkOrh.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-CV5Uq241.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-DUNqm_AP.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-qB9reaJo.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-D0hLQuMH.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-Mmm3mt-c.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-9yQ-E0co.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CuB-M26R.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-D_QkkgS-.js} +4 -4
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-Du8Hm28x.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-BDubVDPN.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-B_I1tmuS.cjs} +1 -1
- package/dist/vue-ui-stackbar-DHnilreT.cjs +6 -0
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-rNiqr7aF.js} +43 -43
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-DPn3qgdB.js} +78 -78
- package/dist/vue-ui-strip-plot-DlRej1u9.cjs +1 -0
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BrZ__Cd2.js} +1 -1
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-DLcFdjyM.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-DIkXPyqe.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-DQXI2uPZ.js} +38 -38
- package/dist/vue-ui-table-sparkline-BUNsAEVY.js +647 -0
- package/dist/vue-ui-table-sparkline-BazGMr3R.cjs +1 -0
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-DMkD9fS8.js} +74 -74
- package/dist/vue-ui-thermometer-_gbnwB1j.cjs +1 -0
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-BTfgxjIc.cjs} +1 -1
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-Dv-GSUf1.js} +5 -5
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-CEMrBJPF.js} +46 -46
- package/dist/vue-ui-tiremarks-Ct9y13Sl.cjs +1 -0
- package/dist/vue-ui-treemap-D7SBHWJ2.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-D8AkLDqM.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BnhysoC9.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-_EQI8SXm.cjs} +2 -2
- package/dist/vue-ui-waffle-DOhi1BWD.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-DfRmWfrG.js} +48 -48
- package/dist/vue-ui-wheel-BbDtndmW.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-CU6-VBD1.js} +36 -36
- package/dist/vue-ui-word-cloud-CRarnngT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-CbuHwEkP.js} +66 -66
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-BRTegbdr.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-DsTqLLWp.js} +53 -53
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-hn3ncIFk.cjs} +2 -2
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-pSvq591u.js} +14 -14
- 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-table-sparkline-YV8DUOqh.js +0 -600
- 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,12 +1,12 @@
|
|
|
1
|
-
import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as I, normalizeProps as
|
|
2
|
-
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as
|
|
3
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
4
|
-
import it from "./vue-ui-skeleton-
|
|
5
|
-
import ct from "./BaseIcon-
|
|
6
|
-
import dt from "./vue-ui-accordion-
|
|
7
|
-
import { u as Se } from "./useNestedProp-
|
|
8
|
-
import { _ as vt } from "./PackageVersion-
|
|
9
|
-
import { P as yt } from "./PenAndPaper-
|
|
1
|
+
import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as I, normalizeProps as ue, guardReactiveProps as ne, createVNode as $e, toDisplayString as c, createElementVNode as s, Fragment as g, renderList as _, createTextVNode as J, withKeys as Ke, nextTick as Ce } from "vue";
|
|
2
|
+
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-DhxnZ6ZS.js";
|
|
3
|
+
import { u as nt, U as rt } from "./usePrinter-mDGfOQZA.js";
|
|
4
|
+
import it from "./vue-ui-skeleton-pdtGfiV6.js";
|
|
5
|
+
import ct from "./BaseIcon-CiQzR1fE.js";
|
|
6
|
+
import dt from "./vue-ui-accordion-DDp8hUlk.js";
|
|
7
|
+
import { u as Se } from "./useNestedProp-BcqToEU0.js";
|
|
8
|
+
import { _ as vt } from "./PackageVersion-Ve0s76sL.js";
|
|
9
|
+
import { P as yt } from "./PenAndPaper-IHG7xTmx.js";
|
|
10
10
|
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const bt = ["id"], pt = {
|
|
@@ -14,7 +14,7 @@ const bt = ["id"], pt = {
|
|
|
14
14
|
ref: "noTitle",
|
|
15
15
|
class: "vue-data-ui-no-title-space",
|
|
16
16
|
style: "height:36px; width: 100%;background:transparent"
|
|
17
|
-
}, gt = ["xmlns", "viewBox"], _t = { key: 0 }, xt = ["fill", "font-weight", "font-size", "x", "y"], mt = ["fill", "font-weight", "font-size", "x", "y"], kt = ["id"], wt = ["stop-color"], $t = ["stop-color"], Ct = ["id"], Tt = ["stop-color"], zt = ["stop-color"], Nt = ["id"], St = ["stop-color"], Ft = ["stop-color"], Lt = ["stop-color"], It = ["id"], Pt = ["stop-color"], Vt = ["stop-color"],
|
|
17
|
+
}, gt = ["xmlns", "viewBox"], _t = { key: 0 }, xt = ["fill", "font-weight", "font-size", "x", "y"], mt = ["fill", "font-weight", "font-size", "x", "y"], kt = ["id"], wt = ["stop-color"], $t = ["stop-color"], Ct = ["id"], Tt = ["stop-color"], zt = ["stop-color"], Nt = ["id"], St = ["stop-color"], Ft = ["stop-color"], Lt = ["stop-color"], It = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Ot = ["stop-color"], Mt = ["id"], Rt = ["stop-color"], Bt = ["stop-color"], jt = ["stop-color"], At = { key: 1 }, Xt = ["x", "y", "font-size", "font-weight", "fill"], Gt = ["x", "y", "font-size", "font-weight", "fill"], Et = ["d", "stroke"], Ut = ["cx", "cy", "r", "fill"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Yt = { key: 2 }, qt = ["x", "y", "font-size", "fill", "onClick"], Ht = { key: 0 }, Wt = ["x", "y", "fill", "font-size", "font-weight"], Kt = ["x", "y", "height", "width", "fill", "rx", "onClick"], Jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Qt = { key: 3 }, Zt = ["x", "y", "fill", "font-size", "onClick"], el = ["d", "stroke"], tl = ["fill", "cx", "cy", "r", "onClick"], ll = { key: 4 }, al = ["x", "y", "font-size", "font-weight", "fill"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["y", "height", "width"], ul = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, nl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, rl = {
|
|
18
18
|
viewBox: "0 0 20 20",
|
|
19
19
|
height: "16",
|
|
20
20
|
width: "16"
|
|
@@ -29,7 +29,7 @@ const bt = ["id"], pt = {
|
|
|
29
29
|
key: 6,
|
|
30
30
|
ref: "source",
|
|
31
31
|
dir: "auto"
|
|
32
|
-
}, Vl = { style: { "padding-top": "36px", position: "relative" } },
|
|
32
|
+
}, Vl = { style: { "padding-top": "36px", position: "relative" } }, Ol = { class: "vue-ui-data-table" }, Ml = { key: 0 }, Rl = ["data-cell"], Bl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = { key: 0 }, Al = { key: 1 }, Xl = ["data-cell"], Gl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, El = { key: 0 }, Ul = { key: 1 }, Dl = ["data-cell"], Yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ql = { key: 0 }, Hl = { key: 1 }, Wl = ["data-cell"], Kl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Jl = { key: 0 }, Ql = { key: 1 }, Zl = ["data-cell"], ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ta = { key: 0 }, la = { key: 1 }, aa = ["data-cell"], oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sa = { key: 0 }, ua = { key: 1 }, na = ["data-cell"], ra = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ia = { key: 0 }, ca = { key: 1 }, da = ["data-cell"], va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = ["data-cell"], ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = ["data-cell"], ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pa = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, _a = ["data-cell"], xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ma = {
|
|
33
33
|
__name: "vue-ui-chestnut",
|
|
34
34
|
props: {
|
|
35
35
|
config: {
|
|
@@ -47,36 +47,36 @@ const bt = ["id"], pt = {
|
|
|
47
47
|
},
|
|
48
48
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
49
49
|
setup(Fe, { expose: Le, emit: E }) {
|
|
50
|
-
const
|
|
50
|
+
const O = Fe;
|
|
51
51
|
Ye((l) => ({
|
|
52
|
-
|
|
52
|
+
"3173d692": l.tdo
|
|
53
53
|
}));
|
|
54
|
-
const { vue_ui_chestnut: Ie } = Je(), D = m(() => !!
|
|
54
|
+
const { vue_ui_chestnut: Ie } = Je(), D = m(() => !!O.dataset && O.dataset.length), w = T(Qe()), Z = T(null), Pe = T(null), ce = T(0), e = m({
|
|
55
55
|
get: () => ye(),
|
|
56
56
|
set: (l) => l
|
|
57
|
-
}), { userOptionsVisible:
|
|
57
|
+
}), { userOptionsVisible: ee, setUserOptionsVisibility: de, keepUserOptionState: ve } = ht({ config: e.value });
|
|
58
58
|
function ye() {
|
|
59
59
|
const l = Se({
|
|
60
|
-
userConfig:
|
|
60
|
+
userConfig: O.config,
|
|
61
61
|
defaultConfig: Ie
|
|
62
62
|
});
|
|
63
63
|
return l.theme ? {
|
|
64
64
|
...Se({
|
|
65
|
-
userConfig: Ze.vue_ui_chestnut[l.theme] ||
|
|
65
|
+
userConfig: Ze.vue_ui_chestnut[l.theme] || O.config,
|
|
66
66
|
defaultConfig: l
|
|
67
67
|
}),
|
|
68
68
|
customPalette: et[l.theme] || P
|
|
69
69
|
} : l;
|
|
70
70
|
}
|
|
71
|
-
qe(() =>
|
|
72
|
-
e.value = ye(), me();
|
|
71
|
+
qe(() => O.config, (l) => {
|
|
72
|
+
e.value = ye(), ee.value = !e.value.showOnChartHover, me();
|
|
73
73
|
}, { deep: !0 });
|
|
74
74
|
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: pe } = nt({
|
|
75
75
|
elementId: `vue-ui-chestnut_${w.value}`,
|
|
76
76
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
77
|
-
}), Ve = m(() => e.value.userOptions.show),
|
|
77
|
+
}), Ve = m(() => e.value.userOptions.show), te = m(() => tt(e.value.customPalette)), Y = T({
|
|
78
78
|
showTable: e.value.table.show
|
|
79
|
-
}),
|
|
79
|
+
}), le = T(null), ge = T(!1), Oe = m(() => e.value.table.responsiveBreakpoint), r = T({
|
|
80
80
|
gap: 6,
|
|
81
81
|
padding: {
|
|
82
82
|
top: 102,
|
|
@@ -96,8 +96,8 @@ const bt = ["id"], pt = {
|
|
|
96
96
|
width: r.value.width - (r.value.padding.left + r.value.padding.right),
|
|
97
97
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
98
98
|
seedX: r.value.padding.left + 64
|
|
99
|
-
})),
|
|
100
|
-
|
|
99
|
+
})), M = m(() => D.value ? O.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (O.dataset.forEach((l, i) => {
|
|
100
|
+
re({
|
|
101
101
|
datasetObject: l,
|
|
102
102
|
requiredAttributes: ["name", "branches"]
|
|
103
103
|
}).forEach((t) => {
|
|
@@ -108,7 +108,7 @@ const bt = ["id"], pt = {
|
|
|
108
108
|
index: i
|
|
109
109
|
});
|
|
110
110
|
}), l.branches && l.branches.forEach((t, u) => {
|
|
111
|
-
|
|
111
|
+
re({
|
|
112
112
|
datasetObject: t,
|
|
113
113
|
requiredAttributes: ["name", "value"]
|
|
114
114
|
}).forEach((b) => {
|
|
@@ -119,7 +119,7 @@ const bt = ["id"], pt = {
|
|
|
119
119
|
index: `${i} - ${u}`
|
|
120
120
|
});
|
|
121
121
|
}), t.breakdown && t.breakdown.forEach((b, y) => {
|
|
122
|
-
|
|
122
|
+
re({
|
|
123
123
|
datasetObject: b,
|
|
124
124
|
requiredAttributes: ["name", "value"]
|
|
125
125
|
}).forEach((p) => {
|
|
@@ -132,11 +132,11 @@ const bt = ["id"], pt = {
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
|
-
}),
|
|
135
|
+
}), O.dataset.map((l, i) => {
|
|
136
136
|
const t = (l.branches || []).map((u) => u.value || 0).reduce((u, b) => u + b, 0);
|
|
137
137
|
return {
|
|
138
138
|
...l,
|
|
139
|
-
color:
|
|
139
|
+
color: ie(l.color) || te.value[i] || P[i] || P[i % P.length],
|
|
140
140
|
id: l.id || `root_${i}_${w.value}`,
|
|
141
141
|
type: "root",
|
|
142
142
|
total: t,
|
|
@@ -145,7 +145,7 @@ const bt = ["id"], pt = {
|
|
|
145
145
|
...u,
|
|
146
146
|
rootName: l.name,
|
|
147
147
|
rootIndex: i,
|
|
148
|
-
color:
|
|
148
|
+
color: ie(l.color) || te.value[i] || P[i] || P[i % P.length],
|
|
149
149
|
value: u.value >= 0 ? u.value : 0,
|
|
150
150
|
id: u.id || `branch_${i}_${b}_${w.value}`,
|
|
151
151
|
proportionToRoot: u.value / t,
|
|
@@ -154,14 +154,14 @@ const bt = ["id"], pt = {
|
|
|
154
154
|
table: {
|
|
155
155
|
rootName: l.name,
|
|
156
156
|
rootValue: t,
|
|
157
|
-
rootToTotal: t /
|
|
157
|
+
rootToTotal: t / M.value,
|
|
158
158
|
branchName: u.name,
|
|
159
159
|
branchValue: u.value,
|
|
160
|
-
branchToTotal: u.value /
|
|
160
|
+
branchToTotal: u.value / M.value,
|
|
161
161
|
branchToRoot: u.value / t,
|
|
162
162
|
nutName: y.name,
|
|
163
163
|
nutValue: y.value,
|
|
164
|
-
nutToTotal: y.value /
|
|
164
|
+
nutToTotal: y.value / M.value,
|
|
165
165
|
nutToRoot: y.value / t,
|
|
166
166
|
nutToBranch: y.value / u.value
|
|
167
167
|
},
|
|
@@ -172,16 +172,16 @@ const bt = ["id"], pt = {
|
|
|
172
172
|
branchTotal: u.value >= 0 ? u.value : 0,
|
|
173
173
|
proportionToBranch: y.value / u.value,
|
|
174
174
|
proportionToRoot: y.value / t,
|
|
175
|
-
proportionToTree: y.value /
|
|
175
|
+
proportionToTree: y.value / M.value,
|
|
176
176
|
rootIndex: i,
|
|
177
177
|
id: y.id || `nut_${i}_${b}_${p}_${w.value}`,
|
|
178
|
-
color:
|
|
178
|
+
color: ie(y.color) || te.value[p] || P[p] || P[p % P.length],
|
|
179
179
|
value: y.value >= 0 ? y.value : 0
|
|
180
180
|
}))
|
|
181
181
|
}))
|
|
182
182
|
};
|
|
183
183
|
})));
|
|
184
|
-
function
|
|
184
|
+
function Me() {
|
|
185
185
|
return N.value;
|
|
186
186
|
}
|
|
187
187
|
const Re = m(() => N.value.flatMap((l) => l.branches).length), Be = m(() => Math.max(...N.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), je = m(() => Math.max(...N.value.flatMap((l) => l.branches.map((i) => i.value)))), _e = m(() => 256 + r.value.padding.left), B = m(() => N.value.sort((l, i) => i.total - l.total).map((l, i) => {
|
|
@@ -199,7 +199,7 @@ const bt = ["id"], pt = {
|
|
|
199
199
|
x1: _e.value,
|
|
200
200
|
x2: 384 * l.value / je.value * Ae.value + _e.value
|
|
201
201
|
})));
|
|
202
|
-
function
|
|
202
|
+
function ae(l) {
|
|
203
203
|
const i = B.value.find((t) => t.rootIndex === l.rootIndex);
|
|
204
204
|
return { x: i.x, y: i.y, r: i.r };
|
|
205
205
|
}
|
|
@@ -224,7 +224,7 @@ const bt = ["id"], pt = {
|
|
|
224
224
|
function A() {
|
|
225
225
|
d.value = null, R.value = null, E("selectNut", null);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function oe(l) {
|
|
228
228
|
x.value && x.value.id === l.id ? (x.value = null, $(), E("selectBranch", null)) : ($(), x.value = l, E("selectBranch", l));
|
|
229
229
|
}
|
|
230
230
|
function xe(l) {
|
|
@@ -239,16 +239,16 @@ const bt = ["id"], pt = {
|
|
|
239
239
|
function Ue() {
|
|
240
240
|
const l = new ResizeObserver((i) => {
|
|
241
241
|
i.forEach((t) => {
|
|
242
|
-
ge.value = t.contentRect.width <
|
|
242
|
+
ge.value = t.contentRect.width < Oe.value;
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
|
-
|
|
245
|
+
le.value && l.observe(le.value);
|
|
246
246
|
}
|
|
247
247
|
He(() => {
|
|
248
248
|
me();
|
|
249
249
|
});
|
|
250
250
|
function me() {
|
|
251
|
-
lt(
|
|
251
|
+
lt(O.dataset) && Q({
|
|
252
252
|
componentName: "VueUiChestnut",
|
|
253
253
|
type: "dataset"
|
|
254
254
|
});
|
|
@@ -274,7 +274,7 @@ const bt = ["id"], pt = {
|
|
|
274
274
|
});
|
|
275
275
|
function ke() {
|
|
276
276
|
Ce(() => {
|
|
277
|
-
const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total",
|
|
277
|
+
const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", M.value], [""]], i = v.value.head, t = v.value.body.map((y, p) => [
|
|
278
278
|
v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootName,
|
|
279
279
|
v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootValue,
|
|
280
280
|
v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootToTotal,
|
|
@@ -293,22 +293,22 @@ const bt = ["id"], pt = {
|
|
|
293
293
|
}
|
|
294
294
|
const q = T(!1);
|
|
295
295
|
function De(l) {
|
|
296
|
-
q.value = l,
|
|
296
|
+
q.value = l, ce.value += 1;
|
|
297
297
|
}
|
|
298
298
|
function we() {
|
|
299
299
|
Y.value.showTable = !Y.value.showTable;
|
|
300
300
|
}
|
|
301
301
|
const W = T(!1);
|
|
302
|
-
function
|
|
302
|
+
function se() {
|
|
303
303
|
W.value = !W.value;
|
|
304
304
|
}
|
|
305
305
|
return Le({
|
|
306
|
-
getData:
|
|
306
|
+
getData: Me,
|
|
307
307
|
generatePdf: be,
|
|
308
308
|
generateCsv: ke,
|
|
309
309
|
generateImage: pe,
|
|
310
310
|
toggleTable: we,
|
|
311
|
-
toggleAnnotator:
|
|
311
|
+
toggleAnnotator: se
|
|
312
312
|
}), (l, i) => (a(), o("div", {
|
|
313
313
|
class: k(`vue-ui-chestnut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
314
314
|
ref_key: "chestnutChart",
|
|
@@ -324,13 +324,13 @@ const bt = ["id"], pt = {
|
|
|
324
324
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
325
325
|
color: e.value.style.chart.color,
|
|
326
326
|
active: W.value,
|
|
327
|
-
onClose:
|
|
327
|
+
onClose: se
|
|
328
328
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
329
329
|
Ve.value ? (a(), o("div", pt, null, 512)) : f("", !0),
|
|
330
|
-
e.value.userOptions.show && D.value && (n(ve) || n(
|
|
330
|
+
e.value.userOptions.show && D.value && (n(ve) || n(ee)) ? (a(), K(rt, {
|
|
331
331
|
ref_key: "details",
|
|
332
332
|
ref: Pe,
|
|
333
|
-
key: `user_options_${
|
|
333
|
+
key: `user_options_${ce.value}`,
|
|
334
334
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
335
335
|
color: e.value.style.chart.color,
|
|
336
336
|
isImaging: n(fe),
|
|
@@ -352,9 +352,9 @@ const bt = ["id"], pt = {
|
|
|
352
352
|
onGenerateCsv: ke,
|
|
353
353
|
onGenerateImage: n(pe),
|
|
354
354
|
onToggleTable: we,
|
|
355
|
-
onToggleAnnotator:
|
|
355
|
+
onToggleAnnotator: se,
|
|
356
356
|
style: h({
|
|
357
|
-
visibility: n(ve) ? n(
|
|
357
|
+
visibility: n(ve) ? n(ee) ? "visible" : "hidden" : "visible"
|
|
358
358
|
})
|
|
359
359
|
}, We({ _: 2 }, [
|
|
360
360
|
l.$slots.optionPdf ? {
|
|
@@ -388,14 +388,14 @@ const bt = ["id"], pt = {
|
|
|
388
388
|
l.$slots.optionFullscreen ? {
|
|
389
389
|
name: "optionFullscreen",
|
|
390
390
|
fn: X(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
391
|
-
I(l.$slots, "optionFullscreen",
|
|
391
|
+
I(l.$slots, "optionFullscreen", ue(ne({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
392
392
|
]),
|
|
393
393
|
key: "4"
|
|
394
394
|
} : void 0,
|
|
395
395
|
l.$slots.optionAnnotator ? {
|
|
396
396
|
name: "optionAnnotator",
|
|
397
397
|
fn: X(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
398
|
-
I(l.$slots, "optionAnnotator",
|
|
398
|
+
I(l.$slots, "optionAnnotator", ue(ne({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
399
399
|
]),
|
|
400
400
|
key: "5"
|
|
401
401
|
} : void 0
|
|
@@ -504,7 +504,7 @@ const bt = ["id"], pt = {
|
|
|
504
504
|
s("stop", {
|
|
505
505
|
offset: "100%",
|
|
506
506
|
"stop-color": n(S)("#FFFFFF", 0)
|
|
507
|
-
}, null, 8,
|
|
507
|
+
}, null, 8, Ot)
|
|
508
508
|
], 8, It),
|
|
509
509
|
s("radialGradient", {
|
|
510
510
|
cx: "50%",
|
|
@@ -526,7 +526,7 @@ const bt = ["id"], pt = {
|
|
|
526
526
|
offset: "100%",
|
|
527
527
|
"stop-color": n(S)(e.value.style.chart.backgroundColor, 0)
|
|
528
528
|
}, null, 8, jt)
|
|
529
|
-
], 8,
|
|
529
|
+
], 8, Mt)
|
|
530
530
|
]),
|
|
531
531
|
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", At, [
|
|
532
532
|
s("text", {
|
|
@@ -548,10 +548,10 @@ const bt = ["id"], pt = {
|
|
|
548
548
|
onClick: $
|
|
549
549
|
}, c(n(G)(
|
|
550
550
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
551
|
-
|
|
551
|
+
M.value,
|
|
552
552
|
n(z)({
|
|
553
553
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
554
|
-
v:
|
|
554
|
+
v: M.value,
|
|
555
555
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
556
556
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
557
557
|
})
|
|
@@ -563,7 +563,7 @@ const bt = ["id"], pt = {
|
|
|
563
563
|
${t.x1},${t.y1 + b}
|
|
564
564
|
C${t.x1 - 20},${t.y1 + b}
|
|
565
565
|
${t.x1 - 80},${t.y1 + b}
|
|
566
|
-
${
|
|
566
|
+
${ae(t).x + ae(t).r / 2}, ${ae(t).y}
|
|
567
567
|
`,
|
|
568
568
|
stroke: n(S)(t.color, e.value.style.chart.layout.links.opacity),
|
|
569
569
|
fill: "none",
|
|
@@ -635,7 +635,7 @@ const bt = ["id"], pt = {
|
|
|
635
635
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
636
636
|
stroke: "none",
|
|
637
637
|
style: h(`opacity:${L(t) ? 1 : 0.05}`),
|
|
638
|
-
onClick: (u) =>
|
|
638
|
+
onClick: (u) => oe(t)
|
|
639
639
|
}, null, 12, Kt))), 256)),
|
|
640
640
|
(a(!0), o(g, null, _(j.value, (t, u) => (a(), o("rect", {
|
|
641
641
|
x: t.x1,
|
|
@@ -647,7 +647,7 @@ const bt = ["id"], pt = {
|
|
|
647
647
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
648
648
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
649
649
|
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
650
|
-
onClick: (b) =>
|
|
650
|
+
onClick: (b) => oe(t)
|
|
651
651
|
}, null, 12, Jt))), 256)),
|
|
652
652
|
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", Qt, [
|
|
653
653
|
(a(!0), o(g, null, _(j.value, (t) => (a(), o("g", null, [
|
|
@@ -660,7 +660,7 @@ const bt = ["id"], pt = {
|
|
|
660
660
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
661
661
|
"font-weight": "bold",
|
|
662
662
|
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
663
|
-
onClick: (u) =>
|
|
663
|
+
onClick: (u) => oe(t)
|
|
664
664
|
}, c(n(G)(
|
|
665
665
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
666
666
|
t.value,
|
|
@@ -752,7 +752,7 @@ const bt = ["id"], pt = {
|
|
|
752
752
|
{ datapoint: t }
|
|
753
753
|
)), 1),
|
|
754
754
|
J(" (" + c(n(z)({
|
|
755
|
-
v: t.total /
|
|
755
|
+
v: t.total / M.value * 100,
|
|
756
756
|
s: "%",
|
|
757
757
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
758
758
|
})) + ") ", 1)
|
|
@@ -1006,7 +1006,7 @@ const bt = ["id"], pt = {
|
|
|
1006
1006
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1007
1007
|
onClick: $
|
|
1008
1008
|
}, c(n(z)({
|
|
1009
|
-
v: t.value /
|
|
1009
|
+
v: t.value / M.value * 100,
|
|
1010
1010
|
s: "%",
|
|
1011
1011
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1012
1012
|
})) + " " + c(e.value.translations.proportionToTree), 9, Ll)) : f("", !0)
|
|
@@ -1014,7 +1014,7 @@ const bt = ["id"], pt = {
|
|
|
1014
1014
|
I(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
1015
1015
|
], 14, gt)) : f("", !0),
|
|
1016
1016
|
l.$slots.watermark ? (a(), o("div", Il, [
|
|
1017
|
-
I(l.$slots, "watermark",
|
|
1017
|
+
I(l.$slots, "watermark", ue(ne({ isPrinting: n(he) || n(fe) })), void 0, !0)
|
|
1018
1018
|
])) : f("", !0),
|
|
1019
1019
|
D.value ? f("", !0) : (a(), K(it, {
|
|
1020
1020
|
key: 5,
|
|
@@ -1051,7 +1051,7 @@ const bt = ["id"], pt = {
|
|
|
1051
1051
|
content: X(() => [
|
|
1052
1052
|
s("div", {
|
|
1053
1053
|
ref_key: "tableContainer",
|
|
1054
|
-
ref:
|
|
1054
|
+
ref: le,
|
|
1055
1055
|
class: "vue-ui-chestnut-table"
|
|
1056
1056
|
}, [
|
|
1057
1057
|
s("div", Vl, [
|
|
@@ -1072,13 +1072,13 @@ const bt = ["id"], pt = {
|
|
|
1072
1072
|
style: { width: "100%" },
|
|
1073
1073
|
class: k({ "vue-ui-responsive": ge.value })
|
|
1074
1074
|
}, [
|
|
1075
|
-
s("table",
|
|
1075
|
+
s("table", Ol, [
|
|
1076
1076
|
s("caption", {
|
|
1077
1077
|
style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1078
1078
|
class: "vue-ui-data-table__caption"
|
|
1079
1079
|
}, [
|
|
1080
1080
|
J(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1081
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1081
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", Ml, c(e.value.style.chart.layout.title.subtitle.text), 1)) : f("", !0)
|
|
1082
1082
|
], 4),
|
|
1083
1083
|
s("thead", null, [
|
|
1084
1084
|
s("tr", {
|
|
@@ -1204,7 +1204,7 @@ const bt = ["id"], pt = {
|
|
|
1204
1204
|
}, 8, ["config"])) : f("", !0)
|
|
1205
1205
|
], 46, bt));
|
|
1206
1206
|
}
|
|
1207
|
-
}, Va = /* @__PURE__ */ ft(ma, [["__scopeId", "data-v-
|
|
1207
|
+
}, Va = /* @__PURE__ */ ft(ma, [["__scopeId", "data-v-9a052507"]]);
|
|
1208
1208
|
export {
|
|
1209
1209
|
Va as default
|
|
1210
1210
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, computed as m, onMounted as R, onBeforeUnmount as E, openBlock as o, createElementBlock as l, unref as C, normalizeStyle as b, createElementVNode as r, createCommentVNode as a, normalizeClass as p, toDisplayString as x, nextTick as F, pushScopeId as I, popScopeId as L } from "vue";
|
|
2
|
-
import { u as z } from "./useNestedProp-
|
|
3
|
-
import { u as O, c as B, X as N, s as T } from "./index-
|
|
2
|
+
import { u as z } from "./useNestedProp-BcqToEU0.js";
|
|
3
|
+
import { u as O, c as B, X as N, s as T } from "./index-DhxnZ6ZS.js";
|
|
4
4
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const g = (i) => (I("data-v-6a1383ea"), i = i(), L(), i), $ = ["xmlns", "height", "width"], W = {
|
|
6
6
|
id: "follower",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-CFwQtnNB.cjs"),i=require("./index-C3wsuQ2C.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=l=>(t.pushScopeId("data-v-6a1383ea"),l=l(),t.popScopeId(),l),p=["xmlns","height","width"],x={id:"follower",fy:"30%",fx:"30%"},E=["stop-color","stop-opacity"],N=m(()=>t.createElementVNode("stop",{offset:"95%","stop-color":"transparent"},null,-1)),g=["r","fill","stroke","stroke-width","stroke-dasharray"],V=["r","fill"],S={key:2,class:"wave"},w=["id"],B=["id"],R=m(()=>t.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),b=["filter","stroke"],F={key:3,class:"crosshair"},z=["x1","stroke","stroke-width","stroke-dasharray"],I=["x1","stroke","stroke-width","stroke-dasharray"],L=["y1","stroke","stroke-width","stroke-dasharray"],O=["y1","stroke","stroke-width","stroke-dasharray"],T=["cy","r","fill"],D=["cy","r","fill"],$=["cx","r","fill"],W=["cx","r","fill"],G={key:5,class:"coordinates"},P=["x","y","font-size","fill"],q=["transform"],A=["font-size","fill"],M={__name:"vue-ui-cursor",props:{config:{type:Object,default:{}}},setup(l){const k=l,{vue_ui_cursor:y}=i.useConfig(),c=t.ref(i.createUid()),e=t.computed(()=>_.useNestedProp({userConfig:k.config,defaultConfig:y})),o=t.ref({x:-100,y:-100});function u({clientX:r,clientY:f,...j}){o.value.x=r-e.value.centerCircleRadius,o.value.y=f-e.value.centerCircleRadius}function d(r){o.value.x=r.targetTouches[0].clientX-e.value.centerCircleRadius,o.value.y=r.targetTouches[0].clientY-e.value.centerCircleRadius}const v=t.ref(!0);function s(r){v.value=r}const a=t.ref(!1),n=t.ref(null);function h(){a.value=!1,n.value&&clearTimeout(n.value),t.nextTick(()=>{a.value=!0,n.value=setTimeout(()=>{a.value=!1},1e3)})}return t.onMounted(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.addEventListener("mousemove",u),r.addEventListener("touchmove",d),r.addEventListener("mouseleave",()=>s(!1)),r.addEventListener("mouseenter",()=>s(!0)),r.addEventListener("click",h)}),t.onBeforeUnmount(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.removeEventListener("mousemove",u),r.removeEventListener("touchmove",d),r.removeEventListener("mouseleave",()=>s(!1)),r.removeEventListener("mouseenter",()=>s(!0)),r.removeEventListener("click",h)}),t.computed(()=>e.value.centerCircleRadius/2.5),(r,f)=>v.value?(t.openBlock(),t.createElementBlock("svg",{key:0,"data-html2canvas-ignore":"",xmlns:t.unref(i.XMLNS),style:t.normalizeStyle(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${o.value.y}px; left:${o.value.x}px;`),viewBox:"0 0 100 100",height:e.value.centerCircleRadius*2,width:e.value.centerCircleRadius*2},[t.createElementVNode("defs",null,[t.createElementVNode("radialGradient",x,[t.createElementVNode("stop",{offset:"10%","stop-color":e.value.bubbleEffectColor,"stop-opacity":e.value.bubbleEffectOpacity},null,8,E),N])]),e.value.showCenterCircle?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:50,cy:50,r:e.value.centerCircleRadius,fill:t.unref(i.setOpacity)(e.value.centerCircleColor,e.value.centerCircleOpacity*100),stroke:e.value.centerCircleStroke,"stroke-width":e.value.centerCircleStrokeWidth,"stroke-dasharray":e.value.centerCircleDasharray},null,8,g)):t.createCommentVNode("",!0),e.value.bubbleEffect?(t.openBlock(),t.createElementBlock("circle",{key:1,cx:50,cy:50,r:e.value.centerCircleRadius,fill:"url(#follower)",stroke:"none"},null,8,V)):t.createCommentVNode("",!0),e.value.useWaveOnClick?(t.openBlock(),t.createElementBlock("g",S,[t.createElementVNode("defs",null,[t.createElementVNode("filter",{id:`blur_${c.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[t.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:4,id:`blur_std_${c.value}`},null,8,B),R],8,w)]),a.value?(t.openBlock(),t.createElementBlock("circle",{key:0,class:t.normalizeClass({"circle-wave":a.value}),cx:50,cy:50,r:50,filter:`url(#blur_${c.value})`,stroke:e.value.centerCircleStroke,fill:"none","stroke-width":"3"},null,10,b)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.value.showCrosshair?(t.openBlock(),t.createElementBlock("g",F,[t.createElementVNode("line",{x1:-e.value.centerCircleRadius+50,x2:-5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,z),t.createElementVNode("line",{x1:50+e.value.centerCircleRadius,x2:5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,I),t.createElementVNode("line",{x1:50,x2:50,y1:-e.value.centerCircleRadius+50,y2:-5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,L),t.createElementVNode("line",{x1:50,x2:50,y1:e.value.centerCircleRadius+50,y2:5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,O)])):t.createCommentVNode("",!0),e.value.showIntersectCircles?(t.openBlock(),t.createElementBlock("g",{key:4,class:t.normalizeClass({"rotating-circles":e.value.isLoading})},[t.createElementVNode("circle",{cx:50,cy:e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,T),t.createElementVNode("circle",{cx:50,cy:-e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,D),t.createElementVNode("circle",{cx:-e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,$),t.createElementVNode("circle",{cx:e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,W)],2)):t.createCommentVNode("",!0),e.value.showCoordinates?(t.openBlock(),t.createElementBlock("g",G,[t.createElementVNode("text",{"text-anchor":"end",x:-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,y:50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,"font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},"font-family":"Arial"},t.toDisplayString(o.value.x.toFixed(0)),9,P),t.createElementVNode("g",{transform:`translate(${50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset}, ${-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset})`},[t.createElementVNode("text",{"text-anchor":"start","font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},transform:"rotate(-90)","font-family":"Arial"},t.toDisplayString(o.value.y.toFixed(0)),9,A)],8,q)])):t.createCommentVNode("",!0)],12,p)):t.createCommentVNode("",!0)}},U=C._export_sfc(M,[["__scopeId","data-v-6a1383ea"]]);exports.default=U;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Z, computed as _, ref as s, watch as ee, openBlock as w, createElementBlock as y, createElementVNode as g, normalizeStyle as x, createCommentVNode as E, Fragment as P, renderList as te, normalizeClass as oe, renderSlot as ae, pushScopeId as ue, popScopeId as le, createStaticVNode as ne } from "vue";
|
|
2
2
|
import se from "./pdf-B7oVat64.js";
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
4
|
-
import { u as re } from "./index-
|
|
3
|
+
import { u as ie } from "./useNestedProp-BcqToEU0.js";
|
|
4
|
+
import { u as re } from "./index-DhxnZ6ZS.js";
|
|
5
5
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ce = (M) => (ue("data-v-840292ca"), M = M(), le(), M), he = {
|
|
7
7
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),j=require("./pdf-9cRTLjY8.cjs"),U=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),j=require("./pdf-9cRTLjY8.cjs"),U=require("./useNestedProp-CFwQtnNB.cjs"),A=require("./index-C3wsuQ2C.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),J=b=>(o.pushScopeId("data-v-840292ca"),b=b(),o.popScopeId(),b),K={key:0,"data-html2canvas-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},Q=["disabled"],Z=["stroke"],ee=o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-840292ca></path><path d="M18 16v.01" data-v-840292ca></path><path d="M6 16v.01" data-v-840292ca></path><path d="M12 5v.01" data-v-840292ca></path><path d="M12 12v.01" data-v-840292ca></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-840292ca></path>',6),te=[ee],oe={key:1},ae=["id"],le=J(()=>o.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),ne=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],se=["onMousedown","onTouchstart"],re=["onMousedown","onTouchstart"],ie=["onMousedown","onTouchstart"],T=20,ce={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(b,{expose:x,emit:S}){const E=b;o.useCssVars(e=>({"5bd77d8a":W.value,db3d09e0:L.value}));const{vue_ui_dashboard:I}=A.useConfig(),r=o.computed(()=>U.useNestedProp({userConfig:E.config,defaultConfig:I})),z=o.ref(`vue-ui-dashboard-${Math.random()}`),d=o.ref(r.value.locked);function X(){d.value=!d.value}const s=o.ref(E.dataset.map((e,t)=>({...e,index:t}))),h=o.ref(null),u=o.ref(null),v=o.ref({x:0,y:0}),f=o.ref({x:0,y:0}),i=o.ref(null),c=o.ref(!1),p=o.ref(null),m=o.ref(!1),w=o.ref(!1);function N(e){const t=e.target;t.tagName==="INPUT"&&t.type==="range"&&(w.value=!0)}function C(e){const t=e.target;t.tagName==="INPUT"&&t.type==="range"&&(w.value=!1)}function $(){m.value=!0,j.default({domElement:document.getElementById(`vue-ui-dashboard_${z.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{m.value=!1})}function Y(e){if(!d.value&&(c.value=!0,p.value=e,u.value===null)){h.value=e,v.value={x:event.clientX,y:event.clientY};const t=s.value[e],l=100-t.width,a=100-t.height;t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left>l&&(t.left=l),t.top>a&&(t.top=a),t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left+t.width>100&&(t.left=100-t.width),t.top+t.height>100&&(t.top=100-t.height)}}function k(e,t){c.value=!0,p.value=e,u.value={index:e,direction:t};const l=s.value[e];f.value={x:event.clientX,y:event.clientY,initialWidth:l.width,initialHeight:l.height}}function B(e,t,l){if(u.value.direction.includes("top")){const a=e.height-l/i.value.offsetHeight*100;a>=T&&(e.top+=l/i.value.offsetHeight*100,e.height=a)}if(u.value.direction.includes("bottom")){const a=e.height+l/i.value.offsetHeight*100;a>=T&&(e.height=a)}if(u.value.direction.includes("left")){const a=e.width-t/i.value.offsetWidth*100;a>=T&&(e.left+=t/i.value.offsetWidth*100,e.width=a)}if(u.value.direction.includes("right")){const a=e.width+t/i.value.offsetWidth*100;a>=T&&(e.width=a)}}function V(e){if(!(d.value||w.value)){if(c.value=!0,h.value!==null){const t=s.value[h.value],l=e.clientX-v.value.x,a=e.clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.clientX,y:e.clientY}}if(u.value!==null){const t=s.value[u.value.index],l=e.clientX-f.value.x,a=e.clientY-f.value.y;B(t,l,a),f.value={x:e.clientX,y:e.clientY}}}}o.watch(s,e=>{e&&!c.value&&S("change",s.value)},{deep:!0});function H(){h.value=null,u.value=null,c.value=!1,p.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}function P(e){d.value||w.value||(c.value=!0,p.value=e,u.value===null&&(h.value=e,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function _(e,t,l){if(c.value=!0,p.value=e,u.value===null){u.value={index:e,direction:t};const a=s.value[e];f.value={x:l.touches[0].clientX,y:l.touches[0].clientY,initialWidth:a.width,initialHeight:a.height}}}function M(e){if(c.value=!0,e.preventDefault(),u.value!==null){const t=s.value[u.value.index],l=e.touches[0].clientX-f.value.x,a=e.touches[0].clientY-f.value.y;B(t,l,a),f.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function D(e){if(!(d.value||w.value)&&(c.value=!0,e.preventDefault(),h.value!==null)){const t=s.value[h.value],l=e.touches[0].clientX-v.value.x,a=e.touches[0].clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function y(){c.value=!1,p.value=null,h.value=null,u.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}const W=o.computed(()=>r.value.style.item.borderColor),L=o.computed(()=>r.value.style.resizeHandles.backgroundColor),F=o.computed(()=>r.value.style.board.aspectRatio),R=o.computed(()=>r.value.style.board.backgroundColor),q=o.computed(()=>r.value.style.board.border);function O(){return s.value}return x({generatePdf:$,getItemsPositions:O,toggleLock:X}),(e,t)=>(o.openBlock(),o.createElementBlock("div",{onMousedown:N,onMouseup:C,onTouchstart:N,onTouchend:C},[r.value.allowPrint?(o.openBlock(),o.createElementBlock("div",K,[o.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:$,disabled:m.value,style:o.normalizeStyle([{"margin-top":"12px"},`color:${r.value.style.board.color}`])},[m.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-dashboard-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:r.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},te,8,Z)):(o.openBlock(),o.createElementBlock("span",oe,"PDF"))],12,Q)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:i,id:`vue-ui-dashboard_${z.value}`,style:o.normalizeStyle(`border:${q.value}; sbackground:${R.value}; aspect-ratio:${F.value}`)},[o.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:V,onMouseup:H,onTouchmove:D,onTouchend:y,style:o.normalizeStyle(`background:${r.value.style.board.backgroundColor}`)},[le,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(l,a)=>(o.openBlock(),o.createElementBlock("div",{key:l.id,class:o.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:o.normalizeStyle({width:`${l.width}%`,height:`${l.height}%`,left:`${l.left}%`,top:`${l.top}%`,cursor:"move",boxShadow:p.value===a?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:p.value===a?s.value.length+1:l.index,backgroundColor:r.value.style.item.backgroundColor}),onMousedown:n=>Y(a),onTouchstart:n=>P(a)},[d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:n=>k(a,"top-left"),onTouchstart:n=>_(a,"top-left",n),onTouchmove:t[0]||(t[0]=n=>M(n)),onTouchend:y},null,40,ue),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:n=>k(a,"top-right"),onTouchstart:n=>_(a,"top-right",n),onTouchmove:t[1]||(t[1]=n=>M(n)),onTouchend:y},null,40,se),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:n=>k(a,"bottom-left"),onTouchstart:n=>_(a,"bottom-left",n),onTouchmove:t[2]||(t[2]=n=>M(n)),onTouchend:y},null,40,re),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:n=>k(a,"bottom-right"),onTouchstart:n=>_(a,"bottom-right",n),onTouchmove:t[3]||(t[3]=n=>M(n)),onTouchend:y},null,40,ie)],64)),o.renderSlot(e.$slots,"content",{item:l,index:a,left:l.left,top:l.top,height:l.height,width:l.width},void 0,!0)],46,ne))),128))],36)],12,ae)],32))}},de=G._export_sfc(ce,[["__scopeId","data-v-840292ca"]]);exports.default=de;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-CFwQtnNB.cjs"),L=require("./index-C3wsuQ2C.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const u=e,$=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes(u.quanta)?$.value.X:$.value[u.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const u=e,{vue_ui_digits:$}=L.useConfig(),l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),d=[],n={x:10,y:10};let i=0;for(let y=0;y<c.length;y+=1){const o=c[y];d.push({x:n.x+i,y:n.y,quanta:o}),o=="."?i+=2:i+=44}return d}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, computed as d, openBlock as $, createElementBlock as i, Fragment as o, createElementVNode as l, createCommentVNode as m, unref as v, normalizeStyle as C, renderList as b, createBlock as N } from "vue";
|
|
2
|
-
import { u as q } from "./useNestedProp-
|
|
3
|
-
import { u as M, X as S } from "./index-
|
|
2
|
+
import { u as q } from "./useNestedProp-BcqToEU0.js";
|
|
3
|
+
import { u as M, X as S } from "./index-DhxnZ6ZS.js";
|
|
4
4
|
const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
|
|
5
5
|
__name: "Digit",
|
|
6
6
|
props: {
|