vue-data-ui 3.22.6 → 3.22.7
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-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Dt as t, Gt as n, Lt as r, Ot as i, Q as a, Rt as o, S as ee, Ut as te, W as ne, X as re, at as ie, b as ae, i as oe, jt as s, k as se, q as c, t as ce, ut as le, v as ue, vt as de, w as fe } from "./lib-EAmk-PgA.js";
|
|
3
3
|
import { t as pe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as me } from "./usePrinter-
|
|
4
|
+
import { t as me } from "./usePrinter-DnGzpp6Q.js";
|
|
5
5
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-
|
|
7
|
+
import { t as ve } from "./useNestedProp-D8XqxgOU.js";
|
|
8
8
|
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./img-
|
|
10
|
-
import { n as xe } from "./Title-
|
|
9
|
+
import { t as be } from "./img-B_abIg0o.js";
|
|
10
|
+
import { n as xe } from "./Title-PiTKr6sp.js";
|
|
11
11
|
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as Ce } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as we } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Te } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Te } from "./BaseLegendToggle-CHnlKalt.js";
|
|
15
15
|
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
16
16
|
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as ke } from "./Legend-
|
|
19
|
-
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-
|
|
18
|
+
import { t as ke } from "./Legend-kAr7Vqqu.js";
|
|
19
|
+
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-CyOGrdD_.js";
|
|
20
20
|
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
21
21
|
import { Fragment as l, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Re, onMounted as ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as w, toRefs as He, unref as T, watch as Ue, withCtx as E } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-radar.vue
|
|
@@ -112,10 +112,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
112
112
|
},
|
|
113
113
|
emits: ["selectLegend", "copyAlt"],
|
|
114
114
|
setup(e, { expose: Se, emit: We }) {
|
|
115
|
-
let St = h(() => import("./Tooltip-
|
|
115
|
+
let St = h(() => import("./Tooltip-B8yYfISA.js")), Ct = h(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), wt = h(() => import("./vue-ui-sparkbar-Cl1e49sw.js").then((e) => e.n)), Tt = h(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Et = h(() => import("./DataTable-CVF7DoZn.js")), Dt = h(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Ot = h(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), kt = h(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), At = h(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_radar: jt } = pe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = ye(), D = e, Pt = u(() => !!D.dataset && Object.keys(D.dataset).length), O = x(ne()), k = x(!1), Ft = x(""), It = x(0), A = x(null), Lt = x(null), Rt = x(null), zt = x(null), Bt = x(null), Vt = x(0), Ht = x(0), Ut = x(0), Wt = x(!1), j = x(null), Gt = x(null), Kt = x(!1), qt = x(!1), M = x(null), Jt = x({
|
|
116
116
|
x: 0,
|
|
117
117
|
y: 0
|
|
118
|
-
}), N = x("pointer"), Yt = x(!1), P = x(tn()), F = u(() => P.value.userOptions.useCursorPointer), Xt = u(() =>
|
|
118
|
+
}), N = x("pointer"), Yt = x(!1), P = x(tn()), F = u(() => P.value.userOptions.useCursorPointer), Xt = u(() => n({
|
|
119
119
|
defaultConfig: {
|
|
120
120
|
userOptions: { show: !1 },
|
|
121
121
|
table: { show: !1 },
|
|
@@ -178,7 +178,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
-
skeletonConfig:
|
|
181
|
+
skeletonConfig: n({
|
|
182
182
|
defaultConfig: P.value,
|
|
183
183
|
userConfig: Xt.value
|
|
184
184
|
})
|
|
@@ -187,19 +187,19 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
187
187
|
let e = ve({
|
|
188
188
|
userConfig: D.config,
|
|
189
189
|
defaultConfig: jt
|
|
190
|
-
}),
|
|
191
|
-
if (!
|
|
190
|
+
}), t = e.theme;
|
|
191
|
+
if (!t) return e;
|
|
192
192
|
if (!Mt.value(e)) return Nt(e), e;
|
|
193
|
-
let
|
|
194
|
-
userConfig: je[
|
|
193
|
+
let n = ve({
|
|
194
|
+
userConfig: je[t] || D.config,
|
|
195
195
|
defaultConfig: e
|
|
196
|
-
}),
|
|
196
|
+
}), r = ve({
|
|
197
197
|
userConfig: D.config,
|
|
198
|
-
defaultConfig:
|
|
198
|
+
defaultConfig: n
|
|
199
199
|
});
|
|
200
200
|
return {
|
|
201
|
-
...
|
|
202
|
-
customPalette:
|
|
201
|
+
...r,
|
|
202
|
+
customPalette: r.customPalette.length ? r.customPalette : te[t] || s
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
Ue(() => D.config, (e) => {
|
|
@@ -207,7 +207,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
207
207
|
}, { deep: !0 });
|
|
208
208
|
let R = Ve(null), z = Ve(null), B = u(() => P.value.debug);
|
|
209
209
|
function nn() {
|
|
210
|
-
if (
|
|
210
|
+
if (i(D.dataset) && a({
|
|
211
211
|
componentName: "VueUiRadar",
|
|
212
212
|
type: "dataset",
|
|
213
213
|
debug: B.value
|
|
@@ -288,11 +288,11 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
288
288
|
function gn() {
|
|
289
289
|
let e = I.value;
|
|
290
290
|
if ([null, void 0].includes(e?.categories)) {
|
|
291
|
-
|
|
291
|
+
a({
|
|
292
292
|
componentName: "VueUiRadar",
|
|
293
293
|
type: "dataset",
|
|
294
294
|
debug: B.value
|
|
295
|
-
}),
|
|
295
|
+
}), a({
|
|
296
296
|
componentName: "VueUiRadar",
|
|
297
297
|
type: "datasetAttribute",
|
|
298
298
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
@@ -300,7 +300,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
300
300
|
});
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
|
-
e.categories.length === 0 ?
|
|
303
|
+
e.categories.length === 0 ? a({
|
|
304
304
|
componentName: "VueUiRadar",
|
|
305
305
|
type: "datasetAttributeEmpty",
|
|
306
306
|
property: "categories",
|
|
@@ -310,7 +310,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
310
310
|
datasetObject: e,
|
|
311
311
|
requiredAttributes: ["name"]
|
|
312
312
|
}).forEach((e) => {
|
|
313
|
-
|
|
313
|
+
a({
|
|
314
314
|
componentName: "VueUiRadar",
|
|
315
315
|
type: "datasetAttribute",
|
|
316
316
|
property: `category.${e} at index ${t}`,
|
|
@@ -318,7 +318,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
318
318
|
debug: B.value
|
|
319
319
|
});
|
|
320
320
|
});
|
|
321
|
-
}), [null, void 0].includes(e?.series) ?
|
|
321
|
+
}), [null, void 0].includes(e?.series) ? a({
|
|
322
322
|
componentName: "VueUiRadar",
|
|
323
323
|
type: "datasetAttribute",
|
|
324
324
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
@@ -332,7 +332,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
332
332
|
"target"
|
|
333
333
|
]
|
|
334
334
|
}).forEach((e) => {
|
|
335
|
-
|
|
335
|
+
a({
|
|
336
336
|
componentName: "VueUiRadar",
|
|
337
337
|
type: "datasetSerieAttribute",
|
|
338
338
|
key: "series",
|
|
@@ -348,20 +348,20 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
348
348
|
immediate: !0
|
|
349
349
|
});
|
|
350
350
|
let K = u(() => {
|
|
351
|
-
let e = Array.isArray(I.value?.categories) ? I.value.categories : [],
|
|
352
|
-
return e.map((e,
|
|
351
|
+
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t = ln.value ?? s;
|
|
352
|
+
return e.map((e, n) => ({
|
|
353
353
|
name: e?.name ?? "",
|
|
354
|
-
categoryId: `radar_category_${O.value}_${
|
|
355
|
-
color:
|
|
354
|
+
categoryId: `radar_category_${O.value}_${n}`,
|
|
355
|
+
color: ae(e?.color) || t[n] || s[n % s.length],
|
|
356
356
|
prefix: e?.prefix ?? "",
|
|
357
357
|
suffix: e?.suffix ?? ""
|
|
358
358
|
}));
|
|
359
|
-
}), q = u(() => I.value.series.map((e,
|
|
359
|
+
}), q = u(() => I.value.series.map((e, t) => ({
|
|
360
360
|
...e,
|
|
361
|
-
color:
|
|
362
|
-
serieId: `radar_serie_${O.value}_${
|
|
361
|
+
color: ae(e.color) || ln.value[t] || s[t] || s[t % s.length],
|
|
362
|
+
serieId: `radar_serie_${O.value}_${t}`,
|
|
363
363
|
formatter: e.formatter || null,
|
|
364
|
-
absoluteIndex:
|
|
364
|
+
absoluteIndex: t
|
|
365
365
|
})));
|
|
366
366
|
function _n(e) {
|
|
367
367
|
return q.value.length ? Y.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
@@ -387,7 +387,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
387
387
|
apexY: n.y,
|
|
388
388
|
proportion: (e.target || 0) / xn(e)
|
|
389
389
|
});
|
|
390
|
-
})), Cn = u(() => q.value.length), wn = u(() => Math.min(H.value.width, H.value.height) / 3), Tn = u(() =>
|
|
390
|
+
})), Cn = u(() => q.value.length), wn = u(() => Math.min(H.value.width, H.value.height) / 3), Tn = u(() => se({
|
|
391
391
|
plot: {
|
|
392
392
|
x: H.value.width / 2,
|
|
393
393
|
y: H.value.height / 2
|
|
@@ -445,7 +445,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
445
445
|
let Y = u(() => {
|
|
446
446
|
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target || bn.value)));
|
|
447
447
|
return K.value.map((t, n) => {
|
|
448
|
-
let r =
|
|
448
|
+
let r = ue(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / q.value.length);
|
|
449
449
|
return {
|
|
450
450
|
...t,
|
|
451
451
|
absoluteIndex: n,
|
|
@@ -484,13 +484,13 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
484
484
|
head: e,
|
|
485
485
|
body: I.value.series.map((e) => [
|
|
486
486
|
e.name,
|
|
487
|
-
|
|
487
|
+
oe(e.formatter, e.target, c({
|
|
488
488
|
p: e.prefix,
|
|
489
489
|
v: e.target,
|
|
490
490
|
s: e.suffix,
|
|
491
491
|
r: P.value.table.td.roundingValue
|
|
492
492
|
})),
|
|
493
|
-
...e.values.map((t, n) => `${
|
|
493
|
+
...e.values.map((t, n) => `${oe(e.formatter, t, c({
|
|
494
494
|
p: K.value[n]?.prefix ?? "",
|
|
495
495
|
v: t,
|
|
496
496
|
s: K.value[n]?.suffix ?? "",
|
|
@@ -546,7 +546,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
546
546
|
config: P.value
|
|
547
547
|
};
|
|
548
548
|
let i = P.value.style.chart.tooltip.customFormat;
|
|
549
|
-
if (
|
|
549
|
+
if (de(i) && ie(() => i({
|
|
550
550
|
seriesIndex: t,
|
|
551
551
|
datapoint: e,
|
|
552
552
|
series: {
|
|
@@ -570,21 +570,21 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
570
570
|
}
|
|
571
571
|
Ft.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
572
572
|
for (let t = 0; t < e.values.length; t += 1) if (!U.value.includes(t)) {
|
|
573
|
-
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o =
|
|
573
|
+
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = oe(e.formatter, i, c({
|
|
574
574
|
p: K.value[t].prefix,
|
|
575
575
|
v: i,
|
|
576
576
|
s: K.value[t].suffix,
|
|
577
577
|
r: P.value.style.chart.tooltip.roundingValue
|
|
578
|
-
}), { datapoint: e }),
|
|
578
|
+
}), { datapoint: e }), ee = c({
|
|
579
579
|
v: a,
|
|
580
580
|
s: "%",
|
|
581
581
|
r: P.value.style.chart.tooltip.roundingPercentage
|
|
582
|
-
}),
|
|
582
|
+
}), te = P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${o} (${ee})` : P.value.style.chart.tooltip.showValue && !P.value.style.chart.tooltip.showPercentage ? o : !P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${ee}` : "";
|
|
583
583
|
Mn.value.push({
|
|
584
584
|
name: n?.name ?? `#${t + 1}`,
|
|
585
585
|
value: e.values[t] / e.target * 100,
|
|
586
586
|
color: n?.color,
|
|
587
|
-
suffix:
|
|
587
|
+
suffix: te,
|
|
588
588
|
prefix: "",
|
|
589
589
|
rounding: P.value.style.chart.tooltip.roundingPercentage,
|
|
590
590
|
formatter: e.formatter
|
|
@@ -622,11 +622,11 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
622
622
|
function Bn() {
|
|
623
623
|
V.value.showTooltip = !V.value.showTooltip;
|
|
624
624
|
}
|
|
625
|
-
let
|
|
626
|
-
function
|
|
627
|
-
|
|
625
|
+
let Vn = x(!1);
|
|
626
|
+
function Hn() {
|
|
627
|
+
Vn.value = !Vn.value;
|
|
628
628
|
}
|
|
629
|
-
async function
|
|
629
|
+
async function Un({ scale: e = 2 } = {}) {
|
|
630
630
|
if (!A.value) return;
|
|
631
631
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
632
632
|
domElement: A.value,
|
|
@@ -643,7 +643,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
643
643
|
aspectRatio: r
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
let
|
|
646
|
+
let $ = u(() => {
|
|
647
647
|
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
648
648
|
return {
|
|
649
649
|
component: e ? At : Tt,
|
|
@@ -747,7 +747,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
749
|
function nr(e) {
|
|
750
|
-
if (!L.value ||
|
|
750
|
+
if (!L.value || Vn.value || document.activeElement !== L.value || !J.value.length) return;
|
|
751
751
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
752
752
|
if (!t && !n && !r && !i) return;
|
|
753
753
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -772,7 +772,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
772
772
|
}));
|
|
773
773
|
return Se({
|
|
774
774
|
getData: hn,
|
|
775
|
-
getImage:
|
|
775
|
+
getImage: Un,
|
|
776
776
|
generatePdf: on,
|
|
777
777
|
generateCsv: Ln,
|
|
778
778
|
generateImage: sn,
|
|
@@ -781,17 +781,17 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
781
781
|
showSeries: vn,
|
|
782
782
|
toggleTable: zn,
|
|
783
783
|
toggleTooltip: Bn,
|
|
784
|
-
toggleAnnotator:
|
|
784
|
+
toggleAnnotator: Hn,
|
|
785
785
|
toggleFullscreen: Rn,
|
|
786
786
|
copyAlt: Qn
|
|
787
|
-
}), (e,
|
|
787
|
+
}), (e, n) => (b(), p("div", {
|
|
788
788
|
class: _(`vue-data-ui-component vue-ui-radar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
789
789
|
ref_key: "radarChart",
|
|
790
790
|
ref: A,
|
|
791
791
|
id: `vue-ui-radar_${O.value}`,
|
|
792
792
|
style: y(`font-family:${P.value.style.fontFamily};width:100%; ${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
793
|
-
onMouseenter:
|
|
794
|
-
onMouseleave:
|
|
793
|
+
onMouseenter: n[2] ||= () => T($t)(!0),
|
|
794
|
+
onMouseleave: n[3] ||= () => T($t)(!1)
|
|
795
795
|
}, [
|
|
796
796
|
m("div", {
|
|
797
797
|
id: `chart-instructions-${O.value}`,
|
|
@@ -816,9 +816,9 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
816
816
|
svgRef: T(L),
|
|
817
817
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
818
818
|
color: P.value.style.chart.color,
|
|
819
|
-
active:
|
|
819
|
+
active: Vn.value,
|
|
820
820
|
isCursorPointer: F.value,
|
|
821
|
-
onClose:
|
|
821
|
+
onClose: Hn
|
|
822
822
|
}, {
|
|
823
823
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
824
824
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
@@ -883,7 +883,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
883
883
|
chartElement: A.value,
|
|
884
884
|
position: P.value.userOptions.position,
|
|
885
885
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
886
|
-
isAnnotation:
|
|
886
|
+
isAnnotation: Vn.value,
|
|
887
887
|
callbacks: P.value.userOptions.callbacks,
|
|
888
888
|
printScale: P.value.userOptions.print.scale,
|
|
889
889
|
tableDialog: P.value.table.useDialog,
|
|
@@ -895,7 +895,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
895
895
|
onGenerateSvg: Xn,
|
|
896
896
|
onToggleTable: zn,
|
|
897
897
|
onToggleTooltip: Bn,
|
|
898
|
-
onToggleAnnotator:
|
|
898
|
+
onToggleAnnotator: Hn,
|
|
899
899
|
onCopyAlt: Qn,
|
|
900
900
|
style: y({ visibility: T(en) ? T(Qt) ? "visible" : "hidden" : "visible" })
|
|
901
901
|
}, Ne({ _: 2 }, [
|
|
@@ -972,7 +972,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
972
972
|
m("div", Je, [(b(), p("svg", {
|
|
973
973
|
ref_key: "svgRef",
|
|
974
974
|
ref: L,
|
|
975
|
-
xmlns: T(
|
|
975
|
+
xmlns: T(ce),
|
|
976
976
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
977
977
|
class: _({
|
|
978
978
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
@@ -1003,10 +1003,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1003
1003
|
id: `radar_gradient_${O.value}_${t}`
|
|
1004
1004
|
}, [m("stop", {
|
|
1005
1005
|
offset: "0%",
|
|
1006
|
-
"stop-color": T(
|
|
1006
|
+
"stop-color": T(r)(T(o)(e.color, .05), P.value.style.chart.layout.dataPolygon.opacity)
|
|
1007
1007
|
}, null, 8, Qe), m("stop", {
|
|
1008
1008
|
offset: "100%",
|
|
1009
|
-
"stop-color": T(
|
|
1009
|
+
"stop-color": T(r)(e.color, P.value.style.chart.layout.dataPolygon.opacity)
|
|
1010
1010
|
}, null, 8, $e)], 8, Ze))), 256))]),
|
|
1011
1011
|
P.value.style.chart.layout.grid.show ? (b(), p("g", et, [(b(!0), p(l, null, S(J.value, (e) => (b(), p("line", {
|
|
1012
1012
|
x1: H.value.width / 2,
|
|
@@ -1016,7 +1016,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1016
1016
|
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1017
1017
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1018
1018
|
}, null, 8, tt))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", nt, [(b(!0), p(l, null, S(En.value, (e) => (b(), p("path", {
|
|
1019
|
-
d: T(
|
|
1019
|
+
d: T(se)({
|
|
1020
1020
|
plot: {
|
|
1021
1021
|
x: H.value.width / 2,
|
|
1022
1022
|
y: H.value.height / 2
|
|
@@ -1048,31 +1048,31 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1048
1048
|
onMouseleave: (n) => Pn(e, t),
|
|
1049
1049
|
onClick: (n) => Fn(e, t)
|
|
1050
1050
|
}, w(e.name), 41, ot))), 256))])) : f("", !0),
|
|
1051
|
-
(b(!0), p(l, null, S(K.value, (e,
|
|
1051
|
+
(b(!0), p(l, null, S(K.value, (e, n) => (b(), p("g", null, [m("g", null, [P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(n) ? (b(), p("polygon", {
|
|
1052
1052
|
key: 0,
|
|
1053
|
-
points: T(
|
|
1053
|
+
points: T(t)(J.value.map((e) => e.plots[n]), !1, !0),
|
|
1054
1054
|
stroke: P.value.style.chart.backgroundColor,
|
|
1055
1055
|
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1056
1056
|
fill: "none",
|
|
1057
1057
|
class: _({
|
|
1058
|
-
"animated-out": U.value.includes(
|
|
1059
|
-
"animated-in": G.value && W.value ===
|
|
1058
|
+
"animated-out": U.value.includes(n) && P.value.useCssAnimation,
|
|
1059
|
+
"animated-in": G.value && W.value === n && P.value.useCssAnimation
|
|
1060
1060
|
})
|
|
1061
|
-
}, null, 10, st)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(
|
|
1061
|
+
}, null, 10, st)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(n) ? (b(), p("polygon", {
|
|
1062
1062
|
key: 1,
|
|
1063
|
-
points: T(
|
|
1063
|
+
points: T(t)(J.value.map((e) => e.plots[n]), !1, !0),
|
|
1064
1064
|
stroke: e.color,
|
|
1065
1065
|
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1066
|
-
fill: P.value.style.chart.layout.dataPolygon.transparent ? "transparent" : P.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${
|
|
1066
|
+
fill: P.value.style.chart.layout.dataPolygon.transparent ? "transparent" : P.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${n})` : T(r)(e.color, P.value.style.chart.layout.dataPolygon.opacity),
|
|
1067
1067
|
class: _({
|
|
1068
|
-
"animated-out": U.value.includes(
|
|
1069
|
-
"animated-in": G.value && W.value ===
|
|
1068
|
+
"animated-out": U.value.includes(n) && P.value.useCssAnimation,
|
|
1069
|
+
"animated-in": G.value && W.value === n && P.value.useCssAnimation
|
|
1070
1070
|
})
|
|
1071
1071
|
}, null, 10, ct)) : f("", !0)])]))), 256)),
|
|
1072
1072
|
P.value.style.chart.layout.targetReference.show ? (b(), p("path", {
|
|
1073
1073
|
key: 3,
|
|
1074
1074
|
class: "vue-ui-radar-target-polygon",
|
|
1075
|
-
d: `M${T(
|
|
1075
|
+
d: `M${T(t)(Sn.value, !1, !0)}Z`,
|
|
1076
1076
|
fill: "none",
|
|
1077
1077
|
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1078
1078
|
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth,
|
|
@@ -1115,7 +1115,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1115
1115
|
legendSet: Y.value,
|
|
1116
1116
|
config: jn.value,
|
|
1117
1117
|
isCursorPointer: F.value,
|
|
1118
|
-
onClickMarker:
|
|
1118
|
+
onClickMarker: n[0] ||= ({ i: e }) => mn(e)
|
|
1119
1119
|
}, Ne({
|
|
1120
1120
|
item: E(({ legend: e, index: t }) => [T(Zt) ? f("", !0) : (b(), p("div", {
|
|
1121
1121
|
key: 0,
|
|
@@ -1227,7 +1227,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1227
1227
|
"isA11yMode",
|
|
1228
1228
|
"a11yPosition"
|
|
1229
1229
|
]),
|
|
1230
|
-
Pt.value && P.value.userOptions.buttons.table ? (b(), d(Be(
|
|
1230
|
+
Pt.value && P.value.userOptions.buttons.table ? (b(), d(Be($.value.component), Ie({ key: 8 }, $.value.props, {
|
|
1231
1231
|
ref_key: "tableUnit",
|
|
1232
1232
|
ref: j,
|
|
1233
1233
|
onClose: Wn
|
|
@@ -1238,7 +1238,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1238
1238
|
head: X.value.head,
|
|
1239
1239
|
body: X.value.body,
|
|
1240
1240
|
config: X.value.config,
|
|
1241
|
-
title: P.value.table.useDialog ? "" :
|
|
1241
|
+
title: P.value.table.useDialog ? "" : $.value.title,
|
|
1242
1242
|
withCloseButton: !P.value.table.useDialog,
|
|
1243
1243
|
isCursorPointer: F.value,
|
|
1244
1244
|
onClose: Wn
|
|
@@ -1258,18 +1258,18 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1258
1258
|
_: 2
|
|
1259
1259
|
}, [P.value.table.useDialog ? {
|
|
1260
1260
|
name: "title",
|
|
1261
|
-
fn: E(() => [Pe(w(
|
|
1261
|
+
fn: E(() => [Pe(w($.value.title), 1)]),
|
|
1262
1262
|
key: "0"
|
|
1263
1263
|
} : void 0, P.value.table.useDialog ? {
|
|
1264
1264
|
name: "actions",
|
|
1265
1265
|
fn: E(() => [m("button", {
|
|
1266
1266
|
tabindex: "0",
|
|
1267
1267
|
class: "vue-ui-user-options-button",
|
|
1268
|
-
onClick:
|
|
1268
|
+
onClick: n[1] ||= (e) => Ln(P.value.userOptions.callbacks.csv),
|
|
1269
1269
|
style: y({ cursor: F.value ? "pointer" : "default" })
|
|
1270
1270
|
}, [Fe(T(Ct), {
|
|
1271
1271
|
name: "fileCsv",
|
|
1272
|
-
stroke:
|
|
1272
|
+
stroke: $.value.props.color
|
|
1273
1273
|
}, null, 8, ["stroke"])], 4)]),
|
|
1274
1274
|
key: "1"
|
|
1275
1275
|
} : void 0]), 1040)) : f("", !0),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { I as t, Ot as n, Q as r, Rt as i, W as a, i as o, q as s, t as c } from "./lib-EAmk-PgA.js";
|
|
3
3
|
import { t as l } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as u } from "./useNestedProp-
|
|
4
|
+
import { t as u } from "./useNestedProp-D8XqxgOU.js";
|
|
5
5
|
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
6
|
import { Fragment as f, computed as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, mergeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ee, renderSlot as S, toDisplayString as C, unref as w, useSlots as te, watch as ne, withKeys as re } from "vue";
|
|
7
7
|
//#region src/components/vue-ui-rating.vue
|
|
@@ -113,7 +113,7 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
113
113
|
X();
|
|
114
114
|
});
|
|
115
115
|
function X() {
|
|
116
|
-
(!Object.hasOwn(R.dataset, "rating") ||
|
|
116
|
+
(!Object.hasOwn(R.dataset, "rating") || n(R.dataset)) && r({
|
|
117
117
|
componentName: "VueUiRating",
|
|
118
118
|
type: "datasetAttribute",
|
|
119
119
|
property: "rating"
|
|
@@ -143,11 +143,11 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
143
143
|
return d({
|
|
144
144
|
getData: _e,
|
|
145
145
|
toggleReadonly: ve
|
|
146
|
-
}), (e,
|
|
146
|
+
}), (e, n) => (b(), h("div", {
|
|
147
147
|
style: v(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
|
|
148
148
|
class: "vue-data-ui-component vue-ui-rating",
|
|
149
|
-
onMouseover:
|
|
150
|
-
onMouseleave:
|
|
149
|
+
onMouseover: n[4] ||= (e) => B.value = !0,
|
|
150
|
+
onMouseleave: n[5] ||= (e) => {
|
|
151
151
|
B.value = !1, V.value = void 0;
|
|
152
152
|
}
|
|
153
153
|
}, [
|
|
@@ -173,17 +173,17 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
173
173
|
v: q.value,
|
|
174
174
|
r: G.value.style.rating.roundingValue
|
|
175
175
|
}), G.value)), 5)) : m("", !0),
|
|
176
|
-
(b(!0), h(f, null, ee(U.value, (
|
|
176
|
+
(b(!0), h(f, null, ee(U.value, (r, a) => (b(), h("div", {
|
|
177
177
|
class: "vue-ui-rating-unit-container",
|
|
178
178
|
style: v(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
179
179
|
}, [
|
|
180
180
|
e.$slots["layer-under"] || e.$slots["layer-above"] ? (b(), h("div", E, [e.$slots["layer-under"] ? (b(), h("div", D, [S(e.$slots, "layer-under", _({ ref_for: !0 }, {
|
|
181
|
-
value:
|
|
181
|
+
value: r,
|
|
182
182
|
size: G.value.style.itemSize,
|
|
183
183
|
hoveredValue: V.value,
|
|
184
184
|
focusedValue: H.value
|
|
185
185
|
}), void 0, !0)])) : m("", !0), e.$slots["layer-above"] ? (b(), h("div", O, [S(e.$slots, "layer-above", _({ ref_for: !0 }, {
|
|
186
|
-
value:
|
|
186
|
+
value: r,
|
|
187
187
|
size: G.value.style.itemSize,
|
|
188
188
|
hoveredValue: V.value,
|
|
189
189
|
focusedValue: H.value
|
|
@@ -193,7 +193,7 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
193
193
|
height: G.value.style.itemSize,
|
|
194
194
|
width: G.value.style.itemSize,
|
|
195
195
|
class: "vue-ui-rating-unit",
|
|
196
|
-
style: v(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? G.value.style.image.inactiveOpacity : Z(
|
|
196
|
+
style: v(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? G.value.style.image.inactiveOpacity : Z(r, !0)}`)
|
|
197
197
|
}, null, 12, ae)) : (b(), h("svg", {
|
|
198
198
|
key: 1,
|
|
199
199
|
xmlns: w(c),
|
|
@@ -210,12 +210,12 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
210
210
|
id: `star_gradient_under_${z.value}`
|
|
211
211
|
}, [g("stop", {
|
|
212
212
|
offset: "0%",
|
|
213
|
-
"stop-color": `${w(
|
|
213
|
+
"stop-color": `${w(i)(G.value.style.star.activeColor, .05)}`
|
|
214
214
|
}, null, 8, ce), g("stop", {
|
|
215
215
|
offset: "100%",
|
|
216
216
|
"stop-color": G.value.style.star.activeColor
|
|
217
217
|
}, null, 8, le)], 8, se)]), g("polygon", {
|
|
218
|
-
points: w(
|
|
218
|
+
points: w(t)({
|
|
219
219
|
plot: {
|
|
220
220
|
x: 50,
|
|
221
221
|
y: 50
|
|
@@ -223,18 +223,18 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
223
223
|
radius: 30,
|
|
224
224
|
apexes: G.value.style.star.apexes
|
|
225
225
|
}),
|
|
226
|
-
fill: isNaN(V.value) ? G.value.style.star.inactiveColor : Z(
|
|
227
|
-
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : V.value ? Z(
|
|
226
|
+
fill: isNaN(V.value) ? G.value.style.star.inactiveColor : Z(r),
|
|
227
|
+
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : V.value ? Z(r) : G.value.style.star.inactiveColor,
|
|
228
228
|
"stroke-width": G.value.style.star.borderWidth,
|
|
229
229
|
"stroke-linecap": "round",
|
|
230
230
|
"stroke-linejoin": "round"
|
|
231
231
|
}, null, 8, ue)], 8, oe)), J.value ? (b(), h("img", {
|
|
232
232
|
key: 2,
|
|
233
233
|
src: G.value.style.image.src,
|
|
234
|
-
alt: `${G.value.style.image.alt} ${
|
|
234
|
+
alt: `${G.value.style.image.alt} ${r}`,
|
|
235
235
|
height: G.value.style.itemSize,
|
|
236
236
|
width: G.value.style.itemSize,
|
|
237
|
-
id: `active_${z.value}_${
|
|
237
|
+
id: `active_${z.value}_${r}`,
|
|
238
238
|
class: "vue-ui-rating-unit",
|
|
239
239
|
style: v(`position:absolute;top:0;left:0;clip:rect(0px,${Q(a, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
|
|
240
240
|
}, null, 12, de)) : (b(), h("svg", {
|
|
@@ -243,7 +243,7 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
243
243
|
viewBox: `0 0 ${Q(a)} 100`,
|
|
244
244
|
height: G.value.style.itemSize,
|
|
245
245
|
class: "vue-ui-rating-unit",
|
|
246
|
-
id: `active_${z.value}_${
|
|
246
|
+
id: `active_${z.value}_${r}`,
|
|
247
247
|
style: {
|
|
248
248
|
position: "absolute",
|
|
249
249
|
top: "0",
|
|
@@ -258,12 +258,12 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
258
258
|
id: `star_gradient_over_${z.value}`
|
|
259
259
|
}, [g("stop", {
|
|
260
260
|
offset: "0%",
|
|
261
|
-
"stop-color": `${w(
|
|
261
|
+
"stop-color": `${w(i)(G.value.style.star.activeColor, .05)}`
|
|
262
262
|
}, null, 8, j), g("stop", {
|
|
263
263
|
offset: "100%",
|
|
264
264
|
"stop-color": G.value.style.star.activeColor
|
|
265
265
|
}, null, 8, M)], 8, A)]), g("polygon", {
|
|
266
|
-
points: w(
|
|
266
|
+
points: w(t)({
|
|
267
267
|
plot: {
|
|
268
268
|
x: 50,
|
|
269
269
|
y: 50
|
|
@@ -288,13 +288,13 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
288
288
|
width: 100,
|
|
289
289
|
height: 100,
|
|
290
290
|
fill: "transparent",
|
|
291
|
-
onClick: (e) => $(
|
|
292
|
-
onMouseenter: (e) => V.value =
|
|
293
|
-
onMouseleave:
|
|
294
|
-
onFocus: (e) => H.value =
|
|
295
|
-
onBlur:
|
|
291
|
+
onClick: (e) => $(r),
|
|
292
|
+
onMouseenter: (e) => V.value = r,
|
|
293
|
+
onMouseleave: n[0] ||= (e) => V.value = void 0,
|
|
294
|
+
onFocus: (e) => H.value = r,
|
|
295
|
+
onBlur: n[1] ||= (e) => H.value = void 0,
|
|
296
296
|
tabindex: "0",
|
|
297
|
-
onKeyup: re((e) => $(
|
|
297
|
+
onKeyup: re((e) => $(r), ["enter"])
|
|
298
298
|
}, null, 40, F)), Y.value ? (b(), h("rect", {
|
|
299
299
|
key: 1,
|
|
300
300
|
class: "vue-ui-rating-mouse-trap",
|
|
@@ -303,19 +303,19 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
303
303
|
width: 100,
|
|
304
304
|
height: 100,
|
|
305
305
|
fill: "transparent",
|
|
306
|
-
onMouseenter: (e) => V.value =
|
|
307
|
-
onMouseleave:
|
|
308
|
-
onFocus: (e) => H.value =
|
|
309
|
-
onBlur:
|
|
306
|
+
onMouseenter: (e) => V.value = r,
|
|
307
|
+
onMouseleave: n[2] ||= (e) => V.value = void 0,
|
|
308
|
+
onFocus: (e) => H.value = r,
|
|
309
|
+
onBlur: n[3] ||= (e) => H.value = void 0
|
|
310
310
|
}, null, 40, I)) : m("", !0)], 12, P)),
|
|
311
311
|
G.value.style.tooltip.show && he.value && Y.value ? (b(), h("div", {
|
|
312
312
|
key: 2,
|
|
313
313
|
class: "vue-ui-rating-tooltip",
|
|
314
|
-
style: v(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${V.value ===
|
|
314
|
+
style: v(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${V.value === r ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
315
315
|
}, [g("div", { style: v(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
316
|
-
g("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(
|
|
317
|
-
g("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(o)(G.value.style.tooltip.formatter, R.dataset.rating[
|
|
318
|
-
v: R.dataset.rating[
|
|
316
|
+
g("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(r) + ":", 5),
|
|
317
|
+
g("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(o)(G.value.style.tooltip.formatter, R.dataset.rating[r], w(s)({
|
|
318
|
+
v: R.dataset.rating[r],
|
|
319
319
|
r: G.value.style.tooltip.roundingValue
|
|
320
320
|
}), G.value)), 5),
|
|
321
321
|
g("div", { style: v(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
|