vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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-hill.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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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/types/vue-data-ui.d.ts +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, At as n, D as r, Ht as i, It as a, Jt as o, Nt as s, S as c, X as l, Xt as u, Y as d, b as f, f as p, h as m, i as h, jt as ee, mt as te, nt as ne, p as re, q as ie, t as ae, w as oe } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as se } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ce } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
5
|
+
import { t as le } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-
|
|
7
|
+
import { t as fe } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
-
import { t as he } from "./img-
|
|
11
|
-
import { n as ge } from "./Title-
|
|
10
|
+
import { t as he } from "./img-Bkzj3lDD.js";
|
|
11
|
+
import { n as ge } from "./Title-CaVA8EIw.js";
|
|
12
12
|
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as g } from "./DefGrad-DVBqDjhO.js";
|
|
@@ -18,7 +18,7 @@ import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
|
18
18
|
import { t as Ce } from "./vue_ui_3d_bar-C4R7o-yX.js";
|
|
19
19
|
import { Fragment as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as we, createTextVNode as Te, createVNode as C, defineAsyncComponent as w, guardReactiveProps as T, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as E, normalizeStyle as D, onMounted as ke, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Ae, toDisplayString as M, toRefs as je, unref as N, watch as Me, withCtx as P, withKeys as Ne, withModifiers as Pe } from "vue";
|
|
20
20
|
//#region src/components/vue-ui-3d-bar.vue
|
|
21
|
-
var Fe = /* @__PURE__ */ e({ default: () =>
|
|
21
|
+
var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re = {
|
|
22
22
|
"aria-live": "polite",
|
|
23
23
|
class: "sr-only"
|
|
24
24
|
}, ze = { style: { position: "relative" } }, Be = [
|
|
@@ -218,7 +218,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
218
218
|
], Qt = {
|
|
219
219
|
key: 4,
|
|
220
220
|
class: "vue-data-ui-watermark"
|
|
221
|
-
}, $t =
|
|
221
|
+
}, $t = { key: 0 }, en = { key: 1 }, tn = /*#__PURE__*/ _e({
|
|
222
222
|
__name: "vue-ui-3d-bar",
|
|
223
223
|
props: {
|
|
224
224
|
config: {
|
|
@@ -236,7 +236,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
236
236
|
},
|
|
237
237
|
emits: ["selectDatapoint", "copyAlt"],
|
|
238
238
|
setup(e, { expose: _e, emit: Fe }) {
|
|
239
|
-
let
|
|
239
|
+
let tn = w(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), nn = w(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), rn = w(() => import("./DataTable-CmyEubtT.js")), an = w(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), on = w(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), sn = w(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), cn = w(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_3d_bar: ln } = ce(), { isThemeValid: un, warnInvalidTheme: dn } = pe(), F = e, fn = Fe, pn = v(() => !!F.dataset && Object.keys(F.dataset).length), I = k(ie()), L = k(null), R = k(!1), mn = k(0), hn = k(0), gn = k(null), _n = k(null), vn = k(null), yn = k(null), z = k(!1), bn = k(null), xn = k(null), B = k(null), V = k(""), H = k(kn());
|
|
240
240
|
se({
|
|
241
241
|
config: () => H.value,
|
|
242
242
|
dataset: () => F.dataset,
|
|
@@ -261,7 +261,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
261
261
|
]
|
|
262
262
|
}]
|
|
263
263
|
});
|
|
264
|
-
let
|
|
264
|
+
let Sn = v(() => H.value.userOptions.useCursorPointer), Cn = v(() => u({
|
|
265
265
|
defaultConfig: {
|
|
266
266
|
customPalette: [
|
|
267
267
|
"#808080",
|
|
@@ -281,13 +281,13 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
281
281
|
} }
|
|
282
282
|
},
|
|
283
283
|
userConfig: H.value.skeletonConfig ?? {}
|
|
284
|
-
})), { loading:
|
|
284
|
+
})), { loading: wn, FINAL_DATASET: U } = ue({
|
|
285
285
|
...je(F),
|
|
286
286
|
FINAL_CONFIG: H,
|
|
287
|
-
prepareConfig:
|
|
287
|
+
prepareConfig: kn,
|
|
288
288
|
callback: () => {
|
|
289
289
|
Promise.resolve().then(async () => {
|
|
290
|
-
await De(),
|
|
290
|
+
await De(), Rn();
|
|
291
291
|
});
|
|
292
292
|
},
|
|
293
293
|
skeletonDataset: F.config?.skeletonDataset ?? { series: [
|
|
@@ -325,18 +325,18 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
325
325
|
}]
|
|
326
326
|
}
|
|
327
327
|
] },
|
|
328
|
-
skeletonConfig:
|
|
328
|
+
skeletonConfig: u({
|
|
329
329
|
defaultConfig: H.value,
|
|
330
|
-
userConfig:
|
|
330
|
+
userConfig: Cn.value
|
|
331
331
|
})
|
|
332
|
-
}), { userOptionsVisible:
|
|
333
|
-
function
|
|
332
|
+
}), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = xe({ config: H.value }), { svgRef: On } = Se({ config: H.value.style.chart.title });
|
|
333
|
+
function kn() {
|
|
334
334
|
let e = fe({
|
|
335
335
|
userConfig: F.config,
|
|
336
|
-
defaultConfig:
|
|
336
|
+
defaultConfig: ln
|
|
337
337
|
}), t = e.theme;
|
|
338
338
|
if (!t) return e;
|
|
339
|
-
if (!
|
|
339
|
+
if (!un.value(e)) return dn(e), e;
|
|
340
340
|
let n = fe({
|
|
341
341
|
userConfig: Ce[t] || F.config,
|
|
342
342
|
defaultConfig: e
|
|
@@ -346,177 +346,177 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
346
346
|
});
|
|
347
347
|
return {
|
|
348
348
|
...r,
|
|
349
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
349
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || a
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
Me(() => F.config, (e) => {
|
|
353
|
-
|
|
353
|
+
wn.value || (H.value = kn()), Tn.value = !H.value.userOptions.showOnChartHover, Vn(), mn.value += 1, hn.value += 1, W.value.showTable = H.value.table.show;
|
|
354
354
|
}, { deep: !0 });
|
|
355
|
-
let { isPrinting:
|
|
355
|
+
let { isPrinting: An, isImaging: jn, generatePdf: Mn, generateImage: Nn } = le({
|
|
356
356
|
elementId: `3d_bar_${I.value}`,
|
|
357
357
|
fileName: H.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
358
358
|
options: H.value.userOptions.print
|
|
359
|
-
}),
|
|
359
|
+
}), Pn = v(() => oe(H.value.customPalette)), W = k({ showTable: H.value.table.show });
|
|
360
360
|
Me(H, () => {
|
|
361
|
-
|
|
361
|
+
W.value = { showTable: H.value.table.show };
|
|
362
362
|
}, { immediate: !0 });
|
|
363
|
-
let
|
|
364
|
-
height:
|
|
365
|
-
width:
|
|
366
|
-
absoluteWidth:
|
|
363
|
+
let G = v(() => U.value.series && U.value.series.length), Fn = k(H.value.style.chart.box.dimensions.width * (G.value ? 2 : 1)), In = k(H.value.style.chart.box.dimensions.height), K = v(() => ({
|
|
364
|
+
height: In.value,
|
|
365
|
+
width: Fn.value,
|
|
366
|
+
absoluteWidth: Fn.value,
|
|
367
367
|
top: H.value.style.chart.box.dimensions.top,
|
|
368
368
|
bottom: H.value.style.chart.box.dimensions.bottom,
|
|
369
369
|
left: H.value.style.chart.box.dimensions.left,
|
|
370
370
|
right: H.value.style.chart.box.dimensions.right,
|
|
371
371
|
perspective: H.value.style.chart.box.dimensions.perspective
|
|
372
|
-
})),
|
|
373
|
-
if (
|
|
374
|
-
let e =
|
|
372
|
+
})), q = v(() => {
|
|
373
|
+
if (G.value) {
|
|
374
|
+
let e = U.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), t = U.value.series.map((t, n) => ({
|
|
375
375
|
...t,
|
|
376
376
|
seriesIndex: n,
|
|
377
377
|
id: ie(),
|
|
378
378
|
proportion: (t.value || 0) / e,
|
|
379
|
-
color: c(t.color) ||
|
|
379
|
+
color: c(t.color) || Pn.value[n] || a[n] || a[n % a.length],
|
|
380
380
|
breakdown: t.breakdown ? t.breakdown.sort((e, t) => t.value - e.value) : null
|
|
381
381
|
})).sort((e, t) => t.value - e.value), n = [], r = 0;
|
|
382
382
|
for (let e = 0; e < t.length; e += 1) n.push({
|
|
383
383
|
...t[e],
|
|
384
|
-
fill:
|
|
384
|
+
fill: Un(r, t[e].proportion, t[e].breakdown, t[e].color)
|
|
385
385
|
}), r += t[e].proportion;
|
|
386
386
|
return n;
|
|
387
387
|
}
|
|
388
388
|
return null;
|
|
389
|
-
}),
|
|
390
|
-
let e =
|
|
389
|
+
}), J = v(() => {
|
|
390
|
+
let e = K.value.width / 2;
|
|
391
391
|
return {
|
|
392
|
-
right: `M${e},${
|
|
393
|
-
left: `M${e},${
|
|
394
|
-
side: `M${e},${
|
|
395
|
-
topSides: `M${
|
|
396
|
-
tubeTop: `M${
|
|
397
|
-
tubeLeft: `M${
|
|
398
|
-
tubeRight: `M${
|
|
399
|
-
tubeBottom: `M${
|
|
392
|
+
right: `M${e},${K.value.top} ${K.value.width - K.value.right}, ${K.value.top + K.value.perspective} ${K.value.width - K.value.right},${K.value.height - K.value.bottom - K.value.perspective} ${e},${K.value.height - K.value.bottom}`,
|
|
393
|
+
left: `M${e},${K.value.top} ${K.value.left},${K.value.top + K.value.perspective} ${K.value.left},${K.value.height - K.value.bottom - K.value.perspective} ${e},${K.value.height - K.value.bottom}`,
|
|
394
|
+
side: `M${e},${K.value.height - K.value.bottom} ${e},${K.value.top + K.value.perspective * 2}`,
|
|
395
|
+
topSides: `M${K.value.left},${K.value.top + K.value.perspective} ${e},${K.value.top + K.value.perspective * 2} ${K.value.width - K.value.right},${K.value.top + K.value.perspective}`,
|
|
396
|
+
tubeTop: `M${K.value.left},${K.value.top + K.value.perspective} C ${K.value.left},${K.value.top - K.value.perspective / 3} ${K.value.width - K.value.right},${K.value.top - K.value.perspective / 3} ${K.value.width - K.value.right},${K.value.top + K.value.perspective} C ${K.value.width - K.value.right},${K.value.top + K.value.perspective * 2.3} ${K.value.left},${K.value.top + K.value.perspective * 2.3} ${K.value.left},${K.value.top + K.value.perspective}`,
|
|
397
|
+
tubeLeft: `M${K.value.left},${K.value.top + K.value.perspective} ${K.value.left},${K.value.height - K.value.bottom - K.value.perspective}`,
|
|
398
|
+
tubeRight: `M${K.value.width - K.value.right},${K.value.top + K.value.perspective} ${K.value.width - K.value.right},${K.value.height - K.value.bottom - K.value.perspective}`,
|
|
399
|
+
tubeBottom: `M${K.value.width - K.value.right},${K.value.height - K.value.bottom - K.value.perspective} C ${K.value.width - K.value.right},${K.value.height} ${K.value.left},${K.value.height} ${K.value.left},${K.value.height - K.value.bottom - K.value.perspective}`
|
|
400
400
|
};
|
|
401
|
-
}),
|
|
402
|
-
function
|
|
401
|
+
}), Ln = k(H.value.style.chart.animation.use ? 0 : U.value.percentage);
|
|
402
|
+
function Rn() {
|
|
403
403
|
let e = 0, t = H.value.style.chart.animation.speed, n = .005 * H.value.style.chart.animation.acceleration;
|
|
404
404
|
function r() {
|
|
405
|
-
|
|
405
|
+
Ln.value += t + e, e += n, Ln.value < U.value.percentage ? requestAnimationFrame(r) : Ln.value = U.value.percentage;
|
|
406
406
|
}
|
|
407
|
-
H.value.style.chart.animation.use && (
|
|
407
|
+
H.value.style.chart.animation.use && (Ln.value = 0, r());
|
|
408
408
|
}
|
|
409
409
|
ke(() => {
|
|
410
|
-
|
|
410
|
+
Vn(), Rn();
|
|
411
411
|
});
|
|
412
|
-
let
|
|
413
|
-
function
|
|
414
|
-
|
|
412
|
+
let zn = v(() => H.value.debug);
|
|
413
|
+
function Bn() {
|
|
414
|
+
zn.value && (s(F.dataset) ? ne({
|
|
415
415
|
componentName: "VueUi3dBar",
|
|
416
416
|
type: "dataset",
|
|
417
|
-
debug:
|
|
417
|
+
debug: zn.value
|
|
418
418
|
}) : F.dataset.series ? F.dataset.series.forEach((e, t) => {
|
|
419
|
-
|
|
419
|
+
te({
|
|
420
420
|
datasetObject: e,
|
|
421
421
|
requiredAttributes: ["name", "value"]
|
|
422
422
|
}).forEach((e) => {
|
|
423
|
-
|
|
423
|
+
ne({
|
|
424
424
|
componentName: "VueUi3dBar",
|
|
425
425
|
type: "datasetSerieAttribute",
|
|
426
426
|
property: e,
|
|
427
427
|
index: t,
|
|
428
|
-
debug:
|
|
428
|
+
debug: zn.value
|
|
429
429
|
});
|
|
430
430
|
}), e.breakdown && e.breakdown.forEach((e, n) => {
|
|
431
|
-
|
|
431
|
+
te({
|
|
432
432
|
datasetObject: e,
|
|
433
433
|
requiredAttributes: ["name", "value"]
|
|
434
434
|
}).forEach((e) => {
|
|
435
|
-
|
|
435
|
+
ne({
|
|
436
436
|
componentName: "VueUi3dBar",
|
|
437
437
|
type: "datasetSerieAttribute",
|
|
438
438
|
property: e,
|
|
439
439
|
index: `${t} - ${n}`,
|
|
440
|
-
debug:
|
|
440
|
+
debug: zn.value
|
|
441
441
|
});
|
|
442
442
|
});
|
|
443
443
|
});
|
|
444
|
-
}) :
|
|
444
|
+
}) : te({
|
|
445
445
|
datasetObject: F.dataset,
|
|
446
446
|
requiredAttributes: ["percentage"]
|
|
447
447
|
}).forEach((e) => {
|
|
448
|
-
|
|
448
|
+
ne({
|
|
449
449
|
componentName: "VueUi3dBar",
|
|
450
450
|
type: "datasetAttribute",
|
|
451
451
|
property: e,
|
|
452
|
-
debug:
|
|
452
|
+
debug: zn.value
|
|
453
453
|
});
|
|
454
454
|
}));
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
if (
|
|
456
|
+
function Vn() {
|
|
457
|
+
if (Bn(), H.value.responsive) {
|
|
458
458
|
let e = ve(() => {
|
|
459
459
|
let { width: e, height: t } = ye({
|
|
460
460
|
chart: L.value,
|
|
461
|
-
title: H.value.style.chart.title.text ?
|
|
462
|
-
source:
|
|
461
|
+
title: H.value.style.chart.title.text ? gn.value : null,
|
|
462
|
+
source: yn.value
|
|
463
463
|
});
|
|
464
464
|
requestAnimationFrame(() => {
|
|
465
|
-
|
|
465
|
+
In.value = t - 12, Fn.value = e;
|
|
466
466
|
});
|
|
467
467
|
});
|
|
468
|
-
|
|
468
|
+
_n.value && (vn.value && _n.value.unobserve(vn.value), _n.value.disconnect()), _n.value = new ResizeObserver(e), vn.value = L.value.parentNode, _n.value.observe(vn.value);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
let
|
|
472
|
-
function
|
|
473
|
-
let
|
|
474
|
-
return
|
|
471
|
+
let Hn = v(() => K.value.width / 4);
|
|
472
|
+
function Un(e, t, r, i) {
|
|
473
|
+
let a = K.value.height - K.value.bottom - K.value.top - K.value.perspective * 2, { width: o, height: s, bottom: c, right: l, left: u, perspective: d } = K.value, f = G.value ? o / 4 : o / 2, p = f * 2 + u, m = c + a * e, h = s - m - d - a * t / 2, te = h > K.value.height / 2 ? "top" : "bottom", ne = s * .25, re = !!r, ie = null, ae = null;
|
|
474
|
+
return re && (r = r.map((e, t) => ({
|
|
475
475
|
...e,
|
|
476
476
|
value: e.value || 0,
|
|
477
|
-
color:
|
|
478
|
-
})),
|
|
479
|
-
donut:
|
|
480
|
-
miniDonut:
|
|
481
|
-
donutR:
|
|
477
|
+
color: n(i, t / r.length)
|
|
478
|
+
})), ie = ee({ series: r }, o / 2 + o / 5, te === "top" ? h - ne : h + ne, o / 10, o / 10, 1.99999, 2, 1, 360, 105.25, o / 20), ae = ee({ series: r }, o - p + o / 14, s - m - d - a * t / 2, o / 40, o / 40, 1.99999, 2, 1, 360, 105.25, o / 40)), {
|
|
479
|
+
donut: ie,
|
|
480
|
+
miniDonut: ae,
|
|
481
|
+
donutR: o / 20,
|
|
482
482
|
CENTER_X: f,
|
|
483
483
|
sidePointer: {
|
|
484
|
-
x:
|
|
485
|
-
x2:
|
|
486
|
-
xText:
|
|
487
|
-
y: s - m - d -
|
|
488
|
-
topY: s - m - d -
|
|
489
|
-
height:
|
|
484
|
+
x: o - p,
|
|
485
|
+
x2: o - p + o / 14,
|
|
486
|
+
xText: o - p + o / 9,
|
|
487
|
+
y: s - m - d - a * t / 2,
|
|
488
|
+
topY: s - m - d - a * t,
|
|
489
|
+
height: a * t
|
|
490
490
|
},
|
|
491
491
|
apexBottom: {
|
|
492
492
|
y: s - m,
|
|
493
493
|
x: f
|
|
494
494
|
},
|
|
495
495
|
apexTop: {
|
|
496
|
-
y: s - m -
|
|
496
|
+
y: s - m - a * t,
|
|
497
497
|
x: f
|
|
498
498
|
},
|
|
499
|
-
right: `M${f},${s - m} ${f},${s - m -
|
|
500
|
-
left: `M${f},${s - m} ${f},${s - m -
|
|
501
|
-
liningTop: `M${u},${s - m - d -
|
|
502
|
-
liningTopShade: `M${u},${s - m - d -
|
|
503
|
-
top: `M${f},${s - m -
|
|
504
|
-
tubeTop: `M${u},${s - m -
|
|
505
|
-
bottomTubeTop: `M ${
|
|
499
|
+
right: `M${f},${s - m} ${f},${s - m - a * t} ${o - p},${s - m - d - a * t} ${o - p},${s - m - d}Z`,
|
|
500
|
+
left: `M${f},${s - m} ${f},${s - m - a * t} ${u}, ${s - m - d - a * t} ${u},${s - m - d}Z`,
|
|
501
|
+
liningTop: `M${u},${s - m - d - a * t} ${f},${s - m - a * t} ${o - p},${s - m - d - a * t}`,
|
|
502
|
+
liningTopShade: `M${u},${s - m - d - a * t - .5} ${f},${s - m - a * t - .5} ${o - p},${s - m - d - a * t - .5}`,
|
|
503
|
+
top: `M${f},${s - m - a * t} ${u},${s - m - d - a * t} ${f},${s - m - d * 2 - a * t} ${o - p},${s - m - d - a * t} Z`,
|
|
504
|
+
tubeTop: `M${u},${s - m - a * t - d} C ${u},${s - m - a * t - d * 2.5} ${o - p},${s - m - a * t - d * 2.5} ${o - p},${s - m - a * t - d} C ${o - p},${s - m - a * t + d / 2} ${u},${s - m - a * t + d / 2} ${u},${s - m - a * t - d}`,
|
|
505
|
+
bottomTubeTop: `M ${o - p - .5},${s - m - d} C ${o - p - .5},${s - m + d / 2} ${u},${s - m + d / 2} ${u + .5},${s - m - d}`,
|
|
506
506
|
tubeBody: `M
|
|
507
|
-
${u},${s - m -
|
|
508
|
-
C ${u},${s - m -
|
|
509
|
-
${
|
|
510
|
-
${
|
|
511
|
-
L${
|
|
507
|
+
${u},${s - m - a * t - d}
|
|
508
|
+
C ${u},${s - m - a * t + d / 2}
|
|
509
|
+
${o - p},${s - m - a * t + d / 2}
|
|
510
|
+
${o - p},${s - m - a * t - d}
|
|
511
|
+
L${o - p},${s - m - d}
|
|
512
512
|
C
|
|
513
|
-
${
|
|
513
|
+
${o - p},${s - m + d / 2}
|
|
514
514
|
${u},${s - m + d / 2}
|
|
515
515
|
${u},${s - m - d}Z`
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
let
|
|
519
|
-
let e =
|
|
518
|
+
let Wn = v(() => {
|
|
519
|
+
let e = f(Ln.value / 100), t = K.value.height - K.value.bottom - K.value.top - K.value.perspective * 2, { width: n, height: r, bottom: i, right: a, left: o, perspective: s } = K.value, c = G.value ? n / 4 : n / 2, l = G.value ? c * 2 + o : a, u = i + t * 0;
|
|
520
520
|
return {
|
|
521
521
|
right: `M${c},${r - u} ${c},${r - u - t * e} ${n - l},${r - u - s - t * e} ${n - l},${r - u - s}Z`,
|
|
522
522
|
left: `M${c},${r - u} ${c},${r - u - t * e} ${o}, ${r - u - s - t * e} ${o},${r - u - s}Z`,
|
|
@@ -533,61 +533,61 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
533
533
|
${o},${r}
|
|
534
534
|
${o},${r - u - s}Z`
|
|
535
535
|
};
|
|
536
|
-
}),
|
|
537
|
-
function
|
|
536
|
+
}), Y = k(null);
|
|
537
|
+
function X(e, t = !1) {
|
|
538
538
|
H.value.events.datapointEnter && !t && H.value.events.datapointEnter({
|
|
539
539
|
datapoint: e,
|
|
540
540
|
seriesIndex: e.seriesIndex
|
|
541
541
|
}), H.value.events.datapointClick && t && H.value.events.datapointClick({
|
|
542
542
|
datapoint: e,
|
|
543
543
|
seriesIndex: e.seriesIndex
|
|
544
|
-
}),
|
|
545
|
-
let n =
|
|
546
|
-
n !== null && n !== -1 && (B.value = n, V.value =
|
|
544
|
+
}), fn("selectDatapoint", e);
|
|
545
|
+
let n = q.value?.findIndex((t) => t.id === e.id) ?? null;
|
|
546
|
+
n !== null && n !== -1 && (B.value = n, V.value = dr(e)), t || (Y.value = e.id), t && R.value && (R.value = !1), t && !R.value && (R.value = !0);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Z(e) {
|
|
549
549
|
H.value.events.datapointLeave && H.value.events.datapointLeave({
|
|
550
550
|
datapoint: e,
|
|
551
551
|
seriesIndex: e.seriesIndex
|
|
552
|
-
}), !R.value && (
|
|
552
|
+
}), !R.value && (Y.value = null, B.value = null, V.value = "");
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
let r =
|
|
554
|
+
function Q(e, t, n = !1) {
|
|
555
|
+
let r = U.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), i = isNaN(e.value / r) ? 0 : e.value / r * 100, a = isNaN(e.value / Gn(t)) ? 0 : e.value / Gn(t) * 100;
|
|
556
556
|
return n ? a : i.toFixed(0) + "%";
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Gn(e) {
|
|
559
559
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
560
560
|
}
|
|
561
|
-
let
|
|
562
|
-
function
|
|
563
|
-
|
|
561
|
+
let Kn = k(!1);
|
|
562
|
+
function qn(e) {
|
|
563
|
+
Kn.value = e;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
565
|
+
function Jn() {
|
|
566
|
+
return G.value ? q.value : U.value.percentage;
|
|
567
567
|
}
|
|
568
|
-
let
|
|
569
|
-
head:
|
|
568
|
+
let Yn = v(() => G.value ? {
|
|
569
|
+
head: q.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{
|
|
570
570
|
name: e.name,
|
|
571
571
|
color: e.color
|
|
572
|
-
}, ...e.breakdown.map((t,
|
|
572
|
+
}, ...e.breakdown.map((t, r) => ({
|
|
573
573
|
name: t.name,
|
|
574
|
-
color:
|
|
574
|
+
color: n(e.color, r / e.breakdown.length)
|
|
575
575
|
}))] : {
|
|
576
576
|
name: e.name,
|
|
577
577
|
color: e.color
|
|
578
578
|
}),
|
|
579
|
-
body:
|
|
579
|
+
body: q.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((e) => e.value)] : e.value)
|
|
580
580
|
} : null);
|
|
581
|
-
function
|
|
582
|
-
if (!
|
|
581
|
+
function Xn(e = null) {
|
|
582
|
+
if (!G.value) {
|
|
583
583
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
584
584
|
return;
|
|
585
585
|
}
|
|
586
586
|
De(() => {
|
|
587
|
-
let n =
|
|
587
|
+
let n = q.value.map((e) => e.value).reduce((e, t) => e + t, 0), i = Yn.value.head.map((e, t) => [
|
|
588
588
|
[e.name],
|
|
589
|
-
[
|
|
590
|
-
[isNaN(
|
|
589
|
+
[Yn.value.body[t]],
|
|
590
|
+
[isNaN(Yn.value.body[t] / n) ? "-" : Yn.value.body[t] / n * 100]
|
|
591
591
|
]), a = [
|
|
592
592
|
[H.value.style.chart.title.text],
|
|
593
593
|
[H.value.style.chart.title.subtitle.text],
|
|
@@ -603,8 +603,8 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
603
603
|
});
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
|
-
let
|
|
607
|
-
if (!
|
|
606
|
+
let $ = v(() => {
|
|
607
|
+
if (!G.value || !Array.isArray(q.value) || !q.value.length) return {
|
|
608
608
|
colNames: [],
|
|
609
609
|
head: [],
|
|
610
610
|
body: [],
|
|
@@ -624,8 +624,8 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
624
624
|
shape: H.value.style.shape === "tube" ? "circle" : "square"
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
|
-
let e =
|
|
628
|
-
"
|
|
627
|
+
let e = q.value.reduce((e, t) => e + t.value, 0), t = [
|
|
628
|
+
"__SUM__",
|
|
629
629
|
l({
|
|
630
630
|
p: H.value.style.chart.legend.prefix,
|
|
631
631
|
v: e,
|
|
@@ -633,8 +633,8 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
633
633
|
r: H.value.table.td.roundingValue
|
|
634
634
|
}),
|
|
635
635
|
"100%"
|
|
636
|
-
], n =
|
|
637
|
-
let r =
|
|
636
|
+
], n = Yn.value.head.map((t, n) => {
|
|
637
|
+
let r = Yn.value.body[n];
|
|
638
638
|
return [
|
|
639
639
|
{
|
|
640
640
|
color: t.color,
|
|
@@ -678,14 +678,14 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
});
|
|
681
|
-
function
|
|
682
|
-
|
|
681
|
+
function Zn() {
|
|
682
|
+
W.value.showTable = !W.value.showTable;
|
|
683
683
|
}
|
|
684
|
-
let
|
|
685
|
-
function
|
|
686
|
-
|
|
684
|
+
let Qn = k(!1);
|
|
685
|
+
function $n() {
|
|
686
|
+
Qn.value = !Qn.value;
|
|
687
687
|
}
|
|
688
|
-
async function
|
|
688
|
+
async function er({ scale: e = 2 } = {}) {
|
|
689
689
|
if (!L.value) return;
|
|
690
690
|
let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
691
691
|
domElement: L.value,
|
|
@@ -702,17 +702,17 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
702
702
|
aspectRatio: r
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
|
-
let
|
|
706
|
-
let e = H.value.table.useDialog && !H.value.table.show, t =
|
|
705
|
+
let tr = v(() => {
|
|
706
|
+
let e = H.value.table.useDialog && !H.value.table.show, t = W.value.showTable;
|
|
707
707
|
return {
|
|
708
|
-
component: e ?
|
|
708
|
+
component: e ? cn : nn,
|
|
709
709
|
title: `${H.value.style.chart.title.text}${H.value.style.chart.title.subtitle.text ? `: ${H.value.style.chart.title.subtitle.text}` : ""}`,
|
|
710
710
|
props: e ? {
|
|
711
711
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
712
712
|
color: H.value.table.th.color,
|
|
713
713
|
headerColor: H.value.table.th.color,
|
|
714
714
|
headerBg: H.value.table.th.backgroundColor,
|
|
715
|
-
isFullscreen:
|
|
715
|
+
isFullscreen: Kn.value,
|
|
716
716
|
fullscreenParent: L.value,
|
|
717
717
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
718
718
|
} : {
|
|
@@ -732,38 +732,38 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
});
|
|
735
|
-
Me(() =>
|
|
736
|
-
H.value.table.show || (e && H.value.table.useDialog &&
|
|
735
|
+
Me(() => W.value.showTable, (e) => {
|
|
736
|
+
H.value.table.show || (e && H.value.table.useDialog && bn.value ? bn.value.open() : "close" in bn.value && bn.value.close());
|
|
737
737
|
});
|
|
738
|
-
function
|
|
739
|
-
|
|
738
|
+
function nr() {
|
|
739
|
+
W.value.showTable = !1, xn.value && xn.value.setTableIconState(!1);
|
|
740
740
|
}
|
|
741
|
-
let
|
|
742
|
-
svg:
|
|
743
|
-
title:
|
|
741
|
+
let rr = v(() => H.value.style.chart.backgroundColor), ir = v(() => H.value.style.chart.title), { isCallbackImaging: ar, isCallbackSvg: or, generateSvg: sr, onGenerateImage: cr } = me({
|
|
742
|
+
svg: On,
|
|
743
|
+
title: ir,
|
|
744
744
|
legend: null,
|
|
745
745
|
legendItems: null,
|
|
746
|
-
backgroundColor:
|
|
746
|
+
backgroundColor: rr,
|
|
747
747
|
getSvgCallback: () => H.value.userOptions.callbacks.svg,
|
|
748
|
-
generateImage:
|
|
748
|
+
generateImage: Nn
|
|
749
749
|
});
|
|
750
|
-
async function
|
|
751
|
-
if (
|
|
750
|
+
async function lr() {
|
|
751
|
+
if (fn("copyAlt", {
|
|
752
752
|
config: H.value,
|
|
753
|
-
dataset:
|
|
753
|
+
dataset: U.value
|
|
754
754
|
}), !H.value.userOptions.callbacks.altCopy) {
|
|
755
755
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
await Promise.resolve(H.value.userOptions.callbacks.altCopy({
|
|
759
759
|
config: H.value,
|
|
760
|
-
dataset:
|
|
760
|
+
dataset: U.value
|
|
761
761
|
}));
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
B.value = null, V.value = "", R.value = !1,
|
|
763
|
+
function ur() {
|
|
764
|
+
B.value = null, V.value = "", R.value = !1, Y.value = null;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function dr(e) {
|
|
767
767
|
if (!e) return "";
|
|
768
768
|
let t = l({
|
|
769
769
|
p: H.value.style.chart.legend.prefix,
|
|
@@ -777,69 +777,69 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
777
777
|
});
|
|
778
778
|
return `${e.name}: ${t}, ${n}`;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
if (!
|
|
782
|
-
let t =
|
|
783
|
-
t && (B.value = e,
|
|
784
|
-
}
|
|
785
|
-
function fr() {
|
|
786
|
-
z.value = !0, !(!K.value || !J.value?.length) && B.value === null && dr(0);
|
|
780
|
+
function fr(e) {
|
|
781
|
+
if (!G.value || !q.value?.length) return;
|
|
782
|
+
let t = q.value[e];
|
|
783
|
+
t && (B.value = e, Y.value = t.id, V.value = dr(t));
|
|
787
784
|
}
|
|
788
785
|
function pr() {
|
|
789
|
-
z.value = !
|
|
786
|
+
z.value = !0, !(!G.value || !q.value?.length) && B.value === null && fr(0);
|
|
790
787
|
}
|
|
791
|
-
function mr(
|
|
792
|
-
|
|
788
|
+
function mr() {
|
|
789
|
+
z.value = !1, R.value || (B.value = null, Y.value = null, V.value = "");
|
|
790
|
+
}
|
|
791
|
+
function hr(e) {
|
|
792
|
+
if (!G.value || !q.value?.length || !On.value || document.activeElement !== On.value) return;
|
|
793
793
|
let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
794
794
|
if (!t && !n && !r && !i) return;
|
|
795
795
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
796
|
-
|
|
796
|
+
ur();
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
799
799
|
if (r) {
|
|
800
800
|
if (B.value === null) return;
|
|
801
|
-
let e =
|
|
801
|
+
let e = q.value[B.value];
|
|
802
802
|
if (!e) return;
|
|
803
|
-
|
|
803
|
+
X(e, !0), V.value = `${dr(e)} selected`;
|
|
804
804
|
return;
|
|
805
805
|
}
|
|
806
806
|
let a = B.value;
|
|
807
|
-
a === null || a < 0 || a >=
|
|
807
|
+
a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1)), fr(a);
|
|
808
808
|
}
|
|
809
|
-
let
|
|
810
|
-
headers:
|
|
811
|
-
rows:
|
|
809
|
+
let gr = v(() => ({
|
|
810
|
+
headers: $.value?.colNames ?? [],
|
|
811
|
+
rows: $.value?.a11yBody ?? []
|
|
812
812
|
}));
|
|
813
813
|
return _e({
|
|
814
|
-
getImage:
|
|
815
|
-
generateCsv:
|
|
816
|
-
generatePdf:
|
|
817
|
-
generateImage:
|
|
818
|
-
generateSvg:
|
|
819
|
-
getData:
|
|
820
|
-
toggleTable:
|
|
821
|
-
toggleAnnotator:
|
|
822
|
-
toggleFullscreen:
|
|
823
|
-
copyAlt:
|
|
814
|
+
getImage: er,
|
|
815
|
+
generateCsv: Xn,
|
|
816
|
+
generatePdf: Mn,
|
|
817
|
+
generateImage: Nn,
|
|
818
|
+
generateSvg: sr,
|
|
819
|
+
getData: Jn,
|
|
820
|
+
toggleTable: Zn,
|
|
821
|
+
toggleAnnotator: $n,
|
|
822
|
+
toggleFullscreen: qn,
|
|
823
|
+
copyAlt: lr
|
|
824
824
|
}), (e, t) => (O(), x("div", {
|
|
825
825
|
ref_key: "bar3dChart",
|
|
826
826
|
ref: L,
|
|
827
827
|
class: Oe("vue-data-ui-component vue-ui-3d-bar"),
|
|
828
828
|
style: D(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor}`),
|
|
829
829
|
id: `3d_bar_${I.value}`,
|
|
830
|
-
onMouseenter: t[8] ||= () => N(
|
|
831
|
-
onMouseleave: t[9] ||= () => N(
|
|
830
|
+
onMouseenter: t[8] ||= () => N(En)(!0),
|
|
831
|
+
onMouseleave: t[9] ||= () => N(En)(!1)
|
|
832
832
|
}, [
|
|
833
833
|
S("div", {
|
|
834
834
|
id: `chart-instructions-${I.value}`,
|
|
835
835
|
class: "sr-only"
|
|
836
836
|
}, [S("p", null, M(H.value.a11y.translations.keyboardNavigation), 1)], 8, Le),
|
|
837
837
|
S("div", Re, M(V.value), 1),
|
|
838
|
-
|
|
838
|
+
gr.value?.rows?.length ? (O(), y(be, {
|
|
839
839
|
key: 0,
|
|
840
840
|
uid: I.value,
|
|
841
|
-
head:
|
|
842
|
-
body:
|
|
841
|
+
head: gr.value.headers,
|
|
842
|
+
body: gr.value.rows,
|
|
843
843
|
notice: H.value.a11y.translations.tableAvailable,
|
|
844
844
|
caption: H.value.a11y.translations.tableCaption
|
|
845
845
|
}, null, 8, [
|
|
@@ -849,14 +849,14 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
849
849
|
"notice",
|
|
850
850
|
"caption"
|
|
851
851
|
])) : b("", !0),
|
|
852
|
-
H.value.userOptions.buttons.annotator ? (O(), y(N(
|
|
852
|
+
H.value.userOptions.buttons.annotator ? (O(), y(N(an), {
|
|
853
853
|
key: 1,
|
|
854
|
-
svgRef: N(
|
|
854
|
+
svgRef: N(On),
|
|
855
855
|
backgroundColor: H.value.style.chart.backgroundColor,
|
|
856
856
|
color: H.value.style.chart.color,
|
|
857
|
-
active:
|
|
858
|
-
isCursorPointer:
|
|
859
|
-
onClose:
|
|
857
|
+
active: Qn.value,
|
|
858
|
+
isCursorPointer: Sn.value,
|
|
859
|
+
onClose: $n
|
|
860
860
|
}, {
|
|
861
861
|
"annotator-action-close": P(() => [j(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
862
862
|
"annotator-action-color": P(({ color: t }) => [j(e.$slots, "annotator-action-color", E(T({ color: t })), void 0, !0)]),
|
|
@@ -875,10 +875,10 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
875
875
|
H.value.style.chart.title.text ? (O(), x("div", {
|
|
876
876
|
key: 2,
|
|
877
877
|
ref_key: "chartTitle",
|
|
878
|
-
ref:
|
|
878
|
+
ref: gn,
|
|
879
879
|
style: "width:100%;background:transparent"
|
|
880
880
|
}, [(O(), y(ge, {
|
|
881
|
-
key: `title_${
|
|
881
|
+
key: `title_${mn.value}`,
|
|
882
882
|
config: {
|
|
883
883
|
title: {
|
|
884
884
|
cy: "3dBar-div-title",
|
|
@@ -890,18 +890,18 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
}, null, 8, ["config"]))], 512)) : b("", !0),
|
|
893
|
-
H.value.userOptions.show &&
|
|
893
|
+
H.value.userOptions.show && pn.value && (N(Dn) || N(Tn)) ? (O(), y(N(on), {
|
|
894
894
|
key: 3,
|
|
895
895
|
ref_key: "userOptionsRef",
|
|
896
|
-
ref:
|
|
896
|
+
ref: xn,
|
|
897
897
|
backgroundColor: H.value.style.chart.backgroundColor,
|
|
898
898
|
color: H.value.style.chart.color,
|
|
899
|
-
isPrinting: N(
|
|
900
|
-
isImaging: N(
|
|
899
|
+
isPrinting: N(An),
|
|
900
|
+
isImaging: N(jn),
|
|
901
901
|
uid: I.value,
|
|
902
902
|
hasPdf: H.value.userOptions.buttons.pdf,
|
|
903
|
-
hasTable: !!
|
|
904
|
-
hasXls: !!
|
|
903
|
+
hasTable: !!G.value && H.value.userOptions.buttons.table,
|
|
904
|
+
hasXls: !!G.value && H.value.userOptions.buttons.csv,
|
|
905
905
|
hasImg: H.value.userOptions.buttons.img,
|
|
906
906
|
hasSvg: H.value.userOptions.buttons.svg,
|
|
907
907
|
hasFullscreen: H.value.userOptions.buttons.fullscreen,
|
|
@@ -910,20 +910,20 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
910
910
|
chartElement: L.value,
|
|
911
911
|
position: H.value.userOptions.position,
|
|
912
912
|
hasAnnotator: H.value.userOptions.buttons.annotator,
|
|
913
|
-
isAnnotation:
|
|
913
|
+
isAnnotation: Qn.value,
|
|
914
914
|
callbacks: H.value.userOptions.callbacks,
|
|
915
915
|
printScale: H.value.userOptions.print.scale,
|
|
916
916
|
tableDialog: H.value.table.useDialog,
|
|
917
|
-
isCursorPointer:
|
|
918
|
-
onToggleFullscreen:
|
|
919
|
-
onGeneratePdf: N(
|
|
920
|
-
onGenerateCsv:
|
|
921
|
-
onGenerateImage: N(
|
|
922
|
-
onGenerateSvg: N(
|
|
923
|
-
onToggleTable:
|
|
924
|
-
onToggleAnnotator:
|
|
925
|
-
onCopyAlt:
|
|
926
|
-
style: D({ visibility: N(
|
|
917
|
+
isCursorPointer: Sn.value,
|
|
918
|
+
onToggleFullscreen: qn,
|
|
919
|
+
onGeneratePdf: N(Mn),
|
|
920
|
+
onGenerateCsv: Xn,
|
|
921
|
+
onGenerateImage: N(cr),
|
|
922
|
+
onGenerateSvg: N(sr),
|
|
923
|
+
onToggleTable: Zn,
|
|
924
|
+
onToggleAnnotator: $n,
|
|
925
|
+
onCopyAlt: lr,
|
|
926
|
+
style: D({ visibility: N(Dn) ? N(Tn) ? "visible" : "hidden" : "visible" })
|
|
927
927
|
}, we({ _: 2 }, [
|
|
928
928
|
e.$slots.menuIcon ? {
|
|
929
929
|
name: "menuIcon",
|
|
@@ -1018,27 +1018,27 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1018
1018
|
])) : b("", !0),
|
|
1019
1019
|
S("div", ze, [(O(), x("svg", {
|
|
1020
1020
|
ref_key: "svgRef",
|
|
1021
|
-
ref:
|
|
1021
|
+
ref: On,
|
|
1022
1022
|
xmlns: N(ae),
|
|
1023
1023
|
class: Oe({
|
|
1024
|
-
"vue-data-ui-fullscreen--on":
|
|
1025
|
-
"vue-data-ui-fulscreen--off": !
|
|
1024
|
+
"vue-data-ui-fullscreen--on": Kn.value,
|
|
1025
|
+
"vue-data-ui-fulscreen--off": !Kn.value
|
|
1026
1026
|
}),
|
|
1027
|
-
viewBox: `0 0 ${
|
|
1027
|
+
viewBox: `0 0 ${K.value.absoluteWidth} ${K.value.height}`,
|
|
1028
1028
|
style: D(`max-width:100%; overflow: visible; background:transparent;color:${H.value.style.chart.color}`),
|
|
1029
1029
|
tabindex: "0",
|
|
1030
1030
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1031
|
-
onFocus:
|
|
1032
|
-
onBlur:
|
|
1033
|
-
onKeydown:
|
|
1031
|
+
onFocus: pr,
|
|
1032
|
+
onBlur: mr,
|
|
1033
|
+
onKeydown: hr
|
|
1034
1034
|
}, [
|
|
1035
|
-
C(N(
|
|
1035
|
+
C(N(sn)),
|
|
1036
1036
|
e.$slots["chart-background"] ? (O(), x("foreignObject", {
|
|
1037
1037
|
key: 0,
|
|
1038
1038
|
x: 0,
|
|
1039
1039
|
y: 0,
|
|
1040
|
-
width:
|
|
1041
|
-
height:
|
|
1040
|
+
width: K.value.absoluteWidth,
|
|
1041
|
+
height: K.value.height,
|
|
1042
1042
|
style: { pointerEvents: "none" }
|
|
1043
1043
|
}, [j(e.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : b("", !0),
|
|
1044
1044
|
S("defs", null, [
|
|
@@ -1047,7 +1047,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1047
1047
|
id: `gradient_top${I.value}`,
|
|
1048
1048
|
stops: [[
|
|
1049
1049
|
"0%",
|
|
1050
|
-
N(
|
|
1050
|
+
N(i)(H.value.style.chart.backgroundColor, 0),
|
|
1051
1051
|
1
|
|
1052
1052
|
], [
|
|
1053
1053
|
"100%",
|
|
@@ -1060,11 +1060,11 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1060
1060
|
id: `gradient_tube_top${I.value}`,
|
|
1061
1061
|
stops: [[
|
|
1062
1062
|
"0%",
|
|
1063
|
-
N(
|
|
1063
|
+
N(i)(N(n)(H.value.style.chart.bar.color, .5), 80),
|
|
1064
1064
|
1
|
|
1065
1065
|
], [
|
|
1066
1066
|
"100%",
|
|
1067
|
-
N(
|
|
1067
|
+
N(i)(N(d)(H.value.style.chart.bar.color, .1), 80),
|
|
1068
1068
|
1
|
|
1069
1069
|
]]
|
|
1070
1070
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1073,11 +1073,11 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1073
1073
|
id: `gradient_left${I.value}`,
|
|
1074
1074
|
stops: [[
|
|
1075
1075
|
"0%",
|
|
1076
|
-
N(
|
|
1076
|
+
N(i)(H.value.style.chart.backgroundColor, 0),
|
|
1077
1077
|
1
|
|
1078
1078
|
], [
|
|
1079
1079
|
"100%",
|
|
1080
|
-
N(
|
|
1080
|
+
N(i)(H.value.style.chart.bar.color, 20),
|
|
1081
1081
|
1
|
|
1082
1082
|
]]
|
|
1083
1083
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1086,11 +1086,11 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1086
1086
|
id: `gradient_right${I.value}`,
|
|
1087
1087
|
stops: [[
|
|
1088
1088
|
"0%",
|
|
1089
|
-
N(
|
|
1089
|
+
N(i)(H.value.style.chart.backgroundColor, 0),
|
|
1090
1090
|
1
|
|
1091
1091
|
], [
|
|
1092
1092
|
"100%",
|
|
1093
|
-
N(
|
|
1093
|
+
N(i)(H.value.style.chart.bar.color, 20),
|
|
1094
1094
|
1
|
|
1095
1095
|
]]
|
|
1096
1096
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1109,35 +1109,35 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1109
1109
|
],
|
|
1110
1110
|
[
|
|
1111
1111
|
"10%",
|
|
1112
|
-
N(
|
|
1112
|
+
N(i)(N(d)(H.value.style.chart.bar.color, .7), 100),
|
|
1113
1113
|
1
|
|
1114
1114
|
],
|
|
1115
1115
|
[
|
|
1116
1116
|
"25%",
|
|
1117
|
-
N(
|
|
1117
|
+
N(i)(N(d)(H.value.style.chart.bar.color, .5), 100),
|
|
1118
1118
|
1
|
|
1119
1119
|
],
|
|
1120
1120
|
[
|
|
1121
1121
|
"75%",
|
|
1122
|
-
N(
|
|
1122
|
+
N(i)(H.value.style.chart.bar.color, 80),
|
|
1123
1123
|
1
|
|
1124
1124
|
],
|
|
1125
1125
|
[
|
|
1126
1126
|
"100%",
|
|
1127
|
-
N(
|
|
1127
|
+
N(i)(N(n)(H.value.style.chart.bar.color, .7), 100),
|
|
1128
1128
|
1
|
|
1129
1129
|
]
|
|
1130
1130
|
]
|
|
1131
1131
|
}, null, 8, ["id", "stops"])
|
|
1132
1132
|
]),
|
|
1133
|
-
|
|
1134
|
-
(O(!0), x(_, null, A(
|
|
1133
|
+
G.value ? (O(), x("defs", He, [
|
|
1134
|
+
(O(!0), x(_, null, A(q.value, (e) => (O(), y(g, {
|
|
1135
1135
|
t: "radial",
|
|
1136
1136
|
id: `grad_top_${e.id}`,
|
|
1137
1137
|
key: `grad_top_${e.id}`,
|
|
1138
1138
|
stops: [[
|
|
1139
1139
|
"0%",
|
|
1140
|
-
N(
|
|
1140
|
+
N(i)(N(n)(e.color, .5), 80),
|
|
1141
1141
|
1
|
|
1142
1142
|
], [
|
|
1143
1143
|
"100%",
|
|
@@ -1145,31 +1145,31 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1145
1145
|
1
|
|
1146
1146
|
]]
|
|
1147
1147
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1148
|
-
(O(!0), x(_, null, A(
|
|
1148
|
+
(O(!0), x(_, null, A(q.value, (e) => (O(), y(g, {
|
|
1149
1149
|
t: "linear",
|
|
1150
1150
|
id: `grad_left_${e.id}`,
|
|
1151
1151
|
key: `grad_left_${e.id}`,
|
|
1152
1152
|
stops: [[
|
|
1153
1153
|
"0%",
|
|
1154
|
-
N(
|
|
1154
|
+
N(i)(e.color, 80),
|
|
1155
1155
|
1
|
|
1156
1156
|
], [
|
|
1157
1157
|
"100%",
|
|
1158
|
-
N(
|
|
1158
|
+
N(i)(N(d)(e.color, .5), 100),
|
|
1159
1159
|
1
|
|
1160
1160
|
]]
|
|
1161
1161
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1162
|
-
(O(!0), x(_, null, A(
|
|
1162
|
+
(O(!0), x(_, null, A(q.value, (e) => (O(), y(g, {
|
|
1163
1163
|
t: "linear",
|
|
1164
1164
|
id: `grad_right_${e.id}`,
|
|
1165
1165
|
key: `grad_right_${e.id}`,
|
|
1166
1166
|
stops: [[
|
|
1167
1167
|
"2%",
|
|
1168
|
-
N(
|
|
1168
|
+
N(i)(N(n)(e.color, .5), 100),
|
|
1169
1169
|
1
|
|
1170
1170
|
], [
|
|
1171
1171
|
"100%",
|
|
1172
|
-
N(
|
|
1172
|
+
N(i)(e.color, 80),
|
|
1173
1173
|
1
|
|
1174
1174
|
]]
|
|
1175
1175
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
@@ -1191,16 +1191,16 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1191
1191
|
]]
|
|
1192
1192
|
}, null, 8, ["id"])
|
|
1193
1193
|
])) : b("", !0),
|
|
1194
|
-
H.value.style.chart.dataLabel.show && ![null, void 0].includes(N(
|
|
1194
|
+
H.value.style.chart.dataLabel.show && ![null, void 0].includes(N(U).percentage) && [null, void 0].includes(N(U).series) ? (O(), x("text", {
|
|
1195
1195
|
key: 2,
|
|
1196
|
-
x:
|
|
1197
|
-
y:
|
|
1196
|
+
x: K.value.width / 2,
|
|
1197
|
+
y: K.value.top - H.value.style.chart.dataLabel.fontSize / 2,
|
|
1198
1198
|
"font-size": H.value.style.chart.dataLabel.fontSize,
|
|
1199
1199
|
"font-weight": H.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
1200
1200
|
fill: H.value.style.chart.dataLabel.color,
|
|
1201
1201
|
"text-anchor": "middle"
|
|
1202
1202
|
}, M(N(l)({
|
|
1203
|
-
v:
|
|
1203
|
+
v: Ln.value,
|
|
1204
1204
|
s: "%",
|
|
1205
1205
|
r: H.value.style.chart.dataLabel.rounding
|
|
1206
1206
|
})), 9, Ue)) : b("", !0),
|
|
@@ -1210,12 +1210,12 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1210
1210
|
tabindex: "0",
|
|
1211
1211
|
"aria-label": "Clear selection",
|
|
1212
1212
|
onClick: t[0] ||= (e) => {
|
|
1213
|
-
R.value = !1,
|
|
1213
|
+
R.value = !1, Y.value = null;
|
|
1214
1214
|
},
|
|
1215
1215
|
onKeydown: [t[1] ||= Ne(Pe((e) => {
|
|
1216
|
-
R.value = !1,
|
|
1216
|
+
R.value = !1, Y.value = null;
|
|
1217
1217
|
}, ["prevent"]), ["enter"]), t[2] ||= Ne(Pe((e) => {
|
|
1218
|
-
R.value = !1,
|
|
1218
|
+
R.value = !1, Y.value = null;
|
|
1219
1219
|
}, ["prevent"]), ["space"])],
|
|
1220
1220
|
onFocus: t[3] ||= (e) => z.value = !0,
|
|
1221
1221
|
onBlur: t[4] ||= (e) => z.value = !1,
|
|
@@ -1224,22 +1224,22 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1224
1224
|
class: "svg-btn",
|
|
1225
1225
|
"data-dom-to-png-ignore": "",
|
|
1226
1226
|
style: D({
|
|
1227
|
-
cursor:
|
|
1227
|
+
cursor: Sn.value ? "pointer" : "default",
|
|
1228
1228
|
outline: "none"
|
|
1229
1229
|
})
|
|
1230
1230
|
}, [
|
|
1231
1231
|
t[10] ||= S("title", null, "Clear selection", -1),
|
|
1232
1232
|
S("rect", {
|
|
1233
|
-
x:
|
|
1234
|
-
y:
|
|
1233
|
+
x: Hn.value - 12,
|
|
1234
|
+
y: K.value.top - 24,
|
|
1235
1235
|
width: 24,
|
|
1236
1236
|
height: 24,
|
|
1237
1237
|
fill: "transparent",
|
|
1238
1238
|
"pointer-events": "all"
|
|
1239
1239
|
}, null, 8, We),
|
|
1240
1240
|
S("circle", {
|
|
1241
|
-
cx:
|
|
1242
|
-
cy:
|
|
1241
|
+
cx: Hn.value,
|
|
1242
|
+
cy: K.value.top - 12,
|
|
1243
1243
|
r: "10",
|
|
1244
1244
|
fill: "none",
|
|
1245
1245
|
stroke: H.value.style.chart.color,
|
|
@@ -1248,14 +1248,14 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1248
1248
|
opacity: z.value ? .5 : 0
|
|
1249
1249
|
}, null, 8, Ge),
|
|
1250
1250
|
S("path", {
|
|
1251
|
-
d: `M${
|
|
1251
|
+
d: `M${Hn.value - 6},${K.value.top - 18} ${Hn.value + 6},${K.value.top - 6}`,
|
|
1252
1252
|
stroke: H.value.style.chart.color,
|
|
1253
1253
|
"stroke-linecap": "round",
|
|
1254
1254
|
"stroke-width": "2",
|
|
1255
1255
|
"vector-effect": "non-scaling-stroke"
|
|
1256
1256
|
}, null, 8, Ke),
|
|
1257
1257
|
S("path", {
|
|
1258
|
-
d: `M${
|
|
1258
|
+
d: `M${Hn.value + 6},${K.value.top - 18} ${Hn.value - 6},${K.value.top - 6}`,
|
|
1259
1259
|
stroke: H.value.style.chart.color,
|
|
1260
1260
|
"stroke-linecap": "round",
|
|
1261
1261
|
"stroke-width": "2",
|
|
@@ -1263,10 +1263,10 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1263
1263
|
}, null, 8, qe)
|
|
1264
1264
|
], 36)) : b("", !0),
|
|
1265
1265
|
!H.value.style.shape || H.value.style.shape === "bar" ? (O(), x("g", Je, [
|
|
1266
|
-
|
|
1266
|
+
G.value ? b("", !0) : (O(), x("g", Ye, [
|
|
1267
1267
|
S("path", {
|
|
1268
1268
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1269
|
-
d:
|
|
1269
|
+
d: J.value.right,
|
|
1270
1270
|
stroke: H.value.style.chart.box.stroke,
|
|
1271
1271
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1272
1272
|
"stroke-linejoin": "round",
|
|
@@ -1275,7 +1275,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1275
1275
|
}, null, 8, Xe),
|
|
1276
1276
|
S("path", {
|
|
1277
1277
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1278
|
-
d:
|
|
1278
|
+
d: J.value.left,
|
|
1279
1279
|
stroke: H.value.style.chart.box.stroke,
|
|
1280
1280
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1281
1281
|
"stroke-linejoin": "round",
|
|
@@ -1284,7 +1284,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1284
1284
|
}, null, 8, Ze),
|
|
1285
1285
|
S("path", {
|
|
1286
1286
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1287
|
-
d:
|
|
1287
|
+
d: J.value.side,
|
|
1288
1288
|
stroke: H.value.style.chart.box.stroke,
|
|
1289
1289
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1290
1290
|
"stroke-linejoin": "round",
|
|
@@ -1293,7 +1293,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1293
1293
|
}, null, 8, Qe),
|
|
1294
1294
|
S("path", {
|
|
1295
1295
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1296
|
-
d:
|
|
1296
|
+
d: J.value.topSides,
|
|
1297
1297
|
stroke: H.value.style.chart.box.stroke,
|
|
1298
1298
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1299
1299
|
"stroke-linejoin": "round",
|
|
@@ -1301,9 +1301,9 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1301
1301
|
fill: "none"
|
|
1302
1302
|
}, null, 8, $e)
|
|
1303
1303
|
])),
|
|
1304
|
-
|
|
1304
|
+
G.value ? b("", !0) : (O(), x("g", et, [
|
|
1305
1305
|
S("path", {
|
|
1306
|
-
d:
|
|
1306
|
+
d: Wn.value.right,
|
|
1307
1307
|
stroke: H.value.style.chart.bar.stroke,
|
|
1308
1308
|
"stroke-width": H.value.style.chart.bar.strokeWidth,
|
|
1309
1309
|
"stroke-linejoin": "round",
|
|
@@ -1311,7 +1311,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1311
1311
|
fill: `url(#gradient_right${I.value})`
|
|
1312
1312
|
}, null, 8, tt),
|
|
1313
1313
|
S("path", {
|
|
1314
|
-
d:
|
|
1314
|
+
d: Wn.value.left,
|
|
1315
1315
|
stroke: H.value.style.chart.bar.stroke,
|
|
1316
1316
|
"stroke-width": H.value.style.chart.bar.strokeWidth,
|
|
1317
1317
|
"stroke-linejoin": "round",
|
|
@@ -1319,7 +1319,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1319
1319
|
fill: `url(#gradient_left${I.value})`
|
|
1320
1320
|
}, null, 8, nt),
|
|
1321
1321
|
S("path", {
|
|
1322
|
-
d:
|
|
1322
|
+
d: Wn.value.top,
|
|
1323
1323
|
stroke: H.value.style.chart.bar.stroke,
|
|
1324
1324
|
"stroke-width": H.value.style.chart.bar.strokeWidth,
|
|
1325
1325
|
"stroke-linejoin": "round",
|
|
@@ -1327,33 +1327,33 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1327
1327
|
fill: `url(#gradient_top${I.value})`
|
|
1328
1328
|
}, null, 8, rt)
|
|
1329
1329
|
])),
|
|
1330
|
-
|
|
1331
|
-
(O(!0), x(_, null, A(
|
|
1332
|
-
style: D(`opacity:${
|
|
1330
|
+
G.value ? (O(), x("g", it, [
|
|
1331
|
+
(O(!0), x(_, null, A(q.value, (e, t) => (O(), x("g", {
|
|
1332
|
+
style: D(`opacity:${Y.value ? Y.value === e.id ? 1 : .3 : 1}`),
|
|
1333
1333
|
class: "vue-ui-3d-bar-stack",
|
|
1334
1334
|
role: "img",
|
|
1335
|
-
"aria-label":
|
|
1335
|
+
"aria-label": dr(e)
|
|
1336
1336
|
}, [
|
|
1337
1337
|
S("path", {
|
|
1338
1338
|
d: e.fill.right,
|
|
1339
1339
|
fill: `url(#grad_right_${e.id})`,
|
|
1340
|
-
onMouseenter: (t) =>
|
|
1341
|
-
onClick: (t) =>
|
|
1342
|
-
onMouseout: (t) =>
|
|
1340
|
+
onMouseenter: (t) => X(e),
|
|
1341
|
+
onClick: (t) => X(e, !0),
|
|
1342
|
+
onMouseout: (t) => Z(e)
|
|
1343
1343
|
}, null, 40, ot),
|
|
1344
1344
|
S("path", {
|
|
1345
1345
|
d: e.fill.left,
|
|
1346
1346
|
fill: `url(#grad_left_${e.id})`,
|
|
1347
|
-
onMouseenter: (t) =>
|
|
1348
|
-
onClick: (t) =>
|
|
1349
|
-
onMouseout: (t) =>
|
|
1347
|
+
onMouseenter: (t) => X(e),
|
|
1348
|
+
onClick: (t) => X(e, !0),
|
|
1349
|
+
onMouseout: (t) => Z(e)
|
|
1350
1350
|
}, null, 40, st),
|
|
1351
1351
|
S("path", {
|
|
1352
1352
|
d: e.fill.top,
|
|
1353
1353
|
fill: `url(#grad_top_${e.id})`,
|
|
1354
|
-
onMouseenter: (t) =>
|
|
1355
|
-
onClick: (t) =>
|
|
1356
|
-
onMouseout: (t) =>
|
|
1354
|
+
onMouseenter: (t) => X(e),
|
|
1355
|
+
onClick: (t) => X(e, !0),
|
|
1356
|
+
onMouseout: (t) => Z(e)
|
|
1357
1357
|
}, null, 40, ct),
|
|
1358
1358
|
S("path", {
|
|
1359
1359
|
d: e.fill.liningTop,
|
|
@@ -1361,9 +1361,9 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1361
1361
|
"stroke-width": "0.5",
|
|
1362
1362
|
"stroke-linecap": "round",
|
|
1363
1363
|
fill: "none",
|
|
1364
|
-
onMouseenter: (t) =>
|
|
1365
|
-
onClick: (t) =>
|
|
1366
|
-
onMouseout: (t) =>
|
|
1364
|
+
onMouseenter: (t) => X(e),
|
|
1365
|
+
onClick: (t) => X(e, !0),
|
|
1366
|
+
onMouseout: (t) => Z(e)
|
|
1367
1367
|
}, null, 40, lt),
|
|
1368
1368
|
S("path", {
|
|
1369
1369
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
@@ -1372,7 +1372,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1372
1372
|
"stroke-linecap": "round"
|
|
1373
1373
|
}, null, 8, ut)
|
|
1374
1374
|
], 12, at))), 256)),
|
|
1375
|
-
(O(!0), x(_, null, A(
|
|
1375
|
+
(O(!0), x(_, null, A(q.value, (e, t) => (O(), x("g", null, [t === q.value.length - 1 ? b("", !0) : (O(), x("path", {
|
|
1376
1376
|
key: 0,
|
|
1377
1377
|
d: e.fill.liningTopShade,
|
|
1378
1378
|
stroke: H.value.style.chart.bar.shadeColor,
|
|
@@ -1381,9 +1381,9 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1381
1381
|
fill: "none",
|
|
1382
1382
|
style: { "pointer-events": "none" }
|
|
1383
1383
|
}, null, 8, dt))]))), 256)),
|
|
1384
|
-
(O(!0), x(_, null, A(
|
|
1385
|
-
style: D(`opacity:${
|
|
1386
|
-
onClick: (e) =>
|
|
1384
|
+
(O(!0), x(_, null, A(q.value, (t, n) => (O(), x("g", {
|
|
1385
|
+
style: D(`opacity:${Y.value ? +(Y.value === t.id) : +(t.proportion * 100 > H.value.style.chart.legend.hideUnderPercentage)}`),
|
|
1386
|
+
onClick: (e) => fn("selectDatapoint", t)
|
|
1387
1387
|
}, [
|
|
1388
1388
|
S("path", {
|
|
1389
1389
|
stroke: H.value.style.chart.color,
|
|
@@ -1392,7 +1392,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1392
1392
|
"stroke-linecap": "round",
|
|
1393
1393
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1394
1394
|
}, null, 8, pt),
|
|
1395
|
-
!t.fill.miniDonut ||
|
|
1395
|
+
!t.fill.miniDonut || Y.value ? (O(), x("circle", {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
cx: t.fill.sidePointer.x2,
|
|
1398
1398
|
cy: t.fill.sidePointer.y,
|
|
@@ -1400,20 +1400,20 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1400
1400
|
fill: t.color,
|
|
1401
1401
|
stroke: H.value.style.chart.backgroundColor
|
|
1402
1402
|
}, null, 8, mt)) : b("", !0),
|
|
1403
|
-
N(
|
|
1403
|
+
N(wn) ? (O(), x("rect", {
|
|
1404
1404
|
key: 1,
|
|
1405
1405
|
x: t.fill.sidePointer.xText,
|
|
1406
1406
|
y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize / 2,
|
|
1407
|
-
width:
|
|
1407
|
+
width: K.value.width / 3,
|
|
1408
1408
|
height: H.value.style.chart.legend.fontSize,
|
|
1409
1409
|
fill: "#6A6A6A80",
|
|
1410
1410
|
rx: "3"
|
|
1411
1411
|
}, null, 8, ht)) : b("", !0),
|
|
1412
|
-
N(
|
|
1412
|
+
N(wn) ? b("", !0) : (O(), x("foreignObject", {
|
|
1413
1413
|
key: 2,
|
|
1414
1414
|
x: t.fill.sidePointer.xText,
|
|
1415
1415
|
y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize,
|
|
1416
|
-
width:
|
|
1416
|
+
width: K.value.absoluteWidth / 3,
|
|
1417
1417
|
height: H.value.style.chart.legend.fontSize * 2,
|
|
1418
1418
|
style: {
|
|
1419
1419
|
overflow: "visible",
|
|
@@ -1422,7 +1422,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1422
1422
|
}, [H.value.style.chart.legend.showDefault ? (O(), x("div", {
|
|
1423
1423
|
key: 0,
|
|
1424
1424
|
style: D(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${H.value.style.chart.legend.fontSize}px; color:${H.value.style.chart.legend.color}; font-weight:${H.value.style.chart.legend.bold ? "bold" : "normal"}`)
|
|
1425
|
-
}, M(N(
|
|
1425
|
+
}, M(N(h)(H.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${N(l)({
|
|
1426
1426
|
v: t.proportion * 100,
|
|
1427
1427
|
s: "%",
|
|
1428
1428
|
r: H.value.style.chart.legend.roundingPercentage
|
|
@@ -1438,12 +1438,12 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1438
1438
|
})), 5)) : b("", !0), j(e.$slots, "legend", Ee({ ref_for: !0 }, {
|
|
1439
1439
|
datapoint: t,
|
|
1440
1440
|
config: H.value,
|
|
1441
|
-
dataset:
|
|
1441
|
+
dataset: q.value
|
|
1442
1442
|
}), void 0, !0)], 8, gt)),
|
|
1443
|
-
t.fill.donut &&
|
|
1444
|
-
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [
|
|
1443
|
+
t.fill.donut && Y.value === t.id ? (O(), x("g", _t, [
|
|
1444
|
+
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Q(e, t.fill.donut, !0) > 6 ? (O(), x("path", {
|
|
1445
1445
|
key: 0,
|
|
1446
|
-
d: N(
|
|
1446
|
+
d: N(m)(e, {
|
|
1447
1447
|
x: e.cx,
|
|
1448
1448
|
y: e.cy
|
|
1449
1449
|
}, 0, 8, !1, !0, 10),
|
|
@@ -1461,14 +1461,14 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1461
1461
|
stroke: H.value.style.chart.backgroundColor,
|
|
1462
1462
|
"stroke-width": 1
|
|
1463
1463
|
}, null, 8, yt))), 256)),
|
|
1464
|
-
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [
|
|
1465
|
-
"text-anchor": N(
|
|
1466
|
-
x: N(
|
|
1467
|
-
y: N(
|
|
1464
|
+
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Q(e, t.fill.donut, !0) > 6 ? (O(), x("g", bt, [S("text", {
|
|
1465
|
+
"text-anchor": N(p)(e, !0, 0).anchor,
|
|
1466
|
+
x: N(p)(e, !0, 2).x,
|
|
1467
|
+
y: N(re)(e, 12, 12),
|
|
1468
1468
|
fill: H.value.style.chart.legend.color,
|
|
1469
1469
|
"font-size": H.value.style.chart.legend.fontSize / 1.5,
|
|
1470
1470
|
"font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1471
|
-
}, M(N(
|
|
1471
|
+
}, M(N(h)(H.value.style.chart.dataLabel.formatter, e.value, `${Q(e, t.fill.donut)} (${N(l)({
|
|
1472
1472
|
p: H.value.style.chart.legend.prefix,
|
|
1473
1473
|
v: e.value,
|
|
1474
1474
|
s: H.value.style.chart.legend.suffix,
|
|
@@ -1478,15 +1478,15 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1478
1478
|
seriesIndex: n,
|
|
1479
1479
|
type: "donutDatapoint"
|
|
1480
1480
|
})), 9, xt), S("text", {
|
|
1481
|
-
"text-anchor": N(
|
|
1482
|
-
x: N(
|
|
1483
|
-
y: N(
|
|
1481
|
+
"text-anchor": N(p)(e).anchor,
|
|
1482
|
+
x: N(p)(e, !0, 2).x,
|
|
1483
|
+
y: N(re)(e, 12, 12) + H.value.style.chart.legend.fontSize / 1.5,
|
|
1484
1484
|
fill: H.value.style.chart.legend.color,
|
|
1485
1485
|
"font-size": H.value.style.chart.legend.fontSize / 1.5,
|
|
1486
1486
|
"font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1487
1487
|
}, M(e.name), 9, St)])) : b("", !0)]))), 256))
|
|
1488
1488
|
])) : b("", !0),
|
|
1489
|
-
t.fill.miniDonut && !
|
|
1489
|
+
t.fill.miniDonut && !Y.value ? (O(), x("g", Ct, [(O(!0), x(_, null, A(t.fill.miniDonut, (e, t) => (O(), x("path", {
|
|
1490
1490
|
class: "vue-ui-donut-arc-path",
|
|
1491
1491
|
d: e.arcSlice,
|
|
1492
1492
|
fill: `${e.color}`,
|
|
@@ -1496,10 +1496,10 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1496
1496
|
], 12, ft))), 256))
|
|
1497
1497
|
])) : b("", !0)
|
|
1498
1498
|
])) : b("", !0),
|
|
1499
|
-
H.value.style.shape === "tube" ? (O(), x("g", Tt, [
|
|
1499
|
+
H.value.style.shape === "tube" ? (O(), x("g", Tt, [G.value ? b("", !0) : (O(), x("g", Et, [
|
|
1500
1500
|
S("path", {
|
|
1501
1501
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1502
|
-
d:
|
|
1502
|
+
d: J.value.tubeTop,
|
|
1503
1503
|
stroke: H.value.style.chart.box.stroke,
|
|
1504
1504
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1505
1505
|
"stroke-linejoin": "round",
|
|
@@ -1508,7 +1508,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1508
1508
|
}, null, 8, Dt),
|
|
1509
1509
|
S("path", {
|
|
1510
1510
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1511
|
-
d:
|
|
1511
|
+
d: J.value.tubeLeft,
|
|
1512
1512
|
stroke: H.value.style.chart.box.stroke,
|
|
1513
1513
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1514
1514
|
"stroke-linejoin": "round",
|
|
@@ -1517,7 +1517,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1517
1517
|
}, null, 8, Ot),
|
|
1518
1518
|
S("path", {
|
|
1519
1519
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1520
|
-
d:
|
|
1520
|
+
d: J.value.tubeRight,
|
|
1521
1521
|
stroke: H.value.style.chart.box.stroke,
|
|
1522
1522
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1523
1523
|
"stroke-linejoin": "round",
|
|
@@ -1526,7 +1526,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1526
1526
|
}, null, 8, kt),
|
|
1527
1527
|
S("path", {
|
|
1528
1528
|
"stroke-dasharray": H.value.style.chart.box.strokeDasharray,
|
|
1529
|
-
d:
|
|
1529
|
+
d: J.value.tubeBottom,
|
|
1530
1530
|
stroke: H.value.style.chart.box.stroke,
|
|
1531
1531
|
"stroke-width": H.value.style.chart.box.strokeWidth,
|
|
1532
1532
|
"stroke-linejoin": "round",
|
|
@@ -1534,7 +1534,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1534
1534
|
fill: "none"
|
|
1535
1535
|
}, null, 8, At),
|
|
1536
1536
|
S("path", {
|
|
1537
|
-
d:
|
|
1537
|
+
d: Wn.value.tubeTop,
|
|
1538
1538
|
stroke: H.value.style.chart.bar.stroke,
|
|
1539
1539
|
"stroke-width": H.value.style.chart.bar.strokeWidth,
|
|
1540
1540
|
"stroke-linejoin": "round",
|
|
@@ -1542,7 +1542,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1542
1542
|
fill: `url(#gradient_tube_top${I.value})`
|
|
1543
1543
|
}, null, 8, jt),
|
|
1544
1544
|
S("path", {
|
|
1545
|
-
d:
|
|
1545
|
+
d: Wn.value.tubeBody,
|
|
1546
1546
|
stroke: H.value.style.chart.bar.stroke,
|
|
1547
1547
|
"stroke-width": H.value.style.chart.bar.strokeWidth,
|
|
1548
1548
|
"stroke-linejoin": "round",
|
|
@@ -1550,18 +1550,18 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1550
1550
|
fill: `url(#gradient_tube_body${I.value})`
|
|
1551
1551
|
}, null, 8, Mt),
|
|
1552
1552
|
S("path", {
|
|
1553
|
-
d:
|
|
1553
|
+
d: Wn.value.tubeTop,
|
|
1554
1554
|
stroke: "#FFFFFF",
|
|
1555
1555
|
"stroke-width": .5,
|
|
1556
1556
|
"stroke-linejoin": "round",
|
|
1557
1557
|
"stroke-linecap": "round",
|
|
1558
1558
|
fill: "none"
|
|
1559
1559
|
}, null, 8, Nt)
|
|
1560
|
-
])),
|
|
1561
|
-
style: D(`opacity:${
|
|
1560
|
+
])), G.value ? (O(), x("g", Pt, [(O(!0), x(_, null, A(q.value, (e, t) => (O(), x("g", {
|
|
1561
|
+
style: D(`opacity:${Y.value ? Y.value === e.id ? 1 : .3 : 1}`),
|
|
1562
1562
|
class: "vue-ui-3d-bar-stack",
|
|
1563
1563
|
role: "img",
|
|
1564
|
-
"aria-label":
|
|
1564
|
+
"aria-label": dr(e)
|
|
1565
1565
|
}, [
|
|
1566
1566
|
S("defs", null, [C(g, {
|
|
1567
1567
|
t: "radial",
|
|
@@ -1570,11 +1570,11 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1570
1570
|
cy: "55%",
|
|
1571
1571
|
stops: [[
|
|
1572
1572
|
"0%",
|
|
1573
|
-
N(
|
|
1573
|
+
N(i)(N(n)(e.color, .5), 80),
|
|
1574
1574
|
1
|
|
1575
1575
|
], [
|
|
1576
1576
|
"100%",
|
|
1577
|
-
N(
|
|
1577
|
+
N(i)(N(d)(e.color, .1), 80),
|
|
1578
1578
|
1
|
|
1579
1579
|
]]
|
|
1580
1580
|
}, null, 8, ["id", "stops"]), C(g, {
|
|
@@ -1592,30 +1592,30 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1592
1592
|
],
|
|
1593
1593
|
[
|
|
1594
1594
|
"10%",
|
|
1595
|
-
N(
|
|
1595
|
+
N(i)(N(d)(e.color, .7), 100),
|
|
1596
1596
|
1
|
|
1597
1597
|
],
|
|
1598
1598
|
[
|
|
1599
1599
|
"25%",
|
|
1600
|
-
N(
|
|
1600
|
+
N(i)(N(d)(e.color, .5), 100),
|
|
1601
1601
|
1
|
|
1602
1602
|
],
|
|
1603
1603
|
[
|
|
1604
1604
|
"75%",
|
|
1605
|
-
N(
|
|
1605
|
+
N(i)(e.color, 80),
|
|
1606
1606
|
1
|
|
1607
1607
|
],
|
|
1608
1608
|
[
|
|
1609
1609
|
"100%",
|
|
1610
|
-
N(
|
|
1610
|
+
N(i)(N(n)(e.color, .7), 100),
|
|
1611
1611
|
1
|
|
1612
1612
|
]
|
|
1613
1613
|
]
|
|
1614
1614
|
}, null, 8, ["id", "stops"])]),
|
|
1615
1615
|
S("path", {
|
|
1616
|
-
onMouseenter: (t) =>
|
|
1617
|
-
onClick: (t) =>
|
|
1618
|
-
onMouseout: (t) =>
|
|
1616
|
+
onMouseenter: (t) => X(e),
|
|
1617
|
+
onClick: (t) => X(e, !0),
|
|
1618
|
+
onMouseout: (t) => Z(e),
|
|
1619
1619
|
d: e.fill.tubeBody,
|
|
1620
1620
|
stroke: "#FFFFFF",
|
|
1621
1621
|
"stroke-width": .5,
|
|
@@ -1625,9 +1625,9 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1625
1625
|
}, null, 40, It),
|
|
1626
1626
|
t > 0 ? (O(), x("path", {
|
|
1627
1627
|
key: 0,
|
|
1628
|
-
onMouseenter: (t) =>
|
|
1629
|
-
onClick: (t) =>
|
|
1630
|
-
onMouseout: (t) =>
|
|
1628
|
+
onMouseenter: (t) => X(e),
|
|
1629
|
+
onClick: (t) => X(e, !0),
|
|
1630
|
+
onMouseout: (t) => Z(e),
|
|
1631
1631
|
d: e.fill.bottomTubeTop,
|
|
1632
1632
|
stroke: "#000000",
|
|
1633
1633
|
"stroke-width": .5,
|
|
@@ -1636,9 +1636,9 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1636
1636
|
fill: "none"
|
|
1637
1637
|
}, null, 40, Lt)) : b("", !0),
|
|
1638
1638
|
S("path", {
|
|
1639
|
-
onMouseenter: (t) =>
|
|
1640
|
-
onClick: (t) =>
|
|
1641
|
-
onMouseout: (t) =>
|
|
1639
|
+
onMouseenter: (t) => X(e),
|
|
1640
|
+
onClick: (t) => X(e, !0),
|
|
1641
|
+
onMouseout: (t) => Z(e),
|
|
1642
1642
|
d: e.fill.tubeTop,
|
|
1643
1643
|
stroke: "#FFFFFF",
|
|
1644
1644
|
"stroke-width": .5,
|
|
@@ -1646,9 +1646,9 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1646
1646
|
"stroke-linecap": "round",
|
|
1647
1647
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
1648
1648
|
}, null, 40, Rt)
|
|
1649
|
-
], 12, Ft))), 256)), (O(!0), x(_, null, A(
|
|
1650
|
-
style: D(`opacity:${
|
|
1651
|
-
onClick: (e) =>
|
|
1649
|
+
], 12, Ft))), 256)), (O(!0), x(_, null, A(q.value, (t, n) => (O(), x("g", {
|
|
1650
|
+
style: D(`opacity:${Y.value ? +(Y.value === t.id) : +(t.proportion * 100 > H.value.style.chart.legend.hideUnderPercentage)}`),
|
|
1651
|
+
onClick: (e) => fn("selectDatapoint", t)
|
|
1652
1652
|
}, [
|
|
1653
1653
|
S("path", {
|
|
1654
1654
|
stroke: H.value.style.chart.color,
|
|
@@ -1657,7 +1657,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1657
1657
|
"stroke-linecap": "round",
|
|
1658
1658
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1659
1659
|
}, null, 8, Bt),
|
|
1660
|
-
!t.fill.miniDonut ||
|
|
1660
|
+
!t.fill.miniDonut || Y.value ? (O(), x("circle", {
|
|
1661
1661
|
key: 0,
|
|
1662
1662
|
cx: t.fill.sidePointer.x2,
|
|
1663
1663
|
cy: t.fill.sidePointer.y,
|
|
@@ -1665,20 +1665,20 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1665
1665
|
fill: t.color,
|
|
1666
1666
|
stroke: H.value.style.chart.backgroundColor
|
|
1667
1667
|
}, null, 8, Vt)) : b("", !0),
|
|
1668
|
-
N(
|
|
1668
|
+
N(wn) ? (O(), x("rect", {
|
|
1669
1669
|
key: 1,
|
|
1670
1670
|
x: t.fill.sidePointer.xText,
|
|
1671
1671
|
y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize / 2,
|
|
1672
|
-
width:
|
|
1672
|
+
width: K.value.width / 3,
|
|
1673
1673
|
height: H.value.style.chart.legend.fontSize,
|
|
1674
1674
|
fill: "#6A6A6A80",
|
|
1675
1675
|
rx: "3"
|
|
1676
1676
|
}, null, 8, Ht)) : b("", !0),
|
|
1677
|
-
N(
|
|
1677
|
+
N(wn) ? b("", !0) : (O(), x("foreignObject", {
|
|
1678
1678
|
key: 2,
|
|
1679
1679
|
x: t.fill.sidePointer.xText,
|
|
1680
1680
|
y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize,
|
|
1681
|
-
width:
|
|
1681
|
+
width: K.value.absoluteWidth / 3,
|
|
1682
1682
|
height: H.value.style.chart.legend.fontSize * 2,
|
|
1683
1683
|
style: {
|
|
1684
1684
|
overflow: "visible",
|
|
@@ -1687,7 +1687,7 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1687
1687
|
}, [H.value.style.chart.legend.showDefault ? (O(), x("div", {
|
|
1688
1688
|
key: 0,
|
|
1689
1689
|
style: D(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${H.value.style.chart.legend.fontSize}px; color:${H.value.style.chart.legend.color};font-weight:${H.value.style.chart.legend.bold ? "bold" : "normal"}`)
|
|
1690
|
-
}, M(N(
|
|
1690
|
+
}, M(N(h)(H.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${N(l)({
|
|
1691
1691
|
v: t.proportion * 100,
|
|
1692
1692
|
s: "%",
|
|
1693
1693
|
r: H.value.style.chart.legend.roundingPercentage
|
|
@@ -1703,12 +1703,12 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1703
1703
|
})), 5)) : b("", !0), j(e.$slots, "legend", Ee({ ref_for: !0 }, {
|
|
1704
1704
|
datapoint: t,
|
|
1705
1705
|
config: H.value,
|
|
1706
|
-
dataset:
|
|
1706
|
+
dataset: q.value
|
|
1707
1707
|
}), void 0, !0)], 8, Ut)),
|
|
1708
|
-
t.fill.donut &&
|
|
1709
|
-
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [
|
|
1708
|
+
t.fill.donut && Y.value === t.id ? (O(), x("g", Wt, [
|
|
1709
|
+
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Q(e, t.fill.donut, !0) > 6 ? (O(), x("path", {
|
|
1710
1710
|
key: 0,
|
|
1711
|
-
d: N(
|
|
1711
|
+
d: N(m)(e, {
|
|
1712
1712
|
x: e.cx,
|
|
1713
1713
|
y: e.cy
|
|
1714
1714
|
}, 0, 8, !1, !0, 10),
|
|
@@ -1726,14 +1726,14 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1726
1726
|
stroke: H.value.style.chart.backgroundColor,
|
|
1727
1727
|
"stroke-width": 1
|
|
1728
1728
|
}, null, 8, Kt))), 256)),
|
|
1729
|
-
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [
|
|
1730
|
-
"text-anchor": N(
|
|
1731
|
-
x: N(
|
|
1732
|
-
y: N(
|
|
1729
|
+
(O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Q(e, t.fill.donut, !0) > 6 ? (O(), x("g", qt, [S("text", {
|
|
1730
|
+
"text-anchor": N(p)(e, !0, 0).anchor,
|
|
1731
|
+
x: N(p)(e, !0, 2).x,
|
|
1732
|
+
y: N(re)(e, 12, 12),
|
|
1733
1733
|
fill: H.value.style.chart.legend.color,
|
|
1734
1734
|
"font-size": H.value.style.chart.legend.fontSize / 1.5,
|
|
1735
1735
|
"font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1736
|
-
}, M(N(
|
|
1736
|
+
}, M(N(h)(H.value.style.chart.dataLabel.formatter, e.value, `${Q(e, t.fill.donut)} (${N(l)({
|
|
1737
1737
|
p: H.value.style.chart.legend.prefix,
|
|
1738
1738
|
v: e.value,
|
|
1739
1739
|
s: H.value.style.chart.legend.suffix,
|
|
@@ -1743,15 +1743,15 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1743
1743
|
seriesIndex: n,
|
|
1744
1744
|
type: "donutDatapoint"
|
|
1745
1745
|
})), 9, Jt), S("text", {
|
|
1746
|
-
"text-anchor": N(
|
|
1747
|
-
x: N(
|
|
1748
|
-
y: N(
|
|
1746
|
+
"text-anchor": N(p)(e).anchor,
|
|
1747
|
+
x: N(p)(e, !0, 2).x,
|
|
1748
|
+
y: N(re)(e, 12, 12) + H.value.style.chart.legend.fontSize / 1.5,
|
|
1749
1749
|
fill: H.value.style.chart.legend.color,
|
|
1750
1750
|
"font-size": H.value.style.chart.legend.fontSize / 1.5,
|
|
1751
1751
|
"font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1752
1752
|
}, M(e.name), 9, Yt)])) : b("", !0)]))), 256))
|
|
1753
1753
|
])) : b("", !0),
|
|
1754
|
-
t.fill.miniDonut && !
|
|
1754
|
+
t.fill.miniDonut && !Y.value ? (O(), x("g", Xt, [(O(!0), x(_, null, A(t.fill.miniDonut, (e, t) => (O(), x("path", {
|
|
1755
1755
|
class: "vue-ui-donut-arc-path",
|
|
1756
1756
|
d: e.arcSlice,
|
|
1757
1757
|
fill: `${e.color}`,
|
|
@@ -1760,41 +1760,39 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1760
1760
|
}, null, 8, Zt))), 256))])) : b("", !0)
|
|
1761
1761
|
], 12, zt))), 256))])) : b("", !0)])) : b("", !0),
|
|
1762
1762
|
j(e.$slots, "svg", { svg: {
|
|
1763
|
-
...
|
|
1764
|
-
isPrintingImg: N(
|
|
1765
|
-
isPrintingSvg: N(
|
|
1763
|
+
...K.value,
|
|
1764
|
+
isPrintingImg: N(An) || N(jn) || N(ar),
|
|
1765
|
+
isPrintingSvg: N(or)
|
|
1766
1766
|
} }, void 0, !0)
|
|
1767
1767
|
], 46, Be))]),
|
|
1768
|
-
e.$slots.watermark ? (O(), x("div", Qt, [j(e.$slots, "watermark", E(T({ isPrinting: N(
|
|
1768
|
+
e.$slots.watermark ? (O(), x("div", Qt, [j(e.$slots, "watermark", E(T({ isPrinting: N(An) || N(jn) || N(or) || N(ar) })), void 0, !0)])) : b("", !0),
|
|
1769
1769
|
e.$slots.source ? (O(), x("div", {
|
|
1770
1770
|
key: 5,
|
|
1771
1771
|
ref_key: "source",
|
|
1772
|
-
ref:
|
|
1772
|
+
ref: yn,
|
|
1773
1773
|
dir: "auto"
|
|
1774
1774
|
}, [j(e.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
1775
|
-
|
|
1775
|
+
pn.value && G.value && H.value.userOptions.buttons.table ? (O(), y(Ae(tr.value.component), Ee({ key: 6 }, tr.value.props, {
|
|
1776
1776
|
ref_key: "tableUnit",
|
|
1777
|
-
ref:
|
|
1778
|
-
onClose:
|
|
1777
|
+
ref: bn,
|
|
1778
|
+
onClose: nr
|
|
1779
1779
|
}), we({
|
|
1780
|
-
content: P(() => [(O(), y(N(
|
|
1781
|
-
key: `table_${
|
|
1782
|
-
colNames:
|
|
1783
|
-
head:
|
|
1784
|
-
body:
|
|
1785
|
-
config:
|
|
1786
|
-
title: H.value.table.useDialog ? "" :
|
|
1780
|
+
content: P(() => [(O(), y(N(rn), {
|
|
1781
|
+
key: `table_${hn.value}`,
|
|
1782
|
+
colNames: $.value.colNames,
|
|
1783
|
+
head: $.value.head,
|
|
1784
|
+
body: $.value.body,
|
|
1785
|
+
config: $.value.config,
|
|
1786
|
+
title: H.value.table.useDialog ? "" : tr.value.title,
|
|
1787
1787
|
withCloseButton: !H.value.table.useDialog,
|
|
1788
|
-
isCursorPointer:
|
|
1789
|
-
onClose:
|
|
1788
|
+
isCursorPointer: Sn.value,
|
|
1789
|
+
onClose: nr
|
|
1790
1790
|
}, {
|
|
1791
|
-
th: P(({ th: e }) => [
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
}
|
|
1797
|
-
}, null, 8, $t)]),
|
|
1791
|
+
th: P(({ th: e }) => [e === "__SUM__" ? (O(), x("div", $t, [C(N(tn), {
|
|
1792
|
+
name: "sigma",
|
|
1793
|
+
stroke: $.value.config.th.color,
|
|
1794
|
+
size: 16
|
|
1795
|
+
}, null, 8, ["stroke"])])) : (O(), x("div", en, M(e), 1))]),
|
|
1798
1796
|
td: P(({ td: e }) => [Te(M(e.name || e), 1)]),
|
|
1799
1797
|
_: 1
|
|
1800
1798
|
}, 8, [
|
|
@@ -1809,23 +1807,23 @@ var Fe = /* @__PURE__ */ e({ default: () => en }), Ie = ["id"], Le = ["id"], Re
|
|
|
1809
1807
|
_: 2
|
|
1810
1808
|
}, [H.value.table.useDialog ? {
|
|
1811
1809
|
name: "title",
|
|
1812
|
-
fn: P(() => [Te(M(
|
|
1810
|
+
fn: P(() => [Te(M(tr.value.title), 1)]),
|
|
1813
1811
|
key: "0"
|
|
1814
1812
|
} : void 0, H.value.table.useDialog ? {
|
|
1815
1813
|
name: "actions",
|
|
1816
1814
|
fn: P(() => [S("button", {
|
|
1817
1815
|
tabindex: "0",
|
|
1818
1816
|
class: "vue-ui-user-options-button",
|
|
1819
|
-
onClick: t[7] ||= (e) =>
|
|
1820
|
-
}, [C(N(
|
|
1817
|
+
onClick: t[7] ||= (e) => Xn(H.value.userOptions.callbacks.csv)
|
|
1818
|
+
}, [C(N(tn), {
|
|
1821
1819
|
name: "fileCsv",
|
|
1822
|
-
stroke:
|
|
1820
|
+
stroke: tr.value.props.color
|
|
1823
1821
|
}, null, 8, ["stroke"])])]),
|
|
1824
1822
|
key: "1"
|
|
1825
1823
|
} : void 0]), 1040)) : b("", !0),
|
|
1826
|
-
j(e.$slots, "skeleton", {}, () => [N(
|
|
1824
|
+
j(e.$slots, "skeleton", {}, () => [N(wn) ? (O(), y(de, { key: 0 })) : b("", !0)], !0)
|
|
1827
1825
|
], 44, Ie));
|
|
1828
1826
|
}
|
|
1829
|
-
}, [["__scopeId", "data-v-
|
|
1827
|
+
}, [["__scopeId", "data-v-0936c7c0"]]);
|
|
1830
1828
|
//#endregion
|
|
1831
|
-
export { Fe as n,
|
|
1829
|
+
export { Fe as n, tn as t };
|